!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0fb105a0-875c-47c9-bfbf-b9112b0e55d2",e._sentryDebugIdIdentifier="sentry-dbid-0fb105a0-875c-47c9-bfbf-b9112b0e55d2")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8167],{58360:function(e,n,t){t.d(n,{$_:function(){return r.$_},fq:function(){return r.fq},h4:function(){return r.h4},qd:function(){return r.qd},tU:function(){return r.tU}});var r=t(84753);t(74814)},18167:function(e,n,t){t.d(n,{g1:function(){return f},Ke:function(){return N},ux:function(){return _},Zn:function(){return u},t5:function(){return p},zK:function(){return T},dm:function(){return k}});var r=t(97818),o=t(15903),i=t(35818),a=t.n(i),s=t(18377),l=t(58360),d=t(21684);let c=(0,d.k)({root:{width:"100vw",height:"100vh",overflowY:"auto"},browserRoot:{width:420,minHeight:418,overflowY:"auto"},headerContainer:{zIndex:10,position:"sticky",top:0,left:0},bodyContainer:{overflowY:"auto",height:"100vh",paddingTop:"16px","&.background-white":{background:"var(--adm-color-white)"},"&.background-secondary":{background:"var(--adm-color-background)"},"&.container-register":{height:"calc(100vh - 100px)"}},bottomContainer:{marginTop:"64px",paddingBottom:"24px"}});var u=e=>{let{className:n,containerClassName:t,navigation:o,background:i="white",showHeader:d=!0,showFooter:u=!0,children:h}=e;return(0,r.jsx)("div",{className:a()(n,s.tq?c.root:c.browserRoot),children:(0,r.jsxs)("div",{className:"flex flex-col w-full h-full overflow-y-auto",children:[d&&(0,r.jsxs)("div",{className:c.headerContainer,children:[(0,r.jsx)(l.h4,{}),!!o&&(0,r.jsx)(r.Fragment,{children:o})]}),(0,r.jsxs)("div",{className:a()("container",t,c.bodyContainer,{["background-".concat(i)]:i}),children:[h,u&&(0,r.jsx)("div",{className:c.bottomContainer,children:(0,r.jsx)(l.$_,{})})]})]})})},h=t(52830),m=t(3097);let x=(0,d.k)({root:{width:"100vw",height:"100svh",overflow:"hidden"},browserRoot:{width:420,minHeight:418},headerContainer:{zIndex:10,position:"sticky",top:0,left:0},bodyContainer:{height:"100svh",paddingTop:"16px",background:"var(--adm-color-white)"},bottomContainer:{marginTop:"64px",paddingBottom:"24px"},logo:{"> img":{width:"60%",display:"inline-block !important"}}});var f=e=>{let{title:n,className:t,children:o}=e,{currentForCustomerOrganization:i}=(0,h.o8)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.qd,{forceSearchEngineIndexingDisabled:!0,title:n,currentForCustomerOrganization:i}),(0,r.jsx)(l.tU,{currentForCustomerOrganization:i}),(0,r.jsx)("div",{className:(0,m.cn)("flex flex-col",t,s.tq?x.root:x.browserRoot),children:(0,r.jsxs)("div",{className:"flex flex-col w-full h-full",children:[(0,r.jsx)("div",{className:x.headerContainer,children:(0,r.jsx)(l.h4,{})}),(0,r.jsxs)("div",{className:a()("container",x.bodyContainer),children:[o,(0,r.jsx)("div",{className:x.bottomContainer,children:(0,r.jsx)(l.$_,{})})]})]})})]})},g=t(9895),v=t(68843);let b=(0,d.k)({root:{".container":{padding:"0 0 64px"}},footer:{marginTop:40,padding:"0 16px"}});var p=e=>{let{title:n,onBack:t,actions:o,children:i,showHeader:a=!0,...s}=e,{currentForCustomerOrganization:d}=(0,h.o8)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.qd,{forceSearchEngineIndexingDisabled:!0,title:n,currentForCustomerOrganization:d}),(0,r.jsx)(l.tU,{currentForCustomerOrganization:d}),(0,r.jsxs)(u,{className:b.root,showHeader:a,navigation:n?(0,r.jsx)(v.W_,{onBack:t,children:n}):void 0,...s,children:[i,(0,r.jsx)(g.Kq,{className:b.footer,direction:"vertical",spacing:1,children:o.map(e=>"default"===e.style?(0,r.jsx)(v.KM,{disabled:e.disabled||!1,onClick:e.onClick,children:e.title},e.title):"cancel"===e.style?(0,r.jsx)(v.kq,{disabled:e.disabled||!1,onClick:e.onClick,children:e.title},e.title):null)})]})]})},j=t(86220);let w=[{value:"info",label:"情報"},{value:"menus",label:"メニュー"},{value:"staffs",label:"スタッフ"}],C=(0,d.k)({tabs:{zIndex:1,top:-16,position:"sticky",background:"var(--adm-color-white)",height:44},noTabContent:{marginTop:"-16px"},image:{"--height":"auto","--width":"100%",".adm-swiper":{"--width":"100%"},".adm-image":{"--height":"100%"}}});var k=e=>{let{children:n,...t}=e,i=(0,j.useRouter)(),a=(0,j.usePathname)(),{tenantDetailTab:s,setTenantDetailTab:d}=(0,h.S_)(),{currentForCustomerTenant:c,tenantWorkspaceForCustomer:m}=(0,h.S8)(),x=(0,o.useMemo)(()=>{var e;return c&&c.tenant.tenantImages.length>0&&(null===(e=c.tenant.tenantImages.find(e=>e.isMain))||void 0===e?void 0:e.url)||null},[c]),f=(0,o.useMemo)(()=>a==="/".concat(m,"/menus")||a==="/".concat(m,"/staffs")||a==="/".concat(m),[a,m]),b=(0,o.useMemo)(()=>!((null==a?void 0:a.includes("interview_answers"))||(null==a?void 0:a.includes("register"))),[a]),p=(0,o.useMemo)(()=>!((null==a?void 0:a.includes("interview_answers"))||(null==a?void 0:a.includes("register"))),[a]),k=(0,o.useMemo)(()=>({info:"/".concat(m),menus:"/".concat(m,"/menus"),staffs:"/".concat(m,"/staffs")}),[m]),y=(0,o.useMemo)(()=>{var e;return"info"===s?null:(null===(e=w.find(e=>e.value===s))||void 0===e?void 0:e.label)||null},[s]);(0,o.useEffect)(()=>{switch(a){case k.info:d("info");break;case k.menus:d("menus");break;case k.staffs:d("staffs")}},[c,a,k.info,k.menus,k.staffs,d]);let N=(0,o.useCallback)(e=>{m&&(d(e.value),i.push("info"===e.value?"/".concat(m):"/".concat(m,"/").concat(e.value)))},[d,i,m]);return(0,r.jsxs)(r.Fragment,{children:[c&&(0,r.jsx)(l.qd,{image:x,title:y,currentForCustomerTenant:c}),(0,r.jsx)(l.tU,{currentForCustomerTenant:c}),(0,r.jsx)(u,{containerClassName:(null==a?void 0:a.includes("register"))?"container-register":void 0,showHeader:b,showFooter:p,...t,children:f?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-col p-4 pt-0 space-y-4",children:[c&&c.tenant.tenantImages.length>0&&(0,r.jsx)(g.yX,{className:C.image,images:c.tenant.tenantImages.map(e=>e.url)}),c&&(0,r.jsx)("h2",{className:"text-xl font-semibold leading-7 text-black dark:text-white",children:c.name})]}),(0,r.jsx)(v.mQ,{defaultValue:s,children:(0,r.jsx)(v.dr,{children:w.map(e=>(0,r.jsx)(v.SP,{value:e.value,onClick:()=>N(e),children:e.label},e.value))})}),(0,r.jsx)("div",{children:n})]}):(0,r.jsx)("div",{className:C.noTabContent,children:n})})]})};let y=(0,d.k)({container:{maxWidth:"1024px",margin:"0 auto",justifyContent:"space-between",alignItems:"center"},mobileContent:{width:420,minHeight:418,height:"100vh",boxShadow:"var(--box-shadow, 0px 4px 24px rgba(var(--adm-color-secondary-900-rgb), 0.2))"}});var N=e=>{let{children:n}=e;return(0,r.jsx)("div",{className:"flex flex-col",children:(0,r.jsx)("div",{className:y.container,children:(0,r.jsx)(g.Zb,{className:y.mobileContent,children:n})})})},F=t(73457);let I=(0,d.k)({root:{width:"100vw",height:"100svh",overflow:"hidden"},browserRoot:{width:420,minHeight:418},headerContainer:{zIndex:10,position:"sticky",top:0,left:0,textAlign:"center",padding:"16px 0"},bodyContainer:{height:"100svh",paddingTop:"16px",background:"var(--adm-color-white)"},bottomContainer:{marginTop:"64px",paddingBottom:"24px"},logo:{"> img":{width:"60%",display:"inline-block !important"}}});var T=e=>{let{children:n}=e,{currentForCustomerOrganization:t}=(0,h.o8)(),{t:o}=(0,F.bU)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.qd,{forceSearchEngineIndexingDisabled:!0,title:o("secret.title"),currentForCustomerOrganization:t}),(0,r.jsx)(l.tU,{currentForCustomerOrganization:t}),(0,r.jsx)("div",{className:a()("flex flex-col",s.tq?I.root:I.browserRoot),children:(0,r.jsxs)("div",{className:"flex flex-col w-full h-full",children:[(0,r.jsx)("div",{className:I.headerContainer,children:(null==t?void 0:t.logoUrl)?(0,r.jsx)(g.Ee,{className:I.logo,src:t.logoUrl,alt:null==t?void 0:t.name,placeholder:(0,r.jsx)(v.gb,{}),borderRadius:0}):(0,r.jsx)(g.ZT,{variant:"subtitle1",children:null==t?void 0:t.name})}),(0,r.jsxs)("div",{className:a()("container",I.bodyContainer),children:[n,(0,r.jsx)("div",{className:I.bottomContainer,children:(0,r.jsx)(l.$_,{})})]})]})})]})},_=e=>{let{title:n,children:t}=e,{currentForCustomerTenant:o}=(0,h.S8)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.qd,{forceSearchEngineIndexingDisabled:!0,title:n,currentForCustomerTenant:o}),(0,r.jsx)(l.tU,{currentForCustomerTenant:o}),t]})}}}]);