Build & Move to Dashboard Folder

This commit is contained in:
2022-07-27 11:25:15 +07:00
parent 58e46b4a9e
commit b7ab616875
72 changed files with 1223 additions and 1 deletions

View File

@@ -8,7 +8,7 @@
"lint": "eslint --ext .ts,.tsx ./src",
"lint:fix": "eslint --fix --ext .ts,.tsx ./src",
"start": "vite",
"build": "vite build --mode production && cp .htaccess build/.htaccess && rm -f -r ../../public/client-portal && cp -r build ../../public/client-portal",
"build": "vite build --mode production && cp .htaccess build/.htaccess && rm -f -r ../../public/dashboard && cp -r build ../../public/dashboard",
"serve": "vite preview",
"clear-all": "rm -rf build node_modules",
"re-start": "rm -rf build node_modules && yarn install && yarn start",

View File

@@ -0,0 +1,7 @@
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.html [QSA,L]
</IfModule>

View File

@@ -0,0 +1 @@
/* /index.html 200

View File

@@ -0,0 +1 @@
import{c as r,i as a,r as t}from"./KeyboardArrowRight.ddd69546.js";import"./index.50ee9c17.js";var e={},v=a.exports;Object.defineProperty(e,"__esModule",{value:!0});var d=e.default=void 0,u=v(r),o=t,i=(0,u.default)((0,o.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");d=e.default=i;export{d};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{v as d,w as u,t as C,P as p,r as f,x as m,y as x,z as n,f as v,D as y,E as w}from"./index.50ee9c17.js";function h(s){return d("MuiCard",s)}u("MuiCard",["root"]);const M=["className","raised"],P=s=>{const{classes:e}=s;return w({root:["root"]},h,e)},R=C(p,{name:"MuiCard",slot:"Root",overridesResolver:(s,e)=>e.root})(()=>({overflow:"hidden"})),U=f.exports.forwardRef(function(e,o){const t=m({props:e,name:"MuiCard"}),{className:l,raised:r=!1}=t,i=x(t,M),a=n({},t,{raised:r}),c=P(a);return v(R,n({className:y(c.root,l),elevation:r?8:void 0,ref:o,ownerState:a},i))});var N=U;export{N as C};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{ak as C,bg as D,c as v,d,bf as y,r as m,e as S,j as a,f as e,F as O,S as l,T as t,R as u,bm as h,ax as f,o as F}from"./index.50ee9c17.js";import{H as B}from"./HeaderBreadcrumbs.c47a9118.js";import{R as i}from"./RHFCheckbox.444dff81.js";import{P as E}from"./Page.3082f431.js";import{G as n}from"./Grid.c4953246.js";import{C as I}from"./Card.c346d7a4.js";import"./FormControlLabel.b9879300.js";function w(){C(),D();const p=v().shape({name:d().required("Name is required"),code:d().required("Corporate Code is required"),active:y().required("Corporate Status is required")}),x=m.exports.useMemo(()=>({code:""}),[]),s=S({resolver:F(p),defaultValues:x}),{reset:q,watch:P,control:k,setValue:H,getValues:N,setError:R,handleSubmit:g,formState:{isSubmitting:V}}=s,b=async r=>{console.log(r)};m.exports.useState(!1);const c=[{category:"General Practitioner",childs:[{name:"External Doctor Online",code:"gp-external-doctor-online"},{name:"External Doctor Offline",code:"gp-external-doctor-offline"},{name:"Internal Doctor Online",code:"gp-internal-doctor-online"},{name:"Internal Doctor Offline",code:"gp-internal-doctor-offline"}]},{category:"Specialist",childs:[{name:"External Doctor Online",code:"sp-external-doctor-online"},{name:"External Doctor Offline",code:"sp-external-doctor-offline"},{name:"Internal Doctor Online",code:"sp-internal-doctor-online"},{name:"Internal Doctor Offline",code:"sp-internal-doctor-offline"}]},{category:"Medicines",childs:[{name:"Vitamins",code:"medicines-vitamins"},{name:"Delivery Fee",code:"medicines-delivery-fee"}]}];return a(E,{title:"Create Benefit",children:[e(B,{heading:"Create Benefit",links:[{name:"Dashboard",href:"/dashboard"},{name:"Corporates",href:"/corporates"},{name:"Corporate Name",href:"/corporates/"+id},{name:"Benefits",href:"/corporates/"+id+"/benefits"},{name:"Create",href:"/corporates/"+id+"/benefits/create"}]}),e(n,{container:!0,spacing:2,children:e(n,{item:!0,xs:12,children:e(I,{sx:{p:2},children:e(O,{methods:s,onSubmit:g(b),children:a(l,{spacing:3,children:[e(t,{variant:"h6",children:"Benefit Detail"}),e(u,{name:"name",label:"Benefit Name"}),e(u,{name:"code",label:"Benefit Code"}),e(t,{variant:"h6",children:"Benefit Configuration"}),e(h,{orientation:"horizontal",flexItem:!0}),a(l,{spacing:3,divider:e(h,{orientation:"horizontal",flexItem:!0}),children:[a(l,{spacing:2,children:[e(i,{name:"a",label:"Outpatient"}),c.map(r=>a(f,{in:!0,timeout:"auto",unmountOnExit:!0,children:[e(t,{children:r.category}),e(n,{container:!0,children:r.childs.map(o=>e(n,{item:!0,xs:6,children:e(i,{name:o.code,label:o.name})}))})]})),e(t,{children:"Admin Fee"}),e(n,{container:!0,children:c.map(r=>e(n,{item:!0,xs:4,children:e(i,{name:"cat",label:r.category})}))})]}),a(l,{spacing:2,children:[e(i,{name:"a",label:"Inpatient"}),c.map(r=>a(f,{in:!0,timeout:"auto",unmountOnExit:!0,children:[e(t,{children:r.category}),e(n,{container:!0,children:r.childs.map(o=>e(n,{item:!0,xs:6,children:e(i,{name:o.code,label:o.name})}))})]})),e(t,{children:"Admin Fee"}),e(n,{container:!0,children:c.map(r=>e(n,{item:!0,xs:4,children:e(i,{name:"cat",label:r.category})}))})]})]})]})})})})})]})}export{w as default};

View File

@@ -0,0 +1 @@
import{ak as t,u as r,f as q,j as s,C as n,T as a}from"./index.50ee9c17.js";import{P as h}from"./Page.3082f431.js";function c(){const{themeStretch:e}=t();return r(),q(h,{title:"Create Obat",children:s(n,{maxWidth:e?!1:"xl",children:[q(a,{variant:"h3",component:"h1",paragraph:!0,children:"Create Obat"}),q(a,{children:"qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq"})]})})}export{c as default};

View File

@@ -0,0 +1 @@
import{ak as D,bg as C,c as S,d as m,bf as y,r as u,e as v,j as n,f as e,F as O,S as s,T as t,R as l,bm as h,ax as p,o as P}from"./index.50ee9c17.js";import{H as F}from"./HeaderBreadcrumbs.c47a9118.js";import{R as i}from"./RHFCheckbox.444dff81.js";import{P as E}from"./Page.3082f431.js";import{G as r}from"./Grid.c4953246.js";import{C as Y}from"./Card.c346d7a4.js";import"./FormControlLabel.b9879300.js";function $(){D(),C();const f=S().shape({name:m().required("Name is required"),code:m().required("Corporate Code is required"),active:y().required("Corporate Status is required")}),x=u.exports.useMemo(()=>({code:""}),[]),d=v({resolver:P(f),defaultValues:x}),{reset:I,watch:q,control:M,setValue:k,getValues:H,setError:N,handleSubmit:g,formState:{isSubmitting:R}}=d,b=async a=>{console.log(a)};u.exports.useState(!1);const c=[{category:"General Practitioner",childs:[{name:"External Doctor Online",code:"gp-external-doctor-online"},{name:"External Doctor Offline",code:"gp-external-doctor-offline"},{name:"Internal Doctor Online",code:"gp-internal-doctor-online"},{name:"Internal Doctor Offline",code:"gp-internal-doctor-offline"}]},{category:"Specialist",childs:[{name:"External Doctor Online",code:"sp-external-doctor-online"},{name:"External Doctor Offline",code:"sp-external-doctor-offline"},{name:"Internal Doctor Online",code:"sp-internal-doctor-online"},{name:"Internal Doctor Offline",code:"sp-internal-doctor-offline"}]},{category:"Medicines",childs:[{name:"Vitamins",code:"medicines-vitamins"},{name:"Delivery Fee",code:"medicines-delivery-fee"}]}];return n(E,{title:"Create Plan",children:[e(F,{heading:"Create Plan",links:[{name:"Dashboard",href:"/dashboard"},{name:"Corporates",href:"/corporates"},{name:"Corporate Name",href:"/corporates/"+id},{name:"Plans",href:"/corporates/"+id+"/plans"},{name:"Create",href:"/corporates/"+id+"/plans/create"}]}),e(r,{container:!0,spacing:2,children:e(r,{item:!0,xs:12,children:e(Y,{sx:{p:2},children:e(O,{methods:d,onSubmit:g(b),children:n(s,{spacing:3,children:[e(t,{variant:"h6",children:"Plan Detail"}),e(l,{name:"name",label:"Name"}),e(l,{name:"code",label:"Code"}),e(l,{name:"limit",label:"Limit"}),e(l,{name:"start",label:"Start (YYYY-MM-DD)"}),e(l,{name:"end",label:"End (YYYY-MM-DD)"}),e(t,{variant:"h6",children:"Benefit Configuration"}),e(h,{orientation:"horizontal",flexItem:!0}),n(s,{spacing:3,divider:e(h,{orientation:"horizontal",flexItem:!0}),children:[n(s,{spacing:2,children:[e(i,{name:"a",label:"Outpatient"}),c.map(a=>n(p,{in:!0,timeout:"auto",unmountOnExit:!0,children:[e(t,{children:a.category}),e(r,{container:!0,children:a.childs.map(o=>e(r,{item:!0,xs:6,children:e(i,{name:o.code,label:o.name})}))})]})),e(t,{children:"Admin Fee"}),e(r,{container:!0,children:c.map(a=>e(r,{item:!0,xs:4,children:e(i,{name:"cat",label:a.category})}))})]}),n(s,{spacing:2,children:[e(i,{name:"a",label:"Inpatient"}),c.map(a=>n(p,{in:!0,timeout:"auto",unmountOnExit:!0,children:[e(t,{children:a.category}),e(r,{container:!0,children:a.childs.map(o=>e(r,{item:!0,xs:6,children:e(i,{name:o.code,label:o.name})}))})]})),e(t,{children:"Admin Fee"}),e(r,{container:!0,children:c.map(a=>e(r,{item:!0,xs:4,children:e(i,{name:"cat",label:a.category})}))})]})]})]})})})})})]})}export{$ as default};

View File

@@ -0,0 +1 @@
import{H as j}from"./HeaderBreadcrumbs.c47a9118.js";import{P as E}from"./Page.3082f431.js";import{be as T,a as k,bg as R,c as V,d as b,r as m,e as B,f as a,F as D,j as n,S as x,T as S,R as F,k as G,ay as l,o as _,ak as z}from"./index.50ee9c17.js";import{R as A}from"./RHFSwitch.2423e5ed.js";import{R as L}from"./RHFEditor.084f4b81.js";import{G as p}from"./Grid.c4953246.js";import{C as y}from"./Card.c346d7a4.js";import"./FormControlLabel.b9879300.js";function M({isEdit:s,currentCorporatePlan:e}){const{enqueueSnackbar:i}=T(),d=k(),{corporate_id:r}=R(),c=V().shape({name:b().required("Name is required"),code:b().required("Corporate Code is required")}),o=m.exports.useMemo(()=>({name:(e==null?void 0:e.name)||"",code:(e==null?void 0:e.code)||"",active:(e==null?void 0:e.active)||!0,description:(e==null?void 0:e.description)||""}),[e]);m.exports.useEffect(()=>{s&&e&&f(o),s||f(o)},[s,e]);const h=B({resolver:_(c),defaultValues:o}),{reset:f,watch:O,control:U,setValue:W,getValues:$,setError:q,handleSubmit:w,formState:{isSubmitting:H}}=h;return a(D,{methods:h,onSubmit:w(async u=>{s?await l.put("/corporates/"+r+"/corporate-plans/"+(e==null?void 0:e.id),u).then(t=>{i("Corporate Plan updated successfully",{variant:"success"})}).then(t=>{d("/corporates/"+r+"/corporate-plans/",{replace:!0})}).catch(({response:t})=>{i("Update Failed : "+t.data.message,{variant:"error"})}):await l.post("/corporates/"+r+"/corporate-plans",u).then(t=>{i("Corporate Plan created successfully",{variant:"success"})}).then(t=>{d("/corporates/"+r+"/corporate-plans",{replace:!0})}).catch(({response:t})=>{var g;if(t.status===422)for(const[N,v]of Object.entries(t.data.errors))q(N,{message:v[0]}),i((g=v[0])!=null?g:"Failed Processing Request",{variant:"error"});else i("Create Failed : "+t.data.message,{variant:"error"})})}),children:n(p,{container:!0,spacing:2,children:[a(p,{item:!0,xs:8,children:a(y,{sx:{p:2},children:n(x,{spacing:3,children:[a(S,{variant:"h6",children:"Corporate Plan Detail"}),a(F,{name:"name",label:"Name"}),a(F,{name:"code",label:"Code"}),n(x,{spacing:1,children:[a(S,{variant:"subtitle2",sx:{color:"text.secondary"},children:"Description"}),a(L,{name:"description"})]}),a(G,{type:"submit",variant:"contained",size:"large",fullWidth:!0,loading:H,children:"Create Corporate Plan"})]})})}),a(p,{item:!0,xs:4,children:a(y,{sx:{p:2},children:a(A,{name:"active",label:"Active"})})})]})})}function ee(){z();const{corporate_id:s,id:e}=R(),[i,d]=m.exports.useState(),r=k(),c=!!e;return m.exports.useEffect(()=>{c&&l.get("/corporates/"+s+"/corporate-plans/"+e+"/edit").then(o=>{d(o.data)}).catch(o=>{o.response.status===404&&r("/404")})},[s,e]),n(E,{title:"Create Corporate Plan",children:[a(j,{heading:"Create Corporate Plan",links:[{name:"Corporates",href:"/corporates"},{name:"Corporate Name",href:"/corporates/"+s},{name:"Corporate Plans",href:"/corporates/"+s+"/corporate-plans"},{name:c?"Edit":"Create",href:"/corporates/"+s+"/corporate-plans/"+e}]}),a(M,{isEdit:c,currentCorporatePlan:i})]})}export{ee as default};

View File

@@ -0,0 +1 @@
import{H as N}from"./HeaderBreadcrumbs.c47a9118.js";import{P as R}from"./Page.3082f431.js";import{be as j,a as F,bg as y,c as H,d as b,r as n,e as T,f as s,F as V,j as f,S as B,T as G,R as S,k as U,ay as h,o as _,ak as z}from"./index.50ee9c17.js";import{R as A}from"./RHFSwitch.2423e5ed.js";import{G as m}from"./Grid.c4953246.js";import{C as x}from"./Card.c346d7a4.js";import"./FormControlLabel.b9879300.js";function E({isEdit:i,currentCorporatePlan:e}){const{enqueueSnackbar:t}=j(),d=F(),{corporate_id:r}=y(),c=H().shape({name:b().required("Name is required"),code:b().required("Corporate Code is required")}),o=n.exports.useMemo(()=>({name:(e==null?void 0:e.name)||"",code:(e==null?void 0:e.code)||"",active:(e==null?void 0:e.active)===1}),[e]);n.exports.useEffect(()=>{i&&e&&v(o),i||v(o)},[i,e]);const u=T({resolver:_(c),defaultValues:o}),{reset:v,watch:L,control:M,setValue:O,getValues:W,setError:k,handleSubmit:D,formState:{isSubmitting:q}}=u;return s(V,{methods:u,onSubmit:D(async l=>{i?await h.put("/corporates/"+r+"/divisions/"+(e==null?void 0:e.id),l).then(a=>{t("Division updated successfully",{variant:"success"})}).then(a=>{d("/corporates/"+r+"/divisions/",{replace:!0})}).catch(({response:a})=>{t("Update Failed : "+a.data.message,{variant:"error"})}):await h.post("/corporates/"+r+"/divisions",l).then(a=>{t("Division created successfully",{variant:"success"})}).then(a=>{d("/corporates/"+r+"/divisions",{replace:!0})}).catch(({response:a})=>{var p;if(a.status===422)for(const[w,g]of Object.entries(a.data.errors))k(w,{message:g[0]}),t((p=g[0])!=null?p:"Failed Processing Request",{variant:"error"});else t("Create Failed : "+a.data.message,{variant:"error"})})}),children:f(m,{container:!0,spacing:2,children:[s(m,{item:!0,xs:8,children:s(x,{sx:{p:2},children:f(B,{spacing:3,children:[s(G,{variant:"h6",children:"Division Detail"}),s(S,{name:"name",label:"Name"}),s(S,{name:"code",label:"Code"}),s(U,{type:"submit",variant:"contained",size:"large",fullWidth:!0,loading:q,children:i?"Update":"Create"})]})})}),s(m,{item:!0,xs:4,children:s(x,{sx:{p:2},children:s(A,{name:"active",label:"Active"})})})]})})}function C(){z();const{corporate_id:i,id:e}=y(),[t,d]=n.exports.useState(),r=F(),c=!!e;return n.exports.useEffect(()=>{c&&h.get("/corporates/"+i+"/divisions/"+e+"/edit").then(o=>{d(o.data)}).catch(o=>{o.response.status===404&&r("/404")})},[i,e]),f(R,{title:"Create Corporate Division",children:[s(N,{heading:"Create Corporate Division",links:[{name:"Corporates",href:"/corporates"},{name:"Corporate Name",href:"/corporates/"+i},{name:"Division",href:"/corporates/"+i+"/divisions"},{name:c?"Edit":"Create",href:"/corporates/"+i+"/divisions/"+e}]}),s(E,{isEdit:c,currentCorporatePlan:t})]})}export{C as default};

View File

@@ -0,0 +1 @@
import{H as N}from"./HeaderBreadcrumbs.c47a9118.js";import{P as R}from"./Page.3082f431.js";import{be as j,a as F,bg as P,c as H,d as v,r as d,e as T,f as a,F as V,j as m,S as C,T as G,R as S,k as U,ay as p,o as _,ak as z}from"./index.50ee9c17.js";import{R as A}from"./RHFSwitch.2423e5ed.js";import{G as l}from"./Grid.c4953246.js";import{C as x}from"./Card.c346d7a4.js";import"./FormControlLabel.b9879300.js";function D({isEdit:s,currentCorporateBenefit:e}){const{enqueueSnackbar:r}=j(),n=F(),{corporate_id:i}=P(),c=H().shape({name:v().required("Name is required"),code:v().required("Corporate Code is required")}),o=d.exports.useMemo(()=>({name:(e==null?void 0:e.name)||"",code:(e==null?void 0:e.code)||"",active:(e==null?void 0:e.active)===1}),[e]);d.exports.useEffect(()=>{s&&e&&u(o),s||u(o)},[s,e]);const h=T({resolver:_(c),defaultValues:o}),{reset:u,watch:E,control:L,setValue:M,getValues:O,setError:y,handleSubmit:k,formState:{isSubmitting:q}}=h;return a(V,{methods:h,onSubmit:k(async f=>{s?await p.put("/corporates/"+i+"/corporate-benefits/"+(e==null?void 0:e.id),f).then(t=>{r("Corporate Benefit updated successfully",{variant:"success"})}).then(t=>{n("/corporates/"+i+"/corporate-benefits/",{replace:!0})}).catch(({response:t})=>{r("Update Failed : "+t.data.message,{variant:"error"})}):await p.post("/corporates/"+i+"/corporate-benefits",f).then(t=>{r("Corporate Plan created successfully",{variant:"success"})}).then(t=>{n("/corporates/"+i+"/corporate-benefits",{replace:!0})}).catch(({response:t})=>{var b;if(t.status===422)for(const[w,g]of Object.entries(t.data.errors))y(w,{message:g[0]}),r((b=g[0])!=null?b:"Failed Processing Request",{variant:"error"});else r("Create Failed : "+t.data.message,{variant:"error"})})}),children:m(l,{container:!0,spacing:2,children:[a(l,{item:!0,xs:8,children:a(x,{sx:{p:2},children:m(C,{spacing:3,children:[a(G,{variant:"h6",children:"Corporate Benefit Detail"}),a(S,{name:"name",label:"Name"}),a(S,{name:"code",label:"Code"}),a(U,{type:"submit",variant:"contained",size:"large",fullWidth:!0,loading:q,children:s?"Update":"Create"})]})})}),a(l,{item:!0,xs:4,children:a(x,{sx:{p:2},children:a(A,{name:"active",label:"Active"})})})]})})}function Z(){z();const{corporate_id:s,id:e}=P(),[r,n]=d.exports.useState(),i=F(),c=!!e;return d.exports.useEffect(()=>{c&&p.get("/corporates/"+s+"/corporate-benefits/"+e+"/edit").then(o=>{n(o.data)}).catch(o=>{o.response.status===404&&i("/404")})},[s,e]),m(R,{title:"Create Corporate Benefit",children:[a(N,{heading:"Create Corporate Benefit",links:[{name:"Corporates",href:"/corporates"},{name:"Corporate Name",href:"/corporates/"+s},{name:"Corporate Benefits",href:"/corporates/"+s+"/corporate-benefits"},{name:c?"Edit":"Create",href:"/corporates/"+s+"/corporate-benefits/"+e}]}),a(D,{isEdit:c,currentCorporateBenefit:r})]})}export{Z as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{v as z,w as E,t as v,U as X,z as i,r as w,y as M,V as Y,M as j,j as D,f as _,D as q,J as S,E as O,x as Z,N as ee,T as U}from"./index.50ee9c17.js";function oe(e){return z("PrivateSwitchBase",e)}E("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const te=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],ae=e=>{const{classes:o,checked:a,disabled:t,edge:l}=e,d={root:["root",a&&"checked",t&&"disabled",l&&`edge${S(l)}`],input:["input"]};return O(d,oe,o)},le=v(X)(({ownerState:e})=>i({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),se=v("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ne=w.exports.forwardRef(function(o,a){const{autoFocus:t,checked:l,checkedIcon:d,className:u,defaultChecked:g,disabled:x,disableFocusRipple:C=!1,edge:k=!1,icon:B,id:b,inputProps:n,inputRef:y,name:L,onBlur:m,onChange:f,onFocus:r,readOnly:p,required:W,tabIndex:A,type:P,value:$}=o,H=M(o,te),[I,J]=Y({controlled:l,default:Boolean(g),name:"SwitchBase",state:"checked"}),c=j(),V=s=>{r&&r(s),c&&c.onFocus&&c.onFocus(s)},G=s=>{m&&m(s),c&&c.onBlur&&c.onBlur(s)},K=s=>{if(s.nativeEvent.defaultPrevented)return;const T=s.target.checked;J(T),f&&f(s,T)};let h=x;c&&typeof h=="undefined"&&(h=c.disabled);const Q=P==="checkbox"||P==="radio",R=i({},o,{checked:I,disabled:h,disableFocusRipple:C,edge:k}),N=ae(R);return D(le,i({component:"span",className:q(N.root,u),centerRipple:!0,focusRipple:!C,disabled:h,tabIndex:null,role:void 0,onFocus:V,onBlur:G,ownerState:R,ref:a},H,{children:[_(se,i({autoFocus:t,checked:l,defaultChecked:g,className:N.input,disabled:h,id:Q&&b,name:L,onChange:K,readOnly:p,ref:y,required:W,ownerState:R,tabIndex:A,type:P},P==="checkbox"&&$===void 0?{}:{value:$},n)),I?d:B]}))});var me=ne;function re(e){return z("MuiFormControlLabel",e)}const ce=E("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]);var F=ce;const ie=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","value"],de=e=>{const{classes:o,disabled:a,labelPlacement:t,error:l}=e,d={root:["root",a&&"disabled",`labelPlacement${S(t)}`,l&&"error"],label:["label",a&&"disabled"]};return O(d,re,o)},ue=v("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:a}=e;return[{[`& .${F.label}`]:o.label},o.root,o[`labelPlacement${S(a.labelPlacement)}`]]}})(({theme:e,ownerState:o})=>i({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${F.disabled}`]:{cursor:"default"}},o.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},o.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},o.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${F.label}`]:{[`&.${F.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),pe=w.exports.forwardRef(function(o,a){const t=Z({props:o,name:"MuiFormControlLabel"}),{className:l,componentsProps:d={},control:u,disabled:g,disableTypography:x,label:C,labelPlacement:k="end"}=t,B=M(t,ie),b=j();let n=g;typeof n=="undefined"&&typeof u.props.disabled!="undefined"&&(n=u.props.disabled),typeof n=="undefined"&&b&&(n=b.disabled);const y={disabled:n};["checked","name","onChange","value","inputRef"].forEach(p=>{typeof u.props[p]=="undefined"&&typeof t[p]!="undefined"&&(y[p]=t[p])});const L=ee({props:t,muiFormControl:b,states:["error"]}),m=i({},t,{disabled:n,labelPlacement:k,error:L.error}),f=de(m);let r=C;return r!=null&&r.type!==U&&!x&&(r=_(U,i({component:"span",className:f.label},d.typography,{children:r}))),D(ue,i({className:q(f.root,l),ownerState:m,ref:a},B,{children:[w.exports.cloneElement(u,y),r]}))});var fe=pe;export{fe as F,me as S};

View File

@@ -0,0 +1 @@
import{r as v,v as D,w as I,t as T,z as x,x as j,ah as O,al as U,y as _,f as M,D as L,am as h,an as G,E as A}from"./index.50ee9c17.js";const F=v.exports.createContext();var z=F;function Z(n){return D("MuiGrid",n)}const q=[0,1,2,3,4,5,6,7,8,9,10],H=["column-reverse","column","row-reverse","row"],J=["nowrap","wrap-reverse","wrap"],g=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],W=I("MuiGrid",["root","container","item","zeroMinWidth",...q.map(n=>`spacing-xs-${n}`),...H.map(n=>`direction-xs-${n}`),...J.map(n=>`wrap-xs-${n}`),...g.map(n=>`grid-xs-${n}`),...g.map(n=>`grid-sm-${n}`),...g.map(n=>`grid-md-${n}`),...g.map(n=>`grid-lg-${n}`),...g.map(n=>`grid-xl-${n}`)]),K=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function m(n){const e=parseFloat(n);return`${e}${String(n).replace(String(e),"")||"px"}`}function Q({theme:n,ownerState:e}){let s;return n.breakpoints.keys.reduce((r,t)=>{let i={};if(e[t]&&(s=e[t]),!s)return r;if(s===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(s==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=h({values:e.columns,breakpoints:n.breakpoints.values}),o=typeof a=="object"?a[t]:a;if(o==null)return r;const u=`${Math.round(s/o*1e8)/1e6}%`;let p={};if(e.container&&e.item&&e.columnSpacing!==0){const c=n.spacing(e.columnSpacing);if(c!=="0px"){const l=`calc(${u} + ${m(c)})`;p={flexBasis:l,maxWidth:l}}}i=x({flexBasis:u,flexGrow:0,maxWidth:u},p)}return n.breakpoints.values[t]===0?Object.assign(r,i):r[n.breakpoints.up(t)]=i,r},{})}function X({theme:n,ownerState:e}){const s=h({values:e.direction,breakpoints:n.breakpoints.values});return G({theme:n},s,r=>{const t={flexDirection:r};return r.indexOf("column")===0&&(t[`& > .${W.item}`]={maxWidth:"none"}),t})}function Y({theme:n,ownerState:e}){const{container:s,rowSpacing:r}=e;let t={};if(s&&r!==0){const i=h({values:r,breakpoints:n.breakpoints.values});t=G({theme:n},i,a=>{const o=n.spacing(a);return o!=="0px"?{marginTop:`-${m(o)}`,[`& > .${W.item}`]:{paddingTop:m(o)}}:{}})}return t}function nn({theme:n,ownerState:e}){const{container:s,columnSpacing:r}=e;let t={};if(s&&r!==0){const i=h({values:r,breakpoints:n.breakpoints.values});t=G({theme:n},i,a=>{const o=n.spacing(a);return o!=="0px"?{width:`calc(100% + ${m(o)})`,marginLeft:`-${m(o)}`,[`& > .${W.item}`]:{paddingLeft:m(o)}}:{}})}return t}function en(n,e,s={}){if(!n||n<=0)return[];if(typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number")return[s[`spacing-xs-${String(n)}`]];const r=[];return e.forEach(t=>{const i=n[t];Number(i)>0&&r.push(s[`spacing-${t}-${String(i)}`])}),r}const rn=T("div",{name:"MuiGrid",slot:"Root",overridesResolver:(n,e)=>{const{ownerState:s}=n,{container:r,direction:t,item:i,spacing:a,wrap:o,zeroMinWidth:u,breakpoints:p}=s;let c=[];r&&(c=en(a,p,e));const l=[];return p.forEach(d=>{const f=s[d];f&&l.push(e[`grid-${d}-${String(f)}`])}),[e.root,r&&e.container,i&&e.item,u&&e.zeroMinWidth,...c,t!=="row"&&e[`direction-xs-${String(t)}`],o!=="wrap"&&e[`wrap-xs-${String(o)}`],...l]}})(({ownerState:n})=>x({boxSizing:"border-box"},n.container&&{display:"flex",flexWrap:"wrap",width:"100%"},n.item&&{margin:0},n.zeroMinWidth&&{minWidth:0},n.wrap!=="wrap"&&{flexWrap:n.wrap}),X,Y,nn,Q);function tn(n,e){if(!n||n<=0)return[];if(typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number")return[`spacing-xs-${String(n)}`];const s=[];return e.forEach(r=>{const t=n[r];if(Number(t)>0){const i=`spacing-${r}-${String(t)}`;s.push(i)}}),s}const sn=n=>{const{classes:e,container:s,direction:r,item:t,spacing:i,wrap:a,zeroMinWidth:o,breakpoints:u}=n;let p=[];s&&(p=tn(i,u));const c=[];u.forEach(d=>{const f=n[d];f&&c.push(`grid-${d}-${String(f)}`)});const l={root:["root",s&&"container",t&&"item",o&&"zeroMinWidth",...p,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...c]};return A(l,Z,e)},on=v.exports.forwardRef(function(e,s){const r=j({props:e,name:"MuiGrid"}),{breakpoints:t}=O(),i=U(r),{className:a,columns:o,columnSpacing:u,component:p="div",container:c=!1,direction:l="row",item:d=!1,rowSpacing:f,spacing:S=0,wrap:y="wrap",zeroMinWidth:P=!1}=i,w=_(i,K),E=f||S,R=u||S,B=v.exports.useContext(z),b=c?o||12:B,C={},N=x({},w);t.keys.forEach($=>{w[$]!=null&&(C[$]=w[$],delete N[$])});const k=x({},i,{columns:b,container:c,direction:l,item:d,rowSpacing:E,columnSpacing:R,wrap:y,zeroMinWidth:P,spacing:S},C,{breakpoints:t.keys}),V=sn(k);return M(z.Provider,{value:b,children:M(rn,x({ownerState:k,className:L(V.root,a),as:p,ref:s},N))})});var cn=on;export{cn as G};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{T as W,a as T,b as o,d as i,e as t,f as G,g as $}from"./KeyboardArrowRight.ddd69546.js";import{d as q}from"./Add.72d211c7.js";import{ak as J,aq as d,r as K,ah as Q,f as e,j as r,C as U,ar as V,as as I,at as P,au as v,av as _,aw as D,i as p,ap as u,P as X,g as Y,S as Z,ax as w,B as R,T as ee,ay as ae}from"./index.50ee9c17.js";import{P as te}from"./Page.3082f431.js";import{H as le}from"./HeaderBreadcrumbs.c47a9118.js";import{G as h}from"./Grid.c4953246.js";import{C as ne}from"./Card.c346d7a4.js";import{T as re}from"./TableHead.62e19311.js";function ge(){const{themeStretch:L}=J();function A(a){const{row:l}=a,[s,O]=d.useState(!1);return r(d.Fragment,{children:[r(i,{sx:{"& > *":{borderBottom:"unset"}},children:[e(t,{children:e(Y,{"aria-label":"expand row",size:"small",onClick:()=>O(!s),children:s?e(G,{}):e($,{})})}),e(t,{align:"left",children:l.code}),e(t,{align:"left",children:l.name}),e(t,{align:"left",children:e(u,{variant:"outlined",color:"success",size:"small",children:"Active"})}),e(t,{align:"right",children:r(Z,{direction:"row",justifyContent:"flex-end",spacing:1,children:[e(p,{to:"/corporates/"+l.id+"/edit",children:e(u,{variant:"outlined",color:"primary",size:"small",children:"Edit"})}),e(p,{to:"/corporates/"+l.id,children:e(u,{variant:"outlined",color:"primary",size:"small",children:"Config"})})]})})]}),e(i,{children:e(t,{style:{paddingBottom:0,paddingTop:0},colSpan:6,children:e(w,{in:s,timeout:"auto",unmountOnExit:!0,children:r(R,{sx:{margin:1},children:[e(ee,{variant:"h6",gutterBottom:!0,component:"div",children:"History"}),r(T,{size:"small","aria-label":"purchases",children:[e(re,{children:r(i,{children:[e(t,{children:"Date"}),e(t,{children:"Customer"}),e(t,{align:"right",children:"Amount"}),e(t,{align:"right",children:"Total price ($)"})]})}),e(o,{children:l.history?l.history.map(n=>r(i,{children:[e(t,{component:"th",scope:"row",children:n==null?void 0:n.date}),e(t,{children:n==null?void 0:n.customerId}),e(t,{align:"right",children:n==null?void 0:n.amount}),e(t,{align:"right",children:Math.round((n==null?void 0:n.amount)*1e3*100)/100})]},n==null?void 0:n.date)):e(i,{children:e(t,{colSpan:8,children:"No Data"})})})]})]})})})})]})}const[B,g]=d.useState(!0),[m,N]=d.useState({current_page:1,data:[],path:"",first_page_url:"",last_page:1,last_page_url:"",next_page_url:"",prev_page_url:"",per_page:10,from:0,to:0,total:0}),F=async()=>{g(!0);const a=await ae.get("/corporates");g(!1),N(a.data)};K.exports.useEffect(()=>{F()},[]);const c={fontWeight:"bold"},H=48,M=8,f={PaperProps:{style:{maxHeight:H*4.5+M,width:250}}},E=["PLAN001","PLAN002","PLAN003","PLAN004","PLAN005"];function b(a,l,s){return{fontWeight:l.indexOf(a)===-1?s.typography.fontWeightRegular:s.typography.fontWeightMedium}}const x=Q(),[C,j]=d.useState([]),k=a=>{const{target:{value:l}}=a;j(typeof l=="string"?l.split(","):l)},[S,y]=d.useState([]),z=a=>{const{target:{value:l}}=a;y(typeof l=="string"?l.split(","):l)};return d.useRef(null),e(te,{title:"Membership : Corporate List",children:r(U,{maxWidth:L?!1:"xl",children:[e(le,{heading:"Coporate List",links:[{name:"Dashboard",href:"/dashboard"},{name:"Corporates",href:"/corporates"}]}),r(h,{container:!0,spacing:3,sx:{mb:2},justifyContent:"flex-end",children:[e(h,{item:!0,children:e(V,{id:"outlined-basic",label:"Search",variant:"outlined",sx:{width:400}})}),e(h,{item:!0,children:r(I,{sx:{width:200},children:[e(P,{id:"plan-id-label",children:"PlanID"}),e(v,{labelId:"plan-id-label",id:"plan-id",multiple:!0,value:C,onChange:k,input:e(_,{label:"PlanID"}),MenuProps:f,children:E.map(a=>e(D,{value:a,style:b(a,C,x),children:a},a))})]})}),e(h,{item:!0,children:r(I,{sx:{width:200},children:[e(P,{id:"status-filter-label",children:"Status"}),e(v,{labelId:"status-filter-label",id:"status-filter",multiple:!0,value:S,onChange:z,input:e(_,{label:"Status"}),MenuProps:f,children:["Active","Suspended"].map(a=>e(D,{value:a,style:b(a,S,x),children:a},a))})]})}),e(h,{item:!0,children:e(p,{to:"/corporates/create",children:e(u,{variant:"outlined",startIcon:e(q,{}),sx:{p:1.8},children:"Create"})})})]}),e(ne,{children:e(W,{component:X,children:r(T,{"aria-label":"collapsible table",children:[e(o,{children:r(i,{children:[e(t,{style:c,align:"left",children:"#"}),e(t,{style:c,align:"left",children:"Code"}),e(t,{style:c,align:"left",children:"Name"}),e(t,{style:c,align:"left",children:"Status"}),e(t,{style:c,align:"right",children:"Action"})]})}),B?e(o,{children:e(i,{children:e(t,{colSpan:8,align:"center",children:"Loading"})})}):m.data.length==0?e(o,{children:e(i,{children:e(t,{colSpan:8,align:"center",children:"No Data"})})}):e(o,{children:m.data.map(a=>e(A,{row:a},a.code))})]})})})]})})}export{ge as default};

View File

@@ -0,0 +1 @@
import{H as $}from"./HeaderBreadcrumbs.c47a9118.js";import{P as z}from"./Page.3082f431.js";import{ak as y,bg as P,bj as R,a as G,aq as u,r as h,j as o,S as _,f as e,i as D,ap as f,P as H,ar as O,g as A,ax as W,B as q,T as F,ay as J}from"./index.50ee9c17.js";import{C as K}from"./CorporateTabNavigations.a900f801.js";import{T as M,a as Q,b as m,d,e as t,f as U,g as V}from"./KeyboardArrowRight.ddd69546.js";import{d as X}from"./Add.72d211c7.js";import{C as b}from"./Card.c346d7a4.js";import{G as g}from"./Grid.c4953246.js";function Y(a){return a==null?void 0:a.replace(/(<([^>]+)>)/gi,"")}function Z(a,s=50){return a==null?void 0:a.substring(0,s)}function ee(a,s=50){return Z(Y(a!=null?a:""),s)}function ae(){y();const{corporate_id:a}=P(),[s,S]=R();G();function B(r){const n=h.exports.useRef(null),[l,p]=h.exports.useState(""),N=i=>{var v;const L=(v=i.target.value)!=null?v:"";p(L)},j=i=>{i.preventDefault(),r.onSearch(l)};return h.exports.useEffect(()=>{var i;p((i=s.get("search"))!=null?i:"")},[s]),e("form",{onSubmit:j,style:{width:"100%"},children:e(O,{id:"search-input",ref:n,label:"Search",variant:"outlined",fullWidth:!0,onChange:N,value:l})})}function w(r){const{row:n}=r,[l,p]=u.useState(!1);return o(u.Fragment,{children:[o(d,{sx:{"& > *":{borderBottom:"unset"}},children:[e(t,{children:e(A,{"aria-label":"expand row",size:"small",onClick:()=>p(!l),children:l?e(U,{}):e(V,{})})}),e(t,{align:"left",children:n.id}),e(t,{align:"left",children:n.code}),e(t,{align:"left",children:n.name}),e(t,{align:"left",children:ee(n.description)}),n.active?e(t,{align:"right",children:e(f,{variant:"outlined",color:"success",size:"small",children:"Active"})}):e(t,{align:"right",children:e(f,{variant:"outlined",color:"error",size:"small",children:"Inactive"})}),e(t,{align:"right",children:e(D,{to:`/corporates/${n.corporate_id}/corporate-plans/${n.id}/edit`,children:e(f,{variant:"outlined",color:"success",size:"small",children:"Edit"})})})]}),e(d,{children:e(t,{style:{paddingBottom:0,paddingTop:0},colSpan:10,children:o(W,{in:l,timeout:"auto",unmountOnExit:!0,children:[e(q,{sx:{borderBottom:1},children:e(F,{variant:"body2",gutterBottom:!0,component:"div",children:"No Extra Data"})}),!1]})})})]})}const[E,x]=u.useState(!0),[T,I]=u.useState({current_page:1,data:[],path:"",first_page_url:"",last_page:1,last_page_url:"",next_page_url:"",prev_page_url:"",per_page:10,from:0,to:0,total:0}),C=async(r=null)=>{x(!0);const n=r||Object.fromEntries([...s.entries()]),l=await J.get("/corporates/"+a+"/corporate-plans",{params:n});x(!1),I(l.data)},c={fontWeight:"bold"},k=async r=>{await C({search:r}),S({search:r})};return h.exports.useEffect(()=>{C()},[]),o(_,{children:[o(_,{direction:"row",spacing:2,sx:{p:2},children:[e(B,{onSearch:k}),e(D,{to:`/corporates/${a}/corporate-plans/create`,children:e(f,{component:"button",id:"upload-button",variant:"outlined",startIcon:e(X,{}),sx:{p:1.8},children:"Create"})})]}),e(b,{children:e(M,{component:H,children:o(Q,{"aria-label":"collapsible table",children:[e(m,{children:o(d,{children:[e(t,{style:c,align:"left"}),e(t,{style:c,align:"left",children:"ID"}),e(t,{style:c,align:"left",children:"Code"}),e(t,{style:c,align:"left",children:"Name"}),e(t,{style:c,align:"left",children:"Description"})]})}),E?e(m,{children:e(d,{children:e(t,{colSpan:8,align:"center",children:"Loading"})})}):T.data.length==0?e(m,{children:e(d,{children:e(t,{colSpan:8,align:"center",children:"No Data"})})}):e(m,{children:T.data.map(r=>e(w,{row:r},r.code))})]})})})]})}function de(){y();const{corporate_id:a}=P();return o(z,{title:"Corporate Plan",children:[e($,{heading:"Corporate Plan",links:[{name:"Corporates",href:"/corporates"},{name:"Corporate Name",href:"/corporates/"+a},{name:"Corporate Plan",href:"/corporates/"+a+"/corporate-plans"}]}),o(g,{container:!0,spacing:2,children:[e(g,{item:!0,xs:8,children:o(b,{children:[e(K,{position:"corporate-plans"}),e(ae,{})]})}),e(g,{item:!0,xs:4,children:e(b,{sx:{p:2},children:"Corporate Detail Goes Here \xA0"})})]})]})}export{de as default};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{H as $}from"./HeaderBreadcrumbs.c47a9118.js";import{P as R}from"./Page.3082f431.js";import{ak as v,bg as B,bj as z,aq as p,r as u,j as r,S as _,f as e,i as y,ap as m,P as A,ar as G,g as H,ax as O,B as W,T as q,ay as F}from"./index.50ee9c17.js";import{C as J}from"./CorporateTabNavigations.a900f801.js";import{T as K,a as M,b as f,d,e as a,f as Q,g as U}from"./KeyboardArrowRight.ddd69546.js";import{d as V}from"./Add.72d211c7.js";import{C as b}from"./Card.c346d7a4.js";import{G as g}from"./Grid.c4953246.js";function X(){v();const{corporate_id:l}=B(),[s,D]=z();function P(t){const n=u.exports.useRef(null),[o,h]=u.exports.useState(""),I=i=>{var C;const N=(C=i.target.value)!=null?C:"";h(N)},L=i=>{i.preventDefault(),t.onSearch(o)};return u.exports.useEffect(()=>{var i;h((i=s.get("search"))!=null?i:"")},[s]),e("form",{onSubmit:L,style:{width:"100%"},children:e(G,{id:"search-input",ref:n,label:"Search",variant:"outlined",fullWidth:!0,onChange:I,value:o})})}function w(t){const{row:n}=t,[o,h]=p.useState(!1);return r(p.Fragment,{children:[r(d,{sx:{"& > *":{borderBottom:"unset"}},children:[e(a,{children:e(H,{"aria-label":"expand row",size:"small",onClick:()=>h(!o),children:o?e(Q,{}):e(U,{})})}),e(a,{align:"left",children:n.code}),e(a,{align:"left",children:n.name}),e(a,{align:"right",children:e(m,{variant:"outlined",color:"success",size:"small",children:"Active"})}),e(a,{align:"right",children:e(y,{to:`/corporates/${n.corporate_id}/corporate-benefits/${n.id}/edit`,children:e(m,{variant:"outlined",color:"success",size:"small",children:"Edit"})})})]}),e(d,{children:e(a,{style:{paddingBottom:0,paddingTop:0},colSpan:10,children:r(O,{in:o,timeout:"auto",unmountOnExit:!0,children:[e(W,{sx:{borderBottom:1},children:e(q,{variant:"body2",gutterBottom:!0,component:"div",children:"No Extra Data"})}),!1]})})})]})}const[E,x]=p.useState(!0),[S,j]=p.useState({current_page:1,data:[],path:"",first_page_url:"",last_page:1,last_page_url:"",next_page_url:"",prev_page_url:"",per_page:10,from:0,to:0,total:0}),T=async(t=null)=>{x(!0);const n=t||Object.fromEntries([...s.entries()]),o=await F.get("/corporates/"+l+"/corporate-benefits",{params:n});x(!1),j(o.data)},c={fontWeight:"bold"},k=async t=>{await T({search:t}),D({search:t})};return u.exports.useEffect(()=>{T()},[]),r(_,{children:[r(_,{direction:"row",spacing:2,sx:{p:2},children:[e(P,{onSearch:k}),e(y,{to:`/corporates/${l}/corporate-benefits/create`,children:e(m,{id:"upload-button",variant:"outlined",startIcon:e(V,{}),sx:{p:1.8},children:"Create"})})]}),e(b,{children:e(K,{component:A,children:r(M,{"aria-label":"collapsible table",children:[e(f,{children:r(d,{children:[e(a,{style:c,align:"left"}),e(a,{style:c,align:"left",children:"Code"}),e(a,{style:c,align:"left",children:"Name"}),e(a,{style:c,align:"right",children:"Status"}),e(a,{style:c,align:"right",children:"Action"})]})}),E?e(f,{children:e(d,{children:e(a,{colSpan:8,align:"center",children:"Loading"})})}):S.data.length==0?e(f,{children:e(d,{children:e(a,{colSpan:8,align:"center",children:"No Data"})})}):e(f,{children:S.data.map(t=>e(w,{row:t},t.code))})]})})})]})}function se(){v();const{corporate_id:l}=B(),s="Corporate Benefit";return r(R,{title:s,children:[e($,{heading:s,links:[{name:"Corporates",href:"/corporates"},{name:"Corporate Name",href:"/corporates/"+l},{name:"Corporate Benefit",href:"/corporates/"+l+"/benefits"}]}),r(g,{container:!0,spacing:2,children:[e(g,{item:!0,xs:8,children:r(b,{children:[e(J,{position:"corporate-benefits"}),e(X,{})]})}),e(g,{item:!0,xs:4,children:e(b,{sx:{p:2},children:"Corporate Detail Goes Here \xA0"})})]})]})}export{se as default};

View File

@@ -0,0 +1 @@
import{H as $}from"./HeaderBreadcrumbs.c47a9118.js";import{P as R}from"./Page.3082f431.js";import{ak as D,bg as C,bj as z,a as G,aq as h,r as p,j as n,S as _,f as e,i as y,ap as f,P as H,ar as O,g as A,ax as W,B as q,T as F,ay as J}from"./index.50ee9c17.js";import{C as K}from"./CorporateTabNavigations.a900f801.js";import{T as M,a as Q,b as u,d as c,e as a,f as U,g as V}from"./KeyboardArrowRight.ddd69546.js";import{d as X}from"./Add.72d211c7.js";import{C as b}from"./Card.c346d7a4.js";import{G as g}from"./Grid.c4953246.js";function Y(){D();const{corporate_id:s}=C(),[m,B]=z();G();function P(t){const r=p.exports.useRef(null),[i,d]=p.exports.useState(""),j=o=>{var T;const L=(T=o.target.value)!=null?T:"";d(L)},k=o=>{o.preventDefault(),t.onSearch(i)};return p.exports.useEffect(()=>{var o;d((o=m.get("search"))!=null?o:"")},[m]),e("form",{onSubmit:k,style:{width:"100%"},children:e(O,{id:"search-input",ref:r,label:"Search",variant:"outlined",fullWidth:!0,onChange:j,value:i})})}function w(t){const{row:r}=t,[i,d]=h.useState(!1);return n(h.Fragment,{children:[n(c,{sx:{"& > *":{borderBottom:"unset"}},children:[e(a,{children:e(A,{"aria-label":"expand row",size:"small",onClick:()=>d(!i),children:i?e(U,{}):e(V,{})})}),e(a,{align:"left",children:r.id}),e(a,{align:"left",children:r.code}),e(a,{align:"left",children:r.name}),e(a,{align:"left",children:r.description}),e(a,{align:"right",children:e(f,{variant:"outlined",color:"success",size:"small",children:"Active"})}),e(a,{align:"right",children:e(y,{to:`/corporates/${r.corporate_id}/divisions/${r.id}/edit`,children:e(f,{variant:"outlined",color:"success",size:"small",children:"Edit"})})})]}),e(c,{children:e(a,{style:{paddingBottom:0,paddingTop:0},colSpan:10,children:n(W,{in:i,timeout:"auto",unmountOnExit:!0,children:[e(q,{sx:{borderBottom:1},children:e(F,{variant:"body2",gutterBottom:!0,component:"div",children:"No Extra Data"})}),!1]})})})]})}const[E,x]=h.useState(!0),[v,I]=h.useState({current_page:1,data:[],path:"",first_page_url:"",last_page:1,last_page_url:"",next_page_url:"",prev_page_url:"",per_page:10,from:0,to:0,total:0}),S=async(t=null)=>{x(!0);const r=t||Object.fromEntries([...m.entries()]),i=await J.get("/corporates/"+s+"/divisions",{params:r});x(!1),I(i.data)},l={fontWeight:"bold"},N=async t=>{await S({search:t}),B({search:t})};return p.exports.useEffect(()=>{S()},[]),n(_,{children:[n(_,{direction:"row",spacing:2,sx:{p:2},children:[e(P,{onSearch:N}),e(y,{to:`/corporates/${s}/divisions/create`,children:e(f,{component:"button",id:"upload-button",variant:"outlined",startIcon:e(X,{}),sx:{p:1.8},children:"Create"})})]}),e(b,{children:e(M,{component:H,children:n(Q,{"aria-label":"collapsible table",children:[e(u,{children:n(c,{children:[e(a,{style:l,align:"left"}),e(a,{style:l,align:"left",children:"ID"}),e(a,{style:l,align:"left",children:"Code"}),e(a,{style:l,align:"left",children:"Name"}),e(a,{style:l,align:"left",children:"Description"})]})}),E?e(u,{children:e(c,{children:e(a,{colSpan:8,align:"center",children:"Loading"})})}):v.data.length==0?e(u,{children:e(c,{children:e(a,{colSpan:8,align:"center",children:"No Data"})})}):e(u,{children:v.data.map(t=>e(w,{row:t},t.code))})]})})})]})}function se(){D();const{corporate_id:s}=C();return n(R,{title:"Division",children:[e($,{heading:"Division",links:[{name:"Corporates",href:"/corporates"},{name:"Corporate Name",href:"/corporates/"+s},{name:"Division",href:"/corporates/"+s+"/divisions"}]}),n(g,{container:!0,spacing:2,children:[e(g,{item:!0,xs:8,children:n(b,{children:[e(K,{position:"divisions"}),e(Y,{})]})}),e(g,{item:!0,xs:4,children:e(b,{sx:{p:2},children:"Corporate Detail Goes Here \xA0"})})]})]})}export{se as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,3 @@
import{az as W,J as v,aA as L,G as J,aB as V,aC as X,aD as Y,aE as Q,aF as Z,aG as ee,aH as te,V as ae,aI as oe,aJ as re,aK as se,r as d,v as y,w as m,t as C,z as i,x,y as T,f,D as R,E as h,aL as ne,K as _,aM as le,aN as F,aO as ie}from"./index.50ee9c17.js";function ce(e,t){return()=>null}function de(e,t){return()=>null}function pe(e,t,a,o,s){return null}const ue={configure:e=>{console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
`)),W.configure(e)}};var be=Object.freeze(Object.defineProperty({__proto__:null,unstable_ClassNameGenerator:ue,capitalize:v,createChainedFunction:L,createSvgIcon:J,debounce:V,deprecatedPropType:ce,isMuiElement:X,ownerDocument:Y,ownerWindow:Q,requirePropFactory:de,setRef:Z,unstable_useEnhancedEffect:ee,unstable_useId:te,unsupportedProp:pe,useControlled:ae,useEventCallback:oe,useForkRef:re,useIsFocusVisible:se},Symbol.toStringTag,{value:"Module"}));const ve=d.exports.createContext();var q=ve;function fe(e){return y("MuiTable",e)}m("MuiTable",["root","stickyHeader"]);const ge=["className","component","padding","size","stickyHeader"],ye=e=>{const{classes:t,stickyHeader:a}=e;return h({root:["root",a&&"stickyHeader"]},fe,t)},me=C("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,a.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>i({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":i({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),O="table",Ce=d.exports.forwardRef(function(t,a){const o=x({props:t,name:"MuiTable"}),{className:s,component:r=O,padding:n="normal",size:l="medium",stickyHeader:c=!1}=o,u=T(o,ge),p=i({},o,{component:r,padding:n,size:l,stickyHeader:c}),g=ye(p),M=d.exports.useMemo(()=>({padding:n,size:l,stickyHeader:c}),[n,l,c]);return f(q.Provider,{value:M,children:f(me,i({as:r,role:r===O?null:"table",ref:a,className:R(g.root,s),ownerState:p},u))})});var ot=Ce;const xe=d.exports.createContext();var N=xe;function Te(e){return y("MuiTableBody",e)}m("MuiTableBody",["root"]);const Re=["className","component"],he=e=>{const{classes:t}=e;return h({root:["root"]},Te,t)},$e=C("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),we={variant:"body"},U="tbody",_e=d.exports.forwardRef(function(t,a){const o=x({props:t,name:"MuiTableBody"}),{className:s,component:r=U}=o,n=T(o,Re),l=i({},o,{component:r}),c=he(l);return f(N.Provider,{value:we,children:f($e,i({className:R(c.root,s),as:r,ref:a,role:r===U?null:"rowgroup",ownerState:l},n))})});var rt=_e;function Me(e){return y("MuiTableCell",e)}const ke=m("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var Ne=ke;const ze=["align","className","component","padding","scope","size","sortDirection","variant"],He=e=>{const{classes:t,variant:a,align:o,padding:s,size:r,stickyHeader:n}=e,l={root:["root",a,n&&"stickyHeader",o!=="inherit"&&`align${v(o)}`,s!=="normal"&&`padding${v(s)}`,`size${v(r)}`]};return h(l,Me,t)},Pe=C("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[a.variant],t[`size${v(a.size)}`],a.padding!=="normal"&&t[`padding${v(a.padding)}`],a.align!=="inherit"&&t[`align${v(a.align)}`],a.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>i({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
${e.palette.mode==="light"?ne(_(e.palette.divider,1),.88):le(_(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Ne.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Se=d.exports.forwardRef(function(t,a){const o=x({props:t,name:"MuiTableCell"}),{align:s="inherit",className:r,component:n,padding:l,scope:c,size:u,sortDirection:p,variant:g}=o,M=T(o,ze),b=d.exports.useContext(q),$=d.exports.useContext(N),A=$&&$.variant==="head";let w;n?w=n:w=A?"th":"td";let k=c;!k&&A&&(k="col");const I=g||$&&$.variant,j=i({},o,{align:s,component:w,padding:l||(b&&b.padding?b.padding:"normal"),size:u||(b&&b.size?b.size:"medium"),sortDirection:p,stickyHeader:I==="head"&&b&&b.stickyHeader,variant:I}),K=He(j);let D=null;return p&&(D=p==="asc"?"ascending":"descending"),f(Pe,i({as:w,ref:a,className:R(K.root,r),"aria-sort":D,scope:k,ownerState:j},M))});var st=Se;function Ae(e){return y("MuiTableContainer",e)}m("MuiTableContainer",["root"]);const Ie=["className","component"],je=e=>{const{classes:t}=e;return h({root:["root"]},Ae,t)},De=C("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Oe=d.exports.forwardRef(function(t,a){const o=x({props:t,name:"MuiTableContainer"}),{className:s,component:r="div"}=o,n=T(o,Ie),l=i({},o,{component:r}),c=je(l);return f(De,i({ref:a,as:r,className:R(c.root,s),ownerState:l},n))});var nt=Oe;function Ue(e){return y("MuiTableRow",e)}const Be=m("MuiTableRow",["root","selected","hover","head","footer"]);var B=Be;const Ee=["className","component","hover","selected"],Fe=e=>{const{classes:t,selected:a,hover:o,head:s,footer:r}=e;return h({root:["root",a&&"selected",o&&"hover",s&&"head",r&&"footer"]},Ue,t)},qe=C("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,a.head&&t.head,a.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${B.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${B.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),E="tr",Ge=d.exports.forwardRef(function(t,a){const o=x({props:t,name:"MuiTableRow"}),{className:s,component:r=E,hover:n=!1,selected:l=!1}=o,c=T(o,Ee),u=d.exports.useContext(N),p=i({},o,{component:r,hover:n,selected:l,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),g=Fe(p);return f(qe,i({as:r,ref:a,className:R(g.root,s),role:r===E?null:"row",ownerState:p},c))});var lt=Ge,z={},H={exports:{}};(function(e){function t(a){return a&&a.__esModule?a:{default:a}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(H);var P={},Ke=F(be);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Ke})(P);var G=F(ie),We=H.exports;Object.defineProperty(z,"__esModule",{value:!0});var Le=z.default=void 0,Je=We(P),Ve=G,Xe=(0,Je.default)((0,Ve.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");Le=z.default=Xe;var S={},Ye=H.exports;Object.defineProperty(S,"__esModule",{value:!0});var Qe=S.default=void 0,Ze=Ye(P),et=G,tt=(0,Ze.default)((0,et.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight");Qe=S.default=tt;export{nt as T,ot as a,rt as b,P as c,lt as d,st as e,Le as f,Qe as g,N as h,H as i,G as r};

View File

@@ -0,0 +1 @@
import{n as F,_ as A,u as y,a as H,b as T,r as j,c as E,d as g,e as U,j as a,F as _,S as m,f as t,A as f,R as w,I as q,g as B,h as $,L as x,i as v,k as W,o as D,l as b,m as z,T as c,C as M,B as O,p as G,q as N,s as V,t as o}from"./index.50ee9c17.js";import{P as J}from"./Page.3082f431.js";import{R as K}from"./RHFCheckbox.444dff81.js";import{C as Q}from"./Card.c346d7a4.js";import"./FormControlLabel.b9879300.js";function X(e){return e.charAt(0).toUpperCase()+e.substr(1)}function Y(e){return X(e.toLowerCase())}function Z(e,s){return s===void 0&&(s={}),F(e,A({delimiter:" ",transform:Y},s))}function i(e,s){return`${e}${s}`}const r="/auth",ee={root:r,login:i(r,"/login"),register:i(r,"/register"),loginUnprotected:i(r,"/login-unprotected"),registerUnprotected:i(r,"/register-unprotected"),verify:i(r,"/verify"),resetPassword:i(r,"/reset-password")};function te(){const{login:e}=y(),s=H(),d=T(),[l,S]=j.exports.useState(!1),C=E().shape({email:g().email("Email must be a valid email address").required("Email is required"),password:g().required("Password is required")}),k={email:"admin@linksehat.dev",password:"password",remember:!0},u=U({resolver:D(C),defaultValues:k}),{reset:I,setError:L,handleSubmit:P,formState:{errors:p,isSubmitting:R}}=u;return a(_,{methods:u,onSubmit:P(async h=>{try{const n=await e(h.email,h.password);s("/dashboard")}catch(n){console.error(n),I(),d.current&&L("afterSubmit",{...n,message:n.data.message})}}),children:[a(m,{spacing:3,children:[t(f,{severity:"info",children:"Email : admin@linksehat.dev & Password : password"}),!!p.afterSubmit&&t(f,{severity:"error",children:p.afterSubmit.message}),t(w,{name:"email",label:"Email address"}),t(w,{name:"password",label:"Password",type:l?"text":"password",InputProps:{endAdornment:t(q,{position:"end",children:t(B,{onClick:()=>S(!l),edge:"end",children:t($,{icon:l?"eva:eye-fill":"eva:eye-off-fill"})})})}})]}),a(m,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{my:2},children:[t(K,{name:"remember",label:"Remember me"}),t(x,{component:v,variant:"subtitle2",to:ee.resetPassword,children:"Forgot password?"})]}),t(W,{fullWidth:!0,size:"large",type:"submit",variant:"contained",loading:R,children:"Login"})]})}const se=o("div")(({theme:e})=>({[e.breakpoints.up("md")]:{display:"flex"}})),ae=o("header")(({theme:e})=>({top:0,zIndex:9,lineHeight:0,width:"100%",display:"flex",alignItems:"center",position:"absolute",padding:e.spacing(3),justifyContent:"space-between",[e.breakpoints.up("md")]:{alignItems:"flex-start",padding:e.spacing(7,5,0,7)}}));o(Q)(({theme:e})=>({width:"100%",maxWidth:464,display:"flex",flexDirection:"column",justifyContent:"center",margin:e.spacing(2,0,2,2)}));const re=o("div")(({theme:e})=>({maxWidth:480,margin:"auto",display:"flex",minHeight:"100vh",flexDirection:"column",justifyContent:"center",padding:e.spacing(12,0)}));function me(){const{method:e}=y(),s=b("up","sm");return b("up","md"),t(J,{title:"Login",children:a(se,{children:[a(ae,{children:[t(z,{sx:{width:150,height:150}}),s&&a(c,{variant:"body2",sx:{mt:{md:-2}},children:["Has problem with your account? ","",t(x,{variant:"subtitle2",component:v,to:"#",onClick:d=>{window.location.href="mailto:admin@linksehat.com",d.preventDefault()},children:"Contact Us"})]})]}),t(M,{maxWidth:"sm",children:a(re,{children:[a(m,{direction:"row",alignItems:"center",sx:{mb:5},children:[a(O,{sx:{flexGrow:1},children:[t(c,{variant:"h4",gutterBottom:!0,children:"Sign in to LinkSehat"}),t(c,{sx:{color:"text.secondary"},children:"Enter your details below."})]}),t(G,{title:Z(e),placement:"right",children:t(N,{children:t(V,{disabledEffect:!0,src:`https://minimal-assets-api.vercel.app/assets/icons/auth/ic_${e}.png`,sx:{width:32,height:32}})})})]}),t(te,{}),!1]})})]})})}export{me as default};

View File

@@ -0,0 +1 @@
import{r as n,j as a,q as c,W as x,f as r,B as d}from"./index.50ee9c17.js";const f=n.exports.forwardRef(({children:e,title:s="",meta:t,...o},i)=>a(c,{children:[a(x,{children:[r("title",{children:`${s} | LinkSehat`}),t]}),r(d,{ref:i,...o,children:e})]}));var l=f;export{l as P};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{G as C,f as n,w as b,v as F,t as I,H,J as w,z as l,K as U,r as p,x as $,y,E as z,M as _,N as O,D as L,O as M,Q as S}from"./index.50ee9c17.js";import{S as N,F as R}from"./FormControlLabel.b9879300.js";var V=C(n("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),D=C(n("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),E=C(n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function j(o){return F("MuiCheckbox",o)}const W=b("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);var h=W;const J=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],K=o=>{const{classes:e,indeterminate:r,color:t}=o,c={root:["root",r&&"indeterminate",`color${w(t)}`]},s=z(c,j,e);return l({},e,s)},Q=I(N,{shouldForwardProp:o=>H(o)||o==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:r}=o;return[e.root,r.indeterminate&&e.indeterminate,r.color!=="default"&&e[`color${w(r.color)}`]]}})(({theme:o,ownerState:e})=>l({color:(o.vars||o).palette.text.secondary},!e.disableRipple&&{"&:hover":{backgroundColor:o.vars?`rgba(${e.color==="default"?o.vars.palette.action.activeChannel:o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.hoverOpacity})`:U(e.color==="default"?o.palette.action.active:o.palette[e.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${h.checked}, &.${h.indeterminate}`]:{color:(o.vars||o).palette[e.color].main},[`&.${h.disabled}`]:{color:(o.vars||o).palette.action.disabled}})),T=n(D,{}),q=n(V,{}),A=n(E,{}),X=p.exports.forwardRef(function(e,r){var t,c;const s=$({props:e,name:"MuiCheckbox"}),{checkedIcon:a=T,color:i="primary",icon:m=q,indeterminate:u=!1,indeterminateIcon:d=A,inputProps:G,size:v="medium"}=s,P=y(s,J),x=u?d:m,k=u?d:a,f=l({},s,{color:i,indeterminate:u,size:v}),B=K(f);return n(Q,l({type:"checkbox",inputProps:l({"data-indeterminate":u},G),icon:p.exports.cloneElement(x,{fontSize:(t=x.props.fontSize)!=null?t:v}),checkedIcon:p.exports.cloneElement(k,{fontSize:(c=k.props.fontSize)!=null?c:v}),ownerState:f,ref:r},P,{classes:B}))});var g=X;function Y(o){return F("MuiFormGroup",o)}b("MuiFormGroup",["root","row","error"]);const Z=["className","row"],oo=o=>{const{classes:e,row:r,error:t}=o;return z({root:["root",r&&"row",t&&"error"]},Y,e)},eo=I("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:r}=o;return[e.root,r.row&&e.row]}})(({ownerState:o})=>l({display:"flex",flexDirection:"column",flexWrap:"wrap"},o.row&&{flexDirection:"row"})),ro=p.exports.forwardRef(function(e,r){const t=$({props:e,name:"MuiFormGroup"}),{className:c,row:s=!1}=t,a=y(t,Z),i=_(),m=O({props:t,muiFormControl:i,states:["error"]}),u=l({},t,{row:s,error:m.error}),d=oo(u);return n(eo,l({className:L(d.root,c),ownerState:u,ref:r},a))});var to=ro;function ao({name:o,...e}){const{control:r}=M();return n(R,{control:n(S,{name:o,control:r,render:({field:t})=>n(g,{...t,checked:t.value})}),...e})}function so({name:o,options:e,...r}){const{control:t}=M();return n(S,{name:o,control:t,render:({field:c})=>{const s=a=>c.value.includes(a.value)?c.value.filter(i=>i!==a.value):[...c.value,a.value];return n(to,{children:e.map((a,i)=>n(R,{control:n(g,{checked:c.value.includes(a.value),onChange:()=>c.onChange(s(a))}),label:a.label,...r},i))})}})}export{ao as R,so as a};

View File

@@ -0,0 +1 @@
import{O as r,f as t,Q as l,bh as i,b8 as x}from"./index.50ee9c17.js";function u({name:a,...s}){const{control:n}=r();return t(l,{name:a,control:n,render:({field:o,fieldState:{error:e}})=>t(i,{id:a,value:o.value,onChange:o.onChange,error:!!e,simple:!0,helperText:t(x,{error:!0,sx:{px:2,textTransform:"capitalize"},children:e==null?void 0:e.message}),...s})})}export{u as R};

View File

@@ -0,0 +1 @@
import{w as $,v as S,t as d,J as e,z as i,K as b,aL as x,aM as C,r as f,x as m,y,f as c,j as z,D as R,E as B,O as M,Q as T}from"./index.50ee9c17.js";import{S as j,F as N}from"./FormControlLabel.b9879300.js";function O(o){return S("MuiSwitch",o)}const D=$("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var t=D;const F=["className","color","edge","size","sx"],I=o=>{const{classes:a,edge:s,size:r,color:p,checked:u,disabled:h}=o,g={root:["root",s&&`edge${e(s)}`,`size${e(r)}`],switchBase:["switchBase",`color${e(p)}`,u&&"checked",h&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},v=B(g,O,a);return i({},a,v)},L=d("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(o,a)=>{const{ownerState:s}=o;return[a.root,s.edge&&a[`edge${e(s.edge)}`],a[`size${e(s.size)}`]]}})(({ownerState:o})=>i({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},o.edge==="start"&&{marginLeft:-8},o.edge==="end"&&{marginRight:-8},o.size==="small"&&{width:40,height:24,padding:7,[`& .${t.thumb}`]:{width:16,height:16},[`& .${t.switchBase}`]:{padding:4,[`&.${t.checked}`]:{transform:"translateX(16px)"}}})),U=d(j,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(o,a)=>{const{ownerState:s}=o;return[a.switchBase,{[`& .${t.input}`]:a.input},s.color!=="default"&&a[`color${e(s.color)}`]]}})(({theme:o})=>({position:"absolute",top:0,left:0,zIndex:1,color:o.vars?o.vars.palette.Switch.defaultColor:`${o.palette.mode==="light"?o.palette.common.white:o.palette.grey[300]}`,transition:o.transitions.create(["left","transform"],{duration:o.transitions.duration.shortest}),[`&.${t.checked}`]:{transform:"translateX(20px)"},[`&.${t.disabled}`]:{color:o.vars?o.vars.palette.Switch.defaultDisabledColor:`${o.palette.mode==="light"?o.palette.grey[100]:o.palette.grey[600]}`},[`&.${t.checked} + .${t.track}`]:{opacity:.5},[`&.${t.disabled} + .${t.track}`]:{opacity:o.vars?o.vars.opacity.switchTrackDisabled:`${o.palette.mode==="light"?.12:.2}`},[`& .${t.input}`]:{left:"-100%",width:"300%"}}),({theme:o,ownerState:a})=>i({"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})`:b(o.palette.action.active,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},a.color!=="default"&&{[`&.${t.checked}`]:{color:(o.vars||o).palette[a.color].main,"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:b(o.palette[a.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${t.disabled}`]:{color:o.vars?o.vars.palette.Switch[`${a.color}DisabledColor`]:`${o.palette.mode==="light"?x(o.palette[a.color].main,.62):C(o.palette[a.color].main,.55)}`}},[`&.${t.checked} + .${t.track}`]:{backgroundColor:(o.vars||o).palette[a.color].main}})),P=d("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(o,a)=>a.track})(({theme:o})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:o.transitions.create(["opacity","background-color"],{duration:o.transitions.duration.shortest}),backgroundColor:o.vars?o.vars.palette.common.onBackground:`${o.palette.mode==="light"?o.palette.common.black:o.palette.common.white}`,opacity:o.vars?o.vars.opacity.switchTrack:`${o.palette.mode==="light"?.38:.3}`})),_=d("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(o,a)=>a.thumb})(({theme:o})=>({boxShadow:(o.vars||o).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),A=f.exports.forwardRef(function(a,s){const r=m({props:a,name:"MuiSwitch"}),{className:p,color:u="primary",edge:h=!1,size:g="medium",sx:v}=r,k=y(r,F),l=i({},r,{color:u,edge:h,size:g}),n=I(l),w=c(_,{className:n.thumb,ownerState:l});return z(L,{className:R(n.root,p),sx:v,ownerState:l,children:[c(U,i({type:"checkbox",icon:w,checkedIcon:w,ref:s,ownerState:l},k,{classes:i({},n,{root:n.switchBase})})),c(P,{className:n.track,ownerState:l})]})});var E=A;function J({name:o,...a}){const{control:s}=M();return c(N,{control:c(T,{name:o,control:s,render:({field:r})=>c(E,{...r,checked:r.value})}),...a})}export{J as R};

View File

@@ -0,0 +1 @@
import{ak as c,aq as a,r as l,ah as u,bg as d,j as r,f as e,S as m,ay as f}from"./index.50ee9c17.js";import{P as g}from"./Page.3082f431.js";import{H as h}from"./HeaderBreadcrumbs.c47a9118.js";import{C as b}from"./CorporateTabNavigations.a900f801.js";import{C as _}from"./Card.c346d7a4.js";import{G as s}from"./Grid.c4953246.js";function H(){c();const[x,t]=a.useState(!0),[C,o]=a.useState({current_page:1,data:[],path:"",first_page_url:"",last_page:1,last_page_url:"",next_page_url:"",prev_page_url:"",per_page:10,from:0,to:0,total:0}),p=async()=>{t(!0);const n=await f.get("/corporates");t(!1),o(n.data)};l.exports.useEffect(()=>{p()},[]),u(),a.useState([]),a.useState([]),a.useRef(null);const{id:i}=d();return r(g,{title:"Dashboard",children:[e(h,{heading:"Corporate Dashboard",links:[{name:"Corporates",href:"/corporates"},{name:"Corporate Name",href:"/corporates/"+i}]}),e(_,{children:r(m,{spacing:"3",children:[e(b,{position:""}),e(s,{container:!0,spacing:3,children:e(s,{item:!0,xs:12,sx:{p:2},children:"Corporate Dashboard / Report Goes Here \xA0"})})]})})]})}export{H as default};

View File

@@ -0,0 +1 @@
import{v as u,w as m,t as b,r as T,x as f,y as h,z as l,f as n,D as v,E as H}from"./index.50ee9c17.js";import{h as x}from"./KeyboardArrowRight.ddd69546.js";function y(e){return u("MuiTableHead",e)}m("MuiTableHead",["root"]);const C=["className","component"],g=e=>{const{classes:s}=e;return H({root:["root"]},y,s)},w=b("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,s)=>s.root})({display:"table-header-group"}),M={variant:"head"},c="thead",R=T.exports.forwardRef(function(s,a){const o=f({props:s,name:"MuiTableHead"}),{className:d,component:t=c}=o,i=h(o,C),r=l({},o,{component:t}),p=g(r);return n(x.Provider,{value:M,children:n(w,l({as:t,className:v(p.root,d),ref:a,role:t===c?null:"rowgroup",ownerState:r},i))})});var P=R;export{P as T};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,18 @@
@font-face {
font-family: 'CircularStd';
font-weight: 400;
font-style: normal;
src: local('CircularStd'), url('CircularStd-Book.otf') format('opentype');
}
@font-face {
font-family: 'CircularStd';
font-weight: 500;
font-style: normal;
src: local('CircularStd'), url('CircularStd-Medium.otf') format('opentype');
}
@font-face {
font-family: 'CircularStd';
font-weight: 700;
font-style: normal;
src: local('CircularStd'), url('CircularStd-Bold.otf') format('opentype');
}

View File

@@ -0,0 +1 @@
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="m20.247634 1c1.0125221 0 1.8333334.82081129 1.8333334 1.83333333s-.8208113 1.83333334-1.8333334 1.83333334c-.3158442 0-.6130339-.07986936-.8724738-.22051281l-3.0249251 3.47961717c.1346337.25513483.2108509.5458717.2108509.85441003 0 1.01252204-.8208113 1.83333334-1.8333334 1.83333334-.9820883 0-1.7838173-.7722101-1.8311257-1.74256896l-2.2033918-.75849737c-.336256.40778098-.84535009.66773299-1.41515923.66773299-.32712483 0-.63423886-.08567643-.90012689-.2358141l-2.87560465 2.41277624c.05416355.1730906.08335496.3572185.08335496.5481644 0 1.012522-.8208113 1.8333333-1.83333334 1.8333333s-1.83333333-.8208113-1.83333333-1.8333333c0-1.0125221.82081129-1.83333335 1.83333333-1.83333335.33090488 0 .64133381.08766791.90932763.24104456l2.86960725-2.40787374c-.05621505-.1760311-.0865583-.3636207-.0865583-.55829735 0-1.01252204.8208113-1.83333333 1.83333334-1.83333333.97577423 0 1.77350093.76231258 1.83011983 1.7238777l2.2160025.76325559c.336304-.39976002.8402621-.65379996 1.4035544-.65379996.2130474 0 .4176071.03634016.6078186.10315996l3.1693503-3.64581344c-.0588143-.17965899-.0906208-.37154554-.0906208-.57086091 0-1.01252204.8208113-1.83333333 1.8333333-1.83333333z" opacity=".48"/><path d="m21.1666667 9.60855714c.506261 0 .9166666.41040566.9166666.91666666v10.7540685c0 .2761423-.2238576.5-.5.5h-2.6666666c-.2761424 0-.5-.2238577-.5-.5v-10.7540685c0-.506261.4104056-.91666666.9166666-.91666666zm-5.5 6.42549146c.506261 0 .9166666.4104057.9166666.9166667v4.328577c0 .2761423-.2238576.5-.5.5h-2.6666666c-.2761424 0-.5-.2238577-.5-.5v-4.328577c0-.506261.4104056-.9166667.9166666-.9166667zm-5.5-1.8405511c.506261 0 .9166666.4104057.9166666.9166667v6.1691281c0 .2761423-.2238576.5-.5.5h-2.66666663c-.27614238 0-.5-.2238577-.5-.5v-6.1691281c0-.506261.41040564-.9166667.91666666-.9166667zm-5.50000003 4.7135227c.50626102 0 .91666666.4104057.91666666.9166667v1.4556054c0 .2761423-.22385762.5-.5.5h-2.66666666c-.27614238 0-.5-.2238577-.5-.5v-1.4556054c0-.506261.41040564-.9166667.91666666-.9166667z"/></svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -0,0 +1,5 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M21.5367 20.5812H2.45436C1.92714 20.5812 1.5 21.0083 1.5 21.536C1.5 22.0628 1.92714 22.4899 2.45436 22.4899H21.5362C22.0635 22.4899 22.4906 22.0628 22.4906 21.536C22.4902 21.0083 22.063 20.5812 21.5367 20.5812Z" fill="#637381"/>
<path d="M3.64772 18.1001C3.1205 18.1001 2.69336 18.5273 2.69336 19.0545C2.69336 19.5817 3.1205 20.0093 3.64772 20.0093H20.3446C20.8718 20.0093 21.2989 19.5817 21.2989 19.0545C21.2989 18.5273 20.8718 18.1001 20.3446 18.1001H20.1064V9.51266H20.3446C20.6086 9.51266 20.8213 9.29909 20.8213 9.03592C20.8213 8.77276 20.6077 8.55919 20.3446 8.55919H3.64772C3.38411 8.55919 3.17099 8.77276 3.17099 9.03592C3.17099 9.29909 3.38456 9.51266 3.64772 9.51266H3.88631V18.0997H3.64772V18.1001ZM18.1977 9.51266V18.0997H15.3355V9.51266H18.1977ZM13.4268 9.51266V18.0997H10.5646V9.51266H13.4268ZM5.79414 9.51266H8.65633V18.0997H5.79414V9.51266Z" fill="#637381"/>
<path opacity="0.48" d="M2.45438 7.70134H21.5363C21.5394 7.70134 21.543 7.70134 21.5456 7.70134C22.0733 7.70134 22.5 7.2742 22.5 6.74698C22.5 6.32788 22.2301 5.97268 21.8553 5.844L12.3876 1.58377C12.1387 1.47208 11.8541 1.47208 11.6048 1.58377L2.06298 5.87706C1.65238 6.06204 1.42674 6.50794 1.52146 6.94759C1.61574 7.38724 2.00445 7.70134 2.45438 7.70134Z" fill="#637381"/>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1 @@
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="m14.984127 0c2.7619047 0 5.015873 2.25396825 5.015873 5.01587302v9.96825398c0 2.7619047-2.2539683 5.015873-5.015873 5.015873h-9.984127c-2.74603175 0-5-2.2539683-5-5v-9.98412698c0-2.76190477 2.25396825-5.01587302 5-5.01587302zm-4.5079365 3.80952381h-2.76190479c-2.17460317 0-3.9047619 1.73015873-3.9047619 3.88888889v4.6031746c0 2.1587302 1.73015873 3.8888889 3.9047619 3.8888889h4.53968259c2.1746031 0 3.9523809-1.7460318 3.9682539-3.9047619v-3.15873017l-.031746-.15873016-.1111111-.22222222-.1746032-.14285715c-.2380952-.17460317-1.3968254.01587302-1.7142857-.26984127-.2222222-.2063492-.2539683-.57142857-.3174603-1.06349206-.1111111-.96825397-.2063492-1.01587302-.3492064-1.33333333-.5396825-1.15873016-2.031746-2.12698413-3.047619-2.12698413zm1.7460317 7.61904759c.4126984 0 .7460318.3809524.7460318.7936508s-.3333334.7936508-.7460318.7936508h-4.46031744c-.42857143 0-.76190476-.3809524-.76190476-.7936508s.34920635-.7936508.76190476-.7936508zm-2.26984125-4.44444442c.42857145 0 .76190475.30158731.76190475.71428572s-.3492063.71428571-.76190475.71428571h-2.19047619c-.41269841 0-.76190476-.3015873-.76190476-.71428571s.34920635-.71428572.76190476-.71428572z" transform="translate(2 2)"/></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1 @@
<svg fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><g fill="#637381"><path d="m16.8125 2.83333h-1.1459v-.91667c0-.50599-.4097-.91666-.9166-.91666s-.9167.41067-.9167.91666v.91667h-7.33331v-.91667c0-.50599-.40975-.91666-.91667-.91666-.50691 0-.91666.41067-.91666.91666v.91667h-1.14583c-1.39058 0-2.52083 1.13025-2.52083 2.52083v10.31244c0 1.5162 1.23383 2.75 2.74999 2.75h4.58333c.50691 0 .91666-.4106.91666-.9166s-.40975-.9167-.91666-.9167h-4.58333c-.50599 0-.91666-.4116-.91666-.9167v-7.33328h14.66667c0 .506.4097.91666.9166.91666s.9167-.41066.9167-.91666v-2.97916c0-1.39058-1.1302-2.52083-2.5208-2.52083z"/><path d="m17.0413 11.0834c-3.2853 0-5.9583 2.673-5.9583 5.9583s2.673 5.9583 5.9583 5.9583 5.9583-2.673 5.9583-5.9583-2.673-5.9583-5.9583-5.9583zm2.7555 4.9545-2.9791 3.4375c-.1669.1925-.4061.3062-.66.3163-.011 0-.022 0-.033 0-.243 0-.4758-.0963-.6481-.2686l-1.6042-1.6042c-.3584-.3584-.3584-.9377 0-1.2961.3584-.3585.9378-.3585 1.2962 0l.9084.9084 2.3338-2.6932c.3318-.3831.9112-.4226 1.2934-.0926.3823.331.4235.9103.0926 1.2925z" opacity=".48"/></g></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1 @@
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><g transform="translate(1.5 1.5)"><path d="m18.9 3.15h-16.8c-1.15931815.00115758-2.09884242.94068185-2.1 2.1v12.95c.00115758 1.1593181.94068185 2.0988424 2.1 2.1h16.8c1.1593181-.0011576 2.0988424-.9406819 2.1-2.1v-12.95c-.0011576-1.15931815-.9406819-2.09884242-2.1-2.1zm0 16.45h-16.8c-.77319865 0-1.4-.6268014-1.4-1.4v-10.5h19.6v10.5c0 .7731986-.6268014 1.4-1.4 1.4zm-2.45-17.15v-1.75c0-.38659932-.3134007-.7-.7-.7s-.7.31340068-.7.7v1.75zm-10.5 0v-1.75c0-.38659932-.31340068-.7-.7-.7s-.7.31340068-.7.7v1.75z"/><path d="m5.99840724 14.441644c.55228475 0 1 .4477153 1 1v1.6c0 .5522848-.44771525 1-1 1h-2.2c-.55228475 0-1-.4477152-1-1v-1.6c0-.5522847.44771525-1 1-1zm5.60159276 0c.5522847 0 1 .4477153 1 1v1.6c0 .5522848-.4477153 1-1 1h-2.2c-.55228475 0-1-.4477152-1-1v-1.6c0-.5522847.44771525-1 1-1zm-5.60159276-5.0001284c.55228475 0 1 .44771525 1 1v1.6c0 .5522848-.44771525 1-1 1h-2.2c-.55228475 0-1-.4477152-1-1v-1.6c0-.55228475.44771525-1 1-1zm5.60159276 0c.5522847 0 1 .44771525 1 1v1.6c0 .5522848-.4477153 1-1 1h-2.2c-.55228475 0-1-.4477152-1-1v-1.6c0-.55228475.44771525-1 1-1zm5.6015928 0c.5522847 0 1 .44771525 1 1v1.6c0 .5522848-.4477153 1-1 1h-2.2c-.5522848 0-1-.4477152-1-1v-1.6c0-.55228475.4477152-1 1-1z" opacity=".48"/></g></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1 @@
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><g transform="translate(2 2)"><path d="m9.58985382 1.32162476c1.66180188 0 3.06430158 1.12239456 3.49720258 2.64777104h-6.99440518c.432901-1.52537648 1.83540001-2.64777104 3.4972026-2.64777104zm4.62891648-1.32162476c.9093636 0 1.6555835.7429914 1.6555835 1.65235392 0 .90937489-.7462199 1.6529999-1.6555835 1.6529999-.909364 0-1.6529999-.74362501-1.6529999-1.6529999 0-.90936252.7436359-1.65235392 1.6529999-1.65235392z" opacity=".48"/><path d="m7.60483293 15.8737079c.90936397 0 1.6529999.7436373 1.6529999 1.6529999 0 .9093749-.74362997 1.6549376-1.6529999 1.6549376s-1.65235399-.7455627-1.65235399-1.6549376c0-.9093626.74299001-1.6529999 1.65235399-1.6529999zm6.61393737 0c.9093636 0 1.6555835.7436373 1.6555835 1.6529999 0 .9093749-.7462136 1.6549376-1.6555835 1.6549376-.90937 0-1.6529999-.7455627-1.6529999-1.6549376 0-.9093626.7436349-1.6529999 1.6529999-1.6529999zm-10.58074958-13.22722875c.47021948.00126272.87961059.33725114.97151692.79840103l.23706567 1.18597394h13.34220869c.6357812 0 1.1062464.60903974.9644116 1.2234396l-1.9850212 8.59895818c-.1036535.4490251-.5105252.7589977-.9644112.7589977h-10.58333325c-.47083827 0-.88484536-.3341221-.97216282-.8009847l-1.82805386-9.78234852h-1.82869973c-.30322176 0-.57131938-.12557224-.74220274-.31781022-.17088343-.19224988-.2493388-.43483146-.2493388-.67373135 0-.2388999.07845541-.48148147.2493388-.67373136.17088336-.19223764.43898098-.3171643.74220274-.3171643z"/></g></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -0,0 +1 @@
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><g transform="translate(.5 2.5)"><path d="m8.3418125.28845833c-4.72554167 0-8.3418125 3.20658334-8.3418125 6.70210417 0 3.4955208 3.12225 5.5209583 3.12225 5.5209583l-.5074375 1.923375c-.06708333.2534792.20460417.462875.4326875.3335l2.28083333-1.2923125c1.00864584.3210417 3.14908334.4235834 3.35752084.4331667-.1495-.5184583-.22329167-1.02925-.22329167-1.5060208 0-2.69770837 2.348875-6.49750003 7.5703542-6.49750003.1188333 0 .2376666.002875.3565.00766666-.6947917-3.32541666-4.1476667-5.6249375-8.0476042-5.6249375z"/><path d="m23 11.9810833c0-3.06187497-3.5923125-5.3038958-6.9675625-5.3038958-4.7734583 0-6.79889583 3.4476042-6.79889583 5.7260417 0 2.2832291 2.02495833 5.7260416 6.79889583 5.7260416 1.0560833 0 1.9851875-.1514166 2.7930625-.41975l1.7954375 1.1394584c.1418333.0900833.3210417-.0368959.2831875-.2007709l-.4072917-1.768125c1.69625-1.181625 2.5031667-3.0441458 2.5031667-4.899z" opacity=".48"/></g></svg>

After

Width:  |  Height:  |  Size: 1007 B

View File

@@ -0,0 +1 @@
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><g transform="translate(2 4)"><path d="m18.38 4.57-1.23 1.85c1.2049 2.40314304 1.1222508 5.2507848-.22 7.58h-13.86c-1.76350331-3.059309-1.31261601-6.91298595 1.10947843-9.48257235s6.24242627-3.24722187 9.40052157-1.66742765l1.85-1.23c-3.8761922-2.48556317-8.94860517-2.00294347-12.28650726 1.16901179-3.3379021 3.17195526-4.07833512 8.21319061-1.79349274 12.21098821.35510459.6150891 1.00977788.9957131 1.72 1.0000158h13.85c.7173695.0028322 1.3813181-.3787474 1.74-1.0000158 1.8786438-3.25433 1.7743473-7.28712667-.27-10.44z"/><path d="m8.59 11.41c.37513651.3755541.8841815.5865733 1.415.5865733s1.0398635-.2110192 1.415-.5865733l5.66-8.49-8.49 5.66c-.37555409.37513651-.58657331.8841815-.58657331 1.415s.21101922 1.0398635.58657331 1.415z" opacity=".48"/></g></svg>

After

Width:  |  Height:  |  Size: 849 B

View File

@@ -0,0 +1 @@
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="m7.94101676 5.6427832v2.74464258c0 .33989649.27513281.6150293.6150293.6150293.30862393 0 .56440212-.22738249.60835663-.52409402l.00667266-.09093528v-2.74464258h5.65814645v2.74464258c0 .33989649.275543.6150293.6150293.6150293.3089968 0 .5644699-.22738249.6083659-.52409402l.0066634-.09093528v-2.74464258h1.8524297c.7157099 0 1.3265895.52397061 1.44811 1.21681899l.0176654.14071617.9376992 11.81697074c.0730078.9483222-.2554043 1.8905332-.900334 2.5867324-.5953575.6426454-1.4202201 1.03272-2.2901578 1.0889289l-.2183168.0070496h-9.81241403c-.94918359 0-1.8635039-.3997793-2.50847461-1.0959375-.59531971-.6426454-.92094397-1.4949103-.91044964-2.3668484l.00966449-.2182844.93810937-11.82025197c.0545636-.71224914.62412163-1.28073532 1.3241451-1.34901387l.14163029-.00688066zm4.09817114 3.97089698c-.2266736-.00327725-.4135824.17768425-.4169046.40501402v.7555922c-1.4912918.1060463-2.50536524 1.0273421-2.50536524 2.253508 0 1.5045398 1.27919924 1.9221212 2.50536524 2.253508v2.6511967c-.6469005-.0868303-1.2566612-.3552579-1.7564176-.7754643-.09411064-.0748948-.21077995-.1166488-.33140728-.1192943-.30554685.0212051-.54083371.2770409-.5369249.5832645-.00060704.1338754.05174957.2624598.14586021.3579034.68467596.6164053 1.56487397.9710069 2.48549307 1.0008254l.0006563.7430004c.0106025.2266735.2034791.4016467.4301527.3903879.2233717 0 .4043127-.180941.4043127-.4043128v-.7423236c1.8094305-.1192943 2.538506-1.2195419 2.538506-2.3860709 0-1.5642177-1.3122785-2.041436-2.5384649-2.3728433v-2.3330375c.4990796.0841848.9696739.2889765 1.3719974.5965126.0802063.0550021.1743169.0848411.2717499.0861536.3121708 0 .5666941-.251201.5699959-.5633719.0006562-.1338754-.0517004-.2624598-.145811-.3579035-.5812753-.4977671-1.3103508-.7913784-2.0745563-.8351217v-.7821089c0-.22337175-.180941-.40431274-.4043128-.40431274-.0046347-.00070128-.00929-.00070128-.0139248-.00070128zm.4248617 5.91949992c.7489681.2120925 1.3322121.4970904 1.3255881 1.1930252 0 .503735-.3446554 1.1002476-1.3255881 1.2195419zm-.8351218-3.7050349v2.1673339c-.7224514-.2120925-1.2858233-.430809-1.2858233-1.0472142 0-.6164053.510359-1.0604828 1.2858233-1.1201197zm.3712413-10.3281452c2.2382637 0 4.0591523 1.82125781 4.0591523 4.05952148v.08322071h-1.2300175v-.08322071c0-1.56011132-1.2689825-2.8295039-2.8290938-2.8295039s-2.82909373 1.26939258-2.82909373 2.8295039v.08322071h-1.23005859v-.08322071c0-2.23826367 1.82084765-4.05952148 4.05911132-4.05952148z"/></svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>ic_kanban</title>
<g id="ic_kanban" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M20,3 C21.1045695,3 22,3.8954305 22,5 L22,15 C22,16.1045695 21.1045695,17 20,17 L4,17 C2.8954305,17 2,16.1045695 2,15 L2,5 C2,3.8954305 2.8954305,3 4,3 L20,3 Z M11.5,6 L6.5,6 C5.67157288,6 5,6.67157288 5,7.5 L5,7.5 L5,9.5 C5,10.3284271 5.67157288,11 6.5,11 L6.5,11 L11.5,11 C12.3284271,11 13,10.3284271 13,9.5 L13,9.5 L13,7.5 C13,6.67157288 12.3284271,6 11.5,6 L11.5,6 Z" id="Combined-Shape" fill="#000000"></path>
<path d="M8,21 L16,21 M12,17 L12,21" id="Combined-Shape" stroke="#000000" stroke-width="2" opacity="0.48" stroke-linecap="round" stroke-linejoin="round"></path>
</g>
</svg>

After

Width:  |  Height:  |  Size: 915 B

View File

@@ -0,0 +1 @@
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><g transform="translate(1.5 4)"><path d="m11.0988387 10.3846452c-.1981935.1238709-.4211613.1734193-.6193548.1734193-.1981936 0-.4211613-.0495484-.61935487-.1734193l-9.86012903-6.02012907v8.00206447c0 1.7094194 1.38735484 3.0967742 3.09677419 3.0967742h14.79019351c1.7094194 0 3.0967742-1.3873548 3.0967742-3.0967742v-8.00206447z"/><path d="m17.8869677.00425806h-14.79019351c-1.46167742 0-2.70038709 1.04051613-2.99767742 2.42787097l10.40516133 6.34219355 10.3803871-6.34219355c-.2972904-1.38735484-1.536-2.42787097-2.9976775-2.42787097z" opacity=".48"/></g></svg>

After

Width:  |  Height:  |  Size: 646 B

View File

@@ -0,0 +1 @@
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><g transform="translate(5 3)"><path d="m7 8c2.209139 0 4-1.790861 4-4s-1.790861-4-4-4-4 1.790861-4 4 1.790861 4 4 4z" opacity=".48"/><path d="m13 18.0000001c.5522847 0 1-.4477154 1-1 0-3.8659933-3.1340068-7-7-7-3.86599321 0-7 3.1340067-7 7 0 .5522846.44771525 1 1 1z"/></g></svg>

After

Width:  |  Height:  |  Size: 362 B

View File

@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png">
<meta name="theme-color" content="#000000" />
<link rel="manifest" href="/manifest.json" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<!-- Using Google Font -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
<!-- Using Local Font -->
<link rel="stylesheet" type="text/css" href="/fonts/index.css" />
<title>Minimal UI Kit</title>
<meta name="description"
content="The starting point for your next project with Minimal UI Kit, built on the newest version of Material-UI ©, ready to be customized to your style" />
<meta name="keywords" content="react,material,kit,application,dashboard,admin,template" />
<meta name="author" content="Minimal UI Kit" />
<script type="module" crossorigin src="/assets/index.50ee9c17.js"></script>
<link rel="stylesheet" href="/assets/index.d1b937e3.css">
<link rel="manifest" href="/manifest.webmanifest"><script src="/registerSW.js"></script></head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@@ -0,0 +1 @@
<svg height="512" viewBox="0 0 512 512" width="512" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a" x1="100%" x2="50%" y1="5.663%" y2="50%"><stop offset="0" stop-color="#007b55"/><stop offset="1" stop-color="#00ab55"/></linearGradient><linearGradient id="b" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0" stop-color="#5be584"/><stop offset="1" stop-color="#00ab55"/></linearGradient><g fill="none" fill-rule="evenodd" transform="translate(14 128)"><path d="m92.8065878 83.1065019c44.2888442 22.8889511 46.3079382 23.9345951 46.4006692 23.9799821.012248.008728.642121.333419 44.792743 23.152545-26.071507 48.53952-42.693165 77.265922-49.868472 86.179207-10.758587 13.369926-22.495227 23.492946-36.929824 29.333888-30.3458978 14.261953-68.070062 14.928791-97.201704-2.704011z" fill="url(#a)"/><g fill="url(#b)"><path d="m430.310491 101.726093c-46.270793-80.9559274-94.100378-157.2284394-149.043472-45.3437359-7.516227 14.3833977-12.994566 42.3366008-25.267019 42.3366008v-.1420279c-12.272453 0-17.749057-27.9532032-25.265283-42.3366009-54.94483-111.8847034-102.774415-35.6121915-149.0452076 45.3437359-3.4821132 6.105448-6.8270943 11.9321-9.6895094 16.99601 106.037811-67.1266136 97.11034 135.666494 184 137.277897v.142028c86.891396-1.611403 77.962189-204.4045106 184-137.27965-2.860679-5.062157-6.20566-10.888809-9.689509-16.994257"/><path d="m436 256c26.5088 0 48-21.4912 48-48s-21.4912-48-48-48-48 21.4912-48 48 21.4912 48 48 48"/></g></g></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -0,0 +1,20 @@
{
"name": "React Material Minimal UI",
"short_name": "Minimal-UI",
"display": "standalone",
"start_url": "/",
"theme_color": "#000000",
"background_color": "#ffffff",
"icons": [
{
"src": "favicon/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "favicon/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}

View File

@@ -0,0 +1 @@
{"name":"@minimal/material-kit-react","short_name":"@minimal/material-kit-react","start_url":"/","display":"standalone","background_color":"#ffffff","lang":"en","scope":"/"}

View File

@@ -0,0 +1 @@
if('serviceWorker' in navigator) {window.addEventListener('load', () => {navigator.serviceWorker.register('/sw.js', { scope: '/' })})}

View File

@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:

1
public/dashboard/sw.js Normal file
View File

@@ -0,0 +1 @@
if(!self.define){let s,e={};const l=(l,r)=>(l=new URL(l+".js",r).href,e[l]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()})).then((()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didnt register its module`);return s})));self.define=(r,n)=>{const i=s||("document"in self?document.currentScript.src:"")||location.href;if(e[i])return;let u={};const t=s=>l(s,i),a={module:{uri:i},exports:u,require:t};e[i]=Promise.all(r.map((s=>a[s]||t(s)))).then((s=>(n(...s),u)))}}define(["./workbox-4ee7f24a"],(function(s){"use strict";self.addEventListener("message",(s=>{s.data&&"SKIP_WAITING"===s.data.type&&self.skipWaiting()})),s.precacheAndRoute([{url:"assets/Add.72d211c7.js",revision:null},{url:"assets/Cancel.7cf55810.js",revision:null},{url:"assets/Card.c346d7a4.js",revision:null},{url:"assets/CorporateTabNavigations.a900f801.js",revision:null},{url:"assets/Create.6680c66e.js",revision:null},{url:"assets/Create.a0cb6820.js",revision:null},{url:"assets/Create.bfb5d15b.js",revision:null},{url:"assets/CreateUpdate.4c6e4db8.js",revision:null},{url:"assets/CreateUpdate.82ac7330.js",revision:null},{url:"assets/CreateUpdate.8b5917c3.js",revision:null},{url:"assets/CreateUpdate.c54d648d.js",revision:null},{url:"assets/Dashboard.297d1dfb.js",revision:null},{url:"assets/FormControlLabel.b9879300.js",revision:null},{url:"assets/Grid.c4953246.js",revision:null},{url:"assets/HeaderBreadcrumbs.c47a9118.js",revision:null},{url:"assets/Index.36fd2115.js",revision:null},{url:"assets/Index.459109bb.js",revision:null},{url:"assets/Index.4730d28e.js",revision:null},{url:"assets/index.50ee9c17.js",revision:null},{url:"assets/Index.8efe806f.js",revision:null},{url:"assets/Index.903baf56.js",revision:null},{url:"assets/Index.9e6296ac.js",revision:null},{url:"assets/Index.a47c35b3.js",revision:null},{url:"assets/Index.b7752cdb.js",revision:null},{url:"assets/index.d1b937e3.css",revision:null},{url:"assets/KeyboardArrowRight.ddd69546.js",revision:null},{url:"assets/Login.f0f34ea7.js",revision:null},{url:"assets/Page.3082f431.js",revision:null},{url:"assets/Page404.78fca9c5.js",revision:null},{url:"assets/RHFCheckbox.444dff81.js",revision:null},{url:"assets/RHFEditor.084f4b81.js",revision:null},{url:"assets/RHFSwitch.2423e5ed.js",revision:null},{url:"assets/Show.bcdbf1f2.js",revision:null},{url:"assets/TableHead.62e19311.js",revision:null},{url:"fonts/index.css",revision:"8711e169f3dc54f34d839f18d7acef21"},{url:"index.html",revision:"71476183dfaf4206563559db8384ba31"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"manifest.webmanifest",revision:"ced57fe94e88ec3187bcd0a36e2e178f"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))}));

File diff suppressed because one or more lines are too long