PageSourceSearch

https://www.iskn.co/build/_shared/chunk-LQ37I5NY.js

js iskn.co collected 2026-09-24 11:21:47 UTC 9,086 bytes, 6 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a69ce0f4-9ab5-51dc-9db9-7a60314640b3")}catch(e){}}();
3import{p as w,q as N,t as v}from"/build/_shared/chunk-WURTNJ6X.js";import{C as T,i as h,p as I}from"/build/_shared/chunk-LPC3GO7C.js";import{a as L}from"/build/_shared/chunk-LJKIQOKQ.js";import{e as y}from"/build/_shared/chunk-3WC5IHJS.js";var p=y(L());var e=y(T());function q({customer:l,fieldErrors:n,formError:a,heading:r,isSubmitted:u,variant:t}){let s=w(),{state:d}=h(),[c,o]=(0,p.useState)(!1),i=(0,p.useRef)(null),g=(0,p.useRef)(null);return(0,e.jsx)("div",{className:v(["max-w-md",t!=="edit"&&"mx-auto"]),children:u&&t==="recover"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("h1",{className:"text-center font-starling text-4xl",children:s?.request_sent_heading}),(0,e.jsx)("div",{className:"mt-4 text-center",children:(0,e.jsx)("p",{children:s?.recover_message})})]}):(0,e.jsxs)(e.Fragment,{children:[r&&(0,e.jsx)("h1",{className:"text-center font-starling text-4xl",children:r}),t==="recover"||t==="activate"?(0,e.jsx)("div",{className:"!mt-4 text-center",children:(0,e.jsxs)("p",{children:[t==="recover"&&(0,e.jsx)(e.Fragment,{children:s?.reset_message}),t==="activate"&&(0,e.jsx)(e.Fragment,{children:s?.password_creation_message})]})}):null,(0,e.jsxs)("div",{className:v([t!=="edit"&&"mt-10 sm:mx-auto sm:w-full sm:max-w-sm"]),children:[(0,e.jsxs)(I,{className:"space-y-6",method:"post",noValidate:!0,children:[a&&(0,e.jsx)("div",{className:v(["mb-6 flex items-center justify-center rounded-lg bg-gray-200",a==="error_customer_disabled"?"bg-green-200":"bg-gray-200"]),children:(0,e.jsx)("p",{className:"text-s text-contrast m-4",children:s?.[a]})}),t==="edit"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(R,{customer:l,setFormHasError:o}),(0,e.jsx)("div",{className:"!mt-10 font-semibold",children:s?.change_your_password}),(0,e.jsx)(V,{fieldErrors:n,passwordConfirmInput:g,passwordInput
3:i,setFormHasError:o})]}),t==="register"||t==="recover"||t==="login"?(0,e.jsx)(F,{label:s?.email_label,name:"email",setFormHasError:o}):null,t==="register"||t==="reset"||t==="activate"||t==="login"?(0,e.jsx)(E,{info:t==="register"?s?.password_requirement:void 0,label:s?.password_label,name:"password",passwordInput:i,setFormHasError:o,variant:t}):null,t==="register"||t==="reset"||t==="activate"?(0,e.jsx)(H,{label:s?.re_enter_password_label,name:"passwordConfirm",passwordConfirmInput:g,passwordInput:i,setFormHasError:o}):null,(0,e.jsx)("div",{children:(0,e.jsxs)("button",{className:"flex w-full justify-center rounded-lg bg-primary-accent px-7 py-1.5 text-lg font-semibold text-white shadow-sm hover:bg-primary-accent/90 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-dark-background-alt",disabled:!!(d!=="idle"||c),type:"submit",children:[t==="register"&&s?.create_account_button,t==="login"&&s?.sign_in_button,t==="recover"&&s?.reset_button,t==="edit"&&(0,e.jsx)(e.Fragment,{children:d!=="idle"?s?.saving_button:s?.save_button}),t==="reset"||t==="activate"?s?.save_button:null]})})]}),(0,e.jsxs)("div",{className:"!mt-5 space-y-5 text-sm text-gray-500",children:[t==="login"&&(0,e.jsx)("p",{className:"text-center",children:s?.or_text}),(0,e.jsxs)("p",{className:"text-center",children:[t==="register"&&(0,e.jsxs)("span",{children:[s?.already_have_an_account_button,"\xA0"]}),t==="recover"&&(0,e.jsxs)("span",{children:[s?.return_to_button,"\xA0"]}),(0,e.jsxs)("span",{className:"font-semibold text-primary-accent",children:[t==="login"&&(0,e.jsx)(N,{path:"/account/register",children:s?.create_account_button}),t==="register"||t==="recover"?(0,e.jsx)(N,{path:"/account/login",children:s?.sign_in_button}):null]})]})]})]})]})})}function R({customer:l,setFormHasError:n}){let a=w();return(0,e.jsxs)("div",{className:"max-w-full space-y-4 lg:w-96",children:[(0,e.jsx)(C,{autoComplete:"given-name",defaultValue:l?.firstName??"",label:a?.first_name_label,name:"firstName"}),(0,e.jsx)(C,{autoComplete:"family-name",defaultValue:l?.lastName??"",label:a?.last_name_label,name:"lastName"}),(0,e.jsx)(M,{autoComplete:"tel",defaultValue:l?.phone??"",label:a?.tel_label,name:"phone"}),(0,e.jsx)(F,{defaultValue:l?.email||void 0,label:a?.email_label,name:"email",setFormHasError:n})]})}
3function V({fieldErrors:l,passwordConfirmInput:n,passwordInput:a,setFormHasError:r}){let u=w();return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(E,{fieldErrors:l,label:u?.current_password_label,name:"currentPassword",setFormHasError:r,variant:"edit"}),(0,e.jsx)(E,{fieldErrors:l,label:u?.new_password_label,name:"newPassword",passwordInput:a,setFormHasError:r,variant:"edit"}),(0,e.jsx)(H,{fieldErrors:l,label:u?.re_enter_new_password_label,name:"newPassword2",passwordConfirmInput:n,passwordInput:a,setFormHasError:r})]})}function C({autoComplete:l,defaultValue:n,label:a,name:r}){return(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:x,htmlFor:r,children:a}),(0,e.jsx)("div",{className:"mt-2",children:(0,e.jsx)("input",{"aria-label":a,autoComplete:l,className:_,defaultValue:n,id:r,name:r,type:"text"})})]})}function M({autoComplete:l,defaultValue:n,label:a,name:r}){return(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:x,htmlFor:r,children:a}),(0,e.jsx)("div",{className:"mt-2",children:(0,e.jsx)("input",{"aria-label":a,autoComplete:l,className:_,defaultValue:n,id:r,name:r,type:"tel"})})]})}function F({defaultValue:l,label:n,name:a,setFormHasError:r}){let u=w(),[t,s]=(0,p.useState)(null),[d,c]=(0,p.useState)(void 0),o=({event:i})=>{i.target.value.length>0&&!i.target.validity.valid&&s&&(r(!0),s(u?.error_invalid_email)),i.target.value.length>0&&i.target.validity.valid&&s&&(r(!1),s(""))};return(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:x,htmlFor:a,children:n}),(0,e.jsxs)("div",{className:"mt-2",children:[(0,e.jsx)("input",{"aria-label":n,autoComplete:"email",className:_,defaultValue:l,id:"email",name:"email",onBlur:i=>{o({event:i})},onChange:i=>{clearTimeout(d),s&&s("");let g=setTimeout(()=>{o({event:i})},850);c(g)},required:!0,type:"email"}),t&&(0,e.jsxs)("p",{className:"mt-2 text-xs text-red-500",children:[t," \xA0"]})]})]})}
3function E({fieldErrors:l,info:n,label:a,name:r,passwordInput:u,setFormHasError:t,variant:s}){let d=w(),[c,o]=(0,p.useState)(null),[i,g]=(0,p.useState)(void 0),m=({event:b})=>{b.target.validity.valid||!b.target.value.length?(o&&o(""),t(!1)):o&&(t(!0),o(b.target.validity.valueMissing?d?.error_password_empty:d?.password_requirement))};return(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsxs)("label",{className:x,htmlFor:r,children:[a,n&&(0,e.jsx)("p",{className:"mt-2 text-xs opacity-60",children:n})]}),s==="login"&&(0,e.jsx)("div",{className:"text-sm font-semibold text-primary-accent",children:(0,e.jsx)(N,{path:"/account/recover",children:d?.forgot_password_label})})]}),(0,e.jsxs)("div",{className:"mt-2",children:[(0,e.jsx)("input",{"aria-label":a,autoComplete:v([r==="currentPassword"&&"current-password",r==="newPassword"&&"new-password",s==="register"&&"new-password"]),className:_,id:r,minLength:8,name:r,onBlur:b=>{m({event:b})},onChange:b=>{clearTimeout(i),o&&o("");let f=setTimeout(()=>{m({event:b})},850);g(f)},ref:u,required:!0,type:"password"}),c||l?.[r]?(0,e.jsxs)("p",{className:"mt-2 text-xs text-red-500",children:[c,d?.[l?.[r]],"\xA0"]}):null]})]})}function H({fieldErrors:l,label:n,name:a,passwordConfirmInput:r,passwordInput
3:u,setFormHasError:t}){let s=w(),[d,c]=(0,p.useState)(null),[o,i]=(0,p.useState)(void 0),g=({passwordConfirmInput:m,passwordInput:b,setNativePasswordConfirmError:f})=>{m.current&&(m.current.value.length>0&&m.current.value!==b.current?.value?(t(!0),f&&f(s?.error_two_passwords_must_match)):m.current.validity.valid||!m.current.value.length?(t(!1),f&&f("")):(t(!0),f&&f(m.current.validity.valueMissing?s?.error_re_enter_password:s?.password_requirement)))};return(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:x,htmlFor:a,children:n}),(0,e.jsxs)("div",{className:"mb-3 mt-2",children:[(0,e.jsx)("input",{"aria-label":n,autoComplete:v([a==="newPassword2"&&"new-password",a==="passwordConfirm"&&"new-password"]),className:_,id:a,minLength:8,name:a,onBlur:()=>g({passwordConfirmInput:r,passwordInput:u,setNativePasswordConfirmError:c}),onChange:()=>{clearTimeout(o),c&&c("");let m=setTimeout(()=>{g({passwordConfirmInput:r,passwordInput:u,setNativePasswordConfirmError:c})},850);i(m)},ref:r,required:!0,type:"password"}),d||l?.newPassword2?(0,e.jsxs)("p",{className:"mt-2 text-xs text-red-500",children:[" ",d,s?.[l?.[a]],"\xA0"]}):null]})]})}var _=v(["block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm","ring-1 ring-inset ring-gray-300 placeholder:text-gray-400","focus:ring-2 focus:ring-inset focus:ring-dark-background-alt sm:text-sm sm:leading-6"]),x=v("block text-sm font-medium leading-6 text-gray-900");export{q as a,_ as b};
4
5
6//# debugId=a69ce0f4-9ab5-51dc-9db9-7a60314640b3

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.