PageSourceSearch

https://apm-web.amoremall.com/_next/static/chunks/pages/display/giftRecommend-8b237e46280da63e.js

js amoremall.com collected 2026-10-02 06:49:55 UTC 39,530 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9118],{6717:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/display/giftRecommend",function(){return i(36578)}])},89443:function(e,n,i){"use strict";i.d(n,{H:function(){return a},k:function(){return l}});var t=i(76635);var r,a=function(e){var n;return function(e){return JSON.stringify(e,(function(e,n){return(0,t.isPlainObject)(n)?Object.keys(n).sort().reduce((function(e,i){return e[i]=n[i],e}),{}):n}))}((n=e,Array.isArray(n)?n:[n]))},o=i(70423),l=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;if(e){var i=Math.floor(window.scrollY),t=e.offsetTop-s("section.wrap>.module-header"),r=e.offsetTop-s(".apSwiper--gnbArea"),a=u()?t:r;a<i?o.NY.scrollTo(t,{duration:n}):a>i&&o.NY.scrollTo(r,{duration:n})}},c=function(e){return document.querySelector(e)},s=function(e){var n;return null!==(r=null===(n=c(e))||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:0},u=function(){var e;return!(null===(e=c("section.wrap>.module-header"))||void 0===e?void 0:e.classList.contains("is-utils-hidden"))}},36578:function(e,n,i){"use strict";i.r(n),i.d(n,{__N_SSP:function(){return We},default:function(){return He}});var t={};i.r(t),i.d(t,{GiftBanner:function(){return G},default:function(){return L},prefetch:function(){return M}});var r={};i.r(r),i.d(r,{GiftPrd:function(){return W},default:function(){return Q},prefetch:function(){return H}});var a={};i.r(a),i.d(a,{GiftCategoryQuick:function(){return Y},default:function(){return J},prefetch:function(){return z}});var o={};i.r(o),i.d(o,{GiftCategory:function(){return Ne},default:function(){return _e}});var l={};i.r(l),i.d(l,{GiftReview:function(){return ye},default:function(){return Te},prefetch:function(){return Se}});var c={};i.r(c),i.d(c,{GiftMdPrdBanner:function(){return Me},default:function(){return Oe},prefetch:function(){return De}});var s,u=i(52322),d=i(2784),v=i(64157),m=i(66922),f=i(54373),p=i(94911),g=i(26961),h=i(48909),x=i(22745),b=i(19329),N=i(47842);!function(e){e.GIFT_CATEGORY_QUICK="GIFT_RENEWAL_m.1",e.GIFT_BANNER="GIFT_RENEWAL_m.2",e.GIFT_PRD="GIFT_RENEWAL_m.3",e.GIFT_REVIEW="GIFT_RENEWAL_m.4",e.GIFT_CATEGORY="GIFT_RENEWAL_m.5",e.GIFT_MD_PRD_BANNER="GIFT_RENEWAL_m.6"}(s||(s={}));var _=i(98788),j=i(70865),k=i(96670),w=i(22970),C=i(69447),y=i(24002),S=i(83176),T=i(8446),Z=i(72779),P=i.n(Z),R=(0,d.forwardRef)((function(e,n){var i=e.className,t=e.isEllipsis,r=void 0===t||t,a=e.children;return a?(0,u.jsx)("div",{ref:n,className:P()("module-heading",i),children:(0,u.jsx)("h3",{className:P()("module-heading__title",{"is-ellipsis":r}),children:a})}):null})),E=(0,d.forwardRef)((function(e,n){var i=e.className,t=e.children;return(0,u.jsx)("div",{ref:n,className:P()("mall__row",i),children:t})})),I=i(72571),B=i(21997),A={LOSSLESS_WEBP:100,LOSSY_WEBP:void 0},F=function(e){var n=e.dimmedBannerImage,i=e.textColor,t=e.linkUrl,r=e.mainText,a=e.subText,o=e.imageUrl,l=e.imageAlt,c=e.loadingEager,s=void 0!==c&&c,d=e.apClickArea,v=e.apClickName,m=e.apClickData,f=o.includes(".png")?A.LOSSLESS_WEBP:A.LOSSY_WEBP;return(0,u.jsx)("div",{className:P()("module-banner-gift__item",{"is-white":n},{"is-black":n}),children:(0,u.jsxs)(I.Z,{href:t,"ap-click-area":d,"ap-click-name":v,"ap-click-data":m,children:[(0,u.jsx)("div",{className:"module-banner__media",children:(0,u.jsx)(B.ZP,{src:o,alt:l,loading:s?"eager":void 0,importance:s?"high":"low",size:{width:"350",height:"265"},quality:f})}),(0,u.jsxs)("div",{className:"module-banner-gift__text",children:[(0,u.jsx)("p",{className:"module-banner-gift__title",style:{color:i},children:r}),(0,u.jsx)("p",{className:"module-banner-gift__desc",style:{color:i},children:a})]})]})})},G=function(e){var n,i=e.initialData,t=(0,S.Z)(),r=(0,d.useState)(i),a=r[0],o=(r[1],(0,d.useMemo)((function(){var e,n,i=null!==(n=null===a||void 0===a||null===(e=a.banners)||void 0===e?void 0:e.length)&&void 0!==n?n:0;return t.isMobile?i>=2:i>=3}),[t,a])),l=(0,d.useMemo)((function(){var e,n,i=null!==(n=null===a||void 0===a||null===(e=a.banners)||void 0===e?void 0:e.length)&&void 0!==n?n:0;return t.isMobile?i<1:i<2}),[t,a]),c=o?{autoplay:!0,loop:!0,pagination:{el:".swiper-pagination",type:"progressbar"},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}}:{touchRatio:0};return!a||l?null:(0,u.jsxs)(E,{className:"gap--small",children:[(0,u.jsx)(R,{className:"module-heading--gift-quick",children:a.cornerName}),(0,u.jsxs)("div",{className:"module-banner-gift",children:[(0,u.jsxs)(C.t,(0,k.Z)((0,j.Z)({className:"swiper-container apSwiper--gift-banner",slidesPerView:"auto",threshold:12,centeredSlides:t.isMobile,onAutoplayStart:function(e){"object"===typeof e.params.autoplay&&(e.params.autoplay.disableOnInteraction=!1)}},c),{children:[null===(n=a.banners)||void 0===n?void 0:n.map((function(e,n){var i,r,a,o=null!==(a=t.isMobile?e.mobileBannerImageUrl:e.pcBannerImageUrl)&&void 0!==a?a:"",l=t.isMobile?e.mobileBannerReplaceText:e.pcBannerReplaceText;return(0,u.jsx)(y.o,{children:(0,u.jsx)(F,{imageUrl:o,imageAlt:l,linkUrl:e.linkUrl,dimmedBannerImage:null===(i=e.textColorInfo)||void 0===i?void 0:i.dimmedBannerImage,textColor:null===(r=e.textColorInfo)||void 0===r?void 0:r.textColor,loadingEager:0===n,mainText:e.mainText,subText:e.subText,apClickArea:"\uc120\ubb3c\ub9e4\uc7a5",apClickName:"\uc120\ubb3c\ub9e4\uc7a5_\uc120\ubb3c\ud558\uae30\ubc30\ub108",apClickData:"".concat(n+1,"_").concat(e.mainText)})},e.mainContentsSn)})),(0,u.jsx)("span",{className:"swiper-notification","aria-live":"assertive","aria-atomic":!0})]})),o&&(0,u.jsxs)("div",{className:"module-banner-gift__controller",children:[(0,u.jsx)("button",{className:"swiper-button-prev",children:(0,u.jsx)("i",{className:"atom-icon ic_angle_flicking_left_s30",children:"\uc774\uc804"})}),(0,u.jsx)("button",{className:"swiper-button-next",children:(0,u.jsx)("i",{className:"atom-icon ic_angle_flicking_right_s30",children:"\ub2e4\uc74c"})}),(0,u.jsx)("div",{className:"swiper-pagination"})]})]})]})},M=function(){var e=(0,_.Z)((function(e){var n,i;return(0,w.__generator)(this,(function(t){switch(t.label){case 0:n=e.apiManager,t.label=1;case 1:return t.trys.push([1,3,,4]),[4,n.apiGW.get("/display/v3/gift/banners",{params:{menuPageCornerId:s.GIFT_BANNER}})];case 2:return[2,t.sent().data];case 3:return i=t.sent(),T.Z.error(i,"prefetch home gift banner error"),[3,4];case 4:return[2]}}
1))}));return function(n){return e.apply(this,arguments)}}(),L=G,D=i(96738),O=i(11752);var U=function(e){var n,i,t,r,a,o,l=e.content,c=(0,d.useMemo)((function(){return(null!==(n=null===l||void 0===l?void 0:l.onlineProducts)&&void 0!==n?n:[]).slice(0,6)}),[null===l||void 0===l?void 0:l.onlineProducts]);return c.length<5?(0,u.jsx)(u.Fragment,{}):(0,u.jsxs)(E,{children:[(0,u.jsx)(R,{children:null===l||void 0===l?void 0:l.title}),(0,u.jsx)("div",{className:"productCardList module__grid p-col6_m-col3",children:c.map((function(e){return(0,u.jsx)(O.v_,{onlineProdSn:e.onlineProdSn,pageUrl:"/kr/ko/product/detail?onlineProdSn=".concat(e.onlineProdSn),imgUrl:null!==(i=null===e||void 0===e?void 0:e.imgUrl)&&void 0!==i?i:"",onlineProdName:null!==(t=null===e||void 0===e?void 0:e.onlineProdName)&&void 0!==t?t:"",titleLines:1,showBrandName:!0,brandName:null!==(r=null===e||void 0===e?void 0:e.brandName)&&void 0!==r?r:"",isDiscount:!!(null===e||void 0===e?void 0:e.discountRate),isSoldOut:["Exhaustion","OutOfStock"].includes(null!==(a=null===e||void 0===e?void 0:e.saleDisplayStatus)&&void 0!==a?a:""),discountRate:null===e||void 0===e?void 0:e.discountRate,priceUnit:e.isBeautyPoint?"P":"\uc6d0",discountedPrice:Number(null===e||void 0===e?void 0:e.discountedPrice),isSwungDash:e.isSwungDash,promotionName:e.baseOrdQty&&e.freeAwardQty?"".concat(e.baseOrdQty,"+").concat(e.freeAwardQty):void 0,showReviewArea:!1,isLike:null===e||void 0===e?void 0:e.isLike,eventFlag:e.eventFlag,apClickArea:"\uc120\ubb3c\ub9e4\uc7a5",apClickName:"\uc120\ubb3c\ub9e4\uc7a5_\uc790\uc720\ucf54\ub108_\uc0c1\ud488",apClickData:"".concat(e.brandName,"_").concat(e.onlineProdName)},e.onlineProdSn)}))}),"Y"===(null===l||void 0===l?void 0:l.viewMoreButtonYn)&&(0,u.jsxs)(I.Z,{className:"btnOutlined sizeL fullWidth",href:l.viewMoreButtonUrl,"ap-click-area":"\uc120\ubb3c\ub9e4\uc7a5","ap-click-name":"\uc120\ubb3c\ub9e4\uc7a5_\uc790\uc720\ucf54\ub108_[\ubc84\ud2bc]\ub354\ubcf4\uae30","ap-click-data":"".concat(l.viewMoreButtonName,"_\ub354\ubcf4\uae30"),children:[(0,u.jsx)("em",{children:(0,D.$G)(null!==(o=l.viewMoreButtonName)&&void 0!==o?o:"",7)})," \ub354 \ubcf4\uae30"]})]})},W=function(e){var n,i=e.initialData,t=(0,d.useState)(i)[0];return t?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(R,{children:null===t||void 0===t?void 0:t.cornerName}),null===(n=t.contents)||void 0===n?void 0:n.map((function(e){return(0,u.jsx)(U,{content:e},e.mainContentsSn)}))]}):null},H=function(){var e=(0,_.Z)((function(e){var n,i;return(0,w.__generator)(this,(function(t){switch(t.label){case 0:n=e.apiManager,t.label=1;case 1:return t.trys.push([1,3,,4]),[4,n.apiGW.get("/display/v3.1/gift/free-products",{params:{menuPageCornerId:s.GIFT_PRD}})];case 2:return[2,t.sent().data];case 3:return i=t.sent(),T.Z.error(i,"[GiftPrd] prefetch \uc5d0\ub7ec",s.GIFT_PRD),[3,4];case 4:return[2]}}
1))}));return function(n){return e.apply(this,arguments)}}(),Q=W,V=i(92250),q="https://images-kr.amoremall.com/defaultImages/320.png";var K=function(e){var n,i,t=e.data,r=null!==(i=null===(n=t.categoryMenuName)||void 0===n?void 0:n.trim())&&void 0!==i?i:"";return(0,u.jsx)("div",{className:"module-gift-quick__item",children:(0,u.jsxs)(I.Z,{href:"#gift-category-".concat(encodeURIComponent(r)),className:"module-gift-quick__link",onClick:function(e){e.preventDefault(),window.location.replace(e.currentTarget.href)},"ap-click-area":"\uc120\ubb3c\ub9e4\uc7a5","ap-click-name":"\uc120\ubb3c\ub9e4\uc7a5_\uce74\ud14c\uace0\ub9ac\ud035\uc544\uc774\ucf58","ap-click-data":t.categoryMenuName,children:[(0,u.jsx)("span",{className:"module-gift-quick__media",children:(0,u.jsx)(B.ZP,{src:t.categoryImg||q,srcError:q,alt:r,size:{width:"36",height:"36"},resize:{width:36,height:36}})}),r&&(0,u.jsx)("span",{className:"module-gift-quick__title",children:(0,D.$G)(r,8)})]})})},Y=function(e){var n=e.initialData,i=(0,V.Z)(),t=i.isPC,r=i.isMobile,a=(0,d.useState)(n)[0],o=(0,d.useMemo)((function(){return(null===a||void 0===a?void 0:a.categories)||[]}),[null===a||void 0===a?void 0:a.categories]),l=(0,d.useMemo)((function(){return o.filter((function(e,n){return n%2===0}))}),[o]),c=(0,d.useMemo)((function(){return o.filter((function(e,n){return n%2===1}))}),[o]);return o.length?(0,u.jsxs)(E,{className:"gap--small",children:[(0,u.jsx)(R,{className:"module-heading--gift-quick",children:null===a||void 0===a?void 0:a.cornerName}),t&&(0,u.jsx)("div",{className:"module-gift-quick",children:(0,u.jsxs)(C.t,{className:"apSwiper--gift-quick",slidesPerView:"auto",threshold:12,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},children:[o.map((function(e){return(0,u.jsx)(y.o,{children:(0,u.jsx)(K,{data:e})},e.categoryId)})),(0,u.jsx)("button",{type:"button",className:"swiper-button-prev",children:(0,u.jsx)("i",{className:"atom-icon ic_angle_flicking_left_s30",children:"\uc774\uc804"})}),(0,u.jsx)("button",{type:"button",className:"swiper-button-next",children:(0,u.jsx)("i",{className:"atom-icon ic_angle_flicking_right_s30",children:"\ub2e4\uc74c"})})]})}),r&&(0,u.jsx)("div",{className:"module-gift-quick is-scrollable",children:[l,c].map((function(e,n){return(0,u.jsx)("div",{className:"module-gift-quick__row",children:e.map((function(e){return(0,u.jsx)(K,{data:e},e.categoryId)}))},n)}))})]}):null},z=function(){var e=(0,_.Z)((function(e){var n,i;return(0,w.__generator)(this,(function(t){switch(t.label){case 0:n=e.apiManager,t.label=1;case 1:return t.trys.push([1,3,,4]),[4,n.apiGW.get("/display/v3/gift/quick-categories",{params:{menuPageCornerId:s.GIFT_CATEGORY_QUICK}})];case 2:return[2,t.sent().data];case 3:return i=t.sent(),T.Z.error(i,"prefetch error: ".concat(s.GIFT_CATEGORY_QUICK)),[3,4];case 4:return[2]}}
1))}));return function(n){return e.apply(this,arguments)}}(),J=Y,$=i(87394),X=i(5632),ee=i(81233),ne=i(14625),ie=i(41462),te=i(27555),re=i(54854),ae=i(36271),oe=i(41765),le=i(60491),ce=i(92198),se="development"===ce.ZS?220:"staging"===ce.ZS?438:300,ue=[{label:"\uc804\uccb4 \uac00\uaca9",value:"ALL"},{label:"3\ub9cc\uc6d0 \ubbf8\ub9cc",value:"UNDER_THREE"},{label:"3-5\ub9cc\uc6d0",value:"THREE_TO_FIVE"},{label:"5-10\ub9cc\uc6d0",value:"FIVE_TO_TEN"},{label:"10\ub9cc\uc6d0 \uc774\uc0c1",value:"OVER_TEN"}],de=ue[0],ve=[{label:"\ub7ad\ud0b9\uc21c",value:"Ranking"},{label:"\ud310\ub9e4\uc21c",value:"Bestselling7"},{label:"\ud560\uc778\uc728\uc21c",value:"HighestDc"},{label:"\uc2e0\uc0c1\ud488\uc21c",value:"NewProd"},{label:"\ud3c9\uc810\uc21c",value:"HighestProdReview"},{label:"\ub192\uc740 \uac00\uaca9\uc21c",value:"HighestPrice"},{label:"\ub0ae\uc740 \uac00\uaca9\uc21c",value:"LowestPrice"}],me=ve[0],fe=i(84636),pe=i.n(fe),ge=i(48065),he=function(e){var n=e.isOpen,i=void 0!==n&&n,t=e.title,r=e.list,a=e.value,o=e.onSelect,l=e.onClose,c=e.onClosed,s=e.gtmSelect,v=(0,d.useMemo)((function(){return pe()(r,"value")}),[r]);return(0,d.useEffect)((function(){v.length!==r.length&&T.Z.info("[GiftCategoryFilterModal] uniqueList \ub0b4 \uc911\ubcf5\ub41c value\uac00 \uc874\uc7ac.")}),[v,r]),(0,u.jsx)(ge._J,{isOpen:i,title:t,hasHandle:!0,hasCloseButton:!0,onClose:l,onClosed:c,children:(0,u.jsx)("ul",{role:"radiogroup",className:P()("selectOptions",{half:!1}),children:v.map((function(e){var n=e.value===a;return(0,u.jsx)("li",{children:(0,u.jsx)("button",(0,k.Z)((0,j.Z)({type:"button",className:P()({btnOutlined:!n,btnContained:n}),role:"radio","aria-checked":n,onClick:function(){return null===o||void 0===o?void 0:o(e)}},null===s||void 0===s?void 0:s(e)),{children:e.label}))},String(e.value))}))})})};var xe=function(e){var n,i,t=e.values,r=e.onChnage,a=(0,oe.Z)(),o=(0,d.useState)(!1),l=o[0],c=o[1],s=(0,d.useState)(!1),v=s[0],m=s[1],f=(0,d.useMemo)((function(){var e,n,i,r;return[{id:"sortFilter",afterIcon:"icoSortDown",label:null!==(i=null===(e=ve.find((function(e){return e.value===(null===t||void 0===t?void 0:t.sortFilter)})))||void 0===e?void 0:e.label)&&void 0!==i?i:me.label,isActive:!!ve.find((function(e){return e.value===(null===t||void 0===t?void 0:t.sortFilter)}))},{id:"priceRange",afterIcon:"icoSortDown",label:null!==(r=null===(n=ue.find((function(e){return e.value===(null===t||void 0===t?void 0:t.priceRange)})))||void 0===n?void 0:n.label)&&void 0!==r?r:de.label,isActive:!!ue.find((function(e){return e.value===(null===t||void 0===t?void 0:t.priceRange)}))},{id:"isBoxing",className:"gift",beforeIcon:"icoGiftBox",label:"\uc120\ubb3c\ud3ec\uc7a5",tooltipLabel:"\uc548\ub0b4",tooltipHtml:"<strong>\uc120\ubb3c\ud558\uae30 \uc8fc\ubb38 \uc2dc, \ud2b9\ubcc4\ud55c \ud3ec\uc7a5 \uc11c\ube44\uc2a4\ub97c \uc81c\uacf5\ud558\ub294 \uc0c1\ud488\uc785\ub2c8\ub2e4.</strong>\n                      \uc2e0\uccad \uac00\ub2a5 \ub4f1\uae09\uc774 \uc544\ub2c8\uac70\ub098 \ud3ec\uc7a5 \uc7ac\uace0\uac00 \ubd80\uc871\ud55c \uacbd\uc6b0, \uc77c\ubd80 \uc0c1\ud488\uc740 \uc11c\ube44\uc2a4\uac00 \uc81c\uacf5\ub418\uc9c0 \uc54a\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4.",isActive:!!(null===t||void 0===t?void 0:t.isBoxing)}].filter((function(e){return"isBoxing"!==e.id||a.isLoggedIn}))}),[a.isLoggedIn,null===t||void 0===t?void 0:t.isBoxing,null===t||void 0===t?void 0:t.priceRange,null===t||void 0===t?void 0:t.sortFilter]),p=(0,d.useCallback)((function(e){switch(e.id){case"sortFilter":return void c(!0);case"priceRange":return void m(!0);case"isBoxing":return void(null===r||void 0===r||r({key:"isBoxing",value:!(null===t||void 0===t?void 0:t.isBoxing)||void 0,values:(0,k.Z)((0,j.Z)({},t),{isBoxing:!(null===t||void 0===t?void 0:t.isBoxing)||void 0})}))}}),[r,t]);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(le.f8,{buttons:f,backgroundColor:"#fff",onButtonClick:p,gtmButtonClick:function(e){var n="";return"sortFilter"===e.id?n="\uc120\ubb3c\ub9e4\uc7a5_\uc0c1\ud488\ubaa9\ub85d_[T]\uc815\ub82c\uc124\uc815":"priceRange"===e.id?n="\uc120\ubb3c\ub9e4\uc7a5_\uc0c1\ud488\ubaa9\ub85d_[T]\uac00\uaca9\uc124\uc815":"isBoxing"===e.id&&(n="\uc120\ubb3c\ub9e4\uc7a5_\uc0c1\ud488\ubaa9\ub85d_[T]\uc120\ubb3c\ud3ec\uc7a5"),{"ap-click-area":"\uc120\ubb3c\ub9e4\uc7a5","ap-click-name":n,"ap-click-data":""}}}),(0,u.jsx)(he,{title:"\uc815\ub82c \uc120\ud0dd",list:ve,value:null!==(n=null===t||void 0===t?void 0:t.sortFilter)&&void 0!==n?n:me.value,onSelect:function(e){null===r||void 0===r||r({key:"sortFilter",value:e.value,values:(0,k.Z)((0,j.Z)({},t),{sortFilter:e.value})}),c(!1)},isOpen:l,onClose:function(){return c(!1)},gtmSelect:function(e){return{"ap-click-area":"\uc120\ubb3c\ub9e4\uc7a5","ap-click-name":"\uc120\ubb3c\ub9e4\uc7a5_\uc0c1\ud488\ubaa9\ub85d_[\ud31d\uc5c5]\uc815\ub82c\uc120\ud0dd","ap-click-data":e.label.replace(/ /g,"")}}}),(0,u.jsx)(he,{title:"\uac00\uaca9\ub300 \uc120\ud0dd",list:ue,value:null!==(i=null===t||void 0===t?void 0:t.priceRange)&&void 0!==i?i:de.value,onSelect:function(e){null===r||void 0===r||r({key:"priceRange",value:e.value,values:(0,k.Z)((0,j.Z)({},t),{priceRange:e.value})}),m(!1)},isOpen:v,onClose:function(){return m(!1)},gtmSelect:function(e){return{"ap-click-area":"\uc120\ubb3c\ub9e4\uc7a5","ap-click-name":"\uc120\ubb3c\ub9e4\uc7a5_\uc0c1\ud488\ubaa9\ub85d_[\ud31d\uc5c5]\uac00\uaca9\ub300\uc120\ud0dd","ap-click-data":e.label.replace(/ /g,"")}}})]})},be=i(89443),Ne=function(e){var n,i,t,r,a,o,l,c,s,v,m,f,p,g,h,x,b,N=e.initialData,_=(0,ne.Z)(),w=(0,ie.Z)({storageType:"sessionStorage",storageKey:"__home/gift__"}),C=(0,X.useRouter)(),y=(0,d.useState)((function(){return w.load("home-gift-category")}
1))[0],S=(0,d.useRef)(null),T=(0,d.useState)(null!==(l=null===y||void 0===y?void 0:y.data)&&void 0!==l?l:N),Z=T[0],P=T[1],B=(0,d.useState)((0,k.Z)((0,j.Z)({},null===y||void 0===y?void 0:y.options),{categorySn:null!==(c=null===y||void 0===y||null===(n=y.options)||void 0===n?void 0:n.categorySn)&&void 0!==c?c:se,sortFilter:null===y||void 0===y||null===(i=y.options)||void 0===i?void 0:i.sortFilter,priceRange:null===y||void 0===y||null===(t=y.options)||void 0===t?void 0:t.priceRange,isBoxing:null===y||void 0===y||null===(r=y.options)||void 0===r?void 0:r.isBoxing})),A=B[0],F=B[1],G=(0,d.useMemo)((function(){return(null!==(s=null===Z||void 0===Z?void 0:Z.categories)&&void 0!==s?s:[]).map((function(e){return(0,k.Z)((0,j.Z)({},e),{children:[]})}))}),[null===Z||void 0===Z?void 0:Z.categories]),M=G.find((function(e){return e.categorySn===A.categorySn})),L=!(null===Z||void 0===Z||null===(a=Z.prods)||void 0===a?void 0:a.length);return(0,d.useEffect)((function(){var e;je(_,(0,k.Z)((0,j.Z)({},A),{priceRange:"ALL"===A.priceRange?void 0:A.priceRange,sortFilter:null!==(e=A.sortFilter)&&void 0!==e?e:me.value})).then(P)}),[_,A]),(0,d.useEffect)((function(){w.preserve("home-gift-category",{data:Z,options:A})}),[Z,A,w]),(0,d.useEffect)((function(){var e=function(){var e=(0,$.Z)(window.location.href.split("#"),2),n=e[0],i=e[1];if(null===i||void 0===i?void 0:i.includes("gift-category")){var t,r=i.replace("gift-category-",""),a=G.find((function(e){return e.categoryMenuName===decodeURIComponent(r)}));if("number"===typeof(null===a||void 0===a?void 0:a.categorySn))F((function(e){return(0,k.Z)((0,j.Z)({},e),{categorySn:null!==(t=a.categorySn)&&void 0!==t?t:se,isBoxing:void 0,priceRange:void 0,sortFilter:void 0})})),S.current&&(0,be.k)(S.current);window.history.replaceState(window.history.state,"",n)}};return e(),window.addEventListener("hashchange",e),function(){return window.removeEventListener("hashchange",e)}}),[G,C]),(0,u.jsx)(te.ZP,{children:(0,u.jsxs)(E,{className:"gap--large",children:[(0,u.jsx)(R,{children:null===Z||void 0===Z?void 0:Z.cornerName}),(0,u.jsx)("div",{ref:S}),(0,u.jsx)("div",{className:"tab--sticky",children:(0,u.jsx)(ae.Z,{list:G,selectedValue:null!==(v=A.categorySn)&&void 0!==v?v:se,nameKey:"categoryMenuName",valueKey:"categorySn",onSelect:function(e){var n;F((function(i){return(0,k.Z)((0,j.Z)({},i),{categorySn:null!==(n=null===e||void 0===e?void 0:e.categorySn)&&void 0!==n?n:se,isBoxing:void 0,priceRange:void 0,sortFilter:void 0})})),S.current&&(0,be.k)(S.current)},gtmSelect:function(e){return{"ap-click-area":"\uc120\ubb3c\ub9e4\uc7a5","ap-click-name":"\uc120\ubb3c\ub9e4\uc7a5_\uc0c1\ud488\ubaa9\ub85d_[\ud0ed]\uce74\ud14c\uace0\ub9ac","ap-click-data":null!==(m=null===e||void 0===e?void 0:e.categoryMenuName)&&void 0!==m?m:""}}})}),(0,u.jsx)("div",{className:"listHeader",children:(0,u.jsx)(xe,{values:A,onChnage:function(e){var n=e.values;F((function(e){return(0,j.Z)({},e,n)})),S.current&&(0,be.k)(S.current)}},A.categorySn)}),L?(0,u.jsx)(re.Z,{children:"\uc120\ud0dd\ud558\uc2e0 \uc870\uac74\uc758 \uc0c1\ud488\uc774 \uc5c6\uc2b5\ub2c8\ub2e4."}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"productCardList module__grid p-col4_m-col2",children:null===Z||void 0===Z||null===(o=Z.prods)||void 0===o?void 0:o.map((function(e){var n;return(0,u.jsx)(O.v_,{titleLines:2,onlineProdSn:e.onlineProdSn,pageUrl:"/kr/ko/product/detail?onlineProdSn=".concat(e.onlineProdSn),imgUrl:null!==(f=null===e||void 0===e?void 0:e.imgUrl)&&void 0!==f?f:"",onlineProdName:null!==(p=null===e||void 0===e?void 0:e.onlineProdName)&&void 0!==p?p:"",showBrandName:!0,brandName:null!==(g=null===e||void 0===e?void 0:e.brandName)&&void 0!==g?g:"",isDiscount:!!(null===e||void 0===e?void 0:e.discountRate),isSoldOut:["Exhaustion","OutOfStock"].includes(null!==(h=null===e||void 0===e?void 0:e.saleDisplayStatus)&&void 0!==h?h:""),discountRate:null===e||void 0===e?void 0:e.discountRate,priceUnit:e.isBeautyPoint?"P":"\uc6d0",standardPrice:Number(null===e||void 0===e?void 0:e.standardPrice),discountedPrice:Number(null===e||void 0===e?void 0:e.discountedPrice),isSwungDash:e.isSwungDash,promotionName:e.baseOrdQty&&e.freeAwardQty?"".concat(e.baseOrdQty,"+").concat(e.freeAwardQty):void 0,showReviewArea:!0,reviewCount:Number(null===e||void 0===e?void 0:e.reviewCount),reviewAverage:Number(null===e||void 0===e?void 0:e.reviewAverage),flags:null!==(b=null===e||void 0===e||null===(n=e.flags)||void 0===n?void 0:n.map((function(e){return{prodFlagCode:null!==(x=e.code)&&void 0!==x?x:"",prodFlagName:e.name}})))&&void 0!==b?b:[],isLike:null===e||void 0===e?void 0:e.isLike,eventFlag:e.eventFlag,apClickArea:"\uc120\ubb3c\ub9e4\uc7a5",apClickName:"\uc120\ubb3c\ub9e4\uc7a5_\uc0c1\ud488\ubaa9\ub85d_\uc0c1\ud488",apClickData:"".concat(e.brandName,"_").concat(e.onlineProdName)},e.onlineProdSn)}))}),function(){var e,n=A.categorySn===se?"\uc120\ubb3c\ucd94\ucc9c":null!==(e=null===M||void 0===M?void 0:M.categoryMenuName)&&void 0!==e?e:"",i=(0,ee.$G)(n,7);if(null===Z||void 0===Z?void 0:Z.seeMore)return(0,u.jsxs)(I.Z,{href:"/display/category?displayCategorySn=".concat(null===M||void 0===M?void 0:M.categorySn),className:"btnOutlined sizeL fullWidth","ap-click-area":"\uc120\ubb3c\ub9e4\uc7a5","ap-click-name":"\uc120\ubb3c\ub9e4\uc7a5_\uc0c1\ud488\ubaa9\ub85d_[\ubc84\ud2bc]\ub354\ubcf4\uae30","ap-click-data":"".concat(n,"_\ub354\ubcf4\uae30"),children:[(0,u.jsx)("em",{children:i})," \ub354 \ubcf4\uae30"]})}()]})]})})},_e=Ne,je=function(){var e=(0,_.Z)((function(e,n){return(0,w.__generator)(this,(function(i){return[2,e.apiGW.get("/display/v3/gift/online-products/by-filter",{params:(0,k.Z)((0,j.Z)({},n),{menuPageCornerId:s.GIFT_CATEGORY})}).then((function(e){return e.data}))]}))}));return function(n,i){return e.apply(this,arguments)}}(),ke=i(72139),we=function(e){var n=e.onlineProdSn,i=e.reviewTextHTML,t=e.reviewScore,r=e.reviewerDetailText,a=e.apClickArea,o=e.apClickName,l=e.apClickData,c="/kr/ko/product/detail?onlineProdSn=".concat(n,"&tabMenuId=productReview");return(0,u.jsx)(I.Z,{isExternal:!0,href:c,"ap-click-area":a,"ap-click-name":o,"ap-click-data":l,children:(0,u.jsxs)("div",{className:"reviewCard",children:[(0,u.jsx)(ke.Z,{tagName:"div",className:"txt",html:i,disableSanitize:!1}),(0,u.jsx)("div",{className:"badgeArea",children:(0,u.jsxs)("div",{className:"icoStarWrap star".concat(t||0),children:[(0,u.jsx)("i",{className:"icoStar"}),(0,u.jsx)("i",{className:"icoStar"}),(0,u.jsx)("i",{className:"icoStar"}),(0,u.jsx)("i",{className:"icoStar"}),(0,u.jsx)("i",{className:"icoStar"})]})}),(0,u.jsx)("div",{className:"userArea",children:(0,u.jsx)("div",{className:"info",children:r})})]})})},Ce=i(85544),ye=function(e){var n,i=e.initialData,t=(0,d.useState)(i),r=t[0];t[1];return r?(0,u.jsxs)(E,{className:"gap--small",children:[(0,u.jsx)(R,{className:"module-heading--gift-review",children:r.cornerName}),(0,u.jsx)("div",{className:"module-gift-review",children:(0,u.jsxs)(C.t,{className:"swiper-container apSwiper--gift-review",slidesPerView:"auto",threshold:12,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},children:[null===(n=r.reviews)||void 0===n?void 0:n.map((function(e,n){var i,t,r=(e.reviewText||"").replace(/\uc120\ubb3c/g,'<strong class="txtPointBlue">\uc120\ubb3c</strong>');return(0,u.jsx)(y.o,{children:(0,u.jsxs)("div",{className:"module-gift-review__item",children:[(0,u.jsx)(we,{onlineProdSn:e.onlineProdSn,reviewTextHTML:r,reviewScore:e.reviewScore,reviewerDetailText:e.reviewerDetailText,apClickArea:"\uc120\ubb3c\ub9e4\uc7a5",apClickName:"\uc120\ubb3c\ub9e4\uc7a5_\ub9ac\ubdf0\ucf54\ub108_\uc0c1\ud488\ud3c9",apClickData:"".concat(e.brandName,"_").concat(e.onlineProdName)}),(0,u.jsx)("div",{className:"productCardList module__grid p-col1_m-col1",children:(0,u.jsx)(Ce.Z,{onlineProdSn:null!==(i=e.onlineProdSn)&&void 0!==i?i:0,imgUrl:null!==(t=e.imgUrl)&&void 0!==t?t:"",onlineProdName:e.onlineProdName,brandName:e.brandName,discountRate:e.discountRate,promotionName:e.baseOrdQty&&e.freeAwardQty?"".concat(e.baseOrdQty,"+").concat(e.freeAwardQty):void 0,discountedPrice:e.discountedPrice,standardPrice:e.standardPrice,isSwungDash:e.isSwungDash,isRate:!0,reviewAverage:e.reviewAverage,reviewCount:e.reviewCount,saleDisplayStatus:e.saleDisplayStatus,apClickArea:"\uc120\ubb3c\ub9e4\uc7a5",apClickName:"\uc120\ubb3c\ub9e4\uc7a5_\ub9ac\ubdf0\ucf54\ub108_\uc0c1\ud488",apClickData:"".concat(e.brandName,"_").concat(e.onlineProdName)})})]})},e.prodReviewSn)})),(0,u.jsx)("button",{className:"swiper-button-prev",children:(0,u.jsx)("i",{className:"atom-icon ic_angle_flicking_left_s30",children:"\uc774\uc804"})}),(0,u.jsx)("button",{className:"swiper-button-next",children:(0,u.jsx)("i",{className:"atom-icon ic_angle_flicking_right_s30",children:"\ub2e4\uc74c"})}),(0,u.jsx)("span",{className:"swiper-notification","aria-live":"assertive","aria-atomic":!0})]})})]}):null},Se=function(){var e=(0,_.Z)((function(e){var n,i;return(0,w.__generator)(this,(function(t){switch(t.label){case 0:n=e.apiManager,t.label=1;case 1:return t.trys.push([1,3,,4]),[4,n.apiGW.get("/display/v3/gift/real-reviews",{params:{menuPageCornerId:s.GIFT_REVIEW}})];case 2:return[2,t.sent().data];case 3:return i=t.sent(),T.Z.error(i,"prefetch home gift review error"),[3,4];case 4:return[2]}}
1))}));return function(n){return e.apply(this,arguments)}}(),Te=ye,Ze=i(30172),Pe=i(52997),Re=i(95186),Ee=i(86584),Ie=i(10787),Be=i(2346),Ae=i(55838),Fe=i(20151),Ge=i(45713);Ze.Z.use([Pe.Z,Re.Z,Ee.Z,Ie.Z]);function Me(e){var n,i,t,r,a=e.initialData,o=(0,S.Z)(),l=null===(n=(0,oe.Z)().memberInfo)||void 0===n?void 0:n.memberSn,c=(0,Fe.u)().matchNavigationType,s=o.isMobile?{}:{effect:"fade",fadeEffect:{crossFade:!0},speed:0,touchRatio:0},v=(0,d.useRef)(),m=(0,d.useRef)(),f=(0,d.useCallback)((function(e){var n,i;null===(n=v.current)||void 0===n||n.slideTo(e,300),null===(i=m.current)||void 0===i||i.slideTo(e,300)}),[]);(0,Be.v)((function(){c("back_forward")||(Ae.h.remove([l,"home/GiftMdPrdBanner/data"]),Ae.h.remove([l,"home/GiftMdPrdBanner/currentTabIndex"]))}));var p=(0,$.Z)((0,Ae.h)([l,"home/GiftMdPrdBanner/data"],a),1)[0],g=(0,$.Z)((0,Ae.h)([l,"home/GiftMdPrdBanner/currentTabIndex"],(function(){if(null===p||void 0===p?void 0:p.tabs){var e=p.tabs.length>3?3:p.tabs.length;return(0,D.xT)(0,e-1)}return 0})),2),h=g[0],x=g[1];return(0,d.useEffect)((function(){f(h)}),[f,h]),p&&p.tabs&&0!==p.tabs.length?(console.log({"data.tabs":p.tabs}),(0,u.jsx)(te.ZP,{children:(0,u.jsxs)(E,{children:[(0,u.jsx)(R,{children:p.cornerName}),(0,u.jsxs)("div",{className:"js-tab-swipe",children:[p.tabs&&(null===(i=p.tabs)||void 0===i?void 0:i.length)>1&&(0,u.jsx)(C.t,{className:"apSwiper--menuTab",slidesPerView:"auto",threshold:12,onSwiper:function(e){v.current=e,f(h)},children:null===(t=p.tabs)||void 0===t?void 0:t.slice(0,3).map((function(e,n){return(0,u.jsx)(y.o,{onClick:function(){return x(n)},children:(0,u.jsx)("button",{type:"button",className:P()({"is-active":h===n}),"ap-click-area":"\uc120\ubb3c\ub9e4\uc7a5","ap-click-name":"\uc120\ubb3c\ub9e4\uc7a5_\uccab\ubc88\uc9f8\uc790\uc720\ubc30\ub108\uc0c1\ud488\ud615\ucf54\ub108_\uc11c\ube0c\ud0ed","ap-click-data":"".concat(e.tabTitle),children:e.tabTitle})},e.tabNo)}))}),(0,u.jsxs)(C.t,(0,k.Z)((0,j.Z)({className:"apSwiper--contentsTabPanel",threshold:12,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},onSwiper:function(e){m.current=e,f(h)},onSlideChange:function(e){return x(e.realIndex)}},s),{children:[null===(r=p.tabs)||void 0===r?void 0:r.slice(0,3).map((function(e){var n,i=null!==(n=o.isMobile?e.mobileBannerImageUrl:e.pcBannerImageUrl)&&void 0!==n?n:"",t=(o.isMobile,e.mobileBannerReplaceText);return(0,u.jsx)(y.o,{children:(0,u.jsx)("div",{className:"module-banner-exhibition",children:(0,u.jsx)(Ge.Z,{productList:e.list,bannerTitle:e.mainText,bannerDescription:e.subText,bannerLinkUrl:e.linkUrl,bannerImgUrl:i,bannerImgAlt:t,apClickArea:"\uc120\ubb3c\ub9e4\uc7a5",apClickName:"\uc120\ubb3c\ub9e4\uc7a5_\uccab\ubc88\uc9f8\uc790\uc720\ubc30\ub108\uc0c1\ud488\ud615\ucf54\ub108_\ubc30\ub108",apClickData:"",productGtmTag:{apClickArea:"\uc120\ubb3c\ub9e4\uc7a5",apClickName:"\uc120\ubb3c\ub9e4\uc7a5_\uccab\ubc88\uc9f8\uc790\uc720\ubc30\ub108\uc0c1\ud488\ud615\ucf54\ub108_\uc0c1\ud488",apClickData:function(e){return"".concat(null===e||void 0===e?void 0:e.brandName,"_").concat(null===e||void 0===e?void 0:e.onlineProdName)}}})})},e.tabNo)})),(0,u.jsx)("button",{type:"button",className:"swiper-button-prev",children:(0,u.jsx)("i",{className:"atom-icon ic_angle_flicking_left_s30",children:"\uc774\uc804"})}),(0,u.jsx)("button",{type:"button",className:"swiper-button-next",children:(0,u.jsx)("i",{className:"atom-icon ic_angle_flicking_right_s30",children:"\ub2e4\uc74c"})})]}))]})]})})):null}var Le,De=function(){var e=(0,_.Z)((function(e){var n,i;return(0,w.__generator)(this,(function(t){switch(t.label){case 0:n=e.apiManager,t.label=1;case 1:return t.trys.push([1,3,,4]),[4,n.apiGW.get("/display/v3/gift/product-banners",{params:{menuPageCornerId:s.GIFT_MD_PRD_BANNER}})];case 2:return[2,t.sent().data];case 3:return i=t.sent(),T.Z.error(i,"[GiftMdPrdBanner] prefetch gift md prd banner api error"),[3,4];case 4:return[2]}}
1))}));return function(n){return e.apply(this,arguments)}}(),Oe=Me,Ue=(Le={},(0,N.Z)(Le,s.GIFT_BANNER,t),(0,N.Z)(Le,s.GIFT_PRD,r),(0,N.Z)(Le,s.GIFT_CATEGORY_QUICK,a),(0,N.Z)(Le,s.GIFT_CATEGORY,o),(0,N.Z)(Le,s.GIFT_REVIEW,l),(0,N.Z)(Le,s.GIFT_MD_PRD_BANNER,c),Le),We=!0;function He(e){var n,i,t=e.mountkey,r=e.moduleNames,a=e.moduleData,o=e.pageLayoutStatus;(0,x.Z)(),(0,h.Z)();var l=(0,v.v9)(f.yC);return(0,u.jsx)(b.Z,{headerType:g.Nc.MAIN,showHeader:!o||o.showHeader,showActionBar:!o||o.showActionBar,showFooter:!0,showFloatingButton:!0,showFloatingBanner:!0,headerUtils:["search","cart"],seo:(0,p.K)(),metaTitle:"\uc120\ubb3c\ud558\uae30 | \uc544\ubaa8\ub808\ubab0",metaThemeColor:(null===l||void 0===l||null===(n=l.homeLogo)||void 0===n||null===(i=n.defaultLogo)||void 0===i?void 0:i.bgColor)||m.l.COLOR_PALETTE.WHITE,headerHasBottomLine:!0,children:(0,u.jsxs)(d.Fragment,{children:[(0,u.jsx)("h2",{className:"blind",children:"\uc120\ubb3c\ucd94\ucc9c"}),(0,u.jsx)("section",{className:"page__display__gift",children:r.map((function(e){var n=Ue[e];return n?(0,u.jsx)(n.default,{initialData:a[e]},e):null}))})]},t)})}},54854:function(e,n,i){"use strict";i.d(n,{J:function(){return c}});var t=i(70865),r=i(96670),a=i(52322),o=(i(2784),i(72779)),l=i.n(o);function c(e){var n=e.className,i=e.button,o=e.children;return(0,a.jsxs)("div",{className:l()("nodataImg",n),children:[(0,a.jsx)("p",{className:"text",children:o}),i&&(0,a.jsxs)("button",(0,r.Z)((0,t.Z)({type:"button",className:l()("btnMoreLarge",i.className),onClick:i.onClick},i.gtmClick),{children:[i.icon&&(0,a.jsx)("span",{className:l()("icon",i.icon)}),(0,a.jsx)("em",{className:"emphasis",children:i.text})]}))]})}n.Z=c},36271:function(e,n,i){"use strict";i.d(n,{Z:function(){return d}});var t=i(70865),r=i(96670),a=i(52322),o=i(2784),l=i(72779),c=i.n(l),s=i(43952),u=i(98395);var d=function e(n){var i,l=n.valueKey,d=n.nameKey,v=n.list,m=n.selectedValue,f=n.onSelect,p=n.depth,g=void 0===p?1:p,h=n.maxDepth,x=void 0===h?1:h,b=n.showsAll,N=void 0!==b&&b,_=n.wrapperAs,j=n.wrapperClassName,k=n.gtmSelect,w=(0,o.useRef)(),C=(0,o.useMemo)((function(){return v.find((function(e){var n,i;return e[l]===m||(!!(null===(n=e.children)||void 0===n?void 0:n.some((function(e){return e[l]===m})))||!!(null===(i=e.children)||void 0===i?void 0:i.some((function(e){var n;return null===(n=e.children)||void 0===n?void 0:n.some((function(e){return e[l]===m}))}))))}))}),[v,m,l]),y=(0,o.useMemo)((function(){return v.findIndex((function(e){return e===C}))}),[v,C]);(0,o.useEffect)((function(){var e;y>-1&&(null===(e=w.current)||void 0===e||e.slideTo(y,300))}),[y]);var S=(0,o.useCallback)((function(e){e.target.blur()}),[]),T=Boolean(null===C||void 0===C||null===(i=C.children)||void 0===i?void 0:i.length)&&g<x,Z=null!==_&&void 0!==_?_:o.Fragment,P=_?{className:"function"===typeof j?j({depth:g,hasNextDepth:T}):j}:{};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Z,(0,r.Z)((0,t.Z)({},P),{children:(0,a.jsxs)(s.t,{className:"apSwiper--lineTab",slidesPerView:"auto",threshold:12,onSwiper:function(e){return w.current=e},children:[(Array.isArray(N)?null===N||void 0===N?void 0:N[g-1]:N)&&(0,a.jsx)(u.o,{children:(0,a.jsx)("button",(0,r.Z)((0,t.Z)({type:"button",className:c()({on:!C}),onClick:function(){return null===f||void 0===f?void 0:f()}},C?null===k||void 0===k?void 0:k(void 0,g):{}),{onFocus:S,children:"\uc804\uccb4"}))}),v.map((function(e){return(0,a.jsx)(u.o,{children:(0,a.jsx)("button",(0,r.Z)((0,t.Z)({type:"button",className:c()({on:e[l]===(null===C||void 0===C?void 0:C[l])}),onClick:function(){m!==e[l]&&(null===f||void 0===f||f(e,g))}},m===e[l]?{}:null===k||void 0===k?void 0:k(e,g)),{onFocus:S,children:e[d]}))},String(e[l]))}))]})})),T&&(0,a.jsx)(e,{valueKey:l,nameKey:d,list:(null===C||void 0===C?void 0:C.children)||[],selectedValue:m,onSelect:function(e){return null===f||void 0===f?void 0:f(null!==e&&void 0!==e?e:C)},depth:g+1,maxDepth:x,showsAll:N,wrapperAs:_,wrapperClassName:j,gtmSelect:k})]})}},38849:function(e,n,i){"use strict";i.d(n,{r:function(){return u}});var t=i(52322),r=i(2784),a=i(43952),o=i(98395),l=i(72779),c=i.n(l),s=i(94225);function u(e){var n=e.className,i=e.backgroundColor,l=e.children,u=(0,r.useRef)(),d=(0,s.y1)((function(){var e;return null===(e=u.current)||void 0===e?void 0:e.updateSlides()}),100);return(0,r.useEffect)((function(){d()})),(0,t.jsx)(a.t,{className:c()("apSwiper--textTab",n),slidesPerView:"auto",threshold:12,style:{backgroundColor:i},onSwiper:function(e){u.current=e},children:r.Children.map(l,(function(e){if((0,r.isValidElement)(e))return(0,t.jsx)(o.o,{children:e})}))})}},38269:function(e,n,i){"use strict";i.d(n,{L:function(){return c}});var t=i(70865),r=i(96670),a=i(52322),o=(i(2784),i(72779)),l=i.n(o);function c(e){var n=e.className,i=e.borderColor,o=e.textColor,c=e.backgroundColor,s=e.children,u=e.onClick,d=e.gtmClick;return(0,a.jsx)("button",(0,r.Z)((0,t.Z)({type:"button",className:l()("btnRound",n),style:{backgroundColor:c,color:o,borderColor:i},onClick:u},d),{children:s}))}},60491:function(e,n,i){"use strict";i.d(n,{f8:function(){return f}});var t=i(70865),r=i(96670),a=i(52322),o=i(2784),l=i(72779),c=i.n(l),s=i(38849),u=i(38269),d=i(72139);function v(e){var n=e.label,i=void 0===n?"\uc548\ub0b4":n,t=e.tooltipHtml,r=o.useRef(null),l=(0,o.useState)(!1),s=l[0],u=l[1];return(0,o.useEffect)((function(){if(s){var e=function(e){var n=e.target;r.current&&!m(n,r.current)&&u(!1)};return window.addEventListener("click",e),function(){window.removeEventListener("click",e)}}}),[s]),(0,a.jsxs)("div",{className:c()("tooltip",{show:s}),children:[(0,a.jsxs)("button",{className:"btnOpenTooltip",onClick:function(){return u(!0)},children:[(0,a.jsx)("span",{className:"icon icoTooltipInfo"}),(0,a.jsx)("span",{className:"blind",children:i})]}),(0,a.jsx)("div",{ref:r,className:"layerTooltip",children:(0,a.jsx)(d.Z,{tagName:"p",className:"txtTip",html:t})})]})}var m=function(e,n){return!!e&&(e===n||m(e.parentElement,n))};function f(e){var n=e.buttons,i=e.fixedButtonIds,l=e.backgroundColor,d=e.onButtonClick,m=e.gtmButtonClick,f=e.resetButton,p=(0,o.useMemo)((function(){return n.filter((function(e){return null===i||void 0===i?void 0:i.includes(e.id)}
1))}),[n,i]),g=(0,o.useMemo)((function(){return n.filter((function(e){return!(null===i||void 0===i?void 0:i.includes(e.id))}))}),[n,i]),h=(0,o.useCallback)((function(e,n){var i=!!e.tooltipHtml?"div":o.Fragment;return(0,a.jsxs)(o.Fragment,{children:[(0,a.jsxs)(i,{children:[e.addonButton?(0,a.jsxs)("div",{className:c()("btnRound",{on:e.isActive}),style:{backgroundColor:e.backgroundColor,color:e.textColor,borderColor:e.borderColor},children:[(0,a.jsx)("button",(0,r.Z)((0,t.Z)({type:"button",className:"text",onClick:function(){return null===d||void 0===d?void 0:d(e)}},null===m||void 0===m?void 0:m(e)),{children:e.label})),(0,a.jsx)("button",(0,t.Z)({type:"button",className:c()("icon",e.addonButton.icon),title:e.addonButton.label,onClick:e.addonButton.onClick},e.addonButton.gtmClick))]}):(0,a.jsxs)(u.L,{className:c()(e.className,{on:e.isActive}),backgroundColor:e.backgroundColor,textColor:e.textColor,borderColor:e.borderColor,onClick:function(){return null===d||void 0===d?void 0:d(e)},gtmClick:null===m||void 0===m?void 0:m(e),children:[e.beforeIcon&&(0,a.jsx)("span",{className:c()("icon",e.beforeIcon)}),(0,a.jsx)("span",{className:"text",children:e.label}),e.afterIcon&&(0,a.jsx)("span",{className:c()("icon",e.afterIcon)})]}),e.tooltipHtml&&(0,a.jsx)(v,{label:e.tooltipLabel,tooltipHtml:e.tooltipHtml})]}),(null===n||void 0===n?void 0:n.hasBar)&&(0,a.jsx)("span",{className:"bar"})]},e.id)}),[m,d]);return(0,a.jsxs)(s.r,{backgroundColor:l,children:[p.map((function(e,n){return h(e,{hasBar:n===p.length-1})})),(null===f||void 0===f?void 0:f.isShow)&&(0,a.jsxs)(u.L,{className:"small"===f.type?"refresh--small":"refresh",onClick:f.onClick,gtmClick:f.gtmClick,children:[(0,a.jsx)("span",{className:"icon icoRefresh"}),(0,a.jsx)("span",{className:"text",children:f.label})]}),g.map((function(e){return h(e)}))]})}},41462:function(e,n,i){"use strict";i.d(n,{Z:function(){return o}});var t=i(2784),r=i(89033),a=i(41765);function o(){var e,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=i.cacheTime,l=i.limit,c=i.storageKey,s=i.storageType,u=(0,a.Z)(),d=null!==(n=null===(e=u.memberInfo)||void 0===e?void 0:e.memberSn)&&void 0!==n?n:-1,v=(0,t.useMemo)((function(){return new r.Z({cacheTime:o,limit:l,storageKey:c,storageType:s,memberSn:d})}),[o,l,c,s,d]);return v}}},function(e){e.O(0,[9097,1423,1327,949,423,9159,172,7637,7104,4636,2759,8065,4739,5129,7790,9329,1752,7776,9774,2888,179],(function(){return n=6717,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.