-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathsrc_app_custom-elements_code_code-example_module_ts-es2015.853b40eff1bf35b4ba00.js
2 lines (2 loc) · 2.3 KB
/
src_app_custom-elements_code_code-example_module_ts-es2015.853b40eff1bf35b4ba00.js
1
2
(self.webpackChunkangular_cn=self.webpackChunkangular_cn||[]).push([["src_app_custom-elements_code_code-example_module_ts"],{7341:function(e,t,n){"use strict";n.r(t),n.d(t,{CodeExampleModule:function(){return p}});var i=n(1116),s=n(199),o=n(5366);const a=["content"];function h(e,t){if(1&e&&(o.TgZ(0,"header"),o._uU(1),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Oqu(e.header)}}const d=["*"];let c=(()=>{class e{constructor(){this._path="",this.isAvoid=!1}set header(e){this._header=e,this.classes={"headed-code":!!this.header,"simple-code":!this.header}}get header(){return this._header}set path(e){this._path=e,this.isAvoid=-1!==this.path.indexOf(".avoid.")}get path(){return this._path}set hidecopy(e){this._hidecopy=null!=e&&"false"!=`${e}`}get hidecopy(){return this._hidecopy}set hyphenatedHideCopy(e){this.hidecopy=e}set capitalizedHideCopy(e){this.hidecopy=e}ngAfterViewInit(){const e=this.content.nativeElement;this.aioCode.code=e.innerHTML,e.innerHTML=""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Xpm({type:e,selectors:[["code-example"]],viewQuery:function(e,t){if(1&e&&(o.Gf(a,7),o.Gf(s.Q,7)),2&e){let e;o.iGM(e=o.CRH())&&(t.content=e.first),o.iGM(e=o.CRH())&&(t.aioCode=e.first)}},hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("avoidFile",t.isAvoid)},inputs:{language:"language",linenums:"linenums",region:"region",header:"header",path:"path",hidecopy:"hidecopy",hyphenatedHideCopy:["hide-copy","hyphenatedHideCopy"],capitalizedHideCopy:["hideCopy","capitalizedHideCopy"]},ngContentSelectors:d,decls:5,vars:8,consts:[[2,"display","none"],["content",""],[4,"ngIf"],[3,"ngClass","language","linenums","path","region","hideCopy","header"]],template:function(e,t){1&e&&(o.F$t(),o.TgZ(0,"div",0,1),o.Hsn(2),o.qZA(),o.YNc(3,h,2,1,"header",2),o._UZ(4,"aio-code",3)),2&e&&(o.xp6(3),o.Q6J("ngIf",t.header),o.xp6(1),o.Q6J("ngClass",t.classes)("language",t.language)("linenums",t.linenums)("path",t.path)("region",t.region)("hideCopy",t.hidecopy)("header",t.header))},directives:[i.O5,s.Q,i.mk],encapsulation:2}),e})();var r=n(145);let p=(()=>{class e{constructor(){this.customElementComponent=c}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({imports:[[i.ez,r.r]]}),e})()}}]);
//# sourceMappingURL=src_app_custom-elements_code_code-example_module_ts-es2015.853b40eff1bf35b4ba00.js.map