1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[891],{63:(e,s,a)=>{"use strict";var r=a(7260);a.o(r,"usePathname")&&a.d(s,{usePathname:function(){return r.usePathname}}),a.o(r,"useRouter")&&a.d(s,{useRouter:function(){return r.useRouter}}),a.o(r,"useSearchParams")&&a.d(s,{useSearchParams:function(){return r.useSearchParams}})},1885:(e,s,a)=>{Promise.resolve().then(a.bind(a,7358))},5673:(e,s,a)=>{"use strict";a.d(s,{N:()=>t});var r=a(5155);let n={info:(0,r.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:1.75,"aria-hidden":"true",children:[(0,r.jsx)("circle",{cx:"10",cy:"10",r:"8"}),(0,r.jsx)("path",{strokeLinecap:"round",d:"M10 13.5V9.5"}),(0,r.jsx)("circle",{cx:"10",cy:"6.75",r:"0.6",fill:"currentColor",stroke:"none"})]}),success:(0,r.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:1.75,"aria-hidden":"true",children:[(0,r.jsx)("circle",{cx:"10",cy:"10",r:"8"}),(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6.5 10.25 2.5 2.5 4.5-5"})]}),warning:(0,r.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:1.75,"aria-hidden":"true",children:[(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 3.5 2.5 16.5h15z"}),(0,r.jsx)("path",{strokeLinecap:"round",d:"M10 8.5v3.5"}),(0,r.jsx)("circle",{cx:"10",cy:"14",r:"0.6",fill:"currentColor",stroke:"none"})]}),error:(0,r.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:1.75,"aria-hidden":"true",children:[(0,r.jsx)("circle",{cx:"10",cy:"10",r:"8"}),(0,r.jsx)("path",{strokeLinecap:"round",d:"M10 6.5v4"}),(0,r.jsx)("circle",{cx:"10",cy:"13.25",r:"0.6",fill:"currentColor",stroke:"none"})]})},i={info:"status",success:"status",warning:"status",error:"alert"};function t(e){let{intent:s,title:a,children:t,actions:l,icon:o,tone:c="default",size:d="md",className:u,role:m,...p}=e,h=["status-banner","status-banner--".concat(s),"subtle"===c?"status-banner--subtle":null,"sm"===d?"status-banner--sm":null,u].filter(Boolean).join(" "),x=!1===o?null:null!=o?o:n[s];return(0,r.jsxs)("div",{className:h,role:null!=m?m:i[s],...p,children:[x&&(0,r.jsx)("span",{className:"status-banner__icon",children:x}),(0,r.jsxs)("div",{className:"status-banner__body",children:[a&&(0,r.jsx)("p",{className:"status-banner__title",children:a}),t&&(0,r.jsx)("div",{className:"status-banner__content",children:t}),l&&(0,r.jsx)("div",{className:"status-banner__actions",children:l})]})]})}},5802:(e,s,a)=>{"use strict";a.d(s,{FS:()=>i,HK:()=>l,Ky:()=>t,_Z:()=>c,jn:()=>u,qQ:()=>m});var r=a(4376),n=a(4275);r.registerLocale(n);let i=Object.entries(r.getNames("en",{select:"official"})).map(e=>{let[s,a]=e;return{code:s,name:a}}).sort((e,s)=>e.name.localeCompare(s.name)),t=[{code:"AL",name:"Alabama"},{code:"AK",name:"Alaska"},{code:"AZ",name:"Arizona"},{code:"AR",name:"Arkansas"},{code:"CA",name:"California"},{code:"CO",name:"Colorado"},{code:"CT",name:"Connecticut"},{code:"DE",name:"Delaware"},{code:"DC",name:"District of Columbia"},{code:"FL",name:"Florida"},{code:"GA",name:"Georgia"},{code:"HI",name:"Hawaii"},{code:"ID",name:"Idaho"},{code:"IL",name:"Illinois"},{code:"IN",name:"Indiana"},{code:"IA",name:"Iowa"},{code:"KS",name:"Kansas"},{code:"KY",name:"Kentucky"},{code:"LA",name:"Louisiana"},{code:"ME",name:"Maine"},{code:"MD",name:"Maryland"},{code:"MA",name:"Massachusetts"},{code:"MI",name:"Michigan"},{code:"MN",name:"Minnesota"},{code:"MS",name:"Mississippi"},{code:"MO",name:"Missouri"},{code:"MT",name:"Montana"},{code:"NE",name:"Nebraska"},{code:"NV",name:"Nevada"},{code:"NH",name:"New Hampshire"},{code:"NJ",name:"New Jersey"},{code:"NM",name:"New Mexico"},{code:"NY",name:"New York"},{code:"NC",name:"North Carolina"},{code:"ND",name:"North Dakota"},{code:"OH",name:"Ohio"},{code:"OK",name:"Oklahoma"},{code:"OR",name:"Oregon"},{code:"PA",name:"Pennsylvania"},{code:"PR",name:"Puerto Rico"},{code:"RI",name:"Rhode Island"},{code:"SC",name:"South Carolina"},{code:"SD",name:"South Dakota"},{code:"TN",name:"Tennessee"},{code:"TX",name:"Texas"},{code:"UT",name:"Utah"},{code:"VT",name:"Vermont"},{code:"VA",name:"Virginia"},{code:"WA",name:"Washington"},{code:"WV",name:"West Virginia"},{code:"WI",name:"Wisconsin"},{code:"WY",name:"Wyoming"}],l=new Set(["US","CA","IN","AU","BR","MX"]),o=new Set(["US","GB","JP","MX","BE","DE","ES","FR","IE","NL"]);function c(e){return!!e&&o.has(e.toUpperCase())}let d={US:/^\d{5}(-\d{4})?$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ] ?\d[ABCEGHJKLMNPRSTVWXYZ]\d$/i,GB:/^[A-Z]{1,2}\d[A-Z\d]? ?\d[A-Z]{2}$/i,IN:/^\d{6}$/,AU:/^\d{4}$/,DE:/^\d{5}$/,FR:/^\d{5}$/,ES:/^\d{5}$/,IT:/^\d{5}$/,NL:/^\d{4} ?[A-Z]{2}$/i,BE:/^\d{4}$/,JP:/^\d{3}-?\d{4}$/,MX:/^\d{5}$/,BR:/^\d{5}-?\d{3}$/,CN:/^\d{6}$/,IE:/^[A-Z]\d{2} ?[A-Z\d]{4}$/i};function u(e,s){let a=d[e.toUpperCase()];return!a||a.test(s.trim())}function m(e){if(e)return r.getName(e.toUpperCase(),"en",{select:"official"})||void 0}},6801:(e,s,a)=>{"use strict";a.d(s,{l:()=>n});var r=a(5155);function n(e){let{className:s,size:a=16,label:n="Enterprise feature"}=e;return(0,r.jsxs)("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,role:"img","aria-label":n,children:[(0,r.jsx)("title",{children:n}),(0,r.jsx)("path",{fill:"currentColor",d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z"}),(0,r.jsx)("path",{d:"M5 21h14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}},7358:(e,s,a)=>{"use strict";a.d(s,{PricingWizard:()=>S});var r=a(5155),n=a(2115),i=a(63),t=a(214),l=a(8537),o=a(756),c=a(5673),d=a(2619),u=a.n(d),m=a(6801);let p=["community","pro","premium","oem"],h={community:{label:"Community",price:"$199",priceNote:"per developer / year",freeNote:"for Orgs under $2m in Revenue"},pro:{label:"Pro",price:"$349",priceNote:"per developer / year"},premium:{label:"Premium",price:"$599",priceNote:"per developer / year"},oem:{label:"OEM",price:"$14,999",priceNote:"per app / year"}},x=[{name:"License",values:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u(),{href:"/lice
1nse/community/",children:"Community"})," + ",(0,r.jsx)(u(),{href:"/license/commercial/",children:"Commercial"}),(0,r.jsx)("br",{}),"License"]}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u(),{href:"/license/commercial/",children:"Commercial"}),(0,r.jsx)("br",{}),"License"]}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u(),{href:"/license/commercial/",children:"Commercial"}),(0,r.jsx)("br",{}),"License"]}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u(),{href:"/license/oem/",children:"OEM"}),(0,r.jsx)("br",{}),"License"]})]},{name:"Subscription",values:["1 year of updates","1 year of updates","1 year of updates","1 year of updates"]},{name:"Support",values:["Community","5 incidents","10 incidents","20 incidents"]},{name:"ApexCharts.js",values:[!0,!0,!0,!0]},{name:"ApexGrid",values:[!0,!0,!0,!0]},{name:"ApexMaps",values:[!0,!0,!0,!0]},{name:"ApexTree",values:[!1,!0,!0,!0]},{name:"ApexSankey",values:[!1,!0,!0,!0]},{name:"ApexCharts Premium Features",values:[!1,!1,!0,!0],popover:{title:"Premium features",triggerLabel:"View the ApexCharts Premium features",crownLabel:"ApexCharts Premium feature",crownClassName:"pricing-crown pricing-premium-crown",features:[{label:"Unit / Waffle chart type",href:"/docs/chart-types/unit-chart/"},{label:"Raincloud chart type",href:"/docs/chart-types/raincloud-chart/"},{label:"Trellis (small multiples)",href:"/docs/trellis/"},{label:"Storyboard",href:"/docs/storyboard/"},{label:"Linked Views",href:"/docs/linked-views/"},{label:"Ink authoring",href:"/docs/annotation-authoring/"},{label:"Measure Ruler",href:"/docs/measure-ruler/"},{label:"Context Menu",href:"/docs/context-menu/"},{label:"Perspectives",href:"/docs/view-state/"},{label:"Rewind",href:"/docs/history-undo-redo/"}]}},{name:"ApexGrid-Enterprise",values:[!1,!1,!0,!0],popover:{title:"Enterprise features",triggerLabel:"View the ApexGrid Enterprise features",crownLabel:"ApexGrid Enterprise feature",crownClassName:"pricing-crown pricing-enterprise-crown",features:[{label:"Row Grouping",href:"/apexgrid/docs/enterprise-grouping/"},{label:"Aggregations",href:"/apexgrid/docs/enterprise-aggregations/"},{label:"Pivoting",href:"/apexgrid/docs/enterprise-pivot/"},{label:"Server-Side Row Model",href:"/apexgrid/docs/enterprise-server-side-rows/"},{label:"Advanced Filter Builder",href:"/apexgrid/docs/enterprise-advanced-filter/"},{label:"Range Selection",href:"/apexgrid/docs/enterprise-range-selection/"},{label:"Integrated Charts",href:"/apexgrid/docs/enterprise-charts/"},{label:"Formula Engine",href:"/apexgrid/docs/enterprise-formulas/"},{label:"AI Toolkit",href:"/apexgrid/docs/enterprise-ai/"},{label:"Companion Elements",href:"/apexgrid/docs/enterprise-companion-elements/"}]}},{name:"ApexMaps Premium Features",values:[!1,!1,!0,!0],popover:{title:"ApexMaps Premium features",triggerLabel:"View the ApexMaps Premium features",crownLabel:"ApexMaps Premium feature",crownClassName:"pricing-crown pricing-premium-crown",features:[{label:"Point Clustering",href:"/apexmaps/docs/markers-and-clustering/"},{label:"Hexbin Density",href:"/apexmaps/docs/hexbin/"},{label:"Hex Tile Layouts",href:"/apexmaps/docs/hex-layouts/"},{label:"Custom Projections",href:"/apexmaps/docs/projections/"},{label:"Drilldown",href:"/apexmaps/docs/drilldown/"},{label:"Annotations",href:"/apexmaps/docs/annotations/"},{label:"Arc & Route Series",href:"/apexmaps/docs/arcs-and-routes/"},{label:"Linked Maps",href:"/apexmaps/docs/selection-and-linked-maps/"},{label:"Pattern Fills",href:"/apexmaps/docs/fills/"},{label:"Image Fills",href:"/apexmaps/docs/fills/"},{label:"Story Mode",href:"/apexmaps/docs/configuration-overview/"}]}},{name:"ApexGantt",values:[!1,!1,!0,!0]},{name:"ApexStocks",values:[!1,!1,!0,!0]}];function j(){return(0,r.jsx)("svg",{className:"pricing-table__cell-icon pricing-table__cell-icon--check",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,"aria-hidden":"true",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}function f(){return(0,r.jsx)("svg",{className:"pricing-table__cell-icon pricing-table__cell-icon--cross",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,"aria-hidden":"true",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}function g(e){let{value:s}=e;return!0===s?(0,r.jsx)(j,{}):!1===s?(0,r.jsx)(f,{}):(0,r.jsx)("span",{children:s})}
1function v(e){let{config:s}=e,[a,i]=(0,n.useState)(!1),[t,l]=(0,n.useState)(null),o=(0,n.useRef)(null),c=(0,n.useRef)(null),d=(0,n.useRef)(null);return(0,n.useLayoutEffect)(()=>{if(!a)return void l(null);let e=c.current,s=d.current;if(e&&s){let a=e.getBoundingClientRect(),r=s.offsetWidth,n=s.offsetHeight,i=a.bottom+6;if(i+n>window.innerHeight-8){let e=a.top-6-n;i=e>=8?e:Math.max(8,window.innerHeight-8-n)}l({top:Math.round(i),left:Math.round(Math.max(8,Math.min(a.left+a.width/2-r/2,window.innerWidth-r-8)))})}function r(e){o.current&&!o.current.contains(e.target)&&i(!1)}function n(e){"Escape"===e.key&&i(!1)}function t(e){var s;"scroll"===e.type&&e.target instanceof Node&&(null==(s=d.current)?void 0:s.contains(e.target))||i(!1)}return document.addEventListener("mousedown",r),document.addEventListener("keydown",n),window.addEventListener("scroll",t,!0),window.addEventListener("resize",t),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",n),window.removeEventListener("scroll",t,!0),window.removeEventListener("resize",t)}},[a]),(0,r.jsxs)("span",{className:"feature-popover",ref:o,children:[(0,r.jsx)("button",{ref:c,type:"button",className:"feature-popover__trigger","aria-label":s.triggerLabel,"aria-expanded":a,"aria-haspopup":"menu",onClick:()=>i(e=>!e),children:(0,r.jsx)(m.l,{className:s.crownClassName,size:13,label:s.crownLabel})}),a&&(0,r.jsxs)("div",{ref:d,className:"feature-popover__panel",role:"menu",style:t?{top:t.top,left:t.left}:{top:0,left:0,visibility:"hidden"},children:[(0,r.jsx)("p",{className:"feature-popover__title",children:s.title}),(0,r.jsx)("ul",{className:"feature-popover__list",children:s.features.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(u(),{href:e.href,role:"menuitem",className:"feature-popover__link",onClick:()=>i(!1),children:e.label})},e.href))})]})]})}function b(e){let{feature:s}=e;return(0,r.jsxs)("span",{className:"pricing-feature-name",children:[s.name,s.popover&&(0,r.jsx)(v,{c
1onfig:s.popover})]})}function N(e){let{onSelectPlan:s,loading:a}=e;return(0,r.jsx)("div",{className:"pricing-cards",children:p.map((e,n)=>{let i=h[e];return(0,r.jsxs)("div",{className:"pricing-card".concat("premium"===e?" pricing-card--featured":""),children:[(0,r.jsxs)("div",{className:"pricing-card__header",children:[(0,r.jsx)("div",{className:"pricing-card__label",children:i.label}),i.freeNote?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"pricing-card__free-label",children:"Free"}),(0,r.jsx)("div",{className:"pricing-card__free-note",children:i.freeNote}),(0,r.jsx)("div",{className:"pricing-card__price",style:{fontSize:"var(--font-size-base)"},children:i.price}),(0,r.jsx)("div",{className:"pricing-card__price-note",children:i.priceNote})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"pricing-card__price",children:i.price}),(0,r.jsx)("div",{className:"pricing-card__price-note",children:i.priceNote})]})]}),(0,r.jsx)("div",{className:"pricing-card__body",children:x.map(e=>(0,r.jsxs)("div",{className:"pricing-card__row",children:[(0,r.jsx)("span",{className:"pricing-card__feature",children:(0,r.jsx)(b,{feature:e})}),(0,r.jsx)("span",{className:"pricing-card__value",children:(0,r.jsx)(g,{value:e.values[n]})})]},e.name))}),(0,r.jsx)("div",{className:"pricing-card__footer",children:(0,r.jsx)(l.Button,{onClick:()=>s(e),disabled:!!a,loading:a===e,loadingText:"Loading...",children:"Buy Now"})})]},e)})})}function y(e){let{onSelectPlan:s,loading:a}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(N,{onSelectPlan:s,loading:a}),(0,r.jsx)("div",{className:"pricing-table-wrap",children:(0,r.jsxs)("table",{className:"pricing-table",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{}),p.map(e=>(0,r.jsx)("th",{children:h[e].label},e))]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{scope:"row",children:"Price (Annually)"}),p.map(e=>{let s=h[e];return(0,r.jsx)("td",{className:"plan-price",children:s.freeNote?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"plan-price__free-label",children:"Free"}),(0,r.jsx)("span",{className:"plan-price__free-note",children:s.freeNote}),s.price," ",(0,r.jsx)("small",{children:s.priceNote})]}):(0,r.jsxs)(r.Fragment,{children:[s.price," ",(0,r.jsx)("small",{children:s.priceNote})]})},e)})]}),(0,r.jsxs)("tr",{className:"plan-actions",children:[(0,r.jsx)("th",{scope:"row"}),p.map(e=>(0,r.jsx)("td",{children:(0,r.jsx)(l.Button,{onClick:()=>s(e),disabled:!!a,loading:a===e,loadingText:"Loading...",children:"Buy Now"})},e))]}),x.map(e=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{scope:"row",children:(0,r.jsx)(b,{feature:e})}),e.values.map((e,s)=>(0,r.jsx)("td",{children:(0,r.jsx)(g,{value:e})},s))]},e.name))]})]})})]})}var w=a(4026),_=a(960),C=a(5802);let k={company:"",firstName:"",lastName:"",email:"",invoiceEmail:"",phone:"",vat:"",billingAddress1:"",billingAddress2:"",city:"",state:"",zipCode:"",country:""};function S(){let e=(0,i.useRouter)(),{user:s,isLoggedIn:a,openLoginPopup:d}=(0,t.A)(),[u,m]=(0,n.useState)(1),[p,h]=(0,n.useState)(null),[x,j]=(0,n.useState)(1),[f,g]=(0,n.useState)(k),[v,b]=(0,n.useState)(null),[N,S]=(0,n.useState)(!1),[A,L]=(0,n.useState)(null),[E,P]=(0,n.useState)(null),[M,F]=(0,n.useState)(""),[B,I]=(0,n.useState)(null),[R,T]=(0,n.use
1State)({is_oem:!1,is_redistribution:!1,needs_po_or_wire:!1,needs_custom_discount:!1}),V=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(a&&null!==V.current){let e=V.current;V.current=null,m(e),window.location.hash="step=".concat(e),window.scrollTo({top:0,behavior:"smooth"})}},[a]),(0,n.useEffect)(()=>{a&&(null==s?void 0:s.email)&&3===u&&!f.email&&g(e=>({...e,email:e.email||s.email}))},[a,s,u,f.email]),(0,n.useEffect)(()=>{3===u&&F(f.country)},[u,f.country]);let q=p?w.Jh[p].price:0,$="oem"===p,D=$?w.Jh.oem.price:x*q,z=p?w.Jh[p].label:"",W=Object.values(R).some(Boolean),O=(0,n.useCallback)(e=>{if(L(null),e>=3&&!a){d(),V.current=e;return}m(e),window.location.hash="step=".concat(e),window.scrollTo({top:0,behavior:"smooth"})},[a,d]);async function U(s){b(s),L(null);try{if(a){let e=(0,w.jF)(),s=await (0,_.Vg)((0,_.y0)("/payment/check-active-subscription?stripe_env=".concat(e)));if(s.ok){let e=await s.json();if(e.hasActiveSubscription){var r,n,i;P({planName:(null==(r=e.subscription)?void 0:r.planName)||"Active Plan",seatCount:(null==(n=e.subscription)?void 0:n.seatCount)||0,status:(null==(i=e.subscription)?void 0:i.status)||"active"}),b(null);return}}}}catch(e){}if(h(s),j(1),b(null),"oem"===s)return void e.push("/pricing/sales-review?plan=oem&is_oem=1&is_redistribution=1&reason=oem_plan_selected");O(2)}async function G(e){e.preventDefault();let a=e.currentTarget,r=e=>{var s;return(null==(s=a.elements.namedItem(e))?void 0:s.value)||""},n=r("country").toUpperCase(),i=r("zipCode");if(!(0,C.jn)(n,i))return void I("That ".concat("US"===n?"ZIP":"postal"," code doesn't look right for the selected country."));I(null),g({company:r("company"),firstName:r("firstName"),lastName:r("lastName"),email:f.email||(null==s?void 0:s.email)||"",invoiceEmail:r("invoiceEmail").trim(),phone:r("phone"),vat:r("vat"),billingAddress1:r("billingAddress1"),billingAddress2:r("billingAddress2"),city:r("city"),state:r("state"),zipCode:i,country:n}),O(4)}async function H(){if(p){S(!0),L(null);try{let{productIds:a,priceIds:r,environment:n}=(0,w.FC)(),i=await (0,_.$P)((0,_.y0)("/payment/create-quote"),{productId:a[p],priceId:r[p],planType:p,quantity:$?1:x,stripe_env:n,displayName:"".concat(f.firstName," ").concat(f.lastName),billing:{company:f.company,firstName:f.firstName,lastName:f.lastName,email:f.email,invoiceEmail:f.invoiceEmail||void 0,phone:f.phone,vat:f.vat,address:{line1:f.billingAddress1,line2:f.billingAddress2,city:f.city,state:f.state,postal_code:f.zipCode,country:f.country}},metadata:{plan:z,seats:$?"unlimited":String(x)}});if(!i.ok){var s;let e=await i.json().catch(()=>({}));throw Error((null==e||null==(s=e.error)?void 0:s.message)||(null==e?void 0:e.message)||"Quote generation failed (".concat(i.status,")"))}let t=await i.json();if(!t.quoteId)throw Error("No quote ID returned");e.push("/pricing/quote/".concat(t.quoteId))}catch(e){L(e instanceof Error?e.message:"An error occurred"),S(!1)}}}return(0,r.jsxs)("div",{children:[(0,r.jsx)("ul",{className:"progress-bar",id:"progressBar",children:[1,2,3,4].map(e=>(0,r.jsxs)("li",{"data-step":e,className:e<=u?"active":"",children:[(0,r.jsx)("div",{className:"circle",children:e}),(0,r.jsx)("span",{className:"label",children:["Plan","Seats","Billing","Confirm"][e-1]})]},e))}),A&&(0,r.jsx)("div",{className:"error-message text-center",children:A}),1===u&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(y,{onSelectPlan:U,loading:v})}),u>=2&&p&&(0,r.jsx)("div",{className:"pricing-col-container",children:(0,r.jsxs)("div",{className:"col-wrap",children:[(0,r.jsxs)("div",{className:"col-main",children:[2===u&&(0,r.jsxs)("div",{id:"step2",className:"step-screen active step-seat-selection",children:[(0,r.jsx)("h2",{children:"Select the Number of Seats"}),(0,r.jsx)("br",{}),(0,r.jsxs)("p",{id:"selectedPlanLabel",children:[z," Plan selected"]}),!$&&(0,r.jsxs)("div",{id:"seatSelectionSection",children:[(0,r.jsx)("label",{htmlFor:"seatCount",children:"Developer Seats"}),(0,r.jsx)("input",{type:"number",id:"seatCount",name:"seatCount",value:x,min:1,onChange:e=>j(Math.max(1,parseInt(e.target.value)||1))}),(0,r.jsx)("p",{children:(0,r.jsx)("small",{children:"Each seat allows one developer to use the premium features."})})]}),$&&(0,r.jsx)("div",{className:"enterprise-notice",children:(0,r.jsxs)("div",{className:"enterprise-content",children:[(0,r.jsx)("h3",{children:"OEM Plan: one application, unlimited developers"}),(0,r.jsxs)("p",{children:["This license covers ",(0,r.jsx)("strong",{children:"one application or product"})," that you redistribute, with ",(0,r.jsx)("strong",{children:"unlimited developer seats"})," working on it at no additional cost, and every licensed feature included."]}),(0,r.jsxs)("p",{children:["Redistributing a second application needs a second license."," ",(0,r.jsx)("a",{href:"mailto:[email protected]",children:"Talk to sales"})," if you have more than one."]})]})}),(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),(0,r.jsx)(l.Button,{variant:"outline",color:"success",onClick:()=>O(1),children:"Back to Plans"})," ",(0,r.jsx)(l.Button,{variant:"filled",color:"success",onClick:function(){x<1||O(3)},children:"Next: Billing & Payment"})]}),3===u&&(0,r.jsxs)("div",{id:"step3",className:"step-screen active",children:[(0,r.jsx)("h2",{children:"Billing Details"}),(null==s?void 0:s.email)&&(0,r.jsxs)("p",{className:"signed-in-as",children:["Signed in as ",(0,r.jsx)("strong",{children:s.email})]}),(0,r.jsx)("br",{}),(0,r.jsxs)("form",{id:"billingForm",onSubmit:G,children:[(0,r.jsxs)("div",{className:"form-row",children:[(0,r.jsx)("label",{htmlFor:"company",children:"Company"}),(0,r.jsx)("input",{type:"text",id:"company",name:"company",defaultValue:f.company,required:!0})]}),(0,r.jsxs)("div",{className:"form-row",children:[(0,r.jsx)("label",{htmlFor:"firstName",children:"First Name"}),(0,r.jsx)("input",{type:"text",id:"firstName",name:"firstName",defaultValue:f.firstName,required:!0})]}),(0,r.jsxs)("div",{className:"form-row",children:[(0,r.jsx)("label",{htmlFor:"lastName",children:"Last Name"}),(0,r.jsx)("input",{type:"text",id:"lastName",name:"lastName",defaultValue:f.lastName,required:!0})]}),(0,r.jsxs)("div",{className:"form-row",children:[(0,r.jsx)("label",{htmlFor:"invoiceEmail",children:"Send invoices to"}),(0,r.jsxs)("div",{className:"form-row__control",children:[(0,r.jsx)("input",{type:"email",id:"invoiceEmail",n
1ame:"invoiceEmail",defaultValue:f.invoiceEmail||(null==s?void 0:s.email)||"",placeholder:"[email protected]",autoComplete:"email"}),(0,r.jsx)("small",{className:"form-row__hint",children:"Stripe invoices and renewal receipts will be sent here."})]})]}),(0,r.jsxs)("div",{className:"form-row",children:[(0,r.jsx)("label",{htmlFor:"phone",children:"Phone (optional)"}),(0,r.jsx)("input",{type:"tel",id:"phone",name:"phone",defaultValue:f.phone,placeholder:"+1 555 123 4567",autoComplete:"tel"})]}),(0,r.jsxs)("div",{className:"form-row",children:[(0,r.jsx)("label",{htmlFor:"vat",children:"Tax ID / VAT (optional)"}),(0,r.jsxs)("div",{className:"form-row__control",children:[(0,r.jsx)("input",{type:"text",id:"vat",name:"vat",defaultValue:f.vat}),(0,r.jsx)("small",{className:"form-row__hint",children:"Enter your VAT number, EIN, GSTIN, ABN, CNPJ, or other tax registration ID."})]})]}),(0,r.jsxs)("div",{className:"form-row",children:[(0,r.jsx)("label",{htmlFor:"billingAddress1",children:"Billing Address Line 1"}),(0,r.jsx)("input",{type:"text",id:"billingAddress1",name:"billingAddress1",defaultValue:f.billingAddress1,required:!0})]}),(0,r.jsxs)("div",{className:"form-row",children:[(0,r.jsx)("label",{htmlFor:"billingAddress2",children:"Billing Address Line 2"}),(0,r.jsx)("input",{type:"text",id:"billingAddress2",name:"billingAddress2",defaultValue:f.billingAddress2})]}),(0,r.jsxs)("div",{className:"form-row",children:[(0,r.jsx)("label",{htmlFor:"country",children:"Country"}),(0,r.jsxs)("select",{id:"country",name:"country",defaultValue:f.country,onChange:e=>{F(e.target.value),B&&I(null)},required:!0,children:[(0,r.jsx)("option",{value:"",children:"Select a country"}),C.FS.map(e=>(0,r.jsx)("option",{value:e.code,children:e.name},e.code))]})]}),(0,r.jsxs)("div",{className:"form-row",children:[(0,r.jsx)("label",{htmlFor:"city",children:"City"}),(0,r.jsx)("input",{type:"text",id:"city",name:"city",defaultValue:f.city,required:!0})]}),(0,r.jsxs)("div",{className:"form-row",children:[(0,r.jsx)("label",{htmlFor:"state",children:"US"===M?"State":"State / Province / Region"}),"US"===M?(0,r.jsxs)("select",{id:"state",name:"state",defaultValue:f.state,required:!0,children:[(0,r.jsx)("option",{value:"",children:"Select a state"}),C.Ky.map(e=>(0,r.jsx)("option",{value:e.code,children:e.name},e.code))]}):(0,r.jsx)("input",{type:"text",id:"state",name:"state",defaultValue:f.state,required:C.HK.has(M)})]}),(0,r.jsxs)("div",{className:"form-row",children:[(0,r.jsx)("label",{htmlFor:"zipCode",children:"US"===M?"ZIP Code":"Postal Code"}),(0,r.jsxs)("div",{className:"form-row__control",children:[(0,r.jsx)("input",{type:"text",id:"zipCode",name:"zipCode",defaultValue:f.zipCode,onChange:()=>B&&I(null),"aria-invalid":!!B||void 0,"aria-describedby":B?"zipCode-error":void 0,className:B?"has-error":void 0,required:!0}),B&&(0,r.jsx)("p",{id:"zipCode-error",className:"field-error",role:"alert",children:B})]})]}),(0,r.jsx)("br",{}),(0,r.jsxs)(l.Button,{variant:"outline",color:"success",type:"button",onClick:()=>O($?1:2),children:["Back to ",$?"Plans":"Seats"]})," ",(0,r.jsx)(l.Button,{variant:"filled",color:"success",type:"submit",children:"Next: Review & Payment"})]})]}),4===u&&(0,r.jsxs)("div",{id:"step4",className:"step-screen active step-gating",children:[(0,r.jsx)("h2",{children:"Confirm Usage"}),(0,r.jsx)("p",{className:"gating-intro",children:"A couple of quick questions so we can route you to the right purchase path. Tick anything that applies."}),(0,r.jsxs)("div",{className:"gating-questions",children:[(0,r.jsxs)("label",{className:"gating-question",children:[(0,r.jsx)("input",{type:"checkbox",checked:R.is_oem,onChange:e=>T(s=>({...s,is_oem:e.target.checked}))}),(0,r.jsx)("span",{children:"The library will be embedded in a product, SDK, plugin, component, template, or library distributed to third parties."})]}),(0,r.jsxs)("label",{className:"gating-question",children:[(0,r.jsx)("input",{type:"checkbox",checked:R.is_redistribution,onChange:e=>T(s=>({...s,is_redistribution:e.target.checked}))}),(0,r.jsx)("span",{children:"I need redistribution rights or OEM licensing."})]}),(0,r.jsxs)("label",{className:"gating-question",children:[(0,r.jsx)("input",{type:"checkbox",checked:R.needs_po_or_wire,onChange:e=>T(s=>({...s,needs_po_or_wire:e.target.checked}))}),(0,r.jsx)("span",{children:"I need to pay by purchase order (PO), wire transfer, or net terms."})]}),(0,r.jsxs)("label",{className:"gating-question",children:[(0,r.jsx)("input",{type:"checkbox",checked:R.needs_custom_discount,onChange:e=>T(s=>({...s,needs_custom_discount:e.target.checked}))}),(0,r.jsx)("span",{children:"I need a custom discount, custom contract terms, or legal redlines."})]})]}),W?(0,r.jsx)(c.N,{intent:"warning",className:"gating-routing-note",children:"Based on your answers, we'll route you to our sales team for a custom quote."}):(0,r.jsx)(c.N,{intent:"info",className:"gating-routing-note",children:"Standard commercial use: you'll get a quote you can pay by card immediately, or download as a PDF for procurement."}),(0,r.jsxs)("footer",{className:"gating-actions",children:[(0,r.jsx)(l.Button,{variant:"outline",color:"success",type:"button",onClick:()=>O(3),disabled:N,children:"â Back to billing"}),W?(0,r.jsx)(l.Button,{variant:"filled",color:"success",type:"button",className:"gating-actions__primary",onClick:function(){if(!p)return;let s=new URLSearchParams({plan:p});$||s.set("seats",String(x)),R.is_oem&&s.set("is_oem","1"),R.is_redistribution&&s.set("is_redistribution","1"),R.needs_po_or_wire&&s.set("needs_po_or_wire","1"),R.needs_custom_discount&&s.set("needs_custom_discount","1"),e.push("/pricing/sales-review?".concat(s.toString()))},children:"Continue to sales review"}):(0,r.jsx)(l.Button,{variant:"filled",color:"success",type:"button",className:"gating-actions__primary",onClick:H,disabled:N,loading:N,loadingText:"Generating quoteâ¦",children:"Generate Quote"})]})]})]}),(0,r.jsx)("div",{className:"col-cart",children:(0,r.jsxs)("div",{className:"cart-summary",id:"cartSummary",children:[(0,r.jsx)("h3",{children:"Cart Summary"}),(0,r.jsxs)("p",{children:["Plan Selected",(0,r.jsx)("br",{}),(0,r.jsx)("strong",{children:z})]}),(0,r.jsx)("hr",{}),!$&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("p",{children:["Seats",(0,r.jsx)("br",{}),(0,r.jsx)("strong",{children:x})]}),(0,r.jsx)("hr",{}),(0,r.jsxs)("p",{children:["Price per seat",(0,r.jsx)("br",{}),(0,r.jsxs)("strong",{children:["$",q,"/seat"]})]}),(0,r.jsx)("hr",{})]}),(0,r.jsxs)("p",{children:["Total (annual)",(0,r.jsx)("br",{}),(0,r.jsxs)("strong",{className:"grand-total",children:["$",D.toLocaleStr
1ing()]})]})]})})]})}),(0,r.jsxs)("div",{className:"pricing-wizard__sales-escape text-center",children:["Need a purchase order, wire transfer, OEM / redistribution license, or custom terms?"," ",(0,r.jsx)("a",{href:"/pricing/sales-review/",children:"Contact sales"}),"."]}),(0,r.jsx)(o.a,{open:!!E,onClose:()=>P(null),size:"md",title:"Active Subscription Found",description:"You already have an active subscription:",footer:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.Button,{variant:"outline",color:"success",onClick:()=>P(null),children:"Close"}),(0,r.jsx)(l.Button,{variant:"filled",color:"brand",href:"/account-management/",children:"Go to Account"})]}),children:E&&(0,r.jsxs)("div",{className:"order-details",children:[(0,r.jsxs)("div",{className:"detail-item",children:[(0,r.jsx)("span",{children:"Plan:"}),(0,r.jsx)("strong",{children:E.planName})]}),(0,r.jsxs)("div",{className:"detail-item",children:[(0,r.jsx)("span",{children:"Seats:"}),(0,r.jsx)("strong",{children:"unlimited"===E.seatCount?"Unlimited":E.seatCount})]}),(0,r.jsxs)("div",{className:"detail-item",children:[(0,r.jsx)("span",{children:"Status:"}),(0,r.jsx)("strong",{className:"capitalize",children:E.status})]})]})})]})}}},e=>{e.O(0,[2619,7828,214,8441,1255,4977],()=>e(e.s=1885)),_N_E=e.O()}]);
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.