-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlive-example-live-example-module-ngfactory.769a139b67c0f7025ef1.js
2 lines (2 loc) · 5.43 KB
/
live-example-live-example-module-ngfactory.769a139b67c0f7025ef1.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{Rz96:function(l,n,t){"use strict";t.r(n);var u=t("CcnG"),e=t("jn67");function a(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 o=e.a+"live-examples/",r=e.a+"zips/",c=function(){function l(l,n){var t=function(n){for(var t={},e=0,a=l instanceof u.k?l.nativeElement.attributes:l.attributes;e<a.length;e++){var i=a[e];t[i.name.toLowerCase()]=i.value}return t}(),e=this.getExampleDir(t,n.path(!1)),a=this.getStackblitzName(t);this.mode=this.getMode(t),this.enableDownload=this.getEnableDownload(t),this.stackblitz=this.getStackblitz(e,a,"embedded"===this.mode),this.zip=this.getZip(e,a),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(a(l,"noDownload"))},l.prototype.getExampleDir=function(l,n){var t=a(l,"name");if(!t){var u=n.match(/[^/?#]+(?=\/?(?:\?|#|$))/);t=u?u[0]:"index"}return t.trim()},l.prototype.getMode=function(l){var n=i(a(l,"downloadOnly")),t=i(a(l,"embedded"));return n?"downloadOnly":t?"embedded":"default"},l.prototype.getStackblitz=function(l,n,t){return""+o+l+"/"+n+"stackblitz.html"+(t?"?ctl=1":"")},l.prototype.getStackblitzName=function(l){var n=(a(l,"stackblitz")||"").trim();return n&&n+"."},l.prototype.getTitle=function(l){return(a(l,"title")||"\u5728\u7ebf\u4f8b\u5b50").trim()},l.prototype.getZip=function(l,n){var t=l.split("/")[0];return""+r+l+"/"+n+t+".zip"},l}(),s=function(){function l(){}return l.prototype.ngAfterViewInit=function(){this.iframe&&(this.iframe.nativeElement.src=this.src)},l}(),p=function(){return function(){this.customElementComponent=c}}(),f=t("Ip0R"),d=u.Ma({encapsulation:2,styles:[],data:{}});function m(l){return u.eb(0,[(l()(),u.Oa(0,0,null,null,4,"p",[],null,null,null,null,null)),(l()(),u.cb(-1,null,[" \u4f60\u8fd8\u53ef\u4ee5 "])),(l()(),u.Oa(2,0,null,null,1,"a",[["download",""],["title","\u4e0b\u8f7d\u8303\u4f8b"]],[[8,"href",4]],null,null,null,null)),(l()(),u.cb(-1,null,["\u4e0b\u8f7d\u8fd9\u4e2a\u4f8b\u5b50"])),(l()(),u.cb(-1,null,["\u3002 "]))],null,function(l,n){l(n,2,0,n.component.zip)})}function b(l){return u.eb(0,[(l()(),u.Oa(0,0,null,null,5,"span",[],null,null,null,null,null)),(l()(),u.Oa(1,0,null,null,2,"div",[],[[8,"title",0]],null,null,null,null)),(l()(),u.Oa(2,0,null,null,1,"aio-embedded-stackblitz",[],null,null,null,k,y)),u.Na(3,4243456,null,0,s,[],{src:[0,"src"]},null),(l()(),u.Fa(16777216,null,null,1,null,m)),u.Na(5,16384,null,0,f.k,[u.O,u.L],{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.Qa(1,"",n.component.title,""))})}function h(l){return u.eb(0,[(l()(),u.Oa(0,0,null,null,2,"span",[],null,null,null,null,null)),(l()(),u.Oa(1,0,null,null,1,"a",[["download",""]],[[8,"href",4],[8,"title",0]],null,null,null,null)),(l()(),u.cb(2,null,["",""]))],null,function(l,n){var t=n.component;l(n,1,0,t.zip,u.Qa(1,"",t.title,"")),l(n,2,0,t.title)})}function g(l){return u.eb(0,[(l()(),u.Oa(0,0,null,null,3,"span",[],null,null,null,null,null)),(l()(),u.cb(-1,null,[" / "])),(l()(),u.Oa(2,0,null,null,1,"a",[["download",""],["title","\u4e0b\u8f7d\u8303\u4f8b"]],[[8,"href",4]],null,null,null,null)),(l()(),u.cb(-1,null,["\u4e0b\u8f7d\u8303\u4f8b"]))],null,function(l,n){l(n,2,0,n.component.zip)})}function v(l){return u.eb(0,[(l()(),u.Oa(0,0,null,null,4,"span",[],null,null,null,null,null)),(l()(),u.Oa(1,0,null,null,1,"a",[["target","_blank"]],[[8,"href",4],[8,"title",0]],null,null,null,null)),(l()(),u.cb(2,null,["",""])),(l()(),u.Fa(16777216,null,null,1,null,g)),u.Na(4,16384,null,0,f.k,[u.O,u.L],{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.Qa(1,"",t.title,"")),l(n,2,0,t.title)})}function w(l){return u.eb(0,[u.ab(402653184,1,{content:0}),(l()(),u.Oa(1,0,[[1,0],["content",1]],null,1,"span",[["style","display: none"]],null,null,null,null,null)),u.Wa(null,0),(l()(),u.Oa(3,0,null,null,7,"span",[],null,null,null,null,null)),u.Na(4,16384,null,0,f.o,[],{ngSwitch:[0,"ngSwitch"]},null),(l()(),u.Fa(16777216,null,null,1,null,b)),u.Na(6,278528,null,0,f.p,[u.O,u.L,f.o],{ngSwitchCase:[0,"ngSwitchCase"]},null),(l()(),u.Fa(16777216,null,null,1,null,h)),u.Na(8,278528,null,0,f.p,[u.O,u.L,f.o],{ngSwitchCase:[0,"ngSwitchCase"]},null),(l()(),u.Fa(16777216,null,null,1,null,v)),u.Na(10,16384,null,0,f.q,[u.O,u.L,f.o],null,null)],function(l,n){l(n,4,0,n.component.mode),l(n,6,0,"embedded"),l(n,8,0,"downloadOnly")},null)}var O=u.Ka("live-example",c,function(l){return u.eb(0,[(l()(),u.Oa(0,0,null,null,1,"live-example",[],null,null,null,w,d)),u.Na(1,1097728,null,0,c,[u.k,f.g],null,null)],null,null)},{},{},["*"]),y=u.Ma({encapsulation:0,styles:["iframe[_ngcontent-%COMP%] { min-height: 400px; }"],data:{}});function k(l){return u.eb(0,[u.ab(402653184,1,{iframe:0}),(l()(),u.Oa(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 z});var z=u.La(p,[],function(l){return u.Ua([u.Va(512,u.j,u.Aa,[[8,[O]],[3,u.j],u.v]),u.Va(4608,f.m,f.l,[u.s,[2,f.v]]),u.Va(1073742336,f.c,f.c,[]),u.Va(1073742336,p,p,[])])})}}]);
//# sourceMappingURL=live-example-live-example-module-ngfactory.769a139b67c0f7025ef1.js.map