@duplicati/ngclient 0.0.85 → 0.0.89
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-DNDOALN6.js → chunk-2D7EACVA.js} +1 -1
- package/{chunk-UXQIJ2H5.js → chunk-2FAACUDI.js} +1 -1
- package/{chunk-JGOWJDLZ.js → chunk-2UJP6WUU.js} +1 -1
- package/{chunk-SWGKS3QC.js → chunk-3BNXVXL5.js} +1 -1
- package/{chunk-WWJFELTU.js → chunk-453FQ4EQ.js} +1 -1
- package/{chunk-C5EHOW7U.js → chunk-4RXMJUN5.js} +1 -1
- package/{chunk-DALX7AMG.js → chunk-5JYSV4UD.js} +1 -1
- package/chunk-5OX72VKG.js +1 -0
- package/chunk-6BPJFTZW.js +1 -0
- package/{chunk-IYQIIJKE.js → chunk-6CW3SAXM.js} +1 -1
- package/{chunk-XFS2LSEM.js → chunk-76MZP6D5.js} +1 -1
- package/{chunk-RGSJ6UVN.js → chunk-7AHZCQM7.js} +1 -1
- package/{chunk-W4MEGIZH.js → chunk-AUVMOLMG.js} +1 -1
- package/chunk-B6FHJOT5.js +1 -0
- package/{chunk-RTVM3BJK.js → chunk-BRWHKZV2.js} +1 -1
- package/{chunk-L5D4JLN3.js → chunk-C2JCNHTZ.js} +1 -1
- package/chunk-C4CQLUE6.js +1 -0
- package/{chunk-7LP2EQ7M.js → chunk-CKQFBLHP.js} +1 -1
- package/chunk-CLJTLGUH.js +1 -0
- package/chunk-DJWDNTTP.js +1 -0
- package/chunk-DJZUZAH5.js +1 -0
- package/chunk-DKICGIGJ.js +1 -0
- package/{chunk-Y2422GIA.js → chunk-DPNFOEAN.js} +1 -1
- package/chunk-DPPV7DVK.js +1 -0
- package/{chunk-7QNL2MJX.js → chunk-EAGORY3U.js} +1 -1
- package/{chunk-MNR2YI5Q.js → chunk-EMLPXGRD.js} +1 -1
- package/chunk-FCQHE46G.js +6 -0
- package/{chunk-KIB4MYBL.js → chunk-G76GVTZW.js} +1 -1
- package/{chunk-Y5WADXF5.js → chunk-H5V5U4VH.js} +1 -1
- package/{chunk-AO6V5EDZ.js → chunk-JCIUBQIN.js} +1 -1
- package/{chunk-7G6LF4RE.js → chunk-JFC5Z7YL.js} +1 -1
- package/{chunk-4A4CWPH7.js → chunk-K3LOA2DX.js} +1 -1
- package/{chunk-YOP6HOXH.js → chunk-KDCTRSPO.js} +1 -1
- package/{chunk-G3KME6QI.js → chunk-L2LZKY4R.js} +1 -1
- package/chunk-LAGOXMVK.js +1 -0
- package/chunk-LBJYPZA5.js +1 -0
- package/{chunk-7IPKE42T.js → chunk-LRB2TMMB.js} +1 -1
- package/chunk-LVA7V7CT.js +1 -0
- package/{chunk-DW725235.js → chunk-MMNUKDWS.js} +1 -1
- package/{chunk-XB5GDNN5.js → chunk-MTCSELIF.js} +1 -1
- package/chunk-N7DO2BHU.js +1 -0
- package/chunk-ODIN2IGP.js +1 -0
- package/chunk-PEA355CX.js +1 -0
- package/chunk-RS7BKRUH.js +1 -0
- package/chunk-S3L5VJJF.js +3 -0
- package/{chunk-PHQM25ND.js → chunk-SJBPW65N.js} +1 -1
- package/chunk-T7LDHEC3.js +1 -0
- package/chunk-U7UIU734.js +1 -0
- package/{chunk-PPRHD3ZV.js → chunk-UIOTKB6J.js} +1 -1
- package/{chunk-AYWJL6PH.js → chunk-UPW4CQ72.js} +1 -1
- package/{chunk-IZYAOMPF.js → chunk-VP3M4CWS.js} +1 -1
- package/{chunk-AXHB6A4N.js → chunk-W3VTD2H4.js} +1 -1
- package/{chunk-MCLDJCPW.js → chunk-W4YAOQRI.js} +1 -1
- package/{chunk-7LRQSKYZ.js → chunk-WJQN3BOF.js} +1 -1
- package/{chunk-7IRVNC4S.js → chunk-WYTHNCNI.js} +1 -1
- package/chunk-XTSJURO6.js +6 -0
- package/{chunk-OQ3EADZK.js → chunk-ZEMCELQ7.js} +1 -1
- package/{chunk-NNUHZ2L7.js → chunk-ZHFVGIIO.js} +1 -1
- package/chunk-ZI4ZJIB3.js +1 -0
- package/chunk-ZIKYV2TR.js +1 -0
- package/{chunk-P6HOXQHE.js → chunk-ZSKZUTTA.js} +1 -1
- package/{chunk-2M52SFS6.js → chunk-ZSSQBIRK.js} +6 -6
- package/chunk-ZZPLRWQP.js +1 -0
- package/index.html +2 -2
- package/{main-JZ3UOPVL.js → main-NR6TAXFB.js} +1 -1
- package/package.json +1 -1
- package/styles-OABXKND4.css +1 -0
- package/chunk-2VH4NDQH.js +0 -1
- package/chunk-2WZR3NHU.js +0 -6
- package/chunk-4WK5KLP3.js +0 -1
- package/chunk-6RMLOIRD.js +0 -1
- package/chunk-CI7PYMKD.js +0 -1
- package/chunk-DTCM7OB2.js +0 -1
- package/chunk-FMSANFAF.js +0 -1
- package/chunk-FQPMHKLD.js +0 -1
- package/chunk-FXXGCONI.js +0 -1
- package/chunk-G56SHWBZ.js +0 -1
- package/chunk-LJ3ULEOG.js +0 -1
- package/chunk-MADB4EX7.js +0 -1
- package/chunk-OKERRNQC.js +0 -6
- package/chunk-PNJEVGID.js +0 -1
- package/chunk-R2HH6TYJ.js +0 -1
- package/chunk-TO5QMMUQ.js +0 -1
- package/chunk-UIC2LGAH.js +0 -1
- package/chunk-WLQUMVWA.js +0 -1
- package/chunk-WQDSSB2V.js +0 -3
- package/chunk-X6SCWL5V.js +0 -1
- package/chunk-XKAASYKO.js +0 -1
- package/chunk-YO6IQOER.js +0 -1
- package/chunk-ZLMSSTXT.js +0 -1
- package/chunk-ZNTSJUHI.js +0 -1
- package/styles-HDO6WYV2.css +0 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{a as je}from"./chunk-UPW4CQ72.js";import{a as Le}from"./chunk-MMNUKDWS.js";import{a as At,b as qt}from"./chunk-DNHLTHLR.js";import{a as z}from"./chunk-ODIN2IGP.js";import{a as st}from"./chunk-KDCTRSPO.js";import{a as tt}from"./chunk-BRWHKZV2.js";import{a as Re,b as se,c as he,d as le,e as De,f as lt,g as Xt,h as Ee,i as ve,l as pt,m as ye,n as be,o as Ht,p as Pe,q as ne,r as ct,s as Ne}from"./chunk-5OX72VKG.js";import{b as Xe}from"./chunk-UIOTKB6J.js";import{a as Te,c as ae}from"./chunk-N7DO2BHU.js";import{a as pe,b as mt,d as jt,e as Wt,g as Ge,l as ce,n as ut,o as _t,r as me,w as Ve,x as He}from"./chunk-ZI4ZJIB3.js";import{c as zt}from"./chunk-W4YAOQRI.js";import{ia as at}from"./chunk-WYTHNCNI.js";import{Ab as r,Bb as u,C as Ye,Cb as H,Db as j,Eb as Be,Fb as k,Jc as B,Lb as C,Lc as rt,Mb as f,Nb as x,Ob as Ze,Pa as l,Pb as Je,Q as we,Qb as ke,Rb as D,Sb as p,Vb as X,W as $,Wa as Ce,Xb as W,Yb as U,ba as S,bc as fe,ca as T,cb as re,cc as Se,dc as Y,ec as _,fc as yt,ga as bt,gc as M,hb as d,hc as Gt,jc as Vt,k as Tt,kc as Lt,lc as Ut,mc as Pt,na as Dt,nc as Nt,o as Qe,oa as Et,oc as Ot,qb as c,qc as Bt,rc as Ke,sa as A,sb as Ae,sc as Kt,tc as et,vb as F,wb as J,xb as ee,xc as $e,yb as te,z as ht,zb as s}from"./chunk-ZSSQBIRK.js";import{a as O,c as vt}from"./chunk-C6Q5SG76.js";var dt=class e{fromString(n){if(!n)return null;let t=n.match(/(\d+)([smhDWMY])/);return t&&{value:parseInt(t[1]),unit:t[2]}}toString(n,t){return`${n}${t}`}static \u0275fac=function(t){return new(t||e)};static \u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"})};var Oe=class e{#e=$(Xe);s3Providers=z(this.getS3Config("Providers"));s3Regions=z(this.getS3Config("Regions"));s3RegionHosts=z(this.getS3Config("RegionHosts"));s3StorageClasses=z(this.getS3Config("StorageClasses"));storjSatellites=z(this.getStorjConfig("Satellites"));storjAuthenticationMethods=z(this.getStorjConfig("AuthenticationMethods"));openstackProviders=z(this.getOpenstackConfig("Providers"));openstackVersions=z(this.getOpenstackConfig("Versions"));gcsLocations=z(this.getGcsConfig("Locations"));gcsStorageClasses=z(this.getGcsConfig("StorageClasses"));getS3Config(n){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-getconfig",requestBody:{"s3-config":n}}).pipe(Qe(t=>this.#t(t)))}createS3IamUser(n,t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-iamconfig",requestBody:{"s3-operation":"CanCreateUser","s3-username":n,"s3-password":t}})}createS3PolicyIAM(n){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-iamconfig",requestBody:{"s3-operation":"GetPolicyDoc",path:n}})}getStorjConfig(n){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"storj-getconfig",requestBody:{"storj-config":n}}).pipe(Qe(t=>this.#t(t)))}getOpenstackConfig(n){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"openstack-getconfig",requestBody:{"openstack-config":n}}).pipe(Qe(t=>this.#t(t)))}getGcsConfig(n){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"gcs-getconfig",requestBody:{"gcs-config":n}}).pipe(Qe(t=>this.#t(t)))}#t(n){return(n.Result&&typeof n.Result=="object"&&Object.entries(n.Result).map(([t,o])=>({key:t,value:o})))??[]}static \u0275fac=function(t){return new(t||e)};static \u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"})};function Ue(e){return e==null?"":":"+e.toString()}function oe(e){return e==null?"":e.startsWith("/")?e:"/"+e}function w(e,n){let t={},o={};return n.searchParams.forEach((i,a)=>{Ie.find(m=>m.key===e)?.dynamicFields?.includes(a)?o[a]=decodeURIComponent(i):t[a]=decodeURIComponent(i)}),{advanced:t,dynamic:o}}function R(e,n=!1){let t=e.map(([i,a])=>`${i}=${a?encodeURIComponent(a.toString()):""}`).join("&");return t?(n?"":"?")+t:""}function Ft(e){let n=e.destinationType,t=Ie.find(o=>o.customKey===n||o.key===n);if(!t)throw new Error("Invalid destination type");return t?.mapper.to(e)??""}function kt(e){let n=URL.canParse(e),t=e.split("://")[0],o=e.split("://")[1],i="http://"+o;if(o.startsWith("%")&&t==="file")return Ie.find(a=>a.customKey===t||a.key===t)?.mapper.from(t,new URL("http://localhost"),e);try{let a=new URL(i);return Ie.find(m=>m.customKey===t||m.key===t)?.mapper.from(t,a,e)}catch(a){console.error("Error while parsing target path",a)}if(!n)throw new Error("Invalid target path");return null}var h=new ne,Ie=[{key:"file",displayName:"File system",description:"Store backups on your local file system.",customFields:{path:{type:"FolderTree",name:"path",shortDescription:"File path",longDescription:"The path to store the backup",formElement:e=>h.control(e??"")}},mapper:{to:e=>{let n=R([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${e.custom.path}${n}`},from:(e,n,t)=>{let i=t.startsWith("file:///")?t.split("file:///")[1]:t.split("file://")[1],a=i.startsWith("%"),g=i.slice(1).startsWith(":\\")||a?i:"/"+i;return O({destinationType:e,custom:{path:g}},w(e,n))}}},{key:"ssh",displayName:"SSH",description:"Store backups in SSH.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"The server to connect to",formElement:e=>h.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"The port to connect to",formElement:e=>h.control(e??"",[he.required,he.max(65535)])},path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",formElement:e=>h.control(e??"")}},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"}],mapper:{to:e=>{let n=R([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{port:t,server:o,path:i}=e.custom;return`${e.destinationType}://${o+Ue(t)+oe(i)+n}`},from:(e,n,t)=>O({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},w(e,n))}},{key:"s3",displayName:"S3 compatible bucket",description:"Store backups in any S3 compatible bucket.",customFields:{bucket:{type:"String",name:"bucket",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:e=>h.control(e??"")},path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",formElement:e=>h.control(e??"")}},dynamicFields:[{name:"s3-server-name",shortDescription:"Server",type:"NonValidatedSelectableString",loadOptions:e=>e.get(Oe).s3Providers},"use-ssl","auth-username","auth-password"],advancedFields:[{name:"s3-client",type:"Enumeration",options:["aws","minio"]},{name:"s3-storage-class",type:"NonValidatedSelectableString",loadOptions:e=>e.get(Oe).s3StorageClasses}],mapper:{to:e=>{let{bucket:n,path:t}=e.custom,o=R([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n+oe(t)+o}`},from:(e,n,t)=>O({destinationType:e,custom:{path:n.pathname,bucket:n.hostname}},w(e,n))}},{key:"gcs",displayName:"Google Cloud Storage",description:"Store backups in Google Cloud Storage.",oauthField:"authid",customFields:{path:{type:"Path",name:"path",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:e=>h.control(e??"")}},dynamicFields:[{name:"gcs-location",type:"NonValidatedSelectableString",loadOptions:e=>e.get(Oe).gcsLocations},{name:"gcs-storage-class",type:"NonValidatedSelectableString",loadOptions:e=>e.get(Oe).gcsStorageClasses},"authid"],mapper:{to:e=>{let n=R([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${e.custom.path}${n}`},from:(e,n,t)=>O({destinationType:e,custom:{path:n.hostname+n.pathname}},w(e,n))}},{key:"googledrive",displayName:"Google Drive",description:"Store backups in Google Drive.",oauthField:"authid",customFields:{path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",formElement:e=>h.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=R([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>O({destinationType:e,custom:{path:n.hostname+n.pathname}},w(e,n))}},{key:"pcloud",displayName:"pCloud",description:"Store backups in pCloud.",oauthField:"authid",customFields:{server:{type:"Enumeration",name:"server",loadOptions:()=>A([{key:"pCloud Global",value:"api.pcloud.com"},{key:"pCloud Europe",value:"eapi.pcloud.com"}]),shortDescription:"Server",longDescription:"Server",formElement:e=>h.control(e??"")},path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",formElement:e=>h.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=R([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>{let o=n.pathname.replace(/^\//,"");return O({destinationType:e,custom:{server:n.hostname,path:o}},w(e,n))}}},{key:"azure",displayName:"Azure Blob Storage",description:"Store backups in Azure Blob Storage.",customFields:{path:{type:"String",name:"path",shortDescription:"Container name",longDescription:"Container name",formElement:e=>h.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Account name"},{name:"auth-password",shortDescription:"Access key"}],mapper:{to:e=>{let n=e.custom.path,t=R([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>O({destinationType:e,custom:{path:n.hostname+n.pathname}},w(e,n))}},{key:"onedrivev2",displayName:"OneDrive",description:"Store backups in OneDrive.",oauthField:"authid",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>h.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=R([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>O({destinationType:e,custom:{path:n.hostname+n.pathname}},w(e,n))}},{key:"od4b",displayName:"OneDrive Business",description:"Store backups in OneDrive Business.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>h.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:e=>h.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>h.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Account name"},{name:"auth-password",shortDescription:"Access key"}],mapper:{to:e=>{let n=R([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{port:t,server:o,path:i}=e.custom;return`${e.destinationType}://${o+Ue(t)+oe(i)+n}`},from:(e,n,t)=>O({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},w(e,n))}},{key:"mssp",displayName:"Microsoft SharePoint",description:"Store backups in Microsoft SharePoint.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>h.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:e=>h.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>h.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Account name"},{name:"auth-password",shortDescription:"Access key"}],mapper:{to:e=>{let n=R([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{port:t,server:o,path:i}=e.custom;return`${e.destinationType}://${o+Ue(t)+oe(i)+n}`},from:(e,n,t)=>O({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},w(e,n))}},{key:"sharepoint",displayName:"Microsoft SharePoint v2",description:"Store backups in Microsoft SharePoint.",oauthField:"authid",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>h.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=R([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>O({destinationType:e,custom:{path:n.hostname+n.pathname}},w(e,n))}},{key:"dropbox",displayName:"Dropbox",description:"Store backups in Dropbox.",oauthField:"authid",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>h.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=R([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>O({destinationType:e,custom:{path:n.hostname+n.pathname}},w(e,n))}},{key:"box",displayName:"Box.com",description:"Store backups in Box.com.",oauthField:"authid",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>h.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=R([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>O({destinationType:e,custom:{path:n.hostname+n.pathname}},w(e,n))}},{key:"jottacloud",displayName:"Jottacloud",description:"Store backups in Jottacloud.",oauthField:"authid",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>h.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=R([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>O({destinationType:e,custom:{path:n.hostname+n.pathname}},w(e,n))}},{key:"b2",displayName:"B2 Cloud Storage",description:"Store backups in B2 Cloud Storage.",customFields:{bucket:{type:"String",name:"bucket",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:e=>h.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path in the bucket",longDescription:"Path in the bucket",formElement:e=>h.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Application ID"},{name:"auth-password",shortDescription:"Application Key"}],mapper:{to:e=>{let{bucket:n,path:t}=e.custom,o=R([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n+oe(t)+o}`},from:(e,n,t)=>O({destinationType:e,custom:{bucket:n.hostname,path:n.pathname}},w(e,n))}},{key:"e2",displayName:"IDrive e2",description:"Store backups in IDrive e2.",customFields:{bucket:{type:"String",name:"bucket",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:e=>h.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path in the bucket",longDescription:"Path in the bucket",formElement:e=>h.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Access ID"},{name:"auth-password",shortDescription:"Access Secret"}],mapper:{to:e=>{let{bucket:n,path:t}=e.custom,o=R([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n+oe(t)+o}`},from:(e,n,t)=>O({destinationType:e,custom:{bucket:n.hostname,path:n.pathname}},w(e,n))}},{key:"mega",displayName:"Mega.nz",description:"Store backups in Mega.nz.",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>h.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Username"},{name:"auth-password",shortDescription:"Password"}],mapper:{to:e=>{let n=e.custom.path,t=R([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>O({destinationType:e,custom:{path:n.hostname+n.pathname}},w(e,n))}},{key:"msgroup",displayName:"Microsoft Office 365 Group",description:"Store backups in Microsoft Office 365 Group.",oauthField:"authid",customFields:{groupEmail:{type:"Email",name:"groupEmail",shortDescription:"Group email",longDescription:"Group email",formElement:e=>h.control(e??"",[he.email])},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>h.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=R([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>O({destinationType:e,custom:{path:n.hostname+n.pathname}},w(e,n))}},{key:"cloudfiles",displayName:"Rackspace CloudFiles",description:"Store backups in Rackspace CloudFiles.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>h.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:e=>h.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>h.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Username"},{name:"auth-password",shortDescription:"Password"}],mapper:{to:e=>{let n=R([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{port:t,server:o,path:i}=e.custom;return`${e.destinationType}://${o+Ue(t)+oe(i)+n}`},from:(e,n,t)=>O({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},w(e,n))}},{key:"rclone",displayName:"Rclone",description:"Store backups in Rclone.",dynamicFields:[{name:"rclone-local-repository",shortDescription:"Local repository",defaultValue:""},{name:"rclone-remote-repository",shortDescription:"Remote repository",defaultValue:""},{name:"rclone-remote-path",shortDescription:"Path on remote repository",defaultValue:""}],mapper:{to:e=>{let n=e.dynamic["rclone-remote-repository"],t=e.dynamic["rclone-remote-path"],o=Object.entries(e.dynamic).filter(([a])=>!["rclone-remote-repository","rclone-remote-path"].includes(a)),i=R([...Object.entries(e.advanced),...o]);return`${e.destinationType}://${n}/${t+i}`},from:(e,n,t)=>{let{advanced:o,dynamic:i}=w(e,n);return O({destinationType:e,dynamic:O({"rclone-remote-repository":n.hostname,"rclone-remote-path":n.pathname},i)},o)}}},{key:"openstack",displayName:"OpenStack Object Storage",description:"Store backups in OpenStack Object Storage.",customFields:{bucket:{type:"String",name:"bucket",shortDescription:"Bucket",longDescription:"Bucket",formElement:e=>h.control(e??"")}},dynamicFields:[{name:"openstack-authuri",shortDescription:"Auth URI",type:"Enumeration",loadOptions:e=>e.get(Oe).openstackProviders},{name:"openstack-version",shortDescription:"Version",type:"Enumeration",loadOptions:e=>e.get(Oe).openstackVersions},{name:"openstack-domain-name",shortDescription:"Domain name"},{name:"openstack-tenant-name",shortDescription:"Tenant name"},{name:"openstack-region",shortDescription:"Region"}],mapper:{to:e=>{let n=R([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{bucket:t}=e.custom;return`${e.destinationType}://${t+n}`},from:(e,n,t)=>O({destinationType:e,custom:{path:n.pathname,bucket:n.hostname}},w(e,n))}},{key:"webdav",displayName:"WebDAV",description:"Store backups in WebDAV.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>h.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:e=>h.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>h.control(e??"")}},dynamicFields:[{name:"use-ssl",shortDescription:"Use SSL"},{name:"auth-username",shortDescription:"Username"},{name:"auth-password",shortDescription:"Password"}],mapper:{to:e=>{let{port:n,server:t,path:o}=e.custom,i=e.dynamic["use-ssl"],a=R([...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([m])=>m!=="use-ssl")]);return`${e.destinationType}${i?"s":""}://${t+Ue(n)+oe(o)+a}`},from:(e,n,t)=>O({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},w(e,n))}},{key:"aftp",displayName:"FTP",description:"Store backups in FTP.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>h.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:e=>h.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>h.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Username"},{name:"auth-password",shortDescription:"Password"}],mapper:{to:e=>{let{port:n,server:t,path:o}=e.custom,i=R([...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([a])=>a!=="use-ssl")]);return`${e.destinationType}://${t+Ue(n)+oe(o)+i}`},from:(e,n,t)=>O({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},w(e,n))}},{key:"sia",displayName:"Sia Decentrilized Cloud",description:"Store backups in Sia Decentrilized Cloud.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>h.control(e??"")}},dynamicFields:["sia-targetpath","sia-password","sia-redundancy"],mapper:{to:e=>{let n=e.custom.server,t=e.dynamic["sia-targetpath"],o=R([...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([i])=>i!=="sia-targetpath")]);return`${e.destinationType}://${n+oe(t)+o}`},from:(e,n,t)=>O({destinationType:e,custom:{path:n.pathname}},w(e,n))}},{key:"cos",displayName:"Tencent COS",description:"Store backups in Tencent COS.",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>h.control(e??"")}},dynamicFields:[{name:"cos-bucket",shortDescription:"Bucket",order:1},{name:"cos-region",shortDescription:"Region",order:2},{name:"cos-app-id",shortDescription:"COS App Id",order:3},{name:"cos-secret-id",shortDescription:"COS Secret Id",order:4},{name:"cos-secret-key",shortDescription:"COS Secret Key",order:5}],mapper:{to:e=>{let n=e.custom.path,t=R([...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([o])=>o!=="cos-targetpath")]);return`${e.destinationType}://${n+t}`},from:(e,n,t)=>O({destinationType:e,custom:{path:n.pathname}},w(e,n))}},{key:"tahoe",displayName:"Tahoe LAFS",description:"Store backups in Tahoe LAFS.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>h.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:e=>h.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>h.control(e??"")},username:{type:"String",name:"username",shortDescription:"Username",longDescription:"Username",formElement:e=>h.control(e??"")},password:{type:"Password",name:"password",shortDescription:"Password",longDescription:"Password",formElement:e=>h.control(e??"")}},dynamicFields:[{name:"use-ssl",shortDescription:"Use SSL"}],mapper:{to:e=>{let{port:n,server:t,path:o,username:i,password:a}=e.custom,m={"auth-username":i,"auth-password":a},g=e.dynamic["use-ssl"],P=R([...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([N])=>N!=="use-ssl"),...Object.entries(m)]);return`${e.destinationType}${g?"s":""}://${t+Ue(n)+oe(o)+P}`},from:(e,n,t)=>O({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},w(e,n))}},{key:"cifs",displayName:"CIFS",description:"Store backups in CIFS.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>h.control(e??"")},share:{type:"String",name:"share",shortDescription:"Share Name",longDescription:"Share Name",formElement:e=>h.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>h.control(e??"")}},dynamicFields:["transport","auth-username","auth-password","auth-domain"],mapper:{to:e=>{let{share:n,server:t,path:o,username:i,password:a}=e.custom,m={"auth-username":i,"auth-password":a},g=R([...Object.entries(e.advanced),...Object.entries(m)]);return`${e.destinationType}://${t+oe(n)+oe(o)+g}`},from:(e,n,t)=>{let o=n.pathname.split("/")[1],i=n.pathname.split("/").slice(2).join("/");return O({destinationType:e,custom:{server:n.hostname,share:o,path:i}},w(e,n))}}},{key:"storj",customKey:"storjAccessGrant",displayName:"Storj Access Grant",description:"Store backups in Storj Access Grant.",dynamicFields:[{name:"storj-shared-access",shortDescription:"Access Grant"},{name:"storj-bucket",shortDescription:"Bucket"},{name:"storj-folder",shortDescription:"Path on server"}],mapper:{to:e=>`storj://storj.io/config?storj-auth-method=Access%20grant&storj-satellite=us1.storj.io%3A7777&storj-api-key&storj-secret&${R([...Object.entries(e.advanced),...Object.entries(e.dynamic)],!0)}`,from:(e,n,t)=>O({destinationType:e},w(e,n))}},{key:"storj",customKey:"storjApiKey",displayName:"Storj API Key",description:"Store backups in Storj API Key.",dynamicFields:[{name:"storj-satellite",shortDescription:"Satellite",type:"Enumeration",loadOptions:e=>e.get(Oe).storjSatellites},{name:"storj-api-key",shortDescription:"API Key"},{name:"storj-secret",shortDescription:"Secret"},{name:"storj-bucket",shortDescription:"Bucket"},{name:"storj-folder",shortDescription:"Path on server"}],mapper:{to:e=>`storj://storj.io/config?storj-auth-method=API%20key&${R([...Object.entries(e.advanced),...Object.entries(e.dynamic)],!0)}`,from:(e,n,t)=>O({destinationType:e},w(e,n))}}];var Qt=/[a-zA-Z0-9_\-\+\.!@#$%^&*?_~()-]/,gt=class e{generate(n,t=Qt){let o;do o=this.generatePassword(n,t);while(this.calculatePasswordStrength(o)<5);return o}generatePassword(n,t=Qt){let o=this;return Array.apply(null,{length:n}).map(()=>{let i;for(;;)if(i=String.fromCharCode(o.#e()),t.test(i))return i},this).join("")}calculatePasswordStrength(n){let t=1;return n.length>=8&&t++,n.match(/[a-z]/)&&n.match(/[A-Z]/)&&t++,n.match(/\d+/)&&t++,n.match(/.[!,@,#,$,%,^,&,*,?,_,~,(,),-]/)&&t++,Math.min(t,5)}#e(){if(window.crypto&&window.crypto.getRandomValues){let n=new Uint8Array(1);return window.crypto.getRandomValues(n),n[0]}else if(window.msCrypto&&window.msCrypto.getRandomValues){let n=new Uint8Array(1);return window.msCrypto.getRandomValues(n),n[0]}else return Math.floor(Math.random()*256)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"})};var sn=["formRef"];function ln(e,n){if(e&1&&_(0),e&2){let t=n.$implicit;M(" ",t.DisplayName," ")}}function pn(e,n){if(e&1&&u(0,"spk-progress-bar",37),e&2){let t=p(3);Ae("error",t.calculatePasswordStrength()===1)("warn",t.calculatePasswordStrength()===2)("primary",t.calculatePasswordStrength()===4)("success",t.calculatePasswordStrength()===5),c("value",t.calculatePasswordStrength()*(100/5))}}function cn(e,n){e&1&&(s(0,"span",32),x(1,9),r())}function mn(e,n){e&1&&(C(0,7,1),u(1,"spk-icon"),f())}function un(e,n){e&1&&(C(0,7,2),u(1,"spk-icon"),f())}function _n(e,n){e&1&&(C(0,10,1),u(1,"spk-icon",39),f())}function dn(e,n){e&1&&(C(0,10,2),u(1,"spk-icon"),f())}function Fn(e,n){if(e&1){let t=k();s(0,"button",38),D("click",function(){S(t);let i=p(3);return T(i.copyPassword())}),C(1,10),d(2,_n,2,0)(3,dn,2,0),f(),r()}if(e&2){let t=p(3);l(2),F(t.copiedPassword()?2:3)}}function gn(e,n){e&1&&(s(0,"spk-alert",36),x(1,11),r())}function Cn(e,n){if(e&1){let t=k();s(0,"div",27)(1,"spk-form-field")(2,"label",28),C(3,6),u(4,"sup"),f(),r(),u(5,"input",29),r(),d(6,pn,1,9,"spk-progress-bar",30),s(7,"spk-form-field"),u(8,"input",31),d(9,cn,2,0,"span",32),r(),s(10,"div",33)(11,"button",34),D("click",function(){S(t);let i=p(2);return T(i.showPassword.set(!i.showPassword()))}),C(12,7),d(13,mn,2,0)(14,un,2,0),f(),r(),s(15,"button",34),D("click",function(){S(t);let i=p(2);return T(i.generatePassword())}),C(16,8),u(17,"spk-icon"),f(),r(),d(18,Fn,4,1,"button",35),r(),d(19,gn,2,0,"spk-alert",36),r()}if(e&2){let t=p(2);l(5),c("type",t.showPassword()?"text":"password"),l(),F(t.generalForm.value.password?6:-1),l(2),c("type",t.showPassword()?"text":"password"),l(),F(t.generalForm.value.repeatPassword&&t.generalForm.value.repeatPassword!==t.generalForm.value.password?9:-1),l(4),F(t.showPassword()?13:14),l(5),F(t.showCopyPassword()?18:-1),l(),F(t.generalForm.value.password&&t.generalForm.value.password===t.generalForm.value.repeatPassword?19:-1)}}function fn(e,n){if(e&1&&(s(0,"spk-select",24)(1,"label",25),x(2,5),r(),u(3,"input",26),d(4,ln,1,1,"ng-template"),r(),d(5,Cn,20,7,"div",27)),e&2){let t=p();c("options",t.encryptionOptions())("isClearable",!1),l(5),F(t.encryptionFieldSignal()!==""?5:-1)}}function Sn(e,n){if(e&1&&(s(0,"button",22),C(1,12),u(2,"spk-icon"),f(),r()),e&2){let t=p();c("disabled",t.generalForm.invalid)}}function Tn(e,n){if(e&1&&(s(0,"spk-tooltip",23)(1,"button",22),C(2,13),u(3,"spk-icon"),f(),r()()),e&2){let t=p();c("disabled",!(t.showCopyPassword()&&!t.copiedPassword())),l(),c("disabled",t.generalForm.invalid||t.showCopyPassword()&&!t.copiedPassword())}}var We=new ne,Yt=(e={name:"",description:"",encryption:"",password:"",repeatPassword:""})=>We.group({name:We.control(e.name,[he.required]),description:We.control(e.description),encryption:We.control(e.encryption,[qt()]),password:We.control(e.password,[At(n=>n?.value.encryption!=="",[he.required])]),repeatPassword:We.control(e.repeatPassword,[At(n=>n?.value.encryption!=="",[he.required])])}),xt={Key:"",DisplayName:"None"},$t=class e{#e=$(ae);#t=$(Te);#o=$(gt);#i=$(ue);#n=$(st);formRef=Ce.required("formRef");generalForm=this.#i.generalForm;generalFormSignal=this.#i.generalFormSignal;encryptionFieldSignal=this.#i.encryptionFieldSignal;encryptionOptions=this.#i.encryptionOptions;isNew=this.#i.isNew;showPassword=A(!1);copiedPassword=A(!1);showCopyPassword=A(!1);encryptionEffect=rt(()=>{this.encryptionFieldSignal()===""&&(this.copiedPassword.set(!1),this.showCopyPassword.set(!1))});calculatePasswordStrength=B(()=>{let t=this.generalFormSignal()?.password??"";return this.#o.calculatePasswordStrength(t)});ngOnInit(){this.formRef().nativeElement.focus()}exit(){this.#i.exit()}async copyPassword(){let n=this.generalForm.controls.password.value;await this.#r(n??""),this.copiedPassword.set(!0)}async#r(n){try{await navigator.clipboard.writeText(n)}catch{try{let o=document.createElement("textarea");o.value=n,document.body.appendChild(o),o.select(),document.execCommand("copy"),document.body.removeChild(o)}catch(o){console.error("Failed to copy text: ",o)}}}displayFn(){let n=this.#n.systemInfo()?.EncryptionModules??[];return t=>{let o=[xt,...n].find(i=>i.Key===t);return o?`${o.DisplayName}`:""}}generatePassword(){this.copiedPassword.set(!1);let n=this.#o.generate(16);this.generalForm.controls.password.setValue(n),this.generalForm.controls.repeatPassword.setValue(n),this.showCopyPassword.set(!0)}next(){this.#e.navigate(["destination"],{relativeTo:this.#t.parent})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=re({type:e,selectors:[["app-general"]],viewQuery:function(t,o){t&1&&fe(o.formRef,sn,5),t&2&&Se()},decls:20,vars:3,consts:()=>{let n;n=$localize`Your backup name`;let t;t=$localize`Your backup description`;let o;o=$localize`General backup settings`;let i;i=$localize` Backup name ${"\uFFFD#7\uFFFD"}:START_SUPERSCRIPT:*${"\uFFFD/#7\uFFFD"}:CLOSE_SUPERSCRIPT:`;let a;a=$localize`Backup description`;let m;m=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_ICON: Exit `;let g;g=$localize`Encryption`;let P;P=$localize`Encryption`;let N;N=$localize`Password`;let G;G=$localize`Repeat password`;let b;b=$localize` Create a password ${"\uFFFD#4\uFFFD"}:START_SUPERSCRIPT:*${"\uFFFD/#4\uFFFD"}:CLOSE_SUPERSCRIPT:`;let v;v=$localize`${"\uFFFD*13:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:eye-slash${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: hide ${"\uFFFD/*13:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*14:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:eye${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: show ${"\uFFFD/*14:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,v=ke(v);let L;L=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SPK_ICON:password${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_ICON: Generate password `;let q;q=$localize`Passwords do not match`;let Z;Z=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SPK_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Copied password ${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SPK_ICON_1:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Copy password ${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,Z=ke(Z);let E;E=$localize` Tip: Be sure to save your password. If you loose it you will lose access to your backups. `;let y;y=$localize` Continue ${"\uFFFD#2\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let K;return K=$localize` Continue ${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[["formRef",""],o,i,a,m,P,b,v,L,q,Z,E,y,K,["autocomplete","off",3,"submit","formGroup"],[1,"title-30"],["for","backupName"],["type","text","tabindex","1","placeholder",n,"formControlName","name"],["for","backupDescription"],["id","backupDescription","tabindex","2","placeholder",t,"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"],["value","Key","label","DisplayName",3,"options","isClearable"],["for","encryption"],["type","text","id","encryption","tabindex","3","placeholder",g,"formControlName","encryption"],[1,"passwords"],["for","password"],["id","password","tabindex","4","autocomplete","off","placeholder",N,"formControlName","password",3,"type"],[1,"raised",3,"error","warn","primary","success","value"],["id","repeatPassword","tabindex","5","autocomplete","off","placeholder",G,"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(t,o){if(t&1){let i=k();s(0,"form",14,0),D("submit",function(){return S(i),T(o.next())}),s(2,"h3",15),x(3,1),r(),s(4,"spk-form-field")(5,"label",16),C(6,2),u(7,"sup"),f(),r(),u(8,"input",17),r(),s(9,"spk-form-field")(10,"label",18),x(11,3),r(),u(12,"textarea",19),r(),d(13,fn,6,3),s(14,"div",20)(15,"button",21),D("click",function(){return S(i),T(o.exit())}),C(16,4),u(17,"spk-icon"),f(),r(),d(18,Sn,3,1,"button",22)(19,Tn,4,2,"spk-tooltip",23),r()()}t&2&&(c("formGroup",o.generalForm),l(13),F(o.isNew()?13:-1),l(5),F(o.encryptionFieldSignal()===""?18:19))},dependencies:[Ne,Ee,se,le,De,ye,Pe,ce,me,Ge,pe,_t,mt,He],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;padding-bottom:1.5rem}sup[_ngcontent-%COMP%]{padding:0 .125rem;color:var(--error-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 hn=["formRef"],Dn=(e,n)=>({index:e,formView:n,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),En=e=>({$implicit:e});function yn(e,n){e&1&&(C(0,6,1),u(1,"spk-icon",18),f())}function Pn(e,n){e&1&&(s(0,"p",18),x(1,12),r())}function Nn(e,n){if(e&1){let t=k();C(0,9,1),s(1,"button",35,2),D("click",function(){let i=S(t).$implicit,a=p();return T(a.addNewOption(i))}),r(),f()}if(e&2){let t=n.$implicit;l(),Ze(t.name),Je(0)}}function On(e,n){e&1&&Be(0)}function An(e,n){if(e&1&&d(0,On,1,0,"ng-container",36),e&2){let t=n.$implicit,o=n.$index;p();let i=Y(34);c("ngTemplateOutlet",i)("ngTemplateOutletContext",Ke(5,En,Kt(2,Dn,o,t)))}}function kn(e,n){if(e&1&&(s(0,"spk-tooltip",45)(1,"spk-icon"),_(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function $n(e,n){if(e&1&&(s(0,"app-file-tree",39)(1,"label",44),_(2),d(3,kn,3,1,"spk-tooltip",45),r(),u(4,"input",46),r()),e&2){let t,o=p().$implicit,i=p();c("startingPath",i.getFormFieldValue(0,o.formGroupName,o.formView.name))("accepts",o.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),l(),W("for","destination-",o.formGroupName,"-",o.index,""),l(),M(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),l(),F(o.formView.longDescription?3:-1),l(),W("id","destination-",o.formGroupName,"-",o.index,""),X("formControlName",o.formView.name)}}function xn(e,n){if(e&1&&(s(0,"spk-tooltip",45)(1,"spk-icon"),_(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function In(e,n){if(e&1&&(s(0,"app-file-tree",40)(1,"label",44),_(2),d(3,xn,3,1,"spk-tooltip",45),r(),u(4,"input",46),r()),e&2){let t,o=p().$implicit,i=p();c("startingPath",i.getFormFieldValue(0,o.formGroupName,o.formView.name)),l(),W("for","destination-",o.formGroupName,"-",o.index,""),l(),M(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),l(),F(o.formView.longDescription?3:-1),l(),W("id","destination-",o.formGroupName,"-",o.index,""),X("formControlName",o.formView.name)}}function Mn(e,n){if(e&1&&(s(0,"spk-tooltip",45)(1,"spk-icon"),_(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function wn(e,n){e&1&&(s(0,"spk-icon",47),_(1,"link"),r())}function Rn(e,n){e&1&&(s(0,"spk-icon",47),_(1,"textbox"),r())}function vn(e,n){if(e&1&&(s(0,"spk-form-field")(1,"label",44),_(2),d(3,Mn,3,1,"spk-tooltip",45),r(),u(4,"input",46),d(5,wn,2,0,"spk-icon",47)(6,Rn,2,0,"spk-icon",47),r()),e&2){let t,o=p().$implicit;l(),W("for","destination-",o.formGroupName,"-",o.index,""),l(),M(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),l(),F(o.formView.longDescription?3:-1),l(),W("id","destination-",o.formGroupName,"-",o.index,""),X("formControlName",o.formView.name),l(),F(o.formView.type==="Path"?5:6)}}function bn(e,n){if(e&1){let t=k();s(0,"span",51),D("click",function(){S(t);let i=p(2).$implicit,a=p();return T(a.oauthStartTokenCreation(i.formViewType))}),_(1,"AuthID"),r()}}function Gn(e,n){e&1&&(s(0,"spk-icon",47),_(1,"password"),r())}function Vn(e,n){if(e&1){let t=k();s(0,"spk-icon",52),D("click",function(){S(t);let i=p(2).$implicit;return T(i.formView.showPassword=!i.formView.showPassword)}),_(1," eye "),r()}}function Ln(e,n){if(e&1){let t=k();s(0,"spk-icon",52),D("click",function(){S(t);let i=p(2).$implicit;return T(i.formView.showPassword=!i.formView.showPassword)}),_(1," eye-slash "),r()}}function Un(e,n){if(e&1&&(s(0,"spk-form-field")(1,"label",44),_(2),r(),u(3,"input",48),d(4,bn,2,0,"span",49)(5,Gn,2,0,"spk-icon",47)(6,Vn,2,0,"spk-icon",50)(7,Ln,2,0,"spk-icon",50),r()),e&2){let t,o=p().$implicit;l(),W("for","destination-",o.formGroupName,"-",o.index,""),l(),M(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),l(),W("id","destination-",o.formGroupName,"-",o.index,""),X("formControlName",o.formView.name),c("type",o.formView.showPassword?"text":"password"),l(),F(o.oauthField===o.formView.name?4:5),l(2),F(o.formView.showPassword?6:7)}}function Bn(e,n){if(e&1&&(s(0,"spk-tooltip",45)(1,"spk-icon"),_(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Kn(e,n){if(e&1&&_(0),e&2){let t=n.$implicit;M(" ",t," ")}}function zn(e,n){if(e&1&&(s(0,"spk-select",53)(1,"label",44),_(2),d(3,Bn,3,1,"spk-tooltip",45),r(),u(4,"input",46),r(),d(5,Kn,1,1,"ng-template",null,3,$e)),e&2){let t,o=Y(6),i=p().$implicit;c("options",i.formView.options)("isClearable",!1)("optionTemplate",o),l(),U("for","destination-",i.formGroupName,"-",i.index,"-",i.asHttpOptions?"http":"other",""),l(),M(" ",(t=i.formView.shortDescription)!==null&&t!==void 0?t:i.formView.name," "),l(),F(i.formView.longDescription?3:-1),l(),U("id","destination-",i.formGroupName,"-",i.index,"-",i.asHttpOptions?"http":"other",""),X("formControlName",i.formView.name)}}function Xn(e,n){if(e&1&&(s(0,"spk-tooltip",45)(1,"spk-icon"),_(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Hn(e,n){if(e&1&&(s(0,"div",41)(1,"label",44),_(2),d(3,Xn,3,1,"spk-tooltip",45),r(),s(4,"div",54)(5,"spk-form-field"),u(6,"input",55),s(7,"spk-icon",47),_(8,"resize"),r()(),s(9,"spk-select",56),u(10,"input",21),r()()()),e&2){let t,o=p().$implicit,i=p();c("formGroupName",o.formView.name),l(),W("for","destination-",o.formGroupName,"-",o.index,""),l(),M(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),l(),F(o.formView.longDescription?3:-1),l(3),W("id","destination-",o.formGroupName,"-",o.index,""),l(3),c("options",i.sizeOptions())("inlineSearch",!0)}}function jn(e,n){if(e&1&&(s(0,"spk-tooltip",45)(1,"spk-icon"),_(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Wn(e,n){if(e&1&&(s(0,"spk-form-field")(1,"label",44),_(2),d(3,jn,3,1,"spk-tooltip",45),r(),u(4,"input",57),s(5,"spk-icon",47),_(6,"numpad"),r()()),e&2){let t,o=p().$implicit;l(),W("for","destination-",o.formGroupName,"-",o.index,""),l(),M(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),l(),F(o.formView.longDescription?3:-1),l(),W("id","destination-",o.formGroupName,"-",o.index,""),X("formControlName",o.formView.name)}}function qn(e,n){if(e&1&&(s(0,"spk-tooltip",45)(1,"spk-icon"),_(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Qn(e,n){if(e&1&&(s(0,"spk-toggle",42)(1,"label",44),_(2),d(3,qn,3,1,"spk-tooltip",45),r(),u(4,"input",58),r()),e&2){let t,o=p().$implicit;l(),W("for","destination-",o.formGroupName,"-",o.index,""),l(),M(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),l(),F(o.formView.longDescription?3:-1),l(),W("id","destination-",o.formGroupName,"-",o.index,""),X("formControlName",o.formView.name)}}function Yn(e,n){if(e&1&&(s(0,"spk-tooltip",45)(1,"spk-icon"),_(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Zn(e,n){if(e&1&&_(0),e&2){let t=n.$implicit;M(" ",t," ")}}function Jn(e,n){if(e&1&&(s(0,"spk-select",59)(1,"label",44),_(2),d(3,Yn,3,1,"spk-tooltip",45),r(),u(4,"input",60),r(),d(5,Zn,1,1,"ng-template",null,4,$e)),e&2){let t,o=Y(6),i=p().$implicit;c("options",i.formView.options)("selectMultiple",!0)("optionTemplate",o),l(),W("for","destination-",i.formGroupName,"-",i.index,""),l(),M(" ",(t=i.formView.shortDescription)!==null&&t!==void 0?t:i.formView.name," "),l(),F(i.formView.longDescription?3:-1),l(),X("formControlName",i.formView.name)}}function eo(e,n){if(e&1&&(s(0,"spk-tooltip",45)(1,"spk-icon"),_(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function to(e,n){if(e&1&&(s(0,"spk-form-field")(1,"label",44),_(2),d(3,eo,3,1,"spk-tooltip",45),r(),u(4,"input",46),r()),e&2){let t,o=p().$implicit;l(),W("for","destination-",o.formGroupName,"-",o.index,""),l(),M(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),l(),F(o.formView.longDescription?3:-1),l(),W("id","destination-",o.formGroupName,"-",o.index,""),X("formControlName",o.formView.name)}}function no(e,n){if(e&1){let t=k();s(0,"div",37),H(1,38),d(2,$n,5,14,"app-file-tree",39)(3,In,5,10,"app-file-tree",40)(4,vn,7,10,"spk-form-field")(5,Un,8,11,"spk-form-field")(6,zn,7,14)(7,Hn,11,11,"div",41)(8,Wn,7,9,"spk-form-field")(9,Qn,5,9,"spk-toggle",42)(10,Jn,7,9)(11,to,5,9,"spk-form-field"),j(),s(12,"button",43),D("click",function(){let i=S(t).$implicit,a=p();return T(a.removeFormView(i.formView,0))}),s(13,"spk-icon"),_(14,"x-circle"),r()()()}if(e&2){let t=n.$implicit;l(),c("formGroupName",t.formGroupName),l(),F(t.formView.type==="FileTree"?2:t.formView.type==="FolderTree"?3:t.formView.type==="String"||t.formView.type==="Path"?4:t.formView.type==="Password"?5:t.formView.type==="Enumeration"?6:t.formView.type==="Size"?7:t.formView.type==="Integer"?8:t.formView.type==="Boolean"?9:t.formView.type==="Flags"?10:t.formView.type==="Timespan"?11:-1)}}var qe=new ne,Zt=["Bytes","KB","MB","GB","TB","PB"],oo=[{value:"",name:$localize`Keep all backups`},{value:"time",name:$localize`Delete backups that are older than`},{value:"versions",name:$localize`Keep a specific number of backups`},{value:"smart",name:$localize`Smart backup retention`},{value:"custom",name:$localize`Custom backup retention`}],io=1024*1024*1024*2,ro=1024*1024*5,Jt=(e={remoteVolumeSize:50,size:"MB",backupRetention:"",advancedOptions:[]})=>qe.group({remoteVolumeSize:qe.group({size:qe.control(e.remoteVolumeSize),unit:qe.control(e.size)}),backupRetention:qe.control(e.backupRetention),advancedOptions:qe.group({})}),It=class e{#e=$(ue);#t=$(ae);#o=$(Te);formRef=Ce.required("formRef");optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;isSubmitting=this.#e.isSubmitting;sizeOptions=A(Zt);retentionOptions=A(oo);volumeSizeSignal=z(this.optionsForm.controls.remoteVolumeSize.get("size")?.valueChanges.pipe(ht(300))??Tt(null));volumeUnitSignal=z(this.optionsForm.controls.remoteVolumeSize.get("unit")?.valueChanges.pipe(ht(300))??Tt(null));exceededVolumeSize=B(()=>{let n=this.volumeSizeSignal()??this.optionsForm.controls.remoteVolumeSize.get("size")?.value,t=this.volumeUnitSignal()??this.optionsForm.controls.remoteVolumeSize.get("unit")?.value;if(n==null||t===null||t===void 0)return!1;let o=n*Math.pow(1024,Zt.indexOf(t));return o>io||o<ro});oauthStartTokenCreation(n){}getFormFieldValue(n,t,o){return this.optionsForm.controls.advancedOptions.controls[o].value}removeFormView(n,t){this.#e.removeOptionFromFormGroup(n)}addNewOption(n){this.#e.addOptionToFormGroup(n)}retentionOptionDisplayFn(){let n=this.retentionOptions();return t=>{let o=n.find(i=>i.value===t);return o?o.name:""}}displayFn(){let n=this.#e.advancedOptions();return t=>{let o=n.find(i=>i.name===t);return o?`${o.name}`:""}}goBack(){this.#t.navigate(["schedule"],{relativeTo:this.#o.parent})}submit(){this.#e.submit()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=re({type:e,selectors:[["app-advanced-options-settings"]],viewQuery:function(t,o){t&1&&fe(o.formRef,hn,5),t&2&&Se()},decls:42,vars:11,consts:()=>{let n;n=$localize`Select an option...`;let t;t=$localize`Options`;let o;o=$localize` Remote volume size ${"\uFFFD*9:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SPK_ICON:warning${"\uFFFD/#1:1\uFFFD"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/*9:1\uFFFD"}:CLOSE_BLOCK_IF:`;let i;i=$localize` The backups will be split up into multiple files called volumes. Here you can set the maximum size of the individual volume files. ${"\uFFFD#16\uFFFD"}:START_LINK: Read more ${"\uFFFD#17\uFFFD"}:START_TAG_SPK_ICON:arrow-square-out${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#16\uFFFD"}:CLOSE_LINK:`;let a;a=$localize`Backup retention`;let m;m=$localize` Advanced options ${"\uFFFD#25\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#26\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#27\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#26\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#28\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*30:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1:${"\uFFFD0:1\uFFFD"}:INTERPOLATION:${"[\uFFFD/#26\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*30:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_SPK_MENU:`,m=ke(m);let g;g=$localize`${"\uFFFD#38\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#38\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let P;P=$localize`${"\uFFFD#41\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#41\uFFFD"}:CLOSE_TAG_SPK_ICON: Submit `;let N;N=$localize` The chosen size is outside the recommended range. This may cause performance issues, excessively large temporary files or other problems. `;let G;return G=$localize`Select an option...`,[["formRef",""],["fieldTemplate",""],["option",""],["enumOptionTemplate",""],["optionTemplate",""],t,o,i,a,m,g,P,N,[3,"submit","formGroup"],[1,"title-30"],[1,"remote-volume-wrap"],["formGroupName","remoteVolumeSize",1,"row-inputs"],["for","size"],[1,"warning"],["type","number","id","size","formControlName","size"],["placeholder",n,3,"options","inlineSearch"],["type","text","formControlName","unit"],["href","https://forum.duplicati.com/t/choosing-sizes-in-duplicati/17683","target","_blank",1,"spk-primary"],["suffix",""],["value","value","label","name",3,"options","inlineSearch"],["type","text","formControlName","backupRetention"],[3,"disallowToggle"],["title",""],[3,"searchable"],["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"],["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"],[3,"options","isClearable","optionTemplate"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["placeholder",G,3,"options","inlineSearch"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],[1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["type","text","id","text",3,"formControlName"]]},template:function(t,o){if(t&1){let i=k();s(0,"form",13,0),D("submit",function(){return S(i),T(o.submit())}),s(2,"h3",14),x(3,5),r(),s(4,"div",15)(5,"div",16)(6,"spk-form-field")(7,"label",17),C(8,6),d(9,yn,2,0,"spk-icon",18),f(),r(),u(10,"input",19),r(),s(11,"spk-select",20),u(12,"input",21),r()(),d(13,Pn,2,0,"p",18),s(14,"p"),C(15,7),s(16,"a",22),u(17,"spk-icon",23),r(),f(),r()(),s(18,"spk-select",24)(19,"label",17),x(20,8),r(),u(21,"input",25),r(),s(22,"app-toggle-card",26),H(23,27),C(24,9),s(25,"spk-menu",28)(26,"button",29),u(27,"spk-icon"),r(),H(28,30),ee(29,Nn,3,1,"button",31,J),j(),r(),f(),j(),ee(31,An,1,7,"ng-container",null,J),r(),d(33,no,15,2,"ng-template",null,1,$e),s(35,"div",32)(36,"button",33),D("click",function(){return S(i),T(o.goBack())}),C(37,10),u(38,"spk-icon"),f(),r(),s(39,"button",34),C(40,11),u(41,"spk-icon"),f(),r()()()}t&2&&(c("formGroup",o.optionsForm),l(9),F(o.exceededVolumeSize()?9:-1),l(2),c("options",o.sizeOptions())("inlineSearch",!0),l(2),F(o.exceededVolumeSize()?13:-1),l(5),c("options",o.retentionOptions())("inlineSearch",!0),l(4),c("disallowToggle",!0),l(3),c("searchable",!0),l(4),te(o.nonSelectedOptions()),l(2),te(o.selectedOptions()),l(8),Ae("loader",o.isSubmitting()))},dependencies:[Ne,Ee,se,ve,Re,le,De,ye,Pe,be,at,ut,Ge,pe,ce,Ve,me,He,je,Le],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;padding-bottom: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}.remote-volume-wrap[_ngcontent-%COMP%] p.warning[_ngcontent-%COMP%]{color:#7d7d00}.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}spk-select[_ngcontent-%COMP%]{--miw: p2r(120)}"],changeDetection:0})};var ao=["formRef"];function so(e,n){if(e&1){let t=k();s(0,"div",26)(1,"spk-form-field")(2,"label",27),x(3,8),r(),s(4,"input",28,1),D("focus",function(){S(t);let i=Y(5);return T(i.showPicker())}),r(),s(6,"spk-icon",29),_(7,"clock"),r()(),s(8,"spk-form-field"),u(9,"label",30),s(10,"input",31,2),D("focus",function(){S(t);let i=Y(11);return T(i.showPicker())}),r(),s(12,"spk-icon",29),_(13,"calendar"),r()()(),H(14,32),s(15,"div",33)(16,"spk-form-field")(17,"label",34),x(18,9),r(),u(19,"input",35),r(),s(20,"spk-select",36),u(21,"input",37),r()(),s(22,"app-toggle-card",38),H(23,39),x(24,10),j(),s(25,"div",40)(26,"spk-toggle",21),C(27,11),u(28,"input",41),f(),r(),s(29,"spk-toggle",21),C(30,12),u(31,"input",42),f(),r(),s(32,"spk-toggle",21),C(33,13),u(34,"input",43),f(),r(),s(35,"spk-toggle",21),C(36,14),u(37,"input",44),f(),r(),s(38,"spk-toggle",21),C(39,15),u(40,"input",45),f(),r(),s(41,"spk-toggle",21),C(42,16),u(43,"input",46),f(),r(),s(44,"spk-toggle",21),C(45,17),u(46,"input",47),f(),r()()(),j()}if(e&2){let t=p();l(20),c("options",t.unitOptions)("isClearable",!1),l(2),c("disallowToggle",!0)}}var Q=new ne,en=[{key:"s",label:$localize`Seconds`},{key:"m",label:$localize`Minutes`},{key:"h",label:$localize`Hours`},{key:"D",label:$localize`Days`},{key:"W",label:$localize`Weeks`},{key:"M",label:$localize`Months`},{key:"Y",label:$localize`Years`}],tn=(e={autoRun:!0,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}}})=>Q.group({autoRun:Q.control(e.autoRun),nextTime:Q.group({time:Q.control(e.nextTime.time),date:Q.control(e.nextTime.date)}),runAgain:Q.group({repeatValue:Q.control(e.runAgain.repeatValue),repeatUnit:Q.control(e.runAgain.repeatUnit),allowedDays:Q.group({mon:Q.control(e.runAgain.allowedDays.mon),tue:Q.control(e.runAgain.allowedDays.tue),wed:Q.control(e.runAgain.allowedDays.wed),thu:Q.control(e.runAgain.allowedDays.thu),fri:Q.control(e.runAgain.allowedDays.fri),sat:Q.control(e.runAgain.allowedDays.sat),sun:Q.control(e.runAgain.allowedDays.sun)})})}),Mt=class e{#e=$(ue);#t=$(ae);#o=$(Te);formRef=Ce.required("formRef");scheduleForm=this.#e.scheduleForm;scheduleFormSignal=this.#e.scheduleFormSignal;unitOptions=en;displayFn(n){let t=en.find(o=>o.key===n);return t?`${t.label}`:""}goBack(){this.#t.navigate(["source-data"],{relativeTo:this.#o.parent})}next(){this.#t.navigate(["options"],{relativeTo:this.#o.parent})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=re({type:e,selectors:[["app-schedule"]],viewQuery:function(t,o){t&1&&fe(o.formRef,ao,5),t&2&&Se()},decls:18,vars:2,consts:()=>{let n;n=$localize`Schedule`;let t;t=$localize` Automatically run backups ${"\uFFFD#7\uFFFD\uFFFD/#7\uFFFD"}:TAG_INPUT:`;let o;o=$localize`If a date was missed, the job will run as soon as possible.`;let i;i=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let a;a=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let m;m=$localize`Next time`;let g;g=$localize`Run again every`;let P;P=$localize`Allowed days`;let N;N=$localize` Monday ${"\uFFFD#28\uFFFD\uFFFD/#28\uFFFD"}:TAG_INPUT:`;let G;G=$localize` Tuesday ${"\uFFFD#31\uFFFD\uFFFD/#31\uFFFD"}:TAG_INPUT:`;let b;b=$localize` Wednesday ${"\uFFFD#34\uFFFD\uFFFD/#34\uFFFD"}:TAG_INPUT:`;let v;v=$localize` Thursday ${"\uFFFD#37\uFFFD\uFFFD/#37\uFFFD"}:TAG_INPUT:`;let L;L=$localize` Friday ${"\uFFFD#40\uFFFD\uFFFD/#40\uFFFD"}:TAG_INPUT:`;let q;q=$localize` Saturday ${"\uFFFD#43\uFFFD\uFFFD/#43\uFFFD"}:TAG_INPUT:`;let Z;return Z=$localize` Sunday ${"\uFFFD#46\uFFFD\uFFFD/#46\uFFFD"}:TAG_INPUT:`,[["formRef",""],["timeRef",""],["dateRef",""],n,t,o,i,a,m,g,P,N,G,b,v,L,q,Z,[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"],["value","key","label","label",3,"options","isClearable"],["type","text","id","repeatUnit","formControlName","repeatUnit"],["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(t,o){if(t&1){let i=k();s(0,"form",18,0),D("submit",function(){return S(i),T(o.next())}),s(2,"h3",19),x(3,3),r(),s(4,"div",20)(5,"spk-toggle",21),C(6,4),u(7,"input",22),f(),r(),s(8,"p"),x(9,5),r()(),d(10,so,47,3),s(11,"div",23)(12,"button",24),D("click",function(){return S(i),T(o.goBack())}),C(13,6),u(14,"spk-icon"),f(),r(),s(15,"button",25),C(16,7),u(17,"spk-icon"),f(),r()()()}if(t&2){let i;c("formGroup",o.scheduleForm),l(10),F((i=o.scheduleFormSignal())!=null&&i.autoRun?10:-1)}},dependencies:[Ne,Ee,se,ve,Re,le,De,ye,Pe,be,ce,Ve,pe,Ge,me,Le],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;padding-bottom: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})};function lo(e,n){if(e&1){let t=k();s(0,"spk-select",0)(1,"input",4),D("ngModelChange",function(i){S(t);let a=p(2);return T(a.updateStateExpression(i))}),r()()}if(e&2){let t,o=p(2);c("options",o.fileGroupOptions())("isClearable",!1),l(),c("ngModel",(t=o.pathState())==null?null:t.expression)}}function po(e,n){if(e&1){let t=k();s(0,"spk-form-field")(1,"input",4),D("ngModelChange",function(i){S(t);let a=p(2);return T(a.updateStateExpression(i))}),r()()}if(e&2){let t,o=p(2);l(),c("ngModel",(t=o.pathState())==null?null:t.expression)}}function co(e,n){if(e&1){let t=k();s(0,"spk-select",0)(1,"input",1),D("ngModelChange",function(i){S(t);let a=p();return T(a.updateStateType(i))}),r()(),d(2,lo,2,3,"spk-select",0)(3,po,2,1,"spk-form-field"),s(4,"div",2),D("click",function(){S(t);let i=p();return T(i.removeFilter())}),s(5,"spk-icon",3),_(6,"x-circle"),r()()}if(e&2){let t,o,i=p();c("options",i.expressionOptions())("isClearable",!1),l(),c("ngModel",(t=i.pathState())==null?null:t.type),l(),F(((o=i.pathState())==null?null:o.type)==="-FileGroup"||((o=i.pathState())==null?null:o.type)==="+FileGroup"?2:3)}}var nn=[{key:"Excludes folders where name contains",value:"-FolderNameIncludes"},{key:"Excludes folder",value:"-Folder"},{key:"Excludes files where name contains",value:"-FileNameIncludes"},{key:"Excludes file extension",value:"-Extension"},{key:"Excludes files where name matches regex",value:"-Regex"},{key:"Includes files where name matches regex",value:"+Regex"},{key:"Excludes file group",value:"-FileGroup"},{key:"Includes expression",value:"+Expression"},{key:"Excludes expression",value:"-Expression"},{key:"None",value:"-Unknown"}],mo=[{key:"Applications",value:"Applications"},{key:"CacheFiles",value:"Cache Files"},{key:"TemporaryFiles",value:"Temporary Files"},{key:"OperatingSystem",value:"Operating System"},{key:"SystemFiles",value:"System Files"},{key:"DefaultExcludes",value:"Standard Excludes"}],Ct=class e{path=Et.required();osType=Et();pathChange=Dt();remove=Dt();expressionOptions=A(nn);fileGroupOptions=A(mo);pathState=A(null);typeState=B(()=>{let n=this.pathState();return n?n.type:null});pathEffect=rt(()=>{let n=this.path(),t=n.slice(1),o=n.startsWith("-")?"-":"+",i=this.osType()==="Windows",a=i?"\\":"/",m=t.startsWith("%");return t===""?this.pathState.set({type:"-Unknown",path:"___none___",expression:""}):m&&t.endsWith(a)||i&&t.slice(2).startsWith("\\")&&t.endsWith("\\")||t.startsWith(a)&&t.endsWith(a)?this.pathState.set({type:`${o}Folder`,path:t,expression:t}):t.startsWith("*")&&t.endsWith(`*${a}`)?this.pathState.set({type:`${o}FolderNameIncludes`,path:t,expression:t.slice(1,-2)}):t.startsWith("[.*")&&t.endsWith(`[^\\${a}]*]`)?this.pathState.set({type:`${o}FileNameIncludes`,path:t,expression:t.slice(3,-7)}):t.startsWith("{")&&t.endsWith("}")?this.pathState.set({type:`${o}FileGroup`,path:t,expression:t.slice(1,-1)}):t.startsWith("[")&&t.endsWith("]")?this.pathState.set({type:`${o}Regex`,path:t,expression:t.slice(1,-1)}):t.startsWith("*.")?this.pathState.set({type:`${o}Extension`,path:t,expression:t.slice(2)}):this.pathState.set({type:`${o}Expression`,path:t,expression:t})});updateStateType(n){this.pathState.update(t=>(t.type=n,t.path=this.#t(t),t)),this.#e()}updateStateExpression(n){this.pathState.update(t=>(t.expression=n,t.path=this.#t(t),t)),this.#e()}#e(){setTimeout(()=>this.pathChange.emit(this.pathState().path))}#t(n){let t=n.type.slice(0,1),o=n.type.slice(1),i=this.osType()==="Windows",a=i?"\\":"/",g=i&&!n.expression.startsWith("%")?n.expression.slice(2):n.expression,P=n.path.startsWith("%");if(o==="Unknown")return`${t}${n.expression}`;if(o==="Folder"){let N=P||g.startsWith(a),G=g.endsWith(a);return G&&N?`${t}${n.expression}`:G?`${t}${n.expression}${a}`:N?`${t}${a}${n.expression}`:`${t}${a}${n.expression}${a}`}return o==="FolderNameIncludes"?`${t}*${n.expression}*${a}`:o==="FileNameIncludes"?`${t}[.*${n.expression}[^\\${a}]*]`:o==="FileGroup"?`${t}{${n.expression}}`:o==="Regex"?`${t}[${n.expression}]`:o==="Extension"?`${t}*.${n.expression}`:`${t}${n.expression}`}removeFilter(){this.remove.emit()}displayFn(n){let t=nn.find(o=>o.value===n);return t?t.key:""}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=re({type:e,selectors:[["app-filter"]],inputs:{path:[1,"path"],osType:[1,"osType"]},outputs:{pathChange:"pathChange",remove:"remove"},decls:1,vars:1,consts:()=>{let n;return n=$localize`Select an option...`,[["value","value","label","key",3,"options","isClearable"],["type","text","placeholder",n,3,"ngModelChange","ngModel"],[1,"filter-removal",3,"click"],[1,"spk-primary"],["type","text",3,"ngModelChange","ngModel"]]},template:function(t,o){t&1&&d(0,co,7,4),t&2&&F(o.pathState()?0:-1)},dependencies:[ct,se,le,Xt,pe,ce,me],styles:["[_nghost-%COMP%]{display:grid;grid-template-columns:13.125rem 1fr 1.875rem;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] spk-select[_ngcontent-%COMP%]{--miw: initial}[_nghost-%COMP%] spk-form-field[_ngcontent-%COMP%]{min-width:110px}[_nghost-%COMP%] spk-form-field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{min-width:110px}[_nghost-%COMP%] .filter-removal[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;justify-content:center;height:2.5rem;flex:0 0}"],changeDetection:0})};var uo=["formRef"];function _o(e,n){if(e&1){let t=k();s(0,"app-filter",42),D("pathChange",function(i){let a=S(t).$index,m=p(2);return T(m.patchPathAt(i,a))})("remove",function(){let i=S(t).$index,a=p(2);return T(a.removePathAt(i))}),r()}if(e&2){let t,o=n.$implicit,i=p(2);c("path",o)("osType",(t=i.osType())!==null&&t!==void 0?t:"")}}function Fo(e,n){if(e&1&&ee(0,_o,1,2,"app-filter",41,J),e&2){let t=p();te(t.pathArray())}}function go(e,n){if(e&1&&(s(0,"div",40)(1,"spk-form-field"),u(2,"input",43),r(),s(3,"spk-select",44),u(4,"input",45),r()()),e&2){let t=p();l(3),c("options",t.sizeOptions())("isClearable",!1)}}var Me=new ne,Co=["Bytes","KB","MB","GB","TB","PB"],on=(e={path:"",filters:[],excludes:{hidden:!1,system:!1,temporary:!1,filesLargerThan:null}})=>Me.group({path:Me.control(e.path),excludes:Me.group({hidden:Me.control(e.excludes.hidden),system:Me.control(e.excludes.system),temporary:Me.control(e.excludes.temporary),filesLargerThan:Me.group({size:Me.control(null),unit:Me.control(null)})})}),wt=class e{#e=$(ue);#t=$(ae);#o=$(Te);formRef=Ce.required("formRef");sourceDataForm=this.#e.sourceDataForm;sourceDataFormSignal=this.#e.sourceDataFormSignal;newPathCtrl=new lt("");filesLargerThan=B(()=>this.sourceDataFormSignal()?.excludes?.filesLargerThan?.size!==null);sizeOptions=A(Co);osType=this.#e.osType;pathSignal=z(this.sourceDataForm.controls.path.valueChanges);pathArray=B(()=>this.pathSignal()?.split("\0").filter(n=>n.startsWith("-")||n.startsWith("+")||n==="___none___")??[]);addFilter(n="-*"){let t=this.sourceDataForm.controls.path.value;this.sourceDataForm.controls.path.setValue(`${t}\0${n}`)}patchPathAt(n,t){let i=this.sourceDataForm.controls.path.value.split("\0").filter(m=>!m.startsWith("-")&&!m.startsWith("+")).join("\0"),a=this.pathArray().map((m,g)=>g===t?`${n}`:`${m}`).join("\0");this.sourceDataForm.controls.path.setValue(`${i}\0${a}`)}removePathAt(n){let o=this.sourceDataForm.controls.path.value.split("\0").filter(a=>!a.startsWith("-")&&!a.startsWith("+")).join("\0"),i=this.pathArray().filter((a,m)=>m!==n).join("\0");this.sourceDataForm.controls.path.setValue(`${o}\0${i}`)}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})}addNewPath(){let n=this.sourceDataForm.controls.path.value;this.sourceDataForm.controls.path.setValue(`${n}\0${this.newPathCtrl.value}`),this.newPathCtrl.setValue("")}goBack(){this.#t.navigate(["destination"],{relativeTo:this.#o.parent})}next(){this.#t.navigate(["schedule"],{relativeTo:this.#o.parent})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=re({type:e,selectors:[["app-source-data"]],viewQuery:function(t,o){t&1&&fe(o.formRef,uo,5),t&2&&Se()},decls:55,vars:12,consts:()=>{let n;n=$localize`Path`;let t;t=$localize`Add a direct path`;let o;o=$localize`Hidden files`;let i;i=$localize`System files`;let a;a=$localize`Temporary files`;let m;m=$localize`Source Data`;let g;g=$localize`Folder path`;let P;P=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let N;N=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let G;G=$localize`Source Data`;let b;b=$localize`Add Path`;let v;v=$localize`Add a path directly from your machine.`;let L;L=$localize`Filters`;let q;q=$localize`Customize your filters.`;let Z;Z=$localize`Add filter`;let E;E=$localize`Exclude`;let y;y=$localize`Choose if there’s any files you want to exclude.`;let K;K=$localize` Hidden files ${"\uFFFD#45\uFFFD\uFFFD/#45\uFFFD"}:TAG_INPUT:`;let I;I=$localize` System files ${"\uFFFD#48\uFFFD\uFFFD/#48\uFFFD"}:TAG_INPUT:`;let ie;ie=$localize` Temporary files ${"\uFFFD#51\uFFFD\uFFFD/#51\uFFFD"}:TAG_INPUT:`;let Fe;Fe=$localize` Files larger than `;let _e;return _e=$localize`Select an option...`,[["formRef",""],m,g,P,N,G,b,v,L,q,Z,E,y,K,I,ie,Fe,[3,"submit","formGroup"],[1,"left"],[1,"title-30"],[1,"fill",3,"multiSelect","startingPath","showFiles"],["for","path"],["type","text","id","path","tabindex","4","placeholder",n,"formControlName","path"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[1,"right"],[3,"disallowToggle"],["title",""],["description",""],[1,"row-inputs"],["type","text","placeholder",t,3,"formControl"],["spk-button","","type","button",1,"raised","primary",3,"click"],["type","button","spk-button","","action","",3,"click"],["formGroupName","excludes",3,"disallowToggle"],[1,"raised","primary"],["type","checkbox","placeholder",o,"formControlName","hidden"],["type","checkbox","placeholder",i,"formControlName","system"],["type","checkbox","placeholder",a,"formControlName","temporary"],[1,"raised","primary",3,"click"],["formGroupName","filesLargerThan",1,"row-inputs"],[3,"path","osType"],[3,"pathChange","remove","path","osType"],["type","number","formControlName","size"],[3,"options","isClearable"],["type","text","formControlName","unit","placeholder",_e]]},template:function(t,o){if(t&1){let i=k();s(0,"form",17,0),D("submit",function(){return S(i),T(o.next())}),s(2,"div",18)(3,"h3",19),x(4,1),r(),s(5,"app-file-tree",20)(6,"label",21),x(7,2),r(),u(8,"input",22),r(),s(9,"div",23)(10,"button",24),D("click",function(){return S(i),T(o.goBack())}),C(11,3),u(12,"spk-icon"),f(),r(),s(13,"button",25),C(14,4),u(15,"spk-icon"),f(),r()()(),s(16,"div",26)(17,"h3",19),x(18,5),r(),s(19,"app-toggle-card",27),H(20,28),x(21,6),j(),s(22,"p",29),x(23,7),r(),s(24,"div",30)(25,"spk-form-field"),u(26,"input",31),r(),s(27,"button",32),D("click",function(){return S(i),T(o.addNewPath())}),s(28,"spk-icon"),_(29,"plus"),r()()()(),s(30,"app-toggle-card",27),H(31,28),x(32,8),j(),s(33,"p",29),x(34,9),r(),s(35,"button",33),D("click",function(){return S(i),T(o.addFilter())}),x(36,10),r(),d(37,Fo,2,0),r(),s(38,"app-toggle-card",34),H(39,28),x(40,11),j(),s(41,"p",29),x(42,12),r(),s(43,"spk-toggle",35),C(44,13),u(45,"input",36),f(),r(),s(46,"spk-toggle",35),C(47,14),u(48,"input",37),f(),r(),s(49,"spk-toggle",35),C(50,15),u(51,"input",38),f(),r(),s(52,"spk-toggle",39),D("click",function(){return S(i),T(o.toggleFilesLargerThan())}),x(53,16),r(),d(54,go,5,2,"div",40),r()()()}if(t&2){let i;c("formGroup",o.sourceDataForm),l(5),c("multiSelect",!0)("startingPath",o.getPath())("showFiles",!0),l(14),c("disallowToggle",!0),l(7),c("formControl",o.newPathCtrl),l(4),c("disallowToggle",!0),l(7),F((i=o.pathSignal())!=null&&i.length?37:-1),l(),c("disallowToggle",!0),l(14),Ae("active",o.filesLargerThan()),l(2),F(o.filesLargerThan()?54:-1)}},dependencies:[ct,Ee,se,ve,Re,le,De,Ne,pt,ye,Pe,be,ce,pe,Ge,Ve,me,je,Le,Ct],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%;flex:1 0;overflow:hidden}form[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;flex:1 0;overflow:hidden}.right[_ngcontent-%COMP%], .left[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:1.5rem}.left[_ngcontent-%COMP%]{padding:2.5rem;overflow:hidden;border-right:1px solid var(--base-level-40)}.right[_ngcontent-%COMP%]{padding:2.5rem 1.5rem;overflow:auto}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.row-inputs[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr min-content;gap:.5rem}"],changeDetection:0})};var de=new ne,ue=class e{#e=$(ae);#t=$(st);#o=$(Xe);#i=$(dt);generalForm=Yt();sourceDataForm=on();scheduleForm=tn();destinationForm=rn();optionsForm=Jt();isDraft=A(!1);backupId=A(null);isSubmitting=A(!1);finishedLoading=A(!1);backupDefaults=A(null);isNew=B(()=>this.backupId()==="new");osType=B(()=>this.#t.systemInfo()?.OSType);selectedOptions=A([]);selectedAdvancedFormPair=A([]);destinationFormPair=A({oauthField:null,custom:[],dynamic:[],advanced:[]});notSelectedAdvancedFormPair=B(()=>{let n=this.destinationFormPair()?.advanced??[],t=this.selectedAdvancedFormPair()??[];return n.filter(o=>t.findIndex(i=>i.name===o.name)===-1)});selectedHttpOptions=A([]);notSelectedHttpOptions=B(()=>{let n=this.httpOptions(),t=this.selectedHttpOptions()??[];return n.filter(o=>t.findIndex(i=>i.name===o.name)===-1)});sourceDataFormSignal=z(this.sourceDataForm.valueChanges);destinationFormSignal=z(this.destinationForm.valueChanges);generalFormSignal=z(this.generalForm.valueChanges);encryptionFieldSignal=z(this.generalForm.controls.encryption.valueChanges);scheduleFormSignal=z(this.scheduleForm.valueChanges);destinationOptions=B(()=>this.#t.backendModules()??[]);httpOptions=B(()=>this.#t.systemInfo()?.GenericModules?.find(n=>n.Key==="http-options")?.Options?.map(this.#n)??[]);advancedOptions=B(()=>this.#t.systemInfo()?.Options?.map(this.#n)??[]);#n(n){return{name:n.Name,type:n.Type,shortDescription:n.ShortDescription??void 0,longDescription:n.LongDescription??void 0,options:n.ValidValues}}encryptionOptions=B(()=>{let n=this.#t.systemInfo()?.EncryptionModules??[];return[xt,...n]});nonSelectedOptions=B(()=>this.advancedOptions().sort((n,t)=>n?.name&&t?.name?n?.name.localeCompare(t?.name):0).filter(n=>this.selectedOptions()?.findIndex(t=>t.name===n.name)===-1));addAdvancedFormPairByName(n,t,o){let i=this.notSelectedAdvancedFormPair().find(a=>a.name===n);i&&this.addAdvancedFormPair(i,t,o)}addHttpOptionByName(n,t,o){let i=this.notSelectedHttpOptions().find(a=>a.name===n);i&&this.addHttpOption(i,t,o)}addAdvancedFormPair(n,t,o){let i=this.destinationForm.controls.destinations.controls.at(t)?.controls.advanced,a=o??n.defaultValue;this.createFormField(i,n,a),this.selectedAdvancedFormPair.set([...this.selectedAdvancedFormPair(),n])}addHttpOption(n,t,o){let i=this.destinationForm.controls.destinations.controls.at(t)?.controls.advanced,a=o??n.defaultValue;this.createFormField(i,n,a),this.selectedHttpOptions.set([...this.selectedHttpOptions(),n])}removeAdvancedFormPair(n,t){this.destinationForm.controls.destinations.controls.at(t)?.controls.advanced.removeControl(n.name),this.selectedAdvancedFormPair().findIndex(i=>i.name===n.name)!==-1?this.selectedAdvancedFormPair.update(i=>(i=i.filter(a=>a.name!==n.name),i)):this.selectedHttpOptions.update(i=>(i=i.filter(a=>a.name!==n.name),i))}removeHttpOption(n,t){this.destinationForm.controls.destinations.controls.at(t)?.controls.advanced.removeControl(n.name),this.selectedHttpOptions.update(o=>(o=o.filter(i=>i.name!==n.name),o))}submit(){this.isSubmitting.set(!0);let n=this.#l(),t=this.backupId();t==="new"||!t||this.isDraft()?this.#o.postApiV1Backups({requestBody:n}).pipe(Ye(()=>this.isSubmitting.set(!1))).subscribe({next:o=>{this.exit()},error:o=>{}}):this.#o.putApiV1BackupById({id:t,requestBody:n}).pipe(Ye(()=>this.isSubmitting.set(!1))).subscribe({next:o=>{this.exit()},error:o=>{}})}exit(){this.#c(),this.#e.navigate(["/"])}updateFieldsFromTargetUrl(n){this.#r(),setTimeout(()=>{this.#s(n)})}#r(){this.destinationFormPair.set({oauthField:null,custom:[],dynamic:[],advanced:[]}),this.selectedAdvancedFormPair.set([]),this.selectedHttpOptions.set([]),this.destinationForm.controls.destinations.clear(),this.destinationForm.reset()}mapSourceDataToForm(n){let t=n.Sources??"",o=n.Filters?.map(N=>`${N.Include?"":"-"}${N.Expression}`)??[],i=n.Settings?.find(N=>N.Name==="--exclude-files-attributes")?.Value??"",a=n.Settings?.find(N=>N.Name==="--skip-files-larger-than")??null,m=a?.Value.replace(/[0-9]/g,"")??null,g=a?.Value.replace(/[^0-9]/g,"")??null,P={path:[...t,...o].join("\0"),excludes:{hiddenFiles:i.includes("hidden"),systemFiles:i.includes("system"),tempFiles:i.includes("temporary"),filesLargerThan:m&&g?{size:parseInt(g),unit:m.toUpperCase()}:null}};this.sourceDataForm.patchValue(P)}mapDestinationToForm(n){let t=n.TargetURL?kt(n.TargetURL):null;t&&this.addDestinationFormGroup(t.destinationType,{custom:t.custom,dynamic:t.dynamic,advanced:t.advanced},!0)}#s(n){let t=kt(n);t&&this.addDestinationFormGroup(t.destinationType,{custom:t.custom,dynamic:t.dynamic,advanced:t.advanced},!0)}mapGeneralToForm(n){let t=n.Settings?.find(a=>a.Name==="encryption-module"),o=t?.Value&&t.Value.length?t.Value:"",i={name:n.Name??"",description:n.Description??""};o&&o!==""&&(i.encryption=o),this.generalForm.patchValue(i)}mapScheduleToForm(n){if(!n){this.scheduleForm.patchValue({autoRun:!1});return}let t=this.#i.fromString(n.Repeat)??null,i={nextTime:this.#p(n.Time),runAgain:{repeatValue:t?.value??1,repeatUnit:t?.unit??"D",allowedDays:{mon:n.AllowedDays?.includes("mon")??!1,tue:n.AllowedDays?.includes("tue")??!1,wed:n.AllowedDays?.includes("wed")??!1,thu:n.AllowedDays?.includes("thu")??!1,fri:n.AllowedDays?.includes("fri")??!1,sat:n.AllowedDays?.includes("sat")??!1,sun:n.AllowedDays?.includes("sun")??!1}}};this.scheduleForm.patchValue(i)}mapOptionsToForms(n){let t=["--no-encryption","--exclude-files-attributes","--skip-files-larger-than"],o=this.advancedOptions();n.Settings?.forEach(i=>{if(i.Name==="encryption-module")return this.generalForm.controls.encryption.setValue(i.Value??"");if(!(i.Name&&t.includes(i.Name))){if(i.Name==="dblock-size"){let a=i.Value?.replace(/[^0-9]/g,""),m=i.Value?.replace(/[0-9]/g,"");return this.optionsForm.controls.remoteVolumeSize.setValue({size:a?parseInt(a):null,unit:m?m.toUpperCase():null})}if(i.Name&&i.Value){let a=o.find(m=>m.name===i.Name);if(!a)return;this.addOptionToFormGroup(a,i.Value)}}})}getCurrentTargetUrl(){return this.#a(this.destinationForm.controls.destinations)}#l(){let n=this.generalForm.value,t=this.optionsForm.value,o=this.scheduleForm.value,i=this.sourceDataForm.value,m=this.destinationForm.value.destinations?.length?this.#a(this.destinationForm.controls.destinations):[],g=null;o.runAgain?.repeatUnit&&o.runAgain?.repeatValue&&(g=this.#i.toString(o.runAgain.repeatValue,o.runAgain.repeatUnit));let P=o.runAgain?.allowedDays?Object.entries(o.runAgain?.allowedDays).filter(([L,q])=>q).map(([L,q])=>L):[],N=i.path?.split("\0")??[],G=this.mapFormsToSettings(),b=Object.entries(i.excludes??{}).filter(([L,q])=>q&&L!=="filesLargerThan").map(([L])=>L),v=i.excludes?.filesLargerThan;return b.length&&G.push({Name:"--exclude-files-attributes",Value:b.join(",")}),v&&v.size!==null&&v.unit!==null&&G.push({Name:"--skip-files-larger-than",Value:`${v.size}${v.unit}`}),{Backup:{Name:n.name,Description:n.description,TargetURL:m[0]??null,Sources:N.filter(L=>!L.startsWith("-")),Settings:G,Filters:N.filter(L=>L.startsWith("-")).map((L,q)=>({Order:q,Include:!1,Expression:L.slice(1)}))},Schedule:o.autoRun?{Repeat:g,Time:o.nextTime?.date?new Date(`${o.nextTime.date}T${o.nextTime?.time||"00:00:00"}`).toISOString():null,AllowedDays:P}:null}}mapFormsToSettings(){let n=this.advancedOptions(),t=this.optionsForm.value,o=this.generalForm.value,i=[{Name:"--no-encryption",Value:"True"}];o.encryption!==""&&(i=[{Name:"encryption-module",Value:o.encryption??null},{Name:"passphrase",Value:o.password??null}]);let a=t.remoteVolumeSize?.size?{Name:"dblock-size",Value:`${t.remoteVolumeSize.size}${t.remoteVolumeSize.unit.toLowerCase()}`}:{Name:"dblock-size",Value:"50mb"},m=Object.entries(t.advancedOptions??{}).filter(([g,P])=>g&&P).map(([g,P])=>{let N=n.find(G=>G.name===g);return N?.type==="Size"?{Name:g,Value:`${P.size}${P.unit.toLowerCase()}`}:N?.type==="Integer"?{Name:g,Value:P.toString()}:N?.type==="Boolean"?{Name:g,Value:P.toString()}:{Name:g,Value:P}});return[...i,a,...m]}#a(n){return n.controls.map(t=>Ft(t.value))}#p(n){if(!n||n?.indexOf("T")===-1)return{time:n??"13:00"};let t=new Date(n),o={time:`${(""+t.getHours()).padStart(2,"0")}:${(""+t.getMinutes()).padStart(2,"0")}`};return n.indexOf("T")!==-1&&(o.date=t.toISOString().split("T")[0]),o}removeOptionFromFormGroup(n){let t=n.name;t&&(this.optionsForm.controls.advancedOptions.removeControl(t),this.selectedOptions.update(o=>(o=o.filter(i=>i.name!==t),o)))}addOptionToFormGroup(n,t){let o=this.optionsForm.controls.advancedOptions;this.createFormField(o,n,t??n.defaultValue),this.selectedOptions.update(i=>(i.push(n),i))}addFreeTextOption(n,t,o){let i=this.optionsForm.controls.advancedOptions,a=O({name:n,type:"String",defaultValue:t},o);this.createFormField(i,a,t),this.selectedOptions.update(m=>(m.push(a),m))}createFormField(n,t,o){if(t.type==="String"||t.type==="FileTree"||t.type==="FolderTree"||t.type==="Password"||t.type==="Enumeration"||t.type==="NonValidatedSelectableString"||t.type==="Path"){n.addControl(t.name,de.control(o));return}if(t.type==="Size"){let i=(o??"").replace(/[0-9]/g,""),a=(o??"").replace(/[^0-9]/g,"");n.addControl(t.name,de.group({size:de.control(a?parseInt(a):50),unit:de.control(i?i.toUpperCase():"MB")}));return}if(t.type==="Integer"){n.addControl(t.name,de.control(o?parseInt(o):0));return}if(t.type==="Boolean"){n.addControl(t.name,de.control(o==="true"||o==="True"));return}if(t.type==="Flags"){n.addControl(t.name,de.control(o??""));return}if(t.type==="Timespan"){n.addControl(t.name,de.control(o,[he.pattern(/([-+]?\d{1,3}[smhDWMY])+/)]));return}}addDestinationFormGroup(n,t,o=!1){let i=Ie.find(E=>E.customKey===n||E.key===n),a=i?.key,m=this.destinationOptions().find(E=>E.Key===a),g=this.httpOptions();if(!m||!m.Options)return;let P=i&&i.oauthField?i.oauthField:null,N=i&&i.customFields?i.customFields:{},G=i&&i.dynamicFields?i.dynamicFields:[],b=i&&i.advancedFields?i.advancedFields:[],v=i&&i.ignoredAdvancedFields?i.ignoredAdvancedFields:[];this.destinationFormPair.set({oauthField:P,custom:[],dynamic:[],advanced:[]});let L=de.group({}),q=de.group({}),Z=de.group({});N&&Object.entries(N).forEach(([E,y],K)=>{let Fe=y,{formElement:I}=Fe,ie=vt(Fe,["formElement"]);L.addControl(E,I(t?.custom[E])),this.destinationFormPair.update(_e=>(_e.custom.push(O({order:900+K},ie)),_e))});for(let E=0;E<m.Options.length;E++){let y=m.Options[E];if(y.Deprecated)continue;let K=G.find(I=>I===y.Name||I.name===y.Name);if(K){let I=K&&typeof K!="string",ie=I?K?.defaultValue??y.DefaultValue:y.DefaultValue,Fe={name:y.Name,type:y.Type,shortDescription:y.ShortDescription??void 0,longDescription:y.LongDescription??void 0,options:y.ValidValues,order:900+E},_e=I?O(O({},Fe),K):Fe,it=t?.dynamic[y.Name]??ie??y.DefaultValue;this.createFormField(q,_e,it),this.destinationFormPair.update(ze=>(ze.dynamic.push(_e),ze))}else{if(v.find(ge=>ge===y.Name))continue;let ie=b.find(ge=>ge===y.Name||ge.name===y.Name),Fe=ie&&typeof ie!="string",_e=t?.advanced[y.Name],V=_e??y.DefaultValue,it={name:y.Name,type:y.Type,shortDescription:y.ShortDescription??void 0,longDescription:y.LongDescription??void 0,options:y.ValidValues,defaultValue:V,order:900+E},ze=Fe?O(O({},it),ie):it;o&&_e&&(this.createFormField(Z,ze,V),this.selectedAdvancedFormPair.update(ge=>(ge.push(ze),ge))),this.destinationFormPair.update(ge=>(ge.advanced.push(ze),ge))}}for(let E=0;E<g.length;E++){let y=g[E],K=t?.advanced[y.name],I=K??y.defaultValue;o&&K&&(this.createFormField(Z,y,I),this.selectedHttpOptions.update(ie=>(ie.push(y),ie)))}this.destinationFormPair.update(E=>({oauthField:E.oauthField,custom:E.custom.sort((y,K)=>y.order-K.order),dynamic:E.dynamic.sort((y,K)=>y.order-K.order),advanced:E.advanced.sort((y,K)=>y.order-K.order)})),this.destinationForm.controls.destinations.push(an({key:i?.customKey??n,customGroup:L,dynamicGroup:q,advancedGroup:Z}))}#c(){this.generalForm.reset(),this.destinationForm.controls.destinations.clear(),this.destinationForm.reset(),this.sourceDataForm.reset(),this.scheduleForm.reset(),this.optionsForm.reset()}static \u0275fac=function(t){return new(t||e)};static \u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"})};var fo=["formRef"],So=(e,n,t,o)=>({index:e,formView:n,formGroupName:"custom",destinationType:t,oauthField:o}),St=e=>({$implicit:e}),To=(e,n,t,o)=>({index:e,formView:n,formGroupName:"dynamic",destinationType:t,oauthField:o}),ho=(e,n,t,o)=>({index:e,formView:n,formGroupName:"advanced",destinationType:t,oauthField:o}),Do=(e,n,t,o)=>({index:e,formView:n,formGroupName:"advanced",asHttpOptions:!0,destinationType:t,oauthField:o}),Eo=()=>({maxWidth:"700px",width:"100%"});function yo(e,n){e&1&&(C(0,5,2),u(1,"spk-icon"),f())}function Po(e,n){e&1&&x(0,5,3)}function No(e,n){if(e&1){let t=k();C(0,5,1),s(1,"button",21),D("click",function(){S(t);let i=p();return T(i.testDestination())}),d(2,yo,2,0)(3,Po,1,0),r(),f()}if(e&2){let t=p();l(),Ae("success",t.successfulTest()),l(),F(t.successfulTest()?2:3)}}function Oo(e,n){if(e&1){let t=k();s(0,"p",27),D("click",function(){S(t);let i=p();return T(i.removeDestinationFormGroup(i.destinationCount()-1))}),C(1,8),u(2,"span",28),f(),r()}}function Ao(e,n){if(e&1){let t=k();s(0,"div",34),D("click",function(){let i=S(t).$implicit,a=p(2);return T(a.addDestinationFormGroup(i.key))}),s(1,"h3"),_(2),r(),s(3,"p"),_(4),r()()}if(e&2){let t=n.$implicit;l(2),yt(t.displayName),l(2),yt(t.description)}}function ko(e,n){if(e&1){let t=k();s(0,"button",35,1),D("click",function(){let i=S(t).$implicit,a=p(2);return T(a.addDestinationFormGroup(i.key))}),_(2),r()}if(e&2){let t=n.$implicit;l(2),M(" ",t.displayName," ")}}function $o(e,n){if(e&1&&(s(0,"div",29),ee(1,Ao,5,2,"div",30,J),r(),s(3,"spk-menu",31)(4,"button",32),x(5,9),r(),H(6,20),ee(7,ko,3,1,"button",33,J),j(),r()),e&2){let t=p();l(),te(t.destinationTypeOptionsFocused()),l(2),c("searchable",!0),l(4),te(t.destinationTypeOptionsNotFocused())}}function xo(e,n){e&1&&Be(0)}function Io(e,n){if(e&1&&d(0,xo,1,0,"ng-container",40),e&2){let t,o=n.$implicit,i=n.$index;p();let a=Y(29),m=p();c("ngTemplateOutlet",a)("ngTemplateOutletContext",Ke(7,St,et(2,So,i,o,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function Mo(e,n){e&1&&Be(0)}function wo(e,n){if(e&1&&d(0,Mo,1,0,"ng-container",40),e&2){let t,o=n.$implicit,i=n.$index;p();let a=Y(29),m=p();c("ngTemplateOutlet",a)("ngTemplateOutletContext",Ke(7,St,et(2,To,i,o,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function Ro(e,n){if(e&1){let t=k();C(0,10,1),s(1,"button",35,1),D("click",function(){let i=S(t).$implicit,a=p(2);return T(a.addAdvancedFormPair(i,0))}),r(),f()}if(e&2){let t=n.$implicit;l(),Ze(t.name),Je(0)}}function vo(e,n){e&1&&Be(0)}function bo(e,n){if(e&1&&d(0,vo,1,0,"ng-container",40),e&2){let t,o=n.$implicit,i=n.$index;p();let a=Y(29),m=p();c("ngTemplateOutlet",a)("ngTemplateOutletContext",Ke(7,St,et(2,ho,i,o,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function Go(e,n){if(e&1){let t=k();C(0,11,1),s(1,"button",35,1),D("click",function(){let i=S(t).$implicit,a=p(2);return T(a.addHttpOption(i,0))}),r(),f()}if(e&2){let t=n.$implicit;l(),Ze(t.name),Je(0)}}function Vo(e,n){e&1&&Be(0)}function Lo(e,n){if(e&1&&d(0,Vo,1,0,"ng-container",40),e&2){let t,o=n.$implicit,i=n.$index;p();let a=Y(29),m=p();c("ngTemplateOutlet",a)("ngTemplateOutletContext",Ke(7,St,et(2,Do,i,o,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function Uo(e,n){if(e&1&&(s(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Bo(e,n){if(e&1&&(s(0,"app-file-tree",43)(1,"label",47),_(2),d(3,Uo,3,1,"spk-tooltip",48),r(),u(4,"input",49),r()),e&2){let t,o=p().$implicit,i=p(2);c("startingPath",i.getFormFieldValue(0,o.formGroupName,o.formView.name))("accepts",o.formView.accepts)("showFiles",!0)("hideShortcuts",!0)("showHiddenNodes",!0)("selectFiles",!0),l(),U("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),l(),M(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),l(),F(o.formView.longDescription?3:-1),l(),U("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),X("formControlName",o.formView.name)}}function Ko(e,n){if(e&1&&(s(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function zo(e,n){if(e&1&&(s(0,"app-file-tree",44)(1,"label",47),_(2),d(3,Ko,3,1,"spk-tooltip",48),r(),u(4,"input",49),r()),e&2){let t,o=p().$implicit,i=p(2);c("hideShortcuts",!0)("startingPath",i.getFormFieldValue(0,o.formGroupName,o.formView.name)),l(),U("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),l(),M(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),l(),F(o.formView.longDescription?3:-1),l(),U("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),X("formControlName",o.formView.name)}}function Xo(e,n){if(e&1&&(s(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Ho(e,n){e&1&&(s(0,"spk-icon",51),_(1,"link"),r())}function jo(e,n){e&1&&(s(0,"spk-icon",51),_(1,"envelope"),r())}function Wo(e,n){e&1&&(s(0,"spk-icon",51),_(1,"textbox"),r())}function qo(e,n){if(e&1&&(s(0,"spk-form-field")(1,"label",47),_(2),d(3,Xo,3,1,"spk-tooltip",48),r(),u(4,"input",50),d(5,Ho,2,0,"spk-icon",51)(6,jo,2,0,"spk-icon",51)(7,Wo,2,0,"spk-icon",51),r()),e&2){let t,o=p().$implicit;l(),U("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),l(),M(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),l(),F(o.formView.longDescription?3:-1),l(),U("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),X("formControlName",o.formView.name),c("type",o.formView.type==="Email"?"email":"text"),l(),F(o.formView.type==="Path"?5:o.formView.type==="Email"?6:7)}}function Qo(e,n){if(e&1){let t=k();s(0,"span",55),D("click",function(){S(t);let i=p(2).$implicit,a=p(2);return T(a.oauthStartTokenCreation(i.destinationType))}),_(1,"AuthID"),r()}}function Yo(e,n){e&1&&(s(0,"spk-icon",51),_(1,"password"),r())}function Zo(e,n){if(e&1){let t=k();s(0,"spk-icon",56),D("click",function(){S(t);let i=p(2).$implicit;return T(i.formView.showPassword=!i.formView.showPassword)}),_(1," eye "),r()}}function Jo(e,n){if(e&1){let t=k();s(0,"spk-icon",56),D("click",function(){S(t);let i=p(2).$implicit;return T(i.formView.showPassword=!i.formView.showPassword)}),_(1," eye-slash "),r()}}function ei(e,n){if(e&1&&(s(0,"spk-form-field")(1,"label",47),_(2),r(),u(3,"input",52),d(4,Qo,2,0,"span",53)(5,Yo,2,0,"spk-icon",51)(6,Zo,2,0,"spk-icon",54)(7,Jo,2,0,"spk-icon",54),r()),e&2){let t,o=p().$implicit;l(),U("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),l(),M(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),l(),U("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),X("formControlName",o.formView.name),c("type",o.formView.showPassword?"text":"password"),l(),F(o.oauthField===o.formView.name?4:5),l(2),F(o.formView.showPassword?6:7)}}function ti(e,n){if(e&1&&(s(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),e&2){let t=p(3).$implicit;c("message",t.formView.longDescription)}}function ni(e,n){if(e&1&&_(0),e&2){let t=n.$implicit;M(" ",t," ")}}function oi(e,n){if(e&1&&(s(0,"spk-select",57)(1,"label",47),_(2),d(3,ti,3,1,"spk-tooltip",48),r(),u(4,"input",49),r(),d(5,ni,1,1,"ng-template",null,3,$e)),e&2){let t,o=Y(6);p();let i=Ot(0),a=p().$implicit;c("options",i)("isClearable",!1)("optionTemplate",o),l(),U("for","destination-",a.formGroupName,"-",a.index,"-",a.asHttpOptions?"http":"other",""),l(),M(" ",(t=a.formView.shortDescription)!==null&&t!==void 0?t:a.formView.name," "),l(),F(a.formView.longDescription?3:-1),l(),U("id","destination-",a.formGroupName,"-",a.index,"-",a.asHttpOptions?"http":"other",""),X("formControlName",a.formView.name)}}function ii(e,n){if(e&1&&(Pt(0),d(1,oi,7,14)),e&2){let t=p().$implicit,o=Nt(t.formView.loadOptions?t.formView.loadOptions(p(2).injector)():t.formView.options);l(),F(o?1:-1)}}function ri(e,n){if(e&1&&(s(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),e&2){let t=p(3).$implicit;c("message",t.formView.longDescription)}}function ai(e,n){if(e&1&&_(0),e&2){let t=n.$implicit;Gt(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function si(e,n){if(e&1&&(s(0,"spk-select",59)(1,"label",47),_(2),d(3,ri,3,1,"spk-tooltip",48),r(),u(4,"input",49),r(),d(5,ai,1,2,"ng-template",null,4,$e)),e&2){let t,o=Y(6);p();let i=Ot(0),a=p().$implicit;c("options",i)("asFreeText",!0)("inlineSearch",!0)("optionTemplate",o),l(),U("for","destination-",a.formGroupName,"-",a.index,"-",a.asHttpOptions?"http":"other",""),l(),M(" ",(t=a.formView.shortDescription)!==null&&t!==void 0?t:a.formView.name," "),l(),F(a.formView.longDescription?3:-1),l(),U("id","destination-",a.formGroupName,"-",a.index,"-",a.asHttpOptions?"http":"other",""),X("formControlName",a.formView.name)}}function li(e,n){e&1&&u(0,"spk-progress-bar",58)}function pi(e,n){if(e&1&&(Pt(0),d(1,si,7,15)(2,li,1,0,"spk-progress-bar",58)),e&2){let t=p().$implicit,o=Nt(t.formView.loadOptions?t.formView.loadOptions(p(2).injector)():t.formView.options);l(),F(o?1:2)}}function ci(e,n){if(e&1&&(s(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function mi(e,n){if(e&1&&(s(0,"div",45)(1,"label",47),_(2),d(3,ci,3,1,"spk-tooltip",48),r(),s(4,"div",60)(5,"spk-form-field"),u(6,"input",61),s(7,"spk-icon",51),_(8,"resize"),r()(),s(9,"spk-select",62),u(10,"input",63),r()()()),e&2){let t,o=p().$implicit,i=p(2);c("formGroupName",o.formView.name),l(),U("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),l(),M(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),l(),F(o.formView.longDescription?3:-1),l(3),U("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),l(3),c("options",i.sizeOptions())("inlineSearch",!0)}}function ui(e,n){if(e&1&&(s(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function _i(e,n){if(e&1&&(s(0,"spk-form-field")(1,"label",47),_(2),d(3,ui,3,1,"spk-tooltip",48),r(),u(4,"input",64),s(5,"spk-icon",51),_(6,"numpad"),r()()),e&2){let t,o=p().$implicit;l(),U("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),l(),M(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),l(),F(o.formView.longDescription?3:-1),l(),U("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),X("formControlName",o.formView.name)}}function di(e,n){if(e&1&&(s(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Fi(e,n){if(e&1&&(s(0,"spk-toggle",46)(1,"label",47),_(2),d(3,di,3,1,"spk-tooltip",48),r(),u(4,"input",65),r()),e&2){let t,o=p().$implicit;l(),U("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),l(),M(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),l(),F(o.formView.longDescription?3:-1),l(),U("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),X("formControlName",o.formView.name)}}function gi(e,n){if(e&1&&(s(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Ci(e,n){if(e&1&&_(0),e&2){let t=n.$implicit;M(" ",t," ")}}function fi(e,n){if(e&1&&(s(0,"spk-select",66)(1,"label",47),_(2),d(3,gi,3,1,"spk-tooltip",48),r(),u(4,"input",67),r(),d(5,Ci,1,1,"ng-template",null,4,$e)),e&2){let t,o=Y(6),i=p().$implicit;c("options",i.formView.options)("selectMultiple",!0)("optionTemplate",o),l(),W("for","destination-",i.formGroupName,"-",i.index,""),l(),M(" ",(t=i.formView.shortDescription)!==null&&t!==void 0?t:i.formView.name," "),l(),F(i.formView.longDescription?3:-1),l(),X("formControlName",i.formView.name)}}function Si(e,n){if(e&1&&(s(0,"spk-tooltip",48)(1,"spk-icon"),_(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Ti(e,n){if(e&1&&(s(0,"spk-form-field")(1,"label",47),_(2),d(3,Si,3,1,"spk-tooltip",48),r(),u(4,"input",49),r()),e&2){let t,o=p().$implicit;l(),U("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),l(),M(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),l(),F(o.formView.longDescription?3:-1),l(),U("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),X("formControlName",o.formView.name)}}function hi(e,n){if(e&1){let t=k();s(0,"button",68),D("click",function(){S(t);let i=p().$implicit,a=p(2);return T(a.removeFormView(i.formView,0))}),s(1,"spk-icon"),_(2,"x-circle"),r()()}}function Di(e,n){if(e&1&&(s(0,"div",41),H(1,42),d(2,Bo,5,17,"app-file-tree",43)(3,zo,5,13,"app-file-tree",44)(4,qo,8,13,"spk-form-field")(5,ei,8,13,"spk-form-field")(6,ii,2,2)(7,pi,3,2)(8,mi,11,13,"div",45)(9,_i,7,11,"spk-form-field")(10,Fi,5,11,"spk-toggle",46)(11,fi,7,9)(12,Ti,5,11,"spk-form-field"),j(),d(13,hi,3,0,"button",32),r()),e&2){let t=n.$implicit;Ae("single-field",t.formGroupName!=="advanced"),l(),c("formGroupName",t.formGroupName),l(),F(t.formView.type==="FileTree"?2:t.formView.type==="FolderTree"?3:t.formView.type==="String"||t.formView.type==="Path"||t.formView.type==="Email"?4:t.formView.type==="Password"?5:t.formView.type==="Enumeration"?6:t.formView.type==="NonValidatedSelectableString"?7:t.formView.type==="Size"?8:t.formView.type==="Integer"?9:t.formView.type==="Boolean"?10:t.formView.type==="Flags"?11:t.formView.type==="Timespan"?12:-1),l(11),F(t.formGroupName==="advanced"?13:-1)}}function Ei(e,n){if(e&1&&(H(0,22)(1,36),ee(2,Io,1,9,"ng-container",null,J),ee(4,wo,1,9,"ng-container",null,J),s(6,"app-toggle-card",37),H(7,38),C(8,10),s(9,"spk-menu",31)(10,"button",39),u(11,"spk-icon"),r(),H(12,20),ee(13,Ro,3,1,"button",33,J),j(),r(),f(),j(),ee(15,bo,1,9,"ng-container",null,J),r(),s(17,"app-toggle-card",37),H(18,38),C(19,11),s(20,"spk-menu",31)(21,"button",39),u(22,"spk-icon"),r(),H(23,20),ee(24,Go,3,1,"button",33,J),j(),r(),f(),j(),ee(26,Lo,1,9,"ng-container",null,J),r(),d(28,Di,14,5,"ng-template",null,2,$e),j()()),e&2){let t=p();l(2),te(t.destinationFormPair().custom),l(2),te(t.destinationFormPair().dynamic),l(2),c("disallowToggle",!0),l(3),c("searchable",!0),l(),c("disabled",t.notSelectedAdvancedFormPair().length===0),l(3),te(t.notSelectedAdvancedFormPair()),l(2),te(t.selectedAdvancedFormPair()),l(2),c("disallowToggle",!0),l(3),c("searchable",!0),l(),c("disabled",t.notSelectedHttpOptions().length===0),l(3),te(t.notSelectedHttpOptions()),l(2),te(t.selectedHttpOptions())}}function yi(e,n){if(e&1){let t=k();s(0,"spk-dialog",69),Ut("isOpenChange",function(i){S(t);let a=p();return Lt(a.targetUrlDialogOpen,i)||(a.targetUrlDialogOpen=i),T(i)}),s(1,"header",70)(2,"h2"),x(3,12),r(),s(4,"spk-alert",71),x(5,13),r()(),s(6,"div",72)(7,"spk-form-field"),u(8,"textarea",73),r()(),s(9,"footer",74)(10,"button",24),D("click",function(){S(t);let i=p();return T(i.closeTargetUrlDialog(!1))}),_(11,"Cancel"),r(),s(12,"button",75),D("click",function(){S(t);let i=p();return T(i.closeTargetUrlDialog(!0))}),C(13,14),u(14,"spk-icon"),f(),r()()()}if(e&2){let t=p();Vt("isOpen",t.targetUrlDialogOpen),c("options",Bt(3,Eo)),l(8),c("formControl",t.targetUrlCtrl)}}var Pi=["Bytes","KB","MB","GB","TB","PB"],ft=new ne,rn=(e={destinations:[]})=>ft.group({destinations:ft.array(e.destinations)}),an=({key:e,customGroup:n,dynamicGroup:t,advancedGroup:o})=>ft.group({destinationType:ft.control(e),custom:n,dynamic:t,advanced:o}),Rt=class e{#e=$(ae);#t=$(Te);#o=$(zt);#i=$(Xe);#n=$(ue);#r=$(Wt);injector=$(bt);formRef=Ce.required("formRef");destinationForm=this.#n.destinationForm;destinationFormPair=this.#n.destinationFormPair;selectedAdvancedFormPair=this.#n.selectedAdvancedFormPair;notSelectedAdvancedFormPair=this.#n.notSelectedAdvancedFormPair;selectedHttpOptions=this.#n.selectedHttpOptions;notSelectedHttpOptions=this.#n.notSelectedHttpOptions;destinationOptions=this.#n.destinationOptions;destinationFormSignal=this.#n.destinationFormSignal;destinationCount=B(()=>this.destinationFormSignal()?.destinations?.length??0);sizeOptions=A(Pi);successfulTest=A(!1);destinationTypeOptionsInFocus=A(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=A(Ie.map(n=>({key:n.customKey??n.key,customKey:n.customKey??null,displayName:n.displayName,description:n.description})));destinationTypeOptionsFocused=B(()=>{let n=this.destinationTypeOptionsInFocus(),t=this.destinationTypeOptions();return n.map(o=>t.find(i=>i.key===o))});destinationTypeOptionsNotFocused=B(()=>{let n=this.destinationTypeOptionsInFocus();return this.destinationTypeOptions().filter(o=>!n.includes(o.key))});getFormFieldValue(n,t,o){return((this.destinationForm.controls.destinations.controls?.[n]).controls?.[t]).controls[o].value}addDestinationFormGroup(n){this.#n.addDestinationFormGroup(n)}addAdvancedFormPair(n,t){this.#n.addAdvancedFormPair(n,t)}removeFormView(n,t){this.#n.removeAdvancedFormPair(n,t)}addHttpOption(n,t){this.#n.addHttpOption(n,t)}targetUrl=B(()=>this.#n.getCurrentTargetUrl()[0]);targetUrlCtrl=new lt;targetUrlInitial=A(null);targetUrlDialogOpen=A(!1);openTargetUrlDialog(){let t=this.#n.getCurrentTargetUrl()[0];this.targetUrlCtrl.setValue(t),this.targetUrlInitial.set(t),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(n=!1){this.targetUrlDialogOpen.set(!1);let t=this.targetUrlCtrl.value,o=this.targetUrlInitial();!n||t===o||this.#n.updateFieldsFromTargetUrl(this.targetUrlCtrl.value)}testDestination(n=0){let o=this.#n.getCurrentTargetUrl()[n];o&&this.#i.postApiV1RemoteoperationTest({requestBody:{path:o}}).subscribe({next:()=>{this.successfulTest.set(!0),setTimeout(()=>{this.successfulTest.set(!1)},3e3)},error:i=>{let a=i.error.error.Error;if(a==="missing-folder"&&this.#r.open(tt,{data:{title:$localize`Create folder`,message:$localize`The remote destination folder does not exist, do you want to create it?`},closed:m=>{m&&this.#i.postApiV1RemoteoperationCreate({requestBody:{path:o}}).subscribe()}}),a.startsWith("incorrect-cert:")){let m=a.split("incorrect-cert:")[1];this.#r.open(tt,{maxWidth:"500px",data:{title:$localize`Trust the certificate`,message:$localize`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: ${m}`,confirmText:"Trust the certificate",cancelText:"Cancel"},closed:g=>{g&&this.#n.addHttpOptionByName("accept-specified-ssl-hash",m)}})}if(a.startsWith("incorrect-host-key:")){let m=a.split('incorrect-host-key:"')[1].split('",')[0],g=a.split('accepted-host-key:"')[1].split('",')[0];g?this.#r.open(tt,{maxWidth:"500px",data:{title:$localize`The host key has changed`,message:$localize`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 ${g}
|
|
6
|
+
with the REPORTED host key: ${m}?`,confirmText:$localize`Approve`,cancelText:$localize`Cancel`},closed:P=>{P&&this.#n.addAdvancedFormPairByName("ssh-fingerprint",n,m)}}):this.#r.open(tt,{maxWidth:"500px",data:{title:$localize`Approve host key?`,message:$localize`No certificate was specified, please verify that the reported host key is correct: ${m}`,confirmText:"Approve",cancelText:"Cancel"},closed:P=>{P&&this.#n.addAdvancedFormPairByName("ssh-fingerprint",n,m)}})}}})}mapToTargetUrl(n){return Ft(n.value)}removeDestinationFormGroup(n){this.destinationForm.controls.destinations.removeAt(n)}displayFn(n){let t=this.destinationOptions().find(o=>o.Key===n);return t?`${t.DisplayName}`:""}goBack(){this.#e.navigate(["general"],{relativeTo:this.#t.parent})}next(){this.#e.navigate(["source-data"],{relativeTo:this.#t.parent})}#s=A("https://duplicati-oauth-handler.appspot.com/").asReadonly();#l=A(Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2)).asReadonly();#a=A(!1);#p=A(null);keyCreation(){}oauthStartTokenCreation(n){this.#a.set(!0);let t=450,o=600,i=this.#s()+"?type="+n+"&token="+this.#l(),a=screen.width/2-t/2,m=screen.height/2-o/2,g=window.open(i,"_blank","height="+o+",width="+t+",menubar=0,status=0,titlebar=0,toolbar=0,left="+a+",top="+m);g?.addEventListener("blur",P=>{console.log("event blur",P)}),g?.addEventListener("beforeunload",P=>{console.log("event beforeunload",P),this.#o.get(this.#s()+"fetch?callback=JSON_CALLBACK",{params:{token:this.#l()}}).pipe(Ye(()=>this.#a.set(!1))).subscribe({next:N=>{console.log("res",N),N?.authid&&this.#p.set(N.authid)}})})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=re({type:e,selectors:[["app-destination"]],viewQuery:function(t,o){t&1&&fe(o.formRef,fo,5),t&2&&Se()},decls:24,vars:6,consts:()=>{let n;n=$localize` Backup destination ${"\uFFFD#5\uFFFD"}:START_TAG_DIV:${"\uFFFD*6:1\uFFFD"}:START_BLOCK_IF_1:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON:${"\uFFFD*2:2\uFFFD"}:START_BLOCK_IF: Connected ${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:check${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*3:3\uFFFD"}:START_BLOCK_ELSE: Test destination ${"\uFFFD/*3:3\uFFFD"}:CLOSE_BLOCK_ELSE:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD#7\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:dots-three-vertical${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#10\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD#11\uFFFD"}:START_TAG_BUTTON_2:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:link${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON: Edit target URL ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_MENU:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_DIV:`,n=ke(n);let t;t=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let o;o=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let i;i=$localize` Want to select another destination? ${"\uFFFD#2\uFFFD"}:START_TAG_SPAN:Click here${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPAN:`;let a;a=$localize`Other destinations`;let m;m=$localize` Advanced options ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#10\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#11\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#10\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#12\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*14:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#10\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*14:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_MENU:`,m=ke(m);let g;g=$localize` Http options ${"\uFFFD#20\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#21\uFFFD"}:START_TAG_BUTTON: Add http option ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#21\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#23\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*25:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#21\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*25:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#23\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#20\uFFFD"}:CLOSE_TAG_SPK_MENU:`,g=ke(g);let P;P=$localize`Select an option...`;let N;N=$localize`Edit target URL`;let G;G=$localize` Be careful, this will overwrite everything you have in your destination. `;let b;return b=$localize` Override target URL ${"\uFFFD#14\uFFFD"}:START_TAG_SPK_ICON:swap${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[["formRef",""],["option",""],["fieldTemplate",""],["enumOptionTemplate",""],["optionTemplate",""],n,t,o,i,a,m,g,N,G,b,[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,"searchable"],["spk-button","","type","button",1,"outlined"],["type","button"],[1,"tile",3,"click"],["type","button",3,"click"],["formGroupName","0"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small",3,"disabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","hideShortcuts","showHiddenNodes","selectFiles"],[3,"hideShortcuts","startingPath"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],[3,"type","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"],[3,"options","isClearable","optionTemplate"],[1,"indeterminate","primary"],["label","key","value","value",3,"options","asFreeText","inlineSearch","optionTemplate"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["placeholder",P,3,"options","inlineSearch"],["type","text","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],[1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["type","text","id","text",3,"formControlName"],["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(t,o){if(t&1){let i=k();s(0,"form",15,0),D("submit",function(){return S(i),T(o.next())}),s(2,"header")(3,"h3",16),C(4,5),s(5,"div",17),d(6,No,4,3,"button",18),s(7,"spk-menu")(8,"button",19),u(9,"spk-icon"),r(),H(10,20),s(11,"button",21),D("click",function(){return S(i),T(o.openTargetUrlDialog())}),u(12,"spk-icon"),r(),j(),r()(),f(),r(),d(13,Oo,3,0,"p"),r(),d(14,$o,9,1)(15,Ei,30,6,"ng-container",22),s(16,"div",23)(17,"button",24),D("click",function(){return S(i),T(o.goBack())}),C(18,6),u(19,"spk-icon"),f(),r(),s(20,"button",25),C(21,7),u(22,"spk-icon"),f(),r()()(),d(23,yi,15,4,"spk-dialog",26)}if(t&2){let i;c("formGroup",o.destinationForm),l(6),F(o.destinationCount()>0?6:-1),l(7),F(o.destinationCount()>0?13:-1),l(),F(o.destinationCount()===0?14:-1),l(),F(!((i=o.destinationFormSignal())==null||i.destinations==null)&&i.destinations.length?15:-1),l(8),F(o.targetUrlDialogOpen()?23:-1)}},dependencies:[Ne,Ee,se,ve,Re,le,De,pt,ye,Pe,be,Ht,at,ce,ut,pe,Ve,He,jt,mt,me,_t,Le,je],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}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;padding-bottom: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}spk-select[_ngcontent-%COMP%]{--miw: p2r(120)}"],changeDetection:0})};export{Ft as a,Ie as b,rn as c,an as d,Rt as e,Yt as f,xt as g,$t as h,Jt as i,It as j,tn as k,Mt as l,on as m,wt as n,ue as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b}from"./chunk-
|
|
1
|
+
import{a as b}from"./chunk-KDCTRSPO.js";import"./chunk-UIOTKB6J.js";import{a as w,m as D}from"./chunk-ZI4ZJIB3.js";import"./chunk-W4YAOQRI.js";import{ia as A}from"./chunk-WYTHNCNI.js";import{Ab as r,Eb as u,Fb as v,Jc as $,Nb as P,Pa as l,Rb as k,Sb as s,W as y,ba as O,ca as x,cb as T,dc as C,ec as p,fc as E,hb as a,qb as d,rb as h,rc as _,sa as m,sb as f,sc as N,vb as g,xb as I,xc as F,yb as M,zb as c}from"./chunk-ZSSQBIRK.js";import"./chunk-C6Q5SG76.js";var L=e=>({children:e,level:0}),R=e=>({$implicit:e}),V=(e,t)=>({children:e,level:t}),j=(e,t)=>t.id;function z(e,t){if(e&1&&(c(0,"spk-icon"),p(1,"caret-down"),r()),e&2){let n=s().$implicit;f("open",n.isOpen())}}function B(e,t){e&1&&(c(0,"spk-icon"),p(1,"dot"),r())}function G(e,t){e&1&&u(0)}function U(e,t){if(e&1&&a(0,G,1,0,"ng-container",3),e&2){let n=s().$implicit,o=s().$implicit;s();let i=C(3);d("ngTemplateOutlet",i)("ngTemplateOutletContext",_(5,R,N(2,V,n.children,o.level+1)))}}function X(e,t){if(e&1){let n=v();c(0,"div",4,1),k("click",function(){let i=O(n).$implicit,Y=s(2);return x(i.children.length>0&&Y.toggleNode(i))}),a(2,z,2,2,"spk-icon",5)(3,B,2,0,"spk-icon"),c(4,"div",6),p(5),r()(),a(6,U,1,7,"ng-container")}if(e&2){let n=t.$implicit;f("cannot-toggle",n.children.length===0)("open",n.isOpen()),l(2),g(n.children.length>0?2:3),l(3),E(n.text),l(),g(n.isOpen()?6:-1)}}function q(e,t){if(e&1&&(c(0,"spk-list"),I(1,X,7,7,null,null,j),r()),e&2){let n=t.$implicit;h("padding-left",n.level*.25,"rem"),l(),M(n.children)}}function H(e,t){e&1&&u(0)}var S=class e{#e=y(b);treeStructure=$(()=>{let t=this.#e.systemInfo();return this.processObject(t,0)});toggleNode(t){t.isOpen.update(n=>!n)}processObject(t,n){let o=[];for(let i in t)typeof t[i]=="object"?o.push({id:i,text:i,children:this.processObject(t[i],n+1),level:n,isOpen:m(!1)}):o.push({id:i,text:`${i}: ${t[i]}`,children:[],level:n,isOpen:m(!1)});return o}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=T({type:e,selectors:[["app-system-info"]],decls:5,vars:6,consts:()=>{let t;return t=$localize`System info`,[["recursiveTree",""],["treeNode",""],t,[4,"ngTemplateOutlet","ngTemplateOutletContext"],["action","",3,"click"],[3,"open"],[1,"text"]]},template:function(n,o){if(n&1&&(c(0,"h3"),P(1,2),r(),a(2,q,3,2,"ng-template",null,0,F)(4,H,1,0,"ng-container",3)),n&2){let i=C(3);l(4),d("ngTemplateOutlet",i)("ngTemplateOutletContext",_(4,R,_(2,L,o.treeStructure())))}},dependencies:[D,w,A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}spk-icon[_ngcontent-%COMP%]{font-size:1rem}spk-list[_ngcontent-%COMP%]{padding:0}spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0}spk-list[_ngcontent-%COMP%] [action].cannot-toggle[_ngcontent-%COMP%]{cursor:initial}"],changeDetection:0})};export{S as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a as xe}from"./chunk-ODIN2IGP.js";import{b as be}from"./chunk-UIOTKB6J.js";import{c as ke}from"./chunk-4RXMJUN5.js";import"./chunk-W4YAOQRI.js";import"./chunk-WYTHNCNI.js";import{Ab as ue,Bb as ge,Ma as oe,Nb as fe,Pa as ae,T as le,W as q,cb as ce,o as ie,pc as de,qb as he,zb as pe}from"./chunk-ZSSQBIRK.js";import{a as m,b as z}from"./chunk-C6Q5SG76.js";function F(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var R=F();function $e(a){R=a}var E={exec:()=>null};function g(a,e=""){let t=typeof a=="string"?a:a.source,n={replace:(s,i)=>{let r=typeof i=="string"?i:i.source;return r=r.replace(x.caret,"$1"),t=t.replace(s,r),n},getRegex:()=>new RegExp(t,e)};return n}var x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:a=>new RegExp(`^( {0,3}${a})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}#`),htmlBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}<(?:[a-z].*>|!--)`,"i")},Me=/^(?:[ \t]*(?:\n|$))+/,De=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Oe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,v=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ne=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Q=/(?:[*+-]|\d{1,9}[.)])/,Re=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ze=g(Re).replace(/bull/g,Q).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ge=g(Re).replace(/bull/g,Q).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),U=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ze=/^[^\n]+/,X=/(?!\s*\])(?:\\.|[^\[\]\\])+/,He=g(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",X).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),je=g(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Q).getRegex(),O="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",W=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Fe=g("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",W).replace("tag",O).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ce=g(U).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex(),Qe=g(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ce).getRegex(),V={blockquote:Qe,code:De,def:He,fences:Oe,heading:Ne,hr:v,html:Fe,lheading:ze,list:je,newline:Me,paragraph:Ce,table:E,text:Ze},me=g("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex(),Ue=z(m({},V),{lheading:Ge,table:me,paragraph:g(U).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",me).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex()}),Xe=z(m({},V),{html:g(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",W).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:E,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:g(U).replace("hr",v).replace("heading",` *#{1,6} *[^
|
|
2
2
|
]`).replace("lheading",ze).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),We=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ve=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,_e=/^( {2,}|\\)\n(?!\s*$)/,Je=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,N=/[\p{P}\p{S}]/u,J=/[\s\p{P}\p{S}]/u,Ae=/[^\s\p{P}\p{S}]/u,Ke=g(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,J).getRegex(),Pe=/(?!~)[\p{P}\p{S}]/u,Ye=/(?!~)[\s\p{P}\p{S}]/u,et=/(?:[^\s\p{P}\p{S}]|~)/u,tt=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Le=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,nt=g(Le,"u").replace(/punct/g,N).getRegex(),st=g(Le,"u").replace(/punct/g,Pe).getRegex(),Ie="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",rt=g(Ie,"gu").replace(/notPunctSpace/g,Ae).replace(/punctSpace/g,J).replace(/punct/g,N).getRegex(),it=g(Ie,"gu").replace(/notPunctSpace/g,et).replace(/punctSpace/g,Ye).replace(/punct/g,Pe).getRegex(),lt=g("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ae).replace(/punctSpace/g,J).replace(/punct/g,N).getRegex(),ot=g(/\\(punct)/,"gu").replace(/punct/g,N).getRegex(),at=g(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),ct=g(W).replace("(?:-->|$)","-->").getRegex(),ht=g("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ct).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),D=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,pt=g(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",D).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ee=g(/^!?\[(label)\]\[(ref)\]/).replace("label",D).replace("ref",X).getRegex(),Be=g(/^!?\[(ref)\](?:\[\])?/).replace("ref",X).getRegex(),ut=g("reflink|nolink(?!\\()","g").replace("reflink",Ee).replace("nolink",Be).getRegex(),K={_backpedal:E,anyPunctuation:ot,autolink:at,blockSkip:tt,br:_e,code:Ve,del:E,emStrongLDelim:nt,emStrongRDelimAst:rt,emStrongRDelimUnd:lt,escape:We,link:pt,nolink:Be,punctuation:Ke,reflink:Ee,reflinkSearch:ut,tag:ht,text:Je,url:E},gt=z(m({},K),{link:g(/^!?\[(label)\]\((.*?)\)/).replace("label",D).getRegex(),reflink:g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",D).getRegex()}),H=z(m({},K),{emStrongRDelimAst:it,emStrongLDelim:st,url:g(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),ft=z(m({},H),{br:g(_e).replace("{2,}","*").getRegex(),text:g(H.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),M={normal:V,gfm:Ue,pedantic:Xe},L={normal:K,gfm:H,breaks:ft,pedantic:gt},dt={"&":"&","<":"<",">":">",'"':""","'":"'"},we=a=>dt[a];function T(a,e){if(e){if(x.escapeTest.test(a))return a.replace(x.escapeReplace,we)}else if(x.escapeTestNoEncode.test(a))return a.replace(x.escapeReplaceNoEncode,we);return a}function ye(a){try{a=encodeURI(a).replace(x.percentDecode,"%")}catch{return null}return a}function Se(a,e){let t=a.replace(x.findPipe,(i,r,l)=>{let o=!1,c=r;for(;--c>=0&&l[c]==="\\";)o=!o;return o?"|":" |"}),n=t.split(x.splitPipe),s=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(x.slashPipe,"|");return n}function I(a,e,t){let n=a.length;if(n===0)return"";let s=0;for(;s<n&&a.charAt(n-s-1)===e;)s++;return a.slice(0,n-s)}function kt(a,e){if(a.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<a.length;n++)if(a[n]==="\\")n++;else if(a[n]===e[0])t++;else if(a[n]===e[1]&&(t--,t<0))return n;return-1}function Te(a,e,t,n,s){let i=e.href,r=e.title||null,l=a[1].replace(s.other.outputLinkReplace,"$1");if(a[0].charAt(0)!=="!"){n.state.inLink=!0;let o={type:"link",raw:t,href:i,title:r,text:l,tokens:n.inlineTokens(l)};return n.state.inLink=!1,o}return{type:"image",raw:t,href:i,title:r,text:l}}function bt(a,e,t){let n=a.match(t.other.indentCodeCompensation);if(n===null)return e;let s=n[1];return e.split(`
|
|
3
3
|
`).map(i=>{let r=i.match(t.other.beginningSpace);if(r===null)return i;let[l]=r;return l.length>=s.length?i.slice(s.length):i}).join(`
|
|
4
4
|
`)}var _=class{options;rules;lexer;constructor(e){this.options=e||R}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:I(n,`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ia as Ve}from"./chunk-WYTHNCNI.js";import{$ as we,Ab as l,Bb as P,Dc as Re,Eb as ee,Fb as A,Jc as T,Lc as M,Nc as _e,Pa as f,Q as se,Ra as le,Rb as O,Sb as d,Tb as D,Ub as p,W as j,Wa as $,Xa as Te,Ya as ce,Za as R,ac as ie,ba as _,bc as U,ca as C,cb as y,cc as z,dc as Ie,eb as Ee,ec as k,ga as Oe,gc as G,ha as be,hb as w,hc as ne,jc as he,kc as fe,lc as me,ma as re,mb as Me,mc as ge,na as N,nc as K,oa as m,oc as H,pa as B,qb as X,qc as ve,ra as ae,rb as W,rc as oe,sa as S,sb as I,tb as J,ub as te,vb as b,wb as pe,xb as de,yb as ue,zb as r}from"./chunk-ZSSQBIRK.js";import{a as q,b as Z,c as xe}from"./chunk-C6Q5SG76.js";var V=["*"],We=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],ze=["[icon]","[title]","*","[content]"];function qe(n,c){n&1&&(r(0,"spk-icon",3),k(1,"info"),l())}function $e(n,c){n&1&&(r(0,"spk-icon",3),k(1,"info"),l())}function Ue(n,c){n&1&&(r(0,"spk-icon",3),k(1,"warning"),l())}function Qe(n,c){n&1&&(r(0,"spk-icon",3),k(1,"warning-octagon"),l())}function Ne(n,c){n&1&&(r(0,"spk-icon",3),k(1,"check-circle"),l())}function Ye(n,c){n&1&&(r(0,"spk-icon",3),k(1,"question"),l())}function Xe(n,c){if(n&1){let t=A();r(0,"spk-icon",7),O("click",function(){_(t);let i=d();return C(i.removeAlert())}),k(1,"plus"),l()}}var Ge=["dialogRef"];function Ke(n,c){if(n&1){let t=A();r(0,"div",4),O("click",function(){_(t);let i=d();return C(i.isOpen.set(!1))}),l()}}var Je=["spk-button",""];var Fe=["triggerRef"],Ze=["popoverRef"],et=[[["","trigger",""]],"*"],tt=["[trigger]","*"];var it=()=>({closeOnButton:!1,closeOnEsc:!0});var nt=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],ot=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"];var st=["option"],rt=["input"],at=["*",[["","menu",""]]],lt=["*","[menu]"],ct=[[["label"]],"*"],pt=["label","*"],dt=["optionsWrap"],ut=[[["label"]],[["input"]],[["textarea"]]],ht=["label","input","textarea"],ft=()=>({closeOnButton:!1,closeOnEsc:!1}),Se=n=>({$implicit:n});function mt(n,c){if(n&1&&k(0),n&2){let t=d();G(" ",t.inputValue()," ")}}function gt(n,c){n&1&&ee(0)}function vt(n,c){if(n&1&&w(0,gt,1,0,"ng-container",13),n&2){let t=d(3).$implicit;d(2);let e=H(6);X("ngTemplateOutlet",e)("ngTemplateOutletContext",oe(2,Se,t))}}function _t(n,c){if(n&1&&k(0),n&2){let t=d(3).$implicit,e=d(2);G(" ",e.getLabel(t)," ")}}function Ct(n,c){if(n&1){let t=A();r(0,"spk-chip",11),w(1,vt,1,4,"ng-container")(2,_t,1,1),r(3,"spk-icon",12),O("click",function(i){_(t);let o=d(2).$index,s=d(2);return C(s.removeSelectedOptionByIndex(i,o))}),k(4,"x-bold"),l()()}if(n&2){let t=d(4),e=H(6);te(t.selectClasses()),f(),b(e?1:2)}}function St(n,c){n&1&&ee(0)}function kt(n,c){if(n&1&&w(0,St,1,0,"ng-container",13),n&2){let t=d(4).$implicit;d(2);let e=H(6);X("ngTemplateOutlet",e)("ngTemplateOutletContext",oe(2,Se,t))}}function yt(n,c){if(n&1&&k(0),n&2){let t=d(4).$implicit,e=d(2);G(" ",e.getLabel(t)," ")}}function Dt(n,c){if(n&1&&w(0,kt,1,4,"ng-container")(1,yt,1,1),n&2){d(5);let t=H(6);b(t?0:1)}}function xt(n,c){if(n&1&&w(0,Dt,2,1),n&2){d(4);let t=H(9);b(t?-1:0)}}function wt(n,c){if(n&1&&w(0,Ct,5,3,"spk-chip",10)(1,xt,1,1),n&2){d(3);let t=H(8);b(t?0:1)}}function Ot(n,c){if(n&1&&w(0,wt,2,1),n&2){let t=c.$implicit;b(t?0:-1)}}function bt(n,c){if(n&1&&de(0,Ot,1,1,null,null,pe),n&2){d();let t=H(4);ue(t)}}function Tt(n,c){n&1&&ee(0)}function Et(n,c){if(n&1&&w(0,Tt,1,0,"ng-container",14),n&2){d(2);let t=H(0);X("ngTemplateOutlet",t)}}function Mt(n,c){if(n&1&&k(0),n&2){let t,e=d(2);G(" ",(t=e.placeholderText())!==null&&t!==void 0?t:""," ")}}function It(n,c){if(n&1&&w(0,Et,1,1,"ng-container")(1,Mt,1,1),n&2){d();let t=H(0);b(t?0:1)}}function Rt(n,c){n&1&&(r(0,"spk-icon",6),k(1,"caret-down"),l())}function Vt(n,c){n&1&&P(0,"spk-spinner",7)}function Ft(n,c){n&1&&(r(0,"spk-icon",6),k(1,"list-magnifying-glass"),l())}function Pt(n,c){n&1&&(r(0,"spk-icon",6),k(1,"magnifying-glass"),l())}function At(n,c){if(n&1){let t=A();r(0,"spk-icon",15),O("click",function(i){_(t);let o=d();return C(o.clear(i))}),k(1,"x-bold"),l()}}function Ht(n,c){n&1&&(r(0,"spk-icon",6),k(1,"caret-down"),l())}function Lt(n,c){n&1&&(r(0,"spk-icon",6),k(1,"caret-up"),l())}function jt(n,c){if(n&1&&P(0,"spk-checkbox"),n&2){let t=d().$index,e=d();te(e.selectClasses()),I("active",e.isSelected(t))}}function Bt(n,c){n&1&&ee(0)}function Wt(n,c){if(n&1&&w(0,Bt,1,0,"ng-container",13),n&2){let t=d().$implicit;d();let e=H(7);X("ngTemplateOutlet",e)("ngTemplateOutletContext",oe(2,Se,t))}}function zt(n,c){if(n&1&&k(0),n&2){let t=d().$implicit,e=d();G(" ",e.getLabel(t)," ")}}function qt(n,c){if(n&1){let t=A();r(0,"li",16),O("click",function(){let i=_(t).$index,o=d();return C(o.toggleOptionByIndex(i))}),w(1,jt,1,4,"spk-checkbox",17)(2,Wt,1,4,"ng-container")(3,zt,1,1),l()}if(n&2){let t=c.$index,e=d(),i=H(7);I("selected",e.isSelected(t))("focused",t===e.focusedOptionIndex()),f(),b(e.selectMultiple()?1:-1),f(),b(i?2:3)}}var $t=["dragImageElement"],Ut=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],Qt=["[sidenav]","[sidenav-closed-topbar]","*"];function Nt(n,c){n&1&&P(0,"div",1,0)}function Yt(n,c){if(n&1){let t=A();r(0,"div",7),O("drop",function(i){_(t);let o=d();return C(o.drop(i))})("dragover",function(i){_(t);let o=d();return C(o.dragOver(i))})("dragenter",function(){_(t);let i=d();return C(i.dragEnter())})("dragleave",function(){_(t);let i=d();return C(i.dragLeave())}),l()}}function Xt(n,c){if(n&1){let t=A();r(0,"div",8),O("dragstart",function(i){_(t);let o=d();return C(o.dragStart(i))})("dragend",function(i){_(t);let o=d();return C(o.dragEnd(i))})("drag",function(i){_(t);let o=d();return C(o.drag(i))})("touchstart",function(i){_(t);let o=d();return C(o.touchStart(i))})("touchmove",function(i){_(t);let o=d();return C(o.touchMove(i))})("touchend",function(i){_(t);let o=d();return C(o.touchEnd(i))})("touchcancel",function(i){_(t);let o=d();return C(o.touchCancel(i))}),l()}}var Gt=["spkHeader"],Kt=[[["","table-header",""]],"*",[["","table-no-rows",""]]],Jt=["[table-header]","*","[table-no-rows]"];function Zt(n,c){n&1&&P(0,"spk-progress-bar",1)}function ei(n,c){n&1&&(r(0,"div",2),p(1,2),l())}var ti=["tooltipRef"];var Ce=["bold","thin","light","fill"],ke=(()=>{class n{#e=j(B);get currentClass(){let t=this.#e.nativeElement.innerText;for(let e=0;e<Ce.length;e++)if(t.endsWith(Ce[e]))return Ce[e];return""}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-icon"]],hostVars:2,hostBindings:function(e,i){e&2&&te(i.currentClass)},ngContentSelectors:V,decls:1,vars:0,template:function(e,i){e&1&&(D(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Ri=(()=>{class n{constructor(){this._el=j(B),this.alertService=m(null),this.id=m(null),this.alertClasses=T(()=>this._el.nativeElement.classList.toString())}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-alert"]],inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:ze,decls:18,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(e,i){if(e&1&&(D(We),r(0,"div",1)(1,"div",2,0),p(3),l(),r(4,"div",2),ge(5),w(6,qe,2,0,"spk-icon",3)(7,$e,2,0,"spk-icon",3)(8,Ue,2,0,"spk-icon",3)(9,Qe,2,0,"spk-icon",3)(10,Ne,2,0,"spk-icon",3)(11,Ye,2,0,"spk-icon",3),l(),r(12,"div",4),p(13,1),p(14,2),l(),w(15,Xe,2,0,"spk-icon",5),r(16,"div",6),p(17,3),l()()),e&2){let o=Ie(2);f(),W("display",o.children.length?"block":"none");let s=i.alertClasses();f(5),b(s.includes("primary")?6:s.includes("accent")?7:s.includes("warn")?8:s.includes("error")?9:s.includes("success")?10:11),f(9),b(i.id()?15:-1)}},dependencies:[ke],encapsulation:2,changeDetection:0})}}return n})();function ye(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var Vi=(()=>{class n{constructor(){this.alertHistory=S([]),this.alertHistoryIsOpen=S(!1),this.alertHistoryIsHidden=S(!0)}error(t){this.addAlert({type:"error",title:t??"An error occured"})}success(t){this.addAlert({type:"success",title:t})}question(t){this.addAlert({type:"question",title:t})}warning(t){this.addAlert({type:"warn",title:t})}info(t){this.addAlert({type:"primary",title:t})}addAlert(t){let e=ye();this.alertHistory.update(i=>[Z(q({},t),{isOpen:!0,animateIn:!0,animateOut:!1,id:e}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>Z(q({},o),{animateIn:o.id===e?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(e)},2500)}removeAlert(t){this.alertHistory.update(e=>e.map(i=>Z(q({},i),{animateOut:i.id===t?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(e=>e.filter(i=>i.id!==t))},300)}hideAlert(t){this.alertHistory.update(e=>e.map(i=>Z(q({},i),{isOpen:i.id===t?!1:i.isOpen})))}setHidden(t){this.alertHistoryIsHidden.set(t)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ii={width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},ni=(()=>{class n{constructor(){this.dialogRef=$("dialogRef"),this.isOpen=R(!1),this.options=m(),this.closed=N(),this.defaultOptionMerge=T(()=>q(q({},ii),this.options())),this.abortController=null,this.isOpenEffect=M(()=>{let t=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(t?.showModal(),t?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",e=>{e.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&e.preventDefault(),e.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),t?.close())})}ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-dialog"]],viewQuery:function(e,i){e&1&&U(i.dialogRef,Ge,5),e&2&&z()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:V,decls:5,vars:9,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(e,i){if(e&1&&(D(),r(0,"dialog",1,0)(2,"div",2),p(3),l(),w(4,Ke,1,0,"div",3),l()),e&2){let o,s,a,u;W("width",(o=i.defaultOptionMerge().width)!==null&&o!==void 0?o:"")("max-width",(s=i.defaultOptionMerge().maxWidth)!==null&&s!==void 0?s:"")("max-height",(a=i.defaultOptionMerge().maxHeight)!==null&&a!==void 0?a:"")("height",(u=i.defaultOptionMerge().height)!==null&&u!==void 0?u:""),f(4),b(i.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0})}}return n})(),Fi=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#t=j(Me),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#t;open(t,e){let i=this.#t.injector,o=this.#o(),Y=e||{},{data:s,closed:a}=Y,u=xe(Y,["data","closed"]);this.compRef&&this.#i(),this.insertedCompRef=_e(t,{environmentInjector:i}),this.compRef=_e(ni,{hostElement:o,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let h=this.insertedCompRef.instance?.data,v=this.insertedCompRef.instance?.closed;if(s){if(ae(h))this.insertedCompRef.setInput("data",s);else if(!ae(h))throw new Error("data is not an input signal on the passed component")}v instanceof re&&(this.closedFieldSub=v.subscribe((...Q)=>{a?.(...Q),this.#i()})),this.#t.attachView(this.insertedCompRef.hostView),this.#t.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",u),this.compRef.instance.closed.subscribe(()=>F());let E=this;function F(){v&&v instanceof re?v.emit(!1):a?.(void 0),E.#i()}return this.insertedCompRef.instance}#o(){let t=document.createElement("spk-dialog-ref");return t.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||this.#e.append(t),document.getElementById("spk-dialog-ref")}#i(){this.insertedCompRef&&(this.#t.detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(this.#t.detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())}ngOnDestroy(){this.#i()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Pi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-button-group"]],ngContentSelectors:V,decls:1,vars:0,template:function(e,i){e&1&&(D(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),oi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["","spk-button",""]],attrs:Je,ngContentSelectors:V,decls:1,vars:0,template:function(e,i){e&1&&(D(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Ai=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-card"]],ngContentSelectors:V,decls:1,vars:0,template:function(e,i){e&1&&(D(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),si=(()=>{class n{#e=j(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-checkbox"]],hostBindings:function(e,i){e&1&&O("click",function(){return i.onClick()})},ngContentSelectors:V,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(e,i){e&1&&(D(),r(0,"div",0)(1,"spk-icon",1),k(2,"check"),l(),r(3,"spk-icon",2),k(4,"minus"),l()(),p(5))},dependencies:[ke],encapsulation:2,changeDetection:0})}}return n})(),ri=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-chip"]],ngContentSelectors:V,decls:1,vars:0,template:function(e,i){e&1&&(D(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var ai=["scroll","auto"],li={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},Pe=(()=>{class n{constructor(){this.#e=j(Re),this.#t=4,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=m(!1),this.right=m(!1),this.markForCheck=m(null),this._above=S(this.above()),this._right=S(this.right()),this.disableOpenByClick=m(!1),this.isOpen=R(!1),this.options=m(),this.closed=N(),this.defaultOptionMerge=T(()=>q(q({},li),this.options())),this.triggerRef=$.required("triggerRef"),this.popoverRef=$.required("popoverRef"),this.id=S("--"+ye()),this.menuStyle=S(null),this.openAbort=null,this.openEffect=M(()=>{let t=this.popoverRef()?.nativeElement;if(this.isOpen()){this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController;let i={signal:this.openAbort?.signal};t?.showPopover(),document.addEventListener("keydown",o=>{o.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&o.preventDefault(),o.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},i),setTimeout(()=>{this.#o(this.popoverRef()?.nativeElement).addEventListener("scroll",()=>this.#i(),i),window.addEventListener("resize",()=>this.#i(),i),this.#i()})}else t.hidePopover(),this.openAbort?.abort(),this.closed.emit()}),this.markForCheckEffect=M(()=>{this.markForCheck()&&this.#e.markForCheck()})}#e;#t;toggleIsOpen(t){t.preventDefault(),t.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}eventClose(t){t.stopPropagation(),t.preventDefault(),this.isOpen.set(!1)}#o(t){let e=t.parentElement;for(;e;){if(ai.indexOf(window.getComputedStyle(e).overflowY)>-1&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}return document.documentElement}#i(){let t=this.triggerRef()?.nativeElement.getBoundingClientRect(),e=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=t.left,o=t.bottom,s=i,a=o+this.#t,u=s+e.width>window.innerWidth,h=a+e.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(h),this._right.set(u);else{if(s=i,a=o+this.#t,h){let E=t.top-e.height-this.#t;E<0||(a=E)}u&&(s=t.right-e.width,s<0&&(s=0));let v={left:s+"px",top:a+"px"};this.menuStyle.set(v)}}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-popover"]],viewQuery:function(e,i){e&1&&(U(i.triggerRef,Fe,5),U(i.popoverRef,Ze,5)),e&2&&z(2)},hostVars:4,hostBindings:function(e,i){e&2&&I("above",i._above())("right",i._right())},inputs:{above:[1,"above"],right:[1,"right"],markForCheck:[1,"markForCheck"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:tt,decls:10,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],["spk-button","",1,"outlined"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(e,i){if(e&1){let o=A();D(et),r(0,"div",2,0),O("click",function(a){return _(o),C(i.toggleIsOpen(a))}),r(2,"div",3),p(3),l(),r(4,"button",4),k(5,"Open popover"),l()(),r(6,"div",5,1)(8,"div",6),O("click",function(a){return _(o),C(i.isOpen()&&i.eventClose(a))}),l(),p(9,1),l()}e&2&&(W("anchor-name",i.id()),f(6),J(i.menuStyle()),W("position-anchor",i.id()))},dependencies:[oi],encapsulation:2,changeDetection:0})}}return n})();var Hi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-divider"]],ngContentSelectors:V,decls:1,vars:0,template:function(e,i){e&1&&(D(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Ae=(()=>{class n{#e=j(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}ngOnInit(){let t=typeof CSS<"u"&&CSS.supports("field-sizing","content"),e=this.#e.nativeElement.querySelector("textarea");if(!t&&e!==null){let s=function(){e.style.height="auto",e.style.height=e.scrollHeight+"px"},a=function(){window.setTimeout(s,0)};var i=s,o=a;e.addEventListener("change",s),e.addEventListener("cut",a),e.addEventListener("paste",a),e.addEventListener("drop",a),e.addEventListener("keydown",a),e.focus(),e.select(),s()}}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-form-field"]],hostBindings:function(e,i){e&1&&O("click",function(){return i.onClick()})},ngContentSelectors:ot,decls:16,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(e,i){e&1&&(D(nt),p(0),r(1,"div",0)(2,"div",1),p(3,1),p(4,2),l(),P(5,"div",2),p(6,3),p(7,4),p(8,5),P(9,"div",3),p(10,6),l(),r(11,"div",4)(12,"div",5),p(13,7),l(),r(14,"div",6),p(15,8),l()())},encapsulation:2,changeDetection:0})}}return n})();var Li=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-list"]],ngContentSelectors:V,decls:1,vars:0,template:function(e,i){e&1&&(D(),p(0))},encapsulation:2,changeDetection:0})}}return n})();function He(n,c){let t=c?.injector||(we(He),j(Oe)),{debounce:e=0,initialValue:i=void 0,transform:o=g=>g,compare:s=(g,x)=>g===x,forceType:a=void 0,returnPreviousValue:u=!0}=c||{},h=S(i),v=t.get(be),E=T(()=>{let g=n()?.nativeElement;if(g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement)return Le(g)}),F=!1,Y,Q=null;return M(()=>{let g=E();if(!g)return h.set(u&&Y?o(Y):void 0);i!==void 0&&g.value===""?h.set(i):g.value!==""&&De();let x=L=>{Q!==null&&clearTimeout(Q),Q=setTimeout(()=>{Q=null,De()},e)};g.addEventListener("input",x),g.addEventListener("inputValueChanged",x),v.onDestroy(()=>{g.removeEventListener("input",x),g.removeEventListener("inputValueChanged",x),Q!==null&&clearTimeout(Q)})},{injector:t}),M(()=>{let g=E();if(!g)return;let x=h()??"",L=x==null?"":String(x);g.value!==L&&(Y=L,g.value=L,g.dispatchEvent(new Event("input")))},{injector:t}),h;function De(){if(!F){F=!0;try{let g=E();if(!g)return;let x=g.value,L=a?je(x,a):o(x);Y=x,s(h(),L)||h.set(L)}finally{F=!1}}}function Le(g){return Object.defineProperty(g,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(g),"value").get.call(this)},set(x){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(g),"value").set.call(this,x);let Be=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:x}});return this.dispatchEvent(Be),x}}),g}function je(g,x){switch(x){case"string":return g.toString();case"number":let L=Number(g);return isNaN(L)?void 0:L;case"boolean":return g.toLowerCase()==="true"?!0:g.toLowerCase()==="false"?!1:void 0;default:return g}}}var ji=(()=>{class n{constructor(){this.above=m(!1),this.right=m(!1),this.keepClickedOptionActive=m(!1),this.isOpen=R(!1),this.closed=N(),this.searchable=m(!1),this.activeOptionIndex=S(-1),this.inputRef=$("input"),this.options=ce("option",{descendants:!0}),this.optionsEl=T(()=>Array.from(this.options()).map(t=>t.nativeElement).filter(t=>!t.disabled)),this.inputValue=He(this.inputRef),this.abortController=null,this.optionsEffect=M(()=>{if(!this.isOpen())return;this.abortController&&(this.abortController.abort(),this.abortController=null),this.abortController=new AbortController;let t=this.inputRef()?.nativeElement;t&&(queueMicrotask(()=>t.focus()),t.addEventListener("keydown",e=>{let i=this.optionsEl(),o=this.activeOptionIndex();e.key==="ArrowDown"?(e.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(o))):e.key==="ArrowUp"?(e.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(o))):e.key==="Enter"?(e.preventDefault(),o>-1&&(i[o].click(),queueMicrotask(()=>this.close("active")))):e.key==="Tab"&&(e.preventDefault(),this.close("closed"))},{signal:this.abortController.signal}))}),this.inputValueEffect=M(()=>{if(!this.searchable())return;let e=this.inputValue(),i=this.createWildcardRegex(e),o=this.optionsEl(),s=!1;for(let a=0;a<o.length;a++){let u=o[a];if(!u.textContent)continue;if(!e||e===""){u.classList.remove("hide-option");continue}!i.test(u.textContent.toLowerCase())||u.disabled?u.classList.add("hide-option"):(u.classList.remove("hide-option"),s||queueMicrotask(()=>this.activeOptionIndex.set(a)),s=!0)}}),this.activeOptionIndexEffect=M(()=>{let t=this.optionsEl(),e=this.activeOptionIndex();for(let i=0;i<t.length;i++)t[i].classList.remove("active");e>-1&&(t[e].scrollIntoView({block:"center"}),t[e].classList.add("active"))})}nextActiveIndex(t){let e=this.optionsEl();if(t===-1||t===e.length-1)return 0;let i=t+1;if(this.searchable()){if(e[i].disabled)return this.nextActiveIndex(i);if(e[i].classList.contains("hide-option"))return this.nextActiveIndex(i)}return i}prevActiveIndex(t){let e=this.optionsEl();if(t===0||t===-1)return e.length-1;let i=t-1;if(this.searchable()){if(e[i].disabled)return this.prevActiveIndex(i);if(e[i].classList.contains("hide-option"))return this.prevActiveIndex(i)}return i}close(t="closed",e){this.inputValue.set(""),(!this.keepClickedOptionActive()||t==="closed")&&this.#e(),this.isOpen.set(!1),this.closed.emit(t==="active")}#e(){this.activeOptionIndex.set(-1);let t=this.optionsEl();for(let e=0;e<t.length;e++)t[e].classList.remove("active")}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null)}createWildcardRegex(t){let e=(t??"").toLowerCase(),i="^";for(let o of e)i+=".*"+this.escapeRegexChar(o);return i+=".*$",new RegExp(i,"i")}escapeRegexChar(t){return t.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-menu"]],contentQueries:function(e,i,o){e&1&&ie(o,i.options,st,5),e&2&&z()},viewQuery:function(e,i){e&1&&U(i.inputRef,rt,5),e&2&&z()},inputs:{above:[1,"above"],right:[1,"right"],keepClickedOptionActive:[1,"keepClickedOptionActive"],isOpen:[1,"isOpen"],searchable:[1,"searchable"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:lt,decls:9,vars:10,consts:[["formFieldWrapper",""],["input",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","above","right","options"],["trigger","",3,"click"],[1,"small"],["type","text","placeholder","Search"],[1,"options",3,"click"]],template:function(e,i){if(e&1){let o=A();D(at),r(0,"spk-popover",2,0),me("isOpenChange",function(a){return _(o),fe(i.isOpen,a)||(i.isOpen=a),C(a)}),O("closed",function(){return _(o),C(i.close("fromPopover"))}),r(2,"div",3),O("click",function(){return _(o),C(i.isOpen.set(!0))}),p(3),l(),r(4,"spk-form-field",4),P(5,"input",5,1),l(),r(7,"div",6),O("click",function(){return _(o),C(i.close("active"))}),p(8,1),l()()}e&2&&(he("isOpen",i.isOpen),X("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",ve(9,it)),f(4),I("hidden",i.searchable()===!1),f(3),I("searching",i.searchable()&&i.inputValue()!==""))},dependencies:[Pe,Ae],encapsulation:2,changeDetection:0})}}return n})(),ci=(()=>{class n{constructor(){this.value=m(void 0)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(e,i){e&1&&P(0,"div",0),e&2&&W("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),Bi=(()=>{class n{#e=j(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-radio"]],hostBindings:function(e,i){e&1&&O("click",function(){return i.onClick()})},ngContentSelectors:V,decls:2,vars:0,consts:[[1,"radio"]],template:function(e,i){e&1&&(D(),P(0,"div",0),p(1))},encapsulation:2,changeDetection:0})}}return n})(),Wi=(()=>{class n{constructor(){this.#e=j(B),this.#t=null,this.unit=m(""),this.value=R(0),this.inputState=S({min:0,max:100}),this.inputEffect=M(()=>{let t=this.value();this.inputField&&t!==parseInt(this.inputField.value)&&(this.inputField.value=t+"")})}#e;#t;get inputField(){return this.#e.nativeElement.querySelector('input[type="range"]')??null}trackEvent(t){this.inputField?.readOnly&&(t.preventDefault(),t.stopPropagation())}ngOnInit(){if(this.inputField){this.inputState.set({max:parseInt(this.inputField.max??"")??100,min:parseInt(this.inputField.min??"")??0}),this.value.set(parseInt(this.inputField.value??"")??0),this.inputField.oninput=e=>{this.value.set(parseInt(this.inputField.value??"")??0)};let t=["min","max","value"];typeof MutationObserver<"u"&&(this.#t=new MutationObserver((e,i)=>{for(let o of e)o.type==="attributes"&&t.includes(o.attributeName??"")&&(this.inputState.set({max:parseInt(this.inputField.max??"")??100,min:parseInt(this.inputField.min??"")??0}),this.value.set(parseInt(this.inputField.value??"")??0))}),this.#t.observe(this.inputField,{attributes:!0,childList:!1,subtree:!1}))}else console.error("No input field found")}thumbWrapStyle(){return{left:`${this.value()/this.inputState().max*100}%`}}thumbStyle(){return{transform:`translateX(-${this.value()/this.inputState().max*100}%)`}}trackFilledStyle(){return{width:`${this.value()/this.inputState().max*100}%`}}ngOnDestroy(){this.#t&&this.#t.disconnect()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-range-slider"]],hostVars:2,hostBindings:function(e,i){e&2&&I("has-input",i.inputField)},inputs:{unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:pt,decls:15,vars:12,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(e,i){e&1&&(D(ct),r(0,"div",0),p(1),l(),r(2,"div",1)(3,"div",2),k(4),l(),r(5,"div",3),O("click",function(s){return i.trackEvent(s)}),p(6,1),r(7,"div",4),P(8,"div",5),l(),r(9,"div",6)(10,"div",7)(11,"div",8),k(12),l()()()(),r(13,"div",9),k(14),l()()),e&2&&(f(4),ne("",i.inputState().min,"",i.unit(),""),f(4),J(i.trackFilledStyle()),f(),J(i.thumbWrapStyle()),f(),J(i.thumbStyle()),f(2),ne("",i.value(),"",i.unit(),""),f(2),ne("",i.inputState().max,"",i.unit(),""))},encapsulation:2,changeDetection:0})}}return n})(),pi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-spinner"]],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0})}}return n})(),zi=(()=>{class n{constructor(){this.#e=j(B),this.value=m(),this.label=m(),this.asFreeText=m(!1),this.placeholder=m(),this.readonly=R(!1),this.disabled=R(!1),this.lazySearch=m(!1),this.inlineSearch=m(!1),this.asText=m(!1),this.isClearable=m(!0),this.selectMultiple=m(!1),this.optionTemplate=m(null),this.selectedOptionTemplate=m(null),this.placeholderTemplate=m(null),this.isOpen=R(!1),this.isLoading=R(!1),this.options=R([]),this.selectedOptions=R([]),this.cleared=N(),this.inlineTemplate=Te(le),this.optionsWrapRef=$.required("optionsWrap"),this.inputRefInput=S(null),this.#t=typeof MutationObserver<"u"&&new MutationObserver(t=>{for(var e of t)e&&(e.target.nodeName==="INPUT"||e.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new B(e.target)),this.#t.disconnect())}),this.inputValue=S(""),this.prevInputValue=S(null),this.focusedOptionIndex=S(-1),this._isClearable=T(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=T(()=>this.#e.nativeElement.classList.toString()),this.placeholderText=T(()=>{let t=this.placeholder(),e=this.inputRefEl();return t||e?.placeholder||null}),this.selectedOptionValues=T(()=>{let t=this.selectedOptions(),e=this.value();return e?t.map(i=>this.#n(i,e)):t}),this.filteredOptions=T(()=>{let t=this.options()||[],e=this.label(),i=this.value(),o=this.inlineSearch(),s=this.inputValue(),a=this.#r(this.inputValue());return t.length<=0?[]:!o||s===""?t:t.filter(u=>{let h=e?(this.#n(u,e)??"").toString().toLowerCase():(u??"").toString().toLowerCase(),v=((i?this.#n(u,i):u)??"").toString().toLowerCase(),E=a.test(h),F=a.test(v);return E||F})}),this.inputRefEl=T(()=>{let t=this.inputRefInput();if(t===null)return;let e=t?t.nativeElement:null;return e?(e.autocomplete="off",this.#s(e),e.addEventListener("focus",()=>{this.readonly()||this.open()}),this.hasSearch()&&e.addEventListener("input",i=>{let o=i.target.value,s=this.inputValue();o!==s&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(o),this.updateInputElValue())}),e.addEventListener("inputValueChanged",i=>{let o=i.detail.value,s=this.inputValue();if(o!==s){if(o===""){this.clear();return}this.setSelectedOptionsFromValue(o),this.setInputValueFromSelectedOptions(),this.#i()}}),e):(console.warn("<spk-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.openAbortController=null,this.isOpenEffect=M(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let e=this.inputRefEl();if(!e)return;e.addEventListener("keydown",i=>{if((i.key==="Escape"||i.key==="Tab")&&(i.preventDefault(),this.close()),(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex())),i.key==="ArrowDown"){i.preventDefault();let o=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(o>this.filteredOptions().length-1?0:o)}if(i.key==="ArrowUp"){i.preventDefault();let o=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(o<0?this.filteredOptions().length-1:o)}},{signal:this.openAbortController?.signal})}else{if(!this.inputRefEl())return;this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=M(()=>{let t=this.inputValue();this._inputValue=t}),this.inputRefElEffect=M(()=>{let t=this.inputRefEl();t&&t.value!==this._inputValue&&(this.disabled.set(t.disabled),this.setSelectedOptionsFromValue(t.value),this.setInputValueFromSelectedOptions())}),this.selectedLabels=T(()=>{let t=this.selectedOptions();return this.label()?t.map(i=>this.getLabel(i)).join(", "):t.join(", ")}),this.inputState=T(()=>(this.selectedOptions().length>0||this.asFreeText()&&this.inputValue().length>0)&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=T(()=>this.inlineSearch()||this.lazySearch()),this.#o=M(()=>{if(this.selectMultiple()&&this.hasSearch())return;let t=this.selectedOptions(),e=this.value(),i=t.map(o=>e?this.#n(o,e):o).join(",");this.inputValue.set(i)})}#e;#t;#o;ngOnInit(){this.setInitInput()}setInitInput(){let t=this.#e.nativeElement.querySelector("input");if(t){this.inputRefInput.set(new B(t));return}let e=this.#e.nativeElement.querySelector("textarea");if(e){this.inputRefInput.set(new B(e));return}typeof MutationObserver<"u"&&this.#t.observe(this.#e.nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(t){let e=this.options()||[],i=this.value(),o=this.selectMultiple(),s=t.toString().split(",");if(s.length===0){this.selectedOptions.set([]);return}let a=o?s:[s[0]],u=e.filter(h=>{let v=i?this.#n(h,i)?.toString():h?.toString();return v&&a.includes(v)});this.selectedOptions.set(o?u:[u[0]])}setInputValueFromSelectedOptions(){let t=this.selectedOptions(),e=this.value();if(t.length===0){this.inputValue.set(""),this.updateInputElValue();return}let i=t.map(o=>e?this.#n(o,e):o).join(",");this.inputValue.set(i),this.updateInputElValue()}getLabel(t){let e=this.label();return e?this.#n(t,e):t}toggleOptionByIndex(t,e){let i=this.filteredOptions()[t];if(this.asFreeText()&&t===-1||!i){this.close();return}e&&e.stopPropagation();let o=this.selectMultiple(),s=this._isClearable(),a=this.value(),u=this.selectedOptionValues(),h=a?this.#n(i,a):i;this.prevInputValue.set(null),this.selectedOptions.update(v=>{let E=u.indexOf(h);if(E>-1){let F=[...v.slice(0,E),...v.slice(E+1)];return s||F.length>0?F:v}else return this.focusedOptionIndex.set(t),o?[...v,i]:[i]}),o?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromSelectedOptions(),o&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(t,e){t.stopPropagation(),this.selectedOptions.update(i=>[...i.slice(0,e),...i.slice(e+1)]),this.setInputValueFromSelectedOptions()}isSelected(t){let e=this.value(),i=this.filteredOptions()[t],o=e?this.#n(i,e):i;return this.selectedOptionValues().indexOf(o)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()&&(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()),this.selectMultiple()||this.#i())}#i(){let t=this.selectedOptionValues()[0],e=this.value();if(t){let i=this.filteredOptions().findIndex(o=>e?this.#n(o,e)===t:o===t);this.focusedOptionIndex.set(i)}else this.focusedOptionIndex.set(-1)}close(){this.isOpen.set(!1);let t=this.prevInputValue();if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&t&&(this.inputValue.set(t),this.setInputValueFromSelectedOptions()),this.selectMultiple()&&this.setInputValueFromSelectedOptions()}clear(t){t?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let t=this.inputRefEl(),e=this.inputValue();t&&(t.value=e,t.dispatchEvent(new Event("input")))}#n(t,e){return e.split(".").reduce((i,o)=>i?.[o],t)}#s(t){Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").get.call(this)},set(e){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").set.call(this,e);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}});return this.dispatchEvent(o),e}})}#r(t){let e=(t??"").toLowerCase(),i="^";for(let o of e)i+=".*"+this.#a(o);return i+=".*$",new RegExp(i,"i")}#a(t){return t.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-select"]],contentQueries:function(e,i,o){e&1&&ie(o,i.inlineTemplate,le,5),e&2&&z()},viewQuery:function(e,i){e&1&&U(i.optionsWrapRef,dt,5),e&2&&z()},hostVars:2,hostBindings:function(e,i){e&2&&I("multiple",i.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],asFreeText:[1,"asFreeText"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],disabled:[1,"disabled"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",disabled:"disabledChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared"},ngContentSelectors:ht,decls:32,vars:20,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],[1,"sparkle-options"],[1,"option",3,"selected","focused"],[1,"small",3,"class"],[1,"small"],[3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click"],[3,"class","active"]],template:function(e,i){if(e&1){let o=A();D(ut),ge(0)(1)(2)(3)(4)(5)(6)(7)(8)(9),r(10,"spk-popover",2,0),me("isOpenChange",function(a){return _(o),fe(i.isOpen,a)||(i.isOpen=a),C(a)}),O("closed",function(){return _(o),C(i.close())}),r(12,"spk-form-field",3),O("click",function(){return _(o),C(i.open())}),p(13,0,["ngProjectAs","label",5,["label"]]),r(14,"div",4)(15,"div",5),w(16,mt,1,1)(17,bt,2,0)(18,It,2,1),p(19,1),p(20,2),l()(),w(21,Rt,2,0,"spk-icon",6)(22,Vt,1,0,"spk-spinner",7)(23,Ft,2,0,"spk-icon",6)(24,Pt,2,0,"spk-icon",6)(25,At,2,0,"spk-icon",6)(26,Ht,2,0,"spk-icon",6)(27,Lt,2,0,"spk-icon",6),l(),r(28,"div",8,1),de(30,qt,4,6,"li",9,pe),l()()}if(e&2){K(i.placeholderTemplate());let o=i.optionTemplate(),s=i.selectedOptionTemplate(),a=i.inlineTemplate();f(4);let u=K(i.selectedOptions()),h=i.inputState();f(2),K(s||o||a),f(),K(o||a),f();let v=K(!i.asText()&&i.selectMultiple());f();let E=K(i.isOpen()&&i.hasSearch()&&(v||i.inputValue().length>0));f(),he("isOpen",i.isOpen),X("disableOpenByClick",!0)("options",ve(19,ft)),f(2),I("autosize",i.selectMultiple())("readonly",i.readonly()||i.disabled()),f(2),I("show-search-text",E),f(),I("is-selected",h==="selected"),f(),b(i.asFreeText()&&i.inputValue().length>0&&!i.isOpen()?16:u.length>0?17:E?-1:18),f(5),b(h==="closed"?21:h==="loading"?22:h==="open-searching"?23:h==="searching"?24:h==="selected"&&i._isClearable()?25:h==="selected"&&!i._isClearable()?26:27),f(9),ue(i.filteredOptions())}},dependencies:[Ve,Pe,Ae,ke,si,pi,ri],encapsulation:2,changeDetection:0})}}return n})(),qi=(()=>{class n{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=m(!1),this.isOpen=R(!1),this.type=m(""),this.dragImageElement=$.required("dragImageElement"),this.dragIsEnding=S(!1),this.dragIsOnScreen=S(!0),this.isDragging=S(!1),this.dragPositionX=S(0),this.dragActualPositionX=T(()=>{let t=this.dragPositionX(),e=.32;return t>this.openWidthTreshold?this.openWidthTreshold+(t-this.openWidthTreshold)*e:t}),this.draggingStyle=T(()=>this.type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=M(()=>{this.isDragging()&&document.body.classList.add("dragging")})}drop(t){t.stopPropagation(),this.#e(t.clientX)}#e(t){this.isDragging.set(!1),t<=0?this.isOpen.set(!1):t>this.openWidthTreshold?this.isOpen.set(!0):t<this.openWidthTreshold&&(!this.isOpen()&&t<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(t){(t.clientX<0||!this.dragIsOnScreen())&&this.#e(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(t){t.preventDefault(),this.#t(t)}dragStart(t){t.stopPropagation(),this.isDragging.set(!0),this.#t(t)}#t(t){t.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(t){t.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(t.clientX)}),this.#t(t)}touchStart(t){t.stopPropagation(),this.isDragging.set(!0)}touchMove(t){t.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(t.touches[0].clientX)})}touchEnd(t){t.stopPropagation(),this.#e(t.changedTouches[0].clientX)}touchCancel(t){t.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-sidenav"]],viewQuery:function(e,i){e&1&&U(i.dragImageElement,$t,5),e&2&&z()},hostVars:10,hostBindings:function(e,i){e&2&&I("open",i.isOpen())("closed",!i.isOpen())("overlay",i.type()==="overlay")("simple",i.type()==="simple")("is-dragging",i.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"],type:[1,"type"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:Qt,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(e,i){e&1&&(D(Ut),w(0,Nt,2,0,"div",1)(1,Yt,1,0,"div",2),r(2,"div",3),p(3),l(),r(4,"div",4),w(5,Xt,1,0,"div",5),r(6,"div",6),p(7,1),l(),r(8,"main"),p(9,2),l()()),e&2&&(b(i.type()==="overlay"?0:-1),f(),b(i.type()==="overlay"&&i.isDragging()?1:-1),f(3),W("transform",i.draggingStyle()),f(),b(i.type()==="overlay"&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})();var $i=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-stepper"]],ngContentSelectors:V,decls:1,vars:0,template:function(e,i){e&1&&(D(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var Ui=(()=>{class n{constructor(){this.loading=m(!1),this.data=m([]),this.dataChange=N(),this.sortByColumn=R(null),this.columns=ce("spkHeader",{descendants:!0}),this.resizing=S(!1),this.sizeTrigger=S(!0),this.#e=null,this.#t=S(!1),this.columnSizes=T(()=>(this.sizeTrigger(),this.columns().reduce((t,e,i)=>{let o=e.nativeElement,s=i===this.columns().length-1;return o.dataset.size?`${t} ${o.dataset.size}`:s?`${t} max-content`:`${t} 1fr`},""))),this.e=M(()=>{let t=this.sortByColumn();if(t===null)return this.#t()||(this.#e=this.data(),this.#t.set(!0)),this.dataChange.emit(JSON.parse(JSON.stringify(this.#e)));let e=t.startsWith("-")?t.slice(1):t,i=t.startsWith("-"),o=this.data().sort((s,a)=>{let u=s[e],h=a[e],v=0;return typeof u=="number"&&typeof h=="number"&&(v=u-h),u instanceof Date&&h instanceof Date&&(v=u.getTime()-h.getTime()),typeof u=="string"&&typeof h=="string"&&(v=u.localeCompare(h,void 0,{sensitivity:"base"})),i?-v:v});this.dataChange.emit(o)})}#e;#t;updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}toggleSort(t){let e=this.sortByColumn(),i=e===t?`-${t}`:e===`-${t}`?null:t;this.sortByColumn.set(i)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-table"]],contentQueries:function(e,i,o){e&1&&ie(o,i.columns,Gt,5),e&2&&z()},hostVars:4,hostBindings:function(e,i){e&2&&(W("grid-template-columns",i.columnSizes()),I("resizing",i.resizing()))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:Jt,decls:7,vars:2,consts:[["thead",""],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(e,i){e&1&&(D(Kt),r(0,"thead",null,0),p(2),w(3,Zt,1,0,"spk-progress-bar",1),l(),r(4,"tbody"),p(5,1),l(),w(6,ei,2,0,"div",2)),e&2&&(f(3),b(i.loading()?3:-1),f(3),b(i.loading()?-1:6))},dependencies:[ci],encapsulation:2,changeDetection:0})}}return n})(),Qi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-tabs"]],ngContentSelectors:V,decls:1,vars:0,template:function(e,i){e&1&&(D(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var Ni=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-toggle"]],ngContentSelectors:V,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(e,i){e&1&&(D(),r(0,"div",0),P(1,"div",1),l(),p(2))},encapsulation:2,changeDetection:0})}}return n})(),Yi=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.disabled=m(!1),this.above=m(!1),this.right=m(!1),this._above=S(this.above()),this._right=S(this.right()),this.message=m.required(),this.isOpen=R(!1),this.closed=N(),this.triggerRef=$.required("triggerRef"),this.tooltipRef=$.required("tooltipRef"),this.id=S("--"+ye()),this.menuStyle=S(null),this.isCalculatingPosition=T(()=>{let t=this.tooltipRef()?.nativeElement;return this.isOpen()?(t?.showPopover(),!0):(t.hidePopover(),this.abortController?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=M(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let e=this.abortController.signal;this.calculateMenuPosition(),this.#t(this.tooltipRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:e}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:e})}),this.scrollableStyles=["scroll","auto"]}#e;#t(t){let e=t.parentElement;for(;e;){if(this.scrollableStyles.indexOf(window.getComputedStyle(e).overflowY)>-1&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}return document.documentElement}eventClose(t){t.stopPropagation(),t.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let t=this.triggerRef()?.nativeElement.getBoundingClientRect(),e=this.tooltipRef()?.nativeElement.getBoundingClientRect(),i=t.left,o=t.bottom,s=i,a=o+this.#e,u=s+e.width>window.innerWidth,h=a+e.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(h),this._right.set(u);else{if(this.above()){let v=t.top-e.height-this.#e;v>=0&&(a=v)}else h&&(a=t.top-e.height-this.#e);if(this.right()){let v=t.right-e.width;v>=0&&(s=v)}else u&&(a=h?t.top+t.height-e.height:t.top,s=t.left-e.width-this.#e);this.menuStyle.set({left:s+"px",top:a+"px"})}}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-tooltip"]],viewQuery:function(e,i){e&1&&(U(i.triggerRef,Fe,5),U(i.tooltipRef,ti,5)),e&2&&z(2)},hostVars:6,hostBindings:function(e,i){e&2&&I("above",i._above())("right",i._right())("disabled",i.disabled())},inputs:{disabled:[1,"disabled"],above:[1,"above"],right:[1,"right"],message:[1,"message"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:V,decls:6,vars:7,consts:[["triggerRef",""],["tooltipRef",""],[1,"trigger",3,"mouseover","mouseout"],["popover","",1,"tooltip"]],template:function(e,i){if(e&1){let o=A();D(),r(0,"div",2,0),O("mouseover",function(){return _(o),C(i.isOpen.set(!0))})("mouseout",function(){return _(o),C(i.isOpen.set(!1))}),p(2),l(),r(3,"div",3,1),k(5),l()}e&2&&(W("anchor-name",i.id()),f(3),J(i.menuStyle()),W("position-anchor",i.id()),f(2),G(" ",i.message()," "))},encapsulation:2,changeDetection:0})}}return n})();var Xi=(()=>{class n{constructor(){this.filesOver=S(!1),this.filesDropped=N()}onDragOver(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!0)}onDragLeave(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!1)}ondrop(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!1);let e=t.dataTransfer?.files;e&&e.length>0&&this.filesDropped.emit(e)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275dir=Ee({type:n,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(e,i){e&1&&O("dragover",function(s){return i.onDragOver(s)})("dragleave",function(s){return i.onDragLeave(s)})("drop",function(s){return i.ondrop(s)}),e&2&&I("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();export{ke as a,Ri as b,Vi as c,ni as d,Fi as e,Pi as f,oi as g,Ai as h,si as i,ri as j,Hi as k,Ae as l,Li as m,ji as n,ci as o,Bi as p,Wi as q,zi as r,qi as s,$i as t,Ui as u,Qi as v,Ni as w,Yi as x,Xi as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-DPPV7DVK.js";import"./chunk-UPW4CQ72.js";import"./chunk-MMNUKDWS.js";import"./chunk-ODIN2IGP.js";import"./chunk-KDCTRSPO.js";import"./chunk-5OX72VKG.js";import"./chunk-UIOTKB6J.js";import"./chunk-N7DO2BHU.js";import"./chunk-4RXMJUN5.js";import"./chunk-ZI4ZJIB3.js";import"./chunk-W4YAOQRI.js";import"./chunk-WYTHNCNI.js";import"./chunk-ZSSQBIRK.js";import"./chunk-C6Q5SG76.js";export{a as createRestoreOptionsForm,b as default};
|