PageSourceSearch

https://hou.la/chunk-IJ2PWAPC.js

js hou.la collected 2026-09-25 03:32:00 UTC 2,973 bytes, 1 lines download raw bytes

1import{a as D}from"./chunk-IKQR3USM.js";import{d as M,e as W}from"./chunk-YQZAETCE.js";import{I as y,p as P}from"./chunk-ERUCNOOT.js";import{$b as x,Ib as _,Jb as c,Lb as l,Qc as L,Rc as O,Tb as v,Ub as b,Vb as r,Wb as p,Xb as d,cb as h,da as m,db as o,fc as a,gc as u,la as f,ma as w,sb as C,tc as k,uc as S}from"./chunk-DBE7WQEG.js";var E=(i,n)=>n.code;function F(i,n){if(i&1){let e=x();r(0,"button",4),a("click",function(s){let g=f(e).$implicit,B=u();return w(B.switchLang(g.code,s))}),d(1,"span",1),r(2,"span"),k(3),p()()}if(i&2){let e=n.$implicit,t=u();l("active",e.code===t.currentLang),o(),c("ngClass","fp-"+e.flagCode),o(2),S(e.label)}}var T=class i{languageService=m(D);dropdownOpen=!1;get languages(){return this.languageService.languages}get currentLang(){return this.languageService.current}get currentFlagCode(){return this.languageService.currentOption().flagCode}toggleDropdown(n){n.stopPropagation(),this.dropdownOpen=!this.dropdownOpen}switchLang(n,e){e.stopPropagation(),this.languageService.setLanguage(n),this.dropdownOpen=!1}onDocumentClick(){this.dropdownOpen=!1}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=C({type:i,selectors:[["app-widget-language-switcher"]],hostBindings:function(e,t){e&1&&a("click",function(){return t.onDocumentClick()},!1,h)},decls:6,vars:6,consts:[["role","button","tabindex","0",1,"lang-switcher",3,"click"],[1,"fp","fp-rounded",3,"ngClass"],[1,"lang-dropdown"],[1,"lang-option",3,"active"],[1,"lang-option",3,"click"]],template:function(e,t){e&1&&(r(0,"div",0),L(1,"translate"),a("click",function(g){return t.toggleDropdown(g)}),d(2,"span",1),r(3,"div",2),v(4,F,4,4,"button",3,E),p()()),e&2&&(_("aria-label",O(1,4,"LANG.SWITCH_LABEL")),o(2),c("ngClass","fp-"+t.currentFlagCode),o(),l("open",t.dropdownOpen),o(),b(t.languages))},dependencies:[y,P,W,M],styles:[".lang-switcher[_ngcontent-%COMP%]{position:relative;display:inline-flex;align-items:center;cursor:pointer;padding:4px;border-radius:50%;-webkit-user-select:none;user-select:none;transition:background-color .2s}.lang-switcher[_ngcontent-%COMP%]:hover{background-color:#0000000f}.lang-dropdown[_ngcontent-%COMP%]{position:absolute;top:100%;right:0;margin-top:4px;background:#fff;border:1px solid #e0e0e0;border-radius:8px;box-shadow:0 4px 12px #0000001a;min-width:140px;z-index:1000;opacity:0;visibility:hidden;transform:translateY(-4px);transition:all .2s}.lang-dropdown.open[_ngcontent-%COMP%]{opacity:1;visibility:visible;transform:translateY(0)}.lang-option[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;border:none;background:none;cursor:pointer;font-size:.85rem;transition:background-color .15s}.lang-option[_ngcontent-%COMP%]:first-child{border-radius:8px 8px 0 0}.lang-option[_ngcontent-%COMP%]:last-child{border-radius:0 0 8px 8px}.lang-option[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.lang-option.active[_ngcontent-%COMP%]{background-color:#e8f4fd;font-weight:600}"]})};export{T 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.