@enablerr-ui/settings 0.2.11 → 0.2.12
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,n,o,i;return{setters:[function(t){e=t.getAttractions},function(t){n=t.Request,o=t.settings,i=t.toasts}],execute:function(){t("version","0.2.11");function s(){}function l(t){return t()}function r(){return Object.create(null)}function c(t){t.forEach(l)}function a(t){return"function"==typeof t}function u(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function d(t,e,n){t.$$.on_destroy.push(function(t,...e){if(null==t)return s;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}(e,n))}function f(t,e){t.appendChild(e)}function g(t,e,n){t.insertBefore(e,n||null)}function m(t){t.parentNode.removeChild(t)}function p(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function h(t){return document.createElement(t)}function v(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function $(t){return document.createTextNode(t)}function y(){return $(" ")}function x(){return $("")}function w(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function k(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function b(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function z(t,e){t.value=null==e?"":e}function C(t,e,n){t.classList[n?"add":"remove"](e)}let L;function N(t){L=t}function S(){if(!L)throw new Error("Function called outside component initialization");return L}function M(t){S().$$.on_mount.push(t)}function _(){const t=S();return(e,n)=>{const o=t.$$.callbacks[e];if(o){const i=function(t,e){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,e),n}(e,n);o.slice().forEach((e=>{e.call(t,i)}))}}}const j=[],E=[],O=[],T=[],D=Promise.resolve();let B=!1;function I(){B||(B=!0,D.then(R))}function W(t){O.push(t)}function A(t){T.push(t)}let P=!1;const q=new Set;function R(){if(!P){P=!0;do{for(let t=0;t<j.length;t+=1){const e=j[t];N(e),J(e.$$)}for(N(null),j.length=0;E.length;)E.pop()();for(let t=0;t<O.length;t+=1){const e=O[t];q.has(e)||(q.add(e),e())}O.length=0}while(j.length);for(;T.length;)T.pop()();B=!1,P=!1,q.clear()}}function J(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(W)}}const F=new Set;let G;function V(){G={r:0,c:[],p:G}}function H(){G.r||c(G.c),G=G.p}function U(t,e){t&&t.i&&(F.delete(t),t.i(e))}function K(t,e,n,o){if(t&&t.o){if(F.has(t))return;F.add(t),G&&G.c.push((()=>{F.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}}function Z(t,e){const n=e.token={};function o(t,o,i,s){if(e.token!==n)return;e.resolved=s;let l=e.ctx;void 0!==i&&(l=l.slice(),l[i]=s);const r=t&&(e.current=t)(l);let c=!1;e.block&&(e.blocks?e.blocks.forEach(((t,n)=>{n!==o&&t&&(V(),K(t,1,1,(()=>{e.blocks[n]===t&&(e.blocks[n]=null)})),H())})):e.block.d(1),r.c(),U(r,1),r.m(e.mount(),e.anchor),c=!0),e.block=r,e.blocks&&(e.blocks[o]=r),c&&R()}if((i=t)&&"object"==typeof i&&"function"==typeof i.then){const n=S();if(t.then((t=>{N(n),o(e.then,1,e.value,t),N(null)}),(t=>{if(N(n),o(e.catch,2,e.error,t),N(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 i}function Q(t,e,n){const o=e.slice(),{resolved:i}=t;t.current===t.then&&(o[t.value]=i),t.current===t.catch&&(o[t.error]=i),t.block.p(o,n)}const X="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Y(t,e){K(t,1,1,(()=>{e.delete(t.key)}))}function tt(t,e,n){const o=t.$$.props[e];void 0!==o&&(t.$$.bound[o]=n,n(t.$$.ctx[o]))}function et(t){t&&t.c()}function nt(t,e,n,o){const{fragment:i,on_mount:s,on_destroy:r,after_update:u}=t.$$;i&&i.m(e,n),o||W((()=>{const e=s.map(l).filter(a);r?r.push(...e):c(e),t.$$.on_mount=[]})),u.forEach(W)}function ot(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 it(t,e,n,o,i,l,a=[-1]){const u=L;N(t);const d=t.$$={fragment:null,ctx:null,props:l,update:s,not_equal:i,bound:r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(u?u.$$.context:e.context||[]),callbacks:r(),dirty:a,skip_bound:!1};let f=!1;if(d.ctx=n?n(t,e.props||{},((e,n,...o)=>{const s=o.length?o[0]:n;return d.ctx&&i(d.ctx[e],d.ctx[e]=s)&&(!d.skip_bound&&d.bound[e]&&d.bound[e](s),f&&function(t,e){-1===t.$$.dirty[0]&&(j.push(t),I(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],d.update(),f=!0,c(d.before_update),d.fragment=!!o&&o(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(m)}else d.fragment&&d.fragment.c();e.intro&&U(t.$$.fragment),nt(t,e.target,e.anchor,e.customElement),R()}N(u)}class st{$destroy(){ot(this,1),this.$destroy=s}$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)}}function lt(t){let e,n,o,i,s,l,r,a,u,d,p,v,$,x,b,z,C,L,N,S,M,_,j,O,T,D,B,I,W,P,q,R,J,F,G,V,H,Z,Q,X,Y,it,st,lt,ct,at,ut,dt,ft,gt;function mt(e){t[4](e)}let pt={placeholder:"Berufsbezeichnung"};function ht(e){t[6](e)}void 0!==t[0].jobDescription&&(pt.value=t[0].jobDescription),l=new t[2]({props:pt}),E.push((()=>tt(l,"value",mt))),L=new t[2]({props:{placeholder:"E-Mail",disabled:!0,value:t[0].email}});let vt={placeholder:"Vorname"};function $t(e){t[7](e)}void 0!==t[0].firstName&&(vt.value=t[0].firstName),O=new t[2]({props:vt}),E.push((()=>tt(O,"value",ht)));let yt={placeholder:"Nachname"};function xt(e){t[8](e)}void 0!==t[0].lastName&&(yt.value=t[0].lastName),q=new t[2]({props:yt}),E.push((()=>tt(q,"value",$t)));let wt={placeholder:"Titel"};return void 0!==t[0].listTitle&&(wt.value=t[0].listTitle),Z=new t[2]({props:wt}),E.push((()=>tt(Z,"value",xt))),ut=new t[1]({props:{filled:!0,$$slots:{default:[rt]},$$scope:{ctx:t}}}),ut.$on("click",t[3]),{c(){e=h("form"),n=h("div"),o=h("div"),o.textContent="Berufsbezeichnung",i=y(),s=h("div"),et(l.$$.fragment),a=y(),u=h("div"),d=h("input"),p=y(),v=h("label"),v.textContent="Meine Berufsbezeichnung in meinem Profil anzeigen.",$=y(),x=h("div"),b=h("div"),b.textContent="E-Mail",z=y(),C=h("div"),et(L.$$.fragment),N=y(),S=h("div"),M=h("div"),M.textContent="Vorname",_=y(),j=h("div"),et(O.$$.fragment),D=y(),B=h("div"),I=h("div"),I.textContent="Nachname",W=y(),P=h("div"),et(q.$$.fragment),J=y(),F=h("div"),G=h("div"),G.textContent="Titel Aufgabenliste",V=y(),H=h("div"),et(Z.$$.fragment),X=y(),Y=h("div"),it=h("div"),it.textContent="Rollen nicht anzeigen",st=y(),lt=h("div"),ct=h("input"),at=y(),et(ut.$$.fragment),k(o,"class","form-field--label"),k(d,"type","checkbox"),k(d,"id","showJobDesc"),k(d,"name","shwoJobDescriptionInBio"),k(v,"for","showJobDesc"),k(u,"class","checkbox"),k(s,"class","form-field--content"),k(n,"class","form-field"),k(b,"class","form-field--label"),k(C,"class","form-field--content"),k(x,"class","form-field"),k(M,"class","form-field--label"),k(j,"class","form-field--content"),k(S,"class","form-field"),k(I,"class","form-field--label"),k(P,"class","form-field--content"),k(B,"class","form-field"),k(G,"class","form-field--label"),k(H,"class","form-field--content"),k(F,"class","form-field"),k(it,"class","form-field--label svelte-c1yie6"),k(ct,"type","checkbox"),k(ct,"id","hideRoles"),k(ct,"name","hideRoles"),k(lt,"class","checkbox svelte-c1yie6"),k(Y,"class","form-field"),k(e,"class","form-setting")},m(r,c){g(r,e,c),f(e,n),f(n,o),f(n,i),f(n,s),nt(l,s,null),f(s,a),f(s,u),f(u,d),d.checked=t[0].showJobDescription,f(u,p),f(u,v),f(e,$),f(e,x),f(x,b),f(x,z),f(x,C),nt(L,C,null),f(e,N),f(e,S),f(S,M),f(S,_),f(S,j),nt(O,j,null),f(e,D),f(e,B),f(B,I),f(B,W),f(B,P),nt(q,P,null),f(e,J),f(e,F),f(F,G),f(F,V),f(F,H),nt(Z,H,null),f(e,X),f(e,Y),f(Y,it),f(Y,st),f(Y,lt),f(lt,ct),ct.checked=t[0].hideRoles,g(r,at,c),nt(ut,r,c),dt=!0,ft||(gt=[w(d,"change",t[5]),w(ct,"change",t[9])],ft=!0)},p(t,e){const n={};!r&&1&e&&(r=!0,n.value=t[0].jobDescription,A((()=>r=!1))),l.$set(n),1&e&&(d.checked=t[0].showJobDescription);const o={};1&e&&(o.value=t[0].email),L.$set(o);const i={};!T&&1&e&&(T=!0,i.value=t[0].firstName,A((()=>T=!1))),O.$set(i);const s={};!R&&1&e&&(R=!0,s.value=t[0].lastName,A((()=>R=!1))),q.$set(s);const c={};!Q&&1&e&&(Q=!0,c.value=t[0].listTitle,A((()=>Q=!1))),Z.$set(c),1&e&&(ct.checked=t[0].hideRoles);const a={};4096&e&&(a.$$scope={dirty:e,ctx:t}),ut.$set(a)},i(t){dt||(U(l.$$.fragment,t),U(L.$$.fragment,t),U(O.$$.fragment,t),U(q.$$.fragment,t),U(Z.$$.fragment,t),U(ut.$$.fragment,t),dt=!0)},o(t){K(l.$$.fragment,t),K(L.$$.fragment,t),K(O.$$.fragment,t),K(q.$$.fragment,t),K(Z.$$.fragment,t),K(ut.$$.fragment,t),dt=!1},d(t){t&&m(e),ot(l),ot(L),ot(O),ot(q),ot(Z),t&&m(at),ot(ut,t),ft=!1,c(gt)}}}function rt(t){let e;return{c(){e=$("Speichern")},m(t,n){g(t,e,n)},d(t){t&&m(e)}}}function ct(t){let e,n,o,i,s=t[0]&<(t);return{c(){e=h("div"),n=h("h2"),n.textContent="Mein Profil",o=y(),s&&s.c()},m(t,l){g(t,e,l),f(e,n),f(e,o),s&&s.m(e,null),i=!0},p(t,[n]){t[0]?s?(s.p(t,n),1&n&&U(s,1)):(s=lt(t),s.c(),U(s,1),s.m(e,null)):s&&(V(),K(s,1,1,(()=>{s=null})),H())},i(t){i||(U(s),i=!0)},o(t){K(s),i=!1},d(t){t&&m(e),s&&s.d()}}}function at(t,n,o){const{Button:i,TextField:s,FormField:l}=e;let{settings:r}=n;const c=_();return t.$$set=t=>{"settings"in t&&o(0,r=t.settings)},[r,i,s,function(){c("save")},function(e){t.$$.not_equal(r.jobDescription,e)&&(r.jobDescription=e,o(0,r))},function(){r.showJobDescription=this.checked,o(0,r)},function(e){t.$$.not_equal(r.firstName,e)&&(r.firstName=e,o(0,r))},function(e){t.$$.not_equal(r.lastName,e)&&(r.lastName=e,o(0,r))},function(e){t.$$.not_equal(r.listTitle,e)&&(r.listTitle=e,o(0,r))},function(){r.hideRoles=this.checked,o(0,r)}]}class ut extends st{constructor(t){var e;super(),document.getElementById("svelte-c1yie6-style")||((e=h("style")).id="svelte-c1yie6-style",e.textContent="div.form-field--label.svelte-c1yie6+div.checkbox.svelte-c1yie6{padding-left:.75em}",f(document.head,e)),it(this,t,at,ct,u,{settings:0})}}function dt(t,e,n){const o=t.slice();return o[11]=e[n],o}function ft(t){let e,n,o,i,s,l,r,c,a,u,d,v,$,x,w,b,z,C,L,N,S,M,_,j,O,T,D,B,I;function W(e){t[6](e)}let P={};function q(e){t[7](e)}void 0!==t[0].notificationActivated&&(P.value=t[0].notificationActivated),l=new t[3]({props:P}),E.push((()=>tt(l,"value",W)));let R={};function J(e){t[8](e)}void 0!==t[0].showNotifications&&(R.value=t[0].showNotifications),$=new t[3]({props:R}),E.push((()=>tt($,"value",q)));let F={};void 0!==t[0].notificationToMail&&(F.value=t[0].notificationToMail),N=new t[3]({props:F}),E.push((()=>tt(N,"value",J)));let G=t[1],V=[];for(let e=0;e<G.length;e+=1)V[e]=gt(dt(t,G,e));return B=new t[2]({props:{filled:!0,$$slots:{default:[mt]},$$scope:{ctx:t}}}),B.$on("click",t[4]),{c(){e=h("form"),n=h("div"),o=h("div"),o.textContent="Benachrichtigungen aktivieren",i=y(),s=h("div"),et(l.$$.fragment),c=y(),a=h("div"),u=h("div"),u.innerHTML='Ungelesene Nachricht aktivieren \n <p class="helptext">Zeigt einen roten Kreis auf der Glocke an, wenn Sie ungelesene Nachrichten\n haben.</p>',d=y(),v=h("div"),et($.$$.fragment),w=y(),b=h("div"),z=h("div"),z.textContent="Benachrichtigungen an E-Mail senden",C=y(),L=h("div"),et(N.$$.fragment),M=y(),_=h("div"),j=h("div"),j.innerHTML='Arten von Benachrichtigungen\n <p class="helptext">Wählen Sie aus, welche Arten von Benachrichtigungen Sie sehen\n möchten.</p>',O=y(),T=h("div");for(let t=0;t<V.length;t+=1)V[t].c();D=y(),et(B.$$.fragment),k(o,"class","form-field--label switch"),k(s,"class","form-field--content"),k(n,"class","form-field"),k(u,"class","form-field--label switch"),k(v,"class","form-field--content"),k(a,"class","form-field"),k(z,"class","form-field--label switch"),k(L,"class","form-field--content"),k(b,"class","form-field"),k(j,"class","form-field--label"),k(T,"class","form-field--content"),k(_,"class","form-field"),k(e,"class","form-setting")},m(t,r){g(t,e,r),f(e,n),f(n,o),f(n,i),f(n,s),nt(l,s,null),f(e,c),f(e,a),f(a,u),f(a,d),f(a,v),nt($,v,null),f(e,w),f(e,b),f(b,z),f(b,C),f(b,L),nt(N,L,null),f(e,M),f(e,_),f(_,j),f(_,O),f(_,T);for(let t=0;t<V.length;t+=1)V[t].m(T,null);g(t,D,r),nt(B,t,r),I=!0},p(t,e){const n={};!r&&1&e&&(r=!0,n.value=t[0].notificationActivated,A((()=>r=!1))),l.$set(n);const o={};!x&&1&e&&(x=!0,o.value=t[0].showNotifications,A((()=>x=!1))),$.$set(o);const i={};if(!S&&1&e&&(S=!0,i.value=t[0].notificationToMail,A((()=>S=!1))),N.$set(i),35&e){let n;for(G=t[1],n=0;n<G.length;n+=1){const o=dt(t,G,n);V[n]?V[n].p(o,e):(V[n]=gt(o),V[n].c(),V[n].m(T,null))}for(;n<V.length;n+=1)V[n].d(1);V.length=G.length}const s={};16384&e&&(s.$$scope={dirty:e,ctx:t}),B.$set(s)},i(t){I||(U(l.$$.fragment,t),U($.$$.fragment,t),U(N.$$.fragment,t),U(B.$$.fragment,t),I=!0)},o(t){K(l.$$.fragment,t),K($.$$.fragment,t),K(N.$$.fragment,t),K(B.$$.fragment,t),I=!1},d(t){t&&m(e),ot(l),ot($),ot(N),p(V,t),t&&m(D),ot(B,t)}}}function gt(t){let e,n,o,i,s,l,r,c,u,d,p,v=t[11].type+"";return{c(){e=h("div"),n=h("input"),s=y(),l=h("label"),r=$(v),u=y(),n.checked=o=t[0].typesOfNotification.includes(t[11].type),k(n,"type","checkbox"),k(n,"id",i=t[11].id),k(l,"for",c=t[11].id)},m(o,i){g(o,e,i),f(e,n),f(e,s),f(e,l),f(l,r),f(e,u),d||(p=w(n,"change",(function(){a(t[5](t[11].type))&&t[5](t[11].type).apply(this,arguments)})),d=!0)},p(e,s){t=e,3&s&&o!==(o=t[0].typesOfNotification.includes(t[11].type))&&(n.checked=o),2&s&&i!==(i=t[11].id)&&k(n,"id",i),2&s&&v!==(v=t[11].type+"")&&b(r,v),2&s&&c!==(c=t[11].id)&&k(l,"for",c)},d(t){t&&m(e),d=!1,p()}}}function mt(t){let e;return{c(){e=$("Speichern")},m(t,n){g(t,e,n)},d(t){t&&m(e)}}}function pt(t){let e,n,o,i,s=t[0]&&ft(t);return{c(){e=h("div"),n=h("h2"),n.textContent="Meine Benachrichtigungen",o=y(),s&&s.c()},m(t,l){g(t,e,l),f(e,n),f(e,o),s&&s.m(e,null),i=!0},p(t,[n]){t[0]?s?(s.p(t,n),1&n&&U(s,1)):(s=ft(t),s.c(),U(s,1),s.m(e,null)):s&&(V(),K(s,1,1,(()=>{s=null})),H())},i(t){i||(U(s),i=!0)},o(t){K(s),i=!1},d(t){t&&m(e),s&&s.d()}}}function ht(t,o,i){const{Button:s,TextField:l,Switch:r}=e;let{settings:c}=o,a=[];const u=_();return M((async()=>{i(1,a=(await n.getNotificationTypes()).filter((({active:t})=>t)))})),t.$$set=t=>{"settings"in t&&i(0,c=t.settings)},[c,a,s,r,function(){u("save")},function(t){const e=c.typesOfNotification.findIndex((e=>e===t));e>-1?c.typesOfNotification.splice(e,1):c.typesOfNotification.unshift(t)},function(e){t.$$.not_equal(c.notificationActivated,e)&&(c.notificationActivated=e,i(0,c))},function(e){t.$$.not_equal(c.showNotifications,e)&&(c.showNotifications=e,i(0,c))},function(e){t.$$.not_equal(c.notificationToMail,e)&&(c.notificationToMail=e,i(0,c))}]}class vt extends st{constructor(t){super(),it(this,t,ht,pt,u,{settings:0})}}function $t(t){let e,n,o,i,l;return{c(){e=v("svg"),n=v("path"),o=v("line"),i=v("line"),k(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"),k(o,"x1","12"),k(o,"y1","9"),k(o,"x2","12"),k(o,"y2","13"),k(i,"x1","12"),k(i,"y1","17"),k(i,"x2","12.01"),k(i,"y2","17"),k(e,"xmlns","http://www.w3.org/2000/svg"),k(e,"width",t[0]),k(e,"height",t[0]),k(e,"fill","none"),k(e,"viewBox","0 0 24 24"),k(e,"stroke","currentColor"),k(e,"stroke-width",t[1]),k(e,"stroke-linecap","round"),k(e,"stroke-linejoin","round"),k(e,"class",l="feather feather-alert-triangle "+t[2])},m(t,s){g(t,e,s),f(e,n),f(e,o),f(e,i)},p(t,[n]){1&n&&k(e,"width",t[0]),1&n&&k(e,"height",t[0]),2&n&&k(e,"stroke-width",t[1]),4&n&&l!==(l="feather feather-alert-triangle "+t[2])&&k(e,"class",l)},i:s,o:s,d(t){t&&m(e)}}}function yt(t,e,n){let{size:o="100%"}=e,{strokeWidth:i=2}=e,{class:s=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,i=t.strokeWidth),"class"in t&&n(2,s=t.class)},[o,i,s]}class xt extends st{constructor(t){super(),it(this,t,yt,$t,u,{size:0,strokeWidth:1,class:2})}}function wt(t){let e,n,o,i;return{c(){e=v("svg"),n=v("line"),o=v("polyline"),k(n,"x1","19"),k(n,"y1","12"),k(n,"x2","5"),k(n,"y2","12"),k(o,"points","12 19 5 12 12 5"),k(e,"xmlns","http://www.w3.org/2000/svg"),k(e,"width",t[0]),k(e,"height",t[0]),k(e,"fill","none"),k(e,"viewBox","0 0 24 24"),k(e,"stroke","currentColor"),k(e,"stroke-width",t[1]),k(e,"stroke-linecap","round"),k(e,"stroke-linejoin","round"),k(e,"class",i="feather feather-arrow-left "+t[2])},m(t,i){g(t,e,i),f(e,n),f(e,o)},p(t,[n]){1&n&&k(e,"width",t[0]),1&n&&k(e,"height",t[0]),2&n&&k(e,"stroke-width",t[1]),4&n&&i!==(i="feather feather-arrow-left "+t[2])&&k(e,"class",i)},i:s,o:s,d(t){t&&m(e)}}}function kt(t,e,n){let{size:o="100%"}=e,{strokeWidth:i=2}=e,{class:s=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,i=t.strokeWidth),"class"in t&&n(2,s=t.class)},[o,i,s]}class bt extends st{constructor(t){super(),it(this,t,kt,wt,u,{size:0,strokeWidth:1,class:2})}}function zt(t){let e,n,o,i;return{c(){e=v("svg"),n=v("path"),o=v("path"),k(n,"d","M12 20h9"),k(o,"d","M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"),k(e,"xmlns","http://www.w3.org/2000/svg"),k(e,"width",t[0]),k(e,"height",t[0]),k(e,"fill","none"),k(e,"viewBox","0 0 24 24"),k(e,"stroke","currentColor"),k(e,"stroke-width",t[1]),k(e,"stroke-linecap","round"),k(e,"stroke-linejoin","round"),k(e,"class",i="feather feather-edit-3 "+t[2])},m(t,i){g(t,e,i),f(e,n),f(e,o)},p(t,[n]){1&n&&k(e,"width",t[0]),1&n&&k(e,"height",t[0]),2&n&&k(e,"stroke-width",t[1]),4&n&&i!==(i="feather feather-edit-3 "+t[2])&&k(e,"class",i)},i:s,o:s,d(t){t&&m(e)}}}function Ct(t,e,n){let{size:o="100%"}=e,{strokeWidth:i=2}=e,{class:s=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,i=t.strokeWidth),"class"in t&&n(2,s=t.class)},[o,i,s]}class Lt extends st{constructor(t){super(),it(this,t,Ct,zt,u,{size:0,strokeWidth:1,class:2})}}function Nt(t){let e,n,o,i;return{c(){e=v("svg"),n=v("line"),o=v("line"),k(n,"x1","12"),k(n,"y1","5"),k(n,"x2","12"),k(n,"y2","19"),k(o,"x1","5"),k(o,"y1","12"),k(o,"x2","19"),k(o,"y2","12"),k(e,"xmlns","http://www.w3.org/2000/svg"),k(e,"width",t[0]),k(e,"height",t[0]),k(e,"fill","none"),k(e,"viewBox","0 0 24 24"),k(e,"stroke","currentColor"),k(e,"stroke-width",t[1]),k(e,"stroke-linecap","round"),k(e,"stroke-linejoin","round"),k(e,"class",i="feather feather-plus "+t[2])},m(t,i){g(t,e,i),f(e,n),f(e,o)},p(t,[n]){1&n&&k(e,"width",t[0]),1&n&&k(e,"height",t[0]),2&n&&k(e,"stroke-width",t[1]),4&n&&i!==(i="feather feather-plus "+t[2])&&k(e,"class",i)},i:s,o:s,d(t){t&&m(e)}}}function St(t,e,n){let{size:o="100%"}=e,{strokeWidth:i=2}=e,{class:s=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,i=t.strokeWidth),"class"in t&&n(2,s=t.class)},[o,i,s]}class Mt extends st{constructor(t){super(),it(this,t,St,Nt,u,{size:0,strokeWidth:1,class:2})}}function _t(t){let e,n,o,i,l,r;return{c(){e=v("svg"),n=v("polyline"),o=v("path"),i=v("line"),l=v("line"),k(n,"points","3 6 5 6 21 6"),k(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"),k(i,"x1","10"),k(i,"y1","11"),k(i,"x2","10"),k(i,"y2","17"),k(l,"x1","14"),k(l,"y1","11"),k(l,"x2","14"),k(l,"y2","17"),k(e,"xmlns","http://www.w3.org/2000/svg"),k(e,"width",t[0]),k(e,"height",t[0]),k(e,"fill","none"),k(e,"viewBox","0 0 24 24"),k(e,"stroke","currentColor"),k(e,"stroke-width",t[1]),k(e,"stroke-linecap","round"),k(e,"stroke-linejoin","round"),k(e,"class",r="feather feather-trash-2 "+t[2])},m(t,s){g(t,e,s),f(e,n),f(e,o),f(e,i),f(e,l)},p(t,[n]){1&n&&k(e,"width",t[0]),1&n&&k(e,"height",t[0]),2&n&&k(e,"stroke-width",t[1]),4&n&&r!==(r="feather feather-trash-2 "+t[2])&&k(e,"class",r)},i:s,o:s,d(t){t&&m(e)}}}function jt(t,e,n){let{size:o="100%"}=e,{strokeWidth:i=2}=e,{class:s=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,i=t.strokeWidth),"class"in t&&n(2,s=t.class)},[o,i,s]}class Et extends st{constructor(t){super(),it(this,t,jt,_t,u,{size:0,strokeWidth:1,class:2})}}const{Map:Ot}=X;function Tt(t,e,n){const o=t.slice();return o[28]=e[n],o}function Dt(t,e,n){const o=t.slice();return o[32]=e[n],o[34]=n,o}function Bt(t){let e,n,o,i,s,l,r,a,u,d,v,$,x,b,C,L,N,S,M,_,j,O,T,D,B,I,W,P,q,R,J,F,G,V,H;function X(e){t[15](e)}let Y={type:"text",placeholder:"Neuer Layout Name"};function it(e){t[16](e)}void 0!==t[0].id&&(Y.value=t[0].id),i=new t[5]({props:Y}),E.push((()=>tt(i,"value",X)));let st={slotLeft:!0,$$slots:{default:[It]},$$scope:{ctx:t}};void 0!==t[0].activated&&(st.value=t[0].activated),a=new t[9]({props:st}),E.push((()=>tt(a,"value",it))),v=new t[6]({});let lt={ctx:t,current:null,token:null,hasCatch:!1,pending:Jt,then:At,catch:Wt,value:31,blocks:[,,,]};Z(M=t[2],lt),j=new t[6]({});let rt=t[10],ct=[];for(let e=0;e<rt.length;e+=1)ct[e]=Ft(Tt(t,rt,e));let at=t[4]&&Gt();return F=new t[8]({props:{filled:!0,class:"saveBtnLayout",$$slots:{default:[Vt]},$$scope:{ctx:t}}}),F.$on("click",t[23]),{c(){e=h("div"),n=h("p"),n.textContent="Name des Layouts",o=y(),et(i.$$.fragment),l=y(),r=h("div"),et(a.$$.fragment),d=y(),et(v.$$.fragment),$=y(),x=h("div"),b=h("label"),b.textContent="Vorhandene Module",C=y(),L=h("input"),N=y(),S=h("div"),lt.block.c(),_=y(),et(j.$$.fragment),O=y(),T=h("div"),D=h("h1"),D.textContent="Wochentage",B=y(),I=h("p"),I.textContent="Wählen Sie die Tage, an denen die Vorlage angezeigt werden soll.",W=y(),P=h("div");for(let t=0;t<ct.length;t+=1)ct[t].c();q=y(),at&&at.c(),R=y(),J=h("div"),et(F.$$.fragment),k(r,"class","layout-activated-switch svelte-1vkufz4"),k(b,"for","moduleSearch"),k(b,"id","textModule"),k(b,"class","svelte-1vkufz4"),k(L,"id","moduleSearch"),k(L,"type","search"),k(L,"placeholder","suche..."),k(L,"class","search_bar svelte-1vkufz4"),k(x,"class","module svelte-1vkufz4"),k(S,"class","moduleCards svelte-1vkufz4"),k(P,"class","weekdays svelte-1vkufz4"),k(J,"class","saveBtnDiv svelte-1vkufz4"),k(e,"class","newLayoutContent")},m(s,c){g(s,e,c),f(e,n),f(e,o),nt(i,e,null),f(e,l),f(e,r),nt(a,r,null),f(e,d),nt(v,e,null),f(e,$),f(e,x),f(x,b),f(x,C),f(x,L),z(L,t[3]),f(e,N),f(e,S),lt.block.m(S,lt.anchor=null),lt.mount=()=>S,lt.anchor=null,f(e,_),nt(j,e,null),f(e,O),f(e,T),f(T,D),f(T,B),f(T,I),f(T,W),f(T,P);for(let t=0;t<ct.length;t+=1)ct[t].m(P,null);f(e,q),at&&at.m(e,null),f(e,R),f(e,J),nt(F,J,null),G=!0,V||(H=[w(L,"input",t[17]),w(L,"input",t[18])],V=!0)},p(n,o){t=n;const l={};!s&&1&o[0]&&(s=!0,l.value=t[0].id,A((()=>s=!1))),i.$set(l);const r={};if(16&o[1]&&(r.$$scope={dirty:o,ctx:t}),!u&&1&o[0]&&(u=!0,r.value=t[0].activated,A((()=>u=!1))),a.$set(r),8&o[0]&&z(L,t[3]),lt.ctx=t,4&o[0]&&M!==(M=t[2])&&Z(M,lt)||Q(lt,t,o),17409&o[0]){let e;for(rt=t[10],e=0;e<rt.length;e+=1){const n=Tt(t,rt,e);ct[e]?ct[e].p(n,o):(ct[e]=Ft(n),ct[e].c(),ct[e].m(P,null))}for(;e<ct.length;e+=1)ct[e].d(1);ct.length=rt.length}t[4]?at||(at=Gt(),at.c(),at.m(e,R)):at&&(at.d(1),at=null);const c={};16&o[1]&&(c.$$scope={dirty:o,ctx:t}),F.$set(c)},i(t){G||(U(i.$$.fragment,t),U(a.$$.fragment,t),U(v.$$.fragment,t),U(lt.block),U(j.$$.fragment,t),U(F.$$.fragment,t),G=!0)},o(t){K(i.$$.fragment,t),K(a.$$.fragment,t),K(v.$$.fragment,t);for(let t=0;t<3;t+=1){K(lt.blocks[t])}K(j.$$.fragment,t),K(F.$$.fragment,t),G=!1},d(t){t&&m(e),ot(i),ot(a),ot(v),lt.block.d(),lt.token=null,lt=null,ot(j),p(ct,t),at&&at.d(),ot(F),V=!1,c(H)}}}function It(t){let e;return{c(){e=h("span"),e.textContent="Aktivieren Sie das Modul",k(e,"class","mr svelte-1vkufz4")},m(t,n){g(t,e,n)},d(t){t&&m(e)}}}function Wt(t){return{c:s,m:s,p:s,i:s,o:s,d:s}}function At(t){let e,n,o=[],i=new Ot,s=t[31];const l=t=>t[34];for(let e=0;e<s.length;e+=1){let n=Dt(t,s,e),r=l(n);i.set(r,o[e]=Rt(r,n))}return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=x()},m(t,i){for(let e=0;e<o.length;e+=1)o[e].m(t,i);g(t,e,i),n=!0},p(t,n){2053&n[0]&&(s=t[31],V(),o=function(t,e,n,o,i,s,l,r,c,a,u,d){let f=t.length,g=s.length,m=f;const p={};for(;m--;)p[t[m].key]=m;const h=[],v=new Map,$=new Map;for(m=g;m--;){const t=d(i,s,m),r=n(t);let c=l.get(r);c?o&&c.p(t,e):(c=a(r,t),c.c()),v.set(r,h[m]=c),r in p&&$.set(r,Math.abs(m-p[r]))}const y=new Set,x=new Set;function w(t){U(t,1),t.m(r,u),l.set(t.key,t),u=t.first,g--}for(;f&&g;){const e=h[g-1],n=t[f-1],o=e.key,i=n.key;e===n?(u=e.first,f--,g--):v.has(i)?!l.has(o)||y.has(o)?w(e):x.has(i)?f--:$.get(o)>$.get(i)?(x.add(o),w(e)):(y.add(i),f--):(c(n,l),f--)}for(;f--;){const e=t[f];v.has(e.key)||c(e,l)}for(;g;)w(h[g-1]);return h}(o,n,l,1,t,s,i,e.parentNode,Y,Rt,e,Dt),H())},i(t){if(!n){for(let t=0;t<s.length;t+=1)U(o[t]);n=!0}},o(t){for(let t=0;t<o.length;t+=1)K(o[t]);n=!1},d(t){for(let e=0;e<o.length;e+=1)o[e].d(t);t&&m(e)}}}function Pt(t){let e,n,o=-1!=t[0].moduleList.findIndex(i)?"abwählen":"wählen";function i(...e){return t[19](t[32],...e)}return{c(){e=h("span"),n=$(o),k(e,"class","centerText svelte-1vkufz4")},m(t,o){g(t,e,o),f(e,n)},p(e,s){t=e,5&s[0]&&o!==(o=-1!=t[0].moduleList.findIndex(i)?"abwählen":"wählen")&&b(n,o)},d(t){t&&m(e)}}}function qt(t){let e,n,o,i,s,l=t[32].name+"";function r(...e){return t[20](t[32],...e)}return o=new t[8]({props:{class:-1!=t[0].moduleList.findIndex(r)?"btn__selected":"",$$slots:{default:[Pt]},$$scope:{ctx:t}}}),o.$on("click",(function(){return t[21](t[32])})),{c(){e=$(l),n=y(),et(o.$$.fragment),i=y()},m(t,l){g(t,e,l),g(t,n,l),nt(o,t,l),g(t,i,l),s=!0},p(n,i){t=n,(!s||4&i[0])&&l!==(l=t[32].name+"")&&b(e,l);const c={};5&i[0]&&(c.class=-1!=t[0].moduleList.findIndex(r)?"btn__selected":""),5&i[0]|16&i[1]&&(c.$$scope={dirty:i,ctx:t}),o.$set(c)},i(t){s||(U(o.$$.fragment,t),s=!0)},o(t){K(o.$$.fragment,t),s=!1},d(t){t&&m(e),t&&m(n),ot(o,t),t&&m(i)}}}function Rt(t,e){let n,o,i;return o=new e[7]({props:{style:"margin: 20px",$$slots:{default:[qt]},$$scope:{ctx:e}}}),{key:t,first:null,c(){n=x(),et(o.$$.fragment),this.first=n},m(t,e){g(t,n,e),nt(o,t,e),i=!0},p(t,n){e=t;const i={};5&n[0]|16&n[1]&&(i.$$scope={dirty:n,ctx:e}),o.$set(i)},i(t){i||(U(o.$$.fragment,t),i=!0)},o(t){K(o.$$.fragment,t),i=!1},d(t){t&&m(n),ot(o,t)}}}function Jt(t){return{c:s,m:s,p:s,i:s,o:s,d:s}}function Ft(t){let e,n,o,i,s,l,r,c,a,u=t[28].day+"";function d(...e){return t[22](t[28],...e)}return{c(){e=h("div"),n=h("input"),i=y(),s=h("label"),l=$(u),r=y(),n.checked=o=t[0].days.includes(t[28].value),k(n,"type","checkbox"),k(n,"id",t[28].value),k(n,"class","svelte-1vkufz4"),k(s,"for",t[28].value),k(e,"class","day svelte-1vkufz4")},m(t,o){g(t,e,o),f(e,n),f(e,i),f(e,s),f(s,l),f(e,r),c||(a=w(n,"change",d),c=!0)},p(e,i){t=e,1&i[0]&&o!==(o=t[0].days.includes(t[28].value))&&(n.checked=o)},d(t){t&&m(e),c=!1,a()}}}function Gt(t){let e;return{c(){e=h("div"),e.textContent="Achtung: Die ausgewählten Tage sind bereits in einem anderen Layout hinterlegt. Diese werden beim speichern in den bereits existierenden und aktiven Layouts überschrieben.",k(e,"class","errroWeekdaysOverlapping svelte-1vkufz4")},m(t,n){g(t,e,n)},d(t){t&&m(e)}}}function Vt(t){let e;return{c(){e=$("Layout speichern")},m(t,n){g(t,e,n)},d(t){t&&m(e)}}}function Ht(t){let e,n,o=t[0]&&t[1]&&Bt(t);return{c(){e=h("div"),o&&o.c(),k(e,"class","newLayoutContainer")},m(t,i){g(t,e,i),o&&o.m(e,null),n=!0},p(t,n){t[0]&&t[1]?o?(o.p(t,n),3&n[0]&&U(o,1)):(o=Bt(t),o.c(),U(o,1),o.m(e,null)):o&&(V(),K(o,1,1,(()=>{o=null})),H())},i(t){n||(U(o),n=!0)},o(t){K(o),n=!1},d(t){t&&m(e),o&&o.d()}}}function Ut(t,o,i){let s;const{TextField:l,Divider:r,Card:c,Button:a,Switch:u}=e,d=_(),f=n.getAllModules().map((t=>({...t,isSelected:!1})));let g=f,{settings:m}=o,{layout:p}=o,h=new Map;M((async()=>{await m,await(I(),D)}));let v=[{day:"Montag",status:!1,value:"Mo"},{day:"Dienstag",status:!1,value:"Tu"},{day:"Mittwoch",status:!1,value:"We"},{day:"Donnerstag",status:!1,value:"Th"},{day:"Freitag",status:!1,value:"Fr"},{day:"Samstag",status:!1,value:"Sa"},{day:"Sonntag",status:!1,value:"Su"}];function $(t){const e=p.moduleList.findIndex((e=>e.moduleId==t.id));-1==e?p.moduleList.splice(p.moduleList.length-1,0,{moduleId:t.id.toString(),position:p.moduleList.length.toString()}):p.moduleList.splice(e,1),i(0,p)}let y="";function x(){i(2,g=f.filter((t=>t.name.toLowerCase().includes(y.toLowerCase()))))}function w(){if(""!=p.id&&0!=p.moduleList.length){for(let[t,e]of h){const n=m.dashboardLayout[t];e.forEach((t=>{const e=n.days.findIndex((e=>t==e));n.days.splice(e,1)})),i(1,m.dashboardLayout[t]=n,m)}d("save",p)}}function k(t,e){if(t.target.checked)p.days.unshift(e);else{const t=p.days.findIndex((t=>t==e));p.days.splice(t,1)}i(0,p.days=v.filter((t=>p.days.includes(t.value))).map((t=>t.value)),p)}return t.$$set=t=>{"settings"in t&&i(1,m=t.settings),"layout"in t&&i(0,p=t.layout)},t.$$.update=()=>{1&t.$$.dirty[0]&&i(4,s=function(t){h=new Map;let e=!1;return m.dashboardLayout.forEach(((n,o)=>{n.id!=p.id&&n.activated&&t.forEach(((t,i)=>{if(n.days.includes(t))return e=!0,h.has(o)?void h.get(o).push(t):void h.set(o,[t])}))})),e}(p.days))},[p,m,g,y,s,l,r,c,a,u,v,$,x,w,k,function(e){t.$$.not_equal(p.id,e)&&(p.id=e,i(0,p))},function(e){t.$$.not_equal(p.activated,e)&&(p.activated=e,i(0,p))},function(){y=this.value,i(3,y)},t=>x(),(t,e)=>e.moduleId.toString()==t.id.toString(),(t,e)=>e.moduleId.toString()==t.id.toString(),t=>$(t),(t,e)=>k(e,t.value),()=>w()]}class Kt extends st{constructor(t){var e;super(),document.getElementById("svelte-1vkufz4-style")||((e=h("style")).id="svelte-1vkufz4-style",e.textContent=".search_bar.svelte-1vkufz4.svelte-1vkufz4{padding:0.2em;min-width:40%;margin-left:113px;height:2em}.module.svelte-1vkufz4.svelte-1vkufz4{display:flex;flex-direction:row;font-weight:bold}.moduleCards.svelte-1vkufz4 .btn{border:none;border-radius:10px;height:23px;width:100px;float:right;cursor:pointer}.moduleCards.svelte-1vkufz4 .btn__selected{background-color:#71c23f !important;color:white !important}#textModule.svelte-1vkufz4.svelte-1vkufz4{margin-right:89px}.errroWeekdaysOverlapping.svelte-1vkufz4.svelte-1vkufz4{color:red;font-weight:600;font-size:0.9em}.centerText.svelte-1vkufz4.svelte-1vkufz4{display:block;width:100%;text-align:center}.weekdays.svelte-1vkufz4.svelte-1vkufz4{display:flex;gap:1em}.weekdays.svelte-1vkufz4 .day.svelte-1vkufz4{margin-top:1em;margin-bottom:1em}.mr.svelte-1vkufz4.svelte-1vkufz4{margin-right:1.5em}.layout-activated-switch.svelte-1vkufz4.svelte-1vkufz4{margin:1.5em 0}.saveBtnDiv.svelte-1vkufz4.svelte-1vkufz4{margin:2em 0}",f(document.head,e)),it(this,t,Ut,Ht,u,{settings:1,layout:0},[-1,-1])}}function Zt(t,e,n){const o=t.slice();return o[20]=e[n],o}function Qt(t,e,n){const o=t.slice();return o[23]=e[n],o}function Xt(t){let e;return{c(){e=$("Abbrechen")},m(t,n){g(t,e,n)},d(t){t&&m(e)}}}function Yt(t){let e;return{c(){e=$("Löschen")},m(t,n){g(t,e,n)},d(t){t&&m(e)}}}function te(t){let e,n,o,i,s,l,r;return i=new t[6]({props:{filled:!0,$$slots:{default:[Xt]},$$scope:{ctx:t}}}),i.$on("click",t[14]),l=new t[6]({props:{danger:!0,outline:!0,$$slots:{default:[Yt]},$$scope:{ctx:t}}}),l.$on("click",t[13]),{c(){e=h("div"),e.textContent="Wollen Sie das Layout wirklich löschen?",n=y(),o=h("div"),et(i.$$.fragment),s=y(),et(l.$$.fragment),k(o,"class","btns-container svelte-1rgcwkg")},m(t,c){g(t,e,c),g(t,n,c),g(t,o,c),nt(i,o,null),f(o,s),nt(l,o,null),r=!0},p(t,e){const n={};134217728&e&&(n.$$scope={dirty:e,ctx:t}),i.$set(n);const o={};134217728&e&&(o.$$scope={dirty:e,ctx:t}),l.$set(o)},i(t){r||(U(i.$$.fragment,t),U(l.$$.fragment,t),r=!0)},o(t){K(i.$$.fragment,t),K(l.$$.fragment,t),r=!1},d(t){t&&m(e),t&&m(n),t&&m(o),ot(i),ot(l)}}}function ee(t){let e,n,o;return n=new xt({props:{size:"25"}}),{c(){e=h("div"),et(n.$$.fragment),k(e,"slot","title-icon")},m(t,i){g(t,e,i),nt(n,e,null),o=!0},p:s,i(t){o||(U(n.$$.fragment,t),o=!0)},o(t){K(n.$$.fragment,t),o=!1},d(t){t&&m(e),ot(n)}}}function ne(t){let e,n;return e=new t[5]({props:{title:"Bestätigung",closeCallback:t[26],danger:!0,$$slots:{"title-icon":[ee],default:[te]},$$scope:{ctx:t}}}),{c(){et(e.$$.fragment)},m(t,o){nt(e,t,o),n=!0},p(t,n){const o={};67108864&n&&(o.closeCallback=t[26]),134217728&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(U(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){ot(e,t)}}}function oe(t){let e,n,o,i,s,l,r,c,a,u,d;function p(t,e){return t[1]?le:se}s=new bt({props:{size:"24"}});let v=p(t),$=v(t);return c=new Kt({props:{layout:t[2],settings:t[0]}}),c.$on("save",t[17]),{c(){e=h("div"),n=h("div"),o=h("h2"),i=h("span"),et(s.$$.fragment),l=y(),$.c(),r=y(),et(c.$$.fragment),k(i,"class","btn-back svelte-1rgcwkg")},m(m,p){g(m,e,p),f(e,n),f(n,o),f(o,i),nt(s,i,null),f(o,l),$.m(o,null),f(e,r),nt(c,e,null),a=!0,u||(d=w(i,"click",t[10]),u=!0)},p(t,e){v===(v=p(t))&&$?$.p(t,e):($.d(1),$=v(t),$&&($.c(),$.m(o,null)));const n={};4&e&&(n.layout=t[2]),1&e&&(n.settings=t[0]),c.$set(n)},i(t){a||(U(s.$$.fragment,t),U(c.$$.fragment,t),a=!0)},o(t){K(s.$$.fragment,t),K(c.$$.fragment,t),a=!1},d(t){t&&m(e),ot(s),$.d(),ot(c),u=!1,d()}}}function ie(t){let e,n,o,i,s,l,r,c,a;o=new t[6]({props:{$$slots:{default:[re]},$$scope:{ctx:t}}}),o.$on("click",t[11]);let u=t[0].dashboardLayout,d=[];for(let e=0;e<u.length;e+=1)d[e]=fe(Zt(t,u,e));const v=t=>K(d[t],1,1,(()=>{d[t]=null}));return{c(){e=h("h2"),e.textContent="Mein Layout",n=y(),et(o.$$.fragment),i=y(),s=h("div"),l=h("p"),l.textContent="Dies sind Ihre vorhandenen Vorlagen.",r=y(),c=h("div");for(let t=0;t<d.length;t+=1)d[t].c();k(c,"class","layout-cards svelte-1rgcwkg"),k(s,"class","form-setting")},m(t,u){g(t,e,u),g(t,n,u),nt(o,t,u),g(t,i,u),g(t,s,u),f(s,l),f(s,r),f(s,c);for(let t=0;t<d.length;t+=1)d[t].m(c,null);a=!0},p(t,e){const n={};if(134217728&e&&(n.$$scope={dirty:e,ctx:t}),o.$set(n),37121&e){let n;for(u=t[0].dashboardLayout,n=0;n<u.length;n+=1){const o=Zt(t,u,n);d[n]?(d[n].p(o,e),U(d[n],1)):(d[n]=fe(o),d[n].c(),U(d[n],1),d[n].m(c,null))}for(V(),n=u.length;n<d.length;n+=1)v(n);H()}},i(t){if(!a){U(o.$$.fragment,t);for(let t=0;t<u.length;t+=1)U(d[t]);a=!0}},o(t){K(o.$$.fragment,t),d=d.filter(Boolean);for(let t=0;t<d.length;t+=1)K(d[t]);a=!1},d(t){t&&m(e),t&&m(n),ot(o,t),t&&m(i),t&&m(s),p(d,t)}}}function se(t){let e,n,o,i=t[2].id+"";return{c(){e=$("Layouts "),n=$(i),o=$(" bearbeiten")},m(t,i){g(t,e,i),g(t,n,i),g(t,o,i)},p(t,e){4&e&&i!==(i=t[2].id+"")&&b(n,i)},d(t){t&&m(e),t&&m(n),t&&m(o)}}}function le(t){let e;return{c(){e=$("Neues Layout erstellen")},m(t,n){g(t,e,n)},p:s,d(t){t&&m(e)}}}function re(t){let e,n,o;return e=new Mt({props:{size:"24"}}),{c(){et(e.$$.fragment),n=$("\n Neues Layout hinzufügen")},m(t,i){nt(e,t,i),g(t,n,i),o=!0},p:s,i(t){o||(U(e.$$.fragment,t),o=!0)},o(t){K(e.$$.fragment,t),o=!1},d(t){ot(e,t),t&&m(n)}}}function ce(t){let e,n;return e=new t[7]({props:{class:"layout-card",$$slots:{default:[de]},$$scope:{ctx:t}}}),{c(){et(e.$$.fragment)},m(t,o){nt(e,t,o),n=!0},p(t,n){const o={};134217729&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(U(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){ot(e,t)}}}function ae(t){let e,n=t[20].moduleList,o=[];for(let e=0;e<n.length;e+=1)o[e]=ue(Qt(t,n,e));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=x()},m(t,n){for(let e=0;e<o.length;e+=1)o[e].m(t,n);g(t,e,n)},p(t,i){if(257&i){let s;for(n=t[20].moduleList,s=0;s<n.length;s+=1){const l=Qt(t,n,s);o[s]?o[s].p(l,i):(o[s]=ue(l),o[s].c(),o[s].m(e.parentNode,e))}for(;s<o.length;s+=1)o[s].d(1);o.length=n.length}},d(t){p(o,t),t&&m(e)}}}function ue(t){let e,n,o,i=t[8](t[23].moduleId)+"";return{c(){e=h("p"),n=$(i),o=y(),k(e,"class","svelte-1rgcwkg")},m(t,i){g(t,e,i),f(e,n),f(e,o)},p(t,e){1&e&&i!==(i=t[8](t[23].moduleId)+"")&&b(n,i)},d(t){t&&m(e)}}}function de(t){let e,n,o,i,s,l,r,u,d,p,v,x,z,L,N,S,M,_,j,E,O,T,D,B,I=t[20].id+"",W=t[20].days+"";n=new Lt({props:{size:"18"}}),s=new Et({props:{size:"18"}});let A=t[20].moduleList&&ae(t);return{c(){e=h("div"),et(n.$$.fragment),o=y(),i=h("div"),et(s.$$.fragment),l=y(),r=h("div"),u=h("span"),d=y(),p=$(I),v=y(),x=h("div"),z=h("div"),z.textContent="Aktiv an den Tagen",L=y(),N=h("p"),S=$(W),M=y(),_=h("div"),j=h("div"),j.textContent="Aktive Module",E=y(),A&&A.c(),O=y(),k(e,"class","layout-card--icons edit svelte-1rgcwkg"),k(i,"class","layout-card--icons delete svelte-1rgcwkg"),k(u,"class","active-indicator svelte-1rgcwkg"),C(u,"active",t[20].activated),k(r,"class","layout-card--title svelte-1rgcwkg"),k(z,"class","layout-card--subtitle svelte-1rgcwkg"),k(N,"class","svelte-1rgcwkg"),k(x,"class","layout-card--section svelte-1rgcwkg"),k(j,"class","layout-card--subtitle svelte-1rgcwkg"),k(_,"class","layout-card--section svelte-1rgcwkg")},m(c,m){g(c,e,m),nt(n,e,null),g(c,o,m),g(c,i,m),nt(s,i,null),g(c,l,m),g(c,r,m),f(r,u),f(r,d),f(r,p),g(c,v,m),g(c,x,m),f(x,z),f(x,L),f(x,N),f(N,S),g(c,M,m),g(c,_,m),f(_,j),f(_,E),A&&A.m(_,null),g(c,O,m),T=!0,D||(B=[w(e,"click",(function(){a(t[12](t[20]))&&t[12](t[20]).apply(this,arguments)})),w(i,"click",(function(){a(t[15](t[20]))&&t[15](t[20]).apply(this,arguments)}))],D=!0)},p(e,n){t=e,1&n&&C(u,"active",t[20].activated),(!T||1&n)&&I!==(I=t[20].id+"")&&b(p,I),(!T||1&n)&&W!==(W=t[20].days+"")&&b(S,W),t[20].moduleList?A?A.p(t,n):(A=ae(t),A.c(),A.m(_,null)):A&&(A.d(1),A=null)},i(t){T||(U(n.$$.fragment,t),U(s.$$.fragment,t),T=!0)},o(t){K(n.$$.fragment,t),K(s.$$.fragment,t),T=!1},d(t){t&&m(e),ot(n),t&&m(o),t&&m(i),ot(s),t&&m(l),t&&m(r),t&&m(v),t&&m(x),t&&m(M),t&&m(_),A&&A.d(),t&&m(O),D=!1,c(B)}}}function fe(t){let e,n,o=null!=t[20].id&&ce(t);return{c(){o&&o.c(),e=x()},m(t,i){o&&o.m(t,i),g(t,e,i),n=!0},p(t,n){null!=t[20].id?o?(o.p(t,n),1&n&&U(o,1)):(o=ce(t),o.c(),U(o,1),o.m(e.parentNode,e)):o&&(V(),K(o,1,1,(()=>{o=null})),H())},i(t){n||(U(o),n=!0)},o(t){K(o),n=!1},d(t){o&&o.d(t),t&&m(e)}}}function ge(t){let e,n,o,i,s,l,r;function c(e){t[16](e)}let a={$$slots:{default:[ne,({closeCallback:t})=>({26:t}),({closeCallback:t})=>t?67108864:0]},$$scope:{ctx:t}};void 0!==t[3]&&(a.open=t[3]),n=new t[4]({props:a}),E.push((()=>tt(n,"open",c)));const u=[ie,oe],d=[];function p(t,e){return!t[0]||t[1]||t[2]?t[0]&&(t[1]||null!=t[2])?1:-1:0}return~(s=p(t))&&(l=d[s]=u[s](t)),{c(){e=h("div"),et(n.$$.fragment),i=y(),l&&l.c()},m(t,o){g(t,e,o),nt(n,e,null),f(e,i),~s&&d[s].m(e,null),r=!0},p(t,[i]){const r={};201326592&i&&(r.$$scope={dirty:i,ctx:t}),!o&&8&i&&(o=!0,r.open=t[3],A((()=>o=!1))),n.$set(r);let c=s;s=p(t),s===c?~s&&d[s].p(t,i):(l&&(V(),K(d[c],1,1,(()=>{d[c]=null})),H()),~s?(l=d[s],l?l.p(t,i):(l=d[s]=u[s](t),l.c()),U(l,1),l.m(e,null)):l=null)},i(t){r||(U(n.$$.fragment,t),U(l),r=!0)},o(t){K(n.$$.fragment,t),K(l),r=!1},d(t){t&&m(e),ot(n),~s&&d[s].d()}}}function me(t,o,i){const{Modal:s,Dialog:l,Button:r,Card:c}=e;let a,{settings:u}=o,d=!1;const f=_();function g(t){if(i(1,d=!1),i(2,a=void 0),!t.detail||!t.detail.id)return void console.error("Could not save Layout!");const e=u.dashboardLayout.findIndex((e=>e.id==t.detail.id));e>-1?i(0,u.dashboardLayout[e]=t.detail,u):u.dashboardLayout.unshift(t.detail),f("save")}let m,p=!1;return t.$$set=t=>{"settings"in t&&i(0,u=t.settings)},[u,d,a,p,s,l,r,c,function(t){return n.getModuleName(t)},g,function(){i(2,a=void 0),i(1,d=!1)},function(){i(2,a={id:"",activated:!0,days:[],moduleList:[{moduleId:"1111",position:"0"},{moduleId:"9999",position:"1"}]}),i(1,d=!0)},function(t){i(2,a={id:t.id,activated:t.activated,days:[...t.days],moduleList:[...t.moduleList]})},function(){const t=u.dashboardLayout.findIndex((t=>t.id==m.id));-1!=t&&(u.dashboardLayout.splice(t,1),i(0,u),i(3,p=!1),f("save"))},function(){i(3,p=!1),m=void 0},function(t){m=t,i(3,p=!0)},function(t){p=t,i(3,p)},t=>g(t)]}class pe extends st{constructor(t){var e;super(),document.getElementById("svelte-1rgcwkg-style")||((e=h("style")).id="svelte-1rgcwkg-style",e.textContent=".btn-back.svelte-1rgcwkg.svelte-1rgcwkg{cursor:pointer;margin-right:1em}.btns-container.svelte-1rgcwkg.svelte-1rgcwkg{display:flex;justify-content:space-between;margin-top:1em}.layout-cards.svelte-1rgcwkg.svelte-1rgcwkg{display:flex;flex-flow:row wrap;gap:2em}.layout-cards.svelte-1rgcwkg .svelte-1rgcwkg{width:200px}.layout-cards.svelte-1rgcwkg .layout-card--icons.svelte-1rgcwkg{cursor:pointer;position:absolute;width:auto}.layout-cards.svelte-1rgcwkg .layout-card--icons.edit.svelte-1rgcwkg{right:45px;top:16px}.layout-cards.svelte-1rgcwkg .layout-card--icons.delete.svelte-1rgcwkg{right:21px;top:16px}.layout-cards.svelte-1rgcwkg .layout-card{position:relative;font-size:1em}.layout-cards.svelte-1rgcwkg .layout-card--title.svelte-1rgcwkg{font-weight:600;height:20px;display:flex;gap:0.5em;place-items:center;margin-bottom:1.5em;margin-top:1em}.layout-cards.svelte-1rgcwkg .layout-card--subtitle.svelte-1rgcwkg{font-weight:600;margin-bottom:0.5em}.layout-cards.svelte-1rgcwkg .layout-card--section.svelte-1rgcwkg{font-size:0.8em;margin-bottom:1.5em}.layout-cards.svelte-1rgcwkg p.svelte-1rgcwkg{margin:0.5 0 0 0}.active-indicator.svelte-1rgcwkg.svelte-1rgcwkg{height:15px;width:15px;border-radius:50%;display:inline-block;background-color:red}.active.svelte-1rgcwkg.svelte-1rgcwkg{background-color:green}",f(document.head,e)),it(this,t,me,ge,u,{settings:0})}}function he(t){let e,n,o,i,s,l,r,a,u,d,p,v,$;var x=t[1];function b(t){return{props:{settings:t[2]}}}return x&&(d=new x(b(t)),d.$on("save",t[6])),{c(){e=h("section"),n=h("div"),o=h("div"),o.textContent="Mein Konto",i=y(),s=h("div"),s.textContent="Benachrichtigungen",l=y(),r=h("div"),r.textContent="Layout",a=y(),u=h("div"),d&&et(d.$$.fragment),k(o,"class","nav--item svelte-1x5ysxy"),C(o,"active",t[1]==ut),k(s,"class","nav--item svelte-1x5ysxy"),C(s,"active",t[1]==vt),k(r,"class","nav--item svelte-1x5ysxy"),C(r,"active",t[1]==pe),k(n,"class","container-setting--nav svelte-1x5ysxy"),k(u,"class","container-setting--content svelte-1x5ysxy"),k(e,"class","container-setting svelte-1x5ysxy")},m(c,m){g(c,e,m),f(e,n),f(n,o),f(n,i),f(n,s),f(n,l),f(n,r),f(e,a),f(e,u),d&&nt(d,u,null),p=!0,v||($=[w(o,"click",t[3]),w(s,"click",t[4]),w(r,"click",t[5])],v=!0)},p(t,e){2&e&&C(o,"active",t[1]==ut),2&e&&C(s,"active",t[1]==vt),2&e&&C(r,"active",t[1]==pe);const n={};if(4&e&&(n.settings=t[2]),x!==(x=t[1])){if(d){V();const t=d;K(t.$$.fragment,1,0,(()=>{ot(t,1)})),H()}x?(d=new x(b(t)),d.$on("save",t[6]),et(d.$$.fragment),U(d.$$.fragment,1),nt(d,u,null)):d=null}else x&&d.$set(n)},i(t){p||(d&&U(d.$$.fragment,t),p=!0)},o(t){d&&K(d.$$.fragment,t),p=!1},d(t){t&&m(e),d&&ot(d),v=!1,c($)}}}function ve(t){let e,n,o=t[0]&&he(t);return{c(){o&&o.c(),e=x()},m(t,i){o&&o.m(t,i),g(t,e,i),n=!0},p(t,[n]){t[0]?o?(o.p(t,n),1&n&&U(o,1)):(o=he(t),o.c(),U(o,1),o.m(e.parentNode,e)):o&&(V(),K(o,1,1,(()=>{o=null})),H())},i(t){n||(U(o),n=!0)},o(t){K(o),n=!1},d(t){o&&o.d(t),t&&m(e)}}}function $e(t,e,s){let l;d(t,o,(t=>s(10,l=t)));let r,c,a,u,f,{injectedSettings:g}=e;const m=()=>{var t;s(2,(c={jobDescription:(t=g).jobDescription,showJobDescription:t.setting.showJobDescription,email:t.email,firstName:t.firstName,lastName:t.lastName,listTitle:t.listTitle,hideRoles:t.hideRoles},f=c)),s(1,r=ut)};async function p(){try{await n.saveUserSettings(g),s(0,g),function(t,e,n=e){t.set(n)}(o,l=g,l),i.success("Speichern erfolgreich",2e3)}catch(t){console.error(t),i.failed("Speichern nicht erfolgreich",2e3)}}return m(),t.$$set=t=>{"injectedSettings"in t&&s(0,g=t.injectedSettings)},[g,r,f,m,()=>{var t;s(2,(a={notificationActivated:(t=g).setting.notificationActivated,showNotifications:t.setting.showNotifications,notificationToMail:t.setting.notificationToMail,typesOfNotification:t.setting.typesOfNotification},f=a)),s(1,r=vt)},()=>{s(2,(u={dashboardLayout:g.setting.dashboardLayout},f=u)),s(1,r=pe)},function(){r==ut?(s(0,g.jobDescription=c.jobDescription,g),s(0,g.setting.showJobDescription=c.showJobDescription,g),s(0,g.email=c.email,g),s(0,g.firstName=c.firstName,g),s(0,g.lastName=c.lastName,g),s(0,g.listTitle=c.listTitle,g),s(0,g.hideRoles=c.hideRoles,g),p()):r==vt?(s(0,g.setting.notificationActivated=a.notificationActivated,g),s(0,g.setting.showNotifications=a.showNotifications,g),s(0,g.setting.notificationToMail=a.notificationToMail,g),s(0,g.setting.typesOfNotification=a.typesOfNotification,g),p()):r==pe&&(s(0,g.setting.dashboardLayout=u.dashboardLayout,g),p())}]}class ye extends st{constructor(t){var e;super(),document.getElementById("svelte-1x5ysxy-style")||((e=h("style")).id="svelte-1x5ysxy-style",e.textContent=".container-setting.svelte-1x5ysxy.svelte-1x5ysxy{display:grid;grid-template-columns:0.5fr 1fr;height:calc(100% - 120px)}.container-setting--nav.svelte-1x5ysxy.svelte-1x5ysxy{border-right:5px solid #ccc;cursor:pointer}.container-setting--nav.svelte-1x5ysxy .nav--item.svelte-1x5ysxy{padding:1.5em 1em;border-bottom:1px solid #ccc}.container-setting--nav.svelte-1x5ysxy .nav--item.svelte-1x5ysxy:hover{background-color:#ddd}.container-setting--nav.svelte-1x5ysxy .nav--item.active.svelte-1x5ysxy{font-weight:600;background-color:#ddd}.container-setting--content.svelte-1x5ysxy.svelte-1x5ysxy{padding:0 1em 0 1.5em;overflow:auto}.container-setting--content.svelte-1x5ysxy .form-setting{margin-bottom:2em}.container-setting--content.svelte-1x5ysxy .form-setting .form-field{display:flex;flex-direction:row;margin-bottom:2em}.container-setting--content.svelte-1x5ysxy .form-setting .form-field .helptext{font-size:0.9em;font-weight:400;margin-top:0.5em}.container-setting--content.svelte-1x5ysxy .form-setting .form-field .form-field--label{font-weight:600;flex-basis:30%;align-self:center}.container-setting--content.svelte-1x5ysxy .form-setting .form-field .switch{align-self:flex-start}.container-setting--content.svelte-1x5ysxy .form-setting .form-field .form-field--content{flex:1;margin-left:1em}.container-setting--content.svelte-1x5ysxy .form-setting .form-field .form-field--content .checkbox{margin-top:0.2em}",f(document.head,e)),it(this,t,$e,ve,u,{injectedSettings:0})}}function xe(t){return{c:s,m:s,p:s,i:s,o:s,d:s}}function we(t){let e,n;return e=new t[0]({props:{open:"true",noClickaway:"true",$$slots:{default:[be,({closeCallback:t})=>({4:t}),({closeCallback:t})=>t?16:0]},$$scope:{ctx:t}}}),{c(){et(e.$$.fragment)},m(t,o){nt(e,t,o),n=!0},p(t,n){const o={};32&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(U(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){ot(e,t)}}}function ke(t){let e,n,o,i;return o=new ye({props:{injectedSettings:t[3]}}),{c(){e=h("div"),e.innerHTML="<h2>Einstellungen</h2>",n=y(),et(o.$$.fragment),k(e,"class","setting--title svelte-ltqsg7")},m(t,s){g(t,e,s),g(t,n,s),nt(o,t,s),i=!0},p:s,i(t){i||(U(o.$$.fragment,t),i=!0)},o(t){K(o.$$.fragment,t),i=!1},d(t){t&&m(e),t&&m(n),ot(o,t)}}}function be(t){let e,n,o=t[3]&&function(t){let e,n,o;return n=new t[1]({props:{constrainWidth:!0,closeCallback:function(){return t[2](t[4])},class:"modal_class",$$slots:{default:[ke]},$$scope:{ctx:t}}}),{c(){e=h("div"),et(n.$$.fragment),k(e,"class","setting--modal svelte-ltqsg7")},m(t,i){g(t,e,i),nt(n,e,null),o=!0},p(e,o){t=e;const i={};32&o&&(i.$$scope={dirty:o,ctx:t}),n.$set(i)},i(t){o||(U(n.$$.fragment,t),o=!0)},o(t){K(n.$$.fragment,t),o=!1},d(t){t&&m(e),ot(n)}}}(t);return{c(){o&&o.c(),e=x()},m(t,i){o&&o.m(t,i),g(t,e,i),n=!0},p(t,e){t[3]&&o.p(t,e)},i(t){n||(U(o),n=!0)},o(t){K(o),n=!1},d(t){o&&o.d(t),t&&m(e)}}}function ze(t){return{c:s,m:s,p:s,i:s,o:s,d:s}}function Ce(t){let e,o,i={ctx:t,current:null,token:null,hasCatch:!1,pending:ze,then:we,catch:xe,value:3,blocks:[,,,]};return Z(n.getUserSettings(),i),{c(){e=x(),i.block.c()},m(t,n){g(t,e,n),i.block.m(t,i.anchor=n),i.mount=()=>e.parentNode,i.anchor=e,o=!0},p(e,[n]){Q(i,t=e,n)},i(t){o||(U(i.block),o=!0)},o(t){for(let t=0;t<3;t+=1){K(i.blocks[t])}o=!1},d(t){t&&m(e),i.block.d(t),i.token=null,i=null}}}function Le(t){const{Modal:n,Dialog:o}=e;return[n,o,t=>(window.singleSpaNavigate("/"),t())]}function Ne(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Se,Me,_e=(Se=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){i(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 i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){return s="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},s(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if("object"!==s(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:r.bind(null,e,n),mount:c.bind(null,e,n),unmount:a.bind(null,e,n),update:u.bind(null,e,n)}};var l={component:null,domElementGetter:null,props:{}};function r(t){return Promise.resolve()}function c(t,e,n){var i=Object.keys(l),s=Object.keys(t).reduce((function(e,n){return i.includes(n)||(e[n]=t[n]),e}),{});return Promise.resolve().then((function(){var i=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=i();e.instance=new t.component(o(o({},s),{},{target:l,props:Object.assign({},n,t.props)}))}))}function a(t,e){return Promise.resolve().then((function(){e.instance.$destroy?e.instance.$destroy():e.instance.destroy()}))}function u(t,e,n){return Promise.resolve().then((function(){e.instance.$set?e.instance.$set(n):e.instance.set(n)}))}},Se(Me={exports:{}},Me.exports),Me.exports);const je=Ne(_e)({component:class extends st{constructor(t){var e;super(),document.getElementById("svelte-ltqsg7-style")||((e=h("style")).id="svelte-ltqsg7-style",e.textContent=".setting--modal.svelte-ltqsg7 .modal_class{height:80vh;min-width:70vw;overflow:hidden}.setting--title.svelte-ltqsg7{border-bottom:2px solid #ccc}",f(document.head,e)),it(this,t,Le,Ce,u,{})}},domElementGetter:()=>document.getElementById("view-app")}),{bootstrap:Ee,mount:Oe,unmount:Te}=je;t({bootstrap:Ee,mount:Oe,unmount:Te})}}}));
|
|
1
|
+
System.register(["@enablerr-ui/layout","@enablerr-ui/form"],(function(t){"use strict";var e,n,o,i;return{setters:[function(t){e=t.getAttractions},function(t){n=t.Request,o=t.settings,i=t.toasts}],execute:function(){t("version","0.2.12");function s(){}function l(t){return t()}function c(){return Object.create(null)}function r(t){t.forEach(l)}function a(t){return"function"==typeof t}function u(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function d(t,e,n){t.$$.on_destroy.push(function(t,...e){if(null==t)return s;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}(e,n))}function f(t,e){t.appendChild(e)}function g(t,e,n){t.insertBefore(e,n||null)}function m(t){t.parentNode.removeChild(t)}function p(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function h(t){return document.createElement(t)}function v(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function $(t){return document.createTextNode(t)}function y(){return $(" ")}function x(){return $("")}function w(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function k(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function b(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function z(t,e){t.value=null==e?"":e}function C(t,e,n){t.classList[n?"add":"remove"](e)}let L;function N(t){L=t}function M(){if(!L)throw new Error("Function called outside component initialization");return L}function S(t){M().$$.on_mount.push(t)}function _(){const t=M();return(e,n)=>{const o=t.$$.callbacks[e];if(o){const i=function(t,e){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,e),n}(e,n);o.slice().forEach((e=>{e.call(t,i)}))}}}const j=[],E=[],O=[],T=[],D=Promise.resolve();let B=!1;function I(){B||(B=!0,D.then(R))}function W(t){O.push(t)}function A(t){T.push(t)}let q=!1;const P=new Set;function R(){if(!q){q=!0;do{for(let t=0;t<j.length;t+=1){const e=j[t];N(e),J(e.$$)}for(N(null),j.length=0;E.length;)E.pop()();for(let t=0;t<O.length;t+=1){const e=O[t];P.has(e)||(P.add(e),e())}O.length=0}while(j.length);for(;T.length;)T.pop()();B=!1,q=!1,P.clear()}}function J(t){if(null!==t.fragment){t.update(),r(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(W)}}const F=new Set;let G;function V(){G={r:0,c:[],p:G}}function H(){G.r||r(G.c),G=G.p}function K(t,e){t&&t.i&&(F.delete(t),t.i(e))}function U(t,e,n,o){if(t&&t.o){if(F.has(t))return;F.add(t),G&&G.c.push((()=>{F.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}}function Z(t,e){const n=e.token={};function o(t,o,i,s){if(e.token!==n)return;e.resolved=s;let l=e.ctx;void 0!==i&&(l=l.slice(),l[i]=s);const c=t&&(e.current=t)(l);let r=!1;e.block&&(e.blocks?e.blocks.forEach(((t,n)=>{n!==o&&t&&(V(),U(t,1,1,(()=>{e.blocks[n]===t&&(e.blocks[n]=null)})),H())})):e.block.d(1),c.c(),K(c,1),c.m(e.mount(),e.anchor),r=!0),e.block=c,e.blocks&&(e.blocks[o]=c),r&&R()}if((i=t)&&"object"==typeof i&&"function"==typeof i.then){const n=M();if(t.then((t=>{N(n),o(e.then,1,e.value,t),N(null)}),(t=>{if(N(n),o(e.catch,2,e.error,t),N(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 i}function Q(t,e,n){const o=e.slice(),{resolved:i}=t;t.current===t.then&&(o[t.value]=i),t.current===t.catch&&(o[t.error]=i),t.block.p(o,n)}const X="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Y(t,e){U(t,1,1,(()=>{e.delete(t.key)}))}function tt(t,e,n){const o=t.$$.props[e];void 0!==o&&(t.$$.bound[o]=n,n(t.$$.ctx[o]))}function et(t){t&&t.c()}function nt(t,e,n,o){const{fragment:i,on_mount:s,on_destroy:c,after_update:u}=t.$$;i&&i.m(e,n),o||W((()=>{const e=s.map(l).filter(a);c?c.push(...e):r(e),t.$$.on_mount=[]})),u.forEach(W)}function ot(t,e){const n=t.$$;null!==n.fragment&&(r(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function it(t,e,n,o,i,l,a=[-1]){const u=L;N(t);const d=t.$$={fragment:null,ctx:null,props:l,update:s,not_equal:i,bound:c(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(u?u.$$.context:e.context||[]),callbacks:c(),dirty:a,skip_bound:!1};let f=!1;if(d.ctx=n?n(t,e.props||{},((e,n,...o)=>{const s=o.length?o[0]:n;return d.ctx&&i(d.ctx[e],d.ctx[e]=s)&&(!d.skip_bound&&d.bound[e]&&d.bound[e](s),f&&function(t,e){-1===t.$$.dirty[0]&&(j.push(t),I(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],d.update(),f=!0,r(d.before_update),d.fragment=!!o&&o(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(m)}else d.fragment&&d.fragment.c();e.intro&&K(t.$$.fragment),nt(t,e.target,e.anchor,e.customElement),R()}N(u)}class st{$destroy(){ot(this,1),this.$destroy=s}$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)}}function lt(t){let e,n,o,i,s,l,c,a,u,d,p,v,$,x,b,z,C,L,N,M,S,_,j,O,T,D,B,I,W,q,P,R,J,F,G,V,H,Z,Q,X,Y,it,st,lt,rt,at,ut,dt,ft,gt;function mt(e){t[4](e)}let pt={placeholder:"Berufsbezeichnung"};function ht(e){t[6](e)}void 0!==t[0].jobDescription&&(pt.value=t[0].jobDescription),l=new t[2]({props:pt}),E.push((()=>tt(l,"value",mt))),L=new t[2]({props:{placeholder:"E-Mail",disabled:!0,value:t[0].email}});let vt={placeholder:"Vorname"};function $t(e){t[7](e)}void 0!==t[0].firstName&&(vt.value=t[0].firstName),O=new t[2]({props:vt}),E.push((()=>tt(O,"value",ht)));let yt={placeholder:"Nachname"};function xt(e){t[8](e)}void 0!==t[0].lastName&&(yt.value=t[0].lastName),P=new t[2]({props:yt}),E.push((()=>tt(P,"value",$t)));let wt={placeholder:"Titel"};return void 0!==t[0].listTitle&&(wt.value=t[0].listTitle),Z=new t[2]({props:wt}),E.push((()=>tt(Z,"value",xt))),ut=new t[1]({props:{filled:!0,$$slots:{default:[ct]},$$scope:{ctx:t}}}),ut.$on("click",t[3]),{c(){e=h("form"),n=h("div"),o=h("div"),o.textContent="Berufsbezeichnung",i=y(),s=h("div"),et(l.$$.fragment),a=y(),u=h("div"),d=h("input"),p=y(),v=h("label"),v.textContent="Meine Berufsbezeichnung in meinem Profil anzeigen.",$=y(),x=h("div"),b=h("div"),b.textContent="E-Mail",z=y(),C=h("div"),et(L.$$.fragment),N=y(),M=h("div"),S=h("div"),S.textContent="Vorname",_=y(),j=h("div"),et(O.$$.fragment),D=y(),B=h("div"),I=h("div"),I.textContent="Nachname",W=y(),q=h("div"),et(P.$$.fragment),J=y(),F=h("div"),G=h("div"),G.textContent="Titel Aufgabenliste",V=y(),H=h("div"),et(Z.$$.fragment),X=y(),Y=h("div"),it=h("div"),it.textContent="Rollen nicht anzeigen",st=y(),lt=h("div"),rt=h("input"),at=y(),et(ut.$$.fragment),k(o,"class","form-field--label"),k(d,"type","checkbox"),k(d,"id","showJobDesc"),k(d,"name","shwoJobDescriptionInBio"),k(v,"for","showJobDesc"),k(u,"class","checkbox"),k(s,"class","form-field--content"),k(n,"class","form-field"),k(b,"class","form-field--label"),k(C,"class","form-field--content"),k(x,"class","form-field"),k(S,"class","form-field--label"),k(j,"class","form-field--content"),k(M,"class","form-field"),k(I,"class","form-field--label"),k(q,"class","form-field--content"),k(B,"class","form-field"),k(G,"class","form-field--label"),k(H,"class","form-field--content"),k(F,"class","form-field"),k(it,"class","form-field--label svelte-c1yie6"),k(rt,"type","checkbox"),k(rt,"id","hideRoles"),k(rt,"name","hideRoles"),k(lt,"class","checkbox svelte-c1yie6"),k(Y,"class","form-field"),k(e,"class","form-setting")},m(c,r){g(c,e,r),f(e,n),f(n,o),f(n,i),f(n,s),nt(l,s,null),f(s,a),f(s,u),f(u,d),d.checked=t[0].showJobDescription,f(u,p),f(u,v),f(e,$),f(e,x),f(x,b),f(x,z),f(x,C),nt(L,C,null),f(e,N),f(e,M),f(M,S),f(M,_),f(M,j),nt(O,j,null),f(e,D),f(e,B),f(B,I),f(B,W),f(B,q),nt(P,q,null),f(e,J),f(e,F),f(F,G),f(F,V),f(F,H),nt(Z,H,null),f(e,X),f(e,Y),f(Y,it),f(Y,st),f(Y,lt),f(lt,rt),rt.checked=t[0].hideRoles,g(c,at,r),nt(ut,c,r),dt=!0,ft||(gt=[w(d,"change",t[5]),w(rt,"change",t[9])],ft=!0)},p(t,e){const n={};!c&&1&e&&(c=!0,n.value=t[0].jobDescription,A((()=>c=!1))),l.$set(n),1&e&&(d.checked=t[0].showJobDescription);const o={};1&e&&(o.value=t[0].email),L.$set(o);const i={};!T&&1&e&&(T=!0,i.value=t[0].firstName,A((()=>T=!1))),O.$set(i);const s={};!R&&1&e&&(R=!0,s.value=t[0].lastName,A((()=>R=!1))),P.$set(s);const r={};!Q&&1&e&&(Q=!0,r.value=t[0].listTitle,A((()=>Q=!1))),Z.$set(r),1&e&&(rt.checked=t[0].hideRoles);const a={};4096&e&&(a.$$scope={dirty:e,ctx:t}),ut.$set(a)},i(t){dt||(K(l.$$.fragment,t),K(L.$$.fragment,t),K(O.$$.fragment,t),K(P.$$.fragment,t),K(Z.$$.fragment,t),K(ut.$$.fragment,t),dt=!0)},o(t){U(l.$$.fragment,t),U(L.$$.fragment,t),U(O.$$.fragment,t),U(P.$$.fragment,t),U(Z.$$.fragment,t),U(ut.$$.fragment,t),dt=!1},d(t){t&&m(e),ot(l),ot(L),ot(O),ot(P),ot(Z),t&&m(at),ot(ut,t),ft=!1,r(gt)}}}function ct(t){let e;return{c(){e=$("Speichern")},m(t,n){g(t,e,n)},d(t){t&&m(e)}}}function rt(t){let e,n,o,i,s=t[0]&<(t);return{c(){e=h("div"),n=h("h2"),n.textContent="Mein Konto",o=y(),s&&s.c()},m(t,l){g(t,e,l),f(e,n),f(e,o),s&&s.m(e,null),i=!0},p(t,[n]){t[0]?s?(s.p(t,n),1&n&&K(s,1)):(s=lt(t),s.c(),K(s,1),s.m(e,null)):s&&(V(),U(s,1,1,(()=>{s=null})),H())},i(t){i||(K(s),i=!0)},o(t){U(s),i=!1},d(t){t&&m(e),s&&s.d()}}}function at(t,n,o){const{Button:i,TextField:s,FormField:l}=e;let{settings:c}=n;const r=_();return t.$$set=t=>{"settings"in t&&o(0,c=t.settings)},[c,i,s,function(){r("save")},function(e){t.$$.not_equal(c.jobDescription,e)&&(c.jobDescription=e,o(0,c))},function(){c.showJobDescription=this.checked,o(0,c)},function(e){t.$$.not_equal(c.firstName,e)&&(c.firstName=e,o(0,c))},function(e){t.$$.not_equal(c.lastName,e)&&(c.lastName=e,o(0,c))},function(e){t.$$.not_equal(c.listTitle,e)&&(c.listTitle=e,o(0,c))},function(){c.hideRoles=this.checked,o(0,c)}]}class ut extends st{constructor(t){var e;super(),document.getElementById("svelte-c1yie6-style")||((e=h("style")).id="svelte-c1yie6-style",e.textContent="div.form-field--label.svelte-c1yie6+div.checkbox.svelte-c1yie6{padding-left:.75em}",f(document.head,e)),it(this,t,at,rt,u,{settings:0})}}function dt(t,e,n){const o=t.slice();return o[11]=e[n],o}function ft(t){let e,n,o,i,s,l,c,r,a,u,d,v,$,x,w,b,z,C,L,N,M,S,_,j,O,T,D,B,I;function W(e){t[6](e)}let q={};function P(e){t[7](e)}void 0!==t[0].notificationActivated&&(q.value=t[0].notificationActivated),l=new t[3]({props:q}),E.push((()=>tt(l,"value",W)));let R={};function J(e){t[8](e)}void 0!==t[0].showNotifications&&(R.value=t[0].showNotifications),$=new t[3]({props:R}),E.push((()=>tt($,"value",P)));let F={};void 0!==t[0].notificationToMail&&(F.value=t[0].notificationToMail),N=new t[3]({props:F}),E.push((()=>tt(N,"value",J)));let G=t[1],V=[];for(let e=0;e<G.length;e+=1)V[e]=gt(dt(t,G,e));return B=new t[2]({props:{filled:!0,$$slots:{default:[mt]},$$scope:{ctx:t}}}),B.$on("click",t[4]),{c(){e=h("form"),n=h("div"),o=h("div"),o.textContent="Benachrichtigungen aktivieren",i=y(),s=h("div"),et(l.$$.fragment),r=y(),a=h("div"),u=h("div"),u.innerHTML='Ungelesene Nachricht aktivieren \n <p class="helptext">Zeigt einen roten Kreis auf der Glocke an, wenn Sie ungelesene Nachrichten\n haben.</p>',d=y(),v=h("div"),et($.$$.fragment),w=y(),b=h("div"),z=h("div"),z.textContent="Benachrichtigungen an E-Mail senden",C=y(),L=h("div"),et(N.$$.fragment),S=y(),_=h("div"),j=h("div"),j.innerHTML='Arten von Benachrichtigungen\n <p class="helptext">Wählen Sie aus, welche Arten von Benachrichtigungen Sie sehen\n möchten.</p>',O=y(),T=h("div");for(let t=0;t<V.length;t+=1)V[t].c();D=y(),et(B.$$.fragment),k(o,"class","form-field--label switch"),k(s,"class","form-field--content"),k(n,"class","form-field"),k(u,"class","form-field--label switch"),k(v,"class","form-field--content"),k(a,"class","form-field"),k(z,"class","form-field--label switch"),k(L,"class","form-field--content"),k(b,"class","form-field"),k(j,"class","form-field--label"),k(T,"class","form-field--content"),k(_,"class","form-field"),k(e,"class","form-setting")},m(t,c){g(t,e,c),f(e,n),f(n,o),f(n,i),f(n,s),nt(l,s,null),f(e,r),f(e,a),f(a,u),f(a,d),f(a,v),nt($,v,null),f(e,w),f(e,b),f(b,z),f(b,C),f(b,L),nt(N,L,null),f(e,S),f(e,_),f(_,j),f(_,O),f(_,T);for(let t=0;t<V.length;t+=1)V[t].m(T,null);g(t,D,c),nt(B,t,c),I=!0},p(t,e){const n={};!c&&1&e&&(c=!0,n.value=t[0].notificationActivated,A((()=>c=!1))),l.$set(n);const o={};!x&&1&e&&(x=!0,o.value=t[0].showNotifications,A((()=>x=!1))),$.$set(o);const i={};if(!M&&1&e&&(M=!0,i.value=t[0].notificationToMail,A((()=>M=!1))),N.$set(i),35&e){let n;for(G=t[1],n=0;n<G.length;n+=1){const o=dt(t,G,n);V[n]?V[n].p(o,e):(V[n]=gt(o),V[n].c(),V[n].m(T,null))}for(;n<V.length;n+=1)V[n].d(1);V.length=G.length}const s={};16384&e&&(s.$$scope={dirty:e,ctx:t}),B.$set(s)},i(t){I||(K(l.$$.fragment,t),K($.$$.fragment,t),K(N.$$.fragment,t),K(B.$$.fragment,t),I=!0)},o(t){U(l.$$.fragment,t),U($.$$.fragment,t),U(N.$$.fragment,t),U(B.$$.fragment,t),I=!1},d(t){t&&m(e),ot(l),ot($),ot(N),p(V,t),t&&m(D),ot(B,t)}}}function gt(t){let e,n,o,i,s,l,c,r,u,d,p,v=t[11].type+"";return{c(){e=h("div"),n=h("input"),s=y(),l=h("label"),c=$(v),u=y(),n.checked=o=t[0].typesOfNotification.includes(t[11].type),k(n,"type","checkbox"),k(n,"id",i=t[11].id),k(l,"for",r=t[11].id)},m(o,i){g(o,e,i),f(e,n),f(e,s),f(e,l),f(l,c),f(e,u),d||(p=w(n,"change",(function(){a(t[5](t[11].type))&&t[5](t[11].type).apply(this,arguments)})),d=!0)},p(e,s){t=e,3&s&&o!==(o=t[0].typesOfNotification.includes(t[11].type))&&(n.checked=o),2&s&&i!==(i=t[11].id)&&k(n,"id",i),2&s&&v!==(v=t[11].type+"")&&b(c,v),2&s&&r!==(r=t[11].id)&&k(l,"for",r)},d(t){t&&m(e),d=!1,p()}}}function mt(t){let e;return{c(){e=$("Speichern")},m(t,n){g(t,e,n)},d(t){t&&m(e)}}}function pt(t){let e,n,o,i,s=t[0]&&ft(t);return{c(){e=h("div"),n=h("h2"),n.textContent="Meine Benachrichtigungen",o=y(),s&&s.c()},m(t,l){g(t,e,l),f(e,n),f(e,o),s&&s.m(e,null),i=!0},p(t,[n]){t[0]?s?(s.p(t,n),1&n&&K(s,1)):(s=ft(t),s.c(),K(s,1),s.m(e,null)):s&&(V(),U(s,1,1,(()=>{s=null})),H())},i(t){i||(K(s),i=!0)},o(t){U(s),i=!1},d(t){t&&m(e),s&&s.d()}}}function ht(t,o,i){const{Button:s,TextField:l,Switch:c}=e;let{settings:r}=o,a=[];const u=_();return S((async()=>{i(1,a=(await n.getNotificationTypes()).filter((({active:t})=>t)))})),t.$$set=t=>{"settings"in t&&i(0,r=t.settings)},[r,a,s,c,function(){u("save")},function(t){const e=r.typesOfNotification.findIndex((e=>e===t));e>-1?r.typesOfNotification.splice(e,1):r.typesOfNotification.unshift(t)},function(e){t.$$.not_equal(r.notificationActivated,e)&&(r.notificationActivated=e,i(0,r))},function(e){t.$$.not_equal(r.showNotifications,e)&&(r.showNotifications=e,i(0,r))},function(e){t.$$.not_equal(r.notificationToMail,e)&&(r.notificationToMail=e,i(0,r))}]}class vt extends st{constructor(t){super(),it(this,t,ht,pt,u,{settings:0})}}function $t(t){let e,n,o,i,l;return{c(){e=v("svg"),n=v("path"),o=v("line"),i=v("line"),k(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"),k(o,"x1","12"),k(o,"y1","9"),k(o,"x2","12"),k(o,"y2","13"),k(i,"x1","12"),k(i,"y1","17"),k(i,"x2","12.01"),k(i,"y2","17"),k(e,"xmlns","http://www.w3.org/2000/svg"),k(e,"width",t[0]),k(e,"height",t[0]),k(e,"fill","none"),k(e,"viewBox","0 0 24 24"),k(e,"stroke","currentColor"),k(e,"stroke-width",t[1]),k(e,"stroke-linecap","round"),k(e,"stroke-linejoin","round"),k(e,"class",l="feather feather-alert-triangle "+t[2])},m(t,s){g(t,e,s),f(e,n),f(e,o),f(e,i)},p(t,[n]){1&n&&k(e,"width",t[0]),1&n&&k(e,"height",t[0]),2&n&&k(e,"stroke-width",t[1]),4&n&&l!==(l="feather feather-alert-triangle "+t[2])&&k(e,"class",l)},i:s,o:s,d(t){t&&m(e)}}}function yt(t,e,n){let{size:o="100%"}=e,{strokeWidth:i=2}=e,{class:s=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,i=t.strokeWidth),"class"in t&&n(2,s=t.class)},[o,i,s]}class xt extends st{constructor(t){super(),it(this,t,yt,$t,u,{size:0,strokeWidth:1,class:2})}}function wt(t){let e,n,o,i;return{c(){e=v("svg"),n=v("line"),o=v("polyline"),k(n,"x1","19"),k(n,"y1","12"),k(n,"x2","5"),k(n,"y2","12"),k(o,"points","12 19 5 12 12 5"),k(e,"xmlns","http://www.w3.org/2000/svg"),k(e,"width",t[0]),k(e,"height",t[0]),k(e,"fill","none"),k(e,"viewBox","0 0 24 24"),k(e,"stroke","currentColor"),k(e,"stroke-width",t[1]),k(e,"stroke-linecap","round"),k(e,"stroke-linejoin","round"),k(e,"class",i="feather feather-arrow-left "+t[2])},m(t,i){g(t,e,i),f(e,n),f(e,o)},p(t,[n]){1&n&&k(e,"width",t[0]),1&n&&k(e,"height",t[0]),2&n&&k(e,"stroke-width",t[1]),4&n&&i!==(i="feather feather-arrow-left "+t[2])&&k(e,"class",i)},i:s,o:s,d(t){t&&m(e)}}}function kt(t,e,n){let{size:o="100%"}=e,{strokeWidth:i=2}=e,{class:s=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,i=t.strokeWidth),"class"in t&&n(2,s=t.class)},[o,i,s]}class bt extends st{constructor(t){super(),it(this,t,kt,wt,u,{size:0,strokeWidth:1,class:2})}}function zt(t){let e,n,o,i;return{c(){e=v("svg"),n=v("path"),o=v("path"),k(n,"d","M12 20h9"),k(o,"d","M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"),k(e,"xmlns","http://www.w3.org/2000/svg"),k(e,"width",t[0]),k(e,"height",t[0]),k(e,"fill","none"),k(e,"viewBox","0 0 24 24"),k(e,"stroke","currentColor"),k(e,"stroke-width",t[1]),k(e,"stroke-linecap","round"),k(e,"stroke-linejoin","round"),k(e,"class",i="feather feather-edit-3 "+t[2])},m(t,i){g(t,e,i),f(e,n),f(e,o)},p(t,[n]){1&n&&k(e,"width",t[0]),1&n&&k(e,"height",t[0]),2&n&&k(e,"stroke-width",t[1]),4&n&&i!==(i="feather feather-edit-3 "+t[2])&&k(e,"class",i)},i:s,o:s,d(t){t&&m(e)}}}function Ct(t,e,n){let{size:o="100%"}=e,{strokeWidth:i=2}=e,{class:s=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,i=t.strokeWidth),"class"in t&&n(2,s=t.class)},[o,i,s]}class Lt extends st{constructor(t){super(),it(this,t,Ct,zt,u,{size:0,strokeWidth:1,class:2})}}function Nt(t){let e,n,o,i;return{c(){e=v("svg"),n=v("line"),o=v("line"),k(n,"x1","12"),k(n,"y1","5"),k(n,"x2","12"),k(n,"y2","19"),k(o,"x1","5"),k(o,"y1","12"),k(o,"x2","19"),k(o,"y2","12"),k(e,"xmlns","http://www.w3.org/2000/svg"),k(e,"width",t[0]),k(e,"height",t[0]),k(e,"fill","none"),k(e,"viewBox","0 0 24 24"),k(e,"stroke","currentColor"),k(e,"stroke-width",t[1]),k(e,"stroke-linecap","round"),k(e,"stroke-linejoin","round"),k(e,"class",i="feather feather-plus "+t[2])},m(t,i){g(t,e,i),f(e,n),f(e,o)},p(t,[n]){1&n&&k(e,"width",t[0]),1&n&&k(e,"height",t[0]),2&n&&k(e,"stroke-width",t[1]),4&n&&i!==(i="feather feather-plus "+t[2])&&k(e,"class",i)},i:s,o:s,d(t){t&&m(e)}}}function Mt(t,e,n){let{size:o="100%"}=e,{strokeWidth:i=2}=e,{class:s=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,i=t.strokeWidth),"class"in t&&n(2,s=t.class)},[o,i,s]}class St extends st{constructor(t){super(),it(this,t,Mt,Nt,u,{size:0,strokeWidth:1,class:2})}}function _t(t){let e,n,o,i,l,c;return{c(){e=v("svg"),n=v("polyline"),o=v("path"),i=v("line"),l=v("line"),k(n,"points","3 6 5 6 21 6"),k(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"),k(i,"x1","10"),k(i,"y1","11"),k(i,"x2","10"),k(i,"y2","17"),k(l,"x1","14"),k(l,"y1","11"),k(l,"x2","14"),k(l,"y2","17"),k(e,"xmlns","http://www.w3.org/2000/svg"),k(e,"width",t[0]),k(e,"height",t[0]),k(e,"fill","none"),k(e,"viewBox","0 0 24 24"),k(e,"stroke","currentColor"),k(e,"stroke-width",t[1]),k(e,"stroke-linecap","round"),k(e,"stroke-linejoin","round"),k(e,"class",c="feather feather-trash-2 "+t[2])},m(t,s){g(t,e,s),f(e,n),f(e,o),f(e,i),f(e,l)},p(t,[n]){1&n&&k(e,"width",t[0]),1&n&&k(e,"height",t[0]),2&n&&k(e,"stroke-width",t[1]),4&n&&c!==(c="feather feather-trash-2 "+t[2])&&k(e,"class",c)},i:s,o:s,d(t){t&&m(e)}}}function jt(t,e,n){let{size:o="100%"}=e,{strokeWidth:i=2}=e,{class:s=""}=e;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),t.$$set=t=>{"size"in t&&n(0,o=t.size),"strokeWidth"in t&&n(1,i=t.strokeWidth),"class"in t&&n(2,s=t.class)},[o,i,s]}class Et extends st{constructor(t){super(),it(this,t,jt,_t,u,{size:0,strokeWidth:1,class:2})}}const{Map:Ot}=X;function Tt(t,e,n){const o=t.slice();return o[28]=e[n],o}function Dt(t,e,n){const o=t.slice();return o[32]=e[n],o[34]=n,o}function Bt(t){let e,n,o,i,s,l,c,a,u,d,v,$,x,b,C,L,N,M,S,_,j,O,T,D,B,I,W,q,P,R,J,F,G,V,H;function X(e){t[15](e)}let Y={type:"text",placeholder:"Neuer Layout Name"};function it(e){t[16](e)}void 0!==t[0].id&&(Y.value=t[0].id),i=new t[5]({props:Y}),E.push((()=>tt(i,"value",X)));let st={slotLeft:!0,$$slots:{default:[It]},$$scope:{ctx:t}};void 0!==t[0].activated&&(st.value=t[0].activated),a=new t[9]({props:st}),E.push((()=>tt(a,"value",it))),v=new t[6]({});let lt={ctx:t,current:null,token:null,hasCatch:!1,pending:Jt,then:At,catch:Wt,value:31,blocks:[,,,]};Z(S=t[2],lt),j=new t[6]({});let ct=t[10],rt=[];for(let e=0;e<ct.length;e+=1)rt[e]=Ft(Tt(t,ct,e));let at=t[4]&&Gt();return F=new t[8]({props:{filled:!0,class:"saveBtnLayout",$$slots:{default:[Vt]},$$scope:{ctx:t}}}),F.$on("click",t[23]),{c(){e=h("div"),n=h("p"),n.textContent="Name des Layouts",o=y(),et(i.$$.fragment),l=y(),c=h("div"),et(a.$$.fragment),d=y(),et(v.$$.fragment),$=y(),x=h("div"),b=h("label"),b.textContent="Vorhandene Module",C=y(),L=h("input"),N=y(),M=h("div"),lt.block.c(),_=y(),et(j.$$.fragment),O=y(),T=h("div"),D=h("h1"),D.textContent="Wochentage",B=y(),I=h("p"),I.textContent="Wählen Sie die Tage, an denen die Vorlage angezeigt werden soll.",W=y(),q=h("div");for(let t=0;t<rt.length;t+=1)rt[t].c();P=y(),at&&at.c(),R=y(),J=h("div"),et(F.$$.fragment),k(c,"class","layout-activated-switch svelte-1vkufz4"),k(b,"for","moduleSearch"),k(b,"id","textModule"),k(b,"class","svelte-1vkufz4"),k(L,"id","moduleSearch"),k(L,"type","search"),k(L,"placeholder","suche..."),k(L,"class","search_bar svelte-1vkufz4"),k(x,"class","module svelte-1vkufz4"),k(M,"class","moduleCards svelte-1vkufz4"),k(q,"class","weekdays svelte-1vkufz4"),k(J,"class","saveBtnDiv svelte-1vkufz4"),k(e,"class","newLayoutContent")},m(s,r){g(s,e,r),f(e,n),f(e,o),nt(i,e,null),f(e,l),f(e,c),nt(a,c,null),f(e,d),nt(v,e,null),f(e,$),f(e,x),f(x,b),f(x,C),f(x,L),z(L,t[3]),f(e,N),f(e,M),lt.block.m(M,lt.anchor=null),lt.mount=()=>M,lt.anchor=null,f(e,_),nt(j,e,null),f(e,O),f(e,T),f(T,D),f(T,B),f(T,I),f(T,W),f(T,q);for(let t=0;t<rt.length;t+=1)rt[t].m(q,null);f(e,P),at&&at.m(e,null),f(e,R),f(e,J),nt(F,J,null),G=!0,V||(H=[w(L,"input",t[17]),w(L,"input",t[18])],V=!0)},p(n,o){t=n;const l={};!s&&1&o[0]&&(s=!0,l.value=t[0].id,A((()=>s=!1))),i.$set(l);const c={};if(16&o[1]&&(c.$$scope={dirty:o,ctx:t}),!u&&1&o[0]&&(u=!0,c.value=t[0].activated,A((()=>u=!1))),a.$set(c),8&o[0]&&z(L,t[3]),lt.ctx=t,4&o[0]&&S!==(S=t[2])&&Z(S,lt)||Q(lt,t,o),17409&o[0]){let e;for(ct=t[10],e=0;e<ct.length;e+=1){const n=Tt(t,ct,e);rt[e]?rt[e].p(n,o):(rt[e]=Ft(n),rt[e].c(),rt[e].m(q,null))}for(;e<rt.length;e+=1)rt[e].d(1);rt.length=ct.length}t[4]?at||(at=Gt(),at.c(),at.m(e,R)):at&&(at.d(1),at=null);const r={};16&o[1]&&(r.$$scope={dirty:o,ctx:t}),F.$set(r)},i(t){G||(K(i.$$.fragment,t),K(a.$$.fragment,t),K(v.$$.fragment,t),K(lt.block),K(j.$$.fragment,t),K(F.$$.fragment,t),G=!0)},o(t){U(i.$$.fragment,t),U(a.$$.fragment,t),U(v.$$.fragment,t);for(let t=0;t<3;t+=1){U(lt.blocks[t])}U(j.$$.fragment,t),U(F.$$.fragment,t),G=!1},d(t){t&&m(e),ot(i),ot(a),ot(v),lt.block.d(),lt.token=null,lt=null,ot(j),p(rt,t),at&&at.d(),ot(F),V=!1,r(H)}}}function It(t){let e;return{c(){e=h("span"),e.textContent="Aktivieren Sie das Modul",k(e,"class","mr svelte-1vkufz4")},m(t,n){g(t,e,n)},d(t){t&&m(e)}}}function Wt(t){return{c:s,m:s,p:s,i:s,o:s,d:s}}function At(t){let e,n,o=[],i=new Ot,s=t[31];const l=t=>t[34];for(let e=0;e<s.length;e+=1){let n=Dt(t,s,e),c=l(n);i.set(c,o[e]=Rt(c,n))}return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=x()},m(t,i){for(let e=0;e<o.length;e+=1)o[e].m(t,i);g(t,e,i),n=!0},p(t,n){2053&n[0]&&(s=t[31],V(),o=function(t,e,n,o,i,s,l,c,r,a,u,d){let f=t.length,g=s.length,m=f;const p={};for(;m--;)p[t[m].key]=m;const h=[],v=new Map,$=new Map;for(m=g;m--;){const t=d(i,s,m),c=n(t);let r=l.get(c);r?o&&r.p(t,e):(r=a(c,t),r.c()),v.set(c,h[m]=r),c in p&&$.set(c,Math.abs(m-p[c]))}const y=new Set,x=new Set;function w(t){K(t,1),t.m(c,u),l.set(t.key,t),u=t.first,g--}for(;f&&g;){const e=h[g-1],n=t[f-1],o=e.key,i=n.key;e===n?(u=e.first,f--,g--):v.has(i)?!l.has(o)||y.has(o)?w(e):x.has(i)?f--:$.get(o)>$.get(i)?(x.add(o),w(e)):(y.add(i),f--):(r(n,l),f--)}for(;f--;){const e=t[f];v.has(e.key)||r(e,l)}for(;g;)w(h[g-1]);return h}(o,n,l,1,t,s,i,e.parentNode,Y,Rt,e,Dt),H())},i(t){if(!n){for(let t=0;t<s.length;t+=1)K(o[t]);n=!0}},o(t){for(let t=0;t<o.length;t+=1)U(o[t]);n=!1},d(t){for(let e=0;e<o.length;e+=1)o[e].d(t);t&&m(e)}}}function qt(t){let e,n,o=-1!=t[0].moduleList.findIndex(i)?"abwählen":"wählen";function i(...e){return t[19](t[32],...e)}return{c(){e=h("span"),n=$(o),k(e,"class","centerText svelte-1vkufz4")},m(t,o){g(t,e,o),f(e,n)},p(e,s){t=e,5&s[0]&&o!==(o=-1!=t[0].moduleList.findIndex(i)?"abwählen":"wählen")&&b(n,o)},d(t){t&&m(e)}}}function Pt(t){let e,n,o,i,s,l=t[32].name+"";function c(...e){return t[20](t[32],...e)}return o=new t[8]({props:{class:-1!=t[0].moduleList.findIndex(c)?"btn__selected":"",$$slots:{default:[qt]},$$scope:{ctx:t}}}),o.$on("click",(function(){return t[21](t[32])})),{c(){e=$(l),n=y(),et(o.$$.fragment),i=y()},m(t,l){g(t,e,l),g(t,n,l),nt(o,t,l),g(t,i,l),s=!0},p(n,i){t=n,(!s||4&i[0])&&l!==(l=t[32].name+"")&&b(e,l);const r={};5&i[0]&&(r.class=-1!=t[0].moduleList.findIndex(c)?"btn__selected":""),5&i[0]|16&i[1]&&(r.$$scope={dirty:i,ctx:t}),o.$set(r)},i(t){s||(K(o.$$.fragment,t),s=!0)},o(t){U(o.$$.fragment,t),s=!1},d(t){t&&m(e),t&&m(n),ot(o,t),t&&m(i)}}}function Rt(t,e){let n,o,i;return o=new e[7]({props:{style:"margin: 20px",$$slots:{default:[Pt]},$$scope:{ctx:e}}}),{key:t,first:null,c(){n=x(),et(o.$$.fragment),this.first=n},m(t,e){g(t,n,e),nt(o,t,e),i=!0},p(t,n){e=t;const i={};5&n[0]|16&n[1]&&(i.$$scope={dirty:n,ctx:e}),o.$set(i)},i(t){i||(K(o.$$.fragment,t),i=!0)},o(t){U(o.$$.fragment,t),i=!1},d(t){t&&m(n),ot(o,t)}}}function Jt(t){return{c:s,m:s,p:s,i:s,o:s,d:s}}function Ft(t){let e,n,o,i,s,l,c,r,a,u=t[28].day+"";function d(...e){return t[22](t[28],...e)}return{c(){e=h("div"),n=h("input"),i=y(),s=h("label"),l=$(u),c=y(),n.checked=o=t[0].days.includes(t[28].value),k(n,"type","checkbox"),k(n,"id",t[28].value),k(n,"class","svelte-1vkufz4"),k(s,"for",t[28].value),k(e,"class","day svelte-1vkufz4")},m(t,o){g(t,e,o),f(e,n),f(e,i),f(e,s),f(s,l),f(e,c),r||(a=w(n,"change",d),r=!0)},p(e,i){t=e,1&i[0]&&o!==(o=t[0].days.includes(t[28].value))&&(n.checked=o)},d(t){t&&m(e),r=!1,a()}}}function Gt(t){let e;return{c(){e=h("div"),e.textContent="Achtung: Die ausgewählten Tage sind bereits in einem anderen Layout hinterlegt. Diese werden beim speichern in den bereits existierenden und aktiven Layouts überschrieben.",k(e,"class","errroWeekdaysOverlapping svelte-1vkufz4")},m(t,n){g(t,e,n)},d(t){t&&m(e)}}}function Vt(t){let e;return{c(){e=$("Layout speichern")},m(t,n){g(t,e,n)},d(t){t&&m(e)}}}function Ht(t){let e,n,o=t[0]&&t[1]&&Bt(t);return{c(){e=h("div"),o&&o.c(),k(e,"class","newLayoutContainer")},m(t,i){g(t,e,i),o&&o.m(e,null),n=!0},p(t,n){t[0]&&t[1]?o?(o.p(t,n),3&n[0]&&K(o,1)):(o=Bt(t),o.c(),K(o,1),o.m(e,null)):o&&(V(),U(o,1,1,(()=>{o=null})),H())},i(t){n||(K(o),n=!0)},o(t){U(o),n=!1},d(t){t&&m(e),o&&o.d()}}}function Kt(t,o,i){let s;const{TextField:l,Divider:c,Card:r,Button:a,Switch:u}=e,d=_(),f=n.getAllModules().map((t=>({...t,isSelected:!1})));let g=f,{settings:m}=o,{layout:p}=o,h=new Map;S((async()=>{await m,await(I(),D)}));let v=[{day:"Montag",status:!1,value:"Mo"},{day:"Dienstag",status:!1,value:"Tu"},{day:"Mittwoch",status:!1,value:"We"},{day:"Donnerstag",status:!1,value:"Th"},{day:"Freitag",status:!1,value:"Fr"},{day:"Samstag",status:!1,value:"Sa"},{day:"Sonntag",status:!1,value:"Su"}];function $(t){const e=p.moduleList.findIndex((e=>e.moduleId==t.id));-1==e?p.moduleList.splice(p.moduleList.length-1,0,{moduleId:t.id.toString(),position:p.moduleList.length.toString()}):p.moduleList.splice(e,1),i(0,p)}let y="";function x(){i(2,g=f.filter((t=>t.name.toLowerCase().includes(y.toLowerCase()))))}function w(){if(""!=p.id&&0!=p.moduleList.length){for(let[t,e]of h){const n=m.dashboardLayout[t];e.forEach((t=>{const e=n.days.findIndex((e=>t==e));n.days.splice(e,1)})),i(1,m.dashboardLayout[t]=n,m)}d("save",p)}}function k(t,e){if(t.target.checked)p.days.unshift(e);else{const t=p.days.findIndex((t=>t==e));p.days.splice(t,1)}i(0,p.days=v.filter((t=>p.days.includes(t.value))).map((t=>t.value)),p)}return t.$$set=t=>{"settings"in t&&i(1,m=t.settings),"layout"in t&&i(0,p=t.layout)},t.$$.update=()=>{1&t.$$.dirty[0]&&i(4,s=function(t){h=new Map;let e=!1;return m.dashboardLayout.forEach(((n,o)=>{n.id!=p.id&&n.activated&&t.forEach(((t,i)=>{if(n.days.includes(t))return e=!0,h.has(o)?void h.get(o).push(t):void h.set(o,[t])}))})),e}(p.days))},[p,m,g,y,s,l,c,r,a,u,v,$,x,w,k,function(e){t.$$.not_equal(p.id,e)&&(p.id=e,i(0,p))},function(e){t.$$.not_equal(p.activated,e)&&(p.activated=e,i(0,p))},function(){y=this.value,i(3,y)},t=>x(),(t,e)=>e.moduleId.toString()==t.id.toString(),(t,e)=>e.moduleId.toString()==t.id.toString(),t=>$(t),(t,e)=>k(e,t.value),()=>w()]}class Ut extends st{constructor(t){var e;super(),document.getElementById("svelte-1vkufz4-style")||((e=h("style")).id="svelte-1vkufz4-style",e.textContent=".search_bar.svelte-1vkufz4.svelte-1vkufz4{padding:0.2em;min-width:40%;margin-left:113px;height:2em}.module.svelte-1vkufz4.svelte-1vkufz4{display:flex;flex-direction:row;font-weight:bold}.moduleCards.svelte-1vkufz4 .btn{border:none;border-radius:10px;height:23px;width:100px;float:right;cursor:pointer}.moduleCards.svelte-1vkufz4 .btn__selected{background-color:#71c23f !important;color:white !important}#textModule.svelte-1vkufz4.svelte-1vkufz4{margin-right:89px}.errroWeekdaysOverlapping.svelte-1vkufz4.svelte-1vkufz4{color:red;font-weight:600;font-size:0.9em}.centerText.svelte-1vkufz4.svelte-1vkufz4{display:block;width:100%;text-align:center}.weekdays.svelte-1vkufz4.svelte-1vkufz4{display:flex;gap:1em}.weekdays.svelte-1vkufz4 .day.svelte-1vkufz4{margin-top:1em;margin-bottom:1em}.mr.svelte-1vkufz4.svelte-1vkufz4{margin-right:1.5em}.layout-activated-switch.svelte-1vkufz4.svelte-1vkufz4{margin:1.5em 0}.saveBtnDiv.svelte-1vkufz4.svelte-1vkufz4{margin:2em 0}",f(document.head,e)),it(this,t,Kt,Ht,u,{settings:1,layout:0},[-1,-1])}}function Zt(t,e,n){const o=t.slice();return o[20]=e[n],o}function Qt(t,e,n){const o=t.slice();return o[23]=e[n],o}function Xt(t){let e;return{c(){e=$("Abbrechen")},m(t,n){g(t,e,n)},d(t){t&&m(e)}}}function Yt(t){let e;return{c(){e=$("Löschen")},m(t,n){g(t,e,n)},d(t){t&&m(e)}}}function te(t){let e,n,o,i,s,l,c;return i=new t[6]({props:{filled:!0,$$slots:{default:[Xt]},$$scope:{ctx:t}}}),i.$on("click",t[14]),l=new t[6]({props:{danger:!0,outline:!0,$$slots:{default:[Yt]},$$scope:{ctx:t}}}),l.$on("click",t[13]),{c(){e=h("div"),e.textContent="Wollen Sie das Layout wirklich löschen?",n=y(),o=h("div"),et(i.$$.fragment),s=y(),et(l.$$.fragment),k(o,"class","btns-container svelte-1rgcwkg")},m(t,r){g(t,e,r),g(t,n,r),g(t,o,r),nt(i,o,null),f(o,s),nt(l,o,null),c=!0},p(t,e){const n={};134217728&e&&(n.$$scope={dirty:e,ctx:t}),i.$set(n);const o={};134217728&e&&(o.$$scope={dirty:e,ctx:t}),l.$set(o)},i(t){c||(K(i.$$.fragment,t),K(l.$$.fragment,t),c=!0)},o(t){U(i.$$.fragment,t),U(l.$$.fragment,t),c=!1},d(t){t&&m(e),t&&m(n),t&&m(o),ot(i),ot(l)}}}function ee(t){let e,n,o;return n=new xt({props:{size:"25"}}),{c(){e=h("div"),et(n.$$.fragment),k(e,"slot","title-icon")},m(t,i){g(t,e,i),nt(n,e,null),o=!0},p:s,i(t){o||(K(n.$$.fragment,t),o=!0)},o(t){U(n.$$.fragment,t),o=!1},d(t){t&&m(e),ot(n)}}}function ne(t){let e,n;return e=new t[5]({props:{title:"Bestätigung",closeCallback:t[26],danger:!0,$$slots:{"title-icon":[ee],default:[te]},$$scope:{ctx:t}}}),{c(){et(e.$$.fragment)},m(t,o){nt(e,t,o),n=!0},p(t,n){const o={};67108864&n&&(o.closeCallback=t[26]),134217728&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(K(e.$$.fragment,t),n=!0)},o(t){U(e.$$.fragment,t),n=!1},d(t){ot(e,t)}}}function oe(t){let e,n,o,i,s,l,c,r,a,u,d;function p(t,e){return t[1]?le:se}s=new bt({props:{size:"24"}});let v=p(t),$=v(t);return r=new Ut({props:{layout:t[2],settings:t[0]}}),r.$on("save",t[17]),{c(){e=h("div"),n=h("div"),o=h("h2"),i=h("span"),et(s.$$.fragment),l=y(),$.c(),c=y(),et(r.$$.fragment),k(i,"class","btn-back svelte-1rgcwkg")},m(m,p){g(m,e,p),f(e,n),f(n,o),f(o,i),nt(s,i,null),f(o,l),$.m(o,null),f(e,c),nt(r,e,null),a=!0,u||(d=w(i,"click",t[10]),u=!0)},p(t,e){v===(v=p(t))&&$?$.p(t,e):($.d(1),$=v(t),$&&($.c(),$.m(o,null)));const n={};4&e&&(n.layout=t[2]),1&e&&(n.settings=t[0]),r.$set(n)},i(t){a||(K(s.$$.fragment,t),K(r.$$.fragment,t),a=!0)},o(t){U(s.$$.fragment,t),U(r.$$.fragment,t),a=!1},d(t){t&&m(e),ot(s),$.d(),ot(r),u=!1,d()}}}function ie(t){let e,n,o,i,s,l,c,r,a;o=new t[6]({props:{$$slots:{default:[ce]},$$scope:{ctx:t}}}),o.$on("click",t[11]);let u=t[0].dashboardLayout,d=[];for(let e=0;e<u.length;e+=1)d[e]=fe(Zt(t,u,e));const v=t=>U(d[t],1,1,(()=>{d[t]=null}));return{c(){e=h("h2"),e.textContent="Mein Layout",n=y(),et(o.$$.fragment),i=y(),s=h("div"),l=h("p"),l.textContent="Dies sind Ihre vorhandenen Vorlagen.",c=y(),r=h("div");for(let t=0;t<d.length;t+=1)d[t].c();k(r,"class","layout-cards svelte-1rgcwkg"),k(s,"class","form-setting")},m(t,u){g(t,e,u),g(t,n,u),nt(o,t,u),g(t,i,u),g(t,s,u),f(s,l),f(s,c),f(s,r);for(let t=0;t<d.length;t+=1)d[t].m(r,null);a=!0},p(t,e){const n={};if(134217728&e&&(n.$$scope={dirty:e,ctx:t}),o.$set(n),37121&e){let n;for(u=t[0].dashboardLayout,n=0;n<u.length;n+=1){const o=Zt(t,u,n);d[n]?(d[n].p(o,e),K(d[n],1)):(d[n]=fe(o),d[n].c(),K(d[n],1),d[n].m(r,null))}for(V(),n=u.length;n<d.length;n+=1)v(n);H()}},i(t){if(!a){K(o.$$.fragment,t);for(let t=0;t<u.length;t+=1)K(d[t]);a=!0}},o(t){U(o.$$.fragment,t),d=d.filter(Boolean);for(let t=0;t<d.length;t+=1)U(d[t]);a=!1},d(t){t&&m(e),t&&m(n),ot(o,t),t&&m(i),t&&m(s),p(d,t)}}}function se(t){let e,n,o,i=t[2].id+"";return{c(){e=$("Layouts "),n=$(i),o=$(" bearbeiten")},m(t,i){g(t,e,i),g(t,n,i),g(t,o,i)},p(t,e){4&e&&i!==(i=t[2].id+"")&&b(n,i)},d(t){t&&m(e),t&&m(n),t&&m(o)}}}function le(t){let e;return{c(){e=$("Neues Layout erstellen")},m(t,n){g(t,e,n)},p:s,d(t){t&&m(e)}}}function ce(t){let e,n,o;return e=new St({props:{size:"24"}}),{c(){et(e.$$.fragment),n=$("\n Neues Layout hinzufügen")},m(t,i){nt(e,t,i),g(t,n,i),o=!0},p:s,i(t){o||(K(e.$$.fragment,t),o=!0)},o(t){U(e.$$.fragment,t),o=!1},d(t){ot(e,t),t&&m(n)}}}function re(t){let e,n;return e=new t[7]({props:{class:"layout-card",$$slots:{default:[de]},$$scope:{ctx:t}}}),{c(){et(e.$$.fragment)},m(t,o){nt(e,t,o),n=!0},p(t,n){const o={};134217729&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(K(e.$$.fragment,t),n=!0)},o(t){U(e.$$.fragment,t),n=!1},d(t){ot(e,t)}}}function ae(t){let e,n=t[20].moduleList,o=[];for(let e=0;e<n.length;e+=1)o[e]=ue(Qt(t,n,e));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=x()},m(t,n){for(let e=0;e<o.length;e+=1)o[e].m(t,n);g(t,e,n)},p(t,i){if(257&i){let s;for(n=t[20].moduleList,s=0;s<n.length;s+=1){const l=Qt(t,n,s);o[s]?o[s].p(l,i):(o[s]=ue(l),o[s].c(),o[s].m(e.parentNode,e))}for(;s<o.length;s+=1)o[s].d(1);o.length=n.length}},d(t){p(o,t),t&&m(e)}}}function ue(t){let e,n,o,i=t[8](t[23].moduleId)+"";return{c(){e=h("p"),n=$(i),o=y(),k(e,"class","svelte-1rgcwkg")},m(t,i){g(t,e,i),f(e,n),f(e,o)},p(t,e){1&e&&i!==(i=t[8](t[23].moduleId)+"")&&b(n,i)},d(t){t&&m(e)}}}function de(t){let e,n,o,i,s,l,c,u,d,p,v,x,z,L,N,M,S,_,j,E,O,T,D,B,I=t[20].id+"",W=t[20].days+"";n=new Lt({props:{size:"18"}}),s=new Et({props:{size:"18"}});let A=t[20].moduleList&&ae(t);return{c(){e=h("div"),et(n.$$.fragment),o=y(),i=h("div"),et(s.$$.fragment),l=y(),c=h("div"),u=h("span"),d=y(),p=$(I),v=y(),x=h("div"),z=h("div"),z.textContent="Aktiv an den Tagen",L=y(),N=h("p"),M=$(W),S=y(),_=h("div"),j=h("div"),j.textContent="Aktive Module",E=y(),A&&A.c(),O=y(),k(e,"class","layout-card--icons edit svelte-1rgcwkg"),k(i,"class","layout-card--icons delete svelte-1rgcwkg"),k(u,"class","active-indicator svelte-1rgcwkg"),C(u,"active",t[20].activated),k(c,"class","layout-card--title svelte-1rgcwkg"),k(z,"class","layout-card--subtitle svelte-1rgcwkg"),k(N,"class","svelte-1rgcwkg"),k(x,"class","layout-card--section svelte-1rgcwkg"),k(j,"class","layout-card--subtitle svelte-1rgcwkg"),k(_,"class","layout-card--section svelte-1rgcwkg")},m(r,m){g(r,e,m),nt(n,e,null),g(r,o,m),g(r,i,m),nt(s,i,null),g(r,l,m),g(r,c,m),f(c,u),f(c,d),f(c,p),g(r,v,m),g(r,x,m),f(x,z),f(x,L),f(x,N),f(N,M),g(r,S,m),g(r,_,m),f(_,j),f(_,E),A&&A.m(_,null),g(r,O,m),T=!0,D||(B=[w(e,"click",(function(){a(t[12](t[20]))&&t[12](t[20]).apply(this,arguments)})),w(i,"click",(function(){a(t[15](t[20]))&&t[15](t[20]).apply(this,arguments)}))],D=!0)},p(e,n){t=e,1&n&&C(u,"active",t[20].activated),(!T||1&n)&&I!==(I=t[20].id+"")&&b(p,I),(!T||1&n)&&W!==(W=t[20].days+"")&&b(M,W),t[20].moduleList?A?A.p(t,n):(A=ae(t),A.c(),A.m(_,null)):A&&(A.d(1),A=null)},i(t){T||(K(n.$$.fragment,t),K(s.$$.fragment,t),T=!0)},o(t){U(n.$$.fragment,t),U(s.$$.fragment,t),T=!1},d(t){t&&m(e),ot(n),t&&m(o),t&&m(i),ot(s),t&&m(l),t&&m(c),t&&m(v),t&&m(x),t&&m(S),t&&m(_),A&&A.d(),t&&m(O),D=!1,r(B)}}}function fe(t){let e,n,o=null!=t[20].id&&re(t);return{c(){o&&o.c(),e=x()},m(t,i){o&&o.m(t,i),g(t,e,i),n=!0},p(t,n){null!=t[20].id?o?(o.p(t,n),1&n&&K(o,1)):(o=re(t),o.c(),K(o,1),o.m(e.parentNode,e)):o&&(V(),U(o,1,1,(()=>{o=null})),H())},i(t){n||(K(o),n=!0)},o(t){U(o),n=!1},d(t){o&&o.d(t),t&&m(e)}}}function ge(t){let e,n,o,i,s,l,c;function r(e){t[16](e)}let a={$$slots:{default:[ne,({closeCallback:t})=>({26:t}),({closeCallback:t})=>t?67108864:0]},$$scope:{ctx:t}};void 0!==t[3]&&(a.open=t[3]),n=new t[4]({props:a}),E.push((()=>tt(n,"open",r)));const u=[ie,oe],d=[];function p(t,e){return!t[0]||t[1]||t[2]?t[0]&&(t[1]||null!=t[2])?1:-1:0}return~(s=p(t))&&(l=d[s]=u[s](t)),{c(){e=h("div"),et(n.$$.fragment),i=y(),l&&l.c()},m(t,o){g(t,e,o),nt(n,e,null),f(e,i),~s&&d[s].m(e,null),c=!0},p(t,[i]){const c={};201326592&i&&(c.$$scope={dirty:i,ctx:t}),!o&&8&i&&(o=!0,c.open=t[3],A((()=>o=!1))),n.$set(c);let r=s;s=p(t),s===r?~s&&d[s].p(t,i):(l&&(V(),U(d[r],1,1,(()=>{d[r]=null})),H()),~s?(l=d[s],l?l.p(t,i):(l=d[s]=u[s](t),l.c()),K(l,1),l.m(e,null)):l=null)},i(t){c||(K(n.$$.fragment,t),K(l),c=!0)},o(t){U(n.$$.fragment,t),U(l),c=!1},d(t){t&&m(e),ot(n),~s&&d[s].d()}}}function me(t,o,i){const{Modal:s,Dialog:l,Button:c,Card:r}=e;let a,{settings:u}=o,d=!1;const f=_();function g(t){if(i(1,d=!1),i(2,a=void 0),!t.detail||!t.detail.id)return void console.error("Could not save Layout!");const e=u.dashboardLayout.findIndex((e=>e.id==t.detail.id));e>-1?i(0,u.dashboardLayout[e]=t.detail,u):u.dashboardLayout.unshift(t.detail),f("save")}let m,p=!1;return t.$$set=t=>{"settings"in t&&i(0,u=t.settings)},[u,d,a,p,s,l,c,r,function(t){return n.getModuleName(t)},g,function(){i(2,a=void 0),i(1,d=!1)},function(){i(2,a={id:"",activated:!0,days:[],moduleList:[{moduleId:"1111",position:"0"},{moduleId:"9999",position:"1"}]}),i(1,d=!0)},function(t){i(2,a={id:t.id,activated:t.activated,days:[...t.days],moduleList:[...t.moduleList]})},function(){const t=u.dashboardLayout.findIndex((t=>t.id==m.id));-1!=t&&(u.dashboardLayout.splice(t,1),i(0,u),i(3,p=!1),f("save"))},function(){i(3,p=!1),m=void 0},function(t){m=t,i(3,p=!0)},function(t){p=t,i(3,p)},t=>g(t)]}class pe extends st{constructor(t){var e;super(),document.getElementById("svelte-1rgcwkg-style")||((e=h("style")).id="svelte-1rgcwkg-style",e.textContent=".btn-back.svelte-1rgcwkg.svelte-1rgcwkg{cursor:pointer;margin-right:1em}.btns-container.svelte-1rgcwkg.svelte-1rgcwkg{display:flex;justify-content:space-between;margin-top:1em}.layout-cards.svelte-1rgcwkg.svelte-1rgcwkg{display:flex;flex-flow:row wrap;gap:2em}.layout-cards.svelte-1rgcwkg .svelte-1rgcwkg{width:200px}.layout-cards.svelte-1rgcwkg .layout-card--icons.svelte-1rgcwkg{cursor:pointer;position:absolute;width:auto}.layout-cards.svelte-1rgcwkg .layout-card--icons.edit.svelte-1rgcwkg{right:45px;top:16px}.layout-cards.svelte-1rgcwkg .layout-card--icons.delete.svelte-1rgcwkg{right:21px;top:16px}.layout-cards.svelte-1rgcwkg .layout-card{position:relative;font-size:1em}.layout-cards.svelte-1rgcwkg .layout-card--title.svelte-1rgcwkg{font-weight:600;height:20px;display:flex;gap:0.5em;place-items:center;margin-bottom:1.5em;margin-top:1em}.layout-cards.svelte-1rgcwkg .layout-card--subtitle.svelte-1rgcwkg{font-weight:600;margin-bottom:0.5em}.layout-cards.svelte-1rgcwkg .layout-card--section.svelte-1rgcwkg{font-size:0.8em;margin-bottom:1.5em}.layout-cards.svelte-1rgcwkg p.svelte-1rgcwkg{margin:0.5 0 0 0}.active-indicator.svelte-1rgcwkg.svelte-1rgcwkg{height:15px;width:15px;border-radius:50%;display:inline-block;background-color:red}.active.svelte-1rgcwkg.svelte-1rgcwkg{background-color:green}",f(document.head,e)),it(this,t,me,ge,u,{settings:0})}}function he(t){let e,n,o,i,s,l,c,a,u,d,p,v,$;var x=t[1];function b(t){return{props:{settings:t[2]}}}return x&&(d=new x(b(t)),d.$on("save",t[6])),{c(){e=h("section"),n=h("div"),o=h("div"),o.textContent="Mein Konto",i=y(),s=h("div"),s.textContent="Meine Benachrichtigungen",l=y(),c=h("div"),c.textContent="Mein Layout",a=y(),u=h("div"),d&&et(d.$$.fragment),k(o,"class","nav--item svelte-1x5ysxy"),C(o,"active",t[1]==ut),k(s,"class","nav--item svelte-1x5ysxy"),C(s,"active",t[1]==vt),k(c,"class","nav--item svelte-1x5ysxy"),C(c,"active",t[1]==pe),k(n,"class","container-setting--nav svelte-1x5ysxy"),k(u,"class","container-setting--content svelte-1x5ysxy"),k(e,"class","container-setting svelte-1x5ysxy")},m(r,m){g(r,e,m),f(e,n),f(n,o),f(n,i),f(n,s),f(n,l),f(n,c),f(e,a),f(e,u),d&&nt(d,u,null),p=!0,v||($=[w(o,"click",t[3]),w(s,"click",t[4]),w(c,"click",t[5])],v=!0)},p(t,e){2&e&&C(o,"active",t[1]==ut),2&e&&C(s,"active",t[1]==vt),2&e&&C(c,"active",t[1]==pe);const n={};if(4&e&&(n.settings=t[2]),x!==(x=t[1])){if(d){V();const t=d;U(t.$$.fragment,1,0,(()=>{ot(t,1)})),H()}x?(d=new x(b(t)),d.$on("save",t[6]),et(d.$$.fragment),K(d.$$.fragment,1),nt(d,u,null)):d=null}else x&&d.$set(n)},i(t){p||(d&&K(d.$$.fragment,t),p=!0)},o(t){d&&U(d.$$.fragment,t),p=!1},d(t){t&&m(e),d&&ot(d),v=!1,r($)}}}function ve(t){let e,n,o=t[0]&&he(t);return{c(){o&&o.c(),e=x()},m(t,i){o&&o.m(t,i),g(t,e,i),n=!0},p(t,[n]){t[0]?o?(o.p(t,n),1&n&&K(o,1)):(o=he(t),o.c(),K(o,1),o.m(e.parentNode,e)):o&&(V(),U(o,1,1,(()=>{o=null})),H())},i(t){n||(K(o),n=!0)},o(t){U(o),n=!1},d(t){o&&o.d(t),t&&m(e)}}}function $e(t,e,s){let l;d(t,o,(t=>s(10,l=t)));let c,r,a,u,f,{injectedSettings:g}=e;const m=()=>{var t;s(2,(r={jobDescription:(t=g).jobDescription,showJobDescription:t.setting.showJobDescription,email:t.email,firstName:t.firstName,lastName:t.lastName,listTitle:t.listTitle,hideRoles:t.hideRoles},f=r)),s(1,c=ut)};async function p(){try{await n.saveUserSettings(g),s(0,g),function(t,e,n=e){t.set(n)}(o,l=g,l),i.success("Speichern erfolgreich",2e3)}catch(t){console.error(t),i.failed("Speichern nicht erfolgreich",2e3)}}return m(),t.$$set=t=>{"injectedSettings"in t&&s(0,g=t.injectedSettings)},[g,c,f,m,()=>{var t;s(2,(a={notificationActivated:(t=g).setting.notificationActivated,showNotifications:t.setting.showNotifications,notificationToMail:t.setting.notificationToMail,typesOfNotification:t.setting.typesOfNotification},f=a)),s(1,c=vt)},()=>{s(2,(u={dashboardLayout:g.setting.dashboardLayout},f=u)),s(1,c=pe)},function(){c==ut?(s(0,g.jobDescription=r.jobDescription,g),s(0,g.setting.showJobDescription=r.showJobDescription,g),s(0,g.email=r.email,g),s(0,g.firstName=r.firstName,g),s(0,g.lastName=r.lastName,g),s(0,g.listTitle=r.listTitle,g),s(0,g.hideRoles=r.hideRoles,g),p()):c==vt?(s(0,g.setting.notificationActivated=a.notificationActivated,g),s(0,g.setting.showNotifications=a.showNotifications,g),s(0,g.setting.notificationToMail=a.notificationToMail,g),s(0,g.setting.typesOfNotification=a.typesOfNotification,g),p()):c==pe&&(s(0,g.setting.dashboardLayout=u.dashboardLayout,g),p())}]}class ye extends st{constructor(t){var e;super(),document.getElementById("svelte-1x5ysxy-style")||((e=h("style")).id="svelte-1x5ysxy-style",e.textContent=".container-setting.svelte-1x5ysxy.svelte-1x5ysxy{display:grid;grid-template-columns:0.5fr 1fr;height:calc(100% - 120px)}.container-setting--nav.svelte-1x5ysxy.svelte-1x5ysxy{border-right:5px solid #ccc;cursor:pointer}.container-setting--nav.svelte-1x5ysxy .nav--item.svelte-1x5ysxy{padding:1.5em 1em;border-bottom:1px solid #ccc}.container-setting--nav.svelte-1x5ysxy .nav--item.svelte-1x5ysxy:hover{background-color:#ddd}.container-setting--nav.svelte-1x5ysxy .nav--item.active.svelte-1x5ysxy{font-weight:600;background-color:#ddd}.container-setting--content.svelte-1x5ysxy.svelte-1x5ysxy{padding:0 1em 0 1.5em;overflow:auto}.container-setting--content.svelte-1x5ysxy .form-setting{margin-bottom:2em}.container-setting--content.svelte-1x5ysxy .form-setting .form-field{display:flex;flex-direction:row;margin-bottom:2em}.container-setting--content.svelte-1x5ysxy .form-setting .form-field .helptext{font-size:0.9em;font-weight:400;margin-top:0.5em}.container-setting--content.svelte-1x5ysxy .form-setting .form-field .form-field--label{font-weight:600;flex-basis:30%;align-self:center}.container-setting--content.svelte-1x5ysxy .form-setting .form-field .switch{align-self:flex-start}.container-setting--content.svelte-1x5ysxy .form-setting .form-field .form-field--content{flex:1;margin-left:1em}.container-setting--content.svelte-1x5ysxy .form-setting .form-field .form-field--content .checkbox{margin-top:0.2em}",f(document.head,e)),it(this,t,$e,ve,u,{injectedSettings:0})}}function xe(t){return{c:s,m:s,p:s,i:s,o:s,d:s}}function we(t){let e,n;return e=new t[0]({props:{open:"true",noClickaway:"true",$$slots:{default:[be,({closeCallback:t})=>({4:t}),({closeCallback:t})=>t?16:0]},$$scope:{ctx:t}}}),{c(){et(e.$$.fragment)},m(t,o){nt(e,t,o),n=!0},p(t,n){const o={};32&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(K(e.$$.fragment,t),n=!0)},o(t){U(e.$$.fragment,t),n=!1},d(t){ot(e,t)}}}function ke(t){let e,n,o,i;return o=new ye({props:{injectedSettings:t[3]}}),{c(){e=h("div"),e.innerHTML="<h2>Einstellungen</h2>",n=y(),et(o.$$.fragment),k(e,"class","setting--title svelte-ltqsg7")},m(t,s){g(t,e,s),g(t,n,s),nt(o,t,s),i=!0},p:s,i(t){i||(K(o.$$.fragment,t),i=!0)},o(t){U(o.$$.fragment,t),i=!1},d(t){t&&m(e),t&&m(n),ot(o,t)}}}function be(t){let e,n,o=t[3]&&function(t){let e,n,o;return n=new t[1]({props:{constrainWidth:!0,closeCallback:function(){return t[2](t[4])},class:"modal_class",$$slots:{default:[ke]},$$scope:{ctx:t}}}),{c(){e=h("div"),et(n.$$.fragment),k(e,"class","setting--modal svelte-ltqsg7")},m(t,i){g(t,e,i),nt(n,e,null),o=!0},p(e,o){t=e;const i={};32&o&&(i.$$scope={dirty:o,ctx:t}),n.$set(i)},i(t){o||(K(n.$$.fragment,t),o=!0)},o(t){U(n.$$.fragment,t),o=!1},d(t){t&&m(e),ot(n)}}}(t);return{c(){o&&o.c(),e=x()},m(t,i){o&&o.m(t,i),g(t,e,i),n=!0},p(t,e){t[3]&&o.p(t,e)},i(t){n||(K(o),n=!0)},o(t){U(o),n=!1},d(t){o&&o.d(t),t&&m(e)}}}function ze(t){return{c:s,m:s,p:s,i:s,o:s,d:s}}function Ce(t){let e,o,i={ctx:t,current:null,token:null,hasCatch:!1,pending:ze,then:we,catch:xe,value:3,blocks:[,,,]};return Z(n.getUserSettings(),i),{c(){e=x(),i.block.c()},m(t,n){g(t,e,n),i.block.m(t,i.anchor=n),i.mount=()=>e.parentNode,i.anchor=e,o=!0},p(e,[n]){Q(i,t=e,n)},i(t){o||(K(i.block),o=!0)},o(t){for(let t=0;t<3;t+=1){U(i.blocks[t])}o=!1},d(t){t&&m(e),i.block.d(t),i.token=null,i=null}}}function Le(t){const{Modal:n,Dialog:o}=e;return[n,o,t=>(window.singleSpaNavigate("/"),t())]}function Ne(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Me,Se,_e=(Me=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){i(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 i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){return s="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},s(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if("object"!==s(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:c.bind(null,e,n),mount:r.bind(null,e,n),unmount:a.bind(null,e,n),update:u.bind(null,e,n)}};var l={component:null,domElementGetter:null,props:{}};function c(t){return Promise.resolve()}function r(t,e,n){var i=Object.keys(l),s=Object.keys(t).reduce((function(e,n){return i.includes(n)||(e[n]=t[n]),e}),{});return Promise.resolve().then((function(){var i=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=i();e.instance=new t.component(o(o({},s),{},{target:l,props:Object.assign({},n,t.props)}))}))}function a(t,e){return Promise.resolve().then((function(){e.instance.$destroy?e.instance.$destroy():e.instance.destroy()}))}function u(t,e,n){return Promise.resolve().then((function(){e.instance.$set?e.instance.$set(n):e.instance.set(n)}))}},Me(Se={exports:{}},Se.exports),Se.exports);const je=Ne(_e)({component:class extends st{constructor(t){var e;super(),document.getElementById("svelte-ltqsg7-style")||((e=h("style")).id="svelte-ltqsg7-style",e.textContent=".setting--modal.svelte-ltqsg7 .modal_class{height:80vh;min-width:70vw;overflow:hidden}.setting--title.svelte-ltqsg7{border-bottom:2px solid #ccc}",f(document.head,e)),it(this,t,Le,Ce,u,{})}},domElementGetter:()=>document.getElementById("view-app")}),{bootstrap:Ee,mount:Oe,unmount:Te}=je;t({bootstrap:Ee,mount:Oe,unmount:Te})}}}));
|