@duplicati/ngclient 0.0.14 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/spk.woff2 +0 -0
- package/{chunk-7ROMUYYO.js → chunk-2VM3Z6G6.js} +1 -1
- package/chunk-3KWRGL6H.js +1 -0
- package/{chunk-BDBR5EDG.js → chunk-4UKPKNC6.js} +1 -1
- package/chunk-5FBRBL44.js +1 -0
- package/chunk-5L4ZOFYT.js +1 -0
- package/chunk-6T7HOYTW.js +1 -0
- package/chunk-AIL3DRSU.js +1 -0
- package/{chunk-QVTIOQU4.js → chunk-AM4UDAZB.js} +1 -1
- package/chunk-AN53EBZI.js +1 -0
- package/chunk-ASMWEBCB.js +1 -0
- package/{chunk-6PJU5W5X.js → chunk-BX543SH4.js} +1 -1
- package/{chunk-RH5CENQ7.js → chunk-C7JVFVNG.js} +1 -1
- package/chunk-CTPVCKDU.js +1 -0
- package/chunk-CZTXCP6Y.js +1 -0
- package/{chunk-ER25OIRY.js → chunk-DE7MHNNM.js} +1 -1
- package/{chunk-7YM6RN2G.js → chunk-DFNMN5CZ.js} +1 -1
- package/chunk-EYBBW4ID.js +1 -0
- package/chunk-FCPLQRRC.js +1 -0
- package/chunk-FKB7BVQE.js +8 -0
- package/{chunk-WQPTWFXA.js → chunk-GSP4D4JM.js} +1 -1
- package/{chunk-4OR2MBXM.js → chunk-IGECPMHY.js} +1 -1
- package/{chunk-ZBL4ZWSP.js → chunk-IPONHS64.js} +1 -1
- package/{chunk-KLPRJO2S.js → chunk-L2WWHQPN.js} +1 -1
- package/{chunk-SS4RWMEQ.js → chunk-LI2AEH4X.js} +1 -1
- package/{chunk-74EYKZJR.js → chunk-MMEIXMDW.js} +1 -1
- package/{chunk-RL7JYJ4S.js → chunk-NQ2MPIB6.js} +1 -1
- package/{chunk-ZUVMWAQY.js → chunk-PY26LA4W.js} +1 -1
- package/chunk-Q2QH4H5B.js +1 -0
- package/chunk-QD7BY4V5.js +1 -0
- package/chunk-QDXOKRRT.js +1 -0
- package/{chunk-3B6RZWP4.js → chunk-QX7KUJGE.js} +1 -1
- package/{chunk-ZUISIMKR.js → chunk-RIQNVCIL.js} +1 -1
- package/chunk-RNBIMN7E.js +1 -0
- package/chunk-RODVNO2L.js +1 -0
- package/{chunk-BRVLVIBB.js → chunk-SGVVLQ22.js} +1 -1
- package/{chunk-Q3B3QVNE.js → chunk-SHLX3F4G.js} +1 -1
- package/{chunk-OI46JH74.js → chunk-VLWUJXM4.js} +2 -2
- package/chunk-WIIXITKP.js +1 -0
- package/chunk-WNQNTT5I.js +1 -0
- package/{chunk-QROBYUJD.js → chunk-YPNP3GF5.js} +1 -1
- package/{chunk-XYN4OGS4.js → chunk-YV6J6EAD.js} +1 -1
- package/chunk-ZNDBPUVN.js +1 -0
- package/chunk-ZYFED5UB.js +1 -0
- package/index.html +2 -2
- package/main-QHMQQJS2.js +1 -0
- package/package.json +1 -1
- package/styles-EYLEETOZ.css +1 -0
- package/chunk-2LTGXEZS.js +0 -1
- package/chunk-2WAFR5D4.js +0 -1
- package/chunk-3DBUGAIF.js +0 -1
- package/chunk-3SP3MQEU.js +0 -1
- package/chunk-7YI4IDWY.js +0 -1
- package/chunk-A2PI66LB.js +0 -1
- package/chunk-AVWHS36O.js +0 -1
- package/chunk-B42N6RQ3.js +0 -1
- package/chunk-CWAAKGM6.js +0 -1
- package/chunk-ICCENBZO.js +0 -1
- package/chunk-MYQPVSUP.js +0 -1
- package/chunk-NGPWOMCW.js +0 -8
- package/chunk-NSHVJHI5.js +0 -1
- package/chunk-NVFX5EQI.js +0 -1
- package/chunk-RIVCLGIC.js +0 -1
- package/chunk-RK3NUMZK.js +0 -1
- package/chunk-S4UXVQU2.js +0 -1
- package/chunk-SWUZR64I.js +0 -1
- package/chunk-VJK4WSMT.js +0 -1
- package/chunk-VUB3FSIU.js +0 -1
- package/chunk-WH7DPJOS.js +0 -1
- package/main-2SNEI5DH.js +0 -1
- package/styles-GLYEHLO7.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{J as B,O as u,T as y,l as k,m as f,p as I,qc as S,sc as c,v as D,x as O}from"./chunk-NGPWOMCW.js";import{a as m,b as V}from"./chunk-7CGTOI24.js";var R=class{_fns;constructor(){this._fns=[]}eject(e){let a=this._fns.indexOf(e);a!==-1&&(this._fns=[...this._fns.slice(0,a),...this._fns.slice(a+1)])}use(e){this._fns=[...this._fns,e]}},t={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"1",WITH_CREDENTIALS:!1,interceptors:{response:new R}};var d=class extends Error{url;status;statusText;body;request;constructor(e,a,p){super(p),this.name="ApiError",this.url=a.url,this.status=a.status,this.statusText=a.statusText,this.body=a.body,this.request=e}};var b=s=>typeof s=="string",P=s=>b(s)&&s!=="",T=s=>s instanceof Blob,v=s=>s instanceof FormData,j=s=>{try{return btoa(s)}catch{return Buffer.from(s).toString("base64")}},F=s=>{let e=[],a=(n,i)=>{e.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(i))}`)},p=(n,i)=>{i!=null&&(i instanceof Date?a(n,i.toISOString()):Array.isArray(i)?i.forEach(o=>p(n,o)):typeof i=="object"?Object.entries(i).forEach(([o,l])=>p(`${n}[${o}]`,l)):a(n,i))};return Object.entries(s).forEach(([n,i])=>p(n,i)),e.length?`?${e.join("&")}`:""},L=(s,e)=>{let a=s.ENCODE_PATH||encodeURI,p=e.url.replace("{api-version}",s.VERSION).replace(/{(.*?)}/g,(i,o)=>e.path?.hasOwnProperty(o)?a(String(e.path[o])):i),n=s.BASE+p;return e.query?n+F(e.query):n},H=s=>{if(s.formData){let e=new FormData,a=(p,n)=>{b(n)||T(n)?e.append(p,n):e.append(p,JSON.stringify(n))};return Object.entries(s.formData).filter(([,p])=>p!=null).forEach(([p,n])=>{Array.isArray(n)?n.forEach(i=>a(p,i)):a(p,n)}),e}},g=async(s,e)=>typeof e=="function"?e(s):e,q=(s,e)=>D({token:g(e,s.TOKEN),username:g(e,s.USERNAME),password:g(e,s.PASSWORD),additionalHeaders:g(e,s.HEADERS)}).pipe(I(({token:a,username:p,password:n,additionalHeaders:i})=>{let o=Object.entries(m(m({Accept:"application/json"},i),e.headers)).filter(([,l])=>l!=null).reduce((l,[A,h])=>V(m({},l),{[A]:String(h)}),{});if(P(a)&&(o.Authorization=`Bearer ${a}`),P(p)&&P(n)){let l=j(`${p}:${n}`);o.Authorization=`Basic ${l}`}return e.body!==void 0&&(e.mediaType?o["Content-Type"]=e.mediaType:T(e.body)?o["Content-Type"]=e.body.type||"application/octet-stream":b(e.body)?o["Content-Type"]="text/plain":v(e.body)||(o["Content-Type"]="application/json")),new S(o)})),w=s=>{if(s.body)return s.mediaType?.includes("application/json")||s.mediaType?.includes("+json")?JSON.stringify(s.body):b(s.body)||T(s.body)||v(s.body)?s.body:JSON.stringify(s.body)},U=(s,e,a,p,n,i,o)=>a.request(e.method,p,{headers:o,body:n??i,withCredentials:s.WITH_CREDENTIALS,observe:"response"}),z=(s,e)=>{if(e){let a=s.headers.get(e);if(b(a))return a}},W=s=>{if(s.status!==204&&s.body!==null)return s.body},K=(s,e)=>{let p=m({400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},s.errors)[e.status];if(p)throw new d(s,e,p);if(!e.ok){let n=e.status??"unknown",i=e.statusText??"unknown",o=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new d(s,e,`Generic Error: status: ${n}; status text: ${i}; body: ${o}`)}},r=(s,e,a)=>{let p=L(s,a),n=H(a),i=w(a);return q(s,a).pipe(B(o=>U(s,a,e,p,i,n,o)),B(async o=>{for(let N of s.interceptors.response._fns)o=await N(o);let l=W(o),A=z(o,a.responseHeader),h=l;return a.responseTransformer&&o.ok&&(h=await a.responseTransformer(l)),{url:p,ok:o.ok,status:o.status,statusText:o.statusText,body:A??h}}),O(o=>o.status?k({url:p,ok:o.ok,status:o.status,statusText:o.statusText,body:o.error??o.statusText}):f(()=>o)),I(o=>(K(a,o),o.body)),O(o=>f(()=>o)))};var $=class s{constructor(e){this.http=e}getApiV1Commandline(){return r(t,this.http,{method:"GET",url:"/api/v1/commandline"})}static \u0275fac=function(a){return new(a||s)(y(c))};static \u0275prov=u({token:s,factory:s.\u0275fac,providedIn:"root"})},C=class s{constructor(e){this.http=e}postApiV1Commandline(e){return r(t,this.http,{method:"POST",url:"/api/v1/commandline",body:e.requestBody,mediaType:"application/json"})}getApiV1Acknowledgements(){return r(t,this.http,{method:"GET",url:"/api/v1/acknowledgements"})}postApiV1AuthRefresh(){return r(t,this.http,{method:"POST",url:"/api/v1/auth/refresh"})}postApiV1AuthSignin(e){return r(t,this.http,{method:"POST",url:"/api/v1/auth/signin",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthLogin(e){return r(t,this.http,{method:"POST",url:"/api/v1/auth/login",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuesignintoken(e){return r(t,this.http,{method:"POST",url:"/api/v1/auth/issuesignintoken",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthRefreshLogout(){return r(t,this.http,{method:"POST",url:"/api/v1/auth/refresh/logout"})}postApiV1AuthIssuetokenByOperation(e){return r(t,this.http,{method:"POST",url:"/api/v1/auth/issuetoken/{operation}",path:{operation:e.operation}})}getApiV1Backupdefaults(){return r(t,this.http,{method:"GET",url:"/api/v1/backupdefaults"})}getApiV1Backups(){return r(t,this.http,{method:"GET",url:"/api/v1/backups"})}postApiV1Backups(e){return r(t,this.http,{method:"POST",url:"/api/v1/backups",query:{temporary:e.temporary,existingdb:e.existingdb},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupsImport(e){return r(t,this.http,{method:"POST",url:"/api/v1/backups/import",body:e.requestBody,mediaType:"application/json"})}getApiV1BugreportByReportid(e){return r(t,this.http,{method:"GET",url:"/api/v1/bugreport/{reportid}",path:{reportid:e.reportid},query:{token:e.token}})}getApiV1CaptchaByToken(e){return r(t,this.http,{method:"GET",url:"/api/v1/captcha/{token}",path:{token:e.token}})}postApiV1CaptchaByToken(e){return r(t,this.http,{method:"POST",url:"/api/v1/captcha/{token}",path:{token:e.token},body:e.requestBody,mediaType:"application/json"})}postApiV1Captcha(e){return r(t,this.http,{method:"POST",url:"/api/v1/captcha",body:e.requestBody,mediaType:"application/json"})}getApiV1Changelog(e={}){return r(t,this.http,{method:"GET",url:"/api/v1/changelog",query:{"from-update":e.fromUpdate}})}getApiV1CommandlineByRunid(e){return r(t,this.http,{method:"GET",url:"/api/v1/commandline/{runid}",path:{runid:e.runid},query:{offset:e.offset,pagesize:e.pagesize}})}postApiV1CommandlineByRunidAbort(e){return r(t,this.http,{method:"POST",url:"/api/v1/commandline/{runid}/abort",path:{runid:e.runid}})}postApiV1Filesystem(e){return r(t,this.http,{method:"POST",url:"/api/v1/filesystem",query:{onlyFolders:e.onlyFolders,showHidden:e.showHidden},body:e.requestBody,mediaType:"application/json"})}postApiV1FilesystemValidate(e){return r(t,this.http,{method:"POST",url:"/api/v1/filesystem/validate",body:e.requestBody,mediaType:"application/json"})}getApiV1Hyperv(){return r(t,this.http,{method:"GET",url:"/api/v1/hyperv"})}getApiV1HypervByKey(e){return r(t,this.http,{method:"GET",url:"/api/v1/hyperv/{key}",path:{key:e.key}})}getApiV1Licenses(){return r(t,this.http,{method:"GET",url:"/api/v1/licenses"})}getApiV1LogdataPoll(e){return r(t,this.http,{method:"GET",url:"/api/v1/logdata/poll",query:{level:e.level,id:e.id,offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataLog(e={}){return r(t,this.http,{method:"GET",url:"/api/v1/logdata/log",query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1Mssql(){return r(t,this.http,{method:"GET",url:"/api/v1/mssql"})}getApiV1MssqlByKey(e){return r(t,this.http,{method:"GET",url:"/api/v1/mssql/{key}",path:{key:e.key}})}getApiV1NotificationById(e){return r(t,this.http,{method:"GET",url:"/api/v1/notification/{id}",path:{id:e.id}})}deleteApiV1NotificationById(e){return r(t,this.http,{method:"DELETE",url:"/api/v1/notification/{id}",path:{id:e.id}})}getApiV1Notifications(){return r(t,this.http,{method:"GET",url:"/api/v1/notifications"})}getApiV1RemotecontrolStatus(){return r(t,this.http,{method:"GET",url:"/api/v1/remotecontrol/status"})}postApiV1RemotecontrolEnable(){return r(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/enable"})}postApiV1RemotecontrolDisable(){return r(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/disable"})}deleteApiV1RemotecontrolRegistration(){return r(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/registration"})}postApiV1RemotecontrolRegister(e){return r(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/register",body:e.requestBody,mediaType:"application/json"})}deleteApiV1RemotecontrolRegister(){return r(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/register"})}postApiV1RemoteoperationDbpath(e){return r(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/dbpath",body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationTest(e){return r(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/test",query:{autocreate:e.autocreate},body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationCreate(e){return r(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/create",body:e.requestBody,mediaType:"application/json"})}getApiV1Serversettings(){return r(t,this.http,{method:"GET",url:"/api/v1/serversettings"})}patchApiV1Serversettings(e){return r(t,this.http,{method:"PATCH",url:"/api/v1/serversettings",body:e.requestBody,mediaType:"application/json"})}getApiV1ServersettingByKey(e){return r(t,this.http,{method:"GET",url:"/api/v1/serversetting/{key}",path:{key:e.key}})}putApiV1ServersettingByKey(e){return r(t,this.http,{method:"PUT",url:"/api/v1/serversetting/{key}",path:{key:e.key},body:e.requestBody,mediaType:"application/json"})}getApiV1Serverstate(e={}){return r(t,this.http,{method:"GET",url:"/api/v1/serverstate",query:{lastEventId:e.lastEventId,longpoll:e.longpoll,duration:e.duration}})}postApiV1ServerstatePause(e={}){return r(t,this.http,{method:"POST",url:"/api/v1/serverstate/pause",query:{duration:e.duration}})}postApiV1ServerstateResume(){return r(t,this.http,{method:"POST",url:"/api/v1/serverstate/resume"})}getApiV1Systeminfo(){return r(t,this.http,{method:"GET",url:"/api/v1/systeminfo"})}getApiV1SysteminfoFiltergroups(){return r(t,this.http,{method:"GET",url:"/api/v1/systeminfo/filtergroups"})}getApiV1TaskByTaskid(e){return r(t,this.http,{method:"GET",url:"/api/v1/task/{taskid}",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStopaftercurrentfile(e){return r(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stopaftercurrentfile",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStopnow(e){return r(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stopnow",path:{taskid:e.taskid}})}postApiV1TaskByTaskidAbort(e){return r(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/abort",path:{taskid:e.taskid}})}getApiV1Uisettings(){return r(t,this.http,{method:"GET",url:"/api/v1/uisettings"})}getApiV1UisettingsByScheme(e){return r(t,this.http,{method:"GET",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme}})}patchApiV1UisettingsByScheme(e){return r(t,this.http,{method:"PATCH",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme},body:e.requestBody,mediaType:"application/json"})}postApiV1WebmoduleByModulekey(e){return r(t,this.http,{method:"POST",url:"/api/v1/webmodule/{modulekey}",path:{modulekey:e.modulekey},body:e.requestBody,mediaType:"application/json"})}getApiV1BackupById(e){return r(t,this.http,{method:"GET",url:"/api/v1/backup/{id}",path:{id:e.id}})}putApiV1BackupById(e){return r(t,this.http,{method:"PUT",url:"/api/v1/backup/{id}",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}deleteApiV1BackupById(e){return r(t,this.http,{method:"DELETE",url:"/api/v1/backup/{id}",path:{id:e.id},query:{"delete-remote-files":e.deleteRemoteFiles,"delete-local-db":e.deleteLocalDb,"captcha-token":e.captchaToken,"captcha-answer":e.captchaAnswer,force:e.force}})}getApiV1BackupByIdFiles(e){return r(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/files",path:{id:e.id},query:{filter:e.filter,time:e.time,"all-versions":e.allVersions,"prefix-only":e.prefixOnly,"folder-contents":e.folderContents}})}getApiV1BackupByIdLog(e){return r(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/log",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdRemotelog(e){return r(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/remotelog",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdFilesets(e){return r(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/filesets",path:{id:e.id},query:{"include-metadata":e.includeMetadata,"from-remote-only":e.fromRemoteOnly}})}getApiV1BackupByIdExportArgsonly(e){return r(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-argsonly",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExportCmdline(e){return r(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-cmdline",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExport(e){return r(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase,token:e.token}})}getApiV1BackupByIdIsdbusedelsewhere(e){return r(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isdbusedelsewhere",path:{id:e.id}})}getApiV1BackupByIdIsactive(e){return r(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isactive",path:{id:e.id}})}postApiV1BackupByIdDeletedb(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/deletedb",path:{id:e.id}})}postApiV1BackupByIdMovedb(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/movedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdUpdatedb(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/updatedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRestore(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/restore",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdCreatereport(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/createreport",path:{id:e.id}})}postApiV1BackupByIdRepair(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repair",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRepairupdate(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repairupdate",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdVacuum(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/vacuum",path:{id:e.id}})}postApiV1BackupByIdVerify(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/verify",path:{id:e.id}})}postApiV1BackupByIdCompact(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/compact",path:{id:e.id}})}postApiV1BackupByIdStart(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/start",path:{id:e.id}})}postApiV1BackupByIdRun(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/run",path:{id:e.id}})}postApiV1BackupByIdReportRemoteSize(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/report-remote-size",path:{id:e.id}})}postApiV1BackupByIdCopytotemp(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/copytotemp",path:{id:e.id}})}static \u0275fac=function(a){return new(a||s)(y(c))};static \u0275prov=u({token:s,factory:s.\u0275fac,providedIn:"root"})},x=class s{constructor(e){this.http=e}getApiV1Progressstate(){return r(t,this.http,{method:"GET",url:"/api/v1/progressstate"})}static \u0275fac=function(a){return new(a||s)(y(c))};static \u0275prov=u({token:s,factory:s.\u0275fac,providedIn:"root"})},G=class s{constructor(e){this.http=e}getApiV1Tasks(){return r(t,this.http,{method:"GET",url:"/api/v1/tasks"})}static \u0275fac=function(a){return new(a||s)(y(c))};static \u0275prov=u({token:s,factory:s.\u0275fac,providedIn:"root"})},M=class s{constructor(e){this.http=e}postApiV1UpdatesCheck(){return r(t,this.http,{method:"POST",url:"/api/v1/updates/check"})}static \u0275fac=function(a){return new(a||s)(y(c))};static \u0275prov=u({token:s,factory:s.\u0275fac,providedIn:"root"})},E=class s{constructor(e){this.http=e}getApiV1Webmodules(){return r(t,this.http,{method:"GET",url:"/api/v1/webmodules"})}static \u0275fac=function(a){return new(a||s)(y(c))};static \u0275prov=u({token:s,factory:s.\u0275fac,providedIn:"root"})};export{C as a,x as b,G as c};
|
|
1
|
+
import{J as B,O as u,T as y,l as k,m as f,p as I,uc as S,v as D,wc as c,x as O}from"./chunk-FKB7BVQE.js";import{a as m,b as V}from"./chunk-7CGTOI24.js";var R=class{_fns;constructor(){this._fns=[]}eject(e){let a=this._fns.indexOf(e);a!==-1&&(this._fns=[...this._fns.slice(0,a),...this._fns.slice(a+1)])}use(e){this._fns=[...this._fns,e]}},t={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"1",WITH_CREDENTIALS:!1,interceptors:{response:new R}};var d=class extends Error{url;status;statusText;body;request;constructor(e,a,p){super(p),this.name="ApiError",this.url=a.url,this.status=a.status,this.statusText=a.statusText,this.body=a.body,this.request=e}};var b=s=>typeof s=="string",P=s=>b(s)&&s!=="",T=s=>s instanceof Blob,v=s=>s instanceof FormData,j=s=>{try{return btoa(s)}catch{return Buffer.from(s).toString("base64")}},F=s=>{let e=[],a=(n,i)=>{e.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(i))}`)},p=(n,i)=>{i!=null&&(i instanceof Date?a(n,i.toISOString()):Array.isArray(i)?i.forEach(o=>p(n,o)):typeof i=="object"?Object.entries(i).forEach(([o,l])=>p(`${n}[${o}]`,l)):a(n,i))};return Object.entries(s).forEach(([n,i])=>p(n,i)),e.length?`?${e.join("&")}`:""},L=(s,e)=>{let a=s.ENCODE_PATH||encodeURI,p=e.url.replace("{api-version}",s.VERSION).replace(/{(.*?)}/g,(i,o)=>e.path?.hasOwnProperty(o)?a(String(e.path[o])):i),n=s.BASE+p;return e.query?n+F(e.query):n},H=s=>{if(s.formData){let e=new FormData,a=(p,n)=>{b(n)||T(n)?e.append(p,n):e.append(p,JSON.stringify(n))};return Object.entries(s.formData).filter(([,p])=>p!=null).forEach(([p,n])=>{Array.isArray(n)?n.forEach(i=>a(p,i)):a(p,n)}),e}},g=async(s,e)=>typeof e=="function"?e(s):e,q=(s,e)=>D({token:g(e,s.TOKEN),username:g(e,s.USERNAME),password:g(e,s.PASSWORD),additionalHeaders:g(e,s.HEADERS)}).pipe(I(({token:a,username:p,password:n,additionalHeaders:i})=>{let o=Object.entries(m(m({Accept:"application/json"},i),e.headers)).filter(([,l])=>l!=null).reduce((l,[A,h])=>V(m({},l),{[A]:String(h)}),{});if(P(a)&&(o.Authorization=`Bearer ${a}`),P(p)&&P(n)){let l=j(`${p}:${n}`);o.Authorization=`Basic ${l}`}return e.body!==void 0&&(e.mediaType?o["Content-Type"]=e.mediaType:T(e.body)?o["Content-Type"]=e.body.type||"application/octet-stream":b(e.body)?o["Content-Type"]="text/plain":v(e.body)||(o["Content-Type"]="application/json")),new S(o)})),w=s=>{if(s.body)return s.mediaType?.includes("application/json")||s.mediaType?.includes("+json")?JSON.stringify(s.body):b(s.body)||T(s.body)||v(s.body)?s.body:JSON.stringify(s.body)},U=(s,e,a,p,n,i,o)=>a.request(e.method,p,{headers:o,body:n??i,withCredentials:s.WITH_CREDENTIALS,observe:"response"}),z=(s,e)=>{if(e){let a=s.headers.get(e);if(b(a))return a}},W=s=>{if(s.status!==204&&s.body!==null)return s.body},K=(s,e)=>{let p=m({400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},s.errors)[e.status];if(p)throw new d(s,e,p);if(!e.ok){let n=e.status??"unknown",i=e.statusText??"unknown",o=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new d(s,e,`Generic Error: status: ${n}; status text: ${i}; body: ${o}`)}},r=(s,e,a)=>{let p=L(s,a),n=H(a),i=w(a);return q(s,a).pipe(B(o=>U(s,a,e,p,i,n,o)),B(async o=>{for(let N of s.interceptors.response._fns)o=await N(o);let l=W(o),A=z(o,a.responseHeader),h=l;return a.responseTransformer&&o.ok&&(h=await a.responseTransformer(l)),{url:p,ok:o.ok,status:o.status,statusText:o.statusText,body:A??h}}),O(o=>o.status?k({url:p,ok:o.ok,status:o.status,statusText:o.statusText,body:o.error??o.statusText}):f(()=>o)),I(o=>(K(a,o),o.body)),O(o=>f(()=>o)))};var $=class s{constructor(e){this.http=e}getApiV1Commandline(){return r(t,this.http,{method:"GET",url:"/api/v1/commandline"})}static \u0275fac=function(a){return new(a||s)(y(c))};static \u0275prov=u({token:s,factory:s.\u0275fac,providedIn:"root"})},C=class s{constructor(e){this.http=e}postApiV1Commandline(e){return r(t,this.http,{method:"POST",url:"/api/v1/commandline",body:e.requestBody,mediaType:"application/json"})}getApiV1Acknowledgements(){return r(t,this.http,{method:"GET",url:"/api/v1/acknowledgements"})}postApiV1AuthRefresh(){return r(t,this.http,{method:"POST",url:"/api/v1/auth/refresh"})}postApiV1AuthSignin(e){return r(t,this.http,{method:"POST",url:"/api/v1/auth/signin",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthLogin(e){return r(t,this.http,{method:"POST",url:"/api/v1/auth/login",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthIssuesignintoken(e){return r(t,this.http,{method:"POST",url:"/api/v1/auth/issuesignintoken",body:e.requestBody,mediaType:"application/json"})}postApiV1AuthRefreshLogout(){return r(t,this.http,{method:"POST",url:"/api/v1/auth/refresh/logout"})}postApiV1AuthIssuetokenByOperation(e){return r(t,this.http,{method:"POST",url:"/api/v1/auth/issuetoken/{operation}",path:{operation:e.operation}})}getApiV1Backupdefaults(){return r(t,this.http,{method:"GET",url:"/api/v1/backupdefaults"})}getApiV1Backups(){return r(t,this.http,{method:"GET",url:"/api/v1/backups"})}postApiV1Backups(e){return r(t,this.http,{method:"POST",url:"/api/v1/backups",query:{temporary:e.temporary,existingdb:e.existingdb},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupsImport(e){return r(t,this.http,{method:"POST",url:"/api/v1/backups/import",body:e.requestBody,mediaType:"application/json"})}getApiV1BugreportByReportid(e){return r(t,this.http,{method:"GET",url:"/api/v1/bugreport/{reportid}",path:{reportid:e.reportid},query:{token:e.token}})}getApiV1CaptchaByToken(e){return r(t,this.http,{method:"GET",url:"/api/v1/captcha/{token}",path:{token:e.token}})}postApiV1CaptchaByToken(e){return r(t,this.http,{method:"POST",url:"/api/v1/captcha/{token}",path:{token:e.token},body:e.requestBody,mediaType:"application/json"})}postApiV1Captcha(e){return r(t,this.http,{method:"POST",url:"/api/v1/captcha",body:e.requestBody,mediaType:"application/json"})}getApiV1Changelog(e={}){return r(t,this.http,{method:"GET",url:"/api/v1/changelog",query:{"from-update":e.fromUpdate}})}getApiV1CommandlineByRunid(e){return r(t,this.http,{method:"GET",url:"/api/v1/commandline/{runid}",path:{runid:e.runid},query:{offset:e.offset,pagesize:e.pagesize}})}postApiV1CommandlineByRunidAbort(e){return r(t,this.http,{method:"POST",url:"/api/v1/commandline/{runid}/abort",path:{runid:e.runid}})}postApiV1Filesystem(e){return r(t,this.http,{method:"POST",url:"/api/v1/filesystem",query:{onlyFolders:e.onlyFolders,showHidden:e.showHidden},body:e.requestBody,mediaType:"application/json"})}postApiV1FilesystemValidate(e){return r(t,this.http,{method:"POST",url:"/api/v1/filesystem/validate",body:e.requestBody,mediaType:"application/json"})}getApiV1Hyperv(){return r(t,this.http,{method:"GET",url:"/api/v1/hyperv"})}getApiV1HypervByKey(e){return r(t,this.http,{method:"GET",url:"/api/v1/hyperv/{key}",path:{key:e.key}})}getApiV1Licenses(){return r(t,this.http,{method:"GET",url:"/api/v1/licenses"})}getApiV1LogdataPoll(e){return r(t,this.http,{method:"GET",url:"/api/v1/logdata/poll",query:{level:e.level,id:e.id,offset:e.offset,pagesize:e.pagesize}})}getApiV1LogdataLog(e={}){return r(t,this.http,{method:"GET",url:"/api/v1/logdata/log",query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1Mssql(){return r(t,this.http,{method:"GET",url:"/api/v1/mssql"})}getApiV1MssqlByKey(e){return r(t,this.http,{method:"GET",url:"/api/v1/mssql/{key}",path:{key:e.key}})}getApiV1NotificationById(e){return r(t,this.http,{method:"GET",url:"/api/v1/notification/{id}",path:{id:e.id}})}deleteApiV1NotificationById(e){return r(t,this.http,{method:"DELETE",url:"/api/v1/notification/{id}",path:{id:e.id}})}getApiV1Notifications(){return r(t,this.http,{method:"GET",url:"/api/v1/notifications"})}getApiV1RemotecontrolStatus(){return r(t,this.http,{method:"GET",url:"/api/v1/remotecontrol/status"})}postApiV1RemotecontrolEnable(){return r(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/enable"})}postApiV1RemotecontrolDisable(){return r(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/disable"})}deleteApiV1RemotecontrolRegistration(){return r(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/registration"})}postApiV1RemotecontrolRegister(e){return r(t,this.http,{method:"POST",url:"/api/v1/remotecontrol/register",body:e.requestBody,mediaType:"application/json"})}deleteApiV1RemotecontrolRegister(){return r(t,this.http,{method:"DELETE",url:"/api/v1/remotecontrol/register"})}postApiV1RemoteoperationDbpath(e){return r(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/dbpath",body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationTest(e){return r(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/test",query:{autocreate:e.autocreate},body:e.requestBody,mediaType:"application/json"})}postApiV1RemoteoperationCreate(e){return r(t,this.http,{method:"POST",url:"/api/v1/remoteoperation/create",body:e.requestBody,mediaType:"application/json"})}getApiV1Serversettings(){return r(t,this.http,{method:"GET",url:"/api/v1/serversettings"})}patchApiV1Serversettings(e){return r(t,this.http,{method:"PATCH",url:"/api/v1/serversettings",body:e.requestBody,mediaType:"application/json"})}getApiV1ServersettingByKey(e){return r(t,this.http,{method:"GET",url:"/api/v1/serversetting/{key}",path:{key:e.key}})}putApiV1ServersettingByKey(e){return r(t,this.http,{method:"PUT",url:"/api/v1/serversetting/{key}",path:{key:e.key},body:e.requestBody,mediaType:"application/json"})}getApiV1Serverstate(e={}){return r(t,this.http,{method:"GET",url:"/api/v1/serverstate",query:{lastEventId:e.lastEventId,longpoll:e.longpoll,duration:e.duration}})}postApiV1ServerstatePause(e={}){return r(t,this.http,{method:"POST",url:"/api/v1/serverstate/pause",query:{duration:e.duration}})}postApiV1ServerstateResume(){return r(t,this.http,{method:"POST",url:"/api/v1/serverstate/resume"})}getApiV1Systeminfo(){return r(t,this.http,{method:"GET",url:"/api/v1/systeminfo"})}getApiV1SysteminfoFiltergroups(){return r(t,this.http,{method:"GET",url:"/api/v1/systeminfo/filtergroups"})}getApiV1TaskByTaskid(e){return r(t,this.http,{method:"GET",url:"/api/v1/task/{taskid}",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStopaftercurrentfile(e){return r(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stopaftercurrentfile",path:{taskid:e.taskid}})}postApiV1TaskByTaskidStopnow(e){return r(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/stopnow",path:{taskid:e.taskid}})}postApiV1TaskByTaskidAbort(e){return r(t,this.http,{method:"POST",url:"/api/v1/task/{taskid}/abort",path:{taskid:e.taskid}})}getApiV1Uisettings(){return r(t,this.http,{method:"GET",url:"/api/v1/uisettings"})}getApiV1UisettingsByScheme(e){return r(t,this.http,{method:"GET",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme}})}patchApiV1UisettingsByScheme(e){return r(t,this.http,{method:"PATCH",url:"/api/v1/uisettings/{scheme}",path:{scheme:e.scheme},body:e.requestBody,mediaType:"application/json"})}postApiV1WebmoduleByModulekey(e){return r(t,this.http,{method:"POST",url:"/api/v1/webmodule/{modulekey}",path:{modulekey:e.modulekey},body:e.requestBody,mediaType:"application/json"})}getApiV1BackupById(e){return r(t,this.http,{method:"GET",url:"/api/v1/backup/{id}",path:{id:e.id}})}putApiV1BackupById(e){return r(t,this.http,{method:"PUT",url:"/api/v1/backup/{id}",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}deleteApiV1BackupById(e){return r(t,this.http,{method:"DELETE",url:"/api/v1/backup/{id}",path:{id:e.id},query:{"delete-remote-files":e.deleteRemoteFiles,"delete-local-db":e.deleteLocalDb,"captcha-token":e.captchaToken,"captcha-answer":e.captchaAnswer,force:e.force}})}getApiV1BackupByIdFiles(e){return r(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/files",path:{id:e.id},query:{filter:e.filter,time:e.time,"all-versions":e.allVersions,"prefix-only":e.prefixOnly,"folder-contents":e.folderContents}})}getApiV1BackupByIdLog(e){return r(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/log",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdRemotelog(e){return r(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/remotelog",path:{id:e.id},query:{offset:e.offset,pagesize:e.pagesize}})}getApiV1BackupByIdFilesets(e){return r(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/filesets",path:{id:e.id},query:{"include-metadata":e.includeMetadata,"from-remote-only":e.fromRemoteOnly}})}getApiV1BackupByIdExportArgsonly(e){return r(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-argsonly",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExportCmdline(e){return r(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export-cmdline",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase}})}getApiV1BackupByIdExport(e){return r(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/export",path:{id:e.id},query:{"export-passwords":e.exportPasswords,passphrase:e.passphrase,token:e.token}})}getApiV1BackupByIdIsdbusedelsewhere(e){return r(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isdbusedelsewhere",path:{id:e.id}})}getApiV1BackupByIdIsactive(e){return r(t,this.http,{method:"GET",url:"/api/v1/backup/{id}/isactive",path:{id:e.id}})}postApiV1BackupByIdDeletedb(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/deletedb",path:{id:e.id}})}postApiV1BackupByIdMovedb(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/movedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdUpdatedb(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/updatedb",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRestore(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/restore",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdCreatereport(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/createreport",path:{id:e.id}})}postApiV1BackupByIdRepair(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repair",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdRepairupdate(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/repairupdate",path:{id:e.id},body:e.requestBody,mediaType:"application/json"})}postApiV1BackupByIdVacuum(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/vacuum",path:{id:e.id}})}postApiV1BackupByIdVerify(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/verify",path:{id:e.id}})}postApiV1BackupByIdCompact(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/compact",path:{id:e.id}})}postApiV1BackupByIdStart(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/start",path:{id:e.id}})}postApiV1BackupByIdRun(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/run",path:{id:e.id}})}postApiV1BackupByIdReportRemoteSize(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/report-remote-size",path:{id:e.id}})}postApiV1BackupByIdCopytotemp(e){return r(t,this.http,{method:"POST",url:"/api/v1/backup/{id}/copytotemp",path:{id:e.id}})}static \u0275fac=function(a){return new(a||s)(y(c))};static \u0275prov=u({token:s,factory:s.\u0275fac,providedIn:"root"})},x=class s{constructor(e){this.http=e}getApiV1Progressstate(){return r(t,this.http,{method:"GET",url:"/api/v1/progressstate"})}static \u0275fac=function(a){return new(a||s)(y(c))};static \u0275prov=u({token:s,factory:s.\u0275fac,providedIn:"root"})},G=class s{constructor(e){this.http=e}getApiV1Tasks(){return r(t,this.http,{method:"GET",url:"/api/v1/tasks"})}static \u0275fac=function(a){return new(a||s)(y(c))};static \u0275prov=u({token:s,factory:s.\u0275fac,providedIn:"root"})},M=class s{constructor(e){this.http=e}postApiV1UpdatesCheck(){return r(t,this.http,{method:"POST",url:"/api/v1/updates/check"})}static \u0275fac=function(a){return new(a||s)(y(c))};static \u0275prov=u({token:s,factory:s.\u0275fac,providedIn:"root"})},E=class s{constructor(e){this.http=e}getApiV1Webmodules(){return r(t,this.http,{method:"GET",url:"/api/v1/webmodules"})}static \u0275fac=function(a){return new(a||s)(y(c))};static \u0275prov=u({token:s,factory:s.\u0275fac,providedIn:"root"})};export{C as a,x as b,G as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as a,e as b,f as c}from"./chunk-5FBRBL44.js";import"./chunk-RNBIMN7E.js";import"./chunk-AN53EBZI.js";import"./chunk-DNHLTHLR.js";import"./chunk-BX543SH4.js";import"./chunk-DE7MHNNM.js";import"./chunk-GSP4D4JM.js";import"./chunk-EYBBW4ID.js";import"./chunk-IGECPMHY.js";import"./chunk-L2WWHQPN.js";import"./chunk-PY26LA4W.js";import"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";export{b as NONE_OPTION,a as createGeneralForm,c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as a,h as b,i as c}from"./chunk-5FBRBL44.js";import"./chunk-RNBIMN7E.js";import"./chunk-AN53EBZI.js";import"./chunk-DNHLTHLR.js";import"./chunk-BX543SH4.js";import"./chunk-DE7MHNNM.js";import"./chunk-GSP4D4JM.js";import"./chunk-EYBBW4ID.js";import"./chunk-IGECPMHY.js";import"./chunk-L2WWHQPN.js";import"./chunk-PY26LA4W.js";import"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";export{b as createAdvancedOption,a as createOptionsForm,c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as a,k as b}from"./chunk-5FBRBL44.js";import"./chunk-RNBIMN7E.js";import"./chunk-AN53EBZI.js";import"./chunk-DNHLTHLR.js";import"./chunk-BX543SH4.js";import"./chunk-DE7MHNNM.js";import"./chunk-GSP4D4JM.js";import"./chunk-EYBBW4ID.js";import"./chunk-IGECPMHY.js";import"./chunk-L2WWHQPN.js";import"./chunk-PY26LA4W.js";import"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";export{a as createScheduleForm,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as it}from"./chunk-NGPWOMCW.js";var at=60,ot=at*60,ut=ot*24,yt=ut*7,_=1e3,Y=at*_,x=ot*_,H=ut*_,z=yt*_,b="millisecond",g="second",E="minute",N="hour",y="day",k="week",S="month",V="quarter",p="year",w="date",ct="YYYY-MM-DDTHH:mm:ssZ",tt="Invalid Date",ft=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var ht={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var r=["th","st","nd","rd"],e=t%100;return"["+t+(r[(e-20)%10]||r[e]||r[0])+"]"}};var et=function(t,r,e){var s=String(t);return!s||s.length>=r?t:""+Array(r+1-s.length).join(e)+t},pt=function(t){var r=-t.utcOffset(),e=Math.abs(r),s=Math.floor(e/60),n=e%60;return(r<=0?"+":"-")+et(s,2,"0")+":"+et(n,2,"0")},_t=function u(t,r){if(t.date()<r.date())return-u(r,t);var e=(r.year()-t.year())*12+(r.month()-t.month()),s=t.clone().add(e,S),n=r-s<0,i=t.clone().add(e+(n?-1:1),S);return+(-(e+(r-s)/(n?s-i:i-s))||0)},Ot=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},It=function(t){var r={M:S,y:p,w:k,d:y,D:w,h:N,m:E,s:g,ms:b,Q:V};return r[t]||String(t||"").toLowerCase().replace(/s$/,"")},gt=function(t){return t===void 0},dt={s:et,z:pt,m:_t,a:Ot,p:It,u:gt};var P="en",U={};U[P]=ht;var lt="$isDayjsObject",st=function(t){return t instanceof B||!!(t&&t[lt])},X=function u(t,r,e){var s;if(!t)return P;if(typeof t=="string"){var n=t.toLowerCase();U[n]&&(s=n),r&&(U[n]=r,s=n);var i=t.split("-");if(!s&&i.length>1)return u(i[0])}else{var a=t.name;U[a]=t,s=a}return!e&&s&&(P=s),s||!e&&P},v=function(t,r){if(st(t))return t.clone();var e=typeof r=="object"?r:{};return e.date=t,e.args=arguments,new B(e)},Et=function(t,r){return v(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})},h=dt;h.l=X;h.i=st;h.w=Et;var Nt=function(t){var r=t.date,e=t.utc;if(r===null)return new Date(NaN);if(h.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var s=r.match(ft);if(s){var n=s[2]-1||0,i=(s[7]||"0").substring(0,3);return e?new Date(Date.UTC(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)):new Date(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)}}return new Date(r)},B=function(){function u(r){this.$L=X(r.locale,null,!0),this.parse(r),this.$x=this.$x||r.x||{},this[lt]=!0}var t=u.prototype;return t.parse=function(e){this.$d=Nt(e),this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return h},t.isValid=function(){return this.$d.toString()!==tt},t.isSame=function(e,s){var n=v(e);return this.startOf(s)<=n&&n<=this.endOf(s)},t.isAfter=function(e,s){return v(e)<this.startOf(s)},t.isBefore=function(e,s){return this.endOf(s)<v(e)},t.$g=function(e,s,n){return h.u(e)?this[s]:this.set(n,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,s){var n=this,i=h.u(s)?!0:s,a=h.p(e),o=function(I,m){var l=h.w(n.$u?Date.UTC(n.$y,m,I):new Date(n.$y,m,I),n);return i?l:l.endOf(y)},c=function(I,m){var l=[0,0,0,0],D=[23,59,59,999];return h.w(n.toDate()[I].apply(n.toDate("s"),(i?l:D).slice(m)),n)},f=this.$W,$=this.$M,d=this.$D,M="set"+(this.$u?"UTC":"");switch(a){case p:return i?o(1,0):o(31,11);case S:return i?o(1,$):o(0,$+1);case k:{var C=this.$locale().weekStart||0,L=(f<C?f+7:f)-C;return o(i?d-L:d+(6-L),$)}case y:case w:return c(M+"Hours",0);case N:return c(M+"Minutes",1);case E:return c(M+"Seconds",2);case g:return c(M+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,s){var n,i=h.p(e),a="set"+(this.$u?"UTC":""),o=(n={},n[y]=a+"Date",n[w]=a+"Date",n[S]=a+"Month",n[p]=a+"FullYear",n[N]=a+"Hours",n[E]=a+"Minutes",n[g]=a+"Seconds",n[b]=a+"Milliseconds",n)[i],c=i===y?this.$D+(s-this.$W):s;if(i===S||i===p){var f=this.clone().set(w,1);f.$d[o](c),f.init(),this.$d=f.set(w,Math.min(this.$D,f.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},t.set=function(e,s){return this.clone().$set(e,s)},t.get=function(e){return this[h.p(e)]()},t.add=function(e,s){var n=this,i;e=Number(e);var a=h.p(s),o=function(d){var M=v(n);return h.w(M.date(M.date()+Math.round(d*e)),n)};if(a===S)return this.set(S,this.$M+e);if(a===p)return this.set(p,this.$y+e);if(a===y)return o(1);if(a===k)return o(7);var c=(i={},i[E]=Y,i[N]=x,i[g]=_,i)[a]||1,f=this.$d.getTime()+e*c;return h.w(f,this)},t.subtract=function(e,s){return this.add(e*-1,s)},t.format=function(e){var s=this,n=this.$locale();if(!this.isValid())return n.invalidDate||tt;var i=e||ct,a=h.z(this),o=this.$H,c=this.$m,f=this.$M,$=n.weekdays,d=n.months,M=n.meridiem,C=function(l,D,T,W){return l&&(l[D]||l(s,i))||T[D].slice(0,W)},L=function(l){return h.s(o%12||12,l,"0")},O=M||function(m,l,D){var T=m<12?"AM":"PM";return D?T.toLowerCase():T},I=function(l){switch(l){case"YY":return String(s.$y).slice(-2);case"YYYY":return h.s(s.$y,4,"0");case"M":return f+1;case"MM":return h.s(f+1,2,"0");case"MMM":return C(n.monthsShort,f,d,3);case"MMMM":return C(d,f);case"D":return s.$D;case"DD":return h.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return C(n.weekdaysMin,s.$W,$,2);case"ddd":return C(n.weekdaysShort,s.$W,$,3);case"dddd":return $[s.$W];case"H":return String(o);case"HH":return h.s(o,2,"0");case"h":return L(1);case"hh":return L(2);case"a":return O(o,c,!0);case"A":return O(o,c,!1);case"m":return String(c);case"mm":return h.s(c,2,"0");case"s":return String(s.$s);case"ss":return h.s(s.$s,2,"0");case"SSS":return h.s(s.$ms,3,"0");case"Z":return a;default:break}return null};return i.replace(Z,function(m,l){return l||I(m)||a.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(e,s,n){var i=this,a=h.p(s),o=v(e),c=(o.utcOffset()-this.utcOffset())*Y,f=this-o,$=function(){return h.m(i,o)},d;switch(a){case p:d=$()/12;break;case S:d=$();break;case V:d=$()/3;break;case k:d=(f-c)/z;break;case y:d=(f-c)/H;break;case N:d=f/x;break;case E:d=f/Y;break;case g:d=f/_;break;default:d=f;break}return n?d:h.a(d)},t.daysInMonth=function(){return this.endOf(S).$D},t.$locale=function(){return U[this.$L]},t.locale=function(e,s){if(!e)return this.$L;var n=this.clone(),i=X(e,s,!0);return i&&(n.$L=i),n},t.clone=function(){return h.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},u}(),vt=B.prototype;v.prototype=vt;[["$ms",b],["$s",g],["$m",E],["$H",N],["$W",y],["$M",S],["$y",p],["$D",w]].forEach(function(u){vt[u[1]]=function(t){return this.$g(t,u[0],u[1])}});v.extend=function(u,t){return u.$i||(u(t,B,v),u.$i=!0),v};v.locale=X;v.isDayjs=st;v.unix=function(u){return v(u*1e3)};v.en=U[P];v.Ls=U;v.p={};var K=v;var q=H*365,nt=q/12,At=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,j={years:q,months:nt,days:H,hours:x,minutes:Y,seconds:_,milliseconds:1,weeks:z},Q=function(t){return t instanceof St},mt,A,G=function(t,r,e){return new St(t,e,r.$l)},J=function(t){return A.p(t)+"s"},Mt=function(t){return t<0},F=function(t){return Mt(t)?Math.ceil(t):Math.floor(t)},Lt=function(t){return Math.abs(t)},R=function(t,r){return t?Mt(t)?{negative:!0,format:""+Lt(t)+r}:{negative:!1,format:""+t+r}:{negative:!1,format:""}},St=function(){function u(r,e,s){var n=this;if(this.$d={},this.$l=s,r===void 0&&(this.$ms=0,this.parseFromMilliseconds()),e)return G(r*j[J(e)],this);if(typeof r=="number")return this.$ms=r,this.parseFromMilliseconds(),this;if(typeof r=="object")return Object.keys(r).forEach(function(c){n.$d[J(c)]=r[c]}),this.calMilliseconds(),this;if(typeof r=="string"){var i=r.match(At);if(i){var a=i.slice(2),o=a.map(function(c){return c!=null?Number(c):0});return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var t=u.prototype;return t.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(s,n){return s+(e.$d[n]||0)*j[n]},0)},t.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=F(e/q),e%=q,this.$d.months=F(e/nt),e%=nt,this.$d.days=F(e/H),e%=H,this.$d.hours=F(e/x),e%=x,this.$d.minutes=F(e/Y),e%=Y,this.$d.seconds=F(e/_),e%=_,this.$d.milliseconds=e},t.toISOString=function(){var e=R(this.$d.years,"Y"),s=R(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=this.$d.weeks*7);var i=R(n,"D"),a=R(this.$d.hours,"H"),o=R(this.$d.minutes,"M"),c=this.$d.seconds||0;this.$d.milliseconds&&(c+=this.$d.milliseconds/1e3,c=Math.round(c*1e3)/1e3);var f=R(c,"S"),$=e.negative||s.negative||i.negative||a.negative||o.negative||f.negative,d=a.format||o.format||f.format?"T":"",M=$?"-":"",C=M+"P"+e.format+s.format+i.format+d+a.format+o.format+f.format;return C==="P"||C==="-P"?"P0D":C},t.toJSON=function(){return this.toISOString()},t.format=function(e){var s=e||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:A.s(this.$d.years,2,"0"),YYYY:A.s(this.$d.years,4,"0"),M:this.$d.months,MM:A.s(this.$d.months,2,"0"),D:this.$d.days,DD:A.s(this.$d.days,2,"0"),H:this.$d.hours,HH:A.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:A.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:A.s(this.$d.seconds,2,"0"),SSS:A.s(this.$d.milliseconds,3,"0")};return s.replace(Z,function(i,a){return a||String(n[i])})},t.as=function(e){return this.$ms/j[J(e)]},t.get=function(e){var s=this.$ms,n=J(e);return n==="milliseconds"?s%=1e3:n==="weeks"?s=F(s/j[n]):s=this.$d[n],s||0},t.add=function(e,s,n){var i;return s?i=e*j[J(s)]:Q(e)?i=e.$ms:i=G(e,this).$ms,G(this.$ms+i*(n?-1:1),this)},t.subtract=function(e,s){return this.add(e,s,!0)},t.locale=function(e){var s=this.clone();return s.$l=e,s},t.clone=function(){return G(this.$ms,this)},t.humanize=function(e){return mt().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},u}(),$t=function(t,r,e){return t.add(r.years()*e,"y").add(r.months()*e,"M").add(r.days()*e,"d").add(r.hours()*e,"h").add(r.minutes()*e,"m").add(r.seconds()*e,"s").add(r.milliseconds()*e,"ms")},Ct=function(u,t,r){mt=r,A=r().$utils(),r.duration=function(n,i){var a=r.locale();return G(n,{$l:a},i)},r.isDuration=Q;var e=t.prototype.add,s=t.prototype.subtract;t.prototype.add=function(n,i){return Q(n)?$t(this,n,1):e.bind(this)(n,i)},t.prototype.subtract=function(n,i){return Q(n)?$t(this,n,-1):s.bind(this)(n,i)}};var Dt=function(u,t,r){u=u||{};var e=t.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};r.en.relativeTime=s,e.fromToBase=function(a,o,c,f,$){for(var d=c.$locale().relativeTime||s,M=u.thresholds||[{l:"s",r:44,d:g},{l:"m",r:89},{l:"mm",r:44,d:E},{l:"h",r:89},{l:"hh",r:21,d:N},{l:"d",r:35},{l:"dd",r:25,d:y},{l:"M",r:45},{l:"MM",r:10,d:S},{l:"y",r:17},{l:"yy",d:p}],C=M.length,L,O,I,m=0;m<C;m+=1){var l=M[m];l.d&&(L=f?r(a).diff(c,l.d,!0):c.diff(a,l.d,!0));var D=(u.rounding||Math.round)(Math.abs(L));if(I=L>0,D<=l.r||!l.r){D<=1&&m>0&&(l=M[m-1]);var T=d[l.l];$&&(D=$(""+D)),typeof T=="string"?O=T.replace("%d",D):O=T(D,o,l.l,I);break}}if(o)return O;var W=I?d.future:d.past;return typeof W=="function"?W(O):W.replace("%s",O)};function n(a,o,c,f){return e.fromToBase(a,o,c,f)}e.to=function(a,o){return n(a,o,this,!0)},e.from=function(a,o){return n(a,o,this)};var i=function(o){return o.$u?r.utc():r()};e.toNow=function(a){return this.to(i(this),a)},e.fromNow=function(a){return this.from(i(this),a)}};var Tt=new it("Dayjs"),Gt={provide:Tt,useFactory:()=>(K.extend(Dt),K.extend(Ct),K)};export{Tt as a,Gt as b};
|
|
1
|
+
import{R as it}from"./chunk-FKB7BVQE.js";var at=60,ot=at*60,ut=ot*24,yt=ut*7,_=1e3,Y=at*_,x=ot*_,H=ut*_,z=yt*_,b="millisecond",g="second",E="minute",N="hour",y="day",k="week",S="month",V="quarter",p="year",w="date",ct="YYYY-MM-DDTHH:mm:ssZ",tt="Invalid Date",ft=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var ht={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var r=["th","st","nd","rd"],e=t%100;return"["+t+(r[(e-20)%10]||r[e]||r[0])+"]"}};var et=function(t,r,e){var s=String(t);return!s||s.length>=r?t:""+Array(r+1-s.length).join(e)+t},pt=function(t){var r=-t.utcOffset(),e=Math.abs(r),s=Math.floor(e/60),n=e%60;return(r<=0?"+":"-")+et(s,2,"0")+":"+et(n,2,"0")},_t=function u(t,r){if(t.date()<r.date())return-u(r,t);var e=(r.year()-t.year())*12+(r.month()-t.month()),s=t.clone().add(e,S),n=r-s<0,i=t.clone().add(e+(n?-1:1),S);return+(-(e+(r-s)/(n?s-i:i-s))||0)},Ot=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},It=function(t){var r={M:S,y:p,w:k,d:y,D:w,h:N,m:E,s:g,ms:b,Q:V};return r[t]||String(t||"").toLowerCase().replace(/s$/,"")},gt=function(t){return t===void 0},dt={s:et,z:pt,m:_t,a:Ot,p:It,u:gt};var P="en",U={};U[P]=ht;var lt="$isDayjsObject",st=function(t){return t instanceof B||!!(t&&t[lt])},X=function u(t,r,e){var s;if(!t)return P;if(typeof t=="string"){var n=t.toLowerCase();U[n]&&(s=n),r&&(U[n]=r,s=n);var i=t.split("-");if(!s&&i.length>1)return u(i[0])}else{var a=t.name;U[a]=t,s=a}return!e&&s&&(P=s),s||!e&&P},v=function(t,r){if(st(t))return t.clone();var e=typeof r=="object"?r:{};return e.date=t,e.args=arguments,new B(e)},Et=function(t,r){return v(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})},h=dt;h.l=X;h.i=st;h.w=Et;var Nt=function(t){var r=t.date,e=t.utc;if(r===null)return new Date(NaN);if(h.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var s=r.match(ft);if(s){var n=s[2]-1||0,i=(s[7]||"0").substring(0,3);return e?new Date(Date.UTC(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)):new Date(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)}}return new Date(r)},B=function(){function u(r){this.$L=X(r.locale,null,!0),this.parse(r),this.$x=this.$x||r.x||{},this[lt]=!0}var t=u.prototype;return t.parse=function(e){this.$d=Nt(e),this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return h},t.isValid=function(){return this.$d.toString()!==tt},t.isSame=function(e,s){var n=v(e);return this.startOf(s)<=n&&n<=this.endOf(s)},t.isAfter=function(e,s){return v(e)<this.startOf(s)},t.isBefore=function(e,s){return this.endOf(s)<v(e)},t.$g=function(e,s,n){return h.u(e)?this[s]:this.set(n,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,s){var n=this,i=h.u(s)?!0:s,a=h.p(e),o=function(I,m){var l=h.w(n.$u?Date.UTC(n.$y,m,I):new Date(n.$y,m,I),n);return i?l:l.endOf(y)},c=function(I,m){var l=[0,0,0,0],D=[23,59,59,999];return h.w(n.toDate()[I].apply(n.toDate("s"),(i?l:D).slice(m)),n)},f=this.$W,$=this.$M,d=this.$D,M="set"+(this.$u?"UTC":"");switch(a){case p:return i?o(1,0):o(31,11);case S:return i?o(1,$):o(0,$+1);case k:{var C=this.$locale().weekStart||0,L=(f<C?f+7:f)-C;return o(i?d-L:d+(6-L),$)}case y:case w:return c(M+"Hours",0);case N:return c(M+"Minutes",1);case E:return c(M+"Seconds",2);case g:return c(M+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,s){var n,i=h.p(e),a="set"+(this.$u?"UTC":""),o=(n={},n[y]=a+"Date",n[w]=a+"Date",n[S]=a+"Month",n[p]=a+"FullYear",n[N]=a+"Hours",n[E]=a+"Minutes",n[g]=a+"Seconds",n[b]=a+"Milliseconds",n)[i],c=i===y?this.$D+(s-this.$W):s;if(i===S||i===p){var f=this.clone().set(w,1);f.$d[o](c),f.init(),this.$d=f.set(w,Math.min(this.$D,f.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},t.set=function(e,s){return this.clone().$set(e,s)},t.get=function(e){return this[h.p(e)]()},t.add=function(e,s){var n=this,i;e=Number(e);var a=h.p(s),o=function(d){var M=v(n);return h.w(M.date(M.date()+Math.round(d*e)),n)};if(a===S)return this.set(S,this.$M+e);if(a===p)return this.set(p,this.$y+e);if(a===y)return o(1);if(a===k)return o(7);var c=(i={},i[E]=Y,i[N]=x,i[g]=_,i)[a]||1,f=this.$d.getTime()+e*c;return h.w(f,this)},t.subtract=function(e,s){return this.add(e*-1,s)},t.format=function(e){var s=this,n=this.$locale();if(!this.isValid())return n.invalidDate||tt;var i=e||ct,a=h.z(this),o=this.$H,c=this.$m,f=this.$M,$=n.weekdays,d=n.months,M=n.meridiem,C=function(l,D,T,W){return l&&(l[D]||l(s,i))||T[D].slice(0,W)},L=function(l){return h.s(o%12||12,l,"0")},O=M||function(m,l,D){var T=m<12?"AM":"PM";return D?T.toLowerCase():T},I=function(l){switch(l){case"YY":return String(s.$y).slice(-2);case"YYYY":return h.s(s.$y,4,"0");case"M":return f+1;case"MM":return h.s(f+1,2,"0");case"MMM":return C(n.monthsShort,f,d,3);case"MMMM":return C(d,f);case"D":return s.$D;case"DD":return h.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return C(n.weekdaysMin,s.$W,$,2);case"ddd":return C(n.weekdaysShort,s.$W,$,3);case"dddd":return $[s.$W];case"H":return String(o);case"HH":return h.s(o,2,"0");case"h":return L(1);case"hh":return L(2);case"a":return O(o,c,!0);case"A":return O(o,c,!1);case"m":return String(c);case"mm":return h.s(c,2,"0");case"s":return String(s.$s);case"ss":return h.s(s.$s,2,"0");case"SSS":return h.s(s.$ms,3,"0");case"Z":return a;default:break}return null};return i.replace(Z,function(m,l){return l||I(m)||a.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(e,s,n){var i=this,a=h.p(s),o=v(e),c=(o.utcOffset()-this.utcOffset())*Y,f=this-o,$=function(){return h.m(i,o)},d;switch(a){case p:d=$()/12;break;case S:d=$();break;case V:d=$()/3;break;case k:d=(f-c)/z;break;case y:d=(f-c)/H;break;case N:d=f/x;break;case E:d=f/Y;break;case g:d=f/_;break;default:d=f;break}return n?d:h.a(d)},t.daysInMonth=function(){return this.endOf(S).$D},t.$locale=function(){return U[this.$L]},t.locale=function(e,s){if(!e)return this.$L;var n=this.clone(),i=X(e,s,!0);return i&&(n.$L=i),n},t.clone=function(){return h.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},u}(),vt=B.prototype;v.prototype=vt;[["$ms",b],["$s",g],["$m",E],["$H",N],["$W",y],["$M",S],["$y",p],["$D",w]].forEach(function(u){vt[u[1]]=function(t){return this.$g(t,u[0],u[1])}});v.extend=function(u,t){return u.$i||(u(t,B,v),u.$i=!0),v};v.locale=X;v.isDayjs=st;v.unix=function(u){return v(u*1e3)};v.en=U[P];v.Ls=U;v.p={};var K=v;var q=H*365,nt=q/12,At=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,j={years:q,months:nt,days:H,hours:x,minutes:Y,seconds:_,milliseconds:1,weeks:z},Q=function(t){return t instanceof St},mt,A,G=function(t,r,e){return new St(t,e,r.$l)},J=function(t){return A.p(t)+"s"},Mt=function(t){return t<0},F=function(t){return Mt(t)?Math.ceil(t):Math.floor(t)},Lt=function(t){return Math.abs(t)},R=function(t,r){return t?Mt(t)?{negative:!0,format:""+Lt(t)+r}:{negative:!1,format:""+t+r}:{negative:!1,format:""}},St=function(){function u(r,e,s){var n=this;if(this.$d={},this.$l=s,r===void 0&&(this.$ms=0,this.parseFromMilliseconds()),e)return G(r*j[J(e)],this);if(typeof r=="number")return this.$ms=r,this.parseFromMilliseconds(),this;if(typeof r=="object")return Object.keys(r).forEach(function(c){n.$d[J(c)]=r[c]}),this.calMilliseconds(),this;if(typeof r=="string"){var i=r.match(At);if(i){var a=i.slice(2),o=a.map(function(c){return c!=null?Number(c):0});return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var t=u.prototype;return t.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(s,n){return s+(e.$d[n]||0)*j[n]},0)},t.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=F(e/q),e%=q,this.$d.months=F(e/nt),e%=nt,this.$d.days=F(e/H),e%=H,this.$d.hours=F(e/x),e%=x,this.$d.minutes=F(e/Y),e%=Y,this.$d.seconds=F(e/_),e%=_,this.$d.milliseconds=e},t.toISOString=function(){var e=R(this.$d.years,"Y"),s=R(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=this.$d.weeks*7);var i=R(n,"D"),a=R(this.$d.hours,"H"),o=R(this.$d.minutes,"M"),c=this.$d.seconds||0;this.$d.milliseconds&&(c+=this.$d.milliseconds/1e3,c=Math.round(c*1e3)/1e3);var f=R(c,"S"),$=e.negative||s.negative||i.negative||a.negative||o.negative||f.negative,d=a.format||o.format||f.format?"T":"",M=$?"-":"",C=M+"P"+e.format+s.format+i.format+d+a.format+o.format+f.format;return C==="P"||C==="-P"?"P0D":C},t.toJSON=function(){return this.toISOString()},t.format=function(e){var s=e||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:A.s(this.$d.years,2,"0"),YYYY:A.s(this.$d.years,4,"0"),M:this.$d.months,MM:A.s(this.$d.months,2,"0"),D:this.$d.days,DD:A.s(this.$d.days,2,"0"),H:this.$d.hours,HH:A.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:A.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:A.s(this.$d.seconds,2,"0"),SSS:A.s(this.$d.milliseconds,3,"0")};return s.replace(Z,function(i,a){return a||String(n[i])})},t.as=function(e){return this.$ms/j[J(e)]},t.get=function(e){var s=this.$ms,n=J(e);return n==="milliseconds"?s%=1e3:n==="weeks"?s=F(s/j[n]):s=this.$d[n],s||0},t.add=function(e,s,n){var i;return s?i=e*j[J(s)]:Q(e)?i=e.$ms:i=G(e,this).$ms,G(this.$ms+i*(n?-1:1),this)},t.subtract=function(e,s){return this.add(e,s,!0)},t.locale=function(e){var s=this.clone();return s.$l=e,s},t.clone=function(){return G(this.$ms,this)},t.humanize=function(e){return mt().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},u}(),$t=function(t,r,e){return t.add(r.years()*e,"y").add(r.months()*e,"M").add(r.days()*e,"d").add(r.hours()*e,"h").add(r.minutes()*e,"m").add(r.seconds()*e,"s").add(r.milliseconds()*e,"ms")},Ct=function(u,t,r){mt=r,A=r().$utils(),r.duration=function(n,i){var a=r.locale();return G(n,{$l:a},i)},r.isDuration=Q;var e=t.prototype.add,s=t.prototype.subtract;t.prototype.add=function(n,i){return Q(n)?$t(this,n,1):e.bind(this)(n,i)},t.prototype.subtract=function(n,i){return Q(n)?$t(this,n,-1):s.bind(this)(n,i)}};var Dt=function(u,t,r){u=u||{};var e=t.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};r.en.relativeTime=s,e.fromToBase=function(a,o,c,f,$){for(var d=c.$locale().relativeTime||s,M=u.thresholds||[{l:"s",r:44,d:g},{l:"m",r:89},{l:"mm",r:44,d:E},{l:"h",r:89},{l:"hh",r:21,d:N},{l:"d",r:35},{l:"dd",r:25,d:y},{l:"M",r:45},{l:"MM",r:10,d:S},{l:"y",r:17},{l:"yy",d:p}],C=M.length,L,O,I,m=0;m<C;m+=1){var l=M[m];l.d&&(L=f?r(a).diff(c,l.d,!0):c.diff(a,l.d,!0));var D=(u.rounding||Math.round)(Math.abs(L));if(I=L>0,D<=l.r||!l.r){D<=1&&m>0&&(l=M[m-1]);var T=d[l.l];$&&(D=$(""+D)),typeof T=="string"?O=T.replace("%d",D):O=T(D,o,l.l,I);break}}if(o)return O;var W=I?d.future:d.past;return typeof W=="function"?W(O):W.replace("%s",O)};function n(a,o,c,f){return e.fromToBase(a,o,c,f)}e.to=function(a,o){return n(a,o,this,!0)},e.from=function(a,o){return n(a,o,this)};var i=function(o){return o.$u?r.utc():r()};e.toNow=function(a){return this.to(i(this),a)},e.fromNow=function(a){return this.from(i(this),a)}};var Tt=new it("Dayjs"),Gt={provide:Tt,useFactory:()=>(K.extend(Dt),K.extend(Ct),K)};export{Tt as a,Gt as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as h}from"./chunk-
|
|
1
|
+
import{b as h}from"./chunk-BX543SH4.js";import{a as s}from"./chunk-PY26LA4W.js";import{Db as o,Eb as c,La as p,Mb as m,U as g,W as r,ib as t,jb as n}from"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";var a=class i{#e=g(s);changelog=h(this.#e.getApiV1Changelog());static \u0275fac=function(e){return new(e||i)};static \u0275cmp=r({type:i,selectors:[["app-changelog"]],standalone:!0,features:[m],decls:4,vars:1,template:function(e,u){if(e&1&&(t(0,"h3"),o(1,"Changelog"),n(),t(2,"pre"),o(3),n()),e&2){let l;p(3),c((l=u.changelog())==null?null:l.Changelog)}},styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}"],changeDetection:0})};export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as re}from"./chunk-DE7MHNNM.js";import{a as I,d as ae,i as ce,j as de,r as pe}from"./chunk-EYBBW4ID.js";import{a as se}from"./chunk-PY26LA4W.js";import{$a as $,Ab as K,Bb as ne,Cb as Q,D as W,Db as h,Fb as U,La as d,Mb as B,Ob as D,Pb as ie,Ra as T,Sa as H,U as Y,Ua as Z,Ub as oe,W as O,Za as g,ab as z,bb as f,cc as V,ea as w,eb as b,ec as E,fa as k,gb as ee,hb as te,ib as r,jb as a,nb as q,nc as le,ob as N,pa as R,pb as P,qa as _,qb as p,rb as A,sb as y,v as X}from"./chunk-FKB7BVQE.js";import{a as C,b as v}from"./chunk-7CGTOI24.js";var Ce=["treeContainer"],ve=["formRef"],Te=[[["label"]],[["label"]],[["input"]]],be=["label","label","input"],Pe=(i,e)=>e.id,xe=i=>({children:i,level:0}),ue=i=>({$implicit:i}),ye=(i,e)=>({children:i,level:e});function Se(i,e){if(i&1){let t=N();r(0,"spk-button-group")(1,"button",8),P("click",function(){w(t);let o=p();return k(o.pathDiscoveryMethod.set("browse"))}),h(2," Browser path "),a(),r(3,"button",8),P("click",function(){w(t);let o=p();return k(o.pathDiscoveryMethod.set("path"))}),h(4," Manually type path "),a()()}if(i&2){let t=p();d(),f("active",t.pathDiscoveryMethod()==="browse"),d(2),f("active",t.pathDiscoveryMethod()==="path")}}function we(i,e){i&1&&(r(0,"spk-icon",11),h(1,"folder-open"),a())}function ke(i,e){i&1&&(r(0,"spk-icon"),h(1,"file"),a())}function Fe(i,e){i&1&&(r(0,"spk-icon",11),h(1,"folder"),a())}function Me(i,e){if(i&1&&g(0,we,2,0,"spk-icon",11)(1,ke,2,0,"spk-icon")(2,Fe,2,0,"spk-icon",11),i&2){let t=p(2).$implicit;b(t.children.length?0:t.cls==="file"?1:2)}}function Ee(i,e){i&1&&(r(0,"spk-icon",11),h(1,"desktop-tower"),a())}function Oe(i,e){i&1&&q(0)}function Ne(i,e){if(i&1&&g(0,Oe,1,0,"ng-container",6),i&2){let t=p(2).$implicit,n=p().$implicit;p();let o=Q(6);$("ngTemplateOutlet",o)("ngTemplateOutletContext",D(5,ue,ie(2,ye,t.children,n.level+1)))}}function Ae(i,e){if(i&1){let t=N();r(0,"div",9,3),P("click",function(o){w(t);let s=p().$implicit,l=p(2);return k(s.id!=="/"&&l.toggleNode(o,s.id,s))}),r(2,"div",10),g(3,Me,3,1)(4,Ee,2,0,"spk-icon",11),a(),r(5,"div",12),P("click",function(o){w(t);let s=p().$implicit,l=p(2);return k(s.id!=="/"&&l.toggleSelectedNode(o,s))}),h(6),a()(),g(7,Ne,1,7,"ng-container")}if(i&2){let t=p().$implicit;f("active",t.isSelected)("open",t.children.length)("usually-hidden",t.hidden),d(3),b(t.id!=="/"?3:4),d(3),U(" ",t.text," "),d(),b(t.children.length>0?7:-1)}}function Be(i,e){if(i&1&&g(0,Ae,8,9),i&2){let t=e.$implicit,n=p(2);b(t.hidden&&n.showHiddenFiles()||!t.hidden?0:-1)}}function De(i,e){if(i&1&&(r(0,"spk-list"),ee(1,Be,1,1,null,null,Pe),a()),i&2){let t=e.$implicit;z("padding-left",t.level*.5,"rem"),d(),te(t.children)}}function Ve(i,e){i&1&&q(0)}var G=class i{#t=Y(se);multiSelect=_(!1);disabled=_(!1);showFiles=_(!1);startingPath=_(null);rootPath=_(void 0);backupSettings=_(null);includes=R();excludes=R();treeContainerRef=H("treeContainer");formRef=H("formRef");pathDiscoveryMethod=T("browse");isLoading=T(!1);showHiddenFiles=T(!1);currentPath=T("/");#e=T(null);treeSearchQuery=T("");treeNodes=T([]);isByBackupSettings=V(()=>this.rootPath()&&this.backupSettings()?.id&&this.backupSettings()?.time);searchableTreeNodes=V(()=>{let e=this.treeSearchQuery();return e?this.treeNodes().filter(t=>t.text?.toLowerCase().includes(e.toLowerCase())):this.treeNodes()});treeStructure=V(()=>{let e=this.searchableTreeNodes(),t=new Map,n=this.rootPath(),o=n?{id:n,resolvedpath:n,text:n?.replaceAll("/",""),parentPath:"",children:[],isSelected:!1,cls:"folder"}:{id:"/",resolvedpath:"/",text:"Computer",parentPath:"",children:[],isSelected:!1};t.set("/",o);for(let s of e){let u=s.id.replace(n??"","").split("/").filter(Boolean),c="",x=o;for(let m of u){if(c+="/"+m,!t.has(c)){let F={id:s.id,isSelected:s.isSelected,parentPath:c,resolvedpath:s.id?.startsWith("%")?s.resolvedpath+"/":c,hidden:s.hidden,text:s.text,cls:s.cls,children:[]};t.set(c,F),x.children.push(F)}x=t.get(c)}}return[o]});pathDiscoveryMethodEffect=E(()=>{let e=this.pathDiscoveryMethod(),t=this.#e();if(e==="browse"&&t)if(this.multiSelect()){let n=t.value.split("\0");this.treeNodes.update(o=>o.map(s=>v(C({},s),{isSelected:typeof s.id=="string"&&n.includes(s.id)})))}else this.treeNodes.update(n=>n.map(o=>v(C({},o),{isSelected:o.id===t.value})))},{allowSignalWrites:!0});#a(){let e=this.treeContainerRef()?.nativeElement.querySelectorAll(".active");e&&e.length>0&&e[0].scrollIntoView({behavior:"smooth",block:"center"})}currentPathEffect=E(()=>{let e=this.#e();e&&(e.value=this.currentPath(),e.dispatchEvent(new Event("input")))},{allowSignalWrites:!0});selectedPathsEffect=E(()=>{if(this.multiSelect()){let e=this.treeNodes().filter(l=>l.isSelected),t=this.treeNodes().filter(l=>!l.isSelected&&e.some(u=>l.id?.startsWith(u.id))),n=e.filter(l=>!e.some(u=>l.id!==u.id&&l.id?.startsWith(u.id))).map(l=>l.id),o=t.filter(l=>!t.some(u=>l.id!==u.id&&l.id?.startsWith(u.id))).map(l=>`-${l.id}`);this.excludes.emit(o);let s=[...n,...o];this.currentPath.set(s.join("\0"))}else{let e=this.treeNodes().find(n=>n.isSelected),t=e?.resolvedpath;this.currentPath.set(e?.id??"")}},{allowSignalWrites:!0});inputValueChangeAbortController=null;inputRefEffect=E(()=>{let e=this.formRef()?.nativeElement?.querySelector("input");e&&(this.#o(e),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,e.addEventListener("inputValueChanged",t=>{this.currentPath.set(t.detail.value)},{signal:this.inputValueChangeAbortController.signal}),this.#e.set(e),e.autocomplete="off")},{allowSignalWrites:!0});ngOnInit(){let e=this.startingPath();e?(this.currentPath.set(e),this.#r(e)):this.#i(null,this.rootPath())}toggleSelectedNode(e,t){e.stopPropagation(),this.multiSelect()?this.treeNodes.update(n=>n.map(o=>o.id?.startsWith(t.id)?v(C({},o),{isSelected:!t.isSelected}):o)):this.treeNodes.update(n=>n.map(o=>o.id===t.id?v(C({},o),{isSelected:!t.isSelected}):v(C({},o),{isSelected:!1})))}toggleNode(e,t,n=null){e.stopPropagation(),n?.children.length?this.treeNodes.update(o=>o.filter(s=>!s.id?.startsWith(n.id)||s.id===n.id)):this.#i(n,t)}#o(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}})),t}}),e}#l(e){return this.#t.postApiV1Filesystem({showHidden:!0,requestBody:{path:e},onlyFolders:!this.showFiles()})}#s(e){let t=this.backupSettings(),n={id:t.id,time:t.time,prefixOnly:!1,folderContents:!0};return e&&(n.filter="@"+e),this.#t.getApiV1BackupByIdFiles(n)}#n(e){return this.isByBackupSettings()?this.#s(e):this.#l(e)}#r(e){let t=e.split("\0").filter(l=>l.startsWith("-")).map(l=>l.slice(1,-1)),n=e.split("\0").filter(l=>!l.startsWith("-")).filter(Boolean),o=n.map(l=>l.split("/").filter(Boolean)),s=[this.rootPath()??"/"];o.forEach(l=>{l.forEach((u,c)=>{let x=l.slice(0,c+1).join("/"),m=x.startsWith("%")?x:"/"+x;s.includes(m)||s.push(m)})}),this.isLoading.set(!0),X([...s.map(l=>this.#n(l))]).pipe(W(()=>this.isLoading.set(!1))).subscribe({next:l=>{this.treeNodes.update(u=>{let c=l.flatMap(m=>m.map(F=>{let M=F.id,j=M&&M.split("/").filter(Boolean).slice(0,-1).join("/"),L="/"+(M&&M.split("/").filter(Boolean).join("/")),he=n.findIndex(S=>this.multiSelect()?L.startsWith(S):L===S)>-1,me=n.findIndex(S=>S===M)>-1,ge=t.findIndex(S=>S===L)>-1;return v(C({},F),{parentPath:j.startsWith("%")?j:"/"+j,isSelected:he&&!ge||me})}));return[...new Map([...u,...c].map(m=>[m.resolvedpath??m.id,m])).values()]})}})}#i(e=null,t="/"){this.isLoading.set(!0),this.#n(t).pipe(W(()=>this.isLoading.set(!1))).subscribe({next:n=>{let o=this.isByBackupSettings()?n.Files.map(s=>({text:s.Path.split("/").filter(l=>l!=="").pop(),id:s.Path,cls:s.Path.endsWith("/")?"folder":"file",leaf:e!==null,resolvedpath:s.Path,hidden:!1})):n;this.treeNodes.update(s=>{let l=o.map(c=>v(C({},c),{parentPath:t,isSelected:(this.multiSelect()&&e?.isSelected)??!1}));return[...new Map([...s,...l].map(c=>[c.resolvedpath??c.id,c])).values()]})}})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=O({type:i,selectors:[["app-file-tree"]],viewQuery:function(t,n){t&1&&(K(n.treeContainerRef,Ce,5),K(n.formRef,ve,5)),t&2&&ne(2)},hostVars:2,hostBindings:function(t,n){t&2&&f("disabled",n.disabled())},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],startingPath:[1,"startingPath"],rootPath:[1,"rootPath"],backupSettings:[1,"backupSettings"]},outputs:{includes:"includes",excludes:"excludes"},standalone:!0,features:[B],ngContentSelectors:be,decls:15,vars:14,consts:[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],[1,"section"],[1,"browse-files"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"primary","raised","browse-files-toggle",3,"click"],["type","button",3,"click"],["action","",3,"click"],[1,"icon"],[1,"spk-primary"],[1,"text",3,"click"]],template:function(t,n){if(t&1){let o=N();A(Te),g(0,Se,5,4,"spk-button-group"),r(1,"div",4),y(2,0,["ngProjectAs","label",5,["label"]]),r(3,"div",5,0),g(5,De,3,2,"ng-template",null,1,oe)(7,Ve,1,0,"ng-container",6),a(),r(8,"spk-toggle",7),P("click",function(){return w(o),k(n.showHiddenFiles.set(!n.showHiddenFiles()))}),h(9),a()(),r(10,"div",null,2)(12,"spk-form-field"),y(13,1,["ngProjectAs","label",5,["label"]]),y(14,2,["ngProjectAs","input",5,["input"]]),a()()}if(t&2){let o=Q(6);b(n.multiSelect()?-1:0),d(),f("hidden",n.pathDiscoveryMethod()!=="browse"),d(6),$("ngTemplateOutlet",o)("ngTemplateOutletContext",D(12,ue,D(10,xe,n.treeStructure()))),d(),f("active",n.showHiddenFiles()),d(),U(" Show hidden ",n.showFiles()?"files":"folders"," "),d(3),f("hidden",n.pathDiscoveryMethod()!=="path")}},dependencies:[ae,pe,I,ce,de,le,re],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);overflow:auto;resize:vertical}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-level-30);gap:0;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:.25rem}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-level-60R)}.hidden[_ngcontent-%COMP%]{display:none}'],changeDetection:0})};var Ie=[[["","title",""]],"*"],je=["[title]","*"];function Le(i,e){i&1&&h(0,"Title")}function We(i,e){i&1&&(r(0,"spk-icon"),h(1,"caret-down"),a())}var J=class i{isActive=Z(!1);disallowToggle=_(!1);ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=O({type:i,selectors:[["app-toggle-card"]],hostVars:2,hostBindings:function(t,n){t&2&&f("active",n.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},standalone:!0,features:[B],ngContentSelectors:je,decls:6,vars:1,consts:[[3,"click"],[1,"content"]],template:function(t,n){t&1&&(A(Ie),r(0,"h3",0),P("click",function(){return n.disallowToggle()||n.toggle()}),y(1,0,null,Le,1,0),g(3,We,2,0,"spk-icon"),a(),r(4,"div",1),y(5,1),a()),t&2&&(d(3),b(n.disallowToggle()?-1:3))},dependencies:[I],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;border-radius:var(--shape-3);background-color:var(--base-level-20)}.active[_nghost-%COMP%] .content[_ngcontent-%COMP%]{max-height:1000px;transition:max-height 1s linear;padding:0 1rem 1rem}.active[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--paragraph-10);padding:1rem;cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(0);transform-origin:center;transition:transform .2s ease}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:0 1rem;overflow:hidden;max-height:0;transition:max-height .25s linear,padding .25s linear}"],changeDetection:0})};export{G as a,J as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as S}from"./chunk-C7JVFVNG.js";import"./chunk-SHLX3F4G.js";import"./chunk-RNBIMN7E.js";import"./chunk-BX543SH4.js";import"./chunk-DE7MHNNM.js";import{m as C,q as v}from"./chunk-EYBBW4ID.js";import{a as f,b as k,d as w,e as g}from"./chunk-IGECPMHY.js";import"./chunk-L2WWHQPN.js";import"./chunk-PY26LA4W.js";import{$a as a,Db as p,La as s,Mb as d,Ob as l,U as r,W as u,ib as o,jb as n,kb as i}from"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";var F=e=>["/restore-flow",e,"select-files"],R=e=>["/restore-flow",e,"options"],c=class e{#t=r(f);#e=r(S);backupId=this.#e.backupId;ngOnInit(){this.#e.init(this.#t.snapshot.params.id)}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=u({type:e,selectors:[["app-restore-flow"]],standalone:!0,features:[d],decls:9,vars:6,consts:[["step","","routerLinkActive","active",3,"routerLink"]],template:function(t,m){t&1&&(o(0,"spk-stepper")(1,"div",0),i(2,"spk-radio"),p(3," Select files "),n(),o(4,"div",0),i(5,"spk-radio"),p(6," Options "),n()(),o(7,"section"),i(8,"router-outlet"),n()),t&2&&(s(),a("routerLink",l(2,F,m.backupId())),s(3),a("routerLink",l(4,R,m.backupId())))},dependencies:[v,C,k,w,g],styles:["[_nghost-%COMP%]{display:block}spk-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}"],changeDetection:0})};export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-AM4UDAZB.js";import{O as s,Ra as e,U as i,ec as r}from"./chunk-FKB7BVQE.js";var o=class t{#t=i(a);#a=this.#t.getItemParsed("darkTheme",!0);#e=e(!1);#s=e(window?.innerWidth<=768);#i=e(!1);isDarkMode=this.#e.asReadonly();isMobile=this.#s.asReadonly();isNavOpen=this.#i.asReadonly();constructor(){window.matchMedia("(prefers-color-scheme:dark)").matches&&this.#a&&this.setDarkMode(),r(()=>{this.#e()?document.body.classList.add("dark"):document.body.classList.remove("dark")})}ngOnInit(){window.addEventListener("resize",this.#r)}toggleNav(){this.#i.set(!this.isNavOpen())}toggleBodyClass(){this.#t.setItemParsed("darkTheme",!this.isDarkMode(),!0),this.#e.set(!this.isDarkMode())}setDarkMode(){this.#t.setItemParsed("darkTheme",!0,!0),this.#e.set(!0)}setLightMode(){this.#t.setItemParsed("darkTheme",!1,!0),this.#e.set(!1)}#r(){this.#s.set(window.innerWidth<=768)}ngOnDestroy(){window.removeEventListener("resize",this.#r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m,b as u}from"./chunk-
|
|
1
|
+
import{a as m,b as u}from"./chunk-BX543SH4.js";import{C as l,I as f,Qa as v,U as b,b as d,ba as I,ca as y,cc as V,dc as w,ja as S,k as j,n as h,q as c}from"./chunk-FKB7BVQE.js";function z(e,n,o){!n&&y(e);let i=n??b(S);return o?I(i,o):i}function C(...e){let{normalizedSources:n,hasInitValue:o,operator:i,options:r}=E(e),s=z(C,r?.injector);return o?u(c(n).pipe(i),{initialValue:r.initialValue,injector:s}):u(c(n).pipe(i),{injector:s,requireSync:!0})}function E(e){if(!e||!e.length||typeof e[0]!="object")throw new TypeError("derivedFrom needs sources");let n=typeof e[1]=="function";if(e.length==3&&!n)throw new TypeError("derivedFrom needs pipeable operator as a second argument");n||e.splice(1,0,d);let[o,i,r]=e,s=r?.initialValue!==void 0;return{normalizedSources:Object.entries(o).reduce((p,[a,t])=>{if(v(t))p[a]=m(t,{injector:r?.injector}).pipe(f(w(t)));else if(h(t))p[a]=t.pipe(l());else if(typeof t=="function"){let A=V(t);p[a]=m(A,{injector:r?.injector}).pipe(f(t()))}else p[a]=j(t).pipe(l());return p},Array.isArray(o)?[]:{}),operator:i,hasInitValue:s,options:r}}export{C as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as
|
|
2
|
-
`)):""),p(()=>this.isLoading.set(!1))));static \u0275fac=function(t){return new(t||n)};static \u0275cmp=m({type:n,selectors:[["app-general"]],standalone:!0,features:[v],decls:5,vars:2,consts:[[1,"indeterminate","primary"],[3,"innerHTML"]],template:function(t,s){t&1&&(d(0,D,1,0,"spk-progress-bar",0),y(1,"section")(2,"h3"),h(3,"General"),o(),r(4,"div",1),o()),t&2&&(C(s.isLoading()?0:-1),g(4),u("innerHTML",s.generalInfo(),c))},dependencies:[
|
|
1
|
+
import{b as k}from"./chunk-BX543SH4.js";import{l as M}from"./chunk-EYBBW4ID.js";import{c as S}from"./chunk-L2WWHQPN.js";import{a as b}from"./chunk-PY26LA4W.js";import{$a as u,D as p,Db as h,Ha as c,La as g,Mb as v,Ra as f,U as i,W as m,Za as d,eb as C,ib as y,jb as o,kb as r,p as l}from"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";function D(n,e){n&1&&r(0,"spk-progress-bar",0)}var a=class n{#e=i(S);#n=i(b);isLoading=f(!0);generalInfo=k(this.#n.getApiV1Acknowledgements().pipe(l(e=>e.Acknowledgements?this.#e.bypassSecurityTrustHtml(e.Acknowledgements.replace(/\r/g,`
|
|
2
|
+
`)):""),p(()=>this.isLoading.set(!1))));static \u0275fac=function(t){return new(t||n)};static \u0275cmp=m({type:n,selectors:[["app-general"]],standalone:!0,features:[v],decls:5,vars:2,consts:[[1,"indeterminate","primary"],[3,"innerHTML"]],template:function(t,s){t&1&&(d(0,D,1,0,"spk-progress-bar",0),y(1,"section")(2,"h3"),h(3,"General"),o(),r(4,"div",1),o()),t&2&&(C(s.isLoading()?0:-1),g(4),u("innerHTML",s.generalInfo(),c))},dependencies:[M],styles:["[_nghost-%COMP%]{display:block;position:relative}h3[_ngcontent-%COMP%]{font:var(--title-30)}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}"],changeDetection:0})};export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Y}from"./chunk-MMEIXMDW.js";import{a as J}from"./chunk-QX7KUJGE.js";import{a as R}from"./chunk-GSP4D4JM.js";import{a as $,e as A,f as V,h as z,k as j}from"./chunk-EYBBW4ID.js";import{d as N}from"./chunk-IGECPMHY.js";import"./chunk-L2WWHQPN.js";import"./chunk-PY26LA4W.js";import{$a as m,Db as e,Fb as u,La as p,Mb as D,Nb as B,Ob as S,Rb as M,Sb as I,Tb as H,U as _,W as v,Z as y,Za as s,ea as f,eb as d,fa as g,fb as P,gb as O,hb as E,ib as a,jb as o,kb as x,lb as F,mb as w,ob as T,oc as L,pb as b,qb as c}from"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";var C=class t{#t=_(J);transform(l,...n){if(!l)return"";let i=l.split(".")[0],r=parseInt(i.split(":")[0])??0,k=parseInt(i.split(":")[1])??0,q=parseInt(i.split(":")[2])??0;return this.#t.duration({hours:r,minutes:k,seconds:q}).humanize()}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=y({name:"durationFormat",type:t,pure:!0,standalone:!0})};var K=()=>["/add-backup"],Q=()=>["/restore"],U=t=>["/backup",t],W=t=>["/backup",t,"export"];function X(t,l){if(t&1&&(e(0),M(1,"durationFormat")),t&2){let n=c().$implicit;u(" - (took ",I(1,1,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDuration),") ")}}function Z(t,l){t&1&&e(0," N/A ")}function tt(t,l){if(t&1&&e(0),t&2){let n=c().$implicit;u(" ",n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.SourceSizeString," ")}}function et(t,l){t&1&&e(0," N/A ")}function nt(t,l){if(t&1&&e(0),t&2){let n=c().$implicit;u(" ",n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.TargetSizeString," ")}}function it(t,l){t&1&&e(0," N/A ")}function at(t,l){if(t&1&&(a(0,"spk-chip",9),e(1),o()),t&2){let n=c().$implicit;p(),u("",n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.BackupListCount," Version")}}function ot(t,l){t&1&&(a(0,"spk-chip",10),e(1,"No version yet"),o())}function lt(t,l){if(t&1){let n=T();a(0,"div",8)(1,"div",3)(2,"h3"),e(3),a(4,"spk-icon"),e(5,"database"),o()(),a(6,"p")(7,"span"),e(8,"Last successful backup:"),o(),e(9),M(10,"date"),s(11,X,2,3)(12,Z,1,0),o(),a(13,"p")(14,"span"),e(15,"Source:"),o(),s(16,tt,1,1)(17,et,1,0),o(),a(18,"p")(19,"span"),e(20,"Destination:"),o(),s(21,nt,1,1)(22,it,1,0),o()(),s(23,at,2,1,"spk-chip",9)(24,ot,2,0,"spk-chip",10),a(25,"div",11)(26,"button",12),b("click",function(){let r=f(n).$implicit,k=c(2);return g(k.startBackup(r.Backup==null?null:r.Backup.ID))}),a(27,"spk-icon"),e(28,"play-circle"),o(),e(29," Start "),o(),a(30,"button",13)(31,"spk-icon"),e(32,"pencil-simple"),o()(),a(33,"spk-menu",14)(34,"button",4)(35,"spk-icon"),e(36,"dots-three-vertical"),o()(),F(37,15),a(38,"button",16,0),e(40," Export "),a(41,"spk-icon"),e(42,"export"),o()(),a(43,"button",17,0),b("click",function(){let r=f(n).$implicit,k=c(2);return g(k.deleteBackup(r.Backup==null?null:r.Backup.ID))}),e(45," Delete "),a(46,"spk-icon"),e(47,"x-circle"),o()(),w(),o()()()}if(t&2){let n,i=l.$implicit;p(3),u(" ",(n=i.Backup==null?null:i.Backup.Name)!==null&&n!==void 0?n:"Backup name missing"," "),p(6),u(" ",H(10,9,i.Backup==null||i.Backup.Metadata==null?null:i.Backup.Metadata.LastBackupDate,"short")," "),p(2),d(!(i.Backup==null||i.Backup.Metadata==null)&&i.Backup.Metadata.LastBackupDuration?11:12),p(5),d(!(i.Backup==null||i.Backup.Metadata==null)&&i.Backup.Metadata.SourceSizeString?16:17),p(5),d(!(i.Backup==null||i.Backup.Metadata==null)&&i.Backup.Metadata.TargetSizeString?21:22),p(2),d(!(i.Backup==null||i.Backup.Metadata==null)&&i.Backup.Metadata.BackupListCount?23:24),p(7),m("routerLink",S(12,U,i.Backup==null?null:i.Backup.ID)),p(3),m("right",!0),p(5),m("routerLink",S(14,W,i.Backup==null?null:i.Backup.ID))}}function pt(t,l){if(t&1&&O(0,lt,48,16,"div",8,P),t&2){let n=c();E(n.backups())}}function ct(t,l){t&1&&e(0," No backups founds ")}var h=class t{#t=_(R);backups=this.#t.backups;backupsLoading=this.#t.backupsLoading;ngOnInit(){this.#t.getBackups(!0)}startBackup(l){this.#t.startBackup(l)}deleteBackup(l){l&&window.confirm("Are you sure you want to delete this backup?")&&this.#t.deleteBackup(l)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=v({type:t,selectors:[["app-home"]],standalone:!0,features:[D],decls:31,vars:5,consts:[["option",""],[1,"type-a",3,"routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["spk-button",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"backups"],[1,"backup"],[1,"simple","success"],[1,"simple"],[1,"actions"],["spk-button","",3,"click"],["spk-button","",3,"routerLink"],[3,"right"],["menu",""],[3,"routerLink"],[3,"click"]],template:function(n,i){n&1&&(x(0,"app-status-bar"),a(1,"section")(2,"header")(3,"spk-card",1),x(4,"img",2),a(5,"div",3)(6,"h3"),e(7,"Backups"),o(),a(8,"p"),e(9,"Backups are stored in the cloud and can be restored at any time."),o()(),a(10,"button",4),e(11," Add "),a(12,"spk-icon"),e(13,"plus"),o()()(),a(14,"spk-card",1),x(15,"img",5),a(16,"div",3)(17,"h3"),e(18,"Restores"),o(),a(19,"p"),e(20,"Restores are stored in the cloud and can be restored at any time."),o()(),a(21,"button",4),e(22," Start "),a(23,"spk-icon"),e(24,"arrow-right"),o()()()(),a(25,"div",6)(26,"h2"),e(27,"My backups"),o(),a(28,"div",7),s(29,pt,2,0)(30,ct,1,0),o()()()),n&2&&(p(3),m("routerLink",B(3,K)),p(11),m("routerLink",B(4,Q)),p(15),d(i.backups().length?29:30))},dependencies:[N,Y,V,A,$,z,j,L,C],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem 0}header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding:0 2rem;gap:1rem}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:1rem}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-level-70)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{h as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as a,d as b}from"./chunk-C7JVFVNG.js";import"./chunk-SHLX3F4G.js";import"./chunk-RNBIMN7E.js";import"./chunk-BX543SH4.js";import"./chunk-DE7MHNNM.js";import"./chunk-EYBBW4ID.js";import"./chunk-IGECPMHY.js";import"./chunk-L2WWHQPN.js";import"./chunk-PY26LA4W.js";import"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";export{a as createRestoreSelectFilesForm,b as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-4UKPKNC6.js";import"./chunk-AM4UDAZB.js";import"./chunk-IGECPMHY.js";import"./chunk-L2WWHQPN.js";import"./chunk-PY26LA4W.js";import{Db as e,Mb as l,U as a,W as i,ib as s,jb as p}from"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";var o=class n{#t=a(r);ngOnInit(){this.#t.logout()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=i({type:n,selectors:[["app-logout"]],standalone:!0,features:[l],decls:3,vars:0,template:function(t,c){t&1&&(s(0,"p"),e(1,"logout works!"),p(),e(2,`,
|
|
2
2
|
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as f}from"./chunk-
|
|
1
|
+
import{a as f}from"./chunk-MMEIXMDW.js";import"./chunk-QX7KUJGE.js";import"./chunk-GSP4D4JM.js";import{a as u,e as g,f as k}from"./chunk-EYBBW4ID.js";import{d as l}from"./chunk-IGECPMHY.js";import"./chunk-L2WWHQPN.js";import"./chunk-PY26LA4W.js";import{$a as p,Db as t,La as o,Mb as s,Nb as r,W as d,ib as e,jb as n,kb as a}from"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";var b=()=>["/backup/new"],x=()=>["/backup/import"],c=class m{static \u0275fac=function(i){return new(i||m)};static \u0275cmp=d({type:m,selectors:[["app-add-backup"]],standalone:!0,features:[s],decls:25,vars:4,consts:[[1,"backup-types"],[1,"type-a"],["src","assets/images/new-backup.png"],["spk-button","",1,"raised","primary",3,"routerLink"]],template:function(i,S){i&1&&(a(0,"app-status-bar"),e(1,"section")(2,"h2"),t(3,"Add a new backup"),n(),e(4,"div",0)(5,"spk-card",1),a(6,"img",2),e(7,"h3"),t(8,"New backup"),n(),e(9,"p"),t(10,"Configure a new backup. Choose your destination, source data and schedule."),n(),e(11,"button",3),t(12," Add a new backup "),e(13,"spk-icon"),t(14,"plus"),n()()(),e(15,"spk-card",1),a(16,"img",2),e(17,"h3"),t(18,"Import from file"),n(),e(19,"p"),t(20,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod."),n(),e(21,"button",3),t(22," Import from file "),e(23,"spk-icon"),t(24,"upload-simple"),n()()()()()),i&2&&(o(11),p("routerLink",r(2,b)),o(10),p("routerLink",r(3,x)))},dependencies:[f,g,k,u,l],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;gap:2rem;padding:2rem 0}div.backup-types[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:700px}spk-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-bottom:3rem}spk-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:300px}spk-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;text-align:center;width:75%}"],changeDetection:0})};export{c as default};
|