angular-t9n
Version:
A translation tool for Angular i18n
3 lines (2 loc) • 7.07 kB
JavaScript
import{a as j,b as I}from"./chunk-B75QZTIT.js";import{a as A,b as B}from"./chunk-TCB7CPXY.js";import{a as z,b as L}from"./chunk-27GPMXRH.js";import{b as P,c as S}from"./chunk-MFJLYQLJ.js";import{a as T,d as O,f as D,h as k}from"./chunk-PTK3D5EO.js";import{b as N}from"./chunk-MLPE3OCH.js";import{$ as n,Lb as v,Lc as R,Mb as d,Nb as C,Pb as x,Qb as w,Wb as p,X as b,Xb as y,Yb as i,bb as s,cb as g,db as M,ja as u,nc as _,ud as E,vb as l,wa as f,wb as a,xb as c}from"./chunk-KWXDDR2S.js";import"./chunk-4CLCTAJ7.js";var W=["*",[["mat-toolbar-row"]]],Z=["*","mat-toolbar-row"],J=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275dir=M({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),H=(()=>{class t{_elementRef=n(f);_platform=n(R);_document=n(u);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=s({type:t,selectors:[["mat-toolbar"]],contentQueries:function(o,e,m){if(o&1&&C(m,J,5),o&2){let h;x(h=w())&&(e._toolbarRows=h)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(o,e){o&2&&(y(e.color?"mat-"+e.color:""),p("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",e._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:Z,decls:2,vars:0,template:function(o,e){o&1&&(v(W),d(0),d(1,1))},styles:[`.mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}}
`],encapsulation:2,changeDetection:0})}return t})();var F=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=g({type:t});static \u0275inj=b({imports:[E]})}return t})();var Q=(()=>{class t{constructor(){this.serviceDown=!1;let r=n(N),o=n(j),e;r.project.subscribe(m=>{!this.serviceDown&&!m?e=o.open("Translation server is not available. Start it by running the command 'ng run yourProject:t9n' in your console."):this.serviceDown&&m&&e?.dismiss(),this.serviceDown=!m})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=s({type:t,selectors:[["t9n-root"]],hostVars:2,hostBindings:function(o,e){o&2&&p("service-down",e.serviceDown)},decls:18,vars:0,consts:[["color","primary","role","heading"],["mat-button","","routerLink","/"],["mat-button","","matTooltip","Dashboard","routerLink","/"],["mat-button","","matTooltip","Migrate Orphans","routerLink","/orphans"],[1,"separator"],["mat-button","","href","https://github.com/kyubisation/angular-t9n"],["src","assets/github.svg","alt","GitHub"]],template:function(o,e){o&1&&(l(0,"mat-toolbar",0)(1,"a",1)(2,"mat-icon"),i(3,"translate"),a(),i(4," angular-t9n "),a(),l(5,"a",2)(6,"mat-icon"),i(7,"home"),a()(),l(8,"a",3)(9,"mat-icon"),i(10,"mediation"),a(),i(11," Orphans "),a(),c(12,"span",4),l(13,"a",5),c(14,"img",6),i(15," GitHub "),a()(),l(16,"main"),c(17,"router-outlet"),a())},dependencies:[F,H,S,P,D,B,A,I,L,z,O],styles:["[_nghost-%COMP%]{display:block;height:calc(100% - 64px);padding-top:64px}.service-down[_nghost-%COMP%]{opacity:.5;pointer-events:none}mat-toolbar[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}mat-toolbar[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{flex:1 1 auto}mat-toolbar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, mat-toolbar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:focus{background:#0006}mat-toolbar[_ngcontent-%COMP%] a[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{padding-right:.2rem;vertical-align:middle}.mat-mdc-button-base[_ngcontent-%COMP%]:not(:disabled){color:inherit}main[_ngcontent-%COMP%]{height:100%}"]})}}return t})();var U=[{path:"",loadComponent:()=>import("./chunk-27G4VKL7.js").then(t=>t.OverviewComponent)}];var V=[{path:"orphans",loadComponent:()=>import("./chunk-MRHYSPSD.js").then(t=>t.SourceOrphansComponent),children:[{path:"",redirectTo:"migrate",pathMatch:"full"},{path:"migrate",loadComponent:()=>import("./chunk-VX6ORCVX.js").then(t=>t.MigrateComponent)},{path:"migrate/:orphanId",loadComponent:()=>import("./chunk-XBDCVM2Y.js").then(t=>t.SourceOrphanComponent)},{path:"auto-migration",loadComponent:()=>import("./chunk-JOD35JSR.js").then(t=>t.AutoMigrateComponent)}]}];var G=[{path:"target/:language",loadComponent:()=>import("./chunk-HG5S6RT6.js").then(t=>t.TargetComponent),children:[{path:"",loadComponent:()=>import("./chunk-PBB5YISA.js").then(t=>t.TranslateComponent)},{path:"unit/:unitId",loadComponent:()=>import("./chunk-7OHMW2A6.js").then(t=>t.UnitComponent)},{path:"import",loadComponent:()=>import("./chunk-2QVK3YR6.js").then(t=>t.ImportComponent)},{path:"export",loadComponent:()=>import("./chunk-3SQ7KIFB.js").then(t=>t.ExportComponent)},{path:"orphans",loadComponent:()=>import("./chunk-RQSOA2WZ.js").then(t=>t.OrphansComponent)},{path:"orphans/:orphanId",loadComponent:()=>import("./chunk-LPTWERZI.js").then(t=>t.OrphanComponent)}]}];var X=[...U,...V,...G];T(Q,{providers:[_(),k(X)]}).catch(t=>console.error(t));