@duplicati/ngclient 0.0.82 → 0.0.84

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 (94) hide show
  1. package/chunk-2AYDM3FG.js +1 -0
  2. package/chunk-2M52SFS6.js +7 -0
  3. package/{chunk-BOZ57J4G.js → chunk-34SHHWMR.js} +1 -1
  4. package/{chunk-EGYSCZVC.js → chunk-3YTSQTLM.js} +1 -1
  5. package/{chunk-4OE5GJEY.js → chunk-4A4CWPH7.js} +1 -1
  6. package/{chunk-UG4CSTXY.js → chunk-4IO6Y7PY.js} +1 -1
  7. package/{chunk-MI3YJO7L.js → chunk-4YHGG4LR.js} +1 -1
  8. package/chunk-6KER52JR.js +1 -0
  9. package/chunk-6RMLOIRD.js +1 -0
  10. package/{chunk-HCUGVK4R.js → chunk-77PHTQYN.js} +1 -1
  11. package/{chunk-7WKWA7QK.js → chunk-7DD5DAWU.js} +1 -1
  12. package/chunk-7IRVNC4S.js +1 -0
  13. package/{chunk-F2275265.js → chunk-7LJ7CTKL.js} +1 -1
  14. package/{chunk-SRMNNICE.js → chunk-7LP2EQ7M.js} +1 -1
  15. package/{chunk-Z5FVTSXP.js → chunk-7LRQSKYZ.js} +1 -1
  16. package/{chunk-YRKXBPEN.js → chunk-AFQ6FL3D.js} +1 -1
  17. package/{chunk-ZOMDTRAX.js → chunk-AXHB6A4N.js} +1 -1
  18. package/chunk-BGBEOEU2.js +1 -0
  19. package/chunk-BKSXG3Z5.js +1 -0
  20. package/{chunk-5UTMYMNZ.js → chunk-BRMUJELY.js} +1 -1
  21. package/chunk-C52XP2RC.js +1 -0
  22. package/{chunk-NVTD7IP4.js → chunk-C5EHOW7U.js} +1 -1
  23. package/chunk-D6NUBCKD.js +1 -0
  24. package/{chunk-IN72UOWN.js → chunk-DALX7AMG.js} +1 -1
  25. package/chunk-DL6QZSL6.js +1 -0
  26. package/{chunk-US4WRUST.js → chunk-DNDOALN6.js} +1 -1
  27. package/chunk-DURFGYD7.js +1 -0
  28. package/chunk-FUH4327W.js +1 -0
  29. package/{chunk-6B27Y6JF.js → chunk-GJSG762N.js} +1 -1
  30. package/chunk-H2DNOMMP.js +1 -0
  31. package/{chunk-J2TD53K6.js → chunk-KH7GOUWD.js} +1 -1
  32. package/{chunk-KPP5HW6S.js → chunk-KIB4MYBL.js} +2 -2
  33. package/{chunk-6OAOHI5B.js → chunk-KXU2UTG4.js} +1 -1
  34. package/{chunk-FOHDLUCC.js → chunk-L5D4JLN3.js} +1 -1
  35. package/chunk-LJ3ULEOG.js +1 -0
  36. package/chunk-MADB4EX7.js +1 -0
  37. package/{chunk-6SIZVSDW.js → chunk-MCLDJCPW.js} +1 -1
  38. package/chunk-MEFACGK4.js +6 -0
  39. package/{chunk-NB6C6AWO.js → chunk-NBBSISDC.js} +1 -1
  40. package/{chunk-N4ZZA3JQ.js → chunk-NNUHZ2L7.js} +21 -21
  41. package/chunk-ODDKCMXA.js +1 -0
  42. package/chunk-P724RQTD.js +1 -0
  43. package/chunk-PN3DBUJI.js +1 -0
  44. package/{chunk-MHZPUJQF.js → chunk-PNJEVGID.js} +1 -1
  45. package/{chunk-TQE7OBBP.js → chunk-PPRHD3ZV.js} +1 -1
  46. package/chunk-R2HH6TYJ.js +1 -0
  47. package/chunk-RAUCDBVO.js +1 -0
  48. package/{chunk-A3ZJDFD7.js → chunk-RCPMSNTW.js} +1 -1
  49. package/chunk-RE4L7JTP.js +1 -0
  50. package/{chunk-4NAKJMN4.js → chunk-RLYI2YCZ.js} +2 -2
  51. package/{chunk-7FJJUDJ2.js → chunk-RSXKKDD4.js} +1 -1
  52. package/{chunk-XFRVNXF6.js → chunk-RTVM3BJK.js} +1 -1
  53. package/{chunk-V4FTPFKP.js → chunk-TZYGTULV.js} +1 -1
  54. package/{chunk-JUHZJXZP.js → chunk-UI6ZWFOT.js} +1 -1
  55. package/{chunk-CEAE6DN3.js → chunk-UZM3TLJO.js} +1 -1
  56. package/{chunk-X5LYBLNB.js → chunk-VAAQUFLX.js} +1 -1
  57. package/chunk-W4MEGIZH.js +1 -0
  58. package/{chunk-CS4VRCLU.js → chunk-WWJFELTU.js} +1 -1
  59. package/{chunk-LFQXDL42.js → chunk-XKAASYKO.js} +1 -1
  60. package/{chunk-KFOSQK3Z.js → chunk-XRL6GPXW.js} +1 -1
  61. package/{chunk-RUM7HWLC.js → chunk-YA3PYBIG.js} +1 -1
  62. package/{chunk-PTG2C2YJ.js → chunk-YOP6HOXH.js} +1 -1
  63. package/{chunk-EZZHN2WE.js → chunk-ZWADJ4OM.js} +1 -1
  64. package/index.html +2 -2
  65. package/locale/angular/en-GB.mjs +17 -0
  66. package/locale/angular/extra/en-GB.mjs +11 -0
  67. package/locale/dayjs/en-gb.js +1 -0
  68. package/main-SOHQOOGR.js +1 -0
  69. package/package.json +1 -1
  70. package/{styles-2QJQOKUX.css → styles-5VTLDYYE.css} +1 -1
  71. package/chunk-2ILIMQUZ.js +0 -1
  72. package/chunk-2K3CR66C.js +0 -1
  73. package/chunk-6GXQ3OS3.js +0 -1
  74. package/chunk-7KWOTSVE.js +0 -1
  75. package/chunk-ASP3TXLK.js +0 -1
  76. package/chunk-B3BR2XEK.js +0 -6
  77. package/chunk-DGAZIN5K.js +0 -1
  78. package/chunk-FEV25ZWF.js +0 -1
  79. package/chunk-HODSVG43.js +0 -1
  80. package/chunk-JOBMLOGZ.js +0 -1
  81. package/chunk-JRAP2EKJ.js +0 -1
  82. package/chunk-LPKATCNH.js +0 -1
  83. package/chunk-LY3JVR5S.js +0 -1
  84. package/chunk-PNBAXH5O.js +0 -1
  85. package/chunk-QDAWQNBQ.js +0 -7
  86. package/chunk-R4OTX3ML.js +0 -1
  87. package/chunk-TL325ZMY.js +0 -1
  88. package/chunk-UA3FQ7TU.js +0 -1
  89. package/chunk-UYV5TDBS.js +0 -1
  90. package/chunk-WKQNR623.js +0 -1
  91. package/chunk-XJ5AEEQO.js +0 -1
  92. package/chunk-XLU5TCBE.js +0 -1
  93. package/chunk-ZRPJ3QZT.js +0 -1
  94. package/main-5RB7QQSV.js +0 -1
@@ -1,4 +1,4 @@
1
- import{g as Xt}from"./chunk-V4FTPFKP.js";import{a as Wt,b as zt,o as Z}from"./chunk-B3BR2XEK.js";import{a as Ht}from"./chunk-XJ5AEEQO.js";import{a as Kt}from"./chunk-5UTMYMNZ.js";import"./chunk-DNHLTHLR.js";import"./chunk-MHZPUJQF.js";import"./chunk-PTG2C2YJ.js";import{a as U}from"./chunk-XFRVNXF6.js";import{a as ft,b as gt,d as Dt,e as St,f as Et,h as Ot,i as xt,k as kt,l as Nt,m as Rt,n as ht,o as yt,p as It,r as $t}from"./chunk-LFQXDL42.js";import{b as Ct}from"./chunk-TQE7OBBP.js";import{a as ut,c as Tt}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as wt,b as vt,d as At,e as Pt,i as Vt,l as Mt,n as bt,r as Gt,s as Bt,x as Lt,y as Ut}from"./chunk-JRAP2EKJ.js";import{c as dt}from"./chunk-6SIZVSDW.js";import{ia as Ft}from"./chunk-JOBMLOGZ.js";import{$b as T,Ab as S,Ac as ct,Bb as E,Cb as r,Db as a,E as tt,Eb as u,Fb as v,Gb as A,Hb as M,Ib as x,Mc as K,Ob as N,Oc as mt,Pb as R,Qb as b,Ra as o,Rb as q,Sb as j,Tb as H,Ub as g,Vb as s,Y as w,Ya as nt,Yb as y,da as C,ea as f,eb as it,ec as ot,fc as at,gc as G,hc as p,ia as et,ic as V,jc as O,kb as F,kc as Q,mc as rt,nc as lt,oc as st,sc as pt,tb as c,tc as _t,ua as h,uc as B,vb as X,wc as L,yb as d,zb as D}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";var qt=["formRef"],jt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"custom",destinationType:t,oauthField:e}),z=n=>({$implicit:n}),Qt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"dynamic",destinationType:t,oauthField:e}),Zt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",destinationType:t,oauthField:e}),Jt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",asHttpOptions:!0,destinationType:t,oauthField:e}),Yt=()=>({maxWidth:"700px",width:"100%"});function te(n,i){n&1&&(N(0,2,2),u(1,"spk-icon"),R())}function ee(n,i){n&1&&b(0,2,3)}function ne(n,i){if(n&1){let t=x();N(0,2,1),r(1,"button",18),g("click",function(){C(t);let l=s();return f(l.testDestination())}),F(2,te,2,0)(3,ee,1,0),a(),R()}if(n&2){let t=s();o(),X("success",t.successfulTest()),o(),d(t.successfulTest()?2:3)}}function ie(n,i){if(n&1){let t=x();r(0,"p",24),g("click",function(){C(t);let l=s();return f(l.removeDestinationFormGroup(l.destinationCount()-1))}),N(1,5),u(2,"span",25),R(),a()}}function oe(n,i){if(n&1){let t=x();r(0,"div",30),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addDestinationFormGroup(l.key))}),r(1,"h3"),p(2),a(),r(3,"p"),p(4),a()()}if(n&2){let t=i.$implicit;o(2),V(t.displayName),o(2),V(t.description)}}function ae(n,i){if(n&1){let t=x();r(0,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addDestinationFormGroup(l.key))}),p(1),a()}if(n&2){let t=i.$implicit;o(),O(" ",t.displayName," ")}}function re(n,i){if(n&1&&(r(0,"div",26),S(1,oe,5,2,"div",27,D),a(),r(3,"spk-menu")(4,"button",28),b(5,6),a(),v(6,17),S(7,ae,2,1,"button",29,D),A(),a()),n&2){let t=s();o(),E(t.destinationTypeOptionsFocused()),o(6),E(t.destinationTypeOptionsNotFocused())}}function le(n,i){n&1&&M(0)}function se(n,i){if(n&1&&F(0,le,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,jt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function pe(n,i){n&1&&M(0)}function _e(n,i){if(n&1&&F(0,pe,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Qt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function ce(n,i){if(n&1){let t=x();N(0,7,1),r(1,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addAdvancedFormPair(l,0))}),a(),R()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function me(n,i){n&1&&M(0)}function Fe(n,i){if(n&1&&F(0,me,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Zt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function de(n,i){if(n&1){let t=x();N(0,8,1),r(1,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addHttpOption(l,0))}),a(),R()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function ue(n,i){n&1&&M(0)}function Te(n,i){if(n&1&&F(0,ue,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Jt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function Ce(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function fe(n,i){if(n&1&&(r(0,"app-file-tree",39)(1,"label",46),p(2),F(3,Ce,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit,l=s(2);c("startingPath",l.getFormFieldValue(0,e.formGroupName,e.formView.name))("accepts",e.formView.accepts)("showFiles",!0)("hideShortcuts",!0)("showHiddenNodes",!0)("selectFiles",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function ge(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function De(n,i){if(n&1&&(r(0,"app-file-tree",40)(1,"label",46),p(2),F(3,ge,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit,l=s(2);c("hideShortcuts",!0)("startingPath",l.getFormFieldValue(0,e.formGroupName,e.formView.name)),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function Se(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ee(n,i){n&1&&(r(0,"spk-icon",50),p(1,"link"),a())}function Oe(n,i){n&1&&(r(0,"spk-icon",50),p(1,"envelope"),a())}function xe(n,i){n&1&&(r(0,"spk-icon",50),p(1,"textbox"),a())}function ke(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,Se,3,1,"spk-tooltip",47),a(),u(4,"input",49),F(5,Ee,2,0,"spk-icon",50)(6,Oe,2,0,"spk-icon",50)(7,xe,2,0,"spk-icon",50),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),c("type",e.formView.type==="Email"?"email":"text"),o(),d(e.formView.type==="Path"?5:e.formView.type==="Email"?6:7)}}function Ne(n,i){if(n&1){let t=x();r(0,"span",54),g("click",function(){C(t);let l=s(2).$implicit,_=s(2);return f(_.oauthStartTokenCreation(l.destinationType))}),p(1,"AuthID"),a()}}function Re(n,i){n&1&&(r(0,"spk-icon",50),p(1,"password"),a())}function he(n,i){if(n&1){let t=x();r(0,"spk-icon",55),g("click",function(){C(t);let l=s(2).$implicit;return f(l.formView.showPassword=!l.formView.showPassword)}),p(1," eye "),a()}}function ye(n,i){if(n&1){let t=x();r(0,"spk-icon",55),g("click",function(){C(t);let l=s(2).$implicit;return f(l.formView.showPassword=!l.formView.showPassword)}),p(1," eye-slash "),a()}}function Ie(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),a(),u(3,"input",51),F(4,Ne,2,0,"span",52)(5,Re,2,0,"spk-icon",50)(6,he,2,0,"spk-icon",53)(7,ye,2,0,"spk-icon",53),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),c("type",e.formView.showPassword?"text":"password"),o(),d(e.oauthField===e.formView.name?4:5),o(2),d(e.formView.showPassword?6:7)}}function $e(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function we(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t.value),o(),Q(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function ve(n,i){if(n&1&&S(0,we,2,3,"spk-option",56,D),n&2){let t=s(2).$implicit,e=s(2);E(t.formView.loadOptions(e.injector)())}}function Ae(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function Pe(n,i){if(n&1&&S(0,Ae,2,2,"spk-option",56,D),n&2){let t=s(2).$implicit;E(t.formView.options)}}function Ve(n,i){if(n&1&&(r(0,"spk-select",41)(1,"label",46),p(2),F(3,$e,3,1,"spk-tooltip",47),a(),u(4,"input",48),F(5,ve,2,0)(6,Pe,2,0),a()),n&2){let t,e=s().$implicit;c("hideClearButton",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),o(),d(e.formView.loadOptions?5:-1),o(),d(e.formView.options?6:-1)}}function Me(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function be(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t.value),o(),Q(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function Ge(n,i){if(n&1&&S(0,be,2,3,"spk-option",56,D),n&2){let t=s(2).$implicit,e=s(2);E(t.formView.loadOptions(e.injector)())}}function Be(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function Le(n,i){if(n&1&&S(0,Be,2,2,"spk-option",56,D),n&2){let t=s(2).$implicit;E(t.formView.options)}}function Ue(n,i){if(n&1&&(r(0,"spk-select",42)(1,"label",46),p(2),F(3,Me,3,1,"spk-tooltip",47),a(),u(4,"input",57),F(5,Ge,2,0)(6,Le,2,0),a()),n&2){let t,e=s().$implicit;c("isFreeText",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),o(),d(e.formView.loadOptions?5:-1),o(),d(e.formView.options?6:-1)}}function He(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ke(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function We(n,i){if(n&1&&(r(0,"div",43)(1,"label",46),p(2),F(3,He,3,1,"spk-tooltip",47),a(),r(4,"div",58)(5,"spk-form-field"),u(6,"input",59),r(7,"spk-icon",50),p(8,"resize"),a()(),r(9,"spk-select"),u(10,"label")(11,"input",60),S(12,Ke,2,2,"spk-option",56,D),a()()()),n&2){let t,e=s().$implicit,l=s(2);c("formGroupName",e.formView.name),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(3),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(6),E(l.sizeOptions())}}function ze(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Xe(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,ze,3,1,"spk-tooltip",47),a(),u(4,"input",61),r(5,"spk-icon",50),p(6,"numpad"),a()()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function qe(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function je(n,i){if(n&1&&(r(0,"spk-toggle",44)(1,"label",46),p(2),F(3,qe,3,1,"spk-tooltip",47),a(),u(4,"input",62),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function Qe(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ze(n,i){n&1&&(r(0,"spk-option",64),p(1,"None"),a()),n&2&&c("value","None")}function Je(n,i){if(n&1&&(r(0,"spk-option",56),p(1),u(2,"spk-checkbox",65),a()),n&2){let t=s().$implicit;c("value",t),o(),O(" ",t," ")}}function Ye(n,i){if(n&1&&F(0,Ze,2,1,"spk-option",64)(1,Je,3,2,"spk-option",56),n&2){let t=i.$implicit;d(t==="None"?0:1)}}function tn(n,i){if(n&1&&(r(0,"spk-select",45)(1,"label",46),p(2),F(3,Qe,3,1,"spk-tooltip",47),a(),u(4,"input",63),S(5,Ye,2,1,null,null,D),a()),n&2){let t,e=s().$implicit;c("selectMultiple",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),y("formControlName",e.formView.name),o(),E(e.formView.options)}}function en(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function nn(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,en,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function on(n,i){if(n&1){let t=x();r(0,"button",66),g("click",function(){C(t);let l=s().$implicit,_=s(2);return f(_.removeFormView(l.formView,0))}),r(1,"spk-icon"),p(2,"x-circle"),a()()}}function an(n,i){if(n&1&&(r(0,"div",37),v(1,38),F(2,fe,5,17,"app-file-tree",39)(3,De,5,13,"app-file-tree",40)(4,ke,8,13,"spk-form-field")(5,Ie,8,13,"spk-form-field")(6,Ve,7,14,"spk-select",41)(7,Ue,7,14,"spk-select",42)(8,We,14,11,"div",43)(9,Xe,7,11,"spk-form-field")(10,je,5,11,"spk-toggle",44)(11,tn,7,8,"spk-select",45)(12,nn,5,11,"spk-form-field"),A(),F(13,on,3,0,"button",28),a()),n&2){let t=i.$implicit;X("single-field",t.formGroupName!=="advanced"),o(),c("formGroupName",t.formGroupName),o(),d(t.formView.type==="FileTree"?2:t.formView.type==="FolderTree"?3:t.formView.type==="String"||t.formView.type==="Path"||t.formView.type==="Email"?4:t.formView.type==="Password"?5:t.formView.type==="Enumeration"?6:t.formView.type==="NonValidatedSelectableString"?7:t.formView.type==="Size"?8:t.formView.type==="Integer"?9:t.formView.type==="Boolean"?10:t.formView.type==="Flags"?11:t.formView.type==="Timespan"?12:-1),o(11),d(t.formGroupName==="advanced"?13:-1)}}function rn(n,i){if(n&1&&(v(0,19)(1,32),S(2,se,1,9,"ng-container",null,D),S(4,_e,1,9,"ng-container",null,D),r(6,"app-toggle-card",33),v(7,34),N(8,7),r(9,"spk-menu")(10,"button",35),u(11,"spk-icon"),a(),v(12,17),S(13,ce,2,1,"button",29,D),A(),a(),R(),A(),S(15,Fe,1,9,"ng-container",null,D),a(),r(17,"app-toggle-card",33),v(18,34),N(19,8),r(20,"spk-menu")(21,"button",35),u(22,"spk-icon"),a(),v(23,17),S(24,de,2,1,"button",29,D),A(),a(),R(),A(),S(26,Te,1,9,"ng-container",null,D),a(),F(28,an,14,5,"ng-template",null,1,ct),A()()),n&2){let t=s();o(2),E(t.destinationFormPair().custom),o(2),E(t.destinationFormPair().dynamic),o(2),c("disallowToggle",!0),o(4),c("disabled",t.notSelectedAdvancedFormPair().length===0),o(3),E(t.notSelectedAdvancedFormPair()),o(2),E(t.selectedAdvancedFormPair()),o(2),c("disallowToggle",!0),o(4),c("disabled",t.notSelectedHttpOptions().length===0),o(3),E(t.notSelectedHttpOptions()),o(2),E(t.selectedHttpOptions())}}function ln(n,i){if(n&1){let t=x();r(0,"spk-dialog",67),st("isOpenChange",function(l){C(t);let _=s();return lt(_.targetUrlDialogOpen,l)||(_.targetUrlDialogOpen=l),f(l)}),r(1,"header",68)(2,"h2"),b(3,9),a(),r(4,"spk-alert",69),b(5,10),a()(),r(6,"div",70)(7,"spk-form-field"),u(8,"textarea",71),a()(),r(9,"footer",72)(10,"button",21),g("click",function(){C(t);let l=s();return f(l.closeTargetUrlDialog(!1))}),p(11,"Cancel"),a(),r(12,"button",73),g("click",function(){C(t);let l=s();return f(l.closeTargetUrlDialog(!0))}),N(13,11),u(14,"spk-icon"),R(),a()()()}if(n&2){let t=s();rt("isOpen",t.targetUrlDialogOpen),c("options",_t(3,Yt)),o(8),c("formControl",t.targetUrlCtrl)}}var sn=["Bytes","KB","MB","GB","TB","PB"],W=new It,vn=(n={destinations:[]})=>W.group({destinations:W.array(n.destinations)}),An=({key:n,customGroup:i,dynamicGroup:t,advancedGroup:e})=>W.group({destinationType:W.control(n),custom:i,dynamic:t,advanced:e}),J=class n{#l=w(Tt);#s=w(ut);#p=w(dt);#t=w(Z);#i=w(Ct);#e=w(Pt);#n=w(Xt);injector=w(et);formRef=nt.required("formRef");destinationForm=this.#t.destinationForm;destinationFormPair=this.#t.destinationFormPair;selectedAdvancedFormPair=this.#t.selectedAdvancedFormPair;notSelectedAdvancedFormPair=this.#t.notSelectedAdvancedFormPair;selectedHttpOptions=this.#t.selectedHttpOptions;notSelectedHttpOptions=this.#t.notSelectedHttpOptions;destinationOptions=this.#t.destinationOptions;destinationFormSignal=this.#t.destinationFormSignal;destinationCount=K(()=>this.destinationFormSignal()?.destinations?.length??0);sizeOptions=h(sn);successfulTest=h(!1);destinationTypeOptionsInFocus=h(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=h(zt.map(i=>({key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description})));destinationTypeOptionsFocused=K(()=>{let i=this.destinationTypeOptionsInFocus(),t=this.destinationTypeOptions();return i.map(e=>t.find(l=>l.key===e))});destinationTypeOptionsNotFocused=K(()=>{let i=this.destinationTypeOptionsInFocus();return this.destinationTypeOptions().filter(e=>!i.includes(e.key))});targetUrlEffect=mt(()=>{if(this.destinationFormSignal(),this.destinationForm.valid){let i=this.#t.getCurrentTargetUrl();this.#n.updateTargetUrl(i[0])}else this.#n.updateTargetUrl(null)});ngOnInit(){let i=this.#n.destinationTargetUrl();i&&this.#t.updateFieldsFromTargetUrl(i)}getFormFieldValue(i,t,e){return((this.destinationForm.controls.destinations.controls?.[i]).controls?.[t]).controls[e].value}addDestinationFormGroup(i){this.#t.addDestinationFormGroup(i)}addAdvancedFormPair(i,t){this.#t.addAdvancedFormPair(i,t)}removeFormView(i,t){this.#t.removeAdvancedFormPair(i,t)}addHttpOption(i,t){this.#t.addHttpOption(i,t)}targetUrlCtrl=new Et;targetUrlInitial=h(null);targetUrlDialogOpen=h(!1);openTargetUrlDialog(){let t=this.#t.getCurrentTargetUrl()[0];this.targetUrlCtrl.setValue(t),this.targetUrlInitial.set(t),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(i=!1){this.targetUrlDialogOpen.set(!1);let t=this.targetUrlCtrl.value,e=this.targetUrlInitial();!i||t===e||this.#t.updateFieldsFromTargetUrl(this.targetUrlCtrl.value)}testDestination(i=0){let e=this.#t.getCurrentTargetUrl()[i];e&&this.#i.postApiV1RemoteoperationTest({requestBody:{path:e}}).subscribe({next:()=>{this.successfulTest.set(!0),setTimeout(()=>{this.successfulTest.set(!1)},3e3)},error:l=>{let _=l.error.error.Error;if(_==="missing-folder"&&this.#e.open(U,{data:{title:$localize`Create folder`,message:$localize`The remote destination folder does not exist, do you want to create it?`},closed:m=>{m&&this.#i.postApiV1RemoteoperationCreate({requestBody:{path:e}}).subscribe()}}),_.startsWith("incorrect-cert:")){let m=_.split("incorrect-cert:")[1];this.#e.open(U,{maxWidth:"500px",data:{title:$localize`Trust the certificate`,message:$localize`The server is using a certificate that is not trusted.
1
+ import{g as Xt}from"./chunk-TZYGTULV.js";import{a as Wt,b as zt,o as Z}from"./chunk-MEFACGK4.js";import{a as Ht}from"./chunk-DURFGYD7.js";import{a as Kt}from"./chunk-BRMUJELY.js";import"./chunk-DNHLTHLR.js";import"./chunk-PNJEVGID.js";import"./chunk-YOP6HOXH.js";import{a as U}from"./chunk-RTVM3BJK.js";import{a as ft,b as gt,d as Dt,e as St,f as Et,h as Ot,i as xt,k as kt,l as Nt,m as Rt,n as ht,o as yt,p as It,r as $t}from"./chunk-XKAASYKO.js";import{b as Ct}from"./chunk-PPRHD3ZV.js";import{a as ut,c as Tt}from"./chunk-LJ3ULEOG.js";import"./chunk-C5EHOW7U.js";import{a as wt,b as vt,d as At,e as Pt,i as Vt,l as Mt,n as bt,r as Gt,s as Bt,x as Lt,y as Ut}from"./chunk-6KER52JR.js";import{c as dt}from"./chunk-MCLDJCPW.js";import{ia as Ft}from"./chunk-7IRVNC4S.js";import{Ab as E,Bb as r,Cb as a,Db as u,E as tt,Eb as v,Fb as A,Gb as M,Hb as x,Lc as K,Nb as N,Nc as mt,Ob as R,Pb as b,Qb as q,Ra as o,Rb as j,Sb as H,Tb as g,Ub as s,Xb as y,Y as w,Ya as nt,_b as T,da as C,dc as ot,ea as f,eb as it,ec as at,fc as G,gc as p,hc as V,ia as et,ic as O,jb as F,jc as Q,lc as rt,mc as lt,nc as st,rc as pt,sb as c,sc as _t,tc as B,ua as h,ub as X,vc as L,xb as d,yb as D,zb as S,zc as ct}from"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";var qt=["formRef"],jt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"custom",destinationType:t,oauthField:e}),z=n=>({$implicit:n}),Qt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"dynamic",destinationType:t,oauthField:e}),Zt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",destinationType:t,oauthField:e}),Jt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",asHttpOptions:!0,destinationType:t,oauthField:e}),Yt=()=>({maxWidth:"700px",width:"100%"});function te(n,i){n&1&&(N(0,2,2),u(1,"spk-icon"),R())}function ee(n,i){n&1&&b(0,2,3)}function ne(n,i){if(n&1){let t=x();N(0,2,1),r(1,"button",18),g("click",function(){C(t);let l=s();return f(l.testDestination())}),F(2,te,2,0)(3,ee,1,0),a(),R()}if(n&2){let t=s();o(),X("success",t.successfulTest()),o(),d(t.successfulTest()?2:3)}}function ie(n,i){if(n&1){let t=x();r(0,"p",24),g("click",function(){C(t);let l=s();return f(l.removeDestinationFormGroup(l.destinationCount()-1))}),N(1,5),u(2,"span",25),R(),a()}}function oe(n,i){if(n&1){let t=x();r(0,"div",30),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addDestinationFormGroup(l.key))}),r(1,"h3"),p(2),a(),r(3,"p"),p(4),a()()}if(n&2){let t=i.$implicit;o(2),V(t.displayName),o(2),V(t.description)}}function ae(n,i){if(n&1){let t=x();r(0,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addDestinationFormGroup(l.key))}),p(1),a()}if(n&2){let t=i.$implicit;o(),O(" ",t.displayName," ")}}function re(n,i){if(n&1&&(r(0,"div",26),S(1,oe,5,2,"div",27,D),a(),r(3,"spk-menu")(4,"button",28),b(5,6),a(),v(6,17),S(7,ae,2,1,"button",29,D),A(),a()),n&2){let t=s();o(),E(t.destinationTypeOptionsFocused()),o(6),E(t.destinationTypeOptionsNotFocused())}}function le(n,i){n&1&&M(0)}function se(n,i){if(n&1&&F(0,le,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,jt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function pe(n,i){n&1&&M(0)}function _e(n,i){if(n&1&&F(0,pe,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Qt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function ce(n,i){if(n&1){let t=x();N(0,7,1),r(1,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addAdvancedFormPair(l,0))}),a(),R()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function me(n,i){n&1&&M(0)}function Fe(n,i){if(n&1&&F(0,me,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Zt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function de(n,i){if(n&1){let t=x();N(0,8,1),r(1,"button",31),g("click",function(){let l=C(t).$implicit,_=s(2);return f(_.addHttpOption(l,0))}),a(),R()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function ue(n,i){n&1&&M(0)}function Te(n,i){if(n&1&&F(0,ue,1,0,"ng-container",36),n&2){let t,e=i.$implicit,l=i.$index;s();let _=G(29),m=s();c("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,z,L(2,Jt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function Ce(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function fe(n,i){if(n&1&&(r(0,"app-file-tree",39)(1,"label",46),p(2),F(3,Ce,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit,l=s(2);c("startingPath",l.getFormFieldValue(0,e.formGroupName,e.formView.name))("accepts",e.formView.accepts)("showFiles",!0)("hideShortcuts",!0)("showHiddenNodes",!0)("selectFiles",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function ge(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function De(n,i){if(n&1&&(r(0,"app-file-tree",40)(1,"label",46),p(2),F(3,ge,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit,l=s(2);c("hideShortcuts",!0)("startingPath",l.getFormFieldValue(0,e.formGroupName,e.formView.name)),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function Se(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ee(n,i){n&1&&(r(0,"spk-icon",50),p(1,"link"),a())}function Oe(n,i){n&1&&(r(0,"spk-icon",50),p(1,"envelope"),a())}function xe(n,i){n&1&&(r(0,"spk-icon",50),p(1,"textbox"),a())}function ke(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,Se,3,1,"spk-tooltip",47),a(),u(4,"input",49),F(5,Ee,2,0,"spk-icon",50)(6,Oe,2,0,"spk-icon",50)(7,xe,2,0,"spk-icon",50),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),c("type",e.formView.type==="Email"?"email":"text"),o(),d(e.formView.type==="Path"?5:e.formView.type==="Email"?6:7)}}function Ne(n,i){if(n&1){let t=x();r(0,"span",54),g("click",function(){C(t);let l=s(2).$implicit,_=s(2);return f(_.oauthStartTokenCreation(l.destinationType))}),p(1,"AuthID"),a()}}function Re(n,i){n&1&&(r(0,"spk-icon",50),p(1,"password"),a())}function he(n,i){if(n&1){let t=x();r(0,"spk-icon",55),g("click",function(){C(t);let l=s(2).$implicit;return f(l.formView.showPassword=!l.formView.showPassword)}),p(1," eye "),a()}}function ye(n,i){if(n&1){let t=x();r(0,"spk-icon",55),g("click",function(){C(t);let l=s(2).$implicit;return f(l.formView.showPassword=!l.formView.showPassword)}),p(1," eye-slash "),a()}}function Ie(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),a(),u(3,"input",51),F(4,Ne,2,0,"span",52)(5,Re,2,0,"spk-icon",50)(6,he,2,0,"spk-icon",53)(7,ye,2,0,"spk-icon",53),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),c("type",e.formView.showPassword?"text":"password"),o(),d(e.oauthField===e.formView.name?4:5),o(2),d(e.formView.showPassword?6:7)}}function $e(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function we(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t.value),o(),Q(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function ve(n,i){if(n&1&&S(0,we,2,3,"spk-option",56,D),n&2){let t=s(2).$implicit,e=s(2);E(t.formView.loadOptions(e.injector)())}}function Ae(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function Pe(n,i){if(n&1&&S(0,Ae,2,2,"spk-option",56,D),n&2){let t=s(2).$implicit;E(t.formView.options)}}function Ve(n,i){if(n&1&&(r(0,"spk-select",41)(1,"label",46),p(2),F(3,$e,3,1,"spk-tooltip",47),a(),u(4,"input",48),F(5,ve,2,0)(6,Pe,2,0),a()),n&2){let t,e=s().$implicit;c("hideClearButton",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),o(),d(e.formView.loadOptions?5:-1),o(),d(e.formView.options?6:-1)}}function Me(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function be(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t.value),o(),Q(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function Ge(n,i){if(n&1&&S(0,be,2,3,"spk-option",56,D),n&2){let t=s(2).$implicit,e=s(2);E(t.formView.loadOptions(e.injector)())}}function Be(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function Le(n,i){if(n&1&&S(0,Be,2,2,"spk-option",56,D),n&2){let t=s(2).$implicit;E(t.formView.options)}}function Ue(n,i){if(n&1&&(r(0,"spk-select",42)(1,"label",46),p(2),F(3,Me,3,1,"spk-tooltip",47),a(),u(4,"input",57),F(5,Ge,2,0)(6,Le,2,0),a()),n&2){let t,e=s().$implicit;c("isFreeText",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),o(),d(e.formView.loadOptions?5:-1),o(),d(e.formView.options?6:-1)}}function He(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ke(n,i){if(n&1&&(r(0,"spk-option",56),p(1),a()),n&2){let t=i.$implicit;c("value",t),o(),V(t)}}function We(n,i){if(n&1&&(r(0,"div",43)(1,"label",46),p(2),F(3,He,3,1,"spk-tooltip",47),a(),r(4,"div",58)(5,"spk-form-field"),u(6,"input",59),r(7,"spk-icon",50),p(8,"resize"),a()(),r(9,"spk-select"),u(10,"label")(11,"input",60),S(12,Ke,2,2,"spk-option",56,D),a()()()),n&2){let t,e=s().$implicit,l=s(2);c("formGroupName",e.formView.name),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(3),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(6),E(l.sizeOptions())}}function ze(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Xe(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,ze,3,1,"spk-tooltip",47),a(),u(4,"input",61),r(5,"spk-icon",50),p(6,"numpad"),a()()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function qe(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function je(n,i){if(n&1&&(r(0,"spk-toggle",44)(1,"label",46),p(2),F(3,qe,3,1,"spk-tooltip",47),a(),u(4,"input",62),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function Qe(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function Ze(n,i){n&1&&(r(0,"spk-option",64),p(1,"None"),a()),n&2&&c("value","None")}function Je(n,i){if(n&1&&(r(0,"spk-option",56),p(1),u(2,"spk-checkbox",65),a()),n&2){let t=s().$implicit;c("value",t),o(),O(" ",t," ")}}function Ye(n,i){if(n&1&&F(0,Ze,2,1,"spk-option",64)(1,Je,3,2,"spk-option",56),n&2){let t=i.$implicit;d(t==="None"?0:1)}}function tn(n,i){if(n&1&&(r(0,"spk-select",45)(1,"label",46),p(2),F(3,Qe,3,1,"spk-tooltip",47),a(),u(4,"input",63),S(5,Ye,2,1,null,null,D),a()),n&2){let t,e=s().$implicit;c("selectMultiple",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),y("formControlName",e.formView.name),o(),E(e.formView.options)}}function en(n,i){if(n&1&&(r(0,"spk-tooltip",47)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;c("message",t.formView.longDescription)}}function nn(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",46),p(2),F(3,en,3,1,"spk-tooltip",47),a(),u(4,"input",48),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function on(n,i){if(n&1){let t=x();r(0,"button",66),g("click",function(){C(t);let l=s().$implicit,_=s(2);return f(_.removeFormView(l.formView,0))}),r(1,"spk-icon"),p(2,"x-circle"),a()()}}function an(n,i){if(n&1&&(r(0,"div",37),v(1,38),F(2,fe,5,17,"app-file-tree",39)(3,De,5,13,"app-file-tree",40)(4,ke,8,13,"spk-form-field")(5,Ie,8,13,"spk-form-field")(6,Ve,7,14,"spk-select",41)(7,Ue,7,14,"spk-select",42)(8,We,14,11,"div",43)(9,Xe,7,11,"spk-form-field")(10,je,5,11,"spk-toggle",44)(11,tn,7,8,"spk-select",45)(12,nn,5,11,"spk-form-field"),A(),F(13,on,3,0,"button",28),a()),n&2){let t=i.$implicit;X("single-field",t.formGroupName!=="advanced"),o(),c("formGroupName",t.formGroupName),o(),d(t.formView.type==="FileTree"?2:t.formView.type==="FolderTree"?3:t.formView.type==="String"||t.formView.type==="Path"||t.formView.type==="Email"?4:t.formView.type==="Password"?5:t.formView.type==="Enumeration"?6:t.formView.type==="NonValidatedSelectableString"?7:t.formView.type==="Size"?8:t.formView.type==="Integer"?9:t.formView.type==="Boolean"?10:t.formView.type==="Flags"?11:t.formView.type==="Timespan"?12:-1),o(11),d(t.formGroupName==="advanced"?13:-1)}}function rn(n,i){if(n&1&&(v(0,19)(1,32),S(2,se,1,9,"ng-container",null,D),S(4,_e,1,9,"ng-container",null,D),r(6,"app-toggle-card",33),v(7,34),N(8,7),r(9,"spk-menu")(10,"button",35),u(11,"spk-icon"),a(),v(12,17),S(13,ce,2,1,"button",29,D),A(),a(),R(),A(),S(15,Fe,1,9,"ng-container",null,D),a(),r(17,"app-toggle-card",33),v(18,34),N(19,8),r(20,"spk-menu")(21,"button",35),u(22,"spk-icon"),a(),v(23,17),S(24,de,2,1,"button",29,D),A(),a(),R(),A(),S(26,Te,1,9,"ng-container",null,D),a(),F(28,an,14,5,"ng-template",null,1,ct),A()()),n&2){let t=s();o(2),E(t.destinationFormPair().custom),o(2),E(t.destinationFormPair().dynamic),o(2),c("disallowToggle",!0),o(4),c("disabled",t.notSelectedAdvancedFormPair().length===0),o(3),E(t.notSelectedAdvancedFormPair()),o(2),E(t.selectedAdvancedFormPair()),o(2),c("disallowToggle",!0),o(4),c("disabled",t.notSelectedHttpOptions().length===0),o(3),E(t.notSelectedHttpOptions()),o(2),E(t.selectedHttpOptions())}}function ln(n,i){if(n&1){let t=x();r(0,"spk-dialog",67),st("isOpenChange",function(l){C(t);let _=s();return lt(_.targetUrlDialogOpen,l)||(_.targetUrlDialogOpen=l),f(l)}),r(1,"header",68)(2,"h2"),b(3,9),a(),r(4,"spk-alert",69),b(5,10),a()(),r(6,"div",70)(7,"spk-form-field"),u(8,"textarea",71),a()(),r(9,"footer",72)(10,"button",21),g("click",function(){C(t);let l=s();return f(l.closeTargetUrlDialog(!1))}),p(11,"Cancel"),a(),r(12,"button",73),g("click",function(){C(t);let l=s();return f(l.closeTargetUrlDialog(!0))}),N(13,11),u(14,"spk-icon"),R(),a()()()}if(n&2){let t=s();rt("isOpen",t.targetUrlDialogOpen),c("options",_t(3,Yt)),o(8),c("formControl",t.targetUrlCtrl)}}var sn=["Bytes","KB","MB","GB","TB","PB"],W=new It,vn=(n={destinations:[]})=>W.group({destinations:W.array(n.destinations)}),An=({key:n,customGroup:i,dynamicGroup:t,advancedGroup:e})=>W.group({destinationType:W.control(n),custom:i,dynamic:t,advanced:e}),J=class n{#l=w(Tt);#s=w(ut);#p=w(dt);#t=w(Z);#i=w(Ct);#e=w(Pt);#n=w(Xt);injector=w(et);formRef=nt.required("formRef");destinationForm=this.#t.destinationForm;destinationFormPair=this.#t.destinationFormPair;selectedAdvancedFormPair=this.#t.selectedAdvancedFormPair;notSelectedAdvancedFormPair=this.#t.notSelectedAdvancedFormPair;selectedHttpOptions=this.#t.selectedHttpOptions;notSelectedHttpOptions=this.#t.notSelectedHttpOptions;destinationOptions=this.#t.destinationOptions;destinationFormSignal=this.#t.destinationFormSignal;destinationCount=K(()=>this.destinationFormSignal()?.destinations?.length??0);sizeOptions=h(sn);successfulTest=h(!1);destinationTypeOptionsInFocus=h(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=h(zt.map(i=>({key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description})));destinationTypeOptionsFocused=K(()=>{let i=this.destinationTypeOptionsInFocus(),t=this.destinationTypeOptions();return i.map(e=>t.find(l=>l.key===e))});destinationTypeOptionsNotFocused=K(()=>{let i=this.destinationTypeOptionsInFocus();return this.destinationTypeOptions().filter(e=>!i.includes(e.key))});targetUrlEffect=mt(()=>{if(this.destinationFormSignal(),this.destinationForm.valid){let i=this.#t.getCurrentTargetUrl();this.#n.updateTargetUrl(i[0])}else this.#n.updateTargetUrl(null)});ngOnInit(){let i=this.#n.destinationTargetUrl();i&&this.#t.updateFieldsFromTargetUrl(i)}getFormFieldValue(i,t,e){return((this.destinationForm.controls.destinations.controls?.[i]).controls?.[t]).controls[e].value}addDestinationFormGroup(i){this.#t.addDestinationFormGroup(i)}addAdvancedFormPair(i,t){this.#t.addAdvancedFormPair(i,t)}removeFormView(i,t){this.#t.removeAdvancedFormPair(i,t)}addHttpOption(i,t){this.#t.addHttpOption(i,t)}targetUrlCtrl=new Et;targetUrlInitial=h(null);targetUrlDialogOpen=h(!1);openTargetUrlDialog(){let t=this.#t.getCurrentTargetUrl()[0];this.targetUrlCtrl.setValue(t),this.targetUrlInitial.set(t),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(i=!1){this.targetUrlDialogOpen.set(!1);let t=this.targetUrlCtrl.value,e=this.targetUrlInitial();!i||t===e||this.#t.updateFieldsFromTargetUrl(this.targetUrlCtrl.value)}testDestination(i=0){let e=this.#t.getCurrentTargetUrl()[i];e&&this.#i.postApiV1RemoteoperationTest({requestBody:{path:e}}).subscribe({next:()=>{this.successfulTest.set(!0),setTimeout(()=>{this.successfulTest.set(!1)},3e3)},error:l=>{let _=l.error.error.Error;if(_==="missing-folder"&&this.#e.open(U,{data:{title:$localize`Create folder`,message:$localize`The remote destination folder does not exist, do you want to create it?`},closed:m=>{m&&this.#i.postApiV1RemoteoperationCreate({requestBody:{path:e}}).subscribe()}}),_.startsWith("incorrect-cert:")){let m=_.split("incorrect-cert:")[1];this.#e.open(U,{maxWidth:"500px",data:{title:$localize`Trust the certificate`,message:$localize`The server is using a certificate that is not trusted.
2
2
  If this is a self-signed certificate, you can choose to trust this certificate.
3
3
  The server reported the certificate hash: ${m}`,confirmText:"Trust the certificate",cancelText:"Cancel"},closed:k=>{k&&this.#t.addHttpOptionByName("accept-specified-ssl-hash",m)}})}if(_.startsWith("incorrect-host-key:")){let m=_.split('incorrect-host-key:"')[1].split('",')[0],k=_.split('accepted-host-key:"')[1].split('",')[0];k?this.#e.open(U,{maxWidth:"500px",data:{title:$localize`The host key has changed`,message:$localize`The host key has changed, please check with the server administrator if this is correct,
4
4
  otherwise you could be the victim of a MAN-IN-THE-MIDDLE attack.
@@ -1 +1 @@
1
- import{b as A}from"./chunk-MHZPUJQF.js";import{b as S}from"./chunk-TQE7OBBP.js";import{c as M}from"./chunk-NVTD7IP4.js";import{o as P}from"./chunk-JRAP2EKJ.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import{Cb as i,Db as r,E as p,Eb as _,Qb as C,Ra as c,Y as o,eb as g,hc as u,ic as E,kb as d,p as l,ua as m,yb as f}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";function G(t,e){t&1&&_(0,"spk-progress-bar",1)}var a=class t{#n=o(M);#e=o(S);isLoading=m(!0);generalInfo=A(this.#e.getApiV1Acknowledgements().pipe(l(e=>e.Acknowledgements),p(()=>this.isLoading.set(!1))));static \u0275fac=function(n){return new(n||t)};static \u0275cmp=g({type:t,selectors:[["app-general"]],decls:6,vars:2,consts:()=>{let e;return e=$localize`General`,[e,[1,"indeterminate","primary"]]},template:function(n,s){n&1&&(d(0,G,1,0,"spk-progress-bar",1),i(1,"section")(2,"h3"),C(3,0),r(),i(4,"div"),u(5),r()()),n&2&&(f(s.isLoading()?0:-1),c(5),E(s.generalInfo()))},dependencies:[P],styles:["[_nghost-%COMP%]{display:block;position:relative}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{white-space:pre-wrap}spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}"],changeDetection:0})};export{a as default};
1
+ import{b as A}from"./chunk-PNJEVGID.js";import{b as S}from"./chunk-PPRHD3ZV.js";import{c as M}from"./chunk-C5EHOW7U.js";import{o as P}from"./chunk-6KER52JR.js";import"./chunk-MCLDJCPW.js";import"./chunk-7IRVNC4S.js";import{Bb as i,Cb as r,Db as _,E as p,Pb as C,Ra as c,Y as o,eb as g,gc as u,hc as E,jb as d,p as l,ua as m,xb as f}from"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";function G(t,e){t&1&&_(0,"spk-progress-bar",1)}var a=class t{#n=o(M);#e=o(S);isLoading=m(!0);generalInfo=A(this.#e.getApiV1Acknowledgements().pipe(l(e=>e.Acknowledgements),p(()=>this.isLoading.set(!1))));static \u0275fac=function(n){return new(n||t)};static \u0275cmp=g({type:t,selectors:[["app-general"]],decls:6,vars:2,consts:()=>{let e;return e=$localize`General`,[e,[1,"indeterminate","primary"]]},template:function(n,s){n&1&&(d(0,G,1,0,"spk-progress-bar",1),i(1,"section")(2,"h3"),C(3,0),r(),i(4,"div"),u(5),r()()),n&2&&(f(s.isLoading()?0:-1),c(5),E(s.generalInfo()))},dependencies:[P],styles:["[_nghost-%COMP%]{display:block;position:relative}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{white-space:pre-wrap}spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}"],changeDetection:0})};export{a as default};
@@ -1 +1 @@
1
- import{$ as aa,A as B,Aa as Ba,B as C,Ba as Ca,C as D,Ca as Da,D as E,Da as Ea,E as F,Ea as Fa,F as G,Fa as Ga,G as H,Ga as Ha,H as I,Ha as Ia,I as J,Ia as Ja,J as K,Ja as Ka,K as L,Ka as La,L as M,La as Ma,M as N,Ma as Na,N as O,Na as Oa,O as P,Oa as Pa,P as Q,Q as R,R as S,S as T,T as U,U as V,V as W,W as X,X as Y,Y as Z,Z as _,_ as $,a as b,aa as ba,b as c,ba as ca,c as d,ca as da,d as e,da as ea,e as f,ea as fa,f as g,fa as ga,g as h,ga as ha,h as i,ha as ia,i as j,ia as ja,j as k,ja as ka,k as l,ka as la,l as m,la as ma,m as n,ma as na,n as o,na as oa,o as p,oa as pa,p as q,pa as qa,q as r,qa as ra,r as s,ra as sa,s as t,sa as ta,t as u,ta as ua,u as v,ua as va,v as w,va as wa,w as x,wa as xa,x as y,xa as ya,y as z,ya as za,z as A,za as Aa}from"./chunk-JOBMLOGZ.js";import{Ba as a}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";export{l as APP_BASE_HREF,ka as AsyncPipe,i as BrowserPlatformLocation,za as CommonModule,xa as CurrencyPipe,pa as DATE_PIPE_DEFAULT_OPTIONS,oa as DATE_PIPE_DEFAULT_TIMEZONE,f as DOCUMENT,qa as DatePipe,va as DecimalPipe,r as FormStyle,t as FormatWidth,n as HashLocationStrategy,ra as I18nPluralPipe,sa as I18nSelectPipe,a as IMAGE_CONFIG,Ia as IMAGE_LOADER,ta as JsonPipe,ua as KeyValuePipe,h as LOCATION_INITIALIZED,o as Location,k as LocationStrategy,la as LowerCasePipe,Z as NgClass,_ as NgComponentOutlet,aa as NgFor,aa as NgForOf,$ as NgForOfContext,ba as NgIf,ca as NgIfContext,W as NgLocaleLocalization,V as NgLocalization,Pa as NgOptimizedImage,ga as NgPlural,ha as NgPluralCase,ia as NgStyle,da as NgSwitch,ea as NgSwitchCase,fa as NgSwitchDefault,ja as NgTemplateOutlet,p as NumberFormatStyle,u as NumberSymbol,Oa as PRECONNECT_CHECK_BLOCKLIST,m as PathLocationStrategy,wa as PercentPipe,g as PlatformLocation,q as Plural,ya as SlicePipe,ma as TitleCasePipe,s as TranslationWidth,na as UpperCasePipe,Ea as VERSION,Fa as ViewportScroller,v as WeekDay,Ha as XhrFactory,S as formatCurrency,R as formatDate,U as formatNumber,T as formatPercent,P as getCurrencySymbol,K as getLocaleCurrencyCode,J as getLocaleCurrencyName,I as getLocaleCurrencySymbol,D as getLocaleDateFormat,F as getLocaleDateTimeFormat,y as getLocaleDayNames,x as getLocaleDayPeriods,O as getLocaleDirection,A as getLocaleEraNames,M as getLocaleExtraDayPeriodRules,N as getLocaleExtraDayPeriods,B as getLocaleFirstDayOfWeek,w as getLocaleId,z as getLocaleMonthNames,H as getLocaleNumberFormat,G as getLocaleNumberSymbol,L as getLocalePluralCase,E as getLocaleTimeFormat,C as getLocaleWeekEndRange,Q as getNumberOfCurrencyDigits,Ca as isPlatformBrowser,Da as isPlatformServer,Ja as provideCloudflareLoader,Ka as provideCloudinaryLoader,La as provideImageKitLoader,Ma as provideImgixLoader,Na as provideNetlifyLoader,X as registerLocaleData,d as \u0275DomAdapter,Ga as \u0275NullViewportScroller,Aa as \u0275PLATFORM_BROWSER_ID,Ba as \u0275PLATFORM_SERVER_ID,e as \u0275PlatformNavigation,b as \u0275getDOM,j as \u0275normalizeQueryParams,Y as \u0275parseCookieValue,c as \u0275setRootDomAdapter};
1
+ import{$ as aa,A as B,Aa as Ba,B as C,Ba as Ca,C as D,Ca as Da,D as E,Da as Ea,E as F,Ea as Fa,F as G,Fa as Ga,G as H,Ga as Ha,H as I,Ha as Ia,I as J,Ia as Ja,J as K,Ja as Ka,K as L,Ka as La,L as M,La as Ma,M as N,Ma as Na,N as O,Na as Oa,O as P,Oa as Pa,P as Q,Q as R,R as S,S as T,T as U,U as V,V as W,W as X,X as Y,Y as Z,Z as _,_ as $,a as b,aa as ba,b as c,ba as ca,c as d,ca as da,d as e,da as ea,e as f,ea as fa,f as g,fa as ga,g as h,ga as ha,h as i,ha as ia,i as j,ia as ja,j as k,ja as ka,k as l,ka as la,l as m,la as ma,m as n,ma as na,n as o,na as oa,o as p,oa as pa,p as q,pa as qa,q as r,qa as ra,r as s,ra as sa,s as t,sa as ta,t as u,ta as ua,u as v,ua as va,v as w,va as wa,w as x,wa as xa,x as y,xa as ya,y as z,ya as za,z as A,za as Aa}from"./chunk-7IRVNC4S.js";import{Ba as a}from"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";export{l as APP_BASE_HREF,ka as AsyncPipe,i as BrowserPlatformLocation,za as CommonModule,xa as CurrencyPipe,pa as DATE_PIPE_DEFAULT_OPTIONS,oa as DATE_PIPE_DEFAULT_TIMEZONE,f as DOCUMENT,qa as DatePipe,va as DecimalPipe,r as FormStyle,t as FormatWidth,n as HashLocationStrategy,ra as I18nPluralPipe,sa as I18nSelectPipe,a as IMAGE_CONFIG,Ia as IMAGE_LOADER,ta as JsonPipe,ua as KeyValuePipe,h as LOCATION_INITIALIZED,o as Location,k as LocationStrategy,la as LowerCasePipe,Z as NgClass,_ as NgComponentOutlet,aa as NgFor,aa as NgForOf,$ as NgForOfContext,ba as NgIf,ca as NgIfContext,W as NgLocaleLocalization,V as NgLocalization,Pa as NgOptimizedImage,ga as NgPlural,ha as NgPluralCase,ia as NgStyle,da as NgSwitch,ea as NgSwitchCase,fa as NgSwitchDefault,ja as NgTemplateOutlet,p as NumberFormatStyle,u as NumberSymbol,Oa as PRECONNECT_CHECK_BLOCKLIST,m as PathLocationStrategy,wa as PercentPipe,g as PlatformLocation,q as Plural,ya as SlicePipe,ma as TitleCasePipe,s as TranslationWidth,na as UpperCasePipe,Ea as VERSION,Fa as ViewportScroller,v as WeekDay,Ha as XhrFactory,S as formatCurrency,R as formatDate,U as formatNumber,T as formatPercent,P as getCurrencySymbol,K as getLocaleCurrencyCode,J as getLocaleCurrencyName,I as getLocaleCurrencySymbol,D as getLocaleDateFormat,F as getLocaleDateTimeFormat,y as getLocaleDayNames,x as getLocaleDayPeriods,O as getLocaleDirection,A as getLocaleEraNames,M as getLocaleExtraDayPeriodRules,N as getLocaleExtraDayPeriods,B as getLocaleFirstDayOfWeek,w as getLocaleId,z as getLocaleMonthNames,H as getLocaleNumberFormat,G as getLocaleNumberSymbol,L as getLocalePluralCase,E as getLocaleTimeFormat,C as getLocaleWeekEndRange,Q as getNumberOfCurrencyDigits,Ca as isPlatformBrowser,Da as isPlatformServer,Ja as provideCloudflareLoader,Ka as provideCloudinaryLoader,La as provideImageKitLoader,Ma as provideImgixLoader,Na as provideNetlifyLoader,X as registerLocaleData,d as \u0275DomAdapter,Ga as \u0275NullViewportScroller,Aa as \u0275PLATFORM_BROWSER_ID,Ba as \u0275PLATFORM_SERVER_ID,e as \u0275PlatformNavigation,b as \u0275getDOM,j as \u0275normalizeQueryParams,Y as \u0275parseCookieValue,c as \u0275setRootDomAdapter};
@@ -1,2 +1,2 @@
1
- import{b as B}from"./chunk-TQE7OBBP.js";import{a as D,v as U}from"./chunk-JRAP2EKJ.js";import"./chunk-6SIZVSDW.js";import{pa as R}from"./chunk-JOBMLOGZ.js";import{Ab as x,Bb as I,Cb as o,Db as a,E as S,Eb as u,Ib as v,Oa as T,Qb as p,Ra as l,Ub as A,Vb as c,Y as O,da as M,ea as L,eb as f,hc as _,ic as g,kb as E,mc as $,nc as k,oc as y,tb as m,ua as d,ub as P,vb as h,xc as G,yb as b,zb as N,zc as w}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";function X(s,n){if(s&1&&(o(0,"tr")(1,"td",10)(2,"code"),u(3,"ol",11),a()()()),s&2){let e=c().$implicit,t=c();l(),P("grid-column","1 / -1")("height","auto"),l(2),m("innerHTML",t.breakIntoLines(e.Exception),T)}}function z(s,n){if(s&1){let e=v();o(0,"tr",7),A("click",function(){let i=M(e).$index,r=c();return L(r.toggleRow(i))}),o(1,"td"),_(2),G(3,"date"),a(),o(4,"td",8),_(5),a(),o(6,"td"),_(7),a(),o(8,"td")(9,"button",9)(10,"spk-icon"),_(11,"caret-down"),a()()()(),E(12,X,4,5,"tr")}if(s&2){let e=n.$implicit,t=n.$index,i=c();l(2),g(w(3,6,e.Timestamp,"MMM dd. hh:mm")),l(3),g(e.BackupID>=0?e.BackupID:"-"),l(2),g(e.Message),l(2),h("rotated-icon",t===i.openRowIndex()),l(3),b(t===i.openRowIndex()?12:-1)}}var F=["BackupID","Timestamp","Message","actions"],C=class s{#e=O(B);displayedColumns=d(F);logsLoading=d(!0);openRowIndex=d(null);logs=d([]);ngOnInit(){this.init()}init(){this.#e.getApiV1LogdataLog().pipe(S(()=>this.logsLoading.set(!1))).subscribe({next:n=>{console.log(n),this.logs.set(n)}})}toggleRow(n){this.openRowIndex.set(n===this.openRowIndex()?null:n)}breakIntoLines(n){let e=n.split(`
1
+ import{b as B}from"./chunk-PPRHD3ZV.js";import{a as D,v as U}from"./chunk-6KER52JR.js";import"./chunk-MCLDJCPW.js";import{pa as R}from"./chunk-7IRVNC4S.js";import{Ab as I,Bb as o,Cb as a,Db as u,E as S,Hb as v,Oa as T,Pb as p,Ra as l,Tb as A,Ub as c,Y as O,da as M,ea as L,eb as f,gc as _,hc as g,jb as E,lc as $,mc as k,nc as y,sb as m,tb as P,ua as d,ub as h,wc as G,xb as b,yb as N,yc as w,zb as x}from"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";function X(s,n){if(s&1&&(o(0,"tr")(1,"td",10)(2,"code"),u(3,"ol",11),a()()()),s&2){let e=c().$implicit,t=c();l(),P("grid-column","1 / -1")("height","auto"),l(2),m("innerHTML",t.breakIntoLines(e.Exception),T)}}function z(s,n){if(s&1){let e=v();o(0,"tr",7),A("click",function(){let i=M(e).$index,r=c();return L(r.toggleRow(i))}),o(1,"td"),_(2),G(3,"date"),a(),o(4,"td",8),_(5),a(),o(6,"td"),_(7),a(),o(8,"td")(9,"button",9)(10,"spk-icon"),_(11,"caret-down"),a()()()(),E(12,X,4,5,"tr")}if(s&2){let e=n.$implicit,t=n.$index,i=c();l(2),g(w(3,6,e.Timestamp,"MMM dd. hh:mm")),l(3),g(e.BackupID>=0?e.BackupID:"-"),l(2),g(e.Message),l(2),h("rotated-icon",t===i.openRowIndex()),l(3),b(t===i.openRowIndex()?12:-1)}}var F=["BackupID","Timestamp","Message","actions"],C=class s{#e=O(B);displayedColumns=d(F);logsLoading=d(!0);openRowIndex=d(null);logs=d([]);ngOnInit(){this.init()}init(){this.#e.getApiV1LogdataLog().pipe(S(()=>this.logsLoading.set(!1))).subscribe({next:n=>{console.log(n),this.logs.set(n)}})}toggleRow(n){this.openRowIndex.set(n===this.openRowIndex()?null:n)}breakIntoLines(n){let e=n.split(`
2
2
  `),t="";for(let i=0;i<e.length;i++)t+=`<li>${e[i]}</li>`;return t}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=f({type:s,selectors:[["app-logs"]],decls:15,vars:2,consts:()=>{let n;n=$localize`Timestamp`;let e;e=$localize`Backup ID`;let t;t=$localize`Message`;let i;return i=$localize`No data available`,[n,e,t,i,[3,"dataChange","data","loading"],["table-header",""],["table-no-rows",""],[3,"click"],[1,"id"],["spk-button","","type","button",1,"outlined","small"],[2,"white-space","pre-wrap"],[1,"line-numbers-ol",3,"innerHTML"]]},template:function(e,t){e&1&&(o(0,"h3"),_(1,"Logs"),a(),o(2,"spk-table",4),y("dataChange",function(r){return k(t.logs,r)||(t.logs=r),r}),o(3,"tr",5)(4,"th"),p(5,0),a(),o(6,"th"),p(7,1),a(),o(8,"th"),p(9,2),a(),u(10,"th"),a(),x(11,z,13,9,null,null,N),o(13,"div",6),p(14,3),a()()),e&2&&(l(2),$("data",t.logs),m("loading",t.logsLoading()),l(9),I(t.logs()))},dependencies:[U,R,D],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}spk-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}spk-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}spk-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}spk-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{C as default};
@@ -1 +1 @@
1
- import{b as $}from"./chunk-MHZPUJQF.js";import{a as R}from"./chunk-UYV5TDBS.js";import"./chunk-Z5FVTSXP.js";import"./chunk-FOHDLUCC.js";import"./chunk-7KWOTSVE.js";import"./chunk-ZOMDTRAX.js";import"./chunk-LFQXDL42.js";import"./chunk-2K3CR66C.js";import{b as k}from"./chunk-TQE7OBBP.js";import{a as A,d as N}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as B,g as O}from"./chunk-JRAP2EKJ.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-US4WRUST.js";import{Ab as S,Bb as g,Cb as F,Db as a,Eb as r,Mc as M,Ob as _,Pb as c,Qb as u,Ra as i,Tb as T,Ub as I,Y as m,eb as C,hc as E,jc as L,kb as p,ua as l,yb as s,zb as f}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";function b(e,t){e&1&&u(0,2,1)}function P(e,t){e&1&&u(0,2,2)}function h(e,t){e&1&&u(0,2,3)}function v(e,t){e&1&&u(0,2,4)}function U(e,t){if(e&1&&(E(0),r(1,"br")),e&2){let n=t.$implicit;L(" ",n," ")}}var D=class e{#t=m(k);#e=m(A);#n=$(this.#e.params);runId=M(()=>this.#n()?.runId);offset=l(0);status=l("starting");messageLog=l([]);interval=setInterval(()=>{this.#t.getApiV1CommandlineByRunid({runid:this.runId(),offset:this.offset(),pagesize:100}).subscribe(t=>{this.offset.set(t.Count),this.evalStatus(t),this.messageLog.update(n=>[...n,...t.Items])})},1e3);evalStatus(t){t.Started===!0&&t.Finished===!0&&(this.status.set("finished"),clearInterval(this.interval)),t.Started===!0&&t.Finished===!1&&this.status.set("started")}abort(){this.#t.postApiV1CommandlineByRunidAbort({runid:this.runId()}).subscribe({next:t=>{this.status.set("aborted"),clearInterval(this.interval)}})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=C({type:e,selectors:[["app-commandline-result"]],decls:18,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let n;n=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let o;return o=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,o=T(o),[t,n,o,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],["type","button","spk-button","",1,"small",3,"click"],[1,"status"]]},template:function(n,o){n&1&&(r(0,"app-status-bar"),F(1,"section")(2,"div",3)(3,"button",4),_(4,0),r(5,"spk-icon"),c(),a()(),F(6,"h3"),_(7,1),F(8,"button",5),I("click",function(){return o.abort()}),a(),c(),a(),F(9,"div",6),_(10,2),p(11,b,1,0)(12,P,1,0)(13,h,1,0)(14,v,1,0),c(),a(),F(15,"code"),S(16,U,2,1,null,null,f),a()()),n&2&&(i(11),s(o.status()==="starting"?11:-1),i(),s(o.status()==="started"?12:-1),i(),s(o.status()==="finished"?13:-1),i(),s(o.status()==="aborted"?14:-1),i(2),g(o.messageLog()))},dependencies:[R,B,O,N],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:2.5rem;gap:1.25rem}code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{D as default};
1
+ import{b as $}from"./chunk-PNJEVGID.js";import{a as R}from"./chunk-DL6QZSL6.js";import"./chunk-7LRQSKYZ.js";import"./chunk-L5D4JLN3.js";import"./chunk-W4MEGIZH.js";import"./chunk-AXHB6A4N.js";import"./chunk-XKAASYKO.js";import"./chunk-MADB4EX7.js";import{b as k}from"./chunk-PPRHD3ZV.js";import{a as A,d as N}from"./chunk-LJ3ULEOG.js";import"./chunk-C5EHOW7U.js";import{a as B,g as O}from"./chunk-6KER52JR.js";import"./chunk-MCLDJCPW.js";import"./chunk-7IRVNC4S.js";import"./chunk-DNDOALN6.js";import{Ab as g,Bb as F,Cb as a,Db as r,Lc as M,Nb as _,Ob as c,Pb as u,Ra as i,Sb as T,Tb as I,Y as m,eb as C,gc as E,ic as L,jb as p,ua as l,xb as s,yb as f,zb as S}from"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";function b(e,t){e&1&&u(0,2,1)}function P(e,t){e&1&&u(0,2,2)}function h(e,t){e&1&&u(0,2,3)}function v(e,t){e&1&&u(0,2,4)}function U(e,t){if(e&1&&(E(0),r(1,"br")),e&2){let n=t.$implicit;L(" ",n," ")}}var D=class e{#t=m(k);#e=m(A);#n=$(this.#e.params);runId=M(()=>this.#n()?.runId);offset=l(0);status=l("starting");messageLog=l([]);interval=setInterval(()=>{this.#t.getApiV1CommandlineByRunid({runid:this.runId(),offset:this.offset(),pagesize:100}).subscribe(t=>{this.offset.set(t.Count),this.evalStatus(t),this.messageLog.update(n=>[...n,...t.Items])})},1e3);evalStatus(t){t.Started===!0&&t.Finished===!0&&(this.status.set("finished"),clearInterval(this.interval)),t.Started===!0&&t.Finished===!1&&this.status.set("started")}abort(){this.#t.postApiV1CommandlineByRunidAbort({runid:this.runId()}).subscribe({next:t=>{this.status.set("aborted"),clearInterval(this.interval)}})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=C({type:e,selectors:[["app-commandline-result"]],decls:18,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let n;n=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let o;return o=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,o=T(o),[t,n,o,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],["type","button","spk-button","",1,"small",3,"click"],[1,"status"]]},template:function(n,o){n&1&&(r(0,"app-status-bar"),F(1,"section")(2,"div",3)(3,"button",4),_(4,0),r(5,"spk-icon"),c(),a()(),F(6,"h3"),_(7,1),F(8,"button",5),I("click",function(){return o.abort()}),a(),c(),a(),F(9,"div",6),_(10,2),p(11,b,1,0)(12,P,1,0)(13,h,1,0)(14,v,1,0),c(),a(),F(15,"code"),S(16,U,2,1,null,null,f),a()()),n&2&&(i(11),s(o.status()==="starting"?11:-1),i(),s(o.status()==="started"?12:-1),i(),s(o.status()==="finished"?13:-1),i(),s(o.status()==="aborted"?14:-1),i(2),g(o.messageLog()))},dependencies:[R,B,O,N],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:2.5rem;gap:1.25rem}code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{D as default};
@@ -0,0 +1 @@
1
+ import{ia as be}from"./chunk-7IRVNC4S.js";import{$a as M,Ab as ee,Bb as r,Cb as l,Db as H,Fc as Oe,Gb as G,Hb as T,Lc as x,Nc as b,Pc as fe,Ra as m,S as ae,Ta as pe,Tb as y,Ub as d,Va as ke,Vb as w,Wb as p,Y as I,Ya as F,Za as K,_a as de,cc as z,da as h,dc as P,ea as f,eb as S,ec as L,fc as De,gb as ye,gc as C,hc as xe,ic as U,jb as D,lc as te,mc as ie,nc as ne,oa as le,ob as we,oc as he,pa as W,pc as Y,qa as u,qc as A,ra as q,sb as N,sc as oe,ta as ce,tb as j,tc as se,ua as _,ub as V,vb as ue,wb as Q,xb as O,yb as J,zb as Z}from"./chunk-2M52SFS6.js";import{a as B,b as X,c as Se}from"./chunk-C6Q5SG76.js";var E=["*"],Fe=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],Pe=["[icon]","[title]","*","[content]"];function Ae(n,c){n&1&&(r(0,"spk-icon",3),C(1,"info"),l())}function je(n,c){n&1&&(r(0,"spk-icon",3),C(1,"info"),l())}function He(n,c){n&1&&(r(0,"spk-icon",3),C(1,"warning"),l())}function Le(n,c){n&1&&(r(0,"spk-icon",3),C(1,"warning-octagon"),l())}function Be(n,c){n&1&&(r(0,"spk-icon",3),C(1,"check-circle"),l())}function We(n,c){n&1&&(r(0,"spk-icon",3),C(1,"question"),l())}function qe(n,c){if(n&1){let e=T();r(0,"spk-icon",7),y("click",function(){h(e);let i=d();return f(i.removeAlert())}),C(1,"plus"),l()}}var Ne=["dialogRef"];function Qe(n,c){if(n&1){let e=T();r(0,"div",4),y("click",function(){h(e);let i=d();return f(i.isOpen.set(!1))}),l()}}var Ue=["spk-button",""];var Ee=["triggerRef"],$e=["popoverRef"],ze=[[["","trigger",""]],"*"],Ye=["[trigger]","*"];var Xe=()=>({closeOnButton:!1,closeOnEsc:!0});var Ge=["inputWrap"];var Ke=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],Je=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"];var Ze=["option"],et=["*",[["","menu",""]]],tt=["*","[menu]"];var it=["input"],nt=["textarea"],ot=["optionsWrap"],st=[[["label"]],[["input"]],[["textarea"]]],rt=["label","input","textarea"],Me=()=>({closeOnButton:!1,closeOnEsc:!1}),ge=n=>({$implicit:n});function at(n,c){n&1&&G(0)}function lt(n,c){if(n&1&&D(0,at,1,0,"ng-container",13),n&2){let e=d(3).$implicit;d(2);let t=A(6);N("ngTemplateOutlet",t)("ngTemplateOutletContext",se(2,ge,e))}}function ct(n,c){if(n&1&&C(0),n&2){let e=d(3).$implicit,t=d(2);U(" ",t.getLabel(e)," ")}}function pt(n,c){if(n&1){let e=T();r(0,"spk-chip",11),D(1,lt,1,4,"ng-container")(2,ct,1,1),r(3,"spk-icon",12),y("click",function(i){h(e);let o=d(2).$index,s=d(2);return f(s.removeSelectedOptionByIndex(i,o))}),C(4,"x-bold"),l()()}if(n&2){let e=d(4),t=A(6);Q(e.selectClasses()),m(),O(t?1:2)}}function dt(n,c){n&1&&G(0)}function ut(n,c){if(n&1&&D(0,dt,1,0,"ng-container",13),n&2){let e=d(3).$implicit;d(2);let t=A(6);N("ngTemplateOutlet",t)("ngTemplateOutletContext",se(2,ge,e))}}function ht(n,c){if(n&1&&C(0),n&2){let e=d(3).$implicit,t=d(2);U(" ",t.getLabel(e)," ")}}function ft(n,c){if(n&1&&D(0,ut,1,4,"ng-container")(1,ht,1,1),n&2){d(4);let e=A(6);O(e?0:1)}}function mt(n,c){if(n&1&&D(0,pt,5,3,"spk-chip",10)(1,ft,2,1),n&2){d(3);let e=A(8);O(e?0:1)}}function gt(n,c){if(n&1&&D(0,mt,2,1),n&2){let e=c.$implicit;O(e?0:-1)}}function vt(n,c){if(n&1&&Z(0,gt,1,1,null,null,J),n&2){d();let e=A(4);ee(e)}}function _t(n,c){n&1&&G(0)}function Ct(n,c){if(n&1&&D(0,_t,1,0,"ng-container",14),n&2){d(2);let e=A(0);N("ngTemplateOutlet",e)}}function St(n,c){if(n&1&&C(0),n&2){let e,t=d(2);U(" ",(e=t.placeholderText())!==null&&e!==void 0?e:""," ")}}function kt(n,c){if(n&1&&D(0,Ct,1,1,"ng-container")(1,St,1,1),n&2){d();let e=A(0);O(e?0:1)}}function yt(n,c){n&1&&(r(0,"spk-icon",6),C(1,"caret-down"),l())}function wt(n,c){n&1&&H(0,"spk-spinner",7)}function Dt(n,c){n&1&&(r(0,"spk-icon",6),C(1,"list-magnifying-glass"),l())}function xt(n,c){n&1&&(r(0,"spk-icon",6),C(1,"magnifying-glass"),l())}function Ot(n,c){if(n&1){let e=T();r(0,"spk-icon",15),y("click",function(i){h(e);let o=d();return f(o.clear(i))}),C(1,"x-bold"),l()}}function bt(n,c){n&1&&(r(0,"spk-icon",6),C(1,"check"),l())}function Tt(n,c){n&1&&(r(0,"spk-icon",6),C(1,"caret-up"),l())}function Et(n,c){if(n&1&&H(0,"spk-checkbox"),n&2){let e=d().$index,t=d();Q(t.selectClasses()),V("active",t.isSelected(e))}}function Mt(n,c){n&1&&G(0)}function It(n,c){if(n&1&&D(0,Mt,1,0,"ng-container",13),n&2){let e=d().$implicit;d();let t=A(7);N("ngTemplateOutlet",t)("ngTemplateOutletContext",se(2,ge,e))}}function Vt(n,c){if(n&1&&C(0),n&2){let e=d().$implicit,t=d();U(" ",t.getLabel(e)," ")}}function Rt(n,c){if(n&1){let e=T();r(0,"li",16),y("click",function(){let i=h(e).$index,o=d();return f(o.toggleOptionByIndex(i))}),D(1,Et,1,4,"spk-checkbox",17)(2,It,1,4,"ng-container")(3,Vt,1,1),l()}if(n&2){let e=c.$index,t=d(),i=A(7);V("selected",t.isSelected(e))("focused",e===t.focusedOptionIndex()),m(),O(t.selectMultiple()?1:-1),m(),O(i?2:3)}}var Ft=["optionsRef"],Pt=["formFieldWrapper"],At=[[["label"]],[["input"]],"*",[["","deselect-indicator",""]],[["","search-indicator",""]],[["","open-indicator",""]]],jt=["label","input","*","[deselect-indicator]","[search-indicator]","[open-indicator]"];function Ht(n,c){if(n&1){let e=T();r(0,"spk-chip",12),y("click",function(i){let o=h(e).$implicit,s=d(3);return f(s.toggleOption(o,i))}),C(1),r(2,"spk-icon"),C(3,"x-bold"),l()()}if(n&2){let e,t=c.$implicit,i=d(3);Q(i.chipClass()),m(),U(" ",(e=(e=i.displayFn())==null?null:e(t))!==null&&e!==void 0?e:t," ")}}function Lt(n,c){if(n&1&&Z(0,Ht,4,3,"spk-chip",11,J),n&2){let e=d(2);ee(e.inputValue().split(","))}}function Bt(n,c){if(n&1&&(r(0,"div",6),D(1,Lt,2,0),l()),n&2){let e=d();m(),O(e.inputValue().length>0?1:-1)}}function Wt(n,c){if(n&1&&(r(0,"div",6),C(1),l()),n&2){let e=d();m(),xe(e._displayValue())}}function qt(n,c){if(n&1){let e=T();r(0,"div",13),y("click",function(i){h(e);let o=d();return f(o.deselect(i))}),p(1,3),r(2,"spk-icon",14),C(3,"x-bold"),l()()}}function Nt(n,c){n&1&&(r(0,"div",8),p(1,4),r(2,"spk-icon",14),C(3,"magnifying-glass"),l()())}function Qt(n,c){if(n&1&&(r(0,"div",15),p(1,5),r(2,"spk-icon",14),C(3,"caret-down"),l()()),n&2){let e=d();V("open",e.isOpen())}}var Ut=["dragImageElement"],$t=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],zt=["[sidenav]","[sidenav-closed-topbar]","*"];function Yt(n,c){n&1&&H(0,"div",1,0)}function Xt(n,c){if(n&1){let e=T();r(0,"div",7),y("drop",function(i){h(e);let o=d();return f(o.drop(i))})("dragover",function(i){h(e);let o=d();return f(o.dragOver(i))})("dragenter",function(){h(e);let i=d();return f(i.dragEnter())})("dragleave",function(){h(e);let i=d();return f(i.dragLeave())}),l()}}function Gt(n,c){if(n&1){let e=T();r(0,"div",8),y("dragstart",function(i){h(e);let o=d();return f(o.dragStart(i))})("dragend",function(i){h(e);let o=d();return f(o.dragEnd(i))})("drag",function(i){h(e);let o=d();return f(o.drag(i))})("touchstart",function(i){h(e);let o=d();return f(o.touchStart(i))})("touchmove",function(i){h(e);let o=d();return f(o.touchMove(i))})("touchend",function(i){h(e);let o=d();return f(o.touchEnd(i))})("touchcancel",function(i){h(e);let o=d();return f(o.touchCancel(i))}),l()}}var Kt=[[["","table-header",""]],"*",[["","table-no-rows",""]]],Jt=["[table-header]","*","[table-no-rows]"];function Zt(n,c){n&1&&H(0,"spk-progress-bar",0)}function ei(n,c){n&1&&(r(0,"div",1),p(1,2),l())}var ti=["tooltipRef"];var me=["bold","thin","light","fill"],re=(()=>{class n{#e=I(q);get currentClass(){let e=this.#e.nativeElement.innerText;for(let t=0;t<me.length;t++)if(e.endsWith(me[t]))return me[t];return""}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-icon"]],hostVars:2,hostBindings:function(t,i){t&2&&Q(i.currentClass)},ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Mi=(()=>{class n{constructor(){this._el=I(q),this.alertService=u(null),this.id=u(null),this.alertClasses=x(()=>this._el.nativeElement.classList.toString())}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-alert"]],inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:Pe,decls:18,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(t,i){if(t&1&&(w(Fe),r(0,"div",1)(1,"div",2,0),p(3),l(),r(4,"div",2),he(5),D(6,Ae,2,0,"spk-icon",3)(7,je,2,0,"spk-icon",3)(8,He,2,0,"spk-icon",3)(9,Le,2,0,"spk-icon",3)(10,Be,2,0,"spk-icon",3)(11,We,2,0,"spk-icon",3),l(),r(12,"div",4),p(13,1),p(14,2),l(),D(15,qe,2,0,"spk-icon",5),r(16,"div",6),p(17,3),l()()),t&2){let o=De(2);m(),j("display",o.children.length?"block":"none");let s=i.alertClasses();m(5),O(s.includes("primary")?6:s.includes("accent")?7:s.includes("warn")?8:s.includes("error")?9:s.includes("success")?10:11),m(9),O(i.id()?15:-1)}},dependencies:[re],encapsulation:2,changeDetection:0})}}return n})();function ve(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var Ii=(()=>{class n{constructor(){this.alertHistory=_([]),this.alertHistoryIsOpen=_(!1),this.alertHistoryIsHidden=_(!0)}error(e){this.addAlert({type:"error",title:e??"An error occured"})}success(e){this.addAlert({type:"success",title:e})}question(e){this.addAlert({type:"question",title:e})}warning(e){this.addAlert({type:"warn",title:e})}info(e){this.addAlert({type:"primary",title:e})}addAlert(e){let t=ve();this.alertHistory.update(i=>[X(B({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>X(B({},o),{animateIn:o.id===t?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(i=>X(B({},i),{animateOut:i.id===e?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(t=>t.filter(i=>i.id!==e))},300)}hideAlert(e){this.alertHistory.update(t=>t.map(i=>X(B({},i),{isOpen:i.id===e?!1:i.isOpen})))}setHidden(e){this.alertHistoryIsHidden.set(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ii={width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},ni=(()=>{class n{constructor(){this.dialogRef=F("dialogRef"),this.isOpen=M(!1),this.options=u(),this.closed=W(),this.defaultOptionMerge=x(()=>B(B({},ii),this.options())),this.abortController=null,this.isOpenEffect=b(()=>{let e=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(e?.showModal(),e?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",t=>{t.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&t.preventDefault(),t.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),e?.close())})}ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-dialog"]],viewQuery:function(t,i){t&1&&P(i.dialogRef,Ne,5),t&2&&L()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:E,decls:5,vars:9,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(t,i){if(t&1&&(w(),r(0,"dialog",1,0)(2,"div",2),p(3),l(),D(4,Qe,1,0,"div",3),l()),t&2){let o,s,a,k;j("width",(o=i.defaultOptionMerge().width)!==null&&o!==void 0?o:"")("max-width",(s=i.defaultOptionMerge().maxWidth)!==null&&s!==void 0?s:"")("max-height",(a=i.defaultOptionMerge().maxHeight)!==null&&a!==void 0?a:"")("height",(k=i.defaultOptionMerge().height)!==null&&k!==void 0?k:""),m(4),O(i.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0})}}return n})(),Vi=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#i=I(we),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#i;open(e,t){let i=this.#i.injector,o=this.#s(),Ce=t||{},{data:s,closed:a}=Ce,k=Se(Ce,["data","closed"]);this.compRef&&this.#t(),this.insertedCompRef=fe(e,{environmentInjector:i}),this.compRef=fe(ni,{hostElement:o,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let g=this.insertedCompRef.instance?.data,v=this.insertedCompRef.instance?.closed;if(s){if(ce(g))this.insertedCompRef.setInput("data",s);else if(!ce(g))throw new Error("data is not an input signal on the passed component")}v instanceof le&&(this.closedFieldSub=v.subscribe((...Re)=>{a?.(...Re),this.#t()})),this.#i.attachView(this.insertedCompRef.hostView),this.#i.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",k),this.compRef.instance.closed.subscribe(()=>$());let R=this;function $(){v&&v instanceof le?v.emit(!1):a?.(void 0),R.#t()}return this.insertedCompRef.instance}#s(){let e=document.createElement("spk-dialog-ref");return e.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||this.#e.append(e),document.getElementById("spk-dialog-ref")}#t(){this.insertedCompRef&&(this.#i.detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(this.#i.detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())}ngOnDestroy(){this.#t()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Ri=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-button-group"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),oi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["","spk-button",""]],attrs:Ue,ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Fi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-card"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),si=(()=>{class n{#e=I(q);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-checkbox"]],hostBindings:function(t,i){t&1&&y("click",function(){return i.onClick()})},ngContentSelectors:E,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(t,i){t&1&&(w(),r(0,"div",0)(1,"spk-icon",1),C(2,"check"),l(),r(3,"spk-icon",2),C(4,"minus"),l()(),p(5))},dependencies:[re],encapsulation:2,changeDetection:0})}}return n})(),Ie=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-chip"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var ri=["scroll","auto"],ai={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},_e=(()=>{class n{constructor(){this.#e=I(Oe),this.#i=4,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=u(!1),this.right=u(!1),this.markForCheck=u(null),this._above=_(this.above()),this._right=_(this.right()),this.disableOpenByClick=u(!1),this.isOpen=M(!1),this.options=u(),this.closed=W(),this.defaultOptionMerge=x(()=>B(B({},ai),this.options())),this.triggerRef=F.required("triggerRef"),this.popoverRef=F.required("popoverRef"),this.id=_("--"+ve()),this.menuStyle=_(null),this.openAbort=null,this.openEffect=b(()=>{let e=this.popoverRef()?.nativeElement;if(this.isOpen()){this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController;let i={signal:this.openAbort?.signal};e?.showPopover(),document.addEventListener("keydown",o=>{o.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&o.preventDefault(),o.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},i),setTimeout(()=>{this.#s(this.popoverRef()?.nativeElement).addEventListener("scroll",()=>this.#t(),i),window.addEventListener("resize",()=>this.#t(),i),this.#t()})}else e.hidePopover(),this.openAbort?.abort(),this.closed.emit()}),this.markForCheckEffect=b(()=>{this.markForCheck()&&this.#e.markForCheck()})}#e;#i;toggleIsOpen(e){e.preventDefault(),e.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}#s(e){let t=e.parentElement;for(;t;){if(ri.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}#t(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,a=o+this.#i,k=s+t.width>window.innerWidth,g=a+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(g),this._right.set(k);else{if(s=i,a=o+this.#i,g){let R=e.top-t.height-this.#i;R<0||(a=R)}k&&(s=e.right-t.width,s<0&&(s=0));let v={left:s+"px",top:a+"px"};this.menuStyle.set(v)}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-popover"]],viewQuery:function(t,i){t&1&&(P(i.triggerRef,Ee,5),P(i.popoverRef,$e,5)),t&2&&L(2)},hostVars:4,hostBindings:function(t,i){t&2&&V("above",i._above())("right",i._right())},inputs:{above:[1,"above"],right:[1,"right"],markForCheck:[1,"markForCheck"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Ye,decls:10,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],["spk-button","",1,"outlined"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(t,i){if(t&1){let o=T();w(ze),r(0,"div",2,0),y("click",function(a){return h(o),f(i.toggleIsOpen(a))}),r(2,"div",3),p(3),l(),r(4,"button",4),C(5,"Open popover"),l()(),r(6,"div",5,1)(8,"div",6),y("click",function(a){return h(o),f(i.isOpen()&&i.eventClose(a))}),l(),p(9,1),l()}t&2&&(j("anchor-name",i.id()),m(6),ue(i.menuStyle()),j("position-anchor",i.id()))},dependencies:[oi],encapsulation:2,changeDetection:0})}}return n})();var Pi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-divider"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Ve=(()=>{class n{#e=I(q);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}ngOnInit(){let e=typeof CSS<"u"&&CSS.supports("field-sizing","content"),t=this.#e.nativeElement.querySelector("textarea");if(!e&&t!==null){let s=function(){t.style.height="auto",t.style.height=t.scrollHeight+"px"},a=function(){window.setTimeout(s,0)};var i=s,o=a;t.addEventListener("change",s),t.addEventListener("cut",a),t.addEventListener("paste",a),t.addEventListener("drop",a),t.addEventListener("keydown",a),t.focus(),t.select(),s()}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-form-field"]],hostBindings:function(t,i){t&1&&y("click",function(){return i.onClick()})},ngContentSelectors:Je,decls:16,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(t,i){t&1&&(w(Ke),p(0),r(1,"div",0)(2,"div",1),p(3,1),p(4,2),l(),H(5,"div",2),p(6,3),p(7,4),p(8,5),H(9,"div",3),p(10,6),l(),r(11,"div",4)(12,"div",5),p(13,7),l(),r(14,"div",6),p(15,8),l()())},encapsulation:2,changeDetection:0})}}return n})();var Ai=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-list"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),ji=(()=>{class n{constructor(){this.above=u(!1),this.right=u(!1),this.keepClickedOptionActive=u(!1),this.isOpen=M(!1),this.closed=W(),this.activeOptionIndex=_(-1),this.options=de("option"),this.optionsEl=x(()=>Array.from(this.options()).map(e=>e.nativeElement).filter(e=>e.disabled!==!0)),this.optionsEffect=b(()=>{if(!this.isOpen())return;let e=this.activeOptionIndex(),t=this.optionsEl();if(e>-1)for(let i=0;i<t.length;i++){if(i===e){t[i].scrollIntoView({block:"center"}),t[i].classList.add("active");continue}t[i].classList.remove("active")}})}onKeyDown(e){if(!this.isOpen())return;e.preventDefault();let t=this.optionsEl(),i=this.activeOptionIndex();e.key==="ArrowDown"?i===-1||i===t.length-1?this.activeOptionIndex.set(0):this.activeOptionIndex.set(i+1):e.key==="ArrowUp"?i===-1||i===0?this.activeOptionIndex.set(t.length-1):this.activeOptionIndex.set(i-1):e.key==="Enter"?i>-1&&(t[i].click(),setTimeout(()=>this.close("active"))):e.key==="Tab"?this.close("closed"):this.activeOptionIndex.set(-1)}close(e="closed",t){(!this.keepClickedOptionActive()||e==="closed")&&this.#e(),this.isOpen.set(!1),this.closed.emit(e==="active")}#e(){this.activeOptionIndex.set(-1);let e=this.optionsEl();for(let t=0;t<e.length;t++)e[t].classList.remove("active")}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-menu"]],contentQueries:function(t,i,o){t&1&&z(o,i.options,Ze,4),t&2&&L()},hostBindings:function(t,i){t&1&&y("keydown",function(s){return i.onKeyDown(s)})},inputs:{above:[1,"above"],right:[1,"right"],keepClickedOptionActive:[1,"keepClickedOptionActive"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:tt,decls:6,vars:6,consts:[["formFieldWrapper",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","above","right","options"],["trigger","",3,"click"],[1,"options",3,"click"]],template:function(t,i){if(t&1){let o=T();w(et),r(0,"spk-popover",1,0),ne("isOpenChange",function(a){return h(o),ie(i.isOpen,a)||(i.isOpen=a),f(a)}),y("closed",function(){return h(o),f(i.close("fromPopover"))}),r(2,"div",2),y("click",function(){return h(o),f(i.isOpen.set(!0))}),p(3),l(),r(4,"div",3),y("click",function(){return h(o),f(i.close("active"))}),p(5,1),l()()}t&2&&(te("isOpen",i.isOpen),N("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",oe(5,Xe)))},dependencies:[_e],encapsulation:2,changeDetection:0})}}return n})(),li=(()=>{class n{constructor(){this.value=u(void 0)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(t,i){t&1&&H(0,"div",0),t&2&&j("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),Hi=(()=>{class n{#e=I(q);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-radio"]],hostBindings:function(t,i){t&1&&y("click",function(){return i.onClick()})},ngContentSelectors:E,decls:2,vars:0,consts:[[1,"radio"]],template:function(t,i){t&1&&(w(),H(0,"div",0),p(1))},encapsulation:2,changeDetection:0})}}return n})();var ci=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-spinner"]],decls:0,vars:0,template:function(t,i){},encapsulation:2,changeDetection:0})}}return n})(),Li=(()=>{class n{constructor(){this.#e=I(q),this.value=u(),this.label=u(),this.placeholder=u(),this.readonly=M(!1),this.lazySearch=u(!1),this.inlineSearch=u(!1),this.asText=u(!1),this.isClearable=u(!0),this.selectMultiple=u(!1),this.optionTemplate=u(null),this.selectedOptionTemplate=u(null),this.placeholderTemplate=u(null),this.isOpen=M(!1),this.isLoading=M(!1),this.options=M([]),this.selectedOptions=M([]),this.cleared=W(),this.inlineTemplate=K(pe),this.optionsWrapRef=F.required("optionsWrap"),this.inputRefInput=K("input"),this.textareaRefInput=K("textarea"),this.inputValue=_(""),this.prevInputValue=_(null),this.focusedOptionIndex=_(-1),this._isClearable=x(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=x(()=>this.#e.nativeElement.classList.toString()),this.placeholderText=x(()=>{let e=this.placeholder(),t=this.inputRefEl();return e||t?.placeholder||null}),this.selectedOptionValues=x(()=>{let e=this.selectedOptions(),t=this.value();return t?e.map(i=>this.#o(i,t)):e}),this.filteredOptions=x(()=>{let e=this.options(),t=this.label(),i=this.inlineSearch(),o=this.inputValue().toLowerCase();return e.length<=0?[]:!i||o===""?e:e.filter(s=>(t?(this.#o(s,t)??"").toString().toLowerCase():(s??"").toString().toLowerCase()).includes(o))}),this.#i=b(()=>{let e=this.inputRefEl();e&&(e.disabled=this.readonly())}),this.inputRefEl=x(()=>{let e=this.inputRefInput(),t=this.textareaRefInput(),i=e?e.nativeElement:t?t.nativeElement:null;return i?(i.autocomplete="off",this.#r(i),i.addEventListener("focus",()=>{this.readonly()||this.open()}),this.hasSearch()&&i.addEventListener("input",o=>{let s=o.target.value,a=this.inputValue();s!==a&&(this.focusedOptionIndex.set(0),this.inputValue.set(s),this.updateInputElValue())}),i.addEventListener("inputValueChanged",o=>{let s=o.detail.value,a=this.inputValue();if(s!==a){if(s===""){this.clear();return}this.setSelectedOptionsFromValue(s),this.setInputValueFromSelectedOptions(),this.#t()}}),i):(console.warn("<spk-select> input element not found are you missing #input or #textarea on the projected element?"),null)}),this.openAbortController=null,this.isOpenEffect=b(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let t=this.inputRefEl();if(!t)return;t.addEventListener("keydown",i=>{if((i.key==="Escape"||i.key==="Tab")&&(i.preventDefault(),this.close()),(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex())),i.key==="ArrowDown"){i.preventDefault();let o=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(o>this.filteredOptions().length-1?0:o)}if(i.key==="ArrowUp"){i.preventDefault();let o=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(o<0?this.filteredOptions().length-1:o)}},{signal:this.openAbortController?.signal})}else{if(!this.inputRefEl())return;this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=b(()=>{let e=this.inputValue();this._inputValue=e}),this.inputRefElEffect=b(()=>{let e=this.inputRefEl();e&&e.value!==this._inputValue&&(this.setSelectedOptionsFromValue(e.value),this.setInputValueFromSelectedOptions())}),this.selectedLabels=x(()=>{let e=this.selectedOptions();return this.label()?e.map(i=>this.getLabel(i)).join(", "):e.join(", ")}),this.inputState=x(()=>this.selectedOptions().length>0&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=x(()=>this.inlineSearch()||this.lazySearch()),this.#s=b(()=>{if(this.selectMultiple()&&this.hasSearch())return;let e=this.selectedOptions(),t=this.value(),i=e.map(o=>t?this.#o(o,t):o).join(",");this.inputValue.set(i)})}#e;#i;#s;setSelectedOptionsFromValue(e){let t=this.options(),i=this.value(),o=this.selectMultiple(),s=e.toString().split(",");if(s.length===0){this.selectedOptions.set([]);return}let a=o?s:[s[0]],k=t.filter(g=>{let v=i?this.#o(g,i)?.toString():g?.toString();return v&&a.includes(v)});this.selectedOptions.set(o?k:[k[0]])}setInputValueFromSelectedOptions(){let e=this.selectedOptions(),t=this.value();if(e.length===0){this.inputValue.set(""),this.updateInputElValue();return}let i=e.map(o=>t?this.#o(o,t):o).join(",");this.inputValue.set(i),this.updateInputElValue()}getLabel(e){let t=this.label();return t?this.#o(e,t):e}toggleOptionByIndex(e,t){let i=this.filteredOptions()[e];if(!i)throw new Error("Option not found: this should never happen if it does report it as an issue on github");t&&t.stopPropagation();let o=this.selectMultiple(),s=this._isClearable(),a=this.value(),k=this.selectedOptionValues(),g=a?this.#o(i,a):i;this.prevInputValue.set(null),this.selectedOptions.update(v=>{let R=k.indexOf(g);if(R>-1){let $=[...v.slice(0,R),...v.slice(R+1)];return s||$.length>0?$:v}else return this.focusedOptionIndex.set(e),o?[...v,i]:[i]}),o?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromSelectedOptions(),o&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(e,t){e.stopPropagation(),this.selectedOptions.update(i=>[...i.slice(0,t),...i.slice(t+1)]),this.setInputValueFromSelectedOptions()}isSelected(e){let t=this.value(),i=this.filteredOptions()[e],o=t?this.#o(i,t):i;return this.selectedOptionValues().indexOf(o)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()&&(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()),this.selectMultiple()||this.#t())}#t(){let e=this.selectedOptionValues()[0],t=this.value();if(e){let i=this.filteredOptions().findIndex(o=>t?this.#o(o,t)===e:o===e);this.focusedOptionIndex.set(i)}else this.focusedOptionIndex.set(-1)}close(){this.isOpen.set(!1);let e=this.prevInputValue();this.hasSearch()&&e&&(this.inputValue.set(e),this.setInputValueFromSelectedOptions()),this.hasSearch()&&this.selectMultiple()&&this.setInputValueFromSelectedOptions()}clear(e){e?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let e=this.inputRefEl(),t=this.inputValue();e&&(e.value=t,e.dispatchEvent(new Event("input")))}#o(e,t){return t.split(".").reduce((i,o)=>i?.[o],e)}#r(e){Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").set.call(this,t);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(o),t}})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-select-new"]],contentQueries:function(t,i,o){t&1&&(z(o,i.inlineTemplate,pe,5),z(o,i.inputRefInput,it,5),z(o,i.textareaRefInput,nt,5)),t&2&&L(3)},viewQuery:function(t,i){t&1&&P(i.optionsWrapRef,ot,5),t&2&&L()},hostVars:2,hostBindings:function(t,i){t&2&&V("multiple",i.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared"},ngContentSelectors:rt,decls:31,vars:19,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],[1,"sparkle-options"],[1,"option",3,"selected","focused"],[1,"small",3,"class"],[1,"small"],[3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click"],[3,"class","active"]],template:function(t,i){if(t&1){let o=T();w(st),he(0)(1)(2)(3)(4)(5)(6)(7)(8)(9),r(10,"spk-popover",2,0),ne("isOpenChange",function(a){return h(o),ie(i.isOpen,a)||(i.isOpen=a),f(a)}),y("closed",function(){return h(o),f(i.close())}),r(12,"spk-form-field",3),y("click",function(){return h(o),f(i.open())}),p(13,0,["ngProjectAs","label",5,["label"]]),r(14,"div",4)(15,"div",5),D(16,vt,2,0)(17,kt,2,1),p(18,1),p(19,2),l()(),D(20,yt,2,0,"spk-icon",6)(21,wt,1,0,"spk-spinner",7)(22,Dt,2,0,"spk-icon",6)(23,xt,2,0,"spk-icon",6)(24,Ot,2,0,"spk-icon",6)(25,bt,2,0,"spk-icon",6)(26,Tt,2,0,"spk-icon",6),l(),r(27,"div",8,1),Z(29,Rt,4,6,"li",9,J),l()()}if(t&2){Y(i.placeholderTemplate());let o=i.optionTemplate(),s=i.selectedOptionTemplate(),a=i.inlineTemplate();m(4);let k=Y(i.selectedOptions()),g=i.inputState();m(2),Y(s||o||a),m(),Y(o||a),m();let v=Y(!i.asText()&&i.selectMultiple()),R=i.hasSearch()&&i.isOpen()&&v;m(2),te("isOpen",i.isOpen),N("disableOpenByClick",!0)("options",oe(18,Me)),m(2),Q(i.readonly()?"readonly":""),V("autosize",i.selectMultiple()),m(2),V("show-search-text",R),m(),V("is-selected",g==="selected"),m(),O(k.length>0?16:R?-1:17),m(4),O(g==="closed"?20:g==="loading"?21:g==="open-searching"?22:g==="searching"?23:g==="selected"&&i._isClearable()?24:g==="selected"&&!i._isClearable()?25:26),m(9),ee(i.filteredOptions())}},dependencies:[be,_e,Ve,re,si,ci,Ie],encapsulation:2,changeDetection:0})}}return n})(),Te=(()=>{class n{constructor(){this.#e=I(q),this.value=u(null),this.#i=b(()=>{this.#e.nativeElement.value=this.value()})}#e;#i;hasAttribute(e){return this.#e.nativeElement.hasAttribute(e)}removeAttribute(e){this.#e.nativeElement.removeAttribute(e)}setAttribute(e,t){this.#e.nativeElement.setAttribute(e,t)}getAttribute(e){return this.#e.nativeElement.getAttribute(e)}addClass(e){this.#e.nativeElement.classList.add(e)}removeClass(e){this.#e.nativeElement.classList.remove(e)}scrollIntoView(e){this.#e.nativeElement.scrollIntoView(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-option"]],inputs:{value:[1,"value"]},ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),pi=["primary","accent","warn","error","success"],Bi=(()=>{class n{constructor(){this.#e=I(ke),this.#i=I(q),this.optionsRef=F("optionsRef"),this.options=de(Te),this.formFieldWrapperRef=F.required("formFieldWrapper"),this.inputWrapRef=F.required("inputWrap"),this.inputValue=M(""),this.readonly=u(!1),this.isFreeText=u(!1),this.selectMultiple=u(!1),this.hideClearButton=u(!1),this.displayValue=u(""),this.displayFn=u(e=>`${e}`),this.above=u(!1),this.right=u(!1),this.change=W(),this.#s=_(!1),this.#t=_(null),this.#o=_(null),this.#r=_(!1),this.#n=_(-1),this.isOpen=_(!1),this._isOpen=_(!1),this.isSearchInput=x(()=>this.#t()?.type==="search"),this.chipClass=x(()=>Array.from(this.#i.nativeElement.classList).filter(e=>pi.includes(e)).join(" ")),this._displayValue=x(()=>this.displayFn()?this.displayFn()(this.inputValue()):this.displayValue()??this.inputValue()),this.selectedOption=x(()=>this.#o()?this.options().find(e=>e.value()===this.#o()):null),this.optionsOpenController=null,this.inputController=null,this.clickController=null,this.inputAbortController=null,this.#p=b(()=>{this.#s();let e=this.#i.nativeElement.querySelector("input");e&&(e.disabled=this.readonly(),this.#v(e),e.addEventListener("inputValueChanged",t=>{this.inputValue.set(t.detail.value),this.selectMultiple()&&this.#l()}),this.#t.set(e),e.autocomplete="off",typeof e.value=="string"&&this.inputValue.set(e.value))}),this.#d=b(()=>{this.inputController&&this.inputController.abort(),this.inputController=new AbortController;let e=this.#t();e&&(e.addEventListener("focus",()=>{this.isOpen.set(!0)}),e.addEventListener("keydown",t=>{(this.selectMultiple()||!this.isSearchInput()&&!this.isFreeText())&&t.preventDefault(),t.key==="Escape"?this.close():t.key==="ArrowDown"?this.#n()===null||this.#n()<0||this.#n()===this.options().length-1?this.#n.set(this.#c()):this.#n.set(this.#n()+1):t.key==="ArrowUp"?this.#n()===null||this.#n()<0||this.#n()===0?this.#n.set(this.options().length-1):this.#n.set(this.#n()-1):t.key==="Enter"?(this.isFreeText()&&this.close(!0),this.#n()>-1&&this.selected(this.getOptionElement(this.#n()))):t.key==="Tab"?this.close(!0):(this.#n.set(-1),this.isFreeText()&&this.calculateSelectedOptions())},{signal:this.inputController?.signal}))}),this.#u=b(()=>{this.isOpen()&&this.#g()}),this.#h=b(()=>{let e=this.inputValue();this.#t()&&(this.#t().value=e??"",this.#t().dispatchEvent(new Event("input")))}),this.#a=typeof MutationObserver<"u"&&new MutationObserver(e=>{for(var t of e)t.type=="childList"&&t.target.classList.contains("input")&&this.#s.set(!this.#s())})}#e;#i;#s;#t;#o;#r;#n;#p;#d;#u;#h;ngOnInit(){typeof MutationObserver<"u"&&this.#a.observe(this.inputWrapRef().nativeElement,{attributes:!0,childList:!0,subtree:!0})}getOptionElement(e){return this.options()[e]}deselect(e,t=!1){e?.stopPropagation(),this.#t()&&(this.#t().value="",this.#t().dispatchEvent(new Event("input"))),this.#n.set(this.#c()),this.#r.set(!1),(t||!this.selectMultiple())&&(this.isOpen.set(!1),this.#t()?.blur())}selected(e){if(!e)return;let t=e.value(),i=this.options().indexOf(e);if(e.hasAttribute("deselect"))return this.deselect(null,!0);if(this.#n.set(i),e&&!this.selectMultiple()){this.inputValue.set(t);for(let o=0;o<this.options().length;o++){let s=this.options()[o];s.value()===t?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}}else e&&this.selectMultiple()&&(this.inputValue().includes(t)?(this.#e.removeAttribute(e,"selected"),this.toggleOption(t)):(this.#e.setAttribute(e,"selected","selected"),this.inputValue.set(this.inputValue().length?`${this.inputValue()},${t}`:t)));this.#r.set(!1),this.#o.set(null),this.selectMultiple()?this.#t()?.focus():(this.isOpen.set(!1),this.#t()?.blur()),this.change.emit(this.inputValue())}calculateSelectedOptions(){setTimeout(()=>{let e=this.options(),i=this.#t()?.value;for(let o=0;o<e.length;o++){let s=e[o];s.value()===i?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}})}toggleOption(e,t){t&&(t.preventDefault(),t.stopPropagation()),this.inputValue.set(this.inputValue().startsWith(e+",")?this.inputValue().replace(e+",",""):this.inputValue().includes(","+e)?this.inputValue().replace(","+e,""):this.inputValue().replace(e,""))}close(e=!1){let t=this.#o();this.isSearchInput()&&!this.isFreeText()&&t&&setTimeout(()=>this.inputValue.set(t)),this.isOpen.set(!1),this.#r.set(!1),e||this.#t()?.blur(),this.#m()}open(e){e.preventDefault(),this.isSearchInput()&&!this.#r()&&!this.isFreeText()?(this.#o.set(this.inputValue()),this.inputValue.set(""),this.#t().focus(),this.#t().value="",this.#t().dispatchEvent(new Event("input")),this.#n.set(-1)):(this.isSearchInput()||this.selectMultiple())&&this.#t().focus(),this.isOpen.set(!0),this.#r.set(!0),this.#f(),this.#l()}#f(){this.clickController&&this.clickController.abort(),this.clickController=new AbortController,this.optionsRef()?.nativeElement?.addEventListener("click",e=>{if(!e.target)return;let t=e.target.closest("spk-option"),i=this.options().find(o=>o.value()===t.value);i&&this.selected(i)},{signal:this.clickController?.signal})}#m(){this.clickController&&this.clickController.abort()}#g(){for(let e=0;e<this.options().length;e++){let t=this.options()[e];t.removeClass("focused"),this.#n()===e&&(t.addClass("focused"),t.scrollIntoView({block:"center"}))}}#l(){let e=this.#t();if(!e)return;this.inputValue.set(e.value);let t=e.value.split(",");setTimeout(()=>{let i=this.options();for(let o=0;o<i.length;o++){let s=i[o].value();s&&t.includes(s)?this.#e.setAttribute(i[o],"selected","selected"):this.#e.removeAttribute(i[o],"selected")}})}#c(){let e=this.options();for(let t=0;t<e.length;t++)if(!e[t].hasAttribute("deselect"))return t;return-1}#a;#v(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(o),t}}),e}ngOnDestroy(){this.clickController&&this.clickController.abort(),this.inputController&&this.inputController.abort(),this.optionsOpenController&&this.optionsOpenController.abort(),typeof MutationObserver<"u"&&this.#a.disconnect()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-select"]],contentQueries:function(t,i,o){t&1&&z(o,i.options,Te,4),t&2&&L()},viewQuery:function(t,i){t&1&&(P(i.optionsRef,Ft,5),P(i.formFieldWrapperRef,Pt,5),P(i.inputWrapRef,Ge,5)),t&2&&L(3)},inputs:{inputValue:[1,"inputValue"],readonly:[1,"readonly"],isFreeText:[1,"isFreeText"],selectMultiple:[1,"selectMultiple"],hideClearButton:[1,"hideClearButton"],displayValue:[1,"displayValue"],displayFn:[1,"displayFn"],above:[1,"above"],right:[1,"right"]},outputs:{inputValue:"inputValueChange",change:"change"},ngContentSelectors:jt,decls:15,vars:8,consts:[["formFieldWrapper",""],["inputWrap",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"display-value"],["suffix","",1,"deselect-indicator"],["suffix","",1,"search-indicator"],["suffix","",1,"select-open-indicator",3,"open"],[1,"sparkle-options"],[1,"small","simple",3,"class"],[1,"small","simple",3,"click"],["suffix","",1,"deselect-indicator",3,"click"],[1,"default-indicator"],["suffix","",1,"select-open-indicator"]],template:function(t,i){if(t&1){let o=T();w(At),r(0,"spk-popover",3,0),ne("isOpenChange",function(a){return h(o),ie(i.isOpen,a)||(i.isOpen=a),f(a)}),y("closed",function(){return h(o),f(i.close())}),r(2,"spk-form-field",4),y("click",function(a){return h(o),f(i.open(a))}),p(3,0,["ngProjectAs","label",5,["label"]]),r(4,"div",5,1),D(6,Bt,2,1,"div",6)(7,Wt,2,1,"div",6),p(8,1),l(),D(9,qt,4,0,"div",7)(10,Nt,4,0,"div",8)(11,Qt,4,2,"div",9),l(),r(12,"div",10,2),p(14,2),l()()}t&2&&(te("isOpen",i.isOpen),N("disableOpenByClick",!0)("options",oe(7,Me)),m(2),Q(i.readonly()?"readonly":""),m(4),O(i.selectMultiple()?6:i._displayValue()&&i.isSearchInput()&&!i.isOpen()||i._displayValue()&&!i.isSearchInput()?7:-1),m(3),O((i.inputValue()&&!i.isOpen()&&i.inputValue().length>0||i.selectedOption())&&!i.hideClearButton()?9:i.isSearchInput()&&!i.selectedOption()?10:11))},dependencies:[Ve,re,Ie,_e],encapsulation:2,changeDetection:0})}}return n})(),Wi=(()=>{class n{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=u(!1),this.isOpen=M(!1),this.type=u(""),this.dragImageElement=F.required("dragImageElement"),this.dragIsEnding=_(!1),this.dragIsOnScreen=_(!0),this.isDragging=_(!1),this.dragPositionX=_(0),this.dragActualPositionX=x(()=>{let e=this.dragPositionX(),t=.32;return e>this.openWidthTreshold?this.openWidthTreshold+(e-this.openWidthTreshold)*t:e}),this.draggingStyle=x(()=>this.type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=b(()=>{this.isDragging()&&document.body.classList.add("dragging")})}drop(e){e.stopPropagation(),this.#e(e.clientX)}#e(e){this.isDragging.set(!1),e<=0?this.isOpen.set(!1):e>this.openWidthTreshold?this.isOpen.set(!0):e<this.openWidthTreshold&&(!this.isOpen()&&e<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(e){(e.clientX<0||!this.dragIsOnScreen())&&this.#e(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(e){e.preventDefault(),this.#i(e)}dragStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#i(e)}#i(e){e.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.clientX)}),this.#i(e)}touchStart(e){e.stopPropagation(),this.isDragging.set(!0)}touchMove(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.touches[0].clientX)})}touchEnd(e){e.stopPropagation(),this.#e(e.changedTouches[0].clientX)}touchCancel(e){e.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-sidenav"]],viewQuery:function(t,i){t&1&&P(i.dragImageElement,Ut,5),t&2&&L()},hostVars:10,hostBindings:function(t,i){t&2&&V("open",i.isOpen())("closed",!i.isOpen())("overlay",i.type()==="overlay")("simple",i.type()==="simple")("is-dragging",i.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"],type:[1,"type"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:zt,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,i){t&1&&(w($t),D(0,Yt,2,0,"div",1)(1,Xt,1,0,"div",2),r(2,"div",3),p(3),l(),r(4,"div",4),D(5,Gt,1,0,"div",5),r(6,"div",6),p(7,1),l(),r(8,"main"),p(9,2),l()()),t&2&&(O(i.type()==="overlay"?0:-1),m(),O(i.type()==="overlay"&&i.isDragging()?1:-1),m(3),j("transform",i.draggingStyle()),m(),O(i.type()==="overlay"&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})();var qi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-stepper"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var Ni=(()=>{class n{constructor(){this.tableColumns=u([]),this.loading=u(!1),this.columnSizes=x(()=>this.tableColumns().reduce((e,t,i)=>i===this.tableColumns().length-1?`${e} max-content`:`${e} 1fr`,"")),this.data=u([]),this.dataChange=W(),this.#e=null,this.#i=_(!1),this.sortByColumn=M(null),this.e=b(()=>{let e=this.sortByColumn();if(e===null)return this.#i()||(this.#e=this.data(),this.#i.set(!0)),this.dataChange.emit(JSON.parse(JSON.stringify(this.#e)));let t=e.startsWith("-")?e.slice(1):e,i=e.startsWith("-"),o=this.data().sort((s,a)=>{let k=s[t],g=a[t],v=0;return typeof k=="number"&&typeof g=="number"&&(v=k-g),k instanceof Date&&g instanceof Date&&(v=k.getTime()-g.getTime()),typeof k=="string"&&typeof g=="string"&&(v=k.localeCompare(g,void 0,{sensitivity:"base"})),i?-v:v});this.dataChange.emit(o)})}#e;#i;toggleSort(e){let t=this.sortByColumn(),i=t===e?`-${e}`:t===`-${e}`?null:e;this.sortByColumn.set(i)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-table"]],hostVars:2,hostBindings:function(t,i){t&2&&j("grid-template-columns",i.columnSizes())},inputs:{tableColumns:[1,"tableColumns"],loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:Jt,decls:6,vars:2,consts:[[1,"indeterminate","primary"],[1,"no-rows"]],template:function(t,i){t&1&&(w(Kt),r(0,"thead"),p(1),D(2,Zt,1,0,"spk-progress-bar",0),l(),r(3,"tbody"),p(4,1),l(),D(5,ei,2,0,"div",1)),t&2&&(m(2),O(i.loading()?2:-1),m(3),O(i.loading()?-1:5))},dependencies:[li],encapsulation:2,changeDetection:0})}}return n})(),Qi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-tabs"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var Ui=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-toggle"]],ngContentSelectors:E,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(t,i){t&1&&(w(),r(0,"div",0),H(1,"div",1),l(),p(2))},encapsulation:2,changeDetection:0})}}return n})(),$i=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.disabled=u(!1),this.above=u(!1),this.right=u(!1),this._above=_(this.above()),this._right=_(this.right()),this.message=u.required(),this.isOpen=M(!1),this.closed=W(),this.triggerRef=F.required("triggerRef"),this.tooltipRef=F.required("tooltipRef"),this.id=_("--"+ve()),this.menuStyle=_(null),this.isCalculatingPosition=x(()=>{let e=this.tooltipRef()?.nativeElement;return this.isOpen()?(e?.showPopover(),!0):(e.hidePopover(),this.abortController?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=b(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let t=this.abortController.signal;this.calculateMenuPosition(),this.#i(this.tooltipRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:t}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:t})}),this.scrollableStyles=["scroll","auto"]}#e;#i(e){let t=e.parentElement;for(;t;){if(this.scrollableStyles.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.tooltipRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,a=o+this.#e,k=s+t.width>window.innerWidth,g=a+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(g),this._right.set(k);else{if(this.above()){let v=e.top-t.height-this.#e;v>=0&&(a=v)}else g&&(a=e.top-t.height-this.#e);if(this.right()){let v=e.right-t.width;v>=0&&(s=v)}else k&&(a=g?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:a+"px"})}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-tooltip"]],viewQuery:function(t,i){t&1&&(P(i.triggerRef,Ee,5),P(i.tooltipRef,ti,5)),t&2&&L(2)},hostVars:6,hostBindings:function(t,i){t&2&&V("above",i._above())("right",i._right())("disabled",i.disabled())},inputs:{disabled:[1,"disabled"],above:[1,"above"],right:[1,"right"],message:[1,"message"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:E,decls:6,vars:7,consts:[["triggerRef",""],["tooltipRef",""],[1,"trigger",3,"mouseover","mouseout"],["popover","",1,"tooltip"]],template:function(t,i){if(t&1){let o=T();w(),r(0,"div",2,0),y("mouseover",function(){return h(o),f(i.isOpen.set(!0))})("mouseout",function(){return h(o),f(i.isOpen.set(!1))}),p(2),l(),r(3,"div",3,1),C(5),l()}t&2&&(j("anchor-name",i.id()),m(3),ue(i.menuStyle()),j("position-anchor",i.id()),m(2),U(" ",i.message()," "))},encapsulation:2,changeDetection:0})}}return n})();var zi=(()=>{class n{constructor(){this.filesOver=_(!1),this.filesDropped=W()}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!0)}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1)}ondrop(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1);let t=e.dataTransfer?.files;t&&t.length>0&&this.filesDropped.emit(t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=ye({type:n,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(t,i){t&1&&y("dragover",function(s){return i.onDragOver(s)})("dragleave",function(s){return i.onDragLeave(s)})("drop",function(s){return i.ondrop(s)}),t&2&&V("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();export{re as a,Mi as b,Ii as c,ni as d,Vi as e,Ri as f,oi as g,Fi as h,si as i,Ie as j,Pi as k,Ve as l,Ai as m,ji as n,li as o,Hi as p,Li as q,Te as r,Bi as s,Wi as t,qi as u,Ni as v,Qi as w,Ui as x,$i as y,zi as z};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-DALX7AMG.js";import"./chunk-DNDOALN6.js";import"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";export{a as DurationFormatPipe};
@@ -1 +1 @@
1
- import{o as g}from"./chunk-B3BR2XEK.js";import"./chunk-XJ5AEEQO.js";import"./chunk-5UTMYMNZ.js";import"./chunk-DNHLTHLR.js";import{b as k}from"./chunk-MHZPUJQF.js";import"./chunk-PTG2C2YJ.js";import"./chunk-XFRVNXF6.js";import{a as I}from"./chunk-UYV5TDBS.js";import"./chunk-Z5FVTSXP.js";import"./chunk-FOHDLUCC.js";import"./chunk-7KWOTSVE.js";import{a as $}from"./chunk-ZOMDTRAX.js";import"./chunk-LFQXDL42.js";import"./chunk-2K3CR66C.js";import{b as O}from"./chunk-TQE7OBBP.js";import{a as P,b as h,d as E,e as B}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{o as M,p as b,u as N}from"./chunk-JRAP2EKJ.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-US4WRUST.js";import{C as m,Cb as s,Db as p,Eb as n,Ob as d,Oc as A,Pb as c,Ra as r,Y as l,eb as f,kb as C,sc as R,tb as u,vc as _,yb as D}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";var K=(i,e)=>[i,e,"general"],L=(i,e)=>[i,e,"destination"],v=(i,e)=>[i,e,"source-data"],G=(i,e)=>[i,e,"schedule"],y=(i,e)=>[i,e,"options"];function U(i,e){i&1&&n(0,"spk-progress-bar",6)}function X(i,e){i&1&&(s(0,"section"),n(1,"router-outlet"),p())}var T=class i{#t=l(P);#e=l(g);#a=l($);#i=l(O);isDraft=this.#e.isDraft;backupId=this.#e.backupId;finishedLoading=this.#e.finishedLoading;#o=k(this.#t.params);#n=k(this.#t.url);paramsChanged=A(()=>{let e=this.#o()?.id,a=!!this.#n()?.find(t=>t.path==="backup-draft");this.#e.backupId.set(e),e!=="new"?this.getBackup(e,a):this.getDefaults()});getDefaults(){this.#i.getApiV1Backupdefaults().pipe(m(1)).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule),this.#e.mapOptionsToForms(e.Backup),this.#e.backupDefaults.set(e),this.#e.finishedLoading.set(!0)}})}getBackup(e,a=!1){let t=o=>{this.#e.mapScheduleToForm(o.Schedule??null),o.Backup&&(this.#e.mapGeneralToForm(o.Backup),this.#e.mapDestinationToForm(o.Backup),this.#e.mapSourceDataToForm(o.Backup),this.#e.mapOptionsToForms(o.Backup)),this.#e.finishedLoading.set(!0)};if(a){this.isDraft.set(a);let o=this.#a.draftBackups().find(F=>F.id===e);if(!o){alert("Backup not found");return}t(o.data)}else this.#i.getApiV1BackupById({id:e}).subscribe({next:t})}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=f({type:i,selectors:[["app-backup"]],features:[R([g])],decls:20,vars:21,consts:()=>{let e;e=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: General `;let a;a=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_RADIO: Source Data `;let o;o=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_RADIO: Schedule `;let F;return F=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `,[e,a,t,o,F,["step","","routerLinkActive","active",3,"routerLink"],[1,"indeterminate","primary"]]},template:function(a,t){a&1&&(n(0,"app-status-bar"),s(1,"header")(2,"spk-stepper")(3,"div",5),d(4,0),n(5,"spk-radio"),c(),p(),s(6,"div",5),d(7,1),n(8,"spk-radio"),c(),p(),s(9,"div",5),d(10,2),n(11,"spk-radio"),c(),p(),s(12,"div",5),d(13,3),n(14,"spk-radio"),c(),p(),s(15,"div",5),d(16,4),n(17,"spk-radio"),c(),p()()(),C(18,U,1,0,"spk-progress-bar",6)(19,X,2,0,"section")),a&2&&(r(3),u("routerLink",_(6,K,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(9,L,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(12,v,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(15,G,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(18,y,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),D(t.finishedLoading()?19:18))},dependencies:[h,E,B,I,b,N,M],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}header[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] spk-stepper[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;flex:1 0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto}"],changeDetection:0})};export{T as default};
1
+ import{o as g}from"./chunk-MEFACGK4.js";import"./chunk-DURFGYD7.js";import"./chunk-BRMUJELY.js";import"./chunk-DNHLTHLR.js";import{b as k}from"./chunk-PNJEVGID.js";import"./chunk-YOP6HOXH.js";import"./chunk-RTVM3BJK.js";import{a as I}from"./chunk-DL6QZSL6.js";import"./chunk-7LRQSKYZ.js";import"./chunk-L5D4JLN3.js";import"./chunk-W4MEGIZH.js";import{a as $}from"./chunk-AXHB6A4N.js";import"./chunk-XKAASYKO.js";import"./chunk-MADB4EX7.js";import{b as O}from"./chunk-PPRHD3ZV.js";import{a as P,b as h,d as E,e as B}from"./chunk-LJ3ULEOG.js";import"./chunk-C5EHOW7U.js";import{o as M,p as b,u as N}from"./chunk-6KER52JR.js";import"./chunk-MCLDJCPW.js";import"./chunk-7IRVNC4S.js";import"./chunk-DNDOALN6.js";import{Bb as s,C as m,Cb as p,Db as n,Nb as d,Nc as A,Ob as c,Ra as r,Y as l,eb as f,jb as C,rc as R,sb as u,uc as _,xb as D}from"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";var K=(i,e)=>[i,e,"general"],L=(i,e)=>[i,e,"destination"],v=(i,e)=>[i,e,"source-data"],G=(i,e)=>[i,e,"schedule"],y=(i,e)=>[i,e,"options"];function U(i,e){i&1&&n(0,"spk-progress-bar",6)}function X(i,e){i&1&&(s(0,"section"),n(1,"router-outlet"),p())}var T=class i{#t=l(P);#e=l(g);#a=l($);#i=l(O);isDraft=this.#e.isDraft;backupId=this.#e.backupId;finishedLoading=this.#e.finishedLoading;#o=k(this.#t.params);#n=k(this.#t.url);paramsChanged=A(()=>{let e=this.#o()?.id,a=!!this.#n()?.find(t=>t.path==="backup-draft");this.#e.backupId.set(e),e!=="new"?this.getBackup(e,a):this.getDefaults()});getDefaults(){this.#i.getApiV1Backupdefaults().pipe(m(1)).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule),this.#e.mapOptionsToForms(e.Backup),this.#e.backupDefaults.set(e),this.#e.finishedLoading.set(!0)}})}getBackup(e,a=!1){let t=o=>{this.#e.mapScheduleToForm(o.Schedule??null),o.Backup&&(this.#e.mapGeneralToForm(o.Backup),this.#e.mapDestinationToForm(o.Backup),this.#e.mapSourceDataToForm(o.Backup),this.#e.mapOptionsToForms(o.Backup)),this.#e.finishedLoading.set(!0)};if(a){this.isDraft.set(a);let o=this.#a.draftBackups().find(F=>F.id===e);if(!o){alert("Backup not found");return}t(o.data)}else this.#i.getApiV1BackupById({id:e}).subscribe({next:t})}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=f({type:i,selectors:[["app-backup"]],features:[R([g])],decls:20,vars:21,consts:()=>{let e;e=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: General `;let a;a=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let t;t=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_RADIO: Source Data `;let o;o=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_RADIO: Schedule `;let F;return F=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `,[e,a,t,o,F,["step","","routerLinkActive","active",3,"routerLink"],[1,"indeterminate","primary"]]},template:function(a,t){a&1&&(n(0,"app-status-bar"),s(1,"header")(2,"spk-stepper")(3,"div",5),d(4,0),n(5,"spk-radio"),c(),p(),s(6,"div",5),d(7,1),n(8,"spk-radio"),c(),p(),s(9,"div",5),d(10,2),n(11,"spk-radio"),c(),p(),s(12,"div",5),d(13,3),n(14,"spk-radio"),c(),p(),s(15,"div",5),d(16,4),n(17,"spk-radio"),c(),p()()(),C(18,U,1,0,"spk-progress-bar",6)(19,X,2,0,"section")),a&2&&(r(3),u("routerLink",_(6,K,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(9,L,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(12,v,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(15,G,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),u("routerLink",_(18,y,t.isDraft()?"/backup-draft":"/backup",t.backupId())),r(3),D(t.finishedLoading()?19:18))},dependencies:[h,E,B,I,b,N,M],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}header[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] spk-stepper[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;flex:1 0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto}"],changeDetection:0})};export{T as default};
@@ -1 +1 @@
1
- import{b as m}from"./chunk-7KWOTSVE.js";import{b as N}from"./chunk-TQE7OBBP.js";import{C as o,E as h,Mc as u,O as d,S as l,Y as r,l as c,ua as s,v as f,y as p}from"./chunk-QDAWQNBQ.js";var v=class n{#e=r(N);#n=r(m);serverState=u(()=>{let t=this.#n.serverState();return t?.LastNotificationUpdateID&&this.updateLastNotificationEventId(t?.LastNotificationUpdateID),t});#o=s(-1);#s=s(!1);#t=s([]);#i=s([]);notifications=this.#t.asReadonly();init(){this.notifications().length===0&&this.getNotifications()}updateLastNotificationEventId(t){this.#o()!==t&&(this.#o.set(t),this.getNotifications())}getNotifications(){this.#s.set(!0),this.#e.getApiV1Notifications().pipe(o(1),d(t=>this.#t.set(t)),h(()=>this.#s.set(!1))).subscribe()}getNofication(t){this.#e.getApiV1NotificationById({id:t}).pipe(o(1)).subscribe()}deleteNotification(t){let i=this.#t(),e=i[t];this.#i.set(i),i.splice(t,1),console.log("notifications",i),this.#t.set(i),this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(o(1)).subscribe({error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}deleteAllNotifications(){let t=this.#t();this.#i.set(t),this.#t.set([]);let i=t.map(e=>this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(p(()=>c(e))));f(i).pipe(o(1)).subscribe({next:e=>{let b=e.filter(a=>a!=null&&"ID"in a);this.#t.set(b),this.#i.set([])},error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}static \u0275fac=function(i){return new(i||n)};static \u0275prov=l({token:n,factory:n.\u0275fac,providedIn:"root"})};export{v as a};
1
+ import{a as m}from"./chunk-W4MEGIZH.js";import{b as N}from"./chunk-PPRHD3ZV.js";import{C as o,E as h,Lc as u,O as d,S as l,Y as r,l as c,ua as s,v as f,y as p}from"./chunk-2M52SFS6.js";var v=class n{#e=r(N);#n=r(m);serverState=u(()=>{let t=this.#n.serverState();return t?.LastNotificationUpdateID&&this.updateLastNotificationEventId(t?.LastNotificationUpdateID),t});#o=s(-1);#s=s(!1);#t=s([]);#i=s([]);notifications=this.#t.asReadonly();init(){this.notifications().length===0&&this.getNotifications()}updateLastNotificationEventId(t){this.#o()!==t&&(this.#o.set(t),this.getNotifications())}getNotifications(){this.#s.set(!0),this.#e.getApiV1Notifications().pipe(o(1),d(t=>this.#t.set(t)),h(()=>this.#s.set(!1))).subscribe()}getNofication(t){this.#e.getApiV1NotificationById({id:t}).pipe(o(1)).subscribe()}deleteNotification(t){let i=this.#t(),e=i[t];this.#i.set(i),i.splice(t,1),console.log("notifications",i),this.#t.set(i),this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(o(1)).subscribe({error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}deleteAllNotifications(){let t=this.#t();this.#i.set(t),this.#t.set([]);let i=t.map(e=>this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(p(()=>c(e))));f(i).pipe(o(1)).subscribe({next:e=>{let b=e.filter(a=>a!=null&&"ID"in a);this.#t.set(b),this.#i.set([])},error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}static \u0275fac=function(i){return new(i||n)};static \u0275prov=l({token:n,factory:n.\u0275fac,providedIn:"root"})};export{v as a};
@@ -0,0 +1 @@
1
+ import{Aa as Ke,Ac as ut,Ba as he,Dc as $,Ea as Xe,Ec as at,Fc as q,Gc as ct,Hc as ge,Ib as rt,Jb as F,Jc as Z,Kb as st,Kc as De,Lb as ot,Mb as d,Mc as pe,P as j,Q as Ge,S as b,Sa as qe,T as He,Ta as U,V as P,Va as H,Wa as a,X as B,Xa as N,Y as L,ab as Je,ca as X,cb as Qe,fb as et,g as je,gb as S,ha as Ze,hb as A,ia as Ye,lb as tt,mb as nt,ra as G,sa as We,tb as it}from"./chunk-2M52SFS6.js";import{a as ze,b as Ve}from"./chunk-C6Q5SG76.js";var _t=null;function me(){return _t}function Ci(e){_t??=e}var dt=class{},Fi=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=b({token:e,factory:()=>window.navigation,providedIn:"platform"})}return e})(),Le=new P(""),Me=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=b({token:e,factory:()=>L(Nt),providedIn:"platform"})}return e})(),yi=new P(""),Nt=(()=>{class e extends Me{_location;_history;_doc=L(Le);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return me().getBaseHref(this._doc)}onPopState(t){let n=me().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",t,!1),()=>n.removeEventListener("popstate",t)}onHashChange(t){let n=me().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",t,!1),()=>n.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,n,r){this._history.pushState(t,n,r)}replaceState(t,n,r){this._history.replaceState(t,n,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||e)};static \u0275prov=b({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Te(e,i){return e?i?e.endsWith("/")?i.startsWith("/")?e+i.slice(1):e+i:i.startsWith("/")?e+i:`${e}/${i}`:e:i}function lt(e){let i=e.search(/#|\?|$/);return e[i-1]==="/"?e.slice(0,i-1)+e.slice(i):e}function O(e){return e&&e[0]!=="?"?`?${e}`:e}var ae=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=b({token:e,factory:()=>L(kt),providedIn:"root"})}return e})(),bt=new P(""),kt=(()=>{class e extends ae{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??L(Le).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Te(this._baseHref,t)}path(t=!1){let n=this._platformLocation.pathname+O(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${n}${r}`:n}pushState(t,n,r,s){let o=this.prepareExternalUrl(r+O(s));this._platformLocation.pushState(t,n,o)}replaceState(t,n,r,s){let o=this.prepareExternalUrl(r+O(s));this._platformLocation.replaceState(t,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(n){return new(n||e)(B(Me),B(bt,8))};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ei=(()=>{class e extends ae{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(t){let n=Te(this._baseHref,t);return n.length>0?"#"+n:n}pushState(t,n,r,s){let o=this.prepareExternalUrl(r+O(s))||this._platformLocation.pathname;this._platformLocation.pushState(t,n,o)}replaceState(t,n,r,s){let o=this.prepareExternalUrl(r+O(s))||this._platformLocation.pathname;this._platformLocation.replaceState(t,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(n){return new(n||e)(B(Me),B(bt,8))};static \u0275prov=b({token:e,factory:e.\u0275fac})}return e})(),$t=(()=>{class e{_subject=new je;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;let n=this._locationStrategy.getBaseHref();this._basePath=zt(lt(ft(n))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,n=""){return this.path()==this.normalize(t+O(n))}normalize(t){return e.stripTrailingSlash(Ut(this._basePath,ft(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,n="",r=null){this._locationStrategy.pushState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+O(n)),r)}replaceState(t,n="",r=null){this._locationStrategy.replaceState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+O(n)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",n){this._urlChangeListeners.forEach(r=>r(t,n))}subscribe(t,n,r){return this._subject.subscribe({next:t,error:n??void 0,complete:r??void 0})}static normalizeQueryParams=O;static joinWithSlash=Te;static stripTrailingSlash=lt;static \u0275fac=function(n){return new(n||e)(B(ae))};static \u0275prov=b({token:e,factory:()=>xt(),providedIn:"root"})}return e})();function xt(){return new $t(B(ae))}function Ut(e,i){if(!e||!i.startsWith(e))return i;let t=i.substring(e.length);return t===""||["/",";","?","#"].includes(t[0])?t:i}function ft(e){return e.replace(/\/index.html$/,"")}function zt(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var vt={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},ce=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}(ce||{}),z=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}(z||{}),w=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(w||{}),l=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(l||{}),_=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(_||{}),C={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13},Vt=function(e){return e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday",e}(Vt||{});function jt(e){return F(e)[d.LocaleId]}function Gt(e,i,t){let n=F(e),r=[n[d.DayPeriodsFormat],n[d.DayPeriodsStandalone]],s=I(r,i);return I(s,t)}function Ht(e,i,t){let n=F(e),r=[n[d.DaysFormat],n[d.DaysStandalone]],s=I(r,i);return I(s,t)}function Zt(e,i,t){let n=F(e),r=[n[d.MonthsFormat],n[d.MonthsStandalone]],s=I(r,i);return I(s,t)}function Yt(e,i){let n=F(e)[d.Eras];return I(n,i)}function wi(e){return F(e)[d.FirstDayOfWeek]}function Ai(e){return F(e)[d.WeekendRange]}function J(e,i){let t=F(e);return I(t[d.DateFormat],i)}function Q(e,i){let t=F(e);return I(t[d.TimeFormat],i)}function ee(e,i){let n=F(e)[d.DateTimeFormat];return I(n,i)}function v(e,i){let t=F(e),n=t[d.NumberSymbols][i];if(typeof n>"u"){if(i===C.CurrencyDecimal)return t[d.NumberSymbols][C.Decimal];if(i===C.CurrencyGroup)return t[d.NumberSymbols][C.Group]}return n}function Be(e,i){return F(e)[d.NumberFormats][i]}function Si(e){return F(e)[d.CurrencySymbol]||null}function _i(e){return F(e)[d.CurrencyName]||null}function bi(e){return st(e)}function Wt(e){return F(e)[d.Currencies]}var Kt=ot;function It(e){if(!e[d.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[d.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Xt(e){let i=F(e);return It(i),(i[d.ExtraData][2]||[]).map(n=>typeof n=="string"?Ce(n):[Ce(n[0]),Ce(n[1])])}function qt(e,i,t){let n=F(e);It(n);let r=[n[d.ExtraData][0],n[d.ExtraData][1]],s=I(r,i)||[];return I(s,t)||[]}function vi(e){return F(e)[d.Directionality]}function I(e,i){for(let t=i;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function Ce(e){let[i,t]=e.split(":");return{hours:+i,minutes:+t}}function Jt(e,i,t="en"){let n=Wt(t)[e]||vt[e]||[],r=n[1];return i==="narrow"&&typeof r=="string"?r:n[0]||e}var Qt=2;function en(e){let i,t=vt[e];return t&&(i=t[2]),typeof i=="number"?i:Qt}var tn=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,te={},nn=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function rn(e,i,t,n){let r=hn(e);i=R(t,i)||i;let o=[],u;for(;i;)if(u=nn.exec(i),u){o=o.concat(u.slice(1));let D=o.pop();if(!D)break;i=D}else{o.push(i);break}let h=r.getTimezoneOffset();n&&(h=Mt(n,h),r=fn(r,n,!0));let g="";return o.forEach(D=>{let c=dn(D);g+=c?c(r,t,h):D==="''"?"'":D.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),g}function oe(e,i,t){let n=new Date(0);return n.setFullYear(e,i,t),n.setHours(0,0,0),n}function R(e,i){let t=jt(e);if(te[t]??={},te[t][i])return te[t][i];let n="";switch(i){case"shortDate":n=J(e,_.Short);break;case"mediumDate":n=J(e,_.Medium);break;case"longDate":n=J(e,_.Long);break;case"fullDate":n=J(e,_.Full);break;case"shortTime":n=Q(e,_.Short);break;case"mediumTime":n=Q(e,_.Medium);break;case"longTime":n=Q(e,_.Long);break;case"fullTime":n=Q(e,_.Full);break;case"short":let r=R(e,"shortTime"),s=R(e,"shortDate");n=ne(ee(e,_.Short),[r,s]);break;case"medium":let o=R(e,"mediumTime"),u=R(e,"mediumDate");n=ne(ee(e,_.Medium),[o,u]);break;case"long":let h=R(e,"longTime"),g=R(e,"longDate");n=ne(ee(e,_.Long),[h,g]);break;case"full":let D=R(e,"fullTime"),c=R(e,"fullDate");n=ne(ee(e,_.Full),[D,c]);break}return n&&(te[t][i]=n),n}function ne(e,i){return i&&(e=e.replace(/\{([^}]+)}/g,function(t,n){return i!=null&&n in i?i[n]:t})),e}function M(e,i,t="-",n,r){let s="";(e<0||r&&e<=0)&&(r?e=-e+1:(e=-e,s=t));let o=String(e);for(;o.length<i;)o="0"+o;return n&&(o=o.slice(o.length-i)),s+o}function sn(e,i){return M(e,3).substring(0,i)}function m(e,i,t=0,n=!1,r=!1){return function(s,o){let u=on(e,s);if((t>0||u>-t)&&(u+=t),e===3)u===0&&t===-12&&(u=12);else if(e===6)return sn(u,i);let h=v(o,C.MinusSign);return M(u,i,h,n,r)}}function on(e,i){switch(e){case 0:return i.getFullYear();case 1:return i.getMonth();case 2:return i.getDate();case 3:return i.getHours();case 4:return i.getMinutes();case 5:return i.getSeconds();case 6:return i.getMilliseconds();case 7:return i.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function f(e,i,t=w.Format,n=!1){return function(r,s){return un(r,s,e,i,t,n)}}function un(e,i,t,n,r,s){switch(t){case 2:return Zt(i,r,n)[e.getMonth()];case 1:return Ht(i,r,n)[e.getDay()];case 0:let o=e.getHours(),u=e.getMinutes();if(s){let g=Xt(i),D=qt(i,r,n),c=g.findIndex(y=>{if(Array.isArray(y)){let[p,E]=y,V=o>=p.hours&&u>=p.minutes,k=o<E.hours||o===E.hours&&u<E.minutes;if(p.hours<E.hours){if(V&&k)return!0}else if(V||k)return!0}else if(y.hours===o&&y.minutes===u)return!0;return!1});if(c!==-1)return D[c]}return Gt(i,r,n)[o<12?0:1];case 3:return Yt(i,n)[e.getFullYear()<=0?0:1];default:let h=t;throw new Error(`unexpected translation type ${h}`)}}function ie(e){return function(i,t,n){let r=-1*n,s=v(t,C.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case 0:return(r>=0?"+":"")+M(o,2,s)+M(Math.abs(r%60),2,s);case 1:return"GMT"+(r>=0?"+":"")+M(o,1,s);case 2:return"GMT"+(r>=0?"+":"")+M(o,2,s)+":"+M(Math.abs(r%60),2,s);case 3:return n===0?"Z":(r>=0?"+":"")+M(o,2,s)+":"+M(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${e}"`)}}}var an=0,se=4;function cn(e){let i=oe(e,an,1).getDay();return oe(e,0,1+(i<=se?se:se+7)-i)}function Lt(e){let i=e.getDay(),t=i===0?-3:se-i;return oe(e.getFullYear(),e.getMonth(),e.getDate()+t)}function Fe(e,i=!1){return function(t,n){let r;if(i){let s=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,o=t.getDate();r=1+Math.floor((o+s)/7)}else{let s=Lt(t),o=cn(s.getFullYear()),u=s.getTime()-o.getTime();r=1+Math.round(u/6048e5)}return M(r,e,v(n,C.MinusSign))}}function re(e,i=!1){return function(t,n){let s=Lt(t).getFullYear();return M(s,e,v(n,C.MinusSign),i)}}var ye={};function dn(e){if(ye[e])return ye[e];let i;switch(e){case"G":case"GG":case"GGG":i=f(3,l.Abbreviated);break;case"GGGG":i=f(3,l.Wide);break;case"GGGGG":i=f(3,l.Narrow);break;case"y":i=m(0,1,0,!1,!0);break;case"yy":i=m(0,2,0,!0,!0);break;case"yyy":i=m(0,3,0,!1,!0);break;case"yyyy":i=m(0,4,0,!1,!0);break;case"Y":i=re(1);break;case"YY":i=re(2,!0);break;case"YYY":i=re(3);break;case"YYYY":i=re(4);break;case"M":case"L":i=m(1,1,1);break;case"MM":case"LL":i=m(1,2,1);break;case"MMM":i=f(2,l.Abbreviated);break;case"MMMM":i=f(2,l.Wide);break;case"MMMMM":i=f(2,l.Narrow);break;case"LLL":i=f(2,l.Abbreviated,w.Standalone);break;case"LLLL":i=f(2,l.Wide,w.Standalone);break;case"LLLLL":i=f(2,l.Narrow,w.Standalone);break;case"w":i=Fe(1);break;case"ww":i=Fe(2);break;case"W":i=Fe(1,!0);break;case"d":i=m(2,1);break;case"dd":i=m(2,2);break;case"c":case"cc":i=m(7,1);break;case"ccc":i=f(1,l.Abbreviated,w.Standalone);break;case"cccc":i=f(1,l.Wide,w.Standalone);break;case"ccccc":i=f(1,l.Narrow,w.Standalone);break;case"cccccc":i=f(1,l.Short,w.Standalone);break;case"E":case"EE":case"EEE":i=f(1,l.Abbreviated);break;case"EEEE":i=f(1,l.Wide);break;case"EEEEE":i=f(1,l.Narrow);break;case"EEEEEE":i=f(1,l.Short);break;case"a":case"aa":case"aaa":i=f(0,l.Abbreviated);break;case"aaaa":i=f(0,l.Wide);break;case"aaaaa":i=f(0,l.Narrow);break;case"b":case"bb":case"bbb":i=f(0,l.Abbreviated,w.Standalone,!0);break;case"bbbb":i=f(0,l.Wide,w.Standalone,!0);break;case"bbbbb":i=f(0,l.Narrow,w.Standalone,!0);break;case"B":case"BB":case"BBB":i=f(0,l.Abbreviated,w.Format,!0);break;case"BBBB":i=f(0,l.Wide,w.Format,!0);break;case"BBBBB":i=f(0,l.Narrow,w.Format,!0);break;case"h":i=m(3,1,-12);break;case"hh":i=m(3,2,-12);break;case"H":i=m(3,1);break;case"HH":i=m(3,2);break;case"m":i=m(4,1);break;case"mm":i=m(4,2);break;case"s":i=m(5,1);break;case"ss":i=m(5,2);break;case"S":i=m(6,1);break;case"SS":i=m(6,2);break;case"SSS":i=m(6,3);break;case"Z":case"ZZ":case"ZZZ":i=ie(0);break;case"ZZZZZ":i=ie(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=ie(1);break;case"OOOO":case"ZZZZ":case"zzzz":i=ie(2);break;default:return null}return ye[e]=i,i}function Mt(e,i){e=e.replace(/:/g,"");let t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?i:t}function ln(e,i){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+i),e}function fn(e,i,t){let n=t?-1:1,r=e.getTimezoneOffset(),s=Mt(i,r);return ln(e,n*(s-r))}function hn(e){if(ht(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[r,s=1,o=1]=e.split("-").map(u=>+u);return oe(r,s-1,o)}let t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(tn))return gn(n)}let i=new Date(e);if(!ht(i))throw new Error(`Unable to convert "${e}" into a date`);return i}function gn(e){let i=new Date(0),t=0,n=0,r=e[8]?i.setUTCFullYear:i.setFullYear,s=e[8]?i.setUTCHours:i.setHours;e[9]&&(t=Number(e[9]+e[10]),n=Number(e[9]+e[11])),r.call(i,Number(e[1]),Number(e[2])-1,Number(e[3]));let o=Number(e[4]||0)-t,u=Number(e[5]||0)-n,h=Number(e[6]||0),g=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return s.call(i,o,u,h,g),i}function ht(e){return e instanceof Date&&!isNaN(e.valueOf())}var Dn=/^(\d+)?\.((\d+)(-(\d+))?)?$/,gt=22,ue=".",Y="0",pn=";",mn=",",Ee="#",Dt="\xA4",Cn="%";function Re(e,i,t,n,r,s,o=!1){let u="",h=!1;if(!isFinite(e))u=v(t,C.Infinity);else{let g=An(e);o&&(g=wn(g));let D=i.minInt,c=i.minFrac,y=i.maxFrac;if(s){let x=s.match(Dn);if(x===null)throw new Error(`${s} is not a valid digit info`);let xe=x[1],fe=x[3],Ue=x[5];xe!=null&&(D=we(xe)),fe!=null&&(c=we(fe)),Ue!=null?y=we(Ue):fe!=null&&c>y&&(y=c)}Sn(g,c,y);let p=g.digits,E=g.integerLen,V=g.exponent,k=[];for(h=p.every(x=>!x);E<D;E++)p.unshift(0);for(;E<0;E++)p.unshift(0);E>0?k=p.splice(E,p.length):(k=p,p=[0]);let K=[];for(p.length>=i.lgSize&&K.unshift(p.splice(-i.lgSize,p.length).join(""));p.length>i.gSize;)K.unshift(p.splice(-i.gSize,p.length).join(""));p.length&&K.unshift(p.join("")),u=K.join(v(t,n)),k.length&&(u+=v(t,r)+k.join("")),V&&(u+=v(t,C.Exponential)+"+"+V)}return e<0&&!h?u=i.negPre+u+i.negSuf:u=i.posPre+u+i.posSuf,u}function Fn(e,i,t,n,r){let s=Be(i,ce.Currency),o=Oe(s,v(i,C.MinusSign));return o.minFrac=en(n),o.maxFrac=o.minFrac,Re(e,o,i,C.CurrencyGroup,C.CurrencyDecimal,r).replace(Dt,t).replace(Dt,"").trim()}function yn(e,i,t){let n=Be(i,ce.Percent),r=Oe(n,v(i,C.MinusSign));return Re(e,r,i,C.Group,C.Decimal,t,!0).replace(new RegExp(Cn,"g"),v(i,C.PercentSign))}function En(e,i,t){let n=Be(i,ce.Decimal),r=Oe(n,v(i,C.MinusSign));return Re(e,r,i,C.Group,C.Decimal,t)}function Oe(e,i="-"){let t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=e.split(pn),r=n[0],s=n[1],o=r.indexOf(ue)!==-1?r.split(ue):[r.substring(0,r.lastIndexOf(Y)+1),r.substring(r.lastIndexOf(Y)+1)],u=o[0],h=o[1]||"";t.posPre=u.substring(0,u.indexOf(Ee));for(let D=0;D<h.length;D++){let c=h.charAt(D);c===Y?t.minFrac=t.maxFrac=D+1:c===Ee?t.maxFrac=D+1:t.posSuf+=c}let g=u.split(mn);if(t.gSize=g[1]?g[1].length:0,t.lgSize=g[2]||g[1]?(g[2]||g[1]).length:0,s){let D=r.length-t.posPre.length-t.posSuf.length,c=s.indexOf(Ee);t.negPre=s.substring(0,c).replace(/'/g,""),t.negSuf=s.slice(c+D).replace(/'/g,"")}else t.negPre=i+t.posPre,t.negSuf=t.posSuf;return t}function wn(e){if(e.digits[0]===0)return e;let i=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(i===0?e.digits.push(0,0):i===1&&e.digits.push(0),e.integerLen+=2),e}function An(e){let i=Math.abs(e)+"",t=0,n,r,s,o,u;for((r=i.indexOf(ue))>-1&&(i=i.replace(ue,"")),(s=i.search(/e/i))>0?(r<0&&(r=s),r+=+i.slice(s+1),i=i.substring(0,s)):r<0&&(r=i.length),s=0;i.charAt(s)===Y;s++);if(s===(u=i.length))n=[0],r=1;else{for(u--;i.charAt(u)===Y;)u--;for(r-=s,n=[],o=0;s<=u;s++,o++)n[o]=Number(i.charAt(s))}return r>gt&&(n=n.splice(0,gt-1),t=r-1,r=1),{digits:n,exponent:t,integerLen:r}}function Sn(e,i,t){if(i>t)throw new Error(`The minimum number of digits after fraction (${i}) is higher than the maximum (${t}).`);let n=e.digits,r=n.length-e.integerLen,s=Math.min(Math.max(i,r),t),o=s+e.integerLen,u=n[o];if(o>0){n.splice(Math.max(e.integerLen,o));for(let c=o;c<n.length;c++)n[c]=0}else{r=Math.max(0,r),e.integerLen=1,n.length=Math.max(1,o=s+1),n[0]=0;for(let c=1;c<o;c++)n[c]=0}if(u>=5)if(o-1<0){for(let c=0;c>o;c--)n.unshift(0),e.integerLen++;n.unshift(1),e.integerLen++}else n[o-1]++;for(;r<Math.max(0,s);r++)n.push(0);let h=s!==0,g=i+e.integerLen,D=n.reduceRight(function(c,y,p,E){return y=y+c,E[p]=y<10?y:y-10,h&&(E[p]===0&&p>=g?E.pop():h=!1),y>=10?1:0},0);D&&(n.unshift(D),e.integerLen++)}function we(e){let i=parseInt(e);if(isNaN(i))throw new Error("Invalid integer literal when parsing "+e);return i}var Pe=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=b({token:e,factory:function(n){let r=null;return n?r=new n:r=(s=>new _n(s))(B($)),r},providedIn:"root"})}return e})();function Tt(e,i,t,n){let r=`=${e}`;if(i.indexOf(r)>-1||(r=t.getPluralCategory(e,n),i.indexOf(r)>-1))return r;if(i.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${e}"`)}var _n=(()=>{class e extends Pe{locale;constructor(t){super(),this.locale=t}getPluralCategory(t,n){switch(Kt(n||this.locale)(t)){case z.Zero:return"zero";case z.One:return"one";case z.Two:return"two";case z.Few:return"few";case z.Many:return"many";default:return"other"}}static \u0275fac=function(n){return new(n||e)(B($))};static \u0275prov=b({token:e,factory:e.\u0275fac})}return e})();function Ii(e,i,t){return rt(e,i,t)}function Li(e,i){i=encodeURIComponent(i);for(let t of e.split(";")){let n=t.indexOf("="),[r,s]=n==-1?[t,""]:[t.slice(0,n),t.slice(n+1)];if(r.trim()===i)return decodeURIComponent(s)}return null}var Ae=/\s+/,pt=[],Mi=(()=>{class e{_ngEl;_renderer;initialClasses=pt;rawClass;stateMap=new Map;constructor(t,n){this._ngEl=t,this._renderer=n}set klass(t){this.initialClasses=t!=null?t.trim().split(Ae):pt}set ngClass(t){this.rawClass=typeof t=="string"?t.trim().split(Ae):t}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(let n of t)this._updateState(n,!0);else if(t!=null)for(let n of Object.keys(t))this._updateState(n,!!t[n]);this._applyStateDiff()}_updateState(t,n){let r=this.stateMap.get(t);r!==void 0?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(t,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let t of this.stateMap){let n=t[0],r=t[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1}}_toggleClass(t,n){t=t.trim(),t.length>0&&t.split(Ae).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(n){return new(n||e)(a(G),a(H))};static \u0275dir=S({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})(),Ti=(()=>{class e{_viewContainerRef;ngComponentOutlet=null;ngComponentOutletInputs;ngComponentOutletInjector;ngComponentOutletContent;ngComponentOutletNgModule;ngComponentOutletNgModuleFactory;_componentRef;_moduleRef;_inputsUsed=new Map;get componentInstance(){return this._componentRef?.instance??null}constructor(t){this._viewContainerRef=t}_needToReCreateNgModuleInstance(t){return t.ngComponentOutletNgModule!==void 0||t.ngComponentOutletNgModuleFactory!==void 0}_needToReCreateComponentInstance(t){return t.ngComponentOutlet!==void 0||t.ngComponentOutletContent!==void 0||t.ngComponentOutletInjector!==void 0||this._needToReCreateNgModuleInstance(t)}ngOnChanges(t){if(this._needToReCreateComponentInstance(t)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let n=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(t)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=Qe(this.ngComponentOutletNgModule,mt(n)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(mt(n)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:n,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let t of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(t,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(t){for(let[n,r]of this._inputsUsed)r?(t.setInput(n,this.ngComponentOutletInputs[n]),this._inputsUsed.set(n,!1)):(t.setInput(n,void 0),this._inputsUsed.delete(n))}static \u0275fac=function(n){return new(n||e)(a(N))};static \u0275dir=S({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},exportAs:["ngComponentOutlet"],features:[X]})}return e})();function mt(e){return e.get(Je).injector}var Se=class{$implicit;ngForOf;index;count;constructor(i,t,n,r){this.$implicit=i,this.ngForOf=t,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Bi=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(t,n,r){this._viewContainer=t,this._template=n,this._differs=r}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){let t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){let n=this._viewContainer;t.forEachOperation((r,s,o)=>{if(r.previousIndex==null)n.createEmbeddedView(this._template,new Se(r.item,this._ngForOf,-1,-1),o===null?void 0:o);else if(o==null)n.remove(s===null?void 0:s);else if(s!==null){let u=n.get(s);n.move(u,o),Ct(u,r)}});for(let r=0,s=n.length;r<s;r++){let u=n.get(r).context;u.index=r,u.count=s,u.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{let s=n.get(r.currentIndex);Ct(s,r)})}static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||e)(a(N),a(U),a(ct))};static \u0275dir=S({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function Ct(e,i){e.context.$implicit=i.item}var Ri=(()=>{class e{_viewContainer;_context=new _e;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(t,n){this._viewContainer=t,this._thenTemplateRef=n}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Ft("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Ft("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||e)(a(N),a(U))};static \u0275dir=S({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),_e=class{$implicit=null;ngIf=null};function Ft(e,i){if(!!!(!i||i.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${Ge(i)}'.`)}var W=class{_viewContainerRef;_templateRef;_created=!1;constructor(i,t){this._viewContainerRef=i,this._templateRef=t}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}},Bt=(()=>{class e{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(t){this._ngSwitch=t,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){let n=t===this._ngSwitch;return this._lastCasesMatched||=n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(let n of this._defaultViews)n.enforceState(t)}}static \u0275fac=function(n){return new(n||e)};static \u0275dir=S({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return e})(),Oi=(()=>{class e{ngSwitch;_view;ngSwitchCase;constructor(t,n,r){this.ngSwitch=r,r._addCase(),this._view=new W(t,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||e)(a(N),a(U),a(Bt,9))};static \u0275dir=S({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return e})(),Pi=(()=>{class e{constructor(t,n,r){r._addDefault(new W(t,n))}static \u0275fac=function(n){return new(n||e)(a(N),a(U),a(Bt,9))};static \u0275dir=S({type:e,selectors:[["","ngSwitchDefault",""]]})}return e})();var bn=(()=>{class e{_localization;_activeView;_caseViews={};constructor(t){this._localization=t}set ngPlural(t){this._updateView(t)}addCase(t,n){this._caseViews[t]=n}_updateView(t){this._clearViews();let n=Object.keys(this._caseViews),r=Tt(t,n,this._localization);this._activateView(this._caseViews[r])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(t){t&&(this._activeView=t,this._activeView.create())}static \u0275fac=function(n){return new(n||e)(a(Pe))};static \u0275dir=S({type:e,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}})}return e})(),Ni=(()=>{class e{value;constructor(t,n,r,s){this.value=t;let o=!isNaN(Number(t));s.addCase(o?`=${t}`:t,new W(r,n))}static \u0275fac=function(n){return new(n||e)(Ze("ngPluralCase"),a(U),a(N),a(bn,1))};static \u0275dir=S({type:e,selectors:[["","ngPluralCase",""]]})}return e})(),ki=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(t,n,r){this._ngEl=t,this._differs=n,this._renderer=r}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){let t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,n){let[r,s]=t.split("."),o=r.indexOf("-")===-1?void 0:qe.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,s?`${n}${s}`:n,o):this._renderer.removeStyle(this._ngEl.nativeElement,r,o)}_applyChanges(t){t.forEachRemovedItem(n=>this._setStyle(n.key,null)),t.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),t.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||e)(a(G),a(ge),a(H))};static \u0275dir=S({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),$i=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,n,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,r):!1,get:(t,n,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,r)}})}static \u0275fac=function(n){return new(n||e)(a(N))};static \u0275dir=S({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[X]})}return e})();function T(e,i){return new j(2100,!1)}var be=class{createSubscription(i,t){return pe(()=>i.subscribe({next:t,error:n=>{throw n}}))}dispose(i){pe(()=>i.unsubscribe())}},ve=class{createSubscription(i,t){return i.then(t,n=>{throw n})}dispose(i){}},vn=new ve,In=new be,xi=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(t){this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,n=>this._updateLatestValue(t,n))}_selectStrategy(t){if(tt(t))return vn;if(nt(t))return In;throw T(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,n){t===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||e)(a(q,16))};static \u0275pipe=A({name:"async",type:e,pure:!1})}return e})(),Ui=(()=>{class e{transform(t){if(t==null)return null;if(typeof t!="string")throw T(e,t);return t.toLowerCase()}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=A({name:"lowercase",type:e,pure:!0})}return e})(),Ln=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,zi=(()=>{class e{transform(t){if(t==null)return null;if(typeof t!="string")throw T(e,t);return t.replace(Ln,n=>n[0].toUpperCase()+n.slice(1).toLowerCase())}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=A({name:"titlecase",type:e,pure:!0})}return e})(),Vi=(()=>{class e{transform(t){if(t==null)return null;if(typeof t!="string")throw T(e,t);return t.toUpperCase()}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=A({name:"uppercase",type:e,pure:!0})}return e})(),Mn="mediumDate",Tn=new P(""),Bn=new P(""),ji=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(t,n,r){this.locale=t,this.defaultTimezone=n,this.defaultOptions=r}transform(t,n,r,s){if(t==null||t===""||t!==t)return null;try{let o=n??this.defaultOptions?.dateFormat??Mn,u=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return rn(t,o,s||this.locale,u)}catch(o){throw T(e,o.message)}}static \u0275fac=function(n){return new(n||e)(a($,16),a(Tn,24),a(Bn,24))};static \u0275pipe=A({name:"date",type:e,pure:!0})}return e})(),Rn=/#/g,Gi=(()=>{class e{_localization;constructor(t){this._localization=t}transform(t,n,r){if(t==null)return"";if(typeof n!="object"||n===null)throw T(e,n);let s=Tt(t,Object.keys(n),this._localization,r);return n[s].replace(Rn,t.toString())}static \u0275fac=function(n){return new(n||e)(a(Pe,16))};static \u0275pipe=A({name:"i18nPlural",type:e,pure:!0})}return e})(),Hi=(()=>{class e{transform(t,n){if(t==null)return"";if(typeof n!="object"||typeof t!="string")throw T(e,n);return n.hasOwnProperty(t)?n[t]:n.hasOwnProperty("other")?n.other:""}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=A({name:"i18nSelect",type:e,pure:!0})}return e})(),Zi=(()=>{class e{transform(t){return JSON.stringify(t,null,2)}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=A({name:"json",type:e,pure:!1})}return e})();function On(e,i){return{key:e,value:i}}var Yi=(()=>{class e{differs;constructor(t){this.differs=t}differ;keyValues=[];compareFn=yt;transform(t,n=yt){if(!t||!(t instanceof Map)&&typeof t!="object")return null;this.differ??=this.differs.find(t).create();let r=this.differ.diff(t),s=n!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(o=>{this.keyValues.push(On(o.key,o.currentValue))})),(r||s)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||e)(a(ge,16))};static \u0275pipe=A({name:"keyvalue",type:e,pure:!1})}return e})();function yt(e,i){let t=e.key,n=i.key;if(t===n)return 0;if(t==null)return 1;if(n==null)return-1;if(typeof t=="string"&&typeof n=="string")return t<n?-1:1;if(typeof t=="number"&&typeof n=="number")return t-n;if(typeof t=="boolean"&&typeof n=="boolean")return t<n?-1:1;let r=String(t),s=String(n);return r==s?0:r<s?-1:1}var Wi=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,n,r){if(!Ne(t))return null;r||=this._locale;try{let s=ke(t);return En(s,r,n)}catch(s){throw T(e,s.message)}}static \u0275fac=function(n){return new(n||e)(a($,16))};static \u0275pipe=A({name:"number",type:e,pure:!0})}return e})(),Ki=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,n,r){if(!Ne(t))return null;r||=this._locale;try{let s=ke(t);return yn(s,r,n)}catch(s){throw T(e,s.message)}}static \u0275fac=function(n){return new(n||e)(a($,16))};static \u0275pipe=A({name:"percent",type:e,pure:!0})}return e})(),Xi=(()=>{class e{_locale;_defaultCurrencyCode;constructor(t,n="USD"){this._locale=t,this._defaultCurrencyCode=n}transform(t,n=this._defaultCurrencyCode,r="symbol",s,o){if(!Ne(t))return null;o||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let u=n||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?u=Jt(u,r==="symbol"?"wide":"narrow",o):u=r);try{let h=ke(t);return Fn(h,o,u,n,s)}catch(h){throw T(e,h.message)}}static \u0275fac=function(n){return new(n||e)(a($,16),a(at,16))};static \u0275pipe=A({name:"currency",type:e,pure:!0})}return e})();function Ne(e){return!(e==null||e===""||e!==e)}function ke(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new Error(`${e} is not a number`);return e}var qi=(()=>{class e{transform(t,n,r){if(t==null)return null;if(!(typeof t=="string"||Array.isArray(t)))throw T(e,t);return t.slice(n,r)}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=A({name:"slice",type:e,pure:!1})}return e})();var Ji=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=et({type:e});static \u0275inj=He({})}return e})(),Pn="browser",Nn="server";function Qi(e){return e===Pn}function er(e){return e===Nn}var tr=new ut("19.1.7"),nr=(()=>{class e{static \u0275prov=b({token:e,providedIn:"root",factory:()=>new Ie(L(Le),window)})}return e})(),Ie=class{document;window;offset=()=>[0,0];constructor(i,t){this.document=i,this.window=t}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i){this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){let t=kn(this.document,i);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(i){this.window.history.scrollRestoration=i}scrollToElement(i){let t=i.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}};function kn(e,i){let t=e.getElementById(i)||e.getElementsByName(i)[0];if(t)return t;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let s=r.shadowRoot;if(s){let o=s.getElementById(i)||s.querySelector(`[name="${i}"]`);if(o)return o}r=n.nextNode()}}return null}var Et=class{setOffset(i){}getScrollPosition(){return[0,0]}scrollToPosition(i){}scrollToAnchor(i){}setHistoryScrollRestoration(i){}},wt=class{},de="20";function Rt(e){return/^https?:\/\//.test(e)}function Ot(e){if(!(typeof e=="string")||e.trim()==="")return!1;try{let t=new URL(e);return!0}catch{return!1}}function $n(e){return e.endsWith("/")?e.slice(0,-1):e}function xn(e){return e.startsWith("/")?e.slice(1):e}var Pt=e=>e.src,$e=new P("",{providedIn:"root",factory:()=>Pt});function le(e,i){return function(n){return Ot(n)||Un(n,i||[]),n=$n(n),[{provide:$e,useValue:o=>(Rt(o.src)&&zn(n,o.src),e(n,Ve(ze({},o),{src:xn(o.src)})))}]}}function Un(e,i){throw new j(2959,!1)}function zn(e,i){throw new j(2959,!1)}var ir=le(Vn,void 0);function Vn(e,i){let t="format=auto";return i.width&&(t+=`,width=${i.width}`),i.isPlaceholder&&(t+=`,quality=${de}`),`${e}/cdn-cgi/image/${t}/${i.src}`}var rr=le(jn,void 0);function jn(e,i){let n=`f_auto,${i.isPlaceholder?"q_auto:low":"q_auto"}`;return i.width&&(n+=`,w_${i.width}`),i.loaderParams?.rounded&&(n+=",r_max"),`${e}/image/upload/${n}/${i.src}`}var sr=le(Gn,void 0);function Gn(e,i){let{src:t,width:n}=i,r=[];n&&r.push(`w-${n}`),i.isPlaceholder&&r.push(`q-${de}`);let s=r.length?[e,`tr:${r.join(",")}`,t]:[e,t];return new URL(s.join("/")).href}var or=le(Hn,void 0);function Hn(e,i){let t=new URL(`${e}/${i.src}`);return t.searchParams.set("auto","format"),i.width&&t.searchParams.set("w",i.width.toString()),i.isPlaceholder&&t.searchParams.set("q",de),t.href}function ur(e){if(e&&!Ot(e))throw new j(2959,!1);return e&&(e=new URL(e).origin),[{provide:$e,useValue:n=>Zn(n,e)}]}var At=new Map([["height","h"],["fit","fit"],["quality","q"],["q","q"],["position","position"]]);function Zn(e,i){let t=new URL(i??"https://a/");t.pathname="/.netlify/images",!Rt(e.src)&&!e.src.startsWith("/")&&(e.src="/"+e.src),t.searchParams.set("url",e.src),e.width&&t.searchParams.set("w",e.width.toString());let n=e.loaderParams?.quality??e.loaderParams?.q;e.isPlaceholder&&!n&&t.searchParams.set("q",de);for(let[r,s]of Object.entries(e.loaderParams??{}))At.has(r)&&t.searchParams.set(At.get(r),s.toString());return t.hostname==="a"?t.href.replace(t.origin,""):t.href}var ar=new P("");var St=/^((\s*\d+w\s*(,|$)){1,})$/;var Yn=[1,2],Wn=640;var Kn=1920,Xn=1080;var cr=(()=>{class e{imageLoader=L($e);config=qn(L(he));renderer=L(H);imgElement=L(G).nativeElement;injector=L(Ye);lcpObserver;_renderedSrc=null;ngSrc;ngSrcset;sizes;width;height;loading;priority=!1;loaderParams;disableOptimizedSrcset=!1;fill=!1;placeholder;placeholderConfig;src;srcset;constructor(){}ngOnInit(){We("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");let t=this.updateSrcAndSrcset();this.sizes?this.getLoadingBehavior()==="lazy"?this.setHostAttribute("sizes","auto, "+this.sizes):this.setHostAttribute("sizes",this.sizes):this.ngSrcset&&St.test(this.ngSrcset)&&this.getLoadingBehavior()==="lazy"&&this.setHostAttribute("sizes","auto, 100vw")}ngOnChanges(t){if(t.ngSrc&&!t.ngSrc.isFirstChange()){let n=this._renderedSrc;this.updateSrcAndSrcset(!0)}}callImageLoader(t){let n=t;return this.loaderParams&&(n.loaderParams=this.loaderParams),this.imageLoader(n)}getLoadingBehavior(){return!this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){if(!this._renderedSrc){let t={src:this.ngSrc};this._renderedSrc=this.callImageLoader(t)}return this._renderedSrc}getRewrittenSrcset(){let t=St.test(this.ngSrcset);return this.ngSrcset.split(",").filter(r=>r!=="").map(r=>{r=r.trim();let s=t?parseFloat(r):parseFloat(r)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:s})} ${r}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:t}=this.config,n=t;return this.sizes?.trim()==="100vw"&&(n=t.filter(s=>s>=Wn)),n.map(s=>`${this.callImageLoader({src:this.ngSrc,width:s})} ${s}w`).join(", ")}updateSrcAndSrcset(t=!1){t&&(this._renderedSrc=null);let n=this.getRewrittenSrc();this.setHostAttribute("src",n);let r;return this.ngSrcset?r=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(r=this.getAutomaticSrcset()),r&&this.setHostAttribute("srcset",r),r}getFixedSrcset(){return Yn.map(n=>`${this.callImageLoader({src:this.ngSrc,width:this.width*n})} ${n}x`).join(", ")}shouldGenerateAutomaticSrcset(){let t=!1;return this.sizes||(t=this.width>Kn||this.height>Xn),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==Pt&&!t}generatePlaceholder(t){let{placeholderResolution:n}=this.config;return t===!0?`url(${this.callImageLoader({src:this.ngSrc,width:n,isPlaceholder:!0})})`:typeof t=="string"?`url(${t})`:null}shouldBlurPlaceholder(t){return!t||!t.hasOwnProperty("blur")?!0:!!t.blur}removePlaceholderOnLoad(t){let n=()=>{let o=this.injector.get(q);r(),s(),this.placeholder=!1,o.markForCheck()},r=this.renderer.listen(t,"load",n),s=this.renderer.listen(t,"error",n);Jn(t,n)}setHostAttribute(t,n){this.renderer.setAttribute(this.imgElement,t,n)}static \u0275fac=function(n){return new(n||e)};static \u0275dir=S({type:e,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(n,r){n&2&&it("position",r.fill?"absolute":null)("width",r.fill?"100%":null)("height",r.fill?"100%":null)("inset",r.fill?"0":null)("background-size",r.placeholder?"cover":null)("background-position",r.placeholder?"50% 50%":null)("background-repeat",r.placeholder?"no-repeat":null)("background-image",r.placeholder?r.generatePlaceholder(r.placeholder):null)("filter",r.placeholder&&r.shouldBlurPlaceholder(r.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",Qn],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",De],height:[2,"height","height",De],loading:"loading",priority:[2,"priority","priority",Z],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",Z],fill:[2,"fill","fill",Z],placeholder:[2,"placeholder","placeholder",ei],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},features:[X]})}return e})();function qn(e){let i={};return e.breakpoints&&(i.breakpoints=e.breakpoints.sort((t,n)=>t-n)),Object.assign({},Ke,e,i)}function Jn(e,i){e.complete&&e.naturalWidth&&i()}function Qn(e){return typeof e=="string"?e:Xe(e)}function ei(e){return typeof e=="string"&&e!=="true"&&e!=="false"&&e!==""?e:Z(e)}export{me as a,Ci as b,dt as c,Fi as d,Le as e,Me as f,yi as g,Nt as h,O as i,ae as j,bt as k,kt as l,Ei as m,$t as n,ce as o,z as p,w as q,l as r,_ as s,C as t,Vt as u,jt as v,Gt as w,Ht as x,Zt as y,Yt as z,wi as A,Ai as B,J as C,Q as D,ee as E,v as F,Be as G,Si as H,_i as I,bi as J,Kt as K,Xt as L,qt as M,vi as N,Jt as O,en as P,rn as Q,Fn as R,yn as S,En as T,Pe as U,_n as V,Ii as W,Li as X,Mi as Y,Ti as Z,Se as _,Bi as $,Ri as aa,_e as ba,Bt as ca,Oi as da,Pi as ea,bn as fa,Ni as ga,ki as ha,$i as ia,xi as ja,Ui as ka,zi as la,Vi as ma,Tn as na,Bn as oa,ji as pa,Gi as qa,Hi as ra,Zi as sa,Yi as ta,Wi as ua,Ki as va,Xi as wa,qi as xa,Ji as ya,Pn as za,Nn as Aa,Qi as Ba,er as Ca,tr as Da,nr as Ea,Et as Fa,wt as Ga,$e as Ha,ir as Ia,rr as Ja,sr as Ka,or as La,ur as Ma,ar as Na,cr as Oa};
@@ -1 +1 @@
1
- import{a as z}from"./chunk-UYV5TDBS.js";import"./chunk-Z5FVTSXP.js";import"./chunk-FOHDLUCC.js";import"./chunk-7KWOTSVE.js";import{a as G}from"./chunk-ZOMDTRAX.js";import"./chunk-LFQXDL42.js";import"./chunk-2K3CR66C.js";import{b as L}from"./chunk-TQE7OBBP.js";import{d as E}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as R,g as f,h as k,k as w,o as X}from"./chunk-JRAP2EKJ.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-US4WRUST.js";import{Ab as x,Bb as $,Cb as e,Db as i,Eb as s,Fb as D,Gb as b,Ob as h,Pb as y,Qb as c,Ra as p,Rb as A,Sb as I,Vb as S,Y as d,eb as O,hc as l,kb as m,kc as B,qb as M,rb as P,tb as u,tc as g,uc as v,yb as F,zb as N}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";var W=()=>[k,f,R,E],j=()=>["/restore-from-files"],K=()=>["/restore/from-config"],q=t=>["/restore",t];function V(t,r){if(t&1&&(e(0,"spk-card",5),s(1,"img",10),e(2,"div",7)(3,"h3"),c(4,1),i(),e(5,"p"),l(6),i()(),e(7,"button",8),h(8,2),s(9,"spk-icon"),y(),i()()),t&2){let n,a,o=r.$implicit;p(4),A((n=o.Backup==null?null:o.Backup.Name)!==null&&n!==void 0?n:"Backup name missing"),I(4),p(2),B(" ",(a=o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.SourceSizeString)!==null&&a!==void 0?a:"-"," / ",(a=o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.BackupListCount)!==null&&a!==void 0?a:"-"," "),p(),u("routerLink",v(4,q,o.Backup==null?null:o.Backup.ID))}}function H(t,r){if(t&1&&x(0,V,10,6,"spk-card",5,N),t&2){let n=S(2);$(n.backups())}}function J(t,r){t&1&&(D(0),c(1,3),b())}function Q(t,r){if(t&1&&m(0,H,2,0)(1,J,2,0,"ng-container"),t&2){let n=S();F(n.backups().length?0:1)}}function U(t,r){t&1&&(e(0,"div",11),s(1,"spk-progress-bar",12),e(2,"div",7)(3,"h3"),c(4,4),i()()())}var C=class t{#e=d(G);#t=d(L);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;ngOnInit(){this.#e.getBackups()}restoreNow(r){this.#t.postApiV1BackupByIdRestore({id:r.Backup?.ID,requestBody:{}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=O({type:t,selectors:[["app-restore"]],decls:32,vars:5,consts:()=>{let r;r=$localize`Where do you want to restore from?`;let n;n=$localize`Restore ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let a;a=$localize` Restore ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let o;o=$localize`No backups founds`;let T;return T=$localize`Loading backups...`,[r,n,a,o,T,[1,"type-a"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["spk-button","",3,"routerLink"],["src","assets/images/restore.png","alt","","width","48px"],["src","assets/images/folder.png","alt","","width","48px"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(n,a){n&1&&(s(0,"app-status-bar"),e(1,"section")(2,"h2"),c(3,0),i(),e(4,"spk-card",5),s(5,"img",6),e(6,"div",7)(7,"h3"),l(8,"Direct restore from backup files"),i(),e(9,"p"),l(10,"Point to your backup files and restore from there."),i()(),e(11,"button",8),l(12," Start "),e(13,"spk-icon"),l(14,"play-circle"),i()()(),e(15,"spk-card",5),s(16,"img",9),e(17,"div",7)(18,"h3"),l(19,"Restore from configuration"),i(),e(20,"p"),l(21,"Load destination from an exported job or a storage provider"),i()(),e(22,"button",8),l(23," Start "),e(24,"spk-icon"),l(25,"play-circle"),i()()(),e(26,"spk-divider"),l(27,"Or existing"),i(),m(28,Q,2,1)(29,U,5,0),M(30,28,W,null,29),i()),n&2&&(p(11),u("routerLink",g(3,j)),p(11),u("routerLink",g(4,K)),p(8),P(!a.backupsLoading()))},dependencies:[z,k,f,w,R,X,E],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 0;display:flex;flex-direction:column;gap:1rem}spk-divider[_ngcontent-%COMP%]{color:var(--base-level-60)}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;--card-padding: 2rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}"],changeDetection:0})};export{C as default};
1
+ import{a as z}from"./chunk-DL6QZSL6.js";import"./chunk-7LRQSKYZ.js";import"./chunk-L5D4JLN3.js";import"./chunk-W4MEGIZH.js";import{a as G}from"./chunk-AXHB6A4N.js";import"./chunk-XKAASYKO.js";import"./chunk-MADB4EX7.js";import{b as L}from"./chunk-PPRHD3ZV.js";import{d as E}from"./chunk-LJ3ULEOG.js";import"./chunk-C5EHOW7U.js";import{a as R,g as f,h as k,k as w,o as X}from"./chunk-6KER52JR.js";import"./chunk-MCLDJCPW.js";import"./chunk-7IRVNC4S.js";import"./chunk-DNDOALN6.js";import{Ab as $,Bb as e,Cb as i,Db as s,Eb as D,Fb as b,Nb as h,Ob as y,Pb as c,Qb as A,Ra as p,Rb as I,Ub as S,Y as d,eb as O,gc as l,jb as m,jc as B,pb as M,qb as P,sb as u,sc as g,tc as v,xb as F,yb as N,zb as x}from"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";var W=()=>[k,f,R,E],j=()=>["/restore-from-files"],K=()=>["/restore/from-config"],q=t=>["/restore",t];function V(t,r){if(t&1&&(e(0,"spk-card",5),s(1,"img",10),e(2,"div",7)(3,"h3"),c(4,1),i(),e(5,"p"),l(6),i()(),e(7,"button",8),h(8,2),s(9,"spk-icon"),y(),i()()),t&2){let n,a,o=r.$implicit;p(4),A((n=o.Backup==null?null:o.Backup.Name)!==null&&n!==void 0?n:"Backup name missing"),I(4),p(2),B(" ",(a=o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.SourceSizeString)!==null&&a!==void 0?a:"-"," / ",(a=o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.BackupListCount)!==null&&a!==void 0?a:"-"," "),p(),u("routerLink",v(4,q,o.Backup==null?null:o.Backup.ID))}}function H(t,r){if(t&1&&x(0,V,10,6,"spk-card",5,N),t&2){let n=S(2);$(n.backups())}}function J(t,r){t&1&&(D(0),c(1,3),b())}function Q(t,r){if(t&1&&m(0,H,2,0)(1,J,2,0,"ng-container"),t&2){let n=S();F(n.backups().length?0:1)}}function U(t,r){t&1&&(e(0,"div",11),s(1,"spk-progress-bar",12),e(2,"div",7)(3,"h3"),c(4,4),i()()())}var C=class t{#e=d(G);#t=d(L);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;ngOnInit(){this.#e.getBackups()}restoreNow(r){this.#t.postApiV1BackupByIdRestore({id:r.Backup?.ID,requestBody:{}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=O({type:t,selectors:[["app-restore"]],decls:32,vars:5,consts:()=>{let r;r=$localize`Where do you want to restore from?`;let n;n=$localize`Restore ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let a;a=$localize` Restore ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let o;o=$localize`No backups founds`;let T;return T=$localize`Loading backups...`,[r,n,a,o,T,[1,"type-a"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["spk-button","",3,"routerLink"],["src","assets/images/restore.png","alt","","width","48px"],["src","assets/images/folder.png","alt","","width","48px"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(n,a){n&1&&(s(0,"app-status-bar"),e(1,"section")(2,"h2"),c(3,0),i(),e(4,"spk-card",5),s(5,"img",6),e(6,"div",7)(7,"h3"),l(8,"Direct restore from backup files"),i(),e(9,"p"),l(10,"Point to your backup files and restore from there."),i()(),e(11,"button",8),l(12," Start "),e(13,"spk-icon"),l(14,"play-circle"),i()()(),e(15,"spk-card",5),s(16,"img",9),e(17,"div",7)(18,"h3"),l(19,"Restore from configuration"),i(),e(20,"p"),l(21,"Load destination from an exported job or a storage provider"),i()(),e(22,"button",8),l(23," Start "),e(24,"spk-icon"),l(25,"play-circle"),i()()(),e(26,"spk-divider"),l(27,"Or existing"),i(),m(28,Q,2,1)(29,U,5,0),M(30,28,W,null,29),i()),n&2&&(p(11),u("routerLink",g(3,j)),p(11),u("routerLink",g(4,K)),p(8),P(!a.backupsLoading()))},dependencies:[z,k,f,w,R,X,E],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 0;display:flex;flex-direction:column;gap:1rem}spk-divider[_ngcontent-%COMP%]{color:var(--base-level-60)}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;--card-padding: 2rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}"],changeDetection:0})};export{C as default};