import{r as n,j as s,L as m,o as p}from"./vendor-react-C630P38J.js";import{p as d,h as u,L as h,c as N,f as x,d as v,q as g}from"./vendor-fxts-IS4CCBC4.js";import{S as P,b as f}from"./vendor-swiper-CwUwDtZu.js";import{u as _,t as j,r as I,h as S}from"./feature-order-C2we0F5o.js";import"./vendor-utils-Cb1MAKRV.js";import{P as l}from"./index-BNckj-u7.js";import{u as E,a as C}from"./useProductSectionProductList-DB50oUuG.js";import"./vendor-query-BjC2S-sR.js";import"./vendor-overlay-B61Jbn6n.js";import"./vendor-i18n-D_F5k183.js";import"./vendor-rhf-CXRF5ML7.js";import"./vendor-zod-BNDLCzeL.js";import"./vendor-runtime-BrGgGswE.js";import"./vendor-hooks-D-WB61cZ.js";import"./vendor-cookie-BFUm5jHE.js";import"./vendor-state-BxLZOG0B.js";import"./vendor-form-ui-C6F7344s.js";import"./vendor-date-XKm2J5pk.js";import"./index-nim7WYfB.js";import"./vendor-meta-D6H5T8-B.js";var R="_10oeghl0",T="_10oeghl1",b="_10oeghl2",A="_10oeghl3",D="_10oeghl4",w="_10oeghl5",O="_10oeghl6",L="_10oeghl7",V="_10oeghl8";const y="BACKGROUND_",rs=()=>{const{isMobile:i}=_(),{data:a}=E(),e=n.useMemo(()=>d(a,v("sections"),x(o=>o.sectionId.startsWith(y)),N(o=>o.sectionNo),h,u),[a]),{data:r}=C({sectionId:(e==null?void 0:e.sectionId)??"",searchParams:{by:"ADMIN_SETTING",soldout:!0,saleStatus:"RESERVATION_AND_ONSALE",pageNumber:1,pageSize:4,hasTotalCount:!0,hasOptionValues:!1,includeStopProduct:!1,direction:"DESC"},options:{enabled:!!(e!=null&&e.sectionId)}}),t=n.useMemo(()=>{var o;return((o=r==null?void 0:r.products)==null?void 0:o.map(c=>j(c)))??[]},[r==null?void 0:r.products]);return!e||g(t)?null:s.jsx("section",{className:R,children:s.jsxs("div",{className:T,children:[s.jsxs("div",{className:b,children:[s.jsx("img",{src:e.imageUrl,alt:e.sectionName}),s.jsxs(m,{to:p(S.SECTION.DETAIL,{sectionNo:String(e.sectionNo)}),className:A,children:[s.jsxs("h2",{className:D,children:[e.sectionName,s.jsx(I,{size:28})]}),s.jsx("p",{className:w,children:e.sectionExplain})]})]}),i?s.jsx(P,{className:L,slidesPerView:2.3,spaceBetween:5,children:t.map(o=>s.jsx(f,{className:V,children:s.jsx(l,{...o,isMobile:i,isVisiblePromotionText:!0,reviewRating:void 0})},o.productNo))}):s.jsx("div",{className:O,children:t.map(o=>s.jsx(l,{...o,isMobile:i,isVisiblePromotionText:!0,reviewRating:void 0},o.productNo))})]})})};export{rs as default};