@arbocollab/arbo-web-people 1.26.6 → 1.26.7

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/cjs/index.cjs.js CHANGED
@@ -1190,7 +1190,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1190
1190
  * (c) 2017-2022 chartjs-plugin-datalabels contributors
1191
1191
  * Released under the MIT license
1192
1192
  */var H7t=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),VAe={toTextLines:function(e){var t=[],n;for(e=[].concat(e);e.length;)n=e.pop(),typeof n=="string"?t.unshift.apply(t,n.split(`
1193
- `)):Array.isArray(n)?e.push.apply(e,n):Vs(e)||t.unshift(""+n);return t},textSize:function(e,t,n){var r=[].concat(t),a=r.length,o=e.font,l=0,s;for(e.font=n.string,s=0;s<a;++s)l=Math.max(e.measureText(r[s]).width,l);return e.font=o,{height:a*n.lineHeight,width:l}},bound:function(e,t,n){return Math.max(e,Math.min(t,n))},arrayDiff:function(e,t){var n=e.slice(),r=[],a,o,l,s;for(a=0,l=t.length;a<l;++a)s=t[a],o=n.indexOf(s),o===-1?r.push([s,1]):n.splice(o,1);for(a=0,l=n.length;a<l;++a)r.push([n[a],-1]);return r},rasterize:function(e){return Math.round(e*H7t)/H7t}};function X4e(e,t){var n=t.x,r=t.y;if(n===null)return{x:0,y:-1};if(r===null)return{x:1,y:0};var a=e.x-n,o=e.y-r,l=Math.sqrt(a*a+o*o);return{x:l?a/l:0,y:l?o/l:-1}}function Jel(e,t,n,r,a){switch(a){case"center":n=r=0;break;case"bottom":n=0,r=1;break;case"right":n=1,r=0;break;case"left":n=-1,r=0;break;case"top":n=0,r=-1;break;case"start":n=-n,r=-r;break;case"end":break;default:a*=Math.PI/180,n=Math.cos(a),r=Math.sin(a);break}return{x:e,y:t,vx:n,vy:r}}var jel=0,$Pn=1,eqn=2,tqn=4,nqn=8;function Xve(e,t,n){var r=jel;return e<n.left?r|=$Pn:e>n.right&&(r|=eqn),t<n.top?r|=nqn:t>n.bottom&&(r|=tqn),r}function Gel(e,t){for(var n=e.x0,r=e.y0,a=e.x1,o=e.y1,l=Xve(n,r,t),s=Xve(a,o,t),d,u,h;!(!(l|s)||l&s);)d=l||s,d&nqn?(u=n+(a-n)*(t.top-r)/(o-r),h=t.top):d&tqn?(u=n+(a-n)*(t.bottom-r)/(o-r),h=t.bottom):d&eqn?(h=r+(o-r)*(t.right-n)/(a-n),u=t.right):d&$Pn&&(h=r+(o-r)*(t.left-n)/(a-n),u=t.left),d===l?(n=u,r=h,l=Xve(n,r,t)):(a=u,o=h,s=Xve(a,o,t));return{x0:n,x1:a,y0:r,y1:o}}function Hve(e,t){var n=t.anchor,r=e,a,o;return t.clamp&&(r=Gel(r,t.area)),n==="start"?(a=r.x0,o=r.y0):n==="end"?(a=r.x1,o=r.y1):(a=(r.x0+r.x1)/2,o=(r.y0+r.y1)/2),Jel(a,o,e.vx,e.vy,t.align)}var Cve={arc:function(e,t){var n=(e.startAngle+e.endAngle)/2,r=Math.cos(n),a=Math.sin(n),o=e.innerRadius,l=e.outerRadius;return Hve({x0:e.x+r*o,y0:e.y+a*o,x1:e.x+r*l,y1:e.y+a*l,vx:r,vy:a},t)},point:function(e,t){var n=X4e(e,t.origin),r=n.x*e.options.radius,a=n.y*e.options.radius;return Hve({x0:e.x-r,y0:e.y-a,x1:e.x+r,y1:e.y+a,vx:n.x,vy:n.y},t)},bar:function(e,t){var n=X4e(e,t.origin),r=e.x,a=e.y,o=0,l=0;return e.horizontal?(r=Math.min(e.x,e.base),o=Math.abs(e.base-e.x)):(a=Math.min(e.y,e.base),l=Math.abs(e.base-e.y)),Hve({x0:r,y0:a+l,x1:r+o,y1:a,vx:n.x,vy:n.y},t)},fallback:function(e,t){var n=X4e(e,t.origin);return Hve({x0:e.x,y0:e.y,x1:e.x+(e.width||0),y1:e.y+(e.height||0),vx:n.x,vy:n.y},t)}},W3=VAe.rasterize;function Iel(e){var t=e.borderWidth||0,n=e.padding,r=e.size.height,a=e.size.width,o=-a/2,l=-r/2;return{frame:{x:o-n.left-t,y:l-n.top-t,w:a+n.width+t*2,h:r+n.height+t*2},text:{x:o,y:l,w:a,h:r}}}function Xel(e,t){var n=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!n)return null;if(n.xCenter!==void 0&&n.yCenter!==void 0)return{x:n.xCenter,y:n.yCenter};var r=n.getBasePixel();return e.horizontal?{x:r,y:null}:{x:null,y:r}}function Hel(e){return e instanceof s2?Cve.arc:e instanceof AAe?Cve.point:e instanceof pAe?Cve.bar:Cve.fallback}function Cel(e,t,n,r,a,o){var l=Math.PI/2;if(o){var s=Math.min(o,a/2,r/2),d=t+s,u=n+s,h=t+r-s,p=n+a-s;e.moveTo(t,u),d<h&&u<p?(e.arc(d,u,s,-Math.PI,-l),e.arc(h,u,s,-l,0),e.arc(h,p,s,0,l),e.arc(d,p,s,l,Math.PI)):d<h?(e.moveTo(d,n),e.arc(h,u,s,-l,l),e.arc(d,u,s,l,Math.PI+l)):u<p?(e.arc(d,u,s,-Math.PI,0),e.arc(d,p,s,0,Math.PI)):e.arc(d,u,s,-Math.PI,Math.PI),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,a)}function Lel(e,t,n){var r=n.backgroundColor,a=n.borderColor,o=n.borderWidth;!r&&(!a||!o)||(e.beginPath(),Cel(e,W3(t.x)+o/2,W3(t.y)+o/2,W3(t.w)-o,W3(t.h)-o,n.borderRadius),e.closePath(),r&&(e.fillStyle=r,e.fill()),a&&o&&(e.strokeStyle=a,e.lineWidth=o,e.lineJoin="miter",e.stroke()))}function Kel(e,t,n){var r=n.lineHeight,a=e.w,o=e.x,l=e.y+r/2;return t==="center"?o+=a/2:(t==="end"||t==="right")&&(o+=a),{h:r,w:a,x:o,y:l}}function Pel(e,t,n){var r=e.shadowBlur,a=n.stroked,o=W3(n.x),l=W3(n.y),s=W3(n.w);a&&e.strokeText(t,o,l,s),n.filled&&(r&&a&&(e.shadowBlur=0),e.fillText(t,o,l,s),r&&a&&(e.shadowBlur=r))}function qel(e,t,n,r){var a=r.textAlign,o=r.color,l=!!o,s=r.font,d=t.length,u=r.textStrokeColor,h=r.textStrokeWidth,p=u&&h,U;if(!(!d||!l&&!p))for(n=Kel(n,a,s),e.font=s.string,e.textAlign=a,e.textBaseline="middle",e.shadowBlur=r.textShadowBlur,e.shadowColor=r.textShadowColor,l&&(e.fillStyle=o),p&&(e.lineJoin="round",e.lineWidth=h,e.strokeStyle=u),U=0,d=t.length;U<d;++U)Pel(e,t[U],{stroked:p,filled:l,w:n.w,x:n.x,y:n.y+n.h*U})}var rqn=function(e,t,n,r){var a=this;a._config=e,a._index=r,a._model=null,a._rects=null,a._ctx=t,a._el=n};Hk(rqn.prototype,{_modelize:function(e,t,n,r){var a=this,o=a._index,l=qp(pu([n.font,{}],r,o)),s=pu([n.color,Cu.color],r,o);return{align:pu([n.align,"center"],r,o),anchor:pu([n.anchor,"center"],r,o),area:r.chart.chartArea,backgroundColor:pu([n.backgroundColor,null],r,o),borderColor:pu([n.borderColor,null],r,o),borderRadius:pu([n.borderRadius,0],r,o),borderWidth:pu([n.borderWidth,0],r,o),clamp:pu([n.clamp,!1],r,o),clip:pu([n.clip,!1],r,o),color:s,display:e,font:l,lines:t,offset:pu([n.offset,4],r,o),opacity:pu([n.opacity,1],r,o),origin:Xel(a._el,r),padding:RU(pu([n.padding,4],r,o)),positioner:Hel(a._el),rotation:pu([n.rotation,0],r,o)*(Math.PI/180),size:VAe.textSize(a._ctx,t,l),textAlign:pu([n.textAlign,"start"],r,o),textShadowBlur:pu([n.textShadowBlur,0],r,o),textShadowColor:pu([n.textShadowColor,s],r,o),textStrokeColor:pu([n.textStrokeColor,s],r,o),textStrokeWidth:pu([n.textStrokeWidth,0],r,o)}},update:function(e){var t=this,n=null,r=null,a=t._index,o=t._config,l,s,d,u=pu([o.display,!0],e,a);u&&(l=e.dataset.data[a],s=Ji(Fc(o.formatter,[l,e]),l),d=Vs(s)?[]:VAe.toTextLines(s),d.length&&(n=t._modelize(u,d,o,e),r=Iel(n))),t._model=n,t._rects=r},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var n=this,r=e.ctx,a=n._model,o=n._rects,l;this.visible()&&(r.save(),a.clip&&(l=a.area,r.beginPath(),r.rect(l.left,l.top,l.right-l.left,l.bottom-l.top),r.clip()),r.globalAlpha=VAe.bound(0,a.opacity,1),r.translate(W3(t.x),W3(t.y)),r.rotate(a.rotation),Lel(r,o.frame,a),qel(r,a.lines,o.text,a),r.restore())}});var _el=Number.MIN_SAFE_INTEGER||-9007199254740991,$el=Number.MAX_SAFE_INTEGER||9007199254740991;function hie(e,t,n){var r=Math.cos(n),a=Math.sin(n),o=t.x,l=t.y;return{x:o+r*(e.x-o)-a*(e.y-l),y:l+a*(e.x-o)+r*(e.y-l)}}function C7t(e,t){var n=$el,r=_el,a=t.origin,o,l,s,d,u;for(o=0;o<e.length;++o)l=e[o],s=l.x-a.x,d=l.y-a.y,u=t.vx*s+t.vy*d,n=Math.min(n,u),r=Math.max(r,u);return{min:n,max:r}}function Lve(e,t){var n=t.x-e.x,r=t.y-e.y,a=Math.sqrt(n*n+r*r);return{vx:(t.x-e.x)/a,vy:(t.y-e.y)/a,origin:e,ln:a}}var aqn=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};Hk(aqn.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,n){this._rotation=n,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this,n=1,r=t._rect;return e=hie(e,t.center(),-t._rotation),!(e.x<r.x-n||e.y<r.y-n||e.x>r.x+r.w+n*2||e.y>r.y+r.h+n*2)},intersects:function(e){var t=this._points(),n=e._points(),r=[Lve(t[0],t[1]),Lve(t[0],t[3])],a,o,l;for(this._rotation!==e._rotation&&r.push(Lve(n[0],n[1]),Lve(n[0],n[3])),a=0;a<r.length;++a)if(o=C7t(t,r[a]),l=C7t(n,r[a]),o.max<l.min||l.max<o.min)return!1;return!0},_points:function(){var e=this,t=e._rect,n=e._rotation,r=e.center();return[hie({x:t.x,y:t.y},r,n),hie({x:t.x+t.w,y:t.y},r,n),hie({x:t.x+t.w,y:t.y+t.h},r,n),hie({x:t.x,y:t.y+t.h},r,n)]}});function oqn(e,t,n){var r=t.positioner(e,t),a=r.vx,o=r.vy;if(!a&&!o)return{x:r.x,y:r.y};var l=n.w,s=n.h,d=t.rotation,u=Math.abs(l/2*Math.cos(d))+Math.abs(s/2*Math.sin(d)),h=Math.abs(l/2*Math.sin(d))+Math.abs(s/2*Math.cos(d)),p=1/Math.max(Math.abs(a),Math.abs(o));return u*=a*p,h*=o*p,u+=t.offset*a,h+=t.offset*o,{x:r.x+u,y:r.y+h}}function etl(e,t){var n,r,a,o;for(n=e.length-1;n>=0;--n)for(a=e[n].$layout,r=n-1;r>=0&&a._visible;--r)o=e[r].$layout,o._visible&&a._box.intersects(o._box)&&t(a,o);return e}function ttl(e){var t,n,r,a,o,l,s;for(t=0,n=e.length;t<n;++t)r=e[t],a=r.$layout,a._visible&&(s=new Proxy(r._el,{get:(d,u)=>d.getProps([u],!0)[u]}),o=r.geometry(),l=oqn(s,r.model(),o),a._box.update(l,o,r.rotation()));return etl(e,function(d,u){var h=d._hidable,p=u._hidable;h&&p||p?u._visible=!1:h&&(d._visible=!1)})}var mAe={prepare:function(e){var t=[],n,r,a,o,l;for(n=0,a=e.length;n<a;++n)for(r=0,o=e[n].length;r<o;++r)l=e[n][r],t.push(l),l.$layout={_box:new aqn,_hidable:!1,_visible:!0,_set:n,_idx:l._index};return t.sort(function(s,d){var u=s.$layout,h=d.$layout;return u._idx===h._idx?h._set-u._set:h._idx-u._idx}),this.update(t),t},update:function(e){var t=!1,n,r,a,o,l;for(n=0,r=e.length;n<r;++n)a=e[n],o=a.model(),l=a.$layout,l._hidable=o&&o.display==="auto",l._visible=a.visible(),t|=l._hidable;t&&ttl(e)},lookup:function(e,t){var n,r;for(n=e.length-1;n>=0;--n)if(r=e[n].$layout,r&&r._visible&&r._box.contains(t))return e[n];return null},draw:function(e,t){var n,r,a,o,l,s;for(n=0,r=t.length;n<r;++n)a=t[n],o=a.$layout,o._visible&&(l=a.geometry(),s=oqn(a._el,a.model(),l),o._box.update(s,l,a.rotation()),a.draw(e,s))}},ntl=function(e){if(Vs(e))return null;var t=e,n,r,a;if(bs(e))if(!Vs(e.label))t=e.label;else if(!Vs(e.r))t=e.r;else for(t="",n=Object.keys(e),a=0,r=n.length;a<r;++a)t+=(a!==0?", ":"")+n[a]+": "+e[n[a]];return""+t},rtl={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:ntl,labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},TN="$datalabels",lqn="$default";function atl(e,t){var n=e.datalabels,r={},a=[],o,l;return n===!1?null:(n===!0&&(n={}),t=Hk({},[t,n]),o=t.labels||{},l=Object.keys(o),delete t.labels,l.length?l.forEach(function(s){o[s]&&a.push(Hk({},[t,o[s],{_key:s}]))}):a.push(t),r=a.reduce(function(s,d){return Vc(d.listeners||{},function(u,h){s[h]=s[h]||{},s[h][d._key||lqn]=u}),delete d.listeners,s},{}),{labels:a,listeners:r})}function Lit(e,t,n,r){if(t){var a=n.$context,o=n.$groups,l;t[o._set]&&(l=t[o._set][o._key],l&&Fc(l,[a,r])===!0&&(e[TN]._dirty=!0,n.update(a)))}}function otl(e,t,n,r,a){var o,l;!n&&!r||(n?r?n!==r&&(l=o=!0):l=!0:o=!0,l&&Lit(e,t.leave,n,a),o&&Lit(e,t.enter,r,a))}function ltl(e,t){var n=e[TN],r=n._listeners,a,o;if(!(!r.enter&&!r.leave)){if(t.type==="mousemove")o=mAe.lookup(n._labels,t);else if(t.type!=="mouseout")return;a=n._hovered,n._hovered=o,otl(e,r,a,o,t)}}function itl(e,t){var n=e[TN],r=n._listeners.click,a=r&&mAe.lookup(n._labels,t);a&&Lit(e,r,a,t)}var ewe={id:"datalabels",defaults:rtl,beforeInit:function(e){e[TN]={_actives:[]}},beforeUpdate:function(e){var t=e[TN];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,n){var r=t.index,a=e[TN],o=a._datasets[r]=[],l=e.isDatasetVisible(r),s=e.data.datasets[r],d=atl(s,n),u=t.meta.data||[],h=e.ctx,p,U,m,R,N,E,v,y;for(h.save(),p=0,m=u.length;p<m;++p)if(v=u[p],v[TN]=[],l&&v&&e.getDataVisibility(p)&&!v.skip)for(U=0,R=d.labels.length;U<R;++U)N=d.labels[U],E=N._key,y=new rqn(N,h,v,p),y.$groups={_set:r,_key:E||lqn},y.$context={active:!1,chart:e,dataIndex:p,dataset:s,datasetIndex:r},y.update(y.$context),v[TN].push(y),o.push(y);h.restore(),Hk(a._listeners,d.listeners,{merger:function(k,Z,Q){Z[k]=Z[k]||{},Z[k][t.index]=Q[k],a._listened=!0}})},afterUpdate:function(e){e[TN]._labels=mAe.prepare(e[TN]._datasets)},afterDatasetsDraw:function(e){mAe.draw(e,e[TN]._labels)},beforeEvent:function(e,t){if(e[TN]._listened){var n=t.event;switch(n.type){case"mousemove":case"mouseout":ltl(e,n);break;case"click":itl(e,n);break}}},afterEvent:function(e){var t=e[TN],n=t._actives,r=t._actives=e.getActiveElements(),a=VAe.arrayDiff(n,r),o,l,s,d,u,h,p;for(o=0,l=a.length;o<l;++o)if(u=a[o],u[1])for(p=u[0].element[TN]||[],s=0,d=p.length;s<d;++s)h=p[s],h.$context.active=u[1]===1,h.update(h.$context);(t._dirty||a.length)&&(mAe.update(t._labels),e.render()),delete t._dirty}};const CR=AT("dashboardStore",()=>{const e=Re(null),t=o=>{e.value=o},n=Re(!0),r=tr({comment_recent:!1,comment_resolved:!1,rendition:!1,scene:!1,people_comment:!1,assigned_scene:!1,chart:!1});return{dashboardData:e,getDashboardData:async o=>{const l=await $o.getPeopleCard(o);t(l)},refreshState:r,isBrowserActive:n}});var X1=(e=>(e.WHITE="#F3F5F8",e.RED="#FFD4C1",e.YELLOW="#FDE8B0",e.GREEN="#CCF3EB",e.BLUE="#A3D4F5",e.TEXT_GENERAL="#232323",e.ICON_GENERAL="#A6A6A6",e))(X1||{});const iqn=([e,t])=>{const n=e+t,r=e/n*360;return r==180?0:r<90||r>90&&r<180?90-r/2:r>180?r-180/2*-1:r/2},sqn=({rotation:e,handleRedirect:t,interactive:n})=>({type:"pie",options:{rotation:e,responsive:!0,maintainAspectRatio:!1,onHover:n?(r,a)=>{const o=r.chart;a.length>0?o.canvas.style.cursor="pointer":o.canvas.style.cursor="default"}:void 0,onClick:n?function(r,a){a.length>0&&t()}:void 0,plugins:{tooltip:{enabled:!1},datalabels:{align:"end",anchor:"end",formatter:function(r){return[r.label,r.value]},color:function(r){return r.dataset.backgroundColor},font:function(){return{size:14,weight:"normal"}}}},layout:{padding:{top:6,bottom:6}}}}),stl=e=>Number.isInteger(e)?e.toString():e.toFixed(2),dtl=Ft({__name:"CardAssigned",setup(e){QR.register(ewe,s2,SX,WUe,yUe,MUe),QR.register(s2,SX,WUe);const t=Ve(()=>{const E=MA({code:"scene"});return{guidingTextBottomLeft:s.value?void 0:{text:E,fontStyle:{color:X1.TEXT_GENERAL,fontSize:"14px",fontWeight:"normal"},tooltip:E},guidingTextBottomRight:void 0,backgroundColor:X1.WHITE,key:"assigned",title:`Assigned ${MA({code:"scene"})}`,icon:{name:"Film",iconColor:"#A6A6A6",tooltip:`Assigned ${MA({code:"scene"})} status`},mainLabel:"AssignedMainlabel"}}),n=CR(),{dashboardData:r}=eo(n),a=Ve(()=>{var E;return Number(((E=r.value)==null?void 0:E.assigned_scenes.active)||0)}),o=Ve(()=>{var E;return Number(((E=r.value)==null?void 0:E.assigned_scenes.planned)||0)}),l=Ve(()=>!0),s=Ve(()=>a.value>0||o.value>0),d=Ve(()=>{const E=a.value,v=o.value,y={active:"Active",planned:"Planned"},k={active:"#3C9BFA",planned:"#A6A6A6"},Z=Object.entries({active:E,planned:v}).filter(Q=>Q[1]!==0).sort((Q,g)=>Q[1]-g[1]).map(([Q,g])=>({value:g||0,key:Q,label:y[Q]}));return{datasets:[{backgroundColor:Z.map(Q=>k[Q.key]),data:Z}]}}),u=Ve(()=>{const E=a.value,v=o.value;return E<v?[E,v]:[v,E]}),h=Dd(),{currentTab:p}=eo(h),U=()=>{p.value="people-scenes"},m=Ve(()=>{const E=iqn(u.value);return{type:"pie",data:d.value,plugins:[ewe],...sqn({rotation:E,handleRedirect:U,interactive:!1})}}),R=Re(null),N=()=>{const E=document.getElementById("chart_assigned");E&&(R.value=new QR(E,m.value))};return Tt([s,l],E=>{E[0]&&E[1]&&gt(()=>N())},{immediate:!0}),(E,v)=>l.value?(de(),mt(fe(s$),Vn({key:0,class:"card-simple"},t.value,{disabled:!1,class:{empty:!s.value}}),{body:_e(()=>[s.value?(de(),We("div",{key:0,class:"chart-container card-title",onClick:U},v[0]||(v[0]=[Oe("canvas",{id:"chart_assigned"},null,-1)]))):(de(),We("span",{key:1,class:"card-title",onClick:U},"0"))]),_:1},16,["class"])):at("",!0)}}),ctl=Sl(dtl,[["__scopeId","data-v-bf54422d"]]),utl=Ft({__name:"CardCompleted",setup(e){const t=CR(),{dashboardData:n}=eo(t),r=Ve(()=>{var d;return n.value&&((d=n.value)==null?void 0:d.completed_scenes_last_14_days)||0}),a=Ve(()=>{const d=r.value>0?X1.GREEN:X1.WHITE,u=r.value>0?"#02C39A":"#A6A6A6";return{guidingTextBottomLeft:{text:`${MA({code:"scene"})}`,fontStyle:{color:"#000000",fontSize:"14px",fontWeight:"normal"},tooltip:"Assigned"},backgroundColor:d,key:"Completed",title:"Total completed (14 days)",icon:{name:"Film",iconColor:u,tooltip:`Completed ${MA({code:"scene"})} in the last 14 days`}}}),o=Dd(),{currentTab:l}=eo(o),s=()=>{l.value="people-charts"};return(d,u)=>(de(),mt(fe(s$),Vn({class:"card-simple"},a.value,{disabled:!1}),{body:_e(()=>[Oe("div",{class:"card-title",onClick:s},Et(r.value),1)]),_:1},16))}}),htl=Ft({__name:"CardOverdue",setup(e){const t=CR(),{dashboardData:n}=eo(t),r=Ve(()=>{var d;return n.value&&((d=n.value)==null?void 0:d.overdue_scenes)||0}),a=Ve(()=>{const d=r.value>0?X1.YELLOW:X1.WHITE,u=r.value>0?"#F7941D":"#A6A6A6";return{guidingTextBottomLeft:{text:MA({code:"scene"}),fontStyle:{color:X1.TEXT_GENERAL,fontSize:"14px",fontWeight:"normal"},tooltip:"Assigned"},backgroundColor:d,key:"assigned",title:"Overdue",icon:{name:"Film",iconColor:u,tooltip:`Assigned ${MA({code:"scene"})} past due`}}}),o=Dd(),{currentTab:l}=eo(o),s=()=>{l.value="people-charts"};return(d,u)=>(de(),mt(fe(s$),Vn({class:"card-simple"},a.value,{disabled:!1}),{body:_e(()=>[Oe("div",{class:"card-title",onClick:s},Et(r.value),1)]),_:1},16))}}),Atl={key:0,class:"chart-container card-title"},ptl={key:1,class:"card-title non-interactive"},Vtl=Ft({__name:"CardTargetPoint",setup(e){QR.register(ewe,s2,SX,WUe,yUe,MUe),QR.register(s2,SX,WUe);const t=Ve(()=>({guidingTextBottomLeft:s.value?void 0:{text:"Points",fontStyle:{color:X1.TEXT_GENERAL,fontSize:"14px",fontWeight:"normal"},tooltip:"Points"},guidingTextBottomRight:void 0,backgroundColor:X1.WHITE,key:"points",title:"Target points",icon:{name:"Award",iconColor:"#A6A6A6",tooltip:"Assigned points towards targets"},mainLabel:"AssignedMainlabel"})),n=Ve(()=>{var m,R;return Number(((R=(m=o.value)==null?void 0:m.point_pool)==null?void 0:R.collected)||0)}),r=Ve(()=>{var m,R;return Number(((R=(m=o.value)==null?void 0:m.point_pool)==null?void 0:R.pending)||0)}),a=CR(),{dashboardData:o}=eo(a),l=Ve(()=>{var m;return((m=o.value)==null?void 0:m.point_pool.can_view)==1}),s=Ve(()=>n.value>0||r.value>0),d=Ve(()=>{const m=n.value,R=r.value,N={collected:"Earned",pending:"Awaiting"},E={collected:"#F7941D",pending:"#A6A6A6"},v=Object.entries({collected:m,pending:R}).filter(y=>y[1]!==0).sort((y,k)=>y[1]-k[1]).map(([y,k])=>({value:stl(k)||0,key:y,label:N[y]}));return{datasets:[{backgroundColor:v.map(y=>E[y.key]),data:v}]}}),u=Ve(()=>{const m=n.value,R=r.value;return m<R?[m,R]:[R,m]}),h=Ve(()=>{const m=iqn(u.value);return{plugins:[ewe],type:"pie",data:d.value,...sqn({interactive:!1,handleRedirect:()=>{},rotation:m})}}),p=Re(null),U=()=>{const m=document.getElementById("chart_target");m&&(p.value=new QR(m,h.value))};return Tt([s,l],m=>{m[0]&&m[1]&&gt(()=>U())},{immediate:!0}),(m,R)=>l.value?(de(),mt(fe(s$),Vn({key:0,class:"card-simple"},t.value,{disabled:!1,class:{empty:!s.value}}),{body:_e(()=>[s.value?(de(),We("div",Atl,R[0]||(R[0]=[Oe("canvas",{id:"chart_target"},null,-1)]))):(de(),We("span",ptl,"0"))]),_:1},16,["class"])):at("",!0)}}),mtl=Sl(Vtl,[["__scopeId","data-v-c8104735"]]),Utl=Ft({__name:"CardUnresolved",setup(e){const t=CR(),{dashboardData:n}=eo(t),r=Ve(()=>{var d;return n.value&&((d=n.value)==null?void 0:d.unresolved_comments)||0}),a=Ve(()=>{const d={text:"@",color:"#FFF",bgColor:r.value==0?"#A6A6A6":"#3C9BFA",show:!0};return{guidingTextBottomLeft:{text:"Comments",fontStyle:{color:X1.TEXT_GENERAL,fontSize:"14px",fontWeight:"normal"},tooltip:"Assigned"},backgroundColor:X1.WHITE,key:"Unresolved",title:"Unresolved",icon:{name:"Comments",iconColor:X1.ICON_GENERAL,tooltip:"Assigned comments to resolve"},alias:d}}),o=Dd(),{currentTab:l}=eo(o),s=()=>{l.value="people-comments"};return(d,u)=>(de(),mt(fe(s$),Vn({class:"card-simple"},a.value,{disabled:!1}),{body:_e(()=>[Oe("div",{class:"card-title",onClick:s},Et(r.value),1)]),_:1},16))}}),ftl={},Rtl={class:"section-renditions-skeleton"};function Ntl(e,t){return de(),We("div",Rtl,t[0]||(t[0]=[lQ('<div class="timestamp skeleton-animation dark" data-v-b8e311eb></div><div class="rendition-item skeleton-animation dark" data-v-b8e311eb><div class="name" data-v-b8e311eb></div><div class="breadcrumb" data-v-b8e311eb></div><div class="information" data-v-b8e311eb></div></div>',2)]))}const Ztl=Sl(ftl,[["render",Ntl],["__scopeId","data-v-b8e311eb"]]),wJe=()=>{const e=CR(),{getDashboardData:t}=e,n=async d=>{try{return await t(d)}catch(u){return console.error("getPeopleCard",u),{error:u}}},r=Dd(),{basicInfo:a}=eo(r);return{getPeopleCard:n,getRecentActivities:(d,u)=>{var p;const h=(p=a.value)==null?void 0:p.id;if(!h)throw new Error("userId is not found in store");return $o.getPeopleDashboardData(h,d,u)},deleteRendition:({scene_id:d,rendition_id:u})=>{if(!a.value.id)throw new Error("userId is not found in store");return $o.deleteRendition(d,u)},getNextRendition:d=>{var h;const u=(h=a.value)==null?void 0:h.id;if(!u)throw new Error("userId is not found in store");return $o.getNextRendition(u,d)}}},XH=(e,t,n)=>{const r=Re(void 0),a=Re(!1),o=async()=>{if(!p.value)return;const U=await t();U&&(r.value=U.signature)},l=Re(null),s=6e4,d=()=>{l.value&&clearInterval(l.value),l.value=setInterval(()=>{o()},Number(s))};sn(async()=>{d()}),id(()=>{clearInterval(l.value)}),xVn(()=>{clearInterval(l.value)});const u=CR(),{refreshState:h,isBrowserActive:p}=eo(u);return Tt(a,U=>{e!==""&&(h.value[e]=U)}),Tt(n,U=>{r.value=U,gt(()=>a.value=!1)},{immediate:!0}),Tt(r,(U,m)=>{if(!(m==null||m==""))switch(!0){case!r.value:a.value=!1;break;case U!==m:a.value=!0;break;case r.value!=n.value:a.value=!0;break;case U==n.value:break}},{immediate:!0}),{subscribeSignature:d,needUpdate:a}},Ttl=e=>{try{const t=new Date(e??""),r=new Date().getTime()-t.getTime(),a=Math.floor(r/(1e3*60*60)),o=Math.floor(r%(1e3*60*60)/(1e3*60));if(a<=3)return a===0?`${o} minute${o!==1?"s":""} ago`:`${a} hour${a!==1?"s":""} ${o} minute${o!==1?"s":""} ago`}catch(t){console.error("isShowShortDate -> error",t)}},L7t=()=>aX.getCookie("account.last_prefered_timezone")||"Asia/Singapore",dqn=e=>{try{const t=new Date(e).toISOString(),n=Os.fromISO(t).setZone(L7t()).toFormat(vPa);return String(n)}catch(t){console.error("formatDateValue",{e:t,dateStr:e,tz:L7t()})}return e},Ftl=e=>{try{if(!e)return"";const t=new Date(e);if(isNaN(t.getTime()))throw new Error("Invalid date:"+e);const n=t.toISOString(),r=Ttl(n),a=dqn(n);return r||String(a)}catch{return String(e)}},Etl={key:0,class:"empty-data"},vtl=["onMouseover","onMouseleave"],btl={class:"timestamp"},Wtl={key:0,class:"rendition-breadcrumb"},ytl={class:"name"},Mtl=Ft({__name:"SectionNewRendition",setup(e,{expose:t}){const{getEnvVariable:n}=Sk(),r=ae=>{var Ne;const P=n("BASE_REVIEW_URL"),pe=Mo(),ue=(Ne=Yc({type:"review_rendition",config:{reviewDomain:P,ws_code:pe,scene_id:ae.item.id,rendition_id:ae.id,take_id:ae.item.entity_id}}))==null?void 0:Ne.url;window.open(ue)},a=fl("switchInstance"),o=(ae,P)=>{var Ne;const pe=n("BASE_URL"),ue=(Ne=Yc({type:"hub_rendition",config:{baseDomain:pe,ws_code:Mo(),scene_id:ae.item.id,rendition_id:ae.id}}))==null?void 0:Ne.url;if(P.metaKey||P.ctrlKey){window.open(ue,"_blank");return}else{if(a){a("scene_hub",{tab:"rendition",id:ae.item.id,renditionId:ae.id},{showLoading:!1});return}window.location.href=ue}window.open(ue)},l=Ve(()=>{var ae;return(ae=v.value[v.value.length-1])==null?void 0:ae.id}),s=tr({canLoadMore:!0,failedRequest:!1}),d=async()=>{var ae,P,pe,ue;try{if(!l.value||!s.canLoadMore||p.value)return!0;p.value=!0;const Ne=await U.getNextRendition(l.value),Me=(P=(ae=Ne==null?void 0:Ne.recent_activities)==null?void 0:ae.new_renditions)==null?void 0:P.data;if(Me)Me.length==0&&(s.canLoadMore=!1),v.value=v.value.concat(((ue=(pe=Ne==null?void 0:Ne.recent_activities)==null?void 0:pe.new_renditions)==null?void 0:ue.data)||[]);else throw new Error("Failed to get more data")}catch(Ne){s.failedRequest=!0,console.error("getMoreData -> error",Ne)}finally{p.value=!1}},u=Re(null),h=Re(null);sn(()=>{y()}),CDn(h,async()=>{await d()},{distance:10,canLoadMore:()=>!p.value});const p=Re(!1),U=wJe(),m=Re({}),R=async()=>{var P,pe,ue,Ne;let ae;try{p.value=!0,ae=await U.getRecentActivities("recent_activities.new_renditions"),E.value=(pe=(P=ae==null?void 0:ae.recent_activities)==null?void 0:P.new_renditions)==null?void 0:pe.meta["X-Tsr-signature"]}catch(Me){console.error("getRecentNewRendition -> error",Me)}finally{p.value=!1}return((Ne=(ue=ae==null?void 0:ae.recent_activities)==null?void 0:ue.new_renditions)==null?void 0:Ne.data)||[]},N=async()=>{var P,pe;const ae=await U.getRecentActivities("recent_activities.new_renditions",kH);return{signature:(pe=(P=ae==null?void 0:ae.recent_activities)==null?void 0:P.new_renditions)==null?void 0:pe.meta["X-Tsr-signature"]}},E=Re(void 0);XH("rendition",N,E);const v=Re([]),y=async()=>{var ae,P;v.value=[],v.value=await R(),Z.value=((P=(ae=u.value)==null?void 0:ae.parentElement)==null?void 0:P.offsetHeight)||200,p.value=!1};t({resetList:y});const k=Re(null),{height:Z}=j5(k),Q=Dd(),{permissionMap:g}=eo(Q),z=(ae,P)=>{const pe=n("BASE_URL"),ue=Yc({type:"hub_rendition",config:{baseDomain:pe,ws_code:Mo(),scene_id:ae,rendition_id:P}}).url;navigator.clipboard.writeText(ue).then(()=>{}).catch(Ne=>{console.error("Failed to copy: ",Ne)})},{deleteRendition:C}=U,{showErrorSnackbar:j}=a0e(),X=()=>{let ae="Update failed";navigator.onLine||(ae="Network error"),j({label:ae})},{refreshState:q}=eo(CR()),$=async ae=>{try{await C({scene_id:ae.item.id,rendition_id:ae.id})&&(q.value.rendition=!0,v.value=v.value.filter(pe=>pe.id!==ae.id))}catch(P){X(),console.error("handleDelete -> error",P)}},G=Ve(()=>Object.fromEntries(v.value.map(ae=>[ae.id,ee(ae)]))),ee=ae=>ae!=null&&ae.item?{items:(ae==null?void 0:ae.entity_path.map(pe=>{var Ne;const ue=pe.is_parent_item?"scene_hub":"project";return{label:pe.name,href:(Ne=Yc({type:ue,config:{baseDomain:n("BASE_URL"),ws_code:Mo(),entity_id:pe.id,scene_id:pe.is_parent_item?pe.id:void 0}}))==null?void 0:Ne.url,disabled:!1,id:pe.id,isCurrent:!1}}))||[],lastItemWidth:125,url:"",width:200,canCopy:!1,numberOfVisibleItems:2}:void 0;return(ae,P)=>(de(),We("div",{ref_key:"sectionRef",ref:u,class:"section-renditions-wrapper"},[Oe("div",{ref_key:"listRef",ref:h,class:"section-renditions"},[v.value.length==0&&!p.value?(de(),We("div",Etl,[Le(VW,{"visual-name":"NoData",label:"No activity available.",height:150})])):at("",!0),(de(!0),We(Gt,null,dn(v.value,pe=>{var ue,Ne,Me,Fe;return de(),We("div",{key:pe.id,class:Xe(["rendition-item",{hovered:m.value[pe.id]}]),onMouseover:()=>{m.value[pe.id]||(m.value[pe.id]=1)},onMouseleave:()=>{m.value[pe.id]===1&&(m.value[pe.id]=0)}},[Le(fe(ld),{content:fe(dqn)(pe.created_at),delay:[1e3,0]},{default:_e(()=>[Oe("div",btl,Et(fe(Ftl)(pe.created_at)),1)]),_:2},1032,["content"]),Le(fe($Qn),Vn({class:"rendition-card"},{ref_for:!0},{renditionData:pe,disabled:!1,hasNewComment:!1,isDeletable:((Ne=(ue=pe.permission)==null?void 0:ue.media)==null?void 0:Ne.has_delete_rendition_permission)==1,isReadOnly:!1,active:!1,hovered:m.value[pe.id]>0,canDelete:((Fe=(Me=pe.permission)==null?void 0:Me.media)==null?void 0:Fe.has_delete_rendition_permission)==1,canOpenReview:fe(g).redirectPermission.review,canOpenSceneHub:fe(g).redirectPermission.scene_hub,customStyle:{borderWidth:2,borderColor:"white"}},{tooltip:"",onOpenHub:(ce,L)=>o(pe,L),onShowPopup:ce=>m.value[pe.id]=2,onHidePopup:ce=>m.value[pe.id]=0,onOpenReview:()=>r(pe),onClick:Ct(ce=>o(pe,ce),["stop"]),onCopy:ce=>z(pe.item.id,ce),onDelete:()=>$(pe)}),{title:_e(()=>{var ce;return[G.value[pe.id]?(de(),We("div",Wtl,[Le(fe(yH),Vn({ref_for:!0},G.value[pe.id],{url:"",items:((ce=G.value[pe.id])==null?void 0:ce.items)||[],disabled:"true"}),null,16,["items"])])):at("",!0)]}),timestamp:_e(()=>[Oe("div",ytl,[Le(fe(i$),{value:pe.name,"max-width":190},null,8,["value"])])]),_:2,__:[0]},1040,["onOpenHub","onShowPopup","onHidePopup","onOpenReview","onClick","onCopy","onDelete"])],42,vtl)}),128)),Oe("div",null,[s.failedRequest?(de(),mt(fe(Tr),{key:0,label:"Retry",onClick:d})):at("",!0)]),p.value&&s.canLoadMore?(de(),We(Gt,{key:1},dn(3,pe=>Le(Ztl,{key:pe})),64)):at("",!0)],512)],512))}}),ktl=Sl(Mtl,[["__scopeId","data-v-862c87c3"]]),Stl=Ft({__name:"GirdItemSkeleton",setup(e){const t=Ve(()=>Math.floor(Math.random()*51)+50+"%");return(n,r)=>(de(),We("div",{class:Xe([n.$style["scene-card-layout"],n.$style.loading]),style:{"--bdr":"6px"}},[Oe("div",{class:Xe(n.$style["status-indicator"])},[Oe("div",{class:Xe(n.$style["skeleton-loading-inner"])},null,2)],2),Oe("div",{class:Xe(n.$style["main-content-wrapper"])},[Oe("div",{class:Xe(n.$style["main-content"])},[Oe("div",{class:Xe(n.$style["row-line"])},[Oe("div",{class:Xe(n.$style["skeleton-loading-inner"])},null,2)],2),Oe("div",{class:Xe(n.$style["grid-line"])},[Oe("div",{class:Xe([n.$style["thumbnail-slot"],n.$style.loading])},[Oe("div",{class:Xe(n.$style["skeleton-loading-inner"])},null,2)],2),Oe("div",{class:Xe(n.$style["name-slot"])},[Oe("div",{class:Xe(n.$style["skeleton-loading-inner"]),style:rn({width:t.value})},null,6)],2)],2)],2),Oe("div",{class:Xe(n.$style["row-line"])},[Oe("div",{class:Xe(n.$style["skeleton-loading-inner"]),style:{width:"50%"}},null,2)],2)],2)],2))}}),gtl="_selected_ybxyy_17",Qtl="_archived_ybxyy_22",ztl="_disabled_ybxyy_31",wtl="_readonly_ybxyy_31",Dtl="_deleted_ybxyy_34",Otl="_loading_ybxyy_118",xtl={"scene-card-layout":"_scene-card-layout_ybxyy_1",selected:gtl,archived:Qtl,disabled:ztl,readonly:wtl,deleted:Dtl,"status-indicator":"_status-indicator_ybxyy_42","main-content-wrapper":"_main-content-wrapper_ybxyy_52","main-content":"_main-content_ybxyy_52","more-actions":"_more-actions_ybxyy_70","grid-line":"_grid-line_ybxyy_81","row-line":"_row-line_ybxyy_91","breadcrumb-slot":"_breadcrumb-slot_ybxyy_103","thumbnail-slot":"_thumbnail-slot_ybxyy_110",loading:Otl,"name-slot":"_name-slot_ybxyy_122","status-slot":"_status-slot_ybxyy_131","daterange-slot":"_daterange-slot_ybxyy_138","assignee-slot":"_assignee-slot_ybxyy_145","skeleton-loading-inner":"_skeleton-loading-inner_ybxyy_153","skeleton-loading":"_skeleton-loading_ybxyy_153"},Ytl={$style:xtl},Btl=Sl(Stl,[["__cssModules",Ytl]]),Jtl=1,jtl=e=>{const{handleGetSceneDetail:t}=COn(void 0),n=async(E,v)=>{try{const y=await t(E);y.success&&y.data&&(d.value[v]=y.data,h.updateSceneDataValue(E,y.data))}catch(y){console.error(y)}},r=Ve(()=>aX.getCookie("account.last_prefered_timezone")||"Asia/Singapore"),a={perPage:10,itemsPerRow:1,totalItems:0,totalPages:1,currentPage:1,loading:!1},o=tr(a);async function l(){d.value=[],Object.entries(a).forEach(([E,v])=>{o[E]=v}),await s(Jtl)}const s=async(E=1)=>{var g,z;if(o.loading)return;o.loading=!0,o.currentPage=E;const v={...e.value.filterParameter,page:E},y=await e.value.getDataFunction(v),{meta:k,data:Z,private_item_count:Q}=y;return R(k),m(Z),(z=(g=e.value).callbackGetData)==null||z.call(g,k),U.value=Q||0,Z},d=Re([]),u=async()=>{o.isLoadScene=!0,await l(),o.loadedPage=!1},h=HYe(),{totalSceneCount:p,privateSceneCount:U}=eo(h),m=E=>{h.setSceneDataMap(E),E&&(E==null?void 0:E.length)===0?d.value=[]:d.value=[...d.value,...E]},R=E=>{o.totalItems=E.total,o.totalPages=E.last_page,o.currentPage=E.current_page,p.value=E.total,o.loadedPage=!0,o.loading=!1};return{states:o,listData:d,callbackUpdatingMeta:R,callbackUpdateData:m,resetList:u,initList:l,handleUpdateScene:n,loadNextPage:async()=>{o.currentPage<o.totalPages&&await s(o.currentPage+1)},fetchMoreData:s,preferredTimezone:r}},Gtl={key:0,class:"empty-list"},Itl={style:{display:"flex","flex-direction":"column",gap:"8px"}},Xtl=Ft({__name:"SceneList",props:{getDataFunction:{type:Function},filterParameter:{},callbackUpdateMeta:{type:Function},callbackGetData:{type:Function},ready:{type:Boolean},height:{}},emits:["loaded","metaUpdate","update","needUpdate"],setup(e,{expose:t,emit:n}){const r=Re({}),a=()=>{r.value&&Object.values(r.value).forEach(Q=>Q==null?void 0:Q.hideDropdowns())},o=n,l=e,s=uc(),d=Q=>!!s[Q],u=Re(null);XDn(u,Q=>{const g=Q[0];g&&(g.contentRect.width<=655||window.innerWidth<=768?h.value=184:h.value=150)});const h=Re(150),p=Ve(()=>({getDataFunction:l.getDataFunction,filterParameter:l.filterParameter,callbackUpdateMeta:Q=>{o("metaUpdate",Q),o("loaded")},callbackGetData:Q=>{o("loaded",Q)}})),{states:U,listData:m,loadNextPage:R,resetList:N,initList:E}=jtl(p);sn(()=>{E()});const v=Re(Math.random());Tt(()=>l.filterParameter,async(Q,g)=>{l.ready&&JSON.stringify(Q)!==JSON.stringify(g)&&await N()},{deep:!0}),t({resetList:N,hideCalendars:()=>{r.value&&Object.values(r.value).forEach(Q=>Q==null?void 0:Q.hideDropdowns())}});const y=async()=>{const Q=await l.getDataFunction(l.filterParameter,kH);return{signature:Q==null?void 0:Q.meta["X-Tsr-signature"]}},k=Re(""),{needUpdate:Z}=XH("",y,k);return Tt(Z,Q=>{Q&&o("needUpdate")},{immediate:!0}),(Q,g)=>l.ready?(de(),We("div",{ref_key:"listContainerRef",ref:u,key:v.value,class:Xe(["scene-list-component",{"no-footer":!d("footer"),empty:!fe(U).loading&&fe(m).length===0}]),style:rn({"--list-height":`${l.height}px`})},[!fe(U).loading&&fe(m).length===0?(de(),We("div",Gtl,[Rt(Q.$slots,"empty",{listData:fe(m),loadedPage:fe(U).loadedPage},()=>[!fe(m).length&&fe(U).loadedPage?(de(),mt(VW,{key:0,"visual-name":"NoData2",label:"No results. Try another search.",height:180})):at("",!0)],!0)])):at("",!0),Le(fe(hYe),{ref:"listRef",class:"list",items:fe(m),"min-item-size":h.value,"key-field":"id",buffer:500,onScroll:a,onScrollEnd:fe(R)},Uc({default:_e(({item:z})=>[(de(),We("div",{class:"scene-item",key:z.id},[(de(),mt(qrt,{key:`scene-item-${z.id}`,id:z.id,data:z},null,8,["id","data"]))]))]),_:2},[fe(U).loading?{name:"after",fn:_e(()=>[Oe("div",Itl,[(de(),We(Gt,null,dn(5,z=>Le(Btl,{key:z})),64))])]),key:"0"}:void 0]),1032,["items","min-item-size","onScrollEnd"])],6)):at("",!0)}}),cqn=Sl(Xtl,[["__scopeId","data-v-e561f52e"]]),Htl=400,Ctl=Ft({__name:"SectionRecentAccess",setup(e,{expose:t}){const n=wJe(),r=async y=>{var Q;const k=await n.getRecentActivities("recent_activities.accessed_scenes",{...y,per_page:10}),Z=k.recent_activities.accessed_scenes;return!y.after_id&&!y.before_id&&(v.value=(Q=k.recent_activities.accessed_scenes)==null?void 0:Q.meta["X-Tsr-signature"]),Z.data=Z.data.map(g=>({...g.item})),Z},a={},o=Re(null);t({resetList:()=>{var y;(y=o.value)==null||y.resetList()}});const s=Re(null),{height:d}=j5(s),u=Re(!1),h=Dd(),{basicInfo:p}=eo(h);Tt(p,()=>{p.value.id&&(u.value=!0)},{deep:!0,immediate:!0});const U=Ve(()=>d.value||Htl),m=CR(),{refreshState:R}=eo(m),N=()=>{R.value.scene=!0},E=async()=>{var k,Z;const y=await n.getRecentActivities("recent_activities.accessed_scenes",kH);return{signature:(Z=(k=y==null?void 0:y.recent_activities)==null?void 0:k.accessed_scenes)==null?void 0:Z.meta["X-Tsr-signature"]}},v=Re("");return XH("scene",E,v),(y,k)=>(de(),We("div",{ref_key:"recentlyAccessSceneRef",ref:s,class:"recently-access-scene"},[Le(cqn,{ref_key:"listRef",ref:o,"get-data-function":r,"filter-parameter":a,ready:u.value,class:"no-footer",height:U.value,onUpdate:N},{empty:_e(()=>[Le(VW,{"visual-name":"NoData",label:"No activity available.",height:150,width:400})]),_:1},8,["ready","height"])],512))}}),K7t=Sl(Ctl,[["__scopeId","data-v-3aad5043"]]),Ltl={class:"breadcrumb"},Ktl=Ft({__name:"CommentItem",props:{item:{},commentId:{},width:{default:400},renderKey:{}},emits:["commentDeleted","updateComment"],setup(e,{emit:t}){const n=e,r=Dd();B_();const{userInfo:a}=eo(r),{getEnvVariable:o}=Sk(),l=q=>{var G;return{items:((G=q==null?void 0:q.entity_path)==null?void 0:G.map(ee=>{const ae=Yc({type:ee.is_parent_item?"scene_hub":"project",config:{baseDomain:o("BASE_URL"),ws_code:Mo(),entity_id:ee.id,scene_id:ee.is_parent_item?ee.id:void 0}}).url;return{label:ee.name,href:ae,disabled:!0,id:ee.id,isCurrent:!1}}))||[],lastItemWidth:200,canCopy:!1,url:""}},s=async({path:q})=>{if(q.length===0)return{message:"",url:""};const $=await $o.downloadFileFromS3({scene_id:Mo(),path:q});return $?{url:$.url,message:$.message}:{url:"",message:""}},d=async()=>{const q=n.item.id,$=await $o.getCommentDetail({comment_id:q,scene_id:n.item.item_id});Q("updateComment",$)},u=tOn({comment_id:n.item.id,scene_id:n.item.item_id,callbackUpdate:d,commentData:n.item,userId:a.value.id}),{assignUser:h,getAssignableUser:p,resolveComment:U,deleteComment:m,unResolveComment:R,reactToComment:N,updateReactComment:E,deleteReactComment:v,unassignUser:y,getMentionableUser:k,reassignUser:Z}=u,Q=t,g=Ve(()=>{const q=n.item;return{disabled:!1,readonly:!1,isReplying:!1,selected:!1,searchText:void 0,isResolvedList:!0,currentUser:{id:a.value.id,name:a.value.display_name},commentConfig:{renditionId:q.item_rendition_id||void 0,sceneId:q==null?void 0:q.item_id,entityId:q==null?void 0:q.item_id,wsCode:Mo(),commentId:q.id},componentConfig:{isReviewComment:!!q.item_rendition_id,isMyComment:q.ws_creator.user_id==a.value.id,onSceneHub:!1},commentPermission:{canEdit:!1,canDelete:!0,canAssign:!0,canOpenSceneHub:!0,canResolve:!0,canOpenReview:!0},apiFunctions:{assignUser:h,unassignUser:y,reassignUser:Z,addReaction:async $=>await N($),removeReaction:v,replaceReaction:$=>{var ee,ae;const G=((ae=(ee=n.item.emoji_users)==null?void 0:ee.find(P=>P.user_id==a.value.id))==null?void 0:ae.emoji_id)||"";return E({...$,emojiId:G})},resolveComment:U,unResolveComment:R,deleteComment:async()=>{const $=await m();return $?(Q("commentDeleted",n.item.id),$):{success:!1,data:void 0}},updateComment:()=>new Promise(($,G)=>{setTimeout(()=>{G({success:!1,data:{message:"Error"}})},1500)}),uploadFunction:void 0,getResourceURL:s,getAssignableUser:p,getMentionableUser:k},commentData:{...q}}}),z=fl("switchInstance"),C=Ve(()=>{var $,G,ee,ae,P,pe,ue;const q=(($=n.item)==null?void 0:$.entity_path)||[];return{project:(G=q[0])==null?void 0:G.id,process:(ee=q[1])==null?void 0:ee.id,episode:(ae=q[2])==null?void 0:ae.id,take:(P=q[3])==null?void 0:P.id,scene:((pe=q[4])==null?void 0:pe.id)||n.item.item_id,rendition:((ue=q[5])==null?void 0:ue.id)||n.item.item_rendition_id,comment:n.item.id}}),j=(q,$)=>{const{scene:G,rendition:ee,comment:ae}=C.value;if(n.item.item_rendition_id){const P=Yc({type:"review_rendition_comment",config:{reviewDomain:o("BASE_REVIEW_URL"),ws_code:Mo(),scene_id:G,comment_id:ae,rendition_id:ee||""}});window.open(P.url,"_blank")}else{const P=Yc({type:"hub_comment",config:{baseDomain:o("BASE_URL"),ws_code:Mo(),scene_id:G,comment_id:ae}});$.ctrlKey||$.metaKey?window.open(P.url,"_blank"):z?z("scene_hub",{id:G,commentId:ae},{showLoading:!1}):window.location.href=P.url}},X=(q,$)=>{j(q,$)};return(q,$)=>(de(),mt(fe(fft),Vn(g.value,{class:"comment-tile-item",style:{"--comment-tile-width":"100%"},onOnReply:j,onRedirectToComment:X}),{breadcrumb:_e(()=>[Oe("div",Ltl,[Le(fe(yH),Vn({...l(q.item)},{"can-copy":!1,"number-of-visible-items":3}),null,16)])]),_:1},16))}}),Ptl=Sl(Ktl,[["__scopeId","data-v-a045b094"]]),qtl={class:"skeleton-comment"},_tl={class:"comment-body"},$tl={class:"body"},enl={class:"skeleton-details"},tnl=Ft({__name:"CommentSkeleton",setup(e){const t=()=>Math.floor(Math.random()*71)+30;return(n,r)=>(de(),We("div",qtl,[r[2]||(r[2]=Oe("div",{class:"skeleton-row bg-white",style:{height:"24px",display:"flex","justify-content":"flex-start","align-items":"center",padding:"8px"}},[Oe("div",{class:"skeleton-line w-50 skeleton-animation small dark"})],-1)),Oe("div",_tl,[r[0]||(r[0]=lQ('<div class="skeleton-row" data-v-8e94eda8><div class="header w-50" data-v-8e94eda8><div class="skeleton-avatar skeleton-animation dark" data-v-8e94eda8></div><div class="skeleton-details" data-v-8e94eda8><div class="skeleton-line skeleton-animation dark" data-v-8e94eda8></div><div class="skeleton-line skeleton-animation small dark" data-v-8e94eda8></div></div></div><div class="button-group" data-v-8e94eda8><div class="skeleton-button skeleton-animation dark sm" data-v-8e94eda8></div><div class="skeleton-button skeleton-animation dark sm" data-v-8e94eda8></div><div class="skeleton-button skeleton-animation dark sm" data-v-8e94eda8></div></div></div>',1)),Oe("div",$tl,[Oe("div",enl,[(de(!0),We(Gt,null,dn(Math.floor(Math.random()*5)+1,a=>(de(),We("div",{key:a,class:"skeleton-line skeleton-animation small dark",style:rn({width:`${t()}%`})},null,4))),128))])]),r[1]||(r[1]=lQ('<div class="footer" data-v-8e94eda8><div class="skeleton-button skeleton-animation dark" data-v-8e94eda8></div><div class="skeleton-button skeleton-animation dark" data-v-8e94eda8></div></div><div class="footer" data-v-8e94eda8><div class="button-group" data-v-8e94eda8><div class="skeleton-button skeleton-animation dark" data-v-8e94eda8></div><div class="skeleton-button skeleton-animation dark sm" data-v-8e94eda8></div><div class="skeleton-button skeleton-animation dark sm" data-v-8e94eda8></div><div class="skeleton-button skeleton-animation dark sm" data-v-8e94eda8></div></div><div class="skeleton-button skeleton-animation dark" data-v-8e94eda8></div></div>',2))])]))}}),nnl=Sl(tnl,[["__scopeId","data-v-8e94eda8"]]),$j=new GI("CommentFile");$j.version(1).stores({files:"++id, files "});const rnl=()=>{const e=async o=>{await $j.files.where("id").equals(o.id).first()?await $j.files.update(o.id,o):await $j.files.add(o)};return{setCommentFile:e,updateCommentFile:async(o,l)=>{try{await $j.files.update(o,l)}catch(s){console.error("Error updating comment file",s)}},removeCommentFile:async o=>{try{await $j.files.where("id").equals(o).delete()}catch(l){console.error("Error removing comment file",l)}},storeCommentFile:(o,l)=>{l.forEach(s=>{e({id:o.id+"_"+s.name,path:s.path,thumbnail:s.thumbnail,url:s.path,type:s.mimetype})})},getCommentFile:async o=>{try{return await $j.files.where("id").equals(o).delete()}catch(l){console.error("Error removing comment file",l)}}}},anl=AT("comment",()=>{const e=Re({});return{commentMap:e,updateCommentData:(a,o)=>{e.value[a]={...e.value[a],...o}},setComments:a=>{const o={};a.forEach(l=>{o[l.id]=l}),e.value={...e.value,...o}},getCommentById:a=>e.value[a]}}),onl={class:"empty-data"},lnl=Ft({__name:"CommentList",props:{getData:{type:Function},filterParameters:{},loadMore:{type:Boolean}},emits:["listDataChange","update","loaded"],setup(e,{expose:t,emit:n}){const r=e,a=Re(!0),o=async()=>{var g;U.value=[],a.value=!0;const k=await r.getData({}),Z=k.data;h(Z,!0),a.value=!1;const Q=(g=k.meta)==null?void 0:g.total;E("loaded",Q)},l=anl(),s=Re(""),d=Re(!0),u=Re({}),h=(k,Z)=>{if(k.length==0){d.value=!1;return}if(l.setComments(k),k.forEach(Q=>{u.value[Q.id]=(u.value[Q.id]||0)+1,p(Q,Q.attachments),Q.parent&&p(Q.parent,Q.parent.attachments)}),Z){U.value=k,s.value=k[k.length-1].id;return}U.value=[...U.value,...k],s.value=U.value[U.value.length-1].id},{storeCommentFile:p}=rnl(),U=Re([]),m=Re(null);CDn(m,async()=>{var g;const k=s.value;if(a.value||!d.value)return;a.value=!0;const Z=await r.getData({before_id:k}),Q=Z.data;h(Q),a.value=!1,E("loaded",(g=Z.meta)==null?void 0:g.total)},{canLoadMore:()=>!a.value&&r.loadMore&&d.value,distance:10});const R=Re(!1),N=async()=>{var Z;a.value=!0;const k=await r.getData({});h(k.data),R.value=!0,a.value=!1,E("loaded",(Z=k==null?void 0:k.meta)==null?void 0:Z.total)};sn(async()=>{await N()});const E=n,v=k=>{const Z=U.value.findIndex(Q=>Q.id==k);U.value.splice(Z,1),E("listDataChange"),E("update")},y=k=>{const Z=U.value.findIndex(Q=>Q.id==k.id);U.value[Z]={...U.value[Z],...k},E("update")};return t({resetList:o}),(k,Z)=>(de(),We("div",{ref_key:"commentListRef",ref:m,class:"recent-comment"},[U.value.length==0&&!a.value?Rt(k.$slots,"empty",{key:0},()=>[Oe("div",onl,[Le(VW,{"visual-name":"NoData",label:"No activity available.",height:150})])],!0):at("",!0),Z[0]||(Z[0]=It()),U.value.length!==0?(de(!0),We(Gt,{key:1},dn(U.value,Q=>(de(),mt(Ptl,{key:`comment_${Q.id}_${u.value[Q.id]}`,"render-key":u.value[Q.id],"comment-id":Q.id,item:Q,onCommentDeleted:v,onUpdateComment:y},null,8,["render-key","comment-id","item"]))),128)):at("",!0),Z[1]||(Z[1]=It()),a.value?(de(),We(Gt,{key:2},dn(3,Q=>Oe("div",{key:Q},[Le(nnl)])),64)):at("",!0)],512))}}),g1t=Sl(lnl,[["__scopeId","data-v-f72ffc4b"]]),inl=Ft({__name:"SectionRecentComment",setup(e,{expose:t}){const n=wJe(),r=u=>({...u}),a=async u=>{var p,U,m,R,N;const h=await n.getRecentActivities("comments.latest",u);return!u.after_id&&!u.before_id&&(d.value=(U=(p=h==null?void 0:h.comments)==null?void 0:p.latest)==null?void 0:U.meta["X-Tsr-signature"]),{...(m=h==null?void 0:h.comments)==null?void 0:m.latest,data:((N=(R=h==null?void 0:h.comments)==null?void 0:R.latest)==null?void 0:N.data.map(r))||[]}},o=Re(null),l=async()=>{var u;(u=o.value)==null||u.resetList()},s=async()=>{var h,p;const u=await n.getRecentActivities("comments.latest",kH);return{signature:(p=(h=u==null?void 0:u.comments)==null?void 0:h.latest)==null?void 0:p.meta["X-Tsr-signature"]}},d=Re("");return XH("comment_recent",s,d),t({resetList:l}),(u,h)=>(de(),mt(g1t,{ref_key:"listRef",ref:o,"get-data":a,"load-more":!0},null,512))}}),H4e=Sl(inl,[["__scopeId","data-v-a9219b2f"]]),snl=Ft({__name:"SectionResolvedComment",setup(e,{expose:t}){const n=wJe(),r=async p=>{var m,R,N,E,v;const U=await n.getRecentActivities("comments.recently_resolved",p);return!(p!=null&&p.before_id)&&!(p!=null&&p.after_id)&&(h.value=(R=(m=U==null?void 0:U.comments)==null?void 0:m.recently_resolved)==null?void 0:R.meta["X-Tsr-signature"]),{...(N=U==null?void 0:U.comments)==null?void 0:N.recently_resolved,data:((v=(E=U==null?void 0:U.comments)==null?void 0:E.recently_resolved)==null?void 0:v.data)||[]}},a=Re(null),o=async()=>{var p;(p=a.value)==null||p.resetList()},l=CR(),{refreshState:s}=eo(l),d=()=>{s.value.comment_resolved=!0};t({resetList:o});const u=async()=>{var U,m;const p=await n.getRecentActivities("comments.recently_resolved",kH);return{signature:(m=(U=p==null?void 0:p.comments)==null?void 0:U.recently_resolved)==null?void 0:m.meta["X-Tsr-signature"]}},h=Re("");return XH("comment_resolved",u,h),(p,U)=>(de(),mt(g1t,{ref_key:"listRef",ref:a,"get-data":r,"load-more":!0,onListDataChange:d},null,512))}}),dnl=Sl(snl,[["__scopeId","data-v-76be5b62"]]),cnl={class:"tab-sections"},unl={class:"tab"},hnl={class:"refresh-btn"},Anl=Ft({__name:"DashboardTabSection",props:{tabs:{}},setup(e){const t={comment_recent:H4e,comment_resolved:dnl,rendition:ktl,scene:K7t,people_comment:H4e,chart:H4e,assigned_scene:K7t},n=e,r=Re(n.tabs[0].id);Gc(()=>{r.value=n.tabs[0].id});const a=E=>{r.value=E};Tt(r,(E,v)=>{m.value[E]=!1,m.value[v]=!1});const o=Re({comment_recent:null,comment_resolved:null,rendition:null,scene:null,people_comment:null,chart:null,assigned_scene:null}),l=()=>{var v;const E=r.value;E&&m.value[E]!=null&&(m.value[E]=!1,(v=o.value[E])==null||v.resetList())},s=(E,v)=>{o.value[v]=E},d=Ve(()=>n.tabs.map(E=>({...E,id:E.id}))),u=Dd(),{basicInfo:h}=eo(u),p=Ve(()=>h.value.id);Tt(p,(E,v)=>{E&&E!==v&&Object.keys(o.value).forEach(y=>{var k;(k=o.value[y])==null||k.resetList()})});const U=CR(),{refreshState:m}=eo(U),R=Ve(()=>{const E=r.value;return m.value[E]}),N=Ve(()=>{const E=R.value?"Refresh":"",v=R.value?"Change detected. Refresh now.":"Refresh";return{prefixIcon:"ArrowRotate",label:E,size:"small",type:"secondary",prefixTooltip:v,onClick:l}});return(E,v)=>(de(),We("div",cnl,[Oe("div",unl,[Le(fe(lYe),{"key-value":"id",tabs:d.value,value:r.value,class:"arbo-tabs",onInput:a},Uc({_:2},[dn(d.value,y=>({name:`${y.id}`,fn:_e(()=>[y.id==r.value?(de(),mt(PA(t[y.id]),{key:0,ref:k=>s(k,y.id)},null,512)):at("",!0)])}))]),1032,["tabs","value"]),Oe("div",hnl,[Le(fe(Tr),Vn({...N.value},{onClick:l}),null,16)])])]))}}),P7t=Sl(Anl,[["__scopeId","data-v-1049641a"]]),pnl=["id"],Vnl=Ft({__name:"ResizeLayout",props:{minWidthRight:{default:730},minWidthLeft:{default:400},layoutName:{},mode:{default:"horizontal"},breakPoint:{default:1024},minHeight:{default:500},requireHeight:{default:500},requireRightMargin:{default:0}},emits:["resized"],setup(e,{expose:t,emit:n}){var G;const r=Re(null),a=Re(null),o=Re(null),l=Re(null),s=Re(!1),d=e,{height:u}=LDn(),h=n,p=Ve(()=>d.minWidthRight||730),U=Ve(()=>d.minWidthLeft||400),m=Ve(()=>R.value<UDn||u.value<700),{width:R}=j5(r),{width:N,height:E}=j5(a),v=Ve(()=>N.value),y=Ve(()=>E.value),{width:k}=j5(o),Z=Re(!1),Q=Re(((G=r.value)==null?void 0:G.offsetWidth)||0),g=()=>{const ee=l.value,ae=r.value,P=a.value,pe=o.value;!ee||!P||!pe||!ae||(ee.classList.add("active"),Z.value=!0,Q.value=ae.offsetWidth)},z=()=>{const ee=l.value;!ee||!Z.value||(Z.value=!1,ee.classList.remove("active"),gt(()=>{var ae,P;h("resized",[(ae=a.value)==null?void 0:ae.offsetWidth,(P=a.value)==null?void 0:P.offsetWidth]),X()}))},C=ee=>{const ae=l.value,P=r.value,pe=a.value,ue=o.value;if(!(!ae||!pe||!ue||!P)&&Z.value){const Ne=P.getBoundingClientRect(),Me=ee.clientX,Fe=Ne.left,ce=(Me-Fe)/Ne.width;if((1-ce)*Ne.width<p.value||ce*Ne.width<U.value)return;const L=Ne.width,ie=ce*L-5,Ae=(1-ce)*L-5;pe.style.width=`${ie}px`,ue.style.width=`${Ae}px`}},j=()=>{const ee=l.value,ae=r.value,P=a.value,pe=o.value;!ee||!P||!pe||!ae||(ee.addEventListener("mousedown",g),document.addEventListener("mousemove",C),document.addEventListener("mouseup",z))},X=()=>{const ee=JSON.stringify({left:N.value,right:k.value});localStorage.setItem("layout_"+d.layoutName,ee)},q=()=>{try{const ee=localStorage.getItem("layout_"+d.layoutName);if(ee){const{left:ae,right:P}=JSON.parse(ee);a.value&&o.value&&(a.value.style.width=`${ae}px`,o.value.style.width=`${P}px`)}}catch(ee){console.error("getSavedLayout",ee,a.value,o.value)}},$=()=>{Z.value&&z()};return sn(()=>{j(),gt(()=>{var ee,ae,P,pe;q(),h("resized",[(ee=a.value)==null?void 0:ee.offsetWidth,(ae=o.value)==null?void 0:ae.offsetWidth]),h("resized",[(P=a.value)==null?void 0:P.offsetWidth,(pe=o.value)==null?void 0:pe.offsetWidth]),s.value=!0}),document.addEventListener("resize",$)}),ul(()=>{const ee=l.value,ae=r.value,P=a.value,pe=o.value;!ee||!P||!pe||!ae||(ee.removeEventListener("mousedown",g),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",z))}),t({leftPanelRef:a,rightPanelRef:o,leftPanelWidth:N,rightPanelWidth:k}),(ee,ae)=>(de(),We("div",{id:`resize-layout-${d.layoutName}`,ref_key:"resizingPanelRef",ref:r,class:Xe(["resize-layout",[d.mode,{"break-layout":m.value}]])},[Oe("div",{ref_key:"leftPanelRef",ref:a,class:Xe(["resize-layout__content flex-1",{"disabled-pointer":Z.value}]),style:rn({"min-width":`${U.value}px`,minHeight:`${m.value?d.requireHeight:d.minHeight}px`})},[s.value?Rt(ee.$slots,"left",{key:0,width:v.value,height:y.value,ready:s.value,isColumnLayout:m.value},()=>[ae[0]||(ae[0]=Oe("div",{class:"loading-box skeleton-animation"},null,-1))],!0):at("",!0)],6),Oe("div",{ref_key:"resizeBar",ref:l,class:"resize-layout__resize-bar"},null,512),Oe("div",{ref_key:"rightPanelRef",ref:o,class:Xe(["resize-layout__content",{"disabled-pointer":Z.value}]),style:rn({"min-width":`${p.value}px`,minHeight:`${d.minHeight}px`,"margin-right":`${d.requireRightMargin}px`})},[s.value?Rt(ee.$slots,"right",{key:0},()=>[ae[1]||(ae[1]=Oe("div",{class:"loading-box skeleton-animation"},null,-1))],!0):at("",!0)],6)],10,pnl))}}),uqn=Sl(Vnl,[["__scopeId","data-v-4affbe04"]]),mnl=Ft({__name:"PreferencePopup",props:{width:{default:280},isActive:{type:Boolean}},setup(e){const t=e,n=()=>{a.value?o():r()},r=()=>{u(),a.value=!0},a=Re(!1),o=()=>{a.value=!1},l=Re(null),s=Re(null),d=Re(null);IDn(l,()=>{o()});const u=()=>{const h=s.value,p=d.value;if(!h||!p)return;const U=h.getBoundingClientRect();p.style.top=`${U.bottom}px`,p.style.left=`${U.left-t.width+U.width}px`,p.style.right=`${window.innerWidth-U.right}px`};return(h,p)=>(de(),We("div",{ref_key:"preferencePopupComponentRef",ref:l,class:"preference-popup-component"},[Oe("div",{ref_key:"activatorButtonRef",ref:s,class:Xe(["activator-button",{active:a.value}])},[Rt(h.$slots,"activator",{},()=>[Le(fe(Tr),{class:Xe({highlight:h.isActive}),"prefix-icon":"Gear","prefix-tooltip":"Preference",type:"secondary",label:"",size:"small",onClick:n},null,8,["class"])],!0)],2),St(Oe("div",{ref_key:"preferencePopupRef",ref:d,class:"preference-popup",style:rn({width:t.width+"px"})},[Rt(h.$slots,"content",{},void 0,!0)],4),[[Eo,a.value]])],512))}}),Unl=Sl(mnl,[["__scopeId","data-v-7866896b"]]),fnl=Ft({__name:"SkeletonLoading",props:{isLoading:{type:Boolean},width:{},height:{}},setup(e){const t=e,n=Ve(()=>({"--card-width":`${t.width}px`,"--card-height":`${t.height}px`}));return(r,a)=>(de(),mt(gm,{name:"fade",mode:"out-in"},{default:_e(()=>[r.isLoading?(de(),We("div",{key:0,class:"card-skeleton skeleton-animation",style:rn(n.value)},null,4)):Rt(r.$slots,"default",{key:1},void 0,!0)]),_:3}))}}),Rnl=Sl(fnl,[["__scopeId","data-v-94ead0ea"]]),Nnl={class:"section-title"},Znl={class:"title"},Tnl={class:"actions"},Fnl={class:"counting-chip"},Enl=Ft({__name:"SectionTitle",props:{countBtn:{default:void 0},showRefreshLabel:{type:Boolean,default:!1},showRefreshBtn:{type:Boolean},title:{default:""},loading:{type:Boolean,default:!0},activeFilter:{type:Boolean,default:!1}},emits:["refresh"],setup(e,{emit:t}){const n=uc(),r=d=>!!n[d],a=e,o=Re(0),l=t,s=()=>{o.value+=1,l("refresh")};return(d,u)=>(de(),We("div",Nnl,[Rt(d.$slots,"title",{},()=>[Oe("div",Znl,Et(d.title),1)],!0),Oe("div",Tnl,[Rt(d.$slots,"search",{},void 0,!0),u[0]||(u[0]=It()),Rt(d.$slots,"refresh",{},()=>[d.showRefreshBtn?(de(),mt(fe(ld),{key:0,content:d.showRefreshLabel?"Change detected. Refresh now.":"Refresh",delay:[300,0]},{default:_e(()=>[d.showRefreshLabel?(de(),mt(fe(Tr),{key:o.value,type:"secondary",label:"Refresh","prefix-icon":"ArrowRotate",size:"small",onClick:s})):(de(),mt(fe(Tr),{key:o.value+1,type:"secondary",label:"","prefix-icon":"ArrowRotate",size:"small",onClick:s}))]),_:1},8,["content"])):at("",!0)],!0),u[1]||(u[1]=It()),Rt(d.$slots,"count",{},()=>[d.countBtn?(de(),mt(fe(ld),{key:0,content:d.countBtn.countTooltip,delay:[1e3,0]},{default:_e(()=>[Le(Rnl,{"is-loading":a.loading,width:50,height:24},{default:_e(()=>[Oe("div",Fnl,[Le(fe(ame),{label:String(d.countBtn.count||"0"),icon:d.countBtn.icon},null,8,["label","icon"])])]),_:1},8,["is-loading"])]),_:1},8,["content"])):at("",!0)],!0),u[2]||(u[2]=It()),Rt(d.$slots,"preferences",{},()=>[r("preference-popup")||r("preference")?(de(),mt(Unl,{key:0,"is-active":d.activeFilter},{content:_e(()=>[Rt(d.$slots,"preference-popup",{},void 0,!0)]),_:3},8,["is-active"])):at("",!0)],!0)])]))}}),UAe=Sl(Enl,[["__scopeId","data-v-29b0ecf7"]]),vnl={class:"section-card"},bnl=Ft({__name:"PeopleHome",setup(e){const t={"assigned-tile":ctl,"target-points-tile":mtl,"unresolved-tile":Utl,"overdue-tile":htl,"total-completed-tile":utl},n=CR(),{getDashboardData:r}=n,{dashboardData:a}=eo(n),o=Ve(()=>{var g;return["assigned-tile",((g=a.value)==null?void 0:g.point_pool.can_view)?"target-points-tile":void 0,"overdue-tile","unresolved-tile","total-completed-tile"].filter(Boolean)}),l=Re(!0),s=[{id:"comment_resolved",name:"Recently resolved",needRefresh:!0},{id:"comment_recent",name:"Recent comments",needRefresh:!0}],d=Ve(()=>({"--card-width":`${y.value}px`,"--max-width":`${y.value}px`})),u=[{id:"rendition",name:"New renditions",needRefresh:!0},{id:"scene",name:`Recently accessed ${MA({code:"scene"})}`,needRefresh:!0}],{height:h}=LDn(),p=Re(null),U=Re(null),m=Dd(),{basicInfo:R}=eo(m),N=Re(null),{width:E}=j5(N),v=Ve(()=>E.value),y=Ve(()=>{const Z=E.value,Q=Math.min(Math.floor(Z/266),5),g=Z-(Q-1)*16;return Math.floor(g/Math.ceil(Q))}),k=uhe(async()=>{R.value.id&&(l.value=!0,await r(R.value.id),l.value=!1)},500);return Tt(R,()=>{k()},{deep:!0,immediate:!0}),(Z,Q)=>(de(),We("div",{ref_key:"peopleHomeRef",ref:p,class:"people-home"},[Oe("div",{ref_key:"topRef",ref:U,class:"top"},[Le(UAe,{title:"Summary","show-refresh-btn":!0,onRefresh:fe(k)},null,8,["onRefresh"]),Oe("div",{ref_key:"sectionRef",ref:N,class:"section-card-wrapper"},[Oe("div",vnl,[(de(!0),We(Gt,null,dn(o.value,g=>(de(),We("div",{key:g,class:"dashboard-item-wrapper"},[Le(gm,{name:"fade",mode:"out-in"},{default:_e(()=>[l.value?(de(),We("div",{key:0,class:"card-skeleton skeleton-animation",style:rn(d.value)},null,4)):(de(),mt(PA(t[g]),{key:1,class:"dashboard-item",style:rn(d.value)},null,8,["style"]))]),_:2},1024)]))),128))])],512)],512),Oe("div",{class:Xe(["bottom",{"column-layout":v.value<=fe(UDn)||fe(h)<700}])},[Le(uqn,{"min-width-left":440,"min-width-right":750,"layout-name":"people-home",class:"resize-layout"},{left:_e(()=>[Le(P7t,{tabs:s})]),right:_e(()=>[Le(P7t,{tabs:u})]),_:1,__:[0]})],2)],512))}}),Wnl=Sl(bnl,[["__scopeId","data-v-77777a69"]]),ynl=["onMouseenter","onMouseleave"],Mnl=["innerHTML"],knl=["innerHTML"],Snl=Ft({__name:"SharedSnackbar",setup(e){const t=a0e(),{contentSnackBar:n}=eo(t),r=KDn(),{notifications:a}=eo(r),o=Ve(()=>[...a.value,...n.value?[{id:"content-snackbar",message:n.value.label,type:n.value.bgColor=="#FF5200"?"error":"success",actions:void 0,icon:void 0}]:[]]),l=m=>m.trim().startsWith("<svg"),s=Re("Copy"),d=()=>{setTimeout(()=>{s.value="Copy"},3e3)},u=m=>{navigator.clipboard.writeText(m).then(()=>{s.value="Copied",d()},()=>{s.value="Copy failed",d()})},h=Re(new Set),p=m=>{var R;h.value.add(m),(R=r.pauseAutoDismiss)==null||R.call(r,m)},U=m=>{var R;h.value.delete(m),(R=r.resumeAutoDismiss)==null||R.call(r,m)};return(m,R)=>{const N=Sc("contrast");return de(),mt(Emn,{name:"list",tag:"div",class:Xe(["notification-center",m.$style["notification-wrapper"]])},{default:_e(()=>[(de(!0),We(Gt,null,dn(o.value,E=>{var v;return St((de(),We("div",{key:E.id,class:Xe([m.$style["notification-item"],m.$style[`notification--${E.type||"info"}`],!(E!=null&&E.actions)||((v=E==null?void 0:E.actions)==null?void 0:v.length)==0?m.$style["snackbar-type"]:""]),onMouseenter:y=>p(E.id),onMouseleave:y=>U(E.id)},[Oe("p",{class:Xe(m.$style.snackbar__message)},[Oe("span",{class:Xe(m.$style.snackbar__icon)},[!E.icon&&E.type=="success"?(de(),mt(fe(cl),{key:0,name:"CircleCheck"})):at("",!0),!E.icon&&E.type=="interactive"?(de(),mt(fe(cl),{key:1,name:"CircleCheck"})):!E.icon&&E.type=="error"?(de(),mt(fe(cl),{key:2,name:"CircleXMark"})):E.icon&&l(E.icon)?(de(),We("i",{key:3,class:Xe(m.$style["icon-draw"]),innerHTML:E.icon},null,10,Mnl)):E.icon&&!l(E.icon)?(de(),mt(fe(cl),{key:4,src:E.icon,color:"var(--primary-color)"},null,8,["src"])):at("",!0)],2),Oe("span",{class:Xe(m.$style["error-message"])},[Oe("span",{class:Xe(m.$style.message),innerHTML:E.message},null,10,knl)],2)],2),E.type!=="interactive"?(de(),mt(fe(Tr),{key:0,type:"secondary",class:Xe([m.$style["copy-btn"],"copy-snackbar-btn"]),"prefix-icon":"Copy","prefix-tooltip":s.value,label:"",size:"24",style:{minWidth:"24px",width:"24px",height:"24px",padding:"0"},onClick:y=>u(E.message)},null,8,["class","prefix-tooltip","onClick"])):at("",!0)],42,ynl)),[[N]])}),128))]),_:1},8,["class"])}}}),gnl="_snackbar__message_1dmxa_76",Qnl="_message_1dmxa_89",znl="_snackbar__icon_1dmxa_103",wnl={"notification-wrapper":"_notification-wrapper_1dmxa_1","notification-item":"_notification-item_1dmxa_15","notification--success":"_notification--success_1dmxa_30","notification--error":"_notification--error_1dmxa_36","close-btn":"_close-btn_1dmxa_42","notification--info":"_notification--info_1dmxa_45","notification--warning":"_notification--warning_1dmxa_52","notification--interactive":"_notification--interactive_1dmxa_59","snackbar-type":"_snackbar-type_1dmxa_67",snackbar__message:gnl,message:Qnl,"error-message":"_error-message_1dmxa_97",snackbar__icon:znl,"actions-notification":"_actions-notification_1dmxa_112","icon-draw":"_icon-draw_1dmxa_120","copy-btn":"_copy-btn_1dmxa_128","arbo__icon-btn":"_arbo__icon-btn_1dmxa_137"},Dnl={$style:wnl},Onl=Sl(Snl,[["__cssModules",Dnl]]),xnl={class:"copy-btn"},Ynl=Ft({__name:"CopyWrapper",setup(e){const t=Re(!1);return(n,r)=>(de(),We("div",{class:"copy-wrapper",onMouseenter:r[0]||(r[0]=a=>t.value=!0),onMouseleave:r[1]||(r[1]=a=>t.value=!1)},[Rt(n.$slots,"default",{},void 0,!0),St(Oe("div",xnl,[Rt(n.$slots,"copy-btn",{},void 0,!0)],512),[[Eo,t.value]])],32))}}),q7t=Sl(Ynl,[["__scopeId","data-v-138fd01f"]]),Bnl={class:"user-switcher"},Jnl=Ft({__name:"UserSwitcher",props:{showProfileBtn:{type:Boolean}},setup(e){const t=Re([]),n=Ve(()=>{const{id:R,display_name:N}=d.value;return Yc({type:"people_detail",config:{baseDomain:sessionStorage.getItem("BASE_URL")||"",reviewDomain:sessionStorage.getItem("BASE_REVIEW_URL")||"",ws_code:sessionStorage.getItem("ws.code")||"",user_id:R,display_name:N}}).url}),r=R=>{t.value=[R]},a=Dd(),{selectedDataId:o,currentTab:l,userInfo:s,basicInfo:d}=eo(a),u=VDn(),{getEnvVariable:h}=Sk(),p=h("IS_DETACH"),U=R=>({id:R.id,name:R.display_name,profile_image:R.profile_image,color:{bgColor:R.color.bgColor,textColor:R.color.textColor},initial:R.initial}),m=async R=>{var E,v;const N=await $o.getUserListProfile(R.page,10,o.value||"",R.keyword);return N?{data:{data:(E=N.data)==null?void 0:E.map(U),meta:{last_page:((v=N.meta)==null?void 0:v.last_page)||1}},success:!0}:{success:!1,data:void 0}};return Tt(()=>t.value,()=>{p||u.replace({name:"PeopleDetail",params:{people_id:t.value.length>0?t.value[0].id:IGt(),ws_code:Mo()},query:{tab:l.value||"home"}})}),Tt(d,()=>{var R,N;t.value=[{id:d.value.id,name:d.value.display_name,profile_image:d.value.profile_image,color:{bgColor:(R=d.value.color)==null?void 0:R.bgColor,textColor:(N=d.value.color)==null?void 0:N.textColor},initial:d.value.initial}]},{immediate:!0,deep:!0}),Tt(t,R=>{a.setSelectedDataId(R.length>0?R[0].id:IGt())}),(R,N)=>(de(),We("div",Bnl,[t.value.length>0?(de(),mt(fe(Uft),{key:0,ref:"assigneeSelectorRef",modelValue:t.value,"onUpdate:modelValue":N[0]||(N[0]=E=>t.value=E),"get-data-api-func":m,"is-multiple-select":!1,"using-live-search":!0,style:{"--icon-color":"#A6A6A6"},onSelect:r,showTooltip:!1},null,8,["modelValue"])):at("",!0),N[1]||(N[1]=It()),R.showProfileBtn?(de(),mt(fe(Tr),{key:1,type:"secondary","prefix-icon":"Gear",label:"","prefix-tooltip":"Manage user",href:n.value},null,8,["href"])):at("",!0)]))}}),jnl=Sl(Jnl,[["__scopeId","data-v-6b4eb7e1"]]),Gnl=Ft({__name:"CopyButton",props:{content:{},icon:{default:"Link"},size:{default:32},type:{default:"secondary"},copyTooltip:{default:"Copy"},coppiedTooltip:{default:"Copied"}},setup(e){const t=e;Ve(()=>{const l=t.size||24;return{width:`${l}px`,height:`${l}px`,minWidth:`${l}px`,minHeight:`${l}px`}});const n=Re(!1),r=Ve(()=>t.content.trim().length>0),a=Ve(()=>n.value===!0?t.coppiedTooltip:t.copyTooltip),o=async()=>{if(r.value)try{await navigator.clipboard.writeText(t.content),n.value=!0,setTimeout(()=>{n.value=!1},3e3)}catch(l){console.error("copyProfileLink",l),n.value=!1}};return(l,s)=>{const d=Sc("arbo-tooltip");return St((de(),mt(fe(Tr),{"suffix-icon":t.icon||"Link",label:"",onClick:Ct(o,["prevent"]),size:"small",type:"secondary"},null,8,["suffix-icon"])),[[d,{content:a.value,delay:[300,0],hideOnClick:!1}]])}}}),C4e=Sl(Gnl,[["__scopeId","data-v-1aee5878"]]),Inl={class:"pi-header-wrapper"},Xnl={class:"pi-taskbar"},Hnl={class:"pi-copy-link"},Cnl={class:"pi-header"},Lnl={class:"pi-avatar"},Knl={key:"avatar-content",class:"pi-avatar__content"},Pnl={class:"pi-information"},qnl={key:"info-content",class:"pi-information__content"},_nl={class:"pi-selector"},$nl={class:"pi-role"},erl={class:"pi-mail"},trl={class:"pi-actions"},nrl={key:"actions-content",class:"pi-actions__content"},rrl={class:"pi-teams"},arl=Ft({__name:"HeaderSkeleton",props:{loading:{type:Boolean}},setup(e){return(t,n)=>(de(),We("div",Inl,[Oe("div",Xnl,[Oe("div",Hnl,[Rt(t.$slots,"copy-link",{},()=>[n[0]||(n[0]=Oe("div",{class:"skeleton-animation"},null,-1))],!0)])]),Oe("div",Cnl,[Oe("div",Lnl,[Oe("div",Knl,[Rt(t.$slots,"avatar",{},()=>[n[1]||(n[1]=Oe("div",{class:"skeleton-animation"},null,-1))],!0)])]),Oe("div",Pnl,[Oe("div",qnl,[Rt(t.$slots,"info",{},()=>[Oe("div",_nl,[Rt(t.$slots,"selector",{},()=>[n[2]||(n[2]=Oe("div",{class:"skeleton-animation"},null,-1))],!0)]),Oe("div",$nl,[Rt(t.$slots,"role",{},()=>[n[3]||(n[3]=Oe("div",{class:"skeleton-animation h-md"},null,-1))],!0)]),Oe("div",erl,[Rt(t.$slots,"professional",{},()=>[n[4]||(n[4]=Oe("div",{class:"skeleton-animation h-sm"},null,-1))],!0),Rt(t.$slots,"mail",{},()=>[n[5]||(n[5]=Oe("div",{class:"skeleton-animation h-sm"},null,-1))],!0)])],!0)])]),Oe("div",trl,[Oe("div",nrl,[Oe("div",rrl,[Rt(t.$slots,"teams",{},()=>[n[6]||(n[6]=Oe("div",{class:"skeleton-animation"},null,-1))],!0)])])])])]))}}),orl=Sl(arl,[["__scopeId","data-v-e8380773"]]),lrl=Ft({__name:"IndicatorWrapper",props:{size:{},inicatorSize:{},indicatorColor:{},indicatorTooltipContent:{}},setup(e){const t=e,n=Ve(()=>t.size?`${t.size}px`:"16px"),r=Ve(()=>t.inicatorSize?`${t.inicatorSize}px`:"8px"),a=Ve(()=>{const o=t.inicatorSize/2;return{top:`-${o}px`,right:`-${o}px`,width:r.value,height:r.value,backgroundColor:t.indicatorColor||"red"}});return(o,l)=>(de(),We("div",{class:Xe(o.$style["indicator-wrapper"]),style:rn({width:n.value,height:n.value})},[Rt(o.$slots,"indicator",{},()=>[Oe("div",{class:Xe(o.$style.indicator),style:rn(a.value)},[Le(fe(ld),{content:o.indicatorTooltipContent,delay:[300,0],"hide-on-click":!0,placement:"top",style:{width:"100%",height:"100%"}},null,8,["content"])],6)]),Oe("div",{class:Xe(o.$style.content)},[Rt(o.$slots,"content")],2)],6))}}),irl="_indicator_n90om_1",srl="_content_n90om_20",drl={"indicator-wrapper":"_indicator-wrapper_n90om_1",indicator:irl,content:srl},crl={$style:drl},url=Sl(lrl,[["__cssModules",crl]]),hrl={key:0,class:"avatar"},Arl={key:0,class:"roles"},prl={class:"timezone"},Vrl={class:"icon-globle"},mrl={key:0},Url={key:1},frl=["href"],Rrl={key:0,class:"team-wrapper"},Nrl={key:1},Zrl=Ft({__name:"SharedHeader",emits:["loaded"],setup(e,{emit:t}){const n=Re(null),r=Dd(),{basicInfo:a,permissionList:o}=eo(r),l=Re(null),s=Re(!1),d=Ve(()=>r.basicInfo.private_info),u=Ve(()=>{var ie;return((ie=r.basicInfo.private_info)==null?void 0:ie.timezone)||""}),h=Re(new Date),p=Ve(()=>!g.isLoading&&R.value),U=Ve(()=>{if(!u.value)return"";try{return h.value.toLocaleTimeString("en-US",{timeZone:u.value,hour:"numeric",minute:"2-digit",hour12:!0})}catch{return console.error("Invalid timezone:",u.value),""}}),m=Ve(()=>{var L,ie,Ae;return((L=d.value)==null?void 0:L.is_offline)===!0?"#6B6B6B":((ie=d.value)==null?void 0:ie.last_active)!==null?"#02C39A":((Ae=d.value)==null?void 0:Ae.last_active)===null?"#F7941D":""}),{selectedDataId:R}=eo(r),N=Ve(()=>{var L,ie;return((ie=(L=r.basicInfo)==null?void 0:L.user)==null?void 0:ie.professional_name)||""}),E=Ve(()=>{var L,ie,Ae,we,ze,Ue;return{initialName:((L=r.basicInfo)==null?void 0:L.initial)||"",bgColor:((Ae=(ie=r.basicInfo)==null?void 0:ie.color)==null?void 0:Ae.bgColor)||"#E0E0E0",textColor:((ze=(we=r.basicInfo)==null?void 0:we.color)==null?void 0:ze.textColor)||"#6B6B6B",profileImage:((Ue=r.basicInfo)==null?void 0:Ue.profile_image)||""}}),v=Ve(()=>{var Ae;const L=(Ae=r.basicInfo)==null?void 0:Ae.user,ie=r.userInfo;return(L==null?void 0:L.id)===(ie==null?void 0:ie.id)?ie.professional_name===null:!1}),y=Ve(()=>({backgroundColor:m.value})),k=Ve(()=>{var L,ie,Ae;return((L=d.value)==null?void 0:L.is_offline)===!0?"Logged out from account":((ie=d.value)==null?void 0:ie.last_active)!==null?"Active in the workspace within the last 10 minutes":((Ae=d.value)==null?void 0:Ae.last_active)===null?"No activity in the workspace within the last 10 minutes":""}),Z=Ve(()=>{var L,ie;return((ie=(L=r.basicInfo)==null?void 0:L.user)==null?void 0:ie.email)||""});async function Q(){if(E.value.profileImage){s.value=!0;try{const L=await fetch(E.value.profileImage,{method:"GET"});L.ok?l.value=E.value.profileImage:(console.error("loadImageSrc: Invalid image URL",L.status),l.value="")}catch(L){console.error("loadImageSrc: Error fetching image:",L),l.value=""}finally{s.value=!1}}else l.value="",s.value=!1}const g=tr({isLoading:!1,profileInfo:void 0}),z=Ve(()=>{const L=new Set(["people_getListOfWorkspaceUsers_read","guest_getListOfWorkspaceGuests_read"]);return o.value.some(ie=>L.has(ie))}),C=async()=>{try{g.isLoading=!0,aX.setSessionCookie("ws.user-access-id",r.selectedDataId);const L=await $o.getUserBasicInfo(r.selectedDataId);r.setSelectedDataProfile(L),D6.remove("account.last_access_url_people_tile",{domain:ue("BASE_DOMAIN_COOKIE")})}catch(L){g.isLoading=!1,console.error("fetchBasicInfo",L)}finally{g.isLoading=!1}},j=async()=>{try{const L=await $o.getUserPermission();r.setPermission(L)}catch(L){console.error("fetchUserPermission",L)}};function X(L,ie,Ae,we="png"){return new Promise(ze=>{const Ue=new Image,re=document.createElement("canvas");re.width=ie,re.height=Ae;const xe=re.getContext("2d");xe&&(Ue.onload=()=>{xe.drawImage(Ue,0,0,ie,Ae);const Qe=re.toDataURL(`image/${we}`);ze(Qe)},Ue.src=`data:image/svg+xml;base64,${btoa(L)}`)})}const q=Re("");async function $(){const L=ue("ASSET_URL");if(L){const ie=`${L}/icon/general/default-avatar.svg`;try{const Ae=await fetch(ie);if(!Ae.ok)throw new Error("Failed to load SVG file");const we=await Ae.text(),ze=await X(we,100,100);q.value=ze}catch(Ae){console.error("Error:",Ae)}}}Ve(()=>{const L=r.basicInfo;return L&&L.private_info&&L.private_info.common_team&&L.private_info.common_team.team?L.private_info.common_team.team.map(ie=>{const Ae=ie.avatar===null||ie.avatar===void 0?q.value:ie.avatar;return{...ie,avatar:Ae}}):[]});const G=Ve(()=>{const L=r.basicInfo;return L&&L.private_info&&L.private_info.common_team&&L.private_info.common_team.team?L.private_info.common_team.team.map(ie=>{const Ae=ie.avatar===null||ie.avatar===void 0?q.value:ie.avatar;return{id:ie.id,name:ie.name,profile_image:Ae,color:{bgColor:"#E0E0E0",textColor:"#FFFFFF"},initial:ie.name?ie.name.charAt(0).toUpperCase():""}}):[]}),ee=async()=>{try{const L=await $o.getUserProfile();r.setUserInfo(L)}catch(L){console.error("fetchUserProfile",L)}},ae=t,P=async()=>{try{g.isLoading=!0,await ee(),await j(),$(),Q(),setTimeout(()=>{ae("loaded")},3e3)}catch(L){console.error("init",L)}};let pe;sn(async()=>{await P(),pe=setInterval(()=>{h.value=new Date},6e4)}),id(()=>{pe&&clearInterval(pe)});const{getEnvVariable:ue}=Sk(),Ne=Ve(()=>Yc({type:"people_insight",config:{baseDomain:ue("BASE_URL"),ws_code:Mo(),user_id:String(R.value)||""}}).url),Me=L=>{var Ue,re;const ie=(re=(Ue=n.value)==null?void 0:Ue.$el)==null?void 0:re.closest(".arbo-instance-container");if(!ie){console.warn("Instance wrapper not found, cannot change module ID config");return}const Ae=ie.className,we=Ae.match(/arbo-instance-([^\s]+)/),ze=we?we[1]:null;if(ze){const Qe=globalThis.window.appManager.currentInstance.popupStack.find(Ye=>Ye.type===ze);Qe.config.id=L}else console.warn("Instance type not found in class names:",Ae)},Fe=Ve(()=>a.value.ws_role?[{id:a.value.ws_role.id,label:a.value.ws_role.name,color:"#A6A6A6"}]:[]);Tt(()=>r.selectedDataId,L=>{L&&setTimeout(()=>{L&&(C(),Me(String(L)))},300)},{immediate:!0,deep:!0}),Tt(()=>r.basicInfo,L=>{L&&(g.profileInfo=L,Q())},{deep:!0}),Tt(()=>g.isLoading,L=>{r.setIsLoadingProfile(L)},{deep:!0});const ce=L=>{let ie=Mo();const Ae=ue("BASE_URL");if(!ie||!Ae)return;const we=`${Ae}/${ie}/ac/acc`;L.ctrlKey||L.metaKey?window.open(we,"_blank"):window.location.href=we};return(L,ie)=>{const Ae=Ws("ArboIcon"),we=Ws("arbo-label"),ze=Ws("AvatarGroup");return de(),mt(orl,{ref_key:"headerRef",ref:n,loading:g.isLoading||!fe(R)},{avatar:_e(()=>[p.value?(de(),We("div",hrl,[Le(url,{size:121,"inicator-size":14,"indicator-color":y.value.backgroundColor,"indicator-tooltip-content":k.value},{content:_e(()=>[Le(fe(_I),{image:l.value,label:"","short-label":E.value.initialName,"is-use-short-label":!0,"bg-color":E.value.bgColor,"text-color":E.value.textColor,style:{height:"121px",width:"121px",borderRadius:"8px !important",border:"1px solid #ff5f7f8"},"disable-hover":!0,class:Xe("pi-avatar")},null,8,["image","short-label","bg-color","text-color"])]),_:1},8,["indicator-color","indicator-tooltip-content"])])):at("",!0)]),role:_e(()=>[p.value?(de(),We("div",Arl,[(de(!0),We(Gt,null,dn(Fe.value,Ue=>(de(),We("div",{key:Ue.id,class:"role-badge",style:rn({backgroundColor:Ue.color,color:"#fff"})},Et(Ue.label),5))),128)),Oe("div",prl,[Oe("div",Vrl,[Le(Ae,{name:"Globe"})]),u.value?(de(),We("span",mrl,Et(U.value)+" ("+Et(u.value)+")",1)):(de(),We("span",Url,"time (timezone) "))])])):at("",!0)]),selector:_e(()=>[p.value?(de(),mt(jnl,{key:0,"show-profile-btn":z.value},null,8,["show-profile-btn"])):at("",!0)]),professional:_e(()=>[p.value?(de(),mt(q7t,{key:0},{default:_e(()=>[v.value?(de(),mt(fe(Tr),{key:0,"prefix-icon":"",type:"tertiary","prefix-tooltip":"Add professional name",label:N.value||"Add professional name",style:{justifyContent:"flex-start",display:"flex",padding:0,width:"max-content",height:"21px"},onClick:ce},null,8,["label"])):(de(),mt(we,{key:1,label:N.value||"Professional name not provided",style:rn({color:N.value?"":"#D7D7D7"}),class:"professional-name-label"},null,8,["label","style"]))]),"copy-btn":_e(()=>[N.value?(de(),mt(C4e,{key:0,content:N.value,icon:"Copy",type:"tertiary","copy-tooltip":"Copy","coppied-tooltip":"Copied",size:24},null,8,["content"])):at("",!0)]),_:1,__:[0]})):at("",!0)]),mail:_e(()=>[p.value?(de(),mt(q7t,{key:0},{default:_e(()=>[Z.value?(de(),We("a",{key:0,type:"email",href:`mailto:${Z.value}`,class:"email-label",style:{color:"inherit"}},[Le(we,{label:Z.value},null,8,["label"])],8,frl)):(de(),mt(we,{key:1,label:"Email not provided",class:"email-label",style:{color:"#6B6B6B"}}))]),"copy-btn":_e(()=>[Z.value?(de(),mt(C4e,{key:0,content:Z.value,icon:"Copy",type:"tertiary","copy-tooltip":"Copy","coppied-tooltip":"Copied",size:24},null,8,["content"])):at("",!0)]),_:1,__:[1]})):at("",!0)]),"copy-link":_e(()=>[p.value?(de(),mt(C4e,{key:0,content:Ne.value,type:"secondary"},null,8,["content"])):at("",!0)]),teams:_e(()=>[p.value?(de(),We("div",Rrl,[G.value&&G.value.length>0?(de(),mt(ze,{key:0,options:G.value,"max-display":3},null,8,["options"])):at("",!0),G.value.length==0?(de(),We("div",Nrl,"No team")):at("",!0)])):at("",!0)]),_:1,__:[2,3,4,5,6,7]},8,["loading"])}}}),Trl=Sl(Zrl,[["__scopeId","data-v-c5bd09e5"]]),Frl=Ft({__name:"MenuTab",setup(e){const t=Dd(),{currentTab:n,basicInfo:r,userInfo:a}=eo(t),o=mDn();Gc(()=>{var m;if(Sk().getEnvVariable("IS_DETACH"))return;const U=(m=o==null?void 0:o.query)==null?void 0:m.tab;U&&p.value.findIndex(R=>R.id==U)&&(n.value=U)});const l=Ve(()=>r.value.id?r.value.id:""),{permissionList:s}=eo(t),d=fl("currentUserId"),u=Ve(()=>l.value==d),h=Ve(()=>{const U=new Set(["peopleTile_getMyTargetsUserInterface_read","target_getLeaderboardUserInterface_read"]);return s.value.some(m=>U.has(m))}),p=Ve(()=>{const U=u.value&&h.value;return[{id:"people-home",name:"",content:"",tooltipName:"Summary",icon:"House"},{id:"people-scenes",name:"",content:"",tooltipName:`Assigned ${MA({code:"scene"})}`,icon:"PhotoVideo"},{id:"people-charts",name:"",content:"",tooltipName:"Charts",icon:"ChartPie"},{id:"people-comments",name:"",content:"",tooltipName:"Assigned Comments",icon:"Comments"},{id:"report-tab",name:"",content:"",tooltipName:"Reports",icon:"File"},...U?[{id:"people-target",name:"",content:"",tooltipName:"Target",icon:"Award"}]:[]]});return(U,m)=>(de(),mt(fe(lYe),{tabs:p.value,position:"left",value:fe(n),onInput:m[0]||(m[0]=R=>n.value=R)},null,8,["tabs","value"]))}});var L4e,_7t;function hqn(){if(_7t)return L4e;_7t=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return L4e=e,L4e}var K4e,$7t;function Erl(){if($7t)return K4e;$7t=1;var e=typeof N3=="object"&&N3&&N3.Object===Object&&N3;return K4e=e,K4e}var P4e,e_t;function Aqn(){if(e_t)return P4e;e_t=1;var e=Erl(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return P4e=n,P4e}var q4e,t_t;function vrl(){if(t_t)return q4e;t_t=1;var e=Aqn(),t=function(){return e.Date.now()};return q4e=t,q4e}var _4e,n_t;function brl(){if(n_t)return _4e;n_t=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return _4e=t,_4e}var $4e,r_t;function Wrl(){if(r_t)return $4e;r_t=1;var e=brl(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return $4e=n,$4e}var eKe,a_t;function pqn(){if(a_t)return eKe;a_t=1;var e=Aqn(),t=e.Symbol;return eKe=t,eKe}var tKe,o_t;function yrl(){if(o_t)return tKe;o_t=1;var e=pqn(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,a=e?e.toStringTag:void 0;function o(l){var s=n.call(l,a),d=l[a];try{l[a]=void 0;var u=!0}catch{}var h=r.call(l);return u&&(s?l[a]=d:delete l[a]),h}return tKe=o,tKe}var nKe,l_t;function Mrl(){if(l_t)return nKe;l_t=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return nKe=n,nKe}var rKe,i_t;function krl(){if(i_t)return rKe;i_t=1;var e=pqn(),t=yrl(),n=Mrl(),r="[object Null]",a="[object Undefined]",o=e?e.toStringTag:void 0;function l(s){return s==null?s===void 0?a:r:o&&o in Object(s)?t(s):n(s)}return rKe=l,rKe}var aKe,s_t;function Srl(){if(s_t)return aKe;s_t=1;function e(t){return t!=null&&typeof t=="object"}return aKe=e,aKe}var oKe,d_t;function grl(){if(d_t)return oKe;d_t=1;var e=krl(),t=Srl(),n="[object Symbol]";function r(a){return typeof a=="symbol"||t(a)&&e(a)==n}return oKe=r,oKe}var lKe,c_t;function Qrl(){if(c_t)return lKe;c_t=1;var e=Wrl(),t=hqn(),n=grl(),r=NaN,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;function d(u){if(typeof u=="number")return u;if(n(u))return r;if(t(u)){var h=typeof u.valueOf=="function"?u.valueOf():u;u=t(h)?h+"":h}if(typeof u!="string")return u===0?u:+u;u=e(u);var p=o.test(u);return p||l.test(u)?s(u.slice(2),p?2:8):a.test(u)?r:+u}return lKe=d,lKe}var iKe,u_t;function zrl(){if(u_t)return iKe;u_t=1;var e=hqn(),t=vrl(),n=Qrl(),r="Expected a function",a=Math.max,o=Math.min;function l(s,d,u){var h,p,U,m,R,N,E=0,v=!1,y=!1,k=!0;if(typeof s!="function")throw new TypeError(r);d=n(d)||0,e(u)&&(v=!!u.leading,y="maxWait"in u,U=y?a(n(u.maxWait)||0,d):U,k="trailing"in u?!!u.trailing:k);function Z(G){var ee=h,ae=p;return h=p=void 0,E=G,m=s.apply(ae,ee),m}function Q(G){return E=G,R=setTimeout(C,d),v?Z(G):m}function g(G){var ee=G-N,ae=G-E,P=d-ee;return y?o(P,U-ae):P}function z(G){var ee=G-N,ae=G-E;return N===void 0||ee>=d||ee<0||y&&ae>=U}function C(){var G=t();if(z(G))return j(G);R=setTimeout(C,g(G))}function j(G){return R=void 0,k&&h?Z(G):(h=p=void 0,m)}function X(){R!==void 0&&clearTimeout(R),E=0,h=N=p=R=void 0}function q(){return R===void 0?m:j(t())}function $(){var G=t(),ee=z(G);if(h=arguments,p=this,N=G,ee){if(R===void 0)return Q(N);if(y)return clearTimeout(R),R=setTimeout(C,d),Z(N)}return R===void 0&&(R=setTimeout(C,d)),m}return $.cancel=X,$.flush=q,$}return iKe=l,iKe}var wrl=zrl();const oK=Wmt(wrl),Drl={class:"main-content people-comment"},Orl={class:"main-content__header"},xrl={class:"main-content__body--section"},Yrl={class:"main-content__footer"},Brl={class:"grid-footer"},Jrl=Ft({__name:"PeopleComment",setup(e){const t=Dd(),n=tr({commentCount:0,currentPage:1,perPage:10,pageMeta:{},needRefresh:!1,searchKeywords:""}),r=oK(async Z=>{n.searchKeywords=Z},500),a=Re(!1),o=Re(null),l=()=>{o.value&&(n.commentBodyHeight=o.value.clientHeight,n.commentBodyWidth=o.value.clientWidth*.85)},s=async(Z,Q)=>{let g;try{let z={include:che};const C={page:n.currentPage,perPage:n.perPage},j={id:Z,...C,include:z.include,searchText:Q.comment_raw_like||n.searchKeywords};(Q.after_id||Q.before_id)&&delete j.page,g=await $o.getUnresolveAssignedComment(j,{after_id:Q.before_id})}catch(z){console.error("fetchComment",z)}return g},d=()=>{gt(()=>{y.value.people_comment=!0})},u=async Z=>{Z.after_id?n.currentPage++:n.currentPage=1;const Q=await s(t.selectedDataId,{...Z,comment_raw_like:n.searchKeywords});return n.commentCount=Q.meta.total,n.pageMeta=Q.meta,!(Z!=null&&Z.before_id)&&!(Z!=null&&Z.after_id)&&(p.value=Q.meta["X-Tsr-signature"]),n.isLoading=!1,Q},h=async()=>{let Z={include:che};const Q={id:t.selectedDataId,include:Z.include},g=await $o.getUnresolveAssignedComment(Q,kH);return{signature:g==null?void 0:g.meta["X-Tsr-signature"]}},p=Re("");XH("people_comment",h,p);const U=Ve(()=>a.value===!0?"#02C39A":""),m=Ve(()=>a.value===!0?"Comment resolved":""),R=oK(async(Z=!1)=>{Z&&(await E(),o.value&&(o.value.scrollTop=0),n.isFetching=!1)},500);id(()=>{window.removeEventListener("resize",l)});const N=Re(null);function E(){var Z;(Z=N.value)==null||Z.resetList()}const v=CR(),{refreshState:y}=eo(v);async function k(){await R(!0),gt(()=>{y.value={...y.value,people_comment:!1}})}return Tt(()=>n.searchKeywords,Z=>{Z.length>0&&(n.currentPage=1),R(!0)},{immediate:!0}),Tt(()=>t.selectedDataId,Z=>{Z&&(gt(E),n.isFetching=!1)},{deep:!0}),(Z,Q)=>{var g;return de(),We("div",Drl,[Oe("div",Orl,[Le(UAe,{class:"w-full",title:"Assigned comments","count-btn":{count:n.commentCount||0,icon:"Comments",countTooltip:"Comments"},"show-refresh-btn":!0,"show-refresh-label":(g=fe(y))==null?void 0:g.people_comment,loading:n.isLoading,onRefresh:k},{search:_e(()=>[Le(fe(NI),{modelValue:n.searchKeywords,"onUpdate:modelValue":[Q[0]||(Q[0]=z=>n.searchKeywords=z),fe(r)],"auto-search":!0,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["count-btn","show-refresh-label","loading"])]),Oe("div",{ref_key:"commentBodyRef",ref:o,class:Xe(["main-content__body",{"no-overflow":n.isLoading}])},[Oe("div",xrl,[Le(g1t,{ref_key:"commentListRef",ref:N,"load-more":!0,"get-data":u,onListDataChange:d},{empty:_e(()=>[n.searchKeywords.length==0?(de(),mt(VW,{key:0,"visual-name":"NoAssignedComment",class:"no-data",label:"No information available.",height:250})):(de(),mt(VW,{key:1,"visual-name":"NoData2",class:"no-data",label:"No results. Try another search.",height:250}))]),_:1},512),Q[1]||(Q[1]=It()),a.value?(de(),mt(fe(oYe),{key:0,content:m.value,"bg-color":U.value},null,8,["content","bg-color"])):at("",!0)])],2),Oe("div",Yrl,[Oe("div",Brl,[Le(fe(cl),{name:"InfoCircle"}),Q[2]||(Q[2]=It()),Le(fe(tp),{label:`The list above only shows comments from ${fe(MA)({code:"scene"})} that you have access to.`},null,8,["label"])])])])}}}),jrl=Sl(Jrl,[["__scopeId","data-v-5c2ce618"]]),Grl=Ft({__name:"SectionLayout",props:{layout:{}},setup(e){const t=uc(),n=a=>t[a]!==void 0,r=e;return(a,o)=>{var l;return de(),We("div",{class:Xe(["layout-section",{"no-footer":!n("footer")}]),style:rn({"--layout":r.layout?`${r.layout.header}px ${r.layout.content}px ${r.layout.footer}px`:void 0})},[St(Oe("div",{class:"header",style:rn({height:(l=a.layout)!=null&&l.footer?a.layout.header+"px":void 0})},[Rt(a.$slots,"header",{},()=>[o[0]||(o[0]=It(" header ",-1))],!0)],4),[[Eo,n("header")]]),Rt(a.$slots,"content",{},()=>{var s,d;return[St(Oe("div",{class:"body",style:rn({height:(s=a.layout)!=null&&s.footer?a.layout.body+"px":void 0})},[Rt(a.$slots,"body",{},()=>[o[1]||(o[1]=It("body",-1))],!0)],4),[[Eo,n("body")]]),St(Oe("div",{class:"footer",style:rn({height:(d=a.layout)!=null&&d.footer?a.layout.footer+"px":void 0})},[Rt(a.$slots,"footer",{},()=>[o[2]||(o[2]=It(" footer ",-1))],!0)],4),[[Eo,n("footer")]])]},!0)],6)}}}),h_t=Sl(Grl,[["__scopeId","data-v-88790ec4"]]),Irl={class:"treemap-preference"},Xrl={class:"treemap-preference__main"},Hrl=Ft({__name:"TreeMapPreferencePopUp",emits:["clickShowPercentange","clickshowArchieve"],setup(e,{emit:t}){const n=tr({isShowPercentange:!1,isShowArchive:!1}),r=Ve(()=>[{header:"Treemap preferences",content:"",isLocal:!0}]),a=t;function o(s){n.isShowPercentange=s,a("clickShowPercentange",n.isShowPercentange)}function l(s){n.isShowArchive=s,a("clickshowArchieve",n.isShowArchive)}return(s,d)=>(de(),mt(fe(sYe),{sections:r.value},{"content-section":_e(()=>[Oe("div",Irl,[Oe("div",Xrl,[Le(fe(rrt),{value:n.isShowPercentange,"prefix-in-active-label":"Display values as percentage","prefix-active-label":"Display values as percentage","suffix-in-active-label":"","suffix-active-label":"","onUpdate:value":o},null,8,["value"]),d[0]||(d[0]=It()),Le(fe(rrt),{value:n.isShowArchive,"prefix-in-active-label":"Show archived","prefix-active-label":"Show archived","suffix-in-active-label":"","suffix-active-label":"","onUpdate:value":l},null,8,["value"])])])]),_:1},8,["sections"]))}}),Crl=Sl(Hrl,[["__scopeId","data-v-540e8fcc"]]),Lrl=Ft({__name:"PeopleSceneList",emits:["loaded"],setup(e,{expose:t,emit:n}){const r=Dd(),{sceneDetailFetch:a}=eo(r),o=HYe(),{privateSceneCount:l}=eo(o),s=Ve(()=>a.value.searchScene),d=Ve(()=>({page:1,perPage:10,id:r.selectedDataId,selectedId:r.sceneDetailFetch.selectedSceneId,templateFlowType:r.sceneDetailFetch.status_type_in,includeArchived:r.sceneDetailFetch.include_archived,fetchType:r.sceneDetailFetch.fetchType,sortByType:r.sceneDetailFetch.sceneSortType,sortOrder:r.sceneDetailFetch.sceneOrder,searchText:r.sceneDetailFetch.searchScene,previousSelectedSceneId:r.sceneDetailFetch.previousSelectedSceneId})),{selectedDataId:u}=eo(r),h=Ve(()=>!!u.value),p=Re(),{height:U}=j5(p),m=Ve(()=>U.value),R=n,N=Re();t({resetList:async()=>{var y;await((y=N.value)==null?void 0:y.resetList())},hideCalendar:()=>{var y;(y=N.value)==null||y.hideCalendars()}});const E=Re("");return XH("assigned_scene",async()=>({signature:(await $o.getCommonItems({...d.value},kH)).meta["X-Tsr-signature"]}),E),(y,k)=>(de(),We("div",{ref_key:"peopleSceneListRef",ref:p,class:"people-scene-list-wrapper"},[Le(cqn,{ref_key:"sceneListRef",ref:N,ready:h.value,"get-data-function":fe($o).getCommonItems,class:"people-scene-tile-list","filter-parameter":d.value,height:m.value,onLoaded:k[0]||(k[0]=Z=>R("loaded",!0))},{empty:_e(()=>[fe(l)>0?(de(),mt(VW,{key:0,"visual-name":"PrivateScene",label:`Looks like all ${fe(MA)({code:"scene"})} are private.`,height:200},null,8,["label"])):s.value.length==0?(de(),mt(VW,{key:1,"visual-name":"NoData2",label:"No data available.",height:200})):(de(),mt(VW,{key:2,"visual-name":"NoData2",label:"No results. Try another search.",height:200}))]),_:1},8,["ready","get-data-function","filter-parameter","height"])],512))}}),Krl=Sl(Lrl,[["__scopeId","data-v-9fc07f67"]]),Prl={class:"scene-order"},qrl={class:"scene-order__main"},_rl={class:"scene-order__main--type"},$rl=Ft({__name:"SceneOrderPopUp",props:{isEnableSort:{type:Boolean,default:!0},isReset:{type:Boolean,default:!1}},emits:["onSortType","resetCompleted"],setup(e,{emit:t}){const n=e,r=Dd(),a=tr({selectedType:""}),o=Re(!1),l=Ve(()=>n.isReset),s=Ve(()=>[{header:`${MA({code:"scene"})} order`,content:"",isLocal:!0}]),d=Ve(()=>[{id:1,text:"Default",type:"id"},{id:2,text:"Due Date",type:"due_date"},{id:3,text:"Start Date",type:"start_date"},{id:4,text:"Status",type:"template_flow_status.position"}]),u=Ve(()=>o.value?"Sort ascending":"Sort descending"),h=t;function p(R){a.selectedType=R,h("onSortType",R)}function U(){o.value=!o.value,n.isEnableSort&&r.setSceneDetailFetch({sceneOrder:o.value?"desc":"asc"})}const m=()=>{o.value=!1,a.selectedType="id"};return sn(()=>{a.selectedType="id"}),Tt(l,R=>{R===!0&&(m(),h("resetCompleted",!0))},{immediate:!0}),(R,N)=>(de(),mt(fe(sYe),{sections:s.value},{"content-section":_e(()=>[Oe("div",Prl,[Oe("div",qrl,[Oe("div",_rl,[Le(fe(lRe),{modelValue:a.selectedType,"onUpdate:modelValue":N[0]||(N[0]=E=>a.selectedType=E),"is-dark":!0,"value-key":"type","label-key":"text",options:d.value,"select-limit":1,"allow-search":!1,"disable-un-select-single-mode":!0,onUpdateValue:p},null,8,["modelValue","options"])]),Oe("div",{class:"scene-order__main--sort",onClick:Ct(U,["prevent"])},[Le(fe(ld),{content:u.value,delay:[300,0],"hide-on-click":!0},{default:_e(()=>[St(Le(fe(Tr),{class:"sort-down",type:"secondary","suffix-icon":"SortDown",label:""},null,512),[[Eo,o.value]]),N[1]||(N[1]=It()),St(Le(fe(Tr),{class:"sort-up",type:"secondary","suffix-icon":"SortUp",label:""},null,512),[[Eo,!o.value]])]),_:1,__:[1]},8,["content"])])])])]),_:1},8,["sections"]))}}),eal=Sl($rl,[["__scopeId","data-v-4a57d9ae"]]),tal={class:"pop-up-list__section__header--text"},nal={class:"pop-up-list__item--value"},ral=Ft({__name:"SharedPopUpList",props:{othersItem:{default:()=>[]},isEnableLoadMore:{type:Boolean,default:!1},perPage:{default:5}},emits:["clicked","load-more"],setup(e,{emit:t}){const n=e,r=Ve(()=>[{header:"Others",content:"",isLocal:!1}]),a=t,o=()=>{a("clicked",!0)};function l(){a("load-more")}return(s,d)=>(de(),We("div",{class:"pop-up-list",onClick:o},[Le(fe(sYe),{sections:r.value,onClick:d[0]||(d[0]=Ct(()=>{},["stop"]))},{"header-section":_e(({data:u})=>[Oe("div",tal,Et(u.header),1),Le(fe(Tr),{class:"pop-up-list__section__header--btn",label:"","prefix-icon":"Xmark",type:"tertiary",onClick:Ct(o,["prevent"])})]),"content-section":_e(({})=>[Le(fe(Oge),{"is-enable":s.isEnableLoadMore,"loader-class":"mini",onLoadMore:l},{default:_e(()=>[(de(!0),We(Gt,null,dn(n.othersItem,(u,h)=>(de(),We("div",{key:h,class:"pop-up-list__item"},[Le(fe(tp),{class:"pop-up-list__item--name",label:u.name},null,8,["label"]),Oe("div",nal,Et(u.items_count)+" | "+Et(u.percent_by_items_count.toFixed(2))+"% ",1)]))),128))]),_:1},8,["is-enable"])]),_:1,__:[1]},8,["sections"])]))}}),aal=Sl(ral,[["__scopeId","data-v-7e453f9e"]]);function Kit(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 oal(e){if(Array.isArray(e))return Kit(e)}function A_t(e,t,n,r,a,o,l){try{var s=e[o](l),d=s.value}catch(u){return void n(u)}s.done?t(d):Promise.resolve(d).then(r,a)}function tI(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function l(d){A_t(o,r,a,l,s,"next",d)}function s(d){A_t(o,r,a,l,s,"throw",d)}l(void 0)})}}function lal(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ial(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,Vqn(r.key),r)}}function sal(e,t,n){return t&&ial(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pit(e,t,n){return(t=Vqn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dal(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cal(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1193
+ `)):Array.isArray(n)?e.push.apply(e,n):Vs(e)||t.unshift(""+n);return t},textSize:function(e,t,n){var r=[].concat(t),a=r.length,o=e.font,l=0,s;for(e.font=n.string,s=0;s<a;++s)l=Math.max(e.measureText(r[s]).width,l);return e.font=o,{height:a*n.lineHeight,width:l}},bound:function(e,t,n){return Math.max(e,Math.min(t,n))},arrayDiff:function(e,t){var n=e.slice(),r=[],a,o,l,s;for(a=0,l=t.length;a<l;++a)s=t[a],o=n.indexOf(s),o===-1?r.push([s,1]):n.splice(o,1);for(a=0,l=n.length;a<l;++a)r.push([n[a],-1]);return r},rasterize:function(e){return Math.round(e*H7t)/H7t}};function X4e(e,t){var n=t.x,r=t.y;if(n===null)return{x:0,y:-1};if(r===null)return{x:1,y:0};var a=e.x-n,o=e.y-r,l=Math.sqrt(a*a+o*o);return{x:l?a/l:0,y:l?o/l:-1}}function Jel(e,t,n,r,a){switch(a){case"center":n=r=0;break;case"bottom":n=0,r=1;break;case"right":n=1,r=0;break;case"left":n=-1,r=0;break;case"top":n=0,r=-1;break;case"start":n=-n,r=-r;break;case"end":break;default:a*=Math.PI/180,n=Math.cos(a),r=Math.sin(a);break}return{x:e,y:t,vx:n,vy:r}}var jel=0,$Pn=1,eqn=2,tqn=4,nqn=8;function Xve(e,t,n){var r=jel;return e<n.left?r|=$Pn:e>n.right&&(r|=eqn),t<n.top?r|=nqn:t>n.bottom&&(r|=tqn),r}function Gel(e,t){for(var n=e.x0,r=e.y0,a=e.x1,o=e.y1,l=Xve(n,r,t),s=Xve(a,o,t),d,u,h;!(!(l|s)||l&s);)d=l||s,d&nqn?(u=n+(a-n)*(t.top-r)/(o-r),h=t.top):d&tqn?(u=n+(a-n)*(t.bottom-r)/(o-r),h=t.bottom):d&eqn?(h=r+(o-r)*(t.right-n)/(a-n),u=t.right):d&$Pn&&(h=r+(o-r)*(t.left-n)/(a-n),u=t.left),d===l?(n=u,r=h,l=Xve(n,r,t)):(a=u,o=h,s=Xve(a,o,t));return{x0:n,x1:a,y0:r,y1:o}}function Hve(e,t){var n=t.anchor,r=e,a,o;return t.clamp&&(r=Gel(r,t.area)),n==="start"?(a=r.x0,o=r.y0):n==="end"?(a=r.x1,o=r.y1):(a=(r.x0+r.x1)/2,o=(r.y0+r.y1)/2),Jel(a,o,e.vx,e.vy,t.align)}var Cve={arc:function(e,t){var n=(e.startAngle+e.endAngle)/2,r=Math.cos(n),a=Math.sin(n),o=e.innerRadius,l=e.outerRadius;return Hve({x0:e.x+r*o,y0:e.y+a*o,x1:e.x+r*l,y1:e.y+a*l,vx:r,vy:a},t)},point:function(e,t){var n=X4e(e,t.origin),r=n.x*e.options.radius,a=n.y*e.options.radius;return Hve({x0:e.x-r,y0:e.y-a,x1:e.x+r,y1:e.y+a,vx:n.x,vy:n.y},t)},bar:function(e,t){var n=X4e(e,t.origin),r=e.x,a=e.y,o=0,l=0;return e.horizontal?(r=Math.min(e.x,e.base),o=Math.abs(e.base-e.x)):(a=Math.min(e.y,e.base),l=Math.abs(e.base-e.y)),Hve({x0:r,y0:a+l,x1:r+o,y1:a,vx:n.x,vy:n.y},t)},fallback:function(e,t){var n=X4e(e,t.origin);return Hve({x0:e.x,y0:e.y,x1:e.x+(e.width||0),y1:e.y+(e.height||0),vx:n.x,vy:n.y},t)}},W3=VAe.rasterize;function Iel(e){var t=e.borderWidth||0,n=e.padding,r=e.size.height,a=e.size.width,o=-a/2,l=-r/2;return{frame:{x:o-n.left-t,y:l-n.top-t,w:a+n.width+t*2,h:r+n.height+t*2},text:{x:o,y:l,w:a,h:r}}}function Xel(e,t){var n=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!n)return null;if(n.xCenter!==void 0&&n.yCenter!==void 0)return{x:n.xCenter,y:n.yCenter};var r=n.getBasePixel();return e.horizontal?{x:r,y:null}:{x:null,y:r}}function Hel(e){return e instanceof s2?Cve.arc:e instanceof AAe?Cve.point:e instanceof pAe?Cve.bar:Cve.fallback}function Cel(e,t,n,r,a,o){var l=Math.PI/2;if(o){var s=Math.min(o,a/2,r/2),d=t+s,u=n+s,h=t+r-s,p=n+a-s;e.moveTo(t,u),d<h&&u<p?(e.arc(d,u,s,-Math.PI,-l),e.arc(h,u,s,-l,0),e.arc(h,p,s,0,l),e.arc(d,p,s,l,Math.PI)):d<h?(e.moveTo(d,n),e.arc(h,u,s,-l,l),e.arc(d,u,s,l,Math.PI+l)):u<p?(e.arc(d,u,s,-Math.PI,0),e.arc(d,p,s,0,Math.PI)):e.arc(d,u,s,-Math.PI,Math.PI),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,a)}function Lel(e,t,n){var r=n.backgroundColor,a=n.borderColor,o=n.borderWidth;!r&&(!a||!o)||(e.beginPath(),Cel(e,W3(t.x)+o/2,W3(t.y)+o/2,W3(t.w)-o,W3(t.h)-o,n.borderRadius),e.closePath(),r&&(e.fillStyle=r,e.fill()),a&&o&&(e.strokeStyle=a,e.lineWidth=o,e.lineJoin="miter",e.stroke()))}function Kel(e,t,n){var r=n.lineHeight,a=e.w,o=e.x,l=e.y+r/2;return t==="center"?o+=a/2:(t==="end"||t==="right")&&(o+=a),{h:r,w:a,x:o,y:l}}function Pel(e,t,n){var r=e.shadowBlur,a=n.stroked,o=W3(n.x),l=W3(n.y),s=W3(n.w);a&&e.strokeText(t,o,l,s),n.filled&&(r&&a&&(e.shadowBlur=0),e.fillText(t,o,l,s),r&&a&&(e.shadowBlur=r))}function qel(e,t,n,r){var a=r.textAlign,o=r.color,l=!!o,s=r.font,d=t.length,u=r.textStrokeColor,h=r.textStrokeWidth,p=u&&h,U;if(!(!d||!l&&!p))for(n=Kel(n,a,s),e.font=s.string,e.textAlign=a,e.textBaseline="middle",e.shadowBlur=r.textShadowBlur,e.shadowColor=r.textShadowColor,l&&(e.fillStyle=o),p&&(e.lineJoin="round",e.lineWidth=h,e.strokeStyle=u),U=0,d=t.length;U<d;++U)Pel(e,t[U],{stroked:p,filled:l,w:n.w,x:n.x,y:n.y+n.h*U})}var rqn=function(e,t,n,r){var a=this;a._config=e,a._index=r,a._model=null,a._rects=null,a._ctx=t,a._el=n};Hk(rqn.prototype,{_modelize:function(e,t,n,r){var a=this,o=a._index,l=qp(pu([n.font,{}],r,o)),s=pu([n.color,Cu.color],r,o);return{align:pu([n.align,"center"],r,o),anchor:pu([n.anchor,"center"],r,o),area:r.chart.chartArea,backgroundColor:pu([n.backgroundColor,null],r,o),borderColor:pu([n.borderColor,null],r,o),borderRadius:pu([n.borderRadius,0],r,o),borderWidth:pu([n.borderWidth,0],r,o),clamp:pu([n.clamp,!1],r,o),clip:pu([n.clip,!1],r,o),color:s,display:e,font:l,lines:t,offset:pu([n.offset,4],r,o),opacity:pu([n.opacity,1],r,o),origin:Xel(a._el,r),padding:RU(pu([n.padding,4],r,o)),positioner:Hel(a._el),rotation:pu([n.rotation,0],r,o)*(Math.PI/180),size:VAe.textSize(a._ctx,t,l),textAlign:pu([n.textAlign,"start"],r,o),textShadowBlur:pu([n.textShadowBlur,0],r,o),textShadowColor:pu([n.textShadowColor,s],r,o),textStrokeColor:pu([n.textStrokeColor,s],r,o),textStrokeWidth:pu([n.textStrokeWidth,0],r,o)}},update:function(e){var t=this,n=null,r=null,a=t._index,o=t._config,l,s,d,u=pu([o.display,!0],e,a);u&&(l=e.dataset.data[a],s=Ji(Fc(o.formatter,[l,e]),l),d=Vs(s)?[]:VAe.toTextLines(s),d.length&&(n=t._modelize(u,d,o,e),r=Iel(n))),t._model=n,t._rects=r},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var n=this,r=e.ctx,a=n._model,o=n._rects,l;this.visible()&&(r.save(),a.clip&&(l=a.area,r.beginPath(),r.rect(l.left,l.top,l.right-l.left,l.bottom-l.top),r.clip()),r.globalAlpha=VAe.bound(0,a.opacity,1),r.translate(W3(t.x),W3(t.y)),r.rotate(a.rotation),Lel(r,o.frame,a),qel(r,a.lines,o.text,a),r.restore())}});var _el=Number.MIN_SAFE_INTEGER||-9007199254740991,$el=Number.MAX_SAFE_INTEGER||9007199254740991;function hie(e,t,n){var r=Math.cos(n),a=Math.sin(n),o=t.x,l=t.y;return{x:o+r*(e.x-o)-a*(e.y-l),y:l+a*(e.x-o)+r*(e.y-l)}}function C7t(e,t){var n=$el,r=_el,a=t.origin,o,l,s,d,u;for(o=0;o<e.length;++o)l=e[o],s=l.x-a.x,d=l.y-a.y,u=t.vx*s+t.vy*d,n=Math.min(n,u),r=Math.max(r,u);return{min:n,max:r}}function Lve(e,t){var n=t.x-e.x,r=t.y-e.y,a=Math.sqrt(n*n+r*r);return{vx:(t.x-e.x)/a,vy:(t.y-e.y)/a,origin:e,ln:a}}var aqn=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};Hk(aqn.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,n){this._rotation=n,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this,n=1,r=t._rect;return e=hie(e,t.center(),-t._rotation),!(e.x<r.x-n||e.y<r.y-n||e.x>r.x+r.w+n*2||e.y>r.y+r.h+n*2)},intersects:function(e){var t=this._points(),n=e._points(),r=[Lve(t[0],t[1]),Lve(t[0],t[3])],a,o,l;for(this._rotation!==e._rotation&&r.push(Lve(n[0],n[1]),Lve(n[0],n[3])),a=0;a<r.length;++a)if(o=C7t(t,r[a]),l=C7t(n,r[a]),o.max<l.min||l.max<o.min)return!1;return!0},_points:function(){var e=this,t=e._rect,n=e._rotation,r=e.center();return[hie({x:t.x,y:t.y},r,n),hie({x:t.x+t.w,y:t.y},r,n),hie({x:t.x+t.w,y:t.y+t.h},r,n),hie({x:t.x,y:t.y+t.h},r,n)]}});function oqn(e,t,n){var r=t.positioner(e,t),a=r.vx,o=r.vy;if(!a&&!o)return{x:r.x,y:r.y};var l=n.w,s=n.h,d=t.rotation,u=Math.abs(l/2*Math.cos(d))+Math.abs(s/2*Math.sin(d)),h=Math.abs(l/2*Math.sin(d))+Math.abs(s/2*Math.cos(d)),p=1/Math.max(Math.abs(a),Math.abs(o));return u*=a*p,h*=o*p,u+=t.offset*a,h+=t.offset*o,{x:r.x+u,y:r.y+h}}function etl(e,t){var n,r,a,o;for(n=e.length-1;n>=0;--n)for(a=e[n].$layout,r=n-1;r>=0&&a._visible;--r)o=e[r].$layout,o._visible&&a._box.intersects(o._box)&&t(a,o);return e}function ttl(e){var t,n,r,a,o,l,s;for(t=0,n=e.length;t<n;++t)r=e[t],a=r.$layout,a._visible&&(s=new Proxy(r._el,{get:(d,u)=>d.getProps([u],!0)[u]}),o=r.geometry(),l=oqn(s,r.model(),o),a._box.update(l,o,r.rotation()));return etl(e,function(d,u){var h=d._hidable,p=u._hidable;h&&p||p?u._visible=!1:h&&(d._visible=!1)})}var mAe={prepare:function(e){var t=[],n,r,a,o,l;for(n=0,a=e.length;n<a;++n)for(r=0,o=e[n].length;r<o;++r)l=e[n][r],t.push(l),l.$layout={_box:new aqn,_hidable:!1,_visible:!0,_set:n,_idx:l._index};return t.sort(function(s,d){var u=s.$layout,h=d.$layout;return u._idx===h._idx?h._set-u._set:h._idx-u._idx}),this.update(t),t},update:function(e){var t=!1,n,r,a,o,l;for(n=0,r=e.length;n<r;++n)a=e[n],o=a.model(),l=a.$layout,l._hidable=o&&o.display==="auto",l._visible=a.visible(),t|=l._hidable;t&&ttl(e)},lookup:function(e,t){var n,r;for(n=e.length-1;n>=0;--n)if(r=e[n].$layout,r&&r._visible&&r._box.contains(t))return e[n];return null},draw:function(e,t){var n,r,a,o,l,s;for(n=0,r=t.length;n<r;++n)a=t[n],o=a.$layout,o._visible&&(l=a.geometry(),s=oqn(a._el,a.model(),l),o._box.update(s,l,a.rotation()),a.draw(e,s))}},ntl=function(e){if(Vs(e))return null;var t=e,n,r,a;if(bs(e))if(!Vs(e.label))t=e.label;else if(!Vs(e.r))t=e.r;else for(t="",n=Object.keys(e),a=0,r=n.length;a<r;++a)t+=(a!==0?", ":"")+n[a]+": "+e[n[a]];return""+t},rtl={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:ntl,labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},TN="$datalabels",lqn="$default";function atl(e,t){var n=e.datalabels,r={},a=[],o,l;return n===!1?null:(n===!0&&(n={}),t=Hk({},[t,n]),o=t.labels||{},l=Object.keys(o),delete t.labels,l.length?l.forEach(function(s){o[s]&&a.push(Hk({},[t,o[s],{_key:s}]))}):a.push(t),r=a.reduce(function(s,d){return Vc(d.listeners||{},function(u,h){s[h]=s[h]||{},s[h][d._key||lqn]=u}),delete d.listeners,s},{}),{labels:a,listeners:r})}function Lit(e,t,n,r){if(t){var a=n.$context,o=n.$groups,l;t[o._set]&&(l=t[o._set][o._key],l&&Fc(l,[a,r])===!0&&(e[TN]._dirty=!0,n.update(a)))}}function otl(e,t,n,r,a){var o,l;!n&&!r||(n?r?n!==r&&(l=o=!0):l=!0:o=!0,l&&Lit(e,t.leave,n,a),o&&Lit(e,t.enter,r,a))}function ltl(e,t){var n=e[TN],r=n._listeners,a,o;if(!(!r.enter&&!r.leave)){if(t.type==="mousemove")o=mAe.lookup(n._labels,t);else if(t.type!=="mouseout")return;a=n._hovered,n._hovered=o,otl(e,r,a,o,t)}}function itl(e,t){var n=e[TN],r=n._listeners.click,a=r&&mAe.lookup(n._labels,t);a&&Lit(e,r,a,t)}var ewe={id:"datalabels",defaults:rtl,beforeInit:function(e){e[TN]={_actives:[]}},beforeUpdate:function(e){var t=e[TN];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,n){var r=t.index,a=e[TN],o=a._datasets[r]=[],l=e.isDatasetVisible(r),s=e.data.datasets[r],d=atl(s,n),u=t.meta.data||[],h=e.ctx,p,U,m,R,N,E,v,y;for(h.save(),p=0,m=u.length;p<m;++p)if(v=u[p],v[TN]=[],l&&v&&e.getDataVisibility(p)&&!v.skip)for(U=0,R=d.labels.length;U<R;++U)N=d.labels[U],E=N._key,y=new rqn(N,h,v,p),y.$groups={_set:r,_key:E||lqn},y.$context={active:!1,chart:e,dataIndex:p,dataset:s,datasetIndex:r},y.update(y.$context),v[TN].push(y),o.push(y);h.restore(),Hk(a._listeners,d.listeners,{merger:function(k,Z,Q){Z[k]=Z[k]||{},Z[k][t.index]=Q[k],a._listened=!0}})},afterUpdate:function(e){e[TN]._labels=mAe.prepare(e[TN]._datasets)},afterDatasetsDraw:function(e){mAe.draw(e,e[TN]._labels)},beforeEvent:function(e,t){if(e[TN]._listened){var n=t.event;switch(n.type){case"mousemove":case"mouseout":ltl(e,n);break;case"click":itl(e,n);break}}},afterEvent:function(e){var t=e[TN],n=t._actives,r=t._actives=e.getActiveElements(),a=VAe.arrayDiff(n,r),o,l,s,d,u,h,p;for(o=0,l=a.length;o<l;++o)if(u=a[o],u[1])for(p=u[0].element[TN]||[],s=0,d=p.length;s<d;++s)h=p[s],h.$context.active=u[1]===1,h.update(h.$context);(t._dirty||a.length)&&(mAe.update(t._labels),e.render()),delete t._dirty}};const CR=AT("dashboardStore",()=>{const e=Re(null),t=o=>{e.value=o},n=Re(!0),r=tr({comment_recent:!1,comment_resolved:!1,rendition:!1,scene:!1,people_comment:!1,assigned_scene:!1,chart:!1});return{dashboardData:e,getDashboardData:async o=>{const l=await $o.getPeopleCard(o);t(l)},refreshState:r,isBrowserActive:n}});var X1=(e=>(e.WHITE="#F3F5F8",e.RED="#FFD4C1",e.YELLOW="#FDE8B0",e.GREEN="#CCF3EB",e.BLUE="#A3D4F5",e.TEXT_GENERAL="#232323",e.ICON_GENERAL="#A6A6A6",e))(X1||{});const iqn=([e,t])=>{const n=e+t,r=e/n*360;return r==180?0:r<90||r>90&&r<180?90-r/2:r>180?r-180/2*-1:r/2},sqn=({rotation:e,handleRedirect:t,interactive:n})=>({type:"pie",options:{rotation:e,responsive:!0,maintainAspectRatio:!1,onHover:n?(r,a)=>{const o=r.chart;a.length>0?o.canvas.style.cursor="pointer":o.canvas.style.cursor="default"}:void 0,onClick:n?function(r,a){a.length>0&&t()}:void 0,plugins:{tooltip:{enabled:!1},datalabels:{align:"end",anchor:"end",formatter:function(r){return[r.label,r.value]},color:function(r){return r.dataset.backgroundColor},font:function(){return{size:14,weight:"normal"}}}},layout:{padding:{top:6,bottom:6}}}}),stl=e=>Number.isInteger(e)?e.toString():e.toFixed(2),dtl=Ft({__name:"CardAssigned",setup(e){QR.register(ewe,s2,SX,WUe,yUe,MUe),QR.register(s2,SX,WUe);const t=Ve(()=>{const E=MA({code:"scene"});return{guidingTextBottomLeft:s.value?void 0:{text:E,fontStyle:{color:X1.TEXT_GENERAL,fontSize:"14px",fontWeight:"normal"},tooltip:E},guidingTextBottomRight:void 0,backgroundColor:X1.WHITE,key:"assigned",title:`Assigned ${MA({code:"scene"})}`,icon:{name:"Film",iconColor:"#A6A6A6",tooltip:`Assigned ${MA({code:"scene"})} status`},mainLabel:"AssignedMainlabel"}}),n=CR(),{dashboardData:r}=eo(n),a=Ve(()=>{var E;return Number(((E=r.value)==null?void 0:E.assigned_scenes.active)||0)}),o=Ve(()=>{var E;return Number(((E=r.value)==null?void 0:E.assigned_scenes.planned)||0)}),l=Ve(()=>!0),s=Ve(()=>a.value>0||o.value>0),d=Ve(()=>{const E=a.value,v=o.value,y={active:"Active",planned:"Planned"},k={active:"#3C9BFA",planned:"#A6A6A6"},Z=Object.entries({active:E,planned:v}).filter(Q=>Q[1]!==0).sort((Q,g)=>Q[1]-g[1]).map(([Q,g])=>({value:g||0,key:Q,label:y[Q]}));return{datasets:[{backgroundColor:Z.map(Q=>k[Q.key]),data:Z}]}}),u=Ve(()=>{const E=a.value,v=o.value;return E<v?[E,v]:[v,E]}),h=Dd(),{currentTab:p}=eo(h),U=()=>{p.value="people-scenes"},m=Ve(()=>{const E=iqn(u.value);return{type:"pie",data:d.value,plugins:[ewe],...sqn({rotation:E,handleRedirect:U,interactive:!1})}}),R=Re(null),N=()=>{const E=document.getElementById("chart_assigned");E&&(R.value=new QR(E,m.value))};return Tt([s,l],E=>{E[0]&&E[1]&&gt(()=>N())},{immediate:!0}),(E,v)=>l.value?(de(),mt(fe(s$),Vn({key:0,class:"card-simple"},t.value,{disabled:!1,class:{empty:!s.value}}),{body:_e(()=>[s.value?(de(),We("div",{key:0,class:"chart-container card-title",onClick:U},v[0]||(v[0]=[Oe("canvas",{id:"chart_assigned"},null,-1)]))):(de(),We("span",{key:1,class:"card-title",onClick:U},"0"))]),_:1},16,["class"])):at("",!0)}}),ctl=Sl(dtl,[["__scopeId","data-v-bf54422d"]]),utl=Ft({__name:"CardCompleted",setup(e){const t=CR(),{dashboardData:n}=eo(t),r=Ve(()=>{var d;return n.value&&((d=n.value)==null?void 0:d.completed_scenes_last_14_days)||0}),a=Ve(()=>{const d=r.value>0?X1.GREEN:X1.WHITE,u=r.value>0?"#02C39A":"#A6A6A6";return{guidingTextBottomLeft:{text:`${MA({code:"scene"})}`,fontStyle:{color:"#000000",fontSize:"14px",fontWeight:"normal"},tooltip:"Assigned"},backgroundColor:d,key:"Completed",title:"Total completed (14 days)",icon:{name:"Film",iconColor:u,tooltip:`Completed ${MA({code:"scene"})} in the last 14 days`}}}),o=Dd(),{currentTab:l}=eo(o),s=()=>{l.value="people-charts"};return(d,u)=>(de(),mt(fe(s$),Vn({class:"card-simple"},a.value,{disabled:!1}),{body:_e(()=>[Oe("div",{class:"card-title",onClick:s},Et(r.value),1)]),_:1},16))}}),htl=Ft({__name:"CardOverdue",setup(e){const t=CR(),{dashboardData:n}=eo(t),r=Ve(()=>{var d;return n.value&&((d=n.value)==null?void 0:d.overdue_scenes)||0}),a=Ve(()=>{const d=r.value>0?X1.YELLOW:X1.WHITE,u=r.value>0?"#F7941D":"#A6A6A6";return{guidingTextBottomLeft:{text:MA({code:"scene"}),fontStyle:{color:X1.TEXT_GENERAL,fontSize:"14px",fontWeight:"normal"},tooltip:"Assigned"},backgroundColor:d,key:"assigned",title:"Overdue",icon:{name:"Film",iconColor:u,tooltip:`Assigned ${MA({code:"scene"})} past due`}}}),o=Dd(),{currentTab:l}=eo(o),s=()=>{l.value="people-charts"};return(d,u)=>(de(),mt(fe(s$),Vn({class:"card-simple"},a.value,{disabled:!1}),{body:_e(()=>[Oe("div",{class:"card-title",onClick:s},Et(r.value),1)]),_:1},16))}}),Atl={key:0,class:"chart-container card-title"},ptl={key:1,class:"card-title non-interactive"},Vtl=Ft({__name:"CardTargetPoint",setup(e){QR.register(ewe,s2,SX,WUe,yUe,MUe),QR.register(s2,SX,WUe);const t=Ve(()=>({guidingTextBottomLeft:s.value?void 0:{text:"Points",fontStyle:{color:X1.TEXT_GENERAL,fontSize:"14px",fontWeight:"normal"},tooltip:"Points"},guidingTextBottomRight:void 0,backgroundColor:X1.WHITE,key:"points",title:"Target points",icon:{name:"Award",iconColor:"#A6A6A6",tooltip:"Assigned points towards targets"},mainLabel:"AssignedMainlabel"})),n=Ve(()=>{var m,R;return Number(((R=(m=o.value)==null?void 0:m.point_pool)==null?void 0:R.collected)||0)}),r=Ve(()=>{var m,R;return Number(((R=(m=o.value)==null?void 0:m.point_pool)==null?void 0:R.pending)||0)}),a=CR(),{dashboardData:o}=eo(a),l=Ve(()=>{var m;return((m=o.value)==null?void 0:m.point_pool.can_view)==1}),s=Ve(()=>n.value>0||r.value>0),d=Ve(()=>{const m=n.value,R=r.value,N={collected:"Earned",pending:"Awaiting"},E={collected:"#F7941D",pending:"#A6A6A6"},v=Object.entries({collected:m,pending:R}).filter(y=>y[1]!==0).sort((y,k)=>y[1]-k[1]).map(([y,k])=>({value:stl(k)||0,key:y,label:N[y]}));return{datasets:[{backgroundColor:v.map(y=>E[y.key]),data:v}]}}),u=Ve(()=>{const m=n.value,R=r.value;return m<R?[m,R]:[R,m]}),h=Ve(()=>{const m=iqn(u.value);return{plugins:[ewe],type:"pie",data:d.value,...sqn({interactive:!1,handleRedirect:()=>{},rotation:m})}}),p=Re(null),U=()=>{const m=document.getElementById("chart_target");m&&(p.value=new QR(m,h.value))};return Tt([s,l],m=>{m[0]&&m[1]&&gt(()=>U())},{immediate:!0}),(m,R)=>l.value?(de(),mt(fe(s$),Vn({key:0,class:"card-simple"},t.value,{disabled:!1,class:{empty:!s.value}}),{body:_e(()=>[s.value?(de(),We("div",Atl,R[0]||(R[0]=[Oe("canvas",{id:"chart_target"},null,-1)]))):(de(),We("span",ptl,"0"))]),_:1},16,["class"])):at("",!0)}}),mtl=Sl(Vtl,[["__scopeId","data-v-c8104735"]]),Utl=Ft({__name:"CardUnresolved",setup(e){const t=CR(),{dashboardData:n}=eo(t),r=Ve(()=>{var d;return n.value&&((d=n.value)==null?void 0:d.unresolved_comments)||0}),a=Ve(()=>{const d={text:"@",color:"#FFF",bgColor:r.value==0?"#A6A6A6":"#3C9BFA",show:!0};return{guidingTextBottomLeft:{text:"Comments",fontStyle:{color:X1.TEXT_GENERAL,fontSize:"14px",fontWeight:"normal"},tooltip:"Assigned"},backgroundColor:X1.WHITE,key:"Unresolved",title:"Unresolved",icon:{name:"Comments",iconColor:X1.ICON_GENERAL,tooltip:"Assigned comments to resolve"},alias:d}}),o=Dd(),{currentTab:l}=eo(o),s=()=>{l.value="people-comments"};return(d,u)=>(de(),mt(fe(s$),Vn({class:"card-simple"},a.value,{disabled:!1}),{body:_e(()=>[Oe("div",{class:"card-title",onClick:s},Et(r.value),1)]),_:1},16))}}),ftl={},Rtl={class:"section-renditions-skeleton"};function Ntl(e,t){return de(),We("div",Rtl,t[0]||(t[0]=[lQ('<div class="timestamp skeleton-animation dark" data-v-b8e311eb></div><div class="rendition-item skeleton-animation dark" data-v-b8e311eb><div class="name" data-v-b8e311eb></div><div class="breadcrumb" data-v-b8e311eb></div><div class="information" data-v-b8e311eb></div></div>',2)]))}const Ztl=Sl(ftl,[["render",Ntl],["__scopeId","data-v-b8e311eb"]]),wJe=()=>{const e=CR(),{getDashboardData:t}=e,n=async d=>{try{return await t(d)}catch(u){return console.error("getPeopleCard",u),{error:u}}},r=Dd(),{basicInfo:a}=eo(r);return{getPeopleCard:n,getRecentActivities:(d,u)=>{var p;const h=(p=a.value)==null?void 0:p.id;if(!h)throw new Error("userId is not found in store");return $o.getPeopleDashboardData(h,d,u)},deleteRendition:({scene_id:d,rendition_id:u})=>{if(!a.value.id)throw new Error("userId is not found in store");return $o.deleteRendition(d,u)},getNextRendition:d=>{var h;const u=(h=a.value)==null?void 0:h.id;if(!u)throw new Error("userId is not found in store");return $o.getNextRendition(u,d)}}},XH=(e,t,n)=>{const r=Re(void 0),a=Re(!1),o=async()=>{if(!p.value)return;const U=await t();U&&(r.value=U.signature)},l=Re(null),s=6e4,d=()=>{l.value&&clearInterval(l.value),l.value=setInterval(()=>{o()},Number(s))};sn(async()=>{d()}),id(()=>{clearInterval(l.value)}),xVn(()=>{clearInterval(l.value)});const u=CR(),{refreshState:h,isBrowserActive:p}=eo(u);return Tt(a,U=>{e!==""&&(h.value[e]=U)}),Tt(n,U=>{r.value=U,gt(()=>a.value=!1)},{immediate:!0}),Tt(r,(U,m)=>{if(!(m==null||m==""))switch(!0){case!r.value:a.value=!1;break;case U!==m:a.value=!0;break;case r.value!=n.value:a.value=!0;break;case U==n.value:break}},{immediate:!0}),{subscribeSignature:d,needUpdate:a}},Ttl=e=>{try{const t=new Date(e??""),r=new Date().getTime()-t.getTime(),a=Math.floor(r/(1e3*60*60)),o=Math.floor(r%(1e3*60*60)/(1e3*60));if(a<=3)return a===0?`${o} minute${o!==1?"s":""} ago`:`${a} hour${a!==1?"s":""} ${o} minute${o!==1?"s":""} ago`}catch(t){console.error("isShowShortDate -> error",t)}},L7t=()=>aX.getCookie("account.last_prefered_timezone")||"Asia/Singapore",dqn=e=>{try{const t=new Date(e).toISOString(),n=Os.fromISO(t).setZone(L7t()).toFormat(vPa);return String(n)}catch(t){console.error("formatDateValue",{e:t,dateStr:e,tz:L7t()})}return e},Ftl=e=>{try{if(!e)return"";const t=new Date(e);if(isNaN(t.getTime()))throw new Error("Invalid date:"+e);const n=t.toISOString(),r=Ttl(n),a=dqn(n);return r||String(a)}catch{return String(e)}},Etl={key:0,class:"empty-data"},vtl=["onMouseover","onMouseleave"],btl={class:"timestamp"},Wtl={key:0,class:"rendition-breadcrumb"},ytl={class:"name"},Mtl=Ft({__name:"SectionNewRendition",setup(e,{expose:t}){const{getEnvVariable:n}=Sk(),r=ae=>{var Ne;const P=n("BASE_REVIEW_URL"),pe=Mo(),ue=(Ne=Yc({type:"review_rendition",config:{reviewDomain:P,ws_code:pe,scene_id:ae.item.id,rendition_id:ae.id,take_id:ae.item.entity_id}}))==null?void 0:Ne.url;window.open(ue)},a=fl("switchInstance"),o=(ae,P)=>{var Ne;const pe=n("BASE_URL"),ue=(Ne=Yc({type:"hub_rendition",config:{baseDomain:pe,ws_code:Mo(),scene_id:ae.item.id,rendition_id:ae.id}}))==null?void 0:Ne.url;if(P.metaKey||P.ctrlKey){window.open(ue,"_blank");return}else{if(a){a("scene_hub",{tab:"rendition",id:ae.item.id,renditionId:ae.id},{showLoading:!1});return}window.location.href=ue}window.open(ue)},l=Ve(()=>{var ae;return(ae=v.value[v.value.length-1])==null?void 0:ae.id}),s=tr({canLoadMore:!0,failedRequest:!1}),d=async()=>{var ae,P,pe,ue;try{if(!l.value||!s.canLoadMore||p.value)return!0;p.value=!0;const Ne=await U.getNextRendition(l.value),Me=(P=(ae=Ne==null?void 0:Ne.recent_activities)==null?void 0:ae.new_renditions)==null?void 0:P.data;if(Me)Me.length==0&&(s.canLoadMore=!1),v.value=v.value.concat(((ue=(pe=Ne==null?void 0:Ne.recent_activities)==null?void 0:pe.new_renditions)==null?void 0:ue.data)||[]);else throw new Error("Failed to get more data")}catch(Ne){s.failedRequest=!0,console.error("getMoreData -> error",Ne)}finally{p.value=!1}},u=Re(null),h=Re(null);sn(()=>{y()}),CDn(h,async()=>{await d()},{distance:10,canLoadMore:()=>!p.value});const p=Re(!1),U=wJe(),m=Re({}),R=async()=>{var P,pe,ue,Ne;let ae;try{p.value=!0,ae=await U.getRecentActivities("recent_activities.new_renditions"),E.value=(pe=(P=ae==null?void 0:ae.recent_activities)==null?void 0:P.new_renditions)==null?void 0:pe.meta["X-Tsr-signature"]}catch(Me){console.error("getRecentNewRendition -> error",Me)}finally{p.value=!1}return((Ne=(ue=ae==null?void 0:ae.recent_activities)==null?void 0:ue.new_renditions)==null?void 0:Ne.data)||[]},N=async()=>{var P,pe;const ae=await U.getRecentActivities("recent_activities.new_renditions",kH);return{signature:(pe=(P=ae==null?void 0:ae.recent_activities)==null?void 0:P.new_renditions)==null?void 0:pe.meta["X-Tsr-signature"]}},E=Re(void 0);XH("rendition",N,E);const v=Re([]),y=async()=>{var ae,P;v.value=[],v.value=await R(),Z.value=((P=(ae=u.value)==null?void 0:ae.parentElement)==null?void 0:P.offsetHeight)||200,p.value=!1};t({resetList:y});const k=Re(null),{height:Z}=j5(k),Q=Dd(),{permissionMap:g}=eo(Q),z=(ae,P)=>{const pe=n("BASE_URL"),ue=Yc({type:"hub_rendition",config:{baseDomain:pe,ws_code:Mo(),scene_id:ae,rendition_id:P}}).url;navigator.clipboard.writeText(ue).then(()=>{}).catch(Ne=>{console.error("Failed to copy: ",Ne)})},{deleteRendition:C}=U,{showErrorSnackbar:j}=a0e(),X=()=>{let ae="Update failed";navigator.onLine||(ae="Network error"),j({label:ae})},{refreshState:q}=eo(CR()),$=async ae=>{try{await C({scene_id:ae.item.id,rendition_id:ae.id})&&(q.value.rendition=!0,v.value=v.value.filter(pe=>pe.id!==ae.id))}catch(P){X(),console.error("handleDelete -> error",P)}},G=Ve(()=>Object.fromEntries(v.value.map(ae=>[ae.id,ee(ae)]))),ee=ae=>ae!=null&&ae.item?{items:(ae==null?void 0:ae.entity_path.map(pe=>{var Ne;const ue=pe.is_parent_item?"scene_hub":"project";return{label:pe.name,href:(Ne=Yc({type:ue,config:{baseDomain:n("BASE_URL"),ws_code:Mo(),entity_id:pe.id,scene_id:pe.is_parent_item?pe.id:void 0}}))==null?void 0:Ne.url,disabled:!1,id:pe.id,isCurrent:!1}}))||[],lastItemWidth:125,url:"",width:200,canCopy:!1,numberOfVisibleItems:2}:void 0;return(ae,P)=>(de(),We("div",{ref_key:"sectionRef",ref:u,class:"section-renditions-wrapper"},[Oe("div",{ref_key:"listRef",ref:h,class:"section-renditions"},[v.value.length==0&&!p.value?(de(),We("div",Etl,[Le(VW,{"visual-name":"NoData",label:"No activity available.",height:150})])):at("",!0),(de(!0),We(Gt,null,dn(v.value,pe=>{var ue,Ne,Me,Fe;return de(),We("div",{key:pe.id,class:Xe(["rendition-item",{hovered:m.value[pe.id]}]),onMouseover:()=>{m.value[pe.id]||(m.value[pe.id]=1)},onMouseleave:()=>{m.value[pe.id]===1&&(m.value[pe.id]=0)}},[Le(fe(ld),{content:fe(dqn)(pe.created_at),delay:[1e3,0]},{default:_e(()=>[Oe("div",btl,Et(fe(Ftl)(pe.created_at)),1)]),_:2},1032,["content"]),Le(fe($Qn),Vn({class:"rendition-card"},{ref_for:!0},{renditionData:pe,disabled:!1,hasNewComment:!1,isDeletable:((Ne=(ue=pe.permission)==null?void 0:ue.media)==null?void 0:Ne.has_delete_rendition_permission)==1,isReadOnly:!1,active:!1,hovered:m.value[pe.id]>0,canDelete:((Fe=(Me=pe.permission)==null?void 0:Me.media)==null?void 0:Fe.has_delete_rendition_permission)==1,canOpenReview:fe(g).redirectPermission.review,canOpenSceneHub:fe(g).redirectPermission.scene_hub,customStyle:{borderWidth:2,borderColor:"white"}},{tooltip:"",onOpenHub:(ce,L)=>o(pe,L),onShowPopup:ce=>m.value[pe.id]=2,onHidePopup:ce=>m.value[pe.id]=0,onOpenReview:()=>r(pe),onClick:Ct(ce=>o(pe,ce),["stop"]),onCopy:ce=>z(pe.item.id,ce),onDelete:()=>$(pe)}),{title:_e(()=>{var ce;return[G.value[pe.id]?(de(),We("div",Wtl,[Le(fe(yH),Vn({ref_for:!0},G.value[pe.id],{url:"",items:((ce=G.value[pe.id])==null?void 0:ce.items)||[],disabled:"true"}),null,16,["items"])])):at("",!0)]}),timestamp:_e(()=>[Oe("div",ytl,[Le(fe(i$),{value:pe.name,"max-width":190},null,8,["value"])])]),_:2,__:[0]},1040,["onOpenHub","onShowPopup","onHidePopup","onOpenReview","onClick","onCopy","onDelete"])],42,vtl)}),128)),Oe("div",null,[s.failedRequest?(de(),mt(fe(Tr),{key:0,label:"Retry",onClick:d})):at("",!0)]),p.value&&s.canLoadMore?(de(),We(Gt,{key:1},dn(3,pe=>Le(Ztl,{key:pe})),64)):at("",!0)],512)],512))}}),ktl=Sl(Mtl,[["__scopeId","data-v-862c87c3"]]),Stl=Ft({__name:"GirdItemSkeleton",setup(e){const t=Ve(()=>Math.floor(Math.random()*51)+50+"%");return(n,r)=>(de(),We("div",{class:Xe([n.$style["scene-card-layout"],n.$style.loading]),style:{"--bdr":"6px"}},[Oe("div",{class:Xe(n.$style["status-indicator"])},[Oe("div",{class:Xe(n.$style["skeleton-loading-inner"])},null,2)],2),Oe("div",{class:Xe(n.$style["main-content-wrapper"])},[Oe("div",{class:Xe(n.$style["main-content"])},[Oe("div",{class:Xe(n.$style["row-line"])},[Oe("div",{class:Xe(n.$style["skeleton-loading-inner"])},null,2)],2),Oe("div",{class:Xe(n.$style["grid-line"])},[Oe("div",{class:Xe([n.$style["thumbnail-slot"],n.$style.loading])},[Oe("div",{class:Xe(n.$style["skeleton-loading-inner"])},null,2)],2),Oe("div",{class:Xe(n.$style["name-slot"])},[Oe("div",{class:Xe(n.$style["skeleton-loading-inner"]),style:rn({width:t.value})},null,6)],2)],2)],2),Oe("div",{class:Xe(n.$style["row-line"])},[Oe("div",{class:Xe(n.$style["skeleton-loading-inner"]),style:{width:"50%"}},null,2)],2)],2)],2))}}),gtl="_selected_ybxyy_17",Qtl="_archived_ybxyy_22",ztl="_disabled_ybxyy_31",wtl="_readonly_ybxyy_31",Dtl="_deleted_ybxyy_34",Otl="_loading_ybxyy_118",xtl={"scene-card-layout":"_scene-card-layout_ybxyy_1",selected:gtl,archived:Qtl,disabled:ztl,readonly:wtl,deleted:Dtl,"status-indicator":"_status-indicator_ybxyy_42","main-content-wrapper":"_main-content-wrapper_ybxyy_52","main-content":"_main-content_ybxyy_52","more-actions":"_more-actions_ybxyy_70","grid-line":"_grid-line_ybxyy_81","row-line":"_row-line_ybxyy_91","breadcrumb-slot":"_breadcrumb-slot_ybxyy_103","thumbnail-slot":"_thumbnail-slot_ybxyy_110",loading:Otl,"name-slot":"_name-slot_ybxyy_122","status-slot":"_status-slot_ybxyy_131","daterange-slot":"_daterange-slot_ybxyy_138","assignee-slot":"_assignee-slot_ybxyy_145","skeleton-loading-inner":"_skeleton-loading-inner_ybxyy_153","skeleton-loading":"_skeleton-loading_ybxyy_153"},Ytl={$style:xtl},Btl=Sl(Stl,[["__cssModules",Ytl]]),Jtl=1,jtl=e=>{const{handleGetSceneDetail:t}=COn(void 0),n=async(E,v)=>{try{const y=await t(E);y.success&&y.data&&(d.value[v]=y.data,h.updateSceneDataValue(E,y.data))}catch(y){console.error(y)}},r=Ve(()=>aX.getCookie("account.last_prefered_timezone")||"Asia/Singapore"),a={perPage:10,itemsPerRow:1,totalItems:0,totalPages:1,currentPage:1,loading:!1},o=tr(a);async function l(){d.value=[],Object.entries(a).forEach(([E,v])=>{o[E]=v}),await s(Jtl)}const s=async(E=1)=>{var g,z;if(o.loading)return;o.loading=!0,o.currentPage=E;const v={...e.value.filterParameter,page:E},y=await e.value.getDataFunction(v),{meta:k,data:Z,private_item_count:Q}=y;return R(k),m(Z),(z=(g=e.value).callbackGetData)==null||z.call(g,k),U.value=Q||0,Z},d=Re([]),u=async()=>{o.isLoadScene=!0,await l(),o.loadedPage=!1},h=HYe(),{totalSceneCount:p,privateSceneCount:U}=eo(h),m=E=>{h.setSceneDataMap(E),E&&(E==null?void 0:E.length)===0?d.value=[]:d.value=[...d.value,...E]},R=E=>{o.totalItems=E.total,o.totalPages=E.last_page,o.currentPage=E.current_page,p.value=E.total,o.loadedPage=!0,o.loading=!1};return{states:o,listData:d,callbackUpdatingMeta:R,callbackUpdateData:m,resetList:u,initList:l,handleUpdateScene:n,loadNextPage:async()=>{o.currentPage<o.totalPages&&await s(o.currentPage+1)},fetchMoreData:s,preferredTimezone:r}},Gtl={key:0,class:"empty-list"},Itl={style:{display:"flex","flex-direction":"column",gap:"8px"}},Xtl=Ft({__name:"SceneList",props:{getDataFunction:{type:Function},filterParameter:{},callbackUpdateMeta:{type:Function},callbackGetData:{type:Function},ready:{type:Boolean},height:{}},emits:["loaded","metaUpdate","update","needUpdate"],setup(e,{expose:t,emit:n}){const r=Re({}),a=()=>{r.value&&Object.values(r.value).forEach(Q=>Q==null?void 0:Q.hideDropdowns())},o=n,l=e,s=uc(),d=Q=>!!s[Q],u=Re(null);XDn(u,Q=>{const g=Q[0];g&&(g.contentRect.width<=655||window.innerWidth<=768?h.value=184:h.value=150)});const h=Re(150),p=Ve(()=>({getDataFunction:l.getDataFunction,filterParameter:l.filterParameter,callbackUpdateMeta:Q=>{o("metaUpdate",Q),o("loaded")},callbackGetData:Q=>{o("loaded",Q)}})),{states:U,listData:m,loadNextPage:R,resetList:N,initList:E}=jtl(p);sn(()=>{E()});const v=Re(Math.random());Tt(()=>l.filterParameter,async(Q,g)=>{l.ready&&JSON.stringify(Q)!==JSON.stringify(g)&&await N()},{deep:!0}),t({resetList:N,hideCalendars:()=>{r.value&&Object.values(r.value).forEach(Q=>Q==null?void 0:Q.hideDropdowns())}});const y=async()=>{const Q=await l.getDataFunction(l.filterParameter,kH);return{signature:Q==null?void 0:Q.meta["X-Tsr-signature"]}},k=Re(""),{needUpdate:Z}=XH("",y,k);return Tt(Z,Q=>{Q&&o("needUpdate")},{immediate:!0}),(Q,g)=>l.ready?(de(),We("div",{ref_key:"listContainerRef",ref:u,key:v.value,class:Xe(["scene-list-component",{"no-footer":!d("footer"),empty:!fe(U).loading&&fe(m).length===0}]),style:rn({"--list-height":`${l.height}px`})},[!fe(U).loading&&fe(m).length===0?(de(),We("div",Gtl,[Rt(Q.$slots,"empty",{listData:fe(m),loadedPage:fe(U).loadedPage},()=>[!fe(m).length&&fe(U).loadedPage?(de(),mt(VW,{key:0,"visual-name":"NoData2",label:"No results. Try another search.",height:180})):at("",!0)],!0)])):at("",!0),Le(fe(hYe),{ref:"listRef",class:"list",items:fe(m),"min-item-size":h.value,"key-field":"id",buffer:500,onScroll:a,onScrollEnd:fe(R)},Uc({default:_e(({item:z})=>[(de(),We("div",{class:"scene-item",key:z.id},[(de(),mt(qrt,{key:`scene-item-${z.id}`,id:z.id,data:z},null,8,["id","data"]))]))]),_:2},[fe(U).loading?{name:"after",fn:_e(()=>[Oe("div",Itl,[(de(),We(Gt,null,dn(5,z=>Le(Btl,{key:z})),64))])]),key:"0"}:void 0]),1032,["items","min-item-size","onScrollEnd"])],6)):at("",!0)}}),cqn=Sl(Xtl,[["__scopeId","data-v-e561f52e"]]),Htl=400,Ctl=Ft({__name:"SectionRecentAccess",setup(e,{expose:t}){const n=wJe(),r=async y=>{var Q;const k=await n.getRecentActivities("recent_activities.accessed_scenes",{...y,per_page:10}),Z=k.recent_activities.accessed_scenes;return!y.after_id&&!y.before_id&&(v.value=(Q=k.recent_activities.accessed_scenes)==null?void 0:Q.meta["X-Tsr-signature"]),Z.data=Z.data.map(g=>({...g.item})),Z},a={},o=Re(null);t({resetList:()=>{var y;(y=o.value)==null||y.resetList()}});const s=Re(null),{height:d}=j5(s),u=Re(!1),h=Dd(),{basicInfo:p}=eo(h);Tt(p,()=>{p.value.id&&(u.value=!0)},{deep:!0,immediate:!0});const U=Ve(()=>d.value||Htl),m=CR(),{refreshState:R}=eo(m),N=()=>{R.value.scene=!0},E=async()=>{var k,Z;const y=await n.getRecentActivities("recent_activities.accessed_scenes",kH);return{signature:(Z=(k=y==null?void 0:y.recent_activities)==null?void 0:k.accessed_scenes)==null?void 0:Z.meta["X-Tsr-signature"]}},v=Re("");return XH("scene",E,v),(y,k)=>(de(),We("div",{ref_key:"recentlyAccessSceneRef",ref:s,class:"recently-access-scene"},[Le(cqn,{ref_key:"listRef",ref:o,"get-data-function":r,"filter-parameter":a,ready:u.value,class:"no-footer",height:U.value,onUpdate:N},{empty:_e(()=>[Le(VW,{"visual-name":"NoData",label:"No activity available.",height:150,width:400})]),_:1},8,["ready","height"])],512))}}),K7t=Sl(Ctl,[["__scopeId","data-v-3aad5043"]]),Ltl={class:"breadcrumb"},Ktl=Ft({__name:"CommentItem",props:{item:{},commentId:{},width:{default:400},renderKey:{}},emits:["commentDeleted","updateComment"],setup(e,{emit:t}){const n=e,r=Dd();B_();const{userInfo:a}=eo(r),{getEnvVariable:o}=Sk(),l=q=>{var G;return{items:((G=q==null?void 0:q.entity_path)==null?void 0:G.map(ee=>{const ae=Yc({type:ee.is_parent_item?"scene_hub":"project",config:{baseDomain:o("BASE_URL"),ws_code:Mo(),entity_id:ee.id,scene_id:ee.is_parent_item?ee.id:void 0}}).url;return{label:ee.name,href:ae,disabled:!0,id:ee.id,isCurrent:!1}}))||[],lastItemWidth:200,canCopy:!1,url:""}},s=async({path:q})=>{if(q.length===0)return{message:"",url:""};const $=await $o.downloadFileFromS3({scene_id:Mo(),path:q});return $?{url:$.url,message:$.message}:{url:"",message:""}},d=async()=>{const q=n.item.id,$=await $o.getCommentDetail({comment_id:q,scene_id:n.item.item_id});Q("updateComment",$)},u=tOn({comment_id:n.item.id,scene_id:n.item.item_id,callbackUpdate:d,commentData:n.item,userId:a.value.id}),{assignUser:h,getAssignableUser:p,resolveComment:U,deleteComment:m,unResolveComment:R,reactToComment:N,updateReactComment:E,deleteReactComment:v,unassignUser:y,getMentionableUser:k,reassignUser:Z}=u,Q=t,g=Ve(()=>{const q=n.item;return{disabled:!1,readonly:!1,isReplying:!1,selected:!1,searchText:void 0,isResolvedList:!0,currentUser:{id:a.value.id,name:a.value.display_name},commentConfig:{renditionId:q.item_rendition_id||void 0,sceneId:q==null?void 0:q.item_id,entityId:q==null?void 0:q.item_id,wsCode:Mo(),commentId:q.id},componentConfig:{isReviewComment:!!q.item_rendition_id,isMyComment:q.ws_creator.user_id==a.value.id,onSceneHub:!1},commentPermission:{canEdit:!1,canDelete:!0,canAssign:!0,canOpenSceneHub:!0,canResolve:!0,canOpenReview:!0},apiFunctions:{assignUser:h,unassignUser:y,reassignUser:Z,addReaction:async $=>await N($),removeReaction:v,replaceReaction:$=>{var ee,ae;const G=((ae=(ee=n.item.emoji_users)==null?void 0:ee.find(P=>P.user_id==a.value.id))==null?void 0:ae.emoji_id)||"";return E({...$,emojiId:G})},resolveComment:U,unResolveComment:R,deleteComment:async()=>{const $=await m();return $?(Q("commentDeleted",n.item.id),$):{success:!1,data:void 0}},updateComment:()=>new Promise(($,G)=>{setTimeout(()=>{G({success:!1,data:{message:"Error"}})},1500)}),uploadFunction:void 0,getResourceURL:s,getAssignableUser:p,getMentionableUser:k},commentData:{...q}}}),z=fl("switchInstance"),C=Ve(()=>{var $,G,ee,ae,P,pe,ue;const q=(($=n.item)==null?void 0:$.entity_path)||[];return{project:(G=q[0])==null?void 0:G.id,process:(ee=q[1])==null?void 0:ee.id,episode:(ae=q[2])==null?void 0:ae.id,take:(P=q[3])==null?void 0:P.id,scene:((pe=q[4])==null?void 0:pe.id)||n.item.item_id,rendition:((ue=q[5])==null?void 0:ue.id)||n.item.item_rendition_id,comment:n.item.id}}),j=(q,$)=>{const{scene:G,rendition:ee,comment:ae}=C.value;if(n.item.item_rendition_id){const P=Yc({type:"review_rendition_comment",config:{reviewDomain:o("BASE_REVIEW_URL"),ws_code:Mo(),scene_id:G,comment_id:ae,rendition_id:ee||""}});window.open(P.url,"_blank")}else{const P=Yc({type:"hub_comment",config:{baseDomain:o("BASE_URL"),ws_code:Mo(),scene_id:G,comment_id:ae}});$.ctrlKey||$.metaKey?window.open(P.url,"_blank"):z?z("scene_hub",{id:G,commentId:ae},{showLoading:!1}):window.location.href=P.url}},X=(q,$)=>{j(q,$)};return(q,$)=>(de(),mt(fe(fft),Vn(g.value,{class:"comment-tile-item",style:{"--comment-tile-width":"100%"},onOnReply:j,onRedirectToComment:X}),{breadcrumb:_e(()=>[Oe("div",Ltl,[Le(fe(yH),Vn({...l(q.item)},{"can-copy":!1,"number-of-visible-items":3}),null,16)])]),_:1},16))}}),Ptl=Sl(Ktl,[["__scopeId","data-v-a045b094"]]),qtl={class:"skeleton-comment"},_tl={class:"comment-body"},$tl={class:"body"},enl={class:"skeleton-details"},tnl=Ft({__name:"CommentSkeleton",setup(e){const t=()=>Math.floor(Math.random()*71)+30;return(n,r)=>(de(),We("div",qtl,[r[2]||(r[2]=Oe("div",{class:"skeleton-row bg-white",style:{height:"24px",display:"flex","justify-content":"flex-start","align-items":"center",padding:"8px"}},[Oe("div",{class:"skeleton-line w-50 skeleton-animation small dark"})],-1)),Oe("div",_tl,[r[0]||(r[0]=lQ('<div class="skeleton-row" data-v-8e94eda8><div class="header w-50" data-v-8e94eda8><div class="skeleton-avatar skeleton-animation dark" data-v-8e94eda8></div><div class="skeleton-details" data-v-8e94eda8><div class="skeleton-line skeleton-animation dark" data-v-8e94eda8></div><div class="skeleton-line skeleton-animation small dark" data-v-8e94eda8></div></div></div><div class="button-group" data-v-8e94eda8><div class="skeleton-button skeleton-animation dark sm" data-v-8e94eda8></div><div class="skeleton-button skeleton-animation dark sm" data-v-8e94eda8></div><div class="skeleton-button skeleton-animation dark sm" data-v-8e94eda8></div></div></div>',1)),Oe("div",$tl,[Oe("div",enl,[(de(!0),We(Gt,null,dn(Math.floor(Math.random()*5)+1,a=>(de(),We("div",{key:a,class:"skeleton-line skeleton-animation small dark",style:rn({width:`${t()}%`})},null,4))),128))])]),r[1]||(r[1]=lQ('<div class="footer" data-v-8e94eda8><div class="skeleton-button skeleton-animation dark" data-v-8e94eda8></div><div class="skeleton-button skeleton-animation dark" data-v-8e94eda8></div></div><div class="footer" data-v-8e94eda8><div class="button-group" data-v-8e94eda8><div class="skeleton-button skeleton-animation dark" data-v-8e94eda8></div><div class="skeleton-button skeleton-animation dark sm" data-v-8e94eda8></div><div class="skeleton-button skeleton-animation dark sm" data-v-8e94eda8></div><div class="skeleton-button skeleton-animation dark sm" data-v-8e94eda8></div></div><div class="skeleton-button skeleton-animation dark" data-v-8e94eda8></div></div>',2))])]))}}),nnl=Sl(tnl,[["__scopeId","data-v-8e94eda8"]]),$j=new GI("CommentFile");$j.version(1).stores({files:"++id, files "});const rnl=()=>{const e=async o=>{await $j.files.where("id").equals(o.id).first()?await $j.files.update(o.id,o):await $j.files.add(o)};return{setCommentFile:e,updateCommentFile:async(o,l)=>{try{await $j.files.update(o,l)}catch(s){console.error("Error updating comment file",s)}},removeCommentFile:async o=>{try{await $j.files.where("id").equals(o).delete()}catch(l){console.error("Error removing comment file",l)}},storeCommentFile:(o,l)=>{l.forEach(s=>{e({id:o.id+"_"+s.name,path:s.path,thumbnail:s.thumbnail,url:s.path,type:s.mimetype})})},getCommentFile:async o=>{try{return await $j.files.where("id").equals(o).delete()}catch(l){console.error("Error removing comment file",l)}}}},anl=AT("comment",()=>{const e=Re({});return{commentMap:e,updateCommentData:(a,o)=>{e.value[a]={...e.value[a],...o}},setComments:a=>{const o={};a.forEach(l=>{o[l.id]=l}),e.value={...e.value,...o}},getCommentById:a=>e.value[a]}}),onl={class:"empty-data"},lnl=Ft({__name:"CommentList",props:{getData:{type:Function},filterParameters:{},loadMore:{type:Boolean}},emits:["listDataChange","update","loaded"],setup(e,{expose:t,emit:n}){const r=e,a=Re(!0),o=async()=>{var g;U.value=[],a.value=!0;const k=await r.getData({}),Z=k.data;h(Z,!0),a.value=!1;const Q=(g=k.meta)==null?void 0:g.total;E("loaded",Q)},l=anl(),s=Re(""),d=Re(!0),u=Re({}),h=(k,Z)=>{if(k.length==0){d.value=!1;return}if(l.setComments(k),k.forEach(Q=>{u.value[Q.id]=(u.value[Q.id]||0)+1,p(Q,Q.attachments),Q.parent&&p(Q.parent,Q.parent.attachments)}),Z){U.value=k,s.value=k[k.length-1].id;return}U.value=[...U.value,...k],s.value=U.value[U.value.length-1].id},{storeCommentFile:p}=rnl(),U=Re([]),m=Re(null);CDn(m,async()=>{var g;const k=s.value;if(a.value||!d.value)return;a.value=!0;const Z=await r.getData({before_id:k}),Q=Z.data;h(Q),a.value=!1,E("loaded",(g=Z.meta)==null?void 0:g.total)},{canLoadMore:()=>!a.value&&r.loadMore&&d.value,distance:10});const R=Re(!1),N=async()=>{var Z;a.value=!0;const k=await r.getData({});h(k.data),R.value=!0,a.value=!1,E("loaded",(Z=k==null?void 0:k.meta)==null?void 0:Z.total)};sn(async()=>{await N()});const E=n,v=k=>{const Z=U.value.findIndex(Q=>Q.id==k);U.value.splice(Z,1),E("listDataChange"),E("update")},y=k=>{const Z=U.value.findIndex(Q=>Q.id==k.id);U.value[Z]={...U.value[Z],...k},E("update")};return t({resetList:o}),(k,Z)=>(de(),We("div",{ref_key:"commentListRef",ref:m,class:"recent-comment"},[U.value.length==0&&!a.value?Rt(k.$slots,"empty",{key:0},()=>[Oe("div",onl,[Le(VW,{"visual-name":"NoData",label:"No activity available.",height:150})])],!0):at("",!0),Z[0]||(Z[0]=It()),U.value.length!==0?(de(!0),We(Gt,{key:1},dn(U.value,Q=>(de(),mt(Ptl,{key:`comment_${Q.id}_${u.value[Q.id]}`,"render-key":u.value[Q.id],"comment-id":Q.id,item:Q,onCommentDeleted:v,onUpdateComment:y},null,8,["render-key","comment-id","item"]))),128)):at("",!0),Z[1]||(Z[1]=It()),a.value?(de(),We(Gt,{key:2},dn(3,Q=>Oe("div",{key:Q},[Le(nnl)])),64)):at("",!0)],512))}}),g1t=Sl(lnl,[["__scopeId","data-v-f72ffc4b"]]),inl=Ft({__name:"SectionRecentComment",setup(e,{expose:t}){const n=wJe(),r=u=>({...u}),a=async u=>{var p,U,m,R,N;const h=await n.getRecentActivities("comments.latest",u);return!u.after_id&&!u.before_id&&(d.value=(U=(p=h==null?void 0:h.comments)==null?void 0:p.latest)==null?void 0:U.meta["X-Tsr-signature"]),{...(m=h==null?void 0:h.comments)==null?void 0:m.latest,data:((N=(R=h==null?void 0:h.comments)==null?void 0:R.latest)==null?void 0:N.data.map(r))||[]}},o=Re(null),l=async()=>{var u;(u=o.value)==null||u.resetList()},s=async()=>{var h,p;const u=await n.getRecentActivities("comments.latest",kH);return{signature:(p=(h=u==null?void 0:u.comments)==null?void 0:h.latest)==null?void 0:p.meta["X-Tsr-signature"]}},d=Re("");return XH("comment_recent",s,d),t({resetList:l}),(u,h)=>(de(),mt(g1t,{ref_key:"listRef",ref:o,"get-data":a,"load-more":!0},null,512))}}),H4e=Sl(inl,[["__scopeId","data-v-a9219b2f"]]),snl=Ft({__name:"SectionResolvedComment",setup(e,{expose:t}){const n=wJe(),r=async p=>{var m,R,N,E,v;const U=await n.getRecentActivities("comments.recently_resolved",p);return!(p!=null&&p.before_id)&&!(p!=null&&p.after_id)&&(h.value=(R=(m=U==null?void 0:U.comments)==null?void 0:m.recently_resolved)==null?void 0:R.meta["X-Tsr-signature"]),{...(N=U==null?void 0:U.comments)==null?void 0:N.recently_resolved,data:((v=(E=U==null?void 0:U.comments)==null?void 0:E.recently_resolved)==null?void 0:v.data)||[]}},a=Re(null),o=async()=>{var p;(p=a.value)==null||p.resetList()},l=CR(),{refreshState:s}=eo(l),d=()=>{s.value.comment_resolved=!0};t({resetList:o});const u=async()=>{var U,m;const p=await n.getRecentActivities("comments.recently_resolved",kH);return{signature:(m=(U=p==null?void 0:p.comments)==null?void 0:U.recently_resolved)==null?void 0:m.meta["X-Tsr-signature"]}},h=Re("");return XH("comment_resolved",u,h),(p,U)=>(de(),mt(g1t,{ref_key:"listRef",ref:a,"get-data":r,"load-more":!0,onListDataChange:d},null,512))}}),dnl=Sl(snl,[["__scopeId","data-v-76be5b62"]]),cnl={class:"tab-sections"},unl={class:"tab"},hnl={class:"refresh-btn"},Anl=Ft({__name:"DashboardTabSection",props:{tabs:{}},setup(e){const t={comment_recent:H4e,comment_resolved:dnl,rendition:ktl,scene:K7t,people_comment:H4e,chart:H4e,assigned_scene:K7t},n=e,r=Re(n.tabs[0].id);Gc(()=>{r.value=n.tabs[0].id});const a=E=>{r.value=E};Tt(r,(E,v)=>{m.value[E]=!1,m.value[v]=!1});const o=Re({comment_recent:null,comment_resolved:null,rendition:null,scene:null,people_comment:null,chart:null,assigned_scene:null}),l=()=>{var v;const E=r.value;E&&m.value[E]!=null&&(m.value[E]=!1,(v=o.value[E])==null||v.resetList())},s=(E,v)=>{o.value[v]=E},d=Ve(()=>n.tabs.map(E=>({...E,id:E.id}))),u=Dd(),{basicInfo:h}=eo(u),p=Ve(()=>h.value.id);Tt(p,(E,v)=>{E&&E!==v&&Object.keys(o.value).forEach(y=>{var k;(k=o.value[y])==null||k.resetList()})});const U=CR(),{refreshState:m}=eo(U),R=Ve(()=>{const E=r.value;return m.value[E]}),N=Ve(()=>{const E=R.value?"Refresh":"",v=R.value?"Change detected. Refresh now.":"Refresh";return{prefixIcon:"ArrowRotate",label:E,size:"small",type:"secondary",prefixTooltip:v,onClick:l}});return(E,v)=>(de(),We("div",cnl,[Oe("div",unl,[Le(fe(lYe),{"key-value":"id",tabs:d.value,value:r.value,class:"arbo-tabs",onInput:a},Uc({_:2},[dn(d.value,y=>({name:`${y.id}`,fn:_e(()=>[y.id==r.value?(de(),mt(PA(t[y.id]),{key:0,ref:k=>s(k,y.id)},null,512)):at("",!0)])}))]),1032,["tabs","value"]),Oe("div",hnl,[Le(fe(Tr),Vn({...N.value},{onClick:l}),null,16)])])]))}}),P7t=Sl(Anl,[["__scopeId","data-v-1049641a"]]),pnl=["id"],Vnl=Ft({__name:"ResizeLayout",props:{minWidthRight:{default:730},minWidthLeft:{default:400},layoutName:{},mode:{default:"horizontal"},breakPoint:{default:1024},minHeight:{default:500},requireHeight:{default:500},requireRightMargin:{default:0}},emits:["resized"],setup(e,{expose:t,emit:n}){var G;const r=Re(null),a=Re(null),o=Re(null),l=Re(null),s=Re(!1),d=e,{height:u}=LDn(),h=n,p=Ve(()=>d.minWidthRight||730),U=Ve(()=>d.minWidthLeft||400),m=Ve(()=>R.value<UDn||u.value<700),{width:R}=j5(r),{width:N,height:E}=j5(a),v=Ve(()=>N.value),y=Ve(()=>E.value),{width:k}=j5(o),Z=Re(!1),Q=Re(((G=r.value)==null?void 0:G.offsetWidth)||0),g=()=>{const ee=l.value,ae=r.value,P=a.value,pe=o.value;!ee||!P||!pe||!ae||(ee.classList.add("active"),Z.value=!0,Q.value=ae.offsetWidth)},z=()=>{const ee=l.value;!ee||!Z.value||(Z.value=!1,ee.classList.remove("active"),gt(()=>{var ae,P;h("resized",[(ae=a.value)==null?void 0:ae.offsetWidth,(P=a.value)==null?void 0:P.offsetWidth]),X()}))},C=ee=>{const ae=l.value,P=r.value,pe=a.value,ue=o.value;if(!(!ae||!pe||!ue||!P)&&Z.value){const Ne=P.getBoundingClientRect(),Me=ee.clientX,Fe=Ne.left,ce=(Me-Fe)/Ne.width;if((1-ce)*Ne.width<p.value||ce*Ne.width<U.value)return;const L=Ne.width,ie=ce*L-5,Ae=(1-ce)*L-5;pe.style.width=`${ie}px`,ue.style.width=`${Ae}px`}},j=()=>{const ee=l.value,ae=r.value,P=a.value,pe=o.value;!ee||!P||!pe||!ae||(ee.addEventListener("mousedown",g),document.addEventListener("mousemove",C),document.addEventListener("mouseup",z))},X=()=>{const ee=JSON.stringify({left:N.value,right:k.value});localStorage.setItem("layout_"+d.layoutName,ee)},q=()=>{try{const ee=localStorage.getItem("layout_"+d.layoutName);if(ee){const{left:ae,right:P}=JSON.parse(ee);a.value&&o.value&&(a.value.style.width=`${ae}px`,o.value.style.width=`${P}px`)}}catch(ee){console.error("getSavedLayout",ee,a.value,o.value)}},$=()=>{Z.value&&z()};return sn(()=>{j(),gt(()=>{var ee,ae,P,pe;q(),h("resized",[(ee=a.value)==null?void 0:ee.offsetWidth,(ae=o.value)==null?void 0:ae.offsetWidth]),h("resized",[(P=a.value)==null?void 0:P.offsetWidth,(pe=o.value)==null?void 0:pe.offsetWidth]),s.value=!0}),document.addEventListener("resize",$)}),ul(()=>{const ee=l.value,ae=r.value,P=a.value,pe=o.value;!ee||!P||!pe||!ae||(ee.removeEventListener("mousedown",g),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",z))}),t({leftPanelRef:a,rightPanelRef:o,leftPanelWidth:N,rightPanelWidth:k}),(ee,ae)=>(de(),We("div",{id:`resize-layout-${d.layoutName}`,ref_key:"resizingPanelRef",ref:r,class:Xe(["resize-layout",[d.mode,{"break-layout":m.value}]])},[Oe("div",{ref_key:"leftPanelRef",ref:a,class:Xe(["resize-layout__content flex-1",{"disabled-pointer":Z.value}]),style:rn({"min-width":`${U.value}px`,minHeight:`${m.value?d.requireHeight:d.minHeight}px`})},[s.value?Rt(ee.$slots,"left",{key:0,width:v.value,height:y.value,ready:s.value,isColumnLayout:m.value},()=>[ae[0]||(ae[0]=Oe("div",{class:"loading-box skeleton-animation"},null,-1))],!0):at("",!0)],6),Oe("div",{ref_key:"resizeBar",ref:l,class:"resize-layout__resize-bar"},null,512),Oe("div",{ref_key:"rightPanelRef",ref:o,class:Xe(["resize-layout__content",{"disabled-pointer":Z.value}]),style:rn({"min-width":`${p.value}px`,minHeight:`${d.minHeight}px`,"margin-right":`${d.requireRightMargin}px`})},[s.value?Rt(ee.$slots,"right",{key:0},()=>[ae[1]||(ae[1]=Oe("div",{class:"loading-box skeleton-animation"},null,-1))],!0):at("",!0)],6)],10,pnl))}}),uqn=Sl(Vnl,[["__scopeId","data-v-4affbe04"]]),mnl=Ft({__name:"PreferencePopup",props:{width:{default:280},isActive:{type:Boolean}},setup(e){const t=e,n=()=>{a.value?o():r()},r=()=>{u(),a.value=!0},a=Re(!1),o=()=>{a.value=!1},l=Re(null),s=Re(null),d=Re(null);IDn(l,()=>{o()});const u=()=>{const h=s.value,p=d.value;if(!h||!p)return;const U=h.getBoundingClientRect();p.style.top=`${U.bottom}px`,p.style.left=`${U.left-t.width+U.width}px`,p.style.right=`${window.innerWidth-U.right}px`};return(h,p)=>(de(),We("div",{ref_key:"preferencePopupComponentRef",ref:l,class:"preference-popup-component"},[Oe("div",{ref_key:"activatorButtonRef",ref:s,class:Xe(["activator-button",{active:a.value}])},[Rt(h.$slots,"activator",{},()=>[Le(fe(Tr),{class:Xe({highlight:h.isActive}),"prefix-icon":"Gear","prefix-tooltip":"Preference",type:"secondary",label:"",size:"small",onClick:n},null,8,["class"])],!0)],2),St(Oe("div",{ref_key:"preferencePopupRef",ref:d,class:"preference-popup",style:rn({width:t.width+"px"})},[Rt(h.$slots,"content",{},void 0,!0)],4),[[Eo,a.value]])],512))}}),Unl=Sl(mnl,[["__scopeId","data-v-7866896b"]]),fnl=Ft({__name:"SkeletonLoading",props:{isLoading:{type:Boolean},width:{},height:{}},setup(e){const t=e,n=Ve(()=>({"--card-width":`${t.width}px`,"--card-height":`${t.height}px`}));return(r,a)=>(de(),mt(gm,{name:"fade",mode:"out-in"},{default:_e(()=>[r.isLoading?(de(),We("div",{key:0,class:"card-skeleton skeleton-animation",style:rn(n.value)},null,4)):Rt(r.$slots,"default",{key:1},void 0,!0)]),_:3}))}}),Rnl=Sl(fnl,[["__scopeId","data-v-94ead0ea"]]),Nnl={class:"section-title"},Znl={class:"title"},Tnl={class:"actions"},Fnl={class:"counting-chip"},Enl=Ft({__name:"SectionTitle",props:{countBtn:{default:void 0},showRefreshLabel:{type:Boolean,default:!1},showRefreshBtn:{type:Boolean},title:{default:""},loading:{type:Boolean,default:!0},activeFilter:{type:Boolean,default:!1}},emits:["refresh"],setup(e,{emit:t}){const n=uc(),r=d=>!!n[d],a=e,o=Re(0),l=t,s=()=>{o.value+=1,l("refresh")};return(d,u)=>(de(),We("div",Nnl,[Rt(d.$slots,"title",{},()=>[Oe("div",Znl,Et(d.title),1)],!0),Oe("div",Tnl,[Rt(d.$slots,"search",{},void 0,!0),u[0]||(u[0]=It()),Rt(d.$slots,"refresh",{},()=>[d.showRefreshBtn?(de(),mt(fe(ld),{key:0,content:d.showRefreshLabel?"Change detected. Refresh now.":"Refresh",delay:[300,0]},{default:_e(()=>[d.showRefreshLabel?(de(),mt(fe(Tr),{key:o.value,type:"secondary",label:"Refresh","prefix-icon":"ArrowRotate",size:"small",onClick:s})):(de(),mt(fe(Tr),{key:o.value+1,type:"secondary",label:"","prefix-icon":"ArrowRotate",size:"small",onClick:s}))]),_:1},8,["content"])):at("",!0)],!0),u[1]||(u[1]=It()),Rt(d.$slots,"count",{},()=>[d.countBtn?(de(),mt(fe(ld),{key:0,content:d.countBtn.countTooltip,delay:[1e3,0]},{default:_e(()=>[Le(Rnl,{"is-loading":a.loading,width:50,height:24},{default:_e(()=>[Oe("div",Fnl,[Le(fe(ame),{label:String(d.countBtn.count||"0"),icon:d.countBtn.icon},null,8,["label","icon"])])]),_:1},8,["is-loading"])]),_:1},8,["content"])):at("",!0)],!0),u[2]||(u[2]=It()),Rt(d.$slots,"preferences",{},()=>[r("preference-popup")||r("preference")?(de(),mt(Unl,{key:0,"is-active":d.activeFilter},{content:_e(()=>[Rt(d.$slots,"preference-popup",{},void 0,!0)]),_:3},8,["is-active"])):at("",!0)],!0)])]))}}),UAe=Sl(Enl,[["__scopeId","data-v-29b0ecf7"]]),vnl={class:"section-card"},bnl=Ft({__name:"PeopleHome",setup(e){const t={"assigned-tile":ctl,"target-points-tile":mtl,"unresolved-tile":Utl,"overdue-tile":htl,"total-completed-tile":utl},n=CR(),{getDashboardData:r}=n,{dashboardData:a}=eo(n),o=Ve(()=>{var g;return["assigned-tile",((g=a.value)==null?void 0:g.point_pool.can_view)?"target-points-tile":void 0,"overdue-tile","unresolved-tile","total-completed-tile"].filter(Boolean)}),l=Re(!0),s=[{id:"comment_resolved",name:"Recently resolved",needRefresh:!0},{id:"comment_recent",name:"Recent comments",needRefresh:!0}],d=Ve(()=>({"--card-width":`${y.value}px`,"--max-width":`${y.value}px`})),u=[{id:"rendition",name:"New renditions",needRefresh:!0},{id:"scene",name:`Recently accessed ${MA({code:"scene"})}`,needRefresh:!0}],{height:h}=LDn(),p=Re(null),U=Re(null),m=Dd(),{basicInfo:R}=eo(m),N=Re(null),{width:E}=j5(N),v=Ve(()=>E.value),y=Ve(()=>{const Z=E.value,Q=Math.min(Math.floor(Z/266),5),g=Z-(Q-1)*16;return Math.floor(g/Math.ceil(Q))}),k=uhe(async()=>{R.value.id&&(l.value=!0,await r(R.value.id),l.value=!1)},500);return Tt(R,()=>{k()},{deep:!0,immediate:!0}),(Z,Q)=>(de(),We("div",{ref_key:"peopleHomeRef",ref:p,class:"people-home"},[Oe("div",{ref_key:"topRef",ref:U,class:"top"},[Le(UAe,{title:"Summary","show-refresh-btn":!0,onRefresh:fe(k)},null,8,["onRefresh"]),Oe("div",{ref_key:"sectionRef",ref:N,class:"section-card-wrapper"},[Oe("div",vnl,[(de(!0),We(Gt,null,dn(o.value,g=>(de(),We("div",{key:g,class:"dashboard-item-wrapper"},[Le(gm,{name:"fade",mode:"out-in"},{default:_e(()=>[l.value?(de(),We("div",{key:0,class:"card-skeleton skeleton-animation",style:rn(d.value)},null,4)):(de(),mt(PA(t[g]),{key:1,class:"dashboard-item",style:rn(d.value)},null,8,["style"]))]),_:2},1024)]))),128))])],512)],512),Oe("div",{class:Xe(["bottom",{"column-layout":v.value<=fe(UDn)||fe(h)<700}])},[Le(uqn,{"min-width-left":440,"min-width-right":750,"layout-name":"people-home",class:"resize-layout"},{left:_e(()=>[Le(P7t,{tabs:s})]),right:_e(()=>[Le(P7t,{tabs:u})]),_:1,__:[0]})],2)],512))}}),Wnl=Sl(bnl,[["__scopeId","data-v-77777a69"]]),ynl=["onMouseenter","onMouseleave"],Mnl=["innerHTML"],knl=["innerHTML"],Snl=Ft({__name:"SharedSnackbar",setup(e){const t=a0e(),{contentSnackBar:n}=eo(t),r=KDn(),{notifications:a}=eo(r),o=Ve(()=>[...a.value,...n.value?[{id:"content-snackbar",message:n.value.label,type:n.value.bgColor=="#FF5200"?"error":"success",actions:void 0,icon:void 0}]:[]]),l=m=>m.trim().startsWith("<svg"),s=Re("Copy"),d=()=>{setTimeout(()=>{s.value="Copy"},3e3)},u=m=>{navigator.clipboard.writeText(m).then(()=>{s.value="Copied",d()},()=>{s.value="Copy failed",d()})},h=Re(new Set),p=m=>{var R;h.value.add(m),(R=r.pauseAutoDismiss)==null||R.call(r,m)},U=m=>{var R;h.value.delete(m),(R=r.resumeAutoDismiss)==null||R.call(r,m)};return(m,R)=>{const N=Sc("contrast");return de(),mt(Emn,{name:"list",tag:"div",class:Xe(["notification-center",m.$style["notification-wrapper"]])},{default:_e(()=>[(de(!0),We(Gt,null,dn(o.value,E=>{var v;return St((de(),We("div",{key:E.id,class:Xe([m.$style["notification-item"],m.$style[`notification--${E.type||"info"}`],!(E!=null&&E.actions)||((v=E==null?void 0:E.actions)==null?void 0:v.length)==0?m.$style["snackbar-type"]:""]),onMouseenter:y=>p(E.id),onMouseleave:y=>U(E.id)},[Oe("p",{class:Xe(m.$style.snackbar__message)},[Oe("span",{class:Xe(m.$style.snackbar__icon)},[!E.icon&&E.type=="success"?(de(),mt(fe(cl),{key:0,name:"CircleCheck"})):at("",!0),!E.icon&&E.type=="interactive"?(de(),mt(fe(cl),{key:1,name:"CircleCheck"})):!E.icon&&E.type=="error"?(de(),mt(fe(cl),{key:2,name:"CircleXMark"})):E.icon&&l(E.icon)?(de(),We("i",{key:3,class:Xe(m.$style["icon-draw"]),innerHTML:E.icon},null,10,Mnl)):E.icon&&!l(E.icon)?(de(),mt(fe(cl),{key:4,src:E.icon,color:"var(--primary-color)"},null,8,["src"])):at("",!0)],2),Oe("span",{class:Xe(m.$style["error-message"])},[Oe("span",{class:Xe(m.$style.message),innerHTML:E.message},null,10,knl)],2)],2),E.type!=="interactive"?(de(),mt(fe(Tr),{key:0,type:"secondary",class:Xe([m.$style["copy-btn"],"copy-snackbar-btn"]),"prefix-icon":"Copy","prefix-tooltip":s.value,label:"",size:"24",style:{minWidth:"24px",width:"24px",height:"24px",padding:"0"},onClick:y=>u(E.message)},null,8,["class","prefix-tooltip","onClick"])):at("",!0)],42,ynl)),[[N]])}),128))]),_:1},8,["class"])}}}),gnl="_snackbar__message_1dmxa_76",Qnl="_message_1dmxa_89",znl="_snackbar__icon_1dmxa_103",wnl={"notification-wrapper":"_notification-wrapper_1dmxa_1","notification-item":"_notification-item_1dmxa_15","notification--success":"_notification--success_1dmxa_30","notification--error":"_notification--error_1dmxa_36","close-btn":"_close-btn_1dmxa_42","notification--info":"_notification--info_1dmxa_45","notification--warning":"_notification--warning_1dmxa_52","notification--interactive":"_notification--interactive_1dmxa_59","snackbar-type":"_snackbar-type_1dmxa_67",snackbar__message:gnl,message:Qnl,"error-message":"_error-message_1dmxa_97",snackbar__icon:znl,"actions-notification":"_actions-notification_1dmxa_112","icon-draw":"_icon-draw_1dmxa_120","copy-btn":"_copy-btn_1dmxa_128","arbo__icon-btn":"_arbo__icon-btn_1dmxa_137"},Dnl={$style:wnl},Onl=Sl(Snl,[["__cssModules",Dnl]]),xnl={class:"copy-btn"},Ynl=Ft({__name:"CopyWrapper",setup(e){const t=Re(!1);return(n,r)=>(de(),We("div",{class:"copy-wrapper",onMouseenter:r[0]||(r[0]=a=>t.value=!0),onMouseleave:r[1]||(r[1]=a=>t.value=!1)},[Rt(n.$slots,"default",{},void 0,!0),St(Oe("div",xnl,[Rt(n.$slots,"copy-btn",{},void 0,!0)],512),[[Eo,t.value]])],32))}}),q7t=Sl(Ynl,[["__scopeId","data-v-138fd01f"]]),Bnl={class:"user-switcher"},Jnl=Ft({__name:"UserSwitcher",props:{showProfileBtn:{type:Boolean}},setup(e){const t=Re([]),n=Ve(()=>{const{id:R,display_name:N}=d.value;return Yc({type:"people_detail",config:{baseDomain:sessionStorage.getItem("BASE_URL")||"",reviewDomain:sessionStorage.getItem("BASE_REVIEW_URL")||"",ws_code:sessionStorage.getItem("ws.code")||"",user_id:R,display_name:N}}).url}),r=R=>{t.value=[R]},a=Dd(),{selectedDataId:o,currentTab:l,userInfo:s,basicInfo:d}=eo(a),u=VDn(),{getEnvVariable:h}=Sk(),p=h("IS_DETACH"),U=R=>({id:R.id,name:R.display_name,profile_image:R.profile_image,color:{bgColor:R.color.bgColor,textColor:R.color.textColor},initial:R.initial}),m=async R=>{var E,v;const N=await $o.getUserListProfile(R.page,10,o.value||"",R.keyword);return N?{data:{data:(E=N.data)==null?void 0:E.map(U),meta:{last_page:((v=N.meta)==null?void 0:v.last_page)||1}},success:!0}:{success:!1,data:void 0}};return Tt(()=>t.value,()=>{p||u.replace({name:"PeopleDetail",params:{people_id:t.value.length>0?t.value[0].id:IGt(),ws_code:Mo()},query:{tab:l.value||"home"}})}),Tt(d,()=>{var R,N;t.value=[{id:d.value.id,name:d.value.display_name,profile_image:d.value.profile_image,color:{bgColor:(R=d.value.color)==null?void 0:R.bgColor,textColor:(N=d.value.color)==null?void 0:N.textColor},initial:d.value.initial}]},{immediate:!0,deep:!0}),Tt(t,R=>{a.setSelectedDataId(R.length>0?R[0].id:IGt())}),(R,N)=>(de(),We("div",Bnl,[t.value.length>0?(de(),mt(fe(Uft),{key:0,ref:"assigneeSelectorRef",modelValue:t.value,"onUpdate:modelValue":N[0]||(N[0]=E=>t.value=E),"get-data-api-func":m,"is-multiple-select":!1,"using-live-search":!0,style:{"--icon-color":"#A6A6A6"},onSelect:r,showTooltip:!1},null,8,["modelValue"])):at("",!0),N[1]||(N[1]=It()),R.showProfileBtn?(de(),mt(fe(Tr),{key:1,type:"secondary","prefix-icon":"Gear",label:"","prefix-tooltip":"Manage user",href:n.value},null,8,["href"])):at("",!0)]))}}),jnl=Sl(Jnl,[["__scopeId","data-v-6b4eb7e1"]]),Gnl=Ft({__name:"CopyButton",props:{content:{},icon:{default:"Link"},size:{default:32},type:{default:"secondary"},copyTooltip:{default:"Copy"},coppiedTooltip:{default:"Copied"}},setup(e){const t=e;Ve(()=>{const l=t.size||24;return{width:`${l}px`,height:`${l}px`,minWidth:`${l}px`,minHeight:`${l}px`}});const n=Re(!1),r=Ve(()=>t.content.trim().length>0),a=Ve(()=>n.value===!0?t.coppiedTooltip:t.copyTooltip),o=async()=>{if(r.value)try{await navigator.clipboard.writeText(t.content),n.value=!0,setTimeout(()=>{n.value=!1},3e3)}catch(l){console.error("copyProfileLink",l),n.value=!1}};return(l,s)=>{const d=Sc("arbo-tooltip");return St((de(),mt(fe(Tr),{"suffix-icon":t.icon||"Link",label:"",onClick:Ct(o,["prevent"]),size:"small",type:"secondary"},null,8,["suffix-icon"])),[[d,{content:a.value,delay:[300,0],hideOnClick:!1}]])}}}),C4e=Sl(Gnl,[["__scopeId","data-v-1aee5878"]]),Inl={class:"pi-header-wrapper"},Xnl={class:"pi-taskbar"},Hnl={class:"pi-copy-link"},Cnl={class:"pi-header"},Lnl={class:"pi-avatar"},Knl={key:"avatar-content",class:"pi-avatar__content"},Pnl={class:"pi-information"},qnl={key:"info-content",class:"pi-information__content"},_nl={class:"pi-selector"},$nl={class:"pi-role"},erl={class:"pi-mail"},trl={class:"pi-actions"},nrl={key:"actions-content",class:"pi-actions__content"},rrl={class:"pi-teams"},arl=Ft({__name:"HeaderSkeleton",props:{loading:{type:Boolean}},setup(e){return(t,n)=>(de(),We("div",Inl,[Oe("div",Xnl,[Oe("div",Hnl,[Rt(t.$slots,"copy-link",{},()=>[n[0]||(n[0]=Oe("div",{class:"skeleton-animation"},null,-1))],!0)])]),Oe("div",Cnl,[Oe("div",Lnl,[Oe("div",Knl,[Rt(t.$slots,"avatar",{},()=>[n[1]||(n[1]=Oe("div",{class:"skeleton-animation"},null,-1))],!0)])]),Oe("div",Pnl,[Oe("div",qnl,[Rt(t.$slots,"info",{},()=>[Oe("div",_nl,[Rt(t.$slots,"selector",{},()=>[n[2]||(n[2]=Oe("div",{class:"skeleton-animation"},null,-1))],!0)]),Oe("div",$nl,[Rt(t.$slots,"role",{},()=>[n[3]||(n[3]=Oe("div",{class:"skeleton-animation h-md"},null,-1))],!0)]),Oe("div",erl,[Rt(t.$slots,"professional",{},()=>[n[4]||(n[4]=Oe("div",{class:"skeleton-animation h-sm"},null,-1))],!0),Rt(t.$slots,"mail",{},()=>[n[5]||(n[5]=Oe("div",{class:"skeleton-animation h-sm"},null,-1))],!0)])],!0)])]),Oe("div",trl,[Oe("div",nrl,[Oe("div",rrl,[Rt(t.$slots,"teams",{},()=>[n[6]||(n[6]=Oe("div",{class:"skeleton-animation"},null,-1))],!0)])])])])]))}}),orl=Sl(arl,[["__scopeId","data-v-e8380773"]]),lrl=Ft({__name:"IndicatorWrapper",props:{size:{},inicatorSize:{},indicatorColor:{},indicatorTooltipContent:{}},setup(e){const t=e,n=Ve(()=>t.size?`${t.size}px`:"16px"),r=Ve(()=>t.inicatorSize?`${t.inicatorSize}px`:"8px"),a=Ve(()=>{const o=t.inicatorSize/2;return{top:`-${o}px`,right:`-${o}px`,width:r.value,height:r.value,backgroundColor:t.indicatorColor||"red"}});return(o,l)=>(de(),We("div",{class:Xe(o.$style["indicator-wrapper"]),style:rn({width:n.value,height:n.value})},[Rt(o.$slots,"indicator",{},()=>[Oe("div",{class:Xe(o.$style.indicator),style:rn(a.value)},[Le(fe(ld),{content:o.indicatorTooltipContent,delay:[300,0],"hide-on-click":!0,placement:"top",style:{width:"100%",height:"100%"}},null,8,["content"])],6)]),Oe("div",{class:Xe(o.$style.content)},[Rt(o.$slots,"content")],2)],6))}}),irl="_indicator_n90om_1",srl="_content_n90om_20",drl={"indicator-wrapper":"_indicator-wrapper_n90om_1",indicator:irl,content:srl},crl={$style:drl},url=Sl(lrl,[["__cssModules",crl]]),hrl={key:0,class:"avatar"},Arl={key:0,class:"roles"},prl={class:"timezone"},Vrl={class:"icon-globle"},mrl={key:0},Url={key:1},frl=["href"],Rrl={key:0,class:"team-wrapper"},Nrl={key:1},Zrl=Ft({__name:"SharedHeader",emits:["loaded"],setup(e,{emit:t}){const n=Re(null),r=Dd(),{basicInfo:a,permissionList:o}=eo(r),l=Re(null),s=Re(!1),d=Ve(()=>r.basicInfo.private_info),u=Ve(()=>{var ie;return((ie=r.basicInfo.private_info)==null?void 0:ie.timezone)||""}),h=Re(new Date),p=Ve(()=>!g.isLoading&&R.value),U=Ve(()=>{if(!u.value)return"";try{return h.value.toLocaleTimeString("en-US",{timeZone:u.value,hour:"numeric",minute:"2-digit",hour12:!0})}catch{return console.error("Invalid timezone:",u.value),""}}),m=Ve(()=>{var L,ie,Ae;return((L=d.value)==null?void 0:L.is_offline)===!0?"#6B6B6B":((ie=d.value)==null?void 0:ie.last_active)!==null?"#02C39A":((Ae=d.value)==null?void 0:Ae.last_active)===null?"#F7941D":""}),{selectedDataId:R}=eo(r),N=Ve(()=>{var L,ie;return((ie=(L=r.basicInfo)==null?void 0:L.user)==null?void 0:ie.professional_name)||""}),E=Ve(()=>{var L,ie,Ae,we,ze,Ue;return{initialName:((L=r.basicInfo)==null?void 0:L.initial)||"",bgColor:((Ae=(ie=r.basicInfo)==null?void 0:ie.color)==null?void 0:Ae.bgColor)||"#E0E0E0",textColor:((ze=(we=r.basicInfo)==null?void 0:we.color)==null?void 0:ze.textColor)||"#6B6B6B",profileImage:((Ue=r.basicInfo)==null?void 0:Ue.profile_image)||""}}),v=Ve(()=>{var Ae;const L=(Ae=r.basicInfo)==null?void 0:Ae.user,ie=r.userInfo;return(L==null?void 0:L.id)===(ie==null?void 0:ie.id)?ie.professional_name===null:!1}),y=Ve(()=>({backgroundColor:m.value})),k=Ve(()=>{var L,ie,Ae;return((L=d.value)==null?void 0:L.is_offline)===!0?"Logged out from account":((ie=d.value)==null?void 0:ie.last_active)!==null?"Active in the workspace within the last 10 minutes":((Ae=d.value)==null?void 0:Ae.last_active)===null?"No activity in the workspace within the last 10 minutes":""}),Z=Ve(()=>{var L,ie;return((ie=(L=r.basicInfo)==null?void 0:L.user)==null?void 0:ie.email)||""});async function Q(){if(E.value.profileImage){s.value=!0;try{const L=await fetch(E.value.profileImage,{method:"GET"});L.ok?l.value=E.value.profileImage:(console.error("loadImageSrc: Invalid image URL",L.status),l.value="")}catch(L){console.error("loadImageSrc: Error fetching image:",L),l.value=""}finally{s.value=!1}}else l.value="",s.value=!1}const g=tr({isLoading:!1,profileInfo:void 0}),z=Ve(()=>{const L=new Set(["people_getListOfWorkspaceUsers_read","guest_getListOfWorkspaceGuests_read"]);return o.value.some(ie=>L.has(ie))}),C=async()=>{try{g.isLoading=!0,aX.setSessionCookie("ws.user-access-id",r.selectedDataId);const L=await $o.getUserBasicInfo(r.selectedDataId);r.setSelectedDataProfile(L),D6.remove("account.last_access_url_people_tile",{domain:ue("BASE_DOMAIN_COOKIE")})}catch(L){g.isLoading=!1,console.error("fetchBasicInfo",L)}finally{g.isLoading=!1}},j=async()=>{try{const L=await $o.getUserPermission();r.setPermission(L)}catch(L){console.error("fetchUserPermission",L)}};function X(L,ie,Ae,we="png"){return new Promise(ze=>{const Ue=new Image,re=document.createElement("canvas");re.width=ie,re.height=Ae;const xe=re.getContext("2d");xe&&(Ue.onload=()=>{xe.drawImage(Ue,0,0,ie,Ae);const Qe=re.toDataURL(`image/${we}`);ze(Qe)},Ue.src=`data:image/svg+xml;base64,${btoa(L)}`)})}const q=Re("");async function $(){const L=ue("ASSET_URL");if(L){const ie=`${L}/icon/general/default-avatar.svg`;try{const Ae=await fetch(ie);if(!Ae.ok)throw new Error("Failed to load SVG file");const we=await Ae.text(),ze=await X(we,100,100);q.value=ze}catch(Ae){console.error("Error:",Ae)}}}Ve(()=>{const L=r.basicInfo;return L&&L.private_info&&L.private_info.common_team&&L.private_info.common_team.team?L.private_info.common_team.team.map(ie=>{const Ae=ie.avatar===null||ie.avatar===void 0?q.value:ie.avatar;return{...ie,avatar:Ae}}):[]});const G=Ve(()=>{const L=r.basicInfo;return L&&L.private_info&&L.private_info.common_team&&L.private_info.common_team.team?L.private_info.common_team.team.map(ie=>{const Ae=ie.avatar===null||ie.avatar===void 0?q.value:ie.avatar;return{id:ie.id,name:ie.name,profile_image:Ae,color:{bgColor:"#E0E0E0",textColor:"#FFFFFF"},initial:ie.name?ie.name.charAt(0).toUpperCase():""}}):[]}),ee=async()=>{try{const L=await $o.getUserProfile();r.setUserInfo(L)}catch(L){console.error("fetchUserProfile",L)}},ae=t,P=async()=>{try{g.isLoading=!0,await ee(),await j(),$(),Q(),setTimeout(()=>{ae("loaded")},3e3)}catch(L){console.error("init",L)}};let pe;sn(async()=>{await P(),pe=setInterval(()=>{h.value=new Date},6e4)}),id(()=>{pe&&clearInterval(pe)});const{getEnvVariable:ue}=Sk(),Ne=Ve(()=>Yc({type:"people_insight",config:{baseDomain:ue("BASE_URL"),ws_code:Mo(),user_id:String(R.value)||""}}).url),Me=L=>{var Ue,re;const ie=(re=(Ue=n.value)==null?void 0:Ue.$el)==null?void 0:re.closest(".arbo-instance-container");if(!ie){console.warn("Instance wrapper not found, cannot change module ID config");return}const Ae=ie.className,we=Ae.match(/arbo-instance-([^\s]+)/),ze=we?we[1]:null;if(ze){const Qe=globalThis.window.appManager.currentInstance.popupStack.find(Ye=>Ye.type===ze);Qe.config.id=L}else console.warn("Instance type not found in class names:",Ae)},Fe=Ve(()=>a.value.ws_role?[{id:a.value.ws_role.id,label:a.value.ws_role.name,color:"#A6A6A6"}]:[]);Tt(()=>r.selectedDataId,L=>{L&&setTimeout(()=>{L&&(C(),Me(String(L)))},300)},{immediate:!0,deep:!0}),Tt(()=>r.basicInfo,L=>{L&&(g.profileInfo=L,Q())},{deep:!0}),Tt(()=>g.isLoading,L=>{r.setIsLoadingProfile(L)},{deep:!0});const ce=L=>{let ie=Mo();const Ae=ue("BASE_URL");if(!ie||!Ae)return;const we=`${Ae}/${ie}/ac/acc`;L.ctrlKey||L.metaKey?window.open(we,"_blank"):window.location.href=we};return(L,ie)=>{const Ae=Ws("ArboIcon"),we=Ws("arbo-label"),ze=Ws("AvatarGroup");return de(),mt(orl,{ref_key:"headerRef",ref:n,loading:g.isLoading||!fe(R)},{avatar:_e(()=>[p.value?(de(),We("div",hrl,[Le(url,{size:121,"inicator-size":14,"indicator-color":y.value.backgroundColor,"indicator-tooltip-content":k.value},{content:_e(()=>[Le(fe(_I),{image:l.value,label:"","short-label":E.value.initialName,"is-use-short-label":!0,"bg-color":E.value.bgColor,"text-color":E.value.textColor,style:{height:"121px",width:"121px",borderRadius:"8px !important",border:"1px solid #ff5f7f8"},"disable-hover":!0,class:Xe("pi-avatar")},null,8,["image","short-label","bg-color","text-color"])]),_:1},8,["indicator-color","indicator-tooltip-content"])])):at("",!0)]),role:_e(()=>[p.value?(de(),We("div",Arl,[(de(!0),We(Gt,null,dn(Fe.value,Ue=>(de(),We("div",{key:Ue.id,class:"role-badge",style:rn({backgroundColor:Ue.color,color:"#fff"})},Et(Ue.label),5))),128)),Oe("div",prl,[Oe("div",Vrl,[Le(Ae,{name:"Globe"})]),u.value?(de(),We("span",mrl,Et(U.value)+" ("+Et(u.value)+")",1)):(de(),We("span",Url,"time (timezone) "))])])):at("",!0)]),selector:_e(()=>[p.value?(de(),mt(jnl,{key:0,"show-profile-btn":z.value},null,8,["show-profile-btn"])):at("",!0)]),professional:_e(()=>[p.value?(de(),mt(q7t,{key:0},{default:_e(()=>[v.value?(de(),mt(fe(Tr),{key:0,"prefix-icon":"",type:"tertiary","prefix-tooltip":"Add professional name",label:N.value||"Add professional name",style:{justifyContent:"flex-start",display:"flex",padding:0,width:"max-content",height:"21px"},onClick:ce},null,8,["label"])):(de(),mt(we,{key:1,label:N.value||"Professional name not provided",style:rn({color:N.value?"":"#D7D7D7"}),class:"professional-name-label"},null,8,["label","style"]))]),"copy-btn":_e(()=>[N.value?(de(),mt(C4e,{key:0,content:N.value,icon:"Copy",type:"tertiary","copy-tooltip":"Copy","coppied-tooltip":"Copied",size:24},null,8,["content"])):at("",!0)]),_:1,__:[0]})):at("",!0)]),mail:_e(()=>[p.value?(de(),mt(q7t,{key:0},{default:_e(()=>[Z.value?(de(),We("a",{key:0,type:"email",href:`mailto:${Z.value}`,class:"email-label",style:{color:"inherit"}},[Le(we,{label:Z.value},null,8,["label"])],8,frl)):(de(),mt(we,{key:1,label:"Email not provided",class:"email-label",style:{color:"#6B6B6B"}}))]),"copy-btn":_e(()=>[Z.value?(de(),mt(C4e,{key:0,content:Z.value,icon:"Copy",type:"tertiary","copy-tooltip":"Copy","coppied-tooltip":"Copied",size:24},null,8,["content"])):at("",!0)]),_:1,__:[1]})):at("",!0)]),"copy-link":_e(()=>[p.value?(de(),mt(C4e,{key:0,content:Ne.value,type:"secondary"},null,8,["content"])):at("",!0)]),teams:_e(()=>[p.value?(de(),We("div",Rrl,[G.value&&G.value.length>0?(de(),mt(ze,{key:0,options:G.value,"max-display":3},null,8,["options"])):at("",!0),G.value.length==0?(de(),We("div",Nrl,"No team")):at("",!0)])):at("",!0)]),_:1,__:[2,3,4,5,6,7]},8,["loading"])}}}),Trl=Sl(Zrl,[["__scopeId","data-v-c5bd09e5"]]),Frl=Ft({__name:"MenuTab",setup(e){const t=Dd(),{currentTab:n,basicInfo:r,userInfo:a}=eo(t),o=mDn();Gc(()=>{var m;if(Sk().getEnvVariable("IS_DETACH"))return;const U=(m=o==null?void 0:o.query)==null?void 0:m.tab;U&&p.value.findIndex(R=>R.id==U)&&(n.value=U)});const l=Ve(()=>r.value.id?r.value.id:""),{permissionList:s}=eo(t),d=fl("currentUserId"),u=Ve(()=>l.value==d),h=Ve(()=>{const U=new Set(["peopleTile_getMyTargetsUserInterface_read","target_getLeaderboardUserInterface_read"]);return s.value.some(m=>U.has(m))}),p=Ve(()=>{const U=u.value&&sessionStorage.getItem("APP_DEBUG")==="1"&&h.value;return[{id:"people-home",name:"",content:"",tooltipName:"Summary",icon:"House"},{id:"people-scenes",name:"",content:"",tooltipName:`Assigned ${MA({code:"scene"})}`,icon:"PhotoVideo"},{id:"people-charts",name:"",content:"",tooltipName:"Charts",icon:"ChartPie"},{id:"people-comments",name:"",content:"",tooltipName:"Assigned Comments",icon:"Comments"},{id:"report-tab",name:"",content:"",tooltipName:"Reports",icon:"File"},...U?[{id:"people-target",name:"",content:"",tooltipName:"Target",icon:"Award"}]:[]]});return(U,m)=>(de(),mt(fe(lYe),{tabs:p.value,position:"left",value:fe(n),onInput:m[0]||(m[0]=R=>n.value=R)},null,8,["tabs","value"]))}});var L4e,_7t;function hqn(){if(_7t)return L4e;_7t=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return L4e=e,L4e}var K4e,$7t;function Erl(){if($7t)return K4e;$7t=1;var e=typeof N3=="object"&&N3&&N3.Object===Object&&N3;return K4e=e,K4e}var P4e,e_t;function Aqn(){if(e_t)return P4e;e_t=1;var e=Erl(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return P4e=n,P4e}var q4e,t_t;function vrl(){if(t_t)return q4e;t_t=1;var e=Aqn(),t=function(){return e.Date.now()};return q4e=t,q4e}var _4e,n_t;function brl(){if(n_t)return _4e;n_t=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return _4e=t,_4e}var $4e,r_t;function Wrl(){if(r_t)return $4e;r_t=1;var e=brl(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return $4e=n,$4e}var eKe,a_t;function pqn(){if(a_t)return eKe;a_t=1;var e=Aqn(),t=e.Symbol;return eKe=t,eKe}var tKe,o_t;function yrl(){if(o_t)return tKe;o_t=1;var e=pqn(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,a=e?e.toStringTag:void 0;function o(l){var s=n.call(l,a),d=l[a];try{l[a]=void 0;var u=!0}catch{}var h=r.call(l);return u&&(s?l[a]=d:delete l[a]),h}return tKe=o,tKe}var nKe,l_t;function Mrl(){if(l_t)return nKe;l_t=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return nKe=n,nKe}var rKe,i_t;function krl(){if(i_t)return rKe;i_t=1;var e=pqn(),t=yrl(),n=Mrl(),r="[object Null]",a="[object Undefined]",o=e?e.toStringTag:void 0;function l(s){return s==null?s===void 0?a:r:o&&o in Object(s)?t(s):n(s)}return rKe=l,rKe}var aKe,s_t;function Srl(){if(s_t)return aKe;s_t=1;function e(t){return t!=null&&typeof t=="object"}return aKe=e,aKe}var oKe,d_t;function grl(){if(d_t)return oKe;d_t=1;var e=krl(),t=Srl(),n="[object Symbol]";function r(a){return typeof a=="symbol"||t(a)&&e(a)==n}return oKe=r,oKe}var lKe,c_t;function Qrl(){if(c_t)return lKe;c_t=1;var e=Wrl(),t=hqn(),n=grl(),r=NaN,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;function d(u){if(typeof u=="number")return u;if(n(u))return r;if(t(u)){var h=typeof u.valueOf=="function"?u.valueOf():u;u=t(h)?h+"":h}if(typeof u!="string")return u===0?u:+u;u=e(u);var p=o.test(u);return p||l.test(u)?s(u.slice(2),p?2:8):a.test(u)?r:+u}return lKe=d,lKe}var iKe,u_t;function zrl(){if(u_t)return iKe;u_t=1;var e=hqn(),t=vrl(),n=Qrl(),r="Expected a function",a=Math.max,o=Math.min;function l(s,d,u){var h,p,U,m,R,N,E=0,v=!1,y=!1,k=!0;if(typeof s!="function")throw new TypeError(r);d=n(d)||0,e(u)&&(v=!!u.leading,y="maxWait"in u,U=y?a(n(u.maxWait)||0,d):U,k="trailing"in u?!!u.trailing:k);function Z(G){var ee=h,ae=p;return h=p=void 0,E=G,m=s.apply(ae,ee),m}function Q(G){return E=G,R=setTimeout(C,d),v?Z(G):m}function g(G){var ee=G-N,ae=G-E,P=d-ee;return y?o(P,U-ae):P}function z(G){var ee=G-N,ae=G-E;return N===void 0||ee>=d||ee<0||y&&ae>=U}function C(){var G=t();if(z(G))return j(G);R=setTimeout(C,g(G))}function j(G){return R=void 0,k&&h?Z(G):(h=p=void 0,m)}function X(){R!==void 0&&clearTimeout(R),E=0,h=N=p=R=void 0}function q(){return R===void 0?m:j(t())}function $(){var G=t(),ee=z(G);if(h=arguments,p=this,N=G,ee){if(R===void 0)return Q(N);if(y)return clearTimeout(R),R=setTimeout(C,d),Z(N)}return R===void 0&&(R=setTimeout(C,d)),m}return $.cancel=X,$.flush=q,$}return iKe=l,iKe}var wrl=zrl();const oK=Wmt(wrl),Drl={class:"main-content people-comment"},Orl={class:"main-content__header"},xrl={class:"main-content__body--section"},Yrl={class:"main-content__footer"},Brl={class:"grid-footer"},Jrl=Ft({__name:"PeopleComment",setup(e){const t=Dd(),n=tr({commentCount:0,currentPage:1,perPage:10,pageMeta:{},needRefresh:!1,searchKeywords:""}),r=oK(async Z=>{n.searchKeywords=Z},500),a=Re(!1),o=Re(null),l=()=>{o.value&&(n.commentBodyHeight=o.value.clientHeight,n.commentBodyWidth=o.value.clientWidth*.85)},s=async(Z,Q)=>{let g;try{let z={include:che};const C={page:n.currentPage,perPage:n.perPage},j={id:Z,...C,include:z.include,searchText:Q.comment_raw_like||n.searchKeywords};(Q.after_id||Q.before_id)&&delete j.page,g=await $o.getUnresolveAssignedComment(j,{after_id:Q.before_id})}catch(z){console.error("fetchComment",z)}return g},d=()=>{gt(()=>{y.value.people_comment=!0})},u=async Z=>{Z.after_id?n.currentPage++:n.currentPage=1;const Q=await s(t.selectedDataId,{...Z,comment_raw_like:n.searchKeywords});return n.commentCount=Q.meta.total,n.pageMeta=Q.meta,!(Z!=null&&Z.before_id)&&!(Z!=null&&Z.after_id)&&(p.value=Q.meta["X-Tsr-signature"]),n.isLoading=!1,Q},h=async()=>{let Z={include:che};const Q={id:t.selectedDataId,include:Z.include},g=await $o.getUnresolveAssignedComment(Q,kH);return{signature:g==null?void 0:g.meta["X-Tsr-signature"]}},p=Re("");XH("people_comment",h,p);const U=Ve(()=>a.value===!0?"#02C39A":""),m=Ve(()=>a.value===!0?"Comment resolved":""),R=oK(async(Z=!1)=>{Z&&(await E(),o.value&&(o.value.scrollTop=0),n.isFetching=!1)},500);id(()=>{window.removeEventListener("resize",l)});const N=Re(null);function E(){var Z;(Z=N.value)==null||Z.resetList()}const v=CR(),{refreshState:y}=eo(v);async function k(){await R(!0),gt(()=>{y.value={...y.value,people_comment:!1}})}return Tt(()=>n.searchKeywords,Z=>{Z.length>0&&(n.currentPage=1),R(!0)},{immediate:!0}),Tt(()=>t.selectedDataId,Z=>{Z&&(gt(E),n.isFetching=!1)},{deep:!0}),(Z,Q)=>{var g;return de(),We("div",Drl,[Oe("div",Orl,[Le(UAe,{class:"w-full",title:"Assigned comments","count-btn":{count:n.commentCount||0,icon:"Comments",countTooltip:"Comments"},"show-refresh-btn":!0,"show-refresh-label":(g=fe(y))==null?void 0:g.people_comment,loading:n.isLoading,onRefresh:k},{search:_e(()=>[Le(fe(NI),{modelValue:n.searchKeywords,"onUpdate:modelValue":[Q[0]||(Q[0]=z=>n.searchKeywords=z),fe(r)],"auto-search":!0,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["count-btn","show-refresh-label","loading"])]),Oe("div",{ref_key:"commentBodyRef",ref:o,class:Xe(["main-content__body",{"no-overflow":n.isLoading}])},[Oe("div",xrl,[Le(g1t,{ref_key:"commentListRef",ref:N,"load-more":!0,"get-data":u,onListDataChange:d},{empty:_e(()=>[n.searchKeywords.length==0?(de(),mt(VW,{key:0,"visual-name":"NoAssignedComment",class:"no-data",label:"No information available.",height:250})):(de(),mt(VW,{key:1,"visual-name":"NoData2",class:"no-data",label:"No results. Try another search.",height:250}))]),_:1},512),Q[1]||(Q[1]=It()),a.value?(de(),mt(fe(oYe),{key:0,content:m.value,"bg-color":U.value},null,8,["content","bg-color"])):at("",!0)])],2),Oe("div",Yrl,[Oe("div",Brl,[Le(fe(cl),{name:"InfoCircle"}),Q[2]||(Q[2]=It()),Le(fe(tp),{label:`The list above only shows comments from ${fe(MA)({code:"scene"})} that you have access to.`},null,8,["label"])])])])}}}),jrl=Sl(Jrl,[["__scopeId","data-v-5c2ce618"]]),Grl=Ft({__name:"SectionLayout",props:{layout:{}},setup(e){const t=uc(),n=a=>t[a]!==void 0,r=e;return(a,o)=>{var l;return de(),We("div",{class:Xe(["layout-section",{"no-footer":!n("footer")}]),style:rn({"--layout":r.layout?`${r.layout.header}px ${r.layout.content}px ${r.layout.footer}px`:void 0})},[St(Oe("div",{class:"header",style:rn({height:(l=a.layout)!=null&&l.footer?a.layout.header+"px":void 0})},[Rt(a.$slots,"header",{},()=>[o[0]||(o[0]=It(" header ",-1))],!0)],4),[[Eo,n("header")]]),Rt(a.$slots,"content",{},()=>{var s,d;return[St(Oe("div",{class:"body",style:rn({height:(s=a.layout)!=null&&s.footer?a.layout.body+"px":void 0})},[Rt(a.$slots,"body",{},()=>[o[1]||(o[1]=It("body",-1))],!0)],4),[[Eo,n("body")]]),St(Oe("div",{class:"footer",style:rn({height:(d=a.layout)!=null&&d.footer?a.layout.footer+"px":void 0})},[Rt(a.$slots,"footer",{},()=>[o[2]||(o[2]=It(" footer ",-1))],!0)],4),[[Eo,n("footer")]])]},!0)],6)}}}),h_t=Sl(Grl,[["__scopeId","data-v-88790ec4"]]),Irl={class:"treemap-preference"},Xrl={class:"treemap-preference__main"},Hrl=Ft({__name:"TreeMapPreferencePopUp",emits:["clickShowPercentange","clickshowArchieve"],setup(e,{emit:t}){const n=tr({isShowPercentange:!1,isShowArchive:!1}),r=Ve(()=>[{header:"Treemap preferences",content:"",isLocal:!0}]),a=t;function o(s){n.isShowPercentange=s,a("clickShowPercentange",n.isShowPercentange)}function l(s){n.isShowArchive=s,a("clickshowArchieve",n.isShowArchive)}return(s,d)=>(de(),mt(fe(sYe),{sections:r.value},{"content-section":_e(()=>[Oe("div",Irl,[Oe("div",Xrl,[Le(fe(rrt),{value:n.isShowPercentange,"prefix-in-active-label":"Display values as percentage","prefix-active-label":"Display values as percentage","suffix-in-active-label":"","suffix-active-label":"","onUpdate:value":o},null,8,["value"]),d[0]||(d[0]=It()),Le(fe(rrt),{value:n.isShowArchive,"prefix-in-active-label":"Show archived","prefix-active-label":"Show archived","suffix-in-active-label":"","suffix-active-label":"","onUpdate:value":l},null,8,["value"])])])]),_:1},8,["sections"]))}}),Crl=Sl(Hrl,[["__scopeId","data-v-540e8fcc"]]),Lrl=Ft({__name:"PeopleSceneList",emits:["loaded"],setup(e,{expose:t,emit:n}){const r=Dd(),{sceneDetailFetch:a}=eo(r),o=HYe(),{privateSceneCount:l}=eo(o),s=Ve(()=>a.value.searchScene),d=Ve(()=>({page:1,perPage:10,id:r.selectedDataId,selectedId:r.sceneDetailFetch.selectedSceneId,templateFlowType:r.sceneDetailFetch.status_type_in,includeArchived:r.sceneDetailFetch.include_archived,fetchType:r.sceneDetailFetch.fetchType,sortByType:r.sceneDetailFetch.sceneSortType,sortOrder:r.sceneDetailFetch.sceneOrder,searchText:r.sceneDetailFetch.searchScene,previousSelectedSceneId:r.sceneDetailFetch.previousSelectedSceneId})),{selectedDataId:u}=eo(r),h=Ve(()=>!!u.value),p=Re(),{height:U}=j5(p),m=Ve(()=>U.value),R=n,N=Re();t({resetList:async()=>{var y;await((y=N.value)==null?void 0:y.resetList())},hideCalendar:()=>{var y;(y=N.value)==null||y.hideCalendars()}});const E=Re("");return XH("assigned_scene",async()=>({signature:(await $o.getCommonItems({...d.value},kH)).meta["X-Tsr-signature"]}),E),(y,k)=>(de(),We("div",{ref_key:"peopleSceneListRef",ref:p,class:"people-scene-list-wrapper"},[Le(cqn,{ref_key:"sceneListRef",ref:N,ready:h.value,"get-data-function":fe($o).getCommonItems,class:"people-scene-tile-list","filter-parameter":d.value,height:m.value,onLoaded:k[0]||(k[0]=Z=>R("loaded",!0))},{empty:_e(()=>[fe(l)>0?(de(),mt(VW,{key:0,"visual-name":"PrivateScene",label:`Looks like all ${fe(MA)({code:"scene"})} are private.`,height:200},null,8,["label"])):s.value.length==0?(de(),mt(VW,{key:1,"visual-name":"NoData2",label:"No data available.",height:200})):(de(),mt(VW,{key:2,"visual-name":"NoData2",label:"No results. Try another search.",height:200}))]),_:1},8,["ready","get-data-function","filter-parameter","height"])],512))}}),Krl=Sl(Lrl,[["__scopeId","data-v-9fc07f67"]]),Prl={class:"scene-order"},qrl={class:"scene-order__main"},_rl={class:"scene-order__main--type"},$rl=Ft({__name:"SceneOrderPopUp",props:{isEnableSort:{type:Boolean,default:!0},isReset:{type:Boolean,default:!1}},emits:["onSortType","resetCompleted"],setup(e,{emit:t}){const n=e,r=Dd(),a=tr({selectedType:""}),o=Re(!1),l=Ve(()=>n.isReset),s=Ve(()=>[{header:`${MA({code:"scene"})} order`,content:"",isLocal:!0}]),d=Ve(()=>[{id:1,text:"Default",type:"id"},{id:2,text:"Due Date",type:"due_date"},{id:3,text:"Start Date",type:"start_date"},{id:4,text:"Status",type:"template_flow_status.position"}]),u=Ve(()=>o.value?"Sort ascending":"Sort descending"),h=t;function p(R){a.selectedType=R,h("onSortType",R)}function U(){o.value=!o.value,n.isEnableSort&&r.setSceneDetailFetch({sceneOrder:o.value?"desc":"asc"})}const m=()=>{o.value=!1,a.selectedType="id"};return sn(()=>{a.selectedType="id"}),Tt(l,R=>{R===!0&&(m(),h("resetCompleted",!0))},{immediate:!0}),(R,N)=>(de(),mt(fe(sYe),{sections:s.value},{"content-section":_e(()=>[Oe("div",Prl,[Oe("div",qrl,[Oe("div",_rl,[Le(fe(lRe),{modelValue:a.selectedType,"onUpdate:modelValue":N[0]||(N[0]=E=>a.selectedType=E),"is-dark":!0,"value-key":"type","label-key":"text",options:d.value,"select-limit":1,"allow-search":!1,"disable-un-select-single-mode":!0,onUpdateValue:p},null,8,["modelValue","options"])]),Oe("div",{class:"scene-order__main--sort",onClick:Ct(U,["prevent"])},[Le(fe(ld),{content:u.value,delay:[300,0],"hide-on-click":!0},{default:_e(()=>[St(Le(fe(Tr),{class:"sort-down",type:"secondary","suffix-icon":"SortDown",label:""},null,512),[[Eo,o.value]]),N[1]||(N[1]=It()),St(Le(fe(Tr),{class:"sort-up",type:"secondary","suffix-icon":"SortUp",label:""},null,512),[[Eo,!o.value]])]),_:1,__:[1]},8,["content"])])])])]),_:1},8,["sections"]))}}),eal=Sl($rl,[["__scopeId","data-v-4a57d9ae"]]),tal={class:"pop-up-list__section__header--text"},nal={class:"pop-up-list__item--value"},ral=Ft({__name:"SharedPopUpList",props:{othersItem:{default:()=>[]},isEnableLoadMore:{type:Boolean,default:!1},perPage:{default:5}},emits:["clicked","load-more"],setup(e,{emit:t}){const n=e,r=Ve(()=>[{header:"Others",content:"",isLocal:!1}]),a=t,o=()=>{a("clicked",!0)};function l(){a("load-more")}return(s,d)=>(de(),We("div",{class:"pop-up-list",onClick:o},[Le(fe(sYe),{sections:r.value,onClick:d[0]||(d[0]=Ct(()=>{},["stop"]))},{"header-section":_e(({data:u})=>[Oe("div",tal,Et(u.header),1),Le(fe(Tr),{class:"pop-up-list__section__header--btn",label:"","prefix-icon":"Xmark",type:"tertiary",onClick:Ct(o,["prevent"])})]),"content-section":_e(({})=>[Le(fe(Oge),{"is-enable":s.isEnableLoadMore,"loader-class":"mini",onLoadMore:l},{default:_e(()=>[(de(!0),We(Gt,null,dn(n.othersItem,(u,h)=>(de(),We("div",{key:h,class:"pop-up-list__item"},[Le(fe(tp),{class:"pop-up-list__item--name",label:u.name},null,8,["label"]),Oe("div",nal,Et(u.items_count)+" | "+Et(u.percent_by_items_count.toFixed(2))+"% ",1)]))),128))]),_:1},8,["is-enable"])]),_:1,__:[1]},8,["sections"])]))}}),aal=Sl(ral,[["__scopeId","data-v-7e453f9e"]]);function Kit(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 oal(e){if(Array.isArray(e))return Kit(e)}function A_t(e,t,n,r,a,o,l){try{var s=e[o](l),d=s.value}catch(u){return void n(u)}s.done?t(d):Promise.resolve(d).then(r,a)}function tI(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function l(d){A_t(o,r,a,l,s,"next",d)}function s(d){A_t(o,r,a,l,s,"throw",d)}l(void 0)})}}function lal(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ial(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,Vqn(r.key),r)}}function sal(e,t,n){return t&&ial(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pit(e,t,n){return(t=Vqn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dal(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cal(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1194
1194
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p_t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function sKe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?p_t(Object(n),!0).forEach(function(r){Pit(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p_t(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zR(){zR=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=typeof Symbol=="function"?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function d(X,q,$,G){return Object.defineProperty(X,q,{value:$,enumerable:!G,configurable:!G,writable:!G})}try{d({},"")}catch{d=function(q,$,G){return q[$]=G}}function u(X,q,$,G){var ee=q&&q.prototype instanceof U?q:U,ae=Object.create(ee.prototype);return d(ae,"_invoke",function(P,pe,ue){var Ne=1;return function(Me,Fe){if(Ne===3)throw Error("Generator is already running");if(Ne===4){if(Me==="throw")throw Fe;return{value:e,done:!0}}for(ue.method=Me,ue.arg=Fe;;){var ce=ue.delegate;if(ce){var L=Q(ce,ue);if(L){if(L===p)continue;return L}}if(ue.method==="next")ue.sent=ue._sent=ue.arg;else if(ue.method==="throw"){if(Ne===1)throw Ne=4,ue.arg;ue.dispatchException(ue.arg)}else ue.method==="return"&&ue.abrupt("return",ue.arg);Ne=3;var ie=h(P,pe,ue);if(ie.type==="normal"){if(Ne=ue.done?4:2,ie.arg===p)continue;return{value:ie.arg,done:ue.done}}ie.type==="throw"&&(Ne=4,ue.method="throw",ue.arg=ie.arg)}}}(X,$,new C(G||[])),!0),ae}function h(X,q,$){try{return{type:"normal",arg:X.call(q,$)}}catch(G){return{type:"throw",arg:G}}}t.wrap=u;var p={};function U(){}function m(){}function R(){}var N={};d(N,o,function(){return this});var E=Object.getPrototypeOf,v=E&&E(E(j([])));v&&v!==n&&r.call(v,o)&&(N=v);var y=R.prototype=U.prototype=Object.create(N);function k(X){["next","throw","return"].forEach(function(q){d(X,q,function($){return this._invoke(q,$)})})}function Z(X,q){function $(ee,ae,P,pe){var ue=h(X[ee],X,ae);if(ue.type!=="throw"){var Ne=ue.arg,Me=Ne.value;return Me&&typeof Me=="object"&&r.call(Me,"__await")?q.resolve(Me.__await).then(function(Fe){$("next",Fe,P,pe)},function(Fe){$("throw",Fe,P,pe)}):q.resolve(Me).then(function(Fe){Ne.value=Fe,P(Ne)},function(Fe){return $("throw",Fe,P,pe)})}pe(ue.arg)}var G;d(this,"_invoke",function(ee,ae){function P(){return new q(function(pe,ue){$(ee,ae,pe,ue)})}return G=G?G.then(P,P):P()},!0)}function Q(X,q){var $=q.method,G=X.i[$];if(G===e)return q.delegate=null,$==="throw"&&X.i.return&&(q.method="return",q.arg=e,Q(X,q),q.method==="throw")||$!=="return"&&(q.method="throw",q.arg=new TypeError("The iterator does not provide a '"+$+"' method")),p;var ee=h(G,X.i,q.arg);if(ee.type==="throw")return q.method="throw",q.arg=ee.arg,q.delegate=null,p;var ae=ee.arg;return ae?ae.done?(q[X.r]=ae.value,q.next=X.n,q.method!=="return"&&(q.method="next",q.arg=e),q.delegate=null,p):ae:(q.method="throw",q.arg=new TypeError("iterator result is not an object"),q.delegate=null,p)}function g(X){this.tryEntries.push(X)}function z(X){var q=X[4]||{};q.type="normal",q.arg=e,X[4]=q}function C(X){this.tryEntries=[[-1]],X.forEach(g,this),this.reset(!0)}function j(X){if(X!=null){var q=X[o];if(q)return q.call(X);if(typeof X.next=="function")return X;if(!isNaN(X.length)){var $=-1,G=function ee(){for(;++$<X.length;)if(r.call(X,$))return ee.value=X[$],ee.done=!1,ee;return ee.value=e,ee.done=!0,ee};return G.next=G}}throw new TypeError(typeof X+" is not iterable")}return m.prototype=R,d(y,"constructor",R),d(R,"constructor",m),m.displayName=d(R,s,"GeneratorFunction"),t.isGeneratorFunction=function(X){var q=typeof X=="function"&&X.constructor;return!!q&&(q===m||(q.displayName||q.name)==="GeneratorFunction")},t.mark=function(X){return Object.setPrototypeOf?Object.setPrototypeOf(X,R):(X.__proto__=R,d(X,s,"GeneratorFunction")),X.prototype=Object.create(y),X},t.awrap=function(X){return{__await:X}},k(Z.prototype),d(Z.prototype,l,function(){return this}),t.AsyncIterator=Z,t.async=function(X,q,$,G,ee){ee===void 0&&(ee=Promise);var ae=new Z(u(X,q,$,G),ee);return t.isGeneratorFunction(q)?ae:ae.next().then(function(P){return P.done?P.value:ae.next()})},k(y),d(y,s,"Generator"),d(y,o,function(){return this}),d(y,"toString",function(){return"[object Generator]"}),t.keys=function(X){var q=Object(X),$=[];for(var G in q)$.unshift(G);return function ee(){for(;$.length;)if((G=$.pop())in q)return ee.value=G,ee.done=!1,ee;return ee.done=!0,ee}},t.values=j,C.prototype={constructor:C,reset:function(X){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(z),!X)for(var q in this)q.charAt(0)==="t"&&r.call(this,q)&&!isNaN(+q.slice(1))&&(this[q]=e)},stop:function(){this.done=!0;var X=this.tryEntries[0][4];if(X.type==="throw")throw X.arg;return this.rval},dispatchException:function(X){if(this.done)throw X;var q=this;function $(Ne){ae.type="throw",ae.arg=X,q.next=Ne}for(var G=q.tryEntries.length-1;G>=0;--G){var ee=this.tryEntries[G],ae=ee[4],P=this.prev,pe=ee[1],ue=ee[2];if(ee[0]===-1)return $("end"),!1;if(!pe&&!ue)throw Error("try statement without catch or finally");if(ee[0]!=null&&ee[0]<=P){if(P<pe)return this.method="next",this.arg=e,$(pe),!0;if(P<ue)return $(ue),!1}}},abrupt:function(X,q){for(var $=this.tryEntries.length-1;$>=0;--$){var G=this.tryEntries[$];if(G[0]>-1&&G[0]<=this.prev&&this.prev<G[2]){var ee=G;break}}ee&&(X==="break"||X==="continue")&&ee[0]<=q&&q<=ee[2]&&(ee=null);var ae=ee?ee[4]:{};return ae.type=X,ae.arg=q,ee?(this.method="next",this.next=ee[2],p):this.complete(ae)},complete:function(X,q){if(X.type==="throw")throw X.arg;return X.type==="break"||X.type==="continue"?this.next=X.arg:X.type==="return"?(this.rval=this.arg=X.arg,this.method="return",this.next="end"):X.type==="normal"&&q&&(this.next=q),p},finish:function(X){for(var q=this.tryEntries.length-1;q>=0;--q){var $=this.tryEntries[q];if($[2]===X)return this.complete($[4],$[3]),z($),p}},catch:function(X){for(var q=this.tryEntries.length-1;q>=0;--q){var $=this.tryEntries[q];if($[0]===X){var G=$[4];if(G.type==="throw"){var ee=G.arg;z($)}return ee}}throw Error("illegal catch attempt")},delegateYield:function(X,q,$){return this.delegate={i:j(X),r:q,n:$},this.method==="next"&&(this.arg=e),p}},t}function ual(e){return oal(e)||dal(e)||Aal(e)||cal()}function hal(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 String(e)}function Vqn(e){var t=hal(e,"string");return typeof t=="symbol"?t:t+""}function qit(e){"@babel/helpers - typeof";return qit=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},qit(e)}function Aal(e,t){if(e){if(typeof e=="string")return Kit(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)?Kit(e,t):void 0}}var _it=function(e,t){return _it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},_it(e,t)};function mqn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");_it(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var twe=function(){return twe=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},twe.apply(this,arguments)};function Uqn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function DJe(e,t,n,r){var a=arguments.length,o=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(l=e[s])&&(o=(a<3?l(o):a>3?l(t,n,o):l(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function fqn(e,t){return function(n,r){t(n,r,e)}}function Rqn(e,t,n,r,a,o){function l(v){if(v!==void 0&&typeof v!="function")throw new TypeError("Function expected");return v}for(var s=r.kind,d=s==="getter"?"get":s==="setter"?"set":"value",u=!t&&e?r.static?e:e.prototype:null,h=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),p,U=!1,m=n.length-1;m>=0;m--){var R={};for(var N in r)R[N]=N==="access"?{}:r[N];for(var N in r.access)R.access[N]=r.access[N];R.addInitializer=function(v){if(U)throw new TypeError("Cannot add initializers after decoration has completed");o.push(l(v||null))};var E=(0,n[m])(s==="accessor"?{get:h.get,set:h.set}:h[d],R);if(s==="accessor"){if(E===void 0)continue;if(E===null||typeof E!="object")throw new TypeError("Object expected");(p=l(E.get))&&(h.get=p),(p=l(E.set))&&(h.set=p),(p=l(E.init))&&a.unshift(p)}else(p=l(E))&&(s==="field"?a.unshift(p):h[d]=p)}u&&Object.defineProperty(u,r.name,h),U=!0}function Nqn(e,t,n){for(var r=arguments.length>2,a=0;a<t.length;a++)n=r?t[a].call(e,n):t[a].call(e);return r?n:void 0}function Zqn(e){return typeof e=="symbol"?e:"".concat(e)}function Tqn(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function Fqn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Eqn(e,t,n,r){function a(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function s(h){try{u(r.next(h))}catch(p){l(p)}}function d(h){try{u(r.throw(h))}catch(p){l(p)}}function u(h){h.done?o(h.value):a(h.value).then(s,d)}u((r=r.apply(e,t||[])).next())})}function vqn(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=s(0),l.throw=s(1),l.return=s(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(u){return function(h){return d([u,h])}}function d(u){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(n=0)),n;)try{if(r=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(h){u=[6,h],a=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var OJe=Object.create?function(e,t,n,r){r===void 0&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]};function bqn(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&OJe(t,e,n)}function nwe(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Q1t(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,o=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(s){l={error:s}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o}function Wqn(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Q1t(arguments[t]));return e}function yqn(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),a=0,t=0;t<n;t++)for(var o=arguments[t],l=0,s=o.length;l<s;l++,a++)r[a]=o[l];return r}function Mqn(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function D8(e){return this instanceof D8?(this.v=e,this):new D8(e)}function kqn(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),a,o=[];return a=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",l),a[Symbol.asyncIterator]=function(){return this},a;function l(m){return function(R){return Promise.resolve(R).then(m,p)}}function s(m,R){r[m]&&(a[m]=function(N){return new Promise(function(E,v){o.push([m,N,E,v])>1||d(m,N)})},R&&(a[m]=R(a[m])))}function d(m,R){try{u(r[m](R))}catch(N){U(o[0][3],N)}}function u(m){m.value instanceof D8?Promise.resolve(m.value.v).then(h,p):U(o[0][2],m)}function h(m){d("next",m)}function p(m){d("throw",m)}function U(m,R){m(R),o.shift(),o.length&&d(o[0][0],o[0][1])}}function Sqn(e){var t,n;return t={},r("next"),r("throw",function(a){throw a}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(a,o){t[a]=e[a]?function(l){return(n=!n)?{value:D8(e[a](l)),done:!1}:o?o(l):l}:o}}function gqn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof nwe=="function"?nwe(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(l){return new Promise(function(s,d){l=e[o](l),a(s,d,l.done,l.value)})}}function a(o,l,s,d){Promise.resolve(d).then(function(u){o({value:u,done:s})},l)}}function Qqn(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var pal=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},$it=function(e){return $it=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},$it(e)};function zqn(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=$it(e),r=0;r<n.length;r++)n[r]!=="default"&&OJe(t,e,n[r]);return pal(t,e),t}function wqn(e){return e&&e.__esModule?e:{default:e}}function Dqn(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function Oqn(e,t,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(e,n):a?a.value=n:t.set(e,n),n}function xqn(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function Yqn(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,a;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(a=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");a&&(r=function(){try{a.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var Val=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function Bqn(e){function t(o){e.error=e.hasError?new Val(o,e.error,"An error was suppressed during disposal."):o,e.hasError=!0}var n,r=0;function a(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(a);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(a,function(l){return t(l),a()})}else r|=1}catch(l){t(l)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return a()}function Jqn(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,r,a,o,l){return r?t?".jsx":".js":a&&(!o||!l)?n:a+o+"."+l.toLowerCase()+"js"}):e}var mal={__extends:mqn,__assign:twe,__rest:Uqn,__decorate:DJe,__param:fqn,__esDecorate:Rqn,__runInitializers:Nqn,__propKey:Zqn,__setFunctionName:Tqn,__metadata:Fqn,__awaiter:Eqn,__generator:vqn,__createBinding:OJe,__exportStar:bqn,__values:nwe,__read:Q1t,__spread:Wqn,__spreadArrays:yqn,__spreadArray:Mqn,__await:D8,__asyncGenerator:kqn,__asyncDelegator:Sqn,__asyncValues:gqn,__makeTemplateObject:Qqn,__importStar:zqn,__importDefault:wqn,__classPrivateFieldGet:Dqn,__classPrivateFieldSet:Oqn,__classPrivateFieldIn:xqn,__addDisposableResource:Yqn,__disposeResources:Bqn,__rewriteRelativeImportExtension:Jqn},Ual=Object.freeze({__proto__:null,__addDisposableResource:Yqn,get __assign(){return twe},__asyncDelegator:Sqn,__asyncGenerator:kqn,__asyncValues:gqn,__await:D8,__awaiter:Eqn,__classPrivateFieldGet:Dqn,__classPrivateFieldIn:xqn,__classPrivateFieldSet:Oqn,__createBinding:OJe,__decorate:DJe,__disposeResources:Bqn,__esDecorate:Rqn,__exportStar:bqn,__extends:mqn,__generator:vqn,__importDefault:wqn,__importStar:zqn,__makeTemplateObject:Qqn,__metadata:Fqn,__param:fqn,__propKey:Zqn,__read:Q1t,__rest:Uqn,__rewriteRelativeImportExtension:Jqn,__runInitializers:Nqn,__setFunctionName:Tqn,__spread:Wqn,__spreadArray:Mqn,__spreadArrays:yqn,__values:nwe,default:mal}),Ib,jqn=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});jqn.decode();var Kve=null;function Lke(){return(Kve===null||Kve.buffer!==Ib.memory.buffer)&&(Kve=new Uint8Array(Ib.memory.buffer)),Kve}function dKe(e,t){return jqn.decode(Lke().subarray(e,e+t))}var A3=new Array(32).fill(void 0);A3.push(void 0,null,!0,!1);var fAe=A3.length;function vM(e){fAe===A3.length&&A3.push(A3.length+1);var t=fAe;return fAe=A3[t],A3[t]=e,t}function Eb(e){return A3[e]}function fal(e){e<36||(A3[e]=fAe,fAe=e)}function Gqn(e){var t=Eb(e);return fal(e),t}function est(e){var t=qit(e);if(t=="number"||t=="boolean"||e==null)return"".concat(e);if(t=="string")return'"'.concat(e,'"');if(t=="symbol"){var n=e.description;return n==null?"Symbol":"Symbol(".concat(n,")")}if(t=="function"){var r=e.name;return typeof r=="string"&&r.length>0?"Function(".concat(r,")"):"Function"}if(Array.isArray(e)){var a=e.length,o="[";a>0&&(o+=est(e[0]));for(var l=1;l<a;l++)o+=", "+est(e[l]);return o+="]",o}var s=/\[object ([^\]]+)\]/.exec(toString.call(e)),d;if(s.length>1)d=s[1];else return toString.call(e);if(d=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?"".concat(e.name,": ").concat(e.message,`
1195
1195
  `).concat(e.stack):d}var tst=0,Kke=new TextEncoder("utf-8"),Ral=typeof Kke.encodeInto=="function"?function(e,t){return Kke.encodeInto(e,t)}:function(e,t){var n=Kke.encode(e);return t.set(n),{read:e.length,written:n.length}};function Nal(e,t,n){if(n===void 0){var r=Kke.encode(e),a=t(r.length);return Lke().subarray(a,a+r.length).set(r),tst=r.length,a}for(var o=e.length,l=t(o),s=Lke(),d=0;d<o;d++){var u=e.charCodeAt(d);if(u>127)break;s[l+d]=u}if(d!==o){d!==0&&(e=e.slice(d)),l=n(l,o,o=d+e.length*3);var h=Lke().subarray(l+d,l+o),p=Ral(e,h);d+=p.written}return tst=d,l}var Pve=null;function V_t(){return(Pve===null||Pve.buffer!==Ib.memory.buffer)&&(Pve=new Int32Array(Ib.memory.buffer)),Pve}function Zal(e,t){var n=Ib.create_tree_map(vM(e),vM(t));return Gqn(n)}function Tal(e,t){try{return e.apply(this,t)}catch(n){Ib.__wbindgen_exn_store(vM(n))}}function Fal(e,t){return nst.apply(this,arguments)}function nst(){return nst=tI(zR().mark(function e(t,n){var r,a;return zR().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!(typeof Response=="function"&&t instanceof Response)){l.next=23;break}if(typeof WebAssembly.instantiateStreaming!="function"){l.next=15;break}return l.prev=2,l.next=5,WebAssembly.instantiateStreaming(t,n);case 5:return l.abrupt("return",l.sent);case 8:if(l.prev=8,l.t0=l.catch(2),t.headers.get("Content-Type")=="application/wasm"){l.next=14;break}console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",l.t0),l.next=15;break;case 14:throw l.t0;case 15:return l.next=17,t.arrayBuffer();case 17:return r=l.sent,l.next=20,WebAssembly.instantiate(r,n);case 20:return l.abrupt("return",l.sent);case 23:return l.next=25,WebAssembly.instantiate(t,n);case 25:if(a=l.sent,!(a instanceof WebAssembly.Instance)){l.next=30;break}return l.abrupt("return",{instance:a,module:t});case 30:return l.abrupt("return",a);case 31:case"end":return l.stop()}},e,null,[[2,8]])})),nst.apply(this,arguments)}function Iqn(e){return rst.apply(this,arguments)}function rst(){return rst=tI(zR().mark(function e(t){var n,r,a,o;return zR().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return n={},n.wbg={},n.wbg.__wbindgen_bigint_new=function(d,u){var h=BigInt(dKe(d,u));return vM(h)},n.wbg.__wbindgen_number_new=function(d){var u=d;return vM(u)},n.wbg.__wbindgen_object_drop_ref=function(d){Gqn(d)},n.wbg.__wbindgen_string_new=function(d,u){var h=dKe(d,u);return vM(h)},n.wbg.__wbg_new_d3138911a89329b0=function(){var d=new Object;return vM(d)},n.wbg.__wbg_buffer_5e74a88a1424a2e0=function(d){var u=Eb(d).buffer;return vM(u)},n.wbg.__wbg_new_a87ea795d2f35204=function(d){var u=new Float64Array(Eb(d));return vM(u)},n.wbg.__wbg_set_ec7db7161d6ccdda=function(d,u,h){Eb(d).set(Eb(u),h>>>0)},n.wbg.__wbg_length_f3a04538c65332ac=function(d){var u=Eb(d).length;return u},n.wbg.__wbg_getindex_49d1662c53e5dc85=function(d,u){var h=Eb(d)[u>>>0];return h},n.wbg.__wbg_set_c42875065132a932=function(){return Tal(function(d,u,h){var p=Reflect.set(Eb(d),Eb(u),Eb(h));return p},arguments)},n.wbg.__wbindgen_debug_string=function(d,u){var h=est(Eb(u)),p=Nal(h,Ib.__wbindgen_malloc,Ib.__wbindgen_realloc),U=tst;V_t()[d/4+1]=U,V_t()[d/4+0]=p},n.wbg.__wbindgen_throw=function(d,u){throw new Error(dKe(d,u))},n.wbg.__wbindgen_memory=function(){var d=Ib.memory;return vM(d)},(typeof t=="string"||typeof Request=="function"&&t instanceof Request||typeof URL=="function"&&t instanceof URL)&&(t=fetch(t)),s.t0=Fal,s.next=20,t;case 20:return s.t1=s.sent,s.t2=n,s.next=24,(0,s.t0)(s.t1,s.t2);case 24:return r=s.sent,a=r.instance,o=r.module,Ib=a.exports,Iqn.__wbindgen_wasm_module=o,s.abrupt("return",Ib);case 30:case"end":return s.stop()}},e)})),rst.apply(this,arguments)}var qve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Eal(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function val(e){if(Object.prototype.hasOwnProperty.call(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 a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var cKe={},uKe,m_t;function bal(){if(m_t)return uKe;m_t=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return uKe=t,uKe}var hKe,U_t;function Wal(){if(U_t)return hKe;U_t=1;var e=bal(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return hKe=n,hKe}var AKe,f_t;function XY(){if(f_t)return AKe;f_t=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return AKe=e,AKe}var pKe,R_t;function Xqn(){if(R_t)return pKe;R_t=1;var e=typeof qve=="object"&&qve&&qve.Object===Object&&qve;return pKe=e,pKe}var VKe,N_t;function kz(){if(N_t)return VKe;N_t=1;var e=Xqn(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return VKe=n,VKe}var mKe,Z_t;function Hqn(){if(Z_t)return mKe;Z_t=1;var e=kz(),t=e.Symbol;return mKe=t,mKe}var UKe,T_t;function yal(){if(T_t)return UKe;T_t=1;var e=Hqn(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,a=e?e.toStringTag:void 0;function o(l){var s=n.call(l,a),d=l[a];try{l[a]=void 0;var u=!0}catch{}var h=r.call(l);return u&&(s?l[a]=d:delete l[a]),h}return UKe=o,UKe}var fKe,F_t;function Mal(){if(F_t)return fKe;F_t=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return fKe=n,fKe}var RKe,E_t;function HH(){if(E_t)return RKe;E_t=1;var e=Hqn(),t=yal(),n=Mal(),r="[object Null]",a="[object Undefined]",o=e?e.toStringTag:void 0;function l(s){return s==null?s===void 0?a:r:o&&o in Object(s)?t(s):n(s)}return RKe=l,RKe}var NKe,v_t;function Sz(){if(v_t)return NKe;v_t=1;function e(t){return t!=null&&typeof t=="object"}return NKe=e,NKe}var ZKe,b_t;function kal(){if(b_t)return ZKe;b_t=1;var e=HH(),t=Sz(),n="[object Symbol]";function r(a){return typeof a=="symbol"||t(a)&&e(a)==n}return ZKe=r,ZKe}var TKe,W_t;function Sal(){if(W_t)return TKe;W_t=1;var e=Wal(),t=XY(),n=kal(),r=NaN,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;function d(u){if(typeof u=="number")return u;if(n(u))return r;if(t(u)){var h=typeof u.valueOf=="function"?u.valueOf():u;u=t(h)?h+"":h}if(typeof u!="string")return u===0?u:+u;u=e(u);var p=o.test(u);return p||l.test(u)?s(u.slice(2),p?2:8):a.test(u)?r:+u}return TKe=d,TKe}var FKe,y_t;function gal(){if(y_t)return FKe;y_t=1;var e=Sal(),t=1/0,n=17976931348623157e292;function r(a){if(!a)return a===0?a:0;if(a=e(a),a===t||a===-1/0){var o=a<0?-1:1;return o*n}return a===a?a:0}return FKe=r,FKe}var EKe,M_t;function Cqn(){if(M_t)return EKe;M_t=1;var e=gal();function t(n){var r=e(n),a=r%1;return r===r?a?r-a:r:0}return EKe=t,EKe}var vKe,k_t;function Qal(){if(k_t)return vKe;k_t=1;var e=Cqn(),t="Expected a function";function n(r,a){var o;if(typeof a!="function")throw new TypeError(t);return r=e(r),function(){return--r>0&&(o=a.apply(this,arguments)),r<=1&&(a=void 0),o}}return vKe=n,vKe}var bKe,S_t;function zal(){if(S_t)return bKe;S_t=1;var e=Qal();function t(n){return e(2,n)}return bKe=t,bKe}var WKe={},_ve={},g_t;function wal(){if(g_t)return _ve;g_t=1,Object.defineProperty(_ve,"__esModule",{value:!0});var e=function(){function t(n,r,a){a===void 0&&(a={}),this.execute=n,this.applicator=r,this.options=a}return Object.defineProperty(t.prototype,"bound",{get:function(){return this.options.bound!=null?this.options.bound:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"setter",{get:function(){return this.options.setter!=null?this.options.setter:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"getter",{get:function(){return this.options.getter!=null?this.options.getter:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"property",{get:function(){return this.options.property!=null?this.options.property:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"method",{get:function(){return this.options.method!=null?this.options.method:!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"optionalParams",{get:function(){return this.options.optionalParams!=null?this.options.optionalParams:!1},enumerable:!0,configurable:!0}),t}();return _ve.DecoratorConfig=e,_ve}var Aie={},yKe,Q_t;function CH(){if(Q_t)return yKe;Q_t=1;var e=HH(),t=XY(),n="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",o="[object Proxy]";function l(s){if(!t(s))return!1;var d=e(s);return d==r||d==a||d==n||d==o}return yKe=l,yKe}var $ve={},MKe={},ebe={},z_t;function Lqn(){if(z_t)return ebe;z_t=1,Object.defineProperty(ebe,"__esModule",{value:!0});function e(t){return t===void 0&&(t=""),"lodash-decorators -> "+t}return ebe.log=e,ebe}var tbe={},kKe,w_t;function z1t(){if(w_t)return kKe;w_t=1;var e=Array.isArray;return kKe=e,kKe}var SKe,D_t;function Kqn(){if(D_t)return SKe;D_t=1;var e=HH(),t=z1t(),n=Sz(),r="[object String]";function a(o){return typeof o=="string"||!t(o)&&n(o)&&e(o)==r}return SKe=a,SKe}var O_t;function Dal(){if(O_t)return tbe;O_t=1,Object.defineProperty(tbe,"__esModule",{value:!0});var e=CH(),t=Kqn(),n=Lqn();function r(a,o,l,s){if(s===void 0&&(s=!0),e(a))return a;if(t(a)){if(o&&e(o[a]))return o[a];if(l&&e(l[a]))return l[a]}if(s)throw new ReferenceError(n.log("Can not resolve method "+a+" on any target Objects"))}return tbe.resolveFunction=r,tbe}var nbe={},gKe,x_t;function Oal(){if(x_t)return gKe;x_t=1;function e(t){return t===void 0}return gKe=e,gKe}var Y_t;function xal(){if(Y_t)return nbe;Y_t=1,Object.defineProperty(nbe,"__esModule",{value:!0});var e=Oal(),t=function(){function n(){this._weakMap=new WeakMap}return n.prototype.set=function(r,a){for(var o=this._weakMap,l=0,s=r.length-1;l<s;l++){var d=r[l],u=o.get(d);u||(u=new Map,o.set(d,u)),o=u}o.set(r[r.length-1],a)},n.prototype.get=function(r){for(var a=this._weakMap,o=0,l=r.length;o<l&&(a=a.get(r[o]),!e(a));o++);return a},n.prototype.has=function(r){return!e(this.get(r))},n}();return nbe.CompositeKeyWeakMap=t,nbe}var rbe={},B_t;function Yal(){if(B_t)return rbe;B_t=1,Object.defineProperty(rbe,"__esModule",{value:!0});function e(t,n){return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return t.call.apply(t,[this].concat(r)),r[n]}}return rbe.returnAtIndex=e,rbe}var abe={},QKe,J_t;function Bal(){if(J_t)return QKe;J_t=1;function e(t){return function(n,r,a){for(var o=-1,l=Object(n),s=a(n),d=s.length;d--;){var u=s[t?d:++o];if(r(l[u],u,l)===!1)break}return n}}return QKe=e,QKe}var zKe,j_t;function Jal(){if(j_t)return zKe;j_t=1;var e=Bal(),t=e();return zKe=t,zKe}var wKe,G_t;function jal(){if(G_t)return wKe;G_t=1;function e(t,n){for(var r=-1,a=Array(t);++r<t;)a[r]=n(r);return a}return wKe=e,wKe}var DKe,I_t;function Gal(){if(I_t)return DKe;I_t=1;var e=HH(),t=Sz(),n="[object Arguments]";function r(a){return t(a)&&e(a)==n}return DKe=r,DKe}var OKe,X_t;function Ial(){if(X_t)return OKe;X_t=1;var e=Gal(),t=Sz(),n=Object.prototype,r=n.hasOwnProperty,a=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(l){return t(l)&&r.call(l,"callee")&&!a.call(l,"callee")};return OKe=o,OKe}var nce={exports:{}},xKe,H_t;function Xal(){if(H_t)return xKe;H_t=1;function e(){return!1}return xKe=e,xKe}nce.exports;var C_t;function Hal(){return C_t||(C_t=1,function(e,t){var n=kz(),r=Xal(),a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,l=o&&o.exports===a,s=l?n.Buffer:void 0,d=s?s.isBuffer:void 0,u=d||r;e.exports=u}(nce,nce.exports)),nce.exports}var YKe,L_t;function Pqn(){if(L_t)return YKe;L_t=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,a){var o=typeof r;return a=a??e,!!a&&(o=="number"||o!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<a}return YKe=n,YKe}var BKe,K_t;function qqn(){if(K_t)return BKe;K_t=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return BKe=t,BKe}var JKe,P_t;function Cal(){if(P_t)return JKe;P_t=1;var e=HH(),t=qqn(),n=Sz(),r="[object Arguments]",a="[object Array]",o="[object Boolean]",l="[object Date]",s="[object Error]",d="[object Function]",u="[object Map]",h="[object Number]",p="[object Object]",U="[object RegExp]",m="[object Set]",R="[object String]",N="[object WeakMap]",E="[object ArrayBuffer]",v="[object DataView]",y="[object Float32Array]",k="[object Float64Array]",Z="[object Int8Array]",Q="[object Int16Array]",g="[object Int32Array]",z="[object Uint8Array]",C="[object Uint8ClampedArray]",j="[object Uint16Array]",X="[object Uint32Array]",q={};q[y]=q[k]=q[Z]=q[Q]=q[g]=q[z]=q[C]=q[j]=q[X]=!0,q[r]=q[a]=q[E]=q[o]=q[v]=q[l]=q[s]=q[d]=q[u]=q[h]=q[p]=q[U]=q[m]=q[R]=q[N]=!1;function $(G){return n(G)&&t(G.length)&&!!q[e(G)]}return JKe=$,JKe}var jKe,q_t;function _qn(){if(q_t)return jKe;q_t=1;function e(t){return function(n){return t(n)}}return jKe=e,jKe}var rce={exports:{}};rce.exports;var __t;function Lal(){return __t||(__t=1,function(e,t){var n=Xqn(),r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===r,l=o&&n.process,s=function(){try{var d=a&&a.require&&a.require("util").types;return d||l&&l.binding&&l.binding("util")}catch{}}();e.exports=s}(rce,rce.exports)),rce.exports}var GKe,$_t;function Kal(){if($_t)return GKe;$_t=1;var e=Cal(),t=_qn(),n=Lal(),r=n&&n.isTypedArray,a=r?t(r):e;return GKe=a,GKe}var IKe,e$t;function Pal(){if(e$t)return IKe;e$t=1;var e=jal(),t=Ial(),n=z1t(),r=Hal(),a=Pqn(),o=Kal(),l=Object.prototype,s=l.hasOwnProperty;function d(u,h){var p=n(u),U=!p&&t(u),m=!p&&!U&&r(u),R=!p&&!U&&!m&&o(u),N=p||U||m||R,E=N?e(u.length,String):[],v=E.length;for(var y in u)(h||s.call(u,y))&&!(N&&(y=="length"||m&&(y=="offset"||y=="parent")||R&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||a(y,v)))&&E.push(y);return E}return IKe=d,IKe}var XKe,t$t;function qal(){if(t$t)return XKe;t$t=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,a=typeof r=="function"&&r.prototype||e;return n===a}return XKe=t,XKe}var HKe,n$t;function $qn(){if(n$t)return HKe;n$t=1;function e(t,n){return function(r){return t(n(r))}}return HKe=e,HKe}var CKe,r$t;function _al(){if(r$t)return CKe;r$t=1;var e=$qn(),t=e(Object.keys,Object);return CKe=t,CKe}var LKe,a$t;function $al(){if(a$t)return LKe;a$t=1;var e=qal(),t=_al(),n=Object.prototype,r=n.hasOwnProperty;function a(o){if(!e(o))return t(o);var l=[];for(var s in Object(o))r.call(o,s)&&s!="constructor"&&l.push(s);return l}return LKe=a,LKe}var KKe,o$t;function e6n(){if(o$t)return KKe;o$t=1;var e=CH(),t=qqn();function n(r){return r!=null&&t(r.length)&&!e(r)}return KKe=n,KKe}var PKe,l$t;function eol(){if(l$t)return PKe;l$t=1;var e=Pal(),t=$al(),n=e6n();function r(a){return n(a)?e(a):t(a)}return PKe=r,PKe}var qKe,i$t;function tol(){if(i$t)return qKe;i$t=1;var e=Jal(),t=eol();function n(r,a){return r&&e(r,a,t)}return qKe=n,qKe}var _Ke,s$t;function bZe(){if(s$t)return _Ke;s$t=1;function e(t){return t}return _Ke=e,_Ke}var $Ke,d$t;function nol(){if(d$t)return $Ke;d$t=1;var e=bZe();function t(n){return typeof n=="function"?n:e}return $Ke=t,$Ke}var ePe,c$t;function rol(){if(c$t)return ePe;c$t=1;var e=tol(),t=nol();function n(r,a){return r&&e(r,t(a))}return ePe=n,ePe}var u$t;function t6n(){if(u$t)return abe;u$t=1,Object.defineProperty(abe,"__esModule",{value:!0});var e=rol();function t(n,r){return e(r,function(a,o){return n[o]=a}),n}return abe.copyMetadata=t,abe}var obe={},h$t;function aol(){if(h$t)return obe;h$t=1,Object.defineProperty(obe,"__esModule",{value:!0});var e=t6n();function t(n,r){return e.copyMetadata(n.bind(r),n)}return obe.bind=t,obe}var lbe={},pie={},tPe,A$t;function ool(){if(A$t)return tPe;A$t=1;var e=kz(),t=e["__core-js_shared__"];return tPe=t,tPe}var nPe,p$t;function lol(){if(p$t)return nPe;p$t=1;var e=ool(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return nPe=n,nPe}var rPe,V$t;function iol(){if(V$t)return rPe;V$t=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return rPe=n,rPe}var aPe,m$t;function sol(){if(m$t)return aPe;m$t=1;var e=CH(),t=lol(),n=XY(),r=iol(),a=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,l=Function.prototype,s=Object.prototype,d=l.toString,u=s.hasOwnProperty,h=RegExp("^"+d.call(u).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(U){if(!n(U)||t(U))return!1;var m=e(U)?h:o;return m.test(r(U))}return aPe=p,aPe}var oPe,U$t;function dol(){if(U$t)return oPe;U$t=1;function e(t,n){return t==null?void 0:t[n]}return oPe=e,oPe}var lPe,f$t;function xJe(){if(f$t)return lPe;f$t=1;var e=sol(),t=dol();function n(r,a){var o=t(r,a);return e(o)?o:void 0}return lPe=n,lPe}var iPe,R$t;function YJe(){if(R$t)return iPe;R$t=1;var e=xJe(),t=e(Object,"create");return iPe=t,iPe}var sPe,N$t;function col(){if(N$t)return sPe;N$t=1;var e=YJe();function t(){this.__data__=e?e(null):{},this.size=0}return sPe=t,sPe}var dPe,Z$t;function uol(){if(Z$t)return dPe;Z$t=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return dPe=e,dPe}var cPe,T$t;function hol(){if(T$t)return cPe;T$t=1;var e=YJe(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function a(o){var l=this.__data__;if(e){var s=l[o];return s===t?void 0:s}return r.call(l,o)?l[o]:void 0}return cPe=a,cPe}var uPe,F$t;function Aol(){if(F$t)return uPe;F$t=1;var e=YJe(),t=Object.prototype,n=t.hasOwnProperty;function r(a){var o=this.__data__;return e?o[a]!==void 0:n.call(o,a)}return uPe=r,uPe}var hPe,E$t;function pol(){if(E$t)return hPe;E$t=1;var e=YJe(),t="__lodash_hash_undefined__";function n(r,a){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=e&&a===void 0?t:a,this}return hPe=n,hPe}var APe,v$t;function Vol(){if(v$t)return APe;v$t=1;var e=col(),t=uol(),n=hol(),r=Aol(),a=pol();function o(l){var s=-1,d=l==null?0:l.length;for(this.clear();++s<d;){var u=l[s];this.set(u[0],u[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,APe=o,APe}var pPe,b$t;function mol(){if(b$t)return pPe;b$t=1;function e(){this.__data__=[],this.size=0}return pPe=e,pPe}var VPe,W$t;function Uol(){if(W$t)return VPe;W$t=1;function e(t,n){return t===n||t!==t&&n!==n}return VPe=e,VPe}var mPe,y$t;function BJe(){if(y$t)return mPe;y$t=1;var e=Uol();function t(n,r){for(var a=n.length;a--;)if(e(n[a][0],r))return a;return-1}return mPe=t,mPe}var UPe,M$t;function fol(){if(M$t)return UPe;M$t=1;var e=BJe(),t=Array.prototype,n=t.splice;function r(a){var o=this.__data__,l=e(o,a);if(l<0)return!1;var s=o.length-1;return l==s?o.pop():n.call(o,l,1),--this.size,!0}return UPe=r,UPe}var fPe,k$t;function Rol(){if(k$t)return fPe;k$t=1;var e=BJe();function t(n){var r=this.__data__,a=e(r,n);return a<0?void 0:r[a][1]}return fPe=t,fPe}var RPe,S$t;function Nol(){if(S$t)return RPe;S$t=1;var e=BJe();function t(n){return e(this.__data__,n)>-1}return RPe=t,RPe}var NPe,g$t;function Zol(){if(g$t)return NPe;g$t=1;var e=BJe();function t(n,r){var a=this.__data__,o=e(a,n);return o<0?(++this.size,a.push([n,r])):a[o][1]=r,this}return NPe=t,NPe}var ZPe,Q$t;function Tol(){if(Q$t)return ZPe;Q$t=1;var e=mol(),t=fol(),n=Rol(),r=Nol(),a=Zol();function o(l){var s=-1,d=l==null?0:l.length;for(this.clear();++s<d;){var u=l[s];this.set(u[0],u[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,ZPe=o,ZPe}var TPe,z$t;function Fol(){if(z$t)return TPe;z$t=1;var e=xJe(),t=kz(),n=e(t,"Map");return TPe=n,TPe}var FPe,w$t;function Eol(){if(w$t)return FPe;w$t=1;var e=Vol(),t=Tol(),n=Fol();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return FPe=r,FPe}var EPe,D$t;function vol(){if(D$t)return EPe;D$t=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return EPe=e,EPe}var vPe,O$t;function JJe(){if(O$t)return vPe;O$t=1;var e=vol();function t(n,r){var a=n.__data__;return e(r)?a[typeof r=="string"?"string":"hash"]:a.map}return vPe=t,vPe}var bPe,x$t;function bol(){if(x$t)return bPe;x$t=1;var e=JJe();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return bPe=t,bPe}var WPe,Y$t;function Wol(){if(Y$t)return WPe;Y$t=1;var e=JJe();function t(n){return e(this,n).get(n)}return WPe=t,WPe}var yPe,B$t;function yol(){if(B$t)return yPe;B$t=1;var e=JJe();function t(n){return e(this,n).has(n)}return yPe=t,yPe}var MPe,J$t;function Mol(){if(J$t)return MPe;J$t=1;var e=JJe();function t(n,r){var a=e(this,n),o=a.size;return a.set(n,r),this.size+=a.size==o?0:1,this}return MPe=t,MPe}var kPe,j$t;function kol(){if(j$t)return kPe;j$t=1;var e=Eol(),t=bol(),n=Wol(),r=yol(),a=Mol();function o(l){var s=-1,d=l==null?0:l.length;for(this.clear();++s<d;){var u=l[s];this.set(u[0],u[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,kPe=o,kPe}var SPe,G$t;function Sol(){if(G$t)return SPe;G$t=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return SPe=t,SPe}var gPe,I$t;function gol(){if(I$t)return gPe;I$t=1;function e(t){return this.__data__.has(t)}return gPe=e,gPe}var QPe,X$t;function Qol(){if(X$t)return QPe;X$t=1;var e=kol(),t=Sol(),n=gol();function r(a){var o=-1,l=a==null?0:a.length;for(this.__data__=new e;++o<l;)this.add(a[o])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,QPe=r,QPe}var zPe,H$t;function zol(){if(H$t)return zPe;H$t=1;function e(t,n,r,a){for(var o=t.length,l=r+(a?1:-1);a?l--:++l<o;)if(n(t[l],l,t))return l;return-1}return zPe=e,zPe}var wPe,C$t;function wol(){if(C$t)return wPe;C$t=1;function e(t){return t!==t}return wPe=e,wPe}var DPe,L$t;function Dol(){if(L$t)return DPe;L$t=1;function e(t,n,r){for(var a=r-1,o=t.length;++a<o;)if(t[a]===n)return a;return-1}return DPe=e,DPe}var OPe,K$t;function Ool(){if(K$t)return OPe;K$t=1;var e=zol(),t=wol(),n=Dol();function r(a,o,l){return o===o?n(a,o,l):e(a,t,l)}return OPe=r,OPe}var xPe,P$t;function n6n(){if(P$t)return xPe;P$t=1;var e=Ool();function t(n,r){var a=n==null?0:n.length;return!!a&&e(n,r,0)>-1}return xPe=t,xPe}var YPe,q$t;function xol(){if(q$t)return YPe;q$t=1;function e(t,n,r){for(var a=-1,o=t==null?0:t.length;++a<o;)if(r(n,t[a]))return!0;return!1}return YPe=e,YPe}var BPe,_$t;function Yol(){if(_$t)return BPe;_$t=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,o=Array(a);++r<a;)o[r]=n(t[r],r,t);return o}return BPe=e,BPe}var JPe,$$t;function Bol(){if($$t)return JPe;$$t=1;function e(t,n){return t.has(n)}return JPe=e,JPe}var jPe,een;function Jol(){if(een)return jPe;een=1;var e=Qol(),t=n6n(),n=xol(),r=Yol(),a=_qn(),o=Bol(),l=200;function s(d,u,h,p){var U=-1,m=t,R=!0,N=d.length,E=[],v=u.length;if(!N)return E;h&&(u=r(u,a(h))),p?(m=n,R=!1):u.length>=l&&(m=o,R=!1,u=new e(u));e:for(;++U<N;){var y=d[U],k=h==null?y:h(y);if(y=p||y!==0?y:0,R&&k===k){for(var Z=v;Z--;)if(u[Z]===k)continue e;E.push(y)}else m(u,k,p)||E.push(y)}return E}return jPe=s,jPe}var GPe,ten;function jJe(){if(ten)return GPe;ten=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return GPe=e,GPe}var IPe,nen;function jol(){if(nen)return IPe;nen=1;var e=jJe(),t=Math.max;function n(r,a,o){return a=t(a===void 0?r.length-1:a,0),function(){for(var l=arguments,s=-1,d=t(l.length-a,0),u=Array(d);++s<d;)u[s]=l[a+s];s=-1;for(var h=Array(a+1);++s<a;)h[s]=l[s];return h[a]=o(u),e(r,this,h)}}return IPe=n,IPe}var XPe,ren;function Gol(){if(ren)return XPe;ren=1;function e(t){return function(){return t}}return XPe=e,XPe}var HPe,aen;function Iol(){if(aen)return HPe;aen=1;var e=xJe(),t=function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}}();return HPe=t,HPe}var CPe,oen;function Xol(){if(oen)return CPe;oen=1;var e=Gol(),t=Iol(),n=bZe(),r=t?function(a,o){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:n;return CPe=r,CPe}var LPe,len;function r6n(){if(len)return LPe;len=1;var e=800,t=16,n=Date.now;function r(a){var o=0,l=0;return function(){var s=n(),d=t-(s-l);if(l=s,d>0){if(++o>=e)return arguments[0]}else o=0;return a.apply(void 0,arguments)}}return LPe=r,LPe}var KPe,ien;function a6n(){if(ien)return KPe;ien=1;var e=Xol(),t=r6n(),n=t(e);return KPe=n,KPe}var PPe,sen;function w1t(){if(sen)return PPe;sen=1;var e=bZe(),t=jol(),n=a6n();function r(a,o){return n(t(a,o,e),a+"")}return PPe=r,PPe}var qPe,den;function Hol(){if(den)return qPe;den=1;var e=e6n(),t=Sz();function n(r){return t(r)&&e(r)}return qPe=n,qPe}var _Pe,cen;function Col(){if(cen)return _Pe;cen=1;var e=Jol(),t=w1t(),n=Hol(),r=t(function(a,o){return n(a)?e(a,o):[]});return _Pe=r,_Pe}var $Pe,uen;function Lol(){if(uen)return $Pe;uen=1;var e=$qn(),t=e(Object.getPrototypeOf,Object);return $Pe=t,$Pe}var eqe,hen;function Kol(){if(hen)return eqe;hen=1;var e=HH(),t=Lol(),n=Sz(),r="[object Object]",a=Function.prototype,o=Object.prototype,l=a.toString,s=o.hasOwnProperty,d=l.call(Object);function u(h){if(!n(h)||e(h)!=r)return!1;var p=t(h);if(p===null)return!0;var U=s.call(p,"constructor")&&p.constructor;return typeof U=="function"&&U instanceof U&&l.call(U)==d}return eqe=u,eqe}var tqe,Aen;function Pol(){if(Aen)return tqe;Aen=1;var e=HH(),t=Sz(),n=Kol(),r="[object DOMException]",a="[object Error]";function o(l){if(!t(l))return!1;var s=e(l);return s==a||s==r||typeof l.message=="string"&&typeof l.name=="string"&&!n(l)}return tqe=o,tqe}var nqe,pen;function qol(){if(pen)return nqe;pen=1;var e=jJe(),t=w1t(),n=Pol(),r=t(function(a,o){try{return e(a,void 0,o)}catch(l){return n(l)?l:new Error(l)}});return nqe=r,nqe}var Ven;function o6n(){if(Ven)return pie;Ven=1,Object.defineProperty(pie,"__esModule",{value:!0});var e=Col(),t=qol(),n=XY();function r(o,l,s){s===void 0&&(s=[]);for(var d=e.apply(void 0,[Object.getOwnPropertyNames(l)].concat(s)),u=0,h=d;u<h.length;u++){var p=h[u];t(a,o,l,p)}return o}pie.assignAll=r;function a(o,l,s){var d=Object.getOwnPropertyDescriptor(o,s);if(!d||d.configurable){var u=Object.getOwnPropertyDescriptor(l,s);n(u)?Object.defineProperty(o,s,u):o[s]=l[s]}}return pie.assignProperty=a,pie}var men;function _ol(){if(men)return lbe;men=1,Object.defineProperty(lbe,"__esModule",{value:!0});var e=o6n(),t=["length","name","arguments","called","prototype"];function n(r,a){function o(){for(var l=[],s=0;s<arguments.length;s++)l[s]=arguments[s];return a.call.apply(a,[this,r].concat(l))}return o.prototype=r.prototype,Object.defineProperty(o,"name",{configurable:!0,enumerable:!1,value:r.name,writable:!1}),e.assignAll(o,r,t)}return lbe.wrapConstructor=n,lbe}var ibe={},Uen;function $ol(){if(Uen)return ibe;Uen=1,Object.defineProperty(ibe,"__esModule",{value:!0});var e=XY(),t=CH(),n=Kqn();function r(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return a.length>=2&&e(a[0])&&n(a[1])&&t(a[0].constructor)&&a[0].constructor.prototype===a[0]}return ibe.isMethodOrPropertyDecoratorArgs=r,ibe}var sbe={},fen;function ell(){if(fen)return sbe;fen=1,Object.defineProperty(sbe,"__esModule",{value:!0});function e(t,n){return t===n||t.constructor!==n.constructor&&Object.getPrototypeOf(this).constructor===n.constructor}return sbe.isPrototypeAccess=e,sbe}var Ren;function LH(){return Ren||(Ren=1,function(e){function t(n){for(var r in n)e.hasOwnProperty(r)||(e[r]=n[r])}Object.defineProperty(e,"__esModule",{value:!0}),t(Lqn()),t(Dal()),t(xal()),t(Yal()),t(t6n()),t(aol()),t(_ol()),t(o6n()),t($ol()),t(ell())}(MKe)),MKe}var Nen;function l6n(){if(Nen)return $ve;Nen=1,Object.defineProperty($ve,"__esModule",{value:!0});var e=LH();return $ve.InstanceChainMap=new e.CompositeKeyWeakMap,$ve}var Zen;function tll(){if(Zen)return Aie;Zen=1,Object.defineProperty(Aie,"__esModule",{value:!0});var e=CH(),t=l6n(),n=LH(),r=function(){function a(){}return a.prototype.createDecorator=function(o){var l=this,s=o.applicator,d=o.optionalParams;return function(){for(var u=[],h=0;h<arguments.length;h++)u[h]=arguments[h];var p=u,U=function(m,R,N){var E=l._resolveDescriptor(m,R,N),v=E.value,y=E.get,k=E.set;return t.InstanceChainMap.has([m,R])||(e(v)?E.value=n.copyMetadata(s.apply({config:o,target:m,value:v,args:p}),v):e(y)&&o.getter?E.get=n.copyMetadata(s.apply({config:o,target:m,value:y,args:p}),y):e(k)&&o.setter&&(E.set=n.copyMetadata(s.apply({config:o,target:m,value:k,args:p}),k))),E};return d&&n.isMethodOrPropertyDecoratorArgs.apply(void 0,u)?(p=[],U(u[0],u[1],u[2])):U}},a.prototype.createInstanceDecorator=function(o){var l=this,s=o.applicator,d=o.bound,u=o.optionalParams;return function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];var U=h,m=function(R,N,E){var v=l._resolveDescriptor(R,N,E),y=v.value,k=v.writable,Z=v.enumerable,Q=v.configurable,g=v.get,z=v.set,C=!t.InstanceChainMap.has([R,N]),j=t.InstanceChainMap.get([R,N])||{fns:[],properties:[]},X=C&&e(g),q=C&&e(z),$=C&&e(y),G=C&&!X&&!q&&!$,ee=X?g:$?y:void 0;if(j.properties.push(N),j.fns.push(function(pe,ue,Ne){return l._isApplicable(Ne,o)?(d&&(pe=n.bind(pe,ue)),n.copyMetadata(s.apply({args:U,target:R,instance:ue,value:pe,config:o}),pe)):pe}),t.InstanceChainMap.set([R,N],j),!C)return v;j.isSetter=q,j.isGetter=X,j.isMethod=$,j.isProperty=G;var ae=function(pe,ue,Ne){return j.fns.reduce(function(Me,Fe){return Fe(Me,Ne,ue)},pe)},P=function(pe){var ue=g||void 0,Ne=z||void 0;if(X||q)X&&(ue=ae(g,{value:g,getter:!0},pe)),q&&(Ne=ae(z,{value:z,setter:!0},pe)),Object.defineProperty(pe,N,{enumerable:Z,configurable:Q,get:ue,set:Ne});else if($||G){var Me=$?ae(y,{value:y,method:!0},pe):ae(y,{value:y,property:!0},pe);Object.defineProperty(pe,N,{writable:k,enumerable:Z,configurable:Q,value:Me})}};return($||G)&&(delete v.value,delete v.writable),v.get=function(){if(n.isPrototypeAccess(this,R))return ee;P(this);var pe=Object.getOwnPropertyDescriptor(this,N);return pe.get?pe.get.call(this):pe.value},v.set=function(pe){P(this);var ue=Object.getOwnPropertyDescriptor(this,N);ue.set?ue.set.call(this,pe):(G||$)&&(this[N]=pe)},v};return u&&n.isMethodOrPropertyDecoratorArgs.apply(void 0,h)?(U=[],m(h[0],h[1],h[2])):m}},a.prototype._isApplicable=function(o,l){return!(o.getter&&!l.getter||o.setter&&!l.setter||o.method&&!l.method||o.property&&!l.property)},a.prototype._resolveDescriptor=function(o,l,s){return s||Object.getOwnPropertyDescriptor(o,l)||{}},a}();return Aie.InternalDecoratorFactory=r,Aie.DecoratorFactory=new r,Aie}var Ten;function nll(){return Ten||(Ten=1,function(e){function t(n){for(var r in n)e.hasOwnProperty(r)||(e[r]=n[r])}Object.defineProperty(e,"__esModule",{value:!0}),t(wal()),t(tll()),t(l6n())}(WKe)),WKe}var rqe={},dbe={},Fen;function ny(){if(Fen)return dbe;Fen=1,Object.defineProperty(dbe,"__esModule",{value:!0});var e=function(){function t(){}return t}();return dbe.Applicator=e,dbe}var cbe={},TS=val(Ual),Een;function rll(){if(Een)return cbe;Een=1,Object.defineProperty(cbe,"__esModule",{value:!0});var e=TS,t=bZe(),n=ny(),r=LH(),a=function(o){e.__extends(l,o);function l(s){s===void 0&&(s={});var d=o.call(this)||this;return d._config=s,d}return Object.defineProperty(l.prototype,"post",{get:function(){return this._config.post===!0},enumerable:!0,configurable:!0}),l.prototype.apply=function(s){var d=s.config.execute,u=s.value,h=u===void 0?t:u,p=s.args,U=s.target,m=this;return function(){for(var R=this,N=[],E=0;E<arguments.length;E++)N[E]=arguments[E];var v=p.map(function(y){return r.resolveFunction(y,R,U)}).slice();return m.post?v.push(h):v.unshift(h),d.apply(void 0,v).apply(this,N)}},l}(n.Applicator);return cbe.ComposeApplicator=a,cbe}var ube={},ven;function all(){if(ven)return ube;ven=1,Object.defineProperty(ube,"__esModule",{value:!0});var e=TS,t=ny(),n=LH(),r=function(a){e.__extends(o,a);function o(){return a!==null&&a.apply(this,arguments)||this}return o.prototype.apply=function(l){var s=l.args,d=l.target,u=l.config.execute;return function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return u.apply(void 0,[n.resolveFunction(s[0],this,d)].concat(s.slice(1))).apply(this,h)}},o}(t.Applicator);return ube.PartialApplicator=r,ube}var hbe={},aqe,ben;function oll(){if(ben)return aqe;ben=1;var e=xJe(),t=kz(),n=e(t,"WeakMap");return aqe=n,aqe}var oqe,Wen;function i6n(){if(Wen)return oqe;Wen=1;var e=oll(),t=e&&new e;return oqe=t,oqe}var lqe,yen;function s6n(){if(yen)return lqe;yen=1;var e=bZe(),t=i6n(),n=t?function(r,a){return t.set(r,a),r}:e;return lqe=n,lqe}var iqe,Men;function D1t(){if(Men)return iqe;Men=1;var e=XY(),t=Object.create,n=function(){function r(){}return function(a){if(!e(a))return{};if(t)return t(a);r.prototype=a;var o=new r;return r.prototype=void 0,o}}();return iqe=n,iqe}var sqe,ken;function GJe(){if(ken)return sqe;ken=1;var e=D1t(),t=XY();function n(r){return function(){var a=arguments;switch(a.length){case 0:return new r;case 1:return new r(a[0]);case 2:return new r(a[0],a[1]);case 3:return new r(a[0],a[1],a[2]);case 4:return new r(a[0],a[1],a[2],a[3]);case 5:return new r(a[0],a[1],a[2],a[3],a[4]);case 6:return new r(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new r(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var o=e(r.prototype),l=r.apply(o,a);return t(l)?l:o}}return sqe=n,sqe}var dqe,Sen;function lll(){if(Sen)return dqe;Sen=1;var e=GJe(),t=kz(),n=1;function r(a,o,l){var s=o&n,d=e(a);function u(){var h=this&&this!==t&&this instanceof u?d:a;return h.apply(s?l:this,arguments)}return u}return dqe=r,dqe}var cqe,gen;function d6n(){if(gen)return cqe;gen=1;var e=Math.max;function t(n,r,a,o){for(var l=-1,s=n.length,d=a.length,u=-1,h=r.length,p=e(s-d,0),U=Array(h+p),m=!o;++u<h;)U[u]=r[u];for(;++l<d;)(m||l<s)&&(U[a[l]]=n[l]);for(;p--;)U[u++]=n[l++];return U}return cqe=t,cqe}var uqe,Qen;function c6n(){if(Qen)return uqe;Qen=1;var e=Math.max;function t(n,r,a,o){for(var l=-1,s=n.length,d=-1,u=a.length,h=-1,p=r.length,U=e(s-u,0),m=Array(U+p),R=!o;++l<U;)m[l]=n[l];for(var N=l;++h<p;)m[N+h]=r[h];for(;++d<u;)(R||l<s)&&(m[N+a[d]]=n[l++]);return m}return uqe=t,uqe}var hqe,zen;function ill(){if(zen)return hqe;zen=1;function e(t,n){for(var r=t.length,a=0;r--;)t[r]===n&&++a;return a}return hqe=e,hqe}var Aqe,wen;function O1t(){if(wen)return Aqe;wen=1;function e(){}return Aqe=e,Aqe}var pqe,Den;function x1t(){if(Den)return pqe;Den=1;var e=D1t(),t=O1t(),n=4294967295;function r(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=n,this.__views__=[]}return r.prototype=e(t.prototype),r.prototype.constructor=r,pqe=r,pqe}var Vqe,Oen;function sll(){if(Oen)return Vqe;Oen=1;function e(){}return Vqe=e,Vqe}var mqe,xen;function u6n(){if(xen)return mqe;xen=1;var e=i6n(),t=sll(),n=e?function(r){return e.get(r)}:t;return mqe=n,mqe}var Uqe,Yen;function dll(){if(Yen)return Uqe;Yen=1;var e={};return Uqe=e,Uqe}var fqe,Ben;function cll(){if(Ben)return fqe;Ben=1;var e=dll(),t=Object.prototype,n=t.hasOwnProperty;function r(a){for(var o=a.name+"",l=e[o],s=n.call(e,o)?l.length:0;s--;){var d=l[s],u=d.func;if(u==null||u==a)return d.name}return o}return fqe=r,fqe}var Rqe,Jen;function h6n(){if(Jen)return Rqe;Jen=1;var e=D1t(),t=O1t();function n(r,a){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=void 0}return n.prototype=e(t.prototype),n.prototype.constructor=n,Rqe=n,Rqe}var Nqe,jen;function A6n(){if(jen)return Nqe;jen=1;function e(t,n){var r=-1,a=t.length;for(n||(n=Array(a));++r<a;)n[r]=t[r];return n}return Nqe=e,Nqe}var Zqe,Gen;function ull(){if(Gen)return Zqe;Gen=1;var e=x1t(),t=h6n(),n=A6n();function r(a){if(a instanceof e)return a.clone();var o=new t(a.__wrapped__,a.__chain__);return o.__actions__=n(a.__actions__),o.__index__=a.__index__,o.__values__=a.__values__,o}return Zqe=r,Zqe}var Tqe,Ien;function hll(){if(Ien)return Tqe;Ien=1;var e=x1t(),t=h6n(),n=O1t(),r=z1t(),a=Sz(),o=ull(),l=Object.prototype,s=l.hasOwnProperty;function d(u){if(a(u)&&!r(u)&&!(u instanceof e)){if(u instanceof t)return u;if(s.call(u,"__wrapped__"))return o(u)}return new t(u)}return d.prototype=n.prototype,d.prototype.constructor=d,Tqe=d,Tqe}var Fqe,Xen;function All(){if(Xen)return Fqe;Xen=1;var e=x1t(),t=u6n(),n=cll(),r=hll();function a(o){var l=n(o),s=r[l];if(typeof s!="function"||!(l in e.prototype))return!1;if(o===s)return!0;var d=t(s);return!!d&&o===d[0]}return Fqe=a,Fqe}var Eqe,Hen;function p6n(){if(Hen)return Eqe;Hen=1;var e=s6n(),t=r6n(),n=t(e);return Eqe=n,Eqe}var vqe,Cen;function pll(){if(Cen)return vqe;Cen=1;var e=/\{\n\/\* \[wrapped with (.+)\] \*/,t=/,? & /;function n(r){var a=r.match(e);return a?a[1].split(t):[]}return vqe=n,vqe}var bqe,Len;function Vll(){if(Len)return bqe;Len=1;var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function t(n,r){var a=r.length;if(!a)return n;var o=a-1;return r[o]=(a>1?"& ":"")+r[o],r=r.join(a>2?", ":" "),n.replace(e,`{
1196
1196
  /* [wrapped with `+r+`] */