PageSourceSearch

https://mfront.homeplus.co.kr/assets/js/index-Bsb7v-4u.js

js homeplus.co.kr collected 2026-09-24 10:15:27 UTC 13,278 bytes, 1 lines download raw bytes

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.