PageSourceSearch

https://www.smartltc.ai/static/js/4888.8e732b79.chunk.js

js smartltc.ai collected 2026-10-05 15:06:25 UTC 7,930 bytes, 2 lines download raw bytes

1/*! For license information please see 4888.8e732b79.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[4888],{41988:(e,t,r)=>{r.d(t,{A:()=>n});const n=r(55352).A},44888:(e,t,r)=>{r.r(t),r.d(t,{default:()=>C});var n=r(89379),i=r(9950),a=r(87863),s=r(65957),o=r(75376),c=r(87094),l=r(41988),d=r(82056),p=r(46004),u=r(33994),g=r(79097),h=r(68539),m=r(87848),y=r(65472),x=r(28429),f=r(21601);const j=new class{async getUserLimits(){try{return await f.A.get("/user/limits")}catch(e){throw console.error("Error fetching user limits:",e),e}}async checkCanCreate(e){try{const t=await this.getUserLimits();if("trial"!==t.plan)return!0;const r=3;let n=0;switch(e){case"opportunity":n=t.opportunityCount;break;case"client":n=t.clientCount;break;case"transaction":n=t.transactionCount}return n<r}catch(t){return console.error("Error checking creation limit:",t),!0}}handleTrialLimitError(e){return e.response&&403===e.response.status&&e.response.data.upgradeRequired?e.response.data:null}async getTrialLimitInfo(e){try{const t=await this.getUserLimits(),r=3;let n=0;switch(e){case"opportunity":n=t.opportunityCount;break;case"client":n=t.clientCount;break;case"transaction":n=t.transactionCount}const i=Math.round(n/r*100);return{currentCount:n,limit:r,percentage:i,canCreate:"trial"!==t.plan||n<r}}catch(t){return console.error("Error getting trial limit info:",t),{currentCount:0,limit:3,percentage:0,canCreate:!0}}}async upgradePlan(e){try{return await f.A.post("/user/upgrade",{plan:e})}catch(t){throw console.error("Error upgrading plan:",t),t}}async getUpgradeOptions(){try{return await f.A.get("/user/upgrade-options")}catch(e){return console.error("Error fetching upgrade options:",e),{plans:[{id:"basic",name:"Basic",price:29,currency:"EUR",features:["Unlimited opportunities, clients, and transactions","Basic analytics and reporting","Email support","Standard integrations"]},{id:"premium",name:"Premium",price:79,currency:"EUR",features:["Everything in Basic","Advanced analytics and reporting","Priority support","Team collaboration features","API access","Custom integrations"],recommended:!0},{id:"enterprise",name:"Enterprise",price:199,currency:"EUR",features:["Everything in Premium","Dedicated account manager","Custom development","On-premise deployment","Advanced security features","SLA guarantee"]}]}}}};var A=r(44414);const{Title:b,Text:v,Paragraph:w}=a.A,C=()=>{const[e,t]=(0,i.useState)([]),[r,a]=(0,i.useState)(!0),[f,C]=(0,i.useState)(null),S=(0,x.Zp)();(0,i.useEffect)((()=>{k()}),[]);const k=async()=>{try{const e=await j.getUpgradeOptions();t(e.plans)}catch(e){console.error("Error fetching upgrade options:",e),s.Ay.error("Failed to load upgrade options")}finally{a(!1)}},z=e=>{switch(e){case"basic":default:return(0,A.jsx)(g.A,{style:{fontSize:"24px",color:"#1890ff"}});case"premium":return(0,A.jsx)(h.A,{style:{fontSize:"24px",color:"#faad14"}});case"enterprise":return(0,A.jsx)(m.A,{style:{fontSize:"24px",color:"#722ed1"}})}},E=e=>{switch(e){case"basic":default:return"#1890ff";case"premium":return"#faad14";case"enterprise":return"#722ed1"}};return r?(0,A.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh"},children:(0,A.jsx)(o.A,{size:"large",tip:"Loading upgrade options..."})}):(0,A.jsxs)("div",{style:{padding:"40px 20px",maxWidth:"1200px",margin:"0 auto"},children:[(0,A.jsxs)("div",{style:{textAlign:"center",marginBottom:"60px"},children:[(0,A.jsx)(b,{level:1,style:{marginBottom:"16px"},children:"Upgrade Your Plan"}),(0,A.jsx)(w,{style:{fontSize:"18px",color:"#666",maxWidth:"600px",margin:"0 auto"},children:"Unlock the full potential of SmartLTC with unlimited access to all features. Choose the plan that best fits your business needs."})]}),(0,A.jsx)(c.A,{gutter:[24,24],justify:"center",children:e.map((e=>(0,A.jsx)(l.A,{xs:24,md:8,children:(0,A.jsxs)(d.A,{style:{height:"100%",position:"relative",border:e.recommended?"2px solid ".concat(E(e.id)):"1px solid #d9d9d9",borderRadius:"12px",overflow:"hidden"},bodyStyle:{padding:"32px 24px"},children:[e.recommended&&(0,A.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,background:"linear-gradient(135deg, ".concat(E(e.id),", ").concat(E(e.id),"dd)"),color:"white",textAlign:"center",padding:"8px",fontSize:"14px",fontWeight:"bold"},children:"MOST POPULAR"}),(0,A.jsxs)("div",{style:{marginTop:e.recommended?"20px":"0"},children:[(0,A.jsxs)("div",{style:{textAlign:"center",marginBottom:"24px"},children:[z(e.id),(0,A.jsx)(b,{level:3,style:{margin:"12px 0 8px",color:E(e.id)},children:e.name})]}),(0,A.jsx)("div",{style:{textAlign:"center",marginBottom:"32px"},children:(0,A.jsxs)("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"center"},children:[(0,A.jsx)(v,{style:{fontSize:"14px",color:"#666"},children:"\u20ac"}),(0,A.jsx)(v,{style:{fontSize:"48px",fontWeight:"bold",lineHeight:1},children:e.price}),(0,A.jsxs)(v,{style:{fontSize:"14px",color:"#666",marginLeft:"4px"},children:["/",e.interval]})]})}),(0,A.jsx)("div",{style:{marginBottom:"32px"},children:(0,A.jsx)(p.A,{direction:"vertical",style:{width:"100%"},size:"small",children:e.features.map(((e,t)=>(0,A.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",ga
2p:"8px"},children:[(0,A.jsx)(y.A,{style:{color:"#52c41a",marginTop:"2px",flexShrink:0}}),(0,A.jsx)(v,{style:{fontSize:"14px"},children:e})]},t)))})}),(0,A.jsx)(u.Ay,{type:e.recommended?"primary":"default",size:"large",block:!0,loading:f===e.id,onClick:()=>(async e=>{try{C(e);const t=await j.upgradePlan(e);t.success&&(s.Ay.success("Successfully upgraded your plan!"),t.redirectUrl?S(t.redirectUrl):S("/dashboard"))}catch(t){console.error("Error upgrading plan:",t),s.Ay.error("Failed to upgrade plan. Please try again.")}finally{C(null)}})(e.id),style:(0,n.A)({height:"48px",fontSize:"16px",fontWeight:"bold"},e.recommended&&{background:"linear-gradient(135deg, ".concat(E(e.id),", ").concat(E(e.id),"dd)"),border:"none"}),children:f===e.id?"Upgrading...":"Upgrade to ".concat(e.name)})]})]})},e.id)))}),(0,A.jsxs)("div",{style:{textAlign:"center",marginTop:"60px"},children:[(0,A.jsx)(w,{style:{color:"#666",marginBottom:"16px"},children:"All plans include a 30-day money-back guarantee. No setup fees."}),(0,A.jsxs)(p.A,{size:"large",children:[(0,A.jsx)(u.Ay,{type:"link",onClick:()=>S("/dashboard"),children:"Continue with Trial"}),(0,A.jsx)(u.Ay,{type:"link",onClick:()=>S("/contact-sales"),children:"Contact Sales"})]})]})]})}},65472:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(9950),i=r(60953),a=r(97318);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}const o=(e,t)=>n.createElement(a.A,s({},e,{ref:t,icon:i.A}));const c=n.forwardRef(o)},68539:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(9950);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 00-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zm-126 534.1H250.3l-53.8-409.4 139.8 86.1L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4zM512 509c-62.1 0-112.6 50.5-112.6 112.6S449.9 734.2 512 734.2s112.6-50.5 112.6-112.6S574.1 509 512 509zm0 160.9c-26.6 0-48.2-21.6-48.2-48.3 0-26.6 21.6-48.3 48.2-48.3s48.2 21.6 48.2 48.3c0 26.6-21.6 48.3-48.2 48.3z"}}]},name:"crown",theme:"outlined"};var a=r(97318);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}const o=(e,t)=>n.createElement(a.A,s({},e,{ref:t,icon:i}));const c=n.forwardRef(o)},87094:(e,t,r)=>{r.d(t,{A:()=>n});const n=r(66577).A}}]);

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.