1import{N as V}from"./chunk-ZZTIN4GI.js";import{b as Q}from"./chunk-P5KFRL6V.js";import{k as z,ka as K,p as G,r as H}from"./chunk-XH2FTEW6.js";import{b as q}from"./chunk-UZCIA3XM.js";import{E as J,k as j}from"./chunk-JAHL4O5B.js";import{b as N,c as U,j as $,k as R}from"./chunk-VIMXTOPS.js";import{a as x,c as F,d as E}from"./chunk-LW3GYOL2.js";import{D as B,f as k,k as P,q as O}from"./chunk-RCJTMARP.js";import{I as D,K as I}from"./chunk-OWD7JG7T.js";import{$a as i,Cc as A,Dc as T,Ec as _,Jb as C,Lb as f,Nb as s,Ob as g,Pb as u,Qb as p,Rb as o,Sb as r,Tc as y,Uc as S,V as b,ec as c,fa as l,jd as w,ob as L,oc as M,tc as m,uc as v,vc as d,w as h}from"./chunk-2HTR7ORR.js";function X(t,n){if(t&1&&(o(0,"mat-option",3),m(1),r()),t&2){let e=n.$implicit;p("value",e.id),i(),d(" ",e.name," ")}}function Y(t,n){if(t&1&&(o(0,"mat-form-field",1)(1,"mat-label"),m(2),y(3,"translate"),r(),o(4,"mat-select",2),g(5,X,2,2,"mat-option",3,s),r(),o(7,"mat-error"),m(8),y(9,"translate"),r()()),t&2){let e=c(),a=_(0);i(2),v(S(3,3,"admin.users.language")),i(2),p("formControl",e._language),i(),u(a),i(3),v(S(9,5,"admin.users.language.error"))}}function Z(t,n){if(t&1&&(o(0,"mat-option",3),m(1),r()),t&2){let e=n.$implicit;c();let a=M(1);p("value",e.id),i(),d(" ",a.panelOpen?e.name:e.id.toUpperCase()," ")}}function ee(t,n){if(t&1&&(o(0,"mat-select",4,0),g(2,Z,2,2,"mat-option",3,s),r()),t&2){let e=c(2),a=_(0);p("formControl",e._language),i(2),u(a)}}function te(t,n){if(t&1&&(o(0,"mat-option",3),m(1),r()),t&2){let e=n.$implicit;p("value",e.id),i(),d(" ",e.name," ")}}function ne(t,n){if(t&1&&(o(0,"mat-select",5),g(1,te,2,2,"mat-option",3,s),r()),t&2){let e=c(2),a=_(0);p("formControl",e._language),i(),u(a)}}function ie(t,n){if(t&1&&C(0,ee,4,1,"mat-select",4)(1,ne,3,1,"mat-select",5),t&2){let e=c();f(e._reduced()?0:1)}}var W=class t{showLabel=w(!1);_language;_languages=E({stream:()=>this._languageApiService.all()});_reduced;_dialogsService=l(j);_languageApiService=l(q);_tooltipService=l(V);_userApiService=l(Q);_userService=l(J);constructor(){this._language=new P(this._languageApiService.current),this._reduced=F(l(K).isMatch("(max-width: 380px)")),this._language.valueChanges.pipe(x()).subscribe({next:n=>this._onLanguageChanged(n)}),this._languageApiService.languageChanged.pipe(x()).subscribe({next:()=>this._language.reset(this._languageApiService.current)})}_onLanguageChanged(n){this._languageApiService.current!==n&&(this._languageApiService.current=n,this._userService.userToken&&this._userApiService.updateLanguage(n).pipe(b(()=>h({tooltipProduct:this._userApiService.configuracion("configuration-tooltip-product"),tooltipAnalysis:this._userApiService.configuracion("configuration-tooltip-analysis")}))).subscribe({next:e=>{this._tooltipService.product=e.tooltipProduct,this._tooltipService.analysis=e.tooltipAnalysis},error:e=>this._dialogsService.showErrorSnackbar(e)}))}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=L({type:t,selectors:[["catman-language"]],inputs:{showLabel:[1,"showLabel"]},decls:3,vars:2,consts:[["select",""],["floatLabel","always"],[3,"formControl"],[3,"value"],[1,"reduced",3,"formControl"],[1,"full",3,"formControl"]],template:function(e,a){e&1&&(A(0),C(1,Y,10,7,"mat-form-field",1)(2,ie,2,1)),e&2&&(T(a._languages.value()),i(),f(a.showLabel()?1:2))},dependencies:[R,$,N,U,H,G,z,B,k,O,I,D],styles:["[_nghost-%COMP%]{display:inline-block}mat-form-field[_ngcontent-%COMP%]{width:100%}.full[_ngcontent-%COMP%]{width:70px}.reduced[_ngcontent-%COMP%]{width:45px}"],changeDetection:0})};export{W 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.