@enablerr-ui/report 0.2.58 → 0.2.60
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 +53 -1
- package/package.json +1 -1
package/dist/index.min.js
CHANGED
|
@@ -1 +1,53 @@
|
|
|
1
|
-
System.register(["@enablerr-ui/layout","@enablerr-ui/form"],(function(e){"use strict";var t,n,o,l,r;return{setters:[function(e){t=e.getAttractions},function(e){n=e.attachment_notification,o=e.Request,l=e.currentRoles,r=e.settings}],execute:function(){e("version","0.2.58");function s(){}function i(e,t){for(const n in t)e[n]=t[n];return e}function c(e){return e()}function a(){return Object.create(null)}function u(e){e.forEach(c)}function d(e){return"function"==typeof e}function f(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function p(e,t,n){e.$$.on_destroy.push(function(e,...t){if(null==e)return s;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}(t,n))}function m(e,t,n,o){if(e){const l=g(e,t,n,o);return e[0](l)}}function g(e,t,n,o){return e[1]&&o?i(n.ctx.slice(),e[1](o(t))):n.ctx}function h(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=g(t,n,o,s);e.p(l,i)}}function $(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 y(e){return null==e?"":e}function v(e,t){e.appendChild(t)}function b(e,t,n){e.insertBefore(t,n||null)}function w(e){e.parentNode.removeChild(e)}function x(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function k(e){return document.createElement(e)}function z(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function _(e){return document.createTextNode(e)}function C(){return _(" ")}function j(){return _("")}function E(e,t,n,o){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}function O(e){return function(t){return t.preventDefault(),e.call(this,t)}}function B(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 W(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 L(e,t,n,o){e.style.setProperty(t,n,o?"important":"")}function P(e,t,n){e.classList[n?"add":"remove"](t)}let S;function D(e){S=e}function R(){if(!S)throw new Error("Function called outside component initialization");return S}function I(){const e=R();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 N=[],A=[],F=[],H=[],G=Promise.resolve();let q=!1;function U(e){F.push(e)}function V(e){H.push(e)}let K=!1;const X=new Set;function Y(){if(!K){K=!0;do{for(let e=0;e<N.length;e+=1){const t=N[e];D(t),J(t.$$)}for(D(null),N.length=0;A.length;)A.pop()();for(let e=0;e<F.length;e+=1){const t=F[e];X.has(t)||(X.add(t),t())}F.length=0}while(N.length);for(;H.length;)H.pop()();q=!1,K=!1,X.clear()}}function J(e){if(null!==e.fragment){e.update(),u(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(U)}}const Q=new Set;let Z;function ee(){Z={r:0,c:[],p:Z}}function te(){Z.r||u(Z.c),Z=Z.p}function ne(e,t){e&&e.i&&(Q.delete(e),e.i(t))}function oe(e,t,n,o){if(e&&e.o){if(Q.has(e))return;Q.add(e),Z&&Z.c.push((()=>{Q.delete(e),o&&(n&&e.d(1),o())})),e.o(t)}}function le(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&&(ee(),oe(e,1,1,(()=>{t.blocks[n]===e&&(t.blocks[n]=null)})),te())})):t.block.d(1),i.c(),ne(i,1),i.m(t.mount(),t.anchor),c=!0),t.block=i,t.blocks&&(t.blocks[o]=i),c&&Y()}if((l=e)&&"object"==typeof l&&"function"==typeof l.then){const n=R();if(e.then((e=>{D(n),o(t.then,1,t.value,e),D(null)}),(e=>{if(D(n),o(t.catch,2,t.error,e),D(null),!t.hasCatch)throw e})),t.current!==t.pending)return o(t.pending,0),!0}else{if(t.current!==t.then)return o(t.then,1,t.value,e),!0;t.resolved=e}var l}function re(e,t){oe(e,1,1,(()=>{t.delete(e.key)}))}function se(e,t,n){const o=e.$$.props[t];void 0!==o&&(e.$$.bound[o]=n,n(e.$$.ctx[o]))}function ie(e){e&&e.c()}function ce(e,t,n,o){const{fragment:l,on_mount:r,on_destroy:s,after_update:i}=e.$$;l&&l.m(t,n),o||U((()=>{const t=r.map(c).filter(d);s?s.push(...t):u(t),e.$$.on_mount=[]})),i.forEach(U)}function ae(e,t){const n=e.$$;null!==n.fragment&&(u(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ue(e,t){-1===e.$$.dirty[0]&&(N.push(e),q||(q=!0,G.then(Y)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function de(e,t,n,o,l,r,i=[-1]){const c=S;D(e);const d=e.$$={fragment:null,ctx:null,props:r,update:s,not_equal:l,bound:a(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:t.context||[]),callbacks:a(),dirty:i,skip_bound:!1};let f=!1;if(d.ctx=n?n(e,t.props||{},((t,n,...o)=>{const r=o.length?o[0]:n;return d.ctx&&l(d.ctx[t],d.ctx[t]=r)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](r),f&&ue(e,t)),n})):[],d.update(),f=!0,u(d.before_update),d.fragment=!!o&&o(d.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);d.fragment&&d.fragment.l(e),e.forEach(w)}else d.fragment&&d.fragment.c();t.intro&&ne(e.$$.fragment),ce(e,t.target,t.anchor,t.customElement),Y()}D(c)}class fe{$destroy(){ae(this,1),this.$destroy=s}$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 pe(e){let t,n,o,l;return{c(){t=z("svg"),n=z("path"),o=z("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){b(e,t,l),v(t,n),v(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:s,o:s,d(e){e&&w(t)}}}function me(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 ge extends fe{constructor(e){super(),de(this,e,me,pe,f,{size:0,strokeWidth:1,class:2})}}function he(e){let t,n,o,l,r;return{c(){t=z("svg"),n=z("path"),o=z("line"),l=z("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){b(e,t,r),v(t,n),v(t,o),v(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:s,o:s,d(e){e&&w(t)}}}function $e(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 ye extends fe{constructor(e){super(),de(this,e,$e,he,f,{size:0,strokeWidth:1,class:2})}}function ve(e){let t,n,o,l,r;return{c(){t=z("svg"),n=z("path"),o=z("polyline"),l=z("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){b(e,t,r),v(t,n),v(t,o),v(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:s,o:s,d(e){e&&w(t)}}}function be(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 we extends fe{constructor(e){super(),de(this,e,be,ve,f,{size:0,strokeWidth:1,class:2})}}function xe(e){let t,n,o,l;return{c(){t=z("svg"),n=z("polyline"),o=z("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){b(e,t,l),v(t,n),v(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:s,o:s,d(e){e&&w(t)}}}function ke(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 ze extends fe{constructor(e){super(),de(this,e,ke,xe,f,{size:0,strokeWidth:1,class:2})}}function _e(e){let t,n,o,l,r;return{c(){t=z("svg"),n=z("path"),o=z("polyline"),l=z("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){b(e,t,r),v(t,n),v(t,o),v(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:s,o:s,d(e){e&&w(t)}}}function Ce(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 fe{constructor(e){super(),de(this,e,Ce,_e,f,{size:0,strokeWidth:1,class:2})}}function Ee(e){let t,n;return{c(){t=z("svg"),n=z("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){b(e,t,o),v(t,n)},p:s,i:s,o:s,d(e){e&&w(t)}}}class Oe extends fe{constructor(e){super(),de(this,e,null,Ee,f,{})}}function Be(...e){return e.filter((e=>!!e)).join(" ")}function Te(e){let t,n,o,l;return{c(){t=z("svg"),n=z("line"),o=z("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=Be(e[0]))},m(e,l){b(e,t,l),v(t,n),v(t,o)},p(e,[n]){1&n&&l!==(l=Be(e[0]))&&T(t,"class",l)},i:s,o:s,d(e){e&&w(t)}}}function We(e,t,n){let{class:o=null}=t;return e.$$set=e=>{"class"in e&&n(0,o=e.class)},[o]}class Me extends fe{constructor(e){super(),de(this,e,We,Te,f,{class:0})}}function Le(e,t={}){const n={event:t.event||"click",transition:t.transition||150,zIndex:t.zIndex||"100",bg:t.rippleColor||null,disabled:t.disabled||!1},o=t=>function(e,t,{bg:n,zIndex:o,transition:l}){const r=parseInt(getComputedStyle(t).borderWidth.replace("px","")),s=t.getBoundingClientRect(),i=s.left,c=s.top,a=t.offsetWidth,u=t.offsetHeight,d=e.clientX-i,f=e.clientY-c,p=Math.max(d,a-d),m=Math.max(f,u-f),g=window.getComputedStyle(t),h=Math.sqrt(p*p+m*m),$=r>0?r:0,y=document.createElement("div"),v=document.createElement("div");v.className="ripple-container",y.className="ripple",y.style.marginTop="0px",y.style.marginLeft="0px",y.style.width="1px",y.style.height="1px",y.style.transition=`all ${l}ms cubic-bezier(0.4, 0, 0.2, 1)`,y.style.borderRadius="50%",y.style.pointerEvents="none",y.style.position="relative",y.style.zIndex=o,null!==n&&(y.style.backgroundColor=n);v.style.position="absolute",v.style.left=0-$+"px",v.style.top=0-$+"px",v.style.height="0",v.style.width="0",v.style.pointerEvents="none",v.style.overflow="hidden";const b=t.style.position.length>0?t.style.position:getComputedStyle(t).position;"relative"!==b&&"absolute"!==b&&(t.style.position="relative");function w(){setTimeout((()=>{y.style.backgroundColor="rgba(0, 0, 0, 0)"}),250),setTimeout((()=>{v.parentNode.removeChild(v)}),l+250),setTimeout((()=>{let e=!0;for(let n=0;n<t.childNodes.length;n++)"ripple-container"===t.childNodes[n].className&&(e=!1);e&&(t.style.position="static"!==b?b:"")}),l+250)}v.appendChild(y),t.appendChild(v),y.style.marginLeft=d+"px",y.style.marginTop=f+"px",v.style.width=a+"px",v.style.height=u+"px",v.style.borderTopLeftRadius=g.borderTopLeftRadius,v.style.borderTopRightRadius=g.borderTopRightRadius,v.style.borderBottomLeftRadius=g.borderBottomLeftRadius,v.style.borderBottomRightRadius=g.borderBottomRightRadius,v.style.direction="ltr",setTimeout((()=>{y.style.width=2*h+"px",y.style.height=2*h+"px",y.style.marginLeft=d-h+"px",y.style.marginTop=f-h+"px"}),0),w()}(t,e,n);return n.disabled||e.addEventListener(n.event,o),{destroy(){e.removeEventListener(n.event,o)},update(t={}){t.disabled?e.removeEventListener(n.event,o):e.addEventListener(n.event,o)}}}function Pe(e,t){if(null==e)return!0;return e.split(",").map((e=>e.trim().toLowerCase())).some((e=>function(e,t){if(t.name&&e.startsWith("."))return t.name.toLowerCase().endsWith(e);return function(e,t){if("*"===e||"*/*"===e)return!0;const n=e.split("*");if(1===n.length)return e===t;if(2!==n.length)return!1;return t.startsWith(n[0])&&t.endsWith(n[1])}(e.toLowerCase(),(t.type||"").toLowerCase())}(e,t)))}function Se(e,t,n){const o=e.slice();return o[26]=t[n],o}const De=e=>({}),Re=e=>({}),Ie=e=>({}),Ne=e=>({}),Ae=e=>({}),Fe=e=>({}),He=e=>({}),Ge=e=>({}),qe=e=>({}),Ue=e=>({}),Ve=e=>({wrongType:128&e,dragActive:64&e}),Ke=e=>({wrongType:e[7],dragActive:e[6]});function Xe(e){let t;const n=e[18]["drag-and-drop-message"],o=m(n,e,e[17],Ne),l=o||function(e){let t;return{c(){t=_("drag & drop here or click to upload files")},m(e,n){b(e,t,n)},d(e){e&&w(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)&&h(o,n,e,e[17],l,Ie,Ne)},i(e){t||(ne(l,e),t=!0)},o(e){oe(l,e),t=!1},d(e){l&&l.d(e)}}}function Ye(e){let t;const n=e[18]["release-to-upload-message"],o=m(n,e,e[17],Fe),l=o||function(e){let t;return{c(){t=_("release to upload")},m(e,n){b(e,t,n)},d(e){e&&w(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)&&h(o,n,e,e[17],l,Ae,Fe)},i(e){t||(ne(l,e),t=!0)},o(e){oe(l,e),t=!1},d(e){l&&l.d(e)}}}function Je(e){let t;const n=e[18]["incorrect-file-message"],o=m(n,e,e[17],Ge),l=o||function(e){let t;return{c(){t=_("incorrect file type")},m(e,n){b(e,t,n)},d(e){e&&w(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)&&h(o,n,e,e[17],l,He,Ge)},i(e){t||(ne(l,e),t=!0)},o(e){oe(l,e),t=!1},d(e){l&&l.d(e)}}}function Qe(e){let t;const n=e[18]["upload-unavailable-message"],o=m(n,e,e[17],Ue),l=o||function(e){let t;return{c(){t=_("file upload unavailable")},m(e,n){b(e,t,n)},d(e){e&&w(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)&&h(o,n,e,e[17],l,qe,Ue)},i(e){t||(ne(l,e),t=!0)},o(e){oe(l,e),t=!1},d(e){l&&l.d(e)}}}function Ze(e){let t;const n=e[18]["more-icon"],o=m(n,e,e[17],Re),l=o||function(e){let t,n;return t=new Me({props:{class:"plus"}}),{c(){ie(t.$$.fragment)},m(e,o){ce(t,e,o),n=!0},p:s,i(e){n||(ne(t.$$.fragment,e),n=!0)},o(e){oe(t.$$.fragment,e),n=!1},d(e){ae(t,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)&&h(o,n,e,e[17],l,De,Re)},i(e){t||(ne(l,e),t=!0)},o(e){oe(l,e),t=!1},d(e){l&&l.d(e)}}}function et(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&&ie(o.$$.fragment),l=j(),this.first=n},m(e,t){b(e,n,t),o&&ce(o,e,t),b(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){ee();const e=o;oe(e.$$.fragment,1,0,(()=>{ae(e,1)})),te()}s?(o=new s(i(t)),o.$on("delete",t[13]),ie(o.$$.fragment),ne(o.$$.fragment,1),ce(o,l.parentNode,l)):o=null}else s&&o.$set(r)},i(e){r||(o&&ne(o.$$.fragment,e),r=!0)},o(e){o&&oe(o.$$.fragment,e),r=!1},d(e){e&&w(n),e&&w(l),o&&ae(o,e)}}}function tt(e){let t,n,o,l,r,c,a,f,p,g,$,x,z,_=[],j=new Map,M=[{type:"file"},{multiple:!0},{accept:e[3]},{disabled:o=e[4]||e[0].length>=e[5]},e[15]],L={};for(let e=0;e<M.length;e+=1)L=i(L,M[e]);const S=e[18]["empty-layer"],D=m(S,e,e[17],Ke),R=D||function(e){let t,n,o,l,r,s;t=new Oe({props:{class:"icon"}});const i=[Qe,Je,Ye,Xe],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(){ie(t.$$.fragment),n=C(),o=k("div"),r.c(),T(o,"class","title svelte-11deuuc")},m(e,r){ce(t,e,r),b(e,n,r),b(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):(ee(),oe(c[n],1,1,(()=>{c[n]=null})),te(),r=c[l],r?r.p(e,t):(r=c[l]=i[l](e),r.c()),ne(r,1),r.m(o,null))},i(e){s||(ne(t.$$.fragment,e),ne(r),s=!0)},o(e){oe(t.$$.fragment,e),oe(r),s=!1},d(e){ae(t,e),e&&w(n),e&&w(o),c[l].d()}}}(e);let I=e[0].length<e[5]&&Ze(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);j.set(o,_[t]=et(o,n))}return{c(){t=k("label"),n=k("input"),l=C(),r=k("div"),R&&R.c(),c=C(),a=k("div"),I&&I.c(),p=C();for(let e=0;e<_.length;e+=1)_[e].c();W(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",g=y(Be("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,i){b(o,t,i),v(t,n),e[19](n),v(t,l),v(t,r),R&&R.m(r,null),e[20](r),v(t,c),v(t,a),I&&I.m(a,null),e[21](a),v(t,p);for(let e=0;e<_.length;e+=1)_[e].m(t,null);var u;$=!0,x||(z=[E(n,"change",e[12]),E(a,"dragover",B(O(e[11]))),E(a,"dragenter",e[22]),E(a,"dragleave",e[23]),E(a,"drop",B(O(e[12]))),(u=f=Le.call(null,a,{disabled:e[4]||e[0].length>=e[5]}),u&&d(u.destroy)?u.destroy:s),E(t,"click",e[14])],x=!0)},p(e,[l]){W(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}(M,[{type:"file"},{multiple:!0},(!$||8&l)&&{accept:e[3]},(!$||49&l&&o!==(o=e[4]||e[0].length>=e[5]))&&{disabled:o},32768&l&&e[15]])),P(n,"svelte-11deuuc",!0),D?D.p&&(!$||131264&l)&&h(D,S,e,e[17],l,Ve,Ke):R&&R.p&&131280&l&&R.p(e,l),e[0].length<e[5]?I?(I.p(e,l),33&l&&ne(I,1)):(I=Ze(e),I.c(),ne(I,1),I.m(a,null)):I&&(ee(),oe(I,1,1,(()=>{I=null})),te()),f&&d(f.update)&&49&l&&f.update.call(null,{disabled:e[4]||e[0].length>=e[5]}),64&l&&P(a,"accepting",e[6]),8197&l&&(N=e[0],ee(),_=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){ne(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,j,t,re,et,null,Se),te()),(!$||2&l&&g!==(g=y(Be("file-dropzone",e[1]))+" svelte-11deuuc"))&&T(t,"class",g),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(!$){ne(R,e),ne(I);for(let e=0;e<N.length;e+=1)ne(_[e]);$=!0}},o(e){oe(R,e),oe(I);for(let e=0;e<_.length;e+=1)oe(_[e]);$=!1},d(n){n&&w(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();x=!1,u(z)}}}function nt(e,n,o){const l=["class","files","fileComponent","accept","beforeChange","disabled","max"];let r=$(n,l),{$$slots:s={},$$scope:c}=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:y=null}=n,{disabled:v=!1}=n,{max:b=1/0}=n,w=!1,x=!1;const k=I();return e.$$set=e=>{n=i(i({},n),function(e){const t={};for(const n in e)"$"!==n[0]&&(t[n]=e[n]);return t}(e)),o(15,r=$(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,y=e.beforeChange),"disabled"in e&&o(4,v=e.disabled),"max"in e&&o(5,b=e.max),"$$scope"in e&&o(17,c=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 y&&await y(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,y,c,s,function(e){A[e?"unshift":"push"]((()=>{p=e,o(10,p)}))},function(e){A[e?"unshift":"push"]((()=>{d=e,o(8,d)}))},function(e){A[e?"unshift":"push"]((()=>{f=e,o(9,f)}))},()=>o(6,w=!0),()=>{o(6,w=!1),o(7,x=!1)}]}class ot extends fe{constructor(e){var t;super(),document.getElementById("svelte-11deuuc-style")||((t=k("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)}",v(document.head,t)),de(this,e,nt,tt,f,{class:1,files:0,fileComponent:2,accept:3,beforeChange:16,disabled:4,max:5})}}function lt(e,t,n){const o=e.slice();return o[47]=t[n],o[49]=n,o}function rt(e,t,n){const o=e.slice();return o[50]=t[n],o[51]=t,o[52]=n,o}function st(e){let t,n,o,l,r,s,i;l=new ot({props:{accept:Lt,max:Mt,$$slots:{"upload-unavailable-message":[ut],"release-to-upload-message":[at],"incorrect-file-message":[ct],"drag-and-drop-message":[it]},$$scope:{ctx:e}}}),l.$on("change",e[23]);let c=e[5]&&e[5].length>0&&dt(e);return{c(){t=k("div"),n=k("form"),o=k("div"),ie(l.$$.fragment),r=C(),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){b(e,t,a),v(t,n),v(n,o),ce(l,o,null),b(e,r,a),c&&c.m(e,a),b(e,s,a),i=!0},p(e,t){const n={};4194304&t[1]&&(n.$$scope={dirty:t,ctx:e}),l.$set(n),e[5]&&e[5].length>0?c?(c.p(e,t),32&t[0]&&ne(c,1)):(c=dt(e),c.c(),ne(c,1),c.m(s.parentNode,s)):c&&(ee(),oe(c,1,1,(()=>{c=null})),te())},i(e){i||(ne(l.$$.fragment,e),ne(c),i=!0)},o(e){oe(l.$$.fragment,e),oe(c),i=!1},d(e){e&&w(t),ae(l),e&&w(r),c&&c.d(e),e&&w(s)}}}function it(e){let t;return{c(){t=k("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){b(e,t,n)},d(e){e&&w(t)}}}function ct(e){let t;return{c(){t=k("div"),t.textContent="Inkorrektes File Format",T(t,"slot","incorrect-file-message")},m(e,n){b(e,t,n)},d(e){e&&w(t)}}}function at(e){let t;return{c(){t=k("div"),t.textContent="Loslassen um hochzuladen",T(t,"slot","release-to-upload-message")},m(e,n){b(e,t,n)},d(e){e&&w(t)}}}function ut(e){let t;return{c(){t=k("div"),t.textContent="File Upload steht gerade nicht zur Verfügung",T(t,"slot","upload-unavailable-message")},m(e,n){b(e,t,n)},d(e){e&&w(t)}}}function dt(e){let t,n,o,l,r,s,i=e[5],c=[];for(let t=0;t<i.length;t+=1)c[t]=mt(rt(e,i,t));const a=e=>oe(c[e],1,1,(()=>{c[e]=null}));return o=new e[9]({props:{disabled:e[6],filled:!0,style:"color: whitesmoke; display: inline;",type:"submit",$$slots:{default:[gt]},$$scope:{ctx:e}}}),o.$on("click",e[26]),r=new e[9]({props:{small:!0,filled:!0,danger:!0,style:"color: whitesmoke; display: inline;",$$slots:{default:[ht]},$$scope:{ctx:e}}}),r.$on("click",e[27]),{c(){for(let e=0;e<c.length;e+=1)c[e].c();t=C(),n=k("div"),ie(o.$$.fragment),l=C(),ie(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);b(e,t,i),b(e,n,i),ce(o,n,null),v(n,l),ce(r,n,null),s=!0},p(e,n){if(4192&n[0]){let o;for(i=e[5],o=0;o<i.length;o+=1){const l=rt(e,i,o);c[o]?(c[o].p(l,n),ne(c[o],1)):(c[o]=mt(l),c[o].c(),ne(c[o],1),c[o].m(t.parentNode,t))}for(ee(),o=i.length;o<c.length;o+=1)a(o);te()}const l={};64&n[0]&&(l.disabled=e[6]),4194304&n[1]&&(l.$$scope={dirty:n,ctx:e}),o.$set(l);const s={};4194304&n[1]&&(s.$$scope={dirty:n,ctx:e}),r.$set(s)},i(e){if(!s){for(let e=0;e<i.length;e+=1)ne(c[e]);ne(o.$$.fragment,e),ne(r.$$.fragment,e),s=!0}},o(e){c=c.filter(Boolean);for(let e=0;e<c.length;e+=1)oe(c[e]);oe(o.$$.fragment,e),oe(r.$$.fragment,e),s=!1},d(e){x(c,e),e&&w(t),e&&w(n),ae(o),ae(r)}}}function ft(e){let t,n;return t=new je({props:{size:"18"}}),{c(){ie(t.$$.fragment)},m(e,o){ce(t,e,o),n=!0},p:s,i(e){n||(ne(t.$$.fragment,e),n=!0)},o(e){oe(t.$$.fragment,e),n=!1},d(e){ae(t,e)}}}function pt(e){let t,n;return t=new ze({props:{size:"18"}}),{c(){ie(t.$$.fragment)},m(e,o){ce(t,e,o),n=!0},p:s,i(e){n||(ne(t.$$.fragment,e),n=!0)},o(e){oe(t.$$.fragment,e),n=!1},d(e){ae(t,e)}}}function mt(e){let t,n,o,l,r,s,i,c,a,u,f,p,m,g,h,$,y,x,z,j,B,W,L,P=e[50].file.name+"",S=Pt(e[50].file.size)+"";function D(t){e[24](t,e[50])}let R={type:"text",id:"fileTitle_"+e[52],required:!0};return void 0!==e[50].custom_name&&(R.value=e[50].custom_name),g=new e[10]({props:R}),A.push((()=>se(g,"value",D))),y=new e[9]({props:{disabled:e[6],small:!0,filled:!0,style:"color: whitesmoke; display: inline;",type:"submit",$$slots:{default:[ft]},$$scope:{ctx:e}}}),z=new e[9]({props:{small:!0,filled:!0,danger:!0,style:"color: whitesmoke; display: inline;",$$slots:{default:[pt]},$$scope:{ctx:e}}}),z.$on("click",(function(){return e[25](e[52])})),{c(){t=k("div"),n=k("form"),o=k("div"),l=k("div"),r=_("#"),s=_(e[52]),i=C(),c=k("div"),a=_(P),u=C(),f=k("div"),p=_(S),m=C(),ie(g.$$.fragment),$=C(),ie(y.$$.fragment),x=C(),ie(z.$$.fragment),T(c,"class","word-break svelte-ifmgly"),T(o,"class","container-file svelte-ifmgly"),T(n,"id",j="submitForm_"+e[50].file.name+"_"+e[52]),T(n,"class","svelte-ifmgly"),T(t,"class","form-step svelte-ifmgly")},m(h,w){b(h,t,w),v(t,n),v(n,o),v(o,l),v(l,r),v(l,s),v(o,i),v(o,c),v(c,a),v(o,u),v(o,f),v(f,p),v(o,m),ce(g,o,null),v(o,$),ce(y,o,null),v(o,x),ce(z,o,null),B=!0,W||(L=E(n,"submit",O((function(){d(e[12](e[50],e[52]))&&e[12](e[50],e[52]).apply(this,arguments)}))),W=!0)},p(t,o){e=t,(!B||32&o[0])&&P!==(P=e[50].file.name+"")&&M(a,P),(!B||32&o[0])&&S!==(S=Pt(e[50].file.size)+"")&&M(p,S);const l={};!h&&32&o[0]&&(h=!0,l.value=e[50].custom_name,V((()=>h=!1))),g.$set(l);const r={};64&o[0]&&(r.disabled=e[6]),4194304&o[1]&&(r.$$scope={dirty:o,ctx:e}),y.$set(r);const s={};4194304&o[1]&&(s.$$scope={dirty:o,ctx:e}),z.$set(s),(!B||32&o[0]&&j!==(j="submitForm_"+e[50].file.name+"_"+e[52]))&&T(n,"id",j)},i(e){B||(ne(g.$$.fragment,e),ne(y.$$.fragment,e),ne(z.$$.fragment,e),B=!0)},o(e){oe(g.$$.fragment,e),oe(y.$$.fragment,e),oe(z.$$.fragment,e),B=!1},d(e){e&&w(t),ae(g),ae(y),ae(z),W=!1,L()}}}function gt(e){let t;return{c(){t=_("Alle Dokumente hochladen")},m(e,n){b(e,t,n)},d(e){e&&w(t)}}}function ht(e){let t;return{c(){t=_("Alle Dokumente entfernen")},m(e,n){b(e,t,n)},d(e){e&&w(t)}}}function $t(e){return{c:s,m:s,p:s,i:s,o:s,d:s}}function yt(e){let t,n,o,l,r,s,i,c;const a=[bt,vt],u=[];function d(e,t){return 0===e[46].length?0:1}return s=d(e),i=u[s]=a[s](e),{c(){t=k("div"),n=k("table"),o=k("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=C(),r=k("tbody"),i.c(),T(o,"class","tablehead"),T(n,"class","tableFixHead"),T(t,"class","task_list svelte-ifmgly")},m(e,i){b(e,t,i),v(t,n),v(n,o),v(n,l),v(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):(ee(),oe(u[n],1,1,(()=>{u[n]=null})),te(),i=u[s],i?i.p(e,t):(i=u[s]=a[s](e),i.c()),ne(i,1),i.m(r,null))},i(e){c||(ne(i),c=!0)},o(e){oe(i),c=!1},d(e){e&&w(t),u[s].d()}}}function vt(e){let t,n,o=e[46],l=[];for(let t=0;t<o.length;t+=1)l[t]=_t(lt(e,o,t));const r=e=>oe(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);b(e,t,o),n=!0},p(e,n){if(303192&n[0]){let s;for(o=e[46],s=0;s<o.length;s+=1){const r=lt(e,o,s);l[s]?(l[s].p(r,n),ne(l[s],1)):(l[s]=_t(r),l[s].c(),ne(l[s],1),l[s].m(t.parentNode,t))}for(ee(),s=o.length;s<l.length;s+=1)r(s);te()}},i(e){if(!n){for(let e=0;e<o.length;e+=1)ne(l[e]);n=!0}},o(e){l=l.filter(Boolean);for(let e=0;e<l.length;e+=1)oe(l[e]);n=!1},d(e){x(l,e),e&&w(t)}}}function bt(e){let t;return{c(){t=k("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){b(e,t,n)},p:s,i:s,o:s,d(e){e&&w(t)}}}function wt(e){let t,n;return t=new ge({props:{size:"18"}}),{c(){ie(t.$$.fragment)},m(e,o){ce(t,e,o),n=!0},p:s,i(e){n||(ne(t.$$.fragment,e),n=!0)},o(e){oe(t.$$.fragment,e),n=!1},d(e){ae(t,e)}}}function xt(e){let t,n,o,l;return n=new we({props:{size:"18"}}),{c(){t=k("a"),ie(n.$$.fragment),T(t,"href",o="/api/userreport/"+e[47]._id+"?h="+window.location.hostname),L(t,"color","whitesmoke")},m(e,o){b(e,t,o),ce(n,t,null),l=!0},p(e,n){(!l||16&n[0]&&o!==(o="/api/userreport/"+e[47]._id+"?h="+window.location.hostname))&&T(t,"href",o)},i(e){l||(ne(n.$$.fragment,e),l=!0)},o(e){oe(n.$$.fragment,e),l=!1},d(e){e&&w(t),ae(n)}}}function kt(e){let t,n;return t=new e[9]({props:{disabled:e[6],small:!0,filled:!0,danger:!0,style:"color: whitesmoke; display: inline;",$$slots:{default:[zt]},$$scope:{ctx:e}}}),t.$on("click",(function(){return e[29](e[47])})),{c(){ie(t.$$.fragment)},m(e,o){ce(t,e,o),n=!0},p(n,o){e=n;const l={};64&o[0]&&(l.disabled=e[6]),4194304&o[1]&&(l.$$scope={dirty:o,ctx:e}),t.$set(l)},i(e){n||(ne(t.$$.fragment,e),n=!0)},o(e){oe(t.$$.fragment,e),n=!1},d(e){ae(t,e)}}}function zt(e){let t,n;return t=new ze({props:{size:"18"}}),{c(){ie(t.$$.fragment)},m(e,o){ce(t,e,o),n=!0},p:s,i(e){n||(ne(t.$$.fragment,e),n=!0)},o(e){oe(t.$$.fragment,e),n=!1},d(e){ae(t,e)}}}function _t(e){let t,n,o,l,r,s,i,c,a,u,d,f,p,m,g,h,$,y=e[49]+1+"",x=e[47].title+"",z=Pt(e[47].sizeInByte)+"";f=new e[9]({props:{small:!0,filled:!0,style:"display: inline;",disabled:e[18](e[47]),$$slots:{default:[wt]},$$scope:{ctx:e}}}),f.$on("click",(function(){return e[28](e[47])})),m=new e[9]({props:{small:!0,filled:!0,style:"display: inline;",$$slots:{default:[xt]},$$scope:{ctx:e}}});let j=e[47]._task===e[3]&&kt(e);return{c(){t=k("tr"),n=k("td"),o=_(y),l=C(),r=k("td"),s=_(x),i=C(),c=k("td"),a=_(z),u=C(),d=k("td"),ie(f.$$.fragment),p=C(),ie(m.$$.fragment),g=C(),j&&j.c(),h=C(),T(n,"class","svelte-ifmgly"),L(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){b(e,t,y),v(t,n),v(n,o),v(t,l),v(t,r),v(r,s),v(t,i),v(t,c),v(c,a),v(t,u),v(t,d),ce(f,d,null),v(d,p),ce(m,d,null),v(d,g),j&&j.m(d,null),v(t,h),$=!0},p(t,n){e=t,(!$||16&n[0])&&x!==(x=e[47].title+"")&&M(s,x),(!$||16&n[0])&&z!==(z=Pt(e[47].sizeInByte)+"")&&M(a,z);const o={};16&n[0]&&(o.disabled=e[18](e[47])),4194304&n[1]&&(o.$$scope={dirty:n,ctx:e}),f.$set(o);const l={};16&n[0]|4194304&n[1]&&(l.$$scope={dirty:n,ctx:e}),m.$set(l),e[47]._task===e[3]?j?(j.p(e,n),24&n[0]&&ne(j,1)):(j=kt(e),j.c(),ne(j,1),j.m(d,null)):j&&(ee(),oe(j,1,1,(()=>{j=null})),te())},i(e){$||(ne(f.$$.fragment,e),ne(m.$$.fragment,e),ne(j),$=!0)},o(e){oe(f.$$.fragment,e),oe(m.$$.fragment,e),oe(j),$=!1},d(e){e&&w(t),ae(f),ae(m),j&&j.d()}}}function Ct(e){return{c:s,m:s,p:s,i:s,o:s,d:s}}function jt(e){let t;return{c(){t=_("Abbrechen")},m(e,n){b(e,t,n)},d(e){e&&w(t)}}}function Et(e){let t;return{c(){t=_("Löschen")},m(e,n){b(e,t,n)},d(e){e&&w(t)}}}function Ot(e){let t,n,o,l,r,s,i,c,a,u,d;return c=new e[9]({props:{filled:!0,$$slots:{default:[jt]},$$scope:{ctx:e}}}),c.$on("click",e[30]),u=new e[9]({props:{danger:!0,outline:!0,$$slots:{default:[Et]},$$scope:{ctx:e}}}),u.$on("click",e[31]),{c(){t=k("p"),n=_("Willst du das Dokument "),o=k("b"),l=_(e[2]),r=_(" wirklich löschen?"),s=C(),i=k("div"),ie(c.$$.fragment),a=C(),ie(u.$$.fragment),T(i,"class","flex_div svelte-ifmgly")},m(e,f){b(e,t,f),v(t,n),v(t,o),v(o,l),v(t,r),b(e,s,f),b(e,i,f),ce(c,i,null),v(i,a),ce(u,i,null),d=!0},p(e,t){(!d||4&t[0])&&M(l,e[2]);const n={};4194304&t[1]&&(n.$$scope={dirty:t,ctx:e}),c.$set(n);const o={};4194304&t[1]&&(o.$$scope={dirty:t,ctx:e}),u.$set(o)},i(e){d||(ne(c.$$.fragment,e),ne(u.$$.fragment,e),d=!0)},o(e){oe(c.$$.fragment,e),oe(u.$$.fragment,e),d=!1},d(e){e&&w(t),e&&w(s),e&&w(i),ae(c),ae(u)}}}function Bt(e){let t,n,o;return n=new ye({props:{size:"25"}}),{c(){t=k("div"),ie(n.$$.fragment),T(t,"slot","title-icon")},m(e,l){b(e,t,l),ce(n,t,null),o=!0},p:s,i(e){o||(ne(n.$$.fragment,e),o=!0)},o(e){oe(n.$$.fragment,e),o=!1},d(e){e&&w(t),ae(n)}}}function Tt(e){let t,n;return t=new e[8]({props:{title:"Bestätigung",closeCallback:e[45],danger:!0,$$slots:{"title-icon":[Bt],default:[Ot]},$$scope:{ctx:e}}}),{c(){ie(t.$$.fragment)},m(e,o){ce(t,e,o),n=!0},p(e,n){const o={};16384&n[1]&&(o.closeCallback=e[45]),4&n[0]|4194304&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i(e){n||(ne(t.$$.fragment,e),n=!0)},o(e){oe(t.$$.fragment,e),n=!1},d(e){ae(t,e)}}}function Wt(e){let t,n,o,l,r,s,i=!e[0]&&st(e),c={ctx:e,current:null,token:null,hasCatch:!1,pending:Ct,then:yt,catch:$t,value:46,blocks:[,,,]};function a(t){e[32](t)}le(n=e[4],c);let u={$$slots:{default:[Tt,({closeCallback:e})=>({45:e}),({closeCallback:e})=>[0,e?16384:0]]},$$scope:{ctx:e}};return void 0!==e[1]&&(u.open=e[1]),l=new e[7]({props:u}),A.push((()=>se(l,"open",a))),{c(){i&&i.c(),t=C(),c.block.c(),o=C(),ie(l.$$.fragment)},m(e,n){i&&i.m(e,n),b(e,t,n),c.block.m(e,c.anchor=n),c.mount=()=>o.parentNode,c.anchor=o,b(e,o,n),ce(l,e,n),s=!0},p(o,s){(e=o)[0]?i&&(ee(),oe(i,1,1,(()=>{i=null})),te()):i?(i.p(e,s),1&s[0]&&ne(i,1)):(i=st(e),i.c(),ne(i,1),i.m(t.parentNode,t)),c.ctx=e,16&s[0]&&n!==(n=e[4])&&le(n,c)||function(e,t,n){const o=t.slice(),{resolved:l}=e;e.current===e.then&&(o[e.value]=l),e.current===e.catch&&(o[e.error]=l),e.block.p(o,n)}(c,e,s);const a={};4&s[0]|4210688&s[1]&&(a.$$scope={dirty:s,ctx:e}),!r&&2&s[0]&&(r=!0,a.open=e[1],V((()=>r=!1))),l.$set(a)},i(e){s||(ne(i),ne(c.block),ne(l.$$.fragment,e),s=!0)},o(e){oe(i);for(let e=0;e<3;e+=1){oe(c.blocks[e])}oe(l.$$.fragment,e),s=!1},d(e){i&&i.d(e),e&&w(t),c.block.d(e),c.token=null,c=null,e&&w(o),ae(l,e)}}}const Mt=5;let Lt="text/plain,text/csv,image/*,.pdf,.csv,application/pdf,application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,.ppt,pptx,.doc,.docx,.xml,.json,application/json,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,vnd.ms-3mfdocument,application/octet-stream,application/object,.obj,.step,.stp";function Pt(e){if(e>=1073741824)e=Math.round(e/1073741824*100)/100+" GB";else if(e>=1048576){e=Math.round(e/1048576*100)/100+" MB"}else if(e>=1024){e=Math.round(e/1024*100)/100+" KB"}else e>1?e+=" bytes":1==e?e+=" byte":e="0 bytes";return e}function St(e,s,i){let c,a,u;p(e,l,(e=>i(21,a=e))),p(e,r,(e=>i(22,u=e)));const{Modal:d,Dialog:f,Button:m,TextField:g}=t;let h,$,y,{task:v}=s,b=!1,w="",x=[],k=v.task?.readonly,z=[];const _=v.eventSchema.list?.filter((e=>e.report)).concat(v.eventSchema.items?.filter((e=>e.report)));function C(e){e.forEach((e=>z.push({file:e,custom_name:e.name}))),i(5,z)}const j=async()=>{const e=await v;i(20,y=await o.getSchema(e.event)),i(3,$=e.task.id);const t=await o.getUserReports($);if(_?.length){const n=await o.getTask(e.eventSchema.class,e.docId);for(const e of _){const l=e.name,r=[].concat(n[l]);for(let e of r)if("object"!=typeof e&&(e={[l]:e}),e[l]){const n=(await o.getTaskByDocId(e[l]))._id,r=await o.getUserReports(n);t.push(...r)}}}return t};function E(e,t){if(!e)return;if(t){if(!e.name)return}else t=e.name;const n=new FormData;n.append("title",t),n.append("file",e),o.uploadUserReport($,n)}x=j();const O=(e,t)=>{i(1,b=!0),i(2,w=t),h=e},B=()=>{i(1,b=!1),h="",i(2,w="")},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?file="+t+"&type="+D(e);window.open(r,"",`popup=yes toolbar=no width=${o} height=${l}`)};function W(){o.deleteUserReport(h).then((()=>{i(1,b=!1),h=""}))}async function M(){await Promise.all(z.map((async(e,t)=>{await E(e.file,e.custom_name)}))),i(5,z=[])}n.subscribe((e=>{e&&e.taskId===$&&i(4,x=j())}));const L=e=>"model/obj"===e.contentType||"application/octet-stream"===e.contentType,P=e=>["doc","docx","xls","xlsx","ppt","pptx","pdf","jpg","png","svg"].includes(D(e)),S=e=>{const t={width:624,height:900},n=D(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},D=e=>e.fileName.split(".").slice(-1)[0];return e.$$set=e=>{"task"in e&&i(19,v=e.task)},e.$$.update=()=>{if(7864321&e.$$.dirty[0]&&y&&v.task&&a&&u.role?.length&&y.authorization?.length){const e=y.authorization.some((e=>a?.find((t=>t===e.role&&"edit"===e.activity))));i(0,k||=!e)}1&e.$$.dirty[0]&&i(6,c=k)},[k,b,w,$,x,z,c,d,f,m,g,C,function(e,t){var n;e.file&&e&&(E(e.file,e.custom_name),n=t,z.splice(n,1),i(5,z=[...z]))},O,B,T,W,M,e=>!(L(e)||P(e)),v,y,a,u,e=>C(e.detail.files),function(t,n){e.$$.not_equal(n.custom_name,t)&&(n.custom_name=t,i(5,z))},e=>{z.splice(e,1),i(5,z=[...z])},()=>{M()},()=>i(5,z=[]),e=>T(e),e=>O(e._id,e.title),()=>B(),()=>W(),function(e){b=e,i(1,b)}]}class Dt extends fe{constructor(e){var t;super(),document.getElementById("svelte-ifmgly-style")||((t=k("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}",v(document.head,t)),de(this,e,St,Wt,f,{task:19},[-1,-1])}}function Rt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var It,Nt,At=(It=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)}))}},It(Nt={exports:{}},Nt.exports),Nt.exports);const Ft=Rt(At)({component:Dt,domElementGetter:()=>document.getElementById("detail-app")}),{bootstrap:Ht,mount:Gt,unmount:qt}=Ft;e({bootstrap:Ht,mount:Gt,unmount:qt});e("Report",Dt)}}}));
|
|
1
|
+
System.register(["@enablerr-ui/layout","@enablerr-ui/form"],(function(e){"use strict";var t,n,o,r,i,l;return{setters:[function(e){t=e.getAttractions},function(e){n=e.attachment_notification,o=e.Request,r=e.toasts,i=e.currentRoles,l=e.settings}],execute:function(){e("version","0.2.60");function s(){}function a(e,t){for(const n in t)e[n]=t[n];return e}function c(e){return e()}function d(){return Object.create(null)}function u(e){e.forEach(c)}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 s;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}(t,n))}function g(e,t,n,o){if(e){const r=h(e,t,n,o);return e[0](r)}}function h(e,t,n,o){return e[1]&&o?a(n.ctx.slice(),e[1](o(t))):n.ctx}function y(e,t,n,o,r,i,l){const s=function(e,t,n,o){if(e[2]&&o){const r=e[2](o(n));if(void 0===t.dirty)return r;if("object"==typeof r){const e=[],n=Math.max(t.dirty.length,r.length);for(let o=0;o<n;o+=1)e[o]=t.dirty[o]|r[o];return e}return t.dirty|r}return t.dirty}(t,o,r,i);if(s){const r=h(t,n,o,l);e.p(r,s)}}function b(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 $(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 j(e){return document.createElement(e)}function E(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function z(e){return document.createTextNode(e)}function S(){return z(" ")}function C(){return z("")}function _(e,t,n,o){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}function O(e){return function(t){return t.preventDefault(),e.call(this,t)}}function T(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function L(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function M(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const o in t)null==t[o]?e.removeAttribute(o):"style"===o?e.style.cssText=t[o]:"__value"===o?e.value=e[o]=t[o]:n[o]&&n[o].set?e[o]=t[o]:L(e,o,t[o])}function P(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function I(e,t,n,o){e.style.setProperty(t,n,o?"important":"")}function A(e,t,n){e.classList[n?"add":"remove"](t)}let B;function W(e){B=e}function N(){if(!B)throw new Error("Function called outside component initialization");return B}function R(){const e=N();return(t,n)=>{const o=e.$$.callbacks[t];if(o){const r=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,r)}))}}}const D=[],H=[],F=[],U=[],G=Promise.resolve();let J=!1;function q(e){F.push(e)}function V(e){U.push(e)}let K=!1;const X=new Set;function Z(){if(!K){K=!0;do{for(let e=0;e<D.length;e+=1){const t=D[e];W(t),Y(t.$$)}for(W(null),D.length=0;H.length;)H.pop()();for(let e=0;e<F.length;e+=1){const t=F[e];X.has(t)||(X.add(t),t())}F.length=0}while(D.length);for(;U.length;)U.pop()();J=!1,K=!1,X.clear()}}function Y(e){if(null!==e.fragment){e.update(),u(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(q)}}const Q=new Set;let ee;function te(){ee={r:0,c:[],p:ee}}function ne(){ee.r||u(ee.c),ee=ee.p}function oe(e,t){e&&e.i&&(Q.delete(e),e.i(t))}function re(e,t,n,o){if(e&&e.o){if(Q.has(e))return;Q.add(e),ee&&ee.c.push((()=>{Q.delete(e),o&&(n&&e.d(1),o())})),e.o(t)}}function ie(e,t){const n=t.token={};function o(e,o,r,i){if(t.token!==n)return;t.resolved=i;let l=t.ctx;void 0!==r&&(l=l.slice(),l[r]=i);const s=e&&(t.current=e)(l);let a=!1;t.block&&(t.blocks?t.blocks.forEach(((e,n)=>{n!==o&&e&&(te(),re(e,1,1,(()=>{t.blocks[n]===e&&(t.blocks[n]=null)})),ne())})):t.block.d(1),s.c(),oe(s,1),s.m(t.mount(),t.anchor),a=!0),t.block=s,t.blocks&&(t.blocks[o]=s),a&&Z()}if((r=e)&&"object"==typeof r&&"function"==typeof r.then){const n=N();if(e.then((e=>{W(n),o(t.then,1,t.value,e),W(null)}),(e=>{if(W(n),o(t.catch,2,t.error,e),W(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 r}function le(e,t){re(e,1,1,(()=>{t.delete(e.key)}))}function se(e,t,n){const o=e.$$.props[t];void 0!==o&&(e.$$.bound[o]=n,n(e.$$.ctx[o]))}function ae(e){e&&e.c()}function ce(e,t,n,o){const{fragment:r,on_mount:i,on_destroy:l,after_update:s}=e.$$;r&&r.m(t,n),o||q((()=>{const t=i.map(c).filter(f);l?l.push(...t):u(t),e.$$.on_mount=[]})),s.forEach(q)}function de(e,t){const n=e.$$;null!==n.fragment&&(u(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ue(e,t){-1===e.$$.dirty[0]&&(D.push(e),J||(J=!0,G.then(Z)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function fe(e,t,n,o,r,i,l=[-1]){const a=B;W(e);const c=e.$$={fragment:null,ctx:null,props:i,update:s,not_equal:r,bound:d(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:t.context||[]),callbacks:d(),dirty:l,skip_bound:!1};let f=!1;if(c.ctx=n?n(e,t.props||{},((t,n,...o)=>{const i=o.length?o[0]:n;return c.ctx&&r(c.ctx[t],c.ctx[t]=i)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](i),f&&ue(e,t)),n})):[],c.update(),f=!0,u(c.before_update),c.fragment=!!o&&o(c.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);c.fragment&&c.fragment.l(e),e.forEach(x)}else c.fragment&&c.fragment.c();t.intro&&oe(e.$$.fragment),ce(e,t.target,t.anchor,t.customElement),Z()}W(a)}class pe{$destroy(){de(this,1),this.$destroy=s}$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){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ge(e){var t={exports:{}};return e(t,t.exports),t.exports}function he(e){let t,n,o,r;return{c(){t=E("svg"),n=E("path"),o=E("polygon"),L(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"),L(o,"points","12 15 17 21 7 21 12 15"),L(t,"xmlns","http://www.w3.org/2000/svg"),L(t,"width",e[0]),L(t,"height",e[0]),L(t,"fill","none"),L(t,"viewBox","0 0 24 24"),L(t,"stroke","currentColor"),L(t,"stroke-width",e[1]),L(t,"stroke-linecap","round"),L(t,"stroke-linejoin","round"),L(t,"class",r="feather feather-airplay "+e[2])},m(e,r){w(e,t,r),$(t,n),$(t,o)},p(e,[n]){1&n&&L(t,"width",e[0]),1&n&&L(t,"height",e[0]),2&n&&L(t,"stroke-width",e[1]),4&n&&r!==(r="feather feather-airplay "+e[2])&&L(t,"class",r)},i:s,o:s,d(e){e&&x(t)}}}function ye(e,t,n){let{size:o="100%"}=t,{strokeWidth:r=2}=t,{class:i=""}=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,r=e.strokeWidth),"class"in e&&n(2,i=e.class)},[o,r,i]}ge((function(e,t){var n;window,n=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"./src/index.js":
|
|
2
|
+
/*!**********************!*\
|
|
3
|
+
!*** ./src/index.js ***!
|
|
4
|
+
\**********************/
|
|
5
|
+
/*! exports provided: default */function(e,t,n){n.r(t),n(/*! ./sass/index.scss */"./src/sass/index.scss");var o=n(/*! ./js/init */"./src/js/init.js").default.init;"undefined"!=typeof window&&(window.printJS=o),t.default=o},"./src/js/browser.js":
|
|
6
|
+
/*!***************************!*\
|
|
7
|
+
!*** ./src/js/browser.js ***!
|
|
8
|
+
\***************************/
|
|
9
|
+
/*! exports provided: default */function(e,t,n){n.r(t);var o={isFirefox:function(){return"undefined"!=typeof InstallTrigger},isIE:function(){return-1!==navigator.userAgent.indexOf("MSIE")||!!document.documentMode},isEdge:function(){return!o.isIE()&&!!window.StyleMedia},isChrome:function(){return!!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||-1!==navigator.userAgent.toLowerCase().indexOf("safari")},isIOSChrome:function(){return-1!==navigator.userAgent.toLowerCase().indexOf("crios")}};t.default=o},"./src/js/functions.js":
|
|
10
|
+
/*!*****************************!*\
|
|
11
|
+
!*** ./src/js/functions.js ***!
|
|
12
|
+
\*****************************/
|
|
13
|
+
/*! exports provided: addWrapper, capitalizePrint, collectStyles, addHeader, cleanUp, isRawHTML */function(e,t,n){n.r(t),n.d(t,"addWrapper",(function(){return l})),n.d(t,"capitalizePrint",(function(){return s})),n.d(t,"collectStyles",(function(){return a})),n.d(t,"addHeader",(function(){return d})),n.d(t,"cleanUp",(function(){return u})),n.d(t,"isRawHTML",(function(){return f}));var o=n(/*! ./modal */"./src/js/modal.js"),r=n(/*! ./browser */"./src/js/browser.js");function i(e){return i="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},i(e)}function l(e,t){return'<div style="font-family:'+t.font+" !important; font-size: "+t.font_size+' !important; width:100%;">'+e+"</div>"}function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function a(e,t){for(var n="",o=(document.defaultView||window).getComputedStyle(e,""),r=0;r<o.length;r++)(-1!==t.targetStyles.indexOf("*")||-1!==t.targetStyle.indexOf(o[r])||c(t.targetStyles,o[r]))&&o.getPropertyValue(o[r])&&(n+=o[r]+":"+o.getPropertyValue(o[r])+";");return n+="max-width: "+t.maxWidth+"px !important; font-size: "+t.font_size+" !important;"}function c(e,t){for(var n=0;n<e.length;n++)if("object"===i(t)&&-1!==t.indexOf(e[n]))return!0;return!1}function d(e,t){var n=document.createElement("div");if(f(t.header))n.innerHTML=t.header;else{var o=document.createElement("h1"),r=document.createTextNode(t.header);o.appendChild(r),o.setAttribute("style",t.headerStyle),n.appendChild(o)}e.insertBefore(n,e.childNodes[0])}function u(e){e.showModal&&o.default.close(),e.onLoadingEnd&&e.onLoadingEnd(),(e.showModal||e.onLoadingStart)&&window.URL.revokeObjectURL(e.printable);var t="mouseover";(r.default.isChrome()||r.default.isFirefox())&&(t="focus"),window.addEventListener(t,(function n(){window.removeEventListener(t,n),e.onPrintDialogClose();var o=document.getElementById(e.frameId);o&&o.remove()}))}function f(e){return new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>").test(e)}},"./src/js/html.js":
|
|
14
|
+
/*!************************!*\
|
|
15
|
+
!*** ./src/js/html.js ***!
|
|
16
|
+
\************************/
|
|
17
|
+
/*! exports provided: default */function(e,t,n){n.r(t);var o=n(/*! ./functions */"./src/js/functions.js"),r=n(/*! ./print */"./src/js/print.js");function i(e){return i="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},i(e)}function l(e,t){for(var n=e.cloneNode(),r=Array.prototype.slice.call(e.childNodes),i=0;i<r.length;i++)if(-1===t.ignoreElements.indexOf(r[i].id)){var s=l(r[i],t);n.appendChild(s)}switch(t.scanStyles&&1===e.nodeType&&n.setAttribute("style",Object(o.collectStyles)(e,t)),e.tagName){case"SELECT":n.value=e.value;break;case"CANVAS":n.getContext("2d").drawImage(e,0,0)}return n}t.default={print:function(e,t){var n,s="object"===i(n=e.printable)&&n&&(n instanceof HTMLElement||1===n.nodeType)?e.printable:document.getElementById(e.printable);s?(e.printableElement=l(s,e),e.header&&Object(o.addHeader)(e.printableElement,e),r.default.send(e,t)):window.console.error("Invalid HTML element id: "+e.printable)}}},"./src/js/image.js":
|
|
18
|
+
/*!*************************!*\
|
|
19
|
+
!*** ./src/js/image.js ***!
|
|
20
|
+
\*************************/
|
|
21
|
+
/*! exports provided: default */function(e,t,n){n.r(t);var o=n(/*! ./functions */"./src/js/functions.js"),r=n(/*! ./print */"./src/js/print.js"),i=n(/*! ./browser */"./src/js/browser.js");t.default={print:function(e,t){e.printable.constructor!==Array&&(e.printable=[e.printable]),e.printableElement=document.createElement("div"),e.printable.forEach((function(t){var n=document.createElement("img");if(n.setAttribute("style",e.imageStyle),n.src=t,i.default.isFirefox()){var o=n.src;n.src=o}var r=document.createElement("div");r.appendChild(n),e.printableElement.appendChild(r)})),e.header&&Object(o.addHeader)(e.printableElement,e),r.default.send(e,t)}}},"./src/js/init.js":
|
|
22
|
+
/*!************************!*\
|
|
23
|
+
!*** ./src/js/init.js ***!
|
|
24
|
+
\************************/
|
|
25
|
+
/*! exports provided: default */function(e,t,n){n.r(t);var o=n(/*! ./browser */"./src/js/browser.js"),r=n(/*! ./modal */"./src/js/modal.js"),i=n(/*! ./pdf */"./src/js/pdf.js"),l=n(/*! ./html */"./src/js/html.js"),s=n(/*! ./raw-html */"./src/js/raw-html.js"),a=n(/*! ./image */"./src/js/image.js"),c=n(/*! ./json */"./src/js/json.js");function d(e){return d="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},d(e)}var u=["pdf","html","image","json","raw-html"];t.default={init:function(){var e={printable:null,fallbackPrintable:null,type:"pdf",header:null,headerStyle:"font-weight: 300;",maxWidth:800,properties:null,gridHeaderStyle:"font-weight: bold; padding: 5px; border: 1px solid #dddddd;",gridStyle:"border: 1px solid lightgray; margin-bottom: -1px;",showModal:!1,onError:function(e){throw e},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:"Retrieving Document...",frameId:"printJS",printableElement:null,documentTitle:"Document",targetStyle:["clear","display","width","min-width","height","min-height","max-height"],targetStyles:["border","box","break","text-decoration"],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:"TimesNewRoman",font_size:"12pt",honorMarginPadding:!0,honorColor:!1,imageStyle:"max-width: 100%;"},t=arguments[0];if(void 0===t)throw new Error("printJS expects at least 1 attribute.");switch(d(t)){case"string":e.printable=encodeURI(t),e.fallbackPrintable=e.printable,e.type=arguments[1]||e.type;break;case"object":for(var n in e.printable=t.printable,e.fallbackPrintable=void 0!==t.fallbackPrintable?t.fallbackPrintable:e.printable,e.fallbackPrintable=e.base64?"data:application/pdf;base64,".concat(e.fallbackPrintable):e.fallbackPrintable,e)"printable"!==n&&"fallbackPrintable"!==n&&(e[n]=void 0!==t[n]?t[n]:e[n]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+d(t))}if(!e.printable)throw new Error("Missing printable information.");if(!e.type||"string"!=typeof e.type||-1===u.indexOf(e.type.toLowerCase()))throw new Error("Invalid print type. Available types are: pdf, html, image and json.");e.showModal&&r.default.show(e),e.onLoadingStart&&e.onLoadingStart();var f=document.getElementById(e.frameId);f&&f.parentNode.removeChild(f);var p=document.createElement("iframe");switch(o.default.isFirefox()?p.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):p.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),p.setAttribute("id",e.frameId),"pdf"!==e.type&&(p.srcdoc="<html><head><title>"+e.documentTitle+"</title>",e.css&&(Array.isArray(e.css)||(e.css=[e.css]),e.css.forEach((function(e){p.srcdoc+='<link rel="stylesheet" href="'+e+'">'}))),p.srcdoc+="</head><body></body></html>"),e.type){case"pdf":if(o.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer."),window.open(e.fallbackPrintable,"_blank").focus(),e.onIncompatibleBrowser()}catch(t){e.onError(t)}finally{e.showModal&&r.default.close(),e.onLoadingEnd&&e.onLoadingEnd()}else i.default.print(e,p);break;case"image":a.default.print(e,p);break;case"html":l.default.print(e,p);break;case"raw-html":s.default.print(e,p);break;case"json":c.default.print(e,p)}}}},"./src/js/json.js":
|
|
26
|
+
/*!************************!*\
|
|
27
|
+
!*** ./src/js/json.js ***!
|
|
28
|
+
\************************/
|
|
29
|
+
/*! exports provided: default */function(e,t,n){n.r(t);var o=n(/*! ./functions */"./src/js/functions.js"),r=n(/*! ./print */"./src/js/print.js");function i(e){return i="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},i(e)}t.default={print:function(e,t){if("object"!==i(e.printable))throw new Error("Invalid javascript data object (JSON).");if("boolean"!=typeof e.repeatTableHeader)throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!e.properties||!Array.isArray(e.properties))throw new Error("Invalid properties array for your JSON data.");e.properties=e.properties.map((function(t){return{field:"object"===i(t)?t.field:t,displayName:"object"===i(t)?t.displayName:t,columnSize:"object"===i(t)&&t.columnSize?t.columnSize+";":100/e.properties.length+"%;"}})),e.printableElement=document.createElement("div"),e.header&&Object(o.addHeader)(e.printableElement,e),e.printableElement.innerHTML+=function(e){var t=e.printable,n=e.properties,r='<table style="border-collapse: collapse; width: 100%;">';e.repeatTableHeader&&(r+="<thead>"),r+="<tr>";for(var i=0;i<n.length;i++)r+='<th style="width:'+n[i].columnSize+";"+e.gridHeaderStyle+'">'+Object(o.capitalizePrint)(n[i].displayName)+"</th>";r+="</tr>",e.repeatTableHeader&&(r+="</thead>"),r+="<tbody>";for(var l=0;l<t.length;l++){r+="<tr>";for(var s=0;s<n.length;s++){var a=t[l],c=n[s].field.split(".");if(c.length>1)for(var d=0;d<c.length;d++)a=a[c[d]];else a=a[n[s].field];r+='<td style="width:'+n[s].columnSize+e.gridStyle+'">'+a+"</td>"}r+="</tr>"}return r+="</tbody></table>"}(e),r.default.send(e,t)}}},"./src/js/modal.js":
|
|
30
|
+
/*!*************************!*\
|
|
31
|
+
!*** ./src/js/modal.js ***!
|
|
32
|
+
\*************************/
|
|
33
|
+
/*! exports provided: default */function(e,t,n){n.r(t);var o={show:function(e){var t=document.createElement("div");t.setAttribute("style","font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;"),t.setAttribute("id","printJS-Modal");var n=document.createElement("div");n.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var r=document.createElement("div");r.setAttribute("class","printClose"),r.setAttribute("id","printClose"),n.appendChild(r);var i=document.createElement("span");i.setAttribute("class","printSpinner"),n.appendChild(i);var l=document.createTextNode(e.modalMessage);n.appendChild(l),t.appendChild(n),document.getElementsByTagName("body")[0].appendChild(t),document.getElementById("printClose").addEventListener("click",(function(){o.close()}))},close:function(){var e=document.getElementById("printJS-Modal");e&&e.parentNode.removeChild(e)}};t.default=o},"./src/js/pdf.js":
|
|
34
|
+
/*!***********************!*\
|
|
35
|
+
!*** ./src/js/pdf.js ***!
|
|
36
|
+
\***********************/
|
|
37
|
+
/*! exports provided: default */function(e,t,n){n.r(t);var o=n(/*! ./print */"./src/js/print.js"),r=n(/*! ./functions */"./src/js/functions.js");function i(e,t,n){var r=new window.Blob([n],{type:"application/pdf"});r=window.URL.createObjectURL(r),t.setAttribute("src",r),o.default.send(e,t)}t.default={print:function(e,t){if(e.base64){var n=Uint8Array.from(atob(e.printable),(function(e){return e.charCodeAt(0)}));i(e,t,n)}else{e.printable=/^(blob|http|\/\/)/i.test(e.printable)?e.printable:window.location.origin+("/"!==e.printable.charAt(0)?"/"+e.printable:e.printable);var o=new window.XMLHttpRequest;o.responseType="arraybuffer",o.addEventListener("error",(function(){Object(r.cleanUp)(e),e.onError(o.statusText,o)})),o.addEventListener("load",(function(){if(-1===[200,201].indexOf(o.status))return Object(r.cleanUp)(e),void e.onError(o.statusText,o);i(e,t,o.response)})),o.open("GET",e.printable,!0),o.send()}}}},"./src/js/print.js":
|
|
38
|
+
/*!*************************!*\
|
|
39
|
+
!*** ./src/js/print.js ***!
|
|
40
|
+
\*************************/
|
|
41
|
+
/*! exports provided: default */function(e,t,n){n.r(t);var o=n(/*! ./browser */"./src/js/browser.js"),r=n(/*! ./functions */"./src/js/functions.js"),i={send:function(e,t){document.getElementsByTagName("body")[0].appendChild(t);var n=document.getElementById(e.frameId);n.onload=function(){if("pdf"!==e.type){var t=n.contentWindow||n.contentDocument;if(t.document&&(t=t.document),t.body.appendChild(e.printableElement),"pdf"!==e.type&&e.style){var r=document.createElement("style");r.innerHTML=e.style,t.head.appendChild(r)}var i=t.getElementsByTagName("img");i.length>0?function(e){var t=e.map((function(e){if(e.src&&e.src!==window.location.href)return function(e){return new Promise((function(t){!function n(){e&&void 0!==e.naturalWidth&&0!==e.naturalWidth&&e.complete?t():setTimeout(n,500)}()}))}(e)}));return Promise.all(t)}(Array.from(i)).then((function(){return l(n,e)})):l(n,e)}else o.default.isFirefox()?setTimeout((function(){return l(n,e)}),1e3):l(n,e)}}};function l(e,t){try{if(e.focus(),o.default.isEdge()||o.default.isIE())try{e.contentWindow.document.execCommand("print",!1,null)}catch(t){e.contentWindow.print()}else e.contentWindow.print()}catch(e){t.onError(e)}finally{o.default.isFirefox()&&(e.style.visibility="hidden",e.style.left="-1px"),Object(r.cleanUp)(t)}}t.default=i},"./src/js/raw-html.js":
|
|
42
|
+
/*!****************************!*\
|
|
43
|
+
!*** ./src/js/raw-html.js ***!
|
|
44
|
+
\****************************/
|
|
45
|
+
/*! exports provided: default */function(e,t,n){n.r(t);var o=n(/*! ./print */"./src/js/print.js");t.default={print:function(e,t){e.printableElement=document.createElement("div"),e.printableElement.setAttribute("style","width:100%"),e.printableElement.innerHTML=e.printable,o.default.send(e,t)}}},"./src/sass/index.scss":
|
|
46
|
+
/*!*****************************!*\
|
|
47
|
+
!*** ./src/sass/index.scss ***!
|
|
48
|
+
\*****************************/
|
|
49
|
+
/*! no static exports found */function(e,t,n){},0:
|
|
50
|
+
/*!****************************!*\
|
|
51
|
+
!*** multi ./src/index.js ***!
|
|
52
|
+
\****************************/
|
|
53
|
+
/*! no static exports found */function(e,t,n){e.exports=n(/*! ./src/index.js */"./src/index.js")}}).default},e.exports=n()}));class be extends pe{constructor(e){super(),fe(this,e,ye,he,p,{size:0,strokeWidth:1,class:2})}}function ve(e){let t,n,o,r,i;return{c(){t=E("svg"),n=E("path"),o=E("line"),r=E("line"),L(n,"d","M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"),L(o,"x1","12"),L(o,"y1","9"),L(o,"x2","12"),L(o,"y2","13"),L(r,"x1","12"),L(r,"y1","17"),L(r,"x2","12.01"),L(r,"y2","17"),L(t,"xmlns","http://www.w3.org/2000/svg"),L(t,"width",e[0]),L(t,"height",e[0]),L(t,"fill","none"),L(t,"viewBox","0 0 24 24"),L(t,"stroke","currentColor"),L(t,"stroke-width",e[1]),L(t,"stroke-linecap","round"),L(t,"stroke-linejoin","round"),L(t,"class",i="feather feather-alert-triangle "+e[2])},m(e,i){w(e,t,i),$(t,n),$(t,o),$(t,r)},p(e,[n]){1&n&&L(t,"width",e[0]),1&n&&L(t,"height",e[0]),2&n&&L(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-alert-triangle "+e[2])&&L(t,"class",i)},i:s,o:s,d(e){e&&x(t)}}}function $e(e,t,n){let{size:o="100%"}=t,{strokeWidth:r=2}=t,{class:i=""}=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,r=e.strokeWidth),"class"in e&&n(2,i=e.class)},[o,r,i]}class we extends pe{constructor(e){super(),fe(this,e,$e,ve,p,{size:0,strokeWidth:1,class:2})}}function xe(e){let t,n,o,r,i;return{c(){t=E("svg"),n=E("path"),o=E("polyline"),r=E("line"),L(n,"d","M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"),L(o,"points","7 10 12 15 17 10"),L(r,"x1","12"),L(r,"y1","15"),L(r,"x2","12"),L(r,"y2","3"),L(t,"xmlns","http://www.w3.org/2000/svg"),L(t,"width",e[0]),L(t,"height",e[0]),L(t,"fill","none"),L(t,"viewBox","0 0 24 24"),L(t,"stroke","currentColor"),L(t,"stroke-width",e[1]),L(t,"stroke-linecap","round"),L(t,"stroke-linejoin","round"),L(t,"class",i="feather feather-download "+e[2])},m(e,i){w(e,t,i),$(t,n),$(t,o),$(t,r)},p(e,[n]){1&n&&L(t,"width",e[0]),1&n&&L(t,"height",e[0]),2&n&&L(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-download "+e[2])&&L(t,"class",i)},i:s,o:s,d(e){e&&x(t)}}}function ke(e,t,n){let{size:o="100%"}=t,{strokeWidth:r=2}=t,{class:i=""}=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,r=e.strokeWidth),"class"in e&&n(2,i=e.class)},[o,r,i]}class je extends pe{constructor(e){super(),fe(this,e,ke,xe,p,{size:0,strokeWidth:1,class:2})}}function Ee(e){let t,n,o,r,i;return{c(){t=E("svg"),n=E("polyline"),o=E("path"),r=E("rect"),L(n,"points","6 9 6 2 18 2 18 9"),L(o,"d","M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"),L(r,"x","6"),L(r,"y","14"),L(r,"width","12"),L(r,"height","8"),L(t,"xmlns","http://www.w3.org/2000/svg"),L(t,"width",e[0]),L(t,"height",e[0]),L(t,"fill","none"),L(t,"viewBox","0 0 24 24"),L(t,"stroke","currentColor"),L(t,"stroke-width",e[1]),L(t,"stroke-linecap","round"),L(t,"stroke-linejoin","round"),L(t,"class",i="feather feather-printer "+e[2])},m(e,i){w(e,t,i),$(t,n),$(t,o),$(t,r)},p(e,[n]){1&n&&L(t,"width",e[0]),1&n&&L(t,"height",e[0]),2&n&&L(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-printer "+e[2])&&L(t,"class",i)},i:s,o:s,d(e){e&&x(t)}}}function ze(e,t,n){let{size:o="100%"}=t,{strokeWidth:r=2}=t,{class:i=""}=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,r=e.strokeWidth),"class"in e&&n(2,i=e.class)},[o,r,i]}class Se extends pe{constructor(e){super(),fe(this,e,ze,Ee,p,{size:0,strokeWidth:1,class:2})}}function Ce(e){let t,n,o,r;return{c(){t=E("svg"),n=E("polyline"),o=E("path"),L(n,"points","3 6 5 6 21 6"),L(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"),L(t,"xmlns","http://www.w3.org/2000/svg"),L(t,"width",e[0]),L(t,"height",e[0]),L(t,"fill","none"),L(t,"viewBox","0 0 24 24"),L(t,"stroke","currentColor"),L(t,"stroke-width",e[1]),L(t,"stroke-linecap","round"),L(t,"stroke-linejoin","round"),L(t,"class",r="feather feather-trash "+e[2])},m(e,r){w(e,t,r),$(t,n),$(t,o)},p(e,[n]){1&n&&L(t,"width",e[0]),1&n&&L(t,"height",e[0]),2&n&&L(t,"stroke-width",e[1]),4&n&&r!==(r="feather feather-trash "+e[2])&&L(t,"class",r)},i:s,o:s,d(e){e&&x(t)}}}function _e(e,t,n){let{size:o="100%"}=t,{strokeWidth:r=2}=t,{class:i=""}=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,r=e.strokeWidth),"class"in e&&n(2,i=e.class)},[o,r,i]}class Oe extends pe{constructor(e){super(),fe(this,e,_e,Ce,p,{size:0,strokeWidth:1,class:2})}}function Te(e){let t,n,o,r,i;return{c(){t=E("svg"),n=E("path"),o=E("polyline"),r=E("line"),L(n,"d","M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"),L(o,"points","17 8 12 3 7 8"),L(r,"x1","12"),L(r,"y1","3"),L(r,"x2","12"),L(r,"y2","15"),L(t,"xmlns","http://www.w3.org/2000/svg"),L(t,"width",e[0]),L(t,"height",e[0]),L(t,"fill","none"),L(t,"viewBox","0 0 24 24"),L(t,"stroke","currentColor"),L(t,"stroke-width",e[1]),L(t,"stroke-linecap","round"),L(t,"stroke-linejoin","round"),L(t,"class",i="feather feather-upload "+e[2])},m(e,i){w(e,t,i),$(t,n),$(t,o),$(t,r)},p(e,[n]){1&n&&L(t,"width",e[0]),1&n&&L(t,"height",e[0]),2&n&&L(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-upload "+e[2])&&L(t,"class",i)},i:s,o:s,d(e){e&&x(t)}}}function Le(e,t,n){let{size:o="100%"}=t,{strokeWidth:r=2}=t,{class:i=""}=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,r=e.strokeWidth),"class"in e&&n(2,i=e.class)},[o,r,i]}class Me extends pe{constructor(e){super(),fe(this,e,Le,Te,p,{size:0,strokeWidth:1,class:2})}}function Pe(e){let t,n;return{c(){t=E("svg"),n=E("path"),L(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"),L(t,"xmlns","http://www.w3.org/2000/svg"),L(t,"width","24"),L(t,"height","24"),L(t,"viewBox","0 0 24 24"),L(t,"fill","none"),L(t,"stroke","currentColor"),L(t,"stroke-width","2"),L(t,"stroke-linecap","round"),L(t,"stroke-linejoin","round")},m(e,o){w(e,t,o),$(t,n)},p:s,i:s,o:s,d(e){e&&x(t)}}}class Ie extends pe{constructor(e){super(),fe(this,e,null,Pe,p,{})}}function Ae(...e){return e.filter((e=>!!e)).join(" ")}function Be(e){let t,n,o,r;return{c(){t=E("svg"),n=E("line"),o=E("line"),L(n,"x1","12"),L(n,"y1","5"),L(n,"x2","12"),L(n,"y2","19"),L(o,"x1","5"),L(o,"y1","12"),L(o,"x2","19"),L(o,"y2","12"),L(t,"xmlns","http://www.w3.org/2000/svg"),L(t,"width","24"),L(t,"height","24"),L(t,"viewBox","0 0 24 24"),L(t,"fill","none"),L(t,"stroke","currentColor"),L(t,"stroke-width","2"),L(t,"stroke-linecap","round"),L(t,"stroke-linejoin","round"),L(t,"class",r=Ae(e[0]))},m(e,r){w(e,t,r),$(t,n),$(t,o)},p(e,[n]){1&n&&r!==(r=Ae(e[0]))&&L(t,"class",r)},i:s,o:s,d(e){e&&x(t)}}}function We(e,t,n){let{class:o=null}=t;return e.$$set=e=>{"class"in e&&n(0,o=e.class)},[o]}class Ne extends pe{constructor(e){super(),fe(this,e,We,Be,p,{class:0})}}function Re(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:r}){const i=parseInt(getComputedStyle(t).borderWidth.replace("px","")),l=t.getBoundingClientRect(),s=l.left,a=l.top,c=t.offsetWidth,d=t.offsetHeight,u=e.clientX-s,f=e.clientY-a,p=Math.max(u,c-u),m=Math.max(f,d-f),g=window.getComputedStyle(t),h=Math.sqrt(p*p+m*m),y=i>0?i:0,b=document.createElement("div"),v=document.createElement("div");v.className="ripple-container",b.className="ripple",b.style.marginTop="0px",b.style.marginLeft="0px",b.style.width="1px",b.style.height="1px",b.style.transition=`all ${r}ms cubic-bezier(0.4, 0, 0.2, 1)`,b.style.borderRadius="50%",b.style.pointerEvents="none",b.style.position="relative",b.style.zIndex=o,null!==n&&(b.style.backgroundColor=n);v.style.position="absolute",v.style.left=0-y+"px",v.style.top=0-y+"px",v.style.height="0",v.style.width="0",v.style.pointerEvents="none",v.style.overflow="hidden";const $=t.style.position.length>0?t.style.position:getComputedStyle(t).position;"relative"!==$&&"absolute"!==$&&(t.style.position="relative");function w(){setTimeout((()=>{b.style.backgroundColor="rgba(0, 0, 0, 0)"}),250),setTimeout((()=>{v.parentNode.removeChild(v)}),r+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"!==$?$:"")}),r+250)}v.appendChild(b),t.appendChild(v),b.style.marginLeft=u+"px",b.style.marginTop=f+"px",v.style.width=c+"px",v.style.height=d+"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((()=>{b.style.width=2*h+"px",b.style.height=2*h+"px",b.style.marginLeft=u-h+"px",b.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 De(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 He(e,t,n){const o=e.slice();return o[26]=t[n],o}const Fe=e=>({}),Ue=e=>({}),Ge=e=>({}),Je=e=>({}),qe=e=>({}),Ve=e=>({}),Ke=e=>({}),Xe=e=>({}),Ze=e=>({}),Ye=e=>({}),Qe=e=>({wrongType:128&e,dragActive:64&e}),et=e=>({wrongType:e[7],dragActive:e[6]});function tt(e){let t;const n=e[18]["drag-and-drop-message"],o=g(n,e,e[17],Je),r=o||function(){let e;return{c(){e=z("drag & drop here or click to upload files")},m(t,n){w(t,e,n)},d(t){t&&x(e)}}}();return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,r){o&&o.p&&(!t||131072&r)&&y(o,n,e,e[17],r,Ge,Je)},i(e){t||(oe(r,e),t=!0)},o(e){re(r,e),t=!1},d(e){r&&r.d(e)}}}function nt(e){let t;const n=e[18]["release-to-upload-message"],o=g(n,e,e[17],Ve),r=o||function(){let e;return{c(){e=z("release to upload")},m(t,n){w(t,e,n)},d(t){t&&x(e)}}}();return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,r){o&&o.p&&(!t||131072&r)&&y(o,n,e,e[17],r,qe,Ve)},i(e){t||(oe(r,e),t=!0)},o(e){re(r,e),t=!1},d(e){r&&r.d(e)}}}function ot(e){let t;const n=e[18]["incorrect-file-message"],o=g(n,e,e[17],Xe),r=o||function(){let e;return{c(){e=z("incorrect file type")},m(t,n){w(t,e,n)},d(t){t&&x(e)}}}();return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,r){o&&o.p&&(!t||131072&r)&&y(o,n,e,e[17],r,Ke,Xe)},i(e){t||(oe(r,e),t=!0)},o(e){re(r,e),t=!1},d(e){r&&r.d(e)}}}function rt(e){let t;const n=e[18]["upload-unavailable-message"],o=g(n,e,e[17],Ye),r=o||function(){let e;return{c(){e=z("file upload unavailable")},m(t,n){w(t,e,n)},d(t){t&&x(e)}}}();return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,r){o&&o.p&&(!t||131072&r)&&y(o,n,e,e[17],r,Ze,Ye)},i(e){t||(oe(r,e),t=!0)},o(e){re(r,e),t=!1},d(e){r&&r.d(e)}}}function it(e){let t;const n=e[18]["more-icon"],o=g(n,e,e[17],Ue),r=o||function(){let e,t;return e=new Ne({props:{class:"plus"}}),{c(){ae(e.$$.fragment)},m(n,o){ce(e,n,o),t=!0},p:s,i(n){t||(oe(e.$$.fragment,n),t=!0)},o(n){re(e.$$.fragment,n),t=!1},d(t){de(e,t)}}}();return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,r){o&&o.p&&(!t||131072&r)&&y(o,n,e,e[17],r,Fe,Ue)},i(e){t||(oe(r,e),t=!0)},o(e){re(r,e),t=!1},d(e){r&&r.d(e)}}}function lt(e,t){let n,o,r,i;var l=t[2];function s(e){return{props:{file:e[26]}}}return l&&(o=new l(s(t)),o.$on("delete",t[13])),{key:e,first:null,c(){n=C(),o&&ae(o.$$.fragment),r=C(),this.first=n},m(e,t){w(e,n,t),o&&ce(o,e,t),w(e,r,t),i=!0},p(e,n){t=e;const i={};if(1&n&&(i.file=t[26]),l!==(l=t[2])){if(o){te();const e=o;re(e.$$.fragment,1,0,(()=>{de(e,1)})),ne()}l?(o=new l(s(t)),o.$on("delete",t[13]),ae(o.$$.fragment),oe(o.$$.fragment,1),ce(o,r.parentNode,r)):o=null}else l&&o.$set(i)},i(e){i||(o&&oe(o.$$.fragment,e),i=!0)},o(e){o&&re(o.$$.fragment,e),i=!1},d(e){e&&x(n),e&&x(r),o&&de(o,e)}}}function st(e){let t,n,o,r,i,l,c,d,p,m,h,b,k,E=[],z=new Map,C=[{type:"file"},{multiple:!0},{accept:e[3]},{disabled:o=e[4]||e[0].length>=e[5]},e[15]],P={};for(let e=0;e<C.length;e+=1)P=a(P,C[e]);const I=e[18]["empty-layer"],B=g(I,e,e[17],et),W=B||function(e){let t,n,o,r,i,l;t=new Ie({props:{class:"icon"}});const s=[rt,ot,nt,tt],a=[];function c(e,t){return e[4]?0:e[7]?1:e[6]?2:3}return r=c(e),i=a[r]=s[r](e),{c(){ae(t.$$.fragment),n=S(),o=j("div"),i.c(),L(o,"class","title svelte-11deuuc")},m(e,i){ce(t,e,i),w(e,n,i),w(e,o,i),a[r].m(o,null),l=!0},p(e,t){let n=r;r=c(e),r===n?a[r].p(e,t):(te(),re(a[n],1,1,(()=>{a[n]=null})),ne(),i=a[r],i?i.p(e,t):(i=a[r]=s[r](e),i.c()),oe(i,1),i.m(o,null))},i(e){l||(oe(t.$$.fragment,e),oe(i),l=!0)},o(e){re(t.$$.fragment,e),re(i),l=!1},d(e){de(t,e),e&&x(n),e&&x(o),a[r].d()}}}(e);let N=e[0].length<e[5]&&it(e),R=e[0];const D=e=>`${e[26].name}-${e[26].lastModified}`;for(let t=0;t<R.length;t+=1){let n=He(e,R,t),o=D(n);z.set(o,E[t]=lt(o,n))}return{c(){t=j("label"),n=j("input"),r=S(),i=j("div"),W&&W.c(),l=S(),c=j("div"),N&&N.c(),p=S();for(let e=0;e<E.length;e+=1)E[e].c();M(n,P),A(n,"svelte-11deuuc",!0),L(i,"class","empty-layer svelte-11deuuc"),L(c,"class","dropzone-layer svelte-11deuuc"),A(c,"accepting",e[6]),L(t,"class",m=v(Ae("file-dropzone",e[1]))+" svelte-11deuuc"),A(t,"has-content",e[0]&&0!==e[0].length),A(t,"wrong-type",e[7]),A(t,"disabled",e[4]||e[0].length>=e[5])},m(o,a){w(o,t,a),$(t,n),e[19](n),$(t,r),$(t,i),W&&W.m(i,null),e[20](i),$(t,l),$(t,c),N&&N.m(c,null),e[21](c),$(t,p);for(let e=0;e<E.length;e+=1)E[e].m(t,null);var u;h=!0,b||(k=[_(n,"change",e[12]),_(c,"dragover",T(O(e[11]))),_(c,"dragenter",e[22]),_(c,"dragleave",e[23]),_(c,"drop",T(O(e[12]))),(u=d=Re.call(null,c,{disabled:e[4]||e[0].length>=e[5]}),u&&f(u.destroy)?u.destroy:s),_(t,"click",e[14])],b=!0)},p(e,[r]){M(n,P=function(e,t){const n={},o={},r={$$scope:1};let i=e.length;for(;i--;){const l=e[i],s=t[i];if(s){for(const e in l)e in s||(o[e]=1);for(const e in s)r[e]||(n[e]=s[e],r[e]=1);e[i]=s}else for(const e in l)r[e]=1}for(const e in o)e in n||(n[e]=void 0);return n}(C,[{type:"file"},{multiple:!0},(!h||8&r)&&{accept:e[3]},(!h||49&r&&o!==(o=e[4]||e[0].length>=e[5]))&&{disabled:o},32768&r&&e[15]])),A(n,"svelte-11deuuc",!0),B?B.p&&(!h||131264&r)&&y(B,I,e,e[17],r,Qe,et):W&&W.p&&131280&r&&W.p(e,r),e[0].length<e[5]?N?(N.p(e,r),33&r&&oe(N,1)):(N=it(e),N.c(),oe(N,1),N.m(c,null)):N&&(te(),re(N,1,1,(()=>{N=null})),ne()),d&&f(d.update)&&49&r&&d.update.call(null,{disabled:e[4]||e[0].length>=e[5]}),64&r&&A(c,"accepting",e[6]),8197&r&&(R=e[0],te(),E=function(e,t,n,o,r,i,l,s,a,c,d,u){let f=e.length,p=i.length,m=f;const g={};for(;m--;)g[e[m].key]=m;const h=[],y=new Map,b=new Map;for(m=p;m--;){const e=u(r,i,m),s=n(e);let a=l.get(s);a?o&&a.p(e,t):(a=c(s,e),a.c()),y.set(s,h[m]=a),s in g&&b.set(s,Math.abs(m-g[s]))}const v=new Set,$=new Set;function w(e){oe(e,1),e.m(s,d),l.set(e.key,e),d=e.first,p--}for(;f&&p;){const t=h[p-1],n=e[f-1],o=t.key,r=n.key;t===n?(d=t.first,f--,p--):y.has(r)?!l.has(o)||v.has(o)?w(t):$.has(r)?f--:b.get(o)>b.get(r)?($.add(o),w(t)):(v.add(r),f--):(a(n,l),f--)}for(;f--;){const t=e[f];y.has(t.key)||a(t,l)}for(;p;)w(h[p-1]);return h}(E,r,D,1,e,R,z,t,le,lt,null,He),ne()),(!h||2&r&&m!==(m=v(Ae("file-dropzone",e[1]))+" svelte-11deuuc"))&&L(t,"class",m),3&r&&A(t,"has-content",e[0]&&0!==e[0].length),130&r&&A(t,"wrong-type",e[7]),51&r&&A(t,"disabled",e[4]||e[0].length>=e[5])},i(e){if(!h){oe(W,e),oe(N);for(let e=0;e<R.length;e+=1)oe(E[e]);h=!0}},o(e){re(W,e),re(N);for(let e=0;e<E.length;e+=1)re(E[e]);h=!1},d(n){n&&x(t),e[19](null),W&&W.d(n),e[20](null),N&&N.d(),e[21](null);for(let e=0;e<E.length;e+=1)E[e].d();b=!1,u(k)}}}function at(e,n,o){const r=["class","files","fileComponent","accept","beforeChange","disabled","max"];let i=b(n,r),{$$slots:l={},$$scope:s}=n,{class:c=null}=n;const{FileTile:d}=t;let u,f,p,{files:m=[]}=n,{fileComponent:g=d}=n,{accept:h=null}=n,{beforeChange:y=null}=n,{disabled:v=!1}=n,{max:$=1/0}=n,w=!1,x=!1;const k=R();return e.$$set=e=>{n=a(a({},n),function(e){const t={};for(const n in e)"$"!==n[0]&&(t[n]=e[n]);return t}(e)),o(15,i=b(n,r)),"class"in e&&o(1,c=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,y=e.beforeChange),"disabled"in e&&o(4,v=e.disabled),"max"in e&&o(5,$=e.max),"$$scope"in e&&o(17,s=e.$$scope)},[m,c,g,h,v,$,w,x,u,f,p,function(e){o(7,x=[...e.dataTransfer.items].some((e=>!De(h,e))))},async function(e){const t=Array.from((e.dataTransfer||e.target).files);await Promise.all(t.map((async e=>{try{"function"==typeof y&&await y(e)}catch(e){return}De(h,e)&&m.length<$&&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!=u&&e.target!=f&&e.target!=p&&e.preventDefault()},i,y,s,l,function(e){H[e?"unshift":"push"]((()=>{p=e,o(10,p)}))},function(e){H[e?"unshift":"push"]((()=>{u=e,o(8,u)}))},function(e){H[e?"unshift":"push"]((()=>{f=e,o(9,f)}))},()=>o(6,w=!0),()=>{o(6,w=!1),o(7,x=!1)}]}class ct extends pe{constructor(e){var t;super(),document.getElementById("svelte-11deuuc-style")||((t=j("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)}",$(document.head,t)),fe(this,e,at,st,p,{class:1,files:0,fileComponent:2,accept:3,beforeChange:16,disabled:4,max:5})}}function dt(e,t,n){const o=e.slice();return o[50]=t[n],o[52]=n,o}function ut(e,t,n){const o=e.slice();return o[53]=t[n],o[54]=t,o[55]=n,o}function ft(e){let t,n,o,r,i,l,s;r=new ct({props:{accept:Dt,max:Rt,$$slots:{"upload-unavailable-message":[ht],"release-to-upload-message":[gt],"incorrect-file-message":[mt],"drag-and-drop-message":[pt]},$$scope:{ctx:e}}}),r.$on("change",e[25]);let a=e[5]&&e[5].length>0&&yt(e);return{c(){t=j("div"),n=j("form"),o=j("div"),ae(r.$$.fragment),i=S(),a&&a.c(),l=C(),L(o,"class","document-choose svelte-ifmgly"),L(n,"id","uploadForm"),L(t,"class","form-step svelte-ifmgly")},m(e,c){w(e,t,c),$(t,n),$(n,o),ce(r,o,null),w(e,i,c),a&&a.m(e,c),w(e,l,c),s=!0},p(e,t){const n={};33554432&t[1]&&(n.$$scope={dirty:t,ctx:e}),r.$set(n),e[5]&&e[5].length>0?a?(a.p(e,t),32&t[0]&&oe(a,1)):(a=yt(e),a.c(),oe(a,1),a.m(l.parentNode,l)):a&&(te(),re(a,1,1,(()=>{a=null})),ne())},i(e){s||(oe(r.$$.fragment,e),oe(a),s=!0)},o(e){re(r.$$.fragment,e),re(a),s=!1},d(e){e&&x(t),de(r),e&&x(i),a&&a.d(e),e&&x(l)}}}function pt(e){let t;return{c(){t=j("div"),t.textContent="Drag & Drop Dokumente oder klicken Sie hier zum Hochladen\n von Dateien",L(t,"slot","drag-and-drop-message")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function mt(e){let t;return{c(){t=j("div"),t.textContent="Inkorrektes File Format",L(t,"slot","incorrect-file-message")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function gt(e){let t;return{c(){t=j("div"),t.textContent="Loslassen um hochzuladen",L(t,"slot","release-to-upload-message")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function ht(e){let t;return{c(){t=j("div"),t.textContent="File Upload steht gerade nicht zur Verfügung",L(t,"slot","upload-unavailable-message")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function yt(e){let t,n,o,r,i,l,s=e[5],a=[];for(let t=0;t<s.length;t+=1)a[t]=$t(ut(e,s,t));const c=e=>re(a[e],1,1,(()=>{a[e]=null}));return o=new e[9]({props:{disabled:e[6],filled:!0,style:"color: whitesmoke; display: inline;",type:"submit",$$slots:{default:[wt]},$$scope:{ctx:e}}}),o.$on("click",e[28]),i=new e[9]({props:{small:!0,filled:!0,danger:!0,style:"color: whitesmoke; display: inline;",$$slots:{default:[xt]},$$scope:{ctx:e}}}),i.$on("click",e[29]),{c(){for(let e=0;e<a.length;e+=1)a[e].c();t=S(),n=j("div"),ae(o.$$.fragment),r=S(),ae(i.$$.fragment),L(n,"class","flex gap svelte-ifmgly")},m(e,s){for(let t=0;t<a.length;t+=1)a[t].m(e,s);w(e,t,s),w(e,n,s),ce(o,n,null),$(n,r),ce(i,n,null),l=!0},p(e,n){if(4192&n[0]){let o;for(s=e[5],o=0;o<s.length;o+=1){const r=ut(e,s,o);a[o]?(a[o].p(r,n),oe(a[o],1)):(a[o]=$t(r),a[o].c(),oe(a[o],1),a[o].m(t.parentNode,t))}for(te(),o=s.length;o<a.length;o+=1)c(o);ne()}const r={};64&n[0]&&(r.disabled=e[6]),33554432&n[1]&&(r.$$scope={dirty:n,ctx:e}),o.$set(r);const l={};33554432&n[1]&&(l.$$scope={dirty:n,ctx:e}),i.$set(l)},i(e){if(!l){for(let e=0;e<s.length;e+=1)oe(a[e]);oe(o.$$.fragment,e),oe(i.$$.fragment,e),l=!0}},o(e){a=a.filter(Boolean);for(let e=0;e<a.length;e+=1)re(a[e]);re(o.$$.fragment,e),re(i.$$.fragment,e),l=!1},d(e){k(a,e),e&&x(t),e&&x(n),de(o),de(i)}}}function bt(e){let t,n;return t=new Me({props:{size:"18"}}),{c(){ae(t.$$.fragment)},m(e,o){ce(t,e,o),n=!0},p:s,i(e){n||(oe(t.$$.fragment,e),n=!0)},o(e){re(t.$$.fragment,e),n=!1},d(e){de(t,e)}}}function vt(e){let t,n;return t=new Oe({props:{size:"18"}}),{c(){ae(t.$$.fragment)},m(e,o){ce(t,e,o),n=!0},p:s,i(e){n||(oe(t.$$.fragment,e),n=!0)},o(e){re(t.$$.fragment,e),n=!1},d(e){de(t,e)}}}function $t(e){let t,n,o,r,i,l,s,a,c,d,u,p,m,g,h,y,b,v,k,E,C,T,M,I=e[53].file.name+"",A=Ht(e[53].file.size)+"";function B(t){e[26](t,e[53])}let W={type:"text",id:"fileTitle_"+e[55],required:!0};return void 0!==e[53].custom_name&&(W.value=e[53].custom_name),g=new e[10]({props:W}),H.push((()=>se(g,"value",B))),b=new e[9]({props:{disabled:e[6],small:!0,filled:!0,style:"color: whitesmoke; display: inline;",type:"submit",$$slots:{default:[bt]},$$scope:{ctx:e}}}),k=new e[9]({props:{small:!0,filled:!0,danger:!0,style:"color: whitesmoke; display: inline;",$$slots:{default:[vt]},$$scope:{ctx:e}}}),k.$on("click",(function(){return e[27](e[55])})),{c(){t=j("div"),n=j("form"),o=j("div"),r=j("div"),i=z("#"),l=z(e[55]),s=S(),a=j("div"),c=z(I),d=S(),u=j("div"),p=z(A),m=S(),ae(g.$$.fragment),y=S(),ae(b.$$.fragment),v=S(),ae(k.$$.fragment),L(a,"class","word-break svelte-ifmgly"),L(o,"class","container-file svelte-ifmgly"),L(n,"id",E="submitForm_"+e[53].file.name+"_"+e[55]),L(n,"class","svelte-ifmgly"),L(t,"class","form-step svelte-ifmgly")},m(h,x){w(h,t,x),$(t,n),$(n,o),$(o,r),$(r,i),$(r,l),$(o,s),$(o,a),$(a,c),$(o,d),$(o,u),$(u,p),$(o,m),ce(g,o,null),$(o,y),ce(b,o,null),$(o,v),ce(k,o,null),C=!0,T||(M=_(n,"submit",O((function(){f(e[12](e[53],e[55]))&&e[12](e[53],e[55]).apply(this,arguments)}))),T=!0)},p(t,o){e=t,(!C||32&o[0])&&I!==(I=e[53].file.name+"")&&P(c,I),(!C||32&o[0])&&A!==(A=Ht(e[53].file.size)+"")&&P(p,A);const r={};!h&&32&o[0]&&(h=!0,r.value=e[53].custom_name,V((()=>h=!1))),g.$set(r);const i={};64&o[0]&&(i.disabled=e[6]),33554432&o[1]&&(i.$$scope={dirty:o,ctx:e}),b.$set(i);const l={};33554432&o[1]&&(l.$$scope={dirty:o,ctx:e}),k.$set(l),(!C||32&o[0]&&E!==(E="submitForm_"+e[53].file.name+"_"+e[55]))&&L(n,"id",E)},i(e){C||(oe(g.$$.fragment,e),oe(b.$$.fragment,e),oe(k.$$.fragment,e),C=!0)},o(e){re(g.$$.fragment,e),re(b.$$.fragment,e),re(k.$$.fragment,e),C=!1},d(e){e&&x(t),de(g),de(b),de(k),T=!1,M()}}}function wt(e){let t;return{c(){t=z("Alle Dokumente hochladen")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function xt(e){let t;return{c(){t=z("Alle Dokumente entfernen")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function kt(e){return{c:s,m:s,p:s,i:s,o:s,d:s}}function jt(e){let t,n,o,r,i,l,s,a;const c=[zt,Et],d=[];function u(e,t){return 0===e[49].length?0:1}return l=u(e),s=d[l]=c[l](e),{c(){t=j("div"),n=j("table"),o=j("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>',r=S(),i=j("tbody"),s.c(),L(o,"class","tablehead"),L(n,"class","tableFixHead"),L(t,"class","task_list svelte-ifmgly")},m(e,s){w(e,t,s),$(t,n),$(n,o),$(n,r),$(n,i),d[l].m(i,null),a=!0},p(e,t){let n=l;l=u(e),l===n?d[l].p(e,t):(te(),re(d[n],1,1,(()=>{d[n]=null})),ne(),s=d[l],s?s.p(e,t):(s=d[l]=c[l](e),s.c()),oe(s,1),s.m(i,null))},i(e){a||(oe(s),a=!0)},o(e){re(s),a=!1},d(e){e&&x(t),d[l].d()}}}function Et(e){let t,n,o=e[49],r=[];for(let t=0;t<o.length;t+=1)r[t]=Lt(dt(e,o,t));const i=e=>re(r[e],1,1,(()=>{r[e]=null}));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=C()},m(e,o){for(let t=0;t<r.length;t+=1)r[t].m(e,o);w(e,t,o),n=!0},p(e,n){if(1876056&n[0]){let l;for(o=e[49],l=0;l<o.length;l+=1){const i=dt(e,o,l);r[l]?(r[l].p(i,n),oe(r[l],1)):(r[l]=Lt(i),r[l].c(),oe(r[l],1),r[l].m(t.parentNode,t))}for(te(),l=o.length;l<r.length;l+=1)i(l);ne()}},i(e){if(!n){for(let e=0;e<o.length;e+=1)oe(r[e]);n=!0}},o(e){r=r.filter(Boolean);for(let e=0;e<r.length;e+=1)re(r[e]);n=!1},d(e){k(r,e),e&&x(t)}}}function zt(e){let t;return{c(){t=j("tr"),t.innerHTML='<td colspan="4" style="text-align: center;" class="svelte-ifmgly">Keine Dokumente gefunden</td>',L(t,"class","svelte-ifmgly")},m(e,n){w(e,t,n)},p:s,i:s,o:s,d(e){e&&x(t)}}}function St(e){let t,n;return t=new be({props:{size:"18"}}),{c(){ae(t.$$.fragment)},m(e,o){ce(t,e,o),n=!0},p:s,i(e){n||(oe(t.$$.fragment,e),n=!0)},o(e){re(t.$$.fragment,e),n=!1},d(e){de(t,e)}}}function Ct(e){let t,n;return t=new Se({props:{size:"18"}}),{c(){ae(t.$$.fragment)},m(e,o){ce(t,e,o),n=!0},p:s,i(e){n||(oe(t.$$.fragment,e),n=!0)},o(e){re(t.$$.fragment,e),n=!1},d(e){de(t,e)}}}function _t(e){let t,n,o,r;return n=new je({props:{size:"18"}}),{c(){t=j("a"),ae(n.$$.fragment),L(t,"href",o=e[20](e[50])),I(t,"color","whitesmoke")},m(e,o){w(e,t,o),ce(n,t,null),r=!0},p(e,n){(!r||16&n[0]&&o!==(o=e[20](e[50])))&&L(t,"href",o)},i(e){r||(oe(n.$$.fragment,e),r=!0)},o(e){re(n.$$.fragment,e),r=!1},d(e){e&&x(t),de(n)}}}function Ot(e){let t,n;return t=new e[9]({props:{disabled:e[6],small:!0,filled:!0,danger:!0,style:"color: whitesmoke; display: inline;",$$slots:{default:[Tt]},$$scope:{ctx:e}}}),t.$on("click",(function(){return e[32](e[50])})),{c(){ae(t.$$.fragment)},m(e,o){ce(t,e,o),n=!0},p(n,o){e=n;const r={};64&o[0]&&(r.disabled=e[6]),33554432&o[1]&&(r.$$scope={dirty:o,ctx:e}),t.$set(r)},i(e){n||(oe(t.$$.fragment,e),n=!0)},o(e){re(t.$$.fragment,e),n=!1},d(e){de(t,e)}}}function Tt(e){let t,n;return t=new Oe({props:{size:"18"}}),{c(){ae(t.$$.fragment)},m(e,o){ce(t,e,o),n=!0},p:s,i(e){n||(oe(t.$$.fragment,e),n=!0)},o(e){re(t.$$.fragment,e),n=!1},d(e){de(t,e)}}}function Lt(e){let t,n,o,r,i,l,s,a,c,d,u,f,p,m,g,h,y,b,v,k=e[52]+1+"",E=e[50].title+"",C=Ht(e[50].sizeInByte)+"";f=new e[9]({props:{small:!0,filled:!0,style:"display: inline;",disabled:e[18](e[50]),$$slots:{default:[St]},$$scope:{ctx:e}}}),f.$on("click",(function(){return e[30](e[50])})),m=new e[9]({props:{small:!0,filled:!0,style:"display: inline;",disabled:e[19](e[50]),$$slots:{default:[Ct]},$$scope:{ctx:e}}}),m.$on("click",(function(){return e[31](e[50])})),h=new e[9]({props:{small:!0,filled:!0,style:"display: inline;",$$slots:{default:[_t]},$$scope:{ctx:e}}});let _=e[50]._task===e[3]&&Ot(e);return{c(){t=j("tr"),n=j("td"),o=z(k),r=S(),i=j("td"),l=z(E),s=S(),a=j("td"),c=z(C),d=S(),u=j("td"),ae(f.$$.fragment),p=S(),ae(m.$$.fragment),g=S(),ae(h.$$.fragment),y=S(),_&&_.c(),b=S(),L(n,"class","svelte-ifmgly"),I(i,"max-width","30em"),L(i,"class","svelte-ifmgly"),L(a,"class","text_right svelte-ifmgly"),L(u,"class","svelte-ifmgly"),L(t,"class","svelte-ifmgly")},m(e,x){w(e,t,x),$(t,n),$(n,o),$(t,r),$(t,i),$(i,l),$(t,s),$(t,a),$(a,c),$(t,d),$(t,u),ce(f,u,null),$(u,p),ce(m,u,null),$(u,g),ce(h,u,null),$(u,y),_&&_.m(u,null),$(t,b),v=!0},p(t,n){e=t,(!v||16&n[0])&&E!==(E=e[50].title+"")&&P(l,E),(!v||16&n[0])&&C!==(C=Ht(e[50].sizeInByte)+"")&&P(c,C);const o={};16&n[0]&&(o.disabled=e[18](e[50])),33554432&n[1]&&(o.$$scope={dirty:n,ctx:e}),f.$set(o);const r={};16&n[0]&&(r.disabled=e[19](e[50])),33554432&n[1]&&(r.$$scope={dirty:n,ctx:e}),m.$set(r);const i={};16&n[0]|33554432&n[1]&&(i.$$scope={dirty:n,ctx:e}),h.$set(i),e[50]._task===e[3]?_?(_.p(e,n),24&n[0]&&oe(_,1)):(_=Ot(e),_.c(),oe(_,1),_.m(u,null)):_&&(te(),re(_,1,1,(()=>{_=null})),ne())},i(e){v||(oe(f.$$.fragment,e),oe(m.$$.fragment,e),oe(h.$$.fragment,e),oe(_),v=!0)},o(e){re(f.$$.fragment,e),re(m.$$.fragment,e),re(h.$$.fragment,e),re(_),v=!1},d(e){e&&x(t),de(f),de(m),de(h),_&&_.d()}}}function Mt(e){return{c:s,m:s,p:s,i:s,o:s,d:s}}function Pt(e){let t;return{c(){t=z("Abbrechen")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function It(e){let t;return{c(){t=z("Löschen")},m(e,n){w(e,t,n)},d(e){e&&x(t)}}}function At(e){let t,n,o,r,i,l,s,a,c,d,u;return a=new e[9]({props:{filled:!0,$$slots:{default:[Pt]},$$scope:{ctx:e}}}),a.$on("click",e[33]),d=new e[9]({props:{danger:!0,outline:!0,$$slots:{default:[It]},$$scope:{ctx:e}}}),d.$on("click",e[34]),{c(){t=j("p"),n=z("Willst du das Dokument "),o=j("b"),r=z(e[2]),i=z(" wirklich löschen?"),l=S(),s=j("div"),ae(a.$$.fragment),c=S(),ae(d.$$.fragment),L(s,"class","flex_div svelte-ifmgly")},m(e,f){w(e,t,f),$(t,n),$(t,o),$(o,r),$(t,i),w(e,l,f),w(e,s,f),ce(a,s,null),$(s,c),ce(d,s,null),u=!0},p(e,t){(!u||4&t[0])&&P(r,e[2]);const n={};33554432&t[1]&&(n.$$scope={dirty:t,ctx:e}),a.$set(n);const o={};33554432&t[1]&&(o.$$scope={dirty:t,ctx:e}),d.$set(o)},i(e){u||(oe(a.$$.fragment,e),oe(d.$$.fragment,e),u=!0)},o(e){re(a.$$.fragment,e),re(d.$$.fragment,e),u=!1},d(e){e&&x(t),e&&x(l),e&&x(s),de(a),de(d)}}}function Bt(e){let t,n,o;return n=new we({props:{size:"25"}}),{c(){t=j("div"),ae(n.$$.fragment),L(t,"slot","title-icon")},m(e,r){w(e,t,r),ce(n,t,null),o=!0},p:s,i(e){o||(oe(n.$$.fragment,e),o=!0)},o(e){re(n.$$.fragment,e),o=!1},d(e){e&&x(t),de(n)}}}function Wt(e){let t,n;return t=new e[8]({props:{title:"Bestätigung",closeCallback:e[48],danger:!0,$$slots:{"title-icon":[Bt],default:[At]},$$scope:{ctx:e}}}),{c(){ae(t.$$.fragment)},m(e,o){ce(t,e,o),n=!0},p(e,n){const o={};131072&n[1]&&(o.closeCallback=e[48]),4&n[0]|33554432&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i(e){n||(oe(t.$$.fragment,e),n=!0)},o(e){re(t.$$.fragment,e),n=!1},d(e){de(t,e)}}}function Nt(e){let t,n,o,r,i,l,s=!e[0]&&ft(e),a={ctx:e,current:null,token:null,hasCatch:!1,pending:Mt,then:jt,catch:kt,value:49,blocks:[,,,]};function c(t){e[35](t)}ie(n=e[4],a);let d={$$slots:{default:[Wt,({closeCallback:e})=>({48:e}),({closeCallback:e})=>[0,e?131072:0]]},$$scope:{ctx:e}};return void 0!==e[1]&&(d.open=e[1]),r=new e[7]({props:d}),H.push((()=>se(r,"open",c))),{c(){s&&s.c(),t=S(),a.block.c(),o=S(),ae(r.$$.fragment)},m(e,n){s&&s.m(e,n),w(e,t,n),a.block.m(e,a.anchor=n),a.mount=()=>o.parentNode,a.anchor=o,w(e,o,n),ce(r,e,n),l=!0},p(o,l){(e=o)[0]?s&&(te(),re(s,1,1,(()=>{s=null})),ne()):s?(s.p(e,l),1&l[0]&&oe(s,1)):(s=ft(e),s.c(),oe(s,1),s.m(t.parentNode,t)),a.ctx=e,16&l[0]&&n!==(n=e[4])&&ie(n,a)||function(e,t,n){const o=t.slice(),{resolved:r}=e;e.current===e.then&&(o[e.value]=r),e.current===e.catch&&(o[e.error]=r),e.block.p(o,n)}(a,e,l);const c={};4&l[0]|33685504&l[1]&&(c.$$scope={dirty:l,ctx:e}),!i&&2&l[0]&&(i=!0,c.open=e[1],V((()=>i=!1))),r.$set(c)},i(e){l||(oe(s),oe(a.block),oe(r.$$.fragment,e),l=!0)},o(e){re(s);for(let e=0;e<3;e+=1){re(a.blocks[e])}re(r.$$.fragment,e),l=!1},d(e){s&&s.d(e),e&&x(t),a.block.d(e),a.token=null,a=null,e&&x(o),de(r,e)}}}const Rt=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 Ht(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 Ft(e,s,a){let c,d,u;m(e,i,(e=>a(23,d=e))),m(e,l,(e=>a(24,u=e)));const{Modal:f,Dialog:p,Button:g,TextField:h}=t;let y,b,v,{task:$}=s,w=!1,x="",k=[],j=$.task?.readonly,E=[];const z=$.eventSchema.list?.filter((e=>e.report)).concat($.eventSchema.items?.filter((e=>e.report)));function S(e){e.forEach((e=>E.push({file:e,custom_name:e.name}))),a(5,E)}const C=async()=>{const e=await $;a(22,v=await o.getSchema(e.event)),a(3,b=e.task.id);const t=await o.getUserReports(b);if(z?.length){const n=await o.getTask(e.eventSchema.class,e.docId);for(const e of z){const r=e.name,i=[].concat(n[r]);for(let e of i)if("object"!=typeof e&&(e={[r]:e}),e[r]){const n=(await o.getTaskByDocId(e[r]))._id,i=await o.getUserReports(n);t.push(...i)}}}return t};async function _(e,t,n=!1){if(!e)return;if(t){if(!e.name)return}else t=e.name;const i=new FormData;i.append("title",t),i.append("file",e),await o.uploadUserReport(b,i),n||r.success("Datei erfolgreich gespeichert.",2e3)}k=C();const O=(e,t)=>{a(1,w=!0),a(2,x=t),y=e},T=()=>{a(1,w=!1),y="",a(2,x="")},L=e=>{const t="/api/userreport/"+e._id;let n="/viewer/3d/",o=800,r=600;if(A(e)){n="/viewer/doc/";const t=B(e);o=t.width,r=t.height}let i=n+"index.html?file="+t+"&type="+W(e);window.open(i,"",`popup=yes toolbar=no width=${o} height=${r}`)};async function M(){await o.deleteUserReport(y).then((()=>{a(1,w=!1),y=""})),r.success("Datei erfolgreich gelöscht",2e3)}async function P(){await Promise.all(E.map((async(e,t)=>{await _(e.file,e.custom_name,!0)}))),r.success("Dateien erfolgreich gespeichert",2e3),a(5,E=[])}n.subscribe((e=>{e&&e.taskId===b&&a(4,k=C())}));const I=e=>"model/obj"===e.contentType||"application/octet-stream"===e.contentType,A=e=>["doc","docx","xls","xlsx","ppt","pptx","pdf","jpg","png","svg"].includes(W(e)),B=e=>{const t={width:624,height:900},n=W(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},W=e=>e.fileName.split(".").slice(-1)[0],N=e=>`/api/userreport/${e._id}?h=${window.location.hostname}`;return e.$$set=e=>{"task"in e&&a(21,$=e.task)},e.$$.update=()=>{if(31457281&e.$$.dirty[0]&&v&&$.task&&d&&u.role?.length&&v.authorization?.length){const e=v.authorization.some((e=>d?.find((t=>t===e.role&&"edit"===e.activity))));a(0,j||=!e)}1&e.$$.dirty[0]&&a(6,c=j)},[j,w,x,b,k,E,c,f,p,g,h,S,function(e,t){var n;e.file&&e&&(_(e.file,e.custom_name),n=t,E.splice(n,1),a(5,E=[...E]))},O,T,L,M,P,e=>!(I(e)||A(e)),e=>!["pdf"].includes(W(e)),N,$,v,d,u,e=>S(e.detail.files),function(t,n){e.$$.not_equal(n.custom_name,t)&&(n.custom_name=t,a(5,E))},e=>{E.splice(e,1),a(5,E=[...E])},()=>{P()},()=>a(5,E=[]),e=>L(e),e=>printJS({printable:N(e),type:"pdf"}),e=>O(e._id,e.title),()=>T(),()=>M(),function(e){w=e,a(1,w)}]}class Ut extends pe{constructor(e){var t;super(),document.getElementById("svelte-ifmgly-style")||((t=j("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}",$(document.head,t)),fe(this,e,Ft,Nt,p,{task:21},[-1,-1])}}var Gt=ge((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){r(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 r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){return i="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},i(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("object"!==i(e))throw new Error("single-spa-svelte requires a configuration object");var t=o(o({},l),e);if(!t.component)throw new Error("single-spa-svelte must be passed opts.component");var n={};return{bootstrap:s.bind(null,t,n),mount:a.bind(null,t,n),unmount:c.bind(null,t,n),update:d.bind(null,t,n)}};var l={component:null,domElementGetter:null,props:{}};function s(e){return Promise.resolve()}function a(e,t,n){var r=Object.keys(l),i=Object.keys(e).reduce((function(t,n){return r.includes(n)||(t[n]=e[n]),t}),{});return Promise.resolve().then((function(){var r=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),l=r();t.instance=new e.component(o(o({},i),{},{target:l,props:Object.assign({},n,e.props)}))}))}function c(e,t){return Promise.resolve().then((function(){t.instance.$destroy?t.instance.$destroy():t.instance.destroy()}))}function d(e,t,n){return Promise.resolve().then((function(){t.instance.$set?t.instance.$set(n):t.instance.set(n)}))}}));const Jt=me(Gt)({component:Ut,domElementGetter:()=>document.getElementById("detail-app")}),{bootstrap:qt,mount:Vt,unmount:Kt}=Jt;e({bootstrap:qt,mount:Vt,unmount:Kt});e("Report",Ut)}}}));
|