1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9143],{6831:function(e,t,n){var o,r;e.exports=(o=n(7484),r={name:"ja",weekdays:"æ¥ææ¥_æææ¥_ç«ææ¥_æ°´ææ¥_æ¨ææ¥_éææ¥_åææ¥".split("_"),weekdaysShort:"æ¥_æ_ç«_æ°´_æ¨_é_å".split("_"),weekdaysMin:"æ¥_æ_ç«_æ°´_æ¨_é_å".split("_"),months:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),monthsShort:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),ordinal:function(e){return e+"æ¥"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYYå¹´MæDæ¥",LLL:"YYYYå¹´MæDæ¥ HH:mm",LLLL:"YYYYå¹´MæDæ¥ dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYYå¹´MæDæ¥",lll:"YYYYå¹´MæDæ¥ HH:mm",llll:"YYYYå¹´MæDæ¥(ddd) HH:mm"},meridiem:function(e){return e<12?"åå":"åå¾"},relativeTime:{future:"%så¾",past:"%så",s:"æ°ç§",m:"1å",mm:"%då",h:"1æé",hh:"%dæé",d:"1æ¥",dd:"%dæ¥",M:"1ã¶æ",MM:"%dã¶æ",y:"1å¹´",yy:"%då¹´"}},(o&&"object"==typeof o&&"default"in o?o:{default:o}).default.locale(r,null,!0),r)},178:function(e){var t,n,o;e.exports=(t="minute",n=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g,function(e,r,l){var a=r.prototype;l.utc=function(e){var t={date:e,utc:!0,args:arguments};return new r(t)},a.utc=function(e){var n=l(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},a.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var i=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),i.call(this,e)};var s=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else s.call(this)};var c=a.utcOffset;a.utcOffset=function(e,r){var l=this.$utils().u;if(l(e))return this.$u?0:l(this.$offset)?c.call(this):this.$offset;if("string"==typeof e&&null===(e=function(e){void 0===e&&(e="");var t=e.match(n);if(!t)return null;var r=(""+t[0]).match(o)||["-",0,0],l=r[0],a=60*+r[1]+ +r[2];return 0===a?0:"+"===l?a:-a}(e)))return this;var a=16>=Math.abs(e)?60*e:e;if(0===a)return this.utc(r);var i=this.clone();if(r)return i.$offset=a,i.$u=!1,i;var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(i=this.local().add(a+s,t)).$offset=a,i.$x.$localOffset=s,i};var d=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var u=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var m=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return m.call(this,e,t,n);
1var o=this.local(),r=l(e).local();return m.call(o,r,t,n)}})},2451:function(e,t,n){"use strict";n.d(t,{O:function(){return formatDateInJst}});var o=n(7484),r=n.n(o),l=n(178),a=n.n(l);r().extend(a());var formatDateInJst=function(e){var t=r()(null!=e?e:null);if(t.isValid())return t.utcOffset(540).format("YYYY-MM-DD")}},9143:function(e,t,n){"use strict";n.d(t,{Hb:function(){return DetailPage}});var o=n(9499);n(7794);var r=n(5012);n(1064),n(1707),n(4472);var l=n(4730),a=n(6010),i=n(8288),s=n(402),c=n(2207),d=n(3476),u=n(2869),m=n(3611),p=n(7294),h=n(6835),f=n(8583),x=n(9128),v=n(7812),b={NAME:"favoriteStore",MAX_COUNT:4,EXPIRE_DAYS:365},g=/^[0-9A-Za-z_-]+$/,getFavoriteStoreCodes=function(){if("undefined"==typeof document)return[];var e=document.cookie.match(new RegExp("".concat(b.NAME,"=([^;]+)")));if(!e)return[];var t=decodeURIComponent(e[1]).split(",").map(function(e){return e.trim()}).filter(function(e){return g.test(e)});return(0,v.Z)(new Set(t)).slice(0,b.MAX_COUNT)},setFavoriteStoreCodes=function(e){if("undefined"!=typeof document){var t=86400*b.EXPIRE_DAYS;document.cookie="".concat(b.NAME,"=").concat(encodeURIComponent(e.join(",")),"; path=/; max-age=").concat(t,"; SameSite=Lax")}},toggleFavoriteStoreCode=function(e){var t=getFavoriteStoreCodes();if(t.includes(e)){var n=t.filter(function(t){return t!==e});return setFavoriteStoreCodes(n),{codes:n,result:"removed"}}if(t.length>=b.MAX_COUNT)return{codes:t,result:"limit_exceeded"};var o=[].concat((0,v.Z)(t),[e]);return setFavoriteStoreCodes(o),{codes:o,result:"added"}},removeFavoriteStoreCodes=function(e){var t=getFavoriteStoreCodes(),n=t.filter(function(t){return!e.includes(t)});return n.length!==t.length&&setFavoriteStoreCodes(n),n},useFavoriteStoreCodes=function(){var e=(0,f.KO)(x.yp),t=(0,h.Z)(e,2),n=t[0],o=t[1];return(0,p.useEffect)(function(){o(getFavoriteStoreCodes())},[o]),{favoriteStoreCodes:n,toggleFavoriteStore:(0,p.useCallback)(function(e){var t=toggleFavoriteStoreCode(e),n=t.codes,r=t.result;return"limit_exceeded"!==r&&o(n),r},[o]),removeFavoriteStores:(0,p.useCallback)(function(e){o(removeFavoriteStoreCodes(e))},[o])}},y=n(5893),j=(0,p.memo)(function(e){var t=e.storeCode,n=e.className,o=useFavoriteStoreCodes(),l=o.favoriteStoreCodes,i=o.toggleFavoriteStore,s=l.includes(t);return(0,y.jsxs)("button",{type:"button","aria-pressed":s,onClick:function(){"limit_exceeded"===i(t)&&alert("ããè¡ãåºèã¯".concat(b.MAX_COUNT,"ä»¶ã¾ã§ç»é²ã§ãã¾ãã\nç»é²æ¸ã¿ã®åºèãè§£é¤ãã¦ããå度ã試ããã ããã"))},className:(0,a.Z)("flex items-center justify-center gap-2 rounded-full px-6 py-3 text-sm font-bold transition-colors",s?"border border-orange bg-white text-orange":"bg-orange text-white",n),children:[(0,y.jsx)("span",{"aria-hidden":"true",children:"â
"}),s?r.wc:r.$X,!s&&(0,y.jsx)("span",{"aria-hidden":"true",className:"ml-auto",children:"ï¼"})]})}),w=n(7354),k=n(5080),T=n(5633),S=n(589),N={shopName:0,lanlng:1,placeId:2},O=(0,p.memo)(function(e){var t,n,o=e.content,l=e.shopInfo,a=l.zipCode,i=l.address,s=l.latitude,c=l.longitude,u=l.mapStoreNameDisplayType,m=l.nameFromMaster,p=l.placeId,h=o.remarks,f=o.remarkFontSizeType,x=(null==i?void 0:i.length)>0,v=(null==a?void 0:a.length)>0&&x,b=function(){var getDefaultRouteUrl=function(){return"https://www.google.com/maps/place?daddr=".concat("".concat(i," ").concat(m),"&saddr=My+Location")};switch(u){case N.shopName:return getDefaultRouteUrl();case N.lanlng:return"https://www.google.com/maps/dir/?api=1&destination=".concat("".concat(s,",").concat(c));case N.placeId:return p?"https://www.google.com/maps/dir/?api=1&origin=My+Location&destination=".concat("".concat(i," ").concat(m),"&destination_place_id=",p):getDefaultRouteUrl();default:return getDefaultRouteUrl()}}();return(0,y.jsxs)("div",{children:[(0,S.u)(o.remarkType,null==h?void 0:h.top)&&(0,y.jsx)(T.M,{position:"top",remarkFontSizeType:null!=f?f:0,children:null!==(t=null==h?void 0:h.top)&&void 0!==t?t:""}),v?(0,y.jsxs)("div",{className:"text-text",children:[(0,y.jsxs)("p",{children:["ã",a]}),(0,y.jsx)("p",{children:i})]}):x?(0,y.jsx)("div",{className:"text-text",children:(0,y.jsx)("p",{children:i})}):null,(0,S.L)(o.remarkType,null==h?void 0:h.bottom)&&(0,y.jsx)(T.M,{position:"bottom",remarkFontSizeType:null!=f?f:0,children:null!==(n=null==h?void 0:h.bottom)&&void 0!==n?n:""}),(0,y.jsxs)("div",{className:"mt-4 flex flex-wrap gap-3 md:gap-4",children:[(0,y.jsx)(d.z,{priority:"secondary",href:"#GoogleMap",className:"flex-1 md:flex-none",onClick:function(e){var t;null==e||e.preventDefault(),null===(t=document.getElementById("GoogleMap"))||void 0===t||t.scrollIntoView({behavior:"smooth"})},children:"ãããã確èªãã"}),x&&r.dA&&(0,y.jsx)(d.z,{priority:"secondary",href:b,className:"flex-1 md:flex-none",target:"_blank",rel:"noopener",children:"ã«ã¼ããæ¤ç´¢"})]})]})}),I=n(1664),_=n.n(I),C=(0,p.memo)(function(e){var t,n,o=e.shopInfo,r=e.content,l=o.tel,a=r.remarks,i=r.remarkFontSizeType,s=(0,S.u)(r.remarkType,null==a?void 0:a.top),c=(0,S.L)(r.remarkType,null==a?void 0:a.bottom);return s||c||l?(0,y.jsxs)("div",{className:"md:py-0.5",children:[s&&(0,y.jsx)(T.M,{position:"top",remarkFontSizeType:null!=i?i:0,children:null!==(t=null==a?void 0:a.top)&&void 0!==t?t:""}),l&&(0,y.jsx)(_(),{href:"tel:".concat(l),className:"text-primary hover:underline",children:l}),c&&(0,y.jsx)(T.M,{position:"bottom",remarkFontSizeType:null!=i?i:0,children:null!==(n=null==a?void 0:a.bottom)&&void 0!==n?n:""})]}):(0,y.jsx)("div",{className:"flex h-full px-0.5 pt-3 max-md:pt-2",children:(0,y.jsx)("hr",{className:"h-0.5 w-4 border-text"})})}),D=n(3257),B=n(7484),M=n.n(B),P=n(8723);n(6831);var A=n(6607),L=n.n(A),H=n(8029),E=n.n(H);M().extend(L());var z=(0,p.memo)(function(e){var t,n,o=e.shopInfo,l=e.content,a=e.dayJs,i=o.openStatus,s=o.establishmentDate,c=o.businessHours,u=o.additionalBusinessHours,m=o.address,p=o.mapStoreNameDisplayType,h=o.nameFromMaster,f=o.placeId,x=l.remarks,v=l.remarkFontSizeType,b=l.baseInfoBusinessHours,g=a.isBefore(s),j=2===p&&f?"https://www.google.com/maps/search/?api=1&query=".concat(encodeURIComponent("".concat(h," ").concat(m)),"&query_place_id=").concat(f):"https://maps.google.com/maps?q=".concat(m," ").concat(h,"&z=18"),w=!g&&"IS_ALREADY_OPEN"===i&&0===c.length&&(!u||0===u.length),k=!g&&"IS_CLOSED"!==i&&"IS_PERMANENTLY_CLOSED"!==i;if(!w)return(0,y.jsxs)("div",{className:"mt-2 md:mt-0",children:[(0,S.u)(l.remarkType,null==x?void 0:x.top)&&(0,y.jsx)(T.M,{position:"top",remarkFontSizeType:null!=v?v:0,children:null!==(t=null==x?void 0:x.top)&&void 0!==t?t:""}),k?(0,y.jsx)(BusinessHoursList,{businessHours:c,additionalBusinessHours:u,baseInfoBusinessHours:b,dayJs:a}):(0,y.jsx)(BusinessStatusText,{establishmentDate:s,openStatus:i,isBeforeOpen:g}),(0,S.L)(l.remarkType,null==x?void 0:x.bottom)&&(0,y.jsx)(T.M,{position:"bottom",remarkFontSizeType:null!=v?v:0,children:null!==(n=null==x?void 0:x.bottom)&&void 0!==n?n:""}),k&&r.X7&&(0,y.jsx)("div",{className:"mt-4 flex justify-center md:block",children:(0,y.jsx)(d.z,{priority:"secondary",href:j,target:"_blank",rel:"noopener",className:"w-full md:w-auto",children:"Googleãããã§æ··éç¶æ³ãã¿ã"})})]});var N,O,I=(0,S.u)(l.remarkType,null==x?void 0:x.top),_=(0,S.L)(l.remarkType,null==x?void 0:x.bottom);return I||_?(0,y.jsxs)("div",{children:[I&&(0,y.jsx)(T.M,{position:"top",remarkFontSizeType:null!=v?v:0,children:null!==(N=null==x?void 0:x.top)&&void 0!==N?N:""}),_&&(0,y.jsx)(T.M,{position:"bottom",remarkFontSizeType:null!=v?v:0,children:null!==(O=null==x?void 0:x.bottom)&&void 0!==O?O:""})]}):(0,y.jsx)("div",{className:"flex h-full px-0.5 pt-3 max-md:pt-2",children:(0,y.jsx)("hr",{className:"h-0.5 w-4 border-text"})})}),BusinessStatusText=function(e){var t=e.establishmentDate,n=e.openStatus,o=e.isBeforeOpen;return"IS_PERMANENTLY_CLOSED"===n?(0,y.jsx)("p",{className:"text-red",children:"鿥"}):o?(0,y.jsxs)("p",{className:"text-orange",children:["鿥æ¥ï¼",M()(t).format("YYYYå¹´MæDæ¥")]}):"IS_CLOSED"===n?(0,y.jsx)("p",{className:"text-red",children:"è¨æä¼æ¥"}):null},BusinessHoursList=function(e){var t,n,o,l=e.businessHours,a=e.additionalBusinessHours,i=e.baseInfoBusinessHours,s=e.dayJs,c=r.Q_?buildBusinessHourListForSeparateDayOfWeek(l,i):(t=compactBusinessHourList((0,P.CG)(l)).filter(function(e){return null!==e.hourType}),n=[],t.forEach(function(e){var t=e.day,o=e.hours,r=e.hourType,l=n.at(-1);if((null==l?void 0:l.hourType)===r&&o.length===(null==l?void 0:l.hours.length)&&null!=l&&l.hours.every(function(e,t){return e.openTime===o[t].openTime&&e.closeTime===o[t].closeTime})){l.days.push(t);return}n.push({days:[t],hours:o,hourType:r})}),formatBusinessHourItem(n,i)),d=function(e,t){if(e){var n=[];e.forEach(function(e){var t,o,r=e.additionalDate,l=e.openTime,a=e.closeTime,i=e.hourType,s=n.at(-1);i!==D.y.CLOSED&&s&&null!==(t=s.additionalDate)&&void 0!==t&&t.isSame(r,"day")?null===(o=n.at(-1))||void 0===o||o.hours.push({openTime:l,closeTime:a}):n.push({additionalDate:r?M()(r):void 0,hours:[{openTime:l,closeTime:a}],hourType:i})});var o=[];
1n.forEach(function(e){var n=e.additionalDate,r=t.add(-1,"day"),l=t.add(90,"day");(null===n||M()(n).isBetween(r,l,"day","[]"))&&o.push(e)});var r=void 0,l=void 0;return o.flatMap(function(e,t){var n,a,i,s=e.additionalDate,c=e.hours,d=e.hourType,u=t<o.length-1?o[t+1]:null,m=!!c.every(function(e,t){var n,o;return e.openTime===(null==u?void 0:null===(n=u.hours[t])||void 0===n?void 0:n.openTime)&&e.closeTime===(null==u?void 0:null===(o=u.hours[t])||void 0===o?void 0:o.closeTime)}),p=d===(null==u?void 0:u.hourType),h=(null==u?void 0:u.additionalDate)&&s&&1===u.additionalDate.diff(s,"day");return m&&p&&h?(r||(r=null==s?void 0:s.locale("ja").format("M/D(ddd)")),[]):(m&&p&&h||(l=null==s?void 0:s.locale("ja").format("M/D(ddd)")),n=r&&l?"".concat(r,"ã").concat(l):null!==(a=null==s?void 0:s.locale("ja").format("M/D(ddd)"))&&void 0!==a?a:void 0,r=void 0,l=void 0,d===D.y.CLOSED?i="è¨æä¼æ¥":d===D.y.OPEN_24H?i="24æéå¶æ¥":c.length>0&&(i=c.map(function(e){var t=e.openTime,n=e.closeTime,o=t&&(0,P.mr)(t),r=n&&(0,P.mr)(n);return i="".concat(o,"ã").concat(r)}).join(", ")),n&&i)?{dates:n,openHours:i}:[]})}}(a,s),renderSpecialHoursHolidayNotation=function(e){var t=(null!=i?i:{}).specialHoursHolidayNotation,n=t&&""!==t.color?"#".concat(null==t?void 0:t.color):E().theme.extend.colors.red.DEFAULT;return"è¨æä¼æ¥"===e?(0,y.jsx)("dd",{style:{color:n},children:t&&""!==t.text?t.text:"è¨æä¼æ¥"}):(0,y.jsx)("dd",{children:e})};return(0,y.jsxs)(y.Fragment,{children:[c.length>0&&(0,y.jsx)("dl",{className:d&&d.length>0?"mb-4":"","data-specid":"businessHoursListSection",children:c.map(function(e){var t=e.weekdays,n=e.openHours;return(0,y.jsxs)("div",{className:"flex gap-4 text-text",children:[(0,y.jsx)("dt",{className:"w-12",children:t}),(0,y.jsx)("dd",{children:n})]},t)})}),d&&(null==d?void 0:d.length)>0&&(0,y.jsxs)(y.Fragment,{children:[null!=(o=(null!=i?i:{}).specialHoursDescription)&&o.hideFlag?null:(0,y.jsx)("p",{className:"text-text",children:o&&""!==o.text?o.text:"ä¸è¨æ¥ç¨ã¯å¶æ¥æéã夿´ãã¦ããã¾ãã"}),(0,y.jsx)("dl",{className:"mt-2","data-specid":"additionalBusinessHourList",children:null==d?void 0:d.map(function(e){var t=e.dates,n=e.openHours;return(0,y.jsxs)("div",{className:"flex gap-4 text-text",children:[(0,y.jsx)("dt",{children:t}),renderSpecialHoursHolidayNotation(n)]},t)})})]})]})},buildBusinessHourListForSeparateDayOfWeek=function(e,t){var n=compactBusinessHourList((0,P.CG)(e)).filter(function(e){return null!==e.hourType}),o=[];return n.forEach(function(e){var t=e.day,n=e.hours,r=e.hourType;o.push({days:[t],hours:n,hourType:r})}),formatBusinessHourItem(o,t)},compactBusinessHourList=function(e){var t=newWeeklyObj();return e.forEach(function(e){var n=e.name,o=e.openTime,r=e.closeTime,l=e.hourType,a=t.find(function(e){return e.day===n});null==a||a.hours.push({openTime:o,closeTime:r}),a&&(a.hourType=l)}),t},formatBusinessHourItem=function(e,t){return e.map(function(e){var n,o,r=e.days,l=e.hours,a=e.hourType;return{weekdays:(n=(0,P.Qr)(r[0]),r.length>=3?n+"ã"+(0,P.Qr)(r.at(-1)):2===r.length?n+"ã»"+(0,P.Qr)(r[1]):n),openHours:(o=(null!=t?t:{}).businessHoursHolidayNotation)&&""!==o.text&&a===D.y.CLOSED?o.text:a===D.y.CLOSED?"å®ä¼æ¥":a===D.y.OPEN_24H?"24æéå¶æ¥":l.map(function(e){var t=e.openTime,n=e.closeTime;return(t&&(0,P.mr)(t))+"ã"+(n&&(0,P.mr)(n))}).join(", ")}})},newWeeklyObj=function(){return[{day:"MONDAY",hours:[],hourType:null},{day:"TUESDAY",hours:[],hourType:null},{day:"WEDNESDAY",hours:[],hourType:null},{day:"THURSDAY",hours:[],hourType:null},{day:"FRIDAY",hours:[],hourType:null},{day:"SATURDAY",hours:[],hourType:null},{day:"SUNDAY",hours:[],hourType:null}]},Y={column:0,row:1},U=RegExp('<script async src="//www.instagram.com/embed.js"></script>'),useInstagramStyles=function(e){var t,n=e.textArea;if((0,p.useEffect)(function(){var e,t,o=document.getElementsByTagName("head")[0],r=o.getElementsByTagName("script"),l=document.createElement("script"),a=document.createAttribute("src");if(n&&(null===(e=n.items)||void 0===e?void 0:e.length)>0){if(Array.prototype.find.call(r,function(e){if(/\/\/www.instagram.com\/embed.js/.test(e.src))return e})){null!==(t=window.instgrm)&&void 0!==t&&t.Embeds&&window.instgrm.Embeds.process();return}a.value="//www.instagram.com/embed.js",l.async=!0,l.setAttributeNode(a),o.appendChild(l)}},[n]),!n)return{addInstagramStyle:"",instagramItem:void 0};var o=n.items,r=n.displayDirectionPC,l=n.displayDirectionSP,a=n.isShowTitle,i=!!o.find(function(e){if(e)return U.test(null==e?void 0:e.text)}),s=function(){if(i){var e="overflow-x-auto md:pr-0 xxs:pr-0 xxs:w-[calc(100vw_-_2rem)]";return a?"md:w-[calc(100vw_-_5rem_-_192px)] md:max-w-[calc(1000px_-_192px)] ".concat(e):"gap-[11px] md:w-[calc(100vw_-_5rem)] md:max-w-[1000px] ".concat(e)}return""}(),c=o.filter(function(e){return(null==e?void 0:e.text)!==""}).length,d=function(){var e="";if(!i)return e;if(r===Y.row)switch(c){case 1:e+=" md:justify-center";break;case 2:e+=a?" md:justify-start":" md:justify-center";break;case 3:e+=" md:justify-start"}if(l===Y.row)switch(c){case 1:e+=" xxs:justify-center";break;case 2:case 3:e+=" xxs:justify-start"}return r===Y.column&&(e+=" md:justify-center"),l===Y.column&&(e+=" xxs:justify-center"),e}(),u=null==n?void 0:null===(t=n.items)||void 0===t?void 0:t.map(function(e){var t,n;return{keyword:null!==(t=null==e?void 0:e.keyword)&&void 0!==t?t:"",text:null!==(n=null==e?void 0:e.text.replace(U,""))&&void 0!==n?n:""}});return{addInstagramStyle:"".concat(s).concat(d),instagramItem:u}},W=(0,p.memo)(function(e){var t,n,o=e.content,r=o.remarks,l=o.textArea,i=o.remarkFontSizeType,s=useInstagramStyles({textArea:l}),c=s.addInstagramStyle,d=s.instagramItem;if(!l)return null;var u=l.items,m=l.displayDirectionPC,p=l.displayDirectionSP===Y.row?"flex":"grid",h=m===Y.row?"md:flex":"md:grid",f=null!=d?d:u;return(0,y.jsxs)(y.Fragment,{children:[(0,S.u)(o.remarkType,null==r?void 0:r.top)&&
1(0,y.jsx)(T.M,{position:"top",remarkFontSizeType:null!=i?i:0,children:null!==(t=null==r?void 0:r.top)&&void 0!==t?t:""}),(0,y.jsx)("div",{className:(0,a.Z)(p,h,c,"gap-3 md:gap-y-4 [&_a:hover]:underline [&_a]:text-primary"),children:null==f?void 0:f.map(function(e,t){return(null==e?void 0:e.text)&&(0,y.jsx)("div",{className:"whitespace-pre-wrap text-text",dangerouslySetInnerHTML:{__html:null==e?void 0:e.text}},t)})}),(0,S.L)(o.remarkType,null==r?void 0:r.bottom)&&(0,y.jsx)(T.M,{position:"bottom",remarkFontSizeType:null!=i?i:0,children:null!==(n=null==r?void 0:r.bottom)&&void 0!==n?n:""})]})}),$=(0,p.memo)(function(e){var t,n,o=e.content,r=o.remarks,l=o.checkBoxComposite,a=o.remarkFontSizeType,i=null==l?void 0:l.items,s=(0,S.u)(o.remarkType,null==r?void 0:r.top),c=(0,S.L)(o.remarkType,null==r?void 0:r.bottom),d=null==i?void 0:i.some(function(e){return null==e?void 0:e.checked});return s||c||d?(0,y.jsxs)(y.Fragment,{children:[s&&(0,y.jsx)(T.M,{position:"top",remarkFontSizeType:null!=a?a:0,children:null!==(t=null==r?void 0:r.top)&&void 0!==t?t:""}),(0,y.jsx)("div",{className:"flex flex-wrap gap-x-5 gap-y-1 leading-7 text-text",children:i&&i.map(function(e){return null!=e&&e.checked?(0,y.jsx)("p",{children:null==e?void 0:e.text},null==e?void 0:e.id):null})}),c&&(0,y.jsx)(T.M,{position:"bottom",remarkFontSizeType:null!=a?a:0,children:null!==(n=null==r?void 0:r.bottom)&&void 0!==n?n:""})]}):(0,y.jsx)("div",{className:"flex h-full px-0.5 pt-3 max-md:pt-2",children:(0,y.jsx)("hr",{className:"h-0.5 w-4 border-text"})})}),R=n(4227);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){(0,o.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Z=(0,p.memo)(function(e){var t,n,o=e.content,r=o.remarks,l=o.checkBoxComposite,a=o.remarkFontSizeType,i=null==l?void 0:l.items,s=(0,S.u)(o.remarkType,null==r?void 0:r.top),c=(0,S.L)(o.remarkType,null==r?void 0:r.bottom),d=null==i?void 0:i.some(function(e){return null==e?void 0:e.checked});return s||c||d?(0,y.jsxs)(y.Fragment,{children:[s&&(0,y.jsx)(T.M,{position:"top",remarkFontSizeType:null!=a?a:0,children:null!==(t=null==r?void 0:r.top)&&void 0!==t?t:""}),(0,y.jsx)("div",{className:"flex flex-wrap gap-x-5 gap-y-1 leading-7",children:i&&i.map(function(e){if(!(null!=e&&e.checked))return null;var t,n=(0,R.A)(null!==(t=null==e?void 0:e.url)&&void 0!==t?t:"");return(0,y.jsx)("p",{children:null!=e&&e.url?(0,y.jsx)(_(),_objectSpread(_objectSpread({href:e.url,className:"block text-primary hover:underline"},"_blank"===n&&{target:n,rel:"noopener noreferrer"}),{},{children:e.text})):(0,y.jsx)(y.Fragment,{children:null==e?void 0:e.text})},null==e?void 0:e.id)})}),c&&(0,y.jsx)(T.M,{position:"bottom",remarkFontSizeType:null!=a?a:0,children:null!==(n=null==r?void 0:r.bottom)&&void 0!==n?n:""})]}):(0,y.jsx)("div",{className:"flex h-full px-0.5 pt-3 max-md:pt-2",children:(0,y.jsx)("hr",{className:"h-0.5 w-4 border-text"})})}),V=(0,p.memo)(function(e){var t,n,o=e.content,r=o.remarks,l=o.checkBoxComposite,a=o.remarkFontSizeType,i=null==l?void 0:l.items,s=(0,S.u)(o.remarkType,null==r?void 0:r.top),c=(0,S.L)(o.remarkType,null==r?void 0:r.bottom),d=null==i?void 0:i.some(function(e){return null==e?void 0:e.checked});return s||c||d?(0,y.jsxs)(y.Fragment,{children:[s&&(0,y.jsx)(T.M,{position:"top",remarkFontSizeType:null!=a?a:0,children:null!==(t=null==r?void 0:r.top)&&void 0!==t?t:""}),(0,y.jsx)("ul",{className:"flex flex-wrap gap-3",children:i&&i.map(function(e){if(!(null!=e&&e.checked))return null;var t=(0,y.jsx)("img",{className:"h-12 w-12 object-contain",src:null==e?void 0:e.img,alt:""});return(0,y.jsx)("li",{children:t},null==e?void 0:e.img)})}),c&&(0,y.jsx)(T.M,{position:"bottom",remarkFontSizeType:null!=a?a:0,children:null!==(n=null==r?void 0:r.bottom)&&void 0!==n?n:""})]}):(0,y.jsx)("div",{className:"flex h-full px-0.5 pt-3 max-md:pt-2",children:(0,y.jsx)("hr",{className:"h-0.5 w-4 border-text"})})});function CheckBoxIconWithUrl_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function CheckBoxIconWithUrl_objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?CheckBoxIconWithUrl_ownKeys(Object(n),!0).forEach(function(t){(0,o.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CheckBoxIconWithUrl_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var K=(0,p.memo)(function(e){var t,n,o=e.content,r=o.remarks,l=o.checkBoxComposite,a=o.remarkFontSizeType,i=null==l?void 0:l.items,s=(0,S.u)(o.remarkType,null==r?void 0:r.top),c=(0,S.L)(o.remarkType,null==r?void 0:r.bottom),d=null==i?void 0:i.some(function(e){return null==e?void 0:e.checked});return s||c||d?(0,y.jsxs)(y.Fragment,{children:[s&&(0,y.jsx)(T.M,{position:"top",remarkFontSizeType:null!=a?a:0,children:null!==(t=null==r?void 0:r.top)&&void 0!==t?t:""}),(0,y.jsx)("ul",{className:"flex flex-wrap gap-3",children:i&&i.map(function(e){if(!(null!=e&&e.checked))return null;var t,n=(0,y.jsx)("img",{className:"h-12 w-12 object-contain",src:null==e?void 0:e.img,alt:""}),o=(0,R.A)(null!==(t=null==e?void 0:e.url)&&void 0!==t?t:"");return(0,y.jsx)("li",{children:null!=e&&e.url?(0,y.jsx)(_(),CheckBoxIconWithUrl_objectSpread(CheckBoxIconWithUrl_objectSpread({href:e.url,className:"transition-opacity hover:opacity-50"},"_blank"===o&&{target:o,rel:"noopener noreferrer"}),{},{children:n})):(0,y.jsx)(y.Fragment,{children:n})},null==e?void 0:e.id)})}),c&&(0,y.jsx)(T.M,{position:"bottom",remarkFontSizeType:null!=a?a:0,children:null!==(n=null==r?void 0:r.bottom)&&void 0!==n?n:""})]}):(0,y.jsx)("div",{className:"flex h-full px-0.5 pt-3 max-md:pt-2",children:(0,y.jsx)("hr",{className:"h-0.5 w-4 border-text"})})}),q=(0,p.memo)(function(e){var t,n,o=e.content,r=o.remarks,l=o.checkBoxComposite,i=o.remarkFontSizeType,s=null==l?void 0:l.items,c=null!=l&&l.maxColumnCount?l.maxColumnCount:0,d=(0,p.useMemo)(function(){return 0===c?"grid grid-cols-2 md:flex md:flex-wrap":1===c?"grid grid-cols-1":2===c?"grid grid-cols-2":3===c?"grid grid-cols-2 md:grid-cols-3":4===c?"grid grid-cols-2 md:grid-cols-4":void 0},[c]),u=(0,S.u)(o.remarkType,null==r?void 0:r.top),m=(0,S.L)(o.remarkType,null==r?void 0:r.bottom),h=null==s?void 0:s.some(function(e){return null==e?void 0:e.checked});return u||m||h?(0,y.jsxs)(y.Fragment,{children:[u&&(0,y.jsx)(T.M,{position:"top",remarkFontSizeType:null!=i?i:0,children:null!==(t=null==r?void 0:r.top)&&void 0!==t?t:""}),(0,y.jsx)("ul",{className:(0,a.Z)("".concat(d," gap-3 gap-x-6")),children:s&&s.map(function(e){if(!(null!=e&&e.checked))return null;var t=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("img",{className:"h-12 w-12 object-contain",src:null==e?void 0:e.img,alt:""}),(0,y.jsx)("p",{className:"break-all text-text",children:null==e?void 0:e.text})]});return(0,y.jsx)("li",{className:"flex items-center gap-2",children:t},null==e?void 0:e.id)})}),m&&(0,y.jsx)(T.M,{position:"bottom",remarkFontSizeType:null!=i?i:0,children:null!==(n=null==r?void 0:r.bottom)&&void 0!==n?n:""})]}):(0,y.jsx)("div",{className:"flex h-full px-0.5 pt-3 max-md:pt-2",children:(0,y.jsx)("hr",{className:"h-0.5 w-4 border-text"})})}),G=n(6087);function CheckBoxIconTextWithUrl_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function CheckBoxIconTextWithUrl_objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CheckBoxIconTextWithUrl_ownKeys(Object(n),!0).forEach(function(t){(0,o.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CheckBoxIconTextWithUrl_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var J=(0,p.memo)(function(e){var t,n,o=e.content,r=o.remarks,l=o.checkBoxComposite,i=o.remarkFontSizeType,s=null==l?void 0:l.items,c=null!=l&&l.maxColumnCount?l.maxColumnCount:0,d=(0,p.useMemo)(function(){return 0===c?"grid grid-cols-2 md:flex md:flex-wrap":1===c?"grid grid-cols-1":2===c?"grid grid-cols-2":3===c?"grid grid-cols-2 md:grid-cols-3":4===c?"grid grid-cols-2 md:grid-cols-4":void 0},[c]),u=(0,S.u)(o.remarkType,null==r?void 0:r.top),m=(0,S.L)(o.remarkType,null==r?void 0:r.bottom),h=null==s?void 0:s.some(function(e){return null==e?void 0:e.checked});return u||m||h?(0,y.jsxs)(y.Fragment,{children:[u&&(0,y.jsx)(T.M,{position:"top",remarkFontSizeType:null!=i?i:0,children:null!==(t=null==r?void 0:r.top)&&void 0!==t?t:""}),(0,y.jsx)("ul",{className:(0,a.Z)("".concat(d," gap-3 gap-x-6")),children:s&&s.map(function(e){if(!(null!=e&&e.checked))return null;var t,n=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("img",{className:"h-12 w-12 object-contain",src:null==e?void 0:e.img,alt:""}),(0,y.jsx)("p",{className:(0,G.cn)("break-all",null!=e&&e.url?"text-primary":"text-text"),children:null==e?void 0:e.text})]}),o=(0,R.A)(null!==(t=null==e?void 0:e.url)&&void 0!==t?t:"");return(0,y.jsx)("li",{className:"flex items-center gap-2",children:null!=e&&e.url?(0,y.jsx)(_(),CheckBoxIconTextWithUrl_objectSpread(CheckBoxIconTextWithUrl_objectSpread({href:e.url,className:(0,a.Z)("flex gap-2 items-center","transition-opacity hover:opacity-50")},"_blank"===o&&{target:o,rel:"noopener noreferrer"}),{},{children:n})):(0,y.jsx)(y.Fragment,{children:n})},null==e?void 0:e.id)})}),m&&(0,y.jsx)(T.M,{position:"bottom",remarkFontSizeType:null!=i?i:0,children:null!==(n=null==r?void 0:r.bottom)&&void 0!==n?n:""})]}):(0,y.jsx)("div",{className:"flex h-full px-0.5 pt-3 max-md:pt-2",children:(0,y.jsx)("hr",{className:"h-0.5 w-4 border-text"})})}),Q=n(5550),X=n(6286),ee=n(2977),et=n(719),en=n(8116),eo=n(2134),er={horizontal:1},el=(0,p.memo)(function(e){var t,n,o,l,i=e.content,s=e.shopInfo,c=e.posts,u=(0,ee.Z)().width,m=(0,p.useState)(!1),h=m[0],f=m[1];if((0,p.useEffect)(function(){var e;f(u<r.vl.md&&(null===(e=i.hpPostWrapper)||void 0===e?void 0:e.displayDirectionSP)===er.horizontal)},[i,u]),!c)return null;var x=eo.r.getDirectoryPath(),v=s.storeCode,b=null===(t=i.hpPostWrapper)||void 0===t?void 0:t.slug,g="/".concat(x,"detail/").concat(v,"/").concat(b,"/"),getThumbnail=function(e){return e.thumbnail&&e.thumbnail.startsWith("http")?e.thumbnail:e.thumbnail?"".concat(r.G3,"/").concat(e.thumbnail):e.defaultImgUrl?e.defaultImgUrl:"".concat(r.G3,"/").concat(r.mu)};return(0,y.jsxs)(y.Fragment,{children:[r.Jq?(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("ul",{className:(0,a.Z)("grid grid-cols-2 gap-x-2 gap-y-4 md:grid-cols-4"),children:c.map(function(e,t){var n,o=getThumbnail(e);return(0,y.jsx)("li",{children:(0,y.jsx)(X.T,{thumbnail:{src:"".concat(o),alt:""},date:M()(e.period.start).format("YYYY.MM.DD"),titleTag:"h3",title:e.title,href:"".concat(g).concat(e.id,"/"),index:t+1,imageRatioId:null===(n=i.hpPostWrapper)||void 0===n?void 0:n.imageRatioId})},e.id)})})}):h?(0,y.jsx)("div",{className:"-mx-4",children:(0,y.jsx)(et.tq,{className:(0,a.Z)("!px-4"),wrapperTag:"ul",slidesPerView:1.05,spaceBetween:16,centeredSlides:!0,centeredSlidesB
1ounds:!0,modules:[en.Gk],mousewheel:{forceToAxis:!0},children:c.map(function(e,t){var n,o=getThumbnail(e);return(0,y.jsx)(et.o5,{tag:"li",className:(0,a.Z)("rounded"),children:(0,y.jsx)(X.T,{thumbnail:{src:"".concat(o),alt:""},date:M()(e.period.start).format("YYYY.MM.DD"),titleTag:"h3",title:e.title,href:"".concat(g).concat(e.id,"/"),imageRatioId:null===(n=i.hpPostWrapper)||void 0===n?void 0:n.imageRatioId})},t)})})}):(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("ul",{className:(0,a.Z)("grid gap-7 sm:grid-cols-2 sm:gap-x-4 md:grid-cols-3"),children:c.map(function(e,t){var n,o=getThumbnail(e);return(0,y.jsx)("li",{children:(0,y.jsx)(X.T,{thumbnail:{src:"".concat(o),alt:""},date:M()(e.period.start).format("YYYY.MM.DD"),titleTag:"h3",title:e.title,href:"".concat(g).concat(e.id,"/"),index:t+1,imageRatioId:null===(n=i.hpPostWrapper)||void 0===n?void 0:n.imageRatioId})},e.id)})})}),(0,S.L)(i.remarkType,null===(n=i.remarks)||void 0===n?void 0:n.bottom)&&(0,y.jsx)("p",{className:"mt-2 text-sm",children:null!==(o=null===(l=i.remarks)||void 0===l?void 0:l.bottom)&&void 0!==o?o:""}),(0,y.jsx)("div",{className:"mt-5 flex justify-center md:mt-6 md:block",children:(0,y.jsxs)(d.z,{priority:"secondary",className:"w-full md:w-auto",href:"/".concat(x,"detail/").concat(v,"/").concat(b,"/"),e2eTestId:"shopDetailPostsList-".concat(b),children:[i.title,"ä¸è¦§ã¯ãã¡ã"]})})]})});function CheckBoxOnOffLabel_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function CheckBoxOnOffLabel_objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CheckBoxOnOffLabel_ownKeys(Object(n),!0).forEach(function(t){(0,o.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CheckBoxOnOffLabel_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ea=(0,p.memo)(function(e){var t,n,o=e.content,l=o.remarks,i=o.checkBoxOnOffLabel,s=o.remarkFontSizeType,c=null==i?void 0:i.items;return(0,y.jsxs)(y.Fragment,{children:[(0,S.u)(o.remarkType,null==l?void 0:l.top)&&(0,y.jsx)(T.M,{position:"top",remarkFontSizeType:null!=s?s:0,children:null!==(t=null==l?void 0:l.top)&&void 0!==t?t:""}),(0,y.jsx)("div",{className:"flex flex-wrap xxs:gap-2 sm:gap-2.5",children:c&&c.map(function(e){var t=null!=e&&e.checked?r.BQ?"text-white bg-[color:rgba(var(--secondary-text),0.70)]":"text-white bg-[color:rgba(var(--secondary-text),0.80)]":r.BQ?"bg-[#E8E8E8]/50 text-[#D3D3D3]":"text-[color:rgba(var(--secondary-text),0.50)] !border-secondary-button";return(0,y.jsx)("span",CheckBoxOnOffLabel_objectSpread(CheckBoxOnOffLabel_objectSpread({className:(0,a.Z)("inline-flex min-w-[165px] items-center justify-center whitespace-pre-wrap break-all rounded-full py-1 text-center text-sm font-semibold leading-[1.15rem] xxs:w-[calc(50%-4px)] xxs:px-1 sm:w-[194px] sm:px-6","border-2 border-transparent",t)},(null==e?void 0:e.checked)===!1?{"data-nosnippet":""}:{}),{},{children:null==e?void 0:e.label}),null==e?void 0:e.id)})}),(0,S.L)(o.remarkType,null==l?void 0:l.bottom)&&(0,y.jsx)(T.M,{position:"bottom",remarkFontSizeType:null!=s?s:0,children:null!==(n=null==l?void 0:l.bottom)&&void 0!==n?n:""})]})}),ei=(0,p.memo)(function(e){var t,n,o,l,i,s=e.content,c=s.remarks,d=s.textHeadContent,u=s.remarkFontSizeType,m=null!==(n=null==d?void 0:d.items.filter(function(e){return void 0!==e}))&&void 0!==n?n:[],h=null==d?void 0:d.showTitle,f=(0,ee.Z)().width,x=(0,p.useMemo)(function(){return f<r.vl.md},[f]),directionTopToBottom=function(e){return(0,y.jsx)("ul",{className:"",children:e&&e.map(function(t,n){return(0,y.jsxs)("li",{className:(0,a.Z)("flex flex-wrap gap-3 md:flex-nowrap md:gap-6 ".concat(n!==e.length-1?"mb-6":"")),children:[(0,y.jsx)("p",{className:"w-full font-semibold leading-6 text-[color:rgba(var(--text),0.64)] md:max-w-[146px]",children:null==t?void 0:t.headline}),(0,y.jsx)("div",{className:"w-full whitespace-pre-wrap leading-6 text-text",dangerouslySetInnerHTML:{__html:null==t?void 0:t.text}},n)]},null==t?void 0:t.id)})})},v=null!==(o=null==d?void 0:d.displayDirectionPC)&&void 0!==o?o:0;return(0,y.jsxs)(y.Fragment,{children:[(0,S.u)(s.remarkType,null==c?void 0:c.top)&&(0,y.jsx)(T.M,{position:"top",remarkFontSizeType:null!=u?u:0,children:null!==(l=null==c?void 0:c.top)&&void 0!==l?l:""}),(t=m.filter(function(e){return e.text.length>0}),x?directionTopToBottom(t):({0:directionTopToBottom,1:function(e){var t,n=null!==(t=null==e?void 0:e.length)&&void 0!==t?t:0;return(0,y.jsx)("ul",{className:(0,a.Z)("grid gap-4 ".concat(1===n?"grid-cols-1":2===n||4===n?"grid-cols-2":3===n||5===n||6===n?"grid-cols-3":n>=7?1===h?"grid-cols-3":"grid-cols-4":void 0)),children:e&&e.map(function(e,t){return(0,y.jsxs)("li",{children:[(0,y.jsx)("p",{className:"pb-1 font-semibold leading-6 text-[color:rgba(var(--text),0.65)]",children:null==e?void 0:e.headline}),(0,y.jsx)("div",{className:"whitespace-pre-wrap leading-6 text-text",dangerouslySetInnerHTML:{__html:null==e?void 0:e.text}},t)]},null==e?void 0:e.id)})})},2:function(e){return(0,y.jsx)("ul",{className:"flex flex-wrap gap-6",children:e&&e.map(function(e,t){return(0,y.jsxs)("li",{className:"",children:[(0,y.jsx)("p",{className:"pb-1 font-semibold leading-6 text-[color:rgba(var(--text),0.65)]",children:null==e?void 0:e.headline}),(0,y.jsx)("div",{className:"whitespace-pre-wrap leading-6 text-text",dangerouslySetInnerHTML:{__html:null==e?void 0:e.text}},t)]},null==e?void 0:e.id)})})}})[v](t)),(0,S.L)(s.remarkType,null==c?void 0:c.bottom)&&(0,y.jsx)(T.M,{position:"bottom",remarkFontSizeType:null!=u?u:0,children:null!==(i=null==c?void 0:c.bottom)&&void 0!==i?i:""})]})}),es={lanlng:1,placeId:2},ec=(0,p.memo)(function(e){var t=e.shopInfo,n=t.address,o=t.nameFromMaster,l=t.latitude,a=t.longitude,i=t.mapStoreNameDisplayType,s=t.placeId,c=r.lD||18,getDefaultMapUrl=function(){return"https://maps.google.com/maps?output=embed&q=".concat(encodeURIComponent("".concat(o," ").concat(n)),"&z=").concat(c)},d=function(){switch(i){case es.lanlng:return"https://maps.google.com/maps?output=embed&q=".concat("".concat(l,",").concat(a),"&z=",c);case es.placeId:return s?"https://www.google.com/maps/embed/v1/place?key=".concat(r.bw,"&q=place_id:").concat(s,"&zoom=").concat(c):getDefaultMapUrl();default:return getDefaultMapUrl()}}(),u=i===es.placeId&&s?"https://www.google.com/maps/search/?api=1&query=".concat(encodeURIComponent("".concat(o," ").concat(n)),"&query_place_id=").concat(s):"https://maps.google.com/maps?q=".concat(encodeURIComponent("".concat(o," ").concat(n)),"&z=").concat(c);return(0,y.jsx)("div",{className:"grid gap-6",children:(0,y.jsxs)("div",{children:[(0,y.jsx)("figure",{id:"GoogleMap",className:"-mx-4 mt-3 h-60 md:mx-0 md:mt-8 md:h-96",children:(0,y.jsx)("iframe",{"data-testid":"StoreMap-iframe",src:d,width:"600",height:"450",className:"h-full w-full border-0 md:rounded",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})}),(0,y.jsx)("div",{className:"mt-4 text-center",children:(0,y.jsx)(_(),{href:u,className:"text-center text-primary hover:underline",target:"_blank",rel:"noopener",children:"Googleãããã§ã¿ã"})})]})})}),ed=n(6269),eu=n(7412),em=n.n(eu),ep=n(1227),eh=(0,p.memo)(function(e){var t=e.shopInfo;M().extend(L()),M().extend(em());var n=t.nearbyShops,o=t.baseInfoBusinessHours,l=eo.r.getDirectoryPath();return(0,y.jsx)("div",{className:"grid gap-6",children:(0,y.jsx)("ul",{className:"grid gap-5 sm:grid-cols-2 sm:gap-x-4 md:grid-cols-3",children:n.map(function(e){var t=e.id,n=e.storeCode,a=e.nameKanji,i=e.brandLogo,s=e.businessHours,c=e.additionalBusinessHours,d=e.openStatus,u=e.establishmentDate,m=e.address,p=e.distanceKm,h=(0,ed.y)(s,c,d,u,M()(),o);return(0,y.jsx)("li",{children:(0,y.jsxs)("dl",{className:"text-sm leading-6",children:[(0,y.jsx)("dt",{children:(0,y.jsxs)(_(),{href:"/".concat(l,"detail/").concat(n,"/"),className:"flex items-center gap-2 text-primary hover:underline md:items-start",children:[i&&"visible"===ep.v.getSystemSettingValue().commonDisplayBrandImg&&(0,y.jsx)("img",{src:i,className:"h-7 w-7",alt:""}),a]})}),(0,y.jsxs)("dd",{className:"mt-1 text-[color:rgba(var(--text),0.75)]",children:[!r.ih&&(0,y.jsx)("p",{children:h}),(0,y.jsx)("p",{children:m}),(0,y.jsxs)("p",{className:"mt-1.5",children:[p," km"]})]})]})},t)})})})}),ef=n(7160),ex=n(5674),ev=(0,p.memo)(function(e){var t,n,o,r,l,i,s=e.content,c=s.remarks,d=s.textAccordion,u=s.remarkFontSizeType,m=(0,p.useMemo)(function(){var e,t;return null!==(e=null==d?void 0:null===(t=d.items)||void 0===t?void 0:t.filter(function(e){return null!=e}))&&void 0!==e?e:[]},[null==d?void 0:d.items]),h=(t=null!==(n=null==d?void 0:d.prefixChevronColor)&&void 0!==n?n:"")?t.startsWith("#")?t:"#".concat(t):"",f=h?{color:h}:void 0,x=h?{"--text-accordion-prefix-chevron":h}:void 0,v=null==d?void 0:d.prefix,b=null!==(o=null==d?void 0:d.isFaqStructuredEnabled)&&void 0!==o&&o,g=null!==(r=null==v?void 0:v.isEnabled)&&void 0!==r&&r,buildQuestionLabel=function(e){if(b&&null!=v&&v.isEnabled){var t;return[(null!==(t=v.headline)&&void 0!==t?t:"").trim(),e].filter(
1Boolean).join(" ")}return e},renderAnswer=function(e){var t,n,o=null!==(t=null==v?void 0:null===(n=v.text)||void 0===n?void 0:n.trim())&&void 0!==t?t:"",r=(0,y.jsx)("div",{className:"min-w-0 flex-1 overflow-x-auto",children:(0,y.jsx)("div",{className:"inline-block min-w-full text-base font-light leading-6 text-text [&_a:hover]:underline [&_a]:text-primary",dangerouslySetInnerHTML:{__html:e}})});return null!=v&&v.isEnabled&&o?(0,y.jsxs)("div",{className:"flex min-w-0 items-start gap-2",children:[(0,y.jsx)("span",{className:"shrink-0 text-base font-semibold leading-6 text-text",style:f,children:null==v?void 0:v.text}),r]}):(0,y.jsx)("div",{className:"min-w-0 overflow-x-auto",children:(0,y.jsx)("div",{className:"inline-block min-w-full text-base font-light leading-6 text-text [&_a:hover]:underline [&_a]:text-primary",dangerouslySetInnerHTML:{__html:e}})})},j=(0,S.u)(s.remarkType,null==c?void 0:c.top),w=(0,S.L)(s.remarkType,null==c?void 0:c.bottom);if(!d||0===m.length&&!j&&!w)return null;var k=m.map(function(e,t){var n,o,r,l,i=0===t;return(0,y.jsxs)(ex.UQ,{className:"flex flex-col",children:[(0,y.jsxs)(ex._O,{className:(0,a.Z)("mx-0 flex cursor-pointer list-none items-start justify-between gap-2 rounded-xl px-0 marker:hidden max-md:hover:-mx-2 max-md:hover:px-2 md:-mx-3 md:px-3",i?"py-3 canly-group-open:pb-0 canly-group-open-transitionEnd:pb-0 md:pb-3 md:pt-0 md:hover:-mt-3 md:hover:pt-3":"py-3 canly-group-open:pb-0 canly-group-open-transitionEnd:pb-0",h?"md:hover:bg-[color:color-mix(in_srgb,var(--text-accordion-prefix-chevron)_10%,transparent)] md:canly-group-open:hover:bg-transparent md:canly-group-open-transitionEnd:hover:bg-transparent":"md:hover:bg-[color:rgba(var(--primary),0.05)] md:canly-group-open:hover:bg-transparent md:canly-group-open-transitionEnd:hover:bg-transparent"),style:x,children:[(n=null!==(r=e.headline)&&void 0!==r?r:"",g?(0,y.jsxs)("div",{className:"flex min-w-0 flex-1 flex-wrap items-start gap-2",children:[null!=v&&v.headline?(0,y.jsx)("span",{className:"shrink-0 text-base font-semibold leading-6 text-text",style:f,children:v.headline}):null,(0,y.jsx)("span",{className:"min-w-0 flex-1 text-left text-base font-light leading-6 text-text",children:n})]}):(0,y.jsx)("span",{className:"min-w-0 flex-1 text-left text-base font-light leading-6 text-text",children:buildQuestionLabel(null!=n?n:"")})),(0,y.jsx)("span",{className:"grid size-6 shrink-0 place-items-center self-start text-2.5 transition-transform duration-300 canly-group-open:-rotate-180","aria-hidden":!0,children:(0,y.jsx)(ef.J,{iconName:"chevron-down",className:(0,a.Z)(!h&&"text-text"),style:f})})]}),(0,y.jsx)(ex.rN,{className:"min-h-0 min-w-0 canly-group-open:mb-3 canly-group-open:mt-2 canly-group-open-transitionEnd:mb-3 canly-group-open-transitionEnd:mt-2",children:(0,y.jsx)("div",{className:"min-w-0",children:renderAnswer(null!==(l=e.text)&&void 0!==l?l:"")})})]},"".concat(null!==(o=e.keyword)&&void 0!==o?o:"","-").concat(t))}),N=m.length>0&&(0,y.jsx)("div",{className:(0,a.Z)("w-full","mx-0","flex flex-col rounded",j&&"md:mt-5"),children:k});return(0,y.jsxs)(y.Fragment,{children:[j&&(0,y.jsx)(T.M,{position:"top",remarkFontSizeType:null!=u?u:0,children:null!==(l=null==c?void 0:c.top)&&void 0!==l?l:""}),N,w&&(0,y.jsx)(T.M,{position:"bottom",remarkFontSizeType:null!=u?u:0,children:null!==(i=null==c?void 0:c.bottom)&&void 0!==i?i:""})]})}),eb=n(3125),eg=["baseInfoAddress","baseInfoBusinessHours","baseInfoPhone","textArea","checkBoxComposite","checkBoxOnOffLabel","textHeadContent","hpPostWrapper","urlTextImage","inputTextImage","checkBoxImageWithUrl","nearByStores","storeMap","reservationPlan","textAccordion"],ey=n(6626),ej=n(2614);function Block_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}M().extend(L());var ErrorBlock=function(e){return(0,p.useEffect)(function(){console.error(e)},[e]),null},ew=(0,p.memo)(function(e){var t,n,r,l,a,i,s=e.content,c=e.shopInfo,d=e.posts;if("baseInfoAddress"===s.componentName)return(0,y.jsx)(O,{content:s,shopInfo:c});if("baseInfoBusinessHours"===s.componentName)return(0,y.jsx)(z,{content:s,shopInfo:c,dayJs:M()()});if("baseInfoPhone"===s.componentName)return(0,y.jsx)(C,{content:s,shopInfo:c});if("textArea"===s.componentName)return(0,y.jsx)(W,{content:s});if("checkBoxComposite"===s.componentName&&(null===(t=s.checkBoxComposite)||void 0===t?void 0:t.type)==="checkBoxText")return(0,y.jsx)($,{content:s});if("checkBoxComposite"===s.componentName&&(null===(n=s.checkBoxComposite)||void 0===n?void 0:n.type)==="checkBoxTextWithUrl")return(0,y.jsx)(Z,{content:s});if("checkBoxComposite"===s.componentName&&(null===(r=s.checkBoxComposite)||void 0===r?void 0:r.type)==="checkBoxIcon")return(0,y.jsx)(V,{content:s});else if("checkBoxComposite"===s.componentName&&(null===(l=s.checkBoxComposite)||void 0===l?void 0:l.type)==="checkBoxIconWithUrl")return(0,y.jsx)(K,{content:s});else if("checkBoxComposite"===s.componentName&&(null===(a=s.checkBoxComposite)||void 0===a?void 0:a.type)==="checkBoxIconText")return(0,y.jsx)(q,{content:s});else if("checkBoxComposite"===s.componentName&&(null===(i=s.checkBoxComposite)||void 0===i?void 0:i.type)==="checkBoxIconTextWithUrl")return(0,y.jsx)(J,{content:s});else if("checkBoxOnOffLabel"===s.componentName)return(0,y.jsx)(ea,{content:s});else if("textHeadContent"===s.componentName)return(0,y.jsx)(ei,{content:s});else if("hpPostWrapper"===s.componentName)return(0,y.jsx)(el,{content:s,shopInfo:c,posts:d});else if("urlTextImage"===s.componentName||"inputTextImage"===s.componentName||"checkBoxImageWithUrl"===s.componentName)return(0,y.jsx)(Q.Q,{content:s});else if("storeMap"===s.componentName)return(0,y.jsx)(ec,{shopInfo:c});else if("nearByStores"===s.componentName)return(0,y.jsx)(eh,{shopInfo:c});else if("reservationPlan"===s.componentName)return(0,y.jsx)(eb.JY,{content:s,shopInfo:c});else if("textAccordion"===s.componentName)return(0,y.jsx)(ev,{content:s});return(0,y.jsx)(ErrorBlock,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?Block_ownKeys(Object(n),!0).forEach(function(t){(0,o.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Block_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e))}),ek=(0,p.memo)(function(e){var t,n,o,r,l,a=e.content,i=e.shopInfo,s=e.posttypesWithPosts,c=e.searchTargetLabel,d=e.isAttachedView,u=e.isFirstAttachedItem,m=e.isLastAttachedItem,h=e.prevIsAttachedView,f=e.attachedShopInfo,x=e.attachedItemContent,v=e.activeTabForAttachedView,b=e.cmsItemId,g=a.title,j=a.componentName,w="nearByStores"===j&&c?"è¿é£".concat(c):g,T=E().theme.screens,N=(0,ee.Z)().width,O=(0,p.useState)(!1),I=O[0],_=O[1];(0,p.useEffect)(function(){_(N<Number.parseInt(T.md))},[N,T.md]);var C=!I||I&&"attachedMain"===v,D=!I||I&&"attachedSub"===v;if(!eg.includes(j))return null;if("hpPostWrapper"===j){if(!s||!(null!==(L=a.hpPostWrapper)&&void 0!==L&&L.slug))return null;var B,P,A,L,H=s.find(function(e){var t;return e.slug===(null===(t=a.hpPostWrapper)||void 0===t?void 0:t.slug)});if(!H||(null==H?void 0:H.posts.length)<=0)return null;A=H.posts}if("baseInfoBusinessHours"===j&&!M()().isBefore(i.establishmentDate)&&!(i.attachedStoreType===ej.k.MAIN||(null===(o=i.attachedStore)||void 0===o?void 0:o.attachedStoreType)===ej.k.SUB)&&0===i.businessHours.length&&(!i.additionalBusinessHours||0===i.additionalBusinessHours.length)&&"IS_ALREADY_OPEN"===i.openStatus&&!(0,S.u)(a.remarkType,null===(r=a.remarks)||void 0===r?void 0:r.top)&&!(0,S.L)(a.remarkType,null===(l=a.remarks)||void 0===l?void 0:l.bottom)||"nearByStores"===j&&i.nearbyShops.length<=0)return null;var z="textArea"===j?null===(t=a.textArea)||void 0===t?void 0:t.isShowTitle:"textHeadContent"===j?(null===(n=a.textHeadContent)||void 0===n?void 0:n.showTitle)!==0:!a.hideTitle&&"storeMap"!==j,direction=function(){var e;return["hpPostWrapper","nearByStores","inputTextImage","urlTextImage","checkBoxImageWithUrl","textHeadContent","reservationPlan"].includes(j)?"textHeadContent"===j&&(null===(e=a.textHeadContent)||void 0===e?void 0:e.showTitle)===1&&"row":"row"},Y=null;switch(a.componentName){case"inputTextImage":Y=a.inputTextImage;break;case"urlTextImage":Y=a.urlTextImage;break;case"checkBoxImageWithUrl":Y=a.checkBoxImageWithUrl}var U=(null===(B=Y)||void 0===B?void 0:B.imageRatio.id)===5;return Y&&!(null!==(P=Y)&&void 0!==P&&P.items.length)&&a.remarkType===ey.v.none?null:(0,y.jsxs)("div",{className:(0,G.cn)("-mx-4 grid gap-3 border-t border-horizontal-line py-6 first:border-none md:mx-0 md:gap-x-6 md:gap-y-5",U&&"!border-none [&+*]:!border-none","row"===direction()&&"md:flex","textArea"===j&&"overflow-x-auto hide-scrollbar",d&&"md:border-none md:py-0",u&&"border-t-0",h&&"border-none"),style:"row"!==direction()?{gridTemplateColumns:"minmax(0, 1fr)"}:void 0,children:[w&&z&&(0,y.jsx)(k.H2,{id:void 0!==b?"section-".concat(b):void 0,className:(0,G.cn)("shrink-0 basis-[168px] px-4 text-text md:px-0",d&&"md:border-t md:border-horizontal-line md:py-6",m&&"md:border-b md:border-horizontal-line"),children:w}),d?(0,y.jsxs)("div",{className:"flex w-full gap-6",children:[(0,y.jsx)("div",{className:(0,G.cn)("grow max-md:px-4 md:w-full md:border-t md:border-horizontal-line md:py-6 md:block",m&&"md:border-b md:border-horizontal-line",D&&"hidden"),children:C&&(0,y.jsx)(ew,{content:a,shopInfo:i,posts:A})}),(0,y.jsx)("div",{className:(0,G.cn)("grow max-md:px-4 md:w-full md:border-t md:border-horizontal-line md:py-6 md:block",m&&"md:border-b md:border-horizontal-line",C&&"hidden"),children:f&&x&&D&&(0,y.jsx)(ew,{content:x,shopInfo:f,posts:A})})]}):(0,y.jsx)("div",{className:"min-w-0 grow px-4 md:px-0",children:(0,y.jsx)(ew,{content:a,shopInfo:i,posts:A})})]})}),eT=n(5155),eS=n(8215),eN=n(1248),eO=n(4409),eI=n(2962),e_=n(1617),eC=n(787);function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,F=function(){};return{s:F,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){a=!0,r=e},f:function(){try{l||null==n.return||n.return()}finally{if(a)throw r}}}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function shouldSkipByRemarks(e,t){return e===ey.v.none||(e!==ey.v.top||(null==t?void 0:t.top)==="")&&(e!==ey.v.bottom||(null==t?void 0:t.bottom)==="")&&(e!==ey.v.both||(null==t?void 0:t.top)==="")&&(null==t?void 0:t.bottom)===""}function shouldSkipByAttachedViewItemsForShopDetail(e,t){if("checkBoxComposite"===t.componentName){var n,o=null===(n=t[t.componentName])||void 0===n?void 0:n.items;return!(null!=o&&o.some(function(e){return null==e?void 0:e.checked}))&&shouldSkipByRemarks(t.remarkType,t.remarks)}return"baseInfoBusinessHours"===t.componentName?0===e.businessHours.length&&"IS_ALREADY_OPEN"===e.openStatus&&shouldSkipByRemarks(t.remarkType,t.remarks):"baseInfoPhone"===t.componentName&&!e.tel&&shouldSkipByRemarks(t.remarkType,t.remarks)}var eD=["cmsItemValues"],eB=n(2451),eF=["cmsItemValues"];function ShopDetail_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}var ShopDetail=function(e){var t,n,h,v,b,g,k,T,S,N,O,I,_,C=e.status,D=e.shop,B=e.posttypesWithPosts,M=e.seoSetting,P=e.optionalProps,A=(0,f.Dv)(x.Eu),L=(0,f.Dv)(x.C$),H=(0,f.b9)(x.Gq),E=(0,f.b9)(x.mw),z=(0,p.useState)("attachedMain"),Y=z[0],U=z[1];if(!D)return 404===C?(0,y.jsx)(eT.Z,{}):429===C?(0,y.jsx)(eS.Z,{}):(0,y.jsx)(eN.Z,{});var W=(null!=P?P:{}).searchTargetLabel,$=void 0===W?"åºè":W,R=D.cmsItemValues,Z=(0,l.Z)(D,eF),V=function(e){var t,n=[],o=_createForOfIteratorHelper(e);try{for(o.s();!(t=o.n()).done;){var r=t.value.content;if("textAccordion"===r.componentName){var l=r.textAccordion;if(null!=l&&l.isFaqStructuredEnabled){var a,i,s=_createForOfIteratorHelper(null!==(a=l.items)&&void 0!==a?a:[]);try{for(s.s();!(i=s.n()).done;){var c,d,u,m=i.value;if(m){var p=null!==(c=null===(d=m.headline)||void 0===d?void 0:d.trim())&&void 0!==c?c:"",h=null!==(u=m.text)&&void 0!==u?u:"";
1(p||h.trim())&&n.push({questionName:p,acceptedAnswerText:h})}}}catch(e){s.e(e)}finally{s.f()}}}}}catch(e){o.e(e)}finally{o.f()}return n.length>0?n:null}(R),K=null===(v=R.find(function(e){return"baseInfoBusinessHours"===e.content.componentName}))||void 0===v?void 0:v.content;K&&(Z.baseInfoBusinessHours=K);var q=Z.nameKanji,G=Z.selectArea,J=Z.inputUrlWithModal,Q=Z.checkBoxLabel,X=Z.brand.img,ee=eo.r.getDirectoryPath(),et=ep.v.getBreadcrumbs();if(G.selectArea){var en=G.selectArea.selected.item,er=en.middleItem,el=en.smallItem;er.label&&et.push({href:"/".concat(ee).concat(encodeURIComponent(er.label),"/"),label:er.label}),el.label&&(er.label?et.push({href:"/".concat(ee).concat(encodeURIComponent(er.label),"/").concat(encodeURIComponent(el.label)),label:el.label}):et.push({href:"/".concat(ee).concat(encodeURIComponent(el.label),"/"),label:el.label}))}et.push({href:"/".concat(ee,"detail/").concat(D.storeCode,"/"),label:q,spLabel:"".concat($,"詳細")});var ea={streetAddress:D.address,addressLocality:(null===(b=G.selectArea)||void 0===b?void 0:b.selected.item.smallItem.label)||void 0,addressRegion:(null===(g=G.selectArea)||void 0===g?void 0:g.selected.item.middleItem.label)||void 0,postalCode:D.zipCode,addressCountry:"JP"},ei=null==Q?void 0:null===(k=Q.checkBoxLabel)||void 0===k?void 0:k.items.filter(function(e){return null==e?void 0:e.checked}),es=(t=null!==D.attachedStoreId&&D.attachedStoreType===ej.k.MAIN,n=function(e,t){var n,o;return null===(n=D.attachedStore)||void 0===n?void 0:null===(o=n.cmsItemValues)||void 0===o?void 0:o.find(function(n){return n.cmsItemId===e&&n.content.isAttachedStoreFormat===t})},h=function(e,t){var n,o=null!==(n=D.attachedStore)&&void 0!==n?n:{};return{type:"attached",attachedShopInfo:(o.cmsItemValues,(0,l.Z)(o,eD)),items:[{item:e,attachedItemValue:t}]}},D.cmsItemValues.reduce(function(e,o,r){if("hpPostWrapper"===o.content.componentName){var l,a=null==B?void 0:B.find(function(e){var t;return e.slug===(null===(t=o.content.hpPostWrapper)||void 0===t?void 0:t.slug)});if(!(null!=a&&null!==(l=a.posts)&&void 0!==l&&l.length))return e}if(!t)return e.push({item:o,type:"normal"}),e;var i=e[e.length-1],s=n(o.cmsItemId,o.content.isAttachedStoreFormat),c=shouldSkipByAttachedViewItemsForShopDetail(D,o.content),d=null!=s&&!!s.content&&shouldSkipByAttachedViewItemsForShopDetail(D.attachedStore,s.content);if(c&&d||c&&!s)return e;if(o.content.isAttachedStoreFormat){if(!s)return e.push({item:o,type:"normal"}),e;0===r?e.push(h(o,s)):(null==i?void 0:i.type)==="attached"?i.items.push({item:o,attachedItemValue:s}):(null==i?void 0:i.type)==="normal"&&e.push(h(o,s))}else e.push({item:o,type:"normal"});return e},[])),ec=null==J?void 0:null===(T=J.inputUrlWithModal)||void 0===T?void 0:T.items.find(function(e){return(null==e?void 0:e.modalItems.find(function(t){return(null==e?void 0:e.checked)&&t.url}))||(null==e?void 0:e.checked)&&(null==e?void 0:e.url)});return(0,y.jsxs)(s.A,{footer:{className:(0,a.Z)(ec&&"after:block after:h-28 md:after:content-none")},children:[(0,y.jsx)(eI.gR,{itemListElements:et.map(function(e,t){var n=e.label,o=e.href;return{position:t+1,name:n,item:0===t?o:"".concat(M.host).concat(o)}})}),V&&(0,y.jsx)(eI.Mg,{mainEntity:V}),(0,y.jsx)(eI.wq,{type:null!==(S=r.Pj[null!==(N=D.brand.id)&&void 0!==N?N:""])&&void 0!==S?S:r.Pj.DEFAULT,id:M.url,url:M.url,name:M.title,de
1scription:M.description,telephone:D.tel,address:ea,geo:{latitude:D.latitude,longitude:D.longitude},event:null==B?void 0:B.flatMap(function(e){return e.posts.map(function(t){var n=t.thumbnail&&t.thumbnail.startsWith("http")?t.thumbnail:t.thumbnail?"".concat(r.G3,"/").concat(t.thumbnail):t.defaultImgUrl?t.defaultImgUrl:"".concat(r.G3,"/").concat(r.mu);return{"@type":"Event",name:t.title,url:"".concat(M.host,"/").concat(ee,"detail/").concat(D.storeCode,"/").concat(e.slug,"/").concat(t.id,"/"),startDate:(0,eB.O)(t.period.start),endDate:(0,eB.O)(t.period.end),offers:[{priceCurrency:"JPY",validFrom:(0,eB.O)(t.period.start),availability:"https://schema.org/InStock"}],location:{"@type":"Place",name:D.nameKanji,address:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ShopDetail_ownKeys(Object(n),!0).forEach(function(t){(0,o.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ShopDetail_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({"@type":"PostalAddress"},ea)},description:t.body,image:n,organizer:{"@type":"Organization",name:D.nameKanji}}})})}),(0,y.jsxs)(i.W,{children:[(0,y.jsx)(w.O,{items:et}),(0,y.jsxs)("div",{className:(0,a.Z)("relative mt-3 flex items-start justify-between gap-6",A&&L&&"grid items-center gap-x-3 gap-y-3"),children:[(0,y.jsxs)("div",{className:(0,a.Z)("flex flex-wrap items-center gap-3",A&&L&&"row-[1/2]"),children:[(0,y.jsxs)("div",{className:"flex items-center gap-3",children:[X&&(0,y.jsx)("img",{src:X,className:"h-11 w-11 md:h-12 md:w-12",alt:""}),(0,y.jsx)(u.H1,{className:"text-text",children:q})]}),ei&&(0,y.jsx)("div",{className:"flex flex-wrap gap-3",children:ei.map(function(e){return e&&(0,y.jsx)(c.V,{children:e.label},e.id)})})]}),ec&&(0,y.jsx)("div",{className:(0,a.Z)("fixed inset-x-0 bottom-0 z-10 md:static md:w-fit","before:block before:h-14 before:w-full before:bg-gradient-to-b before:from-transparent before:to-[color:rgb(var(--background-color))] md:before:content-none",A&&L&&"row-[1/2]"),children:(0,y.jsxs)("div",{className:"flex w-full flex-wrap justify-center gap-3 bg-[color:rgb(var(--background-color))] px-4 pb-5 md:w-[300px] md:justify-end md:bg-none md:p-0",children:[null===(O=J.inputUrlWithModal)||void 0===O?void 0:O.items.map(function(e){if(null!=e&&e.checked){var t,n,o="#".concat(null===(t=e.extendColors)||void 0===t?void 0:t.detailPageButton),r="#".concat(null===(n=e.extendColors)||void 0===n?void 0:n.detailPageText),l={backgroundColor:o?"".concat(o):void 0,color:r?"".concat(r):void 0};return e.hasModal?e.modalItems.some(function(e){return!!e.url})&&(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(d.z,{onClick:function(){E(e),H(!0)},rel:"noopener",priority:"primary",className:"min-w-36 max-w-[50vw-36px] grow basis-1/3 md:w-36 md:grow-0",style:l,children:e.label},e.id)}):(null==e?void 0:e.url)&&(0,y.jsx)(d.z,{href:e.url,target:(0,eO.a)(e.url),rel:"noopener",priority:"primary",className:"min-w-36 max-w-[50vw-36px] grow basis-1/3 md:w-36 md:grow-0",style:l,children:e.label},e.id)}}),(0,y.jsx)(e_.g,{})]})}),A&&L&&(0,y.jsx)(m._,{className:"row-[1/2] md:row-span-1",storeCode:D.storeCode})]}),!A&&(null!==(I=null===(_=eC.n7.getButton())||void 0===_?void 0:_(D.storeCode))&&void 0!==I?I:r.$p&&(0,y.jsx)(j,{storeCode:D.storeCode,className:"mt-4 w-full md:w-fit md:min-w-80"})),(0,y.jsx)("div",{className:"mt-2 md:mt-4",children:es.map(function(e,t){var n;return(0,y.jsx)(p.Fragment,{children:"attached"===e.type?(0,y.jsx)("div",{className:"pb-6 pt-6",children:(0,y.jsxs)("div",{className:"max-md:-mx-4 max-md:border-b max-md:border-primary max-md:px-4",children:[(0,y.jsx)(TabsForAttachedView,{activeTabForAttachedView:Y,setActiveTabForAttachedView:U}),e.items.map(function(n,o){var r,l;return(0,y.jsx)(ek,{content:n.item.content,attachedItemContent:null===(r=n.attachedItemValue)||void 0===r?void 0:r.content,shopInfo:Z,attachedShopInfo:e.attachedShopInfo,posttypesWithPosts:B||void 0,searchTargetLabel:$,isAttachedView:!0,isFirstAttachedItem:0===o,isLastAttachedItem:o===e.items.length-1,activeTabForAttachedView:Y,cmsItemId:n.item.cmsItemId,prevIsAttachedView:(null===(l=es[t-1])||void 0===l?void 0:l.type)==="attached"},"attached-block-".concat(t,"-").concat(o))})]})},"attached-block-".concat(t)):(0,y.jsx)(ek,{content:e.item.content,shopInfo:Z,posttypesWithPosts:B||void 0,searchTargetLabel:$,prevIsAttachedView:(null===(n=es[t-1])||void 0===n?void 0:n.type)==="attached",cmsItemId:e.item.cmsItemId})},"outlineBlock-".concat(t))})})]})]})},TabButtonForAttachedView=function(e){var t=e.isActive,n=e.onClick,o=e.storeName;return(0,y.jsx)("button",{type:"button",onClick:n,className:(0,G.cn)("max-md:relative max-md:bg-secondary-button max-md:rounded-t-[4px] max-md:py-2.5 max-md:active:bg-secondary-button md:pointer-events-none",!t&&"max-md:border-b max-md:border-primary",t&&"max-md:before:absolute max-md:before:-bottom-px max-md:before:left-[-4px] max-md:before:z-30 max-md:before:size-1 max-md:before:rounded-br-[4px] max-md:before:border-b max-md:before:border-r max-md:before:border-primary max-md:before:shadow-[2px_2px_0_background-color]",t&&"max-md:after:absolute max-md:after:-bottom-px max-md:after:right-[-4px] max-md:after:z-30 max-md:after:size-1 max-md:after:rounded-bl-[4px] max-md:after:border-b max-md:after:border-l max-md:after:border-primary max-md:after:shadow-[-2px_2px_0_bg-background-color]",t&&"max-md:-translate-y-
1px max-md:border-l max-md:border-r max-md:border-t max-md:border-primary max-md:z-20 max-md:bg-background-color"),children:(0,y.jsx)(k.H2,{className:"text-primary max-md:text-base md:text-xl md:text-text",children:o})})},TabsForAttachedView=function(e){var t,n,o=e.activeTabForAttachedView,r=e.setActiveTabForAttachedView;return(0,y.jsx)("div",{className:"overflow-hidden max-md:-mx-4 max-md:py-px",children:(0,y.jsxs)("div",{className:"relative grid text-center max-md:-mx-4 max-md:grid-cols-[16px_1fr_12px_1fr_16px] max-md:px-4 max-md:after:absolute max-md:after:bottom-0 max-md:after:left-0 max-md:after:z-10 max-md:after:w-full max-md:after:border-b-primary max-md:after:content-[''] md:grid-cols-[168px_minmax(0,392px)_minmax(0,392px)] md:gap-6 md:pb-3",children:[(0,y.jsx)("div",{className:"max-md:border-b max-md:border-primary"}),(0,y.jsx)(TabButtonForAttachedView,{isActive:"attachedMain"===o,onClick:function(){return r("attachedMain")},storeName:null!==(t=ep.v.getSystemSettingValue().attachedMainStoreName)&&void 0!==t?t:""}),(0,y.jsx)("div",{className:"max-md:border-b max-md:border-primary md:hidden"}),(0,y.jsx)(TabButtonForAttachedView,{isActive:"attachedSub"===o,onClick:function(){return r("attachedSub")},storeName:null!==(n=ep.v.getSystemSettingValue().attachedSubStoreName)&&void 0!==n?n:""}),(0,y.jsx)("div",{className:"max-md:border-b max-md:border-primary md:hidden"})]})})};function _storeCode_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}var DetailPage=function(e){return(0,y.jsx)(ShopDetail,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_storeCode_ownKeys(Object(n),!0).forEach(function(t){(0,o.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_storeCode_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.