-
Notifications
You must be signed in to change notification settings - Fork 2
/
13-es5.7d9f0d882350ad63b59c.js
2 lines (2 loc) · 6.52 KB
/
13-es5.7d9f0d882350ad63b59c.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{s8K4:function(n,l,t){"use strict";t.r(l);var e=t("CcnG"),o=t("K9Ia"),i=t("dzgT"),u=t("KQya"),c=t("ny24"),r=t("mrSG"),s=t("6blF"),a=t("/21U"),p=function(n){function l(l,t,e){void 0===t&&(t=0),void 0===e&&(e=u.a);var o=n.call(this)||this;return o.source=l,o.delayTime=t,o.scheduler=e,(!Object(a.a)(t)||t<0)&&(o.delayTime=0),e&&"function"==typeof e.schedule||(o.scheduler=u.a),o}return r.c(l,n),l.create=function(n,t,e){return void 0===t&&(t=0),void 0===e&&(e=u.a),new l(n,t,e)},l.dispatch=function(n){return this.add(n.source.subscribe(n.subscriber))},l.prototype._subscribe=function(n){return this.scheduler.schedule(l.dispatch,this.delayTime,{source:this.source,subscriber:n})},l}(s.a),d=function(){function n(n,l){this.scheduler=n,this.delay=l}return n.prototype.call=function(n,l){return new p(l,this.delay,this.scheduler).subscribe(n)},n}(),b=t("p0Sj"),f=function(){function n(n,l,t){this.scrollService=n,this.tocService=t,this.activeIndex=null,this.type="None",this.isCollapsed=!0,this.isEmbedded=!1,this.onDestroy=new o.a,this.primaryMax=4,this.isEmbedded=-1!==l.nativeElement.className.indexOf("embedded")}return n.prototype.ngOnInit=function(){var n=this;this.tocService.tocList.pipe(Object(c.a)(this.onDestroy)).subscribe(function(l){n.tocList=l;var t,e=(t=function(n){return"h1"!==n.level},n.tocList.reduce(function(n,l){return t(l)?n+1:n},0));n.type=e>0?n.isEmbedded?e>n.primaryMax?"EmbeddedExpandable":"EmbeddedSimple":"Floating":"None"})},n.prototype.ngAfterViewInit=function(){var n,l,t=this;this.isEmbedded||Object(i.a)(this.tocService.activeItemIndex.pipe((n=u.a,void 0===l&&(l=0),function(t){return t.lift(new d(n,l))})),this.items.changes.pipe(Object(b.a)(this.items))).pipe(Object(c.a)(this.onDestroy)).subscribe(function(n){var l=n[0],e=n[1];if(t.activeIndex=l,!(null===l||l>=e.length)){var o=e.toArray()[l].nativeElement,i=o.offsetParent,u=o.getBoundingClientRect(),c=i.getBoundingClientRect();u.top>=c.top&&u.bottom<=c.bottom||(i.scrollTop+=u.top-c.top-i.clientHeight/2)}})},n.prototype.ngOnDestroy=function(){this.onDestroy.next()},n.prototype.toggle=function(n){void 0===n&&(n=!0),this.isCollapsed=!this.isCollapsed,n&&this.isCollapsed&&this.toTop()},n.prototype.toTop=function(){this.scrollService.scrollToTop()},n}(),m=function(){return function(){this.customElementComponent=f}}(),h=t("Mr+X"),y=t("SMsm"),g=t("Ip0R"),v=t("Faly"),I=t("TNhP"),x=e.ob({encapsulation:2,styles:[],data:{}});function E(n){return e.Ib(0,[(n()(),e.qb(0,0,null,null,1,"div",[["class","toc-heading embedded"]],null,null,null,null,null)),(n()(),e.Gb(-1,null,[" \u76ee\u5f55 "]))],null,null)}function k(n){return e.Ib(0,[(n()(),e.qb(0,0,null,null,3,"button",[["aria-label","Expand/collapse contents"],["class","toc-heading embedded secondary"],["title","Expand/collapse contents"],["type","button"]],[[1,"aria-pressed",0]],[[null,"click"]],function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.toggle(!1)&&e),e},null,null)),(n()(),e.Gb(-1,null,[" \u76ee\u5f55 "])),(n()(),e.qb(2,0,null,null,1,"mat-icon",[["class","rotating-icon mat-icon notranslate"],["role","img"],["svgIcon","keyboard_arrow_right"]],[[2,"collapsed",null],[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null]],null,null,h.b,h.a)),e.pb(3,9158656,null,0,y.b,[e.k,y.d,[8,null],[2,y.a]],{svgIcon:[0,"svgIcon"]},null)],function(n,l){n(l,3,0,"keyboard_arrow_right")},function(n,l){var t=l.component;n(l,0,0,!t.isCollapsed),n(l,2,0,t.isCollapsed,e.Ab(l,3).inline,"primary"!==e.Ab(l,3).color&&"accent"!==e.Ab(l,3).color&&"warn"!==e.Ab(l,3).color)})}function w(n){return e.Ib(0,[(n()(),e.qb(0,0,[[1,0],["tocItem",1]],null,1,"li",[],[[8,"title",0],[8,"className",0],[2,"secondary",null],[2,"active",null]],null,null,null,null)),(n()(),e.qb(1,0,null,null,0,"a",[],[[8,"href",4],[8,"innerHTML",1]],null,null,null,null))],null,function(n,l){var t=l.component;n(l,0,0,e.sb(1,"",l.parent.context.$implicit.title,""),e.sb(1,"",l.parent.context.$implicit.level,""),"EmbeddedExpandable"===t.type&&l.parent.context.index>=t.primaryMax,l.parent.context.index===t.activeIndex),n(l,1,0,l.parent.context.$implicit.href,l.parent.context.$implicit.content)})}function C(n){return e.Ib(0,[(n()(),e.qb(0,0,null,null,2,null,null,null,null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,w)),e.pb(2,16384,null,0,g.k,[e.Q,e.N],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(0,null,null,0))],function(n,l){n(l,2,0,"Floating"===l.component.type||"h1"!==l.context.$implicit.level)},null)}function N(n){return e.Ib(0,[(n()(),e.qb(0,0,null,null,0,"button",[["aria-label","Expand/collapse contents"],["class","toc-more-items embedded material-icons"],["title","Expand/collapse contents"],["type","button"]],[[2,"collapsed",null],[1,"aria-pressed",0]],[[null,"click"]],function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.toggle()&&e),e},null,null))],null,function(n,l){var t=l.component;n(l,0,0,t.isCollapsed,!t.isCollapsed)})}function T(n){return e.Ib(0,[(n()(),e.qb(0,0,null,null,9,"div",[["class","toc-inner no-print"]],[[2,"collapsed",null]],null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,E)),e.pb(2,16384,null,0,g.k,[e.Q,e.N],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,k)),e.pb(4,16384,null,0,g.k,[e.Q,e.N],{ngIf:[0,"ngIf"]},null),(n()(),e.qb(5,0,null,null,2,"ul",[["class","toc-list"]],[[2,"embedded",null]],null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,C)),e.pb(7,278528,null,0,g.j,[e.Q,e.N,e.t],{ngForOf:[0,"ngForOf"]},null),(n()(),e.gb(16777216,null,null,1,null,N)),e.pb(9,16384,null,0,g.k,[e.Q,e.N],{ngIf:[0,"ngIf"]},null)],function(n,l){var t=l.component;n(l,2,0,"EmbeddedSimple"===t.type),n(l,4,0,"EmbeddedExpandable"===t.type),n(l,7,0,t.tocList),n(l,9,0,"EmbeddedExpandable"===t.type)},function(n,l){var t=l.component;n(l,0,0,t.isCollapsed),n(l,5,0,"Floating"!==t.type)})}function q(n){return e.Ib(0,[e.Eb(671088640,1,{items:1}),(n()(),e.gb(16777216,null,null,1,null,T)),e.pb(2,16384,null,0,g.k,[e.Q,e.N],{ngIf:[0,"ngIf"]},null)],function(n,l){n(l,2,0,"None"!==l.component.type)},null)}function j(n){return e.Ib(0,[(n()(),e.qb(0,0,null,null,1,"aio-toc",[],null,null,null,q,x)),e.pb(1,4440064,null,0,f,[v.a,e.k,I.a],null,null)],function(n,l){n(l,1,0)},null)}var O=e.mb("aio-toc",f,j,{},{},[]),S=t("Fzqc"),F=t("Wf4p"),M=t("ZYjt");t.d(l,"TocModuleNgFactory",function(){return Q});var Q=e.nb(m,[],function(n){return e.xb([e.yb(512,e.j,e.bb,[[8,[O]],[3,e.j],e.y]),e.yb(4608,g.m,g.l,[e.v,[2,g.B]]),e.yb(1073742336,g.c,g.c,[]),e.yb(1073742336,S.a,S.a,[]),e.yb(1073742336,F.c,F.c,[[2,F.a],[2,M.f]]),e.yb(1073742336,y.c,y.c,[]),e.yb(1073742336,m,m,[])])})}}]);
//# sourceMappingURL=13-es5.7d9f0d882350ad63b59c.js.map