2 lines
2.6 KiB
JavaScript
2 lines
2.6 KiB
JavaScript
!function(){function e(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function n(e,n){for(var i=0;i<n.length;i++){var t=n[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{DzVX:function(i,t,o){"use strict";o.r(t),o.d(t,"CodeExampleModule",function(){return y});var a=o("ofXK"),c=o("6CTB"),s=o("fXoL"),h=["content"];function r(e,n){if(1&e&&(s.Tb(0,"header"),s.Ac(1),s.Sb()),2&e){var i=s.ec();s.Cb(1),s.Bc(i.header)}}var d,p,u=["*"],l=((d=function(){function i(){e(this,i),this._path="",this.isAvoid=!1}var t,o,a;return t=i,(o=[{key:"ngAfterViewInit",value:function(){var e=this.content.nativeElement;this.aioCode.code=e.innerHTML,e.innerHTML=""}},{key:"header",set:function(e){this._header=e,this.classes={"headed-code":!!this.header,"simple-code":!this.header}},get:function(){return this._header}},{key:"path",set:function(e){this._path=e,this.isAvoid=-1!==this.path.indexOf(".avoid.")},get:function(){return this._path}},{key:"hidecopy",set:function(e){this._hidecopy=null!=e&&""+e!="false"},get:function(){return this._hidecopy}},{key:"hyphenatedHideCopy",set:function(e){this.hidecopy=e}},{key:"capitalizedHideCopy",set:function(e){this.hidecopy=e}}])&&n(t.prototype,o),a&&n(t,a),i}()).\u0275fac=function(e){return new(e||d)},d.\u0275cmp=s.Ib({type:d,selectors:[["code-example"]],viewQuery:function(e,n){var i;1&e&&(s.Ec(h,3),s.Ec(c.a,3)),2&e&&(s.oc(i=s.bc())&&(n.content=i.first),s.oc(i=s.bc())&&(n.aioCode=i.first))},hostVars:2,hostBindings:function(e,n){2&e&&s.Gb("avoidFile",n.isAvoid)},inputs:{language:"language",linenums:"linenums",region:"region",header:"header",path:"path",hidecopy:"hidecopy",hyphenatedHideCopy:["hide-copy","hyphenatedHideCopy"],capitalizedHideCopy:["hideCopy","capitalizedHideCopy"]},ngContentSelectors:u,decls:5,vars:8,consts:[[2,"display","none"],["content",""],[4,"ngIf"],[3,"ngClass","language","linenums","path","region","hideCopy","header"]],template:function(e,n){1&e&&(s.ic(),s.Tb(0,"div",0,1),s.hc(2),s.Sb(),s.zc(3,r,2,1,"header",2),s.Pb(4,"aio-code",3)),2&e&&(s.Cb(3),s.jc("ngIf",n.header),s.Cb(1),s.jc("ngClass",n.classes)("language",n.language)("linenums",n.linenums)("path",n.path)("region",n.region)("hideCopy",n.hidecopy)("header",n.header))},directives:[a.k,c.a,a.i],encapsulation:2}),d),f=o("V90o"),y=((p=function n(){e(this,n),this.customElementComponent=l}).\u0275mod=s.Mb({type:p}),p.\u0275inj=s.Lb({factory:function(e){return new(e||p)},imports:[[a.c,f.a]]}),p)}}])}();
|
|
//# sourceMappingURL=code-code-example-module-es5.af6b398dde18d5f1d877.js.map
|