(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3986],{67127:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/feed",function(){return n(86254)}])},30339:function(e,t,n){"use strict";n.d(t,{LV:function(){return useFollowedShops},NT:function(){return useTopShops},Uu:function(){return useFollowedShopsProducts}});var l=n(88767),r=n(77649),s=n(28319),o=n(11163);function useTopShops(e,t){var n;let{locale:u}=(0,o.useRouter)(),i={...e,language:u},{data:a,isLoading:c,error:d,fetchNextPage:p,hasNextPage:x,isFetching:f,isFetchingNextPage:g}=(0,l.useInfiniteQuery)([r.P.TOP_SHOPS,i],e=>{let{queryKey:t,pageParam:n}=e;return s.Z.shops.top(Object.assign({},t[1],n))},{...t,getNextPageParam:e=>{let{current_page:t,last_page:n}=e;return n>t&&{page:t+1}}});return{shops:null!==(n=null==a?void 0:a.pages.flatMap(e=>e.data))&&void 0!==n?n:[],isLoading:c,error:d,hasNextPage:x,isFetching:f,isLoadingMore:g,loadMore:function(){p()}}}function useFollowedShops(e,t){var n;let{data:o,isLoading:u,error:i,fetchNextPage:a,hasNextPage:c,isFetching:d,isFetchingNextPage:p}=(0,l.useInfiniteQuery)([r.P.FOLLOWED_SHOPS,e],e=>{let{queryKey:t,pageParam:n}=e;return s.Z.follow.shops(Object.assign({},t[1],n))},{...t,getNextPageParam:e=>{let{current_page:t,last_page:n}=e;return n>t&&{page:t+1}}});return{shops:null!==(n=null==o?void 0:o.pages.flatMap(e=>e.data))&&void 0!==n?n:[],paginatorInfo:Array.isArray(null==o?void 0:o.pages)?null==o?void 0:o.pages[o.pages.length-1]:null,isLoading:u,error:i,hasNextPage:c,isFetching:d,isLoadingMore:p,loadMore:function(){a()}}}function useFollowedShopsProducts(e){let{locale:t}=(0,o.useRouter)(),n={...e,language:t},{data:u,isLoading:i,error:a}=(0,l.useQuery)([r.P.FOLLOWED_SHOPS_PRODUCTS,n],e=>{let{queryKey:t}=e;return s.Z.follow.followedShopProducts(Object.assign({},t[1]))});return{products:null!=u?u:[],isLoading:i,error:a}}},51390:function(e,t,n){"use strict";n.d(t,{Z:function(){return Layout}});var l=n(85893),r=n(67294),s=n(5152),o=n.n(s),u=n(93967),i=n.n(u),a=n(12023),c=n(20349),d=n(19519),p=n(20503),x=n(47180);let f=o()(()=>n.e(4510).then(n.bind(n,82656)),{loadableGenerated:{webpack:()=>[82656]},ssr:!1});function Layout(e){let{children:t}=e,n=(0,p.G)(),s=(0,x.t)(),[o,u]=(0,r.useState)(!1);return(0,l.jsxs)(a.E.div,{initial:"exit",animate:"enter",exit:"exit",className:"flex min-h-screen w-full flex-col bg-light-300 dark:bg-dark-100",children:[(0,l.jsx)(c.Z,{isCollapse:o,showHamburger:!0,onClickHamburger:function(){u(e=>!e)}}),(0,l.jsxs)("div",{className:"flex flex-1",children:[(0,l.jsx)(d.Sidebar,{isCollapse:o}),(0,l.jsx)("main",{className:i()("flex w-full flex-col",o?"ltr:sm:pl-60 rtl:sm:pr-60 ltr:xl:pl-[75px] rtl:xl:pr-[75px]":"ltr:sm:pl-[75px] rtl:sm:pr-[75px] ltr:xl:pl-60 rtl:xl:pr-60"),children:t})]}),s&&"xs"===n&&(0,l.jsx)(f,{})]})}},7172:function(e,t,n){"use strict";var l=n(85893),r=n(2962);t.Z=e=>{let{title:t,description:n,url:s,...o}=e;return(0,l.jsx)(r.PB,{title:t,description:n,openGraph:{url:"".concat("https://demo2.cryptobullrise.com","/").concat(s),title:t,description:n},...o})}},86254:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return c}});var l=n(85893),r=n(51390),s=n(30339),o=n(7062),u=n(7172),i=n(97514),a=n(5233);function Products(){let{products:e,isLoading:t}=(0,s.Uu)({limit:15}),{t:n}=(0,a.$G)("common");return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"flex flex-col-reverse flex-wrap items-center justify-between px-4 pt-5 pb-4 xs:flex-row xs:space-x-4 md:px-6 md:pt-6 lg:px-7 3xl:px-8",children:(0,l.jsxs)("div",{className:"pt-3 xs:pt-0",children:[n("text-total")," ",e.length," ",n("text-product-found")]})}),(0,l.jsx)(o.Z,{products:e,hasNextPage:!1,isLoadingMore:!1,isLoading:t})]})}let Feed=()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.Z,{title:"Top Products",description:"Fastest digital download template built with React, NextJS, TypeScript, React-Query and Tailwind CSS.",url:i.Z.feed}),(0,l.jsx)(Products,{})]});Feed.authorization=!0,Feed.getLayout=function(e){return(0,l.jsx)(r.Z,{children:e})};var c=!0;t.default=Feed}},function(e){e.O(0,[155,8544,450,9519,9774,2888,179],function(){return e(e.s=67127)}),_N_E=e.O()}]);