@enablerr-ui/report 0.2.71 → 0.2.73

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 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.71");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 E(){return C(" ")}function j(){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 W(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function T(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function L(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]:T(e,o,t[o])}function M(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function D(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"),T(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"),T(o,"points","12 15 17 21 7 21 12 15"),T(t,"xmlns","http://www.w3.org/2000/svg"),T(t,"width",e[0]),T(t,"height",e[0]),T(t,"fill","none"),T(t,"viewBox","0 0 24 24"),T(t,"stroke","currentColor"),T(t,"stroke-width",e[1]),T(t,"stroke-linecap","round"),T(t,"stroke-linejoin","round"),T(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&&T(t,"width",e[0]),1&n&&T(t,"height",e[0]),2&n&&T(t,"stroke-width",e[1]),4&n&&l!==(l="feather feather-airplay "+e[2])&&T(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"),T(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"),T(o,"x1","12"),T(o,"y1","9"),T(o,"x2","12"),T(o,"y2","13"),T(l,"x1","12"),T(l,"y1","17"),T(l,"x2","12.01"),T(l,"y2","17"),T(t,"xmlns","http://www.w3.org/2000/svg"),T(t,"width",e[0]),T(t,"height",e[0]),T(t,"fill","none"),T(t,"viewBox","0 0 24 24"),T(t,"stroke","currentColor"),T(t,"stroke-width",e[1]),T(t,"stroke-linecap","round"),T(t,"stroke-linejoin","round"),T(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&&T(t,"width",e[0]),1&n&&T(t,"height",e[0]),2&n&&T(t,"stroke-width",e[1]),4&n&&r!==(r="feather feather-alert-triangle "+e[2])&&T(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"),T(n,"d","M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"),T(o,"points","7 10 12 15 17 10"),T(l,"x1","12"),T(l,"y1","15"),T(l,"x2","12"),T(l,"y2","3"),T(t,"xmlns","http://www.w3.org/2000/svg"),T(t,"width",e[0]),T(t,"height",e[0]),T(t,"fill","none"),T(t,"viewBox","0 0 24 24"),T(t,"stroke","currentColor"),T(t,"stroke-width",e[1]),T(t,"stroke-linecap","round"),T(t,"stroke-linejoin","round"),T(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&&T(t,"width",e[0]),1&n&&T(t,"height",e[0]),2&n&&T(t,"stroke-width",e[1]),4&n&&r!==(r="feather feather-download "+e[2])&&T(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"),T(n,"points","3 6 5 6 21 6"),T(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"),T(t,"xmlns","http://www.w3.org/2000/svg"),T(t,"width",e[0]),T(t,"height",e[0]),T(t,"fill","none"),T(t,"viewBox","0 0 24 24"),T(t,"stroke","currentColor"),T(t,"stroke-width",e[1]),T(t,"stroke-linecap","round"),T(t,"stroke-linejoin","round"),T(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&&T(t,"width",e[0]),1&n&&T(t,"height",e[0]),2&n&&T(t,"stroke-width",e[1]),4&n&&l!==(l="feather feather-trash "+e[2])&&T(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"),T(n,"d","M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"),T(o,"points","17 8 12 3 7 8"),T(l,"x1","12"),T(l,"y1","3"),T(l,"x2","12"),T(l,"y2","15"),T(t,"xmlns","http://www.w3.org/2000/svg"),T(t,"width",e[0]),T(t,"height",e[0]),T(t,"fill","none"),T(t,"viewBox","0 0 24 24"),T(t,"stroke","currentColor"),T(t,"stroke-width",e[1]),T(t,"stroke-linecap","round"),T(t,"stroke-linejoin","round"),T(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&&T(t,"width",e[0]),1&n&&T(t,"height",e[0]),2&n&&T(t,"stroke-width",e[1]),4&n&&r!==(r="feather feather-upload "+e[2])&&T(t,"class",r)},i:i,o:i,d(e){e&&x(t)}}}function Ee(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 je extends pe{constructor(e){super(),fe(this,e,Ee,Ce,p,{size:0,strokeWidth:1,class:2})}}function Oe(e){let t,n;return{c(){t=_("svg"),n=_("path"),T(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"),T(t,"xmlns","http://www.w3.org/2000/svg"),T(t,"width","24"),T(t,"height","24"),T(t,"viewBox","0 0 24 24"),T(t,"fill","none"),T(t,"stroke","currentColor"),T(t,"stroke-width","2"),T(t,"stroke-linecap","round"),T(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 We(...e){return e.filter(e=>!!e).join(" ")}function Te(e){let t,n,o,l;return{c(){t=_("svg"),n=_("line"),o=_("line"),T(n,"x1","12"),T(n,"y1","5"),T(n,"x2","12"),T(n,"y2","19"),T(o,"x1","5"),T(o,"y1","12"),T(o,"x2","19"),T(o,"y2","12"),T(t,"xmlns","http://www.w3.org/2000/svg"),T(t,"width","24"),T(t,"height","24"),T(t,"viewBox","0 0 24 24"),T(t,"fill","none"),T(t,"stroke","currentColor"),T(t,"stroke-width","2"),T(t,"stroke-linecap","round"),T(t,"stroke-linejoin","round"),T(t,"class",l=We(e[0]))},m(e,l){w(e,t,l),b(t,n),b(t,o)},p(e,[n]){1&n&&l!==(l=We(e[0]))&&T(t,"class",l)},i:i,o:i,d(e){e&&x(t)}}}function Le(e,t,n){let{class:o=null}=t;return e.$$set=e=>{"class"in e&&n(0,o=e.class)},[o]}class Me extends pe{constructor(e){super(),fe(this,e,Le,Te,p,{class:0})}}function De(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 Me({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=j(),o&&ce(o.$$.fragment),l=j(),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,j=[{type:"file"},{multiple:!0},{accept:e[3]},{disabled:o=e[4]||e[0].length>=e[5]},e[15]],M={};for(let e=0;e<j.length;e+=1)M=c(M,j[e]);const D=e[18]["empty-layer"],S=g(D,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=E(),o=z("div"),r.c(),T(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=E(),r=z("div"),R&&R.c(),s=E(),a=z("div"),I&&I.c(),p=E();for(let e=0;e<_.length;e+=1)_[e].c();L(n,M),P(n,"svelte-11deuuc",!0),T(r,"class","empty-layer svelte-11deuuc"),T(a,"class","dropzone-layer svelte-11deuuc"),P(a,"accepting",e[6]),T(t,"class",m=v(We("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",W(B(e[11]))),O(a,"dragenter",e[22]),O(a,"dragleave",e[23]),O(a,"drop",W(B(e[12]))),(d=u=De.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]){L(n,M=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}(j,[{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,D,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(We("file-dropzone",e[1]))+" svelte-11deuuc"))&&T(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:Dt,max:Mt,$$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[7]&&e[7].length>0&&ft(e);return{c(){t=z("div"),n=z("form"),o=z("div"),ce(l.$$.fragment),r=E(),c&&c.c(),s=j(),T(o,"class","document-choose svelte-ifmgly"),T(n,"id","uploadForm"),T(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[7]&&e[7].length>0?c?(c.p(e,t),128&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",T(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",T(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",T(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",T(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[7],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[11]({props:{disabled:e[8],filled:!0,style:"color: whitesmoke; display: inline;",type:"submit",$$slots:{default:[ht]},$$scope:{ctx:e}}}),o.$on("click",e[28]),r=new e[11]({props:{small:!0,filled:!0,danger:!0,style:"color: whitesmoke; display: inline;",$$slots:{default:[$t]},$$scope:{ctx:e}}}),r.$on("click",e[29]),{c(){for(let e=0;e<c.length;e+=1)c[e].c();t=E(),n=z("div"),ce(o.$$.fragment),l=E(),ce(r.$$.fragment),T(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(16768&n[0]){let o;for(i=e[7],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={};256&n[0]&&(l.disabled=e[8]),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 je({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,_,j,W,L,D=e[53].file.name+"",P=Pt(e[53].file.size)+"";function S(t){e[26](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[12]({props:R}),F.push(()=>ie(g,"value",S)),y=new e[11]({props:{disabled:e[8],small:!0,filled:!0,style:"color: whitesmoke; display: inline;",type:"submit",$$slots:{default:[pt]},$$scope:{ctx:e}}}),k=new e[11]({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[55])}),{c(){t=z("div"),n=z("form"),o=z("div"),l=z("div"),r=C("#"),s=C(e[55]),i=E(),c=z("div"),a=C(D),u=E(),d=z("div"),p=C(P),m=E(),ce(g.$$.fragment),$=E(),ce(y.$$.fragment),v=E(),ce(k.$$.fragment),T(c,"class","word-break svelte-ifmgly"),T(o,"class","container-file svelte-ifmgly"),T(n,"id",_="submitForm_"+e[53].file.name+"_"+e[55]),T(n,"class","svelte-ifmgly"),T(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),j=!0,W||(L=O(n,"submit",B(function(){f(e[14](e[53],e[55]))&&e[14](e[53],e[55]).apply(this,arguments)})),W=!0)},p(t,o){e=t,(!j||128&o[0])&&D!==(D=e[53].file.name+"")&&M(a,D),(!j||128&o[0])&&P!==(P=Pt(e[53].file.size)+"")&&M(p,P);const l={};!h&&128&o[0]&&(h=!0,l.value=e[53].custom_name,K(()=>h=!1)),g.$set(l);const r={};256&o[0]&&(r.disabled=e[8]),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),(!j||128&o[0]&&_!==(_="submitForm_"+e[53].file.name+"_"+e[55]))&&T(n,"id",_)},i(e){j||(oe(g.$$.fragment,e),oe(y.$$.fragment,e),oe(k.$$.fragment,e),j=!0)},o(e){le(g.$$.fragment,e),le(y.$$.fragment,e),le(k.$$.fragment,e),j=!1},d(e){e&&x(t),ue(g),ue(y),ue(k),W=!1,L()}}}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=E(),r=z("tbody"),i.c(),T(o,"class","tablehead"),T(n,"class","tableFixHead"),T(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=j()},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(3309937&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>',T(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),T(t,"href",o=e[21](e[50])),D(t,"color","whitesmoke")},m(e,o){w(e,t,o),ae(n,t,null),l=!0},p(e,n){(!l||64&n[0]&&o!==(o=e[21](e[50])))&&T(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[11]({props:{disabled:e[8]&&!e[4]||"Storno"===e[0].status,small:!0,filled:!0,danger:!0,style:"color: whitesmoke; display: inline;; z-index: 10000 !important;",$$slots:{default:[_t]},$$scope:{ctx:e}}}),t.$on("click",function(){return e[31](e[50])}),{c(){ce(t.$$.fragment)},m(e,o){ae(t,e,o),n=!0},p(n,o){e=n;const l={};273&o[0]&&(l.disabled=e[8]&&!e[4]||"Storno"===e[0].status),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[11]({props:{small:!0,filled:!0,style:"display: inline; z-index: 10000 !important;",disabled:e[20](e[50]),$$slots:{default:[xt]},$$scope:{ctx:e}}}),f.$on("click",function(){return e[30](e[50])}),m=new e[11]({props:{small:!0,filled:!0,style:"display: inline;; z-index: 10000 !important;",$$slots:{default:[kt]},$$scope:{ctx:e}}});let _=e[50]._task===e[5]&&zt(e);return{c(){t=z("tr"),n=z("td"),o=C(y),l=E(),r=z("td"),s=C(v),i=E(),c=z("td"),a=C(k),u=E(),d=z("td"),ce(f.$$.fragment),p=E(),ce(m.$$.fragment),g=E(),_&&_.c(),h=E(),T(n,"class","svelte-ifmgly"),D(r,"max-width","30em"),T(r,"class","svelte-ifmgly"),T(c,"class","text_right svelte-ifmgly"),T(d,"class","svelte-ifmgly"),T(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,(!$||64&n[0])&&v!==(v=e[50].title+"")&&M(s,v),(!$||64&n[0])&&k!==(k=Pt(e[50].sizeInByte)+"")&&M(a,k);const o={};64&n[0]&&(o.disabled=e[20](e[50])),33554432&n[1]&&(o.$$scope={dirty:n,ctx:e}),f.$set(o);const l={};64&n[0]|33554432&n[1]&&(l.$$scope={dirty:n,ctx:e}),m.$set(l),e[50]._task===e[5]?_?(_.p(e,n),96&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 Et(e){return{c:i,m:i,p:i,i:i,o:i,d:i}}function jt(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[11]({props:{filled:!0,$$slots:{default:[jt]},$$scope:{ctx:e}}}),c.$on("click",e[32]),u=new e[11]({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[3]),r=C(" wirklich löschen?"),s=E(),i=z("div"),ce(c.$$.fragment),a=E(),ce(u.$$.fragment),T(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||8&t[0])&&M(l,e[3]);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 Wt(e){let t,n,o;return n=new ve({props:{size:"25"}}),{c(){t=z("div"),ce(n.$$.fragment),T(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 Tt(e){let t,n;return t=new e[10]({props:{title:"Bestätigung",closeCallback:e[48],danger:!0,$$slots:{"title-icon":[Wt],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]),8&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 Lt(e){let t,n,o,l,r,s,i=!e[1]&&it(e),c={ctx:e,current:null,token:null,hasCatch:!1,pending:Et,then:vt,catch:yt,value:49,blocks:[,,,]};function a(t){e[34](t)}re(n=e[6],c);let u={$$slots:{default:[Tt,({closeCallback:e})=>({48:e}),({closeCallback:e})=>[0,e?131072:0]]},$$scope:{ctx:e}};return void 0!==e[2]&&(u.open=e[2]),l=new e[9]({props:u}),F.push(()=>ie(l,"open",a)),{c(){i&&i.c(),t=E(),c.block.c(),o=E(),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)[1]?i&&(te(),le(i,1,1,()=>{i=null}),ne()):i?(i.p(e,s),2&s[0]&&oe(i,1)):(i=it(e),i.c(),oe(i,1),i.m(t.parentNode,t)),c.ctx=e,64&s[0]&&n!==(n=e[6])&&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={};8&s[0]|33685504&s[1]&&(a.$$scope={dirty:s,ctx:e}),!r&&4&s[0]&&(r=!0,a.open=e[2],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 Mt=5;let Dt="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(23,u=e)),m(e,s,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=[];function E(e){e.forEach(e=>C.push({file:e,custom_name:e.name})),c(7,C)}const j=async()=>{c(4,y=!!(await o.getUserSettings()).isAdmin);const e=await w;c(22,b=await o.getSchema(e.event)),c(5,v=e.task.id);return await o.getUserReports(v)};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(v,r),n||l.success("Datei erfolgreich gespeichert.",2e3)}z=j();const B=(e,t)=>{c(2,x=!0),c(3,k=t),$=e},W=()=>{c(2,x=!1),$="",c(3,k="")},T=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?_v=1.00&file="+t+"&type="+R(e);window.open(r,"",`popup=yes toolbar=no width=${o} height=${l}`)};async function L(){await o.deleteUserReport($).then(()=>{c(2,x=!1),$=""}),l.success("Datei erfolgreich gelöscht",2e3)}async function M(){await Promise.all(C.map(async(e,t)=>{await O(e.file,e.custom_name,!0)})),l.success("Dateien erfolgreich gespeichert",2e3),c(7,C=[])}n.subscribe(e=>{e&&e.taskId===v&&c(6,z=j())});const D=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].toLowerCase();return e.$$set=e=>{"task"in e&&c(0,w=e.task)},e.$$.update=()=>{if(29360131&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)),t=b.authorization.some(e=>u?.find(t=>t===e.role&&!0===e.attachmentAlwaysAllowed));c(1,_||=!e),t&&c(1,_=!1)}2&e.$$.dirty[0]&&c(8,a=_)},[w,_,x,k,y,v,z,C,a,f,p,g,h,E,function(e,t){var n;e.file&&e&&(O(e.file,e.custom_name),n=t,C.splice(n,1),c(7,C=[...C]))},B,W,T,L,M,e=>!(D(e)||P(e)),e=>`/api/userreport/${e._id}?h=${window.location.hostname}`,b,u,d,e=>E(e.detail.files),function(t,n){e.$$.not_equal(n.custom_name,t)&&(n.custom_name=t,c(7,C))},e=>{C.splice(e,1),c(7,C=[...C])},()=>{M()},()=>c(7,C=[]),e=>T(e),e=>B(e._id,e.title),()=>W(),()=>L(),function(e){x=e,c(2,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,Lt,p,{task:0},[-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,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.73");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 E(){return C(" ")}function j(){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 W(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function T(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function D(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]:T(e,o,t[o])}function L(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function M(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"),T(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"),T(o,"points","12 15 17 21 7 21 12 15"),T(t,"xmlns","http://www.w3.org/2000/svg"),T(t,"width",e[0]),T(t,"height",e[0]),T(t,"fill","none"),T(t,"viewBox","0 0 24 24"),T(t,"stroke","currentColor"),T(t,"stroke-width",e[1]),T(t,"stroke-linecap","round"),T(t,"stroke-linejoin","round"),T(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&&T(t,"width",e[0]),1&n&&T(t,"height",e[0]),2&n&&T(t,"stroke-width",e[1]),4&n&&l!==(l="feather feather-airplay "+e[2])&&T(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"),T(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"),T(o,"x1","12"),T(o,"y1","9"),T(o,"x2","12"),T(o,"y2","13"),T(l,"x1","12"),T(l,"y1","17"),T(l,"x2","12.01"),T(l,"y2","17"),T(t,"xmlns","http://www.w3.org/2000/svg"),T(t,"width",e[0]),T(t,"height",e[0]),T(t,"fill","none"),T(t,"viewBox","0 0 24 24"),T(t,"stroke","currentColor"),T(t,"stroke-width",e[1]),T(t,"stroke-linecap","round"),T(t,"stroke-linejoin","round"),T(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&&T(t,"width",e[0]),1&n&&T(t,"height",e[0]),2&n&&T(t,"stroke-width",e[1]),4&n&&r!==(r="feather feather-alert-triangle "+e[2])&&T(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"),T(n,"d","M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"),T(o,"points","7 10 12 15 17 10"),T(l,"x1","12"),T(l,"y1","15"),T(l,"x2","12"),T(l,"y2","3"),T(t,"xmlns","http://www.w3.org/2000/svg"),T(t,"width",e[0]),T(t,"height",e[0]),T(t,"fill","none"),T(t,"viewBox","0 0 24 24"),T(t,"stroke","currentColor"),T(t,"stroke-width",e[1]),T(t,"stroke-linecap","round"),T(t,"stroke-linejoin","round"),T(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&&T(t,"width",e[0]),1&n&&T(t,"height",e[0]),2&n&&T(t,"stroke-width",e[1]),4&n&&r!==(r="feather feather-download "+e[2])&&T(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"),T(n,"points","3 6 5 6 21 6"),T(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"),T(t,"xmlns","http://www.w3.org/2000/svg"),T(t,"width",e[0]),T(t,"height",e[0]),T(t,"fill","none"),T(t,"viewBox","0 0 24 24"),T(t,"stroke","currentColor"),T(t,"stroke-width",e[1]),T(t,"stroke-linecap","round"),T(t,"stroke-linejoin","round"),T(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&&T(t,"width",e[0]),1&n&&T(t,"height",e[0]),2&n&&T(t,"stroke-width",e[1]),4&n&&l!==(l="feather feather-trash "+e[2])&&T(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"),T(n,"d","M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"),T(o,"points","17 8 12 3 7 8"),T(l,"x1","12"),T(l,"y1","3"),T(l,"x2","12"),T(l,"y2","15"),T(t,"xmlns","http://www.w3.org/2000/svg"),T(t,"width",e[0]),T(t,"height",e[0]),T(t,"fill","none"),T(t,"viewBox","0 0 24 24"),T(t,"stroke","currentColor"),T(t,"stroke-width",e[1]),T(t,"stroke-linecap","round"),T(t,"stroke-linejoin","round"),T(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&&T(t,"width",e[0]),1&n&&T(t,"height",e[0]),2&n&&T(t,"stroke-width",e[1]),4&n&&r!==(r="feather feather-upload "+e[2])&&T(t,"class",r)},i:i,o:i,d(e){e&&x(t)}}}function Ee(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 je extends pe{constructor(e){super(),fe(this,e,Ee,Ce,p,{size:0,strokeWidth:1,class:2})}}function Oe(e){let t,n;return{c(){t=_("svg"),n=_("path"),T(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"),T(t,"xmlns","http://www.w3.org/2000/svg"),T(t,"width","24"),T(t,"height","24"),T(t,"viewBox","0 0 24 24"),T(t,"fill","none"),T(t,"stroke","currentColor"),T(t,"stroke-width","2"),T(t,"stroke-linecap","round"),T(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 We(...e){return e.filter(e=>!!e).join(" ")}function Te(e){let t,n,o,l;return{c(){t=_("svg"),n=_("line"),o=_("line"),T(n,"x1","12"),T(n,"y1","5"),T(n,"x2","12"),T(n,"y2","19"),T(o,"x1","5"),T(o,"y1","12"),T(o,"x2","19"),T(o,"y2","12"),T(t,"xmlns","http://www.w3.org/2000/svg"),T(t,"width","24"),T(t,"height","24"),T(t,"viewBox","0 0 24 24"),T(t,"fill","none"),T(t,"stroke","currentColor"),T(t,"stroke-width","2"),T(t,"stroke-linecap","round"),T(t,"stroke-linejoin","round"),T(t,"class",l=We(e[0]))},m(e,l){w(e,t,l),b(t,n),b(t,o)},p(e,[n]){1&n&&l!==(l=We(e[0]))&&T(t,"class",l)},i:i,o:i,d(e){e&&x(t)}}}function De(e,t,n){let{class:o=null}=t;return e.$$set=e=>{"class"in e&&n(0,o=e.class)},[o]}class Le extends pe{constructor(e){super(),fe(this,e,De,Te,p,{class:0})}}function Me(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 Le({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=j(),o&&ce(o.$$.fragment),l=j(),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,j=[{type:"file"},{multiple:!0},{accept:e[3]},{disabled:o=e[4]||e[0].length>=e[5]},e[15]],L={};for(let e=0;e<j.length;e+=1)L=c(L,j[e]);const M=e[18]["empty-layer"],S=g(M,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=E(),o=z("div"),r.c(),T(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=E(),r=z("div"),R&&R.c(),s=E(),a=z("div"),I&&I.c(),p=E();for(let e=0;e<_.length;e+=1)_[e].c();D(n,L),P(n,"svelte-11deuuc",!0),T(r,"class","empty-layer svelte-11deuuc"),T(a,"class","dropzone-layer svelte-11deuuc"),P(a,"accepting",e[6]),T(t,"class",m=v(We("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",W(B(e[11]))),O(a,"dragenter",e[22]),O(a,"dragleave",e[23]),O(a,"drop",W(B(e[12]))),(d=u=Me.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]){D(n,L=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}(j,[{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,M,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(We("file-dropzone",e[1]))+" svelte-11deuuc"))&&T(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:Mt,max:Lt,$$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[7]&&e[7].length>0&&ft(e);return{c(){t=z("div"),n=z("form"),o=z("div"),ce(l.$$.fragment),r=E(),c&&c.c(),s=j(),T(o,"class","document-choose svelte-ifmgly"),T(n,"id","uploadForm"),T(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[7]&&e[7].length>0?c?(c.p(e,t),128&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",T(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",T(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",T(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",T(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[7],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[11]({props:{disabled:e[8],filled:!0,style:"color: whitesmoke; display: inline;",type:"submit",$$slots:{default:[ht]},$$scope:{ctx:e}}}),o.$on("click",e[28]),r=new e[11]({props:{small:!0,filled:!0,danger:!0,style:"color: whitesmoke; display: inline;",$$slots:{default:[$t]},$$scope:{ctx:e}}}),r.$on("click",e[29]),{c(){for(let e=0;e<c.length;e+=1)c[e].c();t=E(),n=z("div"),ce(o.$$.fragment),l=E(),ce(r.$$.fragment),T(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(16768&n[0]){let o;for(i=e[7],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={};256&n[0]&&(l.disabled=e[8]),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 je({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,_,j,W,D,M=e[53].file.name+"",P=Pt(e[53].file.size)+"";function S(t){e[26](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[12]({props:R}),F.push(()=>ie(g,"value",S)),y=new e[11]({props:{disabled:e[8],small:!0,filled:!0,style:"color: whitesmoke; display: inline;",type:"submit",$$slots:{default:[pt]},$$scope:{ctx:e}}}),k=new e[11]({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[55])}),{c(){t=z("div"),n=z("form"),o=z("div"),l=z("div"),r=C("#"),s=C(e[55]),i=E(),c=z("div"),a=C(M),u=E(),d=z("div"),p=C(P),m=E(),ce(g.$$.fragment),$=E(),ce(y.$$.fragment),v=E(),ce(k.$$.fragment),T(c,"class","word-break svelte-ifmgly"),T(o,"class","container-file svelte-ifmgly"),T(n,"id",_="submitForm_"+e[53].file.name+"_"+e[55]),T(n,"class","svelte-ifmgly"),T(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),j=!0,W||(D=O(n,"submit",B(function(){f(e[14](e[53],e[55]))&&e[14](e[53],e[55]).apply(this,arguments)})),W=!0)},p(t,o){e=t,(!j||128&o[0])&&M!==(M=e[53].file.name+"")&&L(a,M),(!j||128&o[0])&&P!==(P=Pt(e[53].file.size)+"")&&L(p,P);const l={};!h&&128&o[0]&&(h=!0,l.value=e[53].custom_name,K(()=>h=!1)),g.$set(l);const r={};256&o[0]&&(r.disabled=e[8]),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),(!j||128&o[0]&&_!==(_="submitForm_"+e[53].file.name+"_"+e[55]))&&T(n,"id",_)},i(e){j||(oe(g.$$.fragment,e),oe(y.$$.fragment,e),oe(k.$$.fragment,e),j=!0)},o(e){le(g.$$.fragment,e),le(y.$$.fragment,e),le(k.$$.fragment,e),j=!1},d(e){e&&x(t),ue(g),ue(y),ue(k),W=!1,D()}}}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=E(),r=z("tbody"),i.c(),T(o,"class","tablehead"),T(n,"class","tableFixHead"),T(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=j()},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(3309937&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>',T(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),T(t,"href",o=e[21](e[50])),M(t,"color","whitesmoke")},m(e,o){w(e,t,o),ae(n,t,null),l=!0},p(e,n){(!l||64&n[0]&&o!==(o=e[21](e[50])))&&T(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[11]({props:{disabled:e[8]&&!e[4]||"Storno"===e[0].status,small:!0,filled:!0,danger:!0,style:"color: whitesmoke; display: inline;; z-index: 10000 !important;",$$slots:{default:[_t]},$$scope:{ctx:e}}}),t.$on("click",function(){return e[31](e[50])}),{c(){ce(t.$$.fragment)},m(e,o){ae(t,e,o),n=!0},p(n,o){e=n;const l={};273&o[0]&&(l.disabled=e[8]&&!e[4]||"Storno"===e[0].status),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[11]({props:{small:!0,filled:!0,style:"display: inline; z-index: 10000 !important;",disabled:e[20](e[50]),$$slots:{default:[xt]},$$scope:{ctx:e}}}),f.$on("click",function(){return e[30](e[50])}),m=new e[11]({props:{small:!0,filled:!0,style:"display: inline;; z-index: 10000 !important;",$$slots:{default:[kt]},$$scope:{ctx:e}}});let _=e[50]._task===e[5]&&zt(e);return{c(){t=z("tr"),n=z("td"),o=C(y),l=E(),r=z("td"),s=C(v),i=E(),c=z("td"),a=C(k),u=E(),d=z("td"),ce(f.$$.fragment),p=E(),ce(m.$$.fragment),g=E(),_&&_.c(),h=E(),T(n,"class","svelte-ifmgly"),M(r,"max-width","30em"),T(r,"class","svelte-ifmgly"),T(c,"class","text_right svelte-ifmgly"),T(d,"class","svelte-ifmgly"),T(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,(!$||64&n[0])&&v!==(v=e[50].title+"")&&L(s,v),(!$||64&n[0])&&k!==(k=Pt(e[50].sizeInByte)+"")&&L(a,k);const o={};64&n[0]&&(o.disabled=e[20](e[50])),33554432&n[1]&&(o.$$scope={dirty:n,ctx:e}),f.$set(o);const l={};64&n[0]|33554432&n[1]&&(l.$$scope={dirty:n,ctx:e}),m.$set(l),e[50]._task===e[5]?_?(_.p(e,n),96&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 Et(e){return{c:i,m:i,p:i,i:i,o:i,d:i}}function jt(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[11]({props:{filled:!0,$$slots:{default:[jt]},$$scope:{ctx:e}}}),c.$on("click",e[32]),u=new e[11]({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[3]),r=C(" wirklich löschen?"),s=E(),i=z("div"),ce(c.$$.fragment),a=E(),ce(u.$$.fragment),T(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||8&t[0])&&L(l,e[3]);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 Wt(e){let t,n,o;return n=new ve({props:{size:"25"}}),{c(){t=z("div"),ce(n.$$.fragment),T(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 Tt(e){let t,n;return t=new e[10]({props:{title:"Bestätigung",closeCallback:e[48],danger:!0,$$slots:{"title-icon":[Wt],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]),8&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 Dt(e){let t,n,o,l,r,s,i=!e[1]&&it(e),c={ctx:e,current:null,token:null,hasCatch:!1,pending:Et,then:vt,catch:yt,value:49,blocks:[,,,]};function a(t){e[34](t)}re(n=e[6],c);let u={$$slots:{default:[Tt,({closeCallback:e})=>({48:e}),({closeCallback:e})=>[0,e?131072:0]]},$$scope:{ctx:e}};return void 0!==e[2]&&(u.open=e[2]),l=new e[9]({props:u}),F.push(()=>ie(l,"open",a)),{c(){i&&i.c(),t=E(),c.block.c(),o=E(),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)[1]?i&&(te(),le(i,1,1,()=>{i=null}),ne()):i?(i.p(e,s),2&s[0]&&oe(i,1)):(i=it(e),i.c(),oe(i,1),i.m(t.parentNode,t)),c.ctx=e,64&s[0]&&n!==(n=e[6])&&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={};8&s[0]|33685504&s[1]&&(a.$$scope={dirty:s,ctx:e}),!r&&4&s[0]&&(r=!0,a.open=e[2],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 Lt=5;let Mt="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(23,u=e)),m(e,s,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=[];function E(e){e.forEach(e=>C.push({file:e,custom_name:e.name})),c(7,C)}const j=async()=>{c(4,y=!!(await o.getUserSettings()).isAdmin);const e=await w;c(22,b=await o.getSchema(e.event)),c(5,v=e.task.id);return await o.getUserReports(v)};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(v,r),n||l.success("Datei erfolgreich gespeichert.",2e3)}z=j();const B=(e,t)=>{c(2,x=!0),c(3,k=t),$=e},W=()=>{c(2,x=!1),$="",c(3,k="")},T=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?_v=2.00&file="+t+"&type="+R(e)+"&rand="+Date.now();window.open(r,"",`popup=yes toolbar=no width=${o} height=${l}`)};async function D(){await o.deleteUserReport($).then(()=>{c(2,x=!1),$=""}),l.success("Datei erfolgreich gelöscht",2e3)}async function L(){await Promise.all(C.map(async(e,t)=>{await O(e.file,e.custom_name,!0)})),l.success("Dateien erfolgreich gespeichert",2e3),c(7,C=[])}n.subscribe(e=>{e&&e.taskId===v&&c(6,z=j())});const M=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].toLowerCase();return e.$$set=e=>{"task"in e&&c(0,w=e.task)},e.$$.update=()=>{if(29360131&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)),t=b.authorization.some(e=>u?.find(t=>t===e.role&&!0===e.attachmentAlwaysAllowed));c(1,_||=!e),t&&c(1,_=!1)}2&e.$$.dirty[0]&&c(8,a=_)},[w,_,x,k,y,v,z,C,a,f,p,g,h,E,function(e,t){var n;e.file&&e&&(O(e.file,e.custom_name),n=t,C.splice(n,1),c(7,C=[...C]))},B,W,T,D,L,e=>!(M(e)||P(e)),e=>`/api/userreport/${e._id}?h=${window.location.hostname}&rand=${Date.now()}`,b,u,d,e=>E(e.detail.files),function(t,n){e.$$.not_equal(n.custom_name,t)&&(n.custom_name=t,c(7,C))},e=>{C.splice(e,1),c(7,C=[...C])},()=>{L()},()=>c(7,C=[]),e=>T(e),e=>B(e._id,e.title),()=>W(),()=>D(),function(e){x=e,c(2,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,Dt,p,{task:0},[-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)}}});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@enablerr-ui/report",
3
3
  "description": "enablerr - the Next Enterprise Solution",
4
- "version": "0.2.71",
4
+ "version": "0.2.73",
5
5
  "os": [
6
6
  "darwin",
7
7
  "linux"