1import{aE as e,af as t,V as n,m as i,E as a,F as o,q as c,ce as r,i6 as l,y as s,z as d,i2 as p,ig as m,b7 as g,U as u,i3 as f,ip as h,aR as v,a3 as b,a6 as k,G as y,eT as x,io as N,i4 as I,il as C,aB as w,aC as T,i1 as R,ae as _,iu as S,hk as E,aF as L,hi as U,i8 as B,bW as O,i9 as F,ia as M,ib as A,ic as P}from"./index-Db6MqYYx.js";import{r as j,a as W}from"./vendor-Cqib3ghv.js";import{c as z}from"./participateLogicFetch-DjZq2fOV.js";const Y="//image.homeplus.co.kr/UserFiles/front/event/202505/megaFood/",H="front/event/202505/megaFood",G={CONTENTS_1:{bg1:"".concat(Y,"event1_bg.png"),notice:"".concat(H,"/[email protected]"),title:"".concat(Y,"[email protected]"),martTitle:"".concat(Y,"mart_tit.png"),martTitle2:"".concat(Y,"mart_tit2.png")},CONTENTS_2:{bg1:"".concat(Y,"event2_bg.png"),btn:"".concat(Y,"[email protected]"),bg2:"".concat(Y,"event3_bg.png"),point300:"".concat(H,"/popup-300.png"),point30000:"".concat(H,"/popup-30000.png"),notice:"".concat(H,"/[email protected]")},CONTENTS_3:{bg:"".concat(Y,"event4_bg.png"),banner1:"".concat(Y,"[email protected]"),banner2:"".concat(Y,"[email protected]"),banner3:"".concat(Y,"[email protected]")},SHARE_IMG:"https://image.homeplus.co.kr/UserFiles/front/event/202505/megaFood/og_sns_image.png",TOP_BANNER_IMG:"//image.homeplus.co.kr/UserFiles/front/event/202505/megaFood/top.png"},V={promoNo:13490},D={promoNo:15611,themeNo:57608,perPage:10},q={promoNo:13487,themeNo:46948,perPage:10},Q="#ë©ê°í¸ëì¼",X={event1:"ì´ì±í´ì¦ ~1ë§ì",event2:"100%ë¹ì²¨ ìµë 3ë§P",event3:"ì¶ì²íê³ 5ì²P"},J={event1:{clicktype:"í",clickarea:"ìë¨í",clickname:"ì´ì±í´ì¦1ë§ì",info:""},event2:{clicktype:"í",clickarea:"ìë¨í",clickname:"100%ë¹ì²¨ìµë3ë§",info:""},event3:{clicktype:"í",clickarea:"ìë¨í",clickname:"ì¶ì²íê³ 5ì²P",info:""}},K={clicktype:"ë²í¼",clickarea:"ë©ê°í¸ëë§ì¼ì¼ì¼Event",clickname:"ì모í기",info:""},Z={clicktype:"ë²í¼",clickarea:"íì먹거리ì¸ê¸°ìí",clickname:"ë§í¸ì§ì¡ìíì 체보기",info:""},$={clicktype:"ë²í¼",clickarea:"íì먹거리ì¸ê¸°ìí",clickname:"ë§í¸ì§ì¡ìíë보기",info:""},ee={clicktype:"ë²í¼",clickarea:"ê¸ì£¼ìì¸ê¸°ë¹µë¹µ",clickname:"ë§í¸ì§ì¡ìíì 체보기",info:""},te={clicktype:"ë²í¼",clickarea:"ê¸ì£¼ìì¸ê¸°ë¹µë¹µ",clickname:"ë§í¸ì§ì¡ìíë보기",info:""},ne={clicktype:"ë²í¼",clickarea:"ë©ê°í¸ëë§ì¼ì¤ëìí¹ë³íí",clickname:"ì¿ í°ë°ì¼ë¬ê°ê¸°",info:""},ie={clicktype:"ë°°ë",clickarea:"5ìë² ì¤í¸ë¦¬ë·°",clickname:"ë² ì¤í¸ë¦¬ë·°ë°°ë",info:""},ae={clicktype:"ë°°ë",clickarea:"ì¶ìì²´í¬ë°°ë",clickname:"ì¶ìì²´í¬ë°°ë",info:""},oe={clicktype:"ë°°ë",clickarea:"ìµíë¨ì¦ìë°°ì¡",clickname:"ì¸ìë¹ ë¥¸ì¥ë³´ê¸°60ë¶ë´ì¸ì¦ìë°°ì¡",info:""},ce=e("div",{target:"e1y594363"})({name:"bjn8wh",styles:"position:relative"}),re=e("div",{target:"e1y594362"})("position:relative;img{width:100%;height:auto;}.btncpn{position:absolute;top:44%;left:0;right:0;width:54%;height:21%;margin:0 auto;background:url(",Y,"btn-cpn.gif) center/100% no-repeat;}.todayWrap{position:absolute;width:56.2667%;height:5.627%;top:41%;left:50%;transform:translate(-50%, -50%);background:url(",Y,"[email protected]) center/100% no-repeat;display:flex;align-items:center;justify-content:center;.today{position:absolute;left:23%;top:29%;font-size:4.7vw;color:#fff;font-weight:bold;",t.desktop,"{font-size:33px;}}}"),le=e("div",{target:"e1y594361"})({name:"1v9ernt",styles:"position:relative;padding-bottom:40px"}),se=e("button",{target:"e1y594360"})({name:"1j8mte1",styles:"width:120px;height:140px;flex:0 0 15px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px;color:#222;text-align:center;margin-left:35px;margin-right:15px;img{width:31px;height:31px;}span{padding-top:6px;display:block;}"}),de={top:"85%",width:"80%",height:"7%"},pe={top:"0",width:"100%",height:"100%"},me=e=>{var t,x,N,I,C,w;const{eventContentImgUrl:T}=e,R=n().app,_=i(),[S,E]=j.useState(!1),{isLogin:L}=a(({auth:e})=>({isLogin:e.isLogin}),o),{isMobile:U}=c(),B=U?110:60,{isIntersecting:O,ref:F}=r({threshold:0,freezeOnceVisible:!0,rootMargin:"-".concat(B,"px")}),M=l({...D,enabled:O}),A=l({...q,enabled:O}),P=(null==(x=null==(t=M.data)?void 0:t.dataList)?void 0:x.length)>0&&!M.isLoading,W=(null==(N=M.data)?void 0:N.dataList)||[],z=(null==(C=null==(I=A.data)?void 0:I.dataList)?void 0:C.length)>0&&!A.isLoading,Y=(null==(w=A.data)?void 0:w.dataList)||[],H=e=>{if(!L)return k()},V=e=>{const t="main"===e?D:q;return v.stringifyUrl({url:b.EXHIBIT_SUB,query:{promoNo:t.promoNo,themeNo:t.themeNo}})},Q=e=>{const t=V(e);R?y.openWebView(t,""):_(t)};return s(h,{children:[s(re,{children:[d("img",{width:375,height:553,src:T.bg1,alt:"QuizEvent ê²ìì°½ì ì ëµì
ë ¥íê³ ì¿ í° ë°ì¼ì¸ì!"}),d(p,{confirmInfo:de,onClick:()=>{E(!0)}})]}),d(re,{ref:F,children:d("img",{src:T.title,width:375,height:205,alt:"ë©ê°í¸ëì¼ ëíìí"})}),P&&d(u,{children:s(le,{children:[s(re,{children:[d("img",{src:T.martTitle,width:375,height:86,alt:"ìíë ìê°ì ë°°ì¡ ê¸ì£¼ì ì ì"}
1),d(m,{confirmInfo:pe,mixpanelSend:()=>{ye(Z)},urlInfo:{url:V("main")}})]}),d(g,{dataList:W,disusedRecommend:!0,disusedEventItemsButton:!0,disusedRelatedItemsButton:!0,disusedUnitPrice:!0,disusedBenefits:!0,disableLazyLoad:!0,itemListName:"ë©ê°í¸ëì¼ > ë§í¸ì§ì¡",promoNm:"ë©ê°í¸ëì¼",onClickedCart:e=>H(),append:W.length>=10&&s(se,{onClick:()=>{Q("main"),ye($)},title:"ë§í¸ì§ì¡ ë³´ë¬ê°ê¸°",children:[d("img",{src:"/static/images/icons/ico_arrow_right_grey.png",alt:"ë보기"}),d("span",{children:"ë보기"})]})})]})}),z&&s(le,{children:[s(re,{children:[d("img",{src:T.martTitle2,alt:"ë§í¸ì§ì¡ ê¸ì£¼ì ì¸ê¸°ë¹µë¹µ"}),d(m,{mixpanelSend:()=>{ye(ee)},confirmInfo:pe,urlInfo:{url:V("sub")}})]}),d(g,{dataList:Y,disusedRecommend:!0,disusedEventItemsButton:!0,disusedRelatedItemsButton:!0,disusedUnitPrice:!0,disusedBenefits:!0,disableLazyLoad:!0,itemListName:"ì¨ë¼ì¸ìí¼ì¸ì¼ > ì¦ìë°°ì¡",promoNm:"ì¨ë¼ì¸ìí¼ì¸ì¼",onClickedCart:e=>H(),append:Y.length>=10&&s(se,{onClick:()=>{Q("sub"),ye(te)},title:"ì¦ìë°°ì¡ ë³´ë¬ê°ê¸°",children:[d("img",{src:"/static/images/icons/ico_arrow_right_grey.png",alt:"ë보기"}),d("span",{children:"ë보기"})]})})]}),S&&d(f,{img:"".concat(G.CONTENTS_1.notice),txt:"ì ìì¬í\n 본 ì´ë²¤í¸ë 2025.05.15(목) ~ 2025.05.21(ì) ê¸°ê° ëì IDë¹ 1ì¼ 1í ì°¸ì¬ ê°ë¥í©ëë¤.\n ê²ìì°½ì ì ëµì ì
ë ¥íë©´ ì¿ í°ì ë¤ì´ ë°ì ì ììµëë¤.\n 본 ì¿ í°ì ì¨ë¼ì¸ ë§í¸ì§ì¡ ìí ì ì© ì¿ í°ì
ëë¤.\n ë°ê¸ë°ì ì¿ í°ë ë§ì´íì´ì§ > MYì¼íííìì íì¸ ê°ë¥í©ëë¤.\n 본 ì¿ í°ì ì¬ì© 기ê°ì ë°ê¸ ë¹ì¼ê¹ì§ì
ëë¤.\n 본 ì¿ í°ì ì¼ë¶ ìíìë ì ì© ì ì¸ë©ëë¤. (ì¼ë¶ê°ì , ê²ì기, ë¶ì )\n 본 ì¿ í°ì ë°°ì¡ì§ìì´ ìë ê²½ì° ì¬ì©ì´ ì íë©ëë¤.\n 본 ì¿ í°ì ë¶ë¹ ëë ë¶ì íê² ì·¨ëí ê²½ì° íìë ì ììµëë¤.\n 본 ì¿ í°ì ì¬ì©ê¸°ê° ì¢
ë£ í ë°í/ì·¨ì ì ì¬ë°ê¸ ëì§ ììµëë¤.\n 본 ì´ë²¤í¸ë ë¹ì¬ì ì¬ì ì ë°ë¼ ë³ê²½ ë° ì¡°ê¸° ì¢
ë£ë ì ììµëë¤.\n ",onClose:()=>E(!1)})]})},ge={top:"35.4%",width:"89%",height:"5.6%"},ue={top:"84%",width:"89%",height:"7.6%"},fe={top:"71.7%",width:"89.7%",height:"10.3%",disabledPosition:"bottom"},he=e=>{const{eventContentImgUrl:t}=e,a=x(),o=n().app,c=i(),[r,l]=j.useState(!1),[m,g]=j.useState(!1),[u,v]=j.useState(!1),[b,k]=j.useState("point300"),[R,_]=j.useState(!1);return s(h,{children:[s(re,{children:[d("img",{src:t.bg1,width:375,height:481,alt:"ë©ê°í¸ëë§ì¼ 3주ë
ê°ì¬ ì¼ì¼ Event 3ë§ì 구매íê³ ìµë 3ë§P ë½ê¸°"}),d("div",{className:"btncpn"}),d(N,{couponImageUrl:t.btn,couponInfo:fe,children:d("button",{type:"button",className:"coupon-btn",disabled:R||r,onClick:()=>{(async()=>{var e;try{if(!(await a()))return;l(!0);const t="Y25M05W3-01";if("N"===await z(t)){const n=await C({eventCode:t,expireDay:30,eventType:"PAY",maxMileageQtyCheckYn:"N",prtcType:"P"}),i=null==(e=null==n?void 0:n.data)?void 0:e.mileageAmt;switch(null==n?void 0:n.returnCode){case"SUCCESS":switch(i){case"300":v(!0),k("point300");break;case"30000":v(!0),k("point30000")}break;case"6011":await w.alert({content:T.A355});break;case"2011":case"8001":await w.alert({content:T.A347});break;case"2013":await w.alert({content:T.A371}),l(!1);break;case"7002":await w.alert({content:T.A394});break;default:await w.alert({content:(null==n?void 0:n.returnMessage)||""})}}else await w.alert({content:T.A390});_(!0)}finally{l(!1)}})(),ye(K)}})}),d(p,{confirmInfo:ue,onClick:()=>{g(!0)}})]}),s(re,{children:[d("img",{src:t.bg2,width:375,height:1053,alt:"ì¸ì모ë ë§ì´ ë¤ ìë¤! ë©ê°í¸ëë§ì¼! ì¤ëì í¹ë³ííì íì¸ íì¸ì 12%"}),d(I,{confirmInfo:ge,onClick:()=>{(()=>{const e="/exhibit?promoNo=".concat(V.promoNo,"&homeType=MART");
1o?y.openWebView("".concat("https://mfront.homeplus.co.kr").concat(e),""):c(e)})(),ye(ne)}})]}),u&&d(f,{img:t[b],txt:"",onClose:()=>v(!1),btnClose:!0}),m&&d(f,{img:"".concat(G.CONTENTS_2.notice),txt:"ì ìì¬í\n 본 ì´ë²¤í¸ë 2025.05.15(목) ~ 2025.05.21(ì) ê¸°ê° ëì IDë¹ 1í ì°¸ì¬ ê°ë¥í©ëë¤..\n 본 ì´ë²¤í¸ë ì´ë²¤í¸ ê¸°ê° ë´ ë°°ì¡ë¹ë¥¼ ì ì¸í ì¤ ê²°ì ê¸ì¡ 3ë§ì ì´ì 주문 ì ì°¸ì¬ ê°ë¥í©ëë¤.\n ë§í¸ì§ì¡, ì¦ìë°°ì¡ ì£¼ë¬¸ ê±´ì í í´ ì°¸ì¬ ê°ë¥íë©° íë°°ë°°ì¡, í©ë°°ì¡ 주문ì ì ì¸ë©ëë¤.\n 본 ë§ì¼ë¦¬ì§ë ì´ë²¤í¸ ì°¸ì¬ ì ì¦ì ë°ê¸ëë©° ë°ê¸ í 30ì¼ê¹ì§ ì¬ì© ê°ë¥í©ëë¤.\n 본 ë§ì¼ë¦¬ì§ë ìí 구매 ì ì¥ë°êµ¬ë ì¿ í°ê³¼ ì¤ë³µ ì ì© ê°ë¥í©ëë¤.\n ë°ê¸ë°ì ë§ì¼ë¦¬ì§ë ë§ì´íì´ì§ > MYì¼íííìì íì¸ ê°ë¥í©ëë¤.\n 본 ë§ì¼ë¦¬ì§ë¥¼ ë¶ë¹ ëë ë¶ì íê² ì·¨ëí ê²½ì° íìë ì ììµëë¤.\n 본 ë§ì¼ë¦¬ì§ë ì¬ì©ê¸°ê° ì¢
ë£ í ë°í/ì·¨ì ì ì¬ë°ê¸ ëì§ ììµëë¤.\n 본 ì´ë²¤í¸ë ë¹ì¬ì ì¬ì ì ë°ë¼ ë³ê²½ ë° ì¡°ê¸° ì¢
ë£ë ì ììµëë¤.\n ",onClose:()=>g(!1)})]})},ve={top:"0",width:"100%",height:"100%"},be=e=>{const{eventContentImgUrl:t}=e,[n,i]=j.useState(!1);return s(h,{children:[n?d(R,{}):null,s(ce,{children:[d("img",{src:t.banner1,alt:"4ì ííììì´"}),d(m,{mixpanelSend:()=>{ye(ie)},confirmInfo:ve,urlInfo:{url:"/exhibit?promoNo=14614&storeType=HYPER"}})]}),s(ce,{children:[d("img",{src:t.banner2,alt:"ì¶ì²µë§ì¼ë¦¬ì§!"}),d(m,{mixpanelSend:()=>{ye(ae)},confirmInfo:ve,urlInfo:{url:"/promotion/2025/05/attendance"}})]}),s(ce,{children:[d("img",{src:t.banner3,alt:"60ë¶ë´ì¸ì¦ìë°°ì¡"}),d(m,{mixpanelSend:()=>{ye(oe)},confirmInfo:ve,urlInfo:{url:"/express"}})]})]})},ke={irText:"ë©ê°í¸ëì¼",from:"ë©ê°í¸ëì¼",promoInfo:"2025/05/megaFood",aspectRatio:"15 / 13"},ye=e=>{_.eventPageClick({clickData:e,promotion_title:Q})},xe=()=>{const{isMobile:e}=c(),t=S({className:"headerTitle"}),n=j.useRef(null);E("Y25M05 EVENT02",Q,"MART");const i={event1Ref:j.useRef(null),event2Ref:j.useRef(null),event3Ref:j.useRef(null),refWrapper:j.useRef(null),topBannerImageRef:j.useRef(null),naviRef:j.useRef(null),naviFixedRef:j.useRef(null)},a=L(),{isFetched:o}=l({...D,enabled:!!a.move}),{isFetched:r}=l({...q,enabled:!!a.move});return U(i.refWrapper,[a.move,o,r],()=>{var t;if(""===a.move)return;const n=e?(null==(t=i.naviRef.current)?void 0:t.clientHeight)||0:-48;a.move&&o&&r&&B(i["".concat(a.move,"Ref")],n)}),O(()=>{var e,a,o,c;const r=(null==(e=i.naviRef.current)?void 0:e.getBoundingClientRect().top)||0,l=null!=(o=null==(a=null==t?void 0:t.current)?void 0:a.offsetHeight)?o:50,s=r>l;W.flushSync(()=>{(null==n?void 0:n.current)&&n.current.setFixed(!s)});const d=Object.keys(i).filter(e=>e.startsWith("event")).reverse().reduce((e,t)=>(e[t]=i[t],e),{}),p=(null==(c=i.naviFixedRef.current)?void 0:c.getBoundingClientRect().bottom)||0;for(const t in d){const e=d[t].current;if(null===e)continue;const i=e.getBoundingClientRect().top;if(null==n?void 0:n.current){if(p>=i&&r<l){n.current.setActiveNaviId(e.id),W.flushSync(()=>{var t;const n=null==(t=document.getElementById(e.id))?void 0:t.parentElement,i=null==n?void 0:n.parentElement;if(n&&i){const e=n.offsetLeft+n.clientWidth/2-i.clientWidth/2;i.scrollTo(e,0)}});break}n.current.setActiveNaviId(null)}}}),s(P,{ref:i.refWrapper,children:[d(F,{refObject:i,imageUrl:G.TOP_BANNER_IMG,shareImageUrl:G.SHARE_IMG,topB
1annerInfo:ke,promoNm:Q}),d(M,{navText:X,ref:n,refObject:i,navMarketingInfos:J,promoNm:Q}),d(A,{id:"event1",refObject:i,children:d(me,{eventContentImgUrl:G.CONTENTS_1})}),d(A,{id:"event2",refObject:i,children:d(he,{eventContentImgUrl:G.CONTENTS_2})}),d(A,{id:"event3",refObject:i,children:d(be,{eventContentImgUrl:G.CONTENTS_3})})]})};export{ke as TOP_BANNER_INFO,xe as default,ye as trackMarketing};
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.