@duplicati/ngclient 0.0.12 → 0.0.13
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-2LTGXEZS.js +1 -0
- package/{chunk-V7LHB36E.js → chunk-3B6RZWP4.js} +1 -1
- package/chunk-3DBUGAIF.js +1 -0
- package/chunk-3SP3MQEU.js +1 -0
- package/chunk-4OR2MBXM.js +1 -0
- package/{chunk-P4AWKIXG.js → chunk-6PJU5W5X.js} +1 -1
- package/chunk-74EYKZJR.js +1 -0
- package/chunk-7CGTOI24.js +1 -0
- package/chunk-7ROMUYYO.js +1 -0
- package/chunk-7YI4IDWY.js +1 -0
- package/chunk-7YM6RN2G.js +1 -0
- package/chunk-A2PI66LB.js +1 -0
- package/chunk-AVWHS36O.js +1 -0
- package/chunk-B42N6RQ3.js +1 -0
- package/{chunk-K4KGTWQK.js → chunk-BDBR5EDG.js} +1 -1
- package/{chunk-K3HFPUKT.js → chunk-BRVLVIBB.js} +1 -1
- package/chunk-CWAAKGM6.js +1 -0
- package/chunk-ER25OIRY.js +1 -0
- package/chunk-HAOKXZHF.js +1 -0
- package/{chunk-TIGGJ4KF.js → chunk-ICCENBZO.js} +1 -1
- package/chunk-KLPRJO2S.js +1 -0
- package/chunk-MYQPVSUP.js +1 -0
- package/chunk-NGPWOMCW.js +8 -0
- package/chunk-NSHVJHI5.js +1 -0
- package/chunk-NVFX5EQI.js +1 -0
- package/{chunk-OYQELNXA.js → chunk-OI46JH74.js} +2 -2
- package/{chunk-5Y47Y3RB.js → chunk-Q3B3QVNE.js} +1 -1
- package/chunk-QROBYUJD.js +2 -0
- package/{chunk-JDCFQ6PF.js → chunk-QVTIOQU4.js} +1 -1
- package/{chunk-G3ZRG5MJ.js → chunk-RH5CENQ7.js} +1 -1
- package/chunk-RIVCLGIC.js +1 -0
- package/chunk-RK3NUMZK.js +1 -0
- package/chunk-RL7JYJ4S.js +1 -0
- package/chunk-S4UXVQU2.js +1 -0
- package/chunk-SS4RWMEQ.js +1 -0
- package/chunk-SWUZR64I.js +1 -0
- package/chunk-TXPM7OPP.js +1 -0
- package/chunk-VJK4WSMT.js +1 -0
- package/chunk-WH7DPJOS.js +1 -0
- package/chunk-WQPTWFXA.js +1 -0
- package/chunk-XYN4OGS4.js +1 -0
- package/chunk-ZBL4ZWSP.js +1 -0
- package/chunk-ZUISIMKR.js +1 -0
- package/chunk-ZUVMWAQY.js +1 -0
- package/index.html +1 -1
- package/main-RMFQXRTZ.js +1 -0
- package/package.json +1 -1
- package/chunk-2AXNYUNT.js +0 -2
- package/chunk-3E64B4PC.js +0 -1
- package/chunk-4RT7DNKB.js +0 -1
- package/chunk-5SGHSZAK.js +0 -1
- package/chunk-76OEVFIM.js +0 -1
- package/chunk-AFUS3PYG.js +0 -1
- package/chunk-C52YH32J.js +0 -1
- package/chunk-CQGUEKNU.js +0 -1
- package/chunk-DCCSCFRQ.js +0 -1
- package/chunk-DJSNG6NF.js +0 -1
- package/chunk-E66JBJTH.js +0 -1
- package/chunk-H2IAZHJK.js +0 -1
- package/chunk-IDQOMEFA.js +0 -1
- package/chunk-L4EVZZOM.js +0 -1
- package/chunk-LNCAETYE.js +0 -1
- package/chunk-LSGSCARA.js +0 -1
- package/chunk-M7I5RH5L.js +0 -1
- package/chunk-MFISBPKS.js +0 -1
- package/chunk-MWB5FR2K.js +0 -1
- package/chunk-OM6QOR75.js +0 -1
- package/chunk-RBNO3K72.js +0 -8
- package/chunk-SQQXOHJO.js +0 -1
- package/chunk-SYBUINNV.js +0 -1
- package/chunk-UDWDXUOB.js +0 -1
- package/chunk-VOMOARSI.js +0 -1
- package/chunk-VSPW7AWV.js +0 -1
- package/chunk-WGKAMO4L.js +0 -1
- package/chunk-WU4K3UNC.js +0 -1
- package/chunk-YJ2MWFHK.js +0 -1
- package/chunk-YQDGW52C.js +0 -1
- package/chunk-ZE33Q6DJ.js +0 -1
- package/chunk-ZXOEQDPM.js +0 -1
- package/chunk-ZYCMR5VM.js +0 -1
- package/main-XRAHISLJ.js +0 -1
package/chunk-LNCAETYE.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$a as I,$b as k,Ab as V,Bb as L,Db as b,Eb as J,Fb as K,Jb as m,Oa as _,R as $,Ra as U,Ua as c,Va as F,Wa as D,X as T,Z as f,a as B,b as R,bb as X,bc as O,cb as W,db as H,eb as q,fb as A,gb as z,ha as d,hb as G,ia as u,ib as Y,jb as l,kb as a,kc as Z,lb as M,ma as Q,pb as E,qb as S,rb as p,sa as N,sb as g,ta as v,tb as r,ua as P}from"./chunk-RBNO3K72.js";var y=["*"];var te=["spk-button",""],ie=["inputWrap"];var ne=[[["label"]],[["","spkPrefix",""]],[["","spkTextPrefix",""]],[["input"]],[["textarea"]],[["","spkTextSuffix",""]],[["","spkSuffix",""]],[["","spkError",""]],[["","spkHint",""]]],oe=["label","[spkPrefix]","[spkTextPrefix]","input","textarea","[spkTextSuffix]","[spkSuffix]","[spkError]","[spkHint]"],se=["actionRef"],re=["menuRef"],le=["*",[["","menu",""]]],ae=["*","[menu]"];var ce=["optionsRef"],pe=["formFieldWrapper"],de=[[["label"]],[["input"]],[["","deselect-indicator",""]],[["","search-indicator",""]],[["","open-indicator",""]],[["","placeholder-text",""]],[["","options",""]]],ue=["label","input","[deselect-indicator]","[search-indicator]","[open-indicator]","[placeholder-text]","[options]"];function he(n,x){if(n&1){let e=E();l(0,"spk-chip",11),S("click",function(i){let o=d(e).$implicit,s=p(3);return u(s.toggleOption(o,i))}),b(1),l(2,"spk-icon"),b(3,"x-circle"),a()()}if(n&2){let e,t=x.$implicit,i=p(3);X("ngClass",i.chipClass()),_(),K(" ",(e=(e=i.displayFn())==null?null:e(t))!==null&&e!==void 0?e:t," ")}}function fe(n,x){if(n&1&&G(0,he,4,2,"spk-chip",10,z),n&2){let e=p(2);Y(e.inputValue().split(","))}}function me(n,x){if(n&1&&(l(0,"div",5),I(1,fe,2,0),a()),n&2){let e=p();_(),A(e.inputValue().length>0?1:-1)}}function ge(n,x){if(n&1&&(l(0,"div",5),b(1),a()),n&2){let e=p();_(),J(e._displayValue())}}function ve(n,x){if(n&1){let e=E();l(0,"div",12),S("click",function(i){d(e);let o=p();return u(o.deselect(i))}),r(1,2),l(2,"spk-icon",13),b(3,"x-circle"),a()()}}function Se(n,x){n&1&&(l(0,"div",7),r(1,3),l(2,"spk-icon",13),b(3,"magnifying-glass"),a()())}function Ce(n,x){if(n&1&&(l(0,"div",14),r(1,4),l(2,"spk-icon",13),b(3,"caret-down"),a()()),n&2){let e=p();H("open",e.isOpen())}}function _e(n,x){if(n&1){let e=E();l(0,"div",15,2)(2,"div",16),S("click",function(){d(e);let i=p();return u(i.close())}),a(),l(3,"div",17)(4,"div",18),r(5,5),a(),r(6,6),a()()}if(n&2){let e=p();q(e.optionsStyle()),H("active",e.delayedIsOpen())}}var ke=["dragImageElement"],ye=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],xe=["[sidenav]","[sidenav-closed-topbar]","*"];function we(n,x){if(n&1){let e=E();l(0,"div",7),S("drop",function(i){d(e);let o=p();return u(o.drop(i))})("dragover",function(i){d(e);let o=p();return u(o.dragOver(i))})("dragenter",function(){d(e);let i=p();return u(i.dragEnter())})("dragleave",function(){d(e);let i=p();return u(i.dragLeave())}),a()}}function De(n,x){if(n&1){let e=E();l(0,"div",8),S("dragstart",function(i){d(e);let o=p();return u(o.dragStart(i))})("dragend",function(i){d(e);let o=p();return u(o.dragEnd(i))})("drag",function(i){d(e);let o=p();return u(o.drag(i))})("touchstart",function(i){d(e);let o=p();return u(o.touchStart(i))})("touchmove",function(i){d(e);let o=p();return u(o.touchMove(i))})("touchend",function(i){d(e);let o=p();return u(o.touchEnd(i))})("touchcancel",function(i){d(e);let o=p();return u(o.touchCancel(i))}),a()}}var ee=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-icon"]],standalone:!0,features:[m],ngContentSelectors:y,decls:1,vars:0,template:function(t,i){t&1&&(g(),r(0))},encapsulation:2,changeDetection:0})}}return n})();var Ye=(()=>{class n{constructor(){this.alertHistory=c([]),this.alertHistoryIsOpen=c(!1),this.alertHistoryIsHidden=c(!0)}error(e){this.addAlert({type:"error",title:e??"An error occured"})}success(e){this.addAlert({type:"success",title:e})}question(e){this.addAlert({type:"question",title:e})}warning(e){this.addAlert({type:"warning",title:e})}info(e){this.addAlert({type:"primary",title:e})}addAlert(e){let t=crypto.randomUUID();this.alertHistory.update(i=>[R(B({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>R(B({},o),{animateIn:o.id===t?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(i=>R(B({},i),{animateOut:i.id===e?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(t=>t.filter(i=>i.id!==e))},300)}hideAlert(e){this.alertHistory.update(t=>t.map(i=>R(B({},i),{isOpen:i.id===e?!1:i.isOpen})))}setHidden(e){this.alertHistoryIsHidden.set(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Je=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-button-group"]],standalone:!0,features:[m],ngContentSelectors:y,decls:1,vars:0,template:function(t,i){t&1&&(g(),r(0))},encapsulation:2,changeDetection:0})}}return n})(),Ke=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["","spk-button",""]],standalone:!0,features:[m],attrs:te,ngContentSelectors:y,decls:1,vars:0,template:function(t,i){t&1&&(g(),r(0))},encapsulation:2,changeDetection:0})}}return n})(),Ze=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-card"]],standalone:!0,features:[m],ngContentSelectors:y,decls:1,vars:0,template:function(t,i){t&1&&(g(),r(0))},encapsulation:2,changeDetection:0})}}return n})(),et=(()=>{class n{#e=T(P);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-checkbox"]],hostBindings:function(t,i){t&1&&S("click",function(){return i.onClick()})},standalone:!0,features:[m],ngContentSelectors:y,decls:4,vars:0,consts:[[1,"box"],[1,"inherit"]],template:function(t,i){t&1&&(g(),l(0,"div",0)(1,"spk-icon",1),b(2,"check"),a()(),r(3))},dependencies:[ee],encapsulation:2,changeDetection:0})}}return n})(),Ee=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-chip"]],standalone:!0,features:[m],ngContentSelectors:y,decls:1,vars:0,template:function(t,i){t&1&&(g(),r(0))},encapsulation:2,changeDetection:0})}}return n})();var be=(()=>{class n{#e=T(P);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}ngOnInit(){let e=CSS.supports("field-sizing","content"),t=this.#e.nativeElement.querySelector("textarea");if(!e&&t!==null){let h=function(){s.style.height="auto",s.style.height=s.scrollHeight+"px"},w=function(){window.setTimeout(h,0)};var i=h,o=w;let s=this.#e.nativeElement.querySelector("textarea");s.addEventListener("change",h),s.addEventListener("cut",w),s.addEventListener("paste",w),s.addEventListener("drop",w),s.addEventListener("keydown",w),s.focus(),s.select(),h()}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-form-field"]],hostBindings:function(t,i){t&1&&S("click",function(){return i.onClick()})},standalone:!0,features:[m],ngContentSelectors:oe,decls:16,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-spacer"],[1,"suffix-spacer"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(t,i){t&1&&(g(ne),r(0),l(1,"div",0)(2,"div",1),r(3,1),r(4,2),a(),M(5,"div",2),r(6,3),r(7,4),r(8,5),M(9,"div",3),r(10,6),a(),l(11,"div",4)(12,"div",5),r(13,7),a(),l(14,"div",6),r(15,8),a()())},encapsulation:2,changeDetection:0})}}return n})(),tt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-list"]],standalone:!0,features:[m],ngContentSelectors:y,decls:1,vars:0,template:function(t,i){t&1&&(g(),r(0))},encapsulation:2,changeDetection:0})}}return n})(),it=(()=>{class n{constructor(){this.injector=T(Q),this.#e=8,this.above=v(!1),this.right=v(!1),this.closeAction=N(),this.isActive=D(!1),this.optionInFocus=D(null),this.actionRef=F.required("actionRef"),this.menuRef=F.required("menuRef"),this.menuEl=k(()=>this.menuRef()?.nativeElement),this.menuStyle=c({left:"0px",top:"0px"}),this.optionsElTrigger=c(!1),this.options=k(()=>{let e=this.menuEl().querySelectorAll("[option]:not([disabled])");return this.optionsElTrigger(),this.isActive(),Array.from(e)}),this.#t=c(null),this.optionElementInFocus=D(null),this.#l=c(null),this.selectedOption=D(null),this.selectedOptionIndex=D(null),this.#r=document.getElementsByTagName("body")[0],this.optionInFocusEffect=O(()=>{if(this.optionInFocus()===null&&this.#t()){this.#t()?.classList.remove("focused");return}if(this.options().length===0||this.optionInFocus()===null)return;let e=this.options().at(this.optionInFocus());this.#t()&&this.#t()?.classList.remove("focused"),e?(e.classList.add("focused"),e.scrollIntoView({block:"nearest"}),this.#t.set(e),this.optionElementInFocus.set(e)):this.optionElementInFocus.set(null)},{allowSignalWrites:!0,injector:this.injector}),this.controller=null,this.whenActive=O(()=>{this.isActive()?(this.setNewController(),this.#a(),this.calculateMenuPosition(),setTimeout(()=>{let e=this.options().findIndex(t=>t.getAttribute("value")===this.selectedOption()?.getAttribute("value"));this.optionInFocus()===null&&this.optionInFocus.set(e>-1?e:0)},0),window.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:this.controller?.signal}),window.addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:this.controller?.signal}),window.addEventListener("keydown",e=>{e.key==="ArrowDown"?this.optionInFocus()===null||this.optionInFocus()===this.options().length-1?this.optionInFocus.set(0):this.optionInFocus.set(this.optionInFocus()+1):e.key==="ArrowUp"?this.optionInFocus()===null||this.optionInFocus()===0?this.optionInFocus.set(this.options().length-1):this.optionInFocus.set(this.optionInFocus()-1):e.key==="Enter"?(this.optionElementInFocus()&&this.selectOption(this.optionElementInFocus()),this.close("selected")):e.key==="Escape"?this.close("closed"):setTimeout(()=>{this.optionInFocus.set(0),this.optionsElTrigger.set(!this.optionsElTrigger())},0)},{signal:this.controller?.signal})):this.#s()},{allowSignalWrites:!0,injector:this.injector})}#e;#t;#l;#r;setNewController(){this.controller?.abort(),this.controller=new AbortController}deselectOption(){this.#l.set(null),this.selectedOption.set(null),this.selectedOptionIndex.set(null)}setSelectedOption(e){let t=this.options().find(i=>i.hasAttribute("value")&&i.getAttribute("value")===e);t&&this.selectOption(t)}selectOption(e){this.selectedOption()&&this.#l.set(this.selectedOption()),this.selectedOption.set(e),this.selectedOptionIndex.set(this.options().indexOf(e)),e.dispatchEvent(new Event("click",{bubbles:!0,cancelable:!0}))}selectCurrentOption(){let e=this.selectedOptionIndex(),t=this.options().at(e);t&&this.selectOption(t)}#a(){this.#r.appendChild(this.menuEl())}#s(){this.#r.removeChild(this.menuEl())}ngOnInit(){this.#a()}toggle(){this.isActive.set(!this.isActive())}close(e="closed"){this.controller?.abort(),this.isActive.set(!1),this.closeAction.emit(e)}calculateMenuPosition(){if(this.isActive()){let e=this.actionRef()?.nativeElement.getBoundingClientRect(),t=this.menuEl().getBoundingClientRect(),i=e.left,o=e.bottom,s=i,h=o+this.#e,w=s+t.width>window.innerWidth,j=h+t.height>window.innerHeight;if(this.above()){let C=e.top-t.height-this.#e;C>=0&&(h=C)}else j&&(h=e.top-t.height-this.#e);if(this.right()){let C=e.right-t.width;C>=0&&(s=C)}else w&&(h=j?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:h+"px"})}}ngOnDestroy(){this.#r.contains(this.menuEl())&&this.#s()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-menu"]],viewQuery:function(t,i){t&1&&(V(i.actionRef,se,5),V(i.menuRef,re,5)),t&2&&L(2)},hostVars:2,hostBindings:function(t,i){t&2&&H("active",i.isActive())},inputs:{above:[1,"above"],right:[1,"right"],isActive:[1,"isActive"],optionInFocus:[1,"optionInFocus"],optionElementInFocus:[1,"optionElementInFocus"],selectedOption:[1,"selectedOption"],selectedOptionIndex:[1,"selectedOptionIndex"]},outputs:{closeAction:"closeAction",isActive:"isActiveChange",optionInFocus:"optionInFocusChange",optionElementInFocus:"optionElementInFocusChange",selectedOption:"selectedOptionChange",selectedOptionIndex:"selectedOptionIndexChange"},standalone:!0,features:[m],ngContentSelectors:ae,decls:8,vars:8,consts:[["actionRef",""],["menuRef",""],[1,"action",3,"click"],[1,"sparkle-popup-menu"],[1,"sparkle-menu-backdrop",3,"click"],[1,"sparkle-options",3,"click"]],template:function(t,i){if(t&1){let o=E();g(le),l(0,"div",2,0),S("click",function(){return d(o),u(i.toggle())}),r(2),a(),l(3,"div",3,1)(5,"div",4),S("click",function(){return d(o),u(i.close("closed"))}),a(),l(6,"div",5),S("click",function(){return d(o),u(i.close("selected"))}),r(7,1),a()()}t&2&&(_(3),q(i.menuStyle()),H("right",i.right())("above",i.above())("active",i.isActive()))},encapsulation:2,changeDetection:0})}}return n})(),nt=(()=>{class n{constructor(){this.value=v(void 0)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},standalone:!0,features:[m],decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(t,i){t&1&&M(0,"div",0),t&2&&W("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),ot=(()=>{class n{#e=T(P);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-radio"]],hostBindings:function(t,i){t&1&&S("click",function(){return i.onClick()})},standalone:!0,features:[m],ngContentSelectors:y,decls:2,vars:0,consts:[[1,"radio"]],template:function(t,i){t&1&&(g(),M(0,"div",0),r(1))},encapsulation:2,changeDetection:0})}}return n})();var st=(()=>{class n{constructor(){this.value=v(null)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-option"]],inputs:{value:[1,"value"]},standalone:!0,features:[m],ngContentSelectors:y,decls:1,vars:0,template:function(t,i){t&1&&(g(),r(0))},encapsulation:2,changeDetection:0})}}return n})(),Oe=["primary","accent","tertiary","warn","success"],rt=(()=>{class n{constructor(){this.#e=8,this.#t=T(U),this.#l=document.getElementsByTagName("body")[0],this.#r=T(P),this.optionsRef=F("optionsRef"),this.formFieldWrapperRef=F.required("formFieldWrapper"),this.inputWrapRef=F.required("inputWrap"),this.inputValue=D(""),this.selectMultiple=v(!1),this.hideClearButton=v(!1),this.displayValue=v(""),this.displayFn=v(null),this.above=v(!1),this.right=v(!1),this.#a=c(!1),this.#s=c(!1),this.#i=c(null),this.#c=c(""),this.#d=c(-1),this.#p=c(!1),this.#n=c(-1),this.isOpen=c(!1),this.delayedIsOpen=c(!1),this.optionsStyle=c({left:"0px",top:"0px"}),this.isSearchInput=k(()=>this.#i()?.type==="search"),this.optionsEl=k(()=>this.optionsRef()?.nativeElement),this.#o=k(()=>{this.#s();let e=this.optionsRef()?.nativeElement.querySelectorAll("option"),t=this.optionsRef()?.nativeElement.querySelectorAll("spk-option");return e?.length?Array.from(e):t?.length?Array.from(t):[]}),this.chipClass=k(()=>Array.from(this.#r.nativeElement.classList).filter(e=>Oe.includes(e)).join(" ")),this._displayValue=k(()=>this.displayFn()?this.displayFn()(this.inputValue()):this.displayValue()??this.inputValue()),this.selectedOption=k(()=>this.#c()?this.#o().find(e=>e.getAttribute("value")===this.#c()):null),this.optionsOpenController=null,this.inputController=null,this.clickController=null,this.inputAbortController=null,this.#g=O(()=>{this.#a();let e=this.#r.nativeElement.querySelector("input");e&&(this.#D(e),e.addEventListener("inputValueChanged",t=>{this.inputValue.set(t.detail.value),this.selectMultiple()&&this.#f()}),this.#i.set(e),e.autocomplete="off",typeof e.value=="string"&&this.inputValue.set(e.value))},{allowSignalWrites:!0}),this.#v=O(()=>{this.inputController&&this.inputController.abort(),this.inputController=new AbortController;let e=this.#i();e&&(e.addEventListener("focus",t=>this.open(t),{signal:this.inputController?.signal}),e.addEventListener("keydown",t=>{(this.selectMultiple()||!this.isSearchInput())&&t.preventDefault(),t.key==="Escape"?this.close():t.key==="ArrowDown"?this.#n()===null||this.#n()<0||this.#n()===this.#o().length-1?this.#n.set(this.#d()):this.#n.set(this.#n()+1):t.key==="ArrowUp"?this.#n()===null||this.#n()<0||this.#n()===0?this.#n.set(this.#o().length-1):this.#n.set(this.#n()-1):t.key==="Enter"?this.#n()>-1&&this.selected(this.getOptionElement(this.#n())):t.key==="Tab"&&this.close(!0)},{signal:this.inputController?.signal}))}),this.#S=O(()=>{this.isOpen()&&this.#y(),setTimeout(()=>{this.delayedIsOpen.set(this.isOpen())},0)}),this.#C=O(()=>{let e=this.inputValue();this.#i()&&(this.#i().value=e??"",this.#i().dispatchEvent(new Event("input")))},{allowSignalWrites:!0}),this.#u=new MutationObserver(e=>{for(var t of e)t.type=="childList"&&t.target.classList.contains("input")&&this.#a.set(!this.#a()),t.type==="attributes"&&t.attributeName})}#e;#t;#l;#r;#a;#s;#i;#c;#d;#p;#n;#o;#g;#v;#S;#C;ngOnInit(){this.#m(),this.#u.observe(this.inputWrapRef().nativeElement,{attributes:!0,childList:!0,subtree:!0})}getOptionElement(e){return this.#o()[e]}deselect(e,t=!1){e?.stopPropagation(),this.#i()&&(this.#i().value="",this.#i().dispatchEvent(new Event("input"))),this.#n.set(this.#d()),this.#p.set(!1),(t||!this.selectMultiple())&&(this.isOpen.set(!1),this.#i()?.blur())}selected(e){if(!e)return;let t=(e.getAttribute("value")||e.getAttribute("ng-reflect-value"))??"",i=this.#o().indexOf(e);if(e.hasAttribute("deselect"))return this.deselect(null,!0);if(this.#n.set(i),e&&!this.selectMultiple()){this.inputValue.set(t);for(let o=0;o<this.#o().length;o++){let s=this.#o()[o];s.getAttribute("value")===t?this.#t.setAttribute(s,"selected","selected"):this.#t.removeAttribute(s,"selected")}}else e&&this.selectMultiple()&&(this.inputValue().includes(t)?(this.#t.removeAttribute(e,"selected"),this.toggleOption(t)):(this.#t.setAttribute(e,"selected","selected"),this.inputValue.set(this.inputValue().length?`${this.inputValue()},${t}`:t)));this.#p.set(!1),this.selectMultiple()?setTimeout(()=>this.#i()?.focus()):(this.isOpen.set(!1),this.#i()?.blur())}toggleOption(e,t){t&&(t.preventDefault(),t.stopPropagation()),this.inputValue.set(this.inputValue().startsWith(e+",")?this.inputValue().replace(e+",",""):this.inputValue().includes(","+e)?this.inputValue().replace(","+e,""):this.inputValue().replace(e,""))}close(e=!1){this.isSearchInput()&&this.#c()&&setTimeout(()=>this.inputValue.set(this.#c())),this.#w(),this.isOpen.set(!1),this.#p.set(!1),e||this.#i()?.blur(),this.#b(),this.#k()}open(e){e.preventDefault(),this.isOpen.set(!0),this.#m(),this.isSearchInput()&&!this.#p()?(this.#c.set(this.inputValue()),this.inputValue.set(""),this.#i().focus(),this.#i().value="",this.#i().dispatchEvent(new Event("input")),this.#n.set(-1)):(this.isSearchInput()||this.selectMultiple())&&this.#i().focus(),this.#p.set(!0),this.#E(),this.#_(),this.#s.set(!this.#s()),this.#f()}#_(){this.clickController&&this.clickController.abort(),this.clickController=new AbortController,window.addEventListener("click",e=>{if(!e.target)return;let t=e.target.closest("option"),i=e.target.closest("spk-option"),o=t||i;this.#o().indexOf(o)>-1&&this.selected(o)},{signal:this.clickController?.signal})}#k(){this.clickController&&this.clickController.abort()}#y(){for(let e=0;e<this.#o().length;e++){let t=this.#o()[e];this.#t.removeClass(t,"focused"),this.#n()===e&&(this.#t.addClass(t,"focused"),t.scrollIntoView({block:"center"}))}}#f(){let e=this.#i();if(!e)return;this.inputValue.set(e.value);let t=e.value.split(",");setTimeout(()=>{let i=this.#o();for(let o=0;o<i.length;o++){let s=i[o].getAttribute("ng-reflect-value");s&&t.includes(s)?this.#t.setAttribute(i[o],"selected","selected"):this.#t.removeAttribute(i[o],"selected")}})}#m(){setTimeout(()=>{this.optionsEl()&&(this.#t.appendChild(this.#l,this.optionsEl()),this.#d.set(this.#x()),this.#s.set(!this.#s()))})}#x(){let e=this.#o();for(let t=0;t<e.length;t++)if(!e[t].hasAttribute("deselect"))return t;return-1}#w(){setTimeout(()=>{this.optionsEl()&&(this.#t.removeChild(this.#l,this.optionsEl()),this.#s.set(!this.#s()))})}#u;#D(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(o),t}}),e}#E(){this.optionsOpenController=new AbortController,setTimeout(()=>this.#h()),window.addEventListener("resize",()=>this.#h(),{signal:this.optionsOpenController?.signal}),window.addEventListener("scroll",()=>this.#h(),{signal:this.optionsOpenController?.signal})}#b(){this.optionsOpenController&&this.optionsOpenController.abort()}#h(){if(this.optionsEl()){let e=this.formFieldWrapperRef()?.nativeElement.getBoundingClientRect(),t=this.optionsEl().getBoundingClientRect(),i=e.left,o=e.bottom,s=i,h=o+this.#e,w=s+t.width>window.innerWidth,j=h+t.height>window.innerHeight;if(this.above()){let C=e.top-t.height-this.#e;C>=0&&(h=C)}else j&&(h=e.top-t.height-this.#e);if(this.right()){let C=e.right-t.width;C>=0&&(s=C)}else w&&(h=j?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.optionsStyle.set({left:s+"px",top:h+"px"})}}ngOnDestroy(){this.clickController&&this.clickController.abort(),this.inputController&&this.inputController.abort(),this.optionsOpenController&&this.optionsOpenController.abort(),this.#u.disconnect()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-select"]],viewQuery:function(t,i){t&1&&(V(i.optionsRef,ce,5),V(i.formFieldWrapperRef,pe,5),V(i.inputWrapRef,ie,5)),t&2&&L(3)},inputs:{inputValue:[1,"inputValue"],selectMultiple:[1,"selectMultiple"],hideClearButton:[1,"hideClearButton"],displayValue:[1,"displayValue"],displayFn:[1,"displayFn"],above:[1,"above"],right:[1,"right"]},outputs:{inputValue:"inputValueChange"},standalone:!0,features:[m],ngContentSelectors:ue,decls:13,vars:3,consts:[["formFieldWrapper",""],["inputWrap",""],["optionsRef",""],[3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"display-value"],["spkSuffix","",1,"deselect-indicator"],["spkSuffix","",1,"search-indicator"],["spkSuffix","",1,"select-open-indicator",3,"open"],[1,"sparkle-popup-menu",3,"active","style"],[1,"small","simple",3,"ngClass"],[1,"small","simple",3,"click","ngClass"],["spkSuffix","",1,"deselect-indicator",3,"click"],[1,"default-indicator"],["spkSuffix","",1,"select-open-indicator"],[1,"sparkle-popup-menu"],[1,"sparkle-options-backdrop",3,"click"],[1,"sparkle-options"],[1,"sparkle-options-placerholder"]],template:function(t,i){if(t&1){let o=E();g(de),l(0,"div",null,0)(2,"spk-form-field",3),S("click",function(h){return d(o),u(i.open(h))}),r(3,0,["ngProjectAs","label",5,["label"]]),l(4,"div",4,1),I(6,me,2,1,"div",5)(7,ge,2,1,"div",5),r(8,1),a(),I(9,ve,4,0,"div",6)(10,Se,4,0,"div",7)(11,Ce,4,2,"div",8),a()(),I(12,_e,7,4,"div",9)}t&2&&(_(6),A(i.selectMultiple()?6:i._displayValue()&&i.isSearchInput()&&!i.isOpen()||i._displayValue()&&!i.isSearchInput()?7:-1),_(3),A((i.inputValue()&&!i.isOpen()&&i.inputValue().length>0||i.selectedOption())&&!i.hideClearButton()?9:i.isSearchInput()&&!i.selectedOption()?10:11),_(3),A(i.isOpen()?12:-1))},dependencies:[be,ee,Ee,Z],encapsulation:2,changeDetection:0})}}return n})(),lt=(()=>{class n{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=v(!1),this.isOpen=D(!1),this.type=v(""),this.dragImageElement=F.required("dragImageElement"),this.dragIsEnding=c(!1),this.dragIsOnScreen=c(!0),this.isDragging=c(!1),this.dragPositionX=c(0),this.dragActualPositionX=k(()=>{let e=this.dragPositionX(),t=.32;return e>this.openWidthTreshold?this.openWidthTreshold+(e-this.openWidthTreshold)*t:e}),this.draggingStyle=k(()=>this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()&&this.type()==="overlay"?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=O(()=>{this.isDragging()&&document.body.classList.add("dragging")})}drop(e){e.stopPropagation(),this.#e(e.clientX)}#e(e){this.isDragging.set(!1),e<=0?this.isOpen.set(!1):e>this.openWidthTreshold?this.isOpen.set(!0):e<this.openWidthTreshold&&(!this.isOpen()&&e<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(e){(e.clientX<0||!this.dragIsOnScreen())&&this.#e(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(e){e.preventDefault(),this.#t(e)}dragStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#t(e)}#t(e){e.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.clientX)}),this.#t(e)}touchStart(e){e.stopPropagation(),this.isDragging.set(!0)}touchMove(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.touches[0].clientX)})}touchEnd(e){e.stopPropagation(),this.#e(e.changedTouches[0].clientX)}touchCancel(e){e.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-sidenav"]],viewQuery:function(t,i){t&1&&V(i.dragImageElement,ke,5),t&2&&L()},hostVars:10,hostBindings:function(t,i){t&2&&H("open",i.isOpen())("closed",!i.isOpen())("overlay",i.type()==="overlay")("simple",i.type()==="simple")("is-dragging",i.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"],type:[1,"type"]},outputs:{isOpen:"isOpenChange"},standalone:!0,features:[m],ngContentSelectors:xe,decls:11,vars:4,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,i){t&1&&(g(ye),M(0,"div",1,0),I(2,we,1,0,"div",2),l(3,"div",3),r(4),a(),l(5,"div",4),I(6,De,1,0,"div",5),l(7,"div",6),r(8,1),a(),l(9,"main"),r(10,2),a()()),t&2&&(_(2),A(i.isDragging()?2:-1),_(3),W("transform",i.draggingStyle()),_(),A(i.disableDrag()?-1:6))},encapsulation:2,changeDetection:0})}}return n})();var at=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-stepper"]],standalone:!0,features:[m],ngContentSelectors:y,decls:1,vars:0,template:function(t,i){t&1&&(g(),r(0))},encapsulation:2,changeDetection:0})}}return n})();var ct=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-toggle"]],standalone:!0,features:[m],ngContentSelectors:y,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(t,i){t&1&&(g(),l(0,"div",0),M(1,"div",1),a(),r(2))},encapsulation:2,changeDetection:0})}}return n})();export{ee as a,Ye as b,Je as c,Ke as d,Ze as e,et as f,Ee as g,be as h,tt as i,it as j,nt as k,ot as l,st as m,rt as n,lt as o,at as p,ct as q};
|
package/chunk-LSGSCARA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as me}from"./chunk-5Y47Y3RB.js";import{a as le}from"./chunk-K3HFPUKT.js";import{a as re}from"./chunk-TIGGJ4KF.js";import"./chunk-JDCFQ6PF.js";import{a as ae}from"./chunk-CQGUEKNU.js";import"./chunk-V7LHB36E.js";import{b as se}from"./chunk-P4AWKIXG.js";import"./chunk-WU4K3UNC.js";import{b as L,d as $,e as W,f as q,h as z,i as j,j as H,l as J,m as K,n as Q,o as X,p as Y,q as Z}from"./chunk-C52YH32J.js";import{d as ee,h as te,l as ne,n as ie}from"./chunk-LNCAETYE.js";import{a as oe}from"./chunk-SYBUINNV.js";import{$a as O,$b as G,Db as r,Eb as E,Fb as b,Jb as A,L as v,La as D,Oa as s,Ua as h,X as y,Z as I,bb as S,bc as B,db as M,f as F,fb as C,gb as x,ha as u,hb as T,ia as d,ib as k,jb as n,kb as o,lb as p,mb as R,nb as w,pb as _,qb as m,rb as c,s as U,ub as N}from"./chunk-RBNO3K72.js";function ue(a,e){if(a&1){let t=_();n(0,"spk-form-field",28),p(1,"input",29),o(),n(2,"button",30),m("click",function(){u(t);let l=c(2);return d(l.beginRemoteRegistration())}),r(3," Register for remote control "),o()}}function de(a,e){if(a&1&&(n(0,"div",26)(1,"label"),r(2,"Machine is now registered, open this link to add it to your account:"),o(),n(3,"a",31),r(4),o()()),a&2){let t=c(2);s(3),N("href",t.remoteControlClaimUrl(),D),s(),E(t.remoteControlClaimUrl())}}function ge(a,e){a&1&&(n(0,"div",26)(1,"label"),r(2,"Registering, please wait..."),o()())}function Ce(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.cancelRemoteRegistration())}),r(1," Cancel registration "),o()}}function _e(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.disableRemoteControl())}),r(1," Disable remote control "),o()}}function fe(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.enableRemoteControl())}),r(1," Enable remote control "),o(),n(2,"button",32),m("click",function(){u(t);let l=c(2);return d(l.deleteRemoteControl())}),r(3," Delete remote control setup "),o()}}function Se(a,e){if(a&1&&(n(0,"div",5),O(1,ue,4,0)(2,de,5,2,"div",26)(3,ge,3,0,"div",26)(4,Ce,2,0,"button",27)(5,_e,2,0,"button",27)(6,fe,4,0),o()),a&2){let t=c();s(),C(t.remoteControlState()==="inactive"?1:-1),s(),C(t.remoteControlState()==="registered"?2:-1),s(),C(t.remoteControlState()==="registering"?3:-1),s(),C(t.remoteControlState()==="registering"||t.remoteControlState()==="registeringfaulted"||t.remoteControlState()==="registered"?4:-1),s(),C(t.remoteControlState()==="connected"||t.remoteControlState()==="enabled"?5:-1),s(),C(t.remoteControlState()==="disabled"?6:-1)}}function he(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.pauseSettings.controls.timeType.setValue(l.value))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t.value),s(),b(" ",t.label," ")}}function be(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.pauseSettings.controls.time.setValue(l))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t),s(),E(t)}}function ve(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.settingsForm.controls.usageStatistics.setValue(l.value))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t.value),s(),b(" ",t.label," ")}}var f=new X,pe=[{value:"s",label:"Seconds"},{value:"m",label:"Minutes"},{value:"h",label:"Hours"}],V=[{value:"en",label:"English"},{value:"fr",label:"French"},{value:"de",label:"German"},{value:"es",label:"Spanish"},{value:"it",label:"Italian"}],ce=[{value:"",label:"System default (information)"},{value:"information",label:"Usage statistics, warnings, errors, and crashes"},{value:"warning",label:"Warnings, errors and crashes"},{value:"error",label:"Errors and crashes"},{value:"crash",label:"Crashes only"},{value:"none",label:"None / disabled"}],P=class a{#i=y(le);#o=y(re);#e=y(oe);sysinfo=this.#o.systemInfo;isDarkMode=this.#i.isDarkMode;editAs=h("list");settingsForm=f.group({pauseSettings:f.group({time:f.control(0),timeType:f.control("s")}),language:f.control("en"),usageStatistics:f.control(""),updateChannel:f.control(""),remoteControlRegisterUrl:f.control("")});remoteControlState=h("unknown");remoteControlClaimUrl=h(null);sysInfoEffect=B(()=>{this.settingsForm.controls.remoteControlRegisterUrl.patchValue(this.sysinfo()?.RemoteControlRegistrationUrl??"")},{allowSignalWrites:!0});get pauseSettings(){return this.settingsForm.controls.pauseSettings}langSignal=se(this.settingsForm.controls.language.valueChanges);timeTypeOptions=h(pe);timeOptions=me([this.pauseSettings.controls.timeType.valueChanges.pipe(v("s")),this.pauseSettings.controls.time.valueChanges.pipe(v(null))],F(U(([e,t])=>{let i=this.#r(e);return t!==null?i.filter(l=>l.toString().includes(t.toString())):i}),v([])));languageOptions=G(()=>this.langSignal()?V.filter(e=>e.value===this.langSignal()):V);usageStatisticsOptions=h(ce);ngOnInit(){this.refreshRemoteControlStatus(),this.getServerSettings()}submit(){let e=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#e.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":e==="0s"?"":e,"update-channel":this.settingsForm.controls.updateChannel.value}}).subscribe({next:t=>{console.log("res",t)},error:t=>{console.error("err",t)}})}getServerSettings(){return this.#e.getApiV1Serversettings().subscribe({next:e=>{let t=e["startup-delay"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(t.substring(0,t.length-1)==""?"0":t.substring(0,t.length-1)),timeType:t.substring(-1)===""?"s":t.substring(-1)},usageStatistics:e["usage-reporter-level"],updateChannel:e["update-channel"]})}})}languageDisplay(e){return e?V.find(t=>t.value===e)?.label??null:null}typeDisplay(e){return e==null?null:pe.find(t=>t.value===e)?.label??null}usageDisplay(e){return typeof e!="string"?null:ce.find(t=>t.value===e)?.label??null}setDarkMode(){this.#i.setDarkMode()}setLightMode(){this.#i.setLightMode()}#r(e){let t=e==="h"?25:61;return new Array(t).fill(0).map((i,l)=>l)}repeatRegisterTimer=null;#t(e){e.RegistrationUrl&&this.remoteControlClaimUrl.set(e.RegistrationUrl),console.log(e),e.IsConnected?this.remoteControlState.set("connected"):e.IsEnabled?this.remoteControlState.set("enabled"):e.CanEnable?this.remoteControlState.set("disabled"):e.IsRegisteringFaulted?this.remoteControlState.set("registeringfaulted"):e.IsRegistering?e.RegistrationUrl!=null&&e.RegistrationUrl.trim().length>0?this.remoteControlState.set("registered"):this.remoteControlState.set("registering"):this.remoteControlState.set("inactive");let t=this.remoteControlState();console.log(t),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),t==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:i=>{this.#t(i)},error:i=>{this.#n(i)}})},5e3)),(t==="enabled"||t==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:i=>{this.#t(i)},error:i=>{this.#n(i)}})},5e3)),e.IsRegistering&&e.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:i=>{this.#t(i)}})}#n(e){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>{this.#t(t)}})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}beginRemoteRegistration(){this.remoteControlState.set("registering");let e=this.settingsForm.controls.remoteControlRegisterUrl.value;this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:e}}).subscribe({next:t=>{this.#t(t)},error:t=>{this.#n(t)}})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}deleteRemoteControl(){let e=this;confirm("Are you sure you want to delete the remote control registration?")&&e.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:t=>{e.#t(t)},error:t=>{e.#n(t)}})}getRemoteControlStatusText(){let e=this.remoteControlState();return e==="enabled"?"Remote control is enabled but not connected":e==="connected"?"Remote control is connected":e==="registering"?"Registering machine...":e==="registeringfaulted"?"Registration failed":e==="registered"?"Registered, waiting for accept":e==="disabled"?"Remote control is configured but not enabled":e==="unknown"?"...loading...":"Remote control is not set up"}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=I({type:a,selectors:[["app-settings"]],standalone:!0,features:[A],decls:100,vars:11,consts:[[1,"content",3,"submit","formGroup"],[1,"title"],["type","submit","spk-button","",1,"raised","primary"],[1,"left"],[1,"right","remote-control"],[1,"field-row"],[1,"right"],["formGroupName","pauseSettings",1,"field-row"],[3,"displayValue"],["type","text","formControlName","timeType"],["options",""],[3,"value"],["type","search","formControlName","time"],[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","radios"],[1,"radio-option",3,"click"],[1,"outlined","primary"],["type","radio","name","updateChannel","value","","formControlName","updateChannel"],["type","radio","name","updateChannel","value","stable","formControlName","updateChannel"],["type","radio","name","updateChannel","value","beta","formControlName","updateChannel"],["type","radio","name","updateChannel","value","experimental","formControlName","updateChannel"],["type","radio","name","updateChannel","value","canary","formControlName","updateChannel"],["href","#"],["type","text","formControlName","usageStatistics"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl","formControlName","remoteControlRegisterUrl"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","warn",3,"click"],[3,"click","value"]],template:function(t,i){if(t&1&&(p(0,"app-status-bar"),n(1,"form",0),m("submit",function(){return i.submit()}),n(2,"header")(3,"div",1)(4,"h2"),r(5,"Settings"),o(),n(6,"p"),r(7,"Configure your backup settings."),o()(),n(8,"button",2),r(9,"Save changes"),o()(),n(10,"section")(11,"div",3)(12,"h3"),r(13,"Remote access control"),o(),n(14,"p"),r(15),o()(),n(16,"div",4),O(17,Se,7,6,"div",5),o()(),n(18,"section")(19,"div",3)(20,"h3"),r(21,"Pause after startup or hibernation"),o(),n(22,"p"),r(23," 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. "),o()(),n(24,"div",6)(25,"div",7)(26,"spk-select",8),p(27,"input",9),R(28,10),T(29,he,2,2,"option",11,x),w(),o(),n(31,"spk-select"),p(32,"input",12),R(33,10),T(34,be,2,2,"option",11,x),w(),o()()()(),n(36,"section")(37,"div",3)(38,"h3"),r(39,"Color theme"),o(),n(40,"p"),r(41,"Customize your application theme"),o()(),n(42,"div",6)(43,"div",13)(44,"img",14),m("click",function(){return i.setLightMode()}),o(),n(45,"img",15),m("click",function(){return i.setDarkMode()}),o()()()(),n(46,"section")(47,"div",3)(48,"h3"),r(49,"Update channel"),o(),n(50,"p"),r(51,"Lorem ipsum dolor sit amet, consectetur adipiscing elit."),o()(),n(52,"div",16)(53,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("")}),n(54,"spk-radio",18),r(55),p(56,"input",19),o(),n(57,"p"),r(58),o()(),n(59,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("stable")}),n(60,"spk-radio",18),r(61," Stable "),p(62,"input",20),o(),n(63,"p"),r(64,"Official releases"),o()(),n(65,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("beta")}),n(66,"spk-radio",18),r(67," Beta "),p(68,"input",21),o(),n(69,"p"),r(70," Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. "),o()(),n(71,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("experimental")}),n(72,"spk-radio",18),r(73," Experimental "),p(74,"input",22),o(),n(75,"p"),r(76,"Specific builds for developers only. Not for use with important data."),o()(),n(77,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("canary")}),n(78,"spk-radio",18),r(79," Canary "),p(80,"input",23),o(),n(81,"p"),r(82,"Individual builds for developers only. Not for use with important data."),o()()()(),n(83,"section")(84,"div",3)(85,"h3"),r(86,"Usage statistics"),o(),n(87,"p"),r(88," Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate "),n(89,"a",24),r(90,"public usage statistics."),o(),p(91,"br")(92,"br"),r(93," 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. "),o()(),n(94,"div",6)(95,"spk-select",8),p(96,"input",25),R(97,10),T(98,ve,2,2,"option",11,x),w(),o()()()()),t&2){let l,g;s(),S("formGroup",i.settingsForm),s(14),E(i.getRemoteControlStatusText()),s(2),C(i.remoteControlState()!=="unknown"?17:-1),s(9),S("displayValue",i.typeDisplay(i.settingsForm.value.pauseSettings==null?null:i.settingsForm.value.pauseSettings.timeType)),s(3),k(i.timeTypeOptions()),s(5),k(i.timeOptions()),s(10),M("active",!i.isDarkMode()),s(),M("active",i.isDarkMode()),s(10),b(" Default (",(l=i.sysinfo())==null?null:l.DefaultUpdateChannel,") "),s(3),b("Same as the base install version: ",(g=i.sysinfo())==null?null:g.ServerVersionType,""),s(37),S("displayValue",i.usageDisplay(i.settingsForm.controls.usageStatistics.value)),s(3),k(i.usageStatisticsOptions())}},dependencies:[Y,q,K,Q,L,z,$,W,Z,j,J,H,ae,ee,ne,te,ie],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}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-level-40)}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] spk-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}.remote-control[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}"],changeDetection:0})};export{P as default};
|
package/chunk-M7I5RH5L.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as a,e as b,f as c}from"./chunk-VOMOARSI.js";import"./chunk-YJ2MWFHK.js";import"./chunk-TIGGJ4KF.js";import"./chunk-DNHLTHLR.js";import"./chunk-P4AWKIXG.js";import"./chunk-C52YH32J.js";import"./chunk-LNCAETYE.js";import"./chunk-AFUS3PYG.js";import"./chunk-L4EVZZOM.js";import"./chunk-SYBUINNV.js";import"./chunk-RBNO3K72.js";export{b as NONE_OPTION,a as createGeneralForm,c as default};
|
package/chunk-MFISBPKS.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as I,b as E,d as B,e as M,f as w,i as N,l as P,o as A,q as T}from"./chunk-C52YH32J.js";import{a as L,d as R,h as V,q as j}from"./chunk-LNCAETYE.js";import{d as D}from"./chunk-AFUS3PYG.js";import"./chunk-L4EVZZOM.js";import{a as G}from"./chunk-SYBUINNV.js";import{Db as o,Eb as C,G as b,Jb as S,Kb as F,Oa as m,Ob as _,Pb as v,Ua as f,X as h,Z as k,bb as d,db as y,jb as t,kb as e,lb as s,nc as x,qb as c}from"./chunk-RBNO3K72.js";var O=()=>["/"],p=new A,u=class g{#e=h(G);isImporting=f(!1);importForm=p.group({config:p.control(""),cmdline:p.control(!1),importMetadata:p.control(!1),direct:p.control(!1),passphrase:p.control("")});selectedFile=f(null);onFileDropped(r){let n=r.target?.files?.item(0);if(n){let a=new FileReader;a.onload=this.#t.bind(this),a.readAsArrayBuffer(n)}}#t(r){let i=r.target?.result;this.importForm.patchValue({config:this.#o(i)})}#o(r){let i=new Uint8Array(r),n=i.byteLength,a="";for(let l=0;l<n;l++)a+=String.fromCharCode(i[l]);return btoa(a)}submit(){this.isImporting.set(!0),this.#e.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(b(()=>this.isImporting.set(!1))).subscribe({next:r=>{console.log("res",r)},error:r=>{console.error("err",r)}})}static \u0275fac=function(i){return new(i||g)};static \u0275cmp=k({type:g,selectors:[["app-import"]],standalone:!0,features:[S],decls:34,vars:8,consts:[[1,"actions"],["spk-button","",1,"outlined",3,"routerLink"],["spk-button","",1,"raised","primary",3,"click"],["autocomplete","off",3,"formGroup"],["spkDragDrop","",3,"fileDropped"],["for","file"],["type","file","accept",".json,.aes",3,"change"],["spkSuffix",""],["for","passphrase"],["type","password","formControlName","passphrase"],[1,"primary","raised"],["for","importMetadata"],["type","checkbox","formControlName","importMetadata"],["for","direct"],["type","checkbox","formControlName","direct"]],template:function(i,n){i&1&&(t(0,"header")(1,"h3"),o(2," Import backup configuration "),t(3,"div",0)(4,"button",1)(5,"spk-icon"),o(6,"arrow-left"),e(),o(7," Back "),e(),t(8,"button",2),c("click",function(){return n.submit()}),t(9,"spk-icon"),o(10,"download-simple"),e(),o(11," Import "),e()()()(),t(12,"form",3)(13,"spk-form-field",4),c("fileDropped",function(l){return n.onFileDropped(l)}),t(14,"label",5),o(15,"Select a configuration file"),e(),t(16,"input",6),c("change",function(l){return n.onFileDropped(l)}),e(),t(17,"spk-icon",7),o(18,"upload"),e()(),t(19,"spk-form-field")(20,"label",8),o(21,"Passphrase"),e(),s(22,"input",9),e(),t(23,"spk-toggle",10)(24,"label",11),o(25,"Import Metadata"),e(),s(26,"input",12),e(),t(27,"spk-toggle",10)(28,"label",13),o(29,"Save now"),e(),s(30,"input",14),e(),t(31,"pre"),o(32),_(33,"json"),e()()),i&2&&(m(4),d("routerLink",F(7,O)),m(4),y("loading",n.isImporting()),m(4),d("formGroup",n.importForm),m(20),C(v(33,5,n.importForm.value)))},dependencies:[T,w,E,I,B,M,N,P,D,V,L,R,j,x],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}"],changeDetection:0})};export{u as default};
|
package/chunk-MWB5FR2K.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c}from"./chunk-VOMOARSI.js";import"./chunk-YJ2MWFHK.js";import"./chunk-TIGGJ4KF.js";import"./chunk-DNHLTHLR.js";import"./chunk-P4AWKIXG.js";import"./chunk-C52YH32J.js";import"./chunk-LNCAETYE.js";import"./chunk-AFUS3PYG.js";import"./chunk-L4EVZZOM.js";import"./chunk-SYBUINNV.js";import"./chunk-RBNO3K72.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
|
package/chunk-OM6QOR75.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as c}from"./chunk-LNCAETYE.js";import{b as l,d as m,e as p}from"./chunk-AFUS3PYG.js";import"./chunk-L4EVZZOM.js";import{Db as n,Jb as s,Z as a,jb as e,kb as t,lb as u}from"./chunk-RBNO3K72.js";var i=class r{static \u0275fac=function(o){return new(o||r)};static \u0275cmp=a({type:r,selectors:[["app-about"]],standalone:!0,features:[s],decls:13,vars:0,consts:[[1,"nav"],["spk-button","","routerLink","/about/general","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/changelog","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/libraries","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/system-info","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/logs","routerLinkActive","primary",1,"raised"]],template:function(o,b){o&1&&(e(0,"div",0)(1,"button",1),n(2,"General"),t(),e(3,"button",2),n(4,"Changelog"),t(),e(5,"button",3),n(6,"Libraries"),t(),e(7,"button",4),n(8,"System info"),t(),e(9,"button",5),n(10,"Logs"),t()(),e(11,"section"),u(12,"router-outlet"),t())},dependencies:[c,l,m,p],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:0;padding:2.5rem}.nav[_ngcontent-%COMP%]{display:flex;gap:.5rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:2rem 0}"],changeDetection:0})};export{i as default};
|