UNPKG

angular-t9n

Version:

A translation tool for Angular i18n

2 lines (1 loc) 3.5 kB
import{a as X,b as w,c as z,d as D}from"./chunk-2K5BLMKB.js";import{b as y,c as k,d as x}from"./chunk-2P3JTSUN.js";import{a as $,f as b}from"./chunk-TLCWMOCH.js";import{a as B}from"./chunk-MPLUJE7X.js";import"./chunk-WUN63NIA.js";import{d as O,e as h,g as N,h as L}from"./chunk-6DDCRX73.js";import"./chunk-TOPF3UHX.js";import"./chunk-FK6IRHWX.js";import{a as I}from"./chunk-4NKRI2IB.js";import"./chunk-NRGBO6B5.js";import"./chunk-XUIN44YA.js";import{$b as S,Hb as c,Ic as P,Kc as G,Ta as T,U as f,Xb as R,Yb as C,ac as v,cb as M,da as g,dc as p,ec as d,hb as u,wb as m,xb as i,yb as e,z as E,zb as A}from"./chunk-IRWV2DJQ.js";import"./chunk-4CLCTAJ7.js";var F=()=>({exact:!0});function j(o,t){o&1&&(i(0,"a",11),c(1,3),e())}function q(o,t){o&1&&(i(0,"mat-card",12),c(1,4),e())}var re=(()=>{let t=class t{constructor(){this._route=g(O),this._translationService=g(I),this.target=this._route.params.pipe(f(n=>this._translationService.target(n.language)),E(n=>!!n))}};t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=M({type:t,selectors:[["t9n-target"]],features:[S([B])],decls:18,vars:11,consts:()=>{let n;n=$localize`:␟e5b9218a6c766b23fc18899f8dc559cc4f7e7621␟1613971242435858090:Translate`;let a;a=$localize`:␟5f19586aba912ec6eb123ec5ab609a3bcc073066␟7462301153729425254:Export`;let _;_=$localize`:␟a059709f71aa4c0ac219e160e78a738682ca6a36␟1071721880474488785:Import`;let s;s=$localize`:␟4ab6aedb58478677ac0bfc5eb87bc3fe8b8c0920␟1724892236454928633:Orphans`;let l;return l=$localize`:␟883f596b4489ae541868cbc12502ed1ec13f08c7␟8128328859314736211: Orphans are translation units whose id is no longer contained in the source file. Migrate them in the orphans section. `,[n,a,_,s,l,["opened","","mode","side"],["mat-list-item","","routerLink","./","routerLinkActive","active",3,"routerLinkActiveOptions"],["mat-list-item","","routerLink","./export","routerLinkActive","active"],["mat-list-item","","routerLink","./import","routerLinkActive","active"],["mat-list-item","","routerLink","./orphans","routerLinkActive","active",4,"ngIf"],["appearance","outlined",4,"ngIf"],["mat-list-item","","routerLink","./orphans","routerLinkActive","active"],["appearance","outlined"]]},template:function(a,_){if(a&1&&(i(0,"mat-sidenav-container")(1,"mat-sidenav",5)(2,"h1"),R(3),p(4,"async"),e(),i(5,"mat-nav-list")(6,"a",6),c(7,0),e(),i(8,"a",7),c(9,1),e(),i(10,"a",8),c(11,2),e(),u(12,j,2,0,"a",9),p(13,"async"),e(),u(14,q,2,0,"mat-card",10),p(15,"async"),e(),i(16,"mat-sidenav-content"),A(17,"router-outlet"),e()()),a&2){let s,l,r;T(3),C((s=d(4,4,_.target))==null?null:s.language),T(3),m("routerLinkActiveOptions",v(10,F)),T(6),m("ngIf",(l=d(13,6,_.target))==null?null:l.orphanCount),T(2),m("ngIf",(r=d(15,8,_.target))==null?null:r.orphanCount)}},dependencies:[D,w,z,X,x,k,y,N,L,P,b,$,h,G],styles:["[_nghost-%COMP%]{display:block;height:100%}h1[_ngcontent-%COMP%]{color:#00000061;font-size:12px;font-weight:600;margin-bottom:8px;padding:20px 24px 0 16px;text-transform:uppercase}mat-sidenav-container[_ngcontent-%COMP%]{height:100%}mat-sidenav-container[_ngcontent-%COMP%] mat-sidenav[_ngcontent-%COMP%]{width:12rem}mat-sidenav-container[_ngcontent-%COMP%] mat-sidenav[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{color:#3f51b5;background-color:#0000000d}mat-sidenav-container[_ngcontent-%COMP%] mat-sidenav[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{background-color:#fff59d;margin:.5rem;padding:.25rem}"],changeDetection:0});let o=t;return o})();export{re as TargetComponent};