UNPKG

@enablerr-ui/detail

Version:

enablerr - the Next Enterprise Solution

1 lines 700 kB
System.register(["@enablerr-ui/form","@enablerr-ui/layout","@enablerr-ui/auth","@enablerr-ui/task"],(function(e){"use strict";var t,n,r,i,o,s,a,l,c,d,u,h;return{setters:[function(e){t=e.Request,n=e.Storage,r=e.task_notification,i=e.currentRoles,o=e.TextArea,s=e.toasts,a=e.settings,l=e.Page},function(e){c=e.getAttractions,d=e.PopOver},function(e){u=e.user},function(e){h=e.taskClipboard}],execute:function(){function f(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}e("version","0.2.993");const m=e("checkDate",((e,t)=>"string"!=typeof e||e.length<20||!(t=e.split(" · "))?e:t.map((e=>2===e.split("T").length&&3===e.split("T")[0].split("-").length?new Date(e).toLocaleDateString():e)).filter((e=>!!e)).join(" · "))),p=e=>{try{return new Date(e).toLocaleString()}catch{return e}},g=e=>e?"(ja)":"(nein)",w=(e,t)=>{const n={...t};return(e.display?.reduce(((t,r)=>{let[i,o]=r.split(".");if(e.list?.find((({name:e})=>e===i))&&o&&void 0!==n[i]){const e=`${i}_${o}`;n[e]=n[i][o],i=e}return t.find((e=>e===i))||t.push(i),t}),[]).map((e=>"boolean"==typeof n[e]?g(n[e]):m(n["_"+e]||n[e])))||e.items.map((e=>"object"===e.type?t["_"+e.name]:"list"===e.type?"":("boolean"==typeof t[e.name]&&g(t[e.name]),t[e.name])))).map((e=>e?.toString().split(" · ").filter((e=>!!e)).join(" · "))).filter((e=>!!e)).join(" • ")},y=(e,t)=>{try{return t.split(".").reduce(((e,t)=>e[t]),e)??""}catch{return""}};function v(){}function C(e){return e()}function _(){return Object.create(null)}function I(e){e.forEach(C)}function E(e){return"function"==typeof e}function $(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function A(e,t,n){e.$$.on_destroy.push(function(e,...t){if(null==e)return v;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}(t,n))}function b(e){return null==e?"":e}function S(e,t,n=t){return e.set(n),t}function T(e,t){e.appendChild(t)}function N(e,t,n){e.insertBefore(t,n||null)}function R(e){e.parentNode.removeChild(e)}function D(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function O(e){return document.createElement(e)}function k(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function x(e){return document.createTextNode(e)}function M(){return x(" ")}function B(){return x("")}function P(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function L(e){return function(t){return t.preventDefault(),e.call(this,t)}}function F(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function V(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function U(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function H(e,t){e.value=null==t?"":t}function W(e,t,n,r){e.style.setProperty(t,n,r?"important":"")}function z(e,t,n){e.classList[n?"add":"remove"](t)}let q;function j(e){q=e}function G(){if(!q)throw new Error("Function called outside component initialization");return q}function X(e){G().$$.on_mount.push(e)}function Y(e){G().$$.on_destroy.push(e)}function Z(){const e=G();return(t,n)=>{const r=e.$$.callbacks[t];if(r){const i=function(e,t){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}(t,n);r.slice().forEach((t=>{t.call(e,i)}))}}}function K(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach((e=>e(t)))}const Q=[],J=[],ee=[],te=[],ne=Promise.resolve();let re=!1;function ie(){re||(re=!0,ne.then(de))}function oe(){return ie(),ne}function se(e){ee.push(e)}function ae(e){te.push(e)}let le=!1;const ce=new Set;function de(){if(!le){le=!0;do{for(let e=0;e<Q.length;e+=1){const t=Q[e];j(t),ue(t.$$)}for(j(null),Q.length=0;J.length;)J.pop()();for(let e=0;e<ee.length;e+=1){const t=ee[e];ce.has(t)||(ce.add(t),t())}ee.length=0}while(Q.length);for(;te.length;)te.pop()();re=!1,le=!1,ce.clear()}}function ue(e){if(null!==e.fragment){e.update(),I(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(se)}}const he=new Set;let fe;function me(){fe={r:0,c:[],p:fe}}function pe(){fe.r||I(fe.c),fe=fe.p}function ge(e,t){e&&e.i&&(he.delete(e),e.i(t))}function we(e,t,n,r){if(e&&e.o){if(he.has(e))return;he.add(e),fe&&fe.c.push((()=>{he.delete(e),r&&(n&&e.d(1),r())})),e.o(t)}}function ye(e,t){const n=t.token={};function r(e,r,i,o){if(t.token!==n)return;t.resolved=o;let s=t.ctx;void 0!==i&&(s=s.slice(),s[i]=o);const a=e&&(t.current=e)(s);let l=!1;t.block&&(t.blocks?t.blocks.forEach(((e,n)=>{n!==r&&e&&(me(),we(e,1,1,(()=>{t.blocks[n]===e&&(t.blocks[n]=null)})),pe())})):t.block.d(1),a.c(),ge(a,1),a.m(t.mount(),t.anchor),l=!0),t.block=a,t.blocks&&(t.blocks[r]=a),l&&de()}if((i=e)&&"object"==typeof i&&"function"==typeof i.then){const n=G();if(e.then((e=>{j(n),r(t.then,1,t.value,e),j(null)}),(e=>{if(j(n),r(t.catch,2,t.error,e),j(null),!t.hasCatch)throw e})),t.current!==t.pending)return r(t.pending,0),!0}else{if(t.current!==t.then)return r(t.then,1,t.value,e),!0;t.resolved=e}var i}function ve(e,t,n){const r=t.slice(),{resolved:i}=e;e.current===e.then&&(r[e.value]=i),e.current===e.catch&&(r[e.error]=i),e.block.p(r,n)}const Ce="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function _e(e,t){we(e,1,1,(()=>{t.delete(e.key)}))}function Ie(e,t,n){const r=e.$$.props[t];void 0!==r&&(e.$$.bound[r]=n,n(e.$$.ctx[r]))}function Ee(e){e&&e.c()}function $e(e,t,n,r){const{fragment:i,on_mount:o,on_destroy:s,after_update:a}=e.$$;i&&i.m(t,n),r||se((()=>{const t=o.map(C).filter(E);s?s.push(...t):I(t),e.$$.on_mount=[]})),a.forEach(se)}function Ae(e,t){const n=e.$$;null!==n.fragment&&(I(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function be(e,t,n,r,i,o,s=[-1]){const a=q;j(e);const l=e.$$={fragment:null,ctx:null,props:o,update:v,not_equal:i,bound:_(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:t.context||[]),callbacks:_(),dirty:s,skip_bound:!1};let c=!1;if(l.ctx=n?n(e,t.props||{},((t,n,...r)=>{const o=r.length?r[0]:n;return l.ctx&&i(l.ctx[t],l.ctx[t]=o)&&(!l.skip_bound&&l.bound[t]&&l.bound[t](o),c&&function(e,t){-1===e.$$.dirty[0]&&(Q.push(e),ie(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(e,t)),n})):[],l.update(),c=!0,I(l.before_update),l.fragment=!!r&&r(l.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);l.fragment&&l.fragment.l(e),e.forEach(R)}else l.fragment&&l.fragment.c();t.intro&&ge(e.$$.fragment),$e(e,t.target,t.anchor,t.customElement),de()}j(a)}class Se{$destroy(){Ae(this,1),this.$destroy=v}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function Te(e){let t,n,r,i;return{c(){t=k("svg"),n=k("path"),r=k("polygon"),V(n,"d","M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1"),V(r,"points","12 15 17 21 7 21 12 15"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width",e[0]),V(t,"height",e[0]),V(t,"fill","none"),V(t,"viewBox","0 0 24 24"),V(t,"stroke","currentColor"),V(t,"stroke-width",e[1]),V(t,"stroke-linecap","round"),V(t,"stroke-linejoin","round"),V(t,"class",i="feather feather-airplay "+e[2])},m(e,i){N(e,t,i),T(t,n),T(t,r)},p(e,[n]){1&n&&V(t,"width",e[0]),1&n&&V(t,"height",e[0]),2&n&&V(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-airplay "+e[2])&&V(t,"class",i)},i:v,o:v,d(e){e&&R(t)}}}function Ne(e,t,n){let{size:r="100%"}=t,{strokeWidth:i=2}=t,{class:o=""}=t;return"100%"!==r&&(r="x"===r.slice(-1)?r.slice(0,r.length-1)+"em":parseInt(r)+"px"),e.$$set=e=>{"size"in e&&n(0,r=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,o=e.class)},[r,i,o]}class Re extends Se{constructor(e){super(),be(this,e,Ne,Te,$,{size:0,strokeWidth:1,class:2})}}function De(e){let t,n,r,i,o;return{c(){t=k("svg"),n=k("path"),r=k("line"),i=k("line"),V(n,"d","M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"),V(r,"x1","12"),V(r,"y1","9"),V(r,"x2","12"),V(r,"y2","13"),V(i,"x1","12"),V(i,"y1","17"),V(i,"x2","12.01"),V(i,"y2","17"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width",e[0]),V(t,"height",e[0]),V(t,"fill","none"),V(t,"viewBox","0 0 24 24"),V(t,"stroke","currentColor"),V(t,"stroke-width",e[1]),V(t,"stroke-linecap","round"),V(t,"stroke-linejoin","round"),V(t,"class",o="feather feather-alert-triangle "+e[2])},m(e,o){N(e,t,o),T(t,n),T(t,r),T(t,i)},p(e,[n]){1&n&&V(t,"width",e[0]),1&n&&V(t,"height",e[0]),2&n&&V(t,"stroke-width",e[1]),4&n&&o!==(o="feather feather-alert-triangle "+e[2])&&V(t,"class",o)},i:v,o:v,d(e){e&&R(t)}}}function Oe(e,t,n){let{size:r="100%"}=t,{strokeWidth:i=2}=t,{class:o=""}=t;return"100%"!==r&&(r="x"===r.slice(-1)?r.slice(0,r.length-1)+"em":parseInt(r)+"px"),e.$$set=e=>{"size"in e&&n(0,r=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,o=e.class)},[r,i,o]}class ke extends Se{constructor(e){super(),be(this,e,Oe,De,$,{size:0,strokeWidth:1,class:2})}}function xe(e){let t,n,r,i,o;return{c(){t=k("svg"),n=k("circle"),r=k("polyline"),i=k("line"),V(n,"cx","12"),V(n,"cy","12"),V(n,"r","10"),V(r,"points","8 12 12 16 16 12"),V(i,"x1","12"),V(i,"y1","8"),V(i,"x2","12"),V(i,"y2","16"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width",e[0]),V(t,"height",e[0]),V(t,"fill","none"),V(t,"viewBox","0 0 24 24"),V(t,"stroke","currentColor"),V(t,"stroke-width",e[1]),V(t,"stroke-linecap","round"),V(t,"stroke-linejoin","round"),V(t,"class",o="feather feather-arrow-down-circle "+e[2])},m(e,o){N(e,t,o),T(t,n),T(t,r),T(t,i)},p(e,[n]){1&n&&V(t,"width",e[0]),1&n&&V(t,"height",e[0]),2&n&&V(t,"stroke-width",e[1]),4&n&&o!==(o="feather feather-arrow-down-circle "+e[2])&&V(t,"class",o)},i:v,o:v,d(e){e&&R(t)}}}function Me(e,t,n){let{size:r="100%"}=t,{strokeWidth:i=2}=t,{class:o=""}=t;return"100%"!==r&&(r="x"===r.slice(-1)?r.slice(0,r.length-1)+"em":parseInt(r)+"px"),e.$$set=e=>{"size"in e&&n(0,r=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,o=e.class)},[r,i,o]}class Be extends Se{constructor(e){super(),be(this,e,Me,xe,$,{size:0,strokeWidth:1,class:2})}}function Pe(e){let t,n,r,i;return{c(){t=k("svg"),n=k("path"),r=k("path"),V(n,"d","M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"),V(r,"d","M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width",e[0]),V(t,"height",e[0]),V(t,"fill","none"),V(t,"viewBox","0 0 24 24"),V(t,"stroke","currentColor"),V(t,"stroke-width",e[1]),V(t,"stroke-linecap","round"),V(t,"stroke-linejoin","round"),V(t,"class",i="feather feather-book-open "+e[2])},m(e,i){N(e,t,i),T(t,n),T(t,r)},p(e,[n]){1&n&&V(t,"width",e[0]),1&n&&V(t,"height",e[0]),2&n&&V(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-book-open "+e[2])&&V(t,"class",i)},i:v,o:v,d(e){e&&R(t)}}}function Le(e,t,n){let{size:r="100%"}=t,{strokeWidth:i=2}=t,{class:o=""}=t;return"100%"!==r&&(r="x"===r.slice(-1)?r.slice(0,r.length-1)+"em":parseInt(r)+"px"),e.$$set=e=>{"size"in e&&n(0,r=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,o=e.class)},[r,i,o]}class Fe extends Se{constructor(e){super(),be(this,e,Le,Pe,$,{size:0,strokeWidth:1,class:2})}}function Ve(e){let t,n,r,i;return{c(){t=k("svg"),n=k("path"),r=k("circle"),V(n,"d","M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"),V(r,"cx","12"),V(r,"cy","13"),V(r,"r","4"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width",e[0]),V(t,"height",e[0]),V(t,"fill","none"),V(t,"viewBox","0 0 24 24"),V(t,"stroke","currentColor"),V(t,"stroke-width",e[1]),V(t,"stroke-linecap","round"),V(t,"stroke-linejoin","round"),V(t,"class",i="feather feather-camera "+e[2])},m(e,i){N(e,t,i),T(t,n),T(t,r)},p(e,[n]){1&n&&V(t,"width",e[0]),1&n&&V(t,"height",e[0]),2&n&&V(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-camera "+e[2])&&V(t,"class",i)},i:v,o:v,d(e){e&&R(t)}}}function Ue(e,t,n){let{size:r="100%"}=t,{strokeWidth:i=2}=t,{class:o=""}=t;return"100%"!==r&&(r="x"===r.slice(-1)?r.slice(0,r.length-1)+"em":parseInt(r)+"px"),e.$$set=e=>{"size"in e&&n(0,r=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,o=e.class)},[r,i,o]}class He extends Se{constructor(e){super(),be(this,e,Ue,Ve,$,{size:0,strokeWidth:1,class:2})}}function We(e){let t,n,r,i;return{c(){t=k("svg"),n=k("path"),r=k("polyline"),V(n,"d","M22 11.08V12a10 10 0 1 1-5.93-9.14"),V(r,"points","22 4 12 14.01 9 11.01"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width",e[0]),V(t,"height",e[0]),V(t,"fill","none"),V(t,"viewBox","0 0 24 24"),V(t,"stroke","currentColor"),V(t,"stroke-width",e[1]),V(t,"stroke-linecap","round"),V(t,"stroke-linejoin","round"),V(t,"class",i="feather feather-check-circle "+e[2])},m(e,i){N(e,t,i),T(t,n),T(t,r)},p(e,[n]){1&n&&V(t,"width",e[0]),1&n&&V(t,"height",e[0]),2&n&&V(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-check-circle "+e[2])&&V(t,"class",i)},i:v,o:v,d(e){e&&R(t)}}}function ze(e,t,n){let{size:r="100%"}=t,{strokeWidth:i=2}=t,{class:o=""}=t;return"100%"!==r&&(r="x"===r.slice(-1)?r.slice(0,r.length-1)+"em":parseInt(r)+"px"),e.$$set=e=>{"size"in e&&n(0,r=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,o=e.class)},[r,i,o]}class qe extends Se{constructor(e){super(),be(this,e,ze,We,$,{size:0,strokeWidth:1,class:2})}}function je(e){let t,n,r;return{c(){t=k("svg"),n=k("path"),V(n,"d","M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width",e[0]),V(t,"height",e[0]),V(t,"fill","none"),V(t,"viewBox","0 0 24 24"),V(t,"stroke","currentColor"),V(t,"stroke-width",e[1]),V(t,"stroke-linecap","round"),V(t,"stroke-linejoin","round"),V(t,"class",r="feather feather-command "+e[2])},m(e,r){N(e,t,r),T(t,n)},p(e,[n]){1&n&&V(t,"width",e[0]),1&n&&V(t,"height",e[0]),2&n&&V(t,"stroke-width",e[1]),4&n&&r!==(r="feather feather-command "+e[2])&&V(t,"class",r)},i:v,o:v,d(e){e&&R(t)}}}function Ge(e,t,n){let{size:r="100%"}=t,{strokeWidth:i=2}=t,{class:o=""}=t;return"100%"!==r&&(r="x"===r.slice(-1)?r.slice(0,r.length-1)+"em":parseInt(r)+"px"),e.$$set=e=>{"size"in e&&n(0,r=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,o=e.class)},[r,i,o]}class Xe extends Se{constructor(e){super(),be(this,e,Ge,je,$,{size:0,strokeWidth:1,class:2})}}function Ye(e){let t,n,r,i;return{c(){t=k("svg"),n=k("polyline"),r=k("path"),V(n,"points","9 10 4 15 9 20"),V(r,"d","M20 4v7a4 4 0 0 1-4 4H4"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width",e[0]),V(t,"height",e[0]),V(t,"fill","none"),V(t,"viewBox","0 0 24 24"),V(t,"stroke","currentColor"),V(t,"stroke-width",e[1]),V(t,"stroke-linecap","round"),V(t,"stroke-linejoin","round"),V(t,"class",i="feather feather-corner-down-left "+e[2])},m(e,i){N(e,t,i),T(t,n),T(t,r)},p(e,[n]){1&n&&V(t,"width",e[0]),1&n&&V(t,"height",e[0]),2&n&&V(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-corner-down-left "+e[2])&&V(t,"class",i)},i:v,o:v,d(e){e&&R(t)}}}function Ze(e,t,n){let{size:r="100%"}=t,{strokeWidth:i=2}=t,{class:o=""}=t;return"100%"!==r&&(r="x"===r.slice(-1)?r.slice(0,r.length-1)+"em":parseInt(r)+"px"),e.$$set=e=>{"size"in e&&n(0,r=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,o=e.class)},[r,i,o]}class Ke extends Se{constructor(e){super(),be(this,e,Ze,Ye,$,{size:0,strokeWidth:1,class:2})}}function Qe(e){let t,n,r,i,o;return{c(){t=k("svg"),n=k("path"),r=k("line"),i=k("line"),V(n,"d","M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"),V(r,"x1","18"),V(r,"y1","9"),V(r,"x2","12"),V(r,"y2","15"),V(i,"x1","12"),V(i,"y1","9"),V(i,"x2","18"),V(i,"y2","15"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width",e[0]),V(t,"height",e[0]),V(t,"fill","none"),V(t,"viewBox","0 0 24 24"),V(t,"stroke","currentColor"),V(t,"stroke-width",e[1]),V(t,"stroke-linecap","round"),V(t,"stroke-linejoin","round"),V(t,"class",o="feather feather-delete "+e[2])},m(e,o){N(e,t,o),T(t,n),T(t,r),T(t,i)},p(e,[n]){1&n&&V(t,"width",e[0]),1&n&&V(t,"height",e[0]),2&n&&V(t,"stroke-width",e[1]),4&n&&o!==(o="feather feather-delete "+e[2])&&V(t,"class",o)},i:v,o:v,d(e){e&&R(t)}}}function Je(e,t,n){let{size:r="100%"}=t,{strokeWidth:i=2}=t,{class:o=""}=t;return"100%"!==r&&(r="x"===r.slice(-1)?r.slice(0,r.length-1)+"em":parseInt(r)+"px"),e.$$set=e=>{"size"in e&&n(0,r=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,o=e.class)},[r,i,o]}class et extends Se{constructor(e){super(),be(this,e,Je,Qe,$,{size:0,strokeWidth:1,class:2})}}function tt(e){let t,n,r,i,o;return{c(){t=k("svg"),n=k("path"),r=k("polyline"),i=k("line"),V(n,"d","M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"),V(r,"points","15 3 21 3 21 9"),V(i,"x1","10"),V(i,"y1","14"),V(i,"x2","21"),V(i,"y2","3"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width",e[0]),V(t,"height",e[0]),V(t,"fill","none"),V(t,"viewBox","0 0 24 24"),V(t,"stroke","currentColor"),V(t,"stroke-width",e[1]),V(t,"stroke-linecap","round"),V(t,"stroke-linejoin","round"),V(t,"class",o="feather feather-external-link "+e[2])},m(e,o){N(e,t,o),T(t,n),T(t,r),T(t,i)},p(e,[n]){1&n&&V(t,"width",e[0]),1&n&&V(t,"height",e[0]),2&n&&V(t,"stroke-width",e[1]),4&n&&o!==(o="feather feather-external-link "+e[2])&&V(t,"class",o)},i:v,o:v,d(e){e&&R(t)}}}function nt(e,t,n){let{size:r="100%"}=t,{strokeWidth:i=2}=t,{class:o=""}=t;return"100%"!==r&&(r="x"===r.slice(-1)?r.slice(0,r.length-1)+"em":parseInt(r)+"px"),e.$$set=e=>{"size"in e&&n(0,r=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,o=e.class)},[r,i,o]}class rt extends Se{constructor(e){super(),be(this,e,nt,tt,$,{size:0,strokeWidth:1,class:2})}}function it(e){let t,n,r,i,o,s;return{c(){t=k("svg"),n=k("path"),r=k("polyline"),i=k("line"),o=k("line"),V(n,"d","M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"),V(r,"points","14 2 14 8 20 8"),V(i,"x1","12"),V(i,"y1","18"),V(i,"x2","12"),V(i,"y2","12"),V(o,"x1","9"),V(o,"y1","15"),V(o,"x2","15"),V(o,"y2","15"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width",e[0]),V(t,"height",e[0]),V(t,"fill","none"),V(t,"viewBox","0 0 24 24"),V(t,"stroke","currentColor"),V(t,"stroke-width",e[1]),V(t,"stroke-linecap","round"),V(t,"stroke-linejoin","round"),V(t,"class",s="feather feather-file-plus "+e[2])},m(e,s){N(e,t,s),T(t,n),T(t,r),T(t,i),T(t,o)},p(e,[n]){1&n&&V(t,"width",e[0]),1&n&&V(t,"height",e[0]),2&n&&V(t,"stroke-width",e[1]),4&n&&s!==(s="feather feather-file-plus "+e[2])&&V(t,"class",s)},i:v,o:v,d(e){e&&R(t)}}}function ot(e,t,n){let{size:r="100%"}=t,{strokeWidth:i=2}=t,{class:o=""}=t;return"100%"!==r&&(r="x"===r.slice(-1)?r.slice(0,r.length-1)+"em":parseInt(r)+"px"),e.$$set=e=>{"size"in e&&n(0,r=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,o=e.class)},[r,i,o]}class st extends Se{constructor(e){super(),be(this,e,ot,it,$,{size:0,strokeWidth:1,class:2})}}function at(e){let t,n,r,i,o;return{c(){t=k("svg"),n=k("circle"),r=k("line"),i=k("path"),V(n,"cx","12"),V(n,"cy","12"),V(n,"r","10"),V(r,"x1","2"),V(r,"y1","12"),V(r,"x2","22"),V(r,"y2","12"),V(i,"d","M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width",e[0]),V(t,"height",e[0]),V(t,"fill","none"),V(t,"viewBox","0 0 24 24"),V(t,"stroke","currentColor"),V(t,"stroke-width",e[1]),V(t,"stroke-linecap","round"),V(t,"stroke-linejoin","round"),V(t,"class",o="feather feather-globe "+e[2])},m(e,o){N(e,t,o),T(t,n),T(t,r),T(t,i)},p(e,[n]){1&n&&V(t,"width",e[0]),1&n&&V(t,"height",e[0]),2&n&&V(t,"stroke-width",e[1]),4&n&&o!==(o="feather feather-globe "+e[2])&&V(t,"class",o)},i:v,o:v,d(e){e&&R(t)}}}function lt(e,t,n){let{size:r="100%"}=t,{strokeWidth:i=2}=t,{class:o=""}=t;return"100%"!==r&&(r="x"===r.slice(-1)?r.slice(0,r.length-1)+"em":parseInt(r)+"px"),e.$$set=e=>{"size"in e&&n(0,r=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,o=e.class)},[r,i,o]}class ct extends Se{constructor(e){super(),be(this,e,lt,at,$,{size:0,strokeWidth:1,class:2})}}function dt(e){let t,n,r,i,o,s,a,l;return{c(){t=k("svg"),n=k("line"),r=k("line"),i=k("line"),o=k("line"),s=k("line"),a=k("line"),V(n,"x1","8"),V(n,"y1","6"),V(n,"x2","21"),V(n,"y2","6"),V(r,"x1","8"),V(r,"y1","12"),V(r,"x2","21"),V(r,"y2","12"),V(i,"x1","8"),V(i,"y1","18"),V(i,"x2","21"),V(i,"y2","18"),V(o,"x1","3"),V(o,"y1","6"),V(o,"x2","3.01"),V(o,"y2","6"),V(s,"x1","3"),V(s,"y1","12"),V(s,"x2","3.01"),V(s,"y2","12"),V(a,"x1","3"),V(a,"y1","18"),V(a,"x2","3.01"),V(a,"y2","18"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width",e[0]),V(t,"height",e[0]),V(t,"fill","none"),V(t,"viewBox","0 0 24 24"),V(t,"stroke","currentColor"),V(t,"stroke-width",e[1]),V(t,"stroke-linecap","round"),V(t,"stroke-linejoin","round"),V(t,"class",l="feather feather-list "+e[2])},m(e,l){N(e,t,l),T(t,n),T(t,r),T(t,i),T(t,o),T(t,s),T(t,a)},p(e,[n]){1&n&&V(t,"width",e[0]),1&n&&V(t,"height",e[0]),2&n&&V(t,"stroke-width",e[1]),4&n&&l!==(l="feather feather-list "+e[2])&&V(t,"class",l)},i:v,o:v,d(e){e&&R(t)}}}function ut(e,t,n){let{size:r="100%"}=t,{strokeWidth:i=2}=t,{class:o=""}=t;return"100%"!==r&&(r="x"===r.slice(-1)?r.slice(0,r.length-1)+"em":parseInt(r)+"px"),e.$$set=e=>{"size"in e&&n(0,r=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,o=e.class)},[r,i,o]}class ht extends Se{constructor(e){super(),be(this,e,ut,dt,$,{size:0,strokeWidth:1,class:2})}}function ft(e){let t,n,r,i;return{c(){t=k("svg"),n=k("path"),r=k("polyline"),V(n,"d","M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"),V(r,"points","22,6 12,13 2,6"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width",e[0]),V(t,"height",e[0]),V(t,"fill","none"),V(t,"viewBox","0 0 24 24"),V(t,"stroke","currentColor"),V(t,"stroke-width",e[1]),V(t,"stroke-linecap","round"),V(t,"stroke-linejoin","round"),V(t,"class",i="feather feather-mail "+e[2])},m(e,i){N(e,t,i),T(t,n),T(t,r)},p(e,[n]){1&n&&V(t,"width",e[0]),1&n&&V(t,"height",e[0]),2&n&&V(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-mail "+e[2])&&V(t,"class",i)},i:v,o:v,d(e){e&&R(t)}}}function mt(e,t,n){let{size:r="100%"}=t,{strokeWidth:i=2}=t,{class:o=""}=t;return"100%"!==r&&(r="x"===r.slice(-1)?r.slice(0,r.length-1)+"em":parseInt(r)+"px"),e.$$set=e=>{"size"in e&&n(0,r=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,o=e.class)},[r,i,o]}class pt extends Se{constructor(e){super(),be(this,e,mt,ft,$,{size:0,strokeWidth:1,class:2})}}function gt(e){let t,n,r,i;return{c(){t=k("svg"),n=k("path"),r=k("circle"),V(n,"d","M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"),V(r,"cx","12"),V(r,"cy","10"),V(r,"r","3"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width",e[0]),V(t,"height",e[0]),V(t,"fill","none"),V(t,"viewBox","0 0 24 24"),V(t,"stroke","currentColor"),V(t,"stroke-width",e[1]),V(t,"stroke-linecap","round"),V(t,"stroke-linejoin","round"),V(t,"class",i="feather feather-map-pin "+e[2])},m(e,i){N(e,t,i),T(t,n),T(t,r)},p(e,[n]){1&n&&V(t,"width",e[0]),1&n&&V(t,"height",e[0]),2&n&&V(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-map-pin "+e[2])&&V(t,"class",i)},i:v,o:v,d(e){e&&R(t)}}}function wt(e,t,n){let{size:r="100%"}=t,{strokeWidth:i=2}=t,{class:o=""}=t;return"100%"!==r&&(r="x"===r.slice(-1)?r.slice(0,r.length-1)+"em":parseInt(r)+"px"),e.$$set=e=>{"size"in e&&n(0,r=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,o=e.class)},[r,i,o]}class yt extends Se{constructor(e){super(),be(this,e,wt,gt,$,{size:0,strokeWidth:1,class:2})}}function vt(e){let t,n,r,i,o;return{c(){t=k("svg"),n=k("polyline"),r=k("line"),i=k("path"),V(n,"points","23 7 23 1 17 1"),V(r,"x1","16"),V(r,"y1","8"),V(r,"x2","23"),V(r,"y2","1"),V(i,"d","M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width",e[0]),V(t,"height",e[0]),V(t,"fill","none"),V(t,"viewBox","0 0 24 24"),V(t,"stroke","currentColor"),V(t,"stroke-width",e[1]),V(t,"stroke-linecap","round"),V(t,"stroke-linejoin","round"),V(t,"class",o="feather feather-phone-outgoing "+e[2])},m(e,o){N(e,t,o),T(t,n),T(t,r),T(t,i)},p(e,[n]){1&n&&V(t,"width",e[0]),1&n&&V(t,"height",e[0]),2&n&&V(t,"stroke-width",e[1]),4&n&&o!==(o="feather feather-phone-outgoing "+e[2])&&V(t,"class",o)},i:v,o:v,d(e){e&&R(t)}}}function Ct(e,t,n){let{size:r="100%"}=t,{strokeWidth:i=2}=t,{class:o=""}=t;return"100%"!==r&&(r="x"===r.slice(-1)?r.slice(0,r.length-1)+"em":parseInt(r)+"px"),e.$$set=e=>{"size"in e&&n(0,r=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,o=e.class)},[r,i,o]}class _t extends Se{constructor(e){super(),be(this,e,Ct,vt,$,{size:0,strokeWidth:1,class:2})}}function It(e){let t,n,r,i,o;return{c(){t=k("svg"),n=k("polyline"),r=k("path"),i=k("rect"),V(n,"points","6 9 6 2 18 2 18 9"),V(r,"d","M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"),V(i,"x","6"),V(i,"y","14"),V(i,"width","12"),V(i,"height","8"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width",e[0]),V(t,"height",e[0]),V(t,"fill","none"),V(t,"viewBox","0 0 24 24"),V(t,"stroke","currentColor"),V(t,"stroke-width",e[1]),V(t,"stroke-linecap","round"),V(t,"stroke-linejoin","round"),V(t,"class",o="feather feather-printer "+e[2])},m(e,o){N(e,t,o),T(t,n),T(t,r),T(t,i)},p(e,[n]){1&n&&V(t,"width",e[0]),1&n&&V(t,"height",e[0]),2&n&&V(t,"stroke-width",e[1]),4&n&&o!==(o="feather feather-printer "+e[2])&&V(t,"class",o)},i:v,o:v,d(e){e&&R(t)}}}function Et(e,t,n){let{size:r="100%"}=t,{strokeWidth:i=2}=t,{class:o=""}=t;return"100%"!==r&&(r="x"===r.slice(-1)?r.slice(0,r.length-1)+"em":parseInt(r)+"px"),e.$$set=e=>{"size"in e&&n(0,r=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,o=e.class)},[r,i,o]}class $t extends Se{constructor(e){super(),be(this,e,Et,It,$,{size:0,strokeWidth:1,class:2})}}function At(e){let t,n,r,i;return{c(){t=k("svg"),n=k("circle"),r=k("line"),V(n,"cx","11"),V(n,"cy","11"),V(n,"r","8"),V(r,"x1","21"),V(r,"y1","21"),V(r,"x2","16.65"),V(r,"y2","16.65"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width",e[0]),V(t,"height",e[0]),V(t,"fill","none"),V(t,"viewBox","0 0 24 24"),V(t,"stroke","currentColor"),V(t,"stroke-width",e[1]),V(t,"stroke-linecap","round"),V(t,"stroke-linejoin","round"),V(t,"class",i="feather feather-search "+e[2])},m(e,i){N(e,t,i),T(t,n),T(t,r)},p(e,[n]){1&n&&V(t,"width",e[0]),1&n&&V(t,"height",e[0]),2&n&&V(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-search "+e[2])&&V(t,"class",i)},i:v,o:v,d(e){e&&R(t)}}}function bt(e,t,n){let{size:r="100%"}=t,{strokeWidth:i=2}=t,{class:o=""}=t;return"100%"!==r&&(r="x"===r.slice(-1)?r.slice(0,r.length-1)+"em":parseInt(r)+"px"),e.$$set=e=>{"size"in e&&n(0,r=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,o=e.class)},[r,i,o]}class St extends Se{constructor(e){super(),be(this,e,bt,At,$,{size:0,strokeWidth:1,class:2})}}const{document:Tt}=Ce;function Nt(e){e[48]=e[49].items}function Rt(e,t,n){const r=e.slice();return r[50]=t[n],r[52]=n,r}function Dt(e,t,n){const r=e.slice();return r[53]=t[n],r}function Ot(e,t,n){const r=e.slice();return r[53]=t[n],r}function kt(e){return{c:v,m:v,p:v,i:v,o:v,d:v}}function xt(e){let t,n,r,i,o,s;Nt(e);let a=e[5]?.length&&Mt(e),l=e[48]?.length&&Pt(e),c=e[5]?.length&&Vt(e);return{c(){a&&a.c(),t=M(),n=O("div"),r=O("table"),l&&l.c(),i=M(),o=O("tbody"),c&&c.c(),V(r,"striped",""),V(r,"class","svelte-v0ogws"),V(n,"class","eList svelte-v0ogws")},m(e,d){a&&a.m(e,d),N(e,t,d),N(e,n,d),T(n,r),l&&l.m(r,null),T(r,i),T(r,o),c&&c.m(o,null),s=!0},p(e,n){Nt(e),e[5]?.length?a?(a.p(e,n),32&n[0]&&ge(a,1)):(a=Mt(e),a.c(),ge(a,1),a.m(t.parentNode,t)):a&&(me(),we(a,1,1,(()=>{a=null})),pe()),e[48]?.length?l?l.p(e,n):(l=Pt(e),l.c(),l.m(r,i)):l&&(l.d(1),l=null),e[5]?.length?c?(c.p(e,n),32&n[0]&&ge(c,1)):(c=Vt(e),c.c(),ge(c,1),c.m(o,null)):c&&(me(),we(c,1,1,(()=>{c=null})),pe())},i(e){s||(ge(a),ge(c),s=!0)},o(e){we(a),we(c),s=!1},d(e){a&&a.d(e),e&&R(t),e&&R(n),l&&l.d(),c&&c.d()}}}function Mt(e){let t,n,r,i,o,s,a,l,c,d,u,h=e[6]&&Bt(e);function f(t){e[32](t)}let m={id:e[10]};return void 0!==e[3]&&(m.value=e[3]),i=new e[8]({props:m}),J.push((()=>Ie(i,"value",f))),i.$on("input",e[14]),l=new et({props:{size:"18"}}),{c(){h&&h.c(),t=M(),n=O("div"),r=x("Suchen: "),Ee(i.$$.fragment),s=M(),a=O("span"),Ee(l.$$.fragment),V(a,"class","feather pointer svelte-v0ogws"),W(n,"margin-bottom","1em"),W(n,"position","relative")},m(o,f){h&&h.m(o,f),N(o,t,f),N(o,n,f),T(n,r),$e(i,n,null),T(n,s),T(n,a),$e(l,a,null),c=!0,d||(u=P(a,"click",e[16]),d=!0)},p(e,n){e[6]?h?64&n[0]&&ge(h,1):(h=Bt(e),h.c(),ge(h,1),h.m(t.parentNode,t)):h&&(me(),we(h,1,1,(()=>{h=null})),pe());const r={};!o&&8&n[0]&&(o=!0,r.value=e[3],ae((()=>o=!1))),i.$set(r)},i(e){c||(ge(h),ge(i.$$.fragment,e),ge(l.$$.fragment,e),c=!0)},o(e){we(h),we(i.$$.fragment,e),we(l.$$.fragment,e),c=!1},d(e){h&&h.d(e),e&&R(t),e&&R(n),Ae(i),Ae(l),d=!1,u()}}}function Bt(e){let t,n;return t=new e[7]({}),{c(){Ee(t.$$.fragment)},m(e,r){$e(t,e,r),n=!0},i(e){n||(ge(t.$$.fragment,e),n=!0)},o(e){we(t.$$.fragment,e),n=!1},d(e){Ae(t,e)}}}function Pt(e){let t,n,r,i=e[4]&&e[0]&&Lt(),o=e[48],s=[];for(let t=0;t<o.length;t+=1)s[t]=Ft(Ot(e,o,t));return{c(){t=O("thead"),n=O("tr"),i&&i.c(),r=M();for(let e=0;e<s.length;e+=1)s[e].c();V(n,"class","svelte-v0ogws"),V(t,"class","svelte-v0ogws")},m(e,o){N(e,t,o),T(t,n),i&&i.m(n,null),T(n,r);for(let e=0;e<s.length;e+=1)s[e].m(n,null)},p(e,t){if(e[4]&&e[0]?i||(i=Lt(),i.c(),i.m(n,r)):i&&(i.d(1),i=null),8196&t[0]){let r;for(o=e[48],r=0;r<o.length;r+=1){const i=Ot(e,o,r);s[r]?s[r].p(i,t):(s[r]=Ft(i),s[r].c(),s[r].m(n,null))}for(;r<s.length;r+=1)s[r].d(1);s.length=o.length}},d(e){e&&R(t),i&&i.d(),D(s,e)}}}function Lt(e){let t;return{c(){t=O("th"),V(t,"class","svelte-v0ogws")},m(e,n){N(e,t,n)},d(e){e&&R(t)}}}function Ft(e){let t,n,r=e[53]?.designation+"";return{c(){t=O("th"),n=x(r),V(t,"class","svelte-v0ogws")},m(e,r){N(e,t,r),T(t,n)},p(e,t){4&t[0]&&r!==(r=e[53]?.designation+"")&&U(n,r)},d(e){e&&R(t)}}}function Vt(e){let t,n,r=[],i=new Map,o=e[5];const s=e=>e[50]?._id;for(let t=0;t<o.length;t+=1){let n=Rt(e,o,t),a=s(n);i.set(a,r[t]=zt(a,n))}return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=B()},m(e,i){for(let t=0;t<r.length;t+=1)r[t].m(e,i);N(e,t,i),n=!0},p(e,n){178239&n[0]&&(o=e[5],me(),r=function(e,t,n,r,i,o,s,a,l,c,d,u){let h=e.length,f=o.length,m=h;const p={};for(;m--;)p[e[m].key]=m;const g=[],w=new Map,y=new Map;for(m=f;m--;){const e=u(i,o,m),a=n(e);let l=s.get(a);l?r&&l.p(e,t):(l=c(a,e),l.c()),w.set(a,g[m]=l),a in p&&y.set(a,Math.abs(m-p[a]))}const v=new Set,C=new Set;function _(e){ge(e,1),e.m(a,d),s.set(e.key,e),d=e.first,f--}for(;h&&f;){const t=g[f-1],n=e[h-1],r=t.key,i=n.key;t===n?(d=t.first,h--,f--):w.has(i)?!s.has(r)||v.has(r)?_(t):C.has(i)?h--:y.get(r)>y.get(i)?(C.add(r),_(t)):(v.add(i),h--):(l(n,s),h--)}for(;h--;){const t=e[h];w.has(t.key)||l(t,s)}for(;f;)_(g[f-1]);return g}(r,n,s,1,e,o,i,t.parentNode,_e,zt,t,Rt),pe())},i(e){if(!n){for(let e=0;e<o.length;e+=1)ge(r[e]);n=!0}},o(e){for(let e=0;e<r.length;e+=1)we(r[e]);n=!1},d(e){for(let t=0;t<r.length;t+=1)r[t].d(e);e&&R(t)}}}function Ut(e){let t,n,r,i,o,s,a=e[4]&&e[0]&&Ht(e),l=e[48],c=[];for(let t=0;t<l.length;t+=1)c[t]=Wt(Dt(e,l,t));return{c(){t=O("tr"),a&&a.c(),n=M();for(let e=0;e<c.length;e+=1)c[e].c();r=M(),V(t,"class","pointer svelte-v0ogws"),z(t,"active",e[50]._id===e[1])},m(l,d){N(l,t,d),a&&a.m(t,null),T(t,n);for(let e=0;e<c.length;e+=1)c[e].m(t,null);T(t,r),i=!0,o||(s=P(t,"click",F((function(){E(e[12](e[50],e[52]))&&e[12](e[50],e[52]).apply(this,arguments)}))),o=!0)},p(i,o){if((e=i)[4]&&e[0]?a?(a.p(e,o),17&o[0]&&ge(a,1)):(a=Ht(e),a.c(),ge(a,1),a.m(t,n)):a&&(me(),we(a,1,1,(()=>{a=null})),pe()),10276&o[0]){let n;for(l=e[48],n=0;n<l.length;n+=1){const i=Dt(e,l,n);c[n]?c[n].p(i,o):(c[n]=Wt(i),c[n].c(),c[n].m(t,r))}for(;n<c.length;n+=1)c[n].d(1);c.length=l.length}34&o[0]&&z(t,"active",e[50]._id===e[1])},i(e){i||(ge(a),i=!0)},o(e){we(a),i=!1},d(e){e&&R(t),a&&a.d(),D(c,e),o=!1,s()}}}function Ht(e){let t,n,r,i,o;return n=new rt({props:{size:"18"}}),{c(){t=O("td"),Ee(n.$$.fragment),V(t,"class","editRow svelte-v0ogws"),W(t,"color","#326173")},m(s,a){N(s,t,a),$e(n,t,null),r=!0,i||(o=P(t,"click",F((function(){E(e[17](e[50]))&&e[17](e[50]).apply(this,arguments)}))),i=!0)},p(t,n){e=t},i(e){r||(ge(n.$$.fragment,e),r=!0)},o(e){we(n.$$.fragment,e),r=!1},d(e){e&&R(t),Ae(n),i=!1,o()}}}function Wt(e){let t,n,r,i=e[11](e[50],e[53])+"";return{c(){t=O("td"),n=x(i),V(t,"class",r=b(e[53].type)+" svelte-v0ogws")},m(e,r){N(e,t,r),T(t,n)},p(e,o){36&o[0]&&i!==(i=e[11](e[50],e[53])+"")&&U(n,i),4&o[0]&&r!==(r=b(e[53].type)+" svelte-v0ogws")&&V(t,"class",r)},d(e){e&&R(t)}}}function zt(e,t){let n,r,i,o=t[15](t[50],t[48],t[3]),s=o&&Ut(t);return{key:e,first:null,c(){n=B(),s&&s.c(),r=B(),this.first=n},m(e,t){N(e,n,t),s&&s.m(e,t),N(e,r,t),i=!0},p(e,n){t=e,44&n[0]&&(o=t[15](t[50],t[48],t[3])),o?s?(s.p(t,n),44&n[0]&&ge(s,1)):(s=Ut(t),s.c(),ge(s,1),s.m(r.parentNode,r)):s&&(me(),we(s,1,1,(()=>{s=null})),pe())},i(e){i||(ge(s),i=!0)},o(e){we(s),i=!1},d(e){e&&R(n),s&&s.d(e),e&&R(r)}}}function qt(e){let t,n;return t=new e[7]({}),{c(){Ee(t.$$.fragment)},m(e,r){$e(t,e,r),n=!0},p:v,i(e){n||(ge(t.$$.fragment,e),n=!0)},o(e){we(t.$$.fragment,e),n=!1},d(e){Ae(t,e)}}}function jt(e){let t,n,r,i={ctx:e,current:null,token:null,hasCatch:!1,pending:qt,then:xt,catch:kt,value:49,blocks:[,,,]};return ye(n=e[2]&&e[13](),i),{c(){t=B(),i.block.c()},m(e,n){N(e,t,n),i.block.m(e,i.anchor=n),i.mount=()=>t.parentNode,i.anchor=t,r=!0},p(t,r){e=t,i.ctx=e,4&r[0]&&n!==(n=e[2]&&e[13]())&&ye(n,i)||ve(i,e,r)},i(e){r||(ge(i.block),r=!0)},o(e){for(let e=0;e<3;e+=1){we(i.blocks[e])}r=!1},d(e){e&&R(t),i.block.d(e),i.token=null,i=null}}}const Gt=e("getDisplayItems",(async(e,n,r)=>{if(!e)return;let i=[];for(const o of e){if("_total"===o){i.push({name:"_total",designation:"Betrag",type:"number"});continue}if("__total"===o){i.push({name:"__total",designation:"Total CHF",type:"number",decimals:2});continue}const[e,s]=o.split(".");let a=n.list?.find((t=>t.name===e))?.item?.find((e=>e.name===s));if(a&&(a={...a},a.name=`${e}_${s}`,r=r.map((t=>(t[e]&&(t[a.name]=t["_"+e]?t["_"+e][s]:t[e][s]),t)))),a||(a=n.items.find((t=>t.name===e))),!a){const n=(await t.getSchemaByClass(e)).items.find((e=>e.name===s));n&&(a={name:e,designation:n.designation,type:n.type,decimals:n.properties?.decimals||0})}i.find((t=>t?.name===e))||i.push(a)}return i.length?i:n.items}));function Xt(e,i,o){let s;let a=JSON.parse(n.getItem("Locale")).id;const l=Z(),{Loading:d,TextField:h}=c,{currentTasks:f}=u;A(e,f,(e=>o(36,s=e)));let p,w,y,v,{inputList:C}=i,{eventId:_}=i,{prevEventId:I}=i,{record:E}=i,{className:$}=i,{rowId:b}=i,{filterForReady:S=!1}=i,{filter:T}=i,{refStatus:N}=i,{showEdit:R=!1}=i,{praefix:D=""}=i,{selectionFields:O=!1}=i,{deList:k}=i,{stopAggregation:x=!1}=i,{shouldBlock:M}=i,{inputSearch:B=""}=i,P=!0,L=B,F=$+Math.floor(9e3*Math.random()+1e3).toString()+"search",V=!1,U=!0;const H=(e,t)=>{if(!t)return;let n=e[t.name];if("__total"===t.name&&void 0===n&&(n=1.081*e._total),!n&&t.name.includes("_")&&!t.name.startsWith("_")){const[r,i]=t.name.split("_");try{n=e[r][i]}catch{}}if(Array.isArray(n)){const e=e=>e.replaceAll(" ",String.fromCharCode(160));if(n.length&&Array.isArray(n[0].serialno)){let t=[];for(const r of n)t=t.concat(r.serialno.map(e));n=t.join(", ")}else n=n.map(e),n.length>3&&(n=n.slice(0,3),n=n.concat("...")),n=n.join(", ")}if(!n&&t.name.split("_").length>1){const[r,i]=t.name.split("_");try{n=e[r][0][i],Array.isArray(n)&&(n=n.join(", "))}catch{}}return"number"===t.type&&(n||(n=e[`_${t.name}`]),n=Number(n)?Number(n).toLocaleString(a,{minimumFractionDigits:t.properties?.decimals||t.decimals||0,maximumFractionDigits:t.properties?.decimals||t.decimals||0}):""),"boolean"===t.type&&"Aktiv"===n&&(n=!1),"number"===t.type?n:"boolean"==typeof n||"boolean"===t.type?g(n):m(e[`_${t.name}`]||n||"")},W=t.getSchemaByClass($),z=async(e,n)=>{if(T){let n;const r=T.startsWith("!");r&&(n=T.replace("!",""));const i=T.startsWith("$");if(n&&!i&&(e=e.filter((e=>i?e[n]===b:r?!e[n]:!!e[n]))),i){n=T.replace("$","");const[r,i]=n.split(".");if(E[i]){const n=await t.getSectionView(r,{[i]:E[i]});e=e.filter((e=>n.find((t=>t._id==e[r]))))}else e=[]}}if(N)return o(18,N=[].concat(N)),e.filter((e=>!!N.find((t=>e._task.status===t))));if("Information"===n.state.task)return e;if(I){const n=await t.getEvent(I);if("report"===n?.output?.type)return e;if(n?.input?.class?.length&&n.input.class[0].name===$)return"Information"===n.state.task?e.filter((e=>"Closed"!==e._task.status)):e.filter((e=>"Ready"===e._task.status))}return e.filter((e=>"WaitingForApproval"===e._task.status||"Ready"===e._task.status||"Closing"===e._task.status))},q=(e,t)=>{if(e){let n,r="1";if("string"==typeof e)n=e;else{const t=Object.keys(e);n=t[0],r=t[1]}"date"===n&&(r="-1");const i=new Intl.Collator(a,{numeric:!0});return 1==r?t.sort(((e,t)=>i.compare(e[n],t[n]))):t.sort(((e,t)=>i.compare(t[n],e[n])))}return t},j=async e=>{let n,r=0;U=!1;const i=e=>new Promise((t=>setTimeout(t,e)));for(;r++<200&&!x&&!(n=await G(e));)await i(500);o(6,V=!1),x&&t.readTasksByAggregationId(e,!0),n&&(o(5,y=q(w.displaySort,n.data)),window.setTimeout((()=>{const e=document.querySelector("tr.active");e&&e.scrollIntoView({block:"end",behavior:"smooth"}),U=!0}),100))},G=async e=>await t.readTasksByAggregationId(e),Y=async(e,t,n,r)=>{const{value:i,refClass:o}=r,[s,a]=n.split("."),l=i?.get(D),c=l&&await ch(s,l);if(!c)return e;const d=c[a];return d?.length?d.map((n=>{let r=e?.find((e=>e._id===n[t]))||{};r={...r};for(const e in r)n[e]&&(r[e]=n[e]);for(const e in n)n[e]&&(r[e]=n[e]);return ah(o+r._id.toString(),r),r})):e};X((()=>{window.setTimeout((()=>{const e=document.querySelector("tr.active");e?e.scrollIntoView({block:"end",behavior:"smooth"}):document.getElementById(F)?.focus()}),200)})),r.subscribe((async e=>{if(!e)return;const t=await W;e.eventId===t.id&&(dh(t.class,e.eventId),o(2,P=!o(2,P=!1)))}));return e.$$set=e=>{"inputList"in e&&o(20,C=e.inputList),"eventId"in e&&o(21,_=e.eventId),"prevEventId"in e&&o(22,I=e.prevEventId),"record"in e&&o(23,E=e.record),"className"in e&&o(24,$=e.className),"rowId"in e&&o(1,b=e.rowId),"filterForReady"in e&&o(25,S=e.filterForReady),"filter"in e&&o(26,T=e.filter),"refStatus"in e&&o(18,N=e.refStatus),"showEdit"in e&&o(0,R=e.showEdit),"praefix"in e&&o(27,D=e.praefix),"selectionFields"in e&&o(28,O=e.selectionFields),"deList"in e&&o(29,k=e.deList),"stopAggregation"in e&&o(19,x=e.stopAggregation),"shouldBlock"in e&&o(30,M=e.shouldBlock),"inputSearch"in e&&o(31,B=e.inputSearch)},[R,b,P,L,p,y,V,d,h,f,F,H,(e,t)=>n=>{o(19,x=!0);const r=U?e:v[t];l("choose",{row:r})},async()=>{w=await W,o(4,p=(e=>!s?.length||!!s.find((t=>t===e)))(w.id)),o(5,y=v=q(w.displaySort,await C||await oh(w.class,w.id))),500===y?.length&&(o(6,V=!0),t.getTasksList(w.id,!1,!0).then((({aggregationId:e})=>j(e))));let e,n=!1,r="";const i=O&&O?.find((e=>w.class===e.refClass.split(":")[0])),a=i?.value?.get&&i.value.get(D);if(a){const[s,l]=i.refClass.split(":");w.class===s&&o(5,y=await Y(y,s,l,i)),n=i.parentClass?.find((e=>"quantity"===e.name)),r=i.className,e=await t.getCountedSection(r,l.split(".")[0],a,s,"quantity")}o(0,R&&=!i),!i&&(T||S||N)&&o(5,y=await z(y,w));const{display:c}=w;let d=await Gt(c,w,y);return!R&&n?(d=d.concat([{name:"quantity",designation:"h-Soll",type:"number",decimals:2},{name:"ist",designation:"h-Ist",type:"number",decimals:2}]),o(5,y=y.map((t=>{const n=e.find((e=>e._id===t._id));return n&&(t.ist=n.quantity.$numberDecimal),t}))),e.map((e=>{if(!y.find((t=>t._id===e._id))){const t=v.find((t=>t._id===e._id));t&&(t.ist=e.quantity.$numberDecimal),y.push(t)}})),l("init",y)):k&&o(5,y=y.filter((e=>!k.find((t=>t?._id===e._id))))),M&&o(5,y=y.filter((e=>!e[M]))),{items:d}},({detail:{value:e}})=>{o(3,L=e)},(e,t,n)=>{if(!e)return!1;if(!n)return!0;"string"!=typeof n&&(n=n.toString()),n=n.toLowerCase();let r=!1;for(const i of t){const t=H(e,i).toLowerCase();!r&&t.includes(n)&&(r=!0)}return r},()=>{o(3,L="")},e=>{window.open(`/task/${e._task.event}/${e._task._id}/task?view=standalone`,"_blank")},N,x,C,_,I,E,$,S,T,D,O,k,M,B,function(e){L=e,o(3,L)}]}class Yt extends Se{constructor(e){var t;super(),Tt.getElementById("svelte-v0ogws-style")||((t=O("style")).id="svelte-v0ogws-style",t.textContent=".feather.svelte-v0ogws.svelte-v0ogws{position:absolute;top:2em;right:0.5em;color:#326173}.eList.svelte-v0ogws.svelte-v0ogws{height:fit-content;max-height:65vh;overflow-y:scroll;overflow-x:auto}.eList.svelte-v0ogws .editRow.svelte-v0ogws{width:1em}.eList.svelte-v0ogws table.svelte-v0ogws{min-width:30vw;position:relative;width:max-content !important;max-width:50vh !important}.eList.svelte-v0ogws table thead.svelte-v0ogws{position:sticky;top:0;background:#326173;color:white}.eList.svelte-v0ogws table thead tr.svelte-v0ogws{height:2.3em}.eList.svelte-v0ogws table tbody tr.svelte-v0ogws{height:2.75em !important}th.svelte-v0ogws.svelte-v0ogws,td.svelte-v0ogws.svelte-v0ogws{padding-left:0.4em;padding-right:0.4em}td.number.svelte-v0ogws.svelte-v0ogws{text-align:end}tr.pointer.svelte-v0ogws.svelte-v0ogws:hover{background-color:#DAE1E5}tr.active.svelte-v0ogws.svelte-v0ogws{color:#326173;background-color:#fcebd5}",T(Tt.head,t)),be(this,e,Xt,jt,$,{inputList:20,eventId:21,prevEventId:22,record:23,className:24,rowId:1,filterForReady:25,filter:26,refStatus:18,showEdit:0,praefix:27,selectionFields:28,deList:29,stopAggregation:19,shouldBlock:30,inputSearch:31},[-1,-1])}}function Zt(e){return{c:v,m:v,p:v,i:v,o:v,d:v}}function Kt(e){let t,n,r=e[44]&&Qt(e);return{c(){r&&r.c(),t=B()},m(e,i){r&&r.m(e,i),N(e,t,i),n=!0},p(e,n){e[44]?r?(r.p(e,n),16&n[0]&&ge(r,1)):(r=Qt(e),r.c(),ge(r,1),r.m(t.parentNode,t)):r&&(me(),we(r,1,1,(()=>{r=null})),pe())},i(e){n||(ge(r),n=!0)},o(e){we(r),n=!1},d(e){r&&r.d(e),e&&R(t)}}}function Qt(e){let t,n;return t=new e[24]({props:{title:e[19]?"Auswahl":e[0],class:"eList "+(e[17]?"form":""),$$slots:{default:[cn]},$$scope:{ctx:e}}}),{c(){Ee(t.$$.fragment)},m(e,r){$e(t,e,r),n=!0},p(e,n){const r={};524289&n[0]&&(r.title=e[19]?"Auswahl":e[0]),131072&n[0]&&(r.class="eList "+(e[17]?"form":"")),16777214&n[0]|16384&n[1]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ge(t.$$.fragment,e),n=!0)},o(e){we(t.$$.fragment,e),n=!1},d(e){Ae(t,e)}}}function Jt(e){let t,n;return t=new fh({props:{schema:e[2],recID:e[1],readonly:e[18]}}),t.$on("choose",(function(){E(e[33](e[44]))&&e[33](e[44]).apply(this,arguments)})),t.$on("back",e[30]),{c(){Ee(t.$$.fragment)},m(e,r){$e(t,e,r),n=!0},p(n,r){e=n;const i={};4&r[0]&&(i.schema=e[2]),2&r[0]&&(i.recID=e[1]),262144&r[0]&&(i.readonly=e[18]),t.$set(i)},i(e){n||(ge(t.$$.fragment,e),n=!0)},o(e){we(t.$$.fragment,e),n=!1},d(e){Ae(t,e)}}}function en(e){let t,n,r,i,o,s,a;t=new e[25]({props:{text:e[19]?"Zusätzliche Auswahl":""}});const l=[nn,tn],c=[];function d(e,t){return e[19]?0:1}return r=d(e),i=c[r]=l[r](e),s=new Yt({props:{inputSearch:e[14],record:e[3],eventId:e[2].id,className:e[2].class,prevEventId:e[13],filterForReady:e[5],filter:e[6],refStatus:e[7],praefix:e[8],selectionFields:e[9],rowId:e[1],shouldBlock:e[15],deList:e[11],stopAggregation:e[23],showEdit:e[10]}}),s.$on("edit",e[34]),s.$on("choose",e[37]),s.$on("init",e[35]),{c(){Ee(t.$$.fragment),n=M(),i.c(),o=M(),Ee(s.$$.fragment)},m(e,i){$e(t,e,i),N(e,n,i),c[r].m(e,i),N(e,o,i),$e(s,e,i),a=!0},p(e,n){const a={};524288&n[0]&&(a.text=e[19]?"Zusätzliche Auswahl":""),t.$set(a);let u=r;r=d(e),r===u?c[r].p(e,n):(me(),we(c[u],1,1,(()=>{c[u]=null})),pe(),i=c[r],i?i.p(e,n):(i=c[r]=l[r](e),i.c()),ge(i,1),i.m(o.parentNode,o));const h={};16384&n[0]&&(h.inputSearch=e[14]),8&n[0]&&(h.record=e[3]),4&n[0]&&(h.eventId=e[2].id),4&n[0]&&(h.className=e[2].class),8192&n[0]&&(h.prevEventId=e[13]),32&n[0]&&(h.filterForReady=e[5]),64&n[0]&&(h.filter=e[6]),128&n[0]&&(h.refStatus=e[7]),256&n[0]&&(h.praefix=e[8]),512&n[0]&&(h.selectionFields=e[9]),2&n[0]&&(h.rowId=e[1]),32768&n[0]&&(h.shouldBlock=e[15]),2048&n[0]&&(h.deList=e[11]),8388608&n[0]&&(h.stopAggregation=e[23]),1024&n[0]&&(h.showEdit=e[10]),s.$set(h)},i(e){a||(ge(t.$$.fragment,e),ge(i),ge(s.$$.fragment,e),a=!0)},o(e){we(t.$$.fragment,e),we(i),we(s.$$.fragment,e),a=!1},d(e){Ae(t,e),e&&R(n),c[r].d(e),e&&R(o),Ae(s,e)}}}function tn(e){let t,n,r,i;n=new e[26]({props:{outline:!0,$$slots:{default:[rn]},$$scope:{ctx:e}}}),n.$on("click",e[31]);let o=e[28]&&e[12]&&on(e);return{c(){t=O("div"),Ee(n.$$.fragment),r=M(),o&&o.c(),V(t,"class","form--buttons svelte-jb5mrh")},m(e,s){N(e,t,s),$e(n,t,null),T(t,r),o&&o.m(t,null),i=!0},p(e,r){const i={};16384&r[1]&&(i.$$scope={dirty:r,ctx:e}),n.$set(i),e[28]&&e[12]?o?(o.p(e,r),4096&r[0]&&ge(o,1)):(o=on(e),o.c(),ge(o,1),o.m(t,null)):o&&(me(),we(o,1,1,(()=>{o=null})),pe())},i(e){i||(ge(n.$$.fragment,e),ge(o),i=!0)},o(e){we(n.$$.fragment,e),we(o),i=!1},d(e){e&&R(t),Ae(n),o&&o.d()}}}function nn(e){let t,n,r,i,o,s,a=e[22]&&an(e);return r=new e[26]({props:{outline:!0,$$slots:{default:[ln]},$$scope:{ctx:e}}}),r.$on("click",e[31]),o=new e[25]({props:{text:"Liste aus "+e[16]}}),{c(){a&&a.c(),t=M(),n=O("div"),Ee(r.$$.fragment),i=M(),Ee(o.$$.fragment),V(n,"class","form--buttons svelte-jb5mrh")},m(e,l){a&&a.m(e,l),N(e,t,l),N(e,n,l),$e(r,n,null),N(e,i,l),$e(o,e,l),s=!0},p(e,n){e[22]?a?(a.p(e,n),4194304&n[0]&&ge(a,1)):(a=an(e),a.c(),ge(a,1),a.m(t.parentNode,t)):a&&(me(),we(a,1,1,(()=>{a=null})),pe());const i={};16384&n[1]&&(i.$$scope={dirty:n,ctx:e}),r.$set(i);const s={};65536&n[0]&&(s.text="Liste aus "+e[16]),o.$set(s)},i(e){s||(ge(a),ge(r.$$.fragment,e),ge(o.$$.fragment,e),s=!0)},o(e){we(a),we(r.$$.fragment,e),we(o.$$.fragment,e),s=!1},d(e){a&&a.d(e),e&&R(t),e&&R(n),Ae(r),e&&R(i),Ae(o,e)}}}function rn(e){let t;return{c(){t=x("Abbrechen")},m(e,n){N(e,t,n)},d(e){e&&R(t)}}}function on(e){let t,n;return t=new e[26]({props:{filled:!0,$$slots:{default:[sn]},$$scope:{ctx:e}}}),t.$on("click",e[32]),{c(){Ee(t.$$.fragment)},m(e,r){$e(t,e,r),n=!0},p(e,n){const r={};16384&n[1]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ge(t.$$.fragment,e),n=!0)},o(e){we(t.$$.fragment,e),n=!1},d(e){Ae(t,e)}}}function sn(e){let t;return{c(){t=x("Neu")},m(e,n){N(e,t,n)},d(e){e&&R(t)}}}function an(e){let t,n;return t=new Pl({props:{item:e[20],record:{_id:"",[e[20].name]:""},noForm:"true",classId:"sel_"+e[20].name,eventId:e[21],required:!1,hidden:!1,readonly:!1,deList:e[22]}}),t.$on("notify",e[36]),{c(){Ee(t.$$.fragment)},m(e,r){$e(t,e,r),n=!0},p(e,n){const r={};1048576&n[0]&&(r.item=e[20]),1048576&n[0]&&(r.record={_id:"",[e[20].name]:""}),1048576&n[0]&&(r.classId="sel_"+e[20].name),2097152&n[0]&&(r.eventId=e[21]),4194304&n[0]&&(r.deList=e[22]),t.$set(r)},i(e){n||(ge(t.$$.fragment,e),n=!0)},o(e){we(t.$$.fragment,e),n=!1},d(e){Ae(t,e)}}}function ln(e){let t;return{c(){t=x("Abbrechen")},m(e,n){N(e,t,n)},d(e){e&&R(t)}}}function cn(e){let t,n,r,i;const o=[en,Jt],s=[];function a(e,t){return e[44].length&&!e[17]?0:1}return t=a(e),n=s[t]=o[t](e),{c(){n.c(),r=B()},m(e,n){s[t].m(e,n),N(e,r,n),i=!0},p(e,i){let l=t;t=a(e),t===l?s[t].p(e,i):(me(),we(s[l],1,1,(()=>{s[l]=null})),pe(),n=s[t],n?n.p(e,i):(n=s[t]=o[t](e),n.c()),ge(n,1),n.m(r.parentNode,r))},i(e){i||(ge(n),i=!0)},o(e){we(n),i=!1},d(e){s[t].d(e),e&&R(r)}}}function dn(e){return{c:v,m:v,p:v,i:v,o:v,d:v}}function un(e){let t,n,r,i={ctx:e,current:null,token:null,hasCatch:!1,pending:dn,then:Kt,catch:Zt,value:44,blocks:[,,,]};return ye(n=e[29](e[4]),i),{c(){t=B(),i.block.c()},m(e,n){N(e,t,n),i.block.m(e,i.anchor=n),i.mount=()=>t.parentNode,i.anchor=t,r=!0},p(t,r){e=t,i.ctx=e,16&r[0]&&n!==(n=e[29](e[4]))&&ye(n,i)||ve(i,e,r)},i(e){r||(ge(i.block),r=!0)},o(e){for(let e=0;e<3;e+=1){we(i.blocks[e])}r=!1},d(e){e&&R(t),i.block.d(e),i.token=null,i=null}}}function hn(e,n,r){let i;const{Dialog:o,Divider:s,Button:a}=c,l=Z(),{currentTasks:d}=u;A(e,d,(e=>r(40,i=e)));let{title:h}=n,{schema:f}=n,{record:m}=n,{recID:p}=n,{isOpening:g=!0}=n,{filterForReady:w=!1}=n,{filter:y}=n,{refStatus:v}=n,{praefix:C=""}=n,{selectionFields:_=!1}=n,{showEdit:I=!0}=n,{deList:E}=n,{newAllowed:$=!0}=n,{prevEventId:b}=n,{inputSearch:S}=n,{shouldBlock:T}=n,N=f.id;f.class;let R,D,O,k,x,M,B,P="",L=!1,F=!1;h??=f.identity.designation;const V=!i?.length||i.find((e=>e===N));return e.$$set=e=>{"title"in e&&r(0,h=e.title),"schema"in e&&r(2,f=e.schema),"record"in e&&r(3,m=e.record),"recID"in e&&r(1,p=e.recID),"isOpening"in e&&r(4,g=e.isOpening),"filterForReady"in e&&r(5,w=e.filterForReady),"filter"in e&&r(6,y=e.filter),"refStatus"in e&&r(7,v=e.refStatus),"praefix"in e&&r(8,C=e.praefix),"selectionFields"in e&&r(9,_=e.selectionFields),"showEdit"in e&&r(10,I=e.showEdit),"deList"in e&&r(11,E=e.deList),"newAllowed"in e&&r(12,$=e.newAllowed),"prevEventId"in e&&r(13,b=e.prevEventId),"inputSearch"in e&&r(14,S=e.inputSearch),"shouldBlock"in e&&r(15,T=e.shouldBlock)},[h,p,f,m,g,w,y,v,C,_,I,E,$,b,S,T,P,L,R,O,x,M,B,F,o,s,a,d,V,async e=>{if(!e)return!1;const n=await oh(f.class,f.id);if(D=_&&_?.find((e=>f.class===e.refClass.split(":")[0])),r(19,O=D?.value?.get&&D.value.get(C)),O){k=D.refClass;const[e,n]=k.split(":"),[i]=n.split(".");r(20,x=D.parentClass.find((t=>t.name===e)));const o=await t.getSchemaByClass(x.refClass);r(21,M=o.id),r(16,P=D.parentClass.find((e=>e.name===i)).designation)}return n},()=>{r(17,L=!1),p||l("back"),I||l("back")},()=>{r(23,F=!0),r(17,L=!1),l("back")},()=>{r(23,F=!0),r(1,p=!1),r(18,R=!1),r(17,L=!0)},e=>({detail:{row:e}})=>{let t=f.display;t&&t.length&&t.map((t=>{const[n,r]=t.split(".");let i=f.list?.find((e=>e.name===n))?.item.find((e=>e.name===r));if(i){e[`${n}_${r}`]=e[n][r]}})),l("choose",{row:e})},({detail:e})=>{r(18,R=!!e._task.visum||"Closed"===e._task.status),r(1,p=e._docId),r(17,L=!0)},({detail:e})=>{O&&r(22,B=e)},({detail:e})=>{if(!e.value)return;const t={_id:e.value};l("choose",{row:t})},function(t){K(e,t)}]}class fn extends Se{constructor(e){var t;super(),docum