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/SelectionIndex-svLc6VM7.js
import{aA as A,aB as K,aC as D,aD as M,aE as Q,V as C,n as y,H as Z,F as b,ar as W,aF as $,p as I,aG as Y,L as J,E as X,u as ee}from"./client-BmVmnFEC.js";import{P as te}from"./PvLogger-Bfc8O67g.js";import{V as ne,g as ie,m as ae}from"./makeGtmScript-B8HLg2s0.js";import{S as se}from"./SceneIcon-l1YgWyi_.js";import{X as re}from"./XImg-BILABif1.js";import{i as oe,g as U,_ as le}from"./noimage-Bo_AIiWw.js";import{m as ce,c as ue,e as de,p as me}from"./date-BYBoZiPG.js";import{d as pe}from"./loginSession-CK-JZbKZ.js";import"./index-B0CiJK2p.js";function fe(n){let{swiper:e,extendParams:t,on:i,emit:o}=n;t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function l(a){let r;return a&&typeof a=="string"&&e.isElement&&(r=e.el.querySelector(a)||e.hostEl.querySelector(a),r)?r:(a&&(typeof a=="string"&&(r=[...document.querySelectorAll(a)]),e.params.uniqueNavElements&&typeof a=="string"&&r&&r.length>1&&e.el.querySelectorAll(a).length===1?r=e.el.querySelector(a):r&&r.length===1&&(r=r[0])),a&&!r?a:r)}function m(a,r){const f=e.params.navigation;a=A(a),a.forEach(d=>{d&&(d.classList[r?"add":"remove"](...f.disabledClass.split(" ")),d.tagName==="BUTTON"&&(d.disabled=r),e.params.watchOverflow&&e.enabled&&d.classList[e.isLocked?"add":"remove"](f.lockClass))})}function s(){const{nextEl:a,prevEl:r}=e.navigation;if(e.params.loop){m(r,!1),m(a,!1);return}m(r,e.isBeginning&&!e.params.rewind),m(a,e.isEnd&&!e.params.rewind)}function c(a){a.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),o("navigationPrev"))}function v(a){a.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),o("navigationNext"))}function u(){const a=e.params.navigation;if(e.params.navigation=K(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(a.nextEl||a.prevEl))return;let r=l(a.nextEl),f=l(a.prevEl);Object.assign(e.navigation,{nextEl:r,prevEl:f}),r=A(r),f=A(f);const d=(g,p)=>{g&&g.addEventListener("click",p==="next"?v:c),!e.enabled&&g&&g.classList.add(...a.lockClass.split(" "))};r.forEach(g=>d(g,"next")),f.forEach(g=>d(g,"prev"))}function _(){let{nextEl:a,prevEl:r}=e.navigation;a=A(a),r=A(r);const f=(d,g)=>{d.removeEventListener("click",g==="next"?v:c),d.classList.remove(...e.params.navigation.disabledClass.split(" "))};a.forEach(d=>f(d,"next")),r.forEach(d=>f(d,"prev"))}i("init",()=>{e.params.navigation.enabled===!1?h():(u(),s())}),i("toEdge fromEdge lock unlock",()=>{s()}),i("destroy",()=>{_()}),i("enable disable",()=>{let{nextEl:a,prevEl:r}=e.navigation;if(a=A(a),r=A(r),e.enabled){s();return}[...a,...r].filter(f=>!!f).forEach(f=>f.classList.add(e.params.navigation.lockClass))}),i("click",(a,r)=>{let{nextEl:f,prevEl:d}=e.navigation;f=A(f),d=A(d);const g=r.target;let p=d.includes(g)||f.includes(g);if(e.isElement&&!p){const E=r.path||r.composedPath&&r.composedPath();E&&(p=E.find(S=>f.includes(S)||d.includes(S)))}if(e.params.navigation.hideOnClick&&!p){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===g||e.pagination.el.contains(g)))return;let E;f.length?E=f[0].classList.contains(e.params.navigation.hiddenClass):d.length&&(E=d[0].classList.contains(e.params.navigation.hiddenClass)),o(E===!0?"navigationShow":"navigationHide"),[...f,...d].filter(S=>!!S).forEach(S=>S.classList.toggle(e.params.navigation.hiddenClass))}});const N=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),s()},h=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),_()};Object.assign(e.navigation,{enable:N,disable:h,update:s,init:u,destroy:_})}function ve(n){let{swiper:e,extendParams:t,emit:i,once:o}=n;t({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function l(){if(e.params.cssMode)return;const c=e.getTranslate();e.setTranslate(c),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function m(){if(e.params.cssMode)return;const{touchEventsData:c,touches:v}=e;c.velocities.length===0&&c.velocities.push({position:v[e.isHorizontal()?"startX":"startY"],time:c.touchStartTime}),c.velocities.push({position:v[e.isHorizontal()?"currentX":"currentY"],time:D()})}function s(c){let{currentPos:v}=c;if(e.params.cssMode)return;const{params:u,wrapperEl:_,rtlTranslate:N,snapGrid:h,touchEventsData:a}=e,f=D()-a.touchStartTime;if(v<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(v>-e.maxTranslate()){e.slides.length1){const k=a.velocities.pop(),w=a.velocities.pop(),G=k.position-w.position,V=k.time-w.time;e.velocity=G/V,e.velocity/=2,Math.abs(e.velocity)150||D()-k.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=u.freeMode.momentumVelocityRatio,a.velocities.length=0;let d=1e3*u.freeMode.momentumRatio;const g=e.velocity*d;let p=e.translate+g;N&&(p=-p);let E=!1,S;const x=Math.abs(e.velocity)*20*u.freeMode.momentumBounceRatio;let L;if(pe.minTranslate())u.freeMode.momentumBounce?(p-e.minTranslate()>x&&(p=e.minTranslate()+x),S=e.minTranslate(),E=!0,a.allowMomentumBounce=!0):p=e.minTranslate(),u.loop&&u.centeredSlides&&(L=!0);else if(u.freeMode.sticky){let k;for(let w=0;w-p){k=w;break}Math.abs(h[k]-p){e.loopFix()}),e.velocity!==0){if(N?d=Math.abs((-p-e.translate)/e.velocity):d=Math.abs((p-e.translate)/e.velocity),u.freeMode.sticky){const k=Math.abs((N?-p:p)-e.translate),w=e.slidesSizesGrid[e.activeIndex];k{!e||e.destroyed||!a.allowMomentumBounce||(i("momentumBounce"),e.setTransition(u.speed),setTimeout(()=>{e.setTranslate(S),M(_,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(i("_freeModeNoMomentumRelease"),e.updateProgress(p),e.setTransition(d),e.setTranslate(p),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,M(_,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(p),e.updateActiveIndex(),e.updateSlidesClasses()}else if(u.freeMode.sticky){e.slideToClosest();return}else u.freeMode&&i("_freeModeNoMomentumRelease");(!u.freeMode.momentum||f>=u.longSwipesMs)&&(i("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:l,onTouchMove:m,onTouchEnd:s}})}const ge=n=>typeof n=="object"&&n!==null&&"calendars"in n;async function he(n){return fetch(`${Q()}/api/stocks/GetReservationCalendar`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(async e=>{const t=await e.text();if(!e.ok){console.error(n,e,t);return}const i=JSON.parse(t);return ge(i)?i:void 0})}const _e=C.extend({props:{url:{type:String,required:!0},text:{type:String,required:!0},isLastItem:{type:Boolean,default:!1}}});var ke=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("li",{staticClass:"item",class:{"item--last":e.isLastItem}},[t("anchor-link",{staticClass:"item__anchor",attrs:{to:e.url}},[t("span",[e._v(e._s(e.text))])])],1)},Se=[],Ce=y(_e,ke,Se,!1,null,"595642db");const ye=Ce.exports,Ee=C.extend({components:{BreadcrumbListItem:ye},computed:{breadcrumbs(){return this.$store.state.breadcrumbs.links}}});var we=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("nav",{staticClass:"breadcrumb"},[t("ol",{staticClass:"breadcrumb__list breadcrumb__list--restaurant"},e._l(e.breadcrumbs,function(i,o){return t("breadcrumb-list-item",e._b({key:o,staticClass:"breadcrumb__item",attrs:{"is-last-item":o===e.breadcrumbs.length-1}},"breadcrumb-list-item",i,!1))}),1)])},Ae=[],Ne=y(Ee,we,Ae,!1,null,"2aa8d952");const be=Ne.exports,Te=C.extend({props:{color:{type:String,default:"#000"},width:{type:Number,default:20},height:{type:Number,default:20},isBold:{type:Boolean,default:!1}}});var Ie=function(e,t){return e("figure",{class:t.data.staticClass},[t.isBold?e("svg",{attrs:{width:t.props.width,height:t.props.height,viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"m17.03 42.93c-.77 0-1.54-.29-2.12-.88-1.17-1.17-1.17-3.07 0-4.24l13.81-13.81-13.81-13.81c-1.17-1.17-1.17-3.07 0-4.24s3.07-1.17 4.24 0l15.93 15.93c.56.56.88 1.33.88 2.12s-.32 1.56-.88 2.12l-15.93 15.93c-.59.59-1.35.88-2.12.88z",fill:t.props.color}})]):e("svg",{attrs:{width:t.props.width,height:t.props.height,viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"m16.78 42.43c-.51 0-1.02-.2-1.41-.59-.78-.78-.78-2.05 0-2.83l15.01-15.01-15.01-15.01c-.78-.78-.78-2.05 0-2.83s2.05-.78 2.83 0l16.43 16.43c.78.78.78 2.05 0 2.83l-16.43 16.43c-.39.39-.9.59-1.41.59z",fill:t.props.color}})])])},xe=[],Fe=y(Te,Ie,xe,!0,null,null);const Pe=Fe.exports,Re=(n,e={})=>{const t=new URL(`${Z.RESERVATION}/${n}/reserve/`);return t.search=new URLSearchParams(e).toString(),t.toString()},Le={5:["ひっそりと佇む","おしゃれな空間"],6:["4人以上","会話が弾む明るい空間"],8:["カジュアル","気を張らない相手と"],9:["ちょっと贅沢","お祝いや記念日に"],10:["ゆっくり","会話を楽しむ"],17:["プライベートな空間で","ビジネスシーンやデートに"],18:["カジュアル","普段使いに"]},De=C.extend({components:{XImg:re,IconArrow:Pe,SceneIcon:se},props:{curation:{type:Object,required:!0},titlePrefix:{type:String,default:""},curationIndex:{type:Number,required:!0},restaurantStocks:{type:Array,default:()=>[]},isPcSize:{type:Boolean,required:!0},listAcpPageUrl:{type:String,default:""}},data(){return{swiperElement:null}},computed:{imageCount:()=>3,singleImageLayoutImageCount:()=>2,isPromotion(){return this.curation.id===4},shouldShowToAcpLink(){const n=[2,4];return this.curation.restaurants.length>=30&&n.includes(this.curation.id)},titleInViewActionType(){return b.INVIEW_CURATION_TITLE_SELECTION_ACP},readMoreInviewActionType(){return b.INVIEW_SELECT_ACP_TO_LIST_ACP_LINK},cassetInViewActionValue(){return b.INVIEW_RESTAURANT_CASSETTE_CAROUSEL_SELECTION_ACP},cassetClickActionValue(){return b.CLICK_RESTAURANT_CASSETTE_CAROUSEL_SELECTION_ACP}},watch:{restaurantStocks:{handler(){this.$nextTick(()=>{this.swiperElement&&this.swiperElement.navigation.update()})}}},async mounted(){const n=this.$refs.swiper;n&&n instanceof HTMLElement&&(this.swiperElement=new W(n,this.swiperOption(this.curationIndex||0)))},methods:{swiperOption(n){return{modules:[fe,ve],cssMode:!0,slidesPerView:"auto",loop:!1,navigation:{prevEl:`.swiper-button-prev--${n}`,nextEl:`.swiper-button-next--${n}`},freeMode:{enabled:!0,momentum:!1,momentumBounce:!1}}},isToday(n){return oe(n,new Date,"Asia/Tokyo")},displayDate(n){return this.isToday(n)?"今日":ce(n)},getCategoryAndAccsessInfo(n,e){const t=[];return e&&t.push(e),n.access&&n.access.nearestStationText&&(t.push(`${n.access.nearestStationText}駅`),t.push(`徒歩${n.access.minutesOnFootFromNearestStation}分`)),t.join(" ")},getDescriptions(n){return Le[n]||[]},getCalendarIconClass(n){switch(n){case"IMMEDIATE":return"selection-restaurant-calendar__item-icon--circle";case"REQUEST":return"selection-restaurant-calendar__item-icon--square";case"TEL":return"selection-restaurant-calendar__item-icon--tel";case"UNKNOWN":return"selection-restaurant-calendar__item-icon--hyphen selection-restaurant-calendar__item-icon--disabled";case"CLOSED":return"selection-restaurant-calendar__item-icon--hyphen selection-restaurant-calendar__item-icon--disabled";default:return""}},getTextClasses(n){return{"selection-restaurant-calendar__item-date--sunday":U(n)===0,"selection-restaurant-calendar__item-date--saturday":U(n)===6,"selection-restaurant-calendar__item-date--today":this.isToday(n)}},getStocksByRestaurantId(n){var e;return((e=this.restaurantStocks.find(t=>t.restaurantId===n))==null?void 0:e.stocks.stocks)||[]},reservationUrl(n,e){return n.type==="TEL"?this.isPcSize||e.reservationPhoneNumber.status!=="PUBLIC"?"":`tel:${e.reservationPhoneNumber.number}`:n.type==="IMMEDIATE"||n.type==="REQUEST"?Re(e.id,{reserveDate:ue(n.date)}):""},isSelectableStock(n){return n.type==="IMMEDIATE"||n.type==="REQUEST"||!this.isPcSize&&n.type==="TEL"},getRestaurantCassetteClickActionValue(n,e,t){return{restaurant_id:n,curation_id:e,order_num:t+1}},getCalendarClickActionType(n){switch(n){case $.IMMEDIATE:return b.CLICK_RESERVE_CALENDAR_DATE_LINK_SELECTION_ACP_IMMEDIATE;case $.REQUEST:return b.CLICK_RESERVE_CALENDAR_DATE_LINK_SELECTION_ACP_REQUEST;case $.TEL:return b.CLICK_TEL_CALENDAR_DATE_LINK_SELECTION_ACP;default:return""}},getCalendarClickActionValue(n,e,t){return{restaurant_id:n,curation_id:e,order_num:t+1}},getImageDimentions(n){switch(n){case 0:return 336;case 1:return 166;case 2:return 166;default:return 0}},getSlicedImages(n){return n.length<=this.singleImageLayoutImageCount?n.slice(0,1):n.slice(0,this.imageCount)},getDisplayBoundText(n){return!n||!n.upper?"営業時間外":`〜${n.upper}円`},isImageNearFirstView(n,e){return n<2&&e<2},onHeaderEnter(n,e){I({type:"action",actionType:this.titleInViewActionType,actionValue:{curation_id:n,order_num:e+1}})},onReadMoreEnter(n){I({type:"action",actionType:this.readMoreInviewActionType,actionValue:{curation_id:n}})},onCassetteEnter(n,e,t){I({type:"action",actionType:this.cassetInViewActionValue,actionValue:{restaurant_id:n,curation_id:e,order_num:t+1}})},onClickCassete(n,e,t){I({type:"action",actionType:this.cassetClickActionValue,actionValue:this.getRestaurantCassetteClickActionValue(n,e,t)})},onClickCalendar(n,e,t,i){I({type:"action",actionType:this.getCalendarClickActionType(n),actionValue:this.getCalendarClickActionValue(e,t,i)})}}});var Me=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("section",{staticClass:"selection-content"},[t("in-view",{staticClass:"selection-content-header",on:{enter:function(i){return e.onHeaderEnter(e.curation.id,e.curationIndex)}}},[t("h3",{staticClass:"selection-content-header__title"},[t("span",{staticClass:"selection-content-header__title-prefix"},[e._v(e._s(e.titlePrefix))]),e._v(e._s(e.curation.title)+" "),e.isPromotion?t("span",{staticClass:"selection-content-header__title-suffix"},[e._v("(PR)")]):e._e()]),t("in-view",{staticClass:"selection-content-header",on:{enter:function(i){return e.onReadMoreEnter(e.curation.id)}}},[e.shouldShowToAcpLink?t("anchor-link",{staticClass:"selection-content-header__link",attrs:{role:"img",to:e.listAcpPageUrl,"aria-label":`${e.curation.title}を一覧で見る`}},[t("icon-arrow",{attrs:{"is-bold":!0,width:20,height:20}})],1):e._e()],1)],1),e.getDescriptions(e.curation.id).length>0?t("div",{staticClass:"selection-content-description"},e._l(e.getDescriptions(e.curation.id),function(i){return t("p",{key:i,staticClass:"selection-content-description__item"},[e._v(e._s(i))])}),0):e._e(),t("div",{staticClass:"content-wrapper"},[t("div",{ref:"swiper",staticClass:"swiper"},[t("div",{staticClass:"swiper-wrapper selection-content__restaurant-container"},e._l(e.curation.restaurants,function({restaurant:i,images:o,seoCategory:l},m){return t("in-view",{key:i.id,staticClass:"swiper-slide",on:{enter:function(s){return e.onCassetteEnter(i.id,e.curation.id,m)}}},[t("div",{staticClass:"selection-restaurant"},[t("anchor-link",{staticClass:"selection-restaurant__restaurant-link",class:e.getStocksByRestaurantId(i.id).length===0?["selection-restaurant__restaurant-link--calendar-filler"]:[],attrs:{to:i.url,target:e.isPcSize?"_blank":"_self"},nativeOn:{click:function(s){return e.onClickCassete(i.id,e.curation.id,m)}}},[t("div",{staticClass:"selection-restaurant__photo-container"},[e._l(e.getSlicedImages(o),function(s,c){return t("x-img",{key:`${s.url}_${c}`,staticClass:"selection-restaurant-photo",class:o.length<=e.singleImageLayoutImageCount?["selection-restaurant-photo--single"]:["selection-restaurant-photo--multi"],attrs:{src:s.url,alt:s.alt,height:o.length<=e.singleImageLayoutImageCount?506:e.getImageDimentions(c),width:o.length<=e.singleImageLayoutImageCount?506:e.getImageDimentions(c),loading:e.isImageNearFirstView(e.curationIndex,m)?"eager":"lazy"}})}),o.length===0?t("img",{staticClass:"selection-restaurant-photo selection-restaurant-photo--single",attrs:{src:le,alt:"画像なし",height:506,width:506}}):e._e(),t("div",{staticClass:"selection-restaurant-name"},[t("h4",{staticClass:"selection-restaurant-name__text"},[e._v(e._s(i.name))])])],2),t("div",{staticClass:"selection-restaurant-info"},[t("p",{staticClass:"selection-restaurant-info__row"},[e._v(e._s(e.getCategoryAndAccsessInfo(i,l)))]),t("p",{staticClass:"selection-restaurant-info__row selection-restaurant-info__budget"},[t("span",{staticClass:"selection-restaurant-info__budget-dinner"},[t("scene-icon",{staticClass:"selection-restaurant-info__icon",attrs:{scene:"DINNER",width:12,height:12}}),t("span",{staticClass:"selection-restaurant-info__budget-text"},[e._v(e._s(e.getDisplayBoundText(i.budget.dinner)))])],1),t("span",{staticClass:"selection-restaurant-info__budget-lunch"},[t("scene-icon",{staticClass:"selection-restaurant-info__icon",attrs:{scene:"LUNCH",width:12,height:12}}),t("span",{staticClass:"selection-restaurant-info__budget-text"},[e._v(e._s(e.getDisplayBoundText(i.budget.lunch)))])],1)])])]),e.getStocksByRestaurantId(i.id).length>0?t("div",{staticClass:"selection-restaurant-calendar"},[e._l(e.getStocksByRestaurantId(i.id),function(s,c){return[e.isSelectableStock(s)?t("anchor-link",{key:c,staticClass:"selection-restaurant-calendar__item",attrs:{to:e.reservationUrl(s,i)},nativeOn:{click:function(v){return e.onClickCalendar(s.type,i.id,e.curation.id,m)}}},[t("p",{staticClass:"selection-restaurant-calendar__item-date",class:e.getTextClasses(s.date)},[e._v(e._s(e.displayDate(s.date))+" ")]),t("span",{staticClass:"selection-restaurant-calendar__item-icon",class:e.getCalendarIconClass(s.type)})]):t("div",{key:`disabled_${c}`,staticClass:"selection-restaurant-calendar__item selection-restaurant-calendar__item--disabled"},[t("p",{staticClass:"selection-restaurant-calendar__item-date",class:e.getTextClasses(s.date)},[e._v(e._s(e.displayDate(s.date))+" ")]),t("span",{staticClass:"selection-restaurant-calendar__item-icon",class:e.getCalendarIconClass(s.type)})])]})],2):e._e()],1)])}),1),t("div",{staticClass:"swiper-button-prev",class:`swiper-button-prev--${e.curationIndex}`}),t("div",{staticClass:"swiper-button-next",class:`swiper-button-next--${e.curationIndex}`})])])],1)},$e=[],Be=y(De,Me,$e,!1,null,"55ef9ba8");const Oe=Be.exports,Ve=C.extend({props:{internalLinks:{type:Object,required:!0}},data(){return{isOpen:new Array(this.internalLinks.selectAcpPage.length).fill(!1)}},methods:{handleToggle(n){this.isOpen.splice(n,1,!this.isOpen[n])}}});var Ue=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"internal-link-section"},[t("p",{staticClass:"internal-link-section__title"},[e._v("他の条件で探してみませんか?")]),t("div",{staticClass:"internal-link-section-contents"},e._l(e.internalLinks.selectAcpPage,function(i,o){return t("div",{key:i.title},[t("div",{staticClass:"internal-link-section-contents__title",class:{"internal-link-section-contents__title--open":e.isOpen[o]},on:{click:function(l){return e.handleToggle(o)}}},[e._v(e._s(i.title))]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isOpen[o],expression:"isOpen[index]"}]},e._l(i.links,function(l){return t("div",{key:l.text,staticClass:"internal-link-section-contents__link"},[t("anchor-link",{staticClass:"internal-link-section-contents__link-text",attrs:{to:l.url}},[e._v(e._s(l.text))])],1)}),0)])}),0)])},ze=[],qe=y(Ve,Ue,ze,!1,null,"a2f0fc51");const He=qe.exports,je=C.extend({props:{color:{type:String,default:"#000"},width:{type:Number,default:20},height:{type:Number,default:20}}});var Ge=function(e,t){return e("figure",{class:t.data.staticClass},[e("svg",{attrs:{width:t.props.width,height:t.props.height,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("g",[e("path",{attrs:{fill:t.props.color,d:"M37.886 22.07c-.564-.724-1.25-1.35-1.886-1.978-1.64-1.448-3.501-2.485-5.068-4.005-3.648-3.523-4.457-9.338-2.13-13.801-2.327.555-4.359 1.81-6.097 3.185-6.342 5.018-8.84 13.873-5.852 21.473.098.241.196.483.196.796 0 .531-.368 1.014-.857 1.207-.564.241-1.151.096-1.616-.29a1.403 1.403 0 0 1-.343-.41c-2.767-3.45-3.208-8.396-1.347-12.353-4.089 3.281-6.317 8.83-5.999 14.066.147 1.206.294 2.413.71 3.62.343 1.447 1.004 2.895 1.739 4.173 2.644 4.174 7.223 7.166 12.144 7.77 5.24.65 10.847-.29 14.863-3.861 4.48-4.005 6.048-10.423 3.746-15.924l-.318-.628c-.514-1.11-1.885-3.04-1.885-3.04Zm-7.738 15.2c-.685.58-1.812 1.207-2.693 1.448-2.742.965-5.485-.386-7.1-1.978 2.913-.676 4.651-2.799 5.165-4.946.417-1.93-.367-3.523-.685-5.38-.294-1.786-.245-3.306.416-4.971.465.917.955 1.834 1.543 2.557 1.885 2.413 4.848 3.475 5.485 6.756.097.338.146.676.146 1.038.074 1.978-.808 4.15-2.277 5.477Z"}}),e("path",{attrs:{d:"m0 0h48v48h-48z",fill:"none"}})])])])},Ke=[],Qe=y(je,Ge,Ke,!0,null,null);const Ze=Qe.exports,We=C.extend({props:{color:{type:String,default:"#000"},width:{type:Number,default:20},height:{type:Number,default:20}}});var Ye=function(e,t){return e("figure",{class:t.data.staticClass},[e("svg",{attrs:{width:t.props.width,height:t.props.height,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("g",[e("path",{attrs:{fill:t.props.color,d:"M38 26v6l-6-6H20a4 4 0 0 1-4-4V8c0-2.2 1.8-4 4-4h20a4 4 0 0 1 4 4v14a4 4 0 0 1-4 4h-2Zm-6 4v4a4 4 0 0 1-4 4H16l-6 6v-6H8a4 4 0 0 1-4-4V20c0-2.2 1.8-4 4-4h4v6a8 8 0 0 0 8 8h12Z"}}),e("path",{attrs:{d:"m0 0h48v48h-48z",fill:"none"}})])])])},Je=[],Xe=y(We,Ye,Je,!0,null,null);const et=Xe.exports,tt=C.extend({props:{color:{type:String,default:"#000"},width:{type:Number,default:20},height:{type:Number,default:20}}});var nt=function(e,t){return e("figure",{class:t.data.staticClass},[e("svg",{attrs:{width:t.props.width,height:t.props.height,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("g",[e("path",{attrs:{fill:t.props.color,d:"M10 16.3V12c0-2.2 1.8-4 4-4h20c2.2 0 4 1.8 4 4v4.32c-2.32.82-4 3.02-4 5.62V26H14v-4.08c0-2.58-1.68-4.8-4-5.62ZM40 18c-2.2 0-4 1.8-4 4v6H12v-6a4 4 0 1 0-8 0v10c0 2.2 1.8 4 4 4v4h4v-4h24v4h4v-4c2.2 0 4-1.8 4-4V22c0-2.2-1.8-4-4-4Z"}}),e("path",{attrs:{d:"m0 0h48v48h-48z",fill:"none"}})])])])},it=[],at=y(tt,nt,it,!0,null,null);const st=at.exports,rt=C.extend({props:{color:{type:String,default:"#000"},width:{type:Number,default:20},height:{type:Number,default:20}}});var ot=function(e,t){return e("figure",{class:t.data.staticClass},[e("svg",{attrs:{width:t.props.width,height:t.props.height,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("g",[e("g",{attrs:{"clip-path":"url(#a)"}},[e("path",{attrs:{fill:t.props.color,"fill-rule":"evenodd",d:"M31.38 13.722c.484-.34.938-.726 1.326-1.16.706-.79 1.294-1.85 1.294-3.134 0-1.332-.634-2.376-1.446-3.106-.772-.696-1.744-1.154-2.672-1.466C28.02 4.226 25.784 4 24 4c-1.784 0-4.02.226-5.882.856-.928.312-1.9.77-2.672 1.466C14.634 7.052 14 8.096 14 9.428c0 1.284.588 2.344 1.294 3.132.395.438.84.827 1.326 1.162C10.65 16.568 6 22.67 6 30c0 5.112 2.04 8.772 5.532 11.05C14.882 43.234 19.34 44 24 44s9.12-.766 12.468-2.95C39.96 38.772 42 35.11 42 30c0-7.33-4.65-13.432-10.62-16.278ZM18.12 9.294a.621.621 0 0 0-.12.138c0 .02.016.172.274.462.28.314.75.67 1.404 1.008C20.998 11.586 22.684 12 24 12c1.316 0 3.004-.414 4.322-1.098.654-.338 1.122-.694 1.404-1.008.258-.29.272-.44.274-.462a.618.618 0 0 0-.12-.138c-.212-.188-.62-.426-1.278-.65C27.294 8.204 25.53 8 24 8c-1.53 0-3.294.202-4.602.644-.66.224-1.068.46-1.278.65Zm4.668 12.812a1.998 1.998 0 0 0-2.71-.95 1.999 1.999 0 0 0-.866 2.738L20.264 26H20a2 2 0 0 0 0 4h2v1h-2a2 2 0 0 0 0 4h2v1a2 2 0 0 0 4 0v-1h2a2 2 0 0 0 0-4h-2v-1h2a2 2 0 0 0 0-4h-.264l1.052-2.106a2.001 2.001 0 1 0-3.576-1.788L24 24.526l-1.212-2.42Z","clip-rule":"evenodd"}})]),e("defs",[e("clipPath",{attrs:{id:"a"}},[e("path",{attrs:{fill:"#fff",d:"M0 0h48v48H0z"}})])]),e("path",{attrs:{d:"m0 0h48v48h-48z",fill:"none"}})])])])},lt=[],ct=y(rt,ot,lt,!0,null,null);const ut=ct.exports,dt=C.extend({props:{color:{type:String,default:"#000"},width:{type:Number,default:20},height:{type:Number,default:20}}});var mt=function(e,t){return e("figure",{class:t.data.staticClass},[e("svg",{attrs:{width:t.props.width,height:t.props.height,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{fill:t.props.color}},[e("path",{attrs:{d:"m36.13 3.5s-.07 0-.1 0c-.02 0-.04 0-.07 0-.47-.04-1.99.14-3.09 2.76-.02.05-.04.1-.05.15-1.74 5.82-4.42 14.75-4.69 15.49l-.04.1c-.59 1.65-.94 2.64-.43 3.64.45.87 1.32 1.18 2.1 1.41l4.86 1.39v14.56c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-38c0-.83-.67-1.5-1.5-1.5zm-5.54 20.66s-.04-.01-.06-.02c.1-.31.25-.73.39-1.14l.04-.1c.27-.75 2.35-7.66 3.67-12.08v14.49l-4.04-1.16z"}}),e("path",{attrs:{d:"m20.17 3.5c-.83 0-1.5.67-1.5 1.5v11.4c0 .76-.62 1.38-1.38 1.38h-.77v-12.78c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v12.78h-.77c-.76 0-1.38-.62-1.38-1.38v-11.4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v11.4c0 2.41 1.96 4.38 4.38 4.38h.77v22.22c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-22.22h.77c2.41 0 4.38-1.96 4.38-4.38v-11.4c0-.83-.67-1.5-1.5-1.5z"}})])])])},pt=[],ft=y(dt,mt,pt,!0,null,null);const vt=ft.exports;var R={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SelectionCurationSection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SelectionAcpCuration"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"restaurants"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"restaurant"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"budget"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lunch"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"upper"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dinner"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"upper"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"access"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nearestStationText"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"minutesOnFootFromNearestStation"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"reservationPhoneNumber"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"number"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"images"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"alt"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"seoCategory"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:470}};R.loc.source={body:`fragment SelectionCurationSection on SelectionAcpCuration { id title restaurants { restaurant { id url name budget { lunch { upper } dinner { upper } } access { nearestStationText minutesOnFootFromNearestStation } reservationPhoneNumber { status number } } images { url alt } seoCategory } } `,name:"GraphQL request",locationOffset:{line:1,column:1}};function F(n,e){if(n.kind==="FragmentSpread")e.add(n.name.value);else if(n.kind==="VariableDefinition"){var t=n.type;t.kind==="NamedType"&&e.add(t.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(i){F(i,e)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(i){F(i,e)}),n.definitions&&n.definitions.forEach(function(i){F(i,e)})}var B={};(function(){R.definitions.forEach(function(e){if(e.name){var t=new Set;F(e,t),B[e.name.value]=t}})})();function z(n,e){for(var t=0;t0;){var m=l;l=new Set,m.forEach(function(s){if(!o.has(s)){o.add(s);var c=B[s]||new Set;c.forEach(function(v){l.add(v)})}})}return o.forEach(function(s){var c=z(n,s);c&&t.definitions.push(c)}),t}gt(R,"SelectionCurationSection");var T={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SelectionIndexPage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"selectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SelectionId"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"selectionAcpPage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"selectionId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"listAcpPageUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"breadcrumbs"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"meta"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"curationGroups"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"curations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SelectionCurationSection"},directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"internalLinks"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"selectAcpPage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"links"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"entity"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{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:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isRealName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"followingCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"followerCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reportCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"goneCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"wannagoCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currentReservationCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"topUserProfile"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isPro"},arguments:[],directives:[]}]}},{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:[]}]}}]}}]}}]}}],loc:{start:0,end:1046}};T.loc.source={body:`#import "@/components/core/shared/organisms/Selection/SelectionCurationSection.graphql" #import "@/apis/graphql/fragments/loginSession.graphql" query SelectionIndexPage($selectionId: SelectionId!) { selectionAcpPage(id: $selectionId) { id listAcpPageUrl updatedAt breadcrumbs { text url } meta { title description } content { title curationGroups { name curations { ...SelectionCurationSection } } } internalLinks { selectAcpPage { title links { text url } } } } entity { loginSession { ...loginSessionFragment } currentUser { id url name isRealName followingCount followerCount reportCount goneCount wannagoCount currentReservationCount topUserProfile { isPro } notifications { html link iconUrl createdAt } } } } `,name:"GraphQL request",locationOffset:{line:1,column:1}};var q={};function j(n){return n.filter(function(e){if(e.kind!=="FragmentDefinition")return!0;var t=e.name.value;return q[t]?!1:(q[t]=!0,!0)})}T.definitions=T.definitions.concat(j(R.definitions));T.definitions=T.definitions.concat(j(pe.definitions));function P(n,e){if(n.kind==="FragmentSpread")e.add(n.name.value);else if(n.kind==="VariableDefinition"){var t=n.type;t.kind==="NamedType"&&e.add(t.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(i){P(i,e)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(i){P(i,e)}),n.definitions&&n.definitions.forEach(function(i){P(i,e)})}var O={};(function(){T.definitions.forEach(function(e){if(e.name){var t=new Set;P(e,t),O[e.name.value]=t}})})();function H(n,e){for(var t=0;t0;){var m=l;l=new Set,m.forEach(function(s){if(!o.has(s)){o.add(s);var c=O[s]||new Set;c.forEach(function(v){l.add(v)})}})}return o.forEach(function(s){var c=H(n,s);c&&t.definitions.push(c)}),t}ht(T,"SelectionIndexPage");const _t=""+new URL("header-BFF33Mv8-4024ec.jpg",import.meta.url).href,kt=C.extend({components:{BreadcrumbList:be,SelectionCurationSection:Oe,IconFire:Ze,IconConversation:et,IconSofa:st,IconWallet:ut,IconGenre:vt,InternalLinkSection:He},mixins:[te,ne],layout(n){return Y()?J(n)?"mobile/webview":"mobile/selection":"pc/selection"},async asyncData({app:n,store:e,error:t,params:i}){var v,u;const o=await n.$urql.value.query(T,{selectionId:String(i.selectionId)},{requestPolicy:"network-only"}).toPromise(),{error:l,data:m}=o;if(l&&console.error(l),!m||l!=null&&l.networkError)return t({statusCode:500,message:X.ON_FAILED_CONNECT_API_SERVER}),null;if(!m||!m.selectionAcpPage)return t({statusCode:404,message:"not found"}),null;e.dispatch("session/setSessionUser",{loginSession:(v=m==null?void 0:m.entity)==null?void 0:v.loginSession,currentUser:(u=m==null?void 0:m.entity)==null?void 0:u.currentUser});const{breadcrumbs:s}=m.selectionAcpPage,c=s.map(_=>({url:_.url,text:_.text}));return e.dispatch("breadcrumbs/setBreadcrumbs",[{url:"https://retty.me/",text:"Rettyグルメ"},...c]),{selectionAcpPage:m.selectionAcpPage,breadcrumbs:s,entity:m.entity}},data(){return{selectionAcpPage:{},restaurantStocks:[],entity:{},isPcSize:!1}},head(){var l,m,s,c,v,u,_,N,h,a;const e={"@context":"http://schema.org","@type":"BreadcrumbList",itemListElement:[{url:"https://retty.me/",text:"Rettyグルメ"},...this.selectionAcpPage.breadcrumbs].map((r,f)=>({"@type":"ListItem",position:f+1,item:{"@id":r.url,name:r.text}}))},t=((l=this.selectionAcpPage)==null?void 0:l.id)??"",i={"@context":"https://schema.org","@type":"ItemList",itemListElement:[...new Set(this.restaurants.map(r=>r.url))].map((r,f)=>({"@type":"ListItem",position:f+1,url:r}))},o={userId:((c=(s=(m=this.entity)==null?void 0:m.loginSession)==null?void 0:s.session)==null?void 0:c.userId)||null,ruid:ie(document.cookie,"_ruid")||null};return{__dangerouslyDisableSanitizers:["script"],title:((u=(v=this.selectionAcpPage)==null?void 0:v.meta)==null?void 0:u.title)??"",meta:[{hid:"description",name:"description",content:((N=(_=this.selectionAcpPage)==null?void 0:_.meta)==null?void 0:N.description)??""},{hid:"og:description",property:"og:description",content:((a=(h=this.selectionAcpPage)==null?void 0:h.meta)==null?void 0:a.description)??""}],script:[{type:"application/ld+json",innerHTML:JSON.stringify(i)},{type:"application/ld+json",innerHTML:JSON.stringify(e)},...ae(o)],link:[{rel:"preload",href:_t,as:"image",fetchpriority:"high"},t?{hid:"canonical",rel:"canonical",href:`${ee()}/selection/area/${t}/`}:{}]}},computed:{restaurantIds(){return this.groups?this.groups.map(n=>n.curations.map(e=>e.restaurants.map(({restaurant:t})=>t.id))).flat(3):[]},restaurants(){return this.groups?this.groups.flatMap(n=>n.curations.flatMap(e=>e.restaurants.map(({restaurant:t})=>t))):[]},navigation(){const n={最新のオススメ:{label:"オススメ",anchorId:"anchor-recommendation",actionValue:"recommendation"},雰囲気からさがす:{label:"雰囲気",anchorId:"anchor-atmosphere",actionValue:"atmosphere"},席にこだわる:{label:"席",anchorId:"anchor-seat",actionValue:"seat"},ジャンルから探す:{label:"ジャンル",anchorId:"anchor-category",actionValue:"genre"}};return this.groups.map(e=>n[e.name]||null).filter(e=>e)},groups(){return this.selectionAcpPage.content.curationGroups},shouldShowInternalLinks(){return!this.selectionAcpPage.internalLinks||!this.selectionAcpPage.internalLinks.selectAcpPage||!this.selectionAcpPage.internalLinks.selectAcpPage.length?!1:this.selectionAcpPage.internalLinks.selectAcpPage.some(n=>n.links.some(e=>e))},updatedAtISO(){const{updatedAt:n}=this.selectionAcpPage;return n?new Date(n).toISOString():""},formattedUpdatedAtText(){const n=this.updatedAtISO;return n?de(n,"yyyy年M月d日"):""}},async mounted(){this.isPcSize=window.innerWidth>=1280,window.history.scrollRestoration="auto";const n=await this.fetchCalendar();this.restaurantStocks=this.convertCalendarToStock(n)},methods:{async fetchCalendar(){const n=await he({restaurant_ids:this.restaurantIds,days_from_today:5});return n||{calendars:[]}},convertCalendarToStock(n){const e=[];return this.restaurantIds.forEach((t,i)=>{const o=n.calendars[i].days.map(l=>({type:(()=>{switch(l.type){case"DATE_RESERVATION_TYPE_IMMEDIATE":return"IMMEDIATE";case"DATE_RESERVATION_TYPE_REQUEST":return"REQUEST";case"DATE_RESERVATION_TYPE_TEL":return"TEL";default:return"UNKNOWN"}})(),date:me(`${l.date.year}-${l.date.month}-${l.date.day}`,"yyyy-M-d",new Date)}));o.every(l=>l.type==="UNKNOWN")||e.push({restaurantId:t,stocks:{stocks:o}})}),e},onClickNav(n,e){I({type:"action",actionType:b.CLICK_SELECTION_ACP_NAVIGATION,actionValue:{order_num:e,navigation_type:n}})},getAnchorId(n){switch(n){case"最新のオススメ":return"anchor-recommendation";case"雰囲気からさがす":return"anchor-atmosphere";case"席にこだわる":return"anchor-seat";case"ジャンルから探す":return"anchor-category";default:return""}},getGroupIcon(n){switch(n){case"最新のオススメ":return"icon-fire";case"雰囲気からさがす":return"icon-conversation";case"席にこだわる":return"icon-sofa";case"ジャンルから探す":return"icon-genre";default:return""}},getCurationTitlePrefix(n){switch(n){case"最新のオススメ":return"オススメ";case"雰囲気からさがす":return"雰囲気";case"席にこだわる":return"席";case"ジャンルから探す":return"ジャンル";default:return""}},getCurationIndex(n){let e=0;return this.groups.find(t=>{const i=t.curations.findIndex(o=>o.id===n);return e+=i!==-1?i:t.curations.length,i!==-1}),e}}});var St=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t("breadcrumb-list",{staticClass:"breadcrumbs"}),t("header",{staticClass:"header"},[t("div",{staticClass:"header__inner"},[t("div",{staticClass:"header__inner-wrapper"},[t("h1",{staticClass:"header__title"},[e._v(e._s(e.selectionAcpPage.content.title))])])])]),e.navigation.length>1?t("nav",{staticClass:"selection-navigation"},[t("ul",{staticClass:"selection-navigation__inner"},e._l(e.navigation,function(i,o){return t("li",{key:i.anchorId,staticClass:"selection-navigation__item"},[t("a",{staticClass:"selection-navigation__anchor",attrs:{href:`#${i.anchorId}`},on:{click:function(l){return e.onClickNav(i.actionValue,o)}}},[t("span",{staticClass:"selection-navigation__item-em"},[e._v(e._s(i.label))]),e._v("から探す ")])])}),0)]):e._e(),t("p",{staticClass:"promotion-text"},[e._v("ネット予約店舗優先表示")]),t("article",{staticClass:"selection-page-article"},[t("div",{staticClass:"selection-page-article__group-wrapper"},e._l(e.groups,function(i){return t("div",{key:i.name,staticClass:"selection-page-article__group"},[i.curations?[t("div",{staticClass:"selection-page-article__group-header",attrs:{id:e.getAnchorId(i.name)}},[t(e.getGroupIcon(i.name),e._b({tag:"component",staticClass:"selection-page-article__group-icon"},"component",{color:"#ff5714",height:32,width:32},!1)),t("h2",{staticClass:"selection-page-article__group-title"},[e._v(e._s(i.name))])],1),e._l(i.curations,function(o){return t("selection-curation-section",{key:o.title,staticClass:"selection-page-article__content",attrs:{curation:o,"curation-index":e.getCurationIndex(o.id),"restaurant-stocks":e.restaurantStocks,"is-pc-size":e.isPcSize,"title-prefix":e.getCurationTitlePrefix(i.name),"list-acp-page-url":e.selectionAcpPage.listAcpPageUrl}})})]:e._e()],2)}),0),t("div",{staticClass:"select-acp-description"},[t("p",{staticClass:"select-acp-description__text"},[e._v(" "+e._s(e.selectionAcpPage.content.title)+"で行きたいお店は見つかりましたか?"),t("br"),e._v(" 実名口コミNo.1の「Retty」ではリアルな口コミから、みんなが予約している人気なお店やPayPayポイントがもらえてお得に予約できるお店、接待や女子会など利用シーンに合った雰囲気・座席があるお店、みんなのオススメのお店、オシャレで美味しいお店が見つかります。 "),e.formattedUpdatedAtText?t("time",{attrs:{datetime:e.updatedAtISO}},[e._v("("+e._s(e.formattedUpdatedAtText)+"更新)")]):e._e()])]),e.shouldShowInternalLinks?t("internal-link-section",{attrs:{"internal-links":e.selectionAcpPage.internalLinks}}):e._e()],1)],1)},Ct=[],yt=y(kt,St,Ct,!1,null,"3377f8ab");const Pt=yt.exports;export{Pt as default};