1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{8286:function(n,t,o){Promise.resolve().then(o.bind(o,7049)),Promise.resolve().then(o.bind(o,35332)),Promise.resolve().then(o.bind(o,28041)),Promise.resolve().then(o.bind(o,30743)),Promise.resolve().then(o.t.bind(o,47960,23)),Promise.resolve().then(o.bind(o,78288)),Promise.resolve().then(o.bind(o,47866)),Promise.resolve().then(o.bind(o,72541)),Promise.resolve().then(o.bind(o,35389)),Promise.resolve().then(o.bind(o,35179)),Promise.resolve().then(o.bind(o,88925)),Promise.resolve().then(o.bind(o,43894)),Promise.resolve().then(o.bind(o,1207)),Promise.resolve().then(o.bind(o,30798)),Promise.resolve().then(o.bind(o,92248)),Promise.resolve().then(o.bind(o,1952)),Promise.resolve().then(o.bind(o,97867)),Promise.resolve().then(o.bind(o,31085)),Promise.resolve().then(o.bind(o,10575)),Promise.resolve().then(o.t.bind(o,88003,23))},28041:function(n,t,o){"use strict";o.d(t,{Fonts:function(){return f}});var e=o(57437);function a(n){switch(n){case"inter":return"\n @font-face {\n font-family: 'Inter';\n font-optical-sizing: auto;\n font-weight: 100 900;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/inter-variable.woff2') format('woff2');\n }\n ";case"raleway":return"\n @font-face {\n font-family: 'Raleway';\n font-optical-sizing: auto;\n font-weight: 100 900;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/raleway-variable.woff2') format('woff2');\n }\n ";case"roboto":return"\n @font-face {\n font-family: 'Roboto';\n font-weight: 300;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/roboto-light.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Roboto';\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/roboto-regular.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Roboto';\n font-weight: 500;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/roboto-medium.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Roboto';\n font-weight: 600;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/roboto-semi-bold.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Roboto';\n font-weight: 700;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/roboto-bold.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Roboto';\n font-weight: 800;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/roboto-extra-bold.woff2') format('woff2');\n }\n ";case"mulish":return"\n @font-face {\n font-family: 'Mulish';\n font-optical-sizing: auto;\n font-weight: 100 900;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/mulish-variable.woff2') format('woff2');\n }\n ";case"libre-caslon-text":return"\n @font-face {\n font-family: 'libre-caslon-text';\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/libre-caslon-text-regular.woff2') format('woff2');\n }\n @font-face {\n font-family: 'libre-caslon-text';\n font-weight: 700;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/libre-caslon-text-bold.woff2') format('woff2');\n }\n ";case"bodoni-moda":return"\n @font-face {\n font-family: 'Bodoni Moda';\n font-optical-sizing: auto;\n font-weight: 100 900;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/bodoni-moda-variable.woff2') format('woff2');\n }\n ";case"open-sans":return"\n @font-face {\n font-family: 'open-sans';\n font-optical-sizing: auto;\n font-weight: 300 800;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/open-sans-variable.woff2') format('woff2');\n }\n ";case"alegreya-sans":return"\n @font-face {\n font-family: 'alegreya-sans';\n font-weight: 300;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/alegreya-sans-light.woff2') format('woff2');\n }\n @font-face {\n font-family: 'alegreya-sans';\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/alegreya-sans-regular.woff2') format('woff2');\n }\n @font-face {\n font-family: 'alegreya-sans';\n font-weight: 500;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/alegreya-sans-medium.woff2') format('woff2');\n }\n @font-face {\n font-family: 'alegreya-sans';\n font-weight: 700;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/alegreya-sans-bold.woff2') format('woff2');\n }\n @font-face {\n font-family: 'alegreya-sans';\n font-weight: 800;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/alegreya-sans-extra-bold.woff2') format('woff2');\n }\n ";case"montserrat":return"\n @font-face {\n font-family: 'Montserrat';\n font-optical-sizing: auto;\n font-weight: 100 900;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/montserrat-variable.woff2') format('woff2');\n }\n ";case"playfair-display":return"\n @font-face {\n font-family: 'playfair-display';\n font-optical-sizing: auto;\n font-weight: 400 900;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/playfair-display-variable.woff2') format('woff2');\n }\n ";case"source-serif-4":return"\n @font-face {\n font-family: 'Source Serif 4';\n font-optical-sizing: auto;\n font-weight: 100 900;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/source-serif-4-variable.woff2') format('woff2');\n }\n ";case"lato":return"\n @font-face {\n font-family: 'Lato';\n font-weight: 300;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/lato-light.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Lato';\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/lato-regular.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Lato';\n font-weight: 700;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/lato-bold.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Lato';\n font-weight: 800;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/lato-black.woff2') format('woff2');\n }\n ";case"figtree":return"\n @font-face {\n font-family: 'Figtree';\n font-optical-sizing: auto;\n font-weight: 100 900;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/figtree-variable.woff2') format('woff2');\n }\n ";case"public-sans":return"\n @font-face {\n font-family: 'public-sans';\n font-optical-sizing: auto;\n font-weight: 100 900;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/public-sans-variable.woff2') format('woff2');\n }\n ";case"poppins":return"\n @font-face {\n font-family: 'Poppins';\n font-weight: 300;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/poppins-light.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Poppins';\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/poppins-regular.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Poppins';\n font-weight: 500;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/poppins-medium.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Poppins';\n font-weight: 600;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/poppins-semi-bold.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Poppins';\n font-weight: 700;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/poppins-bold.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Poppins';\n font-weight: 800;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/poppins-extra-bold.woff2') format('woff2');\n }\n ";case"barlow":return"\n @font-face {\n font-family: 'Barlow';\n font-weight: 300;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/barlow-light.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Barlow';\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/barlow-regular.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Barlow';\n font-weight: 500;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/barlow-medium.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Barlow';\n font-weight: 600;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/barlow-semi-bold.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Barlow';\n font-weight: 700;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/barlow-bold.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Barlow';\n font-weight: 800;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/barlow-extra-bold.woff2') format('woff2');\n }\n ";case"yantramanav":return"\n @font-face {\n font-family: 'Yantramanav';\n font-weight: 300;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/yantramanav-light.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Yantramanav';\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/yantramanav-regular.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Yantramanav';\n font-weight: 500;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/yantramanav-medium.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Yantramanav';\n font-weight: 600;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/yantramanav-semi-bold.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Yantramanav';\n font-weight: 700;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/yantramanav-bold.woff2') format('woff2');\n }\n @font-face {\n font-family: 'Yantramanav';\n font-weight: 800;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/yantramanav-extra-bold.woff2') format('woff2');\n }\n ";case"wwbeta8":return"\n @font-face {\n font-family: 'wwbeta8';\n font-weight: 300;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/wwbeta8-light.woff2') format('woff2');\n }\n @font-face {\n font-family: 'wwbeta8';\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/wwbeta8-regular.woff2') format('woff2');\n }\n @font-face {\n font-family: 'wwbeta8';\n font-weight: 500;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/wwbeta8-medium.woff2') format('woff2');\n }\n @font-face {\n font-family: 'wwbeta8';\n font-weight: 600;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/wwbeta8-medium.woff2') format('woff2');\n }\n @font-face {\n font-family: 'wwbeta8';\n font-weight: 700;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/wwbeta8-bold.woff2') format('woff2');\n }\n @font-face {\n font-family: 'wwbeta8';\n font-weight: 800;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/wwbeta8-black.woff2') format('woff2');\n }\n ";case"cormorant":return"\n @font-face {\n font-family: 'Cormorant';\n font-optical-sizing: auto;\n font-weight: 100 900;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/cormorant-variable-font_wght.woff2') format('woff2');\n }\n ";case"noto-serif-display":return"\n @font-face {\n font-family: 'noto-serif-display';\n font-optical-sizing: auto;\n font-weight: 300;\n font-style: normal;\n font-display: swap;\n src: url('/fonts/noto-serif-display-light.woff2') format('woff2');\n }\n ";default:return"\n @font-face {\n font-family: 'Inter';\n src: url('/fonts/inter/inter-regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n "}}function f(n){let{sans:t,display:o}=n;return(0,e.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n ".concat(a(t),"\n ").concat(a(o),"\n :root {\n --font-sans: '").concat(t,"';\n --font-display: '").concat(o,"';\n }\n ")}})}},30743:function(n,t,o){"use strict";o.d(t,{Theme:function(){return r}});var e=o(57437),a=o(71432);function f(n){let t=a.hex.hsl(n.replace("#","").trim());return"".concat(t[0],"deg ").concat(t[1],"% ").concat(t[2],"%")}function r(n){let{config:t}=n;return(0,e.jsx)("style",{children:"\n :root {\n --background: ".concat(t.background?f(t.background):"0deg 0% 100%","; /* white */\n --foreground: ").concat(t.foreground?f(t.foreground):"224 72% 5%","; /* gray-950 */\n --muted: ").concat(t.muted?f(t.muted):"220 15% 96%","; /* gray-100 */\n --muted-foreground: ").concat(t.mutedForeground?f(t.mutedForeground):"220 9% 47%","; /* gray-500 */\n --card: ").concat(t.card?f(t.card):"0deg 0% 100%","; /* white */\n --card-foreground: ").concat(t.cardForeground?f(t.cardForeground):"224 72% 5%","; /* gray-950 */\n --popover: ").concat(t.popover?f(t.popover):"0deg 0% 100%","; /* white */\n --popover-foreground: ").concat(t.popoverForeground?f(t.popoverForeground):"224 72% 5%","; /* gray-950 */\n --border: ").concat(t.border?f(t.border):"214.3deg 31.8% 91.4%",";\n --input: ").concat(t.input?f(t.input):"214.3deg 31.8% 91.4%",";\n --primary: ").concat(t.primary?f(t.primary):"224 7
12% 5%","; /* gray-950 */\n --primary-foreground: ").concat(t.primaryForeground?f(t.primaryForeground):"210 20% 99%","; /* gray-50 */\n --secondary: ").concat(t.secondary?f(t.secondary):"220 15% 96%","; /* gray-100 */\n --secondary-foreground: ").concat(t.secondaryForeground?f(t.secondaryForeground):"221 40% 11%","; /* gray-900 */\n --accent: ").concat(t.accent?f(t.accent):"220 15% 96%","; /* gray-100 */\n --accent-foreground: ").concat(t.accentForeground?f(t.accentForeground):"221 40% 11%","; /* gray-900 */\n --destructive: ").concat(t.destructive?f(t.destructive):"0 85% 61%","; /* red-500 */\n --destructive-foreground: ").concat(t.destructiveForeground?f(t.destructiveForeground):"210 20% 99%","; /* gray-50 */\n --ring: ").concat(t.ring?f(t.ring):"224 72% 5%","; /* gray-950 */\n --radius: ").concat({None:"0rem",Small:"0.375rem",Medium:"0.5rem",Large:"0.75rem"}[t.radius]||"0.5rem",";\n }\n ")})}},78288:function(n,t,o){"use strict";o.d(t,{ConsoleLogOverride:function(){return a}});var e=o(2265);function a(){return(0,e.useEffect)(()=>{console.log=()=>{},console.debug=()=>{}},[]),null}},60571:function(n,t,o){"use strict";o.d(t,{$N:function(){return p},Be:function(){return y},GG:function(){return c},Vq:function(){return s},cN:function(){return w},cZ:function(){return m},fK:function(){return u},hg:function(){return l}});var e=o(57437),a=o(2265),f=o(49255),r=o(36869);let s=f.fC,l=f.xz,i=f.h_,c=f.x8,d=a.forwardRef((n,t)=>{let{className:o,...a}=n;return(0,e.jsx)(f.aV,{ref:t,className:(0,r.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",o),...a})});d.displayName=f.aV.displayName;let m=a.forwardRef((n,t)=>{let{className:o,children:a,...s}=n;return(0,e.jsxs)(i,{children:[(0,e.jsx)(d,{}),(0,e.jsx)(f.VY,{ref:t,className:(0,r.cn)("fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",o),...s,children:a})]})});function u(n){let{className:t,...o}=n;return(0,e.jsx)("div",{className:(0,r.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...o})}function w(n){let{className:t,...o}=n;return(0,e.jsx)("div",{className:(0,r.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...o})}m.displayName=f.VY.displayName,u.displayName="DialogHeader",w.displayName="DialogFooter";let p=a.forwardRef((n,t)=>{let{className:o,...a}=n;return(0,e.jsx)(f.Dx,{ref:t,className:(0,r.cn)("text-lg font-semibold font-display leading-none tracking-tight",o),...a})});p.displayName=f.Dx.displayName;let y=a.forwardRef((n,t)=>{let{className:o,...a}=n;return(0,e.jsx)(f.dk,{ref:t,className:(0,r.cn)("text-sm text-muted-foreground",o),...a})});y.displayName=f.dk.displayName},75741:function(n,t,o){"use strict";o.d(t,{I:function(){return r}});var e=o(57437),a=o(2265),f=o(36869);let r=a.forwardRef((n,t)=>{let{className:o,type:a,...r}=n;return(0,e.jsx)("input",{type:a,className:(0,f.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",o),ref:t,...r})});r.displayName="Input"},47866:function(n,t,o){"use strict";o.d(t,{Omnichannel:function(){return l}});var e=o(57437),a=o(33805),f=o(99376),r=o(2265);function s(n){let{stores:t}=n,o=(0,f.useSearchParams)(),{setSelectedStore:e}=(0,a.pE)();return(0,r.useEffect)(()=>{let n=o.get("store");if(n){let o=t.find(t=>t.sitooWarehouseId===n);o&&e(o)}},[o]),null}function l(n){let{children:t,stores:o}=n;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Suspense,{fallback:null,children:(0,e.jsx)(s,{stores:o})}),t]})}},78938:function(n,t,o){"use strict";o.d(t,{N:function(){return a}});var e=o(2265);function a(n,t){let[o,a]=(0,e.useState)(n);return(0,e.useEffect)(()=>
1{if(!n)return;let o=setTimeout(()=>{a(n)},t);return()=>{clearTimeout(o)}},[n,t]),o}},72541:function(n,t,o){"use strict";o.d(t,{EmployeeSignInForm:function(){return x}});var e=o(57437),a=o(75741),f=o(4156),r=o(42586),s=o(52634),l=o(15640),i=o(76863),c=o(52906),d=o(2265),m=o(62005),u=o(33805);o(83079);var w=o(12119);(0,w.$)("941f1714f95a9fcbed7e86372c3725dc8fc351fb");var p=(0,w.$)("cf3d712d83217a084e39d5c0f5a8176ff36ea881"),y=(0,w.$)("a5cadc2734cf7826a740c5d16f2b9210793903e9");(0,w.$)("0ccb9fb9ba311a04622b963bde9522dd1c4d131a");var g=o(80486),h=o(14340),b=o(60571);function x(){let[n,t]=(0,d.useState)("SIGN_IN"),[o,w]=(0,d.useState)(),[x,v]=(0,d.useState)(),[j,N]=(0,d.useState)(!1),[S,P]=(0,d.useState)(!1),R=(0,r.useTranslations)("components.authForms"),{updateConsentState:C}=(0,u.Cg)(),{hasVoyado:k}=(0,u.A$)(),I=(0,s.Ryn)({email:(0,s.zGw)((0,s.Z_8)(),(0,s.v2J)(R("errors.emailRequired")),(0,s.Dom)(R("errors.emailInvalid"))),password:(0,s.zGw)((0,s.Z_8)(),(0,s.v2J)(R("errors.passwordRequired")))}),z=(0,s.Ryn)({email:(0,s.zGw)((0,s.Z_8)(),(0,s.v2J)(R("errors.emailRequired")),(0,s.Dom)(R("errors.emailInvalid")))}),F=(0,f.cI)({resolver:(0,l.Y)(I),defaultValues:{email:"",password:""}}),E=(0,f.cI)({resolver:(0,l.Y)(z),defaultValues:{email:""}});async function O(n){P(!0),w(void 0);try{let{status:t,data:o}=await p(n.email,n.password);"ERROR"===t?w(R("errors.invalidCredentials")):"LAZY_MIGRATION"===t?N(!0):"SUCCESS"===t&&(window.location.href=o||"/")}catch(n){(0,m.Tb)(n)}P(!1)}async function _(n){P(!0),w(void 0),v(void 0),await y(n.email)?v(R("success.forgotPassword")):w(R("errors.somethingWrong")),P(!1)}let T=async n=>{try{let t=n.target.value,{voyadoContactId:o}=k?await (0,g.H)(t):{voyadoContactId:void 0},e={};o&&(e.voyadoContactId=o),e.email=t,C(e)}catch(n){(0,m.Tb)(n)}},G=n=>{let o=F.getValues("email");o&&E.setValue("email",o),t(n)};return(0,e.jsxs)(e.Fragment,{children:["SIGN_IN"===n?(0,e.jsx)(i.l0,{...F,children:(0,e.jsxs)("form",{onSubmit:F.handleSubmit(O),className:"flex flex-col px-4 w-full md:max-w-sm",children:[(0,e.jsx)("h1",{className:"text-2xl font-medium",children:R("signIn.headline")}),(0,e.jsxs)("p",{className:"inline-flex gap-1 text-sm text-foreground",children:[(0,e.jsx)("span",{children:"Har du allerede en konto?"}),(0,e.jsx)("button",{type:"button",className:"font-medium underline text-foreground",onClick:()=>G("FORGOT_PASSWORD"),children:R("labels.forgotPassword")})]}),(0,e.jsxs)("div",{className:"flex flex-col gap-2 [&>input]:mb-3 mt-8",children:[(0,e.jsx)(i.Wi,{control:F.control,name:"email",render:n=>{let{field:t}=n;return(0,e.jsxs)(i.xJ,{children:[(0,e.jsx)(i.lX,{children:R("labels.email")}),(0,e.jsx)(i.NI,{children:(0,e.jsx)(h.U,{...t,onBlur:T})}),(0,e.jsx)(i.zG,{})]})}}),(0,e.jsx)(i.Wi,{control:F.control,name:"password",render:n=>{let{field:t}=n;return(0,e.jsxs)(i.xJ,{children:[(0,e.jsx)(i.lX,{children:R("labels.password")}),(0,e.jsx)(i.NI,{children:(0,e.jsx)(a.I,{autoComplete:"current-password",type:"password",...t})}),(0,e.jsx)(i.zG,{})]})}}),(0,e.jsx)(c.z,{type:"submit",disabled:S,children:S?R("labels.loading"):R("signIn.labels.submit")}),o&&(0,e.jsx)("p",{className:"text-sm font-medium text-destructive",children:o})]})]})}):null,"FORGOT_PASSWORD"===n?(0,e.jsx)(i.l0,{...E,children:(0,e.jsxs)("form",{onSubmit:E.handleSubmit(_),className:"px-4 w-full flex flex-col md:max-w-[800px]",children:[(0,e.jsx)("h1",{className:"text-2xl font-medium",children:R("forgotPassword.headline")}),(0,e.jsxs)("p",{className:"inline-flex gap-1 text-sm text-foreground",children:[(0,e.jsx)("span",{children:"Tilbage til"}),(0,e.jsx)("button",{className:"font-medium underline text-foreground",onClick:()=>G("SIGN_IN"),children:R("labels.signIn")})]}),(0,e.jsxs)("div",{className:"flex flex-col gap-2 [&>input]:mb-3 mt-8",children:[(0,e.jsx)(i.Wi,{control:E.control,name:"email",render:n=>{let{field:t}=n;return(0,e.jsxs)(i.xJ,{children:[(0,e.jsx)(i.lX,{children:R("labels.email")}),(0,e.jsx)(i.NI,{children:(0,e.jsx)(h.U,{...t,onBlur:T})}),(0,e.jsx)(i.zG,{})]})}}),(0,e.jsx)(c.z,{type:"submit",disabled:S,children:S?R("labels.loading"):R("forgotPassword.labels.submit")}),o&&(0,e.jsx)("p",{className:"text-sm font-medium text-destructive",children:o}),x&&(0,e.jsx)("p",{className:"text-sm font-medium text-green-500",children:x})]})]})}):null,j?(0,e.jsx)(b.Vq,{open:j,onOpenChange:N,children:(0,e.jsx)(b.cZ,{className:"w-full max-w-[500px]",children:(0,e.jsxs)("div",{className:"flex flex-col gap-8 justify-center items-center p-4",children:[(0,e.jsx)("img",{src:"/images/dk-company-logo.svg",alt:"DK Company logo",className:"w-[300px]"}),(0,e.jsxs)(b.fK,{children:[(0,e.jsx)(b.$N,{className:"text-3xl font-semibold text-center",children:"Vi har opdateret vores systemer, du bedes derfor skifte din adgangskode"}),(0,e.jsx)(b.Be,{className:"text-base text-center",children:"Tjek venligst din e-mail og f\xf8lg instruktionerne for at skifte din adgangskode. Du kan nu lukke dette vindue."})]})]})})}):null]})}},80486:function(n,t,o){"use strict";o.d(t,{H:function(){return a}}),o(83079);var e=o(12119);(0,e.$)("fa9ee893df2aa7ce51dbe7cfc19d548324620f35");var a=(0,e.$)("a9e54eab0e7e5031c3169e1d208000ff7512bb7f")},1207:function(n,t,o){"use strict";o.d(t,{SalesforceClientProvider:function(){return s}});var e=o(57437),a=o(60571),f=o(2265);let r=(0,f.createContext)({});function s(n){let{messages:t}=n,[o,s]=(0,f.useState)("INIT"),l=async n=>{try{console.log("Fetch called"),await fetch("https://dkc-leadhub.azurewebsites.net/api/v2/leads/".concat(n,"/approve"),{method:"POST",headers:{"Content-Type":"application/json"},body:void 0}).then(n=>{console.log("Fetch called",n.status),s("SUCCESS")}).catch(n=>{throw Error("Could not fetch")})}catch(n){console.log("HERE Fetch error",n),s("ERROR")}};return(0,f.useEffect)(()=>{let n=new URLSearchParams(window.location.search).get("confirmNewsletter");n&&l(n)},[]),(0,e.jsxs)(r.Provider,{value:{},children:[n.children,["INIT","SUCCESS","ERROR","CLOSED"].includes(o)?(0,e.jsx)(a.Vq,{open:["SUCCESS","ERROR"].includes(o),children:(0,e.jsxs)(a.cZ,{className:"w-full max-w-sm rounded",children:[(0,e.jsx)(a.fK,{children:(0,e.jsx)(a.$N,{children:"SUCCESS"===o?t.components.newsletter.confirmation.success.headline:t.components.newsletter.confirmation.error.headline})}),(0,e.jsx)("div",{children:"SUCCESS"===o?t.components.newsletter.confirmation.success.description:t.components.newsletter.confirmation.error.description}),(0,e.jsx)("button",{onClick:()=>s("CLOSED"),className:"px-6 py-3 text-sm font-medium text-white rounded-md bg-primary hover:bg-primary-dark",children:"SUCCESS"===o?t.components.newsletter.confirmation.success.button:t.components.newsletter.confirmation.error.button})]})}):null]})}},47960:function(){}},function(n){n.O(0,[3587,5262,8752,2586,8111,9633,8932,6912,9696,9678,4074,4014,2410,2971,8710,1744],function(){return n(n.s=8286)}),_N_E=n.O()}]);
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.