PageSourceSearch

https://display.goodwearmall.com/_next/static/chunks/1676-a50233e9b584103b.js

js goodwearmall.com collected 2026-10-07 04:10:27 UTC 24,148 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1676],{6808:(e,t,r)=>{r.d(t,{A:()=>m});var n=r(95155),a=r(12115),s=r(20063),i=r(20129),o=r(90933),c=r(13266),l=r(81495),u=r(95177),d=r(83296),h=r(35062);function m(e){let{searchWord:t}=e,r=(0,s.useRouter)(),m=(0,s.useSearchParams)(),p=(0,s.usePathname)(),{showAlert:v}=(0,o.PT)(),g=(0,h.useSiteType)(),[y,f]=(0,a.useState)(t||""),[b,x]=(0,a.useState)(!1),w=(0,i.VL)(p),N=(0,c.o1)(p),{brandCd:j}=(0,l.NH)(p,m),S=j?(0,u.V1)(j):null;(0,a.useEffect)(()=>{f(t||"")},[t]);let _=(0,a.useCallback)(e=>{if(!e.trim())return void v({text:"검색어를 입력하세요."});let t=w?"/selectshop/search":N?"/polhamshop/search":"/search";if(b){let n=new URLSearchParams(m.toString());n.set("refine","true"),n.set("refineKeyword",e),n.delete("pageNo"),S&&j&&(n.get("brand")||(n.set("brand",S),n.set("filtered","true")),n.set("brandshop","Y"),n.set("brandCd",j)),(0,d.AG)(r,"".concat(t,"?").concat(n.toString()),g)}else{let n=new URLSearchParams;n.set("keyword",e),S&&j&&(n.set("brand",S),n.set("filtered","true"),n.set("brandshop","Y"),n.set("brandCd",j)),(0,d.AG)(r,"".concat(t,"?").concat(n.toString()),g)}},[b,m,r,w,N,S,j,v]),k=(0,a.useCallback)(()=>{_(y)},[y,_]);return(0,n.jsx)("div",{className:"row gx-8 align-items-center mb-24",children:(0,n.jsx)("div",{className:"col-8-2 offset-8-3",children:(0,n.jsxs)("div",{className:"text-input-box position-r",children:[(0,n.jsx)("input",{type:"text",className:"text-input st-lg st-attention",id:"headerSearchInput",value:y,onChange:e=>{f(e.target.value)},onKeyPress:e=>{"Enter"===e.key&&k()},autoComplete:"off"}),(0,n.jsxs)("div",{className:"text-input-action",children:[(0,n.jsx)("button",{type:"button",className:"button-icon st-sm button-clear ".concat(y?"active":""),onClick:()=>{f("")},children:(0,n.jsx)("i",{className:"icon icon-x-clear st-sm"})}),(0,n.jsx)("button",{type:"button",className:"button-icon button-search",onClick:k,children:(0,n.jsx)("i",{className:"icon icon-header-search st-black"})})]})]})})})}},16191:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(95155),a=r(52619),s=r.n(a),i=r(35062),o=r(25016);function c(e){let{brands:t,onBeforeNavigate:r}=e;return(0,i.useIsGoodwearmall)()&&t&&0!==t.length?(0,n.jsx)("div",{className:"container mb-20",children:(0,n.jsx)("div",{className:"row gy-8",children:t.map((e,t)=>{let{href:a,target:i}=(0,o.p_)(e),c=!i&&a.startsWith("/");return(0,n.jsx)("div",{className:"col-12",children:(0,n.jsxs)(s(),{href:a,target:i,className:"hole-item-horizon st-reduced",onClick:c?r:void 0,children:[(0,n.jsx)("div",{className:"hole-thumb hole-thumb-soft image-placeholder border st-dimmed w-40",children:(0,n.jsx)("img",{src:function(e,t){var r;let n=(e||"").trim();if(!n)return"/images/no-image.png";let a=(null==(r=n.split("@")[0])?void 0:r.trim())||"";return a?a.startsWith("http://")||a.startsWith("https://")?a:"".concat(t).concat(a):"/images/no-image.png"}(e.brandImgFileUrl,"https://img.goodwearmall.com"),alt:e.brandImgAltrtvCont||e.brandNmKr,className:"hole-img img-fluid",onError:e=>{let t=e.target;t.src="/images/no-image.png",t.onerror=null}})}),(0,n.jsxs)("div",{className:"hole-body",children:[(0,n.jsx)("strong",{className:"hole-title",children:(0,n.jsx)("span",{className:"text-inner",children:e.brandNmKr})}),(0,n.jsx)("p",{className:"hole-text mt-0",children:(0,n.jsx)("span",{className:"text-inner",children:e.brandNmEn})})]}),(0,n.jsxs)("span",{className:"button-cta st-reduced flex-shrink-0 me-n10",children:[(0,n.jsx)("span",{className:"button-text text-secondary",children:"바로가기"}),(0,n.jsx)("i",{className:"icon icon-chevron-next-button-cta-reduced st-xs st-gray999"})]})]})},"".concat(e.dspCtgryNo||t,"-").concat(t))})})}):null}},20796:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(95155),a=r(31778),s=r(20063);function i(e){var t;let{activeTab:r,productCount:i=0,specialCount:o=0,eventCount:c=0}=e,l=(0,s.usePathname)(),u=(0,s.useSearchParams)(),d=(0,a.j)(e=>e.setActiveTab),h=null!=(t=(0,a.j)(e=>{var t;return null==(t=e.searchResult)?void 0:t.totalSize}))?t:i,m=e=>e.toLocaleString("ko-KR"),p=(e,t)=>t>0?"".concat(e," (").concat(m(t),")"):e,v=e=>{if(e===r)return;d(e);let t=new URLSearchParams(u.toString());t.set("tab",String(e));let n=t.toString(),a=n?"".concat(l,"?").concat(n):l;window.history.replaceState(window.history.state,"",a)};return(0,n.jsx)("nav",{className:"navigator st-tile-sub mb-15",children:(0,n.jsxs)("ul",{className:"navigator-list",children:[(0,n.jsx)("li",{className:"navigator-item",children:(0,n.jsx)("a",{className:"navigator-button ".concat(0===r?"active":""),onClick:e=>{e.preventDefault(),v(0)},children:(0,n.jsxs)("span",{className:"navigator-text",children:["상품 (",m(h),")"]})})}),(0,n.jsx)("li",{className:"navigator-item",children:(0,n.jsx)("a",{className:"navigator-button ".concat(1===r?"active":""),onClick:e=>{e.preventDefault(),v(1)},children:(0,n.jsx)("span",{className:"navigator-text",children:p("기획전",o)})})}),(0,n.jsx)("li",{className:"navigator-item",children:(0,n.jsx)("a",{className:"navigator-button ".concat(2===r?"active":""),onClick:e=>{e.preventDefault(),v(2)},children:(0,n.jsx)("span",{className:"navigator-text",children:p("이벤트",c)})})})]})})}},22217:(e,t,r)=>{r.d(t,{A:()=>c});
1var n=r(95155),a=r(52619),s=r.n(a),i=r(35062),o=r(25016);function c(e){let{brands:t}=e;return(0,i.useIsGoodwearmall)()&&t&&0!==t.length?(0,n.jsx)("div",{className:"row gx-8",id:"divBrnd",children:(0,n.jsx)("div",{className:"col-8-6 offset-8-1",children:(0,n.jsxs)("div",{className:"divider st-bottom st-sm pb-16 mb-16 mt-n32",children:[(0,n.jsx)("h4",{className:"heading st-group st-lg mb-8",children:(0,n.jsx)("span",{className:"text-inner",children:"브랜드"})}),(0,n.jsx)("div",{className:"search-brand-list",children:t.map((e,t)=>{let{href:r,target:a}=(0,o.p_)(e);return(0,n.jsx)("div",{className:"hole-item-wrap",children:(0,n.jsxs)(s(),{href:r,target:a,className:"hole-item st-horizon st-lg",children:[(0,n.jsx)("div",{className:"hole-thumb hole-thumb-soft st-border w-80",children:(0,n.jsx)("img",{src:function(e,t){var r;let n=(e||"").trim();if(!n)return"/images/no-image.png";let a=(null==(r=n.split("@")[0])?void 0:r.trim())||"";return a?a.startsWith("http://")||a.startsWith("https://")?a:"".concat(t).concat(a):"/images/no-image.png"}(e.brandImgFileUrl,"https://img.goodwearmall.com"),alt:e.brandImgAltrtvCont||e.brandNmKr,className:"hole-img",onError:e=>{let t=e.target;t.src="/images/no-image.png",t.onerror=null}})}),(0,n.jsxs)("div",{className:"hole-body",children:[(0,n.jsx)("p",{className:"hole-text",children:(0,n.jsx)("span",{className:"text-inner",children:e.brandNmKr})}),(0,n.jsx)("p",{className:"hole-text",children:(0,n.jsx)("span",{className:"text-inner",children:e.brandNmEn})})]})]})},"".concat(e.dspCtgryNo||t,"-").concat(t))})})]})})}):null}},24068:(e,t,r)=>{r.d(t,{O:()=>i});var n=r(12115),a=r(74948);function s(e,t){switch(e){case"main":return{eventName:"viewMainPage",eventProperties:{}};case"lounge":return{eventName:"viewLounge",eventProperties:{}};case"category":return{eventName:"viewCategory",eventProperties:{dsp_ctgry_no:t.dsp_ctgry_no,category_name:t.category_name,category_order:t.category_order,category_hierarchy:t.category_hierarchy||t.category_name,items:t.items||[]}};case"brand":var r;return{eventName:"viewBrand",eventProperties:{brand_id:t.brand_id,brand_name:t.brand_name,brand_type:t.brand_type,isBookmark:null!=(r=t.is_bookmark)&&r}};case"promotion":return{eventName:"viewPromotion",eventProperties:{promotion_id:t.promotion_id,promotion_name:t.promotion_name,promotion_type:t.promotion_type,promotion_date_start:t.promotion_date_start,promotion_date_end:t.promotion_date_end,user_id:t.user_id}};case"magazine":return{eventName:"viewMagazine",eventProperties:{mgz_id:t.mgz_id,mgz_name:t.mgz_name}};case"search":return{eventName:"viewSearchResults",eventProperties:{keyword:t.keyword,section_title:t.section_title||"검색결과",section_order:t.section_order||1,search_term:t.keyword,search_keyword:t.keyword,search_type:t.search_type||"직접 입력",re_search_term:t.re_search_term||"",items:t.items||[]}};default:return null}}function i(e,t,r){let i=(0,n.useRef)(!1),o=(0,n.useRef)(""),c=(0,n.useMemo)(()=>{if(!t)return"";switch(e){case"main":var r;return"main:".concat(null!=(r=t.mall_code)?r:"");case"lounge":return"lounge";case"category":return"cat:".concat(t.dsp_ctgry_no);case"brand":return"brnd:".concat(t.brand_id);case"promotion":return"prmt:".concat(t.promotion_id);case"magazine":return"mgz:".concat(t.mgz_id);case"search":return"srch:".concat(t.keyword);default:return JSON.stringify(t)}},[e,"main"===e?null==t?void 0:t.mall_code:null,"category"===e?null==t?void 0:t.dsp_ctgry_no:null,"brand"===e?null==t?void 0:t.brand_id:null,"promotion"===e?null==t?void 0:t.promotion_id:null,"magazine"===e?null==t?void 0:t.mgz_id:null,"search"===e?null==t?void 0:t.keyword:null]);(0,n.useEffect)(()=>{if((null==r?void 0:r.enabled)!==!1&&t&&e&&c)o.current!==c&&(i.current=!1,o.current=c),i.current||a.E.onReady(function(){let n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!i.current||n)try{let n=s(e,t);if(!n)return void console.warn("Unknown page type: ".concat(e));let o=(null==r?void 0:r.providerSelection)?{...n.eventProperties,__providerSelection:r.providerSelection}:n.eventProperties;a.E.track(n.eventName,o),i.current=!0}catch(e){console.error("[usePageView] Failed to track page view:",e)}})},[e,c,t,null==r?void 0:r.enabled]),(0,n.useEffect)(()=>
1{if((null==r?void 0:r.enabled)===!1||!(null==r?void 0:r.retrackOnPageShowPersisted)||!t||!e||!c)return;let n=n=>{n.persisted&&a.E.onReady(()=>{try{let n=s(e,t);if(!n)return;let i=(null==r?void 0:r.providerSelection)?{...n.eventProperties,__providerSelection:r.providerSelection}:n.eventProperties;a.E.track(n.eventName,i)}catch(e){console.error("[usePageView] Failed to retrack on pageshow:",e)}})};return window.addEventListener("pageshow",n),()=>{window.removeEventListener("pageshow",n)}},[e,c,t,null==r?void 0:r.enabled,null==r?void 0:r.retrackOnPageShowPersisted,null==r?void 0:r.providerSelection])}},35339:(e,t,r)=>{r.d(t,{m:()=>s});var n=r(95155),a=r(12115);function s(e){let{triggerContent:t,triggerClassName:r="dropdown-trigger",wrapperClassName:s="dropdown-wrapper",children:i,closeOnScroll:o=!1,ariaHaspopup:c="listbox",ariaExpanded:l,dataTtToggle:u,dataDropdownType:d,dataWindowSize:h}=e,{isOpen:m,toggle:p,close:v,wrapperRef:g}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{closeOnScroll:t=!0}=e,[r,n]=(0,a.useState)(!1),s=(0,a.useRef)(null),i=(0,a.useCallback)(()=>n(!1),[]),o=(0,a.useCallback)(()=>n(e=>!e),[]);return(0,a.useEffect)(()=>{if(!r)return;let e=e=>{var t;let r=e.target;null!=(t=s.current)&&t.contains(r)||i()},n=e=>{var r;if(!t)return;let n=e.target;null!=(r=s.current)&&r.contains(n)||i()};return document.addEventListener("click",e,!0),window.addEventListener("scroll",n,!0),()=>{document.removeEventListener("click",e,!0),window.removeEventListener("scroll",n,!0)}},[r,i,t]),{isOpen:r,toggle:o,close:i,wrapperRef:s}}({closeOnScroll:o}),y=null!=l?l:m,f=(0,a.useRef)(null),b=(0,a.useRef)(null),x=i(v,m);return(0,a.useEffect)(()=>{var e,t;let r=g.current;if(!r)return;let n=r.querySelector(".spot-dropdown, .dropdown-window, ul.dropdown");if(!n)return;let a=r.querySelector("button"),s=n.querySelector(".dropdown-wrap"),i=n.dataset.expandedMaxHeight||(n.style.maxHeight&&"0vw"!==n.style.maxHeight?n.style.maxHeight:""),o=null!=(t=null==(e=document.querySelector("#dockBar"))?void 0:e.offsetHeight)?t:0;n.style.transition="max-height 240ms ease, opacity 180ms ease",s&&(s.style.transition="transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease",s.style.willChange="transform, opacity"),m?(f.current&&(window.clearTimeout(f.current),f.current=null),b.current&&(window.cancelAnimationFrame(b.current),b.current=null),null==a||a.classList.add("active"),n.classList.add("active"),n.style.display="block",n.style.visibility="visible",n.style.opacity="0",n.style.maxHeight="0",s&&(s.style.transform="translate(0px, 0px)"),b.current=window.requestAnimationFrame(()=>{n.style.maxHeight=i}),window.setTimeout(()=>{if(!a)return;let e=(null==s?void 0:s.offsetHeight)||n.offsetHeight;a.getBoundingClientRect().bottom+e>=window.innerHeight-o?(n.style.top="auto",n.style.bottom="".concat(a.offsetHeight,"px")):(n.style.top="",n.style.bottom=""),n.style.opacity="1"},10)):(null==a||a.classList.remove("active"),i?n.style.maxHeight="0vw":n.style.removeProperty("max-height"),n.style.opacity="0",f.current=window.setTimeout(()=>{n.classList.remove("active"),n.style.visibility="hidden",n.style.display="none"},260))},[m,g]),(0,a.useEffect)(()=>()=>{f.current&&window.clearTimeout(f.current),b.current&&window.cancelAnimationFrame(b.current)},[]),(0,n.jsxs)("div",{className:s,ref:g,children:[(0,n.jsx)("button",{type:"button",className:[r,m&&"active"].filter(Boolean).join(" "),onClick:p,"aria-haspopup":c,"aria-expanded":y,"data-tt-toggle":u,...void 0!==d?{"data-dropdown-type":d}:{},...void 0!==h?{"data-window-size":h}:{},children:t}),x]})}},40050:(e,t,r)=>{r.d(t,{Cy:()=>d,M_:()=>y,ZW:()=>l,cN:()=>h,eA:()=>f,go:()=>g,jk:()=>v,mn:()=>m,tO:()=>u,tp:()=>p});var n=r(12115),a=r(53455),s=r(99776),i=r(80549),o=r(82140),c=r(32423);function l(){return(0,a.useQuery)({...o.P.searchLayer.hotKeywords,queryFn:()=>(0,c.uz)("/api/search-layer/hot-keywords"),staleTime:18e5,refetchOnWindowFocus:!1})}function u(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return(0,a.useQuery)({...o.P.searchLayer.recentKeywords,queryFn:async()=>(await (0,c.uz)("/api/proxy/v2/histories/search")).filter(e=>"search"===e.type&&!!e.id&&!!e.createDatetime).map(e=>({keyword:e.id,createdAt:e.createDatetime})).sort((e,t)=>
1t.createdAt-e.createdAt),enabled:e,staleTime:0,refetchOnWindowFocus:!0})}function d(){let e=(0,s.useQueryClient)();return(0,i.useMutation)({mutationFn:async e=>{let{keyword:t,device:r="MB"}=e;if(!(await fetch("/api/proxy/v2/histories/search",{method:"POST",headers:{"Content-Type":"application/json","x-forwarded-host":window.location.host},body:JSON.stringify({keyword:t,device:r})})).ok)throw Error("최근 검색어 저장 실패")},onSuccess:()=>{e.invalidateQueries({queryKey:o.P.searchLayer.recentKeywords.queryKey})}})}function h(){let e=(0,s.useQueryClient)();return(0,i.useMutation)({mutationFn:async e=>{if(!(await fetch("/api/proxy/v2/histories/search/".concat(encodeURIComponent(e)),{method:"DELETE",headers:{"x-forwarded-host":window.location.host}})).ok)throw Error("최근 검색어 삭제 실패")},onSuccess:()=>{e.invalidateQueries({queryKey:o.P.searchLayer.recentKeywords.queryKey})}})}function m(){let e=(0,s.useQueryClient)();return(0,i.useMutation)({mutationFn:async()=>{if(!(await fetch("/api/proxy/v2/histories/search",{method:"DELETE",headers:{"x-forwarded-host":window.location.host}})).ok)throw Error("최근 검색어 전체 삭제 실패")},onSuccess:()=>{e.invalidateQueries({queryKey:o.P.searchLayer.recentKeywords.queryKey})}})}function p(e){let{device:t,enabled:r=!0}=e;return(0,a.useQuery)({queryKey:["searchLayer","adProducts",{device:t}],queryFn:()=>{let e=new URLSearchParams({device:t});return(0,c.uz)("/api/search-layer/ad-campain/products?".concat(e.toString()))},enabled:r,staleTime:18e5,refetchOnWindowFocus:!1})}function v(e){let{device:t,selectShop:r,polhamShop:n,enabled:s=!0,staleTime:i=18e5}=e;return(0,a.useQuery)({...o.P.searchLayer.marketingPlaceholder({device:t,selectShop:r,polhamShop:n}),queryFn:()=>{let e=new URLSearchParams({device:t});return r&&e.append("selectShop","true"),n&&e.append("polhamShop","true"),(0,c.uz)("/api/search-layer/marketing-placeholder?".concat(e.toString()))},enabled:s,staleTime:i,refetchOnWindowFocus:!1})}function g(e){if(!(null==e?void 0:e.corners))return[];let t=[];for(let o of e.corners){var r,n,a,s,i;for(let e of null!=(n=null==o||null==(r=o.corner)?void 0:r.dspCnrSetList)?n:[])for(let r of null!=(a=null==e?void 0:e.dspCnrConttTextList)?a:[]){let e=null==r||null==(s=r.dspConttText)?void 0:s.textCont,n=null==r||null==(i=r.dspContt)?void 0:i.conttCnncUrl;e&&t.push({keyword:e,linkUrl:n})}}return t}function y(e){let{brndId:t,mallCd:r,enabled:n=!0}=e;return(0,a.useQuery)({...o.P.searchLayer.relatedTags({brndId:t,mallCd:r}),queryFn:()=>{let e=new URLSearchParams({brndId:t});return r&&e.append("mallCd",r),(0,c.uz)("/api/search-layer/related-tags?".concat(e.toString()))},enabled:n&&!!t,staleTime:3e5,refetchOnWindowFocus:!1})}function f(e,t){let[r,a]=(0,n.useState)(null!=t?t:""),s=(0,n.useRef)(""),i=(0,n.useRef)(t),o=(0,n.useMemo)(()=>e.join("||"),[e]);return(0,n.useEffect)(()=>{var r;if(t){i.current=t,a(t);return}if(i.current&&(i.current=void 0,s.current=""),0===e.length){s.current="",a("");return}if(s.current===o)return;s.current=o;let n=Math.floor(Math.random()*e.length);a(null!=(r=e[n])?r:"")},[e,o,t]),r}},42800:(e,t,r)=>{r.d(t,{A:()=>d});var n=r(95155),a=r(12115),s=r(20063),i=r(67521),o=r(74948),c=r(6582),l=r(62014),u=r(40050);function d(e){var t;let{keyword:r,searchResult:d,children:h}=e,m=(0,s.useSearchParams)(),{mutate:p}=(0,u.Cy)(),v=(0,a.useRef)("");(0,a.useEffect)(()=>{r&&p({keyword:r})},[r]),(0,a.useEffect)(()=>{var e;if(!r||v.current===r)return;v.current=r;let t=(0,l.C)(r),n=null!=(e=null==d?void 0:d.totalSize)?e:0;o.E.onReady(()=>{var e,a,s;o.E.track(c.AC.SEARCH_KEYWORD,{section_title:null!=(e=null==t?void 0:t.section_title)?e:"검색창",section_order:null!=(a=null==t?void 0:t.section_order)?a:0,keyword:r,keyword_order:null!=(s=null==t?void 0:t.keyword_order)?s:"",result_count:n})})},[r,d]);let g="true"===m.get("refine"),y=m.get("refineKeyword")||"",f=(null==d||null==(t=d.documents)?void 0:t.slice(0,3).map(e=>e.GOD_NO))||[];return(0,i.O)("search",{keyword:r,search_type:g?"결과 내 재검색":"직접 입력",re_search_term:y,items:f}),(0,n.jsx)(n.Fragment,{children:h})}},58542:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(95155),a=r(20063),s=r(31778);function i(e){var t;
1let{productCount:r=0,specialCount:i=0,eventCount:o=0}=e,c=(0,a.usePathname)(),l=(0,a.useSearchParams)(),u=(0,s.j)(e=>e.activeTab),d=(0,s.j)(e=>e.setActiveTab),h=null!=(t=(0,s.j)(e=>{var t;return null==(t=e.searchResult)?void 0:t.totalSize}))?t:r,m=e=>e.toLocaleString("ko-KR"),p=(e,t)=>t>0?"".concat(e," (").concat(m(t),")"):e,v=e=>t=>{t.preventDefault(),(e=>{if(e===u)return;d(e);let t=new URLSearchParams(l.toString());t.set("tab",String(e));let r=t.toString(),n=r?"".concat(c,"?").concat(r):c;window.history.replaceState(window.history.state,"",n)})(e)};return(0,n.jsx)("div",{className:"row gx-8",children:(0,n.jsx)("div",{className:"col-8-6 offset-8-1",children:(0,n.jsx)("nav",{className:"navigator st-menu-tab divider st-bottom st-sm pb-16",children:(0,n.jsxs)("ul",{className:"navigator-list justify-content-start",children:[(0,n.jsx)("li",{className:"navigator-item carousel-item",children:(0,n.jsx)("a",{href:"#categoryStats1Tab1",className:"navigator-button ".concat(0===u?"active":""),"data-tt-toggle":"tab",onClick:v(0),children:(0,n.jsxs)("span",{className:"navigator-text",children:["상품 (",m(h),")"]})})}),(0,n.jsx)("li",{className:"navigator-item carousel-item",children:(0,n.jsx)("a",{href:"#categoryStats2Tab1",className:"navigator-button ".concat(1===u?"active":""),"data-tt-toggle":"tab",onClick:v(1),children:(0,n.jsx)("span",{className:"navigator-text",children:p("기획전",i)})})}),(0,n.jsx)("li",{className:"navigator-item carousel-item",children:(0,n.jsx)("a",{href:"#categoryStats3Tab1",className:"navigator-button ".concat(2===u?"active":""),"data-tt-toggle":"tab",onClick:v(2),children:(0,n.jsx)("span",{className:"navigator-text",children:p("이벤트",o)})})})]})})})})}},62014:(e,t,r)=>{r.d(t,{C:()=>s,_:()=>a});let n="pendingSearchKeywordContext";function a(e){try{sessionStorage.setItem(n,JSON.stringify(e))}catch(e){}}function s(e){try{let t=sessionStorage.getItem(n);if(!t)return null;sessionStorage.removeItem(n);let r=JSON.parse(t);return r.keyword===e?r:null}catch(e){return null}}},67521:(e,t,r)=>{r.d(t,{O:()=>a.O,d:()=>n.d});var n=r(87417),a=r(24068)},80549:(e,t,r)=>{r.d(t,{useMutation:()=>u});var n=r(99776),a=r(12115),s=r(34049),i=r(38445),o=r(74268),c=r(38559),l=class extends i.Q{#e;#t=void 0;#r;#n;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,s.f8)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.EN)(t.mutationKey)!==(0,s.EN)(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onSubscribe(){1===this.listeners.size&&this.#r&&(this.#r.addObserver(this),this.#a())}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#a(),this.#s(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#a(),this.#s()}mutate(e,t){return this.#n=t,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#a(){let e=this.#r?.state??(0,c.$)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#s(e){o.jG.batch(()=>{if(this.#n&&this.hasListeners()){let t=this.#t.variables,r=this.#t.context,n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#n.onSuccess?.(e.data,t,r,n)}catch(e){Promise.reject(e)}try{this.#n.onSettled?.(e.data,null,t,r,n)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#n.onError?.(e.error,t,r,n)}catch(e){Promise.reject(e)}try{this.#n.onSettled?.(void 0,e.error,t,r,n)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}};function u(e,t){let r=(0,n.useQueryClient)(t),[i]=a.useState(()=>new l(r,e));a.useEffect(()=>{i.setOptions(e)},[i,e]);
1let c=a.useSyncExternalStore(a.useCallback(e=>i.subscribe(o.jG.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),u=a.useCallback(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];i.mutate(t[0],t[1]).catch(s.lQ)},[i]);if(c.error&&(0,s.GU)(i.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:u,mutateAsync:c.mutate}}},88890:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(95155),a=r(12115),s=r(20063),i=r(13266),o=r(20129),c=r(31778);function l(e){let{isVisible:t=!1}=e,r=(0,s.useRouter)(),l=(0,s.usePathname)(),u=(0,s.useSearchParams)(),d=u.get("shopType"),h=(0,o.m3)(l,u),m=(0,i.Pe)(l,u),p="all"!==d&&h.isSelectShopPath,v="all"!==d&&m.isPolhamShopPath,g=(0,c.j)(e=>e.setActiveTab),y=(0,a.useCallback)(e=>{let t=new URLSearchParams(u.toString());t.delete("pageNo"),t.delete("tab"),"selectShop"===e||"polhamShop"===e?t.delete("shopType"):(t.set("shopType","all"),t.set("tab","0"),g(0)),r.replace("".concat(l,"?").concat(t.toString()))},[l,u,r,g]);return(0,n.jsx)("div",{className:"row gx-8 ".concat(t?"":"d-none"),children:(0,n.jsx)("div",{className:"col-8-2 offset-8-3 mb-40",children:(0,n.jsx)("nav",{className:"navigator st-menu-tab",id:"searchTab1",children:(0,n.jsxs)("ul",{className:"navigator-list",children:[h.isSelectShopPath&&(0,n.jsx)("li",{className:"navigator-item carousel-item",children:(0,n.jsx)("button",{type:"button",className:"navigator-button ".concat(p?"active":""),onClick:()=>y("selectShop"),children:(0,n.jsx)("span",{className:"navigator-text",children:"셀렉트샵"})})}),m.isPolhamShopPath&&(0,n.jsx)("li",{className:"navigator-item carousel-item",children:(0,n.jsx)("button",{type:"button",className:"navigator-button ".concat(v?"active":""),onClick:()=>y("polhamShop"),children:(0,n.jsx)("span",{className:"navigator-text",children:"폴햄샵"})})}),(0,n.jsx)("li",{className:"navigator-item carousel-item",children:(0,n.jsx)("button",{type:"button",className:"navigator-button ".concat(p||v?"":"active"),onClick:()=>y("all"),children:(0,n.jsx)("span",{className:"navigator-text",children:"통합검색"})})})]})})})})}}}]);

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.