PageSourceSearch

https://web.pgmanager.in/static/js/1496.f936a29b.chunk.js

js pgmanager.in collected 2026-09-24 15:03:04 UTC 21,403 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkpg_manager=self.webpackChunkpg_manager||[]).push([[1496],{3928:(e,n,o)=>{o.d(n,{Z:()=>p});var t=o(36314),r=o(20890),s=o(13400),i=o(72791),l=o(24518),a=o(5574),c=o(97123),d=o(39157),u=o(29823),x=o(65661),m=o(46995),h=o(80184);function p(e){const n=(0,i.useMemo)((()=>e.showCloseIcon||!1),[e.showCloseIcon]),o=(0,i.useMemo)((()=>e.disableDialogActions||!1),[e.disableDialogActions]),p=(0,i.useMemo)((()=>"function"===typeof e.onApplyButtonClick||e.showApplyButton||!1),[e.showApplyButton,e.onApplyButtonClick]),g=(0,i.useMemo)((()=>e.applyButtonLabel||"Apply"),[e.applyButtonLabel]),[f,Z]=(0,i.useState)(!1),[j]=(0,i.useState)("paper"),b=(0,i.useRef)(null),v=(n,o)=>{"backdropClick"===o&&null!==e&&void 0!==e&&e.preventBackdropClickClose||(null!==e&&void 0!==e&&e.onModalClose&&e.onModalClose(),Z(!1))},y=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if(f){const{current:e}=y;null!==e&&e.focus()}}),[f]),(0,i.useEffect)((()=>{e.open!==f&&Z(e.open)}),[e.open,Z,f]),(0,h.jsxs)(a.Z,{fullWidth:"boolean"===typeof(null===e||void 0===e?void 0:e.fullWidth)?e.fullWidth:!(null!==e&&void 0!==e&&e.isFullScreen),fullScreen:(null===e||void 0===e?void 0:e.isFullScreen)||!1,maxWidth:e.maxWidth||"sm",disableEscapeKeyDown:(null===e||void 0===e?void 0:e.disableEscapeKeyDown)||!1,open:f,onClose:v,scroll:j,"aria-labelledby":"scroll-dialog-title","aria-describedby":"scroll-dialog-description",ref:b,sx:{".MuiDialog-paper":{borderRadius:{xs:null!==e&&void 0!==e&&e.isFullScreen?0:4,sm:4}}},children:[(0,h.jsxs)(x.Z,{id:"scroll-dialog-title",children:[null!==e&&void 0!==e&&e.isFullScreen||e.title?(0,h.jsxs)(t.Z,{direction:"row",alignItems:"center",children:[null!==e&&void 0!==e&&e.isFullScreen?(0,h.jsx)(s.Z,{onClick:v,children:(0,h.jsx)(m.Z,{})}):null,e.title?(0,h.jsx)(r.Z,{variant:"h6",fontWeight:400,fontSize:"1.2rem",children:e.title}):""]}):null,e.caption?(0,h.jsx)(r.Z,{sx:{px:null!==e&&void 0!==e&&e.isFullScreen?1:0},display:"block",variant:"caption",color:"textSecondary",children:e.caption}):null,n?(0,h.jsx)(s.Z,{"aria-label":"close",onClick:v,sx:{position:"absolute",right:8,top:8,color:e=>e.palette.grey[500]},children:(0,h.jsx)(u.Z,{})}):null]}),(0,h.jsx)(d.Z,{dividers:"paper"!==j,children:i.cloneElement(e.children,{handleClose:v,dialogRef:b})}),!0===o?null:(0,h.jsxs)(c.Z,{sx:{my:1,mx:1},children:[(0,h.jsx)(l.Z,{color:"secondary",onClick:v,children:"Close"}),p?(0,h.jsx)(l.Z,{variant:"tonal",color:"secondary",onClick:()=>{null!==e&&void 0!==e&&e.onApplyButtonClick&&e.onApplyButtonClick()},children:g}):null]})]})}},15084:(e,n,o)=>{o.d(n,{Z:()=>W});var t=o(61889),r=o(57621),s=o(39504),i=o(95193),l=o(35527),a=o(24518),c=o(68870),d=o(36314),u=o(20890),x=o(72791),m=o(50427),h=o(70700),p=o(20883),g=o(57689),f=o(6895);var Z=o(62564),j=o(3928),b=o(61134),v=o(48550),y=o(42419),C=o(35585),k=o(5519),w=o(82460),I=o(80007),P=o(80184);const S=e=>{let{inputProps:n,reactHookFieldProps:o,error:t,setFormFieldValue:r,formFieldName:s}=e;const{max:i,min:l}=n,d=parseInt((null===o||void 0===o?void 0:o.value)||0);return(0,P.jsxs)(c.Z,{sx:{display:"flex",alignItems:"center",columnGap:1},children:[(0,P.jsx)(a.Z,{disabled:!!(l&&Number.isInteger(l)&&parseInt(d)<=l),children:(0,P.jsx)(C.Z,{sx:{backgroundColor:k.Z[50],border:`1px solid ${w.Z[100]}`,borderRadius:"50%",p:.75,fontSize:"2.1rem",cursor:"pointer",color:w.Z[500],"&:hover":{backgroundColor:w.Z[700],color:"#fff"}},onClick:()=>r(s,l&&Number.isInteger(l)&&parseInt(d)>l?d-1:d)})}),(0,P.jsx)(v.Z,{...o,variant:"outlined",size:"small",sx:{width:60,input:{textAlign:"center"},backgroundColor:"#fff"},onChange:function(e){const n=e.target.value;n.match(/[^0-9]/)?e.preventDefault():o.onChange(n?parseInt(n):n)},onBlur:e=>{""===e.target.value&&r(s,parseInt(1)),o.onBlur()},InputProps:{...n,pattern:"[0-9]*",inputMode:"numeric"},error:!!t}),(0,P.jsx)(a.Z,{disabled:!!(i&&Number.isInteger(i)&&parseInt(d)>=i),sx:{"&:hover":{backgroundColor:"rgba(98 182 35 / 10%);"},"&:active":{backgroundColor:"rgba(98 182 35 / 10%);"},"&:focus":{backgroundColor:"rgba(98 182 35 / 10%);"},".MuiButton-root:focus":{backgroundColor:"rgba(98 182 35 / 10%);"}},variant:"text",children:(0,P.jsx)(y.Z,{sx:{color:I.Z[500],backgroundColor:k.Z[50],border:`1px solid ${I.Z[100]}`,borderRadius:"50%",p:.75,fontSize:"2.1rem",cursor:"pointer","&:hover":{backgroundColor:I.Z[700],color:"#fff"}},onClick:()=>r(s,i&&Number.isInteger(i)&&parseInt(d)<i?d+1:d)})})]})},B=(0,x.memo)(S);var R=o(35552),A=o(71198);const G=()=>{p.k.info("[ConfigurePGBanner] mounting...");const{businessId:e}=(0,g.UO)(),[n,o]=(0,x.useState)(!1),[t,r]=(0,x.useState)(!1),{businessType:s}=(0,x.useContext)(A.Il);(0,x.useEffect)((()=>(p.k.debug("[ConfigurePGBanner] mounted"),()=>{p.k.debug("[ConfigurePGBanner] unmounted")})),[]);const i=(0,x.useCallback)((e=>{p.k.debug("[ConfigurePGBanner]:{getPGConfigStatus}: fetching PG config status");const n=new AbortController;return async function(e,n){return f.R.GET({url:`${e}/pg/checkConfiguration`},{backgroundRequest:!0,...n})}(e,{signal:n.signal}).then((e=>{let{response:n,error:t}=e;if("canceled"!==(null===t||void 0===t?void 0:t.message))return t?o(!1):void o(!0)})),n}),[]);(0,x.useEffect)((()=>{let n;return e&&(n=i(e)),()=>{n&&n.abort()}}),[e,i]);const Z=(0,x.useCallback)((()=>{o(!1)}),[]);return n?(0,P.jsxs)(c.Z,{mb:1,sx:{width:"100%"},children:[(0,P.jsx)(l.Z,{elevation:2,sx:{width:"100%",borderRadius:8,backgroundColor:m.Z[50],p:1.5,color:m.Z[800]},children:(0,P.jsxs)(d.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",columnGap:1,children:[(0,P.jsx)(c.Z,{children:(0,P.jsxs)(d.Z,{direction:"row",alignItems:"center",gap:1,children:[(0,P.jsx)(h.Z,{sx:{opacity:.35,fontSize:"2rem"}}),(0,P.jsx)(u.Z,{fontWeight:500,children:"Let's set up your PG and begin utilizing the services."})]})}),(0,P.jsx)(a.Z,{color:"info",variant:"tonal",onClick:()=>r(!0),children:"Configure"})]})}),(0,P.jsx)(F,{onModalClose:()=>r(!1),businessId:e,showModal:t,pgType:s,onPGConfigured:Z})]}):null},W=(0,x.memo)(G);function F(e){let{showModal:n,onModalClose:o,businessId:t,pgType:r,onPGConfigured:s}=e;const l=(0,Z.u)(),a=(0,i.Z)(l.breakpoints.up("sm")),c=(0,x.useRef)(),d=(0,x.useCallback)((()=>{var e;null!==(e=c.current)&&void 0!==e&&e.applyConfigurations&&n&&c.current.applyConfigurations(t)}),[t,n]);return(0,P.jsx)(j.Z,{isFullScreen:!a,maxWidth:"md",onModalClose:o,open:n,title:"Configure PG",handleClose:o,onApplyButtonClick:d,children:(0,P.jsx)(H,{businessId:t,ref:c,pgType:r,onPGConfigured:s})})}const M={blocks:1,floors:1,rooms:1,beds:1,flats:0},H=(0,x.forwardRef)(((e,n)=>{let{businessId:o,handleClose:i,pgType:l,onPGConfigured:a}=e;const{handleSubmit:d,control:h,formState:{errors:g},setValue:Z,getValues:j,trigger:v}=(0,b.cI)({mode:"onTouched",defaultValues:{...M,..."apartment"===l?{flats:1}:{flats:0}}}),y=(0,x.useCallback)((async(e,n)=>{p.k.debug("[ConfigurePGBanner]:{saveConfigurations}: saving pg configuration"),async function(e,n,o){return f.R.GET({url:`${e}/pg/configure`,params:n},o)}(e,n).then((e=>{let{error:n}=e;if("canceled"!==(null===n||void 0===n?void 0:n.message)){if(n)return(0,R.yv)(null===n||void 0===n?void 0:n.message,{variant:"error"});i(),a()}}))}),[i,a]),C=(0,x.useCallback)((e=>{y()}),[y]);function k(e,n,o,t){return(0,P.jsx)(r.Z,{elevation:0,sx:{background:m.Z[50]},children:(0,P.jsxs)(s.Z,{children:[(0,P.jsx)(u.Z,{variant:"h6",component:"h6",color:m.Z[600],children:n}),(0,P.jsx)(u.Z,{sx:{mb:1.5},gutterBottom:!0,fontStyle:"normal",fontWeight:"300",variant:"subtitle2",children:o}),(0,P.jsx)(c.Z,{textAlign:"center",display:"flex",justifyContent:"center",mt:1,children:(0,P.jsx)(b.Qr,{control:h,name:e,rules:{required:!0,max:t,min:1},render:n=>{let{field:o}=n;return(0,P.jsx)(B,{inputProps:{max:t,min:1},reactHookFieldProps:o,error:g[e],setFormFieldValue:Z,formFieldName:e})}})}),(0,P.jsxs)(u.Z,{variant:"caption",display:"block",color:g[e]?"error":"grey",textAlign:"right",mt:1,fontSize:".75rem",children:["Maximum allowed limt is ",(0,P.jsx)("strong",{children:t})]})]})})}return(0,x.useImperativeHandle)(n,(()=>({applyConfigurations:async()=>
1{if(await v()){const e=j();y(o,e)}}})),[o,j,y,v]),(0,P.jsxs)(t.ZP,{container:!0,noValidate:!0,component:"form",onSubmit:d(C),spacing:2,justifyContent:"center",children:[(0,P.jsx)(t.ZP,{item:!0,xs:12,sm:8,md:6,lg:6,xl:6,children:k("blocks","Blocks","How many blocks are there in your PG?",10)}),(0,P.jsx)(t.ZP,{item:!0,xs:12,sm:8,md:6,lg:6,xl:6,children:k("floors","Floors","How many floors are there per block?",15)}),"apartment"===l?(0,P.jsx)(t.ZP,{item:!0,xs:12,sm:8,md:6,lg:6,xl:6,children:k("flats","Flats","How many flats are there per floor?",30)}):null,(0,P.jsx)(t.ZP,{item:!0,xs:12,sm:8,md:6,lg:6,xl:6,children:k("rooms","Rooms",`How many rooms are there per ${"apartment"===l?"flat":"floor"}?`,20)}),(0,P.jsx)(t.ZP,{item:!0,xs:12,sm:8,md:6,lg:6,xl:6,children:k("beds","Beds","How many beds are there per room?(Sharing Type)",10)})]})}))},1496:(e,n,o)=>{o.r(n),o.d(n,{default:()=>ue});var t=o(24518),r=o(39983),s=o(61889),i=o(57621),l=o(36314),a=o(20890),c=o(76268),d=o(20883),u=o(35552),x=o(72791),m=o(57689),h=o(6895);var p=o(5192),g=o(20566),f=o(18244),Z=o(94721),j=o(68870),b=o(50533),v=o(1210),y=o(5519),C=o(71198),k=o(26211),w=o(11087),I=o(58278),P=o(92686),S=o(80184);const B=(0,x.memo)((function(e){let{businessId:n}=e;d.k.info("[BookingsPage::QuickLinks] mounting...");const{permissions:o}=(0,x.useContext)(C.Il),t=(0,x.useMemo)((()=>(0,k._L)(["View notification"],o)),[o]);return(0,S.jsx)(s.ZP,{item:!0,xs:12,sm:12,md:12,lg:12,xl:t?12:10,children:(0,S.jsx)(j.Z,{sx:{border:`1px solid ${y.Z[200]}`,borderRadius:3,padding:1},children:(0,S.jsxs)(l.Z,{direction:"row",justifyContent:"space-between",children:[(0,S.jsx)(j.Z,{flex:1,textAlign:"center",children:(0,S.jsxs)(b.Z,{underline:"hover",component:w.rU,to:`${(0,I.Gn)(P.Z.CHECK_IN,{businessId:n})}?c=t`,children:[(0,S.jsx)(v.Z,{color:"secondary",sx:{fontSize:20,opacity:.5}}),(0,S.jsx)(a.Z,{lineHeight:1,fontWeight:500,color:"secondary",variant:"body2",children:"Check-In"})]})}),(0,S.jsx)(Z.Z,{orientation:"vertical",variant:"middle",flexItem:!0}),(0,S.jsx)(j.Z,{flex:1,textAlign:"center",children:(0,S.jsxs)(b.Z,{underline:"hover",component:w.rU,to:(0,I.Gn)(P.Z.BOOKINGS,{businessId:n}),children:[(0,S.jsx)(f.Z,{color:"secondary",sx:{fontSize:20,opacity:.5}}),(0,S.jsx)(a.Z,{lineHeight:1,fontWeight:500,color:"secondary",variant:"body2",children:"Book"})]})}),(0,S.jsx)(Z.Z,{orientation:"vertical",variant:"middle",flexItem:!0}),(0,S.jsx)(j.Z,{flex:1,textAlign:"center",children:(0,S.jsxs)(b.Z,{underline:"hover",component:w.rU,to:(0,I.Gn)(P.Z.PERFORMANCE,{businessId:n}),children:[(0,S.jsx)(g.Z,{color:"secondary",sx:{fontSize:20,opacity:.5}}),(0,S.jsx)(a.Z,{lineHeight:1,fontWeight:500,color:"secondary",variant:"body2",children:"Performance"})]})}),t&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Z.Z,{orientation:"vertical",variant:"middle",flexItem:!0}),(0,S.jsx)(j.Z,{flex:1,textAlign:"center",children:(0,S.jsxs)(b.Z,{underline:"hover",component:w.rU,to:(0,I.Gn)(P.Z.NOTICE_BOARD,{businessId:n}),children:[(0,S.jsx)(p.Z,{color:"secondary",sx:{fontSize:20,opacity:.5}}),(0,S.jsx)(a.Z,{lineHeight:1,fontWeight:500,color:"secondary",variant:"body2",children:"Notice Board"})]})})]})]})})})}));var R=o(44578),A=o(13239),G=o(99852),W=o(40835);const F=e=>{let{count:n=0,totalBedsCount:o=0}=e;return(0,S.jsx)(s.ZP,{item:!0,xs:12,sm:12,md:6,lg:6,xl:6,children:(0,S.jsx)(i.Z,{className:"card pattern wave-pattern",sx:{backgroundColor:G.Z[100],borderRadius:3},children:(0,S.jsxs)(l.Z,{p:2,direction:"row",justifyContent:"flex-start",gap:2,alignItems:"center",children:[(0,S.jsxs)(j.Z,{sx:{position:"relative"},children:[(0,S.jsx)(A.Z,{size:"4rem",sx:{color:G.Z[800],position:"absolute",top:"50%",left:"50%",marginTop:"-2rem",marginLeft:"-2rem"},variant:"determinate",value:Math.floor(n/o*100),thickness:4}),(0,S.jsx)(R.Z,{sx:{color:"success.main",m:2.2,pt:1,fontSize:"2.4rem",opacity:.5}})]}),(0,S.jsxs)(j.Z,{children:[(0,S.jsx)(a.Z,{variant:"h4",color:"success.main",fontWeight:600,children:(0,S.jsx)(W.ZP,{duration:3,end:(0,k.V2)(n)})}),(0,S.jsxs)(a.Z,{variant:"body2",color:"grey",children:["Vacant beds out of ",o]})]})]})})})},M=(0,x.memo)(F);var H=o(29503);const z=e=>{let{count:n=0}=e;return(0,S.jsx)(s.ZP,{item:!0,xs:12,sm:12,md:6,children:(0,S.jsx)(i.Z,{className:"card pattern worn-pattern",sx:{backgroundColor:"surfaceContainer.main",borderRadius:3},children:(0,S.jsxs)(l.Z,{p:2,direction:"row",justifyContent:"flex-start",ga
1p:1,alignItems:"center",children:[(0,S.jsx)(H.Z,{sx:{color:"secondary.main",m:1,fontSize:"4rem",opacity:.5}}),(0,S.jsxs)(j.Z,{children:[(0,S.jsx)(a.Z,{variant:"h4",color:"secondary.main",fontWeight:600,children:(0,S.jsx)(W.ZP,{duration:3,end:(0,k.V2)(n)})}),(0,S.jsx)(a.Z,{variant:"body2",color:"grey",children:"Tenants"})]})]})})})},E=(0,x.memo)(z);var N=o(35527),T=o(26450),D=o(81258),O=o(82460),V=o(99953),L=(o(26035),o(12260)),U=o.n(L);class $ extends x.Component{constructor(e){super(e),this.myRef=x.createRef(),this.path=""}componentDidMount(){this.path=new(U().Path)(this.myRef.current,{easing:"easeInOut",duration:1e3,text:{value:"0"}}),this.path.set(0),this.path.animate((this.props.percentage||0)/100)}componentDidUpdate(){this.path.animate((this.props.percentage||0)/100)}render(){var e,n,o;return(0,S.jsxs)("svg",{width:"100%",height:"100%",viewBox:"-5 -5 110 63",xmlns:"http://www.w3.org/2000/svg",children:[(0,S.jsx)("path",{className:"placeholder",d:"M 50,50 m -47,0 a 47,47 0 1 1 94,0",stroke:"#f9f9f9",strokeWidth:"15",strokeLinecap:"round",fillOpacity:"0"}),(0,S.jsx)("path",{ref:this.myRef,className:"path",d:"M 50,50 m -47,0 a 47,47 0 1 1 94,0",stroke:(null===(e=this.props)||void 0===e?void 0:e.strokeColor)||"#FFA30D",strokeWidth:"15",fillOpacity:"0",strokeLinecap:"round"}),(0,S.jsx)("text",{x:"46%",y:"70%",dominantBaseline:"middle",fill:"#767676",textAnchor:"middle",children:(null===(n=this.props)||void 0===n||null===(o=n.text)||void 0===o?void 0:o.toString())||""})]})}}const _={today:"Today",tomorrow:"Today",breakfast:"Breakfast",lunch:"Lunch",dinner:"Dinner"},K=e=>{let{data:n={}}=e;const[o,r]=(0,x.useState)("today");return(0,S.jsx)(s.ZP,{item:!0,xs:12,sm:12,md:12,lg:12,xl:12,children:(0,S.jsxs)(N.Z,{className:"card pattern circle-pattern",sx:{backgroundColor:T.Z[50],borderRadius:3,p:1},children:[(0,S.jsxs)(l.Z,{direction:"row",justifyContent:"space-between",gap:1,alignItems:"center",mb:1,children:[(0,S.jsx)(a.Z,{variant:"subtitle1",fontWeight:500,children:"Food Register"}),(0,S.jsxs)(l.Z,{direction:"row",justifyContent:"flex-end",gap:1,children:[(0,S.jsx)(t.Z,{color:"tertiary",variant:"today"===o?"tonal":"text",onClick:()=>r("today"),children:"Today"}),(0,S.jsx)(t.Z,{color:"tertiary",variant:"tomorrow"===o?"tonal":"text",onClick:()=>r("tomorrow"),children:"Tomorrow"})]})]}),(0,S.jsx)(Q,{data:n[o],day:o,inmateCount:n.inmates})]})})},q=(0,x.memo)(K);function Q(e){let{data:n={},inmateCount:o=0}=e;return(0,S.jsx)(V.Z,{style:{width:"100%",height:"auto"},tabIndex:"-1",children:(0,S.jsx)(l.Z,{gap:1,direction:"row",justifyContent:"space-between",flexGrow:1,flexShrink:0,children:Object.keys(n).map((e=>(0,S.jsx)(Y,{label:_[e],data:n[e],inmateCount:o},e)))})})}function Y(e){let{label:n,data:o={},inmateCount:t=0}=e;const{yes:r=0,no:s=0,maybe:c=0}=o;return(0,S.jsxs)(i.Z,{sx:{p:1,position:"relative",borderRadius:2,minWidth:{xs:320,sm:420},backgroundColor:T.Z[100]},elevation:0,children:[(0,S.jsx)(a.Z,{gutterBottom:!0,variant:"body1",fontWeight:500,color:T.Z[900],children:n}),(0,S.jsxs)(l.Z,{direction:"row",justifyContent:"space-between",gap:1,flexShrink:0,children:[(0,S.jsx)(J,{label:"Yes",value:r,color:"#66bb6a",inmateCount:t,textColor:G.Z[900]}),(0,S.jsx)(J,{label:"Maybe",value:c,color:"#ffd54f",inmateCount:t,textColor:D.Z[700]}),(0,S.jsx)(J,{label:"No",value:s,color:"#e57373",inmateCount:t,textColor:O.Z[800]})]})]})}function J(e){let{label:n,value:o=0,color:t,inmateCount:r=0,textColor:s}=e;const i=o/r*100;return(0,S.jsxs)(l.Z,{alignItems:"center",gap:.5,mb:.5,children:[(0,S.jsx)(j.Z,{width:{xs:90,sm:120},children:(0,S.jsx)($,{percentage:i,strokeColor:t,text:o})}),(0,S.jsxs)(a.Z,{variant:"body2",fontWeight:400,color:s,children:[(0,S.jsx)("strong",{children:n})," - ",i||0,"%"]})]})}var X=o(44676);const ee=e=>{let{count:n=0}=e;return(0,S.jsx)(s.ZP,{item:!0,xs:12,sm:6,md:6,lg:10,xl:6,children:(0,S.jsx)(i.Z,{sx:{backgroundColor:O.Z[100],borderRadius:3},elevation:0,children:(0,S.jsxs)(l.Z,{p:2,gap:1,px:3.5,mb:1,children:[(0,S.jsxs)(l.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,S.jsx)(a.Z,{variant:"subtitle1",color:"#555",children:"Open Issues"}),(0,S.jsx)(X.Z,{sx:{color:O.Z[900],m:1,fontSize:"2rem",opacity:.75}})]}),(0,S.jsxs)(l.Z,{children:[(0,S.jsx)(a.Z,{variant:"h3",color:O.Z[900],fontWeight:600,lineHeight:.85,children:(0,S.jsx)(W.ZP,{duration:3,end:(0,k.V2)(n)})}),(0,S.jsx)(a.Z,{variant:"body2",color:y.Z[600],children:"Issues are yet to be resolved"})]})]})})})},ne=(0,x.memo)(ee);var oe=o(73745),te=o(16656);const re=e=>{let{count:n=0}=e;return(0,S.jsx)(s.ZP,{item:!0,xs:12,sm:6,md:6,lg:10,xl:6,children:(0,S.jsx)(i.Z,{sx:{backgroundColor:te.Z[100],borderRadius:3}
1,elevation:0,children:(0,S.jsxs)(l.Z,{p:2,gap:1,px:3.5,mb:1,children:[(0,S.jsxs)(l.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,S.jsx)(a.Z,{variant:"subtitle1",color:"#555",children:"Advance Amount"}),(0,S.jsx)(oe.Z,{sx:{color:te.Z[900],m:1,fontSize:"2rem",opacity:.75}})]}),(0,S.jsxs)(l.Z,{children:[(0,S.jsx)(a.Z,{variant:"h3",color:te.Z[900],fontWeight:600,lineHeight:.85,children:(0,S.jsx)(W.ZP,{duration:3,end:n})}),(0,S.jsx)(a.Z,{variant:"body2",color:te.Z[600],children:"Deposit remaining with you"})]})]})})})},se=(0,x.memo)(re);var ie=o(57851),le=o(37596);const ae=e=>{let{count:n=0}=e;return(0,S.jsx)(s.ZP,{item:!0,xs:12,sm:6,md:6,lg:10,xl:6,children:(0,S.jsx)(i.Z,{sx:{backgroundColor:le.Z[100],borderRadius:3},elevation:0,children:(0,S.jsxs)(l.Z,{p:2,gap:1,px:3.5,mb:1,children:[(0,S.jsxs)(l.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,S.jsx)(a.Z,{variant:"subtitle1",color:"#555",children:"Payments"}),(0,S.jsx)(oe.Z,{sx:{color:le.Z[900],m:1,fontSize:"2rem",opacity:.75}})]}),(0,S.jsxs)(l.Z,{children:[(0,S.jsx)(a.Z,{variant:"h3",color:le.Z[900],fontWeight:600,lineHeight:.85,children:(0,S.jsx)(W.ZP,{duration:3,end:(0,k.V2)(n)})}),(0,S.jsx)(a.Z,{variant:"body2",color:y.Z[600],children:"Payments are yet to be collected"})]})]})})})},ce=(0,x.memo)(ae);var de=o(15084);const ue=e=>{let{pageRef:n}=e;d.k.info("[HomePage] mounting...");const[o,p]=(0,x.useState)(),[g,f]=(0,x.useState)(!1),{enqueueSnackbar:Z}=(0,u.Ds)(),{businessId:j}=(0,m.UO)(),b=(0,x.useCallback)((()=>{d.k.debug("[BookingsPage]:{getHomePageData} fetching dashboard data...");const e=new AbortController;return async function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h.R.GET({url:`/${e}/dashboard/home`},n)}(j,{signal:e.signal,pageRef:n}).then((e=>{let{response:n={},error:o}=e;if("canceled"!==(null===o||void 0===o?void 0:o.message))return null!==o&&void 0!==o&&o.message?("E100001"===(null===o||void 0===o?void 0:o.code)&&f(o.message),Z(null===o||void 0===o?void 0:o.message,{variant:"error"})):void p({...n})})),e}),[Z,n,j]);return(0,x.useEffect)((()=>{d.k.info("[HomePage] mounted");const e=b();return()=>{e.abort(),d.k.info("[HomePage] unmounted")}}),[b]),(0,S.jsxs)(s.ZP,{container:!0,justifyContent:"center",columnSpacing:3,rowSpacing:2,children:[null!==o&&void 0!==o&&o.bannerData?(0,S.jsx)(s.ZP,{item:!0,xs:12,children:(0,S.jsx)(i.Z,{sx:{p:2,backgroundColor:ie.Z[50],color:ie.Z[800],borderRadius:3},elevation:0,children:(0,S.jsxs)(l.Z,{direction:"row",gap:1,alignItems:"center",children:[(0,S.jsx)(c.Z,{fontSize:"large"}),(0,S.jsx)(a.Z,{fontWeight:600,variant:"body1",children:"In publishing and graphic design, Lorem ipsum is a placeholder text commo"})]})})}):null,g?(0,S.jsx)(s.ZP,{item:!0,xs:12,children:(0,S.jsx)(i.Z,{sx:{p:2,backgroundColor:O.Z[50],color:O.Z[800],borderRadius:3},elevation:0,children:(0,S.jsxs)(l.Z,{direction:"row",gap:1,justifyContent:"space-between",alignItems:"center",children:[(0,S.jsxs)(l.Z,{direction:"row",gap:1,alignItems:"center",children:[(0,S.jsx)(c.Z,{fontSize:"large",sx:{color:O.Z[300]}}),(0,S.jsx)(a.Z,{fontWeight:600,variant:"body1",children:g})]}),(0,S.jsx)(t.Z,{startIcon:(0,S.jsx)(r.Z,{}),color:"tertiary",variant:"contained",component:w.rU,to:(0,I.Gn)(P.Z.BUY_BUSINESS_LICENSE,{businessId:j}),children:"Renew"})]})})}):null,o?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(s.ZP,{container:!0,item:!0,xs:12,sm:10,md:12,lg:8,xl:6,spacing:2,justifyContent:{xs:"center",sm:"flex-start"},children:[(0,S.jsx)(B,{businessId:j}),(0,S.jsx)(M,{count:null===o||void 0===o?void 0:o.availableBeds,totalBedsCount:null===o||void 0===o?void 0:o.totalBeds}),(0,S.jsx)(E,{count:null===o||void 0===o?void 0:o.inmates}),(0,S.jsx)(q,{data:null===o||void 0===o?void 0:o.foodRegisterData})]}),(0,S.jsxs)(s.ZP,{container:!0,item:!0,xs:12,sm:10,md:12,lg:4,xl:6,spacing:3,alignContent:"flex-start",justifyContent:"flex-start ",children:[(0,S.jsx)(s.ZP,{item:!0,xs:12,children:(0,S.jsx)(de.Z,{})}
1),(0,S.jsx)(ne,{count:null===o||void 0===o?void 0:o.issues}),(0,S.jsx)(ce,{count:null===o||void 0===o?void 0:o.dueCount}),(0,S.jsx)(se,{count:null===o||void 0===o?void 0:o.totalAdvance})]})]}):null]})}}}]);
2//# sourceMappingURL=1496.f936a29b.chunk.js.map

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.