@enablerr-ui/report 0.2.63 → 0.2.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/dist/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["@enablerr-ui/layout","@enablerr-ui/form"],(function(e){"use strict";var t,n,o,l,r,s;return{setters:[function(e){t=e.getAttractions},function(e){n=e.attachment_notification,o=e.Request,l=e.toasts,r=e.currentRoles,s=e.settings}],execute:function(){e("version","0.2.63");function i(){}function c(e,t){for(const n in t)e[n]=t[n];return e}function a(e){return e()}function u(){return Object.create(null)}function d(e){e.forEach(a)}function f(e){return"function"==typeof e}function p(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function m(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 g(e,t,n,o){if(e){const l=h(e,t,n,o);return e[0](l)}}function h(e,t,n,o){return e[1]&&o?c(n.ctx.slice(),e[1](o(t))):n.ctx}function $(e,t,n,o,l,r,s){const i=function(e,t,n,o){if(e[2]&&o){const l=e[2](o(n));if(void 0===t.dirty)return l;if("object"==typeof l){const e=[],n=Math.max(t.dirty.length,l.length);for(let o=0;o<n;o+=1)e[o]=t.dirty[o]|l[o];return e}return t.dirty|l}return t.dirty}(t,o,l,r);if(i){const l=h(t,n,o,s);e.p(l,i)}}function y(e,t){const n={};t=new Set(t);for(const o in e)t.has(o)||"$"===o[0]||(n[o]=e[o]);return n}function v(e){return null==e?"":e}function b(e,t){e.appendChild(t)}function w(e,t,n){e.insertBefore(t,n||null)}function x(e){e.parentNode.removeChild(e)}function k(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function z(e){return document.createElement(e)}function _(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function C(e){return document.createTextNode(e)}function j(){return C(" ")}function E(){return C("")}function O(e,t,n,o){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}function B(e){return function(t){return t.preventDefault(),e.call(this,t)}}function T(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function W(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function M(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const o in t)null==t[o]?e.removeAttribute(o):"style"===o?e.style.cssText=t[o]:"__value"===o?e.value=e[o]=t[o]:n[o]&&n[o].set?e[o]=t[o]:W(e,o,t[o])}function D(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function L(e,t,n,o){e.style.setProperty(t,n,o?"important":"")}function P(e,t,n){e.classList[n?"add":"remove"](t)}let S;function R(e){S=e}function I(){if(!S)throw new Error("Function called outside component initialization");return S}function N(){const e=I();return(t,n)=>{const o=e.$$.callbacks[t];if(o){const l=function(e,t){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}(t,n);o.slice().forEach((t=>{t.call(e,l)}))}}}const A=[],F=[],H=[],G=[],q=Promise.resolve();let U=!1;function V(e){H.push(e)}function K(e){G.push(e)}let X=!1;const Y=new Set;function J(){if(!X){X=!0;do{for(let e=0;e<A.length;e+=1){const t=A[e];R(t),Q(t.$$)}for(R(null),A.length=0;F.length;)F.pop()();for(let e=0;e<H.length;e+=1){const t=H[e];Y.has(t)||(Y.add(t),t())}H.length=0}while(A.length);for(;G.length;)G.pop()();U=!1,X=!1,Y.clear()}}function Q(e){if(null!==e.fragment){e.update(),d(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(V)}}const Z=new Set;let ee;function te(){ee={r:0,c:[],p:ee}}function ne(){ee.r||d(ee.c),ee=ee.p}function oe(e,t){e&&e.i&&(Z.delete(e),e.i(t))}function le(e,t,n,o){if(e&&e.o){if(Z.has(e))return;Z.add(e),ee&&ee.c.push((()=>{Z.delete(e),o&&(n&&e.d(1),o())})),e.o(t)}}function re(e,t){const n=t.token={};function o(e,o,l,r){if(t.token!==n)return;t.resolved=r;let s=t.ctx;void 0!==l&&(s=s.slice(),s[l]=r);const i=e&&(t.current=e)(s);let c=!1;t.block&&(t.blocks?t.blocks.forEach(((e,n)=>{n!==o&&e&&(te(),le(e,1,1,(()=>{t.blocks[n]===e&&(t.blocks[n]=null)})),ne())})):t.block.d(1),i.c(),oe(i,1),i.m(t.mount(),t.anchor),c=!0),t.block=i,t.blocks&&(t.blocks[o]=i),c&&J()}if((l=e)&&"object"==typeof l&&"function"==typeof l.then){const n=I();if(e.then((e=>{R(n),o(t.then,1,t.value,e),R(null)}),(e=>{if(R(n),o(t.catch,2,t.error,e),R(null),!t.hasCatch)throw e})),t.current!==t.pending)return o(t.pending,0),!0}else{if(t.current!==t.then)return o(t.then,1,t.value,e),!0;t.resolved=e}var l}function se(e,t){le(e,1,1,(()=>{t.delete(e.key)}))}function ie(e,t,n){const o=e.$$.props[t];void 0!==o&&(e.$$.bound[o]=n,n(e.$$.ctx[o]))}function ce(e){e&&e.c()}function ae(e,t,n,o){const{fragment:l,on_mount:r,on_destroy:s,after_update:i}=e.$$;l&&l.m(t,n),o||V((()=>{const t=r.map(a).filter(f);s?s.push(...t):d(t),e.$$.on_mount=[]})),i.forEach(V)}function ue(e,t){const n=e.$$;null!==n.fragment&&(d(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function de(e,t){-1===e.$$.dirty[0]&&(A.push(e),U||(U=!0,q.then(J)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function fe(e,t,n,o,l,r,s=[-1]){const c=S;R(e);const a=e.$$={fragment:null,ctx:null,props:r,update:i,not_equal:l,bound:u(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:t.context||[]),callbacks:u(),dirty:s,skip_bound:!1};let f=!1;if(a.ctx=n?n(e,t.props||{},((t,n,...o)=>{const r=o.length?o[0]:n;return a.ctx&&l(a.ctx[t],a.ctx[t]=r)&&(!a.skip_bound&&a.bound[t]&&a.bound[t](r),f&&de(e,t)),n})):[],a.update(),f=!0,d(a.before_update),a.fragment=!!o&&o(a.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);a.fragment&&a.fragment.l(e),e.forEach(x)}else a.fragment&&a.fragment.c();t.intro&&oe(e.$$.fragment),ae(e,t.target,t.anchor,t.customElement),J()}R(c)}class pe{$destroy(){ue(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 me(e){let t,n,o,l;return{c(){t=_("svg"),n=_("path"),o=_("polygon"),W(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"),W(o,"points","12 15 17 21 7 21 12 15"),W(t,"xmlns","http://www.w3.org/2000/svg"),W(t,"width",e[0]),W(t,"height",e[0]),W(t,"fill","none"),W(t,"viewBox","0 0 24 24"),W(t,"stroke","currentColor"),W(t,"stroke-width",e[1]),W(t,"stroke-linecap","round"),W(t,"stroke-linejoin","round"),W(t,"class",l="feather feather-airplay "+e[2])},m(e,l){w(e,t,l),b(t,n),b(t,o)},p(e,[n]){1&n&&W(t,"width",e[0]),1&n&&W(t,"height",e[0]),2&n&&W(t,"stroke-width",e[1]),4&n&&l!==(l="feather feather-airplay "+e[2])&&W(t,"class",l)},i:i,o:i,d(e){e&&x(t)}}}function ge(e,t,n){let{size:o="100%"}=t,{strokeWidth:l=2}=t,{class:r=""}=t;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),e.$$set=e=>{"size"in e&&n(0,o=e.size),"strokeWidth"in e&&n(1,l=e.strokeWidth),"class"in e&&n(2,r=e.class)},[o,l,r]}class he extends pe{constructor(e){super(),fe(this,e,ge,me,p,{size:0,strokeWidth:1,class:2})}}function $e(e){let t,n,o,l,r;return{c(){t=_("svg"),n=_("path"),o=_("line"),l=_("line"),W(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"),W(o,"x1","12"),W(o,"y1","9"),W(o,"x2","12"),W(o,"y2","13"),W(l,"x1","12"),W(l,"y1","17"),W(l,"x2","12.01"),W(l,"y2","17"),W(t,"xmlns","http://www.w3.org/2000/svg"),W(t,"width",e[0]),W(t,"height",e[0]),W(t,"fill","none"),W(t,"viewBox","0 0 24 24"),W(t,"stroke","currentColor"),W(t,"stroke-width",e[1]),W(t,"stroke-linecap","round"),W(t,"stroke-linejoin","round"),W(t,"class",r="feather feather-alert-triangle "+e[2])},m(e,r){w(e,t,r),b(t,n),b(t,o),b(t,l)},p(e,[n]){1&n&&W(t,"width",e[0]),1&n&&W(t,"height",e[0]),2&n&&W(t,"stroke-width",e[1]),4&n&&r!==(r="feather feather-alert-triangle "+e[2])&&W(t,"class",r)},i:i,o:i,d(e){e&&x(t)}}}function ye(e,t,n){let{size:o="100%"}=t,{strokeWidth:l=2}=t,{class:r=""}=t;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),e.$$set=e=>{"size"in e&&n(0,o=e.size),"strokeWidth"in e&&n(1,l=e.strokeWidth),"class"in e&&n(2,r=e.class)},[o,l,r]}class ve extends pe{constructor(e){super(),fe(this,e,ye,$e,p,{size:0,strokeWidth:1,class:2})}}function be(e){let t,n,o,l,r;return{c(){t=_("svg"),n=_("path"),o=_("polyline"),l=_("line"),W(n,"d","M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"),W(o,"points","7 10 12 15 17 10"),W(l,"x1","12"),W(l,"y1","15"),W(l,"x2","12"),W(l,"y2","3"),W(t,"xmlns","http://www.w3.org/2000/svg"),W(t,"width",e[0]),W(t,"height",e[0]),W(t,"fill","none"),W(t,"viewBox","0 0 24 24"),W(t,"stroke","currentColor"),W(t,"stroke-width",e[1]),W(t,"stroke-linecap","round"),W(t,"stroke-linejoin","round"),W(t,"class",r="feather feather-download "+e[2])},m(e,r){w(e,t,r),b(t,n),b(t,o),b(t,l)},p(e,[n]){1&n&&W(t,"width",e[0]),1&n&&W(t,"height",e[0]),2&n&&W(t,"stroke-width",e[1]),4&n&&r!==(r="feather feather-download "+e[2])&&W(t,"class",r)},i:i,o:i,d(e){e&&x(t)}}}function we(e,t,n){let{size:o="100%"}=t,{strokeWidth:l=2}=t,{class:r=""}=t;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),e.$$set=e=>{"size"in e&&n(0,o=e.size),"strokeWidth"in e&&n(1,l=e.strokeWidth),"class"in e&&n(2,r=e.class)},[o,l,r]}class xe extends pe{constructor(e){super(),fe(this,e,we,be,p,{size:0,strokeWidth:1,class:2})}}function ke(e){let t,n,o,l;return{c(){t=_("svg"),n=_("polyline"),o=_("path"),W(n,"points","3 6 5 6 21 6"),W(o,"d","M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"),W(t,"xmlns","http://www.w3.org/2000/svg"),W(t,"width",e[0]),W(t,"height",e[0]),W(t,"fill","none"),W(t,"viewBox","0 0 24 24"),W(t,"stroke","currentColor"),W(t,"stroke-width",e[1]),W(t,"stroke-linecap","round"),W(t,"stroke-linejoin","round"),W(t,"class",l="feather feather-trash "+e[2])},m(e,l){w(e,t,l),b(t,n),b(t,o)},p(e,[n]){1&n&&W(t,"width",e[0]),1&n&&W(t,"height",e[0]),2&n&&W(t,"stroke-width",e[1]),4&n&&l!==(l="feather feather-trash "+e[2])&&W(t,"class",l)},i:i,o:i,d(e){e&&x(t)}}}function ze(e,t,n){let{size:o="100%"}=t,{strokeWidth:l=2}=t,{class:r=""}=t;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),e.$$set=e=>{"size"in e&&n(0,o=e.size),"strokeWidth"in e&&n(1,l=e.strokeWidth),"class"in e&&n(2,r=e.class)},[o,l,r]}class _e extends pe{constructor(e){super(),fe(this,e,ze,ke,p,{size:0,strokeWidth:1,class:2})}}function Ce(e){let t,n,o,l,r;return{c(){t=_("svg"),n=_("path"),o=_("polyline"),l=_("line"),W(n,"d","M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"),W(o,"points","17 8 12 3 7 8"),W(l,"x1","12"),W(l,"y1","3"),W(l,"x2","12"),W(l,"y2","15"),W(t,"xmlns","http://www.w3.org/2000/svg"),W(t,"width",e[0]),W(t,"height",e[0]),W(t,"fill","none"),W(t,"viewBox","0 0 24 24"),W(t,"stroke","currentColor"),W(t,"stroke-width",e[1]),W(t,"stroke-linecap","round"),W(t,"stroke-linejoin","round"),W(t,"class",r="feather feather-upload "+e[2])},m(e,r){w(e,t,r),b(t,n),b(t,o),b(t,l)},p(e,[n]){1&n&&W(t,"width",e[0]),1&n&&W(t,"height",e[0]),2&n&&W(t,"stroke-width",e[1]),4&n&&r!==(r="feather feather-upload "+e[2])&&W(t,"class",r)},i:i,o:i,d(e){e&&x(t)}}}function je(e,t,n){let{size:o="100%"}=t,{strokeWidth:l=2}=t,{class:r=""}=t;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),e.$$set=e=>{"size"in e&&n(0,o=e.size),"strokeWidth"in e&&n(1,l=e.strokeWidth),"class"in e&&n(2,r=e.class)},[o,l,r]}class Ee extends pe{constructor(e){super(),fe(this,e,je,Ce,p,{size:0,strokeWidth:1,class:2})}}function Oe(e){let t,n;return{c(){t=_("svg"),n=_("path"),W(n,"d","M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"),W(t,"xmlns","http://www.w3.org/2000/svg"),W(t,"width","24"),W(t,"height","24"),W(t,"viewBox","0 0 24 24"),W(t,"fill","none"),W(t,"stroke","currentColor"),W(t,"stroke-width","2"),W(t,"stroke-linecap","round"),W(t,"stroke-linejoin","round")},m(e,o){w(e,t,o),b(t,n)},p:i,i:i,o:i,d(e){e&&x(t)}}}class Be extends pe{constructor(e){super(),fe(this,e,null,Oe,p,{})}}function Te(...e){return e.filter((e=>!!e)).join(" ")}function We(e){let t,n,o,l;return{c(){t=_("svg"),n=_("line"),o=_("line"),W(n,"x1","12"),W(n,"y1","5"),W(n,"x2","12"),W(n,"y2","19"),W(o,"x1","5"),W(o,"y1","12"),W(o,"x2","19"),W(o,"y2","12"),W(t,"xmlns","http://www.w3.org/2000/svg"),W(t,"width","24"),W(t,"height","24"),W(t,"viewBox","0 0 24 24"),W(t,"fill","none"),W(t,"stroke","currentColor"),W(t,"stroke-width","2"),W(t,"stroke-linecap","round"),W(t,"stroke-linejoin","round"),W(t,"class",l=Te(e[0]))},m(e,l){w(e,t,l),b(t,n),b(t,o)},p(e,[n]){1&n&&l!==(l=Te(e[0]))&&W(t,"class",l)},i:i,o:i,d(e){e&&x(t)}}}function Me(e,t,n){let{class:o=null}=t;return e.$$set=e=>{"class"in e&&n(0,o=e.class)},[o]}class De extends pe{constructor(e){super(),fe(this,e,Me,We,p,{class:0})}}function Le(e,t={}){const n={event:t.event||"click",transition:t.transition||150,zIndex:t.zIndex||"100",bg:t.rippleColor||null,disabled:t.disabled||!1},o=t=>function(e,t,{bg:n,zIndex:o,transition:l}){const r=parseInt(getComputedStyle(t).borderWidth.replace("px","")),s=t.getBoundingClientRect(),i=s.left,c=s.top,a=t.offsetWidth,u=t.offsetHeight,d=e.clientX-i,f=e.clientY-c,p=Math.max(d,a-d),m=Math.max(f,u-f),g=window.getComputedStyle(t),h=Math.sqrt(p*p+m*m),$=r>0?r:0,y=document.createElement("div"),v=document.createElement("div");v.className="ripple-container",y.className="ripple",y.style.marginTop="0px",y.style.marginLeft="0px",y.style.width="1px",y.style.height="1px",y.style.transition=`all ${l}ms cubic-bezier(0.4, 0, 0.2, 1)`,y.style.borderRadius="50%",y.style.pointerEvents="none",y.style.position="relative",y.style.zIndex=o,null!==n&&(y.style.backgroundColor=n);v.style.position="absolute",v.style.left=0-$+"px",v.style.top=0-$+"px",v.style.height="0",v.style.width="0",v.style.pointerEvents="none",v.style.overflow="hidden";const b=t.style.position.length>0?t.style.position:getComputedStyle(t).position;"relative"!==b&&"absolute"!==b&&(t.style.position="relative");function w(){setTimeout((()=>{y.style.backgroundColor="rgba(0, 0, 0, 0)"}),250),setTimeout((()=>{v.parentNode.removeChild(v)}),l+250),setTimeout((()=>{let e=!0;for(let n=0;n<t.childNodes.length;n++)"ripple-container"===t.childNodes[n].className&&(e=!1);e&&(t.style.position="static"!==b?b:"")}),l+250)}v.appendChild(y),t.appendChild(v),y.style.marginLeft=d+"px",y.style.marginTop=f+"px",v.style.width=a+"px",v.style.height=u+"px",v.style.borderTopLeftRadius=g.borderTopLeftRadius,v.style.borderTopRightRadius=g.borderTopRightRadius,v.style.borderBottomLeftRadius=g.borderBottomLeftRadius,v.style.borderBottomRightRadius=g.borderBottomRightRadius,v.style.direction="ltr",setTimeout((()=>{y.style.width=2*h+"px",y.style.height=2*h+"px",y.style.marginLeft=d-h+"px",y.style.marginTop=f-h+"px"}),0),w()}(t,e,n);return n.disabled||e.addEventListener(n.event,o),{destroy(){e.removeEventListener(n.event,o)},update(t={}){t.disabled?e.removeEventListener(n.event,o):e.addEventListener(n.event,o)}}}function Pe(e,t){if(null==e)return!0;return e.split(",").map((e=>e.trim().toLowerCase())).some((e=>function(e,t){if(t.name&&e.startsWith("."))return t.name.toLowerCase().endsWith(e);return function(e,t){if("*"===e||"*/*"===e)return!0;const n=e.split("*");if(1===n.length)return e===t;if(2!==n.length)return!1;return t.startsWith(n[0])&&t.endsWith(n[1])}(e.toLowerCase(),(t.type||"").toLowerCase())}(e,t)))}function Se(e,t,n){const o=e.slice();return o[26]=t[n],o}const Re=e=>({}),Ie=e=>({}),Ne=e=>({}),Ae=e=>({}),Fe=e=>({}),He=e=>({}),Ge=e=>({}),qe=e=>({}),Ue=e=>({}),Ve=e=>({}),Ke=e=>({wrongType:128&e,dragActive:64&e}),Xe=e=>({wrongType:e[7],dragActive:e[6]});function Ye(e){let t;const n=e[18]["drag-and-drop-message"],o=g(n,e,e[17],Ae),l=o||function(){let e;return{c(){e=C("drag & drop here or click to upload files")},m(t,n){w(t,e,n)},d(t){t&&x(e)}}}();return{c(){l&&l.c()},m(e,n){l&&l.m(e,n),t=!0},p(e,l){o&&o.p&&(!t||131072&l)&&$(o,n,e,e[17],l,Ne,Ae)},i(e){t||(oe(l,e),t=!0)},o(e){le(l,e),t=!1},d(e){l&&l.d(e)}}}function Je(e){let t;const n=e[18]["release-to-upload-message"],o=g(n,e,e[17],He),l=o||function(){let e;return{c(){e=C("release to upload")},m(t,n){w(t,e,n)},d(t){t&&x(e)}}}();return{c(){l&&l.c()},m(e,n){l&&l.m(e,n),t=!0},p(e,l){o&&o.p&&(!t||131072&l)&&$(o,n,e,e[17],l,Fe,He)},i(e){t||(oe(l,e),t=!0)},o(e){le(l,e),t=!1},d(e){l&&l.d(e)}}}function Qe(e){let t;const n=e[18]["incorrect-file-message"],o=g(n,e,e[17],qe),l=o||function(){let e;return{c(){e=C("incorrect file type")},m(t,n){w(t,e,n)},d(t){t&&x(e)}}}();return{c(){l&&l.c()},m(e,n){l&&l.m(e,n),t=!0},p(e,l){o&&o.p&&(!t||131072&l)&&$(o,n,e,e[17],l,Ge,qe)},i(e){t||(oe(l,e),t=!0)},o(e){le(l,e),t=!1},d(e){l&&l.d(e)}}}function Ze(e){let t;const n=e[18]["upload-unavailable-message"],o=g(n,e,e[17],Ve),l=o||function(){let e;return{c(){e=C("file upload unavailable")},m(t,n){w(t,e,n)},d(t){t&&x(e)}}}();return{c(){l&&l.c()},m(e,n){l&&l.m(e,n),t=!0},p(e,l){o&&o.p&&(!t||131072&l)&&$(o,n,e,e[17],l,Ue,Ve)},i(e){t||(oe(l,e),t=!0)},o(e){le(l,e),t=!1},d(e){l&&l.d(e)}}}function et(e){let t;const n=e[18]["more-icon"],o=g(n,e,e[17],Ie),l=o||function(){let e,t;return e=new De({props:{class:"plus"}}),{c(){ce(e.$$.fragment)},m(n,o){ae(e,n,o),t=!0},p:i,i(n){t||(oe(e.$$.fragment,n),t=!0)},o(n){le(e.$$.fragment,n),t=!1},d(t){ue(e,t)}}}();return{c(){l&&l.c()},m(e,n){l&&l.m(e,n),t=!0},p(e,l){o&&o.p&&(!t||131072&l)&&$(o,n,e,e[17],l,Re,Ie)},i(e){t||(oe(l,e),t=!0)},o(e){le(l,e),t=!1},d(e){l&&l.d(e)}}}function tt(e,t){let n,o,l,r;var s=t[2];function i(e){return{props:{file:e[26]}}}return s&&(o=new s(i(t)),o.$on("delete",t[13])),{key:e,first:null,c(){n=E(),o&&ce(o.$$.fragment),l=E(),this.first=n},m(e,t){w(e,n,t),o&&ae(o,e,t),w(e,l,t),r=!0},p(e,n){t=e;const r={};if(1&n&&(r.file=t[26]),s!==(s=t[2])){if(o){te();const e=o;le(e.$$.fragment,1,0,(()=>{ue(e,1)})),ne()}s?(o=new s(i(t)),o.$on("delete",t[13]),ce(o.$$.fragment),oe(o.$$.fragment,1),ae(o,l.parentNode,l)):o=null}else s&&o.$set(r)},i(e){r||(o&&oe(o.$$.fragment,e),r=!0)},o(e){o&&le(o.$$.fragment,e),r=!1},d(e){e&&x(n),e&&x(l),o&&ue(o,e)}}}function nt(e){let t,n,o,l,r,s,a,u,p,m,h,y,k,_=[],C=new Map,E=[{type:"file"},{multiple:!0},{accept:e[3]},{disabled:o=e[4]||e[0].length>=e[5]},e[15]],D={};for(let e=0;e<E.length;e+=1)D=c(D,E[e]);const L=e[18]["empty-layer"],S=g(L,e,e[17],Xe),R=S||function(e){let t,n,o,l,r,s;t=new Be({props:{class:"icon"}});const i=[Ze,Qe,Je,Ye],c=[];function a(e,t){return e[4]?0:e[7]?1:e[6]?2:3}return l=a(e),r=c[l]=i[l](e),{c(){ce(t.$$.fragment),n=j(),o=z("div"),r.c(),W(o,"class","title svelte-11deuuc")},m(e,r){ae(t,e,r),w(e,n,r),w(e,o,r),c[l].m(o,null),s=!0},p(e,t){let n=l;l=a(e),l===n?c[l].p(e,t):(te(),le(c[n],1,1,(()=>{c[n]=null})),ne(),r=c[l],r?r.p(e,t):(r=c[l]=i[l](e),r.c()),oe(r,1),r.m(o,null))},i(e){s||(oe(t.$$.fragment,e),oe(r),s=!0)},o(e){le(t.$$.fragment,e),le(r),s=!1},d(e){ue(t,e),e&&x(n),e&&x(o),c[l].d()}}}(e);let I=e[0].length<e[5]&&et(e),N=e[0];const A=e=>`${e[26].name}-${e[26].lastModified}`;for(let t=0;t<N.length;t+=1){let n=Se(e,N,t),o=A(n);C.set(o,_[t]=tt(o,n))}return{c(){t=z("label"),n=z("input"),l=j(),r=z("div"),R&&R.c(),s=j(),a=z("div"),I&&I.c(),p=j();for(let e=0;e<_.length;e+=1)_[e].c();M(n,D),P(n,"svelte-11deuuc",!0),W(r,"class","empty-layer svelte-11deuuc"),W(a,"class","dropzone-layer svelte-11deuuc"),P(a,"accepting",e[6]),W(t,"class",m=v(Te("file-dropzone",e[1]))+" svelte-11deuuc"),P(t,"has-content",e[0]&&0!==e[0].length),P(t,"wrong-type",e[7]),P(t,"disabled",e[4]||e[0].length>=e[5])},m(o,c){w(o,t,c),b(t,n),e[19](n),b(t,l),b(t,r),R&&R.m(r,null),e[20](r),b(t,s),b(t,a),I&&I.m(a,null),e[21](a),b(t,p);for(let e=0;e<_.length;e+=1)_[e].m(t,null);var d;h=!0,y||(k=[O(n,"change",e[12]),O(a,"dragover",T(B(e[11]))),O(a,"dragenter",e[22]),O(a,"dragleave",e[23]),O(a,"drop",T(B(e[12]))),(d=u=Le.call(null,a,{disabled:e[4]||e[0].length>=e[5]}),d&&f(d.destroy)?d.destroy:i),O(t,"click",e[14])],y=!0)},p(e,[l]){M(n,D=function(e,t){const n={},o={},l={$$scope:1};let r=e.length;for(;r--;){const s=e[r],i=t[r];if(i){for(const e in s)e in i||(o[e]=1);for(const e in i)l[e]||(n[e]=i[e],l[e]=1);e[r]=i}else for(const e in s)l[e]=1}for(const e in o)e in n||(n[e]=void 0);return n}(E,[{type:"file"},{multiple:!0},(!h||8&l)&&{accept:e[3]},(!h||49&l&&o!==(o=e[4]||e[0].length>=e[5]))&&{disabled:o},32768&l&&e[15]])),P(n,"svelte-11deuuc",!0),S?S.p&&(!h||131264&l)&&$(S,L,e,e[17],l,Ke,Xe):R&&R.p&&131280&l&&R.p(e,l),e[0].length<e[5]?I?(I.p(e,l),33&l&&oe(I,1)):(I=et(e),I.c(),oe(I,1),I.m(a,null)):I&&(te(),le(I,1,1,(()=>{I=null})),ne()),u&&f(u.update)&&49&l&&u.update.call(null,{disabled:e[4]||e[0].length>=e[5]}),64&l&&P(a,"accepting",e[6]),8197&l&&(N=e[0],te(),_=function(e,t,n,o,l,r,s,i,c,a,u,d){let f=e.length,p=r.length,m=f;const g={};for(;m--;)g[e[m].key]=m;const h=[],$=new Map,y=new Map;for(m=p;m--;){const e=d(l,r,m),i=n(e);let c=s.get(i);c?o&&c.p(e,t):(c=a(i,e),c.c()),$.set(i,h[m]=c),i in g&&y.set(i,Math.abs(m-g[i]))}const v=new Set,b=new Set;function w(e){oe(e,1),e.m(i,u),s.set(e.key,e),u=e.first,p--}for(;f&&p;){const t=h[p-1],n=e[f-1],o=t.key,l=n.key;t===n?(u=t.first,f--,p--):$.has(l)?!s.has(o)||v.has(o)?w(t):b.has(l)?f--:y.get(o)>y.get(l)?(b.add(o),w(t)):(v.add(l),f--):(c(n,s),f--)}for(;f--;){const t=e[f];$.has(t.key)||c(t,s)}for(;p;)w(h[p-1]);return h}(_,l,A,1,e,N,C,t,se,tt,null,Se),ne()),(!h||2&l&&m!==(m=v(Te("file-dropzone",e[1]))+" svelte-11deuuc"))&&W(t,"class",m),3&l&&P(t,"has-content",e[0]&&0!==e[0].length),130&l&&P(t,"wrong-type",e[7]),51&l&&P(t,"disabled",e[4]||e[0].length>=e[5])},i(e){if(!h){oe(R,e),oe(I);for(let e=0;e<N.length;e+=1)oe(_[e]);h=!0}},o(e){le(R,e),le(I);for(let e=0;e<_.length;e+=1)le(_[e]);h=!1},d(n){n&&x(t),e[19](null),R&&R.d(n),e[20](null),I&&I.d(),e[21](null);for(let e=0;e<_.length;e+=1)_[e].d();y=!1,d(k)}}}function ot(e,n,o){const l=["class","files","fileComponent","accept","beforeChange","disabled","max"];let r=y(n,l),{$$slots:s={},$$scope:i}=n,{class:a=null}=n;const{FileTile:u}=t;let d,f,p,{files:m=[]}=n,{fileComponent:g=u}=n,{accept:h=null}=n,{beforeChange:$=null}=n,{disabled:v=!1}=n,{max:b=1/0}=n,w=!1,x=!1;const k=N();return e.$$set=e=>{n=c(c({},n),function(e){const t={};for(const n in e)"$"!==n[0]&&(t[n]=e[n]);return t}(e)),o(15,r=y(n,l)),"class"in e&&o(1,a=e.class),"files"in e&&o(0,m=e.files),"fileComponent"in e&&o(2,g=e.fileComponent),"accept"in e&&o(3,h=e.accept),"beforeChange"in e&&o(16,$=e.beforeChange),"disabled"in e&&o(4,v=e.disabled),"max"in e&&o(5,b=e.max),"$$scope"in e&&o(17,i=e.$$scope)},[m,a,g,h,v,b,w,x,d,f,p,function(e){o(7,x=[...e.dataTransfer.items].some((e=>!Pe(h,e))))},async function(e){const t=Array.from((e.dataTransfer||e.target).files);await Promise.all(t.map((async e=>{try{"function"==typeof $&&await $(e)}catch(e){return}Pe(h,e)&&m.length<b&&m.push(e)}))),setTimeout((()=>o(7,x=!1)),1e3),k("change",{files:m,nativeEvent:e}),o(0,m=[]),o(10,p.value="",p),o(6,w=!1)},function({detail:e}){o(0,m=m.filter((t=>t!==e))),k("change",{files:m})},function(e){e.target!=d&&e.target!=f&&e.target!=p&&e.preventDefault()},r,$,i,s,function(e){F[e?"unshift":"push"]((()=>{p=e,o(10,p)}))},function(e){F[e?"unshift":"push"]((()=>{d=e,o(8,d)}))},function(e){F[e?"unshift":"push"]((()=>{f=e,o(9,f)}))},()=>o(6,w=!0),()=>{o(6,w=!1),o(7,x=!1)}]}class lt extends pe{constructor(e){var t;super(),document.getElementById("svelte-11deuuc-style")||((t=z("style")).id="svelte-11deuuc-style",t.textContent=".file-dropzone.svelte-11deuuc.svelte-11deuuc.svelte-11deuuc{border:0.125em dashed currentColor;border-radius:1.5625em;color:#326173;display:block;margin:2em 0 0.5em;position:relative}.file-dropzone.svelte-11deuuc.svelte-11deuuc.svelte-11deuuc:focus-within{border-color:rgba(50, 97, 115, 0.5);border-style:solid}.file-dropzone.disabled.svelte-11deuuc.svelte-11deuuc.svelte-11deuuc{color:#888}.file-dropzone.svelte-11deuuc input.svelte-11deuuc.svelte-11deuuc{clip:rect(0, 0, 0, 0);height:1px;margin:-1px;overflow:hidden;position:absolute;width:1px}.file-dropzone.svelte-11deuuc .icon{stroke:currentColor}.file-dropzone.svelte-11deuuc .empty-layer.svelte-11deuuc.svelte-11deuuc{align-items:center;display:flex;padding:2em 1em;z-index:1}.file-dropzone.svelte-11deuuc .empty-layer .title.svelte-11deuuc.svelte-11deuuc{color:currentColor;flex:1;font-weight:500;margin-left:0.5em;text-align:center}.file-dropzone.svelte-11deuuc .dropzone-layer.svelte-11deuuc.svelte-11deuuc{align-items:center;border-radius:1.5625em;cursor:pointer;display:flex;height:100%;justify-content:flex-end;left:0;position:absolute;top:0;width:100%;z-index:2}.file-dropzone.svelte-11deuuc .dropzone-layer.svelte-11deuuc.svelte-11deuuc:hover{background:rgba(50, 97, 115, 0.025)}.file-dropzone.svelte-11deuuc .dropzone-layer.svelte-11deuuc .ripple{background-color:rgba(50, 97, 115, 0.1)}.file-dropzone.svelte-11deuuc .dropzone-layer.accepting.svelte-11deuuc.svelte-11deuuc{background-color:rgba(50, 97, 115, 0.05)}.file-dropzone.svelte-11deuuc .dropzone-layer.svelte-11deuuc svg{margin-right:1em;opacity:0;pointer-events:none;stroke:currentColor;transition:transform 150ms}.file-dropzone.svelte-11deuuc input.svelte-11deuuc:focus~.dropzone-layer.svelte-11deuuc{background:rgba(50, 97, 115, 0.05)}.file-dropzone.disabled.svelte-11deuuc .dropzone-layer.svelte-11deuuc.svelte-11deuuc{background:none;cursor:not-allowed}.file-dropzone.has-content.svelte-11deuuc.svelte-11deuuc.svelte-11deuuc{display:grid;gap:0.5em;grid-template-columns:repeat(auto-fill, 12em);padding:1em}.file-dropzone.has-content.svelte-11deuuc .empty-layer.svelte-11deuuc.svelte-11deuuc{display:none}.file-dropzone.has-content.svelte-11deuuc .dropzone-layer.svelte-11deuuc svg{opacity:1}.file-dropzone.wrong-type.svelte-11deuuc.svelte-11deuuc.svelte-11deuuc{color:#b80000}.file-dropzone.wrong-type.svelte-11deuuc .dropzone-layer.svelte-11deuuc.svelte-11deuuc:hover{background-color:rgba(184, 0, 0, 0.025)}.file-dropzone.wrong-type.svelte-11deuuc .dropzone-layer.accepting.svelte-11deuuc.svelte-11deuuc{background-color:rgba(184, 0, 0, 0.05)}.file-dropzone.wrong-type.svelte-11deuuc .dropzone-layer.svelte-11deuuc .ripple{background-color:rgba(184, 0, 0, 0.1)}.file-dropzone.wrong-type.svelte-11deuuc .dropzone-layer.svelte-11deuuc svg.plus{transform:rotate(45deg)}",b(document.head,t)),fe(this,e,ot,nt,p,{class:1,files:0,fileComponent:2,accept:3,beforeChange:16,disabled:4,max:5})}}function rt(e,t,n){const o=e.slice();return o[50]=t[n],o[52]=n,o}function st(e,t,n){const o=e.slice();return o[53]=t[n],o[54]=t,o[55]=n,o}function it(e){let t,n,o,l,r,s,i;l=new lt({props:{accept:Lt,max:Dt,$$slots:{"upload-unavailable-message":[dt],"release-to-upload-message":[ut],"incorrect-file-message":[at],"drag-and-drop-message":[ct]},$$scope:{ctx:e}}}),l.$on("change",e[24]);let c=e[5]&&e[5].length>0&&ft(e);return{c(){t=z("div"),n=z("form"),o=z("div"),ce(l.$$.fragment),r=j(),c&&c.c(),s=E(),W(o,"class","document-choose svelte-ifmgly"),W(n,"id","uploadForm"),W(t,"class","form-step svelte-ifmgly")},m(e,a){w(e,t,a),b(t,n),b(n,o),ae(l,o,null),w(e,r,a),c&&c.m(e,a),w(e,s,a),i=!0},p(e,t){const n={};33554432&t[1]&&(n.$$scope={dirty:t,ctx:e}),l.$set(n),e[5]&&e[5].length>0?c?(c.p(e,t),32&t[0]&&oe(c,1)):(c=ft(e),c.c(),oe(c,1),c.m(s.parentNode,s)):c&&(te(),le(c,1,1,(()=>{c=null})),ne())},i(e){i||(oe(l.$$.fragment,e),oe(c),i=!0)},o(e){le(l.$$.fragment,e),le(c),i=!1},d(e){e&&x(t),ue(l),e&&x(r),c&&c.d(e),e&&x(s)}}}function ct(e){let t;return{c(){t=z("div"),t.textContent="Drag & Drop Dokumente oder klicken Sie hier zum Hochladen\n von Dateien",W(t,"slot","drag-and-drop-message")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function at(e){let t;return{c(){t=z("div"),t.textContent="Inkorrektes File Format",W(t,"slot","incorrect-file-message")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function ut(e){let t;return{c(){t=z("div"),t.textContent="Loslassen um hochzuladen",W(t,"slot","release-to-upload-message")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function dt(e){let t;return{c(){t=z("div"),t.textContent="File Upload steht gerade nicht zur Verfügung",W(t,"slot","upload-unavailable-message")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function ft(e){let t,n,o,l,r,s,i=e[5],c=[];for(let t=0;t<i.length;t+=1)c[t]=gt(st(e,i,t));const a=e=>le(c[e],1,1,(()=>{c[e]=null}));return o=new e[9]({props:{disabled:e[6],filled:!0,style:"color: whitesmoke; display: inline;",type:"submit",$$slots:{default:[ht]},$$scope:{ctx:e}}}),o.$on("click",e[27]),r=new e[9]({props:{small:!0,filled:!0,danger:!0,style:"color: whitesmoke; display: inline;",$$slots:{default:[$t]},$$scope:{ctx:e}}}),r.$on("click",e[28]),{c(){for(let e=0;e<c.length;e+=1)c[e].c();t=j(),n=z("div"),ce(o.$$.fragment),l=j(),ce(r.$$.fragment),W(n,"class","flex gap svelte-ifmgly")},m(e,i){for(let t=0;t<c.length;t+=1)c[t].m(e,i);w(e,t,i),w(e,n,i),ae(o,n,null),b(n,l),ae(r,n,null),s=!0},p(e,n){if(4192&n[0]){let o;for(i=e[5],o=0;o<i.length;o+=1){const l=st(e,i,o);c[o]?(c[o].p(l,n),oe(c[o],1)):(c[o]=gt(l),c[o].c(),oe(c[o],1),c[o].m(t.parentNode,t))}for(te(),o=i.length;o<c.length;o+=1)a(o);ne()}const l={};64&n[0]&&(l.disabled=e[6]),33554432&n[1]&&(l.$$scope={dirty:n,ctx:e}),o.$set(l);const s={};33554432&n[1]&&(s.$$scope={dirty:n,ctx:e}),r.$set(s)},i(e){if(!s){for(let e=0;e<i.length;e+=1)oe(c[e]);oe(o.$$.fragment,e),oe(r.$$.fragment,e),s=!0}},o(e){c=c.filter(Boolean);for(let e=0;e<c.length;e+=1)le(c[e]);le(o.$$.fragment,e),le(r.$$.fragment,e),s=!1},d(e){k(c,e),e&&x(t),e&&x(n),ue(o),ue(r)}}}function pt(e){let t,n;return t=new Ee({props:{size:"18"}}),{c(){ce(t.$$.fragment)},m(e,o){ae(t,e,o),n=!0},p:i,i(e){n||(oe(t.$$.fragment,e),n=!0)},o(e){le(t.$$.fragment,e),n=!1},d(e){ue(t,e)}}}function mt(e){let t,n;return t=new _e({props:{size:"18"}}),{c(){ce(t.$$.fragment)},m(e,o){ae(t,e,o),n=!0},p:i,i(e){n||(oe(t.$$.fragment,e),n=!0)},o(e){le(t.$$.fragment,e),n=!1},d(e){ue(t,e)}}}function gt(e){let t,n,o,l,r,s,i,c,a,u,d,p,m,g,h,$,y,v,k,_,E,T,M,L=e[53].file.name+"",P=Pt(e[53].file.size)+"";function S(t){e[25](t,e[53])}let R={type:"text",id:"fileTitle_"+e[55],required:!0};return void 0!==e[53].custom_name&&(R.value=e[53].custom_name),g=new e[10]({props:R}),F.push((()=>ie(g,"value",S))),y=new e[9]({props:{disabled:e[6],small:!0,filled:!0,style:"color: whitesmoke; display: inline;",type:"submit",$$slots:{default:[pt]},$$scope:{ctx:e}}}),k=new e[9]({props:{small:!0,filled:!0,danger:!0,style:"color: whitesmoke; display: inline;",$$slots:{default:[mt]},$$scope:{ctx:e}}}),k.$on("click",(function(){return e[26](e[55])})),{c(){t=z("div"),n=z("form"),o=z("div"),l=z("div"),r=C("#"),s=C(e[55]),i=j(),c=z("div"),a=C(L),u=j(),d=z("div"),p=C(P),m=j(),ce(g.$$.fragment),$=j(),ce(y.$$.fragment),v=j(),ce(k.$$.fragment),W(c,"class","word-break svelte-ifmgly"),W(o,"class","container-file svelte-ifmgly"),W(n,"id",_="submitForm_"+e[53].file.name+"_"+e[55]),W(n,"class","svelte-ifmgly"),W(t,"class","form-step svelte-ifmgly")},m(h,x){w(h,t,x),b(t,n),b(n,o),b(o,l),b(l,r),b(l,s),b(o,i),b(o,c),b(c,a),b(o,u),b(o,d),b(d,p),b(o,m),ae(g,o,null),b(o,$),ae(y,o,null),b(o,v),ae(k,o,null),E=!0,T||(M=O(n,"submit",B((function(){f(e[12](e[53],e[55]))&&e[12](e[53],e[55]).apply(this,arguments)}))),T=!0)},p(t,o){e=t,(!E||32&o[0])&&L!==(L=e[53].file.name+"")&&D(a,L),(!E||32&o[0])&&P!==(P=Pt(e[53].file.size)+"")&&D(p,P);const l={};!h&&32&o[0]&&(h=!0,l.value=e[53].custom_name,K((()=>h=!1))),g.$set(l);const r={};64&o[0]&&(r.disabled=e[6]),33554432&o[1]&&(r.$$scope={dirty:o,ctx:e}),y.$set(r);const s={};33554432&o[1]&&(s.$$scope={dirty:o,ctx:e}),k.$set(s),(!E||32&o[0]&&_!==(_="submitForm_"+e[53].file.name+"_"+e[55]))&&W(n,"id",_)},i(e){E||(oe(g.$$.fragment,e),oe(y.$$.fragment,e),oe(k.$$.fragment,e),E=!0)},o(e){le(g.$$.fragment,e),le(y.$$.fragment,e),le(k.$$.fragment,e),E=!1},d(e){e&&x(t),ue(g),ue(y),ue(k),T=!1,M()}}}function ht(e){let t;return{c(){t=C("Alle Dokumente hochladen")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function $t(e){let t;return{c(){t=C("Alle Dokumente entfernen")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function yt(e){return{c:i,m:i,p:i,i:i,o:i,d:i}}function vt(e){let t,n,o,l,r,s,i,c;const a=[wt,bt],u=[];function d(e,t){return 0===e[49].length?0:1}return s=d(e),i=u[s]=a[s](e),{c(){t=z("div"),n=z("table"),o=z("thead"),o.innerHTML='<tr class="svelte-ifmgly"><th class="svelte-ifmgly">#</th> \n <th class="svelte-ifmgly">Datei</th> \n <th class="text_right svelte-ifmgly">Grösse</th> \n <th class="tablehead--action svelte-ifmgly">Aktionen</th></tr>',l=j(),r=z("tbody"),i.c(),W(o,"class","tablehead"),W(n,"class","tableFixHead"),W(t,"class","task_list svelte-ifmgly")},m(e,i){w(e,t,i),b(t,n),b(n,o),b(n,l),b(n,r),u[s].m(r,null),c=!0},p(e,t){let n=s;s=d(e),s===n?u[s].p(e,t):(te(),le(u[n],1,1,(()=>{u[n]=null})),ne(),i=u[s],i?i.p(e,t):(i=u[s]=a[s](e),i.c()),oe(i,1),i.m(r,null))},i(e){c||(oe(i),c=!0)},o(e){le(i),c=!1},d(e){e&&x(t),u[s].d()}}}function bt(e){let t,n,o=e[49],l=[];for(let t=0;t<o.length;t+=1)l[t]=Ct(rt(e,o,t));const r=e=>le(l[e],1,1,(()=>{l[e]=null}));return{c(){for(let e=0;e<l.length;e+=1)l[e].c();t=E()},m(e,o){for(let t=0;t<l.length;t+=1)l[t].m(e,o);w(e,t,o),n=!0},p(e,n){if(827480&n[0]){let s;for(o=e[49],s=0;s<o.length;s+=1){const r=rt(e,o,s);l[s]?(l[s].p(r,n),oe(l[s],1)):(l[s]=Ct(r),l[s].c(),oe(l[s],1),l[s].m(t.parentNode,t))}for(te(),s=o.length;s<l.length;s+=1)r(s);ne()}},i(e){if(!n){for(let e=0;e<o.length;e+=1)oe(l[e]);n=!0}},o(e){l=l.filter(Boolean);for(let e=0;e<l.length;e+=1)le(l[e]);n=!1},d(e){k(l,e),e&&x(t)}}}function wt(e){let t;return{c(){t=z("tr"),t.innerHTML='<td colspan="4" style="text-align: center;" class="svelte-ifmgly">Keine Dokumente gefunden</td>',W(t,"class","svelte-ifmgly")},m(e,n){w(e,t,n)},p:i,i:i,o:i,d(e){e&&x(t)}}}function xt(e){let t,n;return t=new he({props:{size:"18"}}),{c(){ce(t.$$.fragment)},m(e,o){ae(t,e,o),n=!0},p:i,i(e){n||(oe(t.$$.fragment,e),n=!0)},o(e){le(t.$$.fragment,e),n=!1},d(e){ue(t,e)}}}function kt(e){let t,n,o,l;return n=new xe({props:{size:"18"}}),{c(){t=z("a"),ce(n.$$.fragment),W(t,"href",o=e[19](e[50])),L(t,"color","whitesmoke")},m(e,o){w(e,t,o),ae(n,t,null),l=!0},p(e,n){(!l||16&n[0]&&o!==(o=e[19](e[50])))&&W(t,"href",o)},i(e){l||(oe(n.$$.fragment,e),l=!0)},o(e){le(n.$$.fragment,e),l=!1},d(e){e&&x(t),ue(n)}}}function zt(e){let t,n;return t=new e[9]({props:{disabled:e[6],small:!0,filled:!0,danger:!0,style:"color: whitesmoke; display: inline;",$$slots:{default:[_t]},$$scope:{ctx:e}}}),t.$on("click",(function(){return e[30](e[50])})),{c(){ce(t.$$.fragment)},m(e,o){ae(t,e,o),n=!0},p(n,o){e=n;const l={};64&o[0]&&(l.disabled=e[6]),33554432&o[1]&&(l.$$scope={dirty:o,ctx:e}),t.$set(l)},i(e){n||(oe(t.$$.fragment,e),n=!0)},o(e){le(t.$$.fragment,e),n=!1},d(e){ue(t,e)}}}function _t(e){let t,n;return t=new _e({props:{size:"18"}}),{c(){ce(t.$$.fragment)},m(e,o){ae(t,e,o),n=!0},p:i,i(e){n||(oe(t.$$.fragment,e),n=!0)},o(e){le(t.$$.fragment,e),n=!1},d(e){ue(t,e)}}}function Ct(e){let t,n,o,l,r,s,i,c,a,u,d,f,p,m,g,h,$,y=e[52]+1+"",v=e[50].title+"",k=Pt(e[50].sizeInByte)+"";f=new e[9]({props:{small:!0,filled:!0,style:"display: inline;",disabled:e[18](e[50]),$$slots:{default:[xt]},$$scope:{ctx:e}}}),f.$on("click",(function(){return e[29](e[50])})),m=new e[9]({props:{small:!0,filled:!0,style:"display: inline;",$$slots:{default:[kt]},$$scope:{ctx:e}}});let _=e[50]._task===e[3]&&zt(e);return{c(){t=z("tr"),n=z("td"),o=C(y),l=j(),r=z("td"),s=C(v),i=j(),c=z("td"),a=C(k),u=j(),d=z("td"),ce(f.$$.fragment),p=j(),ce(m.$$.fragment),g=j(),_&&_.c(),h=j(),W(n,"class","svelte-ifmgly"),L(r,"max-width","30em"),W(r,"class","svelte-ifmgly"),W(c,"class","text_right svelte-ifmgly"),W(d,"class","svelte-ifmgly"),W(t,"class","svelte-ifmgly")},m(e,y){w(e,t,y),b(t,n),b(n,o),b(t,l),b(t,r),b(r,s),b(t,i),b(t,c),b(c,a),b(t,u),b(t,d),ae(f,d,null),b(d,p),ae(m,d,null),b(d,g),_&&_.m(d,null),b(t,h),$=!0},p(t,n){e=t,(!$||16&n[0])&&v!==(v=e[50].title+"")&&D(s,v),(!$||16&n[0])&&k!==(k=Pt(e[50].sizeInByte)+"")&&D(a,k);const o={};16&n[0]&&(o.disabled=e[18](e[50])),33554432&n[1]&&(o.$$scope={dirty:n,ctx:e}),f.$set(o);const l={};16&n[0]|33554432&n[1]&&(l.$$scope={dirty:n,ctx:e}),m.$set(l),e[50]._task===e[3]?_?(_.p(e,n),24&n[0]&&oe(_,1)):(_=zt(e),_.c(),oe(_,1),_.m(d,null)):_&&(te(),le(_,1,1,(()=>{_=null})),ne())},i(e){$||(oe(f.$$.fragment,e),oe(m.$$.fragment,e),oe(_),$=!0)},o(e){le(f.$$.fragment,e),le(m.$$.fragment,e),le(_),$=!1},d(e){e&&x(t),ue(f),ue(m),_&&_.d()}}}function jt(e){return{c:i,m:i,p:i,i:i,o:i,d:i}}function Et(e){let t;return{c(){t=C("Abbrechen")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function Ot(e){let t;return{c(){t=C("Löschen")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function Bt(e){let t,n,o,l,r,s,i,c,a,u,d;return c=new e[9]({props:{filled:!0,$$slots:{default:[Et]},$$scope:{ctx:e}}}),c.$on("click",e[31]),u=new e[9]({props:{danger:!0,outline:!0,$$slots:{default:[Ot]},$$scope:{ctx:e}}}),u.$on("click",e[32]),{c(){t=z("p"),n=C("Willst du das Dokument "),o=z("b"),l=C(e[2]),r=C(" wirklich löschen?"),s=j(),i=z("div"),ce(c.$$.fragment),a=j(),ce(u.$$.fragment),W(i,"class","flex_div svelte-ifmgly")},m(e,f){w(e,t,f),b(t,n),b(t,o),b(o,l),b(t,r),w(e,s,f),w(e,i,f),ae(c,i,null),b(i,a),ae(u,i,null),d=!0},p(e,t){(!d||4&t[0])&&D(l,e[2]);const n={};33554432&t[1]&&(n.$$scope={dirty:t,ctx:e}),c.$set(n);const o={};33554432&t[1]&&(o.$$scope={dirty:t,ctx:e}),u.$set(o)},i(e){d||(oe(c.$$.fragment,e),oe(u.$$.fragment,e),d=!0)},o(e){le(c.$$.fragment,e),le(u.$$.fragment,e),d=!1},d(e){e&&x(t),e&&x(s),e&&x(i),ue(c),ue(u)}}}function Tt(e){let t,n,o;return n=new ve({props:{size:"25"}}),{c(){t=z("div"),ce(n.$$.fragment),W(t,"slot","title-icon")},m(e,l){w(e,t,l),ae(n,t,null),o=!0},p:i,i(e){o||(oe(n.$$.fragment,e),o=!0)},o(e){le(n.$$.fragment,e),o=!1},d(e){e&&x(t),ue(n)}}}function Wt(e){let t,n;return t=new e[8]({props:{title:"Bestätigung",closeCallback:e[48],danger:!0,$$slots:{"title-icon":[Tt],default:[Bt]},$$scope:{ctx:e}}}),{c(){ce(t.$$.fragment)},m(e,o){ae(t,e,o),n=!0},p(e,n){const o={};131072&n[1]&&(o.closeCallback=e[48]),4&n[0]|33554432&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i(e){n||(oe(t.$$.fragment,e),n=!0)},o(e){le(t.$$.fragment,e),n=!1},d(e){ue(t,e)}}}function Mt(e){let t,n,o,l,r,s,i=!e[0]&&it(e),c={ctx:e,current:null,token:null,hasCatch:!1,pending:jt,then:vt,catch:yt,value:49,blocks:[,,,]};function a(t){e[33](t)}re(n=e[4],c);let u={$$slots:{default:[Wt,({closeCallback:e})=>({48:e}),({closeCallback:e})=>[0,e?131072:0]]},$$scope:{ctx:e}};return void 0!==e[1]&&(u.open=e[1]),l=new e[7]({props:u}),F.push((()=>ie(l,"open",a))),{c(){i&&i.c(),t=j(),c.block.c(),o=j(),ce(l.$$.fragment)},m(e,n){i&&i.m(e,n),w(e,t,n),c.block.m(e,c.anchor=n),c.mount=()=>o.parentNode,c.anchor=o,w(e,o,n),ae(l,e,n),s=!0},p(o,s){(e=o)[0]?i&&(te(),le(i,1,1,(()=>{i=null})),ne()):i?(i.p(e,s),1&s[0]&&oe(i,1)):(i=it(e),i.c(),oe(i,1),i.m(t.parentNode,t)),c.ctx=e,16&s[0]&&n!==(n=e[4])&&re(n,c)||function(e,t,n){const o=t.slice(),{resolved:l}=e;e.current===e.then&&(o[e.value]=l),e.current===e.catch&&(o[e.error]=l),e.block.p(o,n)}(c,e,s);const a={};4&s[0]|33685504&s[1]&&(a.$$scope={dirty:s,ctx:e}),!r&&2&s[0]&&(r=!0,a.open=e[1],K((()=>r=!1))),l.$set(a)},i(e){s||(oe(i),oe(c.block),oe(l.$$.fragment,e),s=!0)},o(e){le(i);for(let e=0;e<3;e+=1){le(c.blocks[e])}le(l.$$.fragment,e),s=!1},d(e){i&&i.d(e),e&&x(t),c.block.d(e),c.token=null,c=null,e&&x(o),ue(l,e)}}}const Dt=5;let Lt="text/plain,text/csv,image/*,.pdf,.csv,application/pdf,application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,.ppt,pptx,.doc,.docx,.xml,.json,application/json,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,vnd.ms-3mfdocument,application/octet-stream,application/object,.obj,.step,.stp";function Pt(e){if(e>=1073741824)e=Math.round(e/1073741824*100)/100+" GB";else if(e>=1048576){e=Math.round(e/1048576*100)/100+" MB"}else if(e>=1024){e=Math.round(e/1024*100)/100+" KB"}else e>1?e+=" bytes":1==e?e+=" byte":e="0 bytes";return e}function St(e,i,c){let a,u,d;m(e,r,(e=>c(22,u=e))),m(e,s,(e=>c(23,d=e)));const{Modal:f,Dialog:p,Button:g,TextField:h}=t;let $,y,v,{task:b}=i,w=!1,x="",k=[],z=b.task?.readonly,_=[];const C=b.eventSchema.list?.filter((e=>e.report)).concat(b.eventSchema.items?.filter((e=>e.report)));function j(e){e.forEach((e=>_.push({file:e,custom_name:e.name}))),c(5,_)}const E=async()=>{const e=await b;c(21,v=await o.getSchema(e.event)),c(3,y=e.task.id);const t=await o.getUserReports(y);if(C?.length){const n=await o.getTask(e.eventSchema.class,e.docId);for(const e of C){const l=e.name,r=[].concat(n[l]);for(let e of r)if("object"!=typeof e&&(e={[l]:e}),e[l]){const n=(await o.getTaskByDocId(e[l]))._id,r=await o.getUserReports(n);t.push(...r)}}}return t};async function O(e,t,n=!1){if(!e)return;if(t){if(!e.name)return}else t=e.name;const r=new FormData;r.append("title",t),r.append("file",e),await o.uploadUserReport(y,r),n||l.success("Datei erfolgreich gespeichert.",2e3)}k=E();const B=(e,t)=>{c(1,w=!0),c(2,x=t),$=e},T=()=>{c(1,w=!1),$="",c(2,x="")},W=e=>{const t="/api/userreport/"+e._id;let n="/viewer/3d/",o=800,l=600;if(P(e)){n="/viewer/doc/";const t=S(e);o=t.width,l=t.height}let r=n+"index.html?file="+t+"&type="+R(e);window.open(r,"",`popup=yes toolbar=no width=${o} height=${l}`)};async function M(){await o.deleteUserReport($).then((()=>{c(1,w=!1),$=""})),l.success("Datei erfolgreich gelöscht",2e3)}async function D(){await Promise.all(_.map((async(e,t)=>{await O(e.file,e.custom_name,!0)}))),l.success("Dateien erfolgreich gespeichert",2e3),c(5,_=[])}n.subscribe((e=>{e&&e.taskId===y&&c(4,k=E())}));const L=e=>"model/obj"===e.contentType||"application/octet-stream"===e.contentType,P=e=>["doc","docx","xls","xlsx","ppt","pptx","pdf","jpg","png","svg"].includes(R(e)),S=e=>{const t={width:624,height:900},n=R(e);return["ppt","pptx","xls","xlsx"].includes(n)&&(t.width=1e3,t.height=600),["jpg","png","svg"].includes(n)&&(t.width=600,t.height=600),t},R=e=>e.fileName.split(".").slice(-1)[0];return e.$$set=e=>{"task"in e&&c(20,b=e.task)},e.$$.update=()=>{if(15728641&e.$$.dirty[0]&&v&&b.task&&u){if(d.role?.length&&v.authorization?.length){const e=v.authorization.some((e=>u?.find((t=>t===e.role&&"edit"===e.activity))));c(0,z||=!e)}"registerCreditor"===v.identity.name&&c(0,z=!1)}1&e.$$.dirty[0]&&c(6,a=z)},[z,w,x,y,k,_,a,f,p,g,h,j,function(e,t){var n;e.file&&e&&(O(e.file,e.custom_name),n=t,_.splice(n,1),c(5,_=[..._]))},B,T,W,M,D,e=>!(L(e)||P(e)),e=>`/api/userreport/${e._id}?h=${window.location.hostname}`,b,v,u,d,e=>j(e.detail.files),function(t,n){e.$$.not_equal(n.custom_name,t)&&(n.custom_name=t,c(5,_))},e=>{_.splice(e,1),c(5,_=[..._])},()=>{D()},()=>c(5,_=[]),e=>W(e),e=>B(e._id,e.title),()=>T(),()=>M(),function(e){w=e,c(1,w)}]}class Rt extends pe{constructor(e){var t;super(),document.getElementById("svelte-ifmgly-style")||((t=z("style")).id="svelte-ifmgly-style",t.textContent=".form-step.svelte-ifmgly.svelte-ifmgly{margin-bottom:1em}.form-step.svelte-ifmgly .document-choose.svelte-ifmgly{margin:1em}.form-step.svelte-ifmgly .btn-document{width:300px;text-align:center}.form-step.svelte-ifmgly .btn-document div{margin-inline:auto}.form-step.svelte-ifmgly .btn-document-primary{color:#fff}.form-step.svelte-ifmgly .btn-document-secondary{background-color:#91BDD9}.form-step.svelte-ifmgly .container-file.svelte-ifmgly{display:grid;padding:0 1em;gap:1em;grid-template-columns:50px 218px 80px 1fr 50px 50px;align-items:center}.form-step.svelte-ifmgly .word-break.svelte-ifmgly{word-break:break-all}.gap.svelte-ifmgly.svelte-ifmgly{gap:1em}.task_list.svelte-ifmgly.svelte-ifmgly{flex:auto;overflow-y:scroll;overflow-x:hidden;width:99%;height:30em;border:1px solid #ccc;border-radius:0.5em;margin-top:2em}.task_list.svelte-ifmgly th.svelte-ifmgly{padding:0.8em}.task_list.svelte-ifmgly td.svelte-ifmgly{padding:0.8em}.task_list.svelte-ifmgly tr.svelte-ifmgly:nth-child(2n){background-color:#f8f8fe}.flex_div.svelte-ifmgly.svelte-ifmgly{display:flex;margin-top:1em;justify-content:space-between}.task_list.svelte-ifmgly td.svelte-ifmgly{vertical-align:middle}.tablehead--action.svelte-ifmgly.svelte-ifmgly{width:13em}#nameOfFile.svelte-ifmgly.svelte-ifmgly{width:15em;margin-top:6px;overflow-wrap:anywhere}#sizeOfFile.svelte-ifmgly.svelte-ifmgly{margin-top:3px;font-style:italic}td.text_right.svelte-ifmgly.svelte-ifmgly,th.text_right.svelte-ifmgly.svelte-ifmgly{padding-right:1em}",b(document.head,t)),fe(this,e,St,Mt,p,{task:20},[-1,-1])}}function It(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nt,At,Ft=(Nt=function(e,t){function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function o(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?n(Object(o),!0).forEach((function(t){l(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("object"!==r(e))throw new Error("single-spa-svelte requires a configuration object");var t=o(o({},s),e);if(!t.component)throw new Error("single-spa-svelte must be passed opts.component");var n={};return{bootstrap:i.bind(null,t,n),mount:c.bind(null,t,n),unmount:a.bind(null,t,n),update:u.bind(null,t,n)}};var s={component:null,domElementGetter:null,props:{}};function i(e){return Promise.resolve()}function c(e,t,n){var l=Object.keys(s),r=Object.keys(e).reduce((function(t,n){return l.includes(n)||(t[n]=e[n]),t}),{});return Promise.resolve().then((function(){var l=function(e,t){return(t=t&&t.customProps?t.customProps:t).domElement?function(){return t.domElement}:t.domElementGetter?function(){return t.domElementGetter(t)}:e.domElementGetter?function(){return e.domElementGetter(t)}:function(e){var t=e.appName||e.name;if(!t)throw Error("single-spa-svelte was not given an application name as a prop, so it can't make a unique dom element container for the svelte application");var n="single-spa-application:".concat(t);return function(){var e=document.getElementById(n);return e||((e=document.createElement("div")).id=n,document.body.appendChild(e)),e}}(t)}(e,n),s=l();t.instance=new e.component(o(o({},r),{},{target:s,props:Object.assign({},n,e.props)}))}))}function a(e,t){return Promise.resolve().then((function(){t.instance.$destroy?t.instance.$destroy():t.instance.destroy()}))}function u(e,t,n){return Promise.resolve().then((function(){t.instance.$set?t.instance.$set(n):t.instance.set(n)}))}},Nt(At={exports:{}},At.exports),At.exports);const Ht=It(Ft)({component:Rt,domElementGetter:()=>document.getElementById("detail-app")}),{bootstrap:Gt,mount:qt,unmount:Ut}=Ht;e({bootstrap:Gt,mount:qt,unmount:Ut});e("Report",Rt)}}}));
|
|
1
|
+
System.register(["@enablerr-ui/layout","@enablerr-ui/form"],(function(e){"use strict";var t,n,o,l,s,r;return{setters:[function(e){t=e.getAttractions},function(e){n=e.attachment_notification,o=e.Request,l=e.toasts,s=e.currentRoles,r=e.settings}],execute:function(){e("version","0.2.65");function i(){}function c(e,t){for(const n in t)e[n]=t[n];return e}function a(e){return e()}function u(){return Object.create(null)}function d(e){e.forEach(a)}function f(e){return"function"==typeof e}function p(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function m(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 g(e,t,n,o){if(e){const l=h(e,t,n,o);return e[0](l)}}function h(e,t,n,o){return e[1]&&o?c(n.ctx.slice(),e[1](o(t))):n.ctx}function $(e,t,n,o,l,s,r){const i=function(e,t,n,o){if(e[2]&&o){const l=e[2](o(n));if(void 0===t.dirty)return l;if("object"==typeof l){const e=[],n=Math.max(t.dirty.length,l.length);for(let o=0;o<n;o+=1)e[o]=t.dirty[o]|l[o];return e}return t.dirty|l}return t.dirty}(t,o,l,s);if(i){const l=h(t,n,o,r);e.p(l,i)}}function y(e,t){const n={};t=new Set(t);for(const o in e)t.has(o)||"$"===o[0]||(n[o]=e[o]);return n}function v(e){return null==e?"":e}function b(e,t){e.appendChild(t)}function w(e,t,n){e.insertBefore(t,n||null)}function x(e){e.parentNode.removeChild(e)}function k(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function z(e){return document.createElement(e)}function _(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function C(e){return document.createTextNode(e)}function j(){return C(" ")}function E(){return C("")}function O(e,t,n,o){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}function B(e){return function(t){return t.preventDefault(),e.call(this,t)}}function T(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function W(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function M(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const o in t)null==t[o]?e.removeAttribute(o):"style"===o?e.style.cssText=t[o]:"__value"===o?e.value=e[o]=t[o]:n[o]&&n[o].set?e[o]=t[o]:W(e,o,t[o])}function D(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function L(e,t,n,o){e.style.setProperty(t,n,o?"important":"")}function P(e,t,n){e.classList[n?"add":"remove"](t)}let S;function R(e){S=e}function I(){if(!S)throw new Error("Function called outside component initialization");return S}function N(){const e=I();return(t,n)=>{const o=e.$$.callbacks[t];if(o){const l=function(e,t){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}(t,n);o.slice().forEach((t=>{t.call(e,l)}))}}}const A=[],F=[],H=[],G=[],q=Promise.resolve();let U=!1;function V(e){H.push(e)}function K(e){G.push(e)}let X=!1;const Y=new Set;function J(){if(!X){X=!0;do{for(let e=0;e<A.length;e+=1){const t=A[e];R(t),Q(t.$$)}for(R(null),A.length=0;F.length;)F.pop()();for(let e=0;e<H.length;e+=1){const t=H[e];Y.has(t)||(Y.add(t),t())}H.length=0}while(A.length);for(;G.length;)G.pop()();U=!1,X=!1,Y.clear()}}function Q(e){if(null!==e.fragment){e.update(),d(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(V)}}const Z=new Set;let ee;function te(){ee={r:0,c:[],p:ee}}function ne(){ee.r||d(ee.c),ee=ee.p}function oe(e,t){e&&e.i&&(Z.delete(e),e.i(t))}function le(e,t,n,o){if(e&&e.o){if(Z.has(e))return;Z.add(e),ee&&ee.c.push((()=>{Z.delete(e),o&&(n&&e.d(1),o())})),e.o(t)}}function se(e,t){const n=t.token={};function o(e,o,l,s){if(t.token!==n)return;t.resolved=s;let r=t.ctx;void 0!==l&&(r=r.slice(),r[l]=s);const i=e&&(t.current=e)(r);let c=!1;t.block&&(t.blocks?t.blocks.forEach(((e,n)=>{n!==o&&e&&(te(),le(e,1,1,(()=>{t.blocks[n]===e&&(t.blocks[n]=null)})),ne())})):t.block.d(1),i.c(),oe(i,1),i.m(t.mount(),t.anchor),c=!0),t.block=i,t.blocks&&(t.blocks[o]=i),c&&J()}if((l=e)&&"object"==typeof l&&"function"==typeof l.then){const n=I();if(e.then((e=>{R(n),o(t.then,1,t.value,e),R(null)}),(e=>{if(R(n),o(t.catch,2,t.error,e),R(null),!t.hasCatch)throw e})),t.current!==t.pending)return o(t.pending,0),!0}else{if(t.current!==t.then)return o(t.then,1,t.value,e),!0;t.resolved=e}var l}function re(e,t){le(e,1,1,(()=>{t.delete(e.key)}))}function ie(e,t,n){const o=e.$$.props[t];void 0!==o&&(e.$$.bound[o]=n,n(e.$$.ctx[o]))}function ce(e){e&&e.c()}function ae(e,t,n,o){const{fragment:l,on_mount:s,on_destroy:r,after_update:i}=e.$$;l&&l.m(t,n),o||V((()=>{const t=s.map(a).filter(f);r?r.push(...t):d(t),e.$$.on_mount=[]})),i.forEach(V)}function ue(e,t){const n=e.$$;null!==n.fragment&&(d(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function de(e,t){-1===e.$$.dirty[0]&&(A.push(e),U||(U=!0,q.then(J)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function fe(e,t,n,o,l,s,r=[-1]){const c=S;R(e);const a=e.$$={fragment:null,ctx:null,props:s,update:i,not_equal:l,bound:u(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:t.context||[]),callbacks:u(),dirty:r,skip_bound:!1};let f=!1;if(a.ctx=n?n(e,t.props||{},((t,n,...o)=>{const s=o.length?o[0]:n;return a.ctx&&l(a.ctx[t],a.ctx[t]=s)&&(!a.skip_bound&&a.bound[t]&&a.bound[t](s),f&&de(e,t)),n})):[],a.update(),f=!0,d(a.before_update),a.fragment=!!o&&o(a.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);a.fragment&&a.fragment.l(e),e.forEach(x)}else a.fragment&&a.fragment.c();t.intro&&oe(e.$$.fragment),ae(e,t.target,t.anchor,t.customElement),J()}R(c)}class pe{$destroy(){ue(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 me(e){let t,n,o,l;return{c(){t=_("svg"),n=_("path"),o=_("polygon"),W(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"),W(o,"points","12 15 17 21 7 21 12 15"),W(t,"xmlns","http://www.w3.org/2000/svg"),W(t,"width",e[0]),W(t,"height",e[0]),W(t,"fill","none"),W(t,"viewBox","0 0 24 24"),W(t,"stroke","currentColor"),W(t,"stroke-width",e[1]),W(t,"stroke-linecap","round"),W(t,"stroke-linejoin","round"),W(t,"class",l="feather feather-airplay "+e[2])},m(e,l){w(e,t,l),b(t,n),b(t,o)},p(e,[n]){1&n&&W(t,"width",e[0]),1&n&&W(t,"height",e[0]),2&n&&W(t,"stroke-width",e[1]),4&n&&l!==(l="feather feather-airplay "+e[2])&&W(t,"class",l)},i:i,o:i,d(e){e&&x(t)}}}function ge(e,t,n){let{size:o="100%"}=t,{strokeWidth:l=2}=t,{class:s=""}=t;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),e.$$set=e=>{"size"in e&&n(0,o=e.size),"strokeWidth"in e&&n(1,l=e.strokeWidth),"class"in e&&n(2,s=e.class)},[o,l,s]}class he extends pe{constructor(e){super(),fe(this,e,ge,me,p,{size:0,strokeWidth:1,class:2})}}function $e(e){let t,n,o,l,s;return{c(){t=_("svg"),n=_("path"),o=_("line"),l=_("line"),W(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"),W(o,"x1","12"),W(o,"y1","9"),W(o,"x2","12"),W(o,"y2","13"),W(l,"x1","12"),W(l,"y1","17"),W(l,"x2","12.01"),W(l,"y2","17"),W(t,"xmlns","http://www.w3.org/2000/svg"),W(t,"width",e[0]),W(t,"height",e[0]),W(t,"fill","none"),W(t,"viewBox","0 0 24 24"),W(t,"stroke","currentColor"),W(t,"stroke-width",e[1]),W(t,"stroke-linecap","round"),W(t,"stroke-linejoin","round"),W(t,"class",s="feather feather-alert-triangle "+e[2])},m(e,s){w(e,t,s),b(t,n),b(t,o),b(t,l)},p(e,[n]){1&n&&W(t,"width",e[0]),1&n&&W(t,"height",e[0]),2&n&&W(t,"stroke-width",e[1]),4&n&&s!==(s="feather feather-alert-triangle "+e[2])&&W(t,"class",s)},i:i,o:i,d(e){e&&x(t)}}}function ye(e,t,n){let{size:o="100%"}=t,{strokeWidth:l=2}=t,{class:s=""}=t;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),e.$$set=e=>{"size"in e&&n(0,o=e.size),"strokeWidth"in e&&n(1,l=e.strokeWidth),"class"in e&&n(2,s=e.class)},[o,l,s]}class ve extends pe{constructor(e){super(),fe(this,e,ye,$e,p,{size:0,strokeWidth:1,class:2})}}function be(e){let t,n,o,l,s;return{c(){t=_("svg"),n=_("path"),o=_("polyline"),l=_("line"),W(n,"d","M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"),W(o,"points","7 10 12 15 17 10"),W(l,"x1","12"),W(l,"y1","15"),W(l,"x2","12"),W(l,"y2","3"),W(t,"xmlns","http://www.w3.org/2000/svg"),W(t,"width",e[0]),W(t,"height",e[0]),W(t,"fill","none"),W(t,"viewBox","0 0 24 24"),W(t,"stroke","currentColor"),W(t,"stroke-width",e[1]),W(t,"stroke-linecap","round"),W(t,"stroke-linejoin","round"),W(t,"class",s="feather feather-download "+e[2])},m(e,s){w(e,t,s),b(t,n),b(t,o),b(t,l)},p(e,[n]){1&n&&W(t,"width",e[0]),1&n&&W(t,"height",e[0]),2&n&&W(t,"stroke-width",e[1]),4&n&&s!==(s="feather feather-download "+e[2])&&W(t,"class",s)},i:i,o:i,d(e){e&&x(t)}}}function we(e,t,n){let{size:o="100%"}=t,{strokeWidth:l=2}=t,{class:s=""}=t;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),e.$$set=e=>{"size"in e&&n(0,o=e.size),"strokeWidth"in e&&n(1,l=e.strokeWidth),"class"in e&&n(2,s=e.class)},[o,l,s]}class xe extends pe{constructor(e){super(),fe(this,e,we,be,p,{size:0,strokeWidth:1,class:2})}}function ke(e){let t,n,o,l;return{c(){t=_("svg"),n=_("polyline"),o=_("path"),W(n,"points","3 6 5 6 21 6"),W(o,"d","M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"),W(t,"xmlns","http://www.w3.org/2000/svg"),W(t,"width",e[0]),W(t,"height",e[0]),W(t,"fill","none"),W(t,"viewBox","0 0 24 24"),W(t,"stroke","currentColor"),W(t,"stroke-width",e[1]),W(t,"stroke-linecap","round"),W(t,"stroke-linejoin","round"),W(t,"class",l="feather feather-trash "+e[2])},m(e,l){w(e,t,l),b(t,n),b(t,o)},p(e,[n]){1&n&&W(t,"width",e[0]),1&n&&W(t,"height",e[0]),2&n&&W(t,"stroke-width",e[1]),4&n&&l!==(l="feather feather-trash "+e[2])&&W(t,"class",l)},i:i,o:i,d(e){e&&x(t)}}}function ze(e,t,n){let{size:o="100%"}=t,{strokeWidth:l=2}=t,{class:s=""}=t;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),e.$$set=e=>{"size"in e&&n(0,o=e.size),"strokeWidth"in e&&n(1,l=e.strokeWidth),"class"in e&&n(2,s=e.class)},[o,l,s]}class _e extends pe{constructor(e){super(),fe(this,e,ze,ke,p,{size:0,strokeWidth:1,class:2})}}function Ce(e){let t,n,o,l,s;return{c(){t=_("svg"),n=_("path"),o=_("polyline"),l=_("line"),W(n,"d","M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"),W(o,"points","17 8 12 3 7 8"),W(l,"x1","12"),W(l,"y1","3"),W(l,"x2","12"),W(l,"y2","15"),W(t,"xmlns","http://www.w3.org/2000/svg"),W(t,"width",e[0]),W(t,"height",e[0]),W(t,"fill","none"),W(t,"viewBox","0 0 24 24"),W(t,"stroke","currentColor"),W(t,"stroke-width",e[1]),W(t,"stroke-linecap","round"),W(t,"stroke-linejoin","round"),W(t,"class",s="feather feather-upload "+e[2])},m(e,s){w(e,t,s),b(t,n),b(t,o),b(t,l)},p(e,[n]){1&n&&W(t,"width",e[0]),1&n&&W(t,"height",e[0]),2&n&&W(t,"stroke-width",e[1]),4&n&&s!==(s="feather feather-upload "+e[2])&&W(t,"class",s)},i:i,o:i,d(e){e&&x(t)}}}function je(e,t,n){let{size:o="100%"}=t,{strokeWidth:l=2}=t,{class:s=""}=t;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),e.$$set=e=>{"size"in e&&n(0,o=e.size),"strokeWidth"in e&&n(1,l=e.strokeWidth),"class"in e&&n(2,s=e.class)},[o,l,s]}class Ee extends pe{constructor(e){super(),fe(this,e,je,Ce,p,{size:0,strokeWidth:1,class:2})}}function Oe(e){let t,n;return{c(){t=_("svg"),n=_("path"),W(n,"d","M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"),W(t,"xmlns","http://www.w3.org/2000/svg"),W(t,"width","24"),W(t,"height","24"),W(t,"viewBox","0 0 24 24"),W(t,"fill","none"),W(t,"stroke","currentColor"),W(t,"stroke-width","2"),W(t,"stroke-linecap","round"),W(t,"stroke-linejoin","round")},m(e,o){w(e,t,o),b(t,n)},p:i,i:i,o:i,d(e){e&&x(t)}}}class Be extends pe{constructor(e){super(),fe(this,e,null,Oe,p,{})}}function Te(...e){return e.filter((e=>!!e)).join(" ")}function We(e){let t,n,o,l;return{c(){t=_("svg"),n=_("line"),o=_("line"),W(n,"x1","12"),W(n,"y1","5"),W(n,"x2","12"),W(n,"y2","19"),W(o,"x1","5"),W(o,"y1","12"),W(o,"x2","19"),W(o,"y2","12"),W(t,"xmlns","http://www.w3.org/2000/svg"),W(t,"width","24"),W(t,"height","24"),W(t,"viewBox","0 0 24 24"),W(t,"fill","none"),W(t,"stroke","currentColor"),W(t,"stroke-width","2"),W(t,"stroke-linecap","round"),W(t,"stroke-linejoin","round"),W(t,"class",l=Te(e[0]))},m(e,l){w(e,t,l),b(t,n),b(t,o)},p(e,[n]){1&n&&l!==(l=Te(e[0]))&&W(t,"class",l)},i:i,o:i,d(e){e&&x(t)}}}function Me(e,t,n){let{class:o=null}=t;return e.$$set=e=>{"class"in e&&n(0,o=e.class)},[o]}class De extends pe{constructor(e){super(),fe(this,e,Me,We,p,{class:0})}}function Le(e,t={}){const n={event:t.event||"click",transition:t.transition||150,zIndex:t.zIndex||"100",bg:t.rippleColor||null,disabled:t.disabled||!1},o=t=>function(e,t,{bg:n,zIndex:o,transition:l}){const s=parseInt(getComputedStyle(t).borderWidth.replace("px","")),r=t.getBoundingClientRect(),i=r.left,c=r.top,a=t.offsetWidth,u=t.offsetHeight,d=e.clientX-i,f=e.clientY-c,p=Math.max(d,a-d),m=Math.max(f,u-f),g=window.getComputedStyle(t),h=Math.sqrt(p*p+m*m),$=s>0?s:0,y=document.createElement("div"),v=document.createElement("div");v.className="ripple-container",y.className="ripple",y.style.marginTop="0px",y.style.marginLeft="0px",y.style.width="1px",y.style.height="1px",y.style.transition=`all ${l}ms cubic-bezier(0.4, 0, 0.2, 1)`,y.style.borderRadius="50%",y.style.pointerEvents="none",y.style.position="relative",y.style.zIndex=o,null!==n&&(y.style.backgroundColor=n);v.style.position="absolute",v.style.left=0-$+"px",v.style.top=0-$+"px",v.style.height="0",v.style.width="0",v.style.pointerEvents="none",v.style.overflow="hidden";const b=t.style.position.length>0?t.style.position:getComputedStyle(t).position;"relative"!==b&&"absolute"!==b&&(t.style.position="relative");function w(){setTimeout((()=>{y.style.backgroundColor="rgba(0, 0, 0, 0)"}),250),setTimeout((()=>{v.parentNode.removeChild(v)}),l+250),setTimeout((()=>{let e=!0;for(let n=0;n<t.childNodes.length;n++)"ripple-container"===t.childNodes[n].className&&(e=!1);e&&(t.style.position="static"!==b?b:"")}),l+250)}v.appendChild(y),t.appendChild(v),y.style.marginLeft=d+"px",y.style.marginTop=f+"px",v.style.width=a+"px",v.style.height=u+"px",v.style.borderTopLeftRadius=g.borderTopLeftRadius,v.style.borderTopRightRadius=g.borderTopRightRadius,v.style.borderBottomLeftRadius=g.borderBottomLeftRadius,v.style.borderBottomRightRadius=g.borderBottomRightRadius,v.style.direction="ltr",setTimeout((()=>{y.style.width=2*h+"px",y.style.height=2*h+"px",y.style.marginLeft=d-h+"px",y.style.marginTop=f-h+"px"}),0),w()}(t,e,n);return n.disabled||e.addEventListener(n.event,o),{destroy(){e.removeEventListener(n.event,o)},update(t={}){t.disabled?e.removeEventListener(n.event,o):e.addEventListener(n.event,o)}}}function Pe(e,t){if(null==e)return!0;return e.split(",").map((e=>e.trim().toLowerCase())).some((e=>function(e,t){if(t.name&&e.startsWith("."))return t.name.toLowerCase().endsWith(e);return function(e,t){if("*"===e||"*/*"===e)return!0;const n=e.split("*");if(1===n.length)return e===t;if(2!==n.length)return!1;return t.startsWith(n[0])&&t.endsWith(n[1])}(e.toLowerCase(),(t.type||"").toLowerCase())}(e,t)))}function Se(e,t,n){const o=e.slice();return o[26]=t[n],o}const Re=e=>({}),Ie=e=>({}),Ne=e=>({}),Ae=e=>({}),Fe=e=>({}),He=e=>({}),Ge=e=>({}),qe=e=>({}),Ue=e=>({}),Ve=e=>({}),Ke=e=>({wrongType:128&e,dragActive:64&e}),Xe=e=>({wrongType:e[7],dragActive:e[6]});function Ye(e){let t;const n=e[18]["drag-and-drop-message"],o=g(n,e,e[17],Ae),l=o||function(){let e;return{c(){e=C("drag & drop here or click to upload files")},m(t,n){w(t,e,n)},d(t){t&&x(e)}}}();return{c(){l&&l.c()},m(e,n){l&&l.m(e,n),t=!0},p(e,l){o&&o.p&&(!t||131072&l)&&$(o,n,e,e[17],l,Ne,Ae)},i(e){t||(oe(l,e),t=!0)},o(e){le(l,e),t=!1},d(e){l&&l.d(e)}}}function Je(e){let t;const n=e[18]["release-to-upload-message"],o=g(n,e,e[17],He),l=o||function(){let e;return{c(){e=C("release to upload")},m(t,n){w(t,e,n)},d(t){t&&x(e)}}}();return{c(){l&&l.c()},m(e,n){l&&l.m(e,n),t=!0},p(e,l){o&&o.p&&(!t||131072&l)&&$(o,n,e,e[17],l,Fe,He)},i(e){t||(oe(l,e),t=!0)},o(e){le(l,e),t=!1},d(e){l&&l.d(e)}}}function Qe(e){let t;const n=e[18]["incorrect-file-message"],o=g(n,e,e[17],qe),l=o||function(){let e;return{c(){e=C("incorrect file type")},m(t,n){w(t,e,n)},d(t){t&&x(e)}}}();return{c(){l&&l.c()},m(e,n){l&&l.m(e,n),t=!0},p(e,l){o&&o.p&&(!t||131072&l)&&$(o,n,e,e[17],l,Ge,qe)},i(e){t||(oe(l,e),t=!0)},o(e){le(l,e),t=!1},d(e){l&&l.d(e)}}}function Ze(e){let t;const n=e[18]["upload-unavailable-message"],o=g(n,e,e[17],Ve),l=o||function(){let e;return{c(){e=C("file upload unavailable")},m(t,n){w(t,e,n)},d(t){t&&x(e)}}}();return{c(){l&&l.c()},m(e,n){l&&l.m(e,n),t=!0},p(e,l){o&&o.p&&(!t||131072&l)&&$(o,n,e,e[17],l,Ue,Ve)},i(e){t||(oe(l,e),t=!0)},o(e){le(l,e),t=!1},d(e){l&&l.d(e)}}}function et(e){let t;const n=e[18]["more-icon"],o=g(n,e,e[17],Ie),l=o||function(){let e,t;return e=new De({props:{class:"plus"}}),{c(){ce(e.$$.fragment)},m(n,o){ae(e,n,o),t=!0},p:i,i(n){t||(oe(e.$$.fragment,n),t=!0)},o(n){le(e.$$.fragment,n),t=!1},d(t){ue(e,t)}}}();return{c(){l&&l.c()},m(e,n){l&&l.m(e,n),t=!0},p(e,l){o&&o.p&&(!t||131072&l)&&$(o,n,e,e[17],l,Re,Ie)},i(e){t||(oe(l,e),t=!0)},o(e){le(l,e),t=!1},d(e){l&&l.d(e)}}}function tt(e,t){let n,o,l,s;var r=t[2];function i(e){return{props:{file:e[26]}}}return r&&(o=new r(i(t)),o.$on("delete",t[13])),{key:e,first:null,c(){n=E(),o&&ce(o.$$.fragment),l=E(),this.first=n},m(e,t){w(e,n,t),o&&ae(o,e,t),w(e,l,t),s=!0},p(e,n){t=e;const s={};if(1&n&&(s.file=t[26]),r!==(r=t[2])){if(o){te();const e=o;le(e.$$.fragment,1,0,(()=>{ue(e,1)})),ne()}r?(o=new r(i(t)),o.$on("delete",t[13]),ce(o.$$.fragment),oe(o.$$.fragment,1),ae(o,l.parentNode,l)):o=null}else r&&o.$set(s)},i(e){s||(o&&oe(o.$$.fragment,e),s=!0)},o(e){o&&le(o.$$.fragment,e),s=!1},d(e){e&&x(n),e&&x(l),o&&ue(o,e)}}}function nt(e){let t,n,o,l,s,r,a,u,p,m,h,y,k,_=[],C=new Map,E=[{type:"file"},{multiple:!0},{accept:e[3]},{disabled:o=e[4]||e[0].length>=e[5]},e[15]],D={};for(let e=0;e<E.length;e+=1)D=c(D,E[e]);const L=e[18]["empty-layer"],S=g(L,e,e[17],Xe),R=S||function(e){let t,n,o,l,s,r;t=new Be({props:{class:"icon"}});const i=[Ze,Qe,Je,Ye],c=[];function a(e,t){return e[4]?0:e[7]?1:e[6]?2:3}return l=a(e),s=c[l]=i[l](e),{c(){ce(t.$$.fragment),n=j(),o=z("div"),s.c(),W(o,"class","title svelte-11deuuc")},m(e,s){ae(t,e,s),w(e,n,s),w(e,o,s),c[l].m(o,null),r=!0},p(e,t){let n=l;l=a(e),l===n?c[l].p(e,t):(te(),le(c[n],1,1,(()=>{c[n]=null})),ne(),s=c[l],s?s.p(e,t):(s=c[l]=i[l](e),s.c()),oe(s,1),s.m(o,null))},i(e){r||(oe(t.$$.fragment,e),oe(s),r=!0)},o(e){le(t.$$.fragment,e),le(s),r=!1},d(e){ue(t,e),e&&x(n),e&&x(o),c[l].d()}}}(e);let I=e[0].length<e[5]&&et(e),N=e[0];const A=e=>`${e[26].name}-${e[26].lastModified}`;for(let t=0;t<N.length;t+=1){let n=Se(e,N,t),o=A(n);C.set(o,_[t]=tt(o,n))}return{c(){t=z("label"),n=z("input"),l=j(),s=z("div"),R&&R.c(),r=j(),a=z("div"),I&&I.c(),p=j();for(let e=0;e<_.length;e+=1)_[e].c();M(n,D),P(n,"svelte-11deuuc",!0),W(s,"class","empty-layer svelte-11deuuc"),W(a,"class","dropzone-layer svelte-11deuuc"),P(a,"accepting",e[6]),W(t,"class",m=v(Te("file-dropzone",e[1]))+" svelte-11deuuc"),P(t,"has-content",e[0]&&0!==e[0].length),P(t,"wrong-type",e[7]),P(t,"disabled",e[4]||e[0].length>=e[5])},m(o,c){w(o,t,c),b(t,n),e[19](n),b(t,l),b(t,s),R&&R.m(s,null),e[20](s),b(t,r),b(t,a),I&&I.m(a,null),e[21](a),b(t,p);for(let e=0;e<_.length;e+=1)_[e].m(t,null);var d;h=!0,y||(k=[O(n,"change",e[12]),O(a,"dragover",T(B(e[11]))),O(a,"dragenter",e[22]),O(a,"dragleave",e[23]),O(a,"drop",T(B(e[12]))),(d=u=Le.call(null,a,{disabled:e[4]||e[0].length>=e[5]}),d&&f(d.destroy)?d.destroy:i),O(t,"click",e[14])],y=!0)},p(e,[l]){M(n,D=function(e,t){const n={},o={},l={$$scope:1};let s=e.length;for(;s--;){const r=e[s],i=t[s];if(i){for(const e in r)e in i||(o[e]=1);for(const e in i)l[e]||(n[e]=i[e],l[e]=1);e[s]=i}else for(const e in r)l[e]=1}for(const e in o)e in n||(n[e]=void 0);return n}(E,[{type:"file"},{multiple:!0},(!h||8&l)&&{accept:e[3]},(!h||49&l&&o!==(o=e[4]||e[0].length>=e[5]))&&{disabled:o},32768&l&&e[15]])),P(n,"svelte-11deuuc",!0),S?S.p&&(!h||131264&l)&&$(S,L,e,e[17],l,Ke,Xe):R&&R.p&&131280&l&&R.p(e,l),e[0].length<e[5]?I?(I.p(e,l),33&l&&oe(I,1)):(I=et(e),I.c(),oe(I,1),I.m(a,null)):I&&(te(),le(I,1,1,(()=>{I=null})),ne()),u&&f(u.update)&&49&l&&u.update.call(null,{disabled:e[4]||e[0].length>=e[5]}),64&l&&P(a,"accepting",e[6]),8197&l&&(N=e[0],te(),_=function(e,t,n,o,l,s,r,i,c,a,u,d){let f=e.length,p=s.length,m=f;const g={};for(;m--;)g[e[m].key]=m;const h=[],$=new Map,y=new Map;for(m=p;m--;){const e=d(l,s,m),i=n(e);let c=r.get(i);c?o&&c.p(e,t):(c=a(i,e),c.c()),$.set(i,h[m]=c),i in g&&y.set(i,Math.abs(m-g[i]))}const v=new Set,b=new Set;function w(e){oe(e,1),e.m(i,u),r.set(e.key,e),u=e.first,p--}for(;f&&p;){const t=h[p-1],n=e[f-1],o=t.key,l=n.key;t===n?(u=t.first,f--,p--):$.has(l)?!r.has(o)||v.has(o)?w(t):b.has(l)?f--:y.get(o)>y.get(l)?(b.add(o),w(t)):(v.add(l),f--):(c(n,r),f--)}for(;f--;){const t=e[f];$.has(t.key)||c(t,r)}for(;p;)w(h[p-1]);return h}(_,l,A,1,e,N,C,t,re,tt,null,Se),ne()),(!h||2&l&&m!==(m=v(Te("file-dropzone",e[1]))+" svelte-11deuuc"))&&W(t,"class",m),3&l&&P(t,"has-content",e[0]&&0!==e[0].length),130&l&&P(t,"wrong-type",e[7]),51&l&&P(t,"disabled",e[4]||e[0].length>=e[5])},i(e){if(!h){oe(R,e),oe(I);for(let e=0;e<N.length;e+=1)oe(_[e]);h=!0}},o(e){le(R,e),le(I);for(let e=0;e<_.length;e+=1)le(_[e]);h=!1},d(n){n&&x(t),e[19](null),R&&R.d(n),e[20](null),I&&I.d(),e[21](null);for(let e=0;e<_.length;e+=1)_[e].d();y=!1,d(k)}}}function ot(e,n,o){const l=["class","files","fileComponent","accept","beforeChange","disabled","max"];let s=y(n,l),{$$slots:r={},$$scope:i}=n,{class:a=null}=n;const{FileTile:u}=t;let d,f,p,{files:m=[]}=n,{fileComponent:g=u}=n,{accept:h=null}=n,{beforeChange:$=null}=n,{disabled:v=!1}=n,{max:b=1/0}=n,w=!1,x=!1;const k=N();return e.$$set=e=>{n=c(c({},n),function(e){const t={};for(const n in e)"$"!==n[0]&&(t[n]=e[n]);return t}(e)),o(15,s=y(n,l)),"class"in e&&o(1,a=e.class),"files"in e&&o(0,m=e.files),"fileComponent"in e&&o(2,g=e.fileComponent),"accept"in e&&o(3,h=e.accept),"beforeChange"in e&&o(16,$=e.beforeChange),"disabled"in e&&o(4,v=e.disabled),"max"in e&&o(5,b=e.max),"$$scope"in e&&o(17,i=e.$$scope)},[m,a,g,h,v,b,w,x,d,f,p,function(e){o(7,x=[...e.dataTransfer.items].some((e=>!Pe(h,e))))},async function(e){const t=Array.from((e.dataTransfer||e.target).files);await Promise.all(t.map((async e=>{try{"function"==typeof $&&await $(e)}catch(e){return}Pe(h,e)&&m.length<b&&m.push(e)}))),setTimeout((()=>o(7,x=!1)),1e3),k("change",{files:m,nativeEvent:e}),o(0,m=[]),o(10,p.value="",p),o(6,w=!1)},function({detail:e}){o(0,m=m.filter((t=>t!==e))),k("change",{files:m})},function(e){e.target!=d&&e.target!=f&&e.target!=p&&e.preventDefault()},s,$,i,r,function(e){F[e?"unshift":"push"]((()=>{p=e,o(10,p)}))},function(e){F[e?"unshift":"push"]((()=>{d=e,o(8,d)}))},function(e){F[e?"unshift":"push"]((()=>{f=e,o(9,f)}))},()=>o(6,w=!0),()=>{o(6,w=!1),o(7,x=!1)}]}class lt extends pe{constructor(e){var t;super(),document.getElementById("svelte-11deuuc-style")||((t=z("style")).id="svelte-11deuuc-style",t.textContent=".file-dropzone.svelte-11deuuc.svelte-11deuuc.svelte-11deuuc{border:0.125em dashed currentColor;border-radius:1.5625em;color:#326173;display:block;margin:2em 0 0.5em;position:relative}.file-dropzone.svelte-11deuuc.svelte-11deuuc.svelte-11deuuc:focus-within{border-color:rgba(50, 97, 115, 0.5);border-style:solid}.file-dropzone.disabled.svelte-11deuuc.svelte-11deuuc.svelte-11deuuc{color:#888}.file-dropzone.svelte-11deuuc input.svelte-11deuuc.svelte-11deuuc{clip:rect(0, 0, 0, 0);height:1px;margin:-1px;overflow:hidden;position:absolute;width:1px}.file-dropzone.svelte-11deuuc .icon{stroke:currentColor}.file-dropzone.svelte-11deuuc .empty-layer.svelte-11deuuc.svelte-11deuuc{align-items:center;display:flex;padding:2em 1em;z-index:1}.file-dropzone.svelte-11deuuc .empty-layer .title.svelte-11deuuc.svelte-11deuuc{color:currentColor;flex:1;font-weight:500;margin-left:0.5em;text-align:center}.file-dropzone.svelte-11deuuc .dropzone-layer.svelte-11deuuc.svelte-11deuuc{align-items:center;border-radius:1.5625em;cursor:pointer;display:flex;height:100%;justify-content:flex-end;left:0;position:absolute;top:0;width:100%;z-index:2}.file-dropzone.svelte-11deuuc .dropzone-layer.svelte-11deuuc.svelte-11deuuc:hover{background:rgba(50, 97, 115, 0.025)}.file-dropzone.svelte-11deuuc .dropzone-layer.svelte-11deuuc .ripple{background-color:rgba(50, 97, 115, 0.1)}.file-dropzone.svelte-11deuuc .dropzone-layer.accepting.svelte-11deuuc.svelte-11deuuc{background-color:rgba(50, 97, 115, 0.05)}.file-dropzone.svelte-11deuuc .dropzone-layer.svelte-11deuuc svg{margin-right:1em;opacity:0;pointer-events:none;stroke:currentColor;transition:transform 150ms}.file-dropzone.svelte-11deuuc input.svelte-11deuuc:focus~.dropzone-layer.svelte-11deuuc{background:rgba(50, 97, 115, 0.05)}.file-dropzone.disabled.svelte-11deuuc .dropzone-layer.svelte-11deuuc.svelte-11deuuc{background:none;cursor:not-allowed}.file-dropzone.has-content.svelte-11deuuc.svelte-11deuuc.svelte-11deuuc{display:grid;gap:0.5em;grid-template-columns:repeat(auto-fill, 12em);padding:1em}.file-dropzone.has-content.svelte-11deuuc .empty-layer.svelte-11deuuc.svelte-11deuuc{display:none}.file-dropzone.has-content.svelte-11deuuc .dropzone-layer.svelte-11deuuc svg{opacity:1}.file-dropzone.wrong-type.svelte-11deuuc.svelte-11deuuc.svelte-11deuuc{color:#b80000}.file-dropzone.wrong-type.svelte-11deuuc .dropzone-layer.svelte-11deuuc.svelte-11deuuc:hover{background-color:rgba(184, 0, 0, 0.025)}.file-dropzone.wrong-type.svelte-11deuuc .dropzone-layer.accepting.svelte-11deuuc.svelte-11deuuc{background-color:rgba(184, 0, 0, 0.05)}.file-dropzone.wrong-type.svelte-11deuuc .dropzone-layer.svelte-11deuuc .ripple{background-color:rgba(184, 0, 0, 0.1)}.file-dropzone.wrong-type.svelte-11deuuc .dropzone-layer.svelte-11deuuc svg.plus{transform:rotate(45deg)}",b(document.head,t)),fe(this,e,ot,nt,p,{class:1,files:0,fileComponent:2,accept:3,beforeChange:16,disabled:4,max:5})}}function st(e,t,n){const o=e.slice();return o[51]=t[n],o[53]=n,o}function rt(e,t,n){const o=e.slice();return o[54]=t[n],o[55]=t,o[56]=n,o}function it(e){let t,n,o,l,s,r,i;l=new lt({props:{accept:Lt,max:Dt,$$slots:{"upload-unavailable-message":[dt],"release-to-upload-message":[ut],"incorrect-file-message":[at],"drag-and-drop-message":[ct]},$$scope:{ctx:e}}}),l.$on("change",e[25]);let c=e[6]&&e[6].length>0&&ft(e);return{c(){t=z("div"),n=z("form"),o=z("div"),ce(l.$$.fragment),s=j(),c&&c.c(),r=E(),W(o,"class","document-choose svelte-ifmgly"),W(n,"id","uploadForm"),W(t,"class","form-step svelte-ifmgly")},m(e,a){w(e,t,a),b(t,n),b(n,o),ae(l,o,null),w(e,s,a),c&&c.m(e,a),w(e,r,a),i=!0},p(e,t){const n={};67108864&t[1]&&(n.$$scope={dirty:t,ctx:e}),l.$set(n),e[6]&&e[6].length>0?c?(c.p(e,t),64&t[0]&&oe(c,1)):(c=ft(e),c.c(),oe(c,1),c.m(r.parentNode,r)):c&&(te(),le(c,1,1,(()=>{c=null})),ne())},i(e){i||(oe(l.$$.fragment,e),oe(c),i=!0)},o(e){le(l.$$.fragment,e),le(c),i=!1},d(e){e&&x(t),ue(l),e&&x(s),c&&c.d(e),e&&x(r)}}}function ct(e){let t;return{c(){t=z("div"),t.textContent="Drag & Drop Dokumente oder klicken Sie hier zum Hochladen\n von Dateien",W(t,"slot","drag-and-drop-message")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function at(e){let t;return{c(){t=z("div"),t.textContent="Inkorrektes File Format",W(t,"slot","incorrect-file-message")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function ut(e){let t;return{c(){t=z("div"),t.textContent="Loslassen um hochzuladen",W(t,"slot","release-to-upload-message")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function dt(e){let t;return{c(){t=z("div"),t.textContent="File Upload steht gerade nicht zur Verfügung",W(t,"slot","upload-unavailable-message")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function ft(e){let t,n,o,l,s,r,i=e[6],c=[];for(let t=0;t<i.length;t+=1)c[t]=gt(rt(e,i,t));const a=e=>le(c[e],1,1,(()=>{c[e]=null}));return o=new e[10]({props:{disabled:e[7],filled:!0,style:"color: whitesmoke; display: inline;",type:"submit",$$slots:{default:[ht]},$$scope:{ctx:e}}}),o.$on("click",e[28]),s=new e[10]({props:{small:!0,filled:!0,danger:!0,style:"color: whitesmoke; display: inline;",$$slots:{default:[$t]},$$scope:{ctx:e}}}),s.$on("click",e[29]),{c(){for(let e=0;e<c.length;e+=1)c[e].c();t=j(),n=z("div"),ce(o.$$.fragment),l=j(),ce(s.$$.fragment),W(n,"class","flex gap svelte-ifmgly")},m(e,i){for(let t=0;t<c.length;t+=1)c[t].m(e,i);w(e,t,i),w(e,n,i),ae(o,n,null),b(n,l),ae(s,n,null),r=!0},p(e,n){if(8384&n[0]){let o;for(i=e[6],o=0;o<i.length;o+=1){const l=rt(e,i,o);c[o]?(c[o].p(l,n),oe(c[o],1)):(c[o]=gt(l),c[o].c(),oe(c[o],1),c[o].m(t.parentNode,t))}for(te(),o=i.length;o<c.length;o+=1)a(o);ne()}const l={};128&n[0]&&(l.disabled=e[7]),67108864&n[1]&&(l.$$scope={dirty:n,ctx:e}),o.$set(l);const r={};67108864&n[1]&&(r.$$scope={dirty:n,ctx:e}),s.$set(r)},i(e){if(!r){for(let e=0;e<i.length;e+=1)oe(c[e]);oe(o.$$.fragment,e),oe(s.$$.fragment,e),r=!0}},o(e){c=c.filter(Boolean);for(let e=0;e<c.length;e+=1)le(c[e]);le(o.$$.fragment,e),le(s.$$.fragment,e),r=!1},d(e){k(c,e),e&&x(t),e&&x(n),ue(o),ue(s)}}}function pt(e){let t,n;return t=new Ee({props:{size:"18"}}),{c(){ce(t.$$.fragment)},m(e,o){ae(t,e,o),n=!0},p:i,i(e){n||(oe(t.$$.fragment,e),n=!0)},o(e){le(t.$$.fragment,e),n=!1},d(e){ue(t,e)}}}function mt(e){let t,n;return t=new _e({props:{size:"18"}}),{c(){ce(t.$$.fragment)},m(e,o){ae(t,e,o),n=!0},p:i,i(e){n||(oe(t.$$.fragment,e),n=!0)},o(e){le(t.$$.fragment,e),n=!1},d(e){ue(t,e)}}}function gt(e){let t,n,o,l,s,r,i,c,a,u,d,p,m,g,h,$,y,v,k,_,E,T,M,L=e[54].file.name+"",P=Pt(e[54].file.size)+"";function S(t){e[26](t,e[54])}let R={type:"text",id:"fileTitle_"+e[56],required:!0};return void 0!==e[54].custom_name&&(R.value=e[54].custom_name),g=new e[11]({props:R}),F.push((()=>ie(g,"value",S))),y=new e[10]({props:{disabled:e[7],small:!0,filled:!0,style:"color: whitesmoke; display: inline;",type:"submit",$$slots:{default:[pt]},$$scope:{ctx:e}}}),k=new e[10]({props:{small:!0,filled:!0,danger:!0,style:"color: whitesmoke; display: inline;",$$slots:{default:[mt]},$$scope:{ctx:e}}}),k.$on("click",(function(){return e[27](e[56])})),{c(){t=z("div"),n=z("form"),o=z("div"),l=z("div"),s=C("#"),r=C(e[56]),i=j(),c=z("div"),a=C(L),u=j(),d=z("div"),p=C(P),m=j(),ce(g.$$.fragment),$=j(),ce(y.$$.fragment),v=j(),ce(k.$$.fragment),W(c,"class","word-break svelte-ifmgly"),W(o,"class","container-file svelte-ifmgly"),W(n,"id",_="submitForm_"+e[54].file.name+"_"+e[56]),W(n,"class","svelte-ifmgly"),W(t,"class","form-step svelte-ifmgly")},m(h,x){w(h,t,x),b(t,n),b(n,o),b(o,l),b(l,s),b(l,r),b(o,i),b(o,c),b(c,a),b(o,u),b(o,d),b(d,p),b(o,m),ae(g,o,null),b(o,$),ae(y,o,null),b(o,v),ae(k,o,null),E=!0,T||(M=O(n,"submit",B((function(){f(e[13](e[54],e[56]))&&e[13](e[54],e[56]).apply(this,arguments)}))),T=!0)},p(t,o){e=t,(!E||64&o[0])&&L!==(L=e[54].file.name+"")&&D(a,L),(!E||64&o[0])&&P!==(P=Pt(e[54].file.size)+"")&&D(p,P);const l={};!h&&64&o[0]&&(h=!0,l.value=e[54].custom_name,K((()=>h=!1))),g.$set(l);const s={};128&o[0]&&(s.disabled=e[7]),67108864&o[1]&&(s.$$scope={dirty:o,ctx:e}),y.$set(s);const r={};67108864&o[1]&&(r.$$scope={dirty:o,ctx:e}),k.$set(r),(!E||64&o[0]&&_!==(_="submitForm_"+e[54].file.name+"_"+e[56]))&&W(n,"id",_)},i(e){E||(oe(g.$$.fragment,e),oe(y.$$.fragment,e),oe(k.$$.fragment,e),E=!0)},o(e){le(g.$$.fragment,e),le(y.$$.fragment,e),le(k.$$.fragment,e),E=!1},d(e){e&&x(t),ue(g),ue(y),ue(k),T=!1,M()}}}function ht(e){let t;return{c(){t=C("Alle Dokumente hochladen")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function $t(e){let t;return{c(){t=C("Alle Dokumente entfernen")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function yt(e){return{c:i,m:i,p:i,i:i,o:i,d:i}}function vt(e){let t,n,o,l,s,r,i,c;const a=[wt,bt],u=[];function d(e,t){return 0===e[50].length?0:1}return r=d(e),i=u[r]=a[r](e),{c(){t=z("div"),n=z("table"),o=z("thead"),o.innerHTML='<tr class="svelte-ifmgly"><th class="svelte-ifmgly">#</th> \n <th class="svelte-ifmgly">Datei</th> \n <th class="text_right svelte-ifmgly">Grösse</th> \n <th class="tablehead--action svelte-ifmgly">Aktionen</th></tr>',l=j(),s=z("tbody"),i.c(),W(o,"class","tablehead"),W(n,"class","tableFixHead"),W(t,"class","task_list svelte-ifmgly")},m(e,i){w(e,t,i),b(t,n),b(n,o),b(n,l),b(n,s),u[r].m(s,null),c=!0},p(e,t){let n=r;r=d(e),r===n?u[r].p(e,t):(te(),le(u[n],1,1,(()=>{u[n]=null})),ne(),i=u[r],i?i.p(e,t):(i=u[r]=a[r](e),i.c()),oe(i,1),i.m(s,null))},i(e){c||(oe(i),c=!0)},o(e){le(i),c=!1},d(e){e&&x(t),u[r].d()}}}function bt(e){let t,n,o=e[50],l=[];for(let t=0;t<o.length;t+=1)l[t]=Ct(st(e,o,t));const s=e=>le(l[e],1,1,(()=>{l[e]=null}));return{c(){for(let e=0;e<l.length;e+=1)l[e].c();t=E()},m(e,o){for(let t=0;t<l.length;t+=1)l[t].m(e,o);w(e,t,o),n=!0},p(e,n){if(1654968&n[0]){let r;for(o=e[50],r=0;r<o.length;r+=1){const s=st(e,o,r);l[r]?(l[r].p(s,n),oe(l[r],1)):(l[r]=Ct(s),l[r].c(),oe(l[r],1),l[r].m(t.parentNode,t))}for(te(),r=o.length;r<l.length;r+=1)s(r);ne()}},i(e){if(!n){for(let e=0;e<o.length;e+=1)oe(l[e]);n=!0}},o(e){l=l.filter(Boolean);for(let e=0;e<l.length;e+=1)le(l[e]);n=!1},d(e){k(l,e),e&&x(t)}}}function wt(e){let t;return{c(){t=z("tr"),t.innerHTML='<td colspan="4" style="text-align: center;" class="svelte-ifmgly">Keine Dokumente gefunden</td>',W(t,"class","svelte-ifmgly")},m(e,n){w(e,t,n)},p:i,i:i,o:i,d(e){e&&x(t)}}}function xt(e){let t,n;return t=new he({props:{size:"18"}}),{c(){ce(t.$$.fragment)},m(e,o){ae(t,e,o),n=!0},p:i,i(e){n||(oe(t.$$.fragment,e),n=!0)},o(e){le(t.$$.fragment,e),n=!1},d(e){ue(t,e)}}}function kt(e){let t,n,o,l;return n=new xe({props:{size:"18"}}),{c(){t=z("a"),ce(n.$$.fragment),W(t,"href",o=e[20](e[51])),L(t,"color","whitesmoke")},m(e,o){w(e,t,o),ae(n,t,null),l=!0},p(e,n){(!l||32&n[0]&&o!==(o=e[20](e[51])))&&W(t,"href",o)},i(e){l||(oe(n.$$.fragment,e),l=!0)},o(e){le(n.$$.fragment,e),l=!1},d(e){e&&x(t),ue(n)}}}function zt(e){let t,n;return t=new e[10]({props:{disabled:e[7]&&!e[3],small:!0,filled:!0,danger:!0,style:"color: whitesmoke; display: inline;",$$slots:{default:[_t]},$$scope:{ctx:e}}}),t.$on("click",(function(){return e[31](e[51])})),{c(){ce(t.$$.fragment)},m(e,o){ae(t,e,o),n=!0},p(n,o){e=n;const l={};136&o[0]&&(l.disabled=e[7]&&!e[3]),67108864&o[1]&&(l.$$scope={dirty:o,ctx:e}),t.$set(l)},i(e){n||(oe(t.$$.fragment,e),n=!0)},o(e){le(t.$$.fragment,e),n=!1},d(e){ue(t,e)}}}function _t(e){let t,n;return t=new _e({props:{size:"18"}}),{c(){ce(t.$$.fragment)},m(e,o){ae(t,e,o),n=!0},p:i,i(e){n||(oe(t.$$.fragment,e),n=!0)},o(e){le(t.$$.fragment,e),n=!1},d(e){ue(t,e)}}}function Ct(e){let t,n,o,l,s,r,i,c,a,u,d,f,p,m,g,h,$,y=e[53]+1+"",v=e[51].title+"",k=Pt(e[51].sizeInByte)+"";f=new e[10]({props:{small:!0,filled:!0,style:"display: inline;",disabled:e[19](e[51]),$$slots:{default:[xt]},$$scope:{ctx:e}}}),f.$on("click",(function(){return e[30](e[51])})),m=new e[10]({props:{small:!0,filled:!0,style:"display: inline;",$$slots:{default:[kt]},$$scope:{ctx:e}}});let _=e[51]._task===e[4]&&zt(e);return{c(){t=z("tr"),n=z("td"),o=C(y),l=j(),s=z("td"),r=C(v),i=j(),c=z("td"),a=C(k),u=j(),d=z("td"),ce(f.$$.fragment),p=j(),ce(m.$$.fragment),g=j(),_&&_.c(),h=j(),W(n,"class","svelte-ifmgly"),L(s,"max-width","30em"),W(s,"class","svelte-ifmgly"),W(c,"class","text_right svelte-ifmgly"),W(d,"class","svelte-ifmgly"),W(t,"class","svelte-ifmgly")},m(e,y){w(e,t,y),b(t,n),b(n,o),b(t,l),b(t,s),b(s,r),b(t,i),b(t,c),b(c,a),b(t,u),b(t,d),ae(f,d,null),b(d,p),ae(m,d,null),b(d,g),_&&_.m(d,null),b(t,h),$=!0},p(t,n){e=t,(!$||32&n[0])&&v!==(v=e[51].title+"")&&D(r,v),(!$||32&n[0])&&k!==(k=Pt(e[51].sizeInByte)+"")&&D(a,k);const o={};32&n[0]&&(o.disabled=e[19](e[51])),67108864&n[1]&&(o.$$scope={dirty:n,ctx:e}),f.$set(o);const l={};32&n[0]|67108864&n[1]&&(l.$$scope={dirty:n,ctx:e}),m.$set(l),e[51]._task===e[4]?_?(_.p(e,n),48&n[0]&&oe(_,1)):(_=zt(e),_.c(),oe(_,1),_.m(d,null)):_&&(te(),le(_,1,1,(()=>{_=null})),ne())},i(e){$||(oe(f.$$.fragment,e),oe(m.$$.fragment,e),oe(_),$=!0)},o(e){le(f.$$.fragment,e),le(m.$$.fragment,e),le(_),$=!1},d(e){e&&x(t),ue(f),ue(m),_&&_.d()}}}function jt(e){return{c:i,m:i,p:i,i:i,o:i,d:i}}function Et(e){let t;return{c(){t=C("Abbrechen")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function Ot(e){let t;return{c(){t=C("Löschen")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function Bt(e){let t,n,o,l,s,r,i,c,a,u,d;return c=new e[10]({props:{filled:!0,$$slots:{default:[Et]},$$scope:{ctx:e}}}),c.$on("click",e[32]),u=new e[10]({props:{danger:!0,outline:!0,$$slots:{default:[Ot]},$$scope:{ctx:e}}}),u.$on("click",e[33]),{c(){t=z("p"),n=C("Willst du das Dokument "),o=z("b"),l=C(e[2]),s=C(" wirklich löschen?"),r=j(),i=z("div"),ce(c.$$.fragment),a=j(),ce(u.$$.fragment),W(i,"class","flex_div svelte-ifmgly")},m(e,f){w(e,t,f),b(t,n),b(t,o),b(o,l),b(t,s),w(e,r,f),w(e,i,f),ae(c,i,null),b(i,a),ae(u,i,null),d=!0},p(e,t){(!d||4&t[0])&&D(l,e[2]);const n={};67108864&t[1]&&(n.$$scope={dirty:t,ctx:e}),c.$set(n);const o={};67108864&t[1]&&(o.$$scope={dirty:t,ctx:e}),u.$set(o)},i(e){d||(oe(c.$$.fragment,e),oe(u.$$.fragment,e),d=!0)},o(e){le(c.$$.fragment,e),le(u.$$.fragment,e),d=!1},d(e){e&&x(t),e&&x(r),e&&x(i),ue(c),ue(u)}}}function Tt(e){let t,n,o;return n=new ve({props:{size:"25"}}),{c(){t=z("div"),ce(n.$$.fragment),W(t,"slot","title-icon")},m(e,l){w(e,t,l),ae(n,t,null),o=!0},p:i,i(e){o||(oe(n.$$.fragment,e),o=!0)},o(e){le(n.$$.fragment,e),o=!1},d(e){e&&x(t),ue(n)}}}function Wt(e){let t,n;return t=new e[9]({props:{title:"Bestätigung",closeCallback:e[49],danger:!0,$$slots:{"title-icon":[Tt],default:[Bt]},$$scope:{ctx:e}}}),{c(){ce(t.$$.fragment)},m(e,o){ae(t,e,o),n=!0},p(e,n){const o={};262144&n[1]&&(o.closeCallback=e[49]),4&n[0]|67108864&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i(e){n||(oe(t.$$.fragment,e),n=!0)},o(e){le(t.$$.fragment,e),n=!1},d(e){ue(t,e)}}}function Mt(e){let t,n,o,l,s,r,i=!e[0]&&it(e),c={ctx:e,current:null,token:null,hasCatch:!1,pending:jt,then:vt,catch:yt,value:50,blocks:[,,,]};function a(t){e[34](t)}se(n=e[5],c);let u={$$slots:{default:[Wt,({closeCallback:e})=>({49:e}),({closeCallback:e})=>[0,e?262144:0]]},$$scope:{ctx:e}};return void 0!==e[1]&&(u.open=e[1]),l=new e[8]({props:u}),F.push((()=>ie(l,"open",a))),{c(){i&&i.c(),t=j(),c.block.c(),o=j(),ce(l.$$.fragment)},m(e,n){i&&i.m(e,n),w(e,t,n),c.block.m(e,c.anchor=n),c.mount=()=>o.parentNode,c.anchor=o,w(e,o,n),ae(l,e,n),r=!0},p(o,r){(e=o)[0]?i&&(te(),le(i,1,1,(()=>{i=null})),ne()):i?(i.p(e,r),1&r[0]&&oe(i,1)):(i=it(e),i.c(),oe(i,1),i.m(t.parentNode,t)),c.ctx=e,32&r[0]&&n!==(n=e[5])&&se(n,c)||function(e,t,n){const o=t.slice(),{resolved:l}=e;e.current===e.then&&(o[e.value]=l),e.current===e.catch&&(o[e.error]=l),e.block.p(o,n)}(c,e,r);const a={};4&r[0]|67371008&r[1]&&(a.$$scope={dirty:r,ctx:e}),!s&&2&r[0]&&(s=!0,a.open=e[1],K((()=>s=!1))),l.$set(a)},i(e){r||(oe(i),oe(c.block),oe(l.$$.fragment,e),r=!0)},o(e){le(i);for(let e=0;e<3;e+=1){le(c.blocks[e])}le(l.$$.fragment,e),r=!1},d(e){i&&i.d(e),e&&x(t),c.block.d(e),c.token=null,c=null,e&&x(o),ue(l,e)}}}const Dt=5;let Lt="text/plain,text/csv,image/*,.pdf,.csv,application/pdf,application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,.ppt,pptx,.doc,.docx,.xml,.json,application/json,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,vnd.ms-3mfdocument,application/octet-stream,application/object,.obj,.step,.stp";function Pt(e){if(e>=1073741824)e=Math.round(e/1073741824*100)/100+" GB";else if(e>=1048576){e=Math.round(e/1048576*100)/100+" MB"}else if(e>=1024){e=Math.round(e/1024*100)/100+" KB"}else e>1?e+=" bytes":1==e?e+=" byte":e="0 bytes";return e}function St(e,i,c){let a,u,d;m(e,s,(e=>c(23,u=e))),m(e,r,(e=>c(24,d=e)));const{Modal:f,Dialog:p,Button:g,TextField:h}=t;let $,y,v,b,{task:w}=i,x=!1,k="",z=[],_=w.task?.readonly,C=[];const j=w.eventSchema.list?.filter((e=>e.report)).concat(w.eventSchema.items?.filter((e=>e.report)));function E(e){e.forEach((e=>C.push({file:e,custom_name:e.name}))),c(6,C)}const O=async()=>{c(3,y=!!(await o.getUserSettings()).isAdmin);const e=await w;c(22,b=await o.getSchema(e.event)),c(4,v=e.task.id);const t=await o.getUserReports(v);if(j?.length){const n=await o.getTask(e.eventSchema.class,e.docId);for(const e of j){const l=e.name,s=[].concat(n[l]);for(let e of s)if("object"!=typeof e&&(e={[l]:e}),e[l]){const n=(await o.getTaskByDocId(e[l]))._id,s=await o.getUserReports(n);t.push(...s)}}}return t};async function B(e,t,n=!1){if(!e)return;if(t){if(!e.name)return}else t=e.name;const s=new FormData;s.append("title",t),s.append("file",e),await o.uploadUserReport(v,s),n||l.success("Datei erfolgreich gespeichert.",2e3)}z=O();const T=(e,t)=>{c(1,x=!0),c(2,k=t),$=e},W=()=>{c(1,x=!1),$="",c(2,k="")},M=e=>{const t="/api/userreport/"+e._id;let n="/viewer/3d/",o=800,l=600;if(S(e)){n="/viewer/doc/";const t=R(e);o=t.width,l=t.height}let s=n+"index.html?file="+t+"&type="+I(e);window.open(s,"",`popup=yes toolbar=no width=${o} height=${l}`)};async function D(){await o.deleteUserReport($).then((()=>{c(1,x=!1),$=""})),l.success("Datei erfolgreich gelöscht",2e3)}async function L(){await Promise.all(C.map((async(e,t)=>{await B(e.file,e.custom_name,!0)}))),l.success("Dateien erfolgreich gespeichert",2e3),c(6,C=[])}n.subscribe((e=>{e&&e.taskId===v&&c(5,z=O())}));const P=e=>"model/obj"===e.contentType||"application/octet-stream"===e.contentType,S=e=>["doc","docx","xls","xlsx","ppt","pptx","pdf","jpg","png","svg"].includes(I(e)),R=e=>{const t={width:624,height:900},n=I(e);return["ppt","pptx","xls","xlsx"].includes(n)&&(t.width=1e3,t.height=600),["jpg","png","svg"].includes(n)&&(t.width=600,t.height=600),t},I=e=>e.fileName.split(".").slice(-1)[0];return e.$$set=e=>{"task"in e&&c(21,w=e.task)},e.$$.update=()=>{if(31457281&e.$$.dirty[0]&&b&&w.task&&u&&d.role?.length&&b.authorization?.length){const e=b.authorization.some((e=>u?.find((t=>t===e.role&&"edit"===e.activity))));c(0,_||=!e)}1&e.$$.dirty[0]&&c(7,a=_)},[_,x,k,y,v,z,C,a,f,p,g,h,E,function(e,t){var n;e.file&&e&&(B(e.file,e.custom_name),n=t,C.splice(n,1),c(6,C=[...C]))},T,W,M,D,L,e=>!(P(e)||S(e)),e=>`/api/userreport/${e._id}?h=${window.location.hostname}`,w,b,u,d,e=>E(e.detail.files),function(t,n){e.$$.not_equal(n.custom_name,t)&&(n.custom_name=t,c(6,C))},e=>{C.splice(e,1),c(6,C=[...C])},()=>{L()},()=>c(6,C=[]),e=>M(e),e=>T(e._id,e.title),()=>W(),()=>D(),function(e){x=e,c(1,x)}]}class Rt extends pe{constructor(e){var t;super(),document.getElementById("svelte-ifmgly-style")||((t=z("style")).id="svelte-ifmgly-style",t.textContent=".form-step.svelte-ifmgly.svelte-ifmgly{margin-bottom:1em}.form-step.svelte-ifmgly .document-choose.svelte-ifmgly{margin:1em}.form-step.svelte-ifmgly .btn-document{width:300px;text-align:center}.form-step.svelte-ifmgly .btn-document div{margin-inline:auto}.form-step.svelte-ifmgly .btn-document-primary{color:#fff}.form-step.svelte-ifmgly .btn-document-secondary{background-color:#91BDD9}.form-step.svelte-ifmgly .container-file.svelte-ifmgly{display:grid;padding:0 1em;gap:1em;grid-template-columns:50px 218px 80px 1fr 50px 50px;align-items:center}.form-step.svelte-ifmgly .word-break.svelte-ifmgly{word-break:break-all}.gap.svelte-ifmgly.svelte-ifmgly{gap:1em}.task_list.svelte-ifmgly.svelte-ifmgly{flex:auto;overflow-y:scroll;overflow-x:hidden;width:99%;height:30em;border:1px solid #ccc;border-radius:0.5em;margin-top:2em}.task_list.svelte-ifmgly th.svelte-ifmgly{padding:0.8em}.task_list.svelte-ifmgly td.svelte-ifmgly{padding:0.8em}.task_list.svelte-ifmgly tr.svelte-ifmgly:nth-child(2n){background-color:#f8f8fe}.flex_div.svelte-ifmgly.svelte-ifmgly{display:flex;margin-top:1em;justify-content:space-between}.task_list.svelte-ifmgly td.svelte-ifmgly{vertical-align:middle}.tablehead--action.svelte-ifmgly.svelte-ifmgly{width:13em}#nameOfFile.svelte-ifmgly.svelte-ifmgly{width:15em;margin-top:6px;overflow-wrap:anywhere}#sizeOfFile.svelte-ifmgly.svelte-ifmgly{margin-top:3px;font-style:italic}td.text_right.svelte-ifmgly.svelte-ifmgly,th.text_right.svelte-ifmgly.svelte-ifmgly{padding-right:1em}",b(document.head,t)),fe(this,e,St,Mt,p,{task:21},[-1,-1])}}function It(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nt,At,Ft=(Nt=function(e,t){function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function o(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?n(Object(o),!0).forEach((function(t){l(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("object"!==s(e))throw new Error("single-spa-svelte requires a configuration object");var t=o(o({},r),e);if(!t.component)throw new Error("single-spa-svelte must be passed opts.component");var n={};return{bootstrap:i.bind(null,t,n),mount:c.bind(null,t,n),unmount:a.bind(null,t,n),update:u.bind(null,t,n)}};var r={component:null,domElementGetter:null,props:{}};function i(e){return Promise.resolve()}function c(e,t,n){var l=Object.keys(r),s=Object.keys(e).reduce((function(t,n){return l.includes(n)||(t[n]=e[n]),t}),{});return Promise.resolve().then((function(){var l=function(e,t){return(t=t&&t.customProps?t.customProps:t).domElement?function(){return t.domElement}:t.domElementGetter?function(){return t.domElementGetter(t)}:e.domElementGetter?function(){return e.domElementGetter(t)}:function(e){var t=e.appName||e.name;if(!t)throw Error("single-spa-svelte was not given an application name as a prop, so it can't make a unique dom element container for the svelte application");var n="single-spa-application:".concat(t);return function(){var e=document.getElementById(n);return e||((e=document.createElement("div")).id=n,document.body.appendChild(e)),e}}(t)}(e,n),r=l();t.instance=new e.component(o(o({},s),{},{target:r,props:Object.assign({},n,e.props)}))}))}function a(e,t){return Promise.resolve().then((function(){t.instance.$destroy?t.instance.$destroy():t.instance.destroy()}))}function u(e,t,n){return Promise.resolve().then((function(){t.instance.$set?t.instance.$set(n):t.instance.set(n)}))}},Nt(At={exports:{}},At.exports),At.exports);const Ht=It(Ft)({component:Rt,domElementGetter:()=>document.getElementById("detail-app")}),{bootstrap:Gt,mount:qt,unmount:Ut}=Ht;e({bootstrap:Gt,mount:qt,unmount:Ut});e("Report",Rt)}}}));
|