PageSourceSearch

https://konst24.se/_next/static/chunks/app/%5Blocale%5D/signin/page-a186a24f56da8e38.js

js konst24.se collected 2026-10-03 21:37:07 UTC 17,055 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7412],{5039:(e,r,t)=>{var a={"./da/common.json":[2014,2014],"./en/common.json":[43486,3486],"./fi/common.json":[34384,4384],"./nl/common.json":[77225,7225],"./no/common.json":[74222,4222],"./sv/common.json":[52880,499]};function n(e){if(!t.o(a,e))return Promise.resolve().then(()=>{var r=Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r});var r=a[e],n=r[0];return t.e(r[1]).then(()=>t.t(n,19))}n.keys=()=>Object.keys(a),n.id=5039,e.exports=n},20388:(e,r,t)=>{"use strict";t.d(r,{dw:()=>s,hj:()=>o});let a=["about","contact","nav","home","footer","gallery","intent","forArtistsPage","guidesHub","artwork","artists","collections","featured","filters","search","errors","auth","common","newsletter","publicPages","seoEditorial","schema","artAdvisor","artistRelated","artistSupport","artistAuthority","artistProfile","artistShop","recentlyViewed","favorites","following","featuresPage"],n=new Set(a);function s(e){var r;return r=e.split(".")[0]??"",n.has(r)}function o(e,r){let t,n=(!function e(r,t){for(let a of Object.keys(t)){let n=t[a],s=r[a];n&&"object"==typeof n&&!Array.isArray(n)&&s&&"object"==typeof s&&!Array.isArray(s)?e(s,n):r[a]=n}}(t=structuredClone(e),r),t);for(let e of a){let t=r[e];if(void 0===t){delete n[e];continue}n[e]=t}return n}},25952:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>g});var a=t(95155),n=t(12115),s=t(73321),o=t(37882),i=t(98500),l=t.n(i),d=t(36512),c=t(70569);function u(){let e=(0,s.useSearchParams)(),r=(0,s.usePathname)(),t=(0,s.useRouter)(),{data:i,update:u}=(0,o.useSession)(),h=e.get("oauth"),g=e.get("verified"),f=e.get("email"),m=e.get("passwordReset"),[b,x]=(0,n.useState)(!1),[p,w]=(0,n.useState)(""),[k,v]=(0,n.use
1State)(!1),[y,j]=(0,n.useState)({email:f||"",password:""}),N=r?.split("/")[1]||"sv";(0,n.useEffect)(()=>{if(i?.user&&!b&&r?.includes("/signin")){let r=i.user?.role,a=e.get("callbackUrl"),n=null;if(a&&1)try{let e=new URL(a,window.location.origin);e.origin===window.location.origin&&(n=`${e.pathname}${e.search}${e.hash}`)}catch{n=null}n?t.push(n):"ADMIN"===r?t.push(`/${N}/admin`):t.push(`/${N}/artist/dashboard`)}},[i,b,N,r,t,e]);let L=async e=>{e.preventDefault(),w(""),x(!0);try{let e=await (0,o.signIn)("credentials",{email:y.email,password:y.password,redirect:!1});e?.error?(w((0,c.U)(N,"auth.wrongEmailOrPassword")),x(!1)):e?.ok&&(await u(),t.refresh(),x(!1))}catch(e){w((0,c.U)(N,"auth.unexpectedError")),console.error("Sign in error:",e),x(!1)}},E=async()=>{x(!0),w("");try{let r=window.location.origin,t=(()=>{let r=e.get("callbackUrl");if(!r)return null;try{let e=new URL(r,window.location.origin);if(e.origin!==window.location.origin)return null;return e.href}catch{return null}})(),a=r?`${r}/${N}/artist/dashboard`:`/${N}/artist/dashboard`;await (0,o.signIn)("google",{callbackUrl:t??a,redirect:!0})}catch(e){w((0,c.U)(N,"auth.unexpectedError")),console.error("Sign in error:",e),x(!1)}};(0,n.useEffect)(()=>{if("google"===h){let e=setTimeout(()=>{E()},300);return()=>clearTimeout(e)}},[h]);let C=e=>{let{name:r,value:t}=e.target;j(e=>({...e,[r]:t})),w("")};return(0,a.jsxs)("div",{className:"min-h-screen flex items-center justify-center relative overflow-hidden bg-gray-50 dark:bg-gray-900",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-blue-50 via-purple-50/80 to-pink-50 dark:from-gray-900 dark:via-gray-900 dark:to-gray-800"}),(0,a.jsxs)("div",{className:"relative z-10 bg-white dark:bg-gray-800 rounded-lg shadow-2xl w-full max-w-md mx-4 border border-gray-200 dark:border-gray-700",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-gray-200 dark:border-gray-700",children:[(0,a.jsx)("h2",{className:"text-2xl font-bold text-gray-900 dark:text-darkText",children:(0,c.U)(N,"auth.signIn")}),(0,a.jsx)(l(),{href:`/${N}`,className:"text-gray-400 dark:text-darkText hover:text-gray-600 dark:hover:text-darkText transition-colors","aria-label":(0,c.U)(N,"common.close"),children:(0,a.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,a.jsxs)("form",{onSubmit:L,className:"p-6 space-y-5","aria-label":(0,c.U)(N,"auth.signInWithEmailOrGoogle"),children:["true"===m&&(0,a.jsx)("div",{className:"bg-green-50 dark:bg-green-900/40 border border-green-200 dark:border-green-700 text-green-800 dark:text-green-200 px-4 py-3 rounded-md text-sm",children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("svg",{className:"w-5 h-5 text-green-600 dark:text-green-400 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),(0,a.jsx)("span",{children:(0,c.U)(N,"auth.passwordResetSuccess")})]})}),"true"===g&&(0,a.jsx)("div",{className:"bg-green-50 dark:bg-green-900/40 border border-green-200 dark:border-green-700 text-green-800 dark:text-green-200 px-4 py-3 rounded-md text-sm",children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("svg",{className:"w-5 h-5 text-green-600 dark:text-green-400 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),(0,a.jsx)("span",{children:f?(0,c.U)(N,"auth.emailVerifiedWithAddress",{email:f}):(0,c.U)(N,"auth.emailVerified")})]})}),p&&(0,a.jsx)("div",{className:"bg-red-50 dark:bg-red-900/40 border border-red-200 dark:border-red-700 text-red-600 dark:text-red-300 px-4 py-3 rounded-md text-sm",children:p}),(0,a.jsxs)("div",{role:"group","aria-labelledby":"email-login-label",children:[(0,a.jsx)("p",{id:"email-login-label",className:"sr-only",children:(0,c.U)(N,"auth.signInWithEmail")}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 dark:text-darkText mb-2",children:(0,c.U)(N,"auth.emailAddress")}),(0,a.jsx)("input",{type:"email",id:"email",name:"email",value:y.email,onChange:C,required:!0,className:"w-full px-4 py-3 border border-blue-200 dark:border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent bg-blue-50 dark:bg-gray-700 text-gray-900 dark:text-darkText placeholder-gray-500 dark:placeholder-gray-400",placeholder:(0,c.U)(N,"auth.emailPlaceholder")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700 dark:text-darkText mb-2",children:(0,c.U)(N,"register.password")}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{type:k?"text":"password",id:"password",name:"password",value:y.password,onChange:C,required:!0,className:"w-full px-4 py-3 border border-blue-200 dark:border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent bg-blue-50 dark:bg-gray-700 text-gray-900 dark:text-darkText placeholder-gray-500 dark:placeholder-gray-400 pr-12",placeholder:"••••••••"}),(0,a.jsx)("button",{type:"button",onClick:()=>v(!k),className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-gray-600 transition-colors","aria-label":k?(0,c.U)(N,"register.hidePassword"):(0,c.U)(N,"register.showPassword"),children:k?(0,a.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})}):(0,a.jsxs)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]})})]}),(0,a.jsx)("div",{className:"text-right mt-1",children:(0,a.jsx)("button",{type:"button",onClick:()=>
1v(!k),className:"text-sm text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 underline",children:k?(0,c.U)(N,"register.hidePassword"):(0,c.U)(N,"register.showPassword")})})]}),(0,a.jsx)("button",{type:"submit",disabled:b,className:"w-full bg-blue-700 hover:bg-blue-800 text-white font-semibold py-3 px-6 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:b?(0,c.U)(N,"auth.signingIn"):(0,c.U)(N,"auth.signInWithEmail")})]}),(0,a.jsxs)("div",{className:"relative my-6",children:[(0,a.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,a.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,a.jsx)("div",{className:"relative flex justify-center text-sm",children:(0,a.jsx)("span",{className:"px-2 bg-white dark:bg-gray-800 text-gray-500 dark:text-darkText",children:(0,c.U)(N,"register.or")})})]}),(0,a.jsxs)("div",{role:"group","aria-labelledby":"google-login-label",children:[(0,a.jsx)("p",{id:"google-login-label",className:"sr-only",children:(0,c.U)(N,"auth.signInWithGoogle")}),(0,a.jsxs)("button",{type:"button",onClick:E,disabled:b,className:"w-full flex items-center justify-center gap-3 bg-white dark:bg-gray-700 border-2 border-gray-300 dark:border-gray-600 text-gray-700 dark:text-darkText font-semibold py-3 px-6 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-600 hover:border-gray-400 dark:hover:border-gray-500 transition-all shadow-sm hover:shadow-md disabled:opacity-50 disabled:cursor-not-allowed","aria-label":(0,c.U)(N,"auth.continueWithGoogle"),children:[(0,a.jsxs)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",children:[(0,a.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),(0,a.jsx)("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),(0,a.jsx)("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),(0,a.jsx)("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),(0,a.jsx)("span",{children:(0,c.U)(N,"auth.continueWithGoogle")})]})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between pt-4 text-sm",children:[(0,a.jsx)(l(),{href:(0,d.ZA)(N,"/register"),className:"text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 underline",children:(0,c.U)(N,"auth.becomeMember")}),(0,a.jsx)(l(),{href:(0,d.ZA)(N,"/forgot-password"),className:"text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 underline",children:(0,c.U)(N,"auth.forgotPassword")})]})]})]})]})}function h(){let e=(0,s.usePathname)(),r=e?.split("/")[1]||"sv";return(0,a.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto mb-4"}),(0,a.jsx)("p",{className:"text-gray-600",children:(0,c.U)(r,"common.loading")})]})})}function g(){return(0,a.jsx)(n.Suspense,{fallback:(0,a.jsx)(h,{}),children:(0,a.jsx)(u,{})})}},36512:(e,r,t)=>{"use strict";t.d(r,{ZA:()=>s});var a=t(73446);let n=/^\/(sv|en|da|no|nl|fi)(\/|$)/;function s(e,r="/"){if(!a.cb.includes(e))throw Error(`publicHref: unsupported locale ${JSON.stringify(e)}`);let t=(r||"/").trim();if(!t||"/"===t)return`/${e}`;if(n.test(t))throw Error(`publicHref: path already locale-prefixed: ${JSON.stringify(t)}`);let o=(t.startsWith("/")?t:`/${t}`).replace(/\/+$/,"")||"/";return"/"===o?`/${e}`:`/${e}${o}`}},53780:(e,r,t)=>{"use strict";t.d(r,{i:()=>m});var a=t(20388),n=t(73446),s=t(52880),o=t(43486),i=t(74222),l=t(2014),d=t(77225),c=t(34384);let u=(0,a.hj)(o,i),h=(0,a.hj)(o,l),g=(0,a.hj)(o,d),f=(0,a.hj)(o,c);function m(e){let r=(0,n.QC)(e??void 0);return"sv"===r?s:"no"===r?u:"da"===r?h:"nl"===r?g:"fi"===r?f:o}},70569:(e,r,t)=>{"use strict";t.d(r,{U:()=>l});var a=t(84347),n=t(53780),s=t(73446),o=t(20388),i=t(41463);function l(e,r,t){let l=(0,s.QC)(e),d=(0,n.i)(l),c=(0,a.A0)(d,r),u="1"===i.env.KONST24_STRICT_PUBLIC_LOCALE,h=(0,o.dw)(r);if(c||"en"===l||u||h||(c=(0,a.A0)((0,n.i)("en"),r)),!c)throw Error(`Missing locale string: ${r} (${l})`);return t&&(c=(0,a.GW)(c,t)),c}},73321:(e,r,t)=>{"use strict";var a=t(74645);t.o(a,"useParams")&&t.d(r,{useParams:function(){return a.useParams}}),t.o(a,"usePathname")&&t.d(r,{usePathname:function(){return a.usePathname}}),t.o(a,"useRouter")&&t.d(r,{useRouter:function(){return a.useRouter}}),t.o(a,"useSearchParams")&&t.d(r,{useSearchParams:function(){return a.useSearchParams}})},73446:(e,r,t)=>{"use strict";t.d(r,{BA:()=>i,EM:()=>m,Gl:()=>b,K6:()=>s,QC:()=>x,Ur:()=>k,Zd:()=>o,cb:()=>n,dw:()=>h,e6:()=>p,gu:()=>d,jx:()=>f,m8:()=>c,qY:()=>l,sP:()=>w,tC:()=>u});var a=t(41463);let n=["sv","en","no","da","nl","fi"];function s(e){if(!n.includes(e))return!1;if("sv"===e||"en"===e)return!0;let r=function(e){switch(e){case"da":return a.env.LOCALE_DA_INDEXABLE;case"no":return a.env.LOCALE_NO_INDEXABLE;case"nl":return a.env.LOCALE_NL_INDEXABLE;case"fi":return a.env.LOCALE_FI_INDEXABLE;default:return}}(e);return"0"!==r&&"false"!==r}function o(e){return e?e.split(",")[0]?.trim().split(":")[0]?.toLowerCase()??"":""}function i(e){let r=e.toLowerCase();return"kunst24.dk"===r||"www.kunst24.dk"===r||r.endsWith(".kunst24.dk")}function l(e){let r=e.toLowerCase();return"artweb24.nl"===r||"www.artweb24.nl"===r||r.endsWith(".artweb24.nl")}function d(e){let r=e.toLowerCase();return"artweb24.com"===r||"www.artweb24.com"===r||r.endsWith(".artweb24.com")}function c(e){let r=e.toLowerCase();return"kunst24.be"===r||"www.kunst24.be"===r||r.endsWith(".kunst24.be")}function u(e){let r=e.toLowerCase();return"taide24.fi"===r||"www.taide24.fi"===r||r.endsWith(".taide24.fi")}function h(e){let r=e.toLowerCase();return"konst24.se"===r||"www.konst24.se"===r||r.endsWith(".konst24.se")||"konst24.com"===r||"www.konst24.com"===r}let g=["nl","en"];function f(e,r){let t=o(e);return t&&c(t)?[...g]:[...n]}function m(e){return n.includes(e)}function b(e){let r=x(e);return"nl"===r||"fi"===r?"en":r}function x(e){return e&&m(e)?e:"sv"}function p(e){switch(x(e)){case"da":return{region:"DK",placename:"Denmark",position:"55.6761;12.5683",coverage:"Denmark"};case"no":return{region:"NO",placename:"Norway",position:"59.9139;10.7522",coverage:"Norway"};case"nl":return{region:"NL",placename:"Netherlands",position:"52.3676;4.9041",coverage:"Netherlands"};case"fi":return{region:"FI",placename:"Finland",position:"60.1699;24.9384",coverage:"Finland"};case"en":return{region:"SE",placename:"Scandinavia",position:"59.3293;18.0686",coverage:"Scandinavia"};default:return{region:"SE",placename:"Sweden",position:"59.3293;18.0686",coverage:"Sweden"}}}function w(e){switch(x(e)){case"sv":return"sv-SE";case"no":return"nb-NO";case"da":return"da-DK";case"nl":return"nl-NL";case"fi":return"fi-FI";default:return"en-US"}}function k(e){return x(e)}},79836:(e,r,t)=>{Promise.resolve().then(t.bind(t,25952))},84347:(e,r,t)=>{"use strict";t.d(r,{$:()=>i,A0:()=>d,GW:()=>c,n:()=>l});var a=t(12115),n=t(73446),s=t(20388);async function o(e){let r=(0,n.QC)(e);if((0,n.EM)(e)||e===r||console.warn(`Invalid locale: ${e}, using ${r}`),"sv"===r)try{let e=await t.e(499).then(t.t.bind(t,52880,19));return e?.default&&"object"==typeof e.default?e.default:{}}
1catch(e){return console.error("Failed to load Swedish translations",e),{}}if("en"===r)try{let e=await t.e(3486).then(t.t.bind(t,43486,19));return e?.default&&"object"==typeof e.default?e.default:{}}catch(e){return console.error("Failed to load English translations",e),{}}let a={};try{let e=await t.e(3486).then(t.t.bind(t,43486,19));a=e?.default&&"object"==typeof e.default?e.default:{}}catch(e){return console.error("Failed to load English base for merge",e),{}}try{let e=await t(5039)(`./${r}/common.json`),n=e?.default&&"object"==typeof e.default?e.default:{};return(0,s.hj)(a,n)}catch(e){return console.warn(`No overlay for locale ${r}, using English only`,e),a}}let i=(0,a.cache)(o);function l(e,r){let t=r.split("."),a=e;for(let e of t)if(!a||"object"!=typeof a||!(e in a))return r;else a=a[e];return"string"==typeof a?a:r}function d(e,r){let t=l(e,r);if("string"!=typeof t)return;let a=t.trim();if(a&&a!==r)return a}function c(e,r){return e.replace(/\{\{(\w+)\}\}/g,(e,t)=>String(r[t]??""))}}},e=>{e.O(0,[8500,7882,499,7225,3486,4384,4222,2014,8441,3794,7358],()=>e(e.s=79836)),_N_E=e.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.