{"size": 7791, "ext": "js", "max_stars_repo_path": "html/assets/js/x-components-1145-js-x-modules-next-queries-components-next-queries-list-vue_rollup-plugin-vue=script.19276e54.js", "max_stars_repo_name": "PedroOndh/express-static-test", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "html/assets/js/x-components-1145-js-x-modules-next-queries-components-next-queries-list-vue_rollup-plugin-vue=script.19276e54.js", "max_issues_repo_name": "PedroOndh/express-static-test", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "html/assets/js/x-components-1145-js-x-modules-next-queries-components-next-queries-list-vue_rollup-plugin-vue=script.19276e54.js", "max_forks_repo_name": "PedroOndh/express-static-test", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 7791.0, "max_line_length": 7791, "alphanum_fraction": 0.7284045694}
(window.webpackJsonp=window.webpackJsonp||[]).push([[85,91,92,93,96,97,99,188,189,444],{297:function(e,t,r){"use strict";r.r(t),r.d(t,"ItemsListInjectionMixin",(function(){return o}));var n=r(1),u=r(3),i=r(6),s=r(290),c=r(293),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n.__extends)(t,e),Object.defineProperty(t.prototype,"items",{get:function(){return[]},enumerable:!1,configurable:!0}),Object(n.__decorate)([Object(s.XProvide)(c.LIST_ITEMS_KEY)],t.prototype,"items",null),Object(n.__decorate)([Object(s.XInject)(c.LIST_ITEMS_KEY)],t.prototype,"injectedListItems",void 0),t=Object(n.__decorate)([i.default],t)}(u.default)},427:function(e,t,r){"use strict";r.r(t),r.d(t,"nextQueriesXStoreModule",(function(){return a}));var n=r(142),u=r(438),i=r(442),s=r(443),c=r(476),o=r(444),a={state:function(){return{query:"",nextQueries:[],searchedQueries:[],status:"initial",config:{maxItemsToRequest:20,hideSessionQueries:!0,loadOnInit:!0},params:{}}},getters:{request:r(445).request,nextQueries:o.nextQueries},mutations:{setQuery:function(e,t){e.query=t},setNextQueries:function(e,t){e.nextQueries=t},setSearchedQueries:function(e,t){e.searchedQueries=t},setStatus:n.setStatus,setParams:function(e,t){e.params=t}},actions:{cancelFetchAndSaveNextQueries:u.cancelFetchAndSaveNextQueries,fetchAndSaveNextQueries:u.fetchAndSaveNextQueries,fetchNextQueries:i.fetchNextQueries,setQueryFromLastHistoryQuery:s.setQueryFromLastHistoryQuery,setUrlParams:c.setUrlParams}}},428:function(e,t,r){"use strict";r.r(t),r.d(t,"fetchAndSaveNextQueriesWire",(function(){return f})),r.d(t,"nextQueriesWiring",(function(){return l})),r.d(t,"setNextQueriesExtraParams",(function(){return a})),r.d(t,"setNextQueriesQuery",(function(){return c})),r.d(t,"setQueryFromLastHistoryQueryWire",(function(){return d})),r.d(t,"setSearchedQueries",(function(){return m}));var n=r(35),u=r(50),i=Object(u.namespacedWireCommit)("nextQueries"),s=Object(u.namespacedWireDispatch)("nextQueries"),c=i("setQuery"),o=s("setUrlParams"),a=i("setParams"),f=s("fetchAndSaveNextQueries"),d=s("setQueryFromLastHistoryQuery"),m=i("setSearchedQueries"),l=Object(n.createWiring)({UserAcceptedAQuery:{setNextQueriesQuery:c},SessionHistoryQueriesChanged:{setSearchedQueries:m,setQueryFromLastHistoryQueryWire:d},NextQueriesRequestChanged:{fetchAndSaveNextQueriesWire:f},ExtraParamsChanged:{setNextQueriesExtraParams:a},ParamsLoadedFromUrl:{setUrlParams:o}})},438:function(e,t,r){"use strict";r.r(t),r.d(t,"cancelFetchAndSaveNextQueries",(function(){return o})),r.d(t,"fetchAndSaveNextQueries",(function(){return c}));var n=r(141),u=Object(n.createFetchAndSaveActions)({fetch:function(e,t){return(0,e.dispatch)("fetchNextQueries",t)},onSuccess:function(e,t){var r=e.commit;t&&r("setNextQueries",t)}}),i=u.fetchAndSave,s=u.cancelPrevious,c=i,o=s},442:function(e,t,r){"use strict";r.r(t),r.d(t,"fetchNextQueries",(function(){return u}));var n=r(37),u=function(e,t){return t?n.XPlugin.adapter.getNextQueries(t).then((function(e){return e.nextQueries})):null}},443:function(e,t,r){"use strict";r.r(t),r.d(t,"setQueryFromLastHistoryQuery",(function(){return u}));var n=r(96),u=function(e,t){var r=e.state,u=e.commit;!Object(n.isArrayEmpty)(t)&&r.config.loadOnInit&&u("setQuery",t[0].query)}},444:function(e,t,r){"use strict";r.r(t),r.d(t,"nextQueries",(function(){return n}));var n=function(e){var t=e.nextQueries,r=e.searchedQueries,n=e.config,u=r.map((function(e){return e.query}));return n.hideSessionQueries?t.filter((function(e){var t=e.query;return!u.includes(t)})):t}},445:function(e,t,r){"use strict";r.r(t),r.d(t,"request",(function(){return u}));var n=r(1),u=function(e){var t=e.query,r=e.config,u=e.params;return t.trim()?Object(n.__assign)({query:t,rows:r.maxItemsToRequest,start:0},u):null}},449:function(e,t,r){"use strict";r.r(t),r.d(t,"nextQueriesXModule",(function(){return s}));var n=r(427),u=r(477),i=r(428),s={name:"nextQueries",storeModule:n.nextQueriesXStoreModule,storeEmitters:u.nextQueriesEmitters,wiring:i.nextQueriesWiring}},476:function(e,t,r){"use strict";r.r(t),r.d(t,"setUrlParams",(function(){return n}));var n=function(e,t){(0,e.commit)("setQuery",t.query)}},477:function(e,t,r){"use strict";r.r(t),r.d(t,"nextQueriesEmitters",(function(){return s}));var n=r(96),u=r(61),i=r(427),s=Object(u.createStoreEmitters)(i.nextQueriesXStoreModule,{NextQueriesChanged:{selector:function(e,t){return t.nextQueries},filter:Object(n.createEmitterArrayFilter)("query")},NextQueriesRequestChanged:function(e,t){return t.request}})},533:function(e,t,r){"use strict";r.r(t);var n=r(16),u=r.n(n),i=r(699).default,s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("NoElement",[e._t("default",(function(){return[r("ItemsList",{attrs:{animation:e.animation,items:e.items},scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,r){return{key:r,fn:function(t){var n=t.item;return[e._t(r,null,{item:n})]}}}))],null,!0)})]}),null,{items:e.items,animation:e.animation})],2)};s._withStripped=!0;var c=u()({render:s,staticRenderFns:[]},void 0,i,void 0,!1,void 0,!1,void 0,void 0,void 0);t.default=c},701:function(e,t,r){"use strict";r.r(t);var n=r(1),u=r(0),i=r(96),s=r(6),c=r(289),o=r(60),a=r(59),f=r(299),d=r(297),m=r(449),l=r(533),Q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n.__extends)(t,e),Object.defineProperty(t.prototype,"nextQueriesGroups",{get:function(){var e=this;return Object.values(Object(i.groupItemsBy)(this.nextQueries,(function(t,r){return Math.floor(r/e.maxNextQueriesPerGroup)}))).slice(0,this.maxGroups).map((function(e){return{modelName:"NextQueriesGroup",id:e.map((function(e){return e.query})).join(","),nextQueries:e}}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){var e=this;return this.injectedListItems?this.nextQueriesGroups.reduce((function(t,r,n){var u=e.offset+e.frequency*n;return u<=t.length&&t.splice(u,0,r),t}),Object(n.__spreadArray)([],this.injectedListItems)):this.nextQueriesGroups},enumerable:!1,configurable:!0}),Object(n.__decorate)([Object(u.c)()],t.prototype,"animation",void 0),Object(n.__decorate)([Object(u.c)({default:24})],t.prototype,"offset",void 0),Object(n.__decorate)([Object(u.c)({default:24})],t.prototype,"frequency",void 0),Object(n.__decorate)([Object(u.c)({default:4})],t.prototype,"maxNextQueriesPerGroup",void 0),Object(n.__decorate)([Object(u.c)()],t.prototype,"maxGroups",void 0),Object(n.__decorate)([Object(o.Getter)("nextQueries","nextQueries")],t.prototype,"nextQueries",void 0),t=Object(n.__decorate)([Object(u.a)({components:{ResultsList:l.default,NoElement:c.NoElement,ItemsList:f.default},mixins:[Object(a.xComponentMixin)(m.nextQueriesXModule)]})],t)}(Object(s.mixins)(d.ItemsListInjectionMixin));t.default=Q},96:function(e,t,r){"use strict";function n(e){return null==e||0===e.length}function u(e,t){return e.reduce((function(e,r){return t?e[r[t]]=r:"string"==typeof r&&(e[r]=r),e}),{})}function i(e,t){return e.reduce((function(e,r,n){var u=t(r,n);return e[u]||(e[u]=[]),e[u].push(r),e}),{})}function s(e,t,r){var n=function(e,u){return void 0===u&&(u=[]),e.reduce((function(e,u){return t(u)&&(e.push(u),n(u[r],e)),e}),u)};return n(e)}function c(e,t){return function e(r,n){return n?Array.isArray(n)?n.reduce(e,r):(r.push(n),e(r,n[t])):r}([],e)}function o(e){var t="function"==typeof e?e:function(t,r){return t[e]===r[e]};return function(e,r){return e.length!==r.length||e.some((function(e){return!r.find((function(r){return t(e,r)}))}))}}r.r(t),r.d(t,"arrayToObject",(function(){return u})),r.d(t,"createEmitterArrayFilter",(function(){return o})),r.d(t,"deepFilter",(function(){return s})),r.d(t,"deepFlat",(function(){return c})),r.d(t,"groupItemsBy",(function(){return i})),r.d(t,"isArrayEmpty",(function(){return n}))}}]);