1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2967],{5454:function(e,i,s){Promise.resolve().then(s.bind(s,8708))},8708:function(e,i,s){"use strict";s.d(i,{default:function(){return D}});var l=s(7437),t=s(2265),a=s(9376),n=[{id:1,img:"/assets/img/product/18.png",title:"Nescafe Coffee Jar",new_price:64,old_price:89,ratting:4.88,review_text:39},{id:2,img:"/assets/img/product/7.png",title:"Modern Office Chair",new_price:99,old_price:159,ratting:4.82,review_text:125},{id:3,img:"/assets/img/product/12.png",title:"Beach Sunglasses",new_price:24,old_price:32,ratting:4.89,review_text:63},{id:3,img:"/assets/img/product/17.png",title:"Meow Mix Cat Food",new_price:11.49,old_price:13,ratting:4.78,review_text:1}],r=s(8666),o=s(695),d=s(636),c=s(490),u=s(9887),v=(s(7648),s(8575)),m=s(588),p=s(8906),h=s(4428),x=s(2208),g=s(4286),f=s(4794),j=s(3947),N=s(1299),y=s(3420),b=s(2926),w=s(6137),S=s(1473),k=s(6255),C=(s(9309),s(4913)),_=s(9764);let Z={ANTIVIRUS:p.Z,BACKUP:h.Z,DLP:x.Z,EDR:g.Z,FIREWALL:g.Z,IDENTITY:f.Z,LAPTOPS:f.Z,SANDBOX:j.Z,"SD WAN":N.Z,SECURITY:p.Z,SIEM:y.Z,SWITCH:y.Z,WIRELESS:b.Z,XDR:w.Z,ALL:S.Z},P=e=>{let{category:i,size:s=24,className:t="category-icon text-primary me-2"}=e,a=Z[i.toUpperCase()]||f.Z;return(0,l.jsx)(a,{size:s,className:t})};var I=e=>{let{source:i}=e,s=(0,a.useSearchParams)().get("title"),{addToCart:p}=(0,d.Z)(),{startExpressCheckout:h}=(0,c.Z)(),x=(0,v.v9)(e=>{var i;return null===(i=e.auth)||void 0===i?void 0:i.tokens}),{toggle:g,isInWishlist:f}=(0,k.Z)(),[j,N]=(0,t.useState)(null);(0,t.useEffect)(()=>{(()=>{try{N(!!(null==x?void 0:x.accessToken))}catch(e){N(!1)}})()},[x]);let[y,b]=(0,t.useState)([]),[w,S]=(0,t.useState)([]),[Z,I]=(0,t.useState)([]),[E,A]=(0,t.useState)(null),[D,L]=(0,t.useState)(!1),T=e=>{var i,s,l,t,a,n,r,o,d,c,u,v;let m=(null===(l=e.media)||void 0===l?void 0:null===(s=l.images)||void 0===s?void 0:null===(i=s.find(e=>e.main))||void 0===i?void 0:i.url)||(null===(n=e.media)||void 0===n?void 0:null===(a=n.images)||void 0===a?void 0:null===(t=a[0])||void 0===t?void 0:t.url)||"/assets/img/product/1.png",h=(null===(d=e.pim)||void 0===d?void 0:null===(o=d.price)||void 0===o?void 0:null===(r=o.discount)||void 0===r?void 0:r.finalPrice)||(null===(v=e.pim)||void 0===v?void 0:null===(u=v.price)||void 0===u?void 0:null===(c=u.prices)||void 0===c?void 0:c.publishedPrice)||0;p({id:e.productId,img:m,title:e.name,price:h})},R=e=>{var i,s,l,t,a,n,r,o,d,c,u,v,m,p,h;let x=(null===(l=e.media)||void 0===l?void 0:null===(s=l.images)||void 0===s?void 0:null===(i=s.find(e=>e.main))||void 0===i?void 0:i.url)||(null===(n=e.media)||void 0===n?void 0:null===(a=n.images)||void 0===a?void 0:null===(t=a[0])||void 0===t?void 0:t.url)||"/assets/img/product/1.png",g=(null===(d=e.pim)||void 0===d?void 0:null===(o=d.price)||void 0===o?void 0:null===(r=o.discount)||void 0===r?void 0:r.finalPrice)||(null===(v=e.pim)||void 0===v?void 0:null===(u=v.price)||void 0===u?void 0:null===(c=u.prices)||void 0===c?void 0:c.publishedPrice)||0,f=(null===(h=e.pim)||void 0===h?void 0:null===(p=h.price)||void 0===p?void 0:null===(m=p.prices)||void 0===m?void 0:m.publishedPrice)||g;return{id:e.productId,title:e.name,img:x,new_price:g,old_price:f,badge_color:e.stock>0?"warning":"danger",badge_text:e.stock>0?"En Stock":"Agotado",stock:e.stock,productPath:"/single-product/".concat(e.productId)}};(0,t.useEffect)(()=>{(async()=>{try{let e;
1if(L(!0),E)e=await (0,m.aN)({departamentId:"1",technologies:[E],page:1,perPage:20});else if("best"===i)e=await (0,m.l6)(100);else{b(n);return}if(null==e?void 0:e.success){let i="products"in e.data?e.data.products:e.data;if(Array.isArray(i)){S(i);let e=i.map(e=>{var i,s,l,t,a,n,r,o,d,c,u,v,m,p,h;let x=(null===(l=e.media)||void 0===l?void 0:null===(s=l.images)||void 0===s?void 0:null===(i=s.find(e=>e.main))||void 0===i?void 0:i.url)||(null===(n=e.media)||void 0===n?void 0:null===(a=n.images)||void 0===a?void 0:null===(t=a[0])||void 0===t?void 0:t.url)||"/assets/img/product/1.png",g=(null===(d=e.pim)||void 0===d?void 0:null===(o=d.price)||void 0===o?void 0:null===(r=o.discount)||void 0===r?void 0:r.finalPrice)||(null===(v=e.pim)||void 0===v?void 0:null===(u=v.price)||void 0===u?void 0:null===(c=u.prices)||void 0===c?void 0:c.publishedPrice)||0,f=(null===(h=e.pim)||void 0===h?void 0:null===(p=h.price)||void 0===p?void 0:null===(m=p.prices)||void 0===m?void 0:m.publishedPrice)||g;return{id:e.productId,img:x,title:e.name,new_price:g,old_price:f,ratting:4.5,review_text:10}});b(e)}}}catch(e){console.error("ShopList load error",e)}finally{L(!1)}})()},[i,E]),(0,t.useEffect)(()=>{(async()=>{try{let e=await (0,m.a$)();if(e&&e.technologies){let i=e.technologies.map(e=>({title:e}));I(i)}}catch(e){console.error("Error loading categories:",e),I([])}})()},[]);let O=e=>{A(e)};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.default,{links:"home",title:s?decodeURIComponent(s):E||("best"===i?"Productos m\xe1s vendidos":"Todos los productos")}),(0,l.jsx)("div",{className:"page-content-wrapper",children:(0,l.jsx)("div",{className:"py-3",children:(0,l.jsxs)("div",{className:"container",children:[(0,l.jsxs)("div",{className:"row g-1 align-items-center rtl-flex-d-row-r",children:[(0,l.jsx)("div",{className:"col-8",style:{marginTop:"-15px"},children:(0,l.jsxs)(_.tq,{loop:!0,slidesPerView:2.5,spaceBetween:8,className:"product-catagories owl-carousel catagory-slides category-swiper-container",children:[(0,l.jsx)(_.o5,{children:(0,l.jsxs)("a",{className:"category-filter-slide ".concat(null===E?"active":""),href:"#",onClick:e=>{e.preventDefault(),O(null)},children:[(0,l.jsx)("div",{className:"category-filter-icon",children:(0,l.jsx)(P,{category:"ALL",size:22})}),(0,l.jsx)("span",{className:"category-filter-text",children:"Todos"})]})},"all"),Z.map((e,i)=>(0,l.jsx)(_.o5,{children:(0,l.jsxs)("a",{className:"category-filter-slide ".concat(E===e.title?"active":""),href:"#",onClick:i=>{i.preventDefault(),O(e.title)},children:[(0,l.jsx)("div",{className:"category-filter-icon",children:(0,l.jsx)(P,{category:e.title,size:22})}),(0,l.jsx)("span",{className:"category-filter-text",children:e.title})]})},i))]})}),(0,l.jsx)("div",{className:"col-4",children:(0,l.jsx)("div",{className:"select-product-catagory",children:(0,l.jsx)(u.Z,{className:"filter-select right small border-0 d-flex align-items-center",options:[{value:"00",text:"Short by"},{value:"01",text:"Newest"},{value:"02",text:"Popular"},{value:"04",text:"Ratings"}],defaultCurrent:0,onChange:e=>{},placeholder:"Select an option",name:"myNiceSelect"})})})]}),(0,l.jsx)("div",{className:"mb-3"}),(0,l.jsx)("div",{className:"row g-2",children:D?(0,l.jsx)("div",{className:"col-12",children:(0,l.jsxs)("div",{className:"d-flex justify-content-center align-items-center py-5",children:[(0,l.jsx)("div",{className:"spinner-border text-primary",role:"status",style:{width:"3rem",height:"3rem"},children:(0,l.jsx)("span",{className:"visually-hidden",children:"Cargando productos..."})}),(0,l.jsxs)("div",{className:"ms-3",children:[(0,l.jsx)("h6",{className:"mb-0",children:"Cargando productos..."}),(0,l.jsx)("small",{className:"text-muted",children:"Por favor espera un momento"})]})]})}):w.map(e=>{let i=(0,C.QN)(e,{isLoggedIn:!0===j,isWishlisted:f(e.productId),onAdd:i=>T(e),onConfirm:i=>h((0,C._g)(e)),onToggleWishlist:i=>g(R(e))});return(0,l.jsx)("div",{className:"col-12",children:(0,l.jsx)(C.p8,{...i})},e.productId)})})]})})}),(0,l.jsx)("div",{className:"internet-connection-status",id:"internetStatus"}),(0,l.jsx)(r.Z,{})]})};function E(){let e=(0,a.useSearchParams)().get("source")||void 0;return(0,l.jsx)(I,{source:e})}function A(){return(0,l.jsx)("div",{className:"d-flex justify-content-center align-items-center",style:{minHeight:"60vh"},children:(0,l.jsx)("div",{className:"spinner-border text-primary",role:"status",children:(0,l.jsx)("span",{className:"visually-hidden",children:"Cargando cat\xe1logo..."})})})}function D(){return(0,l.jsx)(t.Suspense,{fallback:(0,l.jsx)(A,{}),children:(0,l.jsx)(E,{})})}},8666:function(e,i,s){"use strict";var l=s(7437),t=s(7648);s(2265),i.Z=()=>(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"footer-nav-area",id:"footerNav",children:(0,l.jsx)("div",{className:"suha-footer-nav",children:(0,l.jsxs)("ul",{className:"h-100 d-flex align-items-center justify-content-between ps-0 d-flex rtl-flex-d-row-r",children:[(0,l.jsx)("li",{children:(0,l.jsxs)(t.default,{href:"/home",children:[(0,l.jsx)("i",{className:"ti ti-home"}),"Inicio"]})}),(0,l.jsx)("li",{children:(0,l.jsxs)(t.default,{href:"/message",children:[(0,l.jsx)("i",{className:"ti ti-message"}),"Chat"]})}),(0,l.jsx)("li",{children:(0,l.jsxs)(t.default,{href:"/wishlist-grid",children:[(0,l.jsx)("i",{className:"ti ti-heart"}),"Favoritos"]})}),(0,l.jsx)("li",{children:(0,l.jsxs)(t.default,{href:"/cart",children:[(0,l.jsx)("i",{className:"ti ti-basket"}),"Carrito"]})}),(0,l.jsx)("li",{children:(0,l.jsxs)(t.default,{href:"/settings",children:[(0,l.jsx)("i",{className:"ti ti-settings"}),"Ajustes"]})})]})})})})},695:function(e,i,s){"use strict";var l=s(7437),t=s(9376),a=s(2265),n=s(6783),r=s(9309);i.default=e=>{let{links:i,title:s,backTo:o}=e,d=(0,t.useRouter)(),[c,u]=(0,a.useState)(!1),v=()=>u(!c);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"header-area",id:"headerArea",children:(0,l.jsxs)("div",{className:"container h-100 d-flex align-items-center justify-content-between rtl-flex-d-row-r",children:[(0,l.jsx)("div",{className:"back-button me-2",children:(0,l.jsx)("button",{onClick:()=>{o?d.push(o):window.history.length>1?d.back():d.push("/".concat(i))},style:{background:"none",border:"none",padding:0,cursor:"pointer",color:"inherit",font:"inherit"},"aria-label":"Volver atr\xe1s",children:(0,l.jsx)("i",{className:"ti ti-arrow-left"})})}),(0,l.jsxs)("div",{className:"page-heading",children:[(0,l.jsx)("h6",{className:"mb-0 d-md-none",title:s,children:(0,r.Yj)(s,"mobile-title")}),(0,l.jsx)("h6",{className:"mb-0 d-none d-md-block",title:s,children:(0,r.Yj)(s,"title")})]}),(0,l.jsx)("div",{className:"suha-navbar-toggler ms-2","data-bs-toggle":"offcanvas","data-bs-target":"#suhaOffcanvas","aria-controls":"suhaOffcanvas",children:(0,l.jsxs)("div",{onClick:()=>v(),children:[(0,l.jsx)("span",{}),(0,l.jsx)("span",{}),(0,l.jsx)("span",{})]})})]})}),(0,l.jsx)(n.Z,{handleShow:v,show:c})]})}},9887:function(e,i,s){"use strict";var l=s(7437),t=s(2265),a=s(8095);i.Z=e=>{let{options:i,defaultCurrent:s,placeholder:n,className:r,onChange:o,name:d}=e,[c,u]=(0,t.useState)(!1),[v,m]=(0,t.useState)(i[s]),p=(0,t.useCallback)(()=>{u(!1)},[]),h=(0,t.useRef)(null);(0,a.Z)(h,p);let x=e=>{m(e),o(e,d),p()};return(0,l.jsxs)("div",{className:"nice-select form-select-lg mb-3 ".concat(r||""," ").concat(c?"open":""),role:"button",tabIndex:0,onClick:()=>u(e=>!e),onKeyDown:e=>e,ref:h,children:[(0,l.jsx)("span",{className:"current",children:(null==v?void 0:v.text)||n}),(0,l.jsx)("ul",{className:"list",role:"menubar",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:null==i?void 0:i.map((e,i)=>(0,l.jsx)("li",{"data-value":e.value,className:"option ".concat(e.value===(null==v?void 0:v.value)?"selected focus":""),style:{fontSize:"14px"},role:"menuitem",onClick:()=>x(e),onKeyDown:e=>e,children:e.text},i))})]})}}},function(e){e.O(0,[4073,2972,8304,2519,4461,9764,4352,6951,6783,553,3284,9722,3364,588,2284,2971,6997,1744],function(){return e(e.s=5454)}),_N_E=e.O()}]);
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.