PageSourceSearch

https://takojdobavljivo.skoda.si/assets/index-DKwp6-Ug.js

js skoda.si collected 2026-10-07 00:02:24 UTC 3,879 bytes, 9 lines download raw bytes

vendor: 3,533 bytes, lines 1-9
1import{j as P}from"./jsx-runtime-u17CrQMm.js";import{r as n}from"./chunk-LFPYN7LY-BDMtIe0a.js";import{M as A,i as z,u as S,P as D,a as K,b as U,L as B}from"./proxy-BluTslxC.js";function I(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function F(...e){return r=>{let t=!1;const o=e.map(u=>{const f=I(u,r);return!t&&typeof f=="function"&&(t=!0),f});if(t)return()=>{for(let u=0;u<o.length;u++){const f=o[u];typeof f=="function"?f():I(e[u],null)}}}}function G(...e){return n.useCallback(F(...e),e)}class V extends n.Component{getSnapshotBeforeUpdate(r){const t=this.props.childRef.current;if(t&&r.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const o=t.offsetParent,u=z(o)&&o.offsetWidth||0,f=z(o)&&o.offsetHeight||0,s=this.props.sizeRef.current;s.height=t.offsetHeight||0,s.width=t.offsetWidth||0,s.top=t.offsetTop,s.left=t.offsetLeft,s.right=u-s.width-s.left,s.bottom=f-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}}function X({children:e,isPresent:r,anchorX:t,anchorY:o,root:u,pop:f}){const s=n.useId(),m=n.useRef(null),g=n.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:R}=n.useContext(A),a=e.props?.ref??e?.ref,w=G(m,a);return n.useInsertionEffect(()=>{const{width:c,height:p,top:d,left:C,right:x,bottom:M}=g.current;if(r||f===!1||!m.current||!c||!p)return;const b=t==="left"?`left: ${C}`:`right: ${x}`,j=o==="bottom"?`bottom: ${M}`:`top: ${d}`;m.current.dataset.motionPopId=s;const l=document.createElement("style");R&&(l.nonce=R);const y=u??document.head;return y.appendChild(l),l.sheet&&l.sheet.insertRule(`
2          [data-motion-pop-id="${s}"] {
3            position: absolute !important;
4            width: ${c}px !important;
5            height: ${p}px !important;
6            ${b}px !important;
7            ${j}px !important;
8          }
9        `),()=>{y.contains(l)&&y.removeChild(l)}},[r]),P.jsx(V,{isPresent:r,childRef:m,sizeRef:g,pop:f,children:f===!1?e:n.cloneElement(e,{ref:w})})}const Y=({children:e,initial:r,isPresent:t,onExitComplete:o,custom:u,presenceAffectsLayout:f,mode:s,anchorX:m,anchorY:g,root:R})=>{const a=S(_),w=n.useId();let c=!0,p=n.useMemo(()=>(c=!1,{id:w,initial:r,isPresent:t,custom:u,onExitComplete:d=>{a.set(d,!0);for(const C of a.values())if(!C)return;o&&o()},register:d=>(a.set(d,!1),()=>a.delete(d))}),[t,a,o]);return f&&c&&(p={...p}),n.useMemo(()=>{a.forEach((d,C)=>a.set(C,!1))},[t]),n.useEffect(()=>{!t&&!a.size&&o&&o()},[t]),e=P.jsx(X,{pop:s==="popLayout",isPresent:t,anchorX:m,anchorY:g,root:R,children:e}),P.jsx(D.Provider,{value:p,children:e})};function _(){return new Map}const $=e=>e.key||"";function H(e){const r=[];return n.Children.forEach(e,t=>{n.isValidElement(t)&&r.push(t)}),r}const O=({children:e,custom:r,initial:t=!0,onExitComplete:o,presenceAffectsLayout:u=!0,mode:f="sync",propagate:s=!1,anchorX:m="left",anchorY:g="top",root:R})=>{const[a,w]=K(s),c=n.useMemo(()=>H(e),[e]),p=s&&!a?[]:c.map($),d=n.useRef(!0),C=n.useRef(c),x=S(()=>new Map),M=n.useRef(new Set),[b,j]=n.useState(c),[l,y]=n.useState(c);U(()=>{d.current=!1,C.current=c;for(let h=0;h<l.length;h++){const i=$(l[h]);p.includes(i)?(x.delete(i),M.current.delete(i)):x.get(i)!==!0&&x.set(i,!1)}},[l,p.length,p.join("-")]);const v=[];if(c!==b){let h=[...c];for(let i=0;i<l.length;i++){const E=l[i],L=$(E);p.includes(L)||(h.splice(i,0,E),v.push(E))}return f==="wait"&&v.length&&(h=v),y(H(h)),j(c),null}const{forceRender:T}=n.useContext(B);return P.jsx(P.Fragment,{children:l.map(h=>{const i=$(h),E=s&&!a?!1:c===l||p.includes(i),L=()=>
9{if(M.current.has(i))return;if(M.current.add(i),x.has(i))x.set(i,!0);else return;let k=!0;x.forEach(W=>{W||(k=!1)}),k&&(T?.(),y(C.current),s&&w?.(),o&&o())};return P.jsx(Y,{isPresent:E,initial:!d.current||t?void 0:!1,custom:r,presenceAffectsLayout:u,mode:f,root:R,onExitComplete:E?void 0:L,anchorX:m,anchorY:g,children:h},i)})})};export{O as A};

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.