@arbocollab/arbo-web-scene 0.26.9-alpha.21 → 0.26.9-alpha.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.es.js +2 -2
- package/package.json +1 -1
- package/umd/index.umd.js +2 -2
package/es/index.es.js
CHANGED
|
@@ -11928,7 +11928,7 @@ const fYt = (e, t) => {
|
|
|
11928
11928
|
(s = (o = e == null ? void 0 : e.config) == null ? void 0 : o.globalProperties) == null || s.setStoreValue("scene", "setCurrentSceneTabId", a);
|
|
11929
11929
|
}
|
|
11930
11930
|
return e.config.globalProperties.setStoreValue = r, e.config.globalProperties.handleSetTab = i, { handleSetTab: i };
|
|
11931
|
-
}, hYt = "0.26.9-alpha.
|
|
11931
|
+
}, hYt = "0.26.9-alpha.22", pYt = {
|
|
11932
11932
|
"@arbocollab/arbo-chart-component": "1.0.1",
|
|
11933
11933
|
"@arbocollab/arbo-comment-utils": "1.0.1",
|
|
11934
11934
|
"@arbocollab/arbo-common-utils": "npm:@arbocollab/arbo-common-utils@1.0.14",
|
|
@@ -223742,7 +223742,7 @@ const fKr = /* @__PURE__ */ gi(cKr, [["render", dKr], ["__scopeId", "data-v-7d0c
|
|
|
223742
223742
|
icon: void 0,
|
|
223743
223743
|
title: "Activity",
|
|
223744
223744
|
backgroundColor: "#ffffff",
|
|
223745
|
-
isLoading:
|
|
223745
|
+
isLoading: f.value,
|
|
223746
223746
|
height: "260px"
|
|
223747
223747
|
})), b = Hl(), { currentSceneTabId: w } = _r(b), C = { vTooltip: n, dashboardStore: r, activities: i, sceneActivities: a, activityCount: o, refreshDashboard: s, checkIsMe: l, avatarProps: u, convertText: c, formatField: d, displayActivity: h, refreshing: f, handleRefresh: m, mediumCardConfig: g, sceneStore: b, currentSceneTabId: w, toActivityTab: () => {
|
|
223748
223748
|
w.value = "log";
|
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -37,7 +37,7 @@ Only state can be modified.`);o[0]="$state",WR=!1,r.set(a,o,r.state.value),WR=!0
|
|
|
37
37
|
Found in store "${T.$id}".`),m&&a&&n.hydrate&&n.hydrate(T.$state,m),u=!0,c=!0,T}/*! #__NO_SIDE_EFFECTS__ */function t1(e,t,n){let r;const i=typeof t=="function";r=i?n:t;function a(o,s){const l=X_();if(o=(We.env.NODE_ENV==="test"&&k6&&k6._testing?null:o)||(l?li(L3e,null):null),o&&D6(o),We.env.NODE_ENV!=="production"&&!k6)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
38
38
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
39
39
|
This will fail in production.`);o=k6,o._s.has(e)||(i?qce(e,t,r,o):t4e(e,r,o),We.env.NODE_ENV!=="production"&&(a._pinia=o));const u=o._s.get(e);if(We.env.NODE_ENV!=="production"&&s){const c="__hot:"+e,d=i?qce(c,t,r,o,!0):t4e(c,Ky({},r),o,!0);s._hotUpdate(d),delete o.state.value[c],o._s.delete(c)}if(We.env.NODE_ENV!=="production"&&dT){const c=Ni();if(c&&c.proxy&&!s){const d=c.proxy,h="_pStores"in d?d._pStores:d._pStores={};h[e]=u}}return u}return a.$id=e,a}function _r(e){const t=vi(e),n={};for(const r in t){const i=t[r];i.effect?n[r]=W({get:()=>e[r],set(a){e[r]=a}}):(jr(i)||Nu(i))&&(n[r]=Xo(e,r))}return n}function c9t(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):-1}let EG;function Gce(){Gce.init||(Gce.init=!0,EG=c9t()!==-1)}var xG={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Gce(),kt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",EG&&this.$el.appendChild(e),e.data="about:blank",EG||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!EG&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const d9t=j8t();V8t("data-v-b329ee4c");const f9t={class:"resize-observer",tabindex:"-1"};U8t();const h9t=d9t((e,t,n,r,i,a)=>(L(),Ke("div",f9t)));xG.render=h9t,xG.__scopeId="data-v-b329ee4c",xG.__file="src/components/ResizeObserver.vue";function TG(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?TG=function(t){return typeof t}:TG=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},TG(e)}function p9t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m9t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g9t(e,t,n){return t&&m9t(e.prototype,t),e}function n4e(e){return v9t(e)||y9t(e)||b9t(e)||w9t()}function v9t(e){if(Array.isArray(e))return Kce(e)}function y9t(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function b9t(e,t){if(e){if(typeof e=="string")return Kce(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kce(e,t)}}function Kce(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w9t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
40
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _9t(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function C9t(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a,o=function(l){for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];if(a=c,!(r&&l===i)){var h=n.leading;typeof h=="function"&&(h=h(l,i)),(!r||l!==i)&&h&&e.apply(void 0,[l].concat(n4e(a))),i=l,clearTimeout(r),r=setTimeout(function(){e.apply(void 0,[l].concat(n4e(a))),r=0},t)}};return o._clear=function(){clearTimeout(r),r=null},o}function r4e(e,t){if(e===t)return!0;if(TG(e)==="object"){for(var n in e)if(!r4e(e[n],t[n]))return!1;return!0}return!1}var S9t=function(){function e(t,n,r){p9t(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,r)}return g9t(e,[{key:"createObserver",value:function(n,r){var i=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=_9t(n),this.callback=function(s,l){i.options.callback(s,l),s&&i.options.once&&(i.frozen=!0,i.destroyObserver())},this.callback&&this.options.throttle){var a=this.options.throttleOptions||{},o=a.leading;this.callback=C9t(this.callback,this.options.throttle,{leading:function(l){return o==="both"||o==="visible"&&l||o==="hidden"&&!l}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(s){var l=s[0];if(s.length>1){var u=s.find(function(d){return d.isIntersecting});u&&(l=u)}if(i.callback){var c=l.isIntersecting&&l.intersectionRatio>=i.threshold;if(c===i.oldResult)return;i.oldResult=c,i.callback(c,l)}},this.options.intersection),kt(function(){i.observer&&i.observer.observe(i.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function i4e(e,t,n){var r=t.value;if(r)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var i=new S9t(e,r,n);e._vue_visibilityState=i}}function E9t(e,t,n){var r=t.value,i=t.oldValue;if(!r4e(r,i)){var a=e._vue_visibilityState;if(!r){a4e(e);return}a?a.createObserver(r,n):i4e(e,{value:r},n)}}function a4e(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var x9t={beforeMount:i4e,updated:E9t,unmounted:a4e};function T9t(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(r){r(n)}),(e.get("*")||[]).slice().map(function(r){r(t,n)})}}}var o4e={itemsLimit:1e3},k9t=/(auto|scroll)/;function s4e(e,t){return e.parentNode===null?t:s4e(e.parentNode,t.concat([e]))}var Yce=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},D9t=function(t){return Yce(t,"overflow")+Yce(t,"overflow-y")+Yce(t,"overflow-x")},A9t=function(t){return k9t.test(D9t(t))};function l4e(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=s4e(e.parentNode,[]),n=0;n<t.length;n+=1)if(A9t(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function Zce(e){"@babel/helpers - typeof";return Zce=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},Zce(e)}var u4e={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function c4e(){return this.items.length&&Zce(this.items[0])!=="object"}var Xce=!1;if(typeof window<"u"){Xce=!1;try{var O9t=Object.defineProperty({},"passive",{get:function(){Xce=!0}});window.addEventListener("test",null,O9t)}catch{}}let I9t=0;var A6={name:"RecycleScroller",components:{ResizeObserver:xG},directives:{ObserveVisibility:x9t},props:{...u4e,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,r=this.minItemSize;let i=1e4,a=0,o;for(let s=0,l=t.length;s<l;s++)o=t[s][n]||r,o<i&&(i=o),a+=o,e[s]={accumulator:a,size:o};return this.$_computedMinItemSize=i,e}return[]},simpleArray:c4e,itemIndexByKey(){const{keyField:e,items:t}=this,n={};for(let r=0,i=t.length;r<i;r++)n[t[r][e]]=r;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,r,i){const a=Hs({id:I9t++,index:t,used:!0,key:r,type:i}),o=JMe({item:n,position:0,nr:a});return e.push(o),o},unuseView(e,t=!1){const n=this.$_unusedViews,r=e.nr.type;let i=n.get(r);i||(i=[],n.set(r,i)),i.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,r=this.gridItems||1,i=this.itemSecondarySize||n,a=this.$_computedMinItemSize,o=this.typeField,s=this.simpleArray?null:this.keyField,l=this.items,u=l.length,c=this.sizes,d=this.$_views,h=this.$_unusedViews,f=this.pool,m=this.itemIndexByKey;let g,b,w,_,C;if(!u)g=b=_=C=w=0;else if(this.$_prerender)g=_=0,b=C=Math.min(this.prerender,l.length),w=null;else{const D=this.getScroll();if(t){let R=D.start-this.$_lastUpdateScrollPosition;if(R<0&&(R=-R),n===null&&R<a||R<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=D.start;const A=this.buffer;D.start-=A,D.end+=A;let B=0;if(this.$refs.before&&(B=this.$refs.before.scrollHeight,D.start-=B),this.$refs.after){const R=this.$refs.after.scrollHeight;D.end+=R}if(n===null){let R,$=0,N=u-1,M=~~(u/2),H;do H=M,R=c[M].accumulator,R<D.start?$=M:M<u-1&&c[M+1].accumulator>D.start&&(N=M),M=~~(($+N)/2);while(M!==H);for(M<0&&(M=0),g=M,w=c[u-1].accumulator,b=M;b<u&&c[b].accumulator<D.end;b++);for(b===-1?b=l.length-1:(b++,b>u&&(b=u)),_=g;_<u&&B+c[_].accumulator<D.start;_++);for(C=_;C<u&&B+c[C].accumulator<D.end;C++);}else{g=~~(D.start/n*r);const R=g%r;g-=R,b=Math.ceil(D.end/n*r),_=Math.max(0,Math.floor((D.start-B)/n*r)),C=Math.floor((D.end-B)/n*r),g<0&&(g=0),b>u&&(b=u),_<0&&(_=0),C>u&&(C=u),w=Math.ceil(u/r)*n}}b-g>o4e.itemsLimit&&this.itemsLimitError(),this.totalSize=w;let v;const x=g<=this.$_endIndex&&b>=this.$_startIndex;if(x)for(let D=0,A=f.length;D<A;D++)v=f[D],v.nr.used&&(e&&(v.nr.index=m[v.item[s]]),(v.nr.index==null||v.nr.index<g||v.nr.index>=b)&&this.unuseView(v));const E=x?null:new Map;let T,O,k;for(let D=g;D<b;D++){T=l[D];const A=s?T[s]:T;if(A==null)throw new Error(`Key is ${A} on item (keyField is '${s}')`);if(v=d.get(A),!n&&!c[D].size){v&&this.unuseView(v);continue}O=T[o];let B=h.get(O),R=!1;if(!v)x?B&&B.length?v=B.pop():v=this.addView(f,D,T,A,O):(k=E.get(O)||0,(!B||k>=B.length)&&(v=this.addView(f,D,T,A,O),this.unuseView(v,!0),B=h.get(O)),v=B[k],E.set(O,k+1)),d.delete(v.nr.key),v.nr.used=!0,v.nr.index=D,v.nr.key=A,v.nr.type=O,d.set(A,v),R=!0;else if(!v.nr.used&&(v.nr.used=!0,R=!0,B)){const $=B.indexOf(v);$!==-1&&B.splice($,1)}v.item=T,R&&(D===l.length-1&&this.$emit("scroll-end"),D===0&&this.$emit("scroll-start")),n===null?(v.position=c[D-1].accumulator,v.offset=0):(v.position=Math.floor(D/r)*n,v.offset=D%r*i)}return this.$_startIndex=g,this.$_endIndex=b,this.emitUpdate&&this.$emit("update",g,b,_,C),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:x}},getListenerTarget(){let e=l4e(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let r;if(this.pageMode){const i=e.getBoundingClientRect(),a=n?i.height:i.width;let o=-(n?i.top:i.left),s=n?window.innerHeight:window.innerWidth;o<0&&(s+=o,o=0),o+s>a&&(s=a-o),r={start:o,end:o+s}}else n?r={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:r={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return r},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Xce?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,r,i;if(this.pageMode){const a=l4e(this.$el),o=a.tagName==="HTML"?0:a[t.scroll],s=a.getBoundingClientRect(),u=this.$el.getBoundingClientRect()[t.start]-s[t.start];n=a,r=t.scroll,i=e+o+u}else n=this.$el,r=t.scroll,i=e;n[r]=i},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const $9t={key:0,ref:"before",class:"vue-recycle-scroller__slot"},R9t={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function P9t(e,t,n,r,i,a){const o=ei("ResizeObserver"),s=Va("observe-visibility");return ct((L(),te("div",{class:ve(["vue-recycle-scroller",{ready:i.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...l)=>a.handleScroll&&a.handleScroll(...l))},[e.$slots.before?(L(),te("div",$9t,[ot(e.$slots,"before")],512)):Be("v-if",!0),(L(),Ke(Lf(n.listTag),{ref:"wrapper",style:tn({[e.direction==="vertical"?"minHeight":"minWidth"]:i.totalSize+"px"}),class:ve(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:Ie(()=>[(L(!0),te(Vt,null,pn(i.pool,l=>(L(),Ke(Lf(n.itemTag),Qt({key:l.nr.id,style:i.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${l.position}px) translate${e.direction==="vertical"?"X":"Y"}(${l.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&i.hoverKey===l.nr.key}]]},J8t(n.skipHover?{}:{mouseenter:()=>{i.hoverKey=l.nr.key},mouseleave:()=>{i.hoverKey=null}})),{default:Ie(()=>[ot(e.$slots,"default",{item:l.item,index:l.nr.index,active:l.nr.used})]),_:2},1040,["style","class"]))),128)),ot(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(L(),te("div",R9t,[ot(e.$slots,"after")],512)):Be("v-if",!0),Se(o,{onNotify:a.handleResize},null,8,["onNotify"])],34)),[[s,a.handleVisibilityChange]])}A6.render=P9t,A6.__file="src/components/RecycleScroller.vue";var kG={name:"DynamicScroller",components:{RecycleScroller:A6},provide(){return typeof ResizeObserver<"u"&&(this.$_resizeObserver=new ResizeObserver(e=>{requestAnimationFrame(()=>{if(Array.isArray(e)){for(const t of e)if(t.target&&t.target.$_vs_onResize){let n,r;if(t.borderBoxSize){const i=t.borderBoxSize[0];n=i.inlineSize,r=i.blockSize}else n=t.contentRect.width,r=t.contentRect.height;t.target.$_vs_onResize(t.target.$_vs_id,n,r)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...u4e,minItemSize:{type:[Number,String],required:!0}},emits:["resize","visible"],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:c4e,itemsWithSize(){const e=[],{items:t,keyField:n,simpleArray:r}=this,i=this.vscrollData.sizes,a=t.length;for(let o=0;o<a;o++){const s=t[o],l=r?o:s[n];let u=i[l];typeof u>"u"&&!this.$_undefinedMap[l]&&(u=0),e.push({item:s,id:l,size:u})}return e}},watch:{items(){this.forceUpdate()},simpleArray:{handler(e){this.vscrollData.simpleArray=e},immediate:!0},direction(e){this.forceUpdate(!0)},itemsWithSize(e,t){const n=this.$el.scrollTop;let r=0,i=0;const a=Math.min(e.length,t.length);for(let s=0;s<a&&!(r>=n);s++)r+=t[s].size||this.minItemSize,i+=e[s].size||this.minItemSize;const o=i-r;o!==0&&(this.$el.scrollTop+=o)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={},this.$_events=T9t()},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},unmounted(){this.$_events.all.clear()},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit("resize")},onScrollerVisible(){this.$_events.emit("vscroll:update",{force:!1}),this.$emit("visible")},forceUpdate(e=!1){(e||this.simpleArray)&&(this.vscrollData.sizes={}),this.$_events.emit("vscroll:update",{force:!0})},scrollToItem(e){const t=this.$refs.scroller;t&&t.scrollToItem(e)},getItemSize(e,t=void 0){const n=this.simpleArray?t??this.items.indexOf(e):e[this.keyField];return this.vscrollData.sizes[n]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;const e=this.$el;this.$nextTick(()=>{e.scrollTop=e.scrollHeight+5e3;const t=()=>{e.scrollTop=e.scrollHeight+5e3,requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(t)})};requestAnimationFrame(t)})}}};function M9t(e,t,n,r,i,a){const o=ei("RecycleScroller");return L(),Ke(o,Qt({ref:"scroller",items:a.itemsWithSize,"min-item-size":n.minItemSize,direction:e.direction,"key-field":"id","list-tag":e.listTag,"item-tag":e.itemTag},e.$attrs,{onResize:a.onScrollerResize,onVisible:a.onScrollerVisible}),{default:Ie(({item:s,index:l,active:u})=>[ot(e.$slots,"default",Co(Uo({item:s.item,index:l,active:u,itemWithSize:s})))]),before:Ie(()=>[ot(e.$slots,"before")]),after:Ie(()=>[ot(e.$slots,"after")]),empty:Ie(()=>[ot(e.$slots,"empty")]),_:3},16,["items","min-item-size","direction","list-tag","item-tag","onResize","onVisible"])}kG.render=M9t,kG.__file="src/components/DynamicScroller.vue";var Jce={name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},emits:["resize"],computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.vscrollData.keyField in this.item)return this.item[this.vscrollData.keyField];throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id(e,t){if(this.$el.$_vs_id=this.id,this.size||this.onDataUpdate(),this.$_sizeObserved){const n=this.vscrollData.sizes[t],r=this.vscrollData.sizes[e];n!=null&&n!==r&&this.applySize(n)}},finalActive(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(const e in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[e],this.onDataUpdate);this.vscrollParent.$_events.on("vscroll:update",this.onVscrollUpdate)}},mounted(){this.finalActive&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off("vscroll:update",this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch("item",()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate({force:e}){!this.finalActive&&e&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||e||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(e){this.$nextTick(()=>{if(this.id===e){const t=this.$el.offsetWidth,n=this.$el.offsetHeight;this.applyWidthHeight(t,n)}this.$_pendingSizeUpdate=null})},applyWidthHeight(e,t){const n=~~(this.vscrollParent.direction==="vertical"?t:e);n&&this.size!==n&&this.applySize(n)},applySize(e){this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=e,this.emitResize&&this.$emit("resize",this.id)},observeSize(){this.vscrollResizeObserver&&(this.$_sizeObserved||(this.vscrollResizeObserver.observe(this.$el),this.$el.$_vs_id=this.id,this.$el.$_vs_onResize=this.onResize,this.$_sizeObserved=!0))},unobserveSize(){this.vscrollResizeObserver&&this.$_sizeObserved&&(this.vscrollResizeObserver.unobserve(this.$el),this.$el.$_vs_onResize=void 0,this.$_sizeObserved=!1)},onResize(e,t,n){this.id===e&&this.applyWidthHeight(t,n)}},render(){return ll(this.tag,this.$slots.default())}};Jce.__file="src/components/DynamicScrollerItem.vue";function N9t(e,t){e.component("".concat(t,"recycle-scroller"),A6),e.component("".concat(t,"RecycleScroller"),A6),e.component("".concat(t,"dynamic-scroller"),kG),e.component("".concat(t,"DynamicScroller"),kG),e.component("".concat(t,"dynamic-scroller-item"),Jce),e.component("".concat(t,"DynamicScrollerItem"),Jce)}var F9t={version:"2.0.0-beta.8",install:function(t,n){var r=Object.assign({},{installComponents:!0,componentsPrefix:""},n);for(var i in r)typeof r[i]<"u"&&(o4e[i]=r[i]);r.installComponents&&N9t(t,r.componentsPrefix)}};const L9t=(e,t)=>{const n=a=>t._s.get(a),r=(a,o,s)=>{const l=n(a);return l&&o in l?(l[o](s),!0):(console.warn(`[initWebScene] Store "${a}" or dispactcher "${o}" not found`),!1)};function i(a){var o,s;(s=(o=e==null?void 0:e.config)==null?void 0:o.globalProperties)==null||s.setStoreValue("scene","setCurrentSceneTabId",a)}return e.config.globalProperties.setStoreValue=r,e.config.globalProperties.handleSetTab=i,{handleSetTab:i}},B9t="0.26.9-alpha.21",V9t={"@arbocollab/arbo-chart-component":"1.0.1","@arbocollab/arbo-comment-utils":"1.0.1","@arbocollab/arbo-common-utils":"npm:@arbocollab/arbo-common-utils@1.0.14","@arbocollab/arbo-media-player-component":"0.0.38","@arbocollab/arbo-table-component":"1.0.1","@arbocollab/arbo-ui-components":"npm:@arbocollab/arbo-ui-components-beta@0.0.378-alpha.41","@arbocollab/arbo-calendar-component":"0.0.51","@arbocollab/arbo-metric-table":"npm:@arbocollab/arbo-metric-table@0.0.24","@arbocollab/ag-grid-ui-components":"0.0.53","@vueuse/core":"^10.11.1","@ctrl/tinycolor":"^4.2.0",axios:"^1.7.2","date-fns":"^4.1.0","date-fns-tz":"^3.2.0",dayjs:"^1.11.11",dexie:"4.0.10","js-cookie":"^3.0.5",pinia:"^3.0.3","prettier-plugin-stylus":"^0.1.0","sanitize-html":"^2.15.0","vite-bundle-visualizer":"^1.2.1","vite-plugin-html":"^3.2.2",vue:"^3.5.18","vue-draggable-next":"^2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.5.1","vue-virtual-scroller":"^2.0.0-beta.8"};var ji=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function O6(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function U9t(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var d4e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ji,function(){/*! *****************************************************************************
|
|
40
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _9t(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function C9t(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a,o=function(l){for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];if(a=c,!(r&&l===i)){var h=n.leading;typeof h=="function"&&(h=h(l,i)),(!r||l!==i)&&h&&e.apply(void 0,[l].concat(n4e(a))),i=l,clearTimeout(r),r=setTimeout(function(){e.apply(void 0,[l].concat(n4e(a))),r=0},t)}};return o._clear=function(){clearTimeout(r),r=null},o}function r4e(e,t){if(e===t)return!0;if(TG(e)==="object"){for(var n in e)if(!r4e(e[n],t[n]))return!1;return!0}return!1}var S9t=function(){function e(t,n,r){p9t(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,r)}return g9t(e,[{key:"createObserver",value:function(n,r){var i=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=_9t(n),this.callback=function(s,l){i.options.callback(s,l),s&&i.options.once&&(i.frozen=!0,i.destroyObserver())},this.callback&&this.options.throttle){var a=this.options.throttleOptions||{},o=a.leading;this.callback=C9t(this.callback,this.options.throttle,{leading:function(l){return o==="both"||o==="visible"&&l||o==="hidden"&&!l}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(s){var l=s[0];if(s.length>1){var u=s.find(function(d){return d.isIntersecting});u&&(l=u)}if(i.callback){var c=l.isIntersecting&&l.intersectionRatio>=i.threshold;if(c===i.oldResult)return;i.oldResult=c,i.callback(c,l)}},this.options.intersection),kt(function(){i.observer&&i.observer.observe(i.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function i4e(e,t,n){var r=t.value;if(r)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var i=new S9t(e,r,n);e._vue_visibilityState=i}}function E9t(e,t,n){var r=t.value,i=t.oldValue;if(!r4e(r,i)){var a=e._vue_visibilityState;if(!r){a4e(e);return}a?a.createObserver(r,n):i4e(e,{value:r},n)}}function a4e(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var x9t={beforeMount:i4e,updated:E9t,unmounted:a4e};function T9t(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(r){r(n)}),(e.get("*")||[]).slice().map(function(r){r(t,n)})}}}var o4e={itemsLimit:1e3},k9t=/(auto|scroll)/;function s4e(e,t){return e.parentNode===null?t:s4e(e.parentNode,t.concat([e]))}var Yce=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},D9t=function(t){return Yce(t,"overflow")+Yce(t,"overflow-y")+Yce(t,"overflow-x")},A9t=function(t){return k9t.test(D9t(t))};function l4e(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=s4e(e.parentNode,[]),n=0;n<t.length;n+=1)if(A9t(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function Zce(e){"@babel/helpers - typeof";return Zce=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},Zce(e)}var u4e={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function c4e(){return this.items.length&&Zce(this.items[0])!=="object"}var Xce=!1;if(typeof window<"u"){Xce=!1;try{var O9t=Object.defineProperty({},"passive",{get:function(){Xce=!0}});window.addEventListener("test",null,O9t)}catch{}}let I9t=0;var A6={name:"RecycleScroller",components:{ResizeObserver:xG},directives:{ObserveVisibility:x9t},props:{...u4e,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,r=this.minItemSize;let i=1e4,a=0,o;for(let s=0,l=t.length;s<l;s++)o=t[s][n]||r,o<i&&(i=o),a+=o,e[s]={accumulator:a,size:o};return this.$_computedMinItemSize=i,e}return[]},simpleArray:c4e,itemIndexByKey(){const{keyField:e,items:t}=this,n={};for(let r=0,i=t.length;r<i;r++)n[t[r][e]]=r;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,r,i){const a=Hs({id:I9t++,index:t,used:!0,key:r,type:i}),o=JMe({item:n,position:0,nr:a});return e.push(o),o},unuseView(e,t=!1){const n=this.$_unusedViews,r=e.nr.type;let i=n.get(r);i||(i=[],n.set(r,i)),i.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,r=this.gridItems||1,i=this.itemSecondarySize||n,a=this.$_computedMinItemSize,o=this.typeField,s=this.simpleArray?null:this.keyField,l=this.items,u=l.length,c=this.sizes,d=this.$_views,h=this.$_unusedViews,f=this.pool,m=this.itemIndexByKey;let g,b,w,_,C;if(!u)g=b=_=C=w=0;else if(this.$_prerender)g=_=0,b=C=Math.min(this.prerender,l.length),w=null;else{const D=this.getScroll();if(t){let R=D.start-this.$_lastUpdateScrollPosition;if(R<0&&(R=-R),n===null&&R<a||R<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=D.start;const A=this.buffer;D.start-=A,D.end+=A;let B=0;if(this.$refs.before&&(B=this.$refs.before.scrollHeight,D.start-=B),this.$refs.after){const R=this.$refs.after.scrollHeight;D.end+=R}if(n===null){let R,$=0,N=u-1,M=~~(u/2),H;do H=M,R=c[M].accumulator,R<D.start?$=M:M<u-1&&c[M+1].accumulator>D.start&&(N=M),M=~~(($+N)/2);while(M!==H);for(M<0&&(M=0),g=M,w=c[u-1].accumulator,b=M;b<u&&c[b].accumulator<D.end;b++);for(b===-1?b=l.length-1:(b++,b>u&&(b=u)),_=g;_<u&&B+c[_].accumulator<D.start;_++);for(C=_;C<u&&B+c[C].accumulator<D.end;C++);}else{g=~~(D.start/n*r);const R=g%r;g-=R,b=Math.ceil(D.end/n*r),_=Math.max(0,Math.floor((D.start-B)/n*r)),C=Math.floor((D.end-B)/n*r),g<0&&(g=0),b>u&&(b=u),_<0&&(_=0),C>u&&(C=u),w=Math.ceil(u/r)*n}}b-g>o4e.itemsLimit&&this.itemsLimitError(),this.totalSize=w;let v;const x=g<=this.$_endIndex&&b>=this.$_startIndex;if(x)for(let D=0,A=f.length;D<A;D++)v=f[D],v.nr.used&&(e&&(v.nr.index=m[v.item[s]]),(v.nr.index==null||v.nr.index<g||v.nr.index>=b)&&this.unuseView(v));const E=x?null:new Map;let T,O,k;for(let D=g;D<b;D++){T=l[D];const A=s?T[s]:T;if(A==null)throw new Error(`Key is ${A} on item (keyField is '${s}')`);if(v=d.get(A),!n&&!c[D].size){v&&this.unuseView(v);continue}O=T[o];let B=h.get(O),R=!1;if(!v)x?B&&B.length?v=B.pop():v=this.addView(f,D,T,A,O):(k=E.get(O)||0,(!B||k>=B.length)&&(v=this.addView(f,D,T,A,O),this.unuseView(v,!0),B=h.get(O)),v=B[k],E.set(O,k+1)),d.delete(v.nr.key),v.nr.used=!0,v.nr.index=D,v.nr.key=A,v.nr.type=O,d.set(A,v),R=!0;else if(!v.nr.used&&(v.nr.used=!0,R=!0,B)){const $=B.indexOf(v);$!==-1&&B.splice($,1)}v.item=T,R&&(D===l.length-1&&this.$emit("scroll-end"),D===0&&this.$emit("scroll-start")),n===null?(v.position=c[D-1].accumulator,v.offset=0):(v.position=Math.floor(D/r)*n,v.offset=D%r*i)}return this.$_startIndex=g,this.$_endIndex=b,this.emitUpdate&&this.$emit("update",g,b,_,C),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:x}},getListenerTarget(){let e=l4e(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let r;if(this.pageMode){const i=e.getBoundingClientRect(),a=n?i.height:i.width;let o=-(n?i.top:i.left),s=n?window.innerHeight:window.innerWidth;o<0&&(s+=o,o=0),o+s>a&&(s=a-o),r={start:o,end:o+s}}else n?r={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:r={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return r},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Xce?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,r,i;if(this.pageMode){const a=l4e(this.$el),o=a.tagName==="HTML"?0:a[t.scroll],s=a.getBoundingClientRect(),u=this.$el.getBoundingClientRect()[t.start]-s[t.start];n=a,r=t.scroll,i=e+o+u}else n=this.$el,r=t.scroll,i=e;n[r]=i},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const $9t={key:0,ref:"before",class:"vue-recycle-scroller__slot"},R9t={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function P9t(e,t,n,r,i,a){const o=ei("ResizeObserver"),s=Va("observe-visibility");return ct((L(),te("div",{class:ve(["vue-recycle-scroller",{ready:i.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...l)=>a.handleScroll&&a.handleScroll(...l))},[e.$slots.before?(L(),te("div",$9t,[ot(e.$slots,"before")],512)):Be("v-if",!0),(L(),Ke(Lf(n.listTag),{ref:"wrapper",style:tn({[e.direction==="vertical"?"minHeight":"minWidth"]:i.totalSize+"px"}),class:ve(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:Ie(()=>[(L(!0),te(Vt,null,pn(i.pool,l=>(L(),Ke(Lf(n.itemTag),Qt({key:l.nr.id,style:i.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${l.position}px) translate${e.direction==="vertical"?"X":"Y"}(${l.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&i.hoverKey===l.nr.key}]]},J8t(n.skipHover?{}:{mouseenter:()=>{i.hoverKey=l.nr.key},mouseleave:()=>{i.hoverKey=null}})),{default:Ie(()=>[ot(e.$slots,"default",{item:l.item,index:l.nr.index,active:l.nr.used})]),_:2},1040,["style","class"]))),128)),ot(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(L(),te("div",R9t,[ot(e.$slots,"after")],512)):Be("v-if",!0),Se(o,{onNotify:a.handleResize},null,8,["onNotify"])],34)),[[s,a.handleVisibilityChange]])}A6.render=P9t,A6.__file="src/components/RecycleScroller.vue";var kG={name:"DynamicScroller",components:{RecycleScroller:A6},provide(){return typeof ResizeObserver<"u"&&(this.$_resizeObserver=new ResizeObserver(e=>{requestAnimationFrame(()=>{if(Array.isArray(e)){for(const t of e)if(t.target&&t.target.$_vs_onResize){let n,r;if(t.borderBoxSize){const i=t.borderBoxSize[0];n=i.inlineSize,r=i.blockSize}else n=t.contentRect.width,r=t.contentRect.height;t.target.$_vs_onResize(t.target.$_vs_id,n,r)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...u4e,minItemSize:{type:[Number,String],required:!0}},emits:["resize","visible"],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:c4e,itemsWithSize(){const e=[],{items:t,keyField:n,simpleArray:r}=this,i=this.vscrollData.sizes,a=t.length;for(let o=0;o<a;o++){const s=t[o],l=r?o:s[n];let u=i[l];typeof u>"u"&&!this.$_undefinedMap[l]&&(u=0),e.push({item:s,id:l,size:u})}return e}},watch:{items(){this.forceUpdate()},simpleArray:{handler(e){this.vscrollData.simpleArray=e},immediate:!0},direction(e){this.forceUpdate(!0)},itemsWithSize(e,t){const n=this.$el.scrollTop;let r=0,i=0;const a=Math.min(e.length,t.length);for(let s=0;s<a&&!(r>=n);s++)r+=t[s].size||this.minItemSize,i+=e[s].size||this.minItemSize;const o=i-r;o!==0&&(this.$el.scrollTop+=o)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={},this.$_events=T9t()},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},unmounted(){this.$_events.all.clear()},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit("resize")},onScrollerVisible(){this.$_events.emit("vscroll:update",{force:!1}),this.$emit("visible")},forceUpdate(e=!1){(e||this.simpleArray)&&(this.vscrollData.sizes={}),this.$_events.emit("vscroll:update",{force:!0})},scrollToItem(e){const t=this.$refs.scroller;t&&t.scrollToItem(e)},getItemSize(e,t=void 0){const n=this.simpleArray?t??this.items.indexOf(e):e[this.keyField];return this.vscrollData.sizes[n]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;const e=this.$el;this.$nextTick(()=>{e.scrollTop=e.scrollHeight+5e3;const t=()=>{e.scrollTop=e.scrollHeight+5e3,requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(t)})};requestAnimationFrame(t)})}}};function M9t(e,t,n,r,i,a){const o=ei("RecycleScroller");return L(),Ke(o,Qt({ref:"scroller",items:a.itemsWithSize,"min-item-size":n.minItemSize,direction:e.direction,"key-field":"id","list-tag":e.listTag,"item-tag":e.itemTag},e.$attrs,{onResize:a.onScrollerResize,onVisible:a.onScrollerVisible}),{default:Ie(({item:s,index:l,active:u})=>[ot(e.$slots,"default",Co(Uo({item:s.item,index:l,active:u,itemWithSize:s})))]),before:Ie(()=>[ot(e.$slots,"before")]),after:Ie(()=>[ot(e.$slots,"after")]),empty:Ie(()=>[ot(e.$slots,"empty")]),_:3},16,["items","min-item-size","direction","list-tag","item-tag","onResize","onVisible"])}kG.render=M9t,kG.__file="src/components/DynamicScroller.vue";var Jce={name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},emits:["resize"],computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.vscrollData.keyField in this.item)return this.item[this.vscrollData.keyField];throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id(e,t){if(this.$el.$_vs_id=this.id,this.size||this.onDataUpdate(),this.$_sizeObserved){const n=this.vscrollData.sizes[t],r=this.vscrollData.sizes[e];n!=null&&n!==r&&this.applySize(n)}},finalActive(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(const e in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[e],this.onDataUpdate);this.vscrollParent.$_events.on("vscroll:update",this.onVscrollUpdate)}},mounted(){this.finalActive&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off("vscroll:update",this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch("item",()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate({force:e}){!this.finalActive&&e&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||e||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(e){this.$nextTick(()=>{if(this.id===e){const t=this.$el.offsetWidth,n=this.$el.offsetHeight;this.applyWidthHeight(t,n)}this.$_pendingSizeUpdate=null})},applyWidthHeight(e,t){const n=~~(this.vscrollParent.direction==="vertical"?t:e);n&&this.size!==n&&this.applySize(n)},applySize(e){this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=e,this.emitResize&&this.$emit("resize",this.id)},observeSize(){this.vscrollResizeObserver&&(this.$_sizeObserved||(this.vscrollResizeObserver.observe(this.$el),this.$el.$_vs_id=this.id,this.$el.$_vs_onResize=this.onResize,this.$_sizeObserved=!0))},unobserveSize(){this.vscrollResizeObserver&&this.$_sizeObserved&&(this.vscrollResizeObserver.unobserve(this.$el),this.$el.$_vs_onResize=void 0,this.$_sizeObserved=!1)},onResize(e,t,n){this.id===e&&this.applyWidthHeight(t,n)}},render(){return ll(this.tag,this.$slots.default())}};Jce.__file="src/components/DynamicScrollerItem.vue";function N9t(e,t){e.component("".concat(t,"recycle-scroller"),A6),e.component("".concat(t,"RecycleScroller"),A6),e.component("".concat(t,"dynamic-scroller"),kG),e.component("".concat(t,"DynamicScroller"),kG),e.component("".concat(t,"dynamic-scroller-item"),Jce),e.component("".concat(t,"DynamicScrollerItem"),Jce)}var F9t={version:"2.0.0-beta.8",install:function(t,n){var r=Object.assign({},{installComponents:!0,componentsPrefix:""},n);for(var i in r)typeof r[i]<"u"&&(o4e[i]=r[i]);r.installComponents&&N9t(t,r.componentsPrefix)}};const L9t=(e,t)=>{const n=a=>t._s.get(a),r=(a,o,s)=>{const l=n(a);return l&&o in l?(l[o](s),!0):(console.warn(`[initWebScene] Store "${a}" or dispactcher "${o}" not found`),!1)};function i(a){var o,s;(s=(o=e==null?void 0:e.config)==null?void 0:o.globalProperties)==null||s.setStoreValue("scene","setCurrentSceneTabId",a)}return e.config.globalProperties.setStoreValue=r,e.config.globalProperties.handleSetTab=i,{handleSetTab:i}},B9t="0.26.9-alpha.22",V9t={"@arbocollab/arbo-chart-component":"1.0.1","@arbocollab/arbo-comment-utils":"1.0.1","@arbocollab/arbo-common-utils":"npm:@arbocollab/arbo-common-utils@1.0.14","@arbocollab/arbo-media-player-component":"0.0.38","@arbocollab/arbo-table-component":"1.0.1","@arbocollab/arbo-ui-components":"npm:@arbocollab/arbo-ui-components-beta@0.0.378-alpha.41","@arbocollab/arbo-calendar-component":"0.0.51","@arbocollab/arbo-metric-table":"npm:@arbocollab/arbo-metric-table@0.0.24","@arbocollab/ag-grid-ui-components":"0.0.53","@vueuse/core":"^10.11.1","@ctrl/tinycolor":"^4.2.0",axios:"^1.7.2","date-fns":"^4.1.0","date-fns-tz":"^3.2.0",dayjs:"^1.11.11",dexie:"4.0.10","js-cookie":"^3.0.5",pinia:"^3.0.3","prettier-plugin-stylus":"^0.1.0","sanitize-html":"^2.15.0","vite-bundle-visualizer":"^1.2.1","vite-plugin-html":"^3.2.2",vue:"^3.5.18","vue-draggable-next":"^2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.5.1","vue-virtual-scroller":"^2.0.0-beta.8"};var ji=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function O6(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function U9t(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var d4e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ji,function(){/*! *****************************************************************************
|
|
41
41
|
Copyright (c) Microsoft Corporation.
|
|
42
42
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
43
43
|
purpose with or without fee is hereby granted.
|
|
@@ -784,7 +784,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
784
784
|
|
|
785
785
|
`).trim()}const _=q($ke),v={props:r,permission:i,sceneStore:a,sceneData:o,loading:s,COMMENT_TEMPLATE:FHr,vTooltip:l,description:u,isDisabled:c,mediumCardConfig:d,handleSaveDescription:h,DELAY_MS:f,onInputDescription:m,emits:g,handleRefresh:b,htmlToPlainText:w,COPY_LABEL:$ke,COPIED_LABEL:fxt,COPIED_RESET_DELAY:hxt,copyTooltip:_,handleCopy:async()=>{const E=String(u.value??""),T=w(E);try{typeof ClipboardItem<"u"?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([E],{type:"text/html"}),"text/plain":new Blob([T],{type:"text/plain"})})]):await navigator.clipboard.writeText(T),_.value=fxt}catch(O){console.error("[NotePreviewer] Failed to copy note to clipboard:",O);return}setTimeout(()=>{_.value=$ke},hxt)},get TessButton(){return pr},get Icon(){return or},get MediumCard(){return PQ},get ArboTextArea(){return dxt}};return Object.defineProperty(v,"__isScriptSetup",{enumerable:!1,value:!0}),v}}),BHr={style:{display:"flex",gap:"8px","align-items":"center"}},VHr={key:0,class:"description-wrapper"},UHr={class:"readonly-description"},jHr=["innerHTML"],HHr={key:1},zHr={key:1,class:"note-taker"};function WHr(e,t,n,r,i,a){return L(),Ke(r.MediumCard,Qt(r.mediumCardConfig,{style:{height:"214px",width:"100%",backgroundColor:"#ffffff"}}),{headerSlot2:Ie(()=>[he("div",BHr,[ct((L(),Ke(r.TessButton,{size:"small",variant:["secondary","icon"],onClick:r.handleCopy},{default:Ie(()=>[Se(r.Icon,{src:"Copy"})]),_:1})),[[r.vTooltip,{content:r.copyTooltip}]]),ct((L(),Ke(r.TessButton,{size:"small",variant:["secondary","icon"],onClick:r.handleRefresh},{default:Ie(()=>[Se(r.Icon,{src:"ArrowRotate"})]),_:1})),[[r.vTooltip,{content:"Refresh"}]])])]),primarySlot:Ie(()=>[r.isDisabled?(L(),te("div",VHr,[he("div",UHr,[r.isDisabled&&r.description?(L(),te("div",{key:0,innerHTML:r.description},null,8,jHr)):(L(),te("div",HHr))])])):(L(),te("div",zHr,[Se(r.ArboTextArea,{ref:"ArboTextAreaRef",modelValue:r.description,"onUpdate:modelValue":t[0]||(t[0]=o=>r.description=o),disabled:r.isDisabled,resize:"y","max-height":"180",style:{width:"100%",height:"150px",cursor:"pointer"},class:"note-taker",placeholder:r.permission.editDescription?"Add notes...":""},null,8,["modelValue","disabled","placeholder"])]))]),_:1},16)}const qHr=pi(LHr,[["render",WHr],["__scopeId","data-v-fa9bcd7c"],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/scene-home/dashboard-cards/CardDescription.vue"]]),GHr=dt({__name:"LoadingIndicator",props:{color:{type:String,required:!1}},setup(e,{expose:t}){t();const r={props:e};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),KHr={class:"loading-indicator"};function YHr(e,t,n,r,i,a){return L(),te("div",KHr,[he("div",{class:"loader",style:tn([r.props.color?{"--color":r.props.color}:""])},null,4)])}const pxt=pi(GHr,[["render",YHr],["__scopeId","data-v-b84114f1"],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/common/LoadingIndicator.vue"]]),ZHr=dt({__name:"CardElapsedTime",emits:["reload"],setup(e,{expose:t,emit:n}){t();const r=q(),i=Im(),{refetchingStatus:a,actual_start_date:o,iconColor:s}=_r(i),l=()=>{if(o.value)return Oke({p2:new Date(o.value),p1:new Date})},u=n;ut(o,()=>{o.value==null?(r.value=void 0,u("reload")):r.value=l()},{immediate:!0});const c=W(()=>{var f,m;return{title:"Elapsed time",backgroundColor:Iz.WHITE,icon:{name:"Clock",iconColor:s.value,tooltip:"Days spent in active state, including waiting"},mainLabel:(f=r.value)==null?void 0:f.time,key:"elapsed_time",guidingTextBottomLeft:{text:((m=r.value)==null?void 0:m.unit)??" ",fontStyle:sie.bold},guidingTextBottomRight:{text:o.value?""+Hv(o.value,"MMM DD"):"-",fontStyle:sie.normal,tooltip:o.value?"Actual start: "+Hv(o.value,DG):"No start date"},disabled:!1}}),d=W(()=>{var f,m;return{title:"Elapsed time",backgroundColor:"#FAFAFA",icon:{name:"Clock",iconColor:"#A6A6A6",tooltip:"Days spent in active state, including waiting"},topRightValue:{text:o.value?""+Hv(o.value,"MMM DD"):" ",fontStyle:{color:"#6b6b6b",fontSize:"12px",fontWeight:"400"},tooltip:"Days spent in active state, including waiting"},primaryValue:{text:(f=r.value)==null?void 0:f.time,fontStyle:{color:"#232323",fontSize:"24px",fontWeight:"700"},tooltip:"Days spent in active state, including waiting"},secondaryValue:{text:((m=r.value)==null?void 0:m.unit)??" ",fontStyle:{color:"#6b6b6b",fontSize:"12px",fontWeight:"400"},tooltip:"Days spent in active state, including waiting"},readOnly:!0}}),h={elapsedTime:r,dashboardStore:i,refetchingStatus:a,actual_start_date:o,iconColor:s,getTimeGap:l,emits:u,cardConfiguration:c,smallCardConfiguration:d,get SmallCard(){return wE}};return Object.defineProperty(h,"__isScriptSetup",{enumerable:!1,value:!0}),h}});function XHr(e,t,n,r,i,a){return L(),Ke(r.SmallCard,Co(Uo({...r.smallCardConfiguration})),{default:Ie(()=>[Be(` <template #body>
|
|
786
786
|
<CardTime :refetching-status="refetchingStatus" :elapsed-time="elapsedTime" />
|
|
787
|
-
</template> `)]),_:1},16)}const JHr=pi(ZHr,[["render",XHr],["__scopeId","data-v-b8802ba9"],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/scene-home/dashboard-cards/CardElapsedTime.vue"]]),QHr=dt({__name:"CardLatestRendition",setup(e,{expose:t}){t();const{permission:n}=Om(),{addRendition:r,refreshDashboard:i}=O3(),a=Im(),o=Zi,{renditions:s,totalRenditions:l}=_r(a),u=q(!1),c=async()=>{u.value=!0,await i("rendition"),u.value=!1},d=W(()=>({icon:void 0,title:"Renditions",backgroundColor:"#ffffff",isLoading:!1,height:"240px"})),h=Bl(),{currentSceneTabId:f}=_r(h),{takeId:m,sceneId:g}=_r(h),b=()=>{f.value="rendition"},w=E=>{const T=JSON.parse(JSON.stringify(E));return T.attachments=Array.from({length:E.attachments_count}),T.entity_path=[],{data:T,permission:{canDelete:!1,canOpenReview:!1,canOpenSceneHub:!1},config:{sceneId:g,takeId:m.value,wsCode:fc(),baseDomain:BO("BASE_URL")},hasNewComment:E.has_new_comment,actived:!1,type:"scene-hub"}},_=q(null),C=q(),v=()=>{var E,T;_.value&&(C.value=((E=_.value)==null?void 0:E.offsetWidth)<400?"xs":((T=_.value)==null?void 0:T.offsetWidth)<600?"sm":void 0)};rV(_,()=>v()),dn(()=>{v()});const x={permission:n,addRendition:r,refreshDashboard:i,dashboardStore:a,vTooltip:o,renditions:s,totalRenditions:l,refreshing:u,handleRefresh:c,mediumCardConfig:d,sceneStore:h,currentSceneTabId:f,takeId:m,sceneId:g,switchToRenditionTab:b,createRenditionCardProps:w,renditonContainer:_,isSmallContainer:C,handleResizeConatiner:v,get TessButton(){return pr},get Icon(){return or},get MediumCard(){return PQ},get RenditionCardV2(){return Jot}};return Object.defineProperty(x,"__isScriptSetup",{enumerable:!1,value:!0}),x}}),ezr={class:"card-actions"},tzr={key:1,class:"rendition-body empty"};function nzr(e,t,n,r,i,a){return L(),Ke(r.MediumCard,Qt(r.mediumCardConfig,{style:{height:"100%",width:"100%","--bg-color":"#ffffff"}}),{headerSlot2:Ie(()=>[he("div",ezr,[r.permission.createRendition&&r.totalRenditions!=null&&r.totalRenditions>0?ct((L(),Ke(r.TessButton,{key:0,variant:["secondary"],style:{padding:"0 8px"},onClick:r.switchToRenditionTab,size:"small"},{default:Ie(()=>[...t[1]||(t[1]=[he("span",{style:{"font-weight":"400"}},"View all",-1)])]),_:1})),[[r.vTooltip,{content:"View all renditions"}]]):Be("v-if",!0),ct((L(),Ke(r.TessButton,{variant:["secondary","icon"],onClick:r.handleRefresh,size:"small"},{default:Ie(()=>[Se(r.Icon,{src:"ArrowRotate",color:"var(--icon-color)"})]),_:1})),[[r.vTooltip,{content:"Refresh"}]])])]),primarySlot:Ie(()=>[r.totalRenditions!=null&&r.totalRenditions>0?(L(),te("div",{key:0,ref:"renditonContainer",class:ve(["rendition-body",{}])},[(L(!0),te(Vt,null,pn(r.renditions,(o,s)=>(L(),te("div",{key:s,class:ve(["rendition-cards",[`item-${s+1}`]])},[(L(),Ke(r.RenditionCardV2,Qt({id:o.id,ref_for:!0,ref:"sceneRef",key:`rendition-item-${o.id}`,index:s,onClick:r.switchToRenditionTab},{ref_for:!0},r.createRenditionCardProps(o),{style:{width:"100%"}}),{moreActions:Ie(()=>[...t[2]||(t[2]=[he("div",null,null,-1)])]),_:1},16,["id","index"]))],2))),128)),r.totalRenditions>2?(L(),te("div",{key:0,class:"more-renditions",onClick:Lt(r.switchToRenditionTab,["stop"])},"+"+wt(r.totalRenditions-2)+" more",1)):Be("v-if",!0)],512)):(L(),te("div",tzr,[t[4]||(t[4]=he("span",null," No renditions yet. ",-1)),r.permission.createRendition?(L(),Ke(r.TessButton,{key:0,onClick:t[0]||(t[0]=o=>r.addRendition())},{default:Ie(()=>[Se(r.Icon,{src:"CirclePlus"}),t[3]||(t[3]=Mt(" Create rendition ",-1))]),_:1})):Be("v-if",!0)]))]),_:1},16)}const rzr=pi(QHr,[["render",nzr],["__scopeId","data-v-4a9f2161"],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/scene-home/dashboard-cards/CardLatestRendition.vue"]]),izr=dt({__name:"CardLeadTime",emits:["reload"],setup(e,{expose:t,emit:n}){t();const r=q(),i=Im(),{refetchingStatus:a,actual_due_date:o,created_at:s,iconColor:l}=_r(i),u=()=>{if(o.value&&s.value)return Oke({p1:new Date(o.value),p2:new Date(s.value)})},c=n;ut([o,s],()=>{o.value==null||s.value==null?c("reload"):r.value=u()},{immediate:!0});const d=W(()=>{var m,g;return{title:"Lead time",backgroundColor:Iz.WHITE,icon:{name:"Clock",iconColor:l.value,tooltip:"Days from creation to completion, including waiting"},mainLabel:(m=r.value)==null?void 0:m.time,key:"elapsed_time",guidingTextBottomLeft:{text:((g=r.value)==null?void 0:g.unit)??" ",fontStyle:sie.bold},guidingTextBottomRight:void 0,disabled:!1}}),h=W(()=>{var m;return{icon:{name:"Clock",iconColor:"#A6A6A6",tooltip:"Days from creation to completion, including waiting"},topRightValue:void 0,primaryValue:{text:d.value.mainLabel,fontStyle:{color:"#232323",fontSize:"24px",fontWeight:"700"},tooltip:"Days from creation to completion, including waiting"},secondaryValue:{text:((m=d.value.guidingTextBottomLeft)==null?void 0:m.text)??"",fontStyle:{color:"#6b6b6b",fontSize:"12px",fontWeight:"400"},tooltip:"Days from creation to completion, including waiting"},backgroundColor:"#FAFAFA",isLoading:!1,title:"Lead time",readOnly:!0}}),f={elapsedTime:r,dashboardStore:i,refetchingStatus:a,actual_due_date:o,created_at:s,iconColor:l,getTimeGap:u,emits:c,cardConfiguration:d,smallCardConfiguration:h,get SmallCard(){return wE}};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}});function azr(e,t,n,r,i,a){return L(),Ke(r.SmallCard,Co(Uo({...r.smallCardConfiguration})),null,16)}const ozr=pi(izr,[["render",azr],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/scene-home/dashboard-cards/CardLeadTime.vue"]]),szr=dt({__name:"CardPermission",setup(e,{expose:t}){t();const n=Im(),{iconColor:r}=_r(n),i=W(()=>({title:"Permission",backgroundColor:Iz.WHITE,icon:{name:"Lock",iconColor:r.value,tooltip:"Access permissions"},mainLabel:"Locked",guidingTextBottomLeft:{text:"Read-only",fontStyle:sie.normal,tooltip:"Contact project admin to unlock"},key:"completed",disabled:!1})),a={dashboardStore:n,iconColor:r,cardConfiguration:i};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}}),lzr={class:"card-title"};function uzr(e,t,n,r,i,a){const o=ei("SimpleCard");return L(),Ke(o,{class:"card-simple",title:r.cardConfiguration.title,"background-color":r.cardConfiguration.backgroundColor,"guiding-text-bottom-left":r.cardConfiguration.guidingTextBottomLeft,"guiding-text-bottom-right":r.cardConfiguration.guidingTextBottomRight,icon:r.cardConfiguration.icon,disabled:!1},{body:Ie(()=>[he("div",lzr,wt(r.cardConfiguration.mainLabel),1)]),_:1},8,["title","background-color","guiding-text-bottom-left","guiding-text-bottom-right","icon"])}const czr=pi(szr,[["render",uzr],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/scene-home/dashboard-cards/CardPermission.vue"]]),dzr=dt({__name:"DisplayTextTruncate",props:{limitDecimal:{type:Number,required:!1,default:2},type:{type:String,required:!1,default:"number"},value:{type:String,required:!0},truncate:{type:String,required:!0,default:"end"}},setup(e,{expose:t}){t();const n=e,r=W(()=>{if(s.value&&n.value)return n.value}),i=W(()=>{if(n.value)return a(n.value)}),a=m=>{if(n.type==="string")return m;if(n.type==="number"&&n.limitDecimal!==void 0){const g=parseFloat(m);return isNaN(g)?m:c(g,n.limitDecimal)}return m};function o(m){const g=getComputedStyle(m),b=parseFloat(g.width),w=document.createElement("canvas").getContext("2d");return w?(w.font=`${g.fontSize} ${g.fontFamily}`,w.measureText(m.innerText).width>b):!1}const s=q(!1),l=q(null),u=()=>{kt(()=>{const m=l.value;let g=!1;m&&(s.value=o(m)||g)})},c=(m,g)=>{const b=Number(m).toFixed(g).split(".");return b[0]=b[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),b.join(".")};dn(()=>{u()});const d=W(()=>s.value?1e3:300);ut([()=>n.value],()=>{u()},{deep:!0});const h=new ResizeObserver(()=>{u()});dn(()=>{l.value&&h.observe(l.value)}),Kr(()=>{l.value&&h.unobserve(l.value)});const f={props:n,tooltipValue:r,displayValue:i,formattedValue:a,checkEllipsis:o,hasEllipsis:s,valueRef:l,validateEllipsis:u,formatNumber:c,tooltipDelay:d,resizeObserver:h};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}});function fzr(e,t,n,r,i,a){const o=ei("ArboTooltip");return L(),te("div",{class:"truncated-text-wrapper",onHover:r.validateEllipsis},[Se(o,{class:"w-full h-full flex",content:r.tooltipValue,delay:r.tooltipDelay},{default:Ie(()=>[ct(he("div",{class:"truncated-text",style:tn({direction:r.props.truncate==="start"?"rtl":"ltr"})},[he("span",{ref:"valueRef",class:ve(["value",{truncated:r.hasEllipsis}])},wt(r.displayValue),3)],4),[[ui,r.props.value.length>0]])]),_:1},8,["content","delay"])],32)}const hzr=pi(dzr,[["render",fzr],["__scopeId","data-v-7d0c56fb"],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/common/DisplayTextTruncate.vue"]]),pzr=dt({__name:"CardRecentActivity",setup(e,{expose:t}){t();const n=Zi,r=Im(),{activities:i}=_r(r),a=W(()=>i.value??[]),o=W(()=>a.value.length),{refreshDashboard:s}=O3(),l=v=>{const x=sessionStorage.getItem("user.ws_user_role_id")||"";return v===x},u=v=>({user:{name:v.display_name,id:v.id,profile_image:v.profile_image,color:{bgColor:v.color.bgColor,textColor:v.color.textColor},initial:v.initial},isMe:l(v.id),showProfile:!0,appendTo:document.body}),c=v=>v=="start_date"?"Start date":v=="due_date"?"Due date":v,d=v=>Array.isArray(v)?v.map(x=>c(x)).join(" & "):v,h=v=>`${v.user.display_name} ${v.event} ${d(v.field)}`,f=q(!1),m=async()=>{f.value=!0,await s("activities"),f.value=!1},g=W(()=>({icon:void 0,title:"Activity",backgroundColor:"#ffffff",isLoading:!1,height:"260px"})),b=Bl(),{currentSceneTabId:w}=_r(b),C={vTooltip:n,dashboardStore:r,activities:i,sceneActivities:a,activityCount:o,refreshDashboard:s,checkIsMe:l,avatarProps:u,convertText:c,formatField:d,displayActivity:h,refreshing:f,handleRefresh:m,mediumCardConfig:g,sceneStore:b,currentSceneTabId:w,toActivityTab:()=>{w.value="log"},get TessButton(){return pr},get Icon(){return or},get MediumCard(){return PQ},get TessAvatarV2(){return Cm},DisplayTextTruncate:hzr,get FUll_DATE_FORMAT(){return DG},get formatDate(){return Hv}};return Object.defineProperty(C,"__isScriptSetup",{enumerable:!1,value:!0}),C}}),mzr={class:"card-actions"},gzr={key:0,class:"flex flex-col max-w-full gap-[12px] w-full"},vzr={class:"activity-time flex-1 text-right"},yzr={key:1,class:"max-h-[100%] w-full flex flex-1 flex-col items-center justify-center"};function bzr(e,t,n,r,i,a){const o=ei("ArboIcon");return L(),Ke(r.MediumCard,Qt(r.mediumCardConfig,{style:{height:"100%",width:"100%","--bg-color":"#ffffff"}}),{headerSlot2:Ie(()=>[he("div",mzr,[ct((L(),Ke(r.TessButton,{style:{padding:"0 8px"},variant:["secondary"],size:"small",onClick:r.toActivityTab},{default:Ie(()=>[...t[0]||(t[0]=[he("span",{style:{"font-weight":"400"}}," View all",-1)])]),_:1})),[[r.vTooltip,{content:"Add Activity"}]]),ct((L(),Ke(r.TessButton,{variant:["secondary","icon"],size:"small",onClick:r.handleRefresh},{default:Ie(()=>[Se(r.Icon,{src:"ArrowRotate",color:"var(--icon-color)"})]),_:1})),[[r.vTooltip,{content:"Refresh"}]])])]),primarySlot:Ie(()=>[r.activityCount>=1?(L(),te("div",gzr,[(L(!0),te(Vt,null,pn(r.sceneActivities,s=>(L(),te("div",{key:s.id,class:"scene-activity"},[Se(r.TessAvatarV2,Qt({ref_for:!0},r.avatarProps(s.user),{class:"avatar"}),null,16),Se(r.DisplayTextTruncate,{truncate:"end",value:r.displayActivity(s),tooltip:r.displayActivity(s),type:"string",style:{"font-size":"12px",color:"#232323"}},null,8,["value","tooltip"]),ct((L(),te("div",vzr,[Mt(wt(r.formatDate(s.timestamp,"MMM DD · HH:mm")),1)])),[[r.vTooltip,{content:r.formatDate(s.timestamp,r.FUll_DATE_FORMAT)}]])]))),128))])):(L(),te("div",yzr,[Se(o,{type:"visual",name:"NoActivity",class:"h-[135px]"}),t[1]||(t[1]=he("span",null," Looks like there is no activity yet. ",-1))]))]),_:1},16)}const wzr=pi(pzr,[["render",bzr],["__scopeId","data-v-6352aefc"],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/scene-home/dashboard-cards/CardRecentActivity.vue"]]),_zr=dt({__name:"CardStatus",emits:["reload"],setup(e,{expose:t,emit:n}){t();const r=Im(),{actual_due_date:i,due_date:a}=_r(r),o=n;ut(i,()=>{i.value==null&&o("reload")},{immediate:!0});const s=W(()=>({icon:{name:"Calendar",iconColor:"#A6A6A6",tooltip:"Days countdown to due"},topRightValue:{text:a.value?Hv(a.value,"MMM DD"):" ",fontStyle:{color:"#6B6B6B",fontSize:"12px",fontWeight:"400"},tooltip:a.value?`Due: ${Hv(a.value,DS)}`:"Due date not set"},primaryValue:{text:"Completed",fontStyle:{color:"#232323",fontSize:"24px",fontWeight:"700"},tooltip:"Days from creation to completion, including waiting"},secondaryValue:{text:i.value?Hv(i.value,"MMM DD"):" ",fontStyle:{color:"#6B6B6B",fontSize:"12px",fontWeight:"400"},tooltip:i.value?`Actual due: ${Hv(i.value,DG)}`:void 0},backgroundColor:Iz.GREEN,isLoading:!1,title:"Due",readOnly:!0})),l={dashboardStore:r,actual_due_date:i,due_date:a,emits:o,smallCardConfiguration:s,get SmallCard(){return wE}};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}});function Czr(e,t,n,r,i,a){return L(),Ke(r.SmallCard,Co(Uo(r.smallCardConfiguration)),null,16)}const Szr=pi(_zr,[["render",Czr],["__scopeId","data-v-5007d073"],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/scene-home/dashboard-cards/CardStatus.vue"]]),Ezr=dt({__name:"CardUnresolved",setup(e,{expose:t}){t();const n=Im(),{unresolved_comment:r}=_r(n),i=W(()=>r.value??0),a=W(()=>i.value>0),o=W(()=>{const l=a.value?"#232323":"#D7D7D7";return{icon:{name:"CommentDots",iconColor:"#A6A6A6",tooltip:"Comments to resolve"},primaryValue:{text:i.value.toString(),fontStyle:{color:l,fontSize:"24px",fontWeight:"700"},tooltip:"Comments to resolve"},secondaryValue:{text:"Comments",fontStyle:{color:"#6b6b6b",fontSize:"12px",fontWeight:"400"},tooltip:"Comments to resolve"},backgroundColor:"#FAFAFA",isLoading:!1,title:"Unresolved",readOnly:!0}}),s={dashboardStore:n,unresolved_comment:r,total_unresolved_comments:i,hasData:a,smallCardConfiguration:o,get SmallCard(){return wE}};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}});function xzr(e,t,n,r,i,a){return L(),Ke(r.SmallCard,Qt({...r.smallCardConfiguration},{onClick:e.to}),null,16,["onClick"])}const Tzr=pi(Ezr,[["render",xzr],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/scene-home/dashboard-cards/CardUnresolved.vue"]]),kzr="MMM d",Rke=(e,t)=>e?nHr(Dke(e,t),kzr):null,mxt=(e,t)=>jEt(Dke(e,t),Dke(new Date,t));function Dzr(e,t,n,r){const i=Rke(e,t),a=Rke(r,t);if(n==="completed")return{mainText:"Completed",topRightValue:i,secondaryValue:a,backgroundColor:"#E0F2F1",textColor:"#26A69A"};if(!e)return{mainText:"-",topRightValue:null,secondaryValue:null,backgroundColor:"#FAFAFA",textColor:"#D7D7D7"};const o=mxt(e,t);return o<0?{mainText:"Overdue",topRightValue:i,secondaryValue:`${Math.abs(o)} days late`,backgroundColor:"#FEE4E2",textColor:"#D92D20"}:o===0?{mainText:"Today",topRightValue:null,secondaryValue:null,backgroundColor:"#FEECDC",textColor:"#F7941D"}:o===1?{mainText:"Tomorrow",topRightValue:i,secondaryValue:null,backgroundColor:"#FAFAFA",textColor:"#212121"}:{mainText:`${o}`,topRightValue:i,secondaryValue:"days",backgroundColor:"#FAFAFA",textColor:"#212121"}}function Azr(e,t){if(!e)return{mainText:"-",secondaryText:" ",backgroundColor:"#FAFAFA",textColor:"#D7D7D7",topRightValue:" "};const n=mxt(e,t),r=Rke(e,t);return n<-1?{mainText:"Pending",topRightValue:r,backgroundColor:"#FEE4E2",textColor:"#D92D20",secondaryText:`${Math.abs(n)} days late`}:n===-1?{mainText:"Yesterday",secondaryText:null,backgroundColor:"#FEE4E2",textColor:"#D92D20",topRightValue:r}:n===0?{mainText:"Today",secondaryText:null,backgroundColor:"#FEECDC",textColor:"#F7941D",topRightValue:null}:n===1?{mainText:"Tomorrow",secondaryText:null,backgroundColor:"#FAFAFA",textColor:"#212121",topRightValue:r}:{mainText:`${n}`,secondaryText:"days",backgroundColor:"#FAFAFA",textColor:"#212121",topRightValue:r}}const gxt={getCookie(e,t){const n=document.cookie.split(";");for(let r=0;r<n.length;r++){const i=n[r].trim();if(i.startsWith(e+"="))return i.substring(e.length+1)}return null}},Ozr=dt({__name:"CardUntilDue",setup(e,{expose:t}){t();const n=Im(),{due_date:r,actual_due_date:i,is_completed:a}=_r(n),o=W(()=>r.value),s=W(()=>i.value),l=W(()=>a.value=="1"?"completed":"in progress"),u=W(()=>o.value?`Due: ${Hv(o.value,DS)}`:"Due date not set"),c=W(()=>{const h=u.value,f=gxt.getCookie(KR)||"Asia/Tokyo",{mainText:m,secondaryValue:g,backgroundColor:b,textColor:w,topRightValue:_}=Dzr(o.value,f,l.value,s.value);return{icon:{name:"Calendar",iconColor:"#A6A6A6",tooltip:h},topRightValue:{text:_??"",fontStyle:{color:"#6B6B6B",fontSize:"12px",fontWeight:"400"}},primaryValue:{text:m,fontStyle:{color:w,fontSize:"24px",fontWeight:"700"},tooltip:h},secondaryValue:{text:g,fontStyle:{color:"#6B6B6B",fontSize:"12px",fontWeight:"400"},tooltip:h},backgroundColor:b,isLoading:!1,title:"Due",readOnly:!0}}),d={dashboardStore:n,due_date:r,actual_due_date:i,is_completed:a,dueDate:o,completedDate:s,status:l,tooltip:u,smallCardConfiguration:c,get SmallCard(){return wE}};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}});function Izr(e,t,n,r,i,a){return L(),Ke(r.SmallCard,Co(Uo(r.smallCardConfiguration)),null,16)}const $zr=pi(Ozr,[["render",Izr],["__scopeId","data-v-53bbe9d4"],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/scene-home/dashboard-cards/CardUntilDue.vue"]]),Rzr=dt({__name:"CardUntilStart",setup(e,{expose:t}){t();const n=Im(),{start_date:r}=_r(n),i=W(()=>r.value),a=W(()=>i.value?`Start: ${Hv(i.value,DS)}`:"Start date not set"),o=W(()=>{const l=gxt.getCookie(KR)||"Asia/Tokyo",{mainText:u,secondaryText:c,backgroundColor:d,textColor:h,topRightValue:f}=Azr(i.value,l);return{icon:{name:"Calendar",iconColor:"#a6a6a6",tooltip:a.value},topRightValue:{text:f,fontStyle:{color:"#6B6B6B",fontSize:"12px",fontWeight:"400"}},primaryValue:{text:u,fontStyle:{color:h,fontSize:"24px",fontWeight:"700"},tooltip:a.value},secondaryValue:{text:c,fontStyle:{color:"#6b6b6b",fontSize:"12px",fontWeight:"400"},tooltip:a.value},backgroundColor:d,isLoading:!1,title:"Start",readOnly:!0}}),s={dashboardStore:n,start_date:r,startDate:i,tooltipRight:a,smallCardConfiguration:o,get SmallCard(){return wE}};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}});function Pzr(e,t,n,r,i,a){return L(),Ke(r.SmallCard,Co(Uo(r.smallCardConfiguration)),null,16)}const Mzr=pi(Rzr,[["render",Pzr],["__scopeId","data-v-b0a96b87"],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/scene-home/dashboard-cards/CardUntilStart.vue"]]);function Pke(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Nzr(e){if(Array.isArray(e))return Pke(e)}function vxt(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Fzr(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){vxt(a,r,i,o,s,"next",l)}function s(l){vxt(a,r,i,o,s,"throw",l)}o(void 0)})}}function Lzr(e,t,n){return(t=zzr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bzr(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vzr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
787
|
+
</template> `)]),_:1},16)}const JHr=pi(ZHr,[["render",XHr],["__scopeId","data-v-b8802ba9"],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/scene-home/dashboard-cards/CardElapsedTime.vue"]]),QHr=dt({__name:"CardLatestRendition",setup(e,{expose:t}){t();const{permission:n}=Om(),{addRendition:r,refreshDashboard:i}=O3(),a=Im(),o=Zi,{renditions:s,totalRenditions:l}=_r(a),u=q(!1),c=async()=>{u.value=!0,await i("rendition"),u.value=!1},d=W(()=>({icon:void 0,title:"Renditions",backgroundColor:"#ffffff",isLoading:!1,height:"240px"})),h=Bl(),{currentSceneTabId:f}=_r(h),{takeId:m,sceneId:g}=_r(h),b=()=>{f.value="rendition"},w=E=>{const T=JSON.parse(JSON.stringify(E));return T.attachments=Array.from({length:E.attachments_count}),T.entity_path=[],{data:T,permission:{canDelete:!1,canOpenReview:!1,canOpenSceneHub:!1},config:{sceneId:g,takeId:m.value,wsCode:fc(),baseDomain:BO("BASE_URL")},hasNewComment:E.has_new_comment,actived:!1,type:"scene-hub"}},_=q(null),C=q(),v=()=>{var E,T;_.value&&(C.value=((E=_.value)==null?void 0:E.offsetWidth)<400?"xs":((T=_.value)==null?void 0:T.offsetWidth)<600?"sm":void 0)};rV(_,()=>v()),dn(()=>{v()});const x={permission:n,addRendition:r,refreshDashboard:i,dashboardStore:a,vTooltip:o,renditions:s,totalRenditions:l,refreshing:u,handleRefresh:c,mediumCardConfig:d,sceneStore:h,currentSceneTabId:f,takeId:m,sceneId:g,switchToRenditionTab:b,createRenditionCardProps:w,renditonContainer:_,isSmallContainer:C,handleResizeConatiner:v,get TessButton(){return pr},get Icon(){return or},get MediumCard(){return PQ},get RenditionCardV2(){return Jot}};return Object.defineProperty(x,"__isScriptSetup",{enumerable:!1,value:!0}),x}}),ezr={class:"card-actions"},tzr={key:1,class:"rendition-body empty"};function nzr(e,t,n,r,i,a){return L(),Ke(r.MediumCard,Qt(r.mediumCardConfig,{style:{height:"100%",width:"100%","--bg-color":"#ffffff"}}),{headerSlot2:Ie(()=>[he("div",ezr,[r.permission.createRendition&&r.totalRenditions!=null&&r.totalRenditions>0?ct((L(),Ke(r.TessButton,{key:0,variant:["secondary"],style:{padding:"0 8px"},onClick:r.switchToRenditionTab,size:"small"},{default:Ie(()=>[...t[1]||(t[1]=[he("span",{style:{"font-weight":"400"}},"View all",-1)])]),_:1})),[[r.vTooltip,{content:"View all renditions"}]]):Be("v-if",!0),ct((L(),Ke(r.TessButton,{variant:["secondary","icon"],onClick:r.handleRefresh,size:"small"},{default:Ie(()=>[Se(r.Icon,{src:"ArrowRotate",color:"var(--icon-color)"})]),_:1})),[[r.vTooltip,{content:"Refresh"}]])])]),primarySlot:Ie(()=>[r.totalRenditions!=null&&r.totalRenditions>0?(L(),te("div",{key:0,ref:"renditonContainer",class:ve(["rendition-body",{}])},[(L(!0),te(Vt,null,pn(r.renditions,(o,s)=>(L(),te("div",{key:s,class:ve(["rendition-cards",[`item-${s+1}`]])},[(L(),Ke(r.RenditionCardV2,Qt({id:o.id,ref_for:!0,ref:"sceneRef",key:`rendition-item-${o.id}`,index:s,onClick:r.switchToRenditionTab},{ref_for:!0},r.createRenditionCardProps(o),{style:{width:"100%"}}),{moreActions:Ie(()=>[...t[2]||(t[2]=[he("div",null,null,-1)])]),_:1},16,["id","index"]))],2))),128)),r.totalRenditions>2?(L(),te("div",{key:0,class:"more-renditions",onClick:Lt(r.switchToRenditionTab,["stop"])},"+"+wt(r.totalRenditions-2)+" more",1)):Be("v-if",!0)],512)):(L(),te("div",tzr,[t[4]||(t[4]=he("span",null," No renditions yet. ",-1)),r.permission.createRendition?(L(),Ke(r.TessButton,{key:0,onClick:t[0]||(t[0]=o=>r.addRendition())},{default:Ie(()=>[Se(r.Icon,{src:"CirclePlus"}),t[3]||(t[3]=Mt(" Create rendition ",-1))]),_:1})):Be("v-if",!0)]))]),_:1},16)}const rzr=pi(QHr,[["render",nzr],["__scopeId","data-v-4a9f2161"],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/scene-home/dashboard-cards/CardLatestRendition.vue"]]),izr=dt({__name:"CardLeadTime",emits:["reload"],setup(e,{expose:t,emit:n}){t();const r=q(),i=Im(),{refetchingStatus:a,actual_due_date:o,created_at:s,iconColor:l}=_r(i),u=()=>{if(o.value&&s.value)return Oke({p1:new Date(o.value),p2:new Date(s.value)})},c=n;ut([o,s],()=>{o.value==null||s.value==null?c("reload"):r.value=u()},{immediate:!0});const d=W(()=>{var m,g;return{title:"Lead time",backgroundColor:Iz.WHITE,icon:{name:"Clock",iconColor:l.value,tooltip:"Days from creation to completion, including waiting"},mainLabel:(m=r.value)==null?void 0:m.time,key:"elapsed_time",guidingTextBottomLeft:{text:((g=r.value)==null?void 0:g.unit)??" ",fontStyle:sie.bold},guidingTextBottomRight:void 0,disabled:!1}}),h=W(()=>{var m;return{icon:{name:"Clock",iconColor:"#A6A6A6",tooltip:"Days from creation to completion, including waiting"},topRightValue:void 0,primaryValue:{text:d.value.mainLabel,fontStyle:{color:"#232323",fontSize:"24px",fontWeight:"700"},tooltip:"Days from creation to completion, including waiting"},secondaryValue:{text:((m=d.value.guidingTextBottomLeft)==null?void 0:m.text)??"",fontStyle:{color:"#6b6b6b",fontSize:"12px",fontWeight:"400"},tooltip:"Days from creation to completion, including waiting"},backgroundColor:"#FAFAFA",isLoading:!1,title:"Lead time",readOnly:!0}}),f={elapsedTime:r,dashboardStore:i,refetchingStatus:a,actual_due_date:o,created_at:s,iconColor:l,getTimeGap:u,emits:c,cardConfiguration:d,smallCardConfiguration:h,get SmallCard(){return wE}};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}});function azr(e,t,n,r,i,a){return L(),Ke(r.SmallCard,Co(Uo({...r.smallCardConfiguration})),null,16)}const ozr=pi(izr,[["render",azr],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/scene-home/dashboard-cards/CardLeadTime.vue"]]),szr=dt({__name:"CardPermission",setup(e,{expose:t}){t();const n=Im(),{iconColor:r}=_r(n),i=W(()=>({title:"Permission",backgroundColor:Iz.WHITE,icon:{name:"Lock",iconColor:r.value,tooltip:"Access permissions"},mainLabel:"Locked",guidingTextBottomLeft:{text:"Read-only",fontStyle:sie.normal,tooltip:"Contact project admin to unlock"},key:"completed",disabled:!1})),a={dashboardStore:n,iconColor:r,cardConfiguration:i};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}}),lzr={class:"card-title"};function uzr(e,t,n,r,i,a){const o=ei("SimpleCard");return L(),Ke(o,{class:"card-simple",title:r.cardConfiguration.title,"background-color":r.cardConfiguration.backgroundColor,"guiding-text-bottom-left":r.cardConfiguration.guidingTextBottomLeft,"guiding-text-bottom-right":r.cardConfiguration.guidingTextBottomRight,icon:r.cardConfiguration.icon,disabled:!1},{body:Ie(()=>[he("div",lzr,wt(r.cardConfiguration.mainLabel),1)]),_:1},8,["title","background-color","guiding-text-bottom-left","guiding-text-bottom-right","icon"])}const czr=pi(szr,[["render",uzr],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/scene-home/dashboard-cards/CardPermission.vue"]]),dzr=dt({__name:"DisplayTextTruncate",props:{limitDecimal:{type:Number,required:!1,default:2},type:{type:String,required:!1,default:"number"},value:{type:String,required:!0},truncate:{type:String,required:!0,default:"end"}},setup(e,{expose:t}){t();const n=e,r=W(()=>{if(s.value&&n.value)return n.value}),i=W(()=>{if(n.value)return a(n.value)}),a=m=>{if(n.type==="string")return m;if(n.type==="number"&&n.limitDecimal!==void 0){const g=parseFloat(m);return isNaN(g)?m:c(g,n.limitDecimal)}return m};function o(m){const g=getComputedStyle(m),b=parseFloat(g.width),w=document.createElement("canvas").getContext("2d");return w?(w.font=`${g.fontSize} ${g.fontFamily}`,w.measureText(m.innerText).width>b):!1}const s=q(!1),l=q(null),u=()=>{kt(()=>{const m=l.value;let g=!1;m&&(s.value=o(m)||g)})},c=(m,g)=>{const b=Number(m).toFixed(g).split(".");return b[0]=b[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),b.join(".")};dn(()=>{u()});const d=W(()=>s.value?1e3:300);ut([()=>n.value],()=>{u()},{deep:!0});const h=new ResizeObserver(()=>{u()});dn(()=>{l.value&&h.observe(l.value)}),Kr(()=>{l.value&&h.unobserve(l.value)});const f={props:n,tooltipValue:r,displayValue:i,formattedValue:a,checkEllipsis:o,hasEllipsis:s,valueRef:l,validateEllipsis:u,formatNumber:c,tooltipDelay:d,resizeObserver:h};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}});function fzr(e,t,n,r,i,a){const o=ei("ArboTooltip");return L(),te("div",{class:"truncated-text-wrapper",onHover:r.validateEllipsis},[Se(o,{class:"w-full h-full flex",content:r.tooltipValue,delay:r.tooltipDelay},{default:Ie(()=>[ct(he("div",{class:"truncated-text",style:tn({direction:r.props.truncate==="start"?"rtl":"ltr"})},[he("span",{ref:"valueRef",class:ve(["value",{truncated:r.hasEllipsis}])},wt(r.displayValue),3)],4),[[ui,r.props.value.length>0]])]),_:1},8,["content","delay"])],32)}const hzr=pi(dzr,[["render",fzr],["__scopeId","data-v-7d0c56fb"],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/common/DisplayTextTruncate.vue"]]),pzr=dt({__name:"CardRecentActivity",setup(e,{expose:t}){t();const n=Zi,r=Im(),{activities:i}=_r(r),a=W(()=>i.value??[]),o=W(()=>a.value.length),{refreshDashboard:s}=O3(),l=v=>{const x=sessionStorage.getItem("user.ws_user_role_id")||"";return v===x},u=v=>({user:{name:v.display_name,id:v.id,profile_image:v.profile_image,color:{bgColor:v.color.bgColor,textColor:v.color.textColor},initial:v.initial},isMe:l(v.id),showProfile:!0,appendTo:document.body}),c=v=>v=="start_date"?"Start date":v=="due_date"?"Due date":v,d=v=>Array.isArray(v)?v.map(x=>c(x)).join(" & "):v,h=v=>`${v.user.display_name} ${v.event} ${d(v.field)}`,f=q(!1),m=async()=>{f.value=!0,await s("activities"),f.value=!1},g=W(()=>({icon:void 0,title:"Activity",backgroundColor:"#ffffff",isLoading:f.value,height:"260px"})),b=Bl(),{currentSceneTabId:w}=_r(b),C={vTooltip:n,dashboardStore:r,activities:i,sceneActivities:a,activityCount:o,refreshDashboard:s,checkIsMe:l,avatarProps:u,convertText:c,formatField:d,displayActivity:h,refreshing:f,handleRefresh:m,mediumCardConfig:g,sceneStore:b,currentSceneTabId:w,toActivityTab:()=>{w.value="log"},get TessButton(){return pr},get Icon(){return or},get MediumCard(){return PQ},get TessAvatarV2(){return Cm},DisplayTextTruncate:hzr,get FUll_DATE_FORMAT(){return DG},get formatDate(){return Hv}};return Object.defineProperty(C,"__isScriptSetup",{enumerable:!1,value:!0}),C}}),mzr={class:"card-actions"},gzr={key:0,class:"flex flex-col max-w-full gap-[12px] w-full"},vzr={class:"activity-time flex-1 text-right"},yzr={key:1,class:"max-h-[100%] w-full flex flex-1 flex-col items-center justify-center"};function bzr(e,t,n,r,i,a){const o=ei("ArboIcon");return L(),Ke(r.MediumCard,Qt(r.mediumCardConfig,{style:{height:"100%",width:"100%","--bg-color":"#ffffff"}}),{headerSlot2:Ie(()=>[he("div",mzr,[ct((L(),Ke(r.TessButton,{style:{padding:"0 8px"},variant:["secondary"],size:"small",onClick:r.toActivityTab},{default:Ie(()=>[...t[0]||(t[0]=[he("span",{style:{"font-weight":"400"}}," View all",-1)])]),_:1})),[[r.vTooltip,{content:"Add Activity"}]]),ct((L(),Ke(r.TessButton,{variant:["secondary","icon"],size:"small",onClick:r.handleRefresh},{default:Ie(()=>[Se(r.Icon,{src:"ArrowRotate",color:"var(--icon-color)"})]),_:1})),[[r.vTooltip,{content:"Refresh"}]])])]),primarySlot:Ie(()=>[r.activityCount>=1?(L(),te("div",gzr,[(L(!0),te(Vt,null,pn(r.sceneActivities,s=>(L(),te("div",{key:s.id,class:"scene-activity"},[Se(r.TessAvatarV2,Qt({ref_for:!0},r.avatarProps(s.user),{class:"avatar"}),null,16),Se(r.DisplayTextTruncate,{truncate:"end",value:r.displayActivity(s),tooltip:r.displayActivity(s),type:"string",style:{"font-size":"12px",color:"#232323"}},null,8,["value","tooltip"]),ct((L(),te("div",vzr,[Mt(wt(r.formatDate(s.timestamp,"MMM DD · HH:mm")),1)])),[[r.vTooltip,{content:r.formatDate(s.timestamp,r.FUll_DATE_FORMAT)}]])]))),128))])):(L(),te("div",yzr,[Se(o,{type:"visual",name:"NoActivity",class:"h-[135px]"}),t[1]||(t[1]=he("span",null," Looks like there is no activity yet. ",-1))]))]),_:1},16)}const wzr=pi(pzr,[["render",bzr],["__scopeId","data-v-6352aefc"],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/scene-home/dashboard-cards/CardRecentActivity.vue"]]),_zr=dt({__name:"CardStatus",emits:["reload"],setup(e,{expose:t,emit:n}){t();const r=Im(),{actual_due_date:i,due_date:a}=_r(r),o=n;ut(i,()=>{i.value==null&&o("reload")},{immediate:!0});const s=W(()=>({icon:{name:"Calendar",iconColor:"#A6A6A6",tooltip:"Days countdown to due"},topRightValue:{text:a.value?Hv(a.value,"MMM DD"):" ",fontStyle:{color:"#6B6B6B",fontSize:"12px",fontWeight:"400"},tooltip:a.value?`Due: ${Hv(a.value,DS)}`:"Due date not set"},primaryValue:{text:"Completed",fontStyle:{color:"#232323",fontSize:"24px",fontWeight:"700"},tooltip:"Days from creation to completion, including waiting"},secondaryValue:{text:i.value?Hv(i.value,"MMM DD"):" ",fontStyle:{color:"#6B6B6B",fontSize:"12px",fontWeight:"400"},tooltip:i.value?`Actual due: ${Hv(i.value,DG)}`:void 0},backgroundColor:Iz.GREEN,isLoading:!1,title:"Due",readOnly:!0})),l={dashboardStore:r,actual_due_date:i,due_date:a,emits:o,smallCardConfiguration:s,get SmallCard(){return wE}};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}});function Czr(e,t,n,r,i,a){return L(),Ke(r.SmallCard,Co(Uo(r.smallCardConfiguration)),null,16)}const Szr=pi(_zr,[["render",Czr],["__scopeId","data-v-5007d073"],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/scene-home/dashboard-cards/CardStatus.vue"]]),Ezr=dt({__name:"CardUnresolved",setup(e,{expose:t}){t();const n=Im(),{unresolved_comment:r}=_r(n),i=W(()=>r.value??0),a=W(()=>i.value>0),o=W(()=>{const l=a.value?"#232323":"#D7D7D7";return{icon:{name:"CommentDots",iconColor:"#A6A6A6",tooltip:"Comments to resolve"},primaryValue:{text:i.value.toString(),fontStyle:{color:l,fontSize:"24px",fontWeight:"700"},tooltip:"Comments to resolve"},secondaryValue:{text:"Comments",fontStyle:{color:"#6b6b6b",fontSize:"12px",fontWeight:"400"},tooltip:"Comments to resolve"},backgroundColor:"#FAFAFA",isLoading:!1,title:"Unresolved",readOnly:!0}}),s={dashboardStore:n,unresolved_comment:r,total_unresolved_comments:i,hasData:a,smallCardConfiguration:o,get SmallCard(){return wE}};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}});function xzr(e,t,n,r,i,a){return L(),Ke(r.SmallCard,Qt({...r.smallCardConfiguration},{onClick:e.to}),null,16,["onClick"])}const Tzr=pi(Ezr,[["render",xzr],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/scene-home/dashboard-cards/CardUnresolved.vue"]]),kzr="MMM d",Rke=(e,t)=>e?nHr(Dke(e,t),kzr):null,mxt=(e,t)=>jEt(Dke(e,t),Dke(new Date,t));function Dzr(e,t,n,r){const i=Rke(e,t),a=Rke(r,t);if(n==="completed")return{mainText:"Completed",topRightValue:i,secondaryValue:a,backgroundColor:"#E0F2F1",textColor:"#26A69A"};if(!e)return{mainText:"-",topRightValue:null,secondaryValue:null,backgroundColor:"#FAFAFA",textColor:"#D7D7D7"};const o=mxt(e,t);return o<0?{mainText:"Overdue",topRightValue:i,secondaryValue:`${Math.abs(o)} days late`,backgroundColor:"#FEE4E2",textColor:"#D92D20"}:o===0?{mainText:"Today",topRightValue:null,secondaryValue:null,backgroundColor:"#FEECDC",textColor:"#F7941D"}:o===1?{mainText:"Tomorrow",topRightValue:i,secondaryValue:null,backgroundColor:"#FAFAFA",textColor:"#212121"}:{mainText:`${o}`,topRightValue:i,secondaryValue:"days",backgroundColor:"#FAFAFA",textColor:"#212121"}}function Azr(e,t){if(!e)return{mainText:"-",secondaryText:" ",backgroundColor:"#FAFAFA",textColor:"#D7D7D7",topRightValue:" "};const n=mxt(e,t),r=Rke(e,t);return n<-1?{mainText:"Pending",topRightValue:r,backgroundColor:"#FEE4E2",textColor:"#D92D20",secondaryText:`${Math.abs(n)} days late`}:n===-1?{mainText:"Yesterday",secondaryText:null,backgroundColor:"#FEE4E2",textColor:"#D92D20",topRightValue:r}:n===0?{mainText:"Today",secondaryText:null,backgroundColor:"#FEECDC",textColor:"#F7941D",topRightValue:null}:n===1?{mainText:"Tomorrow",secondaryText:null,backgroundColor:"#FAFAFA",textColor:"#212121",topRightValue:r}:{mainText:`${n}`,secondaryText:"days",backgroundColor:"#FAFAFA",textColor:"#212121",topRightValue:r}}const gxt={getCookie(e,t){const n=document.cookie.split(";");for(let r=0;r<n.length;r++){const i=n[r].trim();if(i.startsWith(e+"="))return i.substring(e.length+1)}return null}},Ozr=dt({__name:"CardUntilDue",setup(e,{expose:t}){t();const n=Im(),{due_date:r,actual_due_date:i,is_completed:a}=_r(n),o=W(()=>r.value),s=W(()=>i.value),l=W(()=>a.value=="1"?"completed":"in progress"),u=W(()=>o.value?`Due: ${Hv(o.value,DS)}`:"Due date not set"),c=W(()=>{const h=u.value,f=gxt.getCookie(KR)||"Asia/Tokyo",{mainText:m,secondaryValue:g,backgroundColor:b,textColor:w,topRightValue:_}=Dzr(o.value,f,l.value,s.value);return{icon:{name:"Calendar",iconColor:"#A6A6A6",tooltip:h},topRightValue:{text:_??"",fontStyle:{color:"#6B6B6B",fontSize:"12px",fontWeight:"400"}},primaryValue:{text:m,fontStyle:{color:w,fontSize:"24px",fontWeight:"700"},tooltip:h},secondaryValue:{text:g,fontStyle:{color:"#6B6B6B",fontSize:"12px",fontWeight:"400"},tooltip:h},backgroundColor:b,isLoading:!1,title:"Due",readOnly:!0}}),d={dashboardStore:n,due_date:r,actual_due_date:i,is_completed:a,dueDate:o,completedDate:s,status:l,tooltip:u,smallCardConfiguration:c,get SmallCard(){return wE}};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}});function Izr(e,t,n,r,i,a){return L(),Ke(r.SmallCard,Co(Uo(r.smallCardConfiguration)),null,16)}const $zr=pi(Ozr,[["render",Izr],["__scopeId","data-v-53bbe9d4"],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/scene-home/dashboard-cards/CardUntilDue.vue"]]),Rzr=dt({__name:"CardUntilStart",setup(e,{expose:t}){t();const n=Im(),{start_date:r}=_r(n),i=W(()=>r.value),a=W(()=>i.value?`Start: ${Hv(i.value,DS)}`:"Start date not set"),o=W(()=>{const l=gxt.getCookie(KR)||"Asia/Tokyo",{mainText:u,secondaryText:c,backgroundColor:d,textColor:h,topRightValue:f}=Azr(i.value,l);return{icon:{name:"Calendar",iconColor:"#a6a6a6",tooltip:a.value},topRightValue:{text:f,fontStyle:{color:"#6B6B6B",fontSize:"12px",fontWeight:"400"}},primaryValue:{text:u,fontStyle:{color:h,fontSize:"24px",fontWeight:"700"},tooltip:a.value},secondaryValue:{text:c,fontStyle:{color:"#6b6b6b",fontSize:"12px",fontWeight:"400"},tooltip:a.value},backgroundColor:d,isLoading:!1,title:"Start",readOnly:!0}}),s={dashboardStore:n,start_date:r,startDate:i,tooltipRight:a,smallCardConfiguration:o,get SmallCard(){return wE}};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}});function Pzr(e,t,n,r,i,a){return L(),Ke(r.SmallCard,Co(Uo(r.smallCardConfiguration)),null,16)}const Mzr=pi(Rzr,[["render",Pzr],["__scopeId","data-v-b0a96b87"],["__file","/home/mor-ubuntu/arbo/arbo-web-scene/src/components/scene-home/dashboard-cards/CardUntilStart.vue"]]);function Pke(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Nzr(e){if(Array.isArray(e))return Pke(e)}function vxt(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Fzr(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){vxt(a,r,i,o,s,"next",l)}function s(l){vxt(a,r,i,o,s,"throw",l)}o(void 0)})}}function Lzr(e,t,n){return(t=zzr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bzr(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vzr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
788
788
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yxt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Uzr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yxt(Object(n),!0).forEach(function(r){Lzr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yxt(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mke(){Mke=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(D,A,B,R){return Object.defineProperty(D,A,{value:B,enumerable:!R,configurable:!R,writable:!R})}try{l({},"")}catch{l=function(A,B,R){return A[B]=R}}function u(D,A,B,R){var $=A&&A.prototype instanceof h?A:h,N=Object.create($.prototype);return l(N,"_invoke",function(M,H,G){var ne=1;return function(re,Q){if(ne===3)throw Error("Generator is already running");if(ne===4){if(re==="throw")throw Q;return{value:e,done:!0}}for(G.method=re,G.arg=Q;;){var U=G.delegate;if(U){var F=x(U,G);if(F){if(F===d)continue;return F}}if(G.method==="next")G.sent=G._sent=G.arg;else if(G.method==="throw"){if(ne===1)throw ne=4,G.arg;G.dispatchException(G.arg)}else G.method==="return"&&G.abrupt("return",G.arg);ne=3;var X=c(M,H,G);if(X.type==="normal"){if(ne=G.done?4:2,X.arg===d)continue;return{value:X.arg,done:G.done}}X.type==="throw"&&(ne=4,G.method="throw",G.arg=X.arg)}}}(D,B,new O(R||[])),!0),N}function c(D,A,B){try{return{type:"normal",arg:D.call(A,B)}}catch(R){return{type:"throw",arg:R}}}t.wrap=u;var d={};function h(){}function f(){}function m(){}var g={};l(g,a,function(){return this});var b=Object.getPrototypeOf,w=b&&b(b(k([])));w&&w!==n&&r.call(w,a)&&(g=w);var _=m.prototype=h.prototype=Object.create(g);function C(D){["next","throw","return"].forEach(function(A){l(D,A,function(B){return this._invoke(A,B)})})}function v(D,A){function B($,N,M,H){var G=c(D[$],D,N);if(G.type!=="throw"){var ne=G.arg,re=ne.value;return re&&typeof re=="object"&&r.call(re,"__await")?A.resolve(re.__await).then(function(Q){B("next",Q,M,H)},function(Q){B("throw",Q,M,H)}):A.resolve(re).then(function(Q){ne.value=Q,M(ne)},function(Q){return B("throw",Q,M,H)})}H(G.arg)}var R;l(this,"_invoke",function($,N){function M(){return new A(function(H,G){B($,N,H,G)})}return R=R?R.then(M,M):M()},!0)}function x(D,A){var B=A.method,R=D.i[B];if(R===e)return A.delegate=null,B==="throw"&&D.i.return&&(A.method="return",A.arg=e,x(D,A),A.method==="throw")||B!=="return"&&(A.method="throw",A.arg=new TypeError("The iterator does not provide a '"+B+"' method")),d;var $=c(R,D.i,A.arg);if($.type==="throw")return A.method="throw",A.arg=$.arg,A.delegate=null,d;var N=$.arg;return N?N.done?(A[D.r]=N.value,A.next=D.n,A.method!=="return"&&(A.method="next",A.arg=e),A.delegate=null,d):N:(A.method="throw",A.arg=new TypeError("iterator result is not an object"),A.delegate=null,d)}function E(D){this.tryEntries.push(D)}function T(D){var A=D[4]||{};A.type="normal",A.arg=e,D[4]=A}function O(D){this.tryEntries=[[-1]],D.forEach(E,this),this.reset(!0)}function k(D){if(D!=null){var A=D[a];if(A)return A.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var B=-1,R=function $(){for(;++B<D.length;)if(r.call(D,B))return $.value=D[B],$.done=!1,$;return $.value=e,$.done=!0,$};return R.next=R}}throw new TypeError(typeof D+" is not iterable")}return f.prototype=m,l(_,"constructor",m),l(m,"constructor",f),f.displayName=l(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(D){var A=typeof D=="function"&&D.constructor;return!!A&&(A===f||(A.displayName||A.name)==="GeneratorFunction")},t.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,m):(D.__proto__=m,l(D,s,"GeneratorFunction")),D.prototype=Object.create(_),D},t.awrap=function(D){return{__await:D}},C(v.prototype),l(v.prototype,o,function(){return this}),t.AsyncIterator=v,t.async=function(D,A,B,R,$){$===void 0&&($=Promise);var N=new v(u(D,A,B,R),$);return t.isGeneratorFunction(A)?N:N.next().then(function(M){return M.done?M.value:N.next()})},C(_),l(_,s,"Generator"),l(_,a,function(){return this}),l(_,"toString",function(){return"[object Generator]"}),t.keys=function(D){var A=Object(D),B=[];for(var R in A)B.unshift(R);return function $(){for(;B.length;)if((R=B.pop())in A)return $.value=R,$.done=!1,$;return $.done=!0,$}},t.values=k,O.prototype={constructor:O,reset:function(D){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!D)for(var A in this)A.charAt(0)==="t"&&r.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=e)},stop:function(){this.done=!0;var D=this.tryEntries[0][4];if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(D){if(this.done)throw D;var A=this;function B(ne){N.type="throw",N.arg=D,A.next=ne}for(var R=A.tryEntries.length-1;R>=0;--R){var $=this.tryEntries[R],N=$[4],M=this.prev,H=$[1],G=$[2];if($[0]===-1)return B("end"),!1;if(!H&&!G)throw Error("try statement without catch or finally");if($[0]!=null&&$[0]<=M){if(M<H)return this.method="next",this.arg=e,B(H),!0;if(M<G)return B(G),!1}}},abrupt:function(D,A){for(var B=this.tryEntries.length-1;B>=0;--B){var R=this.tryEntries[B];if(R[0]>-1&&R[0]<=this.prev&&this.prev<R[2]){var $=R;break}}$&&(D==="break"||D==="continue")&&$[0]<=A&&A<=$[2]&&($=null);var N=$?$[4]:{};return N.type=D,N.arg=A,$?(this.method="next",this.next=$[2],d):this.complete(N)},complete:function(D,A){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&A&&(this.next=A),d},finish:function(D){for(var A=this.tryEntries.length-1;A>=0;--A){var B=this.tryEntries[A];if(B[2]===D)return this.complete(B[4],B[3]),T(B),d}},catch:function(D){for(var A=this.tryEntries.length-1;A>=0;--A){var B=this.tryEntries[A];if(B[0]===D){var R=B[4];if(R.type==="throw"){var $=R.arg;T(B)}return $}}throw Error("illegal catch attempt")},delegateYield:function(D,A,B){return this.delegate={i:k(D),r:A,n:B},this.method==="next"&&(this.arg=e),d}},t}function jzr(e){return Nzr(e)||Bzr(e)||Wzr(e)||Vzr()}function Hzr(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zzr(e){var t=Hzr(e,"string");return typeof t=="symbol"?t:t+""}function Wzr(e,t){if(e){if(typeof e=="string")return Pke(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pke(e,t):void 0}}/*!
|
|
789
789
|
* @kurkle/color v0.3.4
|
|
790
790
|
* https://github.com/kurkle/color#readme
|