PageSourceSearch

https://www.602.cz/_nuxt/CljiDJA4.js

js 602.cz collected 2026-10-09 21:32:11 UTC 5,272 bytes, 1 lines download raw bytes

1import{H as I}from"./CKGzwNtU.js";import{P as F}from"./CXZsgHQf.js";import{f as g}from"./DNkrBnVF.js";import{f as A,B as v,g as D,s as U,p as q,y as M,q as K,o as t,c as s,a as l,h as C,u as h,i as c,F as p,x as b,E as S,I as N,t as H,d as Y}from"./BOa1IU0H.js";import{_ as G}from"./DlAUqK2U.js";import{w as J}from"./Cd8oSfsN.js";const Q={class:"max-w-screen-xl px-5 py-8 md:px-[3.75rem] md:py-16 m-auto"},W={class:"flex flex-col lg:flex-row gap-8 items-start"},X={class:"hidden lg:block lg:w-1/2 aspect-[4/3] rounded-2xl overflow-hidden flex-shrink-0"},Z={class:"grid h-full w-full grid-cols-1 grid-rows-1"},O=["src","alt"],ee={class:"w-full lg:w-1/2 flex flex-col gap-6 lg:gap-8 relative"},te={class:"sofa-showcase__measure","aria-hidden":"true"},ae={key:1,class:"block lg:hidden aspect-[4/3] rounded-2xl overflow-hidden mt-2"},se=["src","alt"],le=["onClick"],oe={class:"absolute left-0 top-0 bottom-0 w-1 rounded-full bg-[#e5e5e5] overflow-hidden"},ne={class:"w-full min-w-0"},ie={class:"text-lg lg:text-xl xl:text-2xl font-semibold leading-snug text-dark-grey"},re={key:0},de={key:1,class:"block lg:hidden aspect-[4/3] rounded-2xl overflow-hidden mt-2"},ce=["src","alt"],P=8e3,T=A({__name:"SofaShowcase",props:{heading:{},items:{default:()=>[]},bgColor:{default:"bg-transparent"}},setup(f){const _=f,i=v(0),w=v(0),y=v(0),x=v([]),L=D(()=>_.items.length<=1);let m=null,o=null;const R=(e,r)=>{x.value[e]=r instanceof HTMLElement?r:null},u=()=>{const e=x.value.map(r=>(r==null?void 0:r.getBoundingClientRect().height)??0).filter(r=>r>0);y.value=e.length?Math.max(...e):0},j=e=>y.value<=0?i.value===e?void 0:{height:"0px"}:{height:i.value===e?`${y.value}px`:"0px"},z=()=>{typeof ResizeObserver>"u"||(o==null||o.disconnect(),o=new ResizeObserver(()=>u()),x.value.forEach(e=>{e&&(o==null||o.observe(e))}))};U(()=>_.items,()=>{M(()=>{u(),z()})},{deep:!0});const k=()=>{m&&clearTimeout(m),!L.value&&(m=setTimeout(()=>{i.value=(i.value+1)%_.items.length,w.value++,k()},P))},V=e=>{e!==i.value&&(i.value=e,w.value++,k())};return q(()=>{k(),M(()=>{u(),z()}),window.addEventListener("resize",u)}),K(()=>{m&&clearTimeout(m),o==null||o.disconnect(),window.removeEventListener("resize",u)}),(e,r)=>(t(),s("div",{class:S([e.bgColor])},[l("div",Q,[e.heading?(t(),C(I,{key:0,heading:h(g)(e.heading),tag:"h2",size:"headline",class:"text-center mb-12"},null,8,["heading"])):c("",!0),l("div",W,[l("div",X,[l("div",Z,[(t(!0),s(p,null,b(e.items,(a,n)=>(t(),s(p,{key:`desk-${n}-${a.image??""}`},[a.image?(t(),s("img",{key:0,src:a.image,alt:a.brandName??"",class:S(["col-start-1 row-start-1 h-full w-full object-contain sofa-showcase__desk-image",i.value===n?"sofa-showcase__desk-image--active":""])},null,10,O)):c("",!0)],64))),128))])]),l("div",ee,[l("div",te,[(t(!0),s(p,null,b(e.items,(a,n)=>(t(),s("div",{key:`measure-${n}`,ref_for:!0,ref:d=>R(n,d),class:"mt-3 min-w-0"},[a.description?(t(),C(F,{key:0,text:h(g)(a.description),size:"subheading-2",class:"mb-4 leading-relaxed lg:mb-0"},null,8,["text"])):c("",!0),a.image?(t(),s("div",ae,[l("img",{src:a.image,alt:a.brandName??"",class:"h-full w-full object-contain",onLoad:u},null,40,se)])):c("",!0)]))),128))]),(t(!0),s(p,null,b(e.items,(a,n)=>(t(),s("div",{key:n,class:"relative flex gap-5 cursor-pointer py-2 pl-8",onClick:d=>V(n)},[l("div",oe,[i.value===n?(t(),s("div",{key:w.value,class:"sofa-showcase__fill w-full rounded-full bg-blue",style:N(`animation-duration: ${P}ms`)},null,4)):c("",!0)]),l("div",ne,[l("div",ie,[l("span",{style:N(a.brandColor?`color: ${a.brandColor}`:"color: #0066FF")},H(h(g)(a.brandName)),5),a.brandName?(t(),s("span",re,". ")):c("",!0),Y(H(h(g)(a.title)),1)]),l("div",{class:"sofa-showcase__slide-content mt-3 min-w-0 overflow-hidden",style:N(j(n))},[(t(!0),s(p,null,b(e.items,(d,B)=>(t(),s("div",{key:B,class:S(["sofa-showcase__slide-panel",{"sofa-showcase__slide-panel--active":i.value===B}])},[d.description?(t(),C(F,{key:0,text:h(g)(d.description),size:"subheading-2",class:"mb-4 leading-relaxed lg:mb-0"},null,8,["text"])):c("",!0),d.image?(t(),s("div",de,[l("img",{src:d.image,alt:d.brandName??"",class:"h-full w-full object-contain"},null,8,ce)])):c("",!0)],2))),128))],4)])],8,le))),128))])])])],2))}}),$=f=>{f.__segment={name:"SofaShowcase",defaultData:{heading:"",items:[],bgColor:"bg-transparent"}}},E=f=>{f.__form={schema:{h2:{type:"static",tag:"h3",content:"Sofa Showcase",align:"left"},heading:{type:"text",label:"Hlavní nadpis"},items:{type:"list",addText:"+ Přidat položku",element:{type:"object",addClass:["mt-6","pb-6","bg-faint-grey"],schema:{brandName:{type:"text",label:"Název produktu (barevný)"},brandColor:{type:"text",label:"Barva názvu (hex, např. #0066FF)",placeholder:"#0066FF"},title:{type:"text",label:"Popis titulku"},description:{type:"textarea",label:"Popis (zobrazen při aktivním stavu)"},image:{type:"media-manager",label:"Obrázek"}}}},bgColor:{type:"select",label:"Pozadí",native:!1,items:[{value:"bg-transparent",label:"průhledná"},{value:"bg-white",label:"bílá"},{value:"bg-faint-grey",label:"světle šedá"},{value:"bg-dim-grey",label:"tmavě šedá"}]},componentVersion:{type:"hidden",default:1}}}};typeof $=="function"&&$(T);typeof E=="function"&&E(T);const ue=G(T,[["__scopeId","data-v-b65bbc3c"]]),be=J(ue);export{be as SofaShowcase,be as default};

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.