import{w as I,V as _,x as A,y as P,r as L,n as S,E as N}from"./client-BmVmnFEC.js";import{t as O,u as q,w as B,x,y as U,z as G,A as H,m as R,i as V}from"./utils-P6ES1V-F.js";import{R as z,d as j}from"./RestaurantHorizontalBar-BZ5OG5NU.js";import{P as Q}from"./PvLogger-Bfc8O67g.js";import{m as W,V as Y,g as Z}from"./makeGtmScript-B8HLg2s0.js";import{P as J}from"./constants-2oqeuneD.js";import{d as K,b as X,c as ee,e as te,f as w,R as ne,a as ae}from"./makeJSONLD-C69eGyhK.js";import{R as ie}from"./RestaurantHeader-D9Hfgzpw.js";import{D as re}from"./DynamicLinkToRestaurant-Dixf6uh-.js";import{t as $}from"./type-util-BsvaEqwl.js";import{Y as se}from"./YahooMapScript-98D_smAn.js";import{d as oe}from"./loginSession-CK-JZbKZ.js";import"./date-BYBoZiPG.js";import"./SceneIcon-l1YgWyi_.js";import"./AnchorLinkWithArrowRight-Co74oY4C.js";const ue="https://securepubads.g.doubleclick.net/tag/js/gpt.js",de=e=>`こちらは『${e}』の地図ページです。${e}へのアクセスはこちらからご確認ください。Rettyで食が好きなグルメな人たちからお店を探そう!`,le=(e,t,n)=>{var g;const a=O(e),o=de(a),r=!["OPEN","RELOCATED","RENEWED","PREPARING"].includes(e.businessStatus),c=((g=e.revisions[0])==null?void 0:g.canonicalUrl)||e.url,i=q(U(e),x(t),B(e,t)),s=i!==null?[i]:[],d=new URL(`/restaurant/${e.id}/`,I()).toString(),m=`地図:${e.name} - ${J}`,f=`${e.url}map`;return{__dangerouslyDisableSanitizers:["script"],__dangerouslyDisableSanitizersByTagID:{"al:ios:url":["content"]},title:m,link:[{hid:"canonical",rel:"canonical",href:`${c}map`}],script:[{src:ue,defer:!0,type:"text/javascript"},...s,...W(n)],meta:[{hid:"description",name:"description",content:o},{hid:"keywords",name:"keywords",content:G(e)},{hid:"al:ios:url",name:"al:ios:url",content:`retty://?page=restaurant&restaurant_id=${e.id}`},{hid:"twitter:url",name:"twitter:url",content:f},{hid:"twitter:title",name:"twitter:title",content:m},{hid:"twitter:description",name:"twitter:description",content:o},{hid:"twitter:image",name:"twitter:image",content:d},{hid:"og:type",property:"og:type",content:"rettyme:restaurant"},{hid:"og:url",property:"og:url",content:f},{hid:"og:title",property:"og:title",content:m},{hid:"og:description",property:"og:description",content:o},{hid:"og:image",property:"og:image",content:d},...r?[{hid:"robots",name:"robots",content:"noindex,nofollow"}]:[]]}},ce=_.extend({components:{DynamicLinkToRestaurant:re,RestaurantHorizontalBar:z,AdBanner:H},props:{pageEntity:{type:Object,required:!0},googleMapsZoom:{type:Number,default:16},yahooMapZoom:{type:Number,default:16},shouldShowWebToAppLink:{type:Boolean,default:!0}},data(){return{transitionId:""}},computed:{destination(){return"map"},entityRestaurant(){var e,t;return $((t=(e=this.pageEntity)==null?void 0:e.entity)==null?void 0:t.restaurant)},restaurantId(){var e;return((e=this.entityRestaurant)==null?void 0:e.id)||null},restaurantName(){var e;return((e=this.entityRestaurant)==null?void 0:e.name)||null},restaurantFeature(){return this.entityRestaurant?R(this.entityRestaurant):null},geoCoordinates(){var e,t;return this.restaurantFeature?{latitude:((e=this.restaurantFeature.geoCoordinates)==null?void 0:e.latitude)||0,longitude:((t=this.restaurantFeature.geoCoordinates)==null?void 0:t.longitude)||0}:{latitude:0,longitude:0}},yahooMapURL(){const{longitude:e,latitude:t}=this.geoCoordinates;return`${A}?lat=${t}&lon=${e}&zoom=${this.yahooMapZoom}&fr=retty_map_button`},webGoogleMapURL(){const{longitude:e,latitude:t}=this.geoCoordinates;return`${P}?zoom=${this.googleMapsZoom}&q=${this.restaurantName}@${t},${e}`},address(){var e;return((e=this.restaurantFeature)==null?void 0:e.address)||""},access(){var e;return((e=this.restaurantFeature)==null?void 0:e.access)||""}},mounted(){this.transitionId=L()}});var me=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",[n("dl",{staticClass:"map-app-links"},[n("dt",{staticClass:"map-app-links__title"},[t._v("アプリで地図を開く")]),n("dd",[n("ul",{staticClass:"map-app-links__list"},[n("li",{staticClass:"map-app-links__item"},[t.transitionId?n("dynamic-link-to-restaurant",{ref:"dynamic-links-to-restaurant",staticClass:"map-app-links__button",attrs:{"restaurant-id":t.restaurantId,destination:t.destination,"transition-id":t.transitionId}},[t._v(" Retty ")]):t._e()],1),n("li",{staticClass:"map-app-links__item"},[n("a",{ref:"google",staticClass:"map-app-links__button",attrs:{href:t.webGoogleMapURL}},[t._v(" Google Maps ")])]),n("li",{staticClass:"map-app-links__item"},[n("a",{ref:"yahoo",staticClass:"map-app-links__button",attrs:{href:t.yahooMapURL}},[t._v(" Yahoo!マップ ")])])])])]),n("ad-banner",{attrs:{"ad-id":"div-gpt-ad-1592983072891-0"}}),n("restaurant-horizontal-bar"),t.address||t.access?n("div",{staticClass:"access"},[n("div",{staticClass:"access__item"},[n("p",{staticClass:"access__item__header"},[t._v("住所")]),n("p",{staticClass:"access__item__content"},[t._v(t._s(t.address||"未入力"))])]),t.access?n("div",{staticClass:"access__item"},[n("p",[t._v(t._s(t.access))])]):t._e()]):t._e()],1)},pe=[],fe=S(ce,me,pe,!1,null,"d5331608");const ge=fe.exports,ke=_.extend({components:{YahooMapScript:se},props:{pageEntity:{type:Object,required:!0}},computed:{entityRestaurant(){var e,t;return $((t=(e=this.pageEntity)==null?void 0:e.entity)==null?void 0:t.restaurant)},restaurantFeature(){return this.entityRestaurant?R(this.entityRestaurant):null},geoCoordinates(){var e,t;return this.restaurantFeature?{latitude:((e=this.restaurantFeature.geoCoordinates)==null?void 0:e.latitude)||0,longitude:((t=this.restaurantFeature.geoCoordinates)==null?void 0:t.longitude)||0}:{latitude:0,longitude:0}}}});var ve=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("yahoo-map-script",{staticClass:"yahoo-map-skelton",attrs:{width:"100%",height:null,"geo-coordinates":t.geoCoordinates}})},he=[],ye=S(ke,ve,he,!1,null,null);const _e=ye.exports;var l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"restaurantToMakeRestaurantMapHead"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Restaurant"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"restaurantToMakeRestaurantTitle"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"restaurantToMakeReview"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"restaurantToMakeViewAction"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"restaurantToMakeRestaurant"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"restaurantMakeRestaurantKeywords"},directives:[]},{kind:"Field",name:{kind:"Name",value:"kimeteAttributes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"kimeteAttributesToMakeFamiliarLabelText"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"membership"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"businessStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"revisions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canonicalUrl"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"availableReservationServiceType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statistics"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"report"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"public"},arguments:[],directives:[]}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"pageToMakeRestaurantMapHead"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PageQuery"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pageToMakeBreadcrumbList"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"pageToMakeRestaurant"},directives:[]}]}}],loc:{start:0,end:674}};l.loc.source={body:`#import "@/lib/head/restaurant/utils.graphql"
#import "@/lib/head/restaurant/structuredData/makeJSONLD.graphql"
fragment restaurantToMakeRestaurantMapHead on Restaurant {
...restaurantToMakeRestaurantTitle
...restaurantToMakeReview
...restaurantToMakeViewAction
...restaurantToMakeRestaurant
...restaurantMakeRestaurantKeywords
kimeteAttributes {
...kimeteAttributesToMakeFamiliarLabelText
}
membership
businessStatus
revisions {
canonicalUrl
}
availableReservationServiceType
statistics {
report {
public
}
}
}
fragment pageToMakeRestaurantMapHead on PageQuery {
...pageToMakeBreadcrumbList
...pageToMakeRestaurant
}
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var F={};function C(e){return e.filter(function(t){if(t.kind!=="FragmentDefinition")return!0;var n=t.name.value;return F[n]?!1:(F[n]=!0,!0)})}l.definitions=l.definitions.concat(C(K.definitions));l.definitions=l.definitions.concat(C(X.definitions));function k(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var n=e.type;n.kind==="NamedType"&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(a){k(a,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(a){k(a,t)}),e.definitions&&e.definitions.forEach(function(a){k(a,t)})}var h={};(function(){l.definitions.forEach(function(t){if(t.name){var n=new Set;k(t,n),h[t.name.value]=n}})})();function M(e,t){for(var n=0;n