@enablerr-ui/detail
Version:
enablerr - the Next Enterprise Solution
1 lines • 754 kB
JavaScript
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.3.64");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)=>{if(!e.display&&!e.items)return"";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&&!y(e)).join(" · ")).filter(e=>!!e).join(" • ")},y=e=>/^[0-9a-f]{24}/.test(e),v=(e,t)=>{try{return t.split(".").reduce((e,t)=>e[t],e)??""}catch{return""}};function I(){}function _(e){return e()}function C(){return Object.create(null)}function E(e){e.forEach(_)}function A(e){return"function"==typeof e}function $(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function b(e,t,n){e.$$.on_destroy.push(function(e,...t){if(null==e)return I;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}(t,n))}function S(e){return null==e?"":e}function T(e,t,n=t){return e.set(n),t}function N(e,t){e.appendChild(t)}function R(e,t,n){e.insertBefore(t,n||null)}function D(e){e.parentNode.removeChild(e)}function x(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 M(e){return document.createTextNode(e)}function P(){return M(" ")}function B(){return M("")}function L(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function F(e){return function(t){return t.preventDefault(),e.call(this,t)}}function V(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function U(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function H(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function W(e,t){e.value=null==t?"":t}function z(e,t,n,r){e.style.setProperty(t,n,r?"important":"")}function j(e,t,n){e.classList[n?"add":"remove"](t)}let G;function q(e){G=e}function X(){if(!G)throw new Error("Function called outside component initialization");return G}function Y(e){X().$$.on_mount.push(e)}function Z(e){X().$$.on_destroy.push(e)}function K(){const e=X();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 Q(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach(e=>e(t))}const J=[],ee=[],te=[],ne=[],re=Promise.resolve();let ie=!1;function oe(){ie||(ie=!0,re.then(ue))}function se(){return oe(),re}function ae(e){te.push(e)}function le(e){ne.push(e)}let ce=!1;const de=new Set;function ue(){if(!ce){ce=!0;do{for(let e=0;e<J.length;e+=1){const t=J[e];q(t),he(t.$$)}for(q(null),J.length=0;ee.length;)ee.pop()();for(let e=0;e<te.length;e+=1){const t=te[e];de.has(t)||(de.add(t),t())}te.length=0}while(J.length);for(;ne.length;)ne.pop()();ie=!1,ce=!1,de.clear()}}function he(e){if(null!==e.fragment){e.update(),E(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ae)}}const fe=new Set;let me;function pe(){me={r:0,c:[],p:me}}function ge(){me.r||E(me.c),me=me.p}function we(e,t){e&&e.i&&(fe.delete(e),e.i(t))}function ye(e,t,n,r){if(e&&e.o){if(fe.has(e))return;fe.add(e),me&&me.c.push(()=>{fe.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}}function ve(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&&(pe(),ye(e,1,1,()=>{t.blocks[n]===e&&(t.blocks[n]=null)}),ge())}):t.block.d(1),a.c(),we(a,1),a.m(t.mount(),t.anchor),l=!0),t.block=a,t.blocks&&(t.blocks[r]=a),l&&ue()}if((i=e)&&"object"==typeof i&&"function"==typeof i.then){const n=X();if(e.then(e=>{q(n),r(t.then,1,t.value,e),q(null)},e=>{if(q(n),r(t.catch,2,t.error,e),q(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 Ie(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 _e="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Ce(e,t){ye(e,1,1,()=>{t.delete(e.key)})}function Ee(e,t,n){const r=e.$$.props[t];void 0!==r&&(e.$$.bound[r]=n,n(e.$$.ctx[r]))}function Ae(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||ae(()=>{const t=o.map(_).filter(A);s?s.push(...t):E(t),e.$$.on_mount=[]}),a.forEach(ae)}function be(e,t){const n=e.$$;null!==n.fragment&&(E(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Se(e,t,n,r,i,o,s=[-1]){const a=G;q(e);const l=e.$$={fragment:null,ctx:null,props:o,update:I,not_equal:i,bound:C(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:t.context||[]),callbacks:C(),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]&&(J.push(e),oe(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(e,t)),n}):[],l.update(),c=!0,E(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(D)}else l.fragment&&l.fragment.c();t.intro&&we(e.$$.fragment),$e(e,t.target,t.anchor,t.customElement),ue()}q(a)}class Te{$destroy(){be(this,1),this.$destroy=I}$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 Ne(e){let t,n,r,i;return{c(){t=k("svg"),n=k("path"),r=k("polygon"),U(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"),U(r,"points","12 15 17 21 7 21 12 15"),U(t,"xmlns","http://www.w3.org/2000/svg"),U(t,"width",e[0]),U(t,"height",e[0]),U(t,"fill","none"),U(t,"viewBox","0 0 24 24"),U(t,"stroke","currentColor"),U(t,"stroke-width",e[1]),U(t,"stroke-linecap","round"),U(t,"stroke-linejoin","round"),U(t,"class",i="feather feather-airplay "+e[2])},m(e,i){R(e,t,i),N(t,n),N(t,r)},p(e,[n]){1&n&&U(t,"width",e[0]),1&n&&U(t,"height",e[0]),2&n&&U(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-airplay "+e[2])&&U(t,"class",i)},i:I,o:I,d(e){e&&D(t)}}}function Re(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 De extends Te{constructor(e){super(),Se(this,e,Re,Ne,$,{size:0,strokeWidth:1,class:2})}}function xe(e){let t,n,r,i,o;return{c(){t=k("svg"),n=k("path"),r=k("line"),i=k("line"),U(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"),U(r,"x1","12"),U(r,"y1","9"),U(r,"x2","12"),U(r,"y2","13"),U(i,"x1","12"),U(i,"y1","17"),U(i,"x2","12.01"),U(i,"y2","17"),U(t,"xmlns","http://www.w3.org/2000/svg"),U(t,"width",e[0]),U(t,"height",e[0]),U(t,"fill","none"),U(t,"viewBox","0 0 24 24"),U(t,"stroke","currentColor"),U(t,"stroke-width",e[1]),U(t,"stroke-linecap","round"),U(t,"stroke-linejoin","round"),U(t,"class",o="feather feather-alert-triangle "+e[2])},m(e,o){R(e,t,o),N(t,n),N(t,r),N(t,i)},p(e,[n]){1&n&&U(t,"width",e[0]),1&n&&U(t,"height",e[0]),2&n&&U(t,"stroke-width",e[1]),4&n&&o!==(o="feather feather-alert-triangle "+e[2])&&U(t,"class",o)},i:I,o:I,d(e){e&&D(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 Te{constructor(e){super(),Se(this,e,Oe,xe,$,{size:0,strokeWidth:1,class:2})}}function Me(e){let t,n,r,i,o;return{c(){t=k("svg"),n=k("circle"),r=k("polyline"),i=k("line"),U(n,"cx","12"),U(n,"cy","12"),U(n,"r","10"),U(r,"points","8 12 12 16 16 12"),U(i,"x1","12"),U(i,"y1","8"),U(i,"x2","12"),U(i,"y2","16"),U(t,"xmlns","http://www.w3.org/2000/svg"),U(t,"width",e[0]),U(t,"height",e[0]),U(t,"fill","none"),U(t,"viewBox","0 0 24 24"),U(t,"stroke","currentColor"),U(t,"stroke-width",e[1]),U(t,"stroke-linecap","round"),U(t,"stroke-linejoin","round"),U(t,"class",o="feather feather-arrow-down-circle "+e[2])},m(e,o){R(e,t,o),N(t,n),N(t,r),N(t,i)},p(e,[n]){1&n&&U(t,"width",e[0]),1&n&&U(t,"height",e[0]),2&n&&U(t,"stroke-width",e[1]),4&n&&o!==(o="feather feather-arrow-down-circle "+e[2])&&U(t,"class",o)},i:I,o:I,d(e){e&&D(t)}}}function Pe(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 Te{constructor(e){super(),Se(this,e,Pe,Me,$,{size:0,strokeWidth:1,class:2})}}function Le(e){let t,n,r,i;return{c(){t=k("svg"),n=k("path"),r=k("path"),U(n,"d","M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"),U(r,"d","M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"),U(t,"xmlns","http://www.w3.org/2000/svg"),U(t,"width",e[0]),U(t,"height",e[0]),U(t,"fill","none"),U(t,"viewBox","0 0 24 24"),U(t,"stroke","currentColor"),U(t,"stroke-width",e[1]),U(t,"stroke-linecap","round"),U(t,"stroke-linejoin","round"),U(t,"class",i="feather feather-book-open "+e[2])},m(e,i){R(e,t,i),N(t,n),N(t,r)},p(e,[n]){1&n&&U(t,"width",e[0]),1&n&&U(t,"height",e[0]),2&n&&U(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-book-open "+e[2])&&U(t,"class",i)},i:I,o:I,d(e){e&&D(t)}}}function Fe(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 Ve extends Te{constructor(e){super(),Se(this,e,Fe,Le,$,{size:0,strokeWidth:1,class:2})}}function Ue(e){let t,n,r,i;return{c(){t=k("svg"),n=k("path"),r=k("circle"),U(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"),U(r,"cx","12"),U(r,"cy","13"),U(r,"r","4"),U(t,"xmlns","http://www.w3.org/2000/svg"),U(t,"width",e[0]),U(t,"height",e[0]),U(t,"fill","none"),U(t,"viewBox","0 0 24 24"),U(t,"stroke","currentColor"),U(t,"stroke-width",e[1]),U(t,"stroke-linecap","round"),U(t,"stroke-linejoin","round"),U(t,"class",i="feather feather-camera "+e[2])},m(e,i){R(e,t,i),N(t,n),N(t,r)},p(e,[n]){1&n&&U(t,"width",e[0]),1&n&&U(t,"height",e[0]),2&n&&U(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-camera "+e[2])&&U(t,"class",i)},i:I,o:I,d(e){e&&D(t)}}}function He(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 We extends Te{constructor(e){super(),Se(this,e,He,Ue,$,{size:0,strokeWidth:1,class:2})}}function ze(e){let t,n,r,i;return{c(){t=k("svg"),n=k("path"),r=k("polyline"),U(n,"d","M22 11.08V12a10 10 0 1 1-5.93-9.14"),U(r,"points","22 4 12 14.01 9 11.01"),U(t,"xmlns","http://www.w3.org/2000/svg"),U(t,"width",e[0]),U(t,"height",e[0]),U(t,"fill","none"),U(t,"viewBox","0 0 24 24"),U(t,"stroke","currentColor"),U(t,"stroke-width",e[1]),U(t,"stroke-linecap","round"),U(t,"stroke-linejoin","round"),U(t,"class",i="feather feather-check-circle "+e[2])},m(e,i){R(e,t,i),N(t,n),N(t,r)},p(e,[n]){1&n&&U(t,"width",e[0]),1&n&&U(t,"height",e[0]),2&n&&U(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-check-circle "+e[2])&&U(t,"class",i)},i:I,o:I,d(e){e&&D(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 Ge extends Te{constructor(e){super(),Se(this,e,je,ze,$,{size:0,strokeWidth:1,class:2})}}function qe(e){let t,n,r;return{c(){t=k("svg"),n=k("path"),U(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"),U(t,"xmlns","http://www.w3.org/2000/svg"),U(t,"width",e[0]),U(t,"height",e[0]),U(t,"fill","none"),U(t,"viewBox","0 0 24 24"),U(t,"stroke","currentColor"),U(t,"stroke-width",e[1]),U(t,"stroke-linecap","round"),U(t,"stroke-linejoin","round"),U(t,"class",r="feather feather-command "+e[2])},m(e,r){R(e,t,r),N(t,n)},p(e,[n]){1&n&&U(t,"width",e[0]),1&n&&U(t,"height",e[0]),2&n&&U(t,"stroke-width",e[1]),4&n&&r!==(r="feather feather-command "+e[2])&&U(t,"class",r)},i:I,o:I,d(e){e&&D(t)}}}function Xe(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 Ye extends Te{constructor(e){super(),Se(this,e,Xe,qe,$,{size:0,strokeWidth:1,class:2})}}function Ze(e){let t,n,r,i;return{c(){t=k("svg"),n=k("polyline"),r=k("path"),U(n,"points","9 10 4 15 9 20"),U(r,"d","M20 4v7a4 4 0 0 1-4 4H4"),U(t,"xmlns","http://www.w3.org/2000/svg"),U(t,"width",e[0]),U(t,"height",e[0]),U(t,"fill","none"),U(t,"viewBox","0 0 24 24"),U(t,"stroke","currentColor"),U(t,"stroke-width",e[1]),U(t,"stroke-linecap","round"),U(t,"stroke-linejoin","round"),U(t,"class",i="feather feather-corner-down-left "+e[2])},m(e,i){R(e,t,i),N(t,n),N(t,r)},p(e,[n]){1&n&&U(t,"width",e[0]),1&n&&U(t,"height",e[0]),2&n&&U(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-corner-down-left "+e[2])&&U(t,"class",i)},i:I,o:I,d(e){e&&D(t)}}}function Ke(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 Te{constructor(e){super(),Se(this,e,Ke,Ze,$,{size:0,strokeWidth:1,class:2})}}function Je(e){let t,n,r,i,o;return{c(){t=k("svg"),n=k("path"),r=k("line"),i=k("line"),U(n,"d","M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"),U(r,"x1","18"),U(r,"y1","9"),U(r,"x2","12"),U(r,"y2","15"),U(i,"x1","12"),U(i,"y1","9"),U(i,"x2","18"),U(i,"y2","15"),U(t,"xmlns","http://www.w3.org/2000/svg"),U(t,"width",e[0]),U(t,"height",e[0]),U(t,"fill","none"),U(t,"viewBox","0 0 24 24"),U(t,"stroke","currentColor"),U(t,"stroke-width",e[1]),U(t,"stroke-linecap","round"),U(t,"stroke-linejoin","round"),U(t,"class",o="feather feather-delete "+e[2])},m(e,o){R(e,t,o),N(t,n),N(t,r),N(t,i)},p(e,[n]){1&n&&U(t,"width",e[0]),1&n&&U(t,"height",e[0]),2&n&&U(t,"stroke-width",e[1]),4&n&&o!==(o="feather feather-delete "+e[2])&&U(t,"class",o)},i:I,o:I,d(e){e&&D(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 tt extends Te{constructor(e){super(),Se(this,e,et,Je,$,{size:0,strokeWidth:1,class:2})}}function nt(e){let t,n,r,i,o;return{c(){t=k("svg"),n=k("path"),r=k("polyline"),i=k("line"),U(n,"d","M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"),U(r,"points","15 3 21 3 21 9"),U(i,"x1","10"),U(i,"y1","14"),U(i,"x2","21"),U(i,"y2","3"),U(t,"xmlns","http://www.w3.org/2000/svg"),U(t,"width",e[0]),U(t,"height",e[0]),U(t,"fill","none"),U(t,"viewBox","0 0 24 24"),U(t,"stroke","currentColor"),U(t,"stroke-width",e[1]),U(t,"stroke-linecap","round"),U(t,"stroke-linejoin","round"),U(t,"class",o="feather feather-external-link "+e[2])},m(e,o){R(e,t,o),N(t,n),N(t,r),N(t,i)},p(e,[n]){1&n&&U(t,"width",e[0]),1&n&&U(t,"height",e[0]),2&n&&U(t,"stroke-width",e[1]),4&n&&o!==(o="feather feather-external-link "+e[2])&&U(t,"class",o)},i:I,o:I,d(e){e&&D(t)}}}function rt(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 it extends Te{constructor(e){super(),Se(this,e,rt,nt,$,{size:0,strokeWidth:1,class:2})}}function ot(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"),U(n,"d","M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"),U(r,"points","14 2 14 8 20 8"),U(i,"x1","12"),U(i,"y1","18"),U(i,"x2","12"),U(i,"y2","12"),U(o,"x1","9"),U(o,"y1","15"),U(o,"x2","15"),U(o,"y2","15"),U(t,"xmlns","http://www.w3.org/2000/svg"),U(t,"width",e[0]),U(t,"height",e[0]),U(t,"fill","none"),U(t,"viewBox","0 0 24 24"),U(t,"stroke","currentColor"),U(t,"stroke-width",e[1]),U(t,"stroke-linecap","round"),U(t,"stroke-linejoin","round"),U(t,"class",s="feather feather-file-plus "+e[2])},m(e,s){R(e,t,s),N(t,n),N(t,r),N(t,i),N(t,o)},p(e,[n]){1&n&&U(t,"width",e[0]),1&n&&U(t,"height",e[0]),2&n&&U(t,"stroke-width",e[1]),4&n&&s!==(s="feather feather-file-plus "+e[2])&&U(t,"class",s)},i:I,o:I,d(e){e&&D(t)}}}function st(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 at extends Te{constructor(e){super(),Se(this,e,st,ot,$,{size:0,strokeWidth:1,class:2})}}function lt(e){let t,n,r,i,o;return{c(){t=k("svg"),n=k("circle"),r=k("line"),i=k("path"),U(n,"cx","12"),U(n,"cy","12"),U(n,"r","10"),U(r,"x1","2"),U(r,"y1","12"),U(r,"x2","22"),U(r,"y2","12"),U(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"),U(t,"xmlns","http://www.w3.org/2000/svg"),U(t,"width",e[0]),U(t,"height",e[0]),U(t,"fill","none"),U(t,"viewBox","0 0 24 24"),U(t,"stroke","currentColor"),U(t,"stroke-width",e[1]),U(t,"stroke-linecap","round"),U(t,"stroke-linejoin","round"),U(t,"class",o="feather feather-globe "+e[2])},m(e,o){R(e,t,o),N(t,n),N(t,r),N(t,i)},p(e,[n]){1&n&&U(t,"width",e[0]),1&n&&U(t,"height",e[0]),2&n&&U(t,"stroke-width",e[1]),4&n&&o!==(o="feather feather-globe "+e[2])&&U(t,"class",o)},i:I,o:I,d(e){e&&D(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 dt extends Te{constructor(e){super(),Se(this,e,ct,lt,$,{size:0,strokeWidth:1,class:2})}}function ut(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"),U(n,"x1","8"),U(n,"y1","6"),U(n,"x2","21"),U(n,"y2","6"),U(r,"x1","8"),U(r,"y1","12"),U(r,"x2","21"),U(r,"y2","12"),U(i,"x1","8"),U(i,"y1","18"),U(i,"x2","21"),U(i,"y2","18"),U(o,"x1","3"),U(o,"y1","6"),U(o,"x2","3.01"),U(o,"y2","6"),U(s,"x1","3"),U(s,"y1","12"),U(s,"x2","3.01"),U(s,"y2","12"),U(a,"x1","3"),U(a,"y1","18"),U(a,"x2","3.01"),U(a,"y2","18"),U(t,"xmlns","http://www.w3.org/2000/svg"),U(t,"width",e[0]),U(t,"height",e[0]),U(t,"fill","none"),U(t,"viewBox","0 0 24 24"),U(t,"stroke","currentColor"),U(t,"stroke-width",e[1]),U(t,"stroke-linecap","round"),U(t,"stroke-linejoin","round"),U(t,"class",l="feather feather-list "+e[2])},m(e,l){R(e,t,l),N(t,n),N(t,r),N(t,i),N(t,o),N(t,s),N(t,a)},p(e,[n]){1&n&&U(t,"width",e[0]),1&n&&U(t,"height",e[0]),2&n&&U(t,"stroke-width",e[1]),4&n&&l!==(l="feather feather-list "+e[2])&&U(t,"class",l)},i:I,o:I,d(e){e&&D(t)}}}function ht(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 ft extends Te{constructor(e){super(),Se(this,e,ht,ut,$,{size:0,strokeWidth:1,class:2})}}function mt(e){let t,n,r,i;return{c(){t=k("svg"),n=k("path"),r=k("polyline"),U(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"),U(r,"points","22,6 12,13 2,6"),U(t,"xmlns","http://www.w3.org/2000/svg"),U(t,"width",e[0]),U(t,"height",e[0]),U(t,"fill","none"),U(t,"viewBox","0 0 24 24"),U(t,"stroke","currentColor"),U(t,"stroke-width",e[1]),U(t,"stroke-linecap","round"),U(t,"stroke-linejoin","round"),U(t,"class",i="feather feather-mail "+e[2])},m(e,i){R(e,t,i),N(t,n),N(t,r)},p(e,[n]){1&n&&U(t,"width",e[0]),1&n&&U(t,"height",e[0]),2&n&&U(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-mail "+e[2])&&U(t,"class",i)},i:I,o:I,d(e){e&&D(t)}}}function pt(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 gt extends Te{constructor(e){super(),Se(this,e,pt,mt,$,{size:0,strokeWidth:1,class:2})}}function wt(e){let t,n,r,i;return{c(){t=k("svg"),n=k("path"),r=k("circle"),U(n,"d","M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"),U(r,"cx","12"),U(r,"cy","10"),U(r,"r","3"),U(t,"xmlns","http://www.w3.org/2000/svg"),U(t,"width",e[0]),U(t,"height",e[0]),U(t,"fill","none"),U(t,"viewBox","0 0 24 24"),U(t,"stroke","currentColor"),U(t,"stroke-width",e[1]),U(t,"stroke-linecap","round"),U(t,"stroke-linejoin","round"),U(t,"class",i="feather feather-map-pin "+e[2])},m(e,i){R(e,t,i),N(t,n),N(t,r)},p(e,[n]){1&n&&U(t,"width",e[0]),1&n&&U(t,"height",e[0]),2&n&&U(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-map-pin "+e[2])&&U(t,"class",i)},i:I,o:I,d(e){e&&D(t)}}}function yt(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 vt extends Te{constructor(e){super(),Se(this,e,yt,wt,$,{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("line"),i=k("path"),U(n,"points","23 7 23 1 17 1"),U(r,"x1","16"),U(r,"y1","8"),U(r,"x2","23"),U(r,"y2","1"),U(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"),U(t,"xmlns","http://www.w3.org/2000/svg"),U(t,"width",e[0]),U(t,"height",e[0]),U(t,"fill","none"),U(t,"viewBox","0 0 24 24"),U(t,"stroke","currentColor"),U(t,"stroke-width",e[1]),U(t,"stroke-linecap","round"),U(t,"stroke-linejoin","round"),U(t,"class",o="feather feather-phone-outgoing "+e[2])},m(e,o){R(e,t,o),N(t,n),N(t,r),N(t,i)},p(e,[n]){1&n&&U(t,"width",e[0]),1&n&&U(t,"height",e[0]),2&n&&U(t,"stroke-width",e[1]),4&n&&o!==(o="feather feather-phone-outgoing "+e[2])&&U(t,"class",o)},i:I,o:I,d(e){e&&D(t)}}}function _t(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 Te{constructor(e){super(),Se(this,e,_t,It,$,{size:0,strokeWidth:1,class:2})}}function Et(e){let t,n,r,i,o;return{c(){t=k("svg"),n=k("polyline"),r=k("path"),i=k("rect"),U(n,"points","6 9 6 2 18 2 18 9"),U(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"),U(i,"x","6"),U(i,"y","14"),U(i,"width","12"),U(i,"height","8"),U(t,"xmlns","http://www.w3.org/2000/svg"),U(t,"width",e[0]),U(t,"height",e[0]),U(t,"fill","none"),U(t,"viewBox","0 0 24 24"),U(t,"stroke","currentColor"),U(t,"stroke-width",e[1]),U(t,"stroke-linecap","round"),U(t,"stroke-linejoin","round"),U(t,"class",o="feather feather-printer "+e[2])},m(e,o){R(e,t,o),N(t,n),N(t,r),N(t,i)},p(e,[n]){1&n&&U(t,"width",e[0]),1&n&&U(t,"height",e[0]),2&n&&U(t,"stroke-width",e[1]),4&n&&o!==(o="feather feather-printer "+e[2])&&U(t,"class",o)},i:I,o:I,d(e){e&&D(t)}}}function At(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 Te{constructor(e){super(),Se(this,e,At,Et,$,{size:0,strokeWidth:1,class:2})}}function bt(e){let t,n,r,i;return{c(){t=k("svg"),n=k("circle"),r=k("line"),U(n,"cx","11"),U(n,"cy","11"),U(n,"r","8"),U(r,"x1","21"),U(r,"y1","21"),U(r,"x2","16.65"),U(r,"y2","16.65"),U(t,"xmlns","http://www.w3.org/2000/svg"),U(t,"width",e[0]),U(t,"height",e[0]),U(t,"fill","none"),U(t,"viewBox","0 0 24 24"),U(t,"stroke","currentColor"),U(t,"stroke-width",e[1]),U(t,"stroke-linecap","round"),U(t,"stroke-linejoin","round"),U(t,"class",i="feather feather-search "+e[2])},m(e,i){R(e,t,i),N(t,n),N(t,r)},p(e,[n]){1&n&&U(t,"width",e[0]),1&n&&U(t,"height",e[0]),2&n&&U(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-search "+e[2])&&U(t,"class",i)},i:I,o:I,d(e){e&&D(t)}}}function St(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 Tt extends Te{constructor(e){super(),Se(this,e,St,bt,$,{size:0,strokeWidth:1,class:2})}}const{document:Nt}=_e;function Rt(e){e[49]=e[50].items}function Dt(e,t,n){const r=e.slice();return r[51]=t[n],r[53]=n,r}function xt(e,t,n){const r=e.slice();return r[54]=t[n],r}function Ot(e,t,n){const r=e.slice();return r[54]=t[n],r}function kt(e){return{c:I,m:I,p:I,i:I,o:I,d:I}}function Mt(e){let t,n,r,i,o,s;Rt(e);let a=e[5]?.length&&Pt(e),l=e[49]?.length&&Lt(e),c=e[5]?.length&&Ut(e);return{c(){a&&a.c(),t=P(),n=O("div"),r=O("table"),l&&l.c(),i=P(),o=O("tbody"),c&&c.c(),U(r,"striped",""),U(r,"class","svelte-47aais"),U(n,"class","eList svelte-47aais")},m(e,d){a&&a.m(e,d),R(e,t,d),R(e,n,d),N(n,r),l&&l.m(r,null),N(r,i),N(r,o),c&&c.m(o,null),s=!0},p(e,n){Rt(e),e[5]?.length?a?(a.p(e,n),32&n[0]&&we(a,1)):(a=Pt(e),a.c(),we(a,1),a.m(t.parentNode,t)):a&&(pe(),ye(a,1,1,()=>{a=null}),ge()),e[49]?.length?l?l.p(e,n):(l=Lt(e),l.c(),l.m(r,i)):l&&(l.d(1),l=null),e[5]?.length?c?(c.p(e,n),32&n[0]&&we(c,1)):(c=Ut(e),c.c(),we(c,1),c.m(o,null)):c&&(pe(),ye(c,1,1,()=>{c=null}),ge())},i(e){s||(we(a),we(c),s=!0)},o(e){ye(a),ye(c),s=!1},d(e){a&&a.d(e),e&&D(t),e&&D(n),l&&l.d(),c&&c.d()}}}function Pt(e){let t,n,r,i,o,s,a,l,c,d,u,h=e[6]&&Bt(e);function f(t){e[33](t)}let m={id:e[10]};return void 0!==e[3]&&(m.value=e[3]),i=new e[8]({props:m}),ee.push(()=>Ee(i,"value",f)),i.$on("input",e[14]),l=new tt({props:{size:"18"}}),{c(){h&&h.c(),t=P(),n=O("div"),r=M("Suchen: "),Ae(i.$$.fragment),s=P(),a=O("span"),Ae(l.$$.fragment),U(a,"class","feather pointer svelte-47aais"),z(n,"margin-bottom","1em"),z(n,"position","relative")},m(o,f){h&&h.m(o,f),R(o,t,f),R(o,n,f),N(n,r),$e(i,n,null),N(n,s),N(n,a),$e(l,a,null),c=!0,d||(u=L(a,"click",e[16]),d=!0)},p(e,n){e[6]?h?64&n[0]&&we(h,1):(h=Bt(e),h.c(),we(h,1),h.m(t.parentNode,t)):h&&(pe(),ye(h,1,1,()=>{h=null}),ge());const r={};!o&&8&n[0]&&(o=!0,r.value=e[3],le(()=>o=!1)),i.$set(r)},i(e){c||(we(h),we(i.$$.fragment,e),we(l.$$.fragment,e),c=!0)},o(e){ye(h),ye(i.$$.fragment,e),ye(l.$$.fragment,e),c=!1},d(e){h&&h.d(e),e&&D(t),e&&D(n),be(i),be(l),d=!1,u()}}}function Bt(e){let t,n;return t=new e[7]({}),{c(){Ae(t.$$.fragment)},m(e,r){$e(t,e,r),n=!0},i(e){n||(we(t.$$.fragment,e),n=!0)},o(e){ye(t.$$.fragment,e),n=!1},d(e){be(t,e)}}}function Lt(e){let t,n,r,i=e[4]&&e[0]&&Ft(),o=e[49],s=[];for(let t=0;t<o.length;t+=1)s[t]=Vt(Ot(e,o,t));return{c(){t=O("thead"),n=O("tr"),i&&i.c(),r=P();for(let e=0;e<s.length;e+=1)s[e].c();U(n,"class","svelte-47aais"),U(t,"class","svelte-47aais")},m(e,o){R(e,t,o),N(t,n),i&&i.m(n,null),N(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=Ft(),i.c(),i.m(n,r)):i&&(i.d(1),i=null),8196&t[0]){let r;for(o=e[49],r=0;r<o.length;r+=1){const i=Ot(e,o,r);s[r]?s[r].p(i,t):(s[r]=Vt(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&&D(t),i&&i.d(),x(s,e)}}}function Ft(e){let t;return{c(){t=O("th"),U(t,"class","svelte-47aais")},m(e,n){R(e,t,n)},d(e){e&&D(t)}}}function Vt(e){let t,n,r=e[54]?.designation+"";return{c(){t=O("th"),n=M(r),U(t,"class","svelte-47aais")},m(e,r){R(e,t,r),N(t,n)},p(e,t){4&t[0]&&r!==(r=e[54]?.designation+"")&&H(n,r)},d(e){e&&D(t)}}}function Ut(e){let t,n,r=[],i=new Map,o=e[5];const s=e=>e[51].index||e[51]?._id;for(let t=0;t<o.length;t+=1){let n=Dt(e,o,t),a=s(n);i.set(a,r[t]=jt(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);R(e,t,i),n=!0},p(e,n){178239&n[0]&&(o=e[5],pe(),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,I=new Set;function _(e){we(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):I.has(i)?h--:y.get(r)>y.get(i)?(I.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,Ce,jt,t,Dt),ge())},i(e){if(!n){for(let e=0;e<o.length;e+=1)we(r[e]);n=!0}},o(e){for(let e=0;e<r.length;e+=1)ye(r[e]);n=!1},d(e){for(let t=0;t<r.length;t+=1)r[t].d(e);e&&D(t)}}}function Ht(e){let t,n,r,i,o,s,a=e[4]&&e[0]&&Wt(e),l=e[49],c=[];for(let t=0;t<l.length;t+=1)c[t]=zt(xt(e,l,t));return{c(){t=O("tr"),a&&a.c(),n=P();for(let e=0;e<c.length;e+=1)c[e].c();r=P(),U(t,"class","pointer svelte-47aais"),j(t,"active",e[51]._id===e[1]),j(t,"blocked",!!e[51].blocked),j(t,"undeliverable",!!e[51].undeliverable)},m(l,d){R(l,t,d),a&&a.m(t,null),N(t,n);for(let e=0;e<c.length;e+=1)c[e].m(t,null);N(t,r),i=!0,o||(s=L(t,"click",V(function(){A(e[12](e[51],e[53]))&&e[12](e[51],e[53]).apply(this,arguments)})),o=!0)},p(i,o){if((e=i)[4]&&e[0]?a?(a.p(e,o),17&o[0]&&we(a,1)):(a=Wt(e),a.c(),we(a,1),a.m(t,n)):a&&(pe(),ye(a,1,1,()=>{a=null}),ge()),10276&o[0]){let n;for(l=e[49],n=0;n<l.length;n+=1){const i=xt(e,l,n);c[n]?c[n].p(i,o):(c[n]=zt(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]&&j(t,"active",e[51]._id===e[1]),32&o[0]&&j(t,"blocked",!!e[51].blocked),32&o[0]&&j(t,"undeliverable",!!e[51].undeliverable)},i(e){i||(we(a),i=!0)},o(e){ye(a),i=!1},d(e){e&&D(t),a&&a.d(),x(c,e),o=!1,s()}}}function Wt(e){let t,n,r,i,o;return n=new it({props:{size:"18"}}),{c(){t=O("td"),Ae(n.$$.fragment),U(t,"class","editRow svelte-47aais"),z(t,"color","#326173")},m(s,a){R(s,t,a),$e(n,t,null),r=!0,i||(o=L(t,"click",V(function(){A(e[17](e[51]))&&e[17](e[51]).apply(this,arguments)})),i=!0)},p(t,n){e=t},i(e){r||(we(n.$$.fragment,e),r=!0)},o(e){ye(n.$$.fragment,e),r=!1},d(e){e&&D(t),be(n),i=!1,o()}}}function zt(e){let t,n,r,i=e[11](e[51],e[54])+"";return{c(){t=O("td"),n=M(i),U(t,"class",r=S(e[54].type)+" svelte-47aais")},m(e,r){R(e,t,r),N(t,n)},p(e,o){36&o[0]&&i!==(i=e[11](e[51],e[54])+"")&&H(n,i),4&o[0]&&r!==(r=S(e[54].type)+" svelte-47aais")&&U(t,"class",r)},d(e){e&&D(t)}}}function jt(e,t){let n,r,i,o=t[15](t[51],t[49],t[3]),s=o&&Ht(t);return{key:e,first:null,c(){n=B(),s&&s.c(),r=B(),this.first=n},m(e,t){R(e,n,t),s&&s.m(e,t),R(e,r,t),i=!0},p(e,n){t=e,44&n[0]&&(o=t[15](t[51],t[49],t[3])),o?s?(s.p(t,n),44&n[0]&&we(s,1)):(s=Ht(t),s.c(),we(s,1),s.m(r.parentNode,r)):s&&(pe(),ye(s,1,1,()=>{s=null}),ge())},i(e){i||(we(s),i=!0)},o(e){ye(s),i=!1},d(e){e&&D(n),s&&s.d(e),e&&D(r)}}}function Gt(e){let t,n;return t=new e[7]({}),{c(){Ae(t.$$.fragment)},m(e,r){$e(t,e,r),n=!0},p:I,i(e){n||(we(t.$$.fragment,e),n=!0)},o(e){ye(t.$$.fragment,e),n=!1},d(e){be(t,e)}}}function qt(e){let t,n,r,i={ctx:e,current:null,token:null,hasCatch:!1,pending:Gt,then:Mt,catch:kt,value:50,blocks:[,,,]};return ve(n=e[2]&&e[13](),i),{c(){t=B(),i.block.c()},m(e,n){R(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]())&&ve(n,i)||Ie(i,e,r)},i(e){r||(we(i.block),r=!0)},o(e){for(let e=0;e<3;e+=1){ye(i.blocks[e])}r=!1},d(e){e&&D(t),i.block.d(e),i.token=null,i=null}}}const Xt=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 Yt(e,i,o){let s;let a=JSON.parse(n.getItem("Locale")).id;const l=K(),{Loading:d,TextField:h}=c,{currentTasks:f}=u;b(e,f,e=>o(37,s=e));let p,w,y,v,{inputList:I}=i,{eventId:_}=i,{prevEventId:C}=i,{record:E}=i,{className:A}=i,{rowId:$}=i,{filterForReady:S=!1}=i,{filter:T}=i,{query:N}=i,{refStatus:R}=i,{showEdit:D=!1}=i,{praefix:x=""}=i,{selectionFields:O=!1}=i,{deList:k}=i,{stopAggregation:M=!1}=i,{shouldBlock:P}=i,{inputSearch:B=""}=i,L=!0,F=B,V=A+Math.floor(9e3*Math.random()+1e3).toString()+"search",U=!1,H=!0;const W=(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||"")},z=t.getSchemaByClass(A),j=async(e,n)=>{if(!e)return[];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]===$: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(R&&!N)return o(18,R=[].concat(R)),e.filter(e=>!!R.find(t=>e._task.status===t));if("Information"===n.state.task)return e;if(C){const n=await t.getEvent(C);if("report"===n?.output?.type)return e;if(n?.input?.class?.length&&n.input.class[0].name===A)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)},G=(e,t)=>{if(e){let n,r="1";if("string"==typeof e)n=e;else{const t=Object.keys(e);n=t[0],r=e[t[0]]}"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},q=async e=>{let n,r=0;H=!1;const i=e=>new Promise(t=>setTimeout(t,e)),s=await z;for(;r++<200&&!M&&!(n=await X(e,s.id));)await i(500);o(6,U=!1),M&&t.readTasksByAggregationId(e,!0),n&&(o(5,y=G(w.displaySort,n.data)),window.setTimeout(()=>{const e=document.querySelector("tr.active");e&&e.scrollIntoView({block:"end",behavior:"smooth"}),H=!0},100))},X=async(e,n)=>await t.readTasksByAggregationId(e,!1,n),Z=async(e,t,n,r)=>{const{value:i,refClass:o}=r,[s,a]=n.split("."),l=i?.get(x),c=l&&await Im(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 ym(o+r._id.toString(),r),r}):e};Y(()=>{window.setTimeout(()=>{const e=document.querySelector("tr.active");e?e.scrollIntoView({block:"end",behavior:"smooth"}):document.getElementById(V)?.focus()},200)}),r.subscribe(async e=>{if(!e)return;const t=await z;e.eventId===t.id&&(_m(t.class,e.eventId),o(2,L=!o(2,L=!1)))});return e.$$set=e=>{"inputList"in e&&o(20,I=e.inputList),"eventId"in e&&o(21,_=e.eventId),"prevEventId"in e&&o(22,C=e.prevEventId),"record"in e&&o(23,E=e.record),"className"in e&&o(24,A=e.className),"rowId"in e&&o(1,$=e.rowId),"filterForReady"in e&&o(25,S=e.filterForReady),"filter"in e&&o(26,T=e.filter),"query"in e&&o(27,N=e.query),"refStatus"in e&&o(18,R=e.refStatus),"showEdit"in e&&o(0,D=e.showEdit),"praefix"in e&&o(28,x=e.praefix),"selectionFields"in e&&o(29,O=e.selectionFields),"deList"in e&&o(30,k=e.deList),"stopAggregation"in e&&o(19,M=e.stopAggregation),"shouldBlock"in e&&o(31,P=e.shouldBlock),"inputSearch"in e&&o(32,B=e.inputSearch)},[D,$,L,F,p,y,U,d,h,f,V,W,(e,t)=>n=>{o(19,M=!0);const r=H?e:v[t];l("choose",{row:r})},async()=>{w=await z,o(4,p=(e=>!s?.length||!!s.find(t=>t===e))(w.id)),N&&o(5,y=v=await t.getTasksFiltered(w.class,N)),y||o(5,y=v=G(w.displaySort,await I||await gm(w.class,w.id))),500!==y?.length||N||(o(6,U=!0),t.getTasksList(w.id,!1,!0).then(({aggregationId:e})=>q(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(x);if(a){const[s,l]=i.refClass.split(":");w.class===s&&o(5,y=await Z(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,D&&=!i),!i&&(T||S||R)&&o(5,y=await j(y,w));const{display:c}=w;let d=await Xt(c,w,y);return!D&&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,n)=>{const r=e.find(e=>e._id===t._id);return r&&(t.ist=r.quantity.$numberDecimal),t.index=n,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))),P&&o(5,y=y.filter(e=>!e[P])),{items:d}},({detail:{value:e}})=>{o(3,F=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=W(e,i).toLowerCase();!r&&t.includes(n)&&(r=!0)}return r},()=>{o(3,F="")},async e=>{let t=e._task;t||(t=await wm(A,"",e._id,!0),t=t._task),window.open(`/task/${t.event}/${t.task_id||t._id}/task?view=standalone`,"_blank")},R,M,I,_,C,E,A,S,T,N,x,O,k,P,B,function(e){F=e,o(3,F)}]}class Zt extends Te{constructor(e){var t;super(),Nt.getElementById("svelte-47aais-style")||((t=O("style")).id="svelte-47aais-style",t.textContent=".feather.svelte-47aais.svelte-47aais{position:absolute;top:2em;right:0.5em;color:#326173}.eList.svelte-47aais.svelte-47aais{height:fit-content;max-height:65vh;overflow-y:scroll;overflow-x:auto}.eList.svelte-47aais .editRow.svelte-47aais{width:1em}.eList.svelte-47aais table.svelte-47aais{min-width:30vw;position:relative;width:max-content !important;max-width:50vh !important}.eList.svelte-47aais table thead.svelte-47aais{position:sticky;top:0;background:#326173;color:white}.eList.svelte-47aais table thead tr.svelte-47aais{height:2.3em}.eList.svelte-47aais table tbody tr.svelte-47aais{height:2.75em !important}th.svelte-47aais.svelte-47aais,td.svelte-47aais.svelte-47aais{padding-left:0.4em;padding-right:0.4em}td.number.svelte-47aais.svelte-47aais{text-align:end}tr.pointer.svelte-47aais.svelte-47aais:hover{background-color:#DAE1E5}tr.active.svelte-47aais.svelte-47aais{color:#326173;background-color:#fcebd5}tr.blocked.svelte-47aais.svelte-47aais{color:red !important}tr.undeliverable.svelte-47aais.svelte-47aais{color:orange}",N(Nt.head,t)),Se(this,e,Yt,qt,$,{inputList:20,eventId:21,prevEventId:22,record:23,className:24,rowId:1,filterForReady:25,filter:26,query:27,refStatus:18,showEdit:0,praefix:28,selectionFields:29,deList:30,stopAggregation:19,shouldBlock:31,inputSearch:32},[-1,-1])}}function Kt(e){return{c:I,m:I,p:I,i:I,o:I,d:I}}function Qt(e){let t,n,r=e[45]&&Jt(e);return{c(){r&&r.c(),t=B()},m(e,i){r&&r.m(e,i),R(e,t,i),n=!0},p(e,n){e[45]?r?(r.p(e,n),16&n[0]&&we(r,1)):(r=Jt(e),r.c(),we(r,1),r.m(t.parentNode,t)):r&&(pe(),ye(r,1,1,()=>{r=null}),ge())},i(e){n||(we(r),n=!0)},o(e){ye(r),n=!1},d(e){r&&r.d(e),e&&D(t)}}}function Jt(e){let t,n;return t=new e[25]({props:{title:e[20]?"Auswahl":e[0],class:"eList "+(e[18]?"form":""),$$slots:{default:[dn]},$$scope:{ctx:e}}}),{c(){Ae(t.$$.fragment)},m(e,r){$e(t,e,r),n=!0},p(e,n){const r={};1048577&n[0]&&(r.title=e[20]?"Auswahl":e[0]),262144&n[0]&&(r.class="eList "+(e[18]?"form":"")),33554430&n[0]|32768&n[1]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(we(t.$$.fragment,e),n=!0)},o(e){ye(t.$$.fragment,e),n=!1},d(e){be(t,e)}}}function en(e){let t,n;return t=new Am({props:{schema:e[2],recID:e[1],readonly:e[19]}}),t.$on("choose",function(){A(e[34](e[45]))&&e[34](e[45]).apply(this,arguments)}),t.$on("back",e[31]),{c(){Ae(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]),524288&r[0]&&(i.readonly=e[19]),t.$set(i)},i(e){n||(we(t.$$.fragment,e),n=!0)},o(e){ye(t.$$.fragment,e),n=!1},d(e){be(t,e)}}}function tn(e){let t,n,r,i,o,s,a;t=new e[26]({props:{text:e[20]?"Zusätzliche Auswahl":""}});const l=[rn,nn],c=[];function d(e,t){return e[20]?0:1}return r=d(e),i=c[r]=l[r](e),s=new Zt({props:{inputSearch:e[15],record:e[3],eventId:e[2].id,className:e[2].class,prevEventId:e[14],filterForReady:e[5],filter:e[6],query:e[7],refStatus:e[8],praefix:e[9],selectionFields:e[10],rowId:e[1],shouldBlock:e[16],deList:e[12],stopAggregation:e[24],showEdit:e[11]}}),s.$on("edit",e[35]),s.$on("choose",e[38]),s.$on("init",e[36]),{c(){Ae(t.$$.fragment),n=P(),i.c(),o=P(),Ae(s.$$.fragment)},m(e,i){$e(t,e,i),R(e,n,i),c[r].m(e,i),R(e,o,i),$e(s,e,i),a=!0},p(e,n){const a={};1048576&n[0]&&(a.text=e[20]?"Zusätzliche Auswahl":""),t.$set(a);let u=r;r=d(e),r===u?c[r].p(e,n):(pe(),ye(c[u],1,1,()=>{c[u]=null}),ge(),i=c[r],i?i.p(e,n):(i=c[r]=l[r](e),i.c()),we(i,1),i.m(o.parentNode,o));const h={};32768&n[0]&&(h.inputSearch=e[15]),8&n[0]&&(h.record=e[3]),4&n[0]&&(h.eventId=e[2].id),4&n[0]&&(h.className=e[2].class),16384&n[0]&&(h.prevEventId=e[14]),32&n[0]&&(h.filterForReady=e[5]),64&n[0]&&(h.filter=e[6]),128&n[0]&&(h.query=e[7]),256&n[0]&&(h.refStatus=e[8]),512&n[0]&&(h.praefix=e[9]),1024&n[0]&&(h.selectionFields=e[10]),2&n[0]&&(h.rowId=e[1]),65536&n[0]&&(h.shouldBlock=e[16]),4096&n[0]&&(h.deList=e[12]),16777216&n[0]&&(h.stopAggregation=e[24]),2048&n[0]&&(h.showEdit=e[11]),s.$set(h)},i(e){a||(we(t.$$.fragment,e),we(i),we(s.$$.fragment,e),a=!0)},o(e){ye(t.$$.fragment,e),ye(i),ye(s.$$.fragment,e),a=!1},d(e){be(t,e),e&&D(n),c[r].d(e),e&&D(o),be(s,e)}}}function nn(e){let t,n,r,i;n=new e[27]({props:{outline:!0,$$slots:{default:[on]},$$scope:{ctx:e}}}),n.$on("click",e[32]);let o=e[29]&&e[13]&&sn(e);return{c(){t=O("div"),Ae(n.$$.fragment),r=P(),o&&o.c(),U(t,"class","form--buttons svelte-jb5mrh")},m(e,s){R(e,t,s),$e(n,t,null),N(t,r),o&&o.m(t,null),i=!0},p(e,r){const i={};32768&r[1]&&(i.$$scope={dirty:r,ctx:e}),n.$set(i),e[29]&&e[13]?o?(o.p(e,r),8192&r[0]&&we(o,1)):(o=sn(e),o.c(),we(o,1),o.m(t,null)):o&&(pe(),ye(o,1,1,()=>{o=null}),ge())},i(e){i||(we(n.$$.fragment,e),we(o),i=!0)},o(e){ye(n.$$.fragment,e),ye(o),i=!1},d(e){e&&D(t),be(n),o&&o.d()}}}function rn(e){let t,n,r,i,o,s,a=e[23]&&ln(e);return r=new e[27]({props:{outline:!0,$$slots:{default:[cn]},$$scope:{ctx:e}}}),r.$on("click",e[32]),o=new e[26]({props:{text:"Liste aus "+e[17]}}),{c(){a&&a.c(),t=P(),n=O("div"),Ae(r.$$.fragment),i=P(),Ae(o.$$.fragment),U(n,"class","form--buttons svelte-jb5mrh")},m(e,l){a&&a.m(e,l),R(e,t,l),R(e,n,l),$e(r,n,null),R(e,i,l),$e(o,e,l),s=!0},p(e,n){e[23]?a?(a.p(e,n),8388608&n[0]&&we(a,1)):(a=ln(e),a.c(),we(a,1),a.m(t.parentNode,t)):a&&(pe(),ye(a,1,1,()=>{a=null}),ge());const i={};32768&n[1]&&(i.$$scope={dirty:n,ctx:e}),r.$set(i);const s={};131072&n[0]&&(s.text="Liste aus "+e[17]),o.$set(s)},i(e){s||(we(a),we(r.$$.fragment,e),we(o.$$.fragment,e),s=!0)},o(e){ye(a),ye(r.$$.fragment,e),ye(o.$$.fragment,e),s=!1},d(e){a&&a.d(e),e&&D(t),e&&D(n),be(r),e&&D(i),be(o,e)}}}function on(e){let t;return{c(){t=M("Abbrechen")},m(e,n){R(e,t,n)},d(e){e&&D(t)}}}function sn(e){let t,n;return t=new e[27]({props:{filled:!0,$$slots:{default:[an]},$$scope:{ctx:e}}}),t.$on("click",e[33]),{c(){Ae(t.$$.fragment)},m(e,r){$e(t,e,r),n=!0},p(e,n){const r={};32768&n[1]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(we(t.$$.fragment,e),n=!0)},o(e){ye(t.$$.fragment,e),n=!1},d(e){be(t,e)}}}function an(e){let t;return{c(){t=M("Neu")},m(e,n){R(e,t,n)},d(e){e&&D(t)}}}function ln(e){let t,n;return t=new Hd({props:{item:e[21],record:{_id:"",[e[21].name]:""},noForm:"true",classId:"sel_"+e[21].name,eventId:e[22],required:!1,hidden:!1,readonly:!1,deList:e[23]}}),t.$on("notify",e[37]),{c(){Ae(t.$$.fragment)},m(e,r){$e(t,e,r),n=!0},p(e,n){const r={};2097152&n[0]&&(r.item=e[21]),2097152&n[0]&&(r.record={_id:"",[e[21].name]:""}),2097152&n[0]&&(r.classId="sel_"+e[21].name),4194304&n[0]&&(r.eventId=e[22]),8388608&n[0]&&(r.deList=e[23]),t.$set(r)},i(e){n||(we(t.$$.fragment,e),n=!0)},o(e){ye(t.$$.fragment,e),n=!1},d(e){be(t,e)}}}function cn(e){let t;return{c(){t=M("Abbrechen")},m(e,n){R(e,t,n)},d(e){e&&D(t)}}}function dn(e){let t,n,r,i;const o=[tn,en],s=[];function a(e,t){return e[45].length&&!e[18]?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),R(e,r,n),i=!0},p(e,i){let l=t;t=a(e),t===l?s[t].p(e,i):(pe(),ye(s[l],1,1,()=>{s[l]=null}),ge(),n=s[t],n?n.p(e,i):(n=s[t]=o[t](e),n.c()),we(n,1),n.m(r.parentNode,r))},i(e){i||(we(n),i=!0)},o(e){ye(n),i=!1},d(e){s[t].d(e),e&&D(r)}}}function un(e){return{c:I,m:I,p:I,i:I,o:I,d:I}}function hn(e){let t,n,r,i={ctx:e,current:null,token:null,hasCatch:!1,pending:un,then:Qt,catch:Kt,value:45,blocks:[,,,]};return ve(n=e[30](e[4]),i),{c(){t=B(),i.block.c()},m(e,n){R(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[30](e[4]))&&ve(n,i)||Ie(i,e,r)},i(e){r||(we(i.block),r=!0)},o(e){for(let e=0;e<3;e+=1){ye(i.blocks[e])}r=!1},d(e){e&&D(t),i.block.d(e),i.token=null,i=null}}}function fn(e,n,r){let i;const{Dialog:o,Divider:s,Button:a}=c,l=K(),{currentTasks:d}=u;b(e,d,e=>r(41,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,{query:v}=n,{refStatus:I}=n,{praefix:_=""}=n,{selectionFields:C=!1}=n,{showEdit:E=!0}=n,{deList:A}=n,{newAllowed:$=!0}=n,{prevEventId:S}=n,{inputSearch:T}=n,{shouldBlock:N}=n,R=f.id;f.class;let D,x,O,k,M,P,B,L="",F=!1,V=!1;h??=f.identity.designation;const U=!i?.length||i.find(e=>e===R);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),"query"in e&&r(7,v=e.query),"refStatus"in e&&r(8,I=e.refStatus),"praefix"in e&&r(9,_=e.praefix),"selectionFields"in e&&r(10,C=e.selectionFields),"showEdit"in e&&r(11,E=e.showEdit),"deList"in e&&r(12,A=e.deList),"newAllowed"in e&&r(13,$=e.newAllowed),"prevEventId"in e&&r(14,S=e.prevEventId),"inputSearch"in e&&r(15,T=e.inputSearch),"shouldBlock"in e&&r(16,N=e.shouldBlock)},[h,p,f,m,g,w,y,v,I,_,C,E,A,$,S,T,N,L,F,D,O,M,P,B,V,o,s,a,d,U,async e=>{if(!e)return!1;const n=await gm(f.class,f.id);if(x=C&&C?.find(e=>f.class===e.refClass.split(":")[0]),r(20,O=x?.value?.get&&x.value.get(_)),O){k=x.refClass;const[e,n]=k.split(":"),[i]=n.split(".");r(21,M=x.parentClass.find(t=>t.name===e));const o=await t.getSchemaByClass(M.refClass);r(22,P=o.id),r(17,L=x.parentClass.find(e=>e.name===i).designation)}return n},()=>{r(18,F=!1),p||l("back"),E||l("back")},()=>{r(24,V=!0),r(18,F=!1),l("back")},()=>{r(24,V