"use strict";(self.webpackChunkflone_react=self.webpackChunkflone_react||[]).push([[3495],{3495:function(e,t,s){s.r(t);var a=s(9439),r=s(2791),n=s(6443),o=s(9434),i=s(7689),c=s(1770),l=s(1131),u=s(9858),d=s(6496),h=s(335),p=s(4427),g=s(184);t.default=function(){var e=(0,r.useState)("grid three-column"),t=(0,a.Z)(e,2),s=t[0],f=t[1],m=(0,r.useState)(""),x=(0,a.Z)(m,2),j=x[0],v=x[1],C=(0,r.useState)(""),S=(0,a.Z)(C,2),b=S[0],N=S[1],P=(0,r.useState)(0),Z=(0,a.Z)(P,2),L=Z[0],w=Z[1],k=(0,r.useState)(1),T=(0,a.Z)(k,2),y=T[0],F=T[1],H=(0,r.useState)([]),M=(0,a.Z)(H,2),B=M[0],_=M[1],D=(0,r.useState)([]),E=(0,a.Z)(D,2),O=E[0],R=E[1],q=(0,o.v9)((function(e){return e.product})).products,z=(0,i.TH)().pathname;return(0,r.useEffect)((function(){var e=(0,c.LB)(q,"",""),t=(0,c.LB)(e,j,b);R(e=t),_(e.slice(L,L+15))}),[L,q,"","",j,b]),(0,g.jsxs)(r.Fragment,{children:[(0,g.jsx)(l.Z,{titleTemplate:"Shop Page",description:"Shop page of flone react minimalist eCommerce template."}),(0,g.jsxs)(u.Z,{headerTop:"visible",children:[(0,g.jsx)(d.Z,{pages:[{label:"Home",path:"/"},{label:"Shop",path:""+z}]}),(0,g.jsx)("div",{className:"shop-area pt-95 pb-100",children:(0,g.jsx)("div",{className:"container",children:(0,g.jsx)("div",{className:"row",children:(0,g.jsxs)("div",{className:"col-lg-12",children:[(0,g.jsx)(h.Z,{getLayout:function(e){f(e)},getFilterSortParams:function(e,t){v(e),N(t)},productCount:q.length,sortedProductCount:B.length}),(0,g.jsx)(p.Z,{layout:s,products:B}),(0,g.jsx)("div",{className:"pro-pagination-style text-center mt-30",children:(0,g.jsx)(n.Z,{totalRecords:O.length,pageLimit:15,pageNeighbours:2,setOffset:w,currentPage:y,setCurrentPage:F,pageContainerClass:"mb-0 mt-0",pagePrevText:"\xab",pageNextText:"\xbb"})})]})})})})]})]})}},335:function(e,t,s){s.d(t,{Z:function(){return i}});var a=s(2791),r=s(1770),n=s(184),o=function(e){var t=e.getLayout,s=e.getFilterSortParams,a=e.productCount,o=e.sortedProductCount;return(0,n.jsxs)("div",{className:"shop-top-bar mb-35",children:[(0,n.jsxs)("div",{className:"select-shoing-wrap",children:[(0,n.jsx)("div",{className:"shop-select",children:(0,n.jsxs)("select",{onChange:function(e){return s("filterSort",e.target.value)},children:[(0,n.jsx)("option",{value:"default",children:"Default"}),(0,n.jsx)("option",{value:"priceHighToLow",children:"Price - High to Low"}),(0,n.jsx)("option",{value:"priceLowToHigh",children:"Price - Low to High"})]})}),(0,n.jsxs)("p",{children:["Showing ",o," of ",a," result"]})]}),(0,n.jsxs)("div",{className:"shop-tab",children:[(0,n.jsx)("button",{onClick:function(e){t("grid two-column"),(0,r.cM)(e)},children:(0,n.jsx)("i",{className:"fa fa-th-large"})}),(0,n.jsx)("button",{onClick:function(e){t("grid three-column"),(0,r.cM)(e)},children:(0,n.jsx)("i",{className:"fa fa-th"})}),(0,n.jsx)("button",{onClick:function(e){t("list"),(0,r.cM)(e)},children:(0,n.jsx)("i",{className:"fa fa-list-ul"})})]})]})},i=function(e){var t=e.getLayout,s=e.getFilterSortParams,r=e.productCount,i=e.sortedProductCount;return(0,n.jsx)(a.Fragment,{children:(0,n.jsx)(o,{getLayout:t,getFilterSortParams:s,productCount:r,sortedProductCount:i})})}}}]);
//# sourceMappingURL=3495.5dae96b0.chunk.js.map