-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcode-code-example-module-es2015.6b604f5255316ba4a446.js
2 lines (2 loc) · 2.17 KB
/
code-code-example-module-es2015.6b604f5255316ba4a446.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{DzVX:function(e,t,i){"use strict";i.r(t);var n=i("ofXK"),o=i("6CTB"),a=i("fXoL");const s=["content"];function c(e,t){if(1&e&&(a.Vb(0,"header"),a.Gc(1),a.Tb()),2&e){const e=a.hc();a.Ab(1),a.Hc(e.header)}}const h=["*"];let d=(()=>{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(){this.aioCode.code=this.content.nativeElement.innerHTML}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Jb({type:e,selectors:[["code-example"]],viewQuery:function(e,t){var i;1&e&&(a.Ac(s,!0),a.Ac(o.a,!0)),2&e&&(a.rc(i=a.ec())&&(t.content=i.first),a.rc(i=a.ec())&&(t.aioCode=i.first))},hostBindings:function(e,t,i){1&e&&a.Bb(1),2&e&&a.Fb("avoidFile",t.isAvoid)},inputs:{language:"language",linenums:"linenums",region:"region",header:"header",path:"path",hidecopy:"hidecopy",hyphenatedHideCopy:["hide-copy","hyphenatedHideCopy"],capitalizedHideCopy:["hideCopy","capitalizedHideCopy"]},ngContentSelectors:h,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&&(a.lc(),a.Vb(0,"div",0,1),a.kc(2),a.Tb(),a.Ec(3,c,2,1,"header",2),a.Qb(4,"aio-code",3)),2&e&&(a.Ab(3),a.mc("ngIf",t.header),a.Ab(1),a.mc("ngClass",t.classes)("language",t.language)("linenums",t.linenums)("path",t.path)("region",t.region)("hideCopy",t.hidecopy)("header",t.header))},directives:[n.k,o.a,n.i],encapsulation:2}),e})();var r=i("V90o");i.d(t,"CodeExampleModule",(function(){return p}));let p=(()=>{class e{constructor(){this.customElementComponent=d}}return e.\u0275mod=a.Nb({type:e}),e.\u0275inj=a.Mb({factory:function(t){return new(t||e)},imports:[[n.c,r.a]]}),e})()}}]);
//# sourceMappingURL=code-code-example-module-es2015.6b604f5255316ba4a446.js.map