-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path10-es2015.ab89a055fe64628c39d2.js
2 lines (2 loc) · 5.12 KB
/
10-es2015.ab89a055fe64628c39d2.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{Rz96:function(l,n,t){"use strict";t.r(n);var u=t("8Y7J"),e=t("jn67");function o(l,n){const t="string"==typeof n?n:n.find(n=>l.hasOwnProperty(n.toLowerCase()));return void 0===t?void 0:l[t.toLowerCase()]}function i(l,n=!1){return void 0===l?n:"false"!==l.trim()}const a=e.a+"live-examples/",r=e.a+"zips/";class b{constructor(l,n){const t=function(n){const t=l instanceof u.k?l.nativeElement.attributes:l.attributes,e={};for(const l of t)e[l.name.toLowerCase()]=l.value;return e}(),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)}ngAfterContentInit(){const l=this.content.nativeElement.textContent.trim();l&&(this.title=l)}getEnableDownload(l){return!i(o(l,"noDownload"))}getExampleDir(l,n){let t=o(l,"name");if(!t){const l=n.match(/[^\/?#]+(?=\/?(?:\?|#|$))/);t=l?l[0]:"index"}return t.trim()}getMode(l){const n=i(o(l,"downloadOnly")),t=i(o(l,"embedded"));return n?"downloadOnly":t?"embedded":"default"}getStackblitz(l,n,t){return`${a}${l}/${n}stackblitz.html${t?"?ctl=1":""}`}getStackblitzName(l){const n=(o(l,"stackblitz")||"").trim();return n&&`${n}.`}getTitle(l){return(o(l,"title")||"\u5728\u7ebf\u4f8b\u5b50").trim()}getZip(l,n){const t=l.split("/")[0];return`${r}${l}/${n}${t}.zip`}}class s{ngAfterViewInit(){this.iframe&&(this.iframe.nativeElement.src=this.src)}}class c{constructor(){this.customElementComponent=b}}var d=t("SVse"),m=u.mb({encapsulation:2,styles:[],data:{}});function f(l){return u.Gb(0,[(l()(),u.ob(0,0,null,null,4,"p",[],null,null,null,null,null)),(l()(),u.Eb(-1,null,[" \u4f60\u8fd8\u53ef\u4ee5 "])),(l()(),u.ob(2,0,null,null,1,"a",[["download",""],["title","\u4e0b\u8f7d\u8303\u4f8b"]],[[8,"href",4]],null,null,null,null)),(l()(),u.Eb(-1,null,["\u4e0b\u8f7d\u8fd9\u4e2a\u4f8b\u5b50"])),(l()(),u.Eb(-1,null,["\u3002 "]))],null,function(l,n){l(n,2,0,n.component.zip)})}function p(l){return u.Gb(0,[(l()(),u.ob(0,0,null,null,5,"span",[],null,null,null,null,null)),(l()(),u.ob(1,0,null,null,2,"div",[],[[8,"title",0]],null,null,null,null)),(l()(),u.ob(2,0,null,null,1,"aio-embedded-stackblitz",[],null,null,null,C,E)),u.nb(3,4243456,null,0,s,[],{src:[0,"src"]},null),(l()(),u.eb(16777216,null,null,1,null,f)),u.nb(5,16384,null,0,d.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.qb(1,"",n.component.title,""))})}function h(l){return u.Gb(0,[(l()(),u.ob(0,0,null,null,2,"span",[],null,null,null,null,null)),(l()(),u.ob(1,0,null,null,1,"a",[["download",""]],[[8,"href",4],[8,"title",0]],null,null,null,null)),(l()(),u.Eb(2,null,["",""]))],null,function(l,n){var t=n.component;l(n,1,0,t.zip,u.qb(1,"",t.title,"")),l(n,2,0,t.title)})}function w(l){return u.Gb(0,[(l()(),u.ob(0,0,null,null,3,"span",[],null,null,null,null,null)),(l()(),u.Eb(-1,null,[" / "])),(l()(),u.ob(2,0,null,null,1,"a",[["download",""],["title","\u4e0b\u8f7d\u8303\u4f8b"]],[[8,"href",4]],null,null,null,null)),(l()(),u.Eb(-1,null,["\u4e0b\u8f7d\u8303\u4f8b"]))],null,function(l,n){l(n,2,0,n.component.zip)})}function g(l){return u.Gb(0,[(l()(),u.ob(0,0,null,null,4,"span",[],null,null,null,null,null)),(l()(),u.ob(1,0,null,null,1,"a",[["target","_blank"]],[[8,"href",4],[8,"title",0]],null,null,null,null)),(l()(),u.Eb(2,null,["",""])),(l()(),u.eb(16777216,null,null,1,null,w)),u.nb(4,16384,null,0,d.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.qb(1,"",t.title,"")),l(n,2,0,t.title)})}function v(l){return u.Gb(0,[u.Cb(402653184,1,{content:0}),(l()(),u.ob(1,0,[[1,0],["content",1]],null,1,"span",[["style","display: none"]],null,null,null,null,null)),u.xb(null,0),(l()(),u.ob(3,0,null,null,7,"span",[],null,null,null,null,null)),u.nb(4,16384,null,0,d.o,[],{ngSwitch:[0,"ngSwitch"]},null),(l()(),u.eb(16777216,null,null,1,null,p)),u.nb(6,278528,null,0,d.p,[u.O,u.L,d.o],{ngSwitchCase:[0,"ngSwitchCase"]},null),(l()(),u.eb(16777216,null,null,1,null,h)),u.nb(8,278528,null,0,d.p,[u.O,u.L,d.o],{ngSwitchCase:[0,"ngSwitchCase"]},null),(l()(),u.eb(16777216,null,null,1,null,g)),u.nb(10,16384,null,0,d.q,[u.O,u.L,d.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 k(l){return u.Gb(0,[(l()(),u.ob(0,0,null,null,1,"live-example",[],null,null,null,v,m)),u.nb(1,1097728,null,0,b,[u.k,d.g],null,null)],null,null)}var z=u.kb("live-example",b,k,{},{},["*"]),E=u.mb({encapsulation:0,styles:["iframe[_ngcontent-%COMP%] { min-height: 400px; }"],data:{}});function C(l){return u.Gb(0,[u.Cb(402653184,1,{iframe:0}),(l()(),u.ob(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 S});var S=u.lb(c,[],function(l){return u.vb([u.wb(512,u.j,u.Z,[[8,[z]],[3,u.j],u.w]),u.wb(4608,d.m,d.l,[u.t,[2,d.B]]),u.wb(1073742336,d.c,d.c,[]),u.wb(1073742336,c,c,[])])})}}]);
//# sourceMappingURL=10-es2015.ab89a055fe64628c39d2.js.map