1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{146:(e,t,r)=>{"use strict";r.d(t,{Fb:()=>s,HD:()=>i,kp:()=>d});var a=r(73446);let n={sv:{menu:"Meny",close:"St\xe4ng",proDashboard:"Pro-dashboard",domainBadge:"Domain"},en:{menu:"Menu",close:"Close",proDashboard:"Pro dashboard",domainBadge:"Domain"},da:{menu:"Menu",close:"Luk",proDashboard:"Pro-dashboard",domainBadge:"Domain"},no:{menu:"Meny",close:"Lukk",proDashboard:"Pro-dashboard",domainBadge:"Domain"},nl:{menu:"Menu",close:"Sluiten",proDashboard:"Pro-dashboard",domainBadge:"Domain"},fi:{menu:"Valikko",close:"Sulje",proDashboard:"Pro-hallintapaneeli",domainBadge:"Domain"}},o={sv:{title:"Butik & betalning",hint:"Aktivera butiken p\xe5 din egen hemsida. Bes\xf6kare kan betala med Swish och/eller PayPal. Kortbetalning kommer senare.",enableShop:"Visa butik p\xe5 min sida",swishSection:"Swish",swishHint:"Betalningen g\xe5r till ditt Swish-nummer.",number:"Swish-nummer (10 siffror)",paypalSection:"PayPal",paypalHint:"Betalningen g\xe5r till din PayPal-e-post.",paypalEmail:"PayPal-e-post",enablePaypal:"Ta emot PayPal",cardLater:"Kortbetalning planeras â inte tillg\xe4nglig \xe4n.",save:"Spara",saving:"Spararâ¦",saved:"Sparat",platformOff:"Ingen betalningsmetod \xe4r aktiverad p\xe5 servern \xe4nnu. Kontakta support om k\xf6pknappar saknas p\xe5 din live-sida.",current:"Nuvarande:",notEnabledOnServer:"ej aktiverat p\xe5 servern"},en:{title:"Shop & payments",hint:"Enable the shop on your artist site. Visitors can pay with Swish and/or PayPal. Card payments coming later.",enableShop:"Show shop on my site",swishSection:"Swish",swishHint:"Payment goes to your Swish number.",number:"Swish number (10 digits)",paypalSection:"PayPal",paypalHint:"Payment goes to your PayPal email.",paypalEmail:"PayPal email",enablePaypal:"Accept PayPal",cardLater:"Card payments are planned â not available yet.",save:"Save",saving:"Savingâ¦",saved:"Saved",platformOff:"No payment method is enabled on the server yet. Contact support if buy buttons are missing on your live site.",current:"Current:",notEnabledOnServer:"not enabled on server"},da:{title:"Butik & betaling",hint:"Aktiv\xe9r butikken p\xe5 din kunstnerside. Bes\xf8gende kan betale med Swish og/eller PayPal.",enableShop:"Vis butik p\xe5 min side",swishSection:"Swish",swishHint:"Betalingen g\xe5r til dit Swish-nummer.",number:"Swish-nummer (10 cifre)",paypalSection:"PayPal",paypalHint:"Betalingen g\xe5r til din PayPal-e-mail.",paypalEmail:"PayPal-e-mail",enablePaypal:"Modtag PayPal",cardLater:"Kortbetaling kommer senere.",save:"Gem",saving:"Gemmerâ¦",saved:"Gemt",platformOff:"Ingen betalingsmetode er aktiveret p\xe5 serveren endnu. Kontakt support hvis k\xf8bsknapper mangler p\xe5 din live-side.",current:"Nuv\xe6rende:",notEnabledOnServer:"ikke aktiveret p\xe5 serveren"},no:{title:"Butikk & betaling",hint:"Aktiver butikken p\xe5 kunstnerhjemmesiden din. Bes\xf8kende kan betale med Swish og/eller PayPal.",enableShop:"Vis butikk p\xe5 siden min",swishSection:"Swish",swishHint:"Betalingen g\xe5r til Swish-nummeret ditt.",number:"Swish-nummer (10 siffer)",paypalSection:"PayPal",paypalHint:"Betalingen g\xe5r til PayPal-e-posten din.",paypalEmail:"PayPal-e-post",enablePaypal:"Ta imot PayPal",cardLater:"Kortbetaling kommer senere.",save:"Lagre",saving:"Lagrerâ¦",saved:"Lagret",platformOff:"Ingen betalingsmetode er aktivert p\xe5 serveren enn\xe5. Kontakt support hvis kj\xf8psknapper mangler p\xe5 live-siden.",current:"N\xe5v\xe6rende:",notEnabledOnServer:"ikke aktivert p\xe5 serveren"},nl:{title:"Shop & betalingen",hint:"Activeer de shop op je kunstenaarshomepage. Bezoekers kunnen betalen met Swish en/of PayPal. Kaartbetalingen volgen later.",enableShop:"Shop tonen op mijn site",swishSection:"Swish",swishHint:"Betaling gaat naar je Swish-nummer.",number:"Swish-nummer (10 cijfers)",paypalSection:"PayPal",paypalHint:"Betaling gaat naar je PayPal-e-mail.",paypalEmail:"PayPal-e-mail",enablePaypal:"PayPal accepteren",cardLater:"Kaartbetalingen zijn gepland â nog niet beschikbaar.",save:"Opslaan",saving:"Opslaanâ¦",saved:"Opgeslagen",platformOff:"Geen betaalmethode is nog ingeschakeld op de server. Neem contact op met support als koopknoppen ontbreken op je live pagina.",current:"Hu
1idig:",notEnabledOnServer:"niet ingeschakeld op server"},fi:{title:"Kauppa & maksut",hint:"Ota kauppa k\xe4ytt\xf6\xf6n taiteilijakotisivullasi. K\xe4vij\xe4t voivat maksaa Swishill\xe4 ja/tai PayPalilla. Korttimaksut tulossa my\xf6hemmin.",enableShop:"N\xe4yt\xe4 kauppa sivullani",swishSection:"Swish",swishHint:"Maksu menee Swish-numeroosi.",number:"Swish-numero (10 numeroa)",paypalSection:"PayPal",paypalHint:"Maksu menee PayPal-s\xe4hk\xf6postiisi.",paypalEmail:"PayPal-s\xe4hk\xf6posti",enablePaypal:"Hyv\xe4ksy PayPal",cardLater:"Korttimaksut ovat suunnitteilla â eiv\xe4t viel\xe4 saatavilla.",save:"Tallenna",saving:"Tallennetaanâ¦",saved:"Tallennettu",platformOff:"Maksutapaa ei ole viel\xe4 otettu k\xe4ytt\xf6\xf6n palvelimella. Ota yhteytt\xe4 tukeen, jos ostopainikkeet puuttuvat live-sivultasi.",current:"Nykyinen:",notEnabledOnServer:"ei k\xe4yt\xf6ss\xe4 palvelimella"}};function s(e){return n[(0,a.QC)(e)]}function i(e){return o[(0,a.QC)(e)]}let l={sv:{artistStudio:"Konstn\xe4rsstudio",artworks:"Konstverk",myGallery:"Mitt galleri",artistHomePage:"Din konstn\xe4rssida",artistPortfolio:"Konstn\xe4rsportf\xf6lj",subscription:"Abonnemang"},en:{artistStudio:"Artist studio",artworks:"Artworks",myGallery:"My Gallery",artistHomePage:"Your artist home page",artistPortfolio:"Artist portfolio",subscription:"Subscription"},da:{artistStudio:"Kunstnerstudio",artworks:"Kunstv\xe6rker",myGallery:"Mit galleri",artistHomePage:"Din kunstnerside",artistPortfolio:"Kunstnerportfolio",subscription:"Abonnement"},no:{artistStudio:"Kunstnerstudio",artworks:"Kunstverk",myGallery:"Mitt galleri",artistHomePage:"Din kunstnerside",artistPortfolio:"Kunstnerportfolio",subscription:"Abonnement"},nl:{artistStudio:"Kunstenaarsstudio",artworks:"Kunstwerken",myGallery:"Mijn galerie",artistHomePage:"Je kunstenaarspagina",artistPortfolio:"Kunstenaarsportfolio",subscription:"Abonnement"},fi:{artistStudio:"Taiteilijastudio",artworks:"Teokset",myGallery:"Oma galleria",artistHomePage:"Taiteilijasivusi",artistPortfolio:"Taiteilijaportfolio",subscription:"Tilaus"}};function d(e){return l[(0,a.QC)(e)]}},4314:(e,t,r)=>{"use strict";r.d(t,{ArtistShopCartProvider:()=>i,z:()=>l});var a=r(95155),n=r(12115),o=r(45196);let s=(0,n.createContext)(null);function i({children:e}){let[t,r]=(0,n.useState)(null);(0,n.useEffect)(()=>{r((0,o.GS)())},[]);let l=(0,n.useCallback)(e=>{(0,o.r1)(e),r(e)},[]),d=(0,n.useCallback)((e,r)=>{l((0,o.wV)(t,e,r))},[t,l]),c=(0,n.useCallback)(e=>{l((0,o.KY)(t,e))},[t,l]),u=(0,n.useCallback)(()=>l(null),[l]),m=(0,n.useMemo)(()=>({cart:t,itemCount:(0,o.lV)(t),totalCents:(0,o.ip)(t),addItem:d,removeItem:c,clearCart:u}),[t,d,c,u]);return(0,a.jsx)(s.Provider,{value:m,children:e})}function l(){let e=(0,n.useContext)(s);if(!e)throw Error("useArtistShopCart must be used within ArtistShopCartProvider");return e}},5039:(e,t,r)=>{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(!r.o(a,e))return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=a[e],n=t[0];return r.e(t[1]).then(()=>r.t(n,19))}n.keys=()=>Object.keys(a),n.id=5039,e.exports=n},5214:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return a.workAsyncStorageInstance}});let a=r(17828)},17828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return a}});let a=(0,r(64054).createAsyncLocalStorage)()},20388:(e,t,r)=>{"use strict";r.d(t,{dw:()=>o,hj:()=>s});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
1);function o(e){var t;return t=e.split(".")[0]??"",n.has(t)}function s(e,t){let r,n=(!function e(t,r){for(let a of Object.keys(r)){let n=r[a],o=t[a];n&&"object"==typeof n&&!Array.isArray(n)&&o&&"object"==typeof o&&!Array.isArray(o)?e(o,n):t[a]=n}}(r=structuredClone(e),t),r);for(let e of a){let r=t[e];if(void 0===r){delete n[e];continue}n[e]=r}return n}},21957:(e,t,r)=>{"use strict";function a({moduleIds:e}){return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return a}}),r(95155),r(47650),r(5214),r(2451),r(53887)},24615:(e,t,r)=>{"use strict";r.d(t,{default:()=>U});var a=r(95155),n=r(12115),o=r(37206),s=r(98500),i=r.n(s),l=r(73321),d=r(37882),c=r(84347),u=r(73446),m=r(36512);function h({translations:e={},locale:t}={}){let{data:r,status:n}=(0,d.useSession)(),o=(0,l.usePathname)(),s=(0,u.QC)(t||o?.split("/").filter(Boolean)[0]),g=t=>(0,c.n)(e,t)||t;return"loading"===n?(0,a.jsx)(i(),{href:(0,m.ZA)(s,"/signin"),className:"flex items-center justify-center w-10 h-10 text-gray-700 dark:text-darkText hover:text-gray-900 dark:hover:text-white hover:opacity-80 transition-opacity",title:g("auth.signIn"),"aria-label":g("auth.signIn"),children:(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:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})})}):r?(0,a.jsx)("button",{onClick:()=>(0,d.signOut)({callbackUrl:`/${s}/`}),className:"ml-auto text-sm text-gray-700 dark:text-darkText hover:text-gray-900 dark:hover:text-darkText font-medium transition-colors",children:g("auth.signOut")}):(0,a.jsx)(i(),{href:(0,m.ZA)(s,"/signin"),className:"flex items-center justify-center w-10 h-10 text-gray-700 dark:text-darkText hover:text-gray-900 dark:hover:text-white hover:opacity-80 transition-opacity",title:g("auth.signIn"),"aria-label":g("auth.signIn"),children:(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:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})})})}var g=r(79209);function x({translations:e={},locale:t}={}){let{data:r,status:o}
1=(0,d.useSession)(),s=(0,l.usePathname)(),[i,m]=(0,n.useState)(!1),h=(0,n.useRef)(null),f=(0,u.QC)(t||s?.split("/").filter(Boolean)[0]);if((0,n.useEffect)(()=>{function e(e){h.current&&!h.current.contains(e.target)&&m(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),"loading"===o||!r)return null;let k=r.user,y=k?.role==="ADMIN",v=k?.role==="ARTIST",b=k?.name||"User",w=k?.email||"",j=k?.image?(0,g.Me)(k.image):null;return(0,a.jsx)(p,{userImage:j,userName:b,isArtist:v,isAdmin:y,userEmail:w,locale:f,t:t=>(0,c.n)(e,t)||t,translations:e,dropdownRef:h,isOpen:i,setIsOpen:m,signOut:d.signOut})}function p({userImage:e,userName:t,isArtist:r,isAdmin:o,userEmail:s,locale:l,t:d,translations:c,dropdownRef:u,isOpen:h,setIsOpen:g,signOut:x}){let[f,k]=(0,n.useState)(!1),y=e&&!f;return(0,a.jsxs)("div",{className:"relative",ref:u,children:[(0,a.jsxs)("button",{onClick:()=>g(!h),className:`flex items-center space-x-2 px-3 py-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 ${h?"bg-gray-50 dark:bg-gray-700 ring-2 ring-blue-200":""}`,children:[y?(0,a.jsx)("div",{className:"w-8 h-8 rounded-full overflow-hidden ring-2 ring-gray-200 dark:ring-gray-600",children:(0,a.jsx)("img",{src:e,alt:t,width:32,height:32,className:"w-full h-full object-cover block",onError:()=>k(!0)})}):(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center text-white font-semibold text-sm ring-2 ring-gray-200 dark:ring-gray-600",children:t.charAt(0).toUpperCase()}),r&&(0,a.jsx)("span",{className:"hidden md:block text-sm font-medium text-gray-700 dark:text-darkText",children:t}),(0,a.jsx)("svg",{className:`w-4 h-4 text-gray-600 dark:text-darkText transition-transform ${h?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),h&&(0,a.jsxs)("div",{className:"absolute right-0 mt-2 w-72 bg-white dark:bg-gray-800 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 py-2 z-50 animate-slide-down",children:[r&&!o?(0,a.jsx)("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:(0,a.jsxs)("div",{className:"flex items-center space-x-3",children:[y?(0,a.jsx)("div",{className:"w-10 h-10 rounded-full overflow-hidden ring-2 ring-gray-200 dark:ring-gray-600",children:(0,a.jsx)("img",{src:e,alt:t,width:40,height:40,className:"w-full h-full object-cover block",onError:()=>k(!0)})}):(0,a.jsx)("div",{className:"w-10 h-10 rounded-full bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center text-white font-semibold text-base ring-2 ring-gray-200 dark:ring-gray-600",children:t.charAt(0).toUpperCase()}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-gray-900 dark:text-darkText truncate",children:t}),(0,a.jsx)("p",{className:"text-xs text-gray-500 dark:text-darkText",children:d("nav.artistStudio")})]})]})}):(0,a.jsxs)("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-gray-900 dark:text-darkText",children:t}),(0,a.jsx)("p",{className:"text-xs text-gray-500 dark:text-darkText truncate",children:s}),o&&(0,a.jsx)("span",{className:"inline-block mt-1 px-2 py-0.5 text-xs font-medium bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 rounded-full",children:"Admin"})]}),(0,a.jsxs)("div",{className:"py-1",children:[r&&!o&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i(),{href:(0,m.ZA)(l,"/artist/dashboard"),className:"flex items-center px-4 py-2.5 text-sm font-medium text-indigo-700 dark:text-indigo-300 hover:bg-indigo-50 dark:hover:bg-indigo-950/40 transition-colors",onClick:()=>g(!1),children:[(0,a.jsx)("svg",{className:"w-5 h-5 mr-3 text-indigo-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"})}),d("nav.artistStudio")]}),(0,a.jsxs)(i(),{href:(0,m.ZA)(l,"/artist/dashboard/profile"),className:"flex items-center px-4 py-2.5 text-sm text-gray-700 dark:text-darkText hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",onClick:()=>g(!1),children:[(0,a.jsx)("svg",{className:"w-5 h-5 mr-3 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})}),d("account.myAccount")]}),(0,a.jsxs)(i(),{href:(0,m.ZA)(l,"/artist/dashboard/plan"),className:"flex items-center px-4 py-2.5 text-sm text-gray-700 dark:text-darkText hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",onClick:()=>g(!1),children:[(0,a.jsx)("svg",{className:"w-5 h-5 mr-3 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"})}),d("nav.subscription")]}),(0,a.jsxs)(i(),{href:(0,m.ZA)(l,"/artist/dashboard/settings"),className:"flex items-center px-4 py-2.5 text-sm text-gray-700 dark:text-darkText hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",onClick:()=>g(!1),children:[(0,a.jsxs)("svg",{className:"w-5 h-5 mr-3 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),d("account.settings")]}),(0,a.jsxs)(i(),{href:(0,m.ZA)(l,"/artist/dashboard/statistics"),className:"flex items-center px-4 py-2.5 text-sm text-gray-700 dark:text-darkText hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",onClick:()=>g(!1),children:[(0,a.jsx)("svg",{className:"w-5 h-5 mr-3 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})}),d("account.statistics")]}),(0,a.jsxs)(i(),{href:(0,m.ZA)(l,"/senaste"),className:"flex items-center px-4 py-2.5 text-sm text-gray-700 dark:text-darkText hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",onClick:()=>g(!1),children:[(0,a.jsx)("svg",{className:"w-5 h-5 mr-3 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),d("account.latestEvents")]}),(0,a.jsxs)(i(),{href:(0,m.ZA)(l,"/favorites"),className:"flex items-center px-4 py-2.5 text-sm text-gray-700 dark:text-darkText hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",onClick:()=>g(!1),children:[(0,a.jsx)("svg",{className:"w-5 h-5 mr-3 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"})}),d("account.favorites")]}),(0,a.jsxs)(i(),{href:(0,m.ZA)(l,"/following"),className:"flex items-center px-4 py-2.5 text-sm text-gray-700 dark:text-darkText hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",onClick:()=>g(!1),children:[(0,a.jsx)("svg",{className:"w-5 h-5 mr-3 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2
10 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"})}),d("account.following")]}),(0,a.jsxs)(i(),{href:(0,m.ZA)(l,"/artist/dashboard/reservations"),className:"flex items-center px-4 py-2.5 text-sm text-gray-700 dark:text-darkText hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",onClick:()=>g(!1),children:[(0,a.jsx)("svg",{className:"w-5 h-5 mr-3 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),d("account.sales")]}),(0,a.jsxs)(i(),{href:(0,m.ZA)(l,"/artist/dashboard/artworks/create"),className:"flex items-center px-4 py-2.5 text-sm text-gray-700 dark:text-darkText hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",onClick:()=>g(!1),children:[(0,a.jsx)("svg",{className:"w-5 h-5 mr-3 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),d("account.newWork")]}),(0,a.jsxs)(i(),{href:(0,m.ZA)(l,"/artist/dashboard/messages"),className:"flex items-center px-4 py-2.5 text-sm text-gray-700 dark:text-darkText hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",onClick:()=>g(!1),children:[(0,a.jsx)("svg",{className:"w-5 h-5 mr-3 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})}),d("account.events")]}),(0,a.jsxs)(i(),{href:(0,m.ZA)(l,"/faq"),className:"flex items-center px-4 py-2.5 text-sm text-gray-700 dark:text-darkText hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",onClick:()=>g(!1),children:[(0,a.jsx)("svg",{className:"w-5 h-5 mr-3 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"})}),d("account.helpGuides")]}),(0,a.jsxs)(i(),{href:(0,m.ZA)(l,"/contact"),className:"flex items-center px-4 py-2.5 text-sm text-gray-700 dark:text-darkText hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",onClick:()=>g(!1),children:[(0,a.jsx)("svg",{className:"w-5 h-5 mr-3 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18.364 5.636l-3.536 3.536m0 5.656l3.536 3.536M9.172 9.172L5.636 5.636m3.536 9.192l-3.536 3.536M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-5 0a4 4 0 11-8 0 4 4 0 018 0z"})}),d("account.customerService")]})]}),o&&!r&&(0,a.jsxs)(i(),{href:(0,m.ZA)(l,"/admin"),className:"flex items-center px-4 py-2.5 text-sm text-gray-700 dark:text-darkText hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",onClick:()=>g(!1),children:[(0,a.jsxs)("svg",{className:"w-5 h-5 mr-3 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),d("account.adminPanel")]}),!o&&!r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i(),{href:(0,m.ZA)(l,"/favorites"),className:"flex items-center px-4 py-2.5 text-sm text-gray-700 dark:text-darkText hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",onClick:()=>g(!1),children:[(0,a.jsx)("svg",{className:"w-5 h-5 mr-3 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"})}),d("account.favorites")]}),(0,a.jsxs)(i(),{href:(0,m.ZA)(l,"/following"),className:"flex items-center px-4 py-2.5 text-sm text-gray-700 dark:text-darkText hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",onClick:()=>g(!1),children:[(0,a.jsx)("svg",{className:"w-5 h-5 mr-3 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2
10 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"})}),d("account.following")]}),(0,a.jsxs)(i(),{href:(0,m.ZA)(l,"/senaste"),className:"flex items-center px-4 py-2.5 text-sm text-gray-700 dark:text-darkText hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",onClick:()=>g(!1),children:[(0,a.jsx)("svg",{className:"w-5 h-5 mr-3 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),d("account.latestEvents")]})]})]}),(0,a.jsx)("div",{className:"border-t border-gray-200 dark:border-gray-700 pt-1 mt-1",children:(0,a.jsxs)("button",{onClick:()=>{g(!1),x({callbackUrl:`/${l}/`})},className:"flex items-center w-full px-4 py-2.5 text-sm text-red-600 dark:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 transition-colors",children:[(0,a.jsx)("svg",{className:"w-5 h-5 mr-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"})}),d("auth.signOut")]})})]})]})}var f=r(47650),k=r(52794),y=r(10591),v=r(51496);let b=[{id:"se",label:{sv:"Sverige",en:"Sweden",da:"Sverige",no:"Sverige",nl:"Zweden",fi:"Ruotsi"},apexHost:"konst24.se",canonicalBase:v.H6,defaultLocale:"sv",primaryHreflang:"sv-SE",primaryLocale:"sv"},{id:"dk",label:{sv:"Danmark",en:"Denmark",da:"Danmark",no:"Danmark",nl:"Denemarken",fi:"Tanska"},apexHost:"kunst24.dk",canonicalBase:v.Nz,defaultLocale:"da",primaryHreflang:"da-DK",primaryLocale:"da"},{id:"nl",label:{sv:"Nederl\xe4nderna",en:"Netherlands",da:"Holland",no:"Nederland",nl:"Nederland",fi:"Alankomaat"},apexHost:"artweb24.nl",canonicalBase:v.qZ,defaultLocale:"nl",primaryHreflang:"nl-NL",primaryLocale:"nl"},{id:"com",label:{sv:"Internationellt",en:"International",da:"Internationalt",no:"Internasjonalt",nl:"Internationaal",fi:"Kansainv\xe4linen"},apexHost:"artweb24.com",canonicalBase:v.FN,defaultLocale:"en",primaryHreflang:"en",primaryLocale:"en"},{id:"fi",label:{sv:"Finland",en:"Finland",da:"Finland",no:"Finland",nl:"Finland",fi:"Suomi"},apexHost:"taide24.fi",canonicalBase:v.vU,defaultLocale:"fi",primaryHreflang:"fi-FI",primaryLocale:"fi"},{id:"be",label:{sv:"Belgien",en:"Belgium",da:"Belgien",no:"Belgia",nl:"Belgi\xeb",fi:"Belgia"},apexHost:"kunst24.be",canonicalBase:v.vW,defaultLocale:"nl",primaryHreflang:"nl-BE",primaryLocale:"nl"}];var w=r(86556);let j=[{slug:"for-konstnarer",locale:"sv",pageKey:"forArtistsHub",path:"/for-konstnarer"},{slug:"salj-konst-online",locale:"sv",pageKey:"sellArtOnline",path:"/salj-konst-online"},{slug:"marknadsfor-din-konst",locale:"sv",pageKey:"marketYourArt",path:"/marknadsfor-din-konst"},{slug:"hur-saljer-man-konst",locale:"sv",pageKey:"howToSellArt",path:"/hur-saljer-man-konst"},{slug:"varfor-konst24",locale:"sv",pageKey:"whyPlatform",path:"/varfor-konst24"},{slug:"gratis-konstgalleri",locale:"sv",pageKey:"freeGallery",path:"/gratis-konstgalleri"},{slug:"konstnar-plattform",locale:"sv",pageKey:"artistPlatform",path:"/konstnar-plattform"},{slug:"for-kunstnere",locale:"da",pageKey:"forArtistsHub",path:"/for-kunstnere"},{slug:"saelg-kunst-online",locale:"da",pageKey:"sellArtOnline",path:"/saelg-kunst-online"},{slug:"markedsfor-din-kunst",locale:"da",pageKey:"marketYourArt",path:"/markedsfor-din-kunst"},{slug:"hvordan-saelger-man-kunst",locale:"da",pageKey:"howToSellArt",path:"/hvordan-saelger-man-kunst"},{slug:"hvorfor-kunst24",locale:"da",pageKey:"whyPlatform",path:"/hvorfor-kunst24"},{slug:"gratis-kunstgalleri",locale:"da",pageKey:"freeGallery",path:"/gratis-kunstgalleri"},{slug:"kunstner-platform",locale:"da",pageKey:"artistPlatform",path:"/kunstner-platform"},{slug:"voor-kunstenaars",locale:"nl",pageKey:"forArtistsHub",path:"/voor-kunstenaars"},{slug:"kunst-verkopen",locale:"nl",pageKey:"sellArtOnline",path:"/kunst-verkopen"},{slug:"kunst-online-verkopen",locale:"nl",pageKey:"sellArtOnlineDetailed",path:"/kunst-online-verkopen"},{slug:"kunstenaars-platform",locale:"nl",pageKey:"artistPlatform",path:"/kunstenaars-platform"},{slug:"hoe-verkoop-je-kunst",locale:"nl",pageKey:"howToSellArt",path:"/hoe-verkoop-je-kunst"},{slug:"promoot-je-kunst",locale:"nl",pageKey:"marketYourArt",path:"/promoot-je-kunst"},{slug:"waarom-artweb24",locale:"nl",pageKey:"whyPlatform",path:"/waarom-artweb24"},{slug:"gratis-online-galerij",locale:"nl",pageKey:"freeGallery",path:"/gratis-online-galerij"},{slug:"taiteilijoille",locale:"fi",pageKey:"forArtistsHub",path:"/taiteilijoille"},{slug:"myy-taidetta-verkossa",locale:"fi",pageKey:"sellArtOnline",path:"/myy-taidetta-verkossa"},{slug:"myy-taidetta",locale:"fi",pageKey:"sellArtOnline",path:"/myy-taidetta"},{slug:"taiteen-myynti",locale:"fi",pageKey:"marketYourArt",path:"/taiteen-myynti"},{slug:"taiteilija-alusta",locale:"fi",pageKey:"artistPlatform",path:"/taiteilija-alusta"},{slug:"miten-myy-taidetta",locale:"fi",pageKey:"howToSellArt",path:"/miten-myy-taidetta"},{slug:"miksi-taide24",locale:"fi",pageKey:"whyPlatform",path:"/miksi-taide24"},{slug:"ilmainen-verkkogalleria",locale:"fi",pageKey:"freeGallery",path:"/ilmainen-verkkogalleria"},{slug:"sell-art-online",locale:"en",pageKey:"sellArtOnline",path:"/sell-art-online"},{slug:"free-online-gallery",locale:"en",pageKey:"freeGallery",path:"/free-online-gallery"},{slug:"why-artweb24",locale:"en",pageKey:"whyPlatform",path:"/why-artweb24"},{slug:"artist-platform",locale:"en",pageKey:"artistPlatform",path:"/artist-platform"},{slug:"artist-marketing",locale:"en",pageKey:"marketYourArt",path:"/artist-marketing"},{slug:"join-artweb24",locale:"en",pageKey:"joinPlatform",path:"/join-artweb24"}];j.map(e=>[`${e.locale}:${e.slug}`,e]),y.H6,y.Nz,y.qZ,y.vU,y.FN;var N=r(17853);
1function S(e,t){let r=(e||"/").split("/").filter(Boolean);if(r.length<2||!(0,u.EM)(r[0]))return null;let a=(0,u.QC)(r[0]),n=`/${r.slice(1).join("/")}`,o=j.find(e=>e.locale===a&&e.path===n);if(!o)return null;let s=j.find(e=>e.locale===t&&e.pageKey===o.pageKey);return s?`/${t}${s.path}`:"forArtistsHub"===o.pageKey?(0,N.Be)(t):null}var P=r(70569);let C={sv:{flag:"\uD83C\uDDF8\uD83C\uDDEA",name:"Svenska"},en:{flag:"\uD83C\uDDEC\uD83C\uDDE7",name:"English"},no:{flag:"\uD83C\uDDF3\uD83C\uDDF4",name:"Norsk"},da:{flag:"\uD83C\uDDE9\uD83C\uDDF0",name:"Dansk"},nl:{flag:"\uD83C\uDDF3\uD83C\uDDF1",name:"Nederlands"},fi:{flag:"\uD83C\uDDEB\uD83C\uDDEE",name:"Suomi"}};function A(e,t){return`flex w-full min-h-[44px] cursor-pointer items-center gap-2 px-4 py-3 text-left text-sm transition-colors duration-200 touch-manipulation hover:bg-gray-50 disabled:cursor-wait dark:hover:bg-gray-700 ${e?"bg-blue-50 font-medium text-blue-700 dark:bg-blue-900/30 dark:text-blue-300":"text-gray-700 dark:text-gray-200"} ${t?"opacity-60":""}`}function L({variant:e="dropdown"}){let{currentLocale:t,languageOptions:o,switching:s,handleLanguageChange:i}=function(){let e=(0,l.usePathname)()||"/",[t,a]=(0,n.useState)(!1),o=(0,n.useRef)(!1),s=e.split("/")[1],i=(0,u.EM)(s)?(0,u.QC)(s):(0,u.QC)("sv");(0,n.useEffect)(()=>{a(!1),o.current=!1},[e]);let d=window.location.hostname,c=(0,y.jx)(d,s).map(e=>({code:e,...C[e]})),m=(0,n.useCallback)(t=>{let n=(0,u.QC)(t);if(n===i||o.current)return;o.current=!0,a(!0),document.cookie=`preferred-locale=${n}; max-age=${k.F3}; path=/; samesite=lax`;let s=function(e,t,a,n=""){return function(e,t,a,n="",o){let s=(0,u.QC)(t),i=(0,u.jx)(a),l=i.includes(s)?s:i[0]??"sv",d=o?.(e,l)??null,{switchLocalePathname:c}=r(86556),m=d??c(e,l),h=n?.startsWith("?")?n:n?`?${n}`:"";return`${m}${h}`}(e,t,a,n,S)}(e,n,d,window.location.search),l=s.startsWith("http")?s:new URL(s,window.location.origin).toString();window.location.assign(l)},[i,d,e]);return{currentLocale:i,languageOptions:c,switching:t,handleLanguageChange:m}}(),[d,c]=(0,n.useState)(!1),[m,h]=(0,n.useState)(null),g=(0,n.useRef)(null),x=(0,n.useRef)(null),p=Object.fromEntries(o.map(e=>[e.code,e.name])),v=Object.fromEntries(o.map(e=>[e.code,e.flag])),b=(0,n.useCallback)(()=>{let e=g.current;if(!e)return;let t=e.getBoundingClientRect();h({top:t.bottom+8,left:Math.max(8,t.right-168),width:168})},[]);if((0,n.useEffect)(()=>{if(d&&"dropdown"===e)return b(),window.addEventListener("resize",b),window.addEventListener("scroll",b,!0),document.addEventListener("click",t),()=>{window.removeEventListener("resize",b),window.removeEventListener("scroll",b,!0),document.removeEventListener("click",t)};function t(e){let t=e.target;g.current?.contains(t)||x.current?.contains(t)||c(!1)}},[d,b,e]),"menu"===e)return(0,a.jsxs)("div",{className:"px-1 py-2",role:"group","aria-label":(0,P.U)(t,"nav.languageSwitcherAria"),children:[(0,a.jsx)("p",{className:"px-3 pb-1 text-xs font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400",children:(0,P.U)(t,"nav.languageSwitcherAria")}),(0,a.jsx)("div",{className:"space-y-1",role:"listbox","aria-label":(0,P.U)(t,"nav.languageSwitcherAria"),children:o.map(e=>(0,a.jsxs)("button",{type:"button",role:"option","aria-selected":e.code===t,disabled:s,onClick:()=>i(e.code),className:`${A(e.code===t,s)} rounded-md`,children:[(0,a.jsx)("span",{"aria-hidden":!0,children:e.flag}),e.name]},e.code))})]});let w=d&&m?(0,a.jsx)("div",{ref:x,role:"listbox","aria-label":(0,P.U)(t,"nav.languageSwitcherAria"),className:"fixed z-[200] overflow-hidden rounded-lg border border-gray-200 bg-white shadow-lg dark:border-gray-600 dark:bg-gray-800",style:{to
1p:m.top,left:m.left,minWidth:m.width},children:o.map(e=>(0,a.jsxs)("button",{type:"button",role:"option","aria-selected":e.code===t,disabled:s,onClick:()=>{c(!1),i(e.code)},className:A(e.code===t,s),children:[(0,a.jsx)("span",{"aria-hidden":!0,children:e.flag}),e.name]},e.code))}):null;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{ref:g,type:"button",onClick:e=>{e.stopPropagation(),c(e=>!e)},disabled:s,className:"flex h-10 w-10 shrink-0 cursor-pointer items-center justify-center text-xl text-gray-700 transition-opacity hover:text-gray-900 hover:opacity-80 disabled:cursor-wait disabled:opacity-60 dark:text-gray-200 dark:hover:text-white touch-manipulation",title:p[t]||(0,P.U)(t,"nav.languageSwitcherAria"),"aria-label":p[t]||(0,P.U)(t,"nav.languageSwitcherAria"),"aria-expanded":d,"aria-haspopup":"listbox",children:(0,a.jsx)("span",{"aria-hidden":!0,children:v[t]||"\uD83C\uDF10"})}),"u">typeof document&&w?(0,f.createPortal)(w,document.body):null]})}var M=r(91314),$=r(27232),T=r(57952);function E({variant:e="dropdown",locale:t}){let r=(0,T.Qs)(),n=(0,u.QC)(t);if(!r||!r.convertEnabled)return null;let o=(0,$.Zg)(r.market),s=r.requestedCurrency||o,i=(0,P.U)(n,"common.displayCurrencyLabel"),l=(0,P.U)(n,"common.displayCurrencyAria"),d=(0,a.jsx)("select",{className:"max-w-[5.5rem] rounded-md border border-gray-200 bg-white px-2 py-1.5 text-xs font-medium text-gray-700 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-200","aria-label":l,value:s,onChange:e=>{let t=e.target.value;r.setRequestedCurrency(t===o?null:t)},children:M.lG.map(e=>(0,a.jsx)("option",{value:e,children:e},e))});return"menu"===e?(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3 px-3 py-2",children:[(0,a.jsx)("span",{className:"text-sm text-gray-600 dark:text-gray-300",children:i}),d]}):(0,a.jsx)("div",{className:"shrink-0",children:d})}function B(e,t){let r=b.find(t=>t.id===e);return r.label[t]||r.label.en}function O(e,t){return`flex w-full min-h-[44px] cursor-pointer items-center gap-2 px-4 py-3 text-left text-sm transition-colors duration-200 touch-manipulation hover:bg-gray-50 disabled:cursor-wait dark:hover:bg-gray-700 ${e?"bg-blue-50 font-medium text-blue-700 dark:bg-blue-900/30 dark:text-blue-300":"text-gray-700 dark:text-gray-200"} ${t?"opacity-60":""}`}function K({variant:e="dropdown",hostname:t}){let{currentLocale:o,currentMarketId:s,switching:i,handleMarketChange:d}=function(e){var t;let a,o=(0,l.usePathname)()||"/",[s,i]=(0,n.useState)(!1),d=(0,n.useRef)(!1),c=o.split("/")[1],m=(0,u.EM)(c)?(0,u.QC)(c):(0,u.QC)("sv"),h=(t=(e||"").trim(),a=(0,u.Zd)(t).replace(/^www\./,""),b.find(e=>e.apexHost===a));(0,n.useEffect)(()=>{i(!1),d.current=!1},[o]);let g=(0,n.useCallback)(e=>{if(!h||e===h.id||d.current)return;d.current=!0,i(!0);let t=function(e,t,a=""){let n=b.find(e=>e.id===t),o=(e||"/").split("/").filter(Boolean),s=o[0]&&(0,u.EM)(o[0]),i=s?(0,u.QC)(o[0]):n.defaultLocale;(0,u.jx)(n.apexHost).includes(i)||(i=n.defaultLocale);let l=s?o.length>1?`/${o.slice(1).join("/")}`:"":e.startsWith("/")?e:`/${e}`,{toPhysicalPathWithoutLocale:d,getLocalizedPathWithoutLocale:c}=r(86556),m=c(i,d(l||"/")),h=m&&"/"!==m?`/${i}${m.startsWith("/")?m:`/${m}`}`:`/${i}`,g=a?.startsWith("?")?a:a?`?${a}`:"";return`${n.canonicalBase}${h}${g}`}(o,e,window.location.search);window.location.assign(t)},[h,o]);return{currentLocale:m,currentMarketId:h?.id??null,switching:s,handleMarketChange:g}}
1(t),[c,m]=(0,n.useState)(!1),[h,g]=(0,n.useState)(null),x=(0,n.useRef)(null),p=(0,n.useRef)(null),k=(0,n.useCallback)(()=>{let e=x.current;if(!e)return;let t=e.getBoundingClientRect();g({top:t.bottom+8,left:Math.max(8,t.right-200),width:200})},[]);if((0,n.useEffect)(()=>{if(c&&"dropdown"===e)return k(),window.addEventListener("resize",k),window.addEventListener("scroll",k,!0),document.addEventListener("click",t),()=>{window.removeEventListener("resize",k),window.removeEventListener("scroll",k,!0),document.removeEventListener("click",t)};function t(e){let t=e.target;x.current?.contains(t)||p.current?.contains(t)||m(!1)}},[c,k,e]),!s)return null;if("menu"===e)return(0,a.jsxs)("div",{className:"px-1 py-2",role:"group","aria-label":"Market",children:[(0,a.jsx)("p",{className:"px-3 pb-1 text-xs font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400",children:function(e){switch(e){case"sv":return"Marknad";case"da":case"no":return"Marked";case"nl":return"Markt";case"fi":return"Markkina";default:return"Market"}}(o)}),(0,a.jsx)("div",{className:"space-y-1",role:"listbox","aria-label":"Market",children:b.map(e=>(0,a.jsx)("button",{type:"button",role:"option","aria-selected":e.id===s,disabled:i,onClick:()=>d(e.id),className:`${O(e.id===s,i)} rounded-md`,children:B(e.id,o)},e.id))})]});let y=c&&h?(0,a.jsx)("div",{ref:p,role:"listbox","aria-label":"Market",className:"fixed z-[200] overflow-hidden rounded-lg border border-gray-200 bg-white shadow-lg dark:border-gray-600 dark:bg-gray-800",style:{to
1p:h.top,left:h.left,minWidth:h.width},children:b.map(e=>(0,a.jsx)("button",{type:"button",role:"option","aria-selected":e.id===s,disabled:i,onClick:()=>{m(!1),d(e.id)},className:O(e.id===s,i),children:B(e.id,o)},e.id))}):null;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{ref:x,type:"button",onClick:e=>{e.stopPropagation(),m(e=>!e)},disabled:i,className:"flex h-10 shrink-0 cursor-pointer items-center justify-center px-1.5 text-xs font-medium text-gray-700 transition-opacity hover:text-gray-900 hover:opacity-80 disabled:cursor-wait disabled:opacity-60 dark:text-gray-200 dark:hover:text-white touch-manipulation",title:B(s,o),"aria-label":B(s,o),"aria-expanded":c,"aria-haspopup":"listbox",children:(0,a.jsx)("span",{className:"max-w-[5.5rem] truncate",children:B(s,o)})}),"u">typeof document&&y?(0,f.createPortal)(y,document.body):null]})}var H=r(89270);function z(){let{theme:e,toggleTheme:t}=(0,H.D)(),r=(0,l.useParams)(),o=(0,u.QC)("string"==typeof r?.locale?r.locale:"sv"),[s,i]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{i(!0)},[]),s)?(0,a.jsx)("button",{type:"button",onClick:t,className:"p-2 rounded-lg text-gray-700 dark:text-darkText hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors","aria-label":function(e,t){let r=(0,u.QC)(e),a="dark"===t;switch(r){case"sv":return a?"Aktivera ljust l\xe4ge":"Aktivera m\xf6rkt l\xe4ge";case"da":return a?"Aktiv\xe9r lyst tema":"Aktiv\xe9r m\xf8rkt tema";case"no":return a?"Aktiver lyst tema":"Aktiver m\xf8rkt tema";case"fi":return a?"Ota vaalea teema k\xe4ytt\xf6\xf6n":"Ota tumma teema k\xe4ytt\xf6\xf6n";case"nl":return a?"Lichte modus activeren":"Donkere modus activeren";default:return a?"Activate light mode":"Activate dark mode"}}(o,e),children:"light"===e?(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:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})}):(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:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})})}):(0,a.jsx)("button",{type:"button",className:"p-2 rounded-lg text-gray-700 dark:text-darkText hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors","aria-label":"Toggle theme",children:(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:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})})})}function I({className:e=""}){let{data:t,update:r}=(0,d.useSession)(),o=(0,l.useRouter)(),s=(0,l.usePathname)(),[i,c]=(0,n.useState)(!1),u=s?.split("/")[1]||"en";if(!t?.user)return null;let m=t.user.role||"ARTIST",h="ADMIN"===m,g="ARTIST"===m,x=!!t.user.canBeAdmin,p=async e=>{if(!i&&e!==m){if("ADMIN"===e&&!x)return void alert("Only the administrator can access admin mode.");c(!0);try{let t=await fetch("/api/auth/switch-role",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({role:e})});if(!t.ok){let e=await t.json().catch(()=>({error:"Failed to switch role"}));throw Error(e.error||"Failed to switch role")}await r(),await new Promise(e=>setTimeout(e,200)),"ARTIST"===e?o.push(`/${u}/artist/dashboard`):"ADMIN"===e?o.push(`/${u}/admin`):o.refresh()}catch(e){console.error("Error switching role:",e),alert(e instanceof Error?e.message:"Failed to switch role. Please try again.")}finally{c(!1)}}};return(0,a.jsxs)("div",{className:`flex items-center space-x-2 ${e}`,children:[(0,a.jsx)("span",{className:"text-sm text-gray-600",children:"Role:"}),(0,a.jsxs)("div",{className:"flex bg-gray-100 rounded-lg p-1",children:[(0,a.jsx)("button",{onClick:()=>p("ARTIST"),disabled:i,className:`px-3 py-1 text-xs font-medium rounded-md transition-all duration-200 ${g?"bg-blue-600 text-white shadow-sm":"text-gray-600 hover:text-gray-900 hover:bg-gray-200"} ${i?"opacity-50 cursor-not-allowed":"cursor-pointer"}`,children:i&&!g?(0,a.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,a.jsx)("div",{className:"w-3 h-3 border border-gray-400 border-t-transparent roun
1ded-full animate-spin"}),(0,a.jsx)("span",{children:"Switching..."})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("svg",{className:"w-3 h-3 inline mr-1",fill:"currentColor",viewBox:"0 0 20 20",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})}),"Artist"]})}),x&&(0,a.jsx)("button",{onClick:()=>p("ADMIN"),disabled:i,className:`px-3 py-1 text-xs font-medium rounded-md transition-all duration-200 ${h?"bg-red-600 text-white shadow-sm":"text-gray-600 hover:text-gray-900 hover:bg-gray-200"} ${i?"opacity-50 cursor-not-allowed":"cursor-pointer"}`,children:i&&!h?(0,a.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,a.jsx)("div",{className:"w-3 h-3 border border-gray-400 border-t-transparent rounded-full animate-spin"}),(0,a.jsx)("span",{children:"Switching..."})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("svg",{className:"w-3 h-3 inline mr-1",fill:"currentColor",viewBox:"0 0 20 20",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z",clipRule:"evenodd"})}),"Admin"]})})]}),h&&(0,a.jsxs)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-red-100 text-red-800",children:[(0,a.jsx)("svg",{className:"w-3 h-3 mr-1",fill:"currentColor",viewBox:"0 0 20 20",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z",clipRule:"evenodd"})}),"Admin Mode"]})]})}function W(){let{data:e,update:t}=(0,d.useSession)(),r=(0,l.useRouter)(),o=(0,l.usePathname)(),[s,i]=(0,n.useState)(!1),c=e?.user;if(!c?.impersonating)return null;let u=o?.split("/")[1]||"sv",m=e=>(0,P.U)(u,`account.impersonation.${e}`),h=async()=>{if(!s){i(!0);try{await t({stopImpersonation:!0}),r.push(`/${u}/admin/users`),r.refresh()}finally{i(!1)}}};return(0,a.jsxs)("div",{className:"sticky top-0 z-[100] border-b border-violet-300 bg-violet-600 px-4 py-2 text-center text-sm text-white shadow-md",role:"status",children:[(0,a.jsxs)("span",{className:"font-medium",children:[m("viewingAs")," ",(0,a.jsx)("strong",{children:c.name||c.email}),c.impersonatorEmail?(0,a.jsxs)("span",{className:"opacity-90",children:[" ","(",m("admin"),": ",c.impersonatorEmail,")"]}):null]}),(0,a.jsx)("button",{type:"button",disabled:s,onClick:()=>void h(),className:"ml-3 inline-flex rounded-md bg-white/20 px-3 py-1 font-semibold hover:bg-white/30 disabled:opacity-60",children:m(s?"stopping":"stop")})]})}var R=r(60416),D=r(146);function _({locale:e,chromeBrand:t,variant:r="header",onClick:n,className:o=""}){let s,l="fi"===(s=(0,u.QC)(e))?"Uutiset":"no"===s?"Nyheter":"News",d=`${t} ${l}`,c=`/${e}/blog`;return"mobile"===r?(0,a.jsx)(i(),{href:c,className:`flex items-center px-3 py-2 rounded-md text-gray-700 dark:text-darkText hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 ${o}`,onClick:n,"aria-label":d,children:(0,a.jsx)(F,{baseName:t,publicationWord:l,size:"mobile"})}):(0,a.jsx)(i(),{href:c,className:`hidden sm:inline-flex items-center rounded-lg border border-transparent px-1.5 py-1 hover:border-stone-200/80 hover:bg-stone-50/90 dark:hover:border-stone-600 dar
1k:hover:bg-stone-800/50 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800 ${o}`,onClick:n,"aria-label":d,children:(0,a.jsx)(F,{baseName:t,publicationWord:l,size:"header"})})}function F({baseName:e,publicationWord:t,size:r}){return(0,a.jsxs)("span",{className:`flex items-baseline gap-0.5 whitespace-nowrap leading-none ${"header"===r?"text-[13px] sm:text-sm":"text-base"}`,children:[(0,a.jsx)("span",{className:"font-bold tracking-tight text-gray-900 dark:text-gray-100",children:e}),(0,a.jsx)("span",{className:"font-serif font-normal italic text-stone-600 dark:text-stone-400",children:t})]})}let G=(0,o.default)(()=>Promise.all([r.e(9021),r.e(2787),r.e(5146)]).then(r.bind(r,80041)),{loadableGenerated:{webpack:()=>[80041]},ssr:!1});function U({translations:e,locale:t,initialBrandWordmark:r,hostname:o=""}){let s=t||"en",u=e||{},{data:m}=(0,d.useSession)(),g=(0,l.useRouter)(),[p,f]=(0,n.useState)(!1),[k,v]=(0,n.useState)(!1),[b,j]=(0,n.useState)(()=>r||(0,y.Vn)(s)),S=(0,y.bm)(b);(0,n.useEffect)(()=>{j((0,y.xE)(window.location.hostname,s))},[s]);let P=m?.user?m.user?.role:void 0,C="ADMIN"===P,A="ARTIST"===P&&!C,M=!A&&(!m?.user||"ART_BUYER"===P),$=(0,R.TR)("buyArt",s),T=e=>{try{return(0,c.n)(u,e)}catch{return e}},B=(0,D.kp)(s),O=A?[{href:`/${s}/artist/dashboard`,label:B.artistStudio},{href:`/${s}/artist/dashboard/messages`,label:T("artist.dashboard.messages")},{href:`/${s}/artist/dashboard/artworks`,label:B.artworks},{href:`/${s}/artist/dashboard/gallery`,label:B.myGallery},{href:`/${s}/artist/dashboard/home`,label:B.artistHomePage},{href:`/${s}/artist/dashboard/news`,label:T("artist.dashboard.navNews")},{href:`/${s}/artist/dashboard/portfolio`,label:B.artistPortfolio},{href:`/${s}/artist/dashboard/plan`,label:B.subscription}]:[],H=!!m?.user?.impersonating;return(0,a.jsxs)("div",{className:"bg-gray-50 dark:bg-gray-900 min-w-0 max-w-full overflow-x-clip",children:[(0,a.jsx)(W,{}),(0,a.jsxs)("nav",{className:"bg-white dark:bg-gray-800 shadow-sm border-b border-gray-200 dark:border-gray-700 sticky top-0 z-50 max-w-full min-w-0",children:[(0,a.jsx)("div",{className:"w-full px-3 sm:px-4 md:px-5 lg:px-6 xl:px-8 max-w-full min-w-0",children:(0,a.jsxs)("div",{className:"flex items-center justify-between h-16 min-w-0 gap-2",children:[(0,a.jsx)("div",{className:"flex items-center shrink-0 min-w-0",children:(0,a.jsxs)("button",{type:"button",onClick:()=>g.push(`/${s}`),className:"flex items-center space-x-2 rounded-md hover:opacity-90 transition-opacity focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800","aria-label":"fi"===s?"Siirry etusivulle":"sv"===s?"G\xe5 till startsidan":"da"===s||"no"===s?"G\xe5 til forsiden":"nl"===s?"Ga naar startpagina":"Go to home",children:[(0,a.jsx)("div",{className:"w-8 h-8 bg-gradient-to-br from-blue-600 to-purple-600 rounded-lg flex items-center justify-center",children:(0,a.jsx)("span",{className:"text-white font-bold text-sm","aria-hidden":!0,children:(0,y.uY)(S)})}),(0,a.jsx)("span",{className:"text-lg sm:text-xl font-bold text-gray-900 dark:text-darkText truncate max-w-[9rem] sm:max-w-none",children:b})]})}),(0,a.jsxs)("div",{className:"hidden md:flex items-center flex-nowrap space-x-2 md:space-x-3 ml-4 md:ml-6 overflow-x-auto scrollbar-hide min-w-0",children:[!A&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i(),{href:(0,w.getGalleryPath)(s),className:"text-gray-700 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 font-medium transition-colors duration-200 whitespace-nowrap text-xs md:text-sm px-1",children:T("nav.gallery")}),M&&(0,a.jsx)(i(),{href:$,"data-testid":"nav-buy-art",className:"text-gray-700 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 font-medium transition-colors duration-200 whitespace-nowrap text-xs md:text-sm px-1",children:T("nav.buyArt")}),(0,a.jsx)(i(),{href:`/${s}/collections`,className:"text-gray-700 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 font-medium transition-colors duration-200 whitespace-nowrap text-xs md:text-sm px-1",children:T("nav.collections")}),(0,a.jsx)(i(),{href:`/${s}/interiorlosningar`,className:"text-gray-700 dark:text-gray-300 hover:text-blue-600 dar
1k:hover:text-blue-400 font-medium transition-colors duration-200 whitespace-nowrap text-xs md:text-sm px-1",children:T("nav.interiorlosningar")}),(0,a.jsx)(i(),{href:`/${s}/featured`,className:"text-gray-700 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 font-medium transition-colors duration-200 whitespace-nowrap text-xs md:text-sm px-1",children:T("nav.featured")}),(0,a.jsx)(i(),{href:(0,w.getArtistIndexPath)(s),className:"text-gray-700 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 font-medium transition-colors duration-200 whitespace-nowrap text-xs md:text-sm px-1",children:T("nav.artists")}),(0,a.jsx)(i(),{href:(0,N.Be)(s),className:"text-gray-700 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 font-medium transition-colors duration-200 whitespace-nowrap text-xs md:text-sm px-1",children:T("nav.forArtists")}),(0,a.jsx)(i(),{href:`/${s}/faq`,className:"text-gray-700 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 font-medium transition-colors duration-200 whitespace-nowrap text-xs md:text-sm px-1",children:T("nav.faq")}),m&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i(),{href:`/${s}/recently-viewed`,className:"text-gray-700 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 font-medium transition-colors duration-200 whitespace-nowrap text-xs md:text-sm px-1",children:T("nav.recentlyViewed")}),(0,a.jsx)(i(),{href:`/${s}/favorites`,className:"text-gray-700 dark:text-darkText hover:text-blue-600 dark:hover:text-blue-400 font-medium transition-colors duration-200",children:T("nav.favorites")}),(0,a.jsx)(i(),{href:`/${s}/following`,className:"text-gray-700 dark:text-darkText hover:text-blue-600 dark:hover:text-blue-400 font-medium transition-colors duration-200",children:T("nav.following")})]})]}),O.map(e=>(0,a.jsx)(i(),{href:e.href,className:"text-gray-700 dark:text-darkText hover:text-blue-600 dark:hover:text-blue-400 font-medium transition-colors duration-200 whitespace-nowrap text-xs md:text-sm px-1",children:e.label},e.href)),C&&(0,a.jsx)(i(),{href:`/${s}/admin`,className:"text-gray-700 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 font-medium transition-colors duration-200 whitespace-nowrap text-sm",children:T("nav.admin")})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1 sm:gap-2 shrink-0 min-w-0",children:[(0,a.jsx)(_,{locale:s,chromeBrand:S,variant:"header"}),(0,a.jsx)("button",{type:"button",onClick:()=>v(!0),className:"p-2 rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-100 dark:text-darkText dark:hover:text-blue-400 dark:hover:bg-gray-700 transition-colors","aria-label":"sv"===s?"S\xf6k":"fi"===s?"Haku":"da"===s?"S\xf8g":"no"===s?"S\xf8k":"nl"===s?"Zoeken":"Search",children:(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:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),(0,a.jsx)(z,{}),(0,a.jsx)("div",{className:"shrink-0",children:(0,a.jsx)(K,{variant:"dropdown",hostname:o})}),(0,a.jsx)("div",{className:"hidden md:block shrink-0",children:(0,a.jsx)(E,{locale:s,variant:"dropdown"})}),(0,a.jsx)("div",{className:"shrink-0",children:(0,a.jsx)(L,{variant:"dropdown"})}),m?.user?(0,a.jsx)(x,{translations:u,locale:s}):(0,a.jsx)(h,{translations:u,locale:s}),(0,a.jsx)("button",{type:"button",onClick:()=>f(!p),className:"md:hidden p-2 rounded-md text-gray-700 dark:text-darkText hover:text-blue-600 dark:hover:text-blue-400 hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors shrink-0","aria-expanded":p,"aria-label":p?"fi"===s?"Sulje valikko":"en"===s?"Close menu":"da"===s?"Luk menu":"nl"===s?"Menu sluiten":"St\xe4ng meny":"fi"===s?"Avaa valikko":"en"===s?"Open menu":"da"===s?"\xc5bn menu":"nl"===s?"Menu openen":"\xd6ppna meny",children:(0,a.jsx)("svg",{className:"h-6 w-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":!0,children:p?(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}):(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})})]})]})}),p&&(0,a.jsx)("div",{className:"md:hidden bg-white dark:bg-gray-800 border-t border-gray-200 dark:border-gray-700 shadow-lg",children:(0,a.jsxs)("div",{className:"px-4 py-2 space-y-1",children:[!A&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i(),{href:(0,w.getGalleryPath)(s),className:"block px-3 py-2 text-gray-700 dark:text-darkText hover:text-blue-600 dar
1k:hover:text-blue-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors",onClick:()=>f(!1),children:T("nav.gallery")}),M&&(0,a.jsx)(i(),{href:$,"data-testid":"nav-buy-art-mobile",className:"block px-3 py-2 text-gray-700 dark:text-darkText hover:text-blue-600 dark:hover:text-blue-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors",onClick:()=>f(!1),children:T("nav.buyArt")}),(0,a.jsx)(i(),{href:`/${s}/collections`,className:"block px-3 py-2 text-gray-700 dark:text-darkText hover:text-blue-600 dark:hover:text-blue-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors",onClick:()=>f(!1),children:T("nav.collections")}),(0,a.jsx)(i(),{href:`/${s}/interiorlosningar`,className:"block px-3 py-2 text-gray-700 dark:text-darkText hover:text-blue-600 dark:hover:text-blue-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors",onClick:()=>f(!1),children:T("nav.interiorlosningar")}),(0,a.jsx)(i(),{href:`/${s}/featured`,className:"block px-3 py-2 text-gray-700 dark:text-darkText hover:text-blue-600 dark:hover:text-blue-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors",onClick:()=>f(!1),children:T("nav.featured")}),(0,a.jsx)(i(),{href:(0,w.getArtistIndexPath)(s),className:"block px-3 py-2 text-gray-700 dark:text-darkText hover:text-blue-600 dark:hover:text-blue-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors",onClick:()=>f(!1),children:T("nav.artists")}),(0,a.jsx)(i(),{href:(0,N.Be)(s),className:"block px-3 py-2 text-gray-700 dark:text-darkText hover:text-blue-600 dark:hover:text-blue-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors",onClick:()=>f(!1),children:T("nav.forArtists")}),(0,a.jsx)(i(),{href:`/${s}/faq`,className:"block px-3 py-2 text-gray-700 dark:text-darkText hover:text-blue-600 dark:hover:text-blue-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors",onClick:()=>f(!1),children:T("nav.faq")}),m&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i(),{href:`/${s}/recently-viewed`,className:"block px-3 py-2 text-gray-700 dark:text-darkText hover:text-blue-600 dark:hover:text-blue-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors",onClick:()=>f(!1),children:T("nav.recentlyViewed")}),(0,a.jsx)(i(),{href:`/${s}/favorites`,className:"block px-3 py-2 text-gray-700 dark:text-darkText hover:text-blue-600 dark:hover:text-blue-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors",onClick:()=>f(!1),children:T("nav.favorites")}),(0,a.jsx)(i(),{href:`/${s}/following`,className:"block px-3 py-2 text-gray-700 dark:text-darkText hover:text-blue-600 dark:hover:text-blue-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors",onClick:()=>f(!1),children:T("nav.following")})]})]}),O.map(e=>(0,a.jsx)(i(),{href:e.href,className:"block px-3 py-2 text-gray-700 dark:text-darkText hover:text-blue-600 dark:hover:text-blue-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors",onClick:()=>f(!1),children:e.label},e.href)),(0,a.jsx)(_,{locale:s,chromeBrand:S,variant:"mobile",onClick:()=>f(!1)}),C&&(0,a.jsx)(i(),{href:`/${s}/admin`,className:"block px-3 py-2 text-gray-700 dark:text-darkText hover:text-blue-600 dark:hover:text-blue-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors",onClick:()=>f(!1),children:T("nav.admin")}),m?.user&&!H&&(0,a.jsx)("div",{className:"border-t border-gray-200 dark:border-gray-700 pt-2 mt-2",children:(0,a.jsx)("div",{className:"px-3 py-2",children:(0,a.jsx)(I,{})})}),(0,a.jsxs)("div",{className:"border-t border-gray-200 dark:border-gray-700 pt-2 mt-2",children:[(0,a.jsx)(K,{variant:"menu",hostname:o}),(0,a.jsx)(E,{locale:s,variant:"menu"}),(0,a.jsx)(L,{variant:"menu"}),(0,a.jsx)("div",{className:"flex items-center justify-end px-3 py-2",children:(0,a.jsx)(h,{translations:u,locale:s})})]})]})})]}),k?(0,a.jsx)(G,{isOpen:k,onClose:()=>v(!1),locale:s}):null]})}},36512:(e,t,r)=>{"use strict";r.d(t,{ZA:()=>o});var a=r(73446);let n=/^\/(sv|en|da|no|nl|fi)(\/|$)/;function o(e,t="/"){if(!a.cb.includes(e))throw Error(`publicHref: unsupported locale ${JSON.stringify(e)}`);let r=(t||"/").trim();if(!r||"/"===r)return`/${e}`;if(n.test(r))throw Error(`publicHref: path already locale-prefixed: ${JSON.stringify(r)}`);let s=(r.startsWith("/")?r:`/${r}`).replace(/\/+$/,"")||"/";return"/"===s?`/${e}
1`:`/${e}${s}`}},37206:(e,t,r)=>{"use strict";r.d(t,{default:()=>n.a});var a=r(75707),n=r.n(a)},37292:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var a=r(95155);let n=(0,r(37206).default)(()=>Promise.all([r.e(9021),r.e(2869)]).then(r.bind(r,39488)),{loadableGenerated:{webpack:()=>[39488]},ssr:!1});function o({translations:e,locale:t,initialBrandWordmark:r}){return(0,a.jsx)(n,{translations:e,locale:t,initialBrandWordmark:r})}},41112:(e,t,r)=>{"use strict";function a({reason:e,children:t}){return t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return a}}),r(1980)},45196:(e,t,r)=>{"use strict";r.d(t,{GS:()=>o,KY:()=>c,_P:()=>m,gf:()=>u,ip:()=>l,lV:()=>i,r1:()=>s,wV:()=>d});let a="konst24:artist-shop-cart";function n(){return"u">typeof localStorage}function o(){if(!n())return null;try{let e=localStorage.getItem(a);if(!e)return null;let t=JSON.parse(e);if(!t?.artistId||!Array.isArray(t.items))return null;return t}catch{return null}}function s(e){if(n()){if(!e||0===e.items.length)return void localStorage.removeItem(a);localStorage.setItem(a,JSON.stringify({...e,updatedAt:new Date().toISOString()}))}}function i(e){return e?.items.length??0}function l(e){return(e?.items??[]).reduce((e,t)=>e+(t.priceCents||0),0)}function d(e,t,r){let a=e&&e.artistId===t.id?e:{artistId:t.id,artistUsername:t.username,items:[],updatedAt:new Date().toISOString()};return a.items.some(e=>e.artworkId===r.artworkId)?a:{...a,artistUsername:t.username,items:[...a.items,r],updatedAt:new Date().toISOString()}}function c(e,t){if(!e)return null;let r=e.items.filter(e=>e.artworkId!==t);return 0===r.length?null:{...e,items:r,updatedAt:new Date().toISOString()}}function u(e,t){let r=e.startsWith("/")?e.slice(1):e;return`/${r}/shop/cart?artist=${encodeURIComponent(t)}`}function m(e,t){let r=e.startsWith("/")?e.slice(1):e;return`/${r}/shop/checkout?artist=${encodeURIComponent(t)}`}},52794:(e,t,r)=>{"use strict";r.d(t,{F3:()=>n,yS:()=>o,yt:()=>s});var a=r(41463);let n=31536e3,o=86400,s=6e5;Number.isFinite(parseInt(String(a.env.MOBILE_APP_KEY_TTL_DAYS??""),10))},53780:(e,t,r)=>{"use strict";r.d(t,{i:()=>x});var a=r(20388),n=r(73446),o=r(52880),s=r(43486),i=r(74222),l=r(2014),d=r(77225),c=r(34384);let u=(0,a.hj)(s,i),m=(0,a.hj)(s,l),h=(0,a.hj)(s,d),g=(0,a.hj)(s,c);function x(e){let t=(0,n.QC)(e??void 0);return"sv"===t?o:"no"===t?u:"da"===t?m:"nl"===t?h:"fi"===t?g:s}},57952:(e,t,r)=>{"use strict";r.d(t,{Hf:()=>c,Qs:()=>d,default:()=>u});var a=r(95155),n=r(12115),o=r(91725),s=r(91314),i=r(52794);let l=(0,n.createContext)(null);function d(){return(0,n.useContext)(l)}function c(){let e=(0,n.useContext)(l);return e&&e.convertEnabled?{hostname:e.hostname,market:e.market,requestedCurrency:e.requestedCurrency,rates:e.snapshot,allowConversion:!0}:{allowConversion:!1}}let u=function({children:e,hostname:t,locale:r,initialSnapshot:d,initialCurrency:c,convertEnabled:u}){let[m,h]=(0,n.useState)(c),g=(0,n.useMemo)(()=>(0,o.BB)({hostname:t,locale:r}),[t,r]),x=(0,n.useCallback)(e=>{let t=e&&(0,s.V8)(e)?e:null;h(t),function(e){if("u"<typeof document)return;let t="https:"===window.location.protocol?"; Secure":"";if(!e){document.cookie=`${s.mi}=; Path=/; Max-Age=0; SameSite=Lax${t}`;return}document.cookie=`${s.mi}=${encodeURIComponent(e)}; Path=/; Max-Age=${i.F3}; SameSite=Lax${t}`}(t)},[]),p=(0,n.useMemo)(()=>({market:g,hostname:t,requestedCurrency:m,setRequestedCurrency:x,snapshot:d,convertEnabled:u}),[g,t,m,x,d,u]);return(0,a.jsx)(l.Provider,{value:p,children:e})}},64054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={bindSnapshot:function(){return l},createAsyncLocalStorage:function(){return i},createSnapshot:function(){return d}};for(var a in r)Object.defineProperty(t,a,{enumerable:!0,get:r[a]});let n=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class o{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}static bind(e){return e}}let s="u">typeof globalThis&&globalThis.AsyncLocalStorage;function i(){return s?new s:new o}function l(e){return s?s.bind(e):o.bind(e)}function d(){return s?s.snapshot():function(e,...t){return e(...t)}}},68635:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let a=r(95155),n=r(12115),o=r(41112);function s(e){return{default:e&&"default"in e?e.default:e}}r(21957);let i={loader:()=>Promise.resolve(s(()=>null)),loading:null,ssr:!0},l=function(e){let t={...i,...e},r=(0,n.lazy)(()=>t.loader().then(s)),l=t.loading;function d(e){let s=l?(0,a.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,i=!t.ssr||!!t.loading,d=i?n.Suspense:n.Fragment,c=t.ssr?(0,a.jsxs)(a.Fragment,{children:[null,(0,a.jsx)(r,{...e})]}):(0,a.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,a.jsx)(r,{...e})});return(0,a.jsx)(d,{...i?{fallback:s}:{},children:c})}return d.displayName="LoadableComponent",d}},70569:(e,t,r)=>{"use strict";r.d(t,{U:()=>l});var a=r(84347),n=r(53780),o=r(73446),s=r(20388),i=r(41463);function l(e,t,r){let l=(0,o.QC)(e),d=(0,n.i)(l),c=(0,a.A0)(d,t),u="1"===i.env.KONST24_STRICT_PUBLIC_LOCALE,m=(0,s.dw)(t);if(c||"en"===l||u||m||(c=(0,a.A0)((0,n.i)("en"),t)),!c)throw Error(`Missing locale string: ${t} (${l})`);return r&&(c=(0,a.GW)(c,r)),c}},73321:(e,t,r)=>{"use strict";var a=r(74645);r.o(a,"useParams")&&r.d(t,{useParams:function(){return a.useParams}}),r.o(a,"usePathname")&&r.d(t,{usePathname:function(){return a.usePathname}}),r.o(a,"useRouter")&&r.d(t,{useRouter:function(){return a.useRouter}}),r.o(a,"useSearchParams")&&r.d(t,{useSearchParams:function(){return a.useSearchParams}})},75707:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let a=r(73623)._(r(68635));function n(e,t){let r={};"function"==typeof e&&(r.loader=e);let n={...r,...t};return(0,a.default)({...n,modules:n.loadableGenerated?.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79209:(e,t,r)=>{"use strict";function a(e){return e?`/api/images/${e.replace(/^\//,"")}`:""}function n(e){if(!e)return"";let t=e=>{for(let t of["konst24-dev","konst24-staging","konst24-prod"])if(e.startsWith(`${t}/`))return e.slice(t.length+1);return e};if(e.includes("/api/images/")){let r=e.match(/\/api\/images\/(.+)$/);return r?`/api/images/${t(r[1])}`:e}if(e.startsWith("/api/images/")){let r=e.slice(12);return`/api/images/${t(r)}`}
1for(let r of[/(?:https?:\/\/[^\/]+\/)?([^\/]+\/(?:artworks|profiles)\/.+)$/,/(artworks\/.+)$/,/(profiles\/.+)$/]){let a=e.match(r);if(a){let e=t(a[1]||a[0]);return`/api/images/${e}`}}for(let t of["artworks/","profiles/"]){let r=e.indexOf(t);if(-1!==r)return`/api/images/${e.substring(r)}`}return e}function o(e){return function(e){if(!e)return[];let t=new Set,r=[],o=e=>{let a=e.trim();!a||t.has(a)||(t.add(a),r.push(a))},s=e.key?String(e.key).trim():"";s&&o(n(a(s)));let i=e.url?String(e.url).trim():"";return i&&o(n(i)),r}(e)[0]??""}function s(e){if(!e)return[];let t=new Set,r=[],o=e=>{let a=e.trim();!a||t.has(a)||(t.add(a),r.push(a))},s=[...e.images??[]].filter(Boolean),i=e.imageKey&&String(e.imageKey).trim()?String(e.imageKey).trim():null;for(let e of(i&&o(n(a(i))),s.sort((e,t)=>(function(e,t,r){if(r){let a=+(String(e.key??"").trim()===r),n=+(String(t.key??"").trim()===r);if(a!==n)return n-a}let a=+!!e.isPrimary,n=+!!t.isPrimary;return a!==n?n-a:(e.sortOrder??0)-(t.sortOrder??0)})(e,t,i)),s))o(function(e){let t=e.key?String(e.key).trim():"";if(t){let e=n(a(t));if(e)return e}let r=e.url?String(e.url).trim():"";if(r){let e=n(r);if(e)return e}return""}(e));let l=e.imageUrl?String(e.imageUrl).trim():"";return l&&!i&&o(n(l)),r}function i(e){return s(e)[0]??""}r.d(t,{FE:()=>o,Me:()=>n,cu:()=>s,w0:()=>i,x6:()=>a}),r(41463)},83695:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,98500,23)),Promise.resolve().then(r.bind(r,4314)),Promise.resolve().then(r.bind(r,57952)),Promise.resolve().then(r.bind(r,37292)),Promise.resolve().then(r.bind(r,24615))},84347:(e,t,r)=>{"use strict";r.d(t,{$:()=>i,A0:()=>d,GW:()=>c,n:()=>l});var a=r(12115),n=r(73446),o=r(20388);async function s(e){let t=(0,n.QC)(e);if((0,n.EM)(e)||e===t||console.warn(`Invalid locale: ${e}, using ${t}`),"sv"===t)try{let e=await r.e(499).then(r.t.bind(r,52880,19));return e?.default&&"object"==typeof e.default?e.default:{}}
1catch(e){return console.error("Failed to load Swedish translations",e),{}}if("en"===t)try{let e=await r.e(3486).then(r.t.bind(r,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 r.e(3486).then(r.t.bind(r,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 r(5039)(`./${t}/common.json`),n=e?.default&&"object"==typeof e.default?e.default:{};return(0,o.hj)(a,n)}catch(e){return console.warn(`No overlay for locale ${t}, using English only`,e),a}}let i=(0,a.cache)(s);function l(e,t){let r=t.split("."),a=e;for(let e of r)if(!a||"object"!=typeof a||!(e in a))return t;else a=a[e];return"string"==typeof a?a:t}function d(e,t){let r=l(e,t);if("string"!=typeof r)return;let a=r.trim();if(a&&a!==t)return a}function c(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,r)=>String(t[r]??""))}},89270:(e,t,r)=>{"use strict";r.d(t,{D:()=>d,N:()=>l});var a=r(95155),n=r(12115);let o=(0,n.createContext)(void 0),s="theme";function i(e,t){"dark"===t?(e.classList.add("dark"),e.style.colorScheme="dark"):(e.classList.remove("dark"),e.style.colorScheme="light")}function l({children:e}){let[t,r]=(0,n.useState)("light"),[d,c]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=document.documentElement,t="dark"===localStorage.getItem(s)?"dark":"light";r(t),i(e,t),c(!0)},[]),(0,n.useEffect)(()=>{d&&(i(document.documentElement,t),localStorage.setItem(s,t))},[t,d]),(0,n.useEffect)(()=>{let e=e=>{if(e.key===s&&e.newValue){let t=e.newValue;("dark"===t||"light"===t)&&(r(t),i(document.documentElement,t))}};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[]),(0,a.jsx)(o.Provider,{value:{theme:t,toggleTheme:()=>{r(e=>"light"===e?"dark":"light")}},children:e})}function d(){let e=(0,n.useContext)(o);if(void 0===e)throw Error("useTheme must be used within a ThemeProvider");return e}}},e=>{e.O(0,[8500,7882,499,7225,3486,4384,4222,2014,9320,9533,7446,8441,3794,7358],()=>e(e.s=83695)),_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.