1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d1d31b26-c852-535f-9574-a99eb9bc0ed4")}catch(e){}}(); 3import{B as q,D as Y,F as Z,G as u,S as H,T as J,V as X,X as ee,aa as m,x as G}from"./chunk-4FH7VF6A.js";import{G as U,J as F,K as V,Ka as $,Wc as j,cd as Q}from"./chunk-2HKFF2VZ.js";import{v as h}from"./chunk-U467OQ6S.js";import{$a as x,Da as L,Fa as v,Hb as P,Ib as E,Ic as O,Jb as b,Jc as R,Jd as K,Mb as I,Mc as g,Nb as k,Nd as W,Ob as c,Pb as d,Qb as f,Rb as p,Wc as z,Xb as A,Yb as D,_b as N,ac as r,ic as w,jc as B,jd as M,kc as s,nb as T,qb as y,ta as a,tb as S,ya as C,za as _}from"./chunk-XDQ7JMLP.js";function ne(e,n){if(e&1&&p(0,"cui-popover",3),e&2){let i=r(),o=s(3),t=s(7);c("triggerContent",o)("popoverContent",t)("popoverPlacement",i.PopoverPlacement.BOTTOM_END)("closingTriggerTypes",i.closingTriggers)}}function oe(e,n){if(e&1&&A(0,4),e&2){r();let i=s(3);c("ngTemplateOutlet",i)}}function ie(e,n){if(e&1&&(p(0,"cui-button",5),O(1,"uppercase")),e&2){let i=r(),o=s(5);c("text",R(1,5,i.current==null?null:i.current.language)??"")("color",i.UiColor.NEUTRAL)("variant",i.UiVariant.BARE)("configuration",i.ButtonConfiguration.LABEL_AND_ICON)("trailingVisual",o)}}function le(e,n){e&1&&p(0,"cui-icon",6)}function ae(e,n){if(e&1){let i=D();d(0,"cui-action",9),N("actionClicked",function(){let t=C(i).$implicit,l=r(2);return _(l.changeLocale(t.locale))}),f()}if(e&2){let i=n.$implicit;c("label",i.localized)}}function re(e,n){if(e&1&&(d(0,"cui-action-list",7),I(1,ae,1,1,"cui-action",8,P().identity,!0),f()),e&2){let i=r();x(),k(i.locales)}}var Le=(()=>{let n=class n{constructor(){this.ButtonConfiguration=Y,this.UiColor=G,this.UiVariant=q,this.PopoverPlacement=Z,this.closingTriggers=[u.CLICK,u.CLICK_OUTSIDE,u.ESCAPE],this.popover=z(m),this.hideWhenSingle=!0,this.skipSetLang=!1,this.localeChanged=new v,this.locales=[],this.config=a($),this.destroyRef=a(L),this.locale=a(Q),this.pendingChangesService=a(j),this.translate=a(M)}get hasMultipleLocales(){return this.locales.length>1}ngOnInit(){this.config.context$.pipe(h(this.destroyRef)).subscribe(o=>{if(this.locales=o.locales,this.current=this.locales.find(t=>t.locale===this.translate.currentLang),!!this.current)try{let t=V(this.current.locale);U({locale:F(t)})}catch(t){}})}changeLocale(o){this.popover()?.closePopover(),this.pendingChangesService.hasComponent()?this.pendingChangesService.canNavigateAway().pipe(h(this.destroyRef)).subscribe(t=>{t&&this.doChangeLocale(o)}):this.doChangeLocale(o)}doChangeLocale(o){this.skipSetLang||this.locale.setCurrent(o),this.current=this.locales.find(t=>t.locale===o),this.localeChanged.emit(o)}identity(o,t){return t.locale}};n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=T({type:n,selectors:[["aut-language-selector"]],viewQuery:function(t,l){t&1&&w(l.popover,m,5),t&2&&B()},hostAttrs:[1,"d-inline-block"],inputs:{hideWhenSingle:"hideWhenSingle",skipSetLang:"skipSetLang"},outputs:{localeChanged:"localeChanged"},decls:8,vars:1,consts:[["localeTrigger",""],["globeIcon",""],["localeMenu",""],["data-testid","locale-popover","width","8rem",3,"triggerContent","popoverContent","popoverPlacement","closingTriggerTypes"],[3,"ngTemplateOutlet"],["type","button","data-testid","locale-toggle",3,"text","color","variant","configuration","trailingVisual"],["icon","globe"],["data-testid","locale-list"],["data-testid","locale-list-item",3,"label"],["data-testid","locale-list-item",3,"actionClicked","label"]],template:function(t,l){t&1&&(E(0,ne,1,4,"cui-popover",3)(1,oe,1,1,"ng-container",4),S(2,ie,2,7,"ng-template",null,0,g)(4,le,1,0,"ng-template",null,1,g)(6,re,3,0,"ng-template",null,2,g)),t&2&&b(l.hasMultipleLocales?0:l.hideWhenSingle?-1:1)},dependencies:[K,ee,X,m,H,J,W],encapsulation:2});let e=n;return e})();function ye(e){let[n]=e.split("_");if(n.length!==2)throw new Error("Invalid locale");return n}var Pe=(()=>{let n=class n{transform(o,t){return o.length>0?o:`[EMPTY LOCALIZATION]: ${t}`}};n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=y({name:"emptyLocalizationWarning",type:n,pure:!0});let e=n;return e})();export{Le as a,ye as b,Pe as c}; 4 5//# debugId=d1d31b26-c852-535f-9574-a99eb9bc0ed4
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.