PageSourceSearch

https://babiesbabies.co.uk/ui/chunk-K7YS2XBM.js

js babiesbabies.co.uk collected 2026-10-09 03:48:00 UTC 11,709 bytes, 10 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c0025a29-2171-5047-8e27-42025c8fcad9")}catch(e){}}();
3import{a as _}from"./chunk-UU3ON4LW.js";import{d as V}from"./chunk-3VE3IZR3.js";import{e as K,f as Y}from"./chunk-JTQNS436.js";import"./chunk-7NW2DXMC.js";import{a as E}from"./chunk-SFX3C2FV.js";import"./chunk-PJFIGSYN.js";import{a as b,c as O}from"./chunk-QOQFJ3L2.js";import"./chunk-6SY643VQ.js";import{Ca as o,Cc as D,Dc as T,Ef as $,Gb as f,Hb as l,Ib as d,Jb as p,Lf as z,Lj as L,Mj as w,Nj as y,Qj as M,Si as x,Xf as J,Yf as j,Yh as A,Yi as S,Zf as H,Zg as v,_g as m,eb as h,ej as Q,id as u,jc as P,lb as g,lc as R,rf as I,tf as C}from"./chunk-KFM6X7QG.js";var tt=function(s,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(s,e,t,n);else for(var c=s.length-1;c>=0;c--)(a=s[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i},W=class B{constructor(){this.wsManager=o(w),this.wsStatus=o(L),this.router=o(C),this.loader=o(E),this.errorHandler=o(S),this.translate=o(J),this.dialogService=o(Q),this.matDialog=o(A),this.location=o(u),this.api=o(y),this.authService=o(M)}isWsConnected(){this.wsStatus.isConnected$.pipe(m(this)).subscribe({next:e=>{e?(this.loader.close(),this.authService.clearAuthToken(),this.router.navigate(["/signin"])):this.connectedSubscription=setTimeout(()=>{this.isWsConnected()},1e3)}})}ngOnInit(){this.location.replaceState("/signin"),this.matDialog.closeAll(),this.resetConfig()}ngOnDestroy(){this.connectedSubscription&&clearTimeout(this.connectedSubscription)}resetConfig(){this.dialogService.jobDialog(this.api.job("config.reset",[{reboot:!0}]),{title:this.translate.instant("Resetting. Please wait..."),description:this.translate.instant("Resetting system configuration to default settings. The system will restart.")}).afterClosed().pipe(this.errorHandler.withErrorHandler(),m(this)).subscribe(()=>{this.wsManager.prepareShutdown(),this.loader.open(),setTimeout(()=>{this.isWsConnected()},15e3)})}static{this.\u0275fac=function(t){return new(t||B)}}static{this.\u0275cmp=g({type:B,selectors:[["ix-config-reset"]],decls:7,vars:1,consts:[["id","wrapper"],["id","reset-card"],["id","message"],["name","ix-truenas-logo",1,"logo",3,"fullSize"],[1,"copyright-txt"]],template:function(t,n){t&1&&(l(0,"div",0)(1,"mat-card",1),p(2,"mat-card-content",2)(3,"ix-icon",3),l(4,"div")(5,"span",4),p(6,"ix-copyright-line"),d()()()()),t&2&&(h(3),f("fullSize",!0))},dependencies:[b,O,x,_],styles:[`#wrapper[_ngcontent-%COMP%]{background-color:#0095d5;height:100%}#reset-card[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column;justify-content:center;margin:auto;position:relative;top:75px;width:275px}.copyright-txt[_ngcontent-%COMP%], #message[_ngcontent-%COMP%]{text-align:center}.copyright-txt[_ngcontent-%COMP%]{margin-top:10px}.logo[_ngcontent-%COMP%]{height:auto;width:256px}@media screen and (max-height: 700px){#reset-card[_ngcontent-%COMP%]{font-size:80%;top:20px;width:225px}.logo[_ngcontent-%COMP%]{width:206px}.mat-mdc-dialog-container[_ngcontent-%COMP%]{height:100px;width:100px}}
4/*# sourceMappingURL=config-reset.component-7H3NCCLB.css.map */`],changeDetection:0})}};W=tt([v()],W);var et=function(s,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(s,e,t,n);else for(var c=s.length-1;c>=0;c--)(a=s[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i},F=class G{constructor(){this.api=o(y),this.errorHandler=o(S),this.wsManager=o(w),this.wsStatus=o(L),this.router=o(C),this.loader=o(E),this.matDialog=o(A),this.location=o(u),this.store$=o(z),this.authService=o(M)}isWsConnected(){this.wsStatus.isConnected$.pipe(m(this)).subscribe({next:e=>{e?(this.loader.close(),this.authService.clearAuthToken(),this.router.navigate(["/signin"])):setTimeout(()=>{this.isWsConnected()},5e3)}})}ngOnInit(){this.location.replaceState("/signin"),this.wsStatus.setReconnectAllowed(!1),this.wsStatus.setFailoverStatus(!0),this.matDialog.closeAll(),this.api.call("failover.become_passive").pipe(m(this)).subscribe({error:e=>{this.errorHandler.showErrorModal(e).pipe(m(this)).subscribe(()=>{this.router.navigate(["/signin"])})},complete:()=>
4{this.store$.dispatch(V()),this.wsManager.prepareShutdown(),this.loader.open(),setTimeout(()=>{this.isWsConnected()},1e3)}})}static{this.\u0275fac=function(t){return new(t||G)}}static{this.\u0275cmp=g({type:G,selectors:[["ix-failover"]],decls:9,vars:4,consts:[["id","wrapper"],["id","shutdown-card"],["id","message"],["name","ix-truenas-logo",1,"logo",3,"fullSize"],[1,"copyright-txt"]],template:function(t,n){t&1&&(l(0,"div",0)(1,"mat-card",1)(2,"mat-card-content",2),P(3),D(4,"translate"),d(),p(5,"ix-icon",3),l(6,"div")(7,"span",4),p(8,"ix-copyright-line"),d()()()()),t&2&&(h(3),R(" ",T(4,2,"System is failing over...")," "),h(2),f("fullSize",!0))},dependencies:[b,O,x,_,H,j],styles:[`#wrapper[_ngcontent-%COMP%]{background-color:#0095d5;height:100%}#shutdown-card[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column;justify-content:center;margin:auto;position:relative;top:75px;width:275px}.copyright-txt[_ngcontent-%COMP%], #message[_ngcontent-%COMP%], #logo[_ngcontent-%COMP%]{text-align:center}.logo[_ngcontent-%COMP%]{height:auto;width:256px}.copyright-txt[_ngcontent-%COMP%]{margin-top:10px}@media screen and (max-height: 700px){#shutdown-card[_ngcontent-%COMP%]{font-size:80%;top:20px;width:80%}.mat-mdc-dialog-container[_ngcontent-%COMP%]{height:100px;width:100px}}
5/*# sourceMappingURL=failover.component-O25JCRGX.css.map */`],changeDetection:0})}};F=et([v()],F);var ot=function(s,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(s,e,t,n);else for(var c=s.length-1;c>=0;c--)(a=s[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i},U=class N{constructor(){this.api=o(y),this.wsManager=o(w),this.router=o(C),this.route=o(I),this.errorHandler=o(S),this.loader=o(E),this.matDialog=o(A),this.location=o(u),this.wsStatus=o(L),this.store$=o(z),this.authService=o(M),this.isHaLicensed=$(this.store$.select(K)),this.isHaEnabled=$(this.store$.select(Y))}ngOnInit(){let e=this.route.snapshot.queryParamMap.get("reason")||"Unknown Reason";this.location.replaceState("/signin"),this.matDialog.closeAll(),this.api.job("system.reboot",[e]).pipe(m(this)).subscribe({error:t=>{this.errorHandler.showErrorModal(t).pipe(m(this)).subscribe(()=>{this.authService.clearAuthToken(),this.router.navigate(["/signin"])})},complete:()=>{this.isHaLicensed()&&this.isHaEnabled()&&this.wsStatus.setReconnectAllowed(!1),this.wsManager.prepareShutdown(),this.authService.clearAuthToken(),this.wsManager.reconnect(),setTimeout(()=>{this.router.navigate(["/signin"])},5e3)}})}static{this.\u0275fac=function(t){return new(t||N)}}static{this.\u0275cmp=g({type:N,selectors:[["ix-restart"]],decls:9,vars:4,consts:[["id","wrapper"],["id","restart-card"],["id","message"],["name","ix-truenas-logo",1,"logo",3,"fullSize"],[1,"copyright-txt"]],template:function(t,n){t&1&&(l(0,"div",0)(1,"mat-card",1)(2,"mat-card-content",2),P(3),D(4,"translate"),d(),p(5,"ix-icon",3),l(6,"div")(7,"span",4),p(8,"ix-copyright-line"),d()()()()),t&2&&(h(3),R(" ",T(4,2,"System is restarting...")," "),h(2),f("fullSize",!0))},dependencies:[b,O,x,_,H,j],styles:[`#wrapper[_ngcontent-%COMP%]{align-items:center;background-color:#0095d5;display:flex;height:100%}#restart-card[_ngcontent-%COMP%]{align-items:center;box-sizing:content-box;display:flex;flex-direction:column;justify-content:center;margin:auto;padding:8px 16px!important;position:relative;width:275px}.copyright-txt[_ngcontent-%COMP%], #message[_ngcontent-%COMP%], .logo[_ngcontent-%COMP%]{text-align:center}.logo[_ngcontent-%COMP%]{height:auto;width:256px}.copyright-txt[_ngcontent-%COMP%]{margin-top:10px}@media screen and (max-height: 700px){#restart-card[_ngcontent-%COMP%]{font-size:80%;max-width:480px;width:80%}.logo[_ngcontent-%COMP%]{width:206px}.mat-mdc-dialog-container[_ngcontent-%COMP%]{height:100px;width:100px}}
6/*# sourceMappingURL=restart.component-BLXO3QGU.css.map */`],changeDetection:0})}};U=ot([v()],U);var it=function(s,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(s,e,t,n);else for(var c=s.length-1;c>=0;c--)(a=s[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i},k=class X{constructor(){this.api=o(y),this.wsManager=o(w),this.errorHandler=o(S),this.router=o(C),this.route=o(I),this.location=o(u),this.authService=o(M)}
6ngOnInit(){let e=this.route.snapshot.queryParamMap.get("reason")||"Unknown Reason";this.location.replaceState("/signin"),this.api.job("system.shutdown",[e]).pipe(m(this)).subscribe({error:t=>{this.errorHandler.showErrorModal(t).pipe(m(this)).subscribe(()=>{this.router.navigate(["/signin"])})},complete:()=>{this.wsManager.prepareShutdown(),this.authService.clearAuthToken()}}),setTimeout(()=>{document.getElementById("overlay")?.setAttribute("class","blackout")},6e4)}static{this.\u0275fac=function(t){return new(t||X)}}static{this.\u0275cmp=g({type:X,selectors:[["ix-shutdown"]],decls:10,vars:4,consts:[["id","overlay"],["id","wrapper"],["id","shutdown-card"],["id","shutdown-message"],["name","ix-truenas-logo",1,"logo",3,"fullSize"],[1,"copyright-txt"]],template:function(t,n){t&1&&(p(0,"div",0),l(1,"div",1)(2,"mat-card",2)(3,"mat-card-content",3),P(4),D(5,"translate"),d(),p(6,"ix-icon",4),l(7,"div")(8,"span",5),p(9,"ix-copyright-line"),d()()()()),t&2&&(h(4),R(" ",T(5,2,"System is shutting down...")," "),h(2),f("fullSize",!0))},dependencies:[b,O,x,_,H,j],styles:[`.copyright-txt[_ngcontent-%COMP%], #shutdown-message[_ngcontent-%COMP%], #shark[_ngcontent-%COMP%], #signin-link[_ngcontent-%COMP%]{text-align:center}.logo[_ngcontent-%COMP%]{height:auto;width:256px}.copyright-txt[_ngcontent-%COMP%]{margin-top:10px}#wrapper[_ngcontent-%COMP%]{align-items:center;background-color:#0095d5;display:flex;height:100%;justify-content:center}#shutdown-card[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column;justify-content:center;margin:auto;position:relative;top:75px;width:275px}#overlay[_ngcontent-%COMP%]{background:#000!important;height:100%;opacity:0;position:absolute;width:100%;z-index:10}#overlay.blackout[_ngcontent-%COMP%]{-webkit-opacity:1;-moz-opacity:1;opacity:1;transition:all 3s ease}@media screen and (max-height: 700px){#shutdown-card[_ngcontent-%COMP%]{font-size:80%;top:20px;width:80%}.logo[_ngcontent-%COMP%]{width:206px}.mat-mdc-dialog-container[_ngcontent-%COMP%]{height:100px;width:100px}}
7/*# sourceMappingURL=shutdown.component-LVM7AS44.css.map */`],changeDetection:0})}};k=it([v()],k);var De=[{path:"",children:[{path:"restart",component:U,data:{title:"Restart",breadcrumb:"Restart"}},{path:"shutdown",component:k,data:{title:"Shutdown",breadcrumb:"Shutdown"}},{path:"failover",component:F,data:{title:"Failover",breadcrumb:"Failover"}},{path:"config-reset",component:W,data:{title:"Config-Reset",breadcrumb:"Config-Reset"}}]}];export{De as systemTasksRoutes};
8//# sourceMappingURL=chunk-K7YS2XBM.js.map
9
10//# debugId=c0025a29-2171-5047-8e27-42025c8fcad9

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.