1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3377],{3377:function(e,i,l){l.r(i),l.d(i,{FirstOrderDealPopup:function(){return FirstOrderDealPopup}});var n=l(85893),t=l(5379),r=l.n(t),d=l(67294),s=l(2031),a=l(89450),o=l(77147),c=l(90872),x=l(38981),m=l(86240),b=l(6739),u=l(50977),h=l(5821),f=l(72407),p=l(62508),y=l(49628),k=l(55761),g=l(94184),j=l.n(g);let VisuallyHidden=e=>{let{on:i="all",...l}=e,{mediaQueries:t}=(0,a.k)(),d={smallDown:t.smallUp,mediumDown:t.mediumUp,largeDown:t.largeUp,all:"not all"},s="\n height: 1px;\n opacity: 0;\n overflow: hidden;\n position: absolute;\n width: 1px;\n top: 0;\n left: 0;\n ",o="\n height: auto;\n opacity: 1;\n overflow: visible;\n position: static;\n width: auto;\n ";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{...l,className:r().dynamic([["8565e8456bf38f19",[s,d[i],o]]])+" "+(j()("visuallyHidden",l.className)||"")}),(0,n.jsx)(r(),{id:"8565e8456bf38f19",dynamic:[s,d[i],o],children:".visuallyHidden.__jsx-style-dynamic-selector{".concat(s,"\n }@media ").concat(d[i],"{.visuallyHidden.__jsx-style-dynamic-selector{").concat(o,"\n }}")})]})};var w=l(54425),v=l(27670);let FirstOrderDealForm=e=>{var i,l,t;let{hasError:o,isLoading:c,isPopupOpen:x,onSubmit:b}=e,{t:u}=(0,s.$)(),{space:h}=(0,a.k)(),{data:g,loading:j}=(0,w.kP)(),[_,F]=(0,d.useState)(!1),z=null==g?void 0:null===(i=g.user)||void 0===i?void 0:i.clientRegion,D=!z||(0,v.z3)(z);return j?null:(0,n.jsxs)(p.l0,{onSubmit:(e,i)=>{b(i.email)},children:[(0,n.jsxs)("div",{className:r().dynamic([["fdddb782b9dc5dd0",[h["2xA"],h["2x"]]]])+" container",children:[(0,n.jsx)(VisuallyHidden,{children:(0,n.jsx)("label",{htmlFor:"FirstOrderDealEmail",className:r().dynamic([["fdddb782b9dc5dd0",[h["2xA"],h["2x"]]]]),children:u("Email_address")})}),(0,n.jsx)(y.U5,{defaultValue:null!==(t=null==g?void 0:null===(l=g.user)||void 0===l?void 0:l.email)&&void 0!==t?t:"",errorTooltipIsVisible:!!x&&void 0,id:"FirstOrderDealEmail",name:"email",placeholder:u("Email_address"),required:!0}),D&&(0,n.jsxs)("div",{className:r().dynamic([["fdddb782b9dc5dd0",[h["2xA"],h["2x"]]]])+" checkboxRow",children:[(0,n.jsx)(y.XZ,{checked:_,errorTooltipIsVisible:!!x&&void 0,id:"FirstOrderDealConsent",name:"consent",onChange:e=>{let{target:i}=e;return F(i.checked)},required:!0}),(0,n.jsx)(k._,{fontWeight:"regular",htmlFor:"FirstOrderDealConsent",children:u("first_order_deal.consent_label")})]}),o&&(0,n.jsx)(p.Xq,{margin:"0",children:u("errors.generic_try_again")}),(0,n.jsx)(f.z,{disabled:D&&!_||c,loading:c,size:"sm",type:"submit",variant:"uiAccent",isFullWidth:!0,children:u("Claim")}),D&&(0,n.jsx)("div",{className:r().dynamic([["fdddb782b9dc5dd0",[h["2xA"],h["2x"]]]])+" footnote",children:(0,n.jsx)(m.x,{color:"neutral.fgMuted",size:"xxs",children:u("first_order_deal.consent_footnote")})})]}),(0,n.jsx)(r(),{id:"fdddb782b9dc5dd0",dynamic:[h["2xA"],h["2x"]],children:".container.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:".concat(h["2xA"],"}.checkboxRow.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:").concat(h["2x"],"}.footnote.__jsx-style-dynamic-selector{text-align:center}")})]})},FirstOrderDealSuccess=()=>{let{t:e}=(0,s.$)(),{space:i}=(0,a.k)();return(0,n.jsxs)("div",{className:r().dynamic([["b5728cba31816d2",[i["2x"]]]]),children:[(0,n.jsx)(EnvelopeIcon,{}),(0,n.jsx)(x.X,{as:"h4",color:"neutral.fg",id:"FirstOrderDealTitle",size:"sm",children:e("first_order_deal.success_title")}),(0,n.jsx)(m.x,{children:e("first_order_deal.success_message")}),(0,n.jsx)(r(),{id:"b5728cba31816d2",dynamic:[i["2x"]],children:"div.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:".concat(i["2x"],";text-align:center}")})]})},EnvelopeIcon=()=>(0,n.jsxs)("svg",{fill:"none",height:"96",viewBox:"0 0 120 96",width:"120",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"m36 31.5 17.422 16M85 31.5l-17.422 16m0 0L60.5 54l-7.078-6.5m14.156 0L85 64.5m-31.578-17L36 64.5M27 39v-7a8 8 0 0 1 8-8h51a8 8 0 0 1 8 8v32a8 8 0 0 1-8 8H35a8 8 0 0 1-8-8v-8.5",stroke:"#98a8b0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,n.jsx)("path",{d:"M20 37.5H9m5 9.5h19M10.5 58H20",stroke:"#f97805",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})]}),FirstOrderDealPopup=e=>{let{onClose:i}=e,{t:l}=(0,s.$)(),{space:t}=(0,a.k)(),{locale:f}=(0,o.bU)(),p=(0,c.z$)(),[y,k]=(0,d.useState)(!1),[g,j]=(0,d.useState)(!1),[w,v]=(0,d.useState)(!1),[_,F]=(0,d.useState)(!1),[z,D]=(0,d.useState)(!1);(0,d.useEffect)(()=>{!z&&p&&(p.track("First order deal shown"),D(!0))},[p,z]);let handleSubmit=async e=>{j(!0),v(!1);try{await (0,h.z)(e,f),k(!0),null==p||p.track("First order deal requested")}catch(e){(0,u.e)("First order deal claim failed: ".concat(e.message)),v(!0)}finally{j(!1)}};return(0,n.jsxs)(b.n,{labelledById:"FirstOrderDealTitle",onCloseEnd:i,onOpenChange:F,children:[(0,n.jsx)("div",{className:r().dynamic([["94763d0207af3bdd",[t["2xA"]]]])+" container",children:y?(0,n.jsx)(FirstOrderDealSuccess,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.X,{as:"h3",color:"neutral.fg",id:"FirstOrderDealTitle",size:"sm",children:l("first_order_deal.title")}),(0,n.jsx)(m.x,{children:l("first_order_deal.subtitle")}),(0,n.jsx)(FirstOrderDealForm,{hasError:w,isLoading:g,isPopupOpen:_,onSubmit:handleSubmit})]})}),(0,n.jsx)(r(),{id:"94763d0207af3bdd",dynamic:[t["2xA"]],children:".container.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:".concat(t["2xA"],"}")})]})}}}]);
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.