iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://retty.me/_nuxt/MapPage-D6uc0FTT.js
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;n0;){var c=r;r=new Set,c.forEach(function(i){if(!o.has(i)){o.add(i);var s=h[i]||new Set;s.forEach(function(d){r.add(d)})}})}return o.forEach(function(i){var s=M(e,i);s&&n.definitions.push(s)}),n}D(l,"restaurantToMakeRestaurantMapHead");D(l,"pageToMakeRestaurantMapHead");var u={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MobileRestaurantMapPage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"restaurantId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RestaurantId"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MobileInformationBlock"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"MobileRestaurantNavigation"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"MobileGlobalNotification"},directives:[]},{kind:"Field",name:{kind:"Name",value:"entity"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"restaurant"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"restaurantId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"restaurantToMakeRestaurantMapHead"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"loginSession"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"loginSessionFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"currentUser"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"notifications"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"html"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"iconUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"loginSession"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"session"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"page"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pageToMakeRestaurantMapHead"},directives:[]}]}}]}}],loc:{start:0,end:1028}};u.loc.source={body:`#import "@/components/core/mobile/organisms/BasicInformation/RestaurantInformationBlock.graphql" #import "@/components/core/mobile/organisms/RestaurantNavigation/RestaurantNavigation.graphql" #import "@/components/core/mobile/organisms/GlobalNotification/GlobalNotification.graphql" #import "@/lib/head/restaurant/makeRestaurantMapHead.graphql" #import "@/apis/graphql/fragments/loginSession.graphql" #import "@/components/core/mobile/organisms/GlobalNotification/GlobalNotification.graphql" query MobileRestaurantMapPage($restaurantId: RestaurantId!) { ...MobileInformationBlock ...MobileRestaurantNavigation ...MobileGlobalNotification entity { restaurant(id: $restaurantId) { ...restaurantToMakeRestaurantMapHead } loginSession { ...loginSessionFragment } currentUser { notifications { html link iconUrl createdAt } } loginSession { session { userId } } } page { ...pageToMakeRestaurantMapHead } } `,name:"GraphQL request",locationOffset:{line:1,column:1}};var E={};function p(e){return e.filter(function(t){if(t.kind!=="FragmentDefinition")return!0;var n=t.name.value;return E[n]?!1:(E[n]=!0,!0)})}u.definitions=u.definitions.concat(p(ee.definitions));u.definitions=u.definitions.concat(p(te.definitions));u.definitions=u.definitions.concat(p(w.definitions));u.definitions=u.definitions.concat(p(l.definitions));u.definitions=u.definitions.concat(p(oe.definitions));u.definitions=u.definitions.concat(p(w.definitions));function v(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){v(a,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(a){v(a,t)}),e.definitions&&e.definitions.forEach(function(a){v(a,t)})}var y={};(function(){u.definitions.forEach(function(t){if(t.name){var n=new Set;v(t,n),y[t.name.value]=n}})})();function T(e,t){for(var n=0;n0;){var c=r;r=new Set,c.forEach(function(i){if(!o.has(i)){o.add(i);var s=y[i]||new Set;s.forEach(function(d){r.add(d)})}})}return o.forEach(function(i){var s=T(e,i);s&&n.definitions.push(s)}),n}Se(u,"MobileRestaurantMapPage");const Re=_.extend({components:{RestaurantHeader:ie,RestaurantAccess:ge,RestaurantInformationBlock:ne,RestaurantNavigation:ae,RestaurantMapBlock:_e},mixins:[Q,Y],layout:"mobile/no-header",validate({params:e}){return!!e.restaurantId&&/^\d{12}$/.test(e.restaurantId)},async asyncData({app:e,store:t,error:n,query:a,params:o,req:r}){var f,g,b;const c=await e.$urql.value.query(u,{restaurantId:Number(o.restaurantId)},{requestPolicy:"network-only"}).toPromise(),{data:i,error:s}=c;if(s&&console.error(s),!i||s!=null&&s.networkError)return n({statusCode:500,message:N.ON_FAILED_CONNECT_API_SERVER}),null;if(!i||!i.entity||!i.page)return n({statusCode:404,message:N.RESTAURANT_NOT_FOUND}),null;t.dispatch("session/setSessionUser",{loginSession:i.entity.loginSession,currentUser:i.entity.currentUser}),t.dispatch("breadcrumbs/setBreadcrumbs",[...i.page.breadcrumbsV2,{url:(f=i.entity.restaurant)==null?void 0:f.url,text:(g=i.entity.restaurant)==null?void 0:g.name}]);const d=Array.isArray(a.hash)?a.hash[0]:a.hash,m=d&&((b=i.entity.loginSession)!=null&&b.isLoggedIn)?await e.$urql.value.query(j,{hash:d},{requestPolicy:"network-only"}).toPromise():null;return{paypayBonusAmount:m&&m.data?m.data.paypayBonusAmount:null,pageEntity:i}},data(){return{paypayBonusAmount:null,pageEntity:{}}},head(){var n,a,o,r;const e=(n=this.pageEntity.entity)==null?void 0:n.restaurant;if(!e||!this.page)return{};const t={userId:((r=(o=(a=this.pageEntity.entity)==null?void 0:a.loginSession)==null?void 0:o.session)==null?void 0:r.userId)||null,ruid:Z(document.cookie,"_ruid")||null};return le(e,this.page,t)},computed:{page(){return this.pageEntity.page},entity(){return this.pageEntity.entity},isPaidMember(){var e,t;return(t=(e=this.entity)==null?void 0:e.restaurant)!=null&&t.membership?V(this.entity.restaurant.membership):!1},entityRestaurant(){var e;return((e=this.pageEntity.entity)==null?void 0:e.restaurant)||null},pageEntityWithType(){return this.pageEntity},hasDiscountedCourse(){var e,t;return!!((t=(e=this.pageEntityWithType.page)==null?void 0:e.restaurant)!=null&&t.courses.some(n=>n.hasDiscountedCourse))},restaurantFeature(){return this.entityRestaurant?R(this.entityRestaurant):null}}});var be=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{staticClass:"restaurant-page"},[n("restaurant-header",{attrs:{"page-entity":t.pageEntity}}),n("restaurant-map-block",{attrs:{"page-entity":t.pageEntity}}),n("restaurant-access",{attrs:{"page-entity":t.pageEntity}}),t.entityRestaurant?n("restaurant-information-block",{staticClass:"restaurant-page__information-section",attrs:{"page-entity":t.pageEntity}}):t._e(),n("restaurant-navigation",{attrs:{"page-entity":t.pageEntity}})],1)},Ne=[],Fe=S(Re,be,Ne,!1,null,"0b620df8");const Ue=Fe.exports;export{Ue as default};