1import{a as ee}from"./chunk-SGLWGTAN.js";import{g as J,h as K,i as W}from"./chunk-4BFU6EQM.js";import{c as Y,d as Z}from"./chunk-ZTJ3X3WW.js";import{Y as z,ia as G}from"./chunk-BECF3HO5.js";import{Cb as u,Ea as l,Eb as D,Fa as I,Ga as h,Hb as M,Ib as S,Kb as E,Lb as j,Mb as p,Nb as f,Oc as B,Pb as L,Qb as P,Tc as H,Wb as F,Xb as d,Y as w,bc as Q,cc as q,db as c,dc as b,ec as g,gc as $,ia as a,ic as A,j as C,ka as y,la as x,oc as V,rb as R,rc as N,ua as _,uc as U,vc as X,wa as k,xa as T,xb as O}from"./chunk-OHYQORNL.js";function v(n){n||(_(v),n=a(l));let o=new C(e=>n.onDestroy(e.next.bind(e)));return e=>e.pipe(w(o))}var te=["overflowContainerRef"],ne=(n,o)=>({"bg-white":n,"flex-wrap p-0 justify-content-center":o});function ie(n,o){if(n&1){let e=P();p(0,"a",6),F("click",function(){let i=k(e),r=i.$implicit,s=i.$index,m=d(2);return T(m.onSelect(s,r))}),$(1),U(2,"translate"),f()}if(n&2){let e=o.$implicit,t=o.$index,i=d(2);D("active",t===i.activeIndex),u("routerLink",e.routerLink)("routerLinkActive",i.allowRouting?"active":""),c(),A(" ",X(2,5,e.title)," ")}}function re(n,o){if(n&1&&(p(0,"div",1)(1,"div",3,0)(3,"div",4),E(4,ie,3,7,"a",5,S),f()()()),n&2){let e=d();c(3),u("ngClass",N(1,ne,e.mode==="default",e.mode==="flex-wrap")),c(),j(e.items)}}function oe(n,o){n&1&&L(0)}var je=(()=>{class n{constructor(){this.mode="default",this.activeIndexChange=new h,this.itemChange=new h,this.destroyRef=a(l),this.cdr=a(B),this.router=a(J)}ngOnInit(){this.allowRouting||(this.activeIndex=0)}ngAfterViewInit(){this.runTouchTracker(),this.items.length&&setTimeout(()=>this.onSelect(0,this.items.first)),this.items.changes.pipe(v(this.destroyRef)).subscribe(e=>{setTimeout(()=>this.runTouchTracker()),this.onSelect(0,e.first)})}onSelect(e,t){this.activeIndex=e,this.activeIndexChange.emit(e),this.selectedItem=t,this.itemChange.emit(t.item),this.cdr.markForCheck()}runTouchTracker(){if(!this.overflowContainer||this.isTrackingTouch)return;let e=!1,t,i;this.overflowContainer.nativeElement.addEventListener("touchstart",r=>{e=!0,t=r.touches.item(0).pageX-this.overflowContainer.nativeElement.offsetLeft,i=this.overflowContainer.nativeElement.scrollLeft}),this.overflowContainer.nativeElement.addEventListener("touchmove",r=>{if(!e)return;r.preventDefault();let m=(r.touches.item(0).pageX-this.overflowContainer.nativeElement.offsetLeft-t)*3;this.overflowContainer.nativeElement.scrollLeft=i-m}),this.overflowContainer.nativeElement.addEventListener("touchend",()=>e=!1),this.isTrackingTouch=!0}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=x({type:n,selectors:[["tabs"]],contentQueries:function(t,i,r){if(t&1&&Q(r,ee,4),t&2){let s;b(s=g())&&(i.items=s)}},viewQuery:function(t,i){if(t&1&&q(te,5,I),t&2){let r;b(r=g())&&(i.overflowContainer=r.first)}},inputs:{activeIndex:"activeIndex",allowRouting:[y.HasDecoratorInputTransform,"allowRouting","allowRouting",H],mode:"mode"},outputs:{activeIndexChange:"activeIndexChange",itemChange:"itemChange"},standalone:!0,features:[R,V],decls:2,vars:2,consts:[["overflowContainerRef",""],[1,"d-flex","justify-content-center"],[4,"ngTemplateOutlet"],[1,"overflow-hidden",2,"transition","all 1s"],[1,"hb-tabs","mb-3","mb-lg-5",3,"ngClass"],[1,"hb-tab-item",3,"active","routerLink","routerLinkActive"],[1,"hb-tab-item",3,"click","routerLink","routerLinkActive"]],template:function(t,i){t&1&&O(0,re,6,4,"div",1)(1,oe,1,0,"ng-container",2),t&2&&(M(0,i.items!=null&&i.items.length?0:-1),c(),u("ngTemplateOutlet",i.selectedItem==null||i.selectedItem.content==null?null:i.selectedItem.content.templateRef))},dependencies:[W,K,G,Z,Y,z],styles:["[_nghost-%COMP%]{display:block;background-color:transparent}.flex-wrap[_nghost-%COMP%] .hb-tabs[_ngcontent-%COMP%]{flex-wrap:wrap}.justify-content-start[_nghost-%COMP%] div[_ngcontent-%COMP%]:first-child{justify-content:start}.bg-body[_nghost-%COMP%] .hb-tabs[_ngcontent-%COMP%]{background-color:var(--hb-body-bg)}.px-0[_nghost-%COMP%] .hb-tabs[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}[allowRouting][_nghost-%COMP%] .hb-tabs[_ngcontent-%COMP%]{padding:0}.hb-tabs[_ngcontent-%COMP%]{border-radius:var(--hb-border-radius-lg);width:fit-content;display:flex;align-items:center;height:auto;gap:10px;padding:10px}.hb-tab-item[_ngcontent-%COMP%]{background-color:#fff;height:auto;padding:10px 14px;font-weight:500;-webkit-user-select:none;user-select:none;display:flex;align-items:center;cursor:pointer;text-align:center;border-radius:var(--hb-border-radius);white-space:nowrap}.hb-tab-item.active[_ngcontent-%COMP%]{color:#fff;background-color:var(--hb-primary);border-radius:var(--hb-border-radius);transition:color var(--hb-animation-delay),background-color var(--hb-animation-delay)}@media only screen and (min-width: 992px){.hb-tabs[_ngcontent-%COMP%]:not(.flex-wrap){gap:10px!important;padding:15px!important}}"],changeDetection:0})}}return n})();export{je as 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.