PageSourceSearch

https://vod.cjthemarket.com/the/_nuxt/C0OJehQd.js

js cjthemarket.com collected 2026-10-01 14:50:54 UTC 8,951 bytes, 1 lines download raw bytes

1import{_ as L,l as O,P as U,o as w,c as M,a7 as V,r as J,J as W,aa as H,d as j,a1 as G,a3 as Q,y as X,e as K,f as Y,h as a,ab as Z,Q as u,a as e,ag as v,am as N,ac as ee,j as te,k as ae}from"./CkLCwqNm.js";import{u as re,a as le}from"./vHuJwp3A.js";const se=""+new URL("img_deco_result.D0ND10XS.png",import.meta.url).href,ne={__name:"Fireworks",props:{autoplay:{type:Boolean,default:!0},autoplayOrigin:{type:String,default:"random"},autoplayImmediate:{type:Boolean,default:!1},autoplayInitialDelay:{type:Number,default:null},autoplayInterval:{type:Number,default:null},burstDurationMs:{type:Number,default:2e3},restDelayMs:{type:Number,default:500},particleCount:{type:Number,default:90},power:{type:Number,default:6},gravity:{type:Number,default:.06},friction:{type:Number,default:.985},colors:{type:Array,default:()=>["#36e1a3","#51ffbf","#1cc386","#ff4848","#ffd166"]},shape:{type:String,default:"square"},zIndex:{type:Number,default:9999}},setup(E,{expose:D}){const s=E,y=J(null);let d,h=1,m=0,_=0,S=0,n=0,g=null;const x=[],f=(l,r)=>Math.random()*(r-l)+l,o=l=>Math.max(1,Math.round(l/1e3*60));function R(){const l=y.value;if(!l)return;const i=(l.parentElement??l).getBoundingClientRect();h=Math.max(1,window.devicePixelRatio||1),m=Math.max(1,i.width),_=Math.max(1,i.height),l.width=Math.round(m*h),l.height=Math.round(_*h),d=l.getContext("2d"),d.setTransform(h,0,0,h,0,0)}function A(l){const r=l*2*Math.PI;let i=Math.cos(r),p=Math.sin(r);const b=Math.max(Math.abs(i),Math.abs(p))||1;i/=b,p/=b;const c=Math.hypot(i,p)||1;return{dx:i/c,dy:p/c}}function I(l,r,i=s.particleCount,p=s.burstDurationMs){const b=o(p);for(let c=0;c<i;c++){let k;if(s.shape==="square")k=A(Math.random());else{const q=Math.PI*2*(c/i)+f(-.25,.25);k={dx:Math.cos(q),dy:Math.sin(q)}}const F=s.power*f(.5,1.2),$=Math.round(b*f(.85,1.15));x.push({x:l,y:r,vx:k.dx*F,vy:k.dy*F,life:$,alpha:1,size:f(2,4),color:s.colors[Math.random()*s.colors.length|0]})}}function C(){I(m/2,_/2)}function P(l){var c;if(!l){C();return}const r=l.getBoundingClientRect(),i=(c=y.value)==null?void 0:c.getBoundingClientRect();if(!i){C();return}const p=r.left+r.width/2-i.left,b=r.top+r.height/2-i.top;I(p,b)}function B(){return s.autoplayOrigin==="center"?{x:m/2,y:_/2}:{x:f(m*.15,m*.85),y:f(_*.15,_*.6)}}function T(){const l=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!s.autoplay||l)return;const i=s.autoplayInterval!==null&&s.autoplayInterval!==void 0?Math.max(120,s.autoplayInterval):Math.max(0,s.burstDurationMs)+Math.max(0,s.restDelayMs),p=s.autoplayImmediate?0:s.autoplayInitialDelay??i;n=window.setTimeout(function b(){const{x:c,y:k}=B();I(c,k,Math.round(s.particleCount*f(.7,1.1)),s.burstDurationMs),n=window.setTimeout(b,i)},Math.max(0,p))}function t(){n&&(clearTimeout(n),n=0)}function z(){if(!d){S=requestAnimationFrame(z);return}d.clearRect(0,0,m,_),d.globalCompositeOperation="lighter";for(let l=x.length-1;l>=0;l--){const r=x[l];r.vx*=s.friction,r.vy=r.vy*s.friction+s.gravity,r.x+=r.vx,r.y+=r.vy,r.life--,r.alpha=Math.max(0,r.life/100),d.globalAlpha=r.alpha,d.beginPath(),d.arc(r.x,r.y,r.size,0,Math.PI*2),d.fillStyle=r.color,d.fill(),(r.life<=0||r.alpha<=0||r.y>_+80)&&x.splice(l,1)}d.globalAlpha=1,S=requestAnimationFrame(z)}return O(()=>{var l;if(R(),typeof ResizeObserver<"u"){g=new ResizeObserver(()=>R());const r=(l=y.value)==null?void 0:l.parentElement;r?g.observe(r):y.value&&g.observe(y.value)}window.addEventListener("resize",R),z(),T()}),U(()=>{cancelAnimationFrame(S),t(),g&&g.disconnect(),window.removeEventListener("resize",R)}),D({burst:I,burstCenter:C,burstAtElement:P,scheduleAutoplay:T,stopAutoplay:t}),(l,r)=>(w(),M("canvas",{ref_key:"cvs",ref:y,class:"fireworks",style:V({zIndex:s.zIndex})},null,4))}},oe=L(ne,[["__scopeId","data-v-527ef46d"]]),ie={class:"raffle__img"},fe=["src","alt"],ue={class:"raffle__round-reward"},de=["href"],_e=["href"],ce=["href"],pe={class:"raffle__img"},me=["src","alt"],ye={class:"raffle__round-reward"},be=["href"],he=["href"],ge=["href"],ve={class:"raffle__round"},we={class:"raffle__img"},Me=["src","alt"],xe={class:"raffle__round-reward"},Re={__name:"result",setup(E){const D=ae(),s=W(),y=H(),d=j(),h=G(),m=Q(),_=re(),{resultCurrentRound:S,resultRoundPrizeInfo:n,isResultRoundConfirm:g,isResultRoundPrizeWinner:x,resultRaffleLinks:f,resultRoundChangeStyleNm:o}=X(_),R=K(),A=le(),I=Number(s.query.round);
1_.setResultCurrentRound(I);const C={ogTitle:"래플이벤트 결과",ogUrl:`${D.public.baseUrl}${s.fullPath}`,ogImage:`${n.value.imageResult}`||"",ogDescription:"래플이벤트 결과 | 기획전 | CJ더마켓 - CJ제일제당 공식몰"};d.setMetaInfo(C),Y(C);const P=async()=>{if(!h.isLoggined)return await R.showModalConfirm("로그인 후 이용해 주세요.")&&m.setLoginModalStatus(!0,y.currentRoute.value.href||"/the/main"),!1;A.fetchRoundResultInfo()},B=()=>{location.href=f.value.currentRaffle.url};return(T,t)=>(w(),M("section",{class:u(a(o)==="2511"?"raffle__wrap_2511":"raffle__wrap")},[a(g)?(w(),M(Z,{key:0},[a(x)?(w(),M("section",{key:0,class:u(a(o)==="2511"?"raffle_2511":"raffle")},[t[9]||(t[9]=e("h1",{class:"raffle__title"},"래플 이벤트 당첨 결과!",-1)),e("div",{class:u(a(o)==="2511"?"raffle__box_2511":"raffle__box")},[t[2]||(t[2]=e("p",{class:"result__message"},"축하드려요🥳",-1)),t[3]||(t[3]=e("p",{class:"raffle__text"},"래플에 당첨되었습니다!!",-1)),e("div",ie,[e("img",{src:a(n).imageWin,alt:a(n).reward.label},null,8,fe)]),e("p",ue,[e("strong",null,"["+v(a(n).reward.round)+" 래플]",1),N(" "+v(a(n).reward.label),1)]),ee(oe,{"autoplay-initial-delay":500})],2),e("div",{class:u(a(o)==="2511"?"deco__result_2511":"deco__result")},[...t[4]||(t[4]=[e("img",{src:se,alt:"deco"},null,-1)])],2),e("p",{class:u(a(o)==="2511"?"raffle__review_2511":"raffle__review")},[...t[5]||(t[5]=[N(" 엄청난 경쟁률을 뚫고 당첨 됐어요 🎉 ",-1),e("br",null,null,-1),e("strong",null,"the라운지 후기 올리고 5,000원 적립금",-1),N(" 받으세요! ",-1)])],2),e("div",{class:u(a(o)==="2511"?"raffle__btn-wrap_2511":"raffle__btn-wrap")},[e("a",{href:a(f).theRounge.url,class:"raffle__btn raffle__btn--primary"},[...t[6]||(t[6]=[e("span",null,"당첨 후기 쓰러가기",-1)])],8,de)],2),e("div",{class:u(a(o)==="2511"?"raffle__btn-wrap_2511":"raffle__btn-wrap")},[e("a",{href:a(f).prizeNotice.url,title:"래플 당첨자 보기",class:"raffle__btn"},[...t[7]||(t[7]=[e("span",null,"래플 당첨자 보기",-1)])],8,_e),e("a",{href:a(f).mkHdl.url,title:"특가상품 보러가기",class:"raffle__btn"},[...t[8]||(t[8]=[e("span",null,"특가상품 보러가기",-1)])],8,ce)],2)],2)):(w(),M("section",{key:1,class:u(a(o)==="2511"?"raffle_2511":"raffle")},[t[15]||(t[15]=e("h1",{class:"raffle__title"},"래플 이벤트 당첨 결과!",-1)),e("div",{class:u(a(o)==="2511"?"raffle__box_2511":"raffle__box")},[t[10]||(t[10]=e("p",{class:"result__message"},"아쉬워요😢",-1)),t[11]||(t[11]=e("p",{class:"raffle__text"},"래플에 당첨되지 않았어요!",-1)),e("div",pe,[e("img",{src:a(n).imageNoWin,alt:a(n).reward.label},null,8,me)]),e("p",ye,[e("strong",null,"["+v(a(n).reward.round)+" 래플]",1),N(" "+v(a(n).reward.label),1)])],2),a(S)!==a(n).lastRound?(w(),M("div",{key:0,class:u(a(o)==="2511"?"raffle__btn-wrap_2511":"raffle__btn-wrap")},[e("button",{type:"button",class:"raffle__btn raffle__btn--primary",onClick:t[0]||(t[0]=z=>B())},[...t[12]||(t[12]=[e("span",null,[N("다음 래플 도전하기"),e("span",{class:"raffle__btn-ico"},"🔥")],-1)])])],2)):te("",!0),e("div",{class:u(a(o)==="2511"?"raffle__btn-wrap_2511":"raffle__btn-wrap")},[e("a",{href:a(f).prizeNotice.url,title:"래플 당첨자 보기",class:"raffle__btn"},[...t[13]||(t[13]=[e("span",null,"래플 당첨자 보기",-1)])],8,be),e("a",{href:a(f).mkHdl.url,title:"특가상품 보러가기",class:"raffle__btn"},[...t[14]||(t[14]=[e("span",null,"특가상품 보러가기",-1)])],8,he)],2),e("p",{class:u(a(o)==="2511"?"raffle__lounge_2511":"raffle__lounge")},[e("a",{href:a(f).theRounge.url,title:"the라운지"},"the라운지에 갖고 싶은 선물 남기기",8,ge)],2)],2))],64)):(w(),M("section",{key:1,class:u(a(o)==="2511"?"raffle_2511":"raffle")},[t[19]||(t[19]=e("h1",{class:"raffle__title"},"래플 이벤트 당첨 결과!",-1)),e("div",{class:u(a(o)==="2511"?"raffle__box_2511":"raffle__box")},[e("dl",ve,[e("dt",null,v(a(n).reward.round),1),t[16]||(t[16]=e("dd",null,"래플",-1))]),t[17]||(t[17]=e("p",{class:"raffle__text"},"당첨 결과를 확인하세요!",-1)),e("div",we,[e("img",{src:a(n).imageResult,alt:a(n).reward.label},null,8,Me)]),e("p",xe,[e("strong",null,"["+v(a(n).reward.round)+" 래플]",1),N(" "+v(a(n).reward.label),1)])],2),e("div",{class:u(a(o)==="2511"?"raffle__btn-wrap_2511":"raffle__btn-wrap")},[e("button",{class:"raffle__btn raffle__btn--primary",onClick:t[1]||(t[1]=z=>P())},[...t[18]||(t[18]=[e("span",null,"당첨 결과 확인하기",-1)])])],2)],2))],2))}},ke=L(Re,[["__scopeId","data-v-48e7d5a0"]]);export{ke 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.