@enablerr-ui/dashboard 0.2.245 → 0.2.247
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/dist/index.min.js +1 -1
- package/package.json +1 -1
package/dist/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["@enablerr-ui/layout","@enablerr-ui/form","@enablerr-ui/auth","@enablerr-ui/detail","@enablerr-ui/collab"],function(t){"use strict";var e,n,o,s,r,i,l,a,c,d,u,m,f,p,$,g,h,v;return{setters:[function(t){e=t.getAttractions,n=t.PopOver,o=t.getGrid,s=t.getGridHelp,r=t.Toast},function(t){i=t.currentRoles,l=t.Request,a=t.Storage,c=t.settings,d=t.task_notification,u=t.approval_notification,m=t.communication_notification,f=t.attachment_notification},function(t){p=t.user},function(t){$=t.List,g=t.getDisplayItems},function(t){h=t.SupportModule,v=t.ChatModule}],execute:function(){t("version","0.2.245");function w(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var y,k,x=(y=function(t,e){function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function o(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?n(Object(o),!0).forEach(function(e){s(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if("object"!==r(t))throw new Error("single-spa-svelte requires a configuration object");var e=o(o({},i),t);if(!e.component)throw new Error("single-spa-svelte must be passed opts.component");var n={};return{bootstrap:l.bind(null,e,n),mount:a.bind(null,e,n),unmount:c.bind(null,e,n),update:d.bind(null,e,n)}};var i={component:null,domElementGetter:null,props:{}};function l(t){return Promise.resolve()}function a(t,e,n){var s=Object.keys(i),r=Object.keys(t).reduce(function(e,n){return s.includes(n)||(e[n]=t[n]),e},{});return Promise.resolve().then(function(){var s=function(t,e){return(e=e&&e.customProps?e.customProps:e).domElement?function(){return e.domElement}:e.domElementGetter?function(){return e.domElementGetter(e)}:t.domElementGetter?function(){return t.domElementGetter(e)}:function(t){var e=t.appName||t.name;if(!e)throw Error("single-spa-svelte was not given an application name as a prop, so it can't make a unique dom element container for the svelte application");var n="single-spa-application:".concat(e);return function(){var t=document.getElementById(n);return t||((t=document.createElement("div")).id=n,document.body.appendChild(t)),t}}(e)}(t,n),i=s();e.instance=new t.component(o(o({},r),{},{target:i,props:Object.assign({},n,t.props)}))})}function c(t,e){return Promise.resolve().then(function(){e.instance.$destroy?e.instance.$destroy():e.instance.destroy()})}function d(t,e,n){return Promise.resolve().then(function(){e.instance.$set?e.instance.$set(n):e.instance.set(n)})}},y(k={exports:{}},k.exports),k.exports),b=w(x);function z(){}function E(t){return t()}function S(){return Object.create(null)}function C(t){t.forEach(E)}function T(t){return"function"==typeof t}function _(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function D(t,e,n){t.$$.on_destroy.push(function(t,...e){if(null==t)return z;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}(e,n))}function I(t){return null==t?"":t}function N(t,e){t.appendChild(e)}function A(t,e,n){t.insertBefore(e,n||null)}function O(t){t.parentNode.removeChild(t)}function F(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function W(t){return document.createElement(t)}function P(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function L(t){return document.createTextNode(t)}function j(){return L(" ")}function B(){return L("")}function M(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function R(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function V(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function U(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:V(t,e,n)}function H(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function q(t,e){t.value=null==e?"":e}function J(t,e,n,o){t.style.setProperty(e,n,o?"important":"")}function G(t,e,n){t.classList[n?"add":"remove"](e)}let Z;function K(t){Z=t}function Y(){if(!Z)throw new Error("Function called outside component initialization");return Z}function Q(t){Y().$$.on_mount.push(t)}function X(){const t=Y();return(e,n)=>{const o=t.$$.callbacks[e];if(o){const s=function(t,e){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,e),n}(e,n);o.slice().forEach(e=>{e.call(t,s)})}}}function tt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(t=>t(e))}const et=[],nt=[],ot=[],st=[],rt=Promise.resolve();let it=!1;function lt(){it||(it=!0,rt.then(ft))}function at(){return lt(),rt}function ct(t){ot.push(t)}function dt(t){st.push(t)}let ut=!1;const mt=new Set;function ft(){if(!ut){ut=!0;do{for(let t=0;t<et.length;t+=1){const e=et[t];K(e),pt(e.$$)}for(K(null),et.length=0;nt.length;)nt.pop()();for(let t=0;t<ot.length;t+=1){const e=ot[t];mt.has(e)||(mt.add(e),e())}ot.length=0}while(et.length);for(;st.length;)st.pop()();it=!1,ut=!1,mt.clear()}}function pt(t){if(null!==t.fragment){t.update(),C(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ct)}}const $t=new Set;let gt;function ht(){gt={r:0,c:[],p:gt}}function vt(){gt.r||C(gt.c),gt=gt.p}function wt(t,e){t&&t.i&&($t.delete(t),t.i(e))}function yt(t,e,n,o){if(t&&t.o){if($t.has(t))return;$t.add(t),gt&>.c.push(()=>{$t.delete(t),o&&(n&&t.d(1),o())}),t.o(e)}}function kt(t,e){const n=e.token={};function o(t,o,s,r){if(e.token!==n)return;e.resolved=r;let i=e.ctx;void 0!==s&&(i=i.slice(),i[s]=r);const l=t&&(e.current=t)(i);let a=!1;e.block&&(e.blocks?e.blocks.forEach((t,n)=>{n!==o&&t&&(ht(),yt(t,1,1,()=>{e.blocks[n]===t&&(e.blocks[n]=null)}),vt())}):e.block.d(1),l.c(),wt(l,1),l.m(e.mount(),e.anchor),a=!0),e.block=l,e.blocks&&(e.blocks[o]=l),a&&ft()}if((s=t)&&"object"==typeof s&&"function"==typeof s.then){const n=Y();if(t.then(t=>{K(n),o(e.then,1,e.value,t),K(null)},t=>{if(K(n),o(e.catch,2,e.error,t),K(null),!e.hasCatch)throw t}),e.current!==e.pending)return o(e.pending,0),!0}else{if(e.current!==e.then)return o(e.then,1,e.value,t),!0;e.resolved=t}var s}function xt(t,e,n){const o=e.slice(),{resolved:s}=t;t.current===t.then&&(o[t.value]=s),t.current===t.catch&&(o[t.error]=s),t.block.p(o,n)}const bt="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function zt(t,e){t.d(1),e.delete(t.key)}function Et(t,e){yt(t,1,1,()=>{e.delete(t.key)})}function St(t,e,n,o,s,r,i,l,a,c,d,u){let m=t.length,f=r.length,p=m;const $={};for(;p--;)$[t[p].key]=p;const g=[],h=new Map,v=new Map;for(p=f;p--;){const t=u(s,r,p),l=n(t);let a=i.get(l);a?o&&a.p(t,e):(a=c(l,t),a.c()),h.set(l,g[p]=a),l in $&&v.set(l,Math.abs(p-$[l]))}const w=new Set,y=new Set;function k(t){wt(t,1),t.m(l,d),i.set(t.key,t),d=t.first,f--}for(;m&&f;){const e=g[f-1],n=t[m-1],o=e.key,s=n.key;e===n?(d=e.first,m--,f--):h.has(s)?!i.has(o)||w.has(o)?k(e):y.has(s)?m--:v.get(o)>v.get(s)?(y.add(o),k(e)):(w.add(s),m--):(a(n,i),m--)}for(;m--;){const e=t[m];h.has(e.key)||a(e,i)}for(;f;)k(g[f-1]);return g}function Ct(t,e,n){const o=t.$$.props[e];void 0!==o&&(t.$$.bound[o]=n,n(t.$$.ctx[o]))}function Tt(t){t&&t.c()}function _t(t,e,n,o){const{fragment:s,on_mount:r,on_destroy:i,after_update:l}=t.$$;s&&s.m(e,n),o||ct(()=>{const e=r.map(E).filter(T);i?i.push(...e):C(e),t.$$.on_mount=[]}),l.forEach(ct)}function Dt(t,e){const n=t.$$;null!==n.fragment&&(C(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function It(t,e,n,o,s,r,i=[-1]){const l=Z;K(t);const a=t.$$={fragment:null,ctx:null,props:r,update:z,not_equal:s,bound:S(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:S(),dirty:i,skip_bound:!1};let c=!1;if(a.ctx=n?n(t,e.props||{},(e,n,...o)=>{const r=o.length?o[0]:n;return a.ctx&&s(a.ctx[e],a.ctx[e]=r)&&(!a.skip_bound&&a.bound[e]&&a.bound[e](r),c&&function(t,e){-1===t.$$.dirty[0]&&(et.push(t),lt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n}):[],a.update(),c=!0,C(a.before_update),a.fragment=!!o&&o(a.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);a.fragment&&a.fragment.l(t),t.forEach(O)}else a.fragment&&a.fragment.c();e.intro&&wt(t.$$.fragment),_t(t,e.target,e.anchor,e.customElement),ft()}K(l)}class Nt{$destroy(){Dt(this,1),this.$destroy=z}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function At(t){let e,n,o,s;return{c(){e=P("svg"),n=P("line"),o=P("polyline"),V(n,"x1","19"),V(n,"y1","12"),V(n,"x2","5"),V(n,"y2","12"),V(o,"points","12 19 5 12 12 5"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",s="feather feather-arrow-left "+t[2])},m(t,s){A(t,e,s),N(e,n),N(e,o)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&s!==(s="feather feather-arrow-left "+t[2])&&V(e,"class",s)},i:z,o:z,d(t){t&&O(e)}}}function Ot(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class Ft extends Nt{constructor(t){super(),It(this,t,Ot,At,_,{size:0,strokeWidth:1,class:2})}}function Wt(t){let e,n,o,s,r,i;return{c(){e=P("svg"),n=P("rect"),o=P("line"),s=P("line"),r=P("line"),V(n,"x","3"),V(n,"y","4"),V(n,"width","18"),V(n,"height","18"),V(n,"rx","2"),V(n,"ry","2"),V(o,"x1","16"),V(o,"y1","2"),V(o,"x2","16"),V(o,"y2","6"),V(s,"x1","8"),V(s,"y1","2"),V(s,"x2","8"),V(s,"y2","6"),V(r,"x1","3"),V(r,"y1","10"),V(r,"x2","21"),V(r,"y2","10"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",i="feather feather-calendar "+t[2])},m(t,i){A(t,e,i),N(e,n),N(e,o),N(e,s),N(e,r)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&i!==(i="feather feather-calendar "+t[2])&&V(e,"class",i)},i:z,o:z,d(t){t&&O(e)}}}function Pt(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class Lt extends Nt{constructor(t){super(),It(this,t,Pt,Wt,_,{size:0,strokeWidth:1,class:2})}}function jt(t){let e,n,o,s;return{c(){e=P("svg"),n=P("polyline"),o=P("path"),V(n,"points","9 11 12 14 22 4"),V(o,"d","M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",s="feather feather-check-square "+t[2])},m(t,s){A(t,e,s),N(e,n),N(e,o)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&s!==(s="feather feather-check-square "+t[2])&&V(e,"class",s)},i:z,o:z,d(t){t&&O(e)}}}function Bt(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class Mt extends Nt{constructor(t){super(),It(this,t,Bt,jt,_,{size:0,strokeWidth:1,class:2})}}function Rt(t){let e,n,o;return{c(){e=P("svg"),n=P("polyline"),V(n,"points","6 9 12 15 18 9"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",o="feather feather-chevron-down "+t[2])},m(t,o){A(t,e,o),N(e,n)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-chevron-down "+t[2])&&V(e,"class",o)},i:z,o:z,d(t){t&&O(e)}}}function Vt(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class Ut extends Nt{constructor(t){super(),It(this,t,Vt,Rt,_,{size:0,strokeWidth:1,class:2})}}function Ht(t){let e,n,o,s,r;return{c(){e=P("svg"),n=P("path"),o=P("polyline"),s=P("line"),V(n,"d","M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"),V(o,"points","7 10 12 15 17 10"),V(s,"x1","12"),V(s,"y1","15"),V(s,"x2","12"),V(s,"y2","3"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",r="feather feather-download "+t[2])},m(t,r){A(t,e,r),N(e,n),N(e,o),N(e,s)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&r!==(r="feather feather-download "+t[2])&&V(e,"class",r)},i:z,o:z,d(t){t&&O(e)}}}function qt(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class Jt extends Nt{constructor(t){super(),It(this,t,qt,Ht,_,{size:0,strokeWidth:1,class:2})}}function Gt(t){let e,n,o,s,r,i;return{c(){e=P("svg"),n=P("rect"),o=P("rect"),s=P("rect"),r=P("rect"),V(n,"x","3"),V(n,"y","3"),V(n,"width","7"),V(n,"height","7"),V(o,"x","14"),V(o,"y","3"),V(o,"width","7"),V(o,"height","7"),V(s,"x","14"),V(s,"y","14"),V(s,"width","7"),V(s,"height","7"),V(r,"x","3"),V(r,"y","14"),V(r,"width","7"),V(r,"height","7"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",i="feather feather-grid "+t[2])},m(t,i){A(t,e,i),N(e,n),N(e,o),N(e,s),N(e,r)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&i!==(i="feather feather-grid "+t[2])&&V(e,"class",i)},i:z,o:z,d(t){t&&O(e)}}}function Zt(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class Kt extends Nt{constructor(t){super(),It(this,t,Zt,Gt,_,{size:0,strokeWidth:1,class:2})}}function Yt(t){let e,n,o,s,r,i,l,a;return{c(){e=P("svg"),n=P("line"),o=P("line"),s=P("line"),r=P("line"),i=P("line"),l=P("line"),V(n,"x1","8"),V(n,"y1","6"),V(n,"x2","21"),V(n,"y2","6"),V(o,"x1","8"),V(o,"y1","12"),V(o,"x2","21"),V(o,"y2","12"),V(s,"x1","8"),V(s,"y1","18"),V(s,"x2","21"),V(s,"y2","18"),V(r,"x1","3"),V(r,"y1","6"),V(r,"x2","3.01"),V(r,"y2","6"),V(i,"x1","3"),V(i,"y1","12"),V(i,"x2","3.01"),V(i,"y2","12"),V(l,"x1","3"),V(l,"y1","18"),V(l,"x2","3.01"),V(l,"y2","18"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",a="feather feather-list "+t[2])},m(t,a){A(t,e,a),N(e,n),N(e,o),N(e,s),N(e,r),N(e,i),N(e,l)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&a!==(a="feather feather-list "+t[2])&&V(e,"class",a)},i:z,o:z,d(t){t&&O(e)}}}function Qt(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class Xt extends Nt{constructor(t){super(),It(this,t,Qt,Yt,_,{size:0,strokeWidth:1,class:2})}}function te(t){let e,n,o;return{c(){e=P("svg"),n=P("path"),V(n,"d","M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",o="feather feather-maximize "+t[2])},m(t,o){A(t,e,o),N(e,n)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-maximize "+t[2])&&V(e,"class",o)},i:z,o:z,d(t){t&&O(e)}}}function ee(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class ne extends Nt{constructor(t){super(),It(this,t,ee,te,_,{size:0,strokeWidth:1,class:2})}}function oe(t){let e,n,o;return{c(){e=P("svg"),n=P("path"),V(n,"d","M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",o="feather feather-message-circle "+t[2])},m(t,o){A(t,e,o),N(e,n)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-message-circle "+t[2])&&V(e,"class",o)},i:z,o:z,d(t){t&&O(e)}}}function se(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class re extends Nt{constructor(t){super(),It(this,t,se,oe,_,{size:0,strokeWidth:1,class:2})}}function ie(t){let e,n,o;return{c(){e=P("svg"),n=P("path"),V(n,"d","M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",o="feather feather-minimize "+t[2])},m(t,o){A(t,e,o),N(e,n)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-minimize "+t[2])&&V(e,"class",o)},i:z,o:z,d(t){t&&O(e)}}}function le(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class ae extends Nt{constructor(t){super(),It(this,t,le,ie,_,{size:0,strokeWidth:1,class:2})}}function ce(t){let e,n,o;return{c(){e=P("svg"),n=P("line"),V(n,"x1","5"),V(n,"y1","12"),V(n,"x2","19"),V(n,"y2","12"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",o="feather feather-minus "+t[2])},m(t,o){A(t,e,o),N(e,n)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-minus "+t[2])&&V(e,"class",o)},i:z,o:z,d(t){t&&O(e)}}}function de(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class ue extends Nt{constructor(t){super(),It(this,t,de,ce,_,{size:0,strokeWidth:1,class:2})}}function me(t){let e,n,o,s;return{c(){e=P("svg"),n=P("line"),o=P("line"),V(n,"x1","12"),V(n,"y1","5"),V(n,"x2","12"),V(n,"y2","19"),V(o,"x1","5"),V(o,"y1","12"),V(o,"x2","19"),V(o,"y2","12"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",s="feather feather-plus "+t[2])},m(t,s){A(t,e,s),N(e,n),N(e,o)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&s!==(s="feather feather-plus "+t[2])&&V(e,"class",s)},i:z,o:z,d(t){t&&O(e)}}}function fe(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class pe extends Nt{constructor(t){super(),It(this,t,fe,me,_,{size:0,strokeWidth:1,class:2})}}function $e(t){let e,n,o,s,r;return{c(){e=P("svg"),n=P("polyline"),o=P("path"),s=P("rect"),V(n,"points","6 9 6 2 18 2 18 9"),V(o,"d","M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"),V(s,"x","6"),V(s,"y","14"),V(s,"width","12"),V(s,"height","8"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",r="feather feather-printer "+t[2])},m(t,r){A(t,e,r),N(e,n),N(e,o),N(e,s)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&r!==(r="feather feather-printer "+t[2])&&V(e,"class",r)},i:z,o:z,d(t){t&&O(e)}}}function ge(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class he extends Nt{constructor(t){super(),It(this,t,ge,$e,_,{size:0,strokeWidth:1,class:2})}}function ve(t){let e,n,o;return{c(){e=P("svg"),n=P("polygon"),V(n,"points","12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",o="feather feather-star "+t[2])},m(t,o){A(t,e,o),N(e,n)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-star "+t[2])&&V(e,"class",o)},i:z,o:z,d(t){t&&O(e)}}}function we(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class ye extends Nt{constructor(t){super(),It(this,t,we,ve,_,{size:0,strokeWidth:1,class:2})}}function ke(t){let e,n,o;return{c(){e=P("svg"),n=P("path"),V(n,"d","M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",o="feather feather-triangle "+t[2])},m(t,o){A(t,e,o),N(e,n)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-triangle "+t[2])&&V(e,"class",o)},i:z,o:z,d(t){t&&O(e)}}}function xe(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class be extends Nt{constructor(t){super(),It(this,t,xe,ke,_,{size:0,strokeWidth:1,class:2})}}function ze(t){let e,n,o,s;return{c(){e=P("svg"),n=P("line"),o=P("line"),V(n,"x1","18"),V(n,"y1","6"),V(n,"x2","6"),V(n,"y2","18"),V(o,"x1","6"),V(o,"y1","6"),V(o,"x2","18"),V(o,"y2","18"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",s="feather feather-x "+t[2])},m(t,s){A(t,e,s),N(e,n),N(e,o)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&s!==(s="feather feather-x "+t[2])&&V(e,"class",s)},i:z,o:z,d(t){t&&O(e)}}}function Ee(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class Se extends Nt{constructor(t){super(),It(this,t,Ee,ze,_,{size:0,strokeWidth:1,class:2})}}const Ce=t=>t?"(ja)":"(nein)",Te=t=>{const e=Number(t);return isNaN(e)?t:t.toString().includes(".")?(+(Math.round(t+"e+2")+"e-2")).toFixed(2):t},_e=(t,e)=>{const n={...e};return(t.display?.reduce((e,o)=>{let[s,r]=o.split(".");if(r&&t.list?.find(({name:t})=>t===s)&&void 0!==n[s]){const t=`${s}_${r}`;n[t]=n[s][r],s=t}return e.find(t=>t===s)||e.push(s),e},[]).map(t=>{return"boolean"==typeof n[t]?Ce(n[t]):"string"!=typeof(e=n["_"+t]||n[t])||e.length<20||!(o=e.split(" · "))?Te(e):o.map(t=>2===t.split("T").length&&3===t.split("T")[0].split("-").length?new Date(t).toLocaleDateString():t).filter(t=>!!t).join(" · ");var e,o})||t.items.map(t=>"object"===t.type?e["_"+t.name]:"list"===t.type?"":"boolean"===t.type?Ce(e[t.name]):e[t.name])).map(t=>t?.toString().split(" · ").filter(t=>!!t).join(" · ")).filter(t=>!!t).join(" • ")};function De(t){let e,n,o,s;return{c(){e=P("svg"),n=P("circle"),o=P("circle"),s=P("path"),V(n,"cx","165"),V(n,"cy","30"),V(n,"r","24"),V(n,"stroke","currentColor"),V(n,"stroke-width","12"),V(o,"cx","30"),V(o,"cy","30"),V(o,"r","24"),V(o,"stroke","currentColor"),V(o,"stroke-width","12"),V(s,"d","M129.828 32.8284C131.391 31.2663 131.391 28.7337 129.828 27.1716L104.373 1.71573C102.81 0.153633 100.278 0.153633 98.7157 1.71573C97.1536 3.27783 97.1536 5.81049 98.7157 7.37258L121.343 30L98.7157 52.6274C97.1536 54.1895 97.1536 56.7222 98.7157 58.2843C100.278 59.8464 102.81 59.8464 104.373 58.2843L129.828 32.8284ZM60 34L127 34V26L60 26V34Z"),V(s,"fill","currentColor"),V(e,"width","20"),V(e,"height","20"),V(e,"viewBox","0 0 195 60"),V(e,"fill","none"),V(e,"xmlns","http://www.w3.org/2000/svg")},m(t,r){A(t,e,r),N(e,n),N(e,o),N(e,s)},p:z,i:z,o:z,d(t){t&&O(e)}}}class Ie extends Nt{constructor(t){super(),It(this,t,null,De,_,{})}}function Ne(t){let e,n,o;var s=t[3];function r(t){return{props:{size:t[5]}}}return s&&(e=new s(r(t))),{c(){e&&Tt(e.$$.fragment),n=B()},m(t,s){e&&_t(e,t,s),A(t,n,s),o=!0},p(t,o){const i={};if(32&o&&(i.size=t[5]),s!==(s=t[3])){if(e){ht();const t=e;yt(t.$$.fragment,1,0,()=>{Dt(t,1)}),vt()}s?(e=new s(r(t)),Tt(e.$$.fragment),wt(e.$$.fragment,1),_t(e,n.parentNode,n)):e=null}else s&&e.$set(i)},i(t){o||(e&&wt(e.$$.fragment,t),o=!0)},o(t){e&&yt(e.$$.fragment,t),o=!1},d(t){t&&O(n),e&&Dt(e,t)}}}function Ae(t){let e,n;return e=new t[7]({props:{class:"btnChip",small:!0,noPadding:!0,$$slots:{default:[Oe]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};528&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Oe(t){let e;return{c(){e=L(t[4])},m(t,n){A(t,e,n)},p(t,n){16&n&&H(e,t[4])},d(t){t&&O(e)}}}function Fe(t){let e,n,o,s,r,i=t[3]&&Ne(t),l=t[4]&&Ae(t);return{c(){e=W("button"),i&&i.c(),n=j(),l&&l.c(),V(e,"title",t[0]),V(e,"class","action-btns svelte-1hwgny1"),G(e,"btn-workflow",t[1]),G(e,"btn-highlight",t[2]),G(e,"is-starred",t[6])},m(a,c){A(a,e,c),i&&i.m(e,null),N(e,n),l&&l.m(e,null),o=!0,s||(r=M(e,"click",R(t[8])),s=!0)},p(t,[s]){t[3]?i?(i.p(t,s),8&s&&wt(i,1)):(i=Ne(t),i.c(),wt(i,1),i.m(e,n)):i&&(ht(),yt(i,1,1,()=>{i=null}),vt()),t[4]?l?(l.p(t,s),16&s&&wt(l,1)):(l=Ae(t),l.c(),wt(l,1),l.m(e,null)):l&&(ht(),yt(l,1,1,()=>{l=null}),vt()),(!o||1&s)&&V(e,"title",t[0]),2&s&&G(e,"btn-workflow",t[1]),4&s&&G(e,"btn-highlight",t[2]),64&s&&G(e,"is-starred",t[6])},i(t){o||(wt(i),wt(l),o=!0)},o(t){yt(i),yt(l),o=!1},d(t){t&&O(e),i&&i.d(),l&&l.d(),s=!1,r()}}}function We(t,n,o){const{Chip:s}=e;let{title:r=""}=n,{btnWorkflow:i=!1}=n,{btnHighlight:l=!1}=n,{iconComponent:a}=n,{chipContent:c=!1}=n,{size:d="20"}=n,{isStarred:u}=n;return t.$$set=t=>{"title"in t&&o(0,r=t.title),"btnWorkflow"in t&&o(1,i=t.btnWorkflow),"btnHighlight"in t&&o(2,l=t.btnHighlight),"iconComponent"in t&&o(3,a=t.iconComponent),"chipContent"in t&&o(4,c=t.chipContent),"size"in t&&o(5,d=t.size),"isStarred"in t&&o(6,u=t.isStarred)},[r,i,l,a,c,d,u,s,function(e){tt(t,e)}]}class Pe extends Nt{constructor(t){var e;super(),document.getElementById("svelte-1hwgny1-style")||((e=W("style")).id="svelte-1hwgny1-style",e.textContent=".action-btns.svelte-1hwgny1{align-items:center;cursor:pointer;display:flex;font-weight:500;outline:none;background:none;border-radius:1.5625em;font-size:1rem;padding:0.5em 0.8em;border:1px solid #326173;color:#326173;position:relative}.action-btns.svelte-1hwgny1 .btnChip{position:absolute;padding:0.2em !important;min-width:1.2em !important;background-color:white !important;font-style:italic;border:1px solid black;color:#111212 !important;font-weight:800 !important;font-size:0.8em !important;transform:translate(18px, -10px)}.action-btns.svelte-1hwgny1:hover,.action-btns.svelte-1hwgny1:focus{background:rgba(50, 97, 115, 0.05)}button.is-starred svg.feather-star{fill:#F2CF63}.btn-workflow.svelte-1hwgny1{background-color:#dfaff9}.btn-workflow.svelte-1hwgny1:hover{background-color:hsl(279, 100%, 83%)}.btn-highlight.svelte-1hwgny1{background-color:#afeeee}.btn-highlight.svelte-1hwgny1:hover{background-color:hsl(180, 100%, 80%)}",N(document.head,e)),It(this,t,We,Fe,_,{title:0,btnWorkflow:1,btnHighlight:2,iconComponent:3,chipContent:4,size:5,isStarred:6})}}function Le(t){t[52]=t[55].items,t[53]=t[55].list,t[54]=t[55].schema}function je(t,e,n){const o=t.slice();return o[57]=e[n],o}function Be(t,e,n){const o=t.slice();return o[60]=e[n],o}function Me(t,e,n){const o=t.slice();return o[60]=e[n],o}function Re(t){let e,n,o,s,r,i,l,a,c,d,u,m,f,p,$,g,h,v,w,y,k,x,b,z,E=t[2].event.domain+"";const S=[Ue,Ve],_=[];function D(t,e){return t[2].data?1:0}o=D(t),s=_[o]=S[o](t);const F=[Ze,Ge],P=[];a=function(t){return t[12]?1:0}(t),c=P[a]=F[a](t);let B=!t[12]&&function(t){let e,n,o,s,r,i,l,a,c=(On(t[2].status)||t[25](t[2].event.stream.task,t[2].event.stream.step))+"";return{c(){e=W("td"),n=W("div"),o=L(c),s=j(),r=W("div"),V(n,"class",i=I((t[2].data,"display-full"))+" svelte-1t951ai"),V(e,"class","svelte-1t951ai")},m(i,c){A(i,e,c),N(e,n),N(n,o),N(n,s),N(n,r),l||(a=M(e,"click",R(t[31])),l=!0)},p(t,e){4&e[0]&&c!==(c=(On(t[2].status)||t[25](t[2].event.stream.task,t[2].event.stream.step))+"")&&H(o,c),4&e[0]&&i!==(i=I((t[2].data,"display-full"))+" svelte-1t951ai")&&V(n,"class",i)},d(t){t&&O(e),l=!1,a()}}}(t),U=null===t[2].data&&1===t[4]&&Ye(t);const q=[Xe,Qe],J=[];function G(t,e){return null!==t[2].data||t[2].event.solitaire||t[2].event.matrix||t[2].event.report?t[2].data?1:-1:0}return~(v=G(t))&&(w=J[v]=q[v](t)),{c(){e=W("tr"),n=W("td"),s.c(),i=j(),l=W("td"),c.c(),d=j(),u=W("td"),m=L(E),f=j(),B&&B.c(),p=j(),$=W("td"),g=W("div"),U&&U.c(),h=j(),w&&w.c(),V(n,"class",r="domain domain_"+t[3].indexOf(t[2].event.domain)+" "+(t[2].data?"domain_expanded":"")+" svelte-1t951ai"),V(l,"class","svelte-1t951ai"),V(u,"class","svelte-1t951ai"),V(g,"class","action-column--container display-full svelte-1t951ai"),V($,"class","action-column svelte-1t951ai"),V(e,"id",y=t[2].data?void 0:t[2].event.name),V(e,"class",k="task_cursor"+(null===t[2].data?" empty lined":" lined")+" svelte-1t951ai")},m(s,r){A(s,e,r),N(e,n),_[o].m(n,null),N(e,i),N(e,l),P[a].m(l,null),N(e,d),N(e,u),N(u,m),N(e,f),B&&B.m(e,null),N(e,p),N(e,$),N($,g),U&&U.m(g,null),N(g,h),~v&&J[v].m(g,null),x=!0,b||(z=[M(n,"click",function(){T(t[24](t[2]))&&t[24](t[2]).apply(this,arguments)}),M(l,"click",R(t[29])),M(u,"click",R(t[30]))],b=!0)},p(i,l){let a=o;o=D(t=i),o===a?_[o].p(t,l):(ht(),yt(_[a],1,1,()=>{_[a]=null}),vt(),s=_[o],s?s.p(t,l):(s=_[o]=S[o](t),s.c()),wt(s,1),s.m(n,null)),(!x||12&l[0]&&r!==(r="domain domain_"+t[3].indexOf(t[2].event.domain)+" "+(t[2].data?"domain_expanded":"")+" svelte-1t951ai"))&&V(n,"class",r),c.p(t,l),(!x||4&l[0])&&E!==(E=t[2].event.domain+"")&&H(m,E),t[12]||B.p(t,l),null===t[2].data&&1===t[4]?U?(U.p(t,l),20&l[0]&&wt(U,1)):(U=Ye(t),U.c(),wt(U,1),U.m(g,h)):U&&(ht(),yt(U,1,1,()=>{U=null}),vt());let d=v;v=G(t),v===d?~v&&J[v].p(t,l):(w&&(ht(),yt(J[d],1,1,()=>{J[d]=null}),vt()),~v?(w=J[v],w?w.p(t,l):(w=J[v]=q[v](t),w.c()),wt(w,1),w.m(g,null)):w=null),(!x||4&l[0]&&y!==(y=t[2].data?void 0:t[2].event.name))&&V(e,"id",y),(!x||4&l[0]&&k!==(k="task_cursor"+(null===t[2].data?" empty lined":" lined")+" svelte-1t951ai"))&&V(e,"class",k)},i(t){x||(wt(s),wt(c),wt(U),wt(w),x=!0)},o(t){yt(s),yt(c),yt(U),yt(w),x=!1},d(t){t&&O(e),_[o].d(),P[a].d(),B&&B.d(),U&&U.d(),~v&&J[v].d(),b=!1,C(z)}}}function Ve(t){let e,n;return e=new ue({}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p:z,i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Ue(t){let e,n,o=t[2].count&&He(t);return{c(){o&&o.c(),e=B()},m(t,s){o&&o.m(t,s),A(t,e,s),n=!0},p(t,n){t[2].count?o?(o.p(t,n),4&n[0]&&wt(o,1)):(o=He(t),o.c(),wt(o,1),o.m(e.parentNode,e)):o&&(ht(),yt(o,1,1,()=>{o=null}),vt())},i(t){n||(wt(o),n=!0)},o(t){yt(o),n=!1},d(t){o&&o.d(t),t&&O(e)}}}function He(t){let e,n,o,s;const r=[Je,qe],i=[];function l(t,e){return t[1]===t[2].event.name?0:1}return e=l(t),n=i[e]=r[e](t),{c(){n.c(),o=B()},m(t,n){i[e].m(t,n),A(t,o,n),s=!0},p(t,s){let a=e;e=l(t),e!==a&&(ht(),yt(i[a],1,1,()=>{i[a]=null}),vt(),n=i[e],n||(n=i[e]=r[e](t),n.c()),wt(n,1),n.m(o.parentNode,o))},i(t){s||(wt(n),s=!0)},o(t){yt(n),s=!1},d(t){i[e].d(t),t&&O(o)}}}function qe(t){let e,n;return e=new pe({}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Je(t){let e,n;return e=new ue({}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Ge(t){let e,n,o=Fn(t[2])+"";return{c(){e=W("h4"),n=L(o)},m(t,o){A(t,e,o),N(e,n)},p(t,e){4&e[0]&&o!==(o=Fn(t[2])+"")&&H(n,o)},i:z,o:z,d(t){t&&O(e)}}}function Ze(t){let e,o;return e=new n({props:{text:t[2].event.shortDescription||t[2].event.description,right:!0,$$slots:{default:[Ke]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,n){const o={};4&n[0]&&(o.text=t[2].event.shortDescription||t[2].event.description),4&n[0]|32&n[2]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Dt(e,t)}}}function Ke(t){let e,n,o=Fn(t[2])+"";return{c(){e=W("h4"),n=L(o)},m(t,o){A(t,e,o),N(e,n)},p(t,e){4&e[0]&&o!==(o=Fn(t[2])+"")&&H(n,o)},d(t){t&&O(e)}}}function Ye(t){let e,n;return e=new Pe({props:{iconComponent:ye,isStarred:t[0].find(t[32])}}),e.$on("click",t[33]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};5&n[0]&&(o.isStarred=t[0].find(t[32])),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Qe(t){let e,o,s,r,i,l,a,c,d,u,m,f,p,$=t[2].directReport?.report&&t[27](t[2].directReport.report.authorization),g=t[2].event.approval&&tn(t);i=new n({props:{text:t[14].title,$$slots:{default:[nn]},$$scope:{ctx:t}}}),c=new n({props:{text:"Unterhaltung",$$slots:{default:[on]},$$scope:{ctx:t}}}),m=new n({props:{text:"Dokumente",$$slots:{default:[sn]},$$scope:{ctx:t}}});let h=$&&rn(t);return{c(){e=W("table"),o=W("tr"),g&&g.c(),s=j(),r=W("td"),Tt(i.$$.fragment),l=j(),a=W("td"),Tt(c.$$.fragment),d=j(),u=W("td"),Tt(m.$$.fragment),f=j(),h&&h.c(),V(r,"class","svelte-1t951ai"),V(a,"class","svelte-1t951ai"),V(u,"class","svelte-1t951ai"),V(o,"class","svelte-1t951ai"),V(e,"class","buttonTable svelte-1t951ai")},m(t,n){A(t,e,n),N(e,o),g&&g.m(o,null),N(o,s),N(o,r),_t(i,r,null),N(o,l),N(o,a),_t(c,a,null),N(o,d),N(o,u),_t(m,u,null),N(o,f),h&&h.m(o,null),p=!0},p(t,e){t[2].event.approval?g?(g.p(t,e),4&e[0]&&wt(g,1)):(g=tn(t),g.c(),wt(g,1),g.m(o,s)):g&&(ht(),yt(g,1,1,()=>{g=null}),vt());const n={};4&e[0]|32&e[2]&&(n.$$scope={dirty:e,ctx:t}),i.$set(n);const r={};4&e[0]|32&e[2]&&(r.$$scope={dirty:e,ctx:t}),c.$set(r);const l={};4&e[0]|32&e[2]&&(l.$$scope={dirty:e,ctx:t}),m.$set(l),4&e[0]&&($=t[2].directReport?.report&&t[27](t[2].directReport.report.authorization)),$?h?(h.p(t,e),4&e[0]&&wt(h,1)):(h=rn(t),h.c(),wt(h,1),h.m(o,null)):h&&(ht(),yt(h,1,1,()=>{h=null}),vt())},i(t){p||(wt(g),wt(i.$$.fragment,t),wt(c.$$.fragment,t),wt(m.$$.fragment,t),wt(h),p=!0)},o(t){yt(g),yt(i.$$.fragment,t),yt(c.$$.fragment,t),yt(m.$$.fragment,t),yt(h),p=!1},d(t){t&&O(e),g&&g.d(),Dt(i),Dt(c),Dt(m),h&&h.d()}}}function Xe(t){let e,o,s,r,i,l,a=t[2].event.directEdit&&an(t),c=t[2].event.allowFutureUpdate&&dn(t);s=new n({props:{text:"Suchen",$$slots:{default:[gn]},$$scope:{ctx:t}}});let d=t[2].report&&hn(t);return{c(){a&&a.c(),e=j(),c&&c.c(),o=j(),Tt(s.$$.fragment),r=j(),d&&d.c(),i=B()},m(t,n){a&&a.m(t,n),A(t,e,n),c&&c.m(t,n),A(t,o,n),_t(s,t,n),A(t,r,n),d&&d.m(t,n),A(t,i,n),l=!0},p(t,n){t[2].event.directEdit?a?(a.p(t,n),4&n[0]&&wt(a,1)):(a=an(t),a.c(),wt(a,1),a.m(e.parentNode,e)):a&&(ht(),yt(a,1,1,()=>{a=null}),vt()),t[2].event.allowFutureUpdate?c?(c.p(t,n),4&n[0]&&wt(c,1)):(c=dn(t),c.c(),wt(c,1),c.m(o.parentNode,o)):c&&(ht(),yt(c,1,1,()=>{c=null}),vt());const r={};196&n[0]|32&n[2]&&(r.$$scope={dirty:n,ctx:t}),s.$set(r),t[2].report?d?(d.p(t,n),4&n[0]&&wt(d,1)):(d=hn(t),d.c(),wt(d,1),d.m(i.parentNode,i)):d&&(ht(),yt(d,1,1,()=>{d=null}),vt())},i(t){l||(wt(a),wt(c),wt(s.$$.fragment,t),wt(d),l=!0)},o(t){yt(a),yt(c),yt(s.$$.fragment,t),yt(d),l=!1},d(t){a&&a.d(t),t&&O(e),c&&c.d(t),t&&O(o),Dt(s,t),t&&O(r),d&&d.d(t),t&&O(i)}}}function tn(t){let e,o,s;return o=new n({props:{text:t[13],$$slots:{default:[en]},$$scope:{ctx:t}}}),{c(){e=W("td"),Tt(o.$$.fragment),V(e,"class","svelte-1t951ai")},m(t,n){A(t,e,n),_t(o,e,null),s=!0},p(t,e){const n={};4&e[0]|32&e[2]&&(n.$$scope={dirty:e,ctx:t}),o.$set(n)},i(t){s||(wt(o.$$.fragment,t),s=!0)},o(t){yt(o.$$.fragment,t),s=!1},d(t){t&&O(e),Dt(o)}}}function en(t){let e,n;return e=new Pe({props:{btnHighlight:!t[2].approval,iconComponent:Mt}}),e.$on("click",t[38]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};4&n[0]&&(o.btnHighlight=!t[2].approval),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function nn(t){let e,n;return e=new Pe({props:{btnWorkflow:1===t[14].numberOfFollowers,btnHighlight:t[14].numberOfFollowers>1,iconComponent:Ie,chipContent:t[14].numberOfFollowers}}),e.$on("click",t[39]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p:z,i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function on(t){let e,n;return e=new Pe({props:{btnHighlight:t[2].chat,iconComponent:re,chipContent:t[2].chat}}),e.$on("click",t[40]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};4&n[0]&&(o.btnHighlight=t[2].chat),4&n[0]&&(o.chipContent=t[2].chat),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function sn(t){let e,n;return e=new Pe({props:{btnHighlight:t[2].report,iconComponent:Jt,chipContent:t[2].report}}),e.$on("click",t[41]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};4&n[0]&&(o.btnHighlight=t[2].report),4&n[0]&&(o.chipContent=t[2].report),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function rn(t){let e,o,s;return o=new n({props:{text:t[2].directReport.report.identity.designation,$$slots:{default:[ln]},$$scope:{ctx:t}}}),{c(){e=W("td"),Tt(o.$$.fragment),V(e,"class","svelte-1t951ai")},m(t,n){A(t,e,n),_t(o,e,null),s=!0},p(t,e){const n={};4&e[0]&&(n.text=t[2].directReport.report.identity.designation),4&e[0]|32&e[2]&&(n.$$scope={dirty:e,ctx:t}),o.$set(n)},i(t){s||(wt(o.$$.fragment,t),s=!0)},o(t){yt(o.$$.fragment,t),s=!1},d(t){t&&O(e),Dt(o)}}}function ln(t){let e,n;return e=new Pe({props:{iconComponent:he}}),e.$on("click",t[42]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p:z,i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function an(t){let e,o;return e=new n({props:{text:"Erfassen",$$slots:{default:[cn]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,n){const o={};4&n[0]|32&n[2]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Dt(e,t)}}}function cn(t){let e,n;return e=new Pe({props:{iconComponent:pe}}),e.$on("click",t[34]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p:z,i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function dn(t){let e,n,o,s={ctx:t,current:null,token:null,hasCatch:!1,pending:$n,then:mn,catch:un,value:66,blocks:[,,,]};return kt(n=t[16](t[2]),s),{c(){e=B(),s.block.c()},m(t,n){A(t,e,n),s.block.m(t,s.anchor=n),s.mount=()=>e.parentNode,s.anchor=e,o=!0},p(e,o){t=e,s.ctx=t,4&o[0]&&n!==(n=t[16](t[2]))&&kt(n,s)||xt(s,t,o)},i(t){o||(wt(s.block),o=!0)},o(t){for(let t=0;t<3;t+=1){yt(s.blocks[t])}o=!1},d(t){t&&O(e),s.block.d(t),s.token=null,s=null}}}function un(t){return{c:z,m:z,p:z,i:z,o:z,d:z}}function mn(t){let e,n,o=t[66]&&fn(t);return{c(){o&&o.c(),e=B()},m(t,s){o&&o.m(t,s),A(t,e,s),n=!0},p(t,n){t[66]?o?(o.p(t,n),4&n[0]&&wt(o,1)):(o=fn(t),o.c(),wt(o,1),o.m(e.parentNode,e)):o&&(ht(),yt(o,1,1,()=>{o=null}),vt())},i(t){n||(wt(o),n=!0)},o(t){yt(o),n=!1},d(t){o&&o.d(t),t&&O(e)}}}function fn(t){let e,o;return e=new n({props:{text:"Geplante Änderungen",$$slots:{default:[pn]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,n){const o={};4&n[0]|32&n[2]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Dt(e,t)}}}function pn(t){let e,n;return e=new Pe({props:{iconComponent:Lt}}),e.$on("click",t[35]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p:z,i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function $n(t){return{c:z,m:z,p:z,i:z,o:z,d:z}}function gn(t){let e,n;return e=new Pe({props:{iconComponent:Xt}}),e.$on("click",t[36]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p:z,i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function hn(t){let e,n,o,s={ctx:t,current:null,token:null,hasCatch:!1,pending:xn,then:wn,catch:vn,value:65,blocks:[,,,]};return kt(n=t[26](t[2].report),s),{c(){e=B(),s.block.c()},m(t,n){A(t,e,n),s.block.m(t,s.anchor=n),s.mount=()=>e.parentNode,s.anchor=e,o=!0},p(e,o){t=e,s.ctx=t,4&o[0]&&n!==(n=t[26](t[2].report))&&kt(n,s)||xt(s,t,o)},i(t){o||(wt(s.block),o=!0)},o(t){for(let t=0;t<3;t+=1){yt(s.blocks[t])}o=!1},d(t){t&&O(e),s.block.d(t),s.token=null,s=null}}}function vn(t){return{c:z,m:z,p:z,i:z,o:z,d:z}}function wn(t){let e,n,o=t[65]&&yn(t);return{c(){o&&o.c(),e=B()},m(t,s){o&&o.m(t,s),A(t,e,s),n=!0},p(t,n){t[65]?o?(o.p(t,n),4&n[0]&&wt(o,1)):(o=yn(t),o.c(),wt(o,1),o.m(e.parentNode,e)):o&&(ht(),yt(o,1,1,()=>{o=null}),vt())},i(t){n||(wt(o),n=!0)},o(t){yt(o),n=!1},d(t){o&&o.d(t),t&&O(e)}}}function yn(t){let e,o;return e=new n({props:{text:t[2].reportName,$$slots:{default:[kn]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,n){const o={};4&n[0]&&(o.text=t[2].reportName),4&n[0]|32&n[2]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Dt(e,t)}}}function kn(t){let e,n;return e=new Pe({props:{iconComponent:he}}),e.$on("click",t[37]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p:z,i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function xn(t){return{c:z,m:z,p:z,i:z,o:z,d:z}}function bn(t){let e,n,o={ctx:t,current:null,token:null,hasCatch:!1,pending:In,then:En,catch:zn,value:55,blocks:[,,,]};return kt(t[18](),o),{c(){e=B(),o.block.c()},m(t,s){A(t,e,s),o.block.m(t,o.anchor=s),o.mount=()=>e.parentNode,o.anchor=e,n=!0},p(e,n){xt(o,t=e,n)},i(t){n||(wt(o.block),n=!0)},o(t){for(let t=0;t<3;t+=1){yt(o.blocks[t])}n=!1},d(t){t&&O(e),o.block.d(t),o.token=null,o=null}}}function zn(t){return{c:z,m:z,p:z,i:z,o:z,d:z}}function En(t){let e,n,o;function s(e){t[43](e)}Le(t);let r={$$slots:{default:[Dn,({closeCallback:t})=>({56:t}),({closeCallback:t})=>[0,t?33554432:0]]},$$scope:{ctx:t}};return void 0!==t[5]&&(r.open=t[5]),e=new t[8]({props:r}),nt.push(()=>Ct(e,"open",s)),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,o){Le(t);const s={};33554432&o[1]|32&o[2]&&(s.$$scope={dirty:o,ctx:t}),!n&&32&o[0]&&(n=!0,s.open=t[5],dt(()=>n=!1)),e.$set(s)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Dt(e,t)}}}function Sn(t){let e,n=t[60].active&&function(t){let e,n,o=t[60]?.designation+"";return{c(){e=W("th"),n=L(o),V(e,"class","svelte-1t951ai")},m(t,o){A(t,e,o),N(e,n)},p:z,d(t){t&&O(e)}}}(t);return{c(){n&&n.c(),e=B()},m(t,o){n&&n.m(t,o),A(t,e,o)},p(t,e){t[60].active&&n.p(t,e)},d(t){n&&n.d(t),t&&O(e)}}}function Cn(t){let e,n=t[60].active&&function(t){let e,n,o=t[19](t[57],t[60])+"";return{c(){e=W("td"),n=L(o),V(e,"class",I(t[60].type)+" svelte-1t951ai")},m(t,o){A(t,e,o),N(e,n)},p:z,d(t){t&&O(e)}}}(t);return{c(){n&&n.c(),e=B()},m(t,o){n&&n.m(t,o),A(t,e,o)},p(t,e){t[60].active&&n.p(t,e)},d(t){n&&n.d(t),t&&O(e)}}}function Tn(t){let e,n,o,s,r=t[52],i=[];for(let e=0;e<r.length;e+=1)i[e]=Cn(Be(t,r,e));return{c(){e=W("tr");for(let t=0;t<i.length;t+=1)i[t].c();n=j(),V(e,"class","svelte-1t951ai")},m(r,l){A(r,e,l);for(let t=0;t<i.length;t+=1)i[t].m(e,null);N(e,n),o||(s=M(e,"click",t[15](t[54],t[57])),o=!0)},p(o,s){if(t=o,786432&s[0]){let o;for(r=t[52],o=0;o<r.length;o+=1){const l=Be(t,r,o);i[o]?i[o].p(l,s):(i[o]=Cn(l),i[o].c(),i[o].m(e,n))}for(;o<i.length;o+=1)i[o].d(1);i.length=r.length}},d(t){t&&O(e),F(i,t),o=!1,s()}}}function _n(t){let e,n,o,s,r=t[52]?.length&&function(t){let e,n,o=t[52],s=[];for(let e=0;e<o.length;e+=1)s[e]=Sn(Me(t,o,e));return{c(){e=W("thead"),n=W("tr");for(let t=0;t<s.length;t+=1)s[t].c();V(n,"class","svelte-1t951ai"),V(e,"class","svelte-1t951ai")},m(t,o){A(t,e,o),N(e,n);for(let t=0;t<s.length;t+=1)s[t].m(n,null)},p(t,e){if(262144&e[0]){let r;for(o=t[52],r=0;r<o.length;r+=1){const i=Me(t,o,r);s[r]?s[r].p(i,e):(s[r]=Sn(i),s[r].c(),s[r].m(n,null))}for(;r<s.length;r+=1)s[r].d(1);s.length=o.length}},d(t){t&&O(e),F(s,t)}}}(t),i=t[53]?.length&&function(t){let e,n=t[53],o=[];for(let e=0;e<n.length;e+=1)o[e]=Tn(je(t,n,e));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=B()},m(t,n){for(let e=0;e<o.length;e+=1)o[e].m(t,n);A(t,e,n)},p(t,s){if(819200&s[0]){let r;for(n=t[53],r=0;r<n.length;r+=1){const i=je(t,n,r);o[r]?o[r].p(i,s):(o[r]=Tn(i),o[r].c(),o[r].m(e.parentNode,e))}for(;r<o.length;r+=1)o[r].d(1);o.length=n.length}},d(t){F(o,t),t&&O(e)}}}(t);return{c(){e=W("div"),n=W("table"),r&&r.c(),o=j(),s=W("tbody"),i&&i.c(),V(n,"striped",""),V(n,"class","svelte-1t951ai"),V(e,"class","eList svelte-1t951ai")},m(t,l){A(t,e,l),N(e,n),r&&r.m(n,null),N(n,o),N(n,s),i&&i.m(s,null)},p(t,e){t[52]?.length&&r.p(t,e),t[53]?.length&&i.p(t,e)},d(t){t&&O(e),r&&r.d(),i&&i.d()}}}function Dn(t){let e,n;return e=new t[9]({props:{class:"help2",title:"Geplante Änderungen",closeCallback:t[56],$$slots:{default:[_n]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};33554432&n[1]&&(o.closeCallback=t[56]),32&n[2]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function In(t){return{c:z,m:z,p:z,i:z,o:z,d:z}}function Nn(t){let e,n,o,s=(!t[2].data||t[1]===t[2].event.name)&&Re(t),r=t[5]&&bn(t);return{c(){s&&s.c(),e=j(),r&&r.c(),n=B()},m(t,i){s&&s.m(t,i),A(t,e,i),r&&r.m(t,i),A(t,n,i),o=!0},p(t,o){t[2].data&&t[1]!==t[2].event.name?s&&(ht(),yt(s,1,1,()=>{s=null}),vt()):s?(s.p(t,o),6&o[0]&&wt(s,1)):(s=Re(t),s.c(),wt(s,1),s.m(e.parentNode,e)),t[5]?r?(r.p(t,o),32&o[0]&&wt(r,1)):(r=bn(t),r.c(),wt(r,1),r.m(n.parentNode,n)):r&&(ht(),yt(r,1,1,()=>{r=null}),vt())},i(t){o||(wt(s),wt(r),o=!0)},o(t){yt(s),yt(r),o=!1},d(t){s&&s.d(t),t&&O(e),r&&r.d(t),t&&O(n)}}}const An={New:"Eröffnet",WaitingForApproval:"Zu visieren",Ready:"Bereit für nächsten Schritt",Closing:"Wartet auf Abschluss",Closed:"Abgeschlossen"},On=t=>An[t]||"",Fn=t=>t.data?.item?_e(t.schema,t.data.item):t.event?.title+(t.count?" ("+t.count+")":"");function Wn(t,n,o){let s,r;D(t,i,t=>o(7,r=t));const{Modal:c,Dialog:d}=e,{loggedIn:u}=p;D(t,u,t=>o(6,s=t));const m=X();let f,{task:$}=n,{domains:g}=n,{isStarred:h}=n,{starredTasks:v}=n,w=!1,{openSelection:y=""}=n;const k=window.location.pathname.startsWith("/reporting")||window.location.pathname.startsWith("/screen"),x=$.event?.approval?.length&&$.event.approval.at(0).description||"Visum",b={title:1===$.workflow?.numberOfFollowers?$.workflow.designation:"Nachfolge Tasks",numberOfFollowers:$.workflow?$.workflow.numberOfFollowers:0},z=t=>{f=t,o(5,w=!0)},E=(t,e)=>e.find(e=>e.docId===t);function S(t){t.event.solitaire?l.getSolitaire(t.event.class).then(e=>{const n=e.length&&e[0]._id;if(!n)return C(t,"task");l.getTaskByDocId(n).then(t=>C(t.task,"task"))}):t.data||t.event.directEdit?C(t,"task"):Fs(t,s.user,r,m)}function C(t,e,n=!1){m("rowClicked",{task:t,tab:e,event:n})}function T(t){v.find(e=>e==t.event.id)?o(0,v=v.filter(e=>e!=t.event.id)):o(0,v=v.concat(t.event.id))}function _(t){C(t,"workflow")}const I={weekday:"short",year:"numeric",month:"short",day:"numeric"};const N={AgreementPreparation:"Anfrage Vereinbarung",AgreementExecution:"Vereinbarung",DeliveryPreparation:"Vorbereitung Lieferung/DL",DeliveryExecution:"Ausführung Lieferung/DL",CompensationPreparation:"Verrechnung",CompensationExecution:"Zahlung"},A=t=>r.some(e=>t.find(t=>t.role===e));return t.$$set=t=>{"task"in t&&o(2,$=t.task),"domains"in t&&o(3,g=t.domains),"isStarred"in t&&o(4,h=t.isStarred),"starredTasks"in t&&o(0,v=t.starredTasks),"openSelection"in t&&o(1,y=t.openSelection)},t.$$.update=()=>{4&t.$$.dirty[0]&&function(t){const e=new Date(t),n=JSON.parse(a.getItem("Locale"));e.toLocaleDateString(n.id,I)}($?.dueDate)},[v,y,$,g,h,w,s,r,c,d,u,m,k,x,b,(t,e)=>()=>{window.open(`/task/${t.id}/${e._id}/task?view=standalone&showUpdate=true`,"_blank")},async t=>{const e=await l.getSectionView("_update",{_table:t.event.class,_done:!1});return e?.length},z,async()=>{const t=await l.getSchemaByClass(f.event.class),e=[{type:"string",name:"_id",designation:"",active:!1},{type:"string",name:"display",designation:t.identity.designation,active:!0},{type:"date",name:"next",designation:"Nächste Änderung",active:!0}],n=await l.getSectionView("_update",{_table:f.event.class,_done:!1}),o=new Set(n.map(t=>t._recId)),s=Array.from(o),r=await l.getSectionView(f.event.class,{_id:{$in:s}},!0),i=await l.getSectionView("_task",{docId:{$in:s}});return{items:e,list:r.map(e=>({_id:E(e._id,i)._id,display:_e(t,e),next:n.find(t=>t._recId===e._id)?._date||""})),schema:t}},(t,e)=>{if(!e)return;let n=((t,e)=>{try{return t.split(".").reduce((t,e)=>t[e],e)}catch(t){return""}})(e.name,t);return"date"===e.type&&(n=new Date(n).toLocaleDateString()),"number"===e.type&&(n=Number(n)?Number(n).toLocaleString(lang,{minimumFractionDigits:e.properties?.decimals||e.decimals||0,maximumFractionDigits:e.properties?.decimals||e.decimals||0}):""),"boolean"===e.type&&(n=n?"Ja":"Nein"),n},S,C,T,_,t=>{const e=t.event.name;if(0!==t.count)return y===e?(o(1,y=""),void m("rowScroll",t)):void o(1,y=e)},(t,e)=>N[t+e]||"Information",async t=>{const e=await l.getEvent(t),{authorization:n}=e;return A(n)},A,()=>$.data?$.event.title:"",()=>S($),()=>S($),()=>S($),t=>t===$.event.id,()=>T($),()=>C($,"task"),()=>z($),()=>Fs($,s.user,r,m),()=>Ws($.report),()=>C($,"visum"),()=>_($),()=>C($,"collab"),()=>C($,"report"),()=>function(t){const e=t.id,n=`/reporting/${t.directReport.report._id}/${e}?view=standalone`;window.open(n)}($),function(t){w=t,o(5,w)}]}class Pn extends Nt{constructor(t){var e;super(),document.getElementById("svelte-1t951ai-style")||((e=W("style")).id="svelte-1t951ai-style",e.textContent=".buttonTable.svelte-1t951ai td.svelte-1t951ai{padding:0.25em;border-bottom:0;text-align:center}td.svelte-1t951ai.svelte-1t951ai{padding:0 0.5em 0 1em;border-bottom:1px solid #ccc;vertical-align:middle}.lined.svelte-1t951ai.svelte-1t951ai:nth-child(2n){background-color:#eee}.lined.svelte-1t951ai.svelte-1t951ai:nth-child(2n+1){background-color:#f7f7f7}.lined.svelte-1t951ai.svelte-1t951ai:hover{background-color:#ddd}.empty.svelte-1t951ai.svelte-1t951ai{background-color:#f7f7f7;font-style:italic}.task_cursor.svelte-1t951ai.svelte-1t951ai{cursor:pointer}.task_title.svelte-1t951ai.svelte-1t951ai{display:inline-block;margin:0;margin-top:-1.5em;margin-bottom:0.5em;opacity:0.75;font-size:15px;font-style:italic}.display-full.svelte-1t951ai.svelte-1t951ai{width:max-content}.action-column.svelte-1t951ai .action-column--container.svelte-1t951ai{display:flex;flex-flow:row wrap;gap:0.4em}thead.svelte-1t951ai.svelte-1t951ai{color:black !important}.domain_expanded.svelte-1t951ai.svelte-1t951ai{padding-left:1em !important;padding-right:0 !important}.domain.svelte-1t951ai.svelte-1t951ai{min-width:1em;width:1em;padding:0.5em;background-color:#e2e2e2;height:1em}.domain_0.svelte-1t951ai.svelte-1t951ai{background-color:#A9C0CE}.domain_1.svelte-1t951ai.svelte-1t951ai{background-color:#7E7F80}.domain_2.svelte-1t951ai.svelte-1t951ai{background-color:#55C1D9}.domain_3.svelte-1t951ai.svelte-1t951ai{background-color:#66A649}.domain_4.svelte-1t951ai.svelte-1t951ai{background-color:#F2CF63}.domain_5.svelte-1t951ai.svelte-1t951ai{background-color:#BF5A50}.txt-center.svelte-1t951ai.svelte-1t951ai{text-align:center}.eList.svelte-1t951ai.svelte-1t951ai{margin-top:1em;margin-bottom:1em;height:fit-content;min-height:50vh;max-height:75vh;overflow-y:scroll;overflow-x:auto}eList table.svelte-1t951ai thead.svelte-1t951ai{position:sticky;top:0;background:#326173;color:white}eList table.svelte-1t951ai thead tr.svelte-1t951ai{height:2.3em}eList table.svelte-1t951ai tbody tr.svelte-1t951ai{height:2.75em !important;cursor:pointer}th.svelte-1t951ai.svelte-1t951ai,td.svelte-1t951ai.svelte-1t951ai{padding-left:0.4em;padding-right:0.4em}td.number.svelte-1t951ai.svelte-1t951ai{text-align:end}div.dialog.help2{position:relative;margin-top:0 !important}",N(document.head,e)),It(this,t,Wn,Nn,_,{task:2,domains:3,isStarred:4,starredTasks:0,openSelection:1,getTitle:28},[-1,-1,-1])}get getTitle(){return this.$$.ctx[28]}}const{document:Ln}=bt;function jn(t,e,n){const o=t.slice();return o[49]=e[n],o}function Bn(t,e,n){const o=t.slice();return o[52]=e[n],o}function Mn(t,e,n){const o=t.slice();return o[55]=e[n],o}function Rn(t){let e,n,o,s,r,i,l,a=t[4]&&Vn(t),c=t[6]&&Gn(t),d=t[3]&&Xn(t),u=t[2]&&io(t),m=t[5]&&uo(t),f=!t[9]&&$o(t);return{c(){e=W("div"),a&&a.c(),n=j(),c&&c.c(),o=j(),d&&d.c(),s=j(),u&&u.c(),r=j(),m&&m.c(),i=j(),f&&f.c(),V(e,"class","filter--area svelte-2yy2vd")},m(t,p){A(t,e,p),a&&a.m(e,null),N(e,n),c&&c.m(e,null),N(e,o),d&&d.m(e,null),N(e,s),u&&u.m(e,null),N(e,r),m&&m.m(e,null),N(e,i),f&&f.m(e,null),l=!0},p(t,l){t[4]?a?(a.p(t,l),16&l[0]&&wt(a,1)):(a=Vn(t),a.c(),wt(a,1),a.m(e,n)):a&&(ht(),yt(a,1,1,()=>{a=null}),vt()),t[6]?c?(c.p(t,l),64&l[0]&&wt(c,1)):(c=Gn(t),c.c(),wt(c,1),c.m(e,o)):c&&(ht(),yt(c,1,1,()=>{c=null}),vt()),t[3]?d?(d.p(t,l),8&l[0]&&wt(d,1)):(d=Xn(t),d.c(),wt(d,1),d.m(e,s)):d&&(ht(),yt(d,1,1,()=>{d=null}),vt()),t[2]?u?(u.p(t,l),4&l[0]&&wt(u,1)):(u=io(t),u.c(),wt(u,1),u.m(e,r)):u&&(ht(),yt(u,1,1,()=>{u=null}),vt()),t[5]?m?(m.p(t,l),32&l[0]&&wt(m,1)):(m=uo(t),m.c(),wt(m,1),m.m(e,i)):m&&(ht(),yt(m,1,1,()=>{m=null}),vt()),t[9]?f&&(ht(),yt(f,1,1,()=>{f=null}),vt()):f?(f.p(t,l),512&l[0]&&wt(f,1)):(f=$o(t),f.c(),wt(f,1),f.m(e,null))},i(t){l||(wt(a),wt(c),wt(d),wt(u),wt(m),wt(f),l=!0)},o(t){yt(a),yt(c),yt(d),yt(u),yt(m),yt(f),l=!1},d(t){t&&O(e),a&&a.d(),c&&c.d(),d&&d.d(),u&&u.d(),m&&m.d(),f&&f.d()}}}function Vn(t){let e,n;return e=new t[11]({props:{$$slots:{default:[Jn,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};1&n[0]|134348800&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Un(t){let e,n,o,s,r,i,l;return n=new Se({props:{size:"24",class:"ml"}}),s=new Ut({props:{size:"24",class:"ml dropdown-chevron"}}),{c(){e=W("div"),Tt(n.$$.fragment),o=L("\n Domäne\n "),Tt(s.$$.fragment),V(e,"class","filter_button--icon")},m(a,c){A(a,e,c),_t(n,e,null),A(a,o,c),_t(s,a,c),r=!0,i||(l=M(e,"click",t[25]),i=!0)},p:z,i(t){r||(wt(n.$$.fragment,t),wt(s.$$.fragment,t),r=!0)},o(t){yt(n.$$.fragment,t),yt(s.$$.fragment,t),r=!1},d(t){t&&O(e),Dt(n),t&&O(o),Dt(s,t),i=!1,l()}}}function Hn(t){let e,n,o,s,r,i,l,a,c,d,u,m=t[55]+"";return{c(){e=W("input"),s=j(),r=W("label"),i=L(m),l=j(),V(e,"class",n="checkbox-tools domain-border--"+t[0].indexOf(t[55])+" svelte-2yy2vd"),V(e,"type","checkbox"),V(e,"name",t[14].DOMAIN),V(e,"id",o=t[55]),V(r,"class",a="for-checkbox-tools domain-border domain-border--"+t[0].indexOf(t[55])+" svelte-2yy2vd"),V(r,"for",c=t[55])},m(n,o){A(n,e,o),A(n,s,o),A(n,r,o),N(r,i),N(r,l),d||(u=M(e,"change",t[17]),d=!0)},p(t,s){1&s[0]&&n!==(n="checkbox-tools domain-border--"+t[0].indexOf(t[55])+" svelte-2yy2vd")&&V(e,"class",n),1&s[0]&&o!==(o=t[55])&&V(e,"id",o),1&s[0]&&m!==(m=t[55]+"")&&H(i,m),1&s[0]&&a!==(a="for-checkbox-tools domain-border domain-border--"+t[0].indexOf(t[55])+" svelte-2yy2vd")&&V(r,"class",a),1&s[0]&&c!==(c=t[55])&&V(r,"for",c)},d(t){t&&O(e),t&&O(s),t&&O(r),d=!1,u()}}}function qn(t){let e,n=t[0],o=[];for(let e=0;e<n.length;e+=1)o[e]=Hn(Mn(t,n,e));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=B()},m(t,n){for(let e=0;e<o.length;e+=1)o[e].m(t,n);A(t,e,n)},p(t,s){if(147457&s[0]){let r;for(n=t[0],r=0;r<n.length;r+=1){const i=Mn(t,n,r);o[r]?o[r].p(i,s):(o[r]=Hn(i),o[r].c(),o[r].m(e.parentNode,e))}for(;r<o.length;r+=1)o[r].d(1);o.length=n.length}},d(t){F(o,t),t&&O(e)}}}function Jn(t){let e,n,o,s;return e=new t[10]({props:{class:"add_filter_button",id:"filterbutton-"+t[14].DOMAIN,$$slots:{default:[Un]},$$scope:{ctx:t}}}),e.$on("click",function(){T(t[48])&&t[48].apply(this,arguments)}),o=new t[12]({props:{class:"dropdown-filter",verticalAlignment:"bottom",$$slots:{default:[qn]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment),n=j(),Tt(o.$$.fragment)},m(t,r){_t(e,t,r),A(t,n,r),_t(o,t,r),s=!0},p(n,s){t=n;const r={};134217728&s[1]&&(r.$$scope={dirty:s,ctx:t}),e.$set(r);const i={};1&s[0]|134217728&s[1]&&(i.$$scope={dirty:s,ctx:t}),o.$set(i)},i(t){s||(wt(e.$$.fragment,t),wt(o.$$.fragment,t),s=!0)},o(t){yt(e.$$.fragment,t),yt(o.$$.fragment,t),s=!1},d(t){Dt(e,t),t&&O(n),Dt(o,t)}}}function Gn(t){let e,n;return e=new t[11]({props:{$$slots:{default:[Qn,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};257&n[0]|134348800&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Zn(t){let e,n,o,s,r,i,l;return n=new Se({props:{size:"24",class:"ml"}}),s=new Ut({props:{size:"24",class:"ml dropdown-chevron"}}),{c(){e=W("div"),Tt(n.$$.fragment),o=L("\n Ereignis\n "),Tt(s.$$.fragment),V(e,"class","filter_button--icon")},m(a,c){A(a,e,c),_t(n,e,null),A(a,o,c),_t(s,a,c),r=!0,i||(l=M(e,"click",t[26]),i=!0)},p:z,i(t){r||(wt(n.$$.fragment,t),wt(s.$$.fragment,t),r=!0)},o(t){yt(n.$$.fragment,t),yt(s.$$.fragment,t),r=!1},d(t){t&&O(e),Dt(n),t&&O(o),Dt(s,t),i=!1,l()}}}function Kn(t,e){let n,o,s,r,i,l,a,c,d,u,m,f=e[52].split("|")[0]+"";return{key:t,first:null,c(){n=W("input"),r=j(),i=W("label"),l=L(f),a=j(),V(n,"class",o="checkbox-tools domain-border--"+e[20](e[0],e[52])+" svelte-2yy2vd"),V(n,"type","checkbox"),V(n,"name",e[14].EVENT),V(n,"id",s=e[52].split("|")[0]),V(i,"class",c="for-checkbox-tools domain-border domain-border--"+e[20](e[0],e[52])+" svelte-2yy2vd"),V(i,"for",d=e[52].split("|")[0]),this.first=n},m(t,o){A(t,n,o),A(t,r,o),A(t,i,o),N(i,l),N(i,a),u||(m=M(n,"change",e[16]),u=!0)},p(t,r){e=t,257&r[0]&&o!==(o="checkbox-tools domain-border--"+e[20](e[0],e[52])+" svelte-2yy2vd")&&V(n,"class",o),256&r[0]&&s!==(s=e[52].split("|")[0])&&V(n,"id",s),256&r[0]&&f!==(f=e[52].split("|")[0]+"")&&H(l,f),257&r[0]&&c!==(c="for-checkbox-tools domain-border domain-border--"+e[20](e[0],e[52])+" svelte-2yy2vd")&&V(i,"class",c),256&r[0]&&d!==(d=e[52].split("|")[0])&&V(i,"for",d)},d(t){t&&O(n),t&&O(r),t&&O(i),u=!1,m()}}}function Yn(t){let e,n=[],o=new Map,s=t[8];const r=t=>t[52];for(let e=0;e<s.length;e+=1){let i=Bn(t,s,e),l=r(i);o.set(l,n[e]=Kn(l,i))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=B()},m(t,o){for(let e=0;e<n.length;e+=1)n[e].m(t,o);A(t,e,o)},p(t,i){1130753&i[0]&&(s=t[8],n=St(n,i,r,1,t,s,o,e.parentNode,zt,Kn,e,Bn))},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&O(e)}}}function Qn(t){let e,n,o,s;return e=new t[10]({props:{class:"add_filter_button",id:"filterbutton-"+t[14].EVENT,$$slots:{default:[Zn]},$$scope:{ctx:t}}}),e.$on("click",function(){T(t[48])&&t[48].apply(this,arguments)}),o=new t[12]({props:{class:"dropdown-filter",verticalAlignment:"bottom",$$slots:{default:[Yn]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment),n=j(),Tt(o.$$.fragment)},m(t,r){_t(e,t,r),A(t,n,r),_t(o,t,r),s=!0},p(n,s){t=n;const r={};134217728&s[1]&&(r.$$scope={dirty:s,ctx:t}),e.$set(r);const i={};257&s[0]|134217728&s[1]&&(i.$$scope={dirty:s,ctx:t}),o.$set(i)},i(t){s||(wt(e.$$.fragment,t),wt(o.$$.fragment,t),s=!0)},o(t){yt(e.$$.fragment,t),yt(o.$$.fragment,t),s=!1},d(t){Dt(e,t),t&&O(n),Dt(o,t)}}}function Xn(t){let e,n;return e=new t[11]({props:{$$slots:{default:[ro,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};134348800&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function to(t){let e,n,o,s,r,i,l;return n=new Se({props:{size:"24",class:"ml"}}),s=new Ut({props:{size:"24",class:"ml dropdown-chevron"}}),{c(){e=W("div"),Tt(n.$$.fragment),o=L("\n Status\n "),Tt(s.$$.fragment),V(e,"class","filter_button--icon")},m(a,c){A(a,e,c),_t(n,e,null),A(a,o,c),_t(s,a,c),r=!0,i||(l=M(e,"click",t[27]),i=!0)},p:z,i(t){r||(wt(n.$$.fragment,t),wt(s.$$.fragment,t),r=!0)},o(t){yt(n.$$.fragment,t),yt(s.$$.fragment,t),r=!1},d(t){t&&O(e),Dt(n),t&&O(o),Dt(s,t),i=!1,l()}}}function eo(t){let e,n,o,s,r;return{c(){e=W("input"),n=j(),o=W("label"),o.textContent="Vorlage ",V(e,"class","checkbox-tools svelte-2yy2vd"),V(e,"type","checkbox"),V(e,"name",t[14].STATUS),V(e,"id","vorlage"),V(o,"class","for-checkbox-tools svelte-2yy2vd"),V(o,"for","vorlage")},m(i,l){A(i,e,l),A(i,n,l),A(i,o,l),s||(r=M(e,"change",t[16]),s=!0)},p:z,d(t){t&&O(e),t&&O(n),t&&O(o),s=!1,r()}}}function no(t){let e,n,o,s,r,i,l,a=On(t[49])+"";return{c(){e=W("input"),n=j(),o=W("label"),s=L(a),r=j(),V(e,"class","checkbox-tools svelte-2yy2vd"),V(e,"type","checkbox"),V(e,"name",t[14].STATUS),V(e,"id",t[49]),V(o,"class","for-checkbox-tools svelte-2yy2vd"),V(o,"for",t[49])},m(a,c){A(a,e,c),A(a,n,c),A(a,o,c),N(o,s),N(o,r),i||(l=M(e,"change",t[16]),i=!0)},p:z,d(t){t&&O(e),t&&O(n),t&&O(o),i=!1,l()}}}function oo(t){let e;let n=function(t){return t[49]?no:eo}(t),o=n(t);return{c(){o.c(),e=B()},m(t,n){o.m(t,n),A(t,e,n)},p(t,e){o.p(t,e)},d(t){o.d(t),t&&O(e)}}}function so(t){let e,n=t[15].size>0&&function(t){let e,n=[...t[15]],o=[];for(let e=0;e<n.length;e+=1)o[e]=oo(jn(t,n,e));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=B()},m(t,n){for(let e=0;e<o.length;e+=1)o[e].m(t,n);A(t,e,n)},p(t,s){if(114688&s[0]){let r;for(n=[...t[15]],r=0;r<n.length;r+=1){const i=jn(t,n,r);o[r]?o[r].p(i,s):(o[r]=oo(i),o[r].c(),o[r].m(e.parentNode,e))}for(;r<o.length;r+=1)o[r].d(1);o.length=n.length}},d(t){F(o,t),t&&O(e)}}}(t);return{c(){n&&n.c(),e=B()},m(t,o){n&&n.m(t,o),A(t,e,o)},p(t,e){t[15].size>0&&n.p(t,e)},d(t){n&&n.d(t),t&&O(e)}}}function ro(t){let e,n,o,s;return e=new t[10]({props:{class:"add_filter_button",id:"filterbutton-"+t[14].STATUS,$$slots:{default:[to]},$$scope:{ctx:t}}}),e.$on("click",function(){T(t[48])&&t[48].apply(this,arguments)}),o=new t[12]({props:{class:"dropdown-filter",verticalAlignment:"bottom",$$slots:{default:[so]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment),n=j(),Tt(o.$$.fragment)},m(t,r){_t(e,t,r),A(t,n,r),_t(o,t,r),s=!0},p(n,s){t=n;const r={};134217728&s[1]&&(r.$$scope={dirty:s,ctx:t}),e.$set(r);const i={};134217728&s[1]&&(i.$$scope={dirty:s,ctx:t}),o.$set(i)},i(t){s||(wt(e.$$.fragment,t),wt(o.$$.fragment,t),s=!0)},o(t){yt(e.$$.fragment,t),yt(o.$$.fragment,t),s=!1},d(t){Dt(e,t),t&&O(n),Dt(o,t)}}}function io(t){let e,n;return e=new t[11]({props:{$$slots:{default:[co,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};134348800&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function lo(t){let e,n,o,s,r,i,l;return n=new Se({props:{size:"24",class:"ml"}}),s=new Ut({props:{size:"24",class:"ml dropdown-chevron"}}),{c(){e=W("div"),Tt(n.$$.fragment),o=L("\n Prio\n "),Tt(s.$$.fragment),V(e,"class","filter_button--icon")},m(a,c){A(a,e,c),_t(n,e,null),A(a,o,c),_t(s,a,c),r=!0,i||(l=M(e,"click",t[28]),i=!0)},p:z,i(t){r||(wt(n.$$.fragment,t),wt(s.$$.fragment,t),r=!0)},o(t){yt(n.$$.fragment,t),yt(s.$$.fragment,t),r=!1},d(t){t&&O(e),Dt(n),t&&O(o),Dt(s,t),i=!1,l()}}}function ao(t){let e,n,o,s,r,i,l,a,c,d,u,m,f;return{c(){e=W("input"),n=j(),o=W("label"),o.textContent="1",s=j(),r=W("input"),i=j(),l=W("label"),l.textContent="2",a=j(),c=W("input"),d=j(),u=W("label"),u.textContent="3",V(e,"class","checkbox-tools prio1 svelte-2yy2vd"),V(e,"type","checkbox"),V(e,"name",t[14].PRIO),V(e,"id","1"),V(o,"class","for-checkbox-tools prio prio1 svelte-2yy2vd"),V(o,"for","1"),V(r,"class","checkbox-tools prio2 svelte-2yy2vd"),V(r,"type","checkbox"),V(r,"name",t[14].PRIO),V(r,"id","2"),V(l,"class","for-checkbox-tools prio prio2 svelte-2yy2vd"),V(l,"for","2"),V(c,"class","checkbox-tools prio3 svelte-2yy2vd"),V(c,"type","checkbox"),V(c,"name",t[14].PRIO),V(c,"id","3"),V(u,"class","for-checkbox-tools prio prio3 svelte-2yy2vd"),V(u,"for","3")},m(p,$){A(p,e,$),A(p,n,$),A(p,o,$),A(p,s,$),A(p,r,$),A(p,i,$),A(p,l,$),A(p,a,$),A(p,c,$),A(p,d,$),A(p,u,$),m||(f=[M(e,"change",t[16]),M(r,"change",t[16]),M(c,"change",t[16])],m=!0)},p:z,d(t){t&&O(e),t&&O(n),t&&O(o),t&&O(s),t&&O(r),t&&O(i),t&&O(l),t&&O(a),t&&O(c),t&&O(d),t&&O(u),m=!1,C(f)}}}function co(t){let e,n,o,s;return e=new t[10]({props:{class:"add_filter_button",id:"filterbutton-"+t[14].PRIO,$$slots:{default:[lo]},$$scope:{ctx:t}}}),e.$on("click",function(){T(t[48])&&t[48].apply(this,arguments)}),o=new t[12]({props:{class:"dropdown-filter",verticalAlignment:"bottom",$$slots:{default:[ao]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment),n=j(),Tt(o.$$.fragment)},m(t,r){_t(e,t,r),A(t,n,r),_t(o,t,r),s=!0},p(n,s){t=n;const r={};134217728&s[1]&&(r.$$scope={dirty:s,ctx:t}),e.$set(r);const i={};134217728&s[1]&&(i.$$scope={dirty:s,ctx:t}),o.$set(i)},i(t){s||(wt(e.$$.fragment,t),wt(o.$$.fragment,t),s=!0)},o(t){yt(e.$$.fragment,t),yt(o.$$.fragment,t),s=!1},d(t){Dt(e,t),t&&O(n),Dt(o,t)}}}function uo(t){let e,n;return e=new t[11]({props:{$$slots:{default:[po,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};128&n[0]|134348800&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function mo(t){let e,n,o,s,r,i,l;return n=new Se({props:{size:"24",class:"ml"}}),s=new Ut({props:{size:"24",class:"ml dropdown-chevron"}}),{c(){e=W("div"),Tt(n.$$.fragment),o=L("\n Fälligkeit\n "),Tt(s.$$.fragment),V(e,"class","filter_button--icon")},m(a,c){A(a,e,c),_t(n,e,null),A(a,o,c),_t(s,a,c),r=!0,i||(l=M(e,"click",t[29]),i=!0)},p:z,i(t){r||(wt(n.$$.fragment,t),wt(s.$$.fragment,t),r=!0)},o(t){yt(n.$$.fragment,t),yt(s.$$.fragment,t),r=!1},d(t){t&&O(e),Dt(n),t&&O(o),Dt(s,t),i=!1,l()}}}function fo(t){let e,n,o;function s(e){t[30](e)}let r={range:!0,below:!0};return void 0!==t[7]&&(r.value=t[7]),e=new t[13]({props:r}),nt.push(()=>Ct(e,"value",s)),e.$on("change",t[16]),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,o){const s={};!n&&128&o[0]&&(n=!0,s.value=t[7],dt(()=>n=!1)),e.$set(s)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Dt(e,t)}}}function po(t){let e,n,o,s;return e=new t[10]({props:{class:"add_filter_button",id:"filterbutton-"+t[14].DUEDATE,$$slots:{default:[mo]},$$scope:{ctx:t}}}),e.$on("click",function(){T(t[48])&&t[48].apply(this,arguments)}),o=new t[12]({props:{class:"dropdown-filter",verticalAlignment:"bottom",$$slots:{default:[fo]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment),n=j(),Tt(o.$$.fragment)},m(t,r){_t(e,t,r),A(t,n,r),_t(o,t,r),s=!0},p(n,s){t=n;const r={};134217728&s[1]&&(r.$$scope={dirty:s,ctx:t}),e.$set(r);const i={};128&s[0]|134217728&s[1]&&(i.$$scope={dirty:s,ctx:t}),o.$set(i)},i(t){s||(wt(e.$$.fragment,t),wt(o.$$.fragment,t),s=!0)},o(t){yt(e.$$.fragment,t),yt(o.$$.fragment,t),s=!1},d(t){Dt(e,t),t&&O(n),Dt(o,t)}}}function $o(t){let e,n;return e=new t[11]({props:{$$slots:{default:[bo,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};124&n[0]|134348800&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function go(t){let e,n,o;return e=new pe({props:{size:"24"}}),{c(){Tt(e.$$.fragment),n=L("\n Neuer Filter")},m(t,s){_t(e,t,s),A(t,n,s),o=!0},p:z,i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Dt(e,t),t&&O(n)}}}function ho(t){let e,n,o,s,r,i,l;return s=new pe({props:{size:"24"}}),{c(){e=W("div"),n=W("div"),n.textContent="Domäne",o=j(),Tt(s.$$.fragment),V(e,"class","dropdown-content--element svelte-2yy2vd")},m(a,c){A(a,e,c),N(e,n),N(e,o),_t(s,e,null),r=!0,i||(l=M(e,"click",t[31]),i=!0)},p:z,i(t){r||(wt(s.$$.fragment,t),r=!0)},o(t){yt(s.$$.fragment,t),r=!1},d(t){t&&O(e),Dt(s),i=!1,l()}}}function vo(t){let e,n,o,s,r,i,l;return s=new pe({props:{size:"24"}}),{c(){e=W("div"),n=W("div"),n.textContent="Ereignis",o=j(),Tt(s.$$.fragment),V(e,"class","dropdown-content--element svelte-2yy2vd")},m(a,c){A(a,e,c),N(e,n),N(e,o),_t(s,e,null),r=!0,i||(l=M(e,"click",t[32]),i=!0)},p:z,i(t){r||(wt(s.$$.fragment,t),r=!0)},o(t){yt(s.$$.fragment,t),r=!1},d(t){t&&O(e),Dt(s),i=!1,l()}}}function wo(t){let e,n,o,s,r,i,l;return s=new pe({props:{size:"24"}}),{c(){e=W("div"),n=W("div"),n.textContent="Status",o=j(),Tt(s.$$.fragment),V(e,"class","dropdown-content--element svelte-2yy2vd")},m(a,c){A(a,e,c),N(e,n),N(e,o),_t(s,e,null),r=!0,i||(l=M(e,"click",t[33]),i=!0)},p:z,i(t){r||(wt(s.$$.fragment,t),r=!0)},o(t){yt(s.$$.fragment,t),r=!1},d(t){t&&O(e),Dt(s),i=!1,l()}}}function yo(t){return{c:z,m:z,d:z}}function ko(t){return{c:z,m:z,d:z}}function xo(t){let e,n,o,s,r,i,l,a,c=!t[4]&&ho(t),d=!t[6]&&vo(t),u=!t[3]&&wo(t),m=!t[2]&&yo(),f=!t[5]&&ko();return{c(){e=W("div"),n=W("div"),n.textContent="Wähle Filtertyp:",o=j(),c&&c.c(),s=j(),d&&d.c(),r=j(),u&&u.c(),i=j(),m&&m.c(),l=j(),f&&f.c(),V(n,"class","dropdown-content--header svelte-2yy2vd"),V(e,"class","dropdown-content svelte-2yy2vd")},m(t,p){A(t,e,p),N(e,n),N(e,o),c&&c.m(e,null),N(e,s),d&&d.m(e,null),N(e,r),u&&u.m(e,null),N(e,i),m&&m.m(e,null),N(e,l),f&&f.m(e,null),a=!0},p(t,n){t[4]?c&&(ht(),yt(c,1,1,()=>{c=null}),vt()):c?(c.p(t,n),16&n[0]&&wt(c,1)):(c=ho(t),c.c(),wt(c,1),c.m(e,s)),t[6]?d&&(ht(),yt(d,1,1,()=>{d=null}),vt()):d?(d.p(t,n),64&n[0]&&wt(d,1)):(d=vo(t),d.c(),wt(d,1),d.m(e,r)),t[3]?u&&(ht(),yt(u,1,1,()=>{u=null}),vt()):u?(u.p(t,n),8&n[0]&&wt(u,1)):(u=wo(t),u.c(),wt(u,1),u.m(e,i)),t[2]?m&&(m.d(1),m=null):m||(m=yo(),m.c(),m.m(e,l)),t[5]?f&&(f.d(1),f=null):f||(f=ko(),f.c(),f.m(e,null))},i(t){a||(wt(c),wt(d),wt(u),a=!0)},o(t){yt(c),yt(d),yt(u),a=!1},d(t){t&&O(e),c&&c.d(),d&&d.d(),u&&u.d(),m&&m.d(),f&&f.d()}}}function bo(t){let e,n,o,s;return e=new t[10]({props:{class:"add_filter_button",$$slots:{default:[go]},$$scope:{ctx:t}}}),e.$on("click",function(){T(t[48])&&t[48].apply(this,arguments)}),o=new t[12]({props:{verticalAlignment:"bottom",$$slots:{default:[xo]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment),n=j(),Tt(o.$$.fragment)},m(t,r){_t(e,t,r),A(t,n,r),_t(o,t,r),s=!0},p(n,s){t=n;const r={};134217728&s[1]&&(r.$$scope={dirty:s,ctx:t}),e.$set(r);const i={};124&s[0]|134217728&s[1]&&(i.$$scope={dirty:s,ctx:t}),o.$set(i)},i(t){s||(wt(e.$$.fragment,t),wt(o.$$.fragment,t),s=!0)},o(t){yt(e.$$.fragment,t),yt(o.$$.fragment,t),s=!1},d(t){Dt(e,t),t&&O(n),Dt(o,t)}}}function zo(t){let e,n,o=!t[1]&&Rn(t);return{c(){o&&o.c(),e=B()},m(t,s){o&&o.m(t,s),A(t,e,s),n=!0},p(t,n){t[1]?o&&(ht(),yt(o,1,1,()=>{o=null}),vt()):o?(o.p(t,n),2&n[0]&&wt(o,1)):(o=Rn(t),o.c(),wt(o,1),o.m(e.parentNode,e))},i(t){n||(wt(o),n=!0)},o(t){yt(o),n=!1},d(t){o&&o.d(t),t&&O(e)}}}function Eo(t,e){e&&window.setTimeout(()=>{const e="filterbutton-"+t;document.getElementById(e)?.click()})}function So(t,n,o){let s,r;const{Button:i,DropdownShell:l,Dropdown:a,DatePicker:c}=e,d=X();let{shownTasks:u}=n,{tenant:m}=n,{events:f}=n,{domains:p}=n,{isReport:$}=n;const g=_;let h;const v=m+"-ENABLERR-FILTER";let w={start:new Date,end:new Date};const y={DOMAIN:"domain",EVENT:"event",STATUS:"status",PRIO:"prio",DUEDATE:"dueDate"};let k,x=!1,b=!1,z=!1,E=!1,S=!1,C=f,T=new Set;async function _(t=!0){s=[...u],await I(y.DOMAIN),await I(y.STATUS),await I(y.PRIO),await O(),await I(y.EVENT),D(t)}function D(t=!0){d("filterUpdated",{tasks:s,updateSort:t})}async function I(t,e=!1){if(!h)return;if($)return;if(k)return;let n=await document.getElementsByName(t),r=[];if(e)r=h[t],n.forEach(t=>{r.includes(t.id.toLowerCase())&&(t.checked=!0)});else{for(let t of n)t.checked&&r.push(t.id.toLowerCase());h[t]=r,window.localStorage.setItem(v,JSON.stringify(h))}0!=r.length?t==y.DOMAIN?(!e&&S&&await P(),s=s.filter(t=>r.indexOf(t.event.domain.toLowerCase())>=0)):t==y.EVENT?s=s.filter(t=>r.indexOf(t.event.designation.toLowerCase())>=0):t==y.STATUS?s=s.filter(t=>t.status?r.indexOf(t.status.toLowerCase())>=0:r.indexOf("vorlage")>=0):t==y.PRIO&&(s=s.filter(t=>{if(t.priority){return r.indexOf(t.priority.toString())>=0}return r.indexOf("1")>=0})):t==y.DOMAIN&&o(8,C=f)}function N(t){A(t),F(t)}async function A(t,e=!0){switch(t){case y.DOMAIN:o(4,z=!z),Eo(y.DOMAIN,e&&z),z&&S&&await W();break;case y.EVENT:o(6,S=!S),Eo(y.EVENT,e&&S),e&&z&&await P();break;case y.STATUS:o(3,b=!b),Eo(y.STATUS,e&&b);break;case y.PRIO:o(2,x=!x),Eo(y.PRIO,e&&x);break;case y.DUEDATE:o(5,E=!E),Eo(y.DUEDATE,e&&E)}}function O(){w&&(w.start||w.end)&&E&&(s=s.filter(t=>{if(t.dueDate){const e=new Date(t.dueDate).setHours(0,0,0,0),n=w.start.setHours(0,0,0,0),o=w.end.setHours(0,0,0,0);return e>=n&&e<=o}return!1}),h[y.DUEDATE]=w)}function F(t){if(t==y.DUEDATE);else{let e=document.getElementsByName(t.toLowerCase());for(let t of e)t.checked=!1}_()}Q(()=>{k=!1,$||(h=window.localStorage.getItem(v),h=JSON.parse(h),h||(h={[y.DOMAIN]:[],[y.EVENT]:[],[y.STATUS]:[],[y.DUEDATE]:{start:void 0,end:void 0},[y.PRIO]:[],[y.LISTMODEACTIVE]:!0}),h[y.DOMAIN].length&&(A(y.DOMAIN,!1),I(y.DOMAIN,!0)),h[y.EVENT]?.length&&(A(y.EVENT,!1),I(y.EVENT,!0)),h[y.STATUS].length&&(A(y.STATUS,!1),I(y.STATUS,!0)),h[y.PRIO].length&&(A(y.PRIO,!1),I(y.PRIO,!0)),h[y.DUEDATE].start&&h[y.DUEDATE].end&&(A(y.DUEDATE,!1),o(7,w.start=new Date(h[y.DUEDATE].start),w),o(7,w.end=new Date(h[y.DUEDATE].end),w),O()),D())}),function(t){Y().$$.on_destroy.push(t)}(()=>{k=!0});const W=async()=>{const t=[...document.getElementsByName(y.EVENT)];for(const e of t)if(e.checked){const t=e.id,n=f.find(e=>e.startsWith(t+"|")).split("|")[1];await at();const o=document.getElementById(n);o&&(o.checked=!0)}o(8,C=j())},P=async()=>{document.getElementsByName(y.EVENT);const t=j();if(t?.length){o(8,C=t);for(const t of C){const[e]=t.split("|");await at().then(async()=>{await at();const t=document.getElementById(e);t&&(t.checked=!0)})}}},L=()=>{const t=[...document.getElementsByName(y.Domain)];let e=0;for(const n of t)n.checked&&e++;0===e&&F(y.EVENT)},j=()=>f.filter(t=>{const e=t.split("|")[1],n=document.getElementById(e);return n?.checked});return t.$$set=t=>{"shownTasks"in t&&o(21,u=t.shownTasks),"tenant"in t&&o(22,m=t.tenant),"events"in t&&o(23,f=t.events),"domains"in t&&o(0,p=t.domains),"isReport"in t&&o(1,$=t.isReport)},t.$$.update=()=>{2097152&t.$$.dirty[0]&&(s=[...u]),124&t.$$.dirty[0]&&o(9,r=x&&b&&z&&E&&S),2097152&t.$$.dirty[0]&&function(t){T.clear(),t.forEach(t=>{T.add(t.status)})}(u)},[p,$,x,b,z,E,S,w,C,r,i,l,a,c,y,T,_,function(t){L(),_(t)},N,A,(t,e)=>{const n=e.split("|")[1];return t.indexOf(n)},u,m,f,g,()=>N(y.DOMAIN),()=>N(y.EVENT),()=>N(y.STATUS),()=>N(y.PRIO),()=>N(y.DUEDATE),function(t){w=t,o(7,w)},()=>A(y.DOMAIN),()=>A(y.EVENT),()=>A(y.STATUS)]}class Co extends Nt{constructor(t){var e;super(),Ln.getElementById("svelte-2yy2vd-style")||((e=W("style")).id="svelte-2yy2vd-style",e.textContent='.filter--area.svelte-2yy2vd.svelte-2yy2vd{display:contents}.filter--area.svelte-2yy2vd .add_filter_button{border-radius:5px !important;border:2px solid #326173 !important;padding:0.8em}.filter--area.svelte-2yy2vd .filter_button--icon{height:24px;margin-right:0.5em}.domain-border.svelte-2yy2vd.svelte-2yy2vd{border-width:thick;border-style:solid}.domain-border--0.svelte-2yy2vd.svelte-2yy2vd{border-color:#A9C0CE !important}.domain-border--0.svelte-2yy2vd:checked+label.svelte-2yy2vd{background-color:#A9C0CE !important}.domain-border--1.svelte-2yy2vd.svelte-2yy2vd{border-color:#7E7F80 !important}.domain-border--1.svelte-2yy2vd:checked+label.svelte-2yy2vd{background-color:#7E7F80 !important}.domain-border--2.svelte-2yy2vd.svelte-2yy2vd{border-color:#55C1D9 !important}.domain-border--2.svelte-2yy2vd:checked+label.svelte-2yy2vd{background-color:#55C1D9 !important}.domain-border--3.svelte-2yy2vd.svelte-2yy2vd{border-color:#66A649 !important}.domain-border--3.svelte-2yy2vd:checked+label.svelte-2yy2vd{background-color:#66A649 !important}.domain-border--4.svelte-2yy2vd.svelte-2yy2vd{border-color:#F2CF63 !important}.domain-border--4.svelte-2yy2vd:checked+label.svelte-2yy2vd{background-color:#F2CF63 !important}.domain-border--5.svelte-2yy2vd.svelte-2yy2vd{border-color:#BF5A50 !important}.domain-border--5.svelte-2yy2vd:checked+label.svelte-2yy2vd{background-color:#BF5A50 !important}.prio.svelte-2yy2vd.svelte-2yy2vd{border-width:thick;border-style:solid;width:50px !important;text-align:center}.prio1.svelte-2yy2vd.svelte-2yy2vd{border-color:red !important}.prio1.svelte-2yy2vd:checked+label.svelte-2yy2vd{background-color:red !important}.prio2.svelte-2yy2vd.svelte-2yy2vd{border-color:orange !important}.prio2.svelte-2yy2vd:checked+label.svelte-2yy2vd{background-color:orange !important}.prio3.svelte-2yy2vd.svelte-2yy2vd{border-color:green !important}.prio3.svelte-2yy2vd:checked+label.svelte-2yy2vd{background-color:green !important}.dropdown-content.svelte-2yy2vd.svelte-2yy2vd{width:180px;padding:1.2em}.dropdown-content--header.svelte-2yy2vd.svelte-2yy2vd{padding-bottom:1em;width:100%;font-weight:600}.dropdown-content--element.svelte-2yy2vd.svelte-2yy2vd{display:flex;justify-content:space-between;align-items:center;color:#326173;padding-bottom:0.5em;width:100%;cursor:pointer}[type=checkbox].svelte-2yy2vd.svelte-2yy2vd:checked,[type=checkbox].svelte-2yy2vd.svelte-2yy2vd:not(:checked){position:absolute;left:-9999px;width:0;height:0;visibility:hidden}.checkbox-tools.svelte-2yy2vd:checked+label.svelte-2yy2vd,.checkbox-tools.svelte-2yy2vd:not(:checked)+label.svelte-2yy2vd{position:relative;display:inline-block;padding:0.6em 1.1em;height:15px;width:max-content;font-size:15px;font-weight:bold;line-height:17px;letter-spacing:1px;margin:5px;text-align:center;vertical-align:middle;border-width:thick;border-style:solid;border-radius:30px;overflow:hidden;cursor:pointer;text-transform:uppercase;color:#000000;-webkit-transition:all 300ms linear;transition:all 300ms linear;box-shadow:1px 1px 4px 0 rgba(0, 0, 0, 0.1)}.checkbox-tools.svelte-2yy2vd:not(:checked)+label.svelte-2yy2vd{background-color:#DAE1E5;border-color:#DAE1E5;color:#000000}.checkbox-tools.svelte-2yy2vd:checked+label.svelte-2yy2vd{background-color:#326173;border-color:#326173;color:#ffffff;box-shadow:3px 3px 4px 0px rgba(0, 0, 0, 0.2)}.checkbox-tools.svelte-2yy2vd:not(:checked)+label.svelte-2yy2vd:hover{box-shadow:3px 3px 4px 0px rgba(0, 0, 0, 0.2)}.checkbox-tools.svelte-2yy2vd:checked+label.svelte-2yy2vd::before,.checkbox-tools.svelte-2yy2vd:not(:checked)+label.svelte-2yy2vd::before{position:absolute;content:"";top:0;left:0;width:100%;height:100%;border-radius:15px;z-index:-1}',N(Ln.head,e)),It(this,t,So,zo,_,{shownTasks:21,tenant:22,events:23,domains:0,isReport:1,applyFilter:24},[-1,-1])}get applyFilter(){return this.$$.ctx[24]}}function To(t,e,n){const o=t.slice();return o[1]=e[n],o}function _o(t){let e,n;return e=new be({props:{size:"8",class:t[1]+t[0]}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.class=t[1]+t[0]),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Do(t){let e,n,o=["vtop","rotated vbottom"],s=[];for(let e=0;e<2;e+=1)s[e]=_o(To(t,o,e));const r=t=>yt(s[t],1,1,()=>{s[t]=null});return{c(){e=W("div");for(let t=0;t<2;t+=1)s[t].c();V(e,"class","sorting svelte-1r2vqjk")},m(t,o){A(t,e,o);for(let t=0;t<2;t+=1)s[t].m(e,null);n=!0},p(t,[n]){if(1&n){let i;for(o=["vtop","rotated vbottom"],i=0;i<2;i+=1){const r=To(t,o,i);s[i]?(s[i].p(r,n),wt(s[i],1)):(s[i]=_o(r),s[i].c(),wt(s[i],1),s[i].m(e,null))}for(ht(),i=2;i<2;i+=1)r(i);vt()}},i(t){if(!n){for(let t=0;t<2;t+=1)wt(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<2;t+=1)yt(s[t]);n=!1},d(t){t&&O(e),F(s,t)}}}function Io(t,e,n){let{active:o}=e;return t.$$set=t=>{"active"in t&&n(0,o=t.active)},[o]}class No extends Nt{constructor(t){var e;super(),document.getElementById("svelte-1r2vqjk-style")||((e=W("style")).id="svelte-1r2vqjk-style",e.textContent=".sorting.svelte-1r2vqjk{height:16px;width:9px;padding-right:5px}.sorting.svelte-1r2vqjk .feather-triangle{fill:#ababab;stroke:#ababab;transform:translateY(-8px)}.sorting.svelte-1r2vqjk .vtoptop,.sorting.svelte-1r2vqjk .vbottombottom{fill:black;stroke:black}.sorting.svelte-1r2vqjk .rotated{transform:rotate(180deg) translateY(16px)}",N(document.head,e)),It(this,t,Io,Do,_,{active:0})}}function Ao(t,e,n){const o=t.slice();return o[6]=e[n].id,o[7]=e[n].desc,o[8]=e[n].active,o}function Oo(t){let e,n;return e=new No({props:{active:t[3](t[6])}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.active=t[3](t[6])),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Fo(t){let e,n,o,s=t[7]+"",r=t[8]&&Oo(t);return{c(){r&&r.c(),e=j(),n=L(s)},m(t,s){r&&r.m(t,s),A(t,e,s),A(t,n,s),o=!0},p(t,i){t[8]?r?(r.p(t,i),1&i&&wt(r,1)):(r=Oo(t),r.c(),wt(r,1),r.m(e.parentNode,e)):r&&(ht(),yt(r,1,1,()=>{r=null}),vt()),(!o||1&i)&&s!==(s=t[7]+"")&&H(n,s)},i(t){o||(wt(r),o=!0)},o(t){yt(r),o=!1},d(t){r&&r.d(t),t&&O(e),t&&O(n)}}}function Wo(t,e){let n,o,s,r;return o=new e[2]({props:{name:"sort",$$slots:{default:[Fo]},$$scope:{ctx:e}}}),o.$on("click",function(){T(e[4](e[6],e[8]))&&e[4](e[6],e[8]).apply(this,arguments)}),{key:t,first:null,c(){n=W("th"),Tt(o.$$.fragment),s=j(),this.first=n},m(t,e){A(t,n,e),_t(o,n,null),N(n,s),r=!0},p(t,n){e=t;const s={};2049&n&&(s.$$scope={dirty:n,ctx:e}),o.$set(s)},i(t){r||(wt(o.$$.fragment,t),r=!0)},o(t){yt(o.$$.fragment,t),r=!1},d(t){t&&O(n),Dt(o)}}}function Po(t){let e,n,o=[],s=new Map,r=t[0];const i=t=>t[6];for(let e=0;e<r.length;e+=1){let n=Ao(t,r,e),l=i(n);s.set(l,o[e]=Wo(l,n))}return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=B()},m(t,s){for(let e=0;e<o.length;e+=1)o[e].m(t,s);A(t,e,s),n=!0},p(t,n){25&n&&(r=t[0],ht(),o=St(o,n,i,1,t,r,s,e.parentNode,Et,Wo,e,Ao),vt())},i(t){if(!n){for(let t=0;t<r.length;t+=1)wt(o[t]);n=!0}},o(t){for(let t=0;t<o.length;t+=1)yt(o[t]);n=!1},d(t){for(let e=0;e<o.length;e+=1)o[e].d(t);t&&O(e)}}}function Lo(t){let e,n,o=t[1],s=Po(t);return{c(){s.c(),e=B()},m(t,o){s.m(t,o),A(t,e,o),n=!0},p(t,[n]){2&n&&_(o,o=t[1])?(ht(),yt(s,1,1,z),vt(),s=Po(t),s.c(),wt(s),s.m(e.parentNode,e)):s.p(t,n)},i(t){n||(wt(s),n=!0)},o(t){yt(s),n=!1},d(t){t&&O(e),s.d(t)}}}function jo(t,n,o){const s=X(),{Button:r}=e;let{sortNames:i}=n,{sortSettings:l={}}=n;return t.$$set=t=>{"sortNames"in t&&o(0,i=t.sortNames),"sortSettings"in t&&o(1,l=t.sortSettings)},[i,l,r,t=>l.orderField!==t?"":"asc"===l.sortDir?"top":"bottom",(t,e)=>()=>{e&&s("sort",t)}]}class Bo extends Nt{constructor(t){super(),It(this,t,jo,Lo,_,{sortNames:0,sortSettings:1})}}function Mo(t){let e;return{c(){e=L("Aktionen")},m(t,n){A(t,e,n)},d(t){t&&O(e)}}}function Ro(t){let e,n,o,s,r,i,l,a,c;return r=new Bo({props:{sortNames:t[2],sortSettings:t[0]}}),r.$on("sort",t[3]),a=new t[1]({props:{disabled:!0,$$slots:{default:[Mo]},$$scope:{ctx:t}}}),{c(){e=W("thead"),n=W("tr"),o=W("th"),s=j(),Tt(r.$$.fragment),i=j(),l=W("th"),Tt(a.$$.fragment)},m(t,d){A(t,e,d),N(e,n),N(n,o),N(n,s),_t(r,n,null),N(n,i),N(n,l),_t(a,l,null),c=!0},p(t,[e]){const n={};1&e&&(n.sortSettings=t[0]),r.$set(n);const o={};2048&e&&(o.$$scope={dirty:e,ctx:t}),a.$set(o)},i(t){c||(wt(r.$$.fragment,t),wt(a.$$.fragment,t),c=!0)},o(t){yt(r.$$.fragment,t),yt(a.$$.fragment,t),c=!1},d(t){t&&O(e),Dt(r),Dt(a)}}}function Vo(t,n,o){const s=X(),{Button:r}=e;let i;const l=window.location.pathname.startsWith("/reporting")||window.location.pathname.startsWith("/screen"),a="ENABLERR_SORTORDER",c="Name",d="Domain",u="Deadline",m="Priority",f="Favorite",p=[{id:c,desc:"Bezeichnung"},{id:d,desc:"Domäne"}];l||p.push({id:u,desc:"Typ/Status"}),Q(()=>{o(0,i={orderField:"",sortCallback:()=>null,sortDir:""}),function(){const t=JSON.parse(window.localStorage.getItem(a));if(!t)return;t.sortCallback=g.get(t.orderField),o(0,i=t),$()}()});const $=()=>s("sortUpdate",{settings:i}),g=new Map([[c,Fn],[d,t=>t.event.domain.toLowerCase()],[u,t=>t.dueDate],[m,t=>t.priority],[f,t=>t.event.step.endsWith("xecution")]]);return[i,r,p,function({detail:t}){if(!t)return;const e=i.orderField;o(0,i.sortCallback=g.get(t),i),o(0,i.orderField=t,i),i.sortDir&&e==t?"asc"===i.sortDir?o(0,i.sortDir="desc",i):(o(0,i.sortDir="",i),o(0,i.orderField="",i),o(0,i.sortCallback=null,i)):o(0,i.sortDir="asc",i),function(){const t=JSON.stringify(i);window.localStorage.setItem(a,t)}(),$()}]}class Uo extends Nt{constructor(t){super(),It(this,t,Vo,Ro,_,{})}}const{Map:Ho,document:qo}=bt;function Jo(t,e,n){const o=t.slice();return o[20]=e[n],o}function Go(t,e){let n,o,s,r,i;function l(t){e[9](t)}function a(t){e[10](t)}let c={task:e[20],domains:e[2],isStarred:e[3]};return void 0!==e[4]&&(c.openSelection=e[4]),void 0!==e[1]&&(c.starredTasks=e[1]),o=new Pn({props:c}),nt.push(()=>Ct(o,"openSelection",l)),nt.push(()=>Ct(o,"starredTasks",a)),o.$on("viewTaskList",e[11]),o.$on("rowClicked",e[5]),o.$on("rowScroll",e[8]),{key:t,first:null,c(){n=B(),Tt(o.$$.fragment),this.first=n},m(t,e){A(t,n,e),_t(o,t,e),i=!0},p(t,n){e=t;const i={};9&n&&(i.task=e[20]),4&n&&(i.domains=e[2]),8&n&&(i.isStarred=e[3]),!s&&16&n&&(s=!0,i.openSelection=e[4],dt(()=>s=!1)),!r&&2&n&&(r=!0,i.starredTasks=e[1],dt(()=>r=!1)),o.$set(i)},i(t){i||(wt(o.$$.fragment,t),i=!0)},o(t){yt(o.$$.fragment,t),i=!1},d(t){t&&O(n),Dt(o,t)}}}function Zo(t){let e,n,o,s,r,i=[],l=new Ho;n=new Uo({}),n.$on("sortUpdate",t[7]);let a=t[6](t[0],t[3]);const c=t=>t[20].id;for(let e=0;e<a.length;e+=1){let n=Jo(t,a,e),o=c(n);l.set(o,i[e]=Go(o,n))}return{c(){e=W("table"),Tt(n.$$.fragment),o=j(),s=W("tbody");for(let t=0;t<i.length;t+=1)i[t].c();V(e,"class","no_border_spacing tableFixHead svelte-thjang")},m(t,l){A(t,e,l),_t(n,e,null),N(e,o),N(e,s);for(let t=0;t<i.length;t+=1)i[t].m(s,null);r=!0},p(t,[e]){383&e&&(a=t[6](t[0],t[3]),ht(),i=St(i,e,c,1,t,a,l,s,Et,Go,null,Jo),vt())},i(t){if(!r){wt(n.$$.fragment,t);for(let t=0;t<a.length;t+=1)wt(i[t]);r=!0}},o(t){yt(n.$$.fragment,t);for(let t=0;t<i.length;t+=1)yt(i[t]);r=!1},d(t){t&&O(e),Dt(n);for(let t=0;t<i.length;t+=1)i[t].d()}}}const Ko={Purpose:100,Asset:100},Yo={Agreement:10,Delivery:20,Compensation:30,Information:40},Qo={Preparation:1,Execution:2},Xo=(t,e)=>t.sort((t,n)=>{const o=(t,n)=>{return 1e4*((t,n,o,s)=>{const r=o.split(" ")[0].charCodeAt(0),i=s.split(" ")[0].charCodeAt(0),l=e?.get(n)||t?.length||0;return 2*+!l+(1e3-l-+!t+10*i+5*r)/1e4})(t,n.name,n.designation,n.domain)+100*(o=n.stream,Ko[o.direction]+Yo[o.task]+Qo[o.step])+1e3*+!n.directEdit+n.domain.padEnd(" ",20)+n.designation;var o},s=o(t.data,t.event),r=o(n.data,n.event);return s>r?1:s<r?-1:0});function ts(t,e,n){X();let{visibleTasks:o}=e,{domains:s}=e,{isStarred:r}=e,{starredTasks:i}=e,a="";const c=window.location.pathname.startsWith("/reporting")||window.location.pathname.startsWith("/screen");const d=new Map;return t.$$set=t=>{"visibleTasks"in t&&n(0,o=t.visibleTasks),"domains"in t&&n(2,s=t.domains),"isStarred"in t&&n(3,r=t.isStarred),"starredTasks"in t&&n(1,i=t.starredTasks)},[o,i,s,r,a,function(t){if(!t||!t.detail)return;const{task:e,tab:n,event:o}=t.detail;e&&n&&(e.event.matrix?function(t){window.singleSpaNavigate(`/matrix/${t.event.id}`)}(e):function(t,e,n=!1){const o=n?t.classNew:t.event.id,s=n?t.classNew:t.id;c?l.getEvent(o).then(t=>{"screen"===t.output.subType?window.singleSpaNavigate(`/screen/${o}`):window.singleSpaNavigate(`/reporting/${o}`)}):window.singleSpaNavigate(`/task/${o}/${s}/${e}`)}(e,n,o))},t=>(t.map(e=>{e.data||(e.count=t.filter(t=>t.event.name===e.event.name).length-1,d.set(e.event.name,e.count))}),!c&&2===r&&i?.length&&(t=t.filter(t=>i.find(e=>e==t.event.id))),Xo(t,d)),t=>{t&&t.detail&&t.detail.settings&&t.detail.settings},({detail:t})=>{at().then(()=>{const e=document.getElementById(t.event.name);e&&e.scrollIntoView({block:"center",behavior:"auto"})})},function(t){a=t,n(4,a)},function(t){i=t,n(1,i)},function(e){tt(t,e)}]}class es extends Nt{constructor(t){var e;super(),qo.getElementById("svelte-thjang-style")||((e=W("style")).id="svelte-thjang-style",e.textContent=".no_border_spacing.svelte-thjang{border-spacing:0px}.tableFixHead{overflow:auto;height:100px;border-collapse:separate}.tableFixHead thead th{position:sticky;top:0;background-color:#f8f8fe;color:black;border-bottom:2px solid;z-index:1}.modal-overlay.tModal{overflow:visible !important}",N(qo.head,e)),It(this,t,ts,Zo,_,{visibleTasks:0,domains:2,isStarred:3,starredTasks:1})}}function ns(t){let e,n,o,s;e=new t[8]({});let r=!t[6]&&function(t){let e,n,o,s,r=!t[0].event.solitaire&&ss(t),i=!t[0].event.solitaire&&!t[0].event.matrix&&is(t),l=t[0].report&&as(t);return{c(){r&&r.c(),e=j(),i&&i.c(),n=j(),l&&l.c(),o=B()},m(t,a){r&&r.m(t,a),A(t,e,a),i&&i.m(t,a),A(t,n,a),l&&l.m(t,a),A(t,o,a),s=!0},p(t,s){t[0].event.solitaire?r&&(ht(),yt(r,1,1,()=>{r=null}),vt()):r?(r.p(t,s),1&s&&wt(r,1)):(r=ss(t),r.c(),wt(r,1),r.m(e.parentNode,e)),t[0].event.solitaire||t[0].event.matrix?i&&(ht(),yt(i,1,1,()=>{i=null}),vt()):i?(i.p(t,s),1&s&&wt(i,1)):(i=is(t),i.c(),wt(i,1),i.m(n.parentNode,n)),t[0].report?l?(l.p(t,s),1&s&&wt(l,1)):(l=as(t),l.c(),wt(l,1),l.m(o.parentNode,o)):l&&(ht(),yt(l,1,1,()=>{l=null}),vt())},i(t){s||(wt(r),wt(i),wt(l),s=!0)},o(t){yt(r),yt(i),yt(l),s=!1},d(t){r&&r.d(t),t&&O(e),i&&i.d(t),t&&O(n),l&&l.d(t),t&&O(o)}}}(t);return{c(){Tt(e.$$.fragment),n=j(),o=W("div"),r&&r.c(),V(o,"class","form--icons svelte-19y1oy2")},m(t,i){_t(e,t,i),A(t,n,i),A(t,o,i),r&&r.m(o,null),s=!0},p(t,e){t[6]||r.p(t,e)},i(t){s||(wt(e.$$.fragment,t),wt(r),s=!0)},o(t){yt(e.$$.fragment,t),yt(r),s=!1},d(t){Dt(e,t),t&&O(n),t&&O(o),r&&r.d()}}}function os(t){let e,n,o,s,r,i,l,a,c,d=t[0].event.title+"";return e=new t[8]({}),s=new pe({props:{size:"16"}}),{c(){Tt(e.$$.fragment),n=j(),o=W("div"),Tt(s.$$.fragment),r=j(),i=L(d),V(o,"class","createTask svelte-19y1oy2")},m(d,u){_t(e,d,u),A(d,n,u),A(d,o,u),_t(s,o,null),N(o,r),N(o,i),l=!0,a||(c=M(o,"click",t[14]),a=!0)},p(t,e){(!l||1&e)&&d!==(d=t[0].event.title+"")&&H(i,d)},i(t){l||(wt(e.$$.fragment,t),wt(s.$$.fragment,t),l=!0)},o(t){yt(e.$$.fragment,t),yt(s.$$.fragment,t),l=!1},d(t){Dt(e,t),t&&O(n),t&&O(o),Dt(s),a=!1,c()}}}function ss(t){let e,o;return e=new n({props:{text:"Erfassen",$$slots:{default:[rs]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,n){const o={};524289&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Dt(e,t)}}}function rs(t){let e,n,o,s,r;return n=new pe({props:{size:"16"}}),{c(){e=W("div"),Tt(n.$$.fragment)},m(i,l){A(i,e,l),_t(n,e,null),o=!0,s||(r=M(e,"click",t[15]),s=!0)},p:z,i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){yt(n.$$.fragment,t),o=!1},d(t){t&&O(e),Dt(n),s=!1,r()}}}function is(t){let e,o;return e=new n({props:{text:"Suchen",$$slots:{default:[ls]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,n){const o={};524301&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Dt(e,t)}}}function ls(t){let e,n,o,s,r;return n=new Xt({props:{size:"16"}}),{c(){e=W("div"),Tt(n.$$.fragment)},m(i,l){A(i,e,l),_t(n,e,null),o=!0,s||(r=M(e,"click",t[16]),s=!0)},p:z,i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){yt(n.$$.fragment,t),o=!1},d(t){t&&O(e),Dt(n),s=!1,r()}}}function as(t){let e,o;return e=new n({props:{text:t[0].reportName,$$slots:{default:[cs]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,n){const o={};1&n&&(o.text=t[0].reportName),524289&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Dt(e,t)}}}function cs(t){let e,n,o,s,r;return n=new he({props:{size:"16"}}),{c(){e=W("div"),Tt(n.$$.fragment)},m(i,l){A(i,e,l),_t(n,e,null),o=!0,s||(r=M(e,"click",t[17]),s=!0)},p:z,i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){yt(n.$$.fragment,t),o=!1},d(t){t&&O(e),Dt(n),s=!1,r()}}}function ds(t){let e,n,o,s,r,i,l,a,c,d,u,m,f=t[12](t[0])+"";const p=[os,ns],$=[];return a=function(t){return t[11]()?0:1}(t),c=$[a]=p[a](t),{c(){e=W("div"),o=j(),s=W("div"),r=W("div"),i=L(f),l=j(),c.c(),V(e,"class",n="domain_card domain_card_"+t[1].indexOf(t[0].event.domain)+" svelte-19y1oy2"),V(r,"class","openTask svelte-19y1oy2"),V(s,"class","task_name svelte-19y1oy2")},m(n,c){A(n,e,c),A(n,o,c),A(n,s,c),N(s,r),N(r,i),N(s,l),$[a].m(s,null),d=!0,u||(m=M(r,"click",t[13]),u=!0)},p(t,o){(!d||3&o&&n!==(n="domain_card domain_card_"+t[1].indexOf(t[0].event.domain)+" svelte-19y1oy2"))&&V(e,"class",n),(!d||1&o)&&f!==(f=t[12](t[0])+"")&&H(i,f),c.p(t,o)},i(t){d||(wt(c),d=!0)},o(t){yt(c),d=!1},d(t){t&&O(e),t&&O(o),t&&O(s),$[a].d(),u=!1,m()}}}function us(t){let e,n,o;return n=new t[7]({props:{class:"lined taskCard",$$slots:{default:[ds]},$$scope:{ctx:t}}}),{c(){e=W("div"),Tt(n.$$.fragment),V(e,"class","click_div svelte-19y1oy2")},m(t,s){A(t,e,s),_t(n,e,null),o=!0},p(t,[e]){const o={};524303&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o)},i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){yt(n.$$.fragment,t),o=!1},d(t){t&&O(e),Dt(n)}}}function ms(t,n,o){let s,r;D(t,i,t=>o(3,r=t));const{loggedIn:a}=p;D(t,a,t=>o(2,s=t));const c=X();let{task:d}=n,{domains:u}=n;const m=window.location.pathname.startsWith("/reporting"),{Card:f,Divider:$,Button:g}=e;function h(t){if(m)return window.singleSpaNavigate(`/reporting/${t.event.id}`);if(t.event.matrix)window.singleSpaNavigate(`/matrix/${t.event.id}`);else{if(t.event.solitaire)return void l.getSolitaire(t.event.class).then(e=>{const n=e.length&&e[0]._id;if(!n)return window.singleSpaNavigate(`/task/${t.event.id}/${t.event.id}/task`);l.getTaskByDocId(n).then(e=>window.singleSpaNavigate(`/task/${t.event.id}/${e.task.id}/task`))});window.singleSpaNavigate(`/task/${t.event.id}/${t.id}/task`)}}function v(t){if(m)return window.singleSpaNavigate(`/reporting/${t.event.id}`);window.singleSpaNavigate(`/task/${t.event.id}/${t.event.id}/task`)}return t.$$set=t=>{"task"in t&&o(0,d=t.task),"domains"in t&&o(1,u=t.domains)},[d,u,s,r,a,c,m,f,$,h,v,()=>d.data?d.event.title:"",()=>{const t=Fn(d);return t.length<30?t:t.slice(0,30)+"..."},()=>h(d),()=>v(d),()=>v(d),()=>Fs(d,s.user,r,c),()=>Ws(d.report)]}class fs extends Nt{constructor(t){var e;super(),document.getElementById("svelte-19y1oy2-style")||((e=W("style")).id="svelte-19y1oy2-style",e.textContent=".task_name.svelte-19y1oy2{font-weight:bold;text-align:center;margin-inline:auto;margin-top:2em;word-wrap:break-word;width:100%}.createTask.svelte-19y1oy2{display:flex;align-items:center;justify-content:center;font-weight:500;font-size:14px}.openTask.svelte-19y1oy2{min-height:2.75em}.openTask.svelte-19y1oy2,.createTask.svelte-19y1oy2,.form--icons.svelte-19y1oy2{cursor:pointer}.click_div.svelte-19y1oy2{align-content:space-between;justify-content:center;display:inline-flex;height:fit-content;width:fit-content}.taskCard{width:10em;height:8em;margin:1em;display:flex;position:relative}.domain_card.svelte-19y1oy2{position:absolute;top:0;left:0;height:2.3em;width:13em;background-color:#e2e2e2}.domain_card_0.svelte-19y1oy2{background-color:#A9C0CE}.domain_card_1.svelte-19y1oy2{background-color:#7E7F80}.domain_card_2.svelte-19y1oy2{background-color:#55C1D9}.domain_card_3.svelte-19y1oy2{background-color:#66A649}.domain_card_4.svelte-19y1oy2{background-color:#F2CF63}.domain_card_5.svelte-19y1oy2{background-color:#BF5A50}.form--icons.svelte-19y1oy2{display:flex;gap:0.45em}",N(document.head,e)),It(this,t,ms,us,_,{task:0,domains:1})}}const{Map:ps}=bt;function $s(t,e,n){const o=t.slice();return o[56]=e[n],o}function gs(t){let e,n;return e=new ae({props:{size:"24"}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function hs(t){let e,n;return e=new ne({props:{size:"24"}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function vs(t){let e,n,o,s;const r=[hs,gs],i=[];function l(t,e){return t[7]?1:0}return e=l(t),n=i[e]=r[e](t),{c(){n.c(),o=B()},m(t,n){i[e].m(t,n),A(t,o,n),s=!0},p(t,s){let a=e;e=l(t),e!==a&&(ht(),yt(i[a],1,1,()=>{i[a]=null}),vt(),n=i[e],n||(n=i[e]=r[e](t),n.c()),wt(n,1),n.m(o.parentNode,o))},i(t){s||(wt(n),s=!0)},o(t){yt(n),s=!1},d(t){i[e].d(t),t&&O(o)}}}function ws(t){let e,n,o,s,r;return n=new ye({props:{size:"42",class:t[3]?"star isStarred"+t[3]:"star"}}),{c(){e=W("span"),Tt(n.$$.fragment)},m(i,l){A(i,e,l),_t(n,e,null),o=!0,s||(r=M(e,"click",t[33]),s=!0)},p(t,e){const o={};8&e[0]&&(o.class=t[3]?"star isStarred"+t[3]:"star"),n.$set(o)},i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){yt(n.$$.fragment,t),o=!1},d(t){t&&O(e),Dt(n),s=!1,r()}}}function ys(t){let e,n,o=[],s=new ps,r=t[31](t[8],t[3]);const i=t=>t[56].id;for(let e=0;e<r.length;e+=1){let n=$s(t,r,e),l=i(n);s.set(l,o[e]=xs(l,n))}return{c(){e=W("div");for(let t=0;t<o.length;t+=1)o[t].c();V(e,"class","task-list svelte-czmext")},m(t,s){A(t,e,s);for(let t=0;t<o.length;t+=1)o[t].m(e,null);n=!0},p(t,n){67109129&n[0]|1&n[1]&&(r=t[31](t[8],t[3]),ht(),o=St(o,n,i,1,t,r,s,e,Et,xs,null,$s),vt())},i(t){if(!n){for(let t=0;t<r.length;t+=1)wt(o[t]);n=!0}},o(t){for(let t=0;t<o.length;t+=1)yt(o[t]);n=!1},d(t){t&&O(e);for(let t=0;t<o.length;t+=1)o[t].d()}}}function ks(t){let e,n,o,s;function r(e){t[41](e)}let i={visibleTasks:t[8],domains:t[0],isStarred:t[3]};return void 0!==t[4]&&(i.starredTasks=t[4]),n=new es({props:i}),nt.push(()=>Ct(n,"starredTasks",r)),n.$on("viewTaskList",t[26]),n.$on("applyFilter",t[24]),{c(){e=W("div"),Tt(n.$$.fragment),V(e,"class","task-list svelte-czmext")},m(t,o){A(t,e,o),_t(n,e,null),s=!0},p(t,e){const s={};256&e[0]&&(s.visibleTasks=t[8]),1&e[0]&&(s.domains=t[0]),8&e[0]&&(s.isStarred=t[3]),!o&&16&e[0]&&(o=!0,s.starredTasks=t[4],dt(()=>o=!1)),n.$set(s)},i(t){s||(wt(n.$$.fragment,t),s=!0)},o(t){yt(n.$$.fragment,t),s=!1},d(t){t&&O(e),Dt(n)}}}function xs(t,e){let n,o,s;return o=new fs({props:{task:e[56],domains:e[0]}}),o.$on("viewTaskList",e[26]),{key:t,first:null,c(){n=B(),Tt(o.$$.fragment),this.first=n},m(t,e){A(t,n,e),_t(o,t,e),s=!0},p(t,n){e=t;const s={};264&n[0]&&(s.task=e[56]),1&n[0]&&(s.domains=e[0]),o.$set(s)},i(t){s||(wt(o.$$.fragment,t),s=!0)},o(t){yt(o.$$.fragment,t),s=!1},d(t){t&&O(n),Dt(o,t)}}}function bs(t){let e,n,o;function s(e){t[43](e)}let r={class:"tModal",noClickaway:!0,$$slots:{default:[Ds]},$$scope:{ctx:t}};return void 0!==t[10]&&(r.open=t[10]),e=new t[16]({props:r}),nt.push(()=>Ct(e,"open",s)),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,o){const s={};2048&o[0]|268435456&o[1]&&(s.$$scope={dirty:o,ctx:t}),!n&&1024&o[0]&&(n=!0,s.open=t[10],dt(()=>n=!1)),e.$set(s)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Dt(e,t)}}}function zs(t){let e;return{c(){e=L("Abbrechen")},m(t,n){A(t,e,n)},d(t){t&&O(e)}}}function Es(t){let e,n;return e=new t[15]({props:{filled:!0,$$slots:{default:[Ss]},$$scope:{ctx:t}}}),e.$on("click",function(){T(t[27](t[11].task,"task"))&&t[27](t[11].task,"task").apply(this,arguments)}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(n,o){t=n;const s={};268435456&o[1]&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Ss(t){let e;return{c(){e=L("Neu")},m(t,n){A(t,e,n)},d(t){t&&O(e)}}}function Cs(t){let e;return{c(){e=W("div"),e.textContent="Es existieren noch keine Tasks von diesem Typ."},m(t,n){A(t,e,n)},p:z,i:z,o:z,d(t){t&&O(e)}}}function Ts(t){let e,n;return e=new $({props:{className:t[11].className,inputList:t[11].list,rowId:t[11].recID,showEdit:!0}}),e.$on("choose",t[42]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};2048&n[0]&&(o.className=t[11].className),2048&n[0]&&(o.inputList=t[11].list),2048&n[0]&&(o.rowId=t[11].recID),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function _s(t){let e,n,o,s,r,i,l,a,c,d;e=new t[18]({}),s=new t[15]({props:{outline:!0,$$slots:{default:[zs]},$$scope:{ctx:t}}}),s.$on("click",t[25]);let u=t[11].task.event.directEdit&&!(t[11].task.event.solitaire&&t[11].list?.length)&&Es(t);const m=[Ts,Cs],f=[];function p(t,e){return t[11].list&&t[11].list.length?0:1}return l=p(t),a=f[l]=m[l](t),{c(){Tt(e.$$.fragment),n=j(),o=W("div"),Tt(s.$$.fragment),r=j(),u&&u.c(),i=j(),a.c(),c=B(),V(o,"class","form--buttons svelte-czmext")},m(t,a){_t(e,t,a),A(t,n,a),A(t,o,a),_t(s,o,null),N(o,r),u&&u.m(o,null),A(t,i,a),f[l].m(t,a),A(t,c,a),d=!0},p(t,e){const n={};268435456&e[1]&&(n.$$scope={dirty:e,ctx:t}),s.$set(n),!t[11].task.event.directEdit||t[11].task.event.solitaire&&t[11].list?.length?u&&(ht(),yt(u,1,1,()=>{u=null}),vt()):u?(u.p(t,e),2048&e[0]&&wt(u,1)):(u=Es(t),u.c(),wt(u,1),u.m(o,null));let r=l;l=p(t),l===r?f[l].p(t,e):(ht(),yt(f[r],1,1,()=>{f[r]=null}),vt(),a=f[l],a?a.p(t,e):(a=f[l]=m[l](t),a.c()),wt(a,1),a.m(c.parentNode,c))},i(t){d||(wt(e.$$.fragment,t),wt(s.$$.fragment,t),wt(u),wt(a),d=!0)},o(t){yt(e.$$.fragment,t),yt(s.$$.fragment,t),yt(u),yt(a),d=!1},d(t){Dt(e,t),t&&O(n),t&&O(o),Dt(s),u&&u.d(),t&&O(i),f[l].d(t),t&&O(c)}}}function Ds(t){let e,n;return e=new t[17]({props:{title:t[11].title,$$slots:{default:[_s]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};2048&n[0]&&(o.title=t[11].title),2048&n[0]|268435456&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Is(t){let e,o,s,r,i,l,a,c,d,u,m,f,p,$,g,h,v,w,y,k,x,b,z,E,S,_,D,I,F,P,B,R,U,G,Z,K,Y,Q,X,tt,et=(t[22]?"Auswertungen":t[14].listTitle||"Aufgabenliste")+"";function ot(e){t[40](e)}l=new t[15]({props:{class:"task-maximize",$$slots:{default:[vs]},$$scope:{ctx:t}}}),l.$on("click",t[29]),g=new Se({props:{size:"18"}});let st={domains:t[0],events:t[1],isReport:t[22],shownTasks:t[13],tenant:t[21]};void 0!==t[9]&&(st.applyFilter=t[9]),v=new Co({props:st}),nt.push(()=>Ct(v,"applyFilter",ot)),v.$on("filterUpdated",t[23]);let rt=!t[22]&&function(t){let e,o;return e=new n({props:{text:t[34](t[3]),postText:t[35](t[3],t[4]),$$slots:{default:[ws]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,n){const o={};8&n[0]&&(o.text=t[34](t[3])),24&n[0]&&(o.postText=t[35](t[3],t[4])),8&n[0]|268435456&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Dt(e,t)}}}(t);S=new Xt({}),B=new Kt({});const it=[ks,ys],lt=[];function at(t,e){return t[6]?0:1}U=at(t),G=lt[U]=it[U](t);let ct=t[10]&&t[11]&&bs(t);return{c(){e=W("div"),o=W("div"),s=W("h2"),r=L(et),i=j(),Tt(l.$$.fragment),a=j(),c=W("div"),d=W("div"),u=W("div"),m=W("div"),f=W("input"),p=j(),$=W("span"),Tt(g.$$.fragment),h=j(),Tt(v.$$.fragment),y=j(),k=W("div"),rt&&rt.c(),x=j(),b=W("input"),z=j(),E=W("label"),Tt(S.$$.fragment),_=j(),D=W("input"),F=j(),P=W("label"),Tt(B.$$.fragment),R=j(),G.c(),Z=j(),ct&&ct.c(),K=j(),Y=W("div"),V(s,"class","svelte-czmext"),V(o,"class","task-header--title svelte-czmext"),V(e,"id","TitleModuleContainer"),V(e,"class","task-header svelte-czmext"),V(f,"type","search ms-auto w-auto"),V(f,"class","task--search svelte-czmext"),V(f,"placeholder","Suche"),V($,"class","feather pointer svelte-czmext"),J(m,"position","relative"),V(u,"class","inside_card--top__left svelte-czmext"),V(b,"class","radiobutton-tools svelte-czmext"),V(b,"type","radio"),V(b,"name","tools"),V(b,"id","tool-1"),b.checked=t[6],V(E,"class","for-radiobutton-tools svelte-czmext"),V(E,"for","tool-1"),V(D,"class","radiobutton-tools svelte-czmext"),V(D,"type","radio"),V(D,"name","tools"),V(D,"id","tool-2"),D.checked=I=!t[6],V(P,"class","for-radiobutton-tools svelte-czmext"),V(P,"for","tool-2"),J(k,"display","flex"),V(d,"class","inside_card--top svelte-czmext"),V(Y,"class","footer_spacer svelte-czmext"),V(c,"class","inside_card svelte-czmext")},m(n,w){A(n,e,w),N(e,o),N(o,s),N(s,r),N(o,i),_t(l,o,null),A(n,a,w),A(n,c,w),N(c,d),N(d,u),N(u,m),N(m,f),q(f,t[5]),N(m,p),N(m,$),_t(g,$,null),N(u,h),_t(v,u,null),N(d,y),N(d,k),rt&&rt.m(k,null),N(k,x),N(k,b),N(k,z),N(k,E),_t(S,E,null),N(k,_),N(k,D),N(k,F),N(k,P),_t(B,P,null),N(c,R),lt[U].m(c,null),N(c,Z),ct&&ct.m(c,null),N(c,K),N(c,Y),t[44](c),Q=!0,X||(tt=[M(o,"pointerdown",function(){T(t[2])&&t[2].apply(this,arguments)}),M(f,"input",t[39]),M($,"click",t[32]),M(b,"change",t[30]),M(D,"change",t[30])],X=!0)},p(e,n){t=e,(!Q||16384&n[0])&&et!==(et=(t[22]?"Auswertungen":t[14].listTitle||"Aufgabenliste")+"")&&H(r,et);const o={};128&n[0]|268435456&n[1]&&(o.$$scope={dirty:n,ctx:t}),l.$set(o),32&n[0]&&q(f,t[5]);const s={};1&n[0]&&(s.domains=t[0]),2&n[0]&&(s.events=t[1]),8192&n[0]&&(s.shownTasks=t[13]),!w&&512&n[0]&&(w=!0,s.applyFilter=t[9],dt(()=>w=!1)),v.$set(s),t[22]||rt.p(t,n),(!Q||64&n[0])&&(b.checked=t[6]),(!Q||64&n[0]&&I!==(I=!t[6]))&&(D.checked=I);let i=U;U=at(t),U===i?lt[U].p(t,n):(ht(),yt(lt[i],1,1,()=>{lt[i]=null}),vt(),G=lt[U],G?G.p(t,n):(G=lt[U]=it[U](t),G.c()),wt(G,1),G.m(c,Z)),t[10]&&t[11]?ct?(ct.p(t,n),3072&n[0]&&wt(ct,1)):(ct=bs(t),ct.c(),wt(ct,1),ct.m(c,K)):ct&&(ht(),yt(ct,1,1,()=>{ct=null}),vt())},i(t){Q||(wt(l.$$.fragment,t),wt(g.$$.fragment,t),wt(v.$$.fragment,t),wt(rt),wt(S.$$.fragment,t),wt(B.$$.fragment,t),wt(G),wt(ct),Q=!0)},o(t){yt(l.$$.fragment,t),yt(g.$$.fragment,t),yt(v.$$.fragment,t),yt(rt),yt(S.$$.fragment,t),yt(B.$$.fragment,t),yt(G),yt(ct),Q=!1},d(n){n&&O(e),Dt(l),n&&O(a),n&&O(c),Dt(g),Dt(v),rt&&rt.d(),Dt(S),Dt(B),lt[U].d(),ct&&ct.d(),t[44](null),X=!1,C(tt)}}}const Ns=new Map,As=async(t,e)=>{let n=Ns.get(e);if(!n){const o=await l.getSectionView(t,{_id:e});o?.length&&(n=o[0]),n&&Ns.set(e,n)}return n},Os=(t,e)=>{if(!t.data)return!1;const n=t.event?.authorization;if(!n)return!1;const o=n.find(t=>t.constraint);if(!o)return!1;if(n.filter(t=>"edit"===t.activity).some(t=>e.find(e=>t.role===e&&!t.constraint)))return!1;const s=t.schema.input?.at(0),r=t.schema.inputLookup?.at(0);if(!r)return!1;if(s!==o.constraint)return!1;const{value:i}=r;return!!i&&{name:s,value:i}};async function Fs(t,e,n,o){const s=t.event.id,r=await l.getTasksList(s,!0);let i=[];for(const t of r.data){const o=Os(t,n);if(o){const{name:n,value:s}=o,r=t[n],l=await As(n,r);l&&e==l[s]&&i.push(t)}else i.push(t)}const a=r.schema,c=a.identity.designation,d=a.class,u=a.display;o("viewTaskList",{task:t,list:i,className:d,items:await g(u,a,i),title:c})}function Ws(t){l.getEvent(t).then(e=>{const n=e.output.subType||"reporting";window.open(`/${n}/${t}?view=standalone`)})}function Ps(t,n,o){let s,r,a,$,g;D(t,i,t=>o(47,a=t)),D(t,c,t=>o(14,g=t));const{Button:h,Modal:v,Dialog:w,Divider:y}=e,{loggedIn:k,currentTasks:x}=p;D(t,k,t=>o(46,r=t)),D(t,x,t=>o(48,$=t));const b=r.tenant,z=b+"-ENABLERR-VIEW",E=b+"-ENABLERR-FAV";let S,C,T,_,{allTasks:I}=n,{domains:N}=n,{events:A}=n,{movePointerDown:O}=n,F=[],W=!0,P=!1,L=[...F],j=[...s||[]],B="isListModeActive";const M=window.location.pathname.startsWith("/reporting");Q(()=>{i.subscribe(async t=>{o(37,F=await Z(t)),S()});const t=JSON.parse(window.localStorage.getItem(E));o(3,T=t?.isStarred||0),o(4,_=t?.starredTasks||[]),C=JSON.parse(window.localStorage.getItem(z)),C||(C={[B]:!0},window.localStorage.setItem(z,JSON.stringify(C))),o(6,W=!1!==C[B])});let R,V="",U=!1;function H(){o(10,U=!1),o(11,R=void 0)}function q(t,e,n=!1){const o=n?t.classNew:t.event.id,s=n?t.classNew:t.id;M?window.singleSpaNavigate(`/reporting/${o}`):window.singleSpaNavigate(`/task/${o}/${s}/${e}`),H()}const J=(t,e,n)=>{q({event:{id:t.detail.row._task.event},id:t.detail.row._task._id},n)};let G;d.subscribe(async t=>{if(t)return t.deleted||"deleted"===t.designation||"DELETE"===t.status?(o(37,F=F.filter(e=>e.id!==t.objectId)),void(S&&S())):void l.getTaskqueue("",t.objectId).then(({task:e})=>{K(e,a).then(n=>{if(!n)return;const s=F.findIndex(e=>e.id===t.objectId);if(s+1)"Closed"===e.status?o(37,F=F.filter(e=>e.id!==t.objectId)):o(37,F[s]=e,F);else{if("Information"===e.event?.stream?.task)return;if(!e.workflow?.numberOfFollowers&&"WaitingForApproval"!==e.status)return;o(37,F=[e,...F])}S&&S()})})}),u.subscribe(async t=>{if(!t)return;const e=F.findIndex(e=>e.id===t.objectId);e+1&&l.getTaskqueue("",t.objectId).then(({task:n})=>{"Waiting"===n.status||"Closed"===n.status?o(37,F=F.filter(e=>e.id!==t.objectId)):o(37,F[e]=n,F),S&&S()})}),m.subscribe(t=>{if(!t)return;const e=t.url.split("/")[3],n=F.find(t=>t.id===e);n&&(n.chat+=1,S&&S())}),f.subscribe(t=>{if(!t)return;const e=t.taskId,n=F.find(t=>t.id===e);n&&("INSERT"===t.status?n.report+=1:"DELETE"===t.status&&(n.report-=1),S&&S())});const Z=async t=>{if(!I)return{};let e={...I};if(void 0===t)return e;e=I.filter(e=>!e.event?.authorization?.length||e.event.authorization.some(e=>t?.find(t=>t===e.role)));const n=[];for(const o of e){const e=Os(o,t);if(e){const{name:t,value:s}=e,i=o.data.item[t];let l=!1;i&&(l=await As(t,i)),l&&r.user==l[s]&&n.push(o)}else n.push(o)}return function(t,e,n=e){t.set(n)}(x,$=n.map(t=>t.event.id),$),n},K=async(t,e)=>{const n=Os(t,e);if(!n)return!0;const{name:o,value:s}=n,i=t.data.item[o],l=await As(o,i);return!(!l||r.user!=l[s])};return t.$$set=t=>{"allTasks"in t&&o(36,I=t.allTasks),"domains"in t&&o(0,N=t.domains),"events"in t&&o(1,A=t.events),"movePointerDown"in t&&o(2,O=t.movePointerDown)},t.$$.update=()=>{64&t.$$.dirty[1]&&o(13,s=[...F]),24&t.$$.dirty[0]&&(()=>{const t={isStarred:T,starredTasks:_};void 0!==T&&void 0!==_&&window.localStorage.setItem(E,JSON.stringify(t))})(),32&t.$$.dirty[0]|128&t.$$.dirty[1]&&(V.length<3&&o(8,j=[...L]),V.toString().length>2&&o(8,j=[...L.filter(t=>{const e=t=>t?.toLowerCase()?.match(`${V.toString().toLowerCase()}.*`);return e(t.event.name)||e(t.event.description)||e(Fn(t))})]))},[N,A,O,T,_,V,W,P,j,S,U,R,G,s,g,h,v,w,y,k,x,b,M,function(t){o(38,L=t.detail.tasks),o(8,j=L)},function(){S()},H,function(t){t.detail&&(o(10,U=!0),o(11,R=t.detail),o(11,R.recID=void 0,R))},q,J,function(){o(7,P=!P),P?G.parentElement.parentElement.classList.add("maximizeTaskModule"):G.parentElement.parentElement.classList.remove("maximizeTaskModule")},function(){o(6,W=!W),C[B]=W,window.localStorage.setItem(z,JSON.stringify(C))},t=>{const e=t.filter(t=>!!t.data);return t=t.filter(t=>!!t.data||!e.find(e=>e.event.id===t.id)),T>0&&_?.length&&(t=t.filter(t=>_.find(e=>e==t.event.id))),t=Xo(t)},()=>{o(5,V="")},()=>{let t=T+1;t>(_?.length?2:1)&&(t=0),o(3,T=t)},t=>0==t?"Favoriten inaktiv":1==t?"Favoriten einrichten":"Favoriten aktiv",(t,e)=>0==t?"Einrichten":1==t&&e?.length?"Aktivieren":"Deaktivieren",I,F,L,function(){V=this.value,o(5,V)},function(t){S=t,o(9,S)},function(t){_=t,o(4,_)},t=>J(t,R.task,"task"),function(t){U=t,o(10,U)},function(t){nt[t?"unshift":"push"](()=>{G=t,o(12,G)})}]}class Ls extends Nt{constructor(t){var e;super(),document.getElementById("svelte-czmext-style")||((e=W("style")).id="svelte-czmext-style",e.textContent='.modal-overlay > .dialog{margin-top:-15em}header:has(nav.closed) + section .task-list + .modal-overlay .dialog{margin-top:10em}.modal-overlay > .dialog.eList{margin-top:-5em}.feather.svelte-czmext.svelte-czmext{position:absolute;top:1em;right:1em;color:#326173}.feather-star.isStarred1{fill:#F2CF63}.feather-star.isStarred2{fill:#A9C0CE}.feather-star.star{cursor:alias;margin-top:0.5em}.maximizeTaskModule{width:95vw !important;height:90vh !important;position:fixed !important;top:20px;z-index:2}.inside_card.svelte-czmext.svelte-czmext{margin:1.4em 1.4em 0 1.4em;display:flex;flex-flow:column;height:calc(100% - 65px - 1.4em)}.inside_card--top.svelte-czmext.svelte-czmext{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:center;row-gap:1em;margin-bottom:1em}.inside_card--top.svelte-czmext .inside_card--top__left.svelte-czmext{position:relative;display:flex;gap:1em;flex-flow:row wrap}.inside_card--top.svelte-czmext .inside_card--top__left .task--search.svelte-czmext{padding:1em;width:20em}.inside_card--top.svelte-czmext .inside_card--top__left.svelte-czmext .dropdown-filter{padding:1em}.task-header.svelte-czmext.svelte-czmext{padding:0 1.4em;display:flex;flex-flow:column;background-color:#326173;color:white;border-top-left-radius:1.5625em;border-top-right-radius:1.5625em}.task-header--title.svelte-czmext.svelte-czmext{height:65px;display:flex;flex:0 1 auto;justify-content:space-between;align-items:center;margin-right:1.5em;user-select:none;cursor:grab}.task-header--title.svelte-czmext h2.svelte-czmext{margin:0}.task-header--title.svelte-czmext .task-maximize{color:#fff;padding:0}.task-list.svelte-czmext.svelte-czmext{display:flex;flex-flow:row wrap;flex:1 1 auto;overflow-y:auto;overflow-x:auto;width:100%;border:1px solid #ccc;border-radius:0.5em}.footer_spacer.svelte-czmext.svelte-czmext{flex:0 1 4.2em}[type=radio].svelte-czmext.svelte-czmext:checked,[type=radio].svelte-czmext.svelte-czmext:not(:checked){position:absolute;left:-9999px;width:0;height:0;visibility:hidden}.radiobutton-tools.svelte-czmext:checked+label.svelte-czmext,.radiobutton-tools.svelte-czmext:not(:checked)+label.svelte-czmext{position:relative;display:inline-block;padding:15px;width:25px;height:25px;font-size:17px;font-weight:bold;line-height:20px;letter-spacing:1px;margin:0 0 0 10px;text-align:center;vertical-align:middle;border-radius:15px;overflow:hidden;cursor:pointer;text-transform:uppercase;color:#000000;-webkit-transition:all 300ms linear;transition:all 300ms linear;box-shadow:1px 1px 4px 0 rgba(0, 0, 0, 0.1)}.radiobutton-tools.svelte-czmext:not(:checked)+label.svelte-czmext{background-color:#DAE1E5;color:#000000}.radiobutton-tools.svelte-czmext:checked+label.svelte-czmext{background-color:#326173;color:#ffffff}.radiobutton-tools.svelte-czmext:not(:checked)+label.svelte-czmext:hover{box-shadow:3px 3px 4px 0px rgba(0, 0, 0, 0.2)}.radiobutton-tools.svelte-czmext:checked+label.svelte-czmext::before,.radiobutton-tools.svelte-czmext:not(:checked)+label.svelte-czmext::before{position:absolute;content:"";top:0;left:0;width:100%;height:100%;border-radius:15px;z-index:-1}.form--buttons.svelte-czmext.svelte-czmext{display:flex;gap:1em;padding-bottom:0.5em}',N(document.head,e)),It(this,t,Ps,Is,_,{allTasks:36,domains:0,events:1,movePointerDown:2},[-1,-1])}}function js(t){let e,n=t[0].name+"";return{c(){e=L(n)},m(t,n){A(t,e,n)},p(t,o){1&o&&n!==(n=t[0].name+"")&&H(e,n)},d(t){t&&O(e)}}}function Bs(t){let e;return{c(){e=L("i")},m(t,n){A(t,e,n)},d(t){t&&O(e)}}}function Ms(t){let e;return{c(){e=L("activate")},m(t,n){A(t,e,n)},d(t){t&&O(e)}}}function Rs(t){let e,n,o,s,r,i,l,a;return n=new t[2]({props:{$$slots:{default:[js]},$$scope:{ctx:t}}}),s=new t[1]({props:{filled:!0,class:"info",$$slots:{default:[Bs]},$$scope:{ctx:t}}}),l=new t[1]({props:{filled:!0,$$slots:{default:[Ms]},$$scope:{ctx:t}}}),l.$on("click",t[6]),{c(){e=W("div"),Tt(n.$$.fragment),o=j(),Tt(s.$$.fragment),r=j(),i=W("div"),Tt(l.$$.fragment),V(e,"class","module-name svelte-15g6xoi"),V(i,"class","activate svelte-15g6xoi")},m(t,c){A(t,e,c),_t(n,e,null),N(e,o),_t(s,e,null),A(t,r,c),A(t,i,c),_t(l,i,null),a=!0},p(t,[e]){const o={};129&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o);const r={};128&e&&(r.$$scope={dirty:e,ctx:t}),s.$set(r);const i={};128&e&&(i.$$scope={dirty:e,ctx:t}),l.$set(i)},i(t){a||(wt(n.$$.fragment,t),wt(s.$$.fragment,t),wt(l.$$.fragment,t),a=!0)},o(t){yt(n.$$.fragment,t),yt(s.$$.fragment,t),yt(l.$$.fragment,t),a=!1},d(t){t&&O(e),Dt(n),Dt(s),t&&O(r),t&&O(i),Dt(l)}}}function Vs(t,n,o){const{Button:s,Label:r}=e;let{module:i}=n,{list:l}=n,{functionProp:a=()=>{}}=n;const c=t=>{a(t)};return t.$$set=t=>{"module"in t&&o(0,i=t.module),"list"in t&&o(4,l=t.list),"functionProp"in t&&o(5,a=t.functionProp)},[i,s,r,c,l,a,()=>{c(i)}]}class Us extends Nt{constructor(t){var e;super(),document.getElementById("svelte-15g6xoi-style")||((e=W("style")).id="svelte-15g6xoi-style",e.textContent=".module-name.svelte-15g6xoi{padding-left:0.5em;display:flex;align-items:center}.activate.svelte-15g6xoi{align-self:center}.module-name.svelte-15g6xoi .info{width:10px;height:10px;padding:0.9em 0.9em 0.9em 0.6em;margin-left:0.4em;float:left}",N(document.head,e)),It(this,t,Vs,Rs,_,{module:0,list:4,functionProp:5})}}function Hs(t,e,n){const o=t.slice();return o[10]=e[n],o}function qs(t){let e,n,o,s,r,i,l,a,c,d,u,m,f;o=new Ft({props:{size:"24",class:"ml"}}),l=new t[6]({});let p={ctx:t,current:null,token:null,hasCatch:!1,pending:Ys,then:Zs,catch:Gs,value:9,blocks:[,,,]};return kt(d=t[3],p),{c(){e=W("div"),n=W("div"),Tt(o.$$.fragment),s=j(),r=W("div"),r.innerHTML='<h4 class="svelte-4o0fgs">Module</h4> \n <input type="search" placeholder="Suche" class="svelte-4o0fgs"/>',i=j(),Tt(l.$$.fragment),a=j(),c=W("div"),p.block.c(),V(n,"class","back-button svelte-4o0fgs"),V(r,"class","header svelte-4o0fgs"),V(c,"class","content svelte-4o0fgs"),V(e,"class","table_list svelte-4o0fgs")},m(d,$){A(d,e,$),N(e,n),_t(o,n,null),N(e,s),N(e,r),N(e,i),_t(l,e,null),N(e,a),N(e,c),p.block.m(c,p.anchor=null),p.mount=()=>c,p.anchor=null,u=!0,m||(f=M(n,"click",t[7]),m=!0)},p(e,n){t=e,p.ctx=t,8&n&&d!==(d=t[3])&&kt(d,p)||xt(p,t,n)},i(t){u||(wt(o.$$.fragment,t),wt(l.$$.fragment,t),wt(p.block),u=!0)},o(t){yt(o.$$.fragment,t),yt(l.$$.fragment,t);for(let t=0;t<3;t+=1){yt(p.blocks[t])}u=!1},d(t){t&&O(e),Dt(o),Dt(l),p.block.d(),p.token=null,p=null,m=!1,f()}}}function Js(t){let e,n,o;return n=new t[5]({props:{filled:!0,$$slots:{default:[Qs]},$$scope:{ctx:t}}}),n.$on("click",t[7]),{c(){e=W("div"),Tt(n.$$.fragment),V(e,"class","add-button svelte-4o0fgs")},m(t,s){A(t,e,s),_t(n,e,null),o=!0},p(t,e){const o={};8193&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o)},i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){yt(n.$$.fragment,t),o=!1},d(t){t&&O(e),Dt(n)}}}function Gs(t){return{c:z,m:z,p:z,i:z,o:z,d:z}}function Zs(t){let e,n,o=t[9],s=[];for(let e=0;e<o.length;e+=1)s[e]=Ks(Hs(t,o,e));const r=t=>yt(s[t],1,1,()=>{s[t]=null});return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=B()},m(t,o){for(let e=0;e<s.length;e+=1)s[e].m(t,o);A(t,e,o),n=!0},p(t,n){if(10&n){let i;for(o=t[9],i=0;i<o.length;i+=1){const r=Hs(t,o,i);s[i]?(s[i].p(r,n),wt(s[i],1)):(s[i]=Ks(r),s[i].c(),wt(s[i],1),s[i].m(e.parentNode,e))}for(ht(),i=o.length;i<s.length;i+=1)r(i);vt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)wt(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)yt(s[t]);n=!1},d(t){F(s,t),t&&O(e)}}}function Ks(t){let e,n,o,s;return n=new Us({props:{module:t[10],list:t[9],functionProp:t[8]}}),{c(){e=W("div"),Tt(n.$$.fragment),o=j(),V(e,"class","module svelte-4o0fgs")},m(t,r){A(t,e,r),_t(n,e,null),N(e,o),s=!0},p(t,e){const o={};8&e&&(o.module=t[10]),8&e&&(o.list=t[9]),2&e&&(o.functionProp=t[8]),n.$set(o)},i(t){s||(wt(n.$$.fragment,t),s=!0)},o(t){yt(n.$$.fragment,t),s=!1},d(t){t&&O(e),Dt(n)}}}function Ys(t){return{c:z,m:z,p:z,i:z,o:z,d:z}}function Qs(t){let e,n=t[0].text+"";return{c(){e=L(n)},m(t,n){A(t,e,n)},p(t,o){1&o&&n!==(n=t[0].text+"")&&H(e,n)},d(t){t&&O(e)}}}function Xs(t){let e,n,o,s;const r=[Js,qs],i=[];function l(t,e){return t[2]?1:0}return e=l(t),n=i[e]=r[e](t),{c(){n.c(),o=B()},m(t,n){i[e].m(t,n),A(t,o,n),s=!0},p(t,s){let a=e;e=l(t),e===a?i[e].p(t,s):(ht(),yt(i[a],1,1,()=>{i[a]=null}),vt(),n=i[e],n?n.p(t,s):(n=i[e]=r[e](t),n.c()),wt(n,1),n.m(o.parentNode,o))},i(t){s||(wt(n),s=!0)},o(t){yt(n),s=!1},d(t){i[e].d(t),t&&O(o)}}}function tr(t){let e,n;return e=new t[4]({props:{class:"db",$$slots:{default:[Xs]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,[n]){const o={};8207&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function er(t,n,o){let s;const{Dialog:r,Button:i,Divider:a}=e;let{dataItem:c}=n,d=!1,{functionProp:u=()=>{}}=n;return t.$$set=t=>{"dataItem"in t&&o(0,c=t.dataItem),"functionProp"in t&&o(1,u=t.functionProp)},o(3,s=l.getAllModules()),[c,u,d,s,r,i,a,function(){o(2,d=!d)},t=>u(t)]}class nr extends Nt{constructor(t){var e;super(),document.getElementById("svelte-4o0fgs-style")||((e=W("style")).id="svelte-4o0fgs-style",e.textContent=".add-button.svelte-4o0fgs.svelte-4o0fgs{display:grid;place-items:center;height:100%}.back-button.svelte-4o0fgs.svelte-4o0fgs{width:30px;height:24px;cursor:pointer}.table_list.svelte-4o0fgs.svelte-4o0fgs{height:100%;padding:1em}.table_list.svelte-4o0fgs .header.svelte-4o0fgs{display:grid;grid-template-columns:0.5fr 1fr;margin:0.5em;gap:1em}.table_list.svelte-4o0fgs .header h4.svelte-4o0fgs{align-self:center;margin:0}.table_list.svelte-4o0fgs .header input.svelte-4o0fgs{padding:0.2em}.table_list.svelte-4o0fgs .content.svelte-4o0fgs{overflow-y:auto;height:calc(100% - 115px)}.table_list.svelte-4o0fgs .content .module.svelte-4o0fgs{display:flex;justify-content:space-between;border-bottom:1px solid #ccc;padding:0.8em 0.5em 0.8em 0}",N(document.head,e)),It(this,t,er,tr,_,{dataItem:0,functionProp:1})}}function or(t){let e,n;let o=function(t){return t[7]?ir:rr}(t),s=o(t);return{c(){e=W("m-box"),n=W("h3"),s.c()},m(t,o){A(t,e,o),N(e,n),s.m(n,null)},p:z,i:z,o:z,d(t){t&&O(e),s.d()}}}function sr(t){let e,n,o,s;const r=[dr,cr,ar,lr],i=[];function l(t,e){return 1111===t[0].id?0:3333===t[0].id?1:4444===t[0].id?2:3}return e=l(t),n=i[e]=r[e](t),{c(){n.c(),o=B()},m(t,n){i[e].m(t,n),A(t,o,n),s=!0},p(t,s){let a=e;e=l(t),e===a?i[e].p(t,s):(ht(),yt(i[a],1,1,()=>{i[a]=null}),vt(),n=i[e],n?n.p(t,s):(n=i[e]=r[e](t),n.c()),wt(n,1),n.m(o.parentNode,o))},i(t){s||(wt(n),s=!0)},o(t){yt(n),s=!1},d(t){i[e].d(t),t&&O(o)}}}function rr(t){let e;return{c(){e=L("Keine Tasks vorhanden!")},m(t,n){A(t,e,n)},d(t){t&&O(e)}}}function ir(t){let e;return{c(){e=L("Keine Auswertungen vorhanden!")},m(t,n){A(t,e,n)},d(t){t&&O(e)}}}function lr(t){let e,n;return e=new nr({props:{dataItem:t[0],functionProp:t[8]}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.dataItem=t[0]),32&n&&(o.functionProp=t[8]),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function ar(t){let e,n;return e=new t[6]({props:{class:"db",$$slots:{default:[ur]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};512&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function cr(t){let e,n;return e=new t[6]({props:{class:"db",$$slots:{default:[mr]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};514&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function dr(t){let e,n;return e=new t[6]({props:{class:"db",$$slots:{default:[fr]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};542&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function ur(t){let e,n;return e=new h({}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function mr(t){let e,n;return e=new v({props:{movePointerDown:t[1]}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};2&n&&(o.movePointerDown=t[1]),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function fr(t){let e,n;return e=new Ls({props:{allTasks:t[2].task,movePointerDown:t[1],domains:t[3],events:t[4]}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};4&n&&(o.allTasks=t[2].task),2&n&&(o.movePointerDown=t[1]),8&n&&(o.domains=t[3]),16&n&&(o.events=t[4]),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function pr(t){let e,n,o,s;const r=[sr,or],i=[];function l(t,e){return t[2]?.task?.length>0?0:1111===t[0].id?1:-1}return~(e=l(t))&&(n=i[e]=r[e](t)),{c(){n&&n.c(),o=B()},m(t,n){~e&&i[e].m(t,n),A(t,o,n),s=!0},p(t,[s]){let a=e;e=l(t),e===a?~e&&i[e].p(t,s):(n&&(ht(),yt(i[a],1,1,()=>{i[a]=null}),vt()),~e?(n=i[e],n?n.p(t,s):(n=i[e]=r[e](t),n.c()),wt(n,1),n.m(o.parentNode,o)):n=null)},i(t){s||(wt(n),s=!0)},o(t){yt(n),s=!1},d(t){~e&&i[e].d(t),t&&O(o)}}}function $r(t,n,o){const{Dialog:s}=e;let{dataItem:r}=n,{movePointerDown:i}=n,{allTasks:l}=n,{domains:a}=n,{events:c}=n,{functionProp:d=()=>{}}=n;const u=window.location.pathname.startsWith("/reporting");return t.$$set=t=>{"dataItem"in t&&o(0,r=t.dataItem),"movePointerDown"in t&&o(1,i=t.movePointerDown),"allTasks"in t&&o(2,l=t.allTasks),"domains"in t&&o(3,a=t.domains),"events"in t&&o(4,c=t.events),"functionProp"in t&&o(5,d=t.functionProp)},[r,i,l,a,c,d,s,u,t=>d(t)]}class gr extends Nt{constructor(t){super(),It(this,t,$r,pr,_,{dataItem:0,movePointerDown:1,allTasks:2,domains:3,events:4,functionProp:5})}}function hr(t){let e,n,s,r;function i(e){t[16](e)}let l={fillSpace:!1,rowHeight:150,cols:t[8],$$slots:{default:[xr,({dataItem:t,movePointerDown:e})=>({22:t,23:e}),({dataItem:t,movePointerDown:e})=>(t?4194304:0)|(e?8388608:0)]},$$scope:{ctx:t}};return void 0!==t[0]&&(l.items=t[0]),n=new o({props:l}),nt.push(()=>Ct(n,"items",i)),n.$on("resize",t[11]),n.$on("pointerup",function(){T(t[12](t[0]))&&t[12](t[0]).apply(this,arguments)}),{c(){e=W("section"),Tt(n.$$.fragment),V(e,"id","main"),V(e,"class","svelte-1srl82f")},m(t,o){A(t,e,o),_t(n,e,null),r=!0},p(e,o){t=e;const r={};29360158&o&&(r.$$scope={dirty:o,ctx:t}),!s&&1&o&&(s=!0,r.items=t[0],dt(()=>s=!1)),n.$set(r)},i(t){r||(wt(n.$$.fragment,t),r=!0)},o(t){yt(n.$$.fragment,t),r=!1},d(t){t&&O(e),Dt(n)}}}function vr(t){let e,n;return e=new t[7]({props:{class:"btn--close",$$slots:{default:[wr]},$$scope:{ctx:t}}}),e.$on("click",function(){return t[13](t[22])}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(n,o){t=n;const s={};16777216&o&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function wr(t){let e,n;return e=new Se({}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function yr(t){let e,n;return e=new gr({props:{allTasks:t[2],dataItem:t[22],settings:t[1],movePointerDown:t[23],functionProp:t[15]}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};4&n&&(o.allTasks=t[2]),4194304&n&&(o.dataItem=t[22]),2&n&&(o.settings=t[1]),8388608&n&&(o.movePointerDown=t[23]),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function kr(t){let e,n;return e=new gr({props:{allTasks:t[2],domains:t[3],events:t[4],dataItem:t[22],settings:t[1],movePointerDown:t[23],functionProp:t[14]}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};4&n&&(o.allTasks=t[2]),8&n&&(o.domains=t[3]),16&n&&(o.events=t[4]),4194304&n&&(o.dataItem=t[22]),2&n&&(o.settings=t[1]),8388608&n&&(o.movePointerDown=t[23]),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function xr(t){let e,n,o,s,r,i=9999!==t[22].id&&vr(t);const l=[kr,yr],a=[];function c(t,e){return 1111===t[22].id?0:1}return n=c(t),o=a[n]=l[n](t),{c(){i&&i.c(),e=j(),o.c(),s=B()},m(t,o){i&&i.m(t,o),A(t,e,o),a[n].m(t,o),A(t,s,o),r=!0},p(t,r){9999!==t[22].id?i?(i.p(t,r),4194304&r&&wt(i,1)):(i=vr(t),i.c(),wt(i,1),i.m(e.parentNode,e)):i&&(ht(),yt(i,1,1,()=>{i=null}),vt());let d=n;n=c(t),n===d?a[n].p(t,r):(ht(),yt(a[d],1,1,()=>{a[d]=null}),vt(),o=a[n],o?o.p(t,r):(o=a[n]=l[n](t),o.c()),wt(o,1),o.m(s.parentNode,s))},i(t){r||(wt(i),wt(o),r=!0)},o(t){yt(i),yt(o),r=!1},d(t){i&&i.d(t),t&&O(e),a[n].d(t),t&&O(s)}}}function br(t){let e,n,o=!t[5]&&hr(t);return{c(){o&&o.c(),e=B()},m(t,s){o&&o.m(t,s),A(t,e,s),n=!0},p(t,[n]){t[5]?o&&(ht(),yt(o,1,1,()=>{o=null}),vt()):o?(o.p(t,n),32&n&&wt(o,1)):(o=hr(t),o.c(),wt(o,1),o.m(e.parentNode,e))},i(t){n||(wt(o),n=!0)},o(t){yt(o),n=!1},d(t){o&&o.d(t),t&&O(e)}}}function zr(t,n,o){let r;const{loggedIn:i}=p;D(t,i,t=>o(17,r=t));const{Dialog:l,Button:a}=e;let{module:c=[]}=n,{settings:d=[]}=n,{allTasks:u=[]}=n,{domains:m=[]}=n,{events:f=[]}=n,{isStandalone:$=!1}=n;const g=r.tenant+"-ENABLERR-MODULES",h=JSON.parse(localStorage.getItem(g));h&&(c=h);const v=[...c],w=t=>{o(0,c=c.filter(e=>e.id!==t.id)),o(0,c=s.adjust(c,6)),o(0,c=s.normalize(c,6))};async function y(t){if(null!=c.find(e=>e.id==t.id))return;let e=s.findSpace(t,c,6),n={...t,6:{...t[6],...e},5:{...t[5],...e},4:{...t[4],...e},3:{...t[3],...e},2:{...t[2],...e},1:{...t[1],...e}};c.push(n),o(0,c=s.adjust(c,6)),o(0,c=s.normalize(c,6))}return t.$$set=t=>{"module"in t&&o(0,c=t.module),"settings"in t&&o(1,d=t.settings),"allTasks"in t&&o(2,u=t.allTasks),"domains"in t&&o(3,m=t.domains),"events"in t&&o(4,f=t.events),"isStandalone"in t&&o(5,$=t.isStandalone)},[c,d,u,m,f,$,i,a,[[9e3,6],[2e3,5],[1500,4],[1200,3],[1008,1]],w,y,({detail:t})=>{window.innerWidth<1065?o(0,c=[c[0]]):c.length<2&&o(0,c=v)},t=>()=>{localStorage.setItem(g,JSON.stringify(t))},t=>w(t),t=>y(t),t=>y(t),function(t){c=t,o(0,c)}]}class Er extends Nt{constructor(t){var e;super(),document.getElementById("svelte-1srl82f-style")||((e=W("style")).id="svelte-1srl82f-style",e.textContent="section#main.svelte-1srl82f{position:relative;width:100%;right:1em;padding-top:0.25em;padding-bottom:0.25em}section#main.svelte-1srl82f .btn--close{position:absolute;height:1.25em;top:1.45em;right:1em;z-index:1;color:white;padding:0 !important}.feather.moveIcon{margin-right:0.25em}.dialog.db{width:auto !important;height:100%;overflow-y:visible;padding:0 !important}:root{--task-header-color:rgba(217, 178, 103, 0.55)}.svlt-grid-item{transition:none !important;min-height:70vh}",N(document.head,e)),It(this,t,zr,br,_,{module:0,settings:1,allTasks:2,domains:3,events:4,isStandalone:5})}}const Sr=[{day:"Sonntag",status:!1,value:"Su"},{day:"Montag",status:!1,value:"Mo"},{day:"Dienstag",status:!1,value:"Tu"},{day:"Mittwoch",status:!1,value:"We"},{day:"Donnerstag",status:!1,value:"Th"},{day:"Freitag",status:!1,value:"Fr"},{day:"Samstag",status:!1,value:"Sa"}];var Cr=(t=new Date)=>Sr[t.getDay()];function Tr(t){t[15]=t[19].domains,t[16]=t[19].events,t[17]=t[19].module,t[18]=t[19].moduleList}function _r(t){return{c:z,m:z,p:z,i:z,o:z,d:z}}function Dr(t){let e,n;return Tr(t),e=new Er({props:{module:t[17],allTasks:t[0],domains:t[15],events:t[16],settings:t[18],isStandalone:t[2]}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){Tr(t);const o={};1&n&&(o.allTasks=t[0]),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Ir(t){return{c:z,m:z,p:z,i:z,o:z,d:z}}function Nr(t){let e,n,o,s,i,l,a;document.title=e="enablerr - "+(t[3]?"Auswertungen":"Aufgabenliste");let c={ctx:t,current:null,token:null,hasCatch:!1,pending:Ir,then:Dr,catch:_r,value:19,blocks:[,,,]};return kt(t[4](),c),l=new r({}),{c(){n=j(),o=W("section"),s=W("l-container"),c.block.c(),i=j(),Tt(l.$$.fragment),U(s,"class","shadow"),U(s,"maxwidth","ld"),V(o,"class","svelte-i05i0l")},m(t,e){A(t,n,e),A(t,o,e),N(o,s),c.block.m(s,c.anchor=null),c.mount=()=>s,c.anchor=null,A(t,i,e),_t(l,t,e),a=!0},p(n,[o]){t=n,(!a||8&o)&&e!==(e="enablerr - "+(t[3]?"Auswertungen":"Aufgabenliste"))&&(document.title=e),xt(c,t,o)},i(t){a||(wt(c.block),wt(l.$$.fragment,t),a=!0)},o(t){for(let t=0;t<3;t+=1){yt(c.blocks[t])}yt(l.$$.fragment,t),a=!1},d(t){t&&O(n),t&&O(o),c.block.d(),c.token=null,c=null,t&&O(i),Dt(l,t)}}}function Ar(t,e,n){let o,s;D(t,c,t=>n(7,s=t));const{getModules:r,getDefaultLayout:a}=l,{loggedIn:d,mainView:u}=p;let m,f;D(t,d,t=>n(6,o=t));const $=-1!==window.location.search.indexOf("view=standalone"),g=window.location.pathname.startsWith("/reporting")||window.location.pathname.startsWith("/screen");return[m,d,$,g,async function(){if(u.set(g?"Auswertungen":"Aufgabenliste"),$||localStorage.setItem(o.tenant+"-ENABLERR-MAINVIEW",g?"REPORTING":"TASKS"),f=await l.getUserSettings(o.tenant),!f?.setting){const t=Math.floor(1e3+9e3*Math.random()).toString();f=await l.saveDefaultSettings(o.user,t)}if(c.set(f),f.role&&i.set(f.role),$)return{};const t=function(t){const e=[...t.task];return t.task=e.filter(t=>t.data?"Information"!==t.event.stream.task&&("WaitingForApproval"===t.status||!!t.workflow?.numberOfFollowers):!s.role?.length||(!t.event?.authorization?.length||t.event.authorization.some(t=>s.role?.find(e=>e===t.role)))),t}(g?await l.getReporting():await l.getTaskqueue(o.tenant)),e=t.task.map(t=>t.event.domain);let d=[...new Set(e)];d=d.sort((t,e)=>{let n=t.toLowerCase(),o=e.toLowerCase();return n<o?-1:n>o?1:0});let p=[...new Set(t.task.map(t=>t.event.designation+"|"+t.event.domain))];const{module:h,moduleList:v}=await async function(){const t=function(t){const e=a();if(!t?.setting?.dashboardLayout?.length)return e[0];const n=t.setting.dashboardLayout.filter(t=>t.activated&&t.days.includes(Cr().value));return null==n||0==n.length?e[0]:n[0]}(s);let e=[];t&&(e=[].concat.apply([],t.moduleList?.map(t=>Number(t.moduleId))));return{module:r(e),moduleList:t}}();return n(0,m=t),{domains:d,events:p,module:h,moduleList:v}}]}function Or(t){let e,n,o;return{c(){e=P("svg"),n=P("circle"),o=P("path"),V(n,"cx","10"),V(n,"cy","10"),V(n,"r","9.5"),V(n,"fill","#FF8686"),V(n,"stroke","#383F51"),V(o,"d","M11.3281 3.91406L11.0542 12.3062H9.06201L8.77979 3.91406H11.3281ZM8.71338 14.9043C8.71338 14.5501 8.83512 14.2568 9.07861 14.0244C9.32764 13.7865 9.65413 13.6675 10.0581 13.6675C10.4676 13.6675 10.7941 13.7865 11.0376 14.0244C11.2811 14.2568 11.4028 14.5501 11.4028 14.9043C11.4028 15.2474 11.2811 15.5379 11.0376 15.7759C10.7941 16.0138 10.4676 16.1328 10.0581 16.1328C9.65413 16.1328 9.32764 16.0138 9.07861 15.7759C8.83512 15.5379 8.71338 15.2474 8.71338 14.9043Z"),V(o,"fill","#383F51"),V(e,"class",t[0]),J(e,"margin-left",t[1]),V(e,"width","20"),V(e,"height","20"),V(e,"viewBox","0 0 20 20"),V(e,"fill","none"),V(e,"xmlns","http://www.w3.org/2000/svg")},m(t,s){A(t,e,s),N(e,n),N(e,o)},p(t,[n]){1&n&&V(e,"class",t[0]),2&n&&J(e,"margin-left",t[1])},i:z,o:z,d(t){t&&O(e)}}}function Fr(t,e,n){let{css:o}=e,{margin:s}=e;return t.$$set=t=>{"css"in t&&n(0,o=t.css),"margin"in t&&n(1,s=t.margin)},[o,s]}function Wr(t){let e,n,o;return{c(){e=P("svg"),n=P("circle"),o=P("path"),V(n,"cx","10"),V(n,"cy","10"),V(n,"r","9.5"),V(n,"fill","#FFFFFF"),V(n,"stroke","#383F51"),V(o,"d","M11.3281 3.91406L11.0542 12.3062H9.06201L8.77979 3.91406H11.3281ZM8.71338 14.9043C8.71338 14.5501 8.83512 14.2568 9.07861 14.0244C9.32764 13.7865 9.65413 13.6675 10.0581 13.6675C10.4676 13.6675 10.7941 13.7865 11.0376 14.0244C11.2811 14.2568 11.4028 14.5501 11.4028 14.9043C11.4028 15.2474 11.2811 15.5379 11.0376 15.7759C10.7941 16.0138 10.4676 16.1328 10.0581 16.1328C9.65413 16.1328 9.32764 16.0138 9.07861 15.7759C8.83512 15.5379 8.71338 15.2474 8.71338 14.9043Z"),V(o,"fill","#383F51"),V(e,"class",t[0]),J(e,"margin-left",t[1]),V(e,"width","20"),V(e,"height","20"),V(e,"viewBox","0 0 20 20"),V(e,"fill","none"),V(e,"xmlns","http://www.w3.org/2000/svg")},m(t,s){A(t,e,s),N(e,n),N(e,o)},p(t,[n]){1&n&&V(e,"class",t[0]),2&n&&J(e,"margin-left",t[1])},i:z,o:z,d(t){t&&O(e)}}}function Pr(t,e,n){let{css:o}=e,{margin:s}=e;return t.$$set=t=>{"css"in t&&n(0,o=t.css),"margin"in t&&n(1,s=t.margin)},[o,s]}function Lr(t){let e,n,o,s,r,i,l,a,c,d,u,m,f;return{c(){e=P("svg"),n=P("circle"),o=P("path"),s=P("ellipse"),r=P("ellipse"),i=P("ellipse"),l=P("ellipse"),a=P("ellipse"),c=P("ellipse"),d=P("ellipse"),u=P("ellipse"),m=P("ellipse"),f=P("ellipse"),V(n,"cx","41"),V(n,"cy","41"),V(n,"r","41"),V(n,"fill","#53C6D6"),V(o,"d","M59.3297 56.7273C62.706 62.5455 52.7918 64 41.6031 64C30.4144 64 20.5001 63.0303 22.1884 56.7273C22.1884 51.3939 27.8822 48 39.0709 48C50.2596 48 59.3297 51.3718 59.3297 56.7273Z"),V(o,"fill","#4F4F4F"),V(s,"cx","41"),V(s,"cy","50.5"),V(s,"rx","30"),V(s,"ry","9.5"),V(s,"fill","#828282"),V(r,"cx","31"),V(r,"cy","21.5"),V(r,"rx","5"),V(r,"ry","5.5"),V(r,"fill","#4F4F4F"),V(i,"cx","51"),V(i,"cy","21.5"),V(i,"rx","5"),V(i,"ry","5.5"),V(i,"fill","#4F4F4F"),V(l,"cx","40.5"),V(l,"cy","35"),V(l,"rx","19"),V(l,"ry","12.5"),V(l,"transform","rotate(-90 40.5 35)"),V(l,"fill","#828282"),V(a,"cx","30.5"),V(a,"cy","48.0002"),V(a,"rx","2.5"),V(a,"ry","3"),V(a,"transform","rotate(-27.8822 30.5 48.0002)"),V(a,"fill","#C4C4C4"),V(c,"cx","49.6651"),V(c,"cy","47.8481"),V(c,"rx","2.5"),V(c,"ry","3"),V(c,"transform","rotate(30 49.6651 47.8481)"),V(c,"fill","#C4C4C4"),V(d,"cx","36"),V(d,"cy","34.5"),V(d,"rx","2"),V(d,"ry","5.5"),V(d,"fill","#F2F2F2"),V(u,"cx","36"),V(u,"cy","37"),V(u,"rx","2"),V(u,"ry","3"),V(u,"fill","#4F4F4F"),V(m,"cx","44"),V(m,"cy","34.5"),V(m,"rx","2"),V(m,"ry","5.5"),V(m,"fill","#F2F2F2"),V(f,"cx","44"),V(f,"cy","37"),V(f,"rx","2"),V(f,"ry","3"),V(f,"fill","#4F4F4F"),V(e,"class",t[0]),J(e,"float",t[1]),V(e,"width","1.5em"),V(e,"height","1.5em"),V(e,"viewBox","0 0 82 82"),V(e,"fill","none"),V(e,"xmlns","http://www.w3.org/2000/svg")},m(t,p){A(t,e,p),N(e,n),N(e,o),N(e,s),N(e,r),N(e,i),N(e,l),N(e,a),N(e,c),N(e,d),N(e,u),N(e,m),N(e,f)},p(t,[n]){1&n&&V(e,"class",t[0]),2&n&&J(e,"float",t[1])},i:z,o:z,d(t){t&&O(e)}}}function jr(t,e,n){let{css:o}=e,{direction:s}=e;return t.$$set=t=>{"css"in t&&n(0,o=t.css),"direction"in t&&n(1,s=t.direction)},[o,s]}var Br={IconImportant:class extends Nt{constructor(t){super(),It(this,t,Fr,Or,_,{css:0,margin:1})}},IconImportantDefault:class extends Nt{constructor(t){super(),It(this,t,Pr,Wr,_,{css:0,margin:1})}},IconAssistant:class extends Nt{constructor(t){super(),It(this,t,jr,Lr,_,{css:0,direction:1})}}};const Mr=b({component:class extends Nt{constructor(t){var e;super(),document.getElementById("svelte-i05i0l-style")||((e=W("style")).id="svelte-i05i0l-style",e.textContent="section.svelte-i05i0l{margin-left:1.5em}",N(document.head,e)),It(this,t,Ar,Nr,_,{})}},domElementGetter:()=>document.getElementById("view-app")}),{bootstrap:Rr,mount:Vr,unmount:Ur}=Mr;t({bootstrap:Rr,mount:Vr,unmount:Ur});t("Icon",Br)}}});
|
|
1
|
+
System.register(["@enablerr-ui/layout","@enablerr-ui/form","@enablerr-ui/auth","@enablerr-ui/detail","@enablerr-ui/collab"],function(t){"use strict";var e,n,o,s,r,i,l,c,a,d,u,p,m,f,$,g,h,v;return{setters:[function(t){e=t.getAttractions,n=t.PopOver,o=t.getGrid,s=t.getGridHelp,r=t.Toast},function(t){i=t.currentRoles,l=t.Request,c=t.Storage,a=t.settings,d=t.task_notification,u=t.approval_notification,p=t.communication_notification,m=t.attachment_notification},function(t){f=t.user},function(t){$=t.List,g=t.getDisplayItems},function(t){h=t.SupportModule,v=t.ChatModule}],execute:function(){t("version","0.2.247");function w(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var y,k,x=(y=function(t,e){function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function o(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?n(Object(o),!0).forEach(function(e){s(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if("object"!==r(t))throw new Error("single-spa-svelte requires a configuration object");var e=o(o({},i),t);if(!e.component)throw new Error("single-spa-svelte must be passed opts.component");var n={};return{bootstrap:l.bind(null,e,n),mount:c.bind(null,e,n),unmount:a.bind(null,e,n),update:d.bind(null,e,n)}};var i={component:null,domElementGetter:null,props:{}};function l(t){return Promise.resolve()}function c(t,e,n){var s=Object.keys(i),r=Object.keys(t).reduce(function(e,n){return s.includes(n)||(e[n]=t[n]),e},{});return Promise.resolve().then(function(){var s=function(t,e){return(e=e&&e.customProps?e.customProps:e).domElement?function(){return e.domElement}:e.domElementGetter?function(){return e.domElementGetter(e)}:t.domElementGetter?function(){return t.domElementGetter(e)}:function(t){var e=t.appName||t.name;if(!e)throw Error("single-spa-svelte was not given an application name as a prop, so it can't make a unique dom element container for the svelte application");var n="single-spa-application:".concat(e);return function(){var t=document.getElementById(n);return t||((t=document.createElement("div")).id=n,document.body.appendChild(t)),t}}(e)}(t,n),i=s();e.instance=new t.component(o(o({},r),{},{target:i,props:Object.assign({},n,t.props)}))})}function a(t,e){return Promise.resolve().then(function(){e.instance.$destroy?e.instance.$destroy():e.instance.destroy()})}function d(t,e,n){return Promise.resolve().then(function(){e.instance.$set?e.instance.$set(n):e.instance.set(n)})}},y(k={exports:{}},k.exports),k.exports),b=w(x);function z(){}function E(t){return t()}function S(){return Object.create(null)}function C(t){t.forEach(E)}function T(t){return"function"==typeof t}function _(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function N(t,e,n){t.$$.on_destroy.push(function(t,...e){if(null==t)return z;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}(e,n))}function D(t){return null==t?"":t}function I(t,e){t.appendChild(e)}function A(t,e,n){t.insertBefore(e,n||null)}function O(t){t.parentNode.removeChild(t)}function F(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function W(t){return document.createElement(t)}function P(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function L(t){return document.createTextNode(t)}function j(){return L(" ")}function B(){return L("")}function M(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function R(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function V(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function U(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:V(t,e,n)}function H(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function q(t,e){t.value=null==e?"":e}function J(t,e,n,o){t.style.setProperty(e,n,o?"important":"")}function G(t,e,n){t.classList[n?"add":"remove"](e)}let Z;function K(t){Z=t}function Y(){if(!Z)throw new Error("Function called outside component initialization");return Z}function Q(t){Y().$$.on_mount.push(t)}function X(){const t=Y();return(e,n)=>{const o=t.$$.callbacks[e];if(o){const s=function(t,e){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,e),n}(e,n);o.slice().forEach(e=>{e.call(t,s)})}}}function tt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(t=>t(e))}const et=[],nt=[],ot=[],st=[],rt=Promise.resolve();let it=!1;function lt(){it||(it=!0,rt.then(mt))}function ct(){return lt(),rt}function at(t){ot.push(t)}function dt(t){st.push(t)}let ut=!1;const pt=new Set;function mt(){if(!ut){ut=!0;do{for(let t=0;t<et.length;t+=1){const e=et[t];K(e),ft(e.$$)}for(K(null),et.length=0;nt.length;)nt.pop()();for(let t=0;t<ot.length;t+=1){const e=ot[t];pt.has(e)||(pt.add(e),e())}ot.length=0}while(et.length);for(;st.length;)st.pop()();it=!1,ut=!1,pt.clear()}}function ft(t){if(null!==t.fragment){t.update(),C(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(at)}}const $t=new Set;let gt;function ht(){gt={r:0,c:[],p:gt}}function vt(){gt.r||C(gt.c),gt=gt.p}function wt(t,e){t&&t.i&&($t.delete(t),t.i(e))}function yt(t,e,n,o){if(t&&t.o){if($t.has(t))return;$t.add(t),gt&>.c.push(()=>{$t.delete(t),o&&(n&&t.d(1),o())}),t.o(e)}}function kt(t,e){const n=e.token={};function o(t,o,s,r){if(e.token!==n)return;e.resolved=r;let i=e.ctx;void 0!==s&&(i=i.slice(),i[s]=r);const l=t&&(e.current=t)(i);let c=!1;e.block&&(e.blocks?e.blocks.forEach((t,n)=>{n!==o&&t&&(ht(),yt(t,1,1,()=>{e.blocks[n]===t&&(e.blocks[n]=null)}),vt())}):e.block.d(1),l.c(),wt(l,1),l.m(e.mount(),e.anchor),c=!0),e.block=l,e.blocks&&(e.blocks[o]=l),c&&mt()}if((s=t)&&"object"==typeof s&&"function"==typeof s.then){const n=Y();if(t.then(t=>{K(n),o(e.then,1,e.value,t),K(null)},t=>{if(K(n),o(e.catch,2,e.error,t),K(null),!e.hasCatch)throw t}),e.current!==e.pending)return o(e.pending,0),!0}else{if(e.current!==e.then)return o(e.then,1,e.value,t),!0;e.resolved=t}var s}function xt(t,e,n){const o=e.slice(),{resolved:s}=t;t.current===t.then&&(o[t.value]=s),t.current===t.catch&&(o[t.error]=s),t.block.p(o,n)}const bt="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function zt(t,e){t.d(1),e.delete(t.key)}function Et(t,e){yt(t,1,1,()=>{e.delete(t.key)})}function St(t,e,n,o,s,r,i,l,c,a,d,u){let p=t.length,m=r.length,f=p;const $={};for(;f--;)$[t[f].key]=f;const g=[],h=new Map,v=new Map;for(f=m;f--;){const t=u(s,r,f),l=n(t);let c=i.get(l);c?o&&c.p(t,e):(c=a(l,t),c.c()),h.set(l,g[f]=c),l in $&&v.set(l,Math.abs(f-$[l]))}const w=new Set,y=new Set;function k(t){wt(t,1),t.m(l,d),i.set(t.key,t),d=t.first,m--}for(;p&&m;){const e=g[m-1],n=t[p-1],o=e.key,s=n.key;e===n?(d=e.first,p--,m--):h.has(s)?!i.has(o)||w.has(o)?k(e):y.has(s)?p--:v.get(o)>v.get(s)?(y.add(o),k(e)):(w.add(s),p--):(c(n,i),p--)}for(;p--;){const e=t[p];h.has(e.key)||c(e,i)}for(;m;)k(g[m-1]);return g}function Ct(t,e,n){const o=t.$$.props[e];void 0!==o&&(t.$$.bound[o]=n,n(t.$$.ctx[o]))}function Tt(t){t&&t.c()}function _t(t,e,n,o){const{fragment:s,on_mount:r,on_destroy:i,after_update:l}=t.$$;s&&s.m(e,n),o||at(()=>{const e=r.map(E).filter(T);i?i.push(...e):C(e),t.$$.on_mount=[]}),l.forEach(at)}function Nt(t,e){const n=t.$$;null!==n.fragment&&(C(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Dt(t,e,n,o,s,r,i=[-1]){const l=Z;K(t);const c=t.$$={fragment:null,ctx:null,props:r,update:z,not_equal:s,bound:S(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:S(),dirty:i,skip_bound:!1};let a=!1;if(c.ctx=n?n(t,e.props||{},(e,n,...o)=>{const r=o.length?o[0]:n;return c.ctx&&s(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),a&&function(t,e){-1===t.$$.dirty[0]&&(et.push(t),lt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n}):[],c.update(),a=!0,C(c.before_update),c.fragment=!!o&&o(c.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);c.fragment&&c.fragment.l(t),t.forEach(O)}else c.fragment&&c.fragment.c();e.intro&&wt(t.$$.fragment),_t(t,e.target,e.anchor,e.customElement),mt()}K(l)}class It{$destroy(){Nt(this,1),this.$destroy=z}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function At(t){let e,n,o,s;return{c(){e=P("svg"),n=P("line"),o=P("polyline"),V(n,"x1","19"),V(n,"y1","12"),V(n,"x2","5"),V(n,"y2","12"),V(o,"points","12 19 5 12 12 5"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",s="feather feather-arrow-left "+t[2])},m(t,s){A(t,e,s),I(e,n),I(e,o)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&s!==(s="feather feather-arrow-left "+t[2])&&V(e,"class",s)},i:z,o:z,d(t){t&&O(e)}}}function Ot(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class Ft extends It{constructor(t){super(),Dt(this,t,Ot,At,_,{size:0,strokeWidth:1,class:2})}}function Wt(t){let e,n,o,s,r,i;return{c(){e=P("svg"),n=P("rect"),o=P("line"),s=P("line"),r=P("line"),V(n,"x","3"),V(n,"y","4"),V(n,"width","18"),V(n,"height","18"),V(n,"rx","2"),V(n,"ry","2"),V(o,"x1","16"),V(o,"y1","2"),V(o,"x2","16"),V(o,"y2","6"),V(s,"x1","8"),V(s,"y1","2"),V(s,"x2","8"),V(s,"y2","6"),V(r,"x1","3"),V(r,"y1","10"),V(r,"x2","21"),V(r,"y2","10"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",i="feather feather-calendar "+t[2])},m(t,i){A(t,e,i),I(e,n),I(e,o),I(e,s),I(e,r)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&i!==(i="feather feather-calendar "+t[2])&&V(e,"class",i)},i:z,o:z,d(t){t&&O(e)}}}function Pt(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class Lt extends It{constructor(t){super(),Dt(this,t,Pt,Wt,_,{size:0,strokeWidth:1,class:2})}}function jt(t){let e,n,o,s;return{c(){e=P("svg"),n=P("polyline"),o=P("path"),V(n,"points","9 11 12 14 22 4"),V(o,"d","M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",s="feather feather-check-square "+t[2])},m(t,s){A(t,e,s),I(e,n),I(e,o)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&s!==(s="feather feather-check-square "+t[2])&&V(e,"class",s)},i:z,o:z,d(t){t&&O(e)}}}function Bt(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class Mt extends It{constructor(t){super(),Dt(this,t,Bt,jt,_,{size:0,strokeWidth:1,class:2})}}function Rt(t){let e,n,o;return{c(){e=P("svg"),n=P("polyline"),V(n,"points","6 9 12 15 18 9"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",o="feather feather-chevron-down "+t[2])},m(t,o){A(t,e,o),I(e,n)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-chevron-down "+t[2])&&V(e,"class",o)},i:z,o:z,d(t){t&&O(e)}}}function Vt(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class Ut extends It{constructor(t){super(),Dt(this,t,Vt,Rt,_,{size:0,strokeWidth:1,class:2})}}function Ht(t){let e,n,o,s,r;return{c(){e=P("svg"),n=P("path"),o=P("polyline"),s=P("line"),V(n,"d","M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"),V(o,"points","7 10 12 15 17 10"),V(s,"x1","12"),V(s,"y1","15"),V(s,"x2","12"),V(s,"y2","3"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",r="feather feather-download "+t[2])},m(t,r){A(t,e,r),I(e,n),I(e,o),I(e,s)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&r!==(r="feather feather-download "+t[2])&&V(e,"class",r)},i:z,o:z,d(t){t&&O(e)}}}function qt(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class Jt extends It{constructor(t){super(),Dt(this,t,qt,Ht,_,{size:0,strokeWidth:1,class:2})}}function Gt(t){let e,n,o,s,r,i;return{c(){e=P("svg"),n=P("rect"),o=P("rect"),s=P("rect"),r=P("rect"),V(n,"x","3"),V(n,"y","3"),V(n,"width","7"),V(n,"height","7"),V(o,"x","14"),V(o,"y","3"),V(o,"width","7"),V(o,"height","7"),V(s,"x","14"),V(s,"y","14"),V(s,"width","7"),V(s,"height","7"),V(r,"x","3"),V(r,"y","14"),V(r,"width","7"),V(r,"height","7"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",i="feather feather-grid "+t[2])},m(t,i){A(t,e,i),I(e,n),I(e,o),I(e,s),I(e,r)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&i!==(i="feather feather-grid "+t[2])&&V(e,"class",i)},i:z,o:z,d(t){t&&O(e)}}}function Zt(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class Kt extends It{constructor(t){super(),Dt(this,t,Zt,Gt,_,{size:0,strokeWidth:1,class:2})}}function Yt(t){let e,n,o,s,r,i,l,c;return{c(){e=P("svg"),n=P("line"),o=P("line"),s=P("line"),r=P("line"),i=P("line"),l=P("line"),V(n,"x1","8"),V(n,"y1","6"),V(n,"x2","21"),V(n,"y2","6"),V(o,"x1","8"),V(o,"y1","12"),V(o,"x2","21"),V(o,"y2","12"),V(s,"x1","8"),V(s,"y1","18"),V(s,"x2","21"),V(s,"y2","18"),V(r,"x1","3"),V(r,"y1","6"),V(r,"x2","3.01"),V(r,"y2","6"),V(i,"x1","3"),V(i,"y1","12"),V(i,"x2","3.01"),V(i,"y2","12"),V(l,"x1","3"),V(l,"y1","18"),V(l,"x2","3.01"),V(l,"y2","18"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",c="feather feather-list "+t[2])},m(t,c){A(t,e,c),I(e,n),I(e,o),I(e,s),I(e,r),I(e,i),I(e,l)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&c!==(c="feather feather-list "+t[2])&&V(e,"class",c)},i:z,o:z,d(t){t&&O(e)}}}function Qt(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class Xt extends It{constructor(t){super(),Dt(this,t,Qt,Yt,_,{size:0,strokeWidth:1,class:2})}}function te(t){let e,n,o;return{c(){e=P("svg"),n=P("path"),V(n,"d","M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",o="feather feather-maximize "+t[2])},m(t,o){A(t,e,o),I(e,n)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-maximize "+t[2])&&V(e,"class",o)},i:z,o:z,d(t){t&&O(e)}}}function ee(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class ne extends It{constructor(t){super(),Dt(this,t,ee,te,_,{size:0,strokeWidth:1,class:2})}}function oe(t){let e,n,o;return{c(){e=P("svg"),n=P("path"),V(n,"d","M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",o="feather feather-message-circle "+t[2])},m(t,o){A(t,e,o),I(e,n)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-message-circle "+t[2])&&V(e,"class",o)},i:z,o:z,d(t){t&&O(e)}}}function se(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class re extends It{constructor(t){super(),Dt(this,t,se,oe,_,{size:0,strokeWidth:1,class:2})}}function ie(t){let e,n,o;return{c(){e=P("svg"),n=P("path"),V(n,"d","M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",o="feather feather-minimize "+t[2])},m(t,o){A(t,e,o),I(e,n)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-minimize "+t[2])&&V(e,"class",o)},i:z,o:z,d(t){t&&O(e)}}}function le(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class ce extends It{constructor(t){super(),Dt(this,t,le,ie,_,{size:0,strokeWidth:1,class:2})}}function ae(t){let e,n,o;return{c(){e=P("svg"),n=P("line"),V(n,"x1","5"),V(n,"y1","12"),V(n,"x2","19"),V(n,"y2","12"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",o="feather feather-minus "+t[2])},m(t,o){A(t,e,o),I(e,n)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-minus "+t[2])&&V(e,"class",o)},i:z,o:z,d(t){t&&O(e)}}}function de(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class ue extends It{constructor(t){super(),Dt(this,t,de,ae,_,{size:0,strokeWidth:1,class:2})}}function pe(t){let e,n,o,s;return{c(){e=P("svg"),n=P("line"),o=P("line"),V(n,"x1","12"),V(n,"y1","5"),V(n,"x2","12"),V(n,"y2","19"),V(o,"x1","5"),V(o,"y1","12"),V(o,"x2","19"),V(o,"y2","12"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",s="feather feather-plus "+t[2])},m(t,s){A(t,e,s),I(e,n),I(e,o)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&s!==(s="feather feather-plus "+t[2])&&V(e,"class",s)},i:z,o:z,d(t){t&&O(e)}}}function me(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class fe extends It{constructor(t){super(),Dt(this,t,me,pe,_,{size:0,strokeWidth:1,class:2})}}function $e(t){let e,n,o,s,r;return{c(){e=P("svg"),n=P("polyline"),o=P("path"),s=P("rect"),V(n,"points","6 9 6 2 18 2 18 9"),V(o,"d","M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"),V(s,"x","6"),V(s,"y","14"),V(s,"width","12"),V(s,"height","8"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",r="feather feather-printer "+t[2])},m(t,r){A(t,e,r),I(e,n),I(e,o),I(e,s)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&r!==(r="feather feather-printer "+t[2])&&V(e,"class",r)},i:z,o:z,d(t){t&&O(e)}}}function ge(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class he extends It{constructor(t){super(),Dt(this,t,ge,$e,_,{size:0,strokeWidth:1,class:2})}}function ve(t){let e,n,o;return{c(){e=P("svg"),n=P("polygon"),V(n,"points","12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",o="feather feather-star "+t[2])},m(t,o){A(t,e,o),I(e,n)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-star "+t[2])&&V(e,"class",o)},i:z,o:z,d(t){t&&O(e)}}}function we(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class ye extends It{constructor(t){super(),Dt(this,t,we,ve,_,{size:0,strokeWidth:1,class:2})}}function ke(t){let e,n,o;return{c(){e=P("svg"),n=P("path"),V(n,"d","M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",o="feather feather-triangle "+t[2])},m(t,o){A(t,e,o),I(e,n)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-triangle "+t[2])&&V(e,"class",o)},i:z,o:z,d(t){t&&O(e)}}}function xe(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class be extends It{constructor(t){super(),Dt(this,t,xe,ke,_,{size:0,strokeWidth:1,class:2})}}function ze(t){let e,n,o,s;return{c(){e=P("svg"),n=P("line"),o=P("line"),V(n,"x1","18"),V(n,"y1","6"),V(n,"x2","6"),V(n,"y2","18"),V(o,"x1","6"),V(o,"y1","6"),V(o,"x2","18"),V(o,"y2","18"),V(e,"xmlns","http://www.w3.org/2000/svg"),V(e,"width",t[0]),V(e,"height",t[0]),V(e,"fill","none"),V(e,"viewBox","0 0 24 24"),V(e,"stroke","currentColor"),V(e,"stroke-width",t[1]),V(e,"stroke-linecap","round"),V(e,"stroke-linejoin","round"),V(e,"class",s="feather feather-x "+t[2])},m(t,s){A(t,e,s),I(e,n),I(e,o)},p(t,[n]){1&n&&V(e,"width",t[0]),1&n&&V(e,"height",t[0]),2&n&&V(e,"stroke-width",t[1]),4&n&&s!==(s="feather feather-x "+t[2])&&V(e,"class",s)},i:z,o:z,d(t){t&&O(e)}}}function Ee(t,e,n){let{size:o="100%"}=e,{strokeWidth:s=2}=e,{class:r=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,s=t.strokeWidth),"class"in t&&n(2,r=t.class)},[o,s,r]}class Se extends It{constructor(t){super(),Dt(this,t,Ee,ze,_,{size:0,strokeWidth:1,class:2})}}const Ce=t=>t?"(ja)":"(nein)",Te=t=>{const e=Number(t);return isNaN(e)?t:t.toString().includes(".")?(+(Math.round(t+"e+2")+"e-2")).toFixed(2):t},_e=(t,e)=>{const n={...e};return(t.display?.reduce((e,o)=>{let[s,r]=o.split(".");if(r&&t.list?.find(({name:t})=>t===s)&&void 0!==n[s]){const t=`${s}_${r}`;n[t]=n[s][r],s=t}return e.find(t=>t===s)||e.push(s),e},[]).map(t=>{return"boolean"==typeof n[t]?Ce(n[t]):"string"!=typeof(e=n["_"+t]||n[t])||e.length<20||!(o=e.split(" · "))?Te(e):o.map(t=>2===t.split("T").length&&3===t.split("T")[0].split("-").length?new Date(t).toLocaleDateString():t).filter(t=>!!t).join(" · ");var e,o})||t.items.map(t=>"object"===t.type?e["_"+t.name]:"list"===t.type?"":"boolean"===t.type?Ce(e[t.name]):e[t.name])).map(t=>t?.toString().split(" · ").filter(t=>!!t).join(" · ")).filter(t=>!!t).join(" • ")};function Ne(t){let e,n,o,s;return{c(){e=P("svg"),n=P("circle"),o=P("circle"),s=P("path"),V(n,"cx","165"),V(n,"cy","30"),V(n,"r","24"),V(n,"stroke","currentColor"),V(n,"stroke-width","12"),V(o,"cx","30"),V(o,"cy","30"),V(o,"r","24"),V(o,"stroke","currentColor"),V(o,"stroke-width","12"),V(s,"d","M129.828 32.8284C131.391 31.2663 131.391 28.7337 129.828 27.1716L104.373 1.71573C102.81 0.153633 100.278 0.153633 98.7157 1.71573C97.1536 3.27783 97.1536 5.81049 98.7157 7.37258L121.343 30L98.7157 52.6274C97.1536 54.1895 97.1536 56.7222 98.7157 58.2843C100.278 59.8464 102.81 59.8464 104.373 58.2843L129.828 32.8284ZM60 34L127 34V26L60 26V34Z"),V(s,"fill","currentColor"),V(e,"width","20"),V(e,"height","20"),V(e,"viewBox","0 0 195 60"),V(e,"fill","none"),V(e,"xmlns","http://www.w3.org/2000/svg")},m(t,r){A(t,e,r),I(e,n),I(e,o),I(e,s)},p:z,i:z,o:z,d(t){t&&O(e)}}}class De extends It{constructor(t){super(),Dt(this,t,null,Ne,_,{})}}function Ie(t){let e,n,o;var s=t[3];function r(t){return{props:{size:t[5]}}}return s&&(e=new s(r(t))),{c(){e&&Tt(e.$$.fragment),n=B()},m(t,s){e&&_t(e,t,s),A(t,n,s),o=!0},p(t,o){const i={};if(32&o&&(i.size=t[5]),s!==(s=t[3])){if(e){ht();const t=e;yt(t.$$.fragment,1,0,()=>{Nt(t,1)}),vt()}s?(e=new s(r(t)),Tt(e.$$.fragment),wt(e.$$.fragment,1),_t(e,n.parentNode,n)):e=null}else s&&e.$set(i)},i(t){o||(e&&wt(e.$$.fragment,t),o=!0)},o(t){e&&yt(e.$$.fragment,t),o=!1},d(t){t&&O(n),e&&Nt(e,t)}}}function Ae(t){let e,n;return e=new t[7]({props:{class:"btnChip",small:!0,noPadding:!0,$$slots:{default:[Oe]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};528&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function Oe(t){let e;return{c(){e=L(t[4])},m(t,n){A(t,e,n)},p(t,n){16&n&&H(e,t[4])},d(t){t&&O(e)}}}function Fe(t){let e,n,o,s,r,i=t[3]&&Ie(t),l=t[4]&&Ae(t);return{c(){e=W("button"),i&&i.c(),n=j(),l&&l.c(),V(e,"title",t[0]),V(e,"class","action-btns svelte-1hwgny1"),G(e,"btn-workflow",t[1]),G(e,"btn-highlight",t[2]),G(e,"is-starred",t[6])},m(c,a){A(c,e,a),i&&i.m(e,null),I(e,n),l&&l.m(e,null),o=!0,s||(r=M(e,"click",R(t[8])),s=!0)},p(t,[s]){t[3]?i?(i.p(t,s),8&s&&wt(i,1)):(i=Ie(t),i.c(),wt(i,1),i.m(e,n)):i&&(ht(),yt(i,1,1,()=>{i=null}),vt()),t[4]?l?(l.p(t,s),16&s&&wt(l,1)):(l=Ae(t),l.c(),wt(l,1),l.m(e,null)):l&&(ht(),yt(l,1,1,()=>{l=null}),vt()),(!o||1&s)&&V(e,"title",t[0]),2&s&&G(e,"btn-workflow",t[1]),4&s&&G(e,"btn-highlight",t[2]),64&s&&G(e,"is-starred",t[6])},i(t){o||(wt(i),wt(l),o=!0)},o(t){yt(i),yt(l),o=!1},d(t){t&&O(e),i&&i.d(),l&&l.d(),s=!1,r()}}}function We(t,n,o){const{Chip:s}=e;let{title:r=""}=n,{btnWorkflow:i=!1}=n,{btnHighlight:l=!1}=n,{iconComponent:c}=n,{chipContent:a=!1}=n,{size:d="20"}=n,{isStarred:u}=n;return t.$$set=t=>{"title"in t&&o(0,r=t.title),"btnWorkflow"in t&&o(1,i=t.btnWorkflow),"btnHighlight"in t&&o(2,l=t.btnHighlight),"iconComponent"in t&&o(3,c=t.iconComponent),"chipContent"in t&&o(4,a=t.chipContent),"size"in t&&o(5,d=t.size),"isStarred"in t&&o(6,u=t.isStarred)},[r,i,l,c,a,d,u,s,function(e){tt(t,e)}]}class Pe extends It{constructor(t){var e;super(),document.getElementById("svelte-1hwgny1-style")||((e=W("style")).id="svelte-1hwgny1-style",e.textContent=".action-btns.svelte-1hwgny1{align-items:center;cursor:pointer;display:flex;font-weight:500;outline:none;background:none;border-radius:1.5625em;font-size:1rem;padding:0.5em 0.8em;border:1px solid #326173;color:#326173;position:relative}.action-btns.svelte-1hwgny1 .btnChip{position:absolute;padding:0.2em !important;min-width:1.2em !important;background-color:white !important;font-style:italic;border:1px solid black;color:#111212 !important;font-weight:800 !important;font-size:0.8em !important;transform:translate(18px, -10px)}.action-btns.svelte-1hwgny1:hover,.action-btns.svelte-1hwgny1:focus{background:rgba(50, 97, 115, 0.05)}button.is-starred svg.feather-star{fill:#F2CF63}.btn-workflow.svelte-1hwgny1{background-color:#dfaff9}.btn-workflow.svelte-1hwgny1:hover{background-color:hsl(279, 100%, 83%)}.btn-highlight.svelte-1hwgny1{background-color:#afeeee}.btn-highlight.svelte-1hwgny1:hover{background-color:hsl(180, 100%, 80%)}",I(document.head,e)),Dt(this,t,We,Fe,_,{title:0,btnWorkflow:1,btnHighlight:2,iconComponent:3,chipContent:4,size:5,isStarred:6})}}function Le(t){t[52]=t[55].items,t[53]=t[55].list,t[54]=t[55].schema}function je(t,e,n){const o=t.slice();return o[57]=e[n],o}function Be(t,e,n){const o=t.slice();return o[60]=e[n],o}function Me(t,e,n){const o=t.slice();return o[60]=e[n],o}function Re(t){let e,n,o,s,r,i,l,c,a,d,u,p,m,f,$,g,h,v,w,y,k,x,b,z,E=t[2].event.domain+"";const S=[Ue,Ve],_=[];function N(t,e){return t[2].data?1:0}o=N(t),s=_[o]=S[o](t);const F=[Ze,Ge],P=[];c=function(t){return t[12]?1:0}(t),a=P[c]=F[c](t);let B=!t[12]&&function(t){let e,n,o,s,r,i,l,c,a=(On(t[2].status)||t[25](t[2].event.stream.task,t[2].event.stream.step))+"";return{c(){e=W("td"),n=W("div"),o=L(a),s=j(),r=W("div"),V(n,"class",i=D((t[2].data,"display-full"))+" svelte-p25c84"),V(e,"class","svelte-p25c84")},m(i,a){A(i,e,a),I(e,n),I(n,o),I(n,s),I(n,r),l||(c=M(e,"click",R(t[31])),l=!0)},p(t,e){4&e[0]&&a!==(a=(On(t[2].status)||t[25](t[2].event.stream.task,t[2].event.stream.step))+"")&&H(o,a),4&e[0]&&i!==(i=D((t[2].data,"display-full"))+" svelte-p25c84")&&V(n,"class",i)},d(t){t&&O(e),l=!1,c()}}}(t),U=null===t[2].data&&1===t[4]&&Ye(t);const q=[Xe,Qe],J=[];function G(t,e){return null!==t[2].data||t[2].event.solitaire||t[2].event.matrix||t[2].event.report?t[2].data?1:-1:0}return~(v=G(t))&&(w=J[v]=q[v](t)),{c(){e=W("tr"),n=W("td"),s.c(),i=j(),l=W("td"),a.c(),d=j(),u=W("td"),p=L(E),m=j(),B&&B.c(),f=j(),$=W("td"),g=W("div"),U&&U.c(),h=j(),w&&w.c(),V(n,"class",r="domain domain_"+t[3].indexOf(t[2].event.domain)+" "+(t[2].data?"domain_expanded":"")+" svelte-p25c84"),V(l,"class","svelte-p25c84"),V(u,"class","svelte-p25c84"),V(g,"class","action-column--container display-full svelte-p25c84"),V($,"class","action-column svelte-p25c84"),V(e,"id",y=t[2].data?void 0:t[2].event.name),V(e,"class",k="task_cursor"+(null===t[2].data?" empty lined":" lined")+" svelte-p25c84")},m(s,r){A(s,e,r),I(e,n),_[o].m(n,null),I(e,i),I(e,l),P[c].m(l,null),I(e,d),I(e,u),I(u,p),I(e,m),B&&B.m(e,null),I(e,f),I(e,$),I($,g),U&&U.m(g,null),I(g,h),~v&&J[v].m(g,null),x=!0,b||(z=[M(n,"click",function(){T(t[24](t[2]))&&t[24](t[2]).apply(this,arguments)}),M(l,"click",R(t[29])),M(u,"click",R(t[30]))],b=!0)},p(i,l){let c=o;o=N(t=i),o===c?_[o].p(t,l):(ht(),yt(_[c],1,1,()=>{_[c]=null}),vt(),s=_[o],s?s.p(t,l):(s=_[o]=S[o](t),s.c()),wt(s,1),s.m(n,null)),(!x||12&l[0]&&r!==(r="domain domain_"+t[3].indexOf(t[2].event.domain)+" "+(t[2].data?"domain_expanded":"")+" svelte-p25c84"))&&V(n,"class",r),a.p(t,l),(!x||4&l[0])&&E!==(E=t[2].event.domain+"")&&H(p,E),t[12]||B.p(t,l),null===t[2].data&&1===t[4]?U?(U.p(t,l),20&l[0]&&wt(U,1)):(U=Ye(t),U.c(),wt(U,1),U.m(g,h)):U&&(ht(),yt(U,1,1,()=>{U=null}),vt());let d=v;v=G(t),v===d?~v&&J[v].p(t,l):(w&&(ht(),yt(J[d],1,1,()=>{J[d]=null}),vt()),~v?(w=J[v],w?w.p(t,l):(w=J[v]=q[v](t),w.c()),wt(w,1),w.m(g,null)):w=null),(!x||4&l[0]&&y!==(y=t[2].data?void 0:t[2].event.name))&&V(e,"id",y),(!x||4&l[0]&&k!==(k="task_cursor"+(null===t[2].data?" empty lined":" lined")+" svelte-p25c84"))&&V(e,"class",k)},i(t){x||(wt(s),wt(a),wt(U),wt(w),x=!0)},o(t){yt(s),yt(a),yt(U),yt(w),x=!1},d(t){t&&O(e),_[o].d(),P[c].d(),B&&B.d(),U&&U.d(),~v&&J[v].d(),b=!1,C(z)}}}function Ve(t){let e,n;return e=new ue({}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p:z,i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function Ue(t){let e,n,o=t[2].count&&He(t);return{c(){o&&o.c(),e=B()},m(t,s){o&&o.m(t,s),A(t,e,s),n=!0},p(t,n){t[2].count?o?(o.p(t,n),4&n[0]&&wt(o,1)):(o=He(t),o.c(),wt(o,1),o.m(e.parentNode,e)):o&&(ht(),yt(o,1,1,()=>{o=null}),vt())},i(t){n||(wt(o),n=!0)},o(t){yt(o),n=!1},d(t){o&&o.d(t),t&&O(e)}}}function He(t){let e,n,o,s;const r=[Je,qe],i=[];function l(t,e){return t[1]===t[2].event.name?0:1}return e=l(t),n=i[e]=r[e](t),{c(){n.c(),o=B()},m(t,n){i[e].m(t,n),A(t,o,n),s=!0},p(t,s){let c=e;e=l(t),e!==c&&(ht(),yt(i[c],1,1,()=>{i[c]=null}),vt(),n=i[e],n||(n=i[e]=r[e](t),n.c()),wt(n,1),n.m(o.parentNode,o))},i(t){s||(wt(n),s=!0)},o(t){yt(n),s=!1},d(t){i[e].d(t),t&&O(o)}}}function qe(t){let e,n;return e=new fe({}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function Je(t){let e,n;return e=new ue({}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function Ge(t){let e,n,o=Fn(t[2])+"";return{c(){e=W("h4"),n=L(o)},m(t,o){A(t,e,o),I(e,n)},p(t,e){4&e[0]&&o!==(o=Fn(t[2])+"")&&H(n,o)},i:z,o:z,d(t){t&&O(e)}}}function Ze(t){let e,o;return e=new n({props:{text:t[2].event.shortDescription||t[2].event.description,right:!0,$$slots:{default:[Ke]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,n){const o={};4&n[0]&&(o.text=t[2].event.shortDescription||t[2].event.description),4&n[0]|32&n[2]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Nt(e,t)}}}function Ke(t){let e,n,o=Fn(t[2])+"";return{c(){e=W("h4"),n=L(o)},m(t,o){A(t,e,o),I(e,n)},p(t,e){4&e[0]&&o!==(o=Fn(t[2])+"")&&H(n,o)},d(t){t&&O(e)}}}function Ye(t){let e,n;return e=new Pe({props:{iconComponent:ye,isStarred:t[0].find(t[32])}}),e.$on("click",t[33]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};5&n[0]&&(o.isStarred=t[0].find(t[32])),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function Qe(t){let e,o,s,r,i,l,c,a,d,u,p,m,f,$=t[2].directReport?.report&&t[27](t[2].directReport.report.authorization),g=t[2].event.approval&&tn(t);i=new n({props:{text:t[14].title,$$slots:{default:[nn]},$$scope:{ctx:t}}}),a=new n({props:{text:"Unterhaltung",$$slots:{default:[on]},$$scope:{ctx:t}}}),p=new n({props:{text:"Dokumente",$$slots:{default:[sn]},$$scope:{ctx:t}}});let h=$&&rn(t);return{c(){e=W("table"),o=W("tr"),g&&g.c(),s=j(),r=W("td"),Tt(i.$$.fragment),l=j(),c=W("td"),Tt(a.$$.fragment),d=j(),u=W("td"),Tt(p.$$.fragment),m=j(),h&&h.c(),V(r,"class","svelte-p25c84"),V(c,"class","svelte-p25c84"),V(u,"class","svelte-p25c84"),V(o,"class","svelte-p25c84"),V(e,"class","buttonTable svelte-p25c84")},m(t,n){A(t,e,n),I(e,o),g&&g.m(o,null),I(o,s),I(o,r),_t(i,r,null),I(o,l),I(o,c),_t(a,c,null),I(o,d),I(o,u),_t(p,u,null),I(o,m),h&&h.m(o,null),f=!0},p(t,e){t[2].event.approval?g?(g.p(t,e),4&e[0]&&wt(g,1)):(g=tn(t),g.c(),wt(g,1),g.m(o,s)):g&&(ht(),yt(g,1,1,()=>{g=null}),vt());const n={};4&e[0]|32&e[2]&&(n.$$scope={dirty:e,ctx:t}),i.$set(n);const r={};4&e[0]|32&e[2]&&(r.$$scope={dirty:e,ctx:t}),a.$set(r);const l={};4&e[0]|32&e[2]&&(l.$$scope={dirty:e,ctx:t}),p.$set(l),4&e[0]&&($=t[2].directReport?.report&&t[27](t[2].directReport.report.authorization)),$?h?(h.p(t,e),4&e[0]&&wt(h,1)):(h=rn(t),h.c(),wt(h,1),h.m(o,null)):h&&(ht(),yt(h,1,1,()=>{h=null}),vt())},i(t){f||(wt(g),wt(i.$$.fragment,t),wt(a.$$.fragment,t),wt(p.$$.fragment,t),wt(h),f=!0)},o(t){yt(g),yt(i.$$.fragment,t),yt(a.$$.fragment,t),yt(p.$$.fragment,t),yt(h),f=!1},d(t){t&&O(e),g&&g.d(),Nt(i),Nt(a),Nt(p),h&&h.d()}}}function Xe(t){let e,o,s,r,i,l,c=(t[2].event.directEditNew??t[2].event.directEdit)&&cn(t),a=t[2].event.allowFutureUpdate&&dn(t);s=new n({props:{text:"Suchen",$$slots:{default:[gn]},$$scope:{ctx:t}}});let d=t[2].report&&hn(t);return{c(){c&&c.c(),e=j(),a&&a.c(),o=j(),Tt(s.$$.fragment),r=j(),d&&d.c(),i=B()},m(t,n){c&&c.m(t,n),A(t,e,n),a&&a.m(t,n),A(t,o,n),_t(s,t,n),A(t,r,n),d&&d.m(t,n),A(t,i,n),l=!0},p(t,n){t[2].event.directEditNew??t[2].event.directEdit?c?(c.p(t,n),4&n[0]&&wt(c,1)):(c=cn(t),c.c(),wt(c,1),c.m(e.parentNode,e)):c&&(ht(),yt(c,1,1,()=>{c=null}),vt()),t[2].event.allowFutureUpdate?a?(a.p(t,n),4&n[0]&&wt(a,1)):(a=dn(t),a.c(),wt(a,1),a.m(o.parentNode,o)):a&&(ht(),yt(a,1,1,()=>{a=null}),vt());const r={};196&n[0]|32&n[2]&&(r.$$scope={dirty:n,ctx:t}),s.$set(r),t[2].report?d?(d.p(t,n),4&n[0]&&wt(d,1)):(d=hn(t),d.c(),wt(d,1),d.m(i.parentNode,i)):d&&(ht(),yt(d,1,1,()=>{d=null}),vt())},i(t){l||(wt(c),wt(a),wt(s.$$.fragment,t),wt(d),l=!0)},o(t){yt(c),yt(a),yt(s.$$.fragment,t),yt(d),l=!1},d(t){c&&c.d(t),t&&O(e),a&&a.d(t),t&&O(o),Nt(s,t),t&&O(r),d&&d.d(t),t&&O(i)}}}function tn(t){let e,o,s;return o=new n({props:{text:t[13],$$slots:{default:[en]},$$scope:{ctx:t}}}),{c(){e=W("td"),Tt(o.$$.fragment),V(e,"class","svelte-p25c84")},m(t,n){A(t,e,n),_t(o,e,null),s=!0},p(t,e){const n={};4&e[0]|32&e[2]&&(n.$$scope={dirty:e,ctx:t}),o.$set(n)},i(t){s||(wt(o.$$.fragment,t),s=!0)},o(t){yt(o.$$.fragment,t),s=!1},d(t){t&&O(e),Nt(o)}}}function en(t){let e,n;return e=new Pe({props:{btnHighlight:!t[2].approval,iconComponent:Mt}}),e.$on("click",t[38]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};4&n[0]&&(o.btnHighlight=!t[2].approval),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function nn(t){let e,n;return e=new Pe({props:{btnWorkflow:1===t[14].numberOfFollowers,btnHighlight:t[14].numberOfFollowers>1,iconComponent:De,chipContent:t[14].numberOfFollowers}}),e.$on("click",t[39]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p:z,i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function on(t){let e,n;return e=new Pe({props:{btnHighlight:t[2].chat,iconComponent:re,chipContent:t[2].chat}}),e.$on("click",t[40]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};4&n[0]&&(o.btnHighlight=t[2].chat),4&n[0]&&(o.chipContent=t[2].chat),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function sn(t){let e,n;return e=new Pe({props:{btnHighlight:t[2].report,iconComponent:Jt,chipContent:t[2].report}}),e.$on("click",t[41]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};4&n[0]&&(o.btnHighlight=t[2].report),4&n[0]&&(o.chipContent=t[2].report),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function rn(t){let e,o,s;return o=new n({props:{text:t[2].directReport.report.identity.designation,$$slots:{default:[ln]},$$scope:{ctx:t}}}),{c(){e=W("td"),Tt(o.$$.fragment),V(e,"class","svelte-p25c84")},m(t,n){A(t,e,n),_t(o,e,null),s=!0},p(t,e){const n={};4&e[0]&&(n.text=t[2].directReport.report.identity.designation),4&e[0]|32&e[2]&&(n.$$scope={dirty:e,ctx:t}),o.$set(n)},i(t){s||(wt(o.$$.fragment,t),s=!0)},o(t){yt(o.$$.fragment,t),s=!1},d(t){t&&O(e),Nt(o)}}}function ln(t){let e,n;return e=new Pe({props:{iconComponent:he}}),e.$on("click",t[42]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p:z,i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function cn(t){let e,o;return e=new n({props:{text:"Erfassen",$$slots:{default:[an]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,n){const o={};4&n[0]|32&n[2]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Nt(e,t)}}}function an(t){let e,n;return e=new Pe({props:{iconComponent:fe}}),e.$on("click",t[34]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p:z,i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function dn(t){let e,n,o,s={ctx:t,current:null,token:null,hasCatch:!1,pending:$n,then:pn,catch:un,value:66,blocks:[,,,]};return kt(n=t[16](t[2]),s),{c(){e=B(),s.block.c()},m(t,n){A(t,e,n),s.block.m(t,s.anchor=n),s.mount=()=>e.parentNode,s.anchor=e,o=!0},p(e,o){t=e,s.ctx=t,4&o[0]&&n!==(n=t[16](t[2]))&&kt(n,s)||xt(s,t,o)},i(t){o||(wt(s.block),o=!0)},o(t){for(let t=0;t<3;t+=1){yt(s.blocks[t])}o=!1},d(t){t&&O(e),s.block.d(t),s.token=null,s=null}}}function un(t){return{c:z,m:z,p:z,i:z,o:z,d:z}}function pn(t){let e,n,o=t[66]&&mn(t);return{c(){o&&o.c(),e=B()},m(t,s){o&&o.m(t,s),A(t,e,s),n=!0},p(t,n){t[66]?o?(o.p(t,n),4&n[0]&&wt(o,1)):(o=mn(t),o.c(),wt(o,1),o.m(e.parentNode,e)):o&&(ht(),yt(o,1,1,()=>{o=null}),vt())},i(t){n||(wt(o),n=!0)},o(t){yt(o),n=!1},d(t){o&&o.d(t),t&&O(e)}}}function mn(t){let e,o;return e=new n({props:{text:"Geplante Änderungen",$$slots:{default:[fn]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,n){const o={};4&n[0]|32&n[2]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Nt(e,t)}}}function fn(t){let e,n;return e=new Pe({props:{iconComponent:Lt}}),e.$on("click",t[35]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p:z,i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function $n(t){return{c:z,m:z,p:z,i:z,o:z,d:z}}function gn(t){let e,n;return e=new Pe({props:{iconComponent:Xt}}),e.$on("click",t[36]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p:z,i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function hn(t){let e,n,o,s={ctx:t,current:null,token:null,hasCatch:!1,pending:xn,then:wn,catch:vn,value:65,blocks:[,,,]};return kt(n=t[26](t[2].report),s),{c(){e=B(),s.block.c()},m(t,n){A(t,e,n),s.block.m(t,s.anchor=n),s.mount=()=>e.parentNode,s.anchor=e,o=!0},p(e,o){t=e,s.ctx=t,4&o[0]&&n!==(n=t[26](t[2].report))&&kt(n,s)||xt(s,t,o)},i(t){o||(wt(s.block),o=!0)},o(t){for(let t=0;t<3;t+=1){yt(s.blocks[t])}o=!1},d(t){t&&O(e),s.block.d(t),s.token=null,s=null}}}function vn(t){return{c:z,m:z,p:z,i:z,o:z,d:z}}function wn(t){let e,n,o=t[65]&&yn(t);return{c(){o&&o.c(),e=B()},m(t,s){o&&o.m(t,s),A(t,e,s),n=!0},p(t,n){t[65]?o?(o.p(t,n),4&n[0]&&wt(o,1)):(o=yn(t),o.c(),wt(o,1),o.m(e.parentNode,e)):o&&(ht(),yt(o,1,1,()=>{o=null}),vt())},i(t){n||(wt(o),n=!0)},o(t){yt(o),n=!1},d(t){o&&o.d(t),t&&O(e)}}}function yn(t){let e,o;return e=new n({props:{text:t[2].reportName,$$slots:{default:[kn]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,n){const o={};4&n[0]&&(o.text=t[2].reportName),4&n[0]|32&n[2]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Nt(e,t)}}}function kn(t){let e,n;return e=new Pe({props:{iconComponent:he}}),e.$on("click",t[37]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p:z,i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function xn(t){return{c:z,m:z,p:z,i:z,o:z,d:z}}function bn(t){let e,n,o={ctx:t,current:null,token:null,hasCatch:!1,pending:Dn,then:En,catch:zn,value:55,blocks:[,,,]};return kt(t[18](),o),{c(){e=B(),o.block.c()},m(t,s){A(t,e,s),o.block.m(t,o.anchor=s),o.mount=()=>e.parentNode,o.anchor=e,n=!0},p(e,n){xt(o,t=e,n)},i(t){n||(wt(o.block),n=!0)},o(t){for(let t=0;t<3;t+=1){yt(o.blocks[t])}n=!1},d(t){t&&O(e),o.block.d(t),o.token=null,o=null}}}function zn(t){return{c:z,m:z,p:z,i:z,o:z,d:z}}function En(t){let e,n,o;function s(e){t[43](e)}Le(t);let r={$$slots:{default:[Nn,({closeCallback:t})=>({56:t}),({closeCallback:t})=>[0,t?33554432:0]]},$$scope:{ctx:t}};return void 0!==t[5]&&(r.open=t[5]),e=new t[8]({props:r}),nt.push(()=>Ct(e,"open",s)),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,o){Le(t);const s={};33554432&o[1]|32&o[2]&&(s.$$scope={dirty:o,ctx:t}),!n&&32&o[0]&&(n=!0,s.open=t[5],dt(()=>n=!1)),e.$set(s)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Nt(e,t)}}}function Sn(t){let e,n=t[60].active&&function(t){let e,n,o=t[60]?.designation+"";return{c(){e=W("th"),n=L(o),V(e,"class","svelte-p25c84")},m(t,o){A(t,e,o),I(e,n)},p:z,d(t){t&&O(e)}}}(t);return{c(){n&&n.c(),e=B()},m(t,o){n&&n.m(t,o),A(t,e,o)},p(t,e){t[60].active&&n.p(t,e)},d(t){n&&n.d(t),t&&O(e)}}}function Cn(t){let e,n=t[60].active&&function(t){let e,n,o=t[19](t[57],t[60])+"";return{c(){e=W("td"),n=L(o),V(e,"class",D(t[60].type)+" svelte-p25c84")},m(t,o){A(t,e,o),I(e,n)},p:z,d(t){t&&O(e)}}}(t);return{c(){n&&n.c(),e=B()},m(t,o){n&&n.m(t,o),A(t,e,o)},p(t,e){t[60].active&&n.p(t,e)},d(t){n&&n.d(t),t&&O(e)}}}function Tn(t){let e,n,o,s,r=t[52],i=[];for(let e=0;e<r.length;e+=1)i[e]=Cn(Be(t,r,e));return{c(){e=W("tr");for(let t=0;t<i.length;t+=1)i[t].c();n=j(),V(e,"class","svelte-p25c84")},m(r,l){A(r,e,l);for(let t=0;t<i.length;t+=1)i[t].m(e,null);I(e,n),o||(s=M(e,"click",t[15](t[54],t[57])),o=!0)},p(o,s){if(t=o,786432&s[0]){let o;for(r=t[52],o=0;o<r.length;o+=1){const l=Be(t,r,o);i[o]?i[o].p(l,s):(i[o]=Cn(l),i[o].c(),i[o].m(e,n))}for(;o<i.length;o+=1)i[o].d(1);i.length=r.length}},d(t){t&&O(e),F(i,t),o=!1,s()}}}function _n(t){let e,n,o,s,r=t[52]?.length&&function(t){let e,n,o=t[52],s=[];for(let e=0;e<o.length;e+=1)s[e]=Sn(Me(t,o,e));return{c(){e=W("thead"),n=W("tr");for(let t=0;t<s.length;t+=1)s[t].c();V(n,"class","svelte-p25c84"),V(e,"class","svelte-p25c84")},m(t,o){A(t,e,o),I(e,n);for(let t=0;t<s.length;t+=1)s[t].m(n,null)},p(t,e){if(262144&e[0]){let r;for(o=t[52],r=0;r<o.length;r+=1){const i=Me(t,o,r);s[r]?s[r].p(i,e):(s[r]=Sn(i),s[r].c(),s[r].m(n,null))}for(;r<s.length;r+=1)s[r].d(1);s.length=o.length}},d(t){t&&O(e),F(s,t)}}}(t),i=t[53]?.length&&function(t){let e,n=t[53],o=[];for(let e=0;e<n.length;e+=1)o[e]=Tn(je(t,n,e));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=B()},m(t,n){for(let e=0;e<o.length;e+=1)o[e].m(t,n);A(t,e,n)},p(t,s){if(819200&s[0]){let r;for(n=t[53],r=0;r<n.length;r+=1){const i=je(t,n,r);o[r]?o[r].p(i,s):(o[r]=Tn(i),o[r].c(),o[r].m(e.parentNode,e))}for(;r<o.length;r+=1)o[r].d(1);o.length=n.length}},d(t){F(o,t),t&&O(e)}}}(t);return{c(){e=W("div"),n=W("table"),r&&r.c(),o=j(),s=W("tbody"),i&&i.c(),V(n,"striped",""),V(n,"class","svelte-p25c84"),V(e,"class","eList svelte-p25c84")},m(t,l){A(t,e,l),I(e,n),r&&r.m(n,null),I(n,o),I(n,s),i&&i.m(s,null)},p(t,e){t[52]?.length&&r.p(t,e),t[53]?.length&&i.p(t,e)},d(t){t&&O(e),r&&r.d(),i&&i.d()}}}function Nn(t){let e,n;return e=new t[9]({props:{class:"help2",title:"Geplante Änderungen",closeCallback:t[56],$$slots:{default:[_n]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};33554432&n[1]&&(o.closeCallback=t[56]),32&n[2]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function Dn(t){return{c:z,m:z,p:z,i:z,o:z,d:z}}function In(t){let e,n,o,s=(!t[2].data||t[1]===t[2].event.name)&&Re(t),r=t[5]&&bn(t);return{c(){s&&s.c(),e=j(),r&&r.c(),n=B()},m(t,i){s&&s.m(t,i),A(t,e,i),r&&r.m(t,i),A(t,n,i),o=!0},p(t,o){t[2].data&&t[1]!==t[2].event.name?s&&(ht(),yt(s,1,1,()=>{s=null}),vt()):s?(s.p(t,o),6&o[0]&&wt(s,1)):(s=Re(t),s.c(),wt(s,1),s.m(e.parentNode,e)),t[5]?r?(r.p(t,o),32&o[0]&&wt(r,1)):(r=bn(t),r.c(),wt(r,1),r.m(n.parentNode,n)):r&&(ht(),yt(r,1,1,()=>{r=null}),vt())},i(t){o||(wt(s),wt(r),o=!0)},o(t){yt(s),yt(r),o=!1},d(t){s&&s.d(t),t&&O(e),r&&r.d(t),t&&O(n)}}}const An={New:"Eröffnet",WaitingForApproval:"Zu visieren",Ready:"Bereit für nächsten Schritt",Closing:"Wartet auf Abschluss",Closed:"Abgeschlossen"},On=t=>An[t]||"",Fn=t=>t.data?.item?_e(t.schema,t.data.item):t.event?.title+(t.count?" ("+t.count+")":"");function Wn(t,n,o){let s,r;N(t,i,t=>o(7,r=t));const{Modal:a,Dialog:d}=e,{loggedIn:u}=f;N(t,u,t=>o(6,s=t));const p=X();let m,{task:$}=n,{domains:g}=n,{isStarred:h}=n,{starredTasks:v}=n,w=!1,{openSelection:y=""}=n;const k=window.location.pathname.startsWith("/reporting")||window.location.pathname.startsWith("/screen"),x=$.event?.approval?.length&&$.event.approval.at(0).description||"Visum",b={title:1===$.workflow?.numberOfFollowers?$.workflow.designation:"Nachfolge Tasks",numberOfFollowers:$.workflow?$.workflow.numberOfFollowers:0},z=t=>{m=t,o(5,w=!0)},E=(t,e)=>e.find(e=>e.docId===t);function S(t){t.event.solitaire?l.getSolitaire(t.event.class).then(e=>{const n=e.length&&e[0]._id;if(!n)return C(t,"task");l.getTaskByDocId(n).then(t=>C(t.task,"task"))}):t.data||(t.event.directEditNew??t.event.directEdit)?C(t,"task"):Fs(t,s.user,r,p)}function C(t,e,n=!1){p("rowClicked",{task:t,tab:e,event:n})}function T(t){v.find(e=>e==t.event.id)?o(0,v=v.filter(e=>e!=t.event.id)):o(0,v=v.concat(t.event.id))}function _(t){C(t,"workflow")}const D={weekday:"short",year:"numeric",month:"short",day:"numeric"};const I={AgreementPreparation:"Anfrage Vereinbarung",AgreementExecution:"Vereinbarung",DeliveryPreparation:"Vorbereitung Lieferung/DL",DeliveryExecution:"Ausführung Lieferung/DL",CompensationPreparation:"Verrechnung",CompensationExecution:"Zahlung"},A=t=>r.some(e=>t.find(t=>t.role===e));return t.$$set=t=>{"task"in t&&o(2,$=t.task),"domains"in t&&o(3,g=t.domains),"isStarred"in t&&o(4,h=t.isStarred),"starredTasks"in t&&o(0,v=t.starredTasks),"openSelection"in t&&o(1,y=t.openSelection)},t.$$.update=()=>{4&t.$$.dirty[0]&&function(t){const e=new Date(t),n=JSON.parse(c.getItem("Locale"));e.toLocaleDateString(n.id,D)}($?.dueDate)},[v,y,$,g,h,w,s,r,a,d,u,p,k,x,b,(t,e)=>()=>{window.open(`/task/${t.id}/${e._id}/task?view=standalone&showUpdate=true`,"_blank")},async t=>{const e=await l.getSectionView("_update",{_table:t.event.class,_done:!1});return e?.length},z,async()=>{const t=await l.getSchemaByClass(m.event.class),e=[{type:"string",name:"_id",designation:"",active:!1},{type:"string",name:"display",designation:t.identity.designation,active:!0},{type:"date",name:"next",designation:"Nächste Änderung",active:!0}],n=await l.getSectionView("_update",{_table:m.event.class,_done:!1}),o=new Set(n.map(t=>t._recId)),s=Array.from(o),r=await l.getSectionView(m.event.class,{_id:{$in:s}},!0),i=await l.getSectionView("_task",{docId:{$in:s}});return{items:e,list:r.map(e=>({_id:E(e._id,i)._id,display:_e(t,e),next:n.find(t=>t._recId===e._id)?._date||""})),schema:t}},(t,e)=>{if(!e)return;let n=((t,e)=>{try{return t.split(".").reduce((t,e)=>t[e],e)}catch(t){return""}})(e.name,t);return"date"===e.type&&(n=new Date(n).toLocaleDateString()),"number"===e.type&&(n=Number(n)?Number(n).toLocaleString(lang,{minimumFractionDigits:e.properties?.decimals||e.decimals||0,maximumFractionDigits:e.properties?.decimals||e.decimals||0}):""),"boolean"===e.type&&(n=n?"Ja":"Nein"),n},S,C,T,_,t=>{const e=t.event.name;if(0!==t.count)return y===e?(o(1,y=""),void p("rowScroll",t)):void o(1,y=e)},(t,e)=>I[t+e]||"Information",async t=>{const e=await l.getEvent(t),{authorization:n}=e;return A(n)},A,()=>$.data?$.event.title:"",()=>S($),()=>S($),()=>S($),t=>t===$.event.id,()=>T($),()=>C($,"task"),()=>z($),()=>Fs($,s.user,r,p),()=>Ws($.report),()=>C($,"visum"),()=>_($),()=>C($,"collab"),()=>C($,"report"),()=>function(t){const e=t.id,n=`/reporting/${t.directReport.report._id}/${e}?view=standalone`;window.open(n)}($),function(t){w=t,o(5,w)}]}class Pn extends It{constructor(t){var e;super(),document.getElementById("svelte-p25c84-style")||((e=W("style")).id="svelte-p25c84-style",e.textContent=".buttonTable.svelte-p25c84 td.svelte-p25c84.svelte-p25c84{padding:0.25em;border-bottom:0;text-align:center}td.svelte-p25c84.svelte-p25c84.svelte-p25c84{padding:0 0.5em 0 1em;border-bottom:1px solid #ccc;vertical-align:middle}.lined.svelte-p25c84.svelte-p25c84.svelte-p25c84:nth-child(2n){background-color:#eee}.lined.svelte-p25c84.svelte-p25c84.svelte-p25c84:nth-child(2n+1){background-color:#f7f7f7}.lined.svelte-p25c84.svelte-p25c84.svelte-p25c84:hover{background-color:#ddd}.empty.svelte-p25c84.svelte-p25c84.svelte-p25c84{background-color:#f7f7f7;font-style:italic}.task_cursor.svelte-p25c84.svelte-p25c84.svelte-p25c84{cursor:pointer}.task_title.svelte-p25c84.svelte-p25c84.svelte-p25c84{display:inline-block;margin:0;margin-top:-1.5em;margin-bottom:0.5em;opacity:0.75;font-size:15px;font-style:italic}.display-full.svelte-p25c84.svelte-p25c84.svelte-p25c84{width:max-content}.action-column.svelte-p25c84 .action-column--container.svelte-p25c84.svelte-p25c84{display:flex;flex-flow:row wrap;gap:0.4em}thead.svelte-p25c84.svelte-p25c84.svelte-p25c84{color:black !important}.domain_expanded.svelte-p25c84.svelte-p25c84.svelte-p25c84{padding-left:1em !important;padding-right:0 !important}.domain.svelte-p25c84.svelte-p25c84.svelte-p25c84{min-width:1em;width:1em;padding:0.5em;background-color:#e2e2e2;height:1em}.domain_0.svelte-p25c84.svelte-p25c84.svelte-p25c84{background-color:#A9C0CE}.domain_1.svelte-p25c84.svelte-p25c84.svelte-p25c84{background-color:#7E7F80}.domain_2.svelte-p25c84.svelte-p25c84.svelte-p25c84{background-color:#55C1D9}.domain_3.svelte-p25c84.svelte-p25c84.svelte-p25c84{background-color:#66A649}.domain_4.svelte-p25c84.svelte-p25c84.svelte-p25c84{background-color:#F2CF63}.domain_5.svelte-p25c84.svelte-p25c84.svelte-p25c84{background-color:#BF5A50}.txt-center.svelte-p25c84.svelte-p25c84.svelte-p25c84{text-align:center}.eList.svelte-p25c84.svelte-p25c84.svelte-p25c84{margin-top:1em;margin-bottom:1em;height:fit-content;min-height:50vh;max-height:75vh;overflow-y:scroll;overflow-x:auto}.eList.svelte-p25c84 table.svelte-p25c84.svelte-p25c84{min-width:30vw;position:relative;width:100% !important}.eList.svelte-p25c84 table thead.svelte-p25c84.svelte-p25c84{position:sticky;top:0;background:#326173;color:white}.eList.svelte-p25c84 table.svelte-p25c84 thead tr.svelte-p25c84{height:2.3em}.eList.svelte-p25c84 table.svelte-p25c84 tbody tr.svelte-p25c84{height:2.75em !important;cursor:pointer}th.svelte-p25c84.svelte-p25c84.svelte-p25c84,td.svelte-p25c84.svelte-p25c84.svelte-p25c84{padding-left:0.4em;padding-right:0.4em}td.number.svelte-p25c84.svelte-p25c84.svelte-p25c84{text-align:end}div.dialog.help2{position:relative;margin-top:0 !important}",I(document.head,e)),Dt(this,t,Wn,In,_,{task:2,domains:3,isStarred:4,starredTasks:0,openSelection:1,getTitle:28},[-1,-1,-1])}get getTitle(){return this.$$.ctx[28]}}const{document:Ln}=bt;function jn(t,e,n){const o=t.slice();return o[49]=e[n],o}function Bn(t,e,n){const o=t.slice();return o[52]=e[n],o}function Mn(t,e,n){const o=t.slice();return o[55]=e[n],o}function Rn(t){let e,n,o,s,r,i,l,c=t[4]&&Vn(t),a=t[6]&&Gn(t),d=t[3]&&Xn(t),u=t[2]&&io(t),p=t[5]&&uo(t),m=!t[9]&&$o(t);return{c(){e=W("div"),c&&c.c(),n=j(),a&&a.c(),o=j(),d&&d.c(),s=j(),u&&u.c(),r=j(),p&&p.c(),i=j(),m&&m.c(),V(e,"class","filter--area svelte-2yy2vd")},m(t,f){A(t,e,f),c&&c.m(e,null),I(e,n),a&&a.m(e,null),I(e,o),d&&d.m(e,null),I(e,s),u&&u.m(e,null),I(e,r),p&&p.m(e,null),I(e,i),m&&m.m(e,null),l=!0},p(t,l){t[4]?c?(c.p(t,l),16&l[0]&&wt(c,1)):(c=Vn(t),c.c(),wt(c,1),c.m(e,n)):c&&(ht(),yt(c,1,1,()=>{c=null}),vt()),t[6]?a?(a.p(t,l),64&l[0]&&wt(a,1)):(a=Gn(t),a.c(),wt(a,1),a.m(e,o)):a&&(ht(),yt(a,1,1,()=>{a=null}),vt()),t[3]?d?(d.p(t,l),8&l[0]&&wt(d,1)):(d=Xn(t),d.c(),wt(d,1),d.m(e,s)):d&&(ht(),yt(d,1,1,()=>{d=null}),vt()),t[2]?u?(u.p(t,l),4&l[0]&&wt(u,1)):(u=io(t),u.c(),wt(u,1),u.m(e,r)):u&&(ht(),yt(u,1,1,()=>{u=null}),vt()),t[5]?p?(p.p(t,l),32&l[0]&&wt(p,1)):(p=uo(t),p.c(),wt(p,1),p.m(e,i)):p&&(ht(),yt(p,1,1,()=>{p=null}),vt()),t[9]?m&&(ht(),yt(m,1,1,()=>{m=null}),vt()):m?(m.p(t,l),512&l[0]&&wt(m,1)):(m=$o(t),m.c(),wt(m,1),m.m(e,null))},i(t){l||(wt(c),wt(a),wt(d),wt(u),wt(p),wt(m),l=!0)},o(t){yt(c),yt(a),yt(d),yt(u),yt(p),yt(m),l=!1},d(t){t&&O(e),c&&c.d(),a&&a.d(),d&&d.d(),u&&u.d(),p&&p.d(),m&&m.d()}}}function Vn(t){let e,n;return e=new t[11]({props:{$$slots:{default:[Jn,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};1&n[0]|134348800&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function Un(t){let e,n,o,s,r,i,l;return n=new Se({props:{size:"24",class:"ml"}}),s=new Ut({props:{size:"24",class:"ml dropdown-chevron"}}),{c(){e=W("div"),Tt(n.$$.fragment),o=L("\n Domäne\n "),Tt(s.$$.fragment),V(e,"class","filter_button--icon")},m(c,a){A(c,e,a),_t(n,e,null),A(c,o,a),_t(s,c,a),r=!0,i||(l=M(e,"click",t[25]),i=!0)},p:z,i(t){r||(wt(n.$$.fragment,t),wt(s.$$.fragment,t),r=!0)},o(t){yt(n.$$.fragment,t),yt(s.$$.fragment,t),r=!1},d(t){t&&O(e),Nt(n),t&&O(o),Nt(s,t),i=!1,l()}}}function Hn(t){let e,n,o,s,r,i,l,c,a,d,u,p=t[55]+"";return{c(){e=W("input"),s=j(),r=W("label"),i=L(p),l=j(),V(e,"class",n="checkbox-tools domain-border--"+t[0].indexOf(t[55])+" svelte-2yy2vd"),V(e,"type","checkbox"),V(e,"name",t[14].DOMAIN),V(e,"id",o=t[55]),V(r,"class",c="for-checkbox-tools domain-border domain-border--"+t[0].indexOf(t[55])+" svelte-2yy2vd"),V(r,"for",a=t[55])},m(n,o){A(n,e,o),A(n,s,o),A(n,r,o),I(r,i),I(r,l),d||(u=M(e,"change",t[17]),d=!0)},p(t,s){1&s[0]&&n!==(n="checkbox-tools domain-border--"+t[0].indexOf(t[55])+" svelte-2yy2vd")&&V(e,"class",n),1&s[0]&&o!==(o=t[55])&&V(e,"id",o),1&s[0]&&p!==(p=t[55]+"")&&H(i,p),1&s[0]&&c!==(c="for-checkbox-tools domain-border domain-border--"+t[0].indexOf(t[55])+" svelte-2yy2vd")&&V(r,"class",c),1&s[0]&&a!==(a=t[55])&&V(r,"for",a)},d(t){t&&O(e),t&&O(s),t&&O(r),d=!1,u()}}}function qn(t){let e,n=t[0],o=[];for(let e=0;e<n.length;e+=1)o[e]=Hn(Mn(t,n,e));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=B()},m(t,n){for(let e=0;e<o.length;e+=1)o[e].m(t,n);A(t,e,n)},p(t,s){if(147457&s[0]){let r;for(n=t[0],r=0;r<n.length;r+=1){const i=Mn(t,n,r);o[r]?o[r].p(i,s):(o[r]=Hn(i),o[r].c(),o[r].m(e.parentNode,e))}for(;r<o.length;r+=1)o[r].d(1);o.length=n.length}},d(t){F(o,t),t&&O(e)}}}function Jn(t){let e,n,o,s;return e=new t[10]({props:{class:"add_filter_button",id:"filterbutton-"+t[14].DOMAIN,$$slots:{default:[Un]},$$scope:{ctx:t}}}),e.$on("click",function(){T(t[48])&&t[48].apply(this,arguments)}),o=new t[12]({props:{class:"dropdown-filter",verticalAlignment:"bottom",$$slots:{default:[qn]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment),n=j(),Tt(o.$$.fragment)},m(t,r){_t(e,t,r),A(t,n,r),_t(o,t,r),s=!0},p(n,s){t=n;const r={};134217728&s[1]&&(r.$$scope={dirty:s,ctx:t}),e.$set(r);const i={};1&s[0]|134217728&s[1]&&(i.$$scope={dirty:s,ctx:t}),o.$set(i)},i(t){s||(wt(e.$$.fragment,t),wt(o.$$.fragment,t),s=!0)},o(t){yt(e.$$.fragment,t),yt(o.$$.fragment,t),s=!1},d(t){Nt(e,t),t&&O(n),Nt(o,t)}}}function Gn(t){let e,n;return e=new t[11]({props:{$$slots:{default:[Qn,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};257&n[0]|134348800&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function Zn(t){let e,n,o,s,r,i,l;return n=new Se({props:{size:"24",class:"ml"}}),s=new Ut({props:{size:"24",class:"ml dropdown-chevron"}}),{c(){e=W("div"),Tt(n.$$.fragment),o=L("\n Ereignis\n "),Tt(s.$$.fragment),V(e,"class","filter_button--icon")},m(c,a){A(c,e,a),_t(n,e,null),A(c,o,a),_t(s,c,a),r=!0,i||(l=M(e,"click",t[26]),i=!0)},p:z,i(t){r||(wt(n.$$.fragment,t),wt(s.$$.fragment,t),r=!0)},o(t){yt(n.$$.fragment,t),yt(s.$$.fragment,t),r=!1},d(t){t&&O(e),Nt(n),t&&O(o),Nt(s,t),i=!1,l()}}}function Kn(t,e){let n,o,s,r,i,l,c,a,d,u,p,m=e[52].split("|")[0]+"";return{key:t,first:null,c(){n=W("input"),r=j(),i=W("label"),l=L(m),c=j(),V(n,"class",o="checkbox-tools domain-border--"+e[20](e[0],e[52])+" svelte-2yy2vd"),V(n,"type","checkbox"),V(n,"name",e[14].EVENT),V(n,"id",s=e[52].split("|")[0]),V(i,"class",a="for-checkbox-tools domain-border domain-border--"+e[20](e[0],e[52])+" svelte-2yy2vd"),V(i,"for",d=e[52].split("|")[0]),this.first=n},m(t,o){A(t,n,o),A(t,r,o),A(t,i,o),I(i,l),I(i,c),u||(p=M(n,"change",e[16]),u=!0)},p(t,r){e=t,257&r[0]&&o!==(o="checkbox-tools domain-border--"+e[20](e[0],e[52])+" svelte-2yy2vd")&&V(n,"class",o),256&r[0]&&s!==(s=e[52].split("|")[0])&&V(n,"id",s),256&r[0]&&m!==(m=e[52].split("|")[0]+"")&&H(l,m),257&r[0]&&a!==(a="for-checkbox-tools domain-border domain-border--"+e[20](e[0],e[52])+" svelte-2yy2vd")&&V(i,"class",a),256&r[0]&&d!==(d=e[52].split("|")[0])&&V(i,"for",d)},d(t){t&&O(n),t&&O(r),t&&O(i),u=!1,p()}}}function Yn(t){let e,n=[],o=new Map,s=t[8];const r=t=>t[52];for(let e=0;e<s.length;e+=1){let i=Bn(t,s,e),l=r(i);o.set(l,n[e]=Kn(l,i))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=B()},m(t,o){for(let e=0;e<n.length;e+=1)n[e].m(t,o);A(t,e,o)},p(t,i){1130753&i[0]&&(s=t[8],n=St(n,i,r,1,t,s,o,e.parentNode,zt,Kn,e,Bn))},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&O(e)}}}function Qn(t){let e,n,o,s;return e=new t[10]({props:{class:"add_filter_button",id:"filterbutton-"+t[14].EVENT,$$slots:{default:[Zn]},$$scope:{ctx:t}}}),e.$on("click",function(){T(t[48])&&t[48].apply(this,arguments)}),o=new t[12]({props:{class:"dropdown-filter",verticalAlignment:"bottom",$$slots:{default:[Yn]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment),n=j(),Tt(o.$$.fragment)},m(t,r){_t(e,t,r),A(t,n,r),_t(o,t,r),s=!0},p(n,s){t=n;const r={};134217728&s[1]&&(r.$$scope={dirty:s,ctx:t}),e.$set(r);const i={};257&s[0]|134217728&s[1]&&(i.$$scope={dirty:s,ctx:t}),o.$set(i)},i(t){s||(wt(e.$$.fragment,t),wt(o.$$.fragment,t),s=!0)},o(t){yt(e.$$.fragment,t),yt(o.$$.fragment,t),s=!1},d(t){Nt(e,t),t&&O(n),Nt(o,t)}}}function Xn(t){let e,n;return e=new t[11]({props:{$$slots:{default:[ro,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};134348800&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function to(t){let e,n,o,s,r,i,l;return n=new Se({props:{size:"24",class:"ml"}}),s=new Ut({props:{size:"24",class:"ml dropdown-chevron"}}),{c(){e=W("div"),Tt(n.$$.fragment),o=L("\n Status\n "),Tt(s.$$.fragment),V(e,"class","filter_button--icon")},m(c,a){A(c,e,a),_t(n,e,null),A(c,o,a),_t(s,c,a),r=!0,i||(l=M(e,"click",t[27]),i=!0)},p:z,i(t){r||(wt(n.$$.fragment,t),wt(s.$$.fragment,t),r=!0)},o(t){yt(n.$$.fragment,t),yt(s.$$.fragment,t),r=!1},d(t){t&&O(e),Nt(n),t&&O(o),Nt(s,t),i=!1,l()}}}function eo(t){let e,n,o,s,r;return{c(){e=W("input"),n=j(),o=W("label"),o.textContent="Vorlage ",V(e,"class","checkbox-tools svelte-2yy2vd"),V(e,"type","checkbox"),V(e,"name",t[14].STATUS),V(e,"id","vorlage"),V(o,"class","for-checkbox-tools svelte-2yy2vd"),V(o,"for","vorlage")},m(i,l){A(i,e,l),A(i,n,l),A(i,o,l),s||(r=M(e,"change",t[16]),s=!0)},p:z,d(t){t&&O(e),t&&O(n),t&&O(o),s=!1,r()}}}function no(t){let e,n,o,s,r,i,l,c=On(t[49])+"";return{c(){e=W("input"),n=j(),o=W("label"),s=L(c),r=j(),V(e,"class","checkbox-tools svelte-2yy2vd"),V(e,"type","checkbox"),V(e,"name",t[14].STATUS),V(e,"id",t[49]),V(o,"class","for-checkbox-tools svelte-2yy2vd"),V(o,"for",t[49])},m(c,a){A(c,e,a),A(c,n,a),A(c,o,a),I(o,s),I(o,r),i||(l=M(e,"change",t[16]),i=!0)},p:z,d(t){t&&O(e),t&&O(n),t&&O(o),i=!1,l()}}}function oo(t){let e;let n=function(t){return t[49]?no:eo}(t),o=n(t);return{c(){o.c(),e=B()},m(t,n){o.m(t,n),A(t,e,n)},p(t,e){o.p(t,e)},d(t){o.d(t),t&&O(e)}}}function so(t){let e,n=t[15].size>0&&function(t){let e,n=[...t[15]],o=[];for(let e=0;e<n.length;e+=1)o[e]=oo(jn(t,n,e));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=B()},m(t,n){for(let e=0;e<o.length;e+=1)o[e].m(t,n);A(t,e,n)},p(t,s){if(114688&s[0]){let r;for(n=[...t[15]],r=0;r<n.length;r+=1){const i=jn(t,n,r);o[r]?o[r].p(i,s):(o[r]=oo(i),o[r].c(),o[r].m(e.parentNode,e))}for(;r<o.length;r+=1)o[r].d(1);o.length=n.length}},d(t){F(o,t),t&&O(e)}}}(t);return{c(){n&&n.c(),e=B()},m(t,o){n&&n.m(t,o),A(t,e,o)},p(t,e){t[15].size>0&&n.p(t,e)},d(t){n&&n.d(t),t&&O(e)}}}function ro(t){let e,n,o,s;return e=new t[10]({props:{class:"add_filter_button",id:"filterbutton-"+t[14].STATUS,$$slots:{default:[to]},$$scope:{ctx:t}}}),e.$on("click",function(){T(t[48])&&t[48].apply(this,arguments)}),o=new t[12]({props:{class:"dropdown-filter",verticalAlignment:"bottom",$$slots:{default:[so]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment),n=j(),Tt(o.$$.fragment)},m(t,r){_t(e,t,r),A(t,n,r),_t(o,t,r),s=!0},p(n,s){t=n;const r={};134217728&s[1]&&(r.$$scope={dirty:s,ctx:t}),e.$set(r);const i={};134217728&s[1]&&(i.$$scope={dirty:s,ctx:t}),o.$set(i)},i(t){s||(wt(e.$$.fragment,t),wt(o.$$.fragment,t),s=!0)},o(t){yt(e.$$.fragment,t),yt(o.$$.fragment,t),s=!1},d(t){Nt(e,t),t&&O(n),Nt(o,t)}}}function io(t){let e,n;return e=new t[11]({props:{$$slots:{default:[ao,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};134348800&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function lo(t){let e,n,o,s,r,i,l;return n=new Se({props:{size:"24",class:"ml"}}),s=new Ut({props:{size:"24",class:"ml dropdown-chevron"}}),{c(){e=W("div"),Tt(n.$$.fragment),o=L("\n Prio\n "),Tt(s.$$.fragment),V(e,"class","filter_button--icon")},m(c,a){A(c,e,a),_t(n,e,null),A(c,o,a),_t(s,c,a),r=!0,i||(l=M(e,"click",t[28]),i=!0)},p:z,i(t){r||(wt(n.$$.fragment,t),wt(s.$$.fragment,t),r=!0)},o(t){yt(n.$$.fragment,t),yt(s.$$.fragment,t),r=!1},d(t){t&&O(e),Nt(n),t&&O(o),Nt(s,t),i=!1,l()}}}function co(t){let e,n,o,s,r,i,l,c,a,d,u,p,m;return{c(){e=W("input"),n=j(),o=W("label"),o.textContent="1",s=j(),r=W("input"),i=j(),l=W("label"),l.textContent="2",c=j(),a=W("input"),d=j(),u=W("label"),u.textContent="3",V(e,"class","checkbox-tools prio1 svelte-2yy2vd"),V(e,"type","checkbox"),V(e,"name",t[14].PRIO),V(e,"id","1"),V(o,"class","for-checkbox-tools prio prio1 svelte-2yy2vd"),V(o,"for","1"),V(r,"class","checkbox-tools prio2 svelte-2yy2vd"),V(r,"type","checkbox"),V(r,"name",t[14].PRIO),V(r,"id","2"),V(l,"class","for-checkbox-tools prio prio2 svelte-2yy2vd"),V(l,"for","2"),V(a,"class","checkbox-tools prio3 svelte-2yy2vd"),V(a,"type","checkbox"),V(a,"name",t[14].PRIO),V(a,"id","3"),V(u,"class","for-checkbox-tools prio prio3 svelte-2yy2vd"),V(u,"for","3")},m(f,$){A(f,e,$),A(f,n,$),A(f,o,$),A(f,s,$),A(f,r,$),A(f,i,$),A(f,l,$),A(f,c,$),A(f,a,$),A(f,d,$),A(f,u,$),p||(m=[M(e,"change",t[16]),M(r,"change",t[16]),M(a,"change",t[16])],p=!0)},p:z,d(t){t&&O(e),t&&O(n),t&&O(o),t&&O(s),t&&O(r),t&&O(i),t&&O(l),t&&O(c),t&&O(a),t&&O(d),t&&O(u),p=!1,C(m)}}}function ao(t){let e,n,o,s;return e=new t[10]({props:{class:"add_filter_button",id:"filterbutton-"+t[14].PRIO,$$slots:{default:[lo]},$$scope:{ctx:t}}}),e.$on("click",function(){T(t[48])&&t[48].apply(this,arguments)}),o=new t[12]({props:{class:"dropdown-filter",verticalAlignment:"bottom",$$slots:{default:[co]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment),n=j(),Tt(o.$$.fragment)},m(t,r){_t(e,t,r),A(t,n,r),_t(o,t,r),s=!0},p(n,s){t=n;const r={};134217728&s[1]&&(r.$$scope={dirty:s,ctx:t}),e.$set(r);const i={};134217728&s[1]&&(i.$$scope={dirty:s,ctx:t}),o.$set(i)},i(t){s||(wt(e.$$.fragment,t),wt(o.$$.fragment,t),s=!0)},o(t){yt(e.$$.fragment,t),yt(o.$$.fragment,t),s=!1},d(t){Nt(e,t),t&&O(n),Nt(o,t)}}}function uo(t){let e,n;return e=new t[11]({props:{$$slots:{default:[fo,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};128&n[0]|134348800&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function po(t){let e,n,o,s,r,i,l;return n=new Se({props:{size:"24",class:"ml"}}),s=new Ut({props:{size:"24",class:"ml dropdown-chevron"}}),{c(){e=W("div"),Tt(n.$$.fragment),o=L("\n Fälligkeit\n "),Tt(s.$$.fragment),V(e,"class","filter_button--icon")},m(c,a){A(c,e,a),_t(n,e,null),A(c,o,a),_t(s,c,a),r=!0,i||(l=M(e,"click",t[29]),i=!0)},p:z,i(t){r||(wt(n.$$.fragment,t),wt(s.$$.fragment,t),r=!0)},o(t){yt(n.$$.fragment,t),yt(s.$$.fragment,t),r=!1},d(t){t&&O(e),Nt(n),t&&O(o),Nt(s,t),i=!1,l()}}}function mo(t){let e,n,o;function s(e){t[30](e)}let r={range:!0,below:!0};return void 0!==t[7]&&(r.value=t[7]),e=new t[13]({props:r}),nt.push(()=>Ct(e,"value",s)),e.$on("change",t[16]),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,o){const s={};!n&&128&o[0]&&(n=!0,s.value=t[7],dt(()=>n=!1)),e.$set(s)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Nt(e,t)}}}function fo(t){let e,n,o,s;return e=new t[10]({props:{class:"add_filter_button",id:"filterbutton-"+t[14].DUEDATE,$$slots:{default:[po]},$$scope:{ctx:t}}}),e.$on("click",function(){T(t[48])&&t[48].apply(this,arguments)}),o=new t[12]({props:{class:"dropdown-filter",verticalAlignment:"bottom",$$slots:{default:[mo]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment),n=j(),Tt(o.$$.fragment)},m(t,r){_t(e,t,r),A(t,n,r),_t(o,t,r),s=!0},p(n,s){t=n;const r={};134217728&s[1]&&(r.$$scope={dirty:s,ctx:t}),e.$set(r);const i={};128&s[0]|134217728&s[1]&&(i.$$scope={dirty:s,ctx:t}),o.$set(i)},i(t){s||(wt(e.$$.fragment,t),wt(o.$$.fragment,t),s=!0)},o(t){yt(e.$$.fragment,t),yt(o.$$.fragment,t),s=!1},d(t){Nt(e,t),t&&O(n),Nt(o,t)}}}function $o(t){let e,n;return e=new t[11]({props:{$$slots:{default:[bo,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};124&n[0]|134348800&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function go(t){let e,n,o;return e=new fe({props:{size:"24"}}),{c(){Tt(e.$$.fragment),n=L("\n Neuer Filter")},m(t,s){_t(e,t,s),A(t,n,s),o=!0},p:z,i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Nt(e,t),t&&O(n)}}}function ho(t){let e,n,o,s,r,i,l;return s=new fe({props:{size:"24"}}),{c(){e=W("div"),n=W("div"),n.textContent="Domäne",o=j(),Tt(s.$$.fragment),V(e,"class","dropdown-content--element svelte-2yy2vd")},m(c,a){A(c,e,a),I(e,n),I(e,o),_t(s,e,null),r=!0,i||(l=M(e,"click",t[31]),i=!0)},p:z,i(t){r||(wt(s.$$.fragment,t),r=!0)},o(t){yt(s.$$.fragment,t),r=!1},d(t){t&&O(e),Nt(s),i=!1,l()}}}function vo(t){let e,n,o,s,r,i,l;return s=new fe({props:{size:"24"}}),{c(){e=W("div"),n=W("div"),n.textContent="Ereignis",o=j(),Tt(s.$$.fragment),V(e,"class","dropdown-content--element svelte-2yy2vd")},m(c,a){A(c,e,a),I(e,n),I(e,o),_t(s,e,null),r=!0,i||(l=M(e,"click",t[32]),i=!0)},p:z,i(t){r||(wt(s.$$.fragment,t),r=!0)},o(t){yt(s.$$.fragment,t),r=!1},d(t){t&&O(e),Nt(s),i=!1,l()}}}function wo(t){let e,n,o,s,r,i,l;return s=new fe({props:{size:"24"}}),{c(){e=W("div"),n=W("div"),n.textContent="Status",o=j(),Tt(s.$$.fragment),V(e,"class","dropdown-content--element svelte-2yy2vd")},m(c,a){A(c,e,a),I(e,n),I(e,o),_t(s,e,null),r=!0,i||(l=M(e,"click",t[33]),i=!0)},p:z,i(t){r||(wt(s.$$.fragment,t),r=!0)},o(t){yt(s.$$.fragment,t),r=!1},d(t){t&&O(e),Nt(s),i=!1,l()}}}function yo(t){return{c:z,m:z,d:z}}function ko(t){return{c:z,m:z,d:z}}function xo(t){let e,n,o,s,r,i,l,c,a=!t[4]&&ho(t),d=!t[6]&&vo(t),u=!t[3]&&wo(t),p=!t[2]&&yo(),m=!t[5]&&ko();return{c(){e=W("div"),n=W("div"),n.textContent="Wähle Filtertyp:",o=j(),a&&a.c(),s=j(),d&&d.c(),r=j(),u&&u.c(),i=j(),p&&p.c(),l=j(),m&&m.c(),V(n,"class","dropdown-content--header svelte-2yy2vd"),V(e,"class","dropdown-content svelte-2yy2vd")},m(t,f){A(t,e,f),I(e,n),I(e,o),a&&a.m(e,null),I(e,s),d&&d.m(e,null),I(e,r),u&&u.m(e,null),I(e,i),p&&p.m(e,null),I(e,l),m&&m.m(e,null),c=!0},p(t,n){t[4]?a&&(ht(),yt(a,1,1,()=>{a=null}),vt()):a?(a.p(t,n),16&n[0]&&wt(a,1)):(a=ho(t),a.c(),wt(a,1),a.m(e,s)),t[6]?d&&(ht(),yt(d,1,1,()=>{d=null}),vt()):d?(d.p(t,n),64&n[0]&&wt(d,1)):(d=vo(t),d.c(),wt(d,1),d.m(e,r)),t[3]?u&&(ht(),yt(u,1,1,()=>{u=null}),vt()):u?(u.p(t,n),8&n[0]&&wt(u,1)):(u=wo(t),u.c(),wt(u,1),u.m(e,i)),t[2]?p&&(p.d(1),p=null):p||(p=yo(),p.c(),p.m(e,l)),t[5]?m&&(m.d(1),m=null):m||(m=ko(),m.c(),m.m(e,null))},i(t){c||(wt(a),wt(d),wt(u),c=!0)},o(t){yt(a),yt(d),yt(u),c=!1},d(t){t&&O(e),a&&a.d(),d&&d.d(),u&&u.d(),p&&p.d(),m&&m.d()}}}function bo(t){let e,n,o,s;return e=new t[10]({props:{class:"add_filter_button",$$slots:{default:[go]},$$scope:{ctx:t}}}),e.$on("click",function(){T(t[48])&&t[48].apply(this,arguments)}),o=new t[12]({props:{verticalAlignment:"bottom",$$slots:{default:[xo]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment),n=j(),Tt(o.$$.fragment)},m(t,r){_t(e,t,r),A(t,n,r),_t(o,t,r),s=!0},p(n,s){t=n;const r={};134217728&s[1]&&(r.$$scope={dirty:s,ctx:t}),e.$set(r);const i={};124&s[0]|134217728&s[1]&&(i.$$scope={dirty:s,ctx:t}),o.$set(i)},i(t){s||(wt(e.$$.fragment,t),wt(o.$$.fragment,t),s=!0)},o(t){yt(e.$$.fragment,t),yt(o.$$.fragment,t),s=!1},d(t){Nt(e,t),t&&O(n),Nt(o,t)}}}function zo(t){let e,n,o=!t[1]&&Rn(t);return{c(){o&&o.c(),e=B()},m(t,s){o&&o.m(t,s),A(t,e,s),n=!0},p(t,n){t[1]?o&&(ht(),yt(o,1,1,()=>{o=null}),vt()):o?(o.p(t,n),2&n[0]&&wt(o,1)):(o=Rn(t),o.c(),wt(o,1),o.m(e.parentNode,e))},i(t){n||(wt(o),n=!0)},o(t){yt(o),n=!1},d(t){o&&o.d(t),t&&O(e)}}}function Eo(t,e){e&&window.setTimeout(()=>{const e="filterbutton-"+t;document.getElementById(e)?.click()})}function So(t,n,o){let s,r;const{Button:i,DropdownShell:l,Dropdown:c,DatePicker:a}=e,d=X();let{shownTasks:u}=n,{tenant:p}=n,{events:m}=n,{domains:f}=n,{isReport:$}=n;const g=_;let h;const v=p+"-ENABLERR-FILTER";let w={start:new Date,end:new Date};const y={DOMAIN:"domain",EVENT:"event",STATUS:"status",PRIO:"prio",DUEDATE:"dueDate"};let k,x=!1,b=!1,z=!1,E=!1,S=!1,C=m,T=new Set;async function _(t=!0){s=[...u],await D(y.DOMAIN),await D(y.STATUS),await D(y.PRIO),await O(),await D(y.EVENT),N(t)}function N(t=!0){d("filterUpdated",{tasks:s,updateSort:t})}async function D(t,e=!1){if(!h)return;if($)return;if(k)return;let n=await document.getElementsByName(t),r=[];if(e)r=h[t],n.forEach(t=>{r.includes(t.id.toLowerCase())&&(t.checked=!0)});else{for(let t of n)t.checked&&r.push(t.id.toLowerCase());h[t]=r,window.localStorage.setItem(v,JSON.stringify(h))}0!=r.length?t==y.DOMAIN?(!e&&S&&await P(),s=s.filter(t=>r.indexOf(t.event.domain.toLowerCase())>=0)):t==y.EVENT?s=s.filter(t=>r.indexOf(t.event.designation.toLowerCase())>=0):t==y.STATUS?s=s.filter(t=>t.status?r.indexOf(t.status.toLowerCase())>=0:r.indexOf("vorlage")>=0):t==y.PRIO&&(s=s.filter(t=>{if(t.priority){return r.indexOf(t.priority.toString())>=0}return r.indexOf("1")>=0})):t==y.DOMAIN&&o(8,C=m)}function I(t){A(t),F(t)}async function A(t,e=!0){switch(t){case y.DOMAIN:o(4,z=!z),Eo(y.DOMAIN,e&&z),z&&S&&await W();break;case y.EVENT:o(6,S=!S),Eo(y.EVENT,e&&S),e&&z&&await P();break;case y.STATUS:o(3,b=!b),Eo(y.STATUS,e&&b);break;case y.PRIO:o(2,x=!x),Eo(y.PRIO,e&&x);break;case y.DUEDATE:o(5,E=!E),Eo(y.DUEDATE,e&&E)}}function O(){w&&(w.start||w.end)&&E&&(s=s.filter(t=>{if(t.dueDate){const e=new Date(t.dueDate).setHours(0,0,0,0),n=w.start.setHours(0,0,0,0),o=w.end.setHours(0,0,0,0);return e>=n&&e<=o}return!1}),h[y.DUEDATE]=w)}function F(t){if(t==y.DUEDATE);else{let e=document.getElementsByName(t.toLowerCase());for(let t of e)t.checked=!1}_()}Q(()=>{k=!1,$||(h=window.localStorage.getItem(v),h=JSON.parse(h),h||(h={[y.DOMAIN]:[],[y.EVENT]:[],[y.STATUS]:[],[y.DUEDATE]:{start:void 0,end:void 0},[y.PRIO]:[],[y.LISTMODEACTIVE]:!0}),h[y.DOMAIN].length&&(A(y.DOMAIN,!1),D(y.DOMAIN,!0)),h[y.EVENT]?.length&&(A(y.EVENT,!1),D(y.EVENT,!0)),h[y.STATUS].length&&(A(y.STATUS,!1),D(y.STATUS,!0)),h[y.PRIO].length&&(A(y.PRIO,!1),D(y.PRIO,!0)),h[y.DUEDATE].start&&h[y.DUEDATE].end&&(A(y.DUEDATE,!1),o(7,w.start=new Date(h[y.DUEDATE].start),w),o(7,w.end=new Date(h[y.DUEDATE].end),w),O()),N())}),function(t){Y().$$.on_destroy.push(t)}(()=>{k=!0});const W=async()=>{const t=[...document.getElementsByName(y.EVENT)];for(const e of t)if(e.checked){const t=e.id,n=m.find(e=>e.startsWith(t+"|")).split("|")[1];await ct();const o=document.getElementById(n);o&&(o.checked=!0)}o(8,C=j())},P=async()=>{document.getElementsByName(y.EVENT);const t=j();if(t?.length){o(8,C=t);for(const t of C){const[e]=t.split("|");await ct().then(async()=>{await ct();const t=document.getElementById(e);t&&(t.checked=!0)})}}},L=()=>{const t=[...document.getElementsByName(y.Domain)];let e=0;for(const n of t)n.checked&&e++;0===e&&F(y.EVENT)},j=()=>m.filter(t=>{const e=t.split("|")[1],n=document.getElementById(e);return n?.checked});return t.$$set=t=>{"shownTasks"in t&&o(21,u=t.shownTasks),"tenant"in t&&o(22,p=t.tenant),"events"in t&&o(23,m=t.events),"domains"in t&&o(0,f=t.domains),"isReport"in t&&o(1,$=t.isReport)},t.$$.update=()=>{2097152&t.$$.dirty[0]&&(s=[...u]),124&t.$$.dirty[0]&&o(9,r=x&&b&&z&&E&&S),2097152&t.$$.dirty[0]&&function(t){T.clear(),t.forEach(t=>{T.add(t.status)})}(u)},[f,$,x,b,z,E,S,w,C,r,i,l,c,a,y,T,_,function(t){L(),_(t)},I,A,(t,e)=>{const n=e.split("|")[1];return t.indexOf(n)},u,p,m,g,()=>I(y.DOMAIN),()=>I(y.EVENT),()=>I(y.STATUS),()=>I(y.PRIO),()=>I(y.DUEDATE),function(t){w=t,o(7,w)},()=>A(y.DOMAIN),()=>A(y.EVENT),()=>A(y.STATUS)]}class Co extends It{constructor(t){var e;super(),Ln.getElementById("svelte-2yy2vd-style")||((e=W("style")).id="svelte-2yy2vd-style",e.textContent='.filter--area.svelte-2yy2vd.svelte-2yy2vd{display:contents}.filter--area.svelte-2yy2vd .add_filter_button{border-radius:5px !important;border:2px solid #326173 !important;padding:0.8em}.filter--area.svelte-2yy2vd .filter_button--icon{height:24px;margin-right:0.5em}.domain-border.svelte-2yy2vd.svelte-2yy2vd{border-width:thick;border-style:solid}.domain-border--0.svelte-2yy2vd.svelte-2yy2vd{border-color:#A9C0CE !important}.domain-border--0.svelte-2yy2vd:checked+label.svelte-2yy2vd{background-color:#A9C0CE !important}.domain-border--1.svelte-2yy2vd.svelte-2yy2vd{border-color:#7E7F80 !important}.domain-border--1.svelte-2yy2vd:checked+label.svelte-2yy2vd{background-color:#7E7F80 !important}.domain-border--2.svelte-2yy2vd.svelte-2yy2vd{border-color:#55C1D9 !important}.domain-border--2.svelte-2yy2vd:checked+label.svelte-2yy2vd{background-color:#55C1D9 !important}.domain-border--3.svelte-2yy2vd.svelte-2yy2vd{border-color:#66A649 !important}.domain-border--3.svelte-2yy2vd:checked+label.svelte-2yy2vd{background-color:#66A649 !important}.domain-border--4.svelte-2yy2vd.svelte-2yy2vd{border-color:#F2CF63 !important}.domain-border--4.svelte-2yy2vd:checked+label.svelte-2yy2vd{background-color:#F2CF63 !important}.domain-border--5.svelte-2yy2vd.svelte-2yy2vd{border-color:#BF5A50 !important}.domain-border--5.svelte-2yy2vd:checked+label.svelte-2yy2vd{background-color:#BF5A50 !important}.prio.svelte-2yy2vd.svelte-2yy2vd{border-width:thick;border-style:solid;width:50px !important;text-align:center}.prio1.svelte-2yy2vd.svelte-2yy2vd{border-color:red !important}.prio1.svelte-2yy2vd:checked+label.svelte-2yy2vd{background-color:red !important}.prio2.svelte-2yy2vd.svelte-2yy2vd{border-color:orange !important}.prio2.svelte-2yy2vd:checked+label.svelte-2yy2vd{background-color:orange !important}.prio3.svelte-2yy2vd.svelte-2yy2vd{border-color:green !important}.prio3.svelte-2yy2vd:checked+label.svelte-2yy2vd{background-color:green !important}.dropdown-content.svelte-2yy2vd.svelte-2yy2vd{width:180px;padding:1.2em}.dropdown-content--header.svelte-2yy2vd.svelte-2yy2vd{padding-bottom:1em;width:100%;font-weight:600}.dropdown-content--element.svelte-2yy2vd.svelte-2yy2vd{display:flex;justify-content:space-between;align-items:center;color:#326173;padding-bottom:0.5em;width:100%;cursor:pointer}[type=checkbox].svelte-2yy2vd.svelte-2yy2vd:checked,[type=checkbox].svelte-2yy2vd.svelte-2yy2vd:not(:checked){position:absolute;left:-9999px;width:0;height:0;visibility:hidden}.checkbox-tools.svelte-2yy2vd:checked+label.svelte-2yy2vd,.checkbox-tools.svelte-2yy2vd:not(:checked)+label.svelte-2yy2vd{position:relative;display:inline-block;padding:0.6em 1.1em;height:15px;width:max-content;font-size:15px;font-weight:bold;line-height:17px;letter-spacing:1px;margin:5px;text-align:center;vertical-align:middle;border-width:thick;border-style:solid;border-radius:30px;overflow:hidden;cursor:pointer;text-transform:uppercase;color:#000000;-webkit-transition:all 300ms linear;transition:all 300ms linear;box-shadow:1px 1px 4px 0 rgba(0, 0, 0, 0.1)}.checkbox-tools.svelte-2yy2vd:not(:checked)+label.svelte-2yy2vd{background-color:#DAE1E5;border-color:#DAE1E5;color:#000000}.checkbox-tools.svelte-2yy2vd:checked+label.svelte-2yy2vd{background-color:#326173;border-color:#326173;color:#ffffff;box-shadow:3px 3px 4px 0px rgba(0, 0, 0, 0.2)}.checkbox-tools.svelte-2yy2vd:not(:checked)+label.svelte-2yy2vd:hover{box-shadow:3px 3px 4px 0px rgba(0, 0, 0, 0.2)}.checkbox-tools.svelte-2yy2vd:checked+label.svelte-2yy2vd::before,.checkbox-tools.svelte-2yy2vd:not(:checked)+label.svelte-2yy2vd::before{position:absolute;content:"";top:0;left:0;width:100%;height:100%;border-radius:15px;z-index:-1}',I(Ln.head,e)),Dt(this,t,So,zo,_,{shownTasks:21,tenant:22,events:23,domains:0,isReport:1,applyFilter:24},[-1,-1])}get applyFilter(){return this.$$.ctx[24]}}function To(t,e,n){const o=t.slice();return o[1]=e[n],o}function _o(t){let e,n;return e=new be({props:{size:"8",class:t[1]+t[0]}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.class=t[1]+t[0]),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function No(t){let e,n,o=["vtop","rotated vbottom"],s=[];for(let e=0;e<2;e+=1)s[e]=_o(To(t,o,e));const r=t=>yt(s[t],1,1,()=>{s[t]=null});return{c(){e=W("div");for(let t=0;t<2;t+=1)s[t].c();V(e,"class","sorting svelte-1r2vqjk")},m(t,o){A(t,e,o);for(let t=0;t<2;t+=1)s[t].m(e,null);n=!0},p(t,[n]){if(1&n){let i;for(o=["vtop","rotated vbottom"],i=0;i<2;i+=1){const r=To(t,o,i);s[i]?(s[i].p(r,n),wt(s[i],1)):(s[i]=_o(r),s[i].c(),wt(s[i],1),s[i].m(e,null))}for(ht(),i=2;i<2;i+=1)r(i);vt()}},i(t){if(!n){for(let t=0;t<2;t+=1)wt(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<2;t+=1)yt(s[t]);n=!1},d(t){t&&O(e),F(s,t)}}}function Do(t,e,n){let{active:o}=e;return t.$$set=t=>{"active"in t&&n(0,o=t.active)},[o]}class Io extends It{constructor(t){var e;super(),document.getElementById("svelte-1r2vqjk-style")||((e=W("style")).id="svelte-1r2vqjk-style",e.textContent=".sorting.svelte-1r2vqjk{height:16px;width:9px;padding-right:5px}.sorting.svelte-1r2vqjk .feather-triangle{fill:#ababab;stroke:#ababab;transform:translateY(-8px)}.sorting.svelte-1r2vqjk .vtoptop,.sorting.svelte-1r2vqjk .vbottombottom{fill:black;stroke:black}.sorting.svelte-1r2vqjk .rotated{transform:rotate(180deg) translateY(16px)}",I(document.head,e)),Dt(this,t,Do,No,_,{active:0})}}function Ao(t,e,n){const o=t.slice();return o[6]=e[n].id,o[7]=e[n].desc,o[8]=e[n].active,o}function Oo(t){let e,n;return e=new Io({props:{active:t[3](t[6])}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.active=t[3](t[6])),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function Fo(t){let e,n,o,s=t[7]+"",r=t[8]&&Oo(t);return{c(){r&&r.c(),e=j(),n=L(s)},m(t,s){r&&r.m(t,s),A(t,e,s),A(t,n,s),o=!0},p(t,i){t[8]?r?(r.p(t,i),1&i&&wt(r,1)):(r=Oo(t),r.c(),wt(r,1),r.m(e.parentNode,e)):r&&(ht(),yt(r,1,1,()=>{r=null}),vt()),(!o||1&i)&&s!==(s=t[7]+"")&&H(n,s)},i(t){o||(wt(r),o=!0)},o(t){yt(r),o=!1},d(t){r&&r.d(t),t&&O(e),t&&O(n)}}}function Wo(t,e){let n,o,s,r;return o=new e[2]({props:{name:"sort",$$slots:{default:[Fo]},$$scope:{ctx:e}}}),o.$on("click",function(){T(e[4](e[6],e[8]))&&e[4](e[6],e[8]).apply(this,arguments)}),{key:t,first:null,c(){n=W("th"),Tt(o.$$.fragment),s=j(),this.first=n},m(t,e){A(t,n,e),_t(o,n,null),I(n,s),r=!0},p(t,n){e=t;const s={};2049&n&&(s.$$scope={dirty:n,ctx:e}),o.$set(s)},i(t){r||(wt(o.$$.fragment,t),r=!0)},o(t){yt(o.$$.fragment,t),r=!1},d(t){t&&O(n),Nt(o)}}}function Po(t){let e,n,o=[],s=new Map,r=t[0];const i=t=>t[6];for(let e=0;e<r.length;e+=1){let n=Ao(t,r,e),l=i(n);s.set(l,o[e]=Wo(l,n))}return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=B()},m(t,s){for(let e=0;e<o.length;e+=1)o[e].m(t,s);A(t,e,s),n=!0},p(t,n){25&n&&(r=t[0],ht(),o=St(o,n,i,1,t,r,s,e.parentNode,Et,Wo,e,Ao),vt())},i(t){if(!n){for(let t=0;t<r.length;t+=1)wt(o[t]);n=!0}},o(t){for(let t=0;t<o.length;t+=1)yt(o[t]);n=!1},d(t){for(let e=0;e<o.length;e+=1)o[e].d(t);t&&O(e)}}}function Lo(t){let e,n,o=t[1],s=Po(t);return{c(){s.c(),e=B()},m(t,o){s.m(t,o),A(t,e,o),n=!0},p(t,[n]){2&n&&_(o,o=t[1])?(ht(),yt(s,1,1,z),vt(),s=Po(t),s.c(),wt(s),s.m(e.parentNode,e)):s.p(t,n)},i(t){n||(wt(s),n=!0)},o(t){yt(s),n=!1},d(t){t&&O(e),s.d(t)}}}function jo(t,n,o){const s=X(),{Button:r}=e;let{sortNames:i}=n,{sortSettings:l={}}=n;return t.$$set=t=>{"sortNames"in t&&o(0,i=t.sortNames),"sortSettings"in t&&o(1,l=t.sortSettings)},[i,l,r,t=>l.orderField!==t?"":"asc"===l.sortDir?"top":"bottom",(t,e)=>()=>{e&&s("sort",t)}]}class Bo extends It{constructor(t){super(),Dt(this,t,jo,Lo,_,{sortNames:0,sortSettings:1})}}function Mo(t){let e;return{c(){e=L("Aktionen")},m(t,n){A(t,e,n)},d(t){t&&O(e)}}}function Ro(t){let e,n,o,s,r,i,l,c,a;return r=new Bo({props:{sortNames:t[2],sortSettings:t[0]}}),r.$on("sort",t[3]),c=new t[1]({props:{disabled:!0,$$slots:{default:[Mo]},$$scope:{ctx:t}}}),{c(){e=W("thead"),n=W("tr"),o=W("th"),s=j(),Tt(r.$$.fragment),i=j(),l=W("th"),Tt(c.$$.fragment)},m(t,d){A(t,e,d),I(e,n),I(n,o),I(n,s),_t(r,n,null),I(n,i),I(n,l),_t(c,l,null),a=!0},p(t,[e]){const n={};1&e&&(n.sortSettings=t[0]),r.$set(n);const o={};2048&e&&(o.$$scope={dirty:e,ctx:t}),c.$set(o)},i(t){a||(wt(r.$$.fragment,t),wt(c.$$.fragment,t),a=!0)},o(t){yt(r.$$.fragment,t),yt(c.$$.fragment,t),a=!1},d(t){t&&O(e),Nt(r),Nt(c)}}}function Vo(t,n,o){const s=X(),{Button:r}=e;let i;const l=window.location.pathname.startsWith("/reporting")||window.location.pathname.startsWith("/screen"),c="ENABLERR_SORTORDER",a="Name",d="Domain",u="Deadline",p="Priority",m="Favorite",f=[{id:a,desc:"Bezeichnung"},{id:d,desc:"Domäne"}];l||f.push({id:u,desc:"Typ/Status"}),Q(()=>{o(0,i={orderField:"",sortCallback:()=>null,sortDir:""}),function(){const t=JSON.parse(window.localStorage.getItem(c));if(!t)return;t.sortCallback=g.get(t.orderField),o(0,i=t),$()}()});const $=()=>s("sortUpdate",{settings:i}),g=new Map([[a,Fn],[d,t=>t.event.domain.toLowerCase()],[u,t=>t.dueDate],[p,t=>t.priority],[m,t=>t.event.step.endsWith("xecution")]]);return[i,r,f,function({detail:t}){if(!t)return;const e=i.orderField;o(0,i.sortCallback=g.get(t),i),o(0,i.orderField=t,i),i.sortDir&&e==t?"asc"===i.sortDir?o(0,i.sortDir="desc",i):(o(0,i.sortDir="",i),o(0,i.orderField="",i),o(0,i.sortCallback=null,i)):o(0,i.sortDir="asc",i),function(){const t=JSON.stringify(i);window.localStorage.setItem(c,t)}(),$()}]}class Uo extends It{constructor(t){super(),Dt(this,t,Vo,Ro,_,{})}}const{Map:Ho,document:qo}=bt;function Jo(t,e,n){const o=t.slice();return o[20]=e[n],o}function Go(t,e){let n,o,s,r,i;function l(t){e[9](t)}function c(t){e[10](t)}let a={task:e[20],domains:e[2],isStarred:e[3]};return void 0!==e[4]&&(a.openSelection=e[4]),void 0!==e[1]&&(a.starredTasks=e[1]),o=new Pn({props:a}),nt.push(()=>Ct(o,"openSelection",l)),nt.push(()=>Ct(o,"starredTasks",c)),o.$on("viewTaskList",e[11]),o.$on("rowClicked",e[5]),o.$on("rowScroll",e[8]),{key:t,first:null,c(){n=B(),Tt(o.$$.fragment),this.first=n},m(t,e){A(t,n,e),_t(o,t,e),i=!0},p(t,n){e=t;const i={};9&n&&(i.task=e[20]),4&n&&(i.domains=e[2]),8&n&&(i.isStarred=e[3]),!s&&16&n&&(s=!0,i.openSelection=e[4],dt(()=>s=!1)),!r&&2&n&&(r=!0,i.starredTasks=e[1],dt(()=>r=!1)),o.$set(i)},i(t){i||(wt(o.$$.fragment,t),i=!0)},o(t){yt(o.$$.fragment,t),i=!1},d(t){t&&O(n),Nt(o,t)}}}function Zo(t){let e,n,o,s,r,i=[],l=new Ho;n=new Uo({}),n.$on("sortUpdate",t[7]);let c=t[6](t[0],t[3]);const a=t=>t[20].id;for(let e=0;e<c.length;e+=1){let n=Jo(t,c,e),o=a(n);l.set(o,i[e]=Go(o,n))}return{c(){e=W("table"),Tt(n.$$.fragment),o=j(),s=W("tbody");for(let t=0;t<i.length;t+=1)i[t].c();V(e,"class","no_border_spacing tableFixHead svelte-thjang")},m(t,l){A(t,e,l),_t(n,e,null),I(e,o),I(e,s);for(let t=0;t<i.length;t+=1)i[t].m(s,null);r=!0},p(t,[e]){383&e&&(c=t[6](t[0],t[3]),ht(),i=St(i,e,a,1,t,c,l,s,Et,Go,null,Jo),vt())},i(t){if(!r){wt(n.$$.fragment,t);for(let t=0;t<c.length;t+=1)wt(i[t]);r=!0}},o(t){yt(n.$$.fragment,t);for(let t=0;t<i.length;t+=1)yt(i[t]);r=!1},d(t){t&&O(e),Nt(n);for(let t=0;t<i.length;t+=1)i[t].d()}}}const Ko={Purpose:100,Asset:100},Yo={Agreement:10,Delivery:20,Compensation:30,Information:40},Qo={Preparation:1,Execution:2},Xo=(t,e)=>t.sort((t,n)=>{const o=(t,n)=>{return 1e4*((t,n,o,s)=>{const r=o.split(" ")[0].charCodeAt(0),i=s.split(" ")[0].charCodeAt(0),l=e?.get(n)||t?.length||0;return 2*+!l+(1e3-l-+!t+10*i+5*r)/1e4})(t,n.name,n.designation,n.domain)+100*(o=n.stream,Ko[o.direction]+Yo[o.task]+Qo[o.step])+1e3*+!n.directEdit+n.domain.padEnd(" ",20)+n.designation;var o},s=o(t.data,t.event),r=o(n.data,n.event);return s>r?1:s<r?-1:0});function ts(t,e,n){X();let{visibleTasks:o}=e,{domains:s}=e,{isStarred:r}=e,{starredTasks:i}=e,c="";const a=window.location.pathname.startsWith("/reporting")||window.location.pathname.startsWith("/screen");const d=new Map;return t.$$set=t=>{"visibleTasks"in t&&n(0,o=t.visibleTasks),"domains"in t&&n(2,s=t.domains),"isStarred"in t&&n(3,r=t.isStarred),"starredTasks"in t&&n(1,i=t.starredTasks)},[o,i,s,r,c,function(t){if(!t||!t.detail)return;const{task:e,tab:n,event:o}=t.detail;e&&n&&(e.event.matrix?function(t){window.singleSpaNavigate(`/matrix/${t.event.id}`)}(e):function(t,e,n=!1){const o=n?t.classNew:t.event.id,s=n?t.classNew:t.id;a?l.getEvent(o).then(t=>{"screen"===t.output.subType?window.singleSpaNavigate(`/screen/${o}`):window.singleSpaNavigate(`/reporting/${o}`)}):window.singleSpaNavigate(`/task/${o}/${s}/${e}`)}(e,n,o))},t=>(t.map(e=>{e.data||(e.count=t.filter(t=>t.event.name===e.event.name).length-1,d.set(e.event.name,e.count))}),!a&&2===r&&i?.length&&(t=t.filter(t=>i.find(e=>e==t.event.id))),Xo(t,d)),t=>{t&&t.detail&&t.detail.settings&&t.detail.settings},({detail:t})=>{ct().then(()=>{const e=document.getElementById(t.event.name);e&&e.scrollIntoView({block:"center",behavior:"auto"})})},function(t){c=t,n(4,c)},function(t){i=t,n(1,i)},function(e){tt(t,e)}]}class es extends It{constructor(t){var e;super(),qo.getElementById("svelte-thjang-style")||((e=W("style")).id="svelte-thjang-style",e.textContent=".no_border_spacing.svelte-thjang{border-spacing:0px}.tableFixHead{overflow:auto;height:100px;border-collapse:separate}.tableFixHead thead th{position:sticky;top:0;background-color:#f8f8fe;color:black;border-bottom:2px solid;z-index:1}.modal-overlay.tModal{overflow:visible !important}",I(qo.head,e)),Dt(this,t,ts,Zo,_,{visibleTasks:0,domains:2,isStarred:3,starredTasks:1})}}function ns(t){let e,n,o,s;e=new t[8]({});let r=!t[6]&&function(t){let e,n,o,s,r=!t[0].event.solitaire&&ss(t),i=!t[0].event.solitaire&&!t[0].event.matrix&&is(t),l=t[0].report&&cs(t);return{c(){r&&r.c(),e=j(),i&&i.c(),n=j(),l&&l.c(),o=B()},m(t,c){r&&r.m(t,c),A(t,e,c),i&&i.m(t,c),A(t,n,c),l&&l.m(t,c),A(t,o,c),s=!0},p(t,s){t[0].event.solitaire?r&&(ht(),yt(r,1,1,()=>{r=null}),vt()):r?(r.p(t,s),1&s&&wt(r,1)):(r=ss(t),r.c(),wt(r,1),r.m(e.parentNode,e)),t[0].event.solitaire||t[0].event.matrix?i&&(ht(),yt(i,1,1,()=>{i=null}),vt()):i?(i.p(t,s),1&s&&wt(i,1)):(i=is(t),i.c(),wt(i,1),i.m(n.parentNode,n)),t[0].report?l?(l.p(t,s),1&s&&wt(l,1)):(l=cs(t),l.c(),wt(l,1),l.m(o.parentNode,o)):l&&(ht(),yt(l,1,1,()=>{l=null}),vt())},i(t){s||(wt(r),wt(i),wt(l),s=!0)},o(t){yt(r),yt(i),yt(l),s=!1},d(t){r&&r.d(t),t&&O(e),i&&i.d(t),t&&O(n),l&&l.d(t),t&&O(o)}}}(t);return{c(){Tt(e.$$.fragment),n=j(),o=W("div"),r&&r.c(),V(o,"class","form--icons svelte-19y1oy2")},m(t,i){_t(e,t,i),A(t,n,i),A(t,o,i),r&&r.m(o,null),s=!0},p(t,e){t[6]||r.p(t,e)},i(t){s||(wt(e.$$.fragment,t),wt(r),s=!0)},o(t){yt(e.$$.fragment,t),yt(r),s=!1},d(t){Nt(e,t),t&&O(n),t&&O(o),r&&r.d()}}}function os(t){let e,n,o,s,r,i,l,c,a,d=t[0].event.title+"";return e=new t[8]({}),s=new fe({props:{size:"16"}}),{c(){Tt(e.$$.fragment),n=j(),o=W("div"),Tt(s.$$.fragment),r=j(),i=L(d),V(o,"class","createTask svelte-19y1oy2")},m(d,u){_t(e,d,u),A(d,n,u),A(d,o,u),_t(s,o,null),I(o,r),I(o,i),l=!0,c||(a=M(o,"click",t[14]),c=!0)},p(t,e){(!l||1&e)&&d!==(d=t[0].event.title+"")&&H(i,d)},i(t){l||(wt(e.$$.fragment,t),wt(s.$$.fragment,t),l=!0)},o(t){yt(e.$$.fragment,t),yt(s.$$.fragment,t),l=!1},d(t){Nt(e,t),t&&O(n),t&&O(o),Nt(s),c=!1,a()}}}function ss(t){let e,o;return e=new n({props:{text:"Erfassen",$$slots:{default:[rs]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,n){const o={};524289&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Nt(e,t)}}}function rs(t){let e,n,o,s,r;return n=new fe({props:{size:"16"}}),{c(){e=W("div"),Tt(n.$$.fragment)},m(i,l){A(i,e,l),_t(n,e,null),o=!0,s||(r=M(e,"click",t[15]),s=!0)},p:z,i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){yt(n.$$.fragment,t),o=!1},d(t){t&&O(e),Nt(n),s=!1,r()}}}function is(t){let e,o;return e=new n({props:{text:"Suchen",$$slots:{default:[ls]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,n){const o={};524301&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Nt(e,t)}}}function ls(t){let e,n,o,s,r;return n=new Xt({props:{size:"16"}}),{c(){e=W("div"),Tt(n.$$.fragment)},m(i,l){A(i,e,l),_t(n,e,null),o=!0,s||(r=M(e,"click",t[16]),s=!0)},p:z,i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){yt(n.$$.fragment,t),o=!1},d(t){t&&O(e),Nt(n),s=!1,r()}}}function cs(t){let e,o;return e=new n({props:{text:t[0].reportName,$$slots:{default:[as]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,n){const o={};1&n&&(o.text=t[0].reportName),524289&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Nt(e,t)}}}function as(t){let e,n,o,s,r;return n=new he({props:{size:"16"}}),{c(){e=W("div"),Tt(n.$$.fragment)},m(i,l){A(i,e,l),_t(n,e,null),o=!0,s||(r=M(e,"click",t[17]),s=!0)},p:z,i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){yt(n.$$.fragment,t),o=!1},d(t){t&&O(e),Nt(n),s=!1,r()}}}function ds(t){let e,n,o,s,r,i,l,c,a,d,u,p,m=t[12](t[0])+"";const f=[os,ns],$=[];return c=function(t){return t[11]()?0:1}(t),a=$[c]=f[c](t),{c(){e=W("div"),o=j(),s=W("div"),r=W("div"),i=L(m),l=j(),a.c(),V(e,"class",n="domain_card domain_card_"+t[1].indexOf(t[0].event.domain)+" svelte-19y1oy2"),V(r,"class","openTask svelte-19y1oy2"),V(s,"class","task_name svelte-19y1oy2")},m(n,a){A(n,e,a),A(n,o,a),A(n,s,a),I(s,r),I(r,i),I(s,l),$[c].m(s,null),d=!0,u||(p=M(r,"click",t[13]),u=!0)},p(t,o){(!d||3&o&&n!==(n="domain_card domain_card_"+t[1].indexOf(t[0].event.domain)+" svelte-19y1oy2"))&&V(e,"class",n),(!d||1&o)&&m!==(m=t[12](t[0])+"")&&H(i,m),a.p(t,o)},i(t){d||(wt(a),d=!0)},o(t){yt(a),d=!1},d(t){t&&O(e),t&&O(o),t&&O(s),$[c].d(),u=!1,p()}}}function us(t){let e,n,o;return n=new t[7]({props:{class:"lined taskCard",$$slots:{default:[ds]},$$scope:{ctx:t}}}),{c(){e=W("div"),Tt(n.$$.fragment),V(e,"class","click_div svelte-19y1oy2")},m(t,s){A(t,e,s),_t(n,e,null),o=!0},p(t,[e]){const o={};524303&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o)},i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){yt(n.$$.fragment,t),o=!1},d(t){t&&O(e),Nt(n)}}}function ps(t,n,o){let s,r;N(t,i,t=>o(3,r=t));const{loggedIn:c}=f;N(t,c,t=>o(2,s=t));const a=X();let{task:d}=n,{domains:u}=n;const p=window.location.pathname.startsWith("/reporting"),{Card:m,Divider:$,Button:g}=e;function h(t){if(p)return window.singleSpaNavigate(`/reporting/${t.event.id}`);if(t.event.matrix)window.singleSpaNavigate(`/matrix/${t.event.id}`);else{if(t.event.solitaire)return void l.getSolitaire(t.event.class).then(e=>{const n=e.length&&e[0]._id;if(!n)return window.singleSpaNavigate(`/task/${t.event.id}/${t.event.id}/task`);l.getTaskByDocId(n).then(e=>window.singleSpaNavigate(`/task/${t.event.id}/${e.task.id}/task`))});window.singleSpaNavigate(`/task/${t.event.id}/${t.id}/task`)}}function v(t){if(p)return window.singleSpaNavigate(`/reporting/${t.event.id}`);window.singleSpaNavigate(`/task/${t.event.id}/${t.event.id}/task`)}return t.$$set=t=>{"task"in t&&o(0,d=t.task),"domains"in t&&o(1,u=t.domains)},[d,u,s,r,c,a,p,m,$,h,v,()=>d.data?d.event.title:"",()=>{const t=Fn(d);return t.length<30?t:t.slice(0,30)+"..."},()=>h(d),()=>v(d),()=>v(d),()=>Fs(d,s.user,r,a),()=>Ws(d.report)]}class ms extends It{constructor(t){var e;super(),document.getElementById("svelte-19y1oy2-style")||((e=W("style")).id="svelte-19y1oy2-style",e.textContent=".task_name.svelte-19y1oy2{font-weight:bold;text-align:center;margin-inline:auto;margin-top:2em;word-wrap:break-word;width:100%}.createTask.svelte-19y1oy2{display:flex;align-items:center;justify-content:center;font-weight:500;font-size:14px}.openTask.svelte-19y1oy2{min-height:2.75em}.openTask.svelte-19y1oy2,.createTask.svelte-19y1oy2,.form--icons.svelte-19y1oy2{cursor:pointer}.click_div.svelte-19y1oy2{align-content:space-between;justify-content:center;display:inline-flex;height:fit-content;width:fit-content}.taskCard{width:10em;height:8em;margin:1em;display:flex;position:relative}.domain_card.svelte-19y1oy2{position:absolute;top:0;left:0;height:2.3em;width:13em;background-color:#e2e2e2}.domain_card_0.svelte-19y1oy2{background-color:#A9C0CE}.domain_card_1.svelte-19y1oy2{background-color:#7E7F80}.domain_card_2.svelte-19y1oy2{background-color:#55C1D9}.domain_card_3.svelte-19y1oy2{background-color:#66A649}.domain_card_4.svelte-19y1oy2{background-color:#F2CF63}.domain_card_5.svelte-19y1oy2{background-color:#BF5A50}.form--icons.svelte-19y1oy2{display:flex;gap:0.45em}",I(document.head,e)),Dt(this,t,ps,us,_,{task:0,domains:1})}}const{Map:fs}=bt;function $s(t,e,n){const o=t.slice();return o[56]=e[n],o}function gs(t){let e,n;return e=new ce({props:{size:"24"}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function hs(t){let e,n;return e=new ne({props:{size:"24"}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function vs(t){let e,n,o,s;const r=[hs,gs],i=[];function l(t,e){return t[7]?1:0}return e=l(t),n=i[e]=r[e](t),{c(){n.c(),o=B()},m(t,n){i[e].m(t,n),A(t,o,n),s=!0},p(t,s){let c=e;e=l(t),e!==c&&(ht(),yt(i[c],1,1,()=>{i[c]=null}),vt(),n=i[e],n||(n=i[e]=r[e](t),n.c()),wt(n,1),n.m(o.parentNode,o))},i(t){s||(wt(n),s=!0)},o(t){yt(n),s=!1},d(t){i[e].d(t),t&&O(o)}}}function ws(t){let e,n,o,s,r;return n=new ye({props:{size:"42",class:t[3]?"star isStarred"+t[3]:"star"}}),{c(){e=W("span"),Tt(n.$$.fragment)},m(i,l){A(i,e,l),_t(n,e,null),o=!0,s||(r=M(e,"click",t[33]),s=!0)},p(t,e){const o={};8&e[0]&&(o.class=t[3]?"star isStarred"+t[3]:"star"),n.$set(o)},i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){yt(n.$$.fragment,t),o=!1},d(t){t&&O(e),Nt(n),s=!1,r()}}}function ys(t){let e,n,o=[],s=new fs,r=t[31](t[8],t[3]);const i=t=>t[56].id;for(let e=0;e<r.length;e+=1){let n=$s(t,r,e),l=i(n);s.set(l,o[e]=xs(l,n))}return{c(){e=W("div");for(let t=0;t<o.length;t+=1)o[t].c();V(e,"class","task-list svelte-czmext")},m(t,s){A(t,e,s);for(let t=0;t<o.length;t+=1)o[t].m(e,null);n=!0},p(t,n){67109129&n[0]|1&n[1]&&(r=t[31](t[8],t[3]),ht(),o=St(o,n,i,1,t,r,s,e,Et,xs,null,$s),vt())},i(t){if(!n){for(let t=0;t<r.length;t+=1)wt(o[t]);n=!0}},o(t){for(let t=0;t<o.length;t+=1)yt(o[t]);n=!1},d(t){t&&O(e);for(let t=0;t<o.length;t+=1)o[t].d()}}}function ks(t){let e,n,o,s;function r(e){t[41](e)}let i={visibleTasks:t[8],domains:t[0],isStarred:t[3]};return void 0!==t[4]&&(i.starredTasks=t[4]),n=new es({props:i}),nt.push(()=>Ct(n,"starredTasks",r)),n.$on("viewTaskList",t[26]),n.$on("applyFilter",t[24]),{c(){e=W("div"),Tt(n.$$.fragment),V(e,"class","task-list svelte-czmext")},m(t,o){A(t,e,o),_t(n,e,null),s=!0},p(t,e){const s={};256&e[0]&&(s.visibleTasks=t[8]),1&e[0]&&(s.domains=t[0]),8&e[0]&&(s.isStarred=t[3]),!o&&16&e[0]&&(o=!0,s.starredTasks=t[4],dt(()=>o=!1)),n.$set(s)},i(t){s||(wt(n.$$.fragment,t),s=!0)},o(t){yt(n.$$.fragment,t),s=!1},d(t){t&&O(e),Nt(n)}}}function xs(t,e){let n,o,s;return o=new ms({props:{task:e[56],domains:e[0]}}),o.$on("viewTaskList",e[26]),{key:t,first:null,c(){n=B(),Tt(o.$$.fragment),this.first=n},m(t,e){A(t,n,e),_t(o,t,e),s=!0},p(t,n){e=t;const s={};264&n[0]&&(s.task=e[56]),1&n[0]&&(s.domains=e[0]),o.$set(s)},i(t){s||(wt(o.$$.fragment,t),s=!0)},o(t){yt(o.$$.fragment,t),s=!1},d(t){t&&O(n),Nt(o,t)}}}function bs(t){let e,n,o;function s(e){t[43](e)}let r={class:"tModal",noClickaway:!0,$$slots:{default:[Ns]},$$scope:{ctx:t}};return void 0!==t[10]&&(r.open=t[10]),e=new t[16]({props:r}),nt.push(()=>Ct(e,"open",s)),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,o){const s={};2048&o[0]|268435456&o[1]&&(s.$$scope={dirty:o,ctx:t}),!n&&1024&o[0]&&(n=!0,s.open=t[10],dt(()=>n=!1)),e.$set(s)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Nt(e,t)}}}function zs(t){let e;return{c(){e=L("Abbrechen")},m(t,n){A(t,e,n)},d(t){t&&O(e)}}}function Es(t){let e,n;return e=new t[15]({props:{filled:!0,$$slots:{default:[Ss]},$$scope:{ctx:t}}}),e.$on("click",function(){T(t[27](t[11].task,"task"))&&t[27](t[11].task,"task").apply(this,arguments)}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(n,o){t=n;const s={};268435456&o[1]&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function Ss(t){let e;return{c(){e=L("Neu")},m(t,n){A(t,e,n)},d(t){t&&O(e)}}}function Cs(t){let e;return{c(){e=W("div"),e.textContent="Es existieren noch keine Tasks von diesem Typ."},m(t,n){A(t,e,n)},p:z,i:z,o:z,d(t){t&&O(e)}}}function Ts(t){let e,n;return e=new $({props:{className:t[11].className,inputList:t[11].list,rowId:t[11].recID,showEdit:!0}}),e.$on("choose",t[42]),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};2048&n[0]&&(o.className=t[11].className),2048&n[0]&&(o.inputList=t[11].list),2048&n[0]&&(o.rowId=t[11].recID),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function _s(t){let e,n,o,s,r,i,l,c,a,d;e=new t[18]({}),s=new t[15]({props:{outline:!0,$$slots:{default:[zs]},$$scope:{ctx:t}}}),s.$on("click",t[25]);let u=t[11].task.event.directEdit&&!(t[11].task.event.solitaire&&t[11].list?.length)&&Es(t);const p=[Ts,Cs],m=[];function f(t,e){return t[11].list&&t[11].list.length?0:1}return l=f(t),c=m[l]=p[l](t),{c(){Tt(e.$$.fragment),n=j(),o=W("div"),Tt(s.$$.fragment),r=j(),u&&u.c(),i=j(),c.c(),a=B(),V(o,"class","form--buttons svelte-czmext")},m(t,c){_t(e,t,c),A(t,n,c),A(t,o,c),_t(s,o,null),I(o,r),u&&u.m(o,null),A(t,i,c),m[l].m(t,c),A(t,a,c),d=!0},p(t,e){const n={};268435456&e[1]&&(n.$$scope={dirty:e,ctx:t}),s.$set(n),!t[11].task.event.directEdit||t[11].task.event.solitaire&&t[11].list?.length?u&&(ht(),yt(u,1,1,()=>{u=null}),vt()):u?(u.p(t,e),2048&e[0]&&wt(u,1)):(u=Es(t),u.c(),wt(u,1),u.m(o,null));let r=l;l=f(t),l===r?m[l].p(t,e):(ht(),yt(m[r],1,1,()=>{m[r]=null}),vt(),c=m[l],c?c.p(t,e):(c=m[l]=p[l](t),c.c()),wt(c,1),c.m(a.parentNode,a))},i(t){d||(wt(e.$$.fragment,t),wt(s.$$.fragment,t),wt(u),wt(c),d=!0)},o(t){yt(e.$$.fragment,t),yt(s.$$.fragment,t),yt(u),yt(c),d=!1},d(t){Nt(e,t),t&&O(n),t&&O(o),Nt(s),u&&u.d(),t&&O(i),m[l].d(t),t&&O(a)}}}function Ns(t){let e,n;return e=new t[17]({props:{title:t[11].title,$$slots:{default:[_s]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};2048&n[0]&&(o.title=t[11].title),2048&n[0]|268435456&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function Ds(t){let e,o,s,r,i,l,c,a,d,u,p,m,f,$,g,h,v,w,y,k,x,b,z,E,S,_,N,D,F,P,B,R,U,G,Z,K,Y,Q,X,tt,et=(t[22]?"Auswertungen":t[14].listTitle||"Aufgabenliste")+"";function ot(e){t[40](e)}l=new t[15]({props:{class:"task-maximize",$$slots:{default:[vs]},$$scope:{ctx:t}}}),l.$on("click",t[29]),g=new Se({props:{size:"18"}});let st={domains:t[0],events:t[1],isReport:t[22],shownTasks:t[13],tenant:t[21]};void 0!==t[9]&&(st.applyFilter=t[9]),v=new Co({props:st}),nt.push(()=>Ct(v,"applyFilter",ot)),v.$on("filterUpdated",t[23]);let rt=!t[22]&&function(t){let e,o;return e=new n({props:{text:t[34](t[3]),postText:t[35](t[3],t[4]),$$slots:{default:[ws]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,n){_t(e,t,n),o=!0},p(t,n){const o={};8&n[0]&&(o.text=t[34](t[3])),24&n[0]&&(o.postText=t[35](t[3],t[4])),8&n[0]|268435456&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){o||(wt(e.$$.fragment,t),o=!0)},o(t){yt(e.$$.fragment,t),o=!1},d(t){Nt(e,t)}}}(t);S=new Xt({}),B=new Kt({});const it=[ks,ys],lt=[];function ct(t,e){return t[6]?0:1}U=ct(t),G=lt[U]=it[U](t);let at=t[10]&&t[11]&&bs(t);return{c(){e=W("div"),o=W("div"),s=W("h2"),r=L(et),i=j(),Tt(l.$$.fragment),c=j(),a=W("div"),d=W("div"),u=W("div"),p=W("div"),m=W("input"),f=j(),$=W("span"),Tt(g.$$.fragment),h=j(),Tt(v.$$.fragment),y=j(),k=W("div"),rt&&rt.c(),x=j(),b=W("input"),z=j(),E=W("label"),Tt(S.$$.fragment),_=j(),N=W("input"),F=j(),P=W("label"),Tt(B.$$.fragment),R=j(),G.c(),Z=j(),at&&at.c(),K=j(),Y=W("div"),V(s,"class","svelte-czmext"),V(o,"class","task-header--title svelte-czmext"),V(e,"id","TitleModuleContainer"),V(e,"class","task-header svelte-czmext"),V(m,"type","search ms-auto w-auto"),V(m,"class","task--search svelte-czmext"),V(m,"placeholder","Suche"),V($,"class","feather pointer svelte-czmext"),J(p,"position","relative"),V(u,"class","inside_card--top__left svelte-czmext"),V(b,"class","radiobutton-tools svelte-czmext"),V(b,"type","radio"),V(b,"name","tools"),V(b,"id","tool-1"),b.checked=t[6],V(E,"class","for-radiobutton-tools svelte-czmext"),V(E,"for","tool-1"),V(N,"class","radiobutton-tools svelte-czmext"),V(N,"type","radio"),V(N,"name","tools"),V(N,"id","tool-2"),N.checked=D=!t[6],V(P,"class","for-radiobutton-tools svelte-czmext"),V(P,"for","tool-2"),J(k,"display","flex"),V(d,"class","inside_card--top svelte-czmext"),V(Y,"class","footer_spacer svelte-czmext"),V(a,"class","inside_card svelte-czmext")},m(n,w){A(n,e,w),I(e,o),I(o,s),I(s,r),I(o,i),_t(l,o,null),A(n,c,w),A(n,a,w),I(a,d),I(d,u),I(u,p),I(p,m),q(m,t[5]),I(p,f),I(p,$),_t(g,$,null),I(u,h),_t(v,u,null),I(d,y),I(d,k),rt&&rt.m(k,null),I(k,x),I(k,b),I(k,z),I(k,E),_t(S,E,null),I(k,_),I(k,N),I(k,F),I(k,P),_t(B,P,null),I(a,R),lt[U].m(a,null),I(a,Z),at&&at.m(a,null),I(a,K),I(a,Y),t[44](a),Q=!0,X||(tt=[M(o,"pointerdown",function(){T(t[2])&&t[2].apply(this,arguments)}),M(m,"input",t[39]),M($,"click",t[32]),M(b,"change",t[30]),M(N,"change",t[30])],X=!0)},p(e,n){t=e,(!Q||16384&n[0])&&et!==(et=(t[22]?"Auswertungen":t[14].listTitle||"Aufgabenliste")+"")&&H(r,et);const o={};128&n[0]|268435456&n[1]&&(o.$$scope={dirty:n,ctx:t}),l.$set(o),32&n[0]&&q(m,t[5]);const s={};1&n[0]&&(s.domains=t[0]),2&n[0]&&(s.events=t[1]),8192&n[0]&&(s.shownTasks=t[13]),!w&&512&n[0]&&(w=!0,s.applyFilter=t[9],dt(()=>w=!1)),v.$set(s),t[22]||rt.p(t,n),(!Q||64&n[0])&&(b.checked=t[6]),(!Q||64&n[0]&&D!==(D=!t[6]))&&(N.checked=D);let i=U;U=ct(t),U===i?lt[U].p(t,n):(ht(),yt(lt[i],1,1,()=>{lt[i]=null}),vt(),G=lt[U],G?G.p(t,n):(G=lt[U]=it[U](t),G.c()),wt(G,1),G.m(a,Z)),t[10]&&t[11]?at?(at.p(t,n),3072&n[0]&&wt(at,1)):(at=bs(t),at.c(),wt(at,1),at.m(a,K)):at&&(ht(),yt(at,1,1,()=>{at=null}),vt())},i(t){Q||(wt(l.$$.fragment,t),wt(g.$$.fragment,t),wt(v.$$.fragment,t),wt(rt),wt(S.$$.fragment,t),wt(B.$$.fragment,t),wt(G),wt(at),Q=!0)},o(t){yt(l.$$.fragment,t),yt(g.$$.fragment,t),yt(v.$$.fragment,t),yt(rt),yt(S.$$.fragment,t),yt(B.$$.fragment,t),yt(G),yt(at),Q=!1},d(n){n&&O(e),Nt(l),n&&O(c),n&&O(a),Nt(g),Nt(v),rt&&rt.d(),Nt(S),Nt(B),lt[U].d(),at&&at.d(),t[44](null),X=!1,C(tt)}}}const Is=new Map,As=async(t,e)=>{let n=Is.get(e);if(!n){const o=await l.getSectionView(t,{_id:e});o?.length&&(n=o[0]),n&&Is.set(e,n)}return n},Os=(t,e)=>{if(!t.data)return!1;const n=t.event?.authorization;if(!n)return!1;const o=n.find(t=>t.constraint);if(!o)return!1;if(n.filter(t=>"edit"===t.activity).some(t=>e.find(e=>t.role===e&&!t.constraint)))return!1;const s=t.schema.input?.at(0),r=t.schema.inputLookup?.at(0);if(!r)return!1;if(s!==o.constraint)return!1;const{value:i}=r;return!!i&&{name:s,value:i}};async function Fs(t,e,n,o){const s=t.event.id,r=await l.getTasksList(s,!0);let i=[];for(const t of r.data){const o=Os(t,n);if(o){const{name:n,value:s}=o,r=t[n],l=await As(n,r);l&&e==l[s]&&i.push(t)}else i.push(t)}const c=r.schema,a=c.identity.designation,d=c.class,u=c.display;o("viewTaskList",{task:t,list:i,className:d,items:await g(u,c,i),title:a})}function Ws(t){l.getEvent(t).then(e=>{const n=e.output.subType||"reporting";window.open(`/${n}/${t}?view=standalone`)})}function Ps(t,n,o){let s,r,c,$,g;N(t,i,t=>o(47,c=t)),N(t,a,t=>o(14,g=t));const{Button:h,Modal:v,Dialog:w,Divider:y}=e,{loggedIn:k,currentTasks:x}=f;N(t,k,t=>o(46,r=t)),N(t,x,t=>o(48,$=t));const b=r.tenant,z=b+"-ENABLERR-VIEW",E=b+"-ENABLERR-FAV";let S,C,T,_,{allTasks:D}=n,{domains:I}=n,{events:A}=n,{movePointerDown:O}=n,F=[],W=!0,P=!1,L=[...F],j=[...s||[]],B="isListModeActive";const M=window.location.pathname.startsWith("/reporting");Q(()=>{i.subscribe(async t=>{o(37,F=await Z(t)),S()});const t=JSON.parse(window.localStorage.getItem(E));o(3,T=t?.isStarred||0),o(4,_=t?.starredTasks||[]),C=JSON.parse(window.localStorage.getItem(z)),C||(C={[B]:!0},window.localStorage.setItem(z,JSON.stringify(C))),o(6,W=!1!==C[B])});let R,V="",U=!1;function H(){o(10,U=!1),o(11,R=void 0)}function q(t,e,n=!1){const o=n?t.classNew:t.event.id,s=n?t.classNew:t.id;M?window.singleSpaNavigate(`/reporting/${o}`):window.singleSpaNavigate(`/task/${o}/${s}/${e}`),H()}const J=(t,e,n)=>{q({event:{id:t.detail.row._task.event},id:t.detail.row._task._id},n)};let G;d.subscribe(async t=>{if(t)return t.deleted||"deleted"===t.designation||"DELETE"===t.status?(o(37,F=F.filter(e=>e.id!==t.objectId)),void(S&&S())):void l.getTaskqueue("",t.objectId).then(({task:e})=>{K(e,c).then(n=>{if(!n)return;const s=F.findIndex(e=>e.id===t.objectId);if(s+1)"Closed"===e.status?o(37,F=F.filter(e=>e.id!==t.objectId)):o(37,F[s]=e,F);else{if("Information"===e.event?.stream?.task)return;if(!e.workflow?.numberOfFollowers&&"WaitingForApproval"!==e.status)return;o(37,F=[e,...F])}S&&S()})})}),u.subscribe(async t=>{if(!t)return;const e=F.findIndex(e=>e.id===t.objectId);e+1&&l.getTaskqueue("",t.objectId).then(({task:n})=>{"Waiting"===n.status||"Closed"===n.status?o(37,F=F.filter(e=>e.id!==t.objectId)):o(37,F[e]=n,F),S&&S()})}),p.subscribe(t=>{if(!t)return;const e=t.url.split("/")[3],n=F.find(t=>t.id===e);n&&(n.chat+=1,S&&S())}),m.subscribe(t=>{if(!t)return;const e=t.taskId,n=F.find(t=>t.id===e);n&&("INSERT"===t.status?n.report+=1:"DELETE"===t.status&&(n.report-=1),S&&S())});const Z=async t=>{if(!D)return{};let e={...D};if(void 0===t)return e;e=D.filter(e=>!e.event?.authorization?.length||e.event.authorization.some(e=>t?.find(t=>t===e.role)));const n=[];for(const o of e){const e=Os(o,t);if(e){const{name:t,value:s}=e,i=o.data.item[t];let l=!1;i&&(l=await As(t,i)),l&&r.user==l[s]&&n.push(o)}else n.push(o)}return function(t,e,n=e){t.set(n)}(x,$=n.map(t=>t.event.id),$),n},K=async(t,e)=>{const n=Os(t,e);if(!n)return!0;const{name:o,value:s}=n,i=t.data.item[o],l=await As(o,i);return!(!l||r.user!=l[s])};return t.$$set=t=>{"allTasks"in t&&o(36,D=t.allTasks),"domains"in t&&o(0,I=t.domains),"events"in t&&o(1,A=t.events),"movePointerDown"in t&&o(2,O=t.movePointerDown)},t.$$.update=()=>{64&t.$$.dirty[1]&&o(13,s=[...F]),24&t.$$.dirty[0]&&(()=>{const t={isStarred:T,starredTasks:_};void 0!==T&&void 0!==_&&window.localStorage.setItem(E,JSON.stringify(t))})(),32&t.$$.dirty[0]|128&t.$$.dirty[1]&&(V.length<3&&o(8,j=[...L]),V.toString().length>2&&o(8,j=[...L.filter(t=>{const e=t=>t?.toLowerCase()?.match(`${V.toString().toLowerCase()}.*`);return e(t.event.name)||e(t.event.description)||e(Fn(t))})]))},[I,A,O,T,_,V,W,P,j,S,U,R,G,s,g,h,v,w,y,k,x,b,M,function(t){o(38,L=t.detail.tasks),o(8,j=L)},function(){S()},H,function(t){t.detail&&(o(10,U=!0),o(11,R=t.detail),o(11,R.recID=void 0,R))},q,J,function(){o(7,P=!P),P?G.parentElement.parentElement.classList.add("maximizeTaskModule"):G.parentElement.parentElement.classList.remove("maximizeTaskModule")},function(){o(6,W=!W),C[B]=W,window.localStorage.setItem(z,JSON.stringify(C))},t=>{const e=t.filter(t=>!!t.data);return t=t.filter(t=>!!t.data||!e.find(e=>e.event.id===t.id)),T>0&&_?.length&&(t=t.filter(t=>_.find(e=>e==t.event.id))),t=Xo(t)},()=>{o(5,V="")},()=>{let t=T+1;t>(_?.length?2:1)&&(t=0),o(3,T=t)},t=>0==t?"Favoriten inaktiv":1==t?"Favoriten einrichten":"Favoriten aktiv",(t,e)=>0==t?"Einrichten":1==t&&e?.length?"Aktivieren":"Deaktivieren",D,F,L,function(){V=this.value,o(5,V)},function(t){S=t,o(9,S)},function(t){_=t,o(4,_)},t=>J(t,R.task,"task"),function(t){U=t,o(10,U)},function(t){nt[t?"unshift":"push"](()=>{G=t,o(12,G)})}]}class Ls extends It{constructor(t){var e;super(),document.getElementById("svelte-czmext-style")||((e=W("style")).id="svelte-czmext-style",e.textContent='.modal-overlay > .dialog{margin-top:-15em}header:has(nav.closed) + section .task-list + .modal-overlay .dialog{margin-top:10em}.modal-overlay > .dialog.eList{margin-top:-5em}.feather.svelte-czmext.svelte-czmext{position:absolute;top:1em;right:1em;color:#326173}.feather-star.isStarred1{fill:#F2CF63}.feather-star.isStarred2{fill:#A9C0CE}.feather-star.star{cursor:alias;margin-top:0.5em}.maximizeTaskModule{width:95vw !important;height:90vh !important;position:fixed !important;top:20px;z-index:2}.inside_card.svelte-czmext.svelte-czmext{margin:1.4em 1.4em 0 1.4em;display:flex;flex-flow:column;height:calc(100% - 65px - 1.4em)}.inside_card--top.svelte-czmext.svelte-czmext{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:center;row-gap:1em;margin-bottom:1em}.inside_card--top.svelte-czmext .inside_card--top__left.svelte-czmext{position:relative;display:flex;gap:1em;flex-flow:row wrap}.inside_card--top.svelte-czmext .inside_card--top__left .task--search.svelte-czmext{padding:1em;width:20em}.inside_card--top.svelte-czmext .inside_card--top__left.svelte-czmext .dropdown-filter{padding:1em}.task-header.svelte-czmext.svelte-czmext{padding:0 1.4em;display:flex;flex-flow:column;background-color:#326173;color:white;border-top-left-radius:1.5625em;border-top-right-radius:1.5625em}.task-header--title.svelte-czmext.svelte-czmext{height:65px;display:flex;flex:0 1 auto;justify-content:space-between;align-items:center;margin-right:1.5em;user-select:none;cursor:grab}.task-header--title.svelte-czmext h2.svelte-czmext{margin:0}.task-header--title.svelte-czmext .task-maximize{color:#fff;padding:0}.task-list.svelte-czmext.svelte-czmext{display:flex;flex-flow:row wrap;flex:1 1 auto;overflow-y:auto;overflow-x:auto;width:100%;border:1px solid #ccc;border-radius:0.5em}.footer_spacer.svelte-czmext.svelte-czmext{flex:0 1 4.2em}[type=radio].svelte-czmext.svelte-czmext:checked,[type=radio].svelte-czmext.svelte-czmext:not(:checked){position:absolute;left:-9999px;width:0;height:0;visibility:hidden}.radiobutton-tools.svelte-czmext:checked+label.svelte-czmext,.radiobutton-tools.svelte-czmext:not(:checked)+label.svelte-czmext{position:relative;display:inline-block;padding:15px;width:25px;height:25px;font-size:17px;font-weight:bold;line-height:20px;letter-spacing:1px;margin:0 0 0 10px;text-align:center;vertical-align:middle;border-radius:15px;overflow:hidden;cursor:pointer;text-transform:uppercase;color:#000000;-webkit-transition:all 300ms linear;transition:all 300ms linear;box-shadow:1px 1px 4px 0 rgba(0, 0, 0, 0.1)}.radiobutton-tools.svelte-czmext:not(:checked)+label.svelte-czmext{background-color:#DAE1E5;color:#000000}.radiobutton-tools.svelte-czmext:checked+label.svelte-czmext{background-color:#326173;color:#ffffff}.radiobutton-tools.svelte-czmext:not(:checked)+label.svelte-czmext:hover{box-shadow:3px 3px 4px 0px rgba(0, 0, 0, 0.2)}.radiobutton-tools.svelte-czmext:checked+label.svelte-czmext::before,.radiobutton-tools.svelte-czmext:not(:checked)+label.svelte-czmext::before{position:absolute;content:"";top:0;left:0;width:100%;height:100%;border-radius:15px;z-index:-1}.form--buttons.svelte-czmext.svelte-czmext{display:flex;gap:1em;padding-bottom:0.5em}',I(document.head,e)),Dt(this,t,Ps,Ds,_,{allTasks:36,domains:0,events:1,movePointerDown:2},[-1,-1])}}function js(t){let e,n=t[0].name+"";return{c(){e=L(n)},m(t,n){A(t,e,n)},p(t,o){1&o&&n!==(n=t[0].name+"")&&H(e,n)},d(t){t&&O(e)}}}function Bs(t){let e;return{c(){e=L("i")},m(t,n){A(t,e,n)},d(t){t&&O(e)}}}function Ms(t){let e;return{c(){e=L("activate")},m(t,n){A(t,e,n)},d(t){t&&O(e)}}}function Rs(t){let e,n,o,s,r,i,l,c;return n=new t[2]({props:{$$slots:{default:[js]},$$scope:{ctx:t}}}),s=new t[1]({props:{filled:!0,class:"info",$$slots:{default:[Bs]},$$scope:{ctx:t}}}),l=new t[1]({props:{filled:!0,$$slots:{default:[Ms]},$$scope:{ctx:t}}}),l.$on("click",t[6]),{c(){e=W("div"),Tt(n.$$.fragment),o=j(),Tt(s.$$.fragment),r=j(),i=W("div"),Tt(l.$$.fragment),V(e,"class","module-name svelte-15g6xoi"),V(i,"class","activate svelte-15g6xoi")},m(t,a){A(t,e,a),_t(n,e,null),I(e,o),_t(s,e,null),A(t,r,a),A(t,i,a),_t(l,i,null),c=!0},p(t,[e]){const o={};129&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o);const r={};128&e&&(r.$$scope={dirty:e,ctx:t}),s.$set(r);const i={};128&e&&(i.$$scope={dirty:e,ctx:t}),l.$set(i)},i(t){c||(wt(n.$$.fragment,t),wt(s.$$.fragment,t),wt(l.$$.fragment,t),c=!0)},o(t){yt(n.$$.fragment,t),yt(s.$$.fragment,t),yt(l.$$.fragment,t),c=!1},d(t){t&&O(e),Nt(n),Nt(s),t&&O(r),t&&O(i),Nt(l)}}}function Vs(t,n,o){const{Button:s,Label:r}=e;let{module:i}=n,{list:l}=n,{functionProp:c=()=>{}}=n;const a=t=>{c(t)};return t.$$set=t=>{"module"in t&&o(0,i=t.module),"list"in t&&o(4,l=t.list),"functionProp"in t&&o(5,c=t.functionProp)},[i,s,r,a,l,c,()=>{a(i)}]}class Us extends It{constructor(t){var e;super(),document.getElementById("svelte-15g6xoi-style")||((e=W("style")).id="svelte-15g6xoi-style",e.textContent=".module-name.svelte-15g6xoi{padding-left:0.5em;display:flex;align-items:center}.activate.svelte-15g6xoi{align-self:center}.module-name.svelte-15g6xoi .info{width:10px;height:10px;padding:0.9em 0.9em 0.9em 0.6em;margin-left:0.4em;float:left}",I(document.head,e)),Dt(this,t,Vs,Rs,_,{module:0,list:4,functionProp:5})}}function Hs(t,e,n){const o=t.slice();return o[10]=e[n],o}function qs(t){let e,n,o,s,r,i,l,c,a,d,u,p,m;o=new Ft({props:{size:"24",class:"ml"}}),l=new t[6]({});let f={ctx:t,current:null,token:null,hasCatch:!1,pending:Ys,then:Zs,catch:Gs,value:9,blocks:[,,,]};return kt(d=t[3],f),{c(){e=W("div"),n=W("div"),Tt(o.$$.fragment),s=j(),r=W("div"),r.innerHTML='<h4 class="svelte-4o0fgs">Module</h4> \n <input type="search" placeholder="Suche" class="svelte-4o0fgs"/>',i=j(),Tt(l.$$.fragment),c=j(),a=W("div"),f.block.c(),V(n,"class","back-button svelte-4o0fgs"),V(r,"class","header svelte-4o0fgs"),V(a,"class","content svelte-4o0fgs"),V(e,"class","table_list svelte-4o0fgs")},m(d,$){A(d,e,$),I(e,n),_t(o,n,null),I(e,s),I(e,r),I(e,i),_t(l,e,null),I(e,c),I(e,a),f.block.m(a,f.anchor=null),f.mount=()=>a,f.anchor=null,u=!0,p||(m=M(n,"click",t[7]),p=!0)},p(e,n){t=e,f.ctx=t,8&n&&d!==(d=t[3])&&kt(d,f)||xt(f,t,n)},i(t){u||(wt(o.$$.fragment,t),wt(l.$$.fragment,t),wt(f.block),u=!0)},o(t){yt(o.$$.fragment,t),yt(l.$$.fragment,t);for(let t=0;t<3;t+=1){yt(f.blocks[t])}u=!1},d(t){t&&O(e),Nt(o),Nt(l),f.block.d(),f.token=null,f=null,p=!1,m()}}}function Js(t){let e,n,o;return n=new t[5]({props:{filled:!0,$$slots:{default:[Qs]},$$scope:{ctx:t}}}),n.$on("click",t[7]),{c(){e=W("div"),Tt(n.$$.fragment),V(e,"class","add-button svelte-4o0fgs")},m(t,s){A(t,e,s),_t(n,e,null),o=!0},p(t,e){const o={};8193&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o)},i(t){o||(wt(n.$$.fragment,t),o=!0)},o(t){yt(n.$$.fragment,t),o=!1},d(t){t&&O(e),Nt(n)}}}function Gs(t){return{c:z,m:z,p:z,i:z,o:z,d:z}}function Zs(t){let e,n,o=t[9],s=[];for(let e=0;e<o.length;e+=1)s[e]=Ks(Hs(t,o,e));const r=t=>yt(s[t],1,1,()=>{s[t]=null});return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=B()},m(t,o){for(let e=0;e<s.length;e+=1)s[e].m(t,o);A(t,e,o),n=!0},p(t,n){if(10&n){let i;for(o=t[9],i=0;i<o.length;i+=1){const r=Hs(t,o,i);s[i]?(s[i].p(r,n),wt(s[i],1)):(s[i]=Ks(r),s[i].c(),wt(s[i],1),s[i].m(e.parentNode,e))}for(ht(),i=o.length;i<s.length;i+=1)r(i);vt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)wt(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)yt(s[t]);n=!1},d(t){F(s,t),t&&O(e)}}}function Ks(t){let e,n,o,s;return n=new Us({props:{module:t[10],list:t[9],functionProp:t[8]}}),{c(){e=W("div"),Tt(n.$$.fragment),o=j(),V(e,"class","module svelte-4o0fgs")},m(t,r){A(t,e,r),_t(n,e,null),I(e,o),s=!0},p(t,e){const o={};8&e&&(o.module=t[10]),8&e&&(o.list=t[9]),2&e&&(o.functionProp=t[8]),n.$set(o)},i(t){s||(wt(n.$$.fragment,t),s=!0)},o(t){yt(n.$$.fragment,t),s=!1},d(t){t&&O(e),Nt(n)}}}function Ys(t){return{c:z,m:z,p:z,i:z,o:z,d:z}}function Qs(t){let e,n=t[0].text+"";return{c(){e=L(n)},m(t,n){A(t,e,n)},p(t,o){1&o&&n!==(n=t[0].text+"")&&H(e,n)},d(t){t&&O(e)}}}function Xs(t){let e,n,o,s;const r=[Js,qs],i=[];function l(t,e){return t[2]?1:0}return e=l(t),n=i[e]=r[e](t),{c(){n.c(),o=B()},m(t,n){i[e].m(t,n),A(t,o,n),s=!0},p(t,s){let c=e;e=l(t),e===c?i[e].p(t,s):(ht(),yt(i[c],1,1,()=>{i[c]=null}),vt(),n=i[e],n?n.p(t,s):(n=i[e]=r[e](t),n.c()),wt(n,1),n.m(o.parentNode,o))},i(t){s||(wt(n),s=!0)},o(t){yt(n),s=!1},d(t){i[e].d(t),t&&O(o)}}}function tr(t){let e,n;return e=new t[4]({props:{class:"db",$$slots:{default:[Xs]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,[n]){const o={};8207&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function er(t,n,o){let s;const{Dialog:r,Button:i,Divider:c}=e;let{dataItem:a}=n,d=!1,{functionProp:u=()=>{}}=n;return t.$$set=t=>{"dataItem"in t&&o(0,a=t.dataItem),"functionProp"in t&&o(1,u=t.functionProp)},o(3,s=l.getAllModules()),[a,u,d,s,r,i,c,function(){o(2,d=!d)},t=>u(t)]}class nr extends It{constructor(t){var e;super(),document.getElementById("svelte-4o0fgs-style")||((e=W("style")).id="svelte-4o0fgs-style",e.textContent=".add-button.svelte-4o0fgs.svelte-4o0fgs{display:grid;place-items:center;height:100%}.back-button.svelte-4o0fgs.svelte-4o0fgs{width:30px;height:24px;cursor:pointer}.table_list.svelte-4o0fgs.svelte-4o0fgs{height:100%;padding:1em}.table_list.svelte-4o0fgs .header.svelte-4o0fgs{display:grid;grid-template-columns:0.5fr 1fr;margin:0.5em;gap:1em}.table_list.svelte-4o0fgs .header h4.svelte-4o0fgs{align-self:center;margin:0}.table_list.svelte-4o0fgs .header input.svelte-4o0fgs{padding:0.2em}.table_list.svelte-4o0fgs .content.svelte-4o0fgs{overflow-y:auto;height:calc(100% - 115px)}.table_list.svelte-4o0fgs .content .module.svelte-4o0fgs{display:flex;justify-content:space-between;border-bottom:1px solid #ccc;padding:0.8em 0.5em 0.8em 0}",I(document.head,e)),Dt(this,t,er,tr,_,{dataItem:0,functionProp:1})}}function or(t){let e,n;let o=function(t){return t[7]?ir:rr}(t),s=o(t);return{c(){e=W("m-box"),n=W("h3"),s.c()},m(t,o){A(t,e,o),I(e,n),s.m(n,null)},p:z,i:z,o:z,d(t){t&&O(e),s.d()}}}function sr(t){let e,n,o,s;const r=[dr,ar,cr,lr],i=[];function l(t,e){return 1111===t[0].id?0:3333===t[0].id?1:4444===t[0].id?2:3}return e=l(t),n=i[e]=r[e](t),{c(){n.c(),o=B()},m(t,n){i[e].m(t,n),A(t,o,n),s=!0},p(t,s){let c=e;e=l(t),e===c?i[e].p(t,s):(ht(),yt(i[c],1,1,()=>{i[c]=null}),vt(),n=i[e],n?n.p(t,s):(n=i[e]=r[e](t),n.c()),wt(n,1),n.m(o.parentNode,o))},i(t){s||(wt(n),s=!0)},o(t){yt(n),s=!1},d(t){i[e].d(t),t&&O(o)}}}function rr(t){let e;return{c(){e=L("Keine Tasks vorhanden!")},m(t,n){A(t,e,n)},d(t){t&&O(e)}}}function ir(t){let e;return{c(){e=L("Keine Auswertungen vorhanden!")},m(t,n){A(t,e,n)},d(t){t&&O(e)}}}function lr(t){let e,n;return e=new nr({props:{dataItem:t[0],functionProp:t[8]}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.dataItem=t[0]),32&n&&(o.functionProp=t[8]),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function cr(t){let e,n;return e=new t[6]({props:{class:"db",$$slots:{default:[ur]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};512&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function ar(t){let e,n;return e=new t[6]({props:{class:"db",$$slots:{default:[pr]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};514&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function dr(t){let e,n;return e=new t[6]({props:{class:"db",$$slots:{default:[mr]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};542&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function ur(t){let e,n;return e=new h({}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function pr(t){let e,n;return e=new v({props:{movePointerDown:t[1]}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};2&n&&(o.movePointerDown=t[1]),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function mr(t){let e,n;return e=new Ls({props:{allTasks:t[2].task,movePointerDown:t[1],domains:t[3],events:t[4]}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};4&n&&(o.allTasks=t[2].task),2&n&&(o.movePointerDown=t[1]),8&n&&(o.domains=t[3]),16&n&&(o.events=t[4]),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function fr(t){let e,n,o,s;const r=[sr,or],i=[];function l(t,e){return t[2]?.task?.length>0?0:1111===t[0].id?1:-1}return~(e=l(t))&&(n=i[e]=r[e](t)),{c(){n&&n.c(),o=B()},m(t,n){~e&&i[e].m(t,n),A(t,o,n),s=!0},p(t,[s]){let c=e;e=l(t),e===c?~e&&i[e].p(t,s):(n&&(ht(),yt(i[c],1,1,()=>{i[c]=null}),vt()),~e?(n=i[e],n?n.p(t,s):(n=i[e]=r[e](t),n.c()),wt(n,1),n.m(o.parentNode,o)):n=null)},i(t){s||(wt(n),s=!0)},o(t){yt(n),s=!1},d(t){~e&&i[e].d(t),t&&O(o)}}}function $r(t,n,o){const{Dialog:s}=e;let{dataItem:r}=n,{movePointerDown:i}=n,{allTasks:l}=n,{domains:c}=n,{events:a}=n,{functionProp:d=()=>{}}=n;const u=window.location.pathname.startsWith("/reporting");return t.$$set=t=>{"dataItem"in t&&o(0,r=t.dataItem),"movePointerDown"in t&&o(1,i=t.movePointerDown),"allTasks"in t&&o(2,l=t.allTasks),"domains"in t&&o(3,c=t.domains),"events"in t&&o(4,a=t.events),"functionProp"in t&&o(5,d=t.functionProp)},[r,i,l,c,a,d,s,u,t=>d(t)]}class gr extends It{constructor(t){super(),Dt(this,t,$r,fr,_,{dataItem:0,movePointerDown:1,allTasks:2,domains:3,events:4,functionProp:5})}}function hr(t){let e,n,s,r;function i(e){t[16](e)}let l={fillSpace:!1,rowHeight:150,cols:t[8],$$slots:{default:[xr,({dataItem:t,movePointerDown:e})=>({22:t,23:e}),({dataItem:t,movePointerDown:e})=>(t?4194304:0)|(e?8388608:0)]},$$scope:{ctx:t}};return void 0!==t[0]&&(l.items=t[0]),n=new o({props:l}),nt.push(()=>Ct(n,"items",i)),n.$on("resize",t[11]),n.$on("pointerup",function(){T(t[12](t[0]))&&t[12](t[0]).apply(this,arguments)}),{c(){e=W("section"),Tt(n.$$.fragment),V(e,"id","main"),V(e,"class","svelte-1srl82f")},m(t,o){A(t,e,o),_t(n,e,null),r=!0},p(e,o){t=e;const r={};29360158&o&&(r.$$scope={dirty:o,ctx:t}),!s&&1&o&&(s=!0,r.items=t[0],dt(()=>s=!1)),n.$set(r)},i(t){r||(wt(n.$$.fragment,t),r=!0)},o(t){yt(n.$$.fragment,t),r=!1},d(t){t&&O(e),Nt(n)}}}function vr(t){let e,n;return e=new t[7]({props:{class:"btn--close",$$slots:{default:[wr]},$$scope:{ctx:t}}}),e.$on("click",function(){return t[13](t[22])}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(n,o){t=n;const s={};16777216&o&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function wr(t){let e,n;return e=new Se({}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function yr(t){let e,n;return e=new gr({props:{allTasks:t[2],dataItem:t[22],settings:t[1],movePointerDown:t[23],functionProp:t[15]}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};4&n&&(o.allTasks=t[2]),4194304&n&&(o.dataItem=t[22]),2&n&&(o.settings=t[1]),8388608&n&&(o.movePointerDown=t[23]),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function kr(t){let e,n;return e=new gr({props:{allTasks:t[2],domains:t[3],events:t[4],dataItem:t[22],settings:t[1],movePointerDown:t[23],functionProp:t[14]}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){const o={};4&n&&(o.allTasks=t[2]),8&n&&(o.domains=t[3]),16&n&&(o.events=t[4]),4194304&n&&(o.dataItem=t[22]),2&n&&(o.settings=t[1]),8388608&n&&(o.movePointerDown=t[23]),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function xr(t){let e,n,o,s,r,i=9999!==t[22].id&&vr(t);const l=[kr,yr],c=[];function a(t,e){return 1111===t[22].id?0:1}return n=a(t),o=c[n]=l[n](t),{c(){i&&i.c(),e=j(),o.c(),s=B()},m(t,o){i&&i.m(t,o),A(t,e,o),c[n].m(t,o),A(t,s,o),r=!0},p(t,r){9999!==t[22].id?i?(i.p(t,r),4194304&r&&wt(i,1)):(i=vr(t),i.c(),wt(i,1),i.m(e.parentNode,e)):i&&(ht(),yt(i,1,1,()=>{i=null}),vt());let d=n;n=a(t),n===d?c[n].p(t,r):(ht(),yt(c[d],1,1,()=>{c[d]=null}),vt(),o=c[n],o?o.p(t,r):(o=c[n]=l[n](t),o.c()),wt(o,1),o.m(s.parentNode,s))},i(t){r||(wt(i),wt(o),r=!0)},o(t){yt(i),yt(o),r=!1},d(t){i&&i.d(t),t&&O(e),c[n].d(t),t&&O(s)}}}function br(t){let e,n,o=!t[5]&&hr(t);return{c(){o&&o.c(),e=B()},m(t,s){o&&o.m(t,s),A(t,e,s),n=!0},p(t,[n]){t[5]?o&&(ht(),yt(o,1,1,()=>{o=null}),vt()):o?(o.p(t,n),32&n&&wt(o,1)):(o=hr(t),o.c(),wt(o,1),o.m(e.parentNode,e))},i(t){n||(wt(o),n=!0)},o(t){yt(o),n=!1},d(t){o&&o.d(t),t&&O(e)}}}function zr(t,n,o){let r;const{loggedIn:i}=f;N(t,i,t=>o(17,r=t));const{Dialog:l,Button:c}=e;let{module:a=[]}=n,{settings:d=[]}=n,{allTasks:u=[]}=n,{domains:p=[]}=n,{events:m=[]}=n,{isStandalone:$=!1}=n;const g=r.tenant+"-ENABLERR-MODULES",h=JSON.parse(localStorage.getItem(g));h&&(a=h);const v=[...a],w=t=>{o(0,a=a.filter(e=>e.id!==t.id)),o(0,a=s.adjust(a,6)),o(0,a=s.normalize(a,6))};async function y(t){if(null!=a.find(e=>e.id==t.id))return;let e=s.findSpace(t,a,6),n={...t,6:{...t[6],...e},5:{...t[5],...e},4:{...t[4],...e},3:{...t[3],...e},2:{...t[2],...e},1:{...t[1],...e}};a.push(n),o(0,a=s.adjust(a,6)),o(0,a=s.normalize(a,6))}return t.$$set=t=>{"module"in t&&o(0,a=t.module),"settings"in t&&o(1,d=t.settings),"allTasks"in t&&o(2,u=t.allTasks),"domains"in t&&o(3,p=t.domains),"events"in t&&o(4,m=t.events),"isStandalone"in t&&o(5,$=t.isStandalone)},[a,d,u,p,m,$,i,c,[[9e3,6],[2e3,5],[1500,4],[1200,3],[1008,1]],w,y,({detail:t})=>{window.innerWidth<1065?o(0,a=[a[0]]):a.length<2&&o(0,a=v)},t=>()=>{localStorage.setItem(g,JSON.stringify(t))},t=>w(t),t=>y(t),t=>y(t),function(t){a=t,o(0,a)}]}class Er extends It{constructor(t){var e;super(),document.getElementById("svelte-1srl82f-style")||((e=W("style")).id="svelte-1srl82f-style",e.textContent="section#main.svelte-1srl82f{position:relative;width:100%;right:1em;padding-top:0.25em;padding-bottom:0.25em}section#main.svelte-1srl82f .btn--close{position:absolute;height:1.25em;top:1.45em;right:1em;z-index:1;color:white;padding:0 !important}.feather.moveIcon{margin-right:0.25em}.dialog.db{width:auto !important;height:100%;overflow-y:visible;padding:0 !important}:root{--task-header-color:rgba(217, 178, 103, 0.55)}.svlt-grid-item{transition:none !important;min-height:70vh}",I(document.head,e)),Dt(this,t,zr,br,_,{module:0,settings:1,allTasks:2,domains:3,events:4,isStandalone:5})}}const Sr=[{day:"Sonntag",status:!1,value:"Su"},{day:"Montag",status:!1,value:"Mo"},{day:"Dienstag",status:!1,value:"Tu"},{day:"Mittwoch",status:!1,value:"We"},{day:"Donnerstag",status:!1,value:"Th"},{day:"Freitag",status:!1,value:"Fr"},{day:"Samstag",status:!1,value:"Sa"}];var Cr=(t=new Date)=>Sr[t.getDay()];function Tr(t){t[15]=t[19].domains,t[16]=t[19].events,t[17]=t[19].module,t[18]=t[19].moduleList}function _r(t){return{c:z,m:z,p:z,i:z,o:z,d:z}}function Nr(t){let e,n;return Tr(t),e=new Er({props:{module:t[17],allTasks:t[0],domains:t[15],events:t[16],settings:t[18],isStandalone:t[2]}}),{c(){Tt(e.$$.fragment)},m(t,o){_t(e,t,o),n=!0},p(t,n){Tr(t);const o={};1&n&&(o.allTasks=t[0]),e.$set(o)},i(t){n||(wt(e.$$.fragment,t),n=!0)},o(t){yt(e.$$.fragment,t),n=!1},d(t){Nt(e,t)}}}function Dr(t){return{c:z,m:z,p:z,i:z,o:z,d:z}}function Ir(t){let e,n,o,s,i,l,c;document.title=e="enablerr - "+(t[3]?"Auswertungen":"Aufgabenliste");let a={ctx:t,current:null,token:null,hasCatch:!1,pending:Dr,then:Nr,catch:_r,value:19,blocks:[,,,]};return kt(t[4](),a),l=new r({}),{c(){n=j(),o=W("section"),s=W("l-container"),a.block.c(),i=j(),Tt(l.$$.fragment),U(s,"class","shadow"),U(s,"maxwidth","ld"),V(o,"class","svelte-i05i0l")},m(t,e){A(t,n,e),A(t,o,e),I(o,s),a.block.m(s,a.anchor=null),a.mount=()=>s,a.anchor=null,A(t,i,e),_t(l,t,e),c=!0},p(n,[o]){t=n,(!c||8&o)&&e!==(e="enablerr - "+(t[3]?"Auswertungen":"Aufgabenliste"))&&(document.title=e),xt(a,t,o)},i(t){c||(wt(a.block),wt(l.$$.fragment,t),c=!0)},o(t){for(let t=0;t<3;t+=1){yt(a.blocks[t])}yt(l.$$.fragment,t),c=!1},d(t){t&&O(n),t&&O(o),a.block.d(),a.token=null,a=null,t&&O(i),Nt(l,t)}}}function Ar(t,e,n){let o,s;N(t,a,t=>n(7,s=t));const{getModules:r,getDefaultLayout:c}=l,{loggedIn:d,mainView:u}=f;let p,m;N(t,d,t=>n(6,o=t));const $=-1!==window.location.search.indexOf("view=standalone"),g=window.location.pathname.startsWith("/reporting")||window.location.pathname.startsWith("/screen");return[p,d,$,g,async function(){if(u.set(g?"Auswertungen":"Aufgabenliste"),$||localStorage.setItem(o.tenant+"-ENABLERR-MAINVIEW",g?"REPORTING":"TASKS"),m=await l.getUserSettings(o.tenant),!m?.setting){const t=Math.floor(1e3+9e3*Math.random()).toString();m=await l.saveDefaultSettings(o.user,t)}if(a.set(m),m.role&&i.set(m.role),$)return{};const t=function(t){const e=[...t.task];return t.task=e.filter(t=>t.data?"Information"!==t.event.stream.task&&("WaitingForApproval"===t.status||!!t.workflow?.numberOfFollowers):!s.role?.length||(!t.event?.authorization?.length||t.event.authorization.some(t=>s.role?.find(e=>e===t.role)))),t}(g?await l.getReporting():await l.getTaskqueue(o.tenant)),e=t.task.map(t=>t.event.domain);let d=[...new Set(e)];d=d.sort((t,e)=>{let n=t.toLowerCase(),o=e.toLowerCase();return n<o?-1:n>o?1:0});let f=[...new Set(t.task.map(t=>t.event.designation+"|"+t.event.domain))];const{module:h,moduleList:v}=await async function(){const t=function(t){const e=c();if(!t?.setting?.dashboardLayout?.length)return e[0];const n=t.setting.dashboardLayout.filter(t=>t.activated&&t.days.includes(Cr().value));return null==n||0==n.length?e[0]:n[0]}(s);let e=[];t&&(e=[].concat.apply([],t.moduleList?.map(t=>Number(t.moduleId))));return{module:r(e),moduleList:t}}();return n(0,p=t),{domains:d,events:f,module:h,moduleList:v}}]}function Or(t){let e,n,o;return{c(){e=P("svg"),n=P("circle"),o=P("path"),V(n,"cx","10"),V(n,"cy","10"),V(n,"r","9.5"),V(n,"fill","#FF8686"),V(n,"stroke","#383F51"),V(o,"d","M11.3281 3.91406L11.0542 12.3062H9.06201L8.77979 3.91406H11.3281ZM8.71338 14.9043C8.71338 14.5501 8.83512 14.2568 9.07861 14.0244C9.32764 13.7865 9.65413 13.6675 10.0581 13.6675C10.4676 13.6675 10.7941 13.7865 11.0376 14.0244C11.2811 14.2568 11.4028 14.5501 11.4028 14.9043C11.4028 15.2474 11.2811 15.5379 11.0376 15.7759C10.7941 16.0138 10.4676 16.1328 10.0581 16.1328C9.65413 16.1328 9.32764 16.0138 9.07861 15.7759C8.83512 15.5379 8.71338 15.2474 8.71338 14.9043Z"),V(o,"fill","#383F51"),V(e,"class",t[0]),J(e,"margin-left",t[1]),V(e,"width","20"),V(e,"height","20"),V(e,"viewBox","0 0 20 20"),V(e,"fill","none"),V(e,"xmlns","http://www.w3.org/2000/svg")},m(t,s){A(t,e,s),I(e,n),I(e,o)},p(t,[n]){1&n&&V(e,"class",t[0]),2&n&&J(e,"margin-left",t[1])},i:z,o:z,d(t){t&&O(e)}}}function Fr(t,e,n){let{css:o}=e,{margin:s}=e;return t.$$set=t=>{"css"in t&&n(0,o=t.css),"margin"in t&&n(1,s=t.margin)},[o,s]}function Wr(t){let e,n,o;return{c(){e=P("svg"),n=P("circle"),o=P("path"),V(n,"cx","10"),V(n,"cy","10"),V(n,"r","9.5"),V(n,"fill","#FFFFFF"),V(n,"stroke","#383F51"),V(o,"d","M11.3281 3.91406L11.0542 12.3062H9.06201L8.77979 3.91406H11.3281ZM8.71338 14.9043C8.71338 14.5501 8.83512 14.2568 9.07861 14.0244C9.32764 13.7865 9.65413 13.6675 10.0581 13.6675C10.4676 13.6675 10.7941 13.7865 11.0376 14.0244C11.2811 14.2568 11.4028 14.5501 11.4028 14.9043C11.4028 15.2474 11.2811 15.5379 11.0376 15.7759C10.7941 16.0138 10.4676 16.1328 10.0581 16.1328C9.65413 16.1328 9.32764 16.0138 9.07861 15.7759C8.83512 15.5379 8.71338 15.2474 8.71338 14.9043Z"),V(o,"fill","#383F51"),V(e,"class",t[0]),J(e,"margin-left",t[1]),V(e,"width","20"),V(e,"height","20"),V(e,"viewBox","0 0 20 20"),V(e,"fill","none"),V(e,"xmlns","http://www.w3.org/2000/svg")},m(t,s){A(t,e,s),I(e,n),I(e,o)},p(t,[n]){1&n&&V(e,"class",t[0]),2&n&&J(e,"margin-left",t[1])},i:z,o:z,d(t){t&&O(e)}}}function Pr(t,e,n){let{css:o}=e,{margin:s}=e;return t.$$set=t=>{"css"in t&&n(0,o=t.css),"margin"in t&&n(1,s=t.margin)},[o,s]}function Lr(t){let e,n,o,s,r,i,l,c,a,d,u,p,m;return{c(){e=P("svg"),n=P("circle"),o=P("path"),s=P("ellipse"),r=P("ellipse"),i=P("ellipse"),l=P("ellipse"),c=P("ellipse"),a=P("ellipse"),d=P("ellipse"),u=P("ellipse"),p=P("ellipse"),m=P("ellipse"),V(n,"cx","41"),V(n,"cy","41"),V(n,"r","41"),V(n,"fill","#53C6D6"),V(o,"d","M59.3297 56.7273C62.706 62.5455 52.7918 64 41.6031 64C30.4144 64 20.5001 63.0303 22.1884 56.7273C22.1884 51.3939 27.8822 48 39.0709 48C50.2596 48 59.3297 51.3718 59.3297 56.7273Z"),V(o,"fill","#4F4F4F"),V(s,"cx","41"),V(s,"cy","50.5"),V(s,"rx","30"),V(s,"ry","9.5"),V(s,"fill","#828282"),V(r,"cx","31"),V(r,"cy","21.5"),V(r,"rx","5"),V(r,"ry","5.5"),V(r,"fill","#4F4F4F"),V(i,"cx","51"),V(i,"cy","21.5"),V(i,"rx","5"),V(i,"ry","5.5"),V(i,"fill","#4F4F4F"),V(l,"cx","40.5"),V(l,"cy","35"),V(l,"rx","19"),V(l,"ry","12.5"),V(l,"transform","rotate(-90 40.5 35)"),V(l,"fill","#828282"),V(c,"cx","30.5"),V(c,"cy","48.0002"),V(c,"rx","2.5"),V(c,"ry","3"),V(c,"transform","rotate(-27.8822 30.5 48.0002)"),V(c,"fill","#C4C4C4"),V(a,"cx","49.6651"),V(a,"cy","47.8481"),V(a,"rx","2.5"),V(a,"ry","3"),V(a,"transform","rotate(30 49.6651 47.8481)"),V(a,"fill","#C4C4C4"),V(d,"cx","36"),V(d,"cy","34.5"),V(d,"rx","2"),V(d,"ry","5.5"),V(d,"fill","#F2F2F2"),V(u,"cx","36"),V(u,"cy","37"),V(u,"rx","2"),V(u,"ry","3"),V(u,"fill","#4F4F4F"),V(p,"cx","44"),V(p,"cy","34.5"),V(p,"rx","2"),V(p,"ry","5.5"),V(p,"fill","#F2F2F2"),V(m,"cx","44"),V(m,"cy","37"),V(m,"rx","2"),V(m,"ry","3"),V(m,"fill","#4F4F4F"),V(e,"class",t[0]),J(e,"float",t[1]),V(e,"width","1.5em"),V(e,"height","1.5em"),V(e,"viewBox","0 0 82 82"),V(e,"fill","none"),V(e,"xmlns","http://www.w3.org/2000/svg")},m(t,f){A(t,e,f),I(e,n),I(e,o),I(e,s),I(e,r),I(e,i),I(e,l),I(e,c),I(e,a),I(e,d),I(e,u),I(e,p),I(e,m)},p(t,[n]){1&n&&V(e,"class",t[0]),2&n&&J(e,"float",t[1])},i:z,o:z,d(t){t&&O(e)}}}function jr(t,e,n){let{css:o}=e,{direction:s}=e;return t.$$set=t=>{"css"in t&&n(0,o=t.css),"direction"in t&&n(1,s=t.direction)},[o,s]}var Br={IconImportant:class extends It{constructor(t){super(),Dt(this,t,Fr,Or,_,{css:0,margin:1})}},IconImportantDefault:class extends It{constructor(t){super(),Dt(this,t,Pr,Wr,_,{css:0,margin:1})}},IconAssistant:class extends It{constructor(t){super(),Dt(this,t,jr,Lr,_,{css:0,direction:1})}}};const Mr=b({component:class extends It{constructor(t){var e;super(),document.getElementById("svelte-i05i0l-style")||((e=W("style")).id="svelte-i05i0l-style",e.textContent="section.svelte-i05i0l{margin-left:1.5em}",I(document.head,e)),Dt(this,t,Ar,Ir,_,{})}},domElementGetter:()=>document.getElementById("view-app")}),{bootstrap:Rr,mount:Vr,unmount:Ur}=Mr;t({bootstrap:Rr,mount:Vr,unmount:Ur});t("Icon",Br)}}});
|