@enablerr-ui/settings 0.2.9 → 0.2.10

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