1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`cbb69d0e-3c16-4a12-a616-4ed5d490671f`,e._sentryDebugIdIdentifier=`sentry-dbid-cbb69d0e-3c16-4a12-a616-4ed5d490671f`)}catch{}})();import{G as e,H as t,Jt as n,K as r,S as i,Yt as a,at as o,f as s,h as c,i as l,m as u,ot as d,p as f,q as p,x as m}from"./CdYnTnNr.js";import{l as h,s as g}from"./4vY_npPg.js";import{t as _}from"./BuuqxS5P.js";import{t as v}from"./C9TCX8SC2.js";var y={name:`ExpandOnOverflowHiddenContext`,mixins:[v],props:{nameKey:{required:!1,type:String,default:`name`},hiddenRecords:{required:!0,type:Array}}},b={class:`context__menu`};function x(n,r,i,u,d,m){let h=p(`Context`);return t(),f(h,{ref:`context`,"overflow-scroll":!0,"max-height-if-outside-viewport":!0},{default:o(()=>[s(`ul`,b,[(t(!0),c(l,null,e(i.hiddenRecords,e=>(t(),c(`li`,{key:`hidden-record`+e.id,class:`expand-on-overflow-hidden-context__dropdown-item`},a(e[i.nameKey]),1))),128))])]),_:1},512)}var S={name:`ExpandOnOverflowList`,components:{ExpandOnOverflowHiddenContext:_(y,[[`render`,x]])},props:{row:{required:!0,type:Object},column:{required:!0,type:Object},nameKey:{required:!1,type:String,default:`name`}},data(){return{overflowing:!1,numHiddenRecords:0,renderContext:!1,expandOrder:-1}},computed:{noRecords(){return this.records.length===0},hiddenRecords(){return this.records.slice(this.records.length-this.numHiddenRecords)},records(){return this.row[this.column.key]},getId(){return this.row.id}},mounted(){this.$el.resizeObserver=new ResizeObserver(this.recalculateHiddenRecords),this.$el.resizeObserver.observe(this.$el)},beforeUnmount(){this.$el.resizeObserver.disconnect()},created(){this.recalculateHiddenRecords()},methods:{showHiddenContext(e){this.$refs.hiddenContext.show(e.currentTarget,`bottom`,`left`,4)},recalculateHiddenRecords(){this.$nextTick(()=>{let e=0,t=this.records.length;if(!this.$refs.empty)return;let n=this.$refs.empty.getBoundingClientRect().top;if(this.$refs.records)for(let r=0;r<this.$refs.records.length;r++)if(this.$refs.records[r].getBoundingClientRect().top>n){e=r-1;break}else e=r,t--;this.expandOrder=e,this.numHiddenRecords=t,this.overflowing=t!==0,this.overflowing&&this.$nextTick(()=>{let e=this.$refs.empty.getBoundingClientRect().top;this.$refs.expand.getBoundingClientRect().top>e&&(this.expandOrder--,this.numHiddenRecords++)})})}}},C={class:`expand-overflow-list`},w={class:`expand-overflow-list__container`},T={key:0},E={ref:`empty`,class:`expand-overflow-list__empty-item`};function D(o,f,_,v,y,b){let x=p(`ExpandOnOverflowHiddenContext`);return t(),c(`div`,C,[s(`div`,w,[b.noRecords?(t(),c(`span`,T,[r(o.$slots,`no-records`)])):u(``,!0),s(`span`,E,null,512),(t(!0),c(l,null,e(b.records,(e,i)=>(t(),c(`span`,{ref_for:!0,ref:`records`,key:`overflow-row-record`+e.id+`-`+i,class:`expand-overflow-list__item`,style:n({order:i})},[m(a(e[_.nameKey])+` `,1),r(o.$slots,`icon`,{record:e})],4))),128)),d(s(`a`,{ref:`expand`,class:`expand-overflow-list__expand`,style:n({order:y.expandOrder}),onClick:f[0]||=h((...e)=>b.showHiddenContext&&b.showHiddenContext(...e),[`prevent`])},`+`+a(y.numHiddenRecords),5),[[g,y.overflowing]]),i(x,{ref:`hiddenContext`,"name-key":_.nameKey,"hidden-records":b.hiddenRecords},null,8,[`name-key`,`hidden-records`])])])}var O=_(S,[[`render`,D]]);export{O as t}; 2//# sourceMappingURL=DE-u8Rr9.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.