-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsrc_app_custom-elements_code_code-example_module_ts.e0149b2b330297b6.js
2 lines (2 loc) · 2.27 KB
/
src_app_custom-elements_code_code-example_module_ts.e0149b2b330297b6.js
1
2
"use strict";(self.webpackChunksite=self.webpackChunksite||[]).push([["src_app_custom-elements_code_code-example_module_ts"],{102:(g,p,i)=>{i.r(p),i.d(p,{CodeExampleModule:()=>y});var d=i(4666),l=i(6155),h=i(2783),t=i(2560);const c=["content"];function m(o,a){if(1&o&&(t.TgZ(0,"header"),t._uU(1),t.qZA()),2&o){const e=t.oxw();t.xp6(1),t.Oqu(e.header)}}const r=["*"];let u=(()=>{class o{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=(0,l.Iv)(e),e.textContent=""}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["code-example"]],viewQuery:function(e,n){if(1&e&&(t.Gf(c,7),t.Gf(h.Q,7)),2&e){let s;t.iGM(s=t.CRH())&&(n.content=s.first),t.iGM(s=t.CRH())&&(n.aioCode=s.first)}},hostVars:2,hostBindings:function(e,n){2&e&&t.ekj("avoidFile",n.isAvoid)},inputs:{language:"language",linenums:"linenums",region:"region",header:"header",path:"path",hidecopy:"hidecopy",hyphenatedHideCopy:["hide-copy","hyphenatedHideCopy"],capitalizedHideCopy:["hideCopy","capitalizedHideCopy"]},ngContentSelectors:r,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&&(t.F$t(),t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA(),t.YNc(3,m,2,1,"header",2),t._UZ(4,"aio-code",3)),2&e&&(t.xp6(3),t.Q6J("ngIf",n.header),t.xp6(1),t.Q6J("ngClass",n.classes)("language",n.language)("linenums",n.linenums)("path",n.path)("region",n.region)("hideCopy",n.hidecopy)("header",n.header))},dependencies:[d.mk,d.O5,h.Q],encapsulation:2}),o})();var C=i(9835);let y=(()=>{class o{constructor(){this.customElementComponent=u}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[d.ez,C.r]}),o})()}}]);
//# sourceMappingURL=src_app_custom-elements_code_code-example_module_ts.e0149b2b330297b6.js.map