@duplicati/ngclient 0.0.83 → 0.0.85
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-2M52SFS6.js +7 -0
- package/chunk-2VH4NDQH.js +1 -0
- package/chunk-2WZR3NHU.js +6 -0
- package/{chunk-QD57YWCQ.js → chunk-4A4CWPH7.js} +1 -1
- package/chunk-4WK5KLP3.js +1 -0
- package/chunk-6RMLOIRD.js +1 -0
- package/{chunk-5G5KVDTS.js → chunk-7G6LF4RE.js} +1 -1
- package/{chunk-DNB4ABNJ.js → chunk-7IPKE42T.js} +1 -1
- package/chunk-7IRVNC4S.js +1 -0
- package/{chunk-6A6LDFVN.js → chunk-7LP2EQ7M.js} +1 -1
- package/{chunk-7AU6BKAH.js → chunk-7LRQSKYZ.js} +1 -1
- package/{chunk-TIBSEND5.js → chunk-7QNL2MJX.js} +1 -1
- package/chunk-AO6V5EDZ.js +1 -0
- package/{chunk-UKAYBL4H.js → chunk-AXHB6A4N.js} +1 -1
- package/chunk-AYWJL6PH.js +1 -0
- package/{chunk-CSMWKX44.js → chunk-C5EHOW7U.js} +1 -1
- package/chunk-CI7PYMKD.js +1 -0
- package/{chunk-VIQMN6MJ.js → chunk-DALX7AMG.js} +1 -1
- package/{chunk-YTBB644O.js → chunk-DNDOALN6.js} +1 -1
- package/chunk-DTCM7OB2.js +1 -0
- package/{chunk-NE337TA6.js → chunk-DW725235.js} +1 -1
- package/chunk-FMSANFAF.js +1 -0
- package/chunk-FQPMHKLD.js +1 -0
- package/chunk-FXXGCONI.js +1 -0
- package/{chunk-KEKOXSB2.js → chunk-G3KME6QI.js} +1 -1
- package/chunk-G56SHWBZ.js +1 -0
- package/{chunk-EJVKADW2.js → chunk-IYQIIJKE.js} +1 -1
- package/{chunk-IAKOIFIN.js → chunk-IZYAOMPF.js} +1 -1
- package/{chunk-BDT56US4.js → chunk-JGOWJDLZ.js} +1 -1
- package/{chunk-7GWCXQET.js → chunk-KIB4MYBL.js} +1 -1
- package/{chunk-7KVBF3B3.js → chunk-L5D4JLN3.js} +1 -1
- package/chunk-LJ3ULEOG.js +1 -0
- package/chunk-MADB4EX7.js +1 -0
- package/{chunk-MKHNYYLL.js → chunk-MCLDJCPW.js} +1 -1
- package/{chunk-PFD5SPQI.js → chunk-MNR2YI5Q.js} +1 -1
- package/{chunk-WJOMCF4H.js → chunk-NNUHZ2L7.js} +1 -1
- package/chunk-OKERRNQC.js +6 -0
- package/{chunk-EWNWUTPO.js → chunk-OQ3EADZK.js} +1 -1
- package/{chunk-APZSWRAC.js → chunk-P6HOXQHE.js} +1 -1
- package/{chunk-O4IO27RV.js → chunk-PHQM25ND.js} +1 -1
- package/{chunk-UVM5AF3P.js → chunk-PNJEVGID.js} +1 -1
- package/{chunk-6FEY72H5.js → chunk-PPRHD3ZV.js} +1 -1
- package/chunk-R2HH6TYJ.js +1 -0
- package/{chunk-2CCKM7DM.js → chunk-RGSJ6UVN.js} +1 -1
- package/{chunk-FUZ2WCNJ.js → chunk-RTVM3BJK.js} +1 -1
- package/chunk-SWGKS3QC.js +1 -0
- package/chunk-TO5QMMUQ.js +1 -0
- package/chunk-UIC2LGAH.js +1 -0
- package/{chunk-DFGJKS5P.js → chunk-UXQIJ2H5.js} +1 -1
- package/chunk-W4MEGIZH.js +1 -0
- package/chunk-WLQUMVWA.js +1 -0
- package/chunk-WQDSSB2V.js +3 -0
- package/{chunk-OVUQHKG5.js → chunk-WWJFELTU.js} +1 -1
- package/chunk-X6SCWL5V.js +1 -0
- package/{chunk-YF6FW4JS.js → chunk-XB5GDNN5.js} +1 -1
- package/{chunk-U27FSIPV.js → chunk-XFS2LSEM.js} +1 -1
- package/{chunk-MWZZ2BGA.js → chunk-XKAASYKO.js} +1 -1
- package/{chunk-2ICYPGI3.js → chunk-Y2422GIA.js} +1 -1
- package/{chunk-U5XRPZBE.js → chunk-Y5WADXF5.js} +1 -1
- package/{chunk-H2JFCXJJ.js → chunk-YO6IQOER.js} +1 -1
- package/{chunk-6PGJBRJV.js → chunk-YOP6HOXH.js} +1 -1
- package/chunk-ZLMSSTXT.js +1 -0
- package/chunk-ZNTSJUHI.js +1 -0
- package/index.html +2 -2
- package/main-JZ3UOPVL.js +1 -0
- package/package.json +1 -1
- package/styles-HDO6WYV2.css +1 -0
- package/chunk-2AXD35RA.js +0 -1
- package/chunk-3IMBZVOU.js +0 -1
- package/chunk-53YXMY4O.js +0 -1
- package/chunk-BNJ6YIRT.js +0 -6
- package/chunk-CNKMCZR3.js +0 -1
- package/chunk-DHMWOZZD.js +0 -1
- package/chunk-EPS56WMH.js +0 -1
- package/chunk-GGDGKIVD.js +0 -1
- package/chunk-I52AX5MH.js +0 -1
- package/chunk-I7CCITLM.js +0 -7
- package/chunk-IBBJHMWR.js +0 -1
- package/chunk-INATF4ZS.js +0 -1
- package/chunk-JZVJHJKF.js +0 -3
- package/chunk-KSYEGP4X.js +0 -1
- package/chunk-MR65TJSP.js +0 -1
- package/chunk-NC3TCAYJ.js +0 -1
- package/chunk-NGJEATCE.js +0 -1
- package/chunk-PHK42XHX.js +0 -1
- package/chunk-PLMZCRFV.js +0 -1
- package/chunk-TODNKYG6.js +0 -1
- package/chunk-UFBCQOH4.js +0 -1
- package/chunk-URCWYHPG.js +0 -1
- package/chunk-UUHR4SZC.js +0 -1
- package/chunk-UVF6BCW2.js +0 -1
- package/chunk-VWJ5QJXJ.js +0 -1
- package/chunk-WXWYY4O2.js +0 -1
- package/chunk-XDOTOR6Y.js +0 -6
- package/main-4O3FFDTG.js +0 -1
- package/styles-LPOGBXRK.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h}from"./chunk-
|
|
1
|
+
import{c as h}from"./chunk-MADB4EX7.js";import"./chunk-PPRHD3ZV.js";import"./chunk-LJ3ULEOG.js";import"./chunk-C5EHOW7U.js";import{g as M}from"./chunk-UIC2LGAH.js";import"./chunk-MCLDJCPW.js";import"./chunk-7IRVNC4S.js";import{Bb as t,Cb as i,Db as g,Pb as l,Ra as u,Vb as C,Wb as c,Y as m,eb as s,gc as O,jb as _,xb as f}from"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";var v=["*",[["","footer",""]]],T=["*","[footer]"],r=class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=s({type:n,selectors:[["app-custom-card"]],ngContentSelectors:T,decls:11,vars:0,consts:[[1,"card"],["src","/assets/noise/auth-noise.svg",1,"noise"],[1,"header-title"],["src","/assets/duplicati/duplicati.svg","alt",""],[1,"bg"]],template:function(e,a){e&1&&(C(v),t(0,"div",0),g(1,"img",1),t(2,"header")(3,"div",2),g(4,"img",3),O(5," Duplicati "),i()(),t(6,"main"),c(7),t(8,"footer"),c(9,1),i()()(),g(10,"div",4))},styles:['[_nghost-%COMP%]{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center;background-color:var(--base-level-20)}body.dark [_nghost-%COMP%] .card[_ngcontent-%COMP%]:before{background:radial-gradient(rgba(var(--primary-rgb-900),1),#0000 60%)}.card[_ngcontent-%COMP%]{max-width:480px;width:100%;position:relative;z-index:100;background-color:var(--base-level-10);border-radius:var(--shape-5);box-shadow:var(--box-shadow-40);border:1px solid var(--base-level-30);overflow:hidden}.card[_ngcontent-%COMP%]:before{content:"";position:absolute;height:480px;transform:translateY(-285px);left:0;right:0;z-index:-2;background:radial-gradient(rgba(var(--primary-rgb-100),1),#0000 60%)}.card[_ngcontent-%COMP%] img.noise[_ngcontent-%COMP%]{position:absolute;height:480px;width:100%;transform:translateY(-285px);left:0;right:0;z-index:-1;mask-image:radial-gradient(#000,#0000 60%)}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem 2rem 0;gap:12px;position:relative;z-index:10}.header-title[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;gap:10px}.header-title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:28px;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}main[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:2rem;gap:2.5rem;position:relative;z-index:10}main[_ngcontent-%COMP%] footer[_ngcontent-%COMP%]{font:var(--paragraph-40);color:var(--base-level-60R);text-align:center;text-wrap:balance}.bg[_ngcontent-%COMP%]{position:fixed;inset:0;width:100vw;height:100vh;background-image:url(/assets/backgrounds/base-bg.svg);background-size:cover;background-position:center;background-repeat:no-repeat}body.dark[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]{opacity:1}footer[_ngcontent-%COMP%]:empty{display:none}'],changeDetection:0})};function x(n,o){n&1&&(t(0,"h3"),l(1,0),i())}function y(n,o){n&1&&(t(0,"h3"),l(1,1),i(),t(2,"button",3),l(3,2),i())}var d=class n{#e=m(h);isLoggingOut=this.#e.isLoggingOut;ngOnInit(){this.#e.logout()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=s({type:n,selectors:[["app-logout"]],decls:3,vars:1,consts:()=>{let o;o=$localize`Logging out...`;let e;e=$localize`You have successfully logged out your being redirected to login page.`;let a;return a=$localize`Go to login page`,[o,e,a,["spk-button","","routerLink","/",1,"raised","primary"]]},template:function(e,a){e&1&&(t(0,"app-custom-card"),_(1,x,2,0,"h3")(2,y,4,0),i()),e&2&&(u(),f(a.isLoggingOut()?1:2))},dependencies:[r,M],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as m,
|
|
1
|
+
import{C as m,Lc as k,Mc as f,N as w,Nc as x,Oc as j,P as l,Y as d,ba as i,g as p,i as g,ia as h,ja as a,ua as b}from"./chunk-2M52SFS6.js";import{a as v,b as y}from"./chunk-C6Q5SG76.js";function D(n,e){!e?.injector&&i(D);let t=e?.injector??d(h),o=new g(1),u=x(()=>{let r;try{r=n()}catch(c){f(()=>o.error(c));return}f(()=>o.next(r))},{injector:t,manualCleanup:!0});return t.get(a).onDestroy(()=>{u.destroy(),o.complete()}),o.asObservable()}function S(n,e){let t=!e?.manualCleanup;t&&!e?.injector&&i(S);let o=t?e?.injector?.get(a)??d(a):null,u=O(e?.equal),r;e?.requireSync?r=b({kind:0},{equal:u}):r=b({kind:1,value:e?.initialValue},{equal:u});let c=n.subscribe({next:s=>r.set({kind:1,value:s}),error:s=>{if(e?.rejectErrors)throw s;r.set({kind:2,error:s})}});if(e?.requireSync&&r().kind===0)throw new l(601,!1);return o?.onDestroy(c.unsubscribe.bind(c)),k(()=>{let s=r();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new l(601,!1)}},{equal:e?.equal})}function O(n=Object.is){return(e,t)=>e.kind===1&&t.kind===1&&n(e.value,t.value)}function R(n){return n?.injector||i(R),j(y(v({},n),{loader:e=>{let t=new p;return e.abortSignal.addEventListener("abort",()=>t.next()),new Promise((o,u)=>{n.loader(e).pipe(m(1),w(t)).subscribe({next:o,error:u,complete:()=>u(new Error("Resource completed before producing a value"))})})}}))}export{D as a,S as b,R as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as D,c}from"./chunk-MKHNYYLL.js";import{M as g,S as d,X as l,l as I,m as B,p as R,v as O,y as k}from"./chunk-I7CCITLM.js";import{a as y,b as T}from"./chunk-C6Q5SG76.js";var v=class{_fns;constructor(){this._fns=[]}eject(e){let i=this._fns.indexOf(e);i!==-1&&(this._fns=[...this._fns.slice(0,i),...this._fns.slice(i+1)])}use(e){this._fns=[...this._fns,e]}},t={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"1",WITH_CREDENTIALS:!1,interceptors:{response:new v}};var A=class extends Error{url;status;statusText;body;request;constructor(e,i,a){super(a),this.name="ApiError",this.url=i.url,this.status=i.status,this.statusText=i.statusText,this.body=i.body,this.request=e}};var h=p=>typeof p=="string",P=p=>h(p)&&p!=="",f=p=>p instanceof Blob,G=p=>p instanceof FormData,j=p=>{try{return btoa(p)}catch{return Buffer.from(p).toString("base64")}},F=p=>{let e=[],i=(r,n)=>{e.push(`${encodeURIComponent(r)}=${encodeURIComponent(String(n))}`)},a=(r,n)=>{n!=null&&(n instanceof Date?i(r,n.toISOString()):Array.isArray(n)?n.forEach(o=>a(r,o)):typeof n=="object"?Object.entries(n).forEach(([o,u])=>a(`${r}[${o}]`,u)):i(r,n))};return Object.entries(p).forEach(([r,n])=>a(r,n)),e.length?`?${e.join("&")}`:""},L=(p,e)=>{let i=p.ENCODE_PATH||encodeURI,a=e.url.replace("{api-version}",p.VERSION).replace(/{(.*?)}/g,(n,o)=>e.path?.hasOwnProperty(o)?i(String(e.path[o])):n),r=p.BASE+a;return e.query?r+F(e.query):r},N=p=>{if(p.formData){let e=new FormData,i=(a,r)=>{h(r)||f(r)?e.append(a,r):e.append(a,JSON.stringify(r))};return Object.entries(p.formData).filter(([,a])=>a!=null).forEach(([a,r])=>{Array.isArray(r)?r.forEach(n=>i(a,n)):i(a,r)}),e}},V=async(p,e)=>typeof e=="function"?e(p):e,U=(p,e)=>O({token:V(e,p.TOKEN),username:V(e,p.USERNAME),password:V(e,p.PASSWORD),additionalHeaders:V(e,p.HEADERS)}).pipe(R(({token:i,username:a,password:r,additionalHeaders:n})=>{let o=Object.entries(y(y({Accept:"application/json"},n),e.headers)).filter(([,u])=>u!=null).reduce((u,[m,b])=>T(y({},u),{[m]:String(b)}),{});if(P(i)&&(o.Authorization=`Bearer ${i}`),P(a)&&P(r)){let u=j(`${a}:${r}`);o.Authorization=`Basic ${u}`}return e.body!==void 0&&(e.mediaType?o["Content-Type"]=e.mediaType:f(e.body)?o["Content-Type"]=e.body.type||"application/octet-stream":h(e.body)?o["Content-Type"]="text/plain":G(e.body)||(o["Content-Type"]="application/json")),new D(o)})),M=p=>{if(p.body)return p.mediaType?.includes("application/json")||p.mediaType?.includes("+json")?JSON.stringify(p.body):h(p.body)||f(p.body)||G(p.body)?p.body:JSON.stringify(p.body)},K=(p,e,i,a,r,n,o)=>i.request(e.method,a,{headers:o,body:r??n,withCredentials:p.WITH_CREDENTIALS,observe:"response"}),z=(p,e)=>{if(e){let i=p.headers.get(e);if(h(i))return i}},W=p=>{if(p.status!==204&&p.body!==null)return p.body},$=(p,e)=>{let a=y({400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},p.errors)[e.status];if(a)throw new A(p,e,a);if(!e.ok){let r=e.status??"unknown",n=e.statusText??"unknown",o=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new A(p,e,`Generic Error: status: ${r}; status text: ${n}; body: ${o}`)}},s=(p,e,i)=>{let a=L(p,i),r=N(i),n=M(i);return U(p,i).pipe(g(o=>K(p,i,e,a,n,r,o)),g(async o=>{for(let w of p.interceptors.response._fns)o=await w(o);let u=W(o),m=z(o,i.responseHeader),b=u;return i.responseTransformer&&o.ok&&(b=await i.responseTransformer(u)),{url:a,ok:o.ok,status:o.status,statusText:o.statusText,body:m??b}}),k(o=>o.status?I({url:a,ok:o.ok,status:o.status,statusText:o.statusText,body:o.error??o.statusText}):B(()=>o)),R(o=>($(i,o),o.body)),k(o=>B(()=>o)))};var S=class p{constructor(e){this.http=e}getApiV1Commandline(){return s(t,this.http,{method:"GET",url:"/api/v1/commandline"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},E=class p{constructor(e){this.http=e}postApiV1Commandline(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline",body:e.requestBody,mediaType:"application/json"})}getApiV1Acknowledgements(){return s(t,this.http,{method:"GET",url:"/api/v1/acknowledgements"})}postApiV1AuthRefresh(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh"})}postApiV1AuthSignin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/signin",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthLogin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/login",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuesignintoken(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuesignintoken",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthRefreshLogout(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh/logout"})}postApiV1AuthIssuetokenByOperation(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuetoken/{operation}",path:{operation:e.operation}})}postApiV1AuthIssueForeverToken(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issue-forever-token"})}getApiV1Backupdefaults(){return s(t,this.http,{method:"GET",url:"/api/v1/backupdefaults"})}getApiV1Backups(){return s(t,this.http,{method:"GET",url:"/api/v1/backups"})}postApiV1Backups(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups",query:{temporary:e.temporary,existingdb:e.existingdb},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupsImport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups/import",body:e.requestBody,mediaType:"application/json"})}getApiV1BugreportByReportid(e){return s(t,this.http,{method:"GET",url:"/api/v1/bugreport/{reportid}",path:{reportid:e.reportid},query:{token:e.token}})}getApiV1Changelog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/changelog",query:{"from-update":e.fromUpdate}})}getApiV1CommandlineByRunid(e){return s(t,this.http,{method:"GET",url:"/api/v1/commandline/{runid}",path:{runid:e.runid},query:{offset:e.offset,pagesize:e.pagesize}})}postApiV1CommandlineByRunidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline/{runid}/abort",path:{runid:e.runid}})}postApiV1Filesystem(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem",query:{onlyFolders:e.onlyFolders,showHidden:e.showHidden},body:e.requestBody,mediaType:"application/json"})}postApiV1FilesystemValidate(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem/validate",body:e.requestBody,mediaType:"application/json"})}getApiV1Hyperv(){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv"})}getApiV1HypervByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv/{key}",path:{key:e.key}})}getApiV1Licenses(){return s(t,this.http,{method:"GET",url:"/api/v1/licenses"})}getApiV1LogdataPoll(e){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/poll",query:{level:e.level,id:e.id,offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataLog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/log",query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1Mssql(){return s(t,this.http,{method:"GET",url:"/api/v1/mssql"})}getApiV1MssqlByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/mssql/{key}",path:{key:e.key}})}getApiV1NotificationById(e){return s(t,this.http,{method:"GET",url:"/api/v1/notification/{id}",path:{id:e.id}})}deleteApiV1NotificationById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/notification/{id}",path:{id:e.id}})}getApiV1Notifications(){return s(t,this.http,{method:"GET",url:"/api/v1/notifications"})}getApiV1RemotecontrolStatus(){return s(t,this.http,{method:"GET",url:"/api/v1/remotecontrol/status"})}postApiV1RemotecontrolEnable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/enable"})}postApiV1RemotecontrolDisable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/disable"})}deleteApiV1RemotecontrolRegistration(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/registration"})}postApiV1RemotecontrolRegister(e){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/register",body:e.requestBody,mediaType:"application/json"})}deleteApiV1RemotecontrolRegister(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/register"})}postApiV1RemoteoperationDbpath(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/dbpath",body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationTest(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/test",query:{autocreate:e.autocreate},body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationCreate(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/create",body:e.requestBody,mediaType:"application/json"})}getApiV1Serversettings(){return s(t,this.http,{method:"GET",url:"/api/v1/serversettings"})}patchApiV1Serversettings(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/serversettings",body:e.requestBody,mediaType:"application/json"})}getApiV1ServersettingByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/serversetting/{key}",path:{key:e.key}})}putApiV1ServersettingByKey(e){return s(t,this.http,{method:"PUT",url:"/api/v1/serversetting/{key}",path:{key:e.key},body:e.requestBody,mediaType:"application/json"})}getApiV1Serverstate(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/serverstate",query:{lastEventId:e.lastEventId,longpoll:e.longpoll,duration:e.duration}})}postApiV1ServerstatePause(e={}){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/pause",query:{duration:e.duration,pauseTransfers:e.pauseTransfers}})}postApiV1ServerstateResume(){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/resume"})}getApiV1Systeminfo(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo"})}getApiV1SysteminfoFiltergroups(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo/filtergroups"})}getApiV1TaskByTaskid(e){return s(t,this.http,{method:"GET",url:"/api/v1/task/{taskid}",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStop(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stop",path:{taskid:e.taskid}})}postApiV1TaskByTaskidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/abort",path:{taskid:e.taskid}})}getApiV1Uisettings(){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings"})}postApiV1Uisettings(e){return s(t,this.http,{method:"POST",url:"/api/v1/uisettings",body:e.requestBody,mediaType:"application/json"})}getApiV1UisettingsByScheme(e){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme}})}patchApiV1UisettingsByScheme(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme},body:e.requestBody,mediaType:"application/json"})}postApiV1WebmoduleByModulekey(e){return s(t,this.http,{method:"POST",url:"/api/v1/webmodule/{modulekey}",path:{modulekey:e.modulekey},body:e.requestBody,mediaType:"application/json"})}getApiV1BackupById(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}",path:{id:e.id}})}putApiV1BackupById(e){return s(t,this.http,{method:"PUT",url:"/api/v1/backup/{id}",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}deleteApiV1BackupById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/backup/{id}",path:{id:e.id},query:{"delete-remote-files":e.deleteRemoteFiles,"delete-local-db":e.deleteLocalDb,force:e.force}})}getApiV1BackupByIdFiles(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/files",path:{id:e.id},query:{filter:e.filter,time:e.time,"all-versions":e.allVersions,"prefix-only":e.prefixOnly,"folder-contents":e.folderContents}})}getApiV1BackupByIdLog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/log",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdRemotelog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/remotelog",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdFilesets(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/filesets",path:{id:e.id},query:{"include-metadata":e.includeMetadata,"from-remote-only":e.fromRemoteOnly}})}getApiV1BackupByIdExportArgsonly(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-argsonly",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExportCmdline(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-cmdline",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExport(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase,token:e.token}})}getApiV1BackupByIdIsdbusedelsewhere(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isdbusedelsewhere",path:{id:e.id}})}getApiV1BackupByIdIsactive(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isactive",path:{id:e.id}})}postApiV1BackupByIdDeletedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/deletedb",path:{id:e.id}})}postApiV1BackupByIdMovedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/movedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdUpdatedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/updatedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRestore(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/restore",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdCreatereport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/createreport",path:{id:e.id}})}postApiV1BackupByIdRepair(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repair",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRepairupdate(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repairupdate",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdVacuum(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/vacuum",path:{id:e.id}})}postApiV1BackupByIdVerify(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/verify",path:{id:e.id}})}postApiV1BackupByIdCompact(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/compact",path:{id:e.id}})}postApiV1BackupByIdStart(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/start",path:{id:e.id}})}postApiV1BackupByIdRun(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/run",path:{id:e.id}})}postApiV1BackupByIdReportRemoteSize(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/report-remote-size",path:{id:e.id}})}postApiV1BackupByIdCopytotemp(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/copytotemp",path:{id:e.id}})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},C=class p{constructor(e){this.http=e}getApiV1Progressstate(){return s(t,this.http,{method:"GET",url:"/api/v1/progressstate"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},q=class p{constructor(e){this.http=e}getApiV1Tasks(){return s(t,this.http,{method:"GET",url:"/api/v1/tasks"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},x=class p{constructor(e){this.http=e}postApiV1UpdatesCheck(){return s(t,this.http,{method:"POST",url:"/api/v1/updates/check"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},H=class p{constructor(e){this.http=e}getApiV1Webmodules(){return s(t,this.http,{method:"GET",url:"/api/v1/webmodules"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})};export{S as a,E as b,C as c,H as d};
|
|
1
|
+
import{a as D,c}from"./chunk-MCLDJCPW.js";import{M as g,S as d,X as l,l as I,m as B,p as R,v as O,y as k}from"./chunk-2M52SFS6.js";import{a as y,b as T}from"./chunk-C6Q5SG76.js";var v=class{_fns;constructor(){this._fns=[]}eject(e){let i=this._fns.indexOf(e);i!==-1&&(this._fns=[...this._fns.slice(0,i),...this._fns.slice(i+1)])}use(e){this._fns=[...this._fns,e]}},t={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"1",WITH_CREDENTIALS:!1,interceptors:{response:new v}};var A=class extends Error{url;status;statusText;body;request;constructor(e,i,a){super(a),this.name="ApiError",this.url=i.url,this.status=i.status,this.statusText=i.statusText,this.body=i.body,this.request=e}};var h=p=>typeof p=="string",P=p=>h(p)&&p!=="",f=p=>p instanceof Blob,G=p=>p instanceof FormData,j=p=>{try{return btoa(p)}catch{return Buffer.from(p).toString("base64")}},F=p=>{let e=[],i=(r,n)=>{e.push(`${encodeURIComponent(r)}=${encodeURIComponent(String(n))}`)},a=(r,n)=>{n!=null&&(n instanceof Date?i(r,n.toISOString()):Array.isArray(n)?n.forEach(o=>a(r,o)):typeof n=="object"?Object.entries(n).forEach(([o,u])=>a(`${r}[${o}]`,u)):i(r,n))};return Object.entries(p).forEach(([r,n])=>a(r,n)),e.length?`?${e.join("&")}`:""},L=(p,e)=>{let i=p.ENCODE_PATH||encodeURI,a=e.url.replace("{api-version}",p.VERSION).replace(/{(.*?)}/g,(n,o)=>e.path?.hasOwnProperty(o)?i(String(e.path[o])):n),r=p.BASE+a;return e.query?r+F(e.query):r},N=p=>{if(p.formData){let e=new FormData,i=(a,r)=>{h(r)||f(r)?e.append(a,r):e.append(a,JSON.stringify(r))};return Object.entries(p.formData).filter(([,a])=>a!=null).forEach(([a,r])=>{Array.isArray(r)?r.forEach(n=>i(a,n)):i(a,r)}),e}},V=async(p,e)=>typeof e=="function"?e(p):e,U=(p,e)=>O({token:V(e,p.TOKEN),username:V(e,p.USERNAME),password:V(e,p.PASSWORD),additionalHeaders:V(e,p.HEADERS)}).pipe(R(({token:i,username:a,password:r,additionalHeaders:n})=>{let o=Object.entries(y(y({Accept:"application/json"},n),e.headers)).filter(([,u])=>u!=null).reduce((u,[m,b])=>T(y({},u),{[m]:String(b)}),{});if(P(i)&&(o.Authorization=`Bearer ${i}`),P(a)&&P(r)){let u=j(`${a}:${r}`);o.Authorization=`Basic ${u}`}return e.body!==void 0&&(e.mediaType?o["Content-Type"]=e.mediaType:f(e.body)?o["Content-Type"]=e.body.type||"application/octet-stream":h(e.body)?o["Content-Type"]="text/plain":G(e.body)||(o["Content-Type"]="application/json")),new D(o)})),M=p=>{if(p.body)return p.mediaType?.includes("application/json")||p.mediaType?.includes("+json")?JSON.stringify(p.body):h(p.body)||f(p.body)||G(p.body)?p.body:JSON.stringify(p.body)},K=(p,e,i,a,r,n,o)=>i.request(e.method,a,{headers:o,body:r??n,withCredentials:p.WITH_CREDENTIALS,observe:"response"}),z=(p,e)=>{if(e){let i=p.headers.get(e);if(h(i))return i}},W=p=>{if(p.status!==204&&p.body!==null)return p.body},$=(p,e)=>{let a=y({400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},p.errors)[e.status];if(a)throw new A(p,e,a);if(!e.ok){let r=e.status??"unknown",n=e.statusText??"unknown",o=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new A(p,e,`Generic Error: status: ${r}; status text: ${n}; body: ${o}`)}},s=(p,e,i)=>{let a=L(p,i),r=N(i),n=M(i);return U(p,i).pipe(g(o=>K(p,i,e,a,n,r,o)),g(async o=>{for(let w of p.interceptors.response._fns)o=await w(o);let u=W(o),m=z(o,i.responseHeader),b=u;return i.responseTransformer&&o.ok&&(b=await i.responseTransformer(u)),{url:a,ok:o.ok,status:o.status,statusText:o.statusText,body:m??b}}),k(o=>o.status?I({url:a,ok:o.ok,status:o.status,statusText:o.statusText,body:o.error??o.statusText}):B(()=>o)),R(o=>($(i,o),o.body)),k(o=>B(()=>o)))};var S=class p{constructor(e){this.http=e}getApiV1Commandline(){return s(t,this.http,{method:"GET",url:"/api/v1/commandline"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},E=class p{constructor(e){this.http=e}postApiV1Commandline(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline",body:e.requestBody,mediaType:"application/json"})}getApiV1Acknowledgements(){return s(t,this.http,{method:"GET",url:"/api/v1/acknowledgements"})}postApiV1AuthRefresh(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh"})}postApiV1AuthSignin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/signin",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthLogin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/login",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuesignintoken(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuesignintoken",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthRefreshLogout(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh/logout"})}postApiV1AuthIssuetokenByOperation(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuetoken/{operation}",path:{operation:e.operation}})}postApiV1AuthIssueForeverToken(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issue-forever-token"})}getApiV1Backupdefaults(){return s(t,this.http,{method:"GET",url:"/api/v1/backupdefaults"})}getApiV1Backups(){return s(t,this.http,{method:"GET",url:"/api/v1/backups"})}postApiV1Backups(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups",query:{temporary:e.temporary,existingdb:e.existingdb},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupsImport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups/import",body:e.requestBody,mediaType:"application/json"})}getApiV1BugreportByReportid(e){return s(t,this.http,{method:"GET",url:"/api/v1/bugreport/{reportid}",path:{reportid:e.reportid},query:{token:e.token}})}getApiV1Changelog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/changelog",query:{"from-update":e.fromUpdate}})}getApiV1CommandlineByRunid(e){return s(t,this.http,{method:"GET",url:"/api/v1/commandline/{runid}",path:{runid:e.runid},query:{offset:e.offset,pagesize:e.pagesize}})}postApiV1CommandlineByRunidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline/{runid}/abort",path:{runid:e.runid}})}postApiV1Filesystem(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem",query:{onlyFolders:e.onlyFolders,showHidden:e.showHidden},body:e.requestBody,mediaType:"application/json"})}postApiV1FilesystemValidate(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem/validate",body:e.requestBody,mediaType:"application/json"})}getApiV1Hyperv(){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv"})}getApiV1HypervByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/hyperv/{key}",path:{key:e.key}})}getApiV1Licenses(){return s(t,this.http,{method:"GET",url:"/api/v1/licenses"})}getApiV1LogdataPoll(e){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/poll",query:{level:e.level,id:e.id,offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataLog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/log",query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1Mssql(){return s(t,this.http,{method:"GET",url:"/api/v1/mssql"})}getApiV1MssqlByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/mssql/{key}",path:{key:e.key}})}getApiV1NotificationById(e){return s(t,this.http,{method:"GET",url:"/api/v1/notification/{id}",path:{id:e.id}})}deleteApiV1NotificationById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/notification/{id}",path:{id:e.id}})}getApiV1Notifications(){return s(t,this.http,{method:"GET",url:"/api/v1/notifications"})}getApiV1RemotecontrolStatus(){return s(t,this.http,{method:"GET",url:"/api/v1/remotecontrol/status"})}postApiV1RemotecontrolEnable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/enable"})}postApiV1RemotecontrolDisable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/disable"})}deleteApiV1RemotecontrolRegistration(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/registration"})}postApiV1RemotecontrolRegister(e){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/register",body:e.requestBody,mediaType:"application/json"})}deleteApiV1RemotecontrolRegister(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/register"})}postApiV1RemoteoperationDbpath(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/dbpath",body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationTest(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/test",query:{autocreate:e.autocreate},body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationCreate(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/create",body:e.requestBody,mediaType:"application/json"})}getApiV1Serversettings(){return s(t,this.http,{method:"GET",url:"/api/v1/serversettings"})}patchApiV1Serversettings(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/serversettings",body:e.requestBody,mediaType:"application/json"})}getApiV1ServersettingByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/serversetting/{key}",path:{key:e.key}})}putApiV1ServersettingByKey(e){return s(t,this.http,{method:"PUT",url:"/api/v1/serversetting/{key}",path:{key:e.key},body:e.requestBody,mediaType:"application/json"})}getApiV1Serverstate(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/serverstate",query:{lastEventId:e.lastEventId,longpoll:e.longpoll,duration:e.duration}})}postApiV1ServerstatePause(e={}){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/pause",query:{duration:e.duration,pauseTransfers:e.pauseTransfers}})}postApiV1ServerstateResume(){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/resume"})}getApiV1Systeminfo(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo"})}getApiV1SysteminfoFiltergroups(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo/filtergroups"})}getApiV1TaskByTaskid(e){return s(t,this.http,{method:"GET",url:"/api/v1/task/{taskid}",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStop(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stop",path:{taskid:e.taskid}})}postApiV1TaskByTaskidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/abort",path:{taskid:e.taskid}})}getApiV1Uisettings(){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings"})}postApiV1Uisettings(e){return s(t,this.http,{method:"POST",url:"/api/v1/uisettings",body:e.requestBody,mediaType:"application/json"})}getApiV1UisettingsByScheme(e){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme}})}patchApiV1UisettingsByScheme(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme},body:e.requestBody,mediaType:"application/json"})}postApiV1WebmoduleByModulekey(e){return s(t,this.http,{method:"POST",url:"/api/v1/webmodule/{modulekey}",path:{modulekey:e.modulekey},body:e.requestBody,mediaType:"application/json"})}getApiV1BackupById(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}",path:{id:e.id}})}putApiV1BackupById(e){return s(t,this.http,{method:"PUT",url:"/api/v1/backup/{id}",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}deleteApiV1BackupById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/backup/{id}",path:{id:e.id},query:{"delete-remote-files":e.deleteRemoteFiles,"delete-local-db":e.deleteLocalDb,force:e.force}})}getApiV1BackupByIdFiles(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/files",path:{id:e.id},query:{filter:e.filter,time:e.time,"all-versions":e.allVersions,"prefix-only":e.prefixOnly,"folder-contents":e.folderContents}})}getApiV1BackupByIdLog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/log",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdRemotelog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/remotelog",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdFilesets(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/filesets",path:{id:e.id},query:{"include-metadata":e.includeMetadata,"from-remote-only":e.fromRemoteOnly}})}getApiV1BackupByIdExportArgsonly(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-argsonly",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExportCmdline(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-cmdline",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExport(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase,token:e.token}})}getApiV1BackupByIdIsdbusedelsewhere(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isdbusedelsewhere",path:{id:e.id}})}getApiV1BackupByIdIsactive(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isactive",path:{id:e.id}})}postApiV1BackupByIdDeletedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/deletedb",path:{id:e.id}})}postApiV1BackupByIdMovedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/movedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdUpdatedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/updatedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRestore(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/restore",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdCreatereport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/createreport",path:{id:e.id}})}postApiV1BackupByIdRepair(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repair",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRepairupdate(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repairupdate",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdVacuum(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/vacuum",path:{id:e.id}})}postApiV1BackupByIdVerify(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/verify",path:{id:e.id}})}postApiV1BackupByIdCompact(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/compact",path:{id:e.id}})}postApiV1BackupByIdStart(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/start",path:{id:e.id}})}postApiV1BackupByIdRun(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/run",path:{id:e.id}})}postApiV1BackupByIdReportRemoteSize(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/report-remote-size",path:{id:e.id}})}postApiV1BackupByIdCopytotemp(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/copytotemp",path:{id:e.id}})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},C=class p{constructor(e){this.http=e}getApiV1Progressstate(){return s(t,this.http,{method:"GET",url:"/api/v1/progressstate"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},q=class p{constructor(e){this.http=e}getApiV1Tasks(){return s(t,this.http,{method:"GET",url:"/api/v1/tasks"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},x=class p{constructor(e){this.http=e}postApiV1UpdatesCheck(){return s(t,this.http,{method:"POST",url:"/api/v1/updates/check"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})},H=class p{constructor(e){this.http=e}getApiV1Webmodules(){return s(t,this.http,{method:"GET",url:"/api/v1/webmodules"})}static \u0275fac=function(i){return new(i||p)(l(c))};static \u0275prov=d({token:p,factory:p.\u0275fac,providedIn:"root"})};export{S as a,E as b,C as c,H as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-L5D4JLN3.js";import"./chunk-7IRVNC4S.js";import"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";export{a as BytesPipe};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as ae}from"./chunk-
|
|
1
|
+
import{b as ae}from"./chunk-PNJEVGID.js";import{a as te}from"./chunk-X6SCWL5V.js";import"./chunk-7LRQSKYZ.js";import"./chunk-L5D4JLN3.js";import"./chunk-W4MEGIZH.js";import{a as j}from"./chunk-AXHB6A4N.js";import{b as H,d as J,g as Q,q as Y}from"./chunk-XKAASYKO.js";import"./chunk-MADB4EX7.js";import{b as W}from"./chunk-PPRHD3ZV.js";import{a as z,d as q}from"./chunk-LJ3ULEOG.js";import"./chunk-C5EHOW7U.js";import{a as Z,g as x,l as ee}from"./chunk-UIC2LGAH.js";import"./chunk-MCLDJCPW.js";import"./chunk-7IRVNC4S.js";import"./chunk-DNDOALN6.js";import{Bb as i,C as g,Cb as a,Db as l,E as u,Lc as C,M as k,Nb as r,Nc as h,Ob as p,Pb as T,Qb as L,Ra as s,Rb as U,Tb as A,Y as D,eb as y,gc as E,jb as v,lc as w,mc as X,nc as V,p as O,sb as F,ua as c,ub as P,wb as G,xb as K}from"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";function ie(S,t){S&1&&(i(0,"spk-icon",18),E(1,"check"),a())}function ne(S,t){S&1&&(i(0,"spk-icon",18),E(1,"warning"),a())}var m=class S{#a=D(z);#i=D(j);#e=D(W);#t="";backupId=ae(this.#a.params.pipe(O(t=>t.id)));activeBackup=C(()=>{let t=this.#i.backups().find(_=>_.Backup?.ID===this.backupId());return this.#t=t?.Backup?.DBPath??"",t});backupFilePath=c("");lastValidatedPath=c("");isValidatedPath=C(()=>this.lastValidatedPath()===this.backupFilePath());backupFilePathEffect=h(()=>{let t=this.backupFilePath();t!==""&&this.#e.postApiV1FilesystemValidate({requestBody:{path:t}}).subscribe({next:()=>this.lastValidatedPath.set(t)})});isRestoring=c(!1);isRepairing=c(!1);isDeleting=c(!1);isSavingDbPath=c(!1);isSavingAndRepairing=c(!1);isMovingDb=c(!1);activeBackupEffect=h(()=>{let t=this.activeBackup();if(!t)return;let _=t.Backup?.DBPath??"";this.backupFilePath.set(_)});repairDatabase(){this.isRepairing.set(!0),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(g(1),u(()=>this.isRepairing.set(!1))).subscribe()}deleteDatabase(){this.isDeleting.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),u(()=>this.isDeleting.set(!1))).subscribe()}restoreDatabase(){this.isRestoring.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),k(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),u(()=>this.isRestoring.set(!1))).subscribe()}resetDatabasePath(){this.backupFilePath.set(this.#t)}saveDatabasePath(){this.isSavingDbPath.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(u(()=>this.isSavingDbPath.set(!1))).subscribe()}saveAndRepairDatabasePath(){this.isSavingAndRepairing.set(!0),this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(k(()=>this.#e.postApiV1BackupByIdRepair({id:this.backupId()})),u(()=>this.isSavingAndRepairing.set(!1)))}moveDatabasePath(){this.isMovingDb.set(!0),this.#e.postApiV1BackupByIdMovedb({id:this.backupId(),requestBody:{path:this.backupFilePath()}}).pipe(u(()=>this.isMovingDb.set(!1))).subscribe()}static \u0275fac=function(_){return new(_||S)};static \u0275cmp=y({type:S,selectors:[["app-database"]],decls:46,vars:15,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let _;_=$localize`Local database for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. This makes it faster to perform many operations, and reduces the amount of data that needs to be downloaded for each operation. `;let n;n=$localize`Maintainance`;let d;d=$localize` If the backup and the remote storage is out of sync, Duplicati will require that you perform a repair operation to synchronize the database. If the repair is unsuccessful, you can delete the local database and re-generate. `;let f;f=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Repair `;let b;b=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:trash${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Delete `;let B;B=$localize`${"\uFFFD#25\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore (delete and repair) `;let I;I=$localize`Placement`;let M;M=$localize`${"\uFFFD#36\uFFFD"}:START_TAG_SPK_ICON:backspace${"\uFFFD/#36\uFFFD"}:CLOSE_TAG_SPK_ICON: Reset `;let N;N=$localize`${"\uFFFD#39\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#39\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `;let $;$=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:wrench${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON: Save & Repair `;let R;return R=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:flow-arrow${"\uFFFD/#45\uFFFD"}:CLOSE_TAG_SPK_ICON: Move existing database `,[t,_,e,n,d,f,b,B,I,M,N,$,R,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"actions","maintainance"],["spk-button","",3,"click"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[1,"actions","placement"],["spk-button","",3,"click","disabled"]]},template:function(_,e){if(_&1&&(l(0,"app-status-bar"),i(1,"section")(2,"div",13)(3,"button",14),r(4,0),l(5,"spk-icon"),p(),a()(),i(6,"article")(7,"h1"),T(8,1),a(),i(9,"p"),T(10,2),a()(),i(11,"article")(12,"h2"),T(13,3),a(),i(14,"p"),T(15,4),a(),i(16,"div",15)(17,"button",16),A("click",function(){return e.repairDatabase()}),r(18,5),l(19,"spk-icon"),p(),a(),i(20,"button",16),A("click",function(){return e.deleteDatabase()}),r(21,6),l(22,"spk-icon"),p(),a(),i(23,"button",16),A("click",function(){return e.restoreDatabase()}),r(24,7),l(25,"spk-icon"),p(),a()()(),i(26,"article")(27,"h2"),T(28,8),a(),i(29,"spk-form-field")(30,"input",17),V("ngModelChange",function(d){return X(e.backupFilePath,d)||(e.backupFilePath=d),d}),a(),v(31,ie,2,0,"spk-icon",18)(32,ne,2,0,"spk-icon",18),a(),i(33,"div",19)(34,"button",20),A("click",function(){return e.resetDatabasePath()}),r(35,9),l(36,"spk-icon"),p(),a(),i(37,"button",20),A("click",function(){return e.saveDatabasePath()}),r(38,10),l(39,"spk-icon"),p(),a(),i(40,"button",20),A("click",function(){return e.saveAndRepairDatabasePath()}),r(41,11),l(42,"spk-icon"),p(),a(),i(43,"button",20),A("click",function(){return e.moveDatabasePath()}),r(44,12),l(45,"spk-icon"),p(),a()()()()),_&2){let n;s(8),L((n=e.activeBackup())==null||n.Backup==null?null:n.Backup.Name),U(8),s(9),P("loader",e.isRepairing()),s(3),P("loader",e.isDeleting()),s(3),P("loader",e.isRestoring()),s(6),G(e.isValidatedPath()?"success":"error"),s(),w("ngModel",e.backupFilePath),s(),K(e.isValidatedPath()?31:32),s(3),F("disabled",!e.isValidatedPath()),s(3),F("disabled",!e.isValidatedPath()),s(3),F("disabled",!e.isValidatedPath()),s(3),F("disabled",!e.isValidatedPath())}},dependencies:[Y,H,J,Q,te,x,ee,Z,q],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem}article[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}h1[_ngcontent-%COMP%]{font:var(--title-20)}h2[_ngcontent-%COMP%]{font:var(--title-30)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Bb as i,Cb as o,Hb as u,Lc as b,Ra as n,Tb as x,Ub as l,da as f,ea as _,eb as T,gc as r,hc as m,jb as C,pa as g,qa as D,xb as s}from"./chunk-2M52SFS6.js";import{a as p}from"./chunk-C6Q5SG76.js";function v(e,a){if(e&1&&(i(0,"p"),r(1),o()),e&2){let t=l();n(),m(t._data().message)}}function y(e,a){if(e&1){let t=u();i(0,"button",5),x("click",function(){f(t);let d=l();return _(d.close("cancel"))}),r(1),o()}if(e&2){let t=l();n(),m(t._data().cancelText)}}function h(e,a){if(e&1){let t=u();i(0,"button",6),x("click",function(){f(t);let d=l();return _(d.close("confirm"))}),r(1),o()}if(e&2){let t=l();n(),m(t._data().confirmText)}}var w={title:$localize`Are you sure?`,confirmText:$localize`Confirm`,cancelText:$localize`Cancel`},k=class e{data=D();_data=b(()=>p(p({},w),this.data()));closed=g();close(a="confirm"){this.closed.emit(a==="confirm")}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=T({type:e,selectors:[["app-confirm-dialog"]],inputs:{data:[1,"data"]},outputs:{closed:"closed"},decls:8,vars:4,consts:[["header",""],["content",""],["footer",""],["spk-button","",1,""],["spk-button","",1,"raised","primary"],["spk-button","",1,"",3,"click"],["spk-button","",1,"raised","primary",3,"click"]],template:function(t,c){t&1&&(i(0,"header",0)(1,"h3"),r(2),o()(),i(3,"div",1),C(4,v,2,1,"p"),o(),i(5,"footer",2),C(6,y,2,1,"button",3)(7,h,2,1,"button",4),o()),t&2&&(n(2),m(c._data().title),n(2),s(c._data().message?4:-1),n(2),s(c._data().cancelText?6:-1),n(),s(c._data().confirmText?-1:7))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{k as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as m}from"./chunk-W4MEGIZH.js";import{b as N}from"./chunk-PPRHD3ZV.js";import{C as o,E as h,Lc as u,O as d,S as l,Y as r,l as c,ua as s,v as f,y as p}from"./chunk-2M52SFS6.js";var v=class n{#e=r(N);#n=r(m);serverState=u(()=>{let t=this.#n.serverState();return t?.LastNotificationUpdateID&&this.updateLastNotificationEventId(t?.LastNotificationUpdateID),t});#o=s(-1);#s=s(!1);#t=s([]);#i=s([]);notifications=this.#t.asReadonly();init(){this.notifications().length===0&&this.getNotifications()}updateLastNotificationEventId(t){this.#o()!==t&&(this.#o.set(t),this.getNotifications())}getNotifications(){this.#s.set(!0),this.#e.getApiV1Notifications().pipe(o(1),d(t=>this.#t.set(t)),h(()=>this.#s.set(!1))).subscribe()}getNofication(t){this.#e.getApiV1NotificationById({id:t}).pipe(o(1)).subscribe()}deleteNotification(t){let i=this.#t(),e=i[t];this.#i.set(i),i.splice(t,1),this.#t.set(i),this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(o(1)).subscribe({error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}deleteAllNotifications(){let t=this.#t();this.#i.set(t),this.#t.set([]);let i=t.map(e=>this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(p(()=>c(e))));f(i).pipe(o(1)).subscribe({next:e=>{let b=e.filter(a=>a!=null&&"ID"in a);this.#t.set(b),this.#i.set([])},error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}static \u0275fac=function(i){return new(i||n)};static \u0275prov=l({token:n,factory:n.\u0275fac,providedIn:"root"})};export{v as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as a,d as b,e as c}from"./chunk-2WZR3NHU.js";import"./chunk-AYWJL6PH.js";import"./chunk-DW725235.js";import"./chunk-DNHLTHLR.js";import"./chunk-PNJEVGID.js";import"./chunk-YOP6HOXH.js";import"./chunk-RTVM3BJK.js";import"./chunk-XKAASYKO.js";import"./chunk-PPRHD3ZV.js";import"./chunk-LJ3ULEOG.js";import"./chunk-C5EHOW7U.js";import"./chunk-UIC2LGAH.js";import"./chunk-MCLDJCPW.js";import"./chunk-7IRVNC4S.js";import"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ia as Ae}from"./chunk-7IRVNC4S.js";import{$a as P,Ab as se,Bb as a,Cb as l,Db as H,Fc as Pe,Gb as te,Hb as I,Lc as O,Nc as b,Pc as Ce,Ra as f,S as ue,Ta as me,Tb as w,Ub as d,Va as Me,Vb as x,Wb as p,Y as F,Ya as A,Za as ie,_a as ge,ba as be,cc as J,da as v,dc as j,ea as _,eb as y,ec as B,fc as Re,gb as Ie,gc as k,hc as Fe,ia as Ee,ic as K,ja as Te,jb as D,lc as re,mc as ae,nc as le,oa as he,ob as Ve,oc as _e,pa as U,pc as Z,qa as u,qc as W,ra as $,sb as Y,sc as ce,ta as fe,tb as N,tc as pe,ua as S,ub as R,vb as ve,wb as G,xb as T,yb as ne,zb as oe}from"./chunk-2M52SFS6.js";import{a as Q,b as ee,c as Oe}from"./chunk-C6Q5SG76.js";var V=["*"],$e=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],ze=["[icon]","[title]","*","[content]"];function Ye(n,c){n&1&&(a(0,"spk-icon",3),k(1,"info"),l())}function Xe(n,c){n&1&&(a(0,"spk-icon",3),k(1,"info"),l())}function Ge(n,c){n&1&&(a(0,"spk-icon",3),k(1,"warning"),l())}function Ke(n,c){n&1&&(a(0,"spk-icon",3),k(1,"warning-octagon"),l())}function Je(n,c){n&1&&(a(0,"spk-icon",3),k(1,"check-circle"),l())}function Ze(n,c){n&1&&(a(0,"spk-icon",3),k(1,"question"),l())}function et(n,c){if(n&1){let e=I();a(0,"spk-icon",7),w("click",function(){v(e);let i=d();return _(i.removeAlert())}),k(1,"plus"),l()}}var tt=["dialogRef"];function it(n,c){if(n&1){let e=I();a(0,"div",4),w("click",function(){v(e);let i=d();return _(i.isOpen.set(!1))}),l()}}var nt=["spk-button",""];var Le=["triggerRef"],ot=["popoverRef"],st=[[["","trigger",""]],"*"],rt=["[trigger]","*"];var at=()=>({closeOnButton:!1,closeOnEsc:!0});var lt=["inputWrap"];var ct=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],pt=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"];var dt=["option"],He=["input"],ut=["*",[["","menu",""]]],ht=["*","[menu]"];var ft=["textarea"],mt=["optionsWrap"],gt=[[["label"]],[["input"]],[["textarea"]]],vt=["label","input","textarea"],Be=()=>({closeOnButton:!1,closeOnEsc:!1}),ke=n=>({$implicit:n});function _t(n,c){n&1&&te(0)}function Ct(n,c){if(n&1&&D(0,_t,1,0,"ng-container",13),n&2){let e=d(3).$implicit;d(2);let t=W(6);Y("ngTemplateOutlet",t)("ngTemplateOutletContext",pe(2,ke,e))}}function St(n,c){if(n&1&&k(0),n&2){let e=d(3).$implicit,t=d(2);K(" ",t.getLabel(e)," ")}}function kt(n,c){if(n&1){let e=I();a(0,"spk-chip",11),D(1,Ct,1,4,"ng-container")(2,St,1,1),a(3,"spk-icon",12),w("click",function(i){v(e);let o=d(2).$index,s=d(2);return _(s.removeSelectedOptionByIndex(i,o))}),k(4,"x-bold"),l()()}if(n&2){let e=d(4),t=W(6);G(e.selectClasses()),f(),T(t?1:2)}}function yt(n,c){n&1&&te(0)}function wt(n,c){if(n&1&&D(0,yt,1,0,"ng-container",13),n&2){let e=d(3).$implicit;d(2);let t=W(6);Y("ngTemplateOutlet",t)("ngTemplateOutletContext",pe(2,ke,e))}}function xt(n,c){if(n&1&&k(0),n&2){let e=d(3).$implicit,t=d(2);K(" ",t.getLabel(e)," ")}}function Dt(n,c){if(n&1&&D(0,wt,1,4,"ng-container")(1,xt,1,1),n&2){d(4);let e=W(6);T(e?0:1)}}function Ot(n,c){if(n&1&&D(0,kt,5,3,"spk-chip",10)(1,Dt,2,1),n&2){d(3);let e=W(8);T(e?0:1)}}function bt(n,c){if(n&1&&D(0,Ot,2,1),n&2){let e=c.$implicit;T(e?0:-1)}}function Et(n,c){if(n&1&&oe(0,bt,1,1,null,null,ne),n&2){d();let e=W(4);se(e)}}function Tt(n,c){n&1&&te(0)}function Mt(n,c){if(n&1&&D(0,Tt,1,0,"ng-container",14),n&2){d(2);let e=W(0);Y("ngTemplateOutlet",e)}}function It(n,c){if(n&1&&k(0),n&2){let e,t=d(2);K(" ",(e=t.placeholderText())!==null&&e!==void 0?e:""," ")}}function Vt(n,c){if(n&1&&D(0,Mt,1,1,"ng-container")(1,It,1,1),n&2){d();let e=W(0);T(e?0:1)}}function Rt(n,c){n&1&&(a(0,"spk-icon",6),k(1,"caret-down"),l())}function Ft(n,c){n&1&&H(0,"spk-spinner",7)}function Pt(n,c){n&1&&(a(0,"spk-icon",6),k(1,"list-magnifying-glass"),l())}function At(n,c){n&1&&(a(0,"spk-icon",6),k(1,"magnifying-glass"),l())}function jt(n,c){if(n&1){let e=I();a(0,"spk-icon",15),w("click",function(i){v(e);let o=d();return _(o.clear(i))}),k(1,"x-bold"),l()}}function Lt(n,c){n&1&&(a(0,"spk-icon",6),k(1,"check"),l())}function Ht(n,c){n&1&&(a(0,"spk-icon",6),k(1,"caret-up"),l())}function Bt(n,c){if(n&1&&H(0,"spk-checkbox"),n&2){let e=d().$index,t=d();G(t.selectClasses()),R("active",t.isSelected(e))}}function Wt(n,c){n&1&&te(0)}function qt(n,c){if(n&1&&D(0,Wt,1,0,"ng-container",13),n&2){let e=d().$implicit;d();let t=W(7);Y("ngTemplateOutlet",t)("ngTemplateOutletContext",pe(2,ke,e))}}function Nt(n,c){if(n&1&&k(0),n&2){let e=d().$implicit,t=d();K(" ",t.getLabel(e)," ")}}function Qt(n,c){if(n&1){let e=I();a(0,"li",16),w("click",function(){let i=v(e).$index,o=d();return _(o.toggleOptionByIndex(i))}),D(1,Bt,1,4,"spk-checkbox",17)(2,qt,1,4,"ng-container")(3,Nt,1,1),l()}if(n&2){let e=c.$index,t=d(),i=W(7);R("selected",t.isSelected(e))("focused",e===t.focusedOptionIndex()),f(),T(t.selectMultiple()?1:-1),f(),T(i?2:3)}}var Ut=["optionsRef"],$t=["formFieldWrapper"],zt=[[["label"]],[["input"]],"*",[["","deselect-indicator",""]],[["","search-indicator",""]],[["","open-indicator",""]]],Yt=["label","input","*","[deselect-indicator]","[search-indicator]","[open-indicator]"];function Xt(n,c){if(n&1){let e=I();a(0,"spk-chip",12),w("click",function(i){let o=v(e).$implicit,s=d(3);return _(s.toggleOption(o,i))}),k(1),a(2,"spk-icon"),k(3,"x-bold"),l()()}if(n&2){let e,t=c.$implicit,i=d(3);G(i.chipClass()),f(),K(" ",(e=(e=i.displayFn())==null?null:e(t))!==null&&e!==void 0?e:t," ")}}function Gt(n,c){if(n&1&&oe(0,Xt,4,3,"spk-chip",11,ne),n&2){let e=d(2);se(e.inputValue().split(","))}}function Kt(n,c){if(n&1&&(a(0,"div",6),D(1,Gt,2,0),l()),n&2){let e=d();f(),T(e.inputValue().length>0?1:-1)}}function Jt(n,c){if(n&1&&(a(0,"div",6),k(1),l()),n&2){let e=d();f(),Fe(e._displayValue())}}function Zt(n,c){if(n&1){let e=I();a(0,"div",13),w("click",function(i){v(e);let o=d();return _(o.deselect(i))}),p(1,3),a(2,"spk-icon",14),k(3,"x-bold"),l()()}}function ei(n,c){n&1&&(a(0,"div",8),p(1,4),a(2,"spk-icon",14),k(3,"magnifying-glass"),l()())}function ti(n,c){if(n&1&&(a(0,"div",15),p(1,5),a(2,"spk-icon",14),k(3,"caret-down"),l()()),n&2){let e=d();R("open",e.isOpen())}}var ii=["dragImageElement"],ni=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],oi=["[sidenav]","[sidenav-closed-topbar]","*"];function si(n,c){n&1&&H(0,"div",1,0)}function ri(n,c){if(n&1){let e=I();a(0,"div",7),w("drop",function(i){v(e);let o=d();return _(o.drop(i))})("dragover",function(i){v(e);let o=d();return _(o.dragOver(i))})("dragenter",function(){v(e);let i=d();return _(i.dragEnter())})("dragleave",function(){v(e);let i=d();return _(i.dragLeave())}),l()}}function ai(n,c){if(n&1){let e=I();a(0,"div",8),w("dragstart",function(i){v(e);let o=d();return _(o.dragStart(i))})("dragend",function(i){v(e);let o=d();return _(o.dragEnd(i))})("drag",function(i){v(e);let o=d();return _(o.drag(i))})("touchstart",function(i){v(e);let o=d();return _(o.touchStart(i))})("touchmove",function(i){v(e);let o=d();return _(o.touchMove(i))})("touchend",function(i){v(e);let o=d();return _(o.touchEnd(i))})("touchcancel",function(i){v(e);let o=d();return _(o.touchCancel(i))}),l()}}var li=[[["","table-header",""]],"*",[["","table-no-rows",""]]],ci=["[table-header]","*","[table-no-rows]"];function pi(n,c){n&1&&H(0,"spk-progress-bar",0)}function di(n,c){n&1&&(a(0,"div",1),p(1,2),l())}var ui=["tooltipRef"];var Se=["bold","thin","light","fill"],de=(()=>{class n{#e=F($);get currentClass(){let e=this.#e.nativeElement.innerText;for(let t=0;t<Se.length;t++)if(e.endsWith(Se[t]))return Se[t];return""}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-icon"]],hostVars:2,hostBindings:function(t,i){t&2&&G(i.currentClass)},ngContentSelectors:V,decls:1,vars:0,template:function(t,i){t&1&&(x(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Wi=(()=>{class n{constructor(){this._el=F($),this.alertService=u(null),this.id=u(null),this.alertClasses=O(()=>this._el.nativeElement.classList.toString())}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(t){return new(t||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(t,i){if(t&1&&(x($e),a(0,"div",1)(1,"div",2,0),p(3),l(),a(4,"div",2),_e(5),D(6,Ye,2,0,"spk-icon",3)(7,Xe,2,0,"spk-icon",3)(8,Ge,2,0,"spk-icon",3)(9,Ke,2,0,"spk-icon",3)(10,Je,2,0,"spk-icon",3)(11,Ze,2,0,"spk-icon",3),l(),a(12,"div",4),p(13,1),p(14,2),l(),D(15,et,2,0,"spk-icon",5),a(16,"div",6),p(17,3),l()()),t&2){let o=Re(2);f(),N("display",o.children.length?"block":"none");let s=i.alertClasses();f(5),T(s.includes("primary")?6:s.includes("accent")?7:s.includes("warn")?8:s.includes("error")?9:s.includes("success")?10:11),f(9),T(i.id()?15:-1)}},dependencies:[de],encapsulation:2,changeDetection:0})}}return n})();function ye(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var qi=(()=>{class n{constructor(){this.alertHistory=S([]),this.alertHistoryIsOpen=S(!1),this.alertHistoryIsHidden=S(!0)}error(e){this.addAlert({type:"error",title:e??"An error occured"})}success(e){this.addAlert({type:"success",title:e})}question(e){this.addAlert({type:"question",title:e})}warning(e){this.addAlert({type:"warn",title:e})}info(e){this.addAlert({type:"primary",title:e})}addAlert(e){let t=ye();this.alertHistory.update(i=>[ee(Q({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>ee(Q({},o),{animateIn:o.id===t?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(i=>ee(Q({},i),{animateOut:i.id===e?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(t=>t.filter(i=>i.id!==e))},300)}hideAlert(e){this.alertHistory.update(t=>t.map(i=>ee(Q({},i),{isOpen:i.id===e?!1:i.isOpen})))}setHidden(e){this.alertHistoryIsHidden.set(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=ue({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),hi={width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},fi=(()=>{class n{constructor(){this.dialogRef=A("dialogRef"),this.isOpen=P(!1),this.options=u(),this.closed=U(),this.defaultOptionMerge=O(()=>Q(Q({},hi),this.options())),this.abortController=null,this.isOpenEffect=b(()=>{let e=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(e?.showModal(),e?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",t=>{t.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&t.preventDefault(),t.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),e?.close())})}ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-dialog"]],viewQuery:function(t,i){t&1&&j(i.dialogRef,tt,5),t&2&&B()},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(t,i){if(t&1&&(x(),a(0,"dialog",1,0)(2,"div",2),p(3),l(),D(4,it,1,0,"div",3),l()),t&2){let o,s,r,m;N("width",(o=i.defaultOptionMerge().width)!==null&&o!==void 0?o:"")("max-width",(s=i.defaultOptionMerge().maxWidth)!==null&&s!==void 0?s:"")("max-height",(r=i.defaultOptionMerge().maxHeight)!==null&&r!==void 0?r:"")("height",(m=i.defaultOptionMerge().height)!==null&&m!==void 0?m:""),f(4),T(i.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0})}}return n})(),Ni=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#i=F(Ve),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#i;open(e,t){let i=this.#i.injector,o=this.#s(),X=t||{},{data:s,closed:r}=X,m=Oe(X,["data","closed"]);this.compRef&&this.#t(),this.insertedCompRef=Ce(e,{environmentInjector:i}),this.compRef=Ce(fi,{hostElement:o,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let h=this.insertedCompRef.instance?.data,C=this.insertedCompRef.instance?.closed;if(s){if(fe(h))this.insertedCompRef.setInput("data",s);else if(!fe(h))throw new Error("data is not an input signal on the passed component")}C instanceof he&&(this.closedFieldSub=C.subscribe((...z)=>{r?.(...z),this.#t()})),this.#i.attachView(this.insertedCompRef.hostView),this.#i.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",m),this.compRef.instance.closed.subscribe(()=>q());let M=this;function q(){C&&C instanceof he?C.emit(!1):r?.(void 0),M.#t()}return this.insertedCompRef.instance}#s(){let e=document.createElement("spk-dialog-ref");return e.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||this.#e.append(e),document.getElementById("spk-dialog-ref")}#t(){this.insertedCompRef&&(this.#i.detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(this.#i.detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())}ngOnDestroy(){this.#t()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=ue({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Qi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-button-group"]],ngContentSelectors:V,decls:1,vars:0,template:function(t,i){t&1&&(x(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),mi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["","spk-button",""]],attrs:nt,ngContentSelectors:V,decls:1,vars:0,template:function(t,i){t&1&&(x(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Ui=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-card"]],ngContentSelectors:V,decls:1,vars:0,template:function(t,i){t&1&&(x(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),gi=(()=>{class n{#e=F($);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-checkbox"]],hostBindings:function(t,i){t&1&&w("click",function(){return i.onClick()})},ngContentSelectors:V,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(t,i){t&1&&(x(),a(0,"div",0)(1,"spk-icon",1),k(2,"check"),l(),a(3,"spk-icon",2),k(4,"minus"),l()(),p(5))},dependencies:[de],encapsulation:2,changeDetection:0})}}return n})(),We=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-chip"]],ngContentSelectors:V,decls:1,vars:0,template:function(t,i){t&1&&(x(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var vi=["scroll","auto"],_i={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},we=(()=>{class n{constructor(){this.#e=F(Pe),this.#i=4,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=u(!1),this.right=u(!1),this.markForCheck=u(null),this._above=S(this.above()),this._right=S(this.right()),this.disableOpenByClick=u(!1),this.isOpen=P(!1),this.options=u(),this.closed=U(),this.defaultOptionMerge=O(()=>Q(Q({},_i),this.options())),this.triggerRef=A.required("triggerRef"),this.popoverRef=A.required("popoverRef"),this.id=S("--"+ye()),this.menuStyle=S(null),this.openAbort=null,this.openEffect=b(()=>{let e=this.popoverRef()?.nativeElement;if(this.isOpen()){this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController;let i={signal:this.openAbort?.signal};e?.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.#s(this.popoverRef()?.nativeElement).addEventListener("scroll",()=>this.#t(),i),window.addEventListener("resize",()=>this.#t(),i),this.#t()})}else e.hidePopover(),this.openAbort?.abort(),this.closed.emit()}),this.markForCheckEffect=b(()=>{this.markForCheck()&&this.#e.markForCheck()})}#e;#i;toggleIsOpen(e){e.preventDefault(),e.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}#s(e){let t=e.parentElement;for(;t;){if(vi.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}#t(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,r=o+this.#i,m=s+t.width>window.innerWidth,h=r+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(h),this._right.set(m);else{if(s=i,r=o+this.#i,h){let M=e.top-t.height-this.#i;M<0||(r=M)}m&&(s=e.right-t.width,s<0&&(s=0));let C={left:s+"px",top:r+"px"};this.menuStyle.set(C)}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-popover"]],viewQuery:function(t,i){t&1&&(j(i.triggerRef,Le,5),j(i.popoverRef,ot,5)),t&2&&B(2)},hostVars:4,hostBindings:function(t,i){t&2&&R("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:rt,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(t,i){if(t&1){let o=I();x(st),a(0,"div",2,0),w("click",function(r){return v(o),_(i.toggleIsOpen(r))}),a(2,"div",3),p(3),l(),a(4,"button",4),k(5,"Open popover"),l()(),a(6,"div",5,1)(8,"div",6),w("click",function(r){return v(o),_(i.isOpen()&&i.eventClose(r))}),l(),p(9,1),l()}t&2&&(N("anchor-name",i.id()),f(6),ve(i.menuStyle()),N("position-anchor",i.id()))},dependencies:[mi],encapsulation:2,changeDetection:0})}}return n})();var $i=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-divider"]],ngContentSelectors:V,decls:1,vars:0,template:function(t,i){t&1&&(x(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),xe=(()=>{class n{#e=F($);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 e=typeof CSS<"u"&&CSS.supports("field-sizing","content"),t=this.#e.nativeElement.querySelector("textarea");if(!e&&t!==null){let s=function(){t.style.height="auto",t.style.height=t.scrollHeight+"px"},r=function(){window.setTimeout(s,0)};var i=s,o=r;t.addEventListener("change",s),t.addEventListener("cut",r),t.addEventListener("paste",r),t.addEventListener("drop",r),t.addEventListener("keydown",r),t.focus(),t.select(),s()}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-form-field"]],hostBindings:function(t,i){t&1&&w("click",function(){return i.onClick()})},ngContentSelectors:pt,decls:16,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(t,i){t&1&&(x(ct),p(0),a(1,"div",0)(2,"div",1),p(3,1),p(4,2),l(),H(5,"div",2),p(6,3),p(7,4),p(8,5),H(9,"div",3),p(10,6),l(),a(11,"div",4)(12,"div",5),p(13,7),l(),a(14,"div",6),p(15,8),l()())},encapsulation:2,changeDetection:0})}}return n})();var zi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-list"]],ngContentSelectors:V,decls:1,vars:0,template:function(t,i){t&1&&(x(),p(0))},encapsulation:2,changeDetection:0})}}return n})();function qe(n,c){let e=c?.injector||(be(qe),F(Ee)),{debounce:t=0,initialValue:i=void 0,transform:o=g=>g,compare:s=(g,E)=>g===E,forceType:r=void 0,returnPreviousValue:m=!0}=c||{},h=S(i),C=e.get(Te),M=O(()=>{let g=n()?.nativeElement;if(g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement)return Ne(g)}),q=!1,X,z=null;return b(()=>{let g=M();if(!g)return h.set(m&&X?o(X):void 0);i!==void 0&&g.value===""?h.set(i):g.value!==""&&De();let E=L=>{z!==null&&clearTimeout(z),z=setTimeout(()=>{z=null,De()},t)};g.addEventListener("input",E),g.addEventListener("inputValueChanged",E),C.onDestroy(()=>{g.removeEventListener("input",E),g.removeEventListener("inputValueChanged",E),z!==null&&clearTimeout(z)})},{injector:e}),b(()=>{let g=M();if(!g)return;let E=h()??"",L=E==null?"":String(E);g.value!==L&&(X=L,g.value=L,g.dispatchEvent(new Event("input")))},{injector:e}),h;function De(){if(!q){q=!0;try{let g=M();if(!g)return;let E=g.value,L=r?Qe(E,r):o(E);X=E,s(h(),L)||h.set(L)}finally{q=!1}}}function Ne(g){return Object.defineProperty(g,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(g),"value").get.call(this)},set(E){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(g),"value").set.call(this,E);let Ue=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:E}});return this.dispatchEvent(Ue),E}}),g}function Qe(g,E){switch(E){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 Yi=(()=>{class n{constructor(){this.above=u(!1),this.right=u(!1),this.keepClickedOptionActive=u(!1),this.isOpen=P(!1),this.closed=U(),this.searchable=u(!1),this.activeOptionIndex=S(-1),this.inputRef=A("input"),this.options=ge("option",{descendants:!0}),this.optionsEl=O(()=>Array.from(this.options()).map(e=>e.nativeElement).filter(e=>!e.disabled)),this.inputValue=qe(this.inputRef),this.abortController=null,this.optionsEffect=b(()=>{if(!this.isOpen())return;this.abortController&&(this.abortController.abort(),this.abortController=null),this.abortController=new AbortController;let e=this.inputRef()?.nativeElement;e&&(queueMicrotask(()=>e.focus()),e.addEventListener("keydown",t=>{let i=this.optionsEl(),o=this.activeOptionIndex();t.key==="ArrowDown"?(t.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(o))):t.key==="ArrowUp"?(t.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(o))):t.key==="Enter"?(t.preventDefault(),o>-1&&(i[o].click(),queueMicrotask(()=>this.close("active")))):t.key==="Tab"&&(t.preventDefault(),this.close("closed"))},{signal:this.abortController.signal}))}),this.inputValueEffect=b(()=>{if(!this.searchable())return;let t=this.inputValue(),i=this.createWildcardRegex(t),o=this.optionsEl(),s=!1;for(let r=0;r<o.length;r++){let m=o[r];if(!m.textContent)continue;if(!t||t===""){m.classList.remove("hide-option");continue}!i.test(m.textContent.toLowerCase())||m.disabled?m.classList.add("hide-option"):(m.classList.remove("hide-option"),s||queueMicrotask(()=>this.activeOptionIndex.set(r)),s=!0)}}),this.activeOptionIndexEffect=b(()=>{let e=this.optionsEl(),t=this.activeOptionIndex();for(let i=0;i<e.length;i++)e[i].classList.remove("active");t>-1&&(e[t].scrollIntoView({block:"center"}),e[t].classList.add("active"))})}nextActiveIndex(e){let t=this.optionsEl();if(e===-1||e===t.length-1)return 0;let i=e+1;if(this.searchable()){if(t[i].disabled)return this.nextActiveIndex(i);if(t[i].classList.contains("hide-option"))return this.nextActiveIndex(i)}return i}prevActiveIndex(e){let t=this.optionsEl();if(e===0||e===-1)return t.length-1;let i=e-1;if(this.searchable()){if(t[i].disabled)return this.prevActiveIndex(i);if(t[i].classList.contains("hide-option"))return this.prevActiveIndex(i)}return i}close(e="closed",t){this.inputValue.set(""),(!this.keepClickedOptionActive()||e==="closed")&&this.#e(),this.isOpen.set(!1),this.closed.emit(e==="active")}#e(){this.activeOptionIndex.set(-1);let e=this.optionsEl();for(let t=0;t<e.length;t++)e[t].classList.remove("active")}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null)}createWildcardRegex(e){let t=(e??"").toLowerCase(),i="^";for(let o of t)i+=".*"+this.escapeRegexChar(o);return i+=".*$",new RegExp(i,"i")}escapeRegexChar(e){return e.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-menu"]],contentQueries:function(t,i,o){t&1&&J(o,i.options,dt,5),t&2&&B()},viewQuery:function(t,i){t&1&&j(i.inputRef,He,5),t&2&&B()},inputs:{above:[1,"above"],right:[1,"right"],keepClickedOptionActive:[1,"keepClickedOptionActive"],isOpen:[1,"isOpen"],searchable:[1,"searchable"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ht,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(t,i){if(t&1){let o=I();x(ut),a(0,"spk-popover",2,0),le("isOpenChange",function(r){return v(o),ae(i.isOpen,r)||(i.isOpen=r),_(r)}),w("closed",function(){return v(o),_(i.close("fromPopover"))}),a(2,"div",3),w("click",function(){return v(o),_(i.isOpen.set(!0))}),p(3),l(),a(4,"spk-form-field",4),H(5,"input",5,1),l(),a(7,"div",6),w("click",function(){return v(o),_(i.close("active"))}),p(8,1),l()()}t&2&&(re("isOpen",i.isOpen),Y("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",ce(9,at)),f(4),R("hidden",i.searchable()===!1),f(3),R("searching",i.searchable()&&i.inputValue()!==""))},dependencies:[we,xe],encapsulation:2,changeDetection:0})}}return n})(),Ci=(()=>{class n{constructor(){this.value=u(void 0)}static{this.\u0275fac=function(t){return new(t||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(t,i){t&1&&H(0,"div",0),t&2&&N("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),Xi=(()=>{class n{#e=F($);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-radio"]],hostBindings:function(t,i){t&1&&w("click",function(){return i.onClick()})},ngContentSelectors:V,decls:2,vars:0,consts:[[1,"radio"]],template:function(t,i){t&1&&(x(),H(0,"div",0),p(1))},encapsulation:2,changeDetection:0})}}return n})();var Si=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-spinner"]],decls:0,vars:0,template:function(t,i){},encapsulation:2,changeDetection:0})}}return n})(),Gi=(()=>{class n{constructor(){this.#e=F($),this.value=u(),this.label=u(),this.placeholder=u(),this.readonly=P(!1),this.lazySearch=u(!1),this.inlineSearch=u(!1),this.asText=u(!1),this.isClearable=u(!0),this.selectMultiple=u(!1),this.optionTemplate=u(null),this.selectedOptionTemplate=u(null),this.placeholderTemplate=u(null),this.isOpen=P(!1),this.isLoading=P(!1),this.options=P([]),this.selectedOptions=P([]),this.cleared=U(),this.inlineTemplate=ie(me),this.optionsWrapRef=A.required("optionsWrap"),this.inputRefInput=ie("input"),this.textareaRefInput=ie("textarea"),this.inputValue=S(""),this.prevInputValue=S(null),this.focusedOptionIndex=S(-1),this._isClearable=O(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=O(()=>this.#e.nativeElement.classList.toString()),this.placeholderText=O(()=>{let e=this.placeholder(),t=this.inputRefEl();return e||t?.placeholder||null}),this.selectedOptionValues=O(()=>{let e=this.selectedOptions(),t=this.value();return t?e.map(i=>this.#o(i,t)):e}),this.filteredOptions=O(()=>{let e=this.options(),t=this.label(),i=this.inlineSearch(),o=this.inputValue().toLowerCase();return e.length<=0?[]:!i||o===""?e:e.filter(s=>(t?(this.#o(s,t)??"").toString().toLowerCase():(s??"").toString().toLowerCase()).includes(o))}),this.#i=b(()=>{let e=this.inputRefEl();e&&(e.disabled=this.readonly())}),this.inputRefEl=O(()=>{let e=this.inputRefInput(),t=this.textareaRefInput(),i=e?e.nativeElement:t?t.nativeElement:null;return i?(i.autocomplete="off",this.#r(i),i.addEventListener("focus",()=>{this.readonly()||this.open()}),this.hasSearch()&&i.addEventListener("input",o=>{let s=o.target.value,r=this.inputValue();s!==r&&(this.focusedOptionIndex.set(0),this.inputValue.set(s),this.updateInputElValue())}),i.addEventListener("inputValueChanged",o=>{let s=o.detail.value,r=this.inputValue();if(s!==r){if(s===""){this.clear();return}this.setSelectedOptionsFromValue(s),this.setInputValueFromSelectedOptions(),this.#t()}}),i):(console.warn("<spk-select> input element not found are you missing #input or #textarea on the projected element?"),null)}),this.openAbortController=null,this.isOpenEffect=b(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let t=this.inputRefEl();if(!t)return;t.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=b(()=>{let e=this.inputValue();this._inputValue=e}),this.inputRefElEffect=b(()=>{let e=this.inputRefEl();e&&e.value!==this._inputValue&&(this.setSelectedOptionsFromValue(e.value),this.setInputValueFromSelectedOptions())}),this.selectedLabels=O(()=>{let e=this.selectedOptions();return this.label()?e.map(i=>this.getLabel(i)).join(", "):e.join(", ")}),this.inputState=O(()=>this.selectedOptions().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=O(()=>this.inlineSearch()||this.lazySearch()),this.#s=b(()=>{if(this.selectMultiple()&&this.hasSearch())return;let e=this.selectedOptions(),t=this.value(),i=e.map(o=>t?this.#o(o,t):o).join(",");this.inputValue.set(i)})}#e;#i;#s;setSelectedOptionsFromValue(e){let t=this.options(),i=this.value(),o=this.selectMultiple(),s=e.toString().split(",");if(s.length===0){this.selectedOptions.set([]);return}let r=o?s:[s[0]],m=t.filter(h=>{let C=i?this.#o(h,i)?.toString():h?.toString();return C&&r.includes(C)});this.selectedOptions.set(o?m:[m[0]])}setInputValueFromSelectedOptions(){let e=this.selectedOptions(),t=this.value();if(e.length===0){this.inputValue.set(""),this.updateInputElValue();return}let i=e.map(o=>t?this.#o(o,t):o).join(",");this.inputValue.set(i),this.updateInputElValue()}getLabel(e){let t=this.label();return t?this.#o(e,t):e}toggleOptionByIndex(e,t){let i=this.filteredOptions()[e];if(!i)throw new Error("Option not found: this should never happen if it does report it as an issue on github");t&&t.stopPropagation();let o=this.selectMultiple(),s=this._isClearable(),r=this.value(),m=this.selectedOptionValues(),h=r?this.#o(i,r):i;this.prevInputValue.set(null),this.selectedOptions.update(C=>{let M=m.indexOf(h);if(M>-1){let q=[...C.slice(0,M),...C.slice(M+1)];return s||q.length>0?q:C}else return this.focusedOptionIndex.set(e),o?[...C,i]:[i]}),o?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromSelectedOptions(),o&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(e,t){e.stopPropagation(),this.selectedOptions.update(i=>[...i.slice(0,t),...i.slice(t+1)]),this.setInputValueFromSelectedOptions()}isSelected(e){let t=this.value(),i=this.filteredOptions()[e],o=t?this.#o(i,t):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.#t())}#t(){let e=this.selectedOptionValues()[0],t=this.value();if(e){let i=this.filteredOptions().findIndex(o=>t?this.#o(o,t)===e:o===e);this.focusedOptionIndex.set(i)}else this.focusedOptionIndex.set(-1)}close(){this.isOpen.set(!1);let e=this.prevInputValue();this.hasSearch()&&e&&(this.inputValue.set(e),this.setInputValueFromSelectedOptions()),this.hasSearch()&&this.selectMultiple()&&this.setInputValueFromSelectedOptions()}clear(e){e?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let e=this.inputRefEl(),t=this.inputValue();e&&(e.value=t,e.dispatchEvent(new Event("input")))}#o(e,t){return t.split(".").reduce((i,o)=>i?.[o],e)}#r(e){Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").set.call(this,t);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(o),t}})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-select-new"]],contentQueries:function(t,i,o){t&1&&(J(o,i.inlineTemplate,me,5),J(o,i.inputRefInput,He,5),J(o,i.textareaRefInput,ft,5)),t&2&&B(3)},viewQuery:function(t,i){t&1&&j(i.optionsWrapRef,mt,5),t&2&&B()},hostVars:2,hostBindings:function(t,i){t&2&&R("multiple",i.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],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",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared"},ngContentSelectors:vt,decls:31,vars:19,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(t,i){if(t&1){let o=I();x(gt),_e(0)(1)(2)(3)(4)(5)(6)(7)(8)(9),a(10,"spk-popover",2,0),le("isOpenChange",function(r){return v(o),ae(i.isOpen,r)||(i.isOpen=r),_(r)}),w("closed",function(){return v(o),_(i.close())}),a(12,"spk-form-field",3),w("click",function(){return v(o),_(i.open())}),p(13,0,["ngProjectAs","label",5,["label"]]),a(14,"div",4)(15,"div",5),D(16,Et,2,0)(17,Vt,2,1),p(18,1),p(19,2),l()(),D(20,Rt,2,0,"spk-icon",6)(21,Ft,1,0,"spk-spinner",7)(22,Pt,2,0,"spk-icon",6)(23,At,2,0,"spk-icon",6)(24,jt,2,0,"spk-icon",6)(25,Lt,2,0,"spk-icon",6)(26,Ht,2,0,"spk-icon",6),l(),a(27,"div",8,1),oe(29,Qt,4,6,"li",9,ne),l()()}if(t&2){Z(i.placeholderTemplate());let o=i.optionTemplate(),s=i.selectedOptionTemplate(),r=i.inlineTemplate();f(4);let m=Z(i.selectedOptions()),h=i.inputState();f(2),Z(s||o||r),f(),Z(o||r),f();let C=Z(!i.asText()&&i.selectMultiple()),M=i.hasSearch()&&i.isOpen()&&C;f(2),re("isOpen",i.isOpen),Y("disableOpenByClick",!0)("options",ce(18,Be)),f(2),G(i.readonly()?"readonly":""),R("autosize",i.selectMultiple()),f(2),R("show-search-text",M),f(),R("is-selected",h==="selected"),f(),T(m.length>0?16:M?-1:17),f(4),T(h==="closed"?20:h==="loading"?21:h==="open-searching"?22:h==="searching"?23:h==="selected"&&i._isClearable()?24:h==="selected"&&!i._isClearable()?25:26),f(9),se(i.filteredOptions())}},dependencies:[Ae,we,xe,de,gi,Si,We],encapsulation:2,changeDetection:0})}}return n})(),je=(()=>{class n{constructor(){this.#e=F($),this.value=u(null),this.#i=b(()=>{this.#e.nativeElement.value=this.value()})}#e;#i;hasAttribute(e){return this.#e.nativeElement.hasAttribute(e)}removeAttribute(e){this.#e.nativeElement.removeAttribute(e)}setAttribute(e,t){this.#e.nativeElement.setAttribute(e,t)}getAttribute(e){return this.#e.nativeElement.getAttribute(e)}addClass(e){this.#e.nativeElement.classList.add(e)}removeClass(e){this.#e.nativeElement.classList.remove(e)}scrollIntoView(e){this.#e.nativeElement.scrollIntoView(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-option"]],inputs:{value:[1,"value"]},ngContentSelectors:V,decls:1,vars:0,template:function(t,i){t&1&&(x(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),ki=["primary","accent","warn","error","success"],Ki=(()=>{class n{constructor(){this.#e=F(Me),this.#i=F($),this.optionsRef=A("optionsRef"),this.options=ge(je),this.formFieldWrapperRef=A.required("formFieldWrapper"),this.inputWrapRef=A.required("inputWrap"),this.inputValue=P(""),this.readonly=u(!1),this.isFreeText=u(!1),this.selectMultiple=u(!1),this.hideClearButton=u(!1),this.displayValue=u(""),this.displayFn=u(e=>`${e}`),this.above=u(!1),this.right=u(!1),this.change=U(),this.#s=S(!1),this.#t=S(null),this.#o=S(null),this.#r=S(!1),this.#n=S(-1),this.isOpen=S(!1),this._isOpen=S(!1),this.isSearchInput=O(()=>this.#t()?.type==="search"),this.chipClass=O(()=>Array.from(this.#i.nativeElement.classList).filter(e=>ki.includes(e)).join(" ")),this._displayValue=O(()=>this.displayFn()?this.displayFn()(this.inputValue()):this.displayValue()??this.inputValue()),this.selectedOption=O(()=>this.#o()?this.options().find(e=>e.value()===this.#o()):null),this.optionsOpenController=null,this.inputController=null,this.clickController=null,this.inputAbortController=null,this.#p=b(()=>{this.#s();let e=this.#i.nativeElement.querySelector("input");e&&(e.disabled=this.readonly(),this.#v(e),e.addEventListener("inputValueChanged",t=>{this.inputValue.set(t.detail.value),this.selectMultiple()&&this.#l()}),this.#t.set(e),e.autocomplete="off",typeof e.value=="string"&&this.inputValue.set(e.value))}),this.#d=b(()=>{this.inputController&&this.inputController.abort(),this.inputController=new AbortController;let e=this.#t();e&&(e.addEventListener("focus",()=>{this.isOpen.set(!0)}),e.addEventListener("keydown",t=>{(this.selectMultiple()||!this.isSearchInput()&&!this.isFreeText())&&t.preventDefault(),t.key==="Escape"?this.close():t.key==="ArrowDown"?this.#n()===null||this.#n()<0||this.#n()===this.options().length-1?this.#n.set(this.#c()):this.#n.set(this.#n()+1):t.key==="ArrowUp"?this.#n()===null||this.#n()<0||this.#n()===0?this.#n.set(this.options().length-1):this.#n.set(this.#n()-1):t.key==="Enter"?(this.isFreeText()&&this.close(!0),this.#n()>-1&&this.selected(this.getOptionElement(this.#n()))):t.key==="Tab"?this.close(!0):(this.#n.set(-1),this.isFreeText()&&this.calculateSelectedOptions())},{signal:this.inputController?.signal}))}),this.#u=b(()=>{this.isOpen()&&this.#g()}),this.#h=b(()=>{let e=this.inputValue();this.#t()&&(this.#t().value=e??"",this.#t().dispatchEvent(new Event("input")))}),this.#a=typeof MutationObserver<"u"&&new MutationObserver(e=>{for(var t of e)t.type=="childList"&&t.target.classList.contains("input")&&this.#s.set(!this.#s())})}#e;#i;#s;#t;#o;#r;#n;#p;#d;#u;#h;ngOnInit(){typeof MutationObserver<"u"&&this.#a.observe(this.inputWrapRef().nativeElement,{attributes:!0,childList:!0,subtree:!0})}getOptionElement(e){return this.options()[e]}deselect(e,t=!1){e?.stopPropagation(),this.#t()&&(this.#t().value="",this.#t().dispatchEvent(new Event("input"))),this.#n.set(this.#c()),this.#r.set(!1),(t||!this.selectMultiple())&&(this.isOpen.set(!1),this.#t()?.blur())}selected(e){if(!e)return;let t=e.value(),i=this.options().indexOf(e);if(e.hasAttribute("deselect"))return this.deselect(null,!0);if(this.#n.set(i),e&&!this.selectMultiple()){this.inputValue.set(t);for(let o=0;o<this.options().length;o++){let s=this.options()[o];s.value()===t?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}}else e&&this.selectMultiple()&&(this.inputValue().includes(t)?(this.#e.removeAttribute(e,"selected"),this.toggleOption(t)):(this.#e.setAttribute(e,"selected","selected"),this.inputValue.set(this.inputValue().length?`${this.inputValue()},${t}`:t)));this.#r.set(!1),this.#o.set(null),this.selectMultiple()?this.#t()?.focus():(this.isOpen.set(!1),this.#t()?.blur()),this.change.emit(this.inputValue())}calculateSelectedOptions(){setTimeout(()=>{let e=this.options(),i=this.#t()?.value;for(let o=0;o<e.length;o++){let s=e[o];s.value()===i?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}})}toggleOption(e,t){t&&(t.preventDefault(),t.stopPropagation()),this.inputValue.set(this.inputValue().startsWith(e+",")?this.inputValue().replace(e+",",""):this.inputValue().includes(","+e)?this.inputValue().replace(","+e,""):this.inputValue().replace(e,""))}close(e=!1){let t=this.#o();this.isSearchInput()&&!this.isFreeText()&&t&&setTimeout(()=>this.inputValue.set(t)),this.isOpen.set(!1),this.#r.set(!1),e||this.#t()?.blur(),this.#m()}open(e){e.preventDefault(),this.isSearchInput()&&!this.#r()&&!this.isFreeText()?(this.#o.set(this.inputValue()),this.inputValue.set(""),this.#t().focus(),this.#t().value="",this.#t().dispatchEvent(new Event("input")),this.#n.set(-1)):(this.isSearchInput()||this.selectMultiple())&&this.#t().focus(),this.isOpen.set(!0),this.#r.set(!0),this.#f(),this.#l()}#f(){this.clickController&&this.clickController.abort(),this.clickController=new AbortController,this.optionsRef()?.nativeElement?.addEventListener("click",e=>{if(!e.target)return;let t=e.target.closest("spk-option"),i=this.options().find(o=>o.value()===t.value);i&&this.selected(i)},{signal:this.clickController?.signal})}#m(){this.clickController&&this.clickController.abort()}#g(){for(let e=0;e<this.options().length;e++){let t=this.options()[e];t.removeClass("focused"),this.#n()===e&&(t.addClass("focused"),t.scrollIntoView({block:"center"}))}}#l(){let e=this.#t();if(!e)return;this.inputValue.set(e.value);let t=e.value.split(",");setTimeout(()=>{let i=this.options();for(let o=0;o<i.length;o++){let s=i[o].value();s&&t.includes(s)?this.#e.setAttribute(i[o],"selected","selected"):this.#e.removeAttribute(i[o],"selected")}})}#c(){let e=this.options();for(let t=0;t<e.length;t++)if(!e[t].hasAttribute("deselect"))return t;return-1}#a;#v(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(o),t}}),e}ngOnDestroy(){this.clickController&&this.clickController.abort(),this.inputController&&this.inputController.abort(),this.optionsOpenController&&this.optionsOpenController.abort(),typeof MutationObserver<"u"&&this.#a.disconnect()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-select"]],contentQueries:function(t,i,o){t&1&&J(o,i.options,je,4),t&2&&B()},viewQuery:function(t,i){t&1&&(j(i.optionsRef,Ut,5),j(i.formFieldWrapperRef,$t,5),j(i.inputWrapRef,lt,5)),t&2&&B(3)},inputs:{inputValue:[1,"inputValue"],readonly:[1,"readonly"],isFreeText:[1,"isFreeText"],selectMultiple:[1,"selectMultiple"],hideClearButton:[1,"hideClearButton"],displayValue:[1,"displayValue"],displayFn:[1,"displayFn"],above:[1,"above"],right:[1,"right"]},outputs:{inputValue:"inputValueChange",change:"change"},ngContentSelectors:Yt,decls:15,vars:8,consts:[["formFieldWrapper",""],["inputWrap",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"display-value"],["suffix","",1,"deselect-indicator"],["suffix","",1,"search-indicator"],["suffix","",1,"select-open-indicator",3,"open"],[1,"sparkle-options"],[1,"small","simple",3,"class"],[1,"small","simple",3,"click"],["suffix","",1,"deselect-indicator",3,"click"],[1,"default-indicator"],["suffix","",1,"select-open-indicator"]],template:function(t,i){if(t&1){let o=I();x(zt),a(0,"spk-popover",3,0),le("isOpenChange",function(r){return v(o),ae(i.isOpen,r)||(i.isOpen=r),_(r)}),w("closed",function(){return v(o),_(i.close())}),a(2,"spk-form-field",4),w("click",function(r){return v(o),_(i.open(r))}),p(3,0,["ngProjectAs","label",5,["label"]]),a(4,"div",5,1),D(6,Kt,2,1,"div",6)(7,Jt,2,1,"div",6),p(8,1),l(),D(9,Zt,4,0,"div",7)(10,ei,4,0,"div",8)(11,ti,4,2,"div",9),l(),a(12,"div",10,2),p(14,2),l()()}t&2&&(re("isOpen",i.isOpen),Y("disableOpenByClick",!0)("options",ce(7,Be)),f(2),G(i.readonly()?"readonly":""),f(4),T(i.selectMultiple()?6:i._displayValue()&&i.isSearchInput()&&!i.isOpen()||i._displayValue()&&!i.isSearchInput()?7:-1),f(3),T((i.inputValue()&&!i.isOpen()&&i.inputValue().length>0||i.selectedOption())&&!i.hideClearButton()?9:i.isSearchInput()&&!i.selectedOption()?10:11))},dependencies:[xe,de,We,we],encapsulation:2,changeDetection:0})}}return n})(),Ji=(()=>{class n{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=u(!1),this.isOpen=P(!1),this.type=u(""),this.dragImageElement=A.required("dragImageElement"),this.dragIsEnding=S(!1),this.dragIsOnScreen=S(!0),this.isDragging=S(!1),this.dragPositionX=S(0),this.dragActualPositionX=O(()=>{let e=this.dragPositionX(),t=.32;return e>this.openWidthTreshold?this.openWidthTreshold+(e-this.openWidthTreshold)*t:e}),this.draggingStyle=O(()=>this.type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=b(()=>{this.isDragging()&&document.body.classList.add("dragging")})}drop(e){e.stopPropagation(),this.#e(e.clientX)}#e(e){this.isDragging.set(!1),e<=0?this.isOpen.set(!1):e>this.openWidthTreshold?this.isOpen.set(!0):e<this.openWidthTreshold&&(!this.isOpen()&&e<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(e){(e.clientX<0||!this.dragIsOnScreen())&&this.#e(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(e){e.preventDefault(),this.#i(e)}dragStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#i(e)}#i(e){e.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.clientX)}),this.#i(e)}touchStart(e){e.stopPropagation(),this.isDragging.set(!0)}touchMove(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.touches[0].clientX)})}touchEnd(e){e.stopPropagation(),this.#e(e.changedTouches[0].clientX)}touchCancel(e){e.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-sidenav"]],viewQuery:function(t,i){t&1&&j(i.dragImageElement,ii,5),t&2&&B()},hostVars:10,hostBindings:function(t,i){t&2&&R("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:oi,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(t,i){t&1&&(x(ni),D(0,si,2,0,"div",1)(1,ri,1,0,"div",2),a(2,"div",3),p(3),l(),a(4,"div",4),D(5,ai,1,0,"div",5),a(6,"div",6),p(7,1),l(),a(8,"main"),p(9,2),l()()),t&2&&(T(i.type()==="overlay"?0:-1),f(),T(i.type()==="overlay"&&i.isDragging()?1:-1),f(3),N("transform",i.draggingStyle()),f(),T(i.type()==="overlay"&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})();var Zi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-stepper"]],ngContentSelectors:V,decls:1,vars:0,template:function(t,i){t&1&&(x(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var en=(()=>{class n{constructor(){this.tableColumns=u([]),this.loading=u(!1),this.columnSizes=O(()=>this.tableColumns().reduce((e,t,i)=>i===this.tableColumns().length-1?`${e} max-content`:`${e} 1fr`,"")),this.data=u([]),this.dataChange=U(),this.#e=null,this.#i=S(!1),this.sortByColumn=P(null),this.e=b(()=>{let e=this.sortByColumn();if(e===null)return this.#i()||(this.#e=this.data(),this.#i.set(!0)),this.dataChange.emit(JSON.parse(JSON.stringify(this.#e)));let t=e.startsWith("-")?e.slice(1):e,i=e.startsWith("-"),o=this.data().sort((s,r)=>{let m=s[t],h=r[t],C=0;return typeof m=="number"&&typeof h=="number"&&(C=m-h),m instanceof Date&&h instanceof Date&&(C=m.getTime()-h.getTime()),typeof m=="string"&&typeof h=="string"&&(C=m.localeCompare(h,void 0,{sensitivity:"base"})),i?-C:C});this.dataChange.emit(o)})}#e;#i;toggleSort(e){let t=this.sortByColumn(),i=t===e?`-${e}`:t===`-${e}`?null:e;this.sortByColumn.set(i)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-table"]],hostVars:2,hostBindings:function(t,i){t&2&&N("grid-template-columns",i.columnSizes())},inputs:{tableColumns:[1,"tableColumns"],loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:ci,decls:6,vars:2,consts:[[1,"indeterminate","primary"],[1,"no-rows"]],template:function(t,i){t&1&&(x(li),a(0,"thead"),p(1),D(2,pi,1,0,"spk-progress-bar",0),l(),a(3,"tbody"),p(4,1),l(),D(5,di,2,0,"div",1)),t&2&&(f(2),T(i.loading()?2:-1),f(3),T(i.loading()?-1:5))},dependencies:[Ci],encapsulation:2,changeDetection:0})}}return n})(),tn=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-tabs"]],ngContentSelectors:V,decls:1,vars:0,template:function(t,i){t&1&&(x(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var nn=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-toggle"]],ngContentSelectors:V,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(t,i){t&1&&(x(),a(0,"div",0),H(1,"div",1),l(),p(2))},encapsulation:2,changeDetection:0})}}return n})(),on=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.disabled=u(!1),this.above=u(!1),this.right=u(!1),this._above=S(this.above()),this._right=S(this.right()),this.message=u.required(),this.isOpen=P(!1),this.closed=U(),this.triggerRef=A.required("triggerRef"),this.tooltipRef=A.required("tooltipRef"),this.id=S("--"+ye()),this.menuStyle=S(null),this.isCalculatingPosition=O(()=>{let e=this.tooltipRef()?.nativeElement;return this.isOpen()?(e?.showPopover(),!0):(e.hidePopover(),this.abortController?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=b(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let t=this.abortController.signal;this.calculateMenuPosition(),this.#i(this.tooltipRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:t}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:t})}),this.scrollableStyles=["scroll","auto"]}#e;#i(e){let t=e.parentElement;for(;t;){if(this.scrollableStyles.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.tooltipRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,r=o+this.#e,m=s+t.width>window.innerWidth,h=r+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(h),this._right.set(m);else{if(this.above()){let C=e.top-t.height-this.#e;C>=0&&(r=C)}else h&&(r=e.top-t.height-this.#e);if(this.right()){let C=e.right-t.width;C>=0&&(s=C)}else m&&(r=h?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:r+"px"})}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["spk-tooltip"]],viewQuery:function(t,i){t&1&&(j(i.triggerRef,Le,5),j(i.tooltipRef,ui,5)),t&2&&B(2)},hostVars:6,hostBindings:function(t,i){t&2&&R("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(t,i){if(t&1){let o=I();x(),a(0,"div",2,0),w("mouseover",function(){return v(o),_(i.isOpen.set(!0))})("mouseout",function(){return v(o),_(i.isOpen.set(!1))}),p(2),l(),a(3,"div",3,1),k(5),l()}t&2&&(N("anchor-name",i.id()),f(3),ve(i.menuStyle()),N("position-anchor",i.id()),f(2),K(" ",i.message()," "))},encapsulation:2,changeDetection:0})}}return n})();var sn=(()=>{class n{constructor(){this.filesOver=S(!1),this.filesDropped=U()}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!0)}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1)}ondrop(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1);let t=e.dataTransfer?.files;t&&t.length>0&&this.filesDropped.emit(t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=Ie({type:n,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(t,i){t&1&&w("dragover",function(s){return i.onDragOver(s)})("dragleave",function(s){return i.onDragLeave(s)})("drop",function(s){return i.ondrop(s)}),t&2&&R("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();export{de as a,Wi as b,qi as c,fi as d,Ni as e,Qi as f,mi as g,Ui as h,gi as i,We as j,$i as k,xe as l,zi as m,Yi as n,Ci as o,Xi as p,Gi as q,je as r,Ki as s,Ji as t,Zi as u,en as v,tn as w,nn as x,on as y,sn as z};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as K}from"./chunk-
|
|
1
|
+
import{b as K}from"./chunk-PNJEVGID.js";import{b as X}from"./chunk-PPRHD3ZV.js";import{a as z,d as J,g as q}from"./chunk-UIC2LGAH.js";import"./chunk-MCLDJCPW.js";import"./chunk-7IRVNC4S.js";import{Ab as R,Bb as i,Cb as a,Db as g,Hb as u,Nb as A,Nc as W,Ob as D,Pa as E,Pb as y,Ra as l,Tb as S,Ub as f,Xb as w,Y as v,da as d,ea as _,eb as h,gc as c,hc as C,ic as I,jb as k,jc as N,lc as $,mc as B,nc as V,oc as U,p as T,sb as F,sc as G,ua as m,xb as x,yb as M,zb as P}from"./chunk-2M52SFS6.js";import{a as b,b as O}from"./chunk-C6Q5SG76.js";var j=()=>({maxWidth:"700px",width:"100%"});function H(s,t){if(s&1&&(i(0,"a",9)(1,"spk-icon"),c(2,"link"),a()()),s&2){let e=f().$implicit;w("href",e.Url,E)}}function Q(s,t){if(s&1){let e=u();i(0,"div",2)(1,"h4"),c(2),k(3,H,3,1,"a",9),a(),i(4,"p"),c(5),g(6,"br"),i(7,"i"),c(8),a()(),i(9,"div",10)(10,"button",11),S("click",function(){let o=d(e).$implicit,r=f();return _(r.openLicense(o))}),A(11,1),g(12,"spk-icon"),D(),a()()()}if(s&2){let e=t.$implicit;l(2),N(" ",e.Title," - ",e.data==null?null:e.data.license," "),l(),x(e.Url?3:-1),l(2),I(" ",e.data==null?null:e.data.description," "),l(3),C(e.data==null?null:e.data.notes)}}var L=class s{#e=v(X);licenses=K(this.#e.getApiV1Licenses().pipe(T(t=>t.map(e=>O(b({},e),{data:e.Jsondata?JSON.parse(e.Jsondata):null})))));dialogIsOpen=m(!1);dialogLicense=m(null);#t=W(()=>{this.dialogLicense()&&this.dialogIsOpen.set(!0)});openLicense(t){this.dialogLicense.set(t)}closeLicense(){this.dialogIsOpen.set(!1),this.dialogLicense.set(null)}breakIntoLines(t){let e=t.split(`
|
|
2
2
|
`),n="";for(let o=0;o<e.length;o++)n+=`<li>${e[o]}</li>`;return n}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=h({type:s,selectors:[["app-libraries"]],decls:15,vars:5,consts:()=>{let t;t=$localize`Libraries`;let e;return e=$localize` Details ${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:arrow-square-in${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[t,e,[1,"license"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"license-dialog"],["footer",""],["spk-button","","type","button",3,"click"],[3,"href"],[1,"actions"],["spk-button","",3,"click"]]},template:function(e,n){if(e&1){let o=u();i(0,"h3"),y(1,0),a(),P(2,Q,13,5,"div",2,M),i(4,"spk-dialog",3),V("isOpenChange",function(p){return d(o),B(n.dialogIsOpen,p)||(n.dialogIsOpen=p),_(p)}),i(5,"header",4)(6,"h3"),c(7),a()(),i(8,"div",5),U(9),i(10,"div",6),c(11),a()(),i(12,"footer",7)(13,"button",8),S("click",function(){return d(o),_(n.dialogLicense.set(null))}),c(14,"Close"),a()()()}if(e&2){let o,r;l(2),R(n.licenses()),l(2),$("isOpen",n.dialogIsOpen),F("options",G(4,j)),l(3),C((o=n.dialogLicense())==null?null:o.Title);let p=(r=(r=n.dialogLicense())==null?null:r.License)!==null&&r!==void 0?r:"";l(4),I(" ",p," ")}},dependencies:[z,q,J],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}h4[_ngcontent-%COMP%]{font:var(--paragraph-10)}a[_ngcontent-%COMP%]{text-decoration:none}.license[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-level-40);display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.license[_ngcontent-%COMP%]:first-of-type{border-top:1px solid var(--base-level-40)}.license[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.25rem;align-items:center}.license-dialog[_ngcontent-%COMP%]{background-color:var(--base-level-10);color:var(--base-level-70);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;max-height:31.25rem;white-space:pre;border:1px solid var(--base-level-40)}"],changeDetection:0})};export{L as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as v,c as b}from"./chunk-MADB4EX7.js";import{b as w}from"./chunk-PPRHD3ZV.js";import{E as f,Lc as d,N as m,S as i,Y as s,g as h,l as S,ua as e,y as p}from"./chunk-2M52SFS6.js";var r=class o{#o=s(w);#t=e("disconnected");#e=e(null);#n=e(-1);#s=e(0);#i=e(!1);#c=new h;connectionStatus=this.#t.asReadonly();serverState=this.#e.asReadonly();duration=s(v).relayIsEnabled()?"94s":"299s";start(){this.#i.set(!0),this.#c=new h,this.#r()}stop(){this.#c.next(),this.#c.complete(),this.#i.set(!1)}reconnect(){this.stop(),this.start()}reconnectIfNeeded(){console.log("reconnectIfNeeded"),!this.#i()&&this.reconnect()}#r(){this.#t.set("connecting"),this.#o.getApiV1Serverstate({lastEventId:this.#n(),longpoll:this.#n()>0,duration:this.duration}).pipe(m(this.#c),p(t=>(this.#l(t),S(null))),f(()=>{this.#h()})).subscribe(t=>{t&&this.#a(t)})}#a(t){this.#t.set("connected"),this.#e.set(t),this.#n.set(t.LastEventID||-1),this.#s.set(0)}#l(t){let n=this.#s()+1;this.#s.set(n),n>3&&this.#t.set("disconnected")}#h(){this.#i()&&this.#r()}static \u0275fac=function(n){return new(n||o)};static \u0275prov=i({token:o,factory:o.\u0275fac,providedIn:"root"})};var a=class o{#o=s(b);#t=null;#e=e("disconnected");#n=e(null);shouldConnect=e(!0);connectionStatus=this.#e.asReadonly();serverState=this.#n.asReadonly();start(){this.#s(),this.shouldConnect.set(!0)}#s(){let t=this.#o.token();if(!t){console.error("No access token available");return}let n=window.location.protocol==="https:"?"wss:":"ws:",u=window.location.port?`:${window.location.port}`:"";window.location.port==="4200"&&(u=":8200");let y=window.location.hostname,I=`${n}//${y}${u}/notifications?token=${t}`;this.#e.set("connecting"),this.#t=new WebSocket(I),this.#t.onopen=()=>{console.log("WebSocket connection established"),this.#e.set("connected")},this.#t.onmessage=c=>{try{let l=JSON.parse(c.data);this.#n.set(l)}catch(l){console.error("Error parsing WebSocket message",l)}},this.#t.onclose=c=>{console.log("WebSocket connection closed",c),this.#e.set("disconnected"),this.shouldConnect()&&setTimeout(()=>this.#s(),5e3)},this.#t.onerror=c=>{console.error("WebSocket error",c),this.#e.set("disconnected")}}stop(){this.shouldConnect.set(!1),this.#t?.close()}reconnect(){this.#t?.close(),this.start()}reconnectIfNeeded(){this.#t?.readyState!==WebSocket.OPEN&&this.reconnect()}static \u0275fac=function(n){return new(n||o)};static \u0275prov=i({token:o,factory:o.\u0275fac,providedIn:"root"})};var k=class o{#o=s(a);#t=s(r);#e=e("longpoll");connectionStatus=d(()=>this.#e()==="websocket"?this.#o.connectionStatus():this.#t.connectionStatus());serverState=d(()=>this.#e()==="websocket"?this.#o.serverState():this.#t.serverState());setConnectionMethod(t){t==="websocket"?(this.#o.reconnectIfNeeded(),this.#t.stop()):(this.#t.reconnectIfNeeded(),this.#o.stop()),this.#e.set(t)}getConnectionMethod(){return this.#e()}static \u0275fac=function(n){return new(n||o)};static \u0275prov=i({token:o,factory:o.\u0275fac,providedIn:"root"})};export{k as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as Ae}from"./chunk-2WZR3NHU.js";import{a as Kt}from"./chunk-AYWJL6PH.js";import{a as Qt}from"./chunk-DW725235.js";import"./chunk-DNHLTHLR.js";import{a as we,b as te}from"./chunk-PNJEVGID.js";import{a as Ge}from"./chunk-KIB4MYBL.js";import{a as ce}from"./chunk-YOP6HOXH.js";import{a as Ht}from"./chunk-WWJFELTU.js";import"./chunk-RTVM3BJK.js";import{a as bt}from"./chunk-7LP2EQ7M.js";import{a as Wt}from"./chunk-X6SCWL5V.js";import"./chunk-7LRQSKYZ.js";import"./chunk-L5D4JLN3.js";import"./chunk-W4MEGIZH.js";import"./chunk-AXHB6A4N.js";import{a as Vt,b as j,d as H,e as de,g as me,h as ue,i as Dt,l as Se,m as ge,o as Te,p as fe,q as Ce,r as Ee}from"./chunk-XKAASYKO.js";import"./chunk-MADB4EX7.js";import{b as k}from"./chunk-PPRHD3ZV.js";import"./chunk-LJ3ULEOG.js";import"./chunk-C5EHOW7U.js";import{a as Ne,b as Lt,g as he,i as Xt,k as zt,l as W,n as Bt,o as Ut,p as qt,q as jt,r as Oe,s as Me,x as Pe,y as Ie}from"./chunk-UIC2LGAH.js";import"./chunk-MCLDJCPW.js";import"./chunk-7IRVNC4S.js";import"./chunk-DNDOALN6.js";import{Ab as x,Bb as s,Cb as o,D as Fe,Db as E,E as w,Eb as le,Fb as _e,Gb as yt,Hb as h,L as b,Lc as U,Mc as kt,Nb as D,Nc as q,Ob as L,Pa as Ot,Pb as p,Qb as Y,Ra as r,Rb as ee,S as ae,Sb as pe,Tb as g,Ub as l,Xb as F,Y as N,Ya as Mt,Zb as O,aa as Ct,b as St,ba as Et,c as re,da as u,dc as Rt,ea as S,eb as V,ec as vt,fc as Ft,gc as c,hc as $,ia as Nt,ic as I,jb as C,k as gt,l as Z,lc as X,mc as z,n as Tt,nc as B,p as ft,pb as Pt,q as ve,qb as It,rc as wt,sb as m,sc as At,ta as ht,tc as Gt,ua as f,ub as P,uc as xt,xb as T,y as J,yb as A,zb as G,zc as $t}from"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";function Zt(i,n,e){!n&&Et(i);let t=n??N(Nt);return e?Ct(t,e):t}function xe(...i){let{normalizedSources:n,hasInitValue:e,operator:t,options:a}=nn(i),_=Zt(xe,a?.injector);return e?te(ve(n).pipe(t),{initialValue:a.initialValue,injector:_}):te(ve(n).pipe(t),{injector:_,requireSync:!0})}function nn(i){if(!i||!i.length||typeof i[0]!="object")throw new TypeError("derivedFrom needs sources");let n=typeof i[1]=="function";if(i.length==3&&!n)throw new TypeError("derivedFrom needs pipeable operator as a second argument");n||i.splice(1,0,St);let[e,t,a]=i,_=!!a&&"initialValue"in a;return{normalizedSources:Object.entries(e).reduce((R,[M,v])=>{if(ht(v))R[M]=we(v,{injector:a?.injector}).pipe(b(kt(v)));else if(Tt(v))R[M]=v.pipe(Fe());else if(typeof v=="function"){let oe=U(v);R[M]=we(oe,{injector:a?.injector}).pipe(b(v()))}else R[M]=gt(v).pipe(Fe());return R},Array.isArray(e)?[]:{}),operator:t,hasInitValue:_,options:a}}var K=class i{#e=N(k);#i=te(this.#e.getApiV1Serversettings());#t=f(void 0);serverSettings=U(()=>this.#t()||this.#i());refreshServerSettings(){this.#e.getApiV1Serversettings().subscribe({next:n=>{this.#t.set(n)}})}withRefresh(){return re(w(()=>this.refreshServerSettings()))}static \u0275fac=function(e){return new(e||i)};static \u0275prov=ae({token:i,factory:i.\u0275fac,providedIn:"root"})};var on=["formRef"],sn=()=>[import("./chunk-4A4CWPH7.js").then(i=>i.NgTemplateOutlet)],rn=(i,n)=>({index:i,formView:n,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),an=i=>({$implicit:i});function ln(i,n){if(i&1){let e=h();D(0,3,1),s(1,"button",14,2),g("click",function(){let a=u(e).$implicit,_=l();return S(_.addNewOption(a))}),o(),L()}if(i&2){let e=n.$implicit;r(),Y(e.name),ee(0)}}function _n(i,n){i&1&&yt(0)}function pn(i,n){if(i&1&&C(0,_n,1,0,"ng-container",15),i&2){let e=n.$implicit,t=n.$index;l(2);let a=Ft(15);m("ngTemplateOutlet",a)("ngTemplateOutletContext",Gt(5,an,xt(2,rn,t,e)))}}function cn(i,n){if(i&1&&G(0,pn,1,7,"ng-container",null,A),i&2){let e=l();x(e.selectedOptions())}}function dn(i,n){if(i&1&&(s(0,"spk-tooltip",25)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function mn(i,n){if(i&1&&(s(0,"app-file-tree",18)(1,"label",24),c(2),C(3,dn,3,1,"spk-tooltip",25),o(),E(4,"input",26),o()),i&2){let e,t=l().$implicit,a=l();m("startingPath",a.getFormFieldValue(0,t.formGroupName,t.formView.name))("accepts",t.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name)}}function un(i,n){if(i&1&&(s(0,"spk-tooltip",25)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function Sn(i,n){if(i&1&&(s(0,"app-file-tree",19)(1,"label",24),c(2),C(3,un,3,1,"spk-tooltip",25),o(),E(4,"input",26),o()),i&2){let e,t=l().$implicit,a=l();m("startingPath",a.getFormFieldValue(0,t.formGroupName,t.formView.name)),r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name)}}function gn(i,n){if(i&1&&(s(0,"spk-tooltip",25)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function Tn(i,n){i&1&&(s(0,"spk-icon",27),c(1,"link"),o())}function fn(i,n){i&1&&(s(0,"spk-icon",27),c(1,"textbox"),o())}function Cn(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",24),c(2),C(3,gn,3,1,"spk-tooltip",25),o(),E(4,"input",26),C(5,Tn,2,0,"spk-icon",27)(6,fn,2,0,"spk-icon",27),o()),i&2){let e,t=l().$implicit;r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name),r(),T(t.formView.type==="Path"?5:6)}}function En(i,n){if(i&1){let e=h();s(0,"span",31),g("click",function(){u(e);let a=l(2).$implicit,_=l();return S(_.oauthStartTokenCreation(a.formViewType))}),c(1,"AuthID"),o()}}function Nn(i,n){i&1&&(s(0,"spk-icon",27),c(1,"password"),o())}function hn(i,n){if(i&1){let e=h();s(0,"spk-icon",32),g("click",function(){u(e);let a=l(2).$implicit;return S(a.formView.showPassword=!a.formView.showPassword)}),c(1," eye "),o()}}function On(i,n){if(i&1){let e=h();s(0,"spk-icon",32),g("click",function(){u(e);let a=l(2).$implicit;return S(a.formView.showPassword=!a.formView.showPassword)}),c(1," eye-slash "),o()}}function Mn(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",24),c(2),o(),E(3,"input",28),C(4,En,2,0,"span",29)(5,Nn,2,0,"spk-icon",27)(6,hn,2,0,"spk-icon",30)(7,On,2,0,"spk-icon",30),o()),i&2){let e,t=l().$implicit;r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name),m("type",t.formView.showPassword?"text":"password"),r(),T(t.oauthField===t.formView.name?4:5),r(2),T(t.formView.showPassword?6:7)}}function Pn(i,n){if(i&1&&(s(0,"spk-tooltip",25)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function In(i,n){if(i&1&&(s(0,"spk-option",34),c(1),o()),i&2){let e=n.$implicit;m("value",e),r(),$(e)}}function yn(i,n){if(i&1&&(s(0,"spk-select")(1,"label",24),c(2),C(3,Pn,3,1,"spk-tooltip",25),o(),E(4,"input",33),G(5,In,2,2,"spk-option",34,A),o()),i&2){let e,t=l().$implicit;r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name),r(),x(t.formView.options)}}function Rn(i,n){if(i&1&&(s(0,"spk-tooltip",25)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function vn(i,n){if(i&1&&(s(0,"spk-option",34),c(1),o()),i&2){let e=n.$implicit;m("value",e),r(),$(e)}}function Fn(i,n){if(i&1&&(s(0,"div",20)(1,"label",24),c(2),C(3,Rn,3,1,"spk-tooltip",25),o(),s(4,"div",35)(5,"spk-form-field"),E(6,"input",36),s(7,"spk-icon",27),c(8,"resize"),o()(),s(9,"spk-select"),E(10,"label")(11,"input",37),G(12,vn,2,2,"spk-option",34,A),o()()()),i&2){let e,t=l().$implicit,a=l();m("formGroupName",t.formView.name),r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(3),O("id","destination-",t.formGroupName,"-",t.index,""),r(6),x(a.sizeOptions())}}function wn(i,n){if(i&1&&(s(0,"spk-tooltip",25)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function An(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",24),c(2),C(3,wn,3,1,"spk-tooltip",25),o(),E(4,"input",38),s(5,"spk-icon",27),c(6,"numpad"),o()()),i&2){let e,t=l().$implicit;r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name)}}function Gn(i,n){if(i&1&&(s(0,"spk-tooltip",25)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function xn(i,n){if(i&1&&(s(0,"spk-toggle",21)(1,"label",24),c(2),C(3,Gn,3,1,"spk-tooltip",25),o(),E(4,"input",39),o()),i&2){let e,t=l().$implicit;r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name)}}function $n(i,n){if(i&1&&(s(0,"spk-tooltip",25)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function kn(i,n){i&1&&(s(0,"spk-option",41),c(1,"None"),o()),i&2&&m("value","None")}function bn(i,n){if(i&1&&(s(0,"spk-option",34),c(1),E(2,"spk-checkbox",42),o()),i&2){let e=l().$implicit;m("value",e),r(),I(" ",e," ")}}function Vn(i,n){if(i&1&&C(0,kn,2,1,"spk-option",41)(1,bn,3,2,"spk-option",34),i&2){let e=n.$implicit;T(e==="None"?0:1)}}function Dn(i,n){if(i&1&&(s(0,"spk-select",22)(1,"label",24),c(2),C(3,$n,3,1,"spk-tooltip",25),o(),E(4,"input",40),G(5,Vn,2,1,null,null,A),o()),i&2){let e,t=l().$implicit;m("selectMultiple",!0),r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),F("formControlName",t.formView.name),r(),x(t.formView.options)}}function Ln(i,n){if(i&1&&(s(0,"spk-tooltip",25)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;m("message",e.formView.longDescription)}}function Xn(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",24),c(2),C(3,Ln,3,1,"spk-tooltip",25),o(),E(4,"input",26),o()),i&2){let e,t=l().$implicit;r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name)}}function zn(i,n){if(i&1){let e=h();s(0,"div",16),le(1,17),C(2,mn,5,14,"app-file-tree",18)(3,Sn,5,10,"app-file-tree",19)(4,Cn,7,10,"spk-form-field")(5,Mn,8,11,"spk-form-field")(6,yn,7,9,"spk-select")(7,Fn,14,9,"div",20)(8,An,7,9,"spk-form-field")(9,xn,5,9,"spk-toggle",21)(10,Dn,7,7,"spk-select",22)(11,Xn,5,9,"spk-form-field"),_e(),s(12,"button",23),g("click",function(){let a=u(e).$implicit,_=l();return S(_.removeFormView(a.formView))}),s(13,"spk-icon"),c(14,"x-circle"),o()()()}if(i&2){let e=n.$implicit;r(),m("formGroupName",e.formGroupName),r(),T(e.formView.type==="FileTree"?2:e.formView.type==="FolderTree"?3:e.formView.type==="String"||e.formView.type==="Path"?4:e.formView.type==="Password"?5:e.formView.type==="Enumeration"?6:e.formView.type==="Size"?7:e.formView.type==="Integer"?8:e.formView.type==="Boolean"?9:e.formView.type==="Flags"?10:e.formView.type==="Timespan"?11:-1)}}var bi=new fe,Bn=["Bytes","KB","MB","GB","TB","PB"],Vi=[{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`}],Di=1024*1024*1024*2,Li=1024*1024*5;var ne=class i{#e=N(Ae);#i=N(K);#t=N(k);formRef=Mt.required("formRef");optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;isSubmitting=f(!1);isLoadingOptions=f(!0);sizeOptions=f(Bn);serverSettingsEffect=q(()=>{let n=this.#i.serverSettings();if(n===void 0)return;this.isLoadingOptions.set(!0);let e=this.#e.nonSelectedOptions(),t=Object.entries(n);t.forEach(([a,_],y)=>{if(a.startsWith("--")){let R=a.replace("--",""),M=e.find(v=>v.name===R);M!==void 0?this.addNewOption(M,_):this.addFreeTextOption(R,_)}y===t.length-1&&this.isLoadingOptions.set(!1)})});oauthStartTokenCreation(n){}getFormFieldValue(n,e,t){return this.optionsForm.controls.advancedOptions.controls[t].value}removeFormView(n){let e="--"+n.name;this.#t.patchApiV1Serversettings({requestBody:{[e]:null}}).subscribe({next:t=>{window.location.reload()}})}addNewOption(n,e){this.#e.addOptionToFormGroup(n,e)}addFreeTextOption(n,e){this.#e.addFreeTextOption(n,e,{})}submit(){this.isSubmitting.set(!0);let n=this.optionsForm.value.advancedOptions;if(!n)return;let e=this.#n(n);this.#t.patchApiV1Serversettings({requestBody:e}).pipe(w(()=>this.isSubmitting.set(!1))).subscribe()}#n(n){let e={};for(let t in n)e[`--${t}`]=n[t];return e}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=V({type:i,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,t){e&1&&Rt(t.formRef,on,5),e&2&&vt()},features:[wt([Ae])],decls:20,vars:6,consts:()=>{let n;n=$localize` Advanced options ${"\uFFFD#5\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#7\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#6\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#8\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*10:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1:${"\uFFFD0:1\uFFFD"}:INTERPOLATION:${"[\uFFFD/#6\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*10:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_MENU:`,n=pe(n);let e;return e=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `,[["formRef",""],["fieldTemplate",""],["option",""],n,e,[3,"submit","formGroup"],[3,"disallowToggle"],["title",""],[3,"searchable"],["spk-button","","type","button",1,"outlined","small"],["menu",""],["type","button"],[1,"form-actions"],["spk-button","","type","submit",1,"raised","primary"],["type","button",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],["type","search",3,"id","formControlName"],[3,"value"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["type","search","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],["type","text","id","text",3,"formControlName"],["deselect","",3,"value"],[1,"raised","primary"]]},template:function(e,t){if(e&1){let a=h();s(0,"form",5,0),g("submit",function(){return u(a),S(t.submit())}),s(2,"app-toggle-card",6),le(3,7),D(4,3),s(5,"spk-menu",8)(6,"button",9),E(7,"spk-icon"),o(),le(8,10),G(9,ln,3,1,"button",11,A),_e(),o(),L(),_e(),C(11,cn,2,0),Pt(12,11,sn),o(),C(14,zn,15,2,"ng-template",null,1,$t),s(16,"div",12)(17,"button",13),D(18,4),E(19,"spk-icon"),L(),o()()()}e&2&&(m("formGroup",t.optionsForm),r(2),m("disallowToggle",!0),r(3),m("searchable",!0),r(4),x(t.nonSelectedOptions()),r(3),It(!t.isLoadingOptions()),r(5),P("loader",t.isSubmitting()))},dependencies:[Ee,ue,j,Dt,Vt,H,de,Se,Te,ge,Bt,Me,he,Ne,W,Pe,Xt,Oe,Ie,Kt,Qt],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}.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}"],changeDetection:0})};var Q=class i{#e=N(k);#i=N(ce);repeatRegisterTimer=null;state=f("unknown");claimUrl=f(null);registerUrl=f("");status=U(()=>{let n=this.state();return n==="enabled"?"Remote control is enabled but not connected":n==="connected"?"Remote control is connected":n==="registering"?"Registering machine...":n==="registeringfaulted"?"Registration failed":n==="registered"?"Registered, waiting for accept":n==="disabled"?"Remote control is configured but not enabled":n==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=q(()=>{let n=this.#i.systemInfo();n&&this.registerUrl.set(n.RemoteControlRegistrationUrl??"")});#t(n){n.RegistrationUrl&&this.claimUrl.set(n.RegistrationUrl),n.IsConnected?this.state.set("connected"):n.IsEnabled?this.state.set("enabled"):n.CanEnable?this.state.set("disabled"):n.IsRegisteringFaulted?this.state.set("registeringfaulted"):n.IsRegistering?n.RegistrationUrl!=null&&n.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");let e=this.state();this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),e==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})},5e3)),(e==="enabled"||e==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})},5e3)),n.IsRegistering&&n.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:t=>this.#t(t)})}#n(n){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#t(e)})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}beginRemoteRegistration(){this.state.set("registering"),this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}deleteRemoteControl(){let n=this;confirm("Are you sure you want to delete the remote control registration?")&&n.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:e=>n.#t(e),error:e=>n.#n(e)})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=ae({token:i,factory:i.\u0275fac,providedIn:"root"})};function Un(i,n){if(i&1){let e=h();s(0,"spk-form-field",10)(1,"input",11),B("ngModelChange",function(a){u(e);let _=l(2);return z(_.registerUrl,a)||(_.registerUrl=a),S(a)}),o()(),s(2,"button",12),g("click",function(){u(e);let a=l(2);return S(a.register())}),p(3,0),o()}if(i&2){let e=l(2);r(),X("ngModel",e.registerUrl)}}function qn(i,n){if(i&1&&(s(0,"div",8)(1,"label"),p(2,1),o(),s(3,"a",13),c(4),o()()),i&2){let e=l(2);r(3),F("href",e.claimUrl(),Ot),r(),$(e.claimUrl())}}function jn(i,n){i&1&&(s(0,"div",8)(1,"label"),p(2,2),o()())}function Hn(i,n){if(i&1){let e=h();s(0,"button",12),g("click",function(){u(e);let a=l(2);return S(a.cancel())}),p(1,3),o()}}function Wn(i,n){if(i&1){let e=h();s(0,"button",12),g("click",function(){u(e);let a=l(2);return S(a.disable())}),p(1,4),o()}}function Kn(i,n){if(i&1){let e=h();s(0,"button",12),g("click",function(){u(e);let a=l(2);return S(a.enable())}),p(1,5),o(),s(2,"button",14),g("click",function(){u(e);let a=l(2);return S(a.delete())}),p(3,6),o()}}function Qn(i,n){if(i&1&&(s(0,"div",7),C(1,Un,4,1)(2,qn,5,2,"div",8)(3,jn,3,0,"div",8)(4,Hn,2,0,"button",9)(5,Wn,2,0,"button",9)(6,Kn,4,0),o()),i&2){let e=l();r(),T(e.state()==="inactive"?1:-1),r(),T(e.state()==="registered"?2:-1),r(),T(e.state()==="registering"?3:-1),r(),T(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),r(),T(e.state()==="connected"||e.state()==="enabled"?5:-1),r(),T(e.state()==="disabled"?6:-1)}}var Re=class i{#e=N(Q);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;ngOnInit(){this.#e.refreshRemoteControlStatus()}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=V({type:i,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let n;n=$localize`Register for remote control`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let t;t=$localize`Registering, please wait...`;let a;a=$localize`Cancel registration`;let _;_=$localize`Disable remote control`;let y;y=$localize`Enable remote control`;let R;return R=$localize`Delete remote control setup`,[n,e,t,a,_,y,R,[1,"field-row"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","error",3,"click"]]},template:function(e,t){e&1&&C(0,Qn,7,6,"div",7),e&2&&T(t.state()!=="unknown"?0:-1)},dependencies:[Ce,j,H,me,W],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};var Zn=()=>({standalone:!0});function Jn(i,n){i&1&&(s(0,"spk-icon",74),c(1,"check"),o())}function Yn(i,n){i&1&&(s(0,"spk-icon",75),c(1,"prohibit"),o())}function ei(i,n){if(i&1){let e=h();s(0,"button",79),g("click",function(){u(e);let a=l(2);return S(a.updatePassphrase())}),p(1,36),o()}if(i&2){let e=l(2);P("loader",e.isUpdating())}}function ti(i,n){if(i&1){let e=h();s(0,"spk-tooltip",78)(1,"button",80),g("click",function(){u(e);let a=l(2);return S(a.updatePassphrase())}),p(2,37),o()()}if(i&2){let e=l(2);r(),P("loader",e.isUpdating()),m("disabled",!0)}}function ni(i,n){if(i&1){let e=h();s(0,"spk-form-field")(1,"label",70),p(2,33),o(),s(3,"input",71),B("ngModelChange",function(a){u(e);let _=l();return z(_.passphrase,a)||(_.passphrase=a),S(a)}),o()(),s(4,"spk-form-field")(5,"label",72),p(6,34),o(),s(7,"input",73),B("ngModelChange",function(a){u(e);let _=l();return z(_.repeatPassphrase,a)||(_.repeatPassphrase=a),S(a)}),o(),C(8,Jn,2,0,"spk-icon",74)(9,Yn,2,0,"spk-icon",75),o(),s(10,"div",51)(11,"button",76),g("click",function(){u(e);let a=l();return S(a.cancelPasswordChange())}),p(12,35),o(),C(13,ei,2,2,"button",77)(14,ti,3,3,"spk-tooltip",78),o()}if(i&2){let e=l();r(3),X("ngModel",e.passphrase),r(4),m("disabled",e.passphrase().length===0),X("ngModel",e.repeatPassphrase),r(),T(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),r(3),P("loader",e.isUpdating()),r(2),T(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14)}}function ii(i,n){i&1&&(s(0,"spk-icon",81),c(1,"check"),o())}function oi(i,n){if(i&1){let e=h();s(0,"div",51)(1,"button",76),g("click",function(){u(e);let a=l();return S(a.openPassphraseForm())}),p(2,38),o(),C(3,ii,2,0,"spk-icon",81),o()}if(i&2){let e=l();r(3),T(e.passwordUpdated()?3:-1)}}function si(i,n){if(i&1){let e=h();s(0,"spk-form-field")(1,"label",82),p(2,39),o(),s(3,"textarea",83),B("ngModelChange",function(a){u(e);let _=l();return z(_.allowedHostnames,a)||(_.allowedHostnames=a),S(a)}),o()(),s(4,"spk-alert",84),p(5,40),o(),s(6,"button",79),g("click",function(){u(e);let a=l();return S(a.updateAllowedHostnames())}),p(7,41),o()}if(i&2){let e=l();r(3),X("ngModel",e.allowedHostnames),r(3),P("loader",e.updatingAllowedHosts())}}function ri(i,n){if(i&1&&c(0),i&2){let e,t=l();I(" ",(e=t.sysinfo())==null?null:e.ServerVersion," ")}}function ai(i,n){i&1&&E(0,"spk-progress-bar",56)}function li(i,n){if(i&1&&(s(0,"spk-option",64),c(1),o()),i&2){let e=n.$implicit;m("value",e),r(),$(e)}}function _i(i,n){if(i&1){let e=h();s(0,"spk-option",85),g("click",function(){let a=u(e).$implicit,_=l();return S(_.pauseSettings.controls.timeType.setValue(a.value))}),c(1),o()}if(i&2){let e=n.$implicit;m("value",e.value),r(),I(" ",e.label," ")}}function pi(i,n){if(i&1&&(s(0,"spk-option",64),c(1),o()),i&2){let e=n.$implicit;m("value",e.value),r(),I(" ",e.label," ")}}var ie=new fe,en=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],tn=[{value:"",label:$localize`System default (information)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"none",label:$localize`None / disabled`}],$e=class i{#e=N(Ht);#i=N(ce);#t=N(k);#n=N(K);#r=N(Q);#o=N(bt);#s=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=f("list");previousLang=this.#s;langCtrl=f(this.#s);remoteControlStatus=this.#r.status;settingsForm=ie.group({pauseSettings:ie.group({time:ie.control(0),timeType:ie.control("s")}),usageStatistics:ie.control("")});updatingChannel=f(!1);updateChannel=f("");setNewChannel(n){let e=this.updateChannel();this.updateChannel.set(n),this.#t.patchApiV1Serversettings({requestBody:{"update-channel":n}}).pipe(this.#n.withRefresh(),w(()=>this.updatingChannel.set(!1)),J(()=>(this.updateChannel.set(e),Z(null)))).subscribe()}allowRemoteAccess=f(!1);allowedHostnames=f("");loadedAllowedHostnames=f("");updatingRemoteAccess=f(!1);updatingAllowedHosts=f(!1);updateRemoteAccess(){let n=this.allowRemoteAccess(),e=!n;this.allowRemoteAccess.set(e),e||this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":e?"any":"loopback"}}).pipe(this.#n.withRefresh(),w(()=>this.updatingRemoteAccess.set(!1)),J(()=>(this.allowRemoteAccess.set(n),Z(null)))).subscribe()}updateAllowedHostnames(){let n=this.loadedAllowedHostnames(),e=this.allowedHostnames();this.updatingAllowedHosts.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":"any","allowed-hostnames":e}}).pipe(this.#n.withRefresh(),w(()=>this.updatingAllowedHosts.set(!1)),J(()=>(this.allowedHostnames.set(n),Z(null)))).subscribe()}updatingDisableTrayIconLogin=f(!1);disableTrayIconLogin=f(!1);saveDisableTrayIconLogin(){let n=this.disableTrayIconLogin(),e=!n;this.updatingDisableTrayIconLogin.set(!0),this.disableTrayIconLogin.set(e),this.#t.patchApiV1Serversettings({requestBody:{"disable-tray-icon-login":e?"True":"False"}}).pipe(this.#n.withRefresh(),w(()=>this.updatingDisableTrayIconLogin.set(!1)),J(()=>(this.disableTrayIconLogin.set(n),Z(null)))).subscribe()}showPassphraseForm=f(!1);isUpdating=f(!1);passphrase=f("");repeatPassphrase=f("");passwordUpdated=f(!1);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(this.#n.withRefresh(),w(()=>this.isUpdating.set(!1))).subscribe({next:()=>{this.showPassphraseForm.set(!1),this.passwordUpdated.set(!0),setTimeout(()=>{this.passwordUpdated.set(!1)},3e3)}}))}openPassphraseForm(){this.showPassphraseForm.set(!0)}cancelPasswordChange(){this.showPassphraseForm.set(!1)}get pauseSettings(){return this.settingsForm.controls.pauseSettings}languageOptions=f(Ge);usageStatisticsOptions=f(tn);timeTypeOptions=f(en);timeOptions=xe([this.pauseSettings.controls.timeType.valueChanges.pipe(b("s")),this.pauseSettings.controls.time.valueChanges.pipe(b(null))],re(ft(([n,e])=>{let t=this.#a(n);return e!==null?t.filter(a=>a.toString().includes(e.toString())):t}),b([])));#a(n){let e=n==="h"?25:61;return new Array(e).fill(0).map((t,a)=>a)}updateLocale(n){let t=n[0]?.value??"";!t||t===""||t===this.previousLang||(this.#o.setItem("locale",t),window.location.reload())}submit(){let n=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":n==="0s"?"":n}}).pipe(this.#n.withRefresh()).subscribe()}serverSettingsEffect=q(()=>{let n=this.#n.serverSettings();if(n===void 0)return;let e=n["startup-delay"],t=e.slice(-1),a=e.slice(0,-1),_=["s","m","h"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(a==""?"0":a),timeType:_.includes(t)?t:"s"},usageStatistics:n["usage-reporter-level"]}),this.disableTrayIconLogin.set(n["disable-tray-icon-login"]!=="False"),this.updateChannel.set(n["update-channel"]),this.allowRemoteAccess.set(n["server-listen-interface"]==="any"),this.allowedHostnames.set(n["allowed-hostnames"]),this.loadedAllowedHostnames.set(n["allowed-hostnames"])});languageDisplay(){let n=this;return()=>{let e=n.langCtrl();return e?Ge.find(t=>t.value===e)?.label??null:null}}typeDisplay(){let n=this;return()=>{let e=n.settingsForm.value.pauseSettings?.timeType;return e==null?null:en.find(t=>t.value===e)?.label??null}}usageDisplay(){let n=this;return()=>{let e=n.settingsForm.value.usageStatistics;return e==null?null:tn.find(t=>t.value===e)?.label??null}}setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=V({type:i,selectors:[["app-settings"]],decls:139,vars:37,consts:()=>{let n;n=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let t;t=$localize` Save changes `;let a;a=$localize`Remote access control`;let _;_=$localize`Color theme`;let y;y=$localize`Customize your application theme`;let R;R=$localize`Passwords`;let M;M=$localize`Change server passphrase`;let v;v=$localize`Language`;let oe;oe=$localize`Select a language for the platform`;let ke;ke=$localize`Allow remote access (requires restart)`;let be;be=$localize` By allowing remote access, the server listens to requests from any machine on your network. If you enable this option, make sure you are always using the computer on a secure firewall protected network. `;let Ve;Ve=$localize`Allow remote access`;let De;De=$localize`Prevent tray icon automatic log-in`;let Le;Le=$localize` By default, the tray icon will open the user interface with a token that unlocks the user interface. This ensures that you can access the user interface from the tray icon, while requiring others to enter a password. If you prefer having to type in the password, even when accessing the user interface from the tray icon, enable this option. `;let Xe;Xe=$localize`Prevent tray icon automatic log-in`;let ze;ze=$localize`Update channel`;let Be;Be=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let Ue;Ue=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let qe;qe=$localize`Stable`;let je;je=$localize`Official releases`;let He;He=$localize`Beta`;let We;We=$localize` Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. `;let Ke;Ke=$localize` Experimental `;let Qe;Qe=$localize`Specific builds for developers only. Not for use with important data.`;let Ze;Ze=$localize`Canary`;let Je;Je=$localize`Individual builds for developers only. Not for use with important data.`;let Ye;Ye=$localize`Pause after startup or hibernation`;let et;et=$localize` Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. `;let tt;tt=$localize`Usage statistics`;let se;se=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#125\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#125\uFFFD"}:CLOSE_LINK:${"[\uFFFD#126\uFFFD\uFFFD/#126\uFFFD|\uFFFD#127\uFFFD\uFFFD/#127\uFFFD]"}:LINE_BREAK:${"[\uFFFD#126\uFFFD\uFFFD/#126\uFFFD|\uFFFD#127\uFFFD\uFFFD/#127\uFFFD]"}:LINE_BREAK: All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `,se=pe(se);let nt;nt=$localize`Advanced options`;let it;it=$localize`Enter new password`;let ot;ot=$localize`Repeat password`;let st;st=$localize`Password have to be filled and have to match`;let rt;rt=$localize`Passphrase`;let at;at=$localize`Repeat passphrase`;let lt;lt=$localize`Cancel`;let _t;_t=$localize` Update passphrase `;let pt;pt=$localize` Update passphrase `;let ct;ct=$localize`Change password`;let dt;dt=$localize`Allowed hostnames`;let mt;mt=$localize` To prevent various DNS based attacks, Duplicati limits the allowed hostnames to the ones listed here. Direct IP access and localhost is always allowed. Multiple hostnames can be supplied with a semicolon separator. If any of the allowed hostnames is an asterisk (*), all hostnames are allowed and this feature is disabled. If the field is empty, only IP address and localhost access is allowed. `;let ut;return ut=$localize` Update allowed hostnames `,[["input",""],n,e,t,a,_,y,R,M,v,oe,ke,be,Ve,De,Le,Xe,ze,Be,Ue,qe,je,He,We,Ke,Qe,Ze,Je,Ye,et,tt,se,nt,rt,at,lt,_t,pt,ct,dt,mt,ut,[1,"content"],[1,"title"],["type","submit","spk-button","",1,"raised","primary",3,"click","disabled"],[1,"left"],[1,"right"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","passphrase-form"],[1,"actions"],["value","value","label","label",3,"selectedOptionsChange","options","isClearable","inlineSearch"],["type","text",3,"ngModel","ngModelOptions"],[1,"right","remote-access-form"],[1,"primary","raised",3,"click"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised"],[1,"content",3,"submit","formGroup"],["formGroupName","pauseSettings",1,"field-row"],[3,"hideClearButton"],["type","search","formControlName","time"],[3,"value"],[3,"displayFn","hideClearButton"],["type","text","formControlName","timeType"],["href","#"],[3,"displayFn"],["type","text","formControlName","usageStatistics"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",it,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",ot,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"spk-success"],["suffix",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"loader"],["message",st,1,"primary"],["spk-button","",1,"raised","primary",3,"click"],["spk-button","",1,"raised","primary",3,"click","disabled"],[1,"spk-success"],["for","allowedHostnames"],["type","text","id","allowedHostnames",3,"ngModelChange","ngModel"],["type","primary"],[3,"click","value"]]},template:function(e,t){if(e&1){let a=h();E(0,"app-status-bar"),s(1,"div",42)(2,"header")(3,"div",43)(4,"h2"),p(5,1),o(),s(6,"p"),p(7,2),o()(),s(8,"button",44),g("click",function(){return u(a),S(t.submit())}),p(9,3),o()(),s(10,"section")(11,"div",45)(12,"h3"),p(13,4),o(),s(14,"p"),c(15),o()(),s(16,"div",46),E(17,"app-remote-control"),o()(),s(18,"section")(19,"div",45)(20,"h3"),p(21,5),o(),s(22,"p"),p(23,6),o()(),s(24,"div",46)(25,"div",47)(26,"img",48),g("click",function(){return u(a),S(t.setLightMode())}),o(),s(27,"img",49),g("click",function(){return u(a),S(t.setDarkMode())}),o()()()(),s(28,"section")(29,"div",45)(30,"h3"),p(31,7),o(),s(32,"p"),p(33,8),o()(),s(34,"div",50),C(35,ni,15,7)(36,oi,4,1,"div",51),o()(),s(37,"section")(38,"div",45)(39,"h3"),p(40,9),o(),s(41,"p"),p(42,10),o()(),s(43,"div",46)(44,"spk-select-new",52),g("selectedOptionsChange",function(y){return u(a),S(t.updateLocale(y))}),E(45,"input",53,0),o()()(),s(47,"section")(48,"div",45)(49,"h3"),p(50,11),o(),s(51,"p"),p(52,12),o()(),s(53,"div",54)(54,"spk-toggle",55),g("click",function(){return u(a),S(t.updateRemoteAccess())}),s(55,"label"),p(56,13),o()(),C(57,si,8,3),o()(),s(58,"section")(59,"div",45)(60,"h3"),p(61,14),o(),s(62,"p"),p(63,15),o()(),s(64,"div",46)(65,"spk-toggle",55),g("click",function(){return u(a),S(t.saveDisableTrayIconLogin())}),s(66,"label"),p(67,16),o()()()(),s(68,"section")(69,"div",45)(70,"h3"),p(71,17),o(),s(72,"p"),C(73,ri,1,1),o(),C(74,ai,1,0,"spk-progress-bar",56),o(),s(75,"div",57)(76,"div",58),g("click",function(){return u(a),S(t.setNewChannel(""))}),s(77,"spk-radio",59),p(78,18),o(),s(79,"p"),p(80,19),o()(),s(81,"div",58),g("click",function(){return u(a),S(t.setNewChannel("stable"))}),s(82,"spk-radio",59),p(83,20),o(),s(84,"p"),p(85,21),o()(),s(86,"div",58),g("click",function(){return u(a),S(t.setNewChannel("beta"))}),s(87,"spk-radio",59),p(88,22),o(),s(89,"p"),p(90,23),o()(),s(91,"div",58),g("click",function(){return u(a),S(t.setNewChannel("experimental"))}),s(92,"spk-radio",59),p(93,24),o(),s(94,"p"),p(95,25),o()(),s(96,"div",58),g("click",function(){return u(a),S(t.setNewChannel("canary"))}),s(97,"spk-radio",59),p(98,26),o(),s(99,"p"),p(100,27),o()()()()(),E(101,"spk-divider"),s(102,"form",60),g("submit",function(){return u(a),S(t.submit())}),s(103,"section")(104,"div",45)(105,"h3"),p(106,28),o(),s(107,"p"),p(108,29),o()(),s(109,"div",46)(110,"div",61)(111,"spk-select",62),E(112,"input",63),G(113,li,2,2,"spk-option",64,A),o(),s(115,"spk-select",65),E(116,"input",66),G(117,_i,2,2,"spk-option",64,A),o()()()(),s(119,"section")(120,"div",45)(121,"h3"),p(122,30),o(),s(123,"p"),D(124,31),E(125,"a",67)(126,"br")(127,"br"),L(),o()(),s(128,"div",46)(129,"spk-select",68),E(130,"input",69),G(131,pi,2,2,"spk-option",64,A),o()()(),s(133,"section")(134,"div",45)(135,"h3"),p(136,32),o()(),s(137,"div",46),E(138,"app-advanced-options-settings"),o()()()}if(e&2){let a,_,y;r(8),m("disabled",t.settingsForm.untouched),r(7),$(t.remoteControlStatus()),r(11),P("active",!t.isDarkMode()),r(),P("active",t.isDarkMode()),r(8),T(t.showPassphraseForm()?35:36),r(9),m("options",t.languageOptions())("isClearable",!1)("inlineSearch",!0),r(),m("ngModel",t.langCtrl())("ngModelOptions",At(36,Zn)),r(9),P("active",t.allowRemoteAccess()),r(3),T(t.allowRemoteAccess()?57:-1),r(8),P("active",t.disableTrayIconLogin()),r(8),T(t.updateChannel()!==""&&((a=t.sysinfo())!=null&&a.ServerVersion)?73:-1),r(),T(t.updatingChannel()?74:-1),r(3),P("active",t.updateChannel()===""),r(),Y((_=t.sysinfo())==null?null:_.DefaultUpdateChannel),ee(78),r(2),Y((y=t.sysinfo())==null?null:y.ServerVersionType),ee(80),r(2),P("active",t.updateChannel()==="stable"),r(5),P("active",t.updateChannel()==="beta"),r(5),P("active",t.updateChannel()==="experimental"),r(5),P("active",t.updateChannel()==="canary"),r(5),m("formGroup",t.settingsForm),r(9),m("hideClearButton",!0),r(2),x(t.timeOptions()),r(2),m("displayFn",t.typeDisplay())("hideClearButton",!0),r(2),x(t.timeTypeOptions()),r(12),m("displayFn",t.usageDisplay()),r(2),x(t.usageStatisticsOptions())}},dependencies:[Ce,ue,j,H,de,me,Ee,Se,Te,ge,Wt,Re,ne,Oe,he,qt,Me,Ut,Pe,Ie,W,Ne,zt,Lt,jt],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0;position:sticky;top:0;background:var(--base-level-10);z-index:1000;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-level-40)}section[_ngcontent-%COMP%]:first-of-type{border-top:0}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] spk-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.passphrase-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:1rem}.passphrase-form[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.remote-access-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};export{$e as default};
|