-
Notifications
You must be signed in to change notification settings - Fork 1
/
src_app_custom-elements_live-example_live-example_module_ts.fa1cca39151839ea.js
2 lines (2 loc) · 4.32 KB
/
src_app_custom-elements_live-example_live-example_module_ts.fa1cca39151839ea.js
1
2
"use strict";(self.webpackChunksite=self.webpackChunksite||[]).push([["src_app_custom-elements_live-example_live-example_module_ts"],{5984:($,d,r)=>{r.r(d),r.d(d,{LiveExampleModule:()=>L});var c=r(3267),u=r(4788),e=r(5460);function s(t,o){const i="string"==typeof o?o:o.find(n=>t.hasOwnProperty(n.toLowerCase()));return void 0===i?void 0:t[i.toLowerCase()]}function p(t,o=!1){return void 0===t?o:"false"!==t.trim()}const h=["content"];function C(t,o){if(1&t&&(e.I0R(0,"p"),e.OEk(1," You can also "),e.I0R(2,"a",8),e.OEk(3,"download this example"),e.C$Y(),e.OEk(4,". "),e.C$Y()),2&t){const i=e.GaO(2);e.yG2(2),e.E7m("href",i.zip,e.K6U)}}function x(t,o){if(1&t&&(e.I0R(0,"span")(1,"div",5),e.wR5(2,"aio-embedded-stackblitz",6),e.C$Y(),e.yuY(3,C,5,1,"p",7),e.C$Y()),2&t){const i=e.GaO();e.yG2(),e._6D("title",i.title),e.yG2(),e.E7m("src",i.stackblitz),e.yG2(),e.E7m("ngIf",i.enableDownload)}}function b(t,o){if(1&t&&(e.I0R(0,"span")(1,"a",9),e.OEk(2),e.C$Y()()),2&t){const i=e.GaO();e.yG2(),e._6D("title",i.title),e.E7m("href",i.zip,e.K6U),e.yG2(),e.cNF(i.title)}}function v(t,o){if(1&t&&(e.I0R(0,"span"),e.OEk(1," / "),e.I0R(2,"a",8),e.OEk(3,"download example"),e.C$Y()()),2&t){const i=e.GaO(2);e.yG2(2),e.E7m("href",i.zip,e.K6U)}}function y(t,o){if(1&t&&(e.I0R(0,"span")(1,"a",10),e.OEk(2),e.C$Y(),e.yuY(3,v,4,1,"span",7),e.C$Y()),2&t){const i=e.GaO();e.yG2(),e._6D("title",i.title),e.E7m("href",i.stackblitz,e.K6U),e.yG2(),e.cNF(i.title),e.yG2(),e.E7m("ngIf",i.enableDownload)}}const g=["*"],w=["iframe"],_=u.y2+"live-examples/",k=u.y2+"zips/";let z=(()=>{var t;class o{constructor(n,l){const a=function f(t){const o=t instanceof e.GMv?t.nativeElement.attributes:t.attributes,i={};for(const n of o)i[n.name.toLowerCase()]=n.value;return i}(n),m=this.getExampleDir(a,l.path(!1)),E=this.getStackblitzName(a);this.mode=this.getMode(a),this.enableDownload=this.getEnableDownload(a),this.stackblitz=this.getStackblitz(m,E,"embedded"===this.mode),this.zip=this.getZip(m,E),this.title=this.getTitle(a)}ngAfterContentInit(){const n=this.content.nativeElement.textContent.trim();n&&(this.title=n)}getEnableDownload(n){return!p(s(n,"noDownload"))}getExampleDir(n,l){let a=s(n,"name");if(!a){const m=l.match(/[^/?#]+(?=\/?(?:\?|#|$))/);a=m?m[0]:"index"}return a.trim()}getMode(n){const l=p(s(n,"downloadOnly")),a=p(s(n,"embedded"));return l?"downloadOnly":a?"embedded":"default"}getStackblitz(n,l,a){return`${_}${n}/${l}stackblitz.html${a?"?ctl=1":""}`}getStackblitzName(n){const l=(s(n,"stackblitz")||"").trim();return l&&`${l}.`}getTitle(n){return(s(n,"title")||"live example").trim()}getZip(n,l){const a=n.split("/")[0];return`${k}${n}/${l}${a}.zip`}}return(t=o).\u0275fac=function(n){return new(n||t)(e.GI1(e.GMv),e.GI1(c.oB))},t.\u0275cmp=e.In1({type:t,selectors:[["live-example"]],viewQuery:function(n,l){if(1&n&&e.CC$(h,7),2&n){let a;e.wto(a=e.Gqi())&&(l.content=a.first)}},ngContentSelectors:g,decls:7,vars:3,consts:[[2,"display","none"],["content",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"title"],[3,"src"],[4,"ngIf"],["download","","title","Download example",3,"href"],["download","",3,"href","title"],["target","_blank",3,"href","title"]],template:function(n,l){1&n&&(e.kPM(),e.I0R(0,"span",0,1),e._Xx(2),e.C$Y(),e.I0R(3,"span",2),e.yuY(4,x,4,3,"span",3)(5,b,3,3,"span",3)(6,y,4,4,"span",4),e.C$Y()),2&n&&(e.yG2(3),e.E7m("ngSwitch",l.mode),e.yG2(),e.E7m("ngSwitchCase","embedded"),e.yG2(),e.E7m("ngSwitchCase","downloadOnly"))},dependencies:()=>[c.u_,c.Ko,c.Wm,c.UZ,G],encapsulation:2}),o})(),G=(()=>{var t;class o{ngAfterViewInit(){this.iframe&&(this.iframe.nativeElement.src=this.src)}}return(t=o).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.In1({type:t,selectors:[["aio-embedded-stackblitz"]],viewQuery:function(n,l){if(1&n&&e.CC$(w,7),2&n){let a;e.wto(a=e.Gqi())&&(l.iframe=a.first)}},inputs:{src:"src"},decls:2,vars:0,consts:[["frameborder","0","width","100%","height","100%"],["iframe",""]],template:function(n,l){1&n&&e.wR5(0,"iframe",0,1)},styles:["iframe[_ngcontent-%COMP%]{min-height:400px}\n\n/*# sourceMappingURL=live-example.component.ts-angular-inline--1.css.map*/"]}),o})(),L=(()=>{var t;class o{constructor(){this.customElementComponent=z}}return(t=o).\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.a4G({type:t}),t.\u0275inj=e.s3X({imports:[c.MD]}),o})()}}]);
//# sourceMappingURL=src_app_custom-elements_live-example_live-example_module_ts.fa1cca39151839ea.js.map