PageSourceSearch

https://cms.companion.guide/_next/static/chunks/4736-2f910c0b0bbbbe21.js

js companion.guide collected 2026-10-09 17:36:03 UTC 20,922 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4736],{4736:function(n,e,t){t.d(e,{Z:function(){return De}});var o=t(7297),i=t(85893),r=t(16829),l=t(5616),a=t(66720),s=t(90629),c=t(2734),d=t(98396),u=t(86878),h=t(99049),p=t(74630),m=t(4045),g=t(326),v=t(42293),f=t(86886),b=t(93946),x=t(72852),Z=t(10155),j=t(21023),w=t(2960),y=t(39342),k=t(47533),z=t(69417),I=t(51233),P=t(6138),C=t(30984),R=t(97670),S=t(11163),D=t(67294),M=t(87536),F=t(22120),L=t(7258);const q=L.object().shape({type:L.object().shape({id:L.number().required("Required"),name:L.string().required("Required")}).nullable(),message:L.string().required("Required")}),A={id:1,name:"general feedback",label:"General Feedback"};function E(n){let{onSubmit:e}=n;const{t:t}=(0,F.$G)(),o=(0,S.useRouter)(),{organizationID:r}=o.query,[l,a]=(0,D.useState)(),{handleSubmit:s,control:c,formState:{isLoading:d,isSubmitting:u}}=(0,M.cI)({resolver:(0,k.X)(q),defaultValues:{type:A,message:""}}),h=[{name:"type",label:"Type *",type:"autocomplete",props:{options:l,getOptionLabel:n=>n.label,defaultValue:A}},{name:"message",label:"Message *",type:"textarea",props:{rows:10}}];return(0,D.useEffect)((()=>{l||(0,R.Z)({url:"/objects-stack/feedback/types?customerID=".concat(r),method:"GET"}).then((n=>{let{data:e,success:t}=n;t&&a(e)}))}),[r,l]),(0,i.jsx)("form",{onSubmit:s(e),children:(0,i.jsx)(I.Z,{spacing:5,p:5,children:d||u||!l?(0,i.jsx)(P.Z,{}):(0,i.jsxs)(i.Fragment,{children:[null===h||void 0===h?void 0:h.map((n=>(0,i.jsx)(C.Z,{name:n.name,label:n.label,type:n.type,props:n.props,control:c},n.name))),(0,i.jsx)(z.Z,{variant:"contained",color:"primary",type:"submit",fullWidth:!0,children:t("common.submit")})]})})})}var G=t(38333),T=t(18972),B=t(240),W=t(48583),_=t(25675),O=t.n(_);function V(){const n=(0,o.Z)(["\n  svg {\n    width: 22px;\n    height: 22px;\n  }\n"]);return V=function(){return n},n}const $=(0,r.Z)(b.Z)(V()),K={en:{icon:"/static/img/flags/us.png",name:"English"},de:{icon:"/static/img/flags/de.png",name:"German"}};var N=function(){const{i18n:n}=(0,F.$G)(),e=(0,W.b9)(B.R),[t,o]=D.useState(null),r=K[n.language],l=()=>{o(null)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j.Z,{title:"Languages",children:(0,i.jsx)($,{"aria-owns":t?"menu-appbar":void 0,"aria-haspopup":"true",onClick:n=>{o(n.currentTarget)},color:"inherit",size:"large",children:r&&(0,i.jsx)(O(),{width:22,height:22,style:{borderRadius:"50%"},src:r.icon,alt:r.name})})}),(0,i.jsx)(G.Z,{id:"menu-appbar",anchorEl:t,open:Boolean(t),onClose:l,children:Object.keys(K).map((n=>{var t;return(0,i.jsx)(T.Z,{onClick:()=>(n=>{e(n),l()})(n),children:null===K||void 0===K||null===(t=K[n])||void 0===t?void 0:t.name},n)}))})]})},X=t(80386),H=t(31262),U=t(83923),Q=t(76135),J=t(86501);function Y(){const n=(0,o.Z)(["\n  svg {\n    width: 22px;\n    height: 22px;\n  }\n"]);return Y=function(){return n},n}const nn=(0,r.Z)(b.Z)(Y());var en=function(){const{t:n}=(0,F.$G)(),e=(0,S.useRouter)(),{signOut:t}=(0,U.Z)(),[o,r]=(0,D.useState)(null);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j.Z,{title:"Account",children:(0,i.jsx)(nn,{"aria-owns":o?"menu-appbar":void 0,"aria-haspopup":"true",onClick:n=>{r(n.currentTarget)},color:"inherit",size:"large",children:(0,i.jsx)(Q.Z,{})})}),(0,i.jsx)(G.Z,{id:"menu-appbar",anchorEl:o,open:Boolean(o),onClose:()=>{r(null)},children:(0,i.jsx)(T.Z,{onClick:async()=>{try{await t()}catch(n){const e=n.message||H.c9;J.Am.error(e)}e.replace(X.C8)},children:n("common.sign-out")})})]})},tn=t(28770);function on(){const n=(0,o.Z)(["\n  background: ",";\n  color: ",";\n"]);return on=function(){return n},n}function rn(){const n=(0,o.Z)(["\n  svg {\n    width: 22px;\n    height: 22px;\n  }\n"]);return rn=function(){return n},n}const ln=(0,r.Z)(x.Z)((n=>{let{theme:e}=n;return{width:62,height:34,padding:7,"& .MuiSwitch-switchBase":{margin:1,padding:0,transform:"translateX(6px)","&.Mui-checked":{color:"#fff",transform:"translateX(22px)","& .MuiSwitch-thumb:before":{backgroundImage:'url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="20" width="20" viewBox="0 0 20 20"><path fill="'.concat(encodeURIComponent("#fff"),'" d="M4.2 2.5l-.7 1.8-1.8.7 1.8.7.7 1.8.6-1.8L6.7 5l-1.9-.7-.6-1.8zm15 8.3a6.7 6.7 0 11-6.6-6.6 5.8 5.8 0 006.6 6.6z"/></svg>\')')},"& + .MuiSwitch-track":{opacity:1,backgroundColor:"dark"===e.palette.mode?"#8796A5":"#aab4be"}}},"& .MuiSwitch-thumb":{backgroundColor:"dark"===e.palette.mode?"#003892":"#001e3c",width:32,height:32,"&:before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundImage:'url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="20" width="20" viewBox="0 0 20 20"><path fill="'.concat(encodeURIComponent("#fff"),'" d="M9.305 1.667V3.75h1.389V1.667h-1.39zm-4.707 1.95l-.982.982L5.09 6.072l.982-.982-1.473-1.473zm10.802 0L13.927 5.09l.982.982 1.473-1.473-.982-.982zM10 5.139a4.872 4.872 0 00-4.862 4.86A4.872 4.872 0 0010 14.862 4.872 4.872 0 0014.86 10 4.872 4.872 0 0010 5.139zm0 1.389A3.462 3.462 0 0113.471 10a3.462 3.462 0 01-3.473 3.472A3.462 3.462 0 016.527 10 3.462 3.462 0 0110 6.528zM1.665 9.305v1.39h2.083v-1.39H1.
1666zm14.583 0v1.39h2.084v-1.39h-2.084zM5.09 13.928L3.616 15.4l.982.982 1.473-1.473-.982-.982zm9.82 0l-.982.982 1.473 1.473.982-.982-1.473-1.473zM9.305 16.25v2.083h1.389V16.25h-1.39z"/></svg>\')')}},"& .MuiSwitch-track":{opacity:1,backgroundColor:"dark"===e.palette.mode?"#8796A5":"#aab4be",borderRadius:10}}})),an=(0,r.Z)(v.Z)(on(),(n=>n.theme.header.background),(n=>n.theme.header.color)),sn=(0,r.Z)(b.Z)(rn());var cn=function(n){let{onDrawerToggle:e}=n;const[t,o]=(0,W.KO)(y.O),{t:r}=(0,F.$G)(),l=(0,S.useRouter)(),{organizationID:a}=l.query,s=(0,W.b9)(w.p);return(0,i.jsx)(an,{position:"sticky",elevation:0,children:(0,i.jsx)(Z.Z,{children:(0,i.jsxs)(f.ZP,{container:!0,alignItems:"center",children:[(0,i.jsx)(f.ZP,{item:!0,sx:{display:{xs:"block",md:"none"}},children:(0,i.jsx)(sn,{color:"inherit","aria-label":"Open drawer",onClick:e,size:"large",children:(0,i.jsx)(g.Z,{})})}),(0,i.jsx)(f.ZP,{item:!0,xs:!0}),(0,i.jsxs)(f.ZP,{item:!0,sx:{display:"flex"},children:[(0,i.jsx)(ln,{sx:{m:1},onChange:()=>o((n=>"DARK"===n?"LIGHT":"DARK")),checked:t===tn.y.DARK}),(0,i.jsx)(N,{}),(0,i.jsx)(j.Z,{title:"Feedback",children:(0,i.jsx)(sn,{onClick:()=>{s({open:!0,title:"Share Feedback",maxWidth:"md",fullWidth:!0,body:(0,i.jsx)(E,{onSubmit:async n=>{try{const e={...n};e.page=window.location.href;const{success:t,message:o}=await(0,R.Z)({url:"/objects-stack/feedback?customerID=".concat(a),method:"POST",body:e});if(!t)throw new Error(o);J.Am.success(o),s({open:!1})}catch(t){var e;const n=null!==(e=t.message)&&void 0!==e?e:"There is some problem. Please try again later.";J.Am.error(n)}}}),hideCancel:!0,confirm:r("common.close")})},color:"inherit",size:"large",children:(0,i.jsx)(m.Z,{})})}),(0,i.jsx)(en,{})]})]})})})},dn=t(87918),un=t(13486),hn=t(77533),pn=t(98619),mn=t(95242),gn=t(46901),vn=t(69661),fn=t(23795),bn=t(78462),xn=t(97212),Zn=t(18987),jn=t(59334),wn=t(12786),yn=t(41664),kn=t.n(yn);function zn(){const n=(0,o.Z)(["\n  background-color: "," !important;\n  padding: ",";\n  border-right: 1px solid rgba(0, 0, 0, 0.12);\n  overflow-wrap: anywhere;\n"]);return zn=function(){return n},n}const In=r.Z.div(zn(),(n=>n.theme.sidebar.footer.background),(n=>{let{theme:e}=n;return"".concat(e.spacing(2.75)," ").concat(e.spacing(4))}));var Pn=n=>{let{...e}=n;var t,o,r,l,a,s;const{t:c}=(0,F.$G)(),d=(0,W.Dv)(h.L),{organizationID:u}=(0,S.useRouter)().query;if(!d)return(0,i.jsx)(i.Fragment,{});if(!(null===d||void 0===d||null===(t=d.userPlanInfo)||void 0===t||null===(o=t.customerInfo)||void 0===o?void 0:o.isPortalVisible))return(0,i.jsx)(i.Fragment,{});const p=async()=>{try{const n=window.location.href,e="?url=".concat(n),{data:t,success:o,message:i}=await(0,R.Z)({method:"GET",url:"/core-stack/account/stripe/portal".concat(e,"&customerID=").concat(u)});if(!o)throw new Error(i);window.location.replace(null===t||void 0===t?void 0:t.url)}catch(e){var n;J.ZP.error(null!==(n=null===e||void 0===e?void 0:e.message)&&void 0!==n?n:"There is an error")}};return(0,i.jsx)(In,{...e,children:"active"===(null===d||void 0===d||null===(r=d.userPlanInfo)||void 0===r||null===(l=r.subscriptionInfo)||void 0===l?void 0:l.status)?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(I.Z,{spacing:2,children:[(null===d||void 0===d?void 0:d.url)?(0,i.jsx)(z.Z,{component:fn.Z,href:H.iF.includes(d.url)?"https://".concat(d.url):"".concat("https://app.companion.guide/").concat(d.url),target:"_blank",rel:"noopener noreferrer",variant:"contained",sx:{my:3},fullWidth:!0,children:c("common.view-your-guide")}):(0,i.jsx)(kn(),{href:{pathname:X.bo,query:{organizationID:u}},passHref:!0,children:(0,i.jsx)(z.Z,{variant:"contained",color:"primary",sx:{my:3},fullWidth:!0,children:c("common.get-your-guide-for-free")})}),!(0,wn.XU)(d)&&(0,i.jsx)(bn.Z,{sx:{p:0},children:(0,i.jsxs)(xn.ZP,{sx:{p:0,cursor:"pointer"},onClick:p,children:[(0,i.jsx)(Zn.Z,{children:(0,i.jsx)(vn.Z,{children:(0,i.jsx)(mn.Z,{})})}),(0,i.jsx)(jn.Z,{primary:c("common.upgrade-plan"),secondary:c("common.upgrade-plan.more-customization-and-access-to-advanced-features-and-ai")})]})})]})}):(0,i.jsxs)(I.Z,{children:[(0,i.jsx)(gn.Z,{variant:"outlined",severity:"warning",children:c("common.alert.there-was-an-error-in-your-subscription",{status:null===d||void 0===d||null===(a=d.userPlanInfo)||void 0===a||null===(s=a.subscriptionInfo)||void 0===s?void 0:s.status})}),(0,i.jsx)(z.Z,{variant:"outlined",color:"warning",sx:{mt:4},fullWidth:!0,onClick:p,children:c("common.view-plan")})]})})},Cn=t(70917),Rn=t(15861),Sn=t(60181),Dn=t(23508),Mn=t(57922),Fn=t(43281);function Ln(){const n=(0,o.Z)(["\n  padding-top: ",";\n  padding-bottom: ",";\n  padding-left: ",";\n  padding-right: ",";\n  font-weight: ",";\n  svg {\n    color: ",";\n    font-size: 20px;
1\n    width: 20px;\n    height: 20px;\n    opacity: 0.5;\n  }\n  &:hover {\n    background: rgba(0, 0, 0, 0.08);\n    color: ",";\n  }\n  &."," {\n    background-color: ",";\n    span {\n      color: ",";\n    }\n  }\n"]);return Ln=function(){return n},n}function qn(){const n=(0,o.Z)(["\n  margin: 0;\n  span {\n    color: ",";\n    font-size: ","px;\n    padding: 0 ",";\n  }\n"]);return qn=function(){return n},n}function An(){const n=(0,o.Z)(["\n  font-weight: ",";\n  height: 20px;\n  position: absolute;\n  right: 26px;\n  top: 12px;\n  background: ",";\n  z-index: 1;\n  span.MuiChip-label,\n  span.MuiChip-label:hover {\n    font-size: 11px;\n    cursor: pointer;\n    color: ",";\n    padding-left: ",";\n    padding-right: ",";\n  }\n"]);return An=function(){return n},n}function En(){const n=(0,o.Z)(["\n  color: ",";\n"]);return En=function(){return n},n}function Gn(){const n=(0,o.Z)(["\n  color: ",";\n"]);return Gn=function(){return n},n}const Tn=(0,r.Z)(pn.Z)(Ln(),(n=>n.theme.spacing(n.depth&&n.depth>0?2:3)),(n=>n.theme.spacing(n.depth&&n.depth>0?2:3)),(n=>n.theme.spacing(n.depth&&n.depth>0?14:8)),(n=>n.theme.spacing(n.depth&&n.depth>0?4:7)),(n=>n.theme.typography.fontWeightRegular),(n=>n.theme.sidebar.color),(n=>n.theme.sidebar.color),(n=>n.activeclassname),(n=>(0,Fn._j)(.03,n.theme.sidebar.background)),(n=>n.theme.sidebar.color)),Bn=(0,r.Z)(jn.Z)(qn(),(n=>(0,Fn.m4)(n.theme.sidebar.color,n.depth&&n.depth>0?.7:1)),(n=>n.theme.typography.body1.fontSize),(n=>n.theme.spacing(4))),Wn=(0,r.Z)(dn.Z)(An(),(n=>n.theme.typography.fontWeightBold),(n=>n.theme.sidebar.badge.background),(n=>n.theme.sidebar.badge.color),(n=>n.theme.spacing(2)),(n=>n.theme.spacing(2))),_n=(0,r.Z)(Sn.Z)(En(),(n=>(0,Fn.m4)(n.theme.sidebar.color,.5))),On=(0,r.Z)(Dn.Z)(Gn(),(n=>(0,Fn.m4)(n.theme.sidebar.color,.5)));var Vn=n=>{const{title:e,href:t,depth:o=0,children:r,icon:l,badge:a,open:s=!1}=n,{pathname:c,query:d}=(0,S.useRouter)(),{organizationID:u}=d,[h,p]=D.useState(s),m=()=>{p((n=>!n))};return r?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(Tn,{depth:o,onClick:m,children:[l&&(0,i.jsx)(l,{}),(0,i.jsxs)(Bn,{depth:o,children:[e,a&&(0,i.jsx)(Wn,{label:a})]}),h?(0,i.jsx)(_n,{}):(0,i.jsx)(On,{})]}),(0,i.jsx)(Mn.Z,{in:h,children:r})]}):(0,i.jsx)(kn(),{href:{pathname:t,query:{organizationID:u}},passHref:!0,legacyBehavior:!0,children:(0,i.jsxs)(Tn,{depth:o,className:c===t?"active":"",activeclassname:"active",children:[l&&(0,i.jsx)(l,{}),(0,i.jsxs)(Bn,{depth:o,children:[e,a&&(0,i.jsx)(Wn,{label:a})]})]})})};var $n=n=>{var e;const{items:t,page:o,depth:r,currentRoute:l}=n;if((null===(e=o.children)||void 0===e?void 0:e.length)>0){const n=l.includes(o.href);t.push((0,i.jsx)(Vn,{depth:r,icon:o.icon,badge:o.badge,open:!!n,title:o.title,href:o.href,children:(0,i.jsx)(Kn,{depth:r+1,pages:o.children})},o.title))}else t.push((0,i.jsx)(Vn,{depth:r,href:o.href,icon:o.icon,badge:o.badge,title:o.title},o.title));return t};var Kn=n=>{const{pages:e,depth:t}=n,{pathname:o}=(0,S.useRouter)(),r=e.reduce(((n,e)=>$n({items:n,page:e,currentRoute:o,depth:t})),[]);return(0,i.jsx)(i.Fragment,{children:r})};function Nn(){const n=(0,o.Z)(["\n  color: ",";\n  font-size: ",";\n  /* prettier-ignore */\n  padding: "," "," ",";\n  opacity: 0.4;\n  text-transform: uppercase;\n  display: block;\n"]);return Nn=function(){return n},n}const Xn=(0,r.Z)(Rn.Z)(Nn(),(n=>n.theme.sidebar.color),(n=>n.theme.typography.caption.fontSize),(n=>n.theme.spacing(4)),(n=>n.theme.spacing(7)),(n=>n.theme.spacing(1)));var Hn=n=>{const{title:e,pages:t,className:o,component:r="nav",...l}=n;return(0,i.jsxs)(r,{...l,children:[e&&(0,i.jsx)(Xn,{variant:"subtitle2",children:e}),(0,i.jsx)(Kn,{pages:t,depth:0})]})},Un=t(51964),Qn=t.n(Un);function Jn(){const n=(0,o.Z)(["\n  background-color: ",";\n  border-right: 1px solid rgba(0, 0, 0, 0.12);\n  flex-grow: 1;\n"]);return Jn=function(){return n},n}function Yn(){const n=(0,o.Z)(["\n  ","\n"]);return Yn=function(){return n},n}function ne(){const n=(0,o.Z)(["\n  ","\n"]);return ne=function(){return n},n}function ee(){const n=(0,o.Z)(["\n  padding-top: ",";\n  padding-bottom: ",";\n"]);return ee=function(){return n},n}const te=n=>(0,Cn.iv)(Jn(),n.theme.sidebar.background),oe=r.Z.div(Yn(),te),ie=(0,r.Z)(Qn())(ne(),te),re=r.Z.div(ee(),(n=>n.theme.spacing(2.5)),(n=>n.theme.spacing(2.5)));var le=n=>{let{items:e}=n;const t=(0,c.Z)(),o=(0,d.Z)(t.breakpoints.up("md"))?ie:oe;return(0,i.jsx)(o,{children:(0,i.jsx)(bn.Z,{disablePadding:!0,children:(0,i.jsx)(re,{children:e&&e.map((n=>(0,i.jsx)(Hn,{component:"div",pages:n.pages,title:n.title},n.title)))})})})};function ae(){const n=(0,o.Z)(["\n  border-right: 0;\n\n  > div {\n    border-right: 0;\n  }\n"]);return ae=function(){return n},n}function se(){const n=(0,o.Z)(["\n  font-size: ",";\n  font-weight: ",";\n  color: ",";\n  background-color: ",";\n  font-family: ",";\n  min-height: 56px;\n  padding-left: ",";\n  padding-right: ",";\n  justify-content: center;
1\n  cursor: pointer;\n  flex-grow: 0;\n\n  "," {\n    min-height: 64px;\n  }\n\n  &:hover {\n    background-color: ",";\n  }\n"]);return se=function(){return n},n}function ce(){const n=(0,o.Z)(["\n  background-color: ",";\n  border-radius: 5px;\n  color: ",";\n  font-size: 55%;\n  height: 18px;\n  margin-left: 2px;\n  margin-top: -16px;\n  padding: 3px 0;\n\n  span {\n    padding-left: ",";\n    padding-right: ",";\n  }\n"]);return ce=function(){return n},n}const de=(0,r.Z)(hn.ZP)(ae()),ue=(0,r.Z)(pn.Z)(se(),(n=>n.theme.typography.h5.fontSize),(n=>n.theme.typography.fontWeightMedium),(n=>n.theme.sidebar.header.color),(n=>n.theme.sidebar.header.background),(n=>n.theme.typography.fontFamily),(n=>n.theme.spacing(6)),(n=>n.theme.spacing(6)),(n=>n.theme.breakpoints.up("sm")),(n=>n.theme.sidebar.header.background)),he=(0,r.Z)(dn.Z)(ce(),un.Z[700],(n=>n.theme.palette.common.white),(n=>n.theme.spacing(1.375)),(n=>n.theme.spacing(1.375)));function pe(n){var e,t,o;return n?null===n||void 0===n||null===(e=n.userPlanInfo)||void 0===e||null===(t=e.subscriptionInfo)||void 0===t||null===(o=t.plan)||void 0===o?void 0:o.name:""}var me=n=>{let{items:e,showFooter:t=!0,...o}=n;const{organizationID:r}=(0,S.useRouter)().query,a=(0,W.Dv)(h.L);return(0,i.jsxs)(de,{variant:"permanent",...o,children:[(0,i.jsx)(kn(),{href:{pathname:X.h1,query:{organizationID:r}},legacyBehavior:!0,children:(0,i.jsx)(ue,{children:(0,i.jsxs)(l.Z,{ml:1,children:[null===a||void 0===a?void 0:a.orgName," ",(0,i.jsx)(he,{label:pe(a)})]})})}),(0,i.jsx)(le,{items:e}),!!t&&(0,i.jsx)(Pn,{})]})},ge=t(5152),ve=t.n(ge),fe=t(90264),be=t(60357),xe=t(77662),Ze=t(89250);function je(){const n=(0,o.Z)(["\n  display: flex;\n  min-height: 100vh;\n"]);return je=function(){return n},n}function we(){const n=(0,o.Z)(["\n  "," {\n    width: ","px;\n    flex-shrink: 0;\n  }\n"]);return we=function(){return n},n}function ye(){const n=(0,o.Z)(["\n  flex: 1;\n  background: ",";\n  min-width: 0;\n  overflow-x: hidden;\n\n  @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n    flex: none;\n  }\n\n  .MuiPaper-root .MuiPaper-root {\n    box-shadow: none;\n  }\n"]);return ye=function(){return n},n}function ke(){const n=(0,o.Z)(["\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n  min-width: 0;\n"]);return ke=function(){return n},n}const ze=ve()((()=>Promise.all([t.e(296),t.e(4254)]).then(t.bind(t,34254))),{loadableGenerated:{webpack:()=>[34254]},ssr:!1}),Ie=r.Z.div(je()),Pe=r.Z.div(we(),(n=>n.theme.breakpoints.up("md")),258),Ce=(0,r.Z)(s.Z)(u.ZP),Re=(0,r.Z)(Ce)(ye(),(n=>n.theme.palette.background.default)),Se=r.Z.div(ke());var De=n=>{let{children:e}=n;const t=(0,S.useRouter)(),{t:o}=(0,F.$G)(),r=(0,c.Z)(),s=(0,W.Dv)(h.L),{isAuthenticated:u,isInitialized:m}=(0,U.Z)(),[g,v]=(0,D.useState)(!1),f=(0,d.Z)(r.breakpoints.up("lg")),b=null===s||void 0===s?void 0:s.uiPermissions,x=(0,D.useMemo)((()=>{var n,e,t,i,r,l,a,s,c,d,u,h,p,m,g,v,f,x,Z,j,w,y,k,z,I,P;const C=[];(null===b||void 0===b||null===(n=b.global)||void 0===n||null===(e=n.objects)||void 0===e?void 0:e.view)&&C.push({href:X.tK,title:o("common.all-objects"),children:[]}),(null===b||void 0===b||null===(t=b.global)||void 0===t||null===(i=t.objects)||void 0===i?void 0:i.create)&&C.push({href:X._,title:o("form.objectForm.create.object"),children:[]}),(null===b||void 0===b||null===(r=b.global)||void 0===r||null===(l=r.objects)||void 0===l||null===(a=l.review)||void 0===a?void 0:a.view)&&C.push({href:X.B_,title:o("common.all-reviews"),children:[]}),(null===b||void 0===b||null===(s=b.global)||void 0===s||null===(c=s.objects)||void 0===c||null===(d=c.recommendations)||void 0===d?void 0:d.view)&&C.push({href:X.Ed,title:o("common.object-recommendation"),children:[]});const R=[];(null===b||void 0===b||null===(u=b.global)||void 0===u||null===(h=u.settings)||void 0===h||null===(p=h.guide)||void 0===p?void 0:p.view)&&R.push({href:X.nL,title:o("common.digital-guide"),children:[]}),(null===b||void 0===b||null===(m=b.global)||void 0===m||null===(g=m.settings)||void 0===g||null===(v=g.account)||void 0===v?void 0:v.view)&&R.push({href:X.QL,title:o("common.account"),children:[]});const S=[];return((null===b||void 0===b||null===(f=b.global)||void 0===f||null===(x=f.dashboard)||void 0===x?void 0:x.view)||"other"===(null===b||void 0===b?void 0:b.role))&&S.push({href:X.h1,icon:fe.Z,title:o("common.dashboard")}),(null===b||void 0===b||null===(Z=b.global)||void 0===Z||null===(j=Z.objects)||void 0===j?void 0:j.list)&&C.length>0&&S.push({href:"/object",title:o("common.object",{count:2}),icon:be.Z,children:C}),((null===b||void 0===b||null===(w=b.global)||void 0===w||null===(y=w.settings)||void 0===y||null===(k=y.guide)||void 0===k?void 0:k.view)||(null===b||void 0===b||null===(z=b.global)||void 0===z||null===(I=z.settings)||void 0===I||null===(P=I.account)||void 0===P?void 0:P.view))&&R.length>0&&S.push({href:"/settings",icon:xe.Z,title:o("common.settings"),children:R}),[{title:"Pages",pages:S}]}),[o,b]),Z=(0,D.useCallback)((()=>{v((n=>!n))}),[]);return(0,D.useEffect)((()=>{m&&!u&&t.replace(X.C8)}),[m,u,t]),m&&u&&s?(0,i.jsxs)(Ie,{children:[(0,i.jsx)(a.ZP,{}),(0,i.jsx)(p.Z,{}),(0,i.jsxs)(Pe,{children:[(0,i.jsx)(l.Z,{sx:{display:{xs:"block",lg:"none"}},children:(0,i.jsx)(me,{PaperProps:{style:{width:258}},variant:"temporary",open:g,onClose:Z,items:x})}),(0,i.jsx)(l.Z,{sx:{display:{xs:"none",md:"block"}},children:(0,i.jsx)(me,{PaperProps:{style:{width:258}},items:x})})]}),(0,i.jsxs)(Se,{children:[(0,i.jsx)(cn,{onDrawerToggle:Z}),(0,i.jsxs)(Re,{p:f?12:5,children:[e,(0,i.jsx)(Ze.j3,{})]})]})]}):(0,i.jsxs)(Ie,{children:[(0,i.jsx)(a.ZP,{}),(0,i.jsx)(p.Z,{}),(0,i.jsx)(ze,{})]})}},12786:function(n,e,t){function o(n){var e,t,o,i,r,l;return!(null===n||void 0===n||null===(e=n.userPlanInfo)||void 0===e||null===(t=e.subscriptionInfo)||void 0===t||null===(o=t.plan)||void 0===o||null===(i=o.name)||void 0===i?void 0:i.toLocaleLowerCase().includes("free"))||(null===n||void 0===n||null===(r=n.userPlanInfo)||void 0===r||null===(l=r.customerInfo)||void 0===l?void 0:l.isIndividualCustomer)}t.d(e,{XU:function(){return o}})}}]);

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.