-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path285-es2015.f4a97decf073be4f6dac.js
More file actions
2 lines (2 loc) · 4.21 KB
/
285-es2015.f4a97decf073be4f6dac.js
File metadata and controls
2 lines (2 loc) · 4.21 KB
1
2
"use strict";(self.webpackChunkrxjs_dev=self.webpackChunkrxjs_dev||[]).push([[285],{99285:function(t,e,n){n.r(e),n.d(e,{LiveExampleModule:function(){return Z}});var i=n(54364),o=n(70095),s=n(2316);function a(t,e){const n="string"==typeof e?e:e.find(e=>t.hasOwnProperty(e.toLowerCase()));return void 0===n?void 0:t[n.toLowerCase()]}function r(t,e=!1){return void 0===t?e:"false"!==t.trim()}const c=["content"];function l(t,e){if(1&t&&(s.TgZ(0,"p"),s._uU(1," You can also "),s.TgZ(2,"a",8),s._uU(3,"download this example"),s.qZA(),s._uU(4,". "),s.qZA()),2&t){const t=s.oxw(2);s.xp6(2),s.Q6J("href",t.zip,s.LSH)}}function p(t,e){if(1&t&&(s.TgZ(0,"span"),s.TgZ(1,"div",5),s._UZ(2,"aio-embedded-stackblitz",6),s.qZA(),s.YNc(3,l,5,1,"p",7),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.s9C("title",t.title),s.xp6(1),s.Q6J("src",t.stackblitz),s.xp6(1),s.Q6J("ngIf",t.enableDownload)}}function f(t,e){if(1&t&&(s.TgZ(0,"span"),s.TgZ(1,"a",9),s._uU(2),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.s9C("title",t.title),s.Q6J("href",t.zip,s.LSH),s.xp6(1),s.Oqu(t.title)}}function u(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1," / "),s.TgZ(2,"a",8),s._uU(3,"download example"),s.qZA(),s.qZA()),2&t){const t=s.oxw(2);s.xp6(2),s.Q6J("href",t.zip,s.LSH)}}function d(t,e){if(1&t&&(s.TgZ(0,"span"),s.TgZ(1,"a",10),s._uU(2),s.qZA(),s.YNc(3,u,4,1,"span",7),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.s9C("title",t.title),s.Q6J("href",t.stackblitz,s.LSH),s.xp6(1),s.Oqu(t.title),s.xp6(1),s.Q6J("ngIf",t.enableDownload)}}const m=["*"],h=["iframe"],g=o.bL+"live-examples/",w=o.bL+"zips/";let x=(()=>{class t{constructor(t,e){const n=function(t){const e=t instanceof s.SBq?t.nativeElement.attributes:t.attributes,n={};for(const i of e)n[i.name.toLowerCase()]=i.value;return n}(t),i=this.getExampleDir(n,e.path(!1)),o=this.getStackblitzName(n);this.mode=this.getMode(n),this.enableDownload=this.getEnableDownload(n),this.stackblitz=this.getStackblitz(i,o,"embedded"===this.mode),this.zip=this.getZip(i,o),this.title=this.getTitle(n)}ngAfterContentInit(){const t=this.content.nativeElement.textContent.trim();t&&(this.title=t)}getEnableDownload(t){return!r(a(t,"noDownload"))}getExampleDir(t,e){let n=a(t,"name");if(!n){const t=e.match(/[^/?#]+(?=\/?(?:\?|#|$))/);n=t?t[0]:"index"}return n.trim()}getMode(t){const e=r(a(t,"downloadOnly")),n=r(a(t,"embedded"));return e?"downloadOnly":n?"embedded":"default"}getStackblitz(t,e,n){return`${g}${t}/${e}stackblitz.html${n?"?ctl=1":""}`}getStackblitzName(t){const e=(a(t,"stackblitz")||"").trim();return e&&`${e}.`}getTitle(t){return(a(t,"title")||"live example").trim()}getZip(t,e){const n=t.split("/")[0];return`${w}${t}/${e}${n}.zip`}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(i.Ye))},t.\u0275cmp=s.Xpm({type:t,selectors:[["live-example"]],viewQuery:function(t,e){if(1&t&&s.Gf(c,7),2&t){let t;s.iGM(t=s.CRH())&&(e.content=t.first)}},ngContentSelectors:m,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(t,e){1&t&&(s.F$t(),s.TgZ(0,"span",0,1),s.Hsn(2),s.qZA(),s.TgZ(3,"span",2),s.YNc(4,p,4,3,"span",3),s.YNc(5,f,3,3,"span",3),s.YNc(6,d,4,4,"span",4),s.qZA()),2&t&&(s.xp6(3),s.Q6J("ngSwitch",e.mode),s.xp6(1),s.Q6J("ngSwitchCase","embedded"),s.xp6(1),s.Q6J("ngSwitchCase","downloadOnly"))},directives:function(){return[i.RF,i.n9,i.ED,b,i.O5]},encapsulation:2}),t})(),b=(()=>{class t{ngAfterViewInit(){this.iframe&&(this.iframe.nativeElement.src=this.src)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["aio-embedded-stackblitz"]],viewQuery:function(t,e){if(1&t&&s.Gf(h,7),2&t){let t;s.iGM(t=s.CRH())&&(e.iframe=t.first)}},inputs:{src:"src"},decls:2,vars:0,consts:[["frameborder","0","width","100%","height","100%"],["iframe",""]],template:function(t,e){1&t&&s._UZ(0,"iframe",0,1)},styles:["iframe[_ngcontent-%COMP%]{min-height:400px}"]}),t})(),Z=(()=>{class t{constructor(){this.customElementComponent=x}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez]]}),t})()}}]);
//# sourceMappingURL=285-es2015.f4a97decf073be4f6dac.js.map