import{X as J,o as P,g as B,x as V,a as Z,B as U,b7 as K,aw as k,ay as M,q as Y,aW as x,y as tt,A as et,j as W,F as D,D as q,h as $,b as it}from"./app-BYcXwl4U.js";var st={name:"BlankIcon",extends:J},nt=Z("rect",{width:"1",height:"1",fill:"currentColor","fill-opacity":"0"},null,-1),rt=[nt];function ot(e,t,i,n,r,s){return P(),B("svg",V({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),rt,16)}st.render=ot;var lt={name:"SearchIcon",extends:J},at=Z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z",fill:"currentColor"},null,-1),ht=[at];function ut(e,t,i,n,r,s){return P(),B("svg",V({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),ht,16)}lt.render=ut;var ct=function(t){var i=t.dt;return`
.p-virtualscroller {
    position: relative;
    overflow: auto;
    contain: strict;
    transform: translateZ(0);
    will-change: scroll-position;
    outline: 0 none;
}

.p-virtualscroller-content {
    position: absolute;
    top: 0;
    left: 0;
    min-height: 100%;
    min-width: 100%;
    will-change: transform;
}

.p-virtualscroller-spacer {
    position: absolute;
    top: 0;
    left: 0;
    height: 1px;
    width: 1px;
    transform-origin: 0 0;
    pointer-events: none;
}

.p-virtualscroller-loader {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: `.concat(i("virtualscroller.loader.mask.background"),`;
    color: `).concat(i("virtualscroller.loader.mask.color"),`;
}

.p-virtualscroller-loader-mask {
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-virtualscroller-loading-icon {
    font-size: `).concat(i("virtualscroller.loader.icon.size"),`;
    width: `).concat(i("virtualscroller.loader.icon.size"),`;
    height: `).concat(i("virtualscroller.loader.icon.size"),`;
}

.p-virtualscroller-horizontal > .p-virtualscroller-content {
    display: flex;
}

.p-virtualscroller-inline .p-virtualscroller-content {
    position: static;
}
`)},X=U.extend({name:"virtualscroller",theme:ct}),dt={name:"BaseVirtualScroller",extends:tt,props:{id:{type:String,default:null},style:null,class:null,items:{type:Array,default:null},itemSize:{type:[Number,Array],default:0},scrollHeight:null,scrollWidth:null,orientation:{type:String,default:"vertical"},numToleratedItems:{type:Number,default:null},delay:{type:Number,default:0},resizeDelay:{type:Number,default:10},lazy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loaderDisabled:{type:Boolean,default:!1},columns:{type:Array,default:null},loading:{type:Boolean,default:!1},showSpacer:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!1},tabindex:{type:Number,default:0},inline:{type:Boolean,default:!1},step:{type:Number,default:0},appendOnly:{type:Boolean,default:!1},autoSize:{type:Boolean,default:!1}},style:X,provide:function(){return{$pcVirtualScroller:this,$parentInstance:this}},beforeMount:function(){var t;X.loadCSS({nonce:(t=this.$primevueConfig)===null||t===void 0||(t=t.csp)===null||t===void 0?void 0:t.nonce})}};function j(e){"@babel/helpers - typeof";return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(e)}function G(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),i.push.apply(i,n)}return i}function _(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?G(Object(i),!0).forEach(function(n){Q(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):G(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}function Q(e,t,i){return(t=mt(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function mt(e){var t=ft(e,"string");return j(t)=="symbol"?t:t+""}function ft(e,t){if(j(e)!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var n=i.call(e,t||"default");if(j(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vt={name:"VirtualScroller",extends:dt,inheritAttrs:!1,emits:["update:numToleratedItems","scroll","scroll-index-change","lazy-load"],data:function(){var t=this.isBoth();return{first:t?{rows:0,cols:0}:0,last:t?{rows:0,cols:0}:0,page:t?{rows:0,cols:0}:0,numItemsInViewport:t?{rows:0,cols:0}:0,lastScrollPos:t?{top:0,left:0}:0,d_numToleratedItems:this.numToleratedItems,d_loading:this.loading,loaderArr:[],spacerStyle:{},contentStyle:{}}},element:null,content:null,lastScrollPos:null,scrollTimeout:null,resizeTimeout:null,defaultWidth:0,defaultHeight:0,defaultContentWidth:0,defaultContentHeight:0,isRangeChanged:!1,lazyLoadState:{},resizeListener:null,initialized:!1,watch:{numToleratedItems:function(t){this.d_numToleratedItems=t},loading:function(t,i){this.lazy&&t!==i&&t!==this.d_loading&&(this.d_loading=t)},items:function(t,i){(!i||i.length!==(t||[]).length)&&(this.init(),this.calculateAutoSize())},itemSize:function(){this.init(),this.calculateAutoSize()},orientation:function(){this.lastScrollPos=this.isBoth()?{top:0,left:0}:0},scrollHeight:function(){this.init(),this.calculateAutoSize()},scrollWidth:function(){this.init(),this.calculateAutoSize()}},mounted:function(){this.viewInit(),this.lastScrollPos=this.isBoth()?{top:0,left:0}:0,this.lazyLoadState=this.lazyLoadState||{}},updated:function(){!this.initialized&&this.viewInit()},unmounted:function(){this.unbindResizeListener(),this.initialized=!1},methods:{viewInit:function(){K(this.element)&&(this.setContentEl(this.content),this.init(),this.calculateAutoSize(),this.bindResizeListener(),this.defaultWidth=k(this.element),this.defaultHeight=M(this.element),this.defaultContentWidth=k(this.content),this.defaultContentHeight=M(this.content),this.initialized=!0)},init:function(){this.disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize())},isVertical:function(){return this.orientation==="vertical"},isHorizontal:function(){return this.orientation==="horizontal"},isBoth:function(){return this.orientation==="both"},scrollTo:function(t){this.element&&this.element.scrollTo(t)},scrollToIndex:function(t){var i=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",r=this.isBoth(),s=this.isHorizontal(),l=r?t.every(function(b){return b>-1}):t>-1;if(l){var a=this.first,h=this.element,u=h.scrollTop,o=u===void 0?0:u,c=h.scrollLeft,d=c===void 0?0:c,p=this.calculateNumItems(),v=p.numToleratedItems,g=this.getContentPosition(),y=this.itemSize,I=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,H=arguments.length>1?arguments[1]:void 0;return S<=H?0:S},z=function(S,H,A){return S*H+A},L=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return i.scrollTo({left:S,top:H,behavior:n})},m=r?{rows:0,cols:0}:0,R=!1,O=!1;r?(m={rows:I(t[0],v[0]),cols:I(t[1],v[1])},L(z(m.cols,y[1],g.left),z(m.rows,y[0],g.top)),O=this.lastScrollPos.top!==o||this.lastScrollPos.left!==d,R=m.rows!==a.rows||m.cols!==a.cols):(m=I(t,v),s?L(z(m,y,g.left),o):L(d,z(m,y,g.top)),O=this.lastScrollPos!==(s?d:o),R=m!==a),this.isRangeChanged=R,O&&(this.first=m)}},scrollInView:function(t,i){var n=this,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"auto";if(i){var s=this.isBoth(),l=this.isHorizontal(),a=s?t.every(function(y){return y>-1}):t>-1;if(a){var h=this.getRenderedRange(),u=h.first,o=h.viewport,c=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return n.scrollTo({left:I,top:z,behavior:r})},d=i==="to-start",p=i==="to-end";if(d){if(s)o.first.rows-u.rows>t[0]?c(o.first.cols*this.itemSize[1],(o.first.rows-1)*this.itemSize[0]):o.first.cols-u.cols>t[1]&&c((o.first.cols-1)*this.itemSize[1],o.first.rows*this.itemSize[0]);else if(o.first-u>t){var v=(o.first-1)*this.itemSize;l?c(v,0):c(0,v)}}else if(p){if(s)o.last.rows-u.rows<=t[0]+1?c(o.first.cols*this.itemSize[1],(o.first.rows+1)*this.itemSize[0]):o.last.cols-u.cols<=t[1]+1&&c((o.first.cols+1)*this.itemSize[1],o.first.rows*this.itemSize[0]);else if(o.last-u<=t+1){var g=(o.first+1)*this.itemSize;l?c(g,0):c(0,g)}}}}else this.scrollToIndex(t,r)},getRenderedRange:function(){var t=function(c,d){return Math.floor(c/(d||c))},i=this.first,n=0;if(this.element){var r=this.isBoth(),s=this.isHorizontal(),l=this.element,a=l.scrollTop,h=l.scrollLeft;if(r)i={rows:t(a,this.itemSize[0]),cols:t(h,this.itemSize[1])},n={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols};else{var u=s?h:a;i=t(u,this.itemSize),n=i+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:i,last:n}}},calculateNumItems:function(){var t=this.isBoth(),i=this.isHorizontal(),n=this.itemSize,r=this.getContentPosition(),s=this.element?this.element.offsetWidth-r.left:0,l=this.element?this.element.offsetHeight-r.top:0,a=function(d,p){return Math.ceil(d/(p||d))},h=function(d){return Math.ceil(d/2)},u=t?{rows:a(l,n[0]),cols:a(s,n[1])}:a(i?s:l,n),o=this.d_numToleratedItems||(t?[h(u.rows),h(u.cols)]:h(u));return{numItemsInViewport:u,numToleratedItems:o}},calculateOptions:function(){var t=this,i=this.isBoth(),n=this.first,r=this.calculateNumItems(),s=r.numItemsInViewport,l=r.numToleratedItems,a=function(o,c,d){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.getLast(o+c+(o<d?2:3)*d,p)},h=i?{rows:a(n.rows,s.rows,l[0]),cols:a(n.cols,s.cols,l[1],!0)}:a(n,s,l);this.last=h,this.numItemsInViewport=s,this.d_numToleratedItems=l,this.$emit("update:numToleratedItems",this.d_numToleratedItems),this.showLoader&&(this.loaderArr=i?Array.from({length:s.rows}).map(function(){return Array.from({length:s.cols})}):Array.from({length:s})),this.lazy&&Promise.resolve().then(function(){var u;t.lazyLoadState={first:t.step?i?{rows:0,cols:n.cols}:0:n,last:Math.min(t.step?t.step:h,((u=t.items)===null||u===void 0?void 0:u.length)||0)},t.$emit("lazy-load",t.lazyLoadState)})},calculateAutoSize:function(){var t=this;this.autoSize&&!this.d_loading&&Promise.resolve().then(function(){if(t.content){var i=t.isBoth(),n=t.isHorizontal(),r=t.isVertical();t.content.style.minHeight=t.content.style.minWidth="auto",t.content.style.position="relative",t.element.style.contain="none";var s=[k(t.element),M(t.element)],l=s[0],a=s[1];(i||n)&&(t.element.style.width=l<t.defaultWidth?l+"px":t.scrollWidth||t.defaultWidth+"px"),(i||r)&&(t.element.style.height=a<t.defaultHeight?a+"px":t.scrollHeight||t.defaultHeight+"px"),t.content.style.minHeight=t.content.style.minWidth="",t.content.style.position="",t.element.style.contain=""}})},getLast:function(){var t,i,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0;return this.items?Math.min(r?((t=this.columns||this.items[0])===null||t===void 0?void 0:t.length)||0:((i=this.items)===null||i===void 0?void 0:i.length)||0,n):0},getContentPosition:function(){if(this.content){var t=getComputedStyle(this.content),i=parseFloat(t.paddingLeft)+Math.max(parseFloat(t.left)||0,0),n=parseFloat(t.paddingRight)+Math.max(parseFloat(t.right)||0,0),r=parseFloat(t.paddingTop)+Math.max(parseFloat(t.top)||0,0),s=parseFloat(t.paddingBottom)+Math.max(parseFloat(t.bottom)||0,0);return{left:i,right:n,top:r,bottom:s,x:i+n,y:r+s}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},setSize:function(){var t=this;if(this.element){var i=this.isBoth(),n=this.isHorizontal(),r=this.element.parentElement,s=this.scrollWidth||"".concat(this.element.offsetWidth||r.offsetWidth,"px"),l=this.scrollHeight||"".concat(this.element.offsetHeight||r.offsetHeight,"px"),a=function(u,o){return t.element.style[u]=o};i||n?(a("height",l),a("width",s)):a("height",l)}},setSpacerSize:function(){var t=this,i=this.items;if(i){var n=this.isBoth(),r=this.isHorizontal(),s=this.getContentPosition(),l=function(h,u,o){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return t.spacerStyle=_(_({},t.spacerStyle),Q({},"".concat(h),(u||[]).length*o+c+"px"))};n?(l("height",i,this.itemSize[0],s.y),l("width",this.columns||i[1],this.itemSize[1],s.x)):r?l("width",this.columns||i,this.itemSize,s.x):l("height",i,this.itemSize,s.y)}},setContentPosition:function(t){var i=this;if(this.content&&!this.appendOnly){var n=this.isBoth(),r=this.isHorizontal(),s=t?t.first:this.first,l=function(o,c){return o*c},a=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return i.contentStyle=_(_({},i.contentStyle),{transform:"translate3d(".concat(o,"px, ").concat(c,"px, 0)")})};if(n)a(l(s.cols,this.itemSize[1]),l(s.rows,this.itemSize[0]));else{var h=l(s,this.itemSize);r?a(h,0):a(0,h)}}},onScrollPositionChange:function(t){var i=this,n=t.target,r=this.isBoth(),s=this.isHorizontal(),l=this.getContentPosition(),a=function(f,w){return f?f>w?f-w:f:0},h=function(f,w){return Math.floor(f/(w||f))},u=function(f,w,N,E,C,T){return f<=C?C:T?N-E-C:w+C-1},o=function(f,w,N,E,C,T,F){return f<=T?0:Math.max(0,F?f<w?N:f-T:f>w?N:f-2*T)},c=function(f,w,N,E,C,T){var F=w+E+2*C;return f>=C&&(F+=C+1),i.getLast(F,T)},d=a(n.scrollTop,l.top),p=a(n.scrollLeft,l.left),v=r?{rows:0,cols:0}:0,g=this.last,y=!1,I=this.lastScrollPos;if(r){var z=this.lastScrollPos.top<=d,L=this.lastScrollPos.left<=p;if(!this.appendOnly||this.appendOnly&&(z||L)){var m={rows:h(d,this.itemSize[0]),cols:h(p,this.itemSize[1])},R={rows:u(m.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],z),cols:u(m.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],L)};v={rows:o(m.rows,R.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],z),cols:o(m.cols,R.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],L)},g={rows:c(m.rows,v.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(m.cols,v.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},y=v.rows!==this.first.rows||g.rows!==this.last.rows||v.cols!==this.first.cols||g.cols!==this.last.cols||this.isRangeChanged,I={top:d,left:p}}}else{var O=s?p:d,b=this.lastScrollPos<=O;if(!this.appendOnly||this.appendOnly&&b){var S=h(O,this.itemSize),H=u(S,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,b);v=o(S,H,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,b),g=c(S,v,this.last,this.numItemsInViewport,this.d_numToleratedItems),y=v!==this.first||g!==this.last||this.isRangeChanged,I=O}}return{first:v,last:g,isRangeChanged:y,scrollPos:I}},onScrollChange:function(t){var i=this.onScrollPositionChange(t),n=i.first,r=i.last,s=i.isRangeChanged,l=i.scrollPos;if(s){var a={first:n,last:r};if(this.setContentPosition(a),this.first=n,this.last=r,this.lastScrollPos=l,this.$emit("scroll-index-change",a),this.lazy&&this.isPageChanged(n)){var h,u,o={first:this.step?Math.min(this.getPageByFirst(n)*this.step,(((h=this.items)===null||h===void 0?void 0:h.length)||0)-this.step):n,last:Math.min(this.step?(this.getPageByFirst(n)+1)*this.step:r,((u=this.items)===null||u===void 0?void 0:u.length)||0)},c=this.lazyLoadState.first!==o.first||this.lazyLoadState.last!==o.last;c&&this.$emit("lazy-load",o),this.lazyLoadState=o}}},onScroll:function(t){var i=this;if(this.$emit("scroll",t),this.delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.isPageChanged()){if(!this.d_loading&&this.showLoader){var n=this.onScrollPositionChange(t),r=n.isRangeChanged,s=r||(this.step?this.isPageChanged():!1);s&&(this.d_loading=!0)}this.scrollTimeout=setTimeout(function(){i.onScrollChange(t),i.d_loading&&i.showLoader&&(!i.lazy||i.loading===void 0)&&(i.d_loading=!1,i.page=i.getPageByFirst())},this.delay)}}else this.onScrollChange(t)},onResize:function(){var t=this;this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){if(K(t.element)){var i=t.isBoth(),n=t.isVertical(),r=t.isHorizontal(),s=[k(t.element),M(t.element)],l=s[0],a=s[1],h=l!==t.defaultWidth,u=a!==t.defaultHeight,o=i?h||u:r?h:n?u:!1;o&&(t.d_numToleratedItems=t.numToleratedItems,t.defaultWidth=l,t.defaultHeight=a,t.defaultContentWidth=k(t.content),t.defaultContentHeight=M(t.content),t.init())}},this.resizeDelay)},bindResizeListener:function(){this.resizeListener||(this.resizeListener=this.onResize.bind(this),window.addEventListener("resize",this.resizeListener),window.addEventListener("orientationchange",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),window.removeEventListener("orientationchange",this.resizeListener),this.resizeListener=null)},getOptions:function(t){var i=(this.items||[]).length,n=this.isBoth()?this.first.rows+t:this.first+t;return{index:n,count:i,first:n===0,last:n===i-1,even:n%2===0,odd:n%2!==0}},getLoaderOptions:function(t,i){var n=this.loaderArr.length;return _({index:t,count:n,first:t===0,last:t===n-1,even:t%2===0,odd:t%2!==0},i)},getPageByFirst:function(t){return Math.floor(((t??this.first)+this.d_numToleratedItems*4)/(this.step||1))},isPageChanged:function(t){return this.step?this.page!==this.getPageByFirst(t??this.first):!0},setContentEl:function(t){this.content=t||this.content||Y(this.element,'[data-pc-section="content"]')},elementRef:function(t){this.element=t},contentRef:function(t){this.content=t}},computed:{containerClass:function(){return["p-virtualscroller",this.class,{"p-virtualscroller-inline":this.inline,"p-virtualscroller-both p-both-scroll":this.isBoth(),"p-virtualscroller-horizontal p-horizontal-scroll":this.isHorizontal()}]},contentClass:function(){return["p-virtualscroller-content",{"p-virtualscroller-loading":this.d_loading}]},loaderClass:function(){return["p-virtualscroller-loader",{"p-virtualscroller-loader-mask":!this.$slots.loader}]},loadedItems:function(){var t=this;return this.items&&!this.d_loading?this.isBoth()?this.items.slice(this.appendOnly?0:this.first.rows,this.last.rows).map(function(i){return t.columns?i:i.slice(t.appendOnly?0:t.first.cols,t.last.cols)}):this.isHorizontal()&&this.columns?this.items:this.items.slice(this.appendOnly?0:this.first,this.last):[]},loadedRows:function(){return this.d_loading?this.loaderDisabled?this.loaderArr:[]:this.loadedItems},loadedColumns:function(){if(this.columns){var t=this.isBoth(),i=this.isHorizontal();if(t||i)return this.d_loading&&this.loaderDisabled?t?this.loaderArr[0]:this.loaderArr:this.columns.slice(t?this.first.cols:this.first,t?this.last.cols:this.last)}return this.columns}},components:{SpinnerIcon:x}},gt=["tabindex"];function pt(e,t,i,n,r,s){var l=et("SpinnerIcon");return e.disabled?(P(),B(D,{key:1},[W(e.$slots,"default"),W(e.$slots,"content",{items:e.items,rows:e.items,columns:s.loadedColumns})],64)):(P(),B("div",V({key:0,ref:s.elementRef,class:s.containerClass,tabindex:e.tabindex,style:e.style,onScroll:t[0]||(t[0]=function(){return s.onScroll&&s.onScroll.apply(s,arguments)})},e.ptmi("root")),[W(e.$slots,"content",{styleClass:s.contentClass,items:s.loadedItems,getItemOptions:s.getOptions,loading:r.d_loading,getLoaderOptions:s.getLoaderOptions,itemSize:e.itemSize,rows:s.loadedRows,columns:s.loadedColumns,contentRef:s.contentRef,spacerStyle:r.spacerStyle,contentStyle:r.contentStyle,vertical:s.isVertical(),horizontal:s.isHorizontal(),both:s.isBoth()},function(){return[Z("div",V({ref:s.contentRef,class:s.contentClass,style:r.contentStyle},e.ptm("content")),[(P(!0),B(D,null,q(s.loadedItems,function(a,h){return W(e.$slots,"item",{key:h,item:a,options:s.getOptions(h)})}),128))],16)]}),e.showSpacer?(P(),B("div",V({key:0,class:"p-virtualscroller-spacer",style:r.spacerStyle},e.ptm("spacer")),null,16)):$("",!0),!e.loaderDisabled&&e.showLoader&&r.d_loading?(P(),B("div",V({key:1,class:s.loaderClass},e.ptm("loader")),[e.$slots&&e.$slots.loader?(P(!0),B(D,{key:0},q(r.loaderArr,function(a,h){return W(e.$slots,"loader",{key:h,options:s.getLoaderOptions(h,s.isBoth()&&{numCols:e.d_numItemsInViewport.cols})})}),128)):$("",!0),W(e.$slots,"loadingicon",{},function(){return[it(l,V({spin:"",class:"p-virtualscroller-loading-icon"},e.ptm("loadingIcon")),null,16)]})],16)):$("",!0)],16,gt))}vt.render=pt;export{lt as a,st as b,vt as s};
