import{c as Cn,A as he,I as Kn,q as Qn,i as Hn,r as Wn,s as Yn,d as jn,b as Gn,e as zn,_ as Zn,f as Xn,g as Jn,k as ei,l as ti,n as ni,o as ii,p as ai}from"./makeRestaurantTopHead-DDrUsGrX.js";import{V as p,a as v,p as c,n as m,m as si,U as En,F as f,s as ri,R as oi,b as N,M as Nn,W as We,c as li,_ as ui,q as ci,r as wn,f as An,d as di,P as _e,N as mi,E as Bt,j as pi}from"./client-BmVmnFEC.js";import{f as Fn,i as Tn,e as Rt,c as vi,j as fi,g as Ct,E as B,a as _i,R as ki,b as In,l as hi,A as yi,h as gi,k as b,S as R,o as Si}from"./utils-P6ES1V-F.js";import{R as bi,d as Ri}from"./RestaurantHorizontalBar-BZ5OG5NU.js";import{P as Ci}from"./PvLogger-Bfc8O67g.js";import{V as Ei,g as Ni}from"./makeGtmScript-B8HLg2s0.js";import{C as P,R as wi,P as Ai,M as $n}from"./PaypayAppOtokuBanner-C4jgnJCa.js";import{F as Fi}from"./FamiliarLabel-uMBaVo_e.js";import{I as Ti}from"./IconFamiliarHelpLabel-CbLJDjbN.js";import{t as h}from"./type-util-BsvaEqwl.js";import Dn from"./InView-D07AiDrk.js";import{D as Et,W as Ii}from"./DynamicLinkToRestaurant-Dixf6uh-.js";import{I as Mn}from"./IconPaypay-WqwB5i8Z.js";import{r as $i,c as Di,e as Mi,p as Bi,m as Pi,u as Oi,d as Li,y as xi,f as Vi}from"./date-BYBoZiPG.js";import{a as Ui,g as ye,c as qi,t as Ki}from"./convertLocalDateInput-CZYNcL1M.js";import{I as Nt,D as Qi,a as Hi,_ as Wi,b as Yi}from"./ic-question-DDlXwbQ6.js";import Bn from"./AnchorLink-BNOXPdVn.js";import{h as ji,R as Gi,a as zi,d as Zi,b as Xi,c as Ji,e as ea,f as Pn}from"./makeJSONLD-C69eGyhK.js";import{S as ge}from"./SceneIcon-l1YgWyi_.js";import ta from"./InPageLink-CNNgKnf8.js";import{g as ke,i as na,_ as Se}from"./noimage-Bo_AIiWw.js";import{L as ia}from"./LoadingIndicator-CfmRsA0N.js";import{R as aa}from"./ReportScoreImage-DKpRAQvp.js";import{F as On}from"./FamiliarLabel-KtXPtNOK.js";import{u as sa}from"./graphqlErrorHandling-BE1XWHfd.js";import{d as ra}from"./loginSession-CK-JZbKZ.js";import"./endOfMonth-wSZykwZa.js";import"./XImg-BILABif1.js";import"./SwiperSlide-BtZGu3V2.js";import"./index-B0CiJK2p.js";import"./AnchorLinkWithArrowRight-Co74oY4C.js";const oa=p.extend({components:{CarouselImageModal:P},props:{pageEntity:{type:Object,required:!0}},data(){return{selectedImageIndex:0,initialSlideIndex:0,shouldShowImageModal:!1}},computed:{images(){var t,e;return((e=(t=this.pageEntity.entity)==null?void 0:t.restaurant)==null?void 0:e.preferenceImages)||[]},pairImages(){var e,n;return(((n=(e=this.pageEntity.entity)==null?void 0:e.restaurant)==null?void 0:n.preferenceImages)||[]).flatMap((i,r,s)=>r%2?[]:[s.slice(r,r+2)])},slides(){return this.images.map(t=>{var e;return t.report?((e=t.report.text)==null?void 0:e.length)>0?{imageUrl:t.image.url,caption:{type:"PostReportCaption",reportId:t.report.id,userName:t.report.user.name,scene:t.report.scene||void 0,postedAt:t.report.postedAt}}:{imageUrl:t.image.url,caption:{type:"NoCaption"}}:{imageUrl:t.image.url,caption:{type:"OwnerImageCaption",title:t.text||void 0}}})},clickActionType(){return v.CLICK_PHOTO_VIEWER},inViewActionType(){return v.INVIEW_PHOTO_VIEWER},clickActionTypeMoreHeader(){return v.CLICK_PHOTO_MORE_HEADER},totalImageCount(){var t,e,n,i,r;return((r=(i=(n=(e=(t=this.pageEntity.entity)==null?void 0:t.restaurant)==null?void 0:e.statistics)==null?void 0:n.report)==null?void 0:i.image)==null?void 0:r.total)||0},shouldShowImageReadMore(){return this.images.length>=4&&this.totalImageCount>=11},photoListUrl(){var t,e;return`${(e=(t=this.pageEntity.entity)==null?void 0:t.restaurant)==null?void 0:e.url}photos/`},actionValueMoreHeader(){var t,e,n;return{restaurant_id:String((n=(e=(t=this.pageEntity)==null?void 0:t.entity)==null?void 0:e.restaurant)==null?void 0:n.id)}}},methods:{openModal(t){this.selectedImageIndex=t,this.$nextTick(()=>{this.shouldShowImageModal=!0,c({type:"action",actionType:this.clickActionType,actionValue:this.clickActionValue(t)})})},onClose(){this.shouldShowImageModal=!1},actionValue(t){var e,n;return{restaurant_id:String(((n=(e=this.pageEntity.entity)==null?void 0:e.restaurant)==null?void 0:n.id)||0),order:String(t+1)}},clickActionValue(t){return this.actionValue(t)},loadingOption(t){return t<6?"eager":"lazy"},pushInViewLog(t){c({type:"action",actionType:this.inViewActionType,actionValue:this.actionValue(t)})},onClickReadMore(){c({type:"action",actionType:this.clickActionTypeMoreHeader,actionValue:this.actionValueMoreHeader})}}});var la=function(){var e=this,n=e._self._c;return e._self._setupProxy,e.images.length>0?n("div",{staticClass:"carousel-wrap"},[n("div",{staticClass:"carousel-inner"},[n("ul",{staticClass:"carousel"},e._l(e.pairImages,function(i,r){return n("li",{key:r,staticClass:"carousel__item"},e._l(i,function(s,l){return n("div",{key:s.image.url,staticClass:"carousel__item-inner"},[n("in-view",{ref:"inViewCarouselItem",refInFor:!0,on:{enter:function(a){return e.pushInViewLog(2*r+l)}}},[n("x-img",{ref:"image",refInFor:!0,staticClass:"carousel__image",attrs:{src:s.image.url,width:400,height:400,alt:s.text||"",loading:e.loadingOption(2*r+l)},nativeOn:{click:function(a){return e.openModal(2*r+l)}}})],1),e.shouldShowImageReadMore&&2*r+l===e.images.length-1?n("div",[n("anchor-link",{ref:"image-readmore",refInFor:!0,staticClass:"carousel__read-more",attrs:{to:e.photoListUrl},nativeOn:{click:function(a){return e.onClickReadMore.apply(null,arguments)}}},[n("div",[e._v("もっとみる")]),n("div",{staticClass:"carousel__total-count"},[e._v("("+e._s(e.totalImageCount)+")")])])],1):e._e()],1)}),0)}),0),n("carousel-image-modal",{attrs:{"should-show":e.shouldShowImageModal,"initial-slide-index":e.selectedImageIndex,slides:e.slides},on:{close:e.onClose}})],1)]):e._e()},ua=[],ca=m(oa,la,ua,!1,null,"51c46d4d");const da=ca.exports,ma=p.extend({props:{membership:{type:String,required:!0},status:{type:String,default:"OPEN"}},computed:{isMember(){return Fn(this.membership)},label(){return si[this.status]},hasChangeStatus(){return["CLOSED","OUT_OF_BUSINESS","RELOCATED","RENEWED","PREPARING"].includes(this.status)},isConfirming(){return this.status==="CONFIRMING"},shouldShowLabel(){return this.hasChangeStatus||this.isMember||this.isConfirming}}});var pa=function(){var e=this,n=e._self._c;return e._self._setupProxy,e.shouldShowLabel?n("ul",[e.isMember?n("li",{staticClass:"label label--member"},[e._v("公式情報")]):e._e(),e.hasChangeStatus?n("li",{staticClass:"label label--status-changed"},[e._v(" "+e._s(e.label)+" ")]):e._e(),e.isConfirming?n("li",{staticClass:"label label--status-changed"},[e._v("情報確認中")]):e._e()]):e._e()},va=[],fa=m(ma,pa,va,!1,null,"585d296b");const _a=fa.exports,Pt={RELOCATED:"移転先へ",RENEWED:"リニューアル先へ"},ka=p.extend({props:{status:{type:String,default:"OPEN"},canonicalUrl:{type:String,default:""}},computed:{shouldShowCanonicalUrl(){return this.canonicalUrl!==null&&Object.keys(Pt).includes(this.status)},canonicalLinkText(){return this.shouldShowCanonicalUrl&&Pt[this.status]||""},isConfirming(){return this.status==="CONFIRMING"}}});var ha=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("div",{staticClass:"caution"},[e.isConfirming?n("p",{staticClass:"caution__confirming"},[e._v(" このお店はRetty運営事務局がただいま情報確認を行っております。 ")]):e._e(),e.shouldShowCanonicalUrl?n("span",{ref:"caution__canonical_link",staticClass:"caution__canonical_link"},[n("anchor-link",{attrs:{to:e.canonicalUrl}},[e._v(" "+e._s(e.canonicalLinkText)+" ")])],1):e._e()])},ya=[],ga=m(ka,ha,ya,!1,null,"e55644bf");const Sa=ga.exports,ba=p.extend({components:{FamiliarLabel:Fi,IconFamiliarHelpLabel:Ti},props:{familiarAttribute:{type:Object,default:null},isUpcoming:{type:Boolean,default:!1}},computed:{hasFamiliarLabel(){return!!this.familiarAttribute},shouldShowList(){return this.isUpcoming||this.hasFamiliarLabel}}});var Ra=function(){var e=this,n=e._self._c;return e._self._setupProxy,e.shouldShowList?n("ul",{staticClass:"speciality-label-list"},[e.isUpcoming?n("li",{staticClass:"speciality-label-list__item"},[e._m(0)]):e._e(),e.hasFamiliarLabel?n("li",{staticClass:"speciality-label-list__item"},[n("div",{staticClass:"familiar-label-wrap"},[n("familiar-label",e._b({},"familiar-label",e.familiarAttribute,!1)),n("anchor-link",{staticClass:"familiar-label-help-link",attrs:{target:"_blank",to:"/announce/familiar-label/"}},[n("icon-familiar-help-label",{staticClass:"icon-familiar-help-label",attrs:{color:"#8C8C93",width:16,height:16}})],1)],1)]):e._e()]):e._e()},Ca=[function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"upcoming"},[e("p",{staticClass:"upcoming__text"},[t._v("話題の新店")])])}],Ea=m(ba,Ra,Ca,!1,null,"bce36655");const Na=Ea.exports,wa=p.extend({components:{RestaurantStatusLabel:_a,RestaurantStatusCaution:Sa,SpecialityLabelList:Na},props:{pageEntity:{type:Object,required:!0}},computed:{showFamiliarUserRecommendedCountText(){var i;const{count:t=0}=this.pageRestaurant.familiarUserRecommend||{},e=t>0,n=!!((i=this.entityRestaurant.kimeteAttributes)!=null&&i.familiarAttribute);return e&&n},entityRestaurant(){var t;return h((t=this.pageEntity.entity)==null?void 0:t.restaurant)},pageRestaurant(){var t;return h((t=this.pageEntity.page)==null?void 0:t.restaurant)},showSpecialityLabels(){var t,e;return((t=this.entityRestaurant.kimeteAttributes)==null?void 0:t.isUpcoming)||!!((e=this.entityRestaurant.kimeteAttributes)!=null&&e.familiarAttribute)},shouldShowStatusCaution(){var t;return this.entityRestaurant.businessStatus==="CONFIRMING"||!!((t=this.entityRestaurant.revisions[0])!=null&&t.canonicalUrl)},restaurantNameAndCityName(){const t=this.entityRestaurant.annotationToName||"";return this.entityRestaurant.cityName&&this.entityRestaurant.cityName.length>0?`${t} / ${this.entityRestaurant.cityName}`:t},count(){var t;return((t=this.pageRestaurant.familiarUserRecommend)==null?void 0:t.count.toString())||""},familiarCategoryName(){var t,e,n;return((n=(e=(t=this.entityRestaurant)==null?void 0:t.kimeteAttributes)==null?void 0:e.familiarAttribute)==null?void 0:n.name)||""}}});var Aa=function(){var i;var e=this,n=e._self._c;return e._self._setupProxy,n("section",{staticClass:"summary-section"},[n("div",{staticClass:"summary-section__restaurant-name"},[n("div",{staticClass:"title-box"},[n("div",{staticClass:"title-box__title-wrapper"},[n("restaurant-status-label",{staticClass:"title-box__labels",attrs:{membership:e.entityRestaurant.membership,status:e.entityRestaurant.businessStatus}}),n("h1",{staticClass:"title-box__title"},[e._v(e._s(e.entityRestaurant.name))])],1),n("p",{staticClass:"title-box__kana"},[e._v(e._s(e.restaurantNameAndCityName))]),e.shouldShowStatusCaution?n("restaurant-status-caution",{staticClass:"title-box__restaurant-status",attrs:{status:e.entityRestaurant.businessStatus,"canonical-url":(i=e.entityRestaurant.revisions[0])==null?void 0:i.canonicalUrl}}):e._e()],1)]),e.showSpecialityLabels?n("div",{staticClass:"summary-section__speciality-label"},[n("speciality-label-list",{attrs:{"is-upcoming":e.entityRestaurant.kimeteAttributes.isUpcoming,"familiar-attribute":e.entityRestaurant.kimeteAttributes.familiarAttribute}})],1):e._e(),e.showFamiliarUserRecommendedCountText?n("div",{staticClass:"summary-section__count"},[n("p",{staticClass:"familiar-users-count"},[e._v(e._s(e.familiarCategoryName)+"好き"+e._s(e.count)+"人がオススメ!")])]):e._e()])},Fa=[],Ta=m(wa,Aa,Fa,!1,null,"5cda726f");const Ia=Ta.exports;var be={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetReportUser"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"reportIds"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ReportId"}}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reports"},arguments:[{kind:"Argument",name:{kind:"Name",value:"reportIds"},value:{kind:"Variable",name:{kind:"Name",value:"reportIds"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:133}};be.loc.source={body:`query GetReportUser($reportIds: [ReportId!]!) {
reports(reportIds: $reportIds) {
id
user {
id
name
}
}
}
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function V(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(i){V(i,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(i){V(i,e)}),t.definitions&&t.definitions.forEach(function(i){V(i,e)})}var Ye={};(function(){be.definitions.forEach(function(e){if(e.name){var n=new Set;V(e,n),Ye[e.name.value]=n}})})();function Ot(t,e){for(var n=0;n