@enablerr-ui/settings 0.2.12 → 0.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.min.js CHANGED
@@ -1 +1 @@
1
- System.register(["@enablerr-ui/layout","@enablerr-ui/form"],(function(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]&&lt(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})}}}));
1
+ System.register(["@enablerr-ui/layout","@enablerr-ui/form","@enablerr-ui/auth"],(function(e){"use strict";var t,n,o,s,i;return{setters:[function(e){t=e.getAttractions},function(e){n=e.Request,o=e.settings,s=e.toasts},function(e){i=e.user}],execute:function(){e("version","0.2.14");function l(){}function r(e){return e()}function c(){return Object.create(null)}function a(e){e.forEach(r)}function u(e){return"function"==typeof e}function d(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function f(e,t,n){e.$$.on_destroy.push(function(e,...t){if(null==e)return l;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}(t,n))}function g(e,t){e.appendChild(t)}function m(e,t,n){e.insertBefore(t,n||null)}function p(e){e.parentNode.removeChild(e)}function h(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function v(e){return document.createElement(e)}function $(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function y(e){return document.createTextNode(e)}function w(){return y(" ")}function x(){return y("")}function k(e,t,n,o){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}function b(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function z(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function C(e,t){e.value=null==t?"":t}function L(e,t,n){e.classList[n?"add":"remove"](t)}let N;function j(e){N=e}function M(){if(!N)throw new Error("Function called outside component initialization");return N}function S(e){M().$$.on_mount.push(e)}function E(){const e=M();return(t,n)=>{const o=e.$$.callbacks[t];if(o){const s=function(e,t){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}(t,n);o.slice().forEach((t=>{t.call(e,s)}))}}}const _=[],T=[],O=[],B=[],D=Promise.resolve();let I=!1;function W(){I||(I=!0,D.then(R))}function A(e){O.push(e)}function q(e){B.push(e)}let P=!1;const V=new Set;function R(){if(!P){P=!0;do{for(let e=0;e<_.length;e+=1){const t=_[e];j(t),J(t.$$)}for(j(null),_.length=0;T.length;)T.pop()();for(let e=0;e<O.length;e+=1){const t=O[e];V.has(t)||(V.add(t),t())}O.length=0}while(_.length);for(;B.length;)B.pop()();I=!1,P=!1,V.clear()}}function J(e){if(null!==e.fragment){e.update(),a(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(A)}}const F=new Set;let G;function H(){G={r:0,c:[],p:G}}function K(){G.r||a(G.c),G=G.p}function U(e,t){e&&e.i&&(F.delete(e),e.i(t))}function Z(e,t,n,o){if(e&&e.o){if(F.has(e))return;F.add(e),G&&G.c.push((()=>{F.delete(e),o&&(n&&e.d(1),o())})),e.o(t)}}function Q(e,t){const n=t.token={};function o(e,o,s,i){if(t.token!==n)return;t.resolved=i;let l=t.ctx;void 0!==s&&(l=l.slice(),l[s]=i);const r=e&&(t.current=e)(l);let c=!1;t.block&&(t.blocks?t.blocks.forEach(((e,n)=>{n!==o&&e&&(H(),Z(e,1,1,(()=>{t.blocks[n]===e&&(t.blocks[n]=null)})),K())})):t.block.d(1),r.c(),U(r,1),r.m(t.mount(),t.anchor),c=!0),t.block=r,t.blocks&&(t.blocks[o]=r),c&&R()}if((s=e)&&"object"==typeof s&&"function"==typeof s.then){const n=M();if(e.then((e=>{j(n),o(t.then,1,t.value,e),j(null)}),(e=>{if(j(n),o(t.catch,2,t.error,e),j(null),!t.hasCatch)throw e})),t.current!==t.pending)return o(t.pending,0),!0}else{if(t.current!==t.then)return o(t.then,1,t.value,e),!0;t.resolved=e}var s}function X(e,t,n){const o=t.slice(),{resolved:s}=e;e.current===e.then&&(o[e.value]=s),e.current===e.catch&&(o[e.error]=s),e.block.p(o,n)}const Y="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function ee(e,t){Z(e,1,1,(()=>{t.delete(e.key)}))}function te(e,t,n){const o=e.$$.props[t];void 0!==o&&(e.$$.bound[o]=n,n(e.$$.ctx[o]))}function ne(e){e&&e.c()}function oe(e,t,n,o){const{fragment:s,on_mount:i,on_destroy:l,after_update:c}=e.$$;s&&s.m(t,n),o||A((()=>{const t=i.map(r).filter(u);l?l.push(...t):a(t),e.$$.on_mount=[]})),c.forEach(A)}function se(e,t){const n=e.$$;null!==n.fragment&&(a(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ie(e,t,n,o,s,i,r=[-1]){const u=N;j(e);const d=e.$$={fragment:null,ctx:null,props:i,update:l,not_equal:s,bound:c(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(u?u.$$.context:t.context||[]),callbacks:c(),dirty:r,skip_bound:!1};let f=!1;if(d.ctx=n?n(e,t.props||{},((t,n,...o)=>{const i=o.length?o[0]:n;return d.ctx&&s(d.ctx[t],d.ctx[t]=i)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](i),f&&function(e,t){-1===e.$$.dirty[0]&&(_.push(e),W(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(e,t)),n})):[],d.update(),f=!0,a(d.before_update),d.fragment=!!o&&o(d.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);d.fragment&&d.fragment.l(e),e.forEach(p)}else d.fragment&&d.fragment.c();t.intro&&U(e.$$.fragment),oe(e,t.target,t.anchor,t.customElement),R()}j(u)}class le{$destroy(){se(this,1),this.$destroy=l}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function re(e){let t,n,o,s,i,l,r,c,u,d,f,h,$,y,x,z,C,L,N,j,M,S,E,_,O,B,D,I,W,A,P,V,R,J,F,G,H,K,Q,X,Y,ee,ie,le,re,ae,ue,de,fe,ge;function me(t){e[4](t)}let pe={placeholder:"Berufsbezeichnung"};function he(t){e[6](t)}void 0!==e[0].jobDescription&&(pe.value=e[0].jobDescription),l=new e[2]({props:pe}),T.push((()=>te(l,"value",me))),L=new e[2]({props:{placeholder:"E-Mail",disabled:!0,value:e[0].email}});let ve={placeholder:"Vorname"};function $e(t){e[7](t)}void 0!==e[0].firstName&&(ve.value=e[0].firstName),_=new e[2]({props:ve}),T.push((()=>te(_,"value",he)));let ye={placeholder:"Nachname"};function we(t){e[8](t)}void 0!==e[0].lastName&&(ye.value=e[0].lastName),P=new e[2]({props:ye}),T.push((()=>te(P,"value",$e)));let xe={placeholder:"Titel"};return void 0!==e[0].listTitle&&(xe.value=e[0].listTitle),K=new e[2]({props:xe}),T.push((()=>te(K,"value",we))),ue=new e[1]({props:{filled:!0,$$slots:{default:[ce]},$$scope:{ctx:e}}}),ue.$on("click",e[3]),{c(){t=v("form"),n=v("div"),o=v("div"),o.textContent="Berufsbezeichnung",s=w(),i=v("div"),ne(l.$$.fragment),c=w(),u=v("div"),d=v("input"),f=w(),h=v("label"),h.textContent="Meine Berufsbezeichnung in meinem Profil anzeigen.",$=w(),y=v("div"),x=v("div"),x.textContent="E-Mail",z=w(),C=v("div"),ne(L.$$.fragment),N=w(),j=v("div"),M=v("div"),M.textContent="Vorname",S=w(),E=v("div"),ne(_.$$.fragment),B=w(),D=v("div"),I=v("div"),I.textContent="Nachname",W=w(),A=v("div"),ne(P.$$.fragment),R=w(),J=v("div"),F=v("div"),F.textContent="Titel Aufgabenliste",G=w(),H=v("div"),ne(K.$$.fragment),X=w(),Y=v("div"),ee=v("div"),ee.textContent="Rollen nicht anzeigen",ie=w(),le=v("div"),re=v("input"),ae=w(),ne(ue.$$.fragment),b(o,"class","form-field--label"),b(d,"type","checkbox"),b(d,"id","showJobDesc"),b(d,"name","shwoJobDescriptionInBio"),b(h,"for","showJobDesc"),b(u,"class","checkbox"),b(i,"class","form-field--content"),b(n,"class","form-field"),b(x,"class","form-field--label"),b(C,"class","form-field--content"),b(y,"class","form-field"),b(M,"class","form-field--label"),b(E,"class","form-field--content"),b(j,"class","form-field"),b(I,"class","form-field--label"),b(A,"class","form-field--content"),b(D,"class","form-field"),b(F,"class","form-field--label"),b(H,"class","form-field--content"),b(J,"class","form-field"),b(ee,"class","form-field--label svelte-c1yie6"),b(re,"type","checkbox"),b(re,"id","hideRoles"),b(re,"name","hideRoles"),b(le,"class","checkbox svelte-c1yie6"),b(Y,"class","form-field"),b(t,"class","form-setting")},m(r,a){m(r,t,a),g(t,n),g(n,o),g(n,s),g(n,i),oe(l,i,null),g(i,c),g(i,u),g(u,d),d.checked=e[0].showJobDescription,g(u,f),g(u,h),g(t,$),g(t,y),g(y,x),g(y,z),g(y,C),oe(L,C,null),g(t,N),g(t,j),g(j,M),g(j,S),g(j,E),oe(_,E,null),g(t,B),g(t,D),g(D,I),g(D,W),g(D,A),oe(P,A,null),g(t,R),g(t,J),g(J,F),g(J,G),g(J,H),oe(K,H,null),g(t,X),g(t,Y),g(Y,ee),g(Y,ie),g(Y,le),g(le,re),re.checked=e[0].hideRoles,m(r,ae,a),oe(ue,r,a),de=!0,fe||(ge=[k(d,"change",e[5]),k(re,"change",e[9])],fe=!0)},p(e,t){const n={};!r&&1&t&&(r=!0,n.value=e[0].jobDescription,q((()=>r=!1))),l.$set(n),1&t&&(d.checked=e[0].showJobDescription);const o={};1&t&&(o.value=e[0].email),L.$set(o);const s={};!O&&1&t&&(O=!0,s.value=e[0].firstName,q((()=>O=!1))),_.$set(s);const i={};!V&&1&t&&(V=!0,i.value=e[0].lastName,q((()=>V=!1))),P.$set(i);const c={};!Q&&1&t&&(Q=!0,c.value=e[0].listTitle,q((()=>Q=!1))),K.$set(c),1&t&&(re.checked=e[0].hideRoles);const a={};4096&t&&(a.$$scope={dirty:t,ctx:e}),ue.$set(a)},i(e){de||(U(l.$$.fragment,e),U(L.$$.fragment,e),U(_.$$.fragment,e),U(P.$$.fragment,e),U(K.$$.fragment,e),U(ue.$$.fragment,e),de=!0)},o(e){Z(l.$$.fragment,e),Z(L.$$.fragment,e),Z(_.$$.fragment,e),Z(P.$$.fragment,e),Z(K.$$.fragment,e),Z(ue.$$.fragment,e),de=!1},d(e){e&&p(t),se(l),se(L),se(_),se(P),se(K),e&&p(ae),se(ue,e),fe=!1,a(ge)}}}function ce(e){let t;return{c(){t=y("Speichern")},m(e,n){m(e,t,n)},d(e){e&&p(t)}}}function ae(e){let t,n,o,s,i=e[0]&&re(e);return{c(){t=v("div"),n=v("h2"),n.textContent="Mein Konto",o=w(),i&&i.c()},m(e,l){m(e,t,l),g(t,n),g(t,o),i&&i.m(t,null),s=!0},p(e,[n]){e[0]?i?(i.p(e,n),1&n&&U(i,1)):(i=re(e),i.c(),U(i,1),i.m(t,null)):i&&(H(),Z(i,1,1,(()=>{i=null})),K())},i(e){s||(U(i),s=!0)},o(e){Z(i),s=!1},d(e){e&&p(t),i&&i.d()}}}function ue(e,n,o){const{Button:s,TextField:i,FormField:l}=t;let{settings:r}=n;const c=E();return e.$$set=e=>{"settings"in e&&o(0,r=e.settings)},[r,s,i,function(){c("save")},function(t){e.$$.not_equal(r.jobDescription,t)&&(r.jobDescription=t,o(0,r))},function(){r.showJobDescription=this.checked,o(0,r)},function(t){e.$$.not_equal(r.firstName,t)&&(r.firstName=t,o(0,r))},function(t){e.$$.not_equal(r.lastName,t)&&(r.lastName=t,o(0,r))},function(t){e.$$.not_equal(r.listTitle,t)&&(r.listTitle=t,o(0,r))},function(){r.hideRoles=this.checked,o(0,r)}]}class de extends le{constructor(e){var t;super(),document.getElementById("svelte-c1yie6-style")||((t=v("style")).id="svelte-c1yie6-style",t.textContent="div.form-field--label.svelte-c1yie6+div.checkbox.svelte-c1yie6{padding-left:.75em}",g(document.head,t)),ie(this,e,ue,ae,d,{settings:0})}}function fe(e,t,n){const o=e.slice();return o[11]=t[n],o}function ge(e){let t,n,o,s,i,l,r,c,a,u,d,f,$,y,x,k,z,C,L,N,j,M,S,E,_,O,B,D,I;function W(t){e[6](t)}let A={};function P(t){e[7](t)}void 0!==e[0].notificationActivated&&(A.value=e[0].notificationActivated),l=new e[3]({props:A}),T.push((()=>te(l,"value",W)));let V={};function R(t){e[8](t)}void 0!==e[0].showNotifications&&(V.value=e[0].showNotifications),$=new e[3]({props:V}),T.push((()=>te($,"value",P)));let J={};void 0!==e[0].notificationToMail&&(J.value=e[0].notificationToMail),N=new e[3]({props:J}),T.push((()=>te(N,"value",R)));let F=e[1],G=[];for(let t=0;t<F.length;t+=1)G[t]=me(fe(e,F,t));return D=new e[2]({props:{filled:!0,$$slots:{default:[pe]},$$scope:{ctx:e}}}),D.$on("click",e[4]),{c(){t=v("form"),n=v("div"),o=v("div"),o.textContent="Benachrichtigungen aktivieren",s=w(),i=v("div"),ne(l.$$.fragment),c=w(),a=v("div"),u=v("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=w(),f=v("div"),ne($.$$.fragment),x=w(),k=v("div"),z=v("div"),z.textContent="Benachrichtigungen an E-Mail senden",C=w(),L=v("div"),ne(N.$$.fragment),M=w(),S=v("div"),E=v("div"),E.innerHTML='Arten von Benachrichtigungen\n <p class="helptext">Wählen Sie aus, welche Arten von Benachrichtigungen Sie sehen\n möchten.</p>',_=w(),O=v("div");for(let e=0;e<G.length;e+=1)G[e].c();B=w(),ne(D.$$.fragment),b(o,"class","form-field--label switch"),b(i,"class","form-field--content"),b(n,"class","form-field"),b(u,"class","form-field--label switch"),b(f,"class","form-field--content"),b(a,"class","form-field"),b(z,"class","form-field--label switch"),b(L,"class","form-field--content"),b(k,"class","form-field"),b(E,"class","form-field--label"),b(O,"class","form-field--content"),b(S,"class","form-field"),b(t,"class","form-setting")},m(e,r){m(e,t,r),g(t,n),g(n,o),g(n,s),g(n,i),oe(l,i,null),g(t,c),g(t,a),g(a,u),g(a,d),g(a,f),oe($,f,null),g(t,x),g(t,k),g(k,z),g(k,C),g(k,L),oe(N,L,null),g(t,M),g(t,S),g(S,E),g(S,_),g(S,O);for(let e=0;e<G.length;e+=1)G[e].m(O,null);m(e,B,r),oe(D,e,r),I=!0},p(e,t){const n={};!r&&1&t&&(r=!0,n.value=e[0].notificationActivated,q((()=>r=!1))),l.$set(n);const o={};!y&&1&t&&(y=!0,o.value=e[0].showNotifications,q((()=>y=!1))),$.$set(o);const s={};if(!j&&1&t&&(j=!0,s.value=e[0].notificationToMail,q((()=>j=!1))),N.$set(s),35&t){let n;for(F=e[1],n=0;n<F.length;n+=1){const o=fe(e,F,n);G[n]?G[n].p(o,t):(G[n]=me(o),G[n].c(),G[n].m(O,null))}for(;n<G.length;n+=1)G[n].d(1);G.length=F.length}const i={};16384&t&&(i.$$scope={dirty:t,ctx:e}),D.$set(i)},i(e){I||(U(l.$$.fragment,e),U($.$$.fragment,e),U(N.$$.fragment,e),U(D.$$.fragment,e),I=!0)},o(e){Z(l.$$.fragment,e),Z($.$$.fragment,e),Z(N.$$.fragment,e),Z(D.$$.fragment,e),I=!1},d(e){e&&p(t),se(l),se($),se(N),h(G,e),e&&p(B),se(D,e)}}}function me(e){let t,n,o,s,i,l,r,c,a,d,f,h=e[11].type+"";return{c(){t=v("div"),n=v("input"),i=w(),l=v("label"),r=y(h),a=w(),n.checked=o=e[0].typesOfNotification.includes(e[11].type),b(n,"type","checkbox"),b(n,"id",s=e[11].id),b(l,"for",c=e[11].id)},m(o,s){m(o,t,s),g(t,n),g(t,i),g(t,l),g(l,r),g(t,a),d||(f=k(n,"change",(function(){u(e[5](e[11].type))&&e[5](e[11].type).apply(this,arguments)})),d=!0)},p(t,i){e=t,3&i&&o!==(o=e[0].typesOfNotification.includes(e[11].type))&&(n.checked=o),2&i&&s!==(s=e[11].id)&&b(n,"id",s),2&i&&h!==(h=e[11].type+"")&&z(r,h),2&i&&c!==(c=e[11].id)&&b(l,"for",c)},d(e){e&&p(t),d=!1,f()}}}function pe(e){let t;return{c(){t=y("Speichern")},m(e,n){m(e,t,n)},d(e){e&&p(t)}}}function he(e){let t,n,o,s,i=e[0]&&ge(e);return{c(){t=v("div"),n=v("h2"),n.textContent="Meine Benachrichtigungen",o=w(),i&&i.c()},m(e,l){m(e,t,l),g(t,n),g(t,o),i&&i.m(t,null),s=!0},p(e,[n]){e[0]?i?(i.p(e,n),1&n&&U(i,1)):(i=ge(e),i.c(),U(i,1),i.m(t,null)):i&&(H(),Z(i,1,1,(()=>{i=null})),K())},i(e){s||(U(i),s=!0)},o(e){Z(i),s=!1},d(e){e&&p(t),i&&i.d()}}}function ve(e,o,s){const{Button:i,TextField:l,Switch:r}=t;let{settings:c}=o,a=[];const u=E();return S((async()=>{s(1,a=(await n.getNotificationTypes()).filter((({active:e})=>e)))})),e.$$set=e=>{"settings"in e&&s(0,c=e.settings)},[c,a,i,r,function(){u("save")},function(e){const t=c.typesOfNotification.findIndex((t=>t===e));t>-1?c.typesOfNotification.splice(t,1):c.typesOfNotification.unshift(e)},function(t){e.$$.not_equal(c.notificationActivated,t)&&(c.notificationActivated=t,s(0,c))},function(t){e.$$.not_equal(c.showNotifications,t)&&(c.showNotifications=t,s(0,c))},function(t){e.$$.not_equal(c.notificationToMail,t)&&(c.notificationToMail=t,s(0,c))}]}class $e extends le{constructor(e){super(),ie(this,e,ve,he,d,{settings:0})}}function ye(e){let t,n,o,s,i;return{c(){t=$("svg"),n=$("path"),o=$("line"),s=$("line"),b(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"),b(o,"x1","12"),b(o,"y1","9"),b(o,"x2","12"),b(o,"y2","13"),b(s,"x1","12"),b(s,"y1","17"),b(s,"x2","12.01"),b(s,"y2","17"),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"width",e[0]),b(t,"height",e[0]),b(t,"fill","none"),b(t,"viewBox","0 0 24 24"),b(t,"stroke","currentColor"),b(t,"stroke-width",e[1]),b(t,"stroke-linecap","round"),b(t,"stroke-linejoin","round"),b(t,"class",i="feather feather-alert-triangle "+e[2])},m(e,i){m(e,t,i),g(t,n),g(t,o),g(t,s)},p(e,[n]){1&n&&b(t,"width",e[0]),1&n&&b(t,"height",e[0]),2&n&&b(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-alert-triangle "+e[2])&&b(t,"class",i)},i:l,o:l,d(e){e&&p(t)}}}function we(e,t,n){let{size:o="100%"}=t,{strokeWidth:s=2}=t,{class:i=""}=t;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),e.$$set=e=>{"size"in e&&n(0,o=e.size),"strokeWidth"in e&&n(1,s=e.strokeWidth),"class"in e&&n(2,i=e.class)},[o,s,i]}class xe extends le{constructor(e){super(),ie(this,e,we,ye,d,{size:0,strokeWidth:1,class:2})}}function ke(e){let t,n,o,s;return{c(){t=$("svg"),n=$("line"),o=$("polyline"),b(n,"x1","19"),b(n,"y1","12"),b(n,"x2","5"),b(n,"y2","12"),b(o,"points","12 19 5 12 12 5"),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"width",e[0]),b(t,"height",e[0]),b(t,"fill","none"),b(t,"viewBox","0 0 24 24"),b(t,"stroke","currentColor"),b(t,"stroke-width",e[1]),b(t,"stroke-linecap","round"),b(t,"stroke-linejoin","round"),b(t,"class",s="feather feather-arrow-left "+e[2])},m(e,s){m(e,t,s),g(t,n),g(t,o)},p(e,[n]){1&n&&b(t,"width",e[0]),1&n&&b(t,"height",e[0]),2&n&&b(t,"stroke-width",e[1]),4&n&&s!==(s="feather feather-arrow-left "+e[2])&&b(t,"class",s)},i:l,o:l,d(e){e&&p(t)}}}function be(e,t,n){let{size:o="100%"}=t,{strokeWidth:s=2}=t,{class:i=""}=t;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),e.$$set=e=>{"size"in e&&n(0,o=e.size),"strokeWidth"in e&&n(1,s=e.strokeWidth),"class"in e&&n(2,i=e.class)},[o,s,i]}class ze extends le{constructor(e){super(),ie(this,e,be,ke,d,{size:0,strokeWidth:1,class:2})}}function Ce(e){let t,n,o,s;return{c(){t=$("svg"),n=$("path"),o=$("path"),b(n,"d","M12 20h9"),b(o,"d","M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"width",e[0]),b(t,"height",e[0]),b(t,"fill","none"),b(t,"viewBox","0 0 24 24"),b(t,"stroke","currentColor"),b(t,"stroke-width",e[1]),b(t,"stroke-linecap","round"),b(t,"stroke-linejoin","round"),b(t,"class",s="feather feather-edit-3 "+e[2])},m(e,s){m(e,t,s),g(t,n),g(t,o)},p(e,[n]){1&n&&b(t,"width",e[0]),1&n&&b(t,"height",e[0]),2&n&&b(t,"stroke-width",e[1]),4&n&&s!==(s="feather feather-edit-3 "+e[2])&&b(t,"class",s)},i:l,o:l,d(e){e&&p(t)}}}function Le(e,t,n){let{size:o="100%"}=t,{strokeWidth:s=2}=t,{class:i=""}=t;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),e.$$set=e=>{"size"in e&&n(0,o=e.size),"strokeWidth"in e&&n(1,s=e.strokeWidth),"class"in e&&n(2,i=e.class)},[o,s,i]}class Ne extends le{constructor(e){super(),ie(this,e,Le,Ce,d,{size:0,strokeWidth:1,class:2})}}function je(e){let t,n,o,s;return{c(){t=$("svg"),n=$("line"),o=$("line"),b(n,"x1","12"),b(n,"y1","5"),b(n,"x2","12"),b(n,"y2","19"),b(o,"x1","5"),b(o,"y1","12"),b(o,"x2","19"),b(o,"y2","12"),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"width",e[0]),b(t,"height",e[0]),b(t,"fill","none"),b(t,"viewBox","0 0 24 24"),b(t,"stroke","currentColor"),b(t,"stroke-width",e[1]),b(t,"stroke-linecap","round"),b(t,"stroke-linejoin","round"),b(t,"class",s="feather feather-plus "+e[2])},m(e,s){m(e,t,s),g(t,n),g(t,o)},p(e,[n]){1&n&&b(t,"width",e[0]),1&n&&b(t,"height",e[0]),2&n&&b(t,"stroke-width",e[1]),4&n&&s!==(s="feather feather-plus "+e[2])&&b(t,"class",s)},i:l,o:l,d(e){e&&p(t)}}}function Me(e,t,n){let{size:o="100%"}=t,{strokeWidth:s=2}=t,{class:i=""}=t;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),e.$$set=e=>{"size"in e&&n(0,o=e.size),"strokeWidth"in e&&n(1,s=e.strokeWidth),"class"in e&&n(2,i=e.class)},[o,s,i]}class Se extends le{constructor(e){super(),ie(this,e,Me,je,d,{size:0,strokeWidth:1,class:2})}}function Ee(e){let t,n,o,s,i,r;return{c(){t=$("svg"),n=$("polyline"),o=$("path"),s=$("line"),i=$("line"),b(n,"points","3 6 5 6 21 6"),b(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"),b(s,"x1","10"),b(s,"y1","11"),b(s,"x2","10"),b(s,"y2","17"),b(i,"x1","14"),b(i,"y1","11"),b(i,"x2","14"),b(i,"y2","17"),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"width",e[0]),b(t,"height",e[0]),b(t,"fill","none"),b(t,"viewBox","0 0 24 24"),b(t,"stroke","currentColor"),b(t,"stroke-width",e[1]),b(t,"stroke-linecap","round"),b(t,"stroke-linejoin","round"),b(t,"class",r="feather feather-trash-2 "+e[2])},m(e,l){m(e,t,l),g(t,n),g(t,o),g(t,s),g(t,i)},p(e,[n]){1&n&&b(t,"width",e[0]),1&n&&b(t,"height",e[0]),2&n&&b(t,"stroke-width",e[1]),4&n&&r!==(r="feather feather-trash-2 "+e[2])&&b(t,"class",r)},i:l,o:l,d(e){e&&p(t)}}}function _e(e,t,n){let{size:o="100%"}=t,{strokeWidth:s=2}=t,{class:i=""}=t;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),e.$$set=e=>{"size"in e&&n(0,o=e.size),"strokeWidth"in e&&n(1,s=e.strokeWidth),"class"in e&&n(2,i=e.class)},[o,s,i]}class Te extends le{constructor(e){super(),ie(this,e,_e,Ee,d,{size:0,strokeWidth:1,class:2})}}const{Map:Oe}=Y;function Be(e,t,n){const o=e.slice();return o[28]=t[n],o}function De(e,t,n){const o=e.slice();return o[32]=t[n],o[34]=n,o}function Ie(e){let t,n,o,s,i,l,r,c,u,d,f,$,y,x,z,L,N,j,M,S,E,_,O,B,D,I,W,A,P,V,R,J,F,G,H;function K(t){e[15](t)}let Y={type:"text",placeholder:"Neuer Layout Name"};function ee(t){e[16](t)}void 0!==e[0].id&&(Y.value=e[0].id),s=new e[5]({props:Y}),T.push((()=>te(s,"value",K)));let ie={slotLeft:!0,$$slots:{default:[We]},$$scope:{ctx:e}};void 0!==e[0].activated&&(ie.value=e[0].activated),c=new e[9]({props:ie}),T.push((()=>te(c,"value",ee))),f=new e[6]({});let le={ctx:e,current:null,token:null,hasCatch:!1,pending:Je,then:qe,catch:Ae,value:31,blocks:[,,,]};Q(M=e[2],le),E=new e[6]({});let re=e[10],ce=[];for(let t=0;t<re.length;t+=1)ce[t]=Fe(Be(e,re,t));let ae=e[4]&&Ge();return J=new e[8]({props:{filled:!0,class:"saveBtnLayout",$$slots:{default:[He]},$$scope:{ctx:e}}}),J.$on("click",e[23]),{c(){t=v("div"),n=v("p"),n.textContent="Name des Layouts",o=w(),ne(s.$$.fragment),l=w(),r=v("div"),ne(c.$$.fragment),d=w(),ne(f.$$.fragment),$=w(),y=v("div"),x=v("label"),x.textContent="Vorhandene Module",z=w(),L=v("input"),N=w(),j=v("div"),le.block.c(),S=w(),ne(E.$$.fragment),_=w(),O=v("div"),B=v("h1"),B.textContent="Wochentage",D=w(),I=v("p"),I.textContent="Wählen Sie die Tage, an denen die Vorlage angezeigt werden soll.",W=w(),A=v("div");for(let e=0;e<ce.length;e+=1)ce[e].c();P=w(),ae&&ae.c(),V=w(),R=v("div"),ne(J.$$.fragment),b(r,"class","layout-activated-switch svelte-1vkufz4"),b(x,"for","moduleSearch"),b(x,"id","textModule"),b(x,"class","svelte-1vkufz4"),b(L,"id","moduleSearch"),b(L,"type","search"),b(L,"placeholder","suche..."),b(L,"class","search_bar svelte-1vkufz4"),b(y,"class","module svelte-1vkufz4"),b(j,"class","moduleCards svelte-1vkufz4"),b(A,"class","weekdays svelte-1vkufz4"),b(R,"class","saveBtnDiv svelte-1vkufz4"),b(t,"class","newLayoutContent")},m(i,a){m(i,t,a),g(t,n),g(t,o),oe(s,t,null),g(t,l),g(t,r),oe(c,r,null),g(t,d),oe(f,t,null),g(t,$),g(t,y),g(y,x),g(y,z),g(y,L),C(L,e[3]),g(t,N),g(t,j),le.block.m(j,le.anchor=null),le.mount=()=>j,le.anchor=null,g(t,S),oe(E,t,null),g(t,_),g(t,O),g(O,B),g(O,D),g(O,I),g(O,W),g(O,A);for(let e=0;e<ce.length;e+=1)ce[e].m(A,null);g(t,P),ae&&ae.m(t,null),g(t,V),g(t,R),oe(J,R,null),F=!0,G||(H=[k(L,"input",e[17]),k(L,"input",e[18])],G=!0)},p(n,o){e=n;const l={};!i&&1&o[0]&&(i=!0,l.value=e[0].id,q((()=>i=!1))),s.$set(l);const r={};if(16&o[1]&&(r.$$scope={dirty:o,ctx:e}),!u&&1&o[0]&&(u=!0,r.value=e[0].activated,q((()=>u=!1))),c.$set(r),8&o[0]&&C(L,e[3]),le.ctx=e,4&o[0]&&M!==(M=e[2])&&Q(M,le)||X(le,e,o),17409&o[0]){let t;for(re=e[10],t=0;t<re.length;t+=1){const n=Be(e,re,t);ce[t]?ce[t].p(n,o):(ce[t]=Fe(n),ce[t].c(),ce[t].m(A,null))}for(;t<ce.length;t+=1)ce[t].d(1);ce.length=re.length}e[4]?ae||(ae=Ge(),ae.c(),ae.m(t,V)):ae&&(ae.d(1),ae=null);const a={};16&o[1]&&(a.$$scope={dirty:o,ctx:e}),J.$set(a)},i(e){F||(U(s.$$.fragment,e),U(c.$$.fragment,e),U(f.$$.fragment,e),U(le.block),U(E.$$.fragment,e),U(J.$$.fragment,e),F=!0)},o(e){Z(s.$$.fragment,e),Z(c.$$.fragment,e),Z(f.$$.fragment,e);for(let e=0;e<3;e+=1){Z(le.blocks[e])}Z(E.$$.fragment,e),Z(J.$$.fragment,e),F=!1},d(e){e&&p(t),se(s),se(c),se(f),le.block.d(),le.token=null,le=null,se(E),h(ce,e),ae&&ae.d(),se(J),G=!1,a(H)}}}function We(e){let t;return{c(){t=v("span"),t.textContent="Aktivieren Sie das Modul",b(t,"class","mr svelte-1vkufz4")},m(e,n){m(e,t,n)},d(e){e&&p(t)}}}function Ae(e){return{c:l,m:l,p:l,i:l,o:l,d:l}}function qe(e){let t,n,o=[],s=new Oe,i=e[31];const l=e=>e[34];for(let t=0;t<i.length;t+=1){let n=De(e,i,t),r=l(n);s.set(r,o[t]=Re(r,n))}return{c(){for(let e=0;e<o.length;e+=1)o[e].c();t=x()},m(e,s){for(let t=0;t<o.length;t+=1)o[t].m(e,s);m(e,t,s),n=!0},p(e,n){2053&n[0]&&(i=e[31],H(),o=function(e,t,n,o,s,i,l,r,c,a,u,d){let f=e.length,g=i.length,m=f;const p={};for(;m--;)p[e[m].key]=m;const h=[],v=new Map,$=new Map;for(m=g;m--;){const e=d(s,i,m),r=n(e);let c=l.get(r);c?o&&c.p(e,t):(c=a(r,e),c.c()),v.set(r,h[m]=c),r in p&&$.set(r,Math.abs(m-p[r]))}const y=new Set,w=new Set;function x(e){U(e,1),e.m(r,u),l.set(e.key,e),u=e.first,g--}for(;f&&g;){const t=h[g-1],n=e[f-1],o=t.key,s=n.key;t===n?(u=t.first,f--,g--):v.has(s)?!l.has(o)||y.has(o)?x(t):w.has(s)?f--:$.get(o)>$.get(s)?(w.add(o),x(t)):(y.add(s),f--):(c(n,l),f--)}for(;f--;){const t=e[f];v.has(t.key)||c(t,l)}for(;g;)x(h[g-1]);return h}(o,n,l,1,e,i,s,t.parentNode,ee,Re,t,De),K())},i(e){if(!n){for(let e=0;e<i.length;e+=1)U(o[e]);n=!0}},o(e){for(let e=0;e<o.length;e+=1)Z(o[e]);n=!1},d(e){for(let t=0;t<o.length;t+=1)o[t].d(e);e&&p(t)}}}function Pe(e){let t,n,o=-1!=e[0].moduleList.findIndex(s)?"abwählen":"wählen";function s(...t){return e[19](e[32],...t)}return{c(){t=v("span"),n=y(o),b(t,"class","centerText svelte-1vkufz4")},m(e,o){m(e,t,o),g(t,n)},p(t,i){e=t,5&i[0]&&o!==(o=-1!=e[0].moduleList.findIndex(s)?"abwählen":"wählen")&&z(n,o)},d(e){e&&p(t)}}}function Ve(e){let t,n,o,s,i,l=e[32].name+"";function r(...t){return e[20](e[32],...t)}return o=new e[8]({props:{class:-1!=e[0].moduleList.findIndex(r)?"btn__selected":"",$$slots:{default:[Pe]},$$scope:{ctx:e}}}),o.$on("click",(function(){return e[21](e[32])})),{c(){t=y(l),n=w(),ne(o.$$.fragment),s=w()},m(e,l){m(e,t,l),m(e,n,l),oe(o,e,l),m(e,s,l),i=!0},p(n,s){e=n,(!i||4&s[0])&&l!==(l=e[32].name+"")&&z(t,l);const c={};5&s[0]&&(c.class=-1!=e[0].moduleList.findIndex(r)?"btn__selected":""),5&s[0]|16&s[1]&&(c.$$scope={dirty:s,ctx:e}),o.$set(c)},i(e){i||(U(o.$$.fragment,e),i=!0)},o(e){Z(o.$$.fragment,e),i=!1},d(e){e&&p(t),e&&p(n),se(o,e),e&&p(s)}}}function Re(e,t){let n,o,s;return o=new t[7]({props:{style:"margin: 20px",$$slots:{default:[Ve]},$$scope:{ctx:t}}}),{key:e,first:null,c(){n=x(),ne(o.$$.fragment),this.first=n},m(e,t){m(e,n,t),oe(o,e,t),s=!0},p(e,n){t=e;const s={};5&n[0]|16&n[1]&&(s.$$scope={dirty:n,ctx:t}),o.$set(s)},i(e){s||(U(o.$$.fragment,e),s=!0)},o(e){Z(o.$$.fragment,e),s=!1},d(e){e&&p(n),se(o,e)}}}function Je(e){return{c:l,m:l,p:l,i:l,o:l,d:l}}function Fe(e){let t,n,o,s,i,l,r,c,a,u=e[28].day+"";function d(...t){return e[22](e[28],...t)}return{c(){t=v("div"),n=v("input"),s=w(),i=v("label"),l=y(u),r=w(),n.checked=o=e[0].days.includes(e[28].value),b(n,"type","checkbox"),b(n,"id",e[28].value),b(n,"class","svelte-1vkufz4"),b(i,"for",e[28].value),b(t,"class","day svelte-1vkufz4")},m(e,o){m(e,t,o),g(t,n),g(t,s),g(t,i),g(i,l),g(t,r),c||(a=k(n,"change",d),c=!0)},p(t,s){e=t,1&s[0]&&o!==(o=e[0].days.includes(e[28].value))&&(n.checked=o)},d(e){e&&p(t),c=!1,a()}}}function Ge(e){let t;return{c(){t=v("div"),t.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.",b(t,"class","errroWeekdaysOverlapping svelte-1vkufz4")},m(e,n){m(e,t,n)},d(e){e&&p(t)}}}function He(e){let t;return{c(){t=y("Layout speichern")},m(e,n){m(e,t,n)},d(e){e&&p(t)}}}function Ke(e){let t,n,o=e[0]&&e[1]&&Ie(e);return{c(){t=v("div"),o&&o.c(),b(t,"class","newLayoutContainer")},m(e,s){m(e,t,s),o&&o.m(t,null),n=!0},p(e,n){e[0]&&e[1]?o?(o.p(e,n),3&n[0]&&U(o,1)):(o=Ie(e),o.c(),U(o,1),o.m(t,null)):o&&(H(),Z(o,1,1,(()=>{o=null})),K())},i(e){n||(U(o),n=!0)},o(e){Z(o),n=!1},d(e){e&&p(t),o&&o.d()}}}function Ue(e,o,s){let i;const{TextField:l,Divider:r,Card:c,Button:a,Switch:u}=t,d=E(),f=n.getAllModules().map((e=>({...e,isSelected:!1})));let g=f,{settings:m}=o,{layout:p}=o,h=new Map;S((async()=>{await m,await(W(),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 $(e){const t=p.moduleList.findIndex((t=>t.moduleId==e.id));-1==t?p.moduleList.splice(p.moduleList.length-1,0,{moduleId:e.id.toString(),position:p.moduleList.length.toString()}):p.moduleList.splice(t,1),s(0,p)}let y="";function w(){s(2,g=f.filter((e=>e.name.toLowerCase().includes(y.toLowerCase()))))}function x(){if(""!=p.id&&0!=p.moduleList.length){for(let[e,t]of h){const n=m.dashboardLayout[e];t.forEach((e=>{const t=n.days.findIndex((t=>e==t));n.days.splice(t,1)})),s(1,m.dashboardLayout[e]=n,m)}d("save",p)}}function k(e,t){if(e.target.checked)p.days.unshift(t);else{const e=p.days.findIndex((e=>e==t));p.days.splice(e,1)}s(0,p.days=v.filter((e=>p.days.includes(e.value))).map((e=>e.value)),p)}return e.$$set=e=>{"settings"in e&&s(1,m=e.settings),"layout"in e&&s(0,p=e.layout)},e.$$.update=()=>{1&e.$$.dirty[0]&&s(4,i=function(e){h=new Map;let t=!1;return m.dashboardLayout.forEach(((n,o)=>{n.id!=p.id&&n.activated&&e.forEach(((e,s)=>{if(n.days.includes(e))return t=!0,h.has(o)?void h.get(o).push(e):void h.set(o,[e])}))})),t}(p.days))},[p,m,g,y,i,l,r,c,a,u,v,$,w,x,k,function(t){e.$$.not_equal(p.id,t)&&(p.id=t,s(0,p))},function(t){e.$$.not_equal(p.activated,t)&&(p.activated=t,s(0,p))},function(){y=this.value,s(3,y)},e=>w(),(e,t)=>t.moduleId.toString()==e.id.toString(),(e,t)=>t.moduleId.toString()==e.id.toString(),e=>$(e),(e,t)=>k(t,e.value),()=>x()]}class Ze extends le{constructor(e){var t;super(),document.getElementById("svelte-1vkufz4-style")||((t=v("style")).id="svelte-1vkufz4-style",t.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}",g(document.head,t)),ie(this,e,Ue,Ke,d,{settings:1,layout:0},[-1,-1])}}function Qe(e,t,n){const o=e.slice();return o[20]=t[n],o}function Xe(e,t,n){const o=e.slice();return o[23]=t[n],o}function Ye(e){let t;return{c(){t=y("Abbrechen")},m(e,n){m(e,t,n)},d(e){e&&p(t)}}}function et(e){let t;return{c(){t=y("Löschen")},m(e,n){m(e,t,n)},d(e){e&&p(t)}}}function tt(e){let t,n,o,s,i,l,r;return s=new e[6]({props:{filled:!0,$$slots:{default:[Ye]},$$scope:{ctx:e}}}),s.$on("click",e[14]),l=new e[6]({props:{danger:!0,outline:!0,$$slots:{default:[et]},$$scope:{ctx:e}}}),l.$on("click",e[13]),{c(){t=v("div"),t.textContent="Wollen Sie das Layout wirklich löschen?",n=w(),o=v("div"),ne(s.$$.fragment),i=w(),ne(l.$$.fragment),b(o,"class","btns-container svelte-1rgcwkg")},m(e,c){m(e,t,c),m(e,n,c),m(e,o,c),oe(s,o,null),g(o,i),oe(l,o,null),r=!0},p(e,t){const n={};134217728&t&&(n.$$scope={dirty:t,ctx:e}),s.$set(n);const o={};134217728&t&&(o.$$scope={dirty:t,ctx:e}),l.$set(o)},i(e){r||(U(s.$$.fragment,e),U(l.$$.fragment,e),r=!0)},o(e){Z(s.$$.fragment,e),Z(l.$$.fragment,e),r=!1},d(e){e&&p(t),e&&p(n),e&&p(o),se(s),se(l)}}}function nt(e){let t,n,o;return n=new xe({props:{size:"25"}}),{c(){t=v("div"),ne(n.$$.fragment),b(t,"slot","title-icon")},m(e,s){m(e,t,s),oe(n,t,null),o=!0},p:l,i(e){o||(U(n.$$.fragment,e),o=!0)},o(e){Z(n.$$.fragment,e),o=!1},d(e){e&&p(t),se(n)}}}function ot(e){let t,n;return t=new e[5]({props:{title:"Bestätigung",closeCallback:e[26],danger:!0,$$slots:{"title-icon":[nt],default:[tt]},$$scope:{ctx:e}}}),{c(){ne(t.$$.fragment)},m(e,o){oe(t,e,o),n=!0},p(e,n){const o={};67108864&n&&(o.closeCallback=e[26]),134217728&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i(e){n||(U(t.$$.fragment,e),n=!0)},o(e){Z(t.$$.fragment,e),n=!1},d(e){se(t,e)}}}function st(e){let t,n,o,s,i,l,r,c,a,u,d;function f(e,t){return e[1]?rt:lt}i=new ze({props:{size:"24"}});let h=f(e),$=h(e);return c=new Ze({props:{layout:e[2],settings:e[0]}}),c.$on("save",e[17]),{c(){t=v("div"),n=v("div"),o=v("h2"),s=v("span"),ne(i.$$.fragment),l=w(),$.c(),r=w(),ne(c.$$.fragment),b(s,"class","btn-back svelte-1rgcwkg")},m(f,p){m(f,t,p),g(t,n),g(n,o),g(o,s),oe(i,s,null),g(o,l),$.m(o,null),g(t,r),oe(c,t,null),a=!0,u||(d=k(s,"click",e[10]),u=!0)},p(e,t){h===(h=f(e))&&$?$.p(e,t):($.d(1),$=h(e),$&&($.c(),$.m(o,null)));const n={};4&t&&(n.layout=e[2]),1&t&&(n.settings=e[0]),c.$set(n)},i(e){a||(U(i.$$.fragment,e),U(c.$$.fragment,e),a=!0)},o(e){Z(i.$$.fragment,e),Z(c.$$.fragment,e),a=!1},d(e){e&&p(t),se(i),$.d(),se(c),u=!1,d()}}}function it(e){let t,n,o,s,i,l,r,c,a;o=new e[6]({props:{$$slots:{default:[ct]},$$scope:{ctx:e}}}),o.$on("click",e[11]);let u=e[0].dashboardLayout,d=[];for(let t=0;t<u.length;t+=1)d[t]=gt(Qe(e,u,t));const f=e=>Z(d[e],1,1,(()=>{d[e]=null}));return{c(){t=v("h2"),t.textContent="Mein Layout",n=w(),ne(o.$$.fragment),s=w(),i=v("div"),l=v("p"),l.textContent="Dies sind Ihre vorhandenen Vorlagen.",r=w(),c=v("div");for(let e=0;e<d.length;e+=1)d[e].c();b(c,"class","layout-cards svelte-1rgcwkg"),b(i,"class","form-setting")},m(e,u){m(e,t,u),m(e,n,u),oe(o,e,u),m(e,s,u),m(e,i,u),g(i,l),g(i,r),g(i,c);for(let e=0;e<d.length;e+=1)d[e].m(c,null);a=!0},p(e,t){const n={};if(134217728&t&&(n.$$scope={dirty:t,ctx:e}),o.$set(n),37121&t){let n;for(u=e[0].dashboardLayout,n=0;n<u.length;n+=1){const o=Qe(e,u,n);d[n]?(d[n].p(o,t),U(d[n],1)):(d[n]=gt(o),d[n].c(),U(d[n],1),d[n].m(c,null))}for(H(),n=u.length;n<d.length;n+=1)f(n);K()}},i(e){if(!a){U(o.$$.fragment,e);for(let e=0;e<u.length;e+=1)U(d[e]);a=!0}},o(e){Z(o.$$.fragment,e),d=d.filter(Boolean);for(let e=0;e<d.length;e+=1)Z(d[e]);a=!1},d(e){e&&p(t),e&&p(n),se(o,e),e&&p(s),e&&p(i),h(d,e)}}}function lt(e){let t,n,o,s=e[2].id+"";return{c(){t=y("Layouts "),n=y(s),o=y(" bearbeiten")},m(e,s){m(e,t,s),m(e,n,s),m(e,o,s)},p(e,t){4&t&&s!==(s=e[2].id+"")&&z(n,s)},d(e){e&&p(t),e&&p(n),e&&p(o)}}}function rt(e){let t;return{c(){t=y("Neues Layout erstellen")},m(e,n){m(e,t,n)},p:l,d(e){e&&p(t)}}}function ct(e){let t,n,o;return t=new Se({props:{size:"24"}}),{c(){ne(t.$$.fragment),n=y("\n Neues Layout hinzufügen")},m(e,s){oe(t,e,s),m(e,n,s),o=!0},p:l,i(e){o||(U(t.$$.fragment,e),o=!0)},o(e){Z(t.$$.fragment,e),o=!1},d(e){se(t,e),e&&p(n)}}}function at(e){let t,n;return t=new e[7]({props:{class:"layout-card",$$slots:{default:[ft]},$$scope:{ctx:e}}}),{c(){ne(t.$$.fragment)},m(e,o){oe(t,e,o),n=!0},p(e,n){const o={};134217729&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i(e){n||(U(t.$$.fragment,e),n=!0)},o(e){Z(t.$$.fragment,e),n=!1},d(e){se(t,e)}}}function ut(e){let t,n=e[20].moduleList,o=[];for(let t=0;t<n.length;t+=1)o[t]=dt(Xe(e,n,t));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();t=x()},m(e,n){for(let t=0;t<o.length;t+=1)o[t].m(e,n);m(e,t,n)},p(e,s){if(257&s){let i;for(n=e[20].moduleList,i=0;i<n.length;i+=1){const l=Xe(e,n,i);o[i]?o[i].p(l,s):(o[i]=dt(l),o[i].c(),o[i].m(t.parentNode,t))}for(;i<o.length;i+=1)o[i].d(1);o.length=n.length}},d(e){h(o,e),e&&p(t)}}}function dt(e){let t,n,o,s=e[8](e[23].moduleId)+"";return{c(){t=v("p"),n=y(s),o=w(),b(t,"class","svelte-1rgcwkg")},m(e,s){m(e,t,s),g(t,n),g(t,o)},p(e,t){1&t&&s!==(s=e[8](e[23].moduleId)+"")&&z(n,s)},d(e){e&&p(t)}}}function ft(e){let t,n,o,s,i,l,r,c,d,f,h,$,x,C,N,j,M,S,E,_,T,O,B,D,I=e[20].id+"",W=e[20].days+"";n=new Ne({props:{size:"18"}}),i=new Te({props:{size:"18"}});let A=e[20].moduleList&&ut(e);return{c(){t=v("div"),ne(n.$$.fragment),o=w(),s=v("div"),ne(i.$$.fragment),l=w(),r=v("div"),c=v("span"),d=w(),f=y(I),h=w(),$=v("div"),x=v("div"),x.textContent="Aktiv an den Tagen",C=w(),N=v("p"),j=y(W),M=w(),S=v("div"),E=v("div"),E.textContent="Aktive Module",_=w(),A&&A.c(),T=w(),b(t,"class","layout-card--icons edit svelte-1rgcwkg"),b(s,"class","layout-card--icons delete svelte-1rgcwkg"),b(c,"class","active-indicator svelte-1rgcwkg"),L(c,"active",e[20].activated),b(r,"class","layout-card--title svelte-1rgcwkg"),b(x,"class","layout-card--subtitle svelte-1rgcwkg"),b(N,"class","svelte-1rgcwkg"),b($,"class","layout-card--section svelte-1rgcwkg"),b(E,"class","layout-card--subtitle svelte-1rgcwkg"),b(S,"class","layout-card--section svelte-1rgcwkg")},m(a,p){m(a,t,p),oe(n,t,null),m(a,o,p),m(a,s,p),oe(i,s,null),m(a,l,p),m(a,r,p),g(r,c),g(r,d),g(r,f),m(a,h,p),m(a,$,p),g($,x),g($,C),g($,N),g(N,j),m(a,M,p),m(a,S,p),g(S,E),g(S,_),A&&A.m(S,null),m(a,T,p),O=!0,B||(D=[k(t,"click",(function(){u(e[12](e[20]))&&e[12](e[20]).apply(this,arguments)})),k(s,"click",(function(){u(e[15](e[20]))&&e[15](e[20]).apply(this,arguments)}))],B=!0)},p(t,n){e=t,1&n&&L(c,"active",e[20].activated),(!O||1&n)&&I!==(I=e[20].id+"")&&z(f,I),(!O||1&n)&&W!==(W=e[20].days+"")&&z(j,W),e[20].moduleList?A?A.p(e,n):(A=ut(e),A.c(),A.m(S,null)):A&&(A.d(1),A=null)},i(e){O||(U(n.$$.fragment,e),U(i.$$.fragment,e),O=!0)},o(e){Z(n.$$.fragment,e),Z(i.$$.fragment,e),O=!1},d(e){e&&p(t),se(n),e&&p(o),e&&p(s),se(i),e&&p(l),e&&p(r),e&&p(h),e&&p($),e&&p(M),e&&p(S),A&&A.d(),e&&p(T),B=!1,a(D)}}}function gt(e){let t,n,o=null!=e[20].id&&at(e);return{c(){o&&o.c(),t=x()},m(e,s){o&&o.m(e,s),m(e,t,s),n=!0},p(e,n){null!=e[20].id?o?(o.p(e,n),1&n&&U(o,1)):(o=at(e),o.c(),U(o,1),o.m(t.parentNode,t)):o&&(H(),Z(o,1,1,(()=>{o=null})),K())},i(e){n||(U(o),n=!0)},o(e){Z(o),n=!1},d(e){o&&o.d(e),e&&p(t)}}}function mt(e){let t,n,o,s,i,l,r;function c(t){e[16](t)}let a={$$slots:{default:[ot,({closeCallback:e})=>({26:e}),({closeCallback:e})=>e?67108864:0]},$$scope:{ctx:e}};void 0!==e[3]&&(a.open=e[3]),n=new e[4]({props:a}),T.push((()=>te(n,"open",c)));const u=[it,st],d=[];function f(e,t){return!e[0]||e[1]||e[2]?e[0]&&(e[1]||null!=e[2])?1:-1:0}return~(i=f(e))&&(l=d[i]=u[i](e)),{c(){t=v("div"),ne(n.$$.fragment),s=w(),l&&l.c()},m(e,o){m(e,t,o),oe(n,t,null),g(t,s),~i&&d[i].m(t,null),r=!0},p(e,[s]){const r={};201326592&s&&(r.$$scope={dirty:s,ctx:e}),!o&&8&s&&(o=!0,r.open=e[3],q((()=>o=!1))),n.$set(r);let c=i;i=f(e),i===c?~i&&d[i].p(e,s):(l&&(H(),Z(d[c],1,1,(()=>{d[c]=null})),K()),~i?(l=d[i],l?l.p(e,s):(l=d[i]=u[i](e),l.c()),U(l,1),l.m(t,null)):l=null)},i(e){r||(U(n.$$.fragment,e),U(l),r=!0)},o(e){Z(n.$$.fragment,e),Z(l),r=!1},d(e){e&&p(t),se(n),~i&&d[i].d()}}}function pt(e,o,s){const{Modal:i,Dialog:l,Button:r,Card:c}=t;let a,{settings:u}=o,d=!1;const f=E();function g(e){if(s(1,d=!1),s(2,a=void 0),!e.detail||!e.detail.id)return void console.error("Could not save Layout!");const t=u.dashboardLayout.findIndex((t=>t.id==e.detail.id));t>-1?s(0,u.dashboardLayout[t]=e.detail,u):u.dashboardLayout.unshift(e.detail),f("save")}let m,p=!1;return e.$$set=e=>{"settings"in e&&s(0,u=e.settings)},[u,d,a,p,i,l,r,c,function(e){return n.getModuleName(e)},g,function(){s(2,a=void 0),s(1,d=!1)},function(){s(2,a={id:"",activated:!0,days:[],moduleList:[{moduleId:"1111",position:"0"},{moduleId:"9999",position:"1"}]}),s(1,d=!0)},function(e){s(2,a={id:e.id,activated:e.activated,days:[...e.days],moduleList:[...e.moduleList]})},function(){const e=u.dashboardLayout.findIndex((e=>e.id==m.id));-1!=e&&(u.dashboardLayout.splice(e,1),s(0,u),s(3,p=!1),f("save"))},function(){s(3,p=!1),m=void 0},function(e){m=e,s(3,p=!0)},function(e){p=e,s(3,p)},e=>g(e)]}class ht extends le{constructor(e){var t;super(),document.getElementById("svelte-1rgcwkg-style")||((t=v("style")).id="svelte-1rgcwkg-style",t.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}",g(document.head,t)),ie(this,e,pt,mt,d,{settings:0})}}function vt(e,t,n){const o=e.slice();return o[4]=t[n],o[6]=n,o}function $t(e){let t,n,o,s,i,l,r,c,a,u=e[4].name+"",d=e[4].version+"",f=0===e[6]&&function(e){let t,n,o;return{c(){t=v("td"),n=y("enablerr.ui"),b(t,"rowspan",o=2*e[1].length),b(t,"class","svelte-nkhwaj")},m(e,o){m(e,t,o),g(t,n)},p(e,n){2&n&&o!==(o=2*e[1].length)&&b(t,"rowspan",o)},d(e){e&&p(t)}}}(e);return{c(){t=v("tr"),f&&f.c(),n=w(),o=v("td"),s=y(u),i=w(),l=v("td"),r=y(d),c=w(),a=v("tr"),b(o,"class","svelte-nkhwaj"),b(l,"class","svelte-nkhwaj")},m(e,u){m(e,t,u),f&&f.m(t,null),g(t,n),g(t,o),g(o,s),g(t,i),g(t,l),g(l,r),g(t,c),m(e,a,u)},p(e,t){0===e[6]&&f.p(e,t),2&t&&u!==(u=e[4].name+"")&&z(s,u),2&t&&d!==(d=e[4].version+"")&&z(r,d)},d(e){e&&p(t),f&&f.d(),e&&p(a)}}}function yt(e){let t,n,o,s,i,r,c,a,u,d,f,$,x,k,C,L,N,j=e[1],M=[];for(let t=0;t<j.length;t+=1)M[t]=$t(vt(e,j,t));return{c(){t=v("h2"),t.textContent="Meine Versionen",n=w(),o=v("table"),s=v("tr"),s.innerHTML="<th>Komponente</th> \n <th>Modul</th> \n <th>Version</th>",i=w(),r=v("tr"),c=w(),a=v("tr"),u=v("td"),u.textContent="enablerr.mw",d=w(),f=v("td"),f.textContent="server",$=w(),x=v("td"),k=y(e[0]),C=w(),L=v("tr"),N=w();for(let e=0;e<M.length;e+=1)M[e].c();b(r,"class","filler svelte-nkhwaj"),b(u,"class","svelte-nkhwaj"),b(f,"class","svelte-nkhwaj"),b(x,"class","svelte-nkhwaj"),b(L,"class","filler svelte-nkhwaj"),b(o,"border","1"),b(o,"class","svelte-nkhwaj")},m(e,l){m(e,t,l),m(e,n,l),m(e,o,l),g(o,s),g(o,i),g(o,r),g(o,c),g(o,a),g(a,u),g(a,d),g(a,f),g(a,$),g(a,x),g(x,k),g(o,C),g(o,L),g(o,N);for(let e=0;e<M.length;e+=1)M[e].m(o,null)},p(e,[t]){if(1&t&&z(k,e[0]),2&t){let n;for(j=e[1],n=0;n<j.length;n+=1){const s=vt(e,j,n);M[n]?M[n].p(s,t):(M[n]=$t(s),M[n].c(),M[n].m(o,null))}for(;n<M.length;n+=1)M[n].d(1);M.length=j.length}},i:l,o:l,d(e){e&&p(t),e&&p(n),e&&p(o),h(M,e)}}}function wt(e,t,n){let o,s;const{serverVersion:l,uiVersions:r}=i;return f(e,l,(e=>n(0,o=e))),f(e,r,(e=>n(1,s=e))),[o,s,l,r]}class xt extends le{constructor(e){var t;super(),document.getElementById("svelte-nkhwaj-style")||((t=v("style")).id="svelte-nkhwaj-style",t.textContent="table.svelte-nkhwaj{border-collapse:collapse}td.svelte-nkhwaj{padding-left:10px;padding-top:3px;padding-bottom:3px}tr.filler.svelte-nkhwaj{height:1em}",g(document.head,t)),ie(this,e,wt,yt,d,{})}}function kt(e){let t,n,o,s,i,l,r,c,u,d,f,h,$,y,x;var z=e[1];function C(e){return{props:{settings:e[2]}}}return z&&(h=new z(C(e)),h.$on("save",e[7])),{c(){t=v("section"),n=v("div"),o=v("div"),o.textContent="Mein Konto",s=w(),i=v("div"),i.textContent="Meine Benachrichtigungen",l=w(),r=v("div"),r.textContent="Mein Layout",c=w(),u=v("div"),u.textContent="Meine Versionen",d=w(),f=v("div"),h&&ne(h.$$.fragment),b(o,"class","nav--item svelte-1x5ysxy"),L(o,"active",e[1]==de),b(i,"class","nav--item svelte-1x5ysxy"),L(i,"active",e[1]==$e),b(r,"class","nav--item svelte-1x5ysxy"),L(r,"active",e[1]==ht),b(u,"class","nav--item svelte-1x5ysxy"),L(u,"active",e[1]==xt),b(n,"class","container-setting--nav svelte-1x5ysxy"),b(f,"class","container-setting--content svelte-1x5ysxy"),b(t,"class","container-setting svelte-1x5ysxy")},m(a,p){m(a,t,p),g(t,n),g(n,o),g(n,s),g(n,i),g(n,l),g(n,r),g(n,c),g(n,u),g(t,d),g(t,f),h&&oe(h,f,null),$=!0,y||(x=[k(o,"click",e[3]),k(i,"click",e[4]),k(r,"click",e[5]),k(u,"click",e[6])],y=!0)},p(e,t){2&t&&L(o,"active",e[1]==de),2&t&&L(i,"active",e[1]==$e),2&t&&L(r,"active",e[1]==ht),2&t&&L(u,"active",e[1]==xt);const n={};if(4&t&&(n.settings=e[2]),z!==(z=e[1])){if(h){H();const e=h;Z(e.$$.fragment,1,0,(()=>{se(e,1)})),K()}z?(h=new z(C(e)),h.$on("save",e[7]),ne(h.$$.fragment),U(h.$$.fragment,1),oe(h,f,null)):h=null}else z&&h.$set(n)},i(e){$||(h&&U(h.$$.fragment,e),$=!0)},o(e){h&&Z(h.$$.fragment,e),$=!1},d(e){e&&p(t),h&&se(h),y=!1,a(x)}}}function bt(e){let t,n,o=e[0]&&kt(e);return{c(){o&&o.c(),t=x()},m(e,s){o&&o.m(e,s),m(e,t,s),n=!0},p(e,[n]){e[0]?o?(o.p(e,n),1&n&&U(o,1)):(o=kt(e),o.c(),U(o,1),o.m(t.parentNode,t)):o&&(H(),Z(o,1,1,(()=>{o=null})),K())},i(e){n||(U(o),n=!0)},o(e){Z(o),n=!1},d(e){o&&o.d(e),e&&p(t)}}}function zt(e,t,i){let l;f(e,o,(e=>i(11,l=e)));let r,c,a,u,d,{injectedSettings:g}=t;const m=()=>{i(2,d=p(g)),i(1,r=de)};function p(e){return c={jobDescription:e.jobDescription,showJobDescription:e.setting.showJobDescription,email:e.email,firstName:e.firstName,lastName:e.lastName,listTitle:e.listTitle,hideRoles:e.hideRoles},c}async function h(){try{await n.saveUserSettings(g),i(0,g),function(e,t,n=t){e.set(n)}(o,l=g,l),s.success("Speichern erfolgreich",2e3)}catch(e){console.error(e),s.failed("Speichern nicht erfolgreich",2e3)}}return m(),e.$$set=e=>{"injectedSettings"in e&&i(0,g=e.injectedSettings)},[g,r,d,m,()=>{var e;i(2,(a={notificationActivated:(e=g).setting.notificationActivated,showNotifications:e.setting.showNotifications,notificationToMail:e.setting.notificationToMail,typesOfNotification:e.setting.typesOfNotification},d=a)),i(1,r=$e)},()=>{i(2,(u={dashboardLayout:g.setting.dashboardLayout},d=u)),i(1,r=ht)},()=>{i(2,d=p(g)),i(1,r=xt)},function(){r==de?(i(0,g.jobDescription=c.jobDescription,g),i(0,g.setting.showJobDescription=c.showJobDescription,g),i(0,g.email=c.email,g),i(0,g.firstName=c.firstName,g),i(0,g.lastName=c.lastName,g),i(0,g.listTitle=c.listTitle,g),i(0,g.hideRoles=c.hideRoles,g),h()):r==$e?(i(0,g.setting.notificationActivated=a.notificationActivated,g),i(0,g.setting.showNotifications=a.showNotifications,g),i(0,g.setting.notificationToMail=a.notificationToMail,g),i(0,g.setting.typesOfNotification=a.typesOfNotification,g),h()):r==ht&&(i(0,g.setting.dashboardLayout=u.dashboardLayout,g),h())}]}class Ct extends le{constructor(e){var t;super(),document.getElementById("svelte-1x5ysxy-style")||((t=v("style")).id="svelte-1x5ysxy-style",t.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}",g(document.head,t)),ie(this,e,zt,bt,d,{injectedSettings:0})}}function Lt(e){return{c:l,m:l,p:l,i:l,o:l,d:l}}function Nt(e){let t,n;return t=new e[0]({props:{open:"true",noClickaway:"true",$$slots:{default:[Mt,({closeCallback:e})=>({4:e}),({closeCallback:e})=>e?16:0]},$$scope:{ctx:e}}}),{c(){ne(t.$$.fragment)},m(e,o){oe(t,e,o),n=!0},p(e,n){const o={};32&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i(e){n||(U(t.$$.fragment,e),n=!0)},o(e){Z(t.$$.fragment,e),n=!1},d(e){se(t,e)}}}function jt(e){let t,n,o,s;return o=new Ct({props:{injectedSettings:e[3]}}),{c(){t=v("div"),t.innerHTML="<h2>Einstellungen</h2>",n=w(),ne(o.$$.fragment),b(t,"class","setting--title svelte-ltqsg7")},m(e,i){m(e,t,i),m(e,n,i),oe(o,e,i),s=!0},p:l,i(e){s||(U(o.$$.fragment,e),s=!0)},o(e){Z(o.$$.fragment,e),s=!1},d(e){e&&p(t),e&&p(n),se(o,e)}}}function Mt(e){let t,n,o=e[3]&&function(e){let t,n,o;return n=new e[1]({props:{constrainWidth:!0,closeCallback:function(){return e[2](e[4])},class:"modal_class",$$slots:{default:[jt]},$$scope:{ctx:e}}}),{c(){t=v("div"),ne(n.$$.fragment),b(t,"class","setting--modal svelte-ltqsg7")},m(e,s){m(e,t,s),oe(n,t,null),o=!0},p(t,o){e=t;const s={};32&o&&(s.$$scope={dirty:o,ctx:e}),n.$set(s)},i(e){o||(U(n.$$.fragment,e),o=!0)},o(e){Z(n.$$.fragment,e),o=!1},d(e){e&&p(t),se(n)}}}(e);return{c(){o&&o.c(),t=x()},m(e,s){o&&o.m(e,s),m(e,t,s),n=!0},p(e,t){e[3]&&o.p(e,t)},i(e){n||(U(o),n=!0)},o(e){Z(o),n=!1},d(e){o&&o.d(e),e&&p(t)}}}function St(e){return{c:l,m:l,p:l,i:l,o:l,d:l}}function Et(e){let t,o,s={ctx:e,current:null,token:null,hasCatch:!1,pending:St,then:Nt,catch:Lt,value:3,blocks:[,,,]};return Q(n.getUserSettings(),s),{c(){t=x(),s.block.c()},m(e,n){m(e,t,n),s.block.m(e,s.anchor=n),s.mount=()=>t.parentNode,s.anchor=t,o=!0},p(t,[n]){X(s,e=t,n)},i(e){o||(U(s.block),o=!0)},o(e){for(let e=0;e<3;e+=1){Z(s.blocks[e])}o=!1},d(e){e&&p(t),s.block.d(e),s.token=null,s=null}}}function _t(e){const{Modal:n,Dialog:o}=t;return[n,o,e=>(window.singleSpaNavigate("/"),e())]}function Tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ot,Bt,Dt=(Ot=function(e,t){function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function o(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?n(Object(o),!0).forEach((function(t){s(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("object"!==i(e))throw new Error("single-spa-svelte requires a configuration object");var t=o(o({},l),e);if(!t.component)throw new Error("single-spa-svelte must be passed opts.component");var n={};return{bootstrap:r.bind(null,t,n),mount:c.bind(null,t,n),unmount:a.bind(null,t,n),update:u.bind(null,t,n)}};var l={component:null,domElementGetter:null,props:{}};function r(e){return Promise.resolve()}function c(e,t,n){var s=Object.keys(l),i=Object.keys(e).reduce((function(t,n){return s.includes(n)||(t[n]=e[n]),t}),{});return Promise.resolve().then((function(){var s=function(e,t){return(t=t&&t.customProps?t.customProps:t).domElement?function(){return t.domElement}:t.domElementGetter?function(){return t.domElementGetter(t)}:e.domElementGetter?function(){return e.domElementGetter(t)}:function(e){var t=e.appName||e.name;if(!t)throw Error("single-spa-svelte was not given an application name as a prop, so it can't make a unique dom element container for the svelte application");var n="single-spa-application:".concat(t);return function(){var e=document.getElementById(n);return e||((e=document.createElement("div")).id=n,document.body.appendChild(e)),e}}(t)}(e,n),l=s();t.instance=new e.component(o(o({},i),{},{target:l,props:Object.assign({},n,e.props)}))}))}function a(e,t){return Promise.resolve().then((function(){t.instance.$destroy?t.instance.$destroy():t.instance.destroy()}))}function u(e,t,n){return Promise.resolve().then((function(){t.instance.$set?t.instance.$set(n):t.instance.set(n)}))}},Ot(Bt={exports:{}},Bt.exports),Bt.exports);const It=Tt(Dt)({component:class extends le{constructor(e){var t;super(),document.getElementById("svelte-ltqsg7-style")||((t=v("style")).id="svelte-ltqsg7-style",t.textContent=".setting--modal.svelte-ltqsg7 .modal_class{height:80vh;min-width:70vw;overflow:hidden}.setting--title.svelte-ltqsg7{border-bottom:2px solid #ccc}",g(document.head,t)),ie(this,e,_t,Et,d,{})}},domElementGetter:()=>document.getElementById("view-app")}),{bootstrap:Wt,mount:At,unmount:qt}=It;e({bootstrap:Wt,mount:At,unmount:qt})}}}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@enablerr-ui/settings",
3
3
  "description": "enablerr - the Next Enterprise Solution",
4
- "version": "0.2.12",
4
+ "version": "0.2.14",
5
5
  "os": [
6
6
  "darwin",
7
7
  "linux"