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