PageSourceSearch

https://cdn.labarchives.com/nextjs/0.0.1_2313/_next/static/chunks/pages/purchase/billing-b1c23de52c382ed0.js

js labarchives.com collected 2026-10-01 11:34:27 UTC 9,057 bytes, 14 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="b5516fde-0769-42c5-8bb7-c4606a37ea7a",e._sentryDebugIdIdentifier="sentry-dbid-b5516fde-0769-42c5-8bb7-c4606a37ea7a")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3813],{15699:(e,r,a)=>{"use strict";a.d(r,{A:()=>o});var s=a(37876),t=a(12368),l=a(65358),i=a(66771),n=a(33831);let o=(0,l.A)({serialize:e=>t.A.of(e??{}).toSerializable(),render:e=>(0,s.jsx)(i.A,{error:e}),onError:n.A})},26725:(e,r,a)=>{"use strict";a.d(r,{An:()=>d,os:()=>o});var s=a(14232),t=a(55028),l=a(5137),i=a(83749);let n=(0,t.Ty)((0,l.Lt)(({id:e})=>220==+e),(0,l.Lt)(({id:e})=>241==+e),(0,l.Lt)(({id:e})=>248==+e),(0,l.VE)(({name:e})=>e.toLowerCase()));function o(){let{countries:e}=(0,i.BV)();e||(e=[]);let r=(0,s.useMemo)(()=>new Map(e.map(e=>[e.id,e])),[e]);return[s.useMemo(()=>n(e),[e]),r]}function d(e){let r,a=function(e){let{countries:r}=(0,i.BV)();return s.useMemo(()=>r?.find(({id:r})=>+r==+e),[e,r])}(e);return Array.isArray(r=a?.states)&&r.length>0?r:void 0}},27636:(e,r,a)=>{"use strict";a.d(r,{L:()=>s});let s=e=>`${e} - LabArchives`},30953:(e,r,a)=>{"use strict";e.exports={en:{"purchase-billing":a(52810),"purchase-billing-form":a(66253)},de:{"purchase-billing":{},"purchase-billing-form":{}}}},52810:e=>{"use strict";e.exports=JSON.parse('{"PAGE_META":{"TITLE":"Billing Information"},"TITLE":"Billing Information"}')},66253:e=>{"use strict";e.exports=JSON.parse('{"NEXT":"Next","FIRST_NAME":"FIRST NAME","LAST_NAME":"LAST NAME","EMAIL":"EMAIL ADDRESS","COMPANY":"COMPANY / INSTITUTION","COUNTRY_PLACEHOLDER":"- Select country -","STATE_PLACEHOLDER":"- Select state or province -","COMPANY_HINT":"If you are not affiliated with a company, government agency or academic institution, please enter \'Personal\'","errors":{"EMAIL_REQUIRED":"Please enter your email.","EMAIL_INVALID":"Please enter valid email.","EMAIL_INVALID_LENGTH":"Please enter valid email (up to 64 characters).","FIRST_NAME_REQUIRED":"Please enter your first name.","LAST_NAME_REQUIRED":"Please enter your last name.","COMPANY_REQUIRED":"Please enter your institution name.","COUNTRY_REQUIRED":"Please select your country.","STATE_REQUIRED":"Please select your state.","LAB_NAME_REQUIRED":"Please enter your department name.","CITY_REQUIRED":"Please enter your city.","ADDRESS_REQUIRED":"Please enter your street address.","ZIP_REQUIRED":"Please enter your zip code / postal code.","PHONE_REQUIRED":"Please enter your phone number."}}')},67214:(e,r,a)=>{"use strict";a.d(r,{A:()=>n});var s=a(37876);a(14232);var t=a(29210),l=a(89302),i=a(50562);let n=({children:e,bodyClassName:r,bodyBgColor:a="transparent"})=>(0,s.jsxs)(t.A,{isWrapper:!0,bgColor:a,children:[(0,s.jsx)(t.A.Header,{children:(0,s.jsx)(l.A,{logo:i.Ay,isBorderBottomNone:!0,className:"",withToggle:!1})}),(0,s.jsx)(t.A.Body,{className:r,children:e})]})},72098:(e,r,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/purchase/billing",function(){return a(89269)}])},88635:(e,r,a)=>{"use strict";a.d(r,{A:()=>d});var s=a(17878),t=a(73717),l=a(37876);a(14232);var i=a(33910),n=a(31287),o=a(25922);let d=(0,s.A)({MaintenanceComp:()=>(0,l.jsxs)(o.A,{children:[(0,l.jsx)(i.A,{Tag:"h1",size:"xl",center:!0,className:"mb-6 text-color-3",children:"We’re undergoing maintenance."}),(0,l.jsx)(n.A,{size:"s",center:!0,children:"We’re sorry. We're temporarily unavailable. Please come back later."})]}),serviceCore:t.fE})},89269:(e,r,a)=>{"use strict";a.r(r),a.d(r,{default:()=>W});var s=a(37876),t=a(14232),l=a(32486),i=a(55118),n=a(40820),o=a(46630),d=a(25342),c=a(7630),m=a(53648),A=a(50991),E=a(10604),u=a(55028),I=a(61234),N=a(63802),h=a(88635),p=a(73717),f=a(67214),b=a(90252),x=a(80349),y=a(48536),T=a(15699),R=a(12934),_=a(80657),D=a(12368),g=a(27636),C=a(31081),L=a(92630),j=a(13432),P=a(34569),M=a(16734),S=a(26725),O=a(89958),U=a(60379),v=a(16956);let q={email:"",firstName:"",lastName:"",company:"",labName:"",address1:"",countryID:0,state:"",city:"",address2:"",address3:"",zipCode:"",phone:"",countryIsoAlpha2:""},w={email:[[v.mw,"errors.EMAIL_REQUIRED"],[(0,v.Yg)(64),"errors.EMAIL_INVALID_LENGTH"],[e=>(0,v.xf)(e),"errors.EMAIL_INVALID"],[(0,v.Yv)(100),"errors.WRONG_EMAIL"]],firstName:[v.mw,"errors.FIRST_NAME_REQUIRED"],lastName:[v.mw,"errors.LAST_NAME_REQUIRED"],company:[v.mw,"errors.COMPANY_REQUIRED"],countryID:[(0,v.Uo)(v.mw,e=>+e>0),"errors.COUNTRY_REQUIRED"],state:[(e,{countryID:r})=>![220,38].includes(r)||(0,v.mw)(e),"errors.STATE_REQUIRED"],city:[v.mw,"errors.CITY_REQUIRED"],address2:[v.mw,"errors.ADDRESS_REQUIRED"],zipCode:[v.mw,"errors.ZIP_REQUIRED"]},Q=(0,v.Ay)(w),Y=({target:e})=>+e.value,z=({children:e,initialState:r,action:a})=>{let[l]=(0,i.Ym)("purchase-billing-form"),[n,o]=(0,t.useState)(r.countryID),d=(0,t.useMemo)(()=>(0,u.Zz)(o,Y),[o]),[c,m]=(0,S.os)(),A=(0,S.An)(n),E=(0,t.useCallback)((e,r)=>({...e,countryID:r,countryIsoAlpha2:m.get(`${r}`)?.isoAlpha2||"",state:""}),[]);return(0,s.jsxs)(M.Ay,{validateForm:Q,action:a,initialState:r,textRender:l,children:[(0,s.jsx)(M.D0,{fieldClassName:"mb-8",name:"email",label:"EMAIL",required:!0,maxLength:100,"data-qa-selector":"email-field"}),(0,s.jsx)(M.D0,{fieldClassName:"mb-8",name:"firstName",label:"FIRST_NAME",required:!0,maxLength:50,"data-qa-selector":"firstName-field"}),(0,s.jsx)(M.D0,{fieldClassName:"mb-8",name:"lastName",label:"LAST_NAME",required:!0,maxLength:50,"data-qa-selector":"lastName-field"}),(0,s.jsx)(M.D0,{fieldClassName:"mb-8",name:"company",label:"INSTITUTION",required:!0,maxLength:50,"data-qa-selector":"institution-field",hint:"COMPANY_HINT"}),(0,s.jsx)(M.D0,{fieldClassName:"mb-8",name:"address1",label:"DEPARTMENT",maxLength:50,"data-qa-selector":"institution-field"}),(0,s.jsx)(M.D0,{fieldClassName:"mb-8",name:"countryID",label:"COUNTRY",required:!0,Control:O.A,parseEvent:Y,onChange:d,setState:E,"data-qa-selector":"country-select-field",children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(O.A.Placeholder,{children:l("COUNTRY_PLACEHOLDER")}),O.A.renderOptions(c,({id:e})=>`${e}`,({name:e})=>`${e}`)]})}),A?(0,s.jsx)(M.D0,{fieldClassName:"mb-8",name:"state",label:"STATE / REGION",Control:O.A,required:!0,"data-qa-selector":"state-field",children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(O.A.Placeholder,{children:l("STATE_PLACEHOLDER")}),O.A.renderOptions(A,({isoAlpha2:e})=>e,({isoName:e})=>e)]})}):(0,s.jsx)(M.D0,{fieldClassName:"mb-8",name:"state",label:"STATE / REGION",Control:U.A,required:!1,maxLength:50,"data-qa-selector":"state-field"}),(0,s.jsx)(M.D0,{fieldClassName:"mb-8",name:"city",label:"CITY",required:!0,maxLength:50,"data-qa-selector":"city-field"}),(0,s.jsx)(M.D0,{fieldClassName:"mb-4",name:"address2",label:"ADDRESS",required:!0,maxLength:50,"data-qa-selector":"address2-field"}),(0,s.jsx)(M.D0,{fieldClassName:"mb-8",name:"address3",maxLength:50,"data-qa-selector":"address3-field"}),(0,s.jsx)(M.D0,{fieldClassName:"mb-8",name:"zipCode",label:"ZIP",required:!0,maxLength:20,"data-qa-selector":"zipCode-field"}),(0,s.jsx)(M.D0,{fieldClassName:"mb-8",name:"phone",label:"PHONE",maxLength:50,"data-qa-selector":"phone-field"}),e]})},H=e=>({storageService:r,routingService:a})=>{r.billingInfo.write(e),a.push(x.A.purchase.payment)},F=()=>{let[e]=(0,i.Ym)("purchase-billing-form"),[r,{isLoading:a}]=(0,P.A)(H);return(0,s.jsxs)(s.Fragment,{children:[a&&(0,s.jsx)(L.A,{}),(0,s.jsx)(z,{initialState:q,action:r,children:(0,s.jsx)(C.A,{children:(0,s.jsx)(C.e,{textAlign:"left",children:(0,s.jsx)(j.A,{type:"submit",styleType:"secondary",disabled:a,"data-qa-selector":"purchase-billing-form-submit-btn",children:e("NEXT")})})})})]})};var B=a(30953),V=a.n(B);let k=()=>{let[e]=(0,i.Ym)("purchase-billing");return(0,s.jsxs)(f.A,{bodyClassName:l.TS,children:[(0,s.jsx)(N.Ay,{title:(0,g.L)(e("PAGE_META.TITLE"))}),(0,s.jsx)(o.A,{className:"pt-9",isBorderNone:!0,children:(0,s.jsx)(d.fI,{utility:{justify:"center"},children:(0,s.jsx)(d.fv,{lg:8,children:(0,s.jsx)(c.A,{spacing:{py:16}
1,utility:{radius:16},children:(0,s.jsx)(d.fI,{mx:!0,px:!0,center:!0,children:(0,s.jsxs)(d.fv,{md:10,children:[(0,s.jsx)(m.A,{children:e("TITLE")}),(0,s.jsx)(F,{})]})})})})})})]})};k.services={getCountries:b.A},k.getInitialProps=(0,A.A)({countries:(e,{getCountries:r})=>r()});let G=(0,R.C)(x.A.external.signInTmp,{redirect:x.A.purchase.plans});k.preConditions=[[(e,{publicConfig:r})=>"PRODUCTION"!==r.ENV,(0,_.I)(D.A.NotFound)],[y.oz,G],[(0,u.Zz)(I.p,(e,{storageService:r})=>r.priceItem.read()),G]];let W=(0,n.A)(k,E.Ay,T.A,p.Ay,(0,h.A)({level:"NEW_ECOMM"}),(0,i.hV)({resources:V()}))},90252:(e,r,a)=>{"use strict";a.d(r,{A:()=>l});var s=a(21529);let t=(0,s.A)`
2	query getCountries {
3		getCountries {
4			id
5			name
6			isoAlpha2
7			states {
8				isoAlpha2
9				isoName
10			}
11		}
12	}
13`,l=({gqlClient:e})=>()=>e(t).then(e=>e.getCountries)}},e=>{e.O(0,[2071,3464,105,2200,3765,6734,1411,6517,8402,636,6593,8792],()=>e(e.s=72098)),_N_E=e.O()}]);
14//# sourceMappingURL=billing-b1c23de52c382ed0.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.