1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6423],{63880:function(n,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/billing",function(){return i(48875)}])},28540:function(n,e,i){"use strict";var t=i(67294),r=i(20366);e.Z=t.memo(function(n){let{currencyCode:e,number:i,locale:t}=n;return(0,r.Z)({currencyCode:e,number:i,locale:t})})},37279:function(n,e,i){"use strict";var t=i(85893),r=i(39403);e.Z=function(n){let{children:e,...i}=n;return(0,t.jsx)(r.Z,{bg:"var(--color-base-2)",border:"1px solid var(--color-border-1)",borderRadius:"8px",p:"24px",pb:"16px",...i,children:e})}},73587:function(n,e,i){"use strict";var t=i(85893),r=i(11163),s=i(39403),l=i(91269),o=i(65746),a=i(21239),d=i(98694);let c=[{name:"Profile",href:"/settings/personal"},{name:"Appearance",href:"/settings/appearance"},{name:"Referrals",href:"/settings/referrals"}],x=n=>{let{name:e,href:i,exactPath:r,router:s}=n;return(0,t.jsx)(o.Z.LinkItem,{href:i,active:r?s.asPath===i:s.asPath.startsWith(i),children:e,"data-ga-click":JSON.stringify({category:"Settings Navigation",action:"Clicked ".concat(e),label:i})})};e.Z=function(n){let{children:e}=n,i=(0,r.useRouter)(),{user:h}=(0,a.Z)(),u=[{name:"Company Profile",href:"/settings",exactPath:!0,show:(0,d.GJ)(h)},{name:"Account Details",href:"/settings/account",exactPath:!0,show:(0,d.GJ)(h)},{name:"Teammates",href:"/settings/team",show:(0,d.Fs)(h,"team_user_actions")},{name:"Plans & Billing",href:"/settings/billing",exactPath:!0,show:(0,d.GJ)(h)},{name:"Locations",href:"/settings/locations",exactPath:!0,show:(0,d.GJ)(h)},{name:"Standards & Formats",href:"/settings/standards",exactPath:!0,show:(0,d.GJ)(h)},{name:"Integrations",href:"/settings/integrations",exactPath:!1,show:(0,d.GJ)(h)},{name:"Webhooks",href:"/settings/webhooks",exactPath:!0,show:(0,d.GJ)(h)},{name:"Defaults",href:"/settings/other",exactPath:!0,show:(0,d.GJ)(h)}],p=u.filter(n=>{let{show:e}=n;return e});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Z,{as:"h1",fontSize:"24px",mb:"24px",children:"Settings"}),(0,t.jsxs)(s.Z,{display:"grid",gridTemplateColumns:["1fr","1fr","1fr","20% 1fr"],gridGap:"24px",children:[(0,t.jsxs)(s.Z,{as:"nav",children:[p.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)(l.Z,{sx:{color:"var(--accents-5)",fontSize:"12px",fontWeight:"bold"},children:"Workspace"}),(0,t.jsx)(o.Z,{children:p.map(n=>(0,t.jsx)(x,{router:i,...n},n.name))})]}),(0,t.jsx)(l.Z,{sx:{color:"var(--accents-5)",fontSize:"12px",fontWeight:"bold"},children:"Personal"}),(0,t.jsx)(o.Z,{children:c.map(n=>(0,t.jsx)(x,{router:i,...n},n.name))})]}),(0,t.jsx)("div",{children:e})]})]})}},20366:function(n,e,i){"use strict";var t=i(98694);let r=navigator.language;e.Z=function(n){let{currencyCode:e,number:i,locale:s=r}=n;try{return new Intl.NumberFormat(s,{style:"currency",currency:e}).format((0,t.f_)(i))}catch(n){return i}}},48875:function(n,e,i){"use strict";i.r(e),i.d(e,{default:function(){return S}});var t=i(85893),r=i(52978),s=i(39403),l=i(32737),o=i(91269),a=i(14648),d=i(67294),c=i(4179),x=i(28540),h=i(57947),u=function(n){let{renderTrigger:e,subscriptionLinks:i}=n,[r,u]=(0,d.useState)(!1);return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(a.Z,{title:"Choose a plan",width:"xxl",open:r,onOpen:()=>u(!0),onClose:()=>u(!1),renderTrigger:e,children:[(0,t.jsx)(s.Z,{display:"flex",flexDirection:"column",children:(0,t.jsx)(s.Z,{as:"ul",m:"auto",maxWidth:"680px",sx:{padding:"5px",listStyleType:"none",display:"grid",gridTemplateColumns:[null,null,"repeat(auto-fit, minmax(20ch, 1fr))"],gridGap:"15px"},children:i.map(n=>(0,t.jsxs)(s.Z,{as:"li",children:[(0,t.jsxs)(s.Z,{sx:{flexGrow:"1",display:"flex",flexDirection:"column",padding:"15px",bg:"rgb(249, 246, 241)",border:"1px solid rgb(249, 246, 241)",borderRadius:"8px"},children:[(0,t.jsx)(o.Z,{fontWeight:"bold",fontSize:"16px",mb:"12px",children:null==n?void 0:n.name}),(0,t.jsx)(o.Z,{fontWeight:"bold",fontSize:"18px",children:(0,t.jsx)(x.Z,{currencyCode:null==n?void 0:n.currency,number:null==n?void 0:n.price})}),(0,t.jsx)(o.Z,{fontSize:"12px",mb:"18px",children:"Per month, billed monthly"}),(0,t.jsx)(l.Z,{as:"a",href:null==n?void 0:n.url,disabled:!(null==n?void 0:n.url),children:(null==n?void 0:n.url)?"Upgrade plan":"Current plan"})]}),(0,t.jsxs)(s.Z,{sx:{flexGrow:"1",display:"flex",flexDirection:"column",padding:"15px",mt:"6px",bg:"rgb(249, 246, 241)",border:"1px solid rgb(249, 246, 241)",borderRadius:"8px"},children:[(0,t.jsx)(o.Z,{fontWeight:"bold",fontSize:"12px",children:"Worksp
1ace"}),(0,t.jsxs)(s.Z,{mb:"4px",fontSize:"12px",children:[(0,t.jsx)(h.Z,{width:14,height:14,color:"rgb(104, 104, 212)"}),(0,t.jsx)(o.Z,{as:"span",ml:"4px",mt:"-2px",children:"Unlimited users, products, and orders"})]}),(0,t.jsx)(o.Z,{fontWeight:"bold",fontSize:"12px",mt:"8px",children:"Automations"}),(0,t.jsxs)(s.Z,{mb:"4px",fontSize:"12px",children:[(null==n?void 0:n.name)==="Plus"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.Z,{width:14,height:14,color:"rgb(104, 104, 212)"}),(0,t.jsx)(o.Z,{as:"span",ml:"4px",mt:"-2px",children:"3 custom properties"}),(0,t.jsx)("br",{}),(0,t.jsx)(h.Z,{width:14,height:14,color:"rgb(104, 104, 212)"}),(0,t.jsx)(o.Z,{as:"span",ml:"4px",mt:"-2px",children:"Standard workflows"}),(0,t.jsx)("br",{})]}),(null==n?void 0:n.name)==="Pro"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.Z,{width:14,height:14,color:"rgb(104, 104, 212)"}),(0,t.jsx)(o.Z,{as:"span",ml:"4px",mt:"-2px",children:"5 custom properties"}),(0,t.jsx)("br",{}),(0,t.jsx)(h.Z,{width:14,height:14,color:"rgb(104, 104, 212)"}),(0,t.jsx)(o.Z,{as:"span",ml:"4px",mt:"-2px",children:"Custom, AI workflows"}),(0,t.jsx)("br",{}),(0,t.jsx)(h.Z,{width:14,height:14,color:"rgb(104, 104, 212)"}),(0,t.jsx)(o.Z,{as:"span",ml:"4px",mt:"-2px",children:"Standard integrations, Webhooks"}),(0,t.jsx)("br",{})]})]}),(0,t.jsx)(o.Z,{fontWeight:"bold",fontSize:"12px",mt:"8px",children:"Reports"}),(0,t.jsxs)(s.Z,{mb:"4px",fontSize:"12px",children:[(0,t.jsx)(h.Z,{width:14,height:14,color:"rgb(104, 104, 212)"}),(0,t.jsx)(o.Z,{as:"span",ml:"4px",mt:"-2px",children:"Standard exports"}),(0,t.jsx)("br",{})]}),(0,t.jsx)(o.Z,{fontWeight:"bold",fontSize:"12px",mt:"8px",children:"Support"}),(0,t.jsxs)(s.Z,{mb:"4px",fontSize:"12px",children:[(0,t.jsx)(h.Z,{width:14,height:14,color:"rgb(104, 104, 212)"}),(0,t.jsx)(o.Z,{as:"span",ml:"4px",mt:"-2px",children:"Email support"}),(0,t.jsx)("br",{}),(null==n?void 0:n.name)==="Pro"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.Z,{width:14,height:14,color:"rgb(104, 104, 212)"}),(0,t.jsx)(o.Z,{as:"span",ml:"4px",mt:"-2px",children:"Personal onboarding"}),(0,t.jsx)("br",{})]})]})]})]},null==n?void 0:n.id))})}),(0,t.jsx)(s.Z,{textAlign:"center",mt:"18px",children:(0,t.jsxs)(o.Z,{fontSize:"14px",children:["Interested in enterprise features like dedicated support, higher limits, and custom integrations?"," ",(0,t.jsx)(c.Z,{href:"https://order41.com/contact/sales",target:"_blank",sx:{color:"var(--color-base-1)",fontWeight:"bold"},children:"Contact us"})]})})]})})},p=i(80108),g=i(37279),m=i(36309),f=i(73587),b=i(29764),j=i(49062),v=i(59734),Z=i(1637),w=i(8663),y=i(39135);let k="\n query GetBillingPageLinks($createLinks: Boolean){\n getBillingPageLinks(createLinks: $createLinks){\n subscriptionLinks{\n name\n id\n description\n url\n subscribed\n price\n currency\n features{\n name\n }\n }\n }\n }\n";function P(){var n,e,i,a,c,h;let j=(0,w.pm)(),P=(0,v.ZP)([k,{createLinks:!1}]),S=(0,v.ZP)([k,{createLinks:!0}]),L=(0,v.ZP)("\n query GetSubscriptionDetails{\n getSubscriptionDetails{\n subscribed\n price\n currency\n nextPaymentDate\n cardLast4\n cardBrand\n email\n }\n }\n"),z=async function(){var n;if(window.confirm("Are you sure you want to cancel your plan?"))try{let e=await r.Qk();S.mutate(),L.mutate(),j({content:null==e?void 0:null===(n=e.cancelAllPaymentSubscriptions)||void 0===n?void 0:n.message})}catch(n){j({variant:"danger",content:null==n?void 0:n.message})}},C=(0,d.useMemo)(()=>{var n,e,i,t;return(null==S?void 0:null===(e=S.data)||void 0===e?void 0:null===(n=e.getBillingPageLinks)||void 0===n?void 0:n.subscriptionLinks)||(null==P?void 0:null===(t=P.data)||void 0===t?void 0:null===(i=t.getBillingPageLinks)||void 0===i?void 0:i.subscriptionLinks)||[]},[null==P?void 0:null===(e=P.data)||void 0===e?void 0:null===(n=e.getBillingPageLinks)||void 0===n?void 0:n.subscriptionLinks,null==S?void 0:null===(a=S.data)||void 0===a?void 0:null===(i=a.getBillingPageLinks)||void 0===i?void 0:i.subscriptionLinks]),W=C.find(n=>null==n?void 0:n.subscribed),_=null==L?void 0:null===(c=L.data)||void 0===c?void 0:c.getSubscriptionDetail
1s;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(m.Z,{children:(0,t.jsx)(f.Z,{children:(0,t.jsx)(Z.FA,{gap:"32px",children:(0,t.jsxs)(g.Z,{children:[(0,t.jsx)(y.Z,{id:"plans-billing",as:"h2",sx:{fontSize:"20px",fontWeight:600},children:"Plans & Billing"}),(0,t.jsx)(p.Z,{sx:{mx:"-24px",mt:4,mb:4}}),(0,t.jsxs)(s.Z,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,t.jsx)(b.Z,{isLoaded:_,sx:{height:"35px",mr:"24px"},children:(0,t.jsx)(s.Z,{children:(null==_?void 0:_.subscribed)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Z,{as:"p",fontSize:"14px",fontWeight:"bold",children:null==W?void 0:W.name}),(0,t.jsx)(o.Z,{as:"p",fontSize:"14px",color:"var(--accents-5)",children:null==W?void 0:W.description})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Z,{as:"p",fontSize:"14px",fontWeight:"bold",children:"Free"}),(0,t.jsx)(o.Z,{as:"p",fontSize:"14px",color:"var(--accents-5)",children:"Start your pro plan today"})]})})}),(0,t.jsx)(u,{renderTrigger:()=>(0,t.jsx)(l.Z,{children:"Change plan"}),subscriptionLinks:C})]}),(0,t.jsx)(p.Z,{sx:{mx:"-24px",mt:4,mb:3}}),(0,t.jsx)(b.Z,{isLoaded:_,sx:{height:"50px"},children:(null==_?void 0:_.subscribed)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.Z,{my:"24px",children:(0,t.jsxs)(o.Z,{as:"p",fontSize:"14px",children:["The next payment of"," ",(0,t.jsx)(o.Z,{as:"span",fontWeight:"bold",children:(0,t.jsx)(x.Z,{currencyCode:null==_?void 0:_.currency,number:null==_?void 0:_.price})})," ","will be charged on"," ",(0,t.jsx)(o.Z,{as:"span",fontWeight:"bold",children:null===(h=_||"")||void 0===h?void 0:h.nextPaymentDate.split(" ")[0]})," ","to the saved credit card"," ",(0,t.jsxs)(o.Z,{as:"span",fontWeight:"bold",sx:{textTransform:"uppercase"},children:[null==_?void 0:_.cardBrand," ****",null==_?void 0:_.cardLast4]}),". The billing email is ",null==_?void 0:_.email]})}),(0,t.jsx)(Z.sL,{gap:"16px",children:(0,t.jsx)(l.Z,{variant:"danger",onClick:()=>{z()},children:"Cancel Plan"})})]}):(0,t.jsx)(s.Z,{m:"26px auto 18px auto",children:(0,t.jsxs)(o.Z,{as:"p",fontSize:"14px",children:["The payment of"," ",(0,t.jsx)(o.Z,{as:"span",fontWeight:"bold",children:(0,t.jsx)(x.Z,{currencyCode:"usd",number:"0"})})," ","will be charged."]})})})]})})})})})}P.requireAuth=!0,P.accountType=[j.Z.buyer,j.Z.seller],P.meta={title:"Plans & Billing"};var S=P},39135:function(n,e,i){"use strict";var t=i(82729),r=i(85893),s=i(45697),l=i.n(s),o=i(19521),a=i(91269),d=i(15857);function c(){let n=(0,t._)(["\n .anchor {\n color: currentColor;\n margin-left: 8px;\n }\n\n .anchor > svg {\n visibility: hidden;\n }\n\n &:hover .anchor > svg {\n visibility: visible;\n }\n"]);return c=function(){return n},n}let x=(0,o.ZP)(a.Z).withConfig({componentId:"sc-1a98774c-0"})(c());function h(n){let{id:e,children:i,...t}=n;return(0,r.jsxs)(x,{...t,children:[i,(0,r.jsx)("a",{href:"#".concat(e),id:e,"aria-hidden":"true",className:"anchor",children:(0,r.jsx)(d.Z,{fill:"currentColor"})})]})}h.propTypes={id:l().string.isRequired},e.Z=h},29764:function(n,e,i){"use strict";var t=i(82729),r=i(85893),s=i(45697),l=i.n(s),o=i(19521),a=i(98499);function d(){let n=(0,t._)(["\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n"]);return d=function(){return n},n}function c(){let n=(0,t._)(["\n animation: "," 8s ease-in-out infinite;\n background-image: linear-gradient(\n 270deg,\n var(--accents-1),\n var(--accents-2),\n var(--accents-2),\n var(--accents-1)\n );\n background-size: 400% 100%;\n border-radius: 5px;\n width: 100%;\n min-height: 24px;\n ","\n"]);return c=function(){return n},n}let x=(0,o.F4)(d()),h=o.ZP.div.withConfig({componentId:"sc-cdd755db-0"})(c(),x,a.Z);function u(n){let{isLoaded:e,sx:i,children:t}=n;return e?t:(0,r.jsx)(h,{sx:i})}u.propTypes={isLoaded:l().bool},u.defaultPropTypes={isLoaded:!1},e.Z=u},57947:function(n,e,i){"use strict";var t=i(85893);e.Z=function(n){return(0,t.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"currentColor",width:16,height:16,...n,children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})})}},15857:function(n,e,i){"use strict";var t=i(85893);e.Z=function(n){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",width:16,height:16,...n,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",fill:"none",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"})})}}},function(n){n.O(0,[2978,9774,2888,179],function(){return n(n.s=63880)}),_N_E=n.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.