@zimyo/manage 0.4.12 → 0.4.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.cjs CHANGED
@@ -4017,4 +4017,4 @@ Excel and Word File Support for Onboarding Documents</font></font></font></b></f
4017
4017
  *
4018
4018
  * This source code is licensed under the ISC license.
4019
4019
  * See the LICENSE file in the root directory of this source tree.
4020
- */const Vrn=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],$rn=ow("users",Vrn),Grn=[{name:"Basic",price:80,description:"Minimum billing of ₹4000/- up to 50 users",features:{"Core HR":["Employee","Time & Attendance","Document","Policy","Workflow","Roles & Permission","Transfer & Probation"],"Employee Self Service":["Android & iOS","Team","Geotag","Geofence","Reports"],Payroll:["Salary","Compliance","Arrear","Full & Final"]},hasLink:!1,barColor:"#3B82F6",isCurrent:!1},{name:"Standard",price:120,description:"Minimum billing of ₹6000/- up to 50 users",features:{"Advance HR":["Onboarding","Offboarding","Helpdesk","Asset","Task","Custom Dashboard"],Engage:["Feed","Chat","Survey","Feedback","Recognition"],"Advance Time Tracking":["Time Zone","Roster","Selfie Attendance","Overtime & Incentive"]},hasLink:!0,linkText:"(All basic features +)",barColor:"#6366F1",isCurrent:!1},{name:"Enterprise",price:160,description:"Minimum billing of ₹8000/- up to 50 users",isPopular:!0,features:{"Finance & Admin":["Expense","Travel Desk","Vendor","Petty Cash","Budgeting","Manpower Planning"],Performance:["Review (KRA/KPI)","Objective (OKR)","9-Box Matrix","Bell Curve & Normalization","Compensation"],"Global Payroll":["Contract","Multi-Entity","Multi-Country","Multi-Currency"]},hasLink:!0,linkText:"(All standard features +)",barColor:"#8B5CF6",isCurrent:!0}],Wrn=({overviewData:e})=>{const[n,t]=V.useState(!1),[r,i]=V.useState(null),[o,a]=V.useState(!1),[s,l]=V.useState(null),{isLoading:u}=ao(nh,{url:"subscription/sendmailtospoc",data:s},["send-mail-to-spoc",s],{enabled:o,onSuccess:()=>{console.log("API call successful"),a(!1),t(!0)},onError:h=>{console.error("Error sending mail to SPOC:",h),a(!1),t(!0)}}),c=h=>{var g;return h===((g=e==null?void 0:e.planDetails)==null?void 0:g.current_plan)},d=h=>{const m={Basic:1,Standard:2,Enterprise:3}[h];i(m),l({is_from:2,plan:m}),a(!0)},f=()=>{t(!1),i(null)},p=h=>{var x;const g=(x=e==null?void 0:e.planDetails)==null?void 0:x.current_plan;if(!g)return!1;const m={Basic:1,Standard:2,Enterprise:3},v=m[g]||0;return(m[h]||0)<=v};return I.jsxs(ut,{className:"plans-wrapper",children:[I.jsx(ut,{className:"plans-scroll-container",children:I.jsx(ut,{className:"plans-grid",children:Grn.map(h=>{const g=c(h.name);return I.jsxs(ny,{className:`plan-card ${g?"current":""}`,elevation:0,children:[g&&I.jsx(kx,{label:"Current plan",className:"plan-badge current-badge",size:"small"}),I.jsxs(ut,{className:"plan-header",children:[I.jsx(mt,{variant:"h6",className:"plan-title",children:h.name}),h.isPopular&&I.jsx(kx,{label:"Popular",className:"popular",size:"small"})]}),I.jsxs(ut,{className:"plan-price",children:[I.jsxs(mt,{variant:"h3",component:"span",className:"price-amount",children:["₹",h.price]}),I.jsx(mt,{variant:"body2",component:"span",className:"price-unit",children:"/month/user"})]}),I.jsx(mt,{variant:"caption",className:"plan-description",children:h.description}),I.jsx(Ia,{variant:g?"contained":"outlined",fullWidth:!0,className:g||h.name==="Enterprise"?"plan-button filled":"plan-button outlined",onClick:()=>d(h.name),disabled:g||p(h.name)||u,children:g?"Opted":"Request a Demo"}),h.hasLink&&I.jsx(mt,{variant:"caption",className:"plan-link",children:h.linkText}),I.jsx(ut,{className:"plan-features",children:Object.entries(h.features).map(([m,v])=>I.jsxs(ut,{className:"feature-category",children:[I.jsx(mt,{variant:"body2",className:"category-title",children:m}),I.jsx(ut,{className:"feature-list",children:v.map(b=>I.jsxs(ut,{className:"feature-item",children:[I.jsx(zrn,{className:"check-icon"}),I.jsx(mt,{variant:"body2",className:"feature-text",children:b})]},b))})]},m))})]},h.name)})})}),I.jsxs(oh,{open:n,onClose:f,maxWidth:"sm",fullWidth:!0,children:[I.jsxs(ah,{sx:{textAlign:"center",py:4},children:[I.jsx(mt,{variant:"h5",sx:{fontWeight:600,mb:2},children:"Thank you for trusting us! 🙌"}),I.jsx(mt,{variant:"body1",color:"text.secondary",sx:{mb:1},children:"Our team will connect with you shortly in exploring more capabilities of the Zimyo 🚀✨"})]}),I.jsx(rm,{sx:{justifyContent:"center",pb:3},children:I.jsx(Ia,{onClick:f,variant:"contained",children:"Okay"})})]})]})};var FK={},Hrn=mr;Object.defineProperty(FK,"__esModule",{value:!0});var G3=FK.default=void 0,Yrn=Hrn(vr()),Urn=I;G3=FK.default=(0,Yrn.default)((0,Urn.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove");const Xrn=()=>{const e=[{name:"Core HR",basic:!0,standard:!0,enterprise:!0},{name:"Employee Self Service",basic:!0,standard:!0,enterprise:!0},{name:"Payroll",basic:!0,standard:!0,enterprise:!0},{name:"Advance HR",basic:!1,standard:!0,enterprise:!0},{name:"Engage",basic:!1,standard:!0,enterprise:!0},{name:"Advance Time Tracking",basic:!1,standard:!0,enterprise:!0},{name:"Finance & Admin",basic:!1,standard:!1,enterprise:!0},{name:"Performance",basic:!1,standard:!1,enterprise:!0},{name:"Global Payroll",basic:!1,standard:!1,enterprise:!0}];return I.jsx(ut,{className:"compare-plans-container",children:I.jsxs(ut,{className:"pricing-table",children:[I.jsxs(ut,{className:"table-header",children:[I.jsx(ut,{className:"header-cell feature-column",children:I.jsx(mt,{className:"header-text",children:"Features"})}),I.jsxs(ut,{className:"header-cell plan-column",children:[I.jsx(mt,{className:"plan-name",children:"Basic"}),I.jsx(mt,{className:"plan-price",children:"₹80/mo"})]}),I.jsxs(ut,{className:"header-cell plan-column",children:[I.jsx(mt,{className:"plan-name",children:"Standard"}),I.jsx(mt,{className:"plan-price",children:"₹120/mo"})]}),I.jsxs(ut,{className:"header-cell plan-column",children:[I.jsx(mt,{className:"plan-name",children:"Enterprise"}),I.jsx(mt,{className:"plan-price",children:"₹160/mo"})]})]}),e.map((n,t)=>I.jsxs(ut,{className:"table-row",children:[I.jsx(ut,{className:"feature-cell",children:I.jsx(mt,{className:"feature-name",children:n.name})}),I.jsx(ut,{className:"plan-cell",children:n.basic?I.jsx(K0,{className:"check-icon"}):I.jsx(G3,{className:"dash-icon"})}),I.jsx(ut,{className:"plan-cell",children:n.standard?I.jsx(K0,{className:"check-icon"}):I.jsx(G3,{className:"dash-icon"})}),I.jsx(ut,{className:"plan-cell",children:n.enterprise?I.jsx(K0,{className:"check-icon"}):I.jsx(G3,{className:"dash-icon"})})]},t))]})})},Zrn=[{name:"Recruit",description:"Applicant tracking & ATS",price:4e3,icon:$rn,bgColor:"#EFF6FF",iconColor:"#3B82F6",buttonVariant:"outlined",buttonColor:"success",isActive:!1},{name:"Timesheet",description:"Advanced time management",price:40,icon:Frn,bgColor:"#EFF6FF",iconColor:"#3B82F6",buttonVariant:"text",buttonColor:"primary",isActive:!1},{name:"Trip",description:"Travel management",price:40,icon:Rrn,bgColor:"#EFF6FF",iconColor:"#3B82F6",buttonVariant:"text",buttonColor:"primary",isActive:!1},{name:"Payout",description:"Advanced payroll processing",price:20,icon:jrn,bgColor:"#F9FAFB",iconColor:"#3B82F6",buttonVariant:"text",buttonColor:"primary",isActive:!1},{name:"Learn",description:"Training platform",price:40,icon:Drn,bgColor:"#F9FAFB",iconColor:"#3B82F6",buttonVariant:"text",buttonColor:"primary",isActive:!1}],qrn=e=>{var m,v;const{onTabChange:n}=e,[t,r]=V.useState("card"),[i,o]=V.useState(!1),[a,s]=V.useState(!1),[l,u]=V.useState({}),{isLoading:c}=ao(nh,{url:"subscription/sendmailtospoc",data:l},["send-mail-to-spoc",l],{enabled:a,onSuccess:()=>{console.log("API call successful"),s(!1)},onError:b=>{console.error("Error sending mail to SPOC:",b),s(!1)}}),d=b=>{o(!0),u({is_from:b}),s(!0)},f=()=>{o(!1)},{data:p}=ao(Sa,{url:bM,params:{}},"subsription-overview"),h=b=>{if(!(p!=null&&p.addOnProduct)||!(p!=null&&p.add_on_id))return!1;const x=p.addOnProduct.find(C=>C.product_name===b);return x?p.add_on_id.includes(String(x.product_id)):!1},g=or((m=p==null?void 0:p.planDetails)==null?void 0:m.plan_expiring_date).format("DD MMM, YYYY");return I.jsxs(ut,{children:[I.jsxs(ut,{className:"header-section",children:[I.jsxs(ut,{className:"header-top",children:[I.jsxs(ut,{className:"header-info",children:[I.jsx(mt,{variant:"h4",component:"h1",children:"Your Subscription"}),I.jsxs(mt,{variant:"body2",children:["Current Plan:"," ",I.jsx("span",{children:((v=p==null?void 0:p.planDetails)==null?void 0:v.current_plan)||"Enterprise"})," ","- Next billing: ",I.jsx("span",{children:g})]})]}),I.jsx(Ia,{variant:"contained",className:"upgrade-button",onClick:()=>d(1),disabled:c,children:"Upgrade your plan"})]}),I.jsxs(ut,{className:"view-options",children:[I.jsx(ut,{className:`view-card ${t==="card"?"active":""}`,onClick:()=>r("card"),children:I.jsx(mt,{variant:"body2",className:"view-link",children:"Card View"})}),I.jsx(ut,{className:`view-card ${t==="compare"?"active":""}`,onClick:()=>r("compare"),children:I.jsx(mt,{variant:"body2",className:"view-link",children:"Compare"})})]})]}),t==="card"&&I.jsx(Wrn,{overviewData:p}),t==="compare"&&I.jsx(Xrn,{}),I.jsxs(ut,{className:"addons-section",children:[I.jsx(mt,{variant:"h5",className:"addons-title",children:"Add-ons"}),I.jsx(mt,{variant:"body2",className:"addons-subtitle",children:"Enhance your plan with additional features"}),I.jsx(Ni,{container:!0,spacing:2,className:"addons-grid",children:Zrn.map(b=>{const x=b.icon,C=h(b.name);return I.jsx(Ni,{size:{xs:12,sm:6,md:4},children:I.jsxs(ny,{className:"addon-card",elevation:0,children:[C&&I.jsx(kx,{label:"Active",className:"addon-badge",size:"small"}),I.jsx(ut,{className:"addon-icon-container",sx:{backgroundColor:b.bgColor},children:I.jsx(x,{style:{width:28,height:28,color:b.iconColor}})}),I.jsx(mt,{variant:"h6",className:"addon-name",children:b.name}),I.jsx(mt,{variant:"body2",className:"addon-description",children:b.description}),I.jsx(ut,{className:"addon-footer",children:I.jsxs(ut,{className:"addon-price",children:[I.jsxs(mt,{variant:"h5",component:"span",className:"addon-price-amount",children:["₹",b.price]}),I.jsx(mt,{variant:"body2",component:"span",className:"addon-price-unit",children:"/mo"})]})})]})},b.name)})})]}),I.jsxs(ny,{className:"help-section",elevation:0,children:[I.jsxs(ut,{children:[I.jsx(mt,{variant:"h6",className:"help-title",children:"Need Help choosing the right plan?"}),I.jsx(mt,{variant:"body2",className:"help-text",children:"Our team is here to answer your questions"})]}),I.jsx(Ia,{variant:"contained",className:"contact-button",onClick:()=>d(3),disabled:c,children:"Contact Us"})]}),I.jsxs(oh,{open:i,onClose:f,maxWidth:"sm",fullWidth:!0,children:[I.jsxs(ah,{sx:{textAlign:"center",py:4},children:[I.jsx(mt,{variant:"h5",sx:{fontWeight:600,mb:2},children:"Thank you for trusting us! 🙌"}),I.jsx(mt,{variant:"body1",color:"text.secondary",sx:{mb:1},children:"Our team will connect with you shortly in exploring more capabilities of the Zimyo 🚀✨"})]}),I.jsx(rm,{sx:{justifyContent:"center",pb:3},children:I.jsx(Ia,{onClick:f,variant:"contained",children:"Okay"})})]})]})},Jrn=({label:e,icon:n})=>I.jsxs("div",{className:"flex justify-start items-center gap-2",children:[n&&I.jsx("span",{className:"text-2xl rounded p-1 bg-gray-100 text-gray-600",children:n}),I.jsx("span",{children:e})]}),VB=({children:e,className:n,title:t,icon:r})=>I.jsxs("div",{className:Tn("bg-white border rounded border-gray-200 rounded shadow-sm hover:shadow-md transition-shadow duration-200 p-2",n),children:[t&&I.jsx(_ze,{heading:I.jsx(Jrn,{label:t,icon:r})}),e]}),Krn="_page_cys8l_3",Qrn="_card_cys8l_10",ein="_card_body_cys8l_18",tin="_table_wrap_cys8l_23",nin="_card_action_header_cys8l_29",rin="_card_action_title_cys8l_38",iin="_wallet_card_cys8l_46",oin="_wallet_circle_top_cys8l_60",ain="_wallet_circle_bottom_cys8l_71",sin="_wallet_top_row_cys8l_82",lin="_wallet_label_cys8l_90",uin="_wallet_balance_caption_cys8l_106",cin="_wallet_balance_value_cys8l_113",din="_wallet_meta_row_cys8l_121",fin="_wallet_meta_text_cys8l_128",pin="_wallet_meta_value_cys8l_133",hin="_wallet_meta_sep_cys8l_138",gin="_wallet_health_row_cys8l_143",min="_wallet_health_label_cys8l_150",vin="_wallet_health_footer_cys8l_155",yin="_wallet_recharged_label_cys8l_162",bin="_wallet_recharge_section_cys8l_169",xin="_wallet_recharge_hint_cys8l_176",win="_wallet_recharge_hint_text_cys8l_184",Cin="_wallet_recharge_grid_cys8l_191",Sin="_wallet_recharge_item_cys8l_197",_in="_wallet_recharge_item_label_cys8l_205",Iin="_wallet_recharge_item_value_cys8l_211",Min="_module_list_cys8l_219",Tin="_module_row_cys8l_237",Ain="_module_row_header_cys8l_249",Ein="_module_row_left_cys8l_256",kin="_module_icon_cys8l_262",Oin="_module_name_row_cys8l_272",Din="_module_name_cys8l_272",Pin="_module_meta_cys8l_285",Rin="_module_row_right_cys8l_291",Nin="_module_credits_cys8l_296",zin="_module_credits_label_cys8l_302",Lin="_module_progress_labels_cys8l_307",Fin="_module_progress_text_cys8l_314",Bin="_module_progress_pct_cys8l_319",jin="_module_footer_row_cys8l_324",Vin="_module_footer_text_cys8l_330",$in="_module_footer_bold_cys8l_335",Gin="_module_footer_days_cys8l_340",Win="_module_list_footer_cys8l_346",Hin="_badge_plan_cys8l_358",Yin="_badge_addon_cys8l_372",Uin="_modal_content_cys8l_388",Xin="_modal_actions_cys8l_395",wn={page:Krn,card:Qrn,card_body:ein,table_wrap:tin,card_action_header:nin,card_action_title:rin,wallet_card:iin,wallet_circle_top:oin,wallet_circle_bottom:ain,wallet_top_row:sin,wallet_label:lin,wallet_balance_caption:uin,wallet_balance_value:cin,wallet_meta_row:din,wallet_meta_text:fin,wallet_meta_value:pin,wallet_meta_sep:hin,wallet_health_row:gin,wallet_health_label:min,wallet_health_footer:vin,wallet_recharged_label:yin,wallet_recharge_section:bin,wallet_recharge_hint:xin,wallet_recharge_hint_text:win,wallet_recharge_grid:Cin,wallet_recharge_item:Sin,wallet_recharge_item_label:_in,wallet_recharge_item_value:Iin,module_list:Min,module_row:Tin,module_row_header:Ain,module_row_left:Ein,module_icon:kin,module_name_row:Oin,module_name:Din,module_meta:Pin,module_row_right:Rin,module_credits:Nin,module_credits_label:zin,module_progress_labels:Lin,module_progress_text:Fin,module_progress_pct:Bin,module_footer_row:jin,module_footer_text:Vin,module_footer_bold:$in,module_footer_days:Gin,module_list_footer:Win,badge_plan:Hin,badge_addon:Yin,modal_content:Uin,modal_actions:Xin},qze={plan:{color:"#2563EB",bg:"#DBEAFE",icon:I.jsx(Dnn,{size:14})},pms:{color:"#7C3AED",bg:"#EDE9FE",icon:I.jsx(Ann,{size:14})},ats:{color:"#EA580C",bg:"#FFEDD5",icon:I.jsx(Rnn,{size:14})},lms:{color:"#059669",bg:"#D1FAE5",icon:I.jsx(Onn,{size:14})}},Zin=e=>{var n;return qze[e.type==="plan"?"plan":(n=e.addon_key)!=null?n:"pms"]},qin={total_balance:12450,total_monthly_burn:3650,low_balance_threshold:5e3,last_recharged_at:"2026-03-01T00:00:00Z",modules:[{id:"plan",name:"Enterprise Plan",type:"plan",plan_tier:"enterprise",rate_per_employee:12,employee_count:200,monthly_charge:2400,allocated_credits:6e3,consumed_credits:1200,remaining_credits:4800,avg_daily_consumption:80,exhaustion_date:"2026-06-09"},{id:"pms",name:"Performance (PMS)",type:"addon",addon_key:"pms",rate_per_employee:4,employee_count:200,monthly_charge:800,allocated_credits:4e3,consumed_credits:800,remaining_credits:3200,avg_daily_consumption:27,exhaustion_date:"2026-07-03"},{id:"ats",name:"Applicant Tracking (ATS)",type:"addon",addon_key:"ats",rate_per_employee:3,employee_count:150,monthly_charge:450,allocated_credits:2450,consumed_credits:450,remaining_credits:2e3,avg_daily_consumption:15,exhaustion_date:"2026-07-17"}]},Jin={categories:["Apr 8","Apr 9","Apr 10","Apr 11","Apr 12","Apr 13","Apr 14"],series:[{name:"Enterprise Plan",data:[80,82,79,81,80,80,78],color:"#2563EB",smooth:!0},{name:"Performance (PMS)",data:[27,28,26,27,28,27,26],color:"#7C3AED",smooth:!0},{name:"Applicant Tracking (ATS)",data:[15,14,16,15,15,14,15],color:"#EA580C",smooth:!0}]},Kin={totalCounts:7,data:[{id:1,date:"2026-04-14",type:"DEBIT",module_name:"Enterprise Plan",description:"Daily subscription — Enterprise Plan",amount:80,balance_after:12450},{id:2,date:"2026-04-14",type:"DEBIT",module_name:"Performance (PMS)",description:"Daily subscription — Performance (PMS)",amount:27,balance_after:12530},{id:3,date:"2026-04-14",type:"DEBIT",module_name:"Applicant Tracking (ATS)",description:"Daily subscription — Applicant Tracking (ATS)",amount:15,balance_after:12557},{id:4,date:"2026-04-13",type:"DEBIT",module_name:"Enterprise Plan",description:"Daily subscription — Enterprise Plan",amount:80,balance_after:12572},{id:5,date:"2026-04-13",type:"DEBIT",module_name:"Performance (PMS)",description:"Daily subscription — Performance (PMS)",amount:28,balance_after:12652},{id:6,date:"2026-04-13",type:"DEBIT",module_name:"Applicant Tracking (ATS)",description:"Daily subscription — Applicant Tracking (ATS)",amount:14,balance_after:12680},{id:7,date:"2026-04-01",type:"CREDIT",module_name:void 0,description:"Wallet recharge",amount:5e3,balance_after:12694}]},Qin=()=>{var W,Y,Z,K,q,re,oe,J;const e=Dc(X=>{var te;return(te=X.session.user)==null?void 0:te.org_id}),n=hM(),t=Uze(),[r,i]=V.useState({page:0,perPage:20}),[o,a]=V.useState(""),[s,l]=V.useState(!1),[u,c]=V.useState(""),d=(X,te)=>i(ne=>ue(G({},ne),{[X]:te})),{data:f}=ao(Sa,{url:`${k$e}/${e}`,params:{}},`walletBalance-${e}`,{enabled:!!e}),{data:p}=ao(Sa,{url:`${O$e}/${e}`,params:{}},`walletConsumption-${e}`,{enabled:!!e}),{data:h}=ao(Sa,{url:`${N$e}/${e}`,params:{}},`walletLedgerProduct-${e}`,{enabled:!!e}),g=Array.isArray(h==null?void 0:h.data)?h.data:[];V.useEffect(()=>{g.length&&!o&&a(g[0].pool_id)},[g]);const{data:m,isFetching:v}=ao(Sa,{url:`${D$e}/${e}`,params:G({page:r.page,limit:r.perPage},o?{pool_id:o}:{})},["walletTransactions",e,r.page,r.perPage,o].toString(),{enabled:!!e}),{handleSubmit:b,isLoading:x}=Mc({url:R$e,successCallback:()=>{l(!1),c(""),n.invalidateQueries(`walletBalance-${e}`),n.invalidateQueries("walletTransactions"),n.invalidateQueries(`walletConsumption-${e}`)}}),C=f!=null?f:qin,w=p!=null?p:Jin,S=m!=null?m:Kin,_=(W=C==null?void 0:C.modules)!=null?W:[],M=V.useMemo(()=>_.reduce((X,te)=>X+te.avg_daily_consumption,0),[_]),k=M>0?Math.floor((C==null?void 0:C.total_balance)/M):null,E=V.useMemo(()=>_.length?_.reduce((X,te)=>or(te.exhaustion_date).isBefore(or(X.exhaustion_date))?te:X):null,[_]),O=C?Math.min(100,Math.round(C.total_balance/(C.low_balance_threshold*4)*100)):0,A=O<25?"#ef4444":O<50?"#f97316":"#22c55e",P=Math.ceil(M*30),N=Math.ceil(M*60),R=Math.ceil(M*90),{alertSeverity:z,alertMessage:F}=V.useMemo(()=>{const X=_.filter(ne=>{const ee=or(ne.exhaustion_date).diff(or(),"day");return(ne.allocated_credits>0?ne.remaining_credits/ne.allocated_credits*100:100)<20||ee<=7}),te=_.filter(ne=>{const ee=or(ne.exhaustion_date).diff(or(),"day"),se=ne.allocated_credits>0?ne.remaining_credits/ne.allocated_credits*100:100;return!X.includes(ne)&&(se<40||ee<=15)});return X.length?{alertSeverity:"error",alertMessage:`Critical: ${X.map(ne=>ne.name).join(", ")} ${X.length>1?"are":"is"} running critically low on credits. Recharge immediately to avoid service disruption.`}:te.length?{alertSeverity:"warning",alertMessage:`Warning: ${te.map(ne=>ne.name).join(", ")} ${te.length>1?"are":"is"} nearing credit exhaustion. Consider recharging soon.`}:{alertSeverity:null,alertMessage:""}},[_]),B=X=>` ${(X!=null?X:0).toLocaleString("en-IN",{minimumFractionDigits:2,maximumFractionDigits:2})}`,L=X=>` ${(X!=null?X:0).toLocaleString("en-IN")}`,j=[{isVisible:!0,id:"type",accessorKey:"type",header:"",size:48,cell:X=>{var ne,ee;const te=((ee=(ne=X==null?void 0:X.row)==null?void 0:ne.original)==null?void 0:ee.type)==="CREDIT";return I.jsx(ut,{sx:{width:32,height:32,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,bgcolor:te?"#dcfce7":"#fee2e2",color:te?"#16a34a":"#dc2626"},children:te?I.jsx(Enn,{size:15}):I.jsx(knn,{size:15})})}},{isVisible:!0,id:"description",accessorKey:"description",header:"Description",cell:X=>{var ne;const te=(ne=X==null?void 0:X.row)==null?void 0:ne.original;return I.jsx(ut,{children:I.jsx(mt,{variant:"body2",sx:{fontWeight:500,lineHeight:1.3},children:te==null?void 0:te.description})})}},{isVisible:!0,id:"date",accessorKey:"date",header:"Date",cell:X=>{var te,ne;return I.jsx(mt,{variant:"body2",color:"text.secondary",children:or((ne=(te=X==null?void 0:X.row)==null?void 0:te.original)==null?void 0:ne.date).format("DD MMM YYYY")})}},{isVisible:!0,id:"module_name",accessorKey:"module_name",header:"Module",size:160,cell:X=>{var ee,se;const te=(se=(ee=X==null?void 0:X.row)==null?void 0:ee.original)==null?void 0:se.module_name;if(!te)return I.jsx(mt,{variant:"caption",color:"text.disabled",children:"—"});const ne=!te.toLowerCase().includes("plan");return I.jsx("span",{className:ne?wn.badge_addon:wn.badge_plan,children:te})}},{isVisible:!0,id:"amount",accessorKey:"amount",header:"Amount",cell:X=>{var ee,se;const te=(ee=X==null?void 0:X.row)==null?void 0:ee.original,ne=(te==null?void 0:te.type)==="CREDIT";return I.jsxs(mt,{variant:"body2",sx:{fontWeight:600,color:ne?"#16a34a":"#dc2626"},children:[ne?"+":"−"," ",((se=te==null?void 0:te.amount)!=null?se:0).toLocaleString("en-IN")]})}},{isVisible:!0,id:"balance_after",accessorKey:"balance_after",header:"Balance After",cell:X=>{var te,ne,ee;return I.jsx(mt,{variant:"body2",color:"text.secondary",children:((ee=(ne=(te=X==null?void 0:X.row)==null?void 0:te.original)==null?void 0:ne.balance_after)!=null?ee:0).toLocaleString("en-IN")})}}];return I.jsxs(ut,{className:wn.page,children:[z&&I.jsx(EP,{severity:z,variant:"filled",sx:{borderRadius:1,mb:2},children:F}),I.jsxs(Cr,{container:!0,spacing:2,alignItems:"stretch",sx:{mb:2},children:[I.jsx(Cr,{item:!0,xs:12,md:5,children:I.jsxs(ut,{className:wn.wallet_card,children:[I.jsx(ut,{className:wn.wallet_circle_top}),I.jsx(ut,{className:wn.wallet_circle_bottom}),I.jsx(ut,{className:wn.wallet_top_row,children:I.jsx(mt,{className:wn.wallet_label,children:"Zimyo Wallet"})}),I.jsxs(ut,{children:[I.jsx(mt,{className:wn.wallet_balance_caption,children:"Total Available Balance"}),I.jsx(mt,{className:wn.wallet_balance_value,children:B((Y=C==null?void 0:C.total_balance)!=null?Y:0)}),I.jsxs(ut,{className:wn.wallet_meta_row,children:[I.jsxs(mt,{className:wn.wallet_meta_text,children:["Monthly burn:"," ",I.jsx("span",{className:wn.wallet_meta_value,children:L((Z=C==null?void 0:C.total_monthly_burn)!=null?Z:0)})]}),I.jsx(mt,{className:wn.wallet_meta_sep,children:"·"}),I.jsxs(mt,{className:wn.wallet_meta_text,children:[I.jsx("span",{className:wn.wallet_meta_value,children:_.length})," ","active module",_.length!==1?"s":""]})]})]}),I.jsxs(ut,{children:[I.jsxs(ut,{className:wn.wallet_health_row,children:[I.jsx(mt,{className:wn.wallet_health_label,children:"Balance health"}),I.jsxs(mt,{className:wn.wallet_health_label,children:["Threshold: ",L((K=C==null?void 0:C.low_balance_threshold)!=null?K:0)]})]}),I.jsx(Sj,{variant:"determinate",value:O,sx:{height:6,borderRadius:3,bgcolor:"rgba(255,255,255,0.15)","& .MuiLinearProgress-bar":{bgcolor:A,borderRadius:3}}}),I.jsxs(ut,{className:wn.wallet_health_footer,children:[(C==null?void 0:C.last_recharged_at)&&I.jsxs(mt,{className:wn.wallet_recharged_label,children:["Last recharged: ",or(C.last_recharged_at).format("DD MMM YYYY")]}),k!==null&&I.jsxs(mt,{className:wn.wallet_recharged_label,children:["~",k," days remaining"]})]})]}),I.jsxs(ut,{className:wn.wallet_recharge_section,children:[I.jsxs(ut,{className:wn.wallet_recharge_hint,children:[I.jsx(Nnn,{size:11}),I.jsx(mt,{className:wn.wallet_recharge_hint_text,children:"Suggested Recharge"})]}),I.jsx(ut,{className:wn.wallet_recharge_grid,children:[{label:"30d",value:P},{label:"60d",value:N},{label:"90d",value:R}].map(({label:X,value:te})=>I.jsxs(ut,{className:wn.wallet_recharge_item,children:[I.jsx(mt,{className:wn.wallet_recharge_item_label,children:X}),I.jsx(mt,{className:wn.wallet_recharge_item_value,children:L(te)})]},X))})]})]})}),I.jsx(Cr,{item:!0,xs:12,md:7,children:I.jsxs(VB,{className:wn.card,children:[I.jsx(ut,{className:wn.card_action_header,children:I.jsx(mt,{className:wn.card_action_title,children:"Plan & Add-on Credit Allocation"})}),I.jsxs(ut,{className:wn.module_list,children:[_.map(X=>{var he;const te=(he=Zin(X))!=null?he:qze.pms,ne=X.allocated_credits>0?Math.round(X.consumed_credits/X.allocated_credits*100):0,ee=ne>=75?"#ef4444":ne>=50?"#f59e0b":"#22c55e",se=or(X.exhaustion_date).diff(or(),"day"),ce=se<=15;return I.jsxs(ut,{className:wn.module_row,children:[I.jsxs(ut,{className:wn.module_row_header,children:[I.jsxs(ut,{className:wn.module_row_left,children:[I.jsx(ut,{className:wn.module_icon,style:{color:te.color,backgroundColor:te.bg},children:te.icon}),I.jsxs(ut,{children:[I.jsxs(ut,{className:wn.module_name_row,children:[I.jsx(mt,{className:wn.module_name,children:X.name}),I.jsx("span",{className:X.type==="plan"?wn.badge_plan:wn.badge_addon,children:X.type})]}),I.jsxs(mt,{className:wn.module_meta,children:[X.rate_per_employee,"/emp · ",X.employee_count," emp · ",L(X.monthly_charge),"/mo"]})]})]}),I.jsxs(ut,{className:wn.module_row_right,children:[I.jsx(mt,{className:wn.module_credits,children:L(X.remaining_credits)}),I.jsx(mt,{className:wn.module_credits_label,children:"remaining"})]})]}),I.jsxs(ut,{children:[I.jsxs(ut,{className:wn.module_progress_labels,children:[I.jsxs(mt,{className:wn.module_progress_text,children:[L(X.consumed_credits)," consumed of ",L(X.allocated_credits)," allocated"]}),I.jsxs(mt,{className:wn.module_progress_pct,style:{color:ne>=75?"#ef4444":"#6B7280"},children:[ne,"%"]})]}),I.jsx(Sj,{variant:"determinate",value:ne,sx:{height:5,borderRadius:3,bgcolor:"#F1F5F9","& .MuiLinearProgress-bar":{bgcolor:ee,borderRadius:3}}})]}),I.jsxs(ut,{className:wn.module_footer_row,children:[I.jsxs(mt,{className:wn.module_footer_text,children:["Daily burn:"," ",I.jsxs("span",{className:wn.module_footer_bold,children:[L(X.avg_daily_consumption),"/day"]})]}),I.jsxs(mt,{className:wn.module_footer_text,style:{color:ce?"#ef4444":"#6B7280"},children:["Runs out ",or(X.exhaustion_date).format("DD MMM YYYY"),I.jsxs("span",{className:wn.module_footer_days,children:[" · ",se,"d"]})]})]})]},X.id)}),E&&I.jsxs(ut,{className:wn.module_list_footer,children:[I.jsxs(mt,{className:wn.module_footer_text,children:["Earliest exhaustion:"," ",I.jsx("span",{className:wn.module_footer_bold,children:E.name})]}),I.jsxs(mt,{className:wn.module_footer_text,children:["Total daily burn:"," ",I.jsxs("span",{className:wn.module_footer_bold,children:[L(M),"/day"]})]})]})]})]})})]}),I.jsx(ut,{sx:{mb:2},children:I.jsxs(VB,{className:wn.card,children:[I.jsx(ut,{className:wn.card_action_header,children:I.jsx(mt,{className:wn.card_action_title,children:"Daily Consumption Trend — By Module"})}),I.jsx("div",{className:wn.card_body,children:I.jsx(Cen,{categories:(q=w==null?void 0:w.categories)!=null?q:[],series:(re=w==null?void 0:w.series)!=null?re:[],height:"280px",width:"100%",theme:"light",noDataText:"No consumption data available"})})]})}),I.jsxs(VB,{className:wn.card,children:[I.jsxs(ut,{className:wn.card_action_header,children:[I.jsx(mt,{className:wn.card_action_title,children:"Transaction History"}),I.jsx(sh,{title:"Download Transactions",children:I.jsx(_a,{size:"small",onClick:()=>t(`${P$e}/${e}`,{org_id:e,is_download:1,export:1},{},"wallet_transactions.xlsx","get"),children:I.jsx(ATe,{size:18})})})]}),I.jsxs(V.Fragment,{children:[g.length>0&&I.jsx(w2e,{value:o,onChange:(X,te)=>{a(te),i(ne=>ue(G({},ne),{page:0}))},variant:"scrollable",scrollButtons:"auto",sx:{borderBottom:1,borderColor:"divider",mb:1},children:g.map(X=>I.jsx(p2e,{label:X.display_name,value:X.pool_id,sx:{textTransform:"none",fontSize:13}},X.pool_id))}),I.jsx(ut,{className:wn.table_wrap,children:I.jsx(jy,{columns:j,data:(oe=S==null?void 0:S.data)!=null?oe:[],styling:{stickyHeader:!0},loading:{loading:v&&!0},serverMode:!0,pagination:{enabled:!0,pageSize:r.perPage,currentPage:r.page,totalCount:(J=S==null?void 0:S.totalCounts)!=null?J:0,onPageChange:X=>d("page",X),onPageSizeChange:X=>d("perPage",X),pageSizeOptions:[20,30,50,100]}})})]})]}),s&&I.jsx(Lke,{open:s,title:"Add Payment Reference",onClose:()=>{l(!1),c("")},children:I.jsxs(ut,{className:wn.modal_content,children:[I.jsx(Fke,{placeholder:"Enter payment reference number",value:u,onChange:X=>c(X.target.value)}),I.jsxs(ut,{className:wn.modal_actions,children:[I.jsx(Ia,{variant:"outlined",onClick:()=>{l(!1),c("")},children:"Cancel"}),I.jsx(Ia,{variant:"contained",loading:x,disabled:!u.trim(),onClick:()=>b({reference_number:u,org_id:e}),children:"Add Credit"})]})]})})]})};exports.BillingSubscription=qen;exports.CustomerInvoices=p6t;exports.Ledger=gtn;exports.Mail=utn;exports.ManageProvider=Htt;exports.NewOverview=Irn;exports.PlansOverview=Oen;exports.ProductUpdates=_nn;exports.ServiceDeskLogs=dtn;exports.SubscriptionConsumption=Lzt;exports.SubscriptionOverview=h9t;exports.SubscriptionPaymentMethod=k9t;exports.SubscriptionPlans=Fen;exports.SubscriptionPricing=qrn;exports.SubscriptionWallet=Zen;exports.TempPayment=mtn;exports.UpcomingInvoices=ctn;exports.WalletDashboard=Qin;
4020
+ */const Vrn=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],$rn=ow("users",Vrn),Grn=[{name:"Basic",price:80,description:"Minimum billing of ₹4000/- up to 50 users",features:{"Core HR":["Employee","Time & Attendance","Document","Policy","Workflow","Roles & Permission","Transfer & Probation"],"Employee Self Service":["Android & iOS","Team","Geotag","Geofence","Reports"],Payroll:["Salary","Compliance","Arrear","Full & Final"]},hasLink:!1,barColor:"#3B82F6",isCurrent:!1},{name:"Standard",price:120,description:"Minimum billing of ₹6000/- up to 50 users",features:{"Advance HR":["Onboarding","Offboarding","Helpdesk","Asset","Task","Custom Dashboard"],Engage:["Feed","Chat","Survey","Feedback","Recognition"],"Advance Time Tracking":["Time Zone","Roster","Selfie Attendance","Overtime & Incentive"]},hasLink:!0,linkText:"(All basic features +)",barColor:"#6366F1",isCurrent:!1},{name:"Enterprise",price:160,description:"Minimum billing of ₹8000/- up to 50 users",isPopular:!0,features:{"Finance & Admin":["Expense","Travel Desk","Vendor","Petty Cash","Budgeting","Manpower Planning"],Performance:["Review (KRA/KPI)","Objective (OKR)","9-Box Matrix","Bell Curve & Normalization","Compensation"],"Global Payroll":["Contract","Multi-Entity","Multi-Country","Multi-Currency"]},hasLink:!0,linkText:"(All standard features +)",barColor:"#8B5CF6",isCurrent:!0}],Wrn=({overviewData:e})=>{const[n,t]=V.useState(!1),[r,i]=V.useState(null),[o,a]=V.useState(!1),[s,l]=V.useState(null),{isLoading:u}=ao(nh,{url:"subscription/sendmailtospoc",data:s},["send-mail-to-spoc",s],{enabled:o,onSuccess:()=>{console.log("API call successful"),a(!1),t(!0)},onError:h=>{console.error("Error sending mail to SPOC:",h),a(!1),t(!0)}}),c=h=>{var g;return h===((g=e==null?void 0:e.planDetails)==null?void 0:g.current_plan)},d=h=>{const m={Basic:1,Standard:2,Enterprise:3}[h];i(m),l({is_from:2,plan:m}),a(!0)},f=()=>{t(!1),i(null)},p=h=>{var x;const g=(x=e==null?void 0:e.planDetails)==null?void 0:x.current_plan;if(!g)return!1;const m={Basic:1,Standard:2,Enterprise:3},v=m[g]||0;return(m[h]||0)<=v};return I.jsxs(ut,{className:"plans-wrapper",children:[I.jsx(ut,{className:"plans-scroll-container",children:I.jsx(ut,{className:"plans-grid",children:Grn.map(h=>{const g=c(h.name);return I.jsxs(ny,{className:`plan-card ${g?"current":""}`,elevation:0,children:[g&&I.jsx(kx,{label:"Current plan",className:"plan-badge current-badge",size:"small"}),I.jsxs(ut,{className:"plan-header",children:[I.jsx(mt,{variant:"h6",className:"plan-title",children:h.name}),h.isPopular&&I.jsx(kx,{label:"Popular",className:"popular",size:"small"})]}),I.jsxs(ut,{className:"plan-price",children:[I.jsxs(mt,{variant:"h3",component:"span",className:"price-amount",children:["₹",h.price]}),I.jsx(mt,{variant:"body2",component:"span",className:"price-unit",children:"/month/user"})]}),I.jsx(mt,{variant:"caption",className:"plan-description",children:h.description}),I.jsx(Ia,{variant:g?"contained":"outlined",fullWidth:!0,className:g||h.name==="Enterprise"?"plan-button filled":"plan-button outlined",onClick:()=>d(h.name),disabled:g||p(h.name)||u,children:g?"Opted":"Request a Demo"}),h.hasLink&&I.jsx(mt,{variant:"caption",className:"plan-link",children:h.linkText}),I.jsx(ut,{className:"plan-features",children:Object.entries(h.features).map(([m,v])=>I.jsxs(ut,{className:"feature-category",children:[I.jsx(mt,{variant:"body2",className:"category-title",children:m}),I.jsx(ut,{className:"feature-list",children:v.map(b=>I.jsxs(ut,{className:"feature-item",children:[I.jsx(zrn,{className:"check-icon"}),I.jsx(mt,{variant:"body2",className:"feature-text",children:b})]},b))})]},m))})]},h.name)})})}),I.jsxs(oh,{open:n,onClose:f,maxWidth:"sm",fullWidth:!0,children:[I.jsxs(ah,{sx:{textAlign:"center",py:4},children:[I.jsx(mt,{variant:"h5",sx:{fontWeight:600,mb:2},children:"Thank you for trusting us! 🙌"}),I.jsx(mt,{variant:"body1",color:"text.secondary",sx:{mb:1},children:"Our team will connect with you shortly in exploring more capabilities of the Zimyo 🚀✨"})]}),I.jsx(rm,{sx:{justifyContent:"center",pb:3},children:I.jsx(Ia,{onClick:f,variant:"contained",children:"Okay"})})]})]})};var FK={},Hrn=mr;Object.defineProperty(FK,"__esModule",{value:!0});var G3=FK.default=void 0,Yrn=Hrn(vr()),Urn=I;G3=FK.default=(0,Yrn.default)((0,Urn.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove");const Xrn=()=>{const e=[{name:"Core HR",basic:!0,standard:!0,enterprise:!0},{name:"Employee Self Service",basic:!0,standard:!0,enterprise:!0},{name:"Payroll",basic:!0,standard:!0,enterprise:!0},{name:"Advance HR",basic:!1,standard:!0,enterprise:!0},{name:"Engage",basic:!1,standard:!0,enterprise:!0},{name:"Advance Time Tracking",basic:!1,standard:!0,enterprise:!0},{name:"Finance & Admin",basic:!1,standard:!1,enterprise:!0},{name:"Performance",basic:!1,standard:!1,enterprise:!0},{name:"Global Payroll",basic:!1,standard:!1,enterprise:!0}];return I.jsx(ut,{className:"compare-plans-container",children:I.jsxs(ut,{className:"pricing-table",children:[I.jsxs(ut,{className:"table-header",children:[I.jsx(ut,{className:"header-cell feature-column",children:I.jsx(mt,{className:"header-text",children:"Features"})}),I.jsxs(ut,{className:"header-cell plan-column",children:[I.jsx(mt,{className:"plan-name",children:"Basic"}),I.jsx(mt,{className:"plan-price",children:"₹80/mo"})]}),I.jsxs(ut,{className:"header-cell plan-column",children:[I.jsx(mt,{className:"plan-name",children:"Standard"}),I.jsx(mt,{className:"plan-price",children:"₹120/mo"})]}),I.jsxs(ut,{className:"header-cell plan-column",children:[I.jsx(mt,{className:"plan-name",children:"Enterprise"}),I.jsx(mt,{className:"plan-price",children:"₹160/mo"})]})]}),e.map((n,t)=>I.jsxs(ut,{className:"table-row",children:[I.jsx(ut,{className:"feature-cell",children:I.jsx(mt,{className:"feature-name",children:n.name})}),I.jsx(ut,{className:"plan-cell",children:n.basic?I.jsx(K0,{className:"check-icon"}):I.jsx(G3,{className:"dash-icon"})}),I.jsx(ut,{className:"plan-cell",children:n.standard?I.jsx(K0,{className:"check-icon"}):I.jsx(G3,{className:"dash-icon"})}),I.jsx(ut,{className:"plan-cell",children:n.enterprise?I.jsx(K0,{className:"check-icon"}):I.jsx(G3,{className:"dash-icon"})})]},t))]})})},Zrn=[{name:"Recruit",description:"Applicant tracking & ATS",price:4e3,icon:$rn,bgColor:"#EFF6FF",iconColor:"#3B82F6",buttonVariant:"outlined",buttonColor:"success",isActive:!1},{name:"Timesheet",description:"Advanced time management",price:40,icon:Frn,bgColor:"#EFF6FF",iconColor:"#3B82F6",buttonVariant:"text",buttonColor:"primary",isActive:!1},{name:"Trip",description:"Travel management",price:40,icon:Rrn,bgColor:"#EFF6FF",iconColor:"#3B82F6",buttonVariant:"text",buttonColor:"primary",isActive:!1},{name:"Payout",description:"Advanced payroll processing",price:20,icon:jrn,bgColor:"#F9FAFB",iconColor:"#3B82F6",buttonVariant:"text",buttonColor:"primary",isActive:!1},{name:"Learn",description:"Training platform",price:40,icon:Drn,bgColor:"#F9FAFB",iconColor:"#3B82F6",buttonVariant:"text",buttonColor:"primary",isActive:!1}],qrn=e=>{var m,v;const{onTabChange:n}=e,[t,r]=V.useState("card"),[i,o]=V.useState(!1),[a,s]=V.useState(!1),[l,u]=V.useState({}),{isLoading:c}=ao(nh,{url:"subscription/sendmailtospoc",data:l},["send-mail-to-spoc",l],{enabled:a,onSuccess:()=>{console.log("API call successful"),s(!1)},onError:b=>{console.error("Error sending mail to SPOC:",b),s(!1)}}),d=b=>{o(!0),u({is_from:b}),s(!0)},f=()=>{o(!1)},{data:p}=ao(Sa,{url:bM,params:{}},"subsription-overview"),h=b=>{if(!(p!=null&&p.addOnProduct)||!(p!=null&&p.add_on_id))return!1;const x=p.addOnProduct.find(C=>C.product_name===b);return x?p.add_on_id.includes(String(x.product_id)):!1},g=or((m=p==null?void 0:p.planDetails)==null?void 0:m.plan_expiring_date).format("DD MMM, YYYY");return I.jsxs(ut,{children:[I.jsxs(ut,{className:"header-section",children:[I.jsxs(ut,{className:"header-top",children:[I.jsxs(ut,{className:"header-info",children:[I.jsx(mt,{variant:"h4",component:"h1",children:"Your Subscription"}),I.jsxs(mt,{variant:"body2",children:["Current Plan:"," ",I.jsx("span",{children:((v=p==null?void 0:p.planDetails)==null?void 0:v.current_plan)||"Enterprise"})," ","- Next billing: ",I.jsx("span",{children:g})]})]}),I.jsx(Ia,{variant:"contained",className:"upgrade-button",onClick:()=>d(1),disabled:c,children:"Upgrade your plan"})]}),I.jsxs(ut,{className:"view-options",children:[I.jsx(ut,{className:`view-card ${t==="card"?"active":""}`,onClick:()=>r("card"),children:I.jsx(mt,{variant:"body2",className:"view-link",children:"Card View"})}),I.jsx(ut,{className:`view-card ${t==="compare"?"active":""}`,onClick:()=>r("compare"),children:I.jsx(mt,{variant:"body2",className:"view-link",children:"Compare"})})]})]}),t==="card"&&I.jsx(Wrn,{overviewData:p}),t==="compare"&&I.jsx(Xrn,{}),I.jsxs(ut,{className:"addons-section",children:[I.jsx(mt,{variant:"h5",className:"addons-title",children:"Add-ons"}),I.jsx(mt,{variant:"body2",className:"addons-subtitle",children:"Enhance your plan with additional features"}),I.jsx(Ni,{container:!0,spacing:2,className:"addons-grid",children:Zrn.map(b=>{const x=b.icon,C=h(b.name);return I.jsx(Ni,{size:{xs:12,sm:6,md:4},children:I.jsxs(ny,{className:"addon-card",elevation:0,children:[C&&I.jsx(kx,{label:"Active",className:"addon-badge",size:"small"}),I.jsx(ut,{className:"addon-icon-container",sx:{backgroundColor:b.bgColor},children:I.jsx(x,{style:{width:28,height:28,color:b.iconColor}})}),I.jsx(mt,{variant:"h6",className:"addon-name",children:b.name}),I.jsx(mt,{variant:"body2",className:"addon-description",children:b.description}),I.jsx(ut,{className:"addon-footer",children:I.jsxs(ut,{className:"addon-price",children:[I.jsxs(mt,{variant:"h5",component:"span",className:"addon-price-amount",children:["₹",b.price]}),I.jsx(mt,{variant:"body2",component:"span",className:"addon-price-unit",children:"/mo"})]})})]})},b.name)})})]}),I.jsxs(ny,{className:"help-section",elevation:0,children:[I.jsxs(ut,{children:[I.jsx(mt,{variant:"h6",className:"help-title",children:"Need Help choosing the right plan?"}),I.jsx(mt,{variant:"body2",className:"help-text",children:"Our team is here to answer your questions"})]}),I.jsx(Ia,{variant:"contained",className:"contact-button",onClick:()=>d(3),disabled:c,children:"Contact Us"})]}),I.jsxs(oh,{open:i,onClose:f,maxWidth:"sm",fullWidth:!0,children:[I.jsxs(ah,{sx:{textAlign:"center",py:4},children:[I.jsx(mt,{variant:"h5",sx:{fontWeight:600,mb:2},children:"Thank you for trusting us! 🙌"}),I.jsx(mt,{variant:"body1",color:"text.secondary",sx:{mb:1},children:"Our team will connect with you shortly in exploring more capabilities of the Zimyo 🚀✨"})]}),I.jsx(rm,{sx:{justifyContent:"center",pb:3},children:I.jsx(Ia,{onClick:f,variant:"contained",children:"Okay"})})]})]})},Jrn=({label:e,icon:n})=>I.jsxs("div",{className:"flex justify-start items-center gap-2",children:[n&&I.jsx("span",{className:"text-2xl rounded p-1 bg-gray-100 text-gray-600",children:n}),I.jsx("span",{children:e})]}),VB=({children:e,className:n,title:t,icon:r})=>I.jsxs("div",{className:Tn("bg-white border rounded border-gray-200 rounded shadow-sm hover:shadow-md transition-shadow duration-200 p-2",n),children:[t&&I.jsx(_ze,{heading:I.jsx(Jrn,{label:t,icon:r})}),e]}),Krn="_page_cys8l_3",Qrn="_card_cys8l_10",ein="_card_body_cys8l_18",tin="_table_wrap_cys8l_23",nin="_card_action_header_cys8l_29",rin="_card_action_title_cys8l_38",iin="_wallet_card_cys8l_46",oin="_wallet_circle_top_cys8l_60",ain="_wallet_circle_bottom_cys8l_71",sin="_wallet_top_row_cys8l_82",lin="_wallet_label_cys8l_90",uin="_wallet_balance_caption_cys8l_106",cin="_wallet_balance_value_cys8l_113",din="_wallet_meta_row_cys8l_121",fin="_wallet_meta_text_cys8l_128",pin="_wallet_meta_value_cys8l_133",hin="_wallet_meta_sep_cys8l_138",gin="_wallet_health_row_cys8l_143",min="_wallet_health_label_cys8l_150",vin="_wallet_health_footer_cys8l_155",yin="_wallet_recharged_label_cys8l_162",bin="_wallet_recharge_section_cys8l_169",xin="_wallet_recharge_hint_cys8l_176",win="_wallet_recharge_hint_text_cys8l_184",Cin="_wallet_recharge_grid_cys8l_191",Sin="_wallet_recharge_item_cys8l_197",_in="_wallet_recharge_item_label_cys8l_205",Iin="_wallet_recharge_item_value_cys8l_211",Min="_module_list_cys8l_219",Tin="_module_row_cys8l_237",Ain="_module_row_header_cys8l_249",Ein="_module_row_left_cys8l_256",kin="_module_icon_cys8l_262",Oin="_module_name_row_cys8l_272",Din="_module_name_cys8l_272",Pin="_module_meta_cys8l_285",Rin="_module_row_right_cys8l_291",Nin="_module_credits_cys8l_296",zin="_module_credits_label_cys8l_302",Lin="_module_progress_labels_cys8l_307",Fin="_module_progress_text_cys8l_314",Bin="_module_progress_pct_cys8l_319",jin="_module_footer_row_cys8l_324",Vin="_module_footer_text_cys8l_330",$in="_module_footer_bold_cys8l_335",Gin="_module_footer_days_cys8l_340",Win="_module_list_footer_cys8l_346",Hin="_badge_plan_cys8l_358",Yin="_badge_addon_cys8l_372",Uin="_modal_content_cys8l_388",Xin="_modal_actions_cys8l_395",wn={page:Krn,card:Qrn,card_body:ein,table_wrap:tin,card_action_header:nin,card_action_title:rin,wallet_card:iin,wallet_circle_top:oin,wallet_circle_bottom:ain,wallet_top_row:sin,wallet_label:lin,wallet_balance_caption:uin,wallet_balance_value:cin,wallet_meta_row:din,wallet_meta_text:fin,wallet_meta_value:pin,wallet_meta_sep:hin,wallet_health_row:gin,wallet_health_label:min,wallet_health_footer:vin,wallet_recharged_label:yin,wallet_recharge_section:bin,wallet_recharge_hint:xin,wallet_recharge_hint_text:win,wallet_recharge_grid:Cin,wallet_recharge_item:Sin,wallet_recharge_item_label:_in,wallet_recharge_item_value:Iin,module_list:Min,module_row:Tin,module_row_header:Ain,module_row_left:Ein,module_icon:kin,module_name_row:Oin,module_name:Din,module_meta:Pin,module_row_right:Rin,module_credits:Nin,module_credits_label:zin,module_progress_labels:Lin,module_progress_text:Fin,module_progress_pct:Bin,module_footer_row:jin,module_footer_text:Vin,module_footer_bold:$in,module_footer_days:Gin,module_list_footer:Win,badge_plan:Hin,badge_addon:Yin,modal_content:Uin,modal_actions:Xin},qze={plan:{color:"#2563EB",bg:"#DBEAFE",icon:I.jsx(Dnn,{size:14})},pms:{color:"#7C3AED",bg:"#EDE9FE",icon:I.jsx(Ann,{size:14})},ats:{color:"#EA580C",bg:"#FFEDD5",icon:I.jsx(Rnn,{size:14})},lms:{color:"#059669",bg:"#D1FAE5",icon:I.jsx(Onn,{size:14})}},Zin=e=>{var n;return qze[e.type==="plan"?"plan":(n=e.addon_key)!=null?n:"pms"]},qin={total_balance:12450,total_monthly_burn:3650,currency:"INR",low_balance_threshold:5e3,last_recharged_at:"2026-03-01T00:00:00Z",modules:[{id:"plan",name:"Enterprise Plan",type:"plan",plan_tier:"enterprise",rate_per_employee:12,employee_count:200,monthly_charge:2400,allocated_credits:6e3,consumed_credits:1200,remaining_credits:4800,avg_daily_consumption:80,exhaustion_date:"2026-06-09"},{id:"pms",name:"Performance (PMS)",type:"addon",addon_key:"pms",rate_per_employee:4,employee_count:200,monthly_charge:800,allocated_credits:4e3,consumed_credits:800,remaining_credits:3200,avg_daily_consumption:27,exhaustion_date:"2026-07-03"},{id:"ats",name:"Applicant Tracking (ATS)",type:"addon",addon_key:"ats",rate_per_employee:3,employee_count:150,monthly_charge:450,allocated_credits:2450,consumed_credits:450,remaining_credits:2e3,avg_daily_consumption:15,exhaustion_date:"2026-07-17"}]},Jin={categories:["Apr 8","Apr 9","Apr 10","Apr 11","Apr 12","Apr 13","Apr 14"],series:[{name:"Enterprise Plan",data:[80,82,79,81,80,80,78],color:"#2563EB",smooth:!0},{name:"Performance (PMS)",data:[27,28,26,27,28,27,26],color:"#7C3AED",smooth:!0},{name:"Applicant Tracking (ATS)",data:[15,14,16,15,15,14,15],color:"#EA580C",smooth:!0}]},Kin={totalCounts:7,data:[{id:1,date:"2026-04-14",type:"DEBIT",module_name:"Enterprise Plan",description:"Daily subscription — Enterprise Plan",amount:80,balance_after:12450},{id:2,date:"2026-04-14",type:"DEBIT",module_name:"Performance (PMS)",description:"Daily subscription — Performance (PMS)",amount:27,balance_after:12530},{id:3,date:"2026-04-14",type:"DEBIT",module_name:"Applicant Tracking (ATS)",description:"Daily subscription — Applicant Tracking (ATS)",amount:15,balance_after:12557},{id:4,date:"2026-04-13",type:"DEBIT",module_name:"Enterprise Plan",description:"Daily subscription — Enterprise Plan",amount:80,balance_after:12572},{id:5,date:"2026-04-13",type:"DEBIT",module_name:"Performance (PMS)",description:"Daily subscription — Performance (PMS)",amount:28,balance_after:12652},{id:6,date:"2026-04-13",type:"DEBIT",module_name:"Applicant Tracking (ATS)",description:"Daily subscription — Applicant Tracking (ATS)",amount:14,balance_after:12680},{id:7,date:"2026-04-01",type:"CREDIT",module_name:void 0,description:"Wallet recharge",amount:5e3,balance_after:12694}]},Qin=()=>{var W,Y,Z,K,q,re,oe,J;const e=Dc(X=>{var te;return(te=X.session.user)==null?void 0:te.org_id}),n=hM(),t=Uze(),[r,i]=V.useState({page:0,perPage:20}),[o,a]=V.useState(""),[s,l]=V.useState(!1),[u,c]=V.useState(""),d=(X,te)=>i(ne=>ue(G({},ne),{[X]:te})),{data:f}=ao(Sa,{url:`${k$e}/${e}`,params:{}},`walletBalance-${e}`,{enabled:!!e}),{data:p}=ao(Sa,{url:`${O$e}/${e}`,params:{}},`walletConsumption-${e}`,{enabled:!!e}),{data:h}=ao(Sa,{url:`${N$e}/${e}`,params:{}},`walletLedgerProduct-${e}`,{enabled:!!e}),g=Array.isArray(h==null?void 0:h.data)?h.data:[];V.useEffect(()=>{g.length&&!o&&a(g[0].pool_id)},[g]);const{data:m,isFetching:v}=ao(Sa,{url:`${D$e}/${e}`,params:G({page:r.page,limit:r.perPage},o?{pool_id:o}:{})},["walletTransactions",e,r.page,r.perPage,o].toString(),{enabled:!!e}),{handleSubmit:b,isLoading:x}=Mc({url:R$e,successCallback:()=>{l(!1),c(""),n.invalidateQueries(`walletBalance-${e}`),n.invalidateQueries("walletTransactions"),n.invalidateQueries(`walletConsumption-${e}`)}}),C=f!=null?f:qin,w=p!=null?p:Jin,S=m!=null?m:Kin,_=(W=C==null?void 0:C.modules)!=null?W:[],M=V.useMemo(()=>_.reduce((X,te)=>X+te.avg_daily_consumption,0),[_]),k=M>0?Math.floor((C==null?void 0:C.total_balance)/M):null,E=V.useMemo(()=>_.length?_.reduce((X,te)=>or(te.exhaustion_date).isBefore(or(X.exhaustion_date))?te:X):null,[_]),O=C?Math.min(100,Math.round(C.total_balance/(C.low_balance_threshold*4)*100)):0,A=O<25?"#ef4444":O<50?"#f97316":"#22c55e",P=Math.ceil(M*30),N=Math.ceil(M*60),R=Math.ceil(M*90),{alertSeverity:z,alertMessage:F}=V.useMemo(()=>{const X=_.filter(ne=>{const ee=or(ne.exhaustion_date).diff(or(),"day");return(ne.allocated_credits>0?ne.remaining_credits/ne.allocated_credits*100:100)<20||ee<=7}),te=_.filter(ne=>{const ee=or(ne.exhaustion_date).diff(or(),"day"),se=ne.allocated_credits>0?ne.remaining_credits/ne.allocated_credits*100:100;return!X.includes(ne)&&(se<40||ee<=15)});return X.length?{alertSeverity:"error",alertMessage:`Critical: ${X.map(ne=>ne.name).join(", ")} ${X.length>1?"are":"is"} running critically low on credits. Recharge immediately to avoid service disruption.`}:te.length?{alertSeverity:"warning",alertMessage:`Warning: ${te.map(ne=>ne.name).join(", ")} ${te.length>1?"are":"is"} nearing credit exhaustion. Consider recharging soon.`}:{alertSeverity:null,alertMessage:""}},[_]),B=X=>` ${(X!=null?X:0).toLocaleString("en-IN",{minimumFractionDigits:2,maximumFractionDigits:2})}`,L=X=>` ${(X!=null?X:0).toLocaleString("en-IN")}`,j=[{isVisible:!0,id:"type",accessorKey:"type",header:"",size:48,cell:X=>{var ne,ee;const te=((ee=(ne=X==null?void 0:X.row)==null?void 0:ne.original)==null?void 0:ee.type)==="CREDIT";return I.jsx(ut,{sx:{width:32,height:32,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,bgcolor:te?"#dcfce7":"#fee2e2",color:te?"#16a34a":"#dc2626"},children:te?I.jsx(Enn,{size:15}):I.jsx(knn,{size:15})})}},{isVisible:!0,id:"description",accessorKey:"description",header:"Description",cell:X=>{var ne;const te=(ne=X==null?void 0:X.row)==null?void 0:ne.original;return I.jsx(ut,{children:I.jsx(mt,{variant:"body2",sx:{fontWeight:500,lineHeight:1.3},children:te==null?void 0:te.description})})}},{isVisible:!0,id:"date",accessorKey:"date",header:"Date",cell:X=>{var te,ne;return I.jsx(mt,{variant:"body2",color:"text.secondary",children:or((ne=(te=X==null?void 0:X.row)==null?void 0:te.original)==null?void 0:ne.date).format("DD MMM YYYY")})}},{isVisible:!0,id:"module_name",accessorKey:"module_name",header:"Module",size:160,cell:X=>{var ee,se;const te=(se=(ee=X==null?void 0:X.row)==null?void 0:ee.original)==null?void 0:se.module_name;if(!te)return I.jsx(mt,{variant:"caption",color:"text.disabled",children:"—"});const ne=!te.toLowerCase().includes("plan");return I.jsx("span",{className:ne?wn.badge_addon:wn.badge_plan,children:te})}},{isVisible:!0,id:"amount",accessorKey:"amount",header:"Amount",cell:X=>{var ee,se;const te=(ee=X==null?void 0:X.row)==null?void 0:ee.original,ne=(te==null?void 0:te.type)==="CREDIT";return I.jsxs(mt,{variant:"body2",sx:{fontWeight:600,color:ne?"#16a34a":"#dc2626"},children:[ne?"+":"−"," ",((se=te==null?void 0:te.amount)!=null?se:0).toLocaleString("en-IN")]})}},{isVisible:!0,id:"balance_after",accessorKey:"balance_after",header:"Balance After",cell:X=>{var te,ne,ee;return I.jsx(mt,{variant:"body2",color:"text.secondary",children:((ee=(ne=(te=X==null?void 0:X.row)==null?void 0:te.original)==null?void 0:ne.balance_after)!=null?ee:0).toLocaleString("en-IN")})}}];return I.jsxs(ut,{className:wn.page,children:[z&&I.jsx(EP,{severity:z,variant:"filled",sx:{borderRadius:1,mb:2},children:F}),I.jsxs(Cr,{container:!0,spacing:2,alignItems:"stretch",sx:{mb:2},children:[I.jsx(Cr,{item:!0,xs:12,md:5,children:I.jsxs(ut,{className:wn.wallet_card,children:[I.jsx(ut,{className:wn.wallet_circle_top}),I.jsx(ut,{className:wn.wallet_circle_bottom}),I.jsx(ut,{className:wn.wallet_top_row,children:I.jsx(mt,{className:wn.wallet_label,children:"Zimyo Wallet"})}),I.jsxs(ut,{children:[I.jsx(mt,{className:wn.wallet_balance_caption,children:"Total Available Balance"}),I.jsx(mt,{className:wn.wallet_balance_value,children:B((Y=C==null?void 0:C.total_balance)!=null?Y:0)}),I.jsxs(ut,{className:wn.wallet_meta_row,children:[I.jsxs(mt,{className:wn.wallet_meta_text,children:["Monthly burn:"," ",I.jsxs("span",{className:wn.wallet_meta_value,children:[C==null?void 0:C.currency," ",L((Z=C==null?void 0:C.total_monthly_burn)!=null?Z:0)]})]}),I.jsx(mt,{className:wn.wallet_meta_sep,children:"·"}),I.jsxs(mt,{className:wn.wallet_meta_text,children:[I.jsx("span",{className:wn.wallet_meta_value,children:_.length})," ","active module",_.length!==1?"s":""]})]})]}),I.jsxs(ut,{children:[I.jsxs(ut,{className:wn.wallet_health_row,children:[I.jsx(mt,{className:wn.wallet_health_label,children:"Balance health"}),I.jsxs(mt,{className:wn.wallet_health_label,children:["Threshold: ",L((K=C==null?void 0:C.low_balance_threshold)!=null?K:0)]})]}),I.jsx(Sj,{variant:"determinate",value:O,sx:{height:6,borderRadius:3,bgcolor:"rgba(255,255,255,0.15)","& .MuiLinearProgress-bar":{bgcolor:A,borderRadius:3}}}),I.jsxs(ut,{className:wn.wallet_health_footer,children:[(C==null?void 0:C.last_recharged_at)&&I.jsxs(mt,{className:wn.wallet_recharged_label,children:["Last recharged: ",or(C.last_recharged_at).format("DD MMM YYYY")]}),k!==null&&I.jsxs(mt,{className:wn.wallet_recharged_label,children:["~",k," days remaining"]})]})]}),I.jsxs(ut,{className:wn.wallet_recharge_section,children:[I.jsxs(ut,{className:wn.wallet_recharge_hint,children:[I.jsx(Nnn,{size:11}),I.jsx(mt,{className:wn.wallet_recharge_hint_text,children:"Suggested Recharge"})]}),I.jsx(ut,{className:wn.wallet_recharge_grid,children:[{label:"30d",value:P},{label:"60d",value:N},{label:"90d",value:R}].map(({label:X,value:te})=>I.jsxs(ut,{className:wn.wallet_recharge_item,children:[I.jsx(mt,{className:wn.wallet_recharge_item_label,children:X}),I.jsx(mt,{className:wn.wallet_recharge_item_value,children:L(te)})]},X))})]})]})}),I.jsx(Cr,{item:!0,xs:12,md:7,children:I.jsxs(VB,{className:wn.card,children:[I.jsx(ut,{className:wn.card_action_header,children:I.jsx(mt,{className:wn.card_action_title,children:"Plan & Add-on Credit Allocation"})}),I.jsxs(ut,{className:wn.module_list,children:[_.map(X=>{var he;const te=(he=Zin(X))!=null?he:qze.pms,ne=X.allocated_credits>0?Math.round(X.consumed_credits/X.allocated_credits*100):0,ee=ne>=75?"#ef4444":ne>=50?"#f59e0b":"#22c55e",se=or(X.exhaustion_date).diff(or(),"day"),ce=se<=15;return I.jsxs(ut,{className:wn.module_row,children:[I.jsxs(ut,{className:wn.module_row_header,children:[I.jsxs(ut,{className:wn.module_row_left,children:[I.jsx(ut,{className:wn.module_icon,style:{color:te.color,backgroundColor:te.bg},children:te.icon}),I.jsxs(ut,{children:[I.jsxs(ut,{className:wn.module_name_row,children:[I.jsx(mt,{className:wn.module_name,children:X.name}),I.jsx("span",{className:X.type==="plan"?wn.badge_plan:wn.badge_addon,children:X.type})]}),I.jsxs(mt,{className:wn.module_meta,children:[C==null?void 0:C.currency," ",X.rate_per_employee,"/emp · ",X.employee_count," emp · ",C==null?void 0:C.currency," ",L(X.monthly_charge),"/mo"]})]})]}),I.jsxs(ut,{className:wn.module_row_right,children:[I.jsx(mt,{className:wn.module_credits,children:L(X.remaining_credits)}),I.jsx(mt,{className:wn.module_credits_label,children:"remaining"})]})]}),I.jsxs(ut,{children:[I.jsxs(ut,{className:wn.module_progress_labels,children:[I.jsxs(mt,{className:wn.module_progress_text,children:[L(X.consumed_credits)," consumed of ",L(X.allocated_credits)," allocated"]}),I.jsxs(mt,{className:wn.module_progress_pct,style:{color:ne>=75?"#ef4444":"#6B7280"},children:[ne,"%"]})]}),I.jsx(Sj,{variant:"determinate",value:ne,sx:{height:5,borderRadius:3,bgcolor:"#F1F5F9","& .MuiLinearProgress-bar":{bgcolor:ee,borderRadius:3}}})]}),I.jsxs(ut,{className:wn.module_footer_row,children:[I.jsxs(mt,{className:wn.module_footer_text,children:["Daily burn:"," ",I.jsxs("span",{className:wn.module_footer_bold,children:[L(X.avg_daily_consumption),"/day"]})]}),I.jsxs(mt,{className:wn.module_footer_text,style:{color:ce?"#ef4444":"#6B7280"},children:["Runs out ",or(X.exhaustion_date).format("DD MMM YYYY"),I.jsxs("span",{className:wn.module_footer_days,children:[" · ",se,"d"]})]})]})]},X.id)}),E&&I.jsxs(ut,{className:wn.module_list_footer,children:[I.jsxs(mt,{className:wn.module_footer_text,children:["Earliest exhaustion:"," ",I.jsx("span",{className:wn.module_footer_bold,children:E.name})]}),I.jsxs(mt,{className:wn.module_footer_text,children:["Total daily burn:"," ",I.jsxs("span",{className:wn.module_footer_bold,children:[L(M),"/day"]})]})]})]})]})})]}),I.jsx(ut,{sx:{mb:2},children:I.jsxs(VB,{className:wn.card,children:[I.jsx(ut,{className:wn.card_action_header,children:I.jsx(mt,{className:wn.card_action_title,children:"Daily Consumption Trend — By Module"})}),I.jsx("div",{className:wn.card_body,children:I.jsx(Cen,{categories:(q=w==null?void 0:w.categories)!=null?q:[],series:(re=w==null?void 0:w.series)!=null?re:[],height:"280px",width:"100%",theme:"light",noDataText:"No consumption data available"})})]})}),I.jsxs(VB,{className:wn.card,children:[I.jsxs(ut,{className:wn.card_action_header,children:[I.jsx(mt,{className:wn.card_action_title,children:"Transaction History"}),I.jsx(sh,{title:"Download Transactions",children:I.jsx(_a,{size:"small",onClick:()=>t(`${P$e}/${e}`,{org_id:e,is_download:1,export:1},{},"wallet_transactions.xlsx","get"),children:I.jsx(ATe,{size:18})})})]}),I.jsxs(V.Fragment,{children:[g.length>0&&I.jsx(w2e,{value:o,onChange:(X,te)=>{a(te),i(ne=>ue(G({},ne),{page:0}))},variant:"scrollable",scrollButtons:"auto",sx:{borderBottom:1,borderColor:"divider",mb:1},children:g.map(X=>I.jsx(p2e,{label:X.display_name,value:X.pool_id,sx:{textTransform:"none",fontSize:13}},X.pool_id))}),I.jsx(ut,{className:wn.table_wrap,children:I.jsx(jy,{columns:j,data:(oe=S==null?void 0:S.data)!=null?oe:[],styling:{stickyHeader:!0},loading:{loading:v&&!0},serverMode:!0,pagination:{enabled:!0,pageSize:r.perPage,currentPage:r.page,totalCount:(J=S==null?void 0:S.totalCounts)!=null?J:0,onPageChange:X=>d("page",X),onPageSizeChange:X=>d("perPage",X),pageSizeOptions:[20,30,50,100]}})})]})]}),s&&I.jsx(Lke,{open:s,title:"Add Payment Reference",onClose:()=>{l(!1),c("")},children:I.jsxs(ut,{className:wn.modal_content,children:[I.jsx(Fke,{placeholder:"Enter payment reference number",value:u,onChange:X=>c(X.target.value)}),I.jsxs(ut,{className:wn.modal_actions,children:[I.jsx(Ia,{variant:"outlined",onClick:()=>{l(!1),c("")},children:"Cancel"}),I.jsx(Ia,{variant:"contained",loading:x,disabled:!u.trim(),onClick:()=>b({reference_number:u,org_id:e}),children:"Add Credit"})]})]})})]})};exports.BillingSubscription=qen;exports.CustomerInvoices=p6t;exports.Ledger=gtn;exports.Mail=utn;exports.ManageProvider=Htt;exports.NewOverview=Irn;exports.PlansOverview=Oen;exports.ProductUpdates=_nn;exports.ServiceDeskLogs=dtn;exports.SubscriptionConsumption=Lzt;exports.SubscriptionOverview=h9t;exports.SubscriptionPaymentMethod=k9t;exports.SubscriptionPlans=Fen;exports.SubscriptionPricing=qrn;exports.SubscriptionWallet=Zen;exports.TempPayment=mtn;exports.UpcomingInvoices=ctn;exports.WalletDashboard=Qin;
package/dist/main.js CHANGED
@@ -150861,6 +150861,7 @@ const Krn = () => {
150861
150861
  }, Qin = {
150862
150862
  total_balance: 12450,
150863
150863
  total_monthly_burn: 3650,
150864
+ currency: "INR",
150864
150865
  low_balance_threshold: 5e3,
150865
150866
  last_recharged_at: "2026-03-01T00:00:00Z",
150866
150867
  modules: [
@@ -151086,7 +151087,11 @@ const Krn = () => {
151086
151087
  /* @__PURE__ */ I.jsxs(vt, { className: Sn.wallet_meta_text, children: [
151087
151088
  "Monthly burn:",
151088
151089
  " ",
151089
- /* @__PURE__ */ I.jsx("span", { className: Sn.wallet_meta_value, children: L((X = C == null ? void 0 : C.total_monthly_burn) != null ? X : 0) })
151090
+ /* @__PURE__ */ I.jsxs("span", { className: Sn.wallet_meta_value, children: [
151091
+ C == null ? void 0 : C.currency,
151092
+ " ",
151093
+ L((X = C == null ? void 0 : C.total_monthly_burn) != null ? X : 0)
151094
+ ] })
151090
151095
  ] }),
151091
151096
  /* @__PURE__ */ I.jsx(vt, { className: Sn.wallet_meta_sep, children: "·" }),
151092
151097
  /* @__PURE__ */ I.jsxs(vt, { className: Sn.wallet_meta_text, children: [
@@ -151168,10 +151173,14 @@ const Krn = () => {
151168
151173
  /* @__PURE__ */ I.jsx("span", { className: U.type === "plan" ? Sn.badge_plan : Sn.badge_addon, children: U.type })
151169
151174
  ] }),
151170
151175
  /* @__PURE__ */ I.jsxs(vt, { className: Sn.module_meta, children: [
151176
+ C == null ? void 0 : C.currency,
151177
+ " ",
151171
151178
  U.rate_per_employee,
151172
151179
  "/emp · ",
151173
151180
  U.employee_count,
151174
151181
  " emp · ",
151182
+ C == null ? void 0 : C.currency,
151183
+ " ",
151175
151184
  L(U.monthly_charge),
151176
151185
  "/mo"
151177
151186
  ] })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zimyo/manage",
3
3
  "private": false,
4
- "version": "0.4.12",
4
+ "version": "0.4.13",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"