3 lines
11 KiB
JavaScript
3 lines
11 KiB
JavaScript
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const r of c.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function n(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerpolicy&&(c.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?c.credentials="include":l.crossorigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(l){if(l.ep)return;l.ep=!0;const c=n(l);fetch(l.href,c)}})();function w(){}function ye(t){return t()}function me(){return Object.create(null)}function T(t){t.forEach(ye)}function ke(t){return typeof t=="function"}function D(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function Ee(t){return Object.keys(t).length===0}function f(t,e){t.appendChild(e)}function E(t,e,n){t.insertBefore(e,n||null)}function C(t){t.parentNode&&t.parentNode.removeChild(t)}function Ce(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function a(t){return document.createElement(t)}function k(t){return document.createTextNode(t)}function A(){return k(" ")}function se(){return k("")}function X(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function m(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Ne(t){return Array.from(t.childNodes)}function O(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Ae(t,e,n,i){n===null?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}let B;function j(t){B=t}function Le(){if(!B)throw new Error("Function called outside component initialization");return B}function Se(t){Le().$$.on_mount.push(t)}const P=[],_e=[],V=[],pe=[],Me=Promise.resolve();let re=!1;function Ie(){re||(re=!0,Me.then(we))}function oe(t){V.push(t)}const le=new Set;let R=0;function we(){const t=B;do{for(;R<P.length;){const e=P[R];R++,j(e),Oe(e.$$)}for(j(null),P.length=0,R=0;_e.length;)_e.pop()();for(let e=0;e<V.length;e+=1){const n=V[e];le.has(n)||(le.add(n),n())}V.length=0}while(P.length);for(;pe.length;)pe.pop()();re=!1,le.clear(),j(t)}function Oe(t){if(t.fragment!==null){t.update(),T(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(oe)}}const W=new Set;let M;function Y(){M={r:0,c:[],p:M}}function Z(){M.r||T(M.c),M=M.p}function y(t,e){t&&t.i&&(W.delete(t),t.i(e))}function N(t,e,n,i){if(t&&t.o){if(W.has(t))return;W.add(t),M.c.push(()=>{W.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}function ee(t){t&&t.c()}function x(t,e,n,i){const{fragment:l,after_update:c}=t.$$;l&&l.m(e,n),i||oe(()=>{const r=t.$$.on_mount.map(ye).filter(ke);t.$$.on_destroy?t.$$.on_destroy.push(...r):T(r),t.$$.on_mount=[]}),c.forEach(oe)}function F(t,e){const n=t.$$;n.fragment!==null&&(T(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Te(t,e){t.$$.dirty[0]===-1&&(P.push(t),Ie(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function H(t,e,n,i,l,c,r,u=[-1]){const o=B;j(t);const s=t.$$={fragment:null,ctx:[],props:c,update:w,not_equal:l,bound:me(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(o?o.$$.context:[])),callbacks:me(),dirty:u,skip_bound:!1,root:e.target||o.$$.root};r&&r(s.root);let p=!1;if(s.ctx=n?n(t,e.props||{},(v,$,...h)=>{const g=h.length?h[0]:$;return s.ctx&&l(s.ctx[v],s.ctx[v]=g)&&(!s.skip_bound&&s.bound[v]&&s.bound[v](g),p&&Te(t,v)),$}):[],s.update(),p=!0,T(s.before_update),s.fragment=i?i(s.ctx):!1,e.target){if(e.hydrate){const v=Ne(e.target);s.fragment&&s.fragment.l(v),v.forEach(C)}else s.fragment&&s.fragment.c();e.intro&&y(t.$$.fragment),x(t,e.target,e.anchor,e.customElement),we()}j(o)}class q{$destroy(){F(this,1),this.$destroy=w}$on(e,n){if(!ke(n))return w;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const l=i.indexOf(n);l!==-1&&i.splice(l,1)}}$set(e){this.$$set&&!Ee(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function ze(t){let e,n,i,l,c=t[0].environmentId+"",r,u,o,s,p,v=t[0].environment.name+"",$,h,g,d,_,b=t[0].domain+"",I,ce,z,K,ue,U=t[0].urlAddress+"",te,fe,G,J,ae,Q=t[0].createdDate+"",ne,ie,de;return{c(){e=a("div"),n=a("div"),i=a("p"),l=k("Environment Id: "),r=k(c),u=A(),o=a("div"),s=a("p"),p=k("Environment: "),$=k(v),h=A(),g=a("div"),d=a("p"),_=k("Domain: "),I=k(b),ce=A(),z=a("div"),K=a("p"),ue=k("UrlAddress: "),te=k(U),fe=A(),G=a("div"),J=a("p"),ae=k("Created date: "),ne=k(Q),m(n,"class","site-data"),m(o,"class","site-data"),m(g,"class","site-data"),m(z,"class","site-data"),m(G,"class","site-data"),m(e,"class","site-item")},m(L,S){E(L,e,S),f(e,n),f(n,i),f(i,l),f(i,r),f(e,u),f(e,o),f(o,s),f(s,p),f(s,$),f(e,h),f(e,g),f(g,d),f(d,_),f(d,I),f(e,ce),f(e,z),f(z,K),f(K,ue),f(K,te),f(e,fe),f(e,G),f(G,J),f(J,ae),f(J,ne),ie||(de=[X(g,"click",t[1]("domain")),X(z,"click",t[1]("urlAddress"))],ie=!0)},p(L,[S]){S&1&&c!==(c=L[0].environmentId+"")&&O(r,c),S&1&&v!==(v=L[0].environment.name+"")&&O($,v),S&1&&b!==(b=L[0].domain+"")&&O(I,b),S&1&&U!==(U=L[0].urlAddress+"")&&O(te,U),S&1&&Q!==(Q=L[0].createdDate+"")&&O(ne,Q)},i:w,o:w,d(L){L&&C(e),ie=!1,T(de)}}}function Pe(t,e,n){let{site:i}=e;const l=()=>{};return t.$$set=c=>{"site"in c&&n(0,i=c.site)},[i,l]}class je extends q{constructor(e){super(),H(this,e,Pe,ze,D,{site:0})}}function ve(t,e,n){const i=t.slice();return i[1]=e[n],i}function Be(t){let e;return{c(){e=a("div"),e.innerHTML="<h2>The site list is empty.</h2>",m(e,"class","no-sites-diplay")},m(n,i){E(n,e,i)},p:w,i:w,o:w,d(n){n&&C(e)}}}function De(t){let e,n,i=t[0],l=[];for(let r=0;r<i.length;r+=1)l[r]=he(ve(t,i,r));const c=r=>N(l[r],1,1,()=>{l[r]=null});return{c(){for(let r=0;r<l.length;r+=1)l[r].c();e=se()},m(r,u){for(let o=0;o<l.length;o+=1)l[o].m(r,u);E(r,e,u),n=!0},p(r,u){if(u&1){i=r[0];let o;for(o=0;o<i.length;o+=1){const s=ve(r,i,o);l[o]?(l[o].p(s,u),y(l[o],1)):(l[o]=he(s),l[o].c(),y(l[o],1),l[o].m(e.parentNode,e))}for(Y(),o=i.length;o<l.length;o+=1)c(o);Z()}},i(r){if(!n){for(let u=0;u<i.length;u+=1)y(l[u]);n=!0}},o(r){l=l.filter(Boolean);for(let u=0;u<l.length;u+=1)N(l[u]);n=!1},d(r){Ce(l,r),r&&C(e)}}}function he(t){let e,n;return e=new je({props:{site:{...t[1]}}}),{c(){ee(e.$$.fragment)},m(i,l){x(e,i,l),n=!0},p(i,l){const c={};l&1&&(c.site={...i[1]}),e.$set(c)},i(i){n||(y(e.$$.fragment,i),n=!0)},o(i){N(e.$$.fragment,i),n=!1},d(i){F(e,i)}}}function xe(t){let e,n,i,l;const c=[De,Be],r=[];function u(o,s){return o[0]&&o[0].length&&o[0].length>0?0:1}return n=u(t),i=r[n]=c[n](t),{c(){e=a("div"),i.c(),m(e,"class","site-manager-container")},m(o,s){E(o,e,s),r[n].m(e,null),l=!0},p(o,[s]){let p=n;n=u(o),n===p?r[n].p(o,s):(Y(),N(r[p],1,1,()=>{r[p]=null}),Z(),i=r[n],i?i.p(o,s):(i=r[n]=c[n](o),i.c()),y(i,1),i.m(e,null))},i(o){l||(y(i),l=!0)},o(o){N(i),l=!1},d(o){o&&C(e),r[n].d()}}}function Fe(t,e,n){let{sites:i}=e;return t.$$set=l=>{"sites"in l&&n(0,i=l.sites)},[i]}class He extends q{constructor(e){super(),H(this,e,Fe,xe,D,{sites:0})}}function qe(t){let e,n,i,l,c,r=t[0].name+"",u,o,s,p,v,$,h,g;return h=new He({props:{sites:t[0].sites}}),{c(){e=a("div"),n=a("div"),i=a("div"),i.textContent="Name",l=A(),c=a("div"),u=k(r),o=A(),s=a("div"),p=a("div"),p.textContent="Sites",v=A(),$=a("div"),ee(h.$$.fragment),m(i,"class","data-title"),m(c,"class","actual-data"),m(n,"class","environment-data"),m(p,"class","data-title"),m($,"class","actual-data"),m(s,"class","environment-data"),m(e,"class","environment-item")},m(d,_){E(d,e,_),f(e,n),f(n,i),f(n,l),f(n,c),f(c,u),f(e,o),f(e,s),f(s,p),f(s,v),f(s,$),x(h,$,null),g=!0},p(d,[_]){(!g||_&1)&&r!==(r=d[0].name+"")&&O(u,r);const b={};_&1&&(b.sites=d[0].sites),h.$set(b)},i(d){g||(y(h.$$.fragment,d),g=!0)},o(d){N(h.$$.fragment,d),g=!1},d(d){d&&C(e),F(h)}}}function Ke(t,e,n){let{environment:i}=e;return t.$$set=l=>{"environment"in l&&n(0,i=l.environment)},[i]}class Ue extends q{constructor(e){super(),H(this,e,Ke,qe,D,{environment:0})}}function ge(t,e,n){const i=t.slice();return i[1]=e[n],i}function Ge(t){let e;return{c(){e=a("div"),e.innerHTML="<h4>The environment list is empty.</h4>",m(e,"class","no-environments-diplay svelte-877bn7")},m(n,i){E(n,e,i)},p:w,i:w,o:w,d(n){n&&C(e)}}}function Je(t){let e,n,i=t[0],l=[];for(let r=0;r<i.length;r+=1)l[r]=$e(ge(t,i,r));const c=r=>N(l[r],1,1,()=>{l[r]=null});return{c(){e=a("div");for(let r=0;r<l.length;r+=1)l[r].c();m(e,"class","environment-manager-container svelte-877bn7")},m(r,u){E(r,e,u);for(let o=0;o<l.length;o+=1)l[o].m(e,null);n=!0},p(r,u){if(u&1){i=r[0];let o;for(o=0;o<i.length;o+=1){const s=ge(r,i,o);l[o]?(l[o].p(s,u),y(l[o],1)):(l[o]=$e(s),l[o].c(),y(l[o],1),l[o].m(e,null))}for(Y(),o=i.length;o<l.length;o+=1)c(o);Z()}},i(r){if(!n){for(let u=0;u<i.length;u+=1)y(l[u]);n=!0}},o(r){l=l.filter(Boolean);for(let u=0;u<l.length;u+=1)N(l[u]);n=!1},d(r){r&&C(e),Ce(l,r)}}}function $e(t){let e,n;return e=new Ue({props:{environment:{...t[1]}}}),{c(){ee(e.$$.fragment)},m(i,l){x(e,i,l),n=!0},p(i,l){const c={};l&1&&(c.environment={...i[1]}),e.$set(c)},i(i){n||(y(e.$$.fragment,i),n=!0)},o(i){N(e.$$.fragment,i),n=!1},d(i){F(e,i)}}}function Qe(t){let e,n,i,l;const c=[Je,Ge],r=[];function u(o,s){return o[0]&&o[0].length&&o[0].length>0?0:1}return e=u(t),n=r[e]=c[e](t),{c(){n.c(),i=se()},m(o,s){r[e].m(o,s),E(o,i,s),l=!0},p(o,[s]){let p=e;e=u(o),e===p?r[e].p(o,s):(Y(),N(r[p],1,1,()=>{r[p]=null}),Z(),n=r[e],n?n.p(o,s):(n=r[e]=c[e](o),n.c()),y(n,1),n.m(i.parentNode,i))},i(o){l||(y(n),l=!0)},o(o){N(n),l=!1},d(o){r[e].d(o),o&&C(i)}}}function Re(t,e,n){let{environments:i}=e;return t.$$set=l=>{"environments"in l&&n(0,i=l.environments)},[i]}class Ve extends q{constructor(e){super(),H(this,e,Re,Qe,D,{environments:0})}}function be(t){let e,n,i,l,c;return{c(){e=a("div"),n=a("nav"),i=a("button"),i.innerHTML="<i>close</i>",m(i,"data-ui","#modal"),m(i,"class","square round flat close-button"),m(n,"class","right-align"),m(e,"class","modal")},m(r,u){E(r,e,u),f(e,n),f(n,i),l||(c=X(i,"click",t[3]),l=!0)},p:w,d(r){r&&C(e),l=!1,c()}}}function We(t){let e,n,i,l,c,r,u,o,s,p,v,$,h,g;s=new Ve({props:{environments:t[0]}});let d=t[1]&&be(t);return{c(){e=a("div"),n=a("div"),i=a("div"),l=a("button"),l.textContent="Create Environment",c=A(),r=a("button"),r.textContent="Site Configuration",u=A(),o=a("div"),ee(s.$$.fragment),p=A(),d&&d.c(),v=se(),m(l,"class","env-button primary svelte-1pmz6nl"),m(r,"class","env-button primary svelte-1pmz6nl"),m(i,"class","actions-menu svelte-1pmz6nl"),m(n,"class","col"),m(o,"class","col"),Ae(o,"width","100%"),m(e,"class","page-container svelte-1pmz6nl")},m(_,b){E(_,e,b),f(e,n),f(n,i),f(i,l),f(i,c),f(i,r),f(e,u),f(e,o),x(s,o,null),E(_,p,b),d&&d.m(_,b),E(_,v,b),$=!0,h||(g=X(l,"click",t[2]),h=!0)},p(_,[b]){const I={};b&1&&(I.environments=_[0]),s.$set(I),_[1]?d?d.p(_,b):(d=be(_),d.c(),d.m(v.parentNode,v)):d&&(d.d(1),d=null)},i(_){$||(y(s.$$.fragment,_),$=!0)},o(_){N(s.$$.fragment,_),$=!1},d(_){_&&C(e),F(s),_&&C(p),d&&d.d(_),_&&C(v),h=!1,g()}}}function Xe(t,e,n){let{environments:i}=e,l=!1;const c=()=>{n(1,l=!0)},r=()=>{n(1,l=!1)};return Se(()=>{(!i||typeof i.length!==Number)&&n(0,i=[])}),t.$$set=u=>{"environments"in u&&n(0,i=u.environments)},[i,l,c,r]}class Ye extends q{constructor(e){super(),H(this,e,Xe,We,D,{environments:0})}}new Ye({target:document.getElementById("app")});
|
|
//# sourceMappingURL=envs.js.map
|