PageSourceSearch

https://www.ellos.se/one/CC226Rsh.js

js ellos.se collected 2026-09-25 23:42:39 UTC 5,143 bytes, 2 lines download raw bytes

1import{t as e}from"./CSRkDk9_.js";import{D as t,E as n,Ht as r,Kt as i,On as a,Rt as o,St as s,b as c,er as l,et as u,ft as d,g as f,k as p,mt as m,nr as h,o as g,qt as _,v,vn as y,y as b}from"./Ib1jYPSS.js";import{v as x}from"./DcRNSiJ4.js";import{c as S,o as C,s as w}from"./B_4sme1c.js";import{n as T,r as E,t as D}from"./CLTmCMlN.js";import{t as O}from"./D3qxGkSe.js";import{t as k}from"./f9wAhgHQ.js";import{n as A,t as j}from"./XVlvk5Ej.js";import{t as M}from"./C0zvFrLy.js";import{t as N}from"./B7_0mMJV.js";import{t as P}from"./B-uTwpoa.js";import{t as F}from"./B7KMddld.js";import{t as I}from"./B7pfkb2K2.js";import{t as L}from"./BLoX3mMo2.js";import{t as R}from"./Sd-wSI902.js";import{t as z}from"./DeH8W-6n2.js";import{t as B}from"./FT0YEmkK2.js";import{t as V}from"./C-3kfu3L2.js";import{t as H}from"./0wCHlb2a.js";import{t as U}from"./DunBls1W.js";import{t as W}from"./DoRy3ZWd.js";import{t as G}from"./CNs_Ozdc.js";var K=[`datetime`],q=864e5,J=Object.assign(p({__name:`CountdownBadge`,props:{date:{},hours:{type:Boolean,default:!1}},setup(i){let s,l,{t:u}=e(),p=i,g=y(!1),_=o(`el`),v=f(()=>new Date(p.date).getTime()),b=()=>Math.max(0,v.value-Date.now()),x=e=>e.toString().padStart(2,`0`),S=y(b()),C=f(()=>Math.ceil(S.value/1e3/60/60/24)),w=f(()=>{if(!p.hours||C.value>1)return u(`countdownBadge.day`,{days:C.value},C.value);let e=new Date(S.value);return[x(e.getUTCHours()),x(e.getUTCMinutes()),x(e.getUTCSeconds())].join(`:`)}),{stop:T}=k(_,([e])=>{g.value=e?.isIntersecting||!1});p.hours||T();let E=()=>{s=window.setInterval(()=>{j()},1e3)},D=()=>{window.clearInterval(s),s=void 0},O=()=>{window.clearTimeout(l),l=void 0},A=()=>{D(),T(),O()},j=()=>{S.value=b(),S.value===0&&A()};return r([g,C],([e,t])=>{if(p.hours){if(e&&t===1){E();return}if(e&&t===2){j(),l=window.setTimeout(()=>j(),S.value-q);return}}D(),O()}),r(()=>p.date,()=>j()),d(()=>{A()}),(e,r)=>{let o=P;return m(),c(`time`,{ref:`el`,class:`countdown-badge`,datetime:i.date},[t(o,{icon:a(F)},null,8,[`icon`]),n(` `+h(a(w)),1)],8,K)}}}),{__name:`CountdownBadge`}),Y={class:`category-list`},X={key:3,class:`category-list-deal`},Z=Object.assign(p({__name:`CategoryPage`,props:{data:{}},setup(e){let r=O(),i=S(),o=D(),s=A(),d=x(),p=e,g=f(()=>p.data.content),{inlineCards:y}=W(g),C=f(()=>{if(!(!g.value||!g.value.body?.top))return{items:g.value.body.top.map((e,t)=>({data:e,visible:t===0}))}}),w=f(()=>{if(!(!g.value||!g.value.body?.bottom))return{items:g.value.body.bottom.map(e=>({data:e}))}}),k=e=>e?.facetted||s.count>0,M=e=>{let t=w.value?.items??[];return k(e)?{items:t.filter(e=>e.data.component!==`seo-qa`)}:{items:t}},P=f(()=>o.categoryOptionsOverride?.key===d.path?o.categoryOptionsOverride.options:{listId:T.CATEGORY_PAGE,listName:E.CATEGORY_PAGE}),F=f(()=>{if(g.value?.query?.businessPage&&!g.value?.path?.includes(`/b/`))return I.value}),I=f(()=>{let e=g.value?.query?.path||g.value?.query?.fullPath;if(i.breadcrumb&&e)return i.breadcrumb.find(t=>t.path===e)?.label});return(e,i)=>{let o=U,s=L,d=N,f=J,p=R,x=z,S=B,T=V,E=j;return m(),c(`div`,Y,[a(C)?(m(),v(o,u({key:0},a(C),{class:`top-content`}),null,16)):b(``,!0),a(g)?.query?(m(),v(E,{key:1,params:a(g).query,"inline-cards":a(y),highlight:a(r).brand===`ellos`,breadcrumbs:``,intro:`text`,"image-type":a(g).settings?.display.imageType,tracking:a(P)},{header:_(({breadcrumb:r,headline:i})=>[r?(m(),v(s,{key:0,list:r,type:`category`},null,8,[`list`])):b(``,!0),a(F)&&i?(m(),v(d,{key:1,level:`1`,size:`2`},{default:_(()=>[n(h(e.$t(`businessPage.heading`,[a(F),i])),1)]),_:2},1024)):(m(),v(d,{key:2,level:`1`,size:`2`},{default:_(()=>[n(h(i||a(I)),1)]),_:2},1024)),a(g).deal?(m(),c(`p`,X,[n(h(a(g).deal.text)+` `,1),t(f,{date:a(g).deal.end},null,8,[`date`])])):b(``,!0)]),footer:_(({category:n})=>[t(p),a(w)?(m(),v(o,l(u({key:0},M(n))),null,16)):b(``,!0),n?.facets.length?(m(),v(x,{key:1,title:e.$t(`categoryFacets.title`),links:n.facets},null,8,[`title`,`links`])):b(``,!0),n?.brandLinks?(m(),v(S,{key:2,title:e.$t(`brandLinks.title`,{category:n.name}),links:n.brandLinks},null,8,[`title`,`links`])):b(``,!0),n?.faq&&!k(n)?(m(),v(T,{key:3,"show-title":``,questions:n.faq},null,8,[`questions`])):b(``,!0)]),_:1},8,[`params`,`inline-cards`,`highlight`,`image-type`,`tracking`])):b(``,!0)])}}}),{__name:`CategoryPage`}),Q=p({__name:`[...slug]`,async setup(e){let t,o;G({type:`slug`,key:`/slug`}),I();let l=x(),{data:u}=([t,o]=i(()=>
1M()),t=await t,o(),t),d=f(()=>{if(w(u.value))return u.value.content}),p=f(()=>{if(d.value?.display?.background)return`:root {--page-background: ${d.value?.display.background};}`});return r(u,e=>{e&&C(e)&&(l.meta.trackingType=`CategoryListPage`)},{immediate:!0}),(e,t)=>{let r=s(`StyleTag`),i=H,o=Z;return m(),c(g,null,[a(p)?(m(),v(r,{key:0,type:`text/css`},{default:_(()=>[n(h(a(p)),1)]),_:1})):b(``,!0),(`isContentPage`in e?e.isContentPage:a(w))(a(u))&&a(d)?.body?(m(),v(i,{key:1,columns:a(d).body.columns,items:a(d).body.items,rows:a(d).body.rows,name:a(d).name},null,8,[`columns`,`items`,`rows`,`name`])):(`isCategoryPage`in e?e.isCategoryPage:a(C))(a(u))?(m(),v(o,{key:2,data:a(u)},null,8,[`data`])):b(``,!0)],64)}}});export{Q as default};
2//# sourceMappingURL=CC226Rsh.js.map

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.