PageSourceSearch

https://www.ahlens.se/_next/static/chunks/7303-0ab69c5ea13ea9bf.js

js ahlens.se collected 2026-09-24 18:51:47 UTC 9,675 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7303],{12806:(e,t,a)=>{a.d(t,{A:()=>s});var l=a(37876),n=a(14232),i=a(15688),r=a(49061);let s=e=>{let{rootItem:t,path:a}=e,s=i.A.getDefaultPath(a),[o,c]=(0,n.useState)(s),d=e=>{var t;return{label:e.label,path:"/".concat(e.value)||0,children:null==(t=e.hierarchyChildren)?void 0:t.map(e=>d(e)),icon:e.icon,handler:e.handler}};return(0,l.jsx)(r.A,{item:d(t),openState:o,handleOpenClick:(e,t)=>c(a=>i.A.setOpenState(e,t,a))})}},15688:(e,t,a)=>{a.d(t,{A:()=>n});class l{}l.getDefaultPath=e=>e.split("?")[0].toLowerCase().split("/").filter(e=>!!e).reduce((e,t,a)=>{let l=a+1;return e[l]=l>1?"".concat(e[l-1],"/").concat(t):"/".concat(t),e},{}),l.setOpenState=(e,t,a)=>{let l={...a};return l[e]===t?delete l[e]:l[e]=t,l},l.mapPageToNavigationItem=e=>({label:e.title,value:"".concat(e._meta.deliveryKey),hierarchyChildren:e.hierarchyChildren.map(e=>l.mapPageToNavigationItem(e))}),l.mapToTreeItem=e=>{var t;return{label:e&&e.label,value:"/".concat(e&&e.value)||0,children:e&&(null==(t=e.hierarchyChildren)?void 0:t.map(e=>l.mapToTreeItem(e))),icon:e&&e.icon,...(null==e?void 0:e.handler)?{onClick:()=>e.handler&&void e.handler()}:{url:"/".concat(null==e?void 0:e.value)}}},l.mapIndexPagesToNavigationItem=e=>{let t=[];return"categories"in e?t=e.categories?e.categories.map(e=>l.mapIndexPagesToNavigationItem(e)):[]:"businessArea"in e&&(t=e.businessArea?e.businessArea.map(e=>l.mapIndexPagesToNavigationItem(e)):[]),{label:e.title,value:"".concat(e.uri.slice(1)),hierarchyChildren:t}};let n=l},37303:(e,t,a)=>{a.d(t,{A:()=>y});var l=a(37876),n=a(89099),i=a(14232),r=a(81808),s=a(15688),o=a(65625),c=a(12806),d=a(64057),m=a(77858),h=a(65576),x=a(70121),p=a(23529),u=a(75113);let v=e=>{var t;let{item:a,disabledText:i}=e,r=(0,n.useRouter)(),s=a.value&&String(a.value).toLowerCase(),o=r.asPath.split("?")[0].toLowerCase().includes(s)&&r.asPath.split("/").slice(-1)[0].toLowerCase()===(a.value&&String(null==a?void 0:a.value).split("/").slice(-1)[0].toLowerCase()),c="flex  items-center text-base text-left justify-between min-h-[40px] max-h-[40px] w-full px-5 lg:hover:bg-background ".concat(o?"font-medium":"font-normal"," ").concat(a.disabled?"text-text":"","   ").concat(a.icon&&"pl-0 pr-0 pb-2 mt-4 mb-3 mr-6 md:w-[85px] max-w-[90px] justify-around min-h-[10px] border-b border-black border-solid "),d=()=>{Object.hasOwn(a,"onClick")&&a.onClick()};return(0,l.jsxs)(l.Fragment,{children:[Object.hasOwn(a,"url")?(0,l.jsxs)(p.A,{className:c,styleType:"none",href:a.url,onClick:()=>d,disabled:a.disabled,...o&&{"aria-current":"page"},children:[a.icon,a.label,!o&&a.disabled&&i&&(0,l.jsx)("span",{className:"text-text",children:i}),o&&(0,l.jsx)(u.JN,{"aria-hidden":"true"})]}):(0,l.jsxs)(x.A,{className:c,styleType:"none",onClick:()=>d(),disabled:a.disabled,children:[a.icon,a.label,!o&&a.disabled&&i&&(0,l.jsx)("span",{className:"text-text",children:i}),o&&(0,l.jsx)(u.JN,{"aria-hidden":"true"})]}),(0,l.jsx)("div",{className:"pl-6",children:null==a||null==(t=a.children)?void 0:t.map((e,t)=>(0,l.jsx)(v,{item:e},"dropdown-item-child-".concat(t)))})]})};var j=a(48074),b=a(4120),g=a(5045);let y=e=>{var t,a,x;let{page:p,global:y,topBlockSlots:f,bottomBlockSlots:w,pageHierarchyRoot:N,showBottomNavigation:C,canonicalPath:A,bottomBlockSlotsPlacement:k,additionTopContent:T,containerClass:I,children:_}=e,{logout:P}=(0,b.u)(),{asPath:L}=(0,n.useRouter)(),{t:S}=(0,g.c)(),[O,z]=(0,i.useState)(!1),D=async()=>{await P.mutateAsync()},E=r.A.generateBreadcrumbs(N,null==p?void 0:p._meta.deliveryKey),F=null;return N&&(F=s.A.mapPageToNavigationItem(N)).hierarchyChildren.push({icon:(0,l.jsx)(u.o4,{"aria-hidden":"true",widthAndHeight:16}),hierarchyChildren:[],label:S("text.logout"),value:"/",handler:()=>z(!0)}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(m.A,{canonicalPath:A,title:null==p||null==(t=p.metaData)?void 0:t.title,description:null==p||null==(a=p.metaData)?void 0:a.description}),(0,l.jsxs)(h.A,{global:y,breadcrumbs:E,pageTitle:null==p?void 0:p.title,pageDescription:(null==p||null==(x=p.ingressText)?void 0:x.text)?{text:p.ingressText.text,markdown:!0}:void 0,dropdownNavigation:F&&p?(0,l.jsx)(o.A,{rootItem:F,currentItem:p}):void 0,additionTopContent:T,children:[(0,l.jsxs)("div",{className:"flex zero:max-lg:flex-col gap-5",children:[F&&(0,l.jsx)("div",{className:"zero:max-lg:hidden lg:flex-[0_0_24%] self-start sticky top-13 py-4",children:(0,l.jsx)(c.A,{rootItem:F,path:L})}
1),(0,l.jsxs)("div",{className:"flex flex-col ".concat(I),children:[f&&f.length>0&&(0,l.jsx)("div",{className:"flex flex-col flex-auto",children:f.map((e,t)=>(0,l.jsx)(d.default,{slot:e,className:"[&:has(>*)]:mb-9",contentPosition:"start",priorityLoadEnabled:0===t},t))}),_,w&&w.length>0&&"container"===k&&(0,l.jsx)("div",{className:"flex flex-col item-start",children:w.map((e,t)=>(0,l.jsx)(d.default,{slot:e,contentPosition:"start",className:"[&:has(>*)]:mb-9"},t))})]})]}),(0,l.jsx)(j.A,{open:O,handleLogout:()=>void D(),handleClose:()=>z(!1)}),w&&w.length>0&&"below"===k&&(0,l.jsx)("div",{className:"flex flex-col item-start",children:w.map((e,t)=>(0,l.jsx)(d.default,{slot:e,className:"[&:has(>*)]:mb-9"},t))}),C&&(0,l.jsx)("nav",{"aria-hidden":"true",className:"lg:hidden bg-beige-secondary mt-3 py-3",children:(0,l.jsx)(v,{item:s.A.mapToTreeItem(F)})})]})]})}},48074:(e,t,a)=>{a.d(t,{A:()=>s});var l=a(37876),n=a(70121),i=a(36840),r=a(5045);let s=e=>{let{open:t,handleClose:a,handleLogout:s}=e,{t:o}=(0,r.c)();return(0,l.jsx)("div",{className:"absolute z-40 top-9 md:right-5 xl:right-6 xl:top-[3.5rem]",children:(0,l.jsx)(i.A,{open:t,handleClose:a,title:o("text.logoutmodalheader"),children:(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)("p",{children:o("text.logoutmodaltext")}),(0,l.jsxs)("div",{className:"sticky flex flex-col md:flex-row items-center justify-between mt-9",children:[(0,l.jsx)(n.A,{className:"zero:max-md:w-full md:w-[200px] zero:max-md:order-1 md:order-2",styleType:"button",onClick:s,children:o("text.logout")}),(0,l.jsx)("div",{className:"zero:max-md:order-2 md:order-1 ",children:(0,l.jsx)(n.A,{styleType:"text",onClick:a,children:o("text.cancel")})})]})]})})})}},49061:(e,t,a)=>{a.d(t,{A:()=>h});var l=a(37876),n=a(89099),i=a(14232),r=a(32559),s=a(70121),o=a(23529),c=a(75113),d=a(5045);let m=e=>{var t,a;let{item:h,openState:x,handleOpenClick:p,isChild:u=!1,parentOpen:v=!0}=e,j=(0,n.useRouter)(),b=(0,i.useId)(),{t:g}=(0,d.c)(),y=h.path.toLowerCase(),f=h.path.split("/").filter(e=>!!e).length,w=j.asPath.split("?")[0].toLowerCase().includes(y),N=x[f]===y,C=w&&j.asPath.split("/").slice(-1)[0].toLowerCase()===h.path.split("/").slice(-1)[0].toLowerCase();return(0,l.jsxs)("div",{className:"flex flex-col duration-300 ".concat(u?"ml-7":""," ").concat(v?"":"hidden"),children:[(0,l.jsxs)("span",{className:"flex items-center mb-6 ".concat(h.icon&&"ml-[-20px] justify-around w-[90px] border-b border-black border-solid"),children:[h.icon?(0,l.jsxs)(l.Fragment,{children:[h.icon,(0,l.jsx)(s.A,{onClick:()=>{var e;return null==(e=h.handler)?void 0:e.call(h)},styleType:"none",children:h.label})]}):(0,l.jsx)(o.A,{className:w?"text-label1-bold":"text-label1",href:h.path,styleType:C||w?"link":"none",size:"s",onClick:()=>{"/mina-sidor"===x[1]&&r.A.trackDynamicEvent({event:"my_pages",my_pages_actions:h.label})},...C&&{"aria-current":"page"},children:h.label}),(null==(t=h.children)?void 0:t.length)>0&&(0,l.jsx)(s.A,{className:"ml-3 duration-150 ".concat(N?"rotate-180":""),ariaLabel:"".concat(g("text.subpagesto")," ").concat(h.label),styleType:"none",onClick:()=>p(f,y),"aria-expanded":N,"aria-controls":"navigation-tree-item-".concat(b,"-subpages"),children:(0,l.jsx)(c.ZL,{"aria-hidden":"true",height:18,width:18})})]}),(null==(a=h.children)?void 0:a.length)>0&&(0,l.jsx)("ul",{id:"navigation-tree-item-".concat(b,"-subpages"),className:"".concat(N?"":"hidden"," list-none m-0 p-0"),children:h.children.map((e,t)=>(0,l.jsx)("li",{children:(0,l.jsx)(m,{item:e,isChild:!0,parentOpen:N,openState:x,handleOpenClick:p})},e.path||t))})]})},h=m},65625:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(37876),n=a(24464);let i=e=>e.map(e=>({label:e.label,value:"/".concat(e.value),children:i(e.hierarchyChildren),icon:e.icon,...e.handler?{onClick:()=>e.handler&&void e.handler()}:{url:"/".concat(e.value)}})),r=e=>{let{rootItem:t,currentItem:a}=e,r=i([t]);return(0,l.jsx)(n.A,{items:r,selectedItem:{label:a.title,url:"/".concat(a._meta.deliveryKey),value:"/".concat(a._meta.deliveryKey)}})}},77858:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(37876),n=a(77328),i=a.n(n);a(14232);let r=e=>{let{title:t="\xc5hl\xe9ns",description:a,canonicalPath:n,robots:r,jsonLd:s,breadcrumbsJsonLd:o}=e,c=n?n.startsWith("http")?n:"".concat("https://www.ahlens.se").concat(n.startsWith("/")?"":"/").concat(n):void 0;return(0,l.jsxs)(i(),{children:[(0,l.jsx)("meta",{name:"title",content:t}),(0,l.jsx)("meta",{name:"description",content:a}),(0,l.jsx)("meta",{property:"og:type",content:"website"},3),(0,l.jsx)("meta",{property:"og:title",content:t}),(0,l.jsx)("meta",{property:"og:description",content:a}),(0,l.jsx)("meta",{property:"twitter:card",content:"summary"}),(0,l.jsx)("meta",{property:"twitter:title",content:t}),(0,l.jsx)("meta",{property:"twitter:description",content:a}),(0,l.jsx)("title",{children:t}),c&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("link",{rel:"canonical",href:c}),(0,l.jsx)("meta",{property:"twitter:url",content:c}),(0,l.jsx)("meta",{property:"og:url",content:c})]}),r&&(0,l.jsx)("meta",{name:"robots",content:r}),s&&(0,l.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:s}}),o&&(0,l.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:o}})]})}}}]);
2//# 

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.