@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
package/chunk-NYFN2CT6.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{a as Ae,b as Fe}from"./chunk-VJDUCP4Z.js";import{a as dt,b as Rt}from"./chunk-DNHLTHLR.js";import{b as M}from"./chunk-CUYURNCB.js";import{a as Je}from"./chunk-SRX3KYGO.js";import{a as xe,b as ne,c as _e,d as ie,e as oe,f as Nt,g as re,h as we,j as Pt,k as ae,l as Se,m as It,n as le,o as se,p as pe,q as H,s as me}from"./chunk-VXKI3RQB.js";import{a as Ge}from"./chunk-NAZLO3UY.js";import{a as ce,b as Xe,d as Gt,e as Mt,g as ke,i as et,k as de,m as tt,n as At,p as nt,q as ue,t as ve,u as Me}from"./chunk-3UHRO33D.js";import{H as te,W}from"./chunk-X2IPCPJN.js";import{k as Ze,u as Et}from"./chunk-JE2I63Y6.js";import{$ as j,$b as ze,Bb as C,Cb as p,F as Le,Fb as N,Gb as P,Hb as E,Mb as J,Nb as X,Ob as ee,Pb as l,Qb as I,R as ye,Ra as s,Rb as k,Sb as vt,Tb as Ft,Ub as bt,Vb as Tt,X as x,Xb as q,Ya as S,Yb as Vt,Za as Z,Zb as De,_b as Dt,dc as Ye,eb as d,ja as h,jb as c,ka as y,lb as fe,oa as wt,ob as _,p as He,pb as V,qb as D,qc as G,rb as O,sb as r,sc as Ot,tb as o,ub as u,va as St,vb as F,wa as kt,wb as b,xb as Ve,yb as v}from"./chunk-67JGZ4NF.js";import{a as U,c as xt}from"./chunk-7CGTOI24.js";function Wt(t,i){if(t&1&&(r(0,"p"),l(1),o()),t&2){let e=p();s(),I(e._data().message)}}var Kt={title:"Are you sure?",confirmText:"Confirm",cancelText:"Cancel"},Oe=class t{data=kt();_data=G(()=>U(U({},Kt),this.data()));closed=St();close(i="confirm"){this.closed.emit(i==="confirm")}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=j({type:t,selectors:[["app-confirm-dialog"]],inputs:{data:[1,"data"]},outputs:{closed:"closed"},standalone:!0,features:[q],decls:10,vars:4,consts:[["header",""],["content",""],["footer",""],["spk-button","",1,"",3,"click"],["spk-button","",1,"raised","primary",3,"click"]],template:function(e,n){e&1&&(r(0,"header",0)(1,"h3"),l(2),o()(),r(3,"div",1),d(4,Wt,2,1,"p"),o(),r(5,"footer",2)(6,"button",3),C("click",function(){return n.close("cancel")}),l(7),o(),r(8,"button",4),C("click",function(){return n.close("confirm")}),l(9),o()()),e&2&&(s(2),I(n._data().title),s(2),_(n._data().message?4:-1),s(3),I(n._data().cancelText),s(2),I(n._data().confirmText))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};var it=class t{fromString(i){if(!i)return null;let e=i.match(/(\d+)([smhDWMY])/);return e&&{value:parseInt(e[1]),unit:e[2]}}toString(i,e){return`${i}${e}`}static \u0275fac=function(e){return new(e||t)};static \u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ee=class t{#e=x(Ge);s3Providers=M(this.getS3Config("Providers"));s3Regions=M(this.getS3Config("Regions"));s3RegionHosts=M(this.getS3Config("RegionHosts"));s3StorageClasses=M(this.getS3Config("StorageClasses"));storjSatellites=M(this.getStorjConfig("Satellites"));storjAuthenticationMethods=M(this.getStorjConfig("AuthenticationMethods"));openstackProviders=M(this.getOpenstackConfig("Providers"));openstackVersions=M(this.getOpenstackConfig("Versions"));gcsLocations=M(this.getGcsConfig("Locations"));gcsStorageClasses=M(this.getGcsConfig("StorageClasses"));getS3Config(i){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-getconfig",requestBody:{"s3-config":i}}).pipe(He(e=>this.#n(e)))}createS3IamUser(i,e){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-iamconfig",requestBody:{"s3-operation":"CanCreateUser","s3-username":i,"s3-password":e}})}createS3PolicyIAM(i){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-iamconfig",requestBody:{"s3-operation":"GetPolicyDoc",path:i}})}getStorjConfig(i){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"storj-getconfig",requestBody:{"storj-config":i}}).pipe(He(e=>this.#n(e)))}getOpenstackConfig(i){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"openstack-getconfig",requestBody:{"openstack-config":i}}).pipe(He(e=>this.#n(e)))}getGcsConfig(i){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"gcs-getconfig",requestBody:{"gcs-config":i}}).pipe(He(e=>this.#n(e)))}#n(i){return(i.Result&&typeof i.Result=="object"&&Object.entries(i.Result).map(([e,n])=>({key:e,value:n})))??[]}static \u0275fac=function(e){return new(e||t)};static \u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"})};var be=new H,qe={file:{customFields:{path:{type:"FolderTree",name:"path",shortDescription:"File path",longDescription:"The path to store the backup",formElement:t=>be.control(t??"")}}},ssh:{customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"The server to connect to",formElement:t=>be.control(t??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"The port to connect to",formElement:t=>be.control(t??"",[_e.required,_e.max(65535)])},path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",formElement:t=>be.control(t??"")}},dynamicFields:["auth-username"],advancedFields:[{type:"FileTree",name:"ssh-keyfile",accepts:".key,",shortDescription:"This is a path to a private key file locally on the machine",longDescription:"This is a path to a private key file locally on the machine"}]},s3:{customFields:{bucket:{type:"String",name:"bucket",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:t=>be.control(t??"")},path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",formElement:t=>be.control(t??"")}},dynamicFields:[{name:"s3-server-name",shortDescription:"Server",type:"NonValidatedSelectableString",loadOptions:t=>t.get(Ee).s3Providers},"use-ssl","auth-username","auth-password"],advancedFields:[{name:"s3-client",type:"Enumeration",options:["aws","minio"]},{name:"s3-storage-class",type:"NonValidatedSelectableString",loadOptions:t=>t.get(Ee).s3StorageClasses}]},gcs:{oauthField:"authid",customFields:{path:{type:"Path",name:"path",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:t=>be.control(t??"")}},dynamicFields:[{name:"gcs-location",type:"NonValidatedSelectableString",loadOptions:t=>t.get(Ee).gcsLocations},{name:"gcs-storage-class",type:"NonValidatedSelectableString",loadOptions:t=>t.get(Ee).gcsStorageClasses},"authid"]},googledrive:{oauthField:"authid",customFields:{path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",formElement:t=>be.control(t??"")}},dynamicFields:["authid"]}};function Re(t,i){let e={},n={};return i.searchParams.forEach((a,m)=>{qe[t].dynamicFields?.includes(m)?n[m]=decodeURIComponent(a):e[m]=decodeURIComponent(a)}),{advanced:e,dynamic:n}}function We(t){let i=t.map(([e,n])=>`${e}=${n?encodeURIComponent(n.toString()):""}`).join("&");return i?"?"+i:""}var $e={file:{to:t=>{let i=We([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${t.custom.path}${i}`},from:(t,i,e)=>{let n=e.indexOf("file:///")===0,a=e.split(n?"///":"//")[1].substring(0,1)+i.hostname.substring(1);return U({destinationType:t,custom:{path:`${n?"/":""}${a}${i.pathname}`}},Re(t,i))}},ssh:{to:t=>{let i=We([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${t.custom.server}${t.custom.port?":"+t.custom.port:""}${t.custom.path.startsWith("/")?t.custom.path:"/"+t.custom.path}${i}`},from:(t,i,e)=>U({destinationType:t,custom:{server:i.hostname,port:i.port,path:i.pathname}},Re(t,i))},s3:{to:t=>{let i=We([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${t.custom.bucket}${t.custom.path.startsWith("/")?t.custom.path:"/"+t.custom.path}${i}`},from:(t,i,e)=>U({destinationType:t,custom:{path:i.pathname,bucket:i.hostname}},Re(t,i))},gcs:{to:t=>{let i=We([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${t.custom.path}${i}`},from:(t,i,e)=>{let{advanced:n,dynamic:a}=Re(t,i);return{destinationType:t,custom:{path:i.hostname+i.pathname},dynamic:a,advanced:n}}},googledrive:{to:t=>{let i=t.custom.path,e=We([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${i}${e}`},from:(t,i,e)=>{let{advanced:n,dynamic:a}=Re(t,i);return{destinationType:t,custom:{path:i.hostname+i.pathname},dynamic:a,advanced:n}}},fallbackMapper:{to:t=>"",from:(t,i,e)=>U({destinationType:t},Re(t,i))}};function ot(t){let i=t.destinationType;return!i||!$e.hasOwnProperty(i)?$e.fallbackMapper.to(t)??"":$e[i].to(t)??""}function ut(t){let i=URL.canParse(t),e=t.split("://")[0],n="http://"+t.split("://")[1],a=new URL(n);if(!$e.hasOwnProperty(e))return $e.fallbackMapper.from(e,a);if(!i)throw new Error("Invalid target path");return $e[e].from(e,a,t)}var $t=/[a-zA-Z0-9_\-\+\.!@#$%^&*?_~()-]/,rt=class t{generate(i,e=$t){let n;do n=this.generatePassword(i,e);while(this.calculatePasswordStrength(n)<5);return n}generatePassword(i,e=$t){let n=this;return Array.apply(null,{length:i}).map(()=>{let a;for(;;)if(a=String.fromCharCode(n.#e()),e.test(a))return a},this).join("")}calculatePasswordStrength(i){let e=1;return i.length>=8&&e++,i.match(/[a-z]/)&&i.match(/[A-Z]/)&&e++,i.match(/\d+/)&&e++,i.match(/.[!,@,#,$,%,^,&,*,?,_,~,(,),-]/)&&e++,Math.min(e,5)}#e(){if(window.crypto&&window.crypto.getRandomValues){let i=new Uint8Array(1);return window.crypto.getRandomValues(i),i[0]}else if(window.msCrypto&&window.msCrypto.getRandomValues){let i=new Uint8Array(1);return window.msCrypto.getRandomValues(i),i[0]}else return Math.floor(Math.random()*256)}static \u0275fac=function(e){return new(e||t)};static \u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"})};var Qt=["formRef"];function Yt(t,i){if(t&1&&(r(0,"option",14),l(1),o()),t&2){let e=i.$implicit;c("value",e.Key),s(),I(e.DisplayName)}}function Zt(t,i){if(t&1&&u(0,"spk-progress-bar",25),t&2){let e=p(3);fe("warn",e.calculatePasswordStrength()===1)("tertiary",e.calculatePasswordStrength()===2)("primary",e.calculatePasswordStrength()===4)("success",e.calculatePasswordStrength()===5),c("value",e.calculatePasswordStrength()*(100/5))}}function Jt(t,i){t&1&&(r(0,"span",20),l(1,"Passwords do not match"),o())}function Xt(t,i){t&1&&(r(0,"spk-icon"),l(1,"eye-slash"),o(),l(2," hide "))}function en(t,i){t&1&&(r(0,"spk-icon"),l(1,"eye"),o(),l(2," show "))}function tn(t,i){t&1&&(r(0,"spk-icon",27),l(1,"check"),o())}function nn(t,i){t&1&&(r(0,"spk-icon"),l(1,"copy"),o())}function on(t,i){if(t&1){let e=v();r(0,"button",26),C("click",function(){h(e);let a=p(3);return y(a.copyPassword())}),d(1,tn,2,0,"spk-icon",27)(2,nn,2,0,"spk-icon"),l(3),o()}if(t&2){let e=p(3);s(),_(e.copiedPassword()?1:2),s(2),k(" ",e.copiedPassword()?"Copied":"Copy"," password ")}}function rn(t,i){t&1&&(r(0,"spk-alert",24),l(1," Tip: Be sure to save your password. If you loose it you will lose access to your backups. "),o())}function an(t,i){if(t&1){let e=v();r(0,"div",15)(1,"spk-form-field")(2,"label",16),l(3," Create a password "),r(4,"sup"),l(5,"*"),o()(),u(6,"input",17),o(),d(7,Zt,1,9,"spk-progress-bar",18),r(8,"spk-form-field"),u(9,"input",19),d(10,Jt,2,0,"span",20),o(),r(11,"div",21)(12,"button",22),C("click",function(){h(e);let a=p(2);return y(a.showPassword.set(!a.showPassword()))}),d(13,Xt,3,0)(14,en,3,0),o(),r(15,"button",22),C("click",function(){h(e);let a=p(2);return y(a.generatePassword())}),r(16,"spk-icon"),l(17,"password"),o(),l(18," Generate password "),o(),d(19,on,4,2,"button",23),o(),d(20,rn,2,0,"spk-alert",24),o()}if(t&2){let e=p(2);s(6),c("type",e.showPassword()?"text":"password"),s(),_(e.generalForm.value.password?7:-1),s(2),c("type",e.showPassword()?"text":"password"),s(),_(e.generalForm.value.repeatPassword&&e.generalForm.value.repeatPassword!==e.generalForm.value.password?10:-1),s(3),_(e.showPassword()?13:14),s(6),_(e.showCopyPassword()?19:-1),s(),_(e.generalForm.value.password&&e.generalForm.value.password===e.generalForm.value.repeatPassword?20:-1)}}function ln(t,i){if(t&1&&(r(0,"spk-select",11)(1,"label",12),l(2,"Encryption"),o(),u(3,"input",13),D(4,Yt,2,2,"option",14,V),o(),d(6,an,21,7,"div",15)),t&2){let e=p();c("displayFn",e.displayFn()),s(4),O(e.encryptionOptions()),s(2),_(e.encryptionFieldSignal()!==""?6:-1)}}function sn(t,i){if(t&1&&(r(0,"button",9),l(1," Continue "),r(2,"spk-icon"),l(3,"arrow-right"),o()()),t&2){let e=p();c("disabled",e.generalForm.invalid)}}function pn(t,i){if(t&1&&(r(0,"spk-tooltip",10)(1,"button",9),l(2," Continue "),r(3,"spk-icon"),l(4,"arrow-right"),o()()()),t&2){let e=p();c("disabled",!(e.showCopyPassword()&&!e.copiedPassword())),s(),c("disabled",e.generalForm.invalid||e.showCopyPassword()&&!e.copiedPassword())}}var Be=new H,Bt=(t={name:"",description:"",encryption:"",password:"",repeatPassword:""})=>Be.group({name:Be.control(t.name,[_e.required]),description:Be.control(t.description),encryption:Be.control(t.encryption,[Rt()]),password:Be.control(t.password,[dt(i=>i?.value.encryption!=="",[_e.required])]),repeatPassword:Be.control(t.repeatPassword,[dt(i=>i?.value.encryption!=="",[_e.required])])}),_t={Key:"",DisplayName:"None"},ft=class t{#e=x(W);#n=x(te);#i=x(rt);#o=x(K);#t=x(Je);formRef=Z.required("formRef");generalForm=this.#o.generalForm;generalFormSignal=this.#o.generalFormSignal;encryptionFieldSignal=this.#o.encryptionFieldSignal;encryptionOptions=this.#o.encryptionOptions;isNew=this.#o.isNew;showPassword=S(!1);copiedPassword=S(!1);showCopyPassword=S(!1);encryptionEffect=Ot(()=>{this.encryptionFieldSignal()===""&&(this.copiedPassword.set(!1),this.showCopyPassword.set(!1))},{allowSignalWrites:!0});calculatePasswordStrength=G(()=>{let e=this.generalFormSignal()?.password??"";return this.#i.calculatePasswordStrength(e)});ngOnInit(){this.formRef().nativeElement.focus()}exit(){this.#o.exit()}async copyPassword(){let i=this.generalForm.controls.password.value;await this.#r(i??""),this.copiedPassword.set(!0)}async#r(i){try{await navigator.clipboard.writeText(i)}catch{try{let n=document.createElement("textarea");n.value=i,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)}catch(n){console.error("Failed to copy text: ",n)}}}displayFn(){let i=this.#t.systemInfo()?.EncryptionModules??[];return e=>{let n=[_t,...i].find(a=>a.Key===e);return n?`${n.DisplayName}`:""}}generatePassword(){this.copiedPassword.set(!1);let i=this.#i.generate(16);this.generalForm.controls.password.setValue(i),this.generalForm.controls.repeatPassword.setValue(i),this.showCopyPassword.set(!0)}next(){this.#e.navigate(["destination"],{relativeTo:this.#n.parent})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=j({type:t,selectors:[["app-general"]],viewQuery:function(e,n){e&1&&J(n.formRef,Qt,5),e&2&&X()},standalone:!0,features:[q],decls:22,vars:3,consts:[["formRef",""],["autocomplete","off",3,"submit","formGroup"],[1,"title-30"],["for","backupName"],["type","text","tabindex","1","placeholder","Your backup name","formControlName","name"],["for","backupDescription"],["id","backupDescription","tabindex","2","placeholder","Your backup description","formControlName","description"],[1,"form-actions"],["type","button","spk-button","",3,"click"],["spk-button","","type","submit",1,"raised","primary",3,"disabled"],["message","Remember to copy the password",1,"primary",3,"disabled"],[3,"displayFn"],["for","encryption"],["type","text","id","encryption","tabindex","3","placeholder","Encryption","formControlName","encryption"],[3,"value"],[1,"passwords"],["for","password"],["id","password","tabindex","4","autocomplete","off","placeholder","Password","formControlName","password",3,"type"],[1,"raised",3,"warn","tertiary","primary","success","value"],["id","repeatPassword","tabindex","5","autocomplete","off","placeholder","Repeat password","formControlName","repeatPassword",3,"type"],["error",""],[1,"password-actions"],["spk-button","","type","button",1,"small",3,"click"],["spk-button","","type","button",1,"small","copy"],["type","primary"],[1,"raised",3,"value"],["spk-button","","type","button",1,"small","copy",3,"click"],[1,"spk-success"]],template:function(e,n){if(e&1){let a=v();r(0,"form",1,0),C("submit",function(){return h(a),y(n.next())}),r(2,"h3",2),l(3,"General backup settings"),o(),r(4,"spk-form-field")(5,"label",3),l(6," Backup name "),r(7,"sup"),l(8,"*"),o()(),u(9,"input",4),o(),r(10,"spk-form-field")(11,"label",5),l(12,"Backup description"),o(),u(13,"textarea",6),o(),d(14,ln,7,2),r(15,"div",7)(16,"button",8),C("click",function(){return h(a),y(n.exit())}),r(17,"spk-icon"),l(18,"arrow-left"),o(),l(19," Exit "),o(),d(20,sn,4,1,"button",9)(21,pn,5,2,"spk-tooltip",10),o()()}e&2&&(c("formGroup",n.generalForm),s(14),_(n.isNew()?14:-1),s(6),_(n.encryptionFieldSignal()===""?20:21))},dependencies:[me,re,se,pe,ne,ie,oe,ae,le,de,ue,ke,ce,At,Xe,Me],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}sup[_ngcontent-%COMP%]{padding:0 .125rem;color:var(--warn-500)}.passwords[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.password-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.copy[_ngcontent-%COMP%] spk-icon.spk-success[_ngcontent-%COMP%]{color:var(--success-500)}"],changeDetection:0})};var mn=["formRef"],cn=(t,i)=>({index:t,formView:i,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),dn=t=>({$implicit:t});function un(t,i){if(t&1&&(r(0,"option",11),l(1),o()),t&2){let e=i.$implicit;c("value",e),s(),I(e)}}function fn(t,i){if(t&1&&(r(0,"option",11),l(1),o()),t&2){let e=i.$implicit;c("value",e.value),s(),I(e.name)}}function _n(t,i){if(t&1){let e=v();r(0,"button",23,2),C("click",function(){let a=h(e).$implicit,m=p();return y(m.addNewOption(a))}),l(2),o()}if(t&2){let e=i.$implicit;s(2),I(e.name)}}function gn(t,i){t&1&&Ve(0)}function Cn(t,i){if(t&1&&d(0,gn,1,0,"ng-container",24),t&2){let e=i.$implicit,n=i.$index;p();let a=ee(39);c("ngTemplateOutlet",a)("ngTemplateOutletContext",De(5,dn,Dt(2,cn,n,e)))}}function hn(t,i){if(t&1&&(r(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function yn(t,i){if(t&1&&(r(0,"app-file-tree",27)(1,"label",33),l(2),d(3,hn,3,1,"spk-tooltip",34),o(),u(4,"input",35),o()),t&2){let e,n=p().$implicit,a=p();c("startingPath",a.getFormFieldValue(0,n.formGroupName,n.formView.name))("accepts",n.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),s(),P("for","destination-",n.formGroupName,"-",n.index,""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),P("id","destination-",n.formGroupName,"-",n.index,""),N("formControlName",n.formView.name)}}function xn(t,i){if(t&1&&(r(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function wn(t,i){if(t&1&&(r(0,"app-file-tree",28)(1,"label",33),l(2),d(3,xn,3,1,"spk-tooltip",34),o(),u(4,"input",35),o()),t&2){let e,n=p().$implicit,a=p();c("startingPath",a.getFormFieldValue(0,n.formGroupName,n.formView.name)),s(),P("for","destination-",n.formGroupName,"-",n.index,""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),P("id","destination-",n.formGroupName,"-",n.index,""),N("formControlName",n.formView.name)}}function Sn(t,i){if(t&1&&(r(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function kn(t,i){t&1&&(r(0,"spk-icon",36),l(1,"link"),o())}function vn(t,i){t&1&&(r(0,"spk-icon",36),l(1,"textbox"),o())}function Fn(t,i){if(t&1&&(r(0,"spk-form-field")(1,"label",33),l(2),d(3,Sn,3,1,"spk-tooltip",34),o(),u(4,"input",35),d(5,kn,2,0,"spk-icon",36)(6,vn,2,0,"spk-icon",36),o()),t&2){let e,n=p().$implicit;s(),P("for","destination-",n.formGroupName,"-",n.index,""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),P("id","destination-",n.formGroupName,"-",n.index,""),N("formControlName",n.formView.name),s(),_(n.formView.type==="Path"?5:6)}}function bn(t,i){if(t&1){let e=v();r(0,"span",40),C("click",function(){h(e);let a=p(2).$implicit,m=p();return y(m.oauthStartTokenCreation(a.formViewType))}),l(1,"AuthID"),o()}}function Tn(t,i){t&1&&(r(0,"spk-icon",36),l(1,"password"),o())}function Vn(t,i){if(t&1){let e=v();r(0,"spk-icon",41),C("click",function(){h(e);let a=p(2).$implicit;return y(a.formView.showPassword=!a.formView.showPassword)}),l(1," eye "),o()}}function Dn(t,i){if(t&1){let e=v();r(0,"spk-icon",41),C("click",function(){h(e);let a=p(2).$implicit;return y(a.formView.showPassword=!a.formView.showPassword)}),l(1," eye-slash "),o()}}function On(t,i){if(t&1&&(r(0,"spk-form-field")(1,"label",33),l(2),o(),u(3,"input",37),d(4,bn,2,0,"span",38)(5,Tn,2,0,"spk-icon",36)(6,Vn,2,0,"spk-icon",39)(7,Dn,2,0,"spk-icon",39),o()),t&2){let e,n=p().$implicit;s(),P("for","destination-",n.formGroupName,"-",n.index,""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),P("id","destination-",n.formGroupName,"-",n.index,""),N("formControlName",n.formView.name),c("type",n.formView.showPassword?"text":"password"),s(),_(n.oauthField===n.formView.name?4:5),s(2),_(n.formView.showPassword?6:7)}}function En(t,i){if(t&1&&(r(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Nn(t,i){if(t&1&&(r(0,"option",11),l(1),o()),t&2){let e=i.$implicit;c("value",e),s(),I(e)}}function Pn(t,i){if(t&1&&(r(0,"spk-select")(1,"label",33),l(2),d(3,En,3,1,"spk-tooltip",34),o(),u(4,"input",42),F(5,10),D(6,Nn,2,2,"option",11,V),b(),o()),t&2){let e,n=p().$implicit;s(),P("for","destination-",n.formGroupName,"-",n.index,""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),P("id","destination-",n.formGroupName,"-",n.index,""),N("formControlName",n.formView.name),s(2),O(n.formView.options)}}function In(t,i){if(t&1&&(r(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Gn(t,i){if(t&1&&(r(0,"option",11),l(1),o()),t&2){let e=i.$implicit;c("value",e),s(),I(e)}}function Mn(t,i){if(t&1&&(r(0,"div",29)(1,"label",33),l(2),d(3,In,3,1,"spk-tooltip",34),o(),r(4,"div",43)(5,"spk-form-field"),u(6,"input",44),r(7,"spk-icon",36),l(8,"resize"),o()(),r(9,"spk-select"),u(10,"label")(11,"input",45),F(12,10),D(13,Gn,2,2,"option",11,V),b(),o()()()),t&2){let e,n=p().$implicit,a=p();c("formGroupName",n.formView.name),s(),P("for","destination-",n.formGroupName,"-",n.index,""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(3),P("id","destination-",n.formGroupName,"-",n.index,""),s(7),O(a.sizeOptions())}}function An(t,i){if(t&1&&(r(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Rn(t,i){if(t&1&&(r(0,"spk-form-field")(1,"label",33),l(2),d(3,An,3,1,"spk-tooltip",34),o(),u(4,"input",46),r(5,"spk-icon",36),l(6,"numpad"),o()()),t&2){let e,n=p().$implicit;s(),P("for","destination-",n.formGroupName,"-",n.index,""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),P("id","destination-",n.formGroupName,"-",n.index,""),N("formControlName",n.formView.name)}}function $n(t,i){if(t&1&&(r(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Bn(t,i){if(t&1&&(r(0,"spk-toggle",30)(1,"label",33),l(2),d(3,$n,3,1,"spk-tooltip",34),o(),u(4,"input",47),o()),t&2){let e,n=p().$implicit;s(),P("for","destination-",n.formGroupName,"-",n.index,""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),P("id","destination-",n.formGroupName,"-",n.index,""),N("formControlName",n.formView.name)}}function Un(t,i){if(t&1&&(r(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Hn(t,i){t&1&&(r(0,"spk-option",49),l(1,"None"),o()),t&2&&c("value","None")}function Ln(t,i){if(t&1&&(r(0,"spk-option",11),l(1),u(2,"spk-checkbox",50),o()),t&2){let e=p().$implicit;c("value",e),s(),k(" ",e," ")}}function zn(t,i){if(t&1&&d(0,Hn,2,1,"spk-option",49)(1,Ln,3,2,"spk-option",11),t&2){let e=i.$implicit;_(e==="None"?0:1)}}function jn(t,i){if(t&1&&(r(0,"spk-select",31)(1,"label",33),l(2),d(3,Un,3,1,"spk-tooltip",34),o(),u(4,"input",48),F(5,10),D(6,zn,2,1,null,null,V),b(),o()),t&2){let e,n=p().$implicit;c("selectMultiple",!0),s(),P("for","destination-",n.formGroupName,"-",n.index,""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),N("formControlName",n.formView.name),s(2),O(n.formView.options)}}function qn(t,i){if(t&1&&(r(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Wn(t,i){if(t&1&&(r(0,"spk-form-field")(1,"label",33),l(2),d(3,qn,3,1,"spk-tooltip",34),o(),u(4,"input",35),o()),t&2){let e,n=p().$implicit;s(),P("for","destination-",n.formGroupName,"-",n.index,""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),P("id","destination-",n.formGroupName,"-",n.index,""),N("formControlName",n.formView.name)}}function Kn(t,i){if(t&1){let e=v();r(0,"div",25),F(1,26),d(2,yn,5,14,"app-file-tree",27)(3,wn,5,10,"app-file-tree",28)(4,Fn,7,10,"spk-form-field")(5,On,8,11,"spk-form-field")(6,Pn,8,9,"spk-select")(7,Mn,15,9,"div",29)(8,Rn,7,9,"spk-form-field")(9,Bn,5,9,"spk-toggle",30)(10,jn,8,7,"spk-select",31)(11,Wn,5,9,"spk-form-field"),b(),r(12,"button",32),C("click",function(){let a=h(e).$implicit,m=p();return y(m.removeFormView(a.formView,0))}),r(13,"spk-icon"),l(14,"x-circle"),o()()()}if(t&2){let e=i.$implicit;s(),c("formGroupName",e.formGroupName),s(),_(e.formView.type==="FileTree"?2:e.formView.type==="FolderTree"?3:e.formView.type==="String"||e.formView.type==="Path"?4:e.formView.type==="Password"?5:e.formView.type==="Enumeration"?6:e.formView.type==="Size"?7:e.formView.type==="Integer"?8:e.formView.type==="Boolean"?9:e.formView.type==="Flags"?10:e.formView.type==="Timespan"?11:-1)}}var Ce=new H,Qn=["Bytes","KB","MB","GB","TB","PB"],Yn=[{value:"",name:"Keep all backups"},{value:"time",name:"Delete backups that are older than"},{value:"versions",name:"Keep a specific number of backups"},{value:"smart",name:"Smart backup retention"},{value:"custom",name:"Custom backup retention"}],Ut=(t={remoteVolumeSize:50,size:"MB",backupRetention:"",advancedOptions:[]})=>Ce.group({remoteVolumeSize:Ce.group({size:Ce.control(t.remoteVolumeSize),unit:Ce.control(t.size)}),backupRetention:Ce.control(t.backupRetention),advancedOptions:Ce.group({})}),nr=(t,i)=>Ce.group({name:Ce.control(t),value:Ce.control(i)}),gt=class t{#e=x(K);#n=x(W);#i=x(te);formRef=Z.required("formRef");optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;isSubmitting=this.#e.isSubmitting;sizeOptions=S(Qn);rentationOptions=S(Yn);oauthStartTokenCreation(i){}getFormFieldValue(i,e,n){return this.optionsForm.controls.advancedOptions.controls[n].value}removeFormView(i,e){this.#e.removeOptionFromFormGroup(i)}addNewOption(i){this.#e.addOptionToFormGroup(i)}retentionOptionDisplayFn(){let i=this.rentationOptions();return e=>{let n=i.find(a=>a.value===e);return n?n.name:""}}displayFn(){let i=this.#e.advancedOptions();return e=>{let n=i.find(a=>a.name===e);return n?`${n.name}`:""}}goBack(){this.#n.navigate(["schedule"],{relativeTo:this.#i.parent})}submit(){this.#e.submit()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=j({type:t,selectors:[["app-options"]],viewQuery:function(e,n){e&1&&J(n.formRef,mn,5),e&2&&X()},standalone:!0,features:[q],decls:49,vars:5,consts:[["formRef",""],["fieldTemplate",""],["option",""],[3,"submit","formGroup"],[1,"title-30"],[1,"remote-volume-wrap"],["formGroupName","remoteVolumeSize",1,"row-inputs"],["for","size"],["type","number","id","size","formControlName","size"],["type","text","placeholder","Select an option...","formControlName","unit"],["options",""],[3,"value"],["href","#",1,"spk-primary"],[3,"displayFn"],["type","text","formControlName","backupRetention"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small"],["menu",""],["type","button"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],["type","button",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],["type","search",3,"id","formControlName"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["type","search","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],["type","text","id","text",3,"formControlName"],["deselect","",3,"value"],[1,"raised","primary"]],template:function(e,n){if(e&1){let a=v();r(0,"form",3,0),C("submit",function(){return h(a),y(n.submit())}),r(2,"h3",4),l(3,"Options"),o(),r(4,"div",5)(5,"div",6)(6,"spk-form-field")(7,"label",7),l(8,"Remote volume size"),o(),u(9,"input",8),o(),r(10,"spk-select"),u(11,"input",9),F(12,10),D(13,un,2,2,"option",11,V),b(),o()(),r(15,"p"),l(16," The backups will be split up into multiple files called volumes. Here you can set the maximum size of the individual volume files. "),r(17,"a",12),l(18,"Read more"),o()()(),r(19,"spk-select",13)(20,"label",7),l(21,"Backup retention"),o(),u(22,"input",14),D(23,fn,2,2,"option",11,V),o(),r(25,"app-toggle-card",15),F(26,16),l(27," Advanced options "),r(28,"spk-menu")(29,"button",17),l(30," Add advanced option "),r(31,"spk-icon"),l(32,"plus"),o()(),F(33,18),D(34,_n,3,1,"button",19,V),b(),o(),b(),D(36,Cn,1,7,"ng-container",null,V),o(),d(38,Kn,15,2,"ng-template",null,1,Ye),r(40,"div",20)(41,"button",21),C("click",function(){return h(a),y(n.goBack())}),r(42,"spk-icon"),l(43,"arrow-left"),o(),l(44," Go back "),o(),r(45,"button",22)(46,"spk-icon"),l(47,"arrow-right"),o(),l(48," Submit "),o()()()}e&2&&(c("formGroup",n.optionsForm),s(13),O(n.sizeOptions()),s(6),c("displayFn",n.retentionOptionDisplayFn()),s(4),O(n.rentationOptions()),s(2),c("disallowToggle",!0),s(9),O(n.nonSelectedOptions()),s(2),O(n.selectedOptions()),s(9),fe("loader",n.isSubmitting()))},dependencies:[me,re,se,pe,ne,we,xe,ie,oe,ae,le,Se,Ze,tt,ue,ke,ce,de,ve,et,nt,Me,Ae,Fe],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 40px;align-items:flex-end}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var Zn=["formRef"];function Jn(t,i){if(t&1&&(r(0,"option",24),l(1),o()),t&2){let e=i.$implicit;c("value",e.key),s(),I(e.label)}}function Xn(t,i){if(t&1){let e=v();r(0,"div",11)(1,"spk-form-field")(2,"label",12),l(3,"Next time"),o(),r(4,"input",13,1),C("focus",function(){h(e);let a=ee(5);return y(a.showPicker())}),o(),r(6,"spk-icon",14),l(7,"clock"),o()(),r(8,"spk-form-field"),u(9,"label",15),r(10,"input",16,2),C("focus",function(){h(e);let a=ee(11);return y(a.showPicker())}),o(),r(12,"spk-icon",14),l(13,"calendar"),o()()(),F(14,17),r(15,"div",18)(16,"spk-form-field")(17,"label",19),l(18,"Run again every"),o(),u(19,"input",20),o(),r(20,"spk-select",21),u(21,"input",22),F(22,23),D(23,Jn,2,2,"option",24,V),b(),o()(),r(25,"app-toggle-card",25),F(26,26),l(27,"Allowed days"),b(),r(28,"div",27)(29,"spk-toggle",6),l(30," Monday "),u(31,"input",28),o(),r(32,"spk-toggle",6),l(33," Tuesday "),u(34,"input",29),o(),r(35,"spk-toggle",6),l(36," Wednesday "),u(37,"input",30),o(),r(38,"spk-toggle",6),l(39," Thursday "),u(40,"input",31),o(),r(41,"spk-toggle",6),l(42," Friday "),u(43,"input",32),o(),r(44,"spk-toggle",6),l(45," Saturday "),u(46,"input",33),o(),r(47,"spk-toggle",6),l(48," Sunday "),u(49,"input",34),o()()(),b()}if(t&2){let e=p();s(20),c("displayFn",e.displayFn),s(3),O(e.unitOptions),s(2),c("disallowToggle",!0)}}var A=new H,Ht=[{key:"s",label:"Seconds"},{key:"m",label:"Minutes"},{key:"h",label:"Hours"},{key:"D",label:"Days"},{key:"W",label:"Weeks"},{key:"M",label:"Months"},{key:"Y",label:"Years"}],Lt=(t={autoRun:!1,nextTime:{time:"13:00",date:new Date().toISOString().split("T")[0]},runAgain:{repeatValue:1,repeatUnit:"D",allowedDays:{mon:!1,tue:!1,wed:!1,thu:!1,fri:!1,sat:!1,sun:!1}}})=>A.group({autoRun:A.control(t.autoRun),nextTime:A.group({time:A.control(t.nextTime.time),date:A.control(t.nextTime.date)}),runAgain:A.group({repeatValue:A.control(t.runAgain.repeatValue),repeatUnit:A.control(t.runAgain.repeatUnit),allowedDays:A.group({mon:A.control(t.runAgain.allowedDays.mon),tue:A.control(t.runAgain.allowedDays.tue),wed:A.control(t.runAgain.allowedDays.wed),thu:A.control(t.runAgain.allowedDays.thu),fri:A.control(t.runAgain.allowedDays.fri),sat:A.control(t.runAgain.allowedDays.sat),sun:A.control(t.runAgain.allowedDays.sun)})})}),Ct=class t{#e=x(K);#n=x(W);#i=x(te);formRef=Z.required("formRef");scheduleForm=this.#e.scheduleForm;scheduleFormSignal=this.#e.scheduleFormSignal;unitOptions=Ht;displayFn(i){let e=Ht.find(n=>n.key===i);return e?`${e.label}`:""}goBack(){this.#n.navigate(["source-data"],{relativeTo:this.#i.parent})}next(){this.#n.navigate(["options"],{relativeTo:this.#i.parent})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=j({type:t,selectors:[["app-schedule"]],viewQuery:function(e,n){e&1&&J(n.formRef,Zn,5),e&2&&X()},standalone:!0,features:[q],decls:20,vars:2,consts:[["formRef",""],["timeRef",""],["dateRef",""],[3,"submit","formGroup"],[1,"title-30"],[1,"toggle-wrap"],[1,"raised","primary"],["type","checkbox","formControlName","autoRun"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],["formGroupName","nextTime",1,"row-inputs"],["for","time"],["type","time","id","time","formControlName","time",3,"focus"],["suffix",""],["for","date"],["type","date","id","date","formControlName","date",3,"focus"],["formGroupName","runAgain"],[1,"row-inputs"],["for","repeatValue"],["type","number","id","repeatValue","formControlName","repeatValue"],[3,"displayFn"],["type","text","id","repeatUnit","formControlName","repeatUnit"],["options",""],[3,"value"],["formGroupName","allowedDays",3,"disallowToggle"],["title",""],[1,"days-wrap"],["type","checkbox","formControlName","mon"],["type","checkbox","formControlName","tue"],["type","checkbox","formControlName","wed"],["type","checkbox","formControlName","thu"],["type","checkbox","formControlName","fri"],["type","checkbox","formControlName","sat"],["type","checkbox","formControlName","sun"]],template:function(e,n){if(e&1){let a=v();r(0,"form",3,0),C("submit",function(){return h(a),y(n.next())}),r(2,"h3",4),l(3,"Schedule"),o(),r(4,"div",5)(5,"spk-toggle",6),l(6," Automatically run backups "),u(7,"input",7),o(),r(8,"p"),l(9,"If a date was missed, the job will run as soon as possible."),o()(),d(10,Xn,50,2),r(11,"div",8)(12,"button",9),C("click",function(){return h(a),y(n.goBack())}),r(13,"spk-icon"),l(14,"arrow-left"),o(),l(15," Go back "),o(),r(16,"button",10)(17,"spk-icon"),l(18,"arrow-right"),o(),l(19," Continue "),o()()()}if(e&2){let a;c("formGroup",n.scheduleForm),s(10),_((a=n.scheduleFormSignal())!=null&&a.autoRun?10:-1)}},dependencies:[me,re,se,pe,ne,we,xe,ie,oe,ae,le,Se,de,ue,ve,ce,ke,Fe],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.toggle-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.days-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var ei=["formRef"];function ti(t,i){if(t&1&&(r(0,"option",20),l(1),o()),t&2){let e=i.$implicit;c("value",e),s(),I(e)}}function ni(t,i){if(t&1&&(r(0,"div",13)(1,"spk-form-field"),u(2,"input",17),o(),r(3,"spk-select"),u(4,"input",18),F(5,19),D(6,ti,2,2,"option",20,V),b(),o()()),t&2){let e=p();s(6),O(e.sizeOptions())}}var he=new H,ii=["Bytes","KB","MB","GB","TB","PB"],oi=["Contains","Does not contain","Is greater than","Is less than"];var zt=(t={path:"",excludes:{hidden:!1,system:!1,temporary:!1,filesLargerThan:null}})=>he.group({path:he.control(t.path),excludes:he.group({hidden:he.control(t.excludes.hidden),system:he.control(t.excludes.system),temporary:he.control(t.excludes.temporary),filesLargerThan:he.group({size:he.control(null),unit:he.control(null)})})}),ht=class t{#e=x(K);#n=x(W);#i=x(te);formRef=Z.required("formRef");sourceDataForm=this.#e.sourceDataForm;sourceDataFormSignal=this.#e.sourceDataFormSignal;filesLargerThan=G(()=>this.sourceDataFormSignal()?.excludes?.filesLargerThan?.size!==null);sizeOptions=S(ii);expressionOptions=S(oi);getPath(){return this.sourceDataForm.value.path??null}toggleFilesLargerThan(){this.sourceDataForm.controls.excludes.value.filesLargerThan?.size===null?this.sourceDataForm.controls.excludes.controls.filesLargerThan.setValue({size:50,unit:"MB"}):this.sourceDataForm.controls.excludes.controls.filesLargerThan.setValue({size:null,unit:null})}goBack(){this.#n.navigate(["destination"],{relativeTo:this.#i.parent})}next(){this.#n.navigate(["schedule"],{relativeTo:this.#i.parent})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=j({type:t,selectors:[["app-source-data"]],viewQuery:function(e,n){e&1&&J(n.formRef,ei,5),e&2&&X()},standalone:!0,features:[q],decls:32,vars:7,consts:[["formRef",""],[3,"submit","formGroup"],[1,"title-30"],[3,"multiSelect","startingPath"],["for","path"],["type","text","id","path","tabindex","4","placeholder","Path","formControlName","path"],["formGroupName","excludes",3,"isActive"],["title",""],[1,"raised","primary"],["type","checkbox","placeholder","Hidden files","formControlName","hidden"],["type","checkbox","placeholder","System files","formControlName","system"],["type","checkbox","placeholder","Temporary files","formControlName","temporary"],[1,"raised","primary",3,"click"],["formGroupName","filesLargerThan",1,"row-inputs"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],["type","number","formControlName","size"],["type","text","formControlName","unit","placeholder","Select an option..."],["options",""],[3,"value"]],template:function(e,n){if(e&1){let a=v();r(0,"form",1,0),C("submit",function(){return h(a),y(n.next())}),r(2,"h3",2),l(3,"Source Data"),o(),r(4,"app-file-tree",3)(5,"label",4),l(6,"Folder path"),o(),u(7,"input",5),o(),r(8,"app-toggle-card",6),F(9,7),l(10,"Exclude"),b(),r(11,"spk-toggle",8),l(12," Hidden files "),u(13,"input",9),o(),r(14,"spk-toggle",8),l(15," System files "),u(16,"input",10),o(),r(17,"spk-toggle",8),l(18," Temporary files "),u(19,"input",11),o(),r(20,"spk-toggle",12),C("click",function(){return h(a),y(n.toggleFilesLargerThan())}),l(21," Files larger than "),o(),d(22,ni,8,0,"div",13),o(),r(23,"div",14)(24,"button",15),C("click",function(){return h(a),y(n.goBack())}),r(25,"spk-icon"),l(26,"arrow-left"),o(),l(27," Go back "),o(),r(28,"button",16)(29,"spk-icon"),l(30,"arrow-right"),o(),l(31," Continue "),o()()()}e&2&&(c("formGroup",n.sourceDataForm),s(4),c("multiSelect",!0)("startingPath",n.getPath()),s(4),c("isActive",!0),s(12),fe("active",n.filesLargerThan()),s(2),_(n.filesLargerThan()?22:-1))},dependencies:[me,re,se,pe,ne,we,xe,ie,oe,ae,le,Se,de,ce,ke,ue,ve,Ae,Fe],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.row-inputs[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr min-content;gap:.5rem}.filter-inputs[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:flex-end}.filter-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.filter-inputs[_ngcontent-%COMP%] .filter-removal[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;justify-content:center;height:2.5rem;flex:0 0}"],changeDetection:0})};var Q=new H,K=class t{#e=x(W);#n=x(Je);#i=x(Ge);#o=x(it);generalForm=Bt();sourceDataForm=zt();scheduleForm=Lt();destinationForm=jt();optionsForm=Ut();isDraft=S(!1);backupId=S(null);isSubmitting=S(!1);finishedLoading=S(!1);backupDefaults=S(null);isNew=G(()=>this.backupId()==="new");selectedOptions=S([]);selectedAdvancedFormPair=S([]);destinationFormPair=S({oauthField:null,custom:[],dynamic:[],advanced:[]});notSelectedAdvancedFormPair=G(()=>{let i=this.destinationFormPair()?.advanced??[],e=this.selectedAdvancedFormPair()??[];return i.filter(n=>e.findIndex(a=>a.name===n.name)===-1)});selectedHttpOptions=S([]);notSelectedHttpOptions=G(()=>{let i=this.httpOptions(),e=this.selectedHttpOptions()??[];return i.filter(n=>e.findIndex(a=>a.name===n.name)===-1)});sourceDataFormSignal=M(this.sourceDataForm.valueChanges);destinationFormSignal=M(this.destinationForm.valueChanges);generalFormSignal=M(this.generalForm.valueChanges);encryptionFieldSignal=M(this.generalForm.controls.encryption.valueChanges);scheduleFormSignal=M(this.scheduleForm.valueChanges);destinationOptions=G(()=>this.#n.backendModules()??[]);httpOptions=G(()=>this.#n.systemInfo()?.GenericModules?.find(i=>i.Key==="http-options")?.Options?.map(this.#t)??[]);advancedOptions=G(()=>this.#n.systemInfo()?.Options?.map(this.#t)??[]);#t(i){return{name:i.Name,type:i.Type,shortDescription:i.ShortDescription??void 0,longDescription:i.LongDescription??void 0,options:i.ValidValues}}encryptionOptions=G(()=>{let i=this.#n.systemInfo()?.EncryptionModules??[];return[_t,...i]});nonSelectedOptions=G(()=>this.advancedOptions().sort((i,e)=>i?.name&&e?.name?i?.name.localeCompare(e?.name):0).filter(i=>this.selectedOptions()?.findIndex(e=>e.name===i.name)===-1));addAdvancedFormPairByName(i,e,n){let a=this.notSelectedAdvancedFormPair().find(m=>m.name===i);a&&this.addAdvancedFormPair(a,e,n)}addHttpOptionByName(i,e,n){let a=this.notSelectedHttpOptions().find(m=>m.name===i);a&&this.addHttpOption(a,e,n)}addAdvancedFormPair(i,e,n){let a=this.destinationForm.controls.destinations.controls.at(e)?.controls.advanced,m=n??i.defaultValue;this.createFormField(a,i,m),this.selectedAdvancedFormPair.set([...this.selectedAdvancedFormPair(),i])}addHttpOption(i,e,n){let a=this.destinationForm.controls.destinations.controls.at(e)?.controls.advanced,m=n??i.defaultValue;this.createFormField(a,i,m),this.selectedHttpOptions.set([...this.selectedHttpOptions(),i])}removeAdvancedFormPair(i,e){this.destinationForm.controls.destinations.controls.at(e)?.controls.advanced.removeControl(i.name),this.selectedAdvancedFormPair().findIndex(a=>a.name===i.name)!==-1?this.selectedAdvancedFormPair.update(a=>(a=a.filter(m=>m.name!==i.name),a)):this.selectedHttpOptions.update(a=>(a=a.filter(m=>m.name!==i.name),a))}removeHttpOption(i,e){this.destinationForm.controls.destinations.controls.at(e)?.controls.advanced.removeControl(i.name),this.selectedHttpOptions.update(n=>(n=n.filter(a=>a.name!==i.name),n))}submit(){this.isSubmitting.set(!0);let i=this.#s(),e=this.backupId();e==="new"||!e||this.isDraft()?this.#i.postApiV1Backups({requestBody:i}).pipe(Le(()=>this.isSubmitting.set(!1))).subscribe({next:n=>{console.log("submitted res",n),this.exit()},error:n=>{console.error("submitted error",n)}}):this.#i.putApiV1BackupById({id:e,requestBody:i}).pipe(Le(()=>this.isSubmitting.set(!1))).subscribe({next:n=>{console.log("submitted res",n),this.exit()},error:n=>{console.error("submitted error",n)}})}exit(){this.#m(),this.#e.navigate(["/"])}updateFieldsFromTargetUrl(i){this.#r(),setTimeout(()=>{this.#l(i)})}#r(){this.destinationFormPair.set({oauthField:null,custom:[],dynamic:[],advanced:[]}),this.selectedAdvancedFormPair.set([]),this.selectedHttpOptions.set([]),this.destinationForm.controls.destinations.clear(),this.destinationForm.reset()}mapSourceDataToForm(i){let e=i.Sources??"",n=i.Filters?.map($=>`${$.Include?"":"-"}${$.Expression}`)??[],a=i.Settings?.find($=>$.Name==="--exclude-files-attributes")?.Value??"",m=i.Settings?.find($=>$.Name==="--skip-files-larger-than")??null,g=m?.Value.replace(/[0-9]/g,"")??null,R=m?.Value.replace(/[^0-9]/g,"")??null,B={path:[...e,...n].join("\0"),excludes:{hiddenFiles:a.includes("hidden"),systemFiles:a.includes("system"),tempFiles:a.includes("temporary"),filesLargerThan:g&&R?{size:parseInt(R),unit:g.toUpperCase()}:null}};this.sourceDataForm.patchValue(B)}mapDestinationToForm(i){let e=i.TargetURL?ut(i.TargetURL):null;e&&this.addDestinationFormGroup(e.destinationType,{custom:e.custom,dynamic:e.dynamic,advanced:e.advanced},!0)}#l(i){let e=ut(i);e&&this.addDestinationFormGroup(e.destinationType,{custom:e.custom,dynamic:e.dynamic,advanced:e.advanced},!0)}mapGeneralToForm(i){let e=i.Settings?.find(m=>m.Name==="encryption-module"),n=e?.Value&&e.Value.length?e.Value:"",a={name:i.Name??"",description:i.Description??""};n&&n!==""&&(a.encryption=n),this.generalForm.patchValue(a)}mapScheduleToForm(i){if(!i){this.scheduleForm.patchValue({autoRun:!0});return}let e=this.#o.fromString(i.Repeat)??null,a={nextTime:this.#p(i.Time),runAgain:{repeatValue:e?.value??1,repeatUnit:e?.unit??"D",allowedDays:{mon:i.AllowedDays?.includes("mon")??!1,tue:i.AllowedDays?.includes("tue")??!1,wed:i.AllowedDays?.includes("wed")??!1,thu:i.AllowedDays?.includes("thu")??!1,fri:i.AllowedDays?.includes("fri")??!1,sat:i.AllowedDays?.includes("sat")??!1,sun:i.AllowedDays?.includes("sun")??!1}}};this.scheduleForm.patchValue(a)}mapOptionsToForms(i){let e=["--no-encryption","--exclude-files-attributes","--skip-files-larger-than"],n=this.advancedOptions();i.Settings?.forEach(a=>{if(a.Name==="encryption-module")return this.generalForm.controls.encryption.setValue(a.Value??"");if(!(a.Name&&e.includes(a.Name))){if(a.Name==="dblock-size"){let m=a.Value?.replace(/[^0-9]/g,""),g=a.Value?.replace(/[0-9]/g,"");return this.optionsForm.controls.remoteVolumeSize.setValue({size:m?parseInt(m):null,unit:g?g.toUpperCase():null})}if(a.Name&&a.Value){let m=n.find(g=>g.name===a.Name);if(!m)return;this.addOptionToFormGroup(m,a.Value)}}})}getCurrentTargetUrl(){return this.#a(this.destinationForm.controls.destinations)}#s(){let i=this.generalForm.value,e=this.optionsForm.value,n=this.scheduleForm.value,a=this.sourceDataForm.value,g=this.destinationForm.value.destinations?.length?this.#a(this.destinationForm.controls.destinations):[],R=null;n.runAgain?.repeatUnit&&n.runAgain?.repeatValue&&(R=this.#o.toString(n.runAgain.repeatValue,n.runAgain.repeatUnit));let B=n.runAgain?.allowedDays?Object.entries(n.runAgain?.allowedDays).filter(([f,w])=>w).map(([f,w])=>f):[],$=a.path?.split("\0")??[],pt=i.encryption===""?{Name:"--no-encryption",Value:"True"}:{Name:"encryption-module",Value:i.encryption??null},mt=this.advancedOptions(),Ke=Object.entries(e.advancedOptions??{}).filter(([f,w])=>f&&w).map(([f,w])=>{let L=mt.find(z=>z.name===f);return L?.type==="Size"?{Name:f,Value:`${w.size}${w.unit.toLowerCase()}`}:L?.type==="Integer"?{Name:f,Value:w.toString()}:L?.type==="Boolean"?{Name:f,Value:w.toString()}:{Name:f,Value:w}}),Ne=[pt,...Ke],Pe=Object.entries(a.excludes??{}).filter(([f,w])=>w&&f!=="filesLargerThan").map(([f])=>f),T=a.excludes?.filesLargerThan;return Pe.length&&Ne.push({Name:"--exclude-files-attributes",Value:Pe.join(",")}),T&&T.size!==null&&T.unit!==null&&Ne.push({Name:"--skip-files-larger-than",Value:`${T.size}${T.unit}`}),{Backup:{Name:i.name,Description:i.description,TargetURL:g[0]??null,Sources:$.filter(f=>!f.startsWith("-")),Settings:Ne,Filters:$.filter(f=>f.startsWith("-")).map((f,w)=>({Order:w,Include:!1,Expression:f.slice(1)}))},Schedule:n.autoRun?{Repeat:R,Time:n.nextTime?.date?new Date(`${n.nextTime.date}T${n.nextTime?.time||"00:00:00"}`).toISOString():null,AllowedDays:B}:null}}#a(i){return i.controls.map(e=>ot(e.value))}#p(i){if(!i||i?.indexOf("T")===-1)return{time:i??"13:00"};let e=new Date(i),n={time:`${(""+e.getHours()).padStart(2,"0")}:${(""+e.getMinutes()).padStart(2,"0")}`};return i.indexOf("T")!==-1&&(n.date=e.toISOString().split("T")[0]),n}removeOptionFromFormGroup(i){let e=i.name;e&&(this.optionsForm.controls.advancedOptions.removeControl(e),this.selectedOptions.update(n=>(n=n.filter(a=>a.name!==e),n)))}addOptionToFormGroup(i,e){let n=this.optionsForm.controls.advancedOptions;this.createFormField(n,i,e??i.defaultValue),this.selectedOptions.update(a=>(a.push(i),a))}createFormField(i,e,n){if(e.type==="String"||e.type==="FileTree"||e.type==="FolderTree"||e.type==="Password"||e.type==="Enumeration"||e.type==="NonValidatedSelectableString"||e.type==="Path"){i.addControl(e.name,Q.control(n));return}if(e.type==="Size"){let a=n.replace(/[0-9]/g,""),m=n.replace(/[^0-9]/g,"");i.addControl(e.name,Q.group({size:Q.control(m?parseInt(m):50),unit:Q.control(a?a.toUpperCase():"MB")}));return}if(e.type==="Integer"){i.addControl(e.name,Q.control(n?parseInt(n):0));return}if(e.type==="Boolean"){i.addControl(e.name,Q.control(n==="true"));return}if(e.type==="Flags"){i.addControl(e.name,Q.control(n??""));return}if(e.type==="Timespan"){i.addControl(e.name,Q.control(n,[_e.pattern(/([-+]?\d{1,3}[smhDWMY])+/)]));return}}addDestinationFormGroup(i,e,n=!1){let a=this.destinationOptions().find(T=>T.Key===i),m=this.httpOptions();if(!a||!a.Options)return;let g=qe.hasOwnProperty(i)&&qe[i],R=g&&g.oauthField?g.oauthField:null,B=g&&g.customFields?g.customFields:{},$=g&&g.dynamicFields?g.dynamicFields:[],pt=g&&g.advancedFields?g.advancedFields:[],mt=g&&g.ignoredAdvancedFields?g.ignoredAdvancedFields:[];this.destinationFormPair.set({oauthField:R,custom:[],dynamic:[],advanced:[]});let Ke=Q.group({}),Ne=Q.group({}),Pe=Q.group({});B&&Object.entries(B).forEach(([T,f],w)=>{let Te=f,{formElement:L}=Te,z=xt(Te,["formElement"]);Ke.addControl(T,L(e?.custom[T])),this.destinationFormPair.update(Ie=>(Ie.custom.push(U({order:900+w},z)),Ie))});for(let T=0;T<a.Options.length;T++){let f=a.Options[T];if(f.Deprecated)continue;let w=$.find(L=>L===f.Name||L.name===f.Name);if(w){let L=w&&typeof w!="string",z={name:f.Name,type:f.Type,shortDescription:f.ShortDescription??void 0,longDescription:f.LongDescription??void 0,options:f.ValidValues,order:900+T},Te=L?U(U({},z),w):z,Qe=e?.dynamic[f.Name]??f.DefaultValue;this.createFormField(Ne,Te,Qe),this.destinationFormPair.update(Ue=>(Ue.dynamic.push(Te),Ue))}else{if(mt.find(Y=>Y===f.Name))continue;let z=pt.find(Y=>Y===f.Name||Y.name===f.Name),Te=z&&typeof z!="string",Ie=e?.advanced[f.Name],Qe=Ie??f.DefaultValue,Ue={name:f.Name,type:f.Type,shortDescription:f.ShortDescription??void 0,longDescription:f.LongDescription??void 0,options:f.ValidValues,defaultValue:Qe,order:900+T},ct=Te?U(U({},Ue),z):Ue;n&&Ie&&(this.createFormField(Pe,ct,Qe),this.selectedAdvancedFormPair.update(Y=>(Y.push(ct),Y))),this.destinationFormPair.update(Y=>(Y.advanced.push(ct),Y))}}for(let T=0;T<m.length;T++){let f=m[T],w=e?.advanced[f.name],L=w??f.defaultValue;n&&w&&(this.createFormField(Pe,f,L),this.selectedHttpOptions.update(z=>(z.push(f),z)))}this.destinationFormPair.update(T=>({oauthField:T.oauthField,custom:T.custom.sort((f,w)=>f.order-w.order),dynamic:T.dynamic.sort((f,w)=>f.order-w.order),advanced:T.advanced.sort((f,w)=>f.order-w.order)})),this.destinationForm.controls.destinations.push(qt({key:a.Key,customGroup:Ke,dynamicGroup:Ne,advancedGroup:Pe}))}#m(){this.generalForm.reset(),this.destinationForm.controls.destinations.clear(),this.destinationForm.reset(),this.sourceDataForm.reset(),this.scheduleForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||t)};static \u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"})};var ri=["formRef"],ai=(t,i,e,n)=>({index:t,formView:i,formGroupName:"custom",destinationType:e,oauthField:n}),st=t=>({$implicit:t}),li=(t,i,e,n)=>({index:t,formView:i,formGroupName:"dynamic",destinationType:e,oauthField:n}),si=(t,i,e,n)=>({index:t,formView:i,formGroupName:"advanced",destinationType:e,oauthField:n}),pi=(t,i,e,n)=>({index:t,formView:i,formGroupName:"advanced",asHttpOptions:!0,destinationType:e,oauthField:n}),mi=()=>({maxWidth:"700px",width:"100%"});function ci(t,i){t&1&&(l(0," Connected "),r(1,"spk-icon"),l(2,"check"),o())}function di(t,i){t&1&&l(0," Test destination ")}function ui(t,i){if(t&1){let e=v();r(0,"button",8),C("click",function(){h(e);let a=p();return y(a.testDestination())}),d(1,ci,3,0,"spk-icon")(2,di,1,0),o()}if(t&2){let e=p();fe("success",e.successfulTest()),s(),_(e.successfulTest()?1:2)}}function fi(t,i){if(t&1){let e=v();r(0,"p",14),C("click",function(){h(e);let a=p();return y(a.removeDestinationFormGroup(a.destinationCount()-1))}),l(1," Want to select another destination? "),r(2,"span",15),l(3,"Click here"),o()()}}function _i(t,i){if(t&1){let e=v();r(0,"div",16)(1,"div",17),C("click",function(){h(e);let a=p();return y(a.addDestinationFormGroup("file"))}),r(2,"h3"),l(3,"File system"),o(),r(4,"p"),l(5,"Store backups on your local file system."),o()(),r(6,"div",17),C("click",function(){h(e);let a=p();return y(a.addDestinationFormGroup("gcs"))}),r(7,"h3"),l(8,"Google Cloud Storage"),o(),r(9,"p"),l(10,"Store backups in Google Cloud Storage."),o()(),r(11,"div",17),C("click",function(){h(e);let a=p();return y(a.addDestinationFormGroup("s3"))}),r(12,"h3"),l(13,"S3 compatible bucket"),o(),r(14,"p"),l(15,"Store backups in any S3 compatible bucket."),o()(),r(16,"div",17),C("click",function(){h(e);let a=p();return y(a.addDestinationFormGroup("ssh"))}),r(17,"h3"),l(18,"SSH"),o(),r(19,"p"),l(20,"Store backups in SSH."),o()(),r(21,"div",17),C("click",function(){h(e);let a=p();return y(a.addDestinationFormGroup("googledrive"))}),r(22,"h3"),l(23,"Google Drive"),o(),r(24,"p"),l(25,"Store backups in Google Drive."),o()()(),r(26,"p"),l(27,"More destinations are coming soon."),o()}}function gi(t,i){t&1&&Ve(0)}function Ci(t,i){if(t&1&&d(0,gi,1,0,"ng-container",23),t&2){let e,n=i.$implicit,a=i.$index;p();let m=ee(33),g=p();c("ngTemplateOutlet",m)("ngTemplateOutletContext",De(7,st,ze(2,ai,a,n,(e=g.destinationFormSignal())==null||e.destinations==null||e.destinations[0]==null?null:e.destinations[0].destinationType,g.destinationFormPair().oauthField)))}}function hi(t,i){t&1&&Ve(0)}function yi(t,i){if(t&1&&d(0,hi,1,0,"ng-container",23),t&2){let e,n=i.$implicit,a=i.$index;p();let m=ee(33),g=p();c("ngTemplateOutlet",m)("ngTemplateOutletContext",De(7,st,ze(2,li,a,n,(e=g.destinationFormSignal())==null||e.destinations==null||e.destinations[0]==null?null:e.destinations[0].destinationType,g.destinationFormPair().oauthField)))}}function xi(t,i){if(t&1){let e=v();r(0,"button",24),C("click",function(){let a=h(e).$implicit,m=p(2);return y(m.addAdvancedFormPair(a,0))}),l(1),o()}if(t&2){let e=i.$implicit;s(),k(" ",e.name," ")}}function wi(t,i){t&1&&Ve(0)}function Si(t,i){if(t&1&&d(0,wi,1,0,"ng-container",23),t&2){let e,n=i.$implicit,a=i.$index;p();let m=ee(33),g=p();c("ngTemplateOutlet",m)("ngTemplateOutletContext",De(7,st,ze(2,si,a,n,(e=g.destinationFormSignal())==null||e.destinations==null||e.destinations[0]==null?null:e.destinations[0].destinationType,g.destinationFormPair().oauthField)))}}function ki(t,i){if(t&1){let e=v();r(0,"button",24),C("click",function(){let a=h(e).$implicit,m=p(2);return y(m.addHttpOption(a,0))}),l(1),o()}if(t&2){let e=i.$implicit;s(),k(" ",e.name," ")}}function vi(t,i){t&1&&Ve(0)}function Fi(t,i){if(t&1&&d(0,vi,1,0,"ng-container",23),t&2){let e,n=i.$implicit,a=i.$index;p();let m=ee(33),g=p();c("ngTemplateOutlet",m)("ngTemplateOutletContext",De(7,st,ze(2,pi,a,n,(e=g.destinationFormSignal())==null||e.destinations==null||e.destinations[0]==null?null:e.destinations[0].destinationType,g.destinationFormPair().oauthField)))}}function bi(t,i){if(t&1&&(r(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Ti(t,i){if(t&1&&(r(0,"app-file-tree",27)(1,"label",34),l(2),d(3,bi,3,1,"spk-tooltip",35),o(),u(4,"input",36),o()),t&2){let e,n=p().$implicit,a=p(2);c("startingPath",a.getFormFieldValue(0,n.formGroupName,n.formView.name))("accepts",n.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),E("id","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),N("formControlName",n.formView.name)}}function Vi(t,i){if(t&1&&(r(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Di(t,i){if(t&1&&(r(0,"app-file-tree",28)(1,"label",34),l(2),d(3,Vi,3,1,"spk-tooltip",35),o(),u(4,"input",36),o()),t&2){let e,n=p().$implicit,a=p(2);c("startingPath",a.getFormFieldValue(0,n.formGroupName,n.formView.name)),s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),E("id","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),N("formControlName",n.formView.name)}}function Oi(t,i){if(t&1&&(r(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Ei(t,i){t&1&&(r(0,"spk-icon",37),l(1,"link"),o())}function Ni(t,i){t&1&&(r(0,"spk-icon",37),l(1,"textbox"),o())}function Pi(t,i){if(t&1&&(r(0,"spk-form-field")(1,"label",34),l(2),d(3,Oi,3,1,"spk-tooltip",35),o(),u(4,"input",36),d(5,Ei,2,0,"spk-icon",37)(6,Ni,2,0,"spk-icon",37),o()),t&2){let e,n=p().$implicit;s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),E("id","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),N("formControlName",n.formView.name),s(),_(n.formView.type==="Path"?5:6)}}function Ii(t,i){if(t&1){let e=v();r(0,"span",41),C("click",function(){h(e);let a=p(2).$implicit,m=p(2);return y(m.oauthStartTokenCreation(a.destinationType))}),l(1,"AuthID"),o()}}function Gi(t,i){t&1&&(r(0,"spk-icon",37),l(1,"password"),o())}function Mi(t,i){if(t&1){let e=v();r(0,"spk-icon",42),C("click",function(){h(e);let a=p(2).$implicit;return y(a.formView.showPassword=!a.formView.showPassword)}),l(1," eye "),o()}}function Ai(t,i){if(t&1){let e=v();r(0,"spk-icon",42),C("click",function(){h(e);let a=p(2).$implicit;return y(a.formView.showPassword=!a.formView.showPassword)}),l(1," eye-slash "),o()}}function Ri(t,i){if(t&1&&(r(0,"spk-form-field")(1,"label",34),l(2),o(),u(3,"input",38),d(4,Ii,2,0,"span",39)(5,Gi,2,0,"spk-icon",37)(6,Mi,2,0,"spk-icon",40)(7,Ai,2,0,"spk-icon",40),o()),t&2){let e,n=p().$implicit;s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),E("id","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),N("formControlName",n.formView.name),c("type",n.formView.showPassword?"text":"password"),s(),_(n.oauthField===n.formView.name?4:5),s(2),_(n.formView.showPassword?6:7)}}function $i(t,i){if(t&1&&(r(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Bi(t,i){if(t&1&&(r(0,"option",45),l(1),o()),t&2){let e=i.$implicit;c("value",e),s(),I(e)}}function Ui(t,i){if(t&1&&(r(0,"spk-select")(1,"label",34),l(2),d(3,$i,3,1,"spk-tooltip",35),o(),u(4,"input",43),F(5,44),D(6,Bi,2,2,"option",45,V),b(),o()),t&2){let e,n=p().$implicit;s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),E("id","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),N("formControlName",n.formView.name),s(2),O(n.formView.options)}}function Hi(t,i){if(t&1&&(r(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Li(t,i){if(t&1&&(r(0,"option",45),l(1),o()),t&2){let e=i.$implicit;c("value",e.value),s(),vt(" ",e.key," ",e.value?"("+e.value+")":""," ")}}function zi(t,i){if(t&1&&(r(0,"spk-select",29)(1,"label",34),l(2),d(3,Hi,3,1,"spk-tooltip",35),o(),u(4,"input",43),F(5,44),D(6,Li,2,3,"option",45,V),b(),o()),t&2){let e,n=p().$implicit,a=p(2);c("isFreeText",!0),s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),E("id","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),N("formControlName",n.formView.name),s(2),O(n.formView.loadOptions(a.injector)())}}function ji(t,i){if(t&1&&(r(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function qi(t,i){if(t&1&&(r(0,"option",45),l(1),o()),t&2){let e=i.$implicit;c("value",e),s(),I(e)}}function Wi(t,i){if(t&1&&(r(0,"div",30)(1,"label",34),l(2),d(3,ji,3,1,"spk-tooltip",35),o(),r(4,"div",46)(5,"spk-form-field"),u(6,"input",47),r(7,"spk-icon",37),l(8,"resize"),o()(),r(9,"spk-select"),u(10,"label")(11,"input",48),F(12,44),D(13,qi,2,2,"option",45,V),b(),o()()()),t&2){let e,n=p().$implicit,a=p(2);c("formGroupName",n.formView.name),s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(3),E("id","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(7),O(a.sizeOptions())}}function Ki(t,i){if(t&1&&(r(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Qi(t,i){if(t&1&&(r(0,"spk-form-field")(1,"label",34),l(2),d(3,Ki,3,1,"spk-tooltip",35),o(),u(4,"input",49),r(5,"spk-icon",37),l(6,"numpad"),o()()),t&2){let e,n=p().$implicit;s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),E("id","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),N("formControlName",n.formView.name)}}function Yi(t,i){if(t&1&&(r(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Zi(t,i){if(t&1&&(r(0,"spk-toggle",31)(1,"label",34),l(2),d(3,Yi,3,1,"spk-tooltip",35),o(),u(4,"input",50),o()),t&2){let e,n=p().$implicit;s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),E("id","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),N("formControlName",n.formView.name)}}function Ji(t,i){if(t&1&&(r(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Xi(t,i){t&1&&(r(0,"spk-option",52),l(1,"None"),o()),t&2&&c("value","None")}function eo(t,i){if(t&1&&(r(0,"spk-option",45),l(1),u(2,"spk-checkbox",53),o()),t&2){let e=p().$implicit;c("value",e),s(),k(" ",e," ")}}function to(t,i){if(t&1&&d(0,Xi,2,1,"spk-option",52)(1,eo,3,2,"spk-option",45),t&2){let e=i.$implicit;_(e==="None"?0:1)}}function no(t,i){if(t&1&&(r(0,"spk-select",32)(1,"label",34),l(2),d(3,Ji,3,1,"spk-tooltip",35),o(),u(4,"input",51),F(5,44),D(6,to,2,1,null,null,V),b(),o()),t&2){let e,n=p().$implicit;c("selectMultiple",!0),s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),N("formControlName",n.formView.name),s(2),O(n.formView.options)}}function io(t,i){if(t&1&&(r(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function oo(t,i){if(t&1&&(r(0,"spk-form-field")(1,"label",34),l(2),d(3,io,3,1,"spk-tooltip",35),o(),u(4,"input",36),o()),t&2){let e,n=p().$implicit;s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),E("id","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),N("formControlName",n.formView.name)}}function ro(t,i){if(t&1){let e=v();r(0,"button",54),C("click",function(){h(e);let a=p().$implicit,m=p(2);return y(m.removeFormView(a.formView,0))}),r(1,"spk-icon"),l(2,"x-circle"),o()()}}function ao(t,i){if(t&1&&(r(0,"div",25),F(1,26),d(2,Ti,5,16,"app-file-tree",27)(3,Di,5,12,"app-file-tree",28)(4,Pi,7,12,"spk-form-field")(5,Ri,8,13,"spk-form-field")(6,Ui,8,11,"spk-select")(7,zi,8,12,"spk-select",29)(8,Wi,15,11,"div",30)(9,Qi,7,11,"spk-form-field")(10,Zi,5,11,"spk-toggle",31)(11,no,8,8,"spk-select",32)(12,oo,5,11,"spk-form-field"),b(),d(13,ro,3,0,"button",33),o()),t&2){let e=i.$implicit;fe("single-field",e.formGroupName!=="advanced"),s(),c("formGroupName",e.formGroupName),s(),_(e.formView.type==="FileTree"?2:e.formView.type==="FolderTree"?3:e.formView.type==="String"||e.formView.type==="Path"?4:e.formView.type==="Password"?5:e.formView.type==="Enumeration"?6:e.formView.type==="NonValidatedSelectableString"?7:e.formView.type==="Size"?8:e.formView.type==="Integer"?9:e.formView.type==="Boolean"?10:e.formView.type==="Flags"?11:e.formView.type==="Timespan"?12:-1),s(11),_(e.formGroupName==="advanced"?13:-1)}}function lo(t,i){if(t&1&&(F(0,9)(1,18),D(2,Ci,1,9,"ng-container",null,V),D(4,yi,1,9,"ng-container",null,V),r(6,"app-toggle-card",19),F(7,20),l(8," Advanced options "),r(9,"spk-menu")(10,"button",21),l(11," Add advanced option "),r(12,"spk-icon"),l(13,"plus"),o()(),F(14,7),D(15,xi,2,1,"button",22,V),b(),o(),b(),D(17,Si,1,9,"ng-container",null,V),o(),r(19,"app-toggle-card",19),F(20,20),l(21," Http options "),r(22,"spk-menu")(23,"button",21),l(24," Add http option "),r(25,"spk-icon"),l(26,"plus"),o()(),F(27,7),D(28,ki,2,1,"button",22,V),b(),o(),b(),D(30,Fi,1,9,"ng-container",null,V),o(),d(32,ao,14,5,"ng-template",null,1,Ye),b()()),t&2){let e=p();s(2),O(e.destinationFormPair().custom),s(2),O(e.destinationFormPair().dynamic),s(2),c("disallowToggle",!0),s(4),c("disabled",e.notSelectedAdvancedFormPair().length===0),s(5),O(e.notSelectedAdvancedFormPair()),s(2),O(e.selectedAdvancedFormPair()),s(2),c("disallowToggle",!0),s(4),c("disabled",e.notSelectedHttpOptions().length===0),s(5),O(e.notSelectedHttpOptions()),s(2),O(e.selectedHttpOptions())}}function so(t,i){if(t&1){let e=v();r(0,"spk-dialog",55),Tt("isOpenChange",function(a){h(e);let m=p();return bt(m.targetUrlDialogOpen,a)||(m.targetUrlDialogOpen=a),y(a)}),r(1,"header",56)(2,"h2"),l(3,"Edit target URL"),o(),r(4,"spk-alert",57),l(5,"Be careful, this will overwrite everything you have in your destination."),o()(),r(6,"div",58)(7,"spk-form-field"),u(8,"textarea",59),o()(),r(9,"footer",60)(10,"button",11),C("click",function(){h(e);let a=p();return y(a.closeTargetUrlDialog(!1))}),l(11,"Cancel"),o(),r(12,"button",61),C("click",function(){h(e);let a=p();return y(a.closeTargetUrlDialog(!0))}),l(13," Override target URLc "),r(14,"spk-icon"),l(15,"swap"),o()()()()}if(t&2){let e=p();Ft("isOpen",e.targetUrlDialogOpen),c("options",Vt(3,mi)),s(8),c("formControl",e.targetUrlCtrl)}}var po=["Bytes","KB","MB","GB","TB","PB"],lt=new H,jt=(t={destinations:[]})=>lt.group({destinations:lt.array(t.destinations)}),qt=({key:t,customGroup:i,dynamicGroup:e,advancedGroup:n})=>lt.group({destinationType:lt.control(t),custom:i,dynamic:e,advanced:n}),yt=class t{#e=x(W);#n=x(te);#i=x(Et);#o=x(Ge);#t=x(K);#r=x(Mt);injector=x(wt);formRef=Z.required("formRef");destinationForm=this.#t.destinationForm;destinationFormPair=this.#t.destinationFormPair;selectedAdvancedFormPair=this.#t.selectedAdvancedFormPair;notSelectedAdvancedFormPair=this.#t.notSelectedAdvancedFormPair;selectedHttpOptions=this.#t.selectedHttpOptions;notSelectedHttpOptions=this.#t.notSelectedHttpOptions;destinationOptions=this.#t.destinationOptions;destinationFormSignal=this.#t.destinationFormSignal;destinationCount=G(()=>this.destinationFormSignal()?.destinations?.length??0);sizeOptions=S(po);successfulTest=S(!1);getFormFieldValue(i,e,n){return((this.destinationForm.controls.destinations.controls?.[i]).controls?.[e]).controls[n].value}addDestinationFormGroup(i){this.#t.addDestinationFormGroup(i)}addAdvancedFormPair(i,e){this.#t.addAdvancedFormPair(i,e)}removeFormView(i,e){this.#t.removeAdvancedFormPair(i,e)}addHttpOption(i,e){this.#t.addHttpOption(i,e)}targetUrl=G(()=>this.#t.getCurrentTargetUrl()[0]);targetUrlCtrl=new Nt;targetUrlInitial=S(null);targetUrlDialogOpen=S(!1);openTargetUrlDialog(){let e=this.#t.getCurrentTargetUrl()[0];this.targetUrlCtrl.setValue(e),this.targetUrlInitial.set(e),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(i=!1){this.targetUrlDialogOpen.set(!1);let e=this.targetUrlCtrl.value,n=this.targetUrlInitial();!i||e===n||this.#t.updateFieldsFromTargetUrl(this.targetUrlCtrl.value)}testDestination(i=0){let n=this.#t.getCurrentTargetUrl()[i];n&&this.#o.postApiV1RemoteoperationTest({requestBody:{path:n}}).subscribe({next:()=>{this.successfulTest.set(!0),setTimeout(()=>{this.successfulTest.set(!1)},3e3)},error:a=>{let m=a.error.error.Error;if(m==="missing-folder"&&this.#r.open(Oe,{data:{title:"Create folder",message:"The remote destination folder does not exist, do you want to create it?"},closed:g=>{g&&this.#o.postApiV1RemoteoperationCreate({requestBody:{path:n}}).subscribe()}}),m.startsWith("incorrect-cert:")){let g=m.split("incorrect-cert:")[1];this.#r.open(Oe,{maxWidth:"500px",data:{title:"Trust the certificate",message:`The server is using a certificate that is not trusted.
|
|
2
|
-
If this is a self-signed certificate, you can choose to trust this certificate.
|
|
3
|
-
The server reported the certificate hash: ${g}`,confirmText:"Trust the certificate",cancelText:"Cancel"},closed:R=>{R&&this.#t.addHttpOptionByName("accept-specified-ssl-hash",g)}})}if(m.startsWith("incorrect-host-key:")){let g=m.split('incorrect-host-key:"')[1].split('",')[0],R=m.split('accepted-host-key:"')[1].split('",')[0];R?this.#r.open(Oe,{maxWidth:"500px",data:{title:"The host key has changed",message:`The host key has changed, please check with the server administrator if this is correct,
|
|
4
|
-
otherwise you could be the victim of a MAN-IN-THE-MIDDLE attack.
|
|
5
|
-
Do you want to REPLACE your CURRENT host key ${R}
|
|
6
|
-
with the REPORTED host key: ${g}?`,confirmText:"Approve",cancelText:"Cancel"},closed:B=>{B&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,g)}}):this.#r.open(Oe,{maxWidth:"500px",data:{title:"Approve host key?",message:`No certificate was specified, please verify that the reported host key is correct: ${g}`,confirmText:"Approve",cancelText:"Cancel"},closed:B=>{B&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,g)}})}}})}mapToTargetUrl(i){return ot(i.value)}removeDestinationFormGroup(i){this.destinationForm.controls.destinations.removeAt(i)}displayFn(i){let e=this.destinationOptions().find(n=>n.Key===i);return e?`${e.DisplayName}`:""}goBack(){this.#e.navigate(["general"],{relativeTo:this.#n.parent})}next(){this.#e.navigate(["source-data"],{relativeTo:this.#n.parent})}#l=S("https://duplicati-oauth-handler.appspot.com/").asReadonly();#s=S(Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2)).asReadonly();#a=S(!1);#p=S(null);keyCreation(){}oauthStartTokenCreation(i){this.#a.set(!0);let e=450,n=600,a=this.#l()+"?type="+i+"&token="+this.#s(),m=screen.width/2-e/2,g=screen.height/2-n/2,R=window.open(a,"_blank","height="+n+",width="+e+",menubar=0,status=0,titlebar=0,toolbar=0,left="+m+",top="+g);R?.addEventListener("blur",B=>{console.log("event blur",B)}),R?.addEventListener("beforeunload",B=>{console.log("event beforeunload",B),this.#i.get(this.#l()+"fetch?callback=JSON_CALLBACK",{params:{token:this.#s()}}).pipe(Le(()=>this.#a.set(!1))).subscribe({next:$=>{console.log("res",$),$?.authid&&this.#p.set($.authid)}})})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=j({type:t,selectors:[["app-destination"]],viewQuery:function(e,n){e&1&&J(n.formRef,ri,5),e&2&&X()},standalone:!0,features:[q],decls:29,vars:6,consts:[["formRef",""],["fieldTemplate",""],[3,"submit","formGroup"],[1,"title-30"],[1,"actions"],["spk-button","","type","button",1,"small",3,"success"],["spk-button","","type","button",1,"small"],["menu",""],["spk-button","","type","button",1,"small",3,"click"],["formArrayName","destinations"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"isOpen","options"],[3,"click"],[1,"spk-primary"],[1,"most-common-destinations"],[1,"tile",3,"click"],["formGroupName","0"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small",3,"disabled"],["item","","type","button"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["item","","type","button",3,"click"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[3,"isFreeText"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],["spk-button","","type","button",1,"outlined"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],["type","search",3,"id","formControlName"],["options",""],[3,"value"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["type","search","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],["type","text","id","text",3,"formControlName"],["deselect","",3,"value"],[1,"raised","primary"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"warning"],["content",""],["id","targetUrl","autocomplete","off",3,"formControl"],["footer",""],["spk-button","","type","submit",1,"raised","primary",3,"click"]],template:function(e,n){if(e&1){let a=v();r(0,"form",2,0),C("submit",function(){return h(a),y(n.next())}),r(2,"header")(3,"h3",3),l(4," Backup destination "),r(5,"div",4),d(6,ui,3,3,"button",5),r(7,"spk-menu")(8,"button",6)(9,"spk-icon"),l(10,"dots-three-vertical"),o()(),F(11,7),r(12,"button",8),C("click",function(){return h(a),y(n.openTargetUrlDialog())}),r(13,"spk-icon"),l(14,"link"),o(),l(15," Edit target URL "),o(),b(),o()()(),d(16,fi,4,0,"p"),o(),d(17,_i,28,0)(18,lo,34,4,"ng-container",9),r(19,"div",10)(20,"button",11),C("click",function(){return h(a),y(n.goBack())}),r(21,"spk-icon"),l(22,"arrow-left"),o(),l(23," Go back "),o(),r(24,"button",12)(25,"spk-icon"),l(26,"arrow-right"),o(),l(27," Continue "),o()()(),d(28,so,16,4,"spk-dialog",13)}if(e&2){let a;c("formGroup",n.destinationForm),s(6),_(n.destinationCount()>0?6:-1),s(10),_(n.destinationCount()>0?16:-1),s(),_(n.destinationCount()===0?17:-1),s(),_(!((a=n.destinationFormSignal())==null||a.destinations==null)&&a.destinations.length?18:-1),s(10),_(n.targetUrlDialogOpen()?28:-1)}},dependencies:[me,re,se,pe,ne,we,xe,ie,oe,Pt,ae,le,Se,It,Ze,de,ue,tt,et,nt,ce,ve,Me,Gt,Xe,Fe,Ae],styles:["[_nghost-%COMP%]{display:block}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] spk-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;gap:.5rem;align-items:flex-end}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-500)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1);background-color:var(--base-level-20);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-500)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}"],changeDetection:0})};export{jt as a,qt as b,yt as c,Bt as d,_t as e,ft as f,Ut as g,nr as h,gt as i,Lt as j,Ct as k,zt as l,ht as m,K as n};
|
package/chunk-OSB5J6SK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as s,p as r}from"./chunk-JE2I63Y6.js";import{Ba as o,R as l,X as a}from"./chunk-67JGZ4NF.js";var n=class i{platformId=a(o);STORAGE_VERSION="v1";APP_NAME="duplicati";getItemParsed(t,e=!1){return r(this.platformId)?null:JSON.parse(localStorage.getItem(`${this.STORAGE_VERSION}:${e?"presist-duplicati":this.APP_NAME}:${t}`)??"null")}setItemParsed(t,e,m=!1){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${m?"presist-duplicati":this.APP_NAME}:${t}`,JSON.stringify(e))}get length(){return s(this.platformId)?localStorage.length:0}getItem(t){return r(this.platformId)?null:localStorage.getItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)??null}setItem(t,e){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`,e)}removeItem(t){r(this.platformId)||localStorage.removeItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)}clearAllNotCurrentVersion(){if(!r(this.platformId))for(var t in localStorage)t.startsWith(this.STORAGE_VERSION)||localStorage.removeItem(t)}clearAll(){r(this.platformId)||localStorage.clear()}clear(){if(!r(this.platformId))for(var t in localStorage)t.includes(this.APP_NAME)&&!t.includes(`presist-${this.APP_NAME}`)&&localStorage.removeItem(t)}key(t){return r(this.platformId)?null:localStorage.key(t)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac})};export{n as a};
|
package/chunk-P6347OTT.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as h}from"./chunk-CUYURNCB.js";import{a as s}from"./chunk-NAZLO3UY.js";import"./chunk-JE2I63Y6.js";import{$ as r,Pb as o,Qb as c,Ra as p,X as g,Xb as m,sb as t,tb as n}from"./chunk-67JGZ4NF.js";import"./chunk-7CGTOI24.js";var a=class i{#e=g(s);changelog=h(this.#e.getApiV1Changelog());static \u0275fac=function(e){return new(e||i)};static \u0275cmp=r({type:i,selectors:[["app-changelog"]],standalone:!0,features:[m],decls:4,vars:1,template:function(e,u){if(e&1&&(t(0,"h3"),o(1,"Changelog"),n(),t(2,"pre"),o(3),n()),e&2){let l;p(3),c((l=u.changelog())==null?null:l.Changelog)}},styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}"],changeDetection:0})};export{a as default};
|
package/chunk-RHGRQONA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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,x,y,z}from"./chunk-X2IPCPJN.js";import"./chunk-2MDIWOW5.js";import"./chunk-JE2I63Y6.js";import"./chunk-67JGZ4NF.js";import"./chunk-7CGTOI24.js";export{H as ActivatedRoute,I as ActivatedRouteSnapshot,C as ActivationEnd,B as ActivationStart,U as BaseRouteReuseStrategy,A as ChildActivationEnd,z as ChildActivationStart,F as ChildrenOutletContexts,N 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,$ as NoPreloading,E as OutletContext,a as PRIMARY_OUTLET,_ as PreloadAllModules,Z as PreloadingStrategy,O as ROUTER_CONFIGURATION,pa as ROUTER_INITIALIZER,Q as ROUTES,L as RedirectCommand,w as ResolveEnd,v as ResolveStart,y as RouteConfigLoadEnd,x as RouteConfigLoadStart,T as RouteReuseStrategy,W as Router,k as RouterEvent,X as RouterLink,Y as RouterLinkActive,X as RouterLinkWithHref,oa as RouterModule,K as RouterOutlet,aa as RouterPreloader,G as RouterState,J as RouterStateSnapshot,s as RoutesRecognized,D as Scroll,M as TitleStrategy,S as UrlHandlingStrategy,f as UrlSegment,e as UrlSegmentGroup,g as UrlSerializer,d as UrlTree,va as VERSION,b as convertToParamMap,i as createUrlTreeFromSnapshot,c as defaultUrlMatcher,ra as mapToCanActivate,sa as mapToCanActivateChild,ta as mapToCanDeactivate,qa as mapToCanMatch,ua as mapToResolve,ba as provideRouter,ca as provideRoutes,la as withComponentInputBinding,ga as withDebugTracing,fa as withDisabledInitialNavigation,ea as withEnabledBlockingInitialNavigation,ja as withHashLocation,da as withInMemoryScrolling,ka as withNavigationErrorHandler,ha as withPreloading,ia as withRouterConfig,ma as withViewTransitions,P as \u0275EmptyOutletComponent,na as \u0275ROUTER_PROVIDERS,V as \u0275afterNextNavigation,R as \u0275loadChildren};
|
package/chunk-RNJMBZB7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as a,d as b}from"./chunk-HJUBM7Q5.js";import"./chunk-3XQGPHYU.js";import"./chunk-VJDUCP4Z.js";import"./chunk-CUYURNCB.js";import"./chunk-VXKI3RQB.js";import"./chunk-NAZLO3UY.js";import"./chunk-3UHRO33D.js";import"./chunk-X2IPCPJN.js";import"./chunk-2MDIWOW5.js";import"./chunk-JE2I63Y6.js";import"./chunk-67JGZ4NF.js";import"./chunk-7CGTOI24.js";export{a as createRestoreSelectFilesForm,b as default};
|
package/chunk-SGZGAY7X.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a,k as b}from"./chunk-NYFN2CT6.js";import"./chunk-VJDUCP4Z.js";import"./chunk-DNHLTHLR.js";import"./chunk-CUYURNCB.js";import"./chunk-SRX3KYGO.js";import"./chunk-VXKI3RQB.js";import"./chunk-NAZLO3UY.js";import"./chunk-3UHRO33D.js";import"./chunk-X2IPCPJN.js";import"./chunk-2MDIWOW5.js";import"./chunk-JE2I63Y6.js";import"./chunk-67JGZ4NF.js";import"./chunk-7CGTOI24.js";export{a as createScheduleForm,b as default};
|
package/chunk-SRW3NRX3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./chunk-OSB5J6SK.js";import{a as c}from"./chunk-NAZLO3UY.js";import{W as u}from"./chunk-X2IPCPJN.js";import{B as e,F as l,O as i,R as a,X as s,Ya as o,sc as h}from"./chunk-67JGZ4NF.js";var p=class r{#e=s(m);#i=s(u);#s=s(c);#t=o(this.#e.getItemParsed("token")??null);#r=o(this.#e.getItemParsed("tokenSetTime")??null);#o=o(!1);tokenSetTime=this.#r.asReadonly();token=this.#t.asReadonly();isLoggingOut=this.#o.asReadonly();#n=h(()=>{if(!this.#t()){this.#e.clearAll(),this.#i.navigate(["/login"]);return}let t=Date.now();this.#e.setItemParsed("tokenSetTime",t),this.#e.setItemParsed("token",this.#t()),this.#r.set(this.#t()?t:null)},{allowSignalWrites:!0});login(t="helloworld"){return this.#s.postApiV1AuthLogin({requestBody:{Password:t,RememberMe:!0}}).pipe(e(1),i(n=>this.#t.set(n.AccessToken??null)))}refreshToken(){return this.#s.postApiV1AuthRefresh().pipe(e(1),i(t=>this.#t.set(t.AccessToken??null)))}logout(){this.#o.set(!0),this.#s.postApiV1AuthRefreshLogout().pipe(e(1),l(()=>this.#o.set(!1)),i(t=>{this.#t.set(null),this.#e.clearAll(),this.#i.navigate(["/login"])})).subscribe({error:t=>{this.#t.set(null),this.#e.clearAll(),this.#i.navigate(["/login"])}})}static \u0275fac=function(n){return new(n||r)};static \u0275prov=a({token:r,factory:r.\u0275fac,providedIn:"root"})};export{p as a};
|
package/chunk-SRX3KYGO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as c}from"./chunk-NAZLO3UY.js";import{F as i,O as r,R as n,X as a,Ya as o,qc as f}from"./chunk-67JGZ4NF.js";var l=class t{#e=a(c);isLoaded=o(!1);systemInfo=o(null);backendModules=f(()=>this.systemInfo()?.BackendModules??[]);preload(s=!1){let e=this.#e.getApiV1Systeminfo().pipe(r(m=>this.systemInfo.set(m)),i(()=>this.isLoaded.set(!0)));if(s)return e;e.subscribe()}static \u0275fac=function(e){return new(e||t)};static \u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"})};export{l as a};
|
package/chunk-T2ZGAXWS.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as b}from"./chunk-SRW3NRX3.js";import"./chunk-OSB5J6SK.js";import"./chunk-NAZLO3UY.js";import{g as v}from"./chunk-3UHRO33D.js";import"./chunk-X2IPCPJN.js";import"./chunk-2MDIWOW5.js";import"./chunk-JE2I63Y6.js";import{$ as s,Db as C,Eb as g,Pb as i,Ra as u,X as m,Xb as l,eb as f,ob as h,sb as e,tb as o,ub as c}from"./chunk-67JGZ4NF.js";import"./chunk-7CGTOI24.js";var _=["*",[["","footer",""]]],M=["*","[footer]"],r=class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=s({type:t,selectors:[["app-custom-card"]],standalone:!0,features:[l],ngContentSelectors:M,decls:11,vars:0,consts:[[1,"card"],["src","/assets/noise/auth-noise.svg",1,"noise"],[1,"header-title"],["src","/assets/duplicati/duplicati.svg","alt",""],[1,"bg"]],template:function(n,p){n&1&&(C(_),e(0,"div",0),c(1,"img",1),e(2,"header")(3,"div",2),c(4,"img",3),i(5," Duplicati "),o()(),e(6,"main"),g(7),e(8,"footer"),g(9,1),o()()(),c(10,"div",4))},styles:['[_nghost-%COMP%]{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center;background-color:var(--base-level-20)}body.dark [_nghost-%COMP%] .card[_ngcontent-%COMP%]:before{background:radial-gradient(rgba(var(--primary-rgb-900),1),#0000 60%)}.card[_ngcontent-%COMP%]{max-width:480px;width:100%;position:relative;z-index:100;background-color:var(--base-level-10);border-radius:var(--shape-5);box-shadow:var(--box-shadow-40);border:1px solid var(--base-level-30);overflow:hidden}.card[_ngcontent-%COMP%]:before{content:"";position:absolute;height:480px;transform:translateY(-285px);left:0;right:0;z-index:-2;background:radial-gradient(rgba(var(--primary-rgb-100),1),#0000 60%)}.card[_ngcontent-%COMP%] img.noise[_ngcontent-%COMP%]{position:absolute;height:480px;width:100%;transform:translateY(-285px);left:0;right:0;z-index:-1;mask-image:radial-gradient(#000,#0000 60%)}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem 2rem 0;gap:12px;position:relative;z-index:10}.header-title[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;gap:10px}.header-title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:28px;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}main[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:2rem;gap:2.5rem;position:relative;z-index:10}main[_ngcontent-%COMP%] footer[_ngcontent-%COMP%]{font:var(--paragraph-40);color:var(--base-level-60R);text-align:center;text-wrap:balance}.bg[_ngcontent-%COMP%]{position:fixed;inset:0;width:100vw;height:100vh;background-image:url(/assets/backgrounds/base-bg.svg);background-size:cover;background-position:center;background-repeat:no-repeat}body.dark[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]{opacity:1}footer[_ngcontent-%COMP%]:empty{display:none}'],changeDetection:0})};function O(t,a){t&1&&(e(0,"h3"),i(1,"Logging out..."),o())}function P(t,a){t&1&&(e(0,"h3"),i(1,"You have successfully logged out your being redirected to login page."),o(),e(2,"button",0),i(3,"Go to login page"),o())}var d=class t{#e=m(b);isLoggingOut=this.#e.isLoggingOut;ngOnInit(){this.#e.logout()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=s({type:t,selectors:[["app-logout"]],standalone:!0,features:[l],decls:3,vars:1,consts:[["spk-button","","routerLink","/",1,"raised","primary"]],template:function(n,p){n&1&&(e(0,"app-custom-card"),f(1,O,2,0,"h3")(2,P,4,0),o()),n&2&&(u(),h(p.isLoggingOut()?1:2))},dependencies:[r,v],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{d as default};
|
package/chunk-TNE7LVPH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as c}from"./chunk-3UHRO33D.js";import{K as l,X as m,Y as p}from"./chunk-X2IPCPJN.js";import"./chunk-2MDIWOW5.js";import"./chunk-JE2I63Y6.js";import{$ as a,Pb as n,Xb as s,sb as e,tb as t,ub as u}from"./chunk-67JGZ4NF.js";import"./chunk-7CGTOI24.js";var i=class r{static \u0275fac=function(o){return new(o||r)};static \u0275cmp=a({type:r,selectors:[["app-about"]],standalone:!0,features:[s],decls:13,vars:0,consts:[[1,"nav"],["spk-button","","routerLink","/about/general","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/changelog","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/libraries","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/system-info","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/logs","routerLinkActive","primary",1,"raised"]],template:function(o,b){o&1&&(e(0,"div",0)(1,"button",1),n(2,"General"),t(),e(3,"button",2),n(4,"Changelog"),t(),e(5,"button",3),n(6,"Libraries"),t(),e(7,"button",4),n(8,"System info"),t(),e(9,"button",5),n(10,"Logs"),t()(),e(11,"section"),u(12,"router-outlet"),t())},dependencies:[c,l,m,p],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:0;padding:2.5rem}.nav[_ngcontent-%COMP%]{display:flex;gap:.5rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:2rem 0}"],changeDetection:0})};export{i as default};
|
package/chunk-VA5L4XPW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as a,m as b}from"./chunk-NYFN2CT6.js";import"./chunk-VJDUCP4Z.js";import"./chunk-DNHLTHLR.js";import"./chunk-CUYURNCB.js";import"./chunk-SRX3KYGO.js";import"./chunk-VXKI3RQB.js";import"./chunk-NAZLO3UY.js";import"./chunk-3UHRO33D.js";import"./chunk-X2IPCPJN.js";import"./chunk-2MDIWOW5.js";import"./chunk-JE2I63Y6.js";import"./chunk-67JGZ4NF.js";import"./chunk-7CGTOI24.js";export{a as createSourceDataForm,b as default};
|
package/chunk-VJDUCP4Z.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as ae}from"./chunk-VXKI3RQB.js";import{a as re}from"./chunk-NAZLO3UY.js";import{a as I,f as ce,k as de,l as pe,n as ue,t as he}from"./chunk-3UHRO33D.js";import{k as le}from"./chunk-JE2I63Y6.js";import{$ as N,$a as Z,Bb as y,Cb as d,Db as A,Eb as S,F as j,Mb as K,Nb as ne,Ob as Q,Pb as m,Ra as c,Rb as U,X as Y,Xb as B,Ya as T,Za as R,Zb as D,_b as oe,dc as se,eb as _,ja as k,jb as $,ka as M,kb as z,lb as C,ob as b,qb as ee,qc as V,rb as te,sb as r,sc as F,tb as a,ub as ie,v as X,va as L,wa as g,xb as q,yb as E}from"./chunk-67JGZ4NF.js";import{a as P,b as x}from"./chunk-7CGTOI24.js";var be=["treeContainer"],Pe=["formRef"],xe=[[["label"]],[["label"]],[["input"]]],Te=["label","label","input"],ye=(n,t)=>t.id,Se=n=>({children:n,level:0}),ge=n=>({$implicit:n}),we=(n,t)=>({children:n,level:t});function ke(n,t){if(n&1){let e=E();r(0,"spk-button-group")(1,"button",10),y("click",function(){k(e);let s=d();return M(s.pathDiscoveryMethod.set("browse"))}),m(2," Browser path "),a(),r(3,"button",10),y("click",function(){k(e);let s=d();return M(s.pathDiscoveryMethod.set("path"))}),m(4," Manually type path "),a()()}if(n&2){let e=d();c(),C("active",e.pathDiscoveryMethod()==="browse"),c(2),C("active",e.pathDiscoveryMethod()==="path")}}function Me(n,t){n&1&&ie(0,"spk-progress-bar",6)}function Fe(n,t){n&1&&(r(0,"spk-icon",13),m(1,"folder-open"),a())}function Oe(n,t){n&1&&(r(0,"spk-icon"),m(1,"file"),a())}function Ne(n,t){n&1&&(r(0,"spk-icon",13),m(1,"folder"),a())}function Ee(n,t){if(n&1&&_(0,Fe,2,0,"spk-icon",13)(1,Oe,2,0,"spk-icon")(2,Ne,2,0,"spk-icon",13),n&2){let e=d(2).$implicit;b(e.children.length?0:e.cls==="file"?1:2)}}function Ae(n,t){n&1&&(r(0,"spk-icon",13),m(1,"desktop-tower"),a())}function Be(n,t){n&1&&q(0)}function De(n,t){if(n&1&&_(0,Be,1,0,"ng-container",7),n&2){let e=d(2).$implicit,i=d().$implicit;d();let s=Q(7);$("ngTemplateOutlet",s)("ngTemplateOutletContext",D(5,ge,oe(2,we,e.children,i.level+1)))}}function Ve(n,t){if(n&1){let e=E();r(0,"div",11,3),y("click",function(){k(e);let s=d().$implicit,l=d(2);return M(l.toggleNode(s.id,s))}),r(2,"div",12),_(3,Ee,3,1)(4,Ae,2,0,"spk-icon",13),a(),r(5,"div",14),y("click",function(s){k(e);let l=d().$implicit,o=d(2);return M(o.toggleSelectedNode(s,l))}),m(6),a()(),_(7,De,1,7,"ng-container")}if(n&2){let e=d().$implicit;C("accepted",e.accepted===!0)("active",e.isSelected)("open",e.children.length)("usually-hidden",e.hidden),c(3),b(e.id!=="/"?3:4),c(3),U(" ",e.text," "),c(),b(e.children.length>0?7:-1)}}function Ie(n,t){if(n&1&&_(0,Ve,8,11),n&2){let e=t.$implicit,i=d(2);b(e.hidden&&i._showHiddenNodes()||!e.hidden?0:-1)}}function We(n,t){if(n&1&&(r(0,"spk-list"),ee(1,Ie,1,1,null,null,ye),a()),n&2){let e=t.$implicit;z("padding-left",e.level*.5,"rem"),c(),te(e.children)}}function He(n,t){n&1&&q(0)}function je(n,t){if(n&1){let e=E();r(0,"spk-toggle",15),y("click",function(){k(e);let s=d();return M(s._showHiddenNodes.set(!s._showHiddenNodes()))}),m(1),a()}if(n&2){let e=d();C("active",e._showHiddenNodes()),c(),U(" Show hidden ",e.showFiles()?"files":"folders"," ")}}var G=class n{#t=Y(re);multiSelect=g(!1);disabled=g(!1);showFiles=g(!1);selectFiles=g(!1);accepts=g(null);startingPath=g(null);rootPath=g(void 0);backupSettings=g(null);showHiddenNodes=g(!1);includes=L();excludes=L();_showHiddenNodes=T(!1);showHiddenNodesEffect=F(()=>this._showHiddenNodes.set(this.showHiddenNodes()),{allowSignalWrites:!0});treeContainerRef=R("treeContainer");formRef=R("formRef");pathDiscoveryMethod=T("browse");isLoading=T(!1);currentPath=T("/");#e=T(null);treeSearchQuery=T("");treeNodes=T([]);isByBackupSettings=V(()=>this.rootPath()&&this.backupSettings()?.id&&this.backupSettings()?.time);searchableTreeNodes=V(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});treeStructure=V(()=>{let t=this.searchableTreeNodes(),e=new Map,i=this.rootPath(),s=this.accepts(),l=i?{id:i,resolvedpath:i,text:i?.replaceAll("/",""),parentPath:"",children:[],isSelected:!1,cls:"folder"}:{id:"/",resolvedpath:"/",text:"Computer",parentPath:"",children:[],isSelected:!1};s&&(l.accepted=!0),e.set("/",l);for(let o of t){let p=o.id.replace(i??"","").split("/").filter(Boolean),u="",f=l;for(let O of p){if(u+="/"+O,!e.has(u)){let v={id:o.id,isSelected:o.isSelected,parentPath:u,resolvedpath:o.id?.startsWith("%")?o.resolvedpath+"/":u,hidden:o.hidden,text:o.text,cls:o.cls,children:[]};s&&(v.accepted=this.matchAccepts(s,v)),e.set(u,v),f.children.push(v)}f=e.get(u)}}return[l]});pathDiscoveryMethodEffect=F(()=>{let t=this.pathDiscoveryMethod(),e=this.#e();if(t==="browse"&&e)if(this.multiSelect()){let i=e.value.split("\0");this.treeNodes.update(s=>s.map(l=>x(P({},l),{isSelected:typeof l.id=="string"&&i.includes(l.id)})))}else this.treeNodes.update(i=>i.map(s=>x(P({},s),{isSelected:s.id===e.value})))},{allowSignalWrites:!0});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id==="/")return!0;let i=t.split(",");if(i.length===0)return!0;let s="."+e.id.slice(e.id.indexOf("."));return s?i.some(l=>s.endsWith(l)):!1}#a(){let t=this.treeContainerRef()?.nativeElement.querySelectorAll(".active");t&&t.length>0&&t[0].scrollIntoView({behavior:"smooth",block:"center"})}currentPathEffect=F(()=>{let t=this.#e();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")))},{allowSignalWrites:!0});selectedPathsEffect=F(()=>{if(this.multiSelect()){let t=this.treeNodes().filter(o=>o.isSelected),e=this.treeNodes().filter(o=>!o.isSelected&&t.some(h=>o.id?.startsWith(h.id))),i=t.filter(o=>!t.some(h=>o.id!==h.id&&o.id?.startsWith(h.id))).map(o=>o.id),s=e.filter(o=>!e.some(h=>o.id!==h.id&&o.id?.startsWith(h.id))).map(o=>`-${o.id}`);this.excludes.emit(s);let l=[...i,...s];this.currentPath.set(l.join("\0"))}else{let t=this.treeNodes().find(i=>i.isSelected),e=t?.resolvedpath;this.currentPath.set(t?.id??"")}},{allowSignalWrites:!0});inputValueChangeAbortController=null;inputRefEffect=F(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#o(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")},{allowSignalWrites:!0});ngOnInit(){let t=this.startingPath();t?(this.currentPath.set(t),this.#r(t)):this.#n(null,this.rootPath())}toggleSelectedNode(t,e){if(e.id==="/")return;if(t.stopPropagation(),this.selectFiles()&&e.cls==="folder"){this.toggleNode(e.id,e);return}this.accepts()&&!e.accepted||(this.multiSelect()?this.treeNodes.update(s=>s.map(l=>l.id?.startsWith(e.id)?x(P({},l),{isSelected:!e.isSelected}):l)):this.treeNodes.update(s=>s.map(l=>l.id===e.id?x(P({},l),{isSelected:!e.isSelected}):x(P({},l),{isSelected:!1}))))}toggleNode(t,e=null){e?.cls==="folder"&&(e?.children.length?this.treeNodes.update(i=>i.filter(s=>!s.id?.startsWith(e.id)||s.id===e.id)):this.#n(e,t))}#o(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}#s(t){return this.#t.postApiV1Filesystem({showHidden:!0,requestBody:{path:t},onlyFolders:!this.showFiles()})}#l(t){let e=this.backupSettings(),i={id:e.id,time:e.time,prefixOnly:!1,folderContents:!0};return t&&(i.filter="@"+t),this.#t.getApiV1BackupByIdFiles(i)}#i(t){return this.isByBackupSettings()?this.#l(t):this.#s(t)}#r(t){let e=t.split("\0").filter(o=>o.startsWith("-")).map(o=>o.slice(1,-1)),i=t.split("\0").filter(o=>!o.startsWith("-")).filter(Boolean),s=i.map(o=>o.split("/").filter(Boolean)),l=[this.rootPath()??"/"];s.forEach(o=>{o.forEach((h,p)=>{let u=o.slice(0,p+1).join("/"),f=u.startsWith("%")?u:"/"+u;l.includes(f)||l.push(f)})}),this.isLoading.set(!0),X([...l.map(o=>this.#i(o))]).pipe(j(()=>this.isLoading.set(!1))).subscribe({next:o=>{this.treeNodes.update(h=>{let p=o.flatMap(f=>f.map(O=>{let v=O.id,W=v&&v.split("/").filter(Boolean).slice(0,-1).join("/"),H="/"+(v&&v.split("/").filter(Boolean).join("/")),me=i.findIndex(w=>this.multiSelect()?H.startsWith(w):H===w)>-1,fe=i.findIndex(w=>w===v)>-1,_e=e.findIndex(w=>w===H)>-1;return x(P({},O),{parentPath:W.startsWith("%")?W:"/"+W,isSelected:me&&!_e||fe})}));return[...new Map([...h,...p].map(f=>[f.resolvedpath??f.id,f])).values()]})}})}#n(t=null,e="/"){this.isLoading.set(!0),this.#i(e).pipe(j(()=>this.isLoading.set(!1))).subscribe({next:i=>{let s=this.isByBackupSettings()?i.Files.map(l=>({text:l.Path.split("/").filter(o=>o!=="").pop(),id:l.Path,cls:l.Path.endsWith("/")?"folder":"file",leaf:t!==null,resolvedpath:l.Path,hidden:!1})):i;this.treeNodes.update(l=>{let o=s.map(p=>{let u=p.id.startsWith("%")&&p.id.endsWith("%")||p.id.endsWith("/")?"folder":"file";return x(P({},p),{cls:u,parentPath:e,isSelected:(this.multiSelect()&&t?.isSelected)??!1})});return[...new Map([...l,...o].map(p=>[p.resolvedpath??p.id,p])).values()]})}})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-file-tree"]],viewQuery:function(e,i){e&1&&(K(i.treeContainerRef,be,5),K(i.formRef,Pe,5)),e&2&&ne(2)},hostVars:2,hostBindings:function(e,i){e&2&&C("disabled",i.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"},standalone:!0,features:[B],ngContentSelectors:Te,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,i){if(e&1&&(A(xe),_(0,ke,5,4,"spk-button-group"),r(1,"div",4),S(2,0,["ngProjectAs","label",5,["label"]]),r(3,"div",5,0),_(5,Me,1,0,"spk-progress-bar",6)(6,We,3,2,"ng-template",null,1,se)(8,He,1,0,"ng-container",7),a(),_(9,je,2,3,"spk-toggle",8),a(),r(10,"div",9,2)(12,"spk-form-field"),S(13,1,["ngProjectAs","label",5,["label"]]),S(14,2,["ngProjectAs","input",5,["input"]]),a()()),e&2){let s=Q(7);b(i.multiSelect()?-1:0),c(),C("hidden",i.pathDiscoveryMethod()!=="browse"),c(2),C("visualize-accepted",i.accepts()),c(2),b(i.isLoading()?5:-1),c(3),$("ngTemplateOutlet",s)("ngTemplateOutletContext",D(13,ge,D(11,Se,i.treeStructure()))),c(),b(i.accepts()?-1:9),c(),C("hidden",i.pathDiscoveryMethod()!=="path")}},dependencies:[ce,he,I,de,pe,ue,le,ae],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}.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].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 Le=[[["","title",""]],"*"],Re=["[title]","*"];function $e(n,t){n&1&&m(0,"Title")}function qe(n,t){n&1&&(r(0,"spk-icon"),m(1,"caret-down"),a())}var J=class n{isActive=Z(!1);disallowToggle=g(!1);ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-toggle-card"]],hostVars:2,hostBindings:function(e,i){e&2&&C("active",i.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},standalone:!0,features:[B],ngContentSelectors:Re,decls:6,vars:1,consts:[[3,"click"],[1,"content"]],template:function(e,i){e&1&&(A(Le),r(0,"h3",0),y("click",function(){return i.disallowToggle()||i.toggle()}),S(1,0,null,$e,1,0),_(3,qe,2,0,"spk-icon"),a(),r(4,"div",1),S(5,1),a()),e&2&&(c(3),b(i.disallowToggle()?-1:3))},dependencies:[I],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);padding:1rem;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}.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{G as a,J as b};
|
package/chunk-VXKI3RQB.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as oe}from"./chunk-JE2I63Y6.js";import{Bb as g,P as H,Q as d,R as re,S as L,Sa as o,U as D,Va as E,Wb as h,X as De,Ya as N,aa as $,ab as u,ba as l,g as ve,gc as Ae,ia as W,k as ye,lb as se,ma as b,oa as be,p as Ce,qc as O,ra as A,rc as m,v as Ve,xa as M}from"./chunk-67JGZ4NF.js";import{a as c,b as p}from"./chunk-7CGTOI24.js";var xe=(()=>{class i{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(n){return new(n||i)(o(E),o(M))}}static{this.\u0275dir=l({type:i})}}return i})(),S=(()=>{class i extends xe{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,features:[u]})}}return i})(),C=new D(""),at={provide:C,useExisting:d(()=>lt),multi:!0},lt=(()=>{class i extends S{writeValue(e){this.setProperty("checked",e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){n&1&&g("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},features:[h([at]),u]})}}return i})(),ut={provide:C,useExisting:d(()=>Pe),multi:!0};function ct(){let i=oe()?oe().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var dt=new D(""),Pe=(()=>{class i extends xe{constructor(e,n,r){super(e,n),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!ct())}writeValue(e){let n=e??"";this.setProperty("value",n)}_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{this.\u0275fac=function(n){return new(n||i)(o(E),o(M),o(dt,8))}}static{this.\u0275dir=l({type:i,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(n,r){n&1&&g("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)})},features:[h([ut]),u]})}}return i})();function _(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function ke(i){return i!=null&&typeof i.length=="number"}var R=new D(""),T=new D(""),ht=/^(?=.{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])?)*$/,Me=class{static min(t){return ft(t)}static max(t){return pt(t)}static required(t){return gt(t)}static requiredTrue(t){return mt(t)}static email(t){return _t(t)}static minLength(t){return vt(t)}static maxLength(t){return yt(t)}static pattern(t){return Ct(t)}static nullValidator(t){return Ge(t)}static compose(t){return He(t)}static composeAsync(t){return $e(t)}};function ft(i){return t=>{if(_(t.value)||_(i))return null;let e=parseFloat(t.value);return!isNaN(e)&&e<i?{min:{min:i,actual:t.value}}:null}}function pt(i){return t=>{if(_(t.value)||_(i))return null;let e=parseFloat(t.value);return!isNaN(e)&&e>i?{max:{max:i,actual:t.value}}:null}}function gt(i){return _(i.value)?{required:!0}:null}function mt(i){return i.value===!0?null:{required:!0}}function _t(i){return _(i.value)||ht.test(i.value)?null:{email:!0}}function vt(i){return t=>_(t.value)||!ke(t.value)?null:t.value.length<i?{minlength:{requiredLength:i,actualLength:t.value.length}}:null}function yt(i){return t=>ke(t.value)&&t.value.length>i?{maxlength:{requiredLength:i,actualLength:t.value.length}}:null}function Ct(i){if(!i)return Ge;let t,e;return typeof i=="string"?(e="",i.charAt(0)!=="^"&&(e+="^"),e+=i,i.charAt(i.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=i.toString(),t=i),n=>{if(_(n.value))return null;let r=n.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Ge(i){return null}function Re(i){return i!=null}function Te(i){return Ae(i)?ye(i):i}function je(i){let t={};return i.forEach(e=>{t=e!=null?c(c({},t),e):t}),Object.keys(t).length===0?null:t}function Be(i,t){return t.map(e=>e(i))}function Vt(i){return!i.validate}function Ue(i){return i.map(t=>Vt(t)?t:e=>t.validate(e))}function He(i){if(!i)return null;let t=i.filter(Re);return t.length==0?null:function(e){return je(Be(e,t))}}function Le(i){return i!=null?He(Ue(i)):null}function $e(i){if(!i)return null;let t=i.filter(Re);return t.length==0?null:function(e){let n=Be(e,t).map(Te);return Ve(n).pipe(Ce(je))}}function We(i){return i!=null?$e(Ue(i)):null}function Ee(i,t){return i===null?[t]:Array.isArray(i)?[...i,t]:[i,t]}function qe(i){return i._rawValidators}function ze(i){return i._rawAsyncValidators}function ae(i){return i?Array.isArray(i)?i:[i]:[]}function Z(i,t){return Array.isArray(i)?i.includes(t):i===t}function Fe(i,t){let e=ae(t);return ae(i).forEach(r=>{Z(e,r)||e.push(r)}),e}function we(i,t){return ae(t).filter(e=>!Z(i,e))}var X=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Le(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=We(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_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{get formDirective(){return null}get path(){return null}},v=class extends X{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Y=class{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}},Dt={"[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"},vi=p(c({},Dt),{"[class.ng-submitted]":"isSubmitted"}),yi=(()=>{class i extends Y{constructor(e){super(e)}static{this.\u0275fac=function(n){return new(n||i)(o(v,2))}}static{this.\u0275dir=l({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&se("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)},features:[u]})}}return i})(),Ci=(()=>{class i extends Y{constructor(e){super(e)}static{this.\u0275fac=function(n){return new(n||i)(o(f,10))}}static{this.\u0275dir=l({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&se("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)},features:[u]})}}return i})();var x="VALID",q="INVALID",F="PENDING",P="DISABLED",y=class{},K=class extends y{constructor(t,e){super(),this.value=t,this.source=e}},k=class extends y{constructor(t,e){super(),this.pristine=t,this.source=e}},G=class extends y{constructor(t,e){super(),this.touched=t,this.source=e}},w=class extends y{constructor(t,e){super(),this.status=t,this.source=e}},le=class extends y{constructor(t){super(),this.source=t}},ue=class extends y{constructor(t){super(),this.source=t}};function fe(i){return(ie(i)?i.validators:i)||null}function bt(i){return Array.isArray(i)?Le(i):i||null}function pe(i,t){return(ie(t)?t.asyncValidators:i)||null}function At(i){return Array.isArray(i)?We(i):i||null}function ie(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function Ze(i,t,e){let n=i.controls;if(!(t?Object.keys(n):n).length)throw new H(1e3,"");if(!n[e])throw new H(1001,"")}function Xe(i,t,e){i._forEachChild((n,r)=>{if(e[r]===void 0)throw new H(1002,"")})}var I=class{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=O(()=>this.statusReactive()),this.statusReactive=N(void 0),this._pristine=O(()=>this.pristineReactive()),this.pristineReactive=N(!0),this._touched=O(()=>this.touchedReactive()),this.touchedReactive=N(!1),this._events=new ve,this.events=this._events.asObservable(),this._onDisabledChange=[],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 m(this.statusReactive)}set status(t){m(()=>this.statusReactive.set(t))}get valid(){return this.status===x}get invalid(){return this.status===q}get pending(){return this.status==F}get disabled(){return this.status===P}get enabled(){return this.status!==P}get pristine(){return m(this.pristineReactive)}set pristine(t){m(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return m(this.touchedReactive)}set touched(t){m(()=>this.touchedReactive.set(t))}get untouched(){return!this.touched}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(Fe(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Fe(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(we(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(we(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 n=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(p(c({},t),{sourceControl:n})),e&&t.emitEvent!==!1&&this._events.next(new G(!0,n))}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 n=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:n})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n),e&&t.emitEvent!==!1&&this._events.next(new G(!1,n))}markAsDirty(t={}){let e=this.pristine===!0;this.pristine=!1;let n=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(p(c({},t),{sourceControl:n})),e&&t.emitEvent!==!1&&this._events.next(new k(!1,n))}markAsPristine(t={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),e&&t.emitEvent!==!1&&this._events.next(new k(!0,n))}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(c({},t),{sourceControl:e}))}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=P,this.errors=null,this._forEachChild(r=>{r.disable(p(c({},t),{onlySelf:!0}))}),this._updateValue();let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new K(this.value,n)),this._events.next(new w(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(p(c({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=x,this._forEachChild(n=>{n.enable(p(c({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(p(c({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!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 n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===x||this.status===F)&&this._runAsyncValidator(n,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(c({},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()?P:x}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=F,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let n=Te(this.asyncValidator(this));this._asyncValidationSubscription=n.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((n,r)=>n&&n._find(r),this)}getError(t,e){let n=e?this.get(e):this;return n&&n.errors?n.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,n){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||n)&&this._events.next(new w(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,n)}_initObservables(){this.valueChanges=new A,this.statusChanges=new A}_calculateStatus(){return this._allControlsDisabled()?P:this.errors?q:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(F)?F:this._anyControlsHaveStatus(q)?q:x}_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 n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),r&&this._events.next(new k(this.pristine,e))}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new G(this.touched,e)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e)}_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=bt(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=At(this._rawAsyncValidators)}},J=class extends I{constructor(t,e,n){super(fe(e),pe(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}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,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.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,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){Xe(this,!0,t),Object.keys(t).forEach(n=>{Ze(this,!0,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(n=>{let r=this.controls[n];r&&r.patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.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,n)=>(t[n]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&t(n))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(t,e){let n=t;return this._forEachChild((r,s)=>{n=e(n,r,s)}),n}_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 ce=class extends J{};var j=new D("CallSetDisabledState",{providedIn:"root",factory:()=>B}),B="always";function ge(i,t){return[...t.path,i]}function de(i,t,e=B){me(i,t),t.valueAccessor.writeValue(i.value),(i.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(i.disabled),Et(i,t),wt(i,t),Ft(i,t),Mt(i,t)}function Q(i,t,e=!0){let n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),te(i,t),i&&(t._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function ee(i,t){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Mt(i,t){if(t.valueAccessor.setDisabledState){let e=n=>{t.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(e),t._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}function me(i,t){let e=qe(i);t.validator!==null?i.setValidators(Ee(e,t.validator)):typeof e=="function"&&i.setValidators([e]);let n=ze(i);t.asyncValidator!==null?i.setAsyncValidators(Ee(n,t.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let r=()=>i.updateValueAndValidity();ee(t._rawValidators,r),ee(t._rawAsyncValidators,r)}function te(i,t){let e=!1;if(i!==null){if(t.validator!==null){let r=qe(i);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.validator);s.length!==r.length&&(e=!0,i.setValidators(s))}}if(t.asyncValidator!==null){let r=ze(i);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.asyncValidator);s.length!==r.length&&(e=!0,i.setAsyncValidators(s))}}}let n=()=>{};return ee(t._rawValidators,n),ee(t._rawAsyncValidators,n),e}function Et(i,t){t.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&Ye(i,t)})}function Ft(i,t){t.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&Ye(i,t),i.updateOn!=="submit"&&i.markAsTouched()})}function Ye(i,t){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function wt(i,t){let e=(n,r)=>{t.valueAccessor.writeValue(n),r&&t.viewToModelUpdate(n)};i.registerOnChange(e),t._registerOnDestroy(()=>{i._unregisterOnChange(e)})}function It(i,t){i==null,me(i,t)}function St(i,t){return te(i,t)}function Ke(i,t){if(!i.hasOwnProperty("model"))return!1;let e=i.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function Nt(i){return Object.getPrototypeOf(i.constructor)===S}function Ot(i,t){i._syncPendingControls(),t.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Je(i,t){if(!t)return null;Array.isArray(t);let e,n,r;return t.forEach(s=>{s.constructor===Pe?e=s:Nt(s)?n=s:r=s}),r||n||e||null}function xt(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}function Ie(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}function Se(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var z=class extends I{constructor(t=null,e,n){super(fe(e),pe(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ie(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Se(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(n=>n(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){Ie(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Ie(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){Se(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 Pt=i=>i instanceof z,kt=(()=>{class i extends f{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ge(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,features:[u]})}}return i})();var Di=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=l({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return i})(),Gt={provide:C,useExisting:d(()=>Rt),multi:!0},Rt=(()=>{class i extends S{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){n&1&&g("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},features:[h([Gt]),u]})}}return i})(),Tt={provide:C,useExisting:d(()=>Bt),multi:!0};var jt=(()=>{class i{constructor(){this._accessors=[]}add(e,n){this._accessors.push([e,n])}remove(e){for(let n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===e){this._accessors.splice(n,1);return}}select(e){this._accessors.forEach(n=>{this._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}_isSameGroup(e,n){return e[0].control?e[0]._parent===n._control._parent&&e[1].name===n.name:!1}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=re({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Bt=(()=>{class i extends S{constructor(e,n,r,s){super(e,n),this._registry=r,this._injector=s,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=De(j,{optional:!0})??B}ngOnInit(){this._control=this._injector.get(v),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{this.\u0275fac=function(n){return new(n||i)(o(E),o(M),o(jt),o(be))}}static{this.\u0275dir=l({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(n,r){n&1&&g("change",function(){return r.onChange()})("blur",function(){return r.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[h([Tt]),u]})}}return i})();var _e=new D(""),Ut={provide:v,useExisting:d(()=>Ht)},Ht=(()=>{class i extends v{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,n,r,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new A,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=Je(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&Q(n,this,!1),de(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Ke(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Q(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{this.\u0275fac=function(n){return new(n||i)(o(R,10),o(T,10),o(C,10),o(_e,8),o(j,8))}}static{this.\u0275dir=l({type:i,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[h([Ut]),u,W]})}}return i})(),Lt={provide:f,useExisting:d(()=>Qe)},Qe=(()=>{class i extends f{get submitted(){return m(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}constructor(e,n,r){super(),this.callSetDisabledState=r,this._submitted=O(()=>this._submittedReactive()),this._submittedReactive=N(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new A,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(te(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 n=this.form.get(e.path);return de(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){Q(e.control||null,e,!1),xt(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,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this._submittedReactive.set(!0),Ot(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new le(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 ue(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,r=this.form.get(e.path);n!==r&&(Q(n||null,e),Pt(r)&&(de(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);It(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&St(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){me(this.form,this),this._oldForm&&te(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(n){return new(n||i)(o(R,10),o(T,10),o(j,8))}}static{this.\u0275dir=l({type:i,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&g("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h([Lt]),u,W]})}}return i})(),$t={provide:f,useExisting:d(()=>et)},et=(()=>{class i extends kt{constructor(e,n,r){super(),this.name=null,this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}_checkParentType(){it(this._parent)}static{this.\u0275fac=function(n){return new(n||i)(o(f,13),o(R,10),o(T,10))}}static{this.\u0275dir=l({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[h([$t]),u]})}}return i})(),Wt={provide:f,useExisting:d(()=>tt)},tt=(()=>{class i extends f{constructor(e,n,r){super(),this.name=null,this._parent=e,this._setValidators(n),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 ge(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){it(this._parent)}static{this.\u0275fac=function(n){return new(n||i)(o(f,13),o(R,10),o(T,10))}}static{this.\u0275dir=l({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[h([Wt]),u]})}}return i})();function it(i){return!(i instanceof et)&&!(i instanceof Qe)&&!(i instanceof tt)}var qt={provide:v,useExisting:d(()=>zt)},zt=(()=>{class i extends v{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,n,r,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new A,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=Je(this,s)}ngOnChanges(e){this._added||this._setUpControl(),Ke(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 ge(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{this.\u0275fac=function(n){return new(n||i)(o(f,13),o(R,10),o(T,10),o(C,10),o(_e,8))}}static{this.\u0275dir=l({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[h([qt]),u,W]})}}return i})(),Zt={provide:C,useExisting:d(()=>rt),multi:!0};function nt(i,t){return i==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${i}: ${t}`.slice(0,50))}function Xt(i){return i.split(":")[0]}var rt=(()=>{class i extends S{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;let n=this._getOptionId(e),r=nt(n,e);this.setProperty("value",r)}registerOnChange(e){this.onChange=n=>{this.value=this._getOptionValue(n),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n),e))return n;return null}_getOptionValue(e){let n=Xt(e);return this._optionMap.has(n)?this._optionMap.get(n):e}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){n&1&&g("change",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[h([Zt]),u]})}}return i})(),bi=(()=>{class i{constructor(e,n,r){this._element=e,this._renderer=n,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(nt(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{this.\u0275fac=function(n){return new(n||i)(o(M),o(E),o(rt,9))}}static{this.\u0275dir=l({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return i})(),Yt={provide:C,useExisting:d(()=>st),multi:!0};function Ne(i,t){return i==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${i}: ${t}`.slice(0,50))}function Kt(i){return i.split(":")[0]}var st=(()=>{class i extends S{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;let n;if(Array.isArray(e)){let r=e.map(s=>this._getOptionId(s));n=(s,a)=>{s._setSelected(r.indexOf(a.toString())>-1)}}else n=(r,s)=>{r._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(e){this.onChange=n=>{let r=[],s=n.selectedOptions;if(s!==void 0){let a=s;for(let V=0;V<a.length;V++){let U=a[V],ne=this._getOptionValue(U.value);r.push(ne)}}else{let a=n.options;for(let V=0;V<a.length;V++){let U=a[V];if(U.selected){let ne=this._getOptionValue(U.value);r.push(ne)}}}this.value=r,e(r)}}_registerOption(e){let n=(this._idCounter++).toString();return this._optionMap.set(n,e),n}_getOptionId(e){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n)._value,e))return n;return null}_getOptionValue(e){let n=Kt(e);return this._optionMap.has(n)?this._optionMap.get(n)._value:e}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,r){n&1&&g("change",function(a){return r.onChange(a.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[h([Yt]),u]})}}return i})(),Ai=(()=>{class i{constructor(e,n,r){this._element=e,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(Ne(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Ne(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{this.\u0275fac=function(n){return new(n||i)(o(M),o(E),o(st,9))}}static{this.\u0275dir=l({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return i})();var ot=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=$({type:i})}static{this.\u0275inj=L({})}}return i})(),he=class extends I{constructor(t,e,n){super(fe(e),pe(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}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,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){let n=this._adjustIndex(t);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){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:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){Xe(this,!1,t),t.forEach((n,r)=>{Ze(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,r)=>{n.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,n)=>n._syncPendingControls()?!0:e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_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 Oe(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var Mi=(()=>{class i{constructor(){this.useNonNullable=!1}get nonNullable(){let e=new i;return e.useNonNullable=!0,e}group(e,n=null){let r=this._reduceControls(e),s={};return Oe(n)?s=n:n!==null&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new J(r,s)}record(e,n=null){let r=this._reduceControls(e);return new ce(r,n)}control(e,n,r){let s={};return this.useNonNullable?(Oe(n)?s=n:(s.validators=n,s.asyncValidators=r),new z(e,p(c({},s),{nonNullable:!0}))):new z(e,n,r)}array(e,n,r){let s=e.map(a=>this._createControl(a));return new he(s,n,r)}_reduceControls(e){let n={};return Object.keys(e).forEach(r=>{n[r]=this._createControl(e[r])}),n}_createControl(e){if(e instanceof z)return e;if(e instanceof I)return e;if(Array.isArray(e)){let n=e[0],r=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(n,r,s)}else return this.control(e)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=re({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Ei=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:j,useValue:e.callSetDisabledState??B}]}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=$({type:i})}static{this.\u0275inj=L({imports:[ot]})}}return i})(),Fi=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:_e,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:j,useValue:e.callSetDisabledState??B}]}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=$({type:i})}static{this.\u0275inj=L({imports:[ot]})}}return i})();export{lt as a,Pe as b,Me as c,yi as d,Ci as e,z as f,Di as g,Rt as h,Bt as i,Ht as j,Qe as k,et as l,tt as m,zt as n,bi as o,Ai as p,Mi as q,Ei as r,Fi as s};
|