v2zn.com Open in urlscan Pro
154.40.55.156  Public Scan

URL: https://v2zn.com/assets/Grid-171ebeeb.js
Submission: On December 10 via api from US — Scanned from IL

Form analysis 0 forms found in the DOM

Text Content

import{ae as P,af as X,c as S,a as N,ag as F,ah as z,d as T,ai as U,aj as Y,ak as x,v as E,k as H,al as B,o as J,am as W,an as I,ao as Z,ap as j,aq as K,s as ee,y as te,ar as V,as as se}from"./app-90ba61e9.js";function ne(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(i=>{if(i==="")return;const[n,s]=i.split(":");s===void 0?t[""]=n:t[n]=s}),t}function w(e,t){var i;if(e==null)return;const n=ne(e);if(t===void 0)return n[""];if(typeof t=="string")return(i=n[t])!==null&&i!==void 0?i:n[""];if(Array.isArray(t)){for(let s=t.length-1;s>=0;--s){const r=t[s];if(r in n)return n[r]}return n[""]}else{let s,r=-1;return Object.keys(n).forEach(a=>{const l=Number(a);!Number.isNaN(l)&&t>=l&&l>=r&&(r=l,s=n[a])}),s}}function ie(e){var t;const i=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:n})=>n===P);return!!(i&&i.value===!1)}const re={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function oe(e){return"(min-width: ".concat(e,"px)")}const G={};function ae(e=re){if(!X)return S(()=>[]);if(typeof window.matchMedia!="function")return S(()=>[]);const t=N({}),i=Object.keys(e),n=(s,r)=>{s.matches?t.value[r]=!0:t.value[r]=!1};return i.forEach(s=>{const r=e[s];let a,l;G[r]===void 0?(a=window.matchMedia(oe(r)),a.addEventListener?a.addEventListener("change",d=>{l.forEach(f=>{f(d,s)})}):a.addListener&&a.addListener(d=>{l.forEach(f=>{f(d,s)})}),l=new Set,G[r]={mql:a,cbs:l}):(a=G[r].mql,l=G[r].cbs),l.add(n),a.matches&&l.forEach(d=>{d(a,s)})}),F(()=>{i.forEach(s=>{const{cbs:r}=G[e[s]];r.has(n)&&r.delete(n)})}),S(()=>{const{value:s}=t;return i.filter(r=>s[r])})}const O=1,L=z("n-grid"),q=1,le={span:{type:[Number,String],default:q},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},pe=T({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:le,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:i,overflowRef:n,layoutShiftDisabledRef:s}=U(L),r=Y();return{overflow:n,itemStyle:i,layoutShiftDisabled:s,mergedXGap:S(()=>x(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:a=q,privateShow:l=!0,privateColStart:d=void 0,privateOffset:f=0}=r.vnode.props,{value:$}=t,g=x($||0);return{display:l?"":"none",gridColumn:"".concat(d!=null?d:"span ".concat(a)," / span ").concat(a),marginLeft:f?"calc((100% - (".concat(a," - 1) * ").concat(g,") / ").concat(a," * ").concat(f," + ").concat(g," * ").concat(f,")"):""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:i,offset:n,mergedXGap:s}=this;return E("div",{style:{gridColumn:"span ".concat(i," / span ").concat(i),marginLeft:n?"calc((100% - (".concat(i," - 1) * ").concat(s,") / ").concat(i," * ").concat(n," + ").concat(s," * ").concat(n,")"):""}},this.$slots)}return E("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),fe={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},Q=24,k="__ssr__",ue={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:Q},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},ce=T({name:"Grid",inheritAttrs:!1,props:ue,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:i}=H(e),n=/^\d+$/,s=N(void 0),r=ae((i==null?void 0:i.value)||fe),a=B(()=>!!(e.itemResponsive||!n.test(e.cols.toString())||!n.test(e.xGap.toString())||!n.test(e.yGap.toString()))),l=S(()=>{if(a.value)return e.responsive==="self"?s.value:r.value}),d=B(()=>{var u;return(u=Number(w(e.cols.toString(),l.value)))!==null&&u!==void 0?u:Q}),f=B(()=>w(e.xGap.toString(),l.value)),$=B(()=>w(e.yGap.toString(),l.value)),g=u=>{s.value=u.contentRect.width},v=u=>{se(g,u)},y=N(!1),R=S(()=>{if(e.responsive==="self")return v}),p=N(!1),h=N();return J(()=>{const{value:u}=h;u&&u.hasAttribute(k)&&(u.removeAttribute(k),p.value=!0)}),W(L,{layoutShiftDisabledRef:I(e,"layoutShiftDisabled"),isSsrRef:p,itemStyleRef:I(e,"itemStyle"),xGapRef:f,overflowRef:y}),{isSsr:!Z,contentEl:h,mergedClsPrefix:t,style:S(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:"repeat(".concat(e.cols,", minmax(0, 1fr))"),columnGap:x(e.xGap),rowGap:x(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:"repeat(".concat(d.value,", minmax(0, 1fr))"),columnGap:x(f.value),rowGap:x($.value)}),isResponsive:a,responsiveQuery:l,responsiveCols:d,handleResize:R,overflow:y}},render(){if(this.layoutShiftDisabled)return E("div",j({ref:"contentEl",class:"".concat(this.mergedClsPrefix,"-grid"),style:this.style},this.$attrs),this.$slots);const e=()=>{var t,i,n,s,r,a,l;this.overflow=!1;const d=ee(te(this)),f=[],{collapsed:$,collapsedRows:g,responsiveCols:v,responsiveQuery:y}=this;d.forEach(o=>{var C,m,c,b,D;if(((C=o==null?void 0:o.type)===null||C===void 0?void 0:C.__GRID_ITEM__)!==!0)return;if(ie(o)){const _=V(o);_.props?_.props.privateShow=!1:_.props={privateShow:!1},f.push({child:_,rawChildSpan:0});return}o.dirs=((m=o.dirs)===null||m===void 0?void 0:m.filter(({dir:_})=>_!==P))||null,((c=o.dirs)===null||c===void 0?void 0:c.length)===0&&(o.dirs=null);const M=V(o),A=Number((D=w((b=M.props)===null||b===void 0?void 0:b.span,y))!==null&&D!==void 0?D:O);A!==0&&f.push({child:M,rawChildSpan:A})});let R=0;const p=(t=f[f.length-1])===null||t===void 0?void 0:t.child;if(p!=null&&p.props){const o=(i=p.props)===null||i===void 0?void 0:i.suffix;o!==void 0&&o!==!1&&(R=Number((s=w((n=p.props)===null||n===void 0?void 0:n.span,y))!==null&&s!==void 0?s:O),p.props.privateSpan=R,p.props.privateColStart=v+1-R,p.props.privateShow=(r=p.props.privateShow)!==null&&r!==void 0?r:!0)}let h=0,u=!1;for(const{child:o,rawChildSpan:C}of f){if(u&&(this.overflow=!0),!u){const m=Number((l=w((a=o.props)===null||a===void 0?void 0:a.offset,y))!==null&&l!==void 0?l:0),c=Math.min(C+m,v);if(o.props?(o.props.privateSpan=c,o.props.privateOffset=m):o.props={privateSpan:c,privateOffset:m},$){const b=h%v;c+b>v&&(h+=v-b),c+h+R>g*v?u=!0:h+=c}}u&&(o.props?o.props.privateShow!==!0&&(o.props.privateShow=!1):o.props={privateShow:!1})}return E("div",j({ref:"contentEl",class:"".concat(this.mergedClsPrefix,"-grid"),style:this.style,[k]:this.isSsr||void 0},this.$attrs),f.map(({child:o})=>o))};return this.isResponsive&&this.responsive==="self"?E(K,{onResize:this.handleResize},{default:e}):e()}});export{ce as _,pe as a};