@duplicati/ngclient 0.0.193 → 0.0.194
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunk-MKQQI3MM.js +2 -0
- package/index.html +1 -1
- package/{main-P5KAOOPB.js → main-GWHYPXKT.js} +1 -1
- package/package.json +1 -1
- package/chunk-PEHM5KSY.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as Gt}from"./chunk-HVFZUJ2H.js";import{a as Ft}from"./chunk-KDJCL6HE.js";import{a as $t}from"./chunk-VEWX3KXN.js";import"./chunk-WUL6NS6B.js";import"./chunk-FOQJA6X2.js";import"./chunk-VHOAXFIJ.js";import"./chunk-LP4W35DJ.js";import"./chunk-6Q6SSTBK.js";import"./chunk-FK7JFD5B.js";import{a as te}from"./chunk-KETMZS6P.js";import"./chunk-ME77WZZI.js";import{a as le}from"./chunk-5DJAX2HH.js";import"./chunk-G4VDCGMW.js";import{a as x}from"./chunk-UE5VHUV6.js";import"./chunk-DW332N2S.js";import"./chunk-NNCQNVQC.js";import{a as Rt}from"./chunk-TELPJYLN.js";import{a as Ct,c as gt}from"./chunk-DAODMGAD.js";import{B as w,E as pt,G as Nt,H as ee,L as mt,M as ft,N as It,P as Pt,W as Mt,Y as Ot,c as q,e as K,i as j,m as ut,s as Q,t as Y,u as b,w as Z,z as Et}from"./chunk-HPNLQHW6.js";import{c as ht}from"./chunk-BGTK25UG.js";import"./chunk-A4LPGPDU.js";import"./chunk-PKPBSTZA.js";import"./chunk-QPTSKQZ2.js";import"./chunk-OTPG7USH.js";import"./chunk-TT3S63BX.js";import{$ as u,Ab as o,Bb as m,E as F,Ib as P,Ma as at,Mc as v,Pa as l,Pb as M,Qb as O,Rb as _,Sb as B,Sc as dt,Tb as H,Ub as J,Vb as d,W as R,Xb as S,a as it,aa as E,b as ot,c as st,cb as D,cc as Tt,dc as St,gc as I,hb as se,ib as lt,jc as $,kc as W,la as c,lc as ae,na as k,oc as A,pb as _t,pc as L,qb as rt,qc as y,sb as C,tb as g,uc as ct,xc as X,yb as N,zb as s}from"./chunk-T2WO6CVD.js";import"./chunk-7CGTOI24.js";var Dt=["formRef"],bt=()=>[import("./chunk-OCQNG4JU.js").then(n=>n.OptionsListComponent)];function wt(n,t){n&1&&(s(0,"sh-alert",3),_(1,1),o())}function xt(n,t){if(n&1){let e=P();s(0,"app-options-list",5),y("optionsChange",function(a){u(e);let T=S();return L(T.settings,a)||(T.settings=a),E(a)}),o()}if(n&2){let e=S();A("options",e.settings),N("hasFreeTextSettings",!0)}}var V=class n{#e=R(x);#n=R(ht);formRef=dt.required("formRef");settings=c([]);isSubmitting=c(!1);isLoadingOptions=c(!0);saved=c(!1);lastRecievedServerSettings=c({});serverSettingsEffect=k(()=>{let t=this.#e.serverSettings();if(t===void 0)return;this.lastRecievedServerSettings.set(t),this.isLoadingOptions.set(!0);let e=Object.entries(t);e.forEach(([i,a],T)=>{if(i.startsWith("--")){let f=i.substring(2);this.settings.update(p=>(p.some(h=>h.Name===f||h.Name===i)||p.push({Name:i,Value:a}),p))}T===e.length-1&&this.isLoadingOptions.set(!1)})});submit(){this.isSubmitting.set(!0);let t=this.settings(),e=this.lastRecievedServerSettings(),i=t.map(p=>p.Name?.startsWith("--")?p.Name:`--${p.Name}`),T=Object.keys(e).filter(p=>p.startsWith("--")).filter(p=>!i.includes(p)),f=t.reduce((p,h)=>{let G=h.Name?.startsWith("--")?h.Name:`--${h.Name}`;return p[G]=h.Value,p},{});T.forEach(p=>{f[p]=null}),this.#n.patchApiV1Serversettings({requestBody:f}).pipe(F(()=>this.isSubmitting.set(!1))).subscribe({next:()=>{this.#e.refreshServerSettings(),this.saved.set(!0),setTimeout(()=>{this.saved.set(!1)},3e3)}})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=D({type:n,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,i){e&1&&Tt(i.formRef,Dt,5),e&2&&St()},decls:8,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:floppy-disk${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON: Save settings `;let e;return e=$localize`Settings saved`,[t,e,[1,"actions"],[1,"success"],["shButton","","type","button",1,"raised","primary",3,"click"],[3,"optionsChange","options","hasFreeTextSettings"]]},template:function(e,i){e&1&&(s(0,"div",2),C(1,wt,2,0,"sh-alert",3),s(2,"button",4),d("click",function(){return i.submit()}),M(3,0),m(4,"sh-icon"),O(),o()(),lt(5,xt,1,2),_t(6,5,bt)),e&2&&(l(),g(i.saved()?1:-1),l(),I("loader",i.isSubmitting()),l(4),rt(!i.isLoadingOptions()))},dependencies:[Y,w,b,Z],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40.625rem;justify-self:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end;margin-bottom:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.remote-volume-wrap[_ngcontent-%COMP%] p.warning[_ngcontent-%COMP%]{color:#7d7d00}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 2.5rem;align-items:flex-end}"],changeDetection:0})};function Jt(n,t){if(n&1){let e=P();s(0,"sh-form-field",12)(1,"input",13),y("ngModelChange",function(a){u(e);let T=S(2);return L(T.registerUrl,a)||(T.registerUrl=a),E(a)}),o()(),s(2,"button",14),d("click",function(){u(e);let a=S(2);return E(a.register())}),_(3,0),o()}if(n&2){let e=S(2);l(),A("ngModel",e.registerUrl)}}function Xt(n,t){if(n&1&&(s(0,"div",9)(1,"label"),_(2,1),o(),s(3,"a",15),$(4),o()()),n&2){let e=S(2);l(3),N("href",ct(e.claimUrl()),at),l(),W(e.claimUrl())}}function Vt(n,t){n&1&&(s(0,"div",9)(1,"label"),_(2,2),o()())}function zt(n,t){if(n&1){let e=P();s(0,"button",14),d("click",function(){u(e);let a=S(2);return E(a.cancel())}),_(1,3),o()}}function Ut(n,t){if(n&1){let e=P();s(0,"button",14),d("click",function(){u(e);let a=S(2);return E(a.disable())}),_(1,4),o()}}function Bt(n,t){if(n&1){let e=P();s(0,"button",14),d("click",function(){u(e);let a=S(2);return E(a.enable())}),_(1,5),o(),s(2,"button",16),d("click",function(){u(e);let a=S(2);return E(a.delete())}),_(3,6),o()}}function Ht(n,t){n&1&&(M(0,7,1),m(1,"sh-icon"),O())}function Wt(n,t){n&1&&(M(0,7,2),m(1,"sh-icon"),O())}function qt(n,t){if(n&1){let e=P();s(0,"sh-chip",17),d("click",function(){u(e);let a=S(2);return E(a.copyReportingUrl())}),M(1,7),C(2,Ht,2,0,"sh-icon")(3,Wt,2,0,"sh-icon"),O(),o()}if(n&2){let e=S(2);l(2),g(e.copiedReportingUrl()===!0?2:3)}}function Kt(n,t){if(n&1&&(s(0,"div",8),C(1,Jt,4,1),C(2,Xt,5,3,"div",9),C(3,Vt,3,0,"div",9),C(4,zt,2,0,"button",10),C(5,Ut,2,0,"button",10),C(6,Bt,4,0),C(7,qt,4,1,"sh-chip",11),o()),n&2){let e=S();l(),g(e.state()==="inactive"?1:-1),l(),g(e.state()==="registered"?2:-1),l(),g(e.state()==="registering"?3:-1),l(),g(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),l(),g(e.state()==="connected"||e.state()==="connecting"?5:-1),l(),g(e.state()==="disabled"?6:-1),l(),g(e.additionalReportingUrl()!==""?7:-1)}}var ne=class n{#e=R(te);#n=R(x);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;additionalReportingUrl=v(()=>{let t=this.#n.serverSettings();return this.#e.state()==="inactive"?"":t&&t["additional-report-url"]||""});copiedReportingUrl=c(!1);ngOnInit(){this.#e.refreshRemoteControlStatus()}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}copyReportingUrl(){let t=this.additionalReportingUrl();t&&(this.copiedReportingUrl.set(!0),setTimeout(()=>this.copiedReportingUrl.set(!1),2e3),navigator.clipboard.writeText(t))}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=D({type:n,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let t;t=$localize`Register on console`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let i;i=$localize`Registering, please wait...`;let a;a=$localize`Cancel registration`;let T;T=$localize`Disable console connection`;let f;f=$localize`Enable console connection`;let p;p=$localize` Delete console connection setup `;let h;return h=$localize` Reporting configured by server ${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,h=J(h),[t,e,i,a,T,f,p,h,[1,"field-row"],[1,"field-col"],["type","button","shButton","",1,"raised"],[1,"reporting-url","primary","simple"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","sh-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","shButton","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","shButton","",1,"raised","error",3,"click"],[1,"reporting-url","primary","simple",3,"click"]]},template:function(e,i){e&1&&C(0,Kt,8,7,"div",8),e&2&&g(i.state()!=="unknown"?0:-1)},dependencies:[Q,q,K,j,ee,w,pt,b],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{flex:1 0}.reporting-url[_ngcontent-%COMP%]{cursor:pointer;-webkit-user-select:none;user-select:none;margin-top:.25rem}"],changeDetection:0})};function yt(...n){let t=c(...n);return Object.defineProperty(t,"value",{get:t.asReadonly(),set:t.set.bind(t)})}var ie=()=>({standalone:!0});function jt(n,t){if(n&1&&(s(0,"label"),M(1,35),m(2,"sh-icon",83),O(),o()),n&2){let e=S(3);l(2),N("shTooltip",e.remoteControlTooltip())}}function Qt(n,t){if(n&1&&(s(0,"label"),M(1,36),m(2,"sh-icon",83),O(),o()),n&2){let e=S(3);l(2),N("shTooltip",e.remoteControlTooltip())}}function Yt(n,t){if(n&1&&(s(0,"label"),M(1,37),m(2,"sh-icon",83),O(),o()),n&2){let e=S(3);l(2),N("shTooltip",e.connectionStatusIndicatorTooltip())}}function Zt(n,t){if(n&1&&(s(0,"label"),M(1,38),m(2,"sh-icon",83),O(),o()),n&2){let e=S(3);l(2),N("shTooltip",e.connectionStatusIndicatorTooltip())}}function en(n,t){if(n&1){let e=P();s(0,"section")(1,"div",59)(2,"h3"),_(3,33),o(),s(4,"p"),_(5,34),o()(),s(6,"div",82)(7,"sh-toggle",71),d("click",function(){u(e);let a=S(2);return E(a.toggleConsoleControl())}),C(8,jt,3,1,"label")(9,Qt,3,1,"label"),o(),s(10,"sh-toggle",71),d("click",function(){u(e);let a=S(2);return E(a.saveHideConsoleConnectionStatus())}),C(11,Yt,3,1,"label")(12,Zt,3,1,"label"),o()()()}if(n&2){let e=S(2);l(7),I("active",!e.consoleControlDisabled()),l(),g(e.consoleControlDisabled()?8:9),l(2),I("active",!e.hideConsoleConnectionStatus()),l(),g(e.hideConsoleConnectionStatus()?11:12)}}function tn(n,t){n&1&&(s(0,"label"),_(1,41),o())}function nn(n,t){n&1&&(s(0,"label"),_(1,42),o())}function on(n,t){if(n&1){let e=P();s(0,"section")(1,"div",59)(2,"h3"),_(3,39),o(),s(4,"p"),_(5,40),o()(),s(6,"div",60)(7,"sh-toggle",71),d("click",function(){u(e);let a=S(2);return E(a.saveHideConsoleConnectionStatus())}),C(8,tn,2,0,"label")(9,nn,2,0,"label"),o()()()}if(n&2){let e=S(2);l(7),I("active",!e.hideConsoleConnectionStatus()),l(),g(e.hideConsoleConnectionStatus()?8:9)}}function sn(n,t){if(n&1&&(s(0,"section")(1,"div",59)(2,"h3"),_(3,32),o(),s(4,"p"),$(5),o()(),s(6,"div",60),m(7,"app-remote-control"),o()(),C(8,en,13,6,"section")(9,on,10,3,"section")),n&2){let e=S();l(5),W(e.remoteControlStatus()),l(3),g(e.remoteControlState()!="inactive"?8:9)}}function an(n,t){n&1&&(s(0,"sh-icon",88),$(1,"check"),o())}function ln(n,t){n&1&&(s(0,"sh-icon",89),$(1,"prohibit"),o())}function _n(n,t){if(n&1){let e=P();s(0,"button",93),d("click",function(){u(e);let a=S(2);return E(a.updatePassphrase())}),_(1,46),o()}if(n&2){let e=S(2);I("loader",e.isUpdating())}}function rn(n,t){if(n&1){let e=P();s(0,"button",94),d("click",function(){u(e);let a=S(2);return E(a.updatePassphrase())}),_(1,47),o()}if(n&2){let e=S(2);I("loader",e.isUpdating()),N("disabled",!0)}}function Tn(n,t){if(n&1){let e=P();s(0,"sh-form-field")(1,"label",84),_(2,43),o(),s(3,"input",85),y("ngModelChange",function(a){u(e);let T=S();return L(T.passphrase,a)||(T.passphrase=a),E(a)}),o()(),s(4,"sh-form-field")(5,"label",86),_(6,44),o(),s(7,"input",87),y("ngModelChange",function(a){u(e);let T=S();return L(T.repeatPassphrase,a)||(T.repeatPassphrase=a),E(a)}),o(),C(8,an,2,0,"sh-icon",88)(9,ln,2,0,"sh-icon",89),o(),s(10,"div",65)(11,"button",90),d("click",function(){u(e);let a=S();return E(a.cancelPasswordChange())}),_(12,45),o(),C(13,_n,2,2,"button",91)(14,rn,2,3,"button",92),o()}if(n&2){let e=S();l(3),A("ngModel",e.passphrase),l(4),N("disabled",e.passphrase().length===0),A("ngModel",e.repeatPassphrase),l(),g(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),l(3),I("loader",e.isUpdating()),l(2),g(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14)}}function Sn(n,t){n&1&&(s(0,"sh-icon",95),$(1,"check"),o())}function cn(n,t){if(n&1){let e=P();s(0,"div",65)(1,"button",90),d("click",function(){u(e);let a=S();return E(a.openPassphraseForm())}),_(2,48),o(),C(3,Sn,2,0,"sh-icon",95),o()}if(n&2){let e=S();l(3),g(e.passwordUpdated()?3:-1)}}function dn(n,t){n&1&&(M(0,11,1),m(1,"span"),O())}function Cn(n,t){n&1&&(M(0,11,2),m(1,"span"),O())}function gn(n,t){if(n&1){let e=P();s(0,"sh-form-field")(1,"label",96),_(2,49),o(),s(3,"textarea",97),y("ngModelChange",function(a){u(e);let T=S();return L(T.allowedHostnames,a)||(T.allowedHostnames=a),E(a)}),o()(),s(4,"sh-alert",98),_(5,50),o(),s(6,"button",93),d("click",function(){u(e);let a=S();return E(a.updateAllowedHostnames())}),_(7,51),o()}if(n&2){let e=S();l(3),A("ngModel",e.allowedHostnames),l(3),I("loader",e.updatingAllowedHosts())}}function un(n,t){if(n&1){let e=P();s(0,"section")(1,"div",59)(2,"h3"),_(3,52),o(),s(4,"p"),_(5,53),o()(),s(6,"div",60)(7,"sh-select",99)(8,"input",67),d("ngModelChange",function(a){u(e);let T=S();return E(T.updatePowerMode(a))}),o()()()()}if(n&2){let e=S();l(7),N("options",e.powerModeOptions())("isClearable",!1),l(),N("ngModel",e.powerModeCtrl())("ngModelOptions",X(4,ie))}}function En(n,t){if(n&1&&(s(0,"p"),_(1,54),o()),n&2){let e,i=S();l(),B((e=i.sysinfo())==null?null:e.ServerVersionName),H(1)}}function pn(n,t){n&1&&m(0,"sh-progress-bar",72)}function Nn(n,t){if(n&1&&$(0),n&2){let e=t.$implicit;ae(" ",e.label," ")}}function mn(n,t){if(n&1&&$(0),n&2){let e=t.$implicit;ae(" ",e.label," ")}}function fn(n,t){if(n&1){let e=P();s(0,"section")(1,"div",59)(2,"h3"),_(3,55),o(),s(4,"p"),M(5,56),m(6,"a",100)(7,"br")(8,"br"),O(),o()(),s(9,"div",60)(10,"sh-select",101)(11,"input",67),d("ngModelChange",function(a){u(e);let T=S();return E(T.updateUsageStatistics(a))}),o(),se(12,mn,1,1,"ng-template"),o()()()}if(n&2){let e=S();l(10),N("options",e.usageStatisticsOptions())("isLoading",e.updatingUsageStatistics()),l(),N("ngModel",e.usageStatistics())("ngModelOptions",X(4,ie))}}function In(n,t,e){let i=yt(n),a=i[it];e?.equal&&(a.equal=e.equal);let T;return i.set=f=>{clearTimeout(T),T=setTimeout(()=>ot(a,f),t)},i.update=f=>{clearTimeout(T),T=setTimeout(()=>st(a,f),t)},i}var Pn=[{value:"none",label:$localize`None`},{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],vt=[{value:"none",label:$localize`System default ($value)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"disabled",label:$localize`None / disabled`}],_e=class n{#e=R(Et);#n=R(Gt);#i=R(Rt);#t=R(x);#s=R(te);#T=R(gt);#a=R(Ct);#l=this.#a.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#n.isDarkMode;editAs=c("list");previousLang=this.#l;langCtrl=c(this.#l);powerModeCtrl=c("");usageStatistics=c("");updatingUsageStatistics=c(!1);remoteControlStatus=this.#s.status;remoteControlState=this.#s.state;updatingChannel=c(!1);updateChannel=c("");isUsingRelay=this.#T.relayIsEnabled;defaultClient=c(this.#S());usageStatisticsDisabled=v(()=>(this.#i.systemInfo()?.DefaultUsageReportLevel??"").toLowerCase()==="disabled");#c=k(()=>{let t=this.#i.systemInfo()?.DefaultUsageReportLevel??"",e=vt;e[0].label=$localize`System default (${t})`,this.usageStatisticsOptions.set(e)});remoteControlTooltip=c($localize`Disabling console control will disable remote access to this machine from the console, but will keep the
|
|
2
|
+
registration intact and allow pushing settings from the console.`);connectionStatusIndicatorTooltip=c($localize`Hides the connection status indicator in the status bar. Useful if you are not using the remote console.`);setNewChannel(t){let e=this.updateChannel();this.updateChannel.set(t),this.#t.setUpdateChannel(t).pipe(F(()=>this.updatingChannel.set(!1))).subscribe()}allowRemoteAccess=c(!1);allowedHostnames=c("");loadedAllowedHostnames=c("");updatingRemoteAccess=c(!1);updatingAllowedHosts=c(!1);updatingConsoleControl=c(!1);consoleControlDisabled=c(!1);hideConsoleConnectionStatus=this.#t.isConsoleConnectionStatusHidden;updateRemoteAccess(){let e=!this.allowRemoteAccess();this.allowRemoteAccess.set(e),this.#t.setRemoteAccessInterface(e?"any":"loopback").pipe(F(()=>this.updatingRemoteAccess.set(!1))).subscribe()}updateAllowedHostnames(){let t=this.allowedHostnames();this.updatingAllowedHosts.set(!0),this.#t.setRemoteAccessAllowedHostnames(t).pipe(F(()=>this.updatingAllowedHosts.set(!1))).subscribe()}toggleConsoleControl(){let e=!this.consoleControlDisabled();this.updatingConsoleControl.set(!0),this.#t.setDisableConsoleControl(e).pipe(F(()=>this.updatingConsoleControl.set(!1))).subscribe()}updatingDisableTrayIconLogin=c(!1);disableTrayIconLogin=c(!1);saveDisableTrayIconLogin(){let e=!this.disableTrayIconLogin();this.updatingDisableTrayIconLogin.set(!0),this.#t.setDisableTrayIconLogin(e).pipe(F(()=>this.updatingDisableTrayIconLogin.set(!1))).subscribe()}updatingHideConsoleConnectionStatus=c(!1);saveHideConsoleConnectionStatus(){let e=!this.hideConsoleConnectionStatus();this.updatingHideConsoleConnectionStatus.set(!0),this.#t.setHideConsoleConnectionStatus(e).pipe(F(()=>this.updatingHideConsoleConnectionStatus.set(!1))).subscribe()}showPassphraseForm=c(!1);isUpdating=c(!1);passphrase=c("");repeatPassphrase=c("");passwordUpdated=c(!1);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#t.setRemoteAccessPassword(this.passphrase()).pipe(F(()=>this.isUpdating.set(!1))).subscribe({next:()=>{this.showPassphraseForm.set(!1),this.passwordUpdated.set(!0),setTimeout(()=>{this.passwordUpdated.set(!1)},3e3)}}))}openPassphraseForm(){this.showPassphraseForm.set(!0)}cancelPasswordChange(){this.showPassphraseForm.set(!1)}languageOptions=c($t);powerModeOptions=v(()=>{let t=this.#i.systemInfo();return!t?.PowerModeProviders||t.PowerModeProviders.filter(e=>e!==""&&e!=="None").length==0?[]:t.PowerModeProviders.map(e=>({value:e==""?"default":e,label:e===""?$localize`Default`:e}))});usageStatisticsOptions=c(vt);timeTypeOptions=c(Pn);timeType=c("none");timeValue=In(0,300);timeRange=v(()=>this.timeType()==="h"?[1,24]:[1,60]);updateLocale(t){!t||t===""||t===this.previousLang||(this.#a.setItem("locale",t),window.location.reload())}updateTimeValue(t){this.timeValue.set(t),this.#_()}updateTimeType(t){this.timeType()==="none"&&this.timeValue.set(1),this.timeType.set(t),this.#_()}#o;#_(){this.#o&&clearTimeout(this.#o),this.#o=setTimeout(()=>{let t=this.timeValue(),e=this.timeType(),i=e==="none"||t===0?"":`${t}${e}`;i!==this.#t.serverSettings()?.["startup-delay"]&&this.#t.setStartupDelay(i).subscribe()},1e3)}updateUsageStatistics(t){let e=this.usageStatistics();!t||t===""||t===e||(this.usageStatistics.set(t),this.updatingUsageStatistics.set(!0),this.#t.setUsageReporterLevel(t).subscribe())}updatePowerMode(t){this.powerModeCtrl()!==t&&(t==="default"&&(t=""),this.#t.setPowerModeProvider(t).subscribe())}serverSettingsEffect=k(()=>{let t=this.#t.serverSettings();if(t===void 0)return;let e=t["startup-delay"],i=e.slice(-1),a=e.slice(0,-1),T=["s","m","h"];this.disableTrayIconLogin.set(t["disable-tray-icon-login"]!=="False"),this.updateChannel.set(t["update-channel"]),this.allowRemoteAccess.set(t["server-listen-interface"]==="any"),this.allowedHostnames.set(t["allowed-hostnames"]),this.loadedAllowedHostnames.set(t["allowed-hostnames"]),this.consoleControlDisabled.set(t["disable-console-control"]==="True"),this.usageStatistics.set(t["usage-reporter-level"]===""?"none":t["usage-reporter-level"]),this.timeType.set(e==""?"none":T.includes(i)?i:"none"),this.timeValue.set(e==""?0:parseInt(a));let f=t["power-mode-provider"]===""||t["power-mode-provider"]==null?"default":t["power-mode-provider"];this.powerModeCtrl.set(f)});setDarkMode(){this.#n.setDarkMode()}setLightMode(){this.#n.setLightMode()}changeDefaultClientTo(t){this.defaultClient()!==t&&(t==="ngax"?this.#e.open(le,{data:{title:$localize`Use legacy UI by default`,message:$localize`Are you sure you want to use the legacy user interface by default? This is not recommended unless you have a specific reason.`,confirmText:$localize`Use legacy UI by default`,cancelText:$localize`Cancel`},closed:e=>{e&&(window.location.href="/ngax",this.#r(t))}}):this.#r(t))}openLegacyUI(){this.#e.open(le,{data:{title:$localize`Open legacy UI`,message:$localize`Are you sure you want to open the legacy user interface? This is not recommended unless you have a specific reason.`,confirmText:$localize`Open legacy UI`,cancelText:$localize`Cancel`},closed:t=>{t&&window.open("/ngax","_blank")}})}#r(t){var e=new Date;e.setTime(e.getTime()+2160*60*60*1e3),document.cookie="default-client="+t+"; expires="+e.toUTCString()+"; path=/",this.defaultClient.set(t)}#S(){let t=document.cookie.split(";");for(let e=0;e<t.length;e++){let i=t[e].trim();if(i.startsWith("default-client="))return i.substring(15)}return"ngclient"}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=D({type:n,selectors:[["app-settings"]],decls:128,vars:44,consts:()=>{let t;t=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let i;i=$localize`Color theme`;let a;a=$localize`Customize your application theme`;let T;T=$localize`Passwords`;let f;f=$localize`Change server passphrase`;let p;p=$localize`Language`;let h;h=$localize`Select a language for the platform`;let G;G=$localize`Use legacy interface`;let re;re=$localize`Use the old user interface, not recommended unless you have a specific reason.`;let Te;Te=$localize`${"\uFFFD#46\uFFFD"}:START_TAG_SH_ICON:arrow-square-right${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_SH_ICON: Open legacy UI `;let z;z=$localize`${"\uFFFD#49\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#49\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD*50:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPAN:Default is legacy UI${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPAN:${"\uFFFD/*50:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*51:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPAN:Default is current UI${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPAN:${"\uFFFD/*51:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,z=J(z);let Se;Se=$localize`Allow remote access (requires restart)`;let ce;ce=$localize` By allowing remote access, the server listens to requests from any machine on your network. If you enable this option, make sure you are always using the computer on a secure firewall protected network. `;let de;de=$localize`Allow remote access`;let Ce;Ce=$localize`Prevent tray icon automatic log-in`;let ge;ge=$localize` By default, the tray icon will open the user interface with a token that unlocks the user interface. This ensures that you can access the user interface from the tray icon, while requiring others to enter a password. If you prefer having to type in the password, even when accessing the user interface from the tray icon, enable this option. `;let ue;ue=$localize`Prevent tray icon automatic log-in`;let Ee;Ee=$localize`Update channel`;let pe;pe=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let Ne;Ne=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let me;me=$localize`Stable`;let fe;fe=$localize`Official stable release.`;let Ie;Ie=$localize`Beta`;let Pe;Pe=$localize` Try out the new features that we are working on. Test a backup and restore before using this in production environments. `;let Me;Me=$localize` Experimental `;let Oe;Oe=$localize`Early previews of new features. Not for use with important data.`;let he;he=$localize`Canary`;let Re;Re=$localize`Builds for developers and testers only. Not for use with important data.`;let Ge;Ge=$localize`Pause after startup or hibernation`;let Fe;Fe=$localize` Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. `;let $e;$e=$localize`Advanced options`;let Ae;Ae=$localize`Connect to console`;let Le;Le=$localize`Configure console control`;let ye;ye=$localize` You can control various settings for the remote console connection. If you are not using the console, you can also hide the connection status indicator. `;let ve;ve=$localize` Remote control disabled ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let De;De=$localize` Remote control enabled ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let be;be=$localize` Console connection status is hidden ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let we;we=$localize` Console connection status is visible ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let xe;xe=$localize`Toggle console connection status`;let ke;ke=$localize`Toggle the visibility of the console connection status indicator.`;let Je;Je=$localize`Console connection status is hidden`;let Xe;Xe=$localize`Console connection status is visible`;let Ve;Ve=$localize`Enter new password`;let ze;ze=$localize`Repeat password`;let oe;oe=$localize`Password have to be filled and have to match`;let Ue;Ue=$localize`Passphrase`;let Be;Be=$localize`Repeat passphrase`;let He;He=$localize`Cancel`;let We;We=$localize` Update passphrase `;let qe;qe=$localize` Update passphrase `;let Ke;Ke=$localize`Change password`;let je;je=$localize`Allowed hostnames`;let Qe;Qe=$localize` To prevent various DNS based attacks, Duplicati limits the allowed hostnames to the ones listed here. Direct IP access and localhost is always allowed. Multiple hostnames can be supplied with a semicolon separator. If any of the allowed hostnames is an asterisk (*), all hostnames are allowed and this feature is disabled. If the field is empty, only IP address and localhost access is allowed. `;let Ye;Ye=$localize` Update allowed hostnames `;let Ze;Ze=$localize`Power mode provider`;let et;et=$localize` The power mode provider monitors the system for when it enters a low power state and pauses Duplicati. When the system resumes, Duplicati will resume as well. Choosing the None option disables detection of low power states and Duplicati will run all the time. `;let tt;tt=$localize`Installed version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let nt;nt=$localize`Usage statistics`;let U;return U=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#6\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#6\uFFFD"}:CLOSE_LINK:${"[\uFFFD#7\uFFFD\uFFFD/#7\uFFFD|\uFFFD#8\uFFFD\uFFFD/#8\uFFFD]"}:LINE_BREAK:${"[\uFFFD#7\uFFFD\uFFFD/#7\uFFFD|\uFFFD#8\uFFFD\uFFFD/#8\uFFFD]"}:LINE_BREAK: All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `,U=J(U),[t,e,i,a,T,f,p,h,G,re,Te,z,Se,ce,de,Ce,ge,ue,Ee,pe,Ne,me,fe,Ie,Pe,Me,Oe,he,Re,Ge,Fe,$e,Ae,Le,ye,ve,De,be,we,xe,ke,Je,Xe,Ue,Be,He,We,qe,Ke,je,Qe,Ye,Ze,et,tt,nt,U,[1,"content"],[1,"title"],[1,"left"],[1,"right"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","passphrase-form"],[1,"actions"],["value","value","label","label",3,"options","isClearable","inlineSearch"],["type","text",3,"ngModelChange","ngModel","ngModelOptions"],[1,"right","buttons"],["shButton","",1,"primary",3,"click"],[1,"right","remote-access-form"],[1,"primary","raised",3,"click"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised"],[1,"field-row"],[1,"raised","primary",3,"unit"],["type","range",3,"ngModelChange","min","max","disabled","ngModel","ngModelOptions"],["label","label","value","value",3,"options","isClearable"],["type","text",3,"ngModelChange","ngModel"],[1,"advanced-settings"],[1,"right","multiple"],["suffix","",3,"shTooltip"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",Ve,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",ze,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"sh-success"],["suffix",""],["shButton","",3,"click"],["shButton","",1,"raised","primary",3,"loader"],["shButton","","shTooltip",oe,1,"raised","primary",3,"loader","disabled"],["shButton","",1,"raised","primary",3,"click"],["shButton","","shTooltip",oe,1,"raised","primary",3,"click","disabled"],[1,"sh-success"],["for","allowedHostnames"],["type","text","id","allowedHostnames",3,"ngModelChange","ngModel"],["type","primary"],["value","value","label","label",3,"options","isClearable"],["href","#"],["label","label","value","value",3,"options","isLoading"]]},template:function(e,i){if(e&1&&(m(0,"app-status-bar"),s(1,"div",57)(2,"header")(3,"div",58)(4,"h2"),_(5,0),o(),s(6,"p"),_(7,1),o()()(),C(8,sn,10,2),s(9,"section")(10,"div",59)(11,"h3"),_(12,2),o(),s(13,"p"),_(14,3),o()(),s(15,"div",60)(16,"div",61)(17,"img",62),d("click",function(){return i.setLightMode()}),o(),s(18,"img",63),d("click",function(){return i.setDarkMode()}),o()()()(),s(19,"section")(20,"div",59)(21,"h3"),_(22,4),o(),s(23,"p"),_(24,5),o()(),s(25,"div",64),C(26,Tn,15,7)(27,cn,4,1,"div",65),o()(),s(28,"section")(29,"div",59)(30,"h3"),_(31,6),o(),s(32,"p"),_(33,7),o()(),s(34,"div",60)(35,"sh-select",66)(36,"input",67),d("ngModelChange",function(T){return i.updateLocale(T)}),o()()()(),s(37,"section")(38,"div",59)(39,"h3"),_(40,8),o(),s(41,"p"),_(42,9),o()(),s(43,"div",68)(44,"button",69),d("click",function(){return i.openLegacyUI()}),M(45,10),m(46,"sh-icon"),O(),o(),s(47,"button",69),d("click",function(){return i.changeDefaultClientTo(i.defaultClient()==="ngclient"?"ngax":"ngclient")}),M(48,11),m(49,"sh-icon"),C(50,dn,2,0,"span")(51,Cn,2,0,"span"),O(),o()()(),s(52,"section")(53,"div",59)(54,"h3"),_(55,12),o(),s(56,"p"),_(57,13),o()(),s(58,"div",70)(59,"sh-toggle",71),d("click",function(){return i.updateRemoteAccess()}),s(60,"label"),_(61,14),o()(),C(62,gn,8,3),o()(),s(63,"section")(64,"div",59)(65,"h3"),_(66,15),o(),s(67,"p"),_(68,16),o()(),s(69,"div",60)(70,"sh-toggle",71),d("click",function(){return i.saveDisableTrayIconLogin()}),s(71,"label"),_(72,17),o()()()(),C(73,un,9,5,"section"),s(74,"section")(75,"div",59)(76,"h3"),_(77,18),o(),C(78,En,2,1,"p"),C(79,pn,1,0,"sh-progress-bar",72),o(),s(80,"div",73)(81,"div",74),d("click",function(){return i.setNewChannel("")}),s(82,"sh-radio",75),_(83,19),o(),s(84,"p"),_(85,20),o()(),s(86,"div",74),d("click",function(){return i.setNewChannel("stable")}),s(87,"sh-radio",75),_(88,21),o(),s(89,"p"),_(90,22),o()(),s(91,"div",74),d("click",function(){return i.setNewChannel("beta")}),s(92,"sh-radio",75),_(93,23),o(),s(94,"p"),_(95,24),o()(),s(96,"div",74),d("click",function(){return i.setNewChannel("experimental")}),s(97,"sh-radio",75),_(98,25),o(),s(99,"p"),_(100,26),o()(),s(101,"div",74),d("click",function(){return i.setNewChannel("canary")}),s(102,"sh-radio",75),_(103,27),o(),s(104,"p"),_(105,28),o()()()(),s(106,"section")(107,"div",59)(108,"h3"),_(109,29),o(),s(110,"p"),_(111,30),o()(),s(112,"div",60)(113,"div",76)(114,"sh-range-slider",77)(115,"input",78),y("ngModelChange",function(T){return L(i.timeValue,T)||(i.timeValue=T),T}),d("ngModelChange",function(T){return i.updateTimeValue(T)}),o()(),s(116,"sh-select",79)(117,"input",80),d("ngModelChange",function(T){return i.updateTimeType(T)}),o(),se(118,Nn,1,1,"ng-template"),o()()()(),C(119,fn,13,5,"section"),o(),m(120,"sh-divider"),s(121,"div",57)(122,"section")(123,"div",81)(124,"h3"),_(125,31),o(),m(126,"app-advanced-options-settings"),o()()(),m(127,"sh-divider")),e&2){let a,T,f;l(8),g(i.isUsingRelay()?-1:8),l(9),I("active",!i.isDarkMode()),l(),I("active",i.isDarkMode()),l(8),g(i.showPassphraseForm()?26:27),l(9),N("options",i.languageOptions())("isClearable",!1)("inlineSearch",!0),l(),N("ngModel",i.langCtrl())("ngModelOptions",X(42,ie)),l(14),g(i.defaultClient()==="ngax"?50:51),l(9),I("active",i.allowRemoteAccess()),l(3),g(i.allowRemoteAccess()?62:-1),l(8),I("active",i.disableTrayIconLogin()),l(3),g(i.powerModeOptions().length>0?73:-1),l(5),g((a=i.sysinfo())!=null&&a.ServerVersion?78:-1),l(),g(i.updatingChannel()?79:-1),l(3),I("active",i.updateChannel()===""),l(),B((T=i.sysinfo())==null?null:T.DefaultUpdateChannel),H(83),l(2),B((f=i.sysinfo())==null?null:f.ServerVersionType),H(85),l(2),I("active",i.updateChannel()==="stable"),l(5),I("active",i.updateChannel()==="beta"),l(5),I("active",i.updateChannel()==="experimental"),l(5),I("active",i.updateChannel()==="canary"),l(12),N("unit",i.timeType()==="none"?"s":i.timeType()),l(),N("min",i.timeRange()[0])("max",i.timeRange()[1])("disabled",i.timeType()==="none"),A("ngModel",i.timeValue),N("ngModelOptions",X(43,ie)),l(),N("options",i.timeTypeOptions())("isClearable",!1),l(),N("ngModel",i.timeType()),l(2),g(i.usageStatisticsDisabled()?-1:119)}},dependencies:[Q,q,ut,K,j,Y,Ft,ne,V,w,ft,It,mt,Mt,Ot,ee,b,Nt,Z,Pt],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0;background:var(--base-1);border-bottom:1px solid var(--base-4)}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-4)}section[_ngcontent-%COMP%]:first-of-type{border-top:0}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] sh-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.passphrase-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:1rem}.passphrase-form[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.remote-access-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:15rem;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-8)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] sh-radio[_ngcontent-%COMP%]{color:var(--base-8);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-9)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{flex:1 0}.advanced-settings[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr;gap:1rem}.right.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1rem}.right.multiple[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}"],changeDetection:0})};export{In as debounceSignal,_e as default};
|
package/index.html
CHANGED
|
@@ -124,5 +124,5 @@
|
|
|
124
124
|
<body>
|
|
125
125
|
<app-root></app-root>
|
|
126
126
|
<div class="loading">Connecting ...</div>
|
|
127
|
-
<link rel="modulepreload" href="chunk-VEWX3KXN.js"><link rel="modulepreload" href="chunk-HHYYLYET.js"><link rel="modulepreload" href="chunk-KRXQDBGB.js"><link rel="modulepreload" href="chunk-WUL6NS6B.js"><link rel="modulepreload" href="chunk-FOQJA6X2.js"><link rel="modulepreload" href="chunk-VHOAXFIJ.js"><link rel="modulepreload" href="chunk-LP4W35DJ.js"><link rel="modulepreload" href="chunk-6Q6SSTBK.js"><link rel="modulepreload" href="chunk-FK7JFD5B.js"><link rel="modulepreload" href="chunk-5DJAX2HH.js"><script src="polyfills-7RKI4BGK.js" type="module"></script><script src="main-
|
|
127
|
+
<link rel="modulepreload" href="chunk-VEWX3KXN.js"><link rel="modulepreload" href="chunk-HHYYLYET.js"><link rel="modulepreload" href="chunk-KRXQDBGB.js"><link rel="modulepreload" href="chunk-WUL6NS6B.js"><link rel="modulepreload" href="chunk-FOQJA6X2.js"><link rel="modulepreload" href="chunk-VHOAXFIJ.js"><link rel="modulepreload" href="chunk-LP4W35DJ.js"><link rel="modulepreload" href="chunk-6Q6SSTBK.js"><link rel="modulepreload" href="chunk-FK7JFD5B.js"><link rel="modulepreload" href="chunk-5DJAX2HH.js"><script src="polyfills-7RKI4BGK.js" type="module"></script><script src="main-GWHYPXKT.js" type="module"></script></body>
|
|
128
128
|
</html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as ke,c as Ae}from"./chunk-VEWX3KXN.js";import{a as Te}from"./chunk-HHYYLYET.js";import{a as Ie}from"./chunk-KRXQDBGB.js";import{a as k}from"./chunk-WUL6NS6B.js";import{a as Me}from"./chunk-FOQJA6X2.js";import{b as Ee}from"./chunk-VHOAXFIJ.js";import"./chunk-LP4W35DJ.js";import{a as D}from"./chunk-6Q6SSTBK.js";import{a as Re}from"./chunk-FK7JFD5B.js";import"./chunk-5DJAX2HH.js";import"./chunk-G4VDCGMW.js";import"./chunk-NNCQNVQC.js";import{a as H}from"./chunk-TELPJYLN.js";import{a as h,b as be,c as C,d as we,e as I}from"./chunk-DAODMGAD.js";import{v as ve,x as Ce}from"./chunk-HPNLQHW6.js";import{a as ye,d as Se}from"./chunk-BGTK25UG.js";import{c as me,d as de,g as ue,h as he,i as fe,j as ge}from"./chunk-A4LPGPDU.js";import{a as re}from"./chunk-PKPBSTZA.js";import{a as se,b as ie,c as ae,e as pe,f as ce,g as le}from"./chunk-QPTSKQZ2.js";import{fa as oe,ka as ne}from"./chunk-OTPG7USH.js";import"./chunk-TT3S63BX.js";import{Bb as Z,E as M,I as K,Ic as ee,Jc as te,K as T,M as _,R as v,U as q,W as s,cb as Y,da as z,ea as X,f as W,g as $,l as G,la as d,m as B,na as Q,p as w,y as P,z as J}from"./chunk-T2WO6CVD.js";import"./chunk-7CGTOI24.js";var A=class e{#e=s(h);#a=s(C);ngOnInit(){be(),this.#a.fetchConfig(),this.#e.clearAllNotCurrentVersion()}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=Y({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(o,n){o&1&&Z(0,"router-outlet")},dependencies:[me],encapsulation:2})};var Ne={production:!0,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:3e4};var f=new q("ENVIRONMENT");var N=class e{#e=s(Se);isLoaded=d(!1);webmodules=d(null);preload(t=!1){let o=this.#e.getApiV1Webmodules().pipe(_(n=>this.webmodules.set(n)),M(()=>this.isLoaded.set(!0)));if(t)return o;o.subscribe()}static \u0275fac=function(o){return new(o||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})};var Fe=()=>{let e=s(I);return e.token()?!0:e.checkProxyAuthed().pipe(T(t=>t?G(!0):e.refreshToken().pipe(w(()=>!0))))},We=()=>{let e=s(C),t=s(k),o=s(z),n=e.relayIsEnabled()?"longpoll":"websocket",a=[o.get(H).preload(!0),o.get(H).preloadFilterGroups(!0),o.get(N).preload(!0)];return e.configLoaded===null?P(a).pipe(w(()=>n)):e.configLoaded?.pipe(T(()=>P(a)))},$e=()=>!0,Oe={path:"connect/:typeParam",loadComponent:()=>import("./chunk-7EB3FVZI.js")},Ge=()=>{let e=s(h);return!e.getItem("locale")&&navigator.language&&e.setItem("locale",navigator.language),!0},xe=[{path:"",children:[{path:"login",canActivate:[],loadComponent:()=>import("./chunk-H6ABNEPW.js")},{path:"logout",loadComponent:()=>import("./chunk-XGIZ7XYY.js")},{path:"",canActivate:[Fe],children:[{path:"",canActivate:[We,$e,Ge],children:[{path:"welcome",loadComponent:()=>import("./chunk-ZXVCNNR6.js"),children:[{path:"",redirectTo:"select",pathMatch:"full"},{path:"select",loadComponent:()=>import("./chunk-ZDILEG7V.js")},Oe]},{path:"",loadComponent:()=>import("./chunk-NBQQSADE.js"),children:[{path:"",loadComponent:()=>import("./chunk-S3K2SIX7.js")},Oe,{path:"add-backup",loadComponent:()=>import("./chunk-ZPDK2GFB.js")},{path:"backup/:id/export",loadComponent:()=>import("./chunk-PDAA26RM.js")},{path:"backup/import",loadComponent:()=>import("./chunk-HTPLC7IW.js")},{path:"backup-draft/:id",loadComponent:()=>import("./chunk-BR4LUBSP.js"),loadChildren:()=>import("./chunk-BOZ44QUT.js")},{path:"backup/:id",loadComponent:()=>import("./chunk-BR4LUBSP.js"),loadChildren:()=>import("./chunk-BOZ44QUT.js")},{path:"backup/:id/log",loadComponent:()=>import("./chunk-2EIDUF2P.js")},{path:"backup/:id/database",loadComponent:()=>import("./chunk-5RULL5XV.js")},{path:"backup/:id/commandline",loadComponent:()=>import("./chunk-LSXNHFLE.js")},{path:"backup/:id/commandline/:runId",loadComponent:()=>import("./chunk-WHQUOABU.js")},{path:"backup/:id/delete",loadComponent:()=>import("./chunk-K3VAYERA.js")},{path:"restore",children:[{path:"",loadComponent:()=>import("./chunk-DCMY3QXM.js")},{path:"from-config",loadComponent:()=>import("./chunk-FQZFKTPW.js")}]},{path:"restore-from-files",loadComponent:()=>import("./chunk-VTKKVX26.js"),loadChildren:()=>import("./chunk-2XK5TFRS.js")},{path:"restore-draft/:id",loadComponent:()=>import("./chunk-VTKKVX26.js"),loadChildren:()=>import("./chunk-2XK5TFRS.js")},{path:"restore/:id",loadComponent:()=>import("./chunk-VTKKVX26.js"),loadChildren:()=>import("./chunk-2XK5TFRS.js")},{path:"settings",loadComponent:()=>import("./chunk-PEHM5KSY.js")},{path:"about",loadComponent:()=>import("./chunk-WA2IHWIU.js"),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-C2SNLPZY.js")},{path:"changelog",loadComponent:()=>import("./chunk-T7WSF7RL.js")},{path:"libraries",loadComponent:()=>import("./chunk-B2Y54P3R.js")},{path:"system-info",loadComponent:()=>import("./chunk-SFR3XMV4.js")},{path:"server-settings",loadComponent:()=>import("./chunk-BJ4LD474.js")},{path:"logs",loadChildren:()=>import("./chunk-MRAKGZE6.js")},{path:"crashlogs",loadComponent:()=>import("./chunk-7XS6T6TX.js")}]}]}]}]}]}];var U=null,Le=(e,t)=>{let o=s(I),n=s(de),a=s(h),p=s(f),i=a.getItem("locale"),u=s(Ce),c=ke(i),r=ye.BASE||"",m=e.url===`${r}/api/v1/auth/login`,S=e.url===`${r}/api/v1/auth/logout`,g=e.url===`${r}/api/v1/auth/refresh`,b=e.url===`${r}/api/v1/progressstate`,E=e.url===`${r}/api/v1/remoteoperation/test`,Ue=e.url===`${r}/api/v1/filesystem/validate`,je=e.url.startsWith(`${r}/api/v2/`),L=o.token(),j=e,F=e.headers.has("custom-proxy-check")||L===we;if(L&&e.url.startsWith(r+p.baseUrl)&&!F){let l=e.headers.set("Authorization",`Bearer ${L}`);i&&i!=="en-US"&&(l=l.set("X-Ui-Language",c)),j=e.clone({headers:l})}return t(j).pipe(w(l=>{if(l.type===4&&l.status===200&&je){let y=l.body;if(y?.Success===!1)throw{status:200,message:y?.Error??"Unknown error",error:{Error:y?.Error??"Unknown error"},requestBody:y}}return l}),J(l=>{let y=l.error?.Error||`Error Code: ${l.status}, Message: ${l.message}`;if(!F){let R=!0;if((b&&l.status===404||E||Ue)&&(R=!1),g&&l.status===401&&(R=!1,o.logout(),n.navigate(["/logout"])),!m&&!g&&!S&&l.status===401)return R=!1,U??=o.refreshToken().pipe(K()),U.pipe(T(()=>t(e.clone({headers:e.headers.set("Authorization",`Bearer ${o.token()}`)}))),M(()=>U=null));R&&u.error(y)}return B(()=>({error:l,message:y}))}))};var O=class e{#e=s(X);showError(t){let o=this.#e.querySelector("body > .loading");if(!o)return;o.classList.add("has-error"),o.innerHTML="";let n=this.#e.createElement("div");n.classList.add("loading-title"),n.textContent="Unable to connect";let a=this.#e.createElement("div");a.classList.add("loading-error"),a.textContent=t||"Unknown error";let p=this.#e.createElement("button");p.type="button",p.classList.add("retry-button"),p.textContent="Retry",p.addEventListener("click",()=>{this.#e.defaultView?.location.reload()}),o.append(n,a,p)}static \u0275fac=function(o){return new(o||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})};var Be="1.0.0",Pe=`portal-proxy-client-${D()}`,Je=1,x=class e{#e=1e3;#a=s(f);#d=s(O);#o=d("disconnected");#u=d(this.#e);#p=d(!1);#n=d(!1);#c=d(null);#s=!1;isConnectedToMachineServer=this.#n.asReadonly();wsState=this.#o.asReadonly();#l=[];#r={};#t=null;#h=new TextDecoder("utf-8");#m=null;#g=Q(()=>{let t=this.#p(),o=this.#u(),n=this.#c();if(!n||!t||!o||o<this.#e){this.#m&&window.clearInterval(this.#m);return}this.#m=window.setInterval(()=>{this.connectToMachineServer(n)},o)});#i(t){this.#s||(this.#s=!0,this.#d.showError(t||"Unable to connect to the server."))}#f(){this.#s||(this.#s=!0)}utf8Atob(t){let o=Uint8Array.from(atob(t),a=>a.charCodeAt(0)),n=this.#h.decode(o);return n?JSON.parse(n):null}connectToMachineServer(t,o){let n=o?.reconnect??!1,a=this.wsState();(a==="disconnected"||a==="error"||n)&&(this.#t?.close(),this.#t=null),!this.#t&&(this.#s=!1,this.#t=new WebSocket(this.#a.machineServerUrl),this.#o.set("connecting"),this.#t.onopen=()=>{this.#o.set("connect"),this.#n.set(!0),this.#p.set(!1),this.#c.set(null)},this.#t.onclose=()=>{this.#o.set("disconnected"),this.#n.set(!1),this.#c.set(t),this.#p.set(!0)},this.#t.onerror=()=>{this.#o.set("error")},this.#t.onmessage=p=>{let i=JSON.parse(p.data);if(this.wsState()==="connect"){if(i.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${i.type}'`);return}let c={token:t,publicKey:"",clientVersion:Be,protocolVersion:Je},r=this.createResponse(i,"authportal",c);this.#o.set("welcome"),this.#t?.send(r)}else if(this.wsState()==="welcome"){if(i.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${i.type}'`);return}var u=JSON.parse(i.payload??"");if(u.accepted===!1){this.#i("Authentication failed"),this.disconnectFromMachineServer("Authentication failed");return}for(this.#o.set("authenticated"),this.#n.set(!0);this.#l.length>0;){let c=this.#l.pop();c&&this.#r[c.messageId]&&this.activateCommand(c)}}else if(this.wsState()==="authenticated"){if(i.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${i.type}'`);return}let c=this.#r[i.messageId];if(c){if(i.errorMessage)this.#i(i.errorMessage),c.reject(i.errorMessage);else{let r=JSON.parse(i.payload??"");r.statusCode>=400?this.#i(r.body||`Initial request failed with status code ${r.statusCode}`):this.#f(),r.body=r?.body==null?null:this.utf8Atob(r.body),c.resolve(r)}delete this.#r[i.messageId],window.clearTimeout(c.timer)}}})}disconnectFromMachineServer(t=null){t&&console.error(t),this.#t?.close(),this.#t=null,this.#o.set("disconnected"),this.#n.set(!1)}createResponse(t,o,n){let a={from:Pe,to:t.from,type:o,messageId:t.messageId,payload:JSON.stringify(n)};return JSON.stringify(a)}sendCommand(t,o,n,a,p,i,u=5e3){return(this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(t),new Promise((c,r)=>{let m=D(),g={from:Pe,to:o,type:"command",messageId:m,payload:JSON.stringify({method:n,path:a,body:p,headers:i})},b={resolve:c,reject:r,timer:window.setTimeout(()=>{let E=this.#r[m];E&&(delete this.#r[m],this.#i("The request timed out before receiving a response."),E.reject("Timeout"))},u)};this.#r[m]=b,this.#n()?this.activateCommand(g):this.#l.push(g)})}activateCommand(t){this.#t?.send(JSON.stringify(t))}static \u0275fac=function(o){return new(o||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})};function Ke(e){if(typeof e!="string")return null;let o=new TextEncoder().encode(e);return window.btoa(String.fromCharCode(...o))}function He(e,t,o){let n=e.relayconfigState.config();if(n===null)return o(t);let a=Ke(t.body),p={};t.headers.keys().forEach(r=>{p[r]=t.headers.get(r)??""});let i=t.headers.get("timeout"),u=i!==null?parseInt(i):e.defaultTimeout;t.url.startsWith("/api/v1/serverstate")&&t.url.includes("longpoll=true")&&(u=1e3*99);let c=e.relayWebsocket.sendCommand(n.accessToken,n.clientId,t.method,t.url,a,p,u);return new W(r=>{c.then(m=>{let S=new se;p!=null&&Object.keys(p).forEach(b=>{S.set(b,p[b])});let g=new ie({body:m.body,status:m.statusCode,statusText:"OK",headers:S});r.next(g),r.complete()}).catch(m=>{r.error(new ae({error:m??"Unknown error",status:0,statusText:m??"Unknown error"}))})})}var De=(e,t)=>{let o={relayconfigState:s(C),defaultTimeout:s(f).defaultTimeout,relayWebsocket:s(x)},n=o.relayconfigState.config();if(o.relayconfigState.configLoaded!==null&&n===null){let a=new $;return o.relayconfigState.configLoaded.subscribe(p=>{p&&He(o,e,t).subscribe(a)}),a}return He(o,e,t)};var Ve={providers:[ee(),he(xe,ge(),fe(ue)),pe(le(),ce([De,Le])),h,{provide:f,useValue:Ne},{provide:te,useValue:Ae()},{provide:ve,useValue:{alertVariant:"simple"}},Te,k,Ee,ne,Re,oe,Me,Ie]};re(A,Ve);
|
|
1
|
+
import{b as ke,c as Ae}from"./chunk-VEWX3KXN.js";import{a as Te}from"./chunk-HHYYLYET.js";import{a as Ie}from"./chunk-KRXQDBGB.js";import{a as k}from"./chunk-WUL6NS6B.js";import{a as Me}from"./chunk-FOQJA6X2.js";import{b as Ee}from"./chunk-VHOAXFIJ.js";import"./chunk-LP4W35DJ.js";import{a as D}from"./chunk-6Q6SSTBK.js";import{a as Re}from"./chunk-FK7JFD5B.js";import"./chunk-5DJAX2HH.js";import"./chunk-G4VDCGMW.js";import"./chunk-NNCQNVQC.js";import{a as H}from"./chunk-TELPJYLN.js";import{a as h,b as be,c as C,d as we,e as I}from"./chunk-DAODMGAD.js";import{v as ve,x as Ce}from"./chunk-HPNLQHW6.js";import{a as ye,d as Se}from"./chunk-BGTK25UG.js";import{c as me,d as de,g as ue,h as he,i as fe,j as ge}from"./chunk-A4LPGPDU.js";import{a as re}from"./chunk-PKPBSTZA.js";import{a as se,b as ie,c as ae,e as pe,f as ce,g as le}from"./chunk-QPTSKQZ2.js";import{fa as oe,ka as ne}from"./chunk-OTPG7USH.js";import"./chunk-TT3S63BX.js";import{Bb as Z,E as M,I as K,Ic as ee,Jc as te,K as T,M as _,R as v,U as q,W as s,cb as Y,da as z,ea as X,f as W,g as $,l as G,la as d,m as B,na as Q,p as w,y as P,z as J}from"./chunk-T2WO6CVD.js";import"./chunk-7CGTOI24.js";var A=class e{#e=s(h);#a=s(C);ngOnInit(){be(),this.#a.fetchConfig(),this.#e.clearAllNotCurrentVersion()}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=Y({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(o,n){o&1&&Z(0,"router-outlet")},dependencies:[me],encapsulation:2})};var Ne={production:!0,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:3e4};var f=new q("ENVIRONMENT");var N=class e{#e=s(Se);isLoaded=d(!1);webmodules=d(null);preload(t=!1){let o=this.#e.getApiV1Webmodules().pipe(_(n=>this.webmodules.set(n)),M(()=>this.isLoaded.set(!0)));if(t)return o;o.subscribe()}static \u0275fac=function(o){return new(o||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})};var Fe=()=>{let e=s(I);return e.token()?!0:e.checkProxyAuthed().pipe(T(t=>t?G(!0):e.refreshToken().pipe(w(()=>!0))))},We=()=>{let e=s(C),t=s(k),o=s(z),n=e.relayIsEnabled()?"longpoll":"websocket",a=[o.get(H).preload(!0),o.get(H).preloadFilterGroups(!0),o.get(N).preload(!0)];return e.configLoaded===null?P(a).pipe(w(()=>n)):e.configLoaded?.pipe(T(()=>P(a)))},$e=()=>!0,Oe={path:"connect/:typeParam",loadComponent:()=>import("./chunk-7EB3FVZI.js")},Ge=()=>{let e=s(h);return!e.getItem("locale")&&navigator.language&&e.setItem("locale",navigator.language),!0},xe=[{path:"",children:[{path:"login",canActivate:[],loadComponent:()=>import("./chunk-H6ABNEPW.js")},{path:"logout",loadComponent:()=>import("./chunk-XGIZ7XYY.js")},{path:"",canActivate:[Fe],children:[{path:"",canActivate:[We,$e,Ge],children:[{path:"welcome",loadComponent:()=>import("./chunk-ZXVCNNR6.js"),children:[{path:"",redirectTo:"select",pathMatch:"full"},{path:"select",loadComponent:()=>import("./chunk-ZDILEG7V.js")},Oe]},{path:"",loadComponent:()=>import("./chunk-NBQQSADE.js"),children:[{path:"",loadComponent:()=>import("./chunk-S3K2SIX7.js")},Oe,{path:"add-backup",loadComponent:()=>import("./chunk-ZPDK2GFB.js")},{path:"backup/:id/export",loadComponent:()=>import("./chunk-PDAA26RM.js")},{path:"backup/import",loadComponent:()=>import("./chunk-HTPLC7IW.js")},{path:"backup-draft/:id",loadComponent:()=>import("./chunk-BR4LUBSP.js"),loadChildren:()=>import("./chunk-BOZ44QUT.js")},{path:"backup/:id",loadComponent:()=>import("./chunk-BR4LUBSP.js"),loadChildren:()=>import("./chunk-BOZ44QUT.js")},{path:"backup/:id/log",loadComponent:()=>import("./chunk-2EIDUF2P.js")},{path:"backup/:id/database",loadComponent:()=>import("./chunk-5RULL5XV.js")},{path:"backup/:id/commandline",loadComponent:()=>import("./chunk-LSXNHFLE.js")},{path:"backup/:id/commandline/:runId",loadComponent:()=>import("./chunk-WHQUOABU.js")},{path:"backup/:id/delete",loadComponent:()=>import("./chunk-K3VAYERA.js")},{path:"restore",children:[{path:"",loadComponent:()=>import("./chunk-DCMY3QXM.js")},{path:"from-config",loadComponent:()=>import("./chunk-FQZFKTPW.js")}]},{path:"restore-from-files",loadComponent:()=>import("./chunk-VTKKVX26.js"),loadChildren:()=>import("./chunk-2XK5TFRS.js")},{path:"restore-draft/:id",loadComponent:()=>import("./chunk-VTKKVX26.js"),loadChildren:()=>import("./chunk-2XK5TFRS.js")},{path:"restore/:id",loadComponent:()=>import("./chunk-VTKKVX26.js"),loadChildren:()=>import("./chunk-2XK5TFRS.js")},{path:"settings",loadComponent:()=>import("./chunk-MKQQI3MM.js")},{path:"about",loadComponent:()=>import("./chunk-WA2IHWIU.js"),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-C2SNLPZY.js")},{path:"changelog",loadComponent:()=>import("./chunk-T7WSF7RL.js")},{path:"libraries",loadComponent:()=>import("./chunk-B2Y54P3R.js")},{path:"system-info",loadComponent:()=>import("./chunk-SFR3XMV4.js")},{path:"server-settings",loadComponent:()=>import("./chunk-BJ4LD474.js")},{path:"logs",loadChildren:()=>import("./chunk-MRAKGZE6.js")},{path:"crashlogs",loadComponent:()=>import("./chunk-7XS6T6TX.js")}]}]}]}]}]}];var U=null,Le=(e,t)=>{let o=s(I),n=s(de),a=s(h),p=s(f),i=a.getItem("locale"),u=s(Ce),c=ke(i),r=ye.BASE||"",m=e.url===`${r}/api/v1/auth/login`,S=e.url===`${r}/api/v1/auth/logout`,g=e.url===`${r}/api/v1/auth/refresh`,b=e.url===`${r}/api/v1/progressstate`,E=e.url===`${r}/api/v1/remoteoperation/test`,Ue=e.url===`${r}/api/v1/filesystem/validate`,je=e.url.startsWith(`${r}/api/v2/`),L=o.token(),j=e,F=e.headers.has("custom-proxy-check")||L===we;if(L&&e.url.startsWith(r+p.baseUrl)&&!F){let l=e.headers.set("Authorization",`Bearer ${L}`);i&&i!=="en-US"&&(l=l.set("X-Ui-Language",c)),j=e.clone({headers:l})}return t(j).pipe(w(l=>{if(l.type===4&&l.status===200&&je){let y=l.body;if(y?.Success===!1)throw{status:200,message:y?.Error??"Unknown error",error:{Error:y?.Error??"Unknown error"},requestBody:y}}return l}),J(l=>{let y=l.error?.Error||`Error Code: ${l.status}, Message: ${l.message}`;if(!F){let R=!0;if((b&&l.status===404||E||Ue)&&(R=!1),g&&l.status===401&&(R=!1,o.logout(),n.navigate(["/logout"])),!m&&!g&&!S&&l.status===401)return R=!1,U??=o.refreshToken().pipe(K()),U.pipe(T(()=>t(e.clone({headers:e.headers.set("Authorization",`Bearer ${o.token()}`)}))),M(()=>U=null));R&&u.error(y)}return B(()=>({error:l,message:y}))}))};var O=class e{#e=s(X);showError(t){let o=this.#e.querySelector("body > .loading");if(!o)return;o.classList.add("has-error"),o.innerHTML="";let n=this.#e.createElement("div");n.classList.add("loading-title"),n.textContent="Unable to connect";let a=this.#e.createElement("div");a.classList.add("loading-error"),a.textContent=t||"Unknown error";let p=this.#e.createElement("button");p.type="button",p.classList.add("retry-button"),p.textContent="Retry",p.addEventListener("click",()=>{this.#e.defaultView?.location.reload()}),o.append(n,a,p)}static \u0275fac=function(o){return new(o||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})};var Be="1.0.0",Pe=`portal-proxy-client-${D()}`,Je=1,x=class e{#e=1e3;#a=s(f);#d=s(O);#o=d("disconnected");#u=d(this.#e);#p=d(!1);#n=d(!1);#c=d(null);#s=!1;isConnectedToMachineServer=this.#n.asReadonly();wsState=this.#o.asReadonly();#l=[];#r={};#t=null;#h=new TextDecoder("utf-8");#m=null;#g=Q(()=>{let t=this.#p(),o=this.#u(),n=this.#c();if(!n||!t||!o||o<this.#e){this.#m&&window.clearInterval(this.#m);return}this.#m=window.setInterval(()=>{this.connectToMachineServer(n)},o)});#i(t){this.#s||(this.#s=!0,this.#d.showError(t||"Unable to connect to the server."))}#f(){this.#s||(this.#s=!0)}utf8Atob(t){let o=Uint8Array.from(atob(t),a=>a.charCodeAt(0)),n=this.#h.decode(o);return n?JSON.parse(n):null}connectToMachineServer(t,o){let n=o?.reconnect??!1,a=this.wsState();(a==="disconnected"||a==="error"||n)&&(this.#t?.close(),this.#t=null),!this.#t&&(this.#s=!1,this.#t=new WebSocket(this.#a.machineServerUrl),this.#o.set("connecting"),this.#t.onopen=()=>{this.#o.set("connect"),this.#n.set(!0),this.#p.set(!1),this.#c.set(null)},this.#t.onclose=()=>{this.#o.set("disconnected"),this.#n.set(!1),this.#c.set(t),this.#p.set(!0)},this.#t.onerror=()=>{this.#o.set("error")},this.#t.onmessage=p=>{let i=JSON.parse(p.data);if(this.wsState()==="connect"){if(i.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${i.type}'`);return}let c={token:t,publicKey:"",clientVersion:Be,protocolVersion:Je},r=this.createResponse(i,"authportal",c);this.#o.set("welcome"),this.#t?.send(r)}else if(this.wsState()==="welcome"){if(i.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${i.type}'`);return}var u=JSON.parse(i.payload??"");if(u.accepted===!1){this.#i("Authentication failed"),this.disconnectFromMachineServer("Authentication failed");return}for(this.#o.set("authenticated"),this.#n.set(!0);this.#l.length>0;){let c=this.#l.pop();c&&this.#r[c.messageId]&&this.activateCommand(c)}}else if(this.wsState()==="authenticated"){if(i.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${i.type}'`);return}let c=this.#r[i.messageId];if(c){if(i.errorMessage)this.#i(i.errorMessage),c.reject(i.errorMessage);else{let r=JSON.parse(i.payload??"");r.statusCode>=400?this.#i(r.body||`Initial request failed with status code ${r.statusCode}`):this.#f(),r.body=r?.body==null?null:this.utf8Atob(r.body),c.resolve(r)}delete this.#r[i.messageId],window.clearTimeout(c.timer)}}})}disconnectFromMachineServer(t=null){t&&console.error(t),this.#t?.close(),this.#t=null,this.#o.set("disconnected"),this.#n.set(!1)}createResponse(t,o,n){let a={from:Pe,to:t.from,type:o,messageId:t.messageId,payload:JSON.stringify(n)};return JSON.stringify(a)}sendCommand(t,o,n,a,p,i,u=5e3){return(this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(t),new Promise((c,r)=>{let m=D(),g={from:Pe,to:o,type:"command",messageId:m,payload:JSON.stringify({method:n,path:a,body:p,headers:i})},b={resolve:c,reject:r,timer:window.setTimeout(()=>{let E=this.#r[m];E&&(delete this.#r[m],this.#i("The request timed out before receiving a response."),E.reject("Timeout"))},u)};this.#r[m]=b,this.#n()?this.activateCommand(g):this.#l.push(g)})}activateCommand(t){this.#t?.send(JSON.stringify(t))}static \u0275fac=function(o){return new(o||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})};function Ke(e){if(typeof e!="string")return null;let o=new TextEncoder().encode(e);return window.btoa(String.fromCharCode(...o))}function He(e,t,o){let n=e.relayconfigState.config();if(n===null)return o(t);let a=Ke(t.body),p={};t.headers.keys().forEach(r=>{p[r]=t.headers.get(r)??""});let i=t.headers.get("timeout"),u=i!==null?parseInt(i):e.defaultTimeout;t.url.startsWith("/api/v1/serverstate")&&t.url.includes("longpoll=true")&&(u=1e3*99);let c=e.relayWebsocket.sendCommand(n.accessToken,n.clientId,t.method,t.url,a,p,u);return new W(r=>{c.then(m=>{let S=new se;p!=null&&Object.keys(p).forEach(b=>{S.set(b,p[b])});let g=new ie({body:m.body,status:m.statusCode,statusText:"OK",headers:S});r.next(g),r.complete()}).catch(m=>{r.error(new ae({error:m??"Unknown error",status:0,statusText:m??"Unknown error"}))})})}var De=(e,t)=>{let o={relayconfigState:s(C),defaultTimeout:s(f).defaultTimeout,relayWebsocket:s(x)},n=o.relayconfigState.config();if(o.relayconfigState.configLoaded!==null&&n===null){let a=new $;return o.relayconfigState.configLoaded.subscribe(p=>{p&&He(o,e,t).subscribe(a)}),a}return He(o,e,t)};var Ve={providers:[ee(),he(xe,ge(),fe(ue)),pe(le(),ce([De,Le])),h,{provide:f,useValue:Ne},{provide:te,useValue:Ae()},{provide:ve,useValue:{alertVariant:"simple"}},Te,k,Ee,ne,Re,oe,Me,Ie]};re(A,Ve);
|
package/package.json
CHANGED
package/chunk-PEHM5KSY.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as Pt}from"./chunk-HVFZUJ2H.js";import{a as ht}from"./chunk-KDJCL6HE.js";import{a as Ot}from"./chunk-VEWX3KXN.js";import"./chunk-WUL6NS6B.js";import"./chunk-FOQJA6X2.js";import"./chunk-VHOAXFIJ.js";import"./chunk-LP4W35DJ.js";import"./chunk-6Q6SSTBK.js";import"./chunk-FK7JFD5B.js";import{a as te}from"./chunk-KETMZS6P.js";import"./chunk-ME77WZZI.js";import{a as le}from"./chunk-5DJAX2HH.js";import"./chunk-G4VDCGMW.js";import{a as x}from"./chunk-UE5VHUV6.js";import"./chunk-DW332N2S.js";import"./chunk-NNCQNVQC.js";import{a as Mt}from"./chunk-TELPJYLN.js";import{a as Tt,c as ct}from"./chunk-DAODMGAD.js";import{B as w,E as Ct,G as gt,H as ee,L as ut,M as pt,N as Et,P as Nt,W as mt,Y as ft,c as q,e as K,i as j,m as St,s as Q,t as Y,u as b,w as Z,z as dt}from"./chunk-HPNLQHW6.js";import{c as It}from"./chunk-BGTK25UG.js";import"./chunk-A4LPGPDU.js";import"./chunk-PKPBSTZA.js";import"./chunk-QPTSKQZ2.js";import"./chunk-OTPG7USH.js";import"./chunk-TT3S63BX.js";import{$ as p,Ab as o,Bb as m,E as G,Ib as M,Ma as nt,Mc as v,Pa as l,Pb as P,Qb as h,Rb as _,Sb as B,Sc as rt,Tb as H,Ub as J,Vb as d,W as R,Xb as c,a as Ze,aa as E,b as et,c as tt,cb as D,cc as at,dc as lt,gc as I,hb as se,ib as it,jc as $,kc as W,la as S,lc as ae,na as k,oc as A,pb as ot,pc as y,qb as st,qc as L,sb as C,tb as g,uc as _t,xc as X,yb as N,zb as s}from"./chunk-T2WO6CVD.js";import"./chunk-7CGTOI24.js";var At=["formRef"],yt=()=>[import("./chunk-OCQNG4JU.js").then(i=>i.OptionsListComponent)];function Lt(i,t){i&1&&(s(0,"sh-alert",3),_(1,1),o())}function vt(i,t){if(i&1){let e=M();s(0,"app-options-list",5),L("optionsChange",function(a){p(e);let T=c();return y(T.settings,a)||(T.settings=a),E(a)}),o()}if(i&2){let e=c();A("options",e.settings),N("hasFreeTextSettings",!0)}}var V=class i{#e=R(x);#n=R(It);formRef=rt.required("formRef");settings=S([]);isSubmitting=S(!1);isLoadingOptions=S(!0);saved=S(!1);lastRecievedServerSettings=S({});serverSettingsEffect=k(()=>{let t=this.#e.serverSettings();if(t===void 0)return;this.lastRecievedServerSettings.set(t),this.isLoadingOptions.set(!0);let e=Object.entries(t);e.forEach(([n,a],T)=>{if(n.startsWith("--")){let f=n.substring(2);this.settings.update(u=>(u.some(O=>O.Name===f||O.Name===n)||u.push({Name:n,Value:a}),u))}T===e.length-1&&this.isLoadingOptions.set(!1)})});submit(){this.isSubmitting.set(!0);let t=this.settings(),e=this.lastRecievedServerSettings(),n=t.map(u=>u.Name?.startsWith("--")?u.Name:`--${u.Name}`),T=Object.keys(e).filter(u=>u.startsWith("--")).filter(u=>!n.includes(u)),f=t.reduce((u,O)=>{let F=O.Name?.startsWith("--")?O.Name:`--${O.Name}`;return u[F]=O.Value,u},{});T.forEach(u=>{f[u]=null}),this.#n.patchApiV1Serversettings({requestBody:f}).pipe(G(()=>this.isSubmitting.set(!1))).subscribe({next:()=>{this.#e.refreshServerSettings(),this.saved.set(!0),setTimeout(()=>{this.saved.set(!1)},3e3)}})}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=D({type:i,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,n){e&1&&at(n.formRef,At,5),e&2&<()},decls:8,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:floppy-disk${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON: Save settings `;let e;return e=$localize`Settings saved`,[t,e,[1,"actions"],[1,"success"],["shButton","","type","button",1,"raised","primary",3,"click"],[3,"optionsChange","options","hasFreeTextSettings"]]},template:function(e,n){e&1&&(s(0,"div",2),C(1,Lt,2,0,"sh-alert",3),s(2,"button",4),d("click",function(){return n.submit()}),P(3,0),m(4,"sh-icon"),h(),o()(),it(5,vt,1,2),ot(6,5,yt)),e&2&&(l(),g(n.saved()?1:-1),l(),I("loader",n.isSubmitting()),l(4),st(!n.isLoadingOptions()))},dependencies:[Y,w,b,Z],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40.625rem;justify-self:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end;margin-bottom:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.remote-volume-wrap[_ngcontent-%COMP%] p.warning[_ngcontent-%COMP%]{color:#7d7d00}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 2.5rem;align-items:flex-end}"],changeDetection:0})};function bt(i,t){if(i&1){let e=M();s(0,"sh-form-field",12)(1,"input",13),L("ngModelChange",function(a){p(e);let T=c(2);return y(T.registerUrl,a)||(T.registerUrl=a),E(a)}),o()(),s(2,"button",14),d("click",function(){p(e);let a=c(2);return E(a.register())}),_(3,0),o()}if(i&2){let e=c(2);l(),A("ngModel",e.registerUrl)}}function wt(i,t){if(i&1&&(s(0,"div",9)(1,"label"),_(2,1),o(),s(3,"a",15),$(4),o()()),i&2){let e=c(2);l(3),N("href",_t(e.claimUrl()),nt),l(),W(e.claimUrl())}}function xt(i,t){i&1&&(s(0,"div",9)(1,"label"),_(2,2),o()())}function kt(i,t){if(i&1){let e=M();s(0,"button",14),d("click",function(){p(e);let a=c(2);return E(a.cancel())}),_(1,3),o()}}function Jt(i,t){if(i&1){let e=M();s(0,"button",14),d("click",function(){p(e);let a=c(2);return E(a.disable())}),_(1,4),o()}}function Xt(i,t){if(i&1){let e=M();s(0,"button",14),d("click",function(){p(e);let a=c(2);return E(a.enable())}),_(1,5),o(),s(2,"button",16),d("click",function(){p(e);let a=c(2);return E(a.delete())}),_(3,6),o()}}function Vt(i,t){i&1&&(P(0,7,1),m(1,"sh-icon"),h())}function zt(i,t){i&1&&(P(0,7,2),m(1,"sh-icon"),h())}function Ut(i,t){if(i&1){let e=M();s(0,"sh-chip",17),d("click",function(){p(e);let a=c(2);return E(a.copyReportingUrl())}),P(1,7),C(2,Vt,2,0,"sh-icon")(3,zt,2,0,"sh-icon"),h(),o()}if(i&2){let e=c(2);l(2),g(e.copiedReportingUrl()===!0?2:3)}}function Bt(i,t){if(i&1&&(s(0,"div",8),C(1,bt,4,1),C(2,wt,5,3,"div",9),C(3,xt,3,0,"div",9),C(4,kt,2,0,"button",10),C(5,Jt,2,0,"button",10),C(6,Xt,4,0),C(7,Ut,4,1,"sh-chip",11),o()),i&2){let e=c();l(),g(e.state()==="inactive"?1:-1),l(),g(e.state()==="registered"?2:-1),l(),g(e.state()==="registering"?3:-1),l(),g(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),l(),g(e.state()==="connected"||e.state()==="connecting"?5:-1),l(),g(e.state()==="disabled"?6:-1),l(),g(e.additionalReportingUrl()!==""?7:-1)}}var ne=class i{#e=R(te);#n=R(x);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;additionalReportingUrl=v(()=>{let t=this.#n.serverSettings();return this.#e.state()==="inactive"?"":t&&t["additional-report-url"]||""});copiedReportingUrl=S(!1);ngOnInit(){this.#e.refreshRemoteControlStatus()}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}copyReportingUrl(){let t=this.additionalReportingUrl();t&&(this.copiedReportingUrl.set(!0),setTimeout(()=>this.copiedReportingUrl.set(!1),2e3),navigator.clipboard.writeText(t))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=D({type:i,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let t;t=$localize`Register on console`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let n;n=$localize`Registering, please wait...`;let a;a=$localize`Cancel registration`;let T;T=$localize`Disable console connection`;let f;f=$localize`Enable console connection`;let u;u=$localize` Delete console connection setup `;let O;return O=$localize` Reporting configured by server ${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,O=J(O),[t,e,n,a,T,f,u,O,[1,"field-row"],[1,"field-col"],["type","button","shButton","",1,"raised"],[1,"reporting-url","primary","simple"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","sh-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","shButton","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","shButton","",1,"raised","error",3,"click"],[1,"reporting-url","primary","simple",3,"click"]]},template:function(e,n){e&1&&C(0,Bt,8,7,"div",8),e&2&&g(n.state()!=="unknown"?0:-1)},dependencies:[Q,q,K,j,ee,w,Ct,b],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{flex:1 0}.reporting-url[_ngcontent-%COMP%]{cursor:pointer;-webkit-user-select:none;user-select:none;margin-top:.25rem}"],changeDetection:0})};function Gt(...i){let t=S(...i);return Object.defineProperty(t,"value",{get:t.asReadonly(),set:t.set.bind(t)})}var ie=()=>({standalone:!0});function Ht(i,t){if(i&1&&(s(0,"label"),P(1,35),m(2,"sh-icon",79),h(),o()),i&2){let e=c(3);l(2),N("shTooltip",e.remoteControlTooltip())}}function Wt(i,t){if(i&1&&(s(0,"label"),P(1,36),m(2,"sh-icon",79),h(),o()),i&2){let e=c(3);l(2),N("shTooltip",e.remoteControlTooltip())}}function qt(i,t){if(i&1&&(s(0,"label"),P(1,37),m(2,"sh-icon",79),h(),o()),i&2){let e=c(3);l(2),N("shTooltip",e.connectionStatusIndicatorTooltip())}}function Kt(i,t){if(i&1&&(s(0,"label"),P(1,38),m(2,"sh-icon",79),h(),o()),i&2){let e=c(3);l(2),N("shTooltip",e.connectionStatusIndicatorTooltip())}}function jt(i,t){if(i&1){let e=M();s(0,"section")(1,"div",55)(2,"h3"),_(3,33),o(),s(4,"p"),_(5,34),o()(),s(6,"div",78)(7,"sh-toggle",67),d("click",function(){p(e);let a=c(2);return E(a.toggleConsoleControl())}),C(8,Ht,3,1,"label")(9,Wt,3,1,"label"),o(),s(10,"sh-toggle",67),d("click",function(){p(e);let a=c(2);return E(a.saveHideConsoleConnectionStatus())}),C(11,qt,3,1,"label")(12,Kt,3,1,"label"),o()()()}if(i&2){let e=c(2);l(7),I("active",!e.consoleControlDisabled()),l(),g(e.consoleControlDisabled()?8:9),l(2),I("active",!e.hideConsoleConnectionStatus()),l(),g(e.hideConsoleConnectionStatus()?11:12)}}function Qt(i,t){if(i&1&&(s(0,"section")(1,"div",55)(2,"h3"),_(3,32),o(),s(4,"p"),$(5),o()(),s(6,"div",56),m(7,"app-remote-control"),o()(),C(8,jt,13,6,"section")),i&2){let e=c();l(5),W(e.remoteControlStatus()),l(3),g(e.remoteControlState()!="inactive"?8:-1)}}function Yt(i,t){i&1&&(s(0,"sh-icon",84),$(1,"check"),o())}function Zt(i,t){i&1&&(s(0,"sh-icon",85),$(1,"prohibit"),o())}function en(i,t){if(i&1){let e=M();s(0,"button",89),d("click",function(){p(e);let a=c(2);return E(a.updatePassphrase())}),_(1,42),o()}if(i&2){let e=c(2);I("loader",e.isUpdating())}}function tn(i,t){if(i&1){let e=M();s(0,"button",90),d("click",function(){p(e);let a=c(2);return E(a.updatePassphrase())}),_(1,43),o()}if(i&2){let e=c(2);I("loader",e.isUpdating()),N("disabled",!0)}}function nn(i,t){if(i&1){let e=M();s(0,"sh-form-field")(1,"label",80),_(2,39),o(),s(3,"input",81),L("ngModelChange",function(a){p(e);let T=c();return y(T.passphrase,a)||(T.passphrase=a),E(a)}),o()(),s(4,"sh-form-field")(5,"label",82),_(6,40),o(),s(7,"input",83),L("ngModelChange",function(a){p(e);let T=c();return y(T.repeatPassphrase,a)||(T.repeatPassphrase=a),E(a)}),o(),C(8,Yt,2,0,"sh-icon",84)(9,Zt,2,0,"sh-icon",85),o(),s(10,"div",61)(11,"button",86),d("click",function(){p(e);let a=c();return E(a.cancelPasswordChange())}),_(12,41),o(),C(13,en,2,2,"button",87)(14,tn,2,3,"button",88),o()}if(i&2){let e=c();l(3),A("ngModel",e.passphrase),l(4),N("disabled",e.passphrase().length===0),A("ngModel",e.repeatPassphrase),l(),g(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),l(3),I("loader",e.isUpdating()),l(2),g(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14)}}function on(i,t){i&1&&(s(0,"sh-icon",91),$(1,"check"),o())}function sn(i,t){if(i&1){let e=M();s(0,"div",61)(1,"button",86),d("click",function(){p(e);let a=c();return E(a.openPassphraseForm())}),_(2,44),o(),C(3,on,2,0,"sh-icon",91),o()}if(i&2){let e=c();l(3),g(e.passwordUpdated()?3:-1)}}function an(i,t){i&1&&(P(0,11,1),m(1,"span"),h())}function ln(i,t){i&1&&(P(0,11,2),m(1,"span"),h())}function _n(i,t){if(i&1){let e=M();s(0,"sh-form-field")(1,"label",92),_(2,45),o(),s(3,"textarea",93),L("ngModelChange",function(a){p(e);let T=c();return y(T.allowedHostnames,a)||(T.allowedHostnames=a),E(a)}),o()(),s(4,"sh-alert",94),_(5,46),o(),s(6,"button",89),d("click",function(){p(e);let a=c();return E(a.updateAllowedHostnames())}),_(7,47),o()}if(i&2){let e=c();l(3),A("ngModel",e.allowedHostnames),l(3),I("loader",e.updatingAllowedHosts())}}function rn(i,t){if(i&1){let e=M();s(0,"section")(1,"div",55)(2,"h3"),_(3,48),o(),s(4,"p"),_(5,49),o()(),s(6,"div",56)(7,"sh-select",95)(8,"input",63),d("ngModelChange",function(a){p(e);let T=c();return E(T.updatePowerMode(a))}),o()()()()}if(i&2){let e=c();l(7),N("options",e.powerModeOptions())("isClearable",!1),l(),N("ngModel",e.powerModeCtrl())("ngModelOptions",X(4,ie))}}function Tn(i,t){if(i&1&&(s(0,"p"),_(1,50),o()),i&2){let e,n=c();l(),B((e=n.sysinfo())==null?null:e.ServerVersionName),H(1)}}function cn(i,t){i&1&&m(0,"sh-progress-bar",68)}function Sn(i,t){if(i&1&&$(0),i&2){let e=t.$implicit;ae(" ",e.label," ")}}function dn(i,t){if(i&1&&$(0),i&2){let e=t.$implicit;ae(" ",e.label," ")}}function Cn(i,t){if(i&1){let e=M();s(0,"section")(1,"div",55)(2,"h3"),_(3,51),o(),s(4,"p"),P(5,52),m(6,"a",96)(7,"br")(8,"br"),h(),o()(),s(9,"div",56)(10,"sh-select",97)(11,"input",63),d("ngModelChange",function(a){p(e);let T=c();return E(T.updateUsageStatistics(a))}),o(),se(12,dn,1,1,"ng-template"),o()()()}if(i&2){let e=c();l(10),N("options",e.usageStatisticsOptions())("isLoading",e.updatingUsageStatistics()),l(),N("ngModel",e.usageStatistics())("ngModelOptions",X(4,ie))}}function gn(i,t,e){let n=Gt(i),a=n[Ze];e?.equal&&(a.equal=e.equal);let T;return n.set=f=>{clearTimeout(T),T=setTimeout(()=>et(a,f),t)},n.update=f=>{clearTimeout(T),T=setTimeout(()=>tt(a,f),t)},n}var un=[{value:"none",label:$localize`None`},{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],$t=[{value:"none",label:$localize`System default ($value)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"disabled",label:$localize`None / disabled`}],_e=class i{#e=R(dt);#n=R(Pt);#i=R(Mt);#t=R(x);#s=R(te);#T=R(ct);#a=R(Tt);#l=this.#a.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#n.isDarkMode;editAs=S("list");previousLang=this.#l;langCtrl=S(this.#l);powerModeCtrl=S("");usageStatistics=S("");updatingUsageStatistics=S(!1);remoteControlStatus=this.#s.status;remoteControlState=this.#s.state;updatingChannel=S(!1);updateChannel=S("");isUsingRelay=this.#T.relayIsEnabled;defaultClient=S(this.#c());usageStatisticsDisabled=v(()=>(this.#i.systemInfo()?.DefaultUsageReportLevel??"").toLowerCase()==="disabled");#S=k(()=>{let t=this.#i.systemInfo()?.DefaultUsageReportLevel??"",e=$t;e[0].label=$localize`System default (${t})`,this.usageStatisticsOptions.set(e)});remoteControlTooltip=S($localize`Disabling console control will disable remote access to this machine from the console, but will keep the
|
|
2
|
-
registration intact and allow pushing settings from the console.`);connectionStatusIndicatorTooltip=S($localize`Hides the connection status indicator in the status bar. Useful if you are not using the remote console.`);setNewChannel(t){let e=this.updateChannel();this.updateChannel.set(t),this.#t.setUpdateChannel(t).pipe(G(()=>this.updatingChannel.set(!1))).subscribe()}allowRemoteAccess=S(!1);allowedHostnames=S("");loadedAllowedHostnames=S("");updatingRemoteAccess=S(!1);updatingAllowedHosts=S(!1);updatingConsoleControl=S(!1);consoleControlDisabled=S(!1);hideConsoleConnectionStatus=this.#t.isConsoleConnectionStatusHidden;updateRemoteAccess(){let e=!this.allowRemoteAccess();this.allowRemoteAccess.set(e),this.#t.setRemoteAccessInterface(e?"any":"loopback").pipe(G(()=>this.updatingRemoteAccess.set(!1))).subscribe()}updateAllowedHostnames(){let t=this.allowedHostnames();this.updatingAllowedHosts.set(!0),this.#t.setRemoteAccessAllowedHostnames(t).pipe(G(()=>this.updatingAllowedHosts.set(!1))).subscribe()}toggleConsoleControl(){let e=!this.consoleControlDisabled();this.updatingConsoleControl.set(!0),this.#t.setDisableConsoleControl(e).pipe(G(()=>this.updatingConsoleControl.set(!1))).subscribe()}updatingDisableTrayIconLogin=S(!1);disableTrayIconLogin=S(!1);saveDisableTrayIconLogin(){let e=!this.disableTrayIconLogin();this.updatingDisableTrayIconLogin.set(!0),this.#t.setDisableTrayIconLogin(e).pipe(G(()=>this.updatingDisableTrayIconLogin.set(!1))).subscribe()}updatingHideConsoleConnectionStatus=S(!1);saveHideConsoleConnectionStatus(){let e=!this.hideConsoleConnectionStatus();this.updatingHideConsoleConnectionStatus.set(!0),this.#t.setHideConsoleConnectionStatus(e).pipe(G(()=>this.updatingHideConsoleConnectionStatus.set(!1))).subscribe()}showPassphraseForm=S(!1);isUpdating=S(!1);passphrase=S("");repeatPassphrase=S("");passwordUpdated=S(!1);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#t.setRemoteAccessPassword(this.passphrase()).pipe(G(()=>this.isUpdating.set(!1))).subscribe({next:()=>{this.showPassphraseForm.set(!1),this.passwordUpdated.set(!0),setTimeout(()=>{this.passwordUpdated.set(!1)},3e3)}}))}openPassphraseForm(){this.showPassphraseForm.set(!0)}cancelPasswordChange(){this.showPassphraseForm.set(!1)}languageOptions=S(Ot);powerModeOptions=v(()=>{let t=this.#i.systemInfo();return!t?.PowerModeProviders||t.PowerModeProviders.filter(e=>e!==""&&e!=="None").length==0?[]:t.PowerModeProviders.map(e=>({value:e==""?"default":e,label:e===""?$localize`Default`:e}))});usageStatisticsOptions=S($t);timeTypeOptions=S(un);timeType=S("none");timeValue=gn(0,300);timeRange=v(()=>this.timeType()==="h"?[1,24]:[1,60]);updateLocale(t){!t||t===""||t===this.previousLang||(this.#a.setItem("locale",t),window.location.reload())}updateTimeValue(t){this.timeValue.set(t),this.#_()}updateTimeType(t){this.timeType()==="none"&&this.timeValue.set(1),this.timeType.set(t),this.#_()}#o;#_(){this.#o&&clearTimeout(this.#o),this.#o=setTimeout(()=>{let t=this.timeValue(),e=this.timeType(),n=e==="none"||t===0?"":`${t}${e}`;n!==this.#t.serverSettings()?.["startup-delay"]&&this.#t.setStartupDelay(n).subscribe()},1e3)}updateUsageStatistics(t){let e=this.usageStatistics();!t||t===""||t===e||(this.usageStatistics.set(t),this.updatingUsageStatistics.set(!0),this.#t.setUsageReporterLevel(t).subscribe())}updatePowerMode(t){this.powerModeCtrl()!==t&&(t==="default"&&(t=""),this.#t.setPowerModeProvider(t).subscribe())}serverSettingsEffect=k(()=>{let t=this.#t.serverSettings();if(t===void 0)return;let e=t["startup-delay"],n=e.slice(-1),a=e.slice(0,-1),T=["s","m","h"];this.disableTrayIconLogin.set(t["disable-tray-icon-login"]!=="False"),this.updateChannel.set(t["update-channel"]),this.allowRemoteAccess.set(t["server-listen-interface"]==="any"),this.allowedHostnames.set(t["allowed-hostnames"]),this.loadedAllowedHostnames.set(t["allowed-hostnames"]),this.consoleControlDisabled.set(t["disable-console-control"]==="True"),this.usageStatistics.set(t["usage-reporter-level"]===""?"none":t["usage-reporter-level"]),this.timeType.set(e==""?"none":T.includes(n)?n:"none"),this.timeValue.set(e==""?0:parseInt(a));let f=t["power-mode-provider"]===""||t["power-mode-provider"]==null?"default":t["power-mode-provider"];this.powerModeCtrl.set(f)});setDarkMode(){this.#n.setDarkMode()}setLightMode(){this.#n.setLightMode()}changeDefaultClientTo(t){this.defaultClient()!==t&&(t==="ngax"?this.#e.open(le,{data:{title:$localize`Use legacy UI by default`,message:$localize`Are you sure you want to use the legacy user interface by default? This is not recommended unless you have a specific reason.`,confirmText:$localize`Use legacy UI by default`,cancelText:$localize`Cancel`},closed:e=>{e&&(window.location.href="/ngax",this.#r(t))}}):this.#r(t))}openLegacyUI(){this.#e.open(le,{data:{title:$localize`Open legacy UI`,message:$localize`Are you sure you want to open the legacy user interface? This is not recommended unless you have a specific reason.`,confirmText:$localize`Open legacy UI`,cancelText:$localize`Cancel`},closed:t=>{t&&window.open("/ngax","_blank")}})}#r(t){var e=new Date;e.setTime(e.getTime()+2160*60*60*1e3),document.cookie="default-client="+t+"; expires="+e.toUTCString()+"; path=/",this.defaultClient.set(t)}#c(){let t=document.cookie.split(";");for(let e=0;e<t.length;e++){let n=t[e].trim();if(n.startsWith("default-client="))return n.substring(15)}return"ngclient"}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=D({type:i,selectors:[["app-settings"]],decls:128,vars:44,consts:()=>{let t;t=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let n;n=$localize`Color theme`;let a;a=$localize`Customize your application theme`;let T;T=$localize`Passwords`;let f;f=$localize`Change server passphrase`;let u;u=$localize`Language`;let O;O=$localize`Select a language for the platform`;let F;F=$localize`Use legacy interface`;let re;re=$localize`Use the old user interface, not recommended unless you have a specific reason.`;let Te;Te=$localize`${"\uFFFD#46\uFFFD"}:START_TAG_SH_ICON:arrow-square-right${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_SH_ICON: Open legacy UI `;let z;z=$localize`${"\uFFFD#49\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#49\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD*50:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPAN:Default is legacy UI${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPAN:${"\uFFFD/*50:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*51:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPAN:Default is current UI${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPAN:${"\uFFFD/*51:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,z=J(z);let ce;ce=$localize`Allow remote access (requires restart)`;let Se;Se=$localize` By allowing remote access, the server listens to requests from any machine on your network. If you enable this option, make sure you are always using the computer on a secure firewall protected network. `;let de;de=$localize`Allow remote access`;let Ce;Ce=$localize`Prevent tray icon automatic log-in`;let ge;ge=$localize` By default, the tray icon will open the user interface with a token that unlocks the user interface. This ensures that you can access the user interface from the tray icon, while requiring others to enter a password. If you prefer having to type in the password, even when accessing the user interface from the tray icon, enable this option. `;let ue;ue=$localize`Prevent tray icon automatic log-in`;let pe;pe=$localize`Update channel`;let Ee;Ee=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let Ne;Ne=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let me;me=$localize`Stable`;let fe;fe=$localize`Official stable release.`;let Ie;Ie=$localize`Beta`;let Me;Me=$localize` Try out the new features that we are working on. Test a backup and restore before using this in production environments. `;let Pe;Pe=$localize` Experimental `;let he;he=$localize`Early previews of new features. Not for use with important data.`;let Oe;Oe=$localize`Canary`;let Re;Re=$localize`Builds for developers and testers only. Not for use with important data.`;let Fe;Fe=$localize`Pause after startup or hibernation`;let Ge;Ge=$localize` Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. `;let $e;$e=$localize`Advanced options`;let Ae;Ae=$localize`Connect to console`;let ye;ye=$localize`Configure console control`;let Le;Le=$localize` You can control various settings for the remote console connection. If you are not using the console, you can also hide the connection status indicator. `;let ve;ve=$localize` Remote control disabled ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let De;De=$localize` Remote control enabled ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let be;be=$localize` Console connection status is hidden ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let we;we=$localize` Console connection status is visible ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let xe;xe=$localize`Enter new password`;let ke;ke=$localize`Repeat password`;let oe;oe=$localize`Password have to be filled and have to match`;let Je;Je=$localize`Passphrase`;let Xe;Xe=$localize`Repeat passphrase`;let Ve;Ve=$localize`Cancel`;let ze;ze=$localize` Update passphrase `;let Ue;Ue=$localize` Update passphrase `;let Be;Be=$localize`Change password`;let He;He=$localize`Allowed hostnames`;let We;We=$localize` To prevent various DNS based attacks, Duplicati limits the allowed hostnames to the ones listed here. Direct IP access and localhost is always allowed. Multiple hostnames can be supplied with a semicolon separator. If any of the allowed hostnames is an asterisk (*), all hostnames are allowed and this feature is disabled. If the field is empty, only IP address and localhost access is allowed. `;let qe;qe=$localize` Update allowed hostnames `;let Ke;Ke=$localize`Power mode provider`;let je;je=$localize` The power mode provider monitors the system for when it enters a low power state and pauses Duplicati. When the system resumes, Duplicati will resume as well. Choosing the None option disables detection of low power states and Duplicati will run all the time. `;let Qe;Qe=$localize`Installed version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ye;Ye=$localize`Usage statistics`;let U;return U=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#6\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#6\uFFFD"}:CLOSE_LINK:${"[\uFFFD#7\uFFFD\uFFFD/#7\uFFFD|\uFFFD#8\uFFFD\uFFFD/#8\uFFFD]"}:LINE_BREAK:${"[\uFFFD#7\uFFFD\uFFFD/#7\uFFFD|\uFFFD#8\uFFFD\uFFFD/#8\uFFFD]"}:LINE_BREAK: All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `,U=J(U),[t,e,n,a,T,f,u,O,F,re,Te,z,ce,Se,de,Ce,ge,ue,pe,Ee,Ne,me,fe,Ie,Me,Pe,he,Oe,Re,Fe,Ge,$e,Ae,ye,Le,ve,De,be,we,Je,Xe,Ve,ze,Ue,Be,He,We,qe,Ke,je,Qe,Ye,U,[1,"content"],[1,"title"],[1,"left"],[1,"right"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","passphrase-form"],[1,"actions"],["value","value","label","label",3,"options","isClearable","inlineSearch"],["type","text",3,"ngModelChange","ngModel","ngModelOptions"],[1,"right","buttons"],["shButton","",1,"primary",3,"click"],[1,"right","remote-access-form"],[1,"primary","raised",3,"click"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised"],[1,"field-row"],[1,"raised","primary",3,"unit"],["type","range",3,"ngModelChange","min","max","disabled","ngModel","ngModelOptions"],["label","label","value","value",3,"options","isClearable"],["type","text",3,"ngModelChange","ngModel"],[1,"advanced-settings"],[1,"right","multiple"],["suffix","",3,"shTooltip"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",xe,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",ke,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"sh-success"],["suffix",""],["shButton","",3,"click"],["shButton","",1,"raised","primary",3,"loader"],["shButton","","shTooltip",oe,1,"raised","primary",3,"loader","disabled"],["shButton","",1,"raised","primary",3,"click"],["shButton","","shTooltip",oe,1,"raised","primary",3,"click","disabled"],[1,"sh-success"],["for","allowedHostnames"],["type","text","id","allowedHostnames",3,"ngModelChange","ngModel"],["type","primary"],["value","value","label","label",3,"options","isClearable"],["href","#"],["label","label","value","value",3,"options","isLoading"]]},template:function(e,n){if(e&1&&(m(0,"app-status-bar"),s(1,"div",53)(2,"header")(3,"div",54)(4,"h2"),_(5,0),o(),s(6,"p"),_(7,1),o()()(),C(8,Qt,9,2),s(9,"section")(10,"div",55)(11,"h3"),_(12,2),o(),s(13,"p"),_(14,3),o()(),s(15,"div",56)(16,"div",57)(17,"img",58),d("click",function(){return n.setLightMode()}),o(),s(18,"img",59),d("click",function(){return n.setDarkMode()}),o()()()(),s(19,"section")(20,"div",55)(21,"h3"),_(22,4),o(),s(23,"p"),_(24,5),o()(),s(25,"div",60),C(26,nn,15,7)(27,sn,4,1,"div",61),o()(),s(28,"section")(29,"div",55)(30,"h3"),_(31,6),o(),s(32,"p"),_(33,7),o()(),s(34,"div",56)(35,"sh-select",62)(36,"input",63),d("ngModelChange",function(T){return n.updateLocale(T)}),o()()()(),s(37,"section")(38,"div",55)(39,"h3"),_(40,8),o(),s(41,"p"),_(42,9),o()(),s(43,"div",64)(44,"button",65),d("click",function(){return n.openLegacyUI()}),P(45,10),m(46,"sh-icon"),h(),o(),s(47,"button",65),d("click",function(){return n.changeDefaultClientTo(n.defaultClient()==="ngclient"?"ngax":"ngclient")}),P(48,11),m(49,"sh-icon"),C(50,an,2,0,"span")(51,ln,2,0,"span"),h(),o()()(),s(52,"section")(53,"div",55)(54,"h3"),_(55,12),o(),s(56,"p"),_(57,13),o()(),s(58,"div",66)(59,"sh-toggle",67),d("click",function(){return n.updateRemoteAccess()}),s(60,"label"),_(61,14),o()(),C(62,_n,8,3),o()(),s(63,"section")(64,"div",55)(65,"h3"),_(66,15),o(),s(67,"p"),_(68,16),o()(),s(69,"div",56)(70,"sh-toggle",67),d("click",function(){return n.saveDisableTrayIconLogin()}),s(71,"label"),_(72,17),o()()()(),C(73,rn,9,5,"section"),s(74,"section")(75,"div",55)(76,"h3"),_(77,18),o(),C(78,Tn,2,1,"p"),C(79,cn,1,0,"sh-progress-bar",68),o(),s(80,"div",69)(81,"div",70),d("click",function(){return n.setNewChannel("")}),s(82,"sh-radio",71),_(83,19),o(),s(84,"p"),_(85,20),o()(),s(86,"div",70),d("click",function(){return n.setNewChannel("stable")}),s(87,"sh-radio",71),_(88,21),o(),s(89,"p"),_(90,22),o()(),s(91,"div",70),d("click",function(){return n.setNewChannel("beta")}),s(92,"sh-radio",71),_(93,23),o(),s(94,"p"),_(95,24),o()(),s(96,"div",70),d("click",function(){return n.setNewChannel("experimental")}),s(97,"sh-radio",71),_(98,25),o(),s(99,"p"),_(100,26),o()(),s(101,"div",70),d("click",function(){return n.setNewChannel("canary")}),s(102,"sh-radio",71),_(103,27),o(),s(104,"p"),_(105,28),o()()()(),s(106,"section")(107,"div",55)(108,"h3"),_(109,29),o(),s(110,"p"),_(111,30),o()(),s(112,"div",56)(113,"div",72)(114,"sh-range-slider",73)(115,"input",74),L("ngModelChange",function(T){return y(n.timeValue,T)||(n.timeValue=T),T}),d("ngModelChange",function(T){return n.updateTimeValue(T)}),o()(),s(116,"sh-select",75)(117,"input",76),d("ngModelChange",function(T){return n.updateTimeType(T)}),o(),se(118,Sn,1,1,"ng-template"),o()()()(),C(119,Cn,13,5,"section"),o(),m(120,"sh-divider"),s(121,"div",53)(122,"section")(123,"div",77)(124,"h3"),_(125,31),o(),m(126,"app-advanced-options-settings"),o()()(),m(127,"sh-divider")),e&2){let a,T,f;l(8),g(n.isUsingRelay()?-1:8),l(9),I("active",!n.isDarkMode()),l(),I("active",n.isDarkMode()),l(8),g(n.showPassphraseForm()?26:27),l(9),N("options",n.languageOptions())("isClearable",!1)("inlineSearch",!0),l(),N("ngModel",n.langCtrl())("ngModelOptions",X(42,ie)),l(14),g(n.defaultClient()==="ngax"?50:51),l(9),I("active",n.allowRemoteAccess()),l(3),g(n.allowRemoteAccess()?62:-1),l(8),I("active",n.disableTrayIconLogin()),l(3),g(n.powerModeOptions().length>0?73:-1),l(5),g((a=n.sysinfo())!=null&&a.ServerVersion?78:-1),l(),g(n.updatingChannel()?79:-1),l(3),I("active",n.updateChannel()===""),l(),B((T=n.sysinfo())==null?null:T.DefaultUpdateChannel),H(83),l(2),B((f=n.sysinfo())==null?null:f.ServerVersionType),H(85),l(2),I("active",n.updateChannel()==="stable"),l(5),I("active",n.updateChannel()==="beta"),l(5),I("active",n.updateChannel()==="experimental"),l(5),I("active",n.updateChannel()==="canary"),l(12),N("unit",n.timeType()==="none"?"s":n.timeType()),l(),N("min",n.timeRange()[0])("max",n.timeRange()[1])("disabled",n.timeType()==="none"),A("ngModel",n.timeValue),N("ngModelOptions",X(43,ie)),l(),N("options",n.timeTypeOptions())("isClearable",!1),l(),N("ngModel",n.timeType()),l(2),g(n.usageStatisticsDisabled()?-1:119)}},dependencies:[Q,q,St,K,j,Y,ht,ne,V,w,pt,Et,ut,mt,ft,ee,b,gt,Z,Nt],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0;background:var(--base-1);border-bottom:1px solid var(--base-4)}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-4)}section[_ngcontent-%COMP%]:first-of-type{border-top:0}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] sh-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.passphrase-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:1rem}.passphrase-form[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.remote-access-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:15rem;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-8)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] sh-radio[_ngcontent-%COMP%]{color:var(--base-8);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-9)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{flex:1 0}.advanced-settings[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr;gap:1rem}.right.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1rem}.right.multiple[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}"],changeDetection:0})};export{gn as debounceSignal,_e as default};
|