@duplicati/ngclient 0.0.150 → 0.0.158
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/assets/backgrounds/base-bg.svg +1 -1
- package/assets/dest-icons/s3compat.png +0 -0
- package/assets/sh-bold.woff2 +0 -0
- package/assets/sh.woff2 +0 -0
- package/assets/ship.css +12 -0
- package/chunk-2IE65QDC.js +1 -0
- package/chunk-2KH32RMH.js +1 -0
- package/chunk-363K6H7I.js +1 -0
- package/chunk-3AGOCPNZ.js +1 -0
- package/chunk-3AYCMVTF.js +1 -0
- package/chunk-3F7ADWPY.js +1 -0
- package/{chunk-DNDTLTUM.js → chunk-3LVCVLMO.js} +1 -1
- package/{chunk-DDWLL7XA.js → chunk-3NFAL4U4.js} +1 -1
- package/{chunk-2QJC4PGQ.js → chunk-4VY6SMSL.js} +1 -1
- package/chunk-5ZSBXGHQ.js +1 -0
- package/chunk-6XXAHUOH.js +1 -0
- package/{chunk-DELLEGXW.js → chunk-72HORZFV.js} +1 -1
- package/{chunk-QDFDQHU3.js → chunk-7FCBU2UO.js} +1 -1
- package/chunk-7TF7DTKJ.js +60 -0
- package/chunk-ABYM5HWA.js +1 -0
- package/chunk-BGKZFATT.js +1 -0
- package/chunk-BNWLPYK6.js +2 -0
- package/chunk-BTJVI7MG.js +1 -0
- package/chunk-C2VSATF5.js +1 -0
- package/chunk-CFN5U5PK.js +1 -0
- package/chunk-COUIDDUK.js +1 -0
- package/chunk-CUL5FHDH.js +1 -0
- package/chunk-EE5UMXWP.js +1 -0
- package/{chunk-POMLWQHO.js → chunk-ENNM55FS.js} +2 -2
- package/chunk-EVJPCAZV.js +1 -0
- package/chunk-FIOBQPE7.js +1 -0
- package/chunk-FIUF53BE.js +1 -0
- package/chunk-FMEVVC6D.js +7 -0
- package/{chunk-QHC3CY43.js → chunk-GXGIGJ4W.js} +1 -1
- package/chunk-HKL7ZJV5.js +1 -0
- package/chunk-HWCUMKYF.js +1 -0
- package/{chunk-TDKBGGNK.js → chunk-I2LW33GO.js} +1 -1
- package/chunk-ISNV5CM5.js +1 -0
- package/chunk-J2Y5AVUU.js +1 -0
- package/chunk-JH4DRDIH.js +1 -0
- package/chunk-JRDR23NB.js +2 -0
- package/chunk-JYWOYPSQ.js +1 -0
- package/chunk-K3VDFIJM.js +2 -0
- package/chunk-KSEFQ2XA.js +1 -0
- package/chunk-L3RU4D2N.js +1 -0
- package/chunk-LANFQDZE.js +1 -0
- package/{chunk-UP5EOICU.js → chunk-LN26XMBJ.js} +1 -1
- package/chunk-LYKQBVOC.js +1 -0
- package/chunk-M6SIMFCD.js +1 -0
- package/chunk-M7QQEZOU.js +1 -0
- package/chunk-MSX2SJC7.js +1 -0
- package/{chunk-VTSUHAP5.js → chunk-MTQKK2WN.js} +1 -1
- package/chunk-NC73IOHK.js +1 -0
- package/chunk-O4WI3VDE.js +1 -0
- package/chunk-PD73DDOS.js +2 -0
- package/chunk-QF4DQYEP.js +1 -0
- package/chunk-QONLYWYC.js +4 -0
- package/{chunk-GEI2CH2J.js → chunk-QWQKYLNR.js} +1 -1
- package/chunk-RADP6NAN.js +1 -0
- package/chunk-RDCD2W2C.js +1 -0
- package/chunk-RIFNOGGK.js +1 -0
- package/chunk-SKSEDWGR.js +2 -0
- package/{chunk-NQ27E6KP.js → chunk-SR4YENFS.js} +1 -1
- package/chunk-TG2ZSU7H.js +1 -0
- package/{chunk-DVDTYV66.js → chunk-TJIZJNCK.js} +1 -1
- package/chunk-TPBZNCDW.js +1 -0
- package/chunk-U4U2GCS5.js +1 -0
- package/{chunk-DFMGS3IN.js → chunk-UCS5RU7N.js} +1 -1
- package/chunk-UQY3P37P.js +1 -0
- package/chunk-VRV52R6I.js +1 -0
- package/chunk-VUKS2SJL.js +1 -0
- package/chunk-WNJSKJGQ.js +1 -0
- package/{chunk-UKQFDBNO.js → chunk-WXF4HUYT.js} +1 -1
- package/chunk-X3XJ26NZ.js +2 -0
- package/chunk-XH5CTH3O.js +1 -0
- package/chunk-XHITDSWR.js +1 -0
- package/{chunk-Z3EPZZGY.js → chunk-XVWOVBC4.js} +1 -1
- package/chunk-Y75ZS4Q2.js +1 -0
- package/chunk-YHOYPGPD.js +3 -0
- package/chunk-YJPY33RI.js +2 -0
- package/{chunk-O64ZZGQZ.js → chunk-Z27IQRKV.js} +1 -1
- package/chunk-Z35OG2DV.js +1 -0
- package/chunk-ZBVBVQO7.js +1 -0
- package/chunk-ZKX6JJ6S.js +1 -0
- package/{chunk-UIJYCGKA.js → chunk-ZSZLXWN6.js} +1 -1
- package/{chunk-ZUBWG65U.js → chunk-ZWO4SECL.js} +1 -1
- package/index.html +24 -4
- package/main-ATSCYMRN.js +1 -0
- package/package.json +1 -1
- package/polyfills-S663R3NQ.js +1 -0
- package/styles-DYNNLJCR.css +1 -0
- package/chunk-2RDLOXGA.js +0 -3
- package/chunk-2UCO57JQ.js +0 -1
- package/chunk-3EH5RFRF.js +0 -1
- package/chunk-43JMN2ZY.js +0 -1
- package/chunk-4EZ4GOK5.js +0 -1
- package/chunk-4TDUWDRL.js +0 -2
- package/chunk-5NRWNJ4J.js +0 -1
- package/chunk-6EWMK5CH.js +0 -1
- package/chunk-6LTGTS6B.js +0 -1
- package/chunk-6OPAGPKF.js +0 -1
- package/chunk-7IQY6U5W.js +0 -1
- package/chunk-7ZTBW6LJ.js +0 -1
- package/chunk-AJTK6HBC.js +0 -1
- package/chunk-CMYPDFDT.js +0 -8
- package/chunk-DKTUN7FF.js +0 -1
- package/chunk-DLMKZACT.js +0 -1
- package/chunk-E66CBA5F.js +0 -1
- package/chunk-EBIM5FBM.js +0 -1
- package/chunk-EQCT6Y4K.js +0 -1
- package/chunk-FCRM5DER.js +0 -1
- package/chunk-FUOS2UGQ.js +0 -1
- package/chunk-FUX6GJRD.js +0 -1
- package/chunk-FZHTJSDJ.js +0 -1
- package/chunk-FZTPUMUC.js +0 -1
- package/chunk-GFMGDQOH.js +0 -1
- package/chunk-GWQAMFY2.js +0 -1
- package/chunk-H7K35UUX.js +0 -1
- package/chunk-HI4XLHO3.js +0 -1
- package/chunk-HNWRQABR.js +0 -4
- package/chunk-HTBOWZJ4.js +0 -1
- package/chunk-IFW3O4YJ.js +0 -1
- package/chunk-J3ONM4TQ.js +0 -1
- package/chunk-K56EDP42.js +0 -3
- package/chunk-KAOPFWFX.js +0 -1
- package/chunk-KLW6HEOS.js +0 -1
- package/chunk-LF7PTCJR.js +0 -1
- package/chunk-LVP2TPMO.js +0 -1
- package/chunk-M6WWZKV7.js +0 -1
- package/chunk-MVNLSG6Z.js +0 -1
- package/chunk-N5SC4SKW.js +0 -1
- package/chunk-NJEX2N4Q.js +0 -1
- package/chunk-NJZSEKTD.js +0 -1
- package/chunk-NOPMCS2Z.js +0 -2
- package/chunk-NTZTXGGQ.js +0 -1
- package/chunk-O2AAKP7A.js +0 -1
- package/chunk-OKM5JN2Q.js +0 -1
- package/chunk-QCISEYZT.js +0 -1
- package/chunk-QITXA3NT.js +0 -1
- package/chunk-QLYO56NW.js +0 -1
- package/chunk-R5RIFWZO.js +0 -2
- package/chunk-RUXCS4ZK.js +0 -1
- package/chunk-SFSB73YO.js +0 -56
- package/chunk-TIWH4NKT.js +0 -2
- package/chunk-TK5QY2QD.js +0 -1
- package/chunk-TKO3OH2C.js +0 -1
- package/chunk-UAFHVSPY.js +0 -1
- package/chunk-UIQIL2X6.js +0 -1
- package/chunk-V5JXHJUD.js +0 -1
- package/chunk-VGUK4FJP.js +0 -1
- package/chunk-VHE3K2F5.js +0 -1
- package/chunk-VYAOTFOO.js +0 -1
- package/chunk-X7ZE7U56.js +0 -2
- package/chunk-YTYCTAUZ.js +0 -1
- package/main-BICH3CVD.js +0 -1
- package/polyfills-DNO7R5SL.js +0 -1
- package/styles-LRXGHWCZ.css +0 -1
- /package/{chunk-RHW5QVAY.js → chunk-6Q6SSTBK.js} +0 -0
package/chunk-CMYPDFDT.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{a as it}from"./chunk-7IQY6U5W.js";import{a as ot}from"./chunk-TK5QY2QD.js";import{a as H,b as Je,c as Ye}from"./chunk-O2AAKP7A.js";import{h as nt}from"./chunk-VGUK4FJP.js";import{a as et,c as tt}from"./chunk-FZTPUMUC.js";import{a as B}from"./chunk-DELLEGXW.js";import{a as X}from"./chunk-VTSUHAP5.js";import{a as Qe,c as Ce,e as ge,i as fe,k as Ze,s as Te}from"./chunk-N5SC4SKW.js";import{A as je,C as qe,a as me,e as Be,g as ue,l as ze,o as Ke,p as Ue,t as Xe,z as He}from"./chunk-H7K35UUX.js";import{h as We}from"./chunk-NOPMCS2Z.js";import{ea as Re}from"./chunk-RUXCS4ZK.js";import{Ab as d,Ac as ce,Bb as _,Cb as U,Cc as pe,Gb as le,Hb as Z,Hc as ee,Ib as se,Jb as E,Oc as y,Pc as te,Qb as J,Ra as l,Rb as Y,Sb as Ae,Uc as Ie,V as G,Wb as x,Xc as ke,Y as ye,Yb as s,Zb as Oe,_ as v,_b as ve,ac as Fe,bb as re,bc as Me,cc as Ve,ea as S,f as ae,fa as h,gb as R,gc as z,ia as we,ic as de,lc as p,nc as F,oa as k,oc as _e,qc as Le,rc as be,sc as Pe,tc as b,ub as C,uc as A,vb as g,vc as c,wb as q,xb as W,yb as Q,yc as $e,zb as m,zc as Ge}from"./chunk-HNWRQABR.js";import{a as M,b as oe}from"./chunk-EUDKD2JW.js";var at=class n{#e=v(We);#t=v(Be);#n=v(X);testDestination(t,e,o,i){return this.#n.hasV2TestOperations()?this.testDestinationv2(t,e,o,i):this.testDestinationv1(t,e,o,i)}testDestinationv2(t,e,o,i){return new ae(a=>{this.#e.postApiV2DestinationTest({requestBody:{DestinationUrl:t,AutoCreate:!1,Options:null}}).subscribe({next:r=>{if(r.Success){this.emitSuccessV2(a,t,e,r);return}this.handleGenericError(a,t,e,r.Error??"Unknown error",i)},error:r=>{let u=r?.error?.body;if(u?.Data?.FolderExists===!1||u?.StatusCode==="missing-folder"){o?this.handleMissingFolder(a,t,e):this.handleGenericError(a,t,e,$localize`The remote destination folder does not exist.`,i);return}if(u?.Data?.HostCertificate){this.handleMissingCertificate(a,t,e,u.Data?.HostCertificate);return}if(u?.Data?.ReportedHostKey){this.handleIncorrectKey(a,t,e,u.Data.ReportedHostKey,u.Data.AcceptedHostKey??null);return}this.handleGenericError(a,t,e,r?.message??"Unknown error",i)}})})}testDestinationv1(t,e,o,i){return new ae(a=>{this.#e.postApiV1RemoteoperationTest({requestBody:{path:t}}).subscribe({next:r=>{a.next({action:"success",targetUrl:t,testAgain:!1,destinationIndex:e}),a.complete()},error:r=>{this.handleDestinationErrorv1(r.message,t,e,o,i).subscribe(u=>{a.next(u)})}})})}handleMissingFolder(t,e,o){this.#t.open(B,{data:{title:$localize`Create folder`,message:$localize`The remote destination folder does not exist, do you want to create it?`,confirmText:$localize`Create folder`,cancelText:$localize`Cancel`},closed:i=>{if(!i){this.reportNoAction(t,e,o,$localize`The remote folder does not exist.`);return}this.#n.hasV2TestOperations()?this.#e.postApiV2DestinationTest({requestBody:{DestinationUrl:e,AutoCreate:!0,Options:null}}).subscribe({next:a=>{if(a.Success){this.emitSuccessV2(t,e,o,a);return}else this.handleFolderCreateFailure(t,e,o,a.Error??$localize`Unknown error`)},error:a=>{this.handleFolderCreateFailure(t,e,o,a.message??$localize`Unknown error`)}}):this.#e.postApiV1RemoteoperationCreate({requestBody:{path:e}}).subscribe({next:()=>{this.handleFolderCreated(t,e,o)},error:a=>{this.handleFolderCreateFailure(t,e,o,a.message??$localize`Unknown error`)}})}})}handleFolderCreateFailure(t,e,o,i){this.#t.open(B,{data:{title:$localize`Error creating folder`,message:$localize`The remote destination folder could not be created. ${i}`,confirmText:$localize`OK`,cancelText:null},closed:()=>{t.next({action:"generic-error",targetUrl:e,testAgain:!1,destinationIndex:o}),t.complete()}})}emitSuccessV2(t,e,o,i){t.next({action:"success",targetUrl:e,testAgain:!1,destinationIndex:o,anyFilesFound:!i.Data?.FolderIsEmpty,containsBackup:i.Data?.FolderContainsBackupFiles??void 0,containsEncryptedBackupFiles:i.Data?.FolderContainsEncryptedBackupFiles??void 0}),t.complete()}handleFolderCreated(t,e,o){this.#t.open(B,{data:{title:$localize`Folder created`,message:$localize`The remote destination folder was created successfully.`,confirmText:$localize`OK`,cancelText:null},closed:()=>{t.next({action:"test-again",targetUrl:e,testAgain:!0,destinationIndex:o}),t.complete()}})}reportNoAction(t,e,o,i){t.next({action:"generic-error",targetUrl:e,errorMessage:i,testAgain:!1,destinationIndex:o}),t.complete()}handleMissingCertificate(t,e,o,i){this.#t.open(B,{maxWidth:"500px",data:{title:$localize`Trust the certificate`,message:$localize`The server is using a certificate that is not trusted.
|
|
2
|
-
If this is a self-signed certificate, you can choose to trust this certificate.
|
|
3
|
-
The server reported the certificate hash: ${i}`,confirmText:$localize`Trust the certificate`,cancelText:$localize`Cancel`},closed:a=>{if(!a){this.reportNoAction(t,e,o,$localize`The server certificate is not trusted.`);return}t.next({action:"trust-cert",targetUrl:e,testAgain:!0,certData:i,destinationIndex:o}),t.complete()}})}handleIncorrectKey(t,e,o,i,a){a?this.#t.open(B,{maxWidth:"500px",data:{title:$localize`The host key has changed`,message:$localize`The host key has changed, please check with the server administrator if this is correct,
|
|
4
|
-
otherwise you could be the victim of a MAN-IN-THE-MIDDLE attack.
|
|
5
|
-
Do you want to REPLACE your CURRENT host key ${a}
|
|
6
|
-
with the REPORTED host key: ${i}?`,confirmText:$localize`Approve`,cancelText:$localize`Cancel`},closed:r=>{if(!r){this.reportNoAction(t,e,o,$localize`The host key was not approved.`);return}t.next({action:"approve-host-key",targetUrl:e,testAgain:!0,reportedHostKey:i,destinationIndex:o}),t.complete()}}):this.#t.open(B,{maxWidth:"500px",data:{title:$localize`Approve host key?`,message:$localize`No certificate was specified, please verify that the reported host key is correct: ${i}`,confirmText:$localize`Approve`,cancelText:$localize`Cancel`},closed:r=>{if(!r){this.reportNoAction(t,e,o,$localize`The host key was not approved.`);return}t.next({action:"approve-host-key",targetUrl:e,testAgain:!0,reportedHostKey:i,destinationIndex:o}),t.complete()}})}handleGenericError(t,e,o,i,a){function r(){t.next({action:"generic-error",targetUrl:e,testAgain:!1,destinationIndex:o,errorMessage:i}),t.complete()}if(a){r();return}this.#t.open(B,{maxWidth:"500px",data:{title:$localize`Test connection failed`,message:i,cancelText:$localize`OK`},closed:u=>r()})}handleDestinationErrorv1(t,e,o,i,a){return new ae(r=>{if(t==="missing-folder"){i?this.handleMissingFolder(r,e,o):this.handleGenericError(r,e,o,$localize`The remote destination folder does not exist.`,a);return}if(t.startsWith("incorrect-cert:")){let u=t.split("incorrect-cert:")[1];this.handleMissingCertificate(r,e,o,u);return}if(t.startsWith("incorrect-host-key:")){let u=t.split('incorrect-host-key:"')[1].split('",')[0],N=t.split('accepted-host-key:"')[1].split('",')[0];this.handleIncorrectKey(r,e,o,u,N);return}this.handleGenericError(r,e,o,t,a)})}static \u0275fac=function(e){return new(e||n)};static \u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})};var Se=class n{#e=v(X);supportedDestinationTypes=y(()=>this.#e.backendModules().map(t=>{if(!t?.Key)return null;let e=H(t.Key);return e.isDefaultEntry===!0?oe(M({},e),{displayName:t.DisplayName||e.displayName||t.Key,description:t.Description||e.description||""}):e}).filter(t=>t!==null));destinationTypeOptions=y(()=>this.supportedDestinationTypes().map(t=>({key:t.customKey??t.key,customKey:t.customKey??null,displayName:t.displayName,description:t.description,icon:t.icon})));backendModules=y(()=>this.#e.backendModules()??[]);static \u0275fac=function(e){return new(e||n)};static \u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})};var rt=class n{#e=v(X);#t=v(nt);#n=v(it);#i=v(Se);backendModules=y(()=>this.#i.backendModules());serverSettingsOverride=y(()=>this.#n.serverSettings()?.["--oauth-url"]);backupServerOverride=y(()=>{let t=this.#t.mapFormsToSettings().find(e=>e.Name==="--oauth-url")?.Value;if(t&&t.length>0)return t});oauthUrls=y(()=>{let t=this.#e.defaultOAuthUrl(),e=this.#e.defaultOAuthUrlV2();return{v1:t,v2:e}});static \u0275fac=function(e){return new(e||n)};static \u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})};var he=class n{backendModules=y(()=>[]);serverSettingsOverride=y(()=>{});backupServerOverride=y(()=>{});oauthUrls=y(()=>({v1:void 0,v2:void 0}));static \u0275fac=function(e){return new(e||n)};static \u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})};var lt=new ye("SingleDestinationState",{providedIn:"root",factory:()=>new he});var ct=["fileInput"],pt=[[["label"]]],mt=["label"],xe=class n{customId=Ie();content=k("");readonly=k(!1);placeholder=Ie("Drop a file here or use the browse button");fileInputRef;onFileSelected(t){let e=t.target;e.files&&e.files.length>0&&this.readFile(e.files[0])}onFileDrop(t){t.preventDefault(),t.dataTransfer?.files&&t.dataTransfer.files.length>0&&this.readFile(t.dataTransfer.files[0])}onDragOver(t){t.preventDefault()}readFile(t){let e=new FileReader;e.onload=()=>{this.content.set(e.result)},e.readAsText(t)}triggerBrowse(){return this.fileInputRef.nativeElement.click(),!1}onChange=()=>{};onTouched=()=>{};onChangeEffect=te(()=>{this.onChange(this.content())});writeValue(t){this.content.set(t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.readonly.set(t)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=re({type:n,selectors:[["app-file-drop-textarea"]],viewQuery:function(e,o){if(e&1&&Fe(ct,5),e&2){let i;Me(i=Ve())&&(o.fileInputRef=i.first)}},inputs:{customId:[1,"customId"],placeholder:[1,"placeholder"]},features:[$e([{provide:Qe,useExisting:n,multi:!0}])],ngContentSelectors:mt,decls:9,vars:3,consts:()=>{let t;return t=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:upload${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["fileInput",""],t,[1,"browse-btn"],["shButton","","type","button",1,"small","outlined",3,"click"],[1,"textarea-container","textarea-wrap",3,"drop","dragover"],["rows","10",3,"ngModelChange","placeholder","ngModel","disabled"],["type","file",1,"hidden",3,"change"]]},template:function(e,o){if(e&1){let i=E();Oe(pt),ve(0,0,["ngProjectAs","label",5,["label"]]),d(1,"div",2)(2,"button",3),x("click",function(){return S(i),h(o.triggerBrowse())}),J(3,1),U(4,"sh-icon"),Y(),_()(),d(5,"div",4),x("drop",function(r){return S(i),h(o.onFileDrop(r))})("dragover",function(r){return S(i),h(o.onDragOver(r))}),d(6,"textarea",5),Pe("ngModelChange",function(r){return S(i),be(o.content,r)||(o.content=r),h(r)}),_()(),d(7,"input",6,0),x("change",function(r){return S(i),h(o.onFileSelected(r))}),_()}e&2&&(l(6),m("placeholder",o.placeholder()),Le("ngModel",o.content),m("disabled",o.readonly()))},dependencies:[Te,Ce,ge,fe,me,ue],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label browsebtn" "input input";grid-template-columns:8fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .browse-btn[_ngcontent-%COMP%]{grid-area:browsebtn}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] .textarea-wrap[_ngcontent-%COMP%]{grid-area:input;width:100%;border:none;font:var(--code-20)}[_nghost-%COMP%] .textarea-wrap[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;color:var(--base-8);background-color:var(--base-1);border:1px solid var(--base-4);border-radius:var(--shape-3);padding:.5rem;resize:vertical;box-shadow:var(--box-shadow-10)}[_nghost-%COMP%] .textarea-wrap[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%] .dark[_ngcontent-%COMP%]{background-color:var(--base-2)}[_nghost-%COMP%] .hidden[_ngcontent-%COMP%]{display:none}'],changeDetection:0})};var ut=(n,t,e,o)=>({index:n,fieldGroup:"custom",formView:t,destinationType:e,oauthField:o}),De=n=>({$implicit:n}),Ct=(n,t,e,o)=>({index:n,fieldGroup:"dynamic",formView:t,destinationType:e,oauthField:o}),gt=()=>({updateOn:"blur"}),ft=(n,t,e,o)=>({index:n,formView:t,fieldGroup:"advanced",destinationType:e,oauthField:o});function Tt(n,t){n&1&&se(0)}function St(n,t){if(n&1&&R(0,Tt,1,0,"ng-container",13),n&2){let e=t.$implicit,o=t.$index;s();let i=z(15);s();let a=c(0),r=c(1);m("ngTemplateOutlet",i)("ngTemplateOutletContext",ce(7,De,pe(2,ut,o,e,a,r.oauthField)))}}function ht(n,t){n&1&&se(0)}function xt(n,t){if(n&1&&R(0,ht,1,0,"ng-container",13),n&2){let e=t.$implicit,o=t.$index;s();let i=z(15);s();let a=c(0),r=c(1);m("ngTemplateOutlet",i)("ngTemplateOutletContext",ce(7,De,pe(2,Ct,o,e,a,r.oauthField)))}}function Nt(n,t){if(n&1){let e=E();d(0,"button",14),x("click",function(){S(e);let i=s(2);return h(i.showTextArea.set(!1))}),J(1,6),U(2,"sh-icon"),Y(),_()}}function Et(n,t){if(n&1){let e=E();d(0,"button",21,1),x("click",function(){let i=S(e).$implicit,a=s(3);return h(a.addAdvancedOption(i))}),p(2),_()}if(n&2){let e=t.$implicit;l(2),F(" ",e.name," ")}}function It(n,t){if(n&1){let e=E();d(0,"div",11)(1,"sh-menu",15)(2,"button",16),J(3,7),U(4,"sh-icon"),Y(),_(),le(5,17),W(6,Et,3,1,"button",18,q),Z(),_(),d(8,"sh-menu")(9,"button",19)(10,"sh-icon"),p(11,"dots-three-vertical"),_()(),le(12,17),d(13,"button",20),x("click",function(){S(e);let i=s(2);return h(i.showTextArea.set(!0))}),d(14,"sh-icon"),p(15,"link"),_(),p(16," Edit contents as text "),_(),Z(),_()()}if(n&2){s();let e=c(9);l(),m("searchable",!0),l(),m("disabled",e.length===0),l(4),Q(e)}}function Dt(n,t){if(n&1){let e=E();d(0,"textarea",22),x("ngModelChange",function(i){S(e);let a=s(2);return h(a.updateSettingsFromText(i))}),_()}if(n&2){let e=s(2);m("ngModel",e.settingsAsText())("ngModelOptions",Ge(2,gt))}}function yt(n,t){n&1&&se(0)}function wt(n,t){if(n&1&&R(0,yt,1,0,"ng-container",13),n&2){let e=t.$implicit,o=t.$index;s(2);let i=z(15),a=s(),r=c(0),u=c(1),N=a.getFormView("advanced",e)??a.getDefaultFormView(e);m("ngTemplateOutlet",i)("ngTemplateOutletContext",ce(7,De,pe(2,ft,o,N,r,u.oauthField)))}}function At(n,t){if(n&1&&W(0,wt,1,9,"ng-container",null,q),n&2){let e=s(2);Q(e.advancedFormFieldNames())}}function Ot(n,t){n&1&&(d(0,"sup",31),p(1,"*"),_())}function vt(n,t){if(n&1&&(d(0,"sh-icon",32),p(1,"question"),_()),n&2){let e=s(2).$implicit;m("shTooltip",e.formView.longDescription)}}function Ft(n,t){if(n&1){let e=E();d(0,"app-file-tree",24)(1,"label",30),C(2,Ot,2,0,"sup",31),p(3),C(4,vt,2,1,"sh-icon",32),_(),d(5,"input",33),x("ngModelChange",function(i){S(e);let a=s().$implicit,r=s(2);return h(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),_()()}if(n&2){let e=s().$implicit,o=c(1),i=c(2),a=c(3),r=c(4),u=c(5);m("startingPath",a)("accepts",e.formView.accepts)("showFiles",!0)("hideShortcuts",!0)("showHiddenNodes",!0)("selectFiles",!0),l(),m("for",u),l(),g(e.formView.isMandatory&&r?2:-1),l(),F(" ",o," "),l(),g(e.formView.longDescription?4:-1),l(),m("id",u)("ngModel",i)}}function Mt(n,t){n&1&&(d(0,"sup",34),p(1,"*"),_())}function Vt(n,t){if(n&1&&(d(0,"sh-icon",32),p(1,"question"),_()),n&2){let e=s(2).$implicit;m("shTooltip",e.formView.longDescription)}}function Lt(n,t){if(n&1){let e=E();d(0,"app-file-tree",25)(1,"label",30),C(2,Mt,2,0,"sup",34),p(3),C(4,Vt,2,1,"sh-icon",32),_(),d(5,"input",33),x("ngModelChange",function(i){S(e);let a=s().$implicit,r=s(2);return h(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),_()()}if(n&2){let e=s().$implicit,o=c(1),i=c(2),a=c(3),r=c(4),u=c(5);m("hideShortcuts",!0)("enableCreateFolder",!0)("startingPath",a),l(),m("for",u),l(),g(e.formView.isMandatory&&r?2:-1),l(),F(" ",o," "),l(),g(e.formView.longDescription?4:-1),l(),m("id",u)("ngModel",i)}}function bt(n,t){n&1&&(d(0,"sup",35),p(1,"*"),_())}function Pt(n,t){if(n&1&&(d(0,"sh-icon",32),p(1,"question"),_()),n&2){let e=s(2).$implicit;m("shTooltip",e.formView.longDescription)}}function $t(n,t){n&1&&(d(0,"sh-icon",36),p(1," warning "),_())}function Gt(n,t){n&1&&(d(0,"sh-icon",37),p(1,"x-circle"),_())}function kt(n,t){n&1&&(d(0,"sh-icon",38),p(1,"warning"),_())}function Rt(n,t){if(n&1&&(d(0,"sh-icon",42),p(1," link "),_()),n&2){s();let e=c(9),o=c(10);de("error",e&&o==="error")("warn",e&&o==="warning"),m("shTooltip",e)}}function Bt(n,t){n&1&&(d(0,"sh-icon",41),p(1,"envelope"),_())}function zt(n,t){n&1&&(d(0,"sh-icon",41),p(1,"hard-drives"),_())}function Kt(n,t){n&1&&(d(0,"sh-icon",41),p(1,"jar"),_())}function Ut(n,t){n&1&&(d(0,"sh-icon",41),p(1,"textbox"),_())}function Xt(n,t){if(n&1){let e=E();d(0,"sh-form-field")(1,"label",30),C(2,bt,2,0,"sup",35),p(3),C(4,Pt,2,1,"sh-icon",32),C(5,$t,2,0,"sh-icon",36),C(6,Gt,2,0,"sh-icon",37),C(7,kt,2,0,"sh-icon",38),_(),d(8,"input",39),x("keydown",function(i){S(e);let a=s().$implicit,r=s(2);return h(r.onKeyDown(a.fieldGroup,a.formView.name,a.formView.type,i))})("ngModelChange",function(i){S(e);let a=s().$implicit,r=s(2);return h(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),_(),b(9)(10),C(11,Rt,2,5,"sh-icon",40)(12,Bt,2,0,"sh-icon",41)(13,zt,2,0,"sh-icon",41)(14,Kt,2,0,"sh-icon",41)(15,Ut,2,0,"sh-icon",41),_()}if(n&2){let e=s().$implicit,o=c(1),i=c(2),a=c(3),r=c(4),u=c(5),N=s(2);l(),m("for",u),l(),g(e.formView.isMandatory&&r?2:-1),l(),F(" ",o," "),l(),g(e.formView.longDescription?4:-1),l(),g(r&&e.formView.type==="Path"?5:-1),l(),g(e.formView.type=="Hostname"&&!r&&!N.isValidHostname(a)?6:-1),l(),g(e.formView.type=="Bucketname"&&!r&&!N.isValidBucketname(a)?7:-1),l(),m("type",e.formView.type==="Email"?"email":"text")("id",u)("ngModel",i);let V=a,O=N.hasLeadingSlash(V??"");l(),A(O&&(e.formView.doubleSlash==null?null:e.formView.doubleSlash.message)),l(),A(e.formView.doubleSlash==null?null:e.formView.doubleSlash.type),l(),g(e.formView.type==="Path"?11:e.formView.type==="Email"?12:e.formView.type==="Hostname"?13:e.formView.type==="Bucketname"?14:15)}}function Ht(n,t){n&1&&(d(0,"sup",43),p(1,"*"),_())}function jt(n,t){if(n&1&&(d(0,"sh-icon",32),p(1,"question"),_()),n&2){let e=s(2).$implicit;m("shTooltip",e.formView.longDescription)}}function qt(n,t){if(n&1){let e=E();d(0,"span",47),x("click",function(){S(e);let i=s(2).$implicit,a=s(2);return h(a.oauthStartTokenCreation(i.destinationType,i.fieldGroup,i.formView.name,i.formView.oauthVersion))}),p(1," AuthID "),_()}}function Wt(n,t){n&1&&(d(0,"sh-icon",41),p(1,"password"),_())}function Qt(n,t){if(n&1){let e=E();d(0,"sh-icon",48),x("click",function(){S(e);let i=s(2).$implicit;return h(i.formView.showPassword=!i.formView.showPassword)}),p(1," eye "),_()}}function Zt(n,t){if(n&1){let e=E();d(0,"sh-icon",48),x("click",function(){S(e);let i=s(2).$implicit;return h(i.formView.showPassword=!i.formView.showPassword)}),p(1," eye-slash "),_()}}function Jt(n,t){if(n&1){let e=E();d(0,"sh-form-field")(1,"label",30),C(2,Ht,2,0,"sup",43),p(3),C(4,jt,2,1,"sh-icon",32),_(),d(5,"input",44),x("ngModelChange",function(i){S(e);let a=s().$implicit,r=s(2);return h(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),_(),C(6,qt,2,0,"span",45)(7,Wt,2,0,"sh-icon",41),C(8,Qt,2,0,"sh-icon",46)(9,Zt,2,0,"sh-icon",46),_()}if(n&2){let e=s().$implicit,o=c(1),i=c(2),a=c(4),r=c(5);l(),m("for",r),l(),g(e.formView.isMandatory&&a?2:-1),l(),F(" ",o," "),l(),g(e.formView.longDescription?4:-1),l(),m("type",e.formView.showPassword?"text":"password")("id",r)("ngModel",i),l(),g(e.oauthField===e.formView.name?6:7),l(2),g(e.formView.showPassword?8:9)}}function Yt(n,t){n&1&&(d(0,"sup",50),p(1,"*"),_())}function en(n,t){if(n&1&&(d(0,"sh-icon",32),p(1,"question"),_()),n&2){let e=s(3).$implicit;m("shTooltip",e.formView.longDescription)}}function tn(n,t){if(n&1&&p(0),n&2){let e=t.$implicit;_e(" ",e.key," ",e.value&&e.value!=e.key?"("+e.value+")":""," ")}}function nn(n,t){if(n&1){let e=E();d(0,"sh-select",49)(1,"label",30),C(2,Yt,2,0,"sup",50),p(3),C(4,en,2,1,"sh-icon",32),_(),d(5,"input",33),x("ngModelChange",function(i){S(e);let a=s(2).$implicit,r=s(2);return h(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),_()(),R(6,tn,1,2,"ng-template",null,2,ee)}if(n&2){let e=z(7);s();let o=c(0),i=s().$implicit,a=c(1),r=c(2),u=c(4),N=c(5);m("options",o)("isClearable",!1)("optionTemplate",e),l(),m("for",N),l(),g(i.formView.isMandatory&&u?2:-1),l(),F(" ",a," "),l(),g(i.formView.longDescription?4:-1),l(),m("id",N)("ngModel",r)}}function on(n,t){if(n&1&&(b(0),C(1,nn,8,9)),n&2){let e=s().$implicit,o=A(s(2).mapOptions(e.formView));l(),g(o?1:-1)}}function an(n,t){n&1&&(d(0,"sup",53),p(1,"*"),_())}function rn(n,t){if(n&1&&(d(0,"sh-icon",32),p(1,"question"),_()),n&2){let e=s(3).$implicit;m("shTooltip",e.formView.longDescription)}}function ln(n,t){if(n&1&&p(0),n&2){let e=t.$implicit;_e(" ",e.key," ",e.value&&e.value!=e.key?"("+e.value+")":""," ")}}function sn(n,t){if(n&1){let e=E();d(0,"sh-select",52)(1,"label",30),C(2,an,2,0,"sup",53),p(3),C(4,rn,2,1,"sh-icon",32),_(),d(5,"input",33),x("ngModelChange",function(i){S(e);let a=s(2).$implicit,r=s(2);return h(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),_()(),R(6,ln,1,2,"ng-template",null,3,ee)}if(n&2){let e=z(7);s();let o=c(0),i=s().$implicit,a=c(1),r=c(2),u=c(4),N=c(5);m("options",o)("asFreeText",!0)("inlineSearch",!0)("optionTemplate",e),l(),m("for",N),l(),g(i.formView.isMandatory&&u?2:-1),l(),F(" ",a," "),l(),g(i.formView.longDescription?4:-1),l(),m("id",N)("ngModel",r)}}function dn(n,t){n&1&&U(0,"sh-progress-bar",51)}function _n(n,t){if(n&1&&(b(0),C(1,sn,8,10)(2,dn,1,0,"sh-progress-bar",51)),n&2){let e=s().$implicit,o=c(2),i=A(s(2).mapOptionsWithFreeText(e.formView,o));l(),g(i?1:2)}}function cn(n,t){n&1&&(d(0,"sup",55),p(1,"*"),_())}function pn(n,t){if(n&1&&(d(0,"sh-icon",32),p(1,"question"),_()),n&2){let e=s(2).$implicit;m("shTooltip",e.formView.longDescription)}}function mn(n,t){if(n&1){let e=E();d(0,"app-size",54),x("ngModelChange",function(i){S(e);let a=s().$implicit,r=s(2);return h(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),d(1,"label",30),C(2,cn,2,0,"sup",55),p(3),C(4,pn,2,1,"sh-icon",32),_()()}if(n&2){let e=s().$implicit,o=c(1),i=c(2),a=c(4),r=c(5);m("inputType",e.Name)("ngModel",i)("customId",r),l(),m("for",r),l(),g(e.formView.isMandatory&&a?2:-1),l(),F(" ",o," "),l(),g(e.formView.longDescription?4:-1)}}function un(n,t){n&1&&(d(0,"sup",56),p(1,"*"),_())}function Cn(n,t){if(n&1&&(d(0,"sh-icon",32),p(1,"question"),_()),n&2){let e=s(2).$implicit;m("shTooltip",e.formView.longDescription)}}function gn(n,t){if(n&1){let e=E();d(0,"sh-form-field")(1,"label",30),C(2,un,2,0,"sup",56),p(3),C(4,Cn,2,1,"sh-icon",32),_(),d(5,"input",57),x("ngModelChange",function(i){S(e);let a=s().$implicit,r=s(2);return h(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),_(),d(6,"sh-icon",41),p(7,"numpad"),_()()}if(n&2){let e=s().$implicit,o=c(1),i=c(2),a=c(4),r=c(5);l(),m("for",r),l(),g(e.formView.isMandatory&&a?2:-1),l(),F(" ",o," "),l(),g(e.formView.longDescription?4:-1),l(),m("id",r)("ngModel",i)}}function fn(n,t){if(n&1&&(d(0,"sh-icon",32),p(1,"question"),_()),n&2){let e=s(2).$implicit;m("shTooltip",e.formView.longDescription)}}function Tn(n,t){if(n&1){let e=E();d(0,"sh-toggle",58),x("click",function(){S(e);let i=s().$implicit,a=c(2),r=s(2);return h(r.updateFieldValue(i.fieldGroup,i.formView.name,r.isTrue(a)?"false":"true"))}),d(1,"label",30),p(2),C(3,fn,2,1,"sh-icon",32),_()()}if(n&2){let e=s().$implicit,o=c(1),i=c(2),a=c(5),r=s(2);de("active",r.isTrue(i)),l(),m("for",a),l(),F(" ",o," "),l(),g(e.formView.longDescription?3:-1)}}function Sn(n,t){n&1&&(d(0,"sup",60),p(1,"*"),_())}function hn(n,t){if(n&1&&(d(0,"sh-icon",32),p(1,"question"),_()),n&2){let e=s(3).$implicit;m("shTooltip",e.formView.longDescription)}}function xn(n,t){if(n&1&&p(0),n&2){let e=t.$implicit;_e(" ",e.key," ",e.value&&e.value!=e.key?"("+e.value+")":""," ")}}function Nn(n,t){if(n&1){let e=E();d(0,"sh-select",59)(1,"label",30),C(2,Sn,2,0,"sup",60),p(3),C(4,hn,2,1,"sh-icon",32),_(),d(5,"input",61),x("ngModelChange",function(i){S(e);let a=s(2).$implicit,r=s(2);return h(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),_()(),R(6,xn,1,2,"ng-template",null,4,ee)}if(n&2){let e=z(7);s();let o=c(0),i=s().$implicit,a=c(1),r=c(2),u=c(4),N=c(5);m("options",o)("selectMultiple",!0)("optionTemplate",e),l(),m("for",N),l(),g(i.formView.isMandatory&&u?2:-1),l(),F(" ",a," "),l(),g(i.formView.longDescription?4:-1),l(),m("ngModel",r)}}function En(n,t){if(n&1&&(b(0),C(1,Nn,8,8)),n&2){let e=s().$implicit,o=A(s(2).mapOptions(e.formView));l(),g(o?1:-1)}}function In(n,t){n&1&&(d(0,"sup",62),p(1,"*"),_())}function Dn(n,t){if(n&1&&(d(0,"sh-icon",32),p(1,"question"),_()),n&2){let e=s(2).$implicit;m("shTooltip",e.formView.longDescription)}}function yn(n,t){if(n&1){let e=E();d(0,"app-timespan",54),x("ngModelChange",function(i){S(e);let a=s().$implicit,r=s(2);return h(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),d(1,"label",30),C(2,In,2,0,"sup",62),p(3),C(4,Dn,2,1,"sh-icon",32),_()()}if(n&2){let e=s().$implicit,o=c(1),i=c(2),a=c(4),r=c(5);m("inputType",e.formView.name)("ngModel",i)("customId",r),l(),m("for",r),l(),g(e.formView.isMandatory&&a?2:-1),l(),F(" ",o," "),l(),g(e.formView.longDescription?4:-1)}}function wn(n,t){n&1&&(d(0,"sup",64),p(1,"*"),_())}function An(n,t){if(n&1&&(d(0,"sh-icon",32),p(1,"question"),_()),n&2){let e=s(2).$implicit;m("shTooltip",e.formView.longDescription)}}function On(n,t){if(n&1){let e=E();d(0,"app-file-drop-textarea",63),x("ngModelChange",function(i){S(e);let a=s().$implicit,r=s(2);return h(r.updateFieldValue(a.fieldGroup,a.formView.name,i))}),d(1,"label"),C(2,wn,2,0,"sup",64),p(3),C(4,An,2,1,"sh-icon",32),_()()}if(n&2){let e=s().$implicit,o=c(2),i=c(4),a=c(5);m("ngModel",o)("customId",a)("placeholder",e.formView.longDescription),l(2),g(e.formView.isMandatory&&i?2:-1),l(),F(" ",e.formView.shortDescription??e.formView.name," "),l(),g(e.formView.longDescription?4:-1)}}function vn(n,t){if(n&1){let e=E();d(0,"button",65),x("click",function(){S(e);let i=s().$implicit,a=s(2);return h(a.removeAdvancedOption(i.formView.name))}),d(1,"sh-icon"),p(2,"x-circle"),_()()}}function Fn(n,t){if(n&1&&(d(0,"div",23),b(1)(2)(3)(4)(5),C(6,Ft,6,12,"app-file-tree",24)(7,Lt,6,9,"app-file-tree",25)(8,Xt,16,13,"sh-form-field")(9,Jt,10,9,"sh-form-field")(10,on,2,2)(11,_n,3,2)(12,mn,5,7,"app-size",26)(13,gn,8,6,"sh-form-field")(14,Tn,4,5,"sh-toggle",27)(15,En,2,2)(16,yn,5,7,"app-timespan",26)(17,On,5,6,"app-file-drop-textarea",28),C(18,vn,3,0,"button",29),_()),n&2){let e=t.$implicit;s();let o=c(0),i=s();de("single-field",e.fieldGroup!=="advanced"),l(),A(e.formView.shortDescription??e.formView.name),l(),A(i.getFieldGroup(o,e.fieldGroup)[e.formView.name]),l();let a=A(i.getFieldValue(e.fieldGroup,e.formView.name));l(),A((a??"").toString().trim()===""),l(),A("destination-"+e.fieldGroup+"-"+e.index+"-"+(e.asHttpOptions?"http":"other")),l(),g(e.formView.type==="FileTree"?6:e.formView.type==="FolderTree"?7:e.formView.type==="String"||e.formView.type==="Path"||e.formView.type==="Email"||e.formView.type==="Hostname"||e.formView.type==="Bucketname"?8:e.formView.type==="Password"?9:e.formView.type==="Enumeration"?10:e.formView.type==="NonValidatedSelectableString"?11:e.formView.type==="Size"?12:e.formView.type==="Integer"?13:e.formView.type==="Boolean"?14:e.formView.type==="Flags"?15:e.formView.type==="Timespan"||e.formView.type==="DateTime"?16:e.formView.type==="FreeText"?17:-1),l(12),g(e.fieldGroup==="advanced"?18:-1)}}function Mn(n,t){if(n&1&&(b(0),W(1,St,1,9,"ng-container",null,q),W(3,xt,1,9,"ng-container",null,q),d(5,"sh-toggle-card",8),le(6,9)(7),Ae(8,5),Z(),b(9),C(10,Nt,3,0,"button",10)(11,It,17,2,"div",11),Z(),C(12,Dt,1,3,"textarea",12)(13,At,2,0),_(),R(14,Fn,19,9,"ng-template",null,0,ee)),n&2){let e=s(),o=c(1);A(e.destinationForm()),l(),Q(o.custom),l(2),Q(o.dynamic),l(2),m("disallowToggle",!0),l(4),A(e.nonSelectedAdvancedFormViews()),l(),g(e.showTextArea()?10:11),l(2),g(e.showTextArea()?12:13)}}var st=class n{#e=v(lt);injector=v(we);#t=null;targetUrl=ke.required();destinationType=y(()=>{let t=this.targetUrl();if(!t)return null;let e=H(t.split("://")[0]);return this.#t=e?.customKey??e?.key,this.#t});destinationForm=k({custom:{},dynamic:{},advanced:{}});advancedFormFieldNames=y(()=>Object.keys(this.destinationForm().advanced));destinationFormConfig=k(null);showTextArea=k(!1);nonSelectedAdvancedFormViews=y(()=>{let t=this.destinationFormConfig();if(!t)return[];let e=this.advancedFormFieldNames();return t.advanced.filter(o=>e.findIndex(i=>i===o.name)===-1)});destinationTypeEffect=te(()=>{let t=this.destinationType()??"",e=H(t),o=e?.key,i=this.#e.backendModules().find(I=>I.Key===o)??{Key:t,DisplayName:t,Description:H(t).description,Options:[]};if(!i||!i.Options||!t)return;let a=e&&e.oauthField?e.oauthField:null,r=e&&e.customFields?e.customFields:{},u=e&&e.dynamicFields?e.dynamicFields:[],N=e&&e.advancedFields?e.advancedFields:[],V=e&&e.ignoredAdvancedFields?e.ignoredAdvancedFields:[],O={destinationType:t,oauthField:a,custom:[],dynamic:[],advanced:[]};r&&Object.entries(r).forEach(([I,f],w)=>{let D=f.order??w;O.custom.push(M({order:900+D},f))});for(let I=0;I<i.Options.length;I++){let f=i.Options[I];if(f.Deprecated)continue;let w=u.find(D=>D===f.Name||f.Aliases?.includes(D.name)||D.name===f.Name);if(w){let D=f.Aliases?.indexOf(w.name)??-1,$=f.Aliases&&D>-1?f.Aliases[D]:f.Name,T=w&&typeof w!="string",K=T?w?.defaultValue??f.DefaultValue:f.DefaultValue,Ne=T&&w?.order!==void 0?w.order:I,j={name:$,type:f.Type,shortDescription:f.ShortDescription??void 0,longDescription:f.LongDescription??void 0,options:f.ValidValues,order:900+Ne},Ee=T?M(M({},j),w):j;O.dynamic.push(Ee)}else{let D=f.Name;if(V.find(ie=>ie===D))continue;let T=N.find(ie=>ie===D||ie.name===D),K=T&&typeof T!="string",Ne=K&&T?.order!==void 0?T.order:I,j={name:D,type:f.Type,shortDescription:f.ShortDescription??void 0,longDescription:f.LongDescription??void 0,options:f.ValidValues,defaultValue:f.DefaultValue,order:900+Ne},Ee=K?M(M({},j),T):j;O.advanced.push(Ee)}}O.custom.sort((I,f)=>I.order-f.order),O.dynamic.sort((I,f)=>I.order-f.order),O.advanced.sort((I,f)=>I.order-f.order),this.destinationFormConfig.set(O);let P=this.targetUrl();if(!P)return;let L=Ye(P);L&&this.destinationForm.set({custom:L.custom,dynamic:L.dynamic,advanced:L.advanced})});destinationFormEffect=te(()=>{let t=this.#t,e=this.destinationForm();if(!e||!t)return;let o=Je({destinationType:t,custom:e.custom,dynamic:e.dynamic,advanced:e.advanced});o&&this.targetUrl.set(o)});getFieldValue(t,e){let i=this.destinationForm()[t][e];return i||null}getFormView(t,e){let i=this.destinationFormConfig()?.[t].find(a=>a.name===e);return i||null}getDefaultFormView(t){return{name:t,type:"String",shortDescription:t,longDescription:$localize`This is an undocumented option.`}}getFieldGroup(t,e){return t[e]}hasLeadingSlash(t){return t?.startsWith("/")??!1}addAdvancedOption(t){let e=this.destinationForm();e.advanced[t.name]=t.defaultValue,this.destinationForm.set(M({},e))}isValidBucketname(t){if(!t)return!1;let e=t.length;return!(e<3||e>63||!/^[a-z0-9.-]+$/.test(t)||!/^[a-z0-9]/.test(t)||!/[a-z0-9]$/.test(t)||/^\d{1,3}(\.\d{1,3}){3}$/.test(t)||/(\.\.)|(\.-)|(-\.)/.test(t))}isValidHostname(t){if(!t||t.length>253)return!1;let e=t.split(".");for(let o of e)if(!o||o.length>63||!/^[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?$/.test(o))return!1;return!0}isTrue(t){if(typeof t=="boolean")return t;if(typeof t=="string"){let e=t.toLowerCase();return e==="true"||e==="1"||e==="yes"||e==="on"}return!1}onKeyDown(t,e,o,i){if(o==="Hostname"||o==="Bucketname"){if(["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Home","End"].includes(i.key))return;if(i.key=="/"||i.key=="\\"||i.key==":"){i.preventDefault();return}}}updateFieldValue(t,e,o){let i=this.destinationForm();i[t][e]=o,this.destinationForm.set(M({},i))}removeAdvancedOption(t){let e=this.destinationForm();delete e.advanced[t],this.destinationForm.set(M({},e))}mapOptions(t){let e=t.loadOptions;if(e)return e(this.injector)();let o=t.options;return o?o.map(i=>({key:i,value:i})):null}mapOptionsWithFreeText(t,e){let o=this.mapOptions(t);return o?(e&&e.length>0&&(o.find(a=>a.value===e)||o.push({key:e,value:e})),o):null}#n=k(!1);oauthStartTokenCreation(t,e,o,i){this.#n.set(!0);let a=this.#e.oauthUrls(),r=this.#e.backupServerOverride(),u=this.#e.serverSettingsOverride(),N=this.destinationForm().advanced["oauth-url"],V=(i??1)==2?a.v2:a.v1;u&&u.length>0&&(V=u),r&&r.length>0&&(V=r),N&&N.length>0&&(V=N);let O=`${V}?type=${t}`,P=450,L=600,I=screen.width/2-P/2,f=screen.height/2-L/2,w=window.open(O,"_blank","height="+L+",width="+P+",menubar=0,status=0,titlebar=0,toolbar=0,left="+I+",top="+f);return window.addEventListener("message",D=>{let $=D.data.startsWith("authid:"),T=$?D.data.replace("authid:",""):null;$&&(this.destinationForm.update(K=>(K[e][o]=T,K)),this.#n.set(!1),w?.close())}),!1}settingsAsText=y(()=>{let t=this.destinationForm().advanced;return Object.entries(t).map(([e,o])=>{let i=e??"",a="";return typeof o=="boolean"?a=this.isTrue(o)?"True":"False":(typeof o=="number"||o!=null)&&(a=o.toString()),`${i}=${a}`}).join(`
|
|
7
|
-
`)});updateSettingsFromText(t){if(typeof t!="string")return;let e=t.split(`
|
|
8
|
-
`).map(i=>i.trim()).filter(i=>i.length>0),o={};for(let i of e){let[a,r]=i.split("=").map(u=>u.trim());a&&a.trim().length>0&&r!==void 0&&(o[a]=r)}this.destinationForm.update(i=>oe(M({},i),{advanced:o}))}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=re({type:n,selectors:[["app-single-destination"]],inputs:{targetUrl:[1,"targetUrl"]},outputs:{targetUrl:"targetUrlChange"},decls:3,vars:3,consts:()=>{let t;t=$localize`Advanced options`;let e;e=$localize` Show editor ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let o;o=$localize` Add advanced option ${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:plus${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON:`;let i;i=$localize`This field is mandatory`;let a;a=$localize`This field is mandatory`;let r;r=$localize`This field is mandatory`;let u;u=$localize`An empty path means storing data in the initial or root folder, which is not recommended`;let N;N=$localize`Hostname is invalid`;let V;V=$localize`Bucket name is invalid`;let O;O=$localize`This field is mandatory`;let P;P=$localize`This field is mandatory`;let L;L=$localize`This field is mandatory`;let I;I=$localize`This field is mandatory`;let f;f=$localize`This field is mandatory`;let w;w=$localize`This field is mandatory`;let D;D=$localize`This field is mandatory`;let $;return $=$localize`This field is mandatory`,[["fieldTemplate",""],["option",""],["enumOptionTemplate",""],["nonValidatedOptionTemplate",""],["optionTemplate",""],t,e,o,[1,"advanced-options",3,"disallowToggle"],["title",""],["shButton","","type","button",1,"outlined","small"],[1,"actions"],["wrap","off","placeholder","Paste advanced options here, one per line.",1,"raw-text-area",3,"ngModel","ngModelOptions"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["shButton","","type","button",1,"outlined","small",3,"click"],[3,"searchable"],["shButton","","type","button",1,"outlined","small",3,"disabled"],["menu",""],["type","button"],["shButton","","type","button",1,"small"],["shButton","","type","button",1,"small",3,"click"],["type","button",3,"click"],["wrap","off","placeholder","Paste advanced options here, one per line.",1,"raw-text-area",3,"ngModelChange","ngModel","ngModelOptions"],[1,"field-row"],[3,"startingPath","accepts","showFiles","hideShortcuts","showHiddenNodes","selectFiles"],[3,"hideShortcuts","enableCreateFolder","startingPath"],[3,"inputType","ngModel","customId"],[1,"primary","raised",3,"active"],[3,"ngModel","customId","placeholder"],["shButton","","type","button",1,"outlined"],[3,"for"],["shTooltip",i],[1,"primary",3,"shTooltip"],["type","text",3,"ngModelChange","id","ngModel"],["shTooltip",a],["shTooltip",r],["shTooltip",u,1,"warn"],["shTooltip",N,1,"error"],["shTooltip",V,1,"warn"],[3,"keydown","ngModelChange","type","id","ngModel"],["prefix","",3,"error","warn","shTooltip"],["prefix",""],["prefix","",3,"shTooltip"],["shTooltip",O],["autocomplete","off",3,"ngModelChange","type","id","ngModel"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],["label","key","value","value",3,"options","isClearable","optionTemplate"],["shTooltip",P],[1,"indeterminate","primary"],["label","key","value","value",3,"options","asFreeText","inlineSearch","optionTemplate"],["shTooltip",L],[3,"ngModelChange","inputType","ngModel","customId"],["shTooltip",I],["shTooltip",f],["type","number",3,"ngModelChange","id","ngModel"],[1,"primary","raised",3,"click"],["key","key","value","value",1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["shTooltip",w],["type","text","id","text",3,"ngModelChange","ngModel"],["shTooltip",D],[3,"ngModelChange","ngModel","customId","placeholder"],["shTooltip",$],["shButton","","type","button",1,"outlined",3,"click"]]},template:function(e,o){if(e&1&&(b(0)(1),C(2,Mn,16,5)),e&2){let i=A(o.destinationType());l();let a=A(o.destinationFormConfig());l(),g(i&&a?2:-1)}},dependencies:[Te,Ce,Ze,ge,fe,Re,et,tt,ot,xe,ze,ue,me,He,Ke,Xe,qe,je,Ue],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.advanced-options[_ngcontent-%COMP%]{position:relative;z-index:1}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}sh-select[_ngcontent-%COMP%]{--miw: p2r(120)}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-8)}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-8)}label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}label[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:1rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}.actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.raw-text-area[_ngcontent-%COMP%]{min-height:12rem;white-space:pre}"],changeDetection:0})};export{at as a,Se as b,rt as c,lt as d,st as e};
|
package/chunk-DKTUN7FF.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-DFMGS3IN.js";import"./chunk-6OPAGPKF.js";import"./chunk-HNWRQABR.js";import"./chunk-EUDKD2JW.js";export{a as DurationFormatPipe};
|
package/chunk-DLMKZACT.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as re}from"./chunk-O64ZZGQZ.js";import{a as ne}from"./chunk-DVDTYV66.js";import"./chunk-UIJYCGKA.js";import{a as ie}from"./chunk-DELLEGXW.js";import"./chunk-RHW5QVAY.js";import"./chunk-VTSUHAP5.js";import{a as te}from"./chunk-UP5EOICU.js";import{b as oe,e as ae,i as le,s as _e}from"./chunk-N5SC4SKW.js";import"./chunk-Z3EPZZGY.js";import"./chunk-UKQFDBNO.js";import{d as q,e as H}from"./chunk-LVP2TPMO.js";import"./chunk-43JMN2ZY.js";import{a as J,e as Q,g as Y,i as Z}from"./chunk-H7K35UUX.js";import{h as ee}from"./chunk-NOPMCS2Z.js";import"./chunk-RUXCS4ZK.js";import"./chunk-FPPZ4BUR.js";import{Ab as i,Ac as z,B as y,Bb as o,Dc as V,Gc as W,H as O,Jb as P,Oc as L,Ra as r,Sb as c,Tb as D,Ub as h,Uc as j,Vb as $,Wb as x,Yb as E,_ as d,bb as F,ea as C,fa as g,ic as I,lc as u,n as U,oa as m,qc as M,r as K,rc as S,sc as B,tc as w,ub as f,uc as v,vb as T,vc as G,zb as A,zc as X}from"./chunk-HNWRQABR.js";import"./chunk-EUDKD2JW.js";var ce=l=>["/backup",l,"export"],se=()=>["/"];function ue(l,_){if(l&1){let t=P();i(0,"section")(1,"h4"),c(2,4),o(),i(3,"p"),c(4,5),o(),i(5,"sh-checkbox",11),u(6," Delete local database "),i(7,"input",12),B("ngModelChange",function(e){C(t);let a=E();return S(a.deleteLocalDb,e)||(a.deleteLocalDb=e),g(e)}),o()()()}if(l&2){let t=E();r(7),M("ngModel",t.deleteLocalDb)}}function de(l,_){if(l&1){let t=P();i(0,"section")(1,"h4"),c(2,6),o(),i(3,"p"),c(4,7),V(5,"bytes"),o(),i(6,"sh-checkbox",11),u(7," Delete remote files "),i(8,"input",12),B("ngModelChange",function(e){C(t);let a=E();return S(a.deleteRemoteFiles,e)||(a.deleteRemoteFiles=e),g(e)}),o()()()}if(l&2){let t=E(),n=G(0),e=(n==null||n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.TargetFilesSize)??0;r(5),D(t.fileCount())(t.fileCount())(W(5,4,e,!0,!0)),h(4),r(3),M("ngModel",t.deleteRemoteFiles)}}var b=class l{#t=d(ee);#n=d(Q);#e=d(ne);#i=d(q);id=j.required();backup=L(()=>this.#e.getBackupById(this.id()));noLocalDbResource=re({params:()=>({dbPath:this.backup()?.Backup?.DBPath}),stream:({params:_})=>this.#t.postApiV1FilesystemValidate({requestBody:{path:_.dbPath}}).pipe(K(()=>!0),y(()=>U(!1)))});fileCount=L(()=>parseInt(this.backup()?.Backup?.Metadata?.TargetFilesCount??"0",10));deleteLocalDb=m(!1);deleteRemoteFiles=m(!1);isDeleting=m(!1);deleteBackup(){let _=this.id(),t=this.deleteLocalDb(),n=this.deleteRemoteFiles();this.isDeleting.set(!0),this.#n.open(ie,{data:{title:$localize`Confirm delete`,message:$localize`Are you sure you want to delete this backup?`,confirmText:$localize`Delete backup`,cancelText:$localize`Cancel`},closed:e=>{e&&this.#e.deleteBackup({id:_,deleteLocalDb:t,deleteRemoteFiles:n}).pipe(O(()=>this.isDeleting.set(!1))).subscribe({next:()=>{this.#i.navigate(["/"])}})}})}static \u0275fac=function(t){return new(t||l)};static \u0275cmp=F({type:l,selectors:[["app-delete-backup"]],inputs:{id:[1,"id"]},decls:19,vars:11,consts:()=>{let _;_=$localize`Delete backup: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let t;t=$localize`Export configuration`;let n;n=$localize`If you want to use the backup later, you can export the configuration before deleting it.`;let e;e=$localize`Cancel`;let a;a=$localize`Delete local database`;let N;N=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. When deleting a backup, you can also delete the local database without affecting the ability to restore the remote files. If you are using the local database for backups from the commandline, you should keep the database. `;let k;k=$localize`Delete remote files`;let p;p=$localize`{VAR_PLURAL, plural, =1 {1 file} other {{INTERPOLATION} files}}`,p=$(p,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let R;return R=$localize` Delete ${p}:ICU@@2159106180826349718: (${"\uFFFD2\uFFFD"}:INTERPOLATION_1:) from the remote storage? `,[_,t,n,e,a,N,k,R,["shButton","",3,"routerLink"],[1,"actions"],["shButton","",1,"raised","error",3,"click"],[1,"primary","raised"],["type","checkbox",3,"ngModelChange","ngModel"]]},template:function(t,n){if(t&1){let e=P();w(0),i(1,"h3"),c(2,0),o(),f(3,ue,8,1,"section"),i(4,"section")(5,"h4"),c(6,1),o(),i(7,"p"),c(8,2),o(),i(9,"button",8),u(10," Export configuration "),i(11,"sh-icon"),u(12,"caret-right"),o()()(),f(13,de,9,8,"section"),i(14,"div",9)(15,"button",8),c(16,3),o(),i(17,"button",10),x("click",function(){return C(e),g(n.deleteBackup())}),u(18,"Delete backup"),o()()}if(t&2){let e=v(n.backup()),a=n.noLocalDbResource.value();r(2),D(e==null||e.Backup==null?null:e.Backup.Name),h(2),r(),T(a?3:-1),r(6),A("routerLink",z(8,ce,n.id())),r(4),T(a?13:-1),r(2),A("routerLink",X(10,se)),r(2),I("loader",n.isDeleting())}},dependencies:[Z,Y,J,_e,oe,ae,le,H,te],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:2.5rem;max-width:43.75rem}section[_ngcontent-%COMP%]{padding:2rem 0;display:flex;align-items:flex-start;flex-direction:column}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}h4[_ngcontent-%COMP%]{font:var(--paragraph-20);margin-bottom:.5rem}p[_ngcontent-%COMP%]{margin-bottom:1rem}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;padding:2rem 0}"],changeDetection:0})};export{b as default};
|
package/chunk-E66CBA5F.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as y}from"./chunk-O64ZZGQZ.js";import{a as w}from"./chunk-UIJYCGKA.js";import{a as b}from"./chunk-VTSUHAP5.js";import"./chunk-UKQFDBNO.js";import"./chunk-LVP2TPMO.js";import"./chunk-43JMN2ZY.js";import{a as I,g as U,p as $}from"./chunk-H7K35UUX.js";import{h as x}from"./chunk-NOPMCS2Z.js";import"./chunk-RUXCS4ZK.js";import"./chunk-FPPZ4BUR.js";import{Ab as a,Bb as r,Cb as d,H as g,Jb as f,Oa as M,Oc as k,Qb as O,Ra as l,Rb as P,Sb as F,Tb as E,Ub as h,Wb as T,Yb as p,_,bb as D,ea as m,fa as C,ic as L,lc as u,mc as R,oa as S,r as v,ub as s,vb as c,zb as G}from"./chunk-HNWRQABR.js";import"./chunk-EUDKD2JW.js";function V(n,o){n&1&&d(0,"sh-progress-bar",3)}function B(n,o){if(n&1&&(a(0,"a",7),O(1,2),d(2,"sh-icon"),P(),r()),n&2){let e,t,i=p(2);G("href",(e=i.serverState())==null?null:e.UpdateDownloadLink,M),l(2),E((t=i.serverState())==null?null:t.UpdatedVersion),h(1)}}function X(n,o){if(n&1){let e=f();a(0,"button",6),T("click",function(){m(e);let i=p();return C(i.checkForUpdates())}),u(1,"Check for updates"),r(),s(2,B,3,2,"a",7)}if(n&2){let e,t=p();L("loader",t.checkingForUpdates()),l(2),c((e=t.serverState())!=null&&e.UpdateDownloadLink?2:-1)}}function z(n,o){if(n&1){let e=f();a(0,"button",6),T("click",function(){m(e);let i=p();return C(i.checkForUpdates())}),u(1,"Checking for updates \u2026"),r()}}function H(n,o){n&1&&d(0,"sh-progress-bar",3)}var N=class n{#e=_(x);#t=_(w);#n=_(b);isLoading=S(!0);checkingForUpdates=S(!1);serverState=this.#t.serverState;duplicatiVersion=k(()=>this.#n.systemInfo()?.ServerVersionName??"Unknown");generalInfo=y(this.#e.getApiV1Acknowledgements().pipe(v(o=>o.Acknowledgements),g(()=>this.isLoading.set(!1))));checkForUpdates(){this.checkingForUpdates.set(!0),this.#e.postApiV1UpdatesCheck().pipe(g(()=>this.checkingForUpdates.set(!1))).subscribe()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=D({type:n,selectors:[["app-general"]],decls:12,vars:5,consts:()=>{let o;o=$localize`General`;let e;e=$localize`You're running Duplicati with - ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let t;return t=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:download${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Download update - ${"\uFFFD0\uFFFD"}:INTERPOLATION: `,[o,e,t,[1,"indeterminate","primary"],[1,"actions"],["shButton",""],["shButton","",3,"click"],["shButton","","target","_blank",1,"primary","raised",3,"href"]]},template:function(e,t){if(e&1&&(s(0,V,1,0,"sh-progress-bar",3),a(1,"section")(2,"h3"),F(3,0),r(),a(4,"p"),F(5,1),r(),a(6,"div",4),s(7,X,3,3)(8,z,2,0,"button",5),s(9,H,1,0,"sh-progress-bar",3),r(),a(10,"div"),u(11),r()()),e&2){let i,A;c(t.isLoading()?0:-1),l(5),E(t.duplicatiVersion()),h(5),l(2),c(((i=t.serverState())==null?null:i.UpdaterState)==="Waiting"?7:((i=t.serverState())==null?null:i.UpdaterState)==="Checking"?8:-1),l(2),c(((A=t.serverState())==null?null:A.UpdaterState)==="Downloading"?9:-1),l(2),R(t.generalInfo())}},dependencies:[$,U,I],styles:["[_nghost-%COMP%]{display:block;position:relative}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{white-space:pre-wrap}sh-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{N as default};
|
package/chunk-EBIM5FBM.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-Z3EPZZGY.js";import{Pc as i,V as t,oa as s}from"./chunk-HNWRQABR.js";var a=class e{#e=o("darkTheme",null,!0);#s=s(window?.innerWidth<=768);#t=s(!1);isDarkMode=this.#e.asReadonly();isMobile=this.#s.asReadonly();isNavOpen=this.#t.asReadonly();constructor(){window.matchMedia("(prefers-color-scheme:dark)").matches&&this.#e()===null&&this.setDarkMode(),i(()=>{this.#e()?document.body.classList.add("dark"):document.body.classList.remove("dark")})}ngOnInit(){window.addEventListener("resize",this.#i)}toggleNav(){this.#t.set(!this.isNavOpen())}toggleBodyClass(){this.#e.set(!this.isDarkMode())}setDarkMode(){this.#e.set(!0)}setLightMode(){this.#e.set(!1)}#i(){this.#s.set(window.innerWidth<=768)}ngOnDestroy(){window.removeEventListener("resize",this.#i)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=t({token:e,factory:e.\u0275fac,providedIn:"root"})};export{a};
|
package/chunk-EQCT6Y4K.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as ht}from"./chunk-7ZTBW6LJ.js";import{a as pt,b as Ot,c as Ct,d as mt,e as Rt}from"./chunk-CMYPDFDT.js";import"./chunk-7IQY6U5W.js";import"./chunk-K56EDP42.js";import"./chunk-TK5QY2QD.js";import{a as Dt}from"./chunk-O2AAKP7A.js";import{h as Et}from"./chunk-VGUK4FJP.js";import"./chunk-FZTPUMUC.js";import"./chunk-DDWLL7XA.js";import"./chunk-2QJC4PGQ.js";import"./chunk-O64ZZGQZ.js";import"./chunk-UIJYCGKA.js";import{a as m}from"./chunk-DELLEGXW.js";import"./chunk-RHW5QVAY.js";import"./chunk-VTSUHAP5.js";import"./chunk-UP5EOICU.js";import{c as _t,e as ct,f as ut,g as Tt,i as gt,j as St,s as dt}from"./chunk-N5SC4SKW.js";import"./chunk-UKQFDBNO.js";import{b as nt,d as it}from"./chunk-LVP2TPMO.js";import"./chunk-43JMN2ZY.js";import{a as ot,b as at,d as st,e as rt,l as Ft,o as lt}from"./chunk-H7K35UUX.js";import"./chunk-NOPMCS2Z.js";import"./chunk-RUXCS4ZK.js";import"./chunk-FPPZ4BUR.js";import{Ab as s,Bb as r,Cb as g,Gb as w,Hb as b,Jb as p,Oc as v,Qb as u,Ra as F,Rb as T,Sb as N,Tb as f,Ub as $,Vb as B,Vc as et,Wb as d,Yb as l,_ as O,bb as j,ea as _,ec as Q,fa as c,fc as q,ia as K,ic as Y,lc as I,mc as k,nc as J,oa as C,qc as A,rc as M,sc as y,ub as D,vb as E,wb as P,xb as x,yb as L,yc as Z,zb as h,zc as tt}from"./chunk-HNWRQABR.js";import"./chunk-EUDKD2JW.js";var It=["formRef"],Nt=()=>({maxWidth:"700px",width:"100%"});function ft(i,n){if(i&1){let t=p();u(0,2,1),s(1,"button",30),d("click",function(){_(t);let e=l();return c(e.testDestination(0,!0))}),r(),T()}if(i&2){let t=l();F(),Y("loader",t.testSignal()=="testing"),h("disabled",t.testSignal()=="testing")}}function $t(i,n){if(i&1){let t=p();u(0,2,2),s(1,"button",20),d("click",function(){_(t);let e=l();return c(e.copyTargetUrl())}),g(2,"sh-icon"),r(),T()}}function At(i,n){i&1&&(s(0,"sh-alert"),u(1,5),g(2,"sh-icon",31),T(),r())}function Mt(i,n){i&1&&(s(0,"sh-alert",21),u(1,6),g(2,"sh-icon",31),T(),r())}function yt(i,n){if(i&1&&(s(0,"sh-alert",22),u(1,7),g(2,"sh-icon",31),T(),r()),i&2){let t=l();F(2),f(t.testErrorMessage()),$(1)}}function Pt(i,n){if(i&1&&(s(0,"sh-alert",23),u(1,8),g(2,"sh-icon",31),T(),r()),i&2){let t=l();F(2),f(t.testErrorMessage()),$(1)}}function xt(i,n){if(i&1){let t=p();s(0,"p",32),d("click",function(){_(t);let e=l();return c(e.removeDestination())}),u(1,9),g(2,"strong")(3,"br")(4,"span",33),T(),r()}if(i&2){let t,o=l();F(4),f((t=o.selectedDestinationType())==null?null:t.displayName),$(1)}}function Lt(i,n){if(i&1){let t=p();s(0,"div",39),d("click",function(){let e=_(t).$implicit,a=l(2);return c(a.setDestination(e.key))}),s(1,"h3"),I(2),r(),s(3,"p"),I(4),r()()}if(i&2){let t=n.$implicit;F(2),k(t.displayName),F(2),k(t.description)}}function wt(i,n){if(i&1){let t=p();s(0,"button",40,1),d("click",function(){let e=_(t).$implicit,a=l(2);return c(a.setDestination(e.key))}),I(2),r()}if(i&2){let t=n.$implicit;F(2),J(" ",t.displayName," ")}}function bt(i,n){if(i&1&&(s(0,"div",34),x(1,Lt,5,2,"div",35,P),r(),s(3,"sh-menu",36)(4,"button",37),N(5,10),r(),w(6,19),x(7,wt,3,1,"button",38,P),b(),r()),i&2){let t=l();F(),L(t.destinationTypeOptionsFocused()),F(2),h("searchable",!0),F(4),L(t.destinationTypeOptions())}}function Bt(i,n){if(i&1){let t=p();s(0,"app-single-destination",41),y("targetUrlChange",function(e){_(t);let a=l();return M(a.targetUrlModel,e)||(a.targetUrlModel=e),c(e)}),r()}if(i&2){let t=l();A("targetUrl",t.targetUrlModel)}}function kt(i,n){i&1&&(u(0,4,1),g(1,"sh-icon",28),T())}function vt(i,n){i&1&&(u(0,4,2),g(1,"sh-icon"),T())}function Gt(i,n){if(i&1){let t=p();s(0,"sh-dialog",42),y("isOpenChange",function(e){_(t);let a=l();return M(a.targetUrlDialogOpen,e)||(a.targetUrlDialogOpen=e),c(e)}),s(1,"header",43)(2,"h2"),N(3,11),r(),s(4,"sh-alert",22),N(5,12),r()(),s(6,"div",44)(7,"sh-form-field")(8,"textarea",45),y("ngModelChange",function(e){_(t);let a=l();return M(a.targetUrlCtrl,e)||(a.targetUrlCtrl=e),c(e)}),r()()(),s(9,"footer",46)(10,"button",26),d("click",function(){_(t);let e=l();return c(e.closeTargetUrlDialog(!1))}),I(11,"Cancel"),r(),s(12,"button",47),d("click",function(){_(t);let e=l();return c(e.closeTargetUrlDialog(!0))}),u(13,13),g(14,"sh-icon"),T(),r()()()}if(i&2){let t=l();A("isOpen",t.targetUrlDialogOpen),h("options",tt(3,Nt)),F(8),A("ngModel",t.targetUrlCtrl)}}var G=class i{#i=O(it);#o=O(nt);#e=O(rt);#a=O(pt);injector=O(K);#t=O(ht);#s=O(Ot);formRef=et.required("formRef");targetUrlModel=this.#t.destinationTargetUrl;targetUrlCtrl=C(null);targetUrlInitial=C(null);targetUrlDialogOpen=C(!1);toggleNewDestination=C(!0);testSignal=this.#t.testSignal;testErrorMessage=this.#t.testErrorMessage;destinationTypeOptionsInFocus=C(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=this.#s.destinationTypeOptions;destinationTypeOptionsFocused=v(()=>{let n=this.destinationTypeOptionsInFocus(),t=this.destinationTypeOptions();return n.map(o=>t.find(e=>e.key===o))});selectedDestinationType=v(()=>{let n=this.#t.destinationTargetUrl();if(!n)return null;let t=n.split("://")[0];return Dt(t)});copyTargetUrl(){navigator.clipboard.writeText(this.#t.destinationTargetUrl()??"")}openTargetUrlDialog(){let n=this.#t.destinationTargetUrl();this.targetUrlCtrl.set(n),this.targetUrlInitial.set(n),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(n=!1){this.targetUrlDialogOpen.set(!1);let t=this.targetUrlCtrl(),o=this.targetUrlInitial();!n||t===o||!t||this.#t.updateTargetUrl(t)}testDestination(n,t,o){let e=this.#t.destinationTargetUrl();e&&(this.#t.setTestState("testing"),this.#a.testDestination(e,n,!0,t).subscribe({next:a=>{if(a.action==="success"){this.#t.setTestState("success"),a.containsBackup===!1?(this.#t.setTestState("warning",$localize`The remote destination does not contain any backups. Please check if the destination details are correct.`),t||this.#e.open(m,{data:{title:$localize`Folder contains no backup`,message:$localize`The remote destination does not contain any backups. Please check if the destination details are correct.`,confirmText:$localize`OK`,cancelText:void 0}})):a.anyFilesFound===!1&&(this.#t.setTestState("warning",$localize`The remote destination is empty. Please check if the destination details are correct.`),t||this.#e.open(m,{data:{title:$localize`Folder is empty`,message:$localize`The remote destination is empty. Please check if the destination details are correct.`,confirmText:$localize`OK`,cancelText:void 0}})),o?.();return}if(this.#t.setTestState("error",a.errorMessage??$localize`An error occurred while testing the destination.`),a.action==="generic-error"){o?.();return}let R=e.includes("?");a.action==="trust-cert"&&this.#t.updateTargetUrl(e+`${R?"&":"?"}accept-specified-ssl-hash=${a.certData}`),a.action==="approve-host-key"&&this.#t.updateTargetUrl(e+`${R?"&":"?"}ssh-fingerprint=${a.reportedHostKey}`),a.testAgain?this.testDestination(a.destinationIndex,t):o?.()}}))}setDestination(n){this.#t.updateTargetUrl(`${n}://`)}removeDestination(){this.#t.updateTargetUrl(null)}goBack(){this.#i.navigate(["general"],{relativeTo:this.#o.parent})}next(){let n=this.testSignal();if(n===""){this.#e.open(m,{data:{title:$localize`Test destination`,message:$localize`You have not tested the destination yet. Do you want to test it now?`,confirmText:$localize`Test now`,cancelText:$localize`Skip test and continue`},closed:t=>{t?this.testDestination(0,!1,()=>{this.testSignal()==="success"?this.#n():this.#e.open(m,{data:{title:$localize`Test did not succeed`,message:this.testErrorMessage()??$localize`Failed to test the destination.`,confirmText:$localize`OK`,cancelText:void 0}})}):this.#n()}});return}if(n!=="success"){this.#e.open(m,{data:{title:$localize`Test destination`,message:$localize`The destination has not been tested successfully. Are you sure you want to continue?`,confirmText:$localize`Yes, continue`,cancelText:$localize`Cancel`},closed:t=>{t&&this.#n()}});return}this.#n()}#n(){this.#i.navigate(["encryption"],{relativeTo:this.#o.parent})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=j({type:i,selectors:[["app-restore-destination"]],viewQuery:function(t,o){t&1&&Q(o.formRef,It,5),t&2&&q()},features:[Z([Et,{provide:mt,useClass:Ct}])],decls:30,vars:9,consts:()=>{let n;n=$localize` Backup destination ${"\uFFFD#5\uFFFD"}:START_TAG_DIV:${"[\uFFFD*6:1\uFFFD|\uFFFD*13:2\uFFFD]"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON: Test destination ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_BUTTON:${"[\uFFFD/*6:1\uFFFD|\uFFFD/*13:2\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD#7\uFFFD"}:START_TAG_SH_MENU:${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#9\uFFFD|\uFFFD#12\uFFFD|\uFFFD#2:2\uFFFD]"}:START_TAG_SH_ICON:dots-three-vertical${"[\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD|\uFFFD/#2:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#10\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD#11\uFFFD"}:START_TAG_BUTTON_2:${"[\uFFFD#9\uFFFD|\uFFFD#12\uFFFD|\uFFFD#2:2\uFFFD]"}:START_TAG_SH_ICON:link${"[\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD|\uFFFD/#2:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Edit target URL ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_BUTTON:${"[\uFFFD*6:1\uFFFD|\uFFFD*13:2\uFFFD]"}:START_BLOCK_IF:${"\uFFFD#1:2\uFFFD"}:START_TAG_BUTTON_3:${"[\uFFFD#9\uFFFD|\uFFFD#12\uFFFD|\uFFFD#2:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD|\uFFFD/#2:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copy url to clipboard ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_BUTTON:${"[\uFFFD/*6:1\uFFFD|\uFFFD/*13:2\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_MENU:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_DIV:`,n=B(n);let t;t=$localize`${"\uFFFD#24\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#24\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let o;o=$localize`${"\uFFFD*27:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SH_ICON:spinner${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*27:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*28:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SH_ICON_1:arrow-right${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*28:2\uFFFD"}:CLOSE_BLOCK_ELSE: Continue `,o=B(o);let e;e=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:spinner${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Testing connection... `;let a;a=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:check${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Connection tested successfully. `;let R;R=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:warning${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let U;U=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:warning${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let V;V=$localize` Current destination type ${"\uFFFD#2\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:.${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#3\uFFFD\uFFFD/#3\uFFFD"}:LINE_BREAK: Want to select another? ${"\uFFFD#4\uFFFD"}:START_TAG_SPAN:Click here${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SPAN:`;let W;W=$localize`All destinations`;let z;z=$localize`Edit target URL`;let H;H=$localize`Be careful, this will overwrite everything you have in your destination.`;let X;return X=$localize` Override target URL ${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["formRef",""],["option",""],n,t,o,e,a,R,U,V,W,z,H,X,[3,"submit"],[1,"title-30"],[1,"actions"],["shButton","","type","button",1,"small",3,"disabled","loader"],["shButton","","type","button",1,"small"],["menu",""],["shButton","","type","button",1,"small",3,"click"],[1,"success"],[1,"warn"],[1,"error"],[3,"targetUrl"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[1,"loader"],[3,"isOpen","options"],["shButton","","type","button",1,"small",3,"click","disabled"],["icon",""],[3,"click"],[1,"sh-primary"],[1,"most-common-destinations"],[1,"tile"],[3,"searchable"],["shButton","","type","button",1,"outlined"],["type","button"],[1,"tile",3,"click"],["type","button",3,"click"],[3,"targetUrlChange","targetUrl"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","submit",1,"raised","primary",3,"click"]]},template:function(t,o){if(t&1){let e=p();s(0,"form",14,0),d("submit",function(){return _(e),c(o.next())}),s(2,"header")(3,"h3",15),u(4,2),s(5,"div",16),D(6,ft,2,3,"button",17),s(7,"sh-menu")(8,"button",18),g(9,"sh-icon"),r(),w(10,19),s(11,"button",20),d("click",function(){return _(e),c(o.openTargetUrlDialog())}),g(12,"sh-icon"),r(),D(13,$t,3,0,"button",18),b(),r()(),T(),r(),D(14,At,3,0,"sh-alert")(15,Mt,3,0,"sh-alert",21)(16,yt,3,1,"sh-alert",22)(17,Pt,3,1,"sh-alert",23),D(18,xt,5,1,"p"),r(),D(19,bt,9,1),D(20,Bt,1,1,"app-single-destination",24),s(21,"div",25)(22,"button",26),d("click",function(){return _(e),c(o.goBack())}),u(23,3),g(24,"sh-icon"),T(),r(),s(25,"button",27),u(26,4),D(27,kt,2,0,"sh-icon",28)(28,vt,2,0,"sh-icon"),T(),r()()(),D(29,Gt,15,4,"sh-dialog",29)}if(t&2){let e=!!o.targetUrlModel();F(6),E(e?6:-1),F(7),E(e?13:-1),F(),E(o.testSignal()=="testing"?14:o.testSignal()=="success"?15:o.testSignal()=="warning"?16:o.testSignal()=="error"?17:-1),F(4),E(e?18:-1),F(),E(e?-1:19),F(),E(e?20:-1),F(5),h("disabled",o.testSignal()=="testing"||!e),F(2),E(o.testSignal()=="testing"?27:28),F(2),E(o.targetUrlDialogOpen()?29:-1)}},dependencies:[Rt,dt,St,_t,ct,ut,gt,Tt,Ft,lt,ot,st,at],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-8)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10);background-color:var(--base-2);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-8)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}"],changeDetection:0})};export{G as default};
|
package/chunk-FCRM5DER.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as z}from"./chunk-QHC3CY43.js";import{b as A,c as G,d as T,e as R,f as V,j as q,o as $,q as B,r as Q,t as j}from"./chunk-N5SC4SKW.js";import{a as k}from"./chunk-Z3EPZZGY.js";import{d as D}from"./chunk-UKQFDBNO.js";import{d as x}from"./chunk-LVP2TPMO.js";import"./chunk-43JMN2ZY.js";import{a as E,b as O,g as P,i as I,l as F}from"./chunk-H7K35UUX.js";import"./chunk-NOPMCS2Z.js";import"./chunk-RUXCS4ZK.js";import"./chunk-FPPZ4BUR.js";import{Ab as t,Bb as o,Cb as s,H as u,Jb as _,Pc as S,Ra as c,Vc as N,Wb as w,_ as p,bb as h,ea as g,ec as v,fa as f,fc as L,ic as y,lc as r,oa as m,ub as b,vb as C,zb as M}from"./chunk-HNWRQABR.js";import"./chunk-EUDKD2JW.js";var H=["passwordInput"];function K(a,e){a&1&&(t(0,"sh-alert",2),r(1," Remember to enter a password, if you can't remember the password open the duplicati client on the machine in question and make sure you open it through the tray icon then go into settings to change the password. "),o())}var l=new Q,d=class a{#e=p(x);#t=p(D);rememberMe=k("rememberMe",!1,!0);failedLogin=m(!1);successLogin=m(!1);isLoading=m(!1);loginForm=l.group({user:l.control(""),pass:l.control("",T.required),rememberMe:l.control(this.rememberMe())});passwordInput=N("passwordInput");passwordEffect=S(()=>{this.failedLogin()&&queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())});ngOnInit(){this.loginForm.controls.rememberMe.valueChanges.subscribe(e=>this.rememberMe.set(e??!1)),queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())}submit(){let e=this.loginForm.value.pass,n=this.loginForm.value.user;this.rememberMe.set(this.loginForm.value.rememberMe??!1),!n&&e&&(this.isLoading.set(!0),this.#t.login(e,this.rememberMe()).pipe(u(()=>{this.isLoading.set(!1),this.failedLogin.set(!0)})).subscribe({next:()=>{this.successLogin.set(!0),this.#e.navigate(["/"])}}))}static \u0275fac=function(n){return new(n||a)};static \u0275cmp=h({type:a,selectors:[["app-login"]],viewQuery:function(n,i){n&1&&v(i.passwordInput,H,5),n&2&&L()},decls:24,vars:4,consts:()=>{let e;return e=$localize`Enter your password`,[["passwordInput",""],[3,"submit","formGroup"],["type","warning"],[1,"logo-login"],[1,"inner"],[1,"login-row"],["type","text","hidden","","autocomplete","off","name","username","formControlName","user"],["for","password"],["href","https://docs.duplicati.com/detailed-descriptions/duplicati-access-password","target","_blank","rel","noopener noreferrer"],["type","password","name","password","autocomplete","current-password","placeholder",e,"tabindex","1","formControlName","pass"],["shButton","","type","submit",1,"raised","primary"],[1,"raised","primary"],["type","checkbox","id","rememberMe","tabindex","2","formControlName","rememberMe"],[1,"login-row","checkbox"],["for","rememberMe",1,"remember-me"]]},template:function(n,i){if(n&1){let X=_();t(0,"form",1),w("submit",function(){return g(X),f(i.submit())}),b(1,K,2,0,"sh-alert",2),t(2,"div",3),s(3,"app-logo"),o(),t(4,"div",4)(5,"div",5),s(6,"input",6),t(7,"sh-form-field")(8,"label",7),r(9," Password "),t(10,"a",8)(11,"sh-icon"),r(12,"question"),o()()(),s(13,"input",9,0),o(),t(15,"button",10),r(16," Login "),t(17,"sh-icon"),r(18,"arrow-right"),o()()(),t(19,"sh-checkbox",11),r(20," Keep me logged in "),s(21,"input",12),o(),t(22,"div",13),s(23,"label",14),o()()()}n&2&&(M("formGroup",i.loginForm),c(),C(i.failedLogin()&&!i.successLogin()?1:-1),c(14),y("loader",i.isLoading()))},dependencies:[j,q,G,A,R,V,$,B,z,F,E,P,O,I],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem}form[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem}form[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{align-self:flex-start}sh-alert[_ngcontent-%COMP%]{max-width:20rem;margin:0 auto}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.logo-login[_ngcontent-%COMP%]{top:0;left:0;padding:1.25rem;position:fixed}"],changeDetection:0})};export{d as default};
|
package/chunk-FUOS2UGQ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as v}from"./chunk-DVDTYV66.js";import"./chunk-UIJYCGKA.js";import"./chunk-RHW5QVAY.js";import"./chunk-VTSUHAP5.js";import{b as k,c as G,e as L,f as w,j as U,o as x,q as j,r as K,t as X}from"./chunk-N5SC4SKW.js";import"./chunk-Z3EPZZGY.js";import"./chunk-UKQFDBNO.js";import{d as A,e as O}from"./chunk-LVP2TPMO.js";import"./chunk-43JMN2ZY.js";import{A as E,a as y,c as N,g as b,l as B,m as R}from"./chunk-H7K35UUX.js";import{h as $}from"./chunk-NOPMCS2Z.js";import"./chunk-RUXCS4ZK.js";import"./chunk-FPPZ4BUR.js";import{Ab as a,Bb as n,Cb as l,H as g,Qb as C,Ra as s,Rb as h,Sb as _,Vb as I,Wb as d,_ as F,bb as T,ic as P,oa as m,ub as S,vb as D,zb as c,zc as M}from"./chunk-HNWRQABR.js";import"./chunk-EUDKD2JW.js";var V=()=>["/"];function z(p,o){p&1&&(a(0,"sh-form-field")(1,"label",14),_(2,3),n(),l(3,"input",15),n())}var u=new K,f=class p{#e=F(N);#o=F($);#n=F(v);#t=F(A);isImporting=m(!1);isSecureFile=m(!1);importForm=u.group({config:u.control(""),cmdline:u.control(!1),import_metadata:u.control(!1),direct:u.control(!1),passphrase:u.control("")});selectedFile=m([]);onFileDropped(o){let e=o[0];if(e){let t=new FileReader;this.isSecureFile.set(e.type!=="application/json"),t.onload=this.#i.bind(this),t.readAsArrayBuffer(e)}}#i(o){let e=o.target?.result;this.isSecureFile.set(this.#r(e)!=="json"),this.importForm.patchValue({config:this.#a(e)})}#r(o){let e=new Uint8Array(o);if(e.length>=5&&e[0]===65&&e[1]===69&&e[2]===83&&e[4]===0)return"aes";try{let t=new TextDecoder().decode(o),i=JSON.parse(t);if(typeof i=="object"&&i!==null)return"json"}catch{}return"unknown"}#a(o){let e=new Uint8Array(o),t=e.byteLength,i="";for(let r=0;r<t;r++)i+=String.fromCharCode(e[r]);return btoa(i)}submit(){this.isImporting.set(!0);let o=this.importForm.value.direct??!1;this.#o.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(g(()=>this.isImporting.set(!1))).subscribe({next:e=>{if(o){this.#e.success("Backup imported successfully."),this.#t.navigate(["/"]);return}let t=this.#n.addDraftBackup(e.data);this.#t.navigate(["/backup-draft",t])},error:e=>{this.#e.error(e.message)}})}static \u0275fac=function(e){return new(e||p)};static \u0275cmp=T({type:p,selectors:[["app-import"]],decls:19,vars:8,consts:()=>{let o;o=$localize` Import backup configuration ${"\uFFFD#3\uFFFD"}:START_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SH_ICON:arrow-left${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SH_ICON: Back ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SH_ICON:download-simple${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SH_ICON: Import ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_DIV:`,o=I(o);let e;e=$localize`Import Metadata`;let t;t=$localize`Save now`;let i;return i=$localize`Passphrase`,[o,e,t,i,[1,"actions"],["shButton","","type","button",1,"outlined",3,"routerLink"],["shButton","","type","submit",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["accept",".json,.aes",3,"filesChange","files"],[1,"primary","raised"],["for","importMetadata"],["type","checkbox","formControlName","import_metadata"],["for","direct"],["type","checkbox","formControlName","direct"],["for","passphrase"],["type","password","formControlName","passphrase"]]},template:function(e,t){e&1&&(a(0,"header")(1,"h3"),C(2,0),a(3,"div",4)(4,"button",5),l(5,"sh-icon"),n(),a(6,"button",6),d("click",function(){return t.submit()}),l(7,"sh-icon"),n()(),h(),n()(),a(8,"form",7)(9,"sh-file-upload",8),d("filesChange",function(r){return t.onFileDropped(r)}),n(),S(10,z,4,0,"sh-form-field"),a(11,"sh-toggle",9)(12,"label",10),_(13,1),n(),l(14,"input",11),n(),a(15,"sh-toggle",9)(16,"label",12),_(17,2),n(),l(18,"input",13),n()()),e&2&&(s(4),c("routerLink",M(7,V)),s(2),P("loader",t.isImporting()),c("disabled",t.isImporting()),s(2),c("formGroup",t.importForm),s(),c("files",t.selectedFile()),s(),D(t.isSecureFile()?10:-1))},dependencies:[X,U,G,k,L,w,x,j,O,B,y,b,E,R],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}sh-file-upload[_ngcontent-%COMP%]{width:100%}"],changeDetection:0})};export{f as default};
|
package/chunk-FUX6GJRD.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as S}from"./chunk-NJEX2N4Q.js";import"./chunk-6LTGTS6B.js";import"./chunk-DVDTYV66.js";import"./chunk-UIJYCGKA.js";import"./chunk-DELLEGXW.js";import"./chunk-RHW5QVAY.js";import"./chunk-VTSUHAP5.js";import"./chunk-UP5EOICU.js";import"./chunk-N5SC4SKW.js";import"./chunk-Z3EPZZGY.js";import"./chunk-UKQFDBNO.js";import{c as O,e as C,f as d}from"./chunk-LVP2TPMO.js";import"./chunk-43JMN2ZY.js";import{y as M}from"./chunk-H7K35UUX.js";import"./chunk-NOPMCS2Z.js";import"./chunk-TDKBGGNK.js";import"./chunk-RUXCS4ZK.js";import"./chunk-FPPZ4BUR.js";import"./chunk-6OPAGPKF.js";import{Ab as e,Bb as t,Cb as l,Sb as n,bb as A}from"./chunk-HNWRQABR.js";import"./chunk-EUDKD2JW.js";var s=class a{static \u0275fac=function(o){return new(o||a)};static \u0275cmp=A({type:a,selectors:[["app-about"]],decls:19,vars:0,consts:()=>{let _;_=$localize`General`;let o;o=$localize`Changelog`;let r;r=$localize`Libraries`;let g;g=$localize`System info`;let u;u=$localize`Server settings`;let T;T=$localize`Logs`;let c;return c=$localize`Crash log`,[_,o,r,g,u,T,c,[1,"content"],[1,"primary"],["tab","","routerLink","/about/general","routerLinkActive","active"],["tab","","routerLink","/about/changelog","routerLinkActive","active"],["tab","","routerLink","/about/libraries","routerLinkActive","active"],["tab","","routerLink","/about/system-info","routerLinkActive","active"],["tab","","routerLink","/about/server-settings","routerLinkActive","active"],["tab","","routerLink","/about/logs","routerLinkActive","active"],["tab","","routerLink","/about/crashlogs","routerLinkActive","active"]]},template:function(o,r){o&1&&(l(0,"app-status-bar"),e(1,"div",7)(2,"sh-tabs",8)(3,"button",9),n(4,0),t(),e(5,"button",10),n(6,1),t(),e(7,"button",11),n(8,2),t(),e(9,"button",12),n(10,3),t(),e(11,"button",13),n(12,4),t(),e(13,"button",14),n(14,5),t(),e(15,"button",15),n(16,6),t()(),e(17,"section"),l(18,"router-outlet"),t()())},dependencies:[S,M,O,C,d],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:0}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem 0}.content[_ngcontent-%COMP%] sh-tabs[_ngcontent-%COMP%]{margin:0 2rem 2rem}.content[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{padding:0}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:2rem}"],changeDetection:0})};export{s as default};
|
package/chunk-FZHTJSDJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as E}from"./chunk-NJEX2N4Q.js";import"./chunk-6LTGTS6B.js";import"./chunk-DVDTYV66.js";import"./chunk-UIJYCGKA.js";import"./chunk-DELLEGXW.js";import"./chunk-RHW5QVAY.js";import"./chunk-VTSUHAP5.js";import"./chunk-UP5EOICU.js";import"./chunk-N5SC4SKW.js";import"./chunk-Z3EPZZGY.js";import"./chunk-UKQFDBNO.js";import{e as S}from"./chunk-LVP2TPMO.js";import"./chunk-43JMN2ZY.js";import{a as T,g as M,h as f}from"./chunk-H7K35UUX.js";import"./chunk-NOPMCS2Z.js";import"./chunk-TDKBGGNK.js";import"./chunk-RUXCS4ZK.js";import"./chunk-FPPZ4BUR.js";import"./chunk-6OPAGPKF.js";import{Ab as e,Bb as n,Cb as _,Qb as l,Ra as s,Rb as d,Sb as i,bb as P,zb as r,zc as u}from"./chunk-HNWRQABR.js";import"./chunk-EUDKD2JW.js";var F=()=>["/backup/new"],N=()=>["/backup/import"],C=class p{static \u0275fac=function(t){return new(t||p)};static \u0275cmp=P({type:p,selectors:[["app-add-backup"]],decls:23,vars:4,consts:()=>{let a;a=$localize`Add a new backup`;let t;t=$localize`New backup`;let c;c=$localize`Configure a new backup. Choose your destination, source data and schedule.`;let A;A=$localize` Add a new backup ${"\uFFFD#13\uFFFD"}:START_TAG_SH_ICON:plus${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SH_ICON:`;let g;g=$localize`Import from file`;let m;m=$localize`Import backup configuration from a file. During import, you can adjust the settings.`;let D;return D=$localize` Import from file ${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:upload-simple${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON:`,[a,t,c,A,g,m,D,[1,"backup-types"],[1,"type-a"],["src","assets/images/new-backup.png"],["shButton","",1,"raised","primary",3,"routerLink"]]},template:function(t,c){t&1&&(_(0,"app-status-bar"),e(1,"section")(2,"h2"),i(3,0),n(),e(4,"div",7)(5,"sh-card",8),_(6,"img",9),e(7,"h3"),i(8,1),n(),e(9,"p"),i(10,2),n(),e(11,"button",10),l(12,3),_(13,"sh-icon"),d(),n()(),e(14,"sh-card",8),_(15,"img",9),e(16,"h3"),i(17,4),n(),e(18,"p"),i(19,5),n(),e(20,"button",10),l(21,6),_(22,"sh-icon"),d(),n()()()()),t&2&&(s(11),r("routerLink",u(2,F)),s(9),r("routerLink",u(3,N)))},dependencies:[E,M,f,T,S],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;gap:2rem;padding:2rem 0}div.backup-types[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:43.75rem}sh-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-bottom:3rem}sh-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:18.75rem}sh-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;text-align:center;width:75%}"],changeDetection:0})};export{C as default};
|
package/chunk-FZTPUMUC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as ze}from"./chunk-DELLEGXW.js";import{a as Ve}from"./chunk-VTSUHAP5.js";import{a as He,c as Z,e as ee,i as te,k as Ge,s as ie}from"./chunk-N5SC4SKW.js";import{A as We,a as De,d as Re,e as Ie,f as Ae,l as Y,n as Be,p as Le,t as ke}from"./chunk-H7K35UUX.js";import{h as $e}from"./chunk-NOPMCS2Z.js";import{ea as we}from"./chunk-RUXCS4ZK.js";import{Ab as c,Ac as J,B as _e,Bb as p,Bc as ye,Cb as K,H as se,Hc as xe,Ib as le,Jb as W,Oc as A,Pc as B,Qb as Pe,Ra as g,Rb as Te,Sb as $,Tb as Ee,Tc as de,Ub as be,Uc as P,Vc as pe,Wb as w,Yb as u,Zb as Q,_ as X,_b as I,bb as q,ea as v,ec as ae,fa as F,fc as Me,gb as G,gc as ce,hc as U,ic as x,lc as b,mc as ve,n as he,nc as Fe,oa as E,oc as Se,qc as V,r as j,rc as z,sc as H,tb as me,ub as S,vb as N,x as ge,xb as fe,yb as Ce,yc as Ne,zb as y,zc as Oe}from"./chunk-HNWRQABR.js";import{a as oe,b as re}from"./chunk-EUDKD2JW.js";var et=["treeContainer"],tt=["formRef"],it=[[["label"]],[["label"]],[["input"]]],nt=["label","label","input"],ot=o=>({children:o,level:0}),je=o=>({$implicit:o}),rt=(o,t)=>({children:o,level:t}),st=()=>({maxWidth:"700px",width:"100%"}),lt=(o,t)=>t.id;function at(o,t){if(o&1){let e=W();c(0,"sh-button-group")(1,"button",19),w("click",function(){v(e);let n=u();return F(n.pathDiscoveryMethod.set("browse"))}),$(2,4),p(),c(3,"button",19),w("click",function(){v(e);let n=u();return F(n.pathDiscoveryMethod.set("path"))}),$(4,5),p()()}if(o&2){let e=u();g(),x("active",e.pathDiscoveryMethod()==="browse"),g(2),x("active",e.pathDiscoveryMethod()==="path")}}function ct(o,t){o&1&&K(0,"sh-progress-bar",12)}function dt(o,t){o&1&&(c(0,"sh-icon",24),b(1,"caret-down"),p())}function pt(o,t){o&1&&K(0,"sh-icon",24)}function ut(o,t){o&1&&(c(0,"sh-icon",24),b(1,"caret-right"),p())}function ht(o,t){o&1&&(c(0,"sh-icon",22),b(1,"folder-open"),p())}function gt(o,t){o&1&&(c(0,"sh-icon",22),b(1,"folder-user"),p())}function _t(o,t){o&1&&(c(0,"sh-icon",22),b(1,"file"),p())}function mt(o,t){o&1&&(c(0,"sh-icon",22),b(1,"folder"),p())}function ft(o,t){if(o&1&&(S(0,dt,2,0,"sh-icon",24)(1,pt,1,0,"sh-icon",24)(2,ut,2,0,"sh-icon",24),S(3,ht,2,0,"sh-icon",22)(4,gt,2,0,"sh-icon",22)(5,_t,2,0,"sh-icon",22)(6,mt,2,0,"sh-icon",22)),o&2){let e=u(2).$implicit;N(e.children.length?0:e.cls==="file"?1:2),g(3),N(e.children.length?3:e.id==="%HOME%"?4:e.cls==="file"?5:6)}}function Ct(o,t){o&1&&(c(0,"sh-icon",22),b(1,"desktop-tower"),p())}function Pt(o,t){o&1&&le(0)}function Tt(o,t){if(o&1&&G(0,Pt,1,0,"ng-container",13),o&2){let e=u(2).$implicit,i=u().$implicit;u();let n=ce(7);y("ngTemplateOutlet",n)("ngTemplateOutletContext",J(5,je,ye(2,rt,e.children,i.level+1)))}}function Et(o,t){if(o&1){let e=W();c(0,"div",20,3),w("click",function(){v(e);let n=u().$implicit,r=u(2);return F(r.toggleNode(n.id,n))}),c(2,"div",21),S(3,ft,7,2)(4,Ct,2,0,"sh-icon",22),p(),c(5,"div",23),w("click",function(n){v(e);let r=u().$implicit,a=u(2);return F(a.toggleSelectedNode(n,r))}),b(6),p()(),S(7,Tt,1,7,"ng-container")}if(o&2){let e=u().$implicit,i=u().$implicit,n=u();x("accepted",e.accepted===!0)("active",e.evalState===n.TreeEvalEnum.Included)("indeterminate",e.isIndeterminate)("open",e.children.length)("usually-hidden",e.hidden)("root",i.level===0),g(2),x("file",e.cls==="file"),g(),N(e.id!=="/"?3:4),g(3),Fe(" ",e.text," "),g(),N(e.children.length>0?7:-1)}}function bt(o,t){if(o&1&&S(0,Et,8,17),o&2){let e=t.$implicit,i=u(2);N(e.hidden&&i._showHiddenNodes()||!e.hidden?0:-1)}}function Mt(o,t){if(o&1&&(c(0,"sh-list"),fe(1,bt,1,1,null,null,lt),p()),o&2){let e=t.$implicit;U("padding-left",e.level*.25,"rem"),g(),Ce(e.children)}}function vt(o,t){o&1&&le(0)}function Ft(o,t){if(o&1){let e=W();c(0,"sh-toggle",25),w("click",function(){v(e);let n=u();return F(n._showHiddenNodes.set(!n._showHiddenNodes()))}),$(1,6),p()}if(o&2){let e=u();x("active",e._showHiddenNodes()),g(),Ee(e.showFiles()?"files":"folders"),be(1)}}function St(o,t){if(o&1){let e=W();c(0,"button",26),w("click",function(){v(e);let n=u();return F(n.openCreateFolderDialog())}),$(1,7),p()}if(o&2){let e=u();y("disabled",!e.isCurrentPathFolder())}}function Nt(o,t){if(o&1){let e=W();c(0,"sh-dialog",27),H("isOpenChange",function(n){v(e);let r=u();return z(r.createFolderDialogOpen,n)||(r.createFolderDialogOpen=n),F(n)}),c(1,"header",28)(2,"h2"),$(3,8),p()(),c(4,"div",29)(5,"div"),b(6," Folder will be created under "),c(7,"pre"),b(8),p()(),c(9,"sh-form-field")(10,"textarea",30),H("ngModelChange",function(n){v(e);let r=u();return z(r.createFolderPath,n)||(r.createFolderPath=n),F(n)}),p()()(),c(11,"footer",31)(12,"button",32),w("click",function(){v(e);let n=u();return F(n.closeCreateFolderDialog(!1))}),b(13,"Cancel"),p(),c(14,"button",33),w("click",function(){v(e);let n=u();return F(n.closeCreateFolderDialog(!0))}),Pe(15,9),K(16,"sh-icon"),Te(),p()()()}if(o&2){let e,i=u();V("isOpen",i.createFolderDialogOpen),y("options",Oe(5,st)),g(8),ve(i.currentPath()),g(2),V("ngModel",i.createFolderPath),g(4),y("disabled",!((e=i.createFolderPath())!=null&&e.length))}}var Xe=(r=>(r[r.ExcludedByParent=-2]="ExcludedByParent",r[r.Excluded=-1]="Excluded",r[r.None=0]="None",r[r.Included=1]="Included",r[r.IncludedByParent=2]="IncludedByParent",r))(Xe||{}),M="/",ue=class o{#t=X($e);#n=X(Ve);#d=X(Ie);multiSelect=P(!1);disabled=P(!1);showFiles=P(!1);selectFiles=P(!1);accepts=P(null);startingPath=P(null);rootPaths=P([]);initialNodes=P([]);backupSettings=P(null);pathRefreshTrigger=P(!1);showHiddenNodes=P(!1);enableCreateFolder=P(!1);hideShortcuts=P(!1);includes=de();excludes=de();_showHiddenNodes=E(!1);createFolderDialogOpen=E(!1);createFolderPath=E(null);treeContainerRef=pe("treeContainer");formRef=pe("formRef");pathDiscoveryMethod=E("browse");isLoading=E(!1);currentPath=E("/");#o=E(null);treeSearchQuery=E("");treeNodes=E([]);isWindows=A(()=>this.#n.systemInfo()?.OSType==="Windows");pathDelimiter=A(()=>this.isWindows()?"\\":"/");filterGroups=this.#n.filterGroups();isByBackupSettings=A(()=>{let t=this.backupSettings();return!(t===void 0||t?.id===void 0||t?.time===void 0)});searchableTreeNodes=A(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});TreeEvalEnum=Xe;treeStructure=A(()=>{let t=this.showHiddenNodes(),e=this.currentPath().split("\0").filter(l=>l!==""&&l!==M),i=structuredClone(e);for(let l=0;l<i.length;l++){let f=i[l].slice(1);if(f.startsWith("{")&&f.endsWith("}")){let m=f.slice(1,-1),d=this.filterGroups?.FilterGroups[m];if(d&&d.length){let O=d.map(C=>`-${C}`);i.splice(l,1,...O)}}}let n=this.searchableTreeNodes(),r=this.rootPaths(),a=this.accepts(),_=this.pathDelimiter(),s=[];return r.length>0?s=r.map(l=>{let h=this.#s(i,l,"folder",null);return{id:l,resolvedpath:l,text:l,parentPath:"",children:[],evalState:h,isIndeterminate:!1,cls:this.#e(l,_)?"folder":"file"}}):s=[{id:M,resolvedpath:M,text:$localize`Computer`,parentPath:"",children:[],evalState:0,isIndeterminate:!1,cls:"folder"}],s.map(l=>{let h=new Map,f=l?.id;a&&(l.accepted=!0),h.set(l.id,l);let m=r.length>0?n.filter(d=>d.parentPath.startsWith(l.id)):n;for(let d of m){let C=(r.length>0?d.id.replace(f??"",""):d.id).split(_).filter(Boolean),T="",D=l;for(let L of C){if(T+=L+_,!h.has(T)){let ne=d.hidden===!0&&t?0:this.#s(i,d.id,d.cls,D),R={id:d.id,isIndeterminate:this.isIndeterminate(i,d.id),evalState:ne,parentPath:T,resolvedpath:d.cls=="folder"?this.#r(d.resolvedpath):T,hidden:d.hidden,text:d.text,cls:d.cls,children:[]};a&&(R.accepted=this.matchAccepts(a,R)),h.set(T,R),D.children.push(R)}D=h.get(T)}}return l}),s});#r(t){let e=this.pathDelimiter();return t?t.endsWith(e)||t===M?t:t+e:M}#s(t,e,i,n){if(n&&n.evalState===-1)return-2;let r=0,a=this.pathDelimiter(),_=t.filter(h=>!h.startsWith("-")&&!h.startsWith("+")),s=t.filter(h=>h.startsWith("-")||h.startsWith("+")),l=this.multiSelect();if(_.length===0)return r;for(let h=0;h<_.length;h++){let f=_[h];if(e===f){r=1;break}if(!l||!this.#e(f,a))continue;if(e?.startsWith(f)){r=1;break}}if(s.length===0)return r;for(let h=0;h<s.length;h++){let f=s[h],m=f.slice(1),d=f.startsWith("-")?-1:1;if(this.#e(m,a)){if(i!=="folder")continue;if(e===m){r=d;break}}if(m.startsWith("*")&&m.endsWith(`*${a}`)){if(i!=="folder")continue;let C=m.slice(1,-2);if(C==="")break;if(e?.includes(C+a)){r=d;break}}if(m.startsWith("[.*")&&m.endsWith(`[^\\${a}]*]`)){if(i!=="file")continue;let C=m.slice(3,-7);if(new RegExp(C).test(e)){r=d;break}}if(m.startsWith("[")&&m.endsWith("]")){let C=m.slice(1,-1),T=this.translateCSharpRegex(C);if(new RegExp(`${T}`).test(e)){r=d;break}}if(m.startsWith("*.")){if(i!=="file"||m.replace("*.","").length===0)continue;if(this.#l(e,m,!0)){r=d;break}}if(m==="")continue;if(m===e){r=d;break}if(this.#l(e,m,!0)){r=d;break}}return r}translateCSharpRegex(t){let e=t;e=e.replace(/^@/,"");let i=/\(\?<(?<name>\w+)>(?<pattern>[^)]+)\)/g;return e=e.replace(i,(n,r,a)=>`(${a})`),e=e.replace(/\\/g,"\\\\"),e}isIndeterminate(t,e){return t.filter(i=>!i.startsWith("-")&&this.#e(i,this.pathDelimiter())).some(i=>i.startsWith(e))}isCurrentPathFolder(){let t=this.currentPath();return t?t.endsWith(this.pathDelimiter())||t.startsWith("%")&&t.endsWith("%")&&!t.includes(this.pathDelimiter()):!1}#l(t,e,i=!1){let n=e.replace(/\*/g,".*").replace(/\?/g,".").replace(/\[!([^\]]+)\]/g,"[^$1]");return new RegExp(`${n}${i?"$":""}`).test(t)}showHiddenNodesEffect=B(()=>this._showHiddenNodes.set(this.showHiddenNodes()));pathDiscoveryMethodEffect=B(()=>{let t=this.pathDiscoveryMethod(),e=this.#o();t==="browse"&&e&&this.currentPath.set(e.value)});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id===M)return!0;let i=t.split(",");if(i.length===0)return!0;let n="."+e.id.slice(e.id.indexOf("."));return n?i.some(r=>n.endsWith(r)):!1}currentPathEffect=B(()=>{let t=this.#o();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")))});inputValueChangeAbortController=null;inputRefEffect=B(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#p(t),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,t.addEventListener("inputValueChanged",e=>{this.currentPath.set(e.detail.value)},{signal:this.inputValueChangeAbortController.signal}),this.#o.set(t),t.autocomplete="off")});ngOnInit(){let t=this.startingPath();if(t)this.currentPath.set(t),this.#g(t);else{let e=this.rootPaths(),i=this.initialNodes();e&&e.length>0?(i&&i.length>0&&this.treeNodes.set(i.map(n=>({id:n.id,leaf:n.leaf,cls:n.cls,text:n.text,iconCls:n.iconCls,fileSize:n.fileSize,resolvedpath:n.resolvedpath,parentPath:this.getParentPath(n.id??"")}))),this.#i(null,e[0])):this.#i(null,M)}}getParentPath(t){let e=this.pathDelimiter(),i=t.split(e);return i.length<=1?M:(i.pop(),i.length!==0&&i.pop(),i.join(e)+e)}toggleSelectedNode(t,e){if(e.id===M||(t.stopPropagation(),e.evalState===-2))return;if(this.selectFiles()&&e.cls==="folder"){this.toggleNode(e.id,e);return}if(this.accepts()&&!e.accepted)return;let n=this.currentPath().split("\0").filter(s=>s!==""&&s!==M),a=this.isChildOfSelected(e)?`-${e.id}`:e.id,_=this.#e(e.id,this.pathDelimiter());if(this.multiSelect())if(n.includes(e.id))this.currentPath.set(n.filter(s=>s!==e.id&&!(_&&s.startsWith(a))).join("\0"));else if(n.some(s=>s==a))this.currentPath.set(n.filter(s=>s!==a).join("\0"));else{let s=_?n.filter(l=>!l.startsWith(e.id)):n;this.currentPath.set([...s,a].join("\0"))}else n.includes(e.id)?this.currentPath.set(n.filter(s=>s!==e.id).join("\0")):this.currentPath.set(e.id)}isChildOfSelected(t){return this.currentPath().split("\0").filter(i=>i!==""&&i!==M&&this.#e(i,this.pathDelimiter())).some(i=>t.id?.startsWith(i)||`-${t.id}`.startsWith(i))}toggleNode(t,e=null){e?.cls==="folder"&&(e?.children.length?this.treeNodes.update(i=>i.filter(n=>!n.id?.startsWith(e.id)||n.id===e.id)):this.#i(e,t))}openCreateFolderDialog(){return this.createFolderPath.set(null),this.createFolderDialogOpen.set(!0),!1}closeCreateFolderDialog(t){if(t&&this.createFolderPath()?.length&&this.isCurrentPathFolder()){let e=this.createFolderPath()?.trim();if(e){let i=this.currentPath(),n=this.#r(e),r=i+n;this.#t.postApiV1RemoteoperationCreate({requestBody:{path:"file://"+r}}).subscribe({next:()=>{this.currentPath.set(r),this.#i(null,i),setTimeout(()=>{this.#a()},500),this.createFolderDialogOpen.set(!1)},error:a=>{let _=a?.message?.match(/user-information\s*:\s*(.*?)(?:\s*,|$)/i),s=_?_[1]:a?.message||$localize`An error occurred while trying to create the folder.`;this.#d.open(ze,{data:{title:$localize`Cannot create folder`,message:s,confirmText:$localize`OK`,cancelText:void 0}})}})}}else this.createFolderDialogOpen.set(!1);return!1}#a(){setTimeout(()=>{let e=this.treeContainerRef()?.nativeElement?.querySelector(".active");e&&e.scrollIntoView({behavior:"smooth",block:"center"})},100)}#p(t){return Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(e){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,e),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}})),e}}),t}#u(t){return this.#t.postApiV1Filesystem({showHidden:!0,requestBody:{path:t},onlyFolders:!this.showFiles()})}#h(t){let e=this.backupSettings();if(this.#n.hasV2ListOperations())return this.#t.postApiV2BackupListFolder({requestBody:{BackupId:e.id,Time:e.time,Paths:t?[t]:null,PageSize:0,Page:0}}).pipe(j(i=>i.Data??[]));{let i={id:e.id+"",prefixOnly:!1,folderContents:!0,time:e.time,filter:t?"@"+t:void 0};return this.#t.getApiV1BackupByIdFiles(i).pipe(j(n=>n.Files??[]))}}#c(t){return this.isByBackupSettings()?this.#h(t):this.#u(t)}#g(t){let e=this.pathDelimiter(),i=t.split("\0").filter(s=>s.startsWith("-")).map(s=>s.slice(1,-1)),n=t.split("\0").filter(s=>!s.startsWith("-")).filter(Boolean),r=n.map(s=>{let l=s.split(e);return l.at(-1)!==""&&l.pop(),l}),a=[M];r.forEach(s=>{s.forEach((l,h)=>{let f=s.slice(0,h+1).join(e);f!==""&&(a.includes(f)||a.push(f))})}),this.isLoading.set(!0);let _=a.map(s=>this.#c(s).pipe(j(l=>({status:"success",value:l,url:s})),_e(l=>he({status:"error",value:l,url:s}))));ge(_).pipe(se(()=>this.isLoading.set(!1))).subscribe({next:s=>{let l=s.filter(f=>f.status==="success"),h=s.filter(f=>f.status==="error");this.treeNodes.update(f=>{let m=l.flatMap(O=>O.value.map(C=>{let T=C.id,D=C.id.startsWith("%")&&C.id.endsWith("%")?C.resolvedpath+e:C.id,L=T&&T.split(e).filter(Boolean).slice(0,-1).join(e),ne=T&&T.split(e).filter(Boolean).join(e),R=e+ne,Ke=n.findIndex(k=>this.multiSelect()?R.startsWith(k):R===k)>-1,Qe=n.findIndex(k=>k===T)>-1,Ue=i.findIndex(k=>k===R)>-1;return re(oe({},C),{cls:this.#e(D,e)||D==M?"folder":"file",parentPath:L.startsWith("%")?L:e+L,isSelected:Ke&&!Ue||Qe})})),d=[...new Map([...f,...m].map(O=>[O.id,O])).values()];return this.#a(),this.hideShortcuts()?d.filter(O=>!O.id.startsWith("%")):d})}})}#e(t,e){return t.startsWith("%")&&t.endsWith("%")||t.endsWith(e)}#i(t=null,e=M){let i=this.pathDelimiter();this.isLoading.set(!0),this.#c(e).pipe(se(()=>this.isLoading.set(!1))).subscribe({next:n=>{let r=this.isByBackupSettings()?n.map(a=>({text:a.Path.split(i).filter(_=>_!=="").pop(),id:a.Path,cls:this.#e(a.Path,i)?"folder":"file",leaf:t!==null,resolvedpath:a.Path,hidden:!1})):n;this.treeNodes.update(a=>{let _=r.map(l=>{let h=this.#e(l.id,i)?"folder":"file";return re(oe({},l),{cls:h,parentPath:e})}),s=[...new Map([...a,..._].map(l=>[l.id,l])).values()];return this.hideShortcuts()?s.filter(l=>!l.id.startsWith("%")):s})}})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=q({type:o,selectors:[["app-file-tree"]],viewQuery:function(e,i){e&1&&(ae(i.treeContainerRef,et,5),ae(i.formRef,tt,5)),e&2&&Me(2)},hostVars:2,hostBindings:function(e,i){e&2&&x("disabled",i.disabled())},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPaths:[1,"rootPaths"],initialNodes:[1,"initialNodes"],backupSettings:[1,"backupSettings"],pathRefreshTrigger:[1,"pathRefreshTrigger"],showHiddenNodes:[1,"showHiddenNodes"],enableCreateFolder:[1,"enableCreateFolder"],hideShortcuts:[1,"hideShortcuts"]},outputs:{includes:"includes",excludes:"excludes"},ngContentSelectors:nt,decls:18,vars:17,consts:()=>{let t;t=$localize` Browse path `;let e;e=$localize` Manually type path `;let i;i=$localize` Show hidden ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let n;n=$localize` Create folder `;let r;r=$localize`Enter new folder path`;let a;return a=$localize` Create folder ${"\uFFFD#16\uFFFD"}:START_TAG_SH_ICON:folder-plus${"\uFFFD/#16\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],t,e,i,n,r,a,[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"footer"],[1,"primary","raised","browse-files-toggle",3,"active"],["shButton","","type","button",1,"small","create-folder",3,"disabled"],[1,"form-field"],[3,"isOpen","options"],["type","button",3,"click"],["action","",3,"click"],[1,"icon"],[1,"primary"],[1,"text",3,"click"],[1,"small"],[1,"primary","raised","browse-files-toggle",3,"click"],["shButton","","type","button",1,"small","create-folder",3,"click","disabled"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","button",3,"click"],["shButton","",1,"raised","primary",3,"click","disabled"]]},template:function(e,i){if(e&1&&(Q(it),S(0,at,5,4,"sh-button-group"),c(1,"div",10),I(2,0,["ngProjectAs","label",5,["label"]]),c(3,"div",11,0),S(5,ct,1,0,"sh-progress-bar",12),G(6,Mt,3,2,"ng-template",null,1,xe)(8,vt,1,0,"ng-container",13),p(),c(9,"div",14),S(10,Ft,2,3,"sh-toggle",15),S(11,St,2,1,"button",16),p()(),c(12,"div",17,2)(14,"sh-form-field"),I(15,1,["ngProjectAs","label",5,["label"]]),I(16,2,["ngProjectAs","input",5,["input"]]),p()(),S(17,Nt,17,6,"sh-dialog",18)),e&2){let n=ce(7);N(i.multiSelect()?-1:0),g(),x("hidden",i.pathDiscoveryMethod()!=="browse"),g(2),x("visualize-accepted",i.accepts()),g(2),N(i.isLoading()?5:-1),g(3),y("ngTemplateOutlet",n)("ngTemplateOutletContext",J(15,je,J(13,ot,i.treeStructure()))),g(2),N(!i.accepts()&&!i.isByBackupSettings()?10:-1),g(),N(i.enableCreateFolder()?11:-1),g(),x("hidden",i.pathDiscoveryMethod()!=="path"),g(5),N(i.createFolderDialogOpen()?17:-1)}},dependencies:[Ae,We,De,Y,Be,Le,Re,we,ie,Z,ee,te],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.fill[_nghost-%COMP%]{height:auto;overflow:hidden;flex:1 0}.fill[_nghost-%COMP%] .section[_ngcontent-%COMP%]{height:auto;overflow:hidden;flex:1 0;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:"label toggle" "tree tree"}.fill[_nghost-%COMP%] .browse-files[_ngcontent-%COMP%]{resize:none;height:initial;grid-area:tree}.fill[_nghost-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.fill[_nghost-%COMP%] sh-toggle[_ngcontent-%COMP%]{grid-area:toggle;flex-direction:row-reverse}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.form-field.hidden[_ngcontent-%COMP%]{display:none}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;border:1px solid var(--base-4);border-radius:var(--shape-3);overflow:auto;resize:vertical;background:var(--base-1);position:relative}.browse-files[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]:not(.accepted){opacity:.5}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action].accepted[_ngcontent-%COMP%]{opacity:1}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-3);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:0;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:transparent;--list-active-bg: var(--primary-2)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].indeterminate[_ngcontent-%COMP%]{border-color:var(--primary-4)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%]{gap:.25rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:has(sh-icon:nth-child(2)){width:3rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:1.5rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:3rem;gap:.25rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon.file[_ngcontent-%COMP%]{width:3rem;padding:0 .25rem}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-9)}.hidden[_ngcontent-%COMP%]{display:none}.footer[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}'],changeDetection:0})};var Ot=[[["label"]],[["","prefix",""]],[["","suffix",""]]],yt=["label","[prefix]","[suffix]"];function xt(o,t){if(o&1&&b(0),o&2){let e=t.$implicit,i=u();Se("",e.label,"",i.hasPerSecond()?"/s":"")}}var wt=["throttle-upload","throttle-download"],Dt=[{value:"KB",label:"KB"},{value:"MB",label:"MB"},{value:"GB",label:"GB"},{value:"TB",label:"TB"},{value:"PB",label:"PB"}],Rt=o=>{if(!o||typeof o!="string"||o.length===0)return{size:0,unit:"MB"};let t=o.match(/^(\d+)(bytes|kb|mb|gb|tb|pb|b)$/i);return t&&(t[2].toUpperCase()==="B"||t[2].toUpperCase()==="BYTES")?{size:1,unit:"KB"}:{size:t?parseInt(t[1],10):0,unit:t?t[2].toUpperCase():"MB"}},qe=class o{customId=P();inputType=P();timespan=E(0);unit=E("MB");sizeOptions=E(Dt);readonly=E(!1);hasPerSecond=A(()=>{let t=this.inputType();return t&&wt.includes(t)});onChange=()=>{};onTouched=()=>{};onChangeEffect=B(()=>{this.onChange(this.getValue())});writeValue(t){if(t){let e=Rt(t);e?queueMicrotask(()=>{this.timespan.set(e.size),this.unit.set(e.unit)}):(this.timespan.set(0),this.unit.set("MB"))}else this.timespan.set(0),this.unit.set("MB")}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.readonly.set(t)}getValue(){return`${this.timespan()}${this.unit()}`}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=q({type:o,selectors:[["app-size"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[Ne([{provide:He,useExisting:o,multi:!0}])],ngContentSelectors:yt,decls:9,vars:10,consts:[[1,"label"],["type","number",3,"ngModelChange","id","ngModel","disabled"],["value","value","label","label",3,"options","readonly","isClearable"],["type","text",3,"ngModelChange","ngModel"]],template:function(e,i){e&1&&(Q(Ot),c(0,"div",0),I(1,0,["ngProjectAs","label",5,["label"]]),p(),c(2,"sh-form-field")(3,"input",1),H("ngModelChange",function(r){return z(i.timespan,r)||(i.timespan=r),r}),p(),I(4,1),I(5,2),p(),c(6,"sh-select",2)(7,"input",3),H("ngModelChange",function(r){return z(i.unit,r)||(i.unit=r),r}),p(),G(8,xt,1,2,"ng-template"),p()),e&2&&(g(2),me("readonly",i.readonly()||void 0),g(),y("id",i.customId()),V("ngModel",i.timespan),y("disabled",i.readonly()),g(3),U("--miw",0),y("options",i.sizeOptions())("readonly",i.readonly())("isClearable",!1),g(),V("ngModel",i.unit))},dependencies:[ke,Y,ie,Z,Ge,ee,te],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] sh-select[_ngcontent-%COMP%]{grid-area:unit}'],changeDetection:0})};export{ue as a,Rt as b,qe as c};
|
package/chunk-GFMGDQOH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as z}from"./chunk-GEI2CH2J.js";import{a as x,c as B,d as w,e as U,f as k}from"./chunk-LVP2TPMO.js";import"./chunk-43JMN2ZY.js";import{a as X,f as H,o as V}from"./chunk-H7K35UUX.js";import"./chunk-NOPMCS2Z.js";import"./chunk-RUXCS4ZK.js";import"./chunk-FPPZ4BUR.js";import{Ab as i,Bb as t,Cb as _,Gb as f,Hb as P,Jb as R,Qb as l,Ra as O,Rb as s,Sb as b,Tb as v,Ub as y,Wb as u,Yb as c,_ as T,bb as D,ea as a,fa as S,oa as $,ub as N,vb as G,zb as M}from"./chunk-HNWRQABR.js";import"./chunk-EUDKD2JW.js";function W(g,F){if(g&1){let n=R();i(0,"sh-menu",15)(1,"button",16),b(2,2),t(),f(3,17),i(4,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Disabled"))}),l(5,3),_(6,"sh-icon"),s(),t(),i(7,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Verbose"))}),l(8,4),_(9,"sh-icon"),s(),t(),i(10,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("ExplicitOnly"))}),l(11,5),_(12,"sh-icon"),s(),t(),i(13,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Profiling"))}),l(14,6),_(15,"sh-icon"),s(),t(),i(16,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Retry"))}),l(17,7),_(18,"sh-icon"),s(),t(),i(19,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Information"))}),l(20,8),_(21,"sh-icon"),s(),t(),i(22,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("DryRun"))}),l(23,9),_(24,"sh-icon"),s(),t(),i(25,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Warning"))}),l(26,10),_(27,"sh-icon"),s(),t(),i(28,"button",18),u("click",function(){a(n);let e=c();return S(e.updateLogLevel("Error"))}),l(29,11),_(30,"sh-icon"),s(),t(),P(),t()}if(g&2){let n=c();M("openIndicator",!0),O(2),v(n.logLevelByLabel()),y(2)}}var C=class g{#n=T(w);#e=T(z);logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;currentUrl=$(this.#n.url);constructor(){this.#n.events.subscribe(F=>{F instanceof x&&this.currentUrl.set(F.urlAfterRedirects)})}updateLogLevel(F){this.#e.isPolling.set(!0),this.#e.updateLogLevel(F)}static \u0275fac=function(n){return new(n||g)};static \u0275cmp=D({type:g,selectors:[["app-logs"]],decls:10,vars:1,consts:()=>{let F;F=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:archive${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON: Stored `;let n;n=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:play${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: Live `;let o;o=$localize`Log level: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SH_ICON:bell-simple-slash${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SH_ICON: Disabled `;let L;L=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:megaphone-simple${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON: Verbose `;let d;d=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:flow-arrow${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON: Explicit only `;let h;h=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:speedometer${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON: Profiling `;let I;I=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:arrow-arc-left${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON: Retry `;let E;E=$localize`${"\uFFFD#21\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#21\uFFFD"}:CLOSE_TAG_SH_ICON: Information `;let A;A=$localize`${"\uFFFD#24\uFFFD"}:START_TAG_SH_ICON:person-simple-run${"\uFFFD/#24\uFFFD"}:CLOSE_TAG_SH_ICON: Dry run `;let m;m=$localize`${"\uFFFD#27\uFFFD"}:START_TAG_SH_ICON:warning${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_SH_ICON: Warning `;let p;return p=$localize`${"\uFFFD#30\uFFFD"}:START_TAG_SH_ICON:warning-octagon${"\uFFFD/#30\uFFFD"}:CLOSE_TAG_SH_ICON: Error `,[F,n,o,e,L,d,h,I,E,A,m,p,[1,"filters"],["type","button","routerLink","/about/logs/stored","routerLinkActive","active"],["type","button","routerLink","/about/logs/live","routerLinkActive","active"],[3,"openIndicator"],["shButton","","type","button"],["menu",""],["shButton","","type","button",1,"small",3,"click"]]},template:function(n,o){n&1&&(i(0,"div",12)(1,"sh-button-group")(2,"button",13),l(3,0),_(4,"sh-icon"),s(),t(),i(5,"button",14),l(6,1),_(7,"sh-icon"),s(),t()(),N(8,W,31,2,"sh-menu",15),t(),_(9,"router-outlet")),n&2&&(O(8),G(o.currentUrl().startsWith("/about/logs/live")?8:-1))},dependencies:[H,X,V,B,k,U],styles:["[_nghost-%COMP%]{display:block}.filters[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;padding:0 2rem;margin-bottom:1.25rem}"],changeDetection:0})};export{C as default};
|
package/chunk-GWQAMFY2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as G}from"./chunk-NJEX2N4Q.js";import{h as T}from"./chunk-VGUK4FJP.js";import"./chunk-FZTPUMUC.js";import"./chunk-DDWLL7XA.js";import"./chunk-2QJC4PGQ.js";import{b as m}from"./chunk-O64ZZGQZ.js";import"./chunk-6LTGTS6B.js";import{a as L}from"./chunk-DVDTYV66.js";import"./chunk-UIJYCGKA.js";import"./chunk-DELLEGXW.js";import"./chunk-RHW5QVAY.js";import"./chunk-VTSUHAP5.js";import"./chunk-UP5EOICU.js";import"./chunk-N5SC4SKW.js";import"./chunk-Z3EPZZGY.js";import"./chunk-UKQFDBNO.js";import{b as E,c as B,e as b,f as M}from"./chunk-LVP2TPMO.js";import"./chunk-43JMN2ZY.js";import{p as $,q as N,v as I}from"./chunk-H7K35UUX.js";import{h as v}from"./chunk-NOPMCS2Z.js";import"./chunk-TDKBGGNK.js";import"./chunk-RUXCS4ZK.js";import"./chunk-FPPZ4BUR.js";import"./chunk-6OPAGPKF.js";import{Ab as s,Bb as u,Bc as _,Cb as r,F as f,Pc as O,Qb as c,Ra as n,Rb as p,Yb as R,_ as l,bb as D,lc as A,nc as k,ub as h,vb as g,yc as P,zb as d}from"./chunk-HNWRQABR.js";import"./chunk-EUDKD2JW.js";var y=(a,e)=>[a,e,"general"],U=(a,e)=>[a,e,"destination"],K=(a,e)=>[a,e,"source-data"],w=(a,e)=>[a,e,"schedule"],H=(a,e)=>[a,e,"options"];function X(a,e){if(a&1&&(s(0,"p"),A(1),u()),a&2){let t=R();n(),k("Editing: ",t.backupName())}}function x(a,e){a&1&&r(0,"sh-progress-bar",7)}function z(a,e){a&1&&(s(0,"section"),r(1,"router-outlet"),u())}var C=class a{#t=l(E);#e=l(T);#a=l(L);#i=l(v);isDraft=this.#e.isDraft;isNew=this.#e.isNew;backupId=this.#e.backupId;backupName=this.#e.backupName;finishedLoading=this.#e.finishedLoading;#o=m(this.#t.params);#n=m(this.#t.url);paramsChanged=O(()=>{let e=this.#o()?.id,t=!!this.#n()?.find(i=>i.path==="backup-draft");this.#e.backupId.set(e),e!=="new"?this.getBackup(e,t):this.getDefaults()});getDefaults(){this.#i.getApiV1Backupdefaults().pipe(f(1)).subscribe({next:e=>{let t=e.Backup;t.Settings=[...t.Settings],this.#e.mapGeneralToForm(t),this.#e.mapDestinationToForm(t),this.#e.mapSourceDataToForm(t),this.#e.mapScheduleToForm(e.Schedule),this.#e.mapOptionsToForms(t),this.#e.applicationOptions.set(e.ApplicationOptions),this.#e.backupDefaults.set(e),this.#e.finishedLoading.set(!0)}})}getBackup(e,t=!1){let i=o=>{this.#e.mapScheduleToForm(o.Schedule??null),o.Backup&&(this.#e.mapGeneralToForm(o.Backup),this.#e.mapDestinationToForm(o.Backup),this.#e.mapSourceDataToForm(o.Backup),this.#e.mapOptionsToForms(o.Backup),this.#e.storeMetadata(o.Backup,t)),this.#e.finishedLoading.set(!0)};if(t){this.isDraft.set(t);let o=this.#a.draftBackups().find(F=>F.id===e);if(!o){alert("Backup not found");return}i(o.data)}else this.#i.getApiV1BackupById({id:e}).subscribe({next:i})}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=D({type:a,selectors:[["app-backup"]],features:[P([T])],decls:21,vars:22,consts:()=>{let e;e=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SH_RADIO:${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SH_RADIO: General `;let t;t=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SH_RADIO:${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_RADIO: Destination `;let i;i=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_RADIO:${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_RADIO: Source Data `;let o;o=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SH_RADIO:${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_RADIO: Schedule `;let F;return F=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SH_RADIO:${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_RADIO: Options `,[e,t,i,o,F,[1,"primary"],["step","","routerLinkActive","active",3,"routerLink"],[1,"indeterminate","primary"]]},template:function(t,i){t&1&&(r(0,"app-status-bar"),s(1,"header"),h(2,X,2,1,"p"),s(3,"sh-stepper",5)(4,"div",6),c(5,0),r(6,"sh-radio"),p(),u(),s(7,"div",6),c(8,1),r(9,"sh-radio"),p(),u(),s(10,"div",6),c(11,2),r(12,"sh-radio"),p(),u(),s(13,"div",6),c(14,3),r(15,"sh-radio"),p(),u(),s(16,"div",6),c(17,4),r(18,"sh-radio"),p(),u()()(),h(19,x,1,0,"sh-progress-bar",7)(20,z,2,0,"section")),t&2&&(n(2),g(i.isNew()?-1:2),n(2),d("routerLink",_(7,y,i.isDraft()?"/backup-draft":"/backup",i.backupId())),n(3),d("routerLink",_(10,U,i.isDraft()?"/backup-draft":"/backup",i.backupId())),n(3),d("routerLink",_(13,K,i.isDraft()?"/backup-draft":"/backup",i.backupId())),n(3),d("routerLink",_(16,w,i.isDraft()?"/backup-draft":"/backup",i.backupId())),n(3),d("routerLink",_(19,H,i.isDraft()?"/backup-draft":"/backup",i.backupId())),n(3),g(i.finishedLoading()?20:19))},dependencies:[B,b,M,G,N,I,$],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}header[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid var(--base-4)}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:.5rem}header[_ngcontent-%COMP%] sh-stepper[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;flex:1 0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto}"],changeDetection:0})};export{C as default};
|
package/chunk-H7K35UUX.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ea as Ct}from"./chunk-RUXCS4ZK.js";import{Ab as x,Ac as Re,Bb as I,Bc as Xe,Cb as fe,Db as B,Eb as q,Fb as _e,Ib as ge,Jb as ie,Mc as Ge,Oc as F,Pc as Y,Qa as pt,Ra as b,Ta as Ie,Tc as ue,Uc as w,V as Le,Va as be,Vc as ae,Wb as X,Wc as vt,Xa as ut,Xb as me,Xc as Z,Y as at,Yb as D,Zb as W,_ as V,_b as y,a as rt,ba as lt,bb as L,ca as ct,da as dt,db as ke,dc as ft,dd as Ke,ea as H,ec as se,fa as j,fc as ce,gb as he,gc as gt,hc as ne,ia as Fe,ic as z,jc as mt,ka as Te,kc as ve,lb as je,lc as k,mc as xe,na as He,nc as pe,oa as N,oc as Ne,qb as ht,qc as ze,rc as $e,sc as Ue,tb as ye,tc as Qe,ua as K,ub as P,uc as re,vb as A,vc as U,wb as Be,xb as We,yb as qe,zb as oe,zc as Ye}from"./chunk-HNWRQABR.js";import{a as le,b as Ce,c as st,d as f,e as O,f as M,g as E}from"./chunk-EUDKD2JW.js";var ee=["*"],Vt=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],Pt=["[icon]","[title]","*","[content]"];function At(t,e){t&1&&(x(0,"sh-icon",3),k(1,"info"),I())}function Lt(t,e){t&1&&(x(0,"sh-icon",3),k(1,"info"),I())}function Ft(t,e){t&1&&(x(0,"sh-icon",3),k(1,"warning"),I())}function Ht(t,e){t&1&&(x(0,"sh-icon",3),k(1,"warning-octagon"),I())}function jt(t,e){t&1&&(x(0,"sh-icon",3),k(1,"check-circle"),I())}function Bt(t,e){t&1&&(x(0,"sh-icon",3),k(1,"question"),I())}function Wt(t,e){if(t&1){let o=ie();x(0,"sh-icon",7),X("click",function(){H(o);let i=D();return j(i.removeAlert())}),k(1,"plus"),I()}}var qt=["dialogRef"];function zt(t,e){if(t&1){let o=ie();B(0,"div",4),me("click",function(){H(o);let i=D();return j(i.isOpen.set(!1))}),q()}}var $t=["shButton",""];var Ut=["triggerRef"],Qt=["popoverRef"],Yt=[[["","trigger",""]],[["button"]],[["","shButton",""]],"*"],Xt=["[trigger]","button","[shButton]","*"];var Gt=()=>({closeOnButton:!1,closeOnEsc:!0});var Kt=[[["label"]],[["","boxPrefix",""]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","boxSuffix",""]],[["","error",""]],[["","hint",""]]],Zt=["label","[boxPrefix]","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[boxSuffix]","[error]","[hint]"],_t=["input"],Jt=[[["label"]]],ei=["label"];function ti(t,e){if(t&1&&(x(0,"div",3),k(1),I()),t&2){let o=D();b(),xe(o.files()[0].name)}}function ii(t,e){if(t&1&&(x(0,"div",3),k(1),I()),t&2){let o=D();b(),pe("",o.files().length," files selected")}}function ni(t,e){if(t&1&&(x(0,"div",4),k(1),I()),t&2){let o=D();b(),xe(o.filesOver()?o.overlayText():o.placeholder())}}var oi=["optionsRef"],si=["*",[["","menu",""]]],ri=["*","[menu]"];function ai(t,e){t&1&&(x(0,"sh-icon",5),k(1,"caret-down"),I())}var li=[[["label"]],[["input","type","range"]]],ci=["label","input[type=range]"],di=["optionsWrap"],pi=[[["label"]],[["","prefix",""]],[["","boxPrefix",""]],[["input"]],[["textarea"]]],ui=["label","[prefix]","[boxPrefix]","input","textarea"],hi=()=>({closeOnButton:!1,closeOnEsc:!1}),St=(t,e)=>({$implicit:t,last:e}),it=t=>({$implicit:t});function fi(t,e){if(t&1&&k(0),t&2){let o=D();pe(" ",o.inputValue()," ")}}function gi(t,e){t&1&&ge(0)}function mi(t,e){if(t&1&&he(0,gi,1,0,"ng-container",13),t&2){let o=D(3),n=o.$implicit,i=o.$index,s=o.$count;D(2);let h=U(3);oe("ngTemplateOutlet",h)("ngTemplateOutletContext",Xe(2,St,n,i===s-1))}}function vi(t,e){if(t&1&&k(0),t&2){let o=D(3).$implicit,n=D(2);pe(" ",n.getLabel(o)," ")}}function Ci(t,e){if(t&1){let o=ie();x(0,"sh-chip",12),X("click",function(i){H(o);let s=D(2).$index,h=D(2);return j(h.removeSelectedOptionByIndex(i,s))}),P(1,mi,1,5,"ng-container")(2,vi,1,1),x(3,"sh-icon"),k(4,"x-bold"),I()()}if(t&2){let o=D(4),n=U(3);ve(o.selectClasses()),b(),A(n?1:2)}}function _i(t,e){t&1&&ge(0)}function Si(t,e){if(t&1&&he(0,_i,1,0,"ng-container",13),t&2){let o=D(4),n=o.$implicit,i=o.$index,s=o.$count;D(2);let h=U(3);oe("ngTemplateOutlet",h)("ngTemplateOutletContext",Xe(2,St,n,i===s-1))}}function Di(t,e){if(t&1&&k(0),t&2){let o=D(4),n=o.$implicit,i=o.$index,s=o.$count,h=D(2);pe(" ",i===s-1?h.getLabel(n):h.getLabel(n)+","," ")}}function bi(t,e){if(t&1&&P(0,Si,1,5,"ng-container")(1,Di,1,1),t&2){D(5);let o=U(3);A(o?0:1)}}function yi(t,e){if(t&1&&P(0,bi,2,1),t&2){D(4);let o=U(6);A(o?-1:0)}}function xi(t,e){if(t&1&&P(0,Ci,5,3,"sh-chip",11)(1,yi,1,1),t&2){D(3);let o=U(5);A(o?0:1)}}function Oi(t,e){if(t&1&&P(0,xi,2,1),t&2){let o=e.$implicit;A(o?0:-1)}}function Ei(t,e){if(t&1&&We(0,Oi,1,1,null,null,Be),t&2){D();let o=U(2);qe(o)}}function wi(t,e){t&1&&ge(0)}function Mi(t,e){if(t&1&&he(0,wi,1,0,"ng-container",14),t&2){D(2);let o=U(0);oe("ngTemplateOutlet",o)}}function Ti(t,e){if(t&1&&k(0),t&2){let o=D(2);pe(" ",o.placeholderText()??""," ")}}function Ii(t,e){if(t&1&&P(0,Mi,1,1,"ng-container")(1,Ti,1,1),t&2){D();let o=U(0);A(o?0:1)}}function ki(t,e){t&1&&(x(0,"sh-icon",6),k(1,"caret-down"),I())}function Ni(t,e){t&1&&fe(0,"sh-spinner",7)}function Ri(t,e){t&1&&(x(0,"sh-icon",6),k(1,"list-magnifying-glass"),I())}function Vi(t,e){t&1&&(x(0,"sh-icon",6),k(1,"magnifying-glass"),I())}function Pi(t,e){if(t&1){let o=ie();x(0,"sh-icon",15),X("click",function(i){H(o);let s=D();return j(s.clear(i))}),k(1,"x-bold"),I()}}function Ai(t,e){t&1&&(x(0,"sh-icon",6),k(1,"caret-down"),I())}function Li(t,e){t&1&&(x(0,"sh-icon",6),k(1,"caret-up"),I())}function Fi(t,e){if(t&1&&(x(0,"p",9),k(1),I()),t&2){let o=D(3);b(),xe(o.freeTextTitle())}}function Hi(t,e){t&1&&ge(0)}function ji(t,e){if(t&1&&he(0,Hi,1,0,"ng-container",13),t&2){D(2);let o=U(0);D();let n=U(1);oe("ngTemplateOutlet",n)("ngTemplateOutletContext",Re(2,it,o))}}function Bi(t,e){t&1&&ge(0)}function Wi(t,e){if(t&1&&he(0,Bi,1,0,"ng-container",13),t&2){D(2);let o=U(0);D();let n=U(4);oe("ngTemplateOutlet",n)("ngTemplateOutletContext",Re(2,it,o))}}function qi(t,e){if(t&1&&k(0),t&2){D(2);let o=U(1);pe(" ",o," ")}}function zi(t,e){t&1&&fe(0,"sh-divider")}function $i(t,e){if(t&1){let o=ie();P(0,Fi,2,1,"p",9),x(1,"li",16),X("click",function(){H(o);let i=D(2);return j(i.toggleOptionByIndex(-1))}),P(2,ji,1,4,"ng-container")(3,Wi,1,4,"ng-container")(4,qi,1,1),I(),P(5,zi,1,0,"sh-divider")}if(t&2){D();let o=U(0),n=D(),i=U(1),s=U(4);A(n.freeTextTitle()?0:-1),b(),z("selected",n.isSelected(-1))("focused",n.focusedOptionIndex()===-1),oe("id",n.getLabelAsSlug(o)),ye("aria-selected",n.isSelected(-1)),b(),A(i?2:s?3:4),b(3),A(n.freeTextTitle()&&n.filteredOptions().length>0?5:-1)}}function Ui(t,e){if(t&1&&(Qe(0)(1),P(2,$i,6,9)),t&2){let o=D(),n=re(o.computedFreeTextOption());b();let i=re(o.getValue(n));b(),A(i.length>0?2:-1)}}function Qi(t,e){if(t&1&&(x(0,"p",9),k(1),I()),t&2){let o=D();b(),xe(o.optionTitle())}}function Yi(t,e){if(t&1&&fe(0,"sh-checkbox"),t&2){let o=D().$index,n=D();ve(n.selectClasses()),z("active",n.isSelected(o))}}function Xi(t,e){t&1&&ge(0)}function Gi(t,e){if(t&1&&he(0,Xi,1,0,"ng-container",13),t&2){let o=D().$implicit;D();let n=U(4);oe("ngTemplateOutlet",n)("ngTemplateOutletContext",Re(2,it,o))}}function Ki(t,e){if(t&1&&k(0),t&2){let o=D().$implicit,n=D();pe(" ",n.getLabel(o)," ")}}function Zi(t,e){if(t&1){let o=ie();x(0,"li",16),X("click",function(){let i=H(o).$index,s=D();return j(s.toggleOptionByIndex(i))}),P(1,Yi,1,4,"sh-checkbox",17),P(2,Gi,1,4,"ng-container")(3,Ki,1,1),I()}if(t&2){let o=e.$implicit,n=e.$index,i=D(),s=U(4);z("selected",i.isSelected(n))("focused",n===i.focusedOptionIndex()),oe("id",i.getLabelAsSlug(o)),ye("aria-selected",i.isSelected(n)),b(),A(i.selectMultiple()?1:-1),b(),A(s?2:3)}}var Ji=["dragImageElement"],en=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],tn=["[sidenav]","[sidenav-closed-topbar]","*"];function nn(t,e){t&1&&_e(0,"div",1,0)}function on(t,e){if(t&1){let o=ie();B(0,"div",7),me("drop",function(i){H(o);let s=D();return j(s.drop(i))})("dragenter",function(){H(o);let i=D();return j(i.dragEnter())})("dragleave",function(){H(o);let i=D();return j(i.dragLeave())}),q()}}function sn(t,e){if(t&1){let o=ie();B(0,"div",8),me("dragstart",function(i){H(o);let s=D();return j(s.dragStart(i))})("dragend",function(i){H(o);let s=D();return j(s.dragEnd(i))})("drag",function(i){H(o);let s=D();return j(s.drag(i))})("touchstart",function(i){H(o);let s=D();return j(s.touchStart(i))})("touchmove",function(i){H(o);let s=D();return j(s.touchMove(i))})("touchend",function(i){H(o);let s=D();return j(s.touchEnd(i))})("touchcancel",function(i){H(o);let s=D();return j(s.touchCancel(i))}),q()}}var rn=["tbody"],an=["*",[["","table-no-rows",""]]],ln=["*","[table-no-rows]"];function cn(t,e){t&1&&fe(0,"sh-progress-bar",1)}function dn(t,e){t&1&&(x(0,"div",2),y(1,1),I())}var pn=[[["","title",""]],"*"],un=["[title]","*"];function hn(t,e){t&1&&k(0,"Title")}function fn(t,e){t&1&&(x(0,"sh-icon",1),k(1,"caret-down"),I())}var gn=["bold","thin","light","fill"],De=(()=>{var e,o;let n=class n{constructor(){O(this,e,V(K));O(this,o,V(be))}ngAfterContentInit(){let s=f(this,e).nativeElement.textContent?.trim();if(!s)return;let h=s.split("-").at(-1);h&&gn.includes(h)&&f(this,o).addClass(f(this,e).nativeElement,h)}};e=new WeakMap,o=new WeakMap,n.\u0275fac=function(h){return new(h||n)},n.\u0275cmp=L({type:n,selectors:[["sh-icon"]],ngContentSelectors:ee,decls:1,vars:0,template:function(h,p){h&1&&(W(),y(0))},encapsulation:2,changeDetection:0});let t=n;return t})(),Gn=(()=>{let e=class e{constructor(){this._el=V(K),this.alertService=w(null),this.id=w(null),this.alertClasses=F(()=>this._el.nativeElement.classList.toString())}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=L({type:e,selectors:[["sh-alert"]],inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:Pt,decls:17,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(i,s){if(i&1&&(W(Vt),x(0,"div",1)(1,"div",2,0),y(3),I(),x(4,"div",2),P(5,At,2,0,"sh-icon",3)(6,Lt,2,0,"sh-icon",3)(7,Ft,2,0,"sh-icon",3)(8,Ht,2,0,"sh-icon",3)(9,jt,2,0,"sh-icon",3)(10,Bt,2,0,"sh-icon",3),I(),x(11,"div",4),y(12,1),y(13,2),I(),P(14,Wt,2,0,"sh-icon",5),x(15,"div",6),y(16,3),I()()),i&2){let h=gt(2);b(),ne("display",h.children.length?"block":"none");let p=s.alertClasses();b(4),A(p.includes("primary")?5:p.includes("accent")?6:p.includes("warn")?7:p.includes("error")?8:p.includes("success")?9:10),b(9),A(s.id()?14:-1)}},dependencies:[De],encapsulation:2,changeDetection:0});let t=e;return t})();function Ae(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var Kn=(()=>{let e=class e{constructor(){this.alertHistory=N([]),this.alertHistoryIsOpen=N(!1),this.alertHistoryIsHidden=N(!0)}error(n){this.addAlert({type:"error",title:n??"An error occured"})}success(n){this.addAlert({type:"success",title:n})}question(n){this.addAlert({type:"question",title:n})}warning(n){this.addAlert({type:"warn",title:n})}info(n){this.addAlert({type:"primary",title:n})}addAlert(n){let i=Ae();this.alertHistory.update(s=>[Ce(le({},n),{isOpen:!0,animateIn:!0,animateOut:!1,id:i}),...s]),setTimeout(()=>{this.alertHistory.update(s=>s.map(h=>Ce(le({},h),{animateIn:h.id===i?!1:h.animateIn})))},40),setTimeout(()=>{this.hideAlert(i)},2500)}removeAlert(n){this.alertHistory.update(i=>i.map(s=>Ce(le({},s),{animateOut:s.id===n?!1:s.animateOut}))),setTimeout(()=>{this.alertHistory.update(i=>i.filter(s=>s.id!==n))},300)}hideAlert(n){this.alertHistory.update(i=>i.map(s=>Ce(le({},s),{isOpen:s.id===n?!1:s.isOpen})))}setHidden(n){this.alertHistoryIsHidden.set(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Le({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),nt=new at("Ship UI Config"),mn={class:"default",width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},vn=(()=>{var e;let o=class o{constructor(){O(this,e);M(this,e,V(nt,{optional:!0})),this.dialogRef=ae("dialogRef"),this.isOpen=Z(!1),this.options=w(),this.closed=ue(),this.defaultOptionMerge=F(()=>le(Ce(le({},mn),{class:f(this,e)?.dialogType??"default"}),this.options())),this.abortController=null,this.isOpenEffect=Y(()=>{let i=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(i?.showModal(),i?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",s=>{s.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&s.preventDefault(),s.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),i?.close())})}ngOnDestroy(){this.abortController?.abort()}};e=new WeakMap,o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=L({type:o,selectors:[["sh-dialog"]],viewQuery:function(s,h){s&1&&se(h.dialogRef,qt,5),s&2&&ce()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ee,decls:5,vars:11,consts:[["dialogRef",""],["shDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(s,h){if(s&1&&(W(),B(0,"dialog",1,0)(2,"div",2),y(3),q(),P(4,zt,1,0,"div",3),q()),s&2){let p=h.defaultOptionMerge();ve(p.class),ne("width",p.width??"")("max-width",p.maxWidth??"")("max-height",p.maxHeight??"")("height",p.height??""),b(4),A(h.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0});let t=o;return t})(),Zn=(()=>{var e,o,n,Dt,Oe;let h=class h{constructor(){O(this,n);O(this,e);O(this,o);M(this,e,typeof document<"u"?document.querySelector("body"):null),M(this,o,V(ht)),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}open(a,r){let d=f(this,o).injector,C=E(this,n,Dt).call(this),_=r||{},{data:v,closed:m}=_,S=st(_,["data","closed"]);this.compRef&&E(this,n,Oe).call(this),this.insertedCompRef=Ke(a,{environmentInjector:d}),this.compRef=Ke(vn,{hostElement:C,environmentInjector:d,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let c=this.insertedCompRef.instance?.data,l=this.insertedCompRef.instance?.closed;if(v){if(He(c))this.insertedCompRef.setInput("data",v);else if(!He(c))throw new Error("data is not an input signal on the passed component")}l instanceof Ge&&(this.closedFieldSub=l.subscribe((...T)=>{m?.(...T),E(this,n,Oe).call(this)})),f(this,o).attachView(this.insertedCompRef.hostView),f(this,o).attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",S),this.compRef.instance.closed.subscribe(()=>g());let u=this;function g(){var T;l&&l instanceof Ge?l.emit(!1):m?.(void 0),E(T=u,n,Oe).call(T)}return{component:this.insertedCompRef.instance,close:g}}ngOnDestroy(){E(this,n,Oe).call(this)}};e=new WeakMap,o=new WeakMap,n=new WeakSet,Dt=function(){let a=document.createElement("sh-dialog-ref");return a.id="sh-dialog-ref",document.getElementById("sh-dialog-ref")||f(this,e)?.append(a),document.getElementById("sh-dialog-ref")},Oe=function(){this.insertedCompRef&&(f(this,o).detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(f(this,o).detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())},h.\u0275fac=function(r){return new(r||h)},h.\u0275prov=Le({token:h,factory:h.\u0275fac,providedIn:"root"});let t=h;return t})(),Jn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=L({type:e,selectors:[["sh-button-group"]],ngContentSelectors:ee,decls:1,vars:0,template:function(i,s){i&1&&(W(),y(0))},encapsulation:2,changeDetection:0});let t=e;return t})(),eo=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=L({type:e,selectors:[["","shButton",""]],attrs:$t,ngContentSelectors:ee,decls:1,vars:0,template:function(i,s){i&1&&(W(),y(0))},encapsulation:2,changeDetection:0});let t=e;return t})(),to=(()=>{var e;let o=class o{constructor(){O(this,e);M(this,e,V(nt,{optional:!0})),this.class=N(f(this,e)?.cardType??"default")}};e=new WeakMap,o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=L({type:o,selectors:[["sh-card"]],hostVars:2,hostBindings:function(s,h){s&2&&ve(h.class())},ngContentSelectors:ee,decls:1,vars:0,template:function(s,h){s&1&&(W(),y(0))},encapsulation:2,changeDetection:0});let t=o;return t})(),Cn=(()=>{var e;let o=class o{constructor(){O(this,e,V(K))}};e=new WeakMap,o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=L({type:o,selectors:[["sh-checkbox"]],ngContentSelectors:ee,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(s,h){s&1&&(W(),x(0,"div",0)(1,"sh-icon",1),k(2,"check-bold"),I(),x(3,"sh-icon",2),k(4,"minus-bold"),I()(),y(5))},dependencies:[De],encapsulation:2,changeDetection:0});let t=o;return t})(),_n=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=L({type:e,selectors:[["sh-chip"]],ngContentSelectors:ee,decls:2,vars:0,template:function(i,s){i&1&&(W(),B(0,"div"),y(1),q())},encapsulation:2,changeDetection:0});let t=e;return t})();var Sn=["scroll","auto"],Dn={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},bt=(()=>{var e,o,yt,Ve;let s=class s{constructor(){O(this,o);O(this,e);M(this,e,4),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.asMultiLayer=w(!1),this.disableOpenByClick=w(!1),this.isOpen=Z(!1),this.options=w(),this.closed=ue(),this.defaultOptionMerge=F(()=>le(le({},Dn),this.options())),this.triggerRef=ae.required("triggerRef"),this.popoverRef=ae.required("popoverRef"),this.id=N("--"+Ae()),this.menuStyle=N(null),this.openAbort=null,this.openEffect=Y(()=>{let p=this.popoverRef()?.nativeElement;if(this.isOpen()){this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController;let r={signal:this.openAbort?.signal};p?.showPopover(),document.addEventListener("keydown",d=>{d.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&d.preventDefault(),d.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},r),setTimeout(()=>{E(this,o,yt).call(this,this.popoverRef()?.nativeElement).addEventListener("scroll",()=>E(this,o,Ve).call(this),r),window?.addEventListener("resize",()=>E(this,o,Ve).call(this),r),E(this,o,Ve).call(this)})}else p.hidePopover&&p.hidePopover(),this.openAbort?.abort(),this.closed.emit()})}toggleIsOpen(p){p.preventDefault(),p.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}eventClose(p){p.stopPropagation(),p.preventDefault(),this.isOpen.set(!1)}};e=new WeakMap,o=new WeakSet,yt=function(p){let a=p.parentElement;for(;a;){if(Sn.indexOf(window?.getComputedStyle(a).overflowY)>-1&&a.scrollHeight>a.clientHeight)return a;a=a.parentElement}return document.documentElement},Ve=function(){let p=this.triggerRef()?.nativeElement.getBoundingClientRect(),a=this.popoverRef()?.nativeElement.getBoundingClientRect(),r=p.left,d=p.bottom,C=r,v=d+f(this,e),m=C+a.width>window?.innerWidth,S=v+a.height>window?.innerHeight;if(!this.SUPPORTS_ANCHOR){if(C=r,v=d+f(this,e),S){let l=p.top-a.height-f(this,e);l<0||(v=l)}m&&(C=p.right-a.width,C<0&&(C=0));let c={left:C+"px",top:v+"px"};this.menuStyle.set(c)}},s.\u0275fac=function(a){return new(a||s)},s.\u0275cmp=L({type:s,selectors:[["sh-popover"]],viewQuery:function(a,r){a&1&&(se(r.triggerRef,Ut,5),se(r.popoverRef,Qt,5)),a&2&&ce(2)},hostVars:2,hostBindings:function(a,r){a&2&&z("multi-layer",r.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Xt,decls:10,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(a,r){if(a&1){let d=ie();W(Yt),B(0,"div",2,0),me("click",function(v){return H(d),j(r.toggleIsOpen(v))}),B(2,"div",3),y(3),y(4,1),y(5,2),q()(),B(6,"div",4,1)(8,"div",5),me("click",function(v){return H(d),j(r.isOpen()&&r.eventClose(v))}),q(),y(9,3),q()}a&2&&(ne("anchor-name",r.id()),b(6),mt(r.menuStyle()),ne("position-anchor",r.id()))},encapsulation:2,changeDetection:0});let t=s;return t})();var bn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=L({type:e,selectors:[["sh-divider"]],ngContentSelectors:ee,decls:1,vars:0,template:function(i,s){i&1&&(W(),y(0))},encapsulation:2,changeDetection:0});let t=e;return t})(),ot=(()=>{var e;let o=class o{constructor(){O(this,e,V(K));je(()=>{let i=typeof CSS<"u"&&CSS.supports("field-sizing","content"),s=f(this,e).nativeElement.querySelector("textarea");if(!i&&s!==null){let a=function(){s.style.height="auto",s.style.height=s.scrollHeight+"px"},r=function(){setTimeout(a,0)};var h=a,p=r;s.addEventListener("change",a),s.addEventListener("cut",r),s.addEventListener("paste",r),s.addEventListener("drop",r),s.addEventListener("keydown",r),s.focus(),s.select(),a()}})}onClick(){f(this,e).nativeElement.querySelector("input")&&f(this,e).nativeElement.querySelector("input").focus(),f(this,e).nativeElement.querySelector("textarea")&&f(this,e).nativeElement.querySelector("textarea").focus()}};e=new WeakMap,o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=L({type:o,selectors:[["sh-form-field"]],hostBindings:function(s,h){s&1&&X("click",function(){return h.onClick()})},ngContentSelectors:Zt,decls:17,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(s,h){s&1&&(W(Kt),y(0),B(1,"div",0)(2,"div",1),y(3,1),y(4,2),y(5,3),q(),y(6,4),y(7,5),B(8,"div",2),y(9,6),y(10,7),y(11,8),q()(),B(12,"div",3)(13,"div",4),y(14,9),q(),B(15,"div",5),y(16,10),q()())},encapsulation:2,changeDetection:0});let t=o;return t})(),io=(()=>{let e=class e{constructor(){this._el=V(K),this.inputRef=ae.required("input"),this.filesOver=N(!1),this.multiple=w(),this.accept=w(null),this.placeholder=Z("Click or drag files here"),this.overlayText=w("Drop files here"),this.files=Z([]),this.fileUploadClasses=F(()=>this._el.nativeElement.classList.toString()),this.inputEffect=Y(()=>{let n=this.inputRef().nativeElement;n&&(n.placeholder&&this.placeholder.set(n.placeholder),n.addEventListener("dragover",i=>{i.preventDefault(),this.filesOver.set(!0)}),n.addEventListener("dragleave",i=>{i.preventDefault(),this.filesOver.set(!1)}),n.addEventListener("drop",i=>{i.preventDefault(),this.filesOver.set(!1);let s=i.dataTransfer?.files;s&&s.length>0&&(this.handleFileUpload(Array.from(s)),n.files=s)}),n.addEventListener("change",i=>{i.preventDefault(),this.handleFileUpload(Array.from(i.target.files))}))})}handleFileUpload(n){this.multiple()?this.files.update(i=>[...i,...n]):this.files.set(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=L({type:e,selectors:[["sh-file-upload"]],viewQuery:function(i,s){i&1&&se(s.inputRef,_t,5),i&2&&ce()},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:ei,decls:12,vars:7,consts:[["inputWrap",""],["input",""],["ngProjectAs","input",5,["input"],1,"input"],[1,"files-text"],[1,"placeholder"],["type","file"],[1,"bg-overlay"],["suffix",""]],template:function(i,s){i&1&&(W(Jt),x(0,"sh-form-field"),y(1,0,["ngProjectAs","label",5,["label"]]),x(2,"div",2,0),P(4,ti,2,1,"div",3)(5,ii,2,1,"div",3)(6,ni,2,1,"div",4),fe(7,"input",5,1)(9,"div",6),I(),x(10,"sh-icon",7),k(11,"upload-simple"),I()()),i&2&&(ve(s.fileUploadClasses()),b(4),A(s.files().length===1?4:s.files().length>1?5:6),b(3),ye("multiple",s.multiple())("accept",s.accept()),b(2),z("files-over",s.filesOver()))},dependencies:[ot,De],encapsulation:2,changeDetection:0});let t=e;return t})(),no=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=L({type:e,selectors:[["sh-list"]],ngContentSelectors:ee,decls:1,vars:0,template:function(i,s){i&1&&(W(),y(0))},encapsulation:2,changeDetection:0});let t=e;return t})();function xt(t,e){let o=e?.injector||(dt(xt),V(Fe)),{debounce:n=0,initialValue:i=void 0,transform:s=g=>g,compare:h=(g,_)=>g===_,forceType:p=void 0,returnPreviousValue:a=!0}=e||{},r=N(i),d=o.get(Te),C=F(()=>{let g=t()?.nativeElement;if(g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement)return l(g)}),v=!1,m,S=null;return Y(()=>{let g=C();if(!g)return r.set(a&&m?s(m):void 0);i!==void 0&&g.value===""?r.set(i):g.value!==""&&c();let _=T=>{S!==null&&clearTimeout(S),S=setTimeout(()=>{S=null,c()},n)};g.addEventListener("input",_),g.addEventListener("inputValueChanged",_),d.onDestroy(()=>{g.removeEventListener("input",_),g.removeEventListener("inputValueChanged",_),S!==null&&clearTimeout(S)})},{injector:o}),Y(()=>{let g=C();if(!g)return;let _=r()??"",T=_==null?"":String(_);g.value!==T&&(m=T,g.value=T,g.dispatchEvent(new Event("input")))},{injector:o}),r;function c(){if(!v){v=!0;try{let g=C();if(!g)return;let _=g.value,T=p?u(_,p):s(_);m=_,h(r(),T)||r.set(T)}finally{v=!1}}}function l(g){return Object.defineProperty(g,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(g),"value").get.call(this)},set(_){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(g),"value").set.call(this,_);let G=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:_}});return this.dispatchEvent(G),_}}),g}function u(g,_){switch(_){case"string":return g.toString();case"number":let T=Number(g);return isNaN(T)?void 0:T;case"boolean":return g.toLowerCase()==="true"?!0:g.toLowerCase()==="false"?!1:void 0;default:return g}}}function Ot(t,e){let o=V(Fe),n=o.get(Te),i=N([]),s=null,h=null,p=(r,d)=>{h&&h.disconnect();let C=Array.from(r.nativeElement.querySelectorAll(d.join(",")));i.set(C),typeof MutationObserver<"u"&&(h=new MutationObserver(v=>{queueMicrotask(()=>{let m=Array.from(r.nativeElement.querySelectorAll(d.join(",")));i.set(m)})}),h.observe(r.nativeElement,{childList:!0,subtree:!0})),n.onDestroy(()=>a())};s=Y(()=>{let r=typeof t=="function"&&t[rt]?t():t,d=typeof e=="function"?e():e;r&&d?.length>0?p(r,d):(i.set([]),h&&(h.disconnect(),h=null))},{injector:o});function a(){s&&s.destroy(),h&&h.disconnect()}return{signal:i.asReadonly(),destroy:a}}var oo=(()=>{var e,o,Et,Ze;let s=class s{constructor(){O(this,o);O(this,e);M(this,e,V(be)),this.asMultiLayer=w(!1),this.openIndicator=w(!1),this.disabled=w(!1),this.customOptionElementSelectors=w(["button"]),this.keepClickedOptionActive=w(!1),this.closeOnClick=w(!0),this.isOpen=Z(!1),this.closed=ue(),this.searchable=w(!1),this.activeOptionIndex=N(-1),this.inputRef=ae("input"),this.optionsRef=ae("optionsRef"),this.options=Ot(this.optionsRef,this.customOptionElementSelectors),this.optionsEl=F(()=>this.options.signal().filter(p=>!p.disabled)),this.inputValue=xt(this.inputRef),this.abortController=null,this.optionsEffect=Y(()=>{if(!this.isOpen())return;this.abortController&&(this.abortController.abort(),this.abortController=null),this.abortController=new AbortController;let p=this.inputRef()?.nativeElement;p&&(queueMicrotask(()=>p.focus()),this.closeOnClick()||this.optionsRef()?.nativeElement?.addEventListener("click",r=>{let d=r.target,C=this.activeElements();if(!C.length){let m=this.optionsEl();this.activeElements.set(m),C=m}let v=C.findIndex(m=>m===d);v>-1&&(this.activeOptionIndex.set(v),p.focus())}),p.addEventListener("keydown",a=>{let r=this.activeOptionIndex();a.key==="ArrowDown"?(a.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(r))):a.key==="ArrowUp"?(a.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(r))):a.key==="Enter"?(a.preventDefault(),r>-1&&(this.activeElements()[r].click(),queueMicrotask(()=>this.close("active")))):a.key==="Tab"&&(a.preventDefault(),this.close("closed"))},{signal:this.abortController.signal}))}),this._lastElementList=[],this.activeElements=N([]),this.lastInputValue="",this.inputValueEffect=Y(()=>{if(!this.searchable())return;let a=(this.inputValue()??"").toLowerCase();if(E(this,o,Ze).call(this),!a||a==="")return;let r=this._lastElementList.length&&a.length>this.lastInputValue.length?this._lastElementList:this.optionsEl();this.lastInputValue=a;for(let d=0;d<r.length;d++){let C=r[d],v=C.textContent?.toLowerCase()||"",m=E(this,o,Et).call(this,v,a);C.value=m}r=r.filter(d=>d.value>0).sort((d,C)=>C.value-d.value);for(let d=0;d<r.length;d++)f(this,e).setStyle(r[d],"order",d);this.activeElements.set(r),this._lastElementList=r}),this.activeOptionIndexEffect=Y(()=>{let p=this.activeElements(),a=this.activeOptionIndex();for(let r=0;r<p.length;r++)p[r].classList.remove("active");a>-1&&(p[a].scrollIntoView({block:"center"}),p[a].classList.add("active"))})}nextActiveIndex(p){let a=this.activeElements();if(!a.length){let d=this.optionsEl();this.activeElements.set(d),a=d}if(p===-1||p===a.length-1)return 0;let r=p+1;return a[r].disabled?this.nextActiveIndex(r):r}prevActiveIndex(p){let a=this.activeElements();if(!a.length){let d=this.optionsEl();this.activeElements.set(d),a=d}if(p===0||p===-1)return a.length-1;let r=p-1;return a[r].disabled?this.prevActiveIndex(r):r}close(p="closed",a){this.inputValue.set(""),this.closeOnClick()&&((!this.keepClickedOptionActive()||p==="closed")&&E(this,o,Ze).call(this),this.isOpen.set(!1),this.closed.emit(p==="active"))}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null)}};e=new WeakMap,o=new WeakSet,Et=function(p,a){if(!a)return 0;let r=0,d=-1,C=0,v=!0;for(let m=0;m<a.length;m++){let S=a[m];if(p.length>d+1&&p[d+1]===S)r+=m===0?100:150,d++,C++;else{let c=p.indexOf(S,d+1);if(m>0&&(v=!1),c===-1)return 0;r+=100,d=c,C++}}return v&&a.length===C&&(r+=1e3),r+=C*20,r},Ze=function(){this.activeOptionIndex.set(-1);let p=this.optionsEl();for(let a=0;a<p.length;a++)p[a].classList.remove("active")},s.\u0275fac=function(a){return new(a||s)},s.\u0275cmp=L({type:s,selectors:[["sh-menu"]],viewQuery:function(a,r){a&1&&(se(r.inputRef,_t,5),se(r.optionsRef,oi,5)),a&2&&ce(2)},hostVars:6,hostBindings:function(a,r){a&2&&z("disabled",r.disabled())("has-search",r.searchable())("multi-layer",r.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],openIndicator:[1,"openIndicator"],disabled:[1,"disabled"],customOptionElementSelectors:[1,"customOptionElementSelectors"],keepClickedOptionActive:[1,"keepClickedOptionActive"],closeOnClick:[1,"closeOnClick"],isOpen:[1,"isOpen"],searchable:[1,"searchable"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ri,decls:12,vars:12,consts:[["formFieldWrapper",""],["input",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","asMultiLayer","options"],["trigger","",3,"click"],[1,"open-indicator"],[1,"form-field-wrap"],[1,"small","stretch"],["type","text","placeholder","Search"],[1,"options",3,"click"]],template:function(a,r){if(a&1){let d=ie();W(si),x(0,"sh-popover",3,0),Ue("isOpenChange",function(v){return H(d),$e(r.isOpen,v)||(r.isOpen=v),j(v)}),X("closed",function(){return H(d),j(r.close("fromPopover"))}),x(2,"div",4),X("click",function(){return H(d),j(!r.disabled()&&r.isOpen.set(!0))}),y(3),P(4,ai,2,0,"sh-icon",5),I(),x(5,"div",6)(6,"sh-form-field",7),fe(7,"input",8,1),I()(),x(9,"div",9,2),X("click",function(){return H(d),j(r.close("active"))}),y(11,1),I()()}a&2&&(ze("isOpen",r.isOpen),oe("disableOpenByClick",!0)("asMultiLayer",r.asMultiLayer())("options",Ye(11,Gt)),b(2),z("is-open",r.isOpen()),b(2),A(r.openIndicator()?4:-1),b(2),z("hidden",r.searchable()===!1),b(3),z("searching",r.searchable()&&r.inputValue()!==""))},dependencies:[bt,ot,De],encapsulation:2,changeDetection:0});let t=s;return t})(),yn=(()=>{let e=class e{constructor(){this.value=w(void 0)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=L({type:e,selectors:[["sh-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(i,s){i&1&&_e(0,"div",0),i&2&&ne("width",s.value(),"%")},encapsulation:2,changeDetection:0});let t=e;return t})(),so=(()=>{var e;let o=class o{constructor(){O(this,e,V(K))}onClick(){f(this,e).nativeElement.querySelector("input")&&f(this,e).nativeElement.querySelector("input").focus()}};e=new WeakMap,o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=L({type:o,selectors:[["sh-radio"]],hostBindings:function(s,h){s&1&&X("click",function(){return h.onClick()})},ngContentSelectors:ee,decls:2,vars:0,consts:[[1,"radio"]],template:function(s,h){s&1&&(W(),_e(0,"div",0),y(1))},encapsulation:2,changeDetection:0});let t=o;return t})(),ro=(()=>{var e,o,n,i,s,Je,wt,Mt,Tt;let d=class d{constructor(){O(this,s);O(this,e);O(this,o);O(this,n);O(this,i);M(this,e,V(K)),M(this,o,null),M(this,n,null),M(this,i,0),this.unit=w(""),this.value=Z(f(this,i)),this.inputState=N({min:0,max:100,step:1}),this.valuePercentage=F(()=>{let{min:v,max:m}=this.inputState(),S=this.value()??v;if(isNaN(S))return 0;let c=m-v;if(c===0)return 0;let l=(S-v)/c*100;return Math.max(0,Math.min(100,l))}),this.trackFilledPercentage=F(()=>this.valuePercentage()),this.thumbPositionPercentage=F(()=>this.valuePercentage()),this.syncModelToInputEffect=Y(()=>{let v=this.value();if(f(this,n)){let m=parseFloat(f(this,n).value);(isNaN(m)||String(m)!==String(v))&&(f(this,n).value=String(v))}})}get hasInputElement(){return!!f(this,n)}ngAfterViewInit(){M(this,n,f(this,e).nativeElement.querySelector('input[type="range"]')),f(this,n)?(E(this,s,Tt).call(this,f(this,n)),f(this,n).oninput=()=>{this.setNewInputValue(f(this,n).value)},f(this,n).addEventListener("inputValueChanged",v=>{this.setNewInputValue(v.detail.value)}),queueMicrotask(()=>E(this,s,Je).call(this,!0)),E(this,s,wt).call(this)):console.error('ShipRangeSliderComponent: No <input type="range"> element found projected inside.')}setNewInputValue(v){let m=parseFloat(v??"0");if(!isNaN(m)){let{min:S,max:c}=this.inputState();this.value.set(Math.max(S,Math.min(c,m)))}}trackEvent(v){if(!f(this,n)||f(this,n).readOnly||f(this,n).disabled){v.preventDefault(),v.stopPropagation();return}if(v.target===f(this,n)||v.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let S=v.currentTarget.getBoundingClientRect(),c=v.clientX-S.left,l=S.width,{min:u,max:g,step:_}=this.inputState(),T=g-u;if(l>0&&T!==0&&_>0){let $=(c/l*T+u-u)/_,R=u+Math.round($)*_,Q=E(this,s,Mt).call(this,_);R=parseFloat(R.toFixed(Q));let te=Math.max(u,Math.min(g,R));this.value.set(te)}}ngOnDestroy(){f(this,o)&&f(this,o).disconnect(),f(this,n)&&(f(this,n).oninput=null)}};e=new WeakMap,o=new WeakMap,n=new WeakMap,i=new WeakMap,s=new WeakSet,Je=function(v=!1){if(!f(this,n))return;let m=parseFloat(f(this,n).min??"0")??0,S=parseFloat(f(this,n).max??"100")??100,c=f(this,n).step,l=1;if(c&&c.toLowerCase()!=="any"){let g=parseFloat(c);!isNaN(g)&&g>0&&(l=g)}this.inputState.set({min:m,max:S,step:l});let u=parseFloat(f(this,n).value??String(m))??m;if(v&&this.value()!==f(this,i)){let g=this.value(),_=Math.max(m,Math.min(S,g));u!==_&&(f(this,n).value=String(_)),g!==_&&this.value.set(_)}else{let g=Math.max(m,Math.min(S,u));this.value()!==g&&this.value.set(g)}},wt=function(){if(!f(this,n)||typeof MutationObserver>"u")return;let v=["min","max","step","value","readonly","disabled"];M(this,o,new MutationObserver(m=>{let S=!1;for(let c of m)if(c.type==="attributes"&&v.includes(c.attributeName??"")){S=!0;break}S&&E(this,s,Je).call(this,!1)})),f(this,o).observe(f(this,n),{attributes:!0})},Mt=function(v){if(isNaN(v)||Math.floor(v)===v)return 0;let S=v.toString().split(".")[1];return S?S.length:0},Tt=function(v){Object.defineProperty(v,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(v),"value").get.call(this)},set(m){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(v),"value").set.call(this,m);let c=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:m}});return this.dispatchEvent(c),m}})},d.\u0275fac=function(m){return new(m||d)},d.\u0275cmp=L({type:d,selectors:[["sh-range-slider"]],hostVars:2,hostBindings:function(m,S){m&2&&z("has-input",S.hasInputElement)},inputs:{unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:ci,decls:15,vars:10,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(m,S){m&1&&(W(li),B(0,"div",0),y(1),q(),B(2,"div",1)(3,"div",2),k(4),q(),B(5,"div",3),me("click",function(l){return S.trackEvent(l)}),y(6,1),B(7,"div",4),_e(8,"div",5),q(),B(9,"div",6)(10,"div",7)(11,"div",8),k(12),q()()()(),B(13,"div",9),k(14),q()()),m&2&&(b(4),Ne("",S.inputState().min,"",S.unit()),b(4),ne("width",S.trackFilledPercentage(),"%"),b(),ne("left",S.thumbPositionPercentage(),"%"),b(3),Ne("",S.value(),"",S.unit()),b(2),Ne("",S.inputState().max,"",S.unit()))},encapsulation:2,changeDetection:0});let t=d;return t})(),xn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=L({type:e,selectors:[["sh-spinner"]],decls:0,vars:0,template:function(i,s){},encapsulation:2,changeDetection:0});let t=e;return t})(),ao=(()=>{var e,o,n,i,et,h,p,tt,J,It,kt,Nt;let m=class m{constructor(){O(this,i);O(this,e);O(this,o);O(this,n);O(this,h);O(this,p);M(this,e,V(K)),this.value=w(),this.label=w(),this.asFreeText=w(!1),this.optionTitle=w(null),this.freeTextTitle=w(null),this.freeTextPlaceholder=w("Type to create a new option"),this.validateFreeText=w(),this.placeholder=w(),this.readonly=Z(!1),this.disabled=Z(!1),this.lazySearch=w(!1),this.inlineSearch=w(!1),this.asText=w(!1),this.isClearable=w(!0),this.selectMultiple=w(!1),this.optionTemplate=w(null),this.selectedOptionTemplate=w(null),this.placeholderTemplate=w(null),this.freeTextOptionTemplate=w(null),this.isOpen=Z(!1),this.isLoading=Z(!1),this.options=Z([]),this.selectedOptions=Z([]),this.cleared=ue(),this.onAddNewFreeTextOption=ue(),this.computedFreeTextOption=F(()=>{let c=this.inputValue(),l=this.value(),u=l?{}:c;return l&&typeof u=="object"&&(u[l]=c),u}),M(this,o,N(null)),this.inlineTemplate=vt(Ie),this.optionsWrapRef=ae.required("optionsWrap"),this.inputRefInput=N(null),M(this,n,typeof MutationObserver<"u"&&new MutationObserver(c=>{for(var l of c)l&&(l.target.nodeName==="INPUT"||l.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new K(l.target)),f(this,n).disconnect())})),this.inputValue=N(""),this.prevInputValue=N(null),this.focusedOptionIndex=N(-1),this._isClearable=F(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=F(()=>f(this,e).nativeElement.classList.toString()),this.stretch=F(()=>this.selectClasses().includes("stretch")),this.small=F(()=>this.selectClasses().includes("small")),this.placeholderText=F(()=>{let c=this.placeholder(),l=this.inputRefEl();return c||l?.placeholder||null}),this.selectedOptionValues=F(()=>{let c=this.selectedOptions(),l=this.value();return l?c.map(u=>E(this,i,J).call(this,u,l)):c}),this.filteredOptions=F(()=>{let c=this.options()||[],l=this.label(),u=this.value(),g=this.inlineSearch(),_=this.inputValue().toLowerCase(),T=E(this,i,kt).call(this,_);if(c.length<=0)return[];if(!g||_==="")return c;let $=c.filter(R=>{let Q=l?(E(this,i,J).call(this,R,l)??"").toString().toLowerCase():(R??"").toString().toLowerCase(),te=((u?E(this,i,J).call(this,R,u):R)??"").toString().toLowerCase(),de=T.test(Q),we=T.test(te);return de||we}).map(R=>{let Q=l?(E(this,i,J).call(this,R,l)??"").toString().toLowerCase():(R??"").toString().toLowerCase(),te=((u?E(this,i,J).call(this,R,u):R)??"").toString().toLowerCase(),de=E(this,i,et).call(this,Q,_),we=E(this,i,et).call(this,te,_);return{item:R,score:Math.max(de,we)}});return $.sort((R,Q)=>Q.score-R.score),$.map(R=>R.item)}),M(this,h,Ae()),this.inputRefEl=F(()=>{let c=this.inputRefInput();if(c===null)return;let l=c?c.nativeElement:null;return l?(l.autocomplete="off",l.setAttribute("role","combobox"),l.setAttribute("id",`combobox-${f(this,h)}`),l.setAttribute("aria-haspopup","listbox"),l.setAttribute("aria-owns","optionsWrapId"),E(this,i,It).call(this,l),l.addEventListener("focus",()=>{this.readonly()||this.open()}),l.addEventListener("input",u=>{let g=u.target.value,_=this.inputValue();g!==_&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(g),this.updateInputElValue())}),l.addEventListener("inputValueChanged",u=>{let g=u.detail.value,_=this.inputValue();if(g!==_){if(g===""){this.clear();return}this.setSelectedOptionsFromValue(g),this.setInputValueFromOptions(this.selectedOptions()),E(this,i,tt).call(this)}}),l):(console.warn("<sh-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.focusEffect=Y(()=>{let c=this.inputRefEl();if(!c)return;let l=this.getLabelAsSlug(this.filteredOptions()[this.focusedOptionIndex()]);l?c.setAttribute("aria-activedescendant",l):c.removeAttribute("aria-activedescendant")}),this.openAbortController=null,this.isOpenEffect=Y(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let l=this.inputRefEl(),g=this.asFreeText()?-1:0;if(!l)return;l.setAttribute("aria-expanded",this.isOpen().toString()),l.addEventListener("keydown",_=>{if((_.key==="Escape"||_.key==="Tab")&&(_.preventDefault(),this.close()),_.key==="Enter"&&(_.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex(),void 0,!0)),_.key==="ArrowDown"){_.preventDefault();let T=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(T>this.filteredOptions().length-1?g:T)}if(_.key==="ArrowUp"){_.preventDefault();let T=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(T<g?this.filteredOptions().length-1:T)}},{signal:this.openAbortController?.signal})}else{let l=this.inputRefEl();if(!l)return;l.setAttribute("aria-expanded",this.isOpen().toString()),this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=Y(()=>{let c=this.inputValue();this._inputValue=c}),this.inputRefElEffect=Y(()=>{let c=this.inputRefEl();c&&c.value!==this._inputValue&&(this.disabled.set(c.disabled),this.setSelectedOptionsFromValue(c.value),this.setInputValueFromOptions(this.selectedOptions()))}),this.selectedLabels=F(()=>{let c=this.selectedOptions();return this.label()?c.map(u=>this.getLabel(u)).join(", "):c.join(", ")}),this.inputState=F(()=>(this.selectedOptions().length>0||this.asFreeText()&&this.inputValue().length>0)&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=F(()=>this.inlineSearch()||this.lazySearch()),M(this,p,Y(()=>{if(this.selectMultiple()&&this.hasSearch())return;let c=this.selectedOptions(),l=this.value(),u=c.map(g=>l?E(this,i,J).call(this,g,l):g).join(",");this.inputValue.set(u)}))}ngOnInit(){this.setInitInput()}setInitInput(){let c=f(this,e).nativeElement.querySelector("input");if(c){this.inputRefInput.set(new K(c));return}let l=f(this,e).nativeElement.querySelector("textarea");if(l){this.inputRefInput.set(new K(l));return}typeof MutationObserver<"u"&&f(this,n).observe(f(this,e).nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(c){let l=this.options()||[],u=this.value(),g=this.selectMultiple(),_=c.toString().split(",");if(_.length===0){this.selectedOptions.set([]);return}let T=g?_:[_[0]],G=l.filter($=>{let R=u?E(this,i,J).call(this,$,u)?.toString():$?.toString();return R&&T.includes(R)});this.selectedOptions.set(g?G:[G[0]])}setInputValueFromOptions(c){let l=this.value();if(c.length===0){this.inputValue.set(""),this.updateInputElValue();return}let u=c.map(g=>l?E(this,i,J).call(this,g,l):g).join(",");u!==this.inputValue()&&(this.inputValue.set(u),this.updateInputElValue())}getValue(c){let l=this.value();return l?E(this,i,J).call(this,c,l):c}getLabel(c){let l=this.label();return l?E(this,i,J).call(this,c,l):c}getLabelAsSlug(c){let l=this.getLabel(c);return!l||typeof l!="string"?"":l.replaceAll(" ","-")}toggleOptionByIndex(c,l,u=!1){let g=this.filteredOptions()[c];if(this.asFreeText()&&c===-1){let Q=this.computedFreeTextOption(),te=this.getValue(Q);if(!(this.validateFreeText()??(Me=>!0))(te))return;this.options.update(Me=>Me.findIndex(Rt=>this.getValue(Rt)===te)>-1?Me:(this.onAddNewFreeTextOption.emit(te),[Q,...Me])),c=0,g=Q}else if(!g){this.close();return}l&&l.stopPropagation();let _=this.selectMultiple(),T=this._isClearable(),G=this.value(),$=this.selectedOptionValues(),R=G?E(this,i,J).call(this,g,G):g;this.prevInputValue.set(null),f(this,o).set(null),this.selectedOptions.update(Q=>{let te=$.indexOf(R);if(te>-1){let de=[...Q.slice(0,te),...Q.slice(te+1)];return T||de.length>0?de:Q}else return this.focusedOptionIndex.set(c),_?[...Q,g]:[g]}),_?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromOptions(this.selectedOptions()),_&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(c,l){c.stopPropagation(),this.selectedOptions.update(u=>[...u.slice(0,l),...u.slice(l+1)]),this.setInputValueFromOptions(this.selectedOptions())}isSelected(c){let l=this.value(),u=this.filteredOptions()[c],g=l?E(this,i,J).call(this,u,l):u;return this.selectedOptionValues().indexOf(g)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()?(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()):f(this,o).set(this.selectedOptions()),this.selectMultiple()||E(this,i,tt).call(this))}close(){this.isOpen.set(!1);let c=this.prevInputValue(),l=f(this,o).call(this);if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&c&&(this.inputValue.set(c),this.setInputValueFromOptions(this.selectedOptions())),!this.hasSearch()&&l!==null&&this.setInputValueFromOptions(l),this.selectMultiple()&&this.setInputValueFromOptions(this.selectedOptions())}clear(c){c?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let c=this.inputRefEl(),l=this.inputValue();c&&(c.value=l,c.dispatchEvent(new Event("input")))}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&f(this,n).disconnect()}};e=new WeakMap,o=new WeakMap,n=new WeakMap,i=new WeakSet,et=function(c,l){if(!l)return 0;let u=0,g=-1,_=0,T=!0;for(let G=0;G<l.length;G++){let $=l[G];if(c.length>g+1&&c[g+1]===$)u+=G===0?100:150,g++,_++;else{let R=c.indexOf($,g+1);if(G>0&&(T=!1),R===-1)return 0;u+=100,g=R,_++}}return T&&l.length===_&&(u+=1e3),u+=_*20,u},h=new WeakMap,p=new WeakMap,tt=function(){let c=this.selectedOptionValues()[0],l=this.value();if(c){let u=this.filteredOptions().findIndex(g=>l?E(this,i,J).call(this,g,l)===c:g===c);this.focusedOptionIndex.set(u)}else this.focusedOptionIndex.set(-1)},J=function(c,l){return l.split(".").reduce((u,g)=>u?.[g],c)},It=function(c){Object.defineProperty(c,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(c),"value").get.call(this)},set(l){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(c),"value").set.call(this,l);let g=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:l}});return this.dispatchEvent(g),l}})},kt=function(c){let l=(c??"").toLowerCase(),u="^";for(let g of l)u+=".*"+E(this,i,Nt).call(this,g);return u+=".*$",new RegExp(u,"i")},Nt=function(c){return c.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")},m.\u0275fac=function(l){return new(l||m)},m.\u0275cmp=L({type:m,selectors:[["sh-select"]],contentQueries:function(l,u,g){l&1&&ft(g,u.inlineTemplate,Ie,5),l&2&&ce()},viewQuery:function(l,u){l&1&&se(u.optionsWrapRef,di,5),l&2&&ce()},hostVars:2,hostBindings:function(l,u){l&2&&z("multiple",u.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],asFreeText:[1,"asFreeText"],optionTitle:[1,"optionTitle"],freeTextTitle:[1,"freeTextTitle"],freeTextPlaceholder:[1,"freeTextPlaceholder"],validateFreeText:[1,"validateFreeText"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],disabled:[1,"disabled"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],freeTextOptionTemplate:[1,"freeTextOptionTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",disabled:"disabledChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared",onAddNewFreeTextOption:"onAddNewFreeTextOption"},ngContentSelectors:ui,decls:33,vars:25,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"],["id","optionsWrapId","role","listbox",1,"ship-options"],["title",""],[1,"option",3,"id","selected","focused"],[1,"small",3,"class"],[1,"small",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click","id"],[3,"class","active"]],template:function(l,u){if(l&1){let g=ie();W(pi),Qe(0)(1)(2)(3)(4)(5)(6),x(7,"sh-popover",2,0),Ue("isOpenChange",function(T){return H(g),$e(u.isOpen,T)||(u.isOpen=T),j(T)}),X("closed",function(){return H(g),j(u.close())}),x(9,"sh-form-field",3),X("click",function(){return H(g),j(u.open())}),y(10,0,["ngProjectAs","label",5,["label"]]),y(11,1,["ngProjectAs","[prefix]",5,["","prefix",""]]),y(12,2,["ngProjectAs","[boxPrefix]",5,["","boxPrefix",""]]),x(13,"div",4)(14,"div",5),P(15,fi,1,1)(16,Ei,2,0)(17,Ii,2,1),y(18,3),y(19,4),I()(),P(20,ki,2,0,"sh-icon",6)(21,Ni,1,0,"sh-spinner",7)(22,Ri,2,0,"sh-icon",6)(23,Vi,2,0,"sh-icon",6)(24,Pi,2,0,"sh-icon",6)(25,Ai,2,0,"sh-icon",6)(26,Li,2,0,"sh-icon",6),I(),x(27,"div",8,1),P(29,Ui,3,3),P(30,Qi,2,1,"p",9),We(31,Zi,4,8,"li",10,Be),I()()}if(l&2){re(u.placeholderTemplate());let g=u.optionTemplate();b(),re(u.freeTextOptionTemplate());let _=u.selectedOptionTemplate(),T=u.inlineTemplate();b();let G=re(u.selectedOptions()),$=u.inputState();b(),re(_||g||T),b(),re(g||T),b();let R=re(!u.asText()&&u.selectMultiple());b();let Q=re(u.isOpen()&&u.hasSearch()&&(R||u.inputValue().length>-1));b(),ze("isOpen",u.isOpen),oe("disableOpenByClick",!0)("options",Ye(24,hi)),b(2),z("stretch",u.stretch())("small",u.small())("readonly",u.readonly()||u.disabled()),b(4),z("show-search-text",Q),b(),z("is-selected",$==="selected"),b(),A(u.asFreeText()&&u.inputValue().length>0&&!u.isOpen()?15:G.length>0?16:Q?-1:17),b(5),A($==="closed"?20:$==="loading"?21:$==="open-searching"?22:$==="searching"?23:$==="selected"&&u._isClearable()?24:$==="selected"&&!u._isClearable()?25:26),b(9),A(u.asFreeText()?29:-1),b(),A(u.optionTitle()&&u.filteredOptions().length>0?30:-1),b(),qe(u.filteredOptions())}},dependencies:[Ct,bt,ot,De,Cn,xn,_n,bn],encapsulation:2,changeDetection:0});let t=m;return t})();function On(t){let e=V(K),o=V(Te),n=N(!1),i=typeof MutationObserver<"u"&&new MutationObserver(s=>{s.forEach(h=>{h.type==="attributes"&&h.attributeName==="class"&&n.set(e.nativeElement.classList.contains(t))})});return ct(e.nativeElement,()=>{i&&i.observe(e.nativeElement,{attributes:!0}),n.set(e.nativeElement.classList.contains(t))}),o.onDestroy(()=>{i&&i.disconnect()}),n}var lo=(()=>{var e,o,n,i,Ee;let h=class h{constructor(){O(this,i);O(this,e);O(this,o);O(this,n);M(this,e,V(K)),this.openWidth=280,this.openWidthTreshold=this.openWidth*.5,this.disableDrag=w(!1),this.isOpen=Z(!1),this.isOverlay=On("overlay"),M(this,o,f(this,e).nativeElement.parentElement),M(this,n,f(this,o).getBoundingClientRect&&f(this,o).getBoundingClientRect()),this.dragImageElement=ae.required("dragImageElement"),this.dragIsEnding=N(!1),this.dragIsOnScreen=N(!0),this.isDragging=N(!1),this.dragPositionX=N(0),this.dragActualPositionX=F(()=>{let a=this.dragPositionX(),r=280,d=100,C=.008,v=r/2,m=v-d/2,S=v+d/2;if(a>S){let c=a-S,u=(r-S)*(1-Math.exp(-C*c));return S+u}else if(a<m){let c=m-a,u=m*(1-Math.exp(-C*c));return m-u}return a}),this.draggingStyle=F(()=>this.isOverlay()?this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)":null),this.draggingEffect=Y(()=>{typeof document>"u"||(this.isDragging()?document.body.classList.add("dragging"):document.body.classList.remove("dragging"))})}drop(a){a.stopPropagation(),E(this,i,Ee).call(this,a.clientX-f(this,n).left)}dragEnd(a){a.clientX-f(this,n).left<0&&E(this,i,Ee).call(this,0),a.clientX-f(this,n).left>this.openWidthTreshold&&E(this,i,Ee).call(this,this.openWidthTreshold)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragStart(a){a.stopPropagation(),M(this,n,f(this,o).getBoundingClientRect()),this.isDragging.set(!0)}drag(a){a.stopPropagation(),this.isDragging()&&(a.clientX!==0||a.clientY!==0)&&this.dragPositionX.set(a.clientX-f(this,n).left)}touchStart(a){a.stopPropagation(),this.isDragging.set(!0),M(this,n,f(this,o).getBoundingClientRect()),this.dragPositionX.set(0)}touchMove(a){a.stopPropagation(),this.isDragging()&&this.dragPositionX.set(a.touches[0].clientX-f(this,n).left)}touchEnd(a){a.stopPropagation(),E(this,i,Ee).call(this,a.changedTouches[0].clientX-f(this,n).left)}touchCancel(a){a.stopPropagation(),this.isDragging.set(!1)}};e=new WeakMap,o=new WeakMap,n=new WeakMap,i=new WeakSet,Ee=function(a){this.isDragging.set(!1),a>=this.openWidthTreshold?this.isOpen.set(!0):this.isOpen.set(!1)},h.\u0275fac=function(r){return new(r||h)},h.\u0275cmp=L({type:h,selectors:[["sh-sidenav"]],viewQuery:function(r,d){r&1&&se(d.dragImageElement,Ji,5),r&2&&ce()},hostVars:6,hostBindings:function(r,d){r&2&&z("open",d.isOpen())("closed",!d.isOpen())("is-dragging",d.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:tn,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","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(r,d){r&1&&(W(en),P(0,nn,2,0,"div",1),P(1,on,1,0,"div",2),B(2,"div",3),y(3),q(),B(4,"div",4),P(5,sn,1,0,"div",5),B(6,"div",6),y(7,1),q(),B(8,"main"),y(9,2),q()()),r&2&&(A(d.isOverlay()?0:-1),b(),A(d.isOverlay()&&d.isDragging()?1:-1),b(3),ne("transform",d.draggingStyle()),b(),A(d.isOverlay()&&!d.disableDrag()?5:-1))},encapsulation:2,changeDetection:0});let t=h;return t})();var co=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=L({type:e,selectors:[["sh-stepper"]],ngContentSelectors:ee,decls:1,vars:0,template:function(i,s){i&1&&(W(),y(0))},encapsulation:2,changeDetection:0});let t=e;return t})();var po=(()=>{var e;let o=class o{constructor(){O(this,e);M(this,e,V(En)),this.shSort=w(),this.sortAsc=F(()=>{let i=f(this,e).sortByColumn(),s=this.shSort();return!i||!s?!1:i===s}),this.sortDesc=F(()=>{let i=f(this,e).sortByColumn(),s=this.shSort();return!i||!s?!1:i===`-${s}`})}toggleSort(){let i=this.shSort();i&&f(this,e).toggleSort(i)}};e=new WeakMap,o.\u0275fac=function(s){return new(s||o)},o.\u0275dir=ke({type:o,selectors:[["","shSort",""]],hostAttrs:[1,"sortable"],hostVars:4,hostBindings:function(s,h){s&1&&X("mousedown",function(){return h.toggleSort()}),s&2&&z("sort-asc",h.sortAsc())("sort-desc",h.sortDesc())},inputs:{shSort:[1,"shSort"]}});let t=o;return t})();var Se=1.5,En=(()=>{var e,o,n,i,s,Pe;let p=class p{constructor(){O(this,s);O(this,e);O(this,o);O(this,n);O(this,i);M(this,e,V(K)),M(this,o,V(nt,{optional:!0})),this.loading=w(!1),this.data=w([]),this.dataChange=ue(),this.sortByColumn=Z(null),this.tbody=ae("tbody"),this.columns=Ot(this.tbody,["tr:first-child th"]),this.class=N(f(this,o)?.tableType??"default"),this.resizing=N(!1),this.sizeTrigger=N(!0),M(this,n,null),M(this,i,N(!1)),this.scrollXState=N(-1),this.scrollYState=N(-1),this.canScrollX=N(!1),this.canScrollY=N(!1),this.columnSizes=F(()=>{this.sizeTrigger();let r=this.columns.signal();return r.reduce((d,C,v)=>{let m=C,S=m.getAttribute("size"),c=v===r.length-1;return S?`${d} ${S}`:m.classList.contains("sticky")||m.classList.contains("sticky-end")?`${d} min-content`:c?`${d} 1fr`:`${d} 1fr`},"")}),this.e=Y(()=>{let r=this.sortByColumn();if(r===null)return f(this,i).call(this)||(M(this,n,this.data()),f(this,i).set(!0)),this.dataChange.emit(structuredClone(f(this,n)));let d=r.startsWith("-")?r.slice(1):r,C=r.startsWith("-"),v=this.data().sort((m,S)=>{let c=m[d],l=S[d],u=0;return typeof c=="number"&&typeof l=="number"&&(u=c-l),c instanceof Date&&l instanceof Date&&(u=c.getTime()-l.getTime()),typeof c=="string"&&typeof l=="string"&&(u=c.localeCompare(l,void 0,{sensitivity:"base"})),C?-u:u});this.dataChange.emit(v)})}updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}onScroll(){E(this,s,Pe).call(this)}onResize(r){E(this,s,Pe).call(this)}ngAfterViewInit(){queueMicrotask(()=>E(this,s,Pe).call(this))}toggleSort(r){let d=this.sortByColumn(),C=d===r?`-${r}`:d===`-${r}`?null:r;this.sortByColumn.set(C)}};e=new WeakMap,o=new WeakMap,n=new WeakMap,i=new WeakMap,s=new WeakSet,Pe=function(){let r=f(this,e).nativeElement,d=-1,C=-1,v=r.scrollWidth>r.clientWidth+Se;if(v){let S=r.scrollLeft<=Se;r.scrollWidth-(r.scrollLeft+r.clientWidth)<Se?d=1:S||(d=0)}this.scrollXState.set(d),this.canScrollX.set(v);let m=r.scrollHeight>r.clientHeight+Se;if(m){let S=r.scrollTop<=Se;r.scrollHeight-(r.scrollTop+r.clientHeight)<Se?C=1:S||(C=0)}this.scrollYState.set(C),this.canScrollY.set(m)},p.\u0275fac=function(d){return new(d||p)},p.\u0275cmp=L({type:p,selectors:[["sh-table"]],viewQuery:function(d,C){d&1&&se(C.tbody,rn,5),d&2&&ce()},hostVars:18,hostBindings:function(d,C){d&1&&X("scroll",function(){return C.onScroll()})("resize",function(m){return C.onResize(m)},pt),d&2&&(ve(C.class()),ne("grid-template-columns",C.columnSizes()),z("resizing",C.resizing())("can-scroll-x",C.canScrollX())("can-scroll-y",C.canScrollY())("scrolled-x",C.scrollXState()>=0)("scrolled-x-end",C.scrollXState()===1)("scrolled-y",C.scrollYState()>=0)("scrolled-y-end",C.scrollYState()===1))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:ln,decls:5,vars:2,consts:[["tbody",""],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(d,C){d&1&&(W(an),P(0,cn,1,0,"sh-progress-bar",1),x(1,"tbody",null,0),y(3),I(),P(4,dn,2,0,"div",2)),d&2&&(A(C.loading()?0:-1),b(4),A(C.loading()?-1:4))},dependencies:[yn],encapsulation:2,changeDetection:0});let t=p;return t})(),uo=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=L({type:e,selectors:[["sh-tabs"]],ngContentSelectors:ee,decls:1,vars:0,template:function(i,s){i&1&&(W(),y(0))},encapsulation:2,changeDetection:0});let t=e;return t})(),ho=(()=>{let e=class e{constructor(){this.isActive=Z(!1),this.disallowToggle=w(!1)}ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=L({type:e,selectors:[["sh-toggle-card"]],hostVars:2,hostBindings:function(i,s){i&2&&z("active",s.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:un,decls:7,vars:1,consts:[[3,"click"],[1,"toggle-icon"],[1,"collapsable"],[1,"content"]],template:function(i,s){i&1&&(W(pn),x(0,"h3",0),X("click",function(){return s.disallowToggle()||s.toggle()}),y(1,0,null,hn,1,0),P(3,fn,2,0,"sh-icon",1),I(),x(4,"div",2)(5,"div",3),y(6,1),I()()),i&2&&(b(3),A(s.disallowToggle()?-1:3))},dependencies:[De],encapsulation:2,changeDetection:0});let t=e;return t})(),fo=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=L({type:e,selectors:[["sh-toggle"]],ngContentSelectors:ee,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(i,s){i&1&&(W(),B(0,"div",0),_e(1,"div",1),q(),y(2))},encapsulation:2,changeDetection:0});let t=e;return t})();var go=(()=>{let e=class e{constructor(){this.filesOver=N(!1),this.filesDropped=ue()}onDragOver(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!0)}onDragLeave(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!1)}ondrop(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!1);let i=n.dataTransfer?.files;i&&i.length>0&&this.filesDropped.emit(i)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=ke({type:e,selectors:[["","shDragDrop",""]],hostVars:2,hostBindings:function(i,s){i&1&&X("dragover",function(p){return s.onDragOver(p)})("dragleave",function(p){return s.onDragLeave(p)})("drop",function(p){return s.ondrop(p)}),i&2&&z("filesover",s.filesOver())},outputs:{filesDropped:"filesDropped"}});let t=e;return t})();var wn=(()=>{var e,o,n;let i=class i{constructor(){O(this,e);O(this,o);O(this,n);this.positionAnchorName=w.required(),this.anchorEl=w.required(),this.isOpen=w(!1),M(this,e,V(K)),M(this,o,V(be)),M(this,n,null),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc"),this.isBelow=N(!1),this.openEffect=Y(()=>{this.isOpen()?setTimeout(()=>{f(this,e).nativeElement.showPopover(),this.calculateTooltipPosition()}):f(this,e).nativeElement.hidePopover()}),this.calculateTooltipPosition=()=>{if(!this.anchorEl())return;let h=this.anchorEl().nativeElement.getBoundingClientRect(),p=f(this,e).nativeElement,a=p.getBoundingClientRect();if(a.width===0&&a.height===0)return;let r=h.top-a.height<0;if(this.isBelow.set(r),!this.SUPPORTS_ANCHOR){let d=h.top-a.height,C=h.left+h.width/2-a.width/2;r&&(d=h.top+h.height),C+a.width>window?.innerWidth&&(C=h.right-a.width/2),C<0&&(C=-(a.width/2)),f(this,o).setStyle(p,"left",`${C}px`),f(this,o).setStyle(p,"top",`${d}px`),f(this,o).setStyle(p,"position","fixed")}},je(()=>{M(this,n,new AbortController);let h={signal:f(this,n).signal,capture:!0};window?.addEventListener("scroll",this.calculateTooltipPosition,h),window?.addEventListener("resize",this.calculateTooltipPosition,{signal:f(this,n).signal}),setTimeout(()=>this.calculateTooltipPosition())})}ngOnDestroy(){f(this,n)?.abort()}};e=new WeakMap,o=new WeakMap,n=new WeakMap,i.\u0275fac=function(p){return new(p||i)},i.\u0275cmp=L({type:i,selectors:[["ship-tooltip-wrapper"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(p,a){p&2&&(ye("popover","auto"),ne("position-anchor",a.positionAnchorName()),z("below",a.isBelow()))},inputs:{positionAnchorName:[1,"positionAnchorName"],anchorEl:[1,"anchorEl"],isOpen:[1,"isOpen"]},ngContentSelectors:ee,decls:2,vars:0,consts:[[1,"tooltip-content"]],template:function(p,a){p&1&&(W(),B(0,"div",0),y(1),q())},encapsulation:2});let t=i;return t})(),mo=(()=>{var e,o,n,i,s,h;let p=class p{constructor(){O(this,e);O(this,o);O(this,n);O(this,i);O(this,s);O(this,h);this.shTooltip=w.required(),M(this,e,V(K)),M(this,o,V(ut)),M(this,n,V(lt)),M(this,i,V(be)),M(this,s,null),M(this,h,null),this.anchorName=`--${Ae()}`,this.isOpen=N(!1)}onMouseEnter(){this.cleanupTooltip(),queueMicrotask(()=>this.showTooltip())}ngOnDestroy(){this.cleanupTooltip()}showTooltip(){if(f(this,s)||!this.shTooltip())return;this.isOpen.set(!0);let r,d=this.shTooltip();if(typeof d=="string")r=[[f(this,i).createText(d)]];else if(d instanceof Ie)M(this,h,d.createEmbeddedView({})),f(this,h).detectChanges(),r=[f(this,h).rootNodes];else return;M(this,s,f(this,o).createComponent(wn,{environmentInjector:f(this,n),projectableNodes:r})),f(this,s).setInput("positionAnchorName",this.anchorName),f(this,s).setInput("anchorEl",f(this,e)),f(this,s).setInput("isOpen",this.isOpen),f(this,s).changeDetectorRef.detectChanges()}cleanupTooltip(){this.isOpen.set(!1),f(this,s)&&(f(this,s).destroy(),M(this,s,null)),f(this,h)&&(f(this,h).destroy(),M(this,h,null))}};e=new WeakMap,o=new WeakMap,n=new WeakMap,i=new WeakMap,s=new WeakMap,h=new WeakMap,p.\u0275fac=function(d){return new(d||p)},p.\u0275dir=ke({type:p,selectors:[["","shTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:4,hostBindings:function(d,C){d&1&&X("mouseenter",function(){return C.onMouseEnter()}),d&2&&(ne("anchor-name",C.anchorName),z("active",C.isOpen()))},inputs:{shTooltip:[1,"shTooltip"]}});let t=p;return t})();export{De as a,Gn as b,Kn as c,vn as d,Zn as e,Jn as f,eo as g,to as h,Cn as i,_n as j,bn as k,ot as l,io as m,no as n,oo as o,yn as p,so as q,ro as r,xn as s,ao as t,lo as u,co as v,po as w,En as x,uo as y,ho as z,fo as A,go as B,mo as C};
|
package/chunk-HI4XLHO3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-TDKBGGNK.js";import"./chunk-RUXCS4ZK.js";import"./chunk-FPPZ4BUR.js";import"./chunk-6OPAGPKF.js";import"./chunk-HNWRQABR.js";import"./chunk-EUDKD2JW.js";export{a as RelativeTimePipe};
|