1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[255],{26055:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/shop/[category]/[subcategory]",function(){return n(74489)}])},74489:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var o=n(85893),i=n(11163),r=n(89146),s=n(42820),c=n(92997),u=n(87548),a=n(66261),l=n(55765),d=n(98121),p=n(89183),f=n(67294),g=n(36492),h=n(95591),x=n(60512),E=n(3638),N=function(){return(0,o.jsx)("div",{style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",pointerEvents:"none",zIndex:1e3},children:(0,o.jsx)(E.Z,{snowflakeCount:200,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}})})};function C(){var e=(0,f.useState)(Boolean(!0)),t=e[0],n=e[1],s=(0,f.useState)(Boolean(!0)),E=s[0],C=s[1],m=(0,i.useRouter)().query,v=m.category,P=m.subcategory,b=m.valeurAttribute1,w=void 0===b?"":b,O=m.marque,L=void 0===O?"":O,j=m.sortBy,T=m.minPrice,y=m.maxPrice,A=decodeURIComponent(v),_=decodeURIComponent(P),R=[{href:"/",title:"Accueil"},{href:"/shop/Nos-Categories/".concat(A),title:A.toLocaleLowerCase()},{href:"/shop/".concat(A,"/").concat(_),title:_.toLocaleLowerCase()}],M=(0,f.useMemo)((function(){return w?w.split(","):[]}),[w]),k=(0,f.useMemo)((function(){return L?L.split(","):[]}),[L]),B={titre:"PC PORTABLE \xc9CONOMIQUE - \u0627\u0644\u0641\u0626\u0629 \u0623\u0642\u062a\u0635\u0627\u062f\u064a"===A?"PC PORTABLE":"PC \xc9conomique - \u0627\u0644\u0641\u0626\u0629 \u0623\u0642\u062a\u0635\u0627\u062f\u064a"===A?"ORDINATEURS":A},I={titre:_.includes("PC POORTABLE MOINS")||_.includes("PC PORTABLE ENTRE")?"PC PORTABLE \xc9CONOMIQUE - \u0627\u0644\u0641\u0626\u0629 \u0623\u0642\u062a\u0635\u0627\u062f\u064a":_.includes("PC MOINS DE")?"PC \xc9conomique - \u0627\u0644\u0641\u0626\u0629 \u0623\u0642\u062a\u0635\u0627\u062f\u064a":_},S=(0,f.useMemo)((function(){return{recordByPage:12,pageNumber:"1",categorie:B,filscateg:I,notreSelection:E,page:1,price:{$gte:_.includes("1000 ET 2000TND")?1e3:T||0,$lte:_.includes("1000 ET 2000TND")?2e3:_.includes("MOINS DE 1000TND")?1e3:y||2e4},query:null,brand:k,valeurAttribute1:M,sortBy:j}}),[A,_,T,y,j,M,k,E]),Z=(0,g.a)(["getFiltredProducts",S],(function(){return(0,h.xG)(S)})),D=Z.data,q=Z.isLoading,U="HELLO WINTER"===_,G=null!==D&&void 0!==D?D:{},F=G.products,Q=G.brands,W=G.attributes;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.Z,{title:"".concat("undefined"!==_?"".concat(A," ").concat(_):"Cat\xe9gorie"," | MEGA"),description:"".concat("undefined"!==_?"".concat(A," ").concat(_):"Cat\xe9gorie"," | MEGA"),path:"/shop/".concat(A,"/").concat(_)}),U&&(0,o.jsx)(N,{}),(0,o.jsx)(d.Z,{}),(0,o.jsxs)(r.Z,{children:[(0,o.jsx)("div",{className:"pt-6",children:(0,o.jsx)(x.Z,{links:R})}),(0,o.jsxs)(a.W_,{name:"grid",className:"flex pt-7 lg:pt-11 pb-16 lg:pb-20 products-category",children:[(0,o.jsx)("div",{className:"flex-shrink-0 pe-8 xl:pe-16 hidden lg:block w-80 xl:w-96 sticky top-16 h-full",children:(0,o.jsx)(c.M,{isLoading:q,brands:Q,attributes:W})}),(0,o.jsxs)("div",{className:"w-full lg:-ms-2 xl:-ms-8 lg:-mt-1",children:[(0,o.jsx)(l.Z,{viewAs:t,onNavClick:n,isLoading:q,notreSelection:E,toggleNotreSelection:function(){return C((function(e){return!e}))},brands:Q,attributes:W}),(0,o.jsx)(u.e,{products:F,viewAs:t,isLoading:q},"prouctGrid")]})]})]})]})}C.Layout=s.Z;var m=C}},function(e){e.O(0,[736,592,888,179],(function(){return t=26055,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.