Your IP : 3.144.48.13


Current Path : /usr/local/mgr5/skins/dragon/
Upload File :
Current File : //usr/local/mgr5/skins/dragon/chunk-HDIQEWMU.js

import{a as oe}from"./chunk-ZTSJF7T7.js";import{a as se,b as ce}from"./chunk-32EYRVZR.js";import{a as re,b as ae,c as pe}from"./chunk-N3NSMNNC.js";import{e as F}from"./chunk-HDHDVZQK.js";import"./chunk-UIMIPCPG.js";import"./chunk-EI5KBZMB.js";import{a as te}from"./chunk-VX77VCCO.js";import{a as ee,e as ie,f as ne}from"./chunk-CPXWTLES.js";import"./chunk-KX5BXGZT.js";import{a as L,c as Q}from"./chunk-M6DH5DPB.js";import{$a as w,Ac as Y,Bb as q,Cb as J,Cc as Z,I as z,Ia as A,Ka as C,L as c,La as M,M as h,Ma as R,Sb as x,Va as T,Z as g,_a as S,aa as D,ba as p,bb as K,d as O,da as I,k as B,l as P,ma as m,na as l,oa as y,oc as W,q as v,qc as X,r as f,sa as j,ub as U,va as b,vb as G,x as H,xa as d}from"./chunk-SXUPRFOU.js";import{G as V,a as k,b as $,t as N}from"./chunk-ERDNNTNA.js";function le(i,r){let t=i.map(n=>[n]),o=n=>n.reduce((a,s)=>a+s,0),e=100;for(;t.length>r&&e;){e--;let a=t.slice(0,-1).map((u,ue)=>[...u,t[ue+1][0]]).map(u=>o(u)),s=Math.min(...a),_=a.indexOf(s);t[_].push(t[_+1].shift()),t[_+1].length===0&&t.splice(_+1,1)}return t.map(n=>n.length)}var he=()=>({ctrl:!0,shift:!0,code:"KeyM"}),de=()=>({widht:"15px",height:"15px"});function ge(i,r){if(i&1&&(m(0,"span"),C(1),l()),i&2){let t=d();c(),M(t.notFoundMessage)}}function ve(i,r){if(i&1&&y(0,"isp-custom-icon",17),i&2){let t=d().$implicit;p("href",t.$customicon)}}function fe(i,r){if(i&1&&y(0,"isp-svg-icon",18),i&2){let t=d().$implicit;p("name",t.$icon)("customStyle",T(2,de))}}function be(i,r){if(i&1&&(m(0,"a",26),C(1),l()),i&2){let t=d().$implicit;p("href",t.$function,z),c(),M(t.label)}}function Ce(i,r){if(i&1&&C(0),i&2){let t=d().$implicit;M(t.label)}}function xe(i,r){if(i&1&&(m(0,"div",27),C(1),l()),i&2){let t=d(4);c(),R(" ",t.newMessage," ")}}function ye(i,r){if(i&1){let t=j();m(0,"button",28),b("click",function(e){v(t);let n=d().$implicit,a=d(3);return f(a.handleItemClick(n,!0,e))}),y(1,"isp-svg-icon",29),l()}if(i&2){let t=d(4);p("ispTooltip",t.newTabHint),D("aria-label",t.newTabHint)}}function Me(i,r){if(i&1){let t=j();m(0,"div",19)(1,"button",20),b("click",function(){let e=v(t).$implicit,n=d(3);return f(n.toggleFavorite(e))}),y(2,"isp-svg-icon",21),l(),m(3,"div",22),b("keydown.enter",function(e){return v(t),f(e.target.click())})("keydown.space",function(e){return v(t),f(e.target.click())})("click",function(e){let n=v(t).$implicit,a=d(3);return f(a.handleItemClick(n,!1,e))}),g(4,be,2,2,"a",23)(5,Ce,1,1,"ng-template",null,0,K),l(),g(7,xe,2,1,"div",24)(8,ye,2,2,"button",25),l()}if(i&2){let t=r.$implicit,o=A(6),e=d(3);I("item_favorite",t.$favorite),c(),D("aria-label",t.$favorite?e.unsetFavoriteMessage:e.setFavoriteMessage),c(),p("customStyle",T(10,de)),c(),I("item-label_link",t.$function&&!t.$action),c(),p("ngIf",t.$function)("ngIfElse",o),c(3),p("ngIf",t.$new),c(),p("ngIf",!t.$function)}}function Se(i,r){if(i&1&&(m(0,"div",10)(1,"div",11)(2,"div",12),g(3,ve,1,1,"isp-custom-icon",13)(4,fe,1,3,"isp-svg-icon",14),l(),m(5,"div",15),C(6),l()(),g(7,Me,9,11,"div",16),l()),i&2){let t=r.$implicit;c(3),p("ngIf",t.$customicon),c(),p("ngIf",!t.$customicon),c(2),M(t.label),c(),p("ngForOf",t.node)}}function we(i,r){if(i&1&&(m(0,"div",8),g(1,Se,8,4,"div",9),l()),i&2){let t=r.$implicit;c(),p("ngForOf",t)}}var E=(()=>{let r=class r{constructor(o,e,n,a,s,_,u){this.appService=o,this.sidebarService=e,this.preloadedActionService=n,this.tabContextService=a,this.tabService=s,this.breakpointsObserver=_,this.destroyRef=u,this.hasScrollbar=!0,this.tab$=this.tabContextService.tab$,this.doc$=this.tabContextService.doc$,this.colCount=2,this.groups$=new N([]),this.columns$=new N([]),this.newMessage=this.appService.getDesktopMessage("menu_new"),this.newTabHint=this.appService.getDesktopMessage("hint_newtab"),this.setFavoriteMessage=this.appService.getDesktopMessage("hint_add_favorite"),this.unsetFavoriteMessage=this.appService.getDesktopMessage("hint_remove_favorite"),this.searchPlaceholder=this.appService.getDesktopMessage("menu_search"),this.notFoundMessage=this.appService.getDesktopMessage("menu_empty_search"),this.subscribeToDoc(),this.listenColumnsChange()}handleItemClick(o,e,n){this.sidebarService.navigate(o,e||n.metaKey||n.ctrlKey)}reloadTab(){this.tabContextService.reloadTab()}handleSearch(o){let e=this.groups$.value;if(o){let n=ae(o),a=new RegExp(n,"gi");e.forEach(s=>{let _=a.test(s.label);s.node.forEach(u=>u.hide=_?!1:!a.test(u.label)),s.hide=_?!1:s.node.every(u=>u.hide)})}else e.forEach(n=>{n.hide=!1,n.node.forEach(a=>a.hide=!1)});this.groups$.next([...this.groups$.value]),this.rearrangeColumns()}subscribeToDoc(){this.appService.desktop$.pipe(V(o=>o.mainmenu.modernmenu.node.filter(e=>!e.$hidden).map(e=>{let n=this.groups$.value.find(a=>a.$name===e.$name);return $(k({},e),{hide:n?.hide||!1,label:this.appService.getDesktopMessage(`modernmenu_${e.$name}`)||e.$name,node:e.node.map(a=>$(k({},a),{hide:n?.node.find(s=>s.$name===a.$name)?.hide||!1,label:this.appService.getDesktopMessage(`modernmenu_${a.$name}`)||a.$name}))})}))).subscribe(o=>{this.groups$.next(o),this.rearrangeColumns()})}toggleFavorite(o){let e=o.$favorite==="yes";this.appService.updateMenuItemFavorite(!e,{$name:o.$name}),this.tabService.updateDocFavorites(o.$action,!e),this.preloadedActionService.getAction({func:`usermenu.${e?"suspend":"resume"}`,elid:o.$name},{showProgressbar:!1}).subscribe({error:()=>{this.appService.updateMenuItemFavorite(e,{$name:o.$name}),this.tabService.updateDocFavorites(o.$action,e)}})}rearrangeColumns(){let o=this.groups$.value.filter(s=>!s.hide).map(s=>$(k({},s),{node:s.node.filter(_=>!_.hide)}));if(!o.length){this.columns$.next([]);return}let e=o.map(s=>s.node.length+2),a=le(e,this.colCount).map(s=>o.splice(0,s));this.columns$.next(a)}listenColumnsChange(){let o=["(min-width: 1px)","(min-width: 961px)","(min-width: 1201px)","(min-width: 1441px)","(min-width: 1901px)"];this.breakpointsObserver.observe(o).pipe(X(this.destroyRef)).subscribe(e=>{let n=o.filter(a=>e.breakpoints[a]).pop();n&&(this.colCount=o.indexOf(n)+1,this.rearrangeColumns())})}};r.\u0275fac=function(e){return new(e||r)(h(W),h(oe),h(Y),h(te),h(Z),h(ne),h(H))},r.\u0275cmp=B({type:r,selectors:[["isp-navboard"]],hostVars:2,hostBindings:function(e,n){e&2&&I("ispui-scrollbar_gray",n.hasScrollbar)},decls:11,vars:15,consts:[["plainText",""],[1,"header"],[1,"page-header",3,"headerClick","tab","doc"],[1,"searchbar",3,"customInput","clear","placeholder","focusShortcut"],[1,"content"],[4,"ngIf"],[1,"nav"],["class","column",4,"ngFor","ngForOf"],[1,"column"],["class","group",4,"ngFor","ngForOf"],[1,"group"],[1,"group-header"],[1,"group-header-icon-wrapper"],[3,"href",4,"ngIf"],[3,"name","customStyle",4,"ngIf"],[1,"group-header-label"],["class","item",3,"item_favorite",4,"ngFor","ngForOf"],[3,"href"],[3,"name","customStyle"],[1,"item"],["type","button","data-isp-guide-target","navboard-star",1,"star-button",3,"click"],["name","star_dark",1,"star",3,"customStyle"],["tabindex","0",1,"item-label",3,"keydown.enter","keydown.space","click"],["class","item-label-link","target","_blank",3,"href",4,"ngIf","ngIfElse"],["class","isp-menu-new-label item__new-label",4,"ngIf"],["type","button","class","new-tab-button",3,"ispTooltip","click",4,"ngIf"],["target","_blank",1,"item-label-link",3,"href"],[1,"isp-menu-new-label","item__new-label"],["type","button",1,"new-tab-button",3,"click","ispTooltip"],["name","new_tab"]],template:function(e,n){e&1&&(m(0,"div",1)(1,"isp-page-header",2),S(2,"async"),S(3,"async"),b("headerClick",function(){return n.reloadTab()}),l(),m(4,"isp-searchbar",3),b("customInput",function(s){return n.handleSearch(s)})("clear",function(){return n.handleSearch("")}),l()(),m(5,"div",4),g(6,ge,2,1,"span",5),S(7,"async"),m(8,"nav",6),g(9,we,2,1,"div",7),S(10,"async"),l()()),e&2&&(c(),p("tab",w(2,6,n.tab$))("doc",w(3,8,n.doc$)),c(3),p("placeholder",n.searchPlaceholder)("focusShortcut",T(14,he)),c(2),p("ngIf",!w(7,10,n.columns$).length),c(3),p("ngForOf",w(10,12,n.columns$)))},dependencies:[F,L,se,ee,U,G,re,q],styles:["[_nghost-%COMP%]{display:block;height:100%;overflow-y:auto}.header[_ngcontent-%COMP%]{position:sticky;top:0;z-index:1;padding:20px 30px 25px;background:var(--isp-dc-monochrome)}.content[_ngcontent-%COMP%]{padding:0 30px 20px}.page-header[_ngcontent-%COMP%]{display:block;margin-bottom:20px}.searchbar[_ngcontent-%COMP%]{--isp-searchbar-bc: var(--isp-dc-norilsk);display:block}.nav[_ngcontent-%COMP%]{display:table;width:100%;table-layout:fixed}.column[_ngcontent-%COMP%]{display:table-cell;padding-right:15px}.group[_ngcontent-%COMP%]{margin-bottom:25px}.group-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:5px}.group-header-icon-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:25px;height:25px;background:var(--isp-dc-norilsk);border-radius:3px}.group-header-label[_ngcontent-%COMP%]{margin-left:10px;font-weight:500}.item[_ngcontent-%COMP%]{display:flex;align-items:center;max-width:300px;height:24px}.star-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:25px;height:25px;padding:0;background:transparent;border:none;border-radius:3px;cursor:pointer}.star-button[_ngcontent-%COMP%]:hover{background:var(--isp-dc-norilsk)}.star[_ngcontent-%COMP%]{--isp-icons-main-color: var(--isp-c-grey-weekdays);display:none}.item[_ngcontent-%COMP%]:hover   .star[_ngcontent-%COMP%], .star-button[_ngcontent-%COMP%]:focus   .star[_ngcontent-%COMP%]{display:block}.star-button[_ngcontent-%COMP%]:hover   .star[_ngcontent-%COMP%], .star-button[_ngcontent-%COMP%]:focus   .star[_ngcontent-%COMP%]{--isp-icons-main-color: var(--isp-dc-highway-star)}.item_favorite[_ngcontent-%COMP%]   .star[_ngcontent-%COMP%], .item_favorite[_ngcontent-%COMP%]:hover   .star[_ngcontent-%COMP%], .item_favorite[_ngcontent-%COMP%]   .star-button[_ngcontent-%COMP%]:focus   .star[_ngcontent-%COMP%]{--isp-icons-main-color: var(--isp-c-c-3po);display:block}.item-label[_ngcontent-%COMP%]{margin-left:10px;cursor:pointer}.item[_ngcontent-%COMP%]:hover   .item-label[_ngcontent-%COMP%], .item-label_link[_ngcontent-%COMP%]{color:var(--isp-dc-fremen)}.item-label-link[_ngcontent-%COMP%]{text-decoration:none}.item__new-label[_ngcontent-%COMP%]{position:relative;top:1px;margin-left:5px}.new-tab-button[_ngcontent-%COMP%]{--isp-icons-main-color: var(--isp-c-grey-weekdays);position:relative;bottom:1px;display:flex;flex-shrink:0;align-items:center;justify-content:center;width:25px;height:25px;padding:0;margin-left:5px;background:none;border:none;border-radius:inherit;opacity:0;pointer-events:none;cursor:pointer}.new-tab-button[_ngcontent-%COMP%]:hover{--isp-icons-main-color: var(--isp-dc-highway-star)}.item[_ngcontent-%COMP%]:hover   .new-tab-button[_ngcontent-%COMP%], .new-tab-button[_ngcontent-%COMP%]:focus{opacity:1;pointer-events:all}"],changeDetection:0});let i=r;return i})();var ke=[{path:":func/:tabId",component:E}],_e=(()=>{let r=class r{};r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=P({type:r}),r.\u0275inj=O({imports:[x.forChild(ke),x]});let i=r;return i})();var rt=(()=>{let r=class r{};r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=P({type:r}),r.\u0275inj=O({imports:[F,Q,_e,ce,ie,x.forChild([{path:"**",component:E}]),J,pe,x]});let i=r;return i})();export{rt as NavboardModule};