1"use strict";(globalThis.webpackChunkfss=globalThis.webpackChunkfss||[]).push([[2376],{82376(e,t,o){o.r(t),o.d(t,{default:()=>vn});var i=o(9950),n=o(1201),r=(o(47705),o(28429)),l=o(53011),a=o(98091),s=o(96812),d=o(27081),c=o(66699),p=o(82053),u=o(96583),h=o(2235),x=o(38614),m=o(74745),g=o(18216),v=o(46639),f=o(33507),b=o(65462),y=o(33949),j=o(47824),A=o(57184),w=o(17395),k=o(44414);const C=()=>{var e,t;const o=(0,d.wA)(),{user:n}=(0,f.A)(),r=(0,d.d4)(e=>{let{payments:t}=e;return t.firstLoginStatus}),[a,s]=(0,i.useState)(!1),[c,C]=(0,i.useState)(!1);(0,i.useEffect)(()=>{var e,t,i;2===(null===n||void 0===n||null===(e=n.roles)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.id)&&null!==n&&void 0!==n&&null!==(i=n.organisation)&&void 0!==i&&i.organisation_is_active&&1===(null===n||void 0===n?void 0:n.first_login)&&o((0,b.T_)())},[n,o]);const _=e=>{o((0,w.rG)({message:(null===e||void 0===e?void 0:e.toString())||"Something went wrong",variant:"error"}))},S=()=>{o((0,b.IZ)())};return(0,k.jsx)(u.A,{open:r,fullWidth:!0,maxWidth:"xs",disableEscapeKeyDown:!0,disableRestoreFocus:!0,classes:{paper:"rounded-8"},children:(0,k.jsxs)(h.A,{sx:{p:3,borderRadius:1,boxShadow:3},children:[(0,k.jsx)(j.A,{sx:{height:{xs:340,sm:"auto"}},children:(0,k.jsxs)(l.A,{children:[(0,k.jsx)(x.A,{sx:{mt:1},children:(0,k.jsxs)(l.A,{display:"flex",flexDirection:"row",columnGap:"4px",children:[(0,k.jsx)(y.A,{color:"warning",sx:{width:40,height:40},children:(0,k.jsx)("img",{alt:"success",src:"/assets/success.svg",height:25})}),(0,k.jsxs)(l.A,{display:"flex",flexDirection:"column",sx:{ml:1.5},children:[(0,k.jsx)(p.A,{fontWeight:"bold",color:"warning.main",children:"Congratulations!"}),(0,k.jsx)(p.A,{variant:"body2",color:"text.secondary",sx:{mt:.5},children:"Enjoy Your Free 2-Week Pro Plan Trial!"}),(0,k.jsxs)(p.A,{variant:"body2",fontWeight:"bold",sx:{mt:.5},children:["Well Done, ",null===n||void 0===n?void 0:n.name,"!"]})]})]})}),(0,k.jsx)(p.A,{variant:"body2",fontWeight:"bold",color:"primary.main",sx:{mt:1,ml:.5},children:"Welcome to Food Safe System Pro!"}),(0,k.jsx)(p.A,{variant:"body2",color:"text.secondary",sx:{mt:.5,ml:.8},children:"We're thrilled to have you on board. You now have full access to the Pro version of Food Safe System, completely free for 2 weeks!"}),(0,k.jsx)(p.A,{variant:"body2",color:"text.secondary",sx:{mt:.5,ml:.8},children:"Streamline your kitchen operations and improve food safety. Need help? We're here for you!"}),(0,k.jsx)(p.A,{variant:"body2",fontWeight:"bold",color:"primary.main",sx:{mt:1,ml:.5},children:"Upgrade for more features!"}),(0,k.jsxs)(l.A,{display:"flex",flexDirection:"row",columnGap:"4px",sx:{mt:1,ml:.8},children:[(0,k.jsx)("img",{alt:"unlock",src:"/assets/unlock.svg",height:20}),(0,k.jsx)(p.A,{variant:"subtitle2",children:"Unlock advanced tools like:"})]}),(0,k.jsx)(l.A,{sx:{mt:.5,ml:3},children:["Automated Temperature Monitoring","Staff Reminders & Checklists","Cooking, Reheating, and Storage","Automated reminders for food safety tasks","Real-time insights via IoT sensor data","Compliance with HACCP and Standard 3.2.2A"].map((e,t)=>(0,k.jsxs)(p.A,{variant:"body2",color:"text.secondary",sx:{ml:1,mt:.2},children:["\u2022"," ",e]},t))})]})}),2===(null===n||void 0===n||null===(e=n.roles)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.id)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(m.A,{sx:{borderStyle:"dashed",py:1}}),(0,k.jsx)(l.A,{display:"flex",justifyContent:"center",p:1,mb:1,mt:1,children:(0,k.jsx)(g.A,{onClick:async()=>{s(!0);try{const e=await(0,A.qR)();s(!1),null!==e&&void 0!==e&&e.status?(S(),window.location.reload()):_(null===e||void 0===e?void 0:e.message)}catch(e){s(!1),_((null===e||void 0===e?void 0:e.message)||e)}},sx:{backgroundColor:"primary.main",color:"white",px:3,"&:hover":{backgroundColor:"primary.dark"}},children:(0,k.jsx)(l.A,{display:"flex",flexDirection:"row",columnGap:"4px",alignItems:"center",children:a?(0,k.jsx)(v.A,{size:14,color:"inherit",sx:{mt:.5,ml:2}}):"Go to Dashboard"})})}),(0,k.jsx)(l.A,{display:"flex",justifyContent:"center",p:0,mb:1,children:(0,k.jsx)(p.A,{onClick:async()=>{C(!0);try{const e=await(0,A.qR)();C(!1),null!==e&&void 0!==e&&e.status?(S(),o((0,b.CP)(!0))):_(null===e||void 0===e?void 0:e.message)}catch(e){C(!1),_((null===e||void 0===e?void 0:e.message)||e)}},sx:{color:"primary.main",cursor:"pointer",textDecoration:"underline","&:hover":{textDecoration:"none"}},children:c?(0,k.jsx)(v.A,{size:14,color:"inherit",sx:{mt:.5,ml:2}}):"Check Plans"})})]})]})})};var _=o(57073),S=o(96319);const z=()=>{var e,t;const o=(0,d.wA)(),{user:n}=(0,f.A)(),r=(0,d.d4)(e=>{let{payments:t}=e;return t.upgradeStatus}),[a,s]=(0,i.useState)(!1),c=!(null===n||void 0===n||null===(e=n.organisation)||void 0===e||!e.manual_billing);(0,i.useEffect)(()=>{!r||c||null!==n&&void 0!==n&&n.subscription_status||s(!0)},[c,r,null===n||void 0===n?void 0:n.subscription_status]);const v=()=>{o((0,b.Fp)()),s(!1)};return(0,k.jsxs)(u.A,{open:a,fullWidth:!0,maxWidth:"xs",disableEscapeKeyDown:!0,"aria-labelledby":"form-dialog-title",classes:{paper:"rounded-8"},disableRestoreFocus:!0,children:[(0,k.jsx)(_.A,{"aria-label":"close",onClick:async()=>{v()},size:"large",sx:()=>({position:"absolute",right:8,top:2,color:"warning.main"}),style:{cursor:"pointer"},children:(0,k.jsx)(S.A,{})}),(0,k.jsxs)(h.A,{sx:{p:3,borderRadius:1,boxShadow:3},children:[(0,k.jsx)(j.A,{sx:{height:{xs:340,sm:"auto"}},children:(0,k.jsxs)(l.A,{sx:{flexGrow:1},children:[(0,k.jsx)(x.A,{sx:{mt:1},children:(0,k.jsxs)(l.A,{style:{display:"flex",justifyContent:"flex-start",flexDirection:"row",columnGap:"4px"},children:[(0,k.jsx)(y.A,{color:"warning",sx:{width:40,height:40,pb:.5},children:(0,k.jsx)("img",{alt:"notification",src:"/assets/alert.png",height:24})}),(0,k.jsxs)(l.A,{style:{display:"flex",justifyContent:"center",flexDirection:"column"},sx:{ml:1.5},children:[(0,k.jsx)(p.A,{variant:"inherit",fontWeight:"bold",color:"warning.main",children:null!==n&&void 0!==n&&n.is_trial?"Your trial has expired!":"You are on the Free Plan"}),(0,k.jsx)(p.A,{variant:"body2",sx:{color:"text.secondary",mt:.5},children:"To unlock all features, please upgrade to a suitable plan."})]})]})}),(0,k.jsx)(p.A,{variant:"body2",fontWeight:"bold",color:"primary.main",sx:{mt:1,ml:.5},children:"Free Plan Limitation:"}),(0,k.jsx)(p.A,{variant:"body2",sx:{color:"text.secondary",mt:.5,ml:.8},children:"Only cooler temperatures can be recorded."}),(0,k.jsx)(p.A,{variant:"body2",fontWeight:"bold",color:"primary.main",sx:{mt:1,ml:.5},children:"Upgrade for more features!"}),(0,k.jsxs)(l.A,{style:{display:"flex",justifyContent:"flex-start",flexDirection:"row",columnGap:"4px"},sx:{mt:1,ml:.8},children:[(0,k.jsx)("img",{alt:"notification",src:"/assets/unlock.svg",height:20}),(0,k.jsx)(p.A,{variant:"subtitle2",sx:{px:.5},children:"Unlock advanced tools like:"})]}),(0,k.jsxs)(l.A,{sx:{mt:.5,ml:3},children:[(0,k.jsxs)(p.A,{variant:"body2",sx:{color:"text.secondary",ml:1,mt:.2},children:["\u2022"," Automated Temperature Monitoring"]}),(0,k.jsxs)(p.A,{variant:"body2",sx:{color:"text.secondary",ml:1,mt:.2},children:["\u2022"," Staff Reminders & Checklists"]}),(0,k.jsxs)(p.A,{variant:"body2",sx:{color:"text.secondary",ml:1,mt:.2}
1,children:["\u2022"," Cooking, Reheating, and Storage"]}),(0,k.jsxs)(p.A,{variant:"body2",sx:{color:"text.secondary",ml:1,mt:.2},children:["\u2022"," Automated reminders for food safety tasks"]}),(0,k.jsxs)(p.A,{variant:"body2",sx:{color:"text.secondary",ml:1,mt:.2},children:["\u2022"," Real-time insights via loT sensor data"]}),(0,k.jsxs)(p.A,{variant:"body2",sx:{color:"text.secondary",ml:1,mt:.2},children:["\u2022"," Compliance with HACCP and Standard 3.2.2A"]})]})]})}),2===(null===n||void 0===n||null===(t=n.roles[0])||void 0===t?void 0:t.id)?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(m.A,{sx:{borderStyle:"dashed",py:1}}),(0,k.jsx)(l.A,{sx:{display:"flex",justifyContent:"center",p:1,mb:1,mt:1},children:(0,k.jsx)(g.A,{sx:{":hover":{backgroundColor:"primary.main"},backgroundColor:"primary.main",color:"white",px:3},onClick:()=>(async()=>{v(),o((0,b.CP)(!0))})(),children:(0,k.jsxs)(l.A,{style:{display:"flex",justifyContent:"flex-start",flexDirection:"row",columnGap:"4px"},children:[(0,k.jsx)("img",{alt:"notification",src:"/assets/graph.svg",height:20}),"Upgrade Now"]})})})]}):(0,k.jsx)(l.A,{sx:{mb:2}})]})]})};var q=o(90260);q.nB.one;const M={H_MOBILE:64,H_MAIN_DESKTOP:88,H_DASHBOARD_DESKTOP:92,H_DASHBOARD_DESKTOP_OFFSET:60},I=280,R=88,L=48,O=36,F=32,T=24,E=22,P=22;var D=o(28747);function W(e){let{children:t,sx:o,...i}=e;const{themeLayout:n}=(0,s.Mp)(),r=(0,d.d4)(e=>{let{loading:t}=e;return t.loading3}),u="horizontal"===n,h="mini"===n,x=(0,a.A)("up","lg"),m=x?-4:0,g="undefined"!==typeof window&&!!window.ReactNativeWebView;return u?(0,k.jsx)(l.A,{component:"main",sx:{pt:`${M.H_MOBILE+m}px`,pb:`${M.H_MOBILE+m}px`,...x&&{px:2,pt:`${M.H_DASHBOARD_DESKTOP+80}px`,pb:`${M.H_DASHBOARD_DESKTOP+m}px`}},children:t}):(0,k.jsxs)(l.A,{component:"main",sx:g?{}:{flexGrow:1,py:`${M.H_MOBILE+m}px`,...x&&{px:0,width:`calc(100% - ${I}px)`,...h&&{width:`calc(100% - ${R}px)`}},...o},...i,children:[r?(0,k.jsx)(c.A,{sx:{mt:0,mb:2},color:"warning"}):(0,k.jsx)(p.A,{sx:{m:2.5}}),(0,k.jsx)(D.A,{}),(0,k.jsx)(C,{}),(0,k.jsx)(z,{}),t]})}var N=o(14857),$=o(93230),B=o(88060),H=o(83239),X=o(61770),Y=o(11942),G=o.n(Y),K=o(42074),Z=o(59254),U=o(36080),V=o(63575);Q.propTypes={disabledLink:G().bool};const J=(0,Z.Ay)("div")(e=>{let{theme:t}=e;return{display:"flex",justifyContent:"space-between",alignItems:"center",width:"15rem",borderRadius:.5*Number(t.shape.borderRadius)}});function Q(e){let{disabledLink:t=!1}=e;const o=(0,k.jsx)(U.A,{to:q.nB.dashboard,component:K.N_,underline:"none",color:"inherit",children:(0,k.jsxs)(J,{children:[(0,k.jsx)(V.A,{disabledEffect:!0,visibleByDefault:!0,alt:"auth",src:"/assets/FSS_logo.png",sx:{width:43}}),(0,k.jsx)(p.A,{variant:"h5",style:{mr:"1rem",color:"white"},children:"Food Safe System"})]})});return(0,k.jsx)(k.Fragment,{children:o})}var ee=o(66075),te=o(55471),oe=o.n(te),ie=o(99573),ne=o.n(ie),re=o(97497),le=o(1849),ae=o(39325),se=o(48205),de=o(22302),ce=o(46483),pe=o(20544),ue=o(88521);function he(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children",o=[];const i=null===e||void 0===e?void 0:e.map(e=>(e[t]&&e[t].length&&(o=[...o,...e[t]]),e));return null===i||void 0===i?void 0:i.concat(o.length?he(o,t):o)}var xe=o(98885);function me(e){let{query:t,sx:o,...i}=e;return t?(0,k.jsxs)(h.A,{sx:{textAlign:"center",...o},...i,children:[(0,k.jsx)(p.A,{variant:"h6",paragraph:!0,children:"Not found"}),(0,k.jsxs)(p.A,{variant:"body2",children:["No results found for \xa0",(0,k.jsxs)("strong",{children:['"',t,'"']}),".",(0,k.jsx)("br",{})," Try checking for typos or using complete words."]})]}):(0,k.jsx)(p.A,{variant:"body2",sx:o,children:"Please enter keywords"})}var ge=o(14650);const ve=e=>(0,k.jsx)(ge.In,{icon:e,color:"#004e49",width:"20",height:"24"}),fe=[{items:[{title:"Dashboard",path:q.nB.dashboard,icon:ve("fa-tachometer"),name:"dashboard_access"},{title:"Organisations",path:q.nB.organisations,icon:ve("mdi:analytics"),name:"organisation_access"},{title:"Locations",path:q.nB.outlets,icon:ve("fa-building"),name:"outlet_access"},{title:"Kitchens",path:q.nB.kitchens,icon:ve("fa-solid:cookie-bite"),name:"kitchen_access"},{title:"Users",path:q.nB.users,icon:ve("fa6-solid:users"),name:"user_access"},{title:"Tasks",icon:ve("fa-tasks"),name:"task_access",children:[{title:"Task Creation/Schedule",path:q.nB.task,icon:ve("mdi:dot"),name:"task_create"},{title:"Task Overview / Execution",path:q.nB.taskoverview,icon:ve("mdi:dot"),name:"task_access"},{title:"Tasks (Legacy)",path:q.nB.legcytask,icon:ve("mdi:dot"),name:"task_access"}]}
1,{title:"Records / Logs",icon:ve("mdi:clipboard-list"),name:"cookcoolreheat_access",children:[{title:"Cook Cool Reheat",path:q.nB.cookcoolreheat,icon:ve("mdi:dot"),name:"cookcoolreheat_access"},{title:"Hot Hold/Chilled Display",path:q.nB.hotholdcolds,icon:ve("mdi:dot"),name:"hotholdcold_access"},{title:"Goods In",path:q.nB.deliveries.list,icon:ve("mdi:dot"),name:"delivery_access"},{title:"Food pH Monitoring",path:q.nB.phmonitor,icon:ve("mdi:dot"),name:"ph_access"}]},{title:"Checklists",icon:ve("fa-solid:check-double"),name:"checklist_access",children:[{title:"Checklist Creation",path:q.nB.checklist,icon:ve("mdi:dot"),name:"checklist_access"},{title:"Checklist Execution",path:q.nB.checklistresponses.list,icon:ve("mdi:dot"),name:"checklist_response_access"}]},{title:"Coolers",path:q.nB.coolers.list,icon:ve("fa-snowflake-o"),name:"cooler_access"},{title:"Reports",path:q.nB.reports.list,icon:ve("bxs:report"),name:"report_access"},{title:"Sensors",path:q.nB.sensors,icon:ve("mdi:link"),name:"sensor_admin_access"},{title:"Dishes",path:q.nB.dishes,icon:ve("mingcute:dish-cover-fill"),name:"dish_access"},{title:"Suppliers",path:q.nB.supplier,icon:ve("fa-solid:truck-loading"),name:"supplier_access"},{title:"Incidents",path:q.nB.incidents,icon:ve("fa6-solid:user-doctor"),name:"incident_access"},{title:"Batches",path:q.nB.batches.list,icon:ve("fa-cubes"),name:"batch_access"},{title:"Staff",path:q.nB.staff,icon:ve("ph:users-fill"),name:"employee_access"},{title:"Assets & Equipment",path:q.nB.assets,icon:ve("bx:tab"),name:"asset_access"},{title:"Food Safety Links",path:q.vl,icon:ve("gis:network-o"),name:"dashboard_access",children:[{title:"Food Label System",path:q.EK,icon:ve("mdi:dot"),name:"dashboard_access"},{title:"F***Waste",path:q.OB,icon:ve("mdi:dot"),name:"dashboard_access"},{title:"HACCP",path:q._l,icon:ve("mdi:dot"),name:"dashboard_access"},{title:"Allergens & Calories",path:q.vl,icon:ve("mdi:dot"),name:"dashboard_access"}]}]}],be=(0,Z.Ay)("div")(e=>{let{theme:t}=e;return{...(0,X.Vz)({color:t.palette.background.default}),top:0,left:0,zIndex:99,width:"100%",display:"flex",position:"absolute",alignItems:"center",height:64,padding:t.spacing(0,3),boxShadow:t.customShadows.z8,[t.breakpoints.up("md")]:{height:92,padding:t.spacing(0,5)}}}),ye=(0,Z.Ay)(e=>(0,k.jsx)(le.A,{...e}))(e=>{let{theme:t}=e;return{left:"8px !important",top:"72px !important",width:"calc(100% - 16px) !important",transform:"none !important",[t.breakpoints.up("md")]:{top:"100px !important"},"& .MuiAutocomplete-paper":{padding:t.spacing(1,0)},"& .MuiListSubheader-root":{"&.MuiAutocomplete-groupLabel":{...(0,X.Vz)({color:t.palette.background.neutral}),...t.typography.overline,top:0,margin:0,lineHeight:"48px",borderRadius:t.shape.borderRadius}},"& .MuiAutocomplete-listbox":{"& .MuiAutocomplete-option":{padding:t.spacing(.5,2),margin:0,display:"block",border:"dashed 1px transparent",borderBottomColor:t.palette.divider,"&:last-of-type":{borderBottomColor:"transparent"},"&:hover":{borderColor:t.palette.primary.main,backgroundColor:(0,re.X4)(t.palette.primary.main,t.palette.action.hoverOpacity)}}}}});function je(){const e=(0,r.Zp)(),{pathname:t}=(0,r.zy)(),[o,n]=(0,i.useState)(!1),[a,s]=(0,i.useState)(""),d=fe.map(e=>we(e.items,e.subheader)).flat(),c=he(d).map(e=>{const t=function(e,t){let o=e.map(e=>({path:[e.title],currItem:e}));for(;o.length;){var i;const{path:e,currItem:n}=o.pop();if(n.path===t)return e;null!==(i=n.children)&&void 0!==i&&i.length&&(o=o.concat(n.children.map(t=>({path:e.concat(t.title),currItem:t}))))}return null}(d,e.path);return{group:t&&t.length>1?t[0]:e.subheader,title:e.title,path:e.path}});(0,i.useEffect)(()=>{o&&p()},[t]);const p=()=>{n(!1)},u=t=>{t.includes("http")?window.open(t):e(t),p()},h=e=>{"Enter"===e.key&&u(a)};return(0,k.jsx)(ae.x,{onClickAway:p,children:(0,k.jsxs)("div",{children:[!o&&(0,k.jsx)(xe.ji,{sx:{color:"white"},onClick:()=>{n(!0)},children:(0,k.jsx)(ee.A,{icon:"eva:search-fill"})}),(0,k.jsx)(se.A,{direction:"down",in:o,mountOnEnter:!0,unmountOnExit:!0,children:(0,k.jsx)(be,{children:(0,k.jsx)(pe.A,{sx:{width:1,height:1},autoHighlight:!0,disablePortal:!0,disableClearable:!0,popupIcon:null,PopperComponent:ye,onInputChange:(e,t)=>
1s(t),noOptionsText:(0,k.jsx)(me,{query:a,sx:{py:10}}),options:c.sort((e,t)=>-t.group.localeCompare(e.group)),groupBy:e=>e.group,getOptionLabel:e=>e.path,isOptionEqualToValue:(e,t)=>e.path===t.path,filterOptions:(0,ue.Z)({matchFrom:"start",stringify:e=>e.title||e.path}),renderInput:e=>(0,k.jsx)(de.Ay,{...e.InputProps,inputProps:e.inputProps,fullWidth:!0,autoFocus:!0,placeholder:"Search...",onKeyUp:h,startAdornment:(0,k.jsx)(ce.A,{position:"start",children:(0,k.jsx)(ee.A,{icon:"eva:search-fill",sx:{color:"text.disabled"}})}),sx:{height:1,typography:"h6"}}),renderOption:(e,t,o)=>{let{inputValue:i}=o;const{title:n,path:r}=t,a=oe()(n,ne()(n,i)),s=oe()(r,ne()(r,i));return(0,k.jsxs)(l.A,{component:"li",...e,onClick:()=>u(r),children:[(0,k.jsx)("div",{children:a.map((e,t)=>(0,k.jsx)(l.A,{component:"span",sx:{typography:"subtitle2",textTransform:"capitalize",color:e.highlight?"primary.main":"text,primary"},children:e.text},t))}),(0,k.jsx)("div",{children:s.map((e,t)=>(0,k.jsx)(l.A,{component:"span",sx:{typography:"caption",color:e.highlight?"primary.main":"text.secondary"},children:e.text},t))})]})}})})})]})})}const Ae=(0,i.memo)(je);function we(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null===e||void 0===e?void 0:e.map(e=>({subheader:t,...e,...e.children&&{children:we(e.children,t)}}))}var ke=o(27987),Ce=o(78909),_e=o(41413),Se=o(28810);const ze=(0,i.forwardRef)((e,t)=>{var o,i;let{color:n,name:r="",BadgeProps:l,children:a,sx:s,...d}=e;const c=(0,N.A)(),{color:p,name:u}=function(e){const t=e=>{var t;return e&&(null===e||void 0===e||null===(t=e.charAt(0))||void 0===t?void 0:t.toUpperCase())},o=e=>["A","N","H","L","Q"].includes(t(e))?"primary":["F","G","T","I","J"].includes(t(e))?"info":["K","D","Y","B","O"].includes(t(e))?"success":["P","E","R","S","U"].includes(t(e))?"warning":["V","W","X","M","Z"].includes(t(e))?"error":"default";return{name:t(e),color:o(e)}}(r),h=n||p,x="default"===h?(0,k.jsxs)(_e.A,{ref:t,sx:s,...d,children:[r&&u,a]}):(0,k.jsxs)(_e.A,{ref:t,sx:{color:null===(o=c.palette[h])||void 0===o?void 0:o.contrastText,backgroundColor:null===(i=c.palette[h])||void 0===i?void 0:i.main,fontWeight:c.typography.fontWeightMedium,...s},...d,children:[r&&u,a]});return l?(0,k.jsx)(Se.A,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},...l,children:x}):x});var qe=o(22329),Me=o(33738),Ie=o(80097);function Re(){const e=(0,N.A)(),t="light"===e.palette.mode;return(0,k.jsx)(Ie.A,{styles:{"#root":{".SnackbarContent-root":{width:"100%",padding:e.spacing(1),margin:e.spacing(.25,0),boxShadow:e.customShadows.z8,borderRadius:e.shape.borderRadius,color:t?e.palette.common.white:e.palette.grey[800],backgroundColor:t?e.palette.grey[900]:e.palette.common.white,"&.SnackbarItem-variantSuccess, &.SnackbarItem-variantError, &.SnackbarItem-variantWarning, &.SnackbarItem-variantInfo":{color:e.palette.text.primary,backgroundColor:e.palette.background.paper},[e.breakpoints.up("md")]:{minWidth:240}},".SnackbarItem-message":{padding:"0 !important",fontWeight:e.typography.fontWeightMedium},".SnackbarItem-action":{marginRight:0,color:e.palette.action.active,"& svg":{width:20,height:20}}}}})}function Le(e){let{children:t}=e;const{themeDirection:o}=(0,s.Mp)(),n="rtl"===o,r=(0,i.useRef)(null),l=e=>()=>{r.current.closeSnackbar(e)};return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(Re,{}),(0,k.jsx)(qe.n,{ref:r,dense:!0,maxSnack:5,preventDuplicate:!0,autoHideDuration:3e3,TransitionComponent:n?Me.A:void 0,variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},iconVariant:{info:(0,k.jsx)(Oe,{icon:"eva:info-fill",color:"info"}),success:(0,k.jsx)(Oe,{icon:"eva:checkmark-circle-2-fill",color:"success"}),warning:(0,k.jsx)(Oe,{icon:"eva:alert-triangle-fill",color:"warning"}),error:(0,k.jsx)(Oe,{icon:"eva:alert-circle-fill",color:"error"})},action:e=>(0,k.jsx)(_.A,{size:"small",onClick:l(e),sx:{p:.5},children:(0,k.jsx)(ee.A,{icon:"eva:close-fill"})}),children:t})]})}function Oe(e){let{icon:t,color:o}=e;return(0,k.jsx)(l.A,{component:"span",sx:{mr:1.5,width:40,height:40,display:"flex",borderRadius:1.5,alignItems:"center",justifyContent:"center",color:`${o}.main`,bgcolor:e=>(0,re.X4)(e.palette[o].main,.16)},children:(0,k.jsx)(ee.A,{icon:t,width:24})})}var Fe=o(72362);const Te=(0,Z.Ay)("span")(e=>{let{arrow:t,theme:o}=e;const i=`solid 1px ${(0,re.X4)(o.palette.grey[500],.12)}`,n={borderRadius:"0 0 3px 0",top:-6,borderBottom:i,borderRight:i},r={borderRadius:"3px 0 0 0",bottom:-6,borderTop:i,borderLeft:i},l={borderRadius:"0 3px 0 0",left:-6,borderTop:i,borderRight:i},a={borderRadius:"0 0 0 3px",right:-6,borderBottom:i,borderLeft:i};return{display:"none",[o.breakpoints.up("sm")]:{zIndex:1,width:12,height:12,content:"''",display:"block",position:"absolute",transform:"rotate(-135deg)",background:o.palette.background.paper}
1,..."top-left"===t&&{...n,left:20},..."top-center"===t&&{...n,left:0,right:0,margin:"auto"},..."top-right"===t&&{...n,right:20},..."bottom-left"===t&&{...r,left:20},..."bottom-center"===t&&{...r,left:0,right:0,margin:"auto"},..."bottom-right"===t&&{...r,right:20},..."left-top"===t&&{...l,top:20},..."left-center"===t&&{...l,top:0,bottom:0,margin:"auto"},..."left-bottom"===t&&{...l,bottom:20},..."right-top"===t&&{...a,top:20},..."right-center"===t&&{...a,top:0,bottom:0,margin:"auto"},..."right-bottom"===t&&{...a,bottom:20}}});function Ee(e){let{open:t,children:o,arrow:i="top-right",disabledArrow:n,sx:r,...l}=e;const{style:a,anchorOrigin:s,transformOrigin:d}=function(e){let t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}}}return t}(i);return(0,k.jsxs)(Fe.Ay,{open:Boolean(t),anchorEl:t,anchorOrigin:s,transformOrigin:d,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...a,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...r}},...l,children:[!n&&(0,k.jsx)(Te,{arrow:i}),o]})}var Pe=o(48775);const De=[{label:"Home",linkTo:"/dashboard"},{label:"Profile",linkTo:"/profile"},{label:"Settings",linkTo:"/reset-password"},{label:"Account",linkTo:"/subscription"}];function We(){var e;const t=(0,r.Zp)(),o=(0,N.A)(),{user:n,logout:s}=(0,Ce.Z)(),{clearAll:d,clearDashboard:c,clearCooler:u}=(0,i.useContext)(Pe.o),h=(0,a.A)("up","lg"),{enqueueSnackbar:x}=(0,qe.dh)(),[g,v]=(0,i.useState)(null),f=!(null===n||void 0===n||null===(e=n.organisation)||void 0===e||!e.manual_billing),b=()=>{v(null)};return(0,k.jsxs)(k.Fragment,{children:[h&&(0,k.jsx)(p.A,{variant:"title",fontWeight:"bold",noWrap:!0,children:n?null===n||void 0===n?void 0:n.name:""}),(0,k.jsx)(xe.ji,{onClick:e=>{v(e.currentTarget)},sx:{p:0,...g&&{"&:before":{zIndex:1,content:"''",width:"100%",height:"100%",borderRadius:"50%",position:"absolute",bgcolor:e=>(0,re.X4)(e.palette.grey[900],.8)}}},children:(0,k.jsx)(ze,{src:n&&n.user_image&&n.user_image.url?`${n.user_image.url}`:"/assets/user.png",alt:n?n.name:"",name:n?n.name:""})}),(0,k.jsxs)(Ee,{open:g,onClose:b,sx:{width:200,p:0},children:[(0,k.jsxs)(l.A,{sx:{my:1.5,px:2.5},children:[(0,k.jsx)(p.A,{variant:"subtitle2",color:o.palette.primary.main,noWrap:!0,children:n?n.name:""}),(0,k.jsx)(p.A,{variant:"body2",sx:{color:"text.secondary"},noWrap:!0,children:n?n.email:""})]}),(0,k.jsx)(m.A,{sx:{borderStyle:"dashed"}}),(0,k.jsx)($.A,{sx:{p:1},children:De.map(e=>{var o;return(0,k.jsx)(i.Fragment,{children:2!==(null===n||void 0===n||null===(o=n.roles[0])||void 0===o?void 0:o.id)&&"Account"===e.label||f&&"Account"===e.label?(0,k.jsx)(k.Fragment,{}):(0,k.jsx)(ke.A,{onClick:()=>{return o=e.linkTo,b(),void t(o);var o},children:e.label})},e.label)})}),(0,k.jsx)(m.A,{sx:{borderStyle:"dashed"}}),(0,k.jsx)(ke.A,{onClick:async()=>{try{s(),d(),c(),u(),t(q.pi.login,{replace:!0}),b()}catch(e){console.error(e),x("Unable to logout!",{variant:"error"})}},sx:{m:1},children:"Logout"})]})]})}var Ne=o(60899),$e=o(40038),Be=o(39919),He=o(88283),Xe=o(59051),Ye=o.n(Xe),Ge=o(70652),Ke=o(47258),Ze=o(86003);const Ue=He.i7` 2 0% { 3 transform: scale(1); 4 opacity: 1; 5 } 6 50% { 7 transform: scale(1.4); 8 opacity: 0.6; 9 } 10 100% { 11 transform: scale(1); 12 opacity: 1; 13 } 14`;function Ve(){var e,t;const[o,n]=(0,i.useState)(null),[a,s]=(0,i.useState)(""),c=(0,N.A)(),{user:u}=(0,f.A)(),h=(0,d.wA)(),v=(0,r.Zp)(),{setNotificationIncident:A,setNotificationTask:C}=(0,Ke.b)(),_=!(null===u||void 0===u||null===(e=u.organisation)||void 0===e||!e.manual_billing),[S,z]=(0,i.useState)(!1),M=(0,d.d4)(e=>{let{notifications:t}=e;return t.notifications.map(e=>({...e,content:JSON.parse(null===e||void 0===e?void 0:e.content)}))}),I=(0,d.d4)(e=>{let{notifications:t}=e;return t.currentPage}),R=(0,d.d4)(e=>{let{notifications:t}=e;return t.notificationPages}),L=(0,d.d4)(e=>{let{notifications:t}=e;return t.unSeenCount});(0,i.useEffect)(()=>{var e;0!==(null===u||void 0===u||null===(e=u.subscriptions)||void 0===e?void 0:e.length)&&null!==u&&void 0!==u&&u.subscription_status&&!1===(null===u||void 0===u?void 0:u.is_trial)&&null!==u&&void 0!==u&&u.customer_billing||_?z(!0):z(!1)},[]),(0,i.useEffect)(()=>{o&&h((0,Ze.vl)(I))},[I,o]);const O=()=>{n(null),h((0,Ze.tR)(1))},F=(0,i.useMemo)(()=>(e=>{const t=null===e||void 0===e?void 0:e.reduce((e,t)=>
14{const o=Ye().utc(null===t||void 0===t?void 0:t.updated_at).local().toDate(),i=new Date,n=new Date(i);let r;return n.setDate(i.getDate()-1),r=o.toDateString()===i.toDateString()?"Today":o.toDateString()===n.toDateString()?"Yesterday":o.toLocaleDateString("en-US",{day:"numeric",month:"long"}),e[r]||(e[r]=[]),e[r].push(t),e},{});return Object.keys(t).sort((e,o)=>"Today"===e?-1:"Today"===o?1:"Yesterday"===e?-1:"Yesterday"===o?1:new Date(t[o][0].updated_at)-new Date(t[e][0].updated_at)).map((e,o)=>({title:e,data:t[e],index:o}))})(M),[M]);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(xe.ji,{color:"inherit",onClick:e=>{n(e.currentTarget)},sx:{width:40,height:40},children:(0,k.jsx)(Se.A,{badgeContent:L,color:"error",children:(0,k.jsx)(ee.A,{icon:"eva:bell-fill"})})}),(0,k.jsxs)(Ee,{open:o,onClose:O,sx:{width:400,p:0,maxHeight:"90vh",display:"flex",flexDirection:"column",overflow:"hidden"},children:[(0,k.jsx)(l.A,{sx:{display:"flex",alignItems:"center",py:2,px:2.5},children:(0,k.jsxs)(l.A,{sx:{flexGrow:1},children:[(0,k.jsx)(p.A,{variant:"subtitle1",children:"Notifications"}),(0,k.jsxs)(p.A,{variant:"body2",sx:{color:"text.secondary"},children:["You have ",L," unread messages"]})]})}),(0,k.jsxs)(j.A,{sx:{maxHeight:500,overflowX:"hidden",px:2},id:"notification-scroll-box",children:[(0,k.jsxs)(l.A,{sx:{pb:1},children:[!S&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(m.A,{sx:{borderStyle:"dashed"}}),(0,k.jsxs)(l.A,{sx:{flexGrow:1,ml:2,pr:2},children:[(0,k.jsx)(x.A,{sx:{mt:1},children:(0,k.jsxs)(l.A,{sx:{display:"flex",alignItems:"center",columnGap:"4px"},children:[(0,k.jsx)(y.A,{color:"error",sx:{width:36,height:36,alignSelf:"center"},children:(0,k.jsx)("img",{alt:"notification",src:"/assets/alert.png",height:23})}),(0,k.jsx)(p.A,{fontWeight:"bold",color:"error",sx:{px:1},children:"Time to upgrade your plan!"})]})}),(0,k.jsx)(p.A,{variant:"body2",sx:{color:"text.secondary",mt:1.5},children:(0,k.jsx)(Ge.A,{})}),(0,k.jsx)(p.A,{variant:"body2",fontWeight:"bold",color:c.palette.primary.main,sx:{mt:1},children:"Upgrade for more features!"}),(0,k.jsxs)(l.A,{sx:{display:"flex",alignItems:"center",columnGap:"4px",mt:1},children:[(0,k.jsx)("img",{alt:"notification",src:"/assets/unlock.svg",height:20}),(0,k.jsx)(p.A,{variant:"subtitle2",children:"Unlock advanced tools like:"})]}),(0,k.jsxs)(l.A,{sx:{ml:3,mt:.5},children:[(0,k.jsx)(p.A,{variant:"body2",sx:{color:"text.secondary"},children:"\u2022 Automated Temperature Monitoring"}),(0,k.jsx)(p.A,{variant:"body2",sx:{color:"text.secondary"},children:"\u2022 Staff Reminders & Checklists"}),(0,k.jsx)(p.A,{variant:"body2",sx:{color:"text.secondary"},children:"\u2022 Detailed Compliance Reports"})]})]}),2===(null===u||void 0===u||null===(t=u.roles[0])||void 0===t?void 0:t.id)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(l.A,{sx:{my:2}}),(0,k.jsx)(l.A,{sx:{display:"flex",justifyContent:"center",px:2},children:(0,k.jsx)(g.A,{onClick:()=>{h((0,b.CP)(!0)),O()},sx:{backgroundColor:"primary.main",color:"#fff",borderRadius:2,px:2,py:.5,textTransform:"none",":hover":{backgroundColor:"primary.dark"}},children:(0,k.jsxs)(l.A,{sx:{display:"flex",alignItems:"center",columnGap:1},children:[(0,k.jsx)("img",{alt:"notification",src:"/assets/graph.svg",height:20}),"Upgrade Now"]})})}),(0,k.jsx)(m.A,{sx:{borderStyle:"dashed",mb:1,mt:2}})]})]}),F.map(e=>(0,k.jsxs)(l.A,{children:[(0,k.jsx)(p.A,{variant:"subtitle2",sx:{mt:2,mb:1,color:"text.secondary",fontWeight:"bold",letterSpacing:1,textTransform:"uppercase"},children:e.title}),e.data.map((e,t)=>{var o,i,n,r,d;const c=e.content||{};switch(e.entity_type){case"daily_summary":return(0,k.jsxs)(l.A,{sx:{px:2},children:[(0,k.jsxs)(l.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1},children:[(0,k.jsxs)(l.A,{sx:{display:"flex",alignItems:"center"},children:[(0,k.jsx)(y.A,{sx:{bgcolor:"#FFE082",width:36,height:36},children:(0,k.jsx)(ee.A,{icon:"eva:bell-fill",color:"white"})}),(0,k.jsxs)(p.A,{variant:"subtitle1",sx:{fontWeight:"bold",ml:1},children:["Daily Summary\xa0",(0,k.jsxs)(p.A,{variant:"caption",component:"span",children:["(",(null===e||void 0===e?void 0:e.updated_at)&&Ye().utc(null===e||void 0===e?void 0:e.updated_at).local().format("DD MMM YYYY")||"",")"]})]})]}),!(null!==e&&void 0!==e&&e.seen_at)&&(0,k.jsx)(l.A,{sx:{animation:`${Ue} 1.2s infinite ease-in-out`,display:"inline-flex"},children:(0,k.jsx)(ee.A,{icon:"radix-icons:dot-filled",width:20,height:20,color:"#00AB55"})})]}),(0,k.jsxs)(l.A,{sx:{display:"flex",alignItems:"center",ml:1.5},children:[(0,k.jsx)(ee.A,{icon:"material-symbols:check-circle-rounded",color:"#00AB55"}),(0,k.jsxs)(p.A,{variant:"body2",sx:{ml:1,fontWeight:"bold"},children:[(null===c||void 0===c||null===(o=c.tasks)||void 0===o?void 0:o.completed_tasks)||0," tasks completed today"]})]}),(0,k.jsxs)(l.A,{sx:{display:"flex",alignItems:"center",ml:1.5},children:[(0,k.jsx)(ee.A,{icon:"material-symbols:cancel-rounded",color:"#FF3030"}),(0,k.jsxs)(p.A,{variant:"body2",sx:{ml:1,fontWeight:"bold"},children:[(null===c||void 0===c||null===(i=c.tasks)||void 0===i?void 0:i.incomplete_count)||0," tasks still pending"]})]}),Array.isArray(null===c||void 0===c||null===(n=c.tasks)||void 0===n?void 0:n.incomplete_tasks)&&c.tasks.incomplete_tasks.length>0&&(0,k.jsxs)(l.A,{sx:{ml:4.5,mt:.5},children:[c.tasks.incomplete_tasks.slice(0,3).map((e,t)=>(0,k.jsxs)(p.A,{variant:"body2",sx:{color:"text.secondary"},children:["\u2022 ",e.title]},t)),c.tasks.incomplete_tasks.length>3&&(0,k.jsxs)(p.A,{variant:"body2",sx:{color:"text.secondary"},children:["\u2022 ...",c.tasks.incomplete_tasks.length-3," more"]})]}),(0,k.jsxs)(l.A,{sx:{ml:4.5},children:[((null===c||void 0===c?void 0:c.highlights)||[]).slice(0,3).map((e,t)=>(0,k.jsxs)(p.A,{variant:"body2",children:["\u2022 ",e]},t)),(null===c||void 0===c||null===(r=c.highlights)||void 0===r?void 0:r.length)>3&&(0,k.jsxs)(p.A,{variant:"body2",children:["\u2022 ...",c.highlights.length-3," more"]})]}),(0,k.jsxs)(l.A,{sx:{display:"flex",alignItems:"center",ml:1.5},children:[(0,k.jsx)(ee.A,{icon:"material-symbols:check-circle-rounded",color:"#00AB55"}),(0,k.jsxs)(p.A,{variant:"body2",sx:{ml:1,fontWeight:"bold"},children:[(null===c||void 0===c||null===(d=c.records_logs)||void 0===d?void 0:d.total_count)||0," new records logged today"]})]}),(0,k.jsx)(Ne.Ay,{container:!0,spacing:.5,sx:{mx:2,my:.3},children:[["Cooking","cooking_logs_count"],["Cooling","cooling_logs_count"],["Reheat","reheating_logs_count"],["Hot/Hold","hothold_logs_count"],["Food pH","ph_logs_count"],["Chilled Display","chilled_logs_count"],["Goods In","goodsin_logs_count"],["Training Records","training_logs_count"],["Incidents","incident_logs_count"]].map(e=>{var t,o;let[i,n]=e;return(0,k.jsx)(Ne.Ay,{item:!0,xs:6,children:(0,k.jsxs)(l.A,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:"#fff",border:"1px solid #E0E0E0",borderRadius:1,px:2,py:.5},children:[(0,k.jsx)(p.A,{variant:"body2",children:i}),(0,k.jsx)(p.A,{variant:"body2",fontWeight:"bold",color:"incident_logs_count"===n&&(null===c||void 0===c||null===(t=c.records_logs)||void 0===t?void 0:t[n])>0?"error.main":"text.secondary",children:(null===c||void 0===c||null===(o=c.records_logs)||void 0===o?void 0:o[n])||0})]})},i)})}),(0,k.jsx)(l.A,{sx:{display:"flex",justifyContent:"center",mt:2},children:(0,k.jsx)(g.A,{variant:"contained",color:"primary",size:"small",sx:{borderRadius:2,px:3,py:.5,textTransform:"none",fontSize:"0.8rem"},onClick:()=>{return null===(t=e)||void 0===t||!t.id||null!==t&&void 0!==t&&t.seen_at||h((0,Ze.MX)(t.id)),Ye().utc(null===t||void 0===t?void 0:t.updated_at).local().isSame(Ye()(),"day")?v(q.nB.dashboard,{state:{from:"notification"}}):v(q.nB.taskoverview),void O();var t},children:"Tasks"})}
14),(0,k.jsx)(p.A,{variant:"caption",sx:{display:"block",textAlign:"right",color:"text.secondary",mt:.5},children:(null===e||void 0===e?void 0:e.updated_at)&&Ye().utc(null===e||void 0===e?void 0:e.updated_at).local().format("HH:mm")||""}),(0,k.jsx)(m.A,{sx:{borderStyle:"dashed",my:1}})]},t);case"cooler_breach":const x=(null===e||void 0===e?void 0:e.content)||"{}",f=null!==(null===x||void 0===x?void 0:x.internal_temp)&&((null===x||void 0===x?void 0:x.internal_temp)<=(null===x||void 0===x?void 0:x.cooler_min_temp)||(null===x||void 0===x?void 0:x.internal_temp)>=(null===x||void 0===x?void 0:x.cooler_max_temp)),b=null!==(null===x||void 0===x?void 0:x.external_temp)&&((null===x||void 0===x?void 0:x.external_temp)<=(null===x||void 0===x?void 0:x.probe_min_temp)||(null===x||void 0===x?void 0:x.external_temp)>=(null===x||void 0===x?void 0:x.probe_max_temp));return(0,k.jsxs)(l.A,{sx:{px:2},children:[(0,k.jsxs)(l.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1},children:[(0,k.jsxs)(l.A,{sx:{display:"flex",alignItems:"center"},children:[(0,k.jsx)(y.A,{sx:{bgcolor:"#FF3030",width:36,height:36},children:(0,k.jsx)(ee.A,{icon:"ic:round-warning",color:"#FFF",width:24,height:24})}),(0,k.jsx)(p.A,{variant:"subtitle1",sx:{fontWeight:"bold",color:"#FF3030",ml:1},children:null===e||void 0===e?void 0:e.title})]}),!(null!==e&&void 0!==e&&e.seen_at)&&(0,k.jsx)(l.A,{sx:{animation:`${Ue} 1.2s infinite ease-in-out`,display:"inline-flex"},children:(0,k.jsx)(ee.A,{icon:"radix-icons:dot-filled",width:20,height:20,color:"#00AB55"})})]}),(0,k.jsx)(p.A,{variant:"body2",fontWeight:"medium",sx:{mb:.5,pl:6,mt:-1},children:null===x||void 0===x?void 0:x.cooler_name}),(0,k.jsx)(p.A,{variant:"subtitle2",fontWeight:"bold",sx:{mb:.5,pl:6},children:(null===x||void 0===x?void 0:x.message)||"Temperature Exceeded"}),1===(null===x||void 0===x?void 0:x.internal_is_active)&&(0,k.jsxs)(l.A,{sx:{justifyContent:"space-between",mb:.5,pl:6,pr:3},children:[(0,k.jsxs)(p.A,{variant:"body2",children:["Current Temp:"," ",(0,k.jsxs)("span",{style:{color:f?"#FF3030":"#00AB55",fontWeight:500},children:[null===x||void 0===x?void 0:x.internal_temp,"\xb0C"]})]}),(0,k.jsxs)(p.A,{variant:"body2",children:["Threshold:"," ",(0,k.jsxs)("span",{style:{fontWeight:500},children:[null===x||void 0===x?void 0:x.cooler_min_temp,"\xb0C to ",null===x||void 0===x?void 0:x.cooler_max_temp,"\xb0C"]})]})]}),1===(null===x||void 0===x?void 0:x.probe_is_active)&&(0,k.jsxs)(l.A,{sx:{justifyContent:"space-between",mb:.5,pl:6,pr:3},children:[(0,k.jsxs)(p.A,{variant:"body2",children:["Probe Temp:"," ",(0,k.jsxs)("span",{style:{color:b?"#FF3030":"#00AB55",fontWeight:500},children:[null===x||void 0===x?void 0:x.external_temp,"\xb0C"]})]}),(0,k.jsxs)(p.A,{variant:"body2",children:["Threshold:"," ",(0,k.jsxs)("span",{style:{fontWeight:500},children:[null===x||void 0===x?void 0:x.probe_min_temp,"\xb0C to ",null===x||void 0===x?void 0:x.probe_max_temp,"\xb0C"]})]})]}),(0,k.jsxs)(p.A,{variant:"body2",sx:{mb:1,pl:6},children:["Detected at: ",Ye().utc(null===e||void 0===e?void 0:e.created_at).local().format("DD MMM YY hh:mm A")||""]}),(0,k.jsx)(l.A,{sx:{overflowX:"auto",whiteSpace:"nowrap",px:1,py:.5,"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},children:(0,k.jsx)($e.A,{value:a||e.remarks,onChange:(t,o)=>((e,t)=>{if(!e)return;s(e);const o={id:null===t||void 0===t?void 0:t.id,remarks:e};if(h((0,Ze.VR)(o)),null!==t&&void 0!==t&&t.task_details){var i;const o={...t.task_details,remarks:e};null!==u&&void 0!==u&&null!==(i=u.permissions)&&void 0!==i&&i.includes("task_edit")?(C(o),v(q.nB.task)):h((0,w.rG)({message:"You don't have permission to access this task.",variant:"error"}))}null!==t&&void 0!==t&&t.seen_at||null===t||void 0===t||!t.id||h((0,Ze.MX)(t.id)),O()})(o,e),exclusive:!0,orientation:"horizontal",sx:{display:"inline-flex"},children:[{id:"1",label:"Check the door",value:"Check the door"},{id:"2",label:"Inspect the cooling sys",value:"Inspect the cooling sys"},{id:"3",label:"Log action taken",value:"Log action taken"}].map(e=>{let{value:t,label:o}=e;return(0,k.jsx)(Be.A,{value:t,size:"small",sx:{whiteSpace:"nowrap",px:1.5,py:.2,fontSize:"0.75rem",borderRadius:1},children:o},t)})})}),(0,k.jsxs)(l.A,{sx:{display:"flex",justifyContent:"space-between",mt:2,px:3},children:[(0,k.jsx)(g.A,{variant:"contained",color:"primary",size:"small",sx:{borderRadius:2,px:3,py:.5,textTransform:"none",fontSize:"0.8rem"},onClick:()=>(e=>{var t;null!==e&&void 0!==e&&e.task_details?null!==u&&void 0!==u&&null!==(t=u.permissions)&&void 0!==t&&t.includes("task_edit")?(C(e.task_details),v(q.nB.task)):h((0,w.rG)({message:"You don't have permission to access this task.",variant:"error"})):h((0,w.rG)({message:"Cooler incident details not found",variant:"error"})),null!==e&&void 0!==e&&e.seen_at||null===e||void 0===e||!e.id||h((0,Ze.MX)(e.id)),O()})(e),children:"Incident"}),(0,k.jsx)(g.A,{variant:"contained",color:"primary",size:"small",sx:{borderRadius:2,px:3,py:.5,textTransform:"none",fontSize:"0.8rem"},onClick:()=>(e=>{var t,o;null!==e&&void 0!==e&&e.entity?null!==u&&void 0!==u&&null!==(t=u.permissions)&&void 0!==t&&t.includes("cooler_show")?v(q.nB.coolers.view(null===e||void 0===e||null===(o=e.entity)||void 0===o?void 0:o.uuid)):h((0,w.rG)({message:"You don't have permission to access this task.",variant:"error"})):h((0,w.rG)({message:"cooler details not found",variant:"error"})),null!==e&&void 0!==e&&e.seen_at||null===e||void 0===e||!e.id||h((0,Ze.MX)(e.id)),O()})(e),children:"Cooler"})]}
14),(0,k.jsx)(p.A,{variant:"caption",sx:{display:"block",textAlign:"right",mt:1,color:"text.secondary"},children:(null===e||void 0===e?void 0:e.updated_at)&&Ye().utc(null===e||void 0===e?void 0:e.updated_at).local().format("HH:mm")||""}),(0,k.jsx)(m.A,{sx:{borderStyle:"dashed",my:1}})]},t);case"incident":return(0,k.jsxs)(l.A,{sx:{px:2},children:[(0,k.jsxs)(l.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1},children:[(0,k.jsxs)(l.A,{sx:{display:"flex",alignItems:"center"},children:[(0,k.jsx)(y.A,{sx:{bgcolor:"#FF3030",width:36,height:36},children:(0,k.jsx)(ee.A,{icon:"ic:baseline-campaign",color:"#FFF",width:24,height:24})}),(0,k.jsx)(p.A,{variant:"subtitle1",sx:{fontWeight:"bold",color:"#FF3030",ml:1},children:null===e||void 0===e?void 0:e.title})]}),!(null!==e&&void 0!==e&&e.seen_at)&&(0,k.jsx)(l.A,{sx:{animation:`${Ue} 1.2s infinite ease-in-out`,display:"inline-flex"},children:(0,k.jsx)(ee.A,{icon:"radix-icons:dot-filled",width:20,height:20,color:"#00AB55"})})]}),(0,k.jsx)(p.A,{variant:"body2",sx:{ml:6,mb:1,mt:-1},children:null===c||void 0===c?void 0:c.incident_title}),(0,k.jsxs)($.A,{spacing:.6,sx:{ml:3},children:[(0,k.jsxs)(l.A,{sx:{display:"flex",gap:1},children:[(0,k.jsx)(ee.A,{icon:"mdi:alert",color:"#FF3030",width:18}),(0,k.jsx)(p.A,{variant:"body2",sx:{fontWeight:"bold"},children:"Incident Type:"}),(0,k.jsx)(p.A,{variant:"body2",children:(null===c||void 0===c?void 0:c.incident_type)||"N/A"})]}),(0,k.jsxs)(l.A,{sx:{display:"flex",gap:1},children:[(0,k.jsx)(ee.A,{icon:"mdi:account-group",color:"#FF3030",width:18}),(0,k.jsx)(p.A,{variant:"body2",sx:{fontWeight:"bold"},children:"Involved:"}),(0,k.jsx)(p.A,{variant:"body2",children:(null===c||void 0===c?void 0:c.incident_work_process)||"Unknown"})]}),(0,k.jsxs)(l.A,{sx:{display:"flex",gap:1},children:[(0,k.jsx)(ee.A,{icon:"mdi:account",color:"#FF3030",width:18}),(0,k.jsx)(p.A,{variant:"body2",sx:{fontWeight:"bold"},children:"Reported By:"}),(0,k.jsx)(p.A,{variant:"body2",children:(null===c||void 0===c?void 0:c.incident_main_factor)||"N/A"})]}),(0,k.jsxs)(l.A,{sx:{display:"flex",gap:1},children:[(0,k.jsx)(ee.A,{icon:"mdi:clock-outline",color:"#FF3030",width:18}),(0,k.jsx)(p.A,{variant:"body2",sx:{fontWeight:"bold"},children:"Time Logged:"}),(0,k.jsx)(p.A,{variant:"body2",children:null===c||void 0===c?void 0:c.incident_date})]})]}),(0,k.jsx)(l.A,{sx:{display:"flex",justifyContent:"center",mt:2},children:(0,k.jsx)(g.A,{variant:"contained",color:"primary",size:"small",sx:{borderRadius:2,px:3,py:.5,textTransform:"none",fontSize:"0.8rem"},onClick:()=>(e=>{var t;null!==e&&void 0!==e&&e.entity?null!==u&&void 0!==u&&null!==(t=u.permissions)&&void 0!==t&&t.includes("incident_edit")?(A(e.entity),v(q.nB.incidents)):h((0,w.rG)({message:"You don't have permission to access this task.",variant:"error"})):h((0,w.rG)({message:"Incident details not found",variant:"error"})),null!==e&&void 0!==e&&e.seen_at||null===e||void 0===e||!e.id||h((0,Ze.MX)(e.id)),O()})(e),children:"View Incident"})}),(0,k.jsx)(p.A,{variant:"caption",sx:{display:"block",textAlign:"right",mt:1,color:"text.secondary"},children:(null===e||void 0===e?void 0:e.updated_at)&&Ye().utc(null===e||void 0===e?void 0:e.updated_at).local().format("HH:mm")||""}),(0,k.jsx)(m.A,{sx:{borderStyle:"dashed",my:1}})]},t);default:return null}})]},e.title))]}),(0,k.jsx)(l.A,{sx:{py:1.5,px:2,display:"flex",justifyContent:"center"},children:I<R&&(0,k.jsx)(p.A,{variant:"body2",color:"primary",sx:{cursor:"pointer",textDecoration:"underline"},onClick:()=>{I<R&&h((0,Ze.tR)(I+1))},children:"View more"})})]})]})]})}function Je(e){var t,o,i,n,r,l;let{onOpenNav:d}=e;const c=(0,N.A)(),u=(0,f.A)(),{themeLayout:h}=(0,s.Mp)(),x="horizontal"===h,m="mini"===h,g=(0,a.A)("up","lg"),v=(0,k.jsxs)(k.Fragment,{children:[g&&x&&(0,k.jsx)(Q,{sx:{mr:2.5}}),!g&&(0,k.jsx)(_.A,{onClick:d,sx:{mr:1,color:"white"},children:(0,k.jsx)(ee.A,{icon:"eva:menu-2-fill"})}),(0,k.jsx)(Ae,{}),g?(0,k.jsx)($.A,{flexGrow:3,direction:"row",alignItems:"center",justifyContent:"center",width:"100%",children:(0,k.jsxs)(p.A,{variant:"title",fontWeight:"bold",noWrap:!0,children:[null===u||void 0===u||null===(t=u.user)||void 0===t||null===(o=t.organisation)||void 0===o?void 0:o.organisation_name," - ",null===u||void 0===u||null===(i=u.user)||void 0===i||null===(n=i.kitchen)||void 0===n?void 0:n.kitchen_n
14ame]})}):(0,k.jsx)($.A,{flexGrow:3,direction:"row",alignItems:"center",justifyContent:"center",width:"100%",children:(0,k.jsx)(p.A,{variant:"title",fontWeight:"bold",noWrap:!0,children:null===u||void 0===u||null===(r=u.user)||void 0===r||null===(l=r.organisation)||void 0===l?void 0:l.organisation_name})}),(0,k.jsxs)($.A,{flexGrow:1,direction:"row",alignItems:"center",justifyContent:"flex-end",spacing:{xs:.5,sm:1.5},children:[(0,k.jsx)(Ve,{}),(0,k.jsx)(We,{})]})]});return(0,k.jsx)(B.A,{sx:{boxShadow:"none",height:M.H_MOBILE,zIndex:c.zIndex.appBar+1,...(0,X.Vz)({color:c.palette.primary.main}),...g&&{width:`calc(100% - ${I+1}px)`,height:M.H_DASHBOARD_DESKTOP_OFFSET,...x&&{width:1,bgcolor:"background.default",height:M.H_DASHBOARD_DESKTOP_OFFSET,borderBottom:e=>`dashed 1px ${e.palette.divider}`},...m&&{width:`calc(100% - ${R+1}px)`}}},children:(0,k.jsx)(H.A,{sx:{height:1,px:{lg:5}},children:v})})}var Qe=o(1018);function et(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{pathname:o}=(0,r.zy)(),i=!!e&&!!(0,Qe.B6)({path:e,end:!0},o),n=!!e&&!!(0,Qe.B6)({path:e,end:!1},o);return{active:t?n:i,isExternalLink:e.includes("http")}}var tt=o(84707),ot=o(14195);const it=(0,Z.Ay)(tt.A,{shouldForwardProp:e=>"active"!==e&&"open"!==e})(e=>{let{active:t,disabled:o,open:i,depth:n,theme:r}=e;const l="light"===r.palette.mode,a=1!==n,s={color:r.palette.primary.main,backgroundColor:(0,re.X4)(r.palette.primary.main,r.palette.action.selectedOpacity),...!l&&{color:r.palette.primary.light}},d={color:r.palette.text.primary,backgroundColor:"transparent"},c={color:r.palette.text.primary,backgroundColor:r.palette.action.hover};return{flexDirection:"column",textTransform:"capitalize",padding:r.spacing(1,0,.5,0),color:r.palette.text.secondary,borderRadius:r.shape.borderRadius,"&:hover":c,...a&&{flexDirection:"row",padding:r.spacing(1)},...t&&{...s,"&:hover":{...s}},...a&&t&&{...d,"&:hover":{...d}},...i&&!t&&c,...o&&{"&.Mui-disabled":{opacity:.64}}}}),nt=(0,Z.Ay)(ot.A)({marginRight:0,marginBottom:4,width:P,height:P}),rt=(0,Z.Ay)(Fe.Ay)(e=>{let{theme:t}=e;return{pointerEvents:"none","& .MuiPopover-paper":{width:160,pointerEvents:"auto",padding:t.spacing(1),marginTop:t.spacing(.5),boxShadow:t.customShadows.dropdown,borderRadius:1.5*Number(t.shape.borderRadius),...(0,X.Vz)({color:t.palette.background.default})}}});var lt=o(83563),at=o(83274),st=o(397);const dt=[{label:"English",value:"en",systemValue:st.cA,icon:"/assets/icons/flags/ic_flag_en.svg"},{label:"French",value:"fr",systemValue:st.nd,icon:"/assets/icons/flags/ic_flag_fr.svg"},{label:"Vietnamese",value:"vn",systemValue:st.wj,icon:"/assets/icons/flags/ic_flag_vn.svg"},{label:"Chinese",value:"cn",systemValue:st.go,icon:"/assets/icons/flags/ic_flag_cn.svg"},{label:"Arabic (Sudan)",value:"ar",systemValue:st.NO,icon:"/assets/icons/flags/ic_flag_sa.svg"}],ct=dt[0];var pt=o(67818);function ut(){const{i18n:e,t:t}=(0,pt.Bd)(),{onChangeDirectionByLang:o}=(0,s.Mp)(),i="undefined"!==typeof window?localStorage.getItem("i18nextLng"):"";return{onChangeLang:t=>{e.changeLanguage(t),o(t)},translate:(e,o)=>t(e,o),currentLang:dt.find(e=>e.value===i)||ct,allLangs:dt}}var ht=o(37088),xt=o(19808),mt=o(21401);function gt(e){let{hasContent:t,roles:o,children:i}=e;const{user:n}=(0,Ce.Z)(),r=null===n||void 0===n?void 0:n.role;return"undefined"===typeof o||o.includes(r)?(0,k.jsx)(k.Fragment,{children:i}):t?(0,k.jsxs)(xt.A,{component:xe.qH,sx:{textAlign:"center"},children:[(0,k.jsx)(ht.m.div,{variants:(0,xe.se)().in,children:(0,k.jsx)(p.A,{variant:"h3",paragraph:!0,children:"Permission Denied"})}),(0,k.jsx)(ht.m.div,{variants:(0,xe.se)().in,children:(0,k.jsx)(p.A,{sx:{color:"text.secondary"},children:"You do not have permission to access this page"})}),(0,k.jsx)(ht.m.div,{variants:(0,xe.se)().in,children:(0,k.jsx)(mt.I9,{sx:{height:260,my:{xs:5,sm:10}}})})]}):null}const vt=(0,i.forwardRef)((e,t)=>{let{item:o,depth:i,open:n,active:r,isExternalLink:l,...a}=e;const{translate:s}=ut(),{title:d,path:c,icon:p,children:u,disabled:h,caption:x,roles:m}=o,g=1!==i,v=(0,k.jsxs)(it,{ref:t,open:n,depth:i,active:r,disabled:h,...a,children:[p&&(0,k.jsx)(nt,{children:p}),(0,k.jsx)(lt.A,{primary:s(d),primaryTypographyProps:{noWrap:!0,sx:{width:72,fontSize:10,lineHeight:"16px",textAlign:"center",...r&&{fontWeight:"fontWeightMedium"},...g&&{fontSize:14,width:"auto",textAlign:"left"}}}}),x&&(0,k.jsx)(at.A,{title:s(x),arrow:!0,placement:"right",children:(0,k.jsx)(ee.A,{icon:"eva:info-outline",width:16,sx:{top:11,left:6,position:"absolute"}})}),!!u&&(0,k.jsx)(ee.A,{width:16,icon:"eva:chevron-right-fill",sx:{top:11,right:6,position:"absolute"}})]});return(0,k.jsxs)(gt,{roles:m,children:[" ",l?(0,k.jsx)(U.A,{href:c,target:"_blank",rel:"noopener",underline:"none",children:v}):(0,k.jsx)(U.A,{component:K.N_,to:c,underline:"none",children:v})," "]})});function ft(e){let{data:t,depth:o,hasChild:n}=e;const l=(0,i.useRef)(null),{pathname:a}=(0,r.zy)(),{active:s,isExternalLink:d}=et(t.path),[c,p]=(0,i.useState)(!1);(0,i.useEffect)(()=>{c&&h()},[a]),(0,i.useEffect)(()=>{document.body.style.overflow=""},[c]);const u=()=>{p(!0)},h=()=>{p(!1)};return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(vt,{ref:l,item:t,depth:o,open:c,active:s,isExternalLink:d,onMouseEnter:u,onMouseLeave:h}),n&&(0,k.jsx)(rt,{open:c,anchorEl:l.current,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:u,onMouseLeave:h},children:(0,k.jsx)(bt,{data:t.children,depth:o})})]})}function bt(e){let{data:t,depth:o}=e;return(0,k.jsx)(k.Fragment,{children:t.map(e=>(0,k.jsx)(ft,{data:e,depth:o+1,hasChild:!!e.children},e.title+e.path))})}function yt(e){let{data:t,sx:o,...i}=e;return(0,k.jsx)($.A,{spacing:.5,alignItems:"center",sx:{px:.75,...o},...i,children:t.map(e=>(0,k.jsx)(At,{items:e.items},e.subheader))})}const jt=(0,i.memo)(yt);function At(e){let{items:t}=e;return(0,k.jsxs)(k.Fragment,{children:[t.map(e=>(0,k.jsx)(ft,{data:e,depth:1,hasChild:!!e.children},e.title+e.path)),(0,k.jsx)(l.A,{sx:{width:24,height:"1px",bgcolor:"divider",my:"8px !important"}})]})}var wt=o(249),kt=o(34479);(0,Z.Ay)(tt.A,{shouldForwardProp:e=>"active"!==e&&"caption"!==e})(e=>{let{active:t,disabled:o,depth:i,caption:n,theme:r}=e;const l="light"===r.palette.mode,a=1!==i,s={color:r.palette.primary.main,backgroundColor:(0,re.X4)(r.palette.primary.main,r.palette.action.selectedOpacity),...!l&&{color:r.palette.primary.light}},d={color:r.palette.text.primary,backgroundColor:"transparent"};return{position:"relative",textTransform:"capitalize",paddingLeft:r.spacing(2),paddingRight:r.spacing(1.5),marginBottom:r.spacing(.5),color:r.palette.text.secondary,borderRadius:r.shape.borderRadius,height:L,...a&&{height:O,...i>2&&{paddingLeft:r.spacing(i)},...n&&{height:L}},...t&&{...s,"&:hover":{...s}},...a&&t&&{...d,"&:hover":{...d}},...o&&{"&.Mui-disabled":{opacity:.64}}}}),(0,Z.Ay)(ot.A)({display:"flex",alignItems:"center",justifyContent:"center",width:T,height:T}),(0,Z.Ay)("span",{shouldForwardProp:e=>"active"!==e})(e=>{let{active:t,theme:o}=e;return{width:4,height:4,borderRadius:"50%",backgroundColor:o.palette.text.disabled,transition:o.transitions.create("transform",{duration:o.transitions.duration.shorter}),...t&&{transform:"scale(2)",backgroundColor:o.palette.primary.main}}});const Ct=(0,Z.Ay)(kt.A)(e=>{let{theme:t}=e;return{...t.typography.overline,fontSize:11,paddingTop:t.spacing(3),paddingBottom:t.spacing(1),color:t.palette.text.secondary}});var _t=o(35834),St=o(3199);function zt(e){let{data:t,depth:o=1,hasChild:n=!1,onCloseNav:a}=e;const{pathname:s}=(0,r.zy)(),[d,c]=(0,i.useState)(s.includes(t.path)),p=s===t.path||s.startsWith(`${t.path}/`),u=(0,k.jsxs)(tt.A,{component:n?"div":K.k2,to:n?void 0:t.path,onClick:()=>{n?c(e=>!e):a&&a()},selected:p,sx:{mt:.5,pl:2*o,py:1,borderRadius:1,color:p?"primary.main":"#637381",bgcolor:p?"#e0f2f1":"transparent","&.Mui-selected":{bgcolor:"primary.light",color:"primary.main"},"&:hover":{bgcolor:"#F0f0F0"}},children:[t.icon&&(0,k.jsx)(ot.A,{sx:{minWidth:24},children:(0,k.jsx)(l.A,{sx:{fontSize:16,color:p?"primary.main":"#637381",pt:.5},children:t.icon})}),(0,k.jsx)(lt.A,{primary:t.title,primaryTypographyProps:{fontSize:o>1?13:14,fontWeight:p?600:500,marginLeft:-.8}}),n&&(d?(0,k.jsx)(_t.A,{}):(0,k.jsx)(St.A,{}))]});return(0,k.jsxs)(k.Fragment,{children:[u,n&&(0,k.jsx)(Me.A,{in:d,timeout:"auto",unmountOnExit:!0,children:(0,k.jsx)(wt.A,{component:"div",disablePadding:!0,children:t.children.map(e=>(0,k.jsx)(zt,{data:e,depth:o+1,hasChild:!!e.children,onCloseNav:a},e.title+e.path))})})]})}function qt(e){let{data:t,sx:o,onCloseNav:i,...n}=e;return(0,k.jsx)($.A,{sx:o,...n,children:t.map(e=>{const t=e.subheader||e.items[0].title;return(0,k.jsxs)(wt.A,{disablePadding:!0,sx:{px:2},children:[e.subheader&&(0,k.jsx)(Ct,{disableSticky:!0,children:e.subheader}),e.items.map(e=>(0,k.jsx)(zt,{data:e,depth:1,hasChild:!!e.children,onCloseNav:i},e.title+e.path))]},t)})})}const Mt=(0,Z.Ay)(tt.A,{shouldForwardProp:e=>"active"!==e&&"open"!==e})(e=>{let{active:t,disabled:o,open:i,depth:n,theme:r}=e;const l="light"===r.palette.mode,a=1!==n,s={color:r.palette.primary.main,backgroundColor:(0,re.X4)(r.palette.primary.main,r.palette.action.selectedOpacity),...!l&&{color:r.palette.primary.light}},d={color:r.palette.text.primary,backgroundColor:"transparent"},c={color:r.palette.text.primary,backgroundColor:r.palette.action.hover};return{flexShrink:0,display:"inline-flex",textTransform:"capitalize",padding:r.spacing(0,.75),color:r.palette.text.secondary,borderRadius:r.shape.borderRadius,height:F,"&:hover":c,...a&&{width:"100%",margin:0,paddingRight:0,paddingLeft:r.spacing(1)},...t&&{...s,"&:hover":{...s}},...a&&t&&{...d,"&:hover":{...d}},...i&&!t&&c,...o&&{"&.Mui-disabled":{opacity:.64}}}}),It=(0,Z.Ay)(ot.A)({marginRight:8,flexShrink:0,width:E,height:E}),Rt=(0,Z.Ay)(Fe.Ay)(e=>{let{theme:t}=e;return{pointerEvents:"none","& .MuiPopover-paper":{width:160,pointerEvents:"auto",padding:t.spacing(1),marginTop:t.spacing(.5),boxShadow:t.customShadows.dropdown,borderRadius:1.5*Number(t.shape.borderRadius),...(0,X.Vz)({color:t.palette.background.default})}}}),Lt=(0,i.forwardRef)((e,t)=>{let{item:o,depth:i,open:n,active:r,isExternalLink:a,...s}=e;const{translate:d}=ut(),{title:c,path:p,icon:u,info:h,children:x,disabled:m,caption:g,roles:v}=o,f=1!==i,b=(0,k.jsxs)(Mt,{ref:t,open:n,depth:i,active:r,disabled:m,...s,children:[u&&(0,k.jsx)(It,{children:u}),(0,k.jsx)(lt.A,{primary:d(c),primaryTypographyProps:{noWrap:!0,component:"span",variant:r?"subtitle2":"body2"}}),h&&(0,k.jsx)(l.A,{component:"span",sx:{ml:1,lineHeight:0},children:h}),g&&(0,k.jsx)(at.A,{title:d(g),arrow:!0,children:(0,k.jsx)(l.A,{component:"span",sx:{ml:.5,lineHeight:0},children:(0,k.jsx)(ee.A,{icon:"eva:info-outline",width:16})})}),!!x&&(0,k.jsx)(ee.A,{icon:f?"eva:chevron-right-fill":"eva:chevron-down-fill",width:16,sx:{ml:.5,flexShrink:0}})]});return(0,k.jsxs)(gt,{roles:v,children:[" ",a?(0,k.jsx)(U.A,{href:p,target:"_blank",rel:"noopener",underline:"none",children:b}):(0,k.jsx)(U.A,{to:p,component:K.N_,underline:"none",children:b})," "]})});function Ot(e){let{data:t,depth:o,hasChild:n}=e;const l=(0,i.useRef)(null),{pathname:a}=(0,r.zy)(),{active:s,isExternalLink:d}=et(t.path),[c,p]=(0,i.useState)(!1);(0,i.useEffect)(()=>{c&&h()},[a]),(0,i.useEffect)(()=>{document.body.style.overflow=""},[c]);const u=()=>{p(!0)},h=()=>{p(!1)};return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(Lt,{ref:l,item:t,depth:o,open:c,active:s,isExternalLink:d,onMouseEnter:u,onMouseLeave:h}),n&&(0,k.jsx)(Rt,{open:c,anchorEl:l.current,anchorOrigin:1===o?{vertical:"bottom",horizontal:"left"}:{vertical:"center",horizontal:"right"},transformOrigin:1===o?{vertical:"top",horizontal:"left"}:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:u,onMouseLeave:h},children:(0,k.jsx)(Ft,{data:t.children,depth:o})})]})}function Ft(e){let{data:t,depth:o}=e;return(0,k.jsx)(k.Fragment,{children:t.map(e=>(0,k.jsx)(Ot,{data:e,depth:o+1,hasChild:!!e.children},e.title+e.path))})}function Tt(e){let{data:t,sx:o,...i}=e;return(0,k.jsx)($.A,{direction:"row",spacing:1,sx:{mx:"auto",...X._o,...o},...i,children:t.map(e=>(0,k.jsx)(Pt,{items:e.items},e.subheader))})}const Et=(0,i.memo)(Tt);function Pt(e){let{items:t}=e;return(0,k.jsx)(k.Fragment,{children:t.map(e=>(0,k.jsx)(Ot,{data:e,depth:1,hasChild:!!e.children},e.title+e.path))})}function Dt(){return(0,k.jsx)(l.A,{component:"nav",sx:{flexShrink:{lg:0},width:{lg:R}},children:(0,k.jsxs)($.A,{sx:{pb:2,height:1,position:"fixed",width:R,borderRight:e=>`dashed 1px ${e.palette.divider}`,...X.TM},children:[(0,k.jsx)(Q,{sx:{mx:"auto",my:2}}),(0,k.jsx)(jt,{data:fe})]})})}var Wt=o(39654),Nt=o(71525);const $t=(0,Z.Ay)("div")(e=>{let{theme:t}=e;return{display:"flex",alignItems:"center",padding:t.spacing(2,2.5),marginTop:"3.5rem",borderRadius:1.5*Number(t.shape.borderRadius),backgroundColor:(0,re.X4)(t.palette.grey[500],.12)}});function Bt(){const{user:e}=(0,Ce.Z)();return(0,k.jsx)(U.A,{to:q.nB.profile,component:K.N_,underline:"none",color:"inherit",children:(0,k.jsxs)($t,{children:[(0,k.jsx)(ze,{src:e&&e.user_image&&e.user_image.url?`${e.user_image.url}`:"/assets/user.png",alt:e?e.name:"",name:e?e.name:""}),(0,k.jsxs)(l.A,{sx:{ml:2,minWidth:0},children:[(0,k.jsx)(p.A,{variant:"subtitle2",noWrap:!0,children:e?e.name:""}),(0,k.jsx)(p.A,{variant:"body2",noWrap:!0,sx:{color:"text.secondary"},children:e?e.roles[0].title:""})]})]})})}const Ht=(0,Wt.A)("div")(()=>({position:"fixed",zIndex:1}));function Xt(e){var t,o,n,s,d,c,p,u,h,x,m,g;let{openNav:v,onCloseNav:b}=e;const{pathname:y}=(0,r.zy)(),A=(0,f.A)(),w=(0,N.A)(),C=(0,a.A)("up","lg"),_=["outlet_access","kitchen_access","user_access"],S=[...fe[0].items.map(e=>{var t,o;return!(null===A||void 0===A||null===(t=A.user)||void 0===t||null===(o=t.permissions)||void 0===o||!o.includes(e.name))&&e})].filter(e=>!!e),z=!(null===A||void 0===A||null===(t=A.user)||void 0===t||null===(o=t.organisation)||void 0===o||!o.manual_billing),q=1===(null===A||void 0===A||null===(n=A.user)||void 0===n||null===(s=n.roles[0])||void 0===s?void 0:s.id)||z||(null===A||void 0===A||null===(d=A.user)||void 0===d?void 0:d.subscription_status)&&1!==(null===A||void 0===A||null===(c=A.user)||void 0===c||null===(p=c.customer_gateway)||void 0===p||null===(u=p.subscription_plan)||void 0===u?void 0:u.meta_plan_id)||(null===A||void 0===A||null===(h=A.user)||void 0===h?void 0:h.subscription_status)&&4!==(null===A||void 0===A||null===(x=A.user)||void 0===x||null===(m=x.customer_gateway)||void 0===m||null===(g=m.subscription_plan)||void 0===g?void 0:g.meta_plan_id),M=S.filter(e=>!!q||!_.includes(e.name));(0,i.useEffect)(()=>{v&&b()},[y]);const R=(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(Ht,{children:(0,k.jsx)($.A,{spacing:1.1,sx:{pt:1,pb:1.8,px:2.5,flexShrink:0,...(0,X.Vz)({color:w.palette.primary.main})},children:(0,k.jsx)(Q,{})})}),(0,k.jsx)($.A,{spacing:1.1,sx:{pt:1.6,pb:1.9,px:2.1,flexShrink:0},children:(0,k.jsx)(Bt,{})}),(0,k.jsxs)(j.A,{sx:{height:1,"& .simplebar-content":{height:1,display:"flex",flexDirection:"column"}},children:[(0,k.jsx)(qt,{data:[{...fe[0],items:M}],onCloseNav:C?null:b}),(0,k.jsx)(l.A,{sx:{flexGrow:1}})]})]});return(0,k.jsx)(l.A,{component:"nav",sx:{flexShrink:{lg:0},width:{lg:I}},children:C?(0,k.jsx)(Nt.Ay,{open:!0,variant:"permanent",PaperProps:{sx:{width:I,bgcolor:"transparent",borderRightStyle:"dashed"}},children:R}):(0,k.jsx)(Nt.Ay,{open:v,onClose:b,ModalProps:{keepMounted:!0},PaperProps:{sx:{width:I}},children:R})})}function Yt(){const e=(0,N.A)();return(0,k.jsxs)(B.A,{component:"nav",color:"transparent",sx:{boxShadow:0,top:M.H_DASHBOARD_DESKTOP_OFFSET},children:[(0,k.jsx)(H.A,{sx:{...(0,X.Vz)({color:e.palette.background.default})},children:(0,k.jsx)(Et,{data:fe})}),(0,k.jsx)(Kt,{})]})}const Gt=(0,i.memo)(Yt);function Kt(e){let{sx:t,...o}=e;return(0,k.jsx)(l.A,{sx:{left:0,right:0,bottom:0,height:24,zIndex:-1,width:1,m:"auto",borderRadius:"50%",position:"absolute",boxShadow:e=>e.customShadows.z8,...t},...o})}function Zt(){const{themeLayout:e}=(0,s.Mp)(),t=(0,a.A)("up","lg"),[o,n]=(0,i.useState)(!1),d="horizontal"===e,c="mini"===e,p=()=>{n(!0)},u="undefined"!==typeof window&&!!window.ReactNativeWebView,h=(0,k.jsx)(Xt,{openNav:o,onCloseNav:()=>{n(!1)}});return d?(0,k.jsxs)(k.Fragment,{children:[!u&&(0,k.jsx)(Je,{onOpenNav:p}),t?(0,k.jsx)(Gt,{}):h,(0,k.jsx)(W,{children:(0,k.jsx)(r.sv,{})})]}):c?(0,k.jsxs)(k.Fr
14agment,{children:[!u&&(0,k.jsx)(Je,{onOpenNav:p}),(0,k.jsxs)(l.A,{sx:{display:{lg:"flex"},minHeight:{lg:1}},children:[t?(0,k.jsx)(Dt,{}):h,(0,k.jsx)(W,{children:(0,k.jsx)(r.sv,{})})]})]}):(0,k.jsxs)(k.Fragment,{children:[!u&&(0,k.jsx)(Je,{onOpenNav:p}),(0,k.jsxs)(l.A,{sx:{display:{lg:"flex"},minHeight:{lg:1}},children:[h,(0,k.jsx)(W,{children:(0,k.jsx)(r.sv,{})})]})]})}const Ut=(0,Z.Ay)("header")(e=>{let{theme:t}=e;return{top:0,left:0,lineHeight:0,width:"100%",position:"absolute",padding:t.spacing(3,3,0),[t.breakpoints.up("sm")]:{padding:t.spacing(5,5,0)}}});function Vt(){return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(Ut,{children:(0,k.jsx)(Q,{})}),(0,k.jsx)(r.sv,{})]})}var Jt=o(7817),Qt=o.n(Jt);function eo(){const e=(0,N.A)();return(0,k.jsx)(Ie.A,{styles:{"#nprogress":{pointerEvents:"none","& .bar":{top:0,left:0,height:2,width:"100%",position:"fixed",zIndex:e.zIndex.snackbar,backgroundColor:e.palette.primary.main,boxShadow:`0 0 2px ${e.palette.primary.main}`},"& .peg":{right:0,opacity:1,width:100,height:"100%",display:"block",position:"absolute",transform:"rotate(3deg) translate(0px, -4px)",boxShadow:`0 0 10px ${e.palette.primary.main}, 0 0 5px ${e.palette.primary.main}`}}}})}function to(){return Qt().configure({showSpinner:!1}),(0,i.useMemo)(()=>{Qt().start()},[]),(0,i.useEffect)(()=>{Qt().done()},[]),null}const oo=(0,Z.Ay)("div")(e=>{let{theme:t}=e;return{right:0,bottom:0,zIndex:99999,width:"100%",height:"100%",position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:t.palette.background.default}});function io(e){let{isDashboard:t,...o}=e;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(to,{}),!t&&(0,k.jsxs)(oo,{...o,children:[(0,k.jsx)(ht.m.div,{animate:{scale:[1,.9,.9,1,1],opacity:[1,.48,.48,1,1]},transition:{duration:2,ease:"easeInOut",repeatDelay:1,repeat:1/0},children:(0,k.jsx)(Q,{disabledLink:!0,sx:{width:64,height:64}})}),(0,k.jsx)(l.A,{component:ht.m.div,animate:{scale:[1.2,1,1,1.2,1.2],rotate:[270,0,0,270,270],opacity:[.25,1,1,1,.25],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{width:100,height:100,borderRadius:"25%",position:"absolute",border:e=>`solid 3px ${(0,re.X4)(e.palette.primary.dark,.24)}`}}),(0,k.jsx)(l.A,{component:ht.m.div,animate:{scale:[1,1.2,1.2,1,1],rotate:[0,270,270,0,0],opacity:[1,.25,.25,.25,1],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{width:120,height:120,borderRadius:"25%",position:"absolute",border:e=>`solid 8px ${(0,re.X4)(e.palette.primary.dark,.24)}`}})]})]})}function no(){const e=(0,N.A)();return(0,k.jsx)(Ie.A,{styles:{"#nprogress":{pointerEvents:"none",".bar":{top:0,left:0,height:2,zIndex:9999,width:"100%",position:"fixed",backgroundColor:e.palette.primary.main,boxShadow:`0 0 2px ${e.palette.primary.main}`},".peg":{right:0,opacity:1,width:100,height:"100%",display:"block",position:"absolute",transform:"rotate(3deg) translate(0px, -4px)",boxShadow:`0 0 10px ${e.palette.primary.main}, 0 0 5px ${e.palette.primary.main}`}}}})}function ro(){return Qt().configure({showSpinner:!1}),(0,i.useMemo)(()=>{Qt().start()},[]),(0,i.useEffect)(()=>{Qt().done()},[]),(0,k.jsx)(no,{})}const lo=(0,Z.Ay)("div")(e=>{let{theme:t}=e;return{right:0,bottom:0,zIndex:9998,width:"100%",height:"100%",position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:t.palette.background.default}}),ao=(0,Z.Ay)("div")(e=>{let{theme:t}=e;return{display:"flex",justifyContent:"space-between",alignItems:"center",borderRadius:.5*Number(t.shape.borderRadius)}});function so(){return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(ro,{}),(0,k.jsxs)(lo,{children:[(0,k.jsx)(ht.m.div,{animate:{scale:[1,.9,.9,1,1],opacity:[1,.48,.48,1,1]},transition:{duration:2,ease:"easeInOut",repeatDelay:1,repeat:1/0},children:(0,k.jsx)(ao,{children:(0,k.jsx)(V.A,{disabledEffect:!0,visibleByDefault:!0,alt:"auth",src:"/assets/FSS.jpg",sx:{width:100,ml:2}})})}),(0,k.jsx)(l.A,{component:ht.m.div,animate:{scale:[1.6,1,1,1.6,1.6],rotate:[270,0,0,270,270],opacity:[.25,1,1,1,.25],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{width:100,height:100,position:"absolute",border:e=>`solid 3px ${(0,re.X4)(e.palette.primary.dark,.24)}`}}),(0,k.jsx)(l.A,{component:ht.m.div,animate:{scale:[1,1.2,1.2,1,1],rotate:[0,270,270,0,0],opacity:[1,.25,.25,.25,1],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{width:120,height:120,position:"absolute",border:e=>`solid 8px ${(0,re.X4)(e.palette.primary.dark,.24)}`}})]})]})}var co=o(26520);const po={"/dashboard":"dashboard_access","/users":"user_access","/outlets":"outlet_access","/organisations":"organisation_access","/sensors":"sensor_admin_access","/kitchens":"kitchen_access","/coolers":"cooler_access","/cookcoolreheats":"cookcoolreheat_access","/dishes":"dish_access","/hotholdcolds":"hotholdcold_access","/deliveries":"delivery_access","/suppliers":"supplier_access","/checklists":"checklist_access","/tasks":"task_create","/legacytasks":"task_access","/batches":"batch_access","/notifications":"notification_access","/assets_equipment":"asset_access","/staff":"employee_access","/incidents":"incident_access","/reset-password":"profile_password_edit","/profile":"profile_show","/trainings":"training_access","/checklist-responses":"checklist_response_access","/checklist-schedules":"checklist_schedule_access","/subscription":"subscription_access","/phmonitor":"dashboard_access","/taskoverview":"task_access","/reports":"report_access"};function uo(e){var t,o,n,l,a,s;let{children:d}=e;const{isAuthenticated:c,isInitialized:p,user:u}=(0,Ce.Z)(),{pathname:h}=(0,r.zy)(),x=(0,r.Zp)(),{uuid:m}=(0,r.g)(),[g,v]=(0,i.useState)(null),f=["/outlets","/kitchens","/users"],b=!(null===u||void 0===u||null===(t=u.organisation)||void 0===t||!t.manual_billing),y=1===(null===u||void 0===u||null===(o=u.roles[0])||void 0===o?void 0:o.id)||b||(null===u||void 0===u?void 0:u.subscription_status)&&1!==(null===u||void 0===u||null===(n=u.customer_gateway)||void 0===n||null===(l=n.subscription_plan)||void 0===l?void 0:l.meta_plan_id)||(null===u||void 0===u?void 0:u.subscription_status)&&4!==(null===u||void 0===u||null===(a=u.customer_gateway)||void 0===a||null===(s=a.subscription_plan)||void 0===s?void 0:s.meta_plan_id);return(0,i.useEffect)(()=>{var e,t,o,i,n,r,l,a,s;
14(g&&h!==g&&x(g),c)&&(v(null),(null!==u&&void 0!==u&&null!==(e=u.permissions)&&void 0!==e&&e.includes(po[h])||"/"===h||h===`/coolers/${m}`||h===`/deliveries/${m}/items`||h===`/batches/${m}/items`||"/reports/inspection"===h||"/reports/custom"===h||"/reports/general"===h||h.includes("/checklist")||h===`/checklist-responses/${m}`||"/mobile-auth"===h)&&(1!==(null===u||void 0===u||null===(t=u.roles[0])||void 0===t?void 0:t.id)&&3!==(null===u||void 0===u||null===(o=u.roles[0])||void 0===o?void 0:o.id)&&4!==(null===u||void 0===u||null===(i=u.roles[0])||void 0===i?void 0:i.id)&&5!==(null===u||void 0===u||null===(n=u.roles[0])||void 0===n?void 0:n.id)||"/subscription"!==h)&&(2!==(null===u||void 0===u||null===(r=u.roles[0])||void 0===r?void 0:r.id)&&3!==(null===u||void 0===u||null===(l=u.roles[0])||void 0===l?void 0:l.id)&&4!==(null===u||void 0===u||null===(a=u.roles[0])||void 0===a?void 0:a.id)&&5!==(null===u||void 0===u||null===(s=u.roles[0])||void 0===s?void 0:s.id)||"/organisations"!==h&&"/sensors"!==h)?b&&"/subscription"===h?x("/404"):y?x("/"===h?"/dashboard":h):f.includes(h)?x("/404"):x("/"===h?"/dashboard":h):x("/404"))},[c,h,x,g,null===u||void 0===u?void 0:u.permissions]),p?c?(0,k.jsx)(k.Fragment,{children:d}):(h!==g&&v(h),(0,k.jsx)(co.default,{})):(0,k.jsx)(so,{})}function ho(e){let{children:t}=e;const o=(0,r.Zp)(),{isAuthenticated:n,isInitialized:l}=(0,Ce.Z)();return(0,i.useEffect)(()=>{n&&o(q.nB.dashboard)},[n]),l===n?(0,k.jsx)(so,{}):(0,k.jsxs)(k.Fragment,{children:[" ",t," "]})}const xo=e=>t=>{const{pathname:o}=(0,r.zy)();return(0,k.jsx)(i.Suspense,{fallback:(0,k.jsx)(io,{isDashboard:o.includes("/")}),children:(0,k.jsx)(e,{...t})})};function mo(){return(0,r.Ye)([{path:"/",element:(0,k.jsx)(uo,{children:(0,k.jsx)(Zt,{})}),children:[{element:(0,k.jsx)(r.C5,{to:q.nB.dashboard,replace:!0}),index:!0},{path:"dashboard",element:(0,k.jsx)(Ao,{})},{path:"organisations",element:(0,k.jsx)(ti,{})},{path:"sensors",element:(0,k.jsx)(oi,{})},{path:"outlets",element:(0,k.jsx)(wo,{})},{path:"kitchens",element:(0,k.jsx)(ko,{})},{path:"users",element:(0,k.jsx)(Xo,{})},{path:"coolers",children:[{path:"",element:(0,k.jsx)(Co,{})},{path:":uuid",element:(0,k.jsx)(_o,{})}]},{path:"cookcoolreheats",element:(0,k.jsx)(So,{})},{path:"dishes",element:(0,k.jsx)(zo,{})},{path:"hotholdcolds",element:(0,k.jsx)(qo,{})},{path:"suppliers",element:(0,k.jsx)(Ro,{})},{path:"deliveries",children:[{path:"",element:(0,k.jsx)(Mo,{})},{path:":uuid/items",element:(0,k.jsx)(Io,{})}]},{path:"checklists",element:(0,k.jsx)(Lo,{})},{path:"checklist/:uuid/items",element:(0,k.jsx)(Oo,{})},{path:"checklist-schedules",element:(0,k.jsx)(Fo,{})},{path:"legacytasks",element:(0,k.jsx)(To,{})},{path:"batches",children:[{path:"",element:(0,k.jsx)(Eo,{})},{path:":uuid/items",element:(0,k.jsx)(Po,{})}]},{path:"notifications",element:(0,k.jsx)(Do,{})},{path:"assets_equipment",element:(0,k.jsx)(Wo,{})},{path:"profile",element:(0,k.jsx)(Bo,{})},{path:"staff",element:(0,k.jsx)(No,{})},{path:"subscription",element:(0,k.jsx)(Uo,{})},{path:"trainings",element:(0,k.jsx)($o,{})},{path:"incidents",element:(0,k.jsx)(Ho,{})},{path:"reset-password",element:(0,k.jsx)(Yo,{})},{path:"checklist-responses",children:[{path:"",element:(0,k.jsx)(Go,{})},{path:":uuid",element:(0,k.jsx)(Ko,{})},{path:"items/:uuid",element:(0,k.jsx)(Zo,{})}]},{path:"phmonitor",element:(0,k.jsx)(ii,{})},{path:"tasks",element:(0,k.jsx)(ni,{})},{path:"taskoverview",element:(0,k.jsx)(ri,{})},{path:"reports",children:[{path:"",element:(0,k.jsx)(Vo,{})},{path:":uuid",element:(0,k.jsx)(Jo,{})},{path:"custom",element:(0,k.jsx)(Qo,{})},{path:"general",element:(0,k.jsx)(ei,{})}]},{path:"mobile-auth",element:(0,k.jsx)(li,{})}]},{path:"login",element:(0,k.jsx)(ho,{children:(0,k.jsx)(go,{})})},{path:"new-password",element:(0,k.jsx)(ho,{children:(0,k.jsx)(vo,{})})},{path:"register",element:(0,k.jsx)(ho,{children:(0,k.jsx)(fo,{})})},{path:"forgot-password",element:(0,k.jsx)(ho,{children:(0,k.jsx)(bo,{})})},{path:"verify-otp",element:(0,k.jsx)(ho,{children:(0,k.jsx)(yo,{})})},{path:"*",element:(0,k.jsx)(Vt,{}),children:[{path:"404",element:(0,k.jsx)(jo,{})},{path:"*",element:(0,k.jsx)(r.C5,{to:"/404",replace:!0})}]},{path:"*",element:(0,k.jsx)(r.C5,{to:"/404",replace:!0})}])}const go=xo((0,i.lazy)(()=>Promise.resolve().then(o.bind(o,26520)))),vo=xo((0,i.lazy)(()=>Promise.all([o.e(6697),o.e(9197)]).then(o.bind(o,49197)))),fo=xo((0,i.lazy)(()=>Promise.all([o.e(1188),o.e(7634)]).then(o.bind(o,43207)))),bo=xo((0,i.lazy)(()=>Promise.all([o.e(2277),o.e(7276)]).then(o.bind(o,87276)))),yo=xo((0,i.lazy)(()=>Promise.all([o.e(2277),o.e(5766)]).then(o.bind(o,35766)))),jo=xo((0,i.lazy)(()=>Promise.all([o.e(6697),o.e(4183)]).then(o.bind(o,94183)))),Ao=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(4619),o.e(9912),o.e(8287),o.e(278),o.e(4763),o.e(9973)]).then(o.bind(o,89973)))),wo=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(7401),o.e(9777),o.e(3268),o.e(6455)]).then(o.bind(o,36455)))),ko=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(4757)]).then(o.bind(o,74757)))),
14Co=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(7401),o.e(9777),o.e(4619),o.e(9912),o.e(8287),o.e(191),o.e(8046)]).then(o.bind(o,8046)))),_o=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(7401),o.e(9777),o.e(4619),o.e(8287),o.e(191),o.e(6122)]).then(o.bind(o,56122)))),So=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(7401),o.e(9777),o.e(8341),o.e(548),o.e(8176),o.e(6985)]).then(o.bind(o,76985)))),zo=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(7401),o.e(9777),o.e(8535)]).then(o.bind(o,88535)))),qo=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(7401),o.e(9777),o.e(8341),o.e(548),o.e(8176),o.e(6173)]).then(o.bind(o,6173)))),Mo=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(7401),o.e(9777),o.e(8176),o.e(165)]).then(o.bind(o,10165)))),Io=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(7401),o.e(9777),o.e(8341),o.e(548),o.e(3850)]).then(o.bind(o,13850)))),Ro=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(7401),o.e(9777),o.e(6430)]).then(o.bind(o,86430)))),Lo=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(7401),o.e(9777),o.e(739)]).then(o.bind(o,80739)))),Oo=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(9174)]).then(o.bind(o,29174)))),Fo=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(8341),o.e(1074),o.e(3590)]).then(o.bind(o,78223)))),To=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(7401),o.e(9777),o.e(6690)]).then(o.bind(o,26690)))),Eo=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(7401),o.e(9777),o.e(8176),o.e(3131)]).then(o.bind(o,3131)))),Po=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(7401),o.e(9777),o.e(1588)]).then(o.bind(o,61588)))),Do=xo((0,i.lazy)(()=>o.e(8134).then(o.t.bind(o,58134,23)))),Wo=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(7401),o.e(9777),o.e(8341),o.e(548),o.e(580)]).then(o.bind(o,50580)))),No=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(7401),o.e(9777),o.e(8341),o.e(548),o.e(2106)]).then(o.bind(o,52106)))),$o=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(7401),o.e(9777),o.e(8341),o.e(548),o.e(1409)]).then(o.bind(o,91409)))),Bo=xo((0,i.lazy)(()=>Promise.all([o.e(7173),o.e(3940)]).then(o.bind(o,23940)))),Ho=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(7401),o.e(9777),o.e(8341),o.e(548),o.e(8176),o.e(1760)]).then(o.bind(o,41760)))),Xo=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(9264)]).then(o.bind(o,29264)))),Yo=xo((0,i.lazy)(()=>o.e(1022).then(o.bind(o,61022)))),Go=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(7401),o.e(9777),o.e(9821)]).then(o.bind(o,59821)))),Ko=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(9920)]).then(o.bind(o,49920)))),Zo=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(1525)]).then(o.bind(o,1525)))),Uo=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(9670),o.e(9138)]).then(o.bind(o,96758)))),Vo=xo((0,i.lazy)(()=>o.e(4930).then(o.bind(o,54930)))),Jo=xo((0,i.lazy)(()=>Promise.all([o.e(7401),o.e(9777),o.e(6808)]).then(o.bind(o,96808)))),Qo=xo((0,i.lazy)(()=>Promise.all([o.e(7401),o.e(9777),o.e(8193),o.e(3981),o.e(3311)]).then(o.bind(o,3311)))),ei=xo((0,i.lazy)(()=>Promise.all([o.e(8193),o.e(278),o.e(7824),o.e(3981),o.e(3346)]).then(o.bind(o,93346)))),ti=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(8198)]).then(o.bind(o,68198)))),oi=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(6093)]).then(o.bind(o,66093)))),ii=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(1928)]).then(o.bind(o,51928)))),ni=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(7401),o.e(9912),o.e(166),o.e(3829)]).then(o.bind(o,43829)))),ri=xo((0,i.lazy)(()=>Promise.all([o.e(1347),o.e(6258),o.e(4619),o.e(9912),o.e(4763),o.e(5677)]).then(o.bind(o,45677)))),li=xo((0,i.lazy)(()=>o.e(20).then(o.bind(o,50020))));var ai=o(74489),si=o(17753),di=o(50600),ci=o(61032),pi=o(56176);function ui(e){return e/16+"rem"}function hi(e){let{sm:t,md:o,lg:i}=e;return{"@media (min-width:600px)":{fontSize:ui(t)},"@media (min-width:900px)":{fontSize:ui(o)},"@media (min-width:1200px)":{fontSize:ui(i)}}}const xi={fontFamily:"Public Sans, sans-serif",fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,h1:{fontWeight:800,lineHeight:1.25,fontSize:ui(40),...hi({sm:52,md:58,lg:64})},h2:{fontWeight:800,lineHeight:64/48,fontSize:ui(32),...hi({sm:40,md:44,lg:48})},h3:{fontWeight:700,lineHeight:1.5,fontSize:ui(24),...hi({sm:26,md:30,lg:32})},h4:{fontWeight:700,lineHeight:1.5,fontSize:ui(20),...hi({sm:20,md:24,lg:24})},h5:{fontWeight:700,lineHeight:1.5,fontSize:ui(18),...hi({sm:19,md:20,lg:20})},h6:{fontWeight:700,lineHeight:28/18,fontSize:ui(17),...hi({sm:18,md:18,lg:18})},subtitle1:{fontWeight:600,lineHeight:1.5,fontSize:ui(16)},subtitle2:{fontWeight:600,lineHeight:22/14,fontSize:ui(14)},body1:{lineHeight:1.5,fontSize:ui(16)},body2:{lineHeight:22/14,fontSize:ui(14)},caption:{lineHeight:1.5,fontSize:ui(12)},overline:{fontWeight:700,lineHeight:1.5,fontSize:ui(12),textTransform:"uppercase"},button:{fontWeight:700,lineHeight:24/14,fontSize:ui(14),textTransform:"capitalize"}},mi=(0,pi.A)("light"),gi=mi.grey[500],vi=mi.common.black;function fi(e){const t=(0,re.X4)(e,.2),o=(0,re.X4)(e,.14),i=(0,re.X4)(e,.12);return["none",`0px 2px 1px -1px ${t},0px 1px 1px 0px ${o},0px 1px 3px 0px ${i}`,`0px 3px 1px -2px ${t},0px 2px 2px 0px ${o},0px 1px 5px 0px ${i}`,`0px 3px 3px -2px ${t},0px 3px 4px 0px ${o},0px 1px 8px 0px ${i}`,`0px 2px 4px -1px ${t},0px 4px 5px 0px ${o},0px 1px 10px 0px ${i}`,`0px 3px 5px -1px ${t},0px 5px 8px 0px ${o},0px 1px 14px 0px ${i}`,`0px 3px 5px -1px ${t},0px 6px 10px 0px ${o},0px 1px 18px 0px ${i}`,`0px 4px 5px -2px ${t},0px 7px 10px 1px ${o},0px 2px 16px 1px ${i}`,`0px 5px 5px -3px ${t},0px 8px 10px 1px ${o},0px 3px 14px 2px ${i}`,`0px 5px 6px -3px ${t},0px 9px 12px 1px ${o},0px 3px 16px 2px ${i}`,`0px 6px 6px -3px ${t},0px 10px 14px 1px ${o},0px 4px 18px 3px ${i}`,`0px 6px 7px -4px ${t},0px 11px 15px 1px ${o},0px 4px 20px 3px ${i}`,`0px 7px 8px -4px ${t},0px 12px 17px 2px ${o},0px 5px 22px 4px ${i}`,`0px 7px 8px -4px ${t},0px 13px 19px 2px ${o},0px 5px 24px 4px ${i}`,`0px 7px 9px -4px ${t},0px 14px 21px 2px ${o},0px 5px 26px 4px ${i}`,`0px 8px 9px -5px ${t},0px 15px 22px 2px ${o},0px 6px 28px 5px ${i}`,`0px 8px 10px -5px ${t},0px 16px 24px 2px ${o},0px 6px 30px 5px ${i}`,`0px 8px 11px -5px ${t},0px 17px 26px 2px ${o},0px 6px 32px 5px ${i}`,`0px 9px 11px -5px ${t},0px 18px 28px 2px ${o},0px 7px 34px 6px ${i}`,`0px 9px 12px -6px ${t},0px 19px 29px 2px ${o},0px 7px 36px 6px ${i}`,`0px 10px 13px -6px ${t},0px 20px 31px 3px ${o},0px 8px 38px 7px ${i}`,`0px 10px 13px -6px ${t},0px 21px 33px 3px ${o},0px 8px 40px 7px ${i}`,`0px 10px 14px -6px ${t},0px 22px 35px 3px ${o},0px 8px 42px 7px ${i}`,`0px 11px 14px -7px ${t},0px 23px 36px 3px ${o},0px 9px 44px 8px ${i}`,`0px 11px 15px -7px ${t},0px 24px 38px 3px ${o},0px 9px 46px 8px ${i}`]}function bi(e){return fi("light"===e?gi:vi)}const yi=(0,pi.A)("light"),ji=yi.grey[500],Ai=yi.common.black;function wi(e){const t=(0,re.X4)(e,.16);return{z1:`0 1px 2px 0 ${t}`,z4:`0 4px 8px 0 ${t}`,z8:`0 8px 16px 0 ${t}`,z12:`0 12px 24px -4px ${t}`,z16:`0 16px 32px -4px ${t}`,z20:`0 20px 40px -4px ${t}`,z24:`0 24px 48px 0 ${t}`,primary:`0 8px 16px 0 ${(0,re.X4)((0,pi.A)("light").primary.main,.24)}`,info:`0 8px 16px 0 ${(0,re.X4)((0,pi.A)("light").info.main,.24)}`,secondary:`0 8px 16px 0 ${(0,re.X4)((0,pi.A)("light").secondary.main,.24)}`,success:`0 8px 16px 0 ${(0,re.X4)((0,pi.A)("light").success.main,.24)}`,warning:`0 8px 16px 0 ${(0,re.X4)((0,pi.A)("light").warning.main,.24)}`,error:`0 8px 16px 0 ${(0,re.X4)((0,pi.A)("light").error.main,.24)}`,card:`0 0 2px 0 ${(0,re.X4)(e,.2)}, 0 12px 24px -4px ${(0,re.X4)(e,.12)}`,dialog:`-40px 40px 80px -8px ${(0,re.X4)(e,.24)}`,dropdown:`0 0 2px 0 ${(0,re.X4)(e,.24)}, -20px 20px 40px -4px ${(0,re.X4)(e,.24)}`}}function ki(e){return wi("light"===e?ji:Ai)}const Ci=["primary","secondary","info","success","warning","error"];function _i(e){const t="light"===e.palette.mode;return{MuiFab:{defaultProps:{color:"primary"},styleOverrides:{root:o=>{let{ownerState:i}=o;return(o=>{const i="default"===o.color,n="inherit"===o.color,r="circular"===o.variant,l="extended"===o.variant,a="outlined"===o.variant,s="outlinedExtended"===o.variant,d="soft"===o.variant,c="softExtended"===o.variant,p={"&:hover, &:active":{boxShadow:"none"}
14,...(r||l)&&{...(i||n)&&{color:e.palette.grey[800],boxShadow:e.customShadows.z8,"&:hover":{backgroundColor:e.palette.grey[400]}},...n&&{...!t&&{color:"inherit",backgroundColor:e.palette.grey[800],"&:hover":{backgroundColor:e.palette.grey[700]}}}},...(a||s)&&{boxShadow:"none",backgroundColor:"transparent",...(i||n)&&{border:`solid 1px ${(0,re.X4)(e.palette.grey[500],.32)}`,"&:hover":{backgroundColor:e.palette.action.hover}},...i&&{...!t&&{color:e.palette.text.secondary}}},...(d||c)&&{boxShadow:"none",...i&&{color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey[400]}},...n&&{backgroundColor:(0,re.X4)(e.palette.grey[500],.08),"&:hover":{backgroundColor:(0,re.X4)(e.palette.grey[500],.24)}}}};return[...Ci.map(i=>({...o.color===i&&{...(r||l)&&{boxShadow:e.customShadows[i],"&:hover":{backgroundColor:e.palette[i].dark}},...(a||s)&&{color:e.palette[i].main,border:`solid 1px ${(0,re.X4)(e.palette[i].main,.48)}`,"&:hover":{backgroundColor:(0,re.X4)(e.palette[i].main,.08),border:`solid 1px ${e.palette[i].main}`}},...(d||c)&&{color:e.palette[i][t?"dark":"light"],backgroundColor:(0,re.X4)(e.palette[i].main,.16),"&:hover":{backgroundColor:(0,re.X4)(e.palette[i].main,.32)}}}})),p,{"&.Mui-disabled":{...(a||s)&&{backgroundColor:"transparent",border:`solid 1px ${e.palette.action.disabledBackground}`}}},{...(l||s||c)&&{width:"auto","& svg":{marginRight:e.spacing(1)},..."small"===o.size&&{height:34,minHeight:34,borderRadius:17,padding:e.spacing(0,1)},..."medium"===o.size&&{height:40,minHeight:40,borderRadius:20,padding:e.spacing(0,2)},..."large"===o.size&&{height:48,minHeight:48,borderRadius:24,padding:e.spacing(0,2)}}}]})(i)}}}}}var Si=o(9360);function zi(e){return(0,k.jsx)(Si.A,{...e,children:(0,k.jsx)("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L12,10.59 L13.29,9.29 C13.6821222,8.89787783 14.3178778,8.89787783 14.71,9.29 C15.1021222,9.68212217 15.1021222,10.3178778 14.71,10.71 L13.41,12 L14.71,13.29 Z"})})}function qi(e){return(0,k.jsx)(Si.A,{...e,children:(0,k.jsx)("path",{d:"M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z"})})}function Mi(e){return(0,k.jsx)(Si.A,{...e,children:(0,k.jsx)("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M13,16 C13,16.5522847 12.5522847,17 12,17 C11.4477153,17 11,16.5522847 11,16 L11,11 C11,10.4477153 11.4477153,10 12,10 C12.5522847,10 13,10.4477153 13,11 L13,16 Z M12,9 C11.4477153,9 11,8.55228475 11,8 C11,7.44771525 11.4477153,7 12,7 C12.5522847,7 13,7.44771525 13,8 C13,8.55228475 12.5522847,9 12,9 Z"})})}function Ii(e){return(0,k.jsx)(Si.A,{...e,children:(0,k.jsx)("path",{d:"M22.56,16.3 L14.89,3.58 C14.2597186,2.59400001 13.1702353,1.99737652 12,1.99737652
14C10.8297647,1.99737652 9.74028139,2.59400001 9.11,3.58 L1.44,16.3 C0.888546003,17.2192471 0.869485343,18.3628867 1.39,19.3 C1.99197363,20.3551378 3.11522982,21.0046397 4.33,21 L19.67,21 C20.8765042,21.0128744 21.9978314,20.3797441 22.61,19.34 C23.146086,18.3926382 23.1269508,17.2292197 22.56,16.3 L22.56,16.3 Z M12,17 C11.4477153,17 11,16.5522847 11,16 C11,15.4477153 11.4477153,15 12,15 C12.5522847,15 13,15.4477153 13,16 C13,16.5522847 12.5522847,17 12,17 Z M13,13 C13,13.5522847 12.5522847,14 12,14 C11.4477153,14 11,13.5522847 11,13 L11,9 C11,8.44771525 11.4477153,8 12,8 C12.5522847,8 13,8.44771525 13,9 L13,13 Z"})})}function Ri(e){return(0,k.jsx)(Si.A,{...e,children:(0,k.jsx)("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M16.3,9.61 L11.73,15.61 C11.5412074,15.855247 11.2494966,15.9992561 10.94,16.0000145 C10.6322197,16.001658 10.3408221,15.861492 10.15,15.62 L7.71,12.51 C7.49028166,12.2277602 7.43782669,11.8497415 7.57239438,11.5183399 C7.70696206,11.1869384 8.00810836,10.9525017 8.36239438,10.9033399 C8.7166804,10.8541782 9.07028166,10.9977602 9.29,11.28 L10.92,13.36 L14.7,8.36 C14.917932,8.07418751 15.2717886,7.92635122 15.6282755,7.97217964 C15.9847624,8.01800806 16.2897207,8.25053875 16.4282755,8.58217966 C16.5668304,8.91382056 16.517932,9.29418753 16.3,9.58 L16.3,9.61 Z"})})}function Li(e){return(0,k.jsx)(Si.A,{...e,children:(0,k.jsx)("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M12,17 C11.4477153,17 11,16.5522847 11,16 C11,15.4477153 11.4477153,15 12,15 C12.5522847,15 13,15.4477153 13,16 C13,16.5522847 12.5522847,17 12,17 Z M13,13 C13,13.5522847 12.5522847,14 12,14 C11.4477153,14 11,13.5522847 11,13 L11,8 C11,7.44771525 11.4477153,7 12,7 C12.5522847,7 13,7.44771525 13,8 L13,13 Z"})})}function Oi(e){return(0,k.jsx)(Si.A,{...e,children:(0,k.jsx)("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})})}function Fi(e){return(0,k.jsx)(Si.A,{...e,children:(0,k.jsx)("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})})}function Ti(e){return(0,k.jsx)(Si.A,{...e,children:(0,k.jsx)("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})})}function Ei(e){return(0,k.jsx)(Si.A,{...e,children:(0,k.jsx)("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Z"})})}function Pi(e){return(0,k.jsx)(Si.A,{...e,children:(0,k.jsx)("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z"})})}function Di(e){return(0,k.jsx)(Si.A,{...e,sx:{right:12,fontSize:16,position:"absolute",pointerEvents:"none"},children:(0,k.jsx)("path",{d:"M12,16 C11.7663478,16.0004565 11.5399121,15.9190812 11.36,15.77 L5.36,10.77 C4.93474074,10.4165378 4.87653776,9.78525926 5.23,9.36 C5.58346224,8.93474074 6.21474074,8.87653776 6.64,9.23 L12,13.71 L17.36,9.39 C17.5665934,9.2222295 17.8315409,9.14373108 18.0961825,9.17188444 C18.3608241,9.2000378 18.6033268,9.33252029 18.77,9.54 C18.9551341,9.74785947 19.0452548,10.0234772 19.0186853,10.3005589 C18.9921158,10.5776405 18.8512608,10.8311099 18.63,11 L12.63,15.83 C12.444916,15.955516 12.2231011,16.0153708 12,16 Z"})})}function Wi(e){return(0,k.jsx)(Si.A,{...e,children:(0,k.jsx)("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M12,8 C12.5522847,8 13,8.44771525 13,9 L13,9 L13,11 L15,11 C15.5522847,11 16,11.4477153 16,12
14C16,12.5522847 15.5522847,13 15,13 L15,13 L13,13 L13,15 C13,15.5522847 12.5522847,16 12,16 C11.4477153,16 11,15.5522847 11,15 L11,15 L11,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 L11,11 L11,9 C11,8.44771525 11.4477153,8 12,8 Z"})})}function Ni(e){return(0,k.jsx)(Si.A,{...e,children:(0,k.jsx)("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 Z"})})}function $i(e){return(0,k.jsx)(Si.A,{...e,children:(0,k.jsx)("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M14,8.99420168 C14.2666375,8.99420168 14.5222334,9.10068735 14.71,9.29 C14.8993127,9.4777666 15.0057983,9.73336246 15.0057983,10 C15.0057983,10.2666375 14.8993127,10.5222334 14.71,10.71 L14.71,10.71 L13.41,12 L14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L10.71,9.29 L12,10.59 L13.29,9.29 C13.4777666,9.10068735 13.7333625,8.99420168 14,8.99420168 Z"})})}const Bi=["primary","secondary","info","success","warning","error"];function Hi(e){const t="light"===e.palette.mode;return{MuiChip:{defaultProps:{deleteIcon:(0,k.jsx)(zi,{})},styleOverrides:{root:o=>{let{ownerState:i}=o;return(o=>{const i="default"===o.color,n="filled"===o.variant,r="outlined"===o.variant,l="soft"===o.variant,a={...i&&{"& .MuiChip-avatar":{color:e.palette.text[t?"secondary":"primary"],backgroundColor:(0,re.X4)(e.palette.grey[500],.48)},...r&&{border:`solid 1px ${(0,re.X4)(e.palette.grey[500],.32)}`},...l&&{color:e.palette.text.primary,backgroundColor:(0,re.X4)(e.palette.grey[500],.16),"&:hover":{backgroundColor:(0,re.X4)(e.palette.grey[500],.32)}}}};return[...Bi.map(i=>({...o.color===i&&{"& .MuiChip-avatar":{color:e.palette[i].lighter,backgroundColor:e.palette[i].dark},...n&&{"& .MuiChip-deleteIcon":{color:(0,re.X4)(e.palette[i].contrastText,.56),"&:hover":{color:e.palette[i].contrastText}}}
14,...l&&{color:e.palette[i][t?"dark":"light"],backgroundColor:(0,re.X4)(e.palette[i].main,.16),"&:hover":{backgroundColor:(0,re.X4)(e.palette[i].main,.32)},"& .MuiChip-deleteIcon":{color:(0,re.X4)(e.palette[i][t?"dark":"light"],.48),"&:hover":{color:e.palette[i].dark}}}}})),a]})(i)}}}}}const Xi=["info","success","warning","error"];function Yi(e){const t="light"===e.palette.mode;return{MuiAlert:{defaultProps:{iconMapping:{info:(0,k.jsx)(Mi,{}),success:(0,k.jsx)(Ri,{}),warning:(0,k.jsx)(Ii,{}),error:(0,k.jsx)(Li,{})}},styleOverrides:{root:o=>{let{ownerState:i}=o;return(o=>{const i="standard"===o.variant,n="filled"===o.variant,r="outlined"===o.variant;return[...Xi.map(l=>({...o.severity===l&&{...i&&{color:e.palette[l][t?"darker":"lighter"],backgroundColor:e.palette[l][t?"lighter":"darker"],"& .MuiAlert-icon":{color:e.palette[l][t?"main":"light"]}},...n&&{color:e.palette[l].contrastText,backgroundColor:e.palette[l].main},...r&&{color:e.palette[l][t?"dark":"light"],border:`solid 1px ${e.palette[l].main}`,"& .MuiAlert-icon":{color:e.palette[l].main}}}}))]})(i)},icon:{opacity:1}}},MuiAlertTitle:{styleOverrides:{root:{marginBottom:e.spacing(.5)}}}}}const Gi=["primary","secondary","info","success","warning","error"];function Ki(e){const t="light"===e.palette.mode;return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:o=>{let{ownerState:i}=o;return(o=>{const i="inherit"===o.color,n="contained"===o.variant,r="outlined"===o.variant,l="text"===o.variant,a="soft"===o.variant,s="small"===o.size,d="large"===o.size,c={...i&&{...n&&{color:e.palette.grey[800],"&:hover":{boxShadow:e.customShadows.z8,backgroundColor:e.palette.grey[400]}},...r&&{borderColor:(0,re.X4)(e.palette.grey[500],.32),"&:hover":{borderColor:e.palette.text.primary,backgroundColor:e.palette.action.hover}},...l&&{"&:hover":{backgroundColor:e.palette.action.hover}},...a&&{color:e.palette.text.primary,backgroundColor:(0,re.X4)(e.palette.grey[500],.08),"&:hover":{backgroundColor:(0,re.X4)(e.palette.grey[500],.24)}}}};return[...Gi.map(i=>({...o.color===i&&{...n&&{"&:hover":{boxShadow:e.customShadows[i]}},...a&&{color:e.palette[i][t?"dark":"light"],backgroundColor:(0,re.X4)(e.palette[i].main,.16),"&:hover":{backgroundColor:(0,re.X4)(e.palette[i].main,.32)}}}})),c,{"&.Mui-disabled":{...a&&{backgroundColor:e.palette.action.disabledBackground}}},{...s&&{height:30,fontSize:13,...a&&{padding:"4px 10px"}},...d&&{height:48,fontSize:15,...a&&{padding:"8px 22px"}}}]})(i)}}}}}function Zi(e){const t="light"===e.palette.mode;return{MuiSwitch:{styleOverrides:{root:o=>{let{ownerState:i}=o;return(o=>({padding:"9px 13px 9px 12px",width:58,height:38,..."small"===o.size&&{padding:"4px 8px 4px 7px",width:40,height:24},"& .MuiSwitch-thumb":{width:14,height:14,boxShadow:"none",color:`${e.palette.common.white} !important`,..."small"===o.size&&{width:10,height:10}},"& .MuiSwitch-track":{opacity:1,borderRadius:14,backgroundColor:(0,re.X4)(e.palette.grey[500],.48)},"& .MuiSwitch-switchBase":{left:3,padding:12,..."small"===o.size&&{padding:7},"&.Mui-checked":{transform:"translateX(13px)","&+.MuiSwitch-track":{opacity:1},..."small"===o.size&&{transform:"translateX(9px)"}},"&.Mui-disabled":{"& .MuiSwitch-thumb":{opacity:t?1:.48},"&+.MuiSwitch-track":{opacity:.48}}}}))(i)}}}}}const Ui=["primary","secondary","info","success","warning","error"];function Vi(e){return{MuiLinearProgress:{styleOverrides:{root:t=>{let{ownerState:o}=t;return(t=>{const o={borderRadius:4,"& .MuiLinearProgress-bar":{borderRadius:4},..."buffer"===t.variant&&{backgroundColor:"transparent"}};return[...Ui.map(o=>({...t.color===o&&{backgroundColor:(0,re.X4)(e.palette[o].main,.24)}})),o]})(o)}}}}}const Ji=["primary","secondary","info","success","warning","error"];function Qi(e){const t="light"===e.palette.mode;return{MuiPagination:{defaultProps:{color:"primary"},styleOverrides:{root:o=>{let{ownerState:i}=o;return(o=>{const i="outlined"===o.variant,n="soft"===o.variant,r={"& .MuiPaginationItem-root":{...i&&{borderColor:(0,re.X4)(e.palette.grey[500],.32)},"&.Mui-selected":{fontWeight:e.typography.fontWeightMedium}}};return[...Ji.map(i=>({...o.color===i&&{...n&&{"& .MuiPaginationItem-root":{"&.Mui-selected":{color:e.palette[i][t?"dark":"light"],backgroundColor:(0,re.X4)(e.palette[i].main,.16),"&:hover":{backgroundColor:(0,re.X4)(e.palette[i].main,.32)}}}}}})),r]})(i)}}}}}const en=["primary","secondary","info","success","warning","error"];function tn(e){return{MuiButtonGroup:{defaultProps:{disableElevation:!0},styleOverrides:{root:t=>{let{ownerState:o}=t;return(t=>{const o="inherit"===t.color,i="contained"===t.variant,n="outlined"===t.variant,r="text"===t.variant,l="soft"===t.variant,a="horizontal"===t.orientation,s="vertical"===t.orientation,d={"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!n&&{borderStyle:"solid",...o&&{borderColor:(0,re.X4)(e.palette.grey[500],.32)},...a&&{borderWidth:"0px 1px 0px 0px"},...s&&{borderWidth:"0px 0px 1px 0px"}}}}};return[...en.map(o=>({"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!n&&{...t.color===o&&{...i&&{borderColor:(0,re.X4)(e.palette[o].dark,.48)},...r&&{borderColor:(0,re.X4)(e.palette[o].main,.48)},...l&&{borderColor:(0,re.X4)(e.palette[o].dark,.24)}}}}}})),d,{"& .MuiButtonGroup-grouped.Mui-disabled":{"&:not(:last-of-type)":{borderColor:e.palette.action.disabledBackgroun
14d}}}]})(o)}}}}}const on=["primary","secondary","info","success","warning","error"];function nn(e){return{MuiToggleButton:{styleOverrides:{root:t=>{let{ownerState:o}=t;return(t=>{const o={..."standard"===t.color&&{"&.Mui-selected":{borderColor:"inherit"}}};return[...on.map(o=>({...t.color===o&&{"&:hover":{borderColor:(0,re.X4)(e.palette[o].main,.48),backgroundColor:(0,re.X4)(e.palette[o].main,e.palette.action.hoverOpacity)},"&.Mui-selected":{borderColor:e.palette[o].main}}})),o,{"&.Mui-disabled":{"&.Mui-selected":{color:e.palette.action.disabled,backgroundColor:e.palette.action.selected,borderColor:e.palette.action.disabledBackground}}}]})(o)}}},MuiToggleButtonGroup:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:`solid 1px ${(0,re.X4)(e.palette.grey[500],.16)}`},grouped:{margin:4,borderColor:"transparent !important",borderRadius:`${e.shape.borderRadius}px !important`}}}}}function rn(e){return Object.assign(_i(e),function(e){return{MuiTabs:{defaultProps:{textColor:"inherit",allowScrollButtonsMobile:!0,variant:"scrollable"},styleOverrides:{scrollButtons:{width:48,borderRadius:"50%"}}},MuiTab:{defaultProps:{disableRipple:!0,iconPosition:"start"},styleOverrides:{root:t=>{let{ownerState:o}=t;return{padding:0,opacity:1,minWidth:48,fontWeight:e.typography.fontWeightMedium,"&:not(:last-of-type)":{marginRight:e.spacing(3),[e.breakpoints.up("sm")]:{marginRight:e.spacing(5)}},"&:not(.Mui-selected)":{color:e.palette.text.secondary},...("start"===o.iconPosition||"end"===o.iconPosition)&&{minHeight:48}}}}}}}(e),Hi(e),function(e){return{MuiCard:{styleOverrides:{root:{position:"relative",boxShadow:e.customShadows.card,borderRadius:2*Number(e.shape.borderRadius),zIndex:0}}},MuiCardHeader:{defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:e.spacing(.5)}},styleOverrides:{root:{padding:e.spacing(3,3,0)}}},MuiCardContent:{styleOverrides:{root:{padding:e.spacing(3)}}}}}(e),function(e){return{MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}}}}(e),{MuiLink:{defaultProps:{underline:"hover"}}},function(e){return{MuiInputBase:{styleOverrides:{root:{"&.Mui-disabled":{"& svg":{color:e.palette.text.disabled}}},input:{"&::placeholder":{opacity:1,color:e.palette.text.disabled}}}},MuiInput:{styleOverrides:{underline:{"&:before":{borderBottomColor:(0,re.X4)(e.palette.grey[500],.56)},"&:after":{borderBottomColor:e.palette.text.primary}}}},MuiTextField:{styleOverrides:{root:{"& .MuiInputLabel-root.Mui-focused":{color:e.palette.text.primary}}}},MuiFilledInput:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:(0,re.X4)(e.palette.grey[500],.08),"&:hover":{backgroundColor:(0,re.X4)(e.palette.grey[500],.16)},"&.Mui-focused":{backgroundColor:(0,re.X4)(e.palette.grey[500],.16)},"&.Mui-disabled":{backgroundColor:e.palette.action.disabledBackground}},underline:{"&:before, :after":{display:"none"}}}},MuiOutlinedInput:{styleOverrides:{root:{"& .MuiOutlinedInput-notchedOutline":{borderColor:(0,re.X4)(e.palette.grey[500],.32)},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderWidth:1,borderColor:e.palette.text.primary}},"&.Mui-disabled":{"& .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.action.disabledBackground}}}}}}}(e),function(e){return{MuiRadio:{defaultProps:{icon:(0,k.jsx)(Ei,{}),checkedIcon:(0,k.jsx)(Pi,{})},styleOverrides:{root:t=>{let{ownerState:o}=t;return{padding:e.spacing(1),..."small"===o.size&&{"& svg":{width:20,height:20}},..."medium"===o.size&&{"& svg":{width:24,height:24}}}}}}}}(e),{MuiBadge:{styleOverrides:{dot:{width:10,height:10,borderRadius:"50%"}}}},function(e){return{MuiListItemIcon:{styleOverrides:{root:{color:"inherit",minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemAvatar:{styleOverrides:{root:{minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemText:{styleOverrides:{root:{marginTop:0,marginBottom:0},multiline:{marginTop:0,marginBottom:0}}}}}(e),function(e){return{MuiTableContainer:{styleOverrides:{root:{position:"relative"}}
14},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}},MuiTableCell:{styleOverrides:{root:{borderBottom:"none"},head:{color:e.palette.text.secondary,backgroundColor:e.palette.background.neutral},stickyHeader:{backgroundColor:e.palette.background.paper,backgroundImage:`linear-gradient(to bottom, ${e.palette.background.neutral} 0%, ${e.palette.background.neutral} 100%)`},paddingCheckbox:{paddingLeft:e.spacing(1)}}},MuiTablePagination:{defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"},SelectProps:{MenuProps:{MenuListProps:{sx:{"& .MuiMenuItem-root":{...e.typography.body2}}}}}},styleOverrides:{root:{borderTop:`solid 1px ${e.palette.divider}`},toolbar:{height:64},actions:{marginRight:e.spacing(1)},select:{"&:focus":{borderRadius:e.shape.borderRadius}}}}}}(e),{MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"}}}},Yi(e),Zi(e),{MuiSelect:{defaultProps:{IconComponent:Di}}},Ki(e),function(e){return{MuiRating:{defaultProps:{emptyIcon:(0,k.jsx)(qi,{}),icon:(0,k.jsx)(qi,{})},styleOverrides:{root:{"&.Mui-disabled":{opacity:.48}},iconEmpty:{color:(0,re.X4)(e.palette.grey[500],.48)},sizeSmall:{"& svg":{width:20,height:20}},sizeLarge:{"& svg":{width:28,height:28}}}}}}(e),function(e){return{MuiDialog:{styleOverrides:{paper:{boxShadow:e.customShadows.dialog,"&.MuiPaper-rounded":{borderRadius:2*Number(e.shape.borderRadius)},"&.MuiDialog-paperFullScreen":{borderRadius:0},"&.MuiDialog-paper .MuiDialogActions-root":{padding:e.spacing(3)},"@media (max-width: 600px)":{margin:e.spacing(2)},"@media (max-width: 663.95px)":{"&.MuiDialog-paperWidthSm.MuiDialog-paperScrollBody":{maxWidth:"100%"}}},paperFullWidth:{width:"100%"}}},MuiDialogTitle:{styleOverrides:{root:{padding:e.spacing(3)}}},MuiDialogContent:{styleOverrides:{root:{padding:e.spacing(0,3)},dividers:{borderTop:0,borderBottomStyle:"dashed",paddingBottom:e.spacing(3)}}},MuiDialogActions:{styleOverrides:{root:{"& > :not(:first-of-type)":{marginLeft:e.spacing(1.5)}}}}}}(e),function(e){return{MuiAvatar:{styleOverrides:{colorDefault:{color:e.palette.text.secondary,backgroundColor:(0,re.X4)(e.palette.grey[500],.24)}}},MuiAvatarGroup:{defaultProps:{max:4},styleOverrides:{root:{justifyContent:"flex-end"},avatar:{fontSize:16,fontWeight:e.typography.fontWeightMedium,"&:first-of-type":{fontSize:12,color:e.palette.primary.main,backgroundColor:e.palette.primary.lighter}}}}}}(e),function(e){const t="light"===e.palette.mode;return{MuiSlider:{defaultProps:{size:"small"},styleOverrides:{root:{"&.Mui-disabled":{color:e.palette.action.disabled}},rail:{opacity:.32},markLabel:{fontSize:13,color:e.palette.text.disabled},valueLabel:{borderRadius:8,backgroundColor:e.palette.grey[t?800:700]}}}}}(e),function(e){const t="light"===e.palette.mode;return{MuiDrawer:{styleOverrides:{root:o=>{let{ownerState:i}=o;return{..."temporary"===i.variant&&{"& .MuiDrawer-paper":{boxShadow:`-40px 40px 80px -8px ${(0,re.X4)(t?e.palette.grey[500]:e.palette.common.black,.24)}`}}}}}}}}(e),function(e){return{MuiStepConnector:{styleOverrides:{line:{borderColor:e.palette.divider}}}}}(e),function(e){const t="light"===e.palette.mode;return{MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:e.palette.grey[t?800:700]},arrow:{color:e.palette.grey[t?800:700]}}}}}(e),function(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.dropdown,borderRadius:1.5*Number(e.shape.borderRadius)}}}}}(e),{MuiSvgIcon:{styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}}},function(e){return{MuiCheckbox:{defaultProps:{icon:(0,k.jsx)(Oi,{}),checkedIcon:(0,k.jsx)(Fi,{}),indeterminateIcon:(0,k.jsx)(Ti,{})},styleOverrides:{root:t=>{let{ownerState:o}=t;return{padding:e.spacing(1),..."small"===o.size&&{"& svg":{width:20,height:20}},..."medium"===o.size&&{"& svg":{width:24,height:24}}}}}}}}(e),function(e){return{MuiDataGrid:{styleOverrides:{root:{borderRadius:0,border:"1px solid transparent","& .MuiTablePagination-root":{borderTop:0}},cell:{borderBottom:`1px solid ${e.palette.divider}`},columnSeparator:{color:e.palette.divider},toolbarContainer:{padding:e.spacing(2),backgroundColor:e.palette.background.neutral,"& .MuiButton-root":{marginRight:e.spacing(1.5),color:e.palette.text.primary,"&:hover":{backgroundColor:e.palette.action.hover}}},paper:{boxShadow:e.customShadows.dropdown},menu:{"& .MuiPaper-root":{boxShadow:e.customShadows.dropdown},"& .MuiMenuItem-root":{...e.typography.body2,"& .MuiListItemIcon-root":{minWidth:"auto"}}},panelFooter:{padding:e.spacing(2),justifyContent:"flex-end",borderTop:`1px solid ${e.palette.divider}`,"& .MuiButton-root":{"&:first-of-type":{marginRight:e.spacing(1.5),color:e.palette.text.primary,"&:hover":{backgroundColor:e.palette.action.hover}},"&:last-of-type":{color:e.palette.common.white,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark}}}},filterForm:{padding:e.spacing(1.5,0),"& .MuiFormControl-root":{margin:e.spacing(0,.5)},"& .MuiInput-root":{marginTop:e.spacing(3),"&::before, &::after":{display:"none"},"& .MuiNativeSelect-select, .MuiInput-input":{...e.typography.body2,padding:e.spacing(.75,1),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.neutral},"& .MuiSvgIcon-root":{right:4}}}}}}}(e),function(e){return{MuiSkeleton:{defaultProps:{animation:"wave"},styleOverrides:{root:{backgroundColor:e.palette.background.neutral}}}}}(e),function(e){return{MuiTimelineDot:{styleOverrides:{root:{boxShadow:"none"}}},MuiTimelineConnector:{styleOverrides:{root:{backgroundColor:e.palette.divider}}}}}(e),function(e){return{MuiTreeView:{defaultProps:{defaultCollapseIcon:(0,k.jsx)(Wi,{sx:{width:20,height:20}}),defaultExpandIcon:(0,k.jsx)(Ni,{sx:{width:20,height:20}}),defaultEndIcon:(0,k.jsx)($i,{sx:{color:"text.secondary",width:20,height:20}})}},MuiTreeItem:{styleOverrides:{label:{...e.typography.body2},iconContainer:{width:"auto"}}}}}
14(e),function(e){return{MuiBackdrop:{styleOverrides:{root:{backgroundColor:(0,re.X4)(e.palette.grey[800],.8)},invisible:{background:"transparent"}}}}}(e),Vi(e),function(e){return{MuiAccordion:{styleOverrides:{root:{backgroundColor:"transparent","&.Mui-expanded":{boxShadow:e.customShadows.z8,borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper},"&.Mui-disabled":{backgroundColor:"transparent"}}}},MuiAccordionSummary:{styleOverrides:{root:{paddingLeft:e.spacing(2),paddingRight:e.spacing(1),"&.Mui-disabled":{opacity:1,color:e.palette.action.disabled,"& .MuiTypography-root":{color:"inherit"}}},expandIconWrapper:{color:"inherit"}}}}}(e),{MuiDatePicker:{defaultProps:{inputFormat:"dd/MM/yyyy"}}},function(e){return{MuiTypography:{styleOverrides:{paragraph:{marginBottom:e.spacing(2)},gutterBottom:{marginBottom:e.spacing(1)}}}}}(e),Qi(e),tn(e),function(e){return{MuiBreadcrumbs:{styleOverrides:{separator:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},li:{display:"inline-flex",margin:e.spacing(.25,0),"& > *":{...e.typography.body2}}}}}}(e),function(e){return{MuiAutocomplete:{styleOverrides:{root:{"& span.MuiAutocomplete-tag":{...e.typography.body2,width:24,height:24,lineHeight:"24px",textAlign:"center",borderRadius:e.shape.borderRadius,backgroundColor:(0,re.X4)(e.palette.grey[500],.16)}},paper:{boxShadow:e.customShadows.dropdown},listbox:{padding:e.spacing(0,1)},option:{...e.typography.body2,padding:e.spacing(1),margin:e.spacing(.75,0),borderRadius:e.shape.borderRadius}}}}}(e),function(e){return{MuiFormControlLabel:{styleOverrides:{label:{...e.typography.body2}}},MuiFormHelperText:{styleOverrides:{root:{marginTop:e.spacing(1)}}},MuiFormLabel:{styleOverrides:{root:{color:e.palette.text.disabled}}}}}(e),nn(e),{MuiLoadingButton:{variants:[{props:{loading:!0,loadingPosition:"start",size:"small"},style:{"& .MuiLoadingButton-loadingIndicatorStart":{left:10}}},{props:{loading:!0,loadingPosition:"end",size:"small"},style:{"& .MuiLoadingButton-loadingIndicatorEnd":{right:10}}}],styleOverrides:{loadingIndicatorStart:{left:14},loadingIndicatorEnd:{right:14}}}})}function ln(){return(0,k.jsx)(Ie.A,{styles:{"*":{boxSizing:"border-box"},html:{margin:0,padding:0,width:"100%",height:"100%",WebkitOverflowScrolling:"touch"},body:{margin:0,padding:0,width:"100%",height:"100%"},"#root":{width:"100%",height:"100%"},input:{"&[type=number]":{MozAppearance:"textfield","&::-webkit-outer-spin-button":{margin:0,WebkitAppearance:"none"},"&::-webkit-inner-spin-button":{margin:0,WebkitAppearance:"none"}}},img:{display:"block",maxWidth:"100%"},ul:{margin:0,padding:0}}})}function an(e){let{children:t}=e;const{themeMode:o,themeDirection:n}=(0,s.Mp)(),r=(0,i.useMemo)(()=>({palette:(0,pi.A)(o),typography:xi,shape:{borderRadius:8},direction:n,shadows:bi(o),customShadows:ki(o)}),[n,o]),l=(0,si.A)(r);return l.components=rn(l),(0,k.jsx)(di.A,{injectFirst:!0,children:(0,k.jsxs)(ci.A,{theme:l,children:[(0,k.jsx)(ai.Ay,{}),(0,k.jsx)(ln,{}),t]})})}o(98900);function sn(){const{pathname:e}=(0,r.zy)();return(0,i.useEffect)(()=>{window.scrollTo(0,0)},[e]),null}var dn=o(63359),cn=o(6904),pn=o(65796),un=o(75609);const hn=(0,Z.Ay)(pn.A)(e=>{let{theme:t,variant:o}=e;return{"& .Message-content":{..."success"===o&&{backgroundColor:"rgb(50,186,118)",color:"#FFFFFF"},..."error"===o&&{backgroundColor:t.palette.error.dark,color:t.palette.getContrastText(t.palette.error.dark)},..."info"===o&&{backgroundColor:dn.A[600],color:"#FFFFFF"},..."warning"===o&&{backgroundColor:cn.A[600],color:"#FFFFFF"}}}}),xn={success:"clarity:success-standard-line",warning:"material-symbols:error-circle-rounded-outline",error:"material-symbols:error-circle-rounded-outline",info:"material-symbols:error-circle-rounded-outline"};function mn(){const e=(0,d.wA)(),t=(0,d.d4)(e=>e.message.state),o=(0,d.d4)(e=>e.message.options);return(0,k.jsx)(hn,{...o,open:t,onClose:()=>e((0,w.oP)()),ContentProps:{variant:"body2",headlineMapping:{body1:"div",body2:"div"}},children:(0,k.jsx)(un.A,{className:"Message-content",message:(0,k.jsxs)(Ne.Ay,{container:!0,justifyContent:"center",alignContent:"baseline",children:[(0,k.jsx)(Ne.Ay,{sx:{mt:.5},item:!0,children:xn[o.variant]&&(0,k.jsx)(ge.In,{icon:xn[o.variant],width:"18",height:"18",color:"inherit"})}),(0,k.jsx)(Ne.Ay,{item:!0,children:(0,k.jsx)(p.A,{sx:{mx:2},children:o.message})})]}),action:[(0,k.jsx)(_.A,{"aria-label":"Close",color:"inherit",onClick:()=>e((0,w.oP)()),size:"large",children:(0,k.jsx)(ge.In,{icon:"material-symbols:close",color:"inherit"})},"close")]})})}const gn=(0,i.memo)(mn);function vn(){const e=(0,f.A)("");return(0,i.useEffect)(()=>{},[e]),(0,k.jsx)(Pe.y,{children:(0,k.jsx)(Ke.n,{children:(0,k.jsx)(xe.ae,{children:(0,k.jsx)(an,{children:(0,k.jsx)(s.LG,{children:(0,k.jsxs)(Le,{children:[(0,k.jsx)(gn,{}),(0,k.jsx)(n.N9,{position:"top-center",autoClose:5e3}),(0,k.jsx)(eo,{}),(0,k.jsx)(sn,{}),(0,k.jsx)(mo,{})]})})})})})})}},21401(e,t,o){o.d(t,{I9:()=>u,E4:()=>c});var i=o(9950),n=o(14857),r=o(44414);function l(){const e=(0,n.A)().palette.primary.main;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[(0,r.jsx)("stop",{offset:"0%",stopColor:e}),(0,r.jsx)("stop",{offset:"100%",stopColor:e,stopOpacity:"0"})]})}),(0,r.jsx)("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 48
140 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"})]})}const a=(0,i.memo)(l);var s=o(53011);function d(e){let{...t}=e;const o=(0,n.A)(),i=o.palette.primary.main,l=o.palette.primary.dark,d=o.palette.primary.darker;return(0,r.jsx)(s.A,{...t,children:(0,r.jsxs)("svg",{width:"100%",height:"100%",viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)(a,{}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"linearGradient-2",x1:"30.113%",x2:"30.113%",y1:"0%",y2:"100%",children:[(0,r.jsx)("stop",{offset:"0%",stopOpacity:"0"}),(0,r.jsx)("stop",{offset:"100%"})]})}),(0,r.jsx)("path",{fill:"#FF4842",fillRule:"nonzero",d:"M293.006 206.192c-2.248 2.672-4.676 2.628-6.123 2.251l.054-1.384s5.979-2.733 5.827-2.159c-.057.215.057.733.242 1.292zM309.393 209.217c-3.818 2.206-6.058-.38-6.578-1.112.32-.84.801-2.204.703-2.592-.144-.577 5.827 2.155 5.827 2.155l.048 1.549zM305.303 187.204s3.632-2.093 4.425-1.151c.792.942-4.425 1.151-4.425 1.151zM307.497 188.355s-.598.299.721.681c1.318.383-.721-.681-.721-.681zM285.532 182.599c-.123.036 3.022 2.123 5.862.395-.012 0-5.154-.61-5.862-.395zM291.239 186.591s-.861 1.692-2.625 1.943c-1.764.251 2.625-1.943 2.625-1.943zM302.785 190.262s4.138 6.578 3.346 8.129c-.793 1.552-3.346-8.129-3.346-8.129zM294.62 216.416c0 .368 0 .712-.036.996-.107 1.33-3.381.828-3.381.828-2.99.416-4.066-1.019-4.422-2.392a5.444 5.444 0 01-.164-1.363 5.606 5.606 0 01.054-.819v-.272a1.998 1.998 0 011.859.379c1.331 1.08 3.095.252 3.095.252s1.294.107 1.793.538c.281.242.745-.341 1.098-.897.021.359.054 1.007.074 1.701.024.356.03.714.03 1.049z",opacity:"0.05"}),(0,r.jsx)("path",{fill:"#FF4842",fillRule:"nonzero",d:"M289.37 216.339s-.897.879-2.589-.479a5.444 5.444 0 01-.164-1.363c.864.658 2.466 1.842 2.753 1.842zM294.62 216.416a.67.67 0 01-.519.132.672.672 0 01-.452-.287c.348-.266.669-.566.956-.897.009.359.015.717.015 1.052zM301.637 217.032c0 .371 0 .715.033.996.108 1.333 3.382.828 3.382.828 2.989.419 4.066-1.017 4.421-2.392a5.728 5.728 0 00.111-2.182v-.272a2.024 2.024 0 00-1.862.379c-1.331 1.08-3.092.251-3.092.251s-1.294.111-1.794.542c-.281.242-.744-.341-1.094-.897a61.426 61.426 0 00-.078 1.701c-.024.35-.03.708-.027 1.046z",opacity:"0.05"}),(0,r.jsx)("path",{fill:"#FF4842",fillRule:"nonzero",d:"M306.887 216.949s.897.879 2.587-.479c.112-.444.169-.901.167-1.36-.867.655-2.47 1.839-2.754 1.839zM301.637 217.032a.67.67 0 00.969-.155 6.35 6.35 0 01-.957-.897c-.009.356-.014.714-.012 1.052zM319.614 106.269c.063-.138.123-.275.18-.41.057-.134.077-.209.11-.317-.11.237-.206.48-.29.727z",opacity:"0.05"}),(0,r.jsx)("path",{fill:d,fillRule:"nonzero",d:"M157.592 279.461a4.114 4.114 0 01-.917-3.131l13.196-107.979 1.094-8.97a4.142 4.142 0 014.078-3.635l38.654-.257a4.135 4.135 0 004.108-4.249l-.015-.409a4.14 4.14 0 014.135-4.279h40.619a4.134 4.134 0 014.098 4.682 4.137 4.137 0 003.995 4.682l39.01.996a4.13 4.13 0 013.97 4.831l-19.502 113.909-.368 2.152a4.042 4.042 0 01-.598 1.543l-135.557.114z"}),(0,r.jsx)("path",{fill:"#FFF",fillRule:"nonzero",d:"M251.256817 123.296578L274.098317 123.296578 274.098317 200.823078 251.256817 200.823078z",transform:"rotate(34.64 262.678 162.06)"}),(0,r.jsx)("path",{fill:"#FFC107",fillRule:"nonzero",d:"M270.624591 129.857671L286.750291 129.857671 286.750291 145.983371 270.624591 145.983371z",transform:"rotate(34.804 278.687 137.92)"}),(0,r.jsx)("path",{fill:"#FFC107",fillRule:"nonzero",d:"M260.275579 145.813111L276.423079 145.813111 276.423079 161.960611 260.275579 161.960611z",opacity:"0.5",transform:"rotate(34.64 268.35 153.887)"}),(0,r.jsx)("path",{fill:"#FFC107",fillRule:"nonzero",d:"M249.191579 161.852111L265.339079 161.852111 265.339079 177.999611 249.191579 177.999611z",opacity:"0.3",transform:"rotate(34.64 257.265 169.926)"}),(0,r.jsx)("path",{fill:"#FFF",fillRule:"nonzero",d:"M237.472537 121.334214L260.314037 121.334214 260.314037 198.567714 237.472537 198.567714z",transform:"rotate(16.29 248.893 159.951)"}),(0,r.jsx)("path",{fill:"#FF4842",fillRule:"nonzero",d:"M249.053192 123.761554L265.200692 123.761554 265.200692 139.909054 249.053192 139.909054z",transform:"rotate(16.29 257.127 131.835)"}),(0,r.jsx)("path",{fill:"#FF4842",fillRule:"nonzero",d:"M243.584192 142.473554L259.731692 142.473554 259.731692 158.621053 243.584192 158.621053z",opacity:"0.5",transform:"rotate(16.29 251.658 150.547)"}),(0,r.jsx)("path",{fill:"#FF4842",fillRule:"nonzero",d:"M238.116192 161.182554L254.263692 161.182554 254.263692 177.330054 238.116192 177.330054z",opacity:"0.3",transform:"rotate(16.29 246.19 169.256)"}),(0,r.jsx)("path",{fill:"#FFF",fillRule:"nonzero",d:"M230.099192 121.641542L252.940692 121.641542 252.940692 198.875042 230.099192 198.875042z",transform:"rotate(4.6 241.52 160.258)"}),(0,r.jsx)("path",{fill:"#1890FF",fillRule:"nonzero",d:"M235.800489 122.985499L251.947989 122.985499 251.947989 139.132999 235.800489 139.132999z",transform:"rotate(4.6 243.874 131.06)"}),(0,r.jsx)("path",{fill:"#1890FF",fillRule:"nonzero",d:"M234.234488 142.413498L250.381988 142.413498 250.381988 158.560998 234.234488 158.560998z",opacity:"0.5",transform:"rotate(4.6 242.308 150.487)"}),(0,r.jsx)("path",{fill:"#1890FF",fillRule:"nonzero",d:"M232.672488 161.846499L248.819988 161.846499 248.819988 177.993999 232.672488 177.993999z",opacity:"0.3",transform:"rotate(4.6 240.746 169.92)"}),(0,r.jsx)("path",{fill:"#FFF",fillRule:"nonzero",d:"M224.736657 123.384871L247.578157 123.384871 247.578157 200.618371 224.736657 200.618371z",transform:"rotate(-2.61 236.157 162.002)"}),(0,r.jsx)("path",{fill:i,fillRule:"nonzero",d:"M226.751283 124.659968L242.898783 124.659968 242.898783 140.807468 226.751283 140.807468z",transform:"rotate(-2.61 234.825 132.734)"}),(0,r.jsx)("path",{fill:i,fillRule:"nonzero",d:"M228.305601 143.479224L244.473301 143.479224 244.473301 159.646924 228.305601 159.646924z",opacity:"0.5",transform:"rotate(-2.862 236.39 151.563)"}),(0,r.jsx)("path",{fill:i,fillRule:"nonzero",d:"M228.525282 163.608968L244.672782 163.608968 244.672782 179.7
1456468 228.525282 179.756468z",opacity:"0.3",transform:"rotate(-2.61 236.599 171.683)"}),(0,r.jsx)("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851-29.661 11.466c-1.121-2.093-2.771-4.921-4.813-8.297-7.026-11.642-18.65-29.75-29.001-45.665-11.66-17.938-21.696-33.075-21.696-33.075l7.265-2.093 59.346-17.23 38.854 87.043z"}),(0,r.jsx)("path",{fill:"#000",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851a152.535 152.535 0 01-34.484 3.169c-7.026-11.642-18.65-29.75-29-45.665l-14.42-35.18 59.343-17.218 38.855 87.043z",opacity:"0.1"}),(0,r.jsx)("path",{fill:i,fillRule:"nonzero",d:"M247.777 220.841s-31.526 18.65-78.596 14.432l-37.525-91.486 17.984-3.091 62.168-10.677 35.279 89.043.69 1.779z"}),(0,r.jsx)("path",{fill:"#FF4842",fillRule:"nonzero",d:"M247.075 219.074c-7.424.365-16.013.329-24.654-.702-9.351-1.101-18.757-3.367-26.82-7.523-6.742-3.471-12.506-7.247-17.532-11.776-13.074-11.759-21.164-28.579-28.429-58.365l62.168-10.677 35.267 89.043z",opacity:"0.1"}),(0,r.jsx)("path",{fill:"#FFF",fillRule:"nonzero",d:"M270.203 213.959s-23.239 4.55-46.894 1.749c-9.351-1.1-18.757-3.367-26.82-7.522-6.742-3.471-12.503-7.247-17.532-11.777-16.181-14.557-24.725-36.866-33.536-81.918 0 0 38.633 9.325 76.836-11.101-.012.015 12.865 80.373 47.946 110.569z"}),(0,r.jsx)("path",{fill:i,fillRule:"nonzero",d:"M165.405 131.03s31.416-1.776 40.187-8.548l1.331 4.276s-20.758 9.157-41.518 9.268v-4.996zM165.405 152.137s30.417-1.665 53.399-12.766l.777 1.776s-18.237 10.647-54.176 13.433v-2.443zM167.853 160.362s30.418-1.665 53.397-12.766l.777 1.776s-18.237 10.643-54.174 13.433v-2.443zM170.299 168.599s30.417-1.666 53.399-12.766l.774 1.775s-18.237 10.647-54.173 13.433v-2.442zM172.748 176.835s30.417-1.665 53.396-12.766l.777 1.776s-18.237 10.647-54.173 13.433v-2.443zM175.193 185.075s30.417-1.665 53.399-12.766l.774 1.776s-18.237 10.643-54.173 13.433v-2.443z",opacity:"0.3"}),(0,r.jsx)("path",{fill:i,fillRule:"nonzero",d:"M389.069 287.344s-12.641-.762-11.152 8.097c0 0-.299 1.563 1.124 2.275 0 0 .021-.658 1.295-.434.454.077.916.099 1.375.066a2.832 2.832 0 001.677-.694c.468-.409 3.555-1.468 4.936-7.274 0 0 1.023-1.267.981-1.593l-2.132.897s.73 1.54.156 2.816c0 0-.069-2.759-.479-2.691-.083 0-1.109.533-1.109.533s1.253 2.69.299 4.628c0 0 .359-3.304-.699-4.434l-1.495.876s1.465 2.768.472 5.029c0 0 .254-3.465-.789-4.817l-1.361 1.062s1.379 2.729.539 4.604c0 0-.111-4.036-.835-4.341 0 0-1.195 1.049-1.369 1.494 0 0 .942 1.98.356 3.026 0 0-.359-2.691-.652-2.691 0 0-1.196 1.794-1.309 2.99 0 0 .051-1.818 1.022-3.172a3.593 3.593 0 00-1.818.942s.186-1.262 2.111-1.37c0 0 .981-1.351 1.241-1.435 0 0-1.914-.158-3.074.356 0 0 1.023-1.196 3.427-.649l1.342-1.094s-2.52-.347-3.588.036c0 0 1.229-1.052 3.95-.299l1.462-.873s-2.147-.463-3.426-.299c0 0 1.348-.729 3.856.06l1.044-.47s-1.573-.299-2.033-.358c-.461-.06-.488-.174-.488-.174a5.426 5.426 0 012.957.329s2.222-.813 2.186-.954z"}),(0,r.jsx)("ellipse",{cx:"380.363",cy:"298.487",fill:i,fillRule:"nonzero",opacity:"0.1",rx:"8.945",ry:"1.513"}),(0,r.jsx)("path",{fill:i,fillRule:"nonzero",d:"M394.956 258.102s-7.125-.43-6.279 4.565a1.218 1.218 0 00.631 1.283s.015-.371.733-.245c.255.042.515.054.774.036.349-.023.681-.159.945-.389.264-.23 2.003-.828 2.783-4.102 0 0 .577-.714.553-.897l-1.196.511s.41.87.087 1.591c0 0-.039-1.558-.269-1.522-.048 0-.625.299-.625.299s.706 1.495.173 2.61c0 0 .204-1.862-.394-2.502l-.846.496s.825 1.561.266 2.834c0 0 .143-1.955-.446-2.714l-.765.598s.774 1.539.299 2.595c0 0-.063-2.275-.469-2.446a4.75 4.75 0 00-.775.834s.532 1.118.204 1.707c0 0-.204-1.515-.368-1.521 0 0-.67 1.001-.739 1.689a3.671 3.671 0 01.577-1.794 2.007 2.007 0 00-1.025.532s.104-.711 1.196-.771c0 0 .553-.763.699-.81 0 0-1.079-.09-1.734.2 0 0 .577-.67 1.932-.365l.759-.619s-1.423-.194-2.024.021c0 0 .694-.598 2.227-.161l.826-.494a7.445 7.445 0 00-1.935-.164s.763-.413 2.174.033l.598-.263s-.897-.177-1.148-.203c-.252-.027-.275-.099-.275-.099a3.078 3.078 0 011.668.185s1.232-.46 1.208-.538z"}),(0,r.jsx)("ellipse",{cx:"390.052",cy:"264.383",fill:i,fillRule:"nonzero",opacity:"0.1",rx:"5.044",ry:"1"}),(0,r.jsx)("path",{fill:i,fillRule:"nonzero",d:"M352.896 262.437s-8.604-.52-7.588 5.51a1.47 1.47 0 00.763 1.549s0-.449.897-.299c.309.052.623.067.935.045a1.923 1.923 0 001.142-.473c.318-.279 2.419-.998 3.361-4.951 0 0 .697-.861.667-1.085l-1.468.622s.496 1.046.104 1.916c0 0-.048-1.877-.326-1.835-.056 0-.753.364-.753.364s.852 1.824.209 3.152c0 0 .245-2.249-.475-3.02l-1.023.598s.996 1.886.32 3.423c0 0 .174-2.359-.535-3.289l-.927.724s.939 1.857.365 3.133c0 0-.072-2.747-.565-2.954 0 0-.81.715-.933 1.008 0 0 .64 1.348.242 2.06 0 0-.245-1.83-.445-1.839 0 0-.804 1.214-.897 2.042.04-.768.28-1.512.697-2.159a2.427 2.427 0 00-1.235.643s.125-.858 1.435-.933c0 0 .667-.92.846-.974 0 0-1.303-.111-2.093.239 0 0 .694-.807 2.329-.44l.915-.747s-1.713-.233-2.442.024c0 0 .837-.715 2.69-.191l.996-.598s-1.462-.314-2.335-.201c0 0 .921-.496 2.625.042l.711-.32s-1.07-.209-1.384-.242c-.314-.033-.329-.119-.329-.119a3.69 3.69 0 012.012.221s1.519-.553 1.492-.646z"}),(0,r.jsx)("ellipse",{cx:"346.97",cy:"270.022",fill:i,fillRule:"nonzero",opacity:"0.1",rx:"6.09",ry:"1.028"}),(0,r.jsx)("rect",{width:"51.026",height:"91.312",x:"303.926",y:"69.211",fill:"#FFF",fillRule:"nonzero",rx:"4.737",transform:"rotate(-71.99 329.44 114.867)"}),(0,r.jsx)("circle",{cx:"303.613",cy:"103.507",r:"9.376",fill:i,fillRule:"nonzero",opacity:"0.2"}),(0,r.jsx)("path",{fill:i,fillRule:"nonzero",d:"M344.582495 86.4883769L347.150665 86.4883769 347.150665 127.336977 344.582495 127.336977z",opacity:"0.2",transform:"rotate(-71.99 345.867 106.913)"}),(0,r.jsx)("path",{fill:i,fillRule:"nonzero",d:"M333.028401 99.6373982L335.596571 99.6373982 335.596571 120.445898 333.028401 120.445898z",opacity:"0.2",transform:"rotate(-71.99 334.312 110.042)"}),(0,r.jsx)("path",{fill:i,fillRule:"nonzero",d:"M337.109071 101.431004L339.677241 101.431004 339.677241 135.086304 337.109071 135.086304z",opacity:"0.2",transform:"rotate(-71.99 338.393 118.259)"}),(0,r.jsx)("path",{fill:i,fillRule:"nonzero",d:"M338.505494 105.174377L341.073664 105.174377 341.073664 146.022978 338.505494 146.022978z",opacity:"0.2",transform:"rotate(-71.99 339.79 125.599)"}),(0,r.jsx)("path",{fill:i,fillRule:"nonzero",d:"M348.060839 134.648161L353.026769 134.648161 353.026769 145.952261 348.060839 145.952261z",opacity:"0.5",transform:"rotate(-71.99 350.544 140.3)"}),(0,r.jsx)("rect",{width:"50.3",height:"78.305",x:"291.549",y:"174.486",fill:"#FFF",fillRule:"nonzero",rx:"4",transform:"rotate(-57.265 316.7 213.638)"}),(0,r.jsx)("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M278.038439 203.88874L292.269539 203.88874 292.269539 207.23723 278.038439 207.23723z",transform:"rotate(-57.57 285.154 205.563)"}),(0,r.jsx)("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M283.007935 199.201889L314.262535 199.201889 314.262535 202.272339 283.007935 202.272339z",transform:"rotate(-57.57 298.635 200.737)"}),(0,r.jsx)("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M288.543935 202.715889L319.798535 202.715889 319.798535 205.786339 288.543935 205.786339z",transform:"rotate(-57.57 304.171 204.251)"}),(0,r.jsx)("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M294.078936 206.235889L325.333536 206.235889 325.333536 209.306339 294.078936 209.306339z",transform:"rotate(-57.57 309.706 207.771)"}),(0,r.jsx)("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M299.879919 211.40702L331.090719 211.40702 331.090719 214.47316 299.879919 214.47316z",transform:"rotate(-57.265 315.485 212.94)"}),(0,r.jsx)("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M305.149936 213.268889L336.404536 213.268889 336.404536 216.339339 305.149936 216.339339z",transform:"rotate(-57.57 320.777 214.804)"}),(0,r.jsx)("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M310.685935 216.782889L341.940535 216.782889 341.940535 219.853339 310.685935 219.853339z",transform:"rotate(-57.57 326.313 218.318)"}),(0,r.jsx)("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M341.417983 210.406958L349.511163 210.406958 349.511163 218.500138 341.417983 218.500138z",transform:"rotate(-57.57 345.465 214.454)"}),(0,r.jsx)("path",{fill:i,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z"}),(0,r.jsx)("path",{fill:l,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.243"}),(0,r.jsx)("path",{fill:"url(#linearGradient-2)",fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.32"}),(0,r.jsx)("ellipse",{cx:"119.593",cy:"258.664",fill:i,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),(0,r.jsx)("ellipse",{cx:"101.03",cy:"260.545",fill:i,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),(0,r.jsx)("ellipse",{cx:"108.459",cy:"265.905",fill:i,fillRule:"nonzero",opacity:"0.1",rx:"3.444",r
14y:"1"}),(0,r.jsx)("ellipse",{cx:"89.193",cy:"265.433",fill:i,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),(0,r.jsx)("path",{fill:i,fillRule:"nonzero",d:"M100.925 260.398s6.796-22.279-1.064-31.204c-5.881-6.676-12.557-5.877-15.547-5.052a5.528 5.528 0 00-3.564 2.963c-1.046 2.254-.858 5.913 6.521 10.186 12.35 7.151 13.119 16.96 13.119 16.96l.535 6.147z"}),(0,r.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M85.382 227.302s20.031 6.278 15.546 33.096M97.083 229.547s-2.76 1.86-1.88 4.655M87.39 231.203s1.687-1.716 3.741-.768M95.31 239.832s2.963-1.495 3.728.379M102.638 242.962s-2.224-.176-2.263.897"}),(0,r.jsx)("path",{fill:i,fillRule:"nonzero",d:"M101.2 260.575s-7.961-16.193-10.147-15.846c-1.037.17-1.516 1.196-1.734 2.218a6.516 6.516 0 00.434 3.941c1.13 2.601 4.165 7.519 11.447 9.687z"}),(0,r.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M91.113 247.808s8.353 12.115 9.968 12.647"}),(0,r.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M90.344 249.701L92.293 249.701"}),(0,r.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M92.68 254.132L95.738 254.263"}),(0,r.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M94.542 250.586L94.21 252.179"}),(0,r.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M97.792 255.432L97.732 256.879"}),(0,r.jsx)("path",{fill:i,fillRule:"nonzero",d:"M100.964 260.575s7.959-16.193 10.144-15.846c1.041.17 1.519 1.196 1.734 2.218a6.514 6.514 0 01-.433 3.941c-1.13 2.601-4.168 7.519-11.445 9.687z"}),(0,r.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.051 247.808s-8.371 12.115-9.97 12.647"}),(0,r.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.82 249.701L109.871 249.701"}),(0,r.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M109.485 254.132L106.426 254.263"}),(0,r.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M107.622 250.586L107.954 252.179"}),(0,r.jsx)("path",{stroke:d,strokeLinecap:"round",strokeWidth:"0.5",d:"M104.372 255.432L104.432 256.879"}),(0,r.jsx)("path",{fill:i,fillRule:"nonzero",d:"M87.295 264.357a1.375 1.375 0 01-.452-.685.599.599 0 01.317-.697c.3-.11.598.09.837.299.24.21.512.431.81.38a1.237 1.237 0 01-.382-1.16.47.47 0 01.105-.236c.161-.174.454-.099.648.039.598.43.787 1.264.79 2.018.03-.277.03-.555 0-.831a.853.853 0 01.334-.727.938.938 0 01.476-.114.988.988 0 01.774.222.767.767 0 01-.03.947c-.229.257-.5.474-.801.64a1.805 1.805 0 00-.571.547.399.399 0 00-.042.096h-1.74a4.826 4.826 0 01-1.073-.738zM117.626 257.833a1.355 1.355 0 01-.452-.682.599.599 0 01.314-.696c.299-.111.598.089.837.299.239.209.509.436.817.391a1.236 1.236 0 01-.386-1.157.472.472 0 01.107-.236c.162-.173.455-.099.649.036.613.433.787 1.268.79 2.021a4.008 4.008 0 000-.834.852.852 0 01.299-.736.955.955 0 01.475-.11.998.998 0 01.774.218.768.768 0 01-.033.951 2.996 2.996 0 01-.798.64 1.767 1.767 0 00-.571.544.499.499 0 00-.042.098h-1.701a4.78 4.78 0 01-1.079-.747zM107.518 264.357a1.406 1.406 0 01-.455-.
14685.6.6 0 01.317-.697c.299-.11.598.09.837.299.239.21.505.437.816.395a1.247 1.247 0 01-.385-1.16.472.472 0 01.107-.236c.162-.174.455-.099.649.039.613.43.783 1.264.789 2.018.03-.277.03-.555 0-.832a.855.855 0 01.314-.735.93.93 0 01.476-.114.988.988 0 01.774.222.764.764 0 01-.033.947 3.028 3.028 0 01-.798.64 1.798 1.798 0 00-.571.547.411.411 0 00-.042.096h-1.734c-.385-.2-.742-.45-1.061-.744z"}),(0,r.jsx)("circle",{cx:"84.467",cy:"87.003",r:"6.467",fill:i,fillRule:"nonzero",opacity:"0.1"}),(0,r.jsx)("circle",{cx:"395.425",cy:"138.681",r:"6.467",fill:i,fillRule:"nonzero",opacity:"0.1"}),(0,r.jsx)("circle",{cx:"279.178",cy:"66.467",r:"6.467",fill:i,fillRule:"nonzero",opacity:"0.1"}),(0,r.jsx)("circle",{cx:"97.4",cy:"122.68",r:"10.838",fill:i,fillRule:"nonzero",opacity:"0.1"}),(0,r.jsx)("path",{fill:l,fillRule:"nonzero",d:"M206.029 209.911c-7.975 0-14.44 6.465-14.44 14.44s6.465 14.44 14.44 14.44 14.44-6.465 14.44-14.44-6.465-14.44-14.44-14.44z"}),(0,r.jsx)("path",{fill:i,fillRule:"nonzero",d:"M206.029 211.59c7.047 0 12.761 5.714 12.761 12.761 0 7.048-5.714 12.761-12.761 12.761-7.048 0-12.761-5.713-12.761-12.761.006-7.045 5.716-12.754 12.761-12.761",opacity:"0.72"}),(0,r.jsx)("path",{fill:l,fillRule:"nonzero",d:"M200.058 225.406l-.699-.681a.721.721 0 010-1.065l6.127-5.984a.753.753 0 01.546-.231c.206 0 .404.083.545.231l6.127 5.978a.733.733 0 010 1.065l-.699.682a.768.768 0 01-1.091 0l-3.622-3.727v8.843a.725.725 0 01-.219.523.76.76 0 01-.534.217h-1.009a.75.75 0 01-.759-.74v-8.832l-3.622 3.726a.768.768 0 01-1.091-.005z"})]})})}const c=(0,i.memo)(d);function p(e){let{...t}=e;const o=(0,n.A)(),i=o.palette.primary.light,l=o.palette.primary.main,d=o.palette.primary.dark,c=o.palette.primary.darker;return(0,r.jsx)(s.A,{...t,children:(0,r.jsxs)("svg",{width:"100%",height:"100%",viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)(a,{}),(0,r.jsx)("image",{href:"/assets/illustrations/characters/character_4.png",height:"300",x:"220",y:"30"}),(0,r.jsx)("path",{fill:l,d:"M425.545 119.2c0-5-4.6-9-9.6-8.2-2-3.7-6-6-10.2-5.9 4.3-21.4-30-21.4-25.7 0-8.7-.8-15.1 9.4-10.4 16.8 2.1 3.5 5.9 5.6 10 5.5h38.7v-.1c4.1-.4 7.2-3.9 7.2-8.1zm-321.3 81.8c.1-4.2-4.1-7.8-8.2-7-1.7-3.2-5.1-5.1-8.8-5 3.8-18.4-25.8-18.4-22 0-7.4-.7-12.9 8.1-8.9 14.4 1.8 3 5.1 4.8 8.6 4.7h33.2v-.1c3.4-.4 6.1-3.4 6.1-7z",opacity:"0.08"}),(0,r.jsx)("path",{fill:"#FFAB00",d:"M111.045 142.2c58.7-1 58.6-88.3 0-89.2-58.6 1-58.6 88.3 0 89.2z",opacity:"0.12"}),(0,r.jsx)("path",{fill:"#FFD666",d:"M111.045 121c30.8-.5 30.8-46.3 0-46.8-30.8.5-30.8 46.3 0 46.8z"}),(0,r.jsx)("path",{fill:"#FBCDBE",d:"M278.045 250.1c-4.6-6.5-14 5.1-18.1 7.2-.6-2.1 1.5-41.3-1.4-41.8-2.8-3-8.1-.7-8 3.3.2-4 .5-11.3-5.6-10.2-4.8.6-3.8 6.9-3.8 10.2.1-6.1-9.5-6.1-9.4 0v5.6c.2-4.2-5.7-6.4-8.3-3-2.6-.2-.4 41.8-1.1 43.3-.2 10 8.7 19 18.8 18.7 6.1.4 12.6-1.2 16.8-5.9l19.7-21c1.7-1.6 1.8-4.5.4-6.4z"}),(0,r.jsx)("path",{fill:"#000",fillOpacity:"0.24",fillRule:"evenodd",d:"M248.745 212.3v32.8h1.9v-31.9c.1-2.9-2.8-5.2-5.6-4.6 2 0 3.7 1.7 3.7 3.7zm-9.4 5.6v27.2h1.9v-26.3c.1-2.8-2.8-5.2-5.5-4.6 1.9 0 3.6 1.8 3.6 3.7zm-9.4 27.2v-21.6c.1-2-1.7-3.7-3.7-3.8 2.8-.6 5.6 1.8 5.5 4.6V245h-1.8v.1z",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:c,d:"M244.945 189.8c-67.6 1.3-77 97-11 111.4 81 11.8 92.7-107.3 11-111.4zm-48.5 56.2c-1-40.4 49.8-63.8 79.9-36.9l-68.3 68.3c-7.5-8.7-11.6-19.9-11.6-31.4zm48.5 48.5c-11.5 0-22.7-4.1-31.4-11.6l68.3-68.3c27 30.1 3.5 80.9-36.9 79.9z"}),(0,r.jsx)("path",{fill:"url(#paint0_linear_1_129)",d:"M169.245 261h-11.3v-66.6c0-4.5-1.5-5.6-5.6-5.6-5.3.3-13.8-1.4-17.1 4l-55 68.3c-2.7 3.3-1.8 8.8-2 12.8 0 4.1 1.5 5.6 5.6 5.6h54.7v21.7c-.9 7.9 9.1 5.2 13.7 5.6 4.1 0 5.6-1.5 5.6-5.6v-21.7h11.4c4.4 0 5.6-1.5 5.6-5.6-.3-4.8 2-13.8-5.6-12.9zm-30.8 0h-36l36-44.4V261zm263.9 12.1c1.9 44.8-78.7 46-78 1.2h19.3c-.8 15.3 18.3 21.4 30.1 15.5 12.7-6 12.3-29.1-1-34-5.6-2.8-16.6-2-23.1-2.1v-15.1c6.3-.2 17.6.9 22.7-2.3 11.6-5.5 11.9-25.4.9-31.4-10.8-5.9-29 .1-28.2 14.5h-19.4c-.5-28.1 35.4-38.5 57-28.2 23.4 9 24.1 45.5-.2 54.6 12.3 3.9 20.1 14.6 19.9 27.3z"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"paint0_linear_1_129",x1:"78.245",x2:"78.245",y1:"187.309",y2:"307.306",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:i}),(0,r.jsx)("stop",{offset:"1",stopColor:d})]})})]})})}const u=(0,i.memo)(p)},33949(e,t,o){o.d(t,{A:()=>a});var i=o(9950),n=o(14857),r=o(41413),l=o(44414);const a=(0,i.forwardRef)((e,t)=>{let{color:o="default",children:i,sx:a,...s}=e;const d=(0,n.A)();return"default"===o?(0,l.jsx)(r.A,{ref:t,sx:a,...s,children:i}):(0,l.jsx)(r.A,{ref:t,sx:{fontWeight:d.typography.fontWeightMedium,color:d.palette[o].contrastText,backgroundColor:d.palette[o].main,...a},...s,children:i})})},66075(e,t,o){o.d(t,{A:()=>l});var i=o(14650),n=o(53011),r=o(44414);function l(e){let{icon:t,sx:o,...l}=e;return(0,r.jsx)(n.A,{component:i.In,icon:t,sx:{...o},...l})}},63575(e,t,o){o.d(t,{A:()=>l});var i=o(77923),n=o(53011),r=o(44414);function l(e){let{ratio:t,disabledEffect:o=!1,effect:l="blur",sx:s,...d}=e;return t?(0,r.jsx)(n.A,{component:"span",sx:{width:1,lineHeight:0,display:"block",overflow:"hidden",position:"relative",pt:a(t),"& .wrapper":{top:0,left:0,right:0,bottom:0,lineHeight:0,position:"absolute",backgroundSize:"cover !important"},...s},children:(0,r.jsx)(n.A,{component:i.LazyLoadImage,wrapperClassName:"wrapper",effect:o?void 0:l,placeholderSrc:"/assets/placeholder.svg",sx:{width:1,height:1,objectFit:"cover"},...d})}):(0,r.jsx)(n.A,{component:"span",sx:{lineHeight:0,display:"block",overflow:"hidden","& .wrapper":{width:1,height:1,backgroundSize:"cover !important"},...s},children:(0,r.jsx)(n.A,{component:i.LazyLoadImage,wrapperClassName:"wrapper",effect:o?void 0:l,placeholderSrc:"/assets/placeholder.svg",sx:{width:1,height:1,objectFit:"cover"},...d})})}function a(){return{"4/3":"calc(100% / 4 * 3)","3/4":"calc(100% / 3 * 4)","6/4":"calc(100% / 6 * 4)","4/6":"calc(100% / 4 * 6)","16/9"
14:"calc(100% / 16 * 9)","9/16":"calc(100% / 9 * 16)","21/9":"calc(100% / 21 * 9)","9/21":"calc(100% / 9 * 21)","1/1":"100%"}[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1/1"]}},47824(e,t,o){o.d(t,{A:()=>c});var i=o(63344),n=o(59254),r=o(97497),l=o(53011),a=o(44414);const s=(0,n.Ay)("div")(()=>({flexGrow:1,height:"100%",overflow:"hidden"})),d=(0,n.Ay)(i.A)(e=>{let{theme:t}=e;return{maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:(0,r.X4)(t.palette.grey[600],.48)},"&.simplebar-visible:before":{opacity:1}},"& .simplebar-track.simplebar-vertical":{width:10},"& .simplebar-track.simplebar-horizontal .simplebar-scrollbar":{height:6},"& .simplebar-mask":{zIndex:"inherit"}}});function c(e){let{children:t,sx:o,...i}=e;const n="undefined"===typeof navigator?"SSR":navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(n)?(0,a.jsx)(l.A,{sx:{overflowX:"auto",...o},...i,children:t}):(0,a.jsx)(s,{children:(0,a.jsx)(d,{timeout:500,clickOnTrack:!1,sx:o,...i,children:t})})}},70652(e,t,o){o.d(t,{A:()=>d});var i=o(9950),n=o(27081),r=o(59051),l=o.n(r),a=o(33507),s=o(44414);function d(){var e,t,o,r,d,c,p,u,h,x;const m=(0,n.wA)(),g=(0,a.A)(),[v,f]=(0,i.useState)(!1),[b,y]=(0,i.useState)(null),j=null===g||void 0===g||null===(e=g.user)||void 0===e||null===(t=e.customer_billing)||void 0===t?void 0:t.valid_to,A=l()(j,"YYYY-MM-DD HH:mm:ss").format("DD-MM-YYYY HH:mm:ss");var w,k,C,_,S,z,q,M,I,R,L,O,F,T,E,P,D,W,N;return(0,i.useEffect)(()=>{var e,t,o,i,n,r,l;const a=null===g||void 0===g||null===(e=g.user)||void 0===e?void 0:e.organisation_id;var s;1!==(null===g||void 0===g||null===(t=g.user)||void 0===t||null===(o=t.roles[0])||void 0===o?void 0:o.id)&&0===(null===g||void 0===g||null===(i=g.user)||void 0===i||null===(n=i.subscriptions)||void 0===n?void 0:n.length)?a&&null!==g&&void 0!==g&&null!==(s=g.user)&&void 0!==s&&s.customer_billing?f(!0):f(!1):f(!1);const d=null===g||void 0===g||null===(r=g.user)||void 0===r||null===(l=r.customer_billing)||void 0===l?void 0:l.valid_to;if(d){const e=new Date(d),t=new Date,o=Math.abs(t-e),i=Math.ceil(o/864e5);y(i<=14?i:0)}},[m,null===g||void 0===g||null===(o=g.user)||void 0===o?void 0:o.organisation_id,null===g||void 0===g?void 0:g.user.valid_to,null===g||void 0===g?void 0:g.user.is_trial,null===g||void 0===g||null===(r=g.user)||void 0===r?void 0:r.customer_billing,null===g||void 0===g||null===(d=g.user)||void 0===d?void 0:d.roles,null===g||void 0===g||null===(c=g.user)||void 0===c?void 0:c.subscriptions.length]),v?(0,s.jsx)(s.Fragment,{children:1!==(null===g||void 0===g||null===(w=g.user)||void 0===w?void 0:w.roles[0].id)&&(2===(null===g||void 0===g||null===(k=g.user)||void 0===k||null===(C=k.roles[0])||void 0===C?void 0:C.id)?(0,s.jsxs)(s.Fragment,{children:[(null===g||void 0===g||null===(_=g.user)||void 0===_?void 0:_.is_trial)&&(null===g||void 0===g||null===(S=g.user)||void 0===S?void 0:S.subscription_status)&&(0!==b?`You have ${b} ${1===b?"day":"days"} left of your free trial.`:"You are on our free plan, to access all of our time saving features."),(null===g||void 0===g||null===(z=g.user)||void 0===z?void 0:z.is_trial)&&!(null!==g&&void 0!==g&&null!==(q=g.user)&&void 0!==q&&q.subscription_status)&&"You are on our free plan, to access all of our time saving features.",!(null!==g&&void 0!==g&&null!==(M=g.user)&&void 0!==M&&M.is_trial)&&!(null!==(I=g.user)&&void 0!==I&&I.subscription_status)&&"You are on our free plan, to access all of our time saving features.",!(null!==g&&void 0!==g&&null!==(R=g.user)&&void 0!==R&&R.is_trial)&&(null===g||void 0===g||null===(L=g.user)||void 0===L?void 0:L.subscription_status)&&`Your current subscription is due to end on the ${A}, Update your payment details.`]}):(0,s.jsxs)(s.Fragment,{children:[(null===g||void 0===g||null===(O=g.user)||void 0===O?void 0:O.is_trial)&&(null===g||void 0===g||null===(F=g.user)||void 0===F?void 0:F.subscription_status)&&(0!==b?`Your free trial ends in ${b} ${1===b?"day":"days"}. Contact\n your Owner/Administrator.`:"You are on the free plan. To access more features, please contact your Owner/Administrator."),(null===g||void 0===g||null===(T=g.user)||void 0===T?void 0:T.is_trial)&&!(null!==g&&void 0!==g&&null!==(E=g.user)&&void 0!==E&&E.subscription_status)&&"You are on the free plan. To access more features, Please contact your Owner/Administrator.",!(null!==g&&void 0!==g&&null!==(P=g.user)&&void 0!==P&&P.is_trial)&&!(null!==g&&void 0!==g&&null!==(D=g.user)&&void 0!==D&&D.subscription_status)&&"You are on the free plan. To access more features, Please contact your Owner/Administrator.",!(null!==g&&void 0!==g&&null!==(W=g.user)&&void 0!==W&&W.is_trial)&&(null===g||void 0===g||null===(N=g.user)||void 0===N?void 0:N.subscription_status)&&`Your current subscription is due to end on the ${A}, Please contact your\n Owner/Administrator.`]}))}):2===(null===g||void 0===g||null===(p=g.user)||void 0===p||null===(u=p.roles[0])||void 0===u?void 0:u.id)&&(null===g||void 0===g||null===(h=g.user)||void 0===h?void 0:h.customer_billing)&&!(null!==g&&void 0!==g&&null!==(x=g.user)&&void 0!==x&&x.subscription_status)&&(0,s.jsx)(s.Fragment,{})}},98885(e,t,o){o.d(t,{ji:()=>A,qH:()=>S,ae:()=>M,se:()=>l,Sk:()=>r});const i=e=>({duration:(null===e||void 0===e?void 0:e.durationIn)||.64,ease:(null===e||void 0===e?void 0:e.easeIn)||[.43,.13,.23,.96]}),n=e=>({duration:(null===e||void 0===e?void 0:e.durationOut)||.48,ease:(null===e||void 0===e?void 0:e.easeOut)||[.43,.13,.23,.96]}),r=e=>{const t=(null===e||void 0===e?void 0:e.distance)||120,o=null===e||void 0===e?void 0:e.durationIn,r=null===e||void 0===e?void 0:e.durationOut,l=null===e||void 0===e?void 0:e.easeIn,a=null===e||void 0===e?void 0:e.easeOut;return{in:{initial:{opacity:0}
14,animate:{opacity:1,transition:i},exit:{opacity:0,transition:n}},inUp:{initial:{y:t,opacity:0},animate:{y:0,opacity:1,transition:i({durationIn:o,easeIn:l})},exit:{y:t,opacity:0,transition:n({durationOut:r,easeOut:a})}},inDown:{initial:{y:-t,opacity:0},animate:{y:0,opacity:1,transition:i({durationIn:o,easeIn:l})},exit:{y:-t,opacity:0,transition:n({durationOut:r,easeOut:a})}},inLeft:{initial:{x:-t,opacity:0},animate:{x:0,opacity:1,transition:i({durationIn:o,easeIn:l})},exit:{x:-t,opacity:0,transition:n({durationOut:r,easeOut:a})}},inRight:{initial:{x:t,opacity:0},animate:{x:0,opacity:1,transition:i({durationIn:o,easeIn:l})},exit:{x:t,opacity:0,transition:n({durationOut:r,easeOut:a})}},out:{initial:{opacity:1},animate:{opacity:0,transition:i({durationIn:o,easeIn:l})},exit:{opacity:1,transition:n({durationOut:r,easeOut:a})}},outUp:{initial:{y:0,opacity:1},animate:{y:-t,opacity:0,transition:i({durationIn:o,easeIn:l})},exit:{y:0,opacity:1,transition:n({durationOut:r,easeOut:a})}},outDown:{initial:{y:0,opacity:1},animate:{y:t,opacity:0,transition:i({durationIn:o,easeIn:l})},exit:{y:0,opacity:1,transition:n({durationOut:r,easeOut:a})}},outLeft:{initial:{x:0,opacity:1},animate:{x:-t,opacity:0,transition:i({durationIn:o,easeIn:l})},exit:{x:0,opacity:1,transition:n({durationOut:r,easeOut:a})}},outRight:{initial:{x:0,opacity:1},animate:{x:t,opacity:0,transition:i({durationIn:o,easeIn:l})},exit:{x:0,opacity:1,transition:n({durationOut:r,easeOut:a})}}}},l=e=>{const t=null===e||void 0===e?void 0:e.durationIn,o=null===e||void 0===e?void 0:e.durationOut,r=null===e||void 0===e?void 0:e.easeIn,l=null===e||void 0===e?void 0:e.easeOut;return{in:{initial:{},animate:{scale:[.3,1.1,.9,1.03,.97,1],opacity:[0,1,1,1,1,1],transition:i({durationIn:t,easeIn:r})},exit:{scale:[.9,1.1,.3],opacity:[1,1,0]}},inUp:{initial:{},animate:{y:[720,-24,12,-4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:{...i({durationIn:t,easeIn:r})}}
14,exit:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:n({durationOut:o,easeOut:l})}},inDown:{initial:{},animate:{y:[-720,24,-12,4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:i({durationIn:t,easeIn:r})},exit:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:n({durationOut:o,easeOut:l})}},inLeft:{initial:{},animate:{x:[-720,24,-12,4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:i({durationIn:t,easeIn:r})},exit:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0],transition:n({durationOut:o,easeOut:l})}},inRight:{initial:{},animate:{x:[720,-24,12,-4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:i({durationIn:t,easeIn:r})},exit:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0],transition:n({durationOut:o,easeOut:l})}},out:{animate:{scale:[.9,1.1,.3],opacity:[1,1,0]}},outUp:{animate:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outDown:{animate:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outLeft:{animate:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0]}},outRight:{animate:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0]}}}},a=e=>({animate:{transition:{staggerChildren:(null===e||void 0===e?void 0:e.staggerIn)||.05,delayChildren:(null===e||void 0===e?void 0:e.staggerIn)||.05}},exit:{transition:{staggerChildren:(null===e||void 0===e?void 0:e.staggerIn)||.05,staggerDirection:-1}}});var s=o(44414);var d=o(11942),c=o.n(d),p=o(37088),u=o(9950),h=o(52472),x=o(53011);const m=(0,u.forwardRef)((e,t)=>{let{size:o="large",children:i,sx:n,sxWrap:r,...l}=e;return(0,s.jsx)(b,{size:o,sxWrap:r,children:(0,s.jsx)(h.A,{ref:t,size:o,sx:n,...l,children:i})})});m.propTypes={children:c().node,color:c().oneOf(["inherit","default","primary","secondary","info","success","warning","error"]),size:c().oneOf(["small","medium","large"]),sx:c().object,sxWrap:c().object};const g={hover:{scale:1.07},tap:{scale:.97}},v={hover:{scale:1.06},tap:{scale:.98}},f={hover:{scale:1.05},tap:{scale:.99}};function b(e){let{size:t,children:o,sxWrap:i}=e;const n="small"===t,r="large"===t;return(0,s.jsx)(x.A,{component:p.m.div,whileTap:"tap",whileHover:"hover",variants:n&&g||r&&f||v,sx:{display:"inline-flex",...i},children:o})}var y=o(57073);const j=(0,u.forwardRef)((e,t)=>{let{children:o,size:i="medium",...n}=e;return(0,s.jsx)(_,{size:i,children:(0,s.jsx)(y.A,{size:i,ref:t,...n,children:o})})});j.propTypes={children:c().node,color:c().oneOf(["inherit","default","primary","secondary","info","success","warning","error"]),size:c().oneOf(["small","medium","large"])};const A=j,w={hover:{scale:1.1},tap:{scale:.95}},k={hover:{scale:1.09},tap:{scale:.97}},C={hover:{scale:1.08},tap:{scale:.99}};function _(e){let{size:t,children:o}=e;const i="small"===t,n="large"===t;return(0,s.jsx)(x.A,{component:p.m.div,whileTap:"tap",whileHover:"hover",variants:i&&w||n&&C||k,sx:{display:"inline-flex"},children:o})}function S(e){let{animate:t,action:o=!1,children:i,...n}=e;return o?(0,s.jsx)(x.A,{component:p.m.div,initial:!1,animate:t?"animate":"exit",variants:a(),...n,children:i}):(0,s.jsx)(x.A,{component:p.m.div,initial:"initial",animate:"animate",exit:"exit",variants:a(),...n,children:i})}var z=o(76721);const q=()=>Promise.all([o.e(3057),o.e(4099)]).then(o.bind(o,14099)).then(e=>e.default);function M(e){let{children:t}=e;return(0,s.jsx)(z.F,{strict:!0,features:q,children:(0,s.jsxs)(p.m.div,{style:{height:"100%"},children:[" ",t," "]})})}},78909(e,t,o){o.d(t,{Z:()=>r});var i=o(9950),n=o(88180);const r=()=>{const e=(0,i.useContext)(n.c);if(!e)throw new Error("useAuthContext context must be use inside AuthProvider");return e}},12402(e,t,o){o.d(t,{A:()=>r});var i=o(9449),n=o(44414);function r(e){let{children:t,onSubmit:o,methods:r}=e;return(0,n.jsx)(i.Op,{...r,children:(0,n.jsx)("form",{onSubmit:o,children:t})})}},95468(e,t,o){o.d(t,{SF:()=>c,tD:()=>v,CX:()=>L,b$:()=>E,tX:()=>y,b8:()=>b,o3:()=>O,BF:()=>a,Ay:()=>p.A});var i=o(9449),n=o(24516),r=o(8115),l=o(44414);function a(e){let{name:t,...o}=e;const{control:a}=(0,i.xW)();return(0,l.jsx)(i.xI,{name:t,control:a,render:e=>{let{field:t,fieldState:{error:i}}=e;const a=!!i&&!t.value;return(0,l.jsxs)("div",{children:[(0,l.jsx)(r.nZ,{accept:{"image/*":[]},error:a,file:t.value,...o}),a&&(0,l.jsx)(n.A,{error:!0,sx:{px:2,textAlign:"center"},children:i.message})]})}})}var s=o(16497),d=o(93038);function c(e){let{name:t,...o}=e;const{control:n}=(0,i.xW)();return(0,l.jsx)(i.xI,{name:t,control:n,render:e=>{let{field:t}=e;return(0,l.jsx)(s.A,{control:(0,l.jsx)(d.A,{...t,checked:t.value}),...o})}})}
14var p=o(12402),u=o(9950),h=o(93230),x=o(17154);const m="undefined"!==typeof window?u.useLayoutEffect:u.useEffect;const g=function(e,t,o,i){const n=(0,u.useRef)(t);m(()=>{n.current=t},[t]),(0,u.useEffect)(()=>{const t=(null===o||void 0===o?void 0:o.current)||window;if(!t||!t.addEventListener)return;const r=e=>n.current(e);return t.addEventListener(e,r,i),()=>{t.removeEventListener(e,r)}},[e,o,i])};function v(e){let{keyName:t="",inputs:o=[],...n}=e;const r=(0,u.useRef)(null),{control:a,setValue:s}=(0,i.xW)();return g("paste",e=>{let t=e.clipboardData.getData("text");t=t.split(""),o.map((e,o)=>s(e,t[o])),e.preventDefault()},r),(0,l.jsx)(h.A,{direction:"row",spacing:2,justifyContent:"center",ref:r,children:o.map((e,o)=>(0,l.jsx)(i.xI,{name:`${t}${o+1}`,control:a,render:e=>{let{field:i,fieldState:{error:r}}=e;return(0,l.jsx)(x.A,{...i,error:!!r,autoFocus:0===o,placeholder:"-",onChange:e=>{((e,o)=>{const{maxLength:i,value:n,name:r}=e.target,l=r.replace(t,""),a=Number(l),s=document.querySelector(`input[name=${t}${a+1}]`);n.length>i&&(e.target.value=n[0]),n.length>=i&&a<6&&null!==s&&s.focus(),o(e)})(e,i.onChange)},onFocus:e=>e.currentTarget.select(),InputProps:{sx:{width:{xs:36,sm:56},height:{xs:36,sm:56},"& input":{p:0,textAlign:"center"}}},inputProps:{maxLength:1,type:"number"},...n})}},e))})}var f=o(37324);function b(e){let{name:t,...o}=e;const{control:n}=(0,i.xW)();return(0,l.jsx)(i.xI,{name:t,control:n,render:e=>{let{field:t}=e;return(0,l.jsx)(s.A,{control:(0,l.jsx)(f.A,{...t,checked:t.value}),...o})}})}function y(e){let{name:t,children:o,...n}=e;const{control:r}=(0,i.xW)();return(0,l.jsx)(i.xI,{name:t,control:r,render:e=>{let{field:t,fieldState:{error:i}}=e;return(0,l.jsx)(x.A,{...t,select:!0,fullWidth:!0,SelectProps:{native:!0},error:!!i,helperText:null===i||void 0===i?void 0:i.message,...n,children:o})}})}var j=o(62486);o(93361);j.A.configure({languages:["javascript","jsx","sh","bash","html","scss","css","json"]}),"undefined"!==typeof window&&(window.hljs=j.A);var A=o(35254),w=o.n(A),k=o(59254),C=o(97497),_=o(53011);const S=(0,k.Ay)(_.A)(e=>{let{theme:t}=e;return{overflow:"hidden",position:"relative",borderRadius:t.shape.borderRadius,border:`solid 1px ${(0,C.X4)(t.palette.grey[500],.32)}`,"& .ql-container.ql-snow":{borderColor:"transparent",...t.typography.body1,fontFamily:t.typography.fontFamily},"& .ql-editor":{minHeight:200,maxHeight:640,"&.ql-blank::before":{fontStyle:"normal",color:t.palette.text.disabled},"& pre.ql-syntax":{...t.typography.body2,padding:t.spacing(2),borderRadius:t.shape.borderRadius,backgroundColor:t.palette.grey[900]}}}}),z=(0,k.Ay)("div")(e=>{let{theme:t}=e;const o="rtl"===t.direction;return{"& .ql-snow.ql-toolbar button:hover .ql-fill, .ql-snow .ql-toolbar button:hover .ql-fill, .ql-snow.ql-toolbar button:focus .ql-fill, .ql-snow .ql-toolbar button:focus .ql-fill, .ql-snow.ql-toolbar button.ql-active .ql-fill, .ql-snow .ql-toolbar button.ql-active .ql-fill, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill, .ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill, .ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill, .ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill, .ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill, .ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill, .ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill":{fill:t.palette.primary.main},"& .ql-snow.ql-toolbar button:hover, .ql-snow .ql-toolbar button:hover, .ql-snow.ql-toolbar button:focus, .ql-snow .ql-toolbar button:focus, .ql-snow.ql-toolbar button.ql-active, .ql-snow .ql-toolbar button.ql-active, .ql-snow.ql-toolbar .ql-picker-label:hover, .ql-snow .ql-toolbar .ql-picker-label:hover, .ql-snow.ql-toolbar .ql-picker-label.ql-active, .ql-snow .ql-toolbar .ql-picker-label.ql-active, .ql-snow.ql-toolbar .ql-picker-item:hover, .ql-snow .ql-toolbar .ql-picker-item:hover, .ql-snow.ql-toolbar .ql-picker-item.ql-selected, .ql-snow .ql-toolbar .ql-picker-item.ql-selected":{color:t.palette.primary.main},"& .ql-snow.ql-toolbar button:hover .ql-stroke, .ql-snow .ql-toolbar button:hover .ql-stroke, .ql-snow.ql-toolbar button:focus .ql-stroke, .ql-snow .ql-toolbar button:focus .ql-stroke, .ql-snow.ql-toolbar button.ql-active .ql-stroke, .ql-snow .ql-toolbar button.ql-active .ql-stroke, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke, .ql-snow.ql-toolbar button:hover .ql-stroke-miter, .ql-snow .ql-toolbar button:hover .ql-stroke-miter, .ql-snow.ql-toolbar button:focus .ql-stroke-miter, .ql-snow .ql-toolbar button:focus .ql-stroke-miter, .ql-snow.ql-toolbar button.ql-active .ql-stroke-miter, .ql-snow .ql-toolbar button.ql-active .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter"
14:{stroke:t.palette.primary.main},"& .ql-stroke":{stroke:t.palette.text.primary},"& .ql-fill, .ql-stroke.ql-fill":{fill:t.palette.text.primary},"& .ql-picker, .ql-picker-options, .ql-picker-item, .ql-picker-label, button":{"&:focus":{outline:"none"}},"& .ql-toolbar.ql-snow":{border:"none",borderBottom:`solid 1px ${(0,C.X4)(t.palette.grey[500],.32)}`,"& .ql-formats":{"&:not(:last-of-type)":{marginRight:t.spacing(2)}},"& button":{padding:0,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:4,color:t.palette.text.primary},"& button svg, span svg":{width:20,height:20},"& .ql-picker-label":{...t.typography.subtitle2,color:t.palette.text.primary,"& .ql-stroke":{stroke:t.palette.text.primary}},"& .ql-picker-label svg":{...o&&{right:"0 !important",left:"auto !important"}},"& .ql-color,& .ql-background,& .ql-align ":{"& .ql-picker-label":{padding:0,display:"flex",alignItems:"center",justifyContent:"center"}},"& .ql-expanded":{"& .ql-picker-label":{borderRadius:4,color:t.palette.text.disabled,borderColor:"transparent !important",backgroundColor:t.palette.action.focus,"& .ql-stroke":{stroke:t.palette.text.disabled}},"& .ql-picker-options":{padding:0,marginTop:4,border:"none",maxHeight:200,overflow:"auto",boxShadow:t.customShadows.z20,borderRadius:t.shape.borderRadius,backgroundColor:t.palette.background.paper},"& .ql-picker-item":{color:t.palette.text.primary},"&.ql-align":{"& .ql-picker-options":{padding:0,display:"flex"},"& .ql-picker-item":{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center"}},"&.ql-color, &.ql-background":{"& .ql-picker-options":{padding:8},"& .ql-picker-item":{margin:3,borderRadius:4,"&.ql-selected":{border:"solid 1px black"}}},"&.ql-font, &.ql-size, &.ql-header":{"& .ql-picker-options":{padding:t.spacing(1,0)},"& .ql-picker-item":{padding:t.spacing(.5,1.5)}}}}}}),q=["Heading 1","Heading 2","Heading 3","Heading 4","Heading 5","Heading 6"],M=["align","background","blockquote","bold","bullet","code","code-block","color","direction","font","formula","header","image","indent","italic","link","list","script","size","strike","table","underline","video"];function I(e){let{id:t,isSimple:o,...i}=e;return(0,l.jsx)(z,{...i,children:(0,l.jsxs)("div",{id:t,children:[(0,l.jsx)("div",{className:"ql-formats",children:(0,l.jsxs)("select",{className:"ql-header",defaultValue:"",children:[q.map((e,t)=>(0,l.jsx)("option",{value:t+1,children:e},e)),(0,l.jsx)("option",{value:"",children:"Normal"})]})}),(0,l.jsxs)("div",{className:"ql-formats",children:[(0,l.jsx)("button",{type:"button",className:"ql-bold"}),(0,l.jsx)("button",{type:"button",className:"ql-italic"}),(0,l.jsx)("button",{type:"button",className:"ql-underline"}),(0,l.jsx)("button",{type:"button",className:"ql-strike"})]}),!o&&(0,l.jsxs)("div",{className:"ql-formats",children:[(0,l.jsx)("select",{className:"ql-color"}),(0,l.jsx)("select",{className:"ql-background"})]}),(0,l.jsxs)("div",{className:"ql-formats",children:[(0,l.jsx)("button",{type:"button",className:"ql-list",value:"ordered"}),(0,l.jsx)("button",{type:"button",className:"ql-list",value:"bullet"}),!o&&(0,l.jsx)("button",{type:"button",className:"ql-indent",value:"-1"}),!o&&(0,l.jsx)("button",{type:"button",className:"ql-indent",value:"+1"})]}),!o&&(0,l.jsxs)("div",{className:"ql-formats",children:[(0,l.jsx)("button",{type:"button",className:"ql-script",value:"super"}),(0,l.jsx)("button",{type:"button",className:"ql-script",value:"sub"})]}),!o&&(0,l.jsxs)("div",{className:"ql-formats",children:[(0,l.jsx)("button",{type:"button",className:"ql-code-block"}),(0,l.jsx)("button",{type:"button",className:"ql-blockquote"})]}),(0,l.jsxs)("div",{className:"ql-formats",children:[(0,l.jsx)("button",{type:"button",className:"ql-direction",value:"rtl"}),(0,l.jsx)("select",{className:"ql-align"})]}),(0,l.jsxs)("div",{className:"ql-formats",children:[(0,l.jsx)("button",{type:"button",className:"ql-link"}),(0,l.jsx)("button",{type:"button",className:"ql-image"}),(0,l.jsx)("button",{type:"button",className:"ql-video"})]}),(0,l.jsxs)("div",{className:"ql-formats",children:[!o&&(0,l.jsx)("button",{type:"button",className:"ql-formula"}),(0,l.jsx)("button",{type:"button",className:"ql-clean"})]})]})})}function R(e){let{id:t="minimal-quill",error:o,value:i,onChange:n,simple:r=!1,helperText:a,sx:s,...d}=e;const c={toolbar:{container:`#${t}`},history:{delay:500,maxStack:100,userOnly:!0},syntax:!0,clipboard:{matchVisual:!1}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(S,{sx:{...o&&{border:e=>`solid 1px ${e.palette.error.main}`},...s},children:[(0,l.jsx)(I,{id:t,isSimple:r}),(0,l.jsx)(w(),{value:i,onChange:n,modules:c,formats:M,placeholder:"Write something awesome...",...d})]}),a&&a]})}function L(e){let{name:t,...o}=e;const{control:r}=(0,i.xW)();return(0,l.jsx)(i.xI,{name:t,control:r,render:e=>{let{field:i,fieldState:{error:r}}=e;return(0,l.jsx)(R,{id:t,value:i.value,onChange:i.onChange,error:!!r,helperText:(0,l.jsx)(n.A,{error:!0,sx:{px:2,textTransform:"capitalize"},children:null===r||void 0===r?void 0:r.message}),...o})}})}function O(e){let{name:t,...o}=e;const{control:n}=(0,i.xW)();return(0,l.jsx)(i.xI,{name:t,control:n,render:e=>{let{field:t,fieldState:{error:i}}=e;return(0,l.jsx)(x.A,{...t,fullWidth:!0,value:"number"===typeof t.value&&0===t.value?"":t.value,error:!!i,helperText:null===i||void 0===i?void 0:i.message,...o})}})}var F=o(58567),T=o(85815);function E(e){let{name:t,options:o,...r}=e;const{control:a}=(0,i.xW)();return(0,l.jsx)(i.xI,{name:t,control:a,render:e=>{let{field:t,fieldState:{error:i}}=e;return(0,l.jsxs)("div",{children:[(0,l.jsx)(F.A,{...t,row:!0,...r,children:o.map(e=>(0,l.jsx)(s.A,{value:e.value,control:(0,l.jsx)(T.A,{}),label:e.label},e.value))}),!!i&&(0,l.jsx)(n.A,{error:!0,sx:{px:2},children:i.message})]})}})}},8115(e,t,o){o.d(t,{_O:()=>T,nZ:()=>W});var i=o(97497),n=o(2235),r=o(53011),l=o(82053),a=o(63477);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e&&e.split(".").pop()||""}function d(e){return"string"===typeof e?{key:e,preview:e,name:(t=e,t.split("/").pop()),type:s(e)}:{key:e.preview,name:e.name,size:e.size,path:e.path,type:e.type,preview:e.preview,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate};var t}
14var c=o(83274),p=o(93230),u=o(14857),h=o(57073),x=o(61770),m=o(66075),g=o(44414);function v(e){let{onDownload:t}=e;const o=(0,u.A)();return(0,g.jsx)(h.A,{onClick:t,sx:{p:0,top:0,right:0,width:1,height:1,zIndex:9,opacity:0,position:"absolute",borderRadius:"unset",justifyContent:"center",bgcolor:"grey.800",color:"common.white",transition:o.transitions.create("opacity"),"&:hover":{opacity:1,...(0,x.Vz)({opacity:.64,color:o.palette.grey[900]})}},children:(0,g.jsx)(m.A,{icon:"eva:arrow-circle-down-fill",width:24})})}function f(e){let{file:t,tooltip:o,onDownload:i,imgSx:n}=e;const{name:l="",preview:a=""}=d(t),s=t.url||a,u=(0,g.jsx)(r.A,{component:"img",src:s,sx:{width:1,height:1,flexShrink:0,objectFit:"cover",...n}});return o?(0,g.jsx)(c.A,{title:l,children:(0,g.jsxs)(p.A,{flexShrink:0,component:"span",alignItems:"center",justifyContent:"center",sx:{width:"fit-content",height:"inherit"},children:[u,i&&(0,g.jsx)(v,{onDownload:i})]})}):(0,g.jsxs)(g.Fragment,{children:[u,i&&(0,g.jsx)(v,{onDownload:i})]})}function b(e){let{fileRejections:t}=e;return t.length?(0,g.jsx)(n.A,{variant:"outlined",sx:{py:1,px:2,mt:3,bgcolor:e=>(0,i.X4)(e.palette.error.main,.08),borderColor:e=>(0,i.X4)(e.palette.error.main,.24)},children:t.map((e,t)=>{let{file:o,errors:i}=e;const{path:n="",size:s=null}=o?d(o):{};return(0,g.jsxs)(r.A,{sx:{my:1},children:[(0,g.jsxs)(l.A,{variant:"subtitle2",noWrap:!0,children:[n," ",s?`- ${(0,a.tm)(s)}`:""]}),i.map(e=>(0,g.jsx)(r.A,{component:"span",sx:{typography:"caption"},children:e.message},e.code))]},t)})}):null}var y=o(9950),j=o(77923);function A(){return{"4/3":"calc(100% / 4 * 3)","3/4":"calc(100% / 3 * 4)","6/4":"calc(100% / 6 * 4)","4/6":"calc(100% / 4 * 6)","16/9":"calc(100% / 16 * 9)","9/16":"calc(100% / 9 * 16)","21/9":"calc(100% / 21 * 9)","9/21":"calc(100% / 9 * 21)","1/1":"100%"}[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1/1"]}const w=(0,y.forwardRef)((e,t)=>{let{ratio:o,disabledEffect:i=!1,effect:n="blur",sx:l,...a}=e;const s=(0,g.jsx)(r.A,{component:j.LazyLoadImage,wrapperClassName:"wrapper",effect:i?void 0:n,placeholderSrc:i?"/assets/transparent.png":"/assets/placeholder.svg",sx:{width:1,height:1,objectFit:"cover"},...a});return o?(0,g.jsx)(r.A,{ref:t,component:"span",sx:{width:1,lineHeight:1,display:"block",overflow:"hidden",position:"relative",pt:A(o),"& .wrapper":{top:0,left:0,width:1,height:1,position:"absolute",backgroundSize:"cover !important"},...l},children:s}):(0,g.jsx)(r.A,{ref:t,component:"span",sx:{lineHeight:1,display:"block",overflow:"hidden",position:"relative","& .wrapper":{width:1,height:1,backgroundSize:"cover !important"},...l},children:s})});function k(e){let{file:t}=e;if(!t)return null;const o="string"===typeof t?t:t.url?t.url:t.preview;return(0,g.jsx)(w,{alt:"avatar",src:(t.url,o),sx:{zIndex:8,overflow:"hidden",borderRadius:"50%",position:"absolute",width:"calc(100% - 16px)",height:"calc(100% - 16px)"}})}var C=o(60228),_=o(37088),S=o(98885);function z(e){let{thumbnail:t,files:o,onRemove:n,sx:r}=e;return null!==o&&void 0!==o&&o.length?(0,g.jsx)(C.N,{initial:!1,children:o.map((e,o)=>{const{name:s="",size:c=0}=d(e),u="string"===typeof e;return t?(0,g.jsxs)(p.A,{component:_.m.div,...(0,S.Sk)().inUp,alignItems:"center",display:"inline-flex",justifyContent:"center",sx:{m:.5,width:80,height:80,borderRadius:1.25,overflow:"hidden",position:"relative",border:e=>`solid 1px ${e.palette.divider}`,...r},children:[(0,g.jsx)(f,{tooltip:!0,imageView:!0,file:e,sx:{position:"absolute"},imgSx:{position:"absolute"}}),n&&(0,g.jsx)(h.A,{size:"small",onClick:()=>n(e),sx:{top:4,right:4,p:"1px",position:"absolute",color:e=>(0,i.X4)(e.palette.common.white,.72),bgcolor:e=>(0,i.X4)(e.palette.grey[900],.48),"&:hover":{bgcolor:e=>(0,i.X4)(e.palette.grey[900],.72)}},children:(0,g.jsx)(m.A,{icon:"eva:close-fill",width:16})})]},o+s):(0,g.jsxs)(p.A,{component:_.m.div,...(0,S.Sk)().inUp,spacing:2,direction:"row",alignItems:"center",sx:{my:1,px:1,py:.75,borderRadius:.75,border:e=>`solid 1px ${e.palette.divider}`,...r},children:[(0,g.jsx)(f,{file:e}),(0,g.jsxs)(p.A,{flexGrow:1,sx:{minWidth:0},children:[(0,g.jsx)(l.A,{variant:"subtitle2",noWrap:!0,children:u?e:s}),(0,g.jsx)(l.A,{variant:"caption",sx:{color:"text.secondary"},children:u?"":(0,a.tm)(c)})]}),n&&(0,g.jsx)(h.A,{edge:"end",size:"small",onClick:()=>n(e),children:(0,g.jsx)(m.A,{icon:"eva:close-fill"})})]},o)})}):null}var q=o(63575);function M(e){let{file:t}=e;if(!t)return null;const o="string"===typeof t?t:t.preview;return(0,g.jsx)(q.A,{alt:"file preview",src:o,sx:{top:8,left:8,zIndex:8,borderRadius:1,position:"absolute",width:"calc(100% - 16px)",height:"calc(100% - 16px)"}})}var I=o(30240),R=o(18216),L=o(59254),O=o(21401);const F=(0,L.Ay)("div")(e=>{let{theme:t}=e;return{outline:"none",cursor:"pointer",overflow:"hidden",position:"relative",padding:t.spacing(1,1),borderRadius:t.shape.borderRadius,transition:t.transitions.create("padding"),backgroundColor:t.palette.background.neutral,border:`1px dashed ${(0,i.X4)(t.palette.grey[500],.32)}`,"&:hover":{opacity:.72}}});function T(e){let{disabled:t,multiple:o=!1,error:n,helperText:l,file:a,onDelete:s,files:d,thumbnail:c,onRemove:u,onRemoveAll:x,sx:v,...f}=e;const{getRootProps:y,getInputProps:j,isDragActive:A,isDragReject:w,fileRejections:k}
14=(0,I.VB)({multiple:o,disabled:t,...f}),C=!!a&&!o,_=d&&o&&d.length>0,S=w||!!n;return(0,g.jsxs)(r.A,{sx:{width:1,position:"relative",...v},children:[(0,g.jsxs)(F,{...y(),sx:{...A&&{opacity:.72},...S&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...t&&{opacity:.48,pointerEvents:"none"},...C&&{padding:"12% 0"}},children:[(0,g.jsx)("input",{...j()}),(0,g.jsx)(E,{sx:{...C&&{opacity:0}}}),C&&(0,g.jsx)(M,{file:a})]}),(0,g.jsx)(b,{fileRejections:k}),C&&s&&(0,g.jsx)(h.A,{size:"small",onClick:s,sx:{top:16,right:16,zIndex:9,position:"absolute",color:e=>(0,i.X4)(e.palette.common.white,.8),bgcolor:e=>(0,i.X4)(e.palette.grey[900],.72),"&:hover":{bgcolor:e=>(0,i.X4)(e.palette.grey[900],.48)}},children:(0,g.jsx)(m.A,{icon:"eva:close-fill",width:12})}),_&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(r.A,{sx:{my:1},children:(0,g.jsx)(z,{files:d,thumbnail:c,onRemove:u})}),(0,g.jsx)(p.A,{direction:"row",justifyContent:"flex-end",spacing:1.5,children:x&&(0,g.jsx)(R.A,{color:"inherit",variant:"outlined",size:"small",onClick:x,children:"Remove all"})})]}),l&&l]})}function E(e){let{sx:t,...o}=e;return(0,g.jsxs)(p.A,{spacing:2,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:{width:1,textAlign:{xs:"center",md:"left"},...t},...o,children:[(0,g.jsx)(O.E4,{sx:{width:80}}),(0,g.jsx)(r.A,{sx:{p:1},children:(0,g.jsx)(l.A,{gutterBottom:!0,variant:"subtitle2",children:"Drop or Select file"})})]})}(0,L.Ay)("div")(e=>{let{theme:t}=e;return{width:64,height:64,fontSize:24,display:"flex",flexShrink:0,cursor:"pointer",alignItems:"center",justifyContent:"center",margin:t.spacing(.5),color:t.palette.text.disabled,borderRadius:t.shape.borderRadius,border:`dashed 1px ${t.palette.divider}`,backgroundColor:(0,i.X4)(t.palette.grey[500],.08),"&:hover":{opacity:.72}}});const P=(0,L.Ay)("div")(e=>{let{theme:t}=e;return{width:144,height:144,margin:"auto",display:"flex",cursor:"pointer",overflow:"hidden",borderRadius:"50%",alignItems:"center",position:"relative",justifyContent:"center",border:`1px dashed ${(0,i.X4)(t.palette.grey[500],.32)}`}}),D=(0,L.Ay)("div")(e=>{let{theme:t}=e;return{zIndex:7,display:"flex",borderRadius:"50%",position:"absolute",alignItems:"center",flexDirection:"column",justifyContent:"center",width:"calc(100% - 16px)",height:"calc(100% - 16px)",color:t.palette.text.disabled,backgroundColor:t.palette.background.neutral,transition:t.transitions.create("opacity",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.shorter})}});function W(e){let{error:t,file:o,disabled:n,helperText:r,sx:a,...s}=e;const{getRootProps:d,getInputProps:c,isDragActive:p,isDragReject:u,fileRejections:h}=(0,I.VB)({multiple:!1,disabled:n,...s}),x=!!o,v=u||!!t;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(P,{...d(),sx:{...p&&{opacity:.72},...v&&{borderColor:"error.light",...x&&{bgcolor:"error.lighter"}},...n&&{opacity:.48,pointerEvents:"none"},...x&&{"&:hover":{"& .placeholder":{opacity:1}}},...a},children:[(0,g.jsx)("input",{...c()}),x&&(0,g.jsx)(k,{file:o}),(0,g.jsxs)(D,{className:"placeholder",sx:{"&:hover":{opacity:.72},...x&&{zIndex:9,opacity:0,color:"common.white",bgcolor:e=>(0,i.X4)(e.palette.grey[900],.64)},...v&&{color:"error.main",bgcolor:"error.lighter"}},children:[(0,g.jsx)(m.A,{icon:"ic:round-add-a-photo",width:24,sx:{mb:1}}),(0,g.jsx)(l.A,{variant:"caption",children:o?"Update photo":"Upload photo"})]})]}),r&&r,(0,g.jsx)(b,{fileRejections:h})]})}},48775(e,t,o){o.d(t,{o:()=>s,y:()=>d});var i=o(9950),n=o(44414);const r={selectKitchenId:null,taskKitchenId:null,coolerKitchen:null,dashboardKitchen:null},l={SET_SELECT_KITCHEN:(e,t)=>({...e,selectKitchenId:t.payload}),SET_TASK_KITCHEN:(e,t)=>({...e,taskKitchenId:t.payload}),SET_COOLER_KITCHEN:(e,t)=>({...e,coolerKitchen:t.payload}),SET_DASHBOARD_KITCHEN:(e,t)=>({...e,dashboardKitchen:t.payload}),CLEAR_ALL:()=>({...r}),CLEAR_DASHBOARD:e=>({...e,dashboardKitchen:null}),CLEAR_COOLER:e=>({...e,coolerKitchen:null})},a=(e,t)=>l[t.type]?l[t.type](e,t):e,s=(0,i.createContext)({...r,setSelectKitchenId:()=>{},setTaskKitchenId:()=>{},setCoolerKitchen:()=>{},setDashboardKitchen:()=>{},clearAll:()=>{},clearDashboard:()=>{},clearCooler:()=>{}});function d(e){let{children:t}=e;const[o,l]=(0,i.useReducer)(a,r);return(0,n.jsx)(s.Provider,{value:{...o,setSelectKitchenId:e=>l({type:"SET_SELECT_KITCHEN",payload:e}),setTaskKitchenId:e=>l({type:"SET_TASK_KITCHEN",payload:e}
14),setCoolerKitchen:e=>l({type:"SET_COOLER_KITCHEN",payload:e}),setDashboardKitchen:e=>l({type:"SET_DASHBOARD_KITCHEN",payload:e}),clearAll:()=>l({type:"CLEAR_ALL"}),clearDashboard:()=>l({type:"CLEAR_DASHBOARD"}),clearCooler:()=>l({type:"CLEAR_COOLER"})},children:t})}},47258(e,t,o){o.d(t,{b:()=>p,n:()=>c});var i=o(9950),n=o(44414);const r="taskContext",l={taskId:null,isUpdate:!1,taskRowData:null,isPhotoMandatory:!1,fromTaskExecution:!1,kitchenId:null,dueDate:null,selectedTaskType:null,notificationIncident:null,notificationTask:null,fromPage:null},a={SET_TASK_ID:(e,t)=>({...e,taskId:t.payload}),SET_IS_UPDATE:(e,t)=>({...e,isUpdate:t.payload}),SET_TASK_ROW_DATA:(e,t)=>({...e,taskRowData:t.payload}),SET_PHOTO_MANDATORY:(e,t)=>({...e,isPhotoMandatory:t.payload}),SET_FROM_TASK_EXECUTION:(e,t)=>({...e,fromTaskExecution:t.payload}),SET_KITCHEN_ID:(e,t)=>({...e,kitchenId:t.payload}),SET_DUE_DATE:(e,t)=>({...e,dueDate:t.payload}),SET_SELECTED_TASK_TYPE:(e,t)=>({...e,selectedTaskType:t.payload}),SET_NOTIFICATION_INCIDENT:(e,t)=>({...e,notificationIncident:t.payload}),SET_NOTIFICATION_TASK:(e,t)=>({...e,notificationTask:t.payload}),SET_FROM_PAGE:(e,t)=>({...e,fromPage:t.payload}),CLEAR_TASK_DATA:()=>({...l})},s=(e,t)=>{const o=a[t.type]?a[t.type](e,t):e;return localStorage.setItem(r,JSON.stringify(o)),o},d=(0,i.createContext)({...l,setTaskId:()=>{},setIsUpdate:()=>{},setTaskRowData:()=>{},setIsPhotoMandatory:()=>{},setFromTaskExecution:()=>{},setKitchenId:()=>{},setDueDate:()=>{},setSelectedTaskType:()=>{},setNotificationIncident:()=>{},setNotificationTask:()=>{},setFromPage:()=>{},clearTaskData:()=>{}}),c=e=>{let{children:t}=e;const[o,a]=(0,i.useReducer)(s,(()=>{try{const e=localStorage.getItem(r);return e?JSON.parse(e):l}catch{return l}})());return(0,n.jsx)(d.Provider,{value:{...o,setTaskId:e=>a({type:"SET_TASK_ID",payload:e}),setIsUpdate:e=>a({type:"SET_IS_UPDATE",payload:e}),setTaskRowData:e=>a({type:"SET_TASK_ROW_DATA",payload:e}),setIsPhotoMandatory:e=>a({type:"SET_PHOTO_MANDATORY",payload:e}),setFromTaskExecution:e=>a({type:"SET_FROM_TASK_EXECUTION",payload:e}),setKitchenId:e=>a({type:"SET_KITCHEN_ID",payload:e}),setDueDate:e=>a({type:"SET_DUE_DATE",payload:e}),setSelectedTaskType:e=>a({type:"SET_SELECTED_TASK_TYPE",payload:e}),setNotificationIncident:e=>a({type:"SET_NOTIFICATION_INCIDENT",payload:e}),setNotificationTask:e=>a({type:"SET_NOTIFICATION_TASK",payload:e}),setFromPage:e=>a({type:"SET_FROM_PAGE",payload:e}),clearTaskData:()=>a({type:"CLEAR_TASK_DATA"})},children:t})},p=()=>(0,i.useContext)(d)},33507(e,t,o){o.d(t,{A:()=>r});var i=o(9950),n=o(88180);const r=()=>{const e=(0,i.useContext)(n.c);if(!e)throw new Error("Auth context must be use inside AuthProvider");return e}},98091(e,t,o){o.d(t,{A:()=>r});var i=o(14857),n=o(46589);function r(e,t,o){const r=(0,i.A)(),l=(0,n.A)(r.breakpoints.up(t)),a=(0,n.A)(r.breakpoints.down(t)),s=(0,n.A)(r.breakpoints.between(t,o)),d=(0,n.A)(r.breakpoints.only(t));return"up"===e?l:"down"===e?a:"between"===e?s:d}},72091(e,t,o){o.d(t,{A:()=>v});var i=o(82053),n=o(36080),r=o(93230),l=o(25045),a=o.n(l),s=o(63575),d=o(59254),c=o(97497),p=o(61770);const u=(0,d.Ay)("main")(()=>({height:"100%",display:"flex",position:"relative"})),h=(0,d.Ay)("div")(e=>{let{theme:t}=e;return{display:"none",position:"relative",[t.breakpoints.up("md")]:{flexGrow:1,display:"flex",alignItems:"center",backgroundColor:"#0d7d3e",justifyContent:"center",flexDirection:"column"}}}),x=(0,d.Ay)("div")(e=>{let{theme:t}=e;return{...(0,p.ab)({color:(0,c.X4)(t.palette.background.default,"light"===t.palette.mode?.9:.94)}),top:0,left:0,zIndex:-1,width:"100%",height:"100%",position:"absolute",transform:"scaleX(-1)"}}),m=(0,d.Ay)("div")(e=>{let{theme:t}=e;return{width:"100%",margin:"auto",display:"flex",maxWidth:"500px",justifyContent:"center",[t.breakpoints.up("md")]:{flexShrink:0,padding:t.spacing(12,4,4,4)}}});(0,d.Ay)("div")(e=>{let{theme:t}=e;return{width:"100%",maxWidth:"500px",marginLeft:"-30px",[t.breakpoints.between("sm","md")]:{marginTop:"0vh",marginLeft:"20vh",width:"50%",height:"100%"}}});var g=o(44414);function v(e){let{children:t}=e;const o=a().tz.guess().toLowerCase().includes("australia")?"https://www.foodsafesystem.com.au/":"https://www.foodsafesystem.com/";return(0,g.jsxs)(u,{children:[(0,g.jsxs)(h,{children:[(0,g.jsx)(i.A,{variant:"h3",color:"white",children:"Hi, Welcome Back"}),(0,g.jsx)(n.A,{href:o,target:"_blank",rel:"noopener noreferrer",children:(0,g.jsx)(s.A,{disabledEffect:!0,visibleByDefault:!0,alt:"auth",src:"assets/FSS_logo_green_bg.PNG",sx:{maxWidth:650,cursor:"pointer"}})}),(0,g.jsx)(x,{})]}),(0,g.jsx)(m,{children:(0,g.jsxs)(r.A,{sx:{width:1},children:[" ",t," "]})})]})}},26520(e,t,o){o.r(t),o.d(t,{default:()=>a});var i=o(76455),n=o(83884),r=o(72091),l=o(44414);function a(){return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(r.A,{children:[(0,l.jsx)(i.mg,{children:(0,l.jsx)("title",{children:" Login | FSS"})}),(0,l.jsx)(n.A,{})]})})}},83884(e,t,o){o.d(t,{A:()=>E});var i=o(60666),n=o(9950),r=o(42074),l=o(28429),a=o(27168),s=o(59051),d=o.n(s),c=o(9449),p=o(26473),u=o(14857),h=o(59254),x=o(46639),m=o(19808),g=o(93230),v=o(82053),f=o(65429),b=o(46483),y=o(57073),j=o(36080),A=o(74745),w=o(18216),k=o(28095),C=o(27081),_=o(62962),S=o(56761),z=o(17395),q=o(90260),M=o(33507),I=o(66075),R=o(95468),L=o(12402),O=o(6457),F=o(44414);const T=(0,h.Ay)("div")(()=>({maxWidth:360,justifyContent:"center",flexDirection:"column"}));function E(){const{login:e,googleLogin:t}=(0,M.A)(),o=(0,u.A)(),s=(0,C.d4)(e=>{let{loading:t}=e;return t.loading1}
14),h=(0,l.Zp)(),E=(0,C.wA)(),P=(0,n.useRef)(null),[D,W]=(0,n.useState)(!1),N=d().tz.guess().toLowerCase().includes("australia")?"https://www.foodsafesystem.com.au/":"https://www.foodsafesystem.com/",$=i.Ik().shape({username:i.Yj().email("Email Address must be a valid email").required("Email Address is required").max(50,"Email should not exceed 50"),password:i.Yj().required("Password is required").min(6,"Password must contain 6 characters including one special character").max(30,"Password length should not exceed 30")}),B=(0,c.mN)({resolver:(0,p.t)($),defaultValues:{username:"",password:"",remember:!0}}),{handleSubmit:H,formState:{errors:X,isSubmitting:Y}}=B,G=(0,a.mg)({onSuccess:async e=>{E((0,S.kr)());try{const r=await t(e);var o,i,n;if(r&&r.status)E((0,S.tY)()),null!==r&&void 0!==r&&null!==(o=r.data)&&void 0!==o&&o.access_token?(E((0,z.rG)({message:"User Successfully Logged In",variant:"success"})),h(q.nB.dashboard)):E((0,z.rG)({message:"Please login with username and password",variant:"error"}));if(r&&null!==r&&void 0!==r&&r.error)r&&(null===r||void 0===r||null===(i=r.error)||void 0===i?void 0:i.message)&&E((0,z.rG)({message:null===r||void 0===r||null===(n=r.error)||void 0===n?void 0:n.message,variant:"error"}));else r&&(null===r||void 0===r?void 0:r.message)&&E((0,z.rG)({message:null===r||void 0===r?void 0:r.message,variant:"error"}));E((0,S.tY)())}catch(r){E((0,S.tY)()),r&&(null===r||void 0===r?void 0:r.message)&&E((0,z.rG)({message:null===r||void 0===r?void 0:r.message,variant:"error"}))}},onError:()=>{E((0,z.rG)({message:"Google Login Failed",variant:"error"}))}});return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(L.A,{methods:B,onSubmit:H(async t=>{try{const c=P.current.getValue();if(c){var o;const p=await E((0,O.RU)({token:c}));if(null!==p&&void 0!==p&&null!==(o=p.payload)&&void 0!==o&&o.status){const o=await e(t.username,t.password);var i,n;if(P.current.reset(),o.status&&("EMAIL_OTP_VERIFY"===o.challenge?(E((0,z.rG)({message:`The Otp has been sent to ${t.username}`,variant:"success"})),h(q.pi.verifyotp)):(E((0,z.rG)({message:"Successfully Logged in",variant:"success"})),h(q.nB.dashboard))),null!==o&&void 0!==o&&o.error)null!==o&&void 0!==o&&null!==(i=o.error)&&void 0!==i&&i.message?E((0,z.rG)({message:null===o||void 0===o||null===(n=o.error)||void 0===n?void 0:n.message,variant:"error"})):(null===o||void 0===o?void 0:o.message)&&E((0,z.rG)({message:null===o||void 0===o?void 0:o.message,variant:"error"}));else(null===o||void 0===o?void 0:o.message)&&E((0,z.rG)({message:null===o||void 0===o?void 0:o.message,variant:"error"}))}else{var r,l,a,s,d;null!==p&&void 0!==p&&null!==(r=p.payload)&&void 0!==r&&null!==(l=r.error)&&void 0!==l&&l.message?E((0,z.rG)({message:null===p||void 0===p||null===(a=p.payload)||void 0===a?void 0:a.message,variant:"error"})):(null===p||void 0===p||null===(s=p.payload)||void 0===s?void 0:s.message)&&E((0,z.rG)({message:null===p||void 0===p||null===(d=p.payload)||void 0===d?void 0:d.message,variant:"error"}))}}else E((0,z.rG)({message:"Please tick the reCAPTCHA",variant:"error"}))}catch(c){(null===c||void 0===c?void 0:c.message)&&E((0,z.rG)({message:null===c||void 0===c?void 0:c.message,variant:"error"}))}}),children:(0,F.jsx)(m.A,{maxWidth:"sm",children:(0,F.jsxs)(T,{children:[(0,F.jsx)(g.A,{alignItems:"center",sx:{mt:-10,mb:2},children:(0,F.jsx)(v.A,{component:"a",href:N,target:"_blank",rel:"noopener noreferrer",sx:{fontSize:15,fontWeight:600,textDecoration:"none",color:"rgb(49,171,86)",position:"relative",transition:"all 0.3s ease","&:hover":{color:"#1e8f45"},"&:after":{content:'""',position:"absolute",width:"0%",height:"2px",bottom:-2,left:0,backgroundColor:"rgb(49,171,86)",transition:"width 0.3s ease"},"&:hover:after":{width:"100%"}},children:"\ud83c\udf10 Website"})}),(0,F.jsx)(v.A,{variant:"h3",textalign:"center",sx:{ml:17},color:"rgb(49,171,86)",children:"Sign in"}),(0,F.jsxs)(g.A,{spacing:2.5,sx:{mt:1,mb:1},children:[!!X.afterSubmit&&(0,F.jsx)(f.A,{severity:"error",children:X.afterSubmit.message}),(0,F.jsx)(R.o3,{name:"username",label:"Email address *",InputProps:{startAdornment:(0,F.jsx)(b.A,{position:"start",children:(0,F.jsx)(I.A,{color:"rgb(49,171,86)",icon:"material-symbols:mail"})})}}),(0,F.jsx)(R.o3,{name:"password",label:"Password *",type:D?"text":"password",InputProps:{startAdornment:(0,F.jsx)(b.A,{position:"start",children:(0,F.jsx)(I.A,{color:"rgb(49,171,86)",icon:"mdi:password"})}),endAdornment:(0,F.jsx)(b.A,{position:"end",children:(0,F.jsx)(y.A,{onClick:()=>W(!D),edge:"end",children:(0,F.jsx)(I.A,{color:"rgb(49,171,86)",icon:D?"eva:eye-fill":"eva:eye-off-fill"})})})},error:Boolean(X.password),helperText:X.password?X.password.message:"Password must be 6+ chars, with a special character."})]}),(0,F.jsxs)(g.A,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{my:2},children:[(0,F.jsx)(R.SF,{name:"remember",label:"Remember me"}),(0,F.jsx)(j.A,{to:q.pi.resetPassword,component:r.N_,variant:"body2",color:"rgb(49,171,86)",underline:"always",children:"Forgot password?"})]}),(0,F.jsx)(g.A,{direction:"row",alignItems:"center",justifyContent:"center",sx:{my:2},children:(0,F.jsx)(_.A,{sitekey:"6LetcYclAAAAAKCnsXi0PqkxtBvkLvukJTMssa3t",ref:P})}),(0,F.jsx)(k.A,{fullWidth:!0,size:"large",type:"submit",variant:"contained",loading:Y,children:"Login"}),(0,F.jsxs)(g.A,{direction:"row",spacing:.5,sx:{mt:2,ml:2},children:[(0,F.jsx)(v.A,{variant:"body2",children:"New user?"}),(0,F.jsx)(j.A,{to:q.pi.register,component:r.N_,variant:"subtitle2",children:"Create an account"})]}),(0,F.jsx)(A.A,{sx:{my:1.5,typography:"overline",color:"text.disabled","&::before, ::after":{borderTopStyle:"dashed"}},children:"OR"}),(0,F.jsx)(g.A,{direction:"row",spacing:2,sx:{mt:2},children:(0,F.jsxs)(w.A,{color:"info",variant:"outlined",disabled:s,onClick:()=>G(),sx:{width:"1000px"},fullWidth:!0,size:"large",children:[(0,F.jsx)(I.A,{icon:"flat-color-icons:google",width:"58px",height:"24px",color:o.palette.info.main,ml:"-10"}
14),"Sign in with Google"," ",(0,F.jsxs)("div",{style:{marginLeft:"20px"},children:[" ",s&&(0,F.jsx)(x.A,{size:14,color:"warning"})]})]})})]})})})})}},28747(e,t,o){o.d(t,{A:()=>_e});var i=o(9950),n=o(60666),r=o(59051),l=o.n(r),a=o(27081),s=o(9449),d=o(26473),c=o(96583),p=o(2235),u=o(57073),h=o(96319),x=o(25045),m=o.n(x),g=o(22329),v=o(53011),f=o(18216),b=o(82053),y=o(28095),j=o(46639),A=o(48089),w=o(14650),k=o(70146),C=o(44414);const _=(0,k.A)(v.A)(e=>{let{theme:t}=e;return{padding:t.spacing(4),display:"flex",justifyContent:"center",alignItems:"center",minHeight:"70vh",background:`linear-gradient(135deg, ${t.palette.primary.light}, ${t.palette.primary.main})`}}),S=(0,k.A)(A.A)(e=>{let{theme:t}=e;return{maxWidth:500,padding:t.spacing(4),textAlign:"center",boxShadow:t.shadows[10],borderRadius:t.spacing(3),backgroundColor:t.palette.background.paper}});function z(e){let{onOptionSelect:t}=e;return(0,C.jsx)(_,{children:(0,C.jsxs)(S,{children:[(0,C.jsx)(w.In,{icon:"noto:party-popper",width:"45",height:"45"}),(0,C.jsx)(b.A,{variant:"h4",fontWeight:"bold",color:"primary",gutterBottom:!0,children:"Welcome!"}),(0,C.jsx)(b.A,{variant:"h5",gutterBottom:!0,children:"Let's Setup Your Kitchen"}),(0,C.jsx)(b.A,{variant:"body1",color:"text.secondary",mb:4,children:"We\u2019ll guide you through a few simple steps to get everything ready."}),(0,C.jsx)(f.A,{variant:"contained",color:"primary",onClick:()=>{t&&t()},size:"large",sx:{borderRadius:3,px:4,mb:3},children:"\ud83d\ude80 Let's Go!"}),(0,C.jsx)(b.A,{variant:"body2",color:"text.secondary",children:"Step 1 of 3"})]})})}const q=(0,k.A)(v.A)(e=>{let{theme:t}=e;return{padding:t.spacing(3),textAlign:"center",background:`linear-gradient(135deg, ${t.palette.grey[50]}, #f0f5ff)`,borderRadius:16,minHeight:"70vh",display:"flex",flexDirection:"column",justifyContent:"center"}});const M=function(){return(0,C.jsxs)(q,{children:[(0,C.jsx)(b.A,{variant:"h5",color:"primary",fontWeight:700,gutterBottom:!0,sx:{mb:1},children:"Pre-fill essentials"}),(0,C.jsx)(b.A,{variant:"subtitle2s",sx:{mb:3,maxWidth:480,mx:"auto",color:"text.secondary"},children:"We\u2019ll help you set up your kitchen in a minute. You can customize everything later."}),(0,C.jsxs)(v.A,{sx:{p:3,borderRadius:3,boxShadow:"0 6px 20px rgba(0,0,0,0.06)",background:"#fff",maxWidth:460,width:"100%",mx:"auto",textAlign:"left"},children:[(0,C.jsxs)(v.A,{sx:{display:"flex",alignItems:"center",mb:1},children:[(0,C.jsx)(w.In,{icon:"ic:baseline-ac-unit",color:"#00AB55",width:"25",height:"28",style:{marginLeft:15}}),(0,C.jsx)(b.A,{fontWeight:550,sx:{pl:1},children:"Temperature Logging"})]}),(0,C.jsxs)(v.A,{sx:{pl:6.5},children:[" ",(0,C.jsx)(b.A,{variant:"body2",children:"\u2022 2 Refrigerators"}),(0,C.jsx)(b.A,{variant:"body2",children:"\u2022 1 Freezer"})]}),(0,C.jsxs)(v.A,{sx:{display:"flex",alignItems:"center",mt:2,mb:1},children:[(0,C.jsx)(w.In,{icon:"charm:notes-tick",color:"#00AB55",width:"25",height:"28",style:{marginLeft:15}}),(0,C.jsx)(b.A,{fontWeight:550,sx:{pl:1},children:"Checklist"})]}),(0,C.jsx)(v.A,{sx:{pl:6.5},children:(0,C.jsx)(b.A,{variant:"body2",children:"\u2022 Kitchen Daily Cleaning"})}),(0,C.jsxs)(v.A,{sx:{display:"flex",alignItems:"center",mt:2,mb:1},children:[(0,C.jsx)(w.In,{icon:"vaadin:records",color:"#00AB55",width:"25",height:"28",style:{marginLeft:15}}),(0,C.jsx)(b.A,{fontWeight:550,sx:{pl:1},children:"Daily Records"})]}),(0,C.jsxs)(v.A,{sx:{pl:6.5},children:[(0,C.jsx)(b.A,{variant:"body2",children:"\u2022 Cook"}),(0,C.jsx)(b.A,{variant:"body2",children:"\u2022 Cool"}),(0,C.jsx)(b.A,{variant:"body2",children:"\u2022 Reheat"})]})]})]})};var I=o(86362),R=o.n(I),L=o(14857),O=o(60899),F=o(93230),T=o(88283),E=o(95468);const P=T.i7` 15 from { 16 opacity: 0; 17 transform: translateY(-20px); 18 } 19 to { 20 opacity: 1; 21 transform: translateY(0); 22 } 23`,D=(0,k.A)(b.A)` 24 animation: ${P} 2s ease-out; 25 text-align: center; 26`;const W=function(){const e=(0,L.A)(),{control:t}=(0,s.xW)(),o="Asia/Calcutta"===m().tz.guess(!0)?"Asia/Kolkata":m().tz.guess(!0),i=m().tz.zone(o),n=i&&i.countries?i.countries().map(e=>e.toLowerCase()):[],r=0!==n.length?n[0]:null;return(0,C.jsx)(O.Ay,{item:!0,xs:6,md:8,children:(0,C.jsxs)(F.A,{spacing:2.5,sx:{mb:1,ml:2,mr:2},children:[(0,C.jsxs)(O.Ay,{rowGap:3,columnGap:2,display:"grid",gridTemplateColumns:{xs:"repeat(1, 1fr)",sm:"repeat(1, 1fr)"},children:[(0,C.jsx)(D,{variant:"h6",mt:1,mb:1,color:e.palette.primary.main,children:"Final Step"}),(0,C.jsx)(E.o3,{id:"organisation_name",name:"organisation_name",type:"text",size:"small",label:"Organisation Name*",InputLabelProps:{shrink:!0},control:t}),(0,C.jsx)(E.o3,{id:"name",name:"name",type:"text",size:"small",label:"Name*",InputLabelProps:{shrink:!0},control:t}),(0,C.jsx)(s.xI,{name:"user_phone",control:t,render:e=>{let{field:t,fieldState:{error:o}}=e;
26return(0,C.jsx)(R(),{defaultCountry:r||"us",autoFormat:!1,preferredCountries:["us","gb","in","au","sg"],value:t.value,onChange:e=>{t.onChange(e)},variant:"outlined",label:"Phone Number *",name:"user_phone",size:"small",error:!!o,helperText:null===o||void 0===o?void 0:o.message,InputLabelProps:{shrink:!0}})}})]}),(0,C.jsxs)(O.Ay,{sx:{mt:4,textAlign:"justify",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[(0,C.jsx)(b.A,{variant:"title",fontWeight:"bold",color:"black",children:"2-week PRO TWO PLAN free trial"}),(0,C.jsx)(b.A,{variant:"body2",mt:1,mb:3,children:"No payment details are required right now."}),(0,C.jsx)(b.A,{variant:"body2",mb:3,children:"if no plan is choosen you will default to the free plan & any other records will be lost."})]})]})})},N=["welcomeStep1","welcomeStep2","User Info"];function $(e,t){switch(e){case 0:return(0,C.jsx)(z,{onOptionSelect:()=>{t()}});case 1:return(0,C.jsx)(M,{onOptionSelect:()=>{t()}});default:return(0,C.jsx)(W,{onOptionSelect:t})}}function B(e){let{onFinalSubmit:t}=e;const{watch:o}=(0,s.xW)(),n=o(),[r,l]=(0,i.useState)(0),a=()=>{if(r===N.length-1){const e={no_of_fridges:2,no_of_freezers:1,records:["ccr"],daily_checklists:["kitchen_daily_cleaning_checklist"],weekly_checklists:[],delegate_tasks:!0,...n};t(e)}else l(e=>e+1)};return(0,C.jsx)(v.A,{children:r===N.length?(0,C.jsx)(v.A,{sx:{p:3,display:"flex",flexDirection:"column",alignItems:"center"},children:(0,C.jsx)(j.A,{})}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.A,{children:$(r,a)}),(0,C.jsxs)(v.A,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:1.5},children:[r>0?(0,C.jsx)(f.A,{sx:{color:"grey"},onClick:()=>{l(e=>e-1)},children:"Back"}):(0,C.jsx)("span",{}),r>0&&(0,C.jsxs)(b.A,{variant:"body2",color:"text.secondary",children:["Step ",r+1," of ",N.length]}),r>0&&(0,C.jsx)(y.A,{variant:"contained",color:"primary",onClick:a,disabled:r===N.length-1&&(""===n.organisation_name||""===n.name||n.user_phone.length<=8||""===n.user_phone),children:r===N.length-1?"Let's go":"Next"})]})]})})}var H=o(33507),X=o(65462),Y=o(59254),G=o(61770),K=o(66075),Z=o(84142),U=o(82917),V=o(38039),J=o(4919),Q=o(72362),ee=o(50704),te=o(99963),oe=o(85849),ie=o(68811),ne=o(80888),re=o(11942),le=o.n(re);const ae=(0,i.forwardRef)((e,t)=>{let{icon:o,width:i=20,sx:n,...r}=e;return(0,C.jsx)(v.A,{ref:t,component:w.In,icon:o,sx:{width:i,height:i,...n},...r})});ae.propTypes={sx:le().object,width:le().oneOfType([le().number,le().string]),icon:le().oneOfType([le().element,le().string])};const se=ae;var de=o(97497);const ce=(0,i.forwardRef)((e,t)=>{let{quantity:o,onIncrease:i,onDecrease:n,disabledIncrease:r,disabledDecrease:l,sx:a,...s}=e;return(0,C.jsxs)(F.A,{ref:t,flexShrink:0,direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:.5,py:.5,px:.75,width:96,borderRadius:1,border:e=>`solid 1px ${(0,de.X4)(e.palette.grey[500],.32)}`,...a},...s,children:[(0,C.jsx)(u.A,{size:"small",color:"inherit",onClick:n,disabled:l,sx:{color:"text.secondary"},children:(0,C.jsx)(K.A,{icon:"eva:minus-fill",width:16})}),o,(0,C.jsx)(u.A,{size:"small",color:"inherit",onClick:i,disabled:r,sx:{color:"text.secondary"},children:(0,C.jsx)(K.A,{icon:"eva:plus-fill",width:16})})]})});ce.propTypes={sx:le().object,onDecrease:le().func,onIncrease:le().func,quantity:le().number,disabledDecrease:le().bool,disabledIncrease:le().bool};const pe=ce;function ue(e){var t,o;const n=null===e||void 0===e?void 0:e.list,{setValue:r,watch:l}=(0,s.xW)(),a=l(),{user:d}=(0,H.A)(),[c,u]=(0,i.useState)((null===a||void 0===a?void 0:a.sensors_count)||3),[h,x]=(0,i.useState)((null===a||void 0===a?void 0:a.kitchens_count)||1),[m,g]=(0,i.useState)(0),f=1===(null===d||void 0===d||null===(t=d.customer_gateway)||void 0===t?void 0:t.setup_fee_charged)||3!==(null===n||void 0===n?void 0:n.meta_plan_id)&&6!==(null===n||void 0===n?void 0:n.meta_plan_id)?0:Number(null===n||void 0===n?void 0:n.setup_fee),[y,j]=(0,i.useState)(0),[A,w]=(0,i.useState)(0);(0,i.useEffect)(()=>{1!==(null===n||void 0===n?void 0:n.meta_plan_id)&&4!==(null===n||void 0===n?void 0:n.meta_plan_id)||k(),2!==(null===n||void 0===n?void 0:n.meta_plan_id)&&5!==(null===n||void 0===n?void 0:n.meta_plan_id)||S(Number(h)),3!==(null===n||void 0===n?void 0:n.meta_plan_id)&&6!==(null===n||void 0===n?void 0:n.meta_plan_id)||_(Number(c))},[null===n||void 0===n?void 0:n.meta_plan_id]);const k=()=>{const e=Number(null===n||void 0===n?void 0:n.amount),t=(Number(e)*(Number(null===n||void 0===n?void 0:n.tax_percent)/100)).toFixed(2),o=e-(a.discount||0)+Number(t);g(e),w(o),j(t),r("sensors_count",0),r("meta_plan_id",null===n||void 0===n?void 0:n.meta_plan_id),r("kitchens_count",0),r("plan_id",null===n||void 0===n?void 0:n.id)},_=e=>{const t=c>=3?Number(null===n||void 0===n?void 0:n.amount)*Number(e):Number(null===n||void 0===n?void 0:n.amount),o=((Number(t)+Number(f))*(Number(null===n||void 0===n?void 0:n.tax_percent)/100)).toFixed(2),i=t-(a.discount||0)+Number(o)+f;g(t),w(i),j(o),r("sensors_count",e),r("meta_plan_id",null===n||void 0===n?void 0:n.meta_plan_id),r("kitchens_count",0),r("plan_id",null===n||void 0===n?void 0:n.id)},S=e=>{const t=Number(null===n||void 0===n?void 0:n.amount)*Number(e),o=((Number(t)+Number(f))*(Number(null===n||void 0===n?void 0:n.tax_percent)/100)).toFixed(2),i=t-(a.discount||0)+Number(o)+f;g(t),w(i),j(o),r("kitchens_count",e),r("meta_plan_id",null===n||void 0===n?void 0:n.meta_plan_id),r("sensors_count",0),r("plan_id",null===n||void 0===n?void 0:n.id)};return(0,C.jsxs)(v.A,{sx:{p:1},children:[(0,C.jsx)(b.A,{variant:"h6",sx:{color:"text.disabled",mb:.1},children:"Details :"}),(0,C.jsxs)(F.A,{spacing:.5,sx:{mt:0},children:[3===(null===n||void 0===n?void 0:n.meta_plan_id)||6===(null===n||void 0===n?void 0:n.meta_plan_id)?(0,C.jsxs)(F.A,{direction:"row",justifyContent:"flex-end",children:[(0,C.jsx)(b.A,{variant:"body2",color:"text.secondary",children:"Number of Sensors/Freezers :"}),(0,C.jsx)(p.A,{sx:{textAlign:"right",width:120,paddingLeft:4},children:(0,C.jsx)(pe,{quantity:c,onDecrease:()=>(u(Number(c)-1),void _(Number(c)-1)),onIncrease:()=>(u(Number(c)+1),void _(Number(c)+1)),disabledDecrease:c<=3})})]}):null,2===(null===n||void 0===n?void 0:n.meta_plan_id)||5===(null===n||void 0===n?void 0:n.meta_plan_id)?(0,C.jsxs)(F.A,{direction:"row",justifyContent:"flex-end",children:[(0,C.jsx)(b.A,{variant:"body2",color:"text.secondary",children:"Number of Kitchens :"}),(0,C.jsx)(p.A,{sx:{textAlign:"right",width:120,paddingLeft:4},children:(0,C.jsx)(pe,{quantity:h,onDecrease:()=>(x(Number(h)-1),void S(Number(h)-1)),onIncrease:()=>(x(Number(h)+1),void S(Number(h)+1)),disabledDecrease:h<=1})})]}):null,(0,C.jsxs)(F.A,{direction:"row",justifyContent:"flex-end",children:[(0,C.jsxs)(b.A,{variant:"body2",color:"text.secondary",children:[3===(null===n||void 0===n?void 0:n.meta_plan_id)?`Billed Monthly For ${c} Sensors + Software`:6===(null===n||void 0===n?void 0:n.meta_plan_id)?`Billed Annually For ${c} Sensors + Software`:2===(null===n||void 0===n?void 0:n.meta_plan_id)||5===(null===n||void 0===n?void 0:n.meta_plan_id)?`Billed For ${h} Kitchens`:"Subtotal",":"]}),(0,C.jsx)(b.A,{sx:{textAlign:"right",width:120},children:(0,ne.E)({code:null===n||void 0===n?void 0:n.currency,amount:m.toFixed(2)})})]}),1===(null===d||void 0===d||null===(o=d.customer_gateway)||void 0===o?void 0:o.setup_fee_charged)||3!==(null===n||void 0===n?void 0:n.meta_plan_id)&&6!==(null===n||void 0===n?void 0:n.meta_plan_id)?null:(0,C.jsxs)(F.A,{direction:"row",justifyContent:"flex-end",children:[(0,C.jsx)(b.A,{variant:"body2",color:"text.secondary",children:"One-Time Setup Fee :"}),(0,C.jsx)(b.A,{sx:{textAlign:"right",width:120},children:(0,ne.E)({code:null===n||void 0===n?void 0:n.currency,amount:Number(f)})})]}),null!==n&&void 0!==n&&n.tax_percent?(0,C.jsxs)(F.A,{direction:"row",justifyContent:"flex-end",children:[(0,C.jsxs)(b.A,{variant:"body2",color:"text.secondary",children:["+",null===n||void 0===n?void 0:n.tax_percent,"% (",n.tax_type,") :"]}
26),(0,C.jsx)(b.A,{sx:{textAlign:"right",width:120},children:(0,ne.E)({code:null===n||void 0===n?void 0:n.currency,amount:Number(y).toFixed(2)})})]}):null,(0,C.jsxs)(F.A,{direction:"row",justifyContent:"flex-end",children:[(0,C.jsx)(b.A,{variant:"h6",mt:1,mb:3,children:"Total Payment :"}),(0,C.jsx)(b.A,{variant:"h6",mt:1,mb:3,sx:{textAlign:"right",width:120},children:(0,ne.E)({code:null===n||void 0===n?void 0:n.currency,amount:Number(A).toFixed(2)})})]})]})]})}function he(e){const{planData:t}=e,o=(0,a.wA)(),n=(0,L.A)(),r=(0,H.A)(),l=(0,a.d4)(e=>{let{loading:t}=e;return t.loading1}),[s,d]=(0,i.useState)("1"),[u,h]=(0,i.useState)([]),[x,m]=(0,i.useState)(!1),[g,y]=(0,i.useState)(null),w=(0,a.d4)(e=>{let{payments:t}=e;return t.subscriptions}),k=[...w.filter(e=>"Monthly"===e.interval),"EnterprisePlan"],_=[...w.filter(e=>"Yearly"===e.interval),"EnterprisePlan"],S=["Fully tailored solution for your businesses","Custom-branded apps& dashboard","API acess for seamless intration with existing software"],z=k.find(e=>3===e.meta_plan_id),[q,M]=(0,i.useState)(t||z),[I,R]=(0,i.useState)("");(0,i.useEffect)(()=>{4===(null===t||void 0===t?void 0:t.meta_plan_id)||5===(null===t||void 0===t?void 0:t.meta_plan_id)||6===(null===t||void 0===t?void 0:t.meta_plan_id)?d("2"):d("1")},[t]);const F=(e,t)=>{const o=null!==t&&void 0!==t&&t.features?JSON.parse(t.features):[],i=null===t||void 0===t?void 0:t.features_title;h(o),R(i),y(e.currentTarget)},T=()=>{y(null),h([])},E=e=>{g||M(e)};return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("br",{}),(0,C.jsxs)(te.Ay,{value:s,children:[(0,C.jsx)(v.A,{sx:{justifyContent:"start"},children:(0,C.jsx)(O.Ay,{container:!0,direction:"row",justifyContent:"center",alignItems:"baseline",children:(0,C.jsxs)(oe.A,{onChange:(e,t)=>
26{d(t)},"aria-label":"disabled tabs example",children:[(0,C.jsx)(Z.A,{label:"Monthly",value:"1"}),(0,C.jsx)(Z.A,{label:"Yearly",value:"2"})]})})}),(0,C.jsxs)(ie.A,{value:"1",children:[0===w.length&&(0,C.jsxs)(O.Ay,{container:!0,spacing:2,children:[(0,C.jsx)(O.Ay,{item:!0,xs:12,sm:6,md:4,children:(0,C.jsx)(U.A,{sx:{height:180,borderRadius:2},animation:"wave",variant:"rectangular"})}),(0,C.jsx)(O.Ay,{item:!0,xs:12,sm:6,md:4,children:(0,C.jsx)(U.A,{sx:{height:180,borderRadius:2},animation:"wave",variant:"rectangular"})}),(0,C.jsx)(O.Ay,{item:!0,xs:12,sm:6,md:4,children:(0,C.jsx)(U.A,{sx:{height:180,borderRadius:2},animation:"wave",variant:"rectangular"})}),(0,C.jsx)(O.Ay,{item:!0,xs:12,sm:6,md:4,children:(0,C.jsx)(U.A,{sx:{height:180,borderRadius:2},animation:"wave",variant:"rectangular"})})]}),(0,C.jsx)(O.Ay,{container:!0,spacing:2,children:k.map(e=>{var t,o;const i=null!==e&&void 0!==e&&e.features?JSON.parse(e.features):[];return"EnterprisePlan"===e?(0,C.jsx)(O.Ay,{item:!0,xs:12,sm:6,md:3,children:(0,C.jsx)(A.A,{sx:{display:"flex",flexDirection:"column",minHeight:240,height:"100%",color:"black",backgroundColor:(null===e||void 0===e?void 0:e.id)===(null===q||void 0===q?void 0:q.id)?n.palette.primary.overlight:"","&:hover":{background:n.palette.primary.overlight,color:"black",transform:"scale(1.05)",transition:"transform 0.3s ease-in-out"},boxShadow:"0 8px 20px rgba(0, 0, 0, 0.2)"},children:(0,C.jsxs)(ee.A,{children:[(0,C.jsx)(O.Ay,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"baseline",children:(0,C.jsx)(O.Ay,{item:!0,children:(0,C.jsx)(b.A,{variant:"h6",sx:{fontSize:"18px",fontWeight:"600"},children:"Enterprise Plan"})})}),(0,C.jsx)(b.A,{fontWeight:600,fontSize:13,mt:1,children:"Custom Pricing available"}),(0,C.jsx)(b.A,{gutterBottom:!0,component:"div",fontSize:12,py:.5,color:n.palette.grey[600],children:"Tailored for large-scale, multi-location businesses."}),(0,C.jsx)("hr",{}),(0,C.jsx)(b.A,{fontSize:13,fontWeight:600,children:"Includes All Pro+ Plan, Plus:"}),(0,C.jsx)(b.A,{component:"span",fontSize:12,color:n.palette.grey[600],children:(0,C.jsx)("ul",{style:{paddingLeft:15},children:S.map((e,t)=>(0,C.jsx)("li",{children:e},t))})}),(0,C.jsx)("br",{}),(0,C.jsx)(v.A,{sx:{p:2},children:(0,C.jsx)(f.A,{fullWidth:!0,variant:"contained",color:"primary",onClick:()=>m(!0),children:"Contact Us"})})]})})},"enterprice"):(0,C.jsx)(O.Ay,{item:!0,xs:12,sm:6,md:3,children:(0,C.jsx)(A.A,{sx:{display:"flex",flexDirection:"column",minHeight:240,height:"100%",color:(null===e||void 0===e?void 0:e.id)===(null===q||void 0===q?void 0:q.id)?"white":"black",backgroundColor:(null===e||void 0===e?void 0:e.id)===(null===q||void 0===q?void 0:q.id)?n.palette.primary.main:"","&:hover":{background:n.palette.primary.overlight,color:"black",transform:"scale(1.05)",transition:"transform 0.3s ease-in-out"},boxShadow:"0 8px 20px rgba(0, 0, 0, 0.2)"},onClick:()=>E(e),children:(0,C.jsxs)(V.A,{sx:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[null!==e&&void 0!==e&&e.recommendation?(0,C.jsx)(p.A,{sx:{position:"absolute",top:0,left:0,right:0,backgroundColor:3===(null===e||void 0===e?void 0:e.meta_plan_id)?n.palette.primary.main:"",color:"white",textAlign:"center",padding:"8px 0",fontWeight:"bold",borderRadius:"2px",fontSize:"14px"},elevation:2,children:null===e||void 0===e?void 0:e.recommendation}):null,(0,C.jsxs)(ee.A,{children:[(0,C.jsxs)(O.Ay,{container:!0,direction:"row",mb:1,mt:3===(null===e||void 0===e?void 0:e.meta_plan_id)&&2,justifyContent:"space-between",alignItems:"center",children:[(0,C.jsx)(b.A,{variant:"h6",fontWeight:700,children:null===e||void 0===e?void 0:e.title}),(0,C.jsx)(J.A,{onClick:t=>F(t,e),children:(0,C.jsx)(se,{icon:"ep:info-filled",color:n.palette.warning.main,width:18,height:18})}),(0,C.jsx)(Q.Ay,{open:Boolean(g),anchorEl:g,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:(0,C.jsxs)(v.A,{sx:{p:2,maxWidth:300},children:[(0,C.jsx)(b.A,{variant:"subtitle1",gutterBottom:!0,children:I}),null===u||void 0===u?void 0:u.map((e,t)=>(0,C.jsx)(v.A,{pl:3,children:(0,C.jsx)(O.Ay,{container:!0,direction:"row",justifyContent:"start",alignItems:"baseline",children:(0,C.jsx)(O.Ay,{item:!0,children:(0,C.jsx)("ul",{children:(0,C.jsx)("li",{children:(0,C.jsx)(b.A,{component:"span",fontSize:12,variant:"body2",sx:{color:"gray"},children:e})})})})})},t))]})})]}),(0,C.jsxs)(b.A,{fontSize:14,fontWeight:600,children:[(0,ne.E)({code:null===e||void 0===e?void 0:e.currency,amount:Number(null===e||void 0===e?void 0:e.amount)}),(0,C.jsxs)("span",{style:{fontSize:"12px",color:"black",opacity:.6},children:[" ","\xa0",null===e||void 0===e?void 0:e.interval,3===(null===e||void 0===e?void 0:e.meta_plan_id)||6===(null===e||void 0===e?void 0:e.meta_plan_id)?" Per Sensor ":""]})]}),1!==(null===r||void 0===r||null===(t=r.user)||void 0===t||null===(o=t.customer_gateway)||void 0===o?void 0:o.setup_fee_charged)&&(3===(null===e||void 0===e?void 0:e.meta_plan_id)||6===(null===e||void 0===e?void 0:e.meta_plan_id))&&(0,C.jsxs)(b.A,{fontSize:13,fontWeight:600,children:[(0,ne.E)({code:null===e||void 0===e?void 0:e.currency,amount:Number(null===e||void 0===e?void 0:e.setup_fee)}),(0,C.jsx)("span",{style:{fontSize:"11px",color:"black",opacity:.6},children:"\xa0 One-time cost for hardware"}),(0,C.jsx)("br",{})]}),e.tax_percent&&(0,C.jsxs)(b.A,{variant:"button",fontSize:13,color:"black",marginTop:8,children:["+",e.tax_percent,"% (",e.tax_type,")"]}),(0,C.jsx)(b.A,{gutterBottom:!0,component:"div",py:.5,fontSize:12,color:(null===e||void 0===e?void 0:e.id)===(null===q||void 0===q?void 0:q.id)?n.palette.grey[800]:n.palette.grey[600],children:null===e||void 0===e?void 0:e.subt
26itle}),(0,C.jsx)("hr",{}),(0,C.jsx)(b.A,{fontSize:13,fontWeight:600,children:null===e||void 0===e?void 0:e.features_title}),(0,C.jsx)(b.A,{component:"span",fontSize:12,color:(null===e||void 0===e?void 0:e.id)===(null===q||void 0===q?void 0:q.id)?n.palette.grey[800]:n.palette.grey[600],children:(0,C.jsx)("ul",{style:{paddingLeft:15},children:i.slice(0,4).map((e,t)=>(0,C.jsx)("li",{children:e},t))})})]})]})})},null===e||void 0===e?void 0:e.uuid)})})]}),(0,C.jsxs)(ie.A,{value:"2",children:[0===w.length&&(0,C.jsxs)(O.Ay,{container:!0,spacing:2,children:[(0,C.jsx)(O.Ay,{item:!0,xs:12,sm:6,md:4,children:(0,C.jsx)(U.A,{sx:{height:180,borderRadius:2},animation:"wave",variant:"rectangular"})}),(0,C.jsx)(O.Ay,{item:!0,xs:12,sm:6,md:4,children:(0,C.jsx)(U.A,{sx:{height:180,borderRadius:2},animation:"wave",variant:"rectangular"})}),(0,C.jsx)(O.Ay,{item:!0,xs:12,sm:6,md:4,children:(0,C.jsx)(U.A,{sx:{height:180,borderRadius:2},animation:"wave",variant:"rectangular"})})]}),(0,C.jsx)(O.Ay,{container:!0,spacing:2,children:_.map(e=>{var t,o;const i=null!==e&&void 0!==e&&e.features?JSON.parse(e.features):[],l=parseFloat(null===e||void 0===e?void 0:e.discount_amount)||0,a=(parseFloat(null===e||void 0===e?void 0:e.amount)||0)+l;return"EnterprisePlan"===e?(0,C.jsx)(O.Ay,{item:!0,xs:12,sm:6,md:3,children:(0,C.jsx)(A.A,{sx:{display:"flex",flexDirection:"column",minHeight:240,height:"100%",color:"black",backgroundColor:(null===e||void 0===e?void 0:e.id)===(null===q||void 0===q?void 0:q.id)?n.palette.primary.overlight:"","&:hover":{background:n.palette.primary.overlight,color:"black",transform:"scale(1.05)",transition:"transform 0.3s ease-in-out"},boxShadow:"0 8px 20px rgba(0, 0, 0, 0.2)"},children:(0,C.jsxs)(ee.A,{sx:{flexGrow:1},children:[(0,C.jsx)(O.Ay,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"baseline",children:(0,C.jsx)(O.Ay,{item:!0,children:(0,C.jsx)(b.A,{variant:"h6",sx:{fontSize:"18px",fontWeight:"600"},children:"Enterprise Plan"})})}),(0,C.jsx)(b.A,{fontWeight:600,fontSize:13,mt:1,children:"Custom Pricing available"}),(0,C.jsx)(b.A,{gutterBottom:!0,component:"div",fontSize:12,py:.5,color:n.palette.grey[600],children:"Tailored for large-scale, multi-location businesses."}),(0,C.jsx)("hr",{}),(0,C.jsx)(b.A,{fontSize:13,fontWeight:600,children:"Includes All Pro+ Plan, Plus:"}),(0,C.jsx)(b.A,{component:"span",fontSize:12,color:n.palette.grey[600],children:(0,C.jsx)("ul",{style:{paddingLeft:15},children:S.map((e,t)=>(0,C.jsx)("li",{children:e},t))})}),(0,C.jsx)("br",{}),(0,C.jsx)(v.A,{sx:{p:2},children:(0,C.jsx)(f.A,{fullWidth:!0,variant:"contained",color:"primary",onClick:()=>m(!0),children:"Contact Us"})})]})})},"enterprice"):(0,C.jsx)(O.Ay,{item:!0,xs:12,sm:6,md:3,children:(0,C.jsx)(A.A,{sx:{display:"flex",flexDirection:"column",minHeight:240,height:"100%",color:(null===e||void 0===e?void 0:e.id)===(null===q||void 0===q?void 0:q.id)?"white":"black",backgroundColor:(null===e||void 0===e?void 0:e.id)===(null===q||void 0===q?void 0:q.id)?n.palette.primary.main:"","&:hover":{background:n.palette.primary.overlight,color:"black",transform:"scale(1.05)",transition:"transform 0.3s ease-in-out"},boxShadow:"0 8px 20px rgba(0, 0, 0, 0.2)"},onClick:()=>E(e),children:(0,C.jsxs)(V.A,{sx:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[null!==e&&void 0!==e&&e.recommendation?(0,C.jsx)(p.A,{sx:{position:"absolute",top:0,left:0,right:0,backgroundColor:6===(null===e||void 0===e?void 0:e.meta_plan_id)?n.palette.primary.main:"",color:"white",textAlign:"center",padding:"8px 0",fontWeight:"bold",borderRadius:"2px",fontSize:"14px"},elevation:3,children:null===e||void 0===e?void 0:e.recommendation}):null,(0,C.jsxs)(ee.A,{children:[(0,C.jsxs)(O.Ay,{container:!0,direction:"row",mb:1,mt:6===(null===e||void 0===e?void 0:e.meta_plan_id)&&2,justifyContent:"space-between",alignItems:"center",children:[(0,C.jsx)(b.A,{variant:"h5",sx:{fontSize:"18px",fontWeight:"600"},children:null===e||void 0===e?void 0:e.title}),(0,C.jsx)(J.A,{onClick:t=>F(t,e),children:(0,C.jsx)(se,{icon:"ep:info-filled",color:n.palette.warning.main,width:18,height:18})}),(0,C.jsx)(Q.Ay,{open:Boolean(g),anchorEl:g,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:(0,C.jsxs)(v.A,{sx:{p:2,maxWidth:300},children:[(0,C.jsx)(b.A,{variant:"subtitle1",gutterBottom:!0,children:I}),null===u||void 0===u?void 0:u.map((e,t)=>(0,C.jsx)(v.A,{pl:3,children:(0,C.jsx)(O.Ay,{container:!0,direction:"row",justifyContent:"start",alignItems:"baseline",children:(0,C.jsx)(O.Ay,{item:!0,children:(0,C.jsx)("ul",{children:(0,C.jsx)("li",{children:(0,C.jsx)(b.A,{component:"span",fontSize:12,variant:"body2",sx:{color:"gray"},children:e})})})})})},t))]})})]}),(0,C.jsxs)(b.A,{variant:"subtitle2",fontSize:12,fontWeight:600,color:n.palette.warning.main,children:['"2 Months Free"\xa0',(0,C.jsxs)("span",{style:{color:(null===e||void 0===e?void 0:e.id)===(null===q||void 0===q?void 0:q.id)?"black":"gray",opacity:.6},children:["(Equivalent to\xa0",(0,ne.E)({code:null===e||void 0===e?void 0:e.currency,amount:Number(((null===e||void 0===e?void 0:e.amount)/12).toFixed(0))}),"\xa0 Month)"]})]}),(0,C.jsxs)(O.Ay,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"baseline",children:[(0,C.jsx)(O.Ay,{item:!0,xs:9,children:(0,C.jsxs)(b.A,{fontSize:14,fontWeight:600,children:[(0,ne.E)({code:null===e||void 0===e?void 0:e.currency,amount:Number(null===e||void 0===e?void 0:e.amount).toFixed(2)}),"\xa0",(0,C.jsxs)("span",{style:{fontSize:"12px",opacity:.6,color:"black"},children:[null===e||void 0===e?void 0:e.interval,3===(null===e||void 0===e?void 0:e.meta_plan_id)||6===(null===e||void 0===e?void 0:e.meta_plan_id)?" Per Sensor ":""]})]})}),(0,C.jsx)(O.Ay,{item:!0,xs:3,children:(0,C.jsx)(b.A,{component:"span",fontSize:14,fontWeight:500,sx:{textDecoration:"line-through"},children:(0,ne.E)({code:null===e||void 0===e?void 0:e.currency,amount:Number(a).toFixed(2)})})})]}),1!==(null===r||void 0===r||null===(t=r.user)||void 0===t||null===(o=t.customer_gateway)||void 0===o?void 0:o.setup_fee_charged)&&(3===(null===e||void 0===e?void 0:e.meta_plan_id)||6===(null===e||void 0===e?void 0:e.meta_plan_id))&&(0,C.jsxs)(b.A,{fontSize:13,fontWeight:600,children:[(0,ne.E)({code:null===e||void 0===e?void 0:e.currency,amount:Number(null===e||void 0===e?void 0:e.setup_fee).toFixed(2)}
26),(0,C.jsx)("span",{style:{fontSize:"11px",opacity:.6},children:"\xa0 One-time cost for hardware"}),(0,C.jsx)("br",{})]}),e.tax_percent&&(0,C.jsxs)(b.A,{variant:"button",fontSize:13,marginTop:8,color:"black",children:["+",e.tax_percent,"% (",e.tax_type,")"]}),(0,C.jsx)(b.A,{gutterBottom:!0,component:"div",py:.5,fontSize:12,color:(null===e||void 0===e?void 0:e.id)===(null===q||void 0===q?void 0:q.id)?n.palette.grey[800]:n.palette.grey[600],children:null===e||void 0===e?void 0:e.subtitle}),(0,C.jsx)("hr",{}),(0,C.jsx)(b.A,{fontSize:13,fontWeight:600,children:null===e||void 0===e?void 0:e.features_title}),(0,C.jsx)(b.A,{component:"span",fontSize:12,color:(null===e||void 0===e?void 0:e.id)===(null===q||void 0===q?void 0:q.id)?n.palette.grey[800]:n.palette.grey[600],children:(0,C.jsx)("ul",{style:{paddingLeft:15},children:i.slice(0,4).map((e,t)=>(0,C.jsx)("li",{children:e},t))})})]})]})})},null===e||void 0===e?void 0:e.uuid)})})]})]}),"EnterprisePlan"!==q?q&&(0,C.jsx)(ue,{list:q}):"",(0,C.jsx)(c.A,{open:x,fullWidth:!0,maxWidth:"xs",disableEscapeKeyDown:!0,onClose:()=>{m(!1)},"aria-labelledby":"form-dialog-title",classes:{paper:"rounded-8"},disableRestoreFocus:!0,children:(0,C.jsx)(A.A,{sx:{margin:"auto",display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%",textAlign:"center"},children:(0,C.jsxs)(ee.A,{children:[(0,C.jsx)(b.A,{variant:"h5",gutterBottom:!0,color:n.palette.primary.main,children:"Contact us"}),(0,C.jsx)(b.A,{variant:"body2",children:"Once submitted, our team will c
26ontact you shortly based on the information provided."}),(0,C.jsx)("br",{}),(0,C.jsx)(O.Ay,{container:!0,direction:"row",justifyContent:"center",alignItems:"baseline",children:(0,C.jsx)(O.Ay,{item:!0,children:(0,C.jsx)(f.A,{sx:{mt:1,mb:1,px:2},type:"button",variant:"contained",disabled:l,color:"primary",onClick:()=>{o((0,X.Gt)()).then(e=>{var t,o;null!==e&&void 0!==e&&null!==(t=e.payload)&&void 0!==t&&null!==(o=t.List)&&void 0!==o&&o.status&&m(!1)})},style:{textTransform:"capitalize",fontSize:"16px"},children:l?(0,C.jsx)(j.A,{size:18,olor:"inherit"}):"Ok"})})})]})})})]})}var xe=o(19808);const me=["GBP","EUR","SEK","DKK","AUD","NZD","CAD","USD"];function ge(){var e,t,o,n,r;const{user:l}=(0,H.A)(),d=(0,L.A)(),{setValue:c,watch:p}=(0,s.xW)(),u=p(),[h,x]=(0,i.useState)(null!==l&&void 0!==l&&null!==(e=l.customer_gateway)&&void 0!==e&&e.payment_gateway_type?null===l||void 0===l||null===(t=l.customer_gateway)||void 0===t?void 0:t.payment_gateway_type:null!==u&&void 0!==u&&u.payment_gateway_type?null===u||void 0===u?void 0:u.payment_gateway_type:"Stripe"),m=(0,a.d4)(e=>{let{payments:t}=e;return t.subscriptions}),g=e=>{c("payment_gateway_type",e),x(e)};return(0,i.useEffect)(()=>{c("payment_gateway_type",h)},[c,h]),(0,C.jsx)(xe.A,{children:(0,C.jsxs)(O.Ay,{container:!0,direction:"row",justifyContent:"center",children:[(null===me||void 0===me?void 0:me.includes(null===(o=m[0])||void 0===o?void 0:o.currency))&&(0,C.jsx)(A.A,{sx:{width:"90%",my:3,mt:4,color:"black",border:"Gocardless"===h?`3px solid ${d.palette.primary.main}`:"none",padding:"8px",borderRadius:2,boxShadow:10,cursor:"pointer"},onClick:()=>g("Gocardless"),children:(0,C.jsx)(O.Ay,{container:!0,justifyContent:"center",alignItems:"center",p:2,children:(0,C.jsxs)(O.Ay,{item:!0,children:[(0,C.jsxs)(O.Ay,{container:!0,justifyContent:"center",alignItems:"center",spacing:1,children:[(0,C.jsx)(O.Ay,{item:!0,mt:.5,children:(0,C.jsx)(K.A,{icon:"ri:bank-fill",color:"black",width:23,height:23})}),(0,C.jsx)(O.Ay,{item:!0,children:(0,C.jsx)(b.A,{variant:"h5",children:"Direct Debit"})})]}),(0,C.jsx)(O.Ay,{mt:2,sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,C.jsx)(v.A,{sx:{textAlign:"center"},children:(0,C.jsxs)(b.A,{variant:"body1",children:[(0,C.jsx)(b.A,{component:"span",fontWeight:"bold",children:"Pay"})," ","with GOCARDLESS"]})})})]})})}),(0,C.jsx)(A.A,{sx:{width:"90%",my:null!==me&&void 0!==me&&me.includes(null===(n=m[0])||void 0===n?void 0:n.currency)?0:3,mt:null!==me&&void 0!==me&&me.includes(null===(r=m[0])||void 0===r?void 0:r.currency)?0:4,color:"black",border:"Stripe"===h?`3px solid ${d.palette.primary.main}`:"none",borderRadius:2,boxShadow:10,mb:6,cursor:"pointer"},onClick:()=>g("Stripe"),children:(0,C.jsx)(O.Ay,{container:!0,justifyContent:"center",alignItems:"center",p:2,children:(0,C.jsxs)(O.Ay,{item:!0,children:[(0,C.jsxs)(O.Ay,{container:!0,alignItems:"center",justifyContent:"center",spacing:1,paddingBottom:1,children:[(0,C.jsx)(O.Ay,{mt:.5,item:!0,children:(0,C.jsx)(K.A,{icon:"cib:cc-stripe",color:"#635bff",width:25,height:25})}),(0,C.jsx)(O.Ay,{item:!0,children:(0,C.jsx)(b.A,{variant:"h6",children:"Pay With Card"})})]}),(0,C.jsxs)(v.A,{sx:{display:"flex",alignItems:"center",gap:2.5,mt:2,backgroundColor:"white",borderRadius:1,paddingX:1},children:[(0,C.jsx)(K.A,{icon:"logos:visa",width:30,height:30}),(0,C.jsx)(K.A,{icon:"logos:mastercard",width:30,height:30}),(0,C.jsx)(K.A,{icon:"fontisto:american-express",width:30,height:30,color:"blue"}),(0,C.jsx)(K.A,{icon:"logos:google-pay",width:30,height:30}),(0,C.jsx)(K.A,{icon:"cib:apple-pay",width:30,height:30,color:"black"})]})]})})})]})})}const ve=["Subscription","Payment Type"];(0,Y.Ay)("div")(e=>{let{theme:t,ownerState:o}=e;return{zIndex:1,width:50,height:50,display:"flex",borderRadius:"50%",alignItems:"center",justifyContent:"center",color:t.palette.primary,backgroundColor:"light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[700],...o.active&&{boxShadow:"0 4px 10px 0 rgba(0,0,0,.25)",color:t.palette.common.white,...(0,G.ab)({startColor:t.palette.primary.light,endColor:t.palette.primary.main})},...o.completed&&{color:t.palette.common.white,...(0,G.ab)({startColor:t.palette.primary.light,endColor:t.palette.primary.main})}}});function fe(e,t){switch(e){case 0:return(0,C.jsx)(he,{planData:t});case 1:return(0,C.jsx)(ge,{});default:return!0}}function be(e){var t,o;let{onFinalSubmit:n,stepCount:r}=e;const{watch:l}=(0,s.xW)(),d=l(),c=(0,L.A)(),{user:u}=(0,H.A)(),h=(0,a.d4)(e=>{let{loading:t}=e;return t.loading1}),x=(0,a.d4)(e=>{let{payments:t}=e;return t.subscriptions}).find(e=>{var t;return(null===e||void 0===e?void 0:e.id)===(null!==d&&void 0!==d&&d.plan_id?null===d||void 0===d?void 0:d.plan_id:null===u||void 0===u||null===(t=u.customer_gateway)||void 0===t?void 0:t.plan_id)}),[m,g]=(0,i.useState)(("BILLING_CHECKOUT"===u.CHALLENGE||null!==u&&void 0!==u&&null!==(t=u.organisation)&&void 0!==t&&t.organisation_is_active,0));return(0,C.jsx)(C.Fragment,{children:(0,C.jsxs)(v.A,{children:[(0,C.jsx)(v.A,{display:"flex",justifyContent:"center",children:(0,C.jsx)(b.A,{variant:"h5",color:c.palette.primary.main,children:0===m?"Subscription":"Choose Payment Type"})}),m===ve.length?(0,C.jsx)(C.Fragment,{}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.A,{sx:{p:1,my:0,minHeight:120},children:(0,C.jsx)(C.Fragment,{children:fe(m,x)})}),(0,C.jsxs)(v.A,{sx:{textAlign:"right"},children:[m>("BILLING_CHECKOUT"===u.CHALLENGE||null!==u&&void 0!==u&&null!==(o=u.organisation)&&void 0!==o&&o.organisation_is_active,0)&&(0,C.jsx)(f.A,{color:"inherit",onClick:()=>{g(e=>e-1),r(0)},sx:{mr:1},children:"Back"}),m===ve.length-1?(0,C.jsx)(y.A,{variant:"contained",sx:{mr:1},disabled:""===(null===d||void 0===d?void 0:d.payment_gateway_type),onClick:()=>{const e={...d};n(e)},type:"submit",children:h?(0,C.jsx)(j.A,{size:18,color:"inherit"}):"Checkout"}):(0,C.jsx)(f.A,{variant:"contained",onClick:()=>{g(e=>e+1),r(1)},sx:{mr:1},disabled:""===(null===d||void 0===d?void 0:d.payment_gateway_type),children:"Next"})]})]})]})})}var ye=o(66699);function je(){const[e,t]=(0,i.useState)(40),[o,n]=(0,i.useState)(50),r=(0,i.useRef)(()=>{});return(0,i.useEffect)(()=>{r.current=()=>{if(e>100)t(0),n(15);else{const o=10*Math.random(),i=10*Math.random();t(e+o),n(e+o+i)}}},[e]),(0,i.useEffect)(()=>{const e=setInterval(()=>{r.current()},500);return()=>{clearInterval(e)}},[]),(0,C.jsx)(C.Fragment,{children:(0,C.jsxs)(p.A,{sx:{p:2,paddingTop:2,width:"100%",boxShadow:e=>e.customShadows.z8,textAlign:"center"},children:[(0,C.jsx)(b.A,{children:"Payment Transaction is in process . . ."}),(0,C.jsx)(v.A,{sx:{width:"100%"},padding:2,children:(0,C.jsx)(ye.A,{variant:"buffer",value:e,valueBuffer:o})})]})})}function Ae(){const e=(0,L.A)();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("svg",{width:0,height:0,children:(0,C.jsx)("defs",{children:(0,C.jsxs)("linearGradient",{id:"my_gradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[(0,C.jsx)("stop",{offset:"0%",stopColor:e.palette.primary.main}),(0,C.jsx)("stop",{offset:"100%",stopColor:e.palette.primary.lighter})]})})}
26),(0,C.jsx)(j.A,{sx:{svg:{circle:{stroke:"url(#my_gradient)"}}},size:65,thickness:5})]})}function we(){const e=(0,L.A)();return(0,C.jsxs)(p.A,{sx:{p:2,paddingTop:2,width:"100%",boxShadow:e=>e.customShadows.z8,textAlign:"center"},children:[(0,C.jsx)(b.A,{variant:"h4",color:e.palette.primary.main,children:"Setting Up ..."}),(0,C.jsx)(v.A,{sx:{width:"100%"},padding:4,children:(0,C.jsx)(Ae,{})}),(0,C.jsx)(b.A,{variant:"subtitle2",children:"Creating user profile and configuring Coolers setup. This may take a few moments."}),(0,C.jsx)("br",{}),(0,C.jsx)(b.A,{variant:"title",fontWeight:"bold",color:"black",children:"2-week PRO TWO PLAN free trial"}),(0,C.jsx)("br",{}),(0,C.jsx)(b.A,{variant:"body2",mt:1,mb:2,color:"black",children:"No payment details are required right now."}),(0,C.jsx)(b.A,{variant:"body2",children:"if no plan is choosen you will default to the free plan & any other records will be lost."})]})}var ke=o(57184),Ce=o(86003);function _e(){var e,t,o,r;const x=(0,a.wA)(),{user:v}=(0,H.A)(),f="Asia/Calcutta"===m().tz.guess(!0)?"Asia/Kolkata":m().tz.guess(!0),b=(null===(e=m().tz.zone(f))||void 0===e?void 0:e.countries())||[],y=0!==b.length?b[0]:null,[j,A]=(0,i.useState)(!1),[w,k]=(0,i.useState)(!1),[_,S]=(0,i.useState)(!1),[z,q]=(0,i.useState)(!1),[M,I]=(0,i.useState)(!1),R=(0,a.d4)(e=>{let{payments:t}=e;return t.subscriptionAlert}),{enqueueSnackbar:L}=(0,g.dh)(),O=n.Ik().shape({name:n.Yj().required("Name is required").min(3,"Name must be at least 3 characters").max(50,"Name should not exceed 50 characters"),user_phone:n.Yj().required("Phone Number is required").min(6,"Phone Number is required").max(16,"Phone Number should not exceed more than 16"),email:n.Yj().email("Email must be a valid email address").required("Email is required").max(50,"Email should not exceed 50"),organisation_name:n.Yj().required("Organisation Name is required").min(3,"Organisation name must be at least 3 characters").max(30,"Organisation name should not exceed 30 characters")}),F=(0,i.useMemo)(()=>{var e,t;return{id:(null===v||void 0===v?void 0:v.id)||"",name:(null===v||void 0===v?void 0:v.name)||"",email:(null===v||void 0===v?void 0:v.email)||"",kitchen_id:(null===v||void 0===v?void 0:v.kitchen_id)||"",organisation_name:(null===v||void 0===v||null===(e=v.organisation)||void 0===e?void 0:e.organisation_name)||"",organisation_id:(null===v||void 0===v?void 0:v.organisation_id)||"",outlet_id:(null===v||void 0===v||null===(t=v.kitchen)||void 0===t?void 0:t.outlet_id)||"",user_agent:"Web",timezone:f,country_code:y,user_phone:(null===v||void 0===v?void 0:v.user_phone)||""}},[f,v,y]),T=(0,s.mN)({mode:"onTouched",resolver:(0,d.t)(O),defaultValues:F}),{handleSubmit:E}=T;(0,i.useEffect)(()=>{x((0,X.hR)({country_code:y}))},[y,x]);const P=!(null===v||void 0===v||null===(t=v.organisation)||void 0===t||!t.manual_billing);(0,i.useEffect)(()=>{var e,t,o,i,n,r,a,s;if(1===(null===v||void 0===v||null===(e=v.roles[0])||void 0===e?void 0:e.id)||3===(null===v||void 0===v||null===(t=v.roles[0])||void 0===t?void 0:t.id)||4===(null===v||void 0===v||null===(o=v.roles[0])||void 0===o?void 0:o.id)||5===(null===v||void 0===v||null===(i=v.roles[0])||void 0===i?void 0:i.id))A(!1);else if(P)A(!1);else if(0!==(null===v||void 0===v||null===(n=v.subscriptions)||void 0===n?void 0:n.length))A(!1);else if(null!==v&&void 0!==v&&v.customer_billing||null!==v&&void 0!==v&&v.customer_gateway||null!==v&&void 0!==v&&null!==(r=v.organisation)&&void 0!==r&&r.organisation_is_active)if(null===v||void 0===v||null===(a=v.customer_billing)||void 0===a||!a.checkout_url||null!==v&&void 0!==v&&null!==(s=v.customer_billing)&&void 0!==s&&s.checkout_fulfilled)A(!1);else{var d,c,p;let e=l()().format("DD-MM-YYYY HH:mm:ss");const t=(null===v||void 0===v||null===(d=v.customer_billing)||void 0===d?void 0:d.created_at)&&m().utc(null===v||void 0===v||null===(c=v.customer_billing)||void 0===c?void 0:c.created_at,"YYYY-MM-DD HH:mm:ss").tz(f).add("Gocardless"===(null===v||void 0===v||null===(p=v.customer_gateway)||void 0===p?void 0:p.payment_gateway_type)?3:1,"minute").format("DD-MM-YYYY HH:mm:ss");if(l()(e,"DD-MM-YYYY HH:mm:ss")<l()(t,"DD-MM-YYYY HH:mm:ss")){S(!0);const o=setInterval(async()=>
26{if(e=l()().format("DD-MM-YYYY HH:mm:ss"),l()(e,"DD-MM-YYYY HH:mm:ss")>l()(t,"DD-MM-YYYY HH:mm:ss"))clearInterval(o),S(!1),k(!0),L("Last Payment Transaction Failed",{variant:"error"});else{var i,n;const e=await(0,ke.If)();x((0,Ce.vl)(1)),null!==e&&void 0!==e&&e.status&&0!==(null===e||void 0===e||null===(i=e.user_profile)||void 0===i||null===(n=i.subscriptions)||void 0===n?void 0:n.length)&&(clearInterval(o),S(!1),k(!1),window.location.reload())}},1e4)}else S(!1)}else A(!0)},[L,f,null===v||void 0===v?void 0:v.roles,v.subscription_status,v.is_trial,v.payment_gateway_type,_,null===v||void 0===v?void 0:v.customer_billing,null===v||void 0===v?void 0:v.customer_gateway,null===v||void 0===v||null===(o=v.organisation)||void 0===o?void 0:o.organisation_is_active,null===v||void 0===v||null===(r=v.subscriptions)||void 0===r?void 0:r.length,P]),(0,i.useEffect)(()=>{R&&k(!0)},[R]);const D=async e=>{const{...t}=e,o={...t,timezone:f,country_code:y};q(!0),setTimeout(()=>{x((0,X.Bx)(o)).then(e=>{var t,o;!0===(null===e||void 0===e||null===(t=e.payload)||void 0===t||null===(o=t.List)||void 0===o?void 0:o.status)&&(A(!1),window.location.reload()),q(!1)})},5e3)};return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(c.A,{open:j,fullWidth:!0,maxWidth:"xs",disableEscapeKeyDown:!0,"aria-labelledby":"form-dialog-title",classes:{paper:"rounded-8"},disableRestoreFocus:!0,children:(0,C.jsx)(s.Op,{...T,children:(0,C.jsx)("form",{onSubmit:E(D),children:(0,C.jsx)(p.A,{sx:{p:2,paddingTop:3,width:"100%",boxShadow:e=>e.customShadows.z8},children:(0,C.jsx)(B,{onFinalSubmit:D})})})})}),(0,C.jsxs)(c.A,{open:w,fullWidth:!0,maxWidth:M?"xs":"lg",disableEscapeKeyDown:!0,"aria-labelledby":"form-dialog-title",classes:{paper:"rounded-8"},disableRestoreFocus:!0,children:[(0,C.jsx)(u.A,{"aria-label":"close",onClick:()=>{I(!1),k(!1),x((0,X.CP)(!1))},size:"large",sx:e=>({position:"absolute",right:8,top:2,color:e.palette.grey[500]}),children:(0,C.jsx)(h.A,{})}),(0,C.jsx)(s.Op,{...T,children:(0,C.jsx)("form",{onSubmit:E(D),children:(0,C.jsx)(p.A,{sx:{p:2,paddingTop:1,width:"100%",boxShadow:e=>e.customShadows.z8},children:(0,C.jsx)(be,{onFinalSubmit:async e=>{delete e.email,delete e.name,delete e.kitchen_id,delete e.organisation_id,delete e.organisation_name,delete e.outlet_id,1===e.meta_plan_id||4===e.meta_plan_id?(delete e.sensors_count,delete e.kitchens_count):2===e.meta_plan_id||5===e.meta_plan_id?delete e.sensors_count:3!==e.meta_plan_id&&6!==e.meta_plan_id||delete e.kitchens_count,x((0,X.B0)(e)).then(e=>{var t,o,i,n;null!==e&&void 0!==e&&null!==(t=e.payload)&&void 0!==t&&null!==(o=t.List)&&void 0!==o&&o.checkout_url&&(x((0,X.CP)(!1)),window.location.href=null===e||void 0===e||null===(i=e.payload)||void 0===i||null===(n=i.List)||void 0===n?void 0:n.checkout_url)})},stepCount:e=>I(!!e)})})})})]}),(0,C.jsx)(c.A,{open:_,fullWidth:!0,maxWidth:"xs",disableEscapeKeyDown:!0,"aria-labelledby":"form-dialog-title",classes:{paper:"rounded-8"},disableRestoreFocus:!0,children:(0,C.jsx)(je,{})}),(0,C.jsx)(c.A,{open:z,fullWidth:!0,maxWidth:"xs",disableEscapeKeyDown:!0,"aria-labelledby":"form-dialog-title",classes:{paper:"rounded-8"},disableRestoreFocus:!0,children:(0,C.jsx)(we,{})})]})}},80888(e,t,o){o.d(t,{E:()=>i});const i=e=>{let{amount:t,code:o}=e;return new Intl.NumberFormat("en-IN",{style:"currency",currency:o||"USD",currencySign:"accounting"}).format(Number(t)).replace(/\D00(?=\D*$)/,"")}},61770(e,t,o){o.d(t,{TM:()=>a,Vz:()=>n,_o:()=>l,ab:()=>r});var i=o(97497);function n(e){const t=(null===e||void 0===e?void 0:e.color)||"#000000",o=(null===e||void 0===e?void 0:e.blur)||6,n=(null===e||void 0===e?void 0:e.opacity)||.8;return(null===e||void 0===e?void 0:e.imgUrl)?{position:"relative","&:before":{position:"absolute",top:0,left:0,zIndex:9,content:'""',width:"100%",height:"100%",backdropFilter:`blur(${o}px)`,WebkitBackdropFilter:`blur(${o}px)`,backgroundColor:(0,i.X4)(t,n)}}:{backdropFilter:`blur(${o}px)`,WebkitBackdropFilter:`blur(${o}px)`,backgroundColor:(0,i.X4)(t,n)}}function r(e){const t=(null===e||void 0===e?void 0:e.direction)||"to bottom",o=null===e||void 0===e?void 0:e.startColor,i=null===e||void 0===e?void 0:e.endColor,n=null===e||void 0===e?void 0:e.imgUrl,r=null===e||void 0===e?void 0:e.color;return n?{background:`linear-gradient(${t}, ${o||r}, ${i||r}), url(${n})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center"}:{background:`linear-gradient(${t}, ${o}, ${i})`}}const l={msOverflowStyle:"none",scrollbarWidth:"none",overflowY:"scroll","&::-webkit-scrollbar":{display:"none"}},a={msOverflowStyle:"none",scrollbarWidth:"none",overflowX:"scroll","&::-webkit-scrollbar":{display:"none"}}},63477(e,t,o){o.d(t,{kB:()=>r,tm:()=>l});var i=o(35857),n=o.n(i);function r(e){return n()(e).format()}function l(e){return n()(e).format("0.0 b")}}}]);
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.