-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlive-example-live-example-module-ngfactory.e07fbad59c15dc6e8dd4.js
2 lines (2 loc) · 5.36 KB
/
live-example-live-example-module-ngfactory.e07fbad59c15dc6e8dd4.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{Rz96:function(l,n,t){"use strict";t.r(n);var u=t("CcnG"),e=t("jn67");function o(l,n){var t="string"==typeof n?n:n.find(function(n){return l.hasOwnProperty(n.toLowerCase())});return void 0===t?void 0:l[t.toLowerCase()]}function i(l,n){return void 0===n&&(n=!1),void 0===l?n:"false"!==l.trim()}var r=e.a+"live-examples/",a=e.a+"zips/",b=function(){function l(l,n){var t=function(n){for(var t={},e=0,o=l instanceof u.k?l.nativeElement.attributes:l.attributes;e<o.length;e++){var i=o[e];t[i.name.toLowerCase()]=i.value}return t}(),e=this.getExampleDir(t,n.path(!1)),o=this.getStackblitzName(t);this.mode=this.getMode(t),this.enableDownload=this.getEnableDownload(t),this.stackblitz=this.getStackblitz(e,o,"embedded"===this.mode),this.zip=this.getZip(e,o),this.title=this.getTitle(t)}return l.prototype.ngAfterContentInit=function(){var l=this.content.nativeElement.textContent.trim();l&&(this.title=l)},l.prototype.getEnableDownload=function(l){return!i(o(l,"noDownload"))},l.prototype.getExampleDir=function(l,n){var t=o(l,"name");if(!t){var u=n.match(/[^\/?#]+(?=\/?(?:\?|#|$))/);t=u?u[0]:"index"}return t.trim()},l.prototype.getMode=function(l){var n=i(o(l,"downloadOnly")),t=i(o(l,"embedded"));return n?"downloadOnly":t?"embedded":"default"},l.prototype.getStackblitz=function(l,n,t){return""+r+l+"/"+n+"stackblitz.html"+(t?"?ctl=1":"")},l.prototype.getStackblitzName=function(l){var n=(o(l,"stackblitz")||"").trim();return n&&n+"."},l.prototype.getTitle=function(l){return(o(l,"title")||"live example").trim()},l.prototype.getZip=function(l,n){var t=l.split("/")[0];return""+a+l+"/"+n+t+".zip"},l}(),c=function(){function l(){}return l.prototype.ngAfterViewInit=function(){this.iframe&&(this.iframe.nativeElement.src=this.src)},l}(),p=function(){return function(){this.customElementComponent=b}}(),s=t("Ip0R"),d=u.pb({encapsulation:2,styles:[],data:{}});function f(l){return u.Jb(0,[(l()(),u.rb(0,0,null,null,4,"p",[],null,null,null,null,null)),(l()(),u.Hb(-1,null,[" You can also "])),(l()(),u.rb(2,0,null,null,1,"a",[["download",""],["title","Download example"]],[[8,"href",4]],null,null,null,null)),(l()(),u.Hb(-1,null,["download this example"])),(l()(),u.Hb(-1,null,[". "]))],null,function(l,n){l(n,2,0,n.component.zip)})}function m(l){return u.Jb(0,[(l()(),u.rb(0,0,null,null,5,"span",[],null,null,null,null,null)),(l()(),u.rb(1,0,null,null,2,"div",[],[[8,"title",0]],null,null,null,null)),(l()(),u.rb(2,0,null,null,1,"aio-embedded-stackblitz",[],null,null,null,x,k)),u.qb(3,4243456,null,0,c,[],{src:[0,"src"]},null),(l()(),u.ib(16777216,null,null,1,null,f)),u.qb(5,16384,null,0,s.k,[u.R,u.O],{ngIf:[0,"ngIf"]},null)],function(l,n){var t=n.component;l(n,3,0,t.stackblitz),l(n,5,0,t.enableDownload)},function(l,n){l(n,1,0,u.tb(1,"",n.component.title,""))})}function h(l){return u.Jb(0,[(l()(),u.rb(0,0,null,null,2,"span",[],null,null,null,null,null)),(l()(),u.rb(1,0,null,null,1,"a",[["download",""]],[[8,"href",4],[8,"title",0]],null,null,null,null)),(l()(),u.Hb(2,null,["",""]))],null,function(l,n){var t=n.component;l(n,1,0,t.zip,u.tb(1,"",t.title,"")),l(n,2,0,t.title)})}function g(l){return u.Jb(0,[(l()(),u.rb(0,0,null,null,3,"span",[],null,null,null,null,null)),(l()(),u.Hb(-1,null,[" / "])),(l()(),u.rb(2,0,null,null,1,"a",[["download",""],["title","Download example"]],[[8,"href",4]],null,null,null,null)),(l()(),u.Hb(-1,null,["download example"]))],null,function(l,n){l(n,2,0,n.component.zip)})}function w(l){return u.Jb(0,[(l()(),u.rb(0,0,null,null,4,"span",[],null,null,null,null,null)),(l()(),u.rb(1,0,null,null,1,"a",[["target","_blank"]],[[8,"href",4],[8,"title",0]],null,null,null,null)),(l()(),u.Hb(2,null,["",""])),(l()(),u.ib(16777216,null,null,1,null,g)),u.qb(4,16384,null,0,s.k,[u.R,u.O],{ngIf:[0,"ngIf"]},null)],function(l,n){l(n,4,0,n.component.enableDownload)},function(l,n){var t=n.component;l(n,1,0,t.stackblitz,u.tb(1,"",t.title,"")),l(n,2,0,t.title)})}function v(l){return u.Jb(0,[u.Fb(402653184,1,{content:0}),(l()(),u.rb(1,0,[[1,0],["content",1]],null,1,"span",[["style","display: none"]],null,null,null,null,null)),u.zb(null,0),(l()(),u.rb(3,0,null,null,7,"span",[],null,null,null,null,null)),u.qb(4,16384,null,0,s.o,[],{ngSwitch:[0,"ngSwitch"]},null),(l()(),u.ib(16777216,null,null,1,null,m)),u.qb(6,278528,null,0,s.p,[u.R,u.O,s.o],{ngSwitchCase:[0,"ngSwitchCase"]},null),(l()(),u.ib(16777216,null,null,1,null,h)),u.qb(8,278528,null,0,s.p,[u.R,u.O,s.o],{ngSwitchCase:[0,"ngSwitchCase"]},null),(l()(),u.ib(16777216,null,null,1,null,w)),u.qb(10,16384,null,0,s.q,[u.R,u.O,s.o],null,null)],function(l,n){l(n,4,0,n.component.mode),l(n,6,0,"embedded"),l(n,8,0,"downloadOnly")},null)}function y(l){return u.Jb(0,[(l()(),u.rb(0,0,null,null,1,"live-example",[],null,null,null,v,d)),u.qb(1,1097728,null,0,b,[u.k,s.g],null,null)],null,null)}var z=u.nb("live-example",b,y,{},{},["*"]),k=u.pb({encapsulation:0,styles:["iframe[_ngcontent-%COMP%] { min-height: 400px; }"],data:{}});function x(l){return u.Jb(0,[u.Fb(402653184,1,{iframe:0}),(l()(),u.rb(1,0,[[1,0],["iframe",1]],null,0,"iframe",[["frameborder","0"],["height","100%"],["width","100%"]],null,null,null,null,null))],null,null)}t.d(n,"LiveExampleModuleNgFactory",function(){return C});var C=u.ob(p,[],function(l){return u.xb([u.yb(512,u.j,u.db,[[8,[z]],[3,u.j],u.y]),u.yb(4608,s.m,s.l,[u.v,[2,s.x]]),u.yb(1073742336,s.c,s.c,[]),u.yb(1073742336,p,p,[])])})}}]);
//# sourceMappingURL=live-example-live-example-module-ngfactory.e07fbad59c15dc6e8dd4.js.map