@enablerr-ui/dashboard 0.2.136 → 0.2.138
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/detail","@enablerr-ui/auth","@enablerr-ui/collab"],(function(t){"use strict";var e,n,o,s,r,i,l,c,a,d,u,f,p,m,$;return{setters:[function(t){e=t.getAttractions,n=t.getGrid,o=t.getGridHelp},function(t){s=t.Request,r=t.Storage,i=t.settings,l=t.task_notification,c=t.approval_notification,a=t.communication_notification,d=t.attachment_notification,u=t.currentRoles},function(t){f=t.List},function(t){p=t.user},function(t){m=t.SupportModule,$=t.ChatModule}],execute:function(){t("version","0.2.136");function g(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var h,v,k=(h=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)}))}},h(v={exports:{}},v.exports),v.exports),y=g(k);function w(){}function b(t){return t()}function x(){return Object.create(null)}function E(t){t.forEach(b)}function C(t){return"function"==typeof t}function D(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function T(t,e,n){t.$$.on_destroy.push(function(t,...e){if(null==t)return w;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}(e,n))}function z(t){return null==t?"":t}function _(t,e){t.appendChild(e)}function I(t,e,n){t.insertBefore(e,n||null)}function S(t){t.parentNode.removeChild(t)}function N(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function O(t){return document.createElement(t)}function F(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function A(t){return document.createTextNode(t)}function P(){return A(" ")}function j(){return A("")}function W(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function M(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function L(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function B(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:L(t,e,n)}function U(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function H(t,e){t.value=null==e?"":e}function R(t,e,n,o){t.style.setProperty(e,n,o?"important":"")}function V(t,e,n){t.classList[n?"add":"remove"](e)}let q;function J(t){q=t}function G(){if(!q)throw new Error("Function called outside component initialization");return q}function Z(t){G().$$.on_mount.push(t)}function Y(){const t=G();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)}))}}}const K=[],Q=[],X=[],tt=[],et=Promise.resolve();let nt=!1;function ot(){nt||(nt=!0,et.then(at))}function st(){return ot(),et}function rt(t){X.push(t)}function it(t){tt.push(t)}let lt=!1;const ct=new Set;function at(){if(!lt){lt=!0;do{for(let t=0;t<K.length;t+=1){const e=K[t];J(e),dt(e.$$)}for(J(null),K.length=0;Q.length;)Q.pop()();for(let t=0;t<X.length;t+=1){const e=X[t];ct.has(e)||(ct.add(e),e())}X.length=0}while(K.length);for(;tt.length;)tt.pop()();nt=!1,lt=!1,ct.clear()}}function dt(t){if(null!==t.fragment){t.update(),E(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(rt)}}const ut=new Set;let ft;function pt(){ft={r:0,c:[],p:ft}}function mt(){ft.r||E(ft.c),ft=ft.p}function $t(t,e){t&&t.i&&(ut.delete(t),t.i(e))}function gt(t,e,n,o){if(t&&t.o){if(ut.has(t))return;ut.add(t),ft&&ft.c.push((()=>{ut.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}}function ht(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&&(pt(),gt(t,1,1,(()=>{e.blocks[n]===t&&(e.blocks[n]=null)})),mt())})):e.block.d(1),l.c(),$t(l,1),l.m(e.mount(),e.anchor),c=!0),e.block=l,e.blocks&&(e.blocks[o]=l),c&&at()}if((s=t)&&"object"==typeof s&&"function"==typeof s.then){const n=G();if(t.then((t=>{J(n),o(e.then,1,e.value,t),J(null)}),(t=>{if(J(n),o(e.catch,2,e.error,t),J(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 vt(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 kt="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function yt(t,e){t.d(1),e.delete(t.key)}function wt(t,e){gt(t,1,1,(()=>{e.delete(t.key)}))}function bt(t,e,n,o,s,r,i,l,c,a,d,u){let f=t.length,p=r.length,m=f;const $={};for(;m--;)$[t[m].key]=m;const g=[],h=new Map,v=new Map;for(m=p;m--;){const t=u(s,r,m),l=n(t);let c=i.get(l);c?o&&c.p(t,e):(c=a(l,t),c.c()),h.set(l,g[m]=c),l in $&&v.set(l,Math.abs(m-$[l]))}const k=new Set,y=new Set;function w(t){$t(t,1),t.m(l,d),i.set(t.key,t),d=t.first,p--}for(;f&&p;){const e=g[p-1],n=t[f-1],o=e.key,s=n.key;e===n?(d=e.first,f--,p--):h.has(s)?!i.has(o)||k.has(o)?w(e):y.has(s)?f--:v.get(o)>v.get(s)?(y.add(o),w(e)):(k.add(s),f--):(c(n,i),f--)}for(;f--;){const e=t[f];h.has(e.key)||c(e,i)}for(;p;)w(g[p-1]);return g}function xt(t,e,n){const o=t.$$.props[e];void 0!==o&&(t.$$.bound[o]=n,n(t.$$.ctx[o]))}function Et(t){t&&t.c()}function Ct(t,e,n,o){const{fragment:s,on_mount:r,on_destroy:i,after_update:l}=t.$$;s&&s.m(e,n),o||rt((()=>{const e=r.map(b).filter(C);i?i.push(...e):E(e),t.$$.on_mount=[]})),l.forEach(rt)}function Dt(t,e){const n=t.$$;null!==n.fragment&&(E(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Tt(t,e,n,o,s,r,i=[-1]){const l=q;J(t);const c=t.$$={fragment:null,ctx:null,props:r,update:w,not_equal:s,bound:x(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:x(),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]&&(K.push(t),ot(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],c.update(),a=!0,E(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(S)}else c.fragment&&c.fragment.c();e.intro&&$t(t.$$.fragment),Ct(t,e.target,e.anchor,e.customElement),at()}J(l)}class zt{$destroy(){Dt(this,1),this.$destroy=w}$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 _t(t){let e,n,o,s;return{c(){e=F("svg"),n=F("line"),o=F("polyline"),L(n,"x1","19"),L(n,"y1","12"),L(n,"x2","5"),L(n,"y2","12"),L(o,"points","12 19 5 12 12 5"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",s="feather feather-arrow-left "+t[2])},m(t,s){I(t,e,s),_(e,n),_(e,o)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&s!==(s="feather feather-arrow-left "+t[2])&&L(e,"class",s)},i:w,o:w,d(t){t&&S(e)}}}function It(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 St extends zt{constructor(t){super(),Tt(this,t,It,_t,D,{size:0,strokeWidth:1,class:2})}}function Nt(t){let e,n,o,s;return{c(){e=F("svg"),n=F("polyline"),o=F("path"),L(n,"points","9 11 12 14 22 4"),L(o,"d","M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",s="feather feather-check-square "+t[2])},m(t,s){I(t,e,s),_(e,n),_(e,o)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&s!==(s="feather feather-check-square "+t[2])&&L(e,"class",s)},i:w,o:w,d(t){t&&S(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 zt{constructor(t){super(),Tt(this,t,Ot,Nt,D,{size:0,strokeWidth:1,class:2})}}function At(t){let e,n,o;return{c(){e=F("svg"),n=F("polyline"),L(n,"points","6 9 12 15 18 9"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",o="feather feather-chevron-down "+t[2])},m(t,o){I(t,e,o),_(e,n)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-chevron-down "+t[2])&&L(e,"class",o)},i:w,o:w,d(t){t&&S(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 jt extends zt{constructor(t){super(),Tt(this,t,Pt,At,D,{size:0,strokeWidth:1,class:2})}}function Wt(t){let e,n,o,s,r;return{c(){e=F("svg"),n=F("path"),o=F("polyline"),s=F("line"),L(n,"d","M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"),L(o,"points","7 10 12 15 17 10"),L(s,"x1","12"),L(s,"y1","15"),L(s,"x2","12"),L(s,"y2","3"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",r="feather feather-download "+t[2])},m(t,r){I(t,e,r),_(e,n),_(e,o),_(e,s)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&r!==(r="feather feather-download "+t[2])&&L(e,"class",r)},i:w,o:w,d(t){t&&S(e)}}}function Mt(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 zt{constructor(t){super(),Tt(this,t,Mt,Wt,D,{size:0,strokeWidth:1,class:2})}}function Bt(t){let e,n,o,s;return{c(){e=F("svg"),n=F("path"),o=F("path"),L(n,"d","M12 20h9"),L(o,"d","M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",s="feather feather-edit-3 "+t[2])},m(t,s){I(t,e,s),_(e,n),_(e,o)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&s!==(s="feather feather-edit-3 "+t[2])&&L(e,"class",s)},i:w,o:w,d(t){t&&S(e)}}}function Ut(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 Ht extends zt{constructor(t){super(),Tt(this,t,Ut,Bt,D,{size:0,strokeWidth:1,class:2})}}function Rt(t){let e,n,o,s,r,i;return{c(){e=F("svg"),n=F("rect"),o=F("rect"),s=F("rect"),r=F("rect"),L(n,"x","3"),L(n,"y","3"),L(n,"width","7"),L(n,"height","7"),L(o,"x","14"),L(o,"y","3"),L(o,"width","7"),L(o,"height","7"),L(s,"x","14"),L(s,"y","14"),L(s,"width","7"),L(s,"height","7"),L(r,"x","3"),L(r,"y","14"),L(r,"width","7"),L(r,"height","7"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",i="feather feather-grid "+t[2])},m(t,i){I(t,e,i),_(e,n),_(e,o),_(e,s),_(e,r)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&i!==(i="feather feather-grid "+t[2])&&L(e,"class",i)},i:w,o:w,d(t){t&&S(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 qt extends zt{constructor(t){super(),Tt(this,t,Vt,Rt,D,{size:0,strokeWidth:1,class:2})}}function Jt(t){let e,n,o,s,r,i,l,c;return{c(){e=F("svg"),n=F("line"),o=F("line"),s=F("line"),r=F("line"),i=F("line"),l=F("line"),L(n,"x1","8"),L(n,"y1","6"),L(n,"x2","21"),L(n,"y2","6"),L(o,"x1","8"),L(o,"y1","12"),L(o,"x2","21"),L(o,"y2","12"),L(s,"x1","8"),L(s,"y1","18"),L(s,"x2","21"),L(s,"y2","18"),L(r,"x1","3"),L(r,"y1","6"),L(r,"x2","3.01"),L(r,"y2","6"),L(i,"x1","3"),L(i,"y1","12"),L(i,"x2","3.01"),L(i,"y2","12"),L(l,"x1","3"),L(l,"y1","18"),L(l,"x2","3.01"),L(l,"y2","18"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",c="feather feather-list "+t[2])},m(t,c){I(t,e,c),_(e,n),_(e,o),_(e,s),_(e,r),_(e,i),_(e,l)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&c!==(c="feather feather-list "+t[2])&&L(e,"class",c)},i:w,o:w,d(t){t&&S(e)}}}function Gt(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 Zt extends zt{constructor(t){super(),Tt(this,t,Gt,Jt,D,{size:0,strokeWidth:1,class:2})}}function Yt(t){let e,n,o;return{c(){e=F("svg"),n=F("path"),L(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"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",o="feather feather-maximize "+t[2])},m(t,o){I(t,e,o),_(e,n)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-maximize "+t[2])&&L(e,"class",o)},i:w,o:w,d(t){t&&S(e)}}}function Kt(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 Qt extends zt{constructor(t){super(),Tt(this,t,Kt,Yt,D,{size:0,strokeWidth:1,class:2})}}function Xt(t){let e,n,o;return{c(){e=F("svg"),n=F("path"),L(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"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",o="feather feather-message-circle "+t[2])},m(t,o){I(t,e,o),_(e,n)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-message-circle "+t[2])&&L(e,"class",o)},i:w,o:w,d(t){t&&S(e)}}}function te(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 ee extends zt{constructor(t){super(),Tt(this,t,te,Xt,D,{size:0,strokeWidth:1,class:2})}}function ne(t){let e,n,o;return{c(){e=F("svg"),n=F("path"),L(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"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",o="feather feather-minimize "+t[2])},m(t,o){I(t,e,o),_(e,n)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-minimize "+t[2])&&L(e,"class",o)},i:w,o:w,d(t){t&&S(e)}}}function oe(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 zt{constructor(t){super(),Tt(this,t,oe,ne,D,{size:0,strokeWidth:1,class:2})}}function re(t){let e,n,o,s;return{c(){e=F("svg"),n=F("line"),o=F("line"),L(n,"x1","12"),L(n,"y1","5"),L(n,"x2","12"),L(n,"y2","19"),L(o,"x1","5"),L(o,"y1","12"),L(o,"x2","19"),L(o,"y2","12"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",s="feather feather-plus "+t[2])},m(t,s){I(t,e,s),_(e,n),_(e,o)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&s!==(s="feather feather-plus "+t[2])&&L(e,"class",s)},i:w,o:w,d(t){t&&S(e)}}}function ie(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 le extends zt{constructor(t){super(),Tt(this,t,ie,re,D,{size:0,strokeWidth:1,class:2})}}function ce(t){let e,n,o;return{c(){e=F("svg"),n=F("path"),L(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"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",o="feather feather-triangle "+t[2])},m(t,o){I(t,e,o),_(e,n)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-triangle "+t[2])&&L(e,"class",o)},i:w,o:w,d(t){t&&S(e)}}}function ae(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 de extends zt{constructor(t){super(),Tt(this,t,ae,ce,D,{size:0,strokeWidth:1,class:2})}}function ue(t){let e,n,o,s;return{c(){e=F("svg"),n=F("line"),o=F("line"),L(n,"x1","18"),L(n,"y1","6"),L(n,"x2","6"),L(n,"y2","18"),L(o,"x1","6"),L(o,"y1","6"),L(o,"x2","18"),L(o,"y2","18"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",s="feather feather-x "+t[2])},m(t,s){I(t,e,s),_(e,n),_(e,o)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&s!==(s="feather feather-x "+t[2])&&L(e,"class",s)},i:w,o:w,d(t){t&&S(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 zt{constructor(t){super(),Tt(this,t,fe,ue,D,{size:0,strokeWidth:1,class:2})}}const me=(t,e)=>{const n={...e};return(t.display?.reduce(((e,o)=>{let[s,r]=o.split(".");if(t.list?.find((({name:t})=>t===s))&&r&&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"string"!=typeof(e=n["_"+t]||n[t])||e.length<20||!(o=e.split(" · "))?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?e[t.name]?"(ja)":"(nein)":e[t.name]))).map((t=>t?.toString().split(" · ").filter((t=>!!t)).join(" · "))).filter((t=>!!t)).join(" • ")};function $e(t){let e,n,o,s;return{c(){e=F("svg"),n=F("circle"),o=F("circle"),s=F("path"),L(n,"cx","165"),L(n,"cy","30"),L(n,"r","24"),L(n,"stroke","currentColor"),L(n,"stroke-width","12"),L(o,"cx","30"),L(o,"cy","30"),L(o,"r","24"),L(o,"stroke","currentColor"),L(o,"stroke-width","12"),L(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"),L(s,"fill","currentColor"),L(e,"width","20"),L(e,"height","20"),L(e,"viewBox","0 0 195 60"),L(e,"fill","none"),L(e,"xmlns","http://www.w3.org/2000/svg")},m(t,r){I(t,e,r),_(e,n),_(e,o),_(e,s)},p:w,i:w,o:w,d(t){t&&S(e)}}}class ge extends zt{constructor(t){super(),Tt(this,t,null,$e,D,{})}}function he(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&&Et(e.$$.fragment),n=j()},m(t,s){e&&Ct(e,t,s),I(t,n,s),o=!0},p(t,o){const i={};if(32&o&&(i.size=t[5]),s!==(s=t[3])){if(e){pt();const t=e;gt(t.$$.fragment,1,0,(()=>{Dt(t,1)})),mt()}s?(e=new s(r(t)),Et(e.$$.fragment),$t(e.$$.fragment,1),Ct(e,n.parentNode,n)):e=null}else s&&e.$set(i)},i(t){o||(e&&$t(e.$$.fragment,t),o=!0)},o(t){e&>(e.$$.fragment,t),o=!1},d(t){t&&S(n),e&&Dt(e,t)}}}function ve(t){let e,n;return e=new t[6]({props:{class:"btnChip",small:!0,noPadding:!0,$$slots:{default:[ke]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};272&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function ke(t){let e;return{c(){e=A(t[4])},m(t,n){I(t,e,n)},p(t,n){16&n&&U(e,t[4])},d(t){t&&S(e)}}}function ye(t){let e,n,o,s,r,i=t[3]&&he(t),l=t[4]&&ve(t);return{c(){e=O("button"),i&&i.c(),n=P(),l&&l.c(),L(e,"title",t[0]),L(e,"class","action-btns svelte-6prhua"),V(e,"btn-workflow",t[1]),V(e,"btn-highlight",t[2])},m(c,a){I(c,e,a),i&&i.m(e,null),_(e,n),l&&l.m(e,null),o=!0,s||(r=W(e,"click",M(t[7])),s=!0)},p(t,[s]){t[3]?i?(i.p(t,s),8&s&&$t(i,1)):(i=he(t),i.c(),$t(i,1),i.m(e,n)):i&&(pt(),gt(i,1,1,(()=>{i=null})),mt()),t[4]?l?(l.p(t,s),16&s&&$t(l,1)):(l=ve(t),l.c(),$t(l,1),l.m(e,null)):l&&(pt(),gt(l,1,1,(()=>{l=null})),mt()),(!o||1&s)&&L(e,"title",t[0]),2&s&&V(e,"btn-workflow",t[1]),4&s&&V(e,"btn-highlight",t[2])},i(t){o||($t(i),$t(l),o=!0)},o(t){gt(i),gt(l),o=!1},d(t){t&&S(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;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)},[r,i,l,c,a,d,s,function(e){!function(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t(e)))}(t,e)}]}class be extends zt{constructor(t){var e;super(),document.getElementById("svelte-6prhua-style")||((e=O("style")).id="svelte-6prhua-style",e.textContent=".action-btns.svelte-6prhua{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-6prhua .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-6prhua:hover,.action-btns.svelte-6prhua:focus{background:rgba(50, 97, 115, 0.05)}.btn-workflow.svelte-6prhua{background-color:#dfaff9}.btn-workflow.svelte-6prhua:hover{background-color:hsl(279, 100%, 83%)}.btn-highlight.svelte-6prhua{background-color:#afeeee}.btn-highlight.svelte-6prhua:hover{background-color:hsl(180, 100%, 80%)}",_(document.head,e)),Tt(this,t,we,ye,D,{title:0,btnWorkflow:1,btnHighlight:2,iconComponent:3,chipContent:4,size:5})}}function xe(t){let e,n;return{c(){e=O("h5"),n=O("span"),n.textContent=`${t[2]()}`,L(n,"class","task_title task_cursor svelte-6o3k9o"),L(e,"class","task_cursor svelte-6o3k9o"),R(e,"margin","0"),R(e,"margin-top","-1em")},m(t,o){I(t,e,o),_(e,n)},p:w,d(t){t&&S(e)}}}function Ee(t){let e;return{c(){e=A(t[3])},m(t,n){I(t,e,n)},p(t,n){8&n&&U(e,t[3])},d(t){t&&S(e)}}}function Ce(t){let e,n=t[0].priority+"";return{c(){e=A(n)},m(t,n){I(t,e,n)},p(t,o){1&o&&n!==(n=t[0].priority+"")&&U(e,n)},d(t){t&&S(e)}}}function De(t){let e,n,o,s,r,i,l,c,a,d,u,f,p,m,$,g,h,v,k=t[0].event.approval&&ze(t);r=new be({props:{title:t[4].title,btnWorkflow:1===t[4].numberOfFollowers,btnHighlight:t[4].numberOfFollowers>1,iconComponent:ge,chipContent:t[4].numberOfFollowers}}),r.$on("click",t[17]),c=new be({props:{title:"Unterhaltung",btnHighlight:t[0].chat,iconComponent:ee,chipContent:t[0].chat}}),c.$on("click",t[18]),u=new be({props:{title:"Dokumente",btnHighlight:t[0].report,iconComponent:Lt,chipContent:t[0].report}}),u.$on("click",t[19]);let y=t[0].event.directEdit&&_e(t);g=new be({props:{title:"Liste der Tasks",size:"12",iconComponent:Zt}}),g.$on("click",t[21]);let w=t[0].event.directEdit&&!t[0].event.noTemplate&&Ie(t);return{c(){e=O("table"),n=O("tr"),k&&k.c(),o=P(),s=O("td"),Et(r.$$.fragment),i=P(),l=O("td"),Et(c.$$.fragment),a=P(),d=O("td"),Et(u.$$.fragment),f=P(),p=O("tr"),y&&y.c(),m=P(),$=O("td"),Et(g.$$.fragment),h=P(),w&&w.c(),L(s,"class","svelte-6o3k9o"),L(l,"class","svelte-6o3k9o"),L(d,"class","svelte-6o3k9o"),L($,"class","svelte-6o3k9o"),L(e,"class","buttonTable svelte-6o3k9o")},m(t,b){I(t,e,b),_(e,n),k&&k.m(n,null),_(n,o),_(n,s),Ct(r,s,null),_(n,i),_(n,l),Ct(c,l,null),_(n,a),_(n,d),Ct(u,d,null),_(e,f),_(e,p),y&&y.m(p,null),_(p,m),_(p,$),Ct(g,$,null),_(p,h),w&&w.m(p,null),v=!0},p(t,e){t[0].event.approval?k?(k.p(t,e),1&e&&$t(k,1)):(k=ze(t),k.c(),$t(k,1),k.m(n,o)):k&&(pt(),gt(k,1,1,(()=>{k=null})),mt());const s={};1&e&&(s.btnHighlight=t[0].chat),1&e&&(s.chipContent=t[0].chat),c.$set(s);const r={};1&e&&(r.btnHighlight=t[0].report),1&e&&(r.chipContent=t[0].report),u.$set(r),t[0].event.directEdit?y?(y.p(t,e),1&e&&$t(y,1)):(y=_e(t),y.c(),$t(y,1),y.m(p,m)):y&&(pt(),gt(y,1,1,(()=>{y=null})),mt()),t[0].event.directEdit&&!t[0].event.noTemplate?w?(w.p(t,e),1&e&&$t(w,1)):(w=Ie(t),w.c(),$t(w,1),w.m(p,null)):w&&(pt(),gt(w,1,1,(()=>{w=null})),mt())},i(t){v||($t(k),$t(r.$$.fragment,t),$t(c.$$.fragment,t),$t(u.$$.fragment,t),$t(y),$t(g.$$.fragment,t),$t(w),v=!0)},o(t){gt(k),gt(r.$$.fragment,t),gt(c.$$.fragment,t),gt(u.$$.fragment,t),gt(y),gt(g.$$.fragment,t),gt(w),v=!1},d(t){t&&S(e),k&&k.d(),Dt(r),Dt(c),Dt(u),y&&y.d(),Dt(g),w&&w.d()}}}function Te(t){let e,n,o,s,r,i=t[0].event.directEdit&&Se(t);n=new be({props:{title:"Liste der Tasks",iconComponent:Zt}}),n.$on("click",t[14]);let l=t[0].event.directEdit&&!t[0].event.noTemplate&&Ne(t);return{c(){i&&i.c(),e=P(),Et(n.$$.fragment),o=P(),l&&l.c(),s=j()},m(t,c){i&&i.m(t,c),I(t,e,c),Ct(n,t,c),I(t,o,c),l&&l.m(t,c),I(t,s,c),r=!0},p(t,n){t[0].event.directEdit?i?(i.p(t,n),1&n&&$t(i,1)):(i=Se(t),i.c(),$t(i,1),i.m(e.parentNode,e)):i&&(pt(),gt(i,1,1,(()=>{i=null})),mt()),t[0].event.directEdit&&!t[0].event.noTemplate?l?(l.p(t,n),1&n&&$t(l,1)):(l=Ne(t),l.c(),$t(l,1),l.m(s.parentNode,s)):l&&(pt(),gt(l,1,1,(()=>{l=null})),mt())},i(t){r||($t(i),$t(n.$$.fragment,t),$t(l),r=!0)},o(t){gt(i),gt(n.$$.fragment,t),gt(l),r=!1},d(t){i&&i.d(t),t&&S(e),Dt(n,t),t&&S(o),l&&l.d(t),t&&S(s)}}}function ze(t){let e,n,o;return n=new be({props:{title:"Visum",btnHighlight:!t[0].approval,iconComponent:Ft}}),n.$on("click",t[16]),{c(){e=O("td"),Et(n.$$.fragment),L(e,"class","svelte-6o3k9o")},m(t,s){I(t,e,s),Ct(n,e,null),o=!0},p(t,e){const o={};1&e&&(o.btnHighlight=!t[0].approval),n.$set(o)},i(t){o||($t(n.$$.fragment,t),o=!0)},o(t){gt(n.$$.fragment,t),o=!1},d(t){t&&S(e),Dt(n)}}}function _e(t){let e,n,o;return n=new be({props:{title:"Neuer Task",size:"12",iconComponent:le}}),n.$on("click",t[20]),{c(){e=O("td"),Et(n.$$.fragment),L(e,"class","svelte-6o3k9o")},m(t,s){I(t,e,s),Ct(n,e,null),o=!0},p:w,i(t){o||($t(n.$$.fragment,t),o=!0)},o(t){gt(n.$$.fragment,t),o=!1},d(t){t&&S(e),Dt(n)}}}function Ie(t){let e,n,o;return n=new be({props:{title:"Vorgaben",size:"12",iconComponent:Ht}}),n.$on("click",t[22]),{c(){e=O("td"),Et(n.$$.fragment),L(e,"class","svelte-6o3k9o")},m(t,s){I(t,e,s),Ct(n,e,null),o=!0},p:w,i(t){o||($t(n.$$.fragment,t),o=!0)},o(t){gt(n.$$.fragment,t),o=!1},d(t){t&&S(e),Dt(n)}}}function Se(t){let e,n;return e=new be({props:{title:"Neuer Task",iconComponent:le}}),e.$on("click",t[13]),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p:w,i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Ne(t){let e,n;return e=new be({props:{title:"Vorgaben",iconComponent:Ht}}),e.$on("click",t[15]),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p:w,i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Oe(t){let e,n,o,s,r,i,l,c,a,d,u,f,p,m,$,g,h,v,k,y,w,b,x,C,D,T,N,F=Fe(t[0])+"",j=t[0].event.domain+"",B=t[0].dueDate&&new Date(t[0].dueDate).getFullYear()<3e3,H=!!t[0].data&&xe(t),R=B&&Ee(t),V=t[0].priority<4&&Ce(t);const q=[Te,De],J=[];function G(t,e){return null!==t[0].data||t[0].event.solitaire?t[0].data?1:-1:0}return~(b=G(t))&&(x=J[b]=q[b](t)),{c(){e=O("tr"),n=O("td"),s=P(),r=O("td"),i=O("h4"),l=A(F),c=P(),H&&H.c(),a=P(),d=O("td"),u=A(j),f=P(),p=O("td"),m=O("div"),R&&R.c(),$=P(),g=O("div"),h=P(),v=O("td"),V&&V.c(),k=P(),y=O("td"),w=O("div"),x&&x.c(),L(n,"class",o="domain domain_"+t[1].indexOf(t[0].event.domain)+" svelte-6o3k9o"),L(i,"class","task_cursor svelte-6o3k9o"),L(r,"class","task_cursor svelte-6o3k9o"),L(d,"class","task_cursor svelte-6o3k9o"),L(m,"class","task_cursor display-full svelte-6o3k9o"),L(p,"class","svelte-6o3k9o"),L(v,"class","task_cursor txt-center svelte-6o3k9o"),L(w,"class","action-column--container display-full svelte-6o3k9o"),L(y,"class","action-column svelte-6o3k9o"),L(e,"class",C=z(null===t[0].data?"empty lined":"lined")+" svelte-6o3k9o")},m(o,x){I(o,e,x),_(e,n),_(e,s),_(e,r),_(r,i),_(i,l),_(r,c),H&&H.m(r,null),_(e,a),_(e,d),_(d,u),_(e,f),_(e,p),_(p,m),R&&R.m(m,null),_(m,$),_(m,g),_(e,h),_(e,v),V&&V.m(v,null),_(e,k),_(e,y),_(y,w),~b&&J[b].m(w,null),D=!0,T||(N=[W(r,"click",M(t[9])),W(d,"click",M(t[10])),W(p,"click",M(t[11])),W(v,"click",M(t[12]))],T=!0)},p(t,[s]){(!D||3&s&&o!==(o="domain domain_"+t[1].indexOf(t[0].event.domain)+" svelte-6o3k9o"))&&L(n,"class",o),(!D||1&s)&&F!==(F=Fe(t[0])+"")&&U(l,F),t[0].data?H?H.p(t,s):(H=xe(t),H.c(),H.m(r,null)):H&&(H.d(1),H=null),(!D||1&s)&&j!==(j=t[0].event.domain+"")&&U(u,j),1&s&&(B=t[0].dueDate&&new Date(t[0].dueDate).getFullYear()<3e3),B?R?R.p(t,s):(R=Ee(t),R.c(),R.m(m,$)):R&&(R.d(1),R=null),t[0].priority<4?V?V.p(t,s):(V=Ce(t),V.c(),V.m(v,null)):V&&(V.d(1),V=null);let i=b;b=G(t),b===i?~b&&J[b].p(t,s):(x&&(pt(),gt(J[i],1,1,(()=>{J[i]=null})),mt()),~b?(x=J[b],x?x.p(t,s):(x=J[b]=q[b](t),x.c()),$t(x,1),x.m(w,null)):x=null),(!D||1&s&&C!==(C=z(null===t[0].data?"empty lined":"lined")+" svelte-6o3k9o"))&&L(e,"class",C)},i(t){D||($t(x),D=!0)},o(t){gt(x),D=!1},d(t){t&&S(e),H&&H.d(),R&&R.d(),V&&V.d(),~b&&J[b].d(),T=!1,E(N)}}}const Fe=t=>t.data?.item?me(t.schema,t.data.item):t.event?.title;function Ae(t){window.singleSpaNavigate(`/template/${t}`)}function Pe(t,e,n){let o;const i=Y();let{task:l}=e,{domains:c}=e;const a={title:1===l.workflow?.numberOfFollowers?l.workflow.designation:"Nachfolge Tasks",numberOfFollowers:l.workflow?l.workflow.numberOfFollowers:0};function d(t){t.event.solitaire?s.getSolitaire(t.event.class).then((e=>{const n=e.length&&e[0]._id;if(!n)return u(t,"task");s.getTaskByDocId(n).then((t=>u(t.task,"task")))})):t.data||t.event.directEdit?u(t,"task"):p(t.event.id)}function u(t,e,n=!1){i("rowClicked",{task:t,tab:e,event:n})}function f(t){u(t,1===a.numberOfFollowers?`task/${t.workflow.id}`:"workflow")}async function p(t){const e=await s.getTasksList(t);let n=e.data;const o=e.schema,r=o.identity.designation,c=o.class;let a=[],d=o.display;d&&d.length?d.map((t=>{const[e,s]=t.split(".");let r=o.list?.find((t=>t.name===e))?.item.find((t=>t.name===s));r&&(r={...r},r.name=`${e}_${s}`,n=n.map((t=>(t[e]&&(t[r.name]=t[e][s]),t)))),r||(r=o.items.find((t=>t.name===e))),a.find((t=>t?.name===e))||a.push(r)})):a=o.items,i("viewTaskList",{task:l,list:n,className:c,items:a,title:r})}const m={weekday:"short",year:"numeric",month:"short",day:"numeric"};return t.$$set=t=>{"task"in t&&n(0,l=t.task),"domains"in t&&n(1,c=t.domains)},t.$$.update=()=>{1&t.$$.dirty&&n(3,o=function(t){const e=new Date(t),n=JSON.parse(r.getItem("Locale"));return e.toLocaleDateString(n.id,m)}(l?.dueDate))},[l,c,()=>l.data?l.event.title:"",o,a,d,u,f,p,()=>d(l),()=>d(l),()=>d(l),()=>d(l),()=>u(l,"task"),()=>p(l.event.id),()=>Ae(l.event.id),()=>u(l,"visum"),()=>f(l),()=>u(l,"collab"),()=>u(l,"report"),()=>u(l,"task",!0),()=>p(l.event.id),()=>Ae(l.event.id)]}class je extends zt{constructor(t){var e;super(),document.getElementById("svelte-6o3k9o-style")||((e=O("style")).id="svelte-6o3k9o-style",e.textContent=".buttonTable.svelte-6o3k9o td.svelte-6o3k9o{padding:0.25em;border-bottom:0;text-align:center}td.svelte-6o3k9o.svelte-6o3k9o{padding:0 0.5em 0 1em;border-bottom:1px solid #ccc;vertical-align:middle}.lined.svelte-6o3k9o.svelte-6o3k9o:nth-child(2n){background-color:#eee}.lined.svelte-6o3k9o.svelte-6o3k9o:nth-child(2n+1){background-color:#f7f7f7}.lined.svelte-6o3k9o.svelte-6o3k9o:hover{background-color:#ddd}.empty.svelte-6o3k9o.svelte-6o3k9o{background-color:#f7f7f7;font-style:italic}.task_cursor.svelte-6o3k9o.svelte-6o3k9o{cursor:zoom-in}.task_title.svelte-6o3k9o.svelte-6o3k9o{display:inline-block;cursor:default;margin:0;margin-top:-1.5em;margin-bottom:0.5em;opacity:0.75;font-size:15px;font-style:italic}.display-full.svelte-6o3k9o.svelte-6o3k9o{width:max-content}.action-column.svelte-6o3k9o .action-column--container.svelte-6o3k9o{display:flex;flex-flow:row wrap;gap:0.4em}.domain.svelte-6o3k9o.svelte-6o3k9o{width:1em;padding:0 !important;background-color:#e2e2e2}.domain_0.svelte-6o3k9o.svelte-6o3k9o{background-color:#A9C0CE}.domain_1.svelte-6o3k9o.svelte-6o3k9o{background-color:#7E7F80}.domain_2.svelte-6o3k9o.svelte-6o3k9o{background-color:#55C1D9}.domain_3.svelte-6o3k9o.svelte-6o3k9o{background-color:#66A649}.domain_4.svelte-6o3k9o.svelte-6o3k9o{background-color:#F2CF63}.domain_5.svelte-6o3k9o.svelte-6o3k9o{background-color:#BF5A50}.txt-center.svelte-6o3k9o.svelte-6o3k9o{text-align:center}",_(document.head,e)),Tt(this,t,Pe,Oe,D,{task:0,domains:1,getTitle:2})}get getTitle(){return this.$$.ctx[2]}}const{document:We}=kt;function Me(t,e,n){const o=t.slice();return o[49]=e[n],o}function Le(t,e,n){const o=t.slice();return o[52]=e[n],o}function Be(t,e,n){const o=t.slice();return o[55]=e[n],o}function Ue(t){let e,n;return e=new t[10]({props:{$$slots:{default:[qe,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(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||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function He(t){let e,n,o,s,r,i,l;return n=new pe({props:{size:"24",class:"ml"}}),s=new jt({props:{size:"24",class:"ml dropdown-chevron"}}),{c(){e=O("div"),Et(n.$$.fragment),o=A("\n Domain\n "),Et(s.$$.fragment),L(e,"class","filter_button--icon")},m(c,a){I(c,e,a),Ct(n,e,null),I(c,o,a),Ct(s,c,a),r=!0,i||(l=W(e,"click",t[24]),i=!0)},p:w,i(t){r||($t(n.$$.fragment,t),$t(s.$$.fragment,t),r=!0)},o(t){gt(n.$$.fragment,t),gt(s.$$.fragment,t),r=!1},d(t){t&&S(e),Dt(n),t&&S(o),Dt(s,t),i=!1,l()}}}function Re(t){let e,n,o,s,r,i,l,c,a,d,u,f=t[55]+"";return{c(){e=O("input"),s=P(),r=O("label"),i=A(f),l=P(),L(e,"class",n="checkbox-tools domain-border--"+t[0].indexOf(t[55])+" svelte-2yy2vd"),L(e,"type","checkbox"),L(e,"name",t[13].DOMAIN),L(e,"id",o=t[55]),L(r,"class",c="for-checkbox-tools domain-border domain-border--"+t[0].indexOf(t[55])+" svelte-2yy2vd"),L(r,"for",a=t[55])},m(n,o){I(n,e,o),I(n,s,o),I(n,r,o),_(r,i),_(r,l),d||(u=W(e,"change",t[16]),d=!0)},p(t,s){1&s[0]&&n!==(n="checkbox-tools domain-border--"+t[0].indexOf(t[55])+" svelte-2yy2vd")&&L(e,"class",n),1&s[0]&&o!==(o=t[55])&&L(e,"id",o),1&s[0]&&f!==(f=t[55]+"")&&U(i,f),1&s[0]&&c!==(c="for-checkbox-tools domain-border domain-border--"+t[0].indexOf(t[55])+" svelte-2yy2vd")&&L(r,"class",c),1&s[0]&&a!==(a=t[55])&&L(r,"for",a)},d(t){t&&S(e),t&&S(s),t&&S(r),d=!1,u()}}}function Ve(t){let e,n=t[0],o=[];for(let e=0;e<n.length;e+=1)o[e]=Re(Be(t,n,e));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=j()},m(t,n){for(let e=0;e<o.length;e+=1)o[e].m(t,n);I(t,e,n)},p(t,s){if(73729&s[0]){let r;for(n=t[0],r=0;r<n.length;r+=1){const i=Be(t,n,r);o[r]?o[r].p(i,s):(o[r]=Re(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){N(o,t),t&&S(e)}}}function qe(t){let e,n,o,s;return e=new t[9]({props:{class:"add_filter_button",id:"filterbutton-"+t[13].DOMAIN,$$slots:{default:[He]},$$scope:{ctx:t}}}),e.$on("click",(function(){C(t[48])&&t[48].apply(this,arguments)})),o=new t[11]({props:{class:"dropdown-filter",verticalAlignment:"bottom",$$slots:{default:[Ve]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment),n=P(),Et(o.$$.fragment)},m(t,r){Ct(e,t,r),I(t,n,r),Ct(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||($t(e.$$.fragment,t),$t(o.$$.fragment,t),s=!0)},o(t){gt(e.$$.fragment,t),gt(o.$$.fragment,t),s=!1},d(t){Dt(e,t),t&&S(n),Dt(o,t)}}}function Je(t){let e,n;return e=new t[10]({props:{$$slots:{default:[Ke,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};129&n[0]|134348800&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Ge(t){let e,n,o,s,r,i,l;return n=new pe({props:{size:"24",class:"ml"}}),s=new jt({props:{size:"24",class:"ml dropdown-chevron"}}),{c(){e=O("div"),Et(n.$$.fragment),o=A("\n Ereignis\n "),Et(s.$$.fragment),L(e,"class","filter_button--icon")},m(c,a){I(c,e,a),Ct(n,e,null),I(c,o,a),Ct(s,c,a),r=!0,i||(l=W(e,"click",t[25]),i=!0)},p:w,i(t){r||($t(n.$$.fragment,t),$t(s.$$.fragment,t),r=!0)},o(t){gt(n.$$.fragment,t),gt(s.$$.fragment,t),r=!1},d(t){t&&S(e),Dt(n),t&&S(o),Dt(s,t),i=!1,l()}}}function Ze(t,e){let n,o,s,r,i,l,c,a,d,u,f,p=e[52].split("|")[0]+"";return{key:t,first:null,c(){n=O("input"),r=P(),i=O("label"),l=A(p),c=P(),L(n,"class",o="checkbox-tools domain-border--"+e[19](e[0],e[52])+" svelte-2yy2vd"),L(n,"type","checkbox"),L(n,"name",e[13].EVENT),L(n,"id",s=e[52].split("|")[0]),L(i,"class",a="for-checkbox-tools domain-border domain-border--"+e[19](e[0],e[52])+" svelte-2yy2vd"),L(i,"for",d=e[52].split("|")[0]),this.first=n},m(t,o){I(t,n,o),I(t,r,o),I(t,i,o),_(i,l),_(i,c),u||(f=W(n,"change",e[15]),u=!0)},p(t,r){e=t,129&r[0]&&o!==(o="checkbox-tools domain-border--"+e[19](e[0],e[52])+" svelte-2yy2vd")&&L(n,"class",o),128&r[0]&&s!==(s=e[52].split("|")[0])&&L(n,"id",s),128&r[0]&&p!==(p=e[52].split("|")[0]+"")&&U(l,p),129&r[0]&&a!==(a="for-checkbox-tools domain-border domain-border--"+e[19](e[0],e[52])+" svelte-2yy2vd")&&L(i,"class",a),128&r[0]&&d!==(d=e[52].split("|")[0])&&L(i,"for",d)},d(t){t&&S(n),t&&S(r),t&&S(i),u=!1,f()}}}function Ye(t){let e,n=[],o=new Map,s=t[7];const r=t=>t[52];for(let e=0;e<s.length;e+=1){let i=Le(t,s,e),l=r(i);o.set(l,n[e]=Ze(l,i))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=j()},m(t,o){for(let e=0;e<n.length;e+=1)n[e].m(t,o);I(t,e,o)},p(t,i){565377&i[0]&&(s=t[7],n=bt(n,i,r,1,t,s,o,e.parentNode,yt,Ze,e,Le))},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&S(e)}}}function Ke(t){let e,n,o,s;return e=new t[9]({props:{class:"add_filter_button",id:"filterbutton-"+t[13].EVENT,$$slots:{default:[Ge]},$$scope:{ctx:t}}}),e.$on("click",(function(){C(t[48])&&t[48].apply(this,arguments)})),o=new t[11]({props:{class:"dropdown-filter",verticalAlignment:"bottom",$$slots:{default:[Ye]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment),n=P(),Et(o.$$.fragment)},m(t,r){Ct(e,t,r),I(t,n,r),Ct(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={};129&s[0]|134217728&s[1]&&(i.$$scope={dirty:s,ctx:t}),o.$set(i)},i(t){s||($t(e.$$.fragment,t),$t(o.$$.fragment,t),s=!0)},o(t){gt(e.$$.fragment,t),gt(o.$$.fragment,t),s=!1},d(t){Dt(e,t),t&&S(n),Dt(o,t)}}}function Qe(t){let e,n;return e=new t[10]({props:{$$slots:{default:[sn,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(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||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Xe(t){let e,n,o,s,r,i,l;return n=new pe({props:{size:"24",class:"ml"}}),s=new jt({props:{size:"24",class:"ml dropdown-chevron"}}),{c(){e=O("div"),Et(n.$$.fragment),o=A("\n Status\n "),Et(s.$$.fragment),L(e,"class","filter_button--icon")},m(c,a){I(c,e,a),Ct(n,e,null),I(c,o,a),Ct(s,c,a),r=!0,i||(l=W(e,"click",t[26]),i=!0)},p:w,i(t){r||($t(n.$$.fragment,t),$t(s.$$.fragment,t),r=!0)},o(t){gt(n.$$.fragment,t),gt(s.$$.fragment,t),r=!1},d(t){t&&S(e),Dt(n),t&&S(o),Dt(s,t),i=!1,l()}}}function tn(t){let e,n,o,s,r;return{c(){e=O("input"),n=P(),o=O("label"),o.textContent="Vorlage ",L(e,"class","checkbox-tools svelte-2yy2vd"),L(e,"type","checkbox"),L(e,"name",t[13].STATUS),L(e,"id","vorlage"),L(o,"class","for-checkbox-tools svelte-2yy2vd"),L(o,"for","vorlage")},m(i,l){I(i,e,l),I(i,n,l),I(i,o,l),s||(r=W(e,"change",t[15]),s=!0)},p:w,d(t){t&&S(e),t&&S(n),t&&S(o),s=!1,r()}}}function en(t){let e,n,o,s,r,i,l,c=t[49]+"";return{c(){e=O("input"),n=P(),o=O("label"),s=A(c),r=P(),L(e,"class","checkbox-tools svelte-2yy2vd"),L(e,"type","checkbox"),L(e,"name",t[13].STATUS),L(e,"id",t[49]),L(o,"class","for-checkbox-tools svelte-2yy2vd"),L(o,"for",t[49])},m(c,a){I(c,e,a),I(c,n,a),I(c,o,a),_(o,s),_(o,r),i||(l=W(e,"change",t[15]),i=!0)},p:w,d(t){t&&S(e),t&&S(n),t&&S(o),i=!1,l()}}}function nn(t){let e;let n=function(t,e){return t[49]?en:tn}(t),o=n(t);return{c(){o.c(),e=j()},m(t,n){o.m(t,n),I(t,e,n)},p(t,e){o.p(t,e)},d(t){o.d(t),t&&S(e)}}}function on(t){let e,n=t[14].size>0&&function(t){let e,n=[...t[14]],o=[];for(let e=0;e<n.length;e+=1)o[e]=nn(Me(t,n,e));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=j()},m(t,n){for(let e=0;e<o.length;e+=1)o[e].m(t,n);I(t,e,n)},p(t,s){if(57344&s[0]){let r;for(n=[...t[14]],r=0;r<n.length;r+=1){const i=Me(t,n,r);o[r]?o[r].p(i,s):(o[r]=nn(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){N(o,t),t&&S(e)}}}(t);return{c(){n&&n.c(),e=j()},m(t,o){n&&n.m(t,o),I(t,e,o)},p(t,e){t[14].size>0&&n.p(t,e)},d(t){n&&n.d(t),t&&S(e)}}}function sn(t){let e,n,o,s;return e=new t[9]({props:{class:"add_filter_button",id:"filterbutton-"+t[13].STATUS,$$slots:{default:[Xe]},$$scope:{ctx:t}}}),e.$on("click",(function(){C(t[48])&&t[48].apply(this,arguments)})),o=new t[11]({props:{class:"dropdown-filter",verticalAlignment:"bottom",$$slots:{default:[on]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment),n=P(),Et(o.$$.fragment)},m(t,r){Ct(e,t,r),I(t,n,r),Ct(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||($t(e.$$.fragment,t),$t(o.$$.fragment,t),s=!0)},o(t){gt(e.$$.fragment,t),gt(o.$$.fragment,t),s=!1},d(t){Dt(e,t),t&&S(n),Dt(o,t)}}}function rn(t){let e,n;return e=new t[10]({props:{$$slots:{default:[an,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(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||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function ln(t){let e,n,o,s,r,i,l;return n=new pe({props:{size:"24",class:"ml"}}),s=new jt({props:{size:"24",class:"ml dropdown-chevron"}}),{c(){e=O("div"),Et(n.$$.fragment),o=A("\n Prio\n "),Et(s.$$.fragment),L(e,"class","filter_button--icon")},m(c,a){I(c,e,a),Ct(n,e,null),I(c,o,a),Ct(s,c,a),r=!0,i||(l=W(e,"click",t[27]),i=!0)},p:w,i(t){r||($t(n.$$.fragment,t),$t(s.$$.fragment,t),r=!0)},o(t){gt(n.$$.fragment,t),gt(s.$$.fragment,t),r=!1},d(t){t&&S(e),Dt(n),t&&S(o),Dt(s,t),i=!1,l()}}}function cn(t){let e,n,o,s,r,i,l,c,a,d,u,f,p;return{c(){e=O("input"),n=P(),o=O("label"),o.textContent="1",s=P(),r=O("input"),i=P(),l=O("label"),l.textContent="2",c=P(),a=O("input"),d=P(),u=O("label"),u.textContent="3",L(e,"class","checkbox-tools prio1 svelte-2yy2vd"),L(e,"type","checkbox"),L(e,"name",t[13].PRIO),L(e,"id","1"),L(o,"class","for-checkbox-tools prio prio1 svelte-2yy2vd"),L(o,"for","1"),L(r,"class","checkbox-tools prio2 svelte-2yy2vd"),L(r,"type","checkbox"),L(r,"name",t[13].PRIO),L(r,"id","2"),L(l,"class","for-checkbox-tools prio prio2 svelte-2yy2vd"),L(l,"for","2"),L(a,"class","checkbox-tools prio3 svelte-2yy2vd"),L(a,"type","checkbox"),L(a,"name",t[13].PRIO),L(a,"id","3"),L(u,"class","for-checkbox-tools prio prio3 svelte-2yy2vd"),L(u,"for","3")},m(m,$){I(m,e,$),I(m,n,$),I(m,o,$),I(m,s,$),I(m,r,$),I(m,i,$),I(m,l,$),I(m,c,$),I(m,a,$),I(m,d,$),I(m,u,$),f||(p=[W(e,"change",t[15]),W(r,"change",t[15]),W(a,"change",t[15])],f=!0)},p:w,d(t){t&&S(e),t&&S(n),t&&S(o),t&&S(s),t&&S(r),t&&S(i),t&&S(l),t&&S(c),t&&S(a),t&&S(d),t&&S(u),f=!1,E(p)}}}function an(t){let e,n,o,s;return e=new t[9]({props:{class:"add_filter_button",id:"filterbutton-"+t[13].PRIO,$$slots:{default:[ln]},$$scope:{ctx:t}}}),e.$on("click",(function(){C(t[48])&&t[48].apply(this,arguments)})),o=new t[11]({props:{class:"dropdown-filter",verticalAlignment:"bottom",$$slots:{default:[cn]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment),n=P(),Et(o.$$.fragment)},m(t,r){Ct(e,t,r),I(t,n,r),Ct(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||($t(e.$$.fragment,t),$t(o.$$.fragment,t),s=!0)},o(t){gt(e.$$.fragment,t),gt(o.$$.fragment,t),s=!1},d(t){Dt(e,t),t&&S(n),Dt(o,t)}}}function dn(t){let e,n;return e=new t[10]({props:{$$slots:{default:[pn,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};64&n[0]|134348800&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function un(t){let e,n,o,s,r,i,l;return n=new pe({props:{size:"24",class:"ml"}}),s=new jt({props:{size:"24",class:"ml dropdown-chevron"}}),{c(){e=O("div"),Et(n.$$.fragment),o=A("\n Fälligkeit\n "),Et(s.$$.fragment),L(e,"class","filter_button--icon")},m(c,a){I(c,e,a),Ct(n,e,null),I(c,o,a),Ct(s,c,a),r=!0,i||(l=W(e,"click",t[28]),i=!0)},p:w,i(t){r||($t(n.$$.fragment,t),$t(s.$$.fragment,t),r=!0)},o(t){gt(n.$$.fragment,t),gt(s.$$.fragment,t),r=!1},d(t){t&&S(e),Dt(n),t&&S(o),Dt(s,t),i=!1,l()}}}function fn(t){let e,n,o;function s(e){t[29](e)}let r={range:!0,below:!0};return void 0!==t[6]&&(r.value=t[6]),e=new t[12]({props:r}),Q.push((()=>xt(e,"value",s))),e.$on("change",t[15]),{c(){Et(e.$$.fragment)},m(t,n){Ct(e,t,n),o=!0},p(t,o){const s={};!n&&64&o[0]&&(n=!0,s.value=t[6],it((()=>n=!1))),e.$set(s)},i(t){o||($t(e.$$.fragment,t),o=!0)},o(t){gt(e.$$.fragment,t),o=!1},d(t){Dt(e,t)}}}function pn(t){let e,n,o,s;return e=new t[9]({props:{class:"add_filter_button",id:"filterbutton-"+t[13].DUEDATE,$$slots:{default:[un]},$$scope:{ctx:t}}}),e.$on("click",(function(){C(t[48])&&t[48].apply(this,arguments)})),o=new t[11]({props:{class:"dropdown-filter",verticalAlignment:"bottom",$$slots:{default:[fn]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment),n=P(),Et(o.$$.fragment)},m(t,r){Ct(e,t,r),I(t,n,r),Ct(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={};64&s[0]|134217728&s[1]&&(i.$$scope={dirty:s,ctx:t}),o.$set(i)},i(t){s||($t(e.$$.fragment,t),$t(o.$$.fragment,t),s=!0)},o(t){gt(e.$$.fragment,t),gt(o.$$.fragment,t),s=!1},d(t){Dt(e,t),t&&S(n),Dt(o,t)}}}function mn(t){let e,n;return e=new t[10]({props:{$$slots:{default:[bn,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};62&n[0]|134348800&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function $n(t){let e,n,o;return e=new le({props:{size:"24"}}),{c(){Et(e.$$.fragment),n=A("\n Neuer Filter")},m(t,s){Ct(e,t,s),I(t,n,s),o=!0},p:w,i(t){o||($t(e.$$.fragment,t),o=!0)},o(t){gt(e.$$.fragment,t),o=!1},d(t){Dt(e,t),t&&S(n)}}}function gn(t){let e,n,o,s,r,i,l;return s=new le({props:{size:"24"}}),{c(){e=O("div"),n=O("div"),n.textContent="Domain",o=P(),Et(s.$$.fragment),L(e,"class","dropdown-content--element svelte-2yy2vd")},m(c,a){I(c,e,a),_(e,n),_(e,o),Ct(s,e,null),r=!0,i||(l=W(e,"click",t[30]),i=!0)},p:w,i(t){r||($t(s.$$.fragment,t),r=!0)},o(t){gt(s.$$.fragment,t),r=!1},d(t){t&&S(e),Dt(s),i=!1,l()}}}function hn(t){let e,n,o,s,r,i,l;return s=new le({props:{size:"24"}}),{c(){e=O("div"),n=O("div"),n.textContent="Ereignis",o=P(),Et(s.$$.fragment),L(e,"class","dropdown-content--element svelte-2yy2vd")},m(c,a){I(c,e,a),_(e,n),_(e,o),Ct(s,e,null),r=!0,i||(l=W(e,"click",t[31]),i=!0)},p:w,i(t){r||($t(s.$$.fragment,t),r=!0)},o(t){gt(s.$$.fragment,t),r=!1},d(t){t&&S(e),Dt(s),i=!1,l()}}}function vn(t){let e,n,o,s,r,i,l;return s=new le({props:{size:"24"}}),{c(){e=O("div"),n=O("div"),n.textContent="Status",o=P(),Et(s.$$.fragment),L(e,"class","dropdown-content--element svelte-2yy2vd")},m(c,a){I(c,e,a),_(e,n),_(e,o),Ct(s,e,null),r=!0,i||(l=W(e,"click",t[32]),i=!0)},p:w,i(t){r||($t(s.$$.fragment,t),r=!0)},o(t){gt(s.$$.fragment,t),r=!1},d(t){t&&S(e),Dt(s),i=!1,l()}}}function kn(t){let e,n,o,s,r,i,l;return s=new le({props:{size:"24"}}),{c(){e=O("div"),n=O("div"),n.textContent="Priorität",o=P(),Et(s.$$.fragment),L(e,"class","dropdown-content--element svelte-2yy2vd")},m(c,a){I(c,e,a),_(e,n),_(e,o),Ct(s,e,null),r=!0,i||(l=W(e,"click",t[33]),i=!0)},p:w,i(t){r||($t(s.$$.fragment,t),r=!0)},o(t){gt(s.$$.fragment,t),r=!1},d(t){t&&S(e),Dt(s),i=!1,l()}}}function yn(t){let e,n,o,s,r,i,l;return s=new le({props:{size:"24"}}),{c(){e=O("div"),n=O("div"),n.textContent="Fäligkeit",o=P(),Et(s.$$.fragment),L(e,"class","dropdown-content--element svelte-2yy2vd")},m(c,a){I(c,e,a),_(e,n),_(e,o),Ct(s,e,null),r=!0,i||(l=W(e,"click",t[34]),i=!0)},p:w,i(t){r||($t(s.$$.fragment,t),r=!0)},o(t){gt(s.$$.fragment,t),r=!1},d(t){t&&S(e),Dt(s),i=!1,l()}}}function wn(t){let e,n,o,s,r,i,l,c,a=!t[3]&&gn(t),d=!t[5]&&hn(t),u=!t[2]&&vn(t),f=!t[1]&&kn(t),p=!t[4]&&yn(t);return{c(){e=O("div"),n=O("div"),n.textContent="Wähle Filtertyp:",o=P(),a&&a.c(),s=P(),d&&d.c(),r=P(),u&&u.c(),i=P(),f&&f.c(),l=P(),p&&p.c(),L(n,"class","dropdown-content--header svelte-2yy2vd"),L(e,"class","dropdown-content svelte-2yy2vd")},m(t,m){I(t,e,m),_(e,n),_(e,o),a&&a.m(e,null),_(e,s),d&&d.m(e,null),_(e,r),u&&u.m(e,null),_(e,i),f&&f.m(e,null),_(e,l),p&&p.m(e,null),c=!0},p(t,n){t[3]?a&&(pt(),gt(a,1,1,(()=>{a=null})),mt()):a?(a.p(t,n),8&n[0]&&$t(a,1)):(a=gn(t),a.c(),$t(a,1),a.m(e,s)),t[5]?d&&(pt(),gt(d,1,1,(()=>{d=null})),mt()):d?(d.p(t,n),32&n[0]&&$t(d,1)):(d=hn(t),d.c(),$t(d,1),d.m(e,r)),t[2]?u&&(pt(),gt(u,1,1,(()=>{u=null})),mt()):u?(u.p(t,n),4&n[0]&&$t(u,1)):(u=vn(t),u.c(),$t(u,1),u.m(e,i)),t[1]?f&&(pt(),gt(f,1,1,(()=>{f=null})),mt()):f?(f.p(t,n),2&n[0]&&$t(f,1)):(f=kn(t),f.c(),$t(f,1),f.m(e,l)),t[4]?p&&(pt(),gt(p,1,1,(()=>{p=null})),mt()):p?(p.p(t,n),16&n[0]&&$t(p,1)):(p=yn(t),p.c(),$t(p,1),p.m(e,null))},i(t){c||($t(a),$t(d),$t(u),$t(f),$t(p),c=!0)},o(t){gt(a),gt(d),gt(u),gt(f),gt(p),c=!1},d(t){t&&S(e),a&&a.d(),d&&d.d(),u&&u.d(),f&&f.d(),p&&p.d()}}}function bn(t){let e,n,o,s;return e=new t[9]({props:{class:"add_filter_button",$$slots:{default:[$n]},$$scope:{ctx:t}}}),e.$on("click",(function(){C(t[48])&&t[48].apply(this,arguments)})),o=new t[11]({props:{verticalAlignment:"bottom",$$slots:{default:[wn]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment),n=P(),Et(o.$$.fragment)},m(t,r){Ct(e,t,r),I(t,n,r),Ct(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={};62&s[0]|134217728&s[1]&&(i.$$scope={dirty:s,ctx:t}),o.$set(i)},i(t){s||($t(e.$$.fragment,t),$t(o.$$.fragment,t),s=!0)},o(t){gt(e.$$.fragment,t),gt(o.$$.fragment,t),s=!1},d(t){Dt(e,t),t&&S(n),Dt(o,t)}}}function xn(t){let e,n,o,s,r,i,l,c=t[3]&&Ue(t),a=t[5]&&Je(t),d=t[2]&&Qe(t),u=t[1]&&rn(t),f=t[4]&&dn(t),p=!t[8]&&mn(t);return{c(){e=O("div"),c&&c.c(),n=P(),a&&a.c(),o=P(),d&&d.c(),s=P(),u&&u.c(),r=P(),f&&f.c(),i=P(),p&&p.c(),L(e,"class","filter--area svelte-2yy2vd")},m(t,m){I(t,e,m),c&&c.m(e,null),_(e,n),a&&a.m(e,null),_(e,o),d&&d.m(e,null),_(e,s),u&&u.m(e,null),_(e,r),f&&f.m(e,null),_(e,i),p&&p.m(e,null),l=!0},p(t,l){t[3]?c?(c.p(t,l),8&l[0]&&$t(c,1)):(c=Ue(t),c.c(),$t(c,1),c.m(e,n)):c&&(pt(),gt(c,1,1,(()=>{c=null})),mt()),t[5]?a?(a.p(t,l),32&l[0]&&$t(a,1)):(a=Je(t),a.c(),$t(a,1),a.m(e,o)):a&&(pt(),gt(a,1,1,(()=>{a=null})),mt()),t[2]?d?(d.p(t,l),4&l[0]&&$t(d,1)):(d=Qe(t),d.c(),$t(d,1),d.m(e,s)):d&&(pt(),gt(d,1,1,(()=>{d=null})),mt()),t[1]?u?(u.p(t,l),2&l[0]&&$t(u,1)):(u=rn(t),u.c(),$t(u,1),u.m(e,r)):u&&(pt(),gt(u,1,1,(()=>{u=null})),mt()),t[4]?f?(f.p(t,l),16&l[0]&&$t(f,1)):(f=dn(t),f.c(),$t(f,1),f.m(e,i)):f&&(pt(),gt(f,1,1,(()=>{f=null})),mt()),t[8]?p&&(pt(),gt(p,1,1,(()=>{p=null})),mt()):p?(p.p(t,l),256&l[0]&&$t(p,1)):(p=mn(t),p.c(),$t(p,1),p.m(e,null))},i(t){l||($t(c),$t(a),$t(d),$t(u),$t(f),$t(p),l=!0)},o(t){gt(c),gt(a),gt(d),gt(u),gt(f),gt(p),l=!1},d(t){t&&S(e),c&&c.d(),a&&a.d(),d&&d.d(),u&&u.d(),f&&f.d(),p&&p.d()}}}function En(t,e){e&&window.setTimeout((()=>{const e="filterbutton-"+t;document.getElementById(e)?.click()}))}function Cn(t,n,o){let s,r;const{Button:i,DropdownShell:l,Dropdown:c,DatePicker:a}=e,d=Y();let{shownTasks:u}=n,{tenant:f}=n,{events:p}=n,{domains:m}=n;const $=T;let g;const h=f+"-ENABLERR-FILTER";let v={start:new Date,end:new Date};const k={DOMAIN:"domain",EVENT:"event",STATUS:"status",PRIO:"prio",DUEDATE:"dueDate"};let y=!1,w=!1,b=!1,x=!1,E=!1,C=p,D=new Set;async function T(t=!0){s=[...u],await _(k.DOMAIN),await _(k.STATUS),await _(k.PRIO),await N(),await _(k.EVENT),z(t)}function z(t=!0){d("filterUpdated",{tasks:s,updateSort:t})}async function _(t,e=!1){if(!g)return;let n=await document.getElementsByName(t),r=[];if(e)r=g[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());g[t]=r,window.localStorage.setItem(h,JSON.stringify(g))}0!=r.length?t==k.DOMAIN?(!e&&E&&await A(),s=s.filter((t=>r.indexOf(t.event.domain.toLowerCase())>=0))):t==k.EVENT?s=s.filter((t=>r.indexOf(t.event.designation.toLowerCase())>=0)):t==k.STATUS?s=s.filter((t=>t.status?r.indexOf(t.status.toLowerCase())>=0:r.indexOf("vorlage")>=0)):t==k.PRIO&&(s=s.filter((t=>{if(t.priority){return r.indexOf(t.priority.toString())>=0}return r.indexOf("1")>=0}))):t==k.DOMAIN&&o(7,C=p)}function I(t){S(t),O(t)}async function S(t,e=!0){switch(t){case k.DOMAIN:o(3,b=!b),En(k.DOMAIN,e&&b),b&&E&&await F();break;case k.EVENT:o(5,E=!E),En(k.EVENT,e&&E),e&&b&&await A();break;case k.STATUS:o(2,w=!w),En(k.STATUS,e&&w);break;case k.PRIO:o(1,y=!y),En(k.PRIO,e&&y);break;case k.DUEDATE:o(4,x=!x),En(k.DUEDATE,e&&x)}}function N(){v&&(v.start||v.end)&&x&&(s=s.filter((t=>{if(t.dueDate){const e=new Date(t.dueDate).setHours(0,0,0,0),n=v.start.setHours(0,0,0,0),o=v.end.setHours(0,0,0,0);return e>=n&&e<=o}return!1})),g[k.DUEDATE]=v)}function O(t){if(t==k.DUEDATE)o(6,v={start:new Date,end:new Date}),g[k.DUEDATE]={start:void 0,end:void 0},window.localStorage.setItem(h,JSON.stringify(g)),o(4,x=!1);else{let e=document.getElementsByName(t.toLowerCase());for(let t of e)t.checked=!1}T()}Z((()=>{g=window.localStorage.getItem(h),g=JSON.parse(g),g||(g={[k.DOMAIN]:[],[k.EVENT]:[],[k.STATUS]:[],[k.DUEDATE]:{start:void 0,end:void 0},[k.PRIO]:[],[k.LISTMODEACTIVE]:!0},window.localStorage.setItem(h,JSON.stringify(g))),g[k.DOMAIN].length&&(S(k.DOMAIN,!1),_(k.DOMAIN,!0)),g[k.EVENT]?.length&&(S(k.EVENT,!1),_(k.EVENT,!0)),g[k.STATUS].length&&(S(k.STATUS,!1),_(k.STATUS,!0)),g[k.PRIO].length&&(S(k.PRIO,!1),_(k.PRIO,!0)),g[k.DUEDATE].start&&g[k.DUEDATE].end&&(S(k.DUEDATE,!1),o(6,v.start=new Date(g[k.DUEDATE].start),v),o(6,v.end=new Date(g[k.DUEDATE].end),v),N()),z()}));const F=async()=>{const t=[...document.getElementsByName(k.EVENT)];for(const e of t)if(e.checked){const t=e.id,n=p.find((e=>e.startsWith(t+"|"))).split("|")[1];await st();const o=document.getElementById(n);o&&(o.checked=!0)}o(7,C=j())},A=async()=>{document.getElementsByName(k.EVENT);const t=j();if(t?.length){o(7,C=t);for(const t of C){const[e]=t.split("|");await st().then((async()=>{await st();const t=document.getElementById(e);t&&(t.checked=!0)}))}}},P=()=>{const t=[...document.getElementsByName(k.Domain)];let e=0;for(const n of t)n.checked&&e++;0===e&&O(k.EVENT)},j=()=>p.filter((t=>{const e=t.split("|")[1],n=document.getElementById(e);return n?.checked}));return t.$$set=t=>{"shownTasks"in t&&o(20,u=t.shownTasks),"tenant"in t&&o(21,f=t.tenant),"events"in t&&o(22,p=t.events),"domains"in t&&o(0,m=t.domains)},t.$$.update=()=>{1048576&t.$$.dirty[0]&&(s=[...u]),62&t.$$.dirty[0]&&o(8,r=y&&w&&b&&x&&E),1048576&t.$$.dirty[0]&&function(t){D.clear(),t.forEach((t=>{D.add(t.status)}))}(u)},[m,y,w,b,x,E,v,C,r,i,l,c,a,k,D,T,function(t){P(),T(t)},I,S,(t,e)=>{const n=e.split("|")[1];return t.indexOf(n)},u,f,p,$,()=>I(k.DOMAIN),()=>I(k.EVENT),()=>I(k.STATUS),()=>I(k.PRIO),()=>I(k.DUEDATE),function(t){v=t,o(6,v)},()=>S(k.DOMAIN),()=>S(k.EVENT),()=>S(k.STATUS),()=>S(k.PRIO),()=>S(k.DUEDATE)]}class Dn extends zt{constructor(t){var e;super(),We.getElementById("svelte-2yy2vd-style")||((e=O("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}',_(We.head,e)),Tt(this,t,Cn,xn,D,{shownTasks:20,tenant:21,events:22,domains:0,applyFilter:23},[-1,-1])}get applyFilter(){return this.$$.ctx[23]}}function Tn(t,e,n){const o=t.slice();return o[1]=e[n],o}function zn(t){let e,n;return e=new de({props:{size:"8",class:t[1]+t[0]}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.class=t[1]+t[0]),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function _n(t){let e,n,o=["vtop","rotated vbottom"],s=[];for(let e=0;e<2;e+=1)s[e]=zn(Tn(t,o,e));const r=t=>gt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=O("div");for(let t=0;t<2;t+=1)s[t].c();L(e,"class","sorting svelte-1r2vqjk")},m(t,o){I(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=Tn(t,o,i);s[i]?(s[i].p(r,n),$t(s[i],1)):(s[i]=zn(r),s[i].c(),$t(s[i],1),s[i].m(e,null))}for(pt(),i=2;i<2;i+=1)r(i);mt()}},i(t){if(!n){for(let t=0;t<2;t+=1)$t(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<2;t+=1)gt(s[t]);n=!1},d(t){t&&S(e),N(s,t)}}}function In(t,e,n){let{active:o}=e;return t.$$set=t=>{"active"in t&&n(0,o=t.active)},[o]}class Sn extends zt{constructor(t){var e;super(),document.getElementById("svelte-1r2vqjk-style")||((e=O("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)}",_(document.head,e)),Tt(this,t,In,_n,D,{active:0})}}function Nn(t,e,n){const o=t.slice();return o[6]=e[n].id,o[7]=e[n].desc,o}function On(t){let e,n,o,s,r=t[7]+"";return e=new Sn({props:{active:t[3](t[6])}}),{c(){Et(e.$$.fragment),n=P(),o=A(r)},m(t,r){Ct(e,t,r),I(t,n,r),I(t,o,r),s=!0},p(t,n){const i={};1&n&&(i.active=t[3](t[6])),e.$set(i),(!s||1&n)&&r!==(r=t[7]+"")&&U(o,r)},i(t){s||($t(e.$$.fragment,t),s=!0)},o(t){gt(e.$$.fragment,t),s=!1},d(t){Dt(e,t),t&&S(n),t&&S(o)}}}function Fn(t,e){let n,o,s,r;return o=new e[2]({props:{name:"sort",$$slots:{default:[On]},$$scope:{ctx:e}}}),o.$on("click",(function(){C(e[4](e[6]))&&e[4](e[6]).apply(this,arguments)})),{key:t,first:null,c(){n=O("th"),Et(o.$$.fragment),s=P(),this.first=n},m(t,e){I(t,n,e),Ct(o,n,null),_(n,s),r=!0},p(t,n){e=t;const s={};1025&n&&(s.$$scope={dirty:n,ctx:e}),o.$set(s)},i(t){r||($t(o.$$.fragment,t),r=!0)},o(t){gt(o.$$.fragment,t),r=!1},d(t){t&&S(n),Dt(o)}}}function An(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=Nn(t,r,e),l=i(n);s.set(l,o[e]=Fn(l,n))}return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=j()},m(t,s){for(let e=0;e<o.length;e+=1)o[e].m(t,s);I(t,e,s),n=!0},p(t,n){25&n&&(r=t[0],pt(),o=bt(o,n,i,1,t,r,s,e.parentNode,wt,Fn,e,Nn),mt())},i(t){if(!n){for(let t=0;t<r.length;t+=1)$t(o[t]);n=!0}},o(t){for(let t=0;t<o.length;t+=1)gt(o[t]);n=!1},d(t){for(let e=0;e<o.length;e+=1)o[e].d(t);t&&S(e)}}}function Pn(t){let e,n,o=t[1],s=An(t);return{c(){s.c(),e=j()},m(t,o){s.m(t,o),I(t,e,o),n=!0},p(t,[n]){2&n&&D(o,o=t[1])?(pt(),gt(s,1,1,w),mt(),s=An(t),s.c(),$t(s),s.m(e.parentNode,e)):s.p(t,n)},i(t){n||($t(s),n=!0)},o(t){gt(s),n=!1},d(t){t&&S(e),s.d(t)}}}function jn(t,n,o){const s=Y(),{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=>()=>s("sort",t)]}class Wn extends zt{constructor(t){super(),Tt(this,t,jn,Pn,D,{sortNames:0,sortSettings:1})}}function Mn(t){let e;return{c(){e=A("Aktionen")},m(t,n){I(t,e,n)},d(t){t&&S(e)}}}function Ln(t){let e,n,o,s,r,i,l,c,a;return r=new Wn({props:{sortNames:t[2],sortSettings:t[0]}}),r.$on("sort",t[3]),c=new t[1]({props:{disabled:!0,$$slots:{default:[Mn]},$$scope:{ctx:t}}}),{c(){e=O("thead"),n=O("tr"),o=O("th"),s=P(),Et(r.$$.fragment),i=P(),l=O("th"),Et(c.$$.fragment)},m(t,d){I(t,e,d),_(e,n),_(n,o),_(n,s),Ct(r,n,null),_(n,i),_(n,l),Ct(c,l,null),a=!0},p(t,[e]){const n={};1&e&&(n.sortSettings=t[0]),r.$set(n);const o={};1024&e&&(o.$$scope={dirty:e,ctx:t}),c.$set(o)},i(t){a||($t(r.$$.fragment,t),$t(c.$$.fragment,t),a=!0)},o(t){gt(r.$$.fragment,t),gt(c.$$.fragment,t),a=!1},d(t){t&&S(e),Dt(r),Dt(c)}}}function Bn(t,n,o){const s=Y(),{Button:r}=e;let i;const l={localStorageName:"ENABLERR_SORTORDER",Name:"Name",Domain:"Domain",Deadline:"Deadline",Priority:"Priority",Favorite:"Favorite"},c=[{id:l.Name,desc:"Bezeichnung"},{id:l.Domain,desc:"Domäne"},{id:l.Deadline,desc:"Frist"},{id:l.Priority,desc:"Prio"}];Z((()=>{o(0,i={orderField:"",sortCallback:()=>null,sortDir:""}),function(){const t=JSON.parse(window.localStorage.getItem(l.localStorageName));if(!t)return;t.sortCallback=d.get(t.orderField),o(0,i=t),a()}()}));const a=()=>s("sortUpdate",{settings:i}),d=new Map([[l.Name,Fe],[l.Domain,t=>t.event.domain.toLowerCase()],[l.Deadline,t=>t.dueDate],[l.Priority,t=>t.priority],[l.Favorite,t=>t.event.step.endsWith("xecution")]]);return[i,r,c,function({detail:t}){if(!t)return;const e=i.orderField;o(0,i.sortCallback=d.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(l.localStorageName,t)}(),a()}]}class Un extends zt{constructor(t){super(),Tt(this,t,Bn,Ln,D,{})}}function Hn(t,e,n){const o=t.slice();return o[21]=e[n],o}function Rn(t,e){let n,o,s;return o=new je({props:{task:e[21],domains:e[1]}}),o.$on("viewTaskList",e[11]),o.$on("rowClicked",e[8]),{key:t,first:null,c(){n=j(),Et(o.$$.fragment),this.first=n},m(t,e){I(t,n,e),Ct(o,t,e),s=!0},p(t,n){e=t;const s={};1&n&&(s.task=e[21]),2&n&&(s.domains=e[1]),o.$set(s)},i(t){s||($t(o.$$.fragment,t),s=!0)},o(t){gt(o.$$.fragment,t),s=!1},d(t){t&&S(n),Dt(o,t)}}}function Vn(t){let e,n,o;function s(e){t[17](e)}let r={class:"tModal",noClickaway:!0,$$slots:{default:[Qn]},$$scope:{ctx:t}};return void 0!==t[2]&&(r.open=t[2]),e=new t[5]({props:r}),Q.push((()=>xt(e,"open",s))),{c(){Et(e.$$.fragment)},m(t,n){Ct(e,t,n),o=!0},p(t,o){const s={};16777224&o&&(s.$$scope={dirty:o,ctx:t}),!n&&4&o&&(n=!0,s.open=t[2],it((()=>n=!1))),e.$set(s)},i(t){o||($t(e.$$.fragment,t),o=!0)},o(t){gt(e.$$.fragment,t),o=!1},d(t){Dt(e,t)}}}function qn(t){let e;return{c(){e=A("Abbrechen")},m(t,n){I(t,e,n)},d(t){t&&S(e)}}}function Jn(t){let e,n;return e=new t[4]({props:{filled:!0,$$slots:{default:[Gn]},$$scope:{ctx:t}}}),e.$on("click",(function(){C(t[9](t[3].task,"task"))&&t[9](t[3].task,"task").apply(this,arguments)})),{c(){Et(e.$$.fragment)},m(t,o){Ct(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||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Gn(t){let e;return{c(){e=A("Neu")},m(t,n){I(t,e,n)},d(t){t&&S(e)}}}function Zn(t){let e;return{c(){e=O("div"),e.textContent="Es existieren noch keine Tasks von diesem Typ."},m(t,n){I(t,e,n)},p:w,i:w,o:w,d(t){t&&S(e)}}}function Yn(t){let e,n;return e=new f({props:{className:t[3].className,rowId:t[3].recID,showEdit:!0}}),e.$on("choose",t[16]),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};8&n&&(o.className=t[3].className),8&n&&(o.rowId=t[3].recID),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Kn(t){let e,n,o,s,r,i,l,c,a,d;e=new t[7]({}),s=new t[4]({props:{outline:!0,$$slots:{default:[qn]},$$scope:{ctx:t}}}),s.$on("click",t[10]);let u=t[3].task.event.directEdit&&!(t[3].task.event.solitaire&&t[3].list?.length)&&Jn(t);const f=[Yn,Zn],p=[];function m(t,e){return t[3].list&&t[3].list.length?0:1}return l=m(t),c=p[l]=f[l](t),{c(){Et(e.$$.fragment),n=P(),o=O("div"),Et(s.$$.fragment),r=P(),u&&u.c(),i=P(),c.c(),a=j(),L(o,"class","form--buttons svelte-thjang")},m(t,c){Ct(e,t,c),I(t,n,c),I(t,o,c),Ct(s,o,null),_(o,r),u&&u.m(o,null),I(t,i,c),p[l].m(t,c),I(t,a,c),d=!0},p(t,e){const n={};16777216&e&&(n.$$scope={dirty:e,ctx:t}),s.$set(n),!t[3].task.event.directEdit||t[3].task.event.solitaire&&t[3].list?.length?u&&(pt(),gt(u,1,1,(()=>{u=null})),mt()):u?(u.p(t,e),8&e&&$t(u,1)):(u=Jn(t),u.c(),$t(u,1),u.m(o,null));let r=l;l=m(t),l===r?p[l].p(t,e):(pt(),gt(p[r],1,1,(()=>{p[r]=null})),mt(),c=p[l],c?c.p(t,e):(c=p[l]=f[l](t),c.c()),$t(c,1),c.m(a.parentNode,a))},i(t){d||($t(e.$$.fragment,t),$t(s.$$.fragment,t),$t(u),$t(c),d=!0)},o(t){gt(e.$$.fragment,t),gt(s.$$.fragment,t),gt(u),gt(c),d=!1},d(t){Dt(e,t),t&&S(n),t&&S(o),Dt(s),u&&u.d(),t&&S(i),p[l].d(t),t&&S(a)}}}function Qn(t){let e,n;return e=new t[6]({props:{title:t[3].title,$$slots:{default:[Kn]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};8&n&&(o.title=t[3].title),16777224&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Xn(t){let e,n,o,s,r,i,l,c=[],a=new Map;n=new Un({}),n.$on("sortUpdate",t[14]);let d=t[13](t[0]);const u=t=>t[21].id;for(let e=0;e<d.length;e+=1){let n=Hn(t,d,e),o=u(n);a.set(o,c[e]=Rn(o,n))}let f=t[2]&&t[3]&&Vn(t);return{c(){e=O("table"),Et(n.$$.fragment),o=P(),s=O("tbody");for(let t=0;t<c.length;t+=1)c[t].c();r=P(),f&&f.c(),i=j(),L(e,"class","no_border_spacing tableFixHead svelte-thjang")},m(t,a){I(t,e,a),Ct(n,e,null),_(e,o),_(e,s);for(let t=0;t<c.length;t+=1)c[t].m(s,null);I(t,r,a),f&&f.m(t,a),I(t,i,a),l=!0},p(t,[e]){10499&e&&(d=t[13](t[0]),pt(),c=bt(c,e,u,1,t,d,a,s,wt,Rn,null,Hn),mt()),t[2]&&t[3]?f?(f.p(t,e),12&e&&$t(f,1)):(f=Vn(t),f.c(),$t(f,1),f.m(i.parentNode,i)):f&&(pt(),gt(f,1,1,(()=>{f=null})),mt())},i(t){if(!l){$t(n.$$.fragment,t);for(let t=0;t<d.length;t+=1)$t(c[t]);$t(f),l=!0}},o(t){gt(n.$$.fragment,t);for(let t=0;t<c.length;t+=1)gt(c[t]);gt(f),l=!1},d(t){t&&S(e),Dt(n);for(let t=0;t<c.length;t+=1)c[t].d();t&&S(r),f&&f.d(t),t&&S(i)}}}function to(t,n,o){const{Button:s,Modal:r,Dialog:i,Divider:l}=e,c=Y();let a,{visibleTasks:d}=n,{domains:u}=n,f=!0;function p(t,e,n=!1){const o=n?t.classNew:t.event.id,s=n?t.classNew:t.id;window.singleSpaNavigate(`/task/${o}/${s}/${e}`),g()}let m,$=!1;function g(){o(2,$=!1),o(3,m=void 0)}const h=(t,e,n)=>{p({event:{id:t.detail.row._task.event},id:t.detail.row._task._id},n)};return t.$$set=t=>{"visibleTasks"in t&&o(0,d=t.visibleTasks),"domains"in t&&o(1,u=t.domains)},t.$$.update=()=>{32769&t.$$.dirty&&function(t){if(!t)return;if(!t.sortDir&&f)return c("applyFilter",{updateSort:!1}),void(f=!1);if(!t.sortCallback)return;const e="asc"==t.sortDir?1:-1;o(0,d=d.sort(((n,o)=>{const s=t.sortCallback(n),r=t.sortCallback(o);return s>r?e:s<r?-1*e:0}))),f=!0}(a)},[d,u,$,m,s,r,i,l,function(t){if(!t||!t.detail)return;const{task:e,tab:n,event:o}=t.detail;e&&n&&p(e,n,o)},p,g,function(t){t.detail&&(o(2,$=!0),o(3,m=t.detail),o(3,m.recID=void 0,m))},h,t=>{const e=t.filter((t=>!!t.data)),n=t.filter((t=>!t.data));return t.map((t=>{if(!t.data)return t;const e=n.find((e=>e.event.class===t.event.class));return t.classNew=e?.event?.id||t.event.id,t})).filter((t=>!!t.data||!e.find((e=>e.event.class===t.event.class))))},t=>{t&&t.detail&&t.detail.settings&&o(15,a=t.detail.settings)},a,t=>h(t,m.task,"task"),function(t){$=t,o(2,$)}]}class eo extends zt{constructor(t){var e;super(),document.getElementById("svelte-thjang-style")||((e=O("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}.form--buttons.svelte-thjang{display:flex;gap:1em;padding-bottom:0.5em}",_(document.head,e)),Tt(this,t,to,Xn,D,{visibleTasks:0,domains:1})}}function no(t){let e,n,o,s,r,i,l,c,a,d,u=t[5](t[0])+"",f=t[4](),p=f&&function(t){let e,n,o,s,r,i,l,c,a,d=t[0].event.title+"";return e=new t[3]({}),s=new le({props:{size:"14"}}),{c(){Et(e.$$.fragment),n=P(),o=O("div"),Et(s.$$.fragment),r=P(),i=A(d),L(o,"class","createTask svelte-zghe7g")},m(d,u){Ct(e,d,u),I(d,n,u),I(d,o,u),Ct(s,o,null),_(o,r),_(o,i),l=!0,c||(a=W(o,"click",t[7]),c=!0)},p(t,e){(!l||1&e)&&d!==(d=t[0].event.title+"")&&U(i,d)},i(t){l||($t(e.$$.fragment,t),$t(s.$$.fragment,t),l=!0)},o(t){gt(e.$$.fragment,t),gt(s.$$.fragment,t),l=!1},d(t){Dt(e,t),t&&S(n),t&&S(o),Dt(s),c=!1,a()}}}(t);return{c(){e=O("div"),o=P(),s=O("div"),r=O("div"),i=A(u),l=P(),p&&p.c(),L(e,"class",n="domain_card domain_card_"+t[1].indexOf(t[0].event.domain)+" svelte-zghe7g"),L(r,"class","openTask svelte-zghe7g"),L(s,"class","task_name svelte-zghe7g")},m(n,u){I(n,e,u),I(n,o,u),I(n,s,u),_(s,r),_(r,i),_(s,l),p&&p.m(s,null),c=!0,a||(d=W(r,"click",t[6]),a=!0)},p(t,o){(!c||3&o&&n!==(n="domain_card domain_card_"+t[1].indexOf(t[0].event.domain)+" svelte-zghe7g"))&&L(e,"class",n),(!c||1&o)&&u!==(u=t[5](t[0])+"")&&U(i,u),f&&p.p(t,o)},i(t){c||($t(p),c=!0)},o(t){gt(p),c=!1},d(t){t&&S(e),t&&S(o),t&&S(s),p&&p.d(),a=!1,d()}}}function oo(t){let e,n,o;return n=new t[2]({props:{class:"lined taskCard",$$slots:{default:[no]},$$scope:{ctx:t}}}),{c(){e=O("div"),Et(n.$$.fragment),L(e,"class","click_div svelte-zghe7g")},m(t,s){I(t,e,s),Ct(n,e,null),o=!0},p(t,[e]){const o={};259&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o)},i(t){o||($t(n.$$.fragment,t),o=!0)},o(t){gt(n.$$.fragment,t),o=!1},d(t){t&&S(e),Dt(n)}}}function so(t,n,o){let{task:s}=n,{domains:r}=n;const{Card:i,Divider:l}=e;return t.$$set=t=>{"task"in t&&o(0,s=t.task),"domains"in t&&o(1,r=t.domains)},[s,r,i,l,()=>s.data?s.event.title:"",()=>{const t=Fe(s);return t.length<30?t:t.slice(0,30)+"..."},()=>function(t){window.singleSpaNavigate(`/task/${t.event.id}/${t.id}/task`)}(s),()=>function(t){window.singleSpaNavigate(`/task/${t.event.id}/${t.event.id}/task`)}(s)]}class ro extends zt{constructor(t){var e;super(),document.getElementById("svelte-zghe7g-style")||((e=O("style")).id="svelte-zghe7g-style",e.textContent=".task_name.svelte-zghe7g{font-weight:bold;text-align:center;margin-inline:auto;margin-top:2em;word-wrap:break-word;width:100%}.createTask.svelte-zghe7g{display:flex;align-items:center;justify-content:center;font-weight:500;font-size:14px}.openTask.svelte-zghe7g{min-height:2.75em}.openTask.svelte-zghe7g,.createTask.svelte-zghe7g{cursor:pointer}.click_div.svelte-zghe7g{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-zghe7g{position:absolute;top:0;left:0;height:2.3em;width:13em;background-color:#e2e2e2}.domain_card_0.svelte-zghe7g{background-color:#A9C0CE}.domain_card_1.svelte-zghe7g{background-color:#7E7F80}.domain_card_2.svelte-zghe7g{background-color:#55C1D9}.domain_card_3.svelte-zghe7g{background-color:#66A649}.domain_card_4.svelte-zghe7g{background-color:#F2CF63}.domain_card_5.svelte-zghe7g{background-color:#BF5A50}",_(document.head,e)),Tt(this,t,so,oo,D,{task:0,domains:1})}}function io(t,e,n){const o=t.slice();return o[30]=e[n],o}function lo(t){let e,n;return e=new se({props:{size:"24"}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function co(t){let e,n;return e=new Qt({props:{size:"24"}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function ao(t){let e,n,o,s;const r=[co,lo],i=[];function l(t,e){return t[5]?1:0}return e=l(t),n=i[e]=r[e](t),{c(){n.c(),o=j()},m(t,n){i[e].m(t,n),I(t,o,n),s=!0},p(t,s){let c=e;e=l(t),e!==c&&(pt(),gt(i[c],1,1,(()=>{i[c]=null})),mt(),n=i[e],n||(n=i[e]=r[e](t),n.c()),$t(n,1),n.m(o.parentNode,o))},i(t){s||($t(n),s=!0)},o(t){gt(n),s=!1},d(t){i[e].d(t),t&&S(o)}}}function uo(t){let e,n,o=[],s=new Map,r=t[18](t[6]);const i=t=>t[30].id;for(let e=0;e<r.length;e+=1){let n=io(t,r,e),l=i(n);s.set(l,o[e]=po(l,n))}return{c(){e=O("div");for(let t=0;t<o.length;t+=1)o[t].c();L(e,"class","task-list svelte-1scpi07")},m(t,s){I(t,e,s);for(let t=0;t<o.length;t+=1)o[t].m(e,null);n=!0},p(t,n){262209&n[0]&&(r=t[18](t[6]),pt(),o=bt(o,n,i,1,t,r,s,e,wt,po,null,io),mt())},i(t){if(!n){for(let t=0;t<r.length;t+=1)$t(o[t]);n=!0}},o(t){for(let t=0;t<o.length;t+=1)gt(o[t]);n=!1},d(t){t&&S(e);for(let t=0;t<o.length;t+=1)o[t].d()}}}function fo(t){let e,n,o;return n=new eo({props:{visibleTasks:t[6],domains:t[0]}}),n.$on("applyFilter",t[15]),{c(){e=O("div"),Et(n.$$.fragment),L(e,"class","task-list svelte-1scpi07")},m(t,s){I(t,e,s),Ct(n,e,null),o=!0},p(t,e){const o={};64&e[0]&&(o.visibleTasks=t[6]),1&e[0]&&(o.domains=t[0]),n.$set(o)},i(t){o||($t(n.$$.fragment,t),o=!0)},o(t){gt(n.$$.fragment,t),o=!1},d(t){t&&S(e),Dt(n)}}}function po(t,e){let n,o,s;return o=new ro({props:{task:e[30],domains:e[0]}}),{key:t,first:null,c(){n=j(),Et(o.$$.fragment),this.first=n},m(t,e){I(t,n,e),Ct(o,t,e),s=!0},p(t,n){e=t;const s={};64&n[0]&&(s.task=e[30]),1&n[0]&&(s.domains=e[0]),o.$set(s)},i(t){s||($t(o.$$.fragment,t),s=!0)},o(t){gt(o.$$.fragment,t),s=!1},d(t){t&&S(n),Dt(o,t)}}}function mo(t){let e,n,o,s,r,i,l,c,a,d,u,f,p,m,$,g,h,v,k,y,w,b,x,D,T,z,N,F,j,M,B,R,V,q,J=(t[10].listTitle||"Aufgabenliste")+"";function G(e){t[23](e)}i=new t[13]({props:{class:"task-maximize",$$slots:{default:[ao]},$$scope:{ctx:t}}}),i.$on("click",t[16]);let Z={domains:t[0],events:t[1],shownTasks:t[9],tenant:t[12]};void 0!==t[7]&&(Z.applyFilter=t[7]),p=new Dn({props:Z}),Q.push((()=>xt(p,"applyFilter",G))),p.$on("filterUpdated",t[14]),y=new Zt({}),z=new qt({});const Y=[fo,uo],K=[];function X(t,e){return t[4]?0:1}return F=X(t),j=K[F]=Y[F](t),{c(){e=O("div"),n=O("div"),o=O("h2"),s=A(J),r=P(),Et(i.$$.fragment),l=P(),c=O("div"),a=O("div"),d=O("div"),u=O("input"),f=P(),Et(p.$$.fragment),$=P(),g=O("div"),h=O("input"),v=P(),k=O("label"),Et(y.$$.fragment),w=P(),b=O("input"),D=P(),T=O("label"),Et(z.$$.fragment),N=P(),j.c(),M=P(),B=O("div"),L(o,"class","svelte-1scpi07"),L(n,"class","task-header--title svelte-1scpi07"),L(e,"id","TitleModuleContainer"),L(e,"class","task-header svelte-1scpi07"),L(u,"type","search ms-auto w-auto"),L(u,"class","task--search svelte-1scpi07"),L(u,"placeholder","Suche"),L(d,"class","inside_card--top__left svelte-1scpi07"),L(h,"class","radiobutton-tools svelte-1scpi07"),L(h,"type","radio"),L(h,"name","tools"),L(h,"id","tool-1"),h.checked=t[4],L(k,"class","for-radiobutton-tools svelte-1scpi07"),L(k,"for","tool-1"),L(b,"class","radiobutton-tools svelte-1scpi07"),L(b,"type","radio"),L(b,"name","tools"),L(b,"id","tool-2"),b.checked=x=!t[4],L(T,"class","for-radiobutton-tools svelte-1scpi07"),L(T,"for","tool-2"),L(a,"class","inside_card--top svelte-1scpi07"),L(B,"class","footer_spacer svelte-1scpi07"),L(c,"class","inside_card svelte-1scpi07")},m(m,x){I(m,e,x),_(e,n),_(n,o),_(o,s),_(n,r),Ct(i,n,null),I(m,l,x),I(m,c,x),_(c,a),_(a,d),_(d,u),H(u,t[3]),_(d,f),Ct(p,d,null),_(a,$),_(a,g),_(g,h),_(g,v),_(g,k),Ct(y,k,null),_(g,w),_(g,b),_(g,D),_(g,T),Ct(z,T,null),_(c,N),K[F].m(c,null),_(c,M),_(c,B),t[24](c),R=!0,V||(q=[W(n,"pointerdown",(function(){C(t[2])&&t[2].apply(this,arguments)})),W(u,"input",t[22]),W(h,"change",t[17]),W(b,"change",t[17])],V=!0)},p(e,n){t=e,(!R||1024&n[0])&&J!==(J=(t[10].listTitle||"Aufgabenliste")+"")&&U(s,J);const o={};32&n[0]|4&n[1]&&(o.$$scope={dirty:n,ctx:t}),i.$set(o),8&n[0]&&H(u,t[3]);const r={};1&n[0]&&(r.domains=t[0]),2&n[0]&&(r.events=t[1]),512&n[0]&&(r.shownTasks=t[9]),!m&&128&n[0]&&(m=!0,r.applyFilter=t[7],it((()=>m=!1))),p.$set(r),(!R||16&n[0])&&(h.checked=t[4]),(!R||16&n[0]&&x!==(x=!t[4]))&&(b.checked=x);let l=F;F=X(t),F===l?K[F].p(t,n):(pt(),gt(K[l],1,1,(()=>{K[l]=null})),mt(),j=K[F],j?j.p(t,n):(j=K[F]=Y[F](t),j.c()),$t(j,1),j.m(c,M))},i(t){R||($t(i.$$.fragment,t),$t(p.$$.fragment,t),$t(y.$$.fragment,t),$t(z.$$.fragment,t),$t(j),R=!0)},o(t){gt(i.$$.fragment,t),gt(p.$$.fragment,t),gt(y.$$.fragment,t),gt(z.$$.fragment,t),gt(j),R=!1},d(n){n&&S(e),Dt(i),n&&S(l),n&&S(c),Dt(p),Dt(y),Dt(z),K[F].d(),t[24](null),V=!1,E(q)}}}function $o(t,n,o){let r,f,m;T(t,i,(t=>o(10,m=t)));const{loggedIn:$}=p;T(t,$,(t=>o(26,f=t)));const g=f.tenant,h=g+"-ENABLERR-VIEW",{Button:v}=e;let k,y,{allTasks:w}=n,{domains:b}=n,{events:x}=n,{movePointerDown:E}=n,C=[],D=!0,z=!1,_=[...C],I=[...r||[]],S="isListModeActive";Z((()=>{u.subscribe((t=>{o(20,C=F(t)),k()})),y=JSON.parse(window.localStorage.getItem(h)),y||(y={[S]:!0},window.localStorage.setItem(h,JSON.stringify(y))),o(4,D=!1!==y[S])}));let N,O="";l.subscribe((async t=>{t&&s.getTaskqueue(null,t.objectId).then((({task:e})=>{const n=C.findIndex((e=>e.id===t.objectId));if(n+1)o(20,C[n]=e,C);else{if("Information"===e.event?.stream?.task)return;if(!e.workflow?.numberOfFollowers&&"WaitingForApproval"!==e.status)return;C.unshift(e)}k&&k()}))})),c.subscribe((async t=>{if(!t)return;const e=C.findIndex((e=>e.id===t.objectId));e+1&&s.getTaskqueue(null,t.objectId).then((({task:t})=>{o(20,C[e]=t,C),k&&k()}))})),a.subscribe((t=>{if(!t)return;const e=t.url.split("/")[3],n=C.find((t=>t.id===e));n&&(n.chat+=1,k&&k())})),d.subscribe((t=>{if(!t)return;const e=t.taskId,n=C.find((t=>t.id===e));n&&("INSERT"===t.status?n.report+=1:"DELETE"===t.status&&(n.report-=1),k&&k())}));const F=t=>{if(!w)return{};let e={...w};return void 0===t?queue:(e=w.filter((e=>!e.event.authorization?.length||e.event.authorization.some((e=>t?.find((t=>t===e.role)))))),e)};return t.$$set=t=>{"allTasks"in t&&o(19,w=t.allTasks),"domains"in t&&o(0,b=t.domains),"events"in t&&o(1,x=t.events),"movePointerDown"in t&&o(2,E=t.movePointerDown)},t.$$.update=()=>{1048576&t.$$.dirty[0]&&o(9,r=[...C]),2097160&t.$$.dirty[0]&&(O.length<3&&o(6,I=[..._]),O.toString().length>2&&o(6,I=[..._.filter((t=>{const e=t=>t?.toLowerCase()?.match(`${O.toString().toLowerCase()}.*`);return e(t.event.name)||e(t.event.description)||e(Fe(t))}))]))},[b,x,E,O,D,z,I,k,N,r,m,$,g,v,function(t){o(21,_=t.detail.tasks),o(6,I=_)},function(){k()},function(){o(5,z=!z),z?N.parentElement.parentElement.classList.add("maximizeTaskModule"):N.parentElement.parentElement.classList.remove("maximizeTaskModule")},function(){o(4,D=!D),y[S]=D,window.localStorage.setItem(h,JSON.stringify(y))},t=>{const e=t.filter((t=>!!t.data));return t.filter((t=>!!t.data||!e.find((e=>e.event.id===t.id))))},w,C,_,function(){O=this.value,o(3,O)},function(t){k=t,o(7,k)},function(t){Q[t?"unshift":"push"]((()=>{N=t,o(8,N)}))}]}class go extends zt{constructor(t){var e;super(),document.getElementById("svelte-1scpi07-style")||((e=O("style")).id="svelte-1scpi07-style",e.textContent='.maximizeTaskModule{width:95vw !important;height:90vh !important;position:fixed !important;top:20px;z-index:2}.inside_card.svelte-1scpi07.svelte-1scpi07{margin:1.4em 1.4em 0 1.4em;display:flex;flex-flow:column;height:calc(100% - 65px - 1.4em)}.inside_card--top.svelte-1scpi07.svelte-1scpi07{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:center;row-gap:1em;margin-bottom:1em}.inside_card--top.svelte-1scpi07 .inside_card--top__left.svelte-1scpi07{display:flex;gap:1em;flex-flow:row wrap}.inside_card--top.svelte-1scpi07 .inside_card--top__left .task--search.svelte-1scpi07{padding:1em;width:20em}.inside_card--top.svelte-1scpi07 .inside_card--top__left.svelte-1scpi07 .dropdown-filter{padding:1em}.task-header.svelte-1scpi07.svelte-1scpi07{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-1scpi07.svelte-1scpi07{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-1scpi07 h2.svelte-1scpi07{margin:0}.task-header--title.svelte-1scpi07 .task-maximize{color:#fff;padding:0}.task-list.svelte-1scpi07.svelte-1scpi07{display:flex;flex-flow:row wrap;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;width:100%;border:1px solid #ccc;border-radius:0.5em}.footer_spacer.svelte-1scpi07.svelte-1scpi07{flex:0 1 4.2em}[type=radio].svelte-1scpi07.svelte-1scpi07:checked,[type=radio].svelte-1scpi07.svelte-1scpi07:not(:checked){position:absolute;left:-9999px;width:0;height:0;visibility:hidden}.radiobutton-tools.svelte-1scpi07:checked+label.svelte-1scpi07,.radiobutton-tools.svelte-1scpi07:not(:checked)+label.svelte-1scpi07{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-1scpi07:not(:checked)+label.svelte-1scpi07{background-color:#DAE1E5;color:#000000}.radiobutton-tools.svelte-1scpi07:checked+label.svelte-1scpi07{background-color:#326173;color:#ffffff}.radiobutton-tools.svelte-1scpi07:not(:checked)+label.svelte-1scpi07:hover{box-shadow:3px 3px 4px 0px rgba(0, 0, 0, 0.2)}.radiobutton-tools.svelte-1scpi07:checked+label.svelte-1scpi07::before,.radiobutton-tools.svelte-1scpi07:not(:checked)+label.svelte-1scpi07::before{position:absolute;content:"";top:0;left:0;width:100%;height:100%;border-radius:15px;z-index:-1}',_(document.head,e)),Tt(this,t,$o,mo,D,{allTasks:19,domains:0,events:1,movePointerDown:2},[-1,-1])}}function ho(t){let e,n=t[0].name+"";return{c(){e=A(n)},m(t,n){I(t,e,n)},p(t,o){1&o&&n!==(n=t[0].name+"")&&U(e,n)},d(t){t&&S(e)}}}function vo(t){let e;return{c(){e=A("i")},m(t,n){I(t,e,n)},d(t){t&&S(e)}}}function ko(t){let e;return{c(){e=A("activate")},m(t,n){I(t,e,n)},d(t){t&&S(e)}}}function yo(t){let e,n,o,s,r,i,l,c;return n=new t[2]({props:{$$slots:{default:[ho]},$$scope:{ctx:t}}}),s=new t[1]({props:{filled:!0,class:"info",$$slots:{default:[vo]},$$scope:{ctx:t}}}),l=new t[1]({props:{filled:!0,$$slots:{default:[ko]},$$scope:{ctx:t}}}),l.$on("click",t[6]),{c(){e=O("div"),Et(n.$$.fragment),o=P(),Et(s.$$.fragment),r=P(),i=O("div"),Et(l.$$.fragment),L(e,"class","module-name svelte-15g6xoi"),L(i,"class","activate svelte-15g6xoi")},m(t,a){I(t,e,a),Ct(n,e,null),_(e,o),Ct(s,e,null),I(t,r,a),I(t,i,a),Ct(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||($t(n.$$.fragment,t),$t(s.$$.fragment,t),$t(l.$$.fragment,t),c=!0)},o(t){gt(n.$$.fragment,t),gt(s.$$.fragment,t),gt(l.$$.fragment,t),c=!1},d(t){t&&S(e),Dt(n),Dt(s),t&&S(r),t&&S(i),Dt(l)}}}function wo(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 bo extends zt{constructor(t){var e;super(),document.getElementById("svelte-15g6xoi-style")||((e=O("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}",_(document.head,e)),Tt(this,t,wo,yo,D,{module:0,list:4,functionProp:5})}}function xo(t,e,n){const o=t.slice();return o[10]=e[n],o}function Eo(t){let e,n,o,s,r,i,l,c,a,d,u,f,p;o=new St({props:{size:"24",class:"ml"}}),l=new t[6]({});let m={ctx:t,current:null,token:null,hasCatch:!1,pending:_o,then:To,catch:Do,value:9,blocks:[,,,]};return ht(d=t[3],m),{c(){e=O("div"),n=O("div"),Et(o.$$.fragment),s=P(),r=O("div"),r.innerHTML='<h4 class="svelte-4o0fgs">Module</h4> \n <input type="search" placeholder="Suche" class="svelte-4o0fgs"/>',i=P(),Et(l.$$.fragment),c=P(),a=O("div"),m.block.c(),L(n,"class","back-button svelte-4o0fgs"),L(r,"class","header svelte-4o0fgs"),L(a,"class","content svelte-4o0fgs"),L(e,"class","table_list svelte-4o0fgs")},m(d,$){I(d,e,$),_(e,n),Ct(o,n,null),_(e,s),_(e,r),_(e,i),Ct(l,e,null),_(e,c),_(e,a),m.block.m(a,m.anchor=null),m.mount=()=>a,m.anchor=null,u=!0,f||(p=W(n,"click",t[7]),f=!0)},p(e,n){t=e,m.ctx=t,8&n&&d!==(d=t[3])&&ht(d,m)||vt(m,t,n)},i(t){u||($t(o.$$.fragment,t),$t(l.$$.fragment,t),$t(m.block),u=!0)},o(t){gt(o.$$.fragment,t),gt(l.$$.fragment,t);for(let t=0;t<3;t+=1){gt(m.blocks[t])}u=!1},d(t){t&&S(e),Dt(o),Dt(l),m.block.d(),m.token=null,m=null,f=!1,p()}}}function Co(t){let e,n,o;return n=new t[5]({props:{filled:!0,$$slots:{default:[Io]},$$scope:{ctx:t}}}),n.$on("click",t[7]),{c(){e=O("div"),Et(n.$$.fragment),L(e,"class","add-button svelte-4o0fgs")},m(t,s){I(t,e,s),Ct(n,e,null),o=!0},p(t,e){const o={};8193&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o)},i(t){o||($t(n.$$.fragment,t),o=!0)},o(t){gt(n.$$.fragment,t),o=!1},d(t){t&&S(e),Dt(n)}}}function Do(t){return{c:w,m:w,p:w,i:w,o:w,d:w}}function To(t){let e,n,o=t[9],s=[];for(let e=0;e<o.length;e+=1)s[e]=zo(xo(t,o,e));const r=t=>gt(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=j()},m(t,o){for(let e=0;e<s.length;e+=1)s[e].m(t,o);I(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=xo(t,o,i);s[i]?(s[i].p(r,n),$t(s[i],1)):(s[i]=zo(r),s[i].c(),$t(s[i],1),s[i].m(e.parentNode,e))}for(pt(),i=o.length;i<s.length;i+=1)r(i);mt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)$t(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)gt(s[t]);n=!1},d(t){N(s,t),t&&S(e)}}}function zo(t){let e,n,o,s;return n=new bo({props:{module:t[10],list:t[9],functionProp:t[8]}}),{c(){e=O("div"),Et(n.$$.fragment),o=P(),L(e,"class","module svelte-4o0fgs")},m(t,r){I(t,e,r),Ct(n,e,null),_(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||($t(n.$$.fragment,t),s=!0)},o(t){gt(n.$$.fragment,t),s=!1},d(t){t&&S(e),Dt(n)}}}function _o(t){return{c:w,m:w,p:w,i:w,o:w,d:w}}function Io(t){let e,n=t[0].text+"";return{c(){e=A(n)},m(t,n){I(t,e,n)},p(t,o){1&o&&n!==(n=t[0].text+"")&&U(e,n)},d(t){t&&S(e)}}}function So(t){let e,n,o,s;const r=[Co,Eo],i=[];function l(t,e){return t[2]?1:0}return e=l(t),n=i[e]=r[e](t),{c(){n.c(),o=j()},m(t,n){i[e].m(t,n),I(t,o,n),s=!0},p(t,s){let c=e;e=l(t),e===c?i[e].p(t,s):(pt(),gt(i[c],1,1,(()=>{i[c]=null})),mt(),n=i[e],n?n.p(t,s):(n=i[e]=r[e](t),n.c()),$t(n,1),n.m(o.parentNode,o))},i(t){s||($t(n),s=!0)},o(t){gt(n),s=!1},d(t){i[e].d(t),t&&S(o)}}}function No(t){let e,n;return e=new t[4]({props:{class:"db",$$slots:{default:[So]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,[n]){const o={};8207&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Oo(t,n,o){let r;const{Dialog:i,Button:l,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,r=s.getAllModules()),[a,u,d,r,i,l,c,function(){o(2,d=!d)},t=>u(t)]}class Fo extends zt{constructor(t){var e;super(),document.getElementById("svelte-4o0fgs-style")||((e=O("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}",_(document.head,e)),Tt(this,t,Oo,No,D,{dataItem:0,functionProp:1})}}function Ao(t){let e;return{c(){e=O("m-box"),e.innerHTML="<h3>Keine Tasks vorhanden!</h3>"},m(t,n){I(t,e,n)},p:w,i:w,o:w,d(t){t&&S(e)}}}function Po(t){let e,n,o,s;const r=[Lo,Mo,Wo,jo],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=j()},m(t,n){i[e].m(t,n),I(t,o,n),s=!0},p(t,s){let c=e;e=l(t),e===c?i[e].p(t,s):(pt(),gt(i[c],1,1,(()=>{i[c]=null})),mt(),n=i[e],n?n.p(t,s):(n=i[e]=r[e](t),n.c()),$t(n,1),n.m(o.parentNode,o))},i(t){s||($t(n),s=!0)},o(t){gt(n),s=!1},d(t){i[e].d(t),t&&S(o)}}}function jo(t){let e,n;return e=new Fo({props:{dataItem:t[0],functionProp:t[7]}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.dataItem=t[0]),32&n&&(o.functionProp=t[7]),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Wo(t){let e,n;return e=new t[6]({props:{class:"db",$$slots:{default:[Bo]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};256&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Mo(t){let e,n;return e=new t[6]({props:{class:"db",$$slots:{default:[Uo]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};258&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Lo(t){let e,n;return e=new t[6]({props:{class:"db",$$slots:{default:[Ho]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};286&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Bo(t){let e,n;return e=new m({}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Uo(t){let e,n;return e=new $({props:{movePointerDown:t[1]}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};2&n&&(o.movePointerDown=t[1]),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Ho(t){let e,n;return e=new go({props:{allTasks:t[2].task,movePointerDown:t[1],domains:t[3],events:t[4]}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(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||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Ro(t){let e,n,o,s;const r=[Po,Ao],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=j()},m(t,n){~e&&i[e].m(t,n),I(t,o,n),s=!0},p(t,[s]){let c=e;e=l(t),e===c?~e&&i[e].p(t,s):(n&&(pt(),gt(i[c],1,1,(()=>{i[c]=null})),mt()),~e?(n=i[e],n?n.p(t,s):(n=i[e]=r[e](t),n.c()),$t(n,1),n.m(o.parentNode,o)):n=null)},i(t){s||($t(n),s=!0)},o(t){gt(n),s=!1},d(t){~e&&i[e].d(t),t&&S(o)}}}function Vo(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;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,t=>d(t)]}class qo extends zt{constructor(t){super(),Tt(this,t,Vo,Ro,D,{dataItem:0,movePointerDown:1,allTasks:2,domains:3,events:4,functionProp:5})}}function Jo(t){let e,n;return e=new t[5]({props:{class:"btn--close",$$slots:{default:[Go]},$$scope:{ctx:t}}}),e.$on("click",(function(){return t[9](t[14])})),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(n,o){t=n;const s={};65536&o&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Go(t){let e,n;return e=new pe({}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Zo(t){let e,n;return e=new qo({props:{allTasks:t[2],dataItem:t[14],settings:t[1],movePointerDown:t[15],functionProp:t[11]}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};4&n&&(o.allTasks=t[2]),16384&n&&(o.dataItem=t[14]),2&n&&(o.settings=t[1]),32768&n&&(o.movePointerDown=t[15]),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Yo(t){let e,n;return e=new qo({props:{allTasks:t[2],domains:t[3],events:t[4],dataItem:t[14],settings:t[1],movePointerDown:t[15],functionProp:t[10]}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(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]),16384&n&&(o.dataItem=t[14]),2&n&&(o.settings=t[1]),32768&n&&(o.movePointerDown=t[15]),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Ko(t){let e,n,o,s,r,i=9999!==t[14].id&&Jo(t);const l=[Yo,Zo],c=[];function a(t,e){return 1111===t[14].id?0:1}return n=a(t),o=c[n]=l[n](t),{c(){i&&i.c(),e=P(),o.c(),s=j()},m(t,o){i&&i.m(t,o),I(t,e,o),c[n].m(t,o),I(t,s,o),r=!0},p(t,r){9999!==t[14].id?i?(i.p(t,r),16384&r&&$t(i,1)):(i=Jo(t),i.c(),$t(i,1),i.m(e.parentNode,e)):i&&(pt(),gt(i,1,1,(()=>{i=null})),mt());let d=n;n=a(t),n===d?c[n].p(t,r):(pt(),gt(c[d],1,1,(()=>{c[d]=null})),mt(),o=c[n],o?o.p(t,r):(o=c[n]=l[n](t),o.c()),$t(o,1),o.m(s.parentNode,s))},i(t){r||($t(i),$t(o),r=!0)},o(t){gt(i),gt(o),r=!1},d(t){i&&i.d(t),t&&S(e),c[n].d(t),t&&S(s)}}}function Qo(t){let e,o,s,r,i;function l(e){t[12](e)}let c={fillSpace:!1,rowHeight:150,cols:t[6],$$slots:{default:[Ko,({dataItem:t,movePointerDown:e})=>({14:t,15:e}),({dataItem:t,movePointerDown:e})=>(t?16384:0)|(e?32768:0)]},$$scope:{ctx:t}};return void 0!==t[0]&&(c.items=t[0]),s=new n({props:c}),Q.push((()=>xt(s,"items",l))),{c(){e=P(),o=O("section"),Et(s.$$.fragment),document.title="enablerr - Dashboard",L(o,"id","main"),L(o,"class","svelte-1uegt2l")},m(t,n){I(t,e,n),I(t,o,n),Ct(s,o,null),i=!0},p(t,[e]){const n={};114718&e&&(n.$$scope={dirty:e,ctx:t}),!r&&1&e&&(r=!0,n.items=t[0],it((()=>r=!1))),s.$set(n)},i(t){i||($t(s.$$.fragment,t),i=!0)},o(t){gt(s.$$.fragment,t),i=!1},d(t){t&&S(e),t&&S(o),Dt(s)}}}function Xo(t,n,s){const{Dialog:r,Button:i}=e;let{module:l}=n,{settings:c}=n,{allTasks:a}=n,{domains:d}=n,{events:u}=n;const f=t=>{s(0,l=l.filter((e=>e.id!==t.id))),s(0,l=o.adjust(l,6)),s(0,l=o.normalize(l,6))};async function p(t){if(null!=l.find((e=>e.id==t.id)))return;let e=o.findSpace(t,l,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}};l.push(n),s(0,l=o.adjust(l,6)),s(0,l=o.normalize(l,6))}return t.$$set=t=>{"module"in t&&s(0,l=t.module),"settings"in t&&s(1,c=t.settings),"allTasks"in t&&s(2,a=t.allTasks),"domains"in t&&s(3,d=t.domains),"events"in t&&s(4,u=t.events)},[l,c,a,d,u,i,[[9e3,6],[2e3,5],[1500,4],[1200,3],[900,2],[600,1]],f,p,t=>f(t),t=>p(t),t=>p(t),function(t){l=t,s(0,l)}]}class ts extends zt{constructor(t){var e;super(),document.getElementById("svelte-1uegt2l-style")||((e=O("style")).id="svelte-1uegt2l-style",e.textContent="section#main.svelte-1uegt2l{position:relative;width:100%;right:1em;padding-top:0.25em;padding-bottom:0.25em}section#main.svelte-1uegt2l .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}",_(document.head,e)),Tt(this,t,Xo,Qo,D,{module:0,settings:1,allTasks:2,domains:3,events:4})}}const es=[{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 ns=(t=new Date)=>es[t.getDay()];function os(t){t[12]=t[16].domains,t[13]=t[16].events,t[14]=t[16].module,t[15]=t[16].moduleList}function ss(t){return{c:w,m:w,p:w,i:w,o:w,d:w}}function rs(t){let e,n;return os(t),e=new ts({props:{module:t[14],allTasks:t[0],domains:t[12],events:t[13],settings:t[15]}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){os(t);const o={};1&n&&(o.allTasks=t[0]),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function is(t){return{c:w,m:w,p:w,i:w,o:w,d:w}}function ls(t){let e,n,o,s,r=!t[2]&&function(t){let e,n,o={ctx:t,current:null,token:null,hasCatch:!1,pending:is,then:rs,catch:ss,value:16,blocks:[,,,]};return ht(t[3](),o),{c(){e=j(),o.block.c()},m(t,s){I(t,e,s),o.block.m(t,o.anchor=s),o.mount=()=>e.parentNode,o.anchor=e,n=!0},p(e,n){vt(o,t=e,n)},i(t){n||($t(o.block),n=!0)},o(t){for(let t=0;t<3;t+=1)gt(o.blocks[t]);n=!1},d(t){t&&S(e),o.block.d(t),o.token=null,o=null}}}(t);return{c(){e=P(),n=O("section"),o=O("l-container"),r&&r.c(),document.title="enablerr - Dashboard",B(o,"class","shadow"),B(o,"maxwidth","ld"),L(n,"class","svelte-i05i0l")},m(t,i){I(t,e,i),I(t,n,i),_(n,o),r&&r.m(o,null),s=!0},p(t,[e]){t[2]||r.p(t,e)},i(t){s||($t(r),s=!0)},o(t){gt(r),s=!1},d(t){t&&S(e),t&&S(n),r&&r.d()}}}function cs(t,e,n){let o,r;T(t,i,(t=>n(6,r=t)));const{getModules:l,getDefaultLayout:c}=s,{loggedIn:a}=p;let d,f;T(t,a,(t=>n(5,o=t)));const m=-1!==window.location.search.indexOf("view=standalone");return[d,a,m,async function(){if(f=await s.getUserSettings(o.tenant),!f?.setting){const t=Math.floor(1e3+9e3*Math.random()).toString();f=await s.saveDefaultSettings(o.user,t)}i.set(f),f.role&&u.set(f.role);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):!r.role?.length||(!t.event.authorization?.length||t.event.authorization.some((t=>r.role?.find((e=>e===t.role))))))),t}(await s.getTaskqueue(o.tenant)),e=t.task.map((t=>t.event.domain));let a=[...new Set(e)];a=a.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)))];p=p.sort(((t,e)=>{let n=t.toLowerCase(),o=e.toLowerCase();return n<o?-1:n>o?1:0}));const{module:m,moduleList:$}=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(ns().value)));if(null==n||0==n.length)return e[0];return n[0]}(r);let e=[];t&&(e=[].concat.apply([],t.moduleList?.map((t=>Number(t.moduleId)))));return{module:l(e),moduleList:t}}();return n(0,d=t),{domains:a,events:p,module:m,moduleList:$}}]}function as(t){let e,n,o;return{c(){e=F("svg"),n=F("circle"),o=F("path"),L(n,"cx","10"),L(n,"cy","10"),L(n,"r","9.5"),L(n,"fill","#FF8686"),L(n,"stroke","#383F51"),L(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"),L(o,"fill","#383F51"),L(e,"class",t[0]),R(e,"margin-left",t[1]),L(e,"width","20"),L(e,"height","20"),L(e,"viewBox","0 0 20 20"),L(e,"fill","none"),L(e,"xmlns","http://www.w3.org/2000/svg")},m(t,s){I(t,e,s),_(e,n),_(e,o)},p(t,[n]){1&n&&L(e,"class",t[0]),2&n&&R(e,"margin-left",t[1])},i:w,o:w,d(t){t&&S(e)}}}function ds(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 us(t){let e,n,o;return{c(){e=F("svg"),n=F("circle"),o=F("path"),L(n,"cx","10"),L(n,"cy","10"),L(n,"r","9.5"),L(n,"fill","#FFFFFF"),L(n,"stroke","#383F51"),L(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"),L(o,"fill","#383F51"),L(e,"class",t[0]),R(e,"margin-left",t[1]),L(e,"width","20"),L(e,"height","20"),L(e,"viewBox","0 0 20 20"),L(e,"fill","none"),L(e,"xmlns","http://www.w3.org/2000/svg")},m(t,s){I(t,e,s),_(e,n),_(e,o)},p(t,[n]){1&n&&L(e,"class",t[0]),2&n&&R(e,"margin-left",t[1])},i:w,o:w,d(t){t&&S(e)}}}function fs(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 ps(t){let e,n,o,s,r,i,l,c,a,d,u,f,p;return{c(){e=F("svg"),n=F("circle"),o=F("path"),s=F("ellipse"),r=F("ellipse"),i=F("ellipse"),l=F("ellipse"),c=F("ellipse"),a=F("ellipse"),d=F("ellipse"),u=F("ellipse"),f=F("ellipse"),p=F("ellipse"),L(n,"cx","41"),L(n,"cy","41"),L(n,"r","41"),L(n,"fill","#53C6D6"),L(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"),L(o,"fill","#4F4F4F"),L(s,"cx","41"),L(s,"cy","50.5"),L(s,"rx","30"),L(s,"ry","9.5"),L(s,"fill","#828282"),L(r,"cx","31"),L(r,"cy","21.5"),L(r,"rx","5"),L(r,"ry","5.5"),L(r,"fill","#4F4F4F"),L(i,"cx","51"),L(i,"cy","21.5"),L(i,"rx","5"),L(i,"ry","5.5"),L(i,"fill","#4F4F4F"),L(l,"cx","40.5"),L(l,"cy","35"),L(l,"rx","19"),L(l,"ry","12.5"),L(l,"transform","rotate(-90 40.5 35)"),L(l,"fill","#828282"),L(c,"cx","30.5"),L(c,"cy","48.0002"),L(c,"rx","2.5"),L(c,"ry","3"),L(c,"transform","rotate(-27.8822 30.5 48.0002)"),L(c,"fill","#C4C4C4"),L(a,"cx","49.6651"),L(a,"cy","47.8481"),L(a,"rx","2.5"),L(a,"ry","3"),L(a,"transform","rotate(30 49.6651 47.8481)"),L(a,"fill","#C4C4C4"),L(d,"cx","36"),L(d,"cy","34.5"),L(d,"rx","2"),L(d,"ry","5.5"),L(d,"fill","#F2F2F2"),L(u,"cx","36"),L(u,"cy","37"),L(u,"rx","2"),L(u,"ry","3"),L(u,"fill","#4F4F4F"),L(f,"cx","44"),L(f,"cy","34.5"),L(f,"rx","2"),L(f,"ry","5.5"),L(f,"fill","#F2F2F2"),L(p,"cx","44"),L(p,"cy","37"),L(p,"rx","2"),L(p,"ry","3"),L(p,"fill","#4F4F4F"),L(e,"class",t[0]),R(e,"float",t[1]),L(e,"width","1.5em"),L(e,"height","1.5em"),L(e,"viewBox","0 0 82 82"),L(e,"fill","none"),L(e,"xmlns","http://www.w3.org/2000/svg")},m(t,m){I(t,e,m),_(e,n),_(e,o),_(e,s),_(e,r),_(e,i),_(e,l),_(e,c),_(e,a),_(e,d),_(e,u),_(e,f),_(e,p)},p(t,[n]){1&n&&L(e,"class",t[0]),2&n&&R(e,"float",t[1])},i:w,o:w,d(t){t&&S(e)}}}function ms(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 $s={IconImportant:class extends zt{constructor(t){super(),Tt(this,t,ds,as,D,{css:0,margin:1})}},IconImportantDefault:class extends zt{constructor(t){super(),Tt(this,t,fs,us,D,{css:0,margin:1})}},IconAssistant:class extends zt{constructor(t){super(),Tt(this,t,ms,ps,D,{css:0,direction:1})}}};const gs=y({component:class extends zt{constructor(t){var e;super(),document.getElementById("svelte-i05i0l-style")||((e=O("style")).id="svelte-i05i0l-style",e.textContent="section.svelte-i05i0l{margin-left:1.5em}",_(document.head,e)),Tt(this,t,cs,ls,D,{})}},domElementGetter:()=>document.getElementById("view-app")}),{bootstrap:hs,mount:vs,unmount:ks}=gs;t({bootstrap:hs,mount:vs,unmount:ks});t("Icon",$s)}}}));
|
|
1
|
+
System.register(["@enablerr-ui/layout","@enablerr-ui/form","@enablerr-ui/detail","@enablerr-ui/auth","@enablerr-ui/collab"],(function(t){"use strict";var e,n,o,s,r,i,l,c,a,d,u,f,m,p,$;return{setters:[function(t){e=t.getAttractions,n=t.getGrid,o=t.getGridHelp},function(t){s=t.Request,r=t.Storage,i=t.settings,l=t.task_notification,c=t.approval_notification,a=t.communication_notification,d=t.attachment_notification,u=t.currentRoles},function(t){f=t.List},function(t){m=t.user},function(t){p=t.SupportModule,$=t.ChatModule}],execute:function(){t("version","0.2.138");function g(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var h,v,k=(h=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)}))}},h(v={exports:{}},v.exports),v.exports),y=g(k);function w(){}function b(t){return t()}function x(){return Object.create(null)}function E(t){t.forEach(b)}function C(t){return"function"==typeof t}function D(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function T(t,e,n){t.$$.on_destroy.push(function(t,...e){if(null==t)return w;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}(e,n))}function z(t){return null==t?"":t}function _(t,e){t.appendChild(e)}function I(t,e,n){t.insertBefore(e,n||null)}function S(t){t.parentNode.removeChild(t)}function N(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function O(t){return document.createElement(t)}function F(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function A(t){return document.createTextNode(t)}function P(){return A(" ")}function j(){return A("")}function W(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function M(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function L(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function B(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:L(t,e,n)}function U(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function H(t,e){t.value=null==e?"":e}function R(t,e,n,o){t.style.setProperty(e,n,o?"important":"")}function V(t,e,n){t.classList[n?"add":"remove"](e)}let q;function J(t){q=t}function G(){if(!q)throw new Error("Function called outside component initialization");return q}function Z(t){G().$$.on_mount.push(t)}function Y(){const t=G();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)}))}}}const K=[],Q=[],X=[],tt=[],et=Promise.resolve();let nt=!1;function ot(){nt||(nt=!0,et.then(at))}function st(){return ot(),et}function rt(t){X.push(t)}function it(t){tt.push(t)}let lt=!1;const ct=new Set;function at(){if(!lt){lt=!0;do{for(let t=0;t<K.length;t+=1){const e=K[t];J(e),dt(e.$$)}for(J(null),K.length=0;Q.length;)Q.pop()();for(let t=0;t<X.length;t+=1){const e=X[t];ct.has(e)||(ct.add(e),e())}X.length=0}while(K.length);for(;tt.length;)tt.pop()();nt=!1,lt=!1,ct.clear()}}function dt(t){if(null!==t.fragment){t.update(),E(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(rt)}}const ut=new Set;let ft;function mt(){ft={r:0,c:[],p:ft}}function pt(){ft.r||E(ft.c),ft=ft.p}function $t(t,e){t&&t.i&&(ut.delete(t),t.i(e))}function gt(t,e,n,o){if(t&&t.o){if(ut.has(t))return;ut.add(t),ft&&ft.c.push((()=>{ut.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}}function ht(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&&(mt(),gt(t,1,1,(()=>{e.blocks[n]===t&&(e.blocks[n]=null)})),pt())})):e.block.d(1),l.c(),$t(l,1),l.m(e.mount(),e.anchor),c=!0),e.block=l,e.blocks&&(e.blocks[o]=l),c&&at()}if((s=t)&&"object"==typeof s&&"function"==typeof s.then){const n=G();if(t.then((t=>{J(n),o(e.then,1,e.value,t),J(null)}),(t=>{if(J(n),o(e.catch,2,e.error,t),J(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 vt(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 kt="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function yt(t,e){t.d(1),e.delete(t.key)}function wt(t,e){gt(t,1,1,(()=>{e.delete(t.key)}))}function bt(t,e,n,o,s,r,i,l,c,a,d,u){let f=t.length,m=r.length,p=f;const $={};for(;p--;)$[t[p].key]=p;const g=[],h=new Map,v=new Map;for(p=m;p--;){const t=u(s,r,p),l=n(t);let c=i.get(l);c?o&&c.p(t,e):(c=a(l,t),c.c()),h.set(l,g[p]=c),l in $&&v.set(l,Math.abs(p-$[l]))}const k=new Set,y=new Set;function w(t){$t(t,1),t.m(l,d),i.set(t.key,t),d=t.first,m--}for(;f&&m;){const e=g[m-1],n=t[f-1],o=e.key,s=n.key;e===n?(d=e.first,f--,m--):h.has(s)?!i.has(o)||k.has(o)?w(e):y.has(s)?f--:v.get(o)>v.get(s)?(y.add(o),w(e)):(k.add(s),f--):(c(n,i),f--)}for(;f--;){const e=t[f];h.has(e.key)||c(e,i)}for(;m;)w(g[m-1]);return g}function xt(t,e,n){const o=t.$$.props[e];void 0!==o&&(t.$$.bound[o]=n,n(t.$$.ctx[o]))}function Et(t){t&&t.c()}function Ct(t,e,n,o){const{fragment:s,on_mount:r,on_destroy:i,after_update:l}=t.$$;s&&s.m(e,n),o||rt((()=>{const e=r.map(b).filter(C);i?i.push(...e):E(e),t.$$.on_mount=[]})),l.forEach(rt)}function Dt(t,e){const n=t.$$;null!==n.fragment&&(E(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Tt(t,e,n,o,s,r,i=[-1]){const l=q;J(t);const c=t.$$={fragment:null,ctx:null,props:r,update:w,not_equal:s,bound:x(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:x(),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]&&(K.push(t),ot(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],c.update(),a=!0,E(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(S)}else c.fragment&&c.fragment.c();e.intro&&$t(t.$$.fragment),Ct(t,e.target,e.anchor,e.customElement),at()}J(l)}class zt{$destroy(){Dt(this,1),this.$destroy=w}$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 _t(t){let e,n,o,s;return{c(){e=F("svg"),n=F("line"),o=F("polyline"),L(n,"x1","19"),L(n,"y1","12"),L(n,"x2","5"),L(n,"y2","12"),L(o,"points","12 19 5 12 12 5"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",s="feather feather-arrow-left "+t[2])},m(t,s){I(t,e,s),_(e,n),_(e,o)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&s!==(s="feather feather-arrow-left "+t[2])&&L(e,"class",s)},i:w,o:w,d(t){t&&S(e)}}}function It(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 St extends zt{constructor(t){super(),Tt(this,t,It,_t,D,{size:0,strokeWidth:1,class:2})}}function Nt(t){let e,n,o,s;return{c(){e=F("svg"),n=F("polyline"),o=F("path"),L(n,"points","9 11 12 14 22 4"),L(o,"d","M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",s="feather feather-check-square "+t[2])},m(t,s){I(t,e,s),_(e,n),_(e,o)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&s!==(s="feather feather-check-square "+t[2])&&L(e,"class",s)},i:w,o:w,d(t){t&&S(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 zt{constructor(t){super(),Tt(this,t,Ot,Nt,D,{size:0,strokeWidth:1,class:2})}}function At(t){let e,n,o;return{c(){e=F("svg"),n=F("polyline"),L(n,"points","6 9 12 15 18 9"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",o="feather feather-chevron-down "+t[2])},m(t,o){I(t,e,o),_(e,n)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-chevron-down "+t[2])&&L(e,"class",o)},i:w,o:w,d(t){t&&S(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 jt extends zt{constructor(t){super(),Tt(this,t,Pt,At,D,{size:0,strokeWidth:1,class:2})}}function Wt(t){let e,n,o,s,r;return{c(){e=F("svg"),n=F("path"),o=F("polyline"),s=F("line"),L(n,"d","M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"),L(o,"points","7 10 12 15 17 10"),L(s,"x1","12"),L(s,"y1","15"),L(s,"x2","12"),L(s,"y2","3"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",r="feather feather-download "+t[2])},m(t,r){I(t,e,r),_(e,n),_(e,o),_(e,s)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&r!==(r="feather feather-download "+t[2])&&L(e,"class",r)},i:w,o:w,d(t){t&&S(e)}}}function Mt(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 zt{constructor(t){super(),Tt(this,t,Mt,Wt,D,{size:0,strokeWidth:1,class:2})}}function Bt(t){let e,n,o,s;return{c(){e=F("svg"),n=F("path"),o=F("path"),L(n,"d","M12 20h9"),L(o,"d","M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",s="feather feather-edit-3 "+t[2])},m(t,s){I(t,e,s),_(e,n),_(e,o)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&s!==(s="feather feather-edit-3 "+t[2])&&L(e,"class",s)},i:w,o:w,d(t){t&&S(e)}}}function Ut(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 Ht extends zt{constructor(t){super(),Tt(this,t,Ut,Bt,D,{size:0,strokeWidth:1,class:2})}}function Rt(t){let e,n,o,s,r,i;return{c(){e=F("svg"),n=F("rect"),o=F("rect"),s=F("rect"),r=F("rect"),L(n,"x","3"),L(n,"y","3"),L(n,"width","7"),L(n,"height","7"),L(o,"x","14"),L(o,"y","3"),L(o,"width","7"),L(o,"height","7"),L(s,"x","14"),L(s,"y","14"),L(s,"width","7"),L(s,"height","7"),L(r,"x","3"),L(r,"y","14"),L(r,"width","7"),L(r,"height","7"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",i="feather feather-grid "+t[2])},m(t,i){I(t,e,i),_(e,n),_(e,o),_(e,s),_(e,r)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&i!==(i="feather feather-grid "+t[2])&&L(e,"class",i)},i:w,o:w,d(t){t&&S(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 qt extends zt{constructor(t){super(),Tt(this,t,Vt,Rt,D,{size:0,strokeWidth:1,class:2})}}function Jt(t){let e,n,o,s,r,i,l,c;return{c(){e=F("svg"),n=F("line"),o=F("line"),s=F("line"),r=F("line"),i=F("line"),l=F("line"),L(n,"x1","8"),L(n,"y1","6"),L(n,"x2","21"),L(n,"y2","6"),L(o,"x1","8"),L(o,"y1","12"),L(o,"x2","21"),L(o,"y2","12"),L(s,"x1","8"),L(s,"y1","18"),L(s,"x2","21"),L(s,"y2","18"),L(r,"x1","3"),L(r,"y1","6"),L(r,"x2","3.01"),L(r,"y2","6"),L(i,"x1","3"),L(i,"y1","12"),L(i,"x2","3.01"),L(i,"y2","12"),L(l,"x1","3"),L(l,"y1","18"),L(l,"x2","3.01"),L(l,"y2","18"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",c="feather feather-list "+t[2])},m(t,c){I(t,e,c),_(e,n),_(e,o),_(e,s),_(e,r),_(e,i),_(e,l)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&c!==(c="feather feather-list "+t[2])&&L(e,"class",c)},i:w,o:w,d(t){t&&S(e)}}}function Gt(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 Zt extends zt{constructor(t){super(),Tt(this,t,Gt,Jt,D,{size:0,strokeWidth:1,class:2})}}function Yt(t){let e,n,o;return{c(){e=F("svg"),n=F("path"),L(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"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",o="feather feather-maximize "+t[2])},m(t,o){I(t,e,o),_(e,n)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-maximize "+t[2])&&L(e,"class",o)},i:w,o:w,d(t){t&&S(e)}}}function Kt(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 Qt extends zt{constructor(t){super(),Tt(this,t,Kt,Yt,D,{size:0,strokeWidth:1,class:2})}}function Xt(t){let e,n,o;return{c(){e=F("svg"),n=F("path"),L(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"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",o="feather feather-message-circle "+t[2])},m(t,o){I(t,e,o),_(e,n)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-message-circle "+t[2])&&L(e,"class",o)},i:w,o:w,d(t){t&&S(e)}}}function te(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 ee extends zt{constructor(t){super(),Tt(this,t,te,Xt,D,{size:0,strokeWidth:1,class:2})}}function ne(t){let e,n,o;return{c(){e=F("svg"),n=F("path"),L(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"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",o="feather feather-minimize "+t[2])},m(t,o){I(t,e,o),_(e,n)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-minimize "+t[2])&&L(e,"class",o)},i:w,o:w,d(t){t&&S(e)}}}function oe(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 zt{constructor(t){super(),Tt(this,t,oe,ne,D,{size:0,strokeWidth:1,class:2})}}function re(t){let e,n,o,s;return{c(){e=F("svg"),n=F("line"),o=F("line"),L(n,"x1","12"),L(n,"y1","5"),L(n,"x2","12"),L(n,"y2","19"),L(o,"x1","5"),L(o,"y1","12"),L(o,"x2","19"),L(o,"y2","12"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",s="feather feather-plus "+t[2])},m(t,s){I(t,e,s),_(e,n),_(e,o)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&s!==(s="feather feather-plus "+t[2])&&L(e,"class",s)},i:w,o:w,d(t){t&&S(e)}}}function ie(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 le extends zt{constructor(t){super(),Tt(this,t,ie,re,D,{size:0,strokeWidth:1,class:2})}}function ce(t){let e,n,o;return{c(){e=F("svg"),n=F("path"),L(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"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",o="feather feather-triangle "+t[2])},m(t,o){I(t,e,o),_(e,n)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&o!==(o="feather feather-triangle "+t[2])&&L(e,"class",o)},i:w,o:w,d(t){t&&S(e)}}}function ae(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 de extends zt{constructor(t){super(),Tt(this,t,ae,ce,D,{size:0,strokeWidth:1,class:2})}}function ue(t){let e,n,o,s;return{c(){e=F("svg"),n=F("line"),o=F("line"),L(n,"x1","18"),L(n,"y1","6"),L(n,"x2","6"),L(n,"y2","18"),L(o,"x1","6"),L(o,"y1","6"),L(o,"x2","18"),L(o,"y2","18"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width",t[0]),L(e,"height",t[0]),L(e,"fill","none"),L(e,"viewBox","0 0 24 24"),L(e,"stroke","currentColor"),L(e,"stroke-width",t[1]),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round"),L(e,"class",s="feather feather-x "+t[2])},m(t,s){I(t,e,s),_(e,n),_(e,o)},p(t,[n]){1&n&&L(e,"width",t[0]),1&n&&L(e,"height",t[0]),2&n&&L(e,"stroke-width",t[1]),4&n&&s!==(s="feather feather-x "+t[2])&&L(e,"class",s)},i:w,o:w,d(t){t&&S(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 me extends zt{constructor(t){super(),Tt(this,t,fe,ue,D,{size:0,strokeWidth:1,class:2})}}const pe=(t,e)=>{const n={...e};return(t.display?.reduce(((e,o)=>{let[s,r]=o.split(".");if(t.list?.find((({name:t})=>t===s))&&r&&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"string"!=typeof(e=n["_"+t]||n[t])||e.length<20||!(o=e.split(" · "))?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?e[t.name]?"(ja)":"(nein)":e[t.name]))).map((t=>t?.toString().split(" · ").filter((t=>!!t)).join(" · "))).filter((t=>!!t)).join(" • ")};function $e(t){let e,n,o,s;return{c(){e=F("svg"),n=F("circle"),o=F("circle"),s=F("path"),L(n,"cx","165"),L(n,"cy","30"),L(n,"r","24"),L(n,"stroke","currentColor"),L(n,"stroke-width","12"),L(o,"cx","30"),L(o,"cy","30"),L(o,"r","24"),L(o,"stroke","currentColor"),L(o,"stroke-width","12"),L(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"),L(s,"fill","currentColor"),L(e,"width","20"),L(e,"height","20"),L(e,"viewBox","0 0 195 60"),L(e,"fill","none"),L(e,"xmlns","http://www.w3.org/2000/svg")},m(t,r){I(t,e,r),_(e,n),_(e,o),_(e,s)},p:w,i:w,o:w,d(t){t&&S(e)}}}class ge extends zt{constructor(t){super(),Tt(this,t,null,$e,D,{})}}function he(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&&Et(e.$$.fragment),n=j()},m(t,s){e&&Ct(e,t,s),I(t,n,s),o=!0},p(t,o){const i={};if(32&o&&(i.size=t[5]),s!==(s=t[3])){if(e){mt();const t=e;gt(t.$$.fragment,1,0,(()=>{Dt(t,1)})),pt()}s?(e=new s(r(t)),Et(e.$$.fragment),$t(e.$$.fragment,1),Ct(e,n.parentNode,n)):e=null}else s&&e.$set(i)},i(t){o||(e&&$t(e.$$.fragment,t),o=!0)},o(t){e&>(e.$$.fragment,t),o=!1},d(t){t&&S(n),e&&Dt(e,t)}}}function ve(t){let e,n;return e=new t[6]({props:{class:"btnChip",small:!0,noPadding:!0,$$slots:{default:[ke]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};272&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function ke(t){let e;return{c(){e=A(t[4])},m(t,n){I(t,e,n)},p(t,n){16&n&&U(e,t[4])},d(t){t&&S(e)}}}function ye(t){let e,n,o,s,r,i=t[3]&&he(t),l=t[4]&&ve(t);return{c(){e=O("button"),i&&i.c(),n=P(),l&&l.c(),L(e,"title",t[0]),L(e,"class","action-btns svelte-6prhua"),V(e,"btn-workflow",t[1]),V(e,"btn-highlight",t[2])},m(c,a){I(c,e,a),i&&i.m(e,null),_(e,n),l&&l.m(e,null),o=!0,s||(r=W(e,"click",M(t[7])),s=!0)},p(t,[s]){t[3]?i?(i.p(t,s),8&s&&$t(i,1)):(i=he(t),i.c(),$t(i,1),i.m(e,n)):i&&(mt(),gt(i,1,1,(()=>{i=null})),pt()),t[4]?l?(l.p(t,s),16&s&&$t(l,1)):(l=ve(t),l.c(),$t(l,1),l.m(e,null)):l&&(mt(),gt(l,1,1,(()=>{l=null})),pt()),(!o||1&s)&&L(e,"title",t[0]),2&s&&V(e,"btn-workflow",t[1]),4&s&&V(e,"btn-highlight",t[2])},i(t){o||($t(i),$t(l),o=!0)},o(t){gt(i),gt(l),o=!1},d(t){t&&S(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;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)},[r,i,l,c,a,d,s,function(e){!function(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t(e)))}(t,e)}]}class be extends zt{constructor(t){var e;super(),document.getElementById("svelte-6prhua-style")||((e=O("style")).id="svelte-6prhua-style",e.textContent=".action-btns.svelte-6prhua{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-6prhua .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-6prhua:hover,.action-btns.svelte-6prhua:focus{background:rgba(50, 97, 115, 0.05)}.btn-workflow.svelte-6prhua{background-color:#dfaff9}.btn-workflow.svelte-6prhua:hover{background-color:hsl(279, 100%, 83%)}.btn-highlight.svelte-6prhua{background-color:#afeeee}.btn-highlight.svelte-6prhua:hover{background-color:hsl(180, 100%, 80%)}",_(document.head,e)),Tt(this,t,we,ye,D,{title:0,btnWorkflow:1,btnHighlight:2,iconComponent:3,chipContent:4,size:5})}}function xe(t){let e,n;return{c(){e=O("h5"),n=O("span"),n.textContent=`${t[2]()}`,L(n,"class","task_title task_cursor svelte-6o3k9o"),L(e,"class","task_cursor svelte-6o3k9o"),R(e,"margin","0"),R(e,"margin-top","-1em")},m(t,o){I(t,e,o),_(e,n)},p:w,d(t){t&&S(e)}}}function Ee(t){let e;return{c(){e=A(t[3])},m(t,n){I(t,e,n)},p(t,n){8&n&&U(e,t[3])},d(t){t&&S(e)}}}function Ce(t){let e,n=t[0].priority+"";return{c(){e=A(n)},m(t,n){I(t,e,n)},p(t,o){1&o&&n!==(n=t[0].priority+"")&&U(e,n)},d(t){t&&S(e)}}}function De(t){let e,n,o,s,r,i,l,c,a,d,u,f,m,p,$,g,h,v,k=t[0].event.approval&&ze(t);r=new be({props:{title:t[4].title,btnWorkflow:1===t[4].numberOfFollowers,btnHighlight:t[4].numberOfFollowers>1,iconComponent:ge,chipContent:t[4].numberOfFollowers}}),r.$on("click",t[17]),c=new be({props:{title:"Unterhaltung",btnHighlight:t[0].chat,iconComponent:ee,chipContent:t[0].chat}}),c.$on("click",t[18]),u=new be({props:{title:"Dokumente",btnHighlight:t[0].report,iconComponent:Lt,chipContent:t[0].report}}),u.$on("click",t[19]);let y=t[0].event.directEdit&&_e(t);g=new be({props:{title:"Liste der Tasks",size:"12",iconComponent:Zt}}),g.$on("click",t[21]);let w=t[0].event.directEdit&&!t[0].event.noTemplate&&Ie(t);return{c(){e=O("table"),n=O("tr"),k&&k.c(),o=P(),s=O("td"),Et(r.$$.fragment),i=P(),l=O("td"),Et(c.$$.fragment),a=P(),d=O("td"),Et(u.$$.fragment),f=P(),m=O("tr"),y&&y.c(),p=P(),$=O("td"),Et(g.$$.fragment),h=P(),w&&w.c(),L(s,"class","svelte-6o3k9o"),L(l,"class","svelte-6o3k9o"),L(d,"class","svelte-6o3k9o"),L($,"class","svelte-6o3k9o"),L(e,"class","buttonTable svelte-6o3k9o")},m(t,b){I(t,e,b),_(e,n),k&&k.m(n,null),_(n,o),_(n,s),Ct(r,s,null),_(n,i),_(n,l),Ct(c,l,null),_(n,a),_(n,d),Ct(u,d,null),_(e,f),_(e,m),y&&y.m(m,null),_(m,p),_(m,$),Ct(g,$,null),_(m,h),w&&w.m(m,null),v=!0},p(t,e){t[0].event.approval?k?(k.p(t,e),1&e&&$t(k,1)):(k=ze(t),k.c(),$t(k,1),k.m(n,o)):k&&(mt(),gt(k,1,1,(()=>{k=null})),pt());const s={};1&e&&(s.btnHighlight=t[0].chat),1&e&&(s.chipContent=t[0].chat),c.$set(s);const r={};1&e&&(r.btnHighlight=t[0].report),1&e&&(r.chipContent=t[0].report),u.$set(r),t[0].event.directEdit?y?(y.p(t,e),1&e&&$t(y,1)):(y=_e(t),y.c(),$t(y,1),y.m(m,p)):y&&(mt(),gt(y,1,1,(()=>{y=null})),pt()),t[0].event.directEdit&&!t[0].event.noTemplate?w?(w.p(t,e),1&e&&$t(w,1)):(w=Ie(t),w.c(),$t(w,1),w.m(m,null)):w&&(mt(),gt(w,1,1,(()=>{w=null})),pt())},i(t){v||($t(k),$t(r.$$.fragment,t),$t(c.$$.fragment,t),$t(u.$$.fragment,t),$t(y),$t(g.$$.fragment,t),$t(w),v=!0)},o(t){gt(k),gt(r.$$.fragment,t),gt(c.$$.fragment,t),gt(u.$$.fragment,t),gt(y),gt(g.$$.fragment,t),gt(w),v=!1},d(t){t&&S(e),k&&k.d(),Dt(r),Dt(c),Dt(u),y&&y.d(),Dt(g),w&&w.d()}}}function Te(t){let e,n,o,s,r,i=t[0].event.directEdit&&Se(t);n=new be({props:{title:"Liste der Tasks",iconComponent:Zt}}),n.$on("click",t[14]);let l=t[0].event.directEdit&&!t[0].event.noTemplate&&Ne(t);return{c(){i&&i.c(),e=P(),Et(n.$$.fragment),o=P(),l&&l.c(),s=j()},m(t,c){i&&i.m(t,c),I(t,e,c),Ct(n,t,c),I(t,o,c),l&&l.m(t,c),I(t,s,c),r=!0},p(t,n){t[0].event.directEdit?i?(i.p(t,n),1&n&&$t(i,1)):(i=Se(t),i.c(),$t(i,1),i.m(e.parentNode,e)):i&&(mt(),gt(i,1,1,(()=>{i=null})),pt()),t[0].event.directEdit&&!t[0].event.noTemplate?l?(l.p(t,n),1&n&&$t(l,1)):(l=Ne(t),l.c(),$t(l,1),l.m(s.parentNode,s)):l&&(mt(),gt(l,1,1,(()=>{l=null})),pt())},i(t){r||($t(i),$t(n.$$.fragment,t),$t(l),r=!0)},o(t){gt(i),gt(n.$$.fragment,t),gt(l),r=!1},d(t){i&&i.d(t),t&&S(e),Dt(n,t),t&&S(o),l&&l.d(t),t&&S(s)}}}function ze(t){let e,n,o;return n=new be({props:{title:"Visum",btnHighlight:!t[0].approval,iconComponent:Ft}}),n.$on("click",t[16]),{c(){e=O("td"),Et(n.$$.fragment),L(e,"class","svelte-6o3k9o")},m(t,s){I(t,e,s),Ct(n,e,null),o=!0},p(t,e){const o={};1&e&&(o.btnHighlight=!t[0].approval),n.$set(o)},i(t){o||($t(n.$$.fragment,t),o=!0)},o(t){gt(n.$$.fragment,t),o=!1},d(t){t&&S(e),Dt(n)}}}function _e(t){let e,n,o;return n=new be({props:{title:"Neuer Task",size:"12",iconComponent:le}}),n.$on("click",t[20]),{c(){e=O("td"),Et(n.$$.fragment),L(e,"class","svelte-6o3k9o")},m(t,s){I(t,e,s),Ct(n,e,null),o=!0},p:w,i(t){o||($t(n.$$.fragment,t),o=!0)},o(t){gt(n.$$.fragment,t),o=!1},d(t){t&&S(e),Dt(n)}}}function Ie(t){let e,n,o;return n=new be({props:{title:"Vorgaben",size:"12",iconComponent:Ht}}),n.$on("click",t[22]),{c(){e=O("td"),Et(n.$$.fragment),L(e,"class","svelte-6o3k9o")},m(t,s){I(t,e,s),Ct(n,e,null),o=!0},p:w,i(t){o||($t(n.$$.fragment,t),o=!0)},o(t){gt(n.$$.fragment,t),o=!1},d(t){t&&S(e),Dt(n)}}}function Se(t){let e,n;return e=new be({props:{title:"Neuer Task",iconComponent:le}}),e.$on("click",t[13]),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p:w,i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Ne(t){let e,n;return e=new be({props:{title:"Vorgaben",iconComponent:Ht}}),e.$on("click",t[15]),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p:w,i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Oe(t){let e,n,o,s,r,i,l,c,a,d,u,f,m,p,$,g,h,v,k,y,w,b,x,C,D,T,N,F=Fe(t[0])+"",j=t[0].event.domain+"",B=t[0].dueDate&&new Date(t[0].dueDate).getFullYear()<3e3,H=!!t[0].data&&xe(t),R=B&&Ee(t),V=t[0].priority<4&&Ce(t);const q=[Te,De],J=[];function G(t,e){return null!==t[0].data||t[0].event.solitaire||t[0].event.matrix?t[0].data?1:-1:0}return~(b=G(t))&&(x=J[b]=q[b](t)),{c(){e=O("tr"),n=O("td"),s=P(),r=O("td"),i=O("h4"),l=A(F),c=P(),H&&H.c(),a=P(),d=O("td"),u=A(j),f=P(),m=O("td"),p=O("div"),R&&R.c(),$=P(),g=O("div"),h=P(),v=O("td"),V&&V.c(),k=P(),y=O("td"),w=O("div"),x&&x.c(),L(n,"class",o="domain domain_"+t[1].indexOf(t[0].event.domain)+" svelte-6o3k9o"),L(i,"class","task_cursor svelte-6o3k9o"),L(r,"class","task_cursor svelte-6o3k9o"),L(d,"class","task_cursor svelte-6o3k9o"),L(p,"class","task_cursor display-full svelte-6o3k9o"),L(m,"class","svelte-6o3k9o"),L(v,"class","task_cursor txt-center svelte-6o3k9o"),L(w,"class","action-column--container display-full svelte-6o3k9o"),L(y,"class","action-column svelte-6o3k9o"),L(e,"class",C=z(null===t[0].data?"empty lined":"lined")+" svelte-6o3k9o")},m(o,x){I(o,e,x),_(e,n),_(e,s),_(e,r),_(r,i),_(i,l),_(r,c),H&&H.m(r,null),_(e,a),_(e,d),_(d,u),_(e,f),_(e,m),_(m,p),R&&R.m(p,null),_(p,$),_(p,g),_(e,h),_(e,v),V&&V.m(v,null),_(e,k),_(e,y),_(y,w),~b&&J[b].m(w,null),D=!0,T||(N=[W(r,"click",M(t[9])),W(d,"click",M(t[10])),W(m,"click",M(t[11])),W(v,"click",M(t[12]))],T=!0)},p(t,[s]){(!D||3&s&&o!==(o="domain domain_"+t[1].indexOf(t[0].event.domain)+" svelte-6o3k9o"))&&L(n,"class",o),(!D||1&s)&&F!==(F=Fe(t[0])+"")&&U(l,F),t[0].data?H?H.p(t,s):(H=xe(t),H.c(),H.m(r,null)):H&&(H.d(1),H=null),(!D||1&s)&&j!==(j=t[0].event.domain+"")&&U(u,j),1&s&&(B=t[0].dueDate&&new Date(t[0].dueDate).getFullYear()<3e3),B?R?R.p(t,s):(R=Ee(t),R.c(),R.m(p,$)):R&&(R.d(1),R=null),t[0].priority<4?V?V.p(t,s):(V=Ce(t),V.c(),V.m(v,null)):V&&(V.d(1),V=null);let i=b;b=G(t),b===i?~b&&J[b].p(t,s):(x&&(mt(),gt(J[i],1,1,(()=>{J[i]=null})),pt()),~b?(x=J[b],x?x.p(t,s):(x=J[b]=q[b](t),x.c()),$t(x,1),x.m(w,null)):x=null),(!D||1&s&&C!==(C=z(null===t[0].data?"empty lined":"lined")+" svelte-6o3k9o"))&&L(e,"class",C)},i(t){D||($t(x),D=!0)},o(t){gt(x),D=!1},d(t){t&&S(e),H&&H.d(),R&&R.d(),V&&V.d(),~b&&J[b].d(),T=!1,E(N)}}}const Fe=t=>t.data?.item?pe(t.schema,t.data.item):t.event?.title;function Ae(t){window.singleSpaNavigate(`/template/${t}`)}function Pe(t,e,n){let o;const i=Y();let{task:l}=e,{domains:c}=e;const a={title:1===l.workflow?.numberOfFollowers?l.workflow.designation:"Nachfolge Tasks",numberOfFollowers:l.workflow?l.workflow.numberOfFollowers:0};function d(t){t.event.solitaire?s.getSolitaire(t.event.class).then((e=>{const n=e.length&&e[0]._id;if(!n)return u(t,"task");s.getTaskByDocId(n).then((t=>u(t.task,"task")))})):t.data||t.event.directEdit?u(t,"task"):m(t.event.id)}function u(t,e,n=!1){i("rowClicked",{task:t,tab:e,event:n})}function f(t){u(t,1===a.numberOfFollowers?`task/${t.workflow.id}`:"workflow")}async function m(t){const e=await s.getTasksList(t);let n=e.data;const o=e.schema,r=o.identity.designation,c=o.class;let a=[],d=o.display;d&&d.length?d.map((t=>{const[e,s]=t.split(".");let r=o.list?.find((t=>t.name===e))?.item.find((t=>t.name===s));r&&(r={...r},r.name=`${e}_${s}`,n=n.map((t=>(t[e]&&(t[r.name]=t[e][s]),t)))),r||(r=o.items.find((t=>t.name===e))),a.find((t=>t?.name===e))||a.push(r)})):a=o.items,i("viewTaskList",{task:l,list:n,className:c,items:a,title:r})}const p={weekday:"short",year:"numeric",month:"short",day:"numeric"};return t.$$set=t=>{"task"in t&&n(0,l=t.task),"domains"in t&&n(1,c=t.domains)},t.$$.update=()=>{1&t.$$.dirty&&n(3,o=function(t){const e=new Date(t),n=JSON.parse(r.getItem("Locale"));return e.toLocaleDateString(n.id,p)}(l?.dueDate))},[l,c,()=>l.data?l.event.title:"",o,a,d,u,f,m,()=>d(l),()=>d(l),()=>d(l),()=>d(l),()=>u(l,"task"),()=>m(l.event.id),()=>Ae(l.event.id),()=>u(l,"visum"),()=>f(l),()=>u(l,"collab"),()=>u(l,"report"),()=>u(l,"task",!0),()=>m(l.event.id),()=>Ae(l.event.id)]}class je extends zt{constructor(t){var e;super(),document.getElementById("svelte-6o3k9o-style")||((e=O("style")).id="svelte-6o3k9o-style",e.textContent=".buttonTable.svelte-6o3k9o td.svelte-6o3k9o{padding:0.25em;border-bottom:0;text-align:center}td.svelte-6o3k9o.svelte-6o3k9o{padding:0 0.5em 0 1em;border-bottom:1px solid #ccc;vertical-align:middle}.lined.svelte-6o3k9o.svelte-6o3k9o:nth-child(2n){background-color:#eee}.lined.svelte-6o3k9o.svelte-6o3k9o:nth-child(2n+1){background-color:#f7f7f7}.lined.svelte-6o3k9o.svelte-6o3k9o:hover{background-color:#ddd}.empty.svelte-6o3k9o.svelte-6o3k9o{background-color:#f7f7f7;font-style:italic}.task_cursor.svelte-6o3k9o.svelte-6o3k9o{cursor:zoom-in}.task_title.svelte-6o3k9o.svelte-6o3k9o{display:inline-block;cursor:default;margin:0;margin-top:-1.5em;margin-bottom:0.5em;opacity:0.75;font-size:15px;font-style:italic}.display-full.svelte-6o3k9o.svelte-6o3k9o{width:max-content}.action-column.svelte-6o3k9o .action-column--container.svelte-6o3k9o{display:flex;flex-flow:row wrap;gap:0.4em}.domain.svelte-6o3k9o.svelte-6o3k9o{width:1em;padding:0 !important;background-color:#e2e2e2}.domain_0.svelte-6o3k9o.svelte-6o3k9o{background-color:#A9C0CE}.domain_1.svelte-6o3k9o.svelte-6o3k9o{background-color:#7E7F80}.domain_2.svelte-6o3k9o.svelte-6o3k9o{background-color:#55C1D9}.domain_3.svelte-6o3k9o.svelte-6o3k9o{background-color:#66A649}.domain_4.svelte-6o3k9o.svelte-6o3k9o{background-color:#F2CF63}.domain_5.svelte-6o3k9o.svelte-6o3k9o{background-color:#BF5A50}.txt-center.svelte-6o3k9o.svelte-6o3k9o{text-align:center}",_(document.head,e)),Tt(this,t,Pe,Oe,D,{task:0,domains:1,getTitle:2})}get getTitle(){return this.$$.ctx[2]}}const{document:We}=kt;function Me(t,e,n){const o=t.slice();return o[49]=e[n],o}function Le(t,e,n){const o=t.slice();return o[52]=e[n],o}function Be(t,e,n){const o=t.slice();return o[55]=e[n],o}function Ue(t){let e,n;return e=new t[10]({props:{$$slots:{default:[qe,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(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||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function He(t){let e,n,o,s,r,i,l;return n=new me({props:{size:"24",class:"ml"}}),s=new jt({props:{size:"24",class:"ml dropdown-chevron"}}),{c(){e=O("div"),Et(n.$$.fragment),o=A("\n Domain\n "),Et(s.$$.fragment),L(e,"class","filter_button--icon")},m(c,a){I(c,e,a),Ct(n,e,null),I(c,o,a),Ct(s,c,a),r=!0,i||(l=W(e,"click",t[24]),i=!0)},p:w,i(t){r||($t(n.$$.fragment,t),$t(s.$$.fragment,t),r=!0)},o(t){gt(n.$$.fragment,t),gt(s.$$.fragment,t),r=!1},d(t){t&&S(e),Dt(n),t&&S(o),Dt(s,t),i=!1,l()}}}function Re(t){let e,n,o,s,r,i,l,c,a,d,u,f=t[55]+"";return{c(){e=O("input"),s=P(),r=O("label"),i=A(f),l=P(),L(e,"class",n="checkbox-tools domain-border--"+t[0].indexOf(t[55])+" svelte-2yy2vd"),L(e,"type","checkbox"),L(e,"name",t[13].DOMAIN),L(e,"id",o=t[55]),L(r,"class",c="for-checkbox-tools domain-border domain-border--"+t[0].indexOf(t[55])+" svelte-2yy2vd"),L(r,"for",a=t[55])},m(n,o){I(n,e,o),I(n,s,o),I(n,r,o),_(r,i),_(r,l),d||(u=W(e,"change",t[16]),d=!0)},p(t,s){1&s[0]&&n!==(n="checkbox-tools domain-border--"+t[0].indexOf(t[55])+" svelte-2yy2vd")&&L(e,"class",n),1&s[0]&&o!==(o=t[55])&&L(e,"id",o),1&s[0]&&f!==(f=t[55]+"")&&U(i,f),1&s[0]&&c!==(c="for-checkbox-tools domain-border domain-border--"+t[0].indexOf(t[55])+" svelte-2yy2vd")&&L(r,"class",c),1&s[0]&&a!==(a=t[55])&&L(r,"for",a)},d(t){t&&S(e),t&&S(s),t&&S(r),d=!1,u()}}}function Ve(t){let e,n=t[0],o=[];for(let e=0;e<n.length;e+=1)o[e]=Re(Be(t,n,e));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=j()},m(t,n){for(let e=0;e<o.length;e+=1)o[e].m(t,n);I(t,e,n)},p(t,s){if(73729&s[0]){let r;for(n=t[0],r=0;r<n.length;r+=1){const i=Be(t,n,r);o[r]?o[r].p(i,s):(o[r]=Re(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){N(o,t),t&&S(e)}}}function qe(t){let e,n,o,s;return e=new t[9]({props:{class:"add_filter_button",id:"filterbutton-"+t[13].DOMAIN,$$slots:{default:[He]},$$scope:{ctx:t}}}),e.$on("click",(function(){C(t[48])&&t[48].apply(this,arguments)})),o=new t[11]({props:{class:"dropdown-filter",verticalAlignment:"bottom",$$slots:{default:[Ve]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment),n=P(),Et(o.$$.fragment)},m(t,r){Ct(e,t,r),I(t,n,r),Ct(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||($t(e.$$.fragment,t),$t(o.$$.fragment,t),s=!0)},o(t){gt(e.$$.fragment,t),gt(o.$$.fragment,t),s=!1},d(t){Dt(e,t),t&&S(n),Dt(o,t)}}}function Je(t){let e,n;return e=new t[10]({props:{$$slots:{default:[Ke,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};129&n[0]|134348800&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Ge(t){let e,n,o,s,r,i,l;return n=new me({props:{size:"24",class:"ml"}}),s=new jt({props:{size:"24",class:"ml dropdown-chevron"}}),{c(){e=O("div"),Et(n.$$.fragment),o=A("\n Ereignis\n "),Et(s.$$.fragment),L(e,"class","filter_button--icon")},m(c,a){I(c,e,a),Ct(n,e,null),I(c,o,a),Ct(s,c,a),r=!0,i||(l=W(e,"click",t[25]),i=!0)},p:w,i(t){r||($t(n.$$.fragment,t),$t(s.$$.fragment,t),r=!0)},o(t){gt(n.$$.fragment,t),gt(s.$$.fragment,t),r=!1},d(t){t&&S(e),Dt(n),t&&S(o),Dt(s,t),i=!1,l()}}}function Ze(t,e){let n,o,s,r,i,l,c,a,d,u,f,m=e[52].split("|")[0]+"";return{key:t,first:null,c(){n=O("input"),r=P(),i=O("label"),l=A(m),c=P(),L(n,"class",o="checkbox-tools domain-border--"+e[19](e[0],e[52])+" svelte-2yy2vd"),L(n,"type","checkbox"),L(n,"name",e[13].EVENT),L(n,"id",s=e[52].split("|")[0]),L(i,"class",a="for-checkbox-tools domain-border domain-border--"+e[19](e[0],e[52])+" svelte-2yy2vd"),L(i,"for",d=e[52].split("|")[0]),this.first=n},m(t,o){I(t,n,o),I(t,r,o),I(t,i,o),_(i,l),_(i,c),u||(f=W(n,"change",e[15]),u=!0)},p(t,r){e=t,129&r[0]&&o!==(o="checkbox-tools domain-border--"+e[19](e[0],e[52])+" svelte-2yy2vd")&&L(n,"class",o),128&r[0]&&s!==(s=e[52].split("|")[0])&&L(n,"id",s),128&r[0]&&m!==(m=e[52].split("|")[0]+"")&&U(l,m),129&r[0]&&a!==(a="for-checkbox-tools domain-border domain-border--"+e[19](e[0],e[52])+" svelte-2yy2vd")&&L(i,"class",a),128&r[0]&&d!==(d=e[52].split("|")[0])&&L(i,"for",d)},d(t){t&&S(n),t&&S(r),t&&S(i),u=!1,f()}}}function Ye(t){let e,n=[],o=new Map,s=t[7];const r=t=>t[52];for(let e=0;e<s.length;e+=1){let i=Le(t,s,e),l=r(i);o.set(l,n[e]=Ze(l,i))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=j()},m(t,o){for(let e=0;e<n.length;e+=1)n[e].m(t,o);I(t,e,o)},p(t,i){565377&i[0]&&(s=t[7],n=bt(n,i,r,1,t,s,o,e.parentNode,yt,Ze,e,Le))},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&S(e)}}}function Ke(t){let e,n,o,s;return e=new t[9]({props:{class:"add_filter_button",id:"filterbutton-"+t[13].EVENT,$$slots:{default:[Ge]},$$scope:{ctx:t}}}),e.$on("click",(function(){C(t[48])&&t[48].apply(this,arguments)})),o=new t[11]({props:{class:"dropdown-filter",verticalAlignment:"bottom",$$slots:{default:[Ye]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment),n=P(),Et(o.$$.fragment)},m(t,r){Ct(e,t,r),I(t,n,r),Ct(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={};129&s[0]|134217728&s[1]&&(i.$$scope={dirty:s,ctx:t}),o.$set(i)},i(t){s||($t(e.$$.fragment,t),$t(o.$$.fragment,t),s=!0)},o(t){gt(e.$$.fragment,t),gt(o.$$.fragment,t),s=!1},d(t){Dt(e,t),t&&S(n),Dt(o,t)}}}function Qe(t){let e,n;return e=new t[10]({props:{$$slots:{default:[sn,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(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||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Xe(t){let e,n,o,s,r,i,l;return n=new me({props:{size:"24",class:"ml"}}),s=new jt({props:{size:"24",class:"ml dropdown-chevron"}}),{c(){e=O("div"),Et(n.$$.fragment),o=A("\n Status\n "),Et(s.$$.fragment),L(e,"class","filter_button--icon")},m(c,a){I(c,e,a),Ct(n,e,null),I(c,o,a),Ct(s,c,a),r=!0,i||(l=W(e,"click",t[26]),i=!0)},p:w,i(t){r||($t(n.$$.fragment,t),$t(s.$$.fragment,t),r=!0)},o(t){gt(n.$$.fragment,t),gt(s.$$.fragment,t),r=!1},d(t){t&&S(e),Dt(n),t&&S(o),Dt(s,t),i=!1,l()}}}function tn(t){let e,n,o,s,r;return{c(){e=O("input"),n=P(),o=O("label"),o.textContent="Vorlage ",L(e,"class","checkbox-tools svelte-2yy2vd"),L(e,"type","checkbox"),L(e,"name",t[13].STATUS),L(e,"id","vorlage"),L(o,"class","for-checkbox-tools svelte-2yy2vd"),L(o,"for","vorlage")},m(i,l){I(i,e,l),I(i,n,l),I(i,o,l),s||(r=W(e,"change",t[15]),s=!0)},p:w,d(t){t&&S(e),t&&S(n),t&&S(o),s=!1,r()}}}function en(t){let e,n,o,s,r,i,l,c=t[49]+"";return{c(){e=O("input"),n=P(),o=O("label"),s=A(c),r=P(),L(e,"class","checkbox-tools svelte-2yy2vd"),L(e,"type","checkbox"),L(e,"name",t[13].STATUS),L(e,"id",t[49]),L(o,"class","for-checkbox-tools svelte-2yy2vd"),L(o,"for",t[49])},m(c,a){I(c,e,a),I(c,n,a),I(c,o,a),_(o,s),_(o,r),i||(l=W(e,"change",t[15]),i=!0)},p:w,d(t){t&&S(e),t&&S(n),t&&S(o),i=!1,l()}}}function nn(t){let e;let n=function(t,e){return t[49]?en:tn}(t),o=n(t);return{c(){o.c(),e=j()},m(t,n){o.m(t,n),I(t,e,n)},p(t,e){o.p(t,e)},d(t){o.d(t),t&&S(e)}}}function on(t){let e,n=t[14].size>0&&function(t){let e,n=[...t[14]],o=[];for(let e=0;e<n.length;e+=1)o[e]=nn(Me(t,n,e));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=j()},m(t,n){for(let e=0;e<o.length;e+=1)o[e].m(t,n);I(t,e,n)},p(t,s){if(57344&s[0]){let r;for(n=[...t[14]],r=0;r<n.length;r+=1){const i=Me(t,n,r);o[r]?o[r].p(i,s):(o[r]=nn(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){N(o,t),t&&S(e)}}}(t);return{c(){n&&n.c(),e=j()},m(t,o){n&&n.m(t,o),I(t,e,o)},p(t,e){t[14].size>0&&n.p(t,e)},d(t){n&&n.d(t),t&&S(e)}}}function sn(t){let e,n,o,s;return e=new t[9]({props:{class:"add_filter_button",id:"filterbutton-"+t[13].STATUS,$$slots:{default:[Xe]},$$scope:{ctx:t}}}),e.$on("click",(function(){C(t[48])&&t[48].apply(this,arguments)})),o=new t[11]({props:{class:"dropdown-filter",verticalAlignment:"bottom",$$slots:{default:[on]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment),n=P(),Et(o.$$.fragment)},m(t,r){Ct(e,t,r),I(t,n,r),Ct(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||($t(e.$$.fragment,t),$t(o.$$.fragment,t),s=!0)},o(t){gt(e.$$.fragment,t),gt(o.$$.fragment,t),s=!1},d(t){Dt(e,t),t&&S(n),Dt(o,t)}}}function rn(t){let e,n;return e=new t[10]({props:{$$slots:{default:[an,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(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||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function ln(t){let e,n,o,s,r,i,l;return n=new me({props:{size:"24",class:"ml"}}),s=new jt({props:{size:"24",class:"ml dropdown-chevron"}}),{c(){e=O("div"),Et(n.$$.fragment),o=A("\n Prio\n "),Et(s.$$.fragment),L(e,"class","filter_button--icon")},m(c,a){I(c,e,a),Ct(n,e,null),I(c,o,a),Ct(s,c,a),r=!0,i||(l=W(e,"click",t[27]),i=!0)},p:w,i(t){r||($t(n.$$.fragment,t),$t(s.$$.fragment,t),r=!0)},o(t){gt(n.$$.fragment,t),gt(s.$$.fragment,t),r=!1},d(t){t&&S(e),Dt(n),t&&S(o),Dt(s,t),i=!1,l()}}}function cn(t){let e,n,o,s,r,i,l,c,a,d,u,f,m;return{c(){e=O("input"),n=P(),o=O("label"),o.textContent="1",s=P(),r=O("input"),i=P(),l=O("label"),l.textContent="2",c=P(),a=O("input"),d=P(),u=O("label"),u.textContent="3",L(e,"class","checkbox-tools prio1 svelte-2yy2vd"),L(e,"type","checkbox"),L(e,"name",t[13].PRIO),L(e,"id","1"),L(o,"class","for-checkbox-tools prio prio1 svelte-2yy2vd"),L(o,"for","1"),L(r,"class","checkbox-tools prio2 svelte-2yy2vd"),L(r,"type","checkbox"),L(r,"name",t[13].PRIO),L(r,"id","2"),L(l,"class","for-checkbox-tools prio prio2 svelte-2yy2vd"),L(l,"for","2"),L(a,"class","checkbox-tools prio3 svelte-2yy2vd"),L(a,"type","checkbox"),L(a,"name",t[13].PRIO),L(a,"id","3"),L(u,"class","for-checkbox-tools prio prio3 svelte-2yy2vd"),L(u,"for","3")},m(p,$){I(p,e,$),I(p,n,$),I(p,o,$),I(p,s,$),I(p,r,$),I(p,i,$),I(p,l,$),I(p,c,$),I(p,a,$),I(p,d,$),I(p,u,$),f||(m=[W(e,"change",t[15]),W(r,"change",t[15]),W(a,"change",t[15])],f=!0)},p:w,d(t){t&&S(e),t&&S(n),t&&S(o),t&&S(s),t&&S(r),t&&S(i),t&&S(l),t&&S(c),t&&S(a),t&&S(d),t&&S(u),f=!1,E(m)}}}function an(t){let e,n,o,s;return e=new t[9]({props:{class:"add_filter_button",id:"filterbutton-"+t[13].PRIO,$$slots:{default:[ln]},$$scope:{ctx:t}}}),e.$on("click",(function(){C(t[48])&&t[48].apply(this,arguments)})),o=new t[11]({props:{class:"dropdown-filter",verticalAlignment:"bottom",$$slots:{default:[cn]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment),n=P(),Et(o.$$.fragment)},m(t,r){Ct(e,t,r),I(t,n,r),Ct(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||($t(e.$$.fragment,t),$t(o.$$.fragment,t),s=!0)},o(t){gt(e.$$.fragment,t),gt(o.$$.fragment,t),s=!1},d(t){Dt(e,t),t&&S(n),Dt(o,t)}}}function dn(t){let e,n;return e=new t[10]({props:{$$slots:{default:[mn,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};64&n[0]|134348800&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function un(t){let e,n,o,s,r,i,l;return n=new me({props:{size:"24",class:"ml"}}),s=new jt({props:{size:"24",class:"ml dropdown-chevron"}}),{c(){e=O("div"),Et(n.$$.fragment),o=A("\n Fälligkeit\n "),Et(s.$$.fragment),L(e,"class","filter_button--icon")},m(c,a){I(c,e,a),Ct(n,e,null),I(c,o,a),Ct(s,c,a),r=!0,i||(l=W(e,"click",t[28]),i=!0)},p:w,i(t){r||($t(n.$$.fragment,t),$t(s.$$.fragment,t),r=!0)},o(t){gt(n.$$.fragment,t),gt(s.$$.fragment,t),r=!1},d(t){t&&S(e),Dt(n),t&&S(o),Dt(s,t),i=!1,l()}}}function fn(t){let e,n,o;function s(e){t[29](e)}let r={range:!0,below:!0};return void 0!==t[6]&&(r.value=t[6]),e=new t[12]({props:r}),Q.push((()=>xt(e,"value",s))),e.$on("change",t[15]),{c(){Et(e.$$.fragment)},m(t,n){Ct(e,t,n),o=!0},p(t,o){const s={};!n&&64&o[0]&&(n=!0,s.value=t[6],it((()=>n=!1))),e.$set(s)},i(t){o||($t(e.$$.fragment,t),o=!0)},o(t){gt(e.$$.fragment,t),o=!1},d(t){Dt(e,t)}}}function mn(t){let e,n,o,s;return e=new t[9]({props:{class:"add_filter_button",id:"filterbutton-"+t[13].DUEDATE,$$slots:{default:[un]},$$scope:{ctx:t}}}),e.$on("click",(function(){C(t[48])&&t[48].apply(this,arguments)})),o=new t[11]({props:{class:"dropdown-filter",verticalAlignment:"bottom",$$slots:{default:[fn]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment),n=P(),Et(o.$$.fragment)},m(t,r){Ct(e,t,r),I(t,n,r),Ct(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={};64&s[0]|134217728&s[1]&&(i.$$scope={dirty:s,ctx:t}),o.$set(i)},i(t){s||($t(e.$$.fragment,t),$t(o.$$.fragment,t),s=!0)},o(t){gt(e.$$.fragment,t),gt(o.$$.fragment,t),s=!1},d(t){Dt(e,t),t&&S(n),Dt(o,t)}}}function pn(t){let e,n;return e=new t[10]({props:{$$slots:{default:[bn,({toggle:t})=>({48:t}),({toggle:t})=>[0,t?131072:0]]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};62&n[0]|134348800&n[1]&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function $n(t){let e,n,o;return e=new le({props:{size:"24"}}),{c(){Et(e.$$.fragment),n=A("\n Neuer Filter")},m(t,s){Ct(e,t,s),I(t,n,s),o=!0},p:w,i(t){o||($t(e.$$.fragment,t),o=!0)},o(t){gt(e.$$.fragment,t),o=!1},d(t){Dt(e,t),t&&S(n)}}}function gn(t){let e,n,o,s,r,i,l;return s=new le({props:{size:"24"}}),{c(){e=O("div"),n=O("div"),n.textContent="Domain",o=P(),Et(s.$$.fragment),L(e,"class","dropdown-content--element svelte-2yy2vd")},m(c,a){I(c,e,a),_(e,n),_(e,o),Ct(s,e,null),r=!0,i||(l=W(e,"click",t[30]),i=!0)},p:w,i(t){r||($t(s.$$.fragment,t),r=!0)},o(t){gt(s.$$.fragment,t),r=!1},d(t){t&&S(e),Dt(s),i=!1,l()}}}function hn(t){let e,n,o,s,r,i,l;return s=new le({props:{size:"24"}}),{c(){e=O("div"),n=O("div"),n.textContent="Ereignis",o=P(),Et(s.$$.fragment),L(e,"class","dropdown-content--element svelte-2yy2vd")},m(c,a){I(c,e,a),_(e,n),_(e,o),Ct(s,e,null),r=!0,i||(l=W(e,"click",t[31]),i=!0)},p:w,i(t){r||($t(s.$$.fragment,t),r=!0)},o(t){gt(s.$$.fragment,t),r=!1},d(t){t&&S(e),Dt(s),i=!1,l()}}}function vn(t){let e,n,o,s,r,i,l;return s=new le({props:{size:"24"}}),{c(){e=O("div"),n=O("div"),n.textContent="Status",o=P(),Et(s.$$.fragment),L(e,"class","dropdown-content--element svelte-2yy2vd")},m(c,a){I(c,e,a),_(e,n),_(e,o),Ct(s,e,null),r=!0,i||(l=W(e,"click",t[32]),i=!0)},p:w,i(t){r||($t(s.$$.fragment,t),r=!0)},o(t){gt(s.$$.fragment,t),r=!1},d(t){t&&S(e),Dt(s),i=!1,l()}}}function kn(t){let e,n,o,s,r,i,l;return s=new le({props:{size:"24"}}),{c(){e=O("div"),n=O("div"),n.textContent="Priorität",o=P(),Et(s.$$.fragment),L(e,"class","dropdown-content--element svelte-2yy2vd")},m(c,a){I(c,e,a),_(e,n),_(e,o),Ct(s,e,null),r=!0,i||(l=W(e,"click",t[33]),i=!0)},p:w,i(t){r||($t(s.$$.fragment,t),r=!0)},o(t){gt(s.$$.fragment,t),r=!1},d(t){t&&S(e),Dt(s),i=!1,l()}}}function yn(t){let e,n,o,s,r,i,l;return s=new le({props:{size:"24"}}),{c(){e=O("div"),n=O("div"),n.textContent="Fäligkeit",o=P(),Et(s.$$.fragment),L(e,"class","dropdown-content--element svelte-2yy2vd")},m(c,a){I(c,e,a),_(e,n),_(e,o),Ct(s,e,null),r=!0,i||(l=W(e,"click",t[34]),i=!0)},p:w,i(t){r||($t(s.$$.fragment,t),r=!0)},o(t){gt(s.$$.fragment,t),r=!1},d(t){t&&S(e),Dt(s),i=!1,l()}}}function wn(t){let e,n,o,s,r,i,l,c,a=!t[3]&&gn(t),d=!t[5]&&hn(t),u=!t[2]&&vn(t),f=!t[1]&&kn(t),m=!t[4]&&yn(t);return{c(){e=O("div"),n=O("div"),n.textContent="Wähle Filtertyp:",o=P(),a&&a.c(),s=P(),d&&d.c(),r=P(),u&&u.c(),i=P(),f&&f.c(),l=P(),m&&m.c(),L(n,"class","dropdown-content--header svelte-2yy2vd"),L(e,"class","dropdown-content svelte-2yy2vd")},m(t,p){I(t,e,p),_(e,n),_(e,o),a&&a.m(e,null),_(e,s),d&&d.m(e,null),_(e,r),u&&u.m(e,null),_(e,i),f&&f.m(e,null),_(e,l),m&&m.m(e,null),c=!0},p(t,n){t[3]?a&&(mt(),gt(a,1,1,(()=>{a=null})),pt()):a?(a.p(t,n),8&n[0]&&$t(a,1)):(a=gn(t),a.c(),$t(a,1),a.m(e,s)),t[5]?d&&(mt(),gt(d,1,1,(()=>{d=null})),pt()):d?(d.p(t,n),32&n[0]&&$t(d,1)):(d=hn(t),d.c(),$t(d,1),d.m(e,r)),t[2]?u&&(mt(),gt(u,1,1,(()=>{u=null})),pt()):u?(u.p(t,n),4&n[0]&&$t(u,1)):(u=vn(t),u.c(),$t(u,1),u.m(e,i)),t[1]?f&&(mt(),gt(f,1,1,(()=>{f=null})),pt()):f?(f.p(t,n),2&n[0]&&$t(f,1)):(f=kn(t),f.c(),$t(f,1),f.m(e,l)),t[4]?m&&(mt(),gt(m,1,1,(()=>{m=null})),pt()):m?(m.p(t,n),16&n[0]&&$t(m,1)):(m=yn(t),m.c(),$t(m,1),m.m(e,null))},i(t){c||($t(a),$t(d),$t(u),$t(f),$t(m),c=!0)},o(t){gt(a),gt(d),gt(u),gt(f),gt(m),c=!1},d(t){t&&S(e),a&&a.d(),d&&d.d(),u&&u.d(),f&&f.d(),m&&m.d()}}}function bn(t){let e,n,o,s;return e=new t[9]({props:{class:"add_filter_button",$$slots:{default:[$n]},$$scope:{ctx:t}}}),e.$on("click",(function(){C(t[48])&&t[48].apply(this,arguments)})),o=new t[11]({props:{verticalAlignment:"bottom",$$slots:{default:[wn]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment),n=P(),Et(o.$$.fragment)},m(t,r){Ct(e,t,r),I(t,n,r),Ct(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={};62&s[0]|134217728&s[1]&&(i.$$scope={dirty:s,ctx:t}),o.$set(i)},i(t){s||($t(e.$$.fragment,t),$t(o.$$.fragment,t),s=!0)},o(t){gt(e.$$.fragment,t),gt(o.$$.fragment,t),s=!1},d(t){Dt(e,t),t&&S(n),Dt(o,t)}}}function xn(t){let e,n,o,s,r,i,l,c=t[3]&&Ue(t),a=t[5]&&Je(t),d=t[2]&&Qe(t),u=t[1]&&rn(t),f=t[4]&&dn(t),m=!t[8]&&pn(t);return{c(){e=O("div"),c&&c.c(),n=P(),a&&a.c(),o=P(),d&&d.c(),s=P(),u&&u.c(),r=P(),f&&f.c(),i=P(),m&&m.c(),L(e,"class","filter--area svelte-2yy2vd")},m(t,p){I(t,e,p),c&&c.m(e,null),_(e,n),a&&a.m(e,null),_(e,o),d&&d.m(e,null),_(e,s),u&&u.m(e,null),_(e,r),f&&f.m(e,null),_(e,i),m&&m.m(e,null),l=!0},p(t,l){t[3]?c?(c.p(t,l),8&l[0]&&$t(c,1)):(c=Ue(t),c.c(),$t(c,1),c.m(e,n)):c&&(mt(),gt(c,1,1,(()=>{c=null})),pt()),t[5]?a?(a.p(t,l),32&l[0]&&$t(a,1)):(a=Je(t),a.c(),$t(a,1),a.m(e,o)):a&&(mt(),gt(a,1,1,(()=>{a=null})),pt()),t[2]?d?(d.p(t,l),4&l[0]&&$t(d,1)):(d=Qe(t),d.c(),$t(d,1),d.m(e,s)):d&&(mt(),gt(d,1,1,(()=>{d=null})),pt()),t[1]?u?(u.p(t,l),2&l[0]&&$t(u,1)):(u=rn(t),u.c(),$t(u,1),u.m(e,r)):u&&(mt(),gt(u,1,1,(()=>{u=null})),pt()),t[4]?f?(f.p(t,l),16&l[0]&&$t(f,1)):(f=dn(t),f.c(),$t(f,1),f.m(e,i)):f&&(mt(),gt(f,1,1,(()=>{f=null})),pt()),t[8]?m&&(mt(),gt(m,1,1,(()=>{m=null})),pt()):m?(m.p(t,l),256&l[0]&&$t(m,1)):(m=pn(t),m.c(),$t(m,1),m.m(e,null))},i(t){l||($t(c),$t(a),$t(d),$t(u),$t(f),$t(m),l=!0)},o(t){gt(c),gt(a),gt(d),gt(u),gt(f),gt(m),l=!1},d(t){t&&S(e),c&&c.d(),a&&a.d(),d&&d.d(),u&&u.d(),f&&f.d(),m&&m.d()}}}function En(t,e){e&&window.setTimeout((()=>{const e="filterbutton-"+t;document.getElementById(e)?.click()}))}function Cn(t,n,o){let s,r;const{Button:i,DropdownShell:l,Dropdown:c,DatePicker:a}=e,d=Y();let{shownTasks:u}=n,{tenant:f}=n,{events:m}=n,{domains:p}=n;const $=T;let g;const h=f+"-ENABLERR-FILTER";let v={start:new Date,end:new Date};const k={DOMAIN:"domain",EVENT:"event",STATUS:"status",PRIO:"prio",DUEDATE:"dueDate"};let y=!1,w=!1,b=!1,x=!1,E=!1,C=m,D=new Set;async function T(t=!0){s=[...u],await _(k.DOMAIN),await _(k.STATUS),await _(k.PRIO),await N(),await _(k.EVENT),z(t)}function z(t=!0){d("filterUpdated",{tasks:s,updateSort:t})}async function _(t,e=!1){if(!g)return;let n=await document.getElementsByName(t),r=[];if(e)r=g[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());g[t]=r,window.localStorage.setItem(h,JSON.stringify(g))}0!=r.length?t==k.DOMAIN?(!e&&E&&await A(),s=s.filter((t=>r.indexOf(t.event.domain.toLowerCase())>=0))):t==k.EVENT?s=s.filter((t=>r.indexOf(t.event.designation.toLowerCase())>=0)):t==k.STATUS?s=s.filter((t=>t.status?r.indexOf(t.status.toLowerCase())>=0:r.indexOf("vorlage")>=0)):t==k.PRIO&&(s=s.filter((t=>{if(t.priority){return r.indexOf(t.priority.toString())>=0}return r.indexOf("1")>=0}))):t==k.DOMAIN&&o(7,C=m)}function I(t){S(t),O(t)}async function S(t,e=!0){switch(t){case k.DOMAIN:o(3,b=!b),En(k.DOMAIN,e&&b),b&&E&&await F();break;case k.EVENT:o(5,E=!E),En(k.EVENT,e&&E),e&&b&&await A();break;case k.STATUS:o(2,w=!w),En(k.STATUS,e&&w);break;case k.PRIO:o(1,y=!y),En(k.PRIO,e&&y);break;case k.DUEDATE:o(4,x=!x),En(k.DUEDATE,e&&x)}}function N(){v&&(v.start||v.end)&&x&&(s=s.filter((t=>{if(t.dueDate){const e=new Date(t.dueDate).setHours(0,0,0,0),n=v.start.setHours(0,0,0,0),o=v.end.setHours(0,0,0,0);return e>=n&&e<=o}return!1})),g[k.DUEDATE]=v)}function O(t){if(t==k.DUEDATE)o(6,v={start:new Date,end:new Date}),g[k.DUEDATE]={start:void 0,end:void 0},window.localStorage.setItem(h,JSON.stringify(g)),o(4,x=!1);else{let e=document.getElementsByName(t.toLowerCase());for(let t of e)t.checked=!1}T()}Z((()=>{g=window.localStorage.getItem(h),g=JSON.parse(g),g||(g={[k.DOMAIN]:[],[k.EVENT]:[],[k.STATUS]:[],[k.DUEDATE]:{start:void 0,end:void 0},[k.PRIO]:[],[k.LISTMODEACTIVE]:!0},window.localStorage.setItem(h,JSON.stringify(g))),g[k.DOMAIN].length&&(S(k.DOMAIN,!1),_(k.DOMAIN,!0)),g[k.EVENT]?.length&&(S(k.EVENT,!1),_(k.EVENT,!0)),g[k.STATUS].length&&(S(k.STATUS,!1),_(k.STATUS,!0)),g[k.PRIO].length&&(S(k.PRIO,!1),_(k.PRIO,!0)),g[k.DUEDATE].start&&g[k.DUEDATE].end&&(S(k.DUEDATE,!1),o(6,v.start=new Date(g[k.DUEDATE].start),v),o(6,v.end=new Date(g[k.DUEDATE].end),v),N()),z()}));const F=async()=>{const t=[...document.getElementsByName(k.EVENT)];for(const e of t)if(e.checked){const t=e.id,n=m.find((e=>e.startsWith(t+"|"))).split("|")[1];await st();const o=document.getElementById(n);o&&(o.checked=!0)}o(7,C=j())},A=async()=>{document.getElementsByName(k.EVENT);const t=j();if(t?.length){o(7,C=t);for(const t of C){const[e]=t.split("|");await st().then((async()=>{await st();const t=document.getElementById(e);t&&(t.checked=!0)}))}}},P=()=>{const t=[...document.getElementsByName(k.Domain)];let e=0;for(const n of t)n.checked&&e++;0===e&&O(k.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(20,u=t.shownTasks),"tenant"in t&&o(21,f=t.tenant),"events"in t&&o(22,m=t.events),"domains"in t&&o(0,p=t.domains)},t.$$.update=()=>{1048576&t.$$.dirty[0]&&(s=[...u]),62&t.$$.dirty[0]&&o(8,r=y&&w&&b&&x&&E),1048576&t.$$.dirty[0]&&function(t){D.clear(),t.forEach((t=>{D.add(t.status)}))}(u)},[p,y,w,b,x,E,v,C,r,i,l,c,a,k,D,T,function(t){P(),T(t)},I,S,(t,e)=>{const n=e.split("|")[1];return t.indexOf(n)},u,f,m,$,()=>I(k.DOMAIN),()=>I(k.EVENT),()=>I(k.STATUS),()=>I(k.PRIO),()=>I(k.DUEDATE),function(t){v=t,o(6,v)},()=>S(k.DOMAIN),()=>S(k.EVENT),()=>S(k.STATUS),()=>S(k.PRIO),()=>S(k.DUEDATE)]}class Dn extends zt{constructor(t){var e;super(),We.getElementById("svelte-2yy2vd-style")||((e=O("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}',_(We.head,e)),Tt(this,t,Cn,xn,D,{shownTasks:20,tenant:21,events:22,domains:0,applyFilter:23},[-1,-1])}get applyFilter(){return this.$$.ctx[23]}}function Tn(t,e,n){const o=t.slice();return o[1]=e[n],o}function zn(t){let e,n;return e=new de({props:{size:"8",class:t[1]+t[0]}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.class=t[1]+t[0]),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function _n(t){let e,n,o=["vtop","rotated vbottom"],s=[];for(let e=0;e<2;e+=1)s[e]=zn(Tn(t,o,e));const r=t=>gt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=O("div");for(let t=0;t<2;t+=1)s[t].c();L(e,"class","sorting svelte-1r2vqjk")},m(t,o){I(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=Tn(t,o,i);s[i]?(s[i].p(r,n),$t(s[i],1)):(s[i]=zn(r),s[i].c(),$t(s[i],1),s[i].m(e,null))}for(mt(),i=2;i<2;i+=1)r(i);pt()}},i(t){if(!n){for(let t=0;t<2;t+=1)$t(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<2;t+=1)gt(s[t]);n=!1},d(t){t&&S(e),N(s,t)}}}function In(t,e,n){let{active:o}=e;return t.$$set=t=>{"active"in t&&n(0,o=t.active)},[o]}class Sn extends zt{constructor(t){var e;super(),document.getElementById("svelte-1r2vqjk-style")||((e=O("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)}",_(document.head,e)),Tt(this,t,In,_n,D,{active:0})}}function Nn(t,e,n){const o=t.slice();return o[6]=e[n].id,o[7]=e[n].desc,o}function On(t){let e,n,o,s,r=t[7]+"";return e=new Sn({props:{active:t[3](t[6])}}),{c(){Et(e.$$.fragment),n=P(),o=A(r)},m(t,r){Ct(e,t,r),I(t,n,r),I(t,o,r),s=!0},p(t,n){const i={};1&n&&(i.active=t[3](t[6])),e.$set(i),(!s||1&n)&&r!==(r=t[7]+"")&&U(o,r)},i(t){s||($t(e.$$.fragment,t),s=!0)},o(t){gt(e.$$.fragment,t),s=!1},d(t){Dt(e,t),t&&S(n),t&&S(o)}}}function Fn(t,e){let n,o,s,r;return o=new e[2]({props:{name:"sort",$$slots:{default:[On]},$$scope:{ctx:e}}}),o.$on("click",(function(){C(e[4](e[6]))&&e[4](e[6]).apply(this,arguments)})),{key:t,first:null,c(){n=O("th"),Et(o.$$.fragment),s=P(),this.first=n},m(t,e){I(t,n,e),Ct(o,n,null),_(n,s),r=!0},p(t,n){e=t;const s={};1025&n&&(s.$$scope={dirty:n,ctx:e}),o.$set(s)},i(t){r||($t(o.$$.fragment,t),r=!0)},o(t){gt(o.$$.fragment,t),r=!1},d(t){t&&S(n),Dt(o)}}}function An(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=Nn(t,r,e),l=i(n);s.set(l,o[e]=Fn(l,n))}return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=j()},m(t,s){for(let e=0;e<o.length;e+=1)o[e].m(t,s);I(t,e,s),n=!0},p(t,n){25&n&&(r=t[0],mt(),o=bt(o,n,i,1,t,r,s,e.parentNode,wt,Fn,e,Nn),pt())},i(t){if(!n){for(let t=0;t<r.length;t+=1)$t(o[t]);n=!0}},o(t){for(let t=0;t<o.length;t+=1)gt(o[t]);n=!1},d(t){for(let e=0;e<o.length;e+=1)o[e].d(t);t&&S(e)}}}function Pn(t){let e,n,o=t[1],s=An(t);return{c(){s.c(),e=j()},m(t,o){s.m(t,o),I(t,e,o),n=!0},p(t,[n]){2&n&&D(o,o=t[1])?(mt(),gt(s,1,1,w),pt(),s=An(t),s.c(),$t(s),s.m(e.parentNode,e)):s.p(t,n)},i(t){n||($t(s),n=!0)},o(t){gt(s),n=!1},d(t){t&&S(e),s.d(t)}}}function jn(t,n,o){const s=Y(),{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=>()=>s("sort",t)]}class Wn extends zt{constructor(t){super(),Tt(this,t,jn,Pn,D,{sortNames:0,sortSettings:1})}}function Mn(t){let e;return{c(){e=A("Aktionen")},m(t,n){I(t,e,n)},d(t){t&&S(e)}}}function Ln(t){let e,n,o,s,r,i,l,c,a;return r=new Wn({props:{sortNames:t[2],sortSettings:t[0]}}),r.$on("sort",t[3]),c=new t[1]({props:{disabled:!0,$$slots:{default:[Mn]},$$scope:{ctx:t}}}),{c(){e=O("thead"),n=O("tr"),o=O("th"),s=P(),Et(r.$$.fragment),i=P(),l=O("th"),Et(c.$$.fragment)},m(t,d){I(t,e,d),_(e,n),_(n,o),_(n,s),Ct(r,n,null),_(n,i),_(n,l),Ct(c,l,null),a=!0},p(t,[e]){const n={};1&e&&(n.sortSettings=t[0]),r.$set(n);const o={};1024&e&&(o.$$scope={dirty:e,ctx:t}),c.$set(o)},i(t){a||($t(r.$$.fragment,t),$t(c.$$.fragment,t),a=!0)},o(t){gt(r.$$.fragment,t),gt(c.$$.fragment,t),a=!1},d(t){t&&S(e),Dt(r),Dt(c)}}}function Bn(t,n,o){const s=Y(),{Button:r}=e;let i;const l={localStorageName:"ENABLERR_SORTORDER",Name:"Name",Domain:"Domain",Deadline:"Deadline",Priority:"Priority",Favorite:"Favorite"},c=[{id:l.Name,desc:"Bezeichnung"},{id:l.Domain,desc:"Domäne"},{id:l.Deadline,desc:"Frist"},{id:l.Priority,desc:"Prio"}];Z((()=>{o(0,i={orderField:"",sortCallback:()=>null,sortDir:""}),function(){const t=JSON.parse(window.localStorage.getItem(l.localStorageName));if(!t)return;t.sortCallback=d.get(t.orderField),o(0,i=t),a()}()}));const a=()=>s("sortUpdate",{settings:i}),d=new Map([[l.Name,Fe],[l.Domain,t=>t.event.domain.toLowerCase()],[l.Deadline,t=>t.dueDate],[l.Priority,t=>t.priority],[l.Favorite,t=>t.event.step.endsWith("xecution")]]);return[i,r,c,function({detail:t}){if(!t)return;const e=i.orderField;o(0,i.sortCallback=d.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(l.localStorageName,t)}(),a()}]}class Un extends zt{constructor(t){super(),Tt(this,t,Bn,Ln,D,{})}}function Hn(t,e,n){const o=t.slice();return o[22]=e[n],o}function Rn(t,e){let n,o,s;return o=new je({props:{task:e[22],domains:e[1]}}),o.$on("viewTaskList",e[11]),o.$on("rowClicked",e[8]),{key:t,first:null,c(){n=j(),Et(o.$$.fragment),this.first=n},m(t,e){I(t,n,e),Ct(o,t,e),s=!0},p(t,n){e=t;const s={};1&n&&(s.task=e[22]),2&n&&(s.domains=e[1]),o.$set(s)},i(t){s||($t(o.$$.fragment,t),s=!0)},o(t){gt(o.$$.fragment,t),s=!1},d(t){t&&S(n),Dt(o,t)}}}function Vn(t){let e,n,o;function s(e){t[17](e)}let r={class:"tModal",noClickaway:!0,$$slots:{default:[Qn]},$$scope:{ctx:t}};return void 0!==t[2]&&(r.open=t[2]),e=new t[5]({props:r}),Q.push((()=>xt(e,"open",s))),{c(){Et(e.$$.fragment)},m(t,n){Ct(e,t,n),o=!0},p(t,o){const s={};33554440&o&&(s.$$scope={dirty:o,ctx:t}),!n&&4&o&&(n=!0,s.open=t[2],it((()=>n=!1))),e.$set(s)},i(t){o||($t(e.$$.fragment,t),o=!0)},o(t){gt(e.$$.fragment,t),o=!1},d(t){Dt(e,t)}}}function qn(t){let e;return{c(){e=A("Abbrechen")},m(t,n){I(t,e,n)},d(t){t&&S(e)}}}function Jn(t){let e,n;return e=new t[4]({props:{filled:!0,$$slots:{default:[Gn]},$$scope:{ctx:t}}}),e.$on("click",(function(){C(t[9](t[3].task,"task"))&&t[9](t[3].task,"task").apply(this,arguments)})),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(n,o){t=n;const s={};33554432&o&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Gn(t){let e;return{c(){e=A("Neu")},m(t,n){I(t,e,n)},d(t){t&&S(e)}}}function Zn(t){let e;return{c(){e=O("div"),e.textContent="Es existieren noch keine Tasks von diesem Typ."},m(t,n){I(t,e,n)},p:w,i:w,o:w,d(t){t&&S(e)}}}function Yn(t){let e,n;return e=new f({props:{className:t[3].className,rowId:t[3].recID,showEdit:!0}}),e.$on("choose",t[16]),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};8&n&&(o.className=t[3].className),8&n&&(o.rowId=t[3].recID),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Kn(t){let e,n,o,s,r,i,l,c,a,d;e=new t[7]({}),s=new t[4]({props:{outline:!0,$$slots:{default:[qn]},$$scope:{ctx:t}}}),s.$on("click",t[10]);let u=t[3].task.event.directEdit&&!(t[3].task.event.solitaire&&t[3].list?.length)&&Jn(t);const f=[Yn,Zn],m=[];function p(t,e){return t[3].list&&t[3].list.length?0:1}return l=p(t),c=m[l]=f[l](t),{c(){Et(e.$$.fragment),n=P(),o=O("div"),Et(s.$$.fragment),r=P(),u&&u.c(),i=P(),c.c(),a=j(),L(o,"class","form--buttons svelte-thjang")},m(t,c){Ct(e,t,c),I(t,n,c),I(t,o,c),Ct(s,o,null),_(o,r),u&&u.m(o,null),I(t,i,c),m[l].m(t,c),I(t,a,c),d=!0},p(t,e){const n={};33554432&e&&(n.$$scope={dirty:e,ctx:t}),s.$set(n),!t[3].task.event.directEdit||t[3].task.event.solitaire&&t[3].list?.length?u&&(mt(),gt(u,1,1,(()=>{u=null})),pt()):u?(u.p(t,e),8&e&&$t(u,1)):(u=Jn(t),u.c(),$t(u,1),u.m(o,null));let r=l;l=p(t),l===r?m[l].p(t,e):(mt(),gt(m[r],1,1,(()=>{m[r]=null})),pt(),c=m[l],c?c.p(t,e):(c=m[l]=f[l](t),c.c()),$t(c,1),c.m(a.parentNode,a))},i(t){d||($t(e.$$.fragment,t),$t(s.$$.fragment,t),$t(u),$t(c),d=!0)},o(t){gt(e.$$.fragment,t),gt(s.$$.fragment,t),gt(u),gt(c),d=!1},d(t){Dt(e,t),t&&S(n),t&&S(o),Dt(s),u&&u.d(),t&&S(i),m[l].d(t),t&&S(a)}}}function Qn(t){let e,n;return e=new t[6]({props:{title:t[3].title,$$slots:{default:[Kn]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};8&n&&(o.title=t[3].title),33554440&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Xn(t){let e,n,o,s,r,i,l,c=[],a=new Map;n=new Un({}),n.$on("sortUpdate",t[14]);let d=t[13](t[0]);const u=t=>t[22].id;for(let e=0;e<d.length;e+=1){let n=Hn(t,d,e),o=u(n);a.set(o,c[e]=Rn(o,n))}let f=t[2]&&t[3]&&Vn(t);return{c(){e=O("table"),Et(n.$$.fragment),o=P(),s=O("tbody");for(let t=0;t<c.length;t+=1)c[t].c();r=P(),f&&f.c(),i=j(),L(e,"class","no_border_spacing tableFixHead svelte-thjang")},m(t,a){I(t,e,a),Ct(n,e,null),_(e,o),_(e,s);for(let t=0;t<c.length;t+=1)c[t].m(s,null);I(t,r,a),f&&f.m(t,a),I(t,i,a),l=!0},p(t,[e]){10499&e&&(d=t[13](t[0]),mt(),c=bt(c,e,u,1,t,d,a,s,wt,Rn,null,Hn),pt()),t[2]&&t[3]?f?(f.p(t,e),12&e&&$t(f,1)):(f=Vn(t),f.c(),$t(f,1),f.m(i.parentNode,i)):f&&(mt(),gt(f,1,1,(()=>{f=null})),pt())},i(t){if(!l){$t(n.$$.fragment,t);for(let t=0;t<d.length;t+=1)$t(c[t]);$t(f),l=!0}},o(t){gt(n.$$.fragment,t);for(let t=0;t<c.length;t+=1)gt(c[t]);gt(f),l=!1},d(t){t&&S(e),Dt(n);for(let t=0;t<c.length;t+=1)c[t].d();t&&S(r),f&&f.d(t),t&&S(i)}}}function to(t,n,o){const{Button:s,Modal:r,Dialog:i,Divider:l}=e,c=Y();let a,{visibleTasks:d}=n,{domains:u}=n,f=!0;function m(t,e,n=!1){const o=n?t.classNew:t.event.id,s=n?t.classNew:t.id;window.singleSpaNavigate(`/task/${o}/${s}/${e}`),g()}let p,$=!1;function g(){o(2,$=!1),o(3,p=void 0)}const h=(t,e,n)=>{m({event:{id:t.detail.row._task.event},id:t.detail.row._task._id},n)};return t.$$set=t=>{"visibleTasks"in t&&o(0,d=t.visibleTasks),"domains"in t&&o(1,u=t.domains)},t.$$.update=()=>{32769&t.$$.dirty&&function(t){if(!t)return;if(!t.sortDir&&f)return c("applyFilter",{updateSort:!1}),void(f=!1);if(!t.sortCallback)return;const e="asc"==t.sortDir?1:-1;o(0,d=d.sort(((n,o)=>{const s=t.sortCallback(n),r=t.sortCallback(o);return s>r?e:s<r?-1*e:0}))),f=!0}(a)},[d,u,$,p,s,r,i,l,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}`),g()}(e):m(e,n,o))},m,g,function(t){t.detail&&(o(2,$=!0),o(3,p=t.detail),o(3,p.recID=void 0,p))},h,t=>{const e=t.filter((t=>!!t.data)),n=t.filter((t=>!t.data));return t.map((t=>{if(!t.data)return t;const e=n.find((e=>e.event.class===t.event.class));return t.classNew=e?.event?.id||t.event.id,t})).filter((t=>!!t.data||!e.find((e=>e.event.class===t.event.class))))},t=>{t&&t.detail&&t.detail.settings&&o(15,a=t.detail.settings)},a,t=>h(t,p.task,"task"),function(t){$=t,o(2,$)}]}class eo extends zt{constructor(t){var e;super(),document.getElementById("svelte-thjang-style")||((e=O("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}.form--buttons.svelte-thjang{display:flex;gap:1em;padding-bottom:0.5em}",_(document.head,e)),Tt(this,t,to,Xn,D,{visibleTasks:0,domains:1})}}function no(t){let e,n,o,s,r,i,l,c,a,d,u=t[5](t[0])+"",f=t[4](),m=f&&function(t){let e,n,o,s,r,i,l,c,a,d=t[0].event.title+"";return e=new t[3]({}),s=new le({props:{size:"14"}}),{c(){Et(e.$$.fragment),n=P(),o=O("div"),Et(s.$$.fragment),r=P(),i=A(d),L(o,"class","createTask svelte-zghe7g")},m(d,u){Ct(e,d,u),I(d,n,u),I(d,o,u),Ct(s,o,null),_(o,r),_(o,i),l=!0,c||(a=W(o,"click",t[7]),c=!0)},p(t,e){(!l||1&e)&&d!==(d=t[0].event.title+"")&&U(i,d)},i(t){l||($t(e.$$.fragment,t),$t(s.$$.fragment,t),l=!0)},o(t){gt(e.$$.fragment,t),gt(s.$$.fragment,t),l=!1},d(t){Dt(e,t),t&&S(n),t&&S(o),Dt(s),c=!1,a()}}}(t);return{c(){e=O("div"),o=P(),s=O("div"),r=O("div"),i=A(u),l=P(),m&&m.c(),L(e,"class",n="domain_card domain_card_"+t[1].indexOf(t[0].event.domain)+" svelte-zghe7g"),L(r,"class","openTask svelte-zghe7g"),L(s,"class","task_name svelte-zghe7g")},m(n,u){I(n,e,u),I(n,o,u),I(n,s,u),_(s,r),_(r,i),_(s,l),m&&m.m(s,null),c=!0,a||(d=W(r,"click",t[6]),a=!0)},p(t,o){(!c||3&o&&n!==(n="domain_card domain_card_"+t[1].indexOf(t[0].event.domain)+" svelte-zghe7g"))&&L(e,"class",n),(!c||1&o)&&u!==(u=t[5](t[0])+"")&&U(i,u),f&&m.p(t,o)},i(t){c||($t(m),c=!0)},o(t){gt(m),c=!1},d(t){t&&S(e),t&&S(o),t&&S(s),m&&m.d(),a=!1,d()}}}function oo(t){let e,n,o;return n=new t[2]({props:{class:"lined taskCard",$$slots:{default:[no]},$$scope:{ctx:t}}}),{c(){e=O("div"),Et(n.$$.fragment),L(e,"class","click_div svelte-zghe7g")},m(t,s){I(t,e,s),Ct(n,e,null),o=!0},p(t,[e]){const o={};259&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o)},i(t){o||($t(n.$$.fragment,t),o=!0)},o(t){gt(n.$$.fragment,t),o=!1},d(t){t&&S(e),Dt(n)}}}function so(t,n,o){let{task:s}=n,{domains:r}=n;const{Card:i,Divider:l}=e;return t.$$set=t=>{"task"in t&&o(0,s=t.task),"domains"in t&&o(1,r=t.domains)},[s,r,i,l,()=>s.data?s.event.title:"",()=>{const t=Fe(s);return t.length<30?t:t.slice(0,30)+"..."},()=>function(t){window.singleSpaNavigate(`/task/${t.event.id}/${t.id}/task`)}(s),()=>function(t){window.singleSpaNavigate(`/task/${t.event.id}/${t.event.id}/task`)}(s)]}class ro extends zt{constructor(t){var e;super(),document.getElementById("svelte-zghe7g-style")||((e=O("style")).id="svelte-zghe7g-style",e.textContent=".task_name.svelte-zghe7g{font-weight:bold;text-align:center;margin-inline:auto;margin-top:2em;word-wrap:break-word;width:100%}.createTask.svelte-zghe7g{display:flex;align-items:center;justify-content:center;font-weight:500;font-size:14px}.openTask.svelte-zghe7g{min-height:2.75em}.openTask.svelte-zghe7g,.createTask.svelte-zghe7g{cursor:pointer}.click_div.svelte-zghe7g{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-zghe7g{position:absolute;top:0;left:0;height:2.3em;width:13em;background-color:#e2e2e2}.domain_card_0.svelte-zghe7g{background-color:#A9C0CE}.domain_card_1.svelte-zghe7g{background-color:#7E7F80}.domain_card_2.svelte-zghe7g{background-color:#55C1D9}.domain_card_3.svelte-zghe7g{background-color:#66A649}.domain_card_4.svelte-zghe7g{background-color:#F2CF63}.domain_card_5.svelte-zghe7g{background-color:#BF5A50}",_(document.head,e)),Tt(this,t,so,oo,D,{task:0,domains:1})}}function io(t,e,n){const o=t.slice();return o[32]=e[n],o}function lo(t){let e,n;return e=new se({props:{size:"24"}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function co(t){let e,n;return e=new Qt({props:{size:"24"}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function ao(t){let e,n,o,s;const r=[co,lo],i=[];function l(t,e){return t[5]?1:0}return e=l(t),n=i[e]=r[e](t),{c(){n.c(),o=j()},m(t,n){i[e].m(t,n),I(t,o,n),s=!0},p(t,s){let c=e;e=l(t),e!==c&&(mt(),gt(i[c],1,1,(()=>{i[c]=null})),pt(),n=i[e],n||(n=i[e]=r[e](t),n.c()),$t(n,1),n.m(o.parentNode,o))},i(t){s||($t(n),s=!0)},o(t){gt(n),s=!1},d(t){i[e].d(t),t&&S(o)}}}function uo(t){let e,n,o=[],s=new Map,r=t[19](t[6]);const i=t=>t[32].id;for(let e=0;e<r.length;e+=1){let n=io(t,r,e),l=i(n);s.set(l,o[e]=mo(l,n))}return{c(){e=O("div");for(let t=0;t<o.length;t+=1)o[t].c();L(e,"class","task-list svelte-1scpi07")},m(t,s){I(t,e,s);for(let t=0;t<o.length;t+=1)o[t].m(e,null);n=!0},p(t,n){524353&n[0]&&(r=t[19](t[6]),mt(),o=bt(o,n,i,1,t,r,s,e,wt,mo,null,io),pt())},i(t){if(!n){for(let t=0;t<r.length;t+=1)$t(o[t]);n=!0}},o(t){for(let t=0;t<o.length;t+=1)gt(o[t]);n=!1},d(t){t&&S(e);for(let t=0;t<o.length;t+=1)o[t].d()}}}function fo(t){let e,n,o;return n=new eo({props:{visibleTasks:t[6],domains:t[0]}}),n.$on("applyFilter",t[16]),{c(){e=O("div"),Et(n.$$.fragment),L(e,"class","task-list svelte-1scpi07")},m(t,s){I(t,e,s),Ct(n,e,null),o=!0},p(t,e){const o={};64&e[0]&&(o.visibleTasks=t[6]),1&e[0]&&(o.domains=t[0]),n.$set(o)},i(t){o||($t(n.$$.fragment,t),o=!0)},o(t){gt(n.$$.fragment,t),o=!1},d(t){t&&S(e),Dt(n)}}}function mo(t,e){let n,o,s;return o=new ro({props:{task:e[32],domains:e[0]}}),{key:t,first:null,c(){n=j(),Et(o.$$.fragment),this.first=n},m(t,e){I(t,n,e),Ct(o,t,e),s=!0},p(t,n){e=t;const s={};64&n[0]&&(s.task=e[32]),1&n[0]&&(s.domains=e[0]),o.$set(s)},i(t){s||($t(o.$$.fragment,t),s=!0)},o(t){gt(o.$$.fragment,t),s=!1},d(t){t&&S(n),Dt(o,t)}}}function po(t){let e,n,o,s,r,i,l,c,a,d,u,f,m,p,$,g,h,v,k,y,w,b,x,D,T,z,N,F,j,M,B,R,V,q,J=(t[10].listTitle||"Aufgabenliste")+"";function G(e){t[24](e)}i=new t[14]({props:{class:"task-maximize",$$slots:{default:[ao]},$$scope:{ctx:t}}}),i.$on("click",t[17]);let Z={domains:t[0],events:t[1],shownTasks:t[9],tenant:t[13]};void 0!==t[7]&&(Z.applyFilter=t[7]),m=new Dn({props:Z}),Q.push((()=>xt(m,"applyFilter",G))),m.$on("filterUpdated",t[15]),y=new Zt({}),z=new qt({});const Y=[fo,uo],K=[];function X(t,e){return t[4]?0:1}return F=X(t),j=K[F]=Y[F](t),{c(){e=O("div"),n=O("div"),o=O("h2"),s=A(J),r=P(),Et(i.$$.fragment),l=P(),c=O("div"),a=O("div"),d=O("div"),u=O("input"),f=P(),Et(m.$$.fragment),$=P(),g=O("div"),h=O("input"),v=P(),k=O("label"),Et(y.$$.fragment),w=P(),b=O("input"),D=P(),T=O("label"),Et(z.$$.fragment),N=P(),j.c(),M=P(),B=O("div"),L(o,"class","svelte-1scpi07"),L(n,"class","task-header--title svelte-1scpi07"),L(e,"id","TitleModuleContainer"),L(e,"class","task-header svelte-1scpi07"),L(u,"type","search ms-auto w-auto"),L(u,"class","task--search svelte-1scpi07"),L(u,"placeholder","Suche"),L(d,"class","inside_card--top__left svelte-1scpi07"),L(h,"class","radiobutton-tools svelte-1scpi07"),L(h,"type","radio"),L(h,"name","tools"),L(h,"id","tool-1"),h.checked=t[4],L(k,"class","for-radiobutton-tools svelte-1scpi07"),L(k,"for","tool-1"),L(b,"class","radiobutton-tools svelte-1scpi07"),L(b,"type","radio"),L(b,"name","tools"),L(b,"id","tool-2"),b.checked=x=!t[4],L(T,"class","for-radiobutton-tools svelte-1scpi07"),L(T,"for","tool-2"),L(a,"class","inside_card--top svelte-1scpi07"),L(B,"class","footer_spacer svelte-1scpi07"),L(c,"class","inside_card svelte-1scpi07")},m(p,x){I(p,e,x),_(e,n),_(n,o),_(o,s),_(n,r),Ct(i,n,null),I(p,l,x),I(p,c,x),_(c,a),_(a,d),_(d,u),H(u,t[3]),_(d,f),Ct(m,d,null),_(a,$),_(a,g),_(g,h),_(g,v),_(g,k),Ct(y,k,null),_(g,w),_(g,b),_(g,D),_(g,T),Ct(z,T,null),_(c,N),K[F].m(c,null),_(c,M),_(c,B),t[25](c),R=!0,V||(q=[W(n,"pointerdown",(function(){C(t[2])&&t[2].apply(this,arguments)})),W(u,"input",t[23]),W(h,"change",t[18]),W(b,"change",t[18])],V=!0)},p(e,n){t=e,(!R||1024&n[0])&&J!==(J=(t[10].listTitle||"Aufgabenliste")+"")&&U(s,J);const o={};32&n[0]|16&n[1]&&(o.$$scope={dirty:n,ctx:t}),i.$set(o),8&n[0]&&H(u,t[3]);const r={};1&n[0]&&(r.domains=t[0]),2&n[0]&&(r.events=t[1]),512&n[0]&&(r.shownTasks=t[9]),!p&&128&n[0]&&(p=!0,r.applyFilter=t[7],it((()=>p=!1))),m.$set(r),(!R||16&n[0])&&(h.checked=t[4]),(!R||16&n[0]&&x!==(x=!t[4]))&&(b.checked=x);let l=F;F=X(t),F===l?K[F].p(t,n):(mt(),gt(K[l],1,1,(()=>{K[l]=null})),pt(),j=K[F],j?j.p(t,n):(j=K[F]=Y[F](t),j.c()),$t(j,1),j.m(c,M))},i(t){R||($t(i.$$.fragment,t),$t(m.$$.fragment,t),$t(y.$$.fragment,t),$t(z.$$.fragment,t),$t(j),R=!0)},o(t){gt(i.$$.fragment,t),gt(m.$$.fragment,t),gt(y.$$.fragment,t),gt(z.$$.fragment,t),gt(j),R=!1},d(n){n&&S(e),Dt(i),n&&S(l),n&&S(c),Dt(m),Dt(y),Dt(z),K[F].d(),t[25](null),V=!1,E(q)}}}function $o(t,n,o){let r,f,p,$;T(t,i,(t=>o(10,$=t)));const{loggedIn:g,currentTasks:h}=m;T(t,g,(t=>o(27,f=t))),T(t,h,(t=>o(28,p=t)));const v=f.tenant,k=v+"-ENABLERR-VIEW",{Button:y}=e;let w,b,{allTasks:x}=n,{domains:E}=n,{events:C}=n,{movePointerDown:D}=n,z=[],_=!0,I=!1,S=[...z],N=[...r||[]],O="isListModeActive";Z((()=>{u.subscribe((t=>{o(21,z=P(t)),w()})),b=JSON.parse(window.localStorage.getItem(k)),b||(b={[O]:!0},window.localStorage.setItem(k,JSON.stringify(b))),o(4,_=!1!==b[O])}));let F,A="";l.subscribe((async t=>{t&&s.getTaskqueue(null,t.objectId).then((({task:e})=>{const n=z.findIndex((e=>e.id===t.objectId));if(n+1)o(21,z[n]=e,z);else{if("Information"===e.event?.stream?.task)return;if(!e.workflow?.numberOfFollowers&&"WaitingForApproval"!==e.status)return;z.unshift(e)}w&&w()}))})),c.subscribe((async t=>{if(!t)return;const e=z.findIndex((e=>e.id===t.objectId));e+1&&s.getTaskqueue(null,t.objectId).then((({task:t})=>{o(21,z[e]=t,z),w&&w()}))})),a.subscribe((t=>{if(!t)return;const e=t.url.split("/")[3],n=z.find((t=>t.id===e));n&&(n.chat+=1,w&&w())})),d.subscribe((t=>{if(!t)return;const e=t.taskId,n=z.find((t=>t.id===e));n&&("INSERT"===t.status?n.report+=1:"DELETE"===t.status&&(n.report-=1),w&&w())}));const P=t=>{if(!x)return{};let e={...x};return void 0===t?queue:(e=x.filter((e=>!e.event.authorization?.length||e.event.authorization.some((e=>t?.find((t=>t===e.role)))))),function(t,e,n=e){t.set(n)}(h,p=e.map((t=>t.event.id)),p),e)};return t.$$set=t=>{"allTasks"in t&&o(20,x=t.allTasks),"domains"in t&&o(0,E=t.domains),"events"in t&&o(1,C=t.events),"movePointerDown"in t&&o(2,D=t.movePointerDown)},t.$$.update=()=>{2097152&t.$$.dirty[0]&&o(9,r=[...z]),4194312&t.$$.dirty[0]&&(A.length<3&&o(6,N=[...S]),A.toString().length>2&&o(6,N=[...S.filter((t=>{const e=t=>t?.toLowerCase()?.match(`${A.toString().toLowerCase()}.*`);return e(t.event.name)||e(t.event.description)||e(Fe(t))}))]))},[E,C,D,A,_,I,N,w,F,r,$,g,h,v,y,function(t){o(22,S=t.detail.tasks),o(6,N=S)},function(){w()},function(){o(5,I=!I),I?F.parentElement.parentElement.classList.add("maximizeTaskModule"):F.parentElement.parentElement.classList.remove("maximizeTaskModule")},function(){o(4,_=!_),b[O]=_,window.localStorage.setItem(k,JSON.stringify(b))},t=>{const e=t.filter((t=>!!t.data));return t.filter((t=>!!t.data||!e.find((e=>e.event.id===t.id))))},x,z,S,function(){A=this.value,o(3,A)},function(t){w=t,o(7,w)},function(t){Q[t?"unshift":"push"]((()=>{F=t,o(8,F)}))}]}class go extends zt{constructor(t){var e;super(),document.getElementById("svelte-1scpi07-style")||((e=O("style")).id="svelte-1scpi07-style",e.textContent='.maximizeTaskModule{width:95vw !important;height:90vh !important;position:fixed !important;top:20px;z-index:2}.inside_card.svelte-1scpi07.svelte-1scpi07{margin:1.4em 1.4em 0 1.4em;display:flex;flex-flow:column;height:calc(100% - 65px - 1.4em)}.inside_card--top.svelte-1scpi07.svelte-1scpi07{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:center;row-gap:1em;margin-bottom:1em}.inside_card--top.svelte-1scpi07 .inside_card--top__left.svelte-1scpi07{display:flex;gap:1em;flex-flow:row wrap}.inside_card--top.svelte-1scpi07 .inside_card--top__left .task--search.svelte-1scpi07{padding:1em;width:20em}.inside_card--top.svelte-1scpi07 .inside_card--top__left.svelte-1scpi07 .dropdown-filter{padding:1em}.task-header.svelte-1scpi07.svelte-1scpi07{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-1scpi07.svelte-1scpi07{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-1scpi07 h2.svelte-1scpi07{margin:0}.task-header--title.svelte-1scpi07 .task-maximize{color:#fff;padding:0}.task-list.svelte-1scpi07.svelte-1scpi07{display:flex;flex-flow:row wrap;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;width:100%;border:1px solid #ccc;border-radius:0.5em}.footer_spacer.svelte-1scpi07.svelte-1scpi07{flex:0 1 4.2em}[type=radio].svelte-1scpi07.svelte-1scpi07:checked,[type=radio].svelte-1scpi07.svelte-1scpi07:not(:checked){position:absolute;left:-9999px;width:0;height:0;visibility:hidden}.radiobutton-tools.svelte-1scpi07:checked+label.svelte-1scpi07,.radiobutton-tools.svelte-1scpi07:not(:checked)+label.svelte-1scpi07{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-1scpi07:not(:checked)+label.svelte-1scpi07{background-color:#DAE1E5;color:#000000}.radiobutton-tools.svelte-1scpi07:checked+label.svelte-1scpi07{background-color:#326173;color:#ffffff}.radiobutton-tools.svelte-1scpi07:not(:checked)+label.svelte-1scpi07:hover{box-shadow:3px 3px 4px 0px rgba(0, 0, 0, 0.2)}.radiobutton-tools.svelte-1scpi07:checked+label.svelte-1scpi07::before,.radiobutton-tools.svelte-1scpi07:not(:checked)+label.svelte-1scpi07::before{position:absolute;content:"";top:0;left:0;width:100%;height:100%;border-radius:15px;z-index:-1}',_(document.head,e)),Tt(this,t,$o,po,D,{allTasks:20,domains:0,events:1,movePointerDown:2},[-1,-1])}}function ho(t){let e,n=t[0].name+"";return{c(){e=A(n)},m(t,n){I(t,e,n)},p(t,o){1&o&&n!==(n=t[0].name+"")&&U(e,n)},d(t){t&&S(e)}}}function vo(t){let e;return{c(){e=A("i")},m(t,n){I(t,e,n)},d(t){t&&S(e)}}}function ko(t){let e;return{c(){e=A("activate")},m(t,n){I(t,e,n)},d(t){t&&S(e)}}}function yo(t){let e,n,o,s,r,i,l,c;return n=new t[2]({props:{$$slots:{default:[ho]},$$scope:{ctx:t}}}),s=new t[1]({props:{filled:!0,class:"info",$$slots:{default:[vo]},$$scope:{ctx:t}}}),l=new t[1]({props:{filled:!0,$$slots:{default:[ko]},$$scope:{ctx:t}}}),l.$on("click",t[6]),{c(){e=O("div"),Et(n.$$.fragment),o=P(),Et(s.$$.fragment),r=P(),i=O("div"),Et(l.$$.fragment),L(e,"class","module-name svelte-15g6xoi"),L(i,"class","activate svelte-15g6xoi")},m(t,a){I(t,e,a),Ct(n,e,null),_(e,o),Ct(s,e,null),I(t,r,a),I(t,i,a),Ct(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||($t(n.$$.fragment,t),$t(s.$$.fragment,t),$t(l.$$.fragment,t),c=!0)},o(t){gt(n.$$.fragment,t),gt(s.$$.fragment,t),gt(l.$$.fragment,t),c=!1},d(t){t&&S(e),Dt(n),Dt(s),t&&S(r),t&&S(i),Dt(l)}}}function wo(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 bo extends zt{constructor(t){var e;super(),document.getElementById("svelte-15g6xoi-style")||((e=O("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}",_(document.head,e)),Tt(this,t,wo,yo,D,{module:0,list:4,functionProp:5})}}function xo(t,e,n){const o=t.slice();return o[10]=e[n],o}function Eo(t){let e,n,o,s,r,i,l,c,a,d,u,f,m;o=new St({props:{size:"24",class:"ml"}}),l=new t[6]({});let p={ctx:t,current:null,token:null,hasCatch:!1,pending:_o,then:To,catch:Do,value:9,blocks:[,,,]};return ht(d=t[3],p),{c(){e=O("div"),n=O("div"),Et(o.$$.fragment),s=P(),r=O("div"),r.innerHTML='<h4 class="svelte-4o0fgs">Module</h4> \n <input type="search" placeholder="Suche" class="svelte-4o0fgs"/>',i=P(),Et(l.$$.fragment),c=P(),a=O("div"),p.block.c(),L(n,"class","back-button svelte-4o0fgs"),L(r,"class","header svelte-4o0fgs"),L(a,"class","content svelte-4o0fgs"),L(e,"class","table_list svelte-4o0fgs")},m(d,$){I(d,e,$),_(e,n),Ct(o,n,null),_(e,s),_(e,r),_(e,i),Ct(l,e,null),_(e,c),_(e,a),p.block.m(a,p.anchor=null),p.mount=()=>a,p.anchor=null,u=!0,f||(m=W(n,"click",t[7]),f=!0)},p(e,n){t=e,p.ctx=t,8&n&&d!==(d=t[3])&&ht(d,p)||vt(p,t,n)},i(t){u||($t(o.$$.fragment,t),$t(l.$$.fragment,t),$t(p.block),u=!0)},o(t){gt(o.$$.fragment,t),gt(l.$$.fragment,t);for(let t=0;t<3;t+=1){gt(p.blocks[t])}u=!1},d(t){t&&S(e),Dt(o),Dt(l),p.block.d(),p.token=null,p=null,f=!1,m()}}}function Co(t){let e,n,o;return n=new t[5]({props:{filled:!0,$$slots:{default:[Io]},$$scope:{ctx:t}}}),n.$on("click",t[7]),{c(){e=O("div"),Et(n.$$.fragment),L(e,"class","add-button svelte-4o0fgs")},m(t,s){I(t,e,s),Ct(n,e,null),o=!0},p(t,e){const o={};8193&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o)},i(t){o||($t(n.$$.fragment,t),o=!0)},o(t){gt(n.$$.fragment,t),o=!1},d(t){t&&S(e),Dt(n)}}}function Do(t){return{c:w,m:w,p:w,i:w,o:w,d:w}}function To(t){let e,n,o=t[9],s=[];for(let e=0;e<o.length;e+=1)s[e]=zo(xo(t,o,e));const r=t=>gt(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();e=j()},m(t,o){for(let e=0;e<s.length;e+=1)s[e].m(t,o);I(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=xo(t,o,i);s[i]?(s[i].p(r,n),$t(s[i],1)):(s[i]=zo(r),s[i].c(),$t(s[i],1),s[i].m(e.parentNode,e))}for(mt(),i=o.length;i<s.length;i+=1)r(i);pt()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)$t(s[t]);n=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)gt(s[t]);n=!1},d(t){N(s,t),t&&S(e)}}}function zo(t){let e,n,o,s;return n=new bo({props:{module:t[10],list:t[9],functionProp:t[8]}}),{c(){e=O("div"),Et(n.$$.fragment),o=P(),L(e,"class","module svelte-4o0fgs")},m(t,r){I(t,e,r),Ct(n,e,null),_(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||($t(n.$$.fragment,t),s=!0)},o(t){gt(n.$$.fragment,t),s=!1},d(t){t&&S(e),Dt(n)}}}function _o(t){return{c:w,m:w,p:w,i:w,o:w,d:w}}function Io(t){let e,n=t[0].text+"";return{c(){e=A(n)},m(t,n){I(t,e,n)},p(t,o){1&o&&n!==(n=t[0].text+"")&&U(e,n)},d(t){t&&S(e)}}}function So(t){let e,n,o,s;const r=[Co,Eo],i=[];function l(t,e){return t[2]?1:0}return e=l(t),n=i[e]=r[e](t),{c(){n.c(),o=j()},m(t,n){i[e].m(t,n),I(t,o,n),s=!0},p(t,s){let c=e;e=l(t),e===c?i[e].p(t,s):(mt(),gt(i[c],1,1,(()=>{i[c]=null})),pt(),n=i[e],n?n.p(t,s):(n=i[e]=r[e](t),n.c()),$t(n,1),n.m(o.parentNode,o))},i(t){s||($t(n),s=!0)},o(t){gt(n),s=!1},d(t){i[e].d(t),t&&S(o)}}}function No(t){let e,n;return e=new t[4]({props:{class:"db",$$slots:{default:[So]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,[n]){const o={};8207&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Oo(t,n,o){let r;const{Dialog:i,Button:l,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,r=s.getAllModules()),[a,u,d,r,i,l,c,function(){o(2,d=!d)},t=>u(t)]}class Fo extends zt{constructor(t){var e;super(),document.getElementById("svelte-4o0fgs-style")||((e=O("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}",_(document.head,e)),Tt(this,t,Oo,No,D,{dataItem:0,functionProp:1})}}function Ao(t){let e;return{c(){e=O("m-box"),e.innerHTML="<h3>Keine Tasks vorhanden!</h3>"},m(t,n){I(t,e,n)},p:w,i:w,o:w,d(t){t&&S(e)}}}function Po(t){let e,n,o,s;const r=[Lo,Mo,Wo,jo],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=j()},m(t,n){i[e].m(t,n),I(t,o,n),s=!0},p(t,s){let c=e;e=l(t),e===c?i[e].p(t,s):(mt(),gt(i[c],1,1,(()=>{i[c]=null})),pt(),n=i[e],n?n.p(t,s):(n=i[e]=r[e](t),n.c()),$t(n,1),n.m(o.parentNode,o))},i(t){s||($t(n),s=!0)},o(t){gt(n),s=!1},d(t){i[e].d(t),t&&S(o)}}}function jo(t){let e,n;return e=new Fo({props:{dataItem:t[0],functionProp:t[7]}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.dataItem=t[0]),32&n&&(o.functionProp=t[7]),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Wo(t){let e,n;return e=new t[6]({props:{class:"db",$$slots:{default:[Bo]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};256&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Mo(t){let e,n;return e=new t[6]({props:{class:"db",$$slots:{default:[Uo]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};258&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Lo(t){let e,n;return e=new t[6]({props:{class:"db",$$slots:{default:[Ho]},$$scope:{ctx:t}}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};286&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Bo(t){let e,n;return e=new p({}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Uo(t){let e,n;return e=new $({props:{movePointerDown:t[1]}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};2&n&&(o.movePointerDown=t[1]),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Ho(t){let e,n;return e=new go({props:{allTasks:t[2].task,movePointerDown:t[1],domains:t[3],events:t[4]}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(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||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Ro(t){let e,n,o,s;const r=[Po,Ao],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=j()},m(t,n){~e&&i[e].m(t,n),I(t,o,n),s=!0},p(t,[s]){let c=e;e=l(t),e===c?~e&&i[e].p(t,s):(n&&(mt(),gt(i[c],1,1,(()=>{i[c]=null})),pt()),~e?(n=i[e],n?n.p(t,s):(n=i[e]=r[e](t),n.c()),$t(n,1),n.m(o.parentNode,o)):n=null)},i(t){s||($t(n),s=!0)},o(t){gt(n),s=!1},d(t){~e&&i[e].d(t),t&&S(o)}}}function Vo(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;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,t=>d(t)]}class qo extends zt{constructor(t){super(),Tt(this,t,Vo,Ro,D,{dataItem:0,movePointerDown:1,allTasks:2,domains:3,events:4,functionProp:5})}}function Jo(t){let e,n;return e=new t[5]({props:{class:"btn--close",$$slots:{default:[Go]},$$scope:{ctx:t}}}),e.$on("click",(function(){return t[9](t[14])})),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(n,o){t=n;const s={};65536&o&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Go(t){let e,n;return e=new me({}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Zo(t){let e,n;return e=new qo({props:{allTasks:t[2],dataItem:t[14],settings:t[1],movePointerDown:t[15],functionProp:t[11]}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){const o={};4&n&&(o.allTasks=t[2]),16384&n&&(o.dataItem=t[14]),2&n&&(o.settings=t[1]),32768&n&&(o.movePointerDown=t[15]),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Yo(t){let e,n;return e=new qo({props:{allTasks:t[2],domains:t[3],events:t[4],dataItem:t[14],settings:t[1],movePointerDown:t[15],functionProp:t[10]}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(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]),16384&n&&(o.dataItem=t[14]),2&n&&(o.settings=t[1]),32768&n&&(o.movePointerDown=t[15]),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function Ko(t){let e,n,o,s,r,i=9999!==t[14].id&&Jo(t);const l=[Yo,Zo],c=[];function a(t,e){return 1111===t[14].id?0:1}return n=a(t),o=c[n]=l[n](t),{c(){i&&i.c(),e=P(),o.c(),s=j()},m(t,o){i&&i.m(t,o),I(t,e,o),c[n].m(t,o),I(t,s,o),r=!0},p(t,r){9999!==t[14].id?i?(i.p(t,r),16384&r&&$t(i,1)):(i=Jo(t),i.c(),$t(i,1),i.m(e.parentNode,e)):i&&(mt(),gt(i,1,1,(()=>{i=null})),pt());let d=n;n=a(t),n===d?c[n].p(t,r):(mt(),gt(c[d],1,1,(()=>{c[d]=null})),pt(),o=c[n],o?o.p(t,r):(o=c[n]=l[n](t),o.c()),$t(o,1),o.m(s.parentNode,s))},i(t){r||($t(i),$t(o),r=!0)},o(t){gt(i),gt(o),r=!1},d(t){i&&i.d(t),t&&S(e),c[n].d(t),t&&S(s)}}}function Qo(t){let e,o,s,r,i;function l(e){t[12](e)}let c={fillSpace:!1,rowHeight:150,cols:t[6],$$slots:{default:[Ko,({dataItem:t,movePointerDown:e})=>({14:t,15:e}),({dataItem:t,movePointerDown:e})=>(t?16384:0)|(e?32768:0)]},$$scope:{ctx:t}};return void 0!==t[0]&&(c.items=t[0]),s=new n({props:c}),Q.push((()=>xt(s,"items",l))),{c(){e=P(),o=O("section"),Et(s.$$.fragment),document.title="enablerr - Dashboard",L(o,"id","main"),L(o,"class","svelte-1uegt2l")},m(t,n){I(t,e,n),I(t,o,n),Ct(s,o,null),i=!0},p(t,[e]){const n={};114718&e&&(n.$$scope={dirty:e,ctx:t}),!r&&1&e&&(r=!0,n.items=t[0],it((()=>r=!1))),s.$set(n)},i(t){i||($t(s.$$.fragment,t),i=!0)},o(t){gt(s.$$.fragment,t),i=!1},d(t){t&&S(e),t&&S(o),Dt(s)}}}function Xo(t,n,s){const{Dialog:r,Button:i}=e;let{module:l}=n,{settings:c}=n,{allTasks:a}=n,{domains:d}=n,{events:u}=n;const f=t=>{s(0,l=l.filter((e=>e.id!==t.id))),s(0,l=o.adjust(l,6)),s(0,l=o.normalize(l,6))};async function m(t){if(null!=l.find((e=>e.id==t.id)))return;let e=o.findSpace(t,l,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}};l.push(n),s(0,l=o.adjust(l,6)),s(0,l=o.normalize(l,6))}return t.$$set=t=>{"module"in t&&s(0,l=t.module),"settings"in t&&s(1,c=t.settings),"allTasks"in t&&s(2,a=t.allTasks),"domains"in t&&s(3,d=t.domains),"events"in t&&s(4,u=t.events)},[l,c,a,d,u,i,[[9e3,6],[2e3,5],[1500,4],[1200,3],[900,2],[600,1]],f,m,t=>f(t),t=>m(t),t=>m(t),function(t){l=t,s(0,l)}]}class ts extends zt{constructor(t){var e;super(),document.getElementById("svelte-1uegt2l-style")||((e=O("style")).id="svelte-1uegt2l-style",e.textContent="section#main.svelte-1uegt2l{position:relative;width:100%;right:1em;padding-top:0.25em;padding-bottom:0.25em}section#main.svelte-1uegt2l .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}",_(document.head,e)),Tt(this,t,Xo,Qo,D,{module:0,settings:1,allTasks:2,domains:3,events:4})}}const es=[{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 ns=(t=new Date)=>es[t.getDay()];function os(t){t[12]=t[16].domains,t[13]=t[16].events,t[14]=t[16].module,t[15]=t[16].moduleList}function ss(t){return{c:w,m:w,p:w,i:w,o:w,d:w}}function rs(t){let e,n;return os(t),e=new ts({props:{module:t[14],allTasks:t[0],domains:t[12],events:t[13],settings:t[15]}}),{c(){Et(e.$$.fragment)},m(t,o){Ct(e,t,o),n=!0},p(t,n){os(t);const o={};1&n&&(o.allTasks=t[0]),e.$set(o)},i(t){n||($t(e.$$.fragment,t),n=!0)},o(t){gt(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function is(t){return{c:w,m:w,p:w,i:w,o:w,d:w}}function ls(t){let e,n,o,s,r=!t[2]&&function(t){let e,n,o={ctx:t,current:null,token:null,hasCatch:!1,pending:is,then:rs,catch:ss,value:16,blocks:[,,,]};return ht(t[3](),o),{c(){e=j(),o.block.c()},m(t,s){I(t,e,s),o.block.m(t,o.anchor=s),o.mount=()=>e.parentNode,o.anchor=e,n=!0},p(e,n){vt(o,t=e,n)},i(t){n||($t(o.block),n=!0)},o(t){for(let t=0;t<3;t+=1)gt(o.blocks[t]);n=!1},d(t){t&&S(e),o.block.d(t),o.token=null,o=null}}}(t);return{c(){e=P(),n=O("section"),o=O("l-container"),r&&r.c(),document.title="enablerr - Dashboard",B(o,"class","shadow"),B(o,"maxwidth","ld"),L(n,"class","svelte-i05i0l")},m(t,i){I(t,e,i),I(t,n,i),_(n,o),r&&r.m(o,null),s=!0},p(t,[e]){t[2]||r.p(t,e)},i(t){s||($t(r),s=!0)},o(t){gt(r),s=!1},d(t){t&&S(e),t&&S(n),r&&r.d()}}}function cs(t,e,n){let o,r;T(t,i,(t=>n(6,r=t)));const{getModules:l,getDefaultLayout:c}=s,{loggedIn:a}=m;let d,f;T(t,a,(t=>n(5,o=t)));const p=-1!==window.location.search.indexOf("view=standalone");return[d,a,p,async function(){if(f=await s.getUserSettings(o.tenant),!f?.setting){const t=Math.floor(1e3+9e3*Math.random()).toString();f=await s.saveDefaultSettings(o.user,t)}i.set(f),f.role&&u.set(f.role);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):!r.role?.length||(!t.event.authorization?.length||t.event.authorization.some((t=>r.role?.find((e=>e===t.role))))))),t}(await s.getTaskqueue(o.tenant)),e=t.task.map((t=>t.event.domain));let a=[...new Set(e)];a=a.sort(((t,e)=>{let n=t.toLowerCase(),o=e.toLowerCase();return n<o?-1:n>o?1:0}));let m=[...new Set(t.task.map((t=>t.event.designation+"|"+t.event.domain)))];m=m.sort(((t,e)=>{let n=t.toLowerCase(),o=e.toLowerCase();return n<o?-1:n>o?1:0}));const{module:p,moduleList:$}=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(ns().value)));if(null==n||0==n.length)return e[0];return n[0]}(r);let e=[];t&&(e=[].concat.apply([],t.moduleList?.map((t=>Number(t.moduleId)))));return{module:l(e),moduleList:t}}();return n(0,d=t),{domains:a,events:m,module:p,moduleList:$}}]}function as(t){let e,n,o;return{c(){e=F("svg"),n=F("circle"),o=F("path"),L(n,"cx","10"),L(n,"cy","10"),L(n,"r","9.5"),L(n,"fill","#FF8686"),L(n,"stroke","#383F51"),L(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"),L(o,"fill","#383F51"),L(e,"class",t[0]),R(e,"margin-left",t[1]),L(e,"width","20"),L(e,"height","20"),L(e,"viewBox","0 0 20 20"),L(e,"fill","none"),L(e,"xmlns","http://www.w3.org/2000/svg")},m(t,s){I(t,e,s),_(e,n),_(e,o)},p(t,[n]){1&n&&L(e,"class",t[0]),2&n&&R(e,"margin-left",t[1])},i:w,o:w,d(t){t&&S(e)}}}function ds(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 us(t){let e,n,o;return{c(){e=F("svg"),n=F("circle"),o=F("path"),L(n,"cx","10"),L(n,"cy","10"),L(n,"r","9.5"),L(n,"fill","#FFFFFF"),L(n,"stroke","#383F51"),L(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"),L(o,"fill","#383F51"),L(e,"class",t[0]),R(e,"margin-left",t[1]),L(e,"width","20"),L(e,"height","20"),L(e,"viewBox","0 0 20 20"),L(e,"fill","none"),L(e,"xmlns","http://www.w3.org/2000/svg")},m(t,s){I(t,e,s),_(e,n),_(e,o)},p(t,[n]){1&n&&L(e,"class",t[0]),2&n&&R(e,"margin-left",t[1])},i:w,o:w,d(t){t&&S(e)}}}function fs(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 ms(t){let e,n,o,s,r,i,l,c,a,d,u,f,m;return{c(){e=F("svg"),n=F("circle"),o=F("path"),s=F("ellipse"),r=F("ellipse"),i=F("ellipse"),l=F("ellipse"),c=F("ellipse"),a=F("ellipse"),d=F("ellipse"),u=F("ellipse"),f=F("ellipse"),m=F("ellipse"),L(n,"cx","41"),L(n,"cy","41"),L(n,"r","41"),L(n,"fill","#53C6D6"),L(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"),L(o,"fill","#4F4F4F"),L(s,"cx","41"),L(s,"cy","50.5"),L(s,"rx","30"),L(s,"ry","9.5"),L(s,"fill","#828282"),L(r,"cx","31"),L(r,"cy","21.5"),L(r,"rx","5"),L(r,"ry","5.5"),L(r,"fill","#4F4F4F"),L(i,"cx","51"),L(i,"cy","21.5"),L(i,"rx","5"),L(i,"ry","5.5"),L(i,"fill","#4F4F4F"),L(l,"cx","40.5"),L(l,"cy","35"),L(l,"rx","19"),L(l,"ry","12.5"),L(l,"transform","rotate(-90 40.5 35)"),L(l,"fill","#828282"),L(c,"cx","30.5"),L(c,"cy","48.0002"),L(c,"rx","2.5"),L(c,"ry","3"),L(c,"transform","rotate(-27.8822 30.5 48.0002)"),L(c,"fill","#C4C4C4"),L(a,"cx","49.6651"),L(a,"cy","47.8481"),L(a,"rx","2.5"),L(a,"ry","3"),L(a,"transform","rotate(30 49.6651 47.8481)"),L(a,"fill","#C4C4C4"),L(d,"cx","36"),L(d,"cy","34.5"),L(d,"rx","2"),L(d,"ry","5.5"),L(d,"fill","#F2F2F2"),L(u,"cx","36"),L(u,"cy","37"),L(u,"rx","2"),L(u,"ry","3"),L(u,"fill","#4F4F4F"),L(f,"cx","44"),L(f,"cy","34.5"),L(f,"rx","2"),L(f,"ry","5.5"),L(f,"fill","#F2F2F2"),L(m,"cx","44"),L(m,"cy","37"),L(m,"rx","2"),L(m,"ry","3"),L(m,"fill","#4F4F4F"),L(e,"class",t[0]),R(e,"float",t[1]),L(e,"width","1.5em"),L(e,"height","1.5em"),L(e,"viewBox","0 0 82 82"),L(e,"fill","none"),L(e,"xmlns","http://www.w3.org/2000/svg")},m(t,p){I(t,e,p),_(e,n),_(e,o),_(e,s),_(e,r),_(e,i),_(e,l),_(e,c),_(e,a),_(e,d),_(e,u),_(e,f),_(e,m)},p(t,[n]){1&n&&L(e,"class",t[0]),2&n&&R(e,"float",t[1])},i:w,o:w,d(t){t&&S(e)}}}function ps(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 $s={IconImportant:class extends zt{constructor(t){super(),Tt(this,t,ds,as,D,{css:0,margin:1})}},IconImportantDefault:class extends zt{constructor(t){super(),Tt(this,t,fs,us,D,{css:0,margin:1})}},IconAssistant:class extends zt{constructor(t){super(),Tt(this,t,ps,ms,D,{css:0,direction:1})}}};const gs=y({component:class extends zt{constructor(t){var e;super(),document.getElementById("svelte-i05i0l-style")||((e=O("style")).id="svelte-i05i0l-style",e.textContent="section.svelte-i05i0l{margin-left:1.5em}",_(document.head,e)),Tt(this,t,cs,ls,D,{})}},domElementGetter:()=>document.getElementById("view-app")}),{bootstrap:hs,mount:vs,unmount:ks}=gs;t({bootstrap:hs,mount:vs,unmount:ks});t("Icon",$s)}}}));
|