1import{_ as mt,k as It,l as ft,a5 as Mt,a7 as kt,aK as Pt,z as Nt,B as bt,bl as Ut,o as c,c as f,a as o,an as x,U as O,g as d,as as Rt,aB as qt,am as it,t as T,i as J,aa as At,A as ut,bf as Q,s as ct,E as Ht,bm as Qt,ad as xt,M as Dt,r as C,q as dt,e as Ct,J as Ot,F as Et,al as Wt,h as W,n as pt,a9 as Bt,p as lt,j as Yt,X as Gt,O as Ft,T as Xt,G as St,u as Vt,b as zt,au as jt,w as Lt,f as Jt,m as Kt}from"./KIOIw5mF.js";import{N as Zt}from"./DiDoGdPj.js";import{u as te}from"./CR0uSVmj.js";import{u as nt,_ as ee}from"./CUYP7zp5.js";import{s as oe}from"./WcJG09d3.js";import{u as ne}from"./DzfKRCvv.js";import{G as se}from"./DBqB2I7O.js";import{_ as ae}from"./D8LvZIjt.js";import{_ as re}from"./DVmZZY6a.js";import{u as le}from"./DjktP1BM.js";import{u as ie}from"./Cgq8aiFy.js";import"./CHU72Mk8.js";import{u as ue}from"./x_3qrz6b.js";import"./BRWqfyez.js";import"./CtCCJ36q.js";import"./tqD2Z8Ym.js";import"./PQgU1y87.js";/* empty css *//* empty css */import"./C4L9qFh6.js";import"./DnbX2t5O.js";import"./BjUOrwZ0.js";import"./D0lSiUdk.js";import"./DlaHE4g4.js";import"./Drg3v0Py.js";import"./Bp41APax.js";import"./BkiGpFTE.js";import"./wy0rvLMz.js";import"./BLscrrnr.js";import"./-M2vFFun.js";import"./fvI_OIUf.js";import"./ibRjjHP1.js";import"./BrVqW4MZ.js";import"./puF-f4Kr.js";import"./CCFs-kF1.js";import"./CQJLqCqO.js";import"./B4DBV9t3.js";import"./Be_lZKbp.js";import"./B7H9I9hO.js";const ce=""+new URL("healthday_kv.CJkmsXnh.jpg",import.meta.url).href,de=""+new URL("m_healthday_kv.Dzck-XY_.jpg",import.meta.url).href,pe=""+new URL("healthday_app_banner.DyZ9G3X3.png",import.meta.url).href,me=""+new URL("qr.DmiyDaJ9.png",import.meta.url).href,fe={class:"event__section"},ge={class:"coupon__list"},ve={class:"coupon__btn"},_e=["disabled"],ye={__name:"HealthDelivery",setup(st){const{$device:M}=It(),g=ft(),E=te(),u=Mt(),Y=kt(),A=Pt(),k=nt(),y=M(),w=Nt(),{isWideMedia:F}=bt(w),p=A.currentRoute.value.href||"/the/main";function B(){g.showModalAppOnlyMessage({appType:"install",useQr:!0,qrSrc:me,onConfirm:()=>{F.value||S()}})}const S=()=>{if(y.osType===ct.IOS||y.osType===ct.ANDROID){const I=A.currentRoute.value.href;location.href="/mo/gate/gateWay?url="+I}else modalAlert("ì§ìíì§ ìë OSìì.")},U=async I=>{var L,q;if(y.appType!==ut.AP){B();return}const i=(L=k.baseInfo)==null?void 0:L.dlvCpnNo,G=k.isDlvCpnDownAvailable;if(!u.isLoggined){await g.showModalConfirm("ë¡ê·¸ì¸ í ì´ì©í´ 주ì¸ì.")&&Y.setLoginModalStatus(!0,p);return}if(!G){await g.showModalAlert("ì´ë¯¸ ë°ê¸ë°ì ì¿ í°ì´ìì.");return}const h=await E.download({cpnNo:i});if(!h||!h.rsltMsg){await g.showModalAlert(`ì¿ í° ë¤ì´ë¡ë ì¤ ì¤ë¥ê° ë°ìíì´ì. 2ì ì í ë¤ì ìëí´ ì£¼ì¸ì.`);return}h.rsltMsg===Q.SUCCESS.CODE?(await g.showModalAlert("ì¿ í°ì´ ë°ê¸ëìì´ì."),k.isDlvCpnDownAvailable=!1):h.rsltMsg===Q.ONLY_APP.CODE?await g.showModalAlert("ë°ê¸ ëìì´ ìëììð¥º"):h.rsltMsg===Q.TOTAL_LIMIT_EXCEEDED.CODE||h.rsltMsg===Q.DAILY_LIMIT_EXCEEDED.CODE||h.rsltMsg===Q.PER_PERSON_LIMIT_EXCEEDED.CODE||h.rsltMsg===Q.DAILY_PER_PERSON_LIMIT_EXCEEDED.CODE||h.rsltMsg===Q.MONTHLY_PER_PERSON_LIMIT_EXCEEDED.CODE?await g.showModalAlert("ìµë ë°ê¸ íì를 ì´ê³¼íì´ìð¥º"):h.rsltMsg===Q.NOT_TARGET_MEMBER_LEVEL.CODE?await g.showModalAlert("ìì§ìì ë°ê¸í ì ìì´ìð¥º"):await g.showModalAlert(((q=Q[h.rsltMsg])==null?void 0:q.MESSAGE)||`ì¿ í° ë¤ì´ë¡ë ì¤ ì¤ë¥ê° ë°ìíì´ì. 3ì ì í ë¤ì ìëí´ ì£¼ì¸ì.`)};return(I,i)=>{const G=Ut("ga4");return c(),f("section",fe,[i[4]||(i[4]=o("div",{class:"section__title"},[o("p",null,[o("span",null,"3ì¼ ëì"),x(" ë§¤ì¼ ë§¤ì¼ "),o("strong",null,"ë°°ì¡ë¹ ë§í¼ ì§ìí´ëë ¤ì")])],-1)),o("ul",ge,[o("li",null,[o("div",{class:O(["new__coupon--box",{complete:!d(k).isDlvCpnDownAvailable}])},[...i[1]||(i[1]=[Rt('<p class="coupon__percent" data-v-aa375f8a> 3,000 <span class="txt__won" data-v-aa375f8a>ì</span><span class="txt__app" data-v-aa375f8a>APP</span></p><p class="coupon__info" data-v-aa375f8a><span data-v-aa375f8a>1ë§ì ì´ì 구매ì</span><span class="date" data-v-aa375f8a>9ì 13ì¼ 23:59ê¹ì§</span></p>',2)])],2)])]),o("div",ve,[qt((c(),f("button",{class:"btn btn__black download",disabled:!d(k).isDlvCpnDownAvailable,onClick:i[0]||(i[0]=it(h=>U(),["prevent"]))},[o("span",null,"ì¿ í° ë°ê¸°"+T(d(k).isDlvCpnDownAvailable?"":" ìë£"),1)],8,_e)),[[G,{eventAction:"event",eventHitAction:"기íì ê±´ê°ë°ì´ - ë°°ì¡ë¹ ì¿ í°ë¤ì´ë°ê¸° í´ë¦",eventHitCategory:"기íì > ê±´ê°ë°ì´",eventHitLabel:d(u).isLoggined?"Y":"N"}]])]),J(Zt,{"class-type":"black"},{toggle__title:At(()=>[...i[2]||(i[2]=[x("ê¼ íì¸íì¸ì",-1)])]),toggle__content:At(()=>[...i[3]||(i[3]=[o("ul",null,[o("li",null,"ì´ ì¿ í°ì ë°°ì¡ë¹ ê¸ì¡(3,000ì)ì í ì¸í´ ë리ë ì¥ë°êµ¬ë ì¤ë³µì¿ í°ì´ìì."),o("li",null,"ë°°ì¡ë¹ ì§ì ì¿ í°ì ê±´ê°ìí ì¹´í ê³ ë¦¬ ìíìë§ ì ì© ë¼ì."),o("li",null,"ì ì© ìíì ë¹ì¬ ì¬ì ì ìí´ ë³ê²½ë ì ìì´ì."),o("li",null,"ì¼ë¶ ìíì ì ì© ëìì´ ìë ì ìì´ì."),o("li",null,"IDë¹ 1ì¼ 1í ë°ê¸ ê°ë¥í´ì."),o("li",null,"모ë ì¤ë³µì¿ í°ì ë¡ê·¸ì¸ ê³ ê° ëì APPììë§ ë°ê¸ ë° ì¬ì© ê°ë¥í´ì."),o("li",null,"모ë ì¤ë³µì¿ í°ì ìì§ìì ë°ê¸ ëìì´ ìëìì.")],-1)])]),_:1})])}}},$t=mt(ye,[["__scopeId","data-v-aa375f8a"]]),he=""+new URL("img_groupbuy_coming.COxL0T2S.png",import.meta.url).href,we={class:"group-buying__list"},Se={class:"group-buying__info"},be={key:0},De={key:1},Ce=["onClick"],Ee={key:0,class:"group-buying__alarm"},Ie=["disabled","onClick"],Me=["onClick"],ke={key:0,class:"progress-bar__active"},Pe={class:"group-buying__progress-text"},Te={class:"text__remain-time"},Ae={class:"text__target-count"},Be={class:"text__limit-count"},Le=["onClick"],$e={class:"product__name"},Ne={key:0,class:"badge__free"},Re={key:0},xe={class:"group-buying__empty-box"},Oe={key:0},Ye={key:1},Ue=Ht({__name:"HealthGroupbuy",emits:["placement-change"],setup(st,{emit:M}){const g=M,E=Yt(),u=Pt(),{getProductDetailLink:Y}=Qt(),A=u.currentRoute.value.href||"/the/main",{$device:k}
3=It(),y=k(),w=Mt(),F=kt(),p=ne(),B=ft(),S=nt(),U=xt("saveScrollY",()=>{}),I=C(null),i=C("idle"),G=async()=>{var n;i.value="pending";const e=(((n=S.baseInfo)==null?void 0:n.groupBuyPrdCd)??"").split(",").map(t=>t.trim()).filter(Boolean);try{if(await p.fetchData("/event/v1/groupbuydeal/detail",A),p.dealData&&"data"in p.dealData){const t=p.dealData.data,r=(t==null?void 0:t.prdList)??[];p.evntId=t.evntId;const m=e.length>0?e.map(D=>r.find(R=>R.base.prdCd===D)).filter(D=>!!D):r;m.forEach(D=>{D.groupBuyDeal.gaStatus=p.getStatus(D)}),I.value={...t,prdList:m,totalCount:m.length}}i.value="success"}catch(t){i.value="error",console.error("[MainGroupBuying] Failed to fetch data",t)}},h=lt(()=>p.isRecieveAppPush),L=C(null),q=C(null),K=C(null);let b=null,v=null;const $=C(Date.now()),X=lt(()=>{var e,n;return(n=(e=I.value)==null?void 0:e.data)==null?void 0:n.nextOpenDate}),P=lt(()=>{var n;const e=$.value;return(((n=I.value)==null?void 0:n.prdList)??[]).filter(t=>Number(t.groupBuyDeal.groupBuySoldQty)<Number(t.groupBuyDeal.lmtSaleQty)).filter(t=>{const r=new Date(t.groupBuyDeal.rsvEndDate).getTime();return!Number.isFinite(r)||e<r}).map(t=>{const r=new Date(t.groupBuyDeal.rsvStartDate).getTime(),m=e<r?"before":"ongoing";return{...t,_status:m}})}),at=lt(()=>!I.value||P.value.length===0?null:P.value.some(e=>e._status==="ongoing")?"top":P.value.every(e=>e._status==="before")?"bottom":null);Dt(at,e=>{e&&g("placement-change",e)},{immediate:!0});const H=e=>{if(!e)return"";const[n]=e.split(/[T ]/),[,t,r]=n.split("-");return`${Number(t)}.${Number(r)}`},gt=e=>{const n=new Date(e);return Number.isNaN(n.getTime())?"":new Intl.DateTimeFormat("ko-KR",{hour:"numeric",minute:"2-digit",hour12:!0}).format(n)},vt=e=>{if(!e)return"";if(/^(?:https?:)?\/\//.test(e))return e;const n=e.includes("?")?"&":"?";return`${E.public.imgBaseUrlCdn}${e}${n}SF=webp&RS=426x426`},rt=e=>{var t;const n=(t=e.base.mainImageList)==null?void 0:t.find(r=>r.dispOdr===2&&r.docContPtnCd==="01"&&r.useYn!=="N"&&!!r.contUrl);return vt((n==null?void 0:n.contUrl)||e.base.thumbnail)};let V=null;const Z=e=>new Date(e).getTime(),_t=e=>{const n=Z(e)-$.value;if(!Number.isFinite(n)||n<=0)return"0ì¼ 00:00:00";const t=Math.floor(n/1e3),r=Math.floor(t/(60*60*24)),m=Math.floor(t%(60*60*24)/(60*60)),D=Math.floor(t%(60*60)/60),R=t%60;return(r>0?`${r}ì¼ `:"")+`${String(m).padStart(2,"0")}:${String(D).padStart(2,"0")}:${String(R).padStart(2,"0")}`},tt=e=>Number(e).toLocaleString(),z=(e,n)=>{const t=Number(e),r=Number(n);if(!r)return 0;const m=t/r*100;return Math.min(m,100)},et=(e,n)=>{const t=z(e,n);return t>0?`clamp(8px, ${t}%, calc(100% - 8px))`:"0%"},yt=C(y.osType===ct.IOS);function Tt(e=""){return new TextEncoder().encode(e.trim()).length}function ht(e=""){return yt.value&&Tt(e)<102}const wt=async()=>{if(!(i.value==="pending"||i.value==="success"))try{await G(),P.value.length>0}catch(e){console.error("[MainGroupBuying] Failed to load products",e)}},j=e=>{var t;U&&U(),localStorage.setItem("main-gbd-scroll-x",String(((t=document.querySelector(".product__wrap--scroll"))==null?void 0:t.scrollLeft)??0));const n=y.appType===ut.AP?Y(e.base.prdCd,{plnId:""}):"/the/event/groupbuydeal";window.self!==window.top?window.parent.location.href=n:location.href=n},a=()=>{location.href=`${E.public.legacyBaseUrl}/mo/gate/gateWay?url=/the/event/groupbuydeal`},s=()=>y.appType!==ut.AP?(B.showModalAppOnlyMessage({appType:"onlyMove",onConfirm:()=>{a()}}),!1):!0,l=e=>e.groupBuyDeal.mktAgrRcvYn==="Y"&&h.value,_=async e=>{if(!s())return;if(!w.isLoggined){F.setLoginModalStatus(!0,A);return}if(!await p.appPushPermissionCheck(!0))return;const t=e.base.prdCd;if(L.value)return;const r=p.evntId;if(!r){alert(`ì²ë¦¬ ì¤ ì¤ë¥ê° ë°ìíììµëë¤. 4ì ì í ë¤ì ìëí´ ì£¼ì¸ì.`);return}L.value=t,p.evntId=r;try{if(!((l(e)?"N":"Y")==="Y"?await p.setGbdMarketPush(t):await p.applyEvent(t,"N",!0)))return;e.groupBuyDeal.mktAgrRcvYn=p.mktAgrRcvYn}catch(m){console.error("[MainGroupBuying] Failed to update push notification",m),alert(`ì²ë¦¬ ì¤ ì¤ë¥ê° ë°ìíììµëë¤. 5ì ì í ë¤ì ìëí´ ì£¼ì¸ì.`)}finally{L.value=null}},N=()=>{var n,t;if(v==null||v.disconnect(),!("IntersectionObserver"in window)){(n=K.value)==null||n.querySelectorAll(".group-buying__progress-bar").forEach(r=>{r.classList.add("is-active")});return}v=new IntersectionObserver(r=>{r.forEach(m=>{m.isIntersecting&&(m.target.classList.add("is-active"),v==null||v.unobserve(m.target))})},{threshold:0});const e=(t=K.value)==null?void 0:t.querySelector(".group-buying__progress-bar.is-first");e&&(v==null||v.observe(e))};return Dt(()=>P.value.map(e=>`${e.base.prdCd}:${e._status}`).join("|"),async()=>{await dt(),N()}),Ct(async()=>{yt.value=/iPhone|iPad|iPod/i.test(navigator.userAgent),w.isLoggined&&await p.appPushPermissionCheck(),P.value.length>0&&dt(N),V=oe(()=>{$.value=Date.now()},1e3);const e=q.value;if(!e||!("IntersectionObserver"in window)){wt();return}const n=e.closest(".page-slide-scroll");b=new IntersectionObserver(([t])=>{t!=null&&t.isIntersecting&&wt().finally(()=>{b==null||b.disconnect(),b=null})},{root:n,rootMargin:"400px 0px"}),b.observe(e)}),Ot(async()=>{V&&(clearInterval(V),V=null),b==null||b.disconnect(),b=null,v==null||v.disconnect(),v=null}),(e,n)=>(c(),f("section",{ref_key:"sectionRef",ref:q,class:"m_module--wrap group-buying"},[d(P).length>0?(c(),f(Et,{key:0},[n[8]||(n[8]=o("div",{class:"section__title"},[o("p",null,[o("strong",null,"ê³µë구매"),o("span",null,"ì¹êµ¬ë¤ì 모ì 공구í¹ê°ë¡ 구매íì¸ì!")])],-1)),o("div",{ref_key:"groupBuyWrapRef",ref:K,class:"group-buying__wrap horizontal-scroll"},[o("ul",we,[(c(!0),f(Et,null,Wt(d(P),(t,r)=>{var m,D,R;return c(),f("li",{key:t.base.prdCd,class:O(["group-buying__item",{before:t._status==="before"}])},[o("div",Se,[t._status==="before"?(c(),f("span",be,[o("strong",null,T(H(t.groupBuyDeal.rsvStartDate)),1),n[0]||(n[0]=x("OPEN",-1))])):((m=t.priceInfo)==null?void 0:m.percent)>0?(c(),f("span",De,[o("strong",null,T((D=t.priceInfo)==null?void 0:D.percent)+"%",1),n[1]||(n[1]=x("SALE",-1))])):W("",!0)]),o("div",{class:"group-buying__image",onClick:it(ot=>j(t),["prevent"])},[(c(),pt(ae,{key:t.base.prdCd,src:rt(t),alt:t.base.prdNm},null,8,["src","alt"]))],8,Ce),t._status==="before"?(c(),f("div",Ee,[o("button",{type:"button",class:O
5(["btn__alarm",{"is-active":l(t)}]),disabled:d(L)!==null,onClick:ot=>_(t)},[o("span",null,T(gt(t.groupBuyDeal.rsvStartDate))+" "+T(l(t)?" ì¤í ì림 ë°ê¸° ìë£":" ì¤í ì림 ë°ê¸°"),1)],10,Ie)])):(c(),f("div",{key:1,class:"group-buying__progress",onClick:it(ot=>j(t),["prevent"])},[o("div",{class:O(["group-buying__progress-bar",{"is-first":r===0}]),style:Bt({"--target-width":et(t.groupBuyDeal.groupBuySoldQty,t.groupBuyDeal.lmtSaleQty)})},[Number(t.groupBuyDeal.groupBuySoldQty)>0?(c(),f("div",ke)):W("",!0),n[2]||(n[2]=o("div",{class:"progress-bar__motion"},null,-1)),Number(t.groupBuyDeal.groupBuySoldQty)>0?(c(),f("div",{key:1,class:O(["text-active",{"is-low":z(t.groupBuyDeal.groupBuySoldQty,t.groupBuyDeal.lmtSaleQty)<18,"is-high":z(t.groupBuyDeal.groupBuySoldQty,t.groupBuyDeal.lmtSaleQty)>82}]),style:Bt({left:et(t.groupBuyDeal.groupBuySoldQty,t.groupBuyDeal.lmtSaleQty)})},T(tt(t.groupBuyDeal.groupBuySoldQty))+"ê° êµ¬ë§¤ì¤ ",7)):W("",!0)],6),o("div",Pe,[o("span",Te,T(_t(t.groupBuyDeal.rsvEndDate)),1),o("span",Ae,"목í "+T(tt(t.groupBuyDeal.targetSaleQty))+"ê°",1),o("span",Be,"íì "+T(tt(t.groupBuyDeal.lmtSaleQty))+"ê°",1)])],8,Me)),o("div",{class:O(["group-buying__detail",{"is-ios":ht(t.base.prdNm)}]),onClick:it(ot=>j(t),["prevent"])},[o("p",$e,[(R=t.deliveryInfo)!=null&&R.freeShip?(c(),f("span",Ne,"무ë£ë°°ì¡")):W("",!0),o("span",null,T(t.base.prdNm),1)]),J(se,{item:t,status:t._status},null,8,["item","status"])],10,Le)],2)}),128)),d(P).length===1?(c(),f("li",Re,[o("div",xe,[n[6]||(n[6]=o("div",{class:"empty-image"},[o("img",{src:he,alt:"coming soon"})],-1)),n[7]||(n[7]=o("p",{class:"empty-title"},"coming soon",-1)),d(X)?(c(),f("p",Oe,[n[3]||(n[3]=x("ë¤ì ê³µë구매ë",-1)),n[4]||(n[4]=o("br",null,null,-1)),x(T(d(X))+"ì ë§ëì",1)])):(c(),f("p",Ye,[...n[5]||(n[5]=[x("ë¤ì ê³µë구매ë",-1),o("br",null,null,-1),x("기ëí´ ì£¼ì¸ì!",-1)])]))])])):W("",!0)])],512)],64)):W("",!0)],512))}}),qe=mt(Ue,[["__scopeId","data-v-f4014dc4"]]),He=""+new URL("healthday_rewards.Bd89owhy.png",import.meta.url).href,Qe={class:"event__section comment"},We={class:"comment__event"},Ge={__name:"HealthComment",setup(st){const M=nt();return(g,E)=>{var u;return c(),f("section",Qe,[E[1]||(E[1]=o("div",{class:"section__title"},[o("p",null,[o("span",null,"ëê¸ ì´ë²¤í¸"),o("strong",null,[x("ëë§ì ì¥ ê±´ê° "),o("br"),x("ê´ë¦¬ ë¹ë²ì ìë ¤ì£¼ì¸ì")])]),o("p",{class:"tip"},"ê±´ê°ë°ì´ 기íì ìì 1ê° ì´ì 구매ì ë¹ì²¨ íë¥ UP")],-1)),o("div",We,[E[0]||(E[0]=Rt('<div class="comment__rewards" data-v-4ea5203a><img src="'+He+'" alt="ë°ì´ì¤ì½ì´ 500ìµ ì ì°ê· 1ë°ì¤(30ëª
)" data-v-4ea5203a><dl data-v-4ea5203a><dt data-v-4ea5203a>ì´ë²¤í¸ 기ê°</dt><dd data-v-4ea5203a>9/11(ê¸) - 9/13(ì¼) 3ì¼ê°</dd></dl><dl data-v-4ea5203a><dt data-v-4ea5203a>ê²½íë´ì©</dt><dd data-v-4ea5203a>ë°ì´ì¤ì½ì´ 500ìµ ì ì°ê· 60캡ì(1ê°ì)</dd></dl><dl data-v-4ea5203a><dt data-v-4ea5203a>ì°¸ì¬ë°©ë²</dt><dd data-v-4ea5203a><ol data-v-4ea5203a><li data-v-4ea5203a>기ë¦ì§ ëª
ì ììì´ ê±±ì ë ë! ëë§ì ì¥ê±´ê° ê´ë¦¬ ë¹ë²ì ìë ìì±</li><li data-v-4ea5203a>ìì± í ëê¸ ë±ë¡í기 ë²í¼ í´ë¦</li><li data-v-4ea5203a>ì´ë²¤í¸ ì°¸ì¬ ìë£</li></ol></dd></dl><dl data-v-4ea5203a><dt data-v-4ea5203a>ë¹ì²¨ì ë°í</dt><dd data-v-4ea5203a>9/13(ì) CJëë§ì¼ ê³µì§ì¬í</dd></dl></div>',1)),J(re,{"evnt-id":(u=d(M).baseInfo)==null?void 0:u.replyEvntId,"place-holder":""},null,8,["evnt-id"])])])}}},Fe=mt(Ge,[["__scopeId","data-v-4ea5203a"]]),Xe={class:"kivisual__wrap"},Ve={key:0,class:"pc-img",src:ce,alt:"9/11 ~ 9/13 ë¨ 3ì¼ê° ê±´ê°ë°ì´"},ze={class:"pc__hide"},je={__name:"health-day-main",setup(st){var j;Gt.locale("ko");const{$device:M}=It(),g=Nt(),E=ft(),u=le(),Y=ie(),A=Mt(),k=kt(),y=nt(),w=Pt(),F=Ft(),p=M(),{isWideMedia:B}=bt(g),{isMainPromotion:S,stickyStates:U,isScrollStopped:I}=bt(u),i=C(F.query.moveTo);Y.isUse=!0,Y.query=`/event/v1/${(j=y.baseInfo)==null?void 0:j.evntId}/products-theme`,Y.setPlaceholder("EVENT");const G=[".contents .scroll__fixed--container",".tab__navigation--wrap > div",".event__main-promotion"],h=C(null),L=C(null),q=()=>typeof window>"u"?0:parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--app-safe-area-top"))||0,K=async()=>{Z(),await b()},b=async()=>
5{if(!S.value)return;await dt();const a=L.value;a&&(u.upsertStickyTarget({id:"menu",initialOffsetTop:a.getBoundingClientRect().top+window.scrollY,topOffset:98+q()}),u.computeStickyAll(window.scrollY))},v=()=>{S.value&&u.computeStickyAll(window.scrollY)};Ct(async()=>{S.value&&(u.enableSticky(!0),await b(),window.addEventListener("resize",b,{passive:!0}),window.addEventListener("scroll",v,{passive:!0}),v(),u.registerFloatSelectors(G))}),Xt(()=>{S.value&&(window.removeEventListener("scroll",v),window.removeEventListener("resize",b),u.clearStickyTargets(),u.unregisterFloatSelectors(G),u.enableSticky(!1))});const $=C(null),X=C(null),P=C(null),at=C(!1);let H=null;const gt=(a,s=150)=>{let l;const _=()=>{window.removeEventListener("scroll",N,{passive:!0}),a()},N=()=>{clearTimeout(l),l=setTimeout(_,s)};window.addEventListener("scroll",N,{passive:!0}),N()},vt=a=>{const s=document.querySelector(a);if(!s)return;S.value&&H!==null&&(u.setScrollStopped(!0),u.setScrollPose("down"),gt(()=>{u.setScrollPose(null),u.setScrollStopped(!1)},150));const l=q(),_=S.value?93+l+48:50+l+48,e=s.getBoundingClientRect().top+window.scrollY-_+4;window.scrollTo({top:e,behavior:"smooth"})},rt=V(a=>{vt(a)},200);function V(a,s=100){let l;return function(..._){l||(l=setTimeout(()=>{a.apply(this,_),l=null},s))}}const Z=V(()=>{var e,n;if(I.value)return;H=null;const a=(e=X.value)==null?void 0:e.querySelectorAll(".menu__items"),s=q(),l=S.value?93+s+48:50+s+48;a==null||a.forEach((t,r)=>{const m=t.getAttribute("href"),D=document.querySelector(m);if(D){const R=D.offsetTop-l+4;window.scrollY>=R&&(H=r)}t.hasAttribute("data-click-bound")||(t.addEventListener("click",R=>{R.preventDefault();const ot=t.getAttribute("href");rt(ot)}),t.setAttribute("data-click-bound","true"))});const _=`menu${H+1}`;H===null?$.value=null:($.value=_,z());const N=((n=P.value)==null?void 0:n.offsetHeight)||0;at.value=N<window.scrollY},100);function _t(a){let s=a.parentElement;for(;s&&s!==document.body;){const _=getComputedStyle(s).overflowX;if((_==="auto"||_==="scroll")&&s.scrollWidth>s.clientWidth)return s;s=s.parentElement}return null}function tt(a,s){const l=a.getBoundingClientRect(),e=s.getBoundingClientRect().left-l.left+a.scrollLeft-(a.clientWidth-s.offsetWidth)/2,n=a.scrollWidth-a.clientWidth,t=Math.max(0,Math.min(e,n));a.scrollTo({left:t,behavior:"smooth"})}function z(){var _;const a=(_=X.value)==null?void 0:_.querySelectorAll(".menu__items");if(!a||H===null)return;const s=a[H];if(!s)return;const l=_t(s)||X.value;l&&tt(l,s)}Dt($,(a,s)=>{a!==s&&a!==null&&z()}),Ct(async()=>{i.value&&setTimeout(()=>rt(`#${i.value}`),1e3),A.isLoggined&&y.getMyInfo(),window.addEventListener("scroll",Z)}),Ot(()=>{window.removeEventListener("scroll",Z)});const et=a=>{const s=()=>{window.scrollTo(0,a),window.scrollY<a?setTimeout(()=>{s()},500):localStorage.setItem("scrollY",0)};s()};St("handlePageShow",a=>{const s=localStorage.getItem("scrollY"),l=a===!0;(l||a.persisted||performance.navigation.type===2)&&window.scrollY!==s&&s>0&&(l?setTimeout(()=>{et(s),localStorage.removeItem("themeTabPage"),localStorage.removeItem("scrollY")},500):et(s))}),St("saveScrollY",()=>{p.appType===ut.AP&&p.osType===ct.ANDROID&&localStorage.setItem("scrollY",window.scrollY)});const ht=a=>a.map(s=>({...s,id:`${s.evntLttlNo}`,text:`${s.evntLttlNm} 6${s.evntLttlNm2||""}`,target:`tabItem${s.evntLttlNo}`,bgColor:`${s.lttlBgClrCd||""}`}));return St("healthdayPreChck",async a=>{if(y.baseInfo.fstOdrPrdCds.includes(a)){if(!A.isLoggined)return await E.showModalConfirm("ë¡ê·¸ì¸ í ì´ì©í´ 주ì¸ì.")&&k.set
6LoginModalStatus(!0,w.currentRoute.value.href||"/the/main"),!1;if(!await y.getMyInfo())return await E.showModalAlert("ê±´ê°ìí ì¹´í
ê³ ë¦¬ 첫 구매 íìë§ êµ¬ë§¤ ê°ë¥í ìíì´ìì."),!1}return!0}),(a,s)=>{var l;return c(),f(Et,null,[o("div",{ref_key:"eventWrap",ref:P,class:"event__wrap healthday"},[o("section",Xe,[d(B)?(c(),f("img",Ve)):(c(),f("img",{key:1,class:"mo-img",src:de,alt:"9/11 ~ 9/13 ë¨ 3ì¼ê° ê±´ê°ë°ì´",onLoad:K},null,32)),d(B)?(c(),pt($t,{key:2})):W("",!0),s[0]||(s[0]=o("div",{class:"app-banner"},[o("img",{src:pe,alt:"ì§ê¸ 본 íí, ë°ë¡ ë°ì¼ë¬ ê°ì! ëë§ì¼ APPìì íì¸íì¸ì."})],-1))]),o("div",{ref_key:"menuSentinelRef",ref:L,"aria-hidden":"true",style:{height:"0"}},null,512),o("section",{ref_key:"menuRef",ref:h,class:O(["event__menu--wrap pc__hide",[{hide:d(at)},{"event__main-promotion":d(S)},{sticky:d(U).menu}]])},[o("ul",{ref_key:"menuContainer",ref:X},[o("li",null,[o("a",{href:"#cartCoupon",class:O(["menu__items",{active:d($)==="menu1"}])}," ë°°ì¡ë¹ ì§ì ",2)]),s[1]||(s[1]=o("li",{class:"bar"},null,-1)),o("li",null,[o("a",{href:"#groupBuying",class:O(["menu__items",{active:d($)==="menu2"}])}," ê³µë구매 ",2)]),s[2]||(s[2]=o("li",{class:"bar"},null,-1)),o("li",null,[o("a",{href:"#commentEvent",class:O(["menu__items",{active:d($)==="menu3"}])}," ëê¸ì´ë²¤í¸ ",2)])],512)],2),o("article",ze,[s[3]||(s[3]=o("section",{id:"cartCoupon",class:"event__section--blank"},null,-1)),d(B)?W("",!0):(c(),pt($t,{key:0})),s[4]||(s[4]=o("section",{id:"groupBuying",class:"event__section--blank"},null,-1)),J(qe),s[5]||(s[5]=o("section",{id:"commentEvent",class:"event__section--blank"},null,-1)),J(Fe)])],512),J(ee,{"evnt-id":(l=d(y).baseInfo)==null?void 0:l.evntId,"theme-products":ht(d(y).themePrdList),"page-type":"event","module-type":"productlist","module-id":"EV011","module-name":"ê±´ê°ë°ì´","event-category":"Event"},null,8,["evnt-id","theme-products"])],64)}}},Je=mt(je,[["__scopeId","data-v-19f746fd"]]),Oo={__name:"index",async setup(st){var S,U;let M,g;const E=Vt(),u=Yt(),Y=zt(),{setCanonicalUrl:A}=jt(),k=ft(),{saveThePlayPlanView:y}=ue(),w=nt(),F=xt("subTitle");[M,g]=Lt(()=>w.getBaseInfo()),await M,g(),[M,g]=Lt(()=>w.getEvntInfo()),await M,g();const p=C(!1),B={ogTitle:`${(S=w.evntInfo)==null?void 0:S.evntNm}`,ogUrl:`${u.public.baseUrl}${E.fullPath}`,ogImage:`${u.public.imgBaseCdn}/images/file${w.evntInfo.evntImgUrlShare}`,ogDescription:`${(U=w.evntInfo)==null?void 0:U.evntNm} | ì´ë²¤í¸ | CJëë§ì¼ - CJì ì¼ì ë¹ ê³µì몰`};return Y.setMetaInfo(B),Jt(B),A(null),Kt(async()=>{await w.fetchEventProdList(),dt(async()=>{var I,i;(I=w.evntInfo)!=null&&I.isEvntShowYn?(F.value=((i=w.evntInfo)==null?void 0:i.evntNm)||"ê±´ê°ê¸°íì ",p.value=!0):(await k.showModalAlert("ì¢
ë£ë ì´ë²¤í¸ìì."),window.location="/")}),await y("03",location.pathname)}),(I,i)=>d(p)?(c(),pt(Je,{key:0})):W("",!0)}};export{Oo as default};
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.