-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path49-es5.274d459a3d25987bb4aa.js
1 lines (1 loc) · 14.8 KB
/
49-es5.274d459a3d25987bb4aa.js
1
!function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,c){if(!e)return;if("string"==typeof e)return t(e,c);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,c)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var c=0,n=new Array(t);c<t;c++)n[c]=e[c];return n}function c(e,t){for(var c=0;c<t.length;c++){var n=t[c];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var c,n=o(e);if(t){var a=o(this).constructor;c=Reflect.construct(n,arguments,a)}else c=n.apply(this,arguments);return r(this,c)}}function r(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(window.webpackJsonp=window.webpackJsonp||[]).push([[49],{Uef7:function(t,a,r){"use strict";r.r(a),r.d(a,"CdkScrollingExamplesModule",function(){return F}),r.d(a,"CdkVirtualScrollContextExample",function(){return b}),r.d(a,"CdkVirtualScrollCustomStrategyExample",function(){return v}),r.d(a,"CdkVirtualScrollDataSourceExample",function(){return j}),r.d(a,"CdkVirtualScrollDlExample",function(){return k}),r.d(a,"CdkVirtualScrollFixedBufferExample",function(){return w}),r.d(a,"CdkVirtualScrollHorizontalExample",function(){return M}),r.d(a,"CdkVirtualScrollOverviewExample",function(){return _}),r.d(a,"CdkVirtualScrollTemplateCacheExample",function(){return P});var o=r("vxfF"),s=r("fXoL"),p=r("0EQZ"),u=r("2Vo4"),d=r("quSY");function m(e,t){if(1&e&&(Object(s.ec)(0,"div"),Object(s.ec)(1,"div",2),Object(s.Sc)(2),Object(s.dc)(),Object(s.ec)(3,"div",2),Object(s.Sc)(4),Object(s.dc)(),Object(s.ec)(5,"div",2),Object(s.Sc)(6),Object(s.dc)(),Object(s.ec)(7,"div",2),Object(s.Sc)(8),Object(s.dc)(),Object(s.ec)(9,"div",2),Object(s.Sc)(10),Object(s.dc)(),Object(s.ec)(11,"div",2),Object(s.Sc)(12),Object(s.dc)(),Object(s.ec)(13,"div",2),Object(s.Sc)(14),Object(s.dc)(),Object(s.dc)()),2&e){var c=t.$implicit,n=t.index,a=t.count,i=t.first,r=t.last,o=t.even,l=t.odd;Object(s.Qb)("example-alternate",l),Object(s.Mb)(2),Object(s.Uc)("Item: ",c,""),Object(s.Mb)(2),Object(s.Uc)("Index: ",n,""),Object(s.Mb)(2),Object(s.Uc)("Count: ",a,""),Object(s.Mb)(2),Object(s.Uc)("First: ",i?"Yes":"No",""),Object(s.Mb)(2),Object(s.Uc)("Last: ",r?"Yes":"No",""),Object(s.Mb)(2),Object(s.Uc)("Even: ",o?"Yes":"No",""),Object(s.Mb)(2),Object(s.Uc)("Odd: ",l?"Yes":"No","")}}var b=function(){var e=function e(){l(this,e),this.items=Array.from({length:1e5}).map(function(e,t){return"Item #"+t})};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(s.Sb)({type:e,selectors:[["cdk-virtual-scroll-context-example"]],decls:2,vars:2,consts:[[1,"example-viewport",3,"itemSize"],[3,"example-alternate",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"example-item-detail"]],template:function(e,t){1&e&&(Object(s.ec)(0,"cdk-virtual-scroll-viewport",0),Object(s.Qc)(1,m,15,9,"div",1),Object(s.dc)()),2&e&&(Object(s.vc)("itemSize",126),Object(s.Mb)(1),Object(s.vc)("cdkVirtualForOf",t.items))},directives:[o.e,o.a,o.d],styles:[".example-viewport[_ngcontent-%COMP%] {\n height: 200px;\n width: 200px;\n border: 1px solid black;\n}\n\n.example-item-detail[_ngcontent-%COMP%] {\n height: 18px;\n}\n\n.example-alternate[_ngcontent-%COMP%] {\n background: rgba(127, 127, 127, 0.3);\n}"],changeDetection:0}),e}();function f(e,t){if(1&e&&(Object(s.ec)(0,"div",2),Object(s.Sc)(1),Object(s.dc)()),2&e){var c=t.$implicit;Object(s.Mb)(1),Object(s.Tc)(c)}}var O=function(e){n(c,e);var t=i(c);function c(){return l(this,c),t.call(this,50,250,500)}return c}(o.f),v=function(){var e=function e(){l(this,e),this.items=Array.from({length:1e5}).map(function(e,t){return"Item #"+t})};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(s.Sb)({type:e,selectors:[["cdk-virtual-scroll-custom-strategy-example"]],features:[Object(s.Lb)([{provide:o.i,useClass:O}])],decls:2,vars:1,consts:[[1,"example-viewport"],["class","example-item",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"example-item"]],template:function(e,t){1&e&&(Object(s.ec)(0,"cdk-virtual-scroll-viewport",0),Object(s.Qc)(1,f,2,1,"div",1),Object(s.dc)()),2&e&&(Object(s.Mb)(1),Object(s.vc)("cdkVirtualForOf",t.items))},directives:[o.e,o.d],styles:[".example-viewport[_ngcontent-%COMP%] {\n height: 200px;\n width: 200px;\n border: 1px solid black;\n}\n\n.example-item[_ngcontent-%COMP%] {\n height: 50px;\n}"],changeDetection:0}),e}();function h(e,t){if(1&e&&(Object(s.ec)(0,"div",2),Object(s.Sc)(1),Object(s.dc)()),2&e){var c=t.$implicit;Object(s.Mb)(1),Object(s.Tc)(c||"Loading...")}}var j=function(){var e=function e(){l(this,e),this.ds=new x};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(s.Sb)({type:e,selectors:[["cdk-virtual-scroll-data-source-example"]],decls:2,vars:1,consts:[["itemSize","50",1,"example-viewport"],["class","example-item",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"example-item"]],template:function(e,t){1&e&&(Object(s.ec)(0,"cdk-virtual-scroll-viewport",0),Object(s.Qc)(1,h,2,1,"div",1),Object(s.dc)()),2&e&&(Object(s.Mb)(1),Object(s.vc)("cdkVirtualForOf",t.ds))},directives:[o.e,o.a,o.d],styles:[".example-viewport[_ngcontent-%COMP%] {\n height: 200px;\n width: 200px;\n border: 1px solid black;\n}\n\n.example-item[_ngcontent-%COMP%] {\n height: 50px;\n}"],changeDetection:0}),e}(),x=function(t){n(p,t);var a,r,o,s=i(p);function p(){var e;return l(this,p),(e=s.apply(this,arguments))._length=1e5,e._pageSize=100,e._cachedData=Array.from({length:e._length}),e._fetchedPages=new Set,e._dataStream=new u.a(e._cachedData),e._subscription=new d.a,e}return a=p,(r=[{key:"connect",value:function(e){var t=this;return this._subscription.add(e.viewChange.subscribe(function(e){for(var c=t._getPageForIndex(e.start),n=t._getPageForIndex(e.end-1),a=c;a<=n;a++)t._fetchPage(a)})),this._dataStream}},{key:"disconnect",value:function(){this._subscription.unsubscribe()}},{key:"_getPageForIndex",value:function(e){return Math.floor(e/this._pageSize)}},{key:"_fetchPage",value:function(t){var c=this;this._fetchedPages.has(t)||(this._fetchedPages.add(t),setTimeout(function(){var n;(n=c._cachedData).splice.apply(n,[t*c._pageSize,c._pageSize].concat(e(Array.from({length:c._pageSize}).map(function(e,n){return"Item #"+(t*c._pageSize+n)})))),c._dataStream.next(c._cachedData)},1e3*Math.random()+200))}}])&&c(a.prototype,r),o&&c(a,o),p}(p.b);function g(e,t){if(1&e&&(Object(s.cc)(0),Object(s.ec)(1,"dt",3),Object(s.Sc)(2),Object(s.dc)(),Object(s.ec)(3,"dd",4),Object(s.Sc)(4),Object(s.dc)(),Object(s.bc)()),2&e){var c=t.$implicit;Object(s.Mb)(2),Object(s.Tc)(c.name),Object(s.Mb)(2),Object(s.Tc)(c.capital)}}var k=function(){var e=function e(){l(this,e),this.states=[{name:"Alabama",capital:"Montgomery"},{name:"Alaska",capital:"Juneau"},{name:"Arizona",capital:"Phoenix"},{name:"Arkansas",capital:"Little Rock"},{name:"California",capital:"Sacramento"},{name:"Colorado",capital:"Denver"},{name:"Connecticut",capital:"Hartford"},{name:"Delaware",capital:"Dover"},{name:"Florida",capital:"Tallahassee"},{name:"Georgia",capital:"Atlanta"},{name:"Hawaii",capital:"Honolulu"},{name:"Idaho",capital:"Boise"},{name:"Illinois",capital:"Springfield"},{name:"Indiana",capital:"Indianapolis"},{name:"Iowa",capital:"Des Moines"},{name:"Kansas",capital:"Topeka"},{name:"Kentucky",capital:"Frankfort"},{name:"Louisiana",capital:"Baton Rouge"},{name:"Maine",capital:"Augusta"},{name:"Maryland",capital:"Annapolis"},{name:"Massachusetts",capital:"Boston"},{name:"Michigan",capital:"Lansing"},{name:"Minnesota",capital:"St. Paul"},{name:"Mississippi",capital:"Jackson"},{name:"Missouri",capital:"Jefferson City"},{name:"Montana",capital:"Helena"},{name:"Nebraska",capital:"Lincoln"},{name:"Nevada",capital:"Carson City"},{name:"New Hampshire",capital:"Concord"},{name:"New Jersey",capital:"Trenton"},{name:"New Mexico",capital:"Santa Fe"},{name:"New York",capital:"Albany"},{name:"North Carolina",capital:"Raleigh"},{name:"North Dakota",capital:"Bismarck"},{name:"Ohio",capital:"Columbus"},{name:"Oklahoma",capital:"Oklahoma City"},{name:"Oregon",capital:"Salem"},{name:"Pennsylvania",capital:"Harrisburg"},{name:"Rhode Island",capital:"Providence"},{name:"South Carolina",capital:"Columbia"},{name:"South Dakota",capital:"Pierre"},{name:"Tennessee",capital:"Nashville"},{name:"Texas",capital:"Austin"},{name:"Utah",capital:"Salt Lake City"},{name:"Vermont",capital:"Montpelier"},{name:"Virginia",capital:"Richmond"},{name:"Washington",capital:"Olympia"},{name:"West Virginia",capital:"Charleston"},{name:"Wisconsin",capital:"Madison"},{name:"Wyoming",capital:"Cheyenne"}]};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(s.Sb)({type:e,selectors:[["cdk-virtual-scroll-dl-example"]],decls:3,vars:1,consts:[["itemSize","60",1,"example-viewport"],[1,"example-dl"],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"example-dt"],[1,"example-dd"]],template:function(e,t){1&e&&(Object(s.ec)(0,"cdk-virtual-scroll-viewport",0),Object(s.ec)(1,"dl",1),Object(s.Qc)(2,g,5,2,"ng-container",2),Object(s.dc)(),Object(s.dc)()),2&e&&(Object(s.Mb)(2),Object(s.vc)("cdkVirtualForOf",t.states))},directives:[o.e,o.a,o.d],styles:[".example-viewport[_ngcontent-%COMP%] {\n height: 200px;\n width: 200px;\n border: 1px solid black;\n}\n\n.example-dt[_ngcontent-%COMP%] {\n height: 30px;\n font-weight: bold;\n}\n\n.example-dd[_ngcontent-%COMP%] {\n height: 30px;\n}"],changeDetection:0}),e}();function y(e,t){if(1&e&&(Object(s.ec)(0,"div",2),Object(s.Sc)(1),Object(s.dc)()),2&e){var c=t.$implicit;Object(s.Mb)(1),Object(s.Tc)(c)}}var w=function(){var e=function e(){l(this,e),this.items=Array.from({length:1e5}).map(function(e,t){return"Item #"+t})};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(s.Sb)({type:e,selectors:[["cdk-virtual-scroll-fixed-buffer-example"]],decls:2,vars:1,consts:[["itemSize","50","minBufferPx","200","maxBufferPx","400",1,"example-viewport"],["class","example-item",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"example-item"]],template:function(e,t){1&e&&(Object(s.ec)(0,"cdk-virtual-scroll-viewport",0),Object(s.Qc)(1,y,2,1,"div",1),Object(s.dc)()),2&e&&(Object(s.Mb)(1),Object(s.vc)("cdkVirtualForOf",t.items))},directives:[o.e,o.a,o.d],styles:[".example-viewport[_ngcontent-%COMP%] {\n height: 200px;\n width: 200px;\n border: 1px solid black;\n}\n\n.example-item[_ngcontent-%COMP%] {\n height: 50px;\n}"],changeDetection:0}),e}();function S(e,t){if(1&e&&(Object(s.ec)(0,"div",3),Object(s.Sc)(1),Object(s.dc)()),2&e){var c=t.$implicit;Object(s.Mb)(1),Object(s.Tc)(c)}}var M=function(){var e=function e(){l(this,e),this.items=Array.from({length:1e5}).map(function(e,t){return"Item #"+t})};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(s.Sb)({type:e,selectors:[["cdk-virtual-scroll-horizontal-example"]],decls:3,vars:1,consts:[[1,"cdk-virtual-scroll-data-source-example"],["orientation","horizontal","itemSize","50",1,"example-viewport"],["class","example-item",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"example-item"]],template:function(e,t){1&e&&(Object(s.ec)(0,"div",0),Object(s.ec)(1,"cdk-virtual-scroll-viewport",1),Object(s.Qc)(2,S,2,1,"div",2),Object(s.dc)(),Object(s.dc)()),2&e&&(Object(s.Mb)(2),Object(s.vc)("cdkVirtualForOf",t.items))},directives:[o.e,o.a,o.d],styles:[".cdk-virtual-scroll-data-source-example .example-viewport {\n height: 200px;\n width: 200px;\n border: 1px solid black;\n}\n\n.cdk-virtual-scroll-data-source-example .example-viewport .cdk-virtual-scroll-content-wrapper {\n display: flex;\n flex-direction: row;\n}\n\n.cdk-virtual-scroll-data-source-example .example-item {\n width: 50px;\n height: 100%;\n writing-mode: vertical-lr;\n}\n"],encapsulation:2,changeDetection:0}),e}();function C(e,t){if(1&e&&(Object(s.ec)(0,"div",2),Object(s.Sc)(1),Object(s.dc)()),2&e){var c=t.$implicit;Object(s.Mb)(1),Object(s.Tc)(c)}}var _=function(){var e=function e(){l(this,e),this.items=Array.from({length:1e5}).map(function(e,t){return"Item #"+t})};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(s.Sb)({type:e,selectors:[["cdk-virtual-scroll-overview-example"]],decls:2,vars:1,consts:[["itemSize","50",1,"example-viewport"],["class","example-item",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"example-item"]],template:function(e,t){1&e&&(Object(s.ec)(0,"cdk-virtual-scroll-viewport",0),Object(s.Qc)(1,C,2,1,"div",1),Object(s.dc)()),2&e&&(Object(s.Mb)(1),Object(s.vc)("cdkVirtualForOf",t.items))},directives:[o.e,o.a,o.d],styles:[".example-viewport[_ngcontent-%COMP%] {\n height: 200px;\n width: 200px;\n border: 1px solid black;\n}\n\n.example-item[_ngcontent-%COMP%] {\n height: 50px;\n}"],changeDetection:0}),e}();function V(e,t){if(1&e&&(Object(s.ec)(0,"div",2),Object(s.Sc)(1),Object(s.dc)()),2&e){var c=t.$implicit;Object(s.Mb)(1),Object(s.Tc)(c)}}var P=function(){var e=function e(){l(this,e),this.items=Array.from({length:1e5}).map(function(e,t){return"Item #"+t})};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(s.Sb)({type:e,selectors:[["cdk-virtual-scroll-template-cache-example"]],decls:2,vars:2,consts:[["itemSize","50",1,"example-viewport"],["class","example-item",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTemplateCacheSize"],[1,"example-item"]],template:function(e,t){1&e&&(Object(s.ec)(0,"cdk-virtual-scroll-viewport",0),Object(s.Qc)(1,V,2,1,"div",1),Object(s.dc)()),2&e&&(Object(s.Mb)(1),Object(s.vc)("cdkVirtualForOf",t.items)("cdkVirtualForTemplateCacheSize",0))},directives:[o.e,o.a,o.d],styles:[".example-viewport[_ngcontent-%COMP%] {\n height: 200px;\n width: 200px;\n border: 1px solid black;\n}\n\n.example-item[_ngcontent-%COMP%] {\n height: 50px;\n}"],changeDetection:0}),e}(),F=function(){var e=function e(){l(this,e)};return e.\u0275mod=Object(s.Wb)({type:e}),e.\u0275inj=Object(s.Vb)({factory:function(t){return new(t||e)},imports:[[o.h]]}),e}()}}])}();