(window.webpackJsonp=window.webpackJsonp||[]).push([[100],{1436:function(t,e,n){"use strict";n(777)},1437:function(t,e,n){var r=n(13)(!1);r.push([t.i,".posts[data-v-3b73e80e]{width:100%;margin-top:0}.pagination[data-v-3b73e80e]{display:table;margin:30px auto}.pagination a[data-v-3b73e80e]{width:40px;height:40px;line-height:40px;font-size:18px;text-align:center;float:left;display:block;margin:3px;color:#fff;background:#3da8ff;border-radius:10px;font-weight:400;cursor:pointer}.pagination .pageSelected[data-v-3b73e80e]{background:#7b96ac!important;cursor:default}",""]),t.exports=r},1601:function(t,e,n){"use strict";n.r(e);var r=n(4),o=(n(27),n(48),n(46),n(37),n(20),n(72),n(223),n(26)),c=n(384),d={asyncData:function(t){return Object(r.a)(regeneratorRuntime.mark((function e(){var n,r,c,d,l,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(n=t.route.path.split("/mods/")[1]).split("/page/")[0],console.log("url: "+n),r=1,t.route.path.includes("/page/")&&(r=t.route.path.split("/page/")[1]),c=t.route.path.split("/page")[0],1==r&&t.redirect(301,c),e.next=9,t.$axios.$get(o.a+"downloads.mods.categories?type=1");case 9:return d=e.sent,e.next=12,t.$axios.$get(o.a+"downloads.mods.categories?type=2&url=".concat(n));case 12:return l=e.sent,e.next=15,t.$axios.$get(o.a+"downloads.mods?type=4&url=".concat(n,"&page=")+r);case 15:return"null"==(h=h=e.sent).posts&&(console.log("Такой категории не существует"),t.redirect("/404")),e.abrupt("return",{url:n,cats:l,posts:h,pages:h.pages,page:r,categories:d.categories,versions:d.versions,url_start:c});case 18:case"end":return e.stop()}}),e)})))()},head:function(t){var e=t.page,n=t.url_start;return console.log(n),{title:(this.cats.categories[0].isVersion?this.$t("modsPage_category_title")+" "+this.cats.categories[0].name:(this.cats.categories[0].hasOwnProperty("page_name_"+this.$i18n.locale)?this.cats.categories[0]["page_name_"+this.$i18n.locale]:this.cats.categories[0].page_name)+" "+this.$t("modsPage_category_title2"))+(this.page>1?" - "+this.$t("modsPage_title_page")+" "+this.page:"")+" - CubixWorld.net",meta:[{hid:"description",name:"description",content:this.cats.categories[0].isVersion?this.$t("modsPage_category_description")+" "+this.cats.categories[0].name+". "+this.$t("modsPage_category_description2"):this.cats.categories[0].hasOwnProperty("description_"+this.$i18n.locale)?this.cats.categories[0]["description_"+this.$i18n.locale]:this.cats.categories[0].description},{hid:"keywords",name:"keywords",content:(this.cats.categories[0].isVersion?this.cats.categories[0].name+",на версию":this.cats.categories[0].page_name)+","+this.$t("modsPage_keywords")}].concat(this.$nuxtI18nHead({addSeoAttributes:!0}).meta),link:[{rel:"next",href:"https://download.kalataka.ru"+n+"/page/"+(Number(e)+1)},{rel:"prev",href:"https://download.kalataka.ru"+n+"/page/"+(Number(e)-1)},{rel:"canonical",href:"https://download.kalataka.ru"+n}].concat(this.$nuxtI18nHead({addSeoAttributes:!0}).link),htmlAttrs:this.$nuxtI18nHead({addSeoAttributes:!0}).htmlAttrs}},data:function(){return{}},components:{RightPanel:Object(c.a)((function(){return Promise.all([n.e(0),n.e(2)]).then(n.bind(null,354))})),Post:Object(c.a)((function(){return n.e(7).then(n.bind(null,1606))})),Header:Object(c.a)((function(){return n.e(6).then(n.bind(null,431))})),Pagination:Object(c.a)((function(){return n.e(8).then(n.bind(null,1607))}))},created:function(){0},methods:{}},l=(n(1436),n(8)),component=Object(l.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"content"},[n("div",{staticClass:"left"},[n("Header",{attrs:{categories:t.categories,versions:t.versions,categoryPage:!0,cats:t.cats.categories[0]}}),t._v(" "),Object.keys(t.posts.posts).length>0?n("div",{staticClass:"posts"},t._l(t.posts.posts,(function(t){return n("Post",{key:t.id,attrs:{post:t}})})),1):n("Empty"),t._v(" "),n("div",{staticClass:"bCenter"},[n("Pagination",{attrs:{pages:Number(t.pages),page:Number(t.page),url_start:t.url_start}})],1)],1),t._v(" "),n("RightPanel")],1)])}),[],!1,null,"3b73e80e",null);e.default=component.exports},384:function(t,e,n){"use strict";var r=new Map;var o="undefined"==typeof window;function c(component,t){return Object.assign({mixins:[{beforeCreate:function(){this.cleanupHandlers=[];var t=function(){var t=function(){},e=new Promise((function(e){t=e}));return{hydrate:t,hydrationPromise:e}}(),e=t.hydrate,n=t.hydrationPromise;this.Nonce=function(t){var component=t.component,e=t.hydrationPromise;return o?component:function(){return e.then((function(){return function(t){return"function"==typeof t}(t=component)?t().then((function(t){return t.default})):t;var t}))}}({component:component,hydrationPromise:n}),this.hydrate=e,this.hydrationPromise=n},beforeDestroy:function(){this.cleanup()},mounted:function(){var t=this;if(this.$el.nodeType!==Node.COMMENT_NODE){if(!this.never){if(this.whenVisible){var e=function(t){if("undefined"==typeof IntersectionObserver)return null;var e=JSON.stringify(t);if(r.has(e))return r.get(e);var n=new IntersectionObserver((function(t){t.forEach((function(t){(t.isIntersecting||t.intersectionRatio>0)&&t.target.hydrate&&t.target.hydrate()}))}),t);return r.set(e,n),n}(!0!==this.whenVisible?this.whenVisible:void 0);if(!e)return void this.hydrate();this.$el.hydrate=this.hydrate;var n=function(){return e.unobserve(t.$el)};return this.cleanupHandlers.push(n),this.hydrationPromise.then(n),void e.observe(this.$el)}if(this.whenIdle){if(!("requestIdleCallback"in window)||!("requestAnimationFrame"in window))return void this.hydrate();var o=requestIdleCallback((function(){requestAnimationFrame(t.hydrate)}),{timeout:this.idleTimeout}),c=function(){return cancelIdleCallback(o)};this.cleanupHandlers.push(c),this.hydrationPromise.then(c)}if(this.interactionEvents&&this.interactionEvents.length){var d={capture:!0,once:!0,passive:!0};this.interactionEvents.forEach((function(e){t.$el.addEventListener(e,t.hydrate,d);t.cleanupHandlers.push((function(){t.$el.removeEventListener(e,t.hydrate,d)}))}))}}}else this.hydrate()},methods:{cleanup:function(){this.cleanupHandlers.forEach((function(t){return t()}))}},render:function(t){return t(this.Nonce,{attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}}]},t)}c({render:function(){return this.$slots.default}},{props:{idleTimeout:{default:2e3,type:Number},never:{type:Boolean},onInteraction:{type:[Array,Boolean,String]},triggerHydration:{default:!1,type:Boolean},whenIdle:{type:Boolean},whenVisible:{type:[Boolean,Object]}},computed:{interactionEvents:function(){return this.onInteraction?!0===this.onInteraction?["focus"]:Array.isArray(this.onInteraction)?this.onInteraction:[this.onInteraction]:[]}},watch:{triggerHydration:{immediate:!0,handler:function(t){t&&this.hydrate()}}}}),e.a=function(component){return function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).observerOptions,n=void 0===e?void 0:e;return c(t,{beforeCreate:function(){this.whenVisible=n||!0}})}(component,{observerOptions:{rootMargin:"0%"}})}},777:function(t,e,n){var content=n(1437);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(14).default)("89df378a",content,!0,{sourceMap:!1})}}]);