@duplicati/ngclient 0.0.24 → 0.0.26
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/chunk-26IRMVIY.js +2 -0
- package/chunk-2PUTRWRI.js +1 -0
- package/chunk-2SYB6ABM.js +1 -0
- package/chunk-47O5BYLZ.js +1 -0
- package/chunk-4Y76KESB.js +2 -0
- package/chunk-5X5UJ7CP.js +1 -0
- package/chunk-6TFXXYVK.js +1 -0
- package/chunk-7O44NQO3.js +1 -0
- package/{chunk-MJCUB3L3.js → chunk-AIQQJSGP.js} +1 -1
- package/chunk-B7SRENJI.js +1 -0
- package/chunk-BR45PK72.js +1 -0
- package/{chunk-NAZLO3UY.js → chunk-BVTTY2FQ.js} +1 -1
- package/chunk-C4S5PKAB.js +1 -0
- package/chunk-C5O62M3L.js +6 -0
- package/chunk-CGWELGPM.js +1 -0
- package/{chunk-3XQGPHYU.js → chunk-D2HTMQIW.js} +1 -1
- package/chunk-DESW2TCQ.js +1 -0
- package/chunk-DOGZZDWG.js +1 -0
- package/chunk-EPVXOSHI.js +1 -0
- package/chunk-FAAAWY76.js +1 -0
- package/chunk-FWNXTY54.js +1 -0
- package/chunk-GAJ43GZE.js +1 -0
- package/chunk-GWGOC52B.js +1 -0
- package/chunk-HH2EA6LF.js +1 -0
- package/chunk-KZLQWBL3.js +1 -0
- package/chunk-L7M2MTRL.js +1 -0
- package/chunk-LUAN4O53.js +1 -0
- package/chunk-MFLGWG77.js +1 -0
- package/chunk-MHCUWVA2.js +1 -0
- package/chunk-MSQ7LZTH.js +1 -0
- package/chunk-PD6257G7.js +1 -0
- package/chunk-QL753AWG.js +1 -0
- package/chunk-QNP3LI3Y.js +1 -0
- package/chunk-RJDP2FPE.js +7 -0
- package/chunk-RMZR2OAY.js +1 -0
- package/chunk-SDVRKDZS.js +1 -0
- package/{chunk-Z3RCJ5NZ.js → chunk-T6ENXWPD.js} +1 -1
- package/chunk-TLFDZKKI.js +1 -0
- package/chunk-UGZKHGQT.js +1 -0
- package/chunk-UMY3Y7LR.js +1 -0
- package/chunk-UPIWGO32.js +1 -0
- package/chunk-UVZO552H.js +1 -0
- package/chunk-VAAI6C2V.js +1 -0
- package/chunk-VJACGH6X.js +1 -0
- package/chunk-WHYVZMAC.js +1 -0
- package/chunk-WV3AOW4R.js +1 -0
- package/chunk-ZAREJJZA.js +1 -0
- package/chunk-ZVT4YXH5.js +1 -0
- package/index.html +3 -3
- package/main-HBZS5ADV.js +1 -0
- package/package.json +1 -1
- package/styles-JDUV6AV5.css +1 -0
- package/chunk-2653SOTQ.js +0 -1
- package/chunk-2EGLLTER.js +0 -1
- package/chunk-2MDIWOW5.js +0 -1
- package/chunk-3UHRO33D.js +0 -1
- package/chunk-4C6SJEAP.js +0 -1
- package/chunk-4HGECFGT.js +0 -1
- package/chunk-4JYRDCTW.js +0 -1
- package/chunk-4NLCRQLQ.js +0 -1
- package/chunk-637GTPYL.js +0 -1
- package/chunk-67JGZ4NF.js +0 -7
- package/chunk-AEQ7QJXE.js +0 -1
- package/chunk-BTF6XTSM.js +0 -1
- package/chunk-C3SI6ECZ.js +0 -1
- package/chunk-CESPRUJX.js +0 -1
- package/chunk-CUYURNCB.js +0 -1
- package/chunk-EOYIT7GV.js +0 -2
- package/chunk-GO7CLBZY.js +0 -1
- package/chunk-GTGXQQJJ.js +0 -1
- package/chunk-HJUBM7Q5.js +0 -1
- package/chunk-JE2I63Y6.js +0 -2
- package/chunk-JRKR54DW.js +0 -1
- package/chunk-KJQLPHGM.js +0 -1
- package/chunk-KV674FA2.js +0 -1
- package/chunk-NAPR7ILQ.js +0 -1
- package/chunk-NILUA3YB.js +0 -1
- package/chunk-NVZUM7FG.js +0 -1
- package/chunk-NYFN2CT6.js +0 -6
- package/chunk-OSB5J6SK.js +0 -1
- package/chunk-P6347OTT.js +0 -1
- package/chunk-RHGRQONA.js +0 -1
- package/chunk-RNJMBZB7.js +0 -1
- package/chunk-SGZGAY7X.js +0 -1
- package/chunk-SRW3NRX3.js +0 -1
- package/chunk-SRX3KYGO.js +0 -1
- package/chunk-T2ZGAXWS.js +0 -1
- package/chunk-TNE7LVPH.js +0 -1
- package/chunk-VA5L4XPW.js +0 -1
- package/chunk-VJDUCP4Z.js +0 -1
- package/chunk-VXKI3RQB.js +0 -1
- package/chunk-X2IPCPJN.js +0 -1
- package/chunk-YBWO6L26.js +0 -1
- package/chunk-ZLOKN5SO.js +0 -1
- package/main-WZ7WTPZS.js +0 -1
- package/styles-LL6J7JBI.css +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as S}from"./chunk-ZVT4YXH5.js";import{a as b}from"./chunk-BVTTY2FQ.js";import{n as k}from"./chunk-QL753AWG.js";import{c as v}from"./chunk-B7SRENJI.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import{Ab as C,E as p,Eb as y,Fb as o,Gb as r,Na as m,Ra as c,X as i,Za as g,cc as h,fb as f,lb as d,p as l,vb as u}from"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";function M(n,e){n&1&&r(0,"spk-progress-bar",0)}var a=class n{#e=i(v);#n=i(b);isLoading=g(!0);generalInfo=S(this.#n.getApiV1Acknowledgements().pipe(l(e=>e.Acknowledgements?this.#e.bypassSecurityTrustHtml(e.Acknowledgements.replace(/\r/g,`
|
|
2
|
+
`)):""),p(()=>this.isLoading.set(!1))));static \u0275fac=function(t){return new(t||n)};static \u0275cmp=f({type:n,selectors:[["app-general"]],decls:5,vars:2,consts:[[1,"indeterminate","primary"],[3,"innerHTML"]],template:function(t,s){t&1&&(d(0,M,1,0,"spk-progress-bar",0),y(1,"section")(2,"h3"),h(3,"General"),o(),r(4,"div",1),o()),t&2&&(C(s.isLoading()?0:-1),c(4),u("innerHTML",s.generalInfo(),m))},dependencies:[k],styles:["[_nghost-%COMP%]{display:block;position:relative}h3[_ngcontent-%COMP%]{font:var(--title-30)}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}"],changeDetection:0})};export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as ce}from"./chunk-TLFDZKKI.js";import{s as de}from"./chunk-6TFXXYVK.js";import{a as ae}from"./chunk-BVTTY2FQ.js";import{a as j,f as pe,k as ue,l as he,n as ge,t as me}from"./chunk-QL753AWG.js";import{ia as le}from"./chunk-DESW2TCQ.js";import{$b as Q,Ab as b,Cb as te,Db as ne,Dc as A,E as R,Eb as p,Fb as u,Fc as N,Gb as ie,Jb as K,Kb as B,Qb as M,Ra as g,Rb as h,Sb as I,Tb as y,X as L,Za as E,_a as G,ab as Z,ac as oe,bc as U,cc as C,ea as S,ec as z,fa as F,fb as W,lb as x,lc as D,mc as re,qa as $,ra as _,rc as se,v as Y,vb as q,wb as ee,xb as P}from"./chunk-RJDP2FPE.js";import{a as V,b as H}from"./chunk-7CGTOI24.js";var be=["treeContainer"],Te=["formRef"],ye=[[["label"]],[["label"]],[["input"]]],we=["label","label","input"],Ee=(i,t)=>t.id,Me=i=>({children:i,level:0}),fe=i=>({$implicit:i}),ke=(i,t)=>({children:i,level:t});function Oe(i,t){if(i&1){let e=B();p(0,"spk-button-group")(1,"button",10),M("click",function(){S(e);let s=h();return F(s.pathDiscoveryMethod.set("browse"))}),C(2," Browser path "),u(),p(3,"button",10),M("click",function(){S(e);let s=h();return F(s.pathDiscoveryMethod.set("path"))}),C(4," Manually type path "),u()()}if(i&2){let e=h();g(),P("active",e.pathDiscoveryMethod()==="browse"),g(2),P("active",e.pathDiscoveryMethod()==="path")}}function Se(i,t){i&1&&ie(0,"spk-progress-bar",6)}function Fe(i,t){i&1&&(p(0,"spk-icon",13),C(1,"folder-open"),u())}function Ne(i,t){i&1&&(p(0,"spk-icon"),C(1,"file"),u())}function We(i,t){i&1&&(p(0,"spk-icon",13),C(1,"folder"),u())}function Be(i,t){if(i&1&&x(0,Fe,2,0,"spk-icon",13)(1,Ne,2,0,"spk-icon")(2,We,2,0,"spk-icon",13),i&2){let e=h(2).$implicit;b(e.children.length?0:e.cls==="file"?1:2)}}function Ie(i,t){i&1&&(p(0,"spk-icon",13),C(1,"desktop-tower"),u())}function De(i,t){i&1&&K(0)}function Ae(i,t){if(i&1&&x(0,De,1,0,"ng-container",7),i&2){let e=h(2).$implicit,n=h().$implicit;h();let s=U(7);q("ngTemplateOutlet",s)("ngTemplateOutletContext",D(5,fe,re(2,ke,e.children,n.level+1)))}}function je(i,t){if(i&1){let e=B();p(0,"div",11,3),M("click",function(){S(e);let s=h().$implicit,o=h(2);return F(o.toggleNode(s.id,s))}),p(2,"div",12),x(3,Be,3,1)(4,Ie,2,0,"spk-icon",13),u(),p(5,"div",14),M("click",function(s){S(e);let o=h().$implicit,r=h(2);return F(r.toggleSelectedNode(s,o))}),C(6),u()(),x(7,Ae,1,7,"ng-container")}if(i&2){let e=h().$implicit,n=h(2);P("accepted",e.accepted===!0)("active",e.evalState===n.TreeEvalEnum.Included)("indeterminate",e.isIndeterminate)("open",e.children.length)("usually-hidden",e.hidden),g(3),b(e.id!=="/"?3:4),g(3),z(" ",e.text," "),g(),b(e.children.length>0?7:-1)}}function Ve(i,t){if(i&1&&x(0,je,8,13),i&2){let e=t.$implicit,n=h(2);b(e.hidden&&n._showHiddenNodes()||!e.hidden?0:-1)}}function He(i,t){if(i&1&&(p(0,"spk-list"),te(1,Ve,1,1,null,null,Ee),u()),i&2){let e=t.$implicit;ee("padding-left",e.level*.5,"rem"),g(),ne(e.children)}}function Re(i,t){i&1&&K(0)}function Le(i,t){if(i&1){let e=B();p(0,"spk-toggle",15),M("click",function(){S(e);let s=h();return F(s._showHiddenNodes.set(!s._showHiddenNodes()))}),C(1),u()}if(i&2){let e=h();P("active",e._showHiddenNodes()),g(),z(" Show hidden ",e.showFiles()?"files":"folders"," ")}}var _e=(o=>(o[o.ExcludedByParent=-2]="ExcludedByParent",o[o.Excluded=-1]="Excluded",o[o.None=0]="None",o[o.Included=1]="Included",o[o.IncludedByParent=2]="IncludedByParent",o))(_e||{}),J=class i{#t=L(ae);#r=L(ce);multiSelect=_(!1);disabled=_(!1);showFiles=_(!1);selectFiles=_(!1);accepts=_(null);startingPath=_(null);rootPath=_(void 0);backupSettings=_(null);showHiddenNodes=_(!1);includes=$();excludes=$();_showHiddenNodes=E(!1);treeContainerRef=G("treeContainer");formRef=G("formRef");pathDiscoveryMethod=E("browse");isLoading=E(!1);currentPath=E("/");#e=E(null);treeSearchQuery=E("");treeNodes=E([]);filterGroups=this.#r.filterGroups();isByBackupSettings=A(()=>this.rootPath()&&this.backupSettings()?.id&&this.backupSettings()?.time);searchableTreeNodes=A(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});TreeEvalEnum=_e;treeStructure=A(()=>{let t=this.showHiddenNodes(),e=this.currentPath().split("\0").filter(a=>a!==""&&a!=="/"),n=structuredClone(e);for(let a=0;a<n.length;a++){let m=n[a].slice(1);if(m.startsWith("{")&&m.endsWith("}")){let f=m.slice(1,-1),d=this.filterGroups?.FilterGroups[f];if(d&&d.length){let w=d.map(T=>`-${T}`);n.splice(a,1,...w)}}}let s=this.searchableTreeNodes(),o=new Map,r=this.rootPath(),v=this.accepts(),l=r?{id:r,resolvedpath:r,text:r?.replaceAll("/",""),parentPath:"",children:[],evalState:0,isIndeterminate:!1,cls:"folder"}:{id:"/",resolvedpath:"/",text:"Computer",parentPath:"",children:[],evalState:0,isIndeterminate:!1};v&&(l.accepted=!0),o.set("/",l);for(let a of s){let m=a.id.replace(r??"","").split("/").filter(Boolean),f="",d=l;for(let w of m){if(f+="/"+w,!o.has(f)){let T=a.hidden===!0&&t?0:this.#s(n,a.id,a.cls,d),k={id:a.id,isIndeterminate:this.isIndeterminate(n,a.id),evalState:T,parentPath:f,resolvedpath:a.id?.startsWith("%")?a.resolvedpath+"/":f,hidden:a.hidden,text:a.text,cls:a.cls,children:[]};v&&(k.accepted=this.matchAccepts(v,k)),o.set(f,k),d.children.push(k)}d=o.get(f)}}return[l]});#s(t,e,n,s){if(s.evalState===-1)return-2;let o=0,r=t.filter(l=>!l.startsWith("-")&&!l.startsWith("+")),v=t.filter(l=>l.startsWith("-")||l.startsWith("+"));if(r.length===0)return o;for(let l=0;l<r.length;l++){let a=r[l];if(e?.startsWith(a)){o=1;break}}if(v.length===0)return o;for(let l=0;l<v.length;l++){let a=v[l],c=a.slice(1),m=a.startsWith("-")?"exclude":"include";if(c.startsWith("/")&&c.endsWith("/")){if(n!=="folder")continue;if(e===c){o=m==="include"?1:-1;break}}if(c.startsWith("*")&&c.endsWith("*/")){if(n!=="folder")continue;let d=c.slice(1,-2);if(d==="")break;if(e?.includes(d+"/")){o=m==="include"?1:-1;break}}if(c.startsWith("[.*")&&c.endsWith("[^\\/]*]")){if(n!=="file")continue;let d=c.slice(3,-7);if(new RegExp(d).test(e)){o=m==="include"?1:-1;break}}if(c.startsWith("[")&&c.endsWith("]")){let d=c.slice(1,-1),w=this.translateCSharpRegex(d);if(new RegExp(`${w}`).test(e)){o=m==="include"?1:-1;break}}if(c.startsWith("*.")){if(n!=="file"||c.replace("*.","").length===0)continue;if(this.#n(e,c,!0)){o=m==="include"?1:-1;break}}if(c==="")continue;if(this.#n(e,c,!0)){o=m==="include"?1:-1;break}}return o}translateCSharpRegex(t){let e=t;e=e.replace(/^@/,"");let n=/\(\?<(?<name>\w+)>(?<pattern>[^)]+)\)/g;return e=e.replace(n,(s,o,r)=>`(${r})`),e=e.replace(/\\/g,"\\\\"),e}isIndeterminate(t,e){return t.some(n=>n.startsWith(e))}#n(t,e,n=!1){let s=e.replace(/\*/g,".*").replace(/\?/g,".").replace(/\[!([^\]]+)\]/g,"[^$1]");return new RegExp(`${s}${n?"$":""}`).test(t)}showHiddenNodesEffect=N(()=>this._showHiddenNodes.set(this.showHiddenNodes()));pathDiscoveryMethodEffect=N(()=>{let t=this.pathDiscoveryMethod(),e=this.#e();t==="browse"&&e&&this.currentPath.set(e.value)});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id==="/")return!0;let n=t.split(",");if(n.length===0)return!0;let s="."+e.id.slice(e.id.indexOf("."));return s?n.some(o=>s.endsWith(o)):!1}currentPathEffect=N(()=>{let t=this.#e();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")))});inputValueChangeAbortController=null;inputRefEffect=N(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#l(t),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,t.addEventListener("inputValueChanged",e=>{this.currentPath.set(e.detail.value)},{signal:this.inputValueChangeAbortController.signal}),this.#e.set(t),t.autocomplete="off")});ngOnInit(){let t=this.startingPath();t?(this.currentPath.set(t),this.#d(t)):this.#o(null,this.rootPath())}toggleSelectedNode(t,e){if(e.id==="/"||(t.stopPropagation(),e.evalState===-2))return;if(this.selectFiles()&&e.cls==="folder"){this.toggleNode(e.id,e);return}if(this.accepts()&&!e.accepted)return;let s=this.currentPath().split("\0").filter(r=>r!==""&&r!=="/"),o=this.isChildOfSelected(e)?`-${e.id}`:e.id;this.multiSelect()?s.includes(e.id)?this.currentPath.set(s.filter(r=>r!==e.id).join("\0")):s.some(r=>r.startsWith(o))?this.currentPath.set(s.filter(r=>r!==o).join("\0")):this.currentPath.set([...s,o].join("\0")):s.includes(e.id)?this.currentPath.set(s.filter(r=>r!==e.id).join("\0")):this.currentPath.set(e.id)}isChildOfSelected(t){return this.currentPath().split("\0").filter(n=>n!==""&&n!=="/").some(n=>t.id?.startsWith(n)||`-${t.id}`.startsWith(n))}toggleNode(t,e=null){e?.cls==="folder"&&(e?.children.length?this.treeNodes.update(n=>n.filter(s=>!s.id?.startsWith(e.id)||s.id===e.id)):this.#o(e,t))}#l(t){return Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(e){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,e),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}})),e}}),t}#a(t){return this.#t.postApiV1Filesystem({showHidden:!0,requestBody:{path:t},onlyFolders:!this.showFiles()})}#c(t){let e=this.backupSettings(),n={id:e.id,time:e.time,prefixOnly:!1,folderContents:!0};return t&&(n.filter="@"+t),this.#t.getApiV1BackupByIdFiles(n)}#i(t){return this.isByBackupSettings()?this.#c(t):this.#a(t)}#d(t){let e=t.split("\0").filter(r=>r.startsWith("-")).map(r=>r.slice(1,-1)),n=t.split("\0").filter(r=>!r.startsWith("-")).filter(Boolean),s=n.map(r=>r.split("/").filter(Boolean)),o=[this.rootPath()??"/"];s.forEach(r=>{r.forEach((v,l)=>{let a=r.slice(0,l+1).join("/"),c=a.startsWith("%")?a:"/"+a;o.includes(c)||o.push(c)})}),this.isLoading.set(!0),Y([...o.map(r=>this.#i(r))]).pipe(R(()=>this.isLoading.set(!1))).subscribe({next:r=>{this.treeNodes.update(v=>{let l=r.flatMap(c=>c.map(m=>{let f=m.id,d=f&&f.split("/").filter(Boolean).slice(0,-1).join("/"),T="/"+(f&&f.split("/").filter(Boolean).join("/")),k=n.findIndex(O=>this.multiSelect()?T.startsWith(O):T===O)>-1,Ce=n.findIndex(O=>O===f)>-1,ve=e.findIndex(O=>O===T)>-1;return H(V({},m),{parentPath:d.startsWith("%")?d:"/"+d,isSelected:k&&!ve||Ce})}));return[...new Map([...v,...l].map(c=>[c.resolvedpath??c.id,c])).values()]})}})}#o(t=null,e="/"){this.isLoading.set(!0),this.#i(e).pipe(R(()=>this.isLoading.set(!1))).subscribe({next:n=>{let s=this.isByBackupSettings()?n.Files.map(o=>({text:o.Path.split("/").filter(r=>r!=="").pop(),id:o.Path,cls:o.Path.endsWith("/")?"folder":"file",leaf:t!==null,resolvedpath:o.Path,hidden:!1})):n;this.treeNodes.update(o=>{let r=s.map(l=>{let a=l.id.startsWith("%")&&l.id.endsWith("%")||l.id.endsWith("/")?"folder":"file";return H(V({},l),{cls:a,parentPath:e})});return[...new Map([...o,...r].map(l=>[l.resolvedpath??l.id,l])).values()]})}})}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=W({type:i,selectors:[["app-file-tree"]],viewQuery:function(e,n){e&1&&(Q(n.treeContainerRef,be,5),Q(n.formRef,Te,5)),e&2&&oe(2)},hostVars:2,hostBindings:function(e,n){e&2&&P("disabled",n.disabled())},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPath:[1,"rootPath"],backupSettings:[1,"backupSettings"],showHiddenNodes:[1,"showHiddenNodes"]},outputs:{includes:"includes",excludes:"excludes"},ngContentSelectors:we,decls:15,vars:15,consts:[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"primary","raised","browse-files-toggle",3,"active"],[1,"form-field"],["type","button",3,"click"],["action","",3,"click"],[1,"icon"],[1,"spk-primary"],[1,"text",3,"click"],[1,"primary","raised","browse-files-toggle",3,"click"]],template:function(e,n){if(e&1&&(I(ye),x(0,Oe,5,4,"spk-button-group"),p(1,"div",4),y(2,0,["ngProjectAs","label",5,["label"]]),p(3,"div",5,0),x(5,Se,1,0,"spk-progress-bar",6)(6,He,3,2,"ng-template",null,1,se)(8,Re,1,0,"ng-container",7),u(),x(9,Le,2,3,"spk-toggle",8),u(),p(10,"div",9,2)(12,"spk-form-field"),y(13,1,["ngProjectAs","label",5,["label"]]),y(14,2,["ngProjectAs","input",5,["input"]]),u()()),e&2){let s=U(7);b(n.multiSelect()?-1:0),g(),P("hidden",n.pathDiscoveryMethod()!=="browse"),g(2),P("visualize-accepted",n.accepts()),g(2),b(n.isLoading()?5:-1),g(3),q("ngTemplateOutlet",s)("ngTemplateOutletContext",D(13,fe,D(11,Me,n.treeStructure()))),g(),b(n.accepts()?-1:9),g(),P("hidden",n.pathDiscoveryMethod()!=="path")}},dependencies:[pe,me,j,ue,he,ge,le,de],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.fill[_nghost-%COMP%]{height:auto;overflow:hidden;flex:1 0}.fill[_nghost-%COMP%] .section[_ngcontent-%COMP%]{height:auto;overflow:hidden;flex:1 0;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:"label toggle" "tree tree"}.fill[_nghost-%COMP%] .browse-files[_ngcontent-%COMP%]{resize:none;height:initial;grid-area:tree}.fill[_nghost-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.fill[_nghost-%COMP%] spk-toggle[_ngcontent-%COMP%]{grid-area:toggle;flex-direction:row-reverse}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.form-field.hidden[_ngcontent-%COMP%]{display:none}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);overflow:auto;resize:vertical;background:var(--base-level-10);position:relative}.browse-files[_ngcontent-%COMP%] spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]:not(.accepted){opacity:.5}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action].accepted[_ngcontent-%COMP%]{opacity:1}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-level-30);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:.25rem;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:var(--base-level-40)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].indeterminate[_ngcontent-%COMP%]{border-color:var(--primary-level-40)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-level-60R)}.hidden[_ngcontent-%COMP%]{display:none}'],changeDetection:0})};var $e=[[["","title",""]],[["","description",""]],[["","action",""]],"*"],Ge=["[title]","[description]","[action]","*"];function qe(i,t){i&1&&C(0,"Title")}function Ke(i,t){i&1&&(p(0,"spk-icon"),C(1,"caret-down"),u())}var X=class i{isActive=Z(!1);disallowToggle=_(!1);ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=W({type:i,selectors:[["app-toggle-card"]],hostVars:2,hostBindings:function(e,n){e&2&&P("active",n.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:Ge,decls:11,vars:1,consts:[[1,"title"],[3,"click"],[1,"actions"],[1,"content"]],template:function(e,n){e&1&&(I($e),p(0,"header")(1,"div",0)(2,"h3",1),M("click",function(){return n.disallowToggle()||n.toggle()}),y(3,0,null,qe,1,0),x(5,Ke,2,0,"spk-icon"),u(),y(6,1),u(),p(7,"div",2),y(8,2),u()(),p(9,"div",3),y(10,3),u()),e&2&&(g(5),b(n.disallowToggle()?-1:5))},dependencies:[j],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;border-radius:var(--shape-3);background-color:var(--base-level-20)}.active[_nghost-%COMP%] .content[_ngcontent-%COMP%]{max-height:1000px;transition:max-height 1s linear;padding:0 1rem 1rem}.active[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--paragraph-10);cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(0);transform-origin:center;transition:transform .2s ease}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:0 1rem;overflow:hidden;max-height:0;transition:max-height .25s linear,padding .25s linear}.content[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0})};export{J as a,X as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-BVTTY2FQ.js";import{B as a,E as i,N as r,R as u,X as n,Za as s}from"./chunk-RJDP2FPE.js";var l=class p{#s=n(o);#p=null;#t=s([]);#e=s([]);#a=s(!1);#i=s(!1);#r=s(null);backups=this.#e.asReadonly();backupsLoading=this.#a.asReadonly();startingBackup=this.#i.asReadonly();deletingBackup=this.#r.asReadonly();draftBackups=this.#t.asReadonly();addDraftBackup(t){let e=crypto.randomUUID();return this.#t.set([...this.#t(),{id:e,data:t}]),e}removeDraftBackupById(t){this.#t.set(this.#t().filter(e=>e.id!==t))}getBackupById(t){return this.#e().find(e=>e.Backup?.ID===t)??null}getBackups(t=!1){let e=this.#p,c=Date.now(),k=e&&c-e<15*60*1e3;!1||!t&&k&&this.#e().length||(this.#p=c,this.#a.set(!0),this.#s.getApiV1Backups().pipe(a(1),r(B=>this.#e.set(B)),i(()=>this.#a.set(!1))).subscribe())}startBackup(t){this.#i.set(!0),this.#s.postApiV1BackupByIdStart({id:t}).pipe(a(1),r(()=>this.getBackups()),i(()=>this.#i.set(!1))).subscribe()}deleteBackup(t){this.#r.set(t),this.#s.deleteApiV1BackupById({id:t}).pipe(a(1),r(()=>this.getBackups()),i(()=>this.#r.set(null))).subscribe()}static \u0275fac=function(e){return new(e||p)};static \u0275prov=u({token:p,factory:p.\u0275fac,providedIn:"root"})};export{l as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as I}from"./chunk-LUAN4O53.js";import{a as P}from"./chunk-2SYB6ABM.js";import{a as D}from"./chunk-BVTTY2FQ.js";import{a as y,g as M,h as R,n as O}from"./chunk-QL753AWG.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import"./chunk-AIQQJSGP.js";import{Ab as C,Bb as x,Cb as B,Db as S,Eb as i,Fb as p,Gb as c,Ra as l,Rb as m,X as s,cc as r,ec as h,fb as f,fc as b,lb as u,lc as v,sb as k,tb as _,vb as g}from"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";var L=()=>[R,M,y,import("./chunk-BR45PK72.js").then(e=>e.RouterLink)],w=e=>["/restore-flow",e];function T(e,o){if(e&1&&(i(0,"spk-card",0),c(1,"img",1),i(2,"div",2)(3,"h3"),r(4),p(),i(5,"p"),r(6),p()(),i(7,"button",3),r(8," Restore "),i(9,"spk-icon"),r(10,"arrow-right"),p()()()),e&2){let t,a,n=o.$implicit;l(4),h("Restore ",(t=n.Backup==null?null:n.Backup.Name)!==null&&t!==void 0?t:"Backup name missing",""),l(2),b(" ",(a=n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.SourceSizeString)!==null&&a!==void 0?a:"-"," / ",(a=n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.BackupListCount)!==null&&a!==void 0?a:"-"," "),l(),g("routerLink",v(4,w,n.Backup==null?null:n.Backup.ID))}}function E(e,o){if(e&1&&B(0,T,11,6,"spk-card",0,x),e&2){let t=m(2);S(t.backups())}}function N(e,o){e&1&&r(0," No backups founds ")}function F(e,o){if(e&1&&u(0,E,2,0)(1,N,1,0),e&2){let t=m();C(t.backups().length?0:1)}}function A(e,o){e&1&&(i(0,"div",4),c(1,"spk-progress-bar",5),i(2,"div",2)(3,"h3"),r(4,"Loading backups..."),p()()())}var d=class e{#e=s(P);#t=s(D);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;ngOnInit(){this.#e.getBackups()}restoreNow(o){this.#t.postApiV1BackupByIdRestore({id:o.Backup?.ID,requestBody:{}})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=f({type:e,selectors:[["app-restore"]],decls:8,vars:1,consts:[[1,"type-a"],["src","assets/images/folder.png","alt","","width","48px"],[1,"text"],["spk-button","",3,"routerLink"],[1,"loading-list"],[1,"indeterminate","primary"]],template:function(t,a){t&1&&(c(0,"app-status-bar"),i(1,"section")(2,"h2"),r(3,"Where do you want to restore from?"),p(),u(4,F,2,1)(5,A,5,0),k(6,4,L,null,5),p()),t&2&&(l(6),_(!a.backupsLoading()))},dependencies:[I,O],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 0;display:flex;flex-direction:column;gap:1rem}spk-divider[_ngcontent-%COMP%]{color:var(--base-level-60)}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;--card-padding: 2rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}"],changeDetection:0})};export{d as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ga as ue,X as he,e as de}from"./chunk-DESW2TCQ.js";import{E as ne,L as re,O as te,R as O,U as N,W as w,X as m,_ as se,aa as oe,ba as ie,d as S,k as Q,l as X,la as ae,na as ce,p as x,w as H,wa as le,z as ee}from"./chunk-RJDP2FPE.js";import{a as Z}from"./chunk-7CGTOI24.js";var F=class{},L=class{},g=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
|
|
2
|
+
`).forEach(n=>{let t=n.indexOf(":");if(t>0){let s=n.slice(0,t),i=n.slice(t+1).trim();this.addHeaderEntry(s,i)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,t)=>{this.addHeaderEntry(t,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,t])=>{this.setHeaderEntries(n,t)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof r?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new r;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof r?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let t=e.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(e.name,n);let s=(e.op==="a"?this.headers.get(n):void 0)||[];s.push(...t),this.headers.set(n,s);break;case"d":let i=e.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let o=this.headers.get(n);if(!o)return;o=o.filter(d=>i.indexOf(d)===-1),o.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,o)}break}}addHeaderEntry(e,n){let t=e.toLowerCase();this.maybeSetNormalizedName(e,t),this.headers.has(t)?this.headers.get(t).push(n):this.headers.set(t,[n])}setHeaderEntries(e,n){let t=(Array.isArray(n)?n:[n]).map(i=>i.toString()),s=e.toLowerCase();this.headers.set(s,t),this.maybeSetNormalizedName(e,s)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var C=class{encodeKey(e){return fe(e)}encodeValue(e){return fe(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Re(r,e){let n=new Map;return r.length>0&&r.replace(/^\?/,"").split("&").forEach(s=>{let i=s.indexOf("="),[o,d]=i==-1?[e.decodeKey(s),""]:[e.decodeKey(s.slice(0,i)),e.decodeValue(s.slice(i+1))],a=n.get(o)||[];a.push(d),n.set(o,a)}),n}var Pe=/%(\d[a-f0-9])/gi,Ne={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function fe(r){return encodeURIComponent(r).replace(Pe,(e,n)=>Ne[n]??e)}function _(r){return`${r}`}var v=class r{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new C,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Re(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let t=e.fromObject[n],s=Array.isArray(t)?t.map(_):[_(t)];this.map.set(n,s)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(t=>{let s=e[t];Array.isArray(s)?s.forEach(i=>{n.push({param:t,value:i,op:"a"})}):n.push({param:t,value:s,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(t=>n+"="+this.encoder.encodeValue(t)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new r({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(_(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let t=this.map.get(e.param)||[],s=t.indexOf(_(e.value));s!==-1&&t.splice(s,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var V=class{map=new Map;set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function Ae(r){switch(r){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function pe(r){return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer}function ye(r){return typeof Blob<"u"&&r instanceof Blob}function me(r){return typeof FormData<"u"&&r instanceof FormData}function Oe(r){return typeof URLSearchParams<"u"&&r instanceof URLSearchParams}var k=class r{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(e,n,t,s){this.url=n,this.method=e.toUpperCase();let i;if(Ae(this.method)||s?(this.body=t!==void 0?t:null,i=s):i=t,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new g,this.context??=new V,!this.params)this.params=new v,this.urlWithParams=n;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=n;else{let d=n.indexOf("?"),a=d===-1?"?":d<n.length-1?"&":"";this.urlWithParams=n+a+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||pe(this.body)||ye(this.body)||me(this.body)||Oe(this.body)?this.body:this.body instanceof v?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||me(this.body)?null:ye(this.body)?this.body.type||null:pe(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof v?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let n=e.method||this.method,t=e.url||this.url,s=e.responseType||this.responseType,i=e.transferCache??this.transferCache,o=e.body!==void 0?e.body:this.body,d=e.withCredentials??this.withCredentials,a=e.reportProgress??this.reportProgress,f=e.headers||this.headers,p=e.params||this.params,y=e.context??this.context;return e.setHeaders!==void 0&&(f=Object.keys(e.setHeaders).reduce((R,h)=>R.set(h,e.setHeaders[h]),f)),e.setParams&&(p=Object.keys(e.setParams).reduce((R,h)=>R.set(h,e.setParams[h]),p)),new r(n,t,o,{params:p,headers:f,context:y,reportProgress:a,responseType:s,withCredentials:d,transferCache:i})}},b=function(r){return r[r.Sent=0]="Sent",r[r.UploadProgress=1]="UploadProgress",r[r.ResponseHeader=2]="ResponseHeader",r[r.DownloadProgress=3]="DownloadProgress",r[r.Response=4]="Response",r[r.User=5]="User",r}(b||{}),j=class{headers;status;statusText;url;ok;type;constructor(e,n=200,t="OK"){this.headers=e.headers||new g,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||t,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},B=class r extends j{constructor(e={}){super(e)}type=b.ResponseHeader;clone(e={}){return new r({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},U=class r extends j{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=b.Response;clone(e={}){return new r({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},E=class extends j{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Ee=200,Ie=204;function J(r,e){return{body:e,headers:r.headers,context:r.context,observe:r.observe,params:r.params,reportProgress:r.reportProgress,responseType:r.responseType,withCredentials:r.withCredentials,transferCache:r.transferCache}}var Me=(()=>{class r{handler;constructor(n){this.handler=n}request(n,t,s={}){let i;if(n instanceof k)i=n;else{let a;s.headers instanceof g?a=s.headers:a=new g(s.headers);let f;s.params&&(s.params instanceof v?f=s.params:f=new v({fromObject:s.params})),i=new k(n,t,s.body!==void 0?s.body:null,{headers:a,context:s.context,params:f,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let o=X(i).pipe(ee(a=>this.handler.handle(a)));if(n instanceof k||s.observe==="events")return o;let d=o.pipe(H(a=>a instanceof U));switch(s.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return d.pipe(x(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return a.body}));case"blob":return d.pipe(x(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new Error("Response is not a Blob.");return a.body}));case"text":return d.pipe(x(a=>{if(a.body!==null&&typeof a.body!="string")throw new Error("Response is not a string.");return a.body}));case"json":default:return d.pipe(x(a=>a.body))}case"response":return d;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(n,t={}){return this.request("DELETE",n,t)}get(n,t={}){return this.request("GET",n,t)}head(n,t={}){return this.request("HEAD",n,t)}jsonp(n,t){return this.request("JSONP",n,{params:new v().append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,t={}){return this.request("OPTIONS",n,t)}patch(n,t,s={}){return this.request("PATCH",n,J(s,t))}post(n,t,s={}){return this.request("POST",n,J(s,t))}put(n,t,s={}){return this.request("PUT",n,J(s,t))}static \u0275fac=function(t){return new(t||r)(w(F))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),De=/^\)\]\}',?\n/,xe="X-Request-URL";function ge(r){if(r.url)return r.url;let e=xe.toLocaleLowerCase();return r.headers.get(e)}var $=(()=>{class r{fetchImpl=m(G,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=m(ce);handle(n){return new S(t=>{let s=new AbortController;return this.doRequest(n,s.signal,t).then(W,i=>t.error(new E({error:i}))),()=>s.abort()})}async doRequest(n,t,s){let i=this.createRequestInit(n),o;try{let h=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,Z({signal:t},i)));ke(h),s.next({type:b.Sent}),o=await h}catch(h){s.error(new E({error:h,status:h.status??0,statusText:h.statusText,url:n.urlWithParams,headers:h.headers}));return}let d=new g(o.headers),a=o.statusText,f=ge(o)??n.urlWithParams,p=o.status,y=null;if(n.reportProgress&&s.next(new B({headers:d,status:p,statusText:a,url:f})),o.body){let h=o.headers.get("content-length"),I=[],c=o.body.getReader(),l=0,T,A,u=typeof Zone<"u"&&Zone.current;await this.ngZone.runOutsideAngular(async()=>{for(;;){let{done:P,value:D}=await c.read();if(P)break;if(I.push(D),l+=D.length,n.reportProgress){A=n.responseType==="text"?(A??"")+(T??=new TextDecoder).decode(D,{stream:!0}):void 0;let Y=()=>s.next({type:b.DownloadProgress,total:h?+h:void 0,loaded:l,partialText:A});u?u.run(Y):Y()}}});let M=this.concatChunks(I,l);try{let P=o.headers.get("Content-Type")??"";y=this.parseBody(n,M,P)}catch(P){s.error(new E({error:P,headers:new g(o.headers),status:o.status,statusText:o.statusText,url:ge(o)??n.urlWithParams}));return}}p===0&&(p=y?Ee:0),p>=200&&p<300?(s.next(new U({body:y,headers:d,status:p,statusText:a,url:f})),s.complete()):s.error(new E({error:y,headers:d,status:p,statusText:a,url:f}))}parseBody(n,t,s){switch(n.responseType){case"json":let i=new TextDecoder().decode(t).replace(De,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(t);case"blob":return new Blob([t],{type:s});case"arraybuffer":return t.buffer}}createRequestInit(n){let t={},s=n.withCredentials?"include":void 0;if(n.headers.forEach((i,o)=>t[i]=o.join(",")),n.headers.has("Accept")||(t.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(t["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:t,credentials:s}}concatChunks(n,t){let s=new Uint8Array(t),i=0;for(let o of n)s.set(o,i),i+=o.length;return s}static \u0275fac=function(t){return new(t||r)};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),G=class{};function W(){}function ke(r){r.then(W,W)}function Fe(r,e){return e(r)}function Le(r,e,n){return(t,s)=>ie(n,()=>e(t,i=>r(i,s)))}var K=new N(""),je=new N(""),Ue=new N("",{providedIn:"root",factory:()=>!0});var Te=(()=>{class r extends F{backend;injector;chain=null;pendingTasks=m(ae);contributeToStability=m(Ue);constructor(n,t){super(),this.backend=n,this.injector=t}handle(n){if(this.chain===null){let t=Array.from(new Set([...this.injector.get(K),...this.injector.get(je,[])]));this.chain=t.reduceRight((s,i)=>Le(s,i,this.injector),Fe)}if(this.contributeToStability){let t=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe(ne(()=>this.pendingTasks.remove(t)))}else return this.chain(n,t=>this.backend.handle(t))}static \u0275fac=function(t){return new(t||r)(w(L),w(oe))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})();var _e=/^\)\]\}',?\n/;function Be(r){return"responseURL"in r&&r.responseURL?r.responseURL:/^X-Request-URL:/m.test(r.getAllResponseHeaders())?r.getResponseHeader("X-Request-URL"):null}var we=(()=>{class r{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new te(-2800,!1);let t=this.xhrFactory;return(t.\u0275loadImpl?Q(t.\u0275loadImpl()):X(null)).pipe(re(()=>new S(i=>{let o=t.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((c,l)=>o.setRequestHeader(c,l.join(","))),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let c=n.detectContentTypeHeader();c!==null&&o.setRequestHeader("Content-Type",c)}if(n.responseType){let c=n.responseType.toLowerCase();o.responseType=c!=="json"?c:"text"}let d=n.serializeBody(),a=null,f=()=>{if(a!==null)return a;let c=o.statusText||"OK",l=new g(o.getAllResponseHeaders()),T=Be(o)||n.url;return a=new B({headers:l,status:o.status,statusText:c,url:T}),a},p=()=>{let{headers:c,status:l,statusText:T,url:A}=f(),u=null;l!==Ie&&(u=typeof o.response>"u"?o.responseText:o.response),l===0&&(l=u?Ee:0);let M=l>=200&&l<300;if(n.responseType==="json"&&typeof u=="string"){let P=u;u=u.replace(_e,"");try{u=u!==""?JSON.parse(u):null}catch(D){u=P,M&&(M=!1,u={error:D,text:u})}}M?(i.next(new U({body:u,headers:c,status:l,statusText:T,url:A||void 0})),i.complete()):i.error(new E({error:u,headers:c,status:l,statusText:T,url:A||void 0}))},y=c=>{let{url:l}=f(),T=new E({error:c,status:o.status||0,statusText:o.statusText||"Unknown Error",url:l||void 0});i.error(T)},R=!1,h=c=>{R||(i.next(f()),R=!0);let l={type:b.DownloadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),n.responseType==="text"&&o.responseText&&(l.partialText=o.responseText),i.next(l)},I=c=>{let l={type:b.UploadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),i.next(l)};return o.addEventListener("load",p),o.addEventListener("error",y),o.addEventListener("timeout",y),o.addEventListener("abort",y),n.reportProgress&&(o.addEventListener("progress",h),d!==null&&o.upload&&o.upload.addEventListener("progress",I)),o.send(d),i.next({type:b.Sent}),()=>{o.removeEventListener("error",y),o.removeEventListener("abort",y),o.removeEventListener("load",p),o.removeEventListener("timeout",y),n.reportProgress&&(o.removeEventListener("progress",h),d!==null&&o.upload&&o.upload.removeEventListener("progress",I)),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(t){return new(t||r)(w(ue))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),ve=new N(""),ze="XSRF-TOKEN",Se=new N("",{providedIn:"root",factory:()=>ze}),Xe="X-XSRF-TOKEN",Je=new N("",{providedIn:"root",factory:()=>Xe}),z=class{},Ce=(()=>{class r{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,t,s){this.doc=n,this.platform=t,this.cookieName=s}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=he(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(t){return new(t||r)(w(de),w(le),w(Se))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})();function Ve(r,e){let n=r.url.toLowerCase();if(!m(ve)||r.method==="GET"||r.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(r);let t=m(z).getToken(),s=m(Je);return t!=null&&!r.headers.has(s)&&(r=r.clone({headers:r.headers.set(s,t)})),e(r)}var q=function(r){return r[r.Interceptors=0]="Interceptors",r[r.LegacyInterceptors=1]="LegacyInterceptors",r[r.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",r[r.NoXsrfProtection=3]="NoXsrfProtection",r[r.JsonpSupport=4]="JsonpSupport",r[r.RequestsMadeViaParent=5]="RequestsMadeViaParent",r[r.Fetch=6]="Fetch",r}(q||{});function be(r,e){return{\u0275kind:r,\u0275providers:e}}function pn(...r){let e=[Me,we,Te,{provide:F,useExisting:Te},{provide:L,useFactory:()=>m($,{optional:!0})??m(we)},{provide:K,useValue:Ve,multi:!0},{provide:ve,useValue:!0},{provide:z,useClass:Ce}];for(let n of r)e.push(...n.\u0275providers);return se(e)}function yn(r){return be(q.Interceptors,r.map(e=>({provide:K,useValue:e,multi:!0})))}function mn(){return be(q.Fetch,[$,{provide:L,useExisting:$}])}export{g as a,U as b,Me as c,pn as d,yn as e,mn as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as k}from"./chunk-LUAN4O53.js";import"./chunk-2SYB6ABM.js";import"./chunk-BVTTY2FQ.js";import{a as l,g as u,h as g}from"./chunk-QL753AWG.js";import{Y as s}from"./chunk-PD6257G7.js";import"./chunk-B7SRENJI.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import"./chunk-AIQQJSGP.js";import{Eb as e,Fb as n,Gb as a,Ra as o,cc as t,fb as d,kc as r,vb as p}from"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";var b=()=>["/backup/new"],C=()=>["/backup/import"],c=class m{static \u0275fac=function(i){return new(i||m)};static \u0275cmp=d({type:m,selectors:[["app-add-backup"]],decls:25,vars:4,consts:[[1,"backup-types"],[1,"type-a"],["src","assets/images/new-backup.png"],["spk-button","",1,"raised","primary",3,"routerLink"]],template:function(i,x){i&1&&(a(0,"app-status-bar"),e(1,"section")(2,"h2"),t(3,"Add a new backup"),n(),e(4,"div",0)(5,"spk-card",1),a(6,"img",2),e(7,"h3"),t(8,"New backup"),n(),e(9,"p"),t(10,"Configure a new backup. Choose your destination, source data and schedule."),n(),e(11,"button",3),t(12," Add a new backup "),e(13,"spk-icon"),t(14,"plus"),n()()(),e(15,"spk-card",1),a(16,"img",2),e(17,"h3"),t(18,"Import from file"),n(),e(19,"p"),t(20,"Import backup configuration from a file. During import you can adjust the setings."),n(),e(21,"button",3),t(22," Import from file "),e(23,"spk-icon"),t(24,"upload-simple"),n()()()()()),i&2&&(o(11),p("routerLink",r(2,b)),o(10),p("routerLink",r(3,C)))},dependencies:[k,u,g,l,s],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;gap:2rem;padding:2rem 0}div.backup-types[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:700px}spk-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-bottom:3rem}spk-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:300px}spk-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;text-align:center;width:75%}"],changeDetection:0})};export{c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as le}from"./chunk-DESW2TCQ.js";import{Bc as we,Dc as G,Ec as y,O as $,Q as c,Qb as v,R as oe,S as W,Sa as o,U as D,Wa as E,X as Ae,Za as k,da as P,g as Ce,gb as q,ha as b,hb as l,ja as Me,jb as u,jc as h,k as Ve,ma as A,nb as Ee,p as De,sa as M,v as be,xb as ae,xc as Fe}from"./chunk-RJDP2FPE.js";import{a as d,b as p}from"./chunk-7CGTOI24.js";var Te=(()=>{class n{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||n)(o(E),o(M))};static \u0275dir=l({type:n})}return n})(),S=(()=>{class n extends Te{static \u0275fac=(()=>{let e;return function(r){return(e||(e=b(n)))(r||n)}})();static \u0275dir=l({type:n,features:[u]})}return n})(),_=new D(""),dt={provide:_,useExisting:c(()=>ct),multi:!0},ct=(()=>{class n extends S{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=b(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,r){i&1&&v("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},standalone:!1,features:[h([dt]),u]})}return n})(),ht={provide:_,useExisting:c(()=>je),multi:!0};function ft(){let n=le()?le().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var pt=new D(""),je=(()=>{class n extends Te{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!ft())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||n)(o(E),o(M),o(pt,8))};static \u0275dir=l({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&v("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[h([ht]),u]})}return n})();function C(n){return n==null||(typeof n=="string"||Array.isArray(n))&&n.length===0}function Be(n){return n!=null&&typeof n.length=="number"}var N=new D(""),O=new D(""),gt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ie=class{static min(t){return mt(t)}static max(t){return _t(t)}static required(t){return vt(t)}static requiredTrue(t){return yt(t)}static email(t){return Ct(t)}static minLength(t){return Vt(t)}static maxLength(t){return Dt(t)}static pattern(t){return bt(t)}static nullValidator(t){return Ue(t)}static compose(t){return ze(t)}static composeAsync(t){return Xe(t)}};function mt(n){return t=>{if(C(t.value)||C(n))return null;let e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}function _t(n){return t=>{if(C(t.value)||C(n))return null;let e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function vt(n){return C(n.value)?{required:!0}:null}function yt(n){return n.value===!0?null:{required:!0}}function Ct(n){return C(n.value)||gt.test(n.value)?null:{email:!0}}function Vt(n){return t=>C(t.value)||!Be(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}function Dt(n){return t=>Be(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}function bt(n){if(!n)return Ue;let t,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(C(i.value))return null;let r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Ue(n){return null}function He(n){return n!=null}function Le(n){return Ee(n)?Ve(n):n}function $e(n){let t={};return n.forEach(e=>{t=e!=null?d(d({},t),e):t}),Object.keys(t).length===0?null:t}function We(n,t){return t.map(e=>e(n))}function At(n){return!n.validate}function qe(n){return n.map(t=>At(t)?t:e=>t.validate(e))}function ze(n){if(!n)return null;let t=n.filter(He);return t.length==0?null:function(e){return $e(We(e,t))}}function Ze(n){return n!=null?ze(qe(n)):null}function Xe(n){if(!n)return null;let t=n.filter(He);return t.length==0?null:function(e){let i=We(e,t).map(Le);return be(i).pipe(De($e))}}function Ye(n){return n!=null?Xe(qe(n)):null}function Se(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function Ke(n){return n._rawValidators}function Je(n){return n._rawAsyncValidators}function ue(n){return n?Array.isArray(n)?n:[n]:[]}function Z(n,t){return Array.isArray(n)?n.includes(t):n===t}function Ne(n,t){let e=ue(t);return ue(n).forEach(r=>{Z(e,r)||e.push(r)}),e}function Oe(n,t){return ue(t).filter(e=>!Z(n,e))}var X=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Ze(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Ye(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},f=class extends X{name;get formDirective(){return null}get path(){return null}},g=class extends X{_parent=null;name=null;valueAccessor=null},Y=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Mt={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Dn=p(d({},Mt),{"[class.ng-submitted]":"isSubmitted"}),bn=(()=>{class n extends Y{constructor(e){super(e)}static \u0275fac=function(i){return new(i||n)(o(g,2))};static \u0275dir=l({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&ae("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[u]})}return n})(),An=(()=>{class n extends Y{constructor(e){super(e)}static \u0275fac=function(i){return new(i||n)(o(f,10))};static \u0275dir=l({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&ae("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[u]})}return n})();var R="VALID",z="INVALID",F="PENDING",T="DISABLED",V=class{},K=class extends V{value;source;constructor(t,e){super(),this.value=t,this.source=e}},j=class extends V{pristine;source;constructor(t,e){super(),this.pristine=t,this.source=e}},B=class extends V{touched;source;constructor(t,e){super(),this.touched=t,this.source=e}},w=class extends V{status;source;constructor(t,e){super(),this.status=t,this.source=e}},de=class extends V{source;constructor(t){super(),this.source=t}},ce=class extends V{source;constructor(t){super(),this.source=t}};function pe(n){return(ie(n)?n.validators:n)||null}function Et(n){return Array.isArray(n)?Ze(n):n||null}function ge(n,t){return(ie(t)?t.asyncValidators:n)||null}function Ft(n){return Array.isArray(n)?Ye(n):n||null}function ie(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function Qe(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new $(1e3,"");if(!i[e])throw new $(1001,"")}function et(n,t,e){n._forEachChild((i,r)=>{if(e[r]===void 0)throw new $(1002,"")})}var I=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,e){this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return y(this.statusReactive)}set status(t){y(()=>this.statusReactive.set(t))}_status=G(()=>this.statusReactive());statusReactive=k(void 0);get valid(){return this.status===R}get invalid(){return this.status===z}get pending(){return this.status==F}get disabled(){return this.status===T}get enabled(){return this.status!==T}errors;get pristine(){return y(this.pristineReactive)}set pristine(t){y(()=>this.pristineReactive.set(t))}_pristine=G(()=>this.pristineReactive());pristineReactive=k(!0);get dirty(){return!this.pristine}get touched(){return y(this.touchedReactive)}set touched(t){y(()=>this.touchedReactive.set(t))}_touched=G(()=>this.touchedReactive());touchedReactive=k(!1);get untouched(){return!this.touched}_events=new Ce;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Ne(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Ne(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Oe(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Oe(t,this._rawAsyncValidators))}hasValidator(t){return Z(this._rawValidators,t)}hasAsyncValidator(t){return Z(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let e=this.touched===!1;this.touched=!0;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(p(d({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new B(!0,i))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t))}markAsUntouched(t={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:i})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,i),e&&t.emitEvent!==!1&&this._events.next(new B(!1,i))}markAsDirty(t={}){let e=this.pristine===!0;this.pristine=!1;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(p(d({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new j(!1,i))}markAsPristine(t={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,i),e&&t.emitEvent!==!1&&this._events.next(new j(!0,i))}markAsPending(t={}){this.status=F;let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new w(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(p(d({},t),{sourceControl:e}))}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=T,this.errors=null,this._forEachChild(r=>{r.disable(p(d({},t),{onlySelf:!0}))}),this._updateValue();let i=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new K(this.value,i)),this._events.next(new w(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(p(d({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=R,this._forEachChild(i=>{i.enable(p(d({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(p(d({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t,e){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===R||this.status===F)&&this._runAsyncValidator(i,t.emitEvent)}let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new K(this.value,e)),this._events.next(new w(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(p(d({},t),{sourceControl:e}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?T:R}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=F,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let i=Le(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,i){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||i)&&this._events.next(new w(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,i)}_initObservables(){this.valueChanges=new A,this.statusChanges=new A}_calculateStatus(){return this._allControlsDisabled()?T:this.errors?z:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(F)?F:this._anyControlsHaveStatus(z)?z:R}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),r&&this._events.next(new j(this.pristine,e))}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new B(this.touched,e)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ie(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Et(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Ft(this._rawAsyncValidators)}},J=class extends I{constructor(t,e,i){super(pe(e),ge(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){et(this,!0,t),Object.keys(t).forEach(i=>{Qe(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t?t[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var he=class extends J{};var x=new D("CallSetDisabledState",{providedIn:"root",factory:()=>H}),H="always";function re(n,t){return[...t.path,n]}function Q(n,t,e=H){me(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),It(n,t),Nt(n,t),St(n,t),wt(n,t)}function ee(n,t,e=!0){let i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),ne(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function te(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function wt(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}function me(n,t){let e=Ke(n);t.validator!==null?n.setValidators(Se(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=Je(n);t.asyncValidator!==null?n.setAsyncValidators(Se(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();te(t._rawValidators,r),te(t._rawAsyncValidators,r)}function ne(n,t){let e=!1;if(n!==null){if(t.validator!==null){let r=Ke(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.validator);s.length!==r.length&&(e=!0,n.setValidators(s))}}if(t.asyncValidator!==null){let r=Je(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.asyncValidator);s.length!==r.length&&(e=!0,n.setAsyncValidators(s))}}}let i=()=>{};return te(t._rawValidators,i),te(t._rawAsyncValidators,i),e}function It(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&tt(n,t)})}function St(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&tt(n,t),n.updateOn!=="submit"&&n.markAsTouched()})}function tt(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Nt(n,t){let e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}function Ot(n,t){n==null,me(n,t)}function xt(n,t){return ne(n,t)}function _e(n,t){if(!n.hasOwnProperty("model"))return!1;let e=n.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function Pt(n){return Object.getPrototypeOf(n.constructor)===S}function kt(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function ve(n,t){if(!t)return null;Array.isArray(t);let e,i,r;return t.forEach(s=>{s.constructor===je?e=s:Pt(s)?i=s:r=s}),r||i||e||null}function Gt(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function xe(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function Pe(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var U=class extends I{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,e,i){super(pe(e),ge(i,e)),this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ie(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Pe(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){xe(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){xe(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Pe(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Rt=n=>n instanceof U,Tt=(()=>{class n extends f{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return re(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(r){return(e||(e=b(n)))(r||n)}})();static \u0275dir=l({type:n,standalone:!1,features:[u]})}return n})();var jt={provide:g,useExisting:c(()=>Bt)},ke=Promise.resolve(),Bt=(()=>{class n extends g{_changeDetectorRef;callSetDisabledState;control=new U;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new A;constructor(e,i,r,s,a,m){super(),this._changeDetectorRef=a,this.callSetDisabledState=m,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=ve(this,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),_e(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Q(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){ke.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&we(i);ke.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?re(e,this._parent):[e]}static \u0275fac=function(i){return new(i||n)(o(f,9),o(N,10),o(O,10),o(_,10),o(Fe,8),o(x,8))};static \u0275dir=l({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[h([jt]),u,P]})}return n})(),En=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=l({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return n})(),Ut={provide:_,useExisting:c(()=>Ht),multi:!0},Ht=(()=>{class n extends S{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=b(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){i&1&&v("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[h([Ut]),u]})}return n})(),Lt={provide:_,useExisting:c(()=>Wt),multi:!0};var $t=(()=>{class n{_accessors=[];add(e,i){this._accessors.push([e,i])}remove(e){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===e){this._accessors.splice(i,1);return}}select(e){this._accessors.forEach(i=>{this._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value)})}_isSameGroup(e,i){return e[0].control?e[0]._parent===i._control._parent&&e[1].name===i.name:!1}static \u0275fac=function(i){return new(i||n)};static \u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Wt=(()=>{class n extends S{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=Ae(x,{optional:!0})??H;constructor(e,i,r,s){super(e,i),this._registry=r,this._injector=s}ngOnInit(){this._control=this._injector.get(g),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(i){return new(i||n)(o(E),o(M),o($t),o(Me))};static \u0275dir=l({type:n,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(i,r){i&1&&v("change",function(){return r.onChange()})("blur",function(){return r.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[h([Lt]),u]})}return n})();var ye=new D(""),qt={provide:g,useExisting:c(()=>zt)},zt=(()=>{class n extends g{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new A;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=ve(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&ee(i,this,!1),Q(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}_e(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ee(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(i){return new(i||n)(o(N,10),o(O,10),o(_,10),o(ye,8),o(x,8))};static \u0275dir=l({type:n,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[h([qt]),u,P]})}return n})(),Zt={provide:f,useExisting:c(()=>nt)},nt=(()=>{class n extends f{callSetDisabledState;get submitted(){return y(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=G(()=>this._submittedReactive());_submittedReactive=k(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new A;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ne(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return Q(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){ee(e.control||null,e,!1),Gt(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),kt(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new de(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new ce(this.form))}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(ee(i||null,e),Rt(r)&&(Q(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);Ot(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&xt(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){me(this.form,this),this._oldForm&&ne(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(i){return new(i||n)(o(N,10),o(O,10),o(x,8))};static \u0275dir=l({type:n,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&v("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[h([Zt]),u,P]})}return n})(),Xt={provide:f,useExisting:c(()=>it)},it=(()=>{class n extends Tt{name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}_checkParentType(){st(this._parent)}static \u0275fac=function(i){return new(i||n)(o(f,13),o(N,10),o(O,10))};static \u0275dir=l({type:n,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[h([Xt]),u]})}return n})(),Yt={provide:f,useExisting:c(()=>rt)},rt=(()=>{class n extends f{_parent;name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return re(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){st(this._parent)}static \u0275fac=function(i){return new(i||n)(o(f,13),o(N,10),o(O,10))};static \u0275dir=l({type:n,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[h([Yt]),u]})}return n})();function st(n){return!(n instanceof it)&&!(n instanceof nt)&&!(n instanceof rt)}var Kt={provide:g,useExisting:c(()=>Jt)},Jt=(()=>{class n extends g{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new A;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,s,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=ve(this,s)}ngOnChanges(e){this._added||this._setUpControl(),_e(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return re(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(i){return new(i||n)(o(f,13),o(N,10),o(O,10),o(_,10),o(ye,8))};static \u0275dir=l({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[h([Kt]),u,P]})}return n})(),Qt={provide:_,useExisting:c(()=>at),multi:!0};function ot(n,t){return n==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${n}: ${t}`.slice(0,50))}function en(n){return n.split(":")[0]}var at=(()=>{class n extends S{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;writeValue(e){this.value=e;let i=this._getOptionId(e),r=ot(i,e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){let i=en(e);return this._optionMap.has(i)?this._optionMap.get(i):e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=b(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,r){i&1&&v("change",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[h([Qt]),u]})}return n})(),Fn=(()=>{class n{_element;_renderer;_select;id;constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(ot(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(i){return new(i||n)(o(M),o(E),o(at,9))};static \u0275dir=l({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return n})(),tn={provide:_,useExisting:c(()=>lt),multi:!0};function Ge(n,t){return n==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${n}: ${t}`.slice(0,50))}function nn(n){return n.split(":")[0]}var lt=(()=>{class n extends S{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;writeValue(e){this.value=e;let i;if(Array.isArray(e)){let r=e.map(s=>this._getOptionId(s));i=(s,a)=>{s._setSelected(r.indexOf(a.toString())>-1)}}else i=(r,s)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{let r=[],s=i.selectedOptions;if(s!==void 0){let a=s;for(let m=0;m<a.length;m++){let L=a[m],se=this._getOptionValue(L.value);r.push(se)}}else{let a=i.options;for(let m=0;m<a.length;m++){let L=a[m];if(L.selected){let se=this._getOptionValue(L.value);r.push(se)}}}this.value=r,e(r)}}_registerOption(e){let i=(this._idCounter++).toString();return this._optionMap.set(i,e),i}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,e))return i;return null}_getOptionValue(e){let i=nn(e);return this._optionMap.has(i)?this._optionMap.get(i)._value:e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=b(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(i,r){i&1&&v("change",function(a){return r.onChange(a.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[h([tn]),u]})}return n})(),wn=(()=>{class n{_element;_renderer;_select;id;_value;constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(Ge(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Ge(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(i){return new(i||n)(o(M),o(E),o(lt,9))};static \u0275dir=l({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return n})();var ut=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=q({type:n});static \u0275inj=W({})}return n})(),fe=class extends I{constructor(t,e,i){super(pe(e),ge(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){et(this,!1,t),t.forEach((i,r)=>{Qe(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>i._syncPendingControls()?!0:e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function Re(n){return!!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var In=(()=>{class n{useNonNullable=!1;get nonNullable(){let e=new n;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),s={};return Re(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new J(r,s)}record(e,i=null){let r=this._reduceControls(e);return new he(r,i)}control(e,i,r){let s={};return this.useNonNullable?(Re(i)?s=i:(s.validators=i,s.asyncValidators=r),new U(e,p(d({},s),{nonNullable:!0}))):new U(e,i,r)}array(e,i,r){let s=e.map(a=>this._createControl(a));return new fe(s,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof U)return e;if(e instanceof I)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(i,r,s)}else return this.control(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Sn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:x,useValue:e.callSetDisabledState??H}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=q({type:n});static \u0275inj=W({imports:[ut]})}return n})(),Nn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:ye,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:x,useValue:e.callSetDisabledState??H}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=q({type:n});static \u0275inj=W({imports:[ut]})}return n})();export{ct as a,je as b,Ie as c,bn as d,An as e,U as f,Bt as g,En as h,Ht as i,Wt as j,zt as k,nt as l,it as m,rt as n,Jt as o,Fn as p,wn as q,In as r,Sn as s,Nn as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as s}from"./chunk-ZVT4YXH5.js";import{a as m}from"./chunk-BVTTY2FQ.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import{Eb as t,Fb as n,Ra as c,X as g,cc as o,dc as r,fb as p}from"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";var a=class l{#e=g(m);changelog=s(this.#e.getApiV1Changelog());static \u0275fac=function(e){return new(e||l)};static \u0275cmp=p({type:l,selectors:[["app-changelog"]],decls:4,vars:1,template:function(e,f){if(e&1&&(t(0,"h3"),o(1,"Changelog"),n(),t(2,"pre"),o(3),n()),e&2){let i;c(3),r((i=f.changelog())==null?null:i.Changelog)}},styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}"],changeDetection:0})};export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{U as it}from"./chunk-67JGZ4NF.js";var at=60,ot=at*60,ut=ot*24,yt=ut*7,_=1e3,Y=at*_,x=ot*_,H=ut*_,z=yt*_,b="millisecond",g="second",E="minute",N="hour",y="day",k="week",S="month",V="quarter",p="year",w="date",ct="YYYY-MM-DDTHH:mm:ssZ",tt="Invalid Date",ft=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var ht={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var r=["th","st","nd","rd"],e=t%100;return"["+t+(r[(e-20)%10]||r[e]||r[0])+"]"}};var et=function(t,r,e){var s=String(t);return!s||s.length>=r?t:""+Array(r+1-s.length).join(e)+t},pt=function(t){var r=-t.utcOffset(),e=Math.abs(r),s=Math.floor(e/60),n=e%60;return(r<=0?"+":"-")+et(s,2,"0")+":"+et(n,2,"0")},_t=function u(t,r){if(t.date()<r.date())return-u(r,t);var e=(r.year()-t.year())*12+(r.month()-t.month()),s=t.clone().add(e,S),n=r-s<0,i=t.clone().add(e+(n?-1:1),S);return+(-(e+(r-s)/(n?s-i:i-s))||0)},Ot=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},It=function(t){var r={M:S,y:p,w:k,d:y,D:w,h:N,m:E,s:g,ms:b,Q:V};return r[t]||String(t||"").toLowerCase().replace(/s$/,"")},gt=function(t){return t===void 0},dt={s:et,z:pt,m:_t,a:Ot,p:It,u:gt};var P="en",U={};U[P]=ht;var lt="$isDayjsObject",st=function(t){return t instanceof B||!!(t&&t[lt])},X=function u(t,r,e){var s;if(!t)return P;if(typeof t=="string"){var n=t.toLowerCase();U[n]&&(s=n),r&&(U[n]=r,s=n);var i=t.split("-");if(!s&&i.length>1)return u(i[0])}else{var a=t.name;U[a]=t,s=a}return!e&&s&&(P=s),s||!e&&P},v=function(t,r){if(st(t))return t.clone();var e=typeof r=="object"?r:{};return e.date=t,e.args=arguments,new B(e)},Et=function(t,r){return v(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})},h=dt;h.l=X;h.i=st;h.w=Et;var Nt=function(t){var r=t.date,e=t.utc;if(r===null)return new Date(NaN);if(h.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var s=r.match(ft);if(s){var n=s[2]-1||0,i=(s[7]||"0").substring(0,3);return e?new Date(Date.UTC(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)):new Date(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)}}return new Date(r)},B=function(){function u(r){this.$L=X(r.locale,null,!0),this.parse(r),this.$x=this.$x||r.x||{},this[lt]=!0}var t=u.prototype;return t.parse=function(e){this.$d=Nt(e),this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return h},t.isValid=function(){return this.$d.toString()!==tt},t.isSame=function(e,s){var n=v(e);return this.startOf(s)<=n&&n<=this.endOf(s)},t.isAfter=function(e,s){return v(e)<this.startOf(s)},t.isBefore=function(e,s){return this.endOf(s)<v(e)},t.$g=function(e,s,n){return h.u(e)?this[s]:this.set(n,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,s){var n=this,i=h.u(s)?!0:s,a=h.p(e),o=function(I,m){var l=h.w(n.$u?Date.UTC(n.$y,m,I):new Date(n.$y,m,I),n);return i?l:l.endOf(y)},c=function(I,m){var l=[0,0,0,0],D=[23,59,59,999];return h.w(n.toDate()[I].apply(n.toDate("s"),(i?l:D).slice(m)),n)},f=this.$W,$=this.$M,d=this.$D,M="set"+(this.$u?"UTC":"");switch(a){case p:return i?o(1,0):o(31,11);case S:return i?o(1,$):o(0,$+1);case k:{var C=this.$locale().weekStart||0,L=(f<C?f+7:f)-C;return o(i?d-L:d+(6-L),$)}case y:case w:return c(M+"Hours",0);case N:return c(M+"Minutes",1);case E:return c(M+"Seconds",2);case g:return c(M+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,s){var n,i=h.p(e),a="set"+(this.$u?"UTC":""),o=(n={},n[y]=a+"Date",n[w]=a+"Date",n[S]=a+"Month",n[p]=a+"FullYear",n[N]=a+"Hours",n[E]=a+"Minutes",n[g]=a+"Seconds",n[b]=a+"Milliseconds",n)[i],c=i===y?this.$D+(s-this.$W):s;if(i===S||i===p){var f=this.clone().set(w,1);f.$d[o](c),f.init(),this.$d=f.set(w,Math.min(this.$D,f.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},t.set=function(e,s){return this.clone().$set(e,s)},t.get=function(e){return this[h.p(e)]()},t.add=function(e,s){var n=this,i;e=Number(e);var a=h.p(s),o=function(d){var M=v(n);return h.w(M.date(M.date()+Math.round(d*e)),n)};if(a===S)return this.set(S,this.$M+e);if(a===p)return this.set(p,this.$y+e);if(a===y)return o(1);if(a===k)return o(7);var c=(i={},i[E]=Y,i[N]=x,i[g]=_,i)[a]||1,f=this.$d.getTime()+e*c;return h.w(f,this)},t.subtract=function(e,s){return this.add(e*-1,s)},t.format=function(e){var s=this,n=this.$locale();if(!this.isValid())return n.invalidDate||tt;var i=e||ct,a=h.z(this),o=this.$H,c=this.$m,f=this.$M,$=n.weekdays,d=n.months,M=n.meridiem,C=function(l,D,T,W){return l&&(l[D]||l(s,i))||T[D].slice(0,W)},L=function(l){return h.s(o%12||12,l,"0")},O=M||function(m,l,D){var T=m<12?"AM":"PM";return D?T.toLowerCase():T},I=function(l){switch(l){case"YY":return String(s.$y).slice(-2);case"YYYY":return h.s(s.$y,4,"0");case"M":return f+1;case"MM":return h.s(f+1,2,"0");case"MMM":return C(n.monthsShort,f,d,3);case"MMMM":return C(d,f);case"D":return s.$D;case"DD":return h.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return C(n.weekdaysMin,s.$W,$,2);case"ddd":return C(n.weekdaysShort,s.$W,$,3);case"dddd":return $[s.$W];case"H":return String(o);case"HH":return h.s(o,2,"0");case"h":return L(1);case"hh":return L(2);case"a":return O(o,c,!0);case"A":return O(o,c,!1);case"m":return String(c);case"mm":return h.s(c,2,"0");case"s":return String(s.$s);case"ss":return h.s(s.$s,2,"0");case"SSS":return h.s(s.$ms,3,"0");case"Z":return a;default:break}return null};return i.replace(Z,function(m,l){return l||I(m)||a.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(e,s,n){var i=this,a=h.p(s),o=v(e),c=(o.utcOffset()-this.utcOffset())*Y,f=this-o,$=function(){return h.m(i,o)},d;switch(a){case p:d=$()/12;break;case S:d=$();break;case V:d=$()/3;break;case k:d=(f-c)/z;break;case y:d=(f-c)/H;break;case N:d=f/x;break;case E:d=f/Y;break;case g:d=f/_;break;default:d=f;break}return n?d:h.a(d)},t.daysInMonth=function(){return this.endOf(S).$D},t.$locale=function(){return U[this.$L]},t.locale=function(e,s){if(!e)return this.$L;var n=this.clone(),i=X(e,s,!0);return i&&(n.$L=i),n},t.clone=function(){return h.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},u}(),vt=B.prototype;v.prototype=vt;[["$ms",b],["$s",g],["$m",E],["$H",N],["$W",y],["$M",S],["$y",p],["$D",w]].forEach(function(u){vt[u[1]]=function(t){return this.$g(t,u[0],u[1])}});v.extend=function(u,t){return u.$i||(u(t,B,v),u.$i=!0),v};v.locale=X;v.isDayjs=st;v.unix=function(u){return v(u*1e3)};v.en=U[P];v.Ls=U;v.p={};var K=v;var q=H*365,nt=q/12,At=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,j={years:q,months:nt,days:H,hours:x,minutes:Y,seconds:_,milliseconds:1,weeks:z},Q=function(t){return t instanceof St},mt,A,G=function(t,r,e){return new St(t,e,r.$l)},J=function(t){return A.p(t)+"s"},Mt=function(t){return t<0},F=function(t){return Mt(t)?Math.ceil(t):Math.floor(t)},Lt=function(t){return Math.abs(t)},R=function(t,r){return t?Mt(t)?{negative:!0,format:""+Lt(t)+r}:{negative:!1,format:""+t+r}:{negative:!1,format:""}},St=function(){function u(r,e,s){var n=this;if(this.$d={},this.$l=s,r===void 0&&(this.$ms=0,this.parseFromMilliseconds()),e)return G(r*j[J(e)],this);if(typeof r=="number")return this.$ms=r,this.parseFromMilliseconds(),this;if(typeof r=="object")return Object.keys(r).forEach(function(c){n.$d[J(c)]=r[c]}),this.calMilliseconds(),this;if(typeof r=="string"){var i=r.match(At);if(i){var a=i.slice(2),o=a.map(function(c){return c!=null?Number(c):0});return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var t=u.prototype;return t.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(s,n){return s+(e.$d[n]||0)*j[n]},0)},t.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=F(e/q),e%=q,this.$d.months=F(e/nt),e%=nt,this.$d.days=F(e/H),e%=H,this.$d.hours=F(e/x),e%=x,this.$d.minutes=F(e/Y),e%=Y,this.$d.seconds=F(e/_),e%=_,this.$d.milliseconds=e},t.toISOString=function(){var e=R(this.$d.years,"Y"),s=R(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=this.$d.weeks*7);var i=R(n,"D"),a=R(this.$d.hours,"H"),o=R(this.$d.minutes,"M"),c=this.$d.seconds||0;this.$d.milliseconds&&(c+=this.$d.milliseconds/1e3,c=Math.round(c*1e3)/1e3);var f=R(c,"S"),$=e.negative||s.negative||i.negative||a.negative||o.negative||f.negative,d=a.format||o.format||f.format?"T":"",M=$?"-":"",C=M+"P"+e.format+s.format+i.format+d+a.format+o.format+f.format;return C==="P"||C==="-P"?"P0D":C},t.toJSON=function(){return this.toISOString()},t.format=function(e){var s=e||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:A.s(this.$d.years,2,"0"),YYYY:A.s(this.$d.years,4,"0"),M:this.$d.months,MM:A.s(this.$d.months,2,"0"),D:this.$d.days,DD:A.s(this.$d.days,2,"0"),H:this.$d.hours,HH:A.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:A.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:A.s(this.$d.seconds,2,"0"),SSS:A.s(this.$d.milliseconds,3,"0")};return s.replace(Z,function(i,a){return a||String(n[i])})},t.as=function(e){return this.$ms/j[J(e)]},t.get=function(e){var s=this.$ms,n=J(e);return n==="milliseconds"?s%=1e3:n==="weeks"?s=F(s/j[n]):s=this.$d[n],s||0},t.add=function(e,s,n){var i;return s?i=e*j[J(s)]:Q(e)?i=e.$ms:i=G(e,this).$ms,G(this.$ms+i*(n?-1:1),this)},t.subtract=function(e,s){return this.add(e,s,!0)},t.locale=function(e){var s=this.clone();return s.$l=e,s},t.clone=function(){return G(this.$ms,this)},t.humanize=function(e){return mt().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},u}(),$t=function(t,r,e){return t.add(r.years()*e,"y").add(r.months()*e,"M").add(r.days()*e,"d").add(r.hours()*e,"h").add(r.minutes()*e,"m").add(r.seconds()*e,"s").add(r.milliseconds()*e,"ms")},Ct=function(u,t,r){mt=r,A=r().$utils(),r.duration=function(n,i){var a=r.locale();return G(n,{$l:a},i)},r.isDuration=Q;var e=t.prototype.add,s=t.prototype.subtract;t.prototype.add=function(n,i){return Q(n)?$t(this,n,1):e.bind(this)(n,i)},t.prototype.subtract=function(n,i){return Q(n)?$t(this,n,-1):s.bind(this)(n,i)}};var Dt=function(u,t,r){u=u||{};var e=t.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};r.en.relativeTime=s,e.fromToBase=function(a,o,c,f,$){for(var d=c.$locale().relativeTime||s,M=u.thresholds||[{l:"s",r:44,d:g},{l:"m",r:89},{l:"mm",r:44,d:E},{l:"h",r:89},{l:"hh",r:21,d:N},{l:"d",r:35},{l:"dd",r:25,d:y},{l:"M",r:45},{l:"MM",r:10,d:S},{l:"y",r:17},{l:"yy",d:p}],C=M.length,L,O,I,m=0;m<C;m+=1){var l=M[m];l.d&&(L=f?r(a).diff(c,l.d,!0):c.diff(a,l.d,!0));var D=(u.rounding||Math.round)(Math.abs(L));if(I=L>0,D<=l.r||!l.r){D<=1&&m>0&&(l=M[m-1]);var T=d[l.l];$&&(D=$(""+D)),typeof T=="string"?O=T.replace("%d",D):O=T(D,o,l.l,I);break}}if(o)return O;var W=I?d.future:d.past;return typeof W=="function"?W(O):W.replace("%s",O)};function n(a,o,c,f){return e.fromToBase(a,o,c,f)}e.to=function(a,o){return n(a,o,this,!0)},e.from=function(a,o){return n(a,o,this)};var i=function(o){return o.$u?r.utc():r()};e.toNow=function(a){return this.to(i(this),a)},e.fromNow=function(a){return this.from(i(this),a)}};var Tt=new it("Dayjs"),Gt={provide:Tt,useFactory:()=>(K.extend(Dt),K.extend(Ct),K)};export{Tt as a,Gt as b};
|
|
1
|
+
import{U as it}from"./chunk-RJDP2FPE.js";var at=60,ot=at*60,ut=ot*24,yt=ut*7,_=1e3,Y=at*_,x=ot*_,H=ut*_,z=yt*_,b="millisecond",g="second",E="minute",N="hour",y="day",k="week",S="month",V="quarter",p="year",w="date",ct="YYYY-MM-DDTHH:mm:ssZ",tt="Invalid Date",ft=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var ht={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var r=["th","st","nd","rd"],e=t%100;return"["+t+(r[(e-20)%10]||r[e]||r[0])+"]"}};var et=function(t,r,e){var s=String(t);return!s||s.length>=r?t:""+Array(r+1-s.length).join(e)+t},pt=function(t){var r=-t.utcOffset(),e=Math.abs(r),s=Math.floor(e/60),n=e%60;return(r<=0?"+":"-")+et(s,2,"0")+":"+et(n,2,"0")},_t=function u(t,r){if(t.date()<r.date())return-u(r,t);var e=(r.year()-t.year())*12+(r.month()-t.month()),s=t.clone().add(e,S),n=r-s<0,i=t.clone().add(e+(n?-1:1),S);return+(-(e+(r-s)/(n?s-i:i-s))||0)},Ot=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},It=function(t){var r={M:S,y:p,w:k,d:y,D:w,h:N,m:E,s:g,ms:b,Q:V};return r[t]||String(t||"").toLowerCase().replace(/s$/,"")},gt=function(t){return t===void 0},dt={s:et,z:pt,m:_t,a:Ot,p:It,u:gt};var P="en",U={};U[P]=ht;var lt="$isDayjsObject",st=function(t){return t instanceof B||!!(t&&t[lt])},X=function u(t,r,e){var s;if(!t)return P;if(typeof t=="string"){var n=t.toLowerCase();U[n]&&(s=n),r&&(U[n]=r,s=n);var i=t.split("-");if(!s&&i.length>1)return u(i[0])}else{var a=t.name;U[a]=t,s=a}return!e&&s&&(P=s),s||!e&&P},v=function(t,r){if(st(t))return t.clone();var e=typeof r=="object"?r:{};return e.date=t,e.args=arguments,new B(e)},Et=function(t,r){return v(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})},h=dt;h.l=X;h.i=st;h.w=Et;var Nt=function(t){var r=t.date,e=t.utc;if(r===null)return new Date(NaN);if(h.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var s=r.match(ft);if(s){var n=s[2]-1||0,i=(s[7]||"0").substring(0,3);return e?new Date(Date.UTC(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)):new Date(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)}}return new Date(r)},B=function(){function u(r){this.$L=X(r.locale,null,!0),this.parse(r),this.$x=this.$x||r.x||{},this[lt]=!0}var t=u.prototype;return t.parse=function(e){this.$d=Nt(e),this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return h},t.isValid=function(){return this.$d.toString()!==tt},t.isSame=function(e,s){var n=v(e);return this.startOf(s)<=n&&n<=this.endOf(s)},t.isAfter=function(e,s){return v(e)<this.startOf(s)},t.isBefore=function(e,s){return this.endOf(s)<v(e)},t.$g=function(e,s,n){return h.u(e)?this[s]:this.set(n,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,s){var n=this,i=h.u(s)?!0:s,a=h.p(e),o=function(I,m){var l=h.w(n.$u?Date.UTC(n.$y,m,I):new Date(n.$y,m,I),n);return i?l:l.endOf(y)},c=function(I,m){var l=[0,0,0,0],D=[23,59,59,999];return h.w(n.toDate()[I].apply(n.toDate("s"),(i?l:D).slice(m)),n)},f=this.$W,$=this.$M,d=this.$D,M="set"+(this.$u?"UTC":"");switch(a){case p:return i?o(1,0):o(31,11);case S:return i?o(1,$):o(0,$+1);case k:{var C=this.$locale().weekStart||0,L=(f<C?f+7:f)-C;return o(i?d-L:d+(6-L),$)}case y:case w:return c(M+"Hours",0);case N:return c(M+"Minutes",1);case E:return c(M+"Seconds",2);case g:return c(M+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,s){var n,i=h.p(e),a="set"+(this.$u?"UTC":""),o=(n={},n[y]=a+"Date",n[w]=a+"Date",n[S]=a+"Month",n[p]=a+"FullYear",n[N]=a+"Hours",n[E]=a+"Minutes",n[g]=a+"Seconds",n[b]=a+"Milliseconds",n)[i],c=i===y?this.$D+(s-this.$W):s;if(i===S||i===p){var f=this.clone().set(w,1);f.$d[o](c),f.init(),this.$d=f.set(w,Math.min(this.$D,f.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},t.set=function(e,s){return this.clone().$set(e,s)},t.get=function(e){return this[h.p(e)]()},t.add=function(e,s){var n=this,i;e=Number(e);var a=h.p(s),o=function(d){var M=v(n);return h.w(M.date(M.date()+Math.round(d*e)),n)};if(a===S)return this.set(S,this.$M+e);if(a===p)return this.set(p,this.$y+e);if(a===y)return o(1);if(a===k)return o(7);var c=(i={},i[E]=Y,i[N]=x,i[g]=_,i)[a]||1,f=this.$d.getTime()+e*c;return h.w(f,this)},t.subtract=function(e,s){return this.add(e*-1,s)},t.format=function(e){var s=this,n=this.$locale();if(!this.isValid())return n.invalidDate||tt;var i=e||ct,a=h.z(this),o=this.$H,c=this.$m,f=this.$M,$=n.weekdays,d=n.months,M=n.meridiem,C=function(l,D,T,W){return l&&(l[D]||l(s,i))||T[D].slice(0,W)},L=function(l){return h.s(o%12||12,l,"0")},O=M||function(m,l,D){var T=m<12?"AM":"PM";return D?T.toLowerCase():T},I=function(l){switch(l){case"YY":return String(s.$y).slice(-2);case"YYYY":return h.s(s.$y,4,"0");case"M":return f+1;case"MM":return h.s(f+1,2,"0");case"MMM":return C(n.monthsShort,f,d,3);case"MMMM":return C(d,f);case"D":return s.$D;case"DD":return h.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return C(n.weekdaysMin,s.$W,$,2);case"ddd":return C(n.weekdaysShort,s.$W,$,3);case"dddd":return $[s.$W];case"H":return String(o);case"HH":return h.s(o,2,"0");case"h":return L(1);case"hh":return L(2);case"a":return O(o,c,!0);case"A":return O(o,c,!1);case"m":return String(c);case"mm":return h.s(c,2,"0");case"s":return String(s.$s);case"ss":return h.s(s.$s,2,"0");case"SSS":return h.s(s.$ms,3,"0");case"Z":return a;default:break}return null};return i.replace(Z,function(m,l){return l||I(m)||a.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(e,s,n){var i=this,a=h.p(s),o=v(e),c=(o.utcOffset()-this.utcOffset())*Y,f=this-o,$=function(){return h.m(i,o)},d;switch(a){case p:d=$()/12;break;case S:d=$();break;case V:d=$()/3;break;case k:d=(f-c)/z;break;case y:d=(f-c)/H;break;case N:d=f/x;break;case E:d=f/Y;break;case g:d=f/_;break;default:d=f;break}return n?d:h.a(d)},t.daysInMonth=function(){return this.endOf(S).$D},t.$locale=function(){return U[this.$L]},t.locale=function(e,s){if(!e)return this.$L;var n=this.clone(),i=X(e,s,!0);return i&&(n.$L=i),n},t.clone=function(){return h.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},u}(),vt=B.prototype;v.prototype=vt;[["$ms",b],["$s",g],["$m",E],["$H",N],["$W",y],["$M",S],["$y",p],["$D",w]].forEach(function(u){vt[u[1]]=function(t){return this.$g(t,u[0],u[1])}});v.extend=function(u,t){return u.$i||(u(t,B,v),u.$i=!0),v};v.locale=X;v.isDayjs=st;v.unix=function(u){return v(u*1e3)};v.en=U[P];v.Ls=U;v.p={};var K=v;var q=H*365,nt=q/12,At=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,j={years:q,months:nt,days:H,hours:x,minutes:Y,seconds:_,milliseconds:1,weeks:z},Q=function(t){return t instanceof St},mt,A,G=function(t,r,e){return new St(t,e,r.$l)},J=function(t){return A.p(t)+"s"},Mt=function(t){return t<0},F=function(t){return Mt(t)?Math.ceil(t):Math.floor(t)},Lt=function(t){return Math.abs(t)},R=function(t,r){return t?Mt(t)?{negative:!0,format:""+Lt(t)+r}:{negative:!1,format:""+t+r}:{negative:!1,format:""}},St=function(){function u(r,e,s){var n=this;if(this.$d={},this.$l=s,r===void 0&&(this.$ms=0,this.parseFromMilliseconds()),e)return G(r*j[J(e)],this);if(typeof r=="number")return this.$ms=r,this.parseFromMilliseconds(),this;if(typeof r=="object")return Object.keys(r).forEach(function(c){n.$d[J(c)]=r[c]}),this.calMilliseconds(),this;if(typeof r=="string"){var i=r.match(At);if(i){var a=i.slice(2),o=a.map(function(c){return c!=null?Number(c):0});return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var t=u.prototype;return t.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(s,n){return s+(e.$d[n]||0)*j[n]},0)},t.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=F(e/q),e%=q,this.$d.months=F(e/nt),e%=nt,this.$d.days=F(e/H),e%=H,this.$d.hours=F(e/x),e%=x,this.$d.minutes=F(e/Y),e%=Y,this.$d.seconds=F(e/_),e%=_,this.$d.milliseconds=e},t.toISOString=function(){var e=R(this.$d.years,"Y"),s=R(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=this.$d.weeks*7);var i=R(n,"D"),a=R(this.$d.hours,"H"),o=R(this.$d.minutes,"M"),c=this.$d.seconds||0;this.$d.milliseconds&&(c+=this.$d.milliseconds/1e3,c=Math.round(c*1e3)/1e3);var f=R(c,"S"),$=e.negative||s.negative||i.negative||a.negative||o.negative||f.negative,d=a.format||o.format||f.format?"T":"",M=$?"-":"",C=M+"P"+e.format+s.format+i.format+d+a.format+o.format+f.format;return C==="P"||C==="-P"?"P0D":C},t.toJSON=function(){return this.toISOString()},t.format=function(e){var s=e||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:A.s(this.$d.years,2,"0"),YYYY:A.s(this.$d.years,4,"0"),M:this.$d.months,MM:A.s(this.$d.months,2,"0"),D:this.$d.days,DD:A.s(this.$d.days,2,"0"),H:this.$d.hours,HH:A.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:A.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:A.s(this.$d.seconds,2,"0"),SSS:A.s(this.$d.milliseconds,3,"0")};return s.replace(Z,function(i,a){return a||String(n[i])})},t.as=function(e){return this.$ms/j[J(e)]},t.get=function(e){var s=this.$ms,n=J(e);return n==="milliseconds"?s%=1e3:n==="weeks"?s=F(s/j[n]):s=this.$d[n],s||0},t.add=function(e,s,n){var i;return s?i=e*j[J(s)]:Q(e)?i=e.$ms:i=G(e,this).$ms,G(this.$ms+i*(n?-1:1),this)},t.subtract=function(e,s){return this.add(e,s,!0)},t.locale=function(e){var s=this.clone();return s.$l=e,s},t.clone=function(){return G(this.$ms,this)},t.humanize=function(e){return mt().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},u}(),$t=function(t,r,e){return t.add(r.years()*e,"y").add(r.months()*e,"M").add(r.days()*e,"d").add(r.hours()*e,"h").add(r.minutes()*e,"m").add(r.seconds()*e,"s").add(r.milliseconds()*e,"ms")},Ct=function(u,t,r){mt=r,A=r().$utils(),r.duration=function(n,i){var a=r.locale();return G(n,{$l:a},i)},r.isDuration=Q;var e=t.prototype.add,s=t.prototype.subtract;t.prototype.add=function(n,i){return Q(n)?$t(this,n,1):e.bind(this)(n,i)},t.prototype.subtract=function(n,i){return Q(n)?$t(this,n,-1):s.bind(this)(n,i)}};var Dt=function(u,t,r){u=u||{};var e=t.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};r.en.relativeTime=s,e.fromToBase=function(a,o,c,f,$){for(var d=c.$locale().relativeTime||s,M=u.thresholds||[{l:"s",r:44,d:g},{l:"m",r:89},{l:"mm",r:44,d:E},{l:"h",r:89},{l:"hh",r:21,d:N},{l:"d",r:35},{l:"dd",r:25,d:y},{l:"M",r:45},{l:"MM",r:10,d:S},{l:"y",r:17},{l:"yy",d:p}],C=M.length,L,O,I,m=0;m<C;m+=1){var l=M[m];l.d&&(L=f?r(a).diff(c,l.d,!0):c.diff(a,l.d,!0));var D=(u.rounding||Math.round)(Math.abs(L));if(I=L>0,D<=l.r||!l.r){D<=1&&m>0&&(l=M[m-1]);var T=d[l.l];$&&(D=$(""+D)),typeof T=="string"?O=T.replace("%d",D):O=T(D,o,l.l,I);break}}if(o)return O;var W=I?d.future:d.past;return typeof W=="function"?W(O):W.replace("%s",O)};function n(a,o,c,f){return e.fromToBase(a,o,c,f)}e.to=function(a,o){return n(a,o,this,!0)},e.from=function(a,o){return n(a,o,this)};var i=function(o){return o.$u?r.utc():r()};e.toNow=function(a){return this.to(i(this),a)},e.fromNow=function(a){return this.from(i(this),a)}};var Tt=new it("Dayjs"),Gt={provide:Tt,useFactory:()=>(K.extend(Dt),K.extend(Ct),K)};export{Tt as a,Gt as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ca as H,Ga as ae,X as se,a as P,b as re,c as oe,e as f,za as ie}from"./chunk-DESW2TCQ.js";import{$ as z,Ac as ne,Ca as M,Da as v,Ea as E,Fa as q,Ga as K,Ha as W,Ia as X,Ja as J,Ka as Q,La as ee,Ma as m,O as g,Qa as T,R as d,U as I,Va as te,W as c,na as w,oa as _,ta as G,ua as N,va as Y,wa as S,xa as L}from"./chunk-RJDP2FPE.js";import{a as O,b as Z}from"./chunk-7CGTOI24.js";var x=class extends oe{supportsDOMEvents=!0},j=class r extends x{static makeCurrent(){re(new r)}onAndCancel(n,e,t){return n.addEventListener(e,t),()=>{n.removeEventListener(e,t)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=ve();return e==null?null:Ee(e)}resetBaseElement(){D=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return se(document.cookie,n)}},D=null;function ve(){return D=D||document.querySelector("base"),D?D.getAttribute("href"):null}function Ee(r){return new URL(r,document.baseURI).pathname}var we=(()=>{class r{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||r)};static \u0275prov=d({token:r,factory:r.\u0275fac})}return r})(),U=new I(""),pe=(()=>{class r{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,o){return this._findPluginFor(t).addEventListener(e,t,o)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(s=>s.supports(e)),!t)throw new g(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||r)(c(U),c(w))};static \u0275prov=d({token:r,factory:r.\u0275fac})}return r})(),b=class{_doc;constructor(n){this._doc=n}manager},B="ng-app-id";function ce(r){for(let n of r)n.remove()}function le(r,n){let e=n.createElement("style");return e.textContent=r,e}function Se(r,n,e){let t=r.head?.querySelectorAll(`style[${B}="${n}"]`);if(t)for(let o of t)o.textContent&&(o.removeAttribute(B),e.set(o.textContent,{usage:0,elements:[o]}))}function F(r,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",r),e}var he=(()=>{class r{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,t,o,s={}){this.doc=e,this.appId=t,this.nonce=o,this.isServer=H(s),Se(e,t,this.inline),this.hosts.add(e.head)}addStyles(e,t){for(let o of e)this.addUsage(o,this.inline,le);t?.forEach(o=>this.addUsage(o,this.external,F))}removeStyles(e,t){for(let o of e)this.removeUsage(o,this.inline);t?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,t,o){let s=t.get(e);s?s.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,o(e,this.doc)))})}removeUsage(e,t){let o=t.get(e);o&&(o.usage--,o.usage<=0&&(ce(o.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])ce(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:o}]of this.inline)o.push(this.addElement(e,le(t,this.doc)));for(let[t,{elements:o}]of this.external)o.push(this.addElement(e,F(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),this.isServer&&t.setAttribute(B,this.appId),e.appendChild(t)}static \u0275fac=function(t){return new(t||r)(c(f),c(N),c(L,8),c(S))};static \u0275prov=d({token:r,factory:r.\u0275fac})}return r})(),k={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},$=/%COMP%/g,me="%COMP%",Me=`_nghost-${me}`,Te=`_ngcontent-${me}`,De=!0,Ce=new I("",{providedIn:"root",factory:()=>De});function Re(r){return Te.replace($,r)}function be(r){return Me.replace($,r)}function ye(r,n){return n.map(e=>e.replace($,r))}var ue=(()=>{class r{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,o,s,i,a,l,u=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=i,this.platformId=a,this.ngZone=l,this.nonce=u,this.platformIsServer=H(a),this.defaultRenderer=new C(e,i,l,this.platformIsServer)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===M.ShadowDom&&(t=Z(O({},t),{encapsulation:M.Emulated}));let o=this.getOrCreateRenderer(e,t);return o instanceof A?o.applyToHost(e):o instanceof R&&o.applyStyles(),o}getOrCreateRenderer(e,t){let o=this.rendererByCompId,s=o.get(t.id);if(!s){let i=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(t.encapsulation){case M.Emulated:s=new A(l,u,t,this.appId,p,i,a,h);break;case M.ShadowDom:return new V(l,u,e,t,i,a,this.nonce,h);default:s=new R(l,u,t,p,i,a,h);break}o.set(t.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(t){return new(t||r)(c(pe),c(he),c(N),c(Ce),c(f),c(S),c(w),c(L))};static \u0275prov=d({token:r,factory:r.\u0275fac})}return r})(),C=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,t,o){this.eventManager=n,this.doc=e,this.ngZone=t,this.platformIsServer=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(k[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(de(n)?n.content:n).appendChild(e)}insertBefore(n,e,t){n&&(de(n)?n.content:n).insertBefore(e,t)}removeChild(n,e){e.remove()}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new g(-5104,!1);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,o){if(o){e=o+":"+e;let s=k[o];s?n.setAttributeNS(s,e,t):n.setAttribute(e,t)}else n.setAttribute(e,t)}removeAttribute(n,e,t){if(t){let o=k[t];o?n.removeAttributeNS(o,e):n.removeAttribute(`${t}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,t,o){o&(T.DashCase|T.Important)?n.style.setProperty(e,t,o&T.Important?"important":""):n.style[e]=t}removeStyle(n,e,t){t&T.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,t){n!=null&&(n[e]=t)}setValue(n,e){n.nodeValue=e}listen(n,e,t){if(typeof n=="string"&&(n=P().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(t))}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function de(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var V=class extends C{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,t,o,s,i,a,l){super(n,s,i,l),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=ye(o.id,o.styles);for(let h of u){let y=document.createElement("style");a&&y.setAttribute("nonce",a),y.textContent=h,this.shadowRoot.appendChild(y)}let p=o.getExternalStyles?.();if(p)for(let h of p){let y=F(h,s);a&&y.setAttribute("nonce",a),this.shadowRoot.appendChild(y)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},R=class extends C{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,t,o,s,i,a,l){super(n,s,i,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=l?ye(l,t.styles):t.styles,this.styleUrls=t.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},A=class extends R{contentAttr;hostAttr;constructor(n,e,t,o,s,i,a,l){let u=o+"-"+t.id;super(n,e,t,s,i,a,l,u),this.contentAttr=Re(u),this.hostAttr=be(u)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}},Ae=(()=>{class r extends b{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o){return e.addEventListener(t,o,!1),()=>this.removeEventListener(e,t,o)}removeEventListener(e,t,o){return e.removeEventListener(t,o)}static \u0275fac=function(t){return new(t||r)(c(f))};static \u0275prov=d({token:r,factory:r.\u0275fac})}return r})(),fe=["alt","control","meta","shift"],Oe={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ie={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},_e=(()=>{class r extends b{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,t,o){let s=r.parseEventName(t),i=r.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>P().onAndCancel(e,s.domEventName,i))}static parseEventName(e){let t=e.toLowerCase().split("."),o=t.shift();if(t.length===0||!(o==="keydown"||o==="keyup"))return null;let s=r._normalizeKey(t.pop()),i="",a=t.indexOf("code");if(a>-1&&(t.splice(a,1),i="code."),fe.forEach(u=>{let p=t.indexOf(u);p>-1&&(t.splice(p,1),i+=u+".")}),i+=s,t.length!=0||s.length===0)return null;let l={};return l.domEventName=o,l.fullKey=i,l}static matchEventFullKeyCode(e,t){let o=Oe[e.key]||e.key,s="";return t.indexOf("code.")>-1&&(o=e.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),fe.forEach(i=>{if(i!==o){let a=Ie[i];a(e)&&(s+=i+".")}}),s+=o,s===t)}static eventCallback(e,t,o){return s=>{r.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>t(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||r)(c(f))};static \u0275prov=d({token:r,factory:r.\u0275fac})}return r})();function vt(r,n){return ne(O({rootComponent:r},Ne(n)))}function Ne(r){return{appProviders:[...xe,...r?.providers??[]],platformProviders:ke}}function Le(){j.makeCurrent()}function Pe(){return new _}function He(){return G(document),document}var ke=[{provide:S,useValue:ie},{provide:Y,useValue:Le,multi:!0},{provide:f,useFactory:He,deps:[]}];var xe=[{provide:z,useValue:"root"},{provide:_,useFactory:Pe,deps:[]},{provide:U,useClass:Ae,multi:!0,deps:[f,w,S]},{provide:U,useClass:_e,multi:!0,deps:[f]},ue,he,pe,{provide:te,useExisting:ue},{provide:ae,useClass:we,deps:[]},[]];var Et=(()=>{class r{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||r)(c(f))};static \u0275prov=d({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var je=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=d({token:r,factory:function(t){let o=null;return t?o=new(t||r):o=c(Ue),o},providedIn:"root"})}return r})(),Ue=(()=>{class r extends je{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case m.NONE:return t;case m.HTML:return E(t,"HTML")?v(t):ee(this._doc,String(t)).toString();case m.STYLE:return E(t,"Style")?v(t):t;case m.SCRIPT:if(E(t,"Script"))return v(t);throw new g(5200,!1);case m.URL:return E(t,"URL")?v(t):Q(String(t));case m.RESOURCE_URL:if(E(t,"ResourceURL"))return v(t);throw new g(5201,!1);default:throw new g(5202,!1)}}bypassSecurityTrustHtml(e){return q(e)}bypassSecurityTrustStyle(e){return K(e)}bypassSecurityTrustScript(e){return W(e)}bypassSecurityTrustUrl(e){return X(e)}bypassSecurityTrustResourceUrl(e){return J(e)}static \u0275fac=function(t){return new(t||r)(c(f))};static \u0275prov=d({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{vt as a,Et as b,je as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a,aa,b,ba,c,ca,d,da,e,ea,f,fa,g,ga,h,ha,i,ia,j,ja,k,ka,l,la,m,ma,n,na,o,oa,p,pa,q,qa,r,ra,s,sa,t,ta,u,ua,v,va,w,wa,x,y,z}from"./chunk-PD6257G7.js";import"./chunk-B7SRENJI.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";export{H as ActivatedRoute,I as ActivatedRouteSnapshot,C as ActivationEnd,B as ActivationStart,V as BaseRouteReuseStrategy,A as ChildActivationEnd,z as ChildActivationStart,F as ChildrenOutletContexts,O as DefaultTitleStrategy,h as DefaultUrlSerializer,j as EventType,u as GuardsCheckEnd,t as GuardsCheckStart,p as NavigationCancel,n as NavigationCancellationCode,m as NavigationEnd,r as NavigationError,q as NavigationSkipped,o as NavigationSkippedCode,l as NavigationStart,aa as NoPreloading,E as OutletContext,a as PRIMARY_OUTLET,$ as PreloadAllModules,_ as PreloadingStrategy,P as ROUTER_CONFIGURATION,qa as ROUTER_INITIALIZER,K as ROUTER_OUTLET_DATA,R as ROUTES,M as RedirectCommand,w as ResolveEnd,v as ResolveStart,y as RouteConfigLoadEnd,x as RouteConfigLoadStart,U as RouteReuseStrategy,X as Router,k as RouterEvent,Y as RouterLink,Z as RouterLinkActive,Y as RouterLinkWithHref,pa as RouterModule,L as RouterOutlet,ba as RouterPreloader,G as RouterState,J as RouterStateSnapshot,s as RoutesRecognized,D as Scroll,N as TitleStrategy,T as UrlHandlingStrategy,f as UrlSegment,e as UrlSegmentGroup,g as UrlSerializer,d as UrlTree,wa as VERSION,b as convertToParamMap,i as createUrlTreeFromSnapshot,c as defaultUrlMatcher,sa as mapToCanActivate,ta as mapToCanActivateChild,ua as mapToCanDeactivate,ra as mapToCanMatch,va as mapToResolve,ca as provideRouter,da as provideRoutes,ma as withComponentInputBinding,ha as withDebugTracing,ga as withDisabledInitialNavigation,fa as withEnabledBlockingInitialNavigation,ka as withHashLocation,ea as withInMemoryScrolling,la as withNavigationErrorHandler,ia as withPreloading,ja as withRouterConfig,na as withViewTransitions,Q as \u0275EmptyOutletComponent,oa as \u0275ROUTER_PROVIDERS,W as \u0275afterNextNavigation,S as \u0275loadChildren};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as v,u as d}from"./chunk-JE2I63Y6.js";import{M as R,R as u,W as c,l as I,m as B,p as V,v as T,y as f}from"./chunk-67JGZ4NF.js";import{a as b,b as D}from"./chunk-7CGTOI24.js";var k=class{_fns;constructor(){this._fns=[]}eject(e){let p=this._fns.indexOf(e);p!==-1&&(this._fns=[...this._fns.slice(0,p),...this._fns.slice(p+1)])}use(e){this._fns=[...this._fns,e]}},t={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"1",WITH_CREDENTIALS:!1,interceptors:{response:new k}};var y=class extends Error{url;status;statusText;body;request;constructor(e,p,i){super(i),this.name="ApiError",this.url=p.url,this.status=p.status,this.statusText=p.statusText,this.body=p.body,this.request=e}};var m=r=>typeof r=="string",P=r=>m(r)&&r!=="",S=r=>r instanceof Blob,O=r=>r instanceof FormData,w=r=>{try{return btoa(r)}catch{return Buffer.from(r).toString("base64")}},F=r=>{let e=[],p=(a,n)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(n))}`)},i=(a,n)=>{n!=null&&(n instanceof Date?p(a,n.toISOString()):Array.isArray(n)?n.forEach(o=>i(a,o)):typeof n=="object"?Object.entries(n).forEach(([o,l])=>i(`${a}[${o}]`,l)):p(a,n))};return Object.entries(r).forEach(([a,n])=>i(a,n)),e.length?`?${e.join("&")}`:""},U=(r,e)=>{let p=r.ENCODE_PATH||encodeURI,i=e.url.replace("{api-version}",r.VERSION).replace(/{(.*?)}/g,(n,o)=>e.path?.hasOwnProperty(o)?p(String(e.path[o])):n),a=r.BASE+i;return e.query?a+F(e.query):a},N=r=>{if(r.formData){let e=new FormData,p=(i,a)=>{m(a)||S(a)?e.append(i,a):e.append(i,JSON.stringify(a))};return Object.entries(r.formData).filter(([,i])=>i!=null).forEach(([i,a])=>{Array.isArray(a)?a.forEach(n=>p(i,n)):p(i,a)}),e}},g=async(r,e)=>typeof e=="function"?e(r):e,H=(r,e)=>T({token:g(e,r.TOKEN),username:g(e,r.USERNAME),password:g(e,r.PASSWORD),additionalHeaders:g(e,r.HEADERS)}).pipe(V(({token:p,username:i,password:a,additionalHeaders:n})=>{let o=Object.entries(b(b({Accept:"application/json"},n),e.headers)).filter(([,l])=>l!=null).reduce((l,[A,h])=>D(b({},l),{[A]:String(h)}),{});if(P(p)&&(o.Authorization=`Bearer ${p}`),P(i)&&P(a)){let l=w(`${i}:${a}`);o.Authorization=`Basic ${l}`}return e.body!==void 0&&(e.mediaType?o["Content-Type"]=e.mediaType:S(e.body)?o["Content-Type"]=e.body.type||"application/octet-stream":m(e.body)?o["Content-Type"]="text/plain":O(e.body)||(o["Content-Type"]="application/json")),new v(o)})),M=r=>{if(r.body)return r.mediaType?.includes("application/json")||r.mediaType?.includes("+json")?JSON.stringify(r.body):m(r.body)||S(r.body)||O(r.body)?r.body:JSON.stringify(r.body)},$=(r,e,p,i,a,n,o)=>p.request(e.method,i,{headers:o,body:a??n,withCredentials:r.WITH_CREDENTIALS,observe:"response"}),z=(r,e)=>{if(e){let p=r.headers.get(e);if(m(p))return p}},W=r=>{if(r.status!==204&&r.body!==null)return r.body},K=(r,e)=>{let i=b({400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},r.errors)[e.status];if(i)throw new y(r,e,i);if(!e.ok){let a=e.status??"unknown",n=e.statusText??"unknown",o=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new y(r,e,`Generic Error: status: ${a}; status text: ${n}; body: ${o}`)}},s=(r,e,p)=>{let i=U(r,p),a=N(p),n=M(p);return H(r,p).pipe(R(o=>$(r,p,e,i,n,a,o)),R(async o=>{for(let L of r.interceptors.response._fns)o=await L(o);let l=W(o),A=z(o,p.responseHeader),h=l;return p.responseTransformer&&o.ok&&(h=await p.responseTransformer(l)),{url:i,ok:o.ok,status:o.status,statusText:o.statusText,body:A??h}}),f(o=>o.status?I({url:i,ok:o.ok,status:o.status,statusText:o.statusText,body:o.error??o.statusText}):B(()=>o)),V(o=>(K(p,o),o.body)),f(o=>B(()=>o)))};var G=class r{constructor(e){this.http=e}getApiV1Commandline(){return s(t,this.http,{method:"GET",url:"/api/v1/commandline"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},x=class r{constructor(e){this.http=e}postApiV1Commandline(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline",body:e.requestBody,mediaType:"application/json"})}getApiV1Acknowledgements(){return s(t,this.http,{method:"GET",url:"/api/v1/acknowledgements"})}postApiV1AuthRefresh(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh"})}postApiV1AuthSignin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/signin",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthLogin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/login",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuesignintoken(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuesignintoken",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthRefreshLogout(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh/logout"})}postApiV1AuthIssuetokenByOperation(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuetoken/{operation}",path:{operation:e.operation}})}getApiV1Backupdefaults(){return s(t,this.http,{method:"GET",url:"/api/v1/backupdefaults"})}getApiV1Backups(){return s(t,this.http,{method:"GET",url:"/api/v1/backups"})}postApiV1Backups(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups",query:{temporary:e.temporary,existingdb:e.existingdb},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupsImport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups/import",body:e.requestBody,mediaType:"application/json"})}getApiV1BugreportByReportid(e){return s(t,this.http,{method:"GET",url:"/api/v1/bugreport/{reportid}",path:{reportid:e.reportid},query:{token:e.token}})}getApiV1CaptchaByToken(e){return s(t,this.http,{method:"GET",url:"/api/v1/captcha/{token}",path:{token:e.token}})}postApiV1CaptchaByToken(e){return s(t,this.http,{method:"POST",url:"/api/v1/captcha/{token}",path:{token:e.token},body:e.requestBody,mediaType:"application/json"})}postApiV1Captcha(e){return s(t,this.http,{method:"POST",url:"/api/v1/captcha",body:e.requestBody,mediaType:"application/json"})}getApiV1Changelog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/changelog",query:{"from-update":e.fromUpdate}})}getApiV1CommandlineByRunid(e){return s(t,this.http,{method:"GET",url:"/api/v1/commandline/{runid}",path:{runid:e.runid},query:{offset:e.offset,pagesize:e.pagesize}})}postApiV1CommandlineByRunidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline/{runid}/abort",path:{runid:e.runid}})}postApiV1Filesystem(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem",query:{onlyFolders:e.onlyFolders,showHidden:e.showHidden},body:e.requestBody,mediaType:"application/json"})}postApiV1FilesystemValidate(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem/validate",body:e.requestBody,mediaType:"application/json"})}getApiV1Hyperv(){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv"})}getApiV1HypervByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv/{key}",path:{key:e.key}})}getApiV1Licenses(){return s(t,this.http,{method:"GET",url:"/api/v1/licenses"})}getApiV1LogdataPoll(e){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/poll",query:{level:e.level,id:e.id,offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataLog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/log",query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1Mssql(){return s(t,this.http,{method:"GET",url:"/api/v1/mssql"})}getApiV1MssqlByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/mssql/{key}",path:{key:e.key}})}getApiV1NotificationById(e){return s(t,this.http,{method:"GET",url:"/api/v1/notification/{id}",path:{id:e.id}})}deleteApiV1NotificationById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/notification/{id}",path:{id:e.id}})}getApiV1Notifications(){return s(t,this.http,{method:"GET",url:"/api/v1/notifications"})}getApiV1RemotecontrolStatus(){return s(t,this.http,{method:"GET",url:"/api/v1/remotecontrol/status"})}postApiV1RemotecontrolEnable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/enable"})}postApiV1RemotecontrolDisable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/disable"})}deleteApiV1RemotecontrolRegistration(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/registration"})}postApiV1RemotecontrolRegister(e){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/register",body:e.requestBody,mediaType:"application/json"})}deleteApiV1RemotecontrolRegister(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/register"})}postApiV1RemoteoperationDbpath(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/dbpath",body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationTest(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/test",query:{autocreate:e.autocreate},body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationCreate(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/create",body:e.requestBody,mediaType:"application/json"})}getApiV1Serversettings(){return s(t,this.http,{method:"GET",url:"/api/v1/serversettings"})}patchApiV1Serversettings(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/serversettings",body:e.requestBody,mediaType:"application/json"})}getApiV1ServersettingByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/serversetting/{key}",path:{key:e.key}})}putApiV1ServersettingByKey(e){return s(t,this.http,{method:"PUT",url:"/api/v1/serversetting/{key}",path:{key:e.key},body:e.requestBody,mediaType:"application/json"})}getApiV1Serverstate(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/serverstate",query:{lastEventId:e.lastEventId,longpoll:e.longpoll,duration:e.duration}})}postApiV1ServerstatePause(e={}){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/pause",query:{duration:e.duration}})}postApiV1ServerstateResume(){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/resume"})}getApiV1Systeminfo(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo"})}getApiV1SysteminfoFiltergroups(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo/filtergroups"})}getApiV1TaskByTaskid(e){return s(t,this.http,{method:"GET",url:"/api/v1/task/{taskid}",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStopaftercurrentfile(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stopaftercurrentfile",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStopnow(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stopnow",path:{taskid:e.taskid}})}postApiV1TaskByTaskidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/abort",path:{taskid:e.taskid}})}getApiV1Uisettings(){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings"})}postApiV1Uisettings(e){return s(t,this.http,{method:"POST",url:"/api/v1/uisettings",body:e.requestBody,mediaType:"application/json"})}getApiV1UisettingsByScheme(e){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme}})}patchApiV1UisettingsByScheme(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme},body:e.requestBody,mediaType:"application/json"})}postApiV1WebmoduleByModulekey(e){return s(t,this.http,{method:"POST",url:"/api/v1/webmodule/{modulekey}",path:{modulekey:e.modulekey},body:e.requestBody,mediaType:"application/json"})}getApiV1BackupById(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}",path:{id:e.id}})}putApiV1BackupById(e){return s(t,this.http,{method:"PUT",url:"/api/v1/backup/{id}",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}deleteApiV1BackupById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/backup/{id}",path:{id:e.id},query:{"delete-remote-files":e.deleteRemoteFiles,"delete-local-db":e.deleteLocalDb,"captcha-token":e.captchaToken,"captcha-answer":e.captchaAnswer,force:e.force}})}getApiV1BackupByIdFiles(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/files",path:{id:e.id},query:{filter:e.filter,time:e.time,"all-versions":e.allVersions,"prefix-only":e.prefixOnly,"folder-contents":e.folderContents}})}getApiV1BackupByIdLog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/log",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdRemotelog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/remotelog",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdFilesets(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/filesets",path:{id:e.id},query:{"include-metadata":e.includeMetadata,"from-remote-only":e.fromRemoteOnly}})}getApiV1BackupByIdExportArgsonly(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-argsonly",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExportCmdline(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-cmdline",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExport(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase,token:e.token}})}getApiV1BackupByIdIsdbusedelsewhere(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isdbusedelsewhere",path:{id:e.id}})}getApiV1BackupByIdIsactive(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isactive",path:{id:e.id}})}postApiV1BackupByIdDeletedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/deletedb",path:{id:e.id}})}postApiV1BackupByIdMovedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/movedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdUpdatedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/updatedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRestore(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/restore",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdCreatereport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/createreport",path:{id:e.id}})}postApiV1BackupByIdRepair(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repair",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRepairupdate(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repairupdate",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdVacuum(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/vacuum",path:{id:e.id}})}postApiV1BackupByIdVerify(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/verify",path:{id:e.id}})}postApiV1BackupByIdCompact(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/compact",path:{id:e.id}})}postApiV1BackupByIdStart(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/start",path:{id:e.id}})}postApiV1BackupByIdRun(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/run",path:{id:e.id}})}postApiV1BackupByIdReportRemoteSize(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/report-remote-size",path:{id:e.id}})}postApiV1BackupByIdCopytotemp(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/copytotemp",path:{id:e.id}})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},C=class r{constructor(e){this.http=e}getApiV1Progressstate(){return s(t,this.http,{method:"GET",url:"/api/v1/progressstate"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},E=class r{constructor(e){this.http=e}getApiV1Tasks(){return s(t,this.http,{method:"GET",url:"/api/v1/tasks"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},j=class r{constructor(e){this.http=e}postApiV1UpdatesCheck(){return s(t,this.http,{method:"POST",url:"/api/v1/updates/check"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},q=class r{constructor(e){this.http=e}getApiV1Webmodules(){return s(t,this.http,{method:"GET",url:"/api/v1/webmodules"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})};export{x as a,C as b,E as c,q as d};
|
|
1
|
+
import{a as v,c as d}from"./chunk-4Y76KESB.js";import{L as R,R as u,W as c,l as I,m as B,p as V,v as T,y as f}from"./chunk-RJDP2FPE.js";import{a as b,b as D}from"./chunk-7CGTOI24.js";var k=class{_fns;constructor(){this._fns=[]}eject(e){let p=this._fns.indexOf(e);p!==-1&&(this._fns=[...this._fns.slice(0,p),...this._fns.slice(p+1)])}use(e){this._fns=[...this._fns,e]}},t={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"1",WITH_CREDENTIALS:!1,interceptors:{response:new k}};var y=class extends Error{url;status;statusText;body;request;constructor(e,p,i){super(i),this.name="ApiError",this.url=p.url,this.status=p.status,this.statusText=p.statusText,this.body=p.body,this.request=e}};var m=r=>typeof r=="string",P=r=>m(r)&&r!=="",S=r=>r instanceof Blob,O=r=>r instanceof FormData,w=r=>{try{return btoa(r)}catch{return Buffer.from(r).toString("base64")}},F=r=>{let e=[],p=(a,n)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(n))}`)},i=(a,n)=>{n!=null&&(n instanceof Date?p(a,n.toISOString()):Array.isArray(n)?n.forEach(o=>i(a,o)):typeof n=="object"?Object.entries(n).forEach(([o,l])=>i(`${a}[${o}]`,l)):p(a,n))};return Object.entries(r).forEach(([a,n])=>i(a,n)),e.length?`?${e.join("&")}`:""},U=(r,e)=>{let p=r.ENCODE_PATH||encodeURI,i=e.url.replace("{api-version}",r.VERSION).replace(/{(.*?)}/g,(n,o)=>e.path?.hasOwnProperty(o)?p(String(e.path[o])):n),a=r.BASE+i;return e.query?a+F(e.query):a},N=r=>{if(r.formData){let e=new FormData,p=(i,a)=>{m(a)||S(a)?e.append(i,a):e.append(i,JSON.stringify(a))};return Object.entries(r.formData).filter(([,i])=>i!=null).forEach(([i,a])=>{Array.isArray(a)?a.forEach(n=>p(i,n)):p(i,a)}),e}},g=async(r,e)=>typeof e=="function"?e(r):e,H=(r,e)=>T({token:g(e,r.TOKEN),username:g(e,r.USERNAME),password:g(e,r.PASSWORD),additionalHeaders:g(e,r.HEADERS)}).pipe(V(({token:p,username:i,password:a,additionalHeaders:n})=>{let o=Object.entries(b(b({Accept:"application/json"},n),e.headers)).filter(([,l])=>l!=null).reduce((l,[A,h])=>D(b({},l),{[A]:String(h)}),{});if(P(p)&&(o.Authorization=`Bearer ${p}`),P(i)&&P(a)){let l=w(`${i}:${a}`);o.Authorization=`Basic ${l}`}return e.body!==void 0&&(e.mediaType?o["Content-Type"]=e.mediaType:S(e.body)?o["Content-Type"]=e.body.type||"application/octet-stream":m(e.body)?o["Content-Type"]="text/plain":O(e.body)||(o["Content-Type"]="application/json")),new v(o)})),M=r=>{if(r.body)return r.mediaType?.includes("application/json")||r.mediaType?.includes("+json")?JSON.stringify(r.body):m(r.body)||S(r.body)||O(r.body)?r.body:JSON.stringify(r.body)},$=(r,e,p,i,a,n,o)=>p.request(e.method,i,{headers:o,body:a??n,withCredentials:r.WITH_CREDENTIALS,observe:"response"}),z=(r,e)=>{if(e){let p=r.headers.get(e);if(m(p))return p}},W=r=>{if(r.status!==204&&r.body!==null)return r.body},K=(r,e)=>{let i=b({400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},r.errors)[e.status];if(i)throw new y(r,e,i);if(!e.ok){let a=e.status??"unknown",n=e.statusText??"unknown",o=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new y(r,e,`Generic Error: status: ${a}; status text: ${n}; body: ${o}`)}},s=(r,e,p)=>{let i=U(r,p),a=N(p),n=M(p);return H(r,p).pipe(R(o=>$(r,p,e,i,n,a,o)),R(async o=>{for(let L of r.interceptors.response._fns)o=await L(o);let l=W(o),A=z(o,p.responseHeader),h=l;return p.responseTransformer&&o.ok&&(h=await p.responseTransformer(l)),{url:i,ok:o.ok,status:o.status,statusText:o.statusText,body:A??h}}),f(o=>o.status?I({url:i,ok:o.ok,status:o.status,statusText:o.statusText,body:o.error??o.statusText}):B(()=>o)),V(o=>(K(p,o),o.body)),f(o=>B(()=>o)))};var G=class r{constructor(e){this.http=e}getApiV1Commandline(){return s(t,this.http,{method:"GET",url:"/api/v1/commandline"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},x=class r{constructor(e){this.http=e}postApiV1Commandline(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline",body:e.requestBody,mediaType:"application/json"})}getApiV1Acknowledgements(){return s(t,this.http,{method:"GET",url:"/api/v1/acknowledgements"})}postApiV1AuthRefresh(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh"})}postApiV1AuthSignin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/signin",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthLogin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/login",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuesignintoken(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuesignintoken",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthRefreshLogout(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh/logout"})}postApiV1AuthIssuetokenByOperation(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuetoken/{operation}",path:{operation:e.operation}})}getApiV1Backupdefaults(){return s(t,this.http,{method:"GET",url:"/api/v1/backupdefaults"})}getApiV1Backups(){return s(t,this.http,{method:"GET",url:"/api/v1/backups"})}postApiV1Backups(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups",query:{temporary:e.temporary,existingdb:e.existingdb},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupsImport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups/import",body:e.requestBody,mediaType:"application/json"})}getApiV1BugreportByReportid(e){return s(t,this.http,{method:"GET",url:"/api/v1/bugreport/{reportid}",path:{reportid:e.reportid},query:{token:e.token}})}getApiV1CaptchaByToken(e){return s(t,this.http,{method:"GET",url:"/api/v1/captcha/{token}",path:{token:e.token}})}postApiV1CaptchaByToken(e){return s(t,this.http,{method:"POST",url:"/api/v1/captcha/{token}",path:{token:e.token},body:e.requestBody,mediaType:"application/json"})}postApiV1Captcha(e){return s(t,this.http,{method:"POST",url:"/api/v1/captcha",body:e.requestBody,mediaType:"application/json"})}getApiV1Changelog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/changelog",query:{"from-update":e.fromUpdate}})}getApiV1CommandlineByRunid(e){return s(t,this.http,{method:"GET",url:"/api/v1/commandline/{runid}",path:{runid:e.runid},query:{offset:e.offset,pagesize:e.pagesize}})}postApiV1CommandlineByRunidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline/{runid}/abort",path:{runid:e.runid}})}postApiV1Filesystem(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem",query:{onlyFolders:e.onlyFolders,showHidden:e.showHidden},body:e.requestBody,mediaType:"application/json"})}postApiV1FilesystemValidate(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem/validate",body:e.requestBody,mediaType:"application/json"})}getApiV1Hyperv(){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv"})}getApiV1HypervByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv/{key}",path:{key:e.key}})}getApiV1Licenses(){return s(t,this.http,{method:"GET",url:"/api/v1/licenses"})}getApiV1LogdataPoll(e){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/poll",query:{level:e.level,id:e.id,offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataLog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/log",query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1Mssql(){return s(t,this.http,{method:"GET",url:"/api/v1/mssql"})}getApiV1MssqlByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/mssql/{key}",path:{key:e.key}})}getApiV1NotificationById(e){return s(t,this.http,{method:"GET",url:"/api/v1/notification/{id}",path:{id:e.id}})}deleteApiV1NotificationById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/notification/{id}",path:{id:e.id}})}getApiV1Notifications(){return s(t,this.http,{method:"GET",url:"/api/v1/notifications"})}getApiV1RemotecontrolStatus(){return s(t,this.http,{method:"GET",url:"/api/v1/remotecontrol/status"})}postApiV1RemotecontrolEnable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/enable"})}postApiV1RemotecontrolDisable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/disable"})}deleteApiV1RemotecontrolRegistration(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/registration"})}postApiV1RemotecontrolRegister(e){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/register",body:e.requestBody,mediaType:"application/json"})}deleteApiV1RemotecontrolRegister(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/register"})}postApiV1RemoteoperationDbpath(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/dbpath",body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationTest(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/test",query:{autocreate:e.autocreate},body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationCreate(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/create",body:e.requestBody,mediaType:"application/json"})}getApiV1Serversettings(){return s(t,this.http,{method:"GET",url:"/api/v1/serversettings"})}patchApiV1Serversettings(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/serversettings",body:e.requestBody,mediaType:"application/json"})}getApiV1ServersettingByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/serversetting/{key}",path:{key:e.key}})}putApiV1ServersettingByKey(e){return s(t,this.http,{method:"PUT",url:"/api/v1/serversetting/{key}",path:{key:e.key},body:e.requestBody,mediaType:"application/json"})}getApiV1Serverstate(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/serverstate",query:{lastEventId:e.lastEventId,longpoll:e.longpoll,duration:e.duration}})}postApiV1ServerstatePause(e={}){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/pause",query:{duration:e.duration}})}postApiV1ServerstateResume(){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/resume"})}getApiV1Systeminfo(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo"})}getApiV1SysteminfoFiltergroups(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo/filtergroups"})}getApiV1TaskByTaskid(e){return s(t,this.http,{method:"GET",url:"/api/v1/task/{taskid}",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStopaftercurrentfile(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stopaftercurrentfile",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStopnow(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stopnow",path:{taskid:e.taskid}})}postApiV1TaskByTaskidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/abort",path:{taskid:e.taskid}})}getApiV1Uisettings(){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings"})}postApiV1Uisettings(e){return s(t,this.http,{method:"POST",url:"/api/v1/uisettings",body:e.requestBody,mediaType:"application/json"})}getApiV1UisettingsByScheme(e){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme}})}patchApiV1UisettingsByScheme(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme},body:e.requestBody,mediaType:"application/json"})}postApiV1WebmoduleByModulekey(e){return s(t,this.http,{method:"POST",url:"/api/v1/webmodule/{modulekey}",path:{modulekey:e.modulekey},body:e.requestBody,mediaType:"application/json"})}getApiV1BackupById(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}",path:{id:e.id}})}putApiV1BackupById(e){return s(t,this.http,{method:"PUT",url:"/api/v1/backup/{id}",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}deleteApiV1BackupById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/backup/{id}",path:{id:e.id},query:{"delete-remote-files":e.deleteRemoteFiles,"delete-local-db":e.deleteLocalDb,"captcha-token":e.captchaToken,"captcha-answer":e.captchaAnswer,force:e.force}})}getApiV1BackupByIdFiles(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/files",path:{id:e.id},query:{filter:e.filter,time:e.time,"all-versions":e.allVersions,"prefix-only":e.prefixOnly,"folder-contents":e.folderContents}})}getApiV1BackupByIdLog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/log",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdRemotelog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/remotelog",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdFilesets(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/filesets",path:{id:e.id},query:{"include-metadata":e.includeMetadata,"from-remote-only":e.fromRemoteOnly}})}getApiV1BackupByIdExportArgsonly(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-argsonly",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExportCmdline(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-cmdline",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExport(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase,token:e.token}})}getApiV1BackupByIdIsdbusedelsewhere(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isdbusedelsewhere",path:{id:e.id}})}getApiV1BackupByIdIsactive(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isactive",path:{id:e.id}})}postApiV1BackupByIdDeletedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/deletedb",path:{id:e.id}})}postApiV1BackupByIdMovedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/movedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdUpdatedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/updatedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRestore(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/restore",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdCreatereport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/createreport",path:{id:e.id}})}postApiV1BackupByIdRepair(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repair",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRepairupdate(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repairupdate",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdVacuum(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/vacuum",path:{id:e.id}})}postApiV1BackupByIdVerify(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/verify",path:{id:e.id}})}postApiV1BackupByIdCompact(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/compact",path:{id:e.id}})}postApiV1BackupByIdStart(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/start",path:{id:e.id}})}postApiV1BackupByIdRun(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/run",path:{id:e.id}})}postApiV1BackupByIdReportRemoteSize(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/report-remote-size",path:{id:e.id}})}postApiV1BackupByIdCopytotemp(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/copytotemp",path:{id:e.id}})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},C=class r{constructor(e){this.http=e}getApiV1Progressstate(){return s(t,this.http,{method:"GET",url:"/api/v1/progressstate"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},E=class r{constructor(e){this.http=e}getApiV1Tasks(){return s(t,this.http,{method:"GET",url:"/api/v1/tasks"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},j=class r{constructor(e){this.http=e}postApiV1UpdatesCheck(){return s(t,this.http,{method:"POST",url:"/api/v1/updates/check"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})},q=class r{constructor(e){this.http=e}getApiV1Webmodules(){return s(t,this.http,{method:"GET",url:"/api/v1/webmodules"})}static \u0275fac=function(p){return new(p||r)(c(d))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})};export{x as a,C as b,E as c,q as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as W}from"./chunk-LUAN4O53.js";import{a as j}from"./chunk-2SYB6ABM.js";import"./chunk-BVTTY2FQ.js";import{a as M,g as v,h as V,j as A,m as z,n as R}from"./chunk-QL753AWG.js";import{Y as h}from"./chunk-PD6257G7.js";import"./chunk-B7SRENJI.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import"./chunk-AIQQJSGP.js";import{Ab as d,Bb as F,Cb as H,Db as T,Eb as i,Fb as o,Gb as _,Hb as L,Ib as w,Kb as I,Qb as g,Ra as c,Rb as p,X as P,cc as t,ea as x,ec as m,fa as C,fb as y,kc as B,lb as u,lc as b,oc as S,pc as N,qc as $,sb as E,tb as O,vb as s,xb as f}from"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";var q=()=>[h,v,M,A,z,import("./chunk-RMZR2OAY.js").then(e=>e.DatePipe),import("./chunk-UPIWGO32.js").then(e=>e.DurationFormatPipe)],G=()=>["/add-backup"],J=()=>["/restore"],K=e=>["/backup",e],Q=e=>["/backup",e,"export"];function U(e,l){if(e&1&&(t(0),S(1,"durationFormat")),e&2){let n=p().$implicit;m(" - (took ",N(1,1,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDuration),") ")}}function X(e,l){e&1&&t(0," N/A ")}function Y(e,l){if(e&1&&t(0),e&2){let n=p().$implicit;m(" ",n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.SourceSizeString," ")}}function Z(e,l){e&1&&t(0," N/A ")}function ee(e,l){if(e&1&&t(0),e&2){let n=p().$implicit;m(" ",n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.TargetSizeString," ")}}function te(e,l){e&1&&t(0," N/A ")}function ne(e,l){if(e&1&&(i(0,"spk-chip",9),t(1),o()),e&2){let n=p().$implicit;c(),m("",n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.BackupListCount," Version")}}function ie(e,l){e&1&&(i(0,"spk-chip",10),t(1,"No version yet"),o())}function ae(e,l){if(e&1){let n=I();i(0,"div",8)(1,"div",3)(2,"h3"),t(3),i(4,"spk-icon"),t(5,"database"),o()(),i(6,"p")(7,"span"),t(8,"Last successful backup:"),o(),t(9),S(10,"date"),u(11,U,2,3)(12,X,1,0),o(),i(13,"p")(14,"span"),t(15,"Source:"),o(),u(16,Y,1,1)(17,Z,1,0),o(),i(18,"p")(19,"span"),t(20,"Destination:"),o(),u(21,ee,1,1)(22,te,1,0),o()(),u(23,ne,2,1,"spk-chip",9)(24,ie,2,0,"spk-chip",10),i(25,"div",11)(26,"button",12),g("click",function(){let r=x(n).$implicit,k=p(3);return C(k.startBackup(r.Backup==null?null:r.Backup.ID))}),i(27,"spk-icon"),t(28,"play-circle"),o(),t(29," Start "),o(),i(30,"button",13)(31,"spk-icon"),t(32,"pencil-simple"),o()(),i(33,"spk-menu",14)(34,"button",4)(35,"spk-icon"),t(36,"dots-three-vertical"),o()(),L(37,15),i(38,"button",16,0),t(40," Export "),i(41,"spk-icon"),t(42,"export"),o()(),i(43,"button",17,0),g("click",function(){let r=x(n).$implicit,k=p(3);return C(k.deleteBackup(r.Backup==null?null:r.Backup.ID))}),t(45," Delete "),i(46,"spk-icon"),t(47,"x-circle"),o()(),w(),o()()()}if(e&2){let n,a=l.$implicit,r=p(3);c(3),m(" ",(n=a.Backup==null?null:a.Backup.Name)!==null&&n!==void 0?n:"Backup name missing"," "),c(6),m(" ",$(10,13,a.Backup==null||a.Backup.Metadata==null?null:a.Backup.Metadata.LastBackupDate,"short")," "),c(2),d(!(a.Backup==null||a.Backup.Metadata==null)&&a.Backup.Metadata.LastBackupDuration?11:12),c(5),d(!(a.Backup==null||a.Backup.Metadata==null)&&a.Backup.Metadata.SourceSizeString?16:17),c(5),d(!(a.Backup==null||a.Backup.Metadata==null)&&a.Backup.Metadata.TargetSizeString?21:22),c(2),d(!(a.Backup==null||a.Backup.Metadata==null)&&a.Backup.Metadata.BackupListCount?23:24),c(3),f("loader",r.startingBackup()),c(4),s("routerLink",b(16,K,a.Backup==null?null:a.Backup.ID)),c(3),s("right",!0),c(5),s("routerLink",b(18,Q,a.Backup==null?null:a.Backup.ID)),c(5),f("loader",r.deletingBackup()===(a.Backup==null?null:a.Backup.ID))}}function oe(e,l){if(e&1&&H(0,ae,48,20,"div",8,F),e&2){let n=p(2);T(n.backups())}}function le(e,l){e&1&&t(0," No backups founds ")}function ce(e,l){if(e&1&&u(0,oe,2,0)(1,le,1,0),e&2){let n=p();d(n.backups().length?0:1)}}function pe(e,l){e&1&&(i(0,"div",18),_(1,"spk-progress-bar",19),i(2,"div",3)(3,"h3"),t(4,"Loading backups..."),o()()())}var D=class e{#e=P(j);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;startingBackup=this.#e.startingBackup;deletingBackup=this.#e.deletingBackup;ngOnInit(){this.#e.getBackups(!0)}startBackup(l){this.#e.startBackup(l)}deleteBackup(l){l&&window.confirm("Are you sure you want to delete this backup?")&&this.#e.deleteBackup(l)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=y({type:e,selectors:[["app-home"]],decls:33,vars:5,consts:[["option",""],[1,"type-a",3,"routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["spk-button",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"backups"],[1,"backup"],[1,"simple","success"],[1,"simple"],[1,"actions"],["spk-button","",3,"click"],["spk-button","",3,"routerLink"],[3,"right"],["menu",""],[3,"routerLink"],[3,"click"],[1,"loading-list"],[1,"indeterminate","primary"]],template:function(n,a){n&1&&(_(0,"app-status-bar"),i(1,"section")(2,"header")(3,"spk-card",1),_(4,"img",2),i(5,"div",3)(6,"h3"),t(7,"Backups"),o(),i(8,"p"),t(9,"Backups are stored in the cloud and can be restored at any time."),o()(),i(10,"button",4),t(11," Add "),i(12,"spk-icon"),t(13,"plus"),o()()(),i(14,"spk-card",1),_(15,"img",5),i(16,"div",3)(17,"h3"),t(18,"Restores"),o(),i(19,"p"),t(20,"Restores are stored in the cloud and can be restored at any time."),o()(),i(21,"button",4),t(22," Start "),i(23,"spk-icon"),t(24,"arrow-right"),o()()()(),i(25,"div",6)(26,"h2"),t(27,"My backups"),o(),i(28,"div",7),u(29,ce,2,1)(30,pe,5,0),E(31,29,q,null,30),o()()()),n&2&&(c(3),s("routerLink",B(3,G)),c(11),s("routerLink",B(4,J)),c(17),O(!a.backupsLoading()))},dependencies:[h,W,V,v,M,R],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem 0}header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding:0 2rem;gap:1rem}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:1rem}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-level-70)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{D as default};
|