1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6803],{58087:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/brands",function(){return r(55268)}])},12937:function(e,t,r){"use strict";var a=r(85893),n=r(94184),i=r.n(n),s=r(41664),c=r.n(s);t.Z=function(e){let{items:t=[1],className:r}=e;return(0,a.jsx)("div",{className:i()("hidden w-full py-4 md:container md:block",r),children:(0,a.jsx)("ol",{className:"list-reset flex",children:t.map((e,t)=>(0,a.jsx)("li",{className:i()("dark__mode__breadcrumb breadcrumb-item truncate pr-2 font-normal text-gray-600",{"font-medium !text-black":e.active}),children:e.active?e.title:(0,a.jsx)(c(),{href:e.url,legacyBehavior:!0,children:(0,a.jsxs)("a",{children:[" ",e.title]})})},"bi_".concat(t)))})})}},55268:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return f}});var a=r(85893),n=r(67294),i=r(9008),s=r.n(i),c=r(179),l=r(31489),d=r(83481),o=r(78995),u=r(12937),m=r(41664),g=r.n(m);function h(e){let{brand:t}=e,[r,i]=(0,n.useState)("notdisplayed"),s=e=>{e.preventDefault(),i("displayed")},c=e=>{e.preventDefault(),i("notdisplayed")};return(0,a.jsx)(g(),{href:"/brands/".concat(t.id),legacyBehavior:!0,children:(0,a.jsx)("a",{onMouseEnter:e=>s(e),onMouseLeave:e=>c(e),children:(0,a.jsxs)("div",{className:"flex items-center h-20 gap-2 px-1 mx-1 my-3 bg-white rounded shadow-lg cursor-pointer justify-items-start",children:[(0,a.jsx)("img",{className:"object-contain w-16 h-16 ml-2 bg-gray-100 rounded",src:t.image,alt:""}),(0,a.jsx)("h3",{className:"text-sm font-semibold truncate",children:t.name}),(0,a.jsx)("button",{className:"".concat(r," h-6 px-2 py-1 text-xs font-light leading-3 text-purple-600 transition duration-500 border border-purple-400 rounded-lg hover:bg-purple-400 hover:text-white"),children:"үзÑÑ
"})]},t.id)})})}let x=(0,d.Z)(function(e){let{currentShop:t,activeCategory:r,brandList:i=[]}=e;return(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)(s(),{children:(0,a.jsxs)("title",{children:[r.name||"ÐÑÑндүүд"," - ",t.name]})}),(0,a.jsx)("div",{className:"bg-gray-100",children:(0,a.jsx)(u.Z,{title:(r||{}).name||"ÐÑÑндүүд",items:[{title:"ÐÒ¯Ò¯Ñ",url:"/"},{title:"ÐÑÑндүүд",url:"/brands",active:!r},...r.name?[{title:r.name,active:!0}]:[]]})}),(0,a.jsxs)("div",{className:"h-screen md:py-4 md:container",children:[(0,a.jsx)("div",{className:"flex justify-center text-2xl font-semibold md:pb-5",children:"ÐÑÑндүүд"}),(0,a.jsx)("div",{className:" grid flex-wrap grid-cols-2 px-1 bg-gray-100 rounded sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 xl:grid-cols-5",children:i.map((e,t)=>(0,a.jsx)(h,{brand:e},"brand_".concat(t)))})]})]})}),p=(0,o.Z)(x);p.getInitialProps=async e=>{let{reduxStore:t,query:r}=e,a=(0,l.getShopFromState)(t.getState()),n=(0,l.getCategoriesFromState)(t.getState()),i="/storefront/brands/by-shop/".concat(a.id);try{let{data:e}=await (0,c.U)(i,!1,!0),t=(0,l.flattenCategories)(n),s=t.find(e=>e.id===parseInt(r.category_id),10);return{categories:n,brandList:e,currentShop:a,activeCategory:s||{},categoryId:(s||{}).id,page:parseInt(r.page||1)}}catch(e){console.error(e)}return{currentShop:a,page:1,brandList:[],activeCategory:{},categoryId:r.category_id}};var f=p}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=58087)}),_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.