@enablerr-ui/settings 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/dist/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["@enablerr-ui/layout","@enablerr-ui/form"],(function(t){"use strict";var e,n;return{setters:[function(t){e=t.getAttractions},function(t){n=t.Request}],execute:function(){t("version","0.2.1");function o(){}function r(t){return t()}function c(){return Object.create(null)}function u(t){t.forEach(r)}function i(t){return"function"==typeof t}function s(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function a(t,e,n){t.insertBefore(e,n||null)}function l(t){t.parentNode.removeChild(t)}function f(t){return document.createTextNode(t)}let p;function m(t){p=t}const d=[],b=[],y=[],g=[],$=Promise.resolve();let h=!1;function v(t){y.push(t)}let O=!1;const _=new Set;function j(){if(!O){O=!0;do{for(let t=0;t<d.length;t+=1){const e=d[t];m(e),E(e.$$)}for(m(null),d.length=0;b.length;)b.pop()();for(let t=0;t<y.length;t+=1){const e=y[t];_.has(e)||(_.add(e),e())}y.length=0}while(d.length);for(;g.length;)g.pop()();h=!1,O=!1,_.clear()}}function E(t){if(null!==t.fragment){t.update(),u(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(v)}}const w=new Set;function x(t,e){t&&t.i&&(w.delete(t),t.i(e))}function P(t,e,n,o){const{fragment:c,on_mount:s,on_destroy:a,after_update:l}=t.$$;c&&c.m(e,n),o||v((()=>{const e=s.map(r).filter(i);a?a.push(...e):u(e),t.$$.on_mount=[]})),l.forEach(v)}function k(t,e){const n=t.$$;null!==n.fragment&&(u(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function S(t,e){-1===t.$$.dirty[0]&&(d.push(t),h||(h=!0,$.then(j)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function G(t,e,n,r,i,s,a=[-1]){const f=p;m(t);const d=t.$$={fragment:null,ctx:null,props:s,update:o,not_equal:i,bound:c(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(f?f.$$.context:e.context||[]),callbacks:c(),dirty:a,skip_bound:!1};let b=!1;if(d.ctx=n?n(t,e.props||{},((e,n,...o)=>{const r=o.length?o[0]:n;return d.ctx&&i(d.ctx[e],d.ctx[e]=r)&&(!d.skip_bound&&d.bound[e]&&d.bound[e](r),b&&S(t,e)),n})):[],d.update(),b=!0,u(d.before_update),d.fragment=!!r&&r(d.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);d.fragment&&d.fragment.l(t),t.forEach(l)}else d.fragment&&d.fragment.c();e.intro&&x(t.$$.fragment),P(t,e.target,e.anchor,e.customElement),j()}m(f)}function q(t){let e;return{c(){e=f("Get settings")},m(t,n){a(t,e,n)},d(t){t&&l(e)}}}function B(t){let e,n,o,r;return o=new t[0]({props:{$$slots:{default:[q]},$$scope:{ctx:t}}}),o.$on("click",t[1]),{c(){var t,r;t="h1",e=document.createElement(t),e.textContent="Settings",n=f(" "),(r=o.$$.fragment)&&r.c()},m(t,c){a(t,e,c),a(t,n,c),P(o,t,c),r=!0},p(t,[e]){const n={};4&e&&(n.$$scope={dirty:e,ctx:t}),o.$set(n)},i(t){r||(x(o.$$.fragment,t),r=!0)},o(t){!function(t,e,n,o){if(t&&t.o){if(w.has(t))return;w.add(t),t.o(e)}}(o.$$.fragment,t),r=!1},d(t){t&&l(e),t&&l(n),k(o,t)}}}function D(t){const{Button:o}=e;return[o,function(){let t=n.getUserSettings();console.log(t)}]}function N(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var C,M,A=(C=function(t,e){function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function o(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?n(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if("object"!==c(t))throw new Error("single-spa-svelte requires a configuration object");var e=o(o({},u),t);if(!e.component)throw new Error("single-spa-svelte must be passed opts.component");var n={};return{bootstrap:i.bind(null,e,n),mount:s.bind(null,e,n),unmount:a.bind(null,e,n),update:l.bind(null,e,n)}};var u={component:null,domElementGetter:null,props:{}};function i(t){return Promise.resolve()}function s(t,e,n){var r=Object.keys(u),c=Object.keys(t).reduce((function(e,n){return r.includes(n)||(e[n]=t[n]),e}),{});return Promise.resolve().then((function(){var r=function(t,e){return(e=e&&e.customProps?e.customProps:e).domElement?function(){return e.domElement}:e.domElementGetter?function(){return e.domElementGetter(e)}:t.domElementGetter?function(){return t.domElementGetter(e)}:function(t){var e=t.appName||t.name;if(!e)throw Error("single-spa-svelte was not given an application name as a prop, so it can't make a unique dom element container for the svelte application");var n="single-spa-application:".concat(e);return function(){var t=document.getElementById(n);return t||((t=document.createElement("div")).id=n,document.body.appendChild(t)),t}}(e)}(t,n),u=r();e.instance=new t.component(o(o({},c),{},{target:u,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 l(t,e,n){return Promise.resolve().then((function(){e.instance.$set?e.instance.$set(n):e.instance.set(n)}))}},C(M={exports:{}},M.exports),M.exports);const I=N(A)({component:class extends class{$destroy(){k(this,1),this.$destroy=o}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}{constructor(t){super(),G(this,t,D,B,s,{})}},domElementGetter:()=>document.getElementById("view-app")}),{bootstrap:R,mount:T,unmount:U}=I;t({bootstrap:R,mount:T,unmount:U})}}}));
|
|
1
|
+
System.register(["@enablerr-ui/layout","@enablerr-ui/form"],(function(e){"use strict";var t,n;return{setters:[function(e){t=e.getAttractions},function(e){n=e.Request}],execute:function(){e("version","0.2.2");function o(){}function i(e){return e()}function s(){return Object.create(null)}function l(e){e.forEach(i)}function c(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function a(e,t){e.appendChild(t)}function u(e,t,n){e.insertBefore(t,n||null)}function d(e){e.parentNode.removeChild(e)}function f(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function m(e){return document.createElement(e)}function p(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function h(e){return document.createTextNode(e)}function g(){return h(" ")}function b(){return h("")}function v(e,t,n,o){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}function $(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function x(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function y(e,t){e.value=null==t?"":t}function k(e,t,n,o){e.style.setProperty(t,n,o?"important":"")}function w(e,t,n){e.classList[n?"add":"remove"](t)}let q;function C(e){q=e}function j(){if(!q)throw new Error("Function called outside component initialization");return q}const z=[],N=[],E=[],S=[],B=Promise.resolve();let M=!1;function O(e){E.push(e)}function L(e){S.push(e)}let I=!1;const _=new Set;function D(){if(!I){I=!0;do{for(let e=0;e<z.length;e+=1){const t=z[e];C(t),P(t.$$)}for(C(null),z.length=0;N.length;)N.pop()();for(let e=0;e<E.length;e+=1){const t=E[e];_.has(t)||(_.add(t),t())}E.length=0}while(z.length);for(;S.length;)S.pop()();M=!1,I=!1,_.clear()}}function P(e){if(null!==e.fragment){e.update(),l(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(O)}}const T=new Set;let A;function W(){A={r:0,c:[],p:A}}function F(){A.r||l(A.c),A=A.p}function G(e,t){e&&e.i&&(T.delete(e),e.i(t))}function J(e,t,n,o){if(e&&e.o){if(T.has(e))return;T.add(e),A&&A.c.push((()=>{T.delete(e),o&&(n&&e.d(1),o())})),e.o(t)}}function V(e,t){const n=t.token={};function o(e,o,i,s){if(t.token!==n)return;t.resolved=s;let l=t.ctx;void 0!==i&&(l=l.slice(),l[i]=s);const c=e&&(t.current=e)(l);let r=!1;t.block&&(t.blocks?t.blocks.forEach(((e,n)=>{n!==o&&e&&(W(),J(e,1,1,(()=>{t.blocks[n]===e&&(t.blocks[n]=null)})),F())})):t.block.d(1),c.c(),G(c,1),c.m(t.mount(),t.anchor),r=!0),t.block=c,t.blocks&&(t.blocks[o]=c),r&&D()}if((i=e)&&"object"==typeof i&&"function"==typeof i.then){const n=j();if(e.then((e=>{C(n),o(t.then,1,t.value,e),C(null)}),(e=>{if(C(n),o(t.catch,2,t.error,e),C(null),!t.hasCatch)throw e})),t.current!==t.pending)return o(t.pending,0),!0}else{if(t.current!==t.then)return o(t.then,1,t.value,e),!0;t.resolved=e}var i}function K(e,t,n){const o=t.slice(),{resolved:i}=e;e.current===e.then&&(o[e.value]=i),e.current===e.catch&&(o[e.error]=i),e.block.p(o,n)}function U(e,t){J(e,1,1,(()=>{t.delete(e.key)}))}function X(e,t,n){const o=e.$$.props[t];void 0!==o&&(e.$$.bound[o]=n,n(e.$$.ctx[o]))}function H(e){e&&e.c()}function R(e,t,n,o){const{fragment:s,on_mount:r,on_destroy:a,after_update:u}=e.$$;s&&s.m(t,n),o||O((()=>{const t=r.map(i).filter(c);a?a.push(...t):l(t),e.$$.on_mount=[]})),u.forEach(O)}function Z(e,t){const n=e.$$;null!==n.fragment&&(l(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Q(e,t){-1===e.$$.dirty[0]&&(z.push(e),M||(M=!0,B.then(D)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Y(e,t,n,i,c,r,a=[-1]){const u=q;C(e);const f=e.$$={fragment:null,ctx:null,props:r,update:o,not_equal:c,bound:s(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(u?u.$$.context:t.context||[]),callbacks:s(),dirty:a,skip_bound:!1};let m=!1;if(f.ctx=n?n(e,t.props||{},((t,n,...o)=>{const i=o.length?o[0]:n;return f.ctx&&c(f.ctx[t],f.ctx[t]=i)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](i),m&&Q(e,t)),n})):[],f.update(),m=!0,l(f.before_update),f.fragment=!!i&&i(f.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);f.fragment&&f.fragment.l(e),e.forEach(d)}else f.fragment&&f.fragment.c();t.intro&&G(e.$$.fragment),R(e,t.target,t.anchor,t.customElement),D()}C(u)}class ee{$destroy(){Z(this,1),this.$destroy=o}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function te(e){let t,n,i;return{c(){t=p("svg"),n=p("polyline"),$(n,"points","6 9 12 15 18 9"),$(t,"xmlns","http://www.w3.org/2000/svg"),$(t,"width",e[0]),$(t,"height",e[0]),$(t,"fill","none"),$(t,"viewBox","0 0 24 24"),$(t,"stroke","currentColor"),$(t,"stroke-width",e[1]),$(t,"stroke-linecap","round"),$(t,"stroke-linejoin","round"),$(t,"class",i="feather feather-chevron-down "+e[2])},m(e,o){u(e,t,o),a(t,n)},p(e,[n]){1&n&&$(t,"width",e[0]),1&n&&$(t,"height",e[0]),2&n&&$(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-chevron-down "+e[2])&&$(t,"class",i)},i:o,o:o,d(e){e&&d(t)}}}function ne(e,t,n){let{size:o="100%"}=t,{strokeWidth:i=2}=t,{class:s=""}=t;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),e.$$set=e=>{"size"in e&&n(0,o=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,s=e.class)},[o,i,s]}class oe extends ee{constructor(e){super(),Y(this,e,ne,te,r,{size:0,strokeWidth:1,class:2})}}function ie(e){let t,n,i;return{c(){t=p("svg"),n=p("polyline"),$(n,"points","9 18 15 12 9 6"),$(t,"xmlns","http://www.w3.org/2000/svg"),$(t,"width",e[0]),$(t,"height",e[0]),$(t,"fill","none"),$(t,"viewBox","0 0 24 24"),$(t,"stroke","currentColor"),$(t,"stroke-width",e[1]),$(t,"stroke-linecap","round"),$(t,"stroke-linejoin","round"),$(t,"class",i="feather feather-chevron-right "+e[2])},m(e,o){u(e,t,o),a(t,n)},p(e,[n]){1&n&&$(t,"width",e[0]),1&n&&$(t,"height",e[0]),2&n&&$(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-chevron-right "+e[2])&&$(t,"class",i)},i:o,o:o,d(e){e&&d(t)}}}function se(e,t,n){let{size:o="100%"}=t,{strokeWidth:i=2}=t,{class:s=""}=t;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),e.$$set=e=>{"size"in e&&n(0,o=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,s=e.class)},[o,i,s]}class le extends ee{constructor(e){super(),Y(this,e,se,ie,r,{size:0,strokeWidth:1,class:2})}}function ce(e){let t,n,i,s;return{c(){t=p("svg"),n=p("line"),i=p("line"),$(n,"x1","12"),$(n,"y1","5"),$(n,"x2","12"),$(n,"y2","19"),$(i,"x1","5"),$(i,"y1","12"),$(i,"x2","19"),$(i,"y2","12"),$(t,"xmlns","http://www.w3.org/2000/svg"),$(t,"width",e[0]),$(t,"height",e[0]),$(t,"fill","none"),$(t,"viewBox","0 0 24 24"),$(t,"stroke","currentColor"),$(t,"stroke-width",e[1]),$(t,"stroke-linecap","round"),$(t,"stroke-linejoin","round"),$(t,"class",s="feather feather-plus "+e[2])},m(e,o){u(e,t,o),a(t,n),a(t,i)},p(e,[n]){1&n&&$(t,"width",e[0]),1&n&&$(t,"height",e[0]),2&n&&$(t,"stroke-width",e[1]),4&n&&s!==(s="feather feather-plus "+e[2])&&$(t,"class",s)},i:o,o:o,d(e){e&&d(t)}}}function re(e,t,n){let{size:o="100%"}=t,{strokeWidth:i=2}=t,{class:s=""}=t;return"100%"!==o&&(o="x"===o.slice(-1)?o.slice(0,o.length-1)+"em":parseInt(o)+"px"),e.$$set=e=>{"size"in e&&n(0,o=e.size),"strokeWidth"in e&&n(1,i=e.strokeWidth),"class"in e&&n(2,s=e.class)},[o,i,s]}class ae extends ee{constructor(e){super(),Y(this,e,re,ce,r,{size:0,strokeWidth:1,class:2})}}function ue(e){let t,n,i,s,l,c;return{c(){t=m("label"),n=m("input"),i=g(),s=m("span"),$(n,"type","checkbox"),$(n,"class","svelte-1i6zi67"),$(s,"class","slider svelte-1i6zi67"),$(t,"class","switch svelte-1i6zi67")},m(o,r){u(o,t,r),a(t,n),n.checked=e[0],a(t,i),a(t,s),l||(c=v(n,"change",e[2]),l=!0)},p(e,[t]){1&t&&(n.checked=e[0])},i:o,o:o,d(e){e&&d(t),l=!1,c()}}}function de(e,t,n){let{checked:o=!1}=t,{color:i="#2196F3"}=t;return e.$$set=e=>{"checked"in e&&n(0,o=e.checked),"color"in e&&n(1,i=e.color)},[o,i,function(){o=this.checked,n(0,o)}]}class fe extends ee{constructor(e){var t;super(),document.getElementById("svelte-1i6zi67-style")||((t=m("style")).id="svelte-1i6zi67-style",t.textContent='.switch.svelte-1i6zi67.svelte-1i6zi67{position:relative;width:60px;height:34px}.switch.svelte-1i6zi67 input.svelte-1i6zi67{opacity:0;width:0;height:0}.slider.svelte-1i6zi67.svelte-1i6zi67{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:0.4s;transition:0.4s;border-radius:34px}.slider.svelte-1i6zi67.svelte-1i6zi67:before{position:absolute;content:"";height:26px;width:26px;left:4px;bottom:4px;background-color:white;-webkit-transition:0.4s;transition:0.4s;border-radius:50%}input.svelte-1i6zi67:checked+.slider.svelte-1i6zi67{background-color:#49E130}input.svelte-1i6zi67:checked+.slider.svelte-1i6zi67{box-shadow:0 0 1px #5b5f5b}input.svelte-1i6zi67:checked+.slider.svelte-1i6zi67:before{-webkit-transform:translateX(26px);-ms-transform:translateX(26px);transform:translateX(26px)}',a(document.head,t)),Y(this,e,de,ue,r,{checked:0,color:1})}}function me(e,t,n){const o=e.slice();return o[20]=t[n],o[21]=t,o[22]=n,o}function pe(e,t,n){const o=e.slice();return o[24]=t[n],o[26]=n,o}function he(e){return{c:o,m:o,p:o,i:o,o:o,d:o}}function ge(e){let t,n,o,i,s,c,r,p,h,b,x,k,w,q,C,j,z,E,S,B,M,O,I,_,D,P,T,A,W,F,U,Q,Y,ee;function te(t){e[13](t)}let ne={type:"text",placeholder:"Name"};void 0!==e[1]&&(ne.value=e[1]),c=new e[4]({props:ne}),N.push((()=>X(c,"value",te))),x=new e[5]({});let oe={ctx:e,current:null,token:null,hasCatch:!1,pending:ke,then:ve,catch:be,value:23,blocks:[,,,]};V(S=e[0],oe),M=new e[5]({});let ie=e[2],se=[];for(let t=0;t<ie.length;t+=1)se[t]=we(me(e,ie,t));return U=new e[7]({props:{filled:!0,class:"saveBtnLayout",$$slots:{default:[qe]},$$scope:{ctx:e}}}),U.$on("click",e[11]),{c(){t=m("div"),t.innerHTML="<h1>Neues Layouts erstellen</h1> \n <hr/>",n=g(),o=m("div"),i=m("p"),i.textContent="Name des neuen Layouts",s=g(),H(c.$$.fragment),p=g(),h=m("br"),b=g(),H(x.$$.fragment),k=g(),w=m("div"),q=m("label"),q.textContent="Vorhandene Module",C=g(),j=m("input"),z=g(),E=m("div"),oe.block.c(),B=g(),H(M.$$.fragment),O=g(),I=m("div"),_=m("h1"),_.textContent="Wochentage",D=g(),P=m("p"),P.textContent="Wählen Sie die Tage, an denen die Vorlage angezeigt werden soll.",T=g(),A=m("div");for(let e=0;e<se.length;e+=1)se[e].c();W=g(),F=m("div"),H(U.$$.fragment),$(t,"class","newLayout"),$(q,"for","moduleSearch"),$(q,"id","textModule"),$(q,"class","svelte-19uu6ji"),$(j,"id","moduleSearch"),$(j,"type","search"),$(j,"placeholder","suche..."),$(j,"class","search_bar svelte-19uu6ji"),$(w,"class","module svelte-19uu6ji"),$(E,"class","moduleCards svelte-19uu6ji"),$(A,"class","wochentage svelte-19uu6ji"),$(F,"class","saveBtnDiv svelte-19uu6ji"),$(o,"class","newLayoutContent svelte-19uu6ji")},m(l,r){u(l,t,r),u(l,n,r),u(l,o,r),a(o,i),a(o,s),R(c,o,null),a(o,p),a(o,h),a(o,b),R(x,o,null),a(o,k),a(o,w),a(w,q),a(w,C),a(w,j),y(j,e[3]),a(o,z),a(o,E),oe.block.m(E,oe.anchor=null),oe.mount=()=>E,oe.anchor=null,a(o,B),R(M,o,null),a(o,O),a(o,I),a(I,_),a(I,D),a(I,P),a(I,T),a(I,A);for(let e=0;e<se.length;e+=1)se[e].m(A,null);a(o,W),a(o,F),R(U,F,null),Q=!0,Y||(ee=[v(j,"input",e[14]),v(j,"input",e[15])],Y=!0)},p(t,n){e=t;const o={};if(!r&&2&n&&(r=!0,o.value=e[1],L((()=>r=!1))),c.$set(o),8&n&&y(j,e[3]),oe.ctx=e,1&n&&S!==(S=e[0])&&V(S,oe)||K(oe,e,n),4&n){let t;for(ie=e[2],t=0;t<ie.length;t+=1){const o=me(e,ie,t);se[t]?se[t].p(o,n):(se[t]=we(o),se[t].c(),se[t].m(A,null))}for(;t<se.length;t+=1)se[t].d(1);se.length=ie.length}const i={};134217728&n&&(i.$$scope={dirty:n,ctx:e}),U.$set(i)},i(e){Q||(G(c.$$.fragment,e),G(x.$$.fragment,e),G(oe.block),G(M.$$.fragment,e),G(U.$$.fragment,e),Q=!0)},o(e){J(c.$$.fragment,e),J(x.$$.fragment,e);for(let e=0;e<3;e+=1){J(oe.blocks[e])}J(M.$$.fragment,e),J(U.$$.fragment,e),Q=!1},d(e){e&&d(t),e&&d(n),e&&d(o),Z(c),Z(x),oe.block.d(),oe.token=null,oe=null,Z(M),f(se,e),Z(U),Y=!1,l(ee)}}}function be(e){return{c:o,m:o,p:o,i:o,o:o,d:o}}function ve(e){let t,n,o=[],i=new Map,s=e[23];const l=e=>e[26];for(let t=0;t<s.length;t+=1){let n=pe(e,s,t),c=l(n);i.set(c,o[t]=ye(c,n))}return{c(){for(let e=0;e<o.length;e+=1)o[e].c();t=b()},m(e,i){for(let t=0;t<o.length;t+=1)o[t].m(e,i);u(e,t,i),n=!0},p(e,n){257&n&&(s=e[23],W(),o=function(e,t,n,o,i,s,l,c,r,a,u,d){let f=e.length,m=s.length,p=f;const h={};for(;p--;)h[e[p].key]=p;const g=[],b=new Map,v=new Map;for(p=m;p--;){const e=d(i,s,p),c=n(e);let r=l.get(c);r?o&&r.p(e,t):(r=a(c,e),r.c()),b.set(c,g[p]=r),c in h&&v.set(c,Math.abs(p-h[c]))}const $=new Set,x=new Set;function y(e){G(e,1),e.m(c,u),l.set(e.key,e),u=e.first,m--}for(;f&&m;){const t=g[m-1],n=e[f-1],o=t.key,i=n.key;t===n?(u=t.first,f--,m--):b.has(i)?!l.has(o)||$.has(o)?y(t):x.has(i)?f--:v.get(o)>v.get(i)?(x.add(o),y(t)):($.add(i),f--):(r(n,l),f--)}for(;f--;){const t=e[f];b.has(t.key)||r(t,l)}for(;m;)y(g[m-1]);return g}(o,n,l,1,e,s,i,t.parentNode,U,ye,t,pe),F())},i(e){if(!n){for(let e=0;e<s.length;e+=1)G(o[e]);n=!0}},o(e){for(let e=0;e<o.length;e+=1)J(o[e]);n=!1},d(e){for(let t=0;t<o.length;t+=1)o[t].d(e);e&&d(t)}}}function $e(e){let t,n,o=e[24].isSelected?"deselect":"select";return{c(){t=m("span"),n=h(o),$(t,"class","centerText svelte-19uu6ji")},m(e,o){u(e,t,o),a(t,n)},p(e,t){1&t&&o!==(o=e[24].isSelected?"deselect":"select")&&x(n,o)},d(e){e&&d(t)}}}function xe(e){let t,n,o,i,s,l=e[24].name+"";return o=new e[7]({props:{class:e[24].isSelected?"selectBtn":"deselectBtn",$$slots:{default:[$e]},$$scope:{ctx:e}}}),o.$on("click",(function(){return e[16](e[26])})),{c(){t=h(l),n=g(),H(o.$$.fragment),i=g()},m(e,l){u(e,t,l),u(e,n,l),R(o,e,l),u(e,i,l),s=!0},p(n,i){e=n,(!s||1&i)&&l!==(l=e[24].name+"")&&x(t,l);const c={};1&i&&(c.class=e[24].isSelected?"selectBtn":"deselectBtn"),134217729&i&&(c.$$scope={dirty:i,ctx:e}),o.$set(c)},i(e){s||(G(o.$$.fragment,e),s=!0)},o(e){J(o.$$.fragment,e),s=!1},d(e){e&&d(t),e&&d(n),Z(o,e),e&&d(i)}}}function ye(e,t){let n,o,i;return o=new t[6]({props:{class:"showModules",style:"margin: 20px",$$slots:{default:[xe]},$$scope:{ctx:t}}}),{key:e,first:null,c(){n=b(),H(o.$$.fragment),this.first=n},m(e,t){u(e,n,t),R(o,e,t),i=!0},p(e,n){t=e;const i={};134217729&n&&(i.$$scope={dirty:n,ctx:t}),o.$set(i)},i(e){i||(G(o.$$.fragment,e),i=!0)},o(e){J(o.$$.fragment,e),i=!1},d(e){e&&d(n),Z(o,e)}}}function ke(e){return{c:o,m:o,p:o,i:o,o:o,d:o}}function we(e){let t,n,o,i,s,l,c,r,f=e[20].tag+"";function p(){e[17].call(t,e[21],e[22])}return{c(){t=m("input"),n=g(),o=m("div"),i=m("span"),s=h(f),l=g(),$(t,"type","checkbox"),k(t,"cursor","pointer"),w(i,"checked",e[20].status),$(o,"class","tage svelte-19uu6ji")},m(d,f){u(d,t,f),t.checked=e[20].status,u(d,n,f),u(d,o,f),a(o,i),a(i,s),a(o,l),c||(r=v(t,"change",p),c=!0)},p(n,o){e=n,4&o&&(t.checked=e[20].status),4&o&&f!==(f=e[20].tag+"")&&x(s,f),4&o&&w(i,"checked",e[20].status)},d(e){e&&d(t),e&&d(n),e&&d(o),c=!1,r()}}}function qe(e){let t;return{c(){t=h("Speichern")},m(e,n){u(e,t,n)},d(e){e&&d(t)}}}function Ce(e){return{c:o,m:o,p:o,i:o,o:o,d:o}}function je(e){let t,n,o={ctx:e,current:null,token:null,hasCatch:!1,pending:Ce,then:ge,catch:he,value:19,blocks:[,,,]};return V(e[10](),o),{c(){t=m("div"),o.block.c(),$(t,"class","newLayoutContainer svelte-19uu6ji")},m(e,i){u(e,t,i),o.block.m(t,o.anchor=null),o.mount=()=>t,o.anchor=null,n=!0},p(t,[n]){K(o,e=t,n)},i(e){n||(G(o.block),n=!0)},o(e){for(let e=0;e<3;e+=1){J(o.blocks[e])}n=!1},d(e){e&&d(t),o.block.d(),o.token=null,o=null}}}function ze(e,o,i){const{TextField:s,Divider:l,Card:c,Button:r}=t,a=n.getAllModules().map((e=>({...e,isSelected:!1})));let u=a,{settings:d}=o,f="",m=[{tag:"Montag",status:!1,value:"Mo"},{tag:"Dienstag",status:!1,value:"Tu"},{tag:"Mittwoch",status:!1,value:"We"},{tag:"Donnerstag",status:!1,value:"Th"},{tag:"Freitag",status:!1,value:"Fr"},{tag:"Samstag",status:!1,value:"Sa"},{tag:"Sonntag",status:!1,value:"Su"}];function p(e){i(0,u[e].isSelected=!u[e].isSelected,u)}let h="";function g(){i(0,u=a.filter((e=>e.name.toLowerCase().includes(h.toLowerCase()))))}return e.$$set=e=>{"settings"in e&&i(12,d=e.settings)},[u,f,m,h,s,l,c,r,p,g,async function(){await d,console.log("opened add new layout: ",d)},function(){console.log("module list: ",a);let e=a.filter((e=>e.isSelected)).map(((e,t)=>({moduleId:e.id,position:t})));console.log("mod List ",e);let t=m.filter((e=>e.status)).map((e=>e.value));console.log("active Dqys: "+t);let n={id:f,activated:!0,days:t,moduleList:[{moduleId:"1111",position:"0"},{moduleId:"9999",position:"1"}]};console.log("build layout: ",n)},d,function(e){f=e,i(1,f)},function(){h=this.value,i(3,h)},e=>g(),e=>p(e),function(e,t){e[t].status=this.checked,i(2,m)}]}class Ne extends ee{constructor(e){var t;super(),document.getElementById("svelte-19uu6ji-style")||((t=m("style")).id="svelte-19uu6ji-style",t.textContent=".search_bar.svelte-19uu6ji{padding:0.2em;min-width:40%;margin-left:113px;height:2em}.module.svelte-19uu6ji{display:flex;flex-direction:row;font-weight:bold}.moduleCards.svelte-19uu6ji{width:580px}#textModule.svelte-19uu6ji{margin-right:89px}.selectBtn{background-color:#71C23F !important;border-radius:10px;color:white !important;border:none;height:23px;width:100px;float:right;cursor:pointer}.centerText.svelte-19uu6ji{display:block;width:100%;text-align:center}.deselectBtn{border-radius:10px;border:none;height:23px;width:100px;float:right;cursor:pointer}.tage.svelte-19uu6ji{margin-left:2em;display:block;position:relative;margin-top:-1.4em;line-height:2em}.wochentage.svelte-19uu6ji{margin-left:3em}.saveBtnDiv.svelte-19uu6ji{margin-bottom:1em}.saveBtnLayout{float:right}.newLayoutContainer.svelte-19uu6ji{max-height:32em;overflow-y:hidden\n }.newLayoutContent.svelte-19uu6ji{overflow-y:scroll;overflow-x:hidden;max-height:28em}",a(document.head,t)),Y(this,e,ze,je,r,{settings:12})}}function Ee(e,t,n){const o=e.slice();return o[29]=t[n],o[30]=t,o[31]=n,o}function Se(e){return{c:o,m:o,p:o,i:o,o:o,d:o}}function Be(e){let t,n,o,i,s,c,r,p,h,b,x,w,q,C,j,z,E,S,B,M,O,I,_,D,P,T,A,V,K,U,Q,Y,ee,te,ne,oe,ie,se,le,ce,re,ue,de,me,pe,he,ge,be,ve,$e,xe,ye,ke,we,qe,Ce,je,ze,Ne,Se,Be,Ae,Fe,Ge,Je,Ve,Ke,Ue,Xe,He,Re,Ze,Qe,Ye,et,tt,nt,ot,it,st,lt,ct,rt,at,ut,dt,ft,mt,pt,ht,gt;const bt=[Oe,Me],vt=[];function $t(e,t){return 1==e[1]?0:1}s=$t(e),c=vt[s]=bt[s](e),Q=new e[8]({props:{filled:!0,style:"margin-top: 0.8em",$$slots:{default:[Le]},$$scope:{ctx:e}}}),Q.$on("click",e[13]);const xt=[_e,Ie],yt=[];function kt(e,t){return 1==e[2]?0:1}function wt(t){e[19](t)}se=kt(e),le=yt[se]=xt[se](e);let qt={class:"switchInput"};function Ct(t){e[20](t)}void 0!==e[0].setting.notificationActivated&&(qt.checked=e[0].setting.notificationActivated),he=new fe({props:qt}),N.push((()=>X(he,"checked",wt)));let jt={class:"switchInput"};function zt(t){e[21](t)}void 0!==e[0].setting.showNotifications&&(jt.checked=e[0].setting.showNotifications),ye=new fe({props:jt}),N.push((()=>X(ye,"checked",Ct)));let Nt={class:"switchInput"};void 0!==e[0].setting.notificationToMail&&(Nt.checked=e[0].setting.notificationToMail),Se=new fe({props:Nt}),N.push((()=>X(Se,"checked",zt)));let Et=e[5],St=[];for(let t=0;t<Et.length;t+=1)St[t]=De(Ee(e,Et,t));const Bt=[Te,Pe],Mt=[];function Ot(e,t){return 1==e[3]?0:1}function Lt(t){e[25](t)}Ye=Ot(e),et=Mt[Ye]=Bt[Ye](e),at=new ae({});let It={noClickaway:"true",$$slots:{default:[We,({closeCallback:e})=>({28:e}),({closeCallback:e})=>[e?268435456:0]]},$$scope:{ctx:e}};return void 0!==e[4]&&(It.open=e[4]),dt=new e[6]({props:It}),N.push((()=>X(dt,"open",Lt))),{c(){t=m("div"),n=m("div"),o=m("h4"),o.textContent="Mein Konto",i=g(),c.c(),r=g(),p=m("div"),h=m("form"),b=m("label"),b.textContent="Berufsbezeichnung",x=g(),w=m("input"),q=g(),C=m("div"),j=m("input"),z=g(),E=m("label"),E.textContent="Meine Berufsbezeichnung in meinem Profil anzeigen.",S=g(),B=m("label"),B.textContent="E-Mail",M=g(),O=m("input"),I=g(),_=m("label"),_.textContent="Vorname",D=g(),P=m("input"),T=g(),A=m("label"),A.textContent="Nachname",V=g(),K=m("input"),U=g(),H(Q.$$.fragment),ee=g(),te=m("div"),ne=m("div"),oe=m("h4"),oe.textContent="Benachrichtigungen",ie=g(),le.c(),ce=g(),re=m("div"),ue=m("form"),de=m("div"),me=m("p"),me.textContent="Benachrichtigungen aktivieren",pe=g(),H(he.$$.fragment),be=g(),ve=m("div"),$e=m("p"),$e.textContent="Ungelesene Nachricht aktivieren",xe=g(),H(ye.$$.fragment),we=g(),qe=m("p"),qe.textContent="Zeigt einen roten Kreis auf der Glocke an, wenn Sie ungelesene Nachrichten\n haben.",Ce=g(),je=m("div"),ze=m("p"),ze.textContent="Benachrichtigungen an E-Mail senden",Ne=g(),H(Se.$$.fragment),Ae=g(),Fe=m("div"),Ge=m("p"),Ge.textContent="Arten von Benachrichtigungen",Je=g(),Ve=m("p"),Ve.textContent="Wählen Sie aus, welche Arten von Benachrichtigungen Sie sehen\n möchten.",Ke=g();for(let e=0;e<St.length;e+=1)St[e].c();Xe=g(),He=m("div"),Re=m("div"),Ze=m("h4"),Ze.textContent="Layout",Qe=g(),et.c(),tt=g(),nt=m("div"),ot=m("div"),it=m("p"),it.textContent="Deine Layouts",st=g(),lt=m("p"),lt.textContent="Dies sind Ihre vorhandenen Vorlagen.",ct=g(),rt=m("button"),H(at.$$.fragment),ut=g(),H(dt.$$.fragment),$(n,"class","menuItem svelte-q1b6mq"),$(b,"class","accountLabel svelte-q1b6mq"),$(b,"for","berufsbezeichnung"),$(w,"type","text"),$(w,"id","berufsbezeichnung"),$(w,"name","Berufsbezeichnung"),$(w,"class","accountInput svelte-q1b6mq"),$(w,"placeholder","Berufsbezeichnung"),$(j,"type","checkbox"),$(j,"id","showJob"),k(j,"cursor","pointer"),$(j,"name","Berufsbezeichnung"),$(E,"for","showJob"),$(C,"class","checkbox svelte-q1b6mq"),$(B,"class","accountLabel svelte-q1b6mq"),$(B,"for","changeEmailID"),$(O,"class","accountInput svelte-q1b6mq"),$(O,"type","text"),$(O,"id","changeEmailID"),$(O,"name","Email"),$(O,"placeholder","Email"),O.disabled=!0,$(_,"class","accountLabel svelte-q1b6mq"),$(_,"for","changeFirstName"),$(P,"class","accountInput svelte-q1b6mq"),$(P,"type","text"),$(P,"id","changeFirstName"),$(P,"name","FirstName"),$(P,"placeholder","Vorname"),$(A,"class","accountLabel svelte-q1b6mq"),$(A,"for","changeLastName"),$(K,"class","accountInput svelte-q1b6mq"),$(K,"type","text"),$(K,"id","changeLastName"),$(K,"name","LastName"),$(K,"placeholder","Nachname"),$(h,"class","meinKonto svelte-q1b6mq"),$(p,"style",Y=!0===e[1]?"display:inline":"display:none"),$(t,"class","settingMenuItem svelte-q1b6mq"),$(ne,"class","menuItem svelte-q1b6mq"),$(me,"id","aktivieren"),$(me,"class","svelte-q1b6mq"),$(de,"class","nachrichtenAktivieren svelte-q1b6mq"),$($e,"id","ungelesen"),$($e,"class","svelte-q1b6mq"),$(ve,"class","ungeleseneNachrichten svelte-q1b6mq"),$(qe,"id","changeText"),$(qe,"class","svelte-q1b6mq"),$(ze,"id","email"),$(je,"class","nachrichtenEmail svelte-q1b6mq"),$(Ge,"id","arten"),$(Ge,"class","svelte-q1b6mq"),k(Ve,"font-size","14px"),$(Fe,"class","nachrichtenArten svelte-q1b6mq"),$(ue,"class","meinBenachrichtigungen svelte-q1b6mq"),$(re,"style",Ue=!0===e[2]?"display:inline":"display:none"),$(te,"class","settingMenuItem svelte-q1b6mq"),$(Re,"class","menuItem svelte-q1b6mq"),k(it,"font-weight","bold"),$(rt,"class","addLayout svelte-q1b6mq"),$(ot,"class","meinLayout svelte-q1b6mq"),$(nt,"style",mt=!0===e[3]?"display:inline":"display:none"),$(He,"class","settingMenuItem svelte-q1b6mq")},m(l,c){u(l,t,c),a(t,n),a(n,o),a(n,i),vt[s].m(n,null),a(t,r),a(t,p),a(p,h),a(h,b),a(h,x),a(h,w),y(w,e[0].jobDescription),a(h,q),a(h,C),a(C,j),j.checked=e[0].setting.showJobDescription,a(C,z),a(C,E),a(h,S),a(h,B),a(h,M),a(h,O),y(O,e[0].email),a(h,I),a(h,_),a(h,D),a(h,P),y(P,e[0].firstName),a(h,T),a(h,A),a(h,V),a(h,K),y(K,e[0].lastName),a(h,U),R(Q,h,null),u(l,ee,c),u(l,te,c),a(te,ne),a(ne,oe),a(ne,ie),yt[se].m(ne,null),a(te,ce),a(te,re),a(re,ue),a(ue,de),a(de,me),a(de,pe),R(he,de,null),a(ue,be),a(ue,ve),a(ve,$e),a(ve,xe),R(ye,ve,null),a(ue,we),a(ue,qe),a(ue,Ce),a(ue,je),a(je,ze),a(je,Ne),R(Se,je,null),a(ue,Ae),a(ue,Fe),a(Fe,Ge),a(Fe,Je),a(Fe,Ve),a(Fe,Ke);for(let e=0;e<St.length;e+=1)St[e].m(Fe,null);u(l,Xe,c),u(l,He,c),a(He,Re),a(Re,Ze),a(Re,Qe),Mt[Ye].m(Re,null),a(He,tt),a(He,nt),a(nt,ot),a(ot,it),a(ot,st),a(ot,lt),a(ot,ct),a(ot,rt),R(at,rt,null),a(ot,ut),R(dt,ot,null),pt=!0,ht||(gt=[v(n,"click",e[9]),v(w,"input",e[14]),v(j,"change",e[15]),v(O,"input",e[16]),v(P,"input",e[17]),v(K,"input",e[18]),v(ne,"click",e[10]),v(Re,"click",e[11]),v(rt,"click",e[23])],ht=!0)},p(e,t){let o=s;s=$t(e),s!==o&&(W(),J(vt[o],1,1,(()=>{vt[o]=null})),F(),c=vt[s],c||(c=vt[s]=bt[s](e),c.c()),G(c,1),c.m(n,null)),1&t[0]&&w.value!==e[0].jobDescription&&y(w,e[0].jobDescription),1&t[0]&&(j.checked=e[0].setting.showJobDescription),1&t[0]&&O.value!==e[0].email&&y(O,e[0].email),1&t[0]&&P.value!==e[0].firstName&&y(P,e[0].firstName),1&t[0]&&K.value!==e[0].lastName&&y(K,e[0].lastName);const i={};2&t[1]&&(i.$$scope={dirty:t,ctx:e}),Q.$set(i),(!pt||2&t[0]&&Y!==(Y=!0===e[1]?"display:inline":"display:none"))&&$(p,"style",Y);let l=se;se=kt(e),se!==l&&(W(),J(yt[l],1,1,(()=>{yt[l]=null})),F(),le=yt[se],le||(le=yt[se]=xt[se](e),le.c()),G(le,1),le.m(ne,null));const r={};!ge&&1&t[0]&&(ge=!0,r.checked=e[0].setting.notificationActivated,L((()=>ge=!1))),he.$set(r);const a={};!ke&&1&t[0]&&(ke=!0,a.checked=e[0].setting.showNotifications,L((()=>ke=!1))),ye.$set(a);const u={};if(!Be&&1&t[0]&&(Be=!0,u.checked=e[0].setting.notificationToMail,L((()=>Be=!1))),Se.$set(u),32&t[0]){let n;for(Et=e[5],n=0;n<Et.length;n+=1){const o=Ee(e,Et,n);St[n]?St[n].p(o,t):(St[n]=De(o),St[n].c(),St[n].m(Fe,null))}for(;n<St.length;n+=1)St[n].d(1);St.length=Et.length}(!pt||4&t[0]&&Ue!==(Ue=!0===e[2]?"display:inline":"display:none"))&&$(re,"style",Ue);let d=Ye;Ye=Ot(e),Ye!==d&&(W(),J(Mt[d],1,1,(()=>{Mt[d]=null})),F(),et=Mt[Ye],et||(et=Mt[Ye]=Bt[Ye](e),et.c()),G(et,1),et.m(Re,null));const f={};268435457&t[0]|2&t[1]&&(f.$$scope={dirty:t,ctx:e}),!ft&&16&t[0]&&(ft=!0,f.open=e[4],L((()=>ft=!1))),dt.$set(f),(!pt||8&t[0]&&mt!==(mt=!0===e[3]?"display:inline":"display:none"))&&$(nt,"style",mt)},i(e){pt||(G(c),G(Q.$$.fragment,e),G(le),G(he.$$.fragment,e),G(ye.$$.fragment,e),G(Se.$$.fragment,e),G(et),G(at.$$.fragment,e),G(dt.$$.fragment,e),pt=!0)},o(e){J(c),J(Q.$$.fragment,e),J(le),J(he.$$.fragment,e),J(ye.$$.fragment,e),J(Se.$$.fragment,e),J(et),J(at.$$.fragment,e),J(dt.$$.fragment,e),pt=!1},d(e){e&&d(t),vt[s].d(),Z(Q),e&&d(ee),e&&d(te),yt[se].d(),Z(he),Z(ye),Z(Se),f(St,e),e&&d(Xe),e&&d(He),Mt[Ye].d(),Z(at),Z(dt),ht=!1,l(gt)}}}function Me(e){let t,n;return t=new le({props:{size:"20",class:"ml accordion-chevron"}}),{c(){H(t.$$.fragment)},m(e,o){R(t,e,o),n=!0},i(e){n||(G(t.$$.fragment,e),n=!0)},o(e){J(t.$$.fragment,e),n=!1},d(e){Z(t,e)}}}function Oe(e){let t,n;return t=new oe({props:{size:"20",class:"ml accordion-chevron"}}),{c(){H(t.$$.fragment)},m(e,o){R(t,e,o),n=!0},i(e){n||(G(t.$$.fragment,e),n=!0)},o(e){J(t.$$.fragment,e),n=!1},d(e){Z(t,e)}}}function Le(e){let t;return{c(){t=h("Speichern")},m(e,n){u(e,t,n)},d(e){e&&d(t)}}}function Ie(e){let t,n;return t=new le({props:{size:"20",class:"ml accordion-chevron"}}),{c(){H(t.$$.fragment)},m(e,o){R(t,e,o),n=!0},i(e){n||(G(t.$$.fragment,e),n=!0)},o(e){J(t.$$.fragment,e),n=!1},d(e){Z(t,e)}}}function _e(e){let t,n;return t=new oe({props:{size:"20",class:"ml accordion-chevron"}}),{c(){H(t.$$.fragment)},m(e,o){R(t,e,o),n=!0},i(e){n||(G(t.$$.fragment,e),n=!0)},o(e){J(t.$$.fragment,e),n=!1},d(e){Z(t,e)}}}function De(e){let t,n,o,i,s,l,c,r,f,p=e[29].art+"";function b(){e[22].call(t,e[30],e[31])}return{c(){t=m("input"),n=g(),o=m("div"),i=m("span"),s=h(p),l=g(),c=m("br"),$(t,"type","checkbox"),k(t,"cursor","pointer"),k(t,"margin-left","-53em"),w(i,"checked",e[29].status),$(o,"class","checkboxNachrichten svelte-q1b6mq")},m(d,m){u(d,t,m),t.checked=e[29].status,u(d,n,m),u(d,o,m),a(o,i),a(i,s),u(d,l,m),u(d,c,m),r||(f=v(t,"change",b),r=!0)},p(n,o){e=n,32&o[0]&&(t.checked=e[29].status),32&o[0]&&p!==(p=e[29].art+"")&&x(s,p),32&o[0]&&w(i,"checked",e[29].status)},d(e){e&&d(t),e&&d(n),e&&d(o),e&&d(l),e&&d(c),r=!1,f()}}}function Pe(e){let t,n;return t=new le({props:{size:"20",class:"ml accordion-chevron"}}),{c(){H(t.$$.fragment)},m(e,o){R(t,e,o),n=!0},i(e){n||(G(t.$$.fragment,e),n=!0)},o(e){J(t.$$.fragment,e),n=!1},d(e){Z(t,e)}}}function Te(e){let t,n;return t=new oe({props:{size:"20",class:"ml accordion-chevron"}}),{c(){H(t.$$.fragment)},m(e,o){R(t,e,o),n=!0},i(e){n||(G(t.$$.fragment,e),n=!0)},o(e){J(t.$$.fragment,e),n=!1},d(e){Z(t,e)}}}function Ae(e){let t,n,o;function i(t){e[24](t)}let s={};return void 0!==e[0]&&(s.settings=e[0]),t=new Ne({props:s}),N.push((()=>X(t,"settings",i))),{c(){H(t.$$.fragment)},m(e,n){R(t,e,n),o=!0},p(e,o){const i={};!n&&1&o[0]&&(n=!0,i.settings=e[0],L((()=>n=!1))),t.$set(i)},i(e){o||(G(t.$$.fragment,e),o=!0)},o(e){J(t.$$.fragment,e),o=!1},d(e){Z(t,e)}}}function We(e){let t,n,o;return n=new e[7]({props:{constrainWidth:!0,closeCallback:e[28],class:"layout",style:"min-width: 37em; max-height: 32em; overflow: hidden;",$$slots:{default:[Ae]},$$scope:{ctx:e}}}),{c(){t=m("div"),H(n.$$.fragment)},m(e,i){u(e,t,i),R(n,t,null),o=!0},p(e,t){const o={};268435456&t[0]&&(o.closeCallback=e[28]),1&t[0]|2&t[1]&&(o.$$scope={dirty:t,ctx:e}),n.$set(o)},i(e){o||(G(n.$$.fragment,e),o=!0)},o(e){J(n.$$.fragment,e),o=!1},d(e){e&&d(t),Z(n)}}}function Fe(e){return{c:o,m:o,p:o,i:o,o:o,d:o}}function Ge(e){let t,n,o={ctx:e,current:null,token:null,hasCatch:!1,pending:Fe,then:Be,catch:Se,value:27,blocks:[,,,]};return V(e[12](),o),{c(){t=m("div"),o.block.c(),$(t,"class","dropDownMenus svelte-q1b6mq")},m(e,i){u(e,t,i),o.block.m(t,o.anchor=null),o.mount=()=>t,o.anchor=null,n=!0},p(t,n){K(o,e=t,n)},i(e){n||(G(o.block),n=!0)},o(e){for(let e=0;e<3;e+=1){J(o.blocks[e])}n=!1},d(e){e&&d(t),o.block.d(),o.token=null,o=null}}}function Je(e,o,i){const{Modal:s,Dialog:l,TextField:c,Button:r}=t;let{settings:a}=o,u=!1,d=!1,f=!1,m=!1,p=[{art:"Tasks",status:!1},{art:"Deadlines",status:!1},{art:"Events",status:!1}];return e.$$set=e=>{"settings"in e&&i(0,a=e.settings)},[a,u,d,f,m,p,s,l,r,function(){i(1,u=!u),i(2,d=!1),i(3,f=!1)},function(){i(2,d=!d),i(1,u=!1),i(3,f=!1)},function(){i(3,f=!f),i(2,d=!1),i(1,u=!1)},async function(){if(await a,console.log(a),a.setting.typesOfNotification?.length>0)for(let e of p)a.setting.typesOfNotification.includes(e.art)&&(e.status=!0);return console.log(p),a},function(){console.log(a);for(let e of p)e.status?a.setting.typesOfNotification.includes(e.art)||a.setting.typesOfNotification.push(e.art):i(0,a.setting.typesOfNotification=a.setting.typesOfNotification.filter((t=>t!=e.art)),a);console.log(a.setting.typesOfNotification),n.saveUserSettings(a)},function(){a.jobDescription=this.value,i(0,a)},function(){a.setting.showJobDescription=this.checked,i(0,a)},function(){a.email=this.value,i(0,a)},function(){a.firstName=this.value,i(0,a)},function(){a.lastName=this.value,i(0,a)},function(t){e.$$.not_equal(a.setting.notificationActivated,t)&&(a.setting.notificationActivated=t,i(0,a))},function(t){e.$$.not_equal(a.setting.showNotifications,t)&&(a.setting.showNotifications=t,i(0,a))},function(t){e.$$.not_equal(a.setting.notificationToMail,t)&&(a.setting.notificationToMail=t,i(0,a))},function(e,t){e[t].status=this.checked,i(5,p)},()=>i(4,m=!0),function(e){a=e,i(0,a)},function(e){m=e,i(4,m)}]}class Ve extends ee{constructor(e){var t;super(),document.getElementById("svelte-q1b6mq-style")||((t=m("style")).id="svelte-q1b6mq-style",t.textContent=".menuItem.svelte-q1b6mq.svelte-q1b6mq{display:flex;flex-direction:row;justify-content:space-between;padding-left:3%;padding-right:3%;align-items:center;cursor:pointer}.settingMenuItem.svelte-q1b6mq.svelte-q1b6mq{align-self:center;background-color:#dedede;border:1px solid black;border-radius:10px;margin-bottom:20px}.dropDownMenus.svelte-q1b6mq.svelte-q1b6mq{overflow-y:auto;height:500px;margin-top:30px}.meinKonto.svelte-q1b6mq.svelte-q1b6mq{flex-direction:column;padding-left:50px;margin-bottom:20px}.accountLabel.svelte-q1b6mq.svelte-q1b6mq{font-weight:bold;display:block;margin-bottom:0.6em;margin-top:0.8em}.checkbox.svelte-q1b6mq.svelte-q1b6mq{margin-top:0.2em}.accountInput.svelte-q1b6mq.svelte-q1b6mq{font-size:15px;width:300px;height:32px;border:0;border-radius:6px;padding-left:0.3em}input[disabled].svelte-q1b6mq+label.svelte-q1b6mq{color:#404040;;}.meinBenachrichtigungen.svelte-q1b6mq.svelte-q1b6mq{flex-direction:column;padding-left:49px;margin-bottom:40px;line-height:16px}#changeText.svelte-q1b6mq.svelte-q1b6mq{font-size:14px;line-height:0px;padding-bottom:15px}.nachrichtenAktivieren.svelte-q1b6mq.svelte-q1b6mq{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:95%}#aktivieren.svelte-q1b6mq.svelte-q1b6mq{font-weight:bold}.ungeleseneNachrichten.svelte-q1b6mq.svelte-q1b6mq{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:95%}#ungelesen.svelte-q1b6mq.svelte-q1b6mq{font-weight:bold}.nachrichtenEmail.svelte-q1b6mq.svelte-q1b6mq{font-weight:bold;display:flex;flex-direction:row;padding-bottom:12px;align-items:center;justify-content:space-between;width:95%}.nachrichtenArten.svelte-q1b6mq.svelte-q1b6mq{display:flex;flex-direction:column;line-height:1px}#arten.svelte-q1b6mq.svelte-q1b6mq{font-weight:bold}.checkboxNachrichten.svelte-q1b6mq.svelte-q1b6mq{margin-left:2em;display:block;position:relative;margin-top:-1.4em;line-height:1.4em}.meinLayout.svelte-q1b6mq.svelte-q1b6mq{flex-direction:column;padding-left:49px;margin-bottom:40px;line-height:16px}.addLayout.svelte-q1b6mq.svelte-q1b6mq{border-radius:23px;cursor:pointer;width:2.8em;height:2.8em;background-color:white;border-color:#9ABCD6;position:absolute;top:353px;right:94px}",a(document.head,t)),Y(this,e,Je,Ge,r,{settings:0},[-1,-1])}}function Ke(e){return{c:o,m:o,p:o,i:o,o:o,d:o}}function Ue(e){let t,n;return t=new Ve({props:{settings:e[0]}}),{c(){H(t.$$.fragment)},m(e,o){R(t,e,o),n=!0},p(e,n){const o={};1&n&&(o.settings=e[0]),t.$set(o)},i(e){n||(G(t.$$.fragment,e),n=!0)},o(e){J(t.$$.fragment,e),n=!1},d(e){Z(t,e)}}}function Xe(e){return{c:o,m:o,p:o,i:o,o:o,d:o}}function He(e){let t,n,o,i,s,l,c={ctx:e,current:null,token:null,hasCatch:!1,pending:Xe,then:Ue,catch:Ke,value:3,blocks:[,,,]};return V(e[1](),c),{c(){t=m("main"),n=m("div"),n.innerHTML="<h2>Einstellungen</h2>",o=g(),i=m("hr"),s=g(),c.block.c(),$(n,"class","popUp")},m(e,r){u(e,t,r),a(t,n),a(t,o),a(t,i),a(t,s),c.block.m(t,c.anchor=null),c.mount=()=>t,c.anchor=null,l=!0},p(t,[n]){K(c,e=t,n)},i(e){l||(G(c.block),l=!0)},o(e){for(let e=0;e<3;e+=1){J(c.blocks[e])}l=!1},d(e){e&&d(t),c.block.d(),c.token=null,c=null}}}function Re(e,t,n){let o,{settings:i}=t;return e.$$set=e=>{"settings"in e&&n(2,i=e.settings)},[o,async function(){return await i,n(0,o=i),i},i]}class Ze extends ee{constructor(e){super(),Y(this,e,Re,He,r,{settings:2})}}function Qe(e){return{c:o,m:o,p:o,i:o,o:o,d:o}}function Ye(e){let t,n,o=e[0]&&et(e);return{c(){o&&o.c(),t=b()},m(e,i){o&&o.m(e,i),u(e,t,i),n=!0},p(e,n){e[0]?o?(o.p(e,n),1&n&&G(o,1)):(o=et(e),o.c(),G(o,1),o.m(t.parentNode,t)):o&&(W(),J(o,1,1,(()=>{o=null})),F())},i(e){n||(G(o),n=!0)},o(e){J(o),n=!1},d(e){o&&o.d(e),e&&d(t)}}}function et(e){let t,n,o;return n=new e[2]({props:{constrainWidth:!0,closeCallback:function(){return e[4](e[7])},class:"modal_class",$$slots:{default:[tt]},$$scope:{ctx:e}}}),{c(){t=m("div"),H(n.$$.fragment)},m(e,i){u(e,t,i),R(n,t,null),o=!0},p(t,o){e=t;const i={};513&o&&(i.$$scope={dirty:o,ctx:e}),n.$set(i)},i(e){o||(G(n.$$.fragment,e),o=!0)},o(e){J(n.$$.fragment,e),o=!1},d(e){e&&d(t),Z(n)}}}function tt(e){let t,n;return t=new Ze({props:{settings:e[0]}}),{c(){H(t.$$.fragment)},m(e,o){R(t,e,o),n=!0},p(e,n){const o={};1&n&&(o.settings=e[0]),t.$set(o)},i(e){n||(G(t.$$.fragment,e),n=!0)},o(e){J(t.$$.fragment,e),n=!1},d(e){Z(t,e)}}}function nt(e){return{c:o,m:o,p:o,i:o,o:o,d:o}}function ot(e){let t,n,o={ctx:e,current:null,token:null,hasCatch:!1,pending:nt,then:Ye,catch:Qe,value:8,blocks:[,,,]};return V(e[3](),o),{c(){t=b(),o.block.c()},m(e,i){u(e,t,i),o.block.m(e,o.anchor=i),o.mount=()=>t.parentNode,o.anchor=t,n=!0},p(t,n){K(o,e=t,n)},i(e){n||(G(o.block),n=!0)},o(e){for(let e=0;e<3;e+=1){J(o.blocks[e])}n=!1},d(e){e&&d(t),o.block.d(e),o.token=null,o=null}}}function it(e){let t,n;return t=new e[1]({props:{open:"true",noClickaway:"true",$$slots:{default:[ot,({closeCallback:e})=>({7:e}),({closeCallback:e})=>e?128:0]},$$scope:{ctx:e}}}),{c(){H(t.$$.fragment)},m(e,o){R(t,e,o),n=!0},p(e,[n]){const o={};513&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i(e){n||(G(t.$$.fragment,e),n=!0)},o(e){J(t.$$.fragment,e),n=!1},d(e){Z(t,e)}}}function st(e,o,i){let s;const{Modal:l,Dialog:c,Tabs:r,Card:a}=t;function u(){return n.getUserSettings().then((e=>(i(0,s=e),s)))}u();return[s,l,c,u,e=>(window.singleSpaNavigate("/"),e())]}function lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ct,rt,at=(ct=function(e,t){function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function o(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?n(Object(o),!0).forEach((function(t){i(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("object"!==s(e))throw new Error("single-spa-svelte requires a configuration object");var t=o(o({},l),e);if(!t.component)throw new Error("single-spa-svelte must be passed opts.component");var n={};return{bootstrap:c.bind(null,t,n),mount:r.bind(null,t,n),unmount:a.bind(null,t,n),update:u.bind(null,t,n)}};var l={component:null,domElementGetter:null,props:{}};function c(e){return Promise.resolve()}function r(e,t,n){var i=Object.keys(l),s=Object.keys(e).reduce((function(t,n){return i.includes(n)||(t[n]=e[n]),t}),{});return Promise.resolve().then((function(){var i=function(e,t){return(t=t&&t.customProps?t.customProps:t).domElement?function(){return t.domElement}:t.domElementGetter?function(){return t.domElementGetter(t)}:e.domElementGetter?function(){return e.domElementGetter(t)}:function(e){var t=e.appName||e.name;if(!t)throw Error("single-spa-svelte was not given an application name as a prop, so it can't make a unique dom element container for the svelte application");var n="single-spa-application:".concat(t);return function(){var e=document.getElementById(n);return e||((e=document.createElement("div")).id=n,document.body.appendChild(e)),e}}(t)}(e,n),l=i();t.instance=new e.component(o(o({},s),{},{target:l,props:Object.assign({},n,e.props)}))}))}function a(e,t){return Promise.resolve().then((function(){t.instance.$destroy?t.instance.$destroy():t.instance.destroy()}))}function u(e,t,n){return Promise.resolve().then((function(){t.instance.$set?t.instance.$set(n):t.instance.set(n)}))}},ct(rt={exports:{}},rt.exports),rt.exports);const ut=lt(at)({component:class extends ee{constructor(e){var t;super(),document.getElementById("svelte-rlqw7r-style")||((t=m("style")).id="svelte-rlqw7r-style",t.textContent=".modal_class{min-width:50em;max-height:50em;overflow:hidden}",a(document.head,t)),Y(this,e,st,it,r,{})}},domElementGetter:()=>document.getElementById("view-app")}),{bootstrap:dt,mount:ft,unmount:mt}=ut;e({bootstrap:dt,mount:ft,unmount:mt})}}}));
|