@enablerr-ui/report 0.2.24 → 0.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/dist/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["@enablerr-ui/layout","@enablerr-ui/form"],(function(t){"use strict";var e;return{setters:[function(t){e=t.getAttractions},function(){}],execute:function(){t("version","0.2.24");function n(){}function o(t){return t()}function r(){return Object.create(null)}function c(t){t.forEach(o)}function l(t){return"function"==typeof t}function u(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function i(t,e){t.appendChild(e)}function s(t,e,n){t.insertBefore(e,n||null)}function a(t){t.parentNode.removeChild(t)}function f(t){return document.createElement(t)}function d(t){return document.createTextNode(t)}function p(){return d(" ")}function m(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function h(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}let b;function g(t){b=t}function y(){if(!b)throw new Error("Function called outside component initialization");return b}const $=[],v=[],k=[],x=[],w=Promise.resolve();let O=!1;function E(t){k.push(t)}let _=!1;const j=new Set;function P(){if(!_){_=!0;do{for(let t=0;t<$.length;t+=1){const e=$[t];g(e),S(e.$$)}for(g(null),$.length=0;v.length;)v.pop()();for(let t=0;t<k.length;t+=1){const e=k[t];j.has(e)||(j.add(e),e())}k.length=0}while($.length);for(;x.length;)x.pop()();O=!1,_=!1,j.clear()}}function S(t){if(null!==t.fragment){t.update(),c(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(E)}}const D=new Set;let q;function C(){q={r:0,c:[],p:q}}function I(){q.r||c(q.c),q=q.p}function B(t,e){t&&t.i&&(D.delete(t),t.i(e))}function G(t,e,n,o){if(t&&t.o){if(D.has(t))return;D.add(t),q&&q.c.push((()=>{D.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}}function T(t,e){const n=e.token={};function o(t,o,r,c){if(e.token!==n)return;e.resolved=c;let l=e.ctx;void 0!==r&&(l=l.slice(),l[r]=c);const u=t&&(e.current=t)(l);let i=!1;e.block&&(e.blocks?e.blocks.forEach(((t,n)=>{n!==o&&t&&(C(),G(t,1,1,(()=>{e.blocks[n]===t&&(e.blocks[n]=null)})),I())})):e.block.d(1),u.c(),B(u,1),u.m(e.mount(),e.anchor),i=!0),e.block=u,e.blocks&&(e.blocks[o]=u),i&&P()}if((r=t)&&"object"==typeof r&&"function"==typeof r.then){const n=y();if(t.then((t=>{g(n),o(e.then,1,e.value,t),g(null)}),(t=>{if(g(n),o(e.catch,2,e.error,t),g(null),!e.hasCatch)throw t})),e.current!==e.pending)return o(e.pending,0),!0}else{if(e.current!==e.then)return o(e.then,1,e.value,t),!0;e.resolved=t}var r}function A(t){t&&t.c()}function F(t,e,n,r){const{fragment:u,on_mount:i,on_destroy:s,after_update:a}=t.$$;u&&u.m(e,n),r||E((()=>{const e=i.map(o).filter(l);s?s.push(...e):c(e),t.$$.on_mount=[]})),a.forEach(E)}function M(t,e){const n=t.$$;null!==n.fragment&&(c(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function N(t,e){-1===t.$$.dirty[0]&&($.push(t),O||(O=!0,w.then(P)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function H(t,e,o,l,u,i,s=[-1]){const f=b;g(t);const d=t.$$={fragment:null,ctx:null,props:i,update:n,not_equal:u,bound:r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(f?f.$$.context:e.context||[]),callbacks:r(),dirty:s,skip_bound:!1};let p=!1;if(d.ctx=o?o(t,e.props||{},((e,n,...o)=>{const r=o.length?o[0]:n;return d.ctx&&u(d.ctx[e],d.ctx[e]=r)&&(!d.skip_bound&&d.bound[e]&&d.bound[e](r),p&&N(t,e)),n})):[],d.update(),p=!0,c(d.before_update),d.fragment=!!l&&l(d.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);d.fragment&&d.fragment.l(t),t.forEach(a)}else d.fragment&&d.fragment.c();e.intro&&B(t.$$.fragment),F(t,e.target,e.anchor,e.customElement),P()}g(f)}function R(t,e,n){const o=t.slice();return o[11]=e[n],o[13]=n,o}function z(t){return{c:n,m:n,p:n,i:n,o:n,d:n}}function L(t){let e,n,o,r,c,l,u,b,g,y=t[10].task.output.url+"",$=t[10].task.report,v=[];for(let e=0;e<$.length;e+=1)v[e]=K(R(t,$,e));const k=t=>G(v[t],1,1,(()=>{v[t]=null}));return{c(){e=f("h4"),n=d(y),o=p(),r=f("div"),c=f("table"),l=f("thead"),l.innerHTML="<tr><th>#</th> \n <th>Datei</th> \n <th>Download</th></tr>",u=p(),b=f("tbody");for(let t=0;t<v.length;t+=1)v[t].c();m(l,"class","tablehead"),m(c,"class","tableFixHead"),m(r,"class","task_list svelte-16l5qel")},m(t,a){s(t,e,a),i(e,n),s(t,o,a),s(t,r,a),i(r,c),i(c,l),i(c,u),i(c,b);for(let t=0;t<v.length;t+=1)v[t].m(b,null);g=!0},p(t,e){if((!g||1&e)&&y!==(y=t[10].task.output.url+"")&&h(n,y),1&e){let n;for($=t[10].task.report,n=0;n<$.length;n+=1){const o=R(t,$,n);v[n]?(v[n].p(o,e),B(v[n],1)):(v[n]=K(o),v[n].c(),B(v[n],1),v[n].m(b,null))}for(C(),n=$.length;n<v.length;n+=1)k(n);I()}},i(t){if(!g){for(let t=0;t<$.length;t+=1)B(v[t]);g=!0}},o(t){v=v.filter(Boolean);for(let t=0;t<v.length;t+=1)G(v[t]);g=!1},d(t){t&&a(e),t&&a(o),t&&a(r),function(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}(v,t)}}}function J(t){let e,n,o;return{c(){e=f("a"),n=d("Download"),m(e,"href",o=t[11].url)},m(t,o){s(t,e,o),i(e,n)},p(t,n){1&n&&o!==(o=t[11].url)&&m(e,"href",o)},d(t){t&&a(e)}}}function K(t){let e,n,o,r,c,l,u,m,b,g,y,$,v=t[13]+1+"",k=t[11].title+"";return g=new t[1]({props:{filled:!0,$$slots:{default:[J]},$$scope:{ctx:t}}}),{c(){e=f("tr"),n=f("td"),o=d(v),r=p(),c=f("td"),l=f("h4"),u=d(k),m=p(),b=f("td"),A(g.$$.fragment),y=p()},m(t,a){s(t,e,a),i(e,n),i(n,o),i(e,r),i(e,c),i(c,l),i(l,u),i(e,m),i(e,b),F(g,b,null),i(e,y),$=!0},p(t,e){(!$||1&e)&&k!==(k=t[11].title+"")&&h(u,k);const n={};16385&e&&(n.$$scope={dirty:e,ctx:t}),g.$set(n)},i(t){$||(B(g.$$.fragment,t),$=!0)},o(t){G(g.$$.fragment,t),$=!1},d(t){t&&a(e),M(g)}}}function Q(t){return{c:n,m:n,p:n,i:n,o:n,d:n}}function U(t){let e,n,o,r,c,l;n=new t[2]({props:{class:"divider",text:"Resultat"}});let u={ctx:t,current:null,token:null,hasCatch:!1,pending:Q,then:L,catch:z,value:10,blocks:[,,,]};return T(c=t[0],u),{c(){e=f("div"),A(n.$$.fragment),o=p(),r=d(""),u.block.c()},m(t,c){s(t,e,c),F(n,e,null),s(t,o,c),s(t,r,c),u.block.m(t,u.anchor=c),u.mount=()=>r.parentNode,u.anchor=r,l=!0},p(e,[n]){t=e,u.ctx=t,1&n&&c!==(c=t[0])&&T(c,u)||function(t,e,n){const o=e.slice(),{resolved:r}=t;t.current===t.then&&(o[t.value]=r),t.current===t.catch&&(o[t.error]=r),t.block.p(o,n)}(u,t,n)},i(t){l||(B(n.$$.fragment,t),B(u.block),l=!0)},o(t){G(n.$$.fragment,t);for(let t=0;t<3;t+=1){G(u.blocks[t])}l=!1},d(t){t&&a(e),M(n),t&&a(o),t&&a(r),u.block.d(t),u.token=null,u=null}}}function V(t,n,o){const{Card:r,Table:c,Button:l,Modal:u,Tabs:i,Divider:s,FormField:a,TextField:f}=e;let{task:d}=n,{eventItem:p}=n;return t.$$set=t=>{"task"in t&&o(0,d=t.task),"eventItem"in t&&o(3,p=t.eventItem)},[d,l,s,p]}class W extends class{$destroy(){M(this,1),this.$destroy=n}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}{constructor(t){var e;super(),document.getElementById("svelte-16l5qel-style")||((e=f("style")).id="svelte-16l5qel-style",e.textContent=".task_list.svelte-16l5qel{flex:auto;overflow-y:auto;overflow-x:hidden;width:99%;border:1px solid #ccc;border-radius:0.5em;margin-top:2em}",i(document.head,e)),H(this,t,V,U,u,{task:0,eventItem:3})}}function X(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Y,Z,tt=(Y=function(t,e){function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function o(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?n(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if("object"!==c(t))throw new Error("single-spa-svelte requires a configuration object");var e=o(o({},l),t);if(!e.component)throw new Error("single-spa-svelte must be passed opts.component");var n={};return{bootstrap:u.bind(null,e,n),mount:i.bind(null,e,n),unmount:s.bind(null,e,n),update:a.bind(null,e,n)}};var l={component:null,domElementGetter:null,props:{}};function u(t){return Promise.resolve()}function i(t,e,n){var r=Object.keys(l),c=Object.keys(t).reduce((function(e,n){return r.includes(n)||(e[n]=t[n]),e}),{});return Promise.resolve().then((function(){var r=function(t,e){return(e=e&&e.customProps?e.customProps:e).domElement?function(){return e.domElement}:e.domElementGetter?function(){return e.domElementGetter(e)}:t.domElementGetter?function(){return t.domElementGetter(e)}:function(t){var e=t.appName||t.name;if(!e)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(e);return function(){var t=document.getElementById(n);return t||((t=document.createElement("div")).id=n,document.body.appendChild(t)),t}}(e)}(t,n),l=r();e.instance=new t.component(o(o({},c),{},{target:l,props:Object.assign({},n,t.props)}))}))}function s(t,e){return Promise.resolve().then((function(){e.instance.$destroy?e.instance.$destroy():e.instance.destroy()}))}function a(t,e,n){return Promise.resolve().then((function(){e.instance.$set?e.instance.$set(n):e.instance.set(n)}))}},Y(Z={exports:{}},Z.exports),Z.exports);const et=X(tt)({component:W,domElementGetter:()=>document.getElementById("detail-app")}),{bootstrap:nt,mount:ot,unmount:rt}=et;t({bootstrap:nt,mount:ot,unmount:rt});t("Report",W)}}}));
|
|
1
|
+
System.register(["@enablerr-ui/layout","@enablerr-ui/form"],(function(t){"use strict";var e,n;return{setters:[function(t){e=t.getAttractions},function(t){n=t.Request}],execute:function(){t("version","0.2.25");function o(){}function r(t){return t()}function l(){return Object.create(null)}function c(t){t.forEach(r)}function i(t){return"function"==typeof t}function u(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(t,e){t.appendChild(e)}function a(t,e,n){t.insertBefore(e,n||null)}function f(t){t.parentNode.removeChild(t)}function d(t){return document.createElement(t)}function p(t){return document.createTextNode(t)}function m(){return p(" ")}function h(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function $(t,e,n,o){t.style.setProperty(e,n,o?"important":"")}let b;function g(t){b=t}function y(){if(!b)throw new Error("Function called outside component initialization");return b}const v=[],w=[],k=[],x=[],O=Promise.resolve();let _=!1;function E(t){k.push(t)}function j(t){x.push(t)}let P=!1;const D=new Set;function I(){if(!P){P=!0;do{for(let t=0;t<v.length;t+=1){const e=v[t];g(e),T(e.$$)}for(g(null),v.length=0;w.length;)w.pop()();for(let t=0;t<k.length;t+=1){const e=k[t];D.has(e)||(D.add(e),e())}k.length=0}while(v.length);for(;x.length;)x.pop()();_=!1,P=!1,D.clear()}}function T(t){if(null!==t.fragment){t.update(),c(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(E)}}const F=new Set;let S;function q(){S={r:0,c:[],p:S}}function C(){S.r||c(S.c),S=S.p}function B(t,e){t&&t.i&&(F.delete(t),t.i(e))}function G(t,e,n,o){if(t&&t.o){if(F.has(t))return;F.add(t),S&&S.c.push((()=>{F.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}}function M(t,e){const n=e.token={};function o(t,o,r,l){if(e.token!==n)return;e.resolved=l;let c=e.ctx;void 0!==r&&(c=c.slice(),c[r]=l);const i=t&&(e.current=t)(c);let u=!1;e.block&&(e.blocks?e.blocks.forEach(((t,n)=>{n!==o&&t&&(q(),G(t,1,1,(()=>{e.blocks[n]===t&&(e.blocks[n]=null)})),C())})):e.block.d(1),i.c(),B(i,1),i.m(e.mount(),e.anchor),u=!0),e.block=i,e.blocks&&(e.blocks[o]=i),u&&I()}if((r=t)&&"object"==typeof r&&"function"==typeof r.then){const n=y();if(t.then((t=>{g(n),o(e.then,1,e.value,t),g(null)}),(t=>{if(g(n),o(e.catch,2,e.error,t),g(null),!e.hasCatch)throw t})),e.current!==e.pending)return o(e.pending,0),!0}else{if(e.current!==e.then)return o(e.then,1,e.value,t),!0;e.resolved=t}var r}const A="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function H(t,e,n){const o=t.$$.props[e];void 0!==o&&(t.$$.bound[o]=n,n(t.$$.ctx[o]))}function N(t){t&&t.c()}function R(t,e,n,o){const{fragment:l,on_mount:u,on_destroy:s,after_update:a}=t.$$;l&&l.m(e,n),o||E((()=>{const e=u.map(r).filter(i);s?s.push(...e):c(e),t.$$.on_mount=[]})),a.forEach(E)}function L(t,e){const n=t.$$;null!==n.fragment&&(c(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function z(t,e){-1===t.$$.dirty[0]&&(v.push(t),_||(_=!0,O.then(I)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function U(t,e,n,r,i,u,s=[-1]){const a=b;g(t);const d=t.$$={fragment:null,ctx:null,props:u,update:o,not_equal:i,bound:l(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:e.context||[]),callbacks:l(),dirty:s,skip_bound:!1};let p=!1;if(d.ctx=n?n(t,e.props||{},((e,n,...o)=>{const r=o.length?o[0]:n;return d.ctx&&i(d.ctx[e],d.ctx[e]=r)&&(!d.skip_bound&&d.bound[e]&&d.bound[e](r),p&&z(t,e)),n})):[],d.update(),p=!0,c(d.before_update),d.fragment=!!r&&r(d.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);d.fragment&&d.fragment.l(t),t.forEach(f)}else d.fragment&&d.fragment.c();e.intro&&B(t.$$.fragment),R(t,e.target,e.anchor,e.customElement),I()}g(a)}class K{$destroy(){L(this,1),this.$destroy=o}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const{document:J}=A;function Q(t,e,n){const o=t.slice();return o[24]=e[n],o[26]=n,o}function V(t){let e;return{c(){e=p("Dokument wählen")},m(t,n){a(t,e,n)},d(t){t&&f(e)}}}function W(t){let e,n;return e=new t[6]({props:{file:t[0]}}),{c(){N(e.$$.fragment)},m(t,o){R(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.file=t[0]),e.$set(o)},i(t){n||(B(e.$$.fragment,t),n=!0)},o(t){G(e.$$.fragment,t),n=!1},d(t){L(e,t)}}}function X(t){let e;return{c(){e=p("Dokument hochladen")},m(t,n){a(t,e,n)},d(t){t&&f(e)}}}function Y(t){return{c:o,m:o,p:o,i:o,o:o,d:o}}function Z(t){let e,n,o,r,l,c,i=t[23],u=[];for(let e=0;e<i.length;e+=1)u[e]=et(Q(t,i,e));const p=t=>G(u[t],1,1,(()=>{u[t]=null}));return{c(){e=d("div"),n=d("table"),o=d("thead"),o.innerHTML="<tr><th>#</th> \n <th>Datei</th> \n <th>Download</th></tr>",r=m(),l=d("tbody");for(let t=0;t<u.length;t+=1)u[t].c();h(o,"class","tablehead"),$(l,"overflow-y","auto"),h(n,"class","tableFixHead"),h(e,"class","task_list svelte-2qb2rt")},m(t,i){a(t,e,i),s(e,n),s(n,o),s(n,r),s(n,l);for(let t=0;t<u.length;t+=1)u[t].m(l,null);c=!0},p(t,e){if(4&e){let n;for(i=t[23],n=0;n<i.length;n+=1){const o=Q(t,i,n);u[n]?(u[n].p(o,e),B(u[n],1)):(u[n]=et(o),u[n].c(),B(u[n],1),u[n].m(l,null))}for(q(),n=i.length;n<u.length;n+=1)p(n);C()}},i(t){if(!c){for(let t=0;t<i.length;t+=1)B(u[t]);c=!0}},o(t){u=u.filter(Boolean);for(let t=0;t<u.length;t+=1)G(u[t]);c=!1},d(t){t&&f(e),function(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}(u,t)}}}function tt(t){let e,n,o;return{c(){e=d("a"),n=p("Download"),h(e,"href",o="/api/userreport/"+t[24]._id),$(e,"color","whitesmoke")},m(t,o){a(t,e,o),s(e,n)},p(t,n){4&n&&o!==(o="/api/userreport/"+t[24]._id)&&h(e,"href",o)},d(t){t&&f(e)}}}function et(t){let e,n,o,r,l,c,i,u,h,$,b,g,y=t[26]+1+"",v=t[24].title+"";return $=new t[3]({props:{filled:!0,$$slots:{default:[tt]},$$scope:{ctx:t}}}),{c(){e=d("tr"),n=d("td"),o=p(y),r=m(),l=d("td"),c=d("h4"),i=p(v),u=m(),h=d("td"),N($.$$.fragment),b=m()},m(t,f){a(t,e,f),s(e,n),s(n,o),s(e,r),s(e,l),s(l,c),s(c,i),s(e,u),s(e,h),R($,h,null),s(e,b),g=!0},p(t,e){(!g||4&e)&&v!==(v=t[24].title+"")&&function(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}(i,v);const n={};134217732&e&&(n.$$scope={dirty:e,ctx:t}),$.$set(n)},i(t){g||(B($.$$.fragment,t),g=!0)},o(t){G($.$$.fragment,t),g=!1},d(t){t&&f(e),L($)}}}function nt(t){let e;return{c(){e=d("div"),e.innerHTML='<table class="tableFixHead"><thead class="tablehead"><tr><th>#</th> \n <th>Datei</th> \n <th>Download</th></tr></thead> \n <tbody><tr><td colspan="3">Kein Reports</td></tr></tbody></table>'},m(t,n){a(t,e,n)},p:o,i:o,o:o,d(t){t&&f(e)}}}function ot(t){let e,n,o,r,l,c,i,u,$,b,g,y,v,k,x,O,_,E,P,D,I;function T(e){t[12](e)}n=new t[4]({props:{class:"divider",text:"Dokumente"}});let F={labelClass:"InputLabel",type:"file",accept:".pdf",id:"fileInput",$$slots:{default:[V]},$$scope:{ctx:t}};void 0!==t[0]&&(F.value=t[0]),u=new t[5]({props:F}),w.push((()=>H(u,"value",T))),u.$on("change",t[9]);let S=null!=t[0]&&W(t);function A(e){t[13](e)}let z={style:"margin-left: 15px;",placeholder:"Titel",type:"text",id:"fileTitle"};void 0!==t[1]&&(z.value=t[1]),v=new t[7]({props:z}),w.push((()=>H(v,"value",A))),_=new t[3]({props:{filled:!0,style:"color: whitesmoke; margin-left: 15px; padding-left: 15px;",$$slots:{default:[X]},$$scope:{ctx:t}}}),_.$on("click",t[14]);let U={ctx:t,current:null,token:null,hasCatch:!1,pending:nt,then:Z,catch:Y,value:23,blocks:[,,,]};return M(D=t[2],U),{c(){e=d("div"),N(n.$$.fragment),o=m(),r=d("table"),l=d("tbody"),c=d("tr"),i=d("td"),N(u.$$.fragment),b=m(),S&&S.c(),g=m(),y=d("td"),N(v.$$.fragment),x=m(),O=d("td"),N(_.$$.fragment),E=m(),P=p(""),U.block.c(),h(l,"class","tablebody"),h(r,"class","tableFixHead")},m(t,f){a(t,e,f),R(n,e,null),a(t,o,f),a(t,r,f),s(r,l),s(l,c),s(c,i),R(u,i,null),s(i,b),S&&S.m(i,null),s(c,g),s(c,y),R(v,y,null),s(c,x),s(c,O),R(_,O,null),a(t,E,f),a(t,P,f),U.block.m(t,U.anchor=f),U.mount=()=>P.parentNode,U.anchor=P,I=!0},p(e,[n]){t=e;const o={};134217728&n&&(o.$$scope={dirty:n,ctx:t}),!$&&1&n&&($=!0,o.value=t[0],j((()=>$=!1))),u.$set(o),null!=t[0]?S?(S.p(t,n),1&n&&B(S,1)):(S=W(t),S.c(),B(S,1),S.m(i,null)):S&&(q(),G(S,1,1,(()=>{S=null})),C());const r={};!k&&2&n&&(k=!0,r.value=t[1],j((()=>k=!1))),v.$set(r);const l={};134217728&n&&(l.$$scope={dirty:n,ctx:t}),_.$set(l),U.ctx=t,4&n&&D!==(D=t[2])&&M(D,U)||function(t,e,n){const o=e.slice(),{resolved:r}=t;t.current===t.then&&(o[t.value]=r),t.current===t.catch&&(o[t.error]=r),t.block.p(o,n)}(U,t,n)},i(t){I||(B(n.$$.fragment,t),B(u.$$.fragment,t),B(S),B(v.$$.fragment,t),B(_.$$.fragment,t),B(U.block),I=!0)},o(t){G(n.$$.fragment,t),G(u.$$.fragment,t),G(S),G(v.$$.fragment,t),G(_.$$.fragment,t);for(let t=0;t<3;t+=1){G(U.blocks[t])}I=!1},d(t){t&&f(e),L(n),t&&f(o),t&&f(r),L(u),S&&S.d(),L(v),L(_),t&&f(E),t&&f(P),U.block.d(t),U.token=null,U=null}}}function rt(t,o,r){let l;const{Card:c,Table:i,Button:u,Modal:s,Tabs:a,Divider:f,FileInput:d,FileTile:p,FileDropzone:m,FormField:h,TextField:$}=e;let{task:b}=o,{eventItem:g}=o;const y=async()=>{let t=(await b).task.id;return await n.getUserReports(t)};let v,w="",k=y();async function x(){const t=new FormData,e=document.getElementById("fileInput").files[0];t.append("title",w),t.append("file",e),await n.uploadUserReport(l,t),r(2,k=y())}return t.$$set=t=>{"task"in t&&r(10,b=t.task),"eventItem"in t&&r(11,g=t.eventItem)},t.$$.update=()=>{1024&t.$$.dirty&&(l=b.task.id)},[v,w,k,u,f,d,p,$,x,t=>{const e=t.detail.value;r(1,w=e?e.name.split(".")[0]:"")},b,g,function(t){v=t,r(0,v)},function(t){w=t,r(1,w)},()=>x()]}class lt extends K{constructor(t){var e;super(),J.getElementById("svelte-2qb2rt-style")||((e=d("style")).id="svelte-2qb2rt-style",e.textContent=".task_list.svelte-2qb2rt{flex:auto;overflow-y:auto;overflow-x:hidden;width:99%;height:100%;border:1px solid #ccc;border-radius:0.5em;margin-top:2em}.InputLabel{border:#326173 1px solid}",s(J.head,e)),U(this,t,rt,ot,u,{task:10,eventItem:11})}}function ct(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var it,ut,st=(it=function(t,e){function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function o(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?n(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if("object"!==l(t))throw new Error("single-spa-svelte requires a configuration object");var e=o(o({},c),t);if(!e.component)throw new Error("single-spa-svelte must be passed opts.component");var n={};return{bootstrap:i.bind(null,e,n),mount:u.bind(null,e,n),unmount:s.bind(null,e,n),update:a.bind(null,e,n)}};var c={component:null,domElementGetter:null,props:{}};function i(t){return Promise.resolve()}function u(t,e,n){var r=Object.keys(c),l=Object.keys(t).reduce((function(e,n){return r.includes(n)||(e[n]=t[n]),e}),{});return Promise.resolve().then((function(){var r=function(t,e){return(e=e&&e.customProps?e.customProps:e).domElement?function(){return e.domElement}:e.domElementGetter?function(){return e.domElementGetter(e)}:t.domElementGetter?function(){return t.domElementGetter(e)}:function(t){var e=t.appName||t.name;if(!e)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(e);return function(){var t=document.getElementById(n);return t||((t=document.createElement("div")).id=n,document.body.appendChild(t)),t}}(e)}(t,n),c=r();e.instance=new t.component(o(o({},l),{},{target:c,props:Object.assign({},n,t.props)}))}))}function s(t,e){return Promise.resolve().then((function(){e.instance.$destroy?e.instance.$destroy():e.instance.destroy()}))}function a(t,e,n){return Promise.resolve().then((function(){e.instance.$set?e.instance.$set(n):e.instance.set(n)}))}},it(ut={exports:{}},ut.exports),ut.exports);const at=ct(st)({component:lt,domElementGetter:()=>document.getElementById("detail-app")}),{bootstrap:ft,mount:dt,unmount:pt}=at;t({bootstrap:ft,mount:dt,unmount:pt});t("Report",lt)}}}));
|