1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fb6de7fb-1e13-4941-8612-98330b38694c",e._sentryDebugIdIdentifier="sentry-dbid-fb6de7fb-1e13-4941-8612-98330b38694c")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9378],{2191:(e,n,t)=>{t.d(n,{f:()=>r,x:()=>i});let i=new Set([0,8,9].concat("0123456789".split("").map(e=>e.charCodeAt(0)))),r=e=>n=>e.has(n.which)||n.preventDefault()},2545:(e,n,t)=>{t.d(n,{pz:()=>i,tD:()=>o,uS:()=>r,wm:()=>s});let i={PURCHASE:"purchase",RENEW:"renew",ADDON:"addon",PREVIEW:"preview",FREE_TRIAL_UPGRADE:"free_trial_upgrade"},r={OTHER:1,SUBSCRIPTION_TRIAL:2,SUBSCRIPTION_PURCHASE:3,SUBSCRIPTION_RENEW_AS_NEW:4,SUBSCRIPTION_RENEW_AS_SAME:5,SUBSCRIPTION_ADD_ON:6,SUBSCRIPTION_PLAN_UPGRADE:7,SUBSCRIPTION_CHANGE_ORDER:8,PERPETUAL:9,RETURN:10,SUBSCRIPTION_INITIALIZATION:11,PERPETUAL_INITIALIZATION:12},s={COMPLETE:"complete",PENDING:"pending"},a=new Set(Object.values(i)),o=e=>!e||"string"==typeof e&&a.has(e.toLowerCase())},5139:(e,n,t)=>{t.d(n,{A:()=>r});var i=t(14232);let r=function(e){let n=(0,i.useRef)();return[(0,i.useCallback)(t=>e(t,n.current),[e]),n]}},8799:(e,n,t)=>{t.d(n,{A:()=>d});var i=t(14232),r=t(37638),s=t(55028),a=t(91951);let o={seats:[[a.mw,"errors.SEATS_REQUIRED"],[(e,{minSeats:n,maxSeats:t})=>e>=n&&e<=t,"errors.WRONG_SEATS"]]},l=(0,a.Ay)(o);var c=t(43577);let p=({subscriptionSize:e})=>e,u=new Map([[c.P_.SUBSCRIPTION,p],[c.P_.RENEW,p],[c.P_.ADDON,({newSeats:e})=>e]]),d=function(e=c.P_.SUBSCRIPTION,n,t){let{prices:a,subscription:o}=(0,r.BV)(),p=(0,i.useMemo)(()=>(0,s.VH)(t)?a.filter(e=>t(e,o)):a,[a]),d=(0,i.useMemo)(()=>u.get(e),[e]);if(null==d)throw Error(`Unknown Purchase Type "${e}"`);let m=(0,i.useCallback)(e=>p.find(n=>d(n)===e)||{price:null,renewalPrice:null},[p]),I=(0,i.useMemo)(()=>p.map(d),[p]),h=(0,i.useMemo)(()=>Math.min(...I),[I]),S=(0,i.useMemo)(()=>Math.max(...I),[I]),b=(0,i.useMemo)(()=>{let e=n??d(p[0]);return{...m(e),seats:e,minSeats:h,maxSeats:S,subscriptionID:o?.id}},[p]),y=(0,i.useCallback)((e,n)=>({...e,...m(n),seats:n}),[p]);return(0,i.useMemo)(()=>({updatePrice:y,minSeats:h,maxSeats:S,initialState:b,validateForm:l}),[y,h,S,b])}},19111:(e,n,t)=>{t.d(n,{o:()=>i});let i=({seats:e,price:n,newPlanCode:t,subscriptionID:i,newSeats:r,purchaseType:s})=>({storageService:a})=>{a.priceItem.write({seats:e,newSeats:r,price:n,planCode:t,purchaseType:s,subscriptionID:+i})}},25822:(e,n,t)=>{t.d(n,{Y:()=>r,f:()=>i});let i=({invoiceNumber:e})=>"T"===e[0],r=e=>["ERROR_ISUL_CREATE","ERROR_ISUL_UPDATE"].includes(e)},27108:(e,n,t)=>{t.d(n,{A:()=>l});var i=t(37876);t(14232);var r=t(95062),s=t(29210),a=t(67922);let o=({children:e,bodyClassName:n="",...t})=>(0,i.jsxs)(s.A,{isWrapper:!1,bgColor:"#F3F3EF",children:[(0,i.jsx)(s.A.Header,{children:(0,i.jsx)(a.A,{...t})}),(0,i.jsx)(s.A.Body,{className:n,children:e})]});o.propTypes={bodyClassName:r.string,children:r.node};let l=o},33107:(e,n,t)=>{t.d(n,{A:()=>S});var i=t(37876),r=t(14232),s=t(92630),a=t(37638),o=t(34569),l=t(95062),c=t(20299),p=t(19587),u=t(78678),d=t(41701),m=t(52233);let I=e=>n=>({storageService:t})=>{let{billingInfo:i,shippingInfo:r}=(0,d.k)(n),s=(0,m.aQ)(e),a=(0,m.FA)(e);t.billingInfo.write({...i,company:s?e.billingCompany:i.company}),t.shippingInfo.write({...r,company:a?e.shippingCompany:r.company})},h=({next:e,apiRef:n,isTrial:t=!1,...l})=>{let{billingInfo:d,shippingInfo:h,customer:S,subscription:b}=(0,a.BV)(),[,y]=(0,u.os)(),f=(0,m.a_)(S),A=(0,r.useMemo)(()=>(0,m.aQ)(b)||t&&f,[b,f,t]),g=(0,r.useMemo)(()=>(0,m.FA)(b)||t&&f,[b,f,t]),C=(0,r.useMemo)(()=>{let e={shippingEmail:b?.customer?.email};return h?.isShiptoDifferent&&(e={...h,...e}),g&&(e={...e,shippingCompany:h?.shippingCompany?.trim()||S?.company?.trim()||null}),(0,c.C)({...S,...S?.company&&{company:S.company.trim()},...d,...e},y)},[S,d,h,y,g,b]),D=(0,a.Xt)(I(b)),N=(0,r.useCallback)(n=>(t,i,r)=>(r(I(b)(n)),e()),[I,e,b]),[R,{isLoading:T}]=(0,o.A)(N);return(0,i.jsxs)(i.Fragment,{children:[T&&(0,i.jsx)(s.A,{}),(0,i.jsx)(p.A,{initialState:C,action:R,className:"form form--stacked",onChange:D,"data-qa-selector":"billing-info-form",apiRef:n,isBillingInfoCompanyId:A,isShippingInfoCompanyId:g,...l})]})};h.propTypes={next:l.func.isRequired,apiRef:(0,l.oneOfType)([l.func,(0,l.shape)({current:l.any})])};let S=h},33600:(e,n,t)=>{t.d(n,{A:()=>o});var i=t(35584),r=t(77971),s=t(26093);let a=({cartAsJSON:e}={})=>{let n=null!=e?(0,i.c$)(e):null;return null!=n&&(0,r.j)(n)},o=({gqlClient:e,storageService:n})=>({loadCart:()=>{let t,i,r,{priceItem:a,billingInfo:o,shippingInfo:l}=n;return e("query getCartV2($billingInfo: BillingInfoInput!, $shippingInfo: ShippingInfoInput, $cartItems: [CartItemInput!]!) {\n getCartV2(billingInfo: $billingInfo, shippingInfo: $shippingInfo,cartItems: $cartItems) {\n ... on CartResponse {\n cartItems {\n platform\n subscriptionSize\n price\n newSeats\n billingPeriod\n expirationDate\n name\n subscriptionRenewPrice\n purchaseType\n planType\n }\n cartAsJSON\n }\n ... on GetCartFailure {\n errorCode\n message\n }\n }\n}",(t=a.read(),i=o.read(),r=l.read(),{cartItems:[{planCode:t.planCode,subscriptionSize:t.seats,licenseName:[i.firstName,i.lastName].join(" "),newSeats:t.newSeats,subscriptionID:t.subscriptionID,purchaseType:t.purchaseType}],billingInfo:{email:i.email,firstName:i.firstName,lastName:i.lastName,company:i.company,labName:i.labName,countryID:i.countryID,state:i.state,city:i.city,address1:i.address1,address2:i.address2,address3:i.address3,zipCode:i.zipCode,phone:i.phone,taxId:i.taxId},...r?.isShiptoDifferent&&{shippingInfo:{firstName:r.firstName,lastName:r.lastName,company:r.company,address1:r.address1,address2:r.address2,address3:r.address3,city:r.city,state:r.state,zipCode:r.zipCode,countryID:r.countryID,phone:r.phone,email:r.email,isShiptoDifferent:r.isShiptoDifferent}}})).then(({getCartV2:e})=>e).then(s.iD)},isCartActual:a})},36178:(e,n,t)=>{t.d(n,{A:()=>s});var i=t(31046),r=t(26093);let s=({gqlClient:e})=>({cancelSubscriptionById:(n,t,s)=>e("mutation cancelSubscriptionByIDV2(\n $subscriptionID: Int!\n $cancellationSurvey: CancellationSurveyInput!\n ) {\n cancelSubscriptionByIDV2(\n subscriptionID: $subscriptionID\n cancellationSurvey: $cancellationSurvey\n ) {\n ... on CancelSubscriptionByIDSuccess {\n result\n }\n ... on CancelSubscriptionByIDFailure {\n errorCode\n message\n }\n }\n }",{subscriptionID:n,cancellationSurvey:t},{planCode:s}).then(({cancelSubscriptionByIDV2:e})=>e).then(r.iD).then((0,i.Ey)(({errorCode:e})=>e,({result:e})=>e)),reactivateSubscriptionById:(n,t)=>e("mutation reactivateSubscriptionV2($subscriptionId: Int!){\n reactivateSubscriptionByIDV2(subscriptionID: $subscriptionId) {\n ... on ReactivateSubscriptionByIDSuccess {\n result\n }\n ... on ReactivateSubscriptionByIDFailure {\n errorCode\n message\n }\n }\n}",{subscriptionId:n},{planCode:t}).then(({reactivateSubscriptionByIDV2:e})=>e).then(r.iD).then((0,i.Ey)(({errorCode:e})=>e,({result:e})=>e)),updateSubscriptionById:(n,t,i,s=null)=>e("mutation updateSubscriptionByIDV2($subscriptionId: Int!, $newSeats: Int!, $threeDSToken: String) {\n updateSubscriptionByIDV2(subscriptionID: $subscriptionId, newSeats: $newSeats, threeDSToken: $threeDSToken) {\n ... on Order {\n orderNumber\n totalCharged\n finalizeOrderResultCode\n }\n\n ... on UpdateSubscriptionByIDFailure {\n errorCode\n message\n threeDSTokenId\n }\n }\n }\n",{subscriptionId:n,newSeats:t,threeDSToken:s},{planCode:i}).then(({updateSubscriptionByIDV2:e})=>e).then(r.iD),changeSubscriptionPlan:(n,t,i,s,a=null)=>e("mutation changeSubscriptionPlanV2(\n $subscriptionID: Int!\n $newPlanCode: String!\n $newSubscriptionSize: Int!\n $threeDSToken: String\n) {\n changeSubscriptionPlanV2(\n subscriptionID: $subscriptionID\n newPlanCode: $newPlanCode\n newSubscriptionSize: $newSubscriptionSize\n threeDSToken: $threeDSToken\n ) {\n ... on Order {\n orderNumber\n totalCharged\n }\n ... on ChangeSubscriptionPlanFailure {\n errorCode\n message\n threeDSTokenId\n }\n }\n}",{subscriptionID:n,newPlanCode:t,newSubscriptionSize:i,threeDSToken:a},{planCode:s}).then(({changeSubscriptionPlanV2:e})=>e).then(r.iD)})},51330:(e,n,t)=>{t.d(n,{Y:()=>a});var i=t(31046),r=t(43577),s=t(61557);let a=({cartService:e},n,t,a)=>e.loadCart().then((0,i.YW)(({errorCode:e})=>{throw e},e=>(a(n=>({...n,cart:e})),(0,i.xe)(e)))).catch(e=>(0,i.MN)((0,s.P)(e)?e:[r.i3]))},51364:(e,n,t)=>{t.d(n,{A:()=>h});var i=t(37876);t(14232);var r=t(54058),s=t(37638),a=t(12007),o=t(95062),l=t(43577);let{ProductTitle:c,Seats:p,Price:u}=r.A,{ADDON:d}=l.P_,m=({t:e,item:{name:n,subscriptionSize:t,newSeats:r,price:s,billingPeriod:a,purchaseType:o,planType:l}})=>{let m=o===d?e("PRICE",{price:s}):e("PRICE_PER_PERIOD",{price:s,period:a});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c,{children:n}),l&&"personal"===l?null:(0,i.jsx)(p,{children:e("SEATS",{count:o===d?r:t})}),(0,i.jsx)(u,{children:m})]})};function I({isIsul:e=!1}
1){let[n]=(0,a.Ym)(e?"cart-details-isul":"cart-details"),{cart:t}=(0,s.BV)();return t?(0,i.jsx)(r.A,{title:n("SECTION_TITLE"),children:t.cartItems.map(e=>(0,i.jsx)(m,{t:n,item:e},e.name))}):null}m.propTypes={t:o.func.isRequired,item:(0,o.shape)({name:o.string.isRequired,price:o.number.isRequired,billingPeriod:o.string.isRequired,purchaseType:o.string.isRequired}).isRequired},I.propTypes={isIsul:o.bool};let h=I},52620:(e,n,t)=>{t.d(n,{A:()=>o});var i=t(37876);t(14232);var r=t(95062),s=t(31287);let a=({className:e="",center:n=!0,children:t,...r})=>(0,i.jsx)(s.A,{size:"l",center:n,className:e,...r,children:t});a.propTypes={className:r.string,center:r.bool,children:r.node.isRequired};let o=a},59637:(e,n,t)=>{t.d(n,{F:()=>i});let i=({target:e})=>{let n=e.value,t=parseInt(n,10);return Number.isNaN(t)?n:t}},64601:(e,n,t)=>{t.d(n,{A:()=>o});var i=t(37876);t(14232);var r=t(60379),s=t(2191);let a=(0,s.f)(s.x),o=e=>(0,i.jsx)(r.A,{...e,type:"number",hideInputNumberArrows:!1,onKeyPress:a})},67922:(e,n,t)=>{t.d(n,{A:()=>y});var i=t(37876),r=t(14232),s=t(89302),a=t(70112),o=t(35143),l=t(69967),c=t(13552),p=t(33351),u=t(12007),d=t(37638),m=t(28894),I=t(25503),h=t(63491);let S=r.memo(e=>(0,i.jsx)(s.A,{...e})),b=e=>async({authService:n})=>(e.preventDefault(),n.toAuth({internalRedirectPath:"/account/preferences"},{withSessionId:!0,method:"push"})),y=()=>{let[e]=(0,u.Ym)("header"),n=(0,d.Xt)(b);return(0,i.jsx)(S,{logo:h.Ay,isBorderBottomNone:!0,children:(0,i.jsx)(m.A,{utility:{lg:{display:"flex",justify:"end"}},sizing:{lg:{w:"full"}},children:(0,i.jsx)(a.A,{nav:"secondary",type:1,children:(0,i.jsxs)(o.A,{isSecondaryNav:!0,children:[(0,i.jsx)(l.A,{children:e("MY_ACCOUNT")}),(0,i.jsxs)(c.A,{align:"right",children:[(0,i.jsx)(p.A,{children:(0,i.jsx)(p.A.Link,{href:I.A.myAccount,children:e("MY_LICENSES")})}),(0,i.jsx)(p.A,{children:(0,i.jsx)(p.A.Link,{onClick:n,href:"#",children:e("PREFERENCES")})}),(0,i.jsx)(p.A,{children:(0,i.jsx)(p.A.Link,{href:I.A.auth.logout,children:e("LOGOUT")})})]})]})})})})}},72991:(e,n,t)=>{t.d(n,{A:()=>C});var i=t(37876),r=t(14232),s=t(31287),a=t(25342),o=t(92009),l=t(12007),c=t(13901),p=t(95062),u=t(37638),d=t(6637),m=t(64601),I=t(8799),h=t(5139),S=t(59637),b=t(19111),y=t(43577),f=t(6993),A=t(25503);let g=({next:e,apiRef:n,overrideMinSeats:t,purchaseType:p,title:g="",newPlanOnly:C=!1,isRenew:D=!1})=>{let{subscription:N}=(0,u.BV)(),[R]=(0,l.Ym)((0,f.qQ)(N?.plan?.planCode)?"configure-subscription-isul":"configure-subscription"),[T,E]=(0,h.A)(R),{updatePrice:x,minSeats:P,maxSeats:_,initialState:j,validateForm:w}=(0,I.A)(p,t,C?y.Zp:null),v=(0,u.Xt)(b.o),O=(0,r.useCallback)(n=>(v({...n,purchaseType:p}),e()),[e]),[B,$]=(0,r.useState)(j.seats),k=D&&""!==B&&(B<(t??P)||B>_);return(0,i.jsx)(o.Ay,{initialState:j,action:O,validateForm:w,textRender:T,stateRef:E,apiRef:n,children:(0,i.jsxs)(a.fI,{mx:!0,children:[(0,i.jsx)(a.fv,{spacing:{mt:3,mb:1},children:(0,i.jsx)(o.Ay.Field,{className:"width-25",required:!0,Control:m.A,min:t??P,max:_,name:"seats",id:"seats",label:g||"SEATS",parseEvent:S.F,setState:x,onChange:e=>{$(e.target.value)},"data-qa-selector":"seats-input"})}),(0,i.jsx)(a.fv,{md:"auto",spacing:{mt:3},children:k?(0,i.jsx)(d.A,{Tag:"span",children:R("CONTACT_US",{link:A.A.external.primeContactSupport})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{sx:{fontSize:"s",textTransform:"uppercase"},spacing:{mt:1,mb:1},children:"Total"}),(0,i.jsx)(s.A,{sx:{fontSize:"l",fontWeight:"medium"},spacing:{mt:2,mb:0},"data-qa-selector":"subscription-price",children:(0,i.jsx)(o.Ay.ValueOf,{name:"price",children:({value:e})=>(0,c.Gl)(e)})})]})})]})})};g.propTypes={overrideMinSeats:p.number,next:p.func,apiRef:(0,p.oneOfType)([p.func,(0,p.shape)({current:p.any})]),title:p.string,purchaseType:p.string,newPlanOnly:p.bool,isRenew:p.bool};let C=g}}]); 2//# sourceMappingURL=9378-a5402cdd0835ae02.js.map
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.