text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3054facf","chunk-7ed7f663","chunk-790afe2f","chunk-1390d9e2","chunk-2d2225d7"],{"0f90":function(t,e,s){"use strict";s.r(e);var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.isLoading||0==t.sortedProducts.length?s("products-skeleton"):s("section",{staticClass:"ecommerce-section",attrs:{id:"collection"}},[s("div",{staticClass:"container-fluid"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12"},[s("filters-bar",{on:{"load-products":t.getProducts,"loading-products-start":function(e){t.isLoading=!0},"loading-products-end":function(e){t.isLoading=!1},"do-sort":t.doSort}}),s("p",{staticClass:"text-center text-muted m-0 mt-5"},[t._v(t._s(t.$tc("styles_found",t.sortedProducts.length)))])],1),0==t.sortedProducts.length?s("div",{staticClass:"col-12"},[s("div",{staticClass:"col-md-12 text-center py-8"},[s("v-icon",{staticClass:"mb-3",attrs:{size:"70"}},[t._v("mdi-emoticon-sad-outline")]),s("h2",{staticClass:"p-1 mb-5 font-weight-bold"},[t._v(t._s(t.$t("No products found")))]),s("v-row",[s("v-col",{attrs:{cols:"12"}},[s("button-load-products",[s("v-icon",{staticClass:"mr-2"},[t._v("mdi-refresh")]),t._v(" "+t._s(t.$t("Refresh page"))+" ")],1)],1)],1)],1)]):s("div",{staticClass:"col-12"},[s("div",{staticClass:"row"},t._l(t.sortedProducts,(function(e,n){return s("div",{key:e.id,staticClass:"col-sm-2 col-md-3"},[s("card",{key:e.id,attrs:{product:e,index:n,"multiple-grid-display":t.multipleGridDisplay,"is-loading":t.isLoading,"show-cart-button":!0},on:{"product-card-click":t.sendAnalytics}})],1)})),0)]),s("hr"),t.sortedProducts.length>0?s("pagination",{attrs:{"product-count":t.sortedProducts.length},on:{"start-pagination":function(e){t.isLoading=!0},"end-pagination":function(e){t.isLoading=!1}}}):t._e(),s("div",{staticClass:"col-12 my-6"},[s("router-link",{attrs:{to:{name:"home_view",lang:t.$i18n.locale}}},[s("v-img",{attrs:{src:"https://img.ltwebstatic.com/images3_acp/2022/02/25/164578700614872218156e3ff9868de22e7c67a145.webp"}})],1)],1)],1)])])},i=[],r=s("5530"),a=(s("d81d"),s("4e827"),s("2ef0")),o=s.n(a),c=s("9225"),u=s("d772"),d=s("5a0c");d.extend(u),d.locale(c["a"].locale),window.dayjs=d;var l=d,h=s("f6f8"),f=s("2f62"),m=s("5f63"),p=s("850e"),v=s("cdff"),$=s("956b"),g={name:"CollectionView",components:{Card:m["default"],Pagination:p["default"],ProductsSkeleton:v["default"],FiltersBar:$["default"]},title:function(){return"Shop Loungewear And Underwear"},mixins:[h["a"]],data:function(){return{isLoading:!0,multipleGridDisplay:!1,hideFilters:!1,sortMethod:null}},computed:Object(r["a"])(Object(r["a"])(Object(r["a"])({},Object(f["b"])(["minPrice","maxPrice","hasProducts"])),Object(f["d"])({products:function(t){return t.shopModule.products}})),{},{searchedPrice:{get:function(){return this.$store.setSearchedPrices},set:function(t){this.$store.commit("setSearchedPrices",t)}},sortedProducts:function(){var t=[];switch(this.sortMethod){case"Latest":t=this.sortByDates();break;case"Price high to low":t=this.mapPrices("desc");break;case"Price low to high":t=this.mapPrices("asc");break;case"Alphabetically A-Z":t=o.a.orderBy(this.products,["name"],"asc");break;case"Alphabetically Z-A":t=o.a.orderBy(this.products,["name"],"desc");break;default:t=this.products;break}return t}}),watch:{"$route.params.collection":function(t,e){t!==e&&this.getProducts()}},beforeMount:function(){this.productsRequest(),this.isLoading=!1},mounted:function(){},methods:Object(r["a"])(Object(r["a"])({},Object(f["c"])(["resetProducts"])),{},{changeGrid:function(){this.multipleGridDisplay=!this.multipleGridDisplay,this.$localstorage.create("grid",this.multipleGridDisplay)},doSort:function(t){this.sortMethod=t,this.$localstorage.create("sort",t)},mapPrices:function(t){var e=o.a.map(this.products,(function(t){return t["unit_price"]=1*t["unit_price"],t["sale_price"]=1*t["sale_price"],t})),s=t||"desc";return o.a.orderBy(e,["unit_price"],[s])},sortByDates:function(){return this.products.sort((function(t,e){return l(t.created_on)-l(e.created_on)}))},sendAnalytics:function(t,e){}})},b=g,y=(s("2df4"),s("2877")),w=s("6544"),_=s.n(w),M=s("62ad"),S=s("132d"),k=s("adda"),x=s("0fd9"),C=Object(y["a"])(b,n,i,!1,null,"56edfcc9",null);e["default"]=C.exports;_()(C,{VCol:M["a"],VIcon:S["a"],VImg:k["a"],VRow:x["a"]})},2938:function(t,e,s){},"2df4":function(t,e,s){"use strict";s("45f9")},"3cdb":function(t,e,s){"use strict";s("2938")},"45f9":function(t,e,s){},"5a0c":function(t,e,s){!function(e,s){t.exports=s()}(0,(function(){"use strict";var t=1e3,e=6e4,s=36e5,n="millisecond",i="second",r="minute",a="hour",o="day",c="week",u="month",d="quarter",l="year",h="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},$=function(t,e,s){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(s)+t},g={s:$,z:function(t){var e=-t.utcOffset(),s=Math.abs(e),n=Math.floor(s/60),i=s%60;return(e<=0?"+":"-")+$(n,2,"0")+":"+$(i,2,"0")},m:function t(e,s){if(e.date()<s.date())return-t(s,e);var n=12*(s.year()-e.year())+(s.month()-e.month()),i=e.clone().add(n,u),r=s-i<0,a=e.clone().add(n+(r?-1:1),u);return+(-(n+(s-i)/(r?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:l,w:c,d:o,D:h,h:a,m:r,s:i,ms:n,Q:d}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",y={};y[b]=v;var w=function(t){return t instanceof k},_=function t(e,s,n){var i;if(!e)return b;if("string"==typeof e){var r=e.toLowerCase();y[r]&&(i=r),s&&(y[r]=s,i=r);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var o=e.name;y[o]=e,i=o}return!n&&i&&(b=i),i||!n&&b},M=function(t,e){if(w(t))return t.clone();var s="object"==typeof e?e:{};return s.date=t,s.args=arguments,new k(s)},S=g;S.l=_,S.i=w,S.w=function(t,e){return M(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function v(t){this.$L=_(t.locale,null,!0),this.parse(t)}var $=v.prototype;return $.parse=function(t){this.$d=function(t){var e=t.date,s=t.utc;if(null===e)return new Date(NaN);if(S.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(m);if(n){var i=n[2]-1||0,r=(n[7]||"0").substring(0,3);return s?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},$.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},$.$utils=function(){return S},$.isValid=function(){return!(this.$d.toString()===f)},$.isSame=function(t,e){var s=M(t);return this.startOf(e)<=s&&s<=this.endOf(e)},$.isAfter=function(t,e){return M(t)<this.startOf(e)},$.isBefore=function(t,e){return this.endOf(e)<M(t)},$.$g=function(t,e,s){return S.u(t)?this[e]:this.set(s,t)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(t,e){var s=this,n=!!S.u(e)||e,d=S.p(t),f=function(t,e){var i=S.w(s.$u?Date.UTC(s.$y,e,t):new Date(s.$y,e,t),s);return n?i:i.endOf(o)},m=function(t,e){return S.w(s.toDate()[t].apply(s.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),s)},p=this.$W,v=this.$M,$=this.$D,g="set"+(this.$u?"UTC":"");switch(d){case l:return n?f(1,0):f(31,11);case u:return n?f(1,v):f(0,v+1);case c:var b=this.$locale().weekStart||0,y=(p<b?p+7:p)-b;return f(n?$-y:$+(6-y),v);case o:case h:return m(g+"Hours",0);case a:return m(g+"Minutes",1);case r:return m(g+"Seconds",2);case i:return m(g+"Milliseconds",3);default:return this.clone()}},$.endOf=function(t){return this.startOf(t,!1)},$.$set=function(t,e){var s,c=S.p(t),d="set"+(this.$u?"UTC":""),f=(s={},s[o]=d+"Date",s[h]=d+"Date",s[u]=d+"Month",s[l]=d+"FullYear",s[a]=d+"Hours",s[r]=d+"Minutes",s[i]=d+"Seconds",s[n]=d+"Milliseconds",s)[c],m=c===o?this.$D+(e-this.$W):e;if(c===u||c===l){var p=this.clone().set(h,1);p.$d[f](m),p.init(),this.$d=p.set(h,Math.min(this.$D,p.daysInMonth())).$d}else f&&this.$d[f](m);return this.init(),this},$.set=function(t,e){return this.clone().$set(t,e)},$.get=function(t){return this[S.p(t)]()},$.add=function(n,d){var h,f=this;n=Number(n);var m=S.p(d),p=function(t){var e=M(f);return S.w(e.date(e.date()+Math.round(t*n)),f)};if(m===u)return this.set(u,this.$M+n);if(m===l)return this.set(l,this.$y+n);if(m===o)return p(1);if(m===c)return p(7);var v=(h={},h[r]=e,h[a]=s,h[i]=t,h)[m]||1,$=this.$d.getTime()+n*v;return S.w($,this)},$.subtract=function(t,e){return this.add(-1*t,e)},$.format=function(t){var e=this,s=this.$locale();if(!this.isValid())return s.invalidDate||f;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),r=this.$H,a=this.$m,o=this.$M,c=s.weekdays,u=s.months,d=function(t,s,i,r){return t&&(t[s]||t(e,n))||i[s].substr(0,r)},l=function(t){return S.s(r%12||12,t,"0")},h=s.meridiem||function(t,e,s){var n=t<12?"AM":"PM";return s?n.toLowerCase():n},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:S.s(o+1,2,"0"),MMM:d(s.monthsShort,o,u,3),MMMM:d(u,o),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:d(s.weekdaysMin,this.$W,c,2),ddd:d(s.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(r),HH:S.s(r,2,"0"),h:l(1),hh:l(2),a:h(r,a,!0),A:h(r,a,!1),m:String(a),mm:S.s(a,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:i};return n.replace(p,(function(t,e){return e||m[t]||i.replace(":","")}))},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(n,h,f){var m,p=S.p(h),v=M(n),$=(v.utcOffset()-this.utcOffset())*e,g=this-v,b=S.m(this,v);return b=(m={},m[l]=b/12,m[u]=b,m[d]=b/3,m[c]=(g-$)/6048e5,m[o]=(g-$)/864e5,m[a]=g/s,m[r]=g/e,m[i]=g/t,m)[p]||g,f?b:S.a(b)},$.daysInMonth=function(){return this.endOf(u).$D},$.$locale=function(){return y[this.$L]},$.locale=function(t,e){if(!t)return this.$L;var s=this.clone(),n=_(t,e,!0);return n&&(s.$L=n),s},$.clone=function(){return S.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},v}(),x=k.prototype;return M.prototype=x,[["$ms",n],["$s",i],["$m",r],["$H",a],["$W",o],["$M",u],["$y",l],["$D",h]].forEach((function(t){x[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),M.extend=function(t,e){return t.$i||(t(e,k,M),t.$i=!0),M},M.locale=_,M.isDayjs=w,M.unix=function(t){return M(1e3*t)},M.en=y[b],M.Ls=y,M.p={},M}))},"850e":function(t,e,s){"use strict";s.r(e);var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-row",{staticClass:"text-center"},[s("v-col",{staticClass:"pb-6",attrs:{cols:"12"}},[s("p",[t._v("Showing "),s("span",{staticClass:"fw-bold"},[t._v(t._s(t.productCount))]),t._v(" of "),s("span",{staticClass:"fw-bold"},[t._v(t._s(t.totalCount))]),t._v(" products")]),s("base-pagination",{on:{"start-load":function(e){return t.$emit("start-pagination")},"end-load":function(e){return t.$emit("end-pagination")}}},[s("v-icon",{staticClass:"mr-2"},[t._v("mdi-arrow-down")]),t._v(" "+t._s(t.$t("Load more"))+" ")],1)],1)],1)},i=[],r=s("5530"),a=(s("a9e3"),s("2f62")),o=s("da75"),c={name:"Pagination",components:{BasePagination:o["default"]},props:{productCount:{type:Number,default:0}},computed:Object(r["a"])({},Object(a["b"])(["totalCount","nextUrl"]))},u=c,d=s("2877"),l=s("6544"),h=s.n(l),f=s("62ad"),m=s("132d"),p=s("0fd9"),v=Object(d["a"])(u,n,i,!1,null,null,null);e["default"]=v.exports;h()(v,{VCol:f["a"],VIcon:m["a"],VRow:p["a"]})},"956b":function(t,e,s){"use strict";s.r(e);var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("nav",{ref:"link",staticClass:"navbar navbar-expand-lg shadow-none navbar-light mb-2"},[s("div",{staticClass:"collapse navbar-collapse flex-column justify-content-left align-items-start"},[s("ul",{staticClass:"navbar-nav w-100 justify-content-center"},[s("li",{staticClass:"nav-item font-weight-bold text-uppercase"},[s("v-btn",{attrs:{disabled:"",text:""}},[s("v-icon",{staticClass:"mr-2"},[t._v("mdi-tune")]),t._v(" Filtres ")],1)],1),s("li",{staticClass:"nav-item mx-1"},[s("v-menu",{attrs:{"close-on-content-click":!0,"open-on-hover":!1,rounded:!1,transition:"scale-transition"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on,i=e.attrs;return[s("v-btn",t._g(t._b({attrs:{text:""}},"v-btn",i,!1),n),[s("v-icon",{staticClass:"mr-2"},[t._v("mdi-sort")]),t._v(" "+t._s(t.$t(t.sortMethod))+" ")],1)]}}])},[s("v-list",t._l(t.sortMethods,(function(e){return s("v-list-item",{key:e,on:{click:function(s){return t.doSort(e)}}},[s("v-list-item-title",[t._v(t._s(t.$t(e)))])],1)})),1)],1)],1),s("li",{staticClass:"nav-item mx-1"},[s("v-btn",{attrs:{text:""},on:{click:function(e){return t.openFilters("sizes")}}},[t._v(" "+t._s(t.$t("Size"))+" "),s("v-icon",{staticClass:"ms-1"},[t._v("mdi-chevron-down")])],1)],1),s("li",{staticClass:"nav-item mx-1"},[s("v-btn",{attrs:{text:""},on:{click:function(e){return t.openFilters("colors")}}},[t._v(" "+t._s(t.$t("Color"))+" "),s("v-icon",{staticClass:"ms-1"},[t._v("mdi-chevron-down")])],1)],1)]),t.showFilters?s("div",{staticClass:"d-flex justify-content-center",staticStyle:{"flex-wrap":"wrap"},attrs:{id:"filters"}},["sizes"==t.selectedFilter?s("div",t._l(t.sizes,(function(e,n){return s("v-chip",{key:n,staticClass:"fw-bold me-3",staticStyle:{height:"50px",width:"50px","border-radius":"50%","text-align":"center"},attrs:{link:""},on:{click:function(s){return t.setFilterValue("sizes",e)}}},[t._v(" "+t._s(e)+" ")])})),1):"colors"==t.selectedFilter?s("div",{staticClass:"d-flex justify-content-center"},t._l(t.colors,(function(e,n){return s("div",{key:n,on:{click:function(s){return t.setFilterValue("colors",e[0])}}},[t.isSelected("colors",e[0])?s("v-icon",{staticClass:"text-white filter-icon",attrs:{"x-large":""}},[t._v("mdi-check")]):t._e(),s("v-img",{staticClass:"mx-2",attrs:{id:"color",src:e[1],height:"50px",width:"50px"}})],1)})),0):t._e()]):t._e()])])},i=[],r=s("1da1"),a=s("5530"),o=(s("96cf"),s("d3b7"),s("159b"),s("b0c0"),s("d81d"),s("3ca3"),s("ddb0"),s("9861"),s("b64b"),s("9911"),s("caad"),s("2532"),s("2f62")),c=s("2ef0"),u={name:"FiltersBar",data:function(){return{items:[],sortMethod:"Latest",sortMethods:["Latest","Alphabetically A-Z","Alphabetically Z-A","Price high to low","Price low to high"],showFilters:!1,selectedFilter:"sizes",selectedElements:{sizes:[],colors:[]},sizes:["XS","S","M","L","XL","XXL"]}},computed:Object(a["a"])(Object(a["a"])({},Object(o["d"])({productNames:function(t){var e=[];return c.forEach(t.shopModule.products,(function(t){e.push(t.name)})),e}})),{},{colors:function(){var t=this,e=["beige","black","camel","red"];return c.map(e,(function(e){return[e,t.$options.filters.mediaUrl("/media/swatches/".concat(e,".png"))]}))},searchQuery:function(){var t=new URLSearchParams(Object(a["a"])({},this.selectedElements));return"?".concat(t)},hasFilters:function(){var t=this,e=c.map(Object.keys(this.selectedElements),(function(e){return t.selectedElements[e].length>0}));return e.some((function(t){return 1==t}))}}),beforeMount:function(){this.sortMethod=this.$localstorage.retrieve("sort"),this.doSort(this.sortMethod)},mounted:function(){window.addEventListener("scroll",this.handleScroll)},destroyed:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getFilteredProducts:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.$emit("loading-products-start"),e.next=4,t.axios.get("/shop/advanced/search".concat(t.searchQuery));case 4:s=e.sent,t.$store.commit("setProducts",s.data),t.$emit("loading-products-end"),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),t.$store.dispatch("addErrorMessag","An error occured");case 12:case"end":return e.stop()}}),e,null,[[0,9]])})))()},doSort:function(t){this.sortMethod=t,this.$emit("do-sort",t)},openFilters:function(t){t!==this.selectedFilter&&this.showFilters?this.showFilters=!0:this.showFilters=!this.showFilters,this.selectedFilter=t},handleScroll:function(){var t=this.getVerticalScrollPercentage(document.body);t>=5&&this.$refs.link.classList.add("scrolled"),(t>=90||0==t)&&this.$refs.link.classList.remove("scrolled")},setFilterValue:function(t,e){var s=this.selectedElements[t];this.selectedElements[t]=this.updateList(e,s),this.hasFilters?this.getFilteredProducts():(this.$emit("loading-products-start"),this.$emit("load-products"),this.$emit("loading-products-end")),this.scrollToTop()},isSelected:function(t,e){return this.selectedElements[t].includes(e)}}},d=u,l=(s("3cdb"),s("2877")),h=s("6544"),f=s.n(h),m=s("8336"),p=s("cc20"),v=s("132d"),$=s("adda"),g=s("8860"),b=s("da13"),y=s("5d23"),w=s("e449"),_=Object(l["a"])(d,n,i,!1,null,"2b012866",null);e["default"]=_.exports;f()(_,{VBtn:m["a"],VChip:p["a"],VIcon:v["a"],VImg:$["a"],VList:g["a"],VListItem:b["a"],VListItemTitle:y["b"],VMenu:w["a"]})},cdff:function(t,e,s){"use strict";s.r(e);var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("section",{staticClass:"ecommerce-section",attrs:{id:"collection"}},[s("div",{staticClass:"container-fluid"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12"},[s("b-skeleton",{attrs:{width:"100%",height:"50%",type:"text",animation:"fade"}}),s("b-skeleton",{staticClass:"text-center text-muted m-0 mt-5",attrs:{width:"20%",height:"30%",type:"text",animation:"fade"}})],1),s("div",{staticClass:"col-12"},[s("div",{staticClass:"row"},t._l(100,(function(t){return s("div",{key:t,staticClass:"col-3"},[s("b-skeleton-img",{attrs:{height:"400px",animation:"fade"}}),s("div",{staticClass:"mt-2",attrs:{id:"product-details"}},[s("b-skeleton",{attrs:{width:"50%",height:"10%",animation:"fade"}}),s("b-skeleton",{attrs:{width:"40%",height:"10%",type:"text",animation:"fade"}})],1)],1)})),0)]),s("hr"),s("b-skeleton",{attrs:{width:"40%",type:"text",animation:"fade"}})],1)])])},i=[],r={name:"ProductsSkeleton"},a=r,o=s("2877"),c=Object(o["a"])(a,n,i,!1,null,null,null);e["default"]=c.exports},d772:function(t,e,s){!function(e,s){t.exports=s()}(0,(function(){"use strict";var t,e,s=1e3,n=6e4,i=36e5,r=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,o=31536e6,c=2592e6,u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,d={years:o,months:c,days:r,hours:i,minutes:n,seconds:s,milliseconds:1,weeks:6048e5},l=function(t){return t instanceof g},h=function(t,e,s){return new g(t,s,e.$l)},f=function(t){return e.p(t)+"s"},m=function(t){return t<0},p=function(t){return m(t)?Math.ceil(t):Math.floor(t)},v=function(t){return Math.abs(t)},$=function(t,e){return t?m(t)?{negative:!0,format:""+v(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},g=function(){function m(t,e,s){var n=this;if(this.$d={},this.$l=s,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return h(t*d[f(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach((function(e){n.$d[f(e)]=t[e]})),this.calMilliseconds(),this;if("string"==typeof t){var i=t.match(u);if(i){var r=i.slice(2).map((function(t){return null!=t?Number(t):0}));return this.$d.years=r[0],this.$d.months=r[1],this.$d.weeks=r[2],this.$d.days=r[3],this.$d.hours=r[4],this.$d.minutes=r[5],this.$d.seconds=r[6],this.calMilliseconds(),this}}return this}var v=m.prototype;return v.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(e,s){return e+(t.$d[s]||0)*d[s]}),0)},v.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=p(t/o),t%=o,this.$d.months=p(t/c),t%=c,this.$d.days=p(t/r),t%=r,this.$d.hours=p(t/i),t%=i,this.$d.minutes=p(t/n),t%=n,this.$d.seconds=p(t/s),t%=s,this.$d.milliseconds=t},v.toISOString=function(){var t=$(this.$d.years,"Y"),e=$(this.$d.months,"M"),s=+this.$d.days||0;this.$d.weeks&&(s+=7*this.$d.weeks);var n=$(s,"D"),i=$(this.$d.hours,"H"),r=$(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3);var o=$(a,"S"),c=t.negative||e.negative||n.negative||i.negative||r.negative||o.negative,u=i.format||r.format||o.format?"T":"",d=(c?"-":"")+"P"+t.format+e.format+n.format+u+i.format+r.format+o.format;return"P"===d||"-P"===d?"P0D":d},v.toJSON=function(){return this.toISOString()},v.format=function(t){var s=t||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return s.replace(a,(function(t,e){return e||String(n[t])}))},v.as=function(t){return this.$ms/d[f(t)]},v.get=function(t){var e=this.$ms,s=f(t);return"milliseconds"===s?e%=1e3:e="weeks"===s?p(e/d[s]):this.$d[s],0===e?0:e},v.add=function(t,e,s){var n;return n=e?t*d[f(e)]:l(t)?t.$ms:h(t,this).$ms,h(this.$ms+n*(s?-1:1),this)},v.subtract=function(t,e){return this.add(t,e,!0)},v.locale=function(t){var e=this.clone();return e.$l=t,e},v.clone=function(){return h(this.$ms,this)},v.humanize=function(e){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},v.milliseconds=function(){return this.get("milliseconds")},v.asMilliseconds=function(){return this.as("milliseconds")},v.seconds=function(){return this.get("seconds")},v.asSeconds=function(){return this.as("seconds")},v.minutes=function(){return this.get("minutes")},v.asMinutes=function(){return this.as("minutes")},v.hours=function(){return this.get("hours")},v.asHours=function(){return this.as("hours")},v.days=function(){return this.get("days")},v.asDays=function(){return this.as("days")},v.weeks=function(){return this.get("weeks")},v.asWeeks=function(){return this.as("weeks")},v.months=function(){return this.get("months")},v.asMonths=function(){return this.as("months")},v.years=function(){return this.get("years")},v.asYears=function(){return this.as("years")},m}();return function(s,n,i){t=i,e=i().$utils(),i.duration=function(t,e){var s=i.locale();return h(t,{$l:s},e)},i.isDuration=l;var r=n.prototype.add,a=n.prototype.subtract;n.prototype.add=function(t,e){return l(t)&&(t=t.asMilliseconds()),r.bind(this)(t,e)},n.prototype.subtract=function(t,e){return l(t)&&(t=t.asMilliseconds()),a.bind(this)(t,e)}}}))},da75:function(t,e,s){"use strict";s.r(e);var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-btn",{attrs:{"x-large":!0},on:{click:t.getProducts}},[t._t("default")],2)},i=[],r=s("f6f8"),a={name:"BasePagination",mixins:[r["a"]]},o=a,c=s("2877"),u=s("6544"),d=s.n(u),l=s("8336"),h=Object(c["a"])(o,n,i,!1,null,null,null);e["default"]=h.exports;d()(h,{VBtn:l["a"]})},f6f8:function(t,e,s){"use strict";var n=s("1da1");s("96cf");e["a"]={methods:{productsRequest:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var s,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,s=t.$route.params.collection,n=null,"all"!=s){e.next=9;break}return e.next=6,t.axios.get("/collection/all");case 6:n=e.sent,e.next=12;break;case 9:return e.next=11,t.axios.get("/collection/".concat(s));case 11:n=e.sent;case 12:t.$store.commit("setProducts",n.data),t.$session.create("products",n.data),e.next=19;break;case 16:e.prev=16,e.t0=e["catch"](0),t.$store.dispatch("addErrorMessage",t.$t("An error occured"));case 19:case"end":return e.stop()}}),e,null,[[0,16]])})))()},getProducts:function(){this.$emit("start-load"),this.productsRequest(),this.$emit("end-load")}}}}}]);
  //# sourceMappingURL=chunk-3054facf.dddfc57c.js.map