PageSourceSearch

https://app.slaydigital.ai/static/react/5674.ef7523d0f180fd5cbf37.js

js slaydigital.ai collected 2026-10-05 14:39:45 UTC 37,296 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkStammer_ai=self.webpackChunkStammer_ai||[]).push([[5674],{25674:function(e,n,i){i.d(n,{A:function(){return M}});var r=i(78685),t=i(78166),o=i(39675),l=i(19124),a=i(2057),s=i(16657),c=i(36625),d=i(21762),u=i(69179),S=i(88152),f=i(95516),A=i(65540),x=i(21120),I=i(47838),_=i(88360),h=i(25277),p=i(60427),v=i(55431),g=i(85355),b=i(87722),y=i(31547),m=i(10838),E=i(63809),L=i(17577),T=i(36206),R=i(53630),P=i(14428),N=i(26400),j=i(38588),C=i(73349),D=i(73433);var G=function(){var e=(0,s.Bd)().t;return(0,r.jsx)(t.ZpM,{sx:{width:385,borderRadius:3,boxShadow:3,position:"relative",overflow:"visible"},children:(0,r.jsxs)(t.Wux,{sx:{p:"1.5rem"},children:[(0,r.jsx)(t.azJ,{display:"flex",justifyContent:"center",children:(0,r.jsx)(t.EAD,{variant:"text",width:100,height:30})}),(0,r.jsx)(t.azJ,{display:"flex",justifyContent:"center",children:(0,r.jsx)(t.EAD,{variant:"text",width:150,height:60,sx:{my:1}})}),(0,r.jsx)(t.azJ,{display:"flex",justifyContent:"center",children:(0,r.jsx)(t.EAD,{variant:"text",width:150,height:25})}),(0,r.jsx)(t.azJ,{display:"flex",justifyContent:"center",children:(0,r.jsx)(t.EAD,{variant:"text",width:200,height:25})}),(0,r.jsx)(t.cGx,{sx:{my:2}}),(0,r.jsx)(t.EAD,{variant:"text",width:150,height:25}),(0,r.jsx)(t.EAD,{variant:"text",width:180,height:25}),(0,r.jsx)(t.EAD,{variant:"text",width:280,height:25}),(0,r.jsx)(t.EAD,{variant:"text",width:250,height:25}),(0,r.jsx)(t.cGx,{sx:{my:2}}),(0,r.jsx)(t.EAD,{variant:"text",width:150,height:30}),(0,r.jsx)(t.vu3,{size:"small",label:(0,r.jsx)(t.EAD,{variant:"text",width:80,height:20}),sx:{mb:2}}),(0,r.jsx)(t.$nd,{variant:"contained",fullWidth:!0,endIcon:(0,r.jsx)(D.j0,{}),sx:{borderRadius:2,fontWeight:700},disabled:!0,children:e("DISPLAY_STRINGS.SUBSCRIBE_NOW")})]})})},Y="scheduled_for_cancellation",O="cancelled",w=function(e){var n=new Set;return(null==e?void 0:e.filter((function(e){var i=e.trim().toLocaleLowerCase();return!(!i||n.has(i))&&(n.add(i),!0)})))||[]},U=function(e){var n=e.agent;return(0,r.jsxs)(y.A,{sx:{backgroundColor:"primary.light",borderRadius:2,p:"10px 16px"},children:[(0,r.jsxs)(y.A,{sx:{display:"flex",alignItems:"center"},children:[(0,r.jsx)(p.A,{color:"primary",sx:{fontSize:20,mr:1}}),(0,r.jsx)(m.A,{fontSize:14,variant:"subtitle1",sx:{fontWeight:700},children:n.name}),(0,r.jsxs)(m.A,{variant:"body2",fontSize:10,sx:{color:"text.secondary",ml:1},children:["v",n.version]})]}),(0,r.jsx)(m.A,{fontSize:12,variant:"body2",color:"text.secondary",children:n.description})]})},B=function(e){var n=e.icon,i=e.feature;return(0,r.jsxs)(y.A,{display:"flex",alignItems:"center",gap:1,mb:1,children:[n,(0,r.jsx)(m.A,{variant:"body1",fontSize:14,children:i})]})},K={free:0,nwl_free:0,basic:1,exclusive_basic:1,nwl_starter:1,pro:2,exclusive_pro:2,nwl_business:2,premium:3,exclusive_premium:3,enterprise:4,nwl_enterprise:4,enterprise_2:5};var z=function(e){var n,i,t,D,z,W,k,F,M=e.plan,H=e.packageType,V=e.showLegacyLabel,J=void 0!==V&&V,q=e.billingPeriod,X=e.refetchPackages,$=e.billingPeriodLabels,Q=e.isMostPopular,Z=void 0!==Q&&Q,ee=e.currencyUnit,ne=void 0===ee?"$":ee,ie=e.subscribedPackage,re=e.subscribedBillingCycle,te=e.isLoading,oe=void 0!==te&&te,le=e.subscriptionStatus,ae=e.showProfitCalculation,se=void 0!==ae&&ae,ce=(0,a.useState)(!1),de=ce[0],ue=ce[1],Se=(0,a.useState)(!1),fe=Se[0],Ae=Se[1],xe=(0,a.useState)(""),Ie=xe[0],_e=xe[1],he=(0,a.useState)(!1),pe=he[0],ve=he[1],ge=K[null==ie?void 0:ie.planKey]>K[M.planKey],be=(0,o.Jd)(),ye=be.userDetails,me=be.isLoading,Ee=(0,o.fL)().theme,Le=(0,s.Bd)().t,Te="nwl_free"===M.planKey,Re=M.subscriptionPrices.filter((function(e){return"legacy"===H?!e.isActive&&!e.isPublic&&e.price:e.isPublic&&e.isActive&&(e.price||Te)})),Pe=Array.from(Re.reduce((function(e,n){return e.has(n.billingPeriod)||e.set(n.billingPeriod,n),e}),new Map).values()),Ne=function(){return Pe.find((function(e){return e.billingPeriod===q}))||null},je=Boolean(M.calendarUrl),Ce=!(ie&&"nwl_free"!==ie.planKey||(null==ie?void 0:ie.hasPaidBefore)),De=!je&&!Te&&!(Ce&&M.freeTrialDays>0)&&Boolean(null==ie?void 0:ie.planKey),Ge=function(){var e=Ne();if(M.calendarUrl||(null==e?void 0:e.calendarUrl)){var n=M.calendarUrl||(null==e?void 0:e.calendarUrl);return window.open(n,"_blank"),void ue(!1)}if(!(null==e?void 0:e.packageLink))return(0,l.Sx)("",Le("DISPLAY_STRINGS.INVALID_PACKAGE_LINK"),"error"),ue(!1),void ve(!1);var i=e.packageLink.replace(d.n.WHITE_LABEL.STRIPE_AGEMCY_SESSION,d.n.WHITE_LABEL.STRIPE_MANAGE_SUBSCRIPTION);ge&&(i+="&downgrade_reason=".concat(Ie)),(new S.b).initiateCheckout(),window.open(i,"_self"),ue(!1),ve(!1)};if(oe)return(0,r.jsx)(G,{});var Ye=function(){var e;
1if((null==ie?void 0:ie.planKey)&&ie.id===M.id&&re===q)return parseFloat(ie.price)||0;var n=null===(e=Pe.find((function(e){return e.billingPeriod===q})))||void 0===e?void 0:e.price;return parseFloat(n||"0")||0}(),Oe=function(e,n){var i=e&&{free:0,basic:10,pro:20,premium:100,special:500,enterprise:1e3,enterprise_2:2e3,nwl_enterprise:500}[e]||20,r=500*i-n;return{numClients:i,clientRevenue:500,planPrice:n,monthlyProfit:r,yearlyProfit:12*r}}(M.planKey,Ye),we=M.name?M.name.replace(/^nwl\s+/i,"").replace(/^nw\s+/i,"").trim():M.name,Ue=J?Le("DISPLAY_STRINGS.PLAN_WITH_LEGACY_LABEL",{plan:we}):we,Be=w(M.features),Ke=w(M.unavailableFeatures),ze=(0,r.jsx)(x.A,{sx:{color:"success.main",fontSize:20}}),We=(0,r.jsx)(I.A,{sx:{color:"error.main",fontSize:20}});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(E.A,{sx:{width:385,outline:Z?"2px solid ".concat(Ee.palette.primary.main):"none",outlineOffset:0,position:"relative",overflow:"visible"},children:[Z&&(0,r.jsx)(y.A,{sx:{position:"absolute",top:-10,left:"50%",transform:"translateX(-50%)",zIndex:1},children:(0,r.jsx)(L.A,{size:"small",icon:(0,r.jsx)(h.A,{fontSize:"small",color:"inherit"}),label:Le("DISPLAY_STRINGS.MOST_POPULAR"),sx:{backgroundColor:"primary.main",color:"text.light",borderRadius:2}})}),(0,r.jsxs)(T.A,{sx:{p:"1.5rem"},children:[(0,r.jsx)(m.A,{variant:"h4",component:"h2",color:"primary",align:"center",fontSize:20,sx:{fontWeight:700,mt:1.5},children:Ue}),(0,r.jsx)(m.A,{variant:"h4",component:"h2",align:"center",fontSize:15,sx:{fontWeight:300,my:.7,color:"grey.700"},children:"nwl_free"===M.planKey?Le("DISPLAY_STRINGS.PLAN_FREE"):"nwl_starter"===M.planKey?Le("DISPLAY_STRINGS.PLAN_STARTER"):"nwl_business"===M.planKey?"business":"nwl_enterprise"===M.planKey?Le("DISPLAY_STRINGS.PLAN_ENTERPRISE"):M.planKey}),(0,r.jsxs)(m.A,{variant:"h3",component:"div",fontSize:30,align:"center",sx:{fontWeight:700,mb:2},children:[M.calendarUrl?"Custom":(0,r.jsxs)(r.Fragment,{children:[ne,Ye.toLocaleString(),(0,r.jsxs)(m.A,{component:"span",variant:"body1",fontSize:18,children:["/",$[q]]})]}),Ce&&M.freeTrialDays>0&&(0,r.jsx)(m.A,{component:"div",color:"primary",variant:"body1",fontSize:14,children:Le("DISPLAY_STRINGS.DAYS_FREE_TRIAL",{count:M.freeTrialDays})}),!!M.isOneTimePaymentEnabled&&M.oneTimePaymentAmount&&(0,r.jsxs)(m.A,{component:"div",variant:"body1",fontSize:14,color:"text.secondary",children:["+ ",ne,null===(n=M.oneTimePaymentAmount)||void 0===n?void 0:n.toLocaleString()," ",M.oneTimePaymentDescription]}),!!M.isVatEnabled&&M.vatPercentage&&(0,r.jsxs)(m.A,{component:"div",variant:"body1",fontSize:14,color:"text.secondary",children:["+"," ",Le("DISPLAY_STRINGS.VAT_PERCENTAGE_LABEL",{percent:M.vatPercentage})]})]}),!!M.description&&(0,r.jsx)(m.A,{variant:"body1",fontSize:14,sx:{mb:1.5,color:"text.secondary"},align:"center",children:M.description}),se&&(null==ye?void 0:ye.isAgencyOwner)&&!me&&null!=M.planKey&&(0,r.jsxs)(y.A,{sx:{backgroundColor:"#dcfce7",borderRadius:2,p:2,mb:2,border:"1px solid #86efac"},children:[(0,r.jsx)(m.A,{variant:"body2",fontSize:12,align:"center",sx:{fontWeight:600,color:"#166534",textTransform:"uppercase",letterSpacing:"0.5px",mb:1},children:Le("DISPLAY_STRINGS.YOUR_POTENTIAL_MONTHLY_PROFIT")}),"nwl_free"===M.planKey?(0,r.jsxs)(y.A,{sx:{display:"flex",flexDirection:"column",gap:.5},children:[(0,r.jsx)(m.A,{variant:"body2",fontSize:13,align:"center",sx:{fontWeight:600,color:"#15803d"},children:"Starts at $0 investment"}),(0,r.jsx)(m.A,{variant:"body2",fontSize:12,align:"center",sx:{color:"#166534"},children:"Use this plan to test demand before scaling"}),(0,r.jsx)(m.A,{variant:"body2",fontSize:12,align:"center",sx:{color:"#166534"},children:"Upgrade to unlock full profit potential"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(m.A,{variant:"h3",fontSize:32,align:"center",sx:{fontWeight:700,color:"#15803d",mb:.5},children:[ne,Oe.monthlyProfit.toLocaleString()]}),(0,r.jsx)(m.A,{variant:"body2",fontSize:14,align:"center",sx:{fontWeight:600,color:"#15803d",mb:.5},children:Le("DISPLAY_STRINGS.IN_PURE_PROFIT_PER_MONTH")}),(0,r.jsxs)(m.A,{variant:"body2",fontSize:12,align:"center",sx:{color:"#166534",mb:1}
1,children:[ne,Oe.yearlyProfit.toLocaleString(),Le("DISPLAY_STRINGS.YEAR_PROFIT_LINE")]}),(0,r.jsx)(m.A,{variant:"body2",fontSize:12,align:"center",sx:{color:"#166534"},children:Le("DISPLAY_STRINGS.PROFIT_CALCULATION_FORMULA",{clients:Oe.numClients,currency:ne,clientRevenue:Oe.clientRevenue,planPrice:Oe.planPrice.toLocaleString(),monthlyProfit:Oe.monthlyProfit.toLocaleString()})})]})]}),(M.isChatAgentsEnabled||M.isVoiceAgentsEnabled)&&(0,r.jsx)(R.A,{sx:{my:1.5}}),(0,r.jsx)(P.A,{container:!0,children:(0,r.jsxs)(P.A,{size:12,children:[M.isChatAgentsEnabled&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(B,{icon:(0,r.jsx)(p.A,{color:"primary",sx:{fontSize:20}}),feature:M.calendarUrl?"Custom ".concat(Le("DISPLAY_STRINGS.CHAT_AGENTS_PLURAL")):"".concat(null===(i=M.chatbots)||void 0===i?void 0:i.toLocaleString()," ").concat(M.chatbots>1?Le("DISPLAY_STRINGS.CHAT_AGENTS_PLURAL"):Le("DISPLAY_STRINGS.CHAT_AGENT_SINGULAR"))}),(0,r.jsx)(B,{icon:(0,r.jsx)(v.A,{color:"primary",sx:{fontSize:20}}),feature:M.calendarUrl?"Custom ".concat(Le("DISPLAY_STRINGS.CHARACTERS")):"".concat(null===(t=M.characterCount)||void 0===t?void 0:t.toLocaleString()," ").concat(Le("DISPLAY_STRINGS.CHARACTERS"))})]}),M.isVoiceAgentsEnabled&&(0,r.jsx)(B,{icon:(0,r.jsx)(_.A,{color:"primary",sx:{fontSize:20}}),feature:M.calendarUrl?"Custom ".concat(Le("DISPLAY_STRINGS.VOICE_AGENTS_PLURAL")):"".concat(null===(D=M.voiceAgents)||void 0===D?void 0:D.toLocaleString()," ").concat(M.voiceAgents>1?Le("DISPLAY_STRINGS.VOICE_AGENTS_PLURAL"):Le("DISPLAY_STRINGS.VOICE_AGENT_SINGULAR"))})]})}),(0,r.jsx)(R.A,{sx:{my:1.5}}),(0,r.jsx)(P.A,{container:!0,children:(0,r.jsxs)(P.A,{size:12,children:[M.includedMessages>0&&(0,r.jsx)(B,{icon:ze,feature:"".concat(null===(z=M.includedMessages)||void 0===z?void 0:z.toLocaleString()," ").concat(Le("DISPLAY_STRINGS.MESSAGES")).concat(M.isComplimentaryCreditsRecurring?" "+Le("DISPLAY_STRINGS.EVERY_MONTH"):"")}),Be.map((function(e){return(0,r.jsx)(B,{icon:ze,feature:e},e)})),!!Ke.length&&(0,r.jsx)(y.A,{mt:1,children:Ke.map((function(e){return(0,r.jsx)(B,{icon:We,feature:e},e)}))})]})}),(0,r.jsx)(R.A,{sx:{my:1.5}}),!!(null===(W=M.includedAIAgents)||void 0===W?void 0:W.length)&&(0,r.jsxs)(y.A,{marginBottom:2,children:[(0,r.jsxs)(y.A,{display:"flex",alignItems:"center",gap:1,mb:1,children:[(0,r.jsx)(A.A,{color:"primary",sx:{fontSize:20}}),(0,r.jsx)(m.A,{fontSize:14,variant:"h6",fontWeight:500,children:Le("DISPLAY_STRINGS.INCLUDED_CHAT_AGENTS")})]}),M.includedAIAgents.map((function(e,n){return(0,r.jsx)(U,{agent:e},n)}))]}),Pe.length>1&&(0,r.jsxs)(y.A,{sx:{mb:2},children:[(0,r.jsx)(m.A,{variant:"body2",sx:{mb:1},fontWeight:500,fontSize:14,children:Le("DISPLAY_STRINGS.AVAILABLE_BILLING_CYCLES")}),Pe.map((function(e){return(0,r.jsx)(L.A,{size:"small",label:"".concat($[e.billingPeriod],": ").concat(ne).concat(parseFloat(e.price||"0").toLocaleString()),sx:{backgroundColor:"primary.light",color:"text.dark",height:"21px",typography:"body2",margin:"0 2px"}},e.billingPeriod)}))]}),M.isVoiceAgentsEnabled&&!!M.freeVoiceMinutes&&(0,r.jsxs)(y.A,{marginBottom:3,children:[(0,r.jsxs)(y.A,{display:"flex",alignItems:"center",gap:1,children:[(0,r.jsx)(g.A,{color:"primary",sx:{fontSize:20}}),(0,r.jsx)(m.A,{fontSize:14,variant:"body2",children:Le("DISPLAY_STRINGS.AI_VOICE_CALLS")})]}),(0,r.jsxs)(m.A,{sx:{marginLeft:"26px"},fontSize:12,variant:"body2",color:"text.secondary",children:[M.freeVoiceMinutes.toLocaleString()," ",Le("DISPLAY_STRINGS.FREE_MINUTES"),M.isVoiceMinutesRecurring?" "+Le("DISPLAY_STRINGS.EVERY_MONTH"):""]})]}),(null==ie?void 0:ie.planKey)&&ie.id===M.id&&(null===(k=Ne())||void 0===k?void 0:k.id)===(null===(F=Pe.find((function(e){return e.billingPeriod===re})))||void 0===F?void 0:F.id)?(0,r.jsx)(r.Fragment,{children:le===Y||le===O?(0,r.jsx)(m.A,{variant:"body1",fontSize:14,fontWeight:500,sx:{border:"1px solid #dc2626",borderRadius:2,p:1},align:"center",color:"error",children:Le(le===Y?"DISPLAY_STRINGS.SCHEDULED_FOR_CANCELLATION":"DISPLAY_STRINGS.CANCELLED")}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.A,{variant:"body1",fontSize:14,fontWeight:500,sx:{backgroundColor:"primary.light",borderRadius:2,p:1},align:"center",color:"primary",children:Le("DISPLAY_STRINGS.YOUR_SUBSCRIBED_PLAN")}),(null==ye?void 0:ye.isAgencyOwner)&&!me&&(0,r.jsx)(N.A,{variant:"text",fullWidth:!0,onClick:function(){(0,l.dg)(d.n.WHITE_LABEL.INVOICE_CARD_DETAILS_PAGE)},children:Le("DISPLAY_STRINGS.REVIEW_INVOICES_AND_CARD_DETAILS")}),(null==ye?void 0:ye.isSubaccountUser)&&!me&&(0,r.jsx)(N.A,{variant:"text",color:"error",fullWidth:!0,onClick:function(){Ae(!0)},children:Le("DISPLAY_STRINGS.CANCEL_SUBSCRIPTION")})]})}):(0,r.jsx)(N.A,{variant:"contained",fullWidth:!0,endIcon:De?void 0:(0,r.jsx)(f.A,{}),sx:{borderRadius:2,fontWeight:700}
1,onClick:function(){je?Ge():(null==ie?void 0:ie.planKey)&&"nwl_free"!==ie.planKey?ge?ue(!0):ve(!0):Ge()},children:je?Le("DISPLAY_STRINGS.GET_A_QUOTE"):Te?Le("DISPLAY_STRINGS.GET_STARTED_FREE"):Ce&&M.freeTrialDays>0?Le("DISPLAY_STRINGS.TRY_FREE_FOR_DAYS",{days:M.freeTrialDays}):(null==ie?void 0:ie.planKey)?Le("DISPLAY_STRINGS.CHANGE_SUBSCRIPTION"):Le("DISPLAY_STRINGS.SUBSCRIBE_NOW")})]})]}),(0,r.jsx)(u.KKB,{isOpen:de,showLoader:!1,onClose:function(){return ue(!1)},message:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(m.A,{variant:"body1",children:[Le("DISPLAY_STRINGS.PLEASE_CONFIRM_CHANGE_SUBSCRIPTION")," ",(0,r.jsx)("b",{children:M.name})," ",Le("DISPLAY_STRINGS.FOR")," ",(0,r.jsxs)("b",{children:[Ye,ne,"/",$[q]]}),"."]}),ge&&(0,r.jsxs)(y.A,{sx:{mt:2},children:[(0,r.jsx)(u.JU7,{name:Le("DISPLAY_STRINGS.REASON_FOR_DOWNGRADING"),required:!0}),(0,r.jsx)(j.A,{value:Ie,onChange:function(e){return _e(e.target.value)},placeholder:Le("DISPLAY_STRINGS.ENTER_REASON_PLACEHOLDER"),fullWidth:!0,multiline:!0,rows:3})]})]}),confirmButtonDisabled:ge&&!Ie,confirmButtonLabel:Le("DISPLAY_STRINGS.CHANGE_BUTTON"),onConfirm:Ge}),(0,r.jsx)(u.KKB,{isOpen:fe,onClose:function(){return Ae(!1)},message:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y.A,{display:"flex",alignItems:"center",justifyContent:"center",mb:2,children:(0,r.jsx)(b.A,{color:"warning",sx:{fontSize:40}})}),(0,r.jsx)(m.A,{variant:"body1",fontWeight:500,textAlign:"center",mb:1,children:Le("DISPLAY_STRINGS.CANCEL_SUBSCRIPTION_CONFIRM")}),(0,r.jsx)(m.A,{variant:"body1",color:"text.secondary",textAlign:"center",mb:1,children:Le("DISPLAY_STRINGS.CANCEL_SUBSCRIPTION_EXPLAIN")}),(0,r.jsx)(C.A,{severity:"warning",sx:{mb:2},icon:!1,children:Le("DISPLAY_STRINGS.CANCEL_SUBSCRIPTION_NOTE")})]}),confirmButtonLabel:Le("DISPLAY_STRINGS.YES_CANCEL_SUBSCRIPTION"),cancelButtonLabel:Le("DISPLAY_STRINGS.KEEP_MY_SUBSCRIPTION"),onConfirm:function(){(0,c.Ol)().then((function(){null==X||X(),(0,l.Sx)("",Le("DISPLAY_STRINGS.SUBSCRIPTION_CANCELLED_SUCCESS"),"success")})).catch((function(e){(0,l.Sx)("",e.message,"error")})).finally((function(){Ae(!1)}))}}),(0,r.jsx)(u.KKB,{isOpen:pe,onClose:function(){return ve(!1)},title:Le("DISPLAY_STRINGS.UPGRADE_PLAN"),message:(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(m.A,{variant:"body1",children:[Le("DISPLAY_STRINGS.PLEASE_CONFIRM_CHANGE_SUBSCRIPTION")," ",(0,r.jsx)("b",{children:M.name})," ",Le("DISPLAY_STRINGS.FOR")," ",(0,r.jsxs)("b",{children:[Ye,ne,"/",$[q]]}),"."]})}),confirmButtonLabel:Le("DISPLAY_STRINGS.CHANGE_BUTTON"),onConfirm:Ge})]})},W=i(32573),k=function(e,n,i){if(i||2===arguments.length)for(var r,t=0,o=n.length;t<o;t++)!r&&t in n||(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return e.concat(r||Array.prototype.slice.call(n))},F=function(e){var n;return Boolean(null===(n=e.tiers)||void 0===n?void 0:n.length)||"enterprise_contact"===e.planKey};var M=function(e){var n=void 0===e?{}:e,i=n.recommendedPlanKey,d=n.newOnboarding,u=void 0!==d&&d,S=(0,s.Bd)().t,f=(0,o.Jd)().userDetails,A={month:S("DISPLAY_STRINGS.SAAS_BILLING_MONTHLY"),quarter:S("DISPLAY_STRINGS.SAAS_BILLING_QUARTERLY"),year:S("DISPLAY_STRINGS.SAAS_BILLING_YEARLY")},x=(0,c.dn)(u),I=x.data,_=x.isLoading,h=x.refetch,p=(null==I?void 0:I.packages)||[],v=(null==I?void 0:I.currencyUnit)||"$",g=null==I?void 0:I.subscribedPackage,b=null==I?void 0:I.subscribedBillingCycle,y=null==I?void 0:I.subscriptionStatus,m="free"===(null==g?void 0:g.planKey),E=(0,l.jr)(),L=E.billingPeriod,T=E.tier,R=(0,a.useState)(T||"current"),P=R[0],N=R[1],j=(0,a.useState)(L||"month"),C=j[0],D=j[1];(0,a.useEffect)((function(){D(L||b||"month"),L||b||"current"!==P||"special"===(null==g?void 0:g.planKey)||D("month")}),[L,b,g,P]),(0,a.useEffect)((function(){g&&N(T||"current")}),[g,T]);var Y,O,w=!(null==f?void 0:f.isSubaccountUser)&&p.some((function(e){return e.tiers&&e.tiers.length>0})),U=p.filter((function(e){return e.isActive&&e.isExternallyAvailable&&e.subscriptionPrices.some((function(e){return e.isPublic&&e.isActive}))}));(null==g?void 0:g.planKey)&&["enterprise","enterprise_2","nwl_enterprise"].includes(g.planKey)&&(U=p.filter((function(e){return e.planKey===g.planKey}
1))),"special"===(null==g?void 0:g.planKey)&&(U=k(k([],U,!0),p.filter((function(e){return"special"===e.planKey&&e.subscriptionPrices.some((function(e){return e.stripePriceId===g.stripeProductId}))})),!0)),Y=U,O=new Set,U=Y.filter((function(e,n){var i,r,t=String(null!==(r=null!==(i=e.id)&&void 0!==i?i:e.planKey)&&void 0!==r?r:n);return!O.has(t)&&(O.add(t),!0)}));var B=Boolean(null==g?void 0:g.isLegacySubscription),K=B||"legacy"===P?p.find((function(e){return e.subscriptionPrices.some((function(e){return!e.isPublic&&!e.isActive&&e.stripePriceId===(null==g?void 0:g.stripeProductId)}))})):void 0,M=U.map((function(e){return e.id}));K&&!M.includes(K.id)&&("legacy"===P?U=[K]:B&&(U=k(k([],U,!0),[K],!1)));var H=function(e){if("legacy"===P){var n=[];return e.forEach((function(e){e.subscriptionPrices.forEach((function(e){e.isPublic||e.isActive||n.includes(e.billingPeriod)||n.push(e.billingPeriod)}))})),n}if("special"===(null==g?void 0:g.planKey))return["month",b];if(null==f?void 0:f.isSubaccountUser){var i=[];return e.filter((function(e){return e.isActive&&e.isExternallyAvailable})).forEach((function(e){e.subscriptionPrices.forEach((function(e){e.isPublic&&e.isActive&&!i.includes(e.billingPeriod)&&i.push(e.billingPeriod)}))})),i.length?i:["month"]}if(w){var r=[];return e.filter((function(e){var n;return null===(n=e.tiers)||void 0===n?void 0:n.length})).forEach((function(e){(e.tiers||[]).forEach((function(e){Object.keys(e.prices||{}).forEach((function(e){r.includes(e)||r.push(e)}))}))})),r.length?r:["month"]}return["month"]}(p),V=U.filter((function(e){return e.subscriptionPrices.some((function(e){return e.billingPeriod===C}))}));return(0,a.useEffect)((function(){H.length&&!H.includes(C)&&D(H.includes("month")?"month":H[0])}),[P,p,C]),(0,r.jsxs)(t.fPr,{container:!0,spacing:2,children:[(0,r.jsxs)(t.fPr,{size:12,sx:{mt:1},children:[!_&&m&&(0,r.jsx)(t.FcD,{severity:"info",children:S("DISPLAY_STRINGS.FREE_TRIAL_ON_ALERT")}),(H.length>1||_)&&(0,r.jsx)(t.azJ,{display:"flex",justifyContent:"center",maxWidth:"300px",mx:"auto",mt:2,children:(0,r.jsx)(t.qIE,{isLoading:_,selectedTab:C,onTabChange:function(e){var n=e;D(n),(0,l.y4)("billing_period",n)},tabs:H.map((function(e){return{icon:null,id:e,label:A[e],isActive:e===C}}))})}),!_&&w&&"legacy"!==P&&(0,r.jsx)(t.azJ,{display:"flex",justifyContent:"center",mt:1.5,children:(0,r.jsx)(t.vu3,{label:S("DISPLAY_STRINGS.TIER_YEARLY_DISCOUNT_BANNER"),size:"small",sx:{fontWeight:700,px:1,bgcolor:"transparent"}})}),!_&&(null==g?void 0:g.isOnLegacyPlan)&&(0,r.jsx)(t.azJ,{display:"flex",justifyContent:"center",mt:1.5,children:(0,r.jsx)(t.o5u,{component:"button",onClick:function(){var e="legacy"===P?"current":"legacy";N(e),(0,l.y4)("tier",e),D("month"),(0,l.y4)("billing_period")},sx:{background:"none",border:"none",p:0,cursor:"pointer",color:"primary.main",textDecoration:"underline",fontSize:"0.8125rem",fontWeight:600},children:S("legacy"===P?"DISPLAY_STRINGS.TIER_BACK_TO_CURRENT_PLANS":"DISPLAY_STRINGS.TIER_VIEW_LEGACY_PLAN")})})]}),(0,r.jsx)(t.fPr,{size:12,children:(0,r.jsxs)(t.azJ,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fit, 385px)",justifyContent:"center",gap:2},children:[_&&Array.from({length:2}).map((function(e,n){return(0,r.jsx)(G,{},n)})),!_&&w&&"legacy"!==P&&V.filter(F).map((function(e,n){return(0,r.jsx)(W.A,{plan:e,billingPeriod:C,currencyUnit:v,subscribedPackage:g,subscribedBillingCycle:b,subscriptionStatus:y,refetchPackages:h},e.id||n)}))]})}),(0,r.jsxs)(t.fPr,{container:!0,size:12,justifyContent:"center",gap:2,children:[!_&&(w?V.filter((function(e){return!F(e)})):V).map((function(e,n){return(0,r.jsx)(z,{plan:e,packageType:"legacy"===P||null!=K&&e.id===K.id?"legacy":"active",showLegacyLabel:B&&null!=K&&e.id===K.id,refetchPackages:h,billingPeriod:C,billingPeriodLabels:A,isMostPopular:i?e.planKey===i:"premium"!==e.planKey&&n===Math.floor(U.length/2),currencyUnit:v,subscribedPackage:g,subscribedBillingCycle:b,subscriptionStatus:y,showProfitCalculation:!0},e.id||n)})),!_&&0===V.length&&(0,r.jsxs)(t.o5u,{variant:"body1",textAlign:"center",children:[S("DISPLAY_STRINGS.NO_ACTIVE_PACKAGES_AVAILABLE",{billingPeriod:A[C]})," ",S("DISPLAY_STRINGS.CONTACT_ADMIN_CREATE_PACKAGE")]})]})]})}},36625:function(e,n,i){i.d(n,{m8:function(){return f},Ol:function(){return S},dn:function(){return u}});
1var r=i(19124),t=i(6765),o=i(21762),l=i(86591),a="agencyPackages",s=function(e,n,i,r){return new(i||(i=Promise))((function(t,o){function l(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var n;e.done?t(e.value):(n=e.value,n instanceof i?n:new i((function(e){e(n)}))).then(l,a)}s((r=r.apply(e,n||[])).next())}))},c=function(e,n){var i,r,t,o={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return l.next=a(0),l.throw=a(1),l.return=a(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(a){return function(s){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;l&&(l=0,a[0]&&(o=0)),o;)try{if(i=1,r&&(t=2&a[0]?r.return:a[0]?r.throw||((t=r.return)&&t.call(r),0):r.next)&&!(t=t.call(r,a[1])).done)return t;switch(r=0,t&&(a=[2&a[0],t.value]),a[0]){case 0:case 1:t=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(t=o.trys,(t=t.length>0&&t[t.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!t||a[1]>t[0]&&a[1]<t[3])){o.label=a[1];break}if(6===a[0]&&o.label<t[1]){o.label=t[1],t=a;break}if(t&&o.label<t[2]){o.label=t[2],o.ops.push(a);break}t[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(e,o)}catch(e){a=[6,e],r=0}finally{i=t=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},d=function(e,n,i){if(i||2===arguments.length)for(var r,t=0,o=n.length;t<o;t++)!r&&t in n||(r||(r=Array.prototype.slice.call(n,0,t)),r[t]=n[t]);return e.concat(r||Array.prototype.slice.call(n))},u=function(e){return void 0===e&&(e=!1),(0,l.I)({queryKey:[a,e],queryFn:function(){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return s(void 0,d([],e,!0),Promise,(function(e){var n,i;return void 0===e&&(e=!1),c(this,(function(l){switch(l.label){case 0:return n=e?"".concat(o.n.WHITE_LABEL.SUBSCRIPTION_PACKAGES_API,"?new_onboarding=true"):o.n.WHITE_LABEL.SUBSCRIPTION_PACKAGES_API,[4,t.nv.get(n)];case 1:return i=l.sent(),[2,(0,r.Cb)(i.data)]}}))}))}(e)},refetchOnWindowFocus:!0,refetchOnMount:!0,staleTime:0,retry:!1})},S=function(e){return s(void 0,void 0,void 0,(function(){var n,i;return c(this,(function(l){switch(l.label){case 0:return n=e?{cancellation_reason:e}:{},[4,t.nv.post(o.n.WHITE_LABEL.SCHEDULE_SUBSCRIPTION_CANCELLATION,n)];case 1:return i=l.sent(),[2,(0,r.Cb)(i.data)]}}))}))},f=function(){return s(void 0,void 0,void 0,(function(){var e;return c(this,(function(n){switch(n.label){case 0:return[4,t.nv.post(o.n.BILLING.END_FREE_TRIAL)];case 1:return e=n.sent(),[2,(0,r.Cb)(e.data)]}}))}))}},32573:function(e,n,i){var r=i(78685),t=i(21762),o=i(69179),l=i(88152),a=i(19124),s=i(21120),c=i(47838),d=i(3020),u=i(83474),S=i(31547),f=i(10838),A=i(63809),x=i(17577),I=i(36206),_=i(26400),h=i(93610),p=i(65179),v=i(70559),g=i(38588),b=i(55655),y=i(2057),m=i(16657),E=i(78166),L=i(39675),T=i(36625),R=function(){return R=Object.assign||function(e){for(var n,i=1,r=arguments.length;i<r;i++)for(var t in n=arguments[i])Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e},R.apply(this,arguments)},P={free:0,nwl_free:0,basic:1,exclusive_basic:1,nwl_starter:1,pro:2,exclusive_pro:2,nwl_business:2,standard:2,premium:3,exclusive_premium:3,pro_wl:3,enterprise:4,nwl_enterprise:4,enterprise_contact:4,enterprise_2:5},N=["MCP Support"],j=["Fully White Labeled"],C="#0F172A",D="free_trial",G="cc_free_trial";var Y=function(e){return e>=1e3&&e%1e3==0?"".concat(e/1e3,"k"):e.toLocaleString()};n.A=function(e){var n,i,O,w,U,B,K=e.plan,z=e.billingPeriod,W=e.currencyUnit,k=e.subscribedPackage,F=e.subscribedBillingCycle,M=e.subscriptionStatus,H=e.refetchPackages,V=(0,m.Bd)().t,J=(0,L.Jd)().userDetails,q=(0,u.A)(),X=K.tiers||[],$=X.length>0,Q=function(){if(!k||k.planKey!==K.planKey)return-1;if(k.tierKey){var e=X.findIndex((function(e){return e.tierKey===k.tierKey}));if(-1!==e)return e}return X.findIndex((function(e){return Object.values(e.prices||{}).some((function(e){return(null==e?void 0:e.stripePriceId)===k.stripeProductId}))}))}(),Z=(0,y.useState)(-1!==Q?Q:0),ee=Z[0],ne=Z[1],ie=(0,y.useState)(!1),re=ie[0],te=ie[1],oe=(0,y.useState)(""),le=oe[0],ae=oe[1],se=(0,y.useState)(!1),ce=se[0],de=se[1],ue=(0,y.useState)(!1),Se=ue[0],fe=ue[1];(0,y.useEffect)((function(){-1!==Q&&ne(Q)}),[null==k?void 0:k.tierKey,null==k?void 0:k.stripeProductId]);var Ae,xe=X[ee],Ie=Boolean(null==xe?void 0:xe.isContactTier),_e=!$&&Boolean(K.calendarUrl),he=_e&&true,pe="rgba(255, 255, 255, 0.72)",ve=null!=K.flatMessagePrice,ge=["1 AI Chat Agent","1 AI Voice Agent"],be=Ie?(K.features||[]).filter((function(e){return!ge.includes(e)})):K.features||[],ye=null===(n=null==xe?void 0:xe.prices)||void 0===n?void 0:n[z],me=null===(i=null==xe?void 0:xe.prices)||void 0===i?void 0:i.month,Ee=(null==k?void 0:k.planKey)===K.planKey,Le=Ee&&(!$||-1!==Q&&Q===ee),Te=Le&&F===z,Re=null!==(O=P[(null==k?void 0:k.planKey)||""])&&void 0!==O?O:-1,Pe=null!==(w=P[K.planKey||""])&&void 0!==w?w:-1,Ne=Boolean(null==k?void 0:k.planKey)&&"free"!==(null==k?void 0:k.planKey)&&(null==k?void 0:k.planKey)!==K.planKey&&Re>=Pe||Ee&&-1!==Q&&ee<Q,je=Boolean(null==k?void 0:k.planKey)&&"free"!==(null==k?void 0:k.planKey)&&"nwl_free"!==(null==k?void 0:k.planKey),Ce=!je&&!(null==k?void 0:k.hasPaidBefore),De=Te&&(M===D||M===G),Ge=(null==J?void 0:J.isSubaccountUser)?null==J?void 0:J.isSubaccountAdmin:null==J?void 0:J.isAgencyAdm
1in,Ye=function(){var e=(null==xe?void 0:xe.calendarUrl)||K.calendarUrl;e&&window.open(e,"_blank")},Oe=function(){if(Ie||_e)return Ye(),void te(!1);if(!(null==ye?void 0:ye.packageLink))return(0,a.Sx)("",V("DISPLAY_STRINGS.INVALID_PACKAGE_LINK"),"error"),void te(!1);var e=ye.packageLink.replace(t.n.WHITE_LABEL.STRIPE_AGEMCY_SESSION,t.n.WHITE_LABEL.STRIPE_MANAGE_SUBSCRIPTION);Ne&&(e+="&downgrade_reason=".concat(encodeURIComponent(le))),(new l.b).initiateCheckout(),window.open(e,"_self"),te(!1)},we=(0,r.jsx)(s.A,{sx:{color:he?"#fff":"success.main",fontSize:20}}),Ue=(0,r.jsx)(c.A,{sx:{color:he?pe:"error.main",fontSize:20}}),Be=_e?V("DISPLAY_STRINGS.TIER_USAGE_LABEL"):null!=(null===(U=X[0])||void 0===U?void 0:U.monthlyMessageLimit)?V("DISPLAY_STRINGS.TIER_MONTHLY_USAGE"):V("DISPLAY_STRINGS.TIER_AGENTS_INCLUDED");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(A.A,{sx:R(R({width:"100%",height:"100%",borderRadius:3,display:"flex",flexDirection:"column",position:"relative",overflow:"visible"},K.isMostPopular&&{outline:"2px solid",outlineColor:"primary.main",outlineOffset:-1}),he&&{bgcolor:"primary.main",color:"#fff",boxShadow:"0 20px 40px -12px rgba(0,0,0,0.35)"}),children:[K.isMostPopular&&(0,r.jsx)(x.A,{label:V("DISPLAY_STRINGS.MOST_POPULAR"),size:"small",sx:{position:"absolute",top:-12,left:"50%",transform:"translateX(-50%)",borderRadius:"999px",bgcolor:"primary.main",color:"#fff",fontWeight:600,px:1}}),Le&&(0,r.jsx)(x.A,{label:V("DISPLAY_STRINGS.CURRENT_PLAN"),variant:"outlined",color:"primary",size:"small",sx:{position:"absolute",top:12,right:12,fontWeight:600,bgcolor:he?"rgba(255, 255, 255, 0.12)":"#fff"}}),(0,r.jsxs)(I.A,{sx:{display:"flex",flexDirection:"column",flexGrow:1,p:2.5,pt:3.5},children:[(0,r.jsxs)(S.A,{display:"flex",alignItems:"center",gap:1,children:[(0,r.jsx)(d.A,{sx:{fontSize:22,color:he?"#fff":"#E4B43D"}}),(0,r.jsx)(f.A,{variant:"h5",fontWeight:700,align:"left",sx:{color:he?"#fff":C},children:K.name}),K.subtitle&&(0,r.jsx)(f.A,{variant:"body2",fontWeight:500,sx:{color:he?pe:"text.secondary"},children:K.subtitle})]}),(0,r.jsx)(S.A,{sx:{my:2},children:function(){var e,n;if(_e||Ie)return(0,r.jsxs)(S.A,{textAlign:"left",children:[(0,r.jsx)(f.A,{variant:"h4",fontWeight:700,sx:{fontSize:"40px",color:he?"#fff":C},children:V("DISPLAY_STRINGS.TIER_CUSTOM_PRICING")}),(0,r.jsx)(f.A,{variant:"body2",sx:{color:he?pe:"text.secondary"},children:V("DISPLAY_STRINGS.TIER_CUSTOM_PRICING_CAPTION")})]});var i=null!==(e=null==ye?void 0:ye.price)&&void 0!==e?e:0,t=null!==(n=null==me?void 0:me.price)&&void 0!==n?n:i;return(0,r.jsxs)(S.A,{textAlign:"left",children:[(0,r.jsxs)(S.A,{display:"flex",alignItems:"baseline",justifyContent:"flex-start",gap:.5,children:["year"===z&&t>i&&(0,r.jsxs)(f.A,{variant:"h6",color:"text.secondary",sx:{textDecoration:"line-through"},children:[W,t]}),(0,r.jsxs)(f.A,{variant:"h4",fontWeight:700,sx:{fontSize:"40px",color:he?"#fff":C},children:[W,i]})]}),(0,r.jsx)(f.A,{variant:"body2",sx:{color:he?pe:"text.secondary"},children:V("year"===z?"DISPLAY_STRINGS.TIER_BILLED_YEARLY":"DISPLAY_STRINGS.TIER_BILLED_MONTHLY")})]})}()}),Te?(0,r.jsxs)(r.Fragment,{children:[!De&&(0,r.jsx)(S.A,{sx:{mt:2,mb:(null==J?void 0:J.isAgencyOwner)?1:2,borderRadius:2,p:1,backgroundColor:"primary.light",textAlign:"center"},children:(0,r.jsx)(f.A,{variant:"body1",fontWeight:700,color:"primary",children:V("DISPLAY_STRINGS.YOUR_SUBSCRIBED_PLAN")})}),De&&Ge?(0,r.jsx)(_.A,{variant:"outlined",fullWidth:!0,disableElevation:!0,sx:{mt:2,mb:2,borderRadius:"12px",fontWeight:700,py:1.5},onClick:function(){return de(!0)},children:V("DISPLAY_STRINGS.END_TRIAL_NOW")}):(null==J?void 0:J.isAgencyOwner)&&(0,r.jsx)(f.A,{component:"button",onClick:function(){return(0,a.dg)(t.n.WHITE_LABEL.INVOICE_CARD_DETAILS_PAGE)},sx:{display:"block",width:"100%",textAlign:"center",background:"none",border:"none",p:0,mb:2,cursor:"pointer",color:"primary.main",textDecoration:"underline",fontSize:"0.8125rem"},children:V("DISPLAY_STRINGS.REVIEW_INVOICES_AND_CARD_DETAILS")})]}):(0,r.jsx)(_.A,{variant:K.isMostPopular||he?"contained":"outlined",fullWidth:!0,disableElevation:!0,sx:R(R({mt:2,mb:2,borderRadius:"12px",fontWeight:700,py:1.5},!K.isMostPopular&&!he&&{bgcolor:"#F5F7F8",borderColor:"#E5E7EA",color:C,"&:hover":{bgcolor:"#ECEEF0",borderColor:"#E5E7EA"}}),he&&{bgcolor:"#fff",color:q.palette.primary.dark,"&:hover":{bgcolor:"rgba(255, 255, 255, 0.9)"}}),onClick:function(){Ie||_e?Ye():je?te(!0):Oe()},children:Ie||_e?V("DISPLAY_STRINGS.TIER_CONTACT_US"):Ce&&K.freeTrialDays>0?V("DISPLAY_STRINGS.TRY_FREE_FOR_DAYS",{days:K.freeTrialDays}):V(je?"DISPLAY_STRINGS.CHANGE_SUBSCRIPTION":"DISPLAY_STRINGS.SUBSCRIBE_NOW")}
1),(0,r.jsxs)(S.A,{sx:{mb:2,minHeight:96},children:[(0,r.jsx)(f.A,{variant:"body2",sx:{display:"block",mb:1,fontWeight:500,color:he?pe:"text.secondary"},children:Be}),_e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.A,{variant:"body2",fontWeight:600,sx:{mb:1,color:he?"#fff":C},children:V("DISPLAY_STRINGS.TIER_USAGE_UNLIMITED")}),(0,r.jsx)(f.A,{variant:"caption",sx:{color:he?pe:"text.secondary"},children:V("DISPLAY_STRINGS.TIER_USAGE_UNLIMITED_DESC")})]}):$&&(ve?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.A,{variant:"body1",fontWeight:600,sx:{mb:1,color:C},children:xe?Ie?V("DISPLAY_STRINGS.TIER_USAGE_CUSTOM"):(Ae=xe,null!=Ae.monthlyMessageLimit?V("DISPLAY_STRINGS.TIER_REPLIES_AND_MINUTES",{replies:Y(Ae.monthlyMessageLimit),minutes:Y(Ae.monthlyVoiceMinuteLimit||0)}):null!=Ae.chatbots?V("DISPLAY_STRINGS.TIER_CHAT_PLUS_VOICE_AGENTS",{agents:Ae.chatbots}):Ae.label):""}),(0,r.jsx)(E.KK8,{value:ee,min:0,max:X.length-1,step:1,onChange:function(e,n){return ne(Array.isArray(n)?n[0]:n)}})]}):(0,r.jsx)(h.A,{fullWidth:!0,size:"small",value:ee,onChange:function(e){return ne(Number(e.target.value))},sx:{fontSize:"0.875rem",borderRadius:"10px",bgcolor:"#F5F7F8","& .MuiOutlinedInput-notchedOutline":{borderColor:"#E5E7EA"}},children:X.map((function(e,n){var i,t,o,l,a,s=null!==(o=null===(t=null===(i=e.prices)||void 0===i?void 0:i[z])||void 0===t?void 0:t.price)&&void 0!==o?o:null===(a=null===(l=e.prices)||void 0===l?void 0:l.month)||void 0===a?void 0:a.price;return(0,r.jsxs)(p.A,{value:n,sx:{fontSize:"0.875rem"},children:[e.chatbots," Chat + ",e.voiceAgents," Voice Agents"," — ",W,s,"/mo"]},e.tierKey)}))}))]}),(0,r.jsx)(f.A,{variant:"body2",fontWeight:600,sx:{mb:1,color:he?"#fff":void 0},children:V("DISPLAY_STRINGS.TIER_WHATS_INCLUDED")}),(0,r.jsxs)(S.A,{sx:{display:"flex",flexDirection:"column",gap:.75,flexGrow:1,mb:2},children:[be.map((function(e){var n,i=null===(n=K.featureTooltips)||void 0===n?void 0:n[e];return(0,r.jsxs)(S.A,{display:"flex",alignItems:"center",justifyContent:"space-between",gap:1,children:[(0,r.jsxs)(S.A,{display:"flex",alignItems:"center",gap:1,children:[we,(0,r.jsx)(f.A,{variant:"body2",sx:{color:he?"#fff":void 0,fontWeight:j.includes(e)?700:400},children:e}),N.includes(e)&&(0,r.jsx)(x.A,{label:V("DISPLAY_STRINGS.TIER_COMING_SOON"),size:"small",sx:{height:20,fontSize:"0.6875rem",fontWeight:600,bgcolor:he?"rgba(255, 255, 255, 0.16)":"action.selected",color:he?"#fff":"text.secondary"}})]}),!!i&&(0,r.jsx)(v.A,{title:i,arrow:!0,placement:"top",children:(0,r.jsx)(b.A,{sx:{fontSize:15,color:he?"rgba(255, 255, 255, 0.5)":"text.disabled",cursor:"help",flexShrink:0}})})]},e)})),(K.unavailableFeatures||[]).map((function(e){var n,i=null===(n=K.featureTooltips)||void 0===n?void 0:n[e];return(0,r.jsxs)(S.A,{display:"flex",alignItems:"center",justifyContent:"space-between",gap:1,children:[(0,r.jsxs)(S.A,{display:"flex",alignItems:"center",gap:1,children:[Ue,(0,r.jsx)(f.A,{variant:"body2",sx:{color:he?pe:"text.secondary"},children:e})]}),!!i&&(0,r.jsx)(v.A,{title:i,arrow:!0,placement:"top",children:(0,r.jsx)(b.A,{sx:{fontSize:15,color:he?"rgba(255, 255, 255, 0.5)":"text.disabled",cursor:"help",flexShrink:0}})})]},e)}))]}),!Te&&(_e||Ce&&K.freeTrialDays>0)&&(0,r.jsx)(f.A,{variant:"caption",align:"left",sx:{display:"block",mt:2,fontWeight:400,color:he?pe:"text.secondary"},children:_e?V("DISPLAY_STRINGS.TIER_TALK_TO_SALES"):V("DISPLAY_STRINGS.TIER_FREE_TRIAL_CANCEL_ANYTIME",{days:K.freeTrialDays})})]})]}),(0,r.jsx)(o.KKB,{isOpen:re,showLoader:!1,onClose:function(){return te(!1)},message:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(f.A,{variant:"body1",children:[V("DISPLAY_STRINGS.PLEASE_CONFIRM_CHANGE_SUBSCRIPTION")," ",(0,r.jsx)("b",{children:K.name})," ",V("DISPLAY_STRINGS.FOR")," ",(0,r.jsxs)("b",{children:[W,null!==(B=null==ye?void 0:ye.price)&&void 0!==B?B:0,V("DISPLAY_STRINGS.HELP_TEXT_PER_MONTH")]}),"."]}),Ne&&(0,r.jsxs)(S.A,{sx:{mt:2},children:[(0,r.jsx)(o.JU7,{name:V("DISPLAY_STRINGS.REASON_FOR_DOWNGRADING"),required:!0}),(0,r.jsx)(g.A,{value:le,onChange:function(e){return ae(e.target.value)},placeholder:V("DISPLAY_STRINGS.ENTER_REASON_PLACEHOLDER"),fullWidth:!0,multiline:!0,rows:3})]})]}),confirmButtonDisabled:Ne&&!le,confirmButtonLabel:V("DISPLAY_STRINGS.CHANGE_BUTTON"),onConfirm:Oe}),(0,r.jsx)(o.KKB,{isOpen:ce,showLoader:Se,onClose:function(){return de(!1)},message:(0,r.jsx)(f.A,{variant:"body1",children:V("DISPLAY_STRINGS.END_TRIAL_CONFIRM_MESSAGE")}),confirmButtonLabel:V("DISPLAY_STRINGS.END_TRIAL_NOW"),onConfirm:function(){fe(!0),(0,T.m8)().then((function(e){null==H||H(),document.dispatchEvent(new CustomEvent("billingConfigRefetch")),(0,a.Sx)("",(null==e?void 0:e.status)?V("DISPLAY_STRINGS.END_TRIAL_SUCCESS"):V("DISPLAY_STRINGS.END_TRIAL_NOT_ACTIVE"),(null==e?void 0:e.status)?"success":"warning")})).catch((function(e){var n,i,r,t,o=(null===(i=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===i?void 0:i.error)||(null===(t=null===(r=null==e?void 0:e.response)||void 0===r?void 0:r.data)||void 0===t?void 0:t.message)||V("DISPLAY_STRINGS.SOMETHING_WENT_WRONG");(0,a.Sx)("",o,"error")})).finally((function(){fe(!1),de(!1)}))}})]})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.