import{c as e,d as t}from"./souav-I_ihqEhP.js";import{C as i,P as n,H as r,U as p,S as o,R as s,V as c,u as l,N as a}from"./chunk-BRI0aX6c.js";import"./chunk-D1JGNTfG.js";import"./chunk-9PZSJnHb.js";import"./chunk-Bf-nSo-6.js";import"./chunk-DwkOxDMO.js";import"./chunk-CMQyd8eO.js";import"./chunk-a7obrEbD.js";import"./chunk-DQhVL27x.js";import"./chunk-cn7T4ICr.js";import"./chunk-Bh3yC0yB.js";import"./chunk-DjdYu-xF.js";import"./chunk-BHPWSuhB.js";/* empty css              */const u={class:"flex w-full flex-col"},d=["onClick"],x={class:"grid grow grid-cols-5 gap-x-[1px] gap-y-[2px]"},m=["onClick"],h=i({__name:"HomeCategoryView",setup(i){const h=["bg-[#000000]","bg-[#FF5C24]","bg-[#393A3C]","bg-[#393A3C]","bg-[#FF5C24]","bg-[#000000]","bg-[#F3A698]","bg-[#FF5C24]"];function f(e){var t,i;return 10===e.type_id?null==(t=e.children)?void 0:t.slice(0,15):null==(i=e.children)?void 0:i.slice(0,10)}function k(e,i){t(void 0===i||0===e?"/filter/".concat(i):"/filter/".concat(e,"/").concat(i),{pageNo:1})}return(t,i)=>(a(),n("div",u,[(a(!0),n(r,null,p(l(e)().homeTypes,(e,t)=>(a(),n("div",{class:"flex w-full flex-row items-center justify-center gap-1 px-1 pt-2",key:t},[o("a",{class:c(["flex min-w-[40px] cursor-pointer items-center justify-center truncate rounded-[5px] border-[1px] border-white px-[1px] py-[2px] text-center text-[14px] font-medium whitespace-pre-wrap text-white",h[t%h.length]]),onClick:t=>k(e.type_pid,e.type_id)},s(e.type_name.replace(" ","\n")),11,d),o("div",x,[(a(!0),n(r,null,p(f(e),(e,i)=>(a(),n("div",{class:"col-span-1 min-w-0 overflow-hidden",key:i},[o("a",{class:c(["block w-full max-w-full justify-center truncate overflow-hidden rounded-[3px] border-[1px] border-[#1E1D1D] px-[1px] py-[2px] text-center text-[12px] font-medium text-ellipsis whitespace-nowrap text-white",h[t%h.length]]),onClick:t=>k(e.type_pid,e.type_id)},s(e.type_name),11,m)]))),128))])]))),128))]))}});export{h as default};
