(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7457],{44164:function(e,l,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/location",function(){return t(39959)}])},28480:function(e,l){"use strict";l.Z={src:"/_next/static/media/default-plan.2efe6685.webp",height:210,width:279,blurDataURL:"data:image/webp;base64,UklGRrYAAABXRUJQVlA4WAoAAAAQAAAABwAABQAAQUxQSDEAAAAAAQAAEQkAAgAAAF7l1kkAAACk/////5EAALr//fv/uwAADIP4/o8SAAEAAC83AAABAFZQOCBeAAAAMAIAnQEqCAAGAAJAOCWwAnS6AAM5JjqNSAAA/vdC9mR0nST9f9jeROrmaEsBdWmTnfLpzvlP+LH2+nqeF+e3Z/SO+TUWzec2L7/aXvkcNBU2xo7Yw5B2nQrGQAAAAA==",blurWidth:8,blurHeight:6}},39959:function(e,l,t){"use strict";t.r(l),t.d(l,{__N_SSP:function(){return eQ},default:function(){return eH}});var n,i,r,o,a,s,d=t(85893),c=t(1677),u=t(82207),p=t(26381),m=t(25611),x=t(26377),v=t(67275),h=t(38631),f=t(45485),g=t(49246),b=t(94635),j=t(98287),w=function(e){var l,t;let{campaignSection:n}=e,{t:i}=(0,j.$G)("common");return(0,d.jsx)(v._,{customClassName:"!pr-0 md:!pr-0 xl:!pr-0",children:(null==n?void 0:n.display)?(0,d.jsxs)("div",{className:"pt-[21px] pb-16",children:[(0,d.jsx)("h4",{className:"text-3xs mb-2 uppercase text-primary","aria-label":null!==(l=i("campaignBanner"))&&void 0!==l?l:"",children:n.placeholder}),(0,d.jsx)("h2",{className:"text-[32px] font-bold","aria-label":null!==(t=i("campaignBanner"))&&void 0!==t?t:"",children:n.title}),(0,d.jsx)("div",{className:"mt-[32px]",children:(0,d.jsx)(b.Z,{campaignList:(null==n?void 0:n.data)||[]})})]}):null})},N=t(44369),y=t(67294),A=function(e){let{caseStudiesSection:l}=e,t=(0,y.useMemo)(()=>{var e;return null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.slice(0,3)},[l]);return(0,d.jsx)("div",{className:"relative w-full",children:(0,d.jsx)(v._,{customClassName:"bg-gray-97",children:(null==l?void 0:l.display)?(0,d.jsx)("div",{className:"pb-4 pt-8 sm:pt-16",children:(0,d.jsx)(N.Z,{title:l.title,data:t,placeholder:null==l?void 0:l.placeholder})}):null})})},k=t(71336),C=t(66793),E=t(6071),S=t(88474),T=t(50361),R=t.n(T),L=function(e){var l;let{source:t,locationForm:n}=e,i=(0,y.useMemo)(()=>{let e=R()(n.fields);return{...n,source:t,fields:e.map(e=>(g.$q.includes(e.name)||(e.className="md:col-span-2"),e))}},[n,t]);return(null==n?void 0:n.id)!==0?(0,d.jsx)(C.X,{id:S._h.LOCATION_INQUIRY,image:(null===(l=n.image)||void 0===l?void 0:l.url)||c.Fo,children:(0,d.jsx)(E.F,{formData:i,headerSize:"small",layout:"column",customSource:c.y7.LOCATION})}):null},O=t(35723),M=t(56642);function _(e){let{childrenLeft:l,childrenRight:t}=e,n=(0,M.C)(O.eq),{title:i=""}=n||{};return(0,d.jsxs)(v._,{children:[(0,d.jsx)("div",{className:(0,u.AK)("mt-[28.75px] mb-[32px]","text-[32px] leading-[40px] font-bold","hidden md:!block"),children:i}),(0,d.jsxs)("div",{className:"w-full pb-[20px] md:flex md:pb-[64px]",children:[(0,d.jsx)("div",{className:"w-full md:!w-[55%] md:pr-[16px] lg:pr-[40px]",children:(0,d.jsx)("div",{children:l})}),(0,d.jsx)("div",{className:"hidden flex-1 md:!block",children:t}),(0,d.jsx)(d.Fragment,{})]})]})}var I=t(57277),z=t(12351),Z=t(19946),F=t(32984),P=t(16723),K=t(61363),B=t(84575),G=t(14227),D=t(23784),U=t(73781);let J=(0,y.createContext)(null);function $(){let[e,l]=(0,y.useState)([]);return[e.length>0?e.join(" "):void 0,(0,y.useMemo)(()=>function(e){let t=(0,U.z)(e=>(l(l=>[...l,e]),()=>l(l=>{let t=l.slice(),n=t.indexOf(e);return -1!==n&&t.splice(n,1),t}))),n=(0,y.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props}),[t,e.slot,e.name,e.props]);return y.createElement(J.Provider,{value:n},e.children)},[l])]}let q=Object.assign((0,z.yV)(function(e,l){let t=(0,Z.M)(),{id:n=`headlessui-label-${t}`,passive:i=!1,...r}=e,o=function e(){let l=(0,y.useContext)(J);if(null===l){let l=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(l,e),l}return l}(),a=(0,D.T)(l);(0,P.e)(()=>o.register(n),[n,o.register]);let s={ref:a,...o.props,id:n};return i&&("onClick"in s&&delete s.onClick,"onClick"in r&&delete r.onClick),(0,z.sY)({ourProps:s,theirProps:r,slot:o.slot||{},defaultTag:"label",name:o.name||"Label"})}),{});var W=t(39516),V=t(15466),Q=t(46045),H=t(18689),X=t(31147),Y=t(64103),ee=t(3855),el=t(94192),et=((n=et||{})[n.RegisterOption=0]="RegisterOption",n[n.UnregisterOption=1]="UnregisterOption",n);let en={0(e,l){let t=[...e.options,{id:l.id,element:l.element,propsRef:l.propsRef}];return{...e,options:(0,B.z2)(t,e=>e.element.current)}},1(e,l){let t=e.options.slice(),n=e.options.findIndex(e=>e.id===l.id);return -1===n?e:(t.splice(n,1),{...e,options:t})}},ei=(0,y.createContext)(null);ei.displayName="RadioGroupDataContext";let er=(0,y.createContext)(null);function eo(e,l){return(0,F.E)(l.type,en,e,l)}er.displayName="RadioGroupActionsContext";var ea=((i=ea||{})[i.Empty=1]="Empty",i[i.Active=2]="Active",i);let es=Object.assign((0,z.yV)(function(e,l){let t=(0,Z.M)(),{id:n=`headlessui-radiogroup-${t}`,value:i,defaultValue:r,name:o,onChange:a,by:s=(e,l)=>e===l,disabled:d=!1,...c}=e,u=(0,U.z)("string"==typeof s?(e,l)=>(null==e?void 0:e[s])===(null==l?void 0:l[s]):s),[p,m]=(0,y.useReducer)(eo,{options:[]}),x=p.options,[v,h]=$(),[f,g]=(0,W.f)(),b=(0,y.useRef)(null),j=(0,D.T)(b,l),[w,N]=(0,X.q)(i,a,r),A=(0,y.useMemo)(()=>x.find(e=>!e.propsRef.current.disabled),[x]),k=(0,y.useMemo)(()=>x.some(e=>u(e.propsRef.current.value,w)),[x,w]),C=(0,U.z)(e=>{var l;if(d||u(e,w))return!1;let t=null==(l=x.find(l=>u(l.propsRef.current.value,e)))?void 0:l.propsRef.current;return(null==t||!t.disabled)&&(null==N||N(e),!0)});!function({container:e,accept:l,walk:t,enabled:n=!0}){let i=(0,y.useRef)(l),r=(0,y.useRef)(t);(0,y.useEffect)(()=>{i.current=l,r.current=t},[l,t]),(0,P.e)(()=>{if(!e||!n)return;let l=(0,V.r)(e);if(!l)return;let t=i.current,o=r.current,a=Object.assign(e=>t(e),{acceptNode:t}),s=l.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,a,!1);for(;s.nextNode();)o(s.currentNode)},[e,n,i,r])}({container:b.current,accept:e=>"radio"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let E=(0,U.z)(e=>{let l=b.current;if(!l)return;let t=(0,V.r)(l),n=x.filter(e=>!1===e.propsRef.current.disabled).map(e=>e.element.current);switch(e.key){case K.R.Enter:(0,H.g)(e.currentTarget);break;case K.R.ArrowLeft:case K.R.ArrowUp:if(e.preventDefault(),e.stopPropagation(),(0,B.jA)(n,B.TO.Previous|B.TO.WrapAround)===B.fE.Success){let e=x.find(e=>e.element.current===(null==t?void 0:t.activeElement));e&&C(e.propsRef.current.value)}break;case K.R.ArrowRight:case K.R.ArrowDown:if(e.preventDefault(),e.stopPropagation(),(0,B.jA)(n,B.TO.Next|B.TO.WrapAround)===B.fE.Success){let e=x.find(e=>e.element.current===(null==t?void 0:t.activeElement));e&&C(e.propsRef.current.value)}break;case K.R.Space:{e.preventDefault(),e.stopPropagation();let l=x.find(e=>e.element.current===(null==t?void 0:t.activeElement));l&&C(l.propsRef.current.value)}}}),S=(0,U.z)(e=>(m({type:0,...e}),()=>m({type:1,id:e.id}))),T=(0,y.useMemo)(()=>({value:w,firstOption:A,containsCheckedOption:k,disabled:d,compare:u,...p}),[w,A,k,d,u,p]),R=(0,y.useMemo)(()=>({registerOption:S,change:C}),[S,C]),L=(0,y.useMemo)(()=>({value:w}),[w]),O=(0,y.useRef)(null),M=(0,el.G)();return(0,y.useEffect)(()=>{O.current&&void 0!==r&&M.addEventListener(O.current,"reset",()=>{C(r)})},[O,C]),y.createElement(g,{name:"RadioGroup.Description"},y.createElement(h,{name:"RadioGroup.Label"},y.createElement(er.Provider,{value:R},y.createElement(ei.Provider,{value:T},null!=o&&null!=w&&(0,H.t)({[o]:w}).map(([e,l],t)=>y.createElement(Q._,{features:Q.A.Hidden,ref:0===t?e=>{var l;O.current=null!=(l=null==e?void 0:e.closest("form"))?l:null}:void 0,...(0,z.oA)({key:e,as:"input",type:"radio",checked:null!=l,hidden:!0,readOnly:!0,name:e,value:l})})),(0,z.sY)({ourProps:{ref:j,id:n,role:"radiogroup","aria-labelledby":v,"aria-describedby":f,onKeyDown:E},theirProps:c,slot:L,defaultTag:"div",name:"RadioGroup"})))))}),{Option:(0,z.yV)(function(e,l){var t;let n=(0,Z.M)(),{id:i=`headlessui-radiogroup-option-${n}`,value:r,disabled:o=!1,...a}=e,s=(0,y.useRef)(null),d=(0,D.T)(s,l),[c,u]=$(),[p,m]=(0,W.f)(),{addFlag:x,removeFlag:v,hasFlag:h}=(0,G.V)(1),f=(0,ee.E)({value:r,disabled:o}),g=function e(l){let t=(0,y.useContext)(ei);if(null===t){let t=Error(`<${l} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}("RadioGroup.Option"),b=function e(l){let t=(0,y.useContext)(er);if(null===t){let t=Error(`<${l} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}("RadioGroup.Option");(0,P.e)(()=>b.registerOption({id:i,element:s,propsRef:f}),[i,b,s,e]);let j=(0,U.z)(e=>{var l;if((0,Y.P)(e.currentTarget))return e.preventDefault();b.change(r)&&(x(2),null==(l=s.current)||l.focus())}),w=(0,U.z)(e=>{if((0,Y.P)(e.currentTarget))return e.preventDefault();x(2)}),N=(0,U.z)(()=>v(2)),A=(null==(t=g.firstOption)?void 0:t.id)===i,k=g.disabled||o,C=g.compare(g.value,r),E={ref:d,id:i,role:"radio","aria-checked":C?"true":"false","aria-labelledby":c,"aria-describedby":p,"aria-disabled":!!k||void 0,tabIndex:k?-1:C||!g.containsCheckedOption&&A?0:-1,onClick:k?void 0:j,onFocus:k?void 0:w,onBlur:k?void 0:N},S=(0,y.useMemo)(()=>({checked:C,disabled:k,active:h(2)}),[C,k,h]);return y.createElement(m,{name:"RadioGroup.Description"},y.createElement(u,{name:"RadioGroup.Label"},(0,z.sY)({ourProps:E,theirProps:a,slot:S,defaultTag:"div",name:"RadioGroup.Option"})))}),Label:q,Description:W.d});var ed=t(71308),ec=t(77322),eu=t(38705),ep=t(24616),em=t(28480),ex=function(e){let{option:l,value:t}=e,{title:n="",thumbnail:i,subTitle:r=""}=l;return(0,d.jsxs)(eu.Listbox.Option,{className:e=>{let{selected:l}=e;return(0,u.AK)("flex flex-row","p-[8px]","h-[96px] max-w-[392px]","border border-solid rounded-[8px]","cursor-pointer","outline-none",l?"border-primary":"border-gray-300","md:hover:border-primary")},value:t,children:[(0,d.jsx)("div",{className:"h-[80px] w-[80px]",children:(0,d.jsx)(ep.Z,{className:"h-[80px] w-[80px] object-cover",src:(null==i?void 0:i.url)||em.Z,alt:(null==i?void 0:i.alt)||"",width:80,height:80})}),(0,d.jsxs)("div",{className:"mt-[14px] ml-[8px] flex-1",children:[n&&(0,d.jsx)("div",{className:"text-[14px] line-clamp-1",children:n}),r&&(0,d.jsx)("div",{className:"mt-[4px] text-[14px] text-gray-500 line-clamp-2",children:r})]})]})},ev=t(38535);function eh(e){let{plans:l=[],className:t=""}=e;return(0,d.jsx)(d.Fragment,{children:l.length?(0,d.jsx)("div",{className:(0,u.AK)(t,"px-[16px] py-[24px]","flex flex-col gap-y-[16px]","max-h-[452px] overflow-auto"),children:l.map(e=>(0,d.jsx)(ex,{option:e,value:e},e.id))}):(0,d.jsx)(ev.R,{})})}function ef(e){let{options:l=[],value:t,onChange:n}=e,{t:i}=(0,j.$G)(),r=e=>{e.key===t&&n&&n(S.kx.ALL)};return(0,d.jsx)("div",{className:"scrollbar-hide flex flex-nowrap gap-2 overflow-x-auto",children:l.map(e=>(0,d.jsx)(es.Option,{value:e.key,className:e=>{let{checked:l}=e;return(0,u.AK)("px-[10px] py-[4px]","text-[14px] leading-[24px]","border border-solid rounded-[56px]","cursor-pointer","whitespace-nowrap","outline-none",l?"text-primary border-primary bg-secondary":"border-gray-40","md:hover:border-primary md:hover:text-primary")},children:(0,d.jsx)("span",{className:"h-full w-full",onClick:()=>r(e),children:i(e.label)})},e.key))})}var eg=t(77030),eb=function(){let{t:e}=(0,j.$G)(),l=(0,M.C)(p.PM),{areaOptions:t,selectedAreas:n,selectedTrains:i,selectedPlans:r,trainLineOptions:o,handleChangeAreas:a,handleChangeTrainLines:s,handleChangePlans:c,handleChangeShowOption:m,planOptions:x,showOption:v}=(0,ed.HU)();return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:(0,u.AK)("md:hidden","py-2 -mx-4 px-4","bg-white","shadow-[0px_1px_2px_rgba(0,0,0,0.05),0px_0px_0px_1px_white]"),children:[(0,d.jsx)(eg.Z,{className:"!h-10 w-full rounded",menuChildrenWrapperClassName:"grid grid-cols-1 md:grid-cols-3",options:t,label:e("location:dropdown.prefecture.label"),placeholder:e("location:dropdown.prefecture.placeholder"),value:n,onChange:a,maxTagCount:1,icon:"pin"}),(0,d.jsxs)("div",{className:(0,u.AK)("mt-2","grid grid-cols-2"),children:[(0,d.jsx)(eg.Z,{className:"!h-10 rounded-l",menuChildrenWrapperClassName:"grid grid-cols-1 sm:grid-cols-2",options:o,label:e("location:dropdown.trainStation.label"),placeholder:e("location:dropdown.trainStation.placeholder"),value:i,onChange:s,maxTagCount:1,icon:"train"}),(0,d.jsx)(eg.Z,{className:"ml-[-1px] !h-10 rounded-r",options:x,label:e("location:dropdown.plan.label"),placeholder:e("location:dropdown.plan.placeholder"),value:r,onChange:c,maxTagCount:1,icon:"hot-desk",children:(0,d.jsx)(eh,{className:"max-h-full",plans:x})})]}),(0,d.jsx)(es,{className:"mt-4 w-full",value:v,onChange:m,children:(0,d.jsx)(ef,{value:v,onChange:m,options:S.aN.filter(e=>!e.desktopOnly)})})]}),(0,d.jsxs)("div",{className:(0,u.AK)("hidden md:!block","sticky pt-[12px]","bg-white","z-30",l?"top-[124px]":"top-[92px]"),children:[(0,d.jsxs)("div",{className:"flex flex-wrap",children:[(0,d.jsx)(ec.Z,{className:"w-full rounded-l md:max-w-[33.33%]",dropdownClassName:"min-w-max",menuClassName:"max-h-[423px] overflow-auto",menuChildrenWrapperClassName:"grid grid-cols-1 md:grid-cols-3",options:t,label:e("location:dropdown.prefecture.label"),placeholder:e("location:dropdown.prefecture.placeholder"),value:n,onChange:a,icon:"pin",maxTagCount:1,allowClear:!0}),(0,d.jsx)(ec.Z,{className:"w-[50%] md:mx-[-1px] md:max-w-[33.33%]",dropdownClassName:"min-w-max",menuClassName:"max-h-[423px] overflow-auto",menuChildrenWrapperClassName:"grid grid-cols-1 md:grid-cols-3",options:o,label:e("location:dropdown.trainStation.label"),placeholder:e("location:dropdown.trainStation.placeholder"),value:i,onChange:s,icon:"train",maxTagCount:1,allowClear:!0}),(0,d.jsx)(ec.Z,{className:"w-full rounded-r md:max-w-[33.33%]",dropdownClassName:"min-w-max",options:x,label:e("location:dropdown.plan.label"),placeholder:e("location:dropdown.plan.placeholder"),value:r,onChange:c,icon:"hot-desk",maxTagCount:1,allowClear:!0,children:(0,d.jsx)(eh,{plans:x})})]}),(0,d.jsx)("div",{className:"py-[16px]",children:(0,d.jsx)(es,{value:v,onChange:m,children:(0,d.jsx)(ef,{options:S.aN})})})]})]})},ej=t(99190),ew=t(7857),eN=t(4786);function ey(e){var l,t,n,i,r,o,a,s,d,c,u,p;let m=(null===(l=e[0].mapSection)||void 0===l?void 0:l.latitude)?+(null===(t=e[0].mapSection)||void 0===t?void 0:t.latitude):eN.j4,x=(null===(n=e[0].mapSection)||void 0===n?void 0:n.latitude)?+(null===(i=e[0].mapSection)||void 0===i?void 0:i.latitude):eN.xA,v=(null===(r=e[0].mapSection)||void 0===r?void 0:r.longitude)?+(null===(o=e[0].mapSection)||void 0===o?void 0:o.longitude):eN.EQ,h=(null===(a=e[0].mapSection)||void 0===a?void 0:a.longitude)?+(null===(s=e[0].mapSection)||void 0===s?void 0:s.longitude):eN.Ah;for(let l of e){if(null==l?void 0:null===(d=l.mapSection)||void 0===d?void 0:d.latitude){let e=+(null===(u=l.mapSection)||void 0===u?void 0:u.latitude);e>=m&&(m=e),e<=x&&(x=e)}if(null==l?void 0:null===(c=l.mapSection)||void 0===c?void 0:c.longitude){let e=+(null===(p=l.mapSection)||void 0===p?void 0:p.longitude);e>=h&&(h=e),e<=v&&(v=e)}}let f=Math.abs(h-v),g=Math.abs(m-x);return{east:h+f/5,west:v-f/5,north:m+g/5,south:x-g/5}}var eA=t(6158),ek=t.n(eA);t(34472);var eC=t(97762),eE=t(65423),eS=t(41664),eT=t.n(eS),eR=t(11163),eL=t(47567);let eO=e=>eC.renderToStaticMarkup((0,d.jsx)(ej.X,{width:null!==(r=null==e?void 0:e.width)&&void 0!==r?r:30,height:null!==(o=null==e?void 0:e.height)&&void 0!==o?o:30,className:null==e?void 0:e.className})),eM=e=>eC.renderToStaticMarkup((0,d.jsx)(ew.b,{width:null!==(a=null==e?void 0:e.width)&&void 0!==a?a:30,height:null!==(s=null==e?void 0:e.height)&&void 0!==s?s:30,className:null==e?void 0:e.className,highlight:null==e?void 0:e.highlight})),e_=(e,l)=>{var t,n,i,r,o,a,s,c,p,m,x;return eC.renderToStaticMarkup((0,d.jsx)("div",{className:(0,u.AK)("-mx-[10px] -mt-[10px] -mb-[15px]","w-[198px]","border border-solid border-gray-75 rounded","shadow-[0px_4px_6px_-1px_rgba(0,0,0,0.1),0px_2px_4px_-1px_rgba(0,0,0,0.06)]","overflow-hidden"),children:(0,d.jsxs)(eT(),{href:(0,ed.d_)(e,l),children:[(0,d.jsx)(eE.Z,{className:"h-[128px] w-full",src:(null===(t=e.thumbnail)||void 0===t?void 0:t.url)||(null===(i=e.buildingInformation)||void 0===i?void 0:null===(n=i.frontImage)||void 0===n?void 0:n.url)||(null===(o=e.buildingInformation)||void 0===o?void 0:null===(r=o.insideImage)||void 0===r?void 0:r.url)||"",alt:(null===(a=e.thumbnail)||void 0===a?void 0:a.alt)||(null===(c=e.buildingInformation)||void 0===c?void 0:null===(s=c.frontImage)||void 0===s?void 0:s.alt)||(null===(m=e.buildingInformation)||void 0===m?void 0:null===(p=m.insideImage)||void 0===p?void 0:p.alt)||(null==e?void 0:e.title)||"",width:198,height:128}),(0,d.jsxs)("div",{className:"p-4",children:[(0,d.jsx)("p",{className:(0,u.AK)("text-[16px] leading-6 text-primary line-clamp-2 md:line-clamp-3","hover:underline"),children:null==e?void 0:e.title}),(0,d.jsx)("p",{className:"mt-[22px] text-[14px] leading-5 text-gray-500 line-clamp-2 md:line-clamp-3",children:(null==e?void 0:null===(x=e.mapSection)||void 0===x?void 0:x.address)||""})]})]})}))};var eI=function(){var e,l,t,n,i,r,o,a,s,p,m;let x=(0,M.T)(),v=(0,M.C)(O.Yl),h=(0,M.C)(O.Ds),f=(0,M.C)(O.K7),g=(0,y.useRef)(),b=(0,y.useRef)(),j=(0,y.useRef)([]),w=(0,y.useRef)(!1),N=(0,y.useRef)(!1),A=(0,y.useRef)([]),[k,C]=(0,y.useState)(null),{query:E,locale:S}=(0,eR.useRouter)(),[T,R]=(0,y.useState)({}),[L,_]=(0,y.useState)({}),{headerPadding:z}=(0,eL.L)();(0,y.useEffect)(()=>{var e;let l=(0,u.PE)(E);(null===(e=Object.keys(l))||void 0===e?void 0:e.length)>0&&R(()=>({...l}))},[E]);let Z=(0,y.useMemo)(()=>window.innerWidth<c.kU.MD,[]);return ek().accessToken="pk.eyJ1Ijoid2V3b3JrLWphcGFuLWRldiIsImEiOiJjbGZhc255ZWEyZGJ6M3RvMWE0MTNla3RmIn0.Dy_lOu_t9gw8XKCzhrUf2A",(0,y.useEffect)(()=>{if(!h.id){N.current=L;let e=v.filter(e=>{var l,t,n,i,r,o,a,s,d,c,u,p,m,x,v,h;return+(null!==(d=null==e?void 0:null===(l=e.mapSection)||void 0===l?void 0:l.latitude)&&void 0!==d?d:0)>(null!==(c=null==L?void 0:null===(t=L.min)||void 0===t?void 0:t.lat)&&void 0!==c?c:0)&&+(null!==(u=null==e?void 0:null===(n=e.mapSection)||void 0===n?void 0:n.latitude)&&void 0!==u?u:0)<(null!==(p=null==L?void 0:null===(i=L.max)||void 0===i?void 0:i.lat)&&void 0!==p?p:0)&&+(null!==(m=null==e?void 0:null===(r=e.mapSection)||void 0===r?void 0:r.longitude)&&void 0!==m?m:0)>(null!==(x=null==L?void 0:null===(o=L.min)||void 0===o?void 0:o.lng)&&void 0!==x?x:0)&&+(null!==(v=null==e?void 0:null===(a=e.mapSection)||void 0===a?void 0:a.longitude)&&void 0!==v?v:0)<(null!==(h=null==L?void 0:null===(s=L.max)||void 0===s?void 0:s.lng)&&void 0!==h?h:0)});x((0,O.W6)(e))}},[L,v]),(0,y.useEffect)(()=>{b.current=new(ek()).Map({container:g.current,style:"mapbox://styles/wework-japan-dev/clfqt6s6q000y01o36mgbey4u",center:eN.$g,zoom:eN.B2}),b.current.on("zoomend",()=>{let{_ne:e,_sw:l}=b.current.getBounds();_({max:e,min:l})}),b.current.on("dragend",()=>{let{_ne:e,_sw:l}=b.current.getBounds();_({max:e,min:l})}),b.current._language=S||c.k$},[]),(0,y.useEffect)(()=>{b.current&&(j.current.forEach(e=>{e.remove()}),j.current=[],f.forEach(e=>{var l,t,n,i;if(Number(null==e?void 0:null===(l=e.mapSection)||void 0===l?void 0:l.latitude)>=eN.it&&Number(null==e?void 0:null===(t=e.mapSection)||void 0===t?void 0:t.latitude)<=eN.fP){let l=document.createElement("div");l.addEventListener("mouseenter",()=>{x((0,O.y0)(e))}),l.addEventListener("mouseleave",()=>{x((0,O.y0)({}))}),l.innerHTML=e.id===h.id?eM({highlight:!0,width:42,height:42}):eM();let t=new(ek()).Marker({element:l}).setLngLat([Number(null==e?void 0:null===(n=e.mapSection)||void 0===n?void 0:n.longitude),Number(null==e?void 0:null===(i=e.mapSection)||void 0===i?void 0:i.latitude)]).addTo(b.current),r=t.getElement();t.setPopup(new(ek()).Popup({closeButton:!1,className:"!hidden md:!block"}).setHTML(e_(e,T)));let o=t.getPopup();o.on("open",()=>{r.classList.toggle("z-10"),r.innerHTML=eO(),C(e)}),o.on("close",()=>{r.classList.toggle("z-10"),r.innerHTML=eM(),C(null)}),A.current.push(r),j.current.push(t)}}),b.current.triggerRepaint())},[f,b,Z,h]),(0,y.useEffect)(()=>{if(b.current){var e,l;if((null==v?void 0:v.length)>=1){let{east:e,west:l,north:t,south:n}=ey(v);b.current.fitBounds([l,n,e,t],{duration:eN.Tg,essential:!0})}if((null==v?void 0:v.length)===1){let t=v[0];b.current.flyTo({center:[Number(null===(e=t.mapSection)||void 0===e?void 0:e.longitude),Number(null===(l=t.mapSection)||void 0===l?void 0:l.latitude)],duration:eN.Tg,zoom:eN.J4,essential:!0})}b.current.triggerRepaint()}},[v]),(0,y.useEffect)(()=>{var e,l;if(b.current&&(null==h?void 0:h.mapSection)){w.current=!0;let{east:t,west:n,north:i,south:r}=ey([h]);b.current.fitBounds([n,r,t,i],{duration:eN.Tg,essential:!0}),b.current.flyTo({center:[Number(null===(e=h.mapSection)||void 0===e?void 0:e.longitude),Number(null===(l=h.mapSection)||void 0===l?void 0:l.latitude)],duration:eN.Tg,zoom:eN.J4,essential:!0})}b.current.triggerRepaint()},[h]),(0,y.useEffect)(()=>{var e,l,t,n,i;if(b.current&&!(null==h?void 0:h.mapSection)&&w.current&&(w.current=!1,(null===(e=N.current)||void 0===e?void 0:e.min)&&b.current.fitBounds([null===(l=N.current)||void 0===l?void 0:l.min,null===(t=N.current)||void 0===t?void 0:t.max],{duration:eN.Tg,essential:!0}),(null==v?void 0:v.length)===1)){let e=v[0];b.current.flyTo({center:[Number(null===(n=e.mapSection)||void 0===n?void 0:n.longitude),Number(null===(i=e.mapSection)||void 0===i?void 0:i.latitude)],duration:eN.Tg,zoom:eN.J4,essential:!0})}b.current.triggerRepaint()},[h]),(0,d.jsx)("div",{className:(0,u.AK)("md:sticky","h-full w-full"),style:{top:z,height:"calc(100vh - ".concat(z,"px)")},children:(0,d.jsxs)("div",{className:"relative h-full w-full overflow-hidden",ref:g,children:[(0,d.jsxs)("div",{className:"absolute top-[24px] left-[18px] z-10 h-[82px] w-[42px] rounded border border-gray-70 bg-white",children:[(0,d.jsx)("div",{className:"flex h-1/2 cursor-pointer items-center justify-center border-b",onClick:()=>{var e;null===(e=b.current)||void 0===e||e.zoomIn({duration:eN._z})},children:(0,d.jsx)(I.JO,{size:"16",icon:"plus"})}),(0,d.jsx)("div",{className:"flex h-1/2 cursor-pointer items-center justify-center",onClick:()=>{var e;null===(e=b.current)||void 0===e||e.zoomOut({duration:eN._z})},children:(0,d.jsx)(I.JO,{size:"16",icon:"minus"})})]}),k&&(0,d.jsx)("div",{className:(0,u.AK)("md:hidden","absolute bottom-[92px] left-4 right-4","overflow-hidden","border border-solid border-gray-90 rounded","h-[116px]","shadow-[0px_1px_2px_rgba(0,0,0,0.05)]","bg-white"),children:(0,d.jsxs)(eT(),{className:"flex h-full w-full",href:(0,ed.d_)(k,T),children:[(0,d.jsx)(eE.Z,{className:"aspect-[122/116] h-full w-[116px]",src:(null===(e=k.thumbnail)||void 0===e?void 0:e.url)||(null===(t=k.buildingInformation)||void 0===t?void 0:null===(l=t.frontImage)||void 0===l?void 0:l.url)||(null===(i=k.buildingInformation)||void 0===i?void 0:null===(n=i.insideImage)||void 0===n?void 0:n.url)||"",alt:(null===(r=k.thumbnail)||void 0===r?void 0:r.alt)||(null===(a=k.buildingInformation)||void 0===a?void 0:null===(o=a.frontImage)||void 0===o?void 0:o.alt)||(null===(p=k.buildingInformation)||void 0===p?void 0:null===(s=p.insideImage)||void 0===s?void 0:s.alt)||(null==k?void 0:k.title)||"",width:122,height:116}),(0,d.jsxs)("div",{className:"p-4",children:[(0,d.jsx)("p",{className:(0,u.AK)("text-[16px] leading-6 text-primary line-clamp-2","hover:underline"),children:null==k?void 0:k.title}),(0,d.jsx)("p",{className:"mt-[22px] text-[14px] leading-5 text-gray-500 line-clamp-1",children:(null==k?void 0:null===(m=k.mapSection)||void 0===m?void 0:m.address)||""})]})]})})]})},"location_search_map")},ez=t(35161),eZ=t.n(ez);function eF(e){let{title:l="",notes:t=[]}=e;return(0,d.jsxs)("div",{className:(0,u.AK)("p-6 md:p-12","border border-solid border-[#e6e6e7] rounded","bg-gray-98"),children:[(0,d.jsx)("h2",{className:"text-[20px] font-bold leading-[32px] md:text-[24px]",children:l}),(0,d.jsx)("ul",{className:"mt-4",children:eZ()(t,e=>(0,d.jsx)("li",{className:"mb-4",children:e},e))})]})}var eP=t(41609),eK=t.n(eP);function eB(){let{t:e}=(0,j.$G)(),l=(0,M.T)(),t=()=>{let e=document.getElementById(S._h.LOCATION_INQUIRY);null==e||e.scrollIntoView({behavior:"smooth"})},n=()=>{l((0,p.h7)({isOpen:!0,source:g.Vd.LOCATION_SEARCH_RESULT}))};return(0,d.jsxs)("div",{className:"p-md mt-[16px] flex gap-4 rounded bg-gray-97 sm:mt-[20px]",children:[(0,d.jsx)("div",{className:"hidden md:!block",children:(0,d.jsx)("div",{className:"rounded-full bg-indigo-200 p-2",children:(0,d.jsx)(I.JO,{icon:"search",type:"outline"})})}),(0,d.jsxs)("div",{children:[(0,d.jsx)("h5",{className:"text-[18px] leading-6 text-gray-900",children:e("location:searchResult.hintTitle")}),(0,d.jsx)("p",{className:"mt-2xs text-[14px] text-gray-500",children:e("location:searchResult.hintDescription")}),(0,d.jsxs)("div",{className:"mt-sm flex gap-3",children:[(0,d.jsx)(I.zx,{size:c.qE.LARGE,theme:c.bn.FILL,onClick:()=>n(),className:"w-1/2 !rounded md:w-[120px]",children:e("location:searchResult.requestViewing")}),(0,d.jsx)(I.zx,{size:c.qE.LARGE,theme:c.bn.OUTLINE,className:"w-1/2 !rounded md:w-[120px]",onClick:()=>t(),children:e("location:searchResult.contact")})]})]})]})}var eG=t(22643),eD=t(44256),eU=e=>{var l,t,n;let{location:i,index:r}=e,{t:o}=(0,j.$G)(),{stations:a=[],campaignTags:s=[]}=i,c=(0,M.T)(),{query:p}=(0,eR.useRouter)(),m=(0,M.C)(O.IH),x=(0,y.useMemo)(()=>{var e,l,t,n;return null!=i&&null!==(l=i.virtualTour)&&void 0!==l&&null!==(e=l.links)&&void 0!==e&&!!e.length&&(null==i?void 0:null===(n=i.virtualTour)||void 0===n?void 0:null===(t=n.links)||void 0===t?void 0:t.some(e=>{var l;return(null==e?void 0:e.link)&&(null==i?void 0:null===(l=i.virtualTour)||void 0===l?void 0:l.display)}))},[i]),[v,h]=(0,y.useState)({});(0,y.useEffect)(()=>{var e;let l=(0,u.PE)(p);(null===(e=Object.keys(l))||void 0===e?void 0:e.length)>0&&h(()=>({...l}))},[p]);let f=(0,y.useMemo)(()=>(null==a?void 0:a.length)>3?(0,d.jsxs)("div",{className:"border-gray-80 flex items-center gap-x-[4px] rounded border bg-gray-90 px-[4px] py-[1px] text-black",children:[(0,d.jsx)(I.JO,{icon:"train",size:"16",type:"outline",className:"!h-[9px] !w-[9px]"}),(0,d.jsxs)("p",{className:"text-[12px] leading-3",children:[" +",(null==a?void 0:a.length)-3]})]}):null,[a]),g=(0,y.useMemo)(()=>{var e,l;return+(null!==(l=null===(e=i.floorInformation)||void 0===e?void 0:e.numberOfMeetingRooms)&&void 0!==l?l:"")},[i]),b=(0,y.useMemo)(()=>i.id===m.id?"underline":"",[m,i]);return(0,d.jsx)(eT(),{href:(0,ed.d_)(i,v),children:(0,d.jsxs)("div",{className:"group mt-[16px] flex flex-col overflow-hidden !rounded border border-gray-70 sm:mt-[20px] sm:flex-row md:flex-col lg:flex-row",onMouseEnter:()=>{c((0,O.FI)(i))},onMouseLeave:()=>{c((0,O.FI)({}))},children:[(0,d.jsx)("div",{className:"group/image relative h-[196px] w-full shrink-0 overflow-hidden sm:!h-auto sm:min-h-[212px] sm:!w-[42%] md:!w-full lg:!w-[42%] lg:max-w-[284px]",children:(0,d.jsx)(eD.k,{location:i,index:r})}),(0,d.jsxs)("div",{className:"flex flex-1 flex-col justify-between gap-y-[16px] p-[16px]",children:[(0,d.jsxs)("div",{className:"",children:[(0,d.jsx)("div",{className:"mb-[4px] text-[20px] leading-8 text-gray-900 group-hover:underline ".concat(b),children:i.title}),(0,d.jsx)("p",{className:"hidden text-[16px] leading-7 sm:!block",children:null===(l=i.floorInformation)||void 0===l?void 0:l.businessHours}),(0,d.jsxs)("div",{className:"mt-[8px] flex flex-wrap items-center gap-x-[16px] gap-y-[8px]",children:[g>0?(0,d.jsxs)("p",{className:"w-full text-[14px] text-gray-65 sm:!w-auto",children:[(0,d.jsx)("span",{className:"mr-1 !rounded border border-gray-90 px-[4px] text-[12px] leading-3 text-black",children:g}),(0,d.jsx)("span",{className:"tracking-[0.6px] text-[#4a4a4a]",children:o("location:searchResult.meetingRooms")})]}):null,null==s?void 0:s.map((e,l)=>(0,d.jsx)(eG.Z,{text:o("location:locationDetail.".concat(e)),bgColor:"".concat(0===l?"bg-attention":"bg-cyan-300")},l)),x?(0,d.jsx)(eG.Z,{text:o("location:locationDetail.virtualTourAvailable"),bgColor:"bg-secondary"}):null]})]}),(0,d.jsxs)("div",{className:"text-gray-500",children:[(0,d.jsx)("p",{className:"mb-[8px] text-[14px] leading-5",children:null==i?void 0:null===(t=i.mapSection)||void 0===t?void 0:t.address}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-x-[16px] gap-y-[8px]",children:[null==a?void 0:null===(n=a.slice(0,3))||void 0===n?void 0:n.map(e=>{var l,t,n;return(0,d.jsxs)("div",{className:"flex items-center",children:[(0,d.jsx)("div",{className:"flex items-center gap-x-[4px]",children:null===(n=(null==e?void 0:e.trainLines)||[])||void 0===n?void 0:null===(t=n.filter(e=>{var l;return null==e?void 0:null===(l=e.icon)||void 0===l?void 0:l.url}))||void 0===t?void 0:null===(l=t.slice(0,3))||void 0===l?void 0:l.map(e=>{var l,t;return(0,d.jsx)("span",{className:"last:mr-[8px]",children:(0,d.jsx)(ep.Z,{image:null==e?void 0:e.icon,height:24,width:24,alt:(null==e?void 0:null===(l=e.icon)||void 0===l?void 0:l.alt)||"",src:(null==e?void 0:null===(t=e.icon)||void 0===t?void 0:t.url)||"",className:"!h-[24px] !w-[24px]"})},null==e?void 0:e.id)})}),(0,d.jsx)("p",{className:"text-[12px] leading-4 text-[#4a4a4a]",children:null==e?void 0:e.name})]},null==e?void 0:e.id)}),f]})]})]})]})})},eJ=()=>(0,d.jsx)("div",{children:(0,d.jsxs)("div",{className:"group mt-[16px] flex flex-col overflow-hidden rounded border border-gray-75 sm:mt-[20px] sm:flex-row md:flex-col lg:flex-row",children:[(0,d.jsx)("div",{className:"relative h-[196px] w-full shrink-0 overflow-hidden sm:!h-auto sm:min-h-[212px] sm:!w-[42%] md:!w-full lg:!w-[42%] lg:max-w-[284px]",children:(0,d.jsx)(ep.Z,{src:"/images/fallbackImage.webp",alt:"",className:"absolute top-0 left-0 !h-full !w-full !object-cover object-center opacity-100 transition-opacity !duration-300 group-hover:opacity-0",width:284,height:212})}),(0,d.jsxs)("div",{className:"flex flex-1 flex-col justify-between gap-y-[16px] p-[16px]",children:[(0,d.jsxs)("div",{className:"",children:[(0,d.jsx)("div",{className:"mb-[4px] h-[32px]  leading-8",children:(0,d.jsx)(I.Od,{})}),(0,d.jsx)("div",{className:"mt-[8px] flex h-[16px] flex-wrap items-center gap-x-[16px] gap-y-[8px]",children:(0,d.jsx)(I.Od,{})})]}),(0,d.jsxs)("div",{className:"text-gray-500",children:[(0,d.jsx)("div",{className:"mb-[8px] h-[24px] w-6/12 items-center gap-x-[8px]",children:(0,d.jsx)(I.Od,{})}),(0,d.jsx)("div",{className:"mb-[8px] h-[24px] w-6/12 items-center gap-x-[8px]",children:(0,d.jsx)(I.Od,{})})]})]})]})}),e$=function(){let{t:e}=(0,j.$G)(),l=(0,M.C)(O.B_),t=(0,M.C)(O.VZ);return(0,d.jsxs)("div",{className:"gap-y-2 pt-8 md:pt-0",children:[(0,d.jsx)("p",{className:"text-gray-500",children:e("location:searchResult.locationSearchResult",{locationCount:l.length})}),t?[void 0,void 0,void 0].map((e,l)=>(0,d.jsx)("div",{children:(0,d.jsx)(eJ,{})},l)):(0,d.jsx)(d.Fragment,{children:eK()(l)?(0,d.jsx)("div",{className:"my-8",children:(0,d.jsx)(eF,{title:e("location:noData.title"),notes:[e("location:noData.note1"),e("location:noData.note2")]})}):(0,d.jsx)(d.Fragment,{children:[...l].sort((e,l)=>((null==e?void 0:e.order)||NaN)-((null==l?void 0:l.order)||NaN)).map((e,l)=>1===l?(0,d.jsxs)("div",{children:[(0,d.jsx)(eU,{location:e,index:l}),(0,d.jsx)("div",{className:"hidden sm:!block",children:(0,d.jsx)(eB,{})})]},e.id):2===l?(0,d.jsxs)("div",{children:[(0,d.jsx)(eU,{location:e,index:l}),(0,d.jsx)("div",{className:"sm:hidden",children:(0,d.jsx)(eB,{})})]},e.id):(0,d.jsx)("div",{children:(0,d.jsx)(eU,{location:e,index:l})},e.id))})})]},"location_search_result")};function eq(){let{t:e}=(0,j.$G)("location"),{headerPadding:l}=(0,eL.L)(),[t,n]=(0,y.useState)(!1),i=e=>{n(e);let l=document.getElementById(c.sT);l&&(e?l.style.overflow="hidden":l.style.overflow="")};return(0,y.useEffect)(()=>{let e=()=>{let e=(0,u.tE)(window.innerWidth);e!==c._G.MOBILE&&t&&(n(!1),i(!1))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[t]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"md:hidden",children:[(0,d.jsx)(eb,{}),t&&(0,d.jsx)("div",{className:"absolute inset-x-0 bottom-0 z-10",style:{top:l},children:(0,d.jsx)(eI,{})}),(0,d.jsxs)("div",{className:(0,u.AK)("relative","-mx-4 px-4 mt-[1px]","transform transition-transform duration-500","bg-white","z-10"),style:{transform:t?"translate(0, ".concat(window.innerHeight-l-150,"px)"):"translate(0,0)"},children:[(0,d.jsx)("div",{className:(0,u.AK)("absolute bottom-full left-0 right-0","rounded-t-2xl","bg-white",t?"visible":"invisible"),children:(0,d.jsx)(I.zx,{className:(0,u.AK)("h-[88px] w-full","cursor-none"),icon:"list",size:c.qE.MEDIUM,theme:c.bn.TEXT,onClick:()=>i(!1),children:e("viewList")})}),(0,d.jsx)(e$,{})]}),(0,d.jsx)("div",{className:(0,u.AK)("fixed left-0 right-0 bottom-10","text-center","z-20",t?"hidden":""),children:(0,d.jsx)(I.zx,{className:"cursor-none !rounded-full",icon:"map",size:c.qE.MEDIUM,theme:c.bn.FILL,onClick:()=>i(!0),children:e("viewMap")})})]}),(0,d.jsxs)("div",{className:"hidden md:!block",children:[(0,d.jsx)(eb,{}),(0,d.jsx)(e$,{})]})]})}function eW(e){var l,t,n,i;let{virtualTourSection:r}=e,{t:o}=(0,j.$G)(),[a,s]=(0,y.useState)(!1),[u,p]=(0,y.useState)(!1),[m,x]=(0,y.useState)(!1);function h(e){e===S.MF.Left&&s(!1),e===S.MF.Right&&p(!1)}return(0,y.useEffect)(()=>{function e(){window.screen.width<=c.kU.MD&&x(!0),window.screen.width>c.kU.MD&&x(!1)}return window.screen.width<=c.kU.MD&&x(!0),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,d.jsx)("div",{children:(0,d.jsx)(v._,{customClassName:"!bg-gray-50 ",children:r.display?(0,d.jsxs)("section",{className:" py-8 sm:py-16",children:[(0,d.jsx)("h4",{className:"text-3xs mb-2 uppercase text-primary",children:null==r?void 0:r.placeholder}),(0,d.jsx)("h2",{className:"mb-[16px] text-[24px] font-bold leading-8 md:mb-[24px] md:text-[32px] md:leading-10",children:null==r?void 0:r.title}),(0,d.jsx)("div",{className:"h-full w-full",children:(0,d.jsxs)("div",{className:"grid gap-7 md:grid-cols-2",children:[r.leftLink?(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("iframe",{onMouseOut:()=>{h(S.MF.Left)},src:r.leftLink,className:"z-[10] h-[594px] w-full","aria-label":null!==(l=o("location:virtualTour.iFrameLabel"))&&void 0!==l?l:"",title:null!==(t=o("location:virtualTour.iFrameLabel"))&&void 0!==t?t:""}),(0,d.jsx)("div",{onClick:()=>{s(!0),m&&setTimeout(()=>{s(!1)},5e3)},className:a?"hidden":"absolute top-[0px] z-[20] h-full w-full bg-black opacity-[20%]"})]}):null,r.rightLink?(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("iframe",{onMouseOut:()=>{h(S.MF.Right)},src:r.rightLink,className:"z-[10] h-[594px] w-full","aria-label":null!==(n=o("location:virtualTour.iFrameLabel"))&&void 0!==n?n:"",title:null!==(i=o("location:virtualTour.iFrameLabel"))&&void 0!==i?i:""}),(0,d.jsx)("div",{onClick:()=>{p(!0),m&&setTimeout(()=>{p(!1)},5e3)},className:u?"hidden":"absolute top-[0px] z-[20] h-full w-full bg-black opacity-[20%]"})]}):null]})})]}):null})})}var eV=t(54887),eQ=!0,eH=function(e){let l=(0,M.T)(),{t}=(0,j.$G)("location"),[n,i]=(0,y.useState)(""),[r,o]=(0,y.useState)(""),[a,s]=(0,y.useState)(""),b=(0,M.C)(O.Zw),N=(0,eR.useRouter)(),{locale:C=c.k$,query:E}=N;(0,u.wq)(e);let{locations:T=[]}=e.layoutData,R=[{text:t("breadcrumbs.home"),href:c.q.HOME},{text:t("breadcrumbs.location"),href:c.q.LOCATION}],{virtualTourSection:I,caseStudiesSection:z,campaignsSection:Z,clientSection:F,locationInquirySection:P,locationSearchSection:K,searchLocationOptionsData:B,meta:G,headMeta:D,leadSource:U,locationForm:J}=e;return(0,y.useEffect)(()=>{l((0,p.Bh)(e.cmsLink||"")),l((0,O.uQ)(J)),l((0,O.Yd)(I)),l((0,O.P4)(z)),l((0,O.qn)(Z)),l((0,O.Ai)(F)),l((0,O.KS)(P)),l((0,O.yn)(K)),l((0,O.lK)(B)),l((0,f.dB)((null==e?void 0:e.layoutData)||{})),l((0,p.vB)(T)),l((0,O.Dm)({locale:C}));let t=(0,ed.Ie)(B,E);l((0,O.Lb)(t))},[]),(0,y.useEffect)(()=>{if(b&&b.areas&&b.plans&&b.trains){var e,l,n;let r=(0,u.PE)(E),{areas:a=[],plans:d=[],trains:p=[],showOption:m=S.kx.ALL}=b||{},x=C===c.lf.JA?"":"/".concat(C),v=eV.Z.stringify({...r,areas:eZ()(a,"slug"),plans:eZ()(d,"slug"),trains:eZ()(p,"slug"),show_option:m}),h="";if((null==a?void 0:a.length)===1){let i=null===(e=a[0])||void 0===e?void 0:e.slug;(null===(l=c.$S)||void 0===l?void 0:l[i])&&s(t("".concat(null===(n=c.$S)||void 0===n?void 0:n[i])))}else(null==a?void 0:a.length)>1&&a.every(e=>e.prefectureShortCode===c.Lq)?s(t("".concat(c.$S.tokyo))):s(G.title);a.forEach(e=>{h=h.concat((null==e?void 0:e.headMeta)||"")}),i(D.concat("\n",h));let f=eV.Z.stringify({show_option:"all",areas:eZ()(a,"slug"),...r});o("".concat(c.q.LOCATION,"?").concat(f));let g="".concat(x).concat(c.q.LOCATION,"?").concat(v);window.history.replaceState({...window.history.state,as:g,url:g},"",g),N.query={...E,...r,areas:eZ()(a,"slug"),plans:eZ()(d,"slug"),trains:eZ()(p,"slug"),show_option:m}}},[b,D,E,C,G]),(0,d.jsxs)(h.Z,{children:[(0,d.jsx)(m.Z,{meta:{...G,title:a},headMeta:n,url:r}),(0,d.jsxs)("div",{className:"m-auto",children:[(0,d.jsx)(v._,{customClassName:"hidden md:!block",children:(0,d.jsx)(x.Z,{breadcrumbs:R})}),(0,d.jsx)(_,{childrenRight:(0,d.jsx)(eI,{}),childrenLeft:(0,d.jsx)(eq,{})}),(0,d.jsx)(eW,{virtualTourSection:I}),(0,d.jsx)(w,{campaignSection:Z}),(0,d.jsx)(L,{source:U||g.Vd.LOCATION,locationForm:J}),(0,d.jsx)(A,{caseStudiesSection:z}),(0,d.jsx)(k.Z,{clientSection:F})]})]})}},66793:function(e,l,t){"use strict";t.d(l,{X:function(){return a}});var n=t(85893),i=t(1677),r=t(82207),o=t(65423);let a=e=>{let{children:l,image:t=i.Fo,customClass:a,id:s,priority:d,loading:c}=e;return(0,n.jsx)("div",{className:"m-auto w-full max-w-[1440px] xl:!px-[60px] xl:pt-[64px] md:!px-[40px] md:pt-[48px]"+a,id:s,children:(0,n.jsxs)("div",{className:(0,r.AK)("relative","md:pt-[74px]","bg-gray-97 md:bg-transparent"),children:[(0,n.jsx)("div",{className:(0,r.AK)("md:absolute top-0 left-0 bottom-0 right-0","md:-z-10"),children:(0,n.jsx)(o.Z,{src:t,alt:"",loading:c,priority:d,height:1440,width:790,className:"h-full w-full object-cover md:rounded-t-[8px]"})}),(0,n.jsx)("div",{className:(0,r.AK)("mx-auto","pt-8 pb-4 px-4 md:px-8","lg:px-[64px] lg:pt-[48px] lg:pb-[24px] xl:pt-[72px] xl:pb-[32px]","max-w-[872px]","rounded-t","bg-transparent bg-white"),children:l})]})})}},71336:function(e,l,t){"use strict";t.d(l,{Z:function(){return o}});var n=t(85893),i=t(82207),r=t(30006);function o(e){let{clientSection:l,style:t,isShowTitle:o}=e;return(0,n.jsx)("div",{className:(0,i.AK)("relative w-full bg-gray-97 py-[24px] md:pb-[64px]",t),children:(null==l?void 0:l.display)?(0,n.jsx)(r.Z,{...l,data:l.data||[],title:(null==l?void 0:l.title)||"",isShowTitle:o,ariaLabel:(null==l?void 0:l.ariaLabel)||""}):null})}},44256:function(e,l,t){"use strict";t.d(l,{k:function(){return o}});var n=t(85893),i=t(67294),r=t(65423);let o=e=>{var l,t,o,a,s,d,c,u;let{location:p,index:m}=e,[x,v]=(0,i.useState)(!1);return(0,n.jsx)(r.Z,{fill:!0,sizes:"100%",src:x?(null===(t=p.buildingInformation)||void 0===t?void 0:null===(l=t.insideImage)||void 0===l?void 0:l.url)||(null===(a=p.buildingInformation)||void 0===a?void 0:null===(o=a.frontImage)||void 0===o?void 0:o.url)||"":(null===(d=p.buildingInformation)||void 0===d?void 0:null===(s=d.frontImage)||void 0===s?void 0:s.url)||(null===(u=p.buildingInformation)||void 0===u?void 0:null===(c=u.insideImage)||void 0===c?void 0:c.url)||"",alt:(null==p?void 0:p.title)||"location-image",priority:m<4,className:"absolute top-0 left-0 !h-full !w-full !object-cover object-center ".concat(x?"fade-in-image":""),onMouseOver:()=>{v(e=>!e)},onMouseLeave:()=>{v(e=>e&&!1)}})}},99190:function(e,l,t){"use strict";t.d(l,{X:function(){return i}});var n=t(85893);function i(e){let{className:l,width:t=24,height:i=24}=e;return(0,n.jsxs)("svg",{className:l,width:t,height:i,viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"30",cy:"30",r:"30",fill:"black"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"white",d:"M18.53,23.38l.11.4-.49.32c-.38.27-.59.59-.59.97,0,.32.11.67.3,1.27l2.08,6.53,1.89-5.15-.62-1.67c-.38-1.05-.78-1.73-1.4-2.27l.11-.4c2.51.16,4.77.16,7.28,0l.11.4-.57.35c-.38.24-.54.49-.54.89,0,.32.11.7.3,1.27l2.16,6.58,1.73-4.56c.22-.59.3-1.02.3-1.54,0-1-.59-1.94-1.86-2.99l.11-.4c1.81.13,3.61.13,5.42,0l.11.4c-1.19,1.08-1.91,2.18-2.72,4.29l-3.61,9.44c-.89-.05-1.81-.05-2.7,0l-2.99-8.12-2.97,8.12c-.92-.05-1.89-.05-2.8,0l-4.34-11.35c-.57-1.46-.86-1.83-1.78-2.37l.11-.4c2.67.16,5.23.16,7.9,0ZM41.15,37.94c-4.64,0-7.58-2.97-7.58-7.47s3.13-7.47,7.66-7.47c4.21,0,7.12,2.45,7.55,6.53h-9.73c.16,3.37,1.75,4.8,4.58,4.8,1.67,0,3.26-.54,4.5-1.48l.4.3c-1.16,2.97-3.94,4.8-7.39,4.8ZM39.02,28.48h4.61c-.22-3.4-1.13-4.48-2.37-4.48-1.38,0-2.18,1.32-2.24,4.48ZM30,3.53C15.38,3.53,3.53,15.38,3.53,30s11.85,26.47,26.47,26.47,26.47-11.85,26.47-26.47S44.62,3.53,30,3.53ZM30,54.85c-13.73,0-24.85-11.13-24.85-24.85S16.27,5.15,30,5.15s24.85,11.13,24.85,24.85-11.13,24.85-24.85,24.85Z"})]})}},7857:function(e,l,t){"use strict";t.d(l,{b:function(){return r}});var n=t(85893),i=t(82207);function r(e){let{className:l="",width:t=24,height:r=24,highlight:o=!1}=e;return(0,n.jsxs)("svg",{className:(0,i.AK)(l,"group"),width:t,height:r,viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("rect",{className:"group-hover:fill-[#9999FF]",width:"60",height:"60",rx:"30",fill:o?"#9999FF":"#CCCCFF"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"black",d:"M18.53,23.38l.11.4-.49.32c-.38.27-.59.59-.59.97,0,.32.11.67.3,1.27l2.08,6.53,1.89-5.15-.62-1.67c-.38-1.05-.78-1.73-1.4-2.27l.11-.4c2.51.16,4.77.16,7.28,0l.11.4-.57.35c-.38.24-.54.49-.54.89,0,.32.11.7.3,1.27l2.16,6.58,1.73-4.56c.22-.59.3-1.02.3-1.54,0-1-.59-1.94-1.86-2.99l.11-.4c1.81.13,3.61.13,5.42,0l.11.4c-1.19,1.08-1.91,2.18-2.72,4.29l-3.61,9.44c-.89-.05-1.81-.05-2.7,0l-2.99-8.12-2.97,8.12c-.92-.05-1.89-.05-2.8,0l-4.34-11.35c-.57-1.46-.86-1.83-1.78-2.37l.11-.4c2.67.16,5.23.16,7.9,0ZM41.15,37.94c-4.64,0-7.58-2.97-7.58-7.47s3.13-7.47,7.66-7.47c4.21,0,7.12,2.45,7.55,6.53h-9.73c.16,3.37,1.75,4.8,4.58,4.8,1.67,0,3.26-.54,4.5-1.48l.4.3c-1.16,2.97-3.94,4.8-7.39,4.8ZM39.02,28.48h4.61c-.22-3.4-1.13-4.48-2.37-4.48-1.38,0-2.18,1.32-2.24,4.48ZM30,3.53C15.38,3.53,3.53,15.38,3.53,30s11.85,26.47,26.47,26.47,26.47-11.85,26.47-26.47S44.62,3.53,30,3.53ZM30,54.85c-13.73,0-24.85-11.13-24.85-24.85S16.27,5.15,30,5.15s24.85,11.13,24.85,24.85-11.13,24.85-24.85,24.85Z"})]})}},77030:function(e,l,t){"use strict";t.d(l,{Z:function(){return h}});var n=t(85893),i=t(67294),r=t(38705),o=t(11355),a=t(82207),s=t(57277),d=t(98287),c=t(41609),u=t.n(c),p=t(38535),m=t(97699),x=t(20730);let v=r.Listbox.Button;function h(e){let{options:l=[],className:t="",dropdownClassName:c="",menuClassName:h="",menuChildrenWrapperClassName:f="",label:g,value:b=[],children:j,placeholder:w="",icon:N="",placeholderIcon:y="",labelAsTag:A=!1,maxTagCount:k,required:C=!1,disabled:E=!1,onChange:S}=e,{t:T}=(0,d.$G)("common"),[R,L]=(0,i.useState)(b),O=(0,i.useRef)(),M=[],_=()=>{S&&S(R),F()},I=()=>{S&&S([]),L([])},z=()=>{if(window.document&&!document.body.style.length)for(let e of(document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top="0px",document.body.style.width="100%",M))clearTimeout(e)},Z=()=>{window.document&&document.body.style.length&&(document.body.style.removeProperty("overflow"),document.body.style.removeProperty("position"),document.body.style.removeProperty("top"),document.body.style.removeProperty("width"))},F=()=>{L([]),O.current&&O.current.click(),Z()};(0,i.useEffect)(()=>()=>{for(let e of(Z(),M))clearTimeout(e)},[]);let P=(0,i.useCallback)(e=>{let l="",n="";return A?(n="h-8",l=(0,a.AK)(e&&"!bg-primaryblue-80",b.length&&"bg-primaryblue-95")):n="h-14",(0,a.AK)(t,"relative",e&&!A&&"z-40",e&&"border-primary",A?"border-gray-40":"border-gray-70",n,l,"transition-colors","border","md:hover:border-primary",E?"bg-gray-97 border-gray-70":"bg-white")},[b,A,t,E]);return(0,n.jsx)(r.Listbox,{value:R,onChange:e=>{L(e)},by:"value",multiple:!0,disabled:E,children:e=>{let{open:t}=e;return t?M.push(setTimeout(()=>z(),500)):Z(),(0,n.jsxs)("div",{className:P(t),children:[(0,n.jsx)(v,{ref:O,className:(0,a.AK)("px-2.5","flex items-center","w-full h-full",A?"text-[14px]":"text-[16px]","leading-[24px] text-left","outline-none",t&&"text-primary",E&&"!text-gray-70"),onClick:()=>{t?Z():(L(b),z())},children:A?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"mr-1",children:(0,n.jsx)(s.JO,{className:"scale-75",icon:N,size:16})}),(0,n.jsx)("div",{className:(0,a.AK)("mr-2 whitespace-nowrap"),children:b.length?"".concat(g," (").concat(b.length,")"):g}),(0,n.jsx)("div",{className:"ml-auto",children:(0,n.jsx)(s.JO,{className:(0,a.AK)(E&&"text-gray-70",t?"text-primary":"text-gray-40"),icon:"dropdown",size:12})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.Z,{label:g,placeholder:w,open:t,value:b,onChange:e=>{L(e),null==S||S(e)},maxTagCount:k,icon:N,placeholderIcon:y,required:C}),(0,n.jsx)("div",{className:(0,a.AK)("absolute right-[12px] top-1/2","-translate-y-1/2","duration-300",t?"-rotate-180":""),children:(0,n.jsx)(s.JO,{className:"text-gray-40",icon:"dropdown",size:12})})]})}),(0,n.jsx)(o.u,{as:i.Fragment,enter:"transition duration-300 ease-out",enterFrom:"translate-y-full",enterTo:"translate-y-0",leave:"transition duration-300 ease-out",leaveFrom:"translate-y-0",leaveTo:"translate-y-full",children:(0,n.jsxs)(r.Listbox.Options,{className:(0,a.AK)(c,"fixed left-0 right-0 bottom-0 top-[226px] w-screen","pt-[48px] pb-[84px]","w-full","bg-white","rounded","outline-none",t&&"z-40"),children:[(0,n.jsx)("button",{className:"group absolute top-0 right-0 p-[16px]",onClick:()=>{F()},children:(0,n.jsx)(s.JO,{className:"transition-transform group-hover:scale-125",icon:"close",size:16})}),j||(l.length?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:(0,a.AK)(h,"flex flex-col px-[16px]","max-h-full overflow-y-auto"),children:l.map(e=>(0,n.jsx)(m.Z,{childrenWrapperClassName:f,value:e,selectedValues:R,onChange:e=>{L(e)}},e.value))})}):(0,n.jsx)(p.R,{})),!!l.length&&(0,n.jsxs)("div",{className:(0,a.AK)("absolute left-0 right-0 bottom-0","p-4 pb-9","flex gap-x-2.5"),children:[(0,n.jsx)("div",{className:"flex-1",children:!u()(b)&&(0,n.jsx)("button",{className:(0,a.AK)("p-1","w-full","text-[16px] leading-[24px] text-primary"),onClick:()=>I(),children:T("common:reset")})}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)("button",{className:(0,a.AK)("p-1 h-8","w-full","text-white text-[16px] leading-[24px]","bg-primary","rounded"),onClick:()=>_(),children:T("common:set")})})]})]})})]})}})}},26377:function(e,l,t){"use strict";t.d(l,{Z:function(){return s}});var n=t(85893),i=t(57277),r=t(41664),o=t.n(r);function a(e){let{text:l,href:t,isLast:r=!1}=e;return r?(0,n.jsx)("div",{className:"max-w-[50%] truncate whitespace-nowrap text-[12px] leading-4 text-gray-40","aria-label":l,children:l}):(0,n.jsxs)("div",{className:"flex items-center gap-x-[8px] whitespace-nowrap text-[12px] leading-4 text-gray-40","aria-label":l,children:[(0,n.jsx)(o(),{href:t||"",className:"hover:text-gray-30 hover:underline active:text-red-600 active:underline",children:l}),(0,n.jsx)(i.JO,{icon:"caret-right",size:10,className:"shrink-0"})]})}function s(e){let{breadcrumbs:l=[],customClass:t=""}=e;return(0,n.jsx)("nav",{className:"flex flex-wrap gap-y-[2px] gap-x-[12px] py-[10px] ".concat(t),children:null==l?void 0:l.map((e,t)=>(0,n.jsx)(a,{...e,isLast:t===(null==l?void 0:l.length)-1},t))})}},94635:function(e,l,t){"use strict";var n=t(85893),i=t(1677),r=t(82207),o=t(24616),a=t(57277),s=t(11163),d=t(67294),c=t(87390),u=t(2261),p=t(54887),m=t(98287);l.Z=function(e){let{campaignList:l,buttonPositionX:t,showNextButtonNumber:x=2,onChangeCampaign:v}=e,[h,f]=(0,d.useState)(),[g,b]=(0,d.useState)(!1),[j,w]=(0,d.useState)(!1),{t:N}=(0,m.$G)("common"),y=(0,d.useMemo)(()=>((null==l?void 0:l.length)>x&&b(!0),null==l?void 0:l.length),[l]),{query:A,pathname:k}=(0,s.useRouter)(),[C,E]=(0,d.useState)({});return(0,d.useEffect)(()=>{var e;let l=(0,r.PE)(A);(null===(e=Object.keys(l))||void 0===e?void 0:e.length)>0&&E(()=>({...l}))},[A]),(0,n.jsxs)("div",{className:"relative w-full ".concat(g?"":"ml-[-16px] xl:ml-[-30px]"),children:[(0,n.jsx)(u.tq,{modules:[c.Qr],onSwiper:f,slidesPerView:1.1,spaceBetween:16,centeredSlides:1===y,threshold:1,breakpoints:{320:{spaceBetween:16,slidesPerView:1.1,cssMode:!0},600:{spaceBetween:16,slidesPerView:1.4,cssMode:!0},768:{spaceBetween:32,slidesPerView:1.49,cssMode:!0},896:{spaceBetween:24,slidesPerView:2.088,cssMode:!1},1024:{spaceBetween:32,slidesPerView:2.088,cssMode:!1}},onSlideChange:e=>{var l;b((null==e?void 0:e.realIndex)!==(null==e?void 0:null===(l=e.snapGrid)||void 0===l?void 0:l.length)-1),w((null==e?void 0:e.realIndex)>0),v&&v(null==e?void 0:e.realIndex)},cssMode:!0,children:null==l?void 0:l.map((e,l)=>{var t,a;return(0,n.jsx)(u.o5,{children:(0,n.jsx)("a",{href:"".concat(e.linkUrl).concat((null==k?void 0:k.includes("draft"))?"":p.Z.stringify({...C})?"?".concat(p.Z.stringify({...C})):""),onClick:l=>{(null==e?void 0:e.linkUrl)||l.preventDefault()},className:(null==e?void 0:e.linkUrl)?"":"cursor-default",target:(null==e?void 0:e.link)===i.Un.EXTERNAL?"_blank":"_self",rel:"noreferrer",children:(0,n.jsx)(o.Z,{className:(0,r.AK)("w-full aspect-[324/150] lg:aspect-[644/300]","object-cover object-center","rounded-2xl","overflow-hidden","transition-transform","transform hover:scale-[98%]"),image:null==e?void 0:e.image,src:(null==e?void 0:null===(t=e.image)||void 0===t?void 0:t.url)||"",alt:(null==e?void 0:null===(a=e.image)||void 0===a?void 0:a.alt)||"",width:640,height:300})})},l)})}),j&&(0,n.jsx)("button",{"aria-label":"".concat(N("previous")),onClick:()=>{null==h||h.slidePrev()},className:(0,r.AK)("absolute top-[50%] z-[1]","left-[0] translate-x-[-50%] translate-y-[-50%]","hidden rounded-full p-4 drop-shadow md:!block","bg-white active:bg-primaryblue-80","[@media(any-hover:hover){&:hover}]:bg-primaryblue-90",g?"":"!left-[16px] xl:!left-[30px] !translate-x-0"),children:(0,n.jsx)(a.JO,{className:"text-primary",icon:"caret-left",size:"24",type:"outline"})}),g&&(0,n.jsx)("button",{"aria-label":"".concat(N("next")),onClick:()=>{null==h||h.slideNext()},className:"absolute hidden rounded-full bg-white p-4 drop-shadow active:bg-primaryblue-80 md:!block [@media(any-hover:hover){&:hover}]:bg-primaryblue-90",style:{right:t||"2%",top:"50%",transform:"translateY(-50%)",zIndex:1},children:(0,n.jsx)(a.JO,{className:"text-primary",icon:"caret-right",size:"24",type:"outline"})})]})}},22643:function(e,l,t){"use strict";var n=t(85893);t(67294),l.Z=function(e){let{text:l,bgColor:t}=e;return(0,n.jsx)("p",{className:"".concat(t," !rounded px-[4px] py-[2px] text-[12px] leading-3"),children:l})}},4786:function(e,l,t){"use strict";t.d(l,{$g:function(){return d},Ah:function(){return m},B2:function(){return o},EQ:function(){return p},J4:function(){return a},Tg:function(){return n},_z:function(){return s},fP:function(){return r},it:function(){return i},j4:function(){return c},xA:function(){return u}});let n=2e3,i=-90,r=90,o=12,a=14,s=800,d=[139.763236,35.684621],c=38.260577,u=33.586383,p=140.883276,m=130.395795},34472:function(){}},function(e){e.O(0,[9774,2634,5935,2261,7390,6312,3653,2888,179],function(){return e(e.s=44164)}),_N_E=e.O()}]);