PageSourceSearch

https://sangsaka.com/9563.1591405e5a178d9c.js

js sangsaka.com collected 2026-10-08 23:50:48 UTC 8,373 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebclient_webpack=self.webpackChunkwebclient_webpack||[]).push([[9563],{12678(g,b,c){c.d(b,{b:()=>t});var v=c(68018),h=c(35547);let t=(()=>{class l{label;invalid;static \u0275fac=function(d){return new(d||l)};static \u0275cmp=h.VBU({type:l,selectors:[["app-tab-heading"]],hostVars:2,hostBindings:function(d,u){2&d&&h.AVh("invalid",u.invalid)},inputs:{label:"label",invalid:"invalid"},decls:1,vars:1,consts:[[3,"translate"]],template:function(d,u){1&d&&h.nrm(0,"span",0),2&d&&h.Y8G("translate",u.label)},dependencies:[v.Mm],styles:['[_nghost-%COMP%]{position:relative}.invalid[_nghost-%COMP%]:after{content:"\\2b24";color:var(--error);font-size:7px;position:absolute;right:-10px}']})}return l})()},13816(g,b,c){c.d(b,{Bh:()=>k,V6:()=>m,fw:()=>p});var t=c(35547),l=c(85802),y=c(49769);const f=["*"],d=a=>["nav-item",a];function u(a,_){if(1&a){const e=t.RV6();t.j41(0,"span",7),t.bIt("click",function(s){l.eBV(e);const n=t.XpG().$implicit,r=t.XpG();return s.preventDefault(),l.Njj(r.removeTab(n))}),t.EFF(1," \u274c"),t.k0s()}}function T(a,_){if(1&a){const e=t.RV6();t.j41(0,"li",3),t.bIt("keydown",function(s){const n=l.eBV(e).$index,r=t.XpG();return l.Njj(r.keyNavActions(s,n))}),t.j41(1,"a",4),t.bIt("click",function(){const s=l.eBV(e).$implicit;return l.Njj(s.active=!0)}),t.j41(2,"span",5),t.EFF(3),t.k0s(),t.nVh(4,u,2,0,"span",6),t.k0s()()}if(2&a){const e=_.$implicit;t.AVh("active",e.active)("disabled",e.disabled),t.Y8G("ngClass",t.eq3(15,d,e.customClass||"")),t.R7$(),t.AVh("active",e.active)("disabled",e.disabled),t.BMQ("aria-controls",e.id?e.id:"")("aria-selected",!!e.active)("id",e.id?e.id+"-link":""),t.R7$(),t.Y8G("ngTransclude",e.headingRef),t.R7$(),t.JRh(e.heading),t.R7$(),t.vxM(e.removable?4:-1)}}let C=(()=>{class a{set ngTransclude(e){this._ngTransclude=e,e&&this.viewRef.createEmbeddedView(e)}get ngTransclude(){return this._ngTransclude}constructor(e){this.viewRef=e}static{this.\u0275fac=function(i){return new(i||a)(t.rXU(t.c1b))}}static{this.\u0275dir=t.FsC({type:a,selectors:[["","ngTransclude",""]],inputs:{ngTransclude:"ngTransclude"}})}}return a})(),M=(()=>{class a{constructor(){this.type="tabs",this.isKeysAllowed=!0,this.ariaLabel="Tabs"}static{this.\u0275fac=function(i){return new(i||a)}}static{this.\u0275prov=l.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})(),p=(()=>{class a{get vertical(){return this._vertical}set vertical(e){this._vertical=e,this.setClassMap()}get justified(){return this._justified}set justified(e){this._justified=e,this.setClassMap()}get type(){return this._type}set type(e){this._type=e,this.setClassMap()}get isKeysAllowed(){return this._isKeysAllowed}set isKeysAllowed(e){this._isKeysAllowed=e}constructor(e,i,s){this.renderer=i,this.elementRef=s,this.clazz=!0,this.tabs=[],this.classMap={},this.ariaLabel="Tabs",this.isDestroyed=!1,this._vertical=!1,this._justified=!1,this._type="tabs",this._isKeysAllowed=!0,this.defaultActivationScheduled=!1,Object.assign(this,e)}ngOnDestroy(){this.isDestroyed=!0}addTab(e){void 0!==e.tabOrder?this.insertTabByOrder(e):this.tabs.push(e),e.active?e.active=!0:this.defaultActivationScheduled||(this.defaultActivationScheduled=!0,Promise.resolve().then(()=>{if(this.defaultActivationScheduled=!1,!this.tabs.length||this.tabs.some(s=>!!s.active))return;const i=this.tabs.find(s=>!s.disabled);i&&(i.active=!0)}))}insertTabByOrder(e){let i=this.tabs.length;for(let s=0;s<this.tabs.length;s++){const n=this.tabs[s];if(void 0!==n.tabOrder&&void 0!==e.tabOrder&&e.tabOrder<n.tabOrder){i=s;break}if(void 0===n.tabOrder){i=s;break}}this.tabs.splice(i,0,e)}removeTab(e,i={reselect:!0,emit:!0}){const s=this.tabs.indexOf(e);if(-1!==s&&!this.isDestroyed){if(i.reselect&&e.active&&this.hasAvailableTabs(s)){const n=this.getClosestTabIndex(s);this.tabs[n].active=!0}i.emit&&e.removed.emit(e),this.tabs.splice(s,1),e.elementRef.nativeElement.parentNode&&this.renderer.removeChild(e.elementRef.nativeElement.parentNode,e.elementRef.nativeElement)}}keyNavActions(e,i){if(!this.isKeysAllowed)return;const s=Array.from(this.elementRef.nativeElement.querySelectorAll(".nav-link"));if(13===e.keyCode||"Enter"===e.key||32===e.keyCode||"Space"===e.key)return e.preventDefault(),void s[i%s.length].click();if(39===e.keyCode||"RightArrow"===e.key){let n,r=1;do{n=s[(i+r)%s.length],r++}while(n.classList.contains("disabled"));return void n.focus()}
1if(37===e.keyCode||"LeftArrow"===e.key){let n,r=1,o=i;do{o-r<0?(o=s.length-1,n=s[o],r=0):n=s[o-r],r++}while(n.classList.contains("disabled"));return void n.focus()}if(36===e.keyCode||"Home"===e.key){e.preventDefault();let n,r=0;do{n=s[r%s.length],r++}while(n.classList.contains("disabled"));return void n.focus()}if(35===e.keyCode||"End"===e.key){e.preventDefault();let n,r=1,o=i;do{o-r<0?(o=s.length-1,n=s[o],r=0):n=s[o-r],r++}while(n.classList.contains("disabled"));return void n.focus()}if((46===e.keyCode||"Delete"===e.key)&&this.tabs[i].removable){if(this.removeTab(this.tabs[i]),s[i+1])return void s[(i+1)%s.length].focus();s[s.length-1]&&s[0].focus()}}getClosestTabIndex(e){const i=this.tabs.length;if(!i)return-1;for(let s=1;s<=i;s+=1){const n=e-s,r=e+s;if(this.tabs[n]&&!this.tabs[n].disabled)return n;if(this.tabs[r]&&!this.tabs[r].disabled)return r}return-1}hasAvailableTabs(e){const i=this.tabs.length;if(!i)return!1;for(let s=0;s<i;s+=1)if(!this.tabs[s].disabled&&s!==e)return!0;return!1}setClassMap(){this.classMap={"nav-stacked":this.vertical,"flex-column":this.vertical,"nav-justified":this.justified,[`nav-${this.type}`]:!0}}static{this.\u0275fac=function(i){return new(i||a)(t.rXU(M),t.rXU(t.sFG),t.rXU(t.aKT))}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["tabset"]],hostVars:2,hostBindings:function(i,s){2&i&&t.AVh("tab-container",s.clazz)},inputs:{vertical:"vertical",justified:"justified",type:"type"},ngContentSelectors:f,decls:5,vars:2,consts:[["role","tablist",1,"nav",3,"click","ngClass"],[3,"ngClass","active","disabled"],[1,"tab-content"],[3,"keydown","ngClass"],["href","javascript:void(0);","role","tab",1,"nav-link",3,"click"],[3,"ngTransclude"],[1,"bs-remove-tab"],[1,"bs-remove-tab",3,"click"]],template:function(i,s){1&i&&(t.NAR(),t.j41(0,"ul",0),t.bIt("click",function(r){return r.preventDefault()}),t.Z7z(1,T,5,17,"li",1,t.fX1),t.k0s(),t.j41(3,"div",2),t.SdG(4),t.k0s()),2&i&&(t.Y8G("ngClass",s.classMap),t.BMQ("aria-label",s.ariaLabel),t.R7$(),t.Dyx(s.tabs))},dependencies:[y.YU,C],styles:["[_nghost-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   .nav-item.disabled[_ngcontent-%COMP%]   a.disabled[_ngcontent-%COMP%]{cursor:default}"]})}}return a})(),m=(()=>{class a{get customClass(){return this._customClass}set customClass(e){this.customClass&&this.customClass.split(" ").forEach(i=>{this.renderer.removeClass(this.elementRef.nativeElement,i)}),this._customClass=e?e.trim():"",this.customClass&&this.customClass.split(" ").forEach(i=>{this.renderer.addClass(this.elementRef.nativeElement,i)})}get active(){return this._active}set active(e){if(this._active!==e){if(this.disabled&&e||!e)return void(this._active&&!e&&(this.deselect.emit(this),this._active=e));this._active=e,this.selectTab.emit(this),this.tabset.tabs.forEach(i=>{i!==this&&(i.active=!1)})}}get ariaLabelledby(){return this.id?`${this.id}-link`:""}constructor(e,i,s){this.elementRef=i,this.renderer=s,this.disabled=!1,this.removable=!1,this.selectTab=new l.bkB,this.deselect=new l.bkB,this.removed=new l.bkB,this.addClass=!0,this.role="tabpanel",this._active=!1,this._customClass="",this.tabset=e}ngOnInit(){this.removable=!!this.removable,this.tabset.addTab(this)}ngOnDestroy(){this.tabset.removeTab(this,{reselect:!1,emit:!1})}static{this.\u0275fac=function(i){return new(i||a)(t.rXU(p),t.rXU(t.aKT),t.rXU(t.sFG))}}static{this.\u0275dir=t.FsC({type:a,selectors:[["tab"],["","tab",""]],hostVars:7,hostBindings:function(i,s){2&i&&(t.BMQ("id",s.id)("role",s.role)("aria-labelledby",s.ariaLabelledby),t.AVh("active",s.active)("tab-pane",s.addClass))},inputs:{heading:"heading",id:"id",disabled:"disabled",removable:"removable",tabOrder:"tabOrder",customClass:"customClass",active:"active"},outputs:{selectTab:"selectTab",deselect:"deselect",removed:"removed"},exportAs:["tab"]})}}return a})(),k=(()=>{class a{constructor(e,i){i.headingRef=e}static{this.\u0275fac=function(i){return new(i||a)(t.rXU(t.C4Q),t.rXU(m))}}static{this.\u0275dir=t.FsC({type:a,selectors:[["","tabHeading",""]]})}}return a})()}}]);

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.