@duplicati/ngclient 0.0.162 → 0.0.164

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.
Files changed (171) hide show
  1. package/assets/images/console.avif +0 -0
  2. package/chunk-2CWLIRUP.js +1 -0
  3. package/chunk-2DP4QU4T.js +1 -0
  4. package/chunk-2QT6CZNW.js +1 -0
  5. package/chunk-2VOU6SHS.js +1 -0
  6. package/chunk-35KH4G7Y.js +1 -0
  7. package/chunk-35ZUPRX7.js +1 -0
  8. package/chunk-465L4ZG5.js +1 -0
  9. package/chunk-4GY6ZWN5.js +1 -0
  10. package/{chunk-Z7WHLTVV.js → chunk-4VZNWPWO.js} +1 -1
  11. package/chunk-4Z72AON4.js +1 -0
  12. package/{chunk-YCORZV4Z.js → chunk-5KMPTDRJ.js} +1 -1
  13. package/chunk-5RQDJUIT.js +1 -0
  14. package/chunk-732GPC5D.js +1 -0
  15. package/chunk-75C77QFK.js +1 -0
  16. package/{chunk-NYILY6CE.js → chunk-7XXYLQEN.js} +3 -3
  17. package/chunk-ACZQPL4M.js +1 -0
  18. package/{chunk-5LX6M65H.js → chunk-AE7T2DAH.js} +1 -1
  19. package/{chunk-JYWOYPSQ.js → chunk-AT6BXXSP.js} +1 -1
  20. package/chunk-ATGKEH5N.js +2 -0
  21. package/{chunk-4VY6SMSL.js → chunk-AWXWGD4T.js} +1 -1
  22. package/chunk-CENUQU54.js +2 -0
  23. package/chunk-CZRQ3GX6.js +1 -0
  24. package/chunk-D3LEV6WL.js +1 -0
  25. package/chunk-D7OP5FPA.js +2 -0
  26. package/chunk-DF6VTK4B.js +1 -0
  27. package/{chunk-NSAY2K7E.js → chunk-DQAT6VCF.js} +1 -1
  28. package/chunk-DY4NXNVS.js +1 -0
  29. package/chunk-E3KF5SRU.js +2 -0
  30. package/chunk-E5E5ASXG.js +1 -0
  31. package/chunk-E6DCTQ34.js +1 -0
  32. package/chunk-EOKEY2WO.js +1 -0
  33. package/chunk-EUVXYJ2O.js +1 -0
  34. package/chunk-EVJEPFC6.js +1 -0
  35. package/{chunk-I2LW33GO.js → chunk-GNJTDWT4.js} +1 -1
  36. package/chunk-GOFRTODH.js +1 -0
  37. package/chunk-H3W2UQY2.js +1 -0
  38. package/chunk-H4H72SDD.js +1 -0
  39. package/{chunk-LN26XMBJ.js → chunk-HVB6ARTT.js} +1 -1
  40. package/chunk-IFCA5KWR.js +1 -0
  41. package/{chunk-K2BANUEJ.js → chunk-IKPQDSQK.js} +1 -1
  42. package/{chunk-YJPY33RI.js → chunk-ISCGGOPN.js} +1 -1
  43. package/chunk-J34TTKLN.js +1 -0
  44. package/chunk-JPRQYGHQ.js +1 -0
  45. package/chunk-K6IL54XE.js +1 -0
  46. package/chunk-LH6XLRJU.js +1 -0
  47. package/chunk-MCOUCF6F.js +1 -0
  48. package/{chunk-H7ZKBS2Q.js → chunk-MPQNBRD5.js} +1 -1
  49. package/chunk-MSASOFXF.js +1 -0
  50. package/chunk-NFIJYWQI.js +1 -0
  51. package/chunk-NME5JWZN.js +1 -0
  52. package/{chunk-5ZSBXGHQ.js → chunk-NXROYR6L.js} +1 -1
  53. package/chunk-NZDZUPC5.js +1 -0
  54. package/chunk-O5W6EGCB.js +1 -0
  55. package/{chunk-XXVFRNSP.js → chunk-OHP7HLY2.js} +1 -1
  56. package/chunk-PIMTQKQK.js +1 -0
  57. package/{chunk-SR4YENFS.js → chunk-PKK4MIRQ.js} +1 -1
  58. package/{chunk-MHPSC3FM.js → chunk-POJT4MSX.js} +1 -1
  59. package/{chunk-3V4DGTSM.js → chunk-QBHHGHBJ.js} +1 -1
  60. package/chunk-QMHLXETS.js +3 -0
  61. package/{chunk-GXGIGJ4W.js → chunk-RIX6H2ZX.js} +1 -1
  62. package/chunk-RNWKZDZM.js +1 -0
  63. package/chunk-RPJFKWMV.js +2 -0
  64. package/chunk-SVQCV5AE.js +1 -0
  65. package/chunk-SXFSAK5L.js +1 -0
  66. package/chunk-TBTQMBCJ.js +1 -0
  67. package/chunk-TC7HZO7D.js +1 -0
  68. package/chunk-TGNUULAU.js +1 -0
  69. package/chunk-URAI6X74.js +1 -0
  70. package/{chunk-Z35OG2DV.js → chunk-VCLWADQK.js} +1 -1
  71. package/chunk-VEON764K.js +1 -0
  72. package/chunk-VNGJCKGG.js +1 -0
  73. package/chunk-W2SSWLYM.js +1 -0
  74. package/chunk-W4KOKNGU.js +1 -0
  75. package/{chunk-Z27IQRKV.js → chunk-WJDMMKWE.js} +1 -1
  76. package/chunk-WZAZENJC.js +1 -0
  77. package/chunk-X4KK6R3X.js +1 -0
  78. package/chunk-X5BOJXMC.js +1 -0
  79. package/chunk-XKKT2NP5.js +1 -0
  80. package/chunk-XRI2BFC2.js +2 -0
  81. package/{chunk-S4OFJD2F.js → chunk-XTFTWEJS.js} +1 -1
  82. package/{chunk-ABYM5HWA.js → chunk-XUN5TTJC.js} +1 -1
  83. package/chunk-Y4GDUNWN.js +1 -0
  84. package/chunk-Z34TVTJN.js +1 -0
  85. package/chunk-Z4MDYLVI.js +1 -0
  86. package/chunk-Z5W4ULWF.js +1 -0
  87. package/chunk-ZBK64QS2.js +4 -0
  88. package/chunk-ZLLXHZQV.js +1 -0
  89. package/index.html +2 -2
  90. package/locale/messages.cs.json +4 -3
  91. package/locale/messages.da.json +4 -3
  92. package/locale/messages.de.json +59 -54
  93. package/locale/messages.en_GB.json +4 -3
  94. package/locale/messages.es.json +4 -3
  95. package/locale/messages.fr.json +4 -3
  96. package/locale/messages.it.json +34 -28
  97. package/locale/messages.ja_JP.json +4 -4
  98. package/locale/messages.nl_NL.json +188 -18
  99. package/locale/messages.pl.json +7 -10
  100. package/locale/messages.pt.json +4 -3
  101. package/locale/messages.pt_BR.json +4 -3
  102. package/locale/messages.ru.json +4 -3
  103. package/locale/messages.sr_RS.json +4 -3
  104. package/locale/messages.sv_SE.json +4 -3
  105. package/locale/messages.zh-Hans.json +302 -25
  106. package/locale/messages.zh_CN.json +299 -24
  107. package/locale/messages.zh_TW.json +5 -3
  108. package/main-75X3EGHT.js +1 -0
  109. package/package.json +1 -1
  110. package/styles-JSM72RCO.css +1 -0
  111. package/chunk-2KU5X7TN.js +0 -1
  112. package/chunk-2MIEBBFN.js +0 -1
  113. package/chunk-2YGOHGD2.js +0 -1
  114. package/chunk-4FWCJIJ4.js +0 -1
  115. package/chunk-4KEA3KF7.js +0 -1
  116. package/chunk-4NOWNXOS.js +0 -1
  117. package/chunk-5CTM5KYC.js +0 -1
  118. package/chunk-5MWPORZW.js +0 -1
  119. package/chunk-6XI3IP27.js +0 -1
  120. package/chunk-7U37G3C3.js +0 -1
  121. package/chunk-AUR4SBGD.js +0 -1
  122. package/chunk-AVTEJPQ4.js +0 -1
  123. package/chunk-B32YSHV5.js +0 -1
  124. package/chunk-BB5RQS6P.js +0 -1
  125. package/chunk-BF2IYOUB.js +0 -1
  126. package/chunk-BK2MSH26.js +0 -1
  127. package/chunk-BNUMPQFL.js +0 -1
  128. package/chunk-BZ2XGEV5.js +0 -2
  129. package/chunk-CATZTYW5.js +0 -1
  130. package/chunk-CSL7HCLZ.js +0 -2
  131. package/chunk-CTAP3SAA.js +0 -1
  132. package/chunk-D4PLSKJA.js +0 -1
  133. package/chunk-DJQOPNQJ.js +0 -1
  134. package/chunk-DRNYRWHF.js +0 -1
  135. package/chunk-DUCPSWRQ.js +0 -1
  136. package/chunk-E6H2XELA.js +0 -2
  137. package/chunk-F5Z5ZAIL.js +0 -1
  138. package/chunk-FIOBQPE7.js +0 -1
  139. package/chunk-FSG362SU.js +0 -2
  140. package/chunk-FYTYEGRJ.js +0 -3
  141. package/chunk-G6VJHFTW.js +0 -1
  142. package/chunk-GMUNZKVL.js +0 -1
  143. package/chunk-H44BDPZE.js +0 -1
  144. package/chunk-HHU5JW5J.js +0 -1
  145. package/chunk-HYQ6MPYI.js +0 -1
  146. package/chunk-IUK3B6GX.js +0 -1
  147. package/chunk-KK24REOX.js +0 -1
  148. package/chunk-KXJZEADJ.js +0 -1
  149. package/chunk-M7QQEZOU.js +0 -1
  150. package/chunk-MGB2HZP6.js +0 -1
  151. package/chunk-OJ3H3ZRA.js +0 -2
  152. package/chunk-PB6FTE7O.js +0 -1
  153. package/chunk-PXDRFPNP.js +0 -1
  154. package/chunk-QF5WMLMJ.js +0 -1
  155. package/chunk-QONLYWYC.js +0 -4
  156. package/chunk-RPUPXDQE.js +0 -1
  157. package/chunk-SPMSFKWG.js +0 -1
  158. package/chunk-SWAQMTBY.js +0 -1
  159. package/chunk-TI6AQ6OL.js +0 -1
  160. package/chunk-U3Q7TTKT.js +0 -1
  161. package/chunk-U562AGPC.js +0 -1
  162. package/chunk-U7GOWS7E.js +0 -1
  163. package/chunk-UCS5RU7N.js +0 -1
  164. package/chunk-WBPAKJQO.js +0 -1
  165. package/chunk-WNJSKJGQ.js +0 -1
  166. package/chunk-XZDYDGZ7.js +0 -1
  167. package/chunk-YPJRYB54.js +0 -2
  168. package/chunk-YYJFEUNT.js +0 -1
  169. package/chunk-Z6M25FYI.js +0 -1
  170. package/main-IH6ESA7A.js +0 -1
  171. package/styles-FD7LUDV4.css +0 -1
@@ -0,0 +1 @@
1
+ import{a as K}from"./chunk-75C77QFK.js";import"./chunk-4Z72AON4.js";import"./chunk-6Q6SSTBK.js";import{a as z}from"./chunk-QBHHGHBJ.js";import"./chunk-AE7T2DAH.js";import"./chunk-XTFTWEJS.js";import"./chunk-SVQCV5AE.js";import{b as J}from"./chunk-TC7HZO7D.js";import{B as U,G as x,H as V,V as j,b as E,c as A,e as R,f as b,j as y,o as B,q as $,r as v,t as G,u as k,x as L,z as w}from"./chunk-TGNUULAU.js";import{d as O,e as M}from"./chunk-XUN5TTJC.js";import"./chunk-VCLWADQK.js";import"./chunk-ATGKEH5N.js";import"./chunk-NXROYR6L.js";import"./chunk-FPPZ4BUR.js";import{Bc as N,Cb as p,Db as a,Eb as i,Fb as u,H as g,Sa as l,Tb as D,Ub as h,Vb as _,Yb as I,Zb as d,_ as s,cb as f,kc as P,pa as c,xb as C,yb as S}from"./chunk-ZBK64QS2.js";import"./chunk-EUDKD2JW.js";var X=()=>["/"];function H(m,o){m&1&&(a(0,"sh-form-field")(1,"label",14),_(2,3),i(),u(3,"input",15),i())}var F=new v,T=class m{#t=s(L);#o=s(w);#i=s(J);#n=s(K);#e=s(O);isImporting=c(!1);isSecureFile=c(!1);isValid=c(!1);importForm=F.group({config:F.control(""),cmdline:F.control(!1),import_metadata:F.control(!1),direct:F.control(!1),passphrase:F.control("")});selectedFile=c([]);onFileDropped(o){let e=o[0];if(e){let t=new FileReader;this.isSecureFile.set(e.type!=="application/json"),t.onload=this.#r.bind(this),t.readAsArrayBuffer(e)}}#r(o){let e=o.target?.result;this.isSecureFile.set(this.#a(e)!=="json"),this.importForm.patchValue({config:this.#s(e)}),this.isValid.set(this.importForm.value.config!=="")}#a(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),n=JSON.parse(t);if(typeof n=="object"&&n!==null)return"json"}catch{}return"unknown"}#s(o){let e=new Uint8Array(o),t=e.byteLength,n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return btoa(n)}submit(){this.isImporting.set(!0);let o=this.importForm.value.direct??!1;this.#i.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(g(()=>this.isImporting.set(!1))).subscribe({next:e=>{if(o){this.#t.success("Backup imported successfully."),this.#e.navigate(["/"]);return}let t=this.#n.addDraftBackup(e.data);this.#e.navigate(["/backup-draft",t])},error:e=>{let t=e.message||$localize`Unknown error`;this.#o.open(z,{data:{title:$localize`Failed to import backup`,message:t,confirmText:$localize`OK`,cancelText:void 0}})}})}static \u0275fac=function(e){return new(e||m)};static \u0275cmp=f({type:m,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 n;return n=$localize`Passphrase`,[o,e,t,n,[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"),D(2,0),a(3,"div",4)(4,"button",5),u(5,"sh-icon"),i(),a(6,"button",6),d("click",function(){return t.submit()}),u(7,"sh-icon"),i()(),h(),i()(),a(8,"form",7)(9,"sh-file-upload",8),d("filesChange",function(r){return t.onFileDropped(r)}),i(),C(10,H,4,0,"sh-form-field"),a(11,"sh-toggle",9)(12,"label",10),_(13,1),i(),u(14,"input",11),i(),a(15,"sh-toggle",9)(16,"label",12),_(17,2),i(),u(18,"input",13),i()()),e&2&&(l(4),p("routerLink",N(7,X)),l(2),P("loader",t.isImporting()),p("disabled",t.isImporting()||!t.isValid()),l(2),p("formGroup",t.importForm),l(),p("files",t.selectedFile()),l(),S(t.isSecureFile()?10:-1))},dependencies:[G,y,A,E,R,b,B,$,M,x,k,U,j,V],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{T as default};
@@ -0,0 +1,2 @@
1
+ import{b as P}from"./chunk-TC7HZO7D.js";import"./chunk-ATGKEH5N.js";import"./chunk-FPPZ4BUR.js";import{$b as L,Ab as v,Bb as b,Gb as o,H as p,Hb as i,Rc as x,Sa as s,V as h,_ as r,cb as u,jc as E,nc as a,oc as M,pa as c,xb as f,yb as C,zb as _}from"./chunk-ZBK64QS2.js";import"./chunk-EUDKD2JW.js";var l=class e{#e=r(P);isLoaded=c(!1);crashLog=c(null);load(){this.isLoaded()||this.#e.getApiV1LogdataCrashlog().pipe(p(()=>this.isLoaded.set(!0))).subscribe({next:t=>{this.crashLog.set(t.Logdata??null)}})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})};function O(e,t){e&1&&(o(0,"div",0),a(1,"Loading ..."),i())}function S(e,t){e&1&&(o(0,"div",0),a(1,"No crash log found"),i())}function w(e,t){if(e&1&&(o(0,"li"),a(1),i()),e&2){let n=t.$implicit;s(),M(n)}}function D(e,t){if(e&1&&(o(0,"div",2)(1,"code")(2,"ol",3),v(3,w,2,1,"li",null,_),i()()()),e&2){let n=L();E("grid-column","1 / -1")("height","auto"),s(3),b(n.breakIntoLines(n.crashLog()))}}var g=class e{#e=r(l);logsLoading=x(()=>!this.#e.isLoaded());crashLog=this.#e.crashLog;ngOnInit(){this.#e.load()}breakIntoLines(t){return t?t.split(`
2
+ `):[]}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=u({type:e,selectors:[["app-crashlogs"]],decls:5,vars:1,consts:[[1,"loading"],[2,"white-space","pre-wrap",3,"grid-column","height"],[2,"white-space","pre-wrap"],[1,"line-numbers-ol"]],template:function(n,d){if(n&1&&(o(0,"h3"),a(1,"Crash log"),i(),f(2,O,2,0,"div",0)(3,S,2,0,"div",0)(4,D,5,4,"div",1)),n&2){let m;s(2),C(d.logsLoading()?2:d.crashLog()==null||((m=d.crashLog())==null?null:m.length)===0?3:4)}},styles:["[_nghost-%COMP%]{display:block;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}sh-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{g as default};
@@ -0,0 +1 @@
1
+ import{b}from"./chunk-TC7HZO7D.js";import{d as T}from"./chunk-XUN5TTJC.js";import{a as P,d as O}from"./chunk-ATGKEH5N.js";import{Aa as o,za as y}from"./chunk-NXROYR6L.js";import{B as A,F as l,H as N,R as g,V as a,_ as i,f as I,k as S,n as E,pa as n,r as R,za as v}from"./chunk-ZBK64QS2.js";var c=class r{platformId=i(v);STORAGE_VERSION="v1";APP_NAME="duplicati";PERSISTED_PREFIX="persist:";getItemParsed(e,t=!1){return o(this.platformId)?null:JSON.parse(localStorage.getItem(`${this.STORAGE_VERSION}:${t?this.PERSISTED_PREFIX:""}${this.APP_NAME}:${e}`)??"null")}setItemParsed(e,t,s=!1){if(!o(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${s?this.PERSISTED_PREFIX:""}${this.APP_NAME}:${e}`,JSON.stringify(t))}get length(){return y(this.platformId)?localStorage.length:0}getItem(e){return o(this.platformId)?null:localStorage.getItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${e}`)??null}setItem(e,t){if(!o(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${e}`,t)}removeItem(e){o(this.platformId)||(localStorage.removeItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${e}`),localStorage.removeItem(`${this.STORAGE_VERSION}:${this.PERSISTED_PREFIX}${this.APP_NAME}:${e}`))}clearAllNotCurrentVersion(){if(!o(this.platformId))for(var e in localStorage)!e.startsWith(this.STORAGE_VERSION)&&e.includes(this.APP_NAME)&&localStorage.removeItem(e)}clearAll(){o(this.platformId)||localStorage.clear()}clear(){if(!o(this.platformId))for(var e in localStorage)e.includes(this.APP_NAME)&&!e.includes(this.PERSISTED_PREFIX)&&localStorage.removeItem(e)}key(e){return o(this.platformId)?null:localStorage.key(e)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=a({token:r,factory:r.\u0275fac})};var f=class r{#i=i(c);#r=n(null);#t=window.self!==window.top;#s=n(this.#t);relayIsEnabled=this.#s.asReadonly();config=this.#r.asReadonly();configLoaded=this.#t?new S:null;isLoading=n(this.#t);parentIframeListner=null;parentOrigin="*";fetchConfig(){this.#o(),this.#t&&(this.#s.set(!0),this.parentIframeListner=new AbortController,this.#e("connected"),window.addEventListener("message",e=>{if(e.data.startsWith("access:")){let t=e.data.replace("access:",""),s=JSON.parse(t);if(!s?.accessToken||!s?.clientId){this.#e("error:invalid-config"),this.#s.set(!1);return}if(typeof s.clientId!="string"){this.#e("error:invalid-config"),this.#s.set(!1);return}if(typeof s.accessToken!="string"){this.#e("error:invalid-config"),this.#s.set(!1);return}let m=this.#i.getItem("locale")??"en-US",p=s.locale??"en-US";m!==p&&(this.#i.setItem("locale",p),window.location.reload()),this.#r.set(s),this.configLoaded?.next(!0),this.isLoading.set(!1),this.#e("handshake-complete")}},{signal:this.parentIframeListner.signal}))}#e(e){window.parent.postMessage(e,"*")}#o(){this.parentIframeListner&&(this.parentIframeListner.abort(),this.parentIframeListner=null)}setConfig(e){this.#r.set(e)}clearConfig(){this.#r.set(null)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=a({token:r,factory:r.\u0275fac,providedIn:"root"})};var u="PROXY_AUTHED_FAKE_TOKEN",h="refreshNonce",d="v1:persist:duplicati:refreshNonce",L=class r{#i=i(T);#r=i(O);#t=i(b);#s=i(f);#e=n(null);#o=n(!1);token=this.#e.asReadonly();isLoggingOut=this.#o.asReadonly();setRefreshNonce(e,t){if(!e){sessionStorage.removeItem(h);return}t?localStorage.setItem(d,e||""):sessionStorage.setItem(h,e||"")}getRefreshNonceBody(){let e=sessionStorage.getItem(h),t=localStorage.getItem(d),s=e||t;return{requestBody:s?{requestBody:{Nonce:s}}:void 0,local:s===t}}login(e,t){return this.#t.postApiV1AuthLogin({requestBody:{Password:e,RememberMe:t}}).pipe(l(1),g(s=>{s.AccessToken?(this.#e.set(s.AccessToken),this.setRefreshNonce(s.RefreshNonce,t)):this.#e.set(null)}))}refreshToken(){if(this.#s.relayIsEnabled())return this.#e.set(u),new I(s=>{s.next({AccessToken:u}),s.complete()});let{requestBody:e,local:t}=this.getRefreshNonceBody();return this.#t.postApiV1AuthRefresh(e).pipe(l(1),g(s=>{s.AccessToken&&(this.#e.set(s.AccessToken),this.setRefreshNonce(s.RefreshNonce,t))}))}checkProxyAuthed(){let e=new P({"custom-proxy-check":"true"});return this.#r.get("/api/v1/systeminfo",{headers:e}).pipe(R(()=>(this.#e.set(u),!0)),A(()=>E(!1)))}logout(){this.#o.set(!0);let{requestBody:e,local:t}=this.getRefreshNonceBody();sessionStorage.removeItem(h),t&&localStorage.removeItem(d),this.#t.postApiV1AuthRefreshLogout(e).pipe(l(1),N(()=>{this.#o.set(!1),this.#e.set(null),this.#i.navigate(["/login"])})).subscribe()}static \u0275fac=function(t){return new(t||r)};static \u0275prov=a({token:r,factory:r.\u0275fac,providedIn:"root"})};export{c as a,f as b,u as c,L as d};
@@ -0,0 +1 @@
1
+ import{a as Ue}from"./chunk-XRI2BFC2.js";import{a as Ye}from"./chunk-5KMPTDRJ.js";import{d as se}from"./chunk-2DP4QU4T.js";import{a as Xe}from"./chunk-4Z72AON4.js";import{a as Je}from"./chunk-HVB6ARTT.js";import{b as _e}from"./chunk-WJDMMKWE.js";import{a as L}from"./chunk-QBHHGHBJ.js";import{a as U}from"./chunk-AE7T2DAH.js";import{b as Y}from"./chunk-TC7HZO7D.js";import{B as X,G as we,K as Be,L as xe,O as Ve,U as We,V as ze,b as ve,c as G,e as k,f as w,i as Ae,j as B,l as Ge,o as x,q as V,r as W,s as ke,t as z,u as J,z as ne}from"./chunk-TGNUULAU.js";import{b as h,d as R}from"./chunk-XUN5TTJC.js";import{la as oe}from"./chunk-NXROYR6L.js";import{$b as v,Ac as ye,B as Oe,Bc as be,Cb as T,Db as r,Eb as l,F as j,Fb as c,Gc as ae,H as O,Hc as $e,Ic as De,Jb as $,Kb as D,L as Ce,Mb as q,P as Ne,Q as Z,Rc as le,Sa as d,Sc as A,Tb as S,Ub as g,V as fe,Vb as E,Wb as Re,Xb as Pe,Zb as C,_,cb as M,ea as N,fa as f,hb as he,i as Ee,kc as Ie,nc as K,o as me,pa as p,pc as Le,qc as Me,sc as ee,tc as te,uc as ie,x as re,xb as y,y as Fe,yb as b}from"./chunk-ZBK64QS2.js";var He=new W,Ke=()=>He.group({passphrase:He.control("")}),pe=class a{#t=_(Y);#e=_(P);#n=_(R);#o=_(h);encryptionForm=this.#e.encryptionForm;creatingTemporaryBackup=p(!1);settings=p([]);next(){let i=this.#e.destinationTargetUrl();if(!i)throw new Error("No target URL");this.creatingTemporaryBackup.set(!0);let e=this.encryptionForm.value?.passphrase??null,t=[];e?t.push({Name:"--passphrase",Value:e}):t.push({Name:"--no-encryption",Value:"true"}),this.settings().forEach(o=>{let n=o.Name?.trim();n&&n!=="--"&&(n.startsWith("--")||(n=`--${n}`),t.push({Name:n,Value:o.Value??""}))}),this.#t.postApiV1Backups({requestBody:{Backup:{TargetURL:i,Settings:t}},temporary:!0}).pipe(O(()=>this.creatingTemporaryBackup.set(!1))).subscribe({next:o=>{let n=o.ID;this.#n.navigate([`/restore-draft/${n}`])},error:o=>{console.error(o)}})}back(){this.#e.isFileRestore()?this.#n.navigate(["destination"],{relativeTo:this.#o.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=M({type:a,selectors:[["app-restore-encryption"]],decls:16,vars:3,consts:()=>{let i;i=$localize`Enter backup passphrase if defined.`;let e;e=$localize`Password`;let t;t=$localize`Advanced options`;let o;o=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let n;return n=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `,[e,t,o,n,[3,"submit","formGroup"],["for","password"],["type","password","id","password","placeholder",i,"formControlName","passphrase"],["title",""],[3,"optionsChange","options","hasFreeTextSettings"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary"]]},template:function(e,t){e&1&&(r(0,"form",4),C("submit",function(){return t.next()}),r(1,"sh-form-field")(2,"label",5),E(3,0),l(),c(4,"input",6),l(),r(5,"sh-toggle-card"),$(6,7),E(7,1),D(),r(8,"app-options-list",8),ie("optionsChange",function(n){return te(t.settings,n)||(t.settings=n),n}),l()(),r(9,"div",9)(10,"button",10),C("click",function(){return t.back()}),S(11,2),c(12,"sh-icon"),g(),l(),r(13,"button",11),S(14,3),c(15,"sh-icon"),g(),l()()()),e&2&&(T("formGroup",t.encryptionForm),d(8),ee("options",t.settings),T("hasFreeTextSettings",!0))},dependencies:[z,B,G,k,w,x,V,we,J,X,We,Ue],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var et=()=>({standalone:!0});function tt(a,i){a&1&&c(0,"sh-progress-bar",8)}function it(a,i){if(a&1&&(K(0),ae(1,"bytes")),a&2){let e=v().$implicit;Le(" (",$e(1,1,e.FileSizes),") ")}}function ot(a,i){a&1&&(r(0,"span",16),E(1,4),l())}function nt(a,i){if(a&1&&(r(0,"div",15),K(1),ae(2,"date"),y(3,it,2,3),y(4,ot,2,0,"span",16),l()),a&2){let e=i.$implicit;d(),Me(" ",e.Version,": ",De(2,4,e.Time,"medium")," "),d(2),b(e.FileSizes?3:-1),d(),b(e.IsFullBackup===!1?4:-1)}}function st(a,i){a&1&&c(0,"sh-progress-bar",8)}function rt(a,i){if(a&1&&(r(0,"app-file-tree",14)(1,"label",17),E(2,5),l(),c(3,"input",18),l()),a&2){let e=v(2);T("rootPaths",e.rootPaths())("initialNodes",e.initialNodes())("backupSettings",e.backupSettings())("multiSelect",!0)("showFiles",!0)}}function at(a,i){if(a&1){let e=q();r(0,"sh-select",12),C("cleared",function(){N(e);let o=v();return f(o.abortLoading())}),r(1,"input",13),ie("ngModelChange",function(o){N(e);let n=v();return te(n.selectOption,o)||(n.selectOption=o),f(o)}),l(),he(2,nt,5,7,"ng-template"),l(),y(3,st,1,0,"sh-progress-bar",8),y(4,rt,4,5,"app-file-tree",14)}if(a&2){let e=v();T("options",e.versionOptions())("isClearable",!1),d(),ee("ngModel",e.selectOption),T("ngModelOptions",be(6,et)),d(2),b(e.isRepairing()||e.versionOptionsLoading()||e.loadingRootPath()?3:-1),d(),b(e.showFileTree()?4:-1)}}var ue=new W,Qe=()=>ue.group({filesToRestore:ue.control(""),passphrase:ue.control(null)}),de=class a{#t=_(Y);#e=_(P);#n=_(Xe);#o=_(U);#i=_(R);#s=_(h);#l=_(oe);#a=null;#_=null;#r=p([]);selectFilesForm=this.#e.selectFilesForm;selectFilesFormSignal=this.#e.selectFilesFormSignal;selectOption=this.#e.selectOption;backupId=this.#e.backupId;versionOptionsLoading=this.#e.versionOptionsLoading;versionOptions=this.#e.versionOptions;isFileRestore=this.#e.isFileRestore;needsDatabaseRepair=le(()=>this.#e.backup()?.Backup?.IsTemporary??!0);showFileTree=p(!1);backupSettings=p(null);rootPaths=p([]);initialNodes=p([]);loadingRootPath=p(!1);isRepairing=le(()=>this.#r().length>0);loadedVersions=p({});loadingEffect=A(()=>{if(this.versionOptionsLoading())return;let e=this.versionOptions();if(e&&e?.length>0){let t=e[0].Version;this.selectOption.set(t.toString())}});backupSettingsEffect=A(()=>{let i=this.backupId(),e=this.selectOption(),t=this.isRepairing(),o=this.loadedVersions();if(!e||!i)return;let s=this.versionOptions()?.find(Q=>Q.Version===parseInt(e))?.Time??null;if(!s)return;let u=`${i}+${s}`,F=o[u];if(this.needsDatabaseRepair()&&(!F||t))return;let I={id:i+"",time:s};this.backupSettings.set(I),this.getRootPath(I)});repairEffect=A(()=>{if(!this.needsDatabaseRepair())return;let i=this.selectOption(),e=this.versionOptions();if(i){let t=e.find(s=>s.Version===parseInt(i));if(t===void 0)return;let o=this.backupId(),n=`${o}+${t.Time}`;if(this.#_===n||(this.#_=n,this.#r().includes(n)))return;this.#r.update(s=>[...s,n]),this.#t.postApiV1BackupByIdRepairupdate({id:o,requestBody:{only_paths:!0,time:t.Time}}).pipe(Z(this.abortLoading$),O(()=>{this.#_=null})).subscribe(s=>{let u=s.ID;this.#n.waitForTaskToComplete(u).pipe(j(1)).subscribe(()=>{this.#r.update(F=>F.filter(I=>I!==n)),this.loadedVersions.update(F=>(F[n]=!0,F))})})}});getRootPath(i){let e={id:i.id+"",time:i.time,prefixOnly:!0,folderContents:!1},t=i.id+"";this.isRepairing()||this.#a===t||(this.#a=t,this.loadingRootPath.set(!0),this.showFileTree.set(!1),this.#o.hasV2ListOperations()?this.#t.postApiV2BackupListFolder({requestBody:{BackupId:i.id,Time:i.time,Paths:null,PageSize:0,Page:0}}).pipe(Z(this.abortLoading$),O(()=>{this.showFileTree.set(!0),this.loadingRootPath.set(!1),this.#a=null})).subscribe({next:o=>{let n=(o.Data??[]).map(s=>s.Path??"");n.length>0?(this.initialNodes.set([]),this.rootPaths.set(n)):(this.initialNodes.set([]),this.rootPaths.set(["/"]))}}):this.#t.getApiV1BackupByIdFiles(e).pipe(Z(this.abortLoading$),O(()=>{this.showFileTree.set(!0),this.loadingRootPath.set(!1)})).subscribe({next:o=>{let n=o.Files.map(s=>s.Path??"");n.length>0?(this.initialNodes.set([]),this.rootPaths.set(n)):(this.initialNodes.set([]),this.rootPaths.set(["/"]))}}))}abortLoading$=new Ee;abortLoading(){this.showFileTree.set(!1),this.loadingRootPath.set(!1),this.abortLoading$.next(!0)}displayFn(){let i=this.versionOptions();return e=>{if(!e)return"";let t=i?.find(o=>typeof o.Version=="number"&&o.Version.toString()===e);return t?`${t.Version}: ${this.#l.transform(t.Time,"medium")}`:""}}next(){this.#i.navigate(["options"],{relativeTo:this.#s.parent})}back(){this.#e.isFileRestore()?this.#i.navigate(["encryption"],{relativeTo:this.#s.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=M({type:a,selectors:[["app-select-files"]],features:[ye([oe])],decls:13,vars:3,consts:()=>{let i;i=$localize`Select files`;let e;e=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let t;t=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let o;o=$localize`Select an option...`;let n;n=$localize`(partial)`;let s;return s=$localize`Path`,[["formRef",""],i,e,t,n,s,[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary"],["value","Version",3,"cleared","options","isClearable"],["type","text","placeholder",o,3,"ngModelChange","ngModel","ngModelOptions"],[3,"rootPaths","initialNodes","backupSettings","multiSelect","showFiles"],[1,"custom-option"],[1,"partial"],["for","path"],["type","text","id","path","formControlName","filesToRestore"]]},template:function(e,t){if(e&1){let o=q();r(0,"form",6,0),C("submit",function(){return N(o),f(t.next())}),r(2,"h3",7),E(3,1),l(),y(4,tt,1,0,"sh-progress-bar",8)(5,at,5,7),r(6,"div",9)(7,"button",10),C("click",function(){return N(o),f(t.back())}),S(8,2),c(9,"sh-icon"),g(),l(),r(10,"button",11),S(11,3),c(12,"sh-icon"),g(),l()()()}e&2&&(T("formGroup",t.selectFilesForm),d(4),b(t.versionOptionsLoading()?4:5),d(5),Re(t.isFileRestore()?"Back":"Exit"),Pe(8))},dependencies:[ke,B,G,k,w,Ae,z,x,V,se,X,J,Ve,Be,oe,Je],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.partial[_ngcontent-%COMP%]{color:var(--base-9);font-style:italic}"],changeDetection:0})};var P=class a{#t=_(R);#e=_(h);#n=_(U);#o=_(ne);#i=_(Y);backupId=p(null);backup=p(null);destinationTargetUrl=p(null);selectFilesForm=Qe();optionsForm=Ze();encryptionForm=Ke();optionsFormSignal=_e(this.optionsForm.valueChanges);selectFilesFormSignal=_e(this.selectFilesForm.valueChanges);selectOption=p(null);versionOptionsLoading=p(!1);versionOptions=p([]);isSubmitting=p(!1);isFileRestore=p(!1);isFullWidthPage=p(!1);#s=p("");#l=p(null);#a=null;testSignal=this.#s.asReadonly();testErrorMessage=this.#l.asReadonly();#_=A(()=>{let i=this.destinationTargetUrl(),e=this.#s(),t=this.#a;this.#a=i,!(e==="testing"||t===null||t===i)&&(this.#s.set(""),this.#l.set(null))});init(i,e=!1){this.backupId.set(i),this.isFileRestore.set(e),e&&this.#t.navigate(["/restore-from-files/destination"]),e||this.getBackup()}setTestState(i,e){this.#s.set(i),this.#l.set(e??null)}updateTargetUrl(i){this.destinationTargetUrl.set(i)}submit(){this.isSubmitting.set(!0);let i=this.backupId();this.backup()?.Backup?.IsTemporary??!1?this.#i.postApiV1BackupByIdCopytotemp({id:this.backupId()??""}).subscribe({next:t=>{this.#r(t.ID??"")},error:t=>this.showErrorDialog($localize`An error occurred while copying the backup to a temporary location: ${t.message}`)}):this.#r(i??"")}showErrorDialog(i){this.#o.open(L,{data:{title:$localize`Error occured`,message:i,confirmText:$localize`OK`,cancelText:void 0},closed:e=>{}})}#r(i){let e=this.optionsForm.value,t=this.selectFilesForm.value,o=this.selectOption(),n=this.versionOptions()?.find(s=>s.Version===(o&&parseInt(o)));this.#i.postApiV1BackupByIdRestore({id:i??"",requestBody:{paths:t.filesToRestore?.split("\0").map(s=>s.endsWith("/")||s.endsWith("\\")?`${s}*`:s)??[],passphrase:t.passphrase??null,time:n?.Time,restore_path:e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!e.includeMetadata}}).pipe(O(()=>this.isSubmitting.set(!1))).subscribe({next:s=>{this.#t.navigate([`./${s.ID}`,"progress"],{relativeTo:this.#e})},error:s=>{console.error("restore error",s)}})}exit(){this.#o.open(L,{data:{title:$localize`Confirm exit?`,message:$localize`Are you sure you want to exit?`,confirmText:$localize`Yes`,cancelText:$localize`Cancel`},closed:i=>{i&&(this.#p(),this.#t.navigate(["/"]))}})}getVersionOptions(){this.versionOptions()}loadFilesetsWithRetryv2(i,e=2){return this.#i.postApiV2BackupListFilesets({requestBody:{BackupId:i}}).pipe(Oe(t=>{let o=t?.error?.body?.StatusCode??t?.error?.requestBody?.StatusCode;return o==="EncryptedStorageNoPassphrase"||o==="FolderMissing"||o==="EmptyRemoteFolder"||e===0?me(()=>t):Fe(1e3).pipe(Ne(()=>this.loadFilesetsWithRetryv2(i,e-1)))}))}getBackup(){let i=this.backupId();this.versionOptionsLoading.set(!0),this.#n.hasV2ListOperations()?re([this.#i.getApiV1BackupById({id:i}),this.loadFilesetsWithRetryv2(i)]).pipe(j(1),O(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([e,t])=>{if(t.Error)throw new Error(t.Error);if(!(e.Backup?.IsTemporary??!0)&&e?.Backup?.DBPathExists===!1){this.#o.open(L,{data:{title:$localize`Missing Local Database`,message:$localize`The local database for this backup is missing. Please repair or recreate the local database before restoring.`,confirmText:$localize`OK`,cancelText:void 0},closed:n=>{this.#t.navigate(["/backup",i,"database"])}});return}this.versionOptions.set((t.Data??[]).map(n=>({Version:n.Version??-1,IsFullBackup:n.IsFullBackup??void 0,Time:n.Time??"<missing>",FileCount:n.FileCount??void 0,FileSizes:n.FileSizes??void 0}))),this.backup.set(e)},error:e=>{let t=e?.error?.body?.StatusCode??e?.error?.requestBody?.StatusCode,o=t==="EncryptedStorageNoPassphrase",n=t==="FolderMissing",s=t==="EmptyRemoteFolder",u=$localize`An error occurred while loading the backup filesets: ${e.message}`;o&&(u=$localize`The remote storage is encrypted. Please enter the passphrase to access the backup.`),n&&(u=$localize`The backup storage folder was not found.`),s&&(u=$localize`The backup storage folder does not contain any filesets.`),this.#o.open(L,{data:{title:$localize`Failed to load backup filesets`,message:u,confirmText:$localize`OK`,cancelText:void 0},closed:F=>{this.#t.navigate([o?"/restore-from-files/encryption":"/restore-from-files/destination"])}})}}):re([this.#i.getApiV1BackupById({id:i}),this.#i.getApiV1BackupByIdFilesets({id:i}).pipe(Ce(3))]).pipe(j(1),O(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([e,t])=>{this.versionOptions.set(t.map(o=>({Version:o.Version??-1,IsFullBackup:(o.IsFullBackup??1)==1,Time:o.Time??"<missing>",FileCount:o.FileCount??void 0,FileSizes:o.FileSizes??void 0}))),this.backup.set(e)}})}#p(){this.selectFilesForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||a)};static \u0275prov=fe({token:a,factory:a.\u0275fac,providedIn:"root"})};var H=new W,Ze=()=>H.group({restoreFrom:H.control("original"),restoreFromPath:H.control(""),handleExisting:H.control("overwrite"),permissions:H.control(!1),includeMetadata:H.control(!0)}),Se=class a{#t=_(P);#e=_(R);#n=_(h);#o=_(U);#i=_(ne);optionsForm=this.#t.optionsForm;optionsFormSignal=this.#t.optionsFormSignal;isSubmitting=this.#t.isSubmitting;goBack(){this.#e.navigate(["select-files"],{relativeTo:this.#n.parent})}submit(){let i=this.#t.selectFilesFormSignal()?.filesToRestore??[];if(i.length>0&&this.optionsFormSignal()?.restoreFrom=="original"&&(i[0].includes("/")?"/":"\\")!==this.#o.systemInfo()?.DirectorySeparator){this.#i.open(L,{data:{title:$localize`Confirm target folder`,message:$localize`This backup was created on another operating system. Restoring files without specifying a destination folder can cause files to be restored in unexpected places. Are you sure you want to continue without choosing a destination folder?`,confirmText:$localize`Yes`,cancelText:$localize`Cancel`},closed:t=>{t&&this.#t.submit()}});return}this.#t.submit()}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=M({type:a,selectors:[["app-advanced-options-settings"]],decls:42,vars:7,consts:()=>{let i;i=$localize`Restore options`;let e;e=$localize`Where do you want to restore files to?`;let t;t=$localize` Original location ${"\uFFFD#9\uFFFD\uFFFD/#9\uFFFD"}:TAG_INPUT:`;let o;o=$localize` Pick location ${"\uFFFD#12\uFFFD\uFFFD/#12\uFFFD"}:TAG_INPUT:`;let n;n=$localize`How do you want to handle existing files?`;let s;s=$localize` Overwrite ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let u;u=$localize` Save different versions with timestamp in file name ${"\uFFFD#25\uFFFD\uFFFD/#25\uFFFD"}:TAG_INPUT:`;let F;F=$localize`Metadata settings`;let I;I=$localize` Restore file metadata ${"\uFFFD#31\uFFFD\uFFFD/#31\uFFFD"}:TAG_INPUT:`;let Q;Q=$localize` Restore read/write permissions ${"\uFFFD#34\uFFFD\uFFFD/#34\uFFFD"}:TAG_INPUT:`;let ge;ge=$localize`${"\uFFFD#38\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#38\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let Te;return Te=$localize`${"\uFFFD#41\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#41\uFFFD"}:CLOSE_TAG_SH_ICON: Submit `,[["formRef",""],i,e,t,o,n,s,u,F,I,Q,ge,Te,[3,"submit","formGroup"],[1,"title-30"],[3,"disallowToggle"],["title",""],[1,"raised","primary"],["type","radio","name","restoreFrom","value","original","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled","enableCreateFolder"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","includeMetadata"],["type","checkbox","formControlName","permissions"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary"]]},template:function(e,t){if(e&1){let o=q();r(0,"form",13,0),C("submit",function(){return N(o),f(t.submit())}),r(2,"h3",14),E(3,1),l(),r(4,"app-toggle-card",15),$(5,16),E(6,2),D(),r(7,"sh-radio",17),S(8,3),c(9,"input",18),g(),l(),r(10,"sh-radio",17),S(11,4),c(12,"input",19),g(),l(),r(13,"app-file-tree",20)(14,"label",21),K(15,"Path"),l(),c(16,"input",22),l()(),r(17,"app-toggle-card",15),$(18,16),E(19,5),D(),r(20,"sh-radio",17),S(21,6),c(22,"input",23),g(),l(),r(23,"sh-radio",17),S(24,7),c(25,"input",24),g(),l()(),r(26,"app-toggle-card"),$(27,16),E(28,8),D(),r(29,"sh-toggle",25),S(30,9),c(31,"input",26),g(),l(),r(32,"sh-toggle",25),S(33,10),c(34,"input",27),g(),l()(),r(35,"div",28)(36,"button",29),C("click",function(){return N(o),f(t.goBack())}),S(37,11),c(38,"sh-icon"),g(),l(),r(39,"button",30),S(40,12),c(41,"sh-icon"),g(),l()()()}if(e&2){let o;T("formGroup",t.optionsForm),d(4),T("disallowToggle",!0),d(9),T("disabled",((o=t.optionsFormSignal())==null?null:o.restoreFrom)!=="pickLocation")("enableCreateFolder",!0),d(4),T("disallowToggle",!0),d(22),Ie("loader",t.isSubmitting())}},dependencies:[z,B,G,ve,Ge,k,w,x,V,Ye,se,ze,xe,X,J],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};export{Ze as a,Se as b,Ke as c,pe as d,Qe as e,de as f,P as g};
@@ -0,0 +1 @@
1
+ import{a as _e}from"./chunk-ACZQPL4M.js";import"./chunk-MPQNBRD5.js";import"./chunk-GNJTDWT4.js";import"./chunk-AT6BXXSP.js";import{a as se}from"./chunk-75C77QFK.js";import"./chunk-4Z72AON4.js";import"./chunk-6Q6SSTBK.js";import"./chunk-HVB6ARTT.js";import"./chunk-E6DCTQ34.js";import{a as le,b as m}from"./chunk-WJDMMKWE.js";import{a as b}from"./chunk-QBHHGHBJ.js";import"./chunk-AE7T2DAH.js";import"./chunk-XTFTWEJS.js";import"./chunk-SVQCV5AE.js";import{b as oe}from"./chunk-TC7HZO7D.js";import{B as ae,G as ie,X as ne,c as Q,e as Y,i as Z,s as x,u as ee,z as te}from"./chunk-TGNUULAU.js";import{b as q,e as j}from"./chunk-XUN5TTJC.js";import"./chunk-VCLWADQK.js";import"./chunk-ATGKEH5N.js";import"./chunk-NXROYR6L.js";import"./chunk-FPPZ4BUR.js";import{Cb as d,D as G,Db as n,Eb as i,F as g,Fb as c,G as L,H as p,Rc as E,Sa as _,Sc as P,Tb as u,Ub as h,Vb as A,Wb as H,Xb as J,Zb as T,_ as F,cb as V,kc as C,mc as K,nc as D,pa as s,r as y,sc as X,tc as z,uc as W,xb as w,yb as U}from"./chunk-ZBK64QS2.js";import"./chunk-EUDKD2JW.js";function re(r,t){r&1&&(n(0,"sh-icon",19),D(1,"spinner"),i())}function ce(r,t){r&1&&(n(0,"sh-icon",20),D(1,"check"),i())}function de(r,t){r&1&&(n(0,"sh-icon",21),D(1,"warning"),i()),r&2&&d("shTooltip","File not found")}function ue(r,t){let a=le(r).pipe(G(t),L());return m(a,{initialValue:r()})}var N=class r{#o=F(q);#s=F(se);#e=F(oe);#a=F(te);#t=s("");backupId=m(this.#o.params.pipe(y(t=>t.id)));activeBackup=E(()=>this.#s.backups().find(t=>t.Backup?.ID===this.backupId()));backupFilePath=s("");lastValidatedPath=s("");isValidatedPath=E(()=>this.lastValidatedPath()===this.backupFilePath());pathHasChanged=E(()=>this.backupFilePath()!==this.#t());isValidatingPath=s(!1);#i=ue(this.backupFilePath,500);#n=s(!1);isWaitingForValidation=E(()=>this.#i()!=this.backupFilePath()||this.isValidatingPath());backupFilePathEffect=P(()=>{let t=this.#i(),a=this.activeBackup(),e=this.#n();t!==""&&(this.isValidatingPath.set(!0),this.#e.postApiV1FilesystemValidate({requestBody:{path:t}}).pipe(g(1),p(()=>this.isValidatingPath.set(!1))).subscribe(()=>this.lastValidatedPath.set(t)))});isRestoring=s(!1);isRepairing=s(!1);isDeleting=s(!1);isSavingDbPath=s(!1);isSavingAndRepairing=s(!1);isMovingDb=s(!1);isCreatingBugReport=s(!1);createdReport=s(!1);activeBackupEffect=P(()=>{let t=this.activeBackup();if(!t)return;let a=t.Backup?.DBPath??"";this.backupFilePath.set(a),this.#t.set(a)});repairDatabase(){this.isRepairing.set(!0),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(g(1),p(()=>this.isRepairing.set(!1))).subscribe()}deleteDatabase(t=null){this.isValidatedPath()?this.#a.open(b,{data:{title:$localize`Confirm delete?`,message:$localize`Do you really want to delete the database for ${this.activeBackup()?.Backup?.Name}?`,confirmText:$localize`Delete database`,cancelText:$localize`Cancel`},closed:a=>{a&&this.doDeleteDatabase(t)}}):this.doDeleteDatabase(t)}doDeleteDatabase(t=null){this.isDeleting.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),p(()=>this.isDeleting.set(!1))).subscribe(()=>{this.lastValidatedPath.set(""),t?.()})}restoreDatabase(){this.isValidatedPath()?this.deleteDatabase(()=>{this.doRepairDatabase()}):this.doRepairDatabase()}doRepairDatabase(){this.isRestoring.set(!0),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(g(1),p(()=>this.isRestoring.set(!1))).subscribe()}resetDatabasePath(){this.backupFilePath.set(this.#t())}saveDatabasePath(t=null){this.isValidatedPath()?this.#a.open(b,{data:{title:$localize`Confirm reassign?`,message:$localize`The target database path already exists and may belong to another backup. Are you sure you want to assign this backup to an existing database?`,confirmText:$localize`Assign existing database`,cancelText:$localize`Cancel`},closed:a=>{a&&this.doSaveDatabasePath(t)}}):this.doSaveDatabasePath(t)}doSaveDatabasePath(t=null){this.isSavingDbPath.set(!0);let a=this.backupFilePath();this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:a}}).pipe(p(()=>this.isSavingDbPath.set(!1))).subscribe(()=>{this.#t.set(a),t?.()})}saveAndRepairDatabasePath(){this.saveDatabasePath(()=>(this.isSavingAndRepairing.set(!0),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(g(1),p(()=>this.isSavingAndRepairing.set(!1))).subscribe()))}moveDatabasePath(){this.isMovingDb.set(!0);let t=this.backupFilePath();this.#e.postApiV1BackupByIdMovedb({id:this.backupId(),requestBody:{path:t}}).pipe(p(()=>this.isMovingDb.set(!1))).subscribe(()=>{this.#n.update(a=>!a),this.#t.set(t)})}createErrorReport(){this.isCreatingBugReport.set(!0),this.#e.postApiV1BackupByIdCreatereport({id:this.backupId()}).pipe(p(()=>this.isCreatingBugReport.set(!1))).subscribe({next:()=>{this.createdReport.set(!0),window.setTimeout(()=>this.createdReport.set(!1),3e3)}})}static \u0275fac=function(a){return new(a||r)};static \u0275cmp=V({type:r,selectors:[["app-database"]],decls:50,vars:21,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let a;a=$localize`Local database for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. This makes it faster to perform many operations, and reduces the amount of data that needs to be downloaded for each operation. `;let o;o=$localize`Maintenance`;let S;S=$localize` If the backup and the remote storage is out of sync, Duplicati will require that you perform a repair operation to synchronize the database. If the repair is unsuccessful, you can delete the local database and re-generate. The bug report button can be used to create a copy of the database with path information removed. This should only be used if a developer requests to investigate an issue with your database. `;let f;f=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:wrench${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: Repair `;let I;I=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:trash${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON: Delete `;let M;M=$localize`${"\uFFFD#25\uFFFD"}:START_TAG_SH_ICON:clock-counter-clockwise${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_SH_ICON: Restore (delete and repair) `;let R;R=$localize`${"\uFFFD#28\uFFFD"}:START_TAG_SH_ICON:file-plus${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SH_ICON: Create bug report database `;let B;B=$localize`Placement`;let O;O=$localize`${"\uFFFD#40\uFFFD"}:START_TAG_SH_ICON:backspace${"\uFFFD/#40\uFFFD"}:CLOSE_TAG_SH_ICON: Reset `;let $;$=$localize`${"\uFFFD#43\uFFFD"}:START_TAG_SH_ICON:floppy-disk${"\uFFFD/#43\uFFFD"}:CLOSE_TAG_SH_ICON: Save `;let v;v=$localize`${"\uFFFD#46\uFFFD"}:START_TAG_SH_ICON:wrench${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_SH_ICON: Save & Repair `;let k;return k=$localize`${"\uFFFD#49\uFFFD"}:START_TAG_SH_ICON:flow-arrow${"\uFFFD/#49\uFFFD"}:CLOSE_TAG_SH_ICON: Move existing database `,[t,a,e,o,S,f,I,M,R,B,O,$,v,k,[1,"back"],["type","button","shButton","","routerLink","/",1,"small"],[1,"actions","maintenance"],["shButton","",3,"click","disabled"],["type","text",3,"ngModelChange","ngModel"],["prefix","",1,"primary"],["prefix",""],["prefix","",3,"shTooltip"],[1,"actions","placement"]]},template:function(a,e){if(a&1&&(c(0,"app-status-bar"),n(1,"section")(2,"div",14)(3,"button",15),u(4,0),c(5,"sh-icon"),h(),i()(),n(6,"article")(7,"h1"),A(8,1),i(),n(9,"p"),A(10,2),i()(),n(11,"article")(12,"h2"),A(13,3),i(),n(14,"p"),A(15,4),i(),n(16,"div",16)(17,"button",17),T("click",function(){return e.repairDatabase()}),u(18,5),c(19,"sh-icon"),h(),i(),n(20,"button",17),T("click",function(){return e.deleteDatabase()}),u(21,6),c(22,"sh-icon"),h(),i(),n(23,"button",17),T("click",function(){return e.restoreDatabase()}),u(24,7),c(25,"sh-icon"),h(),i(),n(26,"button",17),T("click",function(){return e.createErrorReport()}),u(27,8),c(28,"sh-icon"),h(),i()()(),n(29,"article")(30,"h2"),A(31,9),i(),n(32,"sh-form-field")(33,"input",18),W("ngModelChange",function(S){return z(e.backupFilePath,S)||(e.backupFilePath=S),S}),i(),w(34,re,2,0,"sh-icon",19)(35,ce,2,0,"sh-icon",20)(36,de,2,1,"sh-icon",21),i(),n(37,"div",22)(38,"button",17),T("click",function(){return e.resetDatabasePath()}),u(39,10),c(40,"sh-icon"),h(),i(),n(41,"button",17),T("click",function(){return e.saveDatabasePath()}),u(42,11),c(43,"sh-icon"),h(),i(),n(44,"button",17),T("click",function(){return e.saveAndRepairDatabasePath()}),u(45,12),c(46,"sh-icon"),h(),i(),n(47,"button",17),T("click",function(){return e.moveDatabasePath()}),u(48,13),c(49,"sh-icon"),h(),i()()()()),a&2){let o;_(8),H((o=e.activeBackup())==null||o.Backup==null?null:o.Backup.Name),J(8),_(9),C("loader",e.isRepairing()),d("disabled",!e.isValidatedPath()||e.pathHasChanged()),_(3),C("loader",e.isDeleting()),d("disabled",!e.isValidatedPath()||e.pathHasChanged()),_(3),C("loader",e.isRestoring()),d("disabled",e.pathHasChanged()),_(3),C("loader",e.isCreatingBugReport()),d("disabled",e.isCreatingBugReport()||!e.isValidatedPath()||e.pathHasChanged()),_(6),K(e.isValidatedPath()?"success":"error"),_(),X("ngModel",e.backupFilePath),_(),U(e.isWaitingForValidation()?34:e.isValidatedPath()?35:36),_(4),d("disabled",!e.pathHasChanged()),_(3),d("disabled",!e.pathHasChanged()||e.isWaitingForValidation()),_(3),d("disabled",!e.pathHasChanged()||e.isWaitingForValidation()),_(3),d("disabled",!e.pathHasChanged()||e.isValidatedPath()||e.isWaitingForValidation())}},dependencies:[x,Q,Y,Z,_e,ae,ie,ee,ne,j],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem}article[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}h1[_ngcontent-%COMP%]{font:var(--title-20)}h2[_ngcontent-%COMP%]{font:var(--title-30)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{N as default};
@@ -0,0 +1 @@
1
+ import{a as D,d as b}from"./chunk-ATGKEH5N.js";import{B as k,P,V as y,Z as h,n as I,o as m,r as R,x as O}from"./chunk-ZBK64QS2.js";import{a as l,b as f}from"./chunk-EUDKD2JW.js";var g=class{_fns;constructor(){this._fns=[]}eject(e){let o=this._fns.indexOf(e);o!==-1&&(this._fns=[...this._fns.slice(0,o),...this._fns.slice(o+1)])}use(e){this._fns=[...this._fns,e]}},t={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"1",WITH_CREDENTIALS:!1,interceptors:{response:new g}};var d=class extends Error{url;status;statusText;body;request;constructor(e,o,r){super(r),this.name="ApiError",this.url=o.url,this.status=o.status,this.statusText=o.statusText,this.body=o.body,this.request=e}};var c=p=>typeof p=="string",v=p=>c(p)&&p!=="",T=p=>p instanceof Blob,S=p=>p instanceof FormData,x=p=>{try{return btoa(p)}catch{return Buffer.from(p).toString("base64")}},L=p=>{let e=[],o=(a,n)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(n))}`)},r=(a,n)=>{n!=null&&(n instanceof Date?o(a,n.toISOString()):Array.isArray(n)?n.forEach(i=>r(a,i)):typeof n=="object"?Object.entries(n).forEach(([i,u])=>r(`${a}[${i}]`,u)):o(a,n))};return Object.entries(p).forEach(([a,n])=>r(a,n)),e.length?`?${e.join("&")}`:""},w=(p,e)=>{let o=p.ENCODE_PATH||encodeURI,r=e.url.replace("{api-version}",p.VERSION).replace(/{(.*?)}/g,(n,i)=>e.path?.hasOwnProperty(i)?o(String(e.path[i])):n),a=p.BASE+r;return e.query?a+L(e.query):a},F=p=>{if(p.formData){let e=new FormData,o=(r,a)=>{c(a)||T(a)?e.append(r,a):e.append(r,JSON.stringify(a))};return Object.entries(p.formData).filter(([,r])=>r!=null).forEach(([r,a])=>{Array.isArray(a)?a.forEach(n=>o(r,n)):o(r,a)}),e}},V=async(p,e)=>typeof e=="function"?e(p):e,j=(p,e)=>O({token:V(e,p.TOKEN),username:V(e,p.USERNAME),password:V(e,p.PASSWORD),additionalHeaders:V(e,p.HEADERS)}).pipe(R(({token:o,username:r,password:a,additionalHeaders:n})=>{let i=Object.entries(l(l({Accept:"application/json"},n),e.headers)).filter(([,u])=>u!=null).reduce((u,[B,A])=>f(l({},u),{[B]:String(A)}),{});if(v(o)&&(i.Authorization=`Bearer ${o}`),v(r)&&v(a)){let u=x(`${r}:${a}`);i.Authorization=`Basic ${u}`}return e.body!==void 0&&(e.mediaType?i["Content-Type"]=e.mediaType:T(e.body)?i["Content-Type"]=e.body.type||"application/octet-stream":c(e.body)?i["Content-Type"]="text/plain":S(e.body)||(i["Content-Type"]="application/json")),new D(i)})),H=p=>{if(p.body)return p.mediaType?.includes("application/json")||p.mediaType?.includes("+json")?JSON.stringify(p.body):c(p.body)||T(p.body)||S(p.body)?p.body:JSON.stringify(p.body)},N=(p,e,o,r,a,n,i)=>o.request(e.method,r,{headers:i,body:a??n,withCredentials:p.WITH_CREDENTIALS,observe:"response"}),U=(p,e)=>{if(e){let o=p.headers.get(e);if(c(o))return o}},M=p=>{if(p.status!==204&&p.body!==null)return p.body},z=(p,e)=>{let r=l({400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},p.errors)[e.status];if(r)throw new d(p,e,r);if(!e.ok){let a=e.status??"unknown",n=e.statusText??"unknown",i=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new d(p,e,`Generic Error: status: ${a}; status text: ${n}; body: ${i}`)}},s=(p,e,o)=>{let r=w(p,o),a=F(o),n=H(o);return j(p,o).pipe(P(i=>N(p,o,e,r,n,a,i)),P(async i=>{for(let q of p.interceptors.response._fns)i=await q(i);let u=M(i),B=U(i,o.responseHeader),A=u;return o.responseTransformer&&i.ok&&(A=await o.responseTransformer(u)),{url:r,ok:i.ok,status:i.status,statusText:i.statusText,body:B??A}}),k(i=>i.status?I({url:r,ok:i.ok,status:i.status,statusText:i.statusText,body:i.error??i.statusText}):m(()=>i)),R(i=>(z(o,i),i.body)),k(i=>m(()=>i)))};var G=class p{constructor(e){this.http=e}getApiV1Commandline(){return s(t,this.http,{method:"GET",url:"/api/v1/commandline"})}static \u0275fac=function(o){return new(o||p)(h(b))};static \u0275prov=y({token:p,factory:p.\u0275fac,providedIn:"root"})},E=class p{constructor(e){this.http=e}postApiV1Commandline(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline",body:e.requestBody,mediaType:"application/json"})}getApiV1Acknowledgements(){return s(t,this.http,{method:"GET",url:"/api/v1/acknowledgements"})}postApiV1AuthRefresh(e={}){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthSignin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/signin",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthLogin(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/login",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuesignintoken(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuesignintoken",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthRefreshLogout(e={}){return s(t,this.http,{method:"POST",url:"/api/v1/auth/refresh/logout",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuetokenByOperation(e){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issuetoken/{operation}",path:{operation:e.operation}})}postApiV1AuthIssueForeverToken(){return s(t,this.http,{method:"POST",url:"/api/v1/auth/issue-forever-token"})}getApiV1Backupdefaults(){return s(t,this.http,{method:"GET",url:"/api/v1/backupdefaults"})}getApiV1Backups(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/backups",query:{orderBy:e.orderBy}})}postApiV1Backups(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups",query:{temporary:e.temporary,existingdb:e.existingdb},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupsImport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backups/import",body:e.requestBody,mediaType:"application/json"})}getApiV1BugreportByReportid(e){return s(t,this.http,{method:"GET",url:"/api/v1/bugreport/{reportid}",path:{reportid:e.reportid},query:{token:e.token}})}getApiV1Changelog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/changelog",query:{"from-update":e.fromUpdate}})}getApiV1CommandlineByRunid(e){return s(t,this.http,{method:"GET",url:"/api/v1/commandline/{runid}",path:{runid:e.runid},query:{offset:e.offset,pagesize:e.pagesize}})}postApiV1CommandlineByRunidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/commandline/{runid}/abort",path:{runid:e.runid}})}postApiV1Filesystem(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem",query:{onlyFolders:e.onlyFolders,showHidden:e.showHidden},body:e.requestBody,mediaType:"application/json"})}postApiV1FilesystemValidate(e){return s(t,this.http,{method:"POST",url:"/api/v1/filesystem/validate",body:e.requestBody,mediaType:"application/json"})}getApiV1Licenses(){return s(t,this.http,{method:"GET",url:"/api/v1/licenses"})}getApiV1LogdataPoll(e){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/poll",query:{level:e.level,id:e.id,pagesize:e.pagesize}})}getApiV1LogdataLog(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/log",query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataCrashlog(){return s(t,this.http,{method:"GET",url:"/api/v1/logdata/crashlog"})}getApiV1NotificationById(e){return s(t,this.http,{method:"GET",url:"/api/v1/notification/{id}",path:{id:e.id}})}deleteApiV1NotificationById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/notification/{id}",path:{id:e.id}})}getApiV1Notifications(){return s(t,this.http,{method:"GET",url:"/api/v1/notifications"})}getApiV1Progressstate(){return s(t,this.http,{method:"GET",url:"/api/v1/progressstate"})}getApiV1RemotecontrolStatus(){return s(t,this.http,{method:"GET",url:"/api/v1/remotecontrol/status"})}postApiV1RemoteoperationDbpath(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/dbpath",body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationTest(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/test",query:{autocreate:e.autocreate},body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationCreate(e){return s(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/create",body:e.requestBody,mediaType:"application/json"})}getApiV1Serversettings(){return s(t,this.http,{method:"GET",url:"/api/v1/serversettings"})}patchApiV1Serversettings(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/serversettings",body:e.requestBody,mediaType:"application/json"})}getApiV1ServersettingByKey(e){return s(t,this.http,{method:"GET",url:"/api/v1/serversetting/{key}",path:{key:e.key}})}putApiV1ServersettingByKey(e){return s(t,this.http,{method:"PUT",url:"/api/v1/serversetting/{key}",path:{key:e.key},body:e.requestBody,mediaType:"application/json"})}getApiV1Serverstate(e={}){return s(t,this.http,{method:"GET",url:"/api/v1/serverstate",query:{lastEventId:e.lastEventId,longpoll:e.longpoll,duration:e.duration}})}postApiV1ServerstatePause(e={}){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/pause",query:{duration:e.duration,pauseTransfers:e.pauseTransfers}})}postApiV1ServerstateResume(){return s(t,this.http,{method:"POST",url:"/api/v1/serverstate/resume"})}getApiV1Systeminfo(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo"})}getApiV1SysteminfoFiltergroups(){return s(t,this.http,{method:"GET",url:"/api/v1/systeminfo/filtergroups"})}getApiV1Tasks(){return s(t,this.http,{method:"GET",url:"/api/v1/tasks"})}getApiV1TaskByTaskid(e){return s(t,this.http,{method:"GET",url:"/api/v1/task/{taskid}",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStop(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stop",path:{taskid:e.taskid}})}postApiV1TaskByTaskidAbort(e){return s(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/abort",path:{taskid:e.taskid}})}getApiV1Uisettings(){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings"})}postApiV1Uisettings(e){return s(t,this.http,{method:"POST",url:"/api/v1/uisettings",body:e.requestBody,mediaType:"application/json"})}getApiV1UisettingsByScheme(e){return s(t,this.http,{method:"GET",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme}})}patchApiV1UisettingsByScheme(e){return s(t,this.http,{method:"PATCH",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme},body:e.requestBody,mediaType:"application/json"})}postApiV1UpdatesCheck(){return s(t,this.http,{method:"POST",url:"/api/v1/updates/check"})}postApiV1WebmoduleByModulekey(e){return s(t,this.http,{method:"POST",url:"/api/v1/webmodule/{modulekey}",path:{modulekey:e.modulekey},body:e.requestBody,mediaType:"application/json"})}getApiV1BackupById(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}",path:{id:e.id}})}putApiV1BackupById(e){return s(t,this.http,{method:"PUT",url:"/api/v1/backup/{id}",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}deleteApiV1BackupById(e){return s(t,this.http,{method:"DELETE",url:"/api/v1/backup/{id}",path:{id:e.id},query:{"delete-remote-files":e.deleteRemoteFiles,"delete-local-db":e.deleteLocalDb,force:e.force}})}getApiV1BackupByIdFiles(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/files",path:{id:e.id},query:{filter:e.filter,time:e.time,"all-versions":e.allVersions,"prefix-only":e.prefixOnly,"folder-contents":e.folderContents}})}getApiV1BackupByIdLog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/log",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdRemotelog(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/remotelog",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdFilesets(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/filesets",path:{id:e.id},query:{"include-metadata":e.includeMetadata,"from-remote-only":e.fromRemoteOnly}})}getApiV1BackupByIdExportArgsonly(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-argsonly",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExportCmdline(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-cmdline",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExport(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase,token:e.token}})}getApiV1BackupByIdIsdbusedelsewhere(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isdbusedelsewhere",path:{id:e.id}})}getApiV1BackupByIdIsactive(e){return s(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isactive",path:{id:e.id}})}postApiV1BackupByIdDeletedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/deletedb",path:{id:e.id}})}postApiV1BackupByIdMovedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/movedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdUpdatedb(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/updatedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRestore(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/restore",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdCreatereport(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/createreport",path:{id:e.id}})}postApiV1BackupByIdRepair(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repair",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRepairupdate(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repairupdate",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdVacuum(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/vacuum",path:{id:e.id}})}postApiV1BackupByIdVerify(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/verify",path:{id:e.id}})}postApiV1BackupByIdCompact(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/compact",path:{id:e.id}})}postApiV1BackupByIdStart(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/start",path:{id:e.id},query:{skipQueue:e.skipQueue}})}postApiV1BackupByIdRun(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/run",path:{id:e.id},query:{skipQueue:e.skipQueue}})}postApiV1BackupByIdReportRemoteSize(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/report-remote-size",path:{id:e.id}})}postApiV1BackupByIdCopytotemp(e){return s(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/copytotemp",path:{id:e.id}})}postApiV1RemotecontrolEnable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/enable"})}postApiV1RemotecontrolDisable(){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/disable"})}deleteApiV1RemotecontrolRegistration(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/registration"})}postApiV1RemotecontrolRegister(e){return s(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/register",body:e.requestBody,mediaType:"application/json"})}deleteApiV1RemotecontrolRegister(){return s(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/register"})}postApiV2BackupListFilesets(e){return s(t,this.http,{method:"POST",url:"/api/v2/backup/list-filesets",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupListFolder(e){return s(t,this.http,{method:"POST",url:"/api/v2/backup/list-folder",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupListVersions(e){return s(t,this.http,{method:"POST",url:"/api/v2/backup/list-versions",body:e.requestBody,mediaType:"application/json"})}postApiV2BackupSearch(e){return s(t,this.http,{method:"POST",url:"/api/v2/backup/search",body:e.requestBody,mediaType:"application/json"})}postApiV2DestinationTest(e){return s(t,this.http,{method:"POST",url:"/api/v2/destination/test",body:e.requestBody,mediaType:"application/json"})}static \u0275fac=function(o){return new(o||p)(h(b))};static \u0275prov=y({token:p,factory:p.\u0275fac,providedIn:"root"})},C=class p{constructor(e){this.http=e}getApiV1Webmodules(){return s(t,this.http,{method:"GET",url:"/api/v1/webmodules"})}static \u0275fac=function(o){return new(o||p)(h(b))};static \u0275prov=y({token:p,factory:p.\u0275fac,providedIn:"root"})};export{G as a,E as b,C as c};
@@ -0,0 +1 @@
1
+ import{a as Xt,ea as Ai}from"./chunk-NXROYR6L.js";import{$b as D,Ab as Ht,Ac as re,Bb as Bt,Bc as $t,Cb as ge,Cc as mt,Db as E,Dc as Wt,Eb as V,Fb as Ne,Gb as z,Hb as $,Ib as Ae,Lb as Ie,Mb as he,Pc as Gt,Qc as be,Ra as Mi,Rc as F,S as ht,Sa as S,Sc as J,U as ue,Ua as pt,V as Le,W as Ye,Wa as ye,Wc as xe,Xa as A,Xc as O,Y as Ce,Ya as Ei,Yc as fe,Zb as W,Zc as Ti,_ as I,_b as Pe,_c as ne,a as mi,ac as G,ad as qt,ba as Di,bc as b,ca as bi,cb as H,da as Si,db as Ze,ea as j,eb as Y,ed as Ni,fa as U,fc as xi,gb as ie,gc as pe,gd as Yt,hb as Te,hc as De,i as vi,ic as Oi,ja as Xe,jc as se,ka as He,kb as Me,kc as q,la as Be,lc as Vi,m as _i,mb as kt,mc as ve,nc as P,oa as Ft,ob as wi,oc as Ke,pa as T,pc as we,qc as ft,r as Ci,rb as Rt,sa as Qe,sc as jt,ta as je,tc as Ut,ub as Ee,uc as zt,va as K,vc as gt,wc as me,x as yi,xb as R,xc as Q,yb as L,zb as Lt}from"./chunk-ZBK64QS2.js";import{a as X,b as te,c as gi,d as m,e as w,f as x,g as M}from"./chunk-EUDKD2JW.js";var ji=(()=>{class i{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,n){this._renderer=t,this._elementRef=n}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static \u0275fac=function(n){return new(n||i)(A(ye),A(K))};static \u0275dir=Y({type:i})}return i})(),rt=(()=>{class i extends ji{static \u0275fac=(()=>{let t;return function(o){return(t||(t=je(i)))(o||i)}})();static \u0275dir=Y({type:i,features:[ie]})}return i})(),Ve=new Ce(""),Vn={provide:Ve,useExisting:ue(()=>Tn),multi:!0},Tn=(()=>{class i extends rt{writeValue(t){this.setProperty("checked",t)}static \u0275fac=(()=>{let t;return function(o){return(t||(t=je(i)))(o||i)}})();static \u0275dir=Y({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,o){n&1&&W("change",function(c){return o.onChange(c.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([Vn]),ie]})}return i})(),Nn={provide:Ve,useExisting:ue(()=>Ui),multi:!0};function An(){let i=Xt()?Xt().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var In=new Ce(""),Ui=(()=>{class i extends ji{_compositionMode;_composing=!1;constructor(t,n,o){super(t,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!An())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static \u0275fac=function(n){return new(n||i)(A(ye),A(K),A(In,8))};static \u0275dir=Y({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,o){n&1&&W("input",function(c){return o._handleInput(c.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(c){return o._compositionEnd(c.target.value)})},standalone:!1,features:[re([Nn]),ie]})}return i})();function Jt(i){return i==null||ei(i)===0}function ei(i){return i==null?null:Array.isArray(i)||typeof i=="string"?i.length:i instanceof Set?i.size:null}var Fe=new Ce(""),ke=new Ce(""),Pn=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ii=class{static min(e){return Fn(e)}static max(e){return kn(e)}static required(e){return Rn(e)}static requiredTrue(e){return Ln(e)}static email(e){return Hn(e)}static minLength(e){return Bn(e)}static maxLength(e){return jn(e)}static pattern(e){return Un(e)}static nullValidator(e){return zi()}static compose(e){return Xi(e)}static composeAsync(e){return Qi(e)}};function Fn(i){return e=>{if(e.value==null||i==null)return null;let t=parseFloat(e.value);return!isNaN(t)&&t<i?{min:{min:i,actual:e.value}}:null}}function kn(i){return e=>{if(e.value==null||i==null)return null;let t=parseFloat(e.value);return!isNaN(t)&&t>i?{max:{max:i,actual:e.value}}:null}}function Rn(i){return Jt(i.value)?{required:!0}:null}function Ln(i){return i.value===!0?null:{required:!0}}function Hn(i){return Jt(i.value)||Pn.test(i.value)?null:{email:!0}}function Bn(i){return e=>{let t=e.value?.length??ei(e.value);return t===null||t===0?null:t<i?{minlength:{requiredLength:i,actualLength:t}}:null}}function jn(i){return e=>{let t=e.value?.length??ei(e.value);return t!==null&&t>i?{maxlength:{requiredLength:i,actualLength:t}}:null}}function Un(i){if(!i)return zi;let e,t;return typeof i=="string"?(t="",i.charAt(0)!=="^"&&(t+="^"),t+=i,i.charAt(i.length-1)!=="$"&&(t+="$"),e=new RegExp(t)):(t=i.toString(),e=i),n=>{if(Jt(n.value))return null;let o=n.value;return e.test(o)?null:{pattern:{requiredPattern:t,actualValue:o}}}}function zi(i){return null}function $i(i){return i!=null}function Wi(i){return wi(i)?_i(i):i}function Gi(i){let e={};return i.forEach(t=>{e=t!=null?X(X({},e),t):e}),Object.keys(e).length===0?null:e}function qi(i,e){return e.map(t=>t(i))}function zn(i){return!i.validate}function Yi(i){return i.map(e=>zn(e)?e:t=>e.validate(t))}function Xi(i){if(!i)return null;let e=i.filter($i);return e.length==0?null:function(t){return Gi(qi(t,e))}}function ti(i){return i!=null?Xi(Yi(i)):null}function Qi(i){if(!i)return null;let e=i.filter($i);return e.length==0?null:function(t){let n=qi(t,e).map(Wi);return yi(n).pipe(Ci(Gi))}}function ii(i){return i!=null?Qi(Yi(i)):null}function Pi(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function Zi(i){return i._rawValidators}function Ki(i){return i._rawAsyncValidators}function Qt(i){return i?Array.isArray(i)?i:[i]:[]}function _t(i,e){return Array.isArray(i)?i.includes(e):i===e}function Fi(i,e){let t=Qt(e);return Qt(i).forEach(o=>{_t(t,o)||t.push(o)}),t}function ki(i,e){return Qt(e).filter(t=>!_t(i,t))}var Ct=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=ti(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=ii(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},oe=class extends Ct{name;get formDirective(){return null}get path(){return null}},_e=class extends Ct{_parent=null;name=null;valueAccessor=null},yt=class{_cd;constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},$n={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Lr=te(X({},$n),{"[class.ng-submitted]":"isSubmitted"}),Hr=(()=>{class i extends yt{constructor(t){super(t)}static \u0275fac=function(n){return new(n||i)(A(_e,2))};static \u0275dir=Y({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&q("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[ie]})}return i})(),Br=(()=>{class i extends yt{constructor(t){super(t)}static \u0275fac=function(n){return new(n||i)(A(oe,10))};static \u0275dir=Y({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&q("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},standalone:!1,features:[ie]})}return i})();var Je="VALID",vt="INVALID",Ue="PENDING",et="DISABLED",Oe=class{},Dt=class extends Oe{value;source;constructor(e,t){super(),this.value=e,this.source=t}},it=class extends Oe{pristine;source;constructor(e,t){super(),this.pristine=e,this.source=t}},nt=class extends Oe{touched;source;constructor(e,t){super(),this.touched=e,this.source=t}},ze=class extends Oe{status;source;constructor(e,t){super(),this.status=e,this.source=t}},bt=class extends Oe{source;constructor(e){super(),this.source=e}},St=class extends Oe{source;constructor(e){super(),this.source=e}};function ni(i){return(xt(i)?i.validators:i)||null}function Wn(i){return Array.isArray(i)?ti(i):i||null}function oi(i,e){return(xt(e)?e.asyncValidators:i)||null}function Gn(i){return Array.isArray(i)?ii(i):i||null}function xt(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function Ji(i,e,t){let n=i.controls;if(!(e?Object.keys(n):n).length)throw new ht(1e3,"");if(!n[t])throw new ht(1001,"")}function en(i,e,t){i._forEachChild((n,o)=>{if(t[o]===void 0)throw new ht(1002,"")})}var $e=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(e,t){this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return be(this.statusReactive)}set status(e){be(()=>this.statusReactive.set(e))}_status=F(()=>this.statusReactive());statusReactive=T(void 0);get valid(){return this.status===Je}get invalid(){return this.status===vt}get pending(){return this.status==Ue}get disabled(){return this.status===et}get enabled(){return this.status!==et}errors;get pristine(){return be(this.pristineReactive)}set pristine(e){be(()=>this.pristineReactive.set(e))}_pristine=F(()=>this.pristineReactive());pristineReactive=T(!0);get dirty(){return!this.pristine}get touched(){return be(this.touchedReactive)}set touched(e){be(()=>this.touchedReactive.set(e))}_touched=F(()=>this.touchedReactive());touchedReactive=T(!1);get untouched(){return!this.touched}_events=new vi;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Fi(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Fi(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(ki(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(ki(e,this._rawAsyncValidators))}hasValidator(e){return _t(this._rawValidators,e)}hasAsyncValidator(e){return _t(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(te(X({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new nt(!0,n))}markAllAsDirty(e={}){this.markAsDirty({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(e))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),t&&e.emitEvent!==!1&&this._events.next(new nt(!1,n))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(te(X({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new it(!1,n))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),t&&e.emitEvent!==!1&&this._events.next(new it(!0,n))}markAsPending(e={}){this.status=Ue;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ze(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(te(X({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=et,this.errors=null,this._forEachChild(o=>{o.disable(te(X({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Dt(this.value,n)),this._events.next(new ze(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(te(X({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=Je,this._forEachChild(n=>{n.enable(te(X({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(te(X({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Je||this.status===Ue)&&this._runAsyncValidator(n,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Dt(this.value,t)),this._events.next(new ze(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(te(X({},e),{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?et:Je}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=Ue,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:e!==!1};let n=Wi(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((n,o)=>n&&n._find(o),this)}getError(e,t){let n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new ze(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,n)}_initObservables(){this.valueChanges=new Me,this.statusChanges=new Me}_calculateStatus(){return this._allControlsDisabled()?et:this.errors?vt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ue)?Ue:this._anyControlsHaveStatus(vt)?vt:Je}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),o&&this._events.next(new it(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new nt(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){xt(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=Wn(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=Gn(this._rawAsyncValidators)}},We=class extends $e{constructor(e,t,n){super(ni(t),oi(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,n={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){en(this,!0,e),Object.keys(e).forEach(n=>{Ji(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(Object.keys(e).forEach(n=>{let o=this.controls[n];o&&o.patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,o)=>{n.reset(e?e[o]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,n)=>n._syncPendingControls()?!0:t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{let n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[t,n]of Object.entries(this.controls))if(this.contains(t)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(t,n,o)=>((n.enabled||this.disabled)&&(t[o]=n.value),t))}_reduceChildren(e,t){let n=e;return this._forEachChild((o,s)=>{n=t(n,o,s)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Zt=class extends We{};var Re=new Ce("",{providedIn:"root",factory:()=>at}),at="always";function Ot(i,e){return[...e.path,i]}function st(i,e,t=at){si(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||t==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),Yn(i,e),Qn(i,e),Xn(i,e),qn(i,e)}function Mt(i,e,t=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),wt(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function Et(i,e){i.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function qn(i,e){if(e.valueAccessor.setDisabledState){let t=n=>{e.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(t),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(t)})}}function si(i,e){let t=Zi(i);e.validator!==null?i.setValidators(Pi(t,e.validator)):typeof t=="function"&&i.setValidators([t]);let n=Ki(i);e.asyncValidator!==null?i.setAsyncValidators(Pi(n,e.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let o=()=>i.updateValueAndValidity();Et(e._rawValidators,o),Et(e._rawAsyncValidators,o)}function wt(i,e){let t=!1;if(i!==null){if(e.validator!==null){let o=Zi(i);if(Array.isArray(o)&&o.length>0){let s=o.filter(c=>c!==e.validator);s.length!==o.length&&(t=!0,i.setValidators(s))}}if(e.asyncValidator!==null){let o=Ki(i);if(Array.isArray(o)&&o.length>0){let s=o.filter(c=>c!==e.asyncValidator);s.length!==o.length&&(t=!0,i.setAsyncValidators(s))}}}let n=()=>{};return Et(e._rawValidators,n),Et(e._rawAsyncValidators,n),t}function Yn(i,e){e.valueAccessor.registerOnChange(t=>{i._pendingValue=t,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&tn(i,e)})}function Xn(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&tn(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function tn(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function Qn(i,e){let t=(n,o)=>{e.valueAccessor.writeValue(n),o&&e.viewToModelUpdate(n)};i.registerOnChange(t),e._registerOnDestroy(()=>{i._unregisterOnChange(t)})}function nn(i,e){i==null,si(i,e)}function Zn(i,e){return wt(i,e)}function ri(i,e){if(!i.hasOwnProperty("model"))return!1;let t=i.model;return t.isFirstChange()?!0:!Object.is(e,t.currentValue)}function Kn(i){return Object.getPrototypeOf(i.constructor)===rt}function on(i,e){i._syncPendingControls(),e.forEach(t=>{let n=t.control;n.updateOn==="submit"&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function ai(i,e){if(!e)return null;Array.isArray(e);let t,n,o;return e.forEach(s=>{s.constructor===Ui?t=s:Kn(s)?n=s:o=s}),o||n||t||null}function Jn(i,e){let t=i.indexOf(e);t>-1&&i.splice(t,1)}var eo={provide:oe,useExisting:ue(()=>to)},tt=Promise.resolve(),to=(()=>{class i extends oe{callSetDisabledState;get submitted(){return be(this.submittedReactive)}_submitted=F(()=>this.submittedReactive());submittedReactive=T(!1);_directives=new Set;form;ngSubmit=new Me;options;constructor(t,n,o){super(),this.callSetDisabledState=o,this.form=new We({},ti(t),ii(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){tt.then(()=>{let n=this._findContainer(t.path);t.control=n.registerControl(t.name,t.control),st(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){tt.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){tt.then(()=>{let n=this._findContainer(t.path),o=new We({});nn(o,t),n.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){tt.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,n){tt.then(()=>{this.form.get(t.path).setValue(n)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submittedReactive.set(!0),on(this.form,this._directives),this.ngSubmit.emit(t),this.form._events.next(new bt(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1),this.form._events.next(new St(this.form))}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static \u0275fac=function(n){return new(n||i)(A(Fe,10),A(ke,10),A(Re,8))};static \u0275dir=Y({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&W("submit",function(c){return o.onSubmit(c)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[re([eo]),ie]})}return i})();function Ri(i,e){let t=i.indexOf(e);t>-1&&i.splice(t,1)}function Li(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var ot=class extends $e{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,t,n){super(ni(t),oi(n,t)),this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),xt(t)&&(t.nonNullable||t.initialValueIsDefault)&&(Li(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Ri(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Ri(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){Li(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var io=i=>i instanceof ot,no=(()=>{class i extends oe{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Ot(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let t;return function(o){return(t||(t=je(i)))(o||i)}})();static \u0275dir=Y({type:i,standalone:!1,features:[ie]})}return i})();var oo={provide:_e,useExisting:ue(()=>so)},Hi=Promise.resolve(),so=(()=>{class i extends _e{_changeDetectorRef;callSetDisabledState;control=new ot;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new Me;constructor(t,n,o,s,c,y){super(),this._changeDetectorRef=c,this.callSetDisabledState=y,this._parent=t,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=ai(this,s)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),ri(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){st(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){Hi.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let n=t.isDisabled.currentValue,o=n!==0&&Ni(n);Hi.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?Ot(t,this._parent):[t]}static \u0275fac=function(n){return new(n||i)(A(oe,9),A(Fe,10),A(ke,10),A(Ve,10),A(qt,8),A(Re,8))};static \u0275dir=Y({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[re([oo]),ie,Qe]})}return i})();var Ur=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275dir=Y({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return i})(),ro={provide:Ve,useExisting:ue(()=>ao),multi:!0},ao=(()=>{class i extends rt{writeValue(t){let n=t??"";this.setProperty("value",n)}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=je(i)))(o||i)}})();static \u0275dir=Y({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&W("input",function(c){return o.onChange(c.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([ro]),ie]})}return i})(),lo={provide:Ve,useExisting:ue(()=>uo),multi:!0};var co=(()=>{class i{_accessors=[];add(t,n){this._accessors.push([t,n])}remove(t){for(let n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===t){this._accessors.splice(n,1);return}}select(t){this._accessors.forEach(n=>{this._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})}_isSameGroup(t,n){return t[0].control?t[0]._parent===n._control._parent&&t[1].name===n.name:!1}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Le({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),uo=(()=>{class i extends rt{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=I(Re,{optional:!0})??at;constructor(t,n,o,s){super(t,n),this._registry=o,this._injector=s}ngOnInit(){this._control=this._injector.get(_e),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this.setProperty("checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}setDisabledState(t){(this.setDisabledStateFired||t||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",t),this.setDisabledStateFired=!0}fireUncheck(t){this.writeValue(t)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(n){return new(n||i)(A(ye),A(K),A(co),A(Xe))};static \u0275dir=Y({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(n,o){n&1&&W("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[re([lo]),ie]})}return i})(),ho={provide:Ve,useExisting:ue(()=>po),multi:!0},po=(()=>{class i extends rt{writeValue(t){this.setProperty("value",parseFloat(t))}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=je(i)))(o||i)}})();static \u0275dir=Y({type:i,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(n,o){n&1&&W("change",function(c){return o.onChange(c.target.value)})("input",function(c){return o.onChange(c.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([ho]),ie]})}return i})(),li=new Ce(""),fo={provide:_e,useExisting:ue(()=>go)},go=(()=>{class i extends _e{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(t){}model;update=new Me;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,n,o,s,c){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=c,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=ai(this,o)}ngOnChanges(t){if(this._isControlChanged(t)){let n=t.form.previousValue;n&&Mt(n,this,!1),st(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ri(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Mt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||i)(A(Fe,10),A(ke,10),A(Ve,10),A(li,8),A(Re,8))};static \u0275dir=Y({type:i,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[re([fo]),ie,Qe]})}return i})(),mo={provide:oe,useExisting:ue(()=>sn)},sn=(()=>{class i extends oe{callSetDisabledState;get submitted(){return be(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}_submitted=F(()=>this._submittedReactive());_submittedReactive=T(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new Me;constructor(t,n,o){super(),this.callSetDisabledState=o,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(wt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let n=this.form.get(t.path);return st(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){Mt(t.control||null,t,!1),Jn(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){return this._submittedReactive.set(!0),on(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new bt(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0,n={}){this.form.reset(t,n),this._submittedReactive.set(!1),n?.emitEvent!==!1&&this.form._events.next(new St(this.form))}_updateDomValue(){this.directives.forEach(t=>{let n=t.control,o=this.form.get(t.path);n!==o&&(Mt(n||null,t),io(o)&&(st(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let n=this.form.get(t.path);nn(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let n=this.form.get(t.path);n&&Zn(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){si(this.form,this),this._oldForm&&wt(this._oldForm,this)}static \u0275fac=function(n){return new(n||i)(A(Fe,10),A(ke,10),A(Re,8))};static \u0275dir=Y({type:i,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&W("submit",function(c){return o.onSubmit(c)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[re([mo]),ie,Qe]})}return i})(),vo={provide:oe,useExisting:ue(()=>rn)},rn=(()=>{class i extends no{name=null;constructor(t,n,o){super(),this._parent=t,this._setValidators(n),this._setAsyncValidators(o)}_checkParentType(){ln(this._parent)}static \u0275fac=function(n){return new(n||i)(A(oe,13),A(Fe,10),A(ke,10))};static \u0275dir=Y({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[re([vo]),ie]})}return i})(),_o={provide:oe,useExisting:ue(()=>an)},an=(()=>{class i extends oe{_parent;name=null;constructor(t,n,o){super(),this._parent=t,this._setValidators(n),this._setAsyncValidators(o)}ngOnInit(){ln(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Ot(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||i)(A(oe,13),A(Fe,10),A(ke,10))};static \u0275dir=Y({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[re([_o]),ie]})}return i})();function ln(i){return!(i instanceof rn)&&!(i instanceof sn)&&!(i instanceof an)}var Co={provide:_e,useExisting:ue(()=>yo)},yo=(()=>{class i extends _e{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(t){}model;update=new Me;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,n,o,s,c){super(),this._ngModelWarningConfig=c,this._parent=t,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=ai(this,s)}ngOnChanges(t){this._added||this._setUpControl(),ri(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Ot(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(n){return new(n||i)(A(oe,13),A(Fe,10),A(ke,10),A(Ve,10),A(li,8))};static \u0275dir=Y({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[re([Co]),ie,Qe]})}return i})();var cn=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ze({type:i});static \u0275inj=Ye({})}return i})(),Kt=class extends $e{constructor(e,t,n){super(ni(t),oi(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(e){return this.controls[this._adjustIndex(e)]}push(e,t={}){Array.isArray(e)?e.forEach(n=>{this.controls.push(n),this._registerControl(n)}):(this.controls.push(e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,n={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,t={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,n={}){let o=this._adjustIndex(e);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),t&&(this.controls.splice(o,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){en(this,!1,e),e.forEach((n,o)=>{Ji(this,!1,o),this.at(o).setValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(e.forEach((n,o)=>{this.at(o)&&this.at(o).patchValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((n,o)=>{n.reset(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((t,n)=>n._syncPendingControls()?!0:t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function Bi(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var zr=(()=>{class i{useNonNullable=!1;get nonNullable(){let t=new i;return t.useNonNullable=!0,t}group(t,n=null){let o=this._reduceControls(t),s={};return Bi(n)?s=n:n!==null&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new We(o,s)}record(t,n=null){let o=this._reduceControls(t);return new Zt(o,n)}control(t,n,o){let s={};return this.useNonNullable?(Bi(n)?s=n:(s.validators=n,s.asyncValidators=o),new ot(t,te(X({},s),{nonNullable:!0}))):new ot(t,n,o)}array(t,n,o){let s=t.map(c=>this._createControl(c));return new Kt(s,n,o)}_reduceControls(t){let n={};return Object.keys(t).forEach(o=>{n[o]=this._createControl(t[o])}),n}_createControl(t){if(t instanceof ot)return t;if(t instanceof $e)return t;if(Array.isArray(t)){let n=t[0],o=t.length>1?t[1]:null,s=t.length>2?t[2]:null;return this.control(n,o,s)}else return this.control(t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Le({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var $r=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:Re,useValue:t.callSetDisabledState??at}]}}static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ze({type:i});static \u0275inj=Ye({imports:[cn]})}return i})(),Wr=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:li,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Re,useValue:t.callSetDisabledState??at}]}}static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ze({type:i});static \u0275inj=Ye({imports:[cn]})}return i})();var ce=["*"],Do=[[["","icon",""]],[["sh-icon"]],[["","title",""]],"*",[["","content",""]],[["p"]]],bo=["[icon]","sh-icon","[title]","*","[content]","p"];function So(i,e){i&1&&(E(0,"sh-icon",3),P(1,"info"),V())}function Mo(i,e){i&1&&(E(0,"sh-icon",3),P(1,"info"),V())}function Eo(i,e){i&1&&(E(0,"sh-icon",3),P(1,"warning"),V())}function wo(i,e){i&1&&(E(0,"sh-icon",3),P(1,"warning-octagon"),V())}function xo(i,e){i&1&&(E(0,"sh-icon",3),P(1,"check-circle"),V())}function Oo(i,e){i&1&&(E(0,"sh-icon",3),P(1,"question"),V())}function Vo(i,e){if(i&1){let t=he();E(0,"sh-icon",7),W("click",function(){j(t);let o=D();return U(o.removeAlert())}),P(1,"plus"),V()}}var To=["dialogRef"];function No(i,e){if(i&1){let t=he();z(0,"div",5),Pe("click",function(){j(t);let o=D(2);return U(o.isOpen.set(!1))}),$()}}function Ao(i,e){if(i&1&&(z(0,"dialog",2,0)(2,"div",3),b(3),$(),R(4,No,1,0,"div",4),$()),i&2){let t=D(),n=Q(0);ve(n.class),se("width",n.width??"")("max-width",n.maxWidth??"")("max-height",n.maxHeight??"")("height",n.height??""),S(4),L(t.defaultOptionMerge().closeOnOutsideClick?4:-1)}}var Io=["shButton",""];var Po=["triggerRef"],Fo=["popoverRef"],ko=["popoverContentRef"],Ro=[[["","trigger",""]],[["button"]],[["","shButton",""]],"*"],Lo=["[trigger]","button","[shButton]","*"];function Ho(i,e){if(i&1){let t=he();z(0,"div",6,1)(2,"div",7),Pe("click",function(o){j(t);let s=D();return U(s.eventClose(o))}),$(),z(3,"div",8,2),b(5,3),$()()}if(i&2){let t=D();Ee("id",t.id()+"hello"),S(3),Vi(t.menuStyle()),se("position-anchor",t.id())}}var Bo=()=>({closeOnButton:!1,closeOnEsc:!0});var jo=[[["label"]],[["","boxPrefix",""]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","boxSuffix",""]],[["","error",""]],[["","hint",""]]],Uo=["label","[boxPrefix]","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[boxSuffix]","[error]","[hint]"],zo=["input"],$o=[[["label"]]],Wo=["label"];function Go(i,e){if(i&1&&(E(0,"div",3),P(1),V()),i&2){let t=D();S(),Ke(t.files()[0].name)}}function qo(i,e){if(i&1&&(E(0,"div",3),P(1),V()),i&2){let t=D();S(),we("",t.files().length," files selected")}}function Yo(i,e){if(i&1&&(E(0,"div",4),P(1),V()),i&2){let t=D();S(),Ke(t.filesOver()?t.overlayText():t.placeholder())}}var Xo=["inputRef"],Qo=["optionsRef"],Zo=["*",[["","menu",""]]],Ko=["*","[menu]"];function Jo(i,e){i&1&&(E(0,"sh-icon",5),P(1,"caret-down"),V())}var es=[[["label"]],[["input","type","range"]]],ts=["label","input[type=range]"],is=["optionsWrap"],ns=[[["label"]],[["","prefix",""]],[["","boxPrefix",""]],[["input"]],[["textarea"]]],os=["label","[prefix]","[boxPrefix]","input","textarea"],ss=()=>({closeOnButton:!1,closeOnEsc:!1}),dn=(i,e)=>({$implicit:i,last:e}),pi=i=>({$implicit:i});function rs(i,e){if(i&1&&P(0),i&2){let t=D();we(" ",t.inputValue()," ")}}function as(i,e){i&1&&Ie(0)}function ls(i,e){if(i&1&&Te(0,as,1,0,"ng-container",13),i&2){let t=D(3),n=t.$implicit,o=t.$index,s=t.$count;D(2);let c=Q(3);ge("ngTemplateOutlet",c)("ngTemplateOutletContext",Wt(2,dn,n,o===s-1))}}function cs(i,e){if(i&1&&P(0),i&2){let t=D(3).$implicit,n=D(2);we(" ",n.getLabel(t)," ")}}function ds(i,e){if(i&1){let t=he();E(0,"sh-chip",12),W("click",function(o){j(t);let s=D(2).$index,c=D(2);return U(c.removeSelectedOptionByIndex(o,s))}),R(1,ls,1,5,"ng-container")(2,cs,1,1),E(3,"sh-icon"),P(4,"x-bold"),V()()}if(i&2){let t=D(4),n=Q(3);ve(t.selectClasses()),S(),L(n?1:2)}}function us(i,e){i&1&&Ie(0)}function hs(i,e){if(i&1&&Te(0,us,1,0,"ng-container",13),i&2){let t=D(4),n=t.$implicit,o=t.$index,s=t.$count;D(2);let c=Q(3);ge("ngTemplateOutlet",c)("ngTemplateOutletContext",Wt(2,dn,n,o===s-1))}}function ps(i,e){if(i&1&&P(0),i&2){let t=D(4),n=t.$implicit,o=t.$index,s=t.$count,c=D(2);we(" ",o===s-1?c.getLabel(n):c.getLabel(n)+","," ")}}function fs(i,e){if(i&1&&R(0,hs,1,5,"ng-container")(1,ps,1,1),i&2){D(5);let t=Q(3);L(t?0:1)}}function gs(i,e){if(i&1&&R(0,fs,2,1),i&2){D(4);let t=Q(6);L(t?-1:0)}}function ms(i,e){if(i&1&&R(0,ds,5,3,"sh-chip",11)(1,gs,1,1),i&2){D(3);let t=Q(5);L(t?0:1)}}function vs(i,e){if(i&1&&R(0,ms,2,1),i&2){let t=e.$implicit;L(t?0:-1)}}function _s(i,e){if(i&1&&Ht(0,vs,1,1,null,null,Lt),i&2){D();let t=Q(2);Bt(t)}}function Cs(i,e){i&1&&Ie(0)}function ys(i,e){if(i&1&&Te(0,Cs,1,0,"ng-container",14),i&2){D(2);let t=Q(0);ge("ngTemplateOutlet",t)}}function Ds(i,e){if(i&1&&P(0),i&2){let t=D(2);we(" ",t.placeholderText()??""," ")}}function bs(i,e){if(i&1&&R(0,ys,1,1,"ng-container")(1,Ds,1,1),i&2){D();let t=Q(0);L(t?0:1)}}function Ss(i,e){i&1&&(E(0,"sh-icon",6),P(1,"caret-down"),V())}function Ms(i,e){i&1&&Ne(0,"sh-spinner",7)}function Es(i,e){i&1&&(E(0,"sh-icon",6),P(1,"list-magnifying-glass"),V())}function ws(i,e){i&1&&(E(0,"sh-icon",6),P(1,"magnifying-glass"),V())}function xs(i,e){if(i&1){let t=he();E(0,"sh-icon",15),W("click",function(o){j(t);let s=D();return U(s.clear(o))}),P(1,"x-bold"),V()}}function Os(i,e){i&1&&(E(0,"sh-icon",6),P(1,"caret-down"),V())}function Vs(i,e){i&1&&(E(0,"sh-icon",6),P(1,"caret-up"),V())}function Ts(i,e){if(i&1&&(E(0,"p",9),P(1),V()),i&2){let t=D(3);S(),Ke(t.freeTextTitle())}}function Ns(i,e){i&1&&Ie(0)}function As(i,e){if(i&1&&Te(0,Ns,1,0,"ng-container",13),i&2){D(2);let t=Q(0);D();let n=Q(1);ge("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(2,pi,t))}}function Is(i,e){i&1&&Ie(0)}function Ps(i,e){if(i&1&&Te(0,Is,1,0,"ng-container",13),i&2){D(2);let t=Q(0);D();let n=Q(4);ge("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(2,pi,t))}}function Fs(i,e){if(i&1&&P(0),i&2){D(2);let t=Q(1);we(" ",t," ")}}function ks(i,e){i&1&&Ne(0,"sh-divider")}function Rs(i,e){if(i&1){let t=he();R(0,Ts,2,1,"p",9),E(1,"li",16),W("click",function(){j(t);let o=D(2);return U(o.toggleOptionByIndex(-1))}),R(2,As,1,4,"ng-container")(3,Ps,1,4,"ng-container")(4,Fs,1,1),V(),R(5,ks,1,0,"sh-divider")}if(i&2){D();let t=Q(0),n=D(),o=Q(1),s=Q(4);L(n.freeTextTitle()?0:-1),S(),q("selected",n.isSelected(-1))("focused",n.focusedOptionIndex()===-1),ge("id",n.getLabelAsSlug(t)),Ee("aria-selected",n.isSelected(-1)),S(),L(o?2:s?3:4),S(3),L(n.freeTextTitle()&&n.filteredOptions().length>0?5:-1)}}function Ls(i,e){if(i&1&&(gt(0)(1),R(2,Rs,6,9)),i&2){let t=D(),n=me(t.computedFreeTextOption());S();let o=me(t.getValue(n));S(),L(o.length>0?2:-1)}}function Hs(i,e){if(i&1&&(E(0,"p",9),P(1),V()),i&2){let t=D();S(),Ke(t.optionTitle())}}function Bs(i,e){if(i&1&&Ne(0,"sh-checkbox"),i&2){let t=D().$index,n=D();ve(n.selectClasses()),q("active",n.isSelected(t))}}function js(i,e){i&1&&Ie(0)}function Us(i,e){if(i&1&&Te(0,js,1,0,"ng-container",13),i&2){let t=D().$implicit;D();let n=Q(4);ge("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(2,pi,t))}}function zs(i,e){if(i&1&&P(0),i&2){let t=D().$implicit,n=D();we(" ",n.getLabel(t)," ")}}function $s(i,e){if(i&1){let t=he();E(0,"li",16),W("click",function(){let o=j(t).$index,s=D();return U(s.toggleOptionByIndex(o))}),R(1,Bs,1,4,"sh-checkbox",17),R(2,Us,1,4,"ng-container")(3,zs,1,1),V()}if(i&2){let t=e.$implicit,n=e.$index,o=D(),s=Q(4);q("selected",o.isSelected(n))("focused",n===o.focusedOptionIndex()),ge("id",o.getLabelAsSlug(t)),Ee("aria-selected",o.isSelected(n)),S(),L(o.selectMultiple()?1:-1),S(),L(s?2:3)}}var Ws=["dragImageElement"],Gs=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],qs=["[sidenav]","[sidenav-closed-topbar]","*"];function Ys(i,e){i&1&&Ae(0,"div",1,0)}function Xs(i,e){if(i&1){let t=he();z(0,"div",7),Pe("drop",function(o){j(t);let s=D();return U(s.drop(o))})("dragenter",function(){j(t);let o=D();return U(o.dragEnter())})("dragleave",function(){j(t);let o=D();return U(o.dragLeave())}),$()}}function Qs(i,e){if(i&1){let t=he();z(0,"div",8),Pe("dragstart",function(o){j(t);let s=D();return U(s.dragStart(o))})("dragend",function(o){j(t);let s=D();return U(s.dragEnd(o))})("drag",function(o){j(t);let s=D();return U(s.drag(o))})("touchstart",function(o){j(t);let s=D();return U(s.touchStart(o))})("touchmove",function(o){j(t);let s=D();return U(s.touchMove(o))})("touchend",function(o){j(t);let s=D();return U(s.touchEnd(o))})("touchcancel",function(o){j(t);let s=D();return U(s.touchCancel(o))}),$()}}var Zs=["thead"],Ks=["tbody"],Js=[[["th"]],[["","thead",""]],"*",[["","table-no-rows",""]]],er=["th","[thead]","*","[table-no-rows]"];function tr(i,e){i&1&&Ne(0,"sh-progress-bar",2)}function ir(i,e){i&1&&(E(0,"div",3),b(1,3),V())}var nr=[[["","title",""]],"*"],or=["[title]","*"];function sr(i,e){i&1&&P(0,"Title")}function rr(i,e){i&1&&(E(0,"sh-icon",1),P(1,"caret-down"),V())}var ar=["bold","thin","light","fill","duotone"],qe=(()=>{var e,t;let n=class n{constructor(){w(this,e,I(K));w(this,t,I(ye))}ngAfterContentInit(){let s=m(this,e).nativeElement.textContent?.trim();if(!s)return;let c=s.split("-").at(-1);c&&ar.includes(c)&&m(this,t).addClass(m(this,e).nativeElement,c)}};e=new WeakMap,t=new WeakMap,n.\u0275fac=function(c){return new(c||n)},n.\u0275cmp=H({type:n,selectors:[["sh-icon"]],ngContentSelectors:ce,decls:1,vars:0,template:function(c,y){c&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=n;return i})();function At(i=null){let e=i??I(K).nativeElement;if(!e)return T("");let t=T(e.className);if(typeof MutationObserver>"u")return t.asReadonly();let n=I(Be),o=new MutationObserver(s=>{for(let c of s)if(c.type==="attributes"&&c.attributeName==="class"){let y=c.target;t.set(y.className)}});return o.observe(e,{attributes:!0,attributeFilter:["class"]}),n.onDestroy(()=>o.disconnect()),t.asReadonly()}var It=new Ce("Ship UI Config"),lr=["simple","outlined","flat","raised"],Ca=(()=>{var e;let t=class t{constructor(){w(this,e);x(this,e,I(It,{optional:!0})),this.variant=T(m(this,e)?.alertVariant??""),this._el=I(K),this.alertService=O(null),this.id=O(null),this.currentClasses=At(),this.activeClass=F(()=>{let o=this.variant(),s=`${this.currentClasses()} sh-sheet`;return o?lr.find(y=>this.currentClasses().includes(y))?s:`${s} ${o}`:s})}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=H({type:t,selectors:[["sh-alert"]],hostVars:2,hostBindings:function(s,c){s&2&&ve(c.activeClass())},inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:bo,decls:19,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(s,c){if(s&1&&(G(Do),E(0,"div",1)(1,"div",2,0),b(3),b(4,1),V(),E(5,"div",2),R(6,So,2,0,"sh-icon",3)(7,Mo,2,0,"sh-icon",3)(8,Eo,2,0,"sh-icon",3)(9,wo,2,0,"sh-icon",3)(10,xo,2,0,"sh-icon",3)(11,Oo,2,0,"sh-icon",3),V(),E(12,"div",4),b(13,2),b(14,3),V(),R(15,Vo,2,0,"sh-icon",5),E(16,"div",6),b(17,4),b(18,5),V()()),s&2){let y=Oi(2);S(),se("display",y.children.length?"block":"none");let C=c.currentClasses();S(5),L(C.includes("primary")?6:C.includes("accent")?7:C.includes("warn")?8:C.includes("error")?9:C.includes("success")?10:11),S(9),L(c.id()?15:-1)}},dependencies:[qe],encapsulation:2,changeDetection:0});let i=t;return i})();function Pt(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var ya=(()=>{let e=class e{constructor(){this.alertHistory=T([]),this.alertHistoryIsOpen=T(!1),this.alertHistoryIsHidden=T(!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 o=Pt();this.alertHistory.update(s=>[te(X({},n),{isOpen:!0,animateIn:!0,animateOut:!1,id:o}),...s]),setTimeout(()=>{this.alertHistory.update(s=>s.map(c=>te(X({},c),{animateIn:c.id===o?!1:c.animateIn})))},40),setTimeout(()=>{this.hideAlert(o)},2500)}removeAlert(n){this.alertHistory.update(o=>o.map(s=>te(X({},s),{animateOut:s.id===n?!1:s.animateOut}))),setTimeout(()=>{this.alertHistory.update(o=>o.filter(s=>s.id!==n))},300)}hideAlert(n){this.alertHistory.update(o=>o.map(s=>te(X({},s),{isOpen:s.id===n?!1:s.isOpen})))}setHidden(n){this.alertHistoryIsHidden.set(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=Le({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),cr={class:"default",width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},dr=(()=>{var e,t;let n=class n{constructor(){w(this,e);w(this,t);x(this,e,I(He)),x(this,t,I(It,{optional:!0})),this.dialogRef=fe("dialogRef"),this.isOpen=ne(!1),this.options=O(),this.closed=xe(),this.defaultOptionMerge=F(()=>X(te(X({},cr),{class:m(this,t)?.dialogType??"default"}),this.options())),this.abortController=null,this.isOpenEffect=J(()=>{let s=this.dialogRef()?.nativeElement;s&&(this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(s.showModal(),s.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),m(this,e).addEventListener("keydown",c=>{c.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&c.preventDefault(),c.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(s.close(),queueMicrotask(()=>this.closed.emit())))})}ngOnDestroy(){this.abortController?.abort()}};e=new WeakMap,t=new WeakMap,n.\u0275fac=function(c){return new(c||n)},n.\u0275cmp=H({type:n,selectors:[["sh-dialog"]],viewQuery:function(c,y){c&1&&pe(y.dialogRef,To,5),c&2&&De()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ce,decls:2,vars:2,consts:[["dialogRef",""],["shDialog","",3,"class","width","max-width","max-height","height"],["shDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(c,y){c&1&&(G(),gt(0),R(1,Ao,5,11,"dialog",1)),c&2&&(me(y.defaultOptionMerge()),S(),L(y.isOpen()?1:-1))},encapsulation:2,changeDetection:0});let i=n;return i})(),Da=(()=>{var e,t,n,o,un,lt;let y=class y{constructor(){w(this,o);w(this,e);w(this,t);w(this,n);x(this,e,I(He)),x(this,t,m(this,e).querySelector("body")),x(this,n,I(Rt)),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}open(r,d){let u=m(this,n).injector,p=M(this,o,un).call(this),g=!1,Z=d||{},{data:v,closed:a}=Z,l=gi(Z,["data","closed"]);this.compRef&&M(this,o,lt).call(this,!0),this.insertedCompRef=Yt(r,{environmentInjector:u}),this.compRef=Yt(dr,{hostElement:p,environmentInjector:u,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let f=this.insertedCompRef.instance?.data,h=this.insertedCompRef.instance?.closed;if(v){if(Ft(f))this.insertedCompRef.setInput("data",v);else if(!Ft(f))throw new Error("data is not an input signal on the passed component")}h instanceof Gt&&(this.closedFieldSub=h.subscribe((...B)=>{M(this,o,lt).call(this),!g&&(g=!0,a?.(...B),this.compRef?.instance.closed.emit(...B))})),m(this,n).attachView(this.insertedCompRef.hostView),m(this,n).attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",l),this.compClosedSub=this.compRef.instance.closed.subscribe(()=>N());let _=this;function N(B=void 0){var k;M(k=_,o,lt).call(k),!g&&(g=!0,h&&h instanceof Gt&&h.emit(B),a?.(B))}return{component:this.insertedCompRef.instance,close:N,closed:this.compRef.instance.closed}}ngOnDestroy(){M(this,o,lt).call(this,!0)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakSet,un=function(){let r=m(this,e).createElement("sh-dialog-ref");return r.id="sh-dialog-ref",m(this,e).getElementById("sh-dialog-ref")||m(this,t)?.append(r),m(this,e).getElementById("sh-dialog-ref")},lt=function(r=!1){let d=this;r||queueMicrotask(()=>u());function u(){d.insertedCompRef&&(m(d,n).detachView(d.insertedCompRef.hostView),d.closedFieldSub?.unsubscribe(),d.insertedCompRef.destroy()),d.compRef&&(m(d,n).detachView(d.compRef.hostView),d.compClosedSub?.unsubscribe(),d.compRef.destroy())}},y.\u0275fac=function(d){return new(d||y)},y.\u0275prov=Le({token:y,factory:y.\u0275fac,providedIn:"root"});let i=y;return i})();var ba=(()=>{let e=class e{constructor(){this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-button-group"]],hostVars:2,hostBindings:function(o,s){o&2&&se("--btng-id",s.id)},ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),Sa=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["","shButton",""]],hostAttrs:[1,"sh-sheet-h"],attrs:Io,ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),Ma=(()=>{var e;let t=class t{constructor(){w(this,e);x(this,e,I(It,{optional:!0})),this.class=T(m(this,e)?.cardType??"type-a")}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=H({type:t,selectors:[["sh-card"]],hostVars:2,hostBindings:function(s,c){s&2&&ve(c.class())},ngContentSelectors:ce,decls:1,vars:0,template:function(s,c){s&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=t;return i})(),ur=(()=>{let e=class e{constructor(){this.currentClassList=At()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-checkbox"]],ngContentSelectors:ce,decls:7,vars:2,consts:[[1,"box","sh-sheet"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"],[1,"label"]],template:function(o,s){o&1&&(G(),E(0,"div",0)(1,"sh-icon",1),P(2,"check-bold"),V(),E(3,"sh-icon",2),P(4,"minus-bold"),V()(),E(5,"div",3),b(6),V()),o&2&&ve(s.currentClassList())},dependencies:[qe],encapsulation:2,changeDetection:0});let i=e;return i})(),hr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-chip"]],hostAttrs:[1,"sh-sheet"],ngContentSelectors:ce,decls:2,vars:0,template:function(o,s){o&1&&(G(),z(0,"div"),b(1),$())},encapsulation:2,changeDetection:0});let i=e;return i})();var Vt=4,pr=["scroll","auto"],fr={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},hn=(()=>{var e,t,pn,fn,gn,mn,vn,Tt;let r=class r{constructor(){w(this,t);w(this,e);x(this,e,I(He)),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.asMultiLayer=O(!1),this.disableOpenByClick=O(!1),this.isOpen=ne(!1),this.options=O(),this.closed=xe(),this.defaultOptionMerge=F(()=>X(X({},fr),this.options())),this.triggerRef=fe.required("triggerRef"),this.popoverRef=fe("popoverRef"),this.popoverContentRef=fe("popoverContentRef"),this.id=T("--"+Pt()),this.menuStyle=T(null),this.openAbort=null,this.openEffect=J(()=>{let u=this.isOpen();queueMicrotask(()=>{let p=this.popoverRef()?.nativeElement;if(!p){this.openAbort?.abort(),this.openAbort=null;return}u?(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,m(this,e).addEventListener("keydown",g=>{g.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&g.preventDefault(),g.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.openAbort?.signal}),p.showPopover(),this.SUPPORTS_ANCHOR||setTimeout(()=>{M(this,t,pn).call(this,p).addEventListener("scroll",()=>M(this,t,Tt).call(this),{signal:this.openAbort?.signal}),window?.addEventListener("resize",()=>M(this,t,Tt).call(this),{signal:this.openAbort?.signal}),M(this,t,Tt).call(this)})):(this.closed.emit(),this.openAbort?.abort(),this.openAbort=null)})})}toggleIsOpen(u){this.disableOpenByClick()||(u.preventDefault(),u.stopPropagation(),this.isOpen.set(!this.isOpen()))}eventClose(u){this.isOpen()&&this.isOpen.set(!1)}ngOnDestroy(){this.openAbort?.abort(),this.openAbort=null}};e=new WeakMap,t=new WeakSet,pn=function(u){let p=u.parentElement;for(;p;){if(pr.indexOf(window?.getComputedStyle(p).overflowY)>-1&&p.scrollHeight>p.clientHeight)return p;p=p.parentElement}return m(this,e).documentElement},fn=function(u,p){let g=u.left,v=u.bottom+Vt;return{left:g,top:v}},gn=function(u,p){let g=u.right+Vt,v=u.top;return{left:g,top:v}},mn=function(u,p){let g=u.right+Vt,v=u.bottom;return{left:g,top:v}},vn=function(u,p){let g=u.left,v=u.bottom-u.height-p.height-Vt;return{left:g,top:v}},Tt=function(){let u=this.triggerRef()?.nativeElement.getBoundingClientRect(),p=this.popoverContentRef()?.nativeElement.getBoundingClientRect(),g=[M(this,t,gn),M(this,t,mn)],v=[M(this,t,fn),M(this,t,vn)],a=this.asMultiLayer()?g:v;for(let f=0;f<a.length;f++){let h=a[f](u,p),_=h.left+(p?.width||0)>window.innerWidth,N=h.top+(p?.height||0)>window.innerHeight;if(!_&&!N){this.menuStyle.set({left:h.left+"px",top:h.top+"px"});return}}let l=a[0](u,p);this.menuStyle.set({left:l.left+"px",top:l.top+"px"})},r.\u0275fac=function(p){return new(p||r)},r.\u0275cmp=H({type:r,selectors:[["sh-popover"]],viewQuery:function(p,g){p&1&&(pe(g.triggerRef,Po,5),pe(g.popoverRef,Fo,5),pe(g.popoverContentRef,ko,5)),p&2&&De(3)},hostVars:2,hostBindings:function(p,g){p&2&&q("multi-layer",g.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Lo,decls:8,vars:4,consts:[["triggerRef",""],["popoverRef",""],["popoverContentRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],[1,"trigger-anchor"],["popover","manual",1,"popover"],[1,"overlay",3,"click"],[1,"popover-content"]],template:function(p,g){if(p&1){let v=he();G(Ro),z(0,"div",3,0),Pe("click",function(l){return j(v),U(g.toggleIsOpen(l))}),z(2,"div",4),b(3),b(4,1),b(5,2),$(),Ae(6,"div",5),$(),R(7,Ho,6,5,"div",6)}p&2&&(Ee("popovertarget",g.id()+"hello"),S(6),se("anchor-name",g.id()),S(),L(g.isOpen()?7:-1))},encapsulation:2,changeDetection:0});let i=r;return i})();var gr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-divider"]],ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})();var fi=(()=>{var e;let t=class t{constructor(){w(this,e,I(K));kt(()=>{let o=typeof CSS<"u"&&CSS.supports("field-sizing","content"),s=m(this,e).nativeElement.querySelector("textarea");if(!o&&s!==null){let C=function(){s.style.height="auto",s.style.height=s.scrollHeight+"px"},r=function(){setTimeout(C,0)};var c=C,y=r;s.addEventListener("change",C),s.addEventListener("cut",r),s.addEventListener("paste",r),s.addEventListener("drop",r),s.addEventListener("keydown",r),s.focus(),s.select(),C()}})}onClick(){m(this,e).nativeElement.querySelector("input")&&m(this,e).nativeElement.querySelector("input").focus(),m(this,e).nativeElement.querySelector("textarea")&&m(this,e).nativeElement.querySelector("textarea").focus()}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=H({type:t,selectors:[["sh-form-field"]],hostBindings:function(s,c){s&1&&W("click",function(){return c.onClick()})},ngContentSelectors:Uo,decls:17,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(s,c){s&1&&(G(jo),b(0),z(1,"div",0)(2,"div",1),b(3,1),b(4,2),b(5,3),$(),b(6,4),b(7,5),z(8,"div",2),b(9,6),b(10,7),b(11,8),$()(),z(12,"div",3)(13,"div",4),b(14,9),$(),z(15,"div",5),b(16,10),$()())},encapsulation:2,changeDetection:0});let i=t;return i})(),Ea=(()=>{let e=class e{constructor(){this._el=I(K),this.inputRef=fe.required("input"),this.filesOver=T(!1),this.multiple=O(),this.accept=O(null),this.placeholder=ne("Click or drag files here"),this.overlayText=O("Drop files here"),this.files=ne([]),this.fileUploadClasses=F(()=>this._el.nativeElement.classList.toString()),this.inputEffect=J(()=>{let n=this.inputRef().nativeElement;n&&(n.placeholder&&this.placeholder.set(n.placeholder),n.addEventListener("dragover",o=>{o.preventDefault(),this.filesOver.set(!0)}),n.addEventListener("dragleave",o=>{o.preventDefault(),this.filesOver.set(!1)}),n.addEventListener("drop",o=>{o.preventDefault(),this.filesOver.set(!1);let s=o.dataTransfer?.files;s&&s.length>0&&(this.handleFileUpload(Array.from(s)),n.files=s)}),n.addEventListener("change",o=>{o.preventDefault(),this.handleFileUpload(Array.from(o.target.files))}))})}handleFileUpload(n){this.multiple()?this.files.update(o=>[...o,...n]):this.files.set(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-file-upload"]],viewQuery:function(o,s){o&1&&pe(s.inputRef,zo,5),o&2&&De()},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:Wo,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(o,s){o&1&&(G($o),E(0,"sh-form-field"),b(1,0,["ngProjectAs","label",5,["label"]]),E(2,"div",2,0),R(4,Go,2,1,"div",3)(5,qo,2,1,"div",3)(6,Yo,2,1,"div",4),Ne(7,"input",5,1)(9,"div",6),V(),E(10,"sh-icon",7),P(11,"upload-simple"),V()()),o&2&&(ve(s.fileUploadClasses()),S(4),L(s.files().length===1?4:s.files().length>1?5:6),S(3),Ee("multiple",s.multiple())("accept",s.accept()),S(2),q("files-over",s.filesOver()))},dependencies:[fi,qe],encapsulation:2,changeDetection:0});let i=e;return i})(),wa=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-list"]],ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})();function _n(i,e){let t=e?.injector||(Si(_n),I(Xe)),{debounce:n=0,initialValue:o=void 0,transform:s=h=>h,compare:c=(h,_)=>h===_,forceType:y=void 0,returnPreviousValue:C=!0}=e||{},r=T(o),d=t.get(Be),u=F(()=>{let h=i()?.nativeElement;if(h instanceof HTMLInputElement||h instanceof HTMLTextAreaElement)return l(h)}),p=!1,g,v=null;return J(()=>{let h=u();if(!h)return r.set(C&&g?s(g):void 0);o!==void 0&&h.value===""?r.set(o):h.value!==""&&a();let _=N=>{v!==null&&clearTimeout(v),v=setTimeout(()=>{v=null,a()},n)};h.addEventListener("input",_),h.addEventListener("inputValueChanged",_),d.onDestroy(()=>{h.removeEventListener("input",_),h.removeEventListener("inputValueChanged",_),v!==null&&clearTimeout(v)})},{injector:t}),J(()=>{let h=u();if(!h)return;let _=r()??"",N=_==null?"":String(_);h.value!==N&&(g=N,h.value=N,h.dispatchEvent(new Event("input")))},{injector:t}),r;function a(){if(!p){p=!0;try{let h=u();if(!h)return;let _=h.value,N=y?f(_,y):s(_);g=_,c(r(),N)||r.set(N)}finally{p=!1}}}function l(h){return Object.defineProperty(h,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(h),"value").get.call(this)},set(_){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(h),"value").set.call(this,_);let Z=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:_}});return this.dispatchEvent(Z),_}}),h}function f(h,_){switch(_){case"string":return h.toString();case"number":let N=Number(h);return isNaN(N)?void 0:N;case"boolean":return h.toLowerCase()==="true"?!0:h.toLowerCase()==="false"?!1:void 0;default:return h}}}function Cn(i,e){let t=I(Xe),n=t.get(Be),o=T([]),s=null,c=null,y=(r,d)=>{c&&c.disconnect();let u=Array.from(r.nativeElement.querySelectorAll(d.join(",")));o.set(u),typeof MutationObserver<"u"&&(c=new MutationObserver(p=>{queueMicrotask(()=>{let g=Array.from(r.nativeElement.querySelectorAll(d.join(",")));o.set(g)})}),c.observe(r.nativeElement,{childList:!0,subtree:!0})),n.onDestroy(()=>C())};s=J(()=>{let r=typeof i=="function"&&i[mi]?i():i,d=typeof e=="function"?e():e;r&&d?.length>0?y(r,d):(o.set([]),c&&(c.disconnect(),c=null))},{injector:t});function C(){s&&s.destroy(),c&&c.disconnect()}return{signal:o.asReadonly(),destroy:C}}var xa=(()=>{var e,t,n,yn,ci;let c=class c{constructor(){w(this,n);w(this,e);w(this,t);x(this,e,I(He)),x(this,t,I(ye)),this.asMultiLayer=O(!1),this.openIndicator=O(!1),this.disabled=O(!1),this.customOptionElementSelectors=O(["button"]),this.keepClickedOptionActive=O(!1),this.closeOnClick=O(!0),this.isOpen=ne(!1),this.closed=xe(),this.searchable=O(!1),this.activeOptionIndex=T(-1),this.inputRef=fe("inputRef"),this.optionsRef=fe("optionsRef"),this.options=Cn(this.optionsRef,this.customOptionElementSelectors),this.optionsEl=F(()=>this.options.signal().filter(C=>!C.disabled)),this.inputValue=_n(this.inputRef),this.abortController=null,this.optionsEffect=J(()=>{if(this.abortController!==null&&(this.abortController.abort(),this.abortController=null),!this.isOpen())return;this.abortController=new AbortController,this.searchable()||m(this,e).documentElement.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal});let r=this.inputRef()?.nativeElement;r&&(queueMicrotask(()=>r.focus()),r.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal}),this.closeOnClick()||this.optionsRef()?.nativeElement?.addEventListener("click",u=>{let p=u.target,g=this.activeElements();if(!g.length){let a=this.optionsEl();this.activeElements.set(a),g=a}let v=g.findIndex(a=>a===p);v>-1&&(this.activeOptionIndex.set(v),r.focus())}))}),this.keyDownEventListener=C=>{let r=this.activeOptionIndex();C.key==="ArrowDown"?(C.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(r))):C.key==="ArrowUp"?(C.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(r))):C.key==="Enter"?(C.preventDefault(),r>-1&&(this.activeElements()[r].click(),queueMicrotask(()=>this.close("active")))):C.key==="Tab"&&(C.preventDefault(),this.close("closed"))},this._lastElementList=[],this.activeElements=T([]),this.lastInputValue="",this.inputValueEffect=J(()=>{if(!this.searchable())return;let r=(this.inputValue()??"").toLowerCase();if(M(this,n,ci).call(this),!r||r===""){let u=this.optionsEl();this.activeElements.set(u),this._lastElementList=u;for(let p=0;p<u.length;p++)m(this,t).removeStyle(u[p],"order");return}if(!r||r==="")return;let d=this._lastElementList.length&&r.length>this.lastInputValue.length?this._lastElementList:this.optionsEl();this.lastInputValue=r;for(let u=0;u<d.length;u++){let p=d[u],g=p.textContent?.toLowerCase()||"",v=M(this,n,yn).call(this,g,r);p.value=v}d=d.filter(u=>u.value>0).sort((u,p)=>p.value-u.value);for(let u=0;u<d.length;u++)m(this,t).setStyle(d[u],"order",u);this.activeElements.set(d),this._lastElementList=d}),this.activeOptionIndexEffect=J(()=>{let C=this.activeElements(),r=this.activeOptionIndex();for(let d=0;d<C.length;d++)C[d].classList.remove("active");r>-1&&(C[r].scrollIntoView({block:"center"}),C[r].classList.add("active"))})}toggleIsOpen(C){C.preventDefault(),C.stopPropagation(),!this.disabled()&&(this.isOpen.set(!this.isOpen()),this.searchable()&&this.isOpen()&&setTimeout(()=>this.inputRef()?.nativeElement.focus()))}nextActiveIndex(C){let r=this.activeElements();if(!r.length){let u=this.optionsEl();this.activeElements.set(u),r=u}if(C===-1||C===r.length-1)return 0;let d=C+1;return r[d].disabled?this.nextActiveIndex(d):d}prevActiveIndex(C){let r=this.activeElements();if(!r.length){let u=this.optionsEl();this.activeElements.set(u),r=u}if(C===0||C===-1)return r.length-1;let d=C-1;return r[d].disabled?this.prevActiveIndex(d):d}close(C="closed",r){this.inputValue.set(""),this.closeOnClick()&&((!this.keepClickedOptionActive()||C==="closed")&&M(this,n,ci).call(this),this.isOpen.set(!1),this.closed.emit(C==="active"))}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null)}};e=new WeakMap,t=new WeakMap,n=new WeakSet,yn=function(C,r){if(!r)return 0;let d=0,u=-1,p=0,g=!0;for(let v=0;v<r.length;v++){let a=r[v];if(C.length>u+1&&C[u+1]===a)d+=v===0?100:150,u++,p++;else{let l=C.indexOf(a,u+1);if(v>0&&(g=!1),l===-1)return 0;d+=100,u=l,p++}}return g&&r.length===p&&(d+=1e3),d+=p*20,d},ci=function(){this.activeOptionIndex.set(-1);let C=this.optionsEl();for(let r=0;r<C.length;r++)C[r].classList.remove("active")},c.\u0275fac=function(r){return new(r||c)},c.\u0275cmp=H({type:c,selectors:[["sh-menu"]],viewQuery:function(r,d){r&1&&(pe(d.inputRef,Xo,5),pe(d.optionsRef,Qo,5)),r&2&&De(2)},hostVars:6,hostBindings:function(r,d){r&2&&q("disabled",d.disabled())("has-search",d.searchable())("multi-layer",d.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:Ko,decls:12,vars:12,consts:[["formFieldWrapper",""],["inputRef",""],["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(r,d){if(r&1){let u=he();G(Zo),E(0,"sh-popover",3,0),zt("isOpenChange",function(g){return j(u),Ut(d.isOpen,g)||(d.isOpen=g),U(g)}),W("closed",function(){return j(u),U(d.close("fromPopover"))}),E(2,"div",4),W("click",function(g){return j(u),U(d.toggleIsOpen(g))}),b(3),R(4,Jo,2,0,"sh-icon",5),V(),E(5,"div",6)(6,"sh-form-field",7),Ne(7,"input",8,1),V()(),E(9,"div",9,2),W("click",function(){return j(u),U(d.close("active"))}),b(11,1),V()()}r&2&&(jt("isOpen",d.isOpen),ge("disableOpenByClick",!0)("asMultiLayer",d.asMultiLayer())("options",$t(11,Bo)),S(2),q("is-open",d.isOpen()),S(2),L(d.openIndicator()?4:-1),S(2),q("hidden",d.searchable()===!1),S(3),q("searching",d.searchable()&&d.inputValue()!==""))},dependencies:[hn,fi,qe],encapsulation:2,changeDetection:0});let i=c;return i})(),mr=(()=>{let e=class e{constructor(){this.value=O(void 0)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(o,s){o&1&&Ae(0,"div",0),o&2&&se("width",s.value(),"%")},encapsulation:2,changeDetection:0});let i=e;return i})(),Oa=(()=>{let e=class e{constructor(){this.currentClassList=At()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-radio"]],ngContentSelectors:ce,decls:2,vars:2,consts:[[1,"radio","sh-sheet"]],template:function(o,s){o&1&&(G(),Ae(0,"div",0),b(1)),o&2&&ve(s.currentClassList())},encapsulation:2,changeDetection:0});let i=e;return i})(),Va=(()=>{var e,t,n,o,s,di,Dn,bn,Sn;let d=class d{constructor(){w(this,s);w(this,e);w(this,t);w(this,n);w(this,o);x(this,e,I(K)),x(this,t,null),x(this,n,null),x(this,o,0),this.unit=O(""),this.value=ne(m(this,o)),this.inputState=T({min:0,max:100,step:1}),this.valuePercentage=F(()=>{let{min:p,max:g}=this.inputState(),v=this.value()??p;if(isNaN(v))return 0;let a=g-p;if(a===0)return 0;let l=(v-p)/a*100;return Math.max(0,Math.min(100,l))}),this.trackFilledPercentage=F(()=>this.valuePercentage()),this.thumbPositionPercentage=F(()=>this.valuePercentage()),this.syncModelToInputEffect=J(()=>{let p=this.value();if(m(this,n)){let g=parseFloat(m(this,n).value);(isNaN(g)||String(g)!==String(p))&&(m(this,n).value=String(p))}})}get hasInputElement(){return!!m(this,n)}ngAfterViewInit(){x(this,n,m(this,e).nativeElement.querySelector('input[type="range"]')),m(this,n)?(M(this,s,Sn).call(this,m(this,n)),m(this,n).oninput=()=>{this.setNewInputValue(m(this,n).value)},m(this,n).addEventListener("inputValueChanged",p=>{this.setNewInputValue(p.detail.value)}),queueMicrotask(()=>M(this,s,di).call(this,!0)),M(this,s,Dn).call(this)):console.error('ShipRangeSlider: No <input type="range"> element found projected inside.')}setNewInputValue(p){let g=parseFloat(p??"0");if(!isNaN(g)){let{min:v,max:a}=this.inputState();this.value.set(Math.max(v,Math.min(a,g)))}}trackEvent(p){if(!m(this,n)||m(this,n).readOnly||m(this,n).disabled){p.preventDefault(),p.stopPropagation();return}if(p.target===m(this,n)||p.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let v=p.currentTarget.getBoundingClientRect(),a=p.clientX-v.left,l=v.width,{min:f,max:h,step:_}=this.inputState(),N=h-f;if(l>0&&N!==0&&_>0){let B=(a/l*N+f-f)/_,k=f+Math.round(B)*_,ee=M(this,s,bn).call(this,_);k=parseFloat(k.toFixed(ee));let de=Math.max(f,Math.min(h,k));this.value.set(de)}}ngOnDestroy(){m(this,t)&&m(this,t).disconnect(),m(this,n)&&(m(this,n).oninput=null)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,di=function(p=!1){if(!m(this,n))return;let g=parseFloat(m(this,n).min??"0")??0,v=parseFloat(m(this,n).max??"100")??100,a=m(this,n).step,l=1;if(a&&a.toLowerCase()!=="any"){let h=parseFloat(a);!isNaN(h)&&h>0&&(l=h)}this.inputState.set({min:g,max:v,step:l});let f=parseFloat(m(this,n).value??String(g))??g;if(p&&this.value()!==m(this,o)){let h=this.value(),_=Math.max(g,Math.min(v,h));f!==_&&(m(this,n).value=String(_)),h!==_&&this.value.set(_)}else{let h=Math.max(g,Math.min(v,f));this.value()!==h&&this.value.set(h)}},Dn=function(){if(!m(this,n)||typeof MutationObserver>"u")return;let p=["min","max","step","value","readonly","disabled"];x(this,t,new MutationObserver(g=>{let v=!1;for(let a of g)if(a.type==="attributes"&&p.includes(a.attributeName??"")){v=!0;break}v&&M(this,s,di).call(this,!1)})),m(this,t).observe(m(this,n),{attributes:!0,attributeFilter:p})},bn=function(p){if(isNaN(p)||Math.floor(p)===p)return 0;let v=p.toString().split(".")[1];return v?v.length:0},Sn=function(p){Object.defineProperty(p,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(p),"value").get.call(this)},set(g){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(p),"value").set.call(this,g);let a=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:g}});return this.dispatchEvent(a),g}})},d.\u0275fac=function(g){return new(g||d)},d.\u0275cmp=H({type:d,selectors:[["sh-range-slider"]],hostVars:2,hostBindings:function(g,v){g&2&&q("has-input",v.hasInputElement)},inputs:{unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:ts,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(g,v){g&1&&(G(es),z(0,"div",0),b(1),$(),z(2,"div",1)(3,"div",2),P(4),$(),z(5,"div",3),Pe("click",function(l){return v.trackEvent(l)}),b(6,1),z(7,"div",4),Ae(8,"div",5),$(),z(9,"div",6)(10,"div",7)(11,"div",8),P(12),$()()()(),z(13,"div",9),P(14),$()()),g&2&&(S(4),ft("",v.inputState().min,"",v.unit()),S(4),se("width",v.trackFilledPercentage(),"%"),S(),se("left",v.thumbPositionPercentage(),"%"),S(3),ft("",v.value(),"",v.unit()),S(2),ft("",v.inputState().max,"",v.unit()))},encapsulation:2,changeDetection:0});let i=d;return i})(),vr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-spinner"]],decls:0,vars:0,template:function(o,s){},encapsulation:2,changeDetection:0});let i=e;return i})(),Ta=(()=>{var e,t,n,o,ui,c,y,hi,le,Mn,En,wn;let g=class g{constructor(){w(this,o);w(this,e);w(this,t);w(this,n);w(this,c);w(this,y);x(this,e,I(K)),this.value=O(),this.label=O(),this.asFreeText=O(!1),this.optionTitle=O(null),this.freeTextTitle=O(null),this.freeTextPlaceholder=O("Type to create a new option"),this.validateFreeText=O(),this.placeholder=O(),this.readonly=ne(!1),this.disabled=ne(!1),this.lazySearch=O(!1),this.inlineSearch=O(!1),this.asText=O(!1),this.isClearable=O(!0),this.selectMultiple=O(!1),this.optionTemplate=O(null),this.selectedOptionTemplate=O(null),this.placeholderTemplate=O(null),this.freeTextOptionTemplate=O(null),this.isOpen=ne(!1),this.isLoading=ne(!1),this.options=ne([]),this.selectedOptions=ne([]),this.cleared=xe(),this.onAddNewFreeTextOption=xe(),this.computedFreeTextOption=F(()=>{let a=this.inputValue(),l=this.value(),f=l?{}:a;return l&&typeof f=="object"&&(f[l]=a),f}),x(this,t,T(null)),this.inlineTemplate=Ti(pt),this.optionsWrapRef=fe.required("optionsWrap"),this.inputRefInput=T(null),x(this,n,typeof MutationObserver<"u"&&new MutationObserver(a=>{for(var l of a)l&&(l.target.nodeName==="INPUT"||l.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new K(l.target)),m(this,n).disconnect())})),this.inputValue=T(""),this.prevInputValue=T(null),this.focusedOptionIndex=T(-1),this._isClearable=F(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=F(()=>m(this,e).nativeElement.classList.toString()),this.stretch=F(()=>this.selectClasses().includes("stretch")),this.small=F(()=>this.selectClasses().includes("small")),this.placeholderText=F(()=>{let a=this.placeholder(),l=this.inputRefEl();return a||l?.placeholder||null}),this.selectedOptionValues=F(()=>{let a=this.selectedOptions(),l=this.value();return l?a.map(f=>M(this,o,le).call(this,f,l)):a}),this.filteredOptions=F(()=>{let a=this.options()||[],l=this.label(),f=this.value(),h=this.inlineSearch(),_=this.inputValue().toLowerCase(),N=M(this,o,En).call(this,_);if(a.length<=0)return[];if(!h||_==="")return a;let B=a.filter(k=>{let ee=l?(M(this,o,le).call(this,k,l)??"").toString().toLowerCase():(k??"").toString().toLowerCase(),de=((f?M(this,o,le).call(this,k,f):k)??"").toString().toLowerCase(),Se=N.test(ee),dt=N.test(de);return Se||dt}).map(k=>{let ee=l?(M(this,o,le).call(this,k,l)??"").toString().toLowerCase():(k??"").toString().toLowerCase(),de=((f?M(this,o,le).call(this,k,f):k)??"").toString().toLowerCase(),Se=M(this,o,ui).call(this,ee,_),dt=M(this,o,ui).call(this,de,_);return{item:k,score:Math.max(Se,dt)}});return B.sort((k,ee)=>ee.score-k.score),B.map(k=>k.item)}),x(this,c,Pt()),this.inputRefEl=F(()=>{let a=this.inputRefInput();if(a===null)return;let l=a?a.nativeElement:null;return l?(l.autocomplete="off",l.setAttribute("role","combobox"),l.setAttribute("id",`combobox-${m(this,c)}`),l.setAttribute("aria-haspopup","listbox"),l.setAttribute("aria-owns","optionsWrapId"),M(this,o,Mn).call(this,l),l.addEventListener("focus",()=>{this.readonly()||this.open()}),l.addEventListener("input",f=>{let h=f.target.value,_=this.inputValue();h!==_&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(h),this.updateInputElValue())}),l.addEventListener("inputValueChanged",f=>{let h=f.detail.value,_=this.inputValue();if(h!==_){if(h===""){this.clear();return}this.setSelectedOptionsFromValue(h),this.setInputValueFromOptions(this.selectedOptions()),M(this,o,hi).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=J(()=>{let a=this.inputRefEl();if(!a)return;let l=this.getLabelAsSlug(this.filteredOptions()[this.focusedOptionIndex()]);l?a.setAttribute("aria-activedescendant",l):a.removeAttribute("aria-activedescendant")}),this.openAbortController=null,this.isOpenEffect=J(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let l=this.inputRefEl(),h=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 N=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(N>this.filteredOptions().length-1?h:N)}if(_.key==="ArrowUp"){_.preventDefault();let N=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(N<h?this.filteredOptions().length-1:N)}},{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=J(()=>{let a=this.inputValue();this._inputValue=a}),this.inputRefElEffect=J(()=>{let a=this.inputRefEl();a&&a.value!==this._inputValue&&(this.disabled.set(a.disabled),this.setSelectedOptionsFromValue(a.value),this.setInputValueFromOptions(this.selectedOptions()))}),this.selectedLabels=F(()=>{let a=this.selectedOptions();return this.label()?a.map(f=>this.getLabel(f)).join(", "):a.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()),x(this,y,J(()=>{if(this.selectMultiple()&&this.hasSearch())return;let a=this.selectedOptions(),l=this.value(),f=a.map(h=>l?M(this,o,le).call(this,h,l):h).join(",");this.inputValue.set(f)}))}ngOnInit(){this.setInitInput()}setInitInput(){let a=m(this,e).nativeElement.querySelector("input");if(a){this.inputRefInput.set(new K(a));return}let l=m(this,e).nativeElement.querySelector("textarea");if(l){this.inputRefInput.set(new K(l));return}typeof MutationObserver<"u"&&m(this,n).observe(m(this,e).nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(a){let l=this.options()||[],f=this.value(),h=this.selectMultiple(),_=a.toString().split(",");if(_.length===0){this.selectedOptions.set([]);return}let N=h?_:[_[0]],Z=l.filter(B=>{let k=f?M(this,o,le).call(this,B,f)?.toString():B?.toString();return k&&N.includes(k)});this.selectedOptions.set(h?Z:[Z[0]])}setInputValueFromOptions(a){let l=this.value();if(a.length===0){this.inputValue.set(""),this.updateInputElValue();return}let f=a.map(h=>l?M(this,o,le).call(this,h,l):h).join(",");f!==this.inputValue()&&(this.inputValue.set(f),this.updateInputElValue())}getValue(a){let l=this.value();return l?M(this,o,le).call(this,a,l):a}getLabel(a){let l=this.label();return l?M(this,o,le).call(this,a,l):a}getLabelAsSlug(a){let l=this.getLabel(a);return!l||typeof l!="string"?"":l.replaceAll(" ","-")}toggleOptionByIndex(a,l,f=!1){let h=this.filteredOptions()[a];if(this.asFreeText()&&a===-1){let ee=this.computedFreeTextOption(),de=this.getValue(ee);if(!(this.validateFreeText()??(ut=>!0))(de))return;this.options.update(ut=>ut.findIndex(xn=>this.getValue(xn)===de)>-1?ut:(this.onAddNewFreeTextOption.emit(de),[ee,...ut])),a=0,h=ee}else if(!h){this.close();return}l&&l.stopPropagation();let _=this.selectMultiple(),N=this._isClearable(),Z=this.value(),B=this.selectedOptionValues(),k=Z?M(this,o,le).call(this,h,Z):h;this.prevInputValue.set(null),m(this,t).set(null),this.selectedOptions.update(ee=>{let de=B.indexOf(k);if(de>-1){let Se=[...ee.slice(0,de),...ee.slice(de+1)];return N||Se.length>0?Se:ee}else return this.focusedOptionIndex.set(a),_?[...ee,h]:[h]}),_?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromOptions(this.selectedOptions()),_&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(a,l){a.stopPropagation(),this.selectedOptions.update(f=>[...f.slice(0,l),...f.slice(l+1)]),this.setInputValueFromOptions(this.selectedOptions())}isSelected(a){let l=this.value(),f=this.filteredOptions()[a],h=l?M(this,o,le).call(this,f,l):f;return this.selectedOptionValues().indexOf(h)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()?(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()):m(this,t).set(this.selectedOptions()),this.selectMultiple()||M(this,o,hi).call(this))}close(){this.isOpen.set(!1);let a=this.prevInputValue(),l=m(this,t).call(this);if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&a&&(this.inputValue.set(a),this.setInputValueFromOptions(this.selectedOptions())),!this.hasSearch()&&l!==null&&this.setInputValueFromOptions(l),this.selectMultiple()&&this.setInputValueFromOptions(this.selectedOptions())}clear(a){a?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let a=this.inputRefEl(),l=this.inputValue();a&&(a.value=l,a.dispatchEvent(new Event("input")))}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&m(this,n).disconnect()}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakSet,ui=function(a,l){if(!l)return 0;let f=0,h=-1,_=0,N=!0;for(let Z=0;Z<l.length;Z++){let B=l[Z];if(a.length>h+1&&a[h+1]===B)f+=Z===0?100:150,h++,_++;else{let k=a.indexOf(B,h+1);if(Z>0&&(N=!1),k===-1)return 0;f+=100,h=k,_++}}return N&&l.length===_&&(f+=1e3),f+=_*20,f},c=new WeakMap,y=new WeakMap,hi=function(){let a=this.selectedOptionValues()[0],l=this.value();if(a){let f=this.filteredOptions().findIndex(h=>l?M(this,o,le).call(this,h,l)===a:h===a);this.focusedOptionIndex.set(f)}else this.focusedOptionIndex.set(-1)},le=function(a,l){return l.split(".").reduce((f,h)=>f?.[h],a)},Mn=function(a){Object.defineProperty(a,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),"value").get.call(this)},set(l){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),"value").set.call(this,l);let h=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:l}});return this.dispatchEvent(h),l}})},En=function(a){let l=(a??"").toLowerCase(),f="^";for(let h of l)f+=".*"+M(this,o,wn).call(this,h);return f+=".*$",new RegExp(f,"i")},wn=function(a){return a.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")},g.\u0275fac=function(l){return new(l||g)},g.\u0275cmp=H({type:g,selectors:[["sh-select"]],contentQueries:function(l,f,h){l&1&&xi(h,f.inlineTemplate,pt,5),l&2&&De()},viewQuery:function(l,f){l&1&&pe(f.optionsWrapRef,is,5),l&2&&De()},hostVars:2,hostBindings:function(l,f){l&2&&q("multiple",f.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:os,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,f){if(l&1){let h=he();G(ns),gt(0)(1)(2)(3)(4)(5)(6),E(7,"sh-popover",2,0),zt("isOpenChange",function(N){return j(h),Ut(f.isOpen,N)||(f.isOpen=N),U(N)}),W("closed",function(){return j(h),U(f.close())}),E(9,"sh-form-field",3),W("click",function(){return j(h),U(f.open())}),b(10,0,["ngProjectAs","label",5,["label"]]),b(11,1,["ngProjectAs","[prefix]",5,["","prefix",""]]),b(12,2,["ngProjectAs","[boxPrefix]",5,["","boxPrefix",""]]),E(13,"div",4)(14,"div",5),R(15,rs,1,1)(16,_s,2,0)(17,bs,2,1),b(18,3),b(19,4),V()(),R(20,Ss,2,0,"sh-icon",6)(21,Ms,1,0,"sh-spinner",7)(22,Es,2,0,"sh-icon",6)(23,ws,2,0,"sh-icon",6)(24,xs,2,0,"sh-icon",6)(25,Os,2,0,"sh-icon",6)(26,Vs,2,0,"sh-icon",6),V(),E(27,"div",8,1),R(29,Ls,3,3),R(30,Hs,2,1,"p",9),Ht(31,$s,4,8,"li",10,Lt),V()()}if(l&2){me(f.placeholderTemplate());let h=f.optionTemplate();S(),me(f.freeTextOptionTemplate());let _=f.selectedOptionTemplate(),N=f.inlineTemplate();S();let Z=me(f.selectedOptions()),B=f.inputState();S(),me(_||h||N),S(),me(h||N),S();let k=me(!f.asText()&&f.selectMultiple());S();let ee=me(f.isOpen()&&f.hasSearch()&&(k||f.inputValue().length>-1));S(),jt("isOpen",f.isOpen),ge("disableOpenByClick",!0)("options",$t(24,ss)),S(2),q("stretch",f.stretch())("small",f.small())("readonly",f.readonly()||f.disabled()),S(4),q("show-search-text",ee),S(),q("is-selected",B==="selected"),S(),L(f.asFreeText()&&f.inputValue().length>0&&!f.isOpen()?15:Z.length>0?16:ee?-1:17),S(5),L(B==="closed"?20:B==="loading"?21:B==="open-searching"?22:B==="searching"?23:B==="selected"&&f._isClearable()?24:B==="selected"&&!f._isClearable()?25:26),S(9),L(f.asFreeText()?29:-1),S(),L(f.optionTitle()&&f.filteredOptions().length>0?30:-1),S(),Bt(f.filteredOptions())}},dependencies:[Ai,hn,fi,qe,ur,vr,hr,gr],encapsulation:2,changeDetection:0});let i=g;return i})();function _r(i){let e=I(K),t=I(Be),n=T(!1),o=typeof MutationObserver<"u"&&new MutationObserver(s=>{s.forEach(c=>{c.type==="attributes"&&c.attributeName==="class"&&n.set(e.nativeElement.classList.contains(i))})});return bi(e.nativeElement,()=>{o&&o.observe(e.nativeElement,{attributes:!0}),n.set(e.nativeElement.classList.contains(i))}),t.onDestroy(()=>{o&&o.disconnect()}),n}var Na=(()=>{var e,t,n,o,s,ct;let y=class y{constructor(){w(this,s);w(this,e);w(this,t);w(this,n);w(this,o);x(this,e,I(He)),x(this,t,I(K)),this.openWidth=280,this.openWidthTreshold=this.openWidth*.5,this.disableDrag=O(!1),this.isOpen=ne(!1),this.isOverlay=_r("overlay"),x(this,n,m(this,t).nativeElement.parentElement),x(this,o,m(this,n).getBoundingClientRect&&m(this,n).getBoundingClientRect()),this.dragImageElement=fe.required("dragImageElement"),this.dragIsEnding=T(!1),this.dragIsOnScreen=T(!0),this.isDragging=T(!1),this.dragPositionX=T(0),this.dragActualPositionX=F(()=>{let r=this.dragPositionX(),d=280,u=100,p=.008,g=d/2,v=g-u/2,a=g+u/2;if(r>a){let l=r-a,h=(d-a)*(1-Math.exp(-p*l));return a+h}else if(r<v){let l=v-r,h=v*(1-Math.exp(-p*l));return v-h}return r}),this.draggingStyle=F(()=>!this.isOverlay()||this.disableDrag()?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=J(()=>{this.disableDrag()||(this.isDragging()?m(this,e).body.classList.add("dragging"):m(this,e).body.classList.remove("dragging"))})}drop(r){r.stopPropagation(),M(this,s,ct).call(this,r.clientX-m(this,o).left)}dragEnd(r){r.clientX-m(this,o).left<0&&M(this,s,ct).call(this,0),r.clientX-m(this,o).left>this.openWidthTreshold&&M(this,s,ct).call(this,this.openWidthTreshold)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragStart(r){r.stopPropagation(),x(this,o,m(this,n).getBoundingClientRect()),this.isDragging.set(!0)}drag(r){r.stopPropagation(),this.isDragging()&&(r.clientX!==0||r.clientY!==0)&&this.dragPositionX.set(r.clientX-m(this,o).left)}touchStart(r){r.stopPropagation(),this.isDragging.set(!0),x(this,o,m(this,n).getBoundingClientRect()),this.dragPositionX.set(0)}touchMove(r){r.stopPropagation(),this.isDragging()&&this.dragPositionX.set(r.touches[0].clientX-m(this,o).left)}touchEnd(r){r.stopPropagation(),M(this,s,ct).call(this,r.changedTouches[0].clientX-m(this,o).left)}touchCancel(r){r.stopPropagation(),this.isDragging.set(!1)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,ct=function(r){this.isDragging.set(!1),r>=this.openWidthTreshold?this.isOpen.set(!0):this.isOpen.set(!1)},y.\u0275fac=function(d){return new(d||y)},y.\u0275cmp=H({type:y,selectors:[["sh-sidenav"]],viewQuery:function(d,u){d&1&&pe(u.dragImageElement,Ws,5),d&2&&De()},hostVars:6,hostBindings:function(d,u){d&2&&q("open",u.isOpen())("closed",!u.isOpen())("is-dragging",u.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:qs,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(d,u){d&1&&(G(Gs),R(0,Ys,2,0,"div",1),R(1,Xs,1,0,"div",2),z(2,"div",3),b(3),$(),z(4,"div",4),R(5,Qs,1,0,"div",5),z(6,"div",6),b(7,1),$(),z(8,"main"),b(9,2),$()()),d&2&&(L(u.isOverlay()&&!u.disableDrag()?0:-1),S(),L(u.isOverlay()&&u.isDragging()?1:-1),S(3),se("transform",!u.disableDrag()&&u.draggingStyle()),S(),L(u.isOverlay()&&!u.disableDrag()?5:-1))},encapsulation:2,changeDetection:0});let i=y;return i})();var Aa=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-stepper"]],ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})();var Ia=(()=>{var e;let t=class t{constructor(){w(this,e);x(this,e,I(Cr)),this.shSort=O(),this.sortAsc=F(()=>{let o=m(this,e).sortByColumn(),s=this.shSort();return!o||!s?!1:o===s}),this.sortDesc=F(()=>{let o=m(this,e).sortByColumn(),s=this.shSort();return!o||!s?!1:o===`-${s}`})}toggleSort(){let o=this.shSort();o&&m(this,e).toggleSort(o)}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=Y({type:t,selectors:[["","shSort",""]],hostAttrs:[1,"sortable"],hostVars:4,hostBindings:function(s,c){s&1&&W("mousedown",function(){return c.toggleSort()}),s&2&&q("sort-asc",c.sortAsc())("sort-desc",c.sortDesc())},inputs:{shSort:[1,"shSort"]}});let i=t;return i})();var Ge=1.5,Cr=(()=>{var e,t,n,o,s,Nt;let y=class y{constructor(){w(this,s);w(this,e);w(this,t);w(this,n);w(this,o);x(this,e,I(K)),x(this,t,I(It,{optional:!0})),this.loading=O(!1),this.data=O([]),this.dataChange=xe(),this.sortByColumn=ne(null),this.currentClass=At(),this.thead=fe("thead"),this.tbody=fe("tbody"),this.columns=Cn(this.thead,["tr:first-child th"]),this.stickyHeaderHeight=F(()=>{let r=this.currentClass();return this.thead()?.nativeElement?.clientHeight??0}),this.bodyEffect=J(()=>{let r=this.tbody()?.nativeElement,d=this.thead()?.nativeElement;if(!r||!d)return;let u=this.stickyHeaderHeight();queueMicrotask(()=>{let p=d.querySelectorAll("tr.sticky").length>0,g=r.querySelectorAll("tr.sticky");if(g.length>0&&p)for(let a=0;a<g.length;a++)g[a].style.top=`${u}px`})}),this.class=T(m(this,t)?.tableType??"default"),this.resizing=T(!1),this.sizeTrigger=T(!0),x(this,n,null),x(this,o,T(!1)),this.scrollXState=T(-1),this.scrollYState=T(-1),this.canScrollX=T(!1),this.canScrollY=T(!1),this.columnSizes=F(()=>{this.sizeTrigger();let r=this.columns.signal();return r.reduce((d,u,p)=>{let g=u,v=g.getAttribute("size"),a=p===r.length-1;return v?`${d} ${v}`:g.classList.contains("sticky")||g.classList.contains("sticky-end")?`${d} min-content`:a?`${d} 1fr`:`${d} 1fr`},"")}),this.e=J(()=>{let r=this.sortByColumn();if(r===null)return m(this,o).call(this)||(x(this,n,this.data()),m(this,o).set(!0)),this.dataChange.emit(structuredClone(m(this,n)));let d=r.startsWith("-")?r.slice(1):r,u=r.startsWith("-"),p=this.data().sort((g,v)=>{let a=g[d],l=v[d],f=0;return typeof a=="number"&&typeof l=="number"&&(f=a-l),a instanceof Date&&l instanceof Date&&(f=a.getTime()-l.getTime()),typeof a=="string"&&typeof l=="string"&&(f=a.localeCompare(l,void 0,{sensitivity:"base"})),u?-f:f});this.dataChange.emit(p)})}updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}onScroll(){M(this,s,Nt).call(this)}onResize(r){M(this,s,Nt).call(this)}ngAfterViewInit(){queueMicrotask(()=>M(this,s,Nt).call(this))}toggleSort(r){let d=this.sortByColumn(),u=d===r?`-${r}`:d===`-${r}`?null:r;this.sortByColumn.set(u)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,Nt=function(){let r=m(this,e).nativeElement,d=-1,u=-1,p=r.scrollWidth>r.clientWidth+Ge;if(p){let v=r.scrollLeft<=Ge;r.scrollWidth-(r.scrollLeft+r.clientWidth)<Ge?d=1:v||(d=0)}this.scrollXState.set(d),this.canScrollX.set(p);let g=r.scrollHeight>r.clientHeight+Ge;if(g){let v=r.scrollTop<=Ge;r.scrollHeight-(r.scrollTop+r.clientHeight)<Ge?u=1:v||(u=0)}this.scrollYState.set(u),this.canScrollY.set(g)},y.\u0275fac=function(d){return new(d||y)},y.\u0275cmp=H({type:y,selectors:[["sh-table"]],viewQuery:function(d,u){d&1&&(pe(u.thead,Zs,5),pe(u.tbody,Ks,5)),d&2&&De(2)},hostVars:18,hostBindings:function(d,u){d&1&&W("scroll",function(){return u.onScroll()})("resize",function(g){return u.onResize(g)},Mi),d&2&&(ve(u.class()),se("grid-template-columns",u.columnSizes()),q("resizing",u.resizing())("can-scroll-x",u.canScrollX())("can-scroll-y",u.canScrollY())("scrolled-x",u.scrollXState()>=0)("scrolled-x-end",u.scrollXState()===1)("scrolled-y",u.scrollYState()>=0)("scrolled-y-end",u.scrollYState()===1))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:er,decls:9,vars:2,consts:[["thead",""],["tbody",""],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(d,u){d&1&&(G(Js),R(0,tr,1,0,"sh-progress-bar",2),E(1,"thead",null,0),b(3),b(4,1),V(),E(5,"tbody",null,1),b(7,2),V(),R(8,ir,2,0,"div",3)),d&2&&(L(u.loading()?0:-1),S(8),L(u.loading()?-1:8))},dependencies:[mr],encapsulation:2,changeDetection:0});let i=y;return i})(),Pa=(()=>{let e=class e{constructor(){this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-tabs"]],hostVars:2,hostBindings:function(o,s){o&2&&se("--tabs-id",s.id)},ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),Fa=(()=>{let e=class e{constructor(){this.isActive=ne(!1),this.disallowToggle=O(!1)}ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-toggle-card"]],hostVars:2,hostBindings:function(o,s){o&2&&q("active",s.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:or,decls:7,vars:1,consts:[[3,"click"],[1,"toggle-icon"],[1,"collapsable"],[1,"content"]],template:function(o,s){o&1&&(G(nr),E(0,"h3",0),W("click",function(){return s.disallowToggle()||s.toggle()}),b(1,0,null,sr,1,0),R(3,rr,2,0,"sh-icon",1),V(),E(4,"div",2)(5,"div",3),b(6,1),V()()),o&2&&(S(3),L(s.disallowToggle()?-1:3))},dependencies:[qe],encapsulation:2,changeDetection:0});let i=e;return i})(),ka=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-toggle"]],ngContentSelectors:ce,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(o,s){o&1&&(G(),z(0,"div",0),Ae(1,"div",1),$(),b(2))},encapsulation:2,changeDetection:0});let i=e;return i})();var Ra=(()=>{let e=class e{constructor(){this.filesOver=T(!1),this.filesDropped=xe()}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 o=n.dataTransfer?.files;o&&o.length>0&&this.filesDropped.emit(o)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=Y({type:e,selectors:[["","shDragDrop",""]],hostVars:2,hostBindings:function(o,s){o&1&&W("dragover",function(y){return s.onDragOver(y)})("dragleave",function(y){return s.onDragLeave(y)})("drop",function(y){return s.ondrop(y)}),o&2&&q("filesover",s.filesOver())},outputs:{filesDropped:"filesDropped"}});let i=e;return i})();var yr=(()=>{var e,t,n;let o=class o{constructor(){w(this,e);w(this,t);w(this,n);this.positionAnchorName=O.required(),this.anchorEl=O.required(),this.isOpen=O(!1),x(this,e,I(K)),x(this,t,I(ye)),x(this,n,null),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc"),this.isBelow=T(!1),this.openEffect=J(()=>{this.isOpen()?setTimeout(()=>{m(this,e).nativeElement.showPopover(),this.calculateTooltipPosition()}):m(this,e).nativeElement.hidePopover()}),this.calculateTooltipPosition=()=>{if(!this.anchorEl())return;let c=this.anchorEl().nativeElement.getBoundingClientRect(),y=m(this,e).nativeElement,C=y.getBoundingClientRect();if(C.width===0&&C.height===0)return;let r=c.top-C.height<0;if(this.isBelow.set(r),!this.SUPPORTS_ANCHOR){let d=y.getBoundingClientRect(),u=c.top-d.height,p=c.left+c.width/2-d.width/2;r&&(u=c.top+c.height),p+d.width>window?.innerWidth&&(p=c.right-d.width/2),p<0&&(p=-(d.width/2)),m(this,t).setStyle(y,"left",`${p}px`),m(this,t).setStyle(y,"top",`${u}px`),m(this,t).setStyle(y,"position","fixed")}}}ngAfterViewInit(){x(this,n,new AbortController);let c={signal:m(this,n).signal,capture:!0};window?.addEventListener("scroll",this.calculateTooltipPosition,c),window?.addEventListener("resize",this.calculateTooltipPosition,{signal:m(this,n).signal}),setTimeout(()=>this.calculateTooltipPosition())}ngOnDestroy(){m(this,n)?.abort()}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o.\u0275fac=function(y){return new(y||o)},o.\u0275cmp=H({type:o,selectors:[["ship-tooltip-wrapper"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(y,C){y&2&&(Ee("popover","manual"),se("position-anchor",C.positionAnchorName()),q("below",C.isBelow()))},inputs:{positionAnchorName:[1,"positionAnchorName"],anchorEl:[1,"anchorEl"],isOpen:[1,"isOpen"]},ngContentSelectors:ce,decls:2,vars:0,consts:[[1,"tooltip-content"]],template:function(y,C){y&1&&(G(),z(0,"div",0),b(1),$())},encapsulation:2});let i=o;return i})(),ae=null,La=(()=>{var e,t,n,o,s;let c=class c{constructor(){w(this,e);w(this,t);w(this,n);w(this,o);w(this,s);this.shTooltip=O.required(),x(this,e,I(K)),x(this,t,I(Ei)),x(this,n,I(Di)),x(this,o,I(ye)),x(this,s,null),this.DEBOUNCE_DELAY=500,this.anchorName=`--${Pt()}`,this.isOpen=T(!1)}onMouseEnter(){ae?.component.anchorName!==this.anchorName&&this.cleanupTooltip(),this.cancelCleanupTimer(),queueMicrotask(()=>this.showTooltip())}onMouseLeave(){this.startCleanupTimer()}ngOnDestroy(){this.cancelCleanupTimer(),this.cleanupTooltip()}startCleanupTimer(){this.cancelCleanupTimer(),this.debounceTimer=setTimeout(()=>{this.cleanupTooltip()},this.DEBOUNCE_DELAY)}cancelCleanupTimer(){this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null)}showTooltip(){if(ae?.wrapperComponentRef||!this.shTooltip())return;let C,r=this.shTooltip();if(typeof r=="string")C=[[m(this,o).createText(r)]];else if(r instanceof pt)x(this,s,r.createEmbeddedView({})),m(this,s).detectChanges(),C=[m(this,s).rootNodes];else return;ae={wrapperComponentRef:m(this,t).createComponent(yr,{environmentInjector:m(this,n),projectableNodes:C}),component:this},ae.wrapperComponentRef.setInput("positionAnchorName",this.anchorName),ae.wrapperComponentRef.setInput("anchorEl",m(this,e)),ae.wrapperComponentRef?.setInput("isOpen",this.isOpen),ae.wrapperComponentRef.changeDetectorRef.detectChanges(),ae.wrapperComponentRef.location.nativeElement.addEventListener("mouseenter",()=>{this.cancelCleanupTimer()}),ae.wrapperComponentRef.location.nativeElement.addEventListener("mouseleave",()=>{this.startCleanupTimer()}),setTimeout(()=>{this.isOpen.set(!0)})}cleanupTooltip(){ae?.wrapperComponentRef&&(ae.component.cancelCleanupTimer(),ae.wrapperComponentRef.destroy(),ae.component.isOpen.set(!1),ae=null),m(this,s)&&(m(this,s).destroy(),x(this,s,null))}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakMap,c.\u0275fac=function(r){return new(r||c)},c.\u0275dir=Y({type:c,selectors:[["","shTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:4,hostBindings:function(r,d){r&1&&W("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(){return d.onMouseLeave()}),r&2&&(se("anchor-name",d.anchorName),q("active",d.isOpen()))},inputs:{shTooltip:[1,"shTooltip"]}});let i=c;return i})();export{Ve as a,Tn as b,Ui as c,Ii as d,Hr as e,Br as f,to as g,ot as h,so as i,Ur as j,ao as k,uo as l,po as m,go as n,sn as o,rn as p,yo as q,zr as r,$r as s,Wr as t,qe as u,It as v,Ca as w,ya as x,dr as y,Da as z,ba as A,Sa as B,Ma as C,ur as D,hr as E,gr as F,fi as G,Ea as H,wa as I,xa as J,mr as K,Oa as L,Va as M,vr as N,Ta as O,Na as P,Aa as Q,Ia as R,Cr as S,Pa as T,Fa as U,ka as V,Ra as W,La as X};
@@ -0,0 +1 @@
1
+ import{a as le}from"./chunk-75C77QFK.js";import"./chunk-4Z72AON4.js";import"./chunk-6Q6SSTBK.js";import{a as ae}from"./chunk-HVB6ARTT.js";import{c as re}from"./chunk-WJDMMKWE.js";import{a as _e}from"./chunk-QBHHGHBJ.js";import"./chunk-AE7T2DAH.js";import"./chunk-XTFTWEJS.js";import"./chunk-SVQCV5AE.js";import{b as oe}from"./chunk-TC7HZO7D.js";import{B as ie,D as ne,b as H,e as Q,i as Y,s as Z,u as ee,z as te}from"./chunk-TGNUULAU.js";import{d as j,e as q}from"./chunk-XUN5TTJC.js";import"./chunk-VCLWADQK.js";import"./chunk-ATGKEH5N.js";import"./chunk-NXROYR6L.js";import"./chunk-FPPZ4BUR.js";import{$b as C,B as I,Bc as J,Cb as N,Cc as X,Db as n,Eb as o,Gc as z,H as K,Jc as V,Mb as g,Rc as M,Sa as r,Vb as c,Wb as A,Xb as L,Xc as W,Yb as F,Zb as $,_ as u,cb as y,ea as p,fa as P,kc as x,n as k,nc as E,pa as T,r as U,sc as S,tc as D,uc as h,vc as G,wc as w,xb as m,xc as v,yb as f}from"./chunk-ZBK64QS2.js";import"./chunk-EUDKD2JW.js";var ce=l=>["/backup",l,"export"],se=()=>["/"];function Ee(l,_){if(l&1){let t=g();n(0,"section")(1,"h4"),c(2,4),o(),n(3,"p"),c(4,5),o(),n(5,"sh-checkbox",11),E(6," Delete local database "),n(7,"input",12),h("ngModelChange",function(e){p(t);let a=C();return D(a.deleteLocalDb,e)||(a.deleteLocalDb=e),P(e)}),o()()()}if(l&2){let t=C();r(7),S("ngModel",t.deleteLocalDb)}}function ue(l,_){if(l&1){let t=g();n(0,"section")(1,"h4"),c(2,6),o(),n(3,"p"),c(4,7),z(5,"bytes"),o(),n(6,"sh-checkbox",11),E(7," Delete remote files "),n(8,"input",12),h("ngModelChange",function(e){p(t);let a=C();return D(a.deleteRemoteFiles,e)||(a.deleteRemoteFiles=e),P(e)}),o()()()}if(l&2){let t=C(),i=v(0),e=(i==null||i.Backup==null||i.Backup.Metadata==null?null:i.Backup.Metadata.TargetFilesSize)??0;r(5),A(t.fileCount())(t.fileCount())(V(5,4,e,!0,!0)),L(4),r(3),S("ngModel",t.deleteRemoteFiles)}}var B=class l{#t=u(oe);#i=u(te);#e=u(le);#n=u(j);id=W.required();backup=M(()=>this.#e.getBackupById(this.id()));noLocalDbResource=re({params:()=>({dbPath:this.backup()?.Backup?.DBPath}),stream:({params:_})=>this.#t.postApiV1FilesystemValidate({requestBody:{path:_.dbPath}}).pipe(U(()=>!0),I(()=>k(!1)))});fileCount=M(()=>parseInt(this.backup()?.Backup?.Metadata?.TargetFilesCount??"0",10));deleteLocalDb=T(!1);deleteRemoteFiles=T(!1);isDeleting=T(!1);deleteBackup(){let _=this.id(),t=this.deleteLocalDb(),i=this.deleteRemoteFiles();this.isDeleting.set(!0),this.#i.open(_e,{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:i}).pipe(K(()=>this.isDeleting.set(!1))).subscribe({next:()=>{this.#n.navigate(["/"])}})}})}static \u0275fac=function(t){return new(t||l)};static \u0275cmp=y({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 i;i=$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 b;b=$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 R;R=$localize`Delete remote files`;let d;d=$localize`{VAR_PLURAL, plural, =1 {1 file} other {{INTERPOLATION} files}}`,d=F(d,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let O;return O=$localize` Delete ${d}:ICU@@2159106180826349718: (${"\uFFFD2\uFFFD"}:INTERPOLATION_1:) from the remote storage? `,[_,t,i,e,a,b,R,O,["shButton","",3,"routerLink"],[1,"actions"],["shButton","",1,"raised","error",3,"click"],[1,"primary","raised"],["type","checkbox",3,"ngModelChange","ngModel"]]},template:function(t,i){if(t&1){let e=g();G(0),n(1,"h3"),c(2,0),o(),m(3,Ee,8,1,"section"),n(4,"section")(5,"h4"),c(6,1),o(),n(7,"p"),c(8,2),o(),n(9,"button",8),E(10," Export configuration "),n(11,"sh-icon"),E(12,"caret-right"),o()()(),m(13,ue,9,8,"section"),n(14,"div",9)(15,"button",8),c(16,3),o(),n(17,"button",10),$("click",function(){return p(e),P(i.deleteBackup())}),E(18,"Delete backup"),o()()}if(t&2){let e=w(i.backup()),a=i.noLocalDbResource.value();r(2),A(e==null||e.Backup==null?null:e.Backup.Name),L(2),r(),f(a?3:-1),r(6),N("routerLink",X(8,ce,i.id())),r(4),f(a?13:-1),r(2),N("routerLink",J(10,se)),r(2),x("loader",i.isDeleting())}},dependencies:[ne,ie,ee,Z,H,Q,Y,q,ae],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};
@@ -1 +1 @@
1
- import{a as A,b as de,c as ue,xa as he}from"./chunk-5ZSBXGHQ.js";import{a as fe,b as pe}from"./chunk-FPPZ4BUR.js";import{Aa as U,Da as j,Ea as S,Fa as M,Ga as q,Ha as Q,Ia as ee,Ja as te,Ka as ne,La as re,Ma as oe,Na as y,S as v,Ta as D,V as p,Va as se,Y as _,Z as a,aa as K,cd as le,ia as X,jb as ie,ka as h,lb as R,ma as k,vb as ae,wa as W,wb as ce,xa as x,ya as J,za as w}from"./chunk-QONLYWYC.js";import{a as P}from"./chunk-EUDKD2JW.js";var L=new _(""),G=(()=>{class r{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,o,s){return this._findPluginFor(t).addEventListener(e,t,o,s)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(s=>s.supports(e)),!t)throw new v(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||r)(a(L),a(R))};static \u0275prov=p({token:r,factory:r.\u0275fac})}return r})(),I=class{_doc;constructor(n){this._doc=n}manager},B="ng-app-id";function me(r){for(let n of r)n.remove()}function ge(r,n){let e=n.createElement("style");return e.textContent=r,e}function we(r,n,e,t){let o=r.head?.querySelectorAll(`style[${B}="${n}"],link[${B}="${n}"]`);if(o)for(let s of o)s.removeAttribute(B),s instanceof HTMLLinkElement?t.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&e.set(s.textContent,{usage:0,elements:[s]})}function V(r,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",r),e}var $=(()=>{class r{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,t,o,s={}){this.doc=e,this.appId=t,this.nonce=o,we(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let o of e)this.addUsage(o,this.inline,ge);t?.forEach(o=>this.addUsage(o,this.external,V))}removeStyles(e,t){for(let o of e)this.removeUsage(o,this.inline);t?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,t,o){let s=t.get(e);s?s.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,o(e,this.doc)))})}removeUsage(e,t){let o=t.get(e);o&&(o.usage--,o.usage<=0&&(me(o.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])me(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:o}]of this.inline)o.push(this.addElement(e,ge(t,this.doc)));for(let[t,{elements:o}]of this.external)o.push(this.addElement(e,V(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),e.appendChild(t)}static \u0275fac=function(t){return new(t||r)(a(h),a(x),a(U,8),a(w))};static \u0275prov=p({token:r,factory:r.\u0275fac})}return r})(),F={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Z=/%COMP%/g;var Ee="%COMP%",De=`_nghost-${Ee}`,Re=`_ngcontent-${Ee}`,Ae=!0,Ie=new _("",{providedIn:"root",factory:()=>Ae});function Ce(r){return Re.replace(Z,r)}function be(r){return De.replace(Z,r)}function Se(r,n){return n.map(e=>e.replace(Z,r))}var Y=(()=>{class r{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;animationDisabled;maxAnimationTimeout;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;registry;constructor(e,t,o,s,i,c,l,u=null,f,m,d=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=i,this.platformId=c,this.ngZone=l,this.nonce=u,this.animationDisabled=f,this.maxAnimationTimeout=m,this.tracingService=d,this.platformIsServer=!1,this.defaultRenderer=new C(e,i,l,this.platformIsServer,this.tracingService,this.registry=X(),this.maxAnimationTimeout)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,t);return o instanceof N?o.applyToHost(e):o instanceof b&&o.applyStyles(),o}getOrCreateRenderer(e,t){let o=this.rendererByCompId,s=o.get(t.id);if(!s){let i=this.doc,c=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,m=this.platformIsServer,d=this.tracingService;switch(t.encapsulation){case j.Emulated:s=new N(l,u,t,this.appId,f,i,c,m,d,this.registry,this.animationDisabled,this.maxAnimationTimeout);break;case j.ShadowDom:return new z(l,u,e,t,i,c,this.nonce,m,d,this.registry,this.maxAnimationTimeout);default:s=new b(l,u,t,f,i,c,m,d,this.registry,this.animationDisabled,this.maxAnimationTimeout);break}o.set(t.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||r)(a(G),a($),a(x),a(Ie),a(h),a(w),a(R),a(U),a(ae),a(ce),a(ie,8))};static \u0275prov=p({token:r,factory:r.\u0275fac})}return r})(),C=class{eventManager;doc;ngZone;platformIsServer;tracingService;registry;maxAnimationTimeout;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,t,o,s,i,c){this.eventManager=n,this.doc=e,this.ngZone=t,this.platformIsServer=o,this.tracingService=s,this.registry=i,this.maxAnimationTimeout=c}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(F[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(ve(n)?n.content:n).appendChild(e)}insertBefore(n,e,t){n&&(ve(n)?n.content:n).insertBefore(e,t)}removeChild(n,e){let{elements:t}=this.registry;if(t){t.animate(e,()=>e.remove(),this.maxAnimationTimeout);return}e.remove()}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new v(-5104,!1);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,o){if(o){e=o+":"+e;let s=F[o];s?n.setAttributeNS(s,e,t):n.setAttribute(e,t)}else n.setAttribute(e,t)}removeAttribute(n,e,t){if(t){let o=F[t];o?n.removeAttributeNS(o,e):n.removeAttribute(`${t}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,t,o){o&(D.DashCase|D.Important)?n.style.setProperty(e,t,o&D.Important?"important":""):n.style[e]=t}removeStyle(n,e,t){t&D.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,t){n!=null&&(n[e]=t)}setValue(n,e){n.nodeValue=e}listen(n,e,t,o){if(typeof n=="string"&&(n=A().getGlobalEventTarget(this.doc,n),!n))throw new v(5102,!1);let s=this.decoratePreventDefault(t);return this.tracingService?.wrapEventListener&&(s=this.tracingService.wrapEventListener(n,e,s)),this.eventManager.addEventListener(n,e,s,o)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function ve(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var z=class extends C{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,t,o,s,i,c,l,u,f,m){super(n,s,i,l,u,f,m),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=o.styles;d=Se(o.id,d);for(let T of d){let E=document.createElement("style");c&&E.setAttribute("nonce",c),E.textContent=T,this.shadowRoot.appendChild(E)}let g=o.getExternalStyles?.();if(g)for(let T of g){let E=V(T,s);c&&E.setAttribute("nonce",c),this.shadowRoot.appendChild(E)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},b=class extends C{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;_animationDisabled;constructor(n,e,t,o,s,i,c,l,u,f,m,d){super(n,s,i,c,l,u,m),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this._animationDisabled=f;let g=t.styles;this.styles=d?Se(d,g):g,this.styleUrls=t.getExternalStyles?.(d)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){if(this.removeStylesOnCompDestroy){if(!this._animationDisabled&&this.registry.elements){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)},this.maxAnimationTimeout)});return}this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}},N=class extends b{contentAttr;hostAttr;constructor(n,e,t,o,s,i,c,l,u,f,m,d){let g=o+"-"+t.id;super(n,e,t,s,i,c,l,u,f,m,d,g),this.contentAttr=Ce(g),this.hostAttr=be(g)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}};var H=class r extends ue{supportsDOMEvents=!0;static makeCurrent(){de(new r)}onAndCancel(n,e,t,o){return n.addEventListener(e,t,o),()=>{n.removeEventListener(e,t,o)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=He();return e==null?null:Pe(e)}resetBaseElement(){O=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return fe(document.cookie,n)}},O=null;function He(){return O=O||document.head.querySelector("base"),O?O.getAttribute("href"):null}function Pe(r){return new URL(r,document.baseURI).pathname}var ke=(()=>{class r{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||r)};static \u0275prov=p({token:r,factory:r.\u0275fac})}return r})(),Te=(()=>{class r extends I{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o,s){return e.addEventListener(t,o,s),()=>this.removeEventListener(e,t,o,s)}removeEventListener(e,t,o,s){return e.removeEventListener(t,o,s)}static \u0275fac=function(t){return new(t||r)(a(h))};static \u0275prov=p({token:r,factory:r.\u0275fac})}return r})(),Me=["alt","control","meta","shift"],xe={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ue={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},_e=(()=>{class r extends I{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,t,o,s){let i=r.parseEventName(t),c=r.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>A().onAndCancel(e,i.domEventName,c,s))}static parseEventName(e){let t=e.toLowerCase().split("."),o=t.shift();if(t.length===0||!(o==="keydown"||o==="keyup"))return null;let s=r._normalizeKey(t.pop()),i="",c=t.indexOf("code");if(c>-1&&(t.splice(c,1),i="code."),Me.forEach(u=>{let f=t.indexOf(u);f>-1&&(t.splice(f,1),i+=u+".")}),i+=s,t.length!=0||s.length===0)return null;let l={};return l.domEventName=o,l.fullKey=i,l}static matchEventFullKeyCode(e,t){let o=xe[e.key]||e.key,s="";return t.indexOf("code.")>-1&&(o=e.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Me.forEach(i=>{if(i!==o){let c=Ue[i];c(e)&&(s+=i+".")}}),s+=o,s===t)}static eventCallback(e,t,o){return s=>{r.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>t(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||r)(a(h))};static \u0275prov=p({token:r,factory:r.\u0275fac})}return r})();function je(r,n,e){let t=P({rootComponent:r,platformRef:e?.platformRef},Be(n));return le(t)}function Be(r){return{appProviders:[...$e,...r?.providers??[]],platformProviders:Ge}}function Fe(){H.makeCurrent()}function Ve(){return new k}function ze(){return W(document),document}var Ge=[{provide:w,useValue:he},{provide:J,useValue:Fe,multi:!0},{provide:h,useFactory:ze}];var $e=[{provide:K,useValue:"root"},{provide:k,useFactory:Ve},{provide:L,useClass:Te,multi:!0,deps:[h]},{provide:L,useClass:_e,multi:!0,deps:[h]},Y,$,G,{provide:se,useExisting:Y},{provide:pe,useClass:ke},[]];var Yt=(()=>{class r{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||r)(a(h))};static \u0275prov=p({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Ye=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=p({token:r,factory:function(t){let o=null;return t?o=new(t||r):o=a(Ke),o},providedIn:"root"})}return r})(),Ke=(()=>{class r extends Ye{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case y.NONE:return t;case y.HTML:return M(t,"HTML")?S(t):oe(this._doc,String(t)).toString();case y.STYLE:return M(t,"Style")?S(t):t;case y.SCRIPT:if(M(t,"Script"))return S(t);throw new v(5200,!1);case y.URL:return M(t,"URL")?S(t):re(String(t));case y.RESOURCE_URL:if(M(t,"ResourceURL"))return S(t);throw new v(5201,!1);default:throw new v(5202,!1)}}bypassSecurityTrustHtml(e){return q(e)}bypassSecurityTrustStyle(e){return Q(e)}bypassSecurityTrustScript(e){return ee(e)}bypassSecurityTrustUrl(e){return te(e)}bypassSecurityTrustResourceUrl(e){return ne(e)}static \u0275fac=function(t){return new(t||r)(a(h))};static \u0275prov=p({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{je as a,Yt as b,Ye as c};
1
+ import{a as A,b as de,c as ue,xa as he}from"./chunk-NXROYR6L.js";import{a as fe,b as pe}from"./chunk-FPPZ4BUR.js";import{Aa as U,Da as j,Ea as S,Fa as M,Ga as q,Ha as Q,Ia as ee,Ja as te,Ka as ne,La as re,Ma as oe,Na as y,S as v,Ta as D,V as p,Va as se,Y as _,Z as a,aa as K,dd as le,ia as X,jb as ie,ka as h,lb as R,ma as k,vb as ae,wa as W,wb as ce,xa as x,ya as J,za as w}from"./chunk-ZBK64QS2.js";import{a as P}from"./chunk-EUDKD2JW.js";var L=new _(""),G=(()=>{class r{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,o,s){return this._findPluginFor(t).addEventListener(e,t,o,s)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(s=>s.supports(e)),!t)throw new v(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||r)(a(L),a(R))};static \u0275prov=p({token:r,factory:r.\u0275fac})}return r})(),I=class{_doc;constructor(n){this._doc=n}manager},B="ng-app-id";function me(r){for(let n of r)n.remove()}function ge(r,n){let e=n.createElement("style");return e.textContent=r,e}function we(r,n,e,t){let o=r.head?.querySelectorAll(`style[${B}="${n}"],link[${B}="${n}"]`);if(o)for(let s of o)s.removeAttribute(B),s instanceof HTMLLinkElement?t.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&e.set(s.textContent,{usage:0,elements:[s]})}function V(r,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",r),e}var $=(()=>{class r{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,t,o,s={}){this.doc=e,this.appId=t,this.nonce=o,we(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let o of e)this.addUsage(o,this.inline,ge);t?.forEach(o=>this.addUsage(o,this.external,V))}removeStyles(e,t){for(let o of e)this.removeUsage(o,this.inline);t?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,t,o){let s=t.get(e);s?s.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,o(e,this.doc)))})}removeUsage(e,t){let o=t.get(e);o&&(o.usage--,o.usage<=0&&(me(o.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])me(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:o}]of this.inline)o.push(this.addElement(e,ge(t,this.doc)));for(let[t,{elements:o}]of this.external)o.push(this.addElement(e,V(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),e.appendChild(t)}static \u0275fac=function(t){return new(t||r)(a(h),a(x),a(U,8),a(w))};static \u0275prov=p({token:r,factory:r.\u0275fac})}return r})(),F={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Z=/%COMP%/g;var Ee="%COMP%",De=`_nghost-${Ee}`,Re=`_ngcontent-${Ee}`,Ae=!0,Ie=new _("",{providedIn:"root",factory:()=>Ae});function Ce(r){return Re.replace(Z,r)}function be(r){return De.replace(Z,r)}function Se(r,n){return n.map(e=>e.replace(Z,r))}var Y=(()=>{class r{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;animationDisabled;maxAnimationTimeout;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;registry;constructor(e,t,o,s,i,c,l,u=null,f,m,d=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=i,this.platformId=c,this.ngZone=l,this.nonce=u,this.animationDisabled=f,this.maxAnimationTimeout=m,this.tracingService=d,this.platformIsServer=!1,this.defaultRenderer=new C(e,i,l,this.platformIsServer,this.tracingService,this.registry=X(),this.maxAnimationTimeout)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,t);return o instanceof N?o.applyToHost(e):o instanceof b&&o.applyStyles(),o}getOrCreateRenderer(e,t){let o=this.rendererByCompId,s=o.get(t.id);if(!s){let i=this.doc,c=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,m=this.platformIsServer,d=this.tracingService;switch(t.encapsulation){case j.Emulated:s=new N(l,u,t,this.appId,f,i,c,m,d,this.registry,this.animationDisabled,this.maxAnimationTimeout);break;case j.ShadowDom:return new z(l,u,e,t,i,c,this.nonce,m,d,this.registry,this.maxAnimationTimeout);default:s=new b(l,u,t,f,i,c,m,d,this.registry,this.animationDisabled,this.maxAnimationTimeout);break}o.set(t.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||r)(a(G),a($),a(x),a(Ie),a(h),a(w),a(R),a(U),a(ae),a(ce),a(ie,8))};static \u0275prov=p({token:r,factory:r.\u0275fac})}return r})(),C=class{eventManager;doc;ngZone;platformIsServer;tracingService;registry;maxAnimationTimeout;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,t,o,s,i,c){this.eventManager=n,this.doc=e,this.ngZone=t,this.platformIsServer=o,this.tracingService=s,this.registry=i,this.maxAnimationTimeout=c}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(F[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(ve(n)?n.content:n).appendChild(e)}insertBefore(n,e,t){n&&(ve(n)?n.content:n).insertBefore(e,t)}removeChild(n,e){let{elements:t}=this.registry;if(t){t.animate(e,()=>e.remove(),this.maxAnimationTimeout);return}e.remove()}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new v(-5104,!1);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,o){if(o){e=o+":"+e;let s=F[o];s?n.setAttributeNS(s,e,t):n.setAttribute(e,t)}else n.setAttribute(e,t)}removeAttribute(n,e,t){if(t){let o=F[t];o?n.removeAttributeNS(o,e):n.removeAttribute(`${t}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,t,o){o&(D.DashCase|D.Important)?n.style.setProperty(e,t,o&D.Important?"important":""):n.style[e]=t}removeStyle(n,e,t){t&D.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,t){n!=null&&(n[e]=t)}setValue(n,e){n.nodeValue=e}listen(n,e,t,o){if(typeof n=="string"&&(n=A().getGlobalEventTarget(this.doc,n),!n))throw new v(5102,!1);let s=this.decoratePreventDefault(t);return this.tracingService?.wrapEventListener&&(s=this.tracingService.wrapEventListener(n,e,s)),this.eventManager.addEventListener(n,e,s,o)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function ve(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var z=class extends C{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,t,o,s,i,c,l,u,f,m){super(n,s,i,l,u,f,m),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=o.styles;d=Se(o.id,d);for(let T of d){let E=document.createElement("style");c&&E.setAttribute("nonce",c),E.textContent=T,this.shadowRoot.appendChild(E)}let g=o.getExternalStyles?.();if(g)for(let T of g){let E=V(T,s);c&&E.setAttribute("nonce",c),this.shadowRoot.appendChild(E)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},b=class extends C{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;_animationDisabled;constructor(n,e,t,o,s,i,c,l,u,f,m,d){super(n,s,i,c,l,u,m),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this._animationDisabled=f;let g=t.styles;this.styles=d?Se(d,g):g,this.styleUrls=t.getExternalStyles?.(d)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){if(this.removeStylesOnCompDestroy){if(!this._animationDisabled&&this.registry.elements){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)},this.maxAnimationTimeout)});return}this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}},N=class extends b{contentAttr;hostAttr;constructor(n,e,t,o,s,i,c,l,u,f,m,d){let g=o+"-"+t.id;super(n,e,t,s,i,c,l,u,f,m,d,g),this.contentAttr=Ce(g),this.hostAttr=be(g)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}};var H=class r extends ue{supportsDOMEvents=!0;static makeCurrent(){de(new r)}onAndCancel(n,e,t,o){return n.addEventListener(e,t,o),()=>{n.removeEventListener(e,t,o)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=He();return e==null?null:Pe(e)}resetBaseElement(){O=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return fe(document.cookie,n)}},O=null;function He(){return O=O||document.head.querySelector("base"),O?O.getAttribute("href"):null}function Pe(r){return new URL(r,document.baseURI).pathname}var ke=(()=>{class r{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||r)};static \u0275prov=p({token:r,factory:r.\u0275fac})}return r})(),Te=(()=>{class r extends I{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o,s){return e.addEventListener(t,o,s),()=>this.removeEventListener(e,t,o,s)}removeEventListener(e,t,o,s){return e.removeEventListener(t,o,s)}static \u0275fac=function(t){return new(t||r)(a(h))};static \u0275prov=p({token:r,factory:r.\u0275fac})}return r})(),Me=["alt","control","meta","shift"],xe={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ue={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},_e=(()=>{class r extends I{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,t,o,s){let i=r.parseEventName(t),c=r.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>A().onAndCancel(e,i.domEventName,c,s))}static parseEventName(e){let t=e.toLowerCase().split("."),o=t.shift();if(t.length===0||!(o==="keydown"||o==="keyup"))return null;let s=r._normalizeKey(t.pop()),i="",c=t.indexOf("code");if(c>-1&&(t.splice(c,1),i="code."),Me.forEach(u=>{let f=t.indexOf(u);f>-1&&(t.splice(f,1),i+=u+".")}),i+=s,t.length!=0||s.length===0)return null;let l={};return l.domEventName=o,l.fullKey=i,l}static matchEventFullKeyCode(e,t){let o=xe[e.key]||e.key,s="";return t.indexOf("code.")>-1&&(o=e.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Me.forEach(i=>{if(i!==o){let c=Ue[i];c(e)&&(s+=i+".")}}),s+=o,s===t)}static eventCallback(e,t,o){return s=>{r.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>t(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||r)(a(h))};static \u0275prov=p({token:r,factory:r.\u0275fac})}return r})();function je(r,n,e){let t=P({rootComponent:r,platformRef:e?.platformRef},Be(n));return le(t)}function Be(r){return{appProviders:[...$e,...r?.providers??[]],platformProviders:Ge}}function Fe(){H.makeCurrent()}function Ve(){return new k}function ze(){return W(document),document}var Ge=[{provide:w,useValue:he},{provide:J,useValue:Fe,multi:!0},{provide:h,useFactory:ze}];var $e=[{provide:K,useValue:"root"},{provide:k,useFactory:Ve},{provide:L,useClass:Te,multi:!0,deps:[h]},{provide:L,useClass:_e,multi:!0,deps:[h]},Y,$,G,{provide:se,useExisting:Y},{provide:pe,useClass:ke},[]];var Yt=(()=>{class r{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||r)(a(h))};static \u0275prov=p({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Ye=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=p({token:r,factory:function(t){let o=null;return t?o=new(t||r):o=a(Ke),o},providedIn:"root"})}return r})(),Ke=(()=>{class r extends Ye{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case y.NONE:return t;case y.HTML:return M(t,"HTML")?S(t):oe(this._doc,String(t)).toString();case y.STYLE:return M(t,"Style")?S(t):t;case y.SCRIPT:if(M(t,"Script"))return S(t);throw new v(5200,!1);case y.URL:return M(t,"URL")?S(t):re(String(t));case y.RESOURCE_URL:if(M(t,"ResourceURL"))return S(t);throw new v(5201,!1);default:throw new v(5202,!1)}}bypassSecurityTrustHtml(e){return q(e)}bypassSecurityTrustStyle(e){return Q(e)}bypassSecurityTrustScript(e){return ee(e)}bypassSecurityTrustUrl(e){return te(e)}bypassSecurityTrustResourceUrl(e){return ne(e)}static \u0275fac=function(t){return new(t||r)(a(h))};static \u0275prov=p({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{je as a,Yt as b,Ye as c};
@@ -0,0 +1 @@
1
+ import{a as A}from"./chunk-ACZQPL4M.js";import"./chunk-MPQNBRD5.js";import"./chunk-GNJTDWT4.js";import"./chunk-AT6BXXSP.js";import"./chunk-75C77QFK.js";import"./chunk-4Z72AON4.js";import"./chunk-6Q6SSTBK.js";import"./chunk-HVB6ARTT.js";import"./chunk-E6DCTQ34.js";import"./chunk-QBHHGHBJ.js";import"./chunk-AE7T2DAH.js";import"./chunk-XTFTWEJS.js";import"./chunk-SVQCV5AE.js";import"./chunk-TC7HZO7D.js";import{T as S}from"./chunk-TGNUULAU.js";import{c as u,e as N,f as c}from"./chunk-XUN5TTJC.js";import"./chunk-VCLWADQK.js";import"./chunk-ATGKEH5N.js";import"./chunk-NXROYR6L.js";import"./chunk-FPPZ4BUR.js";import{Db as e,Eb as t,Fb as T,Vb as n,cb as g}from"./chunk-ZBK64QS2.js";import"./chunk-EUDKD2JW.js";var l=class s{static \u0275fac=function(o){return new(o||s)};static \u0275cmp=g({type:s,selectors:[["app-about"]],decls:19,vars:0,consts:()=>{let i;i=$localize`General`;let o;o=$localize`Changelog`;let r;r=$localize`Libraries`;let C;C=$localize`System info`;let a;a=$localize`Server settings`;let E;E=$localize`Logs`;let O;return O=$localize`Crash log`,[i,o,r,C,a,E,O,[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&&(T(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"),T(18,"router-outlet"),t()())},dependencies:[A,S,u,N,c],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{l as default};