1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6485],{82056:function(e,t,n){"use strict";n.d(t,{V:function(){return c}});var r=n(87462),i=n(63366),o=n(67294),a=n(85893);let s=["value"],l=o.createContext(),c=()=>{let e=o.useContext(l);return null!=e&&e};t.Z=function(e){let{value:t}=e,n=(0,i.Z)(e,s);return(0,a.jsx)(l.Provider,(0,r.Z)({value:null==t||t},n))}},71652:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/benefits/[contentId]",function(){return n(75754)}])},76481:function(e,t,n){"use strict";function r(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];clearTimeout(t),t=setTimeout(()=>{e.apply(this,i)},n)}return r.clear=()=>{clearTimeout(t)},r}n.d(t,{Z:function(){return r}})},57223:function(e,t){"use strict";t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}},14712:function(e,t){"use strict";t.Z=function(e){return"string"==typeof e}},8466:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},1599:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(8466);function i(e){return(0,r.Z)(e).defaultView||window}},42237:function(e,t,n){"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},22552:function(e,t,n){"use strict";let r=n(67294).useLayoutEffect;t.Z=r},6063:function(e,t,n){"use strict";var r=n(67294),i=n(22552);t.Z=function(e){let t=r.useRef(e);return(0,i.Z)(()=>{t.current=e}),r.useRef(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0,t.current)(...n)}).current}},57524:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294),i=n(42237);function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo(()=>t.every(e=>null==e)?null:e=>{t.forEach(t=>{(0,i.Z)(t,e)})},t)}},83386:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(87462),i=n(63366),o=n(57524),a=n(14712),s=n(90512),l=n(57223),c=function(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t},d=function(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:o,className:a}=e;if(!t){let e=(0,s.Z)(null==n?void 0:n.className,a,null==o?void 0:o.className,null==i?void 0:i.className),t=(0,r.Z)({},null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),l=(0,r.Z)({},n,o,i);return e.length>0&&(l.className=e),Object.keys(t).length>0&&(l.style=t),{props:l,internalRef:void 0}}let d=(0,l.Z)((0,r.Z)({},o,i)),u=c(i),m=c(o),p=t(d),g=(0,s.Z)(null==p?void 0:p.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==i?void 0:i.className),h=(0,r.Z)({},null==p?void 0:p.style,null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),f=(0,r.Z)({},p,n,m,u);return g.length>0&&(f.className=g),Object.keys(h).length>0&&(f.style=h),{props:f,internalRef:p.ref}};let u=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];var m=function(e){var t,n;let{elementType:s,externalSlotProps:l,ownerState:c,skipResolvingSlotProps:m=!1}=e,p=(0,i.Z)(e,u),g=m?{}:"function"==typeof l?l(c,void 0):l,{props:h,internalRef:f}=d((0,r.Z)({},p,{externalSlotProps:g})),v=(0,o.Z)(f,null==g?void 0:g.ref,null==(t=e.additionalProps)?void 0:t.ref);return n=(0,r.Z)({},h,{ref:v}),void 0===s||(0,a.Z)(s)?n:(0,r.Z)({},n,{ownerState:(0,r.Z)({},n.ownerState,c)})}},90639:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(99107),i=function(e){if("string"!=typeof e)throw Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},27876:function(e,t,n){"use strict";var r=n(76481);t.Z=r.Z},83772:function(e,t,n){"use strict";var r=n(8466);t.Z=r.Z},51520:function(e,t,n){"use strict";var r=n(1599);t.Z=r.Z},27229:function(e,t,n){"use strict";var r=n(22552);t.Z=r.Z},30403:function(e,t,n){"use strict";var r=n(6063);t.Z=r.Z},7491:function(e,t,n){"use strict";var r=n(57524);t.Z=r.Z},39693:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(85893),i=n(69348),o=n(53060),a=n(28907),s=n(80149),l=n(4480);n(44460);var c=n(83879);function d(e){let{customTheme:t,tabList:n=[],currentIndex:d,setCurrentIndex:u,handleClickTabFunc:m=()=>{},tabStyle:p,variant:g="scrollable"}=e,h=(0,l.sJ)(s.cz),f=(0,c.Z)(h);return(0,r.jsx)(i.Z,{theme:t,children:(0,r.jsx)(o.Z,{value:d,onChange:(e,t)=>
1{u(t)},variant:g,sx:{".MuiTabs-indicator":{backgroundColor:f.color.primary.main}},children:null==n?void 0:n.map((e,t)=>{let{id:n,name:i}=e;return(0,r.jsx)(a.Z,{label:i,"data-id":t,"data-unqid":n,"data-name":i,onClick:e=>m(e,t,n),sx:p},t)})})})}},67470:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(85893),i=n(50066),o=n(36334),a=n(44460),s=n(30719),l=n(93220);function c(e){let{slidesPerView:t,spaceBetween:n,src:i,costPriceNone:a,btnThree:c,productStatus:m,btnStatus:p,TimeDiscount:g,height:h,medium:f,small:v,prodSmall:b,present:x,BestNumTag:y,mbNone:w,products:j,noNavigation:k,DealerStore:S,ssop:Z,membership:C,mobHeight:N,mobWrapWidth:E,mobMgb:I,mobMgt:T,mobMgr:P,mobWidth:A}=e;return(0,r.jsx)(d,{children:(0,r.jsx)(u,{navigation:!0,pagination:{type:"progressbar"},modules:[l.tl,l.W_],mbNone:w,present:x,breakpoints:{320:{slidesPerView:2.46,spaceBetween:10},499:{slidesPerView:t,spaceBetween:n}},children:null==j?void 0:j.map(e=>(0,r.jsx)(s.o5,{children:(0,r.jsx)(o.Z,{height:h,medium:f,small:v,prodSmall:b,present:x,src:i||e.src,costPriceNone:a,tag:e.tag,btnThree:e.btnThree,productStatus:e.productStatus,btnStatus:e.btnStatus,TimeDiscount:g,BestNumTag:y&&e.key,DealerStore:S,ssop:Z,membership:C,mobHeight:N,mobWrapWidth:E,mobMgb:I,mobMgr:P,mobWidth:A})},e.id))})})}n(66761),n(60853),n(67555),n(41664),n(84097),n(62722),n(67563);let d=i.ZP.div.withConfig({componentId:"sc-d2eb861a-0"})(["width:100%;max-width:1300px;margin:0 auto;"]),u=(0,i.ZP)(s.tq).withConfig({componentId:"sc-d2eb861a-1"})(["position:relative;padding-bottom:6.2rem;margin-bottom:6rem;"," "," ","{padding-bottom:3rem;margin-bottom:4rem;}.swiper-wrapper{}.swiper-pagination-progressbar{bottom:0 !important;top:auto !important;","{width:97.5%;}}.swiper-pagination-progressbar-fill{background:#000 !important;}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:0;}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:0;}.swiper-button-next,.swiper-button-prev{top:30%;","{display:none;}}"],e=>{let{mbNone:t}=e;if(t)return(0,i.iv)(["margin-bottom:0;"])},e=>{let{present:t}=e;if(t)return(0,i.iv)(["padding-bottom:3.7rem;"])},a.Z.device.responsive,a.Z.device.responsive,a.Z.device.responsive)},17198:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(85893),i=n(5916),o=n(80149),a=n(84097),s=n(39693),l=n(34980),c=n(4480);n(44460);var d=n(83879);function u(e){let{mgb:t="5rem",mobMgt:n="0",mobMgb:i="1.5rem",useBg:u,categories:f,currentIndex:v,setCurrentIndex:b,handleClickTabFunc:x,keepPcStyle:y}=e,w=(0,l.Z)(),j=(0,c.sJ)(o.cz),k=(0,d.Z)(j);return(0,r.jsx)(a.Z,{mgb:t,mobMgt:n,mobMgb:i,className:"category-tabs".concat(y?" pcType":" moType").concat(u?" useBg":""),children:y?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.Z,{tabStyle:{color:"#000","&.Mui-selected":{color:"#000"}},customTheme:h,tabList:f,currentIndex:v,setCurrentIndex:b,handleClickTabFunc:x})}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.Z,{tabStyle:w?{color:"#000","&.Mui-selected":{color:"#fff"}}:{color:u?"#fff":"#000","&.Mui-selected":{color:u?"#fff":"#000"}},customTheme:"HQS"===j?w?m(k):u?g:h:w?p(k):u?g:h,tabList:f,currentIndex:v,setCurrentIndex:b,handleClickTabFunc:x})})})}let m=e=>(0,i.Z)({components:{MuiTabs:{defaultProps:{TabIndicatorProps:{style:{display:"none"}}},styleOverrides:{root:{},scroller:{display:"flex"},flexContainer:{alignItems:"center"}}},MuiTab:{styleOverrides:{root:{padding:"10px 10px",fontSize:"1.4rem",minWidth:"50px",minHeight:"0",borderRadius:20,border:"1px solid #ccc",marginRight:"0.9rem","&.Mui-selected":{backgroundColor:null==e?void 0:e.color.primary.main,border:"1px solid #000"}}}}}}),p=e=>(0,i.Z)({components:{MuiTabs:{defaultProps:{TabIndicatorProps:{style:{display:"none"}}},styleOverrides:{root:{},scroller:{display:"flex"},flexContainer:{alignItems:"center"}}},MuiTab:{styleOverrides:{root:{padding:"10px 10px",fontSize:"1.4rem",minWidth:"50px",minHeight:"0",borderRadius:20,border:"1px solid #ccc",marginRight:"0.9rem","&.Mui-selected":{backgroundColor:null==e?void 0:e.color.primary.main,border:"1px solid #34041F"}}}}}}),g=(0,i.Z)({components:{MuiTabs:{defaultProps:{TabIndicatorProps:{style:{display:"block",background:"#fff",height:"2px"}}}},MuiTab:{styleOverrides:{root:{paddingLeft:29.5,paddingRight:29.5,fontSize:"2rem","&.Mui-selected":{fontSize:"20px",fontWeight:600}}}}}}),h=(0,i.Z)({components:{MuiTabs:{defaultProps:{}},MuiTab:{styleOverrides:{root:{paddingLeft:29.5,paddingRight:29.5,fontSize:"2rem","&.Mui-selected":{fontSize:"20px",fontWeight:600}}}}}})},47109:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(85893),i=n(67294),o=n(41664),a=n.n(o),s=n(50066),l=n(30719),c=n(93220),d=n(44460);n(66761),n(60853),n(67555);var u=n(6023),m=n(34980);n(84097),n(62722),n(67563);var p=n(14609),g=n(48422);function h(e){var t;let{height:n,fontSize:o,addImage:s,imageLabel:d,products:h=[],slidesPerView:b=4,mobileSlidesPerView:x="auto",tabletSlidesPerView:y=4,spaceBetween:w=20,mobileSpaceBetween:j=10,currentIndex:k,hasViewMoreBtn:S,paddingLeft:Z,givenSizeToShowMoreBtn:C,hrefText:N,handleClick:E,sortList:I,isFromLiquor:T,marginLeft:P,bulletState:A=!1,moreSlideHeight:q,alignLeft:M=(null==h?void 0:h.length)<b,center:L=!0,viewT
1ype:z,paginationType:B=""}=e,{t:_}=(0,g.ZK)(),H=(0,i.useRef)(null),F=(0,m.Z)(),[U,Y]=(0,i.useState)(0);(0,i.useEffect)(()=>{var e,t;null==H||null===(t=H.current)||void 0===t||null===(e=t.swiper)||void 0===e||e.slideTo(0,1)},[k]),(0,i.useEffect)(()=>{var e,t;null===(t=H.current)||void 0===t||null===(e=t.swiper)||void 0===e||e.slideTo(U)},[U]);let[O,R]=(0,i.useState)(!1);return(0,r.jsxs)(f,{children:[O&&(0,r.jsx)(p.Z,{modalControl:O,setModalControl:R,setParentModalControl:!1}),(0,r.jsxs)(v,{$alignLeft:M,marginLeft:P,paddingLeft:Z,$center:L,ref:H,$bulletState:A,modules:[c.W_,c.tl],navigation:!0,pagination:{type:B},className:"mySwiper customSwiper prodSwiper ".concat(z),length:h.length,slidesPerView:x,spaceBetween:j,slidesPerGroup:1,loop:!!F&&h.length>3,breakpoints:{768:{pagination:{type:"progressbar"},slidesPerView:b,spaceBetween:w}},$viewType:z,children:[null==h?void 0:null===(t=h.slice(0,S&&C&&C>0?C:h.length))||void 0===t?void 0:t.map((e,t)=>(0,r.jsx)(l.o5,{style:{display:"flex",flexDirection:"column",justifyContent:"center",minWidth:"153px"},children:(0,r.jsx)(u.Z,{isFromLiquor:T,imageLabel:d,product:e,index:t,height:n,fontSize:o,setIsShowNotMembershipAccPopup:R,viewType:z})},t)),!F&&S&&(null==h?void 0:h.length)>(C||4)&&(0,r.jsx)(l.o5,{children:N?(0,r.jsx)(a(),{legacyBehavior:!0,href:N||"",children:(0,r.jsx)("a",{className:"more-box",children:(0,r.jsx)("div",{className:"btn-section product",children:(0,r.jsx)("div",{className:"more",children:(0,r.jsx)("span",{className:"text",children:_("common.message40")})})})})}):(0,r.jsx)("div",{className:"more-box",onClick:()=>E(I),children:(0,r.jsx)("div",{className:"btn-section product",children:(0,r.jsx)("div",{className:"more",children:(0,r.jsx)("span",{className:"text",children:_("common.message40")})})})})}),F&&S&&(null==h?void 0:h.length)>20&&(0,r.jsx)(l.o5,{children:N?(0,r.jsx)(a(),{legacyBehavior:!0,href:N||"",children:(0,r.jsx)("a",{className:"more-box",children:(0,r.jsx)("div",{className:"btn-section product",children:(0,r.jsx)("div",{className:"more",children:(0,r.jsx)("span",{className:"text",children:_("common.message40")})})})})}):(0,r.jsx)("div",{className:"more-box",onClick:()=>E(I),children:(0,r.jsx)("div",{className:"btn-section product",children:(0,r.jsx)("div",{className:"more",children:(0,r.jsx)("span",{className:"text",children:_("common.message40")})})})})})]})]})}let f=s.ZP.div.withConfig({componentId:"sc-76950600-0"})(["position:relative;& .moreSlideMob{border:1px solid #dfdfdf;border-radius:15px;height:",";& > a{height:100%;display:flex;align-items:center;justify-content:center;}}","{width:100%;}"],e=>e.moreslideheighprops,d.Z.device.responsive),v=(0,s.ZP)(l.tq).withConfig({componentId:"sc-76950600-1"})([".swiper-wrapper{justify-content:"," !important;","{justify-content:left !important;}.swiper-slide{","{width:36vw !important;}}}"],e=>e.$alignLeft?"center":"left",d.Z.device.responsive,d.Z.device.responsive)},64169:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(85893),i=n(67294),o=n(50066),a=n(62722),s=n(67563),l=n(85518),c=n(44460),d=n(48422);let u=(e,t,n,r,i,o,a,s,l)=>{Kakao.Share.sendCustom({templateId:89832,templateArgs:{productId:e,productImage:t,name:n,originalPrice:r,discountRate:i,discountPrice:o,CP:a,buyButtonText:"구매í기",callbackUrl:l},callback:()=>{},serverCallbackArgs:{key:"value"}})},m=(e,t,n,r,i,o)=>{Kakao.Share.sendCustom({templateId:45520,templateArgs:{pageType:e,storyId:t,contentId:n,title:r,image:i,callbackUrl:o},callback:()=>{},serverCallbackArgs:{key:"value"}})},p=(e,t,n,r,i)=>{Kakao.Share.sendCustom({templateId:123106,templateArgs:{eventId:e,eventTitle:t,eventContent:r,eventImage:n,callbackUrl:i},callback:()=>{},serverCallbackArgs:{key:"value"}})},g=(e,t,n,r)=>{Kakao.Share.sendCustom({templateId:95856,templateArgs:{eventId:e,eventTitle:t,eventImage:n,callbackUrl:r},callback:()=>{},serverCallbackArgs:{key:"value"}})},h=(e,t,n,r)=>{Kakao.Share.sendCustom({templateId:95863,templateArgs:{exhibitionId:e,exhibitionTitle:t,exhibitionImage:n,callbackUrl:r},callback:()=>{},serverCallbackArgs:{key:"value"}})},f=(e,t,n)=>{Kakao.Share.sendCustom({templateId:95086,templateArgs:{title:e,uri:t,callbackUrl:n},callback:()=>{},serverCallbackArgs:{key:"value"}})},v=(e,t,n,r)=>{Kakao.Share.sendCustom({templateId:90360,templateArgs:{brandId:e,brandTitle:t,brandImage:n,callbackUrl:r},callback:()=>{},serverCallbackArgs:{key:"value"}})},b=e=>{window.open("https://www.facebook.com/sharer/sharer.php?u=".concat(e,"&src=").concat(e),"","width=500, height=600")},x=(e,t,n)=>{window.open("http://blog.naver.com/openapi/share?url=".concat(encodeURIComponent(e),'&title="').concat(encodeURIComponent(t)||(null==n?void 0:n.brandTitle),'"'),"ë¤ì´ë² ë¸ë¡ê·¸ ê³µì í기","width=500, height=600")};var y=n(44643);n(11163);var w=n(40182);n(64819);var j=n(4480),k=n(80149);function S(e){let{open:t,setOpen:n,type:o,product:c,hostname:S,storyInfo:E,brandInfo:I,eventInfo:T,linkInfo:P,exhibitionInfo:A}=e,{t:q,ready:M,thtml:L}=(0,d.ZK)();(0,j.sJ)(k.cz);let[z,B]=(0,i.useState)(),[_,H]=(0,i.useState)(""),[F,U]=(0,i.useState)(!1);(0,i.useEffect)(()=>{l.tq&&(window.android||window.webkit)&&U(!0)},[]),(0,i.useEffect)(()=>{var e,t;B(null===(t=window)||void 0===t?void 0:null===(e=t.location)||void 0===e?void 0:e.href),(async()=>{var e;let t=await (0,w.p$)();H(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.exchangePrice.split(",").join(""))})()},[]);let{id:Y,productImageUrl:O,productName:R,price:K}=null!=c?c:{id:"",productImageUrl:"",productName:"",price:""},{storyId:D,contentId:W,title:G,image:J}=null!=E?E:{storyId:"",contentId:"",title:"",image:""},{brandId:$,brandTitle:X,brandImage:V}=null!=I?I:{brandId:"",brandTitle:"",brandImage:""},{eventId:Q,eventTitle:ee,eventImage:et}=null!=T?T:{eventId:"",eventTitle:"",eventImage:""},{exhibitionId:en,exhibitionTitle:er,exhibitionImage:ei}=null!=A?A:{exhibitionId:"",exhibitionTitle:"",exhibitionImage:""};(0,i.useEffect)(()=>
1{if(!t)return;let e=document.querySelector("body");return e.style.overflow="hidden",()=>e.style.removeProperty("overflow")},[t]);let eo=(e,t,n)=>{l.tq&&(window.android?window.android.shareWithInsta(e,t,n):window.webkit&&window.webkit.messageHandlers.shareWithInsta.postMessage(JSON.stringify({url:e,productName:t,imageUrl:n})))};return(0,r.jsx)(r.Fragment,{children:t&&(0,r.jsx)(y.Z,{open:t,setOpen:n,noTitle:!0,closeBtn:!0,width:"auto",height:"auto",pdt:"10rem",children:(0,r.jsxs)(Z,{children:[(0,r.jsx)(s.Z,{as:"strong",dsp:"block",size:"2rem",padding:"2rem 0 2rem",children:q("common.message70")}),(0,r.jsxs)(C,{children:[(0,r.jsxs)(N,{onClick:()=>{var e,t,n,r,i,a,s,l,c,d;if("product"===o){u(Y,O,R,parseInt((null==K?void 0:K.originPrice)*_),parseInt(null==K?void 0:null===(e=K.discountRate)||void 0===e?void 0:e.split("%")[0]),null==K?void 0:null===(t=K.byCurrency)||void 0===t?void 0:t.krw,q("common.message38"),0,null===(n=window)||void 0===n?void 0:n.location.origin);return}if("story"===o){m("stories",D,W,G,J,null===(r=window)||void 0===r?void 0:r.location.origin);return}if("influencer-review"===o){m("influencer-reviews",D,W,G,J,null===(i=window)||void 0===i?void 0:i.location.origin);return}if("brand"===o){v($,X,V,null===(a=window)||void 0===a?void 0:a.location.origin);return}if("event"===o){"EVT250728141540508"===Q?p(Q,"ì¹êµ¬ê° í¬ì¸í¸ ì 물ì ë³´ëì´ì \uD83C\uDF81","https://koreanairdfs.com/media/test/kakaoeventfriendinvite.jpg","ì¹êµ¬ìê² ë°ì ì´ëì½ë ì
ë ¥íë©´ ì¹êµ¬ë ëë 5,000P ííì´!",null===(s=window)||void 0===s?void 0:s.location.origin):g(Q,ee,et,null===(l=window)||void 0===l?void 0:l.location.origin);return}if("exhibition"===o){h(en,er,ei,null===(c=window)||void 0===c?void 0:c.location.origin);return}if("link"===o){f(P.title,P.uri,null===(d=window)||void 0===d?void 0:d.location.origin);return}},children:[(0,r.jsx)(a.Z,{pc:{width:"70px",height:"70px"},src:"/assets/icons/share-kakao.png",alt:"ì¹´ì¹´ì¤í¡ ê³µì í기"}),(0,r.jsx)(s.Z,{children:q("member.check.message357")})]}),(0,r.jsxs)(N,{mgt:"4rem",onClick:()=>b(z),children:[(0,r.jsx)(a.Z,{pc:{width:"70px",height:"70px"},src:"/assets/icons/share-facebook.png",alt:"íì´ì¤ë¶ ê³µì í기"}),(0,r.jsx)(s.Z,{children:q("product.message95")})]}),F&&(0,r.jsxs)(N,{mgt:"4rem",onClick:()=>{let e="";(null==c?void 0:c.productImageUrl)?e=null==c?void 0:c.productImageUrl:(null==E?void 0:E.image)?e=null==E?void 0:E.image:(null==I?void 0:I.brandImage)?e=null==I?void 0:I.brandImage:(null==T?void 0:T.eventImage)?e=null==T?void 0:T.eventImage:(null==A?void 0:A.exhibitionImage)&&(e=null==A?void 0:A.exhibitionImage),eo(z,R,e)},children:[(0,r.jsx)(a.Z,{pc:{width:"70px",height:"70px"},src:"/assets/icons/share-insta.png",alt:"ì¸ì¤íê·¸ë¨ ê³µì í기"}),(0,r.jsx)(s.Z,{children:q("product.message96")})]}),(0,r.jsxs)(N,{mgt:"4rem",onClick:()=>x(z,R,I),children:[(0,r.jsx)(a.Z,{pc:{width:"70px",height:"70px"},src:"/assets/icons/icon-invite-naverBlog2.png",alt:"ë¤ì´ë²ë¸ë¡ê·¸ ê³µì í기"}),(0,r.jsx)(s.Z,{children:q("common.message71")})]}),(0,r.jsxs)(N,{mgt:"4rem",onClick:()=>{l.tq&&window.android?window.android.copyToClipboard(location.href):navigator.clipboard.writeText(location.href).then(()=>{alert(q("common.message9"))},()=>alert(q("common.message10")))},children:[(0,r.jsx)(a.Z,{pc:{width:"70px",height:"70px"},src:"/assets/icons/icon-invite-url2.png",alt:"URL ë³µì¬"}),(0,r.jsx)(s.Z,{children:q("common.message72")})]})]})]})})})}let Z=o.ZP.div.withConfig({componentId:"sc-9bfb4a0c-0"})(["text-align:left;padding-bottom:2rem;max-width:345px;width:100%;"]),C=o.ZP.div.withConfig({componentId:"sc-9bfb4a0c-1"})(["display:grid;grid-template-columns:repeat(3,78px);grid-column-gap:40px;grid-row-gap:20px;","{grid-column-gap:25px;}","{grid-template-columns:repeat(2,78px);grid-column-gap:20px;justify-content:center;}"],c.Z.device.mobileMin2,c.Z.device.mobileMin),N=o.ZP.div.withConfig({componentId:"sc-9bfb4a0c-2"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;span{display:block;margin-top:10px;font-size:1.5rem;font-family:'Pretendard';}"])},90481:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(85893),i=n(50066);function o(e){let{children:t,medium:n,xsmall:i}=e;return(0,r.jsx)(a,{className:"merchandise-wrap".concat(n?" medium":"").concat(i?" xsmall":""),children:t})}n(6023),n(44460);let a=i.ZP.div.withConfig({componentId:"sc-7404209-0"})([""])},73568:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(85893);n(25675);var i=n(50066);n(44460);var o=n(71349);n(25935);var a=n(41664),s=n.n(a),l=n(67294),c=n(84097);n(67470),n(82760);var d=n(57595),u=n(62722),m=n(64169),p=n(47109),g=n(11163),h=n(99430),f=n(4480),v=n(80149),b=n(48422);function x(e){var t,n,i;let{storyItem:a}=e,{t:d,isEn:x}=(0,b.ZK)(),y=(0,o.Z)(a.content),w=(0,o.Z)(a.contentEn),[j,k]=(0,l.useState)(!1);(0,g.useRouter)();let[S,Z]=(0,f.FV)(v.C1);return(0,l.useEffect)(()=>(Z({title:null==a?void 0:a.title,keyword:null==a?void 0:a.seoKwrd,image:null==a?void 0:a.imageMainURL}),()=>{Z({title:"",keyword:"",image:""})}),[a]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.Z,{open:j,setOpen:k,type:"story",storyInfo:{storyId:null==a?void 0:a.id,contentId:null==a?void 0:a.contentId,title:null==a?void 0:a.title,image:null==a?void 0:null===(n=a.content)||void 0===n?void 0:null===(t=n.split("<img src='")[1])||void 0===t?void 0:t.split("' data-filename")[0]}}),(0,r.jsxs)("div",{className:"page-wrap exh-detail_org stories",children:[(0,r.jsx)(h.Z,{array:[{index:1,ko:"í",en:"HOME",route:"/"},{index:2,ko:"ì¤í 리",en:"Stories",route:"/stories"}]}),(0,r.jsx)("h2",{className:"blind",children:"ì¤í 리 ìì¸"}),(0,r.jsxs)("div",{className:"section-wrap",children:[(0,r.jsxs)("div",{className:"title-wrap",children:[(0,r.jsxs)("div",{className:"box",children:[(0,r.jsx)("h3",{className:"title title-1",children:x?null==a?void 0:a.titleEn:null==a?void 0:a.title}),(0,r.jsx)("p",{className:"sub",children:x?null==a?void 0:a.subTitleEn:null==a?void 0:a.subTitle})]}),(0,r.jsx)(c.Z,{onClick:()=>{k(!0)},style:{cursor:"pointer"},className:"btn-share",children:(0,r.jsx)(u.Z,{pc:{width:"3.2rem",height:"3.2rem"},responsive:{width:"2.4rem",height:"2.4rem"},src:"/assets/icons/icon-share.svg",alt:"ê³µì ìì´ì½"})})]}),(0,r.jsx)("div",{className:"content-html",children:x?w:y})]}),(null==a?void 0:null===(i=a.productList)||void 0===i?void 0:i.length)>0&&(0,r.jsx)("div",{className:"section-wrap top-line",children:(0,r.jsxs)("div",{className:"group-wrap",children:[(0,r.jsx)("h4",{className:"title title-2",children:x?null==a?void 0:a.contentCategoryNameEn:null==a?void 0:a.contentCategoryName}),(0,r.jsx)("div",{className:"mobile-full",children:(0,r.jsx)(p.Z,{products:null==a?void 0:a.productList})})]})}),(0,r.jsx)("div",{className:"section-wrap buttons-box",children:(0,r.jsx)(s(),{legacyBehavior:!0,href:"/stories",children:(0,r.jsx)("a",{className:"btn-list",children:d("common.message81")})})})]})]})}(0,i.ZP)(d.u).withConfig({componentId:"sc-f13efd92-0"})([""]),i.ZP.div.withConfig({componentId:"sc-f13efd92-1"})([""])},75211:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294);function i(){let e=0;return{lockScroll:(0,r.useCallback)(()=>{e=window.scrollY,document.body.style.position="fixed",document.body.style.top="-".concat(e,"px"),document.body.style.width="100%"},[e]),openScroll:(0,r.useCallback)(()=>{document.body.style.removeProperty("position"),document.body.style.removeProperty("top"),document.body.style.removeProperty("width"),window.scrollTo(0,e)},[e])}}},71349:function(e,t,n){"use strict";var r=n(67294),i=n(25935);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[n,o]=(0,r.useState)(null);return(0,r.useEffect)(()=>{o((0,i.ZP)(e,t))},[e]),n}},11360:function(e,t,n){"use strict";n.d(t,{$1:function(){return c},CC:function(){return m},ID:function(){return b},LX:function(){return o},Mh:function(){return p},Ml:function(){return d},Oq:function(){return s},TX:function(){return l},Tf:function(){return g},Xi:function(){return x},Yi:function(){return h},a5:function(){return v},mX:function(){return f},oK:function(){return u},x:function(){return a}});var r=n(29204),i=n(11948);let o=async(e,t)=>{try{let n=(0,i.rC)(t,"prd");return await i.c.get("".concat(n,"/benefit/list"),{params:{benefitSeparation:e}})}catch(e){console.error(e)}},a=async()=>{try{return await i.c.get("/benefit/category")}catch(e){console.error(e)}},s=async(e,t)=>{try{let n=(0,i.rC)(e,"prd");return(await i.c.get("".concat(n,"/event/list"),{headers:e,params:{language:t}})).data}catch(e){if(e instanceof r.d7){var n;return{error:null===(n=e.response)||void 0===n?void 0:n.data}}}},l=async(e,t)=>{try{let n=(0,i.rC)(e,"prd");return(await i.c.get("".concat(n,"/event/list/close"),{headers:e,params:{language:t}})).data}catch(e){if(e instanceof r.d7){var n;return{error:null===(n=e.response)||void 0===n?void 0:n.data}}}},c=async(e,t,n)=>{try{let r=(0,i.rC)(t,"prd");return(await i.c.get("".concat(r,"/event/content/").concat(e,"?ignoreFlag=").concat(n),{headers:t})).data}catch(e){throw e}},d=async(e,t)=>{try{return(await i.c.get("/event/content/comment/".concat(e),{params:t})).data}catch(e){if(e instanceof r.d7){var n;return{error:null===(n=e.response)||void 0===n?void 0:n.data}}}},u=async e=>{try{return await i.c.post("/event/content/comment/insert?eventNum=".concat(null==e?void 0:e.eventNum,"&reviewCont=").concat(null==e?void 0:e.reviewCont,"&secret=").concat(null==e?void 0:e.secret))}catch(e){if(e instanceof r.d7){if(412==e.response.status){if(confirm("ë¡ê·¸ì¸ì´ íìí©ëë¤. ë¡ê·¸ì¸ íìê² ìµëê¹?")){let e="/login?calbckUrl="+encodeURIComponent(new URL(window.location.href).pathname);window.location.replace(e);return}}else{var t;return{error:null===(t=e.response)||void 0===t?void 0:t.data}}}}},m=async e=>{try{return await i.c.post("/event/content/comment/update?eventNum=".concat(null==e?void 0:e.eventNum,"&viewSeq=").concat(null==e?void 0:e.viewSeq,"&reviewCont=").concat(null==e?void 0:e.reviewCont))}catch(e){if(e instanceof r.d7){if(412==e.response.status){if(confirm("ë¡ê·¸ì¸ì´ íìí©ëë¤. ë¡ê·¸ì¸ íìê² ìµëê¹?")){let e="/login?calbckUrl="+encodeURIComponent(new URL(window.location.href).pathname);window.location.replace(e);return}}else{var t;return{error:null===(t=e.response)||void 0===t?void 0:t.data}}}}},p=async e=>{try{return await i.c.post("/event/content/comment/delete?eventNum=".concat(null==e?void 0:e.eventNum,"&viewSeq=").concat(null==e?void 0:e.viewSeq))}catch(e){if(e instanceof r.d7){if(412==e.response.status){if(confirm("ë¡ê·¸ì¸ì´ íìí©ëë¤. ë¡ê·¸ì¸ íìê² ìµëê¹?")){let e="/login?calbckUrl="+encodeURIComponent(new URL(window.location.href).pathname);window.location.replace(e);return}}else{var t;return{error:null===(t=e.response)||void 0===t?void 0:t.data}}}}},g=async e=>{try{if(null==e?void 0:e.answer)return await i.c.post("/event/submit?eventNum=".concat(null==e?void 0:e.eventNum,"&answer=").concat(null==e?void 0:e.answer));if(null==e?void 0:e.tempDate)return await i.c.post("/event/submit?eventNum=".concat(null==e?void 0:e.eventNum,"&tempDate=").concat(null==e?void 0:e.tempDate));return await i.c.post("/event/submit?eventNum=".concat(null==e?void 0:e.eventNum))}catch(e){if(e instanceof r.d7){var t;return{error:null===(t=e.response)||void 0===t?void 0:t.data}}}},h=async e=>{try{return await i.vq.post("/my-info/input/recommend",e)}catch(e){if(e instanceof r.d7){var t;return{error:null===(t=e.response)||void 0===t?void 0:t.data}}}},f=async e=>{try{return await i.c.post("/event/submit/invite?eventNum=".concat(null==e?void 0:e.eventNum,"&answer=").concat(null==e?void 0:e.answer))}catch(e){if(e instanceof r.d7){var t;return{error:null===(t=e.response)||void 0===t?void 0:t.data}}}},v=async e=>{try{return await i.c.post("/event/submit/pick?eventNum=".concat(e))}catch(e){if(e instanceof r.d7){var t;return{error:null===(t=e.response)||void 0===t?void 0:t.data}}}},b=async e=>{try{return await i.c.post("/event/bnefEventSubmit?eventNum=".concat(e))}catch(e){if(e instanceof r.d7){var t;return{error:null===(t=e.response)||void 0===t?void 0:t.data}}}},x=async()=>{try{return(await i.c.get("/event/content/invite/state",{})).data}catch(t){if(t instanceof r.d7){var e;return{error:null===(e=t.response)||void 0===e?void 0:e.data}}}}},99856:function(e,t,n){"use strict";n.d(t,{$V:function(){return i},Ce:function(){return l},DV:function(){return u},Ho:function(){return s},U$:function(){return d},U2:function(){return c},dS:function(){return a},z7:function(){return o}});var r=n(11948);let i=async(e,t,n)=>{let i=(0,r.rC)(n,"prd");return await r.c.get("".concat(i,"/products/brand/").concat(e),{params:t,headers:n})},o=async(e,t,n)=>{let i=(0,r.rC)(n,"prd");return await r.c.get("".concat(i,"/products/brand/").concat(e,"/best"),{params:t,headers:n})},a=async(e,t,n)=>{let i=(0,r.rC)(n,"prd");return await r.c.get("".concat(i,"/products/brand/").concat(e),{params:t,headers:n})},s=async(e,t,n)=>{let i=(0,r.rC)(n,"prd");return await r.c.get("".concat(i,"/products/brand/").concat(e),{params:t,headers:n})},l=async(e,t)=>{try{let n=(0,r.rC)(t,"prd");return await r.c.get("".concat(n,"/brand/").concat(e),{headers:t})}catch(e){return}},c=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"PC",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;try{let a=(0,r.rC)(i,"prd");return await r.c.get("".concat(a,"/brands/best-brand"),{params:{type:e,size:t,page:n,language:o},headers:i})}catch(e){return}},d=async(e,t,n,i)=>{try{return await r.c.get("/brands/best-brand/category/".concat(t,"?type=").concat(e,"&size=").concat(n,"&page=").concat(i))}catch(e){return}},u=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;try{let a=(0,r.rC)(i,"prd");return await r.c.get("".concat(a,"/products/brand/").concat(e),{params:{size:t,page:n,sort:"best-product,desc",language:o},headers:i})}catch(e){return}}},52681:function(e,t,n){"use strict";n.d(t,{Cu:function(){return f},Ej:function(){return d},El:function(){return y},F3:function(){return m},No:function(){return l},Os:function(){return h},Tl:function(){return v},aY:function(){return s},dy:function(){return g},fb:function(){return a},jP:function(){return p},ju:function(){return b},sT:function(){return u},vF:function(){return c}});var r=n(29204),i=n(11948),o=n(85518);let a=async e=>{try{let t={};return t.device=x(),await i.Kb.get("/coupon/product/".concat(e),{params:t})}catch(e){if(e instanceof r.d7){var t;return{error:null===(t=e.response)||void 0===t?void 0:t.data}}}},s=async e=>{try{return(await i.Kb.post("/coupon/download/".concat(e))).data}catch(e){if(e instanceof r.d7)return{error:e.response.data}}},l=async(e,t)=>{try{return t.device=x(),(await i.Kb.get("/coupon/list/".concat(e,"/all"),{params:t})).data}catch(e){if(e instanceof r.d7){var n;return{error:null===(n=e.response)||void 0===n?void 0:n.data}}}},c=async(e,t,n)=>{try{return n.device=x(),(await i.Kb.get("/coupon/list/".concat(e,"/").concat(t),{params:n})).data}catch(e){if(e instanceof r.d7){var o;return{error:null===(o=e.response)||void 0===o?void 0:o.data}}}},d=async e=>{try{let t={};return t.device=x(),e&&(t.couponNum=e),(await i.Kb.get("/coupon/list/all",{params:t})).data}catch(e){if(e instanceof r.d7){var t;return{error:null===(t=e.response)||void 0===t?void 0:t.data}}}},u=async e=>{try{let t={};return t.device=x(),(await i.Kb.get("/coupon/singleDownload/".concat(e),{params:t})).data}catch(e){if(e instanceof r.d7){var t;return{error:null===(t=e.response)||void 0===t?void 0:t.data}}}},m=async(e,t)=>{try{let n={};return n.device=x(),(await i.Kb.get("/coupon/list/user/".concat(e,"/").concat(t),{params:n})).data}catch(e){if(e instanceof r.d7){var n;return{error:null===(n=e.response)||void 0===n?void 0:n.data}}}},p=async(e,t)=>{try{let n={};return n.device=x(),(await i.Kb.get("/coupon/list/user/prdt/".concat(e,"/").concat(t),{params:n})).data}catch(e){if(e instanceof r.d7){var n;return{error:null==
1=(n=e.response)||void 0===n?void 0:n.data}}}},g=async e=>{try{let t={};return t.device=x(),await i.Kb.get("/coupon/order/product/".concat(e),{params:t})}catch(e){if(e instanceof r.d7){var t;return{error:null===(t=e.response)||void 0===t?void 0:t.data}}}},h=async e=>{try{let t={};return t.device=x(),await i.Kb.get("/coupon/user/product/".concat(e),{params:t})}catch(e){if(e instanceof r.d7){var t;return{error:null===(t=e.response)||void 0===t?void 0:t.data}}}},f=async e=>{try{let t={};return t.device=x(),await i.Kb.get("/coupon/user/product/cart/".concat(e),{params:t})}catch(e){if(e instanceof r.d7){var t;return{error:null===(t=e.response)||void 0===t?void 0:t.data}}}},v=async()=>{try{let e={};return e.device=x(),await i.Kb.post("/coupon/download/active/all",e)}catch(t){if(t instanceof r.d7){var e;return{error:null===(e=t.response)||void 0===e?void 0:e.data}}}},b=async e=>{try{if((e=e.replace(/[^a-zA-Z0-9]/g,"")).length<12||e.length>16){let e={};return e.data="fail",e}return await i.Kb.post("/coupon/download/promotion/".concat(e))}catch(e){if(e instanceof r.d7){var t;return{error:null===(t=e.response)||void 0===t?void 0:t.data}}}};function x(){return console.log(">isMobile",o.tq),console.log(">window.android",window.android),console.log(">window.webkit",window.webkit),o.tq?void 0!==window.android||void 0!==window.webkit?"A":"M":"P"}let y=async e=>{try{return(await i.Kb.get("/coupon/getCouponData",{params:{couponNums:e}})).data}catch(e){if(e instanceof r.d7){var t;return{error:null===(t=e.response)||void 0===t?void 0:t.data}}}}},3473:function(e,t,n){"use strict";n.d(t,{_:function(){return o},g:function(){return a}});var r=n(11948),i=n(29204);let o=async()=>{try{return(await r.c.get("/grade/list")).data}catch(t){if(t instanceof i.d7){var e;return{error:null===(e=t.response)||void 0===e?void 0:e.data}}}},a=async e=>{try{return(await r.c.get("/grade/membership/read",{params:e})).data}catch(e){if(e instanceof i.d7){var t;return{error:null===(t=e.response)||void 0===t?void 0:t.data}}}}},36455:function(e,t,n){"use strict";n.d(t,{Jx:function(){return l},N9:function(){return o},Rp:function(){return s},kw:function(){return c},wq:function(){return a}});var r=n(29204),i=n(11948);let o=async(e,t)=>{let n=(0,i.rC)(e,"prd");return await i.c.get("".concat(n,"/story/categories"),{headers:e,params:{language:t}})},a=async(e,t)=>{let n=(0,i.rC)(t,"prd");return await i.c.get("".concat(n,"/story?categoryId=").concat(e))},s=async(e,t)=>{try{let n=(0,i.rC)(t,"prd");return await i.c.get("".concat(n,"/influence?categoryId=").concat(e),{headers:t})}catch(e){if(e instanceof r.d7){var n;return{error:null===(n=e.response)||void 0===n?void 0:n.data}}}},l=async(e,t)=>{try{let n=(0,i.rC)(e,"prd");return await i.c.get("".concat(n,"/mainStory/list?"),{headers:e,params:{language:t}})}catch(e){}},c=async(e,t)=>{try{let n=(0,i.rC)(e,"prd");return await i.c.get("".concat(n,"/mainReview/list?"),{headers:e,params:{language:t}})}catch(e){}}},75754:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return ek},default:function(){return eS}});var r=n(85893),i=n(67294),o=n(11163);n(9008);var a=n(11948);n(36455),n(73568),n(25675);var s=n(87536),l=n(4480),c=n(50066),d=n(44460),u=n(83879);n(71349);var m=n(41664),p=n.n(m),g=n(67563),h=n(84097),f=n(18561);n(67470),n(82760);var v=n(57595),b=n(62722),x=n(80149),y=n(64169),w=n(22190),j=n(73935),k=n(99430),S=n(6300),Z=n(14609),C=n(44643),N=n(29204),E=n(48422);function I(e){var t;let{modalControl:n,setModalControl:l,setParentModalControl:c,marketingInfo:d,ntnltyCode:u,skyPassNumber:m}=e,{register:p,handleSubmit:f,watch:b,setValue:x,setError:y,formState:{errors:w}}=(0,s.cI)({}),j=b(),k=(0,o.useRouter)(),[S,Z]=(0,i.useState)(!1),[I,M]=(0,i.useState)(!1),[B,_]=(0,i.useState)(""),[H,F]=(0,i.useState)(!1),[U,Y]=(0,i.useState)(!1),{t:O,thtml:R,isEn:K}=(0,E.ZK)(),D=async e=>{try{let t=new URL(window.location.href).pathname.split("/"),n=t[t.length-1],r=await a.vq.post("/my-info/input/flightInfo-register",{skypassNum:e,benefitId:"".concat(n),marketingInformation:{sms:null==d?null:d.sms,push:null==d?null:d.alarm},marketingFlag:null==d?"N":"Y"});"ok"==r.data?(M(!0),F(!0),_(O("event.message106"))):"no-data"==r.data?(M(!0),_(O("event.message122"))):"already"==r.data?(M(!0),_(O("event.message123"))):"no-flight"==r.data?(M(!0),_(O("event.message124"))):"impossible"==r.data?(M(!0),_(O("event.message125"))):"NO60"==r.data?(M(!0),_(K?"SKY SHOP is available from 60 days before your flight departure. <br/>Please try again on the Korean Air website then.":"기ë´ë©´ì¸ì ì ì¶êµ 60ì¼ ì´ì ì ì´ì© ê°ë¥ í©ëë¤.<br/> ì¶êµ 60ì¼ ì´ì ì ëííê³µ ì¬ì´í¸ìì ë¤ì ìëí´ ì£¼ì¸ì.")):"reconnect"==r.data&&(M(!0),_(K?"N
1o flight information found. <br/>Please try again on the Korean Air website.":"íê³µí¸ ì ë³´ê° ììµëë¤.<br/>ëííê³µ ì¬ì´í¸ìì ë¤ì ìëí´ ì£¼ì¸ì."))}catch(e){console.log("error : "+e),M(!0),_("ì¶êµì ë³´ ì°ëì ì¤í¨íìµëë¤.<br/>ê³ ê°ì¼í°ë¡ 문ì ë°ëëë¤.<br/><br/>080-656-4545 (ë´ì ë²í¸ 2ë²)");return}},W=()=>{k.push("/my-page/info/flights/now/1")},G=async e=>{if(!U){Y(!0);try{let t=await a.vq.get("/auth/exist-check/sky-pass-number?number=".concat(e.skypassNumber,"&signUpLanguage=").concat("KR"===j.ntnltyCode?(0,a.yN)():(0,a.dK)()));if(t.data){if(t.data.isExist){y("skypassNumber",{message:O("event.message129")}),Z(!1);return}await D(e.skypassNumber),clearErrors("skypassNumber")}}catch(e){if(e instanceof N.d7){var t,n;Z(!1),y("skypassNumber",{message:null==e?void 0:null===(n=e.response)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.message})}}finally{Y(!1)}}};return(0,i.useEffect)(()=>{x("ntnltyCode",u)},[]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(C.Z,{open:n,setOpen:l,closeBtn:!0,width:"74rem",height:"auto",pdt:"10rem",mobStyle3:!0,children:(0,r.jsx)(h.Z,{textAlign:"left",children:(0,r.jsx)(T,{children:(0,r.jsxs)(h.Z,{mgb:"4rem",mobMgAuto:!0,mobTextAlign:"left",dsp:"flex",direction:"column",mgAuto:!0,style:{color:"black"},children:[(0,r.jsx)(g.Z,{mgb:"4rem",mobTextAlign:"left",mobSize:"1.4rem",style:{color:"black",textAlign:"center"},children:R("order.message131")}),(0,r.jsx)(g.Z,{as:"h3",size:"1.6rem",fontWeight:"700",mgb:"2rem",style:{color:"black",textAlign:"center"},children:K?"":"ì¤ì¹´ì´í¨ì¤ ë²í¸ë¥¼ ì
ë ¥í´ ì£¼ì¸ì."}),(0,r.jsx)(g.Z,{as:"h3",size:"1.6rem",fontWeight:"700",mgb:"2rem",style:{color:"black",textAlign:"center"},children:(0,r.jsx)(P,{children:(0,r.jsx)(A,{id:"skypassNumber",name:"skypassNumber",defaultValue:null!=m?m:"",placeholder:"SKYPASSNUM",autoComplete:"off",...p("skypassNumber",{onChange:e=>{e.target.value.length<12?x("skypassNumber",e.target.value):x("skypassNumber",e.target.value.slice(0,12))},pattern:{value:/^[A-Za-z0-9]{9,12}$/,message:"9-12ì리ì ì«ìì ì문ìë§ ì
ë ¥ ê°ë¥í©ëë¤."},required:"SKYPASS ë²í¸ë¥¼ ì
ë ¥í´ì£¼ì¸ì."})})})}),w.skypassNumber&&!S&&(0,r.jsx)(g.Z,{size:"1.2rem",color:"#e1251b",dsp:"inline-block",mgt:"-1.2rem",textAlign:"center",width:"100%",children:null===(t=w.skypassNumber)||void 0===t?void 0:t.message}),(0,r.jsx)(q,{style:{order:"2"},children:(0,r.jsx)(L,{onClick:f(G,e=>{}),disabled:U,children:U?K?"Processing...":"ì²ë¦¬ì¤...":O("common.message36")})}),I&&(0,r.jsx)(()=>{let{t:e,thtml:t,isEn:n}=(0,E.ZK)();return(0,r.jsxs)(z,{open:I,setOpen:M,noTitle:!0,width:"50rem",height:"auto",pd:"3rem",mobPd:"2rem",overY:"visible",children:[(0,r.jsx)(g.Z,{as:"p",size:"1.9rem",lineHeight:"3rem",mgt:"20px",dangerouslySetInnerHTML:{__html:B}}),(0,r.jsx)("div",{children:(0,r.jsx)(v.u,{type:"button",btnBlack:!0,mt:"2rem",mobMt:"2rem",onClick:()=>H?W():M(!1),children:e("common.message36")})})]})},{})]})})})})})}c.ZP.h2.withConfig({componentId:"sc-ad8f2f33-0"})([".title{display:block;padding:3rem 0 2rem !important;font-family:'PretendardBold';font-size:2.8rem !important;font-weight:700 !important;border-bottom:0 !important;line-height:inherit !important;}","{position:absolute;top:0;left:-2.5%;background:#fff;width:calc(100% + 5%);border-bottom:1px solid #dfdfdf;.title{padding:1.6rem 0;font-size:2rem;text-align:center;}}"],d.Z.device.responsive);let T=c.ZP.div.withConfig({componentId:"sc-ad8f2f33-1"})(["","{margin-top:20px;}"],d.Z.device.responsive),P=c.ZP.div.withConfig({componentId:"sc-ad8f2f33-2"})(["font-size:",";display:flex;flex-grow:1;align-items:center;justify-content:center;strong{display:block;min-width:7rem;margin-left:2rem;}select{height:48px;width:13.7rem;font-size:15px;font-weight:normal;vertical-align:middle;padding:1.2rem 1.5rem;border-radius:0.4rem;border:0.1rem solid ",";color:",";background:url(/assets/gnb/icon-arrow-select-filled-bk.svg) no-repeat right 1.4rem center;background-size:10px;:first-child{margin-right:10px;}","{width:100% !important;}}select::expand{display:none;}option{}","{width:100%;&.flight{display:flex;flex-direction:column;justify-content:flex-start;input,button{width:100% !important;margin:0;}button:nth-child(2){margin:1rem 0;}}}
1"],d.Z.font.size.base,d.Z.color.primary.gray,d.Z.color.gray.gray70,d.Z.device.responsive,d.Z.device.responsive),A=c.ZP.input.withConfig({componentId:"sc-ad8f2f33-3"})(["font-size:1.5rem;max-height:4.8rem;font-family:'Pretendard';padding:1.0rem;text-align:center;border:0.1rem solid ",";border-radius:0.4rem;outline:0;::placeholder{color:",";font-size:15px;}:focus{::placeholder{color:transparent;}}","{width:100% !important;}"],d.Z.color.primary.gray,d.Z.color.gray.gray70,d.Z.device.responsive),q=c.ZP.div.withConfig({componentId:"sc-ad8f2f33-4"})(["width:100%;display:flex;justify-content:center;margin:2rem 0 2rem 0;gap:10px;","{margin:2rem 0 4rem 0;}"],d.Z.device.responsive),M=c.ZP.button.withConfig({componentId:"sc-ad8f2f33-5"})(["width:15.4rem;border:0.1rem solid ",";line-height:3rem;height:5rem;font-family:'PretendardBold';","{width:100%;height:4.8rem;}"],d.Z.color.common.black,d.Z.device.responsive),L=(0,c.ZP)(M).withConfig({componentId:"sc-ad8f2f33-6"})(["background-color:",";color:",";"],d.Z.color.common.black,d.Z.color.common.white),z=(0,c.ZP)(C.Z).withConfig({componentId:"sc-ad8f2f33-7"})(["display:flex;width:",";height:",";text-align:center;align-items:center;"],e=>e.width||"",e=>e.height||"");var B=n(57506),_=n(19432),H=n(52681);n(25935);var F=n(25489),U=n(17198),Y=n(90481),O=n(6023),R=n(41013);n(61841);var K=n(51041),D=n(63126),W=n(85518),G=n(3473),J=n(75211),$=n(25575),X=n(67838),V=n(11360),Q=n(25705);function ee(e){var t,n,a;let{benefitDetail:c,brandCategories:d,currentProductsIndex:m,setCurrentProductsIndex:C,handleOnClickProductsTabIndex:N,bestBrands:T,bestProducts:P,currentIndex:A,setCurrentIndex:q,contentId:M,adManager:L}=e,{t:z,thtml:ee,isEn:el}=(0,E.ZK)(),[em,ep]=(0,i.useState)(!1),[eg,eh]=(0,i.useState)(!1),ef=(0,l.sJ)(x.cz),ev=(0,u.Z)(ef),[eb,ex]=(0,i.useState)(!1),ey=(0,l.sJ)(x.Lo),ew=[{index:1,ko:"í",en:"HOME",route:"/"},{index:2,ko:"íí",en:"Benefits",route:"/benefits"},{index:3,ko:null==c?void 0:c.title,en:null==c?void 0:c.title}],[ej,ek]=(0,i.useState)(!1),[eS,eZ]=(0,i.useState)(!1),[eC,eN]=(0,i.useState)(null),[eE,eI]=(0,i.useState)(null),[eT,eP]=(0,i.useState)(null),[eA,eq]=(0,i.useState)(null),[eM,eL]=(0,i.useState)(!1),[ez,eB]=(0,i.useState)(!1),[e_,eH]=(0,i.useState)(!1),[eF,eU]=(0,i.useState)(!1),[eY,eO]=(0,i.useState)(!1),[eR,eK]=(0,i.useState)(!1),[eD,eW]=(0,i.useState)(""),[eG,eJ]=(0,i.useState)(!1),{register:e$,setValue:eX,getValues:eV,watch:eQ,handleSubmit:e0,trigger:e1,formState:{errors:e2}}=(0,s.cI)({defaultValues:{marketingInformation:{sms:!1,alarm:!1}},shouldFocusError:!1}),e4=(0,l.sJ)(w.jl),e3=(0,o.useRouter)(),[e6,e5]=(0,i.useState)(),[e7,e8]=(0,i.useState)(""),[e9,te]=(0,i.useState)(!1),[tt,tn]=(0,i.useState)(!1),[tr,ti]=(0,i.useState)(!1),[to,ta]=(0,i.useState)({}),{userData:ts,setUserData:tl}=(0,i.useContext)(D.S),[tc,td]=(0,i.useState)(!1),{handleGetUser:tu,handleSignOut:tm}=(0,K.Z)(tc,td),[tp,tg]=(0,i.useState)(!1),[th,tf]=(0,i.useState)(!0),{openScroll:tv}=(0,J.Z)(),tb=(null===(t=window)||void 0===t?void 0:t.android)!==void 0||(null===(n=window)||void 0===n?void 0:n.webkit)!==void 0,tx=W.tq&&tb,ty=(0,X.Z)("(max-width:768px)"),[tw,tj]=(0,i.useState)(!1),tk=e=>{if("BNE250102181322181"===M||"skybarclub"===e.target.id){if(!e6)return te(!0);if(null==e6?void 0:e6.regularMember){if(e7){if(W.tq){if(W.tq&&!tx){let e=new URL("skyshop://open"),t=navigator.userAgent.toLowerCase(),n=t.indexOf("android")>-1,r=t.indexOf("mac")>-1,i="";n?i=new URL("https://play.google.com/store/apps/details?id=com.skyshop.mall"):r&&(i=new URL("itms-apps://apps.apple.com/kr/app/skyshop-%EB%8C%80%ED%95%9C%ED%95%AD%EA%B3%B5-%EA%B8%B0%EB%82%B4-%EB%A9%B4%EC%84%B8%EC%A0%90/id6479979148"));let o=setTimeout(()=>{window.location.href=i},2e3);return window.location.href=e,()=>clearTimeout(o)}}else{alert(z("member.check.message219"));return}}else{alert(z("event.message134"));return}}else{alert(z("event.message21"));return}tn(!0)}};(0,i.useEffect)(()=>{ts&&(async()=>{let e=await (0,F.t9)();if(!e.error||403!==e.error.status)return e5(e)})()},[ts]),(0,i.useEffect)(()=>{tc||tu()},[tu,ts]),(0,i.useEffect)(()=>{ts&&(async()=>{let e=await (0,F.ep)();if(!e.error||403!==e.error.status)return e8(e)}
1)()},[ts]),(0,i.useEffect)(()=>{(async()=>{let e=await (0,G.g)({mbrshCode:"A1"});if(!e.error||403!==e.error.status)return ta(e)})()},[]),(0,i.useEffect)(()=>{tv()},[]),(0,i.useEffect)(()=>{let e=(0,E.D0)(e3);console.log(e),tj(e)},[ef,e3]),(0,i.useEffect)(()=>{var e;null==e6||null===(e=e6.specialMembership)||void 0===e||e.map(e=>ti(!0))},[e6]);let tS=()=>{eZ(e=>(e?(eL(!1),"HQS"===ef&&eB(!1)):(eL(!0),"HQS"===ef&&eB(!0)),!e))},tZ=async()=>{try{let e=await (0,F.nE)();eq(e.skyPassNumber),eI(e.ntnltyCode),eP(e.marketingInformation.sms)}catch(e){console.log("error : "+e)}},tC=async e=>{if(!tA){tU();return}let t=await (0,H.ju)(e.randomNumbers);"exists"===t.data?(eK(!1),eW(t.data)):"not-exist"===t.data?(eK(!1),eW(t.data)):"use"===t.data?(eK(!1),eW(t.data)):eK(!0),eJ(!0)},tN=(e,t,n,r)=>{let i=document.getElementById(e);if(!i||!1===i.complete)return;let o=i.offsetWidth,a=i.offsetHeight,s=o/t,l=a/n;r.forEach(e=>{let{coordX1:t,coordY1:n,coordX2:r,coordY2:i,areaId:o}=e,a=document.getElementById(o);a?a.coords="".concat(Math.round(t*s),",").concat(Math.round(n*l),",").concat(Math.round(r*s),",").concat(Math.round(i*l)):console.error("'".concat(o,"'를 ê°ì§ ì리먼í¸ë¥¼ ì°¾ì ì ììµëë¤."))})},tE=()=>{document.querySelectorAll(".content-html img").forEach(e=>{let t=e.id,n=e.getAttribute("usemap");if(!n)return;let r=n.replace("#",""),i=!1,o=()=>{if(i)return;let n=e.naturalWidth,o=e.naturalHeight,a=document.querySelector('map[name="'.concat(r,'"]'));if(!a)return;let s=[];a.querySelectorAll("area").forEach(e=>{let t=e.id,n=e.getAttribute("data-coords");if(null!==n){let e=n.split(",").map(e=>parseInt(e.trim(),10));if(4!==e.length)return;s.push({coordX1:e[0],coordY1:e[1],coordX2:e[2],coordY2:e[3],areaId:t})}}),s.length>0&&tN(t,n,o,s),i=!0};e.addEventListener("load",o),e.complete&&e.naturalWidth>0&&o()})},tI=()=>{let e=document.querySelectorAll(".content-html a");e.forEach(t=>{e.forEach(e=>{e.removeEventListener("click",tT),e.addEventListener("click",tT)})})};function tT(e){let t=this.getAttribute("href");if(t&&t.indexOf("/register")>0){if(!tA)return!1;e.preventDefault(),e.stopPropagation(),alert(z("event.message135"))}}let tP=e=>{e.preventDefault();let t=e.target.getAttribute("data-fnc").split(", ");document.querySelectorAll(".tab-img").forEach(e=>{e.classList.remove("active")}),document.getElementById(t[0]).parentNode.classList.add("active")},tA=(0,l.sJ)(w.ar),[tq,tM]=(0,i.useState)(!1),[tL,tz]=(0,i.useState)(!1),[tB,t_]=(0,i.useState)(!1),[tH,tF]=(0,i.useState)(!1),tU=()=>{tz(!tL)},tY=()=>{t_(!tB)},tO=()=>{let e=document.querySelector("#sms"),t=document.querySelector("#alarm");null!=e&&null!=t&&eN({sms:e.checked,alarm:t.checked}),tF(!tH)},tR=async e=>{let t,n;if(!tA){tU();return}e.preventDefault();let r=e.target.getAttribute("data-type");console.log("ì¿ í° ì í : ",r);try{if("pack"===r)tM(!0),n=e.target.getAttribute("data-coupon").split(","),await tD(n),tM(!1);else{t=e.target.getAttribute("data-coupon"),tM(!0);let n=await (0,H.sT)(t);if(tM(!1),n.length>0&&"full"===n[0].eventCpnUseCheck)return tG(z("extra.message200")),!1;if(!n){tM(!1),console.error("ë°ì´í° null or undefined");return}"single"===r||"quantity"===r||"join"===r||"voucher"===r?await tK(r,t,n):console.log("ì í¨íì§ ìì ì¿ í° ì í")}}catch(e){tM(!1),console.error("ì¿ í° ì¡°í ì¤ ì¤ë¥",e)}},tK=async(e,t,n)=>{let r=n.find(e=>e.id===t);if(!r){console.error("ì¿ í°ì ì°¾ì ì ììµëë¤.");return}let i=null===r.eventCpnUseCheck,o="notUse"===r.eventCpnUseCheck,a="use"===r.eventCpnUseCheck,s=new Date(tA.rgstDtTime),l=new Date(r.downloadPossibleStartDatetime),c=new Date(r.downloadPossibleEndDatetime);if("join"===e&&!(l<=s&&s<=c)){alert(z("member.check.message220"));return}if(o)tG(z("member.check.message221"));else if(a)tG(z("member.check.message221"));else if(i){if(await (0,H.aY)(t),"HQS"===ef){let e=new Date,t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),i=String(e.getDate()).padStart(2,"0"),o=String(e.getHours()).padStart(2,"0"),a=String(e.getMinutes()).padStart(2,"0"),s=String(e.getSeconds()).padStart(2,"0"),l=-1*e.getTimezoneOffset(),c=String(Math.floor(l/60)).padStart(2,"0"),d=String(l%60).padStart(2,"0"),u="".concat(t,"-").concat(n,"-").concat(i,"T").concat(o,":").concat(a,":").concat(s).concat(l>=0?"+":"-").concat(c,":").concat(d),m=new URL(window.location.href),p=navigator.userAgent.toLowerCase(),g=p.indexOf("android")>-1,h=p.indexOf("mac")>-1,f="pc";W.tq&&!tx?f="mobile":tx&&(f=g?"android":h?"ios":"mobile"),braze.logCustomEvent("welcome_coupon_issued",{event_name:"welcome_coupon_issued",event_time:u,is_login:!!tA,current_path:null==m?void 0:m.href,platform:f,exp_date:tJ(r.expirationDate)}),ex(h)}tG(z("member.check.message222")),window.location.reload()}else tG(z("member.check.message223"))},tD=async e=>{let t=0,n=0;for(let r=0;r<e.length;r++){let i=e[r].trim(),o=await (0,H.aY)(i);"exists"===o&&t++,"not-active"===o&&n++}e.length>t?tG(z("member.check.message222")):e.length===n?tG(z("member.check.message223")):e.length===t?tG(z("member.check.message221")):tG(z("member.check.message223"))},tW=async e=>{if(!tA){tU();return}
1if(!tA.regularMember){tY();return}e.preventDefault(),document.querySelector("#privacyTerms").checked?tO():ek(!0)},tG=e=>{alert(e)},tJ=e=>{let t=e.substring(0,4),n=e.substring(4,6),r=e.substring(6,8),i=e.substring(8,10),o=e.substring(10,12),a=e.substring(12,14),s=-1*new Date("".concat(t,"-").concat(n,"-").concat(r,"T").concat(i,":").concat(o,":").concat(a)).getTimezoneOffset(),l=String(Math.floor(s/60)).padStart(2,"0"),c=String(s%60).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(r,"T").concat(i,":").concat(o,":").concat(a).concat(s>=0?"+":"-").concat(l,":").concat(c)},t$=async e=>{let t=document.querySelector(".coupon-quantity-box");if(!t){console.error("ìì를 ì°¾ì ì ììµëë¤.");return}try{tM(!0);let n=await (0,H.Ej)(e);if(tM(!1),!n){console.error("ë°ì´í° null or undefined");return}let r=n.find(t=>t.id===e),i=t.querySelector(".ing-img"),o=t.querySelector(".end-img");r?"0"===r.remnantCpnCntStr?(i.classList.remove("active"),o.classList.add("active")):(i.classList.add("active"),o.classList.remove("active")):(i.classList.remove("active"),o.classList.add("active"))}catch(e){tM(!1),console.error("ì¿ í° ì¡°í ì¤ ì¤ë¥",e)}};(0,i.useEffect)(()=>{let e=document.querySelectorAll("[data-coupon]"),t=document.querySelectorAll("[data-skypassnum]");return document.querySelectorAll("[data-logincheck-href]"),e&&e.forEach(e=>{e.addEventListener("click",tR),e.style.cursor="pointer"}),t&&t.forEach(e=>{e.addEventListener("click",tW),e.style.cursor="pointer"}),()=>{e&&e.forEach(e=>{e.removeEventListener("click",tR),e.style.cursor=""}),t&&t.forEach(e=>{e.removeEventListener("click",tW),e.style.cursor=""})}},[tA]),(0,i.useEffect)(()=>{let e=document.querySelector(".coupon-quantity-box .ing-img");e&&t$(e.querySelector("area").getAttribute("data-coupon"));let t=document.querySelectorAll("area[data-fnc]");t&&t.forEach(e=>e.addEventListener("click",tP));let n=()=>{tE(),tI(),t4()};return window.addEventListener("resize",n),tE(),tI(),()=>{t&&t.forEach(e=>e.removeEventListener("click",tP)),window.removeEventListener("resize",n)}},[]),(0,i.useEffect)(()=>{let e=new URLSearchParams(location.search);if(0!=e.size){let t=e.get("paramFlag"),n=e.get("errFlag");"Y"==t&&(eh(!0),eO(el?"No flight information found.<br/>Please try again on the Korean Air website.":"íê³µí¸ ì ë³´ê° ììµëë¤.<br/>ëííê³µ ì¬ì´í¸ìì ë¤ì ìëí´ ì£¼ì¸ì.")),"Y"==n&&(eh(!0),eO(el?"Failed to link flight information. <br/>Please contact customer service <br/>at 080-656-4545 (ext. 2)":"ì¶êµì ë³´ ì°ëì ì¤í¨íìµëë¤.<br/>ê³ ê°ì¼í°ë¡ 문ì ë°ëëë¤.<br/><br/>080-656-4545 (ë´ì ë²í¸ 2ë²)"))}},[]),(0,i.useEffect)(()=>{tA&&tZ()},[tA,tH]),(0,i.useEffect)(()=>{ek(!1)},[]),(0,i.useEffect)(()=>{let e=document.querySelector(".exh-detail");e&&(e.style.overflow="visible")},[c]),(0,i.useEffect)(()=>{let e=!0,t=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=window.location.hash.substring(1);if(n){if(t&&e){let t=document.querySelectorAll("[data-tab]"),r=document.querySelectorAll("[data-tab-target]"),i=document.querySelector("[data-sticky-top]"),o=0;if(i){let e=i.querySelectorAll("a");o=-1;for(let t=0;t<e.length;t++)if(e[t].getAttribute("href")==="#"+n){o=t;break}}let a=o.toString();t.forEach(e=>{let t=e.getAttribute("data-tab"),n=e.getAttribute("data-tab-state");e.style.display=t===a&&"on"===n||t!==a&&"off"===n?"block":"none"}),r.forEach(e=>{e.style.display=e.getAttribute("data-tab-target")===a?"block":"none"}),e=!1}let r=0,i=()=>{let e=document.getElementById(n);if(e){let t=document.querySelector(".content-html");Promise.all((t?Array.from(t.getElementsByTagName("img")):[]).map(e=>e.complete?Promise.resolve():new Promise(t=>{e.onload=t,e.onerror=t}))).then(()=>{let t=document.querySelector("[data-sticky-top]")?document.querySelector("[data-sticky-top]").clientHeight:0,n=e.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:n-(ty?56:70)-t+(ty?10:20),behavior:"auto"})})}else++r<30&&setTimeout(i,100)};i()}};c&&t(!0);let n=()=>{t(!1)};return e3.events.on("hashChangeComplete",n),()=>{e3.events.off("hashChangeComplete",n)}},[c,e3.events]),(0,i.useEffect)(()=>
1{if(!c)return;let e=document.getElementById("sticky1");if(!e)return;let t=Array.from(document.querySelectorAll('div[id^="tap"]')),n=e.querySelectorAll('a[href^="#tap"]');if(0===t.length||0===n.length)return;let r={};n.forEach(e=>{let t=e.getAttribute("href");if(t){let n=t.substring(1),i=e.querySelector("img[data-tab]");if(i){let e=i.getAttribute("data-tab");r[n]=e}}});let i=null,o=t=>{t!==i&&(i=t,[...new Set(Array.from(e.querySelectorAll("img[data-tab]")).map(e=>e.getAttribute("data-tab")))].forEach(n=>{let r=e.querySelector('img[data-tab="'.concat(n,'"][data-tab-state="on"]')),i=e.querySelector('img[data-tab="'.concat(n,'"][data-tab-state="off"]'));r&&i&&(r.style.display=n===t?"block":"none",i.style.display=n===t?"none":"block")}))},a=()=>{let n=e.getBoundingClientRect().bottom,i=null;for(let e of t)if(e.getBoundingClientRect().top<=n+5)void 0!==r[e.id]&&(i=r[e.id]);else break;null!==i&&o(i)};return window.addEventListener("scroll",a,{passive:!0}),()=>window.removeEventListener("scroll",a)},[c]),(0,i.useEffect)(()=>{let e=e=>{e&&e.preventDefault();let t=document.querySelectorAll("[data-tab]"),n=document.querySelectorAll("[data-tab-target]"),r=e?e.currentTarget.getAttribute("data-tab"):"0";if(console.log(r),t.forEach(e=>{let t=e.getAttribute("data-tab"),n=e.getAttribute("data-tab-state");e.style.display=t===r&&"on"===n||t!==r&&"off"===n?"block":"none"}),n.forEach(e=>{e.style.display=e.getAttribute("data-tab-target")===r?"block":"none"}),e){let t=e.currentTarget.closest("a");if(t&&t.hash){let e=e3.asPath.split("#")[0]+t.hash;e3.asPath!==e&&e3.push(e,void 0,{shallow:!0});let n=document.getElementById(t.hash.split("#")[1]);n&&setTimeout(()=>{let e=document.querySelector("[data-sticky-top]")?document.querySelector("[data-sticky-top]").clientHeight:0,t=n.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:t-(ty?56:70)-e+(ty?10:20),behavior:"auto"})},100)}else{let e=document.querySelector(".content-html img");if(e){let t=e.getBoundingClientRect().bottom+window.scrollY,n=W.tq?56:70;window.scrollTo({top:t-n,behavior:"smooth"})}}}setTimeout(()=>{console.log("resize event dispatched"),window.dispatchEvent(new Event("resize"))},100)},t=document.querySelectorAll("[data-tab]");return t.length>0&&(t.forEach(t=>{t.addEventListener("click",e),t.style.cursor="pointer"}),th&&(e(null),tf(!1))),()=>{t.forEach(t=>{t.removeEventListener("click",e),t.style.cursor=""})}},[c,e3]);let tX=()=>{let e=document.querySelectorAll("#sticky1 ol");if(e.length>0)console.log("ìë¡ì´ í 구조 ê°ì§. li ëë¹ ì¡°ì ."),e.forEach(e=>{let t=Array.from(e.children).filter(e=>"LI"===e.tagName),n=t.length;if(0===n)return;let r=100/n;t.forEach(e=>{e.style.setProperty("width","".concat(r,"%"),"important"),e.style.setProperty("padding","0 1px 1px 0"),e.style.setProperty("background-color","white")})});else{console.log("기존 í 구조 ê°ì§. img ëë¹ ì¡°ì .");let e=document.querySelectorAll("[data-tab]");if(0===e.length)return;let t=new Set(Array.from(e).map(e=>e.getAttribute("data-tab"))).size;if(0===t)return;let n=100/t;e.forEach(e=>{e.style.setProperty("width","".concat(n,"%"),"important")})}console.log("í ì´ê¸°í ìë£")},tV=()=>{let e=document.querySelector("[data-sticky-top]");e&&(e.style.display="flex",e.style.flexDirection="column",e.style.zIndex="999",e.style.position="sticky",e.style.top=W.tq?"56px":"70px")},[tQ,t0]=(0,i.useState)(window.scrollY),[t1,t2]=(0,i.useState)(!0),t4=()=>{let e=document.querySelector("[data-sticky-bottom]");e&&(e.style.display="block",e.style.position="sticky",e.style.bottom=W.tq?"59px":"0px",e.style.transition="bottom 0.3s ease-in-out",requestAnimationFrame(()=>{let t=e.offsetHeight;e.style.marginTop="-".concat(t,"px")}))};(0,i.useEffect)(()=>{let e=()=>{let e=window.scrollY;t2(e<=60||e>=document.documentElement.scrollHeight-window.innerHeight-80||tQ>e),t0(e)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[c,tQ]),(0,i.useEffect)(()=>{let e=document.querySelector("[data-sticky-bottom]");e&&W.tq&&(e.style.bottom=t1?"59px":"0px")},[c,t1]),(0,i.useEffect)(()=>{let e=document.querySelectorAll("[data-toggle-group]");
10!==e.length&&e.forEach(e=>{let t=e.querySelector('[data-toggle="on"]'),n=e.querySelector('[data-toggle="off"]'),r=e.querySelector("[data-toggle-target]");if(!t||!n||!r)return;let i="open"===(e.getAttribute("data-toggle-default")||"open");t.style.display=i?"block":"none",n.style.display=i?"none":"block",r.style.display=i?"block":"none";let o=e=>{t.style.display=e?"none":"block",n.style.display=e?"block":"none",r.style.display=e?"none":"block"},a=()=>o("none"!==t.style.display);return t.hasAttribute("data-listener-attached")||(t.addEventListener("click",a),n.addEventListener("click",a),t.style.cursor="pointer",n.style.cursor="pointer",t.setAttribute("data-listener-attached","true")),()=>{t.removeEventListener("click",a),n.removeEventListener("click",a),t.style.cursor="",n.style.cursor="",t.removeAttribute("data-listener-attached")}})},[c]),(0,i.useEffect)(()=>{tX(),tV(),t4()},[c]);let t3=e=>{try{return new URL(e).pathname+"?qna=1&reviews=1"}catch(t){return console.error("Invalid URL:",e),""}},[t6,t5]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=document.querySelectorAll("[data-isAdult]");e&&e.forEach(e=>{e.addEventListener("click",t7)})},[c]);let t7=async e=>{if(tA){if(tA&&!(null==tA?void 0:tA.adult)){alert(z("member.check.message114")),e.preventDefault();return}}else{e.preventDefault();let t=t3(e.currentTarget.getAttribute("href"));sessionStorage.setItem("snsMobile",!0),sessionStorage.setItem("prevPath",location.pathname),sessionStorage.setItem("savedHref",t),t5(!t6)}};(0,i.useEffect)(()=>{let e=document.querySelectorAll("[data-isLogin]");e&&e.forEach(e=>{e.addEventListener("click",t8)}),(e=document.querySelectorAll("[data-islogin]"))&&e.forEach(e=>{e.addEventListener("click",t8)})},[c]);let t8=e=>{if(void 0==JSON.parse(sessionStorage.getItem("user")).userState){e.preventDefault(),console.log(e);let t=e.currentTarget.getAttribute("href");sessionStorage.setItem("savedHref",t),tU();return}},[t9,ne]=(0,i.useState)(!1),[nt,nn]=(0,i.useState)(!1),[nr,ni]=(0,i.useState)(!1),[no,na]=(0,i.useState)(!1),[ns,nl]=(0,i.useState)(),nc=()=>{ne(!t9)},nd=()=>{nn(!nt)};(0,i.useEffect)(()=>{let e=document.querySelectorAll("[data-event]"),t=!1;e&&e.forEach(e=>{e.removeEventListener("click",nu),e.addEventListener("click",e=>{t||(t=!0,na(!0),nu(e),setTimeout(()=>{t=!1},1e3))})})},[c]);let nu=async e=>{if(!tA){tU();return}e.preventDefault();let t=e.target.getAttribute("data-event");try{var n,r,i,o,a,s,l,c,d,u;let e=await (0,V.ID)(t);try{if((null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.msg)==="ok"){let t={event_name:"event_participation",event_time:(0,Q.cc)(),event_num:null===(o=e.data)||void 0===o?void 0:o.eventNum,event_type:null===(a=e.data)||void 0===a?void 0:a.brazeEventType,cpn_type:null===(s=e.data)||void 0===s?void 0:s.cpnType,event_cpn:null===(l=e.data)||void 0===l?void 0:l.eventCpn};(0,Q.fT)(ef,"event_participation",t)}}catch(e){console.log("íí -> ì´ë²¤í¸ braze ìë¬",e)}if((null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.eventType)==="PICK"){if(e&&!e.error){if((null==e?void 0:e.data)===""||(null==e?void 0:null===(c=e.data)||void 0===c?void 0:c.msg)==="already"||(null==e?void 0:null===(d=e.data)||void 0===d?void 0:d.msg)==="period")return nc(),nl(null==e?void 0:e.data),null;setTimeout(()=>{nl(null==e?void 0:e.data),nc(),na(!1)},2e3);return}}else(null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.eventType)==="APPLY"&&(nd(),nl(null==e?void 0:null===(u=e.data)||void 0===u?void 0:u.msg),na(!1))}catch(e){console.error("RouletteExecute error:",e),alert(z("common.message34"))}finally{try{na(!1)}catch(e){console.error("Finally block error:",e)}}};return(0,r.jsxs)(r.Fragment,{children:[tq&&(0,r.jsx)(f.Z,{}),eG?(0,r.jsx)(e=>{let t="",{t:n,thtml:i}=(0,E.ZK)();if(!0===eR)t=n("member.check.message224");else if(!1===eR)switch(eD){case"use":t=n("member.check.message225");break;case"not-exist":t=n("member.check.message226");break;case"fail":t=n("member.check.message227")}return(0,r.jsxs)(en,{open:eG,setOpen:eJ,noTitle:!0,closeBtn:!0,width:"29.5rem",height:"20.1rem",overY:"visible",mobwidth:"95%",mobMwidth:"335px",mobHeight:"auto",mobPd:"2rem",mobLeft:"50%",mobTransform:"translateX(-50%)",children:[(0,r.jsx)(g.Z,{textAlign:"center",mgt:"4rem",dsp:"block",lineHeight:"1.88",mobMgt:"3rem",children:t}),(0,r.jsx)(h.Z,{dsp:"flex",justify:"center",children:(0,r.jsx)(v.u,{btnBlack:!0,mt:"3rem",mobMt:"2rem",style:{textAlign:"center"},onClick:()=>{eJ(e=>!e),eR&&window.location.reload()},children:n("common.message36")})})]})},{}):null,tL?(0,j.createPortal)((0,r.jsx)(S.Z,{modalControl:tL,setModalControl:tz}),document.body):null,t6?(0,j.createPortal)((0,r.jsx)($.default,{setModalControl:t5,modalControl:t6,user:tA}),document.body):null,tB?(0,j.createPortal)((0,r.jsx)(Z.Z,{modalControl:tB,setModalControl:t_,setParentMod
1alControl:!1}),document.body):null,tH?(0,j.createPortal)((0,r.jsx)(I,{modalControl:tH,setModalControl:tF,setParentModalControl:!1,marketingInfo:eC,ntnltyCode:eE,skyPassNumber:eA}),document.body):null,t9&&(0,r.jsx)(e=>{let{open:t,setOpen:n,eventResult:i,setIsExecuting:o}=e;""===i&&window.location.reload();let{t:a,thtml:s,tstr:l}=(0,E.ZK)();return(0,r.jsxs)(en,{open:t,setOpen:n,noTitle:!0,closeBtn:!0,width:"400px",height:"auto",overY:"visible",pd:"3rem",mobwidth:"95%",mobMwidth:"33.5rem",mobPd:"2rem",mobLeft:"50%",mobTransform:"translateX(-50%)",children:[""===i&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("p",{className:"event-result-desc",children:s("member.check.message188")})}),(null==i?void 0:i.msg)==="member"&&(0,r.jsx)(h.Z,{mgt:"3rem",mgb:"1rem",className:"roulette-modal",children:(0,r.jsx)(g.Z,{as:"p",lineHeight:"3rem",mgt:"3rem",mobMgt:"3.6rem",mobLineHeight:"2.4rem",size:"ml",color:"black",children:a("event.message140")})}),(null==i?void 0:i.msg)==="already"&&(0,r.jsx)(h.Z,{mgt:"3rem",mgb:"1rem",className:"roulette-modal",children:(0,r.jsx)(g.Z,{as:"p",lineHeight:"3rem",mgt:"3rem",mobMgt:"3.6rem",mobLineHeight:"2.4rem",size:"ml",color:"black",children:a("event.message137")})}),(null==i?void 0:i.msg)==="period"&&(0,r.jsx)(h.Z,{mgt:"3rem",mgb:"1rem",className:"roulette-modal",children:(0,r.jsx)(g.Z,{as:"p",lineHeight:"3rem",mgt:"3rem",mobMgt:"3.6rem",mobLineHeight:"2.4rem",size:"ml",color:"black",children:a("event.message143")})}),(null==i?void 0:i.msg)==="limit0"&&(0,r.jsx)(h.Z,{mgt:"3rem",mgb:"1rem",className:"roulette-modal",children:(0,r.jsx)(g.Z,{as:"p",lineHeight:"3rem",mgt:"3rem",mobMgt:"3.6rem",mobLineHeight:"2.4rem",size:"ml",color:"black",children:a("event.message111")})}),(null==i?void 0:i.msg)==="limit1"&&(0,r.jsx)(h.Z,{mgt:"3rem",mgb:"1rem",className:"roulette-modal",children:(0,r.jsx)(g.Z,{as:"p",lineHeight:"3rem",mgt:"3rem",mobMgt:"3.6rem",mobLineHeight:"2.4rem",size:"ml",color:"black",children:a("product.message23")})}),(null==i?void 0:i.msg)==="BOOM"&&(0,r.jsxs)(h.Z,{mgt:"3rem",mgb:"1rem",className:"roulette-modal",children:[(0,r.jsx)("h2",{children:a("event.message204")}),(0,r.jsx)(g.Z,{as:"div",lineHeight:"2rem",mobMgt:"1rem",children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h3",{className:"event-result-title",children:"ê½"}),(0,r.jsx)("img",{src:"/icons/roulette/roulette_boom.png",alt:"roulette-event-result-event",style:{justifyContent:"center",width:"30%"}}),(0,r.jsx)("p",{className:"event-result-desc",children:a("event.message112")})]})})]}),(null==i?void 0:i.msg)==="ok"&&(0,r.jsxs)(h.Z,{mgt:"3rem",mgb:"1rem",className:"roulette-modal",children:[(0,r.jsx)("h2",{children:a("event.message204")}),(0,r.jsxs)(g.Z,{as:"div",lineHeight:"2rem",mobMgt:"1rem",children:[(null==i?void 0:i.bnefType)==="POINT"&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("h3",{className:"event-result-title",children:[null==i?void 0:i.eventContent,"P"]}),(0,r.jsx)("img",{src:"/icons/roulette/roulette_point.png",alt:"roulette-event-result-event",style:{justifyContent:"center",width:"30%"}}),(0,r.jsx)("p",{className:"event-result-desc",children:l("event.message113",null==i?void 0:i.eventContent)})]}),(null==i?void 0:i.bnefType)==="COUPON"&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h5",{className:"event-result-title",children:null==i?void 0:i.eventContent}),(0,r.jsx)("img",{src:"/icons/roulette/roulette_coupon.png",alt:"roulette-event-result-event",style:{justifyContent:"center",width:"30%"}}),(0,r.jsx)("p",{className:"event-result-desc",children:a("order.message350")})]})]})]}),(0,r.jsx)("div",{children:(0,r.jsx)(v.u,{type:"button",btnBlack:!0,ml:".5rem",mt:"15px",mobMt:"3rem",onClick:()=>{n(!1),o(!1)},children:a("common.message36")})})]})},{open:t9,setOpen:ne,eventResult:ns,setIsExecuting:na}),nt&&(0,r.jsx)(e=>{let{open:t,setOpen:n,eventResult:i,setIsSubmitting:o}=e,{t:a}=(0,E.ZK)();return(0,r.jsxs)(en,{open:t,setOpen:n,noTitle:!0,closeBtn:!0,width:"443px",height:"calc(fit-content + 10px)",overY:"visible",style:{paddingBottom:"2rem"},children:[(0,r.jsx)(h.Z,{mgt:"3rem",mgb:"1rem",children:(0,r.jsxs)(g.Z,{as:"p",lineHeight:"2rem",mobMgt:"1rem",size:"ml",style:{whiteSpace:"pre-line"},children:["ok"===i&&a("event.message139"),"already"===i&&a("event.message137"),"period"===i&&a("event.message143")]})}),(0,r.jsx)("div",{children:"no-address"!==i&&(0,r.jsx)(v.u,{type:"button",btnBlack:!0,ml:".5rem",mt:"15px",mobMt:"3rem",onClick:()=>{n(!1),o&&o(!1)},children:a("common.message36")})})]})},{open:nt,setOpen:nn,eventResult:ns,setIsSubmitting:na}),eg?(0,j.createPortal)((0,r.jsxs)(en,{open:eg,setOpen:eh,noTitle:!0,width:"45rem",height:"auto",pd:"3rem",mobPd:"2rem",overY:"visible",children:[(0,r.jsx)(g.Z,{as:"p",size:"1.9rem",lineHeight:"3rem",mgt:"20px",dangerouslySetInnerHTML:{__html:eY}}),(0,r.jsx)("div",{children:(0,r.jsx)(v.u,{type:"button",btnBlack:!0,mt:"2rem",mobMt:"2rem",onClick:()=>eh(!1),children:z("common.message36")})})]}),document.body):null,!e4&&(0,r.jsx)(S.Z,{modalControl:e9,setModalControl:te}),tt&&(0,r.jsx)(R.default,{open:tt,setOpen:tn,user:ts,skypassNumber:e7,isSpecialMember:tr,setIsLiquorMembership:ti}),(0,r.jsx)(y.Z,{open:em,setOpen:ep}),(0,r.jsxs)(h.Z,{_theme:ev,className:"page-wrap exh-detail benefit",children:[(0,r.jsx)(k.Z,{array:ew}),(0,r.jsx)("h2",{className:"blind",children:"ííìë´ ìì¸"}),(0,r.jsxs)("div",{className:"section-wrap",style:{width:W.tq?"":"1117px"},children:[(0,r.jsx)("div",{className:"title-wrap",children:(0,r.jsx)("h3",{className:"title title-1",children:null==c?void 0:c.title})}),(0,r.jsxs)("div",{className:"content-wrap",style:{marginLeft:W.tq?"":"-4rem"},children:[(0,r.jsx)("div",{className:"content-html",dangerouslySetInnerHTML:{__html:c.content},onClick:tk}),"BNE250102181322181"!==M&&"BNE250228150643793"!==M&&(0,r.jsx)("div",{className:"ad-view",children:!W.tq&&!tx&&(0,r.jsx)("div",{className:"main-right",children:(0,r.jsxs)("div",{className:"main-ad-banner",children:[(null==L?void 0:L.defaultYn)==="Y"&&(0,r.jsx)("div",{className:"banner-video",children:(0,r.jsx)(B.Z,{})}),(null==L?void 0:L.defaultYn)==="N"&&(0,r.jsx)(r.Fragment,{children:(null==L?void 0:L.image1Type)==="IMAGE"?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(b.Z,{src:null==L?void 0:L.image1Url,ml:"2rem",mr:"2rem"})}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(eu,{children:(0,r.jsx)(et,{inquiryFiles:null==L?void 0:L.image1Url})})})}),el?(0,r.jsx)("div",{className:"banner-imgs",dangerouslySetInnerHTML:{__html:null==L?void 0:L.bannerTxtEn}}):(0,r.jsx)("div",{className:"banner-imgs",dangerouslySetInnerHTML:{__html:null==L?void 0:L.bannerTxt}})]})})})]})]}),"BNE250102181322181"===M&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"section-wrap",children:[(0,r.jsxs)("div",{className:"content-wrap",style:{marginLeft:W.tq?"":"-4rem"},children:[(0,r.jsx)("div",{className:"content-html",children:(0,r.jsx)("div",{className:"page-wrap cs-view",style:{paddingTop:W.tq?"0rem":"",marginTop:W.tq?"0":""},children:(0,r.jsx)("div",{className:"layout-wrap",children:(0,r.jsx)("div",{className:"content-wrap",style:{width:W.tq?"100%":"",marginTop:W.tq?"0":""},children:(0,r.jsxs)("div",{className:"section-wrap",style:{marginTop:W.tq?"0":""},children:[(0,r.jsxs)(ec,{children:[(0,r.jsx)(ed,{style:{marginTop:W.tq?"-3rem":""}}),(0,r.jsx)(h.Z,{dsp:"flex",direction:"column",align:"flex-start !important",mobMgt:"0rem"})]}),(0,r.jsx)(h.Z,{width:"100%",height:"auto",mgt:"6rem",mgb:"6rem",dsp:"flex",justify:"center",gap:"1rem",mobDirection:"column",mobMgt:"4rem",mobMgb:"4rem",children:(0,r.jsx)(h.Z,{as:"button",padding:"1.9rem 0",mobPadding:"1.4rem 0",bgColor:"black",color:"white",bold:!0,width:"30%",textAlign:"center",mobWidth:"100%",onClick:()=>tk(),children:(0,r.jsx)(g.Z,{bold:!0,children:"SKY Bar CLUB ê°ì
í기"})})})]})})})})}),(0,r.jsx)("div",{className:"ad-view",children:!W.tq&&!tx&&(0,r.jsx)("div",{className:"main-right",children:(0,r.jsxs)("div",{className:"main-ad-banner",children:[(null==L?void 0:L.defaultYn)==="Y"&&(0,r.jsx)("div",{className:"banner-video",children:(0,r.jsx)(B.Z,{})}),(null==L?void 0:L.defaultYn)==="N"&&(0,r.jsx)(r.Fragment,{children:(null==L?void 0:L.image1Type)==="IMAGE"?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(b.Z,{src:null==L?void 0:L.image1Url,ml:"2rem",mr:"2rem"})}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(eu,{children:(0,r.jsx)(et,{inquiryFiles:null==L?void 0:L.image1Url})})})}),el?(0,r.jsx)("div",{className:"banner-imgs",dangerouslySetInnerHTML:{__html:null==L?void 0:L.bannerTxtEn}}):(0,r.jsx)("div",{className:"banner-imgs",dangerouslySetInnerHTML:{__html:null==L?void 0:L.bannerTxt}})]})})})]}),(0,r.jsxs)("div",{className:"section-wrap top-line",children:[(0,r.jsxs)("div",{className:"title-type",style:{display:"flex"},children:[(0,r.jsx)(b.Z,{src:"/assets/icons/icon-warning-b.svg",alt:"warning",pc:{width:"20px",height:"20px"},className:"icon"}),(0,r.jsx)("h4",{className:"title",children:z("order.message75")})]}),(0,r.jsx)(h.Z,{className:"text-info-group",color:"#666",children:(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:"SKY SHOP ì¨ë¼ì¸ëª°ììë§ ì¬ì© ê°ë¥í â무ë£ê°ì
â 멤ë²ì ì
ëë¤."}),(0,r.jsx)("li",{children:"SKY Bar CLUBì SKY SHOP ì¨ë¼ì¸ëª° ì í
1ìë§ ê°ì
í ì ììµëë¤."}),(0,r.jsx)("li",{children:"ëííê³µ ê¸°ë´ ëë ì¬ì ìì½ì¼ë¡ 구매íì ìíìë ííì´ ì ì©ëì§ ìì¼ë©°, SKY SHOP ì¨ë¼ì¸ëª°ìì ì£¼ë¥ êµ¬ë§¤ ììë§ ì ì©ë©ëë¤."}),(0,r.jsx)("li",{children:"ë§ì¼í
ìì ëì를 íì§ ìì ê²½ì°, 미ì±ë
ìì¼ ê²½ì° SKY Bar CLUB ê°ì
ì´ ì íë©ëë¤."}),(0,r.jsxs)("li",{children:["SKY SHOP ì¨ë¼ì¸ëª°ìì ì£¼ë¥ êµ¬ë§¤ ì, 멤ë²ì ë±ê¸ë³ ë§ì¼ë¦¬ì§ ì 립 íí ì¸ 1$ 구매 ë¹ 1ë§ì¼ë¦¬ì§ê° ì¶ê° ì 립ë©ëë¤.",(0,r.jsx)("br",{}),"(ìì : WHITE íì ì£¼ë¥ $100 ìí 구매 ì = 기본 ì 립 100 ë§ì¼ë¦¬ì§ + ì¶ê° ì 립 100 ë§ì¼ë¦¬ì§ = ì´ 200 ë§ì¼ë¦¬ì§ ì 립)"]}),(0,r.jsx)("li",{children:"ëííê³µ ë§ì¼ë¦¬ì§ë ì¸ëë°ì ìíì ì¤ê²°ì ê¸ì¡ 기ì¤ì¼ë¡ ì¸ë ìì ì¼ë¡ë¶í° 14ì¼ íì ìë ì 립ë©ëë¤."}),(0,r.jsx)("li",{children:"ëííê³µ ë§ì¼ë¦¬ì§ë ë§ì´íì´ì§ì ì
ë ¥ë SKYPASS íìë²í¸ë¥¼ 기ì¤ì¼ë¡ ì 립ë©ëë¤."}),(0,r.jsx)("li",{children:"SKY Bar CLUB ê°ì
ì¦ì ííì´ ì ì©ëë©°, ë§ì¼í
ìì ëì í´ì ëë íì íí´ ì ê¹ì§ ííì ì ì§ë©ëë¤."}),(0,r.jsx)("li",{children:"SKY Bar CLUB ê°ì
ì 구매í 주ë¥ì ëí ì¶ê° ë§ì¼ë¦¬ì§ ì 립 ìê¸ì ì©ì ë¶ê°í©ëë¤."}),(0,r.jsx)("li",{children:"SKY Bar CLUB ííì ë¹ì¬ì ì¬ì ì¼ë¡ ë³ê²½ë ì ììµëë¤."})]})})]})]}),W.tq&&"BNE250102181322181"===M&&(0,r.jsxs)("div",{className:"section-wrap full ad-box",style:{width:"100%",marginTop:"0"},children:[(null==L?void 0:L.defaultYn)==="Y"&&(0,r.jsx)(_.Z,{}),(null==L?void 0:L.defaultYn)==="N"&&(0,r.jsx)(r.Fragment,{children:(null==L?void 0:L.image1Type)==="IMAGE"?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(b.Z,{src:null==L?void 0:L.image1Url,ml:"2rem",mr:"2rem"})}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(eu,{children:(0,r.jsx)(et,{inquiryFiles:null==L?void 0:L.image2Url})})})})]})]}),"BNE250228150643793"===M&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{id:"recopick_widget_gigjxjcb"})}),(null==c?void 0:c.bnefAffiliateType)=="FLIGHT"&&(0,r.jsx)("div",{className:"section-wrap",children:(0,r.jsxs)("div",{className:"content-html",children:[(0,r.jsx)(h.Z,{dsp:"flex",align:"center",mobMgl:"2rem",children:(0,r.jsxs)(er,{mobWidth:"45%",_mimCode:ef,_imgPath:ey,className:"marketing",children:[(0,r.jsx)("input",{type:"checkbox",id:"privacyTerms",onChange:e=>{let t=document.querySelector("#privacyTerms");t.checked?eH(!0):(eH(!1),ek(!0)),eU(!t.checked)},checked:e_}),(0,r.jsx)("label",{htmlFor:"privacyTerms",children:(0,r.jsx)(g.Z,{as:"p",lineHeight:"1.5",width:el?W.tq?"300px":"550px":"186px",fontSize:"16px",fontWeight:"600",mobSize:"1.5rem",children:z("member.flight.message9")})})]})}),ej&&!e_&&(0,r.jsx)(ea,{children:z("member.flight.message10")}),(0,r.jsx)(ei,{height:"15rem",children:(0,r.jsxs)(g.Z,{as:"div",size:"14px",color:"#000",lineHeight:"1.71",children:["\xb7 \xa0",z("member.flight.message11")," ",(0,r.jsx)("br",{}),"\xb7 \xa0",z("member.flight.message12")," ",(0,r.jsx)("br",{}),"\xb7 \xa0",z("member.flight.message13")," ",(0,r.jsx)("br",{}),"\xb7 \xa0",z("member.flight.message14")," ",(0,r.jsx)("br",{})]})})]})}),(null==c?void 0:c.bnefAffiliateType)=="11ST"&&(0,r.jsx)("div",{className:"section-wrap",children:(0,r.jsxs)("div",{style:{width:"100%",display:"flex",alignItems:"center",flexDirection:"column",flexWrap:"wrap"},children:[(0,r.jsx)("p",{children:z("order.message271")}),(0,r.jsx)("input",{type:"text",placeholder:z("product.message112"),...e$("randomNumbers",{pattern:{value:/^[a-zA-Z0-9]+$/,message:z("member.check.message228")},required:z("member.check.message229")}),style:{lineHeight:"3.4rem",width:"60%",marginTop:"2rem",border:"1px solid #ccc",outline:"0"}}),e2.randomNumbers&&(0,r.jsx)(g.Z,{size:"1.2rem",color:"#e1251b",dsp:"inline-block",mgt:"0.8rem",textAlign:"center",width:"100%",children:null===(a=e2.randomNumbers)||void 0===a?void 0:a.message}),(0,r.jsx)("div",{className:"section-wrap buttons-box",children:(0,r.jsx)("button",{className:"btn-list",onClick:e0(tC),style:{color:"#fff",height:"48px",fontSize:"16px",width:"20%"},children:z("common.message36")})})]})}),tA&&!eT&&(null==c?void 0:c.bnefAffiliateType)=="FLIGHT"&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"section-wrap",style:{marginTop:"6rem"},children:(0,r.jsxs)("div",{className:"content-html",children:[(0,r.jsx)("img",{src:"/assets/images/marketing-agree2.jpg",alt:""}),(0,r.jsx)(h.Z,{dsp:"flex",align:"center",mobMgl:"2rem",mgt:"3rem",children:(0,r.jsxs)(er,{mobWidth:"45%",_mimCode:ef,_imgPath:ey,className:"marketing",children:[(0,r.jsx)("input",{type:"checkbox",id:"agreeY",onChange:e=>tS(),checked:eS}),(0,r.jsx)("label",{htmlFor:"agreeY",children:(0,r.jsx)(g.Z,{as:"p",lineHeight:"1.5",width:el?W.tq?"300px":"650px":"186px",fontSize:"16px",fontWeight:"600",mobSize:"1.5rem",children:z("member.flight.message15")})})]})}),(0,r.jsx)(ei,{height:"12rem",children:(0,r.jsxs)(g.Z,{as:"div",size:"1.5rem",color:"#000",lineHeight:"1.5",children:["\xb7 \xa0",z("member.flight.message16"),(0,r.jsx)("br",{}),"\xa0\xa0\xa0",z("member.flight.message17"),(0,r.jsx)("br",{}),"\xb7 \xa0",z("member.flight.message18"),(0,r.jsx)("br",{})]})}),(0,r.jsxs)(h.Z,{dsp:"flex",align:"center",gap:"4rem",mobFlexWrap:"wrap",mobGap:"3rem",mgt:"2rem",mobMgl:"2rem",children:[(0,r.jsxs)(er,{mobWidth:"45%",_mimCode:ef,_imgPath:ey,className:"marketing",children:[(0,r.jsx)("input",{type:"checkbox",id:"sms",checked:eM,onChange:e=>{if(!eS){eL(!1);return}if(!ez&&!e.target.checked){eZ(!1),eL(!1);return}eM?eL(!1):eL(!0)}}),(0,r.jsx)("label",{htmlFor:"sms",children:"SMS"})]}),"HQS"===ef&&(0,r.jsxs)(er,{mobWidth:"45%",_mimCode:ef,_imgPath:ey,className:"marketing",children:[(0,r.jsx)("input",{type:"checkbox",id:"alarm",...e$("marketingInformation.alarm"),checked:ez,onChange:e=>{if(!eS){eB(!1);return}if(!e.target.checked&&!eM){eZ(!1),eB(!1);return}ez?eB(!1):eB(!0)}}),(0,r.jsx)("label",{htmlFor:"alarm",children:"APP PUSH"})]})]})]})})}),(null==c?void 0:c.bnefAffiliateType)=="FLIGHT"&&(0,r.jsx)("div",{className:"section-wrap buttons-box",children:(0,r.jsx)("a",{className:"btn-list",style:{color:"#fff",height:"48px",fontSize:"16px"},"data-skypassnum":"skypassNum",children:z("event.message178")})}),(null==c?void 0:c.bnefAffiliateType)=="FLIGHT"&&(0,r.jsx)("div",{className:"section-wrap",children:(0,r.jsxs)(eo,{children:[(0,r.jsx)("div",{className:"title-type",style:{borderTop:"1px solid #222",paddingTop:"3em"},children:(0,r.jsx)(g.Z,{fontWeight:"700",fontSize:"15px",children:z("order.message75")})}),(0,r.jsxs)(h.Z,{className:"text-info-group",color:"#666",lineHeight:"1.69",style:{marginTop:"11px"},children:["\xb7\xa0",z("event.message22"),(0,r.jsx)("br",{}),"\xb7\xa0",z("event.message23"),(0,r.jsx)("br",{}),"\xb7\xa0",z("event.message24"),(0,r.jsx)("br",{}),"\xb7\xa0",z("event.message25"),(0,r.jsx)("br",{}),"\xb7\xa0",z("event.message26"),(0,r.jsx)("br",{}),"\xb7\xa0",z("event.message27"),(0,r.jsx)("br",{}),"\xb7\xa0",z("event.message28"),(0,r.jsx)("br",{}),"\xb7\xa0",z("event.message29"),(0,r.jsx)("br",{}),"\xb7\xa0",z("event.message30"),(0,r.jsx)("br",{}),"\xb7\xa0",z("event.message31"),(0,r.jsx)("br",{})]})]})}),(null==c?void 0:c.bnefAffiliateType)=="11ST"&&(0,r.jsx)("div",{className:"section-wrap",children:(0,r.jsxs)(eo,{children:[(0,r.jsx)("div",{className:"title-type",style:{borderTop:"1px solid #222",paddingTop:"3em"},children:(0,r.jsx)(g.Z,{fontWeight:"700",fontSize:"15px",children:z("order.message75")})}),(0,r.jsxs)(h.Z,{className:"text-info-group",color:"#666",lineHeight:"1.69",style:{marginTop:"11px"},children:["\xb7\xa0",z("event.message32"),(0,r.jsx)("br",{}),"\xb7\xa0",z("event.message33"),(0,r.jsx)("br",{}),"\xb7\xa0",z("event.message34"),(0,r.jsx)("br",{}),"\xb7\xa0",z("event.message35"),(0,r.jsx)("br",{}),"\xb7\xa0",z("event.message36"),(0,r.jsx)("br",{}),"\xb7\xa0",z("event.message37"),(0,r.jsx)("br",{}),"\xb7\xa0",z("event.message38"),(0,r.jsx)("br",{})]})]})}),W.tq&&"BNE250102181322181"!==M&&(0,r.jsxs)("div",{className:"section-wrap full ad-box",style:{width:"100%",marginTop:"0"},children:[(null==L?void 0:L.defaultYn)==="Y"&&(0,r.jsx)(_.Z,{}),(null==L?void 0:L.defaultYn)==="N"&&(0,r.jsx)(r.Fragment,{children:(null==L?void 0:L.image1Type)==="IMAGE"?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(b.Z,{src:null==L?void 0:L.image1Url,ml:"2rem",mr:"2rem"})}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(eu,{children:(0,r.jsx)(et,{inquiryFiles:null==L?void 0:L.image2Url})})})})]}),(null==c?void 0:c.bestDisplayCheck)=="Y"&&(0,r.jsx)("div",{className:"section-wrap top-line",children:(0,r.jsxs)("div",{className:"group-wrap",children:[(0,r.jsx)("h4",{className:"title title-2",children:z("product.message101")}),(0,r.jsx)(U.Z,{categories:d,currentIndex:m,setCurrentIndex:C,handleClickTabFunc:e=>{let t=e.target.dataset.id;N(e,t)}}),(0,r.jsx)("div",{className:"space-side",children:(null==P?void 0:P.length)?(0,r.jsx)(Y.Z,{children:null==P?void 0:P.map((e,t)=>(0,r.jsx)(O.Z,{product:e,index:t,isAllRank:!0,imageLabel:"rank"},t))}):(0,r.jsx)(es,{children:(0,r.jsxs)(h.Z,{width:"100%",margin:"60px auto 0",dsp:"flex",justify:"center",direction:"column",align:"center",children:[(0,r.jsx)(b.Z,{pc:{width:"130px",height:"130px"},src:"/assets/icons/icon-no-result.svg",alt:"ê²°ê³¼ ë´ì© ìì"}),(0,r.jsx)(g.Z,{dsp:"block",as:"strong",fontWeight:"600",size:"xl2",mgt:"2rem",children:z("product.message11")})]})})})]})}),(0,r.jsx)("div",{className:"section-wrap buttons-box",children:(0,r.jsx)(p(),{legacyBehavior:!0,href:"/benefits",children:(0,r.jsx)("a",{className:"btn-list",children:z("common.message81")})})})]})]})}let et=e=>{let{inquiryFiles:t}=e,n=(0,i.useRef)(null),[o,a]=(0,i.useState)(!1);(0,i.useEffect)(()=>
1{if(!W.tq&&n.current){let e=n.current.play();void 0!==e&&e.catch(()=>{})}},[W.tq]);let s=(0,i.useCallback)(()=>{var e,t;o?null===(e=n.current)||void 0===e||e.pause():null===(t=n.current)||void 0===t||t.play()},[o]);return(0,r.jsxs)(em,{children:[(0,r.jsx)("video",{ref:n,src:"".concat(t,"#t=0.1"),muted:!0,preload:"metadata",controls:!0,playsInline:!0,autoPlay:!W.tq,onPlay:()=>a(!0),onPause:()=>a(!1),loop:!0}),!o&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{}),(0,r.jsx)(b.Z,{onClick:s,button:!0,src:"/icons/playbtn.svg",alt:"ì¬ì ìì´ì½",imgWrapClassName:"play-icon",pc:{width:"32px",height:"32px"}})]})]})};c.ZP.div.withConfig({componentId:"sc-ffd8dd44-0"})([""]);let en=(0,c.ZP)(C.Z).withConfig({componentId:"sc-ffd8dd44-1"})(["display:flex;width:",";height:",";text-align:center;align-items:center;"],e=>e.width||"",e=>e.height||""),er=c.ZP.div.withConfig({componentId:"sc-ffd8dd44-2"})(["display:flex;align-items:center;input{border:1px solid ",";border-radius:0.4rem;width:20px;height:20px;margin-right:1.2rem;cursor:pointer;}input:checked{border:none;background-image:",";background-position:center;width:20px;height:20px;}label{font-size:1.5rem;cursor:pointer;}","{width:",";&.marketing{label{width:calc(100% - 40px);margin-left:0;}}}"],d.Z.color.gray.gray45,e=>{let{_imgPath:t}=e;return"url('/assets/images/".concat(t,"/checked.svg')")},d.Z.device.responsive,e=>{let{mobWidth:t}=e;return t&&t}),ei=c.ZP.div.withConfig({componentId:"sc-ffd8dd44-3"})(["background-color:",";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none width:68rem;height:",";padding:24px;border-radius:10px;overflow-y:auto;margin-top:1.5rem;> div{}","{margin-left:2rem;width:calc(100% - 2.5em);}"],d.Z.color.primary.bgGray,e=>e.height||"8rem",d.Z.device.responsive),eo=c.ZP.div.withConfig({componentId:"sc-ffd8dd44-4"})(["-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none padding:24px;border-radius:10px;overflow-y:auto;margin-top:1.5rem;max-width:1000px;margin:auto;> div{}"]);c.ZP.input.withConfig({componentId:"sc-ffd8dd44-5"})(["flex-shrink:0;display:flex;align-items:center;border:0.1rem solid ",";border-radius:0.4rem;background-image:url(/icons/check-gray.svg);background-position:center;background-repeat:no-repeat;width:20px;height:20px;margin:0;&:checked{background-image:url(/icons/checked.svg);border:none;}"],d.Z.color.gray.gray45);let ea=c.ZP.p.withConfig({componentId:"sc-ffd8dd44-6"})(["color:#e1251b;font-size:1.2rem;margin-top:7px;margin-left :20px;text-align:left;font-family:'Pretendard';"]),es=c.ZP.div.withConfig({componentId:"sc-ffd8dd44-7"})(["text-align:center;display:flex;justify-content:center;margin-top:6rem;"]),el=c.ZP.div.withConfig({componentId:"sc-ffd8dd44-8"})(["width:62rem;height:141px;margin:2rem auto 0;display:flex;align-items:flex-end;justify-content:space-between;border-bottom:3px solid ",";& > div{display:flex;align-items:flex-end;}","{width:100%;margin:2rem 0;height:auto;}"],d.Z.color.primary.fontBlue,d.Z.device.responsive),ec=(0,c.ZP)(el).withConfig({componentId:"sc-ffd8dd44-9"})(["width:100%;align-items:flex-start;justify-content:flex-start;border-bottom:none;height:fit-content;h3{display:inline;font-size:1.4rem;}","{flex-direction:column;margin-top :0;}"],d.Z.device.responsive);c.ZP.button.withConfig({componentId:"sc-ffd8dd44-10"})(["position:absolute;top:4%;right:0;","{display:none;}"],d.Z.device.responsive);let ed=c.ZP.div.withConfig({componentId:"sc-ffd8dd44-11"})(["width:100%;height:0;padding-bottom:4600px;background:url('/assets/images/newspecialmembership-pc.jpg') no-repeat;background-size:100% 100%;background-position:center;","{padding-bottom:calc(9122 / 1000 * 100%);background:url('/assets/images/newspecialmembership-mo.jpg') no-repeat;background-size:cover;}"],d.Z.device.responsive),eu=c.ZP.button.withConfig({componentId:"sc-ffd8dd44-12"})(["width:100%;padding:0;border:0;display:flex;justify-content:center;align-items:center;overflow:hidden;background:transparent;@media (min-width:768px){max-width:370px;}"]),em=c.ZP.div.withConfig({componentId:"sc-ffd8dd44-13"})(["width:100%;position:relative;> video{width:100%;height:auto;display:block;object-fit:cover;}> span,.play-icon{position:absolute;
1left:50%;top:50%;transform:translate(-50%,-50%);}> span{width:100%;height:100%;background:rgba(0,0,0,0.5);}"]);var ep=n(64660);function eg(e){var t,n;let{benefitDetail:a,brandCategories:s,currentProductsIndex:c,setCurrentProductsIndex:d,handleOnClickProductsTabIndex:m,bestBrands:p,bestProducts:v,currentIndex:y,setCurrentIndex:C,adManager:N}=e,{t:I,isEn:T}=(0,E.ZK)(),P=(0,o.useRouter)(),[A,q]=(0,i.useState)(!1),[M,L]=(0,i.useState)(null),z=(0,l.sJ)(x.cz),H=(0,u.Z)(z),J=[{index:1,ko:"í",en:"HOME",route:"/"},{index:2,ko:"íí",en:"Benefits",route:"/benefits"},{index:3,ko:null==a?void 0:a.title,en:null==a?void 0:a.title}],$=(0,l.sJ)(w.ar),[X,V]=(0,i.useState)(!1),[Q,ee]=(0,i.useState)(!1),[et,en]=(0,i.useState)(!1),[er,ei]=(0,i.useState)(!1),eo=(null===(t=window)||void 0===t?void 0:t.android)!==void 0||(null===(n=window)||void 0===n?void 0:n.webkit)!==void 0,ea=W.tq&&eo,es=(0,l.sJ)(w.jl),[el,ec]=(0,i.useState)(),[ed,eu]=(0,i.useState)(""),[em,eg]=(0,i.useState)(!1),[eb,ex]=(0,i.useState)(!1),[ey,ew]=(0,i.useState)(!1),[ej,ek]=(0,i.useState)({}),{userData:eS,setUserData:eZ}=(0,i.useContext)(D.S),[eC,eN]=(0,i.useState)(!1),{handleGetUser:eE,handleSignOut:eI}=(0,K.Z)(eC,eN);(0,i.useEffect)(()=>{eS&&(async()=>{let e=await (0,F.t9)();if(!e.error||403!==e.error.status)return ec(e)})()},[eS]),(0,i.useEffect)(()=>{eC||eE()},[eE,eS]),(0,i.useEffect)(()=>{eS&&(async()=>{let e=await (0,F.ep)();if(!e.error||403!==e.error.status)return eu(e)})()},[eS]),(0,i.useEffect)(()=>{(async()=>{let e=await (0,G.g)({mbrshCode:"A1"});if(!e.error||403!==e.error.status)return ek(e)})()},[]),(0,i.useEffect)(()=>{var e;null==el||null===(e=el.specialMembership)||void 0===e||e.map(e=>ew(!0))},[el]);let eT=()=>{X||V(!0)},eP=()=>{ee(!Q)},eA=()=>{en(!et),L($.skyPassnum||null)};(0,i.useEffect)(()=>{let e=(0,E.D0)(P);console.log(e),ei(e)},[z,P]);let eq=(e,t,n,r)=>{let i=document.getElementById(e);if(!i||!1===i.complete)return;let o=i.offsetWidth,a=i.offsetHeight,s=o/t,l=a/n;r.forEach(e=>{let{coordX1:t,coordY1:n,coordX2:r,coordY2:i,areaElement:o}=e;o&&(o.coords="".concat(Math.round(t*s),",").concat(Math.round(n*l),",").concat(Math.round(r*s),",").concat(Math.round(i*l)))})},eM=()=>{document.querySelectorAll(".content-html img").forEach(e=>{let t=e.id,n=e.getAttribute("usemap");if(!n)return;let r=n.replace("#",""),i=!1,o=()=>{if(i)return;let n=e.naturalWidth,o=e.naturalHeight,a=document.querySelector('map[name="'.concat(r,'"]'));if(!a)return;let s=[];a.querySelectorAll("area").forEach(e=>{let t=e.getAttribute("data-coords");if(null!==t){let n=t.split(",").map(e=>parseInt(e.trim(),10));if(4!==n.length)return;s.push({coordX1:n[0],coordY1:n[1],coordX2:n[2],coordY2:n[3],areaElement:e})}}),s.length>0&&eq(t,n,o,s),i=!0};e.addEventListener("load",o),e.complete&&e.naturalWidth>0&&o()})},eL=async e=>{if(e.preventDefault(),!$){eT();return}ez(e)};(0,i.useEffect)(()=>{let e=document.querySelectorAll("area");e&&e.forEach(e=>e.addEventListener("click",eL));let t=()=>{eM()};return window.addEventListener("resize",t),eM(),()=>{e&&e.forEach(e=>e.removeEventListener("click",eL)),window.removeEventListener("resize",t)}},[$]);let ez=async e=>{if(console.log($),!$){eT();return}if(!$.regularMember){eP();return}eA()};return(0,r.jsxs)(r.Fragment,{children:[A&&(0,r.jsx)(f.Z,{}),X?(0,j.createPortal)((0,r.jsx)(S.Z,{modalControl:X,setModalControl:V}),document.body):null,Q?(0,j.createPortal)((0,r.jsx)(Z.Z,{modalControl:Q,setModalControl:ee,setParentModalControl:!1}),document.body):null,et?(0,j.createPortal)((0,r.jsx)(ep.Z,{modalControl:et,setModalControl:en,setParentModalControl:!1,skypassNumber:M}),document.body):null,!es&&(0,r.jsx)(S.Z,{modalControl:em,setModalControl:eg}),eb&&(0,r.jsx)(R.default,{open:eb,setOpen:ex,user:eS,skypassNumber:ed,isSpecialMember:ey,setIsLiquorMembership:ew}),(0,r.jsxs)(h.Z,{_theme:H,className:"page-wrap exh-detail benefit",children:[(0,r.jsx)(k.Z,{array:J}),(0,r.jsxs)("h2",{className:"blind",children:[I("event.message172")," ìì¸"]}),(0,r.jsxs)("div",{className:"section-wrap",children:[(0,r.jsx)("div",{className:"title-wrap",children:(0,r.jsx)("h3",{className:"title title-1",children:null==a?void 0:a.title})}),(0,r.jsxs)("div",{className:"content-wrap",style:{marginLeft:W.tq?"":"-4rem"},children:[(0,r.jsx)("div",{className:"content-html",dangerouslySetInnerHTML:{__html:a.content},onClick:e=>{if("skybarclub"===e.target.id){if(!el)return eg(!0);if(null==el?void 0:el.regularMember){if(ed){if(W.tq){if(W.tq&&!ea){let e=new URL("skyshop://open"),t=navigator.userAgent.toLowerCase(),n=t.indexOf("android")>-1,r=t.indexOf("mac")>-1,i="";n?i=new URL("https://play.google.com/store/apps/details?id=com.skyshop.mall"):r&&(i=new URL("itms-apps://apps.apple.com/kr/app/skyshop-%EB%8C%80%ED%95%9C%ED%95%AD%EA%B3%B5-%EA%B8%B0%EB%82%B4-%EB%A9%B4
1%EC%84%B8%EC%A0%90/id6479979148"));let o=setTimeout(()=>{window.location.href=i},2e3);return window.location.href=e,()=>clearTimeout(o)}}else{alert(I("member.check.message219"));return}}else{alert(I("event.message134"));return}}else{alert(I("event.message21"));return}ex(!0)}}}),(0,r.jsx)("div",{className:"ad-view",children:!W.tq&&!ea&&(0,r.jsx)("div",{className:"main-right",children:(0,r.jsxs)("div",{className:"main-ad-banner",children:[(null==N?void 0:N.defaultYn)==="Y"&&(0,r.jsx)("div",{className:"banner-video",children:(0,r.jsx)(B.Z,{})}),(null==N?void 0:N.defaultYn)==="N"&&(0,r.jsx)(r.Fragment,{children:(null==N?void 0:N.image1Type)==="IMAGE"?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(b.Z,{src:null==N?void 0:N.image1Url,ml:"2rem",mr:"2rem"})}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(ev,{children:(0,r.jsx)(ef,{inquiryFiles:null==N?void 0:N.image1Url})})})}),T?(0,r.jsx)("div",{className:"banner-imgs",dangerouslySetInnerHTML:{__html:null==N?void 0:N.bannerTxtEn}}):(0,r.jsx)("div",{className:"banner-imgs",dangerouslySetInnerHTML:{__html:null==N?void 0:N.bannerTxt}})]})})})]})]}),W.tq&&(0,r.jsxs)("div",{className:"section-wrap full ad-box",style:{width:"100%",marginTop:"0"},children:[(null==N?void 0:N.defaultYn)==="Y"&&(0,r.jsx)(_.Z,{}),(null==N?void 0:N.defaultYn)==="N"&&(0,r.jsx)(r.Fragment,{children:(null==N?void 0:N.image1Type)==="IMAGE"?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(b.Z,{src:null==N?void 0:N.image1Url,ml:"2rem",mr:"2rem"})}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(ev,{children:(0,r.jsx)(ef,{inquiryFiles:null==N?void 0:N.image2Url})})})})]}),(null==a?void 0:a.bestDisplayCheck)=="Y"&&(0,r.jsx)("div",{className:"section-wrap top-line",children:(0,r.jsxs)("div",{className:"group-wrap",children:[(0,r.jsx)("h4",{className:"title title-2",children:I("product.message101")}),(0,r.jsx)(U.Z,{categories:s,currentIndex:c,setCurrentIndex:d,handleClickTabFunc:e=>{let t=e.target.dataset.id;m(e,t)}}),(0,r.jsx)("div",{className:"space-side",children:(null==v?void 0:v.length)?(0,r.jsx)(Y.Z,{children:null==v?void 0:v.map((e,t)=>(0,r.jsx)(O.Z,{product:e,index:t,isAllRank:!0,imageLabel:"rank"},t))}):(0,r.jsx)(eh,{children:(0,r.jsxs)(h.Z,{width:"100%",margin:"60px auto 0",dsp:"flex",justify:"center",direction:"column",align:"center",children:[(0,r.jsx)(b.Z,{pc:{width:"130px",height:"130px"},src:"/assets/icons/icon-no-result.svg",alt:"ê²°ê³¼ ë´ì© ìì"}),(0,r.jsx)(g.Z,{dsp:"block",as:"strong",fontWeight:"600",size:"xl2",mgt:"2rem",children:I("product.message11")})]})})})]})})]})]})}let eh=c.ZP.div.withConfig({componentId:"sc-e2e47962-0"})(["text-align:center;display:flex;justify-content:center;margin-top:6rem;"]),ef=e=>{let{inquiryFiles:t}=e,n=(0,i.useRef)(null),[o,a]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if(!W.tq&&n.current){let e=n.current.play();void 0!==e&&e.catch(()=>{})}},[W.tq]);let s=(0,i.useCallback)(()=>{var e,t;o?null===(e=n.current)||void 0===e||e.pause():null===(t=n.current)||void 0===t||t.play()},[o]);return(0,r.jsxs)(eb,{children:[(0,r.jsx)("video",{ref:n,src:"".concat(t,"#t=0.1"),muted:!0,preload:"metadata",controls:!0,playsInline:!0,autoPlay:!W.tq,onPlay:()=>a(!0),onPause:()=>a(!1),loop:!0}),!o&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{}),(0,r.jsx)(b.Z,{onClick:s,button:!0,src:"/icons/playbtn.svg",alt:"ì¬ì ìì´ì½",imgWrapClassName:"play-icon",pc:{width:"32px",height:"32px"}})]})]})},ev=c.ZP.button.withConfig({componentId:"sc-e2e47962-1"})(["width:100%;padding:0;border:0;display:flex;justify-content:center;align-items:center;overflow:hidden;background:transparent;@media (min-width:768px){max-width:370px;}"]),eb=c.ZP.div.withConfig({componentId:"sc-e2e47962-2"})(["width:100%;position:relative;> video{width:100%;height:auto;display:block;object-fit:cover;}> span,.play-icon{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);}> span{width:100%;height:100%;background:rgba(0,0,0,0.5);}"]);var ex=n(48769),ey=n(99856),ew=n(61799),ej=n(47622),ek=!0;function eS(e){var t;let n,{benefitDetail:s,query:l,params:c,headers:d,contentId:u,isMob:m}=e,p=(0,o.useRouter)(),[g,h]=(0,i.useState)([]),[f,v]=(0,i.useState)([]),[b,x]=(0,i.useState)([]);(0,i.useEffect)(()=>{(async()=>{var e,t,n;let r=(0,a.OH)("language"),[i,o,s]=await Promise.allSettled([(0,ex.CP)(null,r,"Y"),(0,ey.U2)("PC",30,0,null,r),(0,ej.rd)(50,0,"",null,r)]);
1if(h(i.value.data),v(o.value.data),x(s.value.data),null===(e=i.value.data)||void 0===e?void 0:e.find(e=>"ì ì²´"===e.name))return;let l=Math.random(),c=i.value.data&&[{id:l,name:"ì ì²´"},...i.value.data];P(l),B(c);let d=null===(t=o.value.data)||void 0===t?void 0:t.contents,u=J(d,6);U(d),H(u),O(null===(n=s.value.data)||void 0===n?void 0:n.products)})()},[p]),(0,i.useEffect)(()=>{let e=()=>{let e=p.asPath.split("#")[1];e&&setTimeout(()=>{let t=document.getElementById(e);if(t){let e=m?56:70,n=document.querySelector("[data-sticky-top]")?document.querySelector("[data-sticky-top]").clientHeight:0,r=m?10:20,i=t.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:i-e-n+r,behavior:"auto"})}},100)};return s&&p.isReady&&e(),G(),p.events.on("routeChangeComplete",e),()=>{p.events.off("routeChangeComplete",e)}},[s,p.isReady,p.asPath,m]);let[y,w]=(0,i.useState)(0),[j,k]=(0,i.useState)(null==p?void 0:null===(t=p.query)||void 0===t?void 0:t.categoryId),[S,Z]=(0,i.useState)(0),[C,N]=(0,i.useState)(!1),[E,I]=(0,i.useState)(j||0),[T,P]=(0,i.useState)(j||0),[A,q]=(0,i.useState)(0),[M,L]=(0,i.useState)(0),[z,B]=(0,i.useState)(),[_,H]=(0,i.useState)(null),[F,U]=(0,i.useState)(null),[Y,O]=(0,i.useState)(null),[R,K]=(0,i.useState)(),D=async()=>{if(!A){O(null==b?void 0:b.products);return}N(!0);let e=await (0,ej.P_)(E);if(N(!1),e&&(null==e?void 0:e.status)===200){var t;O(null===(t=e.data)||void 0===t?void 0:t.products)}else O([])},W=async()=>{if(!M){let e=null==f?void 0:f.contents,t=J(e,6);U(e),H(t);return}N(!0);let e=await (0,ey.U$)("PC",T,30,0);if(N(!1),e&&(null==e?void 0:e.status)===200){var t;let n=null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.contents,r=J(n,6);U(n),H(r)}else U([]),H([])};(0,i.useEffect)(()=>{W()},[M]),(0,i.useEffect)(()=>{D()},[A]);let G=async()=>{N(!0);let e=await (0,ew.F)("MAIN");N(!1),K(e?e.data:null)};(0,i.useEffect)(()=>{G()},[A]);let J=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=[...e],r=[],i=null==n?void 0:n.length,o=Math.floor(i/t)+(Math.floor(i%t)>0?1:0);for(let e=0;e<o;e++)r.push(null==n?void 0:n.splice(0,t));return r};(0,i.useEffect)(()=>{if(null==g?void 0:g.find(e=>"ì ì²´"===e.name))return;let e=Math.random(),t=g&&[{id:e,name:"ì ì²´"},...g];P(e),B(t)},[]);let $={benefitDetail:s,brandCategories:z,currentProductsIndex:y,setCurrentProductsIndex:w,handleOnClickProductsTabIndex:(e,t)=>{I(parseInt(e.target.dataset.unqid)),q(t)},bestBrands:_,bestProducts:Y,currentIndex:S,setCurrentIndex:Z,contentId:u,adManager:R};return p.isFallback?(0,r.jsx)("h1",{children:"ë¶ë¬ì¤ë ì¤ì
ëë¤"}):(console.log(s),n="MORNINGCALM"===s.bnefAffiliateType?(0,r.jsx)(eg,{...$}):(0,r.jsx)(ee,{...$}),(0,r.jsx)(r.Fragment,{children:n}))}},25705:function(e,t,n){"use strict";n.d(t,{GN:function(){return a},Xf:function(){return s},cc:function(){return i},fT:function(){return o}});let r=()=>{try{braze.isInitialized()||(braze.initialize("d0372c46-f3ac-48e1-ae26-984cdb142817",{baseUrl:"sdk.iad-07.braze.com",allowUserSuppliedJavascript:!0}),braze.openSession())}catch(e){}},i=()=>{let e=new Date,t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),a=String(e.getSeconds()).padStart(2,"0"),s=-1*e.getTimezoneOffset(),l=String(Math.floor(s/60)).padStart(2,"0"),c=String(s%60).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(r,"T").concat(i,":").concat(o,":").concat(a).concat(s>=0?"+":"-").concat(l,":").concat(c)},o=(e,t,n)=>{if("HQS"===e)try{console.log("setBrazeLogCustomEvent",t,n),r(),braze.logCustomEvent(t,n),braze.requestImmediateDataFlush()}catch(e){console.log("setBrazeLogCustomEvent error",e)}},a=(e,t,n)=>{if("HQS"===e)try{console.log("setBrazeCustomUserAttribute",t,n),r(),braze.getUser().setCustomUserAttribute(t,n,!0)}catch(e){console.log("setBrazeCustomUserAttribute error",e)}},s=()=>{var e,t;let n="pc",r=(null===(e=window)||void 0===e?void 0:e.android)!==void 0||(null===(t=window)||void 0===t?void 0:t.webkit)!==void 0,i=window.matchMedia("(max-width:768px)").matches,o=i&&r,a=window.navigator.userAgent.toLowerCase(),s=/android/i.test(a),l=/iphone|ipad|ipod/i.test(a);return i&&!o?n="mobile":o&&(n=s?"android":l?"ios":"mobile"),n}},67555:function(){},220:function(e,t,n){"use strict";var r=n(67294);t.Z=r.createContext(null)},75068:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:function(){return i}})}},function(e){e.O(0,[5935,1296,3153,8785,9558,5318,6334,1841,8637,1013,7476,2888,9774,179],function(){return e(e.s=71652)}),_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.