1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4031],{64965:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/a/account/login",function(){return n(62249)}])},62249:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return z},default:function(){return V}});var o=n(31549),i=n(44194),r=n(74286),s=n(72505),a=n(99014),c=n(31277),l=n(52690),u=n(42971),d=n(83277),h=n(93871),m=n(87377),f=n(10564),g=n(46146),p=n.n(g),x=n(93034),y=n(16879),b=n(63251),v=n.n(b),w=n(68690),C=n(73029),j=n(52009),S=n(18906),k=n(37147),F=n(24510),I=n(63376),E=n(74880),_=n(36754),R=n(89492),T=n(98551),L=n(92012),N=n(43625),P=n(37449),O=n(42310),W=n(99535),B=n(70370);function U(e){let{...t}=e;return(0,o.jsx)(B.v,{width:"24",height:"24",viewBox:"0 0 24 24",...t,children:(0,o.jsx)("path",{d:"M6 18L18 6M18 6H10M18 6V14",strokeLinecap:"round",strokeLinejoin:"round"})})}const A="a hard bounce, a spam complaint, or a manual suppression";var D;!function(e){e.CREATED="CREATED",e.EXISTED="EXISTED"}(D||(D={}));var M=i.memo(function(e){let{onSuccess:t,moreFields:n,usePinCode:r=!1,buttonCta:s,isSignup:c,isLogin:d,isStorefront:h,isDashboard:g,initialTitle:b,hint:B}=e;var D;const{siteId:M,settings:Z}=(0,O.W)(),z=(!!Z&&Z[E.w.skioInternalStore],!!Z&&Z[E.w.enableInternationalization]),{Copies:V,localeLanguage:q,localeCountry:Y}=i.useContext(N.Ni),[G,J]=i.useState(null!=b?b:(0,u.s)({key:"storefront.authenticate.login.title",Copies:V}));i.useEffect(()=>{J(null!=b?b:(0,u.s)({key:"storefront.authenticate.login.title",Copies:V}))},[V,b]);const[X,K]=i.useState(!1),[H,Q]=i.useState(!1),[$,ee]=i.useState(!1),[te,ne]=i.useState(!1),[oe,ie]=i.useState(void 0),[re,se]=i.useState(["","","",""]),ae="email",{handleSubmit:ce,register:le,errors:ue,setError:de,formState:he,clearErrors:me}=(0,y.cI)({reValidateMode:"onSubmit"}),fe=i.useRef(null),ge=ue,[pe,xe]=i.useState(void 0),ye=r&&i.useRef(null),be=i.useRef(null),ve=i.useRef(null),we=i.useMemo(()=>({hostname:(0,l.Fo)()}),[]),{recordStorefrontUserActivityLog:Ce}=(0,W.q)(),je=(0,x.useRouter)(),{email:Se,submit:ke,autoLogin:Fe=null,token:Ie,domain:Ee}=je.query,_e=i.useCallback(async e=>{let{email:n,password:o,domain:i}=e;if(!n)return;Q(!0),Ce({actionType:a.Us.Click,actionTarget:a.BJ.LoginCodeRequestButton,actionComponent:a.Nf.LoginEmailInput});const s=n.trim();let l,m,f=encodeURI(s);M&&(f=(0,I.Fq)({email:s,siteId:M}));let g=!1,p=!1;if(z&&"en"!==q.toLowerCase())try{await(0,F.w)({path:k.Xo7,body:{cognitoEmail:f,locale:"".concat(q.toLowerCase(),"-").concat(Y)}})}catch(e){console.error("Skio",e)}if(d)try{l=await S.g.signIn(f,o,i?{hostname:i}:we)}catch(e){if(h)try{(await(0,F.w)({path:k.avV,body:{email:s,domain:null!=i?i:v().get(j.yK)}})).accountCreated&&(l=await S.g.signIn(f,o,we),p=!0)}catch(e){g=!0,console.error("could not create account",e)}if(g){return de(ae,{type:"invalidValue",message:"Something went wrong. Please try again later."}),void Q(!1)}if(!c&&!p){var x;const t=(null!==(x=null==e?void 0:e.message)&&void 0!==x?x:"").includes(A)?"This email previously generated ".concat(A,". Please contact [email protected] for assistance."):"".concat((0,u.s)({Copies:V,key:"storefront.authenticate.email.not_exist.error"}));return de(ae,{type:"invalidValue",message:t}),void Q(!1)}}if(c&&!l)try{const e=(0,w.Z)();await S.g.signUp({username:e,password:(0,w.Z)(),attributes:{email:f}}),l=await S.g.signIn(e,o,we),m=!0}catch(e){console.error("[SKIO] Could not sign up",e)}ie(l),Q(!1),r?xe(m?"CREATED":"EXISTED"):await t({step:pe,siteId:M})},[V,we,z,d,c,h,Y,q,t,Ce,de,M,pe,r]),[Re,Te]=i.useState(!1);i.useEffect(()=>{Re||(async()=>{if(Se&&"string"==typeof Se&&"true"===ke){J((0,u.s)({key:"storefront.authenticate.two_factor.title",Copies:V})),await _e({email:Se,password:void 0,domain:void 0});const e=new URLSearchParams(location.search);e.delete("submit"),window.history.replaceState(null,"","?"+e+location.hash),Te(!0)}})()},[Se,ke]),i.useEffect(()=>{"true"!==Fe||Re||_e({email:Se,password:atob(Ie),domain:Ee}).finally(()=>Te(!0))},[Fe]),i.useEffect(()=>{const e=e=>{fe.current&&Object.keys(ue).length>0&&me()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[ue,me]);const Le={width:"100%",type:"submit",text:s,disabled:he.isSubmitting},Ne=[{id:ae,label:(0,u.s)({Copies:V,key:"storefront.authenticate.email.placeholder"}),placeholder:(0,u.s)({Copies:V,key:"storefront.authenticate.email.label"}),registerReqs:{required:{value:!0,message:(0,u.s)({Copies:V,key:"storefront.authenticate.email.n
1ot_exist.error"})},pattern:{value:/@/,message:(0,u.s)({Copies:V,key:"storefront.authenticate.email.no_at.error"})}},autoFocus:!0,autoComplete:"email",defaultValue:null!=Se?Se:""},...n||[]],Pe=g&&"true"!==Fe;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f.xu,{marginBottom:C.A2,children:(0,o.jsx)(P.h4,{size:"medium",children:Pe?(0,o.jsx)(p(),{href:"https://admin.shopify.com/",className:"flex items-center text-xl leading-6 font-semibold text-skio-primary-dark-purple hover:underline gap-x-2",children:(0,o.jsxs)(o.Fragment,{children:["Please login via the Shopify admin page.",(0,o.jsx)(U,{})]})}):G})}),!pe&&(0,o.jsx)("form",{ref:fe,onSubmit:e=>{he.isSubmitting?e.preventDefault():ce(_e)(e)},style:{width:"100%",display:Pe?"none":void 0},children:(0,o.jsxs)(_.Z,{loading:H,accessibilityLabel:"Sending code",loaderCentered:!0,children:[(0,o.jsx)(R.Z,{gapY:C.Zz,children:Ne.map(e=>{let{id:t,label:n,placeholder:i,inputType:r,autoFocus:s,registerReqs:a,autoComplete:c,defaultValue:l}=e;const u=ge[t]&&ge[t].message;return(0,o.jsx)(f.xu,{children:(0,o.jsx)(T.Z,{id:t,name:t,label:n,errorMessage:u,width:"100%",placeholder:i,type:r,inputRef:le(a),autoFocus:s,autoComplete:c,defaultValue:l,disabled:he.isSubmitting,"aria-label":"".concat(n," input field"),"aria-required":t===ae})},t)})}),(0,o.jsx)(f.xu,{marginTop:C.UN,children:(0,o.jsx)(L.Z,{...Le,buttonRef:ve})}),(0,o.jsx)(f.xu,{marginTop:C.UN,children:B&&(0,o.jsxs)(P.xv,{size:"medium",children:[(0,o.jsx)("strong",{children:(0,u.s)({Copies:V,key:"storefront.authenticate.email.hint"})})," ",B]})})]})}),pe&&r&&(0,o.jsxs)(_.Z,{loading:$,accessibilityLabel:"Verifying code",loaderCentered:!0,children:[(0,o.jsx)(f.xu,{marginBottom:2,children:(0,o.jsx)(P.xv,{size:"large",children:"".concat((0,u.s)({Copies:V,key:"storefront.authenticate.sent_4_digit.code"})," ").concat("false"===(null==oe||null===(D=oe.challengeParam)||void 0===D?void 0:D.codeSentToPhone)?"":(0,u.s)({Copies:V,key:"storefront.authenticate.sms_and.email"})," ").concat((0,u.s)({Copies:V,key:"storefront.authenticate.spam.check"}))})}),(0,o.jsx)(f.xu,{marginBottom:5,dangerouslySetInlineStyle:{__style:{verticalAlign:"middle"}},children:(0,o.jsx)(f.xu,{marginEnd:-2,children:(0,o.jsx)("div",{id:"pincode",children:(0,o.jsx)(m.PinCode,{autoFocus:!0,positive:X,values:re,ref:ye,onChange:async e=>{let{values:n}=e;if(se(n),ne(!1),!n.includes("")){ee(!0);try{be.current&&be.current.focus();const e=await S.g.sendCustomChallengeAnswer(oe,n.join(""),we);console.debug("[SKIO] Pincode auth answer",e);const o=await S.g.currentSession();console.debug("[SKIO] Current auth session",o),K(!0),Ce({actionType:a.Us.Click,actionTarget:a.BJ.LoginCodeInput,actionComponent:a.Nf.LoginCodeInput}),await t({step:pe,siteId:void 0})}catch(e){console.error(e),ee(!1),K(!1),ne(!0)}}},error:te,autoComplete:"one-time-code"})})})})]})]})}),Z=n(10776);var z=!0,V=function(e){let{query:t}=e;const{showPasswordLogin:n}=(0,O.W)(),[m,f]=i.useState(!0),{loginEmailStepFooter:g,Copies:p,headingColor:x}=i.useContext(N.Ni),y="/account/login?return_url=".concat((0,c.QF)(),"/a/account/shopify-login"),b=(0,Z.pW)(c.F4),{recordStorefrontUserActivityLog:v}=(0,W.q)(),[w,C]=i.useState(!1);return i.useEffect(()=>{m||w||(v({actionType:a.Us.View,actionTarget:a.BJ.LoginPage,actionComponent:a.Nf.LoginPage,idempotentEvent:!0}),C(!0))},[m,v,w]),i.useEffect(()=>{(async()=>{if(await(0,s.x4)())v({actionType:a.Us.Redirect,actionTarget:a.BJ.LoginPage,actionComponent:a.Nf.LoginPage,additionalData:{timestamp:(new Date).toISOString(),targetPage:a.T3.StorefrontSubscriptions}}),await b({loggedInCustomerId:t.logged_in_customer_id});else{if((0,l.DJ)())return;if(t.logged_in_customer_id&&"true"!==t.shopifyLoginError){const e=(0,l.AE)({params:new URLSearchParams(t),blacklist:l.eA}).toString(),n="/a/account/shopify-login"+(""!==e?"?"+e:"");window.location.href=n}}f(!1)})()},[b]),console.debug("[DEBUG] Rendering login page: Loading status: ".concat(m)),(0,o.jsx)(d.Z,{canonicalHref:void 0,basePath:"https://storefront.skio.com",isStorefront:!0,desc:void 0,title:void 0,navbar:(0,l.r8)()&&(0,o.jsx)(r.Z,{}),children:!Boolean(m)&&(0,o.jsxs)(h.Z,{maxWidth:"sm",topPadding:!1,children:[(0,o.jsx)(M,{isLogin:!0,isSignup:!1,usePinCode:!0,buttonCta:(0,u.s)({Copies:p,key:"storefront.login.code.button"}),onSuccess:async()=>{v({actionType:a.Us.Redirect,actionTarget:a.BJ.LoginPage,actionComponent:a.Nf.LoginPage,additionalData:{targetPage:a.T3.StorefrontSubscriptions}}),await b()},isStorefront:!0}),n&&(0,o.jsx)("div",{style:{fontWeight:"bold",fontSize:14,color:x},children:(0,o.jsx)(P.xv,{isBold:!0,children:(0,o.jsx)("a",{href:y,children:(0,u.s)({Copies:p,key:"storefront.login.with_password.action.link"})})})}),g&&(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:g}})]})})}},74286:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var o=n(31549),i=n(10564),r=n(44194),s=n(73029),a=r.memo(function(e){let{children:t}=e;return(0,o.jsx)(i.xu,{paddingY:s.ey,height:"100%",children:t})}),c=n(46146),l=n.n(c),u=n(95766),d=n(7571),h=n(92012),m=n(89492),f=r.memo(function(e){let{logoLink:t,links:n,isMarketplace:s}=e;const[a,c]=r.useState(!1),f=n.map(e=>{let{href:t,text:n,target:i,onClick:r}=e;return(0,o.jsx)(h.Z,{routingHref:i?"":t,onClick:r,href:i?t:"",width:"100%",height:"100%",text:n,isMarketplace:s},t)}),g=(0,d.GS)([u.vv.Mobile,u.vv.Tablet,u.vv.Desktop],["1fr 1fr","1fr 1fr 1fr","1fr 1fr 1fr"],"1fr 1fr 1fr");return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(i.xu,{display:"flex",justifyContent:"between",marginBottom:a?4:0,alignItems:"center",children:[(0,o.jsx)(l(),{href:t.href||"",style:{color:s?"white":void 0},children:t.text}),(0,o.jsx)("div",{onClick:e=>{e.preventDefault(),c(!a)},children:(0,o.jsx)(i.JO,{accessibilityLabel:"Open navbar menu",color:s?"white":"darkGray",icon:a?"cancel":"menu",size:20})})]}),a&&(0,o.jsx)(m.Z,{gap:5,children:(0,o.jsx)(m.Z,{gap:5,templateColumns:g,children:f})})]})}),g=n(4188),p=r.memo(function(){const e={href:"#home",text:(0,g.gw)()},t=[{text:"Products",href:"#products"},{text:"Our Story",href:"#ourstory"},{text:"FAQ",href:"#faq"}],n=[{text:"Get Access",href:"#getAccess"}],r=(0,d.GS)([u.vv.Mobile,u.vv.Tablet,u.vv.Desktop],[!0,!0,!1],!1);return(0,o.jsx)(i.Le,{top:0,children:(0,o.jsx)(a,{children:r?(0,o.jsx)(f,{logoLink:e,links:[...t,...n]}):(0,o.jsxs)(i.xu,{display:"flex",justifyContent:"between",alignItems:"center",children:[(0,o.jsx)(i.xu,{marginEnd:12,children:(0,o.jsx)(l(),{href:e.href,children:e.text})}),(0,o.jsxs)(i.xu,{display:"flex",marginStart:-3,marginEnd:-3,alignItems:"center",flex:"grow",children:[t.map(e=>{let{href:t,text:n}=e;return(0,o.jsx)(i.xu,{paddingX:3,children:(0,o.jsx)(l(),{href:t,children:n})},t)}),(0,o.jsx)(i.xu,{paddingX:3,flex:"grow",display:"flex",justifyContent:"end",children:(0,o.jsx)(h.Z,{text:"Buy now"})})]})]})})})})},31277:function(e,t,n){"use strict";function o(){const e=new URL(window.location.href).pathname.split("/").filter(e=>""!==e);let t="";return e.length>0&&(t="a"!==e[0]?e[0]:""),""===t?"":(console.log("using language prefix",t),"/".concat(t))}n.d(t,{A3:function(){return p},DV:function(){return l},EW:function(){return r},F4:function(){return a},Gh:function(){return d},Jt:function(){return g},LY:function(){return s},QF:function(){return o},RU:function(){return m},Sx:function(){return b},cd:function(){return y},i_:function(){return c},iy:function(){return u},pA:function(){return f},ru:function(){return h},so:function(){return x}});const i=o()+"/a/account",r=o()+"/account",s="".concat(i,"/maintenance"),a=("".concat(i,"/secret"),"".concat(i,"/subscriptions")),c=("".concat(i,"/edit-user"),"".concat(i,"/edit-address"),"".concat(i,"/orders")),l="".concat(i,"/login"),u="".concat(i,"/custom-tools/build-a-box"),d="".concat(i,"/custom-tools/dynamic-box"),h="".concat(i,"/custom-tools/sectioned-box"),m="".concat(i,"/quick-action-v3"),f="".concat(i,"/loyalty"),g="".concat(i,"/profile"),p=e=>"".concat(i,"/subscriptions/").concat(e,"/edit-address"),x=e=>"".concat(i,"/subscriptions/").concat(e,"/edit-user"),y=e=>"".concat(i,"/subscriptions/").concat(e,"/prepaid-gift-welcome"),b="".concat(i,"/group-subscription/refer-discount")},63376:function(e,t,n){"use strict";n.d(t,{Ap:function(){return u},Fq:function(){return c},tx:function(){return l}});var o=n(30679),i=n(95766),r=n(87143),s=n(38686);const a="-skioSiteId-";function c(e){let{email:t,siteId:n}=e;return"".concat(t).concat(a).concat(n)}function l(e){let{emailWithSiteId:t}=e;if(!t)return{email:void 0,siteId:void 0};const[n,o]=t.split(a);return{email:n,siteId:o}}
1function u(e){let{countryCode:t,phoneNumber:n,country:a}=e;if(s.kg.info("phoneNumber: ".concat(n)),!n)return void s.kg.info("No phone number");const c=t||(a?(0,r._W)(a):i.UF);let l;try{l=n&&(0,o.h)(n,c)}catch(e){}return l?l.number:void 0}},10776:function(e,t,n){"use strict";n.d(t,{F4:function(){return b},Jo:function(){return j},aU:function(){return S},pW:function(){return C}});var o=n(93034),i=n.n(o),r=n(44194),s=n(63251),a=n.n(s),c=n(52009),l=n(9768),u=n(72505),d=n(31277),h=n(37147),m=n(24510),f=n(52690),g=n(63376),p=n(42310),x=n(43625);const y=(0,d.QF)()+"/a/account",b="".concat(y,"/subscriptions"),v="".concat(y,"/login");function w(e){if(!e)return e;if(e.match(/^https?:\/\//))return e;const t=(0,d.QF)(),n=e.startsWith("/")?e:"/".concat(e);return"".concat(t).concat(n)}function C(e){const t=(0,o.useRouter)(),{siteId:n}=(0,p.W)(),{multipassLoginUrlRedirect:i}=(0,r.useContext)(x.Ni);return(0,r.useCallback)(async function(){let{multiPassRedirectOverride:o,loggedInCustomerId:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const s=await(0,u.x4)();console.debug("[INFO] Successfully authenticated user, storefront id: ".concat(s));const{email:l}=(0,g.tx)({emailWithSiteId:await(0,u.hF)()});a().set(c.Cz,s),a().set(c.KW,l);const d=await async function(e){let{redirectUrl:t,SUBSCRIPTIONS_PAGE:n}=e;const o=(null==t?void 0:t.trim())||n;console.log("[INFO] Multipass redirect url",{url:o,SUBSCRIPTIONS_PAGE:n});try{const e=await(0,m.w)({path:h.VD2,body:{url:o}});return e.multipassUrl?(console.debug("[INFO] Multipass result",e),e.multipassUrl):void console.debug("[INFO] No multipass enabled")}catch(e){return}}({SUBSCRIPTIONS_PAGE:e,redirectUrl:null!=o?o:w(i)});!d||r&&"beca6f53-28d7-4255-a120-35bbd4ee6d54"!==n?o?(console.debug("[INFO] Using multiPassRedirectOverride: ".concat(o)),await t.push(o)):(console.debug("[INFO] Redirect to subscriptions page ".concat(e)),await t.push(e)):(console.debug("[INFO] Received multipass url: ".concat(d)),window.location.href=d)},[e,i,t,n])}async function j(e){let{email:t,redirectUrl:n}=e;const{email:o}=(0,g.tx)({emailWithSiteId:await(0,u.hF)()});if(!t||t!==o)return!1;const i=await(0,u.x4)();return console.debug("sub session exists redirect to subscription page"),a().set(c.Cz,i),a().set(c.KW,o),window.location.href=null!=n?n:b,!0}function S(){return(0,r.useCallback)(async()=>{await(0,l.kS)(),a().remove(c.Cz),(0,f.HV)()?await i().push(v):window.location.href="/account/logout?return_url=".concat(v)},[])}},89492:function(e,t,n){"use strict";var o=n(31549),i=n(44194);t.Z=i.memo(function(e){let{gap:t,gapX:n,gapY:i,children:r,templateRows:s,templateColumns:a,row:c,column:l,autoRows:u,autoColumns:d,templateAreas:h,justifyContent:m,autoFlow:f}=e;return(0,o.jsx)("div",{style:{display:"grid",...t?{gridGap:4*t}:{},...i?{gridRowGap:4*i}:{},...n?{gridColumnGap:4*n}:{},...a?{gridTemplateColumns:a}:{},...s?{gridTemplateRows:s}:{},...l?{gridColumn:l}:{},...c?{gridRow:c}:{},...u?{gridAutoRows:u}:{},...d?{gridAutoColumns:d}:{},...h?{gridTemplateAreas:h}:{},...m?{justifyContent:m}:{},...f?{gridAutoFlow:f}:{}},children:r})})},93871:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var o=n(31549),i=n(10564),r=n(44194),s=n(73029),a=n(95766),c=n(42971),l=n(43625),u=n(7571),d=r.memo(function(e){let t,{children:n,noWidthMax:r=!1,maxWidth:a="lg",widthOverride:c}=e;return"sm"===a?t=s.Mn:"lg"===a?t=s.o6:"md"===a&&(t=s.w0),(0,o.jsx)(i.xu,{maxWidth:null!=c?c:r?"100%":t,minWidth:"300px",width:"100%",display:"flex",direction:"column",position:"relative",children:n})}),h=r.memo(function(e){let{children:t,noWidthMax:n=!1,maxWidth:h="lg",topPadding:m=!0,widthOverride:f}=e;const g=(0,u.GS)([a.vv.Mobile,a.vv.Tablet,a.vv.Desktop],[!1,!0,!0],!0),{hidePoweredBy:p,isStorefront:x,headingColor:y}=r.useContext(l.Ni),{Copies:b}=r.useContext(l.Ni),v=!p&&x&&(0,o.jsx)(i.xu,{display:"flex",children:(0,o.jsx)(i.rU,{href:"https://skio.com",target:"blank",children:(0,o.jsxs)(i.xu,{display:"flex",marginBottom:4,children:[(0,o.jsx)(i.xu,{marginEnd:2,display:"flex",alignItems:"center",children:(0,o.jsx)("div",{className:"headingColorIcon",children:(0,o.jsx)(i.JO,{icon:"lock",accessibilityLabel:"Security",size:14})})}),(0,o.jsx)("div",{style:{fontWeight:"bold",fontSize:14,color:y},children:(0,c.s)({Copies:b,key:"common.skio.secured"})})]})})});return(0,o.jsx)("section",{children:g?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(i.xu,{display:"flex",justifyContent:"center",alignItems:"center",direction:"column",paddingY:m?12:0,children:(0,o.jsxs)(d,{maxWidth:h,noWidthMax:n,widthOverride:f,children:[v,t]})})}):(0,o.jsxs)(o.Fragment,{children:[m&&(0,o.jsx)(i.xu,{height:"".concat(s.Fc,"px")}),(0,o.jsxs)(i.xu,{minWidth:"100%",position:"relative",children:[v,t]})]})})})},98551:function(e,t,n){"use strict";var o=n(31549),i=n(10564),r=n(44194),s=n(19133),a=n(73029),c=n(43625),l=n(49732);t.Z=r.memo(function(e){let{onChange:t,type:n,placeholder:u,onKeyDown:d,onSubmit:h,border:m,readOnly:f,width:g,maxWidth:p,height:x,minHeightOverride:y,boxSizing:b,onBlur:v,onFocus:w,id:C,name:j,value:S,disabled:k=!1,inputRef:F,inputRefUseFormV7:I,min:E,max:_,step:R,defaultValue:T,autoFocus:L=!1,autoComplete:N,borderRadius:P=a.n_,borderWidthOverride:O,errorMessage:W,suppressErrorLayer:B,errorIcon:U,successMessage:A,paddingOverride:D,paddingX:M="12px",clearErrorMessage:Z,clearSuccessMessage:z,label:V,copyField:q,popoverSize:Y,textAlign:G,textTransformDisabled:J,skipFocus:X,"aria-label":K,"aria-required":H}=e;const[Q,$]=r.useState(!1);let ee="".concat(s.YF);"left"===m?(P="".concat(P," 0 0 ").concat(P),ee="".concat(s.YF," 0 ").concat(s.YF," ").concat(s.YF)):"right"===m?(P="0 ".concat(P," ").concat(P," 0"),ee="".concat(s.YF," ").concat(s.YF," ").concat(s.YF," 0")):"bottom"===m&&(P="".concat(P," ").concat(P," 0 0"),ee="".concat(s.YF," ").concat(s.YF," 0 ").concat(s.YF)),ee=null!=O?O:ee;
1const{inputBackgroundColor:te,inputBorderColor:ne,inputBorderColorFocus:oe,inputTextColor:ie,inputErrorBorderColor:re,inputDisabledBackgroundColor:se,inputCopyBackgroundColor:ae}=r.useContext(c.Ni);let ce=ne;W?ce=re:Q&&!X&&(ce=oe);const le=C&&V&&("string"==typeof V?(0,o.jsx)(i.xu,{marginBottom:2,children:(0,o.jsx)(i.__,{htmlFor:C,children:(0,o.jsx)(i.xv,{size:"sm",children:V})})}):(0,o.jsx)(i.xu,{marginBottom:2,children:V}));let ue=te;k?ue=se:q&&(ue=ae);const de=r.useRef(null),he=de.current;return(0,o.jsxs)(i.xu,{display:"flex",direction:"column",justifyContent:"end",children:[le,(0,o.jsxs)(i.xu,{ref:de,children:[(0,o.jsxs)("div",{style:{width:g,maxWidth:p,backgroundColor:ue,color:ie,minHeight:null!=y?y:"".concat(a.n,"px"),height:null!=x?x:"auto",boxSizing:b,padding:null!=D?D:"8px ".concat(M),borderColor:ce,borderRadius:P,borderWidth:ee,borderStyle:"solid",fontFamily:"inherit",textRendering:"inherit",MozOsxFontSmoothing:"inherit",WebkitFontSmoothing:"inherit",WebkitTextSizeAdjust:"inherit",cursor:q?"pointer":"initial",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,o.jsx)("input",{style:{width:"100%",border:"0px",padding:"0px",flexGrow:1,height:"100%",fontSize:"16px",outline:"none",boxShadow:"none !important",outlineOffset:"0 !important",margin:0,textAlign:G||void 0,...J?{textTransform:"none"}:{}},min:E,step:R,onWheel:e=>e.currentTarget.blur(),max:_,autoFocus:L,onChange:e=>{t&&t(e),Z&&Z(),z&&z()},autoComplete:N,inputMode:"number"===n?"decimal":"text",type:n,onKeyDown:e=>{d&&d(e),Z&&Z(),z&&z();const t=e.keyCode?e.keyCode:e.which;h&&13==t&&(h(e),$(!1))},placeholder:u,defaultValue:T,onFocus:e=>{w&&w(e),$(!0)},readOnly:f,onBlur:e=>{v&&v(e),Z&&Z(),z&&z(),$(!1)},name:j,id:C,value:S,disabled:k||q,ref:F,...I,"aria-label":K,"aria-required":H}),!!W&&U]}),A&&(0,o.jsx)(l.Z,{children:(0,o.jsx)(i.J2,{anchor:he,onDismiss:()=>{z&&z()},color:"white",idealDirection:"down",size:Y||"flexible",positionRelativeToAnchor:!1,children:(0,o.jsx)(i.xu,{padding:a.ob,dangerouslySetInlineStyle:{__style:{color:s.tb}},children:(0,o.jsx)(i.xv,{children:A})})})}),W&&!B&&(0,o.jsx)(l.Z,{children:(0,o.jsx)(i.J2,{anchor:he,onDismiss:()=>{Z&&Z()},color:"red",idealDirection:"down",positionRelativeToAnchor:!1,children:(0,o.jsx)("div",{style:{padding:16},className:"white",children:(0,o.jsx)(i.xv,{color:"white",children:W})})})})]})]})})},70370:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var o=n(31549),i=(n(44194),n(66214));function r(e){let{className:t,...n}=e;return(0,o.jsx)("svg",{className:(0,i.cn)("stroke-black fill-none stroke-2",t),...n})}}},function(e){e.O(0,[8030,5896,6879,7377,9848,6214,9774,2888,179],function(){return t=64965,e(e.s=t);var t});var t=e.O();_N_E=t}]);
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.