(window.webpackJsonp=window.webpackJsonp||[]).push([[225],{1996:function(t,e,n){"use strict";n.r(e);var o=n(210),c=n(32),r=n(23),l=n.n(r),d=(n(76),n(125),n(126),n(50),n(120),n(461),n(121),n(221),n(185)),h=n(199),m=n(464),f={name:"SlugPage",components:{Collection:function(){return Promise.all([n.e(4),n.e(0),n.e(12),n.e(17)]).then(n.bind(null,1903))}},middleware:function(t){return Object(c.a)(l.a.mark((function e(){var n,o,c,r,h,m,f;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.app,o=t.$axios,t.params,c=t.query,r=t.redirect,h=t.env,m=t.route,e.next=3,o.$get("slugs",{params:{path:m.path}});case 3:f=e.sent,Object(d.h)(f,!1,r,c,h,n.context.route);case 5:case"end":return e.stop()}}),e)})))()},asyncData:function(t){return Object(c.a)(l.a.mark((function e(){var n,o,c,r,h,m;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.error,o=t.$axios,c=t.params,r=t.query,t.redirect,t.env,e.prev=1,e.next=4,o.$get("collections/".concat(c.slug),{params:r});case 4:return h=e.sent,(m={slug:h.data.slug,seo:h.data.seo}).collection={collection:h.data,meta:h.meta,query:r},e.abrupt("return",{data:m});case 10:e.prev=10,e.t0=e.catch(1),Object(d.r)(e.t0,n);case 13:case"end":return e.stop()}}),e,null,[[1,10]])})))()},head:function(){var t=this.$nuxtI18nHead({addSeoAttributes:!0}),e=this.$route.query,n="?";Object.keys(e).forEach((function(t){n+=t+"="+e[t]}));var c=this.data.collection.collection;return t.link=Object(d.b)(this.$i18n,t,n,c),{title:this.data.seo&&this.data.seo.title,titleTemplate:"%s",meta:[{hid:"og:title",name:"og:title",content:this.data.seo&&this.data.seo.title},{hid:"description",name:"description",content:this.data.seo&&this.data.seo.description},{hid:"og:description",name:"og:description",content:this.data.seo&&this.data.seo.description}],link:Object(o.a)(t.link)}},mounted:function(){var t=this;setTimeout((function(){try{Object(h.o)(t.$route,"collection",t.data.seo&&t.data.seo.title);var e=t.data.collection.meta,n=e.current_page,o=e.total;Object(h.f)(n,o),t.data&&t.data.collection&&Object(h.n)({products:t.data.collection.collection.products,list:"Collection Pages"}),Object(m.b)(t.data.collection)}catch(t){console.error(t)}}),250)}},v=n(175),component=Object(v.a)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",[n("Collection",{attrs:{data:t.data.collection}})],1)])}),[],!1,null,null,null);e.default=component.exports}}]);