@enablerr-ui/settings 0.2.1 → 0.2.3
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.3");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 $(){return h("")}function b(e,t,n,o){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}function v(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 w(e,t){e.value=null==t?"":t}function y(e,t,n,o){e.style.setProperty(t,n,o?"important":"")}function k(e,t,n){e.classList[n?"add":"remove"](t)}let j;function q(e){j=e}function C(){if(!j)throw new Error("Function called outside component initialization");return j}function N(e){C().$$.on_mount.push(e)}const E=[],S=[],M=[],B=[],I=Promise.resolve();let O=!1;function _(){O||(O=!0,I.then(W))}function L(e){M.push(e)}function z(e){B.push(e)}let D=!1;const P=new Set;function W(){if(!D){D=!0;do{for(let e=0;e<E.length;e+=1){const t=E[e];q(t),T(t.$$)}for(q(null),E.length=0;S.length;)S.pop()();for(let e=0;e<M.length;e+=1){const t=M[e];P.has(t)||(P.add(t),t())}M.length=0}while(E.length);for(;B.length;)B.pop()();O=!1,D=!1,P.clear()}}function T(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(L)}}const A=new Set;let F;function G(){F={r:0,c:[],p:F}}function J(){F.r||l(F.c),F=F.p}function V(e,t){e&&e.i&&(A.delete(e),e.i(t))}function U(e,t,n,o){if(e&&e.o){if(A.has(e))return;A.add(e),F&&F.c.push((()=>{A.delete(e),o&&(n&&e.d(1),o())})),e.o(t)}}function X(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&&(G(),U(e,1,1,(()=>{t.blocks[n]===e&&(t.blocks[n]=null)})),J())})):t.block.d(1),c.c(),V(c,1),c.m(t.mount(),t.anchor),r=!0),t.block=c,t.blocks&&(t.blocks[o]=c),r&&W()}if((i=e)&&"object"==typeof i&&"function"==typeof i.then){const n=C();if(e.then((e=>{q(n),o(t.then,1,t.value,e),q(null)}),(e=>{if(q(n),o(t.catch,2,t.error,e),q(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 H(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 K(e,t){U(e,1,1,(()=>{t.delete(e.key)}))}function R(e,t,n){const o=e.$$.props[t];void 0!==o&&(e.$$.bound[o]=n,n(e.$$.ctx[o]))}function Z(e){e&&e.c()}function Q(e,t,n,o){const{fragment:s,on_mount:r,on_destroy:a,after_update:u}=e.$$;s&&s.m(t,n),o||L((()=>{const t=r.map(i).filter(c);a?a.push(...t):l(t),e.$$.on_mount=[]})),u.forEach(L)}function Y(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 ee(e,t,n,i,c,r,a=[-1]){const u=j;q(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&&function(e,t){-1===e.$$.dirty[0]&&(E.push(e),_(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(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&&V(e.$$.fragment),Q(e,t.target,t.anchor,t.customElement),W()}q(u)}class te{$destroy(){Y(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 ne(e){let t,n,i;return{c(){t=p("svg"),n=p("polyline"),v(n,"points","6 9 12 15 18 9"),v(t,"xmlns","http://www.w3.org/2000/svg"),v(t,"width",e[0]),v(t,"height",e[0]),v(t,"fill","none"),v(t,"viewBox","0 0 24 24"),v(t,"stroke","currentColor"),v(t,"stroke-width",e[1]),v(t,"stroke-linecap","round"),v(t,"stroke-linejoin","round"),v(t,"class",i="feather feather-chevron-down "+e[2])},m(e,o){u(e,t,o),a(t,n)},p(e,[n]){1&n&&v(t,"width",e[0]),1&n&&v(t,"height",e[0]),2&n&&v(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-chevron-down "+e[2])&&v(t,"class",i)},i:o,o:o,d(e){e&&d(t)}}}function oe(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 ie extends te{constructor(e){super(),ee(this,e,oe,ne,r,{size:0,strokeWidth:1,class:2})}}function se(e){let t,n,i;return{c(){t=p("svg"),n=p("polyline"),v(n,"points","9 18 15 12 9 6"),v(t,"xmlns","http://www.w3.org/2000/svg"),v(t,"width",e[0]),v(t,"height",e[0]),v(t,"fill","none"),v(t,"viewBox","0 0 24 24"),v(t,"stroke","currentColor"),v(t,"stroke-width",e[1]),v(t,"stroke-linecap","round"),v(t,"stroke-linejoin","round"),v(t,"class",i="feather feather-chevron-right "+e[2])},m(e,o){u(e,t,o),a(t,n)},p(e,[n]){1&n&&v(t,"width",e[0]),1&n&&v(t,"height",e[0]),2&n&&v(t,"stroke-width",e[1]),4&n&&i!==(i="feather feather-chevron-right "+e[2])&&v(t,"class",i)},i:o,o:o,d(e){e&&d(t)}}}function le(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 ce extends te{constructor(e){super(),ee(this,e,le,se,r,{size:0,strokeWidth:1,class:2})}}function re(e){let t,n,i,s;return{c(){t=p("svg"),n=p("line"),i=p("line"),v(n,"x1","12"),v(n,"y1","5"),v(n,"x2","12"),v(n,"y2","19"),v(i,"x1","5"),v(i,"y1","12"),v(i,"x2","19"),v(i,"y2","12"),v(t,"xmlns","http://www.w3.org/2000/svg"),v(t,"width",e[0]),v(t,"height",e[0]),v(t,"fill","none"),v(t,"viewBox","0 0 24 24"),v(t,"stroke","currentColor"),v(t,"stroke-width",e[1]),v(t,"stroke-linecap","round"),v(t,"stroke-linejoin","round"),v(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&&v(t,"width",e[0]),1&n&&v(t,"height",e[0]),2&n&&v(t,"stroke-width",e[1]),4&n&&s!==(s="feather feather-plus "+e[2])&&v(t,"class",s)},i:o,o:o,d(e){e&&d(t)}}}function ae(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 ue extends te{constructor(e){super(),ee(this,e,ae,re,r,{size:0,strokeWidth:1,class:2})}}function de(e){let t,n,i,s,l,c;return{c(){t=m("label"),n=m("input"),i=g(),s=m("span"),v(n,"type","checkbox"),v(n,"class","svelte-1dqb23j"),v(s,"class","slider svelte-1dqb23j"),v(t,"class","switch svelte-1dqb23j")},m(o,r){u(o,t,r),a(t,n),n.checked=e[0],a(t,i),a(t,s),l||(c=b(n,"change",e[1]),l=!0)},p(e,[t]){1&t&&(n.checked=e[0])},i:o,o:o,d(e){e&&d(t),l=!1,c()}}}function fe(e,t,n){let{checked:o=!1}=t;return e.$$set=e=>{"checked"in e&&n(0,o=e.checked)},[o,function(){o=this.checked,n(0,o)}]}class me extends te{constructor(e){var t;super(),document.getElementById("svelte-1dqb23j-style")||((t=m("style")).id="svelte-1dqb23j-style",t.textContent='.switch.svelte-1dqb23j.svelte-1dqb23j{position:relative;width:60px;height:34px}.switch.svelte-1dqb23j input.svelte-1dqb23j{opacity:0;width:0;height:0}.slider.svelte-1dqb23j.svelte-1dqb23j{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-1dqb23j.svelte-1dqb23j: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-1dqb23j:checked+.slider.svelte-1dqb23j{background-color:#49e130}input.svelte-1dqb23j:checked+.slider.svelte-1dqb23j{box-shadow:0 0 1px #5b5f5b}input.svelte-1dqb23j:checked+.slider.svelte-1dqb23j:before{-webkit-transform:translateX(26px);-ms-transform:translateX(26px);transform:translateX(26px)}',a(document.head,t)),ee(this,e,fe,de,r,{checked:0})}}function pe(e,t,n){const o=e.slice();return o[20]=t[n],o[21]=t,o[22]=n,o}function he(e,t,n){const o=e.slice();return o[24]=t[n],o[26]=n,o}function ge(e){return{c:o,m:o,p:o,i:o,o:o,d:o}}function $e(e){let t,n,o,i,s,c,r,p,h,$,x,y,k,j,q,C,N,E,M,B,I,O,_,L,D,P,W,T,A,F,G,J,K,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}),S.push((()=>R(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:[,,,]};X(M=e[0],oe),I=new e[5]({});let ie=e[2],se=[];for(let t=0;t<ie.length;t+=1)se[t]=je(pe(e,ie,t));return G=new e[7]({props:{filled:!0,class:"saveBtnLayout",$$slots:{default:[qe]},$$scope:{ctx:e}}}),G.$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(),Z(c.$$.fragment),p=g(),h=m("br"),$=g(),Z(x.$$.fragment),y=g(),k=m("div"),j=m("label"),j.textContent="Vorhandene Module",q=g(),C=m("input"),N=g(),E=m("div"),oe.block.c(),B=g(),Z(I.$$.fragment),O=g(),_=m("div"),L=m("h1"),L.textContent="Wochentage",D=g(),P=m("p"),P.textContent="Wählen Sie die Tage, an denen die Vorlage angezeigt werden soll.",W=g(),T=m("div");for(let e=0;e<se.length;e+=1)se[e].c();A=g(),F=m("div"),Z(G.$$.fragment),v(t,"class","newLayout"),v(j,"for","moduleSearch"),v(j,"id","textModule"),v(j,"class","svelte-19uu6ji"),v(C,"id","moduleSearch"),v(C,"type","search"),v(C,"placeholder","suche..."),v(C,"class","search_bar svelte-19uu6ji"),v(k,"class","module svelte-19uu6ji"),v(E,"class","moduleCards svelte-19uu6ji"),v(T,"class","wochentage svelte-19uu6ji"),v(F,"class","saveBtnDiv svelte-19uu6ji"),v(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),Q(c,o,null),a(o,p),a(o,h),a(o,$),Q(x,o,null),a(o,y),a(o,k),a(k,j),a(k,q),a(k,C),w(C,e[3]),a(o,N),a(o,E),oe.block.m(E,oe.anchor=null),oe.mount=()=>E,oe.anchor=null,a(o,B),Q(I,o,null),a(o,O),a(o,_),a(_,L),a(_,D),a(_,P),a(_,W),a(_,T);for(let e=0;e<se.length;e+=1)se[e].m(T,null);a(o,A),a(o,F),Q(G,F,null),J=!0,K||(ee=[b(C,"input",e[14]),b(C,"input",e[15])],K=!0)},p(t,n){e=t;const o={};if(!r&&2&n&&(r=!0,o.value=e[1],z((()=>r=!1))),c.$set(o),8&n&&w(C,e[3]),oe.ctx=e,1&n&&M!==(M=e[0])&&X(M,oe)||H(oe,e,n),4&n){let t;for(ie=e[2],t=0;t<ie.length;t+=1){const o=pe(e,ie,t);se[t]?se[t].p(o,n):(se[t]=je(o),se[t].c(),se[t].m(T,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}),G.$set(i)},i(e){J||(V(c.$$.fragment,e),V(x.$$.fragment,e),V(oe.block),V(I.$$.fragment,e),V(G.$$.fragment,e),J=!0)},o(e){U(c.$$.fragment,e),U(x.$$.fragment,e);for(let e=0;e<3;e+=1){U(oe.blocks[e])}U(I.$$.fragment,e),U(G.$$.fragment,e),J=!1},d(e){e&&d(t),e&&d(n),e&&d(o),Y(c),Y(x),oe.block.d(),oe.token=null,oe=null,Y(I),f(se,e),Y(G),K=!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=he(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=$()},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],G(),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=[],$=new Map,b=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()),$.set(c,g[p]=r),c in h&&b.set(c,Math.abs(p-h[c]))}const v=new Set,x=new Set;function w(e){V(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--):$.has(i)?!l.has(o)||v.has(o)?w(t):x.has(i)?f--:b.get(o)>b.get(i)?(x.add(o),w(t)):(v.add(i),f--):(r(n,l),f--)}for(;f--;){const t=e[f];$.has(t.key)||r(t,l)}for(;m;)w(g[m-1]);return g}(o,n,l,1,e,s,i,t.parentNode,K,ye,t,he),J())},i(e){if(!n){for(let e=0;e<s.length;e+=1)V(o[e]);n=!0}},o(e){for(let e=0;e<o.length;e+=1)U(o[e]);n=!1},d(e){for(let t=0;t<o.length;t+=1)o[t].d(e);e&&d(t)}}}function xe(e){let t,n,o=e[24].isSelected?"deselect":"select";return{c(){t=m("span"),n=h(o),v(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 we(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:[xe]},$$scope:{ctx:e}}}),o.$on("click",(function(){return e[16](e[26])})),{c(){t=h(l),n=g(),Z(o.$$.fragment),i=g()},m(e,l){u(e,t,l),u(e,n,l),Q(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||(V(o.$$.fragment,e),s=!0)},o(e){U(o.$$.fragment,e),s=!1},d(e){e&&d(t),e&&d(n),Y(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:[we]},$$scope:{ctx:t}}}),{key:e,first:null,c(){n=$(),Z(o.$$.fragment),this.first=n},m(e,t){u(e,n,t),Q(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||(V(o.$$.fragment,e),i=!0)},o(e){U(o.$$.fragment,e),i=!1},d(e){e&&d(n),Y(o,e)}}}function ke(e){return{c:o,m:o,p:o,i:o,o:o,d:o}}function je(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(),v(t,"type","checkbox"),y(t,"cursor","pointer"),k(i,"checked",e[20].status),v(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=b(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&&k(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 Ne(e){let t,n,o={ctx:e,current:null,token:null,hasCatch:!1,pending:Ce,then:$e,catch:ge,value:19,blocks:[,,,]};return X(e[10](),o),{c(){t=m("div"),o.block.c(),v(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]){H(o,e=t,n)},i(e){n||(V(o.block),n=!0)},o(e){for(let e=0;e<3;e+=1){U(o.blocks[e])}n=!1},d(e){e&&d(t),o.block.d(),o.token=null,o=null}}}function Ee(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 Se extends te{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)),ee(this,e,Ee,Ne,r,{settings:12})}}function Me(e,t,n){const o=e.slice();return o[27]=t[n],o}function Be(e){let t,n,o,i,s,c,r,f,p,h,$,x,w,y,k,j,q,C,N,E,S,M,B,I,O,_,L,z,D;const P=[Oe,Ie],W=[];function T(e,t){return e[1]?0:1}c=T(e),r=W[c]=P[c](e);let A=e[1]&&_e(e);const F=[ze,Le],X=[];function H(e,t){return e[2]?0:1}y=H(e),k=X[y]=F[y](e);let K=e[2]&&De(e);const R=[Te,We],ee=[];function te(e,t){return e[3]?0:1}M=te(e),B=ee[M]=R[M](e);let ne=e[3]&&Ae(e);return _=new e[8]({props:{filled:!0,style:"margin-top: 0.8em",$$slots:{default:[Je]},$$scope:{ctx:e}}}),_.$on("click",e[10]),{c(){t=m("div"),n=m("div"),o=m("div"),i=m("h4"),i.textContent="Mein Konto",s=g(),r.c(),f=g(),A&&A.c(),p=g(),h=m("div"),$=m("div"),x=m("h4"),x.textContent="Benachrichtigungen",w=g(),k.c(),j=g(),K&&K.c(),q=g(),C=m("div"),N=m("div"),E=m("h4"),E.textContent="Layout",S=g(),B.c(),I=g(),ne&&ne.c(),O=g(),Z(_.$$.fragment),v(o,"class","menuItem svelte-mqxijb"),v(n,"class","settingMenuItem svelte-mqxijb"),v($,"class","menuItem svelte-mqxijb"),v(h,"class","settingMenuItem svelte-mqxijb"),v(N,"class","menuItem svelte-mqxijb"),v(C,"class","settingMenuItem svelte-mqxijb"),v(t,"class","dropDownMenus svelte-mqxijb")},m(l,r){u(l,t,r),a(t,n),a(n,o),a(o,i),a(o,s),W[c].m(o,null),a(n,f),A&&A.m(n,null),a(t,p),a(t,h),a(h,$),a($,x),a($,w),X[y].m($,null),a(h,j),K&&K.m(h,null),a(t,q),a(t,C),a(C,N),a(N,E),a(N,S),ee[M].m(N,null),a(C,I),ne&&ne.m(C,null),u(l,O,r),Q(_,l,r),L=!0,z||(D=[b(o,"click",e[11]),b($,"click",e[17]),b(N,"click",e[21])],z=!0)},p(e,t){let i=c;c=T(e),c!==i&&(G(),U(W[i],1,1,(()=>{W[i]=null})),J(),r=W[c],r||(r=W[c]=P[c](e),r.c()),V(r,1),r.m(o,null)),e[1]?A?A.p(e,t):(A=_e(e),A.c(),A.m(n,null)):A&&(A.d(1),A=null);let s=y;y=H(e),y!==s&&(G(),U(X[s],1,1,(()=>{X[s]=null})),J(),k=X[y],k||(k=X[y]=F[y](e),k.c()),V(k,1),k.m($,null)),e[2]?K?(K.p(e,t),4&t&&V(K,1)):(K=De(e),K.c(),V(K,1),K.m(h,null)):K&&(G(),U(K,1,1,(()=>{K=null})),J());let l=M;M=te(e),M!==l&&(G(),U(ee[l],1,1,(()=>{ee[l]=null})),J(),B=ee[M],B||(B=ee[M]=R[M](e),B.c()),V(B,1),B.m(N,null)),e[3]?ne?(ne.p(e,t),8&t&&V(ne,1)):(ne=Ae(e),ne.c(),V(ne,1),ne.m(C,null)):ne&&(G(),U(ne,1,1,(()=>{ne=null})),J());const a={};1073741824&t&&(a.$$scope={dirty:t,ctx:e}),_.$set(a)},i(e){L||(V(r),V(k),V(K),V(B),V(ne),V(_.$$.fragment,e),L=!0)},o(e){U(r),U(k),U(K),U(B),U(ne),U(_.$$.fragment,e),L=!1},d(e){e&&d(t),W[c].d(),A&&A.d(),X[y].d(),K&&K.d(),ee[M].d(),ne&&ne.d(),e&&d(O),Y(_,e),z=!1,l(D)}}}function Ie(e){let t,n;return t=new ce({props:{size:"20",class:"ml accordion-chevron"}}),{c(){Z(t.$$.fragment)},m(e,o){Q(t,e,o),n=!0},i(e){n||(V(t.$$.fragment,e),n=!0)},o(e){U(t.$$.fragment,e),n=!1},d(e){Y(t,e)}}}function Oe(e){let t,n;return t=new ie({props:{size:"20",class:"ml accordion-chevron"}}),{c(){Z(t.$$.fragment)},m(e,o){Q(t,e,o),n=!0},i(e){n||(V(t.$$.fragment,e),n=!0)},o(e){U(t.$$.fragment,e),n=!1},d(e){Y(t,e)}}}function _e(e){let t,n,o,i,s,c,r,f,p,h,$,x,k,j,q,C,N,E,S,M,B,I,O,_;return{c(){t=m("div"),n=m("form"),o=m("label"),o.textContent="Berufsbezeichnung",i=g(),s=m("input"),c=g(),r=m("div"),f=m("input"),p=g(),h=m("label"),h.textContent="Meine Berufsbezeichnung in meinem Profil anzeigen.",$=g(),x=m("label"),x.textContent="E-Mail",k=g(),j=m("input"),q=g(),C=m("label"),C.textContent="Vorname",N=g(),E=m("input"),S=g(),M=m("label"),M.textContent="Nachname",B=g(),I=m("input"),v(o,"class","accountLabel svelte-mqxijb"),v(o,"for","berufsbezeichnung"),v(s,"type","text"),v(s,"id","berufsbezeichnung"),v(s,"name","Berufsbezeichnung"),v(s,"class","accountInput svelte-mqxijb"),v(s,"placeholder","Berufsbezeichnung"),v(f,"type","checkbox"),v(f,"id","showJob"),y(f,"cursor","pointer"),v(f,"name","Berufsbezeichnung"),v(h,"for","showJob"),v(r,"class","checkbox svelte-mqxijb"),v(x,"class","accountLabel svelte-mqxijb"),v(x,"for","changeEmailID"),v(j,"class","accountInput svelte-mqxijb"),v(j,"type","text"),v(j,"id","changeEmailID"),v(j,"name","Email"),v(j,"placeholder","Email"),j.disabled=!0,v(C,"class","accountLabel svelte-mqxijb"),v(C,"for","changeFirstName"),v(E,"class","accountInput svelte-mqxijb"),v(E,"type","text"),v(E,"id","changeFirstName"),v(E,"name","FirstName"),v(E,"placeholder","Vorname"),v(M,"class","accountLabel svelte-mqxijb"),v(M,"for","changeLastName"),v(I,"class","accountInput svelte-mqxijb"),v(I,"type","text"),v(I,"id","changeLastName"),v(I,"name","LastName"),v(I,"placeholder","Nachname"),v(n,"class","form-setting svelte-mqxijb")},m(l,d){u(l,t,d),a(t,n),a(n,o),a(n,i),a(n,s),w(s,e[0].jobDescription),a(n,c),a(n,r),a(r,f),f.checked=e[0].setting.showJobDescription,a(r,p),a(r,h),a(n,$),a(n,x),a(n,k),a(n,j),w(j,e[0].email),a(n,q),a(n,C),a(n,N),a(n,E),w(E,e[0].firstName),a(n,S),a(n,M),a(n,B),a(n,I),w(I,e[0].lastName),O||(_=[b(s,"input",e[12]),b(f,"change",e[13]),b(j,"input",e[14]),b(E,"input",e[15]),b(I,"input",e[16])],O=!0)},p(e,t){1&t&&s.value!==e[0].jobDescription&&w(s,e[0].jobDescription),1&t&&(f.checked=e[0].setting.showJobDescription),1&t&&j.value!==e[0].email&&w(j,e[0].email),1&t&&E.value!==e[0].firstName&&w(E,e[0].firstName),1&t&&I.value!==e[0].lastName&&w(I,e[0].lastName)},d(e){e&&d(t),O=!1,l(_)}}}function Le(e){let t,n;return t=new ce({props:{size:"20",class:"ml accordion-chevron"}}),{c(){Z(t.$$.fragment)},m(e,o){Q(t,e,o),n=!0},i(e){n||(V(t.$$.fragment,e),n=!0)},o(e){U(t.$$.fragment,e),n=!1},d(e){Y(t,e)}}}function ze(e){let t,n;return t=new ie({props:{size:"20",class:"ml accordion-chevron"}}),{c(){Z(t.$$.fragment)},m(e,o){Q(t,e,o),n=!0},i(e){n||(V(t.$$.fragment,e),n=!0)},o(e){U(t.$$.fragment,e),n=!1},d(e){Y(t,e)}}}function De(e){let t,n,o,i,s,l,c,r,p,h,$,b,x,w,y,k,j,q,C,N,E,M,B,I,O,_,L,D;function P(t){e[18](t)}let W={class:"switchInput"};function T(t){e[19](t)}void 0!==e[0].setting.notificationActivated&&(W.checked=e[0].setting.notificationActivated),l=new me({props:W}),S.push((()=>R(l,"checked",P)));let A={class:"switchInput"};function F(t){e[20](t)}void 0!==e[0].setting.showNotifications&&(A.checked=e[0].setting.showNotifications),b=new me({props:A}),S.push((()=>R(b,"checked",T)));let G={class:"switchInput"};void 0!==e[0].setting.notificationToMail&&(G.checked=e[0].setting.notificationToMail),N=new me({props:G}),S.push((()=>R(N,"checked",F)));let J=e[5],X=[];for(let t=0;t<J.length;t+=1)X[t]=Pe(Me(e,J,t));return{c(){t=m("div"),n=m("form"),o=m("div"),i=m("p"),i.textContent="Benachrichtigungen aktivieren",s=g(),Z(l.$$.fragment),r=g(),p=m("div"),h=m("p"),h.textContent="Ungelesene Nachricht aktivieren",$=g(),Z(b.$$.fragment),w=g(),y=m("p"),y.textContent="Zeigt einen roten Kreis auf der Glocke an, wenn Sie ungelesene Nachrichten\n haben.",k=g(),j=m("div"),q=m("p"),q.textContent="Benachrichtigungen an E-Mail senden",C=g(),Z(N.$$.fragment),M=g(),B=m("div"),I=m("p"),I.textContent="Arten von Benachrichtigungen",O=g(),_=m("p"),_.textContent="Wählen Sie aus, welche Arten von Benachrichtigungen Sie sehen\n möchten.",L=g();for(let e=0;e<X.length;e+=1)X[e].c();v(i,"class","f-bold svelte-mqxijb"),v(o,"class","flex-selection svelte-mqxijb"),v(h,"class","f-bold svelte-mqxijb"),v(p,"class","flex-selection svelte-mqxijb"),v(j,"class","flex-selection svelte-mqxijb"),v(I,"class","f-bold svelte-mqxijb"),v(n,"class","form-setting svelte-mqxijb")},m(e,c){u(e,t,c),a(t,n),a(n,o),a(o,i),a(o,s),Q(l,o,null),a(n,r),a(n,p),a(p,h),a(p,$),Q(b,p,null),a(n,w),a(n,y),a(n,k),a(n,j),a(j,q),a(j,C),Q(N,j,null),a(n,M),a(n,B),a(B,I),a(B,O),a(B,_),a(B,L);for(let e=0;e<X.length;e+=1)X[e].m(B,null);D=!0},p(e,t){const n={};!c&&1&t&&(c=!0,n.checked=e[0].setting.notificationActivated,z((()=>c=!1))),l.$set(n);const o={};!x&&1&t&&(x=!0,o.checked=e[0].setting.showNotifications,z((()=>x=!1))),b.$set(o);const i={};if(!E&&1&t&&(E=!0,i.checked=e[0].setting.notificationToMail,z((()=>E=!1))),N.$set(i),545&t){let n;for(J=e[5],n=0;n<J.length;n+=1){const o=Me(e,J,n);X[n]?X[n].p(o,t):(X[n]=Pe(o),X[n].c(),X[n].m(B,null))}for(;n<X.length;n+=1)X[n].d(1);X.length=J.length}},i(e){D||(V(l.$$.fragment,e),V(b.$$.fragment,e),V(N.$$.fragment,e),D=!0)},o(e){U(l.$$.fragment,e),U(b.$$.fragment,e),U(N.$$.fragment,e),D=!1},d(e){e&&d(t),Y(l),Y(b),Y(N),f(X,e)}}}function Pe(e){let t,n,o,i,s,l,r,f,p,$,w,y=e[27]+"";return{c(){t=m("div"),n=m("input"),s=g(),l=m("label"),r=h(y),p=g(),n.checked=o=e[0].setting.typesOfNotification.includes(e[27]),v(n,"type","checkbox"),v(n,"id",i=e[27]),v(n,"class","svelte-mqxijb"),v(l,"for",f=e[27])},m(o,i){u(o,t,i),a(t,n),a(t,s),a(t,l),a(l,r),a(t,p),$||(w=b(n,"change",(function(){c(e[9](e[27]))&&e[9](e[27]).apply(this,arguments)})),$=!0)},p(t,s){e=t,33&s&&o!==(o=e[0].setting.typesOfNotification.includes(e[27]))&&(n.checked=o),32&s&&i!==(i=e[27])&&v(n,"id",i),32&s&&y!==(y=e[27]+"")&&x(r,y),32&s&&f!==(f=e[27])&&v(l,"for",f)},d(e){e&&d(t),$=!1,w()}}}function We(e){let t,n;return t=new ce({props:{size:"20",class:"ml accordion-chevron"}}),{c(){Z(t.$$.fragment)},m(e,o){Q(t,e,o),n=!0},i(e){n||(V(t.$$.fragment,e),n=!0)},o(e){U(t.$$.fragment,e),n=!1},d(e){Y(t,e)}}}function Te(e){let t,n;return t=new ie({props:{size:"20",class:"ml accordion-chevron"}}),{c(){Z(t.$$.fragment)},m(e,o){Q(t,e,o),n=!0},i(e){n||(V(t.$$.fragment,e),n=!0)},o(e){U(t.$$.fragment,e),n=!1},d(e){Y(t,e)}}}function Ae(e){let t,n,o,i,s,l,c,r,f,p,h,$,x,w;function y(t){e[24](t)}r=new ue({});let k={noClickaway:"true",$$slots:{default:[Ge,({closeCallback:e})=>({26:e}),({closeCallback:e})=>e?67108864:0]},$$scope:{ctx:e}};return void 0!==e[4]&&(k.open=e[4]),p=new e[6]({props:k}),S.push((()=>R(p,"open",y))),{c(){t=m("div"),n=m("div"),o=m("p"),o.textContent="Deine Layouts",i=g(),s=m("p"),s.textContent="Dies sind Ihre vorhandenen Vorlagen.",l=g(),c=m("button"),Z(r.$$.fragment),f=g(),Z(p.$$.fragment),v(o,"class","f-bold svelte-mqxijb"),v(c,"class","addLayout svelte-mqxijb"),v(n,"class","form-setting svelte-mqxijb")},m(d,m){u(d,t,m),a(t,n),a(n,o),a(n,i),a(n,s),a(n,l),a(n,c),Q(r,c,null),a(n,f),Q(p,n,null),$=!0,x||(w=b(c,"click",e[22]),x=!0)},p(e,t){const n={};1140850689&t&&(n.$$scope={dirty:t,ctx:e}),!h&&16&t&&(h=!0,n.open=e[4],z((()=>h=!1))),p.$set(n)},i(e){$||(V(r.$$.fragment,e),V(p.$$.fragment,e),$=!0)},o(e){U(r.$$.fragment,e),U(p.$$.fragment,e),$=!1},d(e){e&&d(t),Y(r),Y(p),x=!1,w()}}}function Fe(e){let t,n,o;function i(t){e[23](t)}let s={};return void 0!==e[0]&&(s.settings=e[0]),t=new Se({props:s}),S.push((()=>R(t,"settings",i))),{c(){Z(t.$$.fragment)},m(e,n){Q(t,e,n),o=!0},p(e,o){const i={};!n&&1&o&&(n=!0,i.settings=e[0],z((()=>n=!1))),t.$set(i)},i(e){o||(V(t.$$.fragment,e),o=!0)},o(e){U(t.$$.fragment,e),o=!1},d(e){Y(t,e)}}}function Ge(e){let t,n,o;return n=new e[7]({props:{constrainWidth:!0,closeCallback:e[26],class:"layout",style:"min-width: 37em; max-height: 32em; overflow: hidden;",$$slots:{default:[Fe]},$$scope:{ctx:e}}}),{c(){t=m("div"),Z(n.$$.fragment)},m(e,i){u(e,t,i),Q(n,t,null),o=!0},p(e,t){const o={};67108864&t&&(o.closeCallback=e[26]),1073741825&t&&(o.$$scope={dirty:t,ctx:e}),n.$set(o)},i(e){o||(V(n.$$.fragment,e),o=!0)},o(e){U(n.$$.fragment,e),o=!1},d(e){e&&d(t),Y(n)}}}function Je(e){let t;return{c(){t=h("Speichern")},m(e,n){u(e,t,n)},d(e){e&&d(t)}}}function Ve(e){let t,n,o=e[0]&&Be(e);return{c(){o&&o.c(),t=$()},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&&V(o,1)):(o=Be(e),o.c(),V(o,1),o.m(t.parentNode,t)):o&&(G(),U(o,1,1,(()=>{o=null})),J())},i(e){n||(V(o),n=!0)},o(e){U(o),n=!1},d(e){o&&o.d(e),e&&d(t)}}}function Ue(e,o,i){const{Modal:s,Dialog:l,Button:c}=t;let{settings:r}=o,a=!1,u=!1,d=!1,f=!1,m=[];N((async()=>{i(5,m=(await n.getNotificationTypes()).filter((({active:e})=>e)).map((({type:e})=>e))),await r,await(_(),I)}));return e.$$set=e=>{"settings"in e&&i(0,r=e.settings)},[r,a,u,d,f,m,s,l,c,function(e){const t=r.setting.typesOfNotification.findIndex((t=>t===e));t>-1?r.setting.typesOfNotification.splice(t,1):(r.setting.typesOfNotification.unshift(e),i(0,r))},function(){!async function(){try{await n.saveUserSettings(r)}catch(e){console.log("settings could not be saved"),console.error(e)}}()},()=>i(1,a=!a),function(){r.jobDescription=this.value,i(0,r)},function(){r.setting.showJobDescription=this.checked,i(0,r)},function(){r.email=this.value,i(0,r)},function(){r.firstName=this.value,i(0,r)},function(){r.lastName=this.value,i(0,r)},()=>i(2,u=!u),function(t){e.$$.not_equal(r.setting.notificationActivated,t)&&(r.setting.notificationActivated=t,i(0,r))},function(t){e.$$.not_equal(r.setting.showNotifications,t)&&(r.setting.showNotifications=t,i(0,r))},function(t){e.$$.not_equal(r.setting.notificationToMail,t)&&(r.setting.notificationToMail=t,i(0,r))},()=>i(3,d=!d),()=>i(4,f=!0),function(e){r=e,i(0,r)},function(e){f=e,i(4,f)}]}class Xe extends te{constructor(e){var t;super(),document.getElementById("svelte-mqxijb-style")||((t=m("style")).id="svelte-mqxijb-style",t.textContent="#accordion-chevron.svelte-mqxijb.svelte-mqxijb{transform:rotate(-90deg)}.menuItem.svelte-mqxijb.svelte-mqxijb{display:flex;flex-direction:row;justify-content:space-between;padding-left:3%;padding-right:3%;align-items:center;cursor:pointer}.settingMenuItem.svelte-mqxijb.svelte-mqxijb{align-self:center;background-color:#dedede;border:1px solid black;border-radius:10px;margin-bottom:20px}.dropDownMenus.svelte-mqxijb.svelte-mqxijb{position:relative;overflow-y:auto;margin-top:1.5em;max-height:calc(100% - 8.5em)}.accountLabel.svelte-mqxijb.svelte-mqxijb{font-weight:bold;display:block;margin-bottom:0.6em;margin-top:0.8em}.checkbox.svelte-mqxijb.svelte-mqxijb{margin-top:0.2em}.accountInput.svelte-mqxijb.svelte-mqxijb{font-size:15px;width:300px;height:32px;border:0;border-radius:6px;padding-left:0.3em}input[disabled].svelte-mqxijb+label.svelte-mqxijb{color:#404040}.form-setting.svelte-mqxijb.svelte-mqxijb{padding:0 3em;margin-bottom:2em}.form-setting.svelte-mqxijb .flex-selection.svelte-mqxijb{display:flex;justify-content:space-between;align-items:center;padding-right:0 3em 1em 0;font-weight:bold}.f-bold.svelte-mqxijb.svelte-mqxijb{font-weight:bold}.addLayout.svelte-mqxijb.svelte-mqxijb{border-radius:23px;cursor:pointer;width:2.8em;height:2.8em;background-color:white;border-color:#9ABCD6}",a(document.head,t)),ee(this,e,Ue,Ve,r,{settings:0})}}function He(e){let t,n,o;return n=new e[2]({props:{constrainWidth:!0,closeCallback:function(){return e[3](e[5])},class:"modal_class",$$slots:{default:[Ke]},$$scope:{ctx:e}}}),{c(){t=m("div"),Z(n.$$.fragment),v(t,"class","setting--modal svelte-1gwh8il")},m(e,i){u(e,t,i),Q(n,t,null),o=!0},p(t,o){e=t;const i={};65&o&&(i.$$scope={dirty:o,ctx:e}),n.$set(i)},i(e){o||(V(n.$$.fragment,e),o=!0)},o(e){U(n.$$.fragment,e),o=!1},d(e){e&&d(t),Y(n)}}}function Ke(e){let t,n,o,i,s,l;return s=new Xe({props:{settings:e[0]}}),{c(){t=m("div"),t.innerHTML="<h2>Einstellungen</h2>",n=g(),o=m("hr"),i=g(),Z(s.$$.fragment)},m(e,c){u(e,t,c),u(e,n,c),u(e,o,c),u(e,i,c),Q(s,e,c),l=!0},p(e,t){const n={};1&t&&(n.settings=e[0]),s.$set(n)},i(e){l||(V(s.$$.fragment,e),l=!0)},o(e){U(s.$$.fragment,e),l=!1},d(e){e&&d(t),e&&d(n),e&&d(o),e&&d(i),Y(s,e)}}}function Re(e){let t,n,o=e[0]&&He(e);return{c(){o&&o.c(),t=$()},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&&V(o,1)):(o=He(e),o.c(),V(o,1),o.m(t.parentNode,t)):o&&(G(),U(o,1,1,(()=>{o=null})),J())},i(e){n||(V(o),n=!0)},o(e){U(o),n=!1},d(e){o&&o.d(e),e&&d(t)}}}function Ze(e){let t,n;return t=new e[1]({props:{open:"true",noClickaway:"true",$$slots:{default:[Re,({closeCallback:e})=>({5:e}),({closeCallback:e})=>e?32:0]},$$scope:{ctx:e}}}),{c(){Z(t.$$.fragment)},m(e,o){Q(t,e,o),n=!0},p(e,[n]){const o={};65&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i(e){n||(V(t.$$.fragment,e),n=!0)},o(e){U(t.$$.fragment,e),n=!1},d(e){Y(t,e)}}}function Qe(e,o,i){let s;const{Modal:l,Dialog:c}=t;N((function(){return n.getUserSettings().then((e=>(i(0,s=e),s)))}));return[s,l,c,e=>(window.singleSpaNavigate("/"),e())]}function Ye(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var et,tt,nt=(et=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)}))}},et(tt={exports:{}},tt.exports),tt.exports);const ot=Ye(nt)({component:class extends te{constructor(e){var t;super(),document.getElementById("svelte-1gwh8il-style")||((t=m("style")).id="svelte-1gwh8il-style",t.textContent=".setting--modal.svelte-1gwh8il .modal_class{height:80vh;min-width:70vw;overflow:hidden}",a(document.head,t)),ee(this,e,Qe,Ze,r,{})}},domElementGetter:()=>document.getElementById("view-app")}),{bootstrap:it,mount:st,unmount:lt}=ot;e({bootstrap:it,mount:st,unmount:lt})}}}));
|