PageSourceSearch

https://static.finda.co.kr/common-web/4.038.10/_next/static/chunks/5060-8d32c7124883539c.js

js finda.co.kr collected 2026-10-02 03:27:59 UTC 74,492 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5060],{2614:(e,t,a)=>{"use strict";a.d(t,{Y:()=>s});var n=a(51733),r=a(53084);function s(e){let t=(0,n.useRef)(e);return(0,r.E)(()=>{t.current=e},[e]),t}},3287:(e,t,a)=>{"use strict";a.d(t,{R3:()=>i,rx:()=>l,yl:()=>s});var n=a(31009);let r=e=>e.global;(0,n.Mz)(r,e=>e.osType);let s=(0,n.Mz)(r,e=>e.isMobile),l=(0,n.Mz)(r,e=>e.isApp),i=(0,n.Mz)(r,e=>e.platform)},3959:(e,t,a)=>{"use strict";a.d(t,{Bu:()=>c,Ig:()=>l,m0:()=>i});var n=a(36142),r=a(8777),s=a(8620);let l=e=>{let{alarmType:t}=e;return s.A.getInstance().get("/account/v4/alarm/type/".concat(t))},i=e=>{let{alarmType:t}=e;return(0,n.j)({queryKey:["alarm","type",t],queryFn:()=>l({alarmType:t}),select:e=>{let{data:t}=e;return t},staleTime:1/0})},c=e=>{let{alarmType:t,...a}=e;return(0,r.I)({...i({alarmType:t}),...a})}},5309:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(51733),r=a(41907),s=a(35048),l=a(49353),i=a(92204),c=a(12399);let o=()=>{let[e,t]=(0,n.useState)("true"===c.env.NEXT_PUBLIC_USE_MOCK?"dev":""),[a,o]=(0,n.useState)(""),[d,p]=(0,n.useState)(),[u,x]=(0,n.useState)(""),[m,g]=(0,n.useState)(""),[h,f]=(0,n.useState)(null),[v,b]=(0,n.useState)(!1),[y,w]=(0,n.useState)(null),N=(0,l.A)();return(0,n.useEffect)(()=>{window.__USER_DATA__&&(o(window.__USER_DATA__.id),x(window.__USER_DATA__.name),t(window.__USER_DATA__.token),f(window.__USER_DATA__.version),b(window.__USER_DATA__.isSetPush),g(window.__USER_DATA__.cellNumber),w(window.__USER_DATA__.deviceId),p(window.__USER_DATA__))},[]),(0,s.M)(()=>document,"visibilitychange",async()=>{if("visible"!==document.visibilityState||"Web"===N)return;let{data:n}=JSON.parse(await r.A.getUserData()||"{}");n&&(a!==n.id&&o(n.id),e!==n.token&&t(n.token),h!==n.version&&f(n.version),v!==n.isSetPush&&b(n.isSetPush))}),{userToken:e,userId:a,userData:d,appVersion:h,isSetPush:v,userName:u,cellNumber:m,deviceId:y,platform:(0,i.uo)()}}},12792:(e,t,a)=>{"use strict";a.d(t,{d:()=>s,n:()=>l});var n=a(36104),r=a(8620);let s=e=>r.A.getInstance().post("/tms/v1/agreement-content-user/terms",e),l=()=>(0,n.n)({mutationFn:s})},33856:(e,t,a)=>{"use strict";a.d(t,{C:()=>i,a:()=>c});var n=a(64146),r=a(36104),s=a(3959),l=a(8620);let i=e=>{let{alarmType:t,value:a}=e;return l.A.getInstance().put("/account/v4/alarm/alarm-type",{alarmType:t,value:a})},c=function(){let{invalidateOnSuccess:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,n.jE)();return(0,r.n)({mutationFn:i,onSuccess:(a,n)=>{e&&t.invalidateQueries({queryKey:(0,s.m0)({alarmType:n.alarmType}).queryKey})}})}},35048:(e,t,a)=>{"use strict";a.d(t,{M:()=>s});var n=a(51733),r=a(2614);function s(e,t,a,s){let l=function(e){let t=(0,r.Y)(e);return(0,n.useCallback)(function(){for(var e,a=arguments.length,n=Array(a),r=0;r<a;r++)n[r]=arguments[r];return null==(e=t.current)?void 0:e.call(t,...n)},[t])}(a);(0,n.useEffect)(()=>{var a,n;let r=null!==(n=a=e())&&"object"==typeof n&&Object.prototype.hasOwnProperty.call(n,"current")?a.current:a;return null==r||r.addEventListener(t,l,s),()=>{null==r||r.removeEventListener(t,l,s)}},[t,e,s,l,a])}},49353:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var n=a(3287),r=a(30127);function s(){return(0,r.G)(n.R3)}},49647:e=>{e.exports={content:"Accordion_content___mC_1",slideDown:"Accordion_slideDown__eDV3C",slideUp:"Accordion_slideUp__Ev5Wk"}},58223:(e,t,a)=>{"use strict";a.d(t,{A:()=>_});var n=a(74356),r=a.n(n),s=a(77170),l=a.n(s),i=a(67991),c=a.n(i),o=a(70425),d=a.n(o),p=a(13760),u=a.n(p),x=a(75144),m=a.n(x),g=a(74481),h=a.n(g),f=a(12932),v=a.n(f),b=a(67677),y=a.n(b),w=a(44e3),N=a.n(w),j=a(33927),C=a.n(j);r().locale(l()),r().extend(N()),r().extend(y()),r().extend(u()),r().extend(h()),r().extend(m()),r().extend(c()),r().extend(d()),r().extend(C()),r().extend(v()),r().updateLocale("ko",{weekStart:1}),r().tz.setDefault("Asia/Seoul");let _=r()},61088:(e,t,a)=>{"use strict";a.d(t,{AE:()=>r,ap:()=>n,zA:()=>s});let n={UP:1,DOWN:2},r={[n.UP]:"up",[n.DOWN]:"down"},s={[n.UP]:"UP",[n.DOWN]:"DOWN"}},65060:(e,t,a)=>{"use strict";a.d(t,{$Q:()=>tl,sj:()=>tp,Ow:()=>r,iY:()=>s});var n=a(93021);let r={key:"kospi",serverCampaignKey:"CH2608_FORECAST_KOSPI",layout:"v1",basePriceFractionDigits:null,maxChallengeRewardAmount:1e4,storageKeys:{lastSeenResultItemSeq:"kospi-forecast:last-seen-result-item-seq",marketingSheetSuppressUntil:"kospi-forecast:marketing-sheet-suppress-until",marketingSheetShownDate:"kospi-forecast:marketing-sheet-shown-date"},myData:{entryPoint:"PM_kospi_view",completeTitle:"연결이 완료되었어요!",completeDescription:"참여 중인 코스피 예측을 완료해주세요!",expiredRoundCompleteDescription:"마이데이터 연결 중 지난 회차 예측이 마감됐어요.\n다음 거래일을 다시 예측해 보세요.",completeCtaText:"확인"},marketing:{termsScreenKey:"MKT_AGREE",declineSuppressDays:7,agreedSnackbar:"핀다가 전송하는 광고성 정보 수신에 동의했어요. 동의일"},backAction:"popWebview",copy:{introTitle:e=>{let{maxChallengeRewardText:t}=e;return"다음 거래일 코스피 예측하고\n".concat(t,"P 도전하기")},participationPeriod:e=>"".concat(e," 참여할 수 있어요."),instrumentLabel:"코스피",resultInstrumentName:"코스피",choiceButtonLabels:{up:"상승한다",down:"하락한다"},submittedChoiceLabels:{up:"상승한다",down:"하락한다"},choiceDescription:"장 마감 후 결과를 알려드려요.",waitingSettlementDescription:"오늘 장 마감 후 결과를 알려드릴게요.",beforeOpenDescription:e=>e?"".concat(e," 동안 코스피 예측에 참여할 수 있어요."):"이벤트가 오픈되면 코스피 예측에 참여할 수 있어요.",predictionCompleteDescription:e=>e?"".concat(e," 장이 마감되면 결과가 발표돼요.\n예측이 맞으면 랜덤포인트를 받아요."):"장이 마감되면 결과가 발표돼요.\n예측이 맞으면 랜덤포인트를 받아요.",resultPrimaryCta:"다음 거래일 코스피 예측하기",resultFinalPrimaryCta:"내 자산 확인하기"},assets:{choiceIcons:{up:n.k.Iic.signArrowUp,down:n.k.Iic.signArrowDown,upDisabled:n.k.PromotionMyData.signArrowUpGrey,downDisabled:n.k.PromotionMyData.signArrowDownGrey}},noticeGroups:[{title:"이벤트 기간",items:[{text:"2026.08.11(화) ~ 2026.08.26(수) (*영업일 11일, 8/17(월) 대체공휴일)",children:["코스피 예측 대상 거래일: 2026.08.12(수) ~ 2026.08.27(목)","포인트 지급일: 각 예측 대상 거래일 장 마감 후 지급"]}]},{title:"이벤트 대상",items:["만 19세 이상의 핀다 마이데이터 연동을 완료한 회원 중 이벤트 기간 내 코스피 종가 등락 예측에 참여한 회원 (마이데이터 미연동 시 참여가 제한됩니다.)"]},{title:"이벤트 혜택",items:["코스피 예측 정답 시 핀다포인트 50P~3,000P 랜덤 지급 (매 영업일 1일 1회 참여 가능)","매 영업일 정답자 중 10명을 추첨하여 10,000P 추가 지급","이벤트 기간 동안 영업일 1회씩 중복 참여 및 당첨이 가능합니다."]},{title:"투자 관련 안내",items:["본 이벤트는 참가비가 없는 무료 이벤트로, 코스피 지수 등락을 맞추는 단순 참여형 이벤트이며, 투자 판단이나 투자 유인을 목적으로 하지 않습니다.","코스피 지수의 변동에 대한 예측 결과이며, 실제 투자 상품의 수익률이나 시장 전망과 무관합니다.","당사는 투자 자문 또는 투자 권유의 권한이 없으며, 본 이벤트의 예측 결과를 근거로 한 투자 판단 및 그에 따른 손익은 전적으로 본인의 책임입니다.","본 이벤트는 당사가 일시적으로 운영하는 프로모션의 일부이며, 사전 예고 없이 변경 또는 조기 종료될 수 있습니다."]},{title:"기타 유의사항",items:["전체 지급 리워드가 준비된 예산 한도에 도달할 경우 조기 마감될 수 있습니다.","코스피 등락 예측 성공 여부 및 10명 추첨 대상 선정은 '당사의 정산 데이터 추출 시점'을 기준으로 판정합니다.","참여일의 다음 개장일(코스피 예측 대상 거래일) 종가를 기준으로 등락을 판정하며, 대상 거래일이 휴장일인 경우 ê·¸ 다음 개장일의 종가를 기준으로 정산 및 지급됩니다.","만약 당일 코스피 지수가 변동 없이 전일 종가와 완전히 동일하게 마감(보합)될 경우, 당일 참여자 전원을 정답 처리하여 포인트를 지급합니다.","지급된 핀다포인트는 지급일로부터 1개월 경과 시 자동 소멸됩니다.","지급된 핀다포인트는 '핀다 앱 > 하단 포인트 탭'에서 확인할 수 있으며, 제휴 모바일 상품권 등으로 교환하여 사용 가능합니다.\n마이데이터 약관 동의 내용은 '전체 탭 > 우측 톱니바퀴(설정) > 마이데이터 연결 내역 관리'에서 확인할 수 있습니다.",{text:"다음의 경우 이벤트 및 혜택 대상자에서 제외되거나 포인트 지급이 취소될 수 있습니다.",children:["핀다 회원 탈퇴 또는 본인 인증 미확인 대상자","부정한 방법 또는 비정상적인 참여가 확인된 경우","만 19세 미만 등 마이데이터 회원 자격에 제한이 있을 경우"]}]},{title:"안내사항",items:["(주)핀다는 「신용정보의 이용 및 보호에 관한 법률」에 따라 허가받은 본인신용정보관리회사(마이데이터사업자)입니다.","본 이벤트 참여를 위한 마이데이터 연동 여부 확인은 이벤트 참여 자격 확인 목적으로만 이용되며, 마이데이터를 통해 수집된 개인신용정보는 동의받은 목적 범위 내에서만 처리됩니다.","기타 이벤트 관련 문의사항은 핀다 고객센터로 연락해주시기 바랍니다. (1533-6782 / [email protected] / 핀다앱 더보기 > 1:1 채팅문의)"]}],tracking:{introView:"PM_kospi_intro_view",predictClick:"PM_kospi_predict_clickCTA",predictLockedView:"PM_kospi_predict_locked_view",predictCompleteConfirmClick:"PM_kospi_predict_complete_confirm_clickCTA",resultWaitView:"PM_kospi_result_wait_view",marketingAgreementView:"PM_kospi_marketing_agreement_view",marketingAgreementClick:"PM_kospi_marketing_agreement_clickCTA",myDataIntroView:"PM_kospi_mydata_intro_view",resultPopupView:"PM_kospi_result_popup_view",resultPopupClick:"PM_kospi_result_popup_clickCTA",resultLastPopupView:"PM_kospi_result_last_popup_view",resultLastPopupClick:"PM_kospi_result_last_popup_clickCTA"}},s={key:"usd",serverCampaignKey:"CH2609_FORECAST_FX",layout:"v2",basePriceFractionDigits:2,maxChallengeRewardAmount:1e4,storageKeys:{lastSeenResultItemSeq:"usd-forecast:last-seen-result-item-seq",marketingSheetSuppressUntil:"usd-forecast:marketing-sheet-suppress-until",marketingSheetShownDate:"usd-forecast:marketing-sheet-shown-date"},myData:{entryPoint:"PM_usd_view",completeTitle:"연결이 완료되었어요!",completeDescription:"참여 중인 달러 환율 예측을 완료해주세요!",expiredRoundCompleteDescription:"마이데이터 연결 중 지난 회차 예측이 마감됐어요.\n다음 영업일을 예측해 보세요.",completeCtaText:"확인"},marketing:{termsScreenKey:"MKT_AGREE",declineSuppressDays:7,agreedSnackbar:"핀다가 전송하는 광고성 정보 수신에 동의했어요. 동의일"},backAction:"homeMain",copy:{introTitle:e=>{let{predictDateText:t,maxChallengeRewardManText:a}=e;return"".concat(t," 달러 환율 어떻게 될까요?\n맞히고 ").concat(a,"P 도전!")},participationPeriod:e=>"".concat(e," 참여할 수 있어요."),instrumentLabel:"USD",resultInstrumentName:"달러 환율",basePriceDateSuffix:"매매기준율",choiceButtonLabels:{up:"올라갈 것 같아!",down:"하락할 것 같은데?"},submittedChoiceLabels:{up:"상승한다",down:"하락한다"},choiceDescription:void 0,waitingSettlementDescription:"오늘 오전 매매기준율이 발표되면 결과를 알려드릴게요.",beforeOpenDescription:e=>e?"".concat(e," 동안 달러 환율 예측에 참여할 수 있어요."):"이벤트가 오픈되면 달러 환율 예측에 참여할 수 있어요.",predictionCompleteDescription:e=>
1e?"".concat(e," 오전 매매기준율 발표 후 결과를 알려드려요.\n예측이 맞으면 랜덤포인트를 받아요."):"오전 매매기준율 발표 후 결과를 알려드려요.\n예측이 맞으면 랜덤포인트를 받아요.",resultPrimaryCta:"다음 영업일 달러 환율 예측하기",resultFinalPrimaryCta:"내 자산 확인하기"},assets:{instrumentIcon:n.k.PromotionMyData.usdFlag,choiceIcons:{up:n.k.PromotionMyData.choiceArrowUp,down:n.k.PromotionMyData.choiceArrowDown,upDisabled:n.k.PromotionMyData.choiceArrowUpDisabled,downDisabled:n.k.PromotionMyData.choiceArrowDownDisabled}},noticeGroups:[{title:"이벤트 기간",items:[{text:"2026.09.14(월) ~ 2026.09.30(수) (*영업일 11일)",children:["환율 예측 대상일: 2026.09.15(화) ~ 2026.10.01(목)","포인트 지급일: 각 예측 대상일 서울외국환중개(주)의 매매기준율 발표 이후 지급"]}]},{title:"이벤트 대상",items:["만 19세 이상의 핀다 마이데이터 연동을 완료한 회원 중 이벤트 기간 내 원/달러 환율(매매기준율) 등락 예측에 참여한 회원 (마이데이터 미연동 시 참여가 제한됩니다.)"]},{title:"이벤트 혜택",items:["달러 환율 예측 정답 시 핀다포인트 50P~1,000P 랜덤 지급 (매 영업일 1일 1회 참여 가능)","매 영업일 정답자 중 10명을 추첨하여 10,000P 추가 지급","이벤트 기간 동안 영업일 1회씩 참여 및 당첨이 가능합니다."]},{title:"투자 관련 안내",items:["본 이벤트는 참가비가 없는 무료 이벤트로, 원/달러 환율의 등락을 맞추는 단순 참여형 이벤트이며, 투자 판단이나 투자 유인, 환전 등 금융거래 유인을 목적으로 하지 않습니다.","예측 결과는 당사의 외환 시장 전망이 아니며, 실제 환전 시 적용되는 환율과도 무관합니다.","당사는 투자 자문 또는 투자 권유의 권한이 없으며, 본 이벤트의 예측 결과를 근거로 한 환전, 투자 판단 및 그에 따른 손익은 전적으로 본인의 책임입니다.","본 이벤트는 당사가 일시적으로 운영하는 프로모션의 일부이며, 사전 예고 없이 변경 또는 조기 종료될 수 있습니다."]},{title:"기타 유의사항",items:["전체 지급 리워드가 준비된 예산 한도에 도달할 경우 조기 마감될 수 있습니다.","환율 등락 예측 성공 여부 및 10명 추첨 대상 선정기준은 다음과 같습니다.","환율 등락 예측 성공 여부 및 10명 추첨 대상 선정은 '당사의 정산 데이터 추출 시점'을 기준으로 판정합니다.","환율 등락 판정은 서울외국환중개(주)가 발표하는 매매기준율(원/달러)을 기준으로 하며, 참여일의 다음 영업일(환율 예측 대상일) 오전(9시 이전)에 서울외국환중개(주) 홈페이지에 고시되는 매매기준율과 비교하여 등락을 판정합니다. 대상일이 매매기준율 미고시일(공휴일 등)인 경우 ê·¸ 다음 영업일에 고시되는 매매기준율을 기준으로 정산 및 지급됩니다.","선정기준이 되는 매매기준율은 개별 은행이 자체적으로 고시하는 환율(전신환율, 현찰 매매율 등)ê³¼ 다를 수 있으며, 자세한 사항은 서울외국환중개 홈페이지(http://smbs.biz)에서 확인하실 수 있습니다.","만약 환율 예측 대상일의 매매기준율이 참여일의 매매기준율과 완전히 동일할 경우(보합), 당일 참여자 전원을 정답 처리하여 포인트를 지급합니다.","지급된 핀다포인트는 지급일로부터 1개월 경과 시 자동 소멸됩니다.","지급된 핀다포인트는 '핀다 앱 > 하단 포인트 탭'에서 확인할 수 있으며, 제휴 모바일 상품권 등으로 교환하여 사용 가능합니다.","마이데이터 약관 동의 내용은 '전체 탭 > 우측 톱니바퀴(설정) > 마이데이터 연결 내역 관리'에서 확인할 수 있습니다.",{text:"다음의 경우 이벤트 및 혜택 대상자에서 제외되거나 포인트 지급이 취소될 수 있습니다.",children:["핀다 회원 탈퇴 또는 본인 인증 미확인 대상자","부정한 방법 또는 비정상적인 참여가 확인된 경우","만 19세 미만 등 마이데이터 회원 자격에 제한이 있을 경우"]}]},{title:"안내사항",items:["(주)핀다는 「신용정보의 이용 및 보호에 관한 법률」에 따라 허가받은 본인신용정보관리회사(마이데이터사업자)입니다.","본 이벤트 참여를 위한 마이데이터 연동 여부 확인은 이벤트 참여 자격 확인 목적으로만 이용되며, 마이데이터를 통해 수집된 개인신용정보는 동의받은 목적 범위 내에서만 처리됩니다.","기타 이벤트 관련 문의사항은 핀다 고객센터로 연락해주시기 바랍니다. (1533-6782 / [email protected] / 핀다앱 더보기 > 1:1 채팅문의)"]}],tracking:{introView:"PM_usd_intro_view",predictClick:"PM_usd_predict_clickCTA",predictLockedView:"PM_usd_predict_locked_view",predictCompleteConfirmClick:"PM_usd_predict_complete_confirm",resultWaitView:"PM_usd_result_wait_view",marketingAgreementView:"PM_usd_marketing_agreement_view",marketingAgreementClick:"PM_usd_marketing_agreement_clickCTA",myDataIntroView:"PM_usd_mydata_intro_view",resultPopupView:"PM_usd_result_popup_view",resultPopupClick:"PM_usd_result_popup_clickCTA",resultLastPopupView:"PM_usd_result_last_popup_view",resultLastPopupClick:"PM_usd_result_last_popup_clickCTA"}};var l=a(88233),i=a(36142),c=a(8777),o=a(8620),d=a(51733);let p=(0,d.createContext)(null),u=e=>{let{campaign:t,children:a}=e;return(0,l.jsx)(p.Provider,{value:t,children:a})},x=()=>{let e=(0,d.useContext)(p);
1if(!e)throw Error("useForecastCampaign은 ForecastCampaignProvider 안에서만 사용할 수 있어요.");return e},m={title24:"text-[24px] font-[600] leading-[32px]",heading20:"text-[20px] font-[600] leading-[26px]",label17:"text-[17px] font-[600] leading-[22px]",body15:"text-[15px] font-[400] leading-[22px]",caption13:"text-[13px] font-[400] leading-[18px]"},g={viewportMaxWidthClassName:"max-w-[768px]",horizontalPaddingClassName:"px-[20px]",bottomCtaClassName:"left-1/2 max-w-[768px] -translate-x-1/2"};var h=a(64146),f=a(30252),v=a(3959),b=a(33856),y=a(83411),w=a(78482),N=a(12792),j=a(58223);let C=e=>window.localStorage.getItem(e),_=(e,t)=>{window.localStorage.setItem(e,t)},k=e=>!0!==e.deleteYn&&(!e.status||"ENABLED"===e.status),A=e=>e.docUrl.includes("marketing-collect")||e.name.includes("수집"),S=(e,t)=>e.length>0&&e.every(e=>!0===e.agreed||t[e.id]),P=e=>{let t=e.map(e=>({...e,agreements:e.agreements.filter(k)})).filter(e=>e.agreements.length>0),a=t.map(e=>({...e,agreements:e.agreements.filter(e=>!0!==e.agreed)})).filter(e=>e.agreements.length>0);return{allAgreements:t.flatMap(e=>e.agreements),visibleGroups:a,visibleAgreements:a.flatMap(e=>e.agreements)}};var D=a(42780),M=a(41907);let q=new WeakMap,R="MyDataConnectEnd";var T=a(76651),E=a(61088),O=a(95026);let F=e=>(0,j.A)(e).tz(),L=e=>null==e?"":F(e).format("M/D(ddd)"),I=e=>null==e?"":F(e).format("M/D"),z=e=>null==e?"":F(e).format("M.D (ddd)"),U=e=>null==e?"":F(e).format("YYYY-MM-DD"),B=(e,t)=>{if(null==t)return"-";let{basePriceFractionDigits:a}=e;return(0,O.X)(null==a?t:t.toFixed(a))},W=e=>(0,O.X)(Number(e.toFixed(2)).toString()),Y=e=>{let t=null==e?void 0:e.changeAmount,a=null==e?void 0:e.changeRate;if(null==t||null==a)return null;let n=t<0?"DOWN":t>0?"UP":"FLAT";return{direction:n,text:"".concat("UP"===n?"+":"").concat(W(t),"(").concat(W(a),"%)")}},V=e=>e%1e4==0?"".concat((0,O.X)(e/1e4),"만"):(0,O.X)(e),K=function(e,t){var a;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),r=null==t||null==(a=t.currentRound)?void 0:a.closesAt;return"number"==typeof r&&r<=n?e.myData.expiredRoundCompleteDescription:e.myData.completeDescription},G=e=>null==e.currentRound||"ENDED"===e.eventStatus;var X=a(27278),H=a(36104);let Q=e=>{let{campaignKey:t,itemSeq:a,choiceSeq:n}=e;return o.A.getInstance().post("/pcs/campaign/v1/forecast/".concat(t,"/predict"),{itemSeq:a,choiceSeq:n})},J=new Set([6210,1002]),$=e=>{if(void 0===e)return;let t=Number(e);return Number.isFinite(t)?t:void 0};var Z=a(61463),ee=a(89104);let et=e=>"string"==typeof e?e:e.text,ea=()=>(0,l.jsx)("span",{"aria-hidden":"true",className:"relative h-[9px] w-[2px] shrink-0",children:(0,l.jsx)("span",{className:"absolute left-0 top-[7px] h-[2px] w-[2px] rounded-full bg-gray-060"})}),en=()=>(0,l.jsx)("span",{"aria-hidden":"true",className:"absolute left-[-8.5px] top-[7.25px] h-[3px] w-[3px] rounded-full bg-gray-060"}),er=e=>{let{item:t}=e,a=(e=>"string"==typeof e?void 0:e.children)(t);return(0,l.jsxs)("li",{className:"flex min-w-0 items-start gap-[5px]",children:[(0,l.jsx)(ea,{}),(0,l.jsxs)("div",{className:"min-w-0 flex-1 break-words",children:[(0,l.jsx)("p",{children:et(t)}),a&&(0,l.jsx)("ul",{className:"list-none",children:a.map(e=>(0,l.jsxs)("li",{className:"relative ms-[19.5px] list-none break-words",children:[(0,l.jsx)(en,{}),(0,l.jsx)("span",{children:e})]},e))})]})]})},es=()=>{let{layout:e,noticeGroups:t}=x();return(0,l.jsx)("section",{className:"".concat("v2"===e?"bg-white":"bg-gray-010"," pb-[40px] pt-[16px]"),children:(0,l.jsx)(ee.Ay,{type:"single",collapsible:!0,children:(0,l.jsxs)(ee.Ay.Item,{value:"event-notice",size:"l",variant:"gray",className:"v2"===e?"[&&]:!bg-white":"[&&]:!bg-gray-010",children:[(0,l.jsx)(ee.Ay.Trigger,{children:"이벤트 유의사항"}),(0,l.jsx)(ee.Ay.Content,{children:(0,l.jsx)("div",{className:"flex min-w-0 flex-col gap-[16px]",children:t.map(e=>(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-[16px]",children:[(0,l.jsx)("h3",{className:"text-15-bold text-gray-090",children:e.title}),(0,l.jsx)("ul",{className:"flex min-w-0 flex-col gap-[8px] text-[13px] font-[400] leading-[1.35] text-gray-060",children:e.items.map(e=>(0,l.jsx)(er,{item:e},et(e)))})]},e.title))})})]})})})};var el=a(12584),ei=a.n(el),ec=a(85478),eo=a.n(ec);let ed={[E.ap.UP]:n.k.Iic.signArrowUp,[E.ap.DOWN]:n.k.Iic.signArrowDown},ep={[E.ap.UP]:n.k.PromotionMyData.signArrowUpGrey,[E.ap.DOWN]:n.k.PromotionMyData.signArrowDownGrey},eu={[E.ap.UP]:{enabledBgClassName:"bg-red-010",pressedBgClassName:"bg-red-020",interactiveBgClassName:"pc-hover:enabled:hover:bg-red-020 focu
1s:bg-red-020 focus-visible:bg-red-020 active:bg-red-020",borderClassName:"border-red-060",textClassName:"text-red-060"},[E.ap.DOWN]:{enabledBgClassName:"bg-aqua-010",pressedBgClassName:"bg-aqua-020",interactiveBgClassName:"pc-hover:enabled:hover:bg-aqua-020 focus:bg-aqua-020 focus-visible:bg-aqua-020 active:bg-aqua-020",borderClassName:"border-aqua-060",textClassName:"text-aqua-060"}},ex=e=>{let{choiceSeq:t,selected:a,disabled:n,onClick:r}=e,s=x(),i=eu[t],c=a?"pressed":n?"disabled":"enabled",o="disabled"===c,d=o?"bg-gray-010":"pressed"===c?i.pressedBgClassName:i.enabledBgClassName;return(0,l.jsxs)("button",{type:"button",disabled:n,"aria-pressed":a,onClick:r,className:ei()("relative flex h-[142px] min-w-[130px] flex-1 shrink-0 basis-0 flex-col items-center justify-center gap-[16px] rounded-[12px] border border-solid text-center","transition-[background-color,border-color,padding-top] duration-200 ease-out motion-reduce:transition-none","enabled"===c&&"focus-visible:outline-none focus-visible:ring-0","enabled"===c&&i.interactiveBgClassName,d,a?i.borderClassName:"border-transparent",a&&"pt-[10px]"),children:[(0,l.jsx)("span",{className:"relative h-[32px] w-[32px] shrink-0",children:(0,l.jsx)(eo(),{src:o?ep[t]:ed[t],width:32,height:32,alt:"",className:"h-[32px] w-[32px]"})}),(0,l.jsxs)("span",{className:"flex flex-col items-center",children:[(0,l.jsx)("span",{className:ei()(m.label17,"transition-colors duration-200 ease-out motion-reduce:transition-none",o?"text-gray-040":i.textClassName),children:s.copy.choiceButtonLabels[E.AE[t]]}),a&&(0,l.jsx)("span",{className:ei()("block pt-[4px]",m.caption13,i.textClassName),children:"선택 완료"})]})]})},em=e=>{let{bodyMessage:t,selectedChoiceSeq:a,disabled:n,onSelect:r}=e;return(0,l.jsxs)("section",{className:"".concat(g.horizontalPaddingClassName," bg-gray-010 pt-[16px]"),children:[(0,l.jsxs)("div",{className:"rounded-[18px] bg-mono-100 px-[20px] py-[24px]",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,l.jsx)("h2",{className:"whitespace-pre-line text-gray-110 ".concat(m.heading20),children:t.title}),(0,l.jsx)("p",{className:"whitespace-pre-line text-gray-060 ".concat(m.body15),children:t.description})]}),(0,l.jsxs)("div",{className:"mt-[28px] flex gap-[20px]",children:[(0,l.jsx)(ex,{choiceSeq:E.ap.UP,selected:a===E.ap.UP,disabled:n,onClick:()=>r(E.ap.UP)}),(0,l.jsx)(ex,{choiceSeq:E.ap.DOWN,selected:a===E.ap.DOWN,disabled:n,onClick:()=>r(E.ap.DOWN)})]})]}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-[4px] py-[24px] text-center text-gray-040 ".concat(m.caption13),children:[(0,l.jsx)("p",{children:"만 19세 이상 자산 연결한 고객님만 예측 완료 가능해요."}),(0,l.jsx)("p",{children:"자세한 내용은 이벤트 유의사항을 꼭 확인해주세요."})]})]})};var eg=a(77221);let eh=e=>{let{backgroundClassName:t="bg-gray-010"}=e,{backAction:a}=x();return(0,l.jsx)("header",{className:"sticky top-0 z-[2] flex h-[56px] ".concat(t),children:(0,l.jsxs)("div",{className:"flex h-[56px] w-full shrink-0 items-center",children:[(0,l.jsx)("button",{type:"button",className:"flex h-full items-center px-[16px] py-[14px]",onClick:()=>{if("homeMain"===a)return void M.A.goTo({page:Z.M.HOME_MAIN});M.A.popWebview()},"aria-label":"뒤로가기",children:(0,l.jsx)(eg.A,{name:"IcArrowLeftOutline",width:24,height:24})}),(0,l.jsx)("div",{className:"flex-1"}),(0,l.jsx)("div",{className:"w-[56px]"})]})})},ef=e=>{var t;let{eventPeriod:a,eventRound:n}=e,r=x(),s=Y(null==n?void 0:n.basePrice),i=(0,O.X)(r.maxChallengeRewardAmount),c=(null==s?void 0:s.direction)==="DOWN"?"text-blue-060":(null==s?void 0:s.direction)==="FLAT"?"text-gray-060":"text-red-060";return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("section",{className:"".concat(g.horizontalPaddingClassName," bg-gray-010 py-[16px]"),children:[(0,l.jsx)("h1",{className:"text-gray-110 whitespace-pre-line ".concat(m.title24),children:r.copy.introTitle({predictDateText:I(null==n?void 0:n.roundDate),maxChallengeRewardText:i,maxChallengeRewardManText:V(r.maxChallengeRewardAmount)})}),a&&(0,l.jsx)("p",{className:"text-findaGray-40 mt-[10px] ".concat(m.body15),children:r.copy.participationPeriod(a)})]}),(0,l.jsx)("section",{className:"".concat(g.horizontalPaddingClassName," bg-gray-010 pt-[20px]"),children:(0,l.jsxs)("div",{className:"bg-mono-100 rounded-[12px] px-[20px] py-[24px]",children:[(0,l.jsxs)("div",{className:"flex items-center gap-[6px]",children:[(0,l.jsx)("span",{className:"text-gray-090 ".concat(m.label17),children:(null==n?void 0:n.instrumentName)||r.copy.instrumentLabel}),(null==n?void 0:n.basePrice)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"text-gray-060 ".concat(m.caption13),children:"|"}),(0,l.jsx)("span",{className:"text-gray-060 ".concat(m.caption13),children:z(n.basePrice.date)})]})]}),(0,l.jsxs)("div",{className:"mt-[4px] flex items-center gap-[4px]",children:[(0,l.jsx)("span",{className:"text-mono-00 ".concat(m.heading20),children:B(r,null==n||null==(t=n.basePrice)?void 0:t.price)}),s&&(0,l.jsx)("span",{className:"".concat(c," ").concat(m.caption13),children:s.text})]})]})})]})},ev=e=>{let{className:t}=e;return(0,l.jsx)("div",{className:"max-w-full animate-pulse rounded-[8px] bg-gray-020 ".concat(t)})},eb=e=>{let{className:t}=e;return(0,l.jsxs)("div",{className:"flex h-[142px] min-w-[130px] flex-1 shrink-0 basis-0 flex-col items-center justify-center gap-[16px] rounded-[12px] ".concat(t),children:[(0,l.jsx)(ev,{className:"h-[32px] w-[32px] rounded-[8px] bg-mono-100/60"}),(0,l.jsx)(ev,{className:"h-[22px] w-[64px] bg-mono-100/60"})]})},ey=()=>{let{layout:e}=x(),t="v2"===e?"bg-white":"bg-gray-010";return(0,l.jsxs)("main",{className:"mx-auto min-h-screen ".concat(g.viewportMaxWidthClassName," ").concat(t," pb-[40px]"),children:[(0,l.jsx)(eh,{backgroundClassName:t}),(0,l.jsxs)("section",{className:"".concat(g.horizontalPaddingClassName," ").concat(t," py-[16px]"),children:[(0,l.jsxs)("div",{className:"space-y-[8px]",children:[(0,l.jsx)(ev,{className:"h-[32px] w-[292px]"}),(0,l.jsx)(ev,{className:"h-[32px] w-[210px]"})]}),(0,l.jsx)(ev,{className:"mt-[8px] h-[22px] w-[260px]"})]}),(0,l.jsx)("section",{className:"".concat(g.horizontalPaddingClassName," ").concat(t," pt-[20px]"),children:(0,l.jsxs)("div",{className:"rounded-[12px] bg-mono-100 px-[20px] py-[24px]",children:[(0,l.jsxs)("div",{className:"flex gap-[6px]",children:[(0,l.jsx)(ev,{className:"h-[22px] w-[42px]"}),(0,l.jsx)(ev,{className:"h-[18px] w-[4px]"}),(0,l.jsx)(ev,{className:"h-[18px] w-[52px]"})]}),(0,l.jsx)(ev,{className:"mt-[4px] h-[26px] w-[90px]"})]})}),(0,l.jsxs)("section",{className:"".concat(g.horizontalPaddingClassName," ").concat(t," pt-[16px]"),children:[(0,l.jsxs)("div",{className:"rounded-[18px] bg-mono-100 px-[20px] py-[24px]",children:[(0,l.jsxs)("div",{className:"space-y-[8px]",children:[(0,l.jsx)(ev,{className:"h-[26px] w-[252px]"}),(0,l.jsx)(ev,{className:"h-[26px] w-[232px]"}),(0,l.jsx)(ev,{className:"h-[22px] w-[220px]"})]}),(0,l.jsxs)("div",{className:"mt-[28px] flex gap-[20px]",children:[(0,l.jsx)(eb,{className:"bg-red-010"}),(0,l.jsx)(eb,{className:"bg-aqua-010"})]})]}),(0,l.jsxs)("div",{className:"py-[24px]",children:[(0,l.jsx)(ev,{className:"mx-auto h-[18px] w-[320px]"}),(0,l.jsx)(ev,{className:"mx-auto mt-[4px] h-[18px] w-[280px]"})]})]}),(0,l.jsx)("section",{className:"".concat(t," pb-[40px] pt-[16px]"),children:(0,l.jsx)("div",{className:"".concat(g.horizontalPaddingClassName),children:(0,l.jsx)(ev,{className:"h-[55px] w-full rounded-[12px]"})})})]})};var ew=a(12744),eN=a.n(ew),ej=a(9312),eC=a(51151);let e_=e=>{let{isOpen:t,imageSrc:a,lottieSrc:n,imageWidth:r,imageHeight:s,contentTopClassName:i="pt-[192px]",titleTopClassName:c="mt-[60px]",descriptionTopClassName:o="mt-[12px]",titleClassName:d="".concat(m.title24," text-gray-110"),descriptionClassName:p="text-17-regular text-gray-060",title:u,description:x,primaryLabel:h,onPrimaryClick:f}=e;return t?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"jsx-fe2a58f78ace946f "+"forecastFullScreenState z-full fixed inset-0 left-1/2 flex min-h-screen w-full ".concat(g.viewportMaxWidthClassName," -translate-x-1/2 flex-col bg-white"),children:[(0,l.jsxs)("section",{className:"jsx-fe2a58f78ace946f "+"flex flex-col items-center px-[20px] text-center ".concat(i),children:[n?(0,l.jsx)(eC.default,{path:n,loop:!0,play:!0,style:{width:r,height:s,flexShrink:0}}):a&&(0,l.jsx)(eo(),{src:a,width:r,height:s,alt:"",className:"shrink-0"}),(0,l.jsx)("h1",{className:"jsx-fe2a58f78ace946f "+"whitespace-pre-line ".concat(c," ").concat(d),children:u}),(0,l.jsx)("p",{className:"jsx-fe2a58f78ace946f "+"whitespace-pre-line ".concat(o," ").concat(p),children:x})]}),(0,l.jsx)(ej.A,{size:"M",sheetType:"full",className:g.bottomCtaClassName,children:(0,l.jsx)(ej.A.PrimaryButton,{variant:"primary",size:"FULL",onClick:f,children:h})})]}),(0,l.jsx)(eN(),{id:"fe2a58f78ace946f",children:".forecastFullScreenState.jsx-fe2a58f78ace946f{animation:forecastFullScreenFadeIn 300ms ease-out}@media(prefers-reduced-motion:reduce){.forecastFullScreenState.jsx-fe2a58f78ace946f{animation:none}}@keyframes forecastFullScreenFadeIn{from{opacity:0}
1to{opacity:1}}"})]}):null},ek=e=>{let{isOpen:t,isFinal:a,specialRewardAmount:r,result:s,userName:i,onClose:c}=e,{copy:o}=x();if(!s)return null;let d=L(s.roundDate),p=s.correct&&0===s.rewardAmount,u=s.correct&&!p&&r>0,m=s.rewardAmount+r,g=s.correct?n.k.PromotionMyData.resultCorrectLottie:n.k.PromotionMyData.resultFailLottie,h=s.correct?p?(0,l.jsx)(l.Fragment,{children:"포인트 적립 중"}):u?(0,l.jsxs)(l.Fragment,{children:[i?"".concat(i,"님, "):"","당첨 축하드려요!","\n","총"," ",(0,l.jsxs)("span",{className:"text-purple-060",children:[(0,O.X)(m),"P"]})," 지급됐어요"]}):(0,l.jsxs)(l.Fragment,{children:["예측이 맞았어요!","\n",(0,l.jsxs)("span",{className:"text-purple-060",children:[(0,O.X)(s.rewardAmount),"P"]}),"를 드릴게요"]}):(0,l.jsxs)(l.Fragment,{children:["아쉽게","\n","예측이 빗나갔어요"]}),f=(()=>{let{resultInstrumentName:e}=o;return s.correct?p?"".concat(d," ").concat(e," 예측에 성공했어요."):u?"".concat(d," 예측 성공 리워드에\n스페셜 ").concat((e=>e%1e4==0?"".concat((0,O.X)(e/1e4),"만점"):"".concat((0,O.X)(e),"P"))(r),"이 더해졌어요."):"".concat(d," ").concat(e," 예측에 성공했어요."):"".concat(d," ").concat(e," 예측에 실패했어요.")})();return(0,l.jsx)(e_,{isOpen:t,lottieSrc:g,imageWidth:270,imageHeight:150,title:h,description:f,primaryLabel:a?o.resultFinalPrimaryCta:o.resultPrimaryCta,onPrimaryClick:c})};var eA=a(51450);let eS=e=>{let{title:t,description:a,imageSrc:n,actionLabel:r,onActionClick:s,showHeader:i=!0}=e;return(0,l.jsxs)("main",{className:"mx-auto flex min-h-screen ".concat(g.viewportMaxWidthClassName," flex-col bg-white"),children:[i&&(0,l.jsx)(eh,{backgroundClassName:"bg-white"}),(0,l.jsxs)("section",{className:"flex flex-col gap-[8px] ".concat(g.horizontalPaddingClassName," pb-[40px] pt-[32px]"),children:[(0,l.jsx)("h1",{className:"whitespace-pre-line text-headline-s text-gray-110",children:t}),a&&(0,l.jsx)("p",{className:"text-15-regular text-gray-060",children:a})]}),n&&(0,l.jsx)("div",{className:"mt-[116px] flex justify-center",children:(0,l.jsx)(eo(),{src:n,width:120,height:120,alt:"",className:"h-[120px] w-[120px] shrink-0"})}),r&&s&&(0,l.jsx)("div",{className:"mt-auto ".concat(g.horizontalPaddingClassName," pb-[16px]"),children:(0,l.jsx)(eA.A,{variant:"primary",size:"FULL",onClick:s,children:r})})]})};var eP=a(43430),eD=a(88404),eM=a(74701);let eq={primary:{default:"bg-purple-060 text-mono-100",disabled:"disabled:bg-gray-020 disabled:text-gray-040",hover:"pc-hover:enabled:hover:[&:not(:active)]:bg-purple-050",pressed:"enabled:focus-visible:bg-purple-070 enabled:active:bg-purple-070"},secondary:{default:"bg-mono-100 text-purple-060 border-1 border-solid border-purple-060",disabled:"disabled:bg-mono-100 disabled:text-gray-040 disabled:border-gray-020",hover:"pc-hover:enabled:hover:[&:not(:active)]:bg-purple-010 pc-hover:enabled:hover:[&:not(:active)]:text-purple-050 pc-hover:enabled:hover:[&:not(:active)]:border-purple-050",pressed:"enabled:focus-visible:bg-purple-010 enabled:focus-visible:text-purple-070 enabled:focus-visible:border-purple-070 enabled:active:bg-purple-010 enabled:active:text-purple-070 enabled:active:border-purple-070"},tertiaryPurple:{default:"bg-purple-010 text-purple-060",disabled:"disabled:bg-gray-020 disabled:text-gray-040",hover:"pc-hover:enabled:hover:[&:not(:active)]:bg-purple-020 pc-hover:enabled:hover:[&:not(:active)]:text-purple-050",pressed:"enabled:focus-visible:bg-purple-020 enabled:focus-visible:text-purple-070 enabled:active:bg-purple-020 enabled:active:text-purple-070"},tertiaryGray:{default:"bg-mono-100 text-gray-090 border-1 border-solid border-gray-030",disabled:"disabled:bg-mono-100 disabled:text-gray-040 disabled:border-gray-020",hover:"pc-hover:enabled:hover:[&:not(:active)]:bg-purple-010 pc-hover:enabled:hover:[&:not(:active)]:text-gray-060",pressed:"enabled:focus-visible:bg-purple-010 enabled:focus-visible:text-gray-090 enabled:focus-visible:border-gray-050 enabled:active:bg-purple-010 enabled:active:text-gray-090 enabled:active:border-gray-050"}},eR={L:"text-17-bold min-w-[96px] max-w-[760px] h-[54px] px-[14px]",M:"text-15-bold min-w-[70px] max-w-[760px] h-[46px] px-[12px]",S:"text-13-bold min-w-[48px] max-w-[760px] h-[32px] px-[10px]"},eT=(0,d.memo)(function(e){let{variant:t,size:a,children:n,className:r,...s}=e;return(0,l.jsx)("button",{type:"button",...s,className:ei()("flex items-center w-fit justify-center rounded-full py-[4px]",eR[a],Object.values(eq[t]).join(" "),r),children:(0,l.jsx)("span",{className:"w-full shrink-0 truncate",children:n})})});var eE=a(81234),eO=a(52903);let eF={textPurple:{default:"text-purple-060",disabled:"disabled:text-gray-040",hover:"pc-hover:enabled:hover:[&:not(:active)]:text-purple-050",pressed:"enabled:focus-visible:text-purple-070 enabled:active:text-purple-070"},textGray:{default:"text-gray-090",disabled:"disabled:text-gray-040",hover:"pc-hover:enabled:hover:[&:not(:active)]:text-gray-060",pressed:"enabled:focus-visible:text-gray-110 enabled:active:text-gray-110"}},eL={M:"gap-[4px] py-[4px] text-15-bold",S:"gap-[2px] py-[2px] text-13-bold"},eI={M:"h-[16px] w-[16px]",S:"h-[14px] w-[14px]"},ez=(0,d.memo)(function(e){let{variant:t,size:a,icon:n,children:r,className:s,...i}=e,c=ei()("shrink-0 [&_path]:fill-[currentColor]",eI[a]);return(0,l.jsxs)("button",{type:"button",...i,className:ei()("flex w-fit items-center justify-center",eL[a],Object.values(eF[t]).join(" "),s),children:["icon"===n&&(0,l.jsx)(eO.A,{className:c}),(0,l.jsx)("span",{className:"text-left",children:r}),"arrow"===n&&(0,l.jsx)(eE.A,{className:c})]})}),eU=(0,d.createContext)({size:"L",type:"split"}),eB=(0,d.memo)(function(e){let{size:t,type:a="split",relative:n=!1,isHideSafeInsetArea:r=!1,className:s,children:i,...c}=e;return(0,l.jsx)(eU.Provider,{value:{size:t,type:a},children:(0,l.jsxs)("div",{...c,className:ei()(!n&&"fixed bottom-0 left-0 z-50 w-full",s),children:[(0,l.jsx)("div",{className:ei()("pointer-events-none h-[26px] w-full touch-none",{"bg-gradient-to-t from-mono-100 to-mono-100/0":"L"===t,hidden:"M"===t})}),(0,l.jsx)("div",{className:ei()("flex px-4",{"pb-[max(env(safe-area-inset-bottom),_16px)]":!r,"bg-mono-100":"L"===t,"flex-col items-center gap-4":"full"===a,"flex-row gap-2":"full"!==a}),children:i})]})})}),eW={M:"min-w-[100px] max-w-[115px]",L:"min-w-[100px] max-w-[132px]"},eY=Object.assign(eB,{PrimaryButton:function(e){let{variant:t="primary",className:a,...n}=e,{size:r,type:s}=(0,d.useContext)(eU);return"splitEqual"===s?(0,l.jsx)("div",{className:"flex min-w-0 flex-1",children:(0,l.jsx)(eT,{...n,variant:t,size:r,className:ei()("w-full",a)})}):(0,l.jsx)(eT,{...n,variant:t,size:r,className:ei()("full"===s?"w-full":"flex-1",a)})},SecondaryButton:function(e){let{variant:t="secondary",className:a,...n}=e,{size:r,type:s}=(0,d.useContext)(eU);return(0,l.jsx)("div",{className:ei()("flex","splitEqual"===s?"min-w-0 flex-1":ei()("shrink-0",eW[r])),children:(0,l.jsx)(eT,{...n,variant:t,size:r,className:ei()("w-full",a)})})},SubTextButton:function(e){let{variant:t="textPurple",icon:a,className:n,...r}=e;return(0,l.jsx)(ez,{...r,variant:t,size:"M",icon:a,className:n})}}),eV=function(e){let{type:t="Black",className:a,ref:n,...r}=e;return(0,l.jsx)("div",{ref:n,className:ei()("absolute inset-0",{"bg-mono-00 opacity-50":"Black"===t,"bg-mono-100 opacity-80":"White"===t},a),...r})};var eK=a(45838);let eG=()=>!!(window.document&&window.document.createElement),eX=e=>{let{onClick:t}=e;return(0,l.jsx)("button",{type:"button",className:"absolute right-[20px] top-[20px] z-10 h-[16px] w-[16px]",onClick:t,children:(0,l.jsx)(eK.A,{name:"IcCloseOutline",className:"h-[16px] w-[16px] [&>path]:fill-gray-050"})})},eH=e=>{let{isOpen:t,onClose:a,root:n,buttons:r,buttonLayout:s,revealClose:i=!1,closeOnBackdrop:c=!1,closeOnEsc:o=!1,children:p}
1=e,u=(0,d.useRef)(null),[x,m]=function(e){let[t,a]=(0,d.useState)(()=>e.open?"open":"closed");return(0,d.useEffect)(()=>{a(t=>t===(e.open?"open":"closed")?t:e.open?"opening":"closing")},[e.open]),[t,a]}({open:t}),g=(0,d.useRef)(eG()?document.createElement("div"):null);(0,eM.H_)({isDisabled:!t});let h=(0,d.useCallback)(e=>{"Escape"===e.key&&o&&a()},[o,a]);if((0,d.useEffect)(()=>{eG()&&!g.current&&(g.current=document.createElement("div"))},[g]),(0,d.useEffect)(()=>{if(!eG()||!(g.current instanceof HTMLElement))return;let e=null!=n?n:document.body,t=g.current;return t.setAttribute("data-grinda-popup-portal",""),e.appendChild(t),()=>{e.removeChild(t)}},[n]),(0,d.useEffect)(()=>{if(eG())return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[h]),(0,eD.E)(()=>{let e,t=u.current,a={easing:"ease-in-out",duration:200};if(["closing","opening"].includes(x))return"closing"===x&&(null==(e=null==t?void 0:t.animate([{transform:"scale(1)",opacity:1},{transform:"scale(0.9)",opacity:0}],a))||e.addEventListener("finish",()=>{(0,eP.flushSync)(()=>{m("closed")})})),"opening"===x&&(null==(e=null==t?void 0:t.animate([{transform:"scale(0.9)",opacity:0}
1,{transform:"scale(1)",opacity:1}],a))||e.addEventListener("finish",()=>{(0,eP.flushSync)(()=>{m("open")})})),()=>{null==e||e.cancel()}},[x]),"closed"===x||!g.current)return null;let f=function e(t){return d.Children.toArray(t).some(t=>{var a;return!!(0,d.isValidElement)(t)&&((null==(a=t.type)?void 0:a.displayName)==="PopupImageArea"||e(t.props.children))})}(p),{title:v,content:b}=function(e){let t=[],a=[];return d.Children.toArray(e).forEach(e=>{var n;((0,d.isValidElement)(e)&&(null==(n=e.type)?void 0:n.displayName)==="PopupTitle"?t:a).push(e)}),{title:t,content:a}}(p),y=void 0!==r&&r.length>0,w=y&&r.some(e=>"text"===e.variant),N=y?r.filter(e=>"text"!==e.variant).length:0;return(0,eP.createPortal)((0,l.jsxs)("div",{className:"fixed inset-0 z-modal flex items-center justify-center",children:[(0,l.jsx)(eV,{type:"Black",onMouseDown:c?a:void 0}),(0,l.jsxs)("div",{className:"relative z-[1] mx-[20px] flex max-h-[560px] min-h-[201px] w-full min-w-[280px] max-w-[520px] flex-col rounded-[32px] bg-mono-100",ref:u,children:[i&&(0,l.jsx)(eX,{onClick:a}),p&&(0,l.jsxs)("div",{className:ei()("flex min-h-0 flex-1 flex-col pt-[42px]",{"gap-[20px]":f,"gap-[8px]":!f}),children:[v,b.length>0&&(0,l.jsx)("div",{className:ei()("flex min-h-0 flex-1 flex-col overflow-y-auto overflow-x-hidden scrollbar-hide",{"gap-[20px]":f,"gap-[8px]":!f}),children:b})]}),y&&(0,l.jsx)("div",{className:"shrink-0 pt-[42px]",children:(0,l.jsx)(eY,{size:"M",type:null!=s?s:!w&&N>=2?"split":"full",relative:!0,children:r.map((e,t)=>{var a;let n="".concat(null!=(a=e.variant)?a:"primary","-").concat(t);return"secondary"===e.variant?(0,l.jsx)(eY.SecondaryButton,{onClick:e.onClick,disabled:e.disabled,children:e.label},n):"text"===e.variant?(0,l.jsx)(eY.SubTextButton,{onClick:e.onClick,disabled:e.disabled,children:e.label},n):(0,l.jsx)(eY.PrimaryButton,{onClick:e.onClick,disabled:e.disabled,children:e.label},n)})})})]})]}),g.current)},eQ=e=>{let{children:t,className:a}=e;return(0,l.jsx)("h2",{className:ei()(a,"shrink-0 whitespace-pre-wrap px-5 text-center text-20-bold text-gray-110"),children:t})},eJ=e=>{let{children:t,className:a}=e;return(0,l.jsx)("div",{className:ei()(a,"min-h-[100px] w-full shrink-0 px-5"),children:t})};eQ.displayName="PopupTitle",eJ.displayName="PopupImageArea",eH.Title=eQ,eH.BodyText=e=>{let{children:t,className:a}=e;return(0,l.jsx)("div",{className:ei()(a,"whitespace-pre-wrap px-5 text-center text-15-regular text-gray-090"),children:t})},eH.ImageArea=eJ;let e$=e=>{let{isOpen:t,onConnect:a,onExit:n}=e;return t?(0,l.jsx)(eH,{isOpen:t,onClose:n,buttonLayout:"splitEqual",buttons:[{label:"닫기",variant:"secondary",onClick:n},{label:"연결하기",variant:"primary",onClick:a}],children:(0,l.jsxs)(eH.Title,{children:["예측을 완료하려면","\n","자산 연결이 필요해요"]})}):null},eZ=e=>{let{isOpen:t,roundDate:a,choiceSeq:r,onClose:s}=e,i=x(),c=((e,t)=>t?e.copy.submittedChoiceLabels[E.AE[t]]:"")(i,null!=r?r:void 0),o=L(a);return(0,l.jsx)(e_,{isOpen:t,imageSrc:n.k.Iic.signCheck,imageWidth:48,imageHeight:48,contentTopClassName:"pt-[252px]",titleTopClassName:"mt-[16px]",descriptionTopClassName:"mt-[8px]",titleClassName:"text-20-bold text-gray-110",descriptionClassName:"text-15-regular text-gray-060",title:c?"‘".concat(c,"’를 선택했어요"):"예측을 완료했어요",description:i.copy.predictionCompleteDescription(o),primaryLabel:"확인",onPrimaryClick:s})},e0={up:{enabledBgClassName:"bg-red-010",enabledTextClassName:"text-red-060",interactiveBgClassName:"pc-hover:enabled:hover:bg-red-020 active:bg-red-020",focusedBgClassName:"bg-red-020",focusedTextClassName:"text-red-070",pressedBorderClassName:"border-red-060"},down:{enabledBgClassName:"bg-aqua-010",enabledTextClassName:"text-aqua-070",interactiveBgClassName:"pc-hover:enabled:hover:bg-aqua-020 active:bg-aqua-020",focusedBgClassName:"bg-aqua-020",focusedTextClassName:"text-aqua-080",pressedBorderClassName:"border-aqua-070"}},e1=e=>{let{choiceSeq:t,selected:a,disabled:n,onClick:r}=e,s=x(),i=E.AE[t],c=e0[i],o=a?"pressed":n?"disabled":"enabled",d="disabled"===o,p=d?"up"===i?s.assets.choiceIcons.upDisabled:s.assets.choiceIcons.downDisabled:"up"===i?s.assets.choiceIcons.up:s.assets.choiceIcons.down;return(0,l.jsxs)("button",{type:"button",disabled:n,"aria-pressed":a,onClick:r,className:ei()("flex h-[190px] w-[150px] shrink-0 flex-col items-center gap-[24px] rounded-[12px] border-2 border-solid py-[44px]","transition-colors duration-200 ease-out motion-reduce:transition-none","enabled"===o&&["border-transparent focus-visible:outline-none",c.enabledBgClassName,c.interactiveBgClassName],"pressed"===o&&[c.focusedBgClassName,c.pressedBorderClassName],d&&"border-transparent bg-gray-005"),children:[(0,l.jsx)("span",{className:"relative h-[60px] w-[60px] shrink-0",children:(0,l.jsx)(eo(),{src:p,width:60,height:60,alt:"",className:"h-[60px] w-[60px]"})}),(0,l.jsx)("span",{className:ei()("text-center text-[16px] font-[600] leading-[22px]","transition-colors duration-200 ease-out motion-reduce:transition-none",d?"text-gray-040":"pressed"===o?c.focusedTextClassName:c.enabledTextClassName),children:s.copy.choiceButtonLabels[i]})]})},e2=e=>{let{selectedChoiceSeq:t,disabled:a,onSelect:n}=e;return(0,l.jsxs)("section",{className:"".concat(g.horizontalPaddingClassName," flex flex-col gap-[32px] bg-white pb-[40px]"),children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-[20px]",children:[(0,l.jsx)(e1,{choiceSeq:E.ap.UP,selected:t===E.ap.UP,disabled:a,onClick:()=>n(E.ap.UP)}),(0,l.jsx)(e1,{choiceSeq:E.ap.DOWN,selected:t===E.ap.DOWN,disabled:a,onClick:()=>n(E.ap.DOWN)})]}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-[4px] text-center text-gray-040 text-[13px] font-[400] leading-[18px]",children:[(0,l.jsx)("p",{children:"만 19세 이상 자산 연결한 고객님만 예측 완료 가능해요."}),(0,l.jsx)("p",{children:"자세한 내용은 이벤트 유의사항을 꼭 확인해주세요."})]})]})},e6=e=>{let{eventPeriod:t,predictRound:a,baseRound:n}=e,r=x(),s=null==n?void 0:n.basePrice,i=Y(s),c=(null==i?void 0:i.direction)==="DOWN"?"text-blue-060":(null==i?void 0:i.direction)==="FLAT"?"text-gray-060":"text-red-060",o=z(null==s?void 0:s.date),d=r.copy.instrumentLabel;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("section",{className:"".concat(g.horizontalPaddingClassName," flex flex-col gap-[8px] bg-white pb-[32px] pt-[16px]"),children:[(0,l.jsx)("h1",{className:"text-gray-110 whitespace-pre-line text-[24px] font-[600] leading-[32px]",children:r.copy.introTitle({predictDateText:I(null==a?void 0:a.roun
1dDate),maxChallengeRewardText:(0,O.X)(r.maxChallengeRewardAmount),maxChallengeRewardManText:V(r.maxChallengeRewardAmount)})}),t&&(0,l.jsx)("p",{className:"text-findaGray-40 text-[16px] font-[400] leading-[22px]",children:r.copy.participationPeriod(t)})]}),(0,l.jsxs)("section",{className:"".concat(g.horizontalPaddingClassName," flex items-start gap-[8px] bg-white pb-[40px]"),children:[r.assets.instrumentIcon&&(0,l.jsx)("span",{className:"flex h-[42px] w-[42px] shrink-0 items-center justify-center rounded-full bg-gray-005",children:(0,l.jsx)(eo(),{src:r.assets.instrumentIcon,width:24,height:16,alt:"",className:"h-[16px] w-[24px] rounded-[1px] object-cover"})}),(0,l.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-[4px]",children:[(0,l.jsxs)("div",{className:"flex items-center gap-[6px]",children:[(0,l.jsx)("span",{className:"text-gray-090 text-[16px] font-[600] leading-[22px]",children:d}),o&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"text-gray-060 text-[13px] font-[400] leading-[18px]",children:"|"}),(0,l.jsxs)("span",{className:"text-gray-060 text-[13px] font-[400] leading-[18px]",children:[o,r.copy.basePriceDateSuffix?" ".concat(r.copy.basePriceDateSuffix):""]})]})]}),(0,l.jsxs)("div",{className:"flex items-center gap-[4px]",children:[(0,l.jsx)("span",{className:"text-gray-110 text-[20px] font-[600] leading-[26px]",children:B(r,null==s?void 0:s.price)}),i&&(0,l.jsx)("span",{className:"".concat(c," text-[16px] font-[400] leading-[22px]"),children:i.text})]})]})]})]})};var e4=a(57063),e5=a(72344),e8=a(73949),e3=a.n(e8);let e7={title:"내일 예측 이벤트가 오픈되면 알려드릴까요?",subText:"아니요를 선택하면 일주일 동안 볼 수 없어요.",allAgreement:"전체 동의",decline:"아니요",agree:"네, 알려주세요"},e9=e=>{let{className:t}=e;return(0,l.jsx)("span",{className:ei()("text-gray-050 shrink-0",t),children:"(선택)"})},te=()=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",className:"shrink-0",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.195426 0.195262C-0.0649247 0.455612 -0.0649247 0.877722 0.195426 1.13807L4.72402 5.66667L0.195426 10.1953C-0.0649247 10.4556 -0.0649247 10.8777 0.195426 11.1381C0.455775 11.3984 0.877885 11.3984 1.13823 11.1381L6.13823 6.13807C6.39858 5.87772 6.39858 5.45561 6.13823 5.19526L1.13823 0.195262C0.877885 -0.0650874 0.455775 -0.0650874 0.195426 0.195262Z",fill:"#A0A7C0"})}),tt=e=>{let{group:t,isChecked:a,isExpanded:n,onToggleCheck:r,onToggleExpand:s}=e;return(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)("div",{className:"flex w-full items-center gap-[8px] py-[8px]",children:[(0,l.jsxs)("button",{type:"button",className:"text-system-15 flex min-w-0 flex-1 cursor-pointer items-center gap-[8px] text-left leading-[1.35] tracking-[-0.15px]",onClick:r,"aria-pressed":a,children:[(0,l.jsx)(e5.A,{variant:"secondary",type:"Control",isChecked:a}),(0,l.jsxs)("span",{className:"flex min-w-0 flex-1 items-center gap-[2px]",children:[(0,l.jsx)("span",{className:"text-gray-090",children:t.name}),!t.required&&(0,l.jsx)(e9,{})]})]}),(0,l.jsx)("button",{type:"button",className:"shrink-0 cursor-pointer",onClick:s,"aria-expanded":n,"aria-label":"".concat(t.name," 세부 약관"),children:(0,l.jsx)(eg.A,{name:"IcAccordionArrowOutline",width:20,height:20,className:ei()("text-gray-050 duration-240 transition-transform motion-reduce:transition-none",n&&"rotate-180")})})]}),(0,l.jsx)("div",{className:ei()("duration-240 grid transition-[grid-template-rows] ease-out motion-reduce:transition-none",n?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:(0,l.jsx)("div",{className:"overflow-hidden",children:(0,l.jsx)("div",{className:"flex flex-col pb-[8px]",children:t.agreements.map(e=>(0,l.jsxs)(e3(),{href:"".concat("https://finda.co.kr","/terms/").concat(e.docUrl),target:"_blank",rel:"noreferrer",className:"flex w-full items-center gap-[8px] py-[4px] pl-[32px]",children:[(0,l.jsxs)("span",{className:"text-system-13 flex min-w-0 flex-1 items-center gap-[2px] leading-[1.35] tracking-[-0.13px]",children:[(0,l.jsx)("span",{className:"text-gray-070 truncate",children:e.name}),!e.required&&(0,l.jsx)(e9,{})]}),(0,l.jsx)(te,{})]},e.id))})})})]})},ta=e=>{let{isOpen:t,isPending:a,agreementGroups:n,onAgree:r,onClose:s}=e,{marketing:i,storageKeys:c,tracking:o}=x(),{allAgreements:p,visibleGroups:u,visibleAgreements:m}=P(n),[g,h]=(0,d.useState)({}),[f,v]=(0,d.useState)({});(0,d.useEffect)(()=>{let{allAgreements:e}=P(n);h(Object.fromEntries(e.map(e=>[e.id,!0===e.agreed])))},[n]),(0,d.useEffect)(()=>{t&&0!==m.length&&M.A.eventTracking({event:o.marketingAgreementView})},[t,o.marketingAgreementView,m.length]);let b=e=>S(e,g),y=b(m),w=(e,t)=>{h(a=>({...a,...Object.fromEntries(e.map(e=>[e.id,t]))}))},N=e=>{let t="agree"===e?g:{};M.A.eventTracking({event:o.marketingAgreementClick,properties:{click_button:e,mkt_agree:S(p.filter(e=>!A(e)),t)?"Y":"N",mkt_agree_info:S(p.filter(A),t)?"Y":"N"}})};return 0===m.length?null:(0,l.jsxs)(e4.A,{isOpen:t,onClose:s,detent:"content-height",children:[(0,l.jsxs)(e4.A.Container,{children:[(0,l.jsx)(e4.A.Grabber,{}),(0,l.jsxs)(e4.A.Content,{children:[(0,l.jsxs)("div",{className:"flex flex-col gap-[8px] pb-[20px]",children:[(0,l.jsx)("p",{className:"text-20-bold text-gray-110 leading-[135%] tracking-[-0.1px]",children:e7.title}),(0,l.jsx)("p",{className:"text-15-regular text-gray-070 leading-[1.35] tracking-[-0.15px]",children:e7.subText})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-[16px] pb-[8px]",children:[(0,l.jsx)("div",{className:"flex w-full items-center gap-[8px]",children:(0,l.jsxs)("button",{type:"button",className:"text-system-17 text-gray-110 flex cursor-pointer items-center gap-[8px] text-left leading-[135%] tracking-[-0.17px]",onClick:()=>w(m,!y),"aria-pressed":y,children:[(0,l.jsx)(e5.A,{variant:"primary",type:"Control",isChecked:y}),(0,l.jsx)("span",{children:e7.allAgreement})]})}),(0,l.jsx)("div",{className:"flex flex-col",children:u.map(e=>(0,l.jsx)(tt,{group:e,isChecked:b(e.agreements),isExpanded:!!f[e.name],onToggleCheck:()=>w(e.agreements,!b(e.agreements)),onToggleExpand:()=>v(t=>({...t,[e.name]:!t[e.name]}))},e.name))})]})]}),(0,l.jsx)("div",{className:"mt-[-14px]",children:(0,l.jsxs)(ej.A,{size:"S",sheetType:"split",relative:!0,children:[(0,l.jsx)(ej.A.SecondaryButton,{variant:"secondary",size:"BOTTOMFIXED-M",disabled:a,onClick:()=>{var e;N("disagree"),e=i.declineSuppressDays,_(c.marketingSheetSuppressUntil,(0,j.A)().add(e,"day").toISOString()),s()},children:e7.decline}),(0,l.jsx)(ej.A.PrimaryButton,{variant:"primary",size:"FULL",disabled:!y||a,className:ei()(!y&&"[&&]:disabled:!bg-gray-020 [&&]:disabled:!text-gray-040"),onClick:()=>{N("agree"),r(m.map(e=>({termsId:e.id,agree:!0})))},children:e7.agree})]})})]}),(0,l.jsx)(e4.A.Backdrop,{onTap:s})]})};var tn=a(93061),tr=a(5309);let ts=()=>{var e,t,a,r;let s=(0,tn.A)(),{userName:p}=(0,tr.A)(),u=x(),m=(e=>{let t,a=x();return(0,c.I)({...(t=a.key,(0,i.j)({queryKey:["pcs","campaign","forecast","current",t],queryFn:()=>o.A.getInstance().get("/pcs/campaign/v1/forecast/current"),select:e=>{let{data:t}=e;return t},refetchOnWindowFocus:!1,throwOnError:!1})),...e})})({enabled:!0===s}),k=(0,T.O)({enabled:!0===s}),A=m.data,S=A?(e=>{var t,a;if("NONE"===e.eventStatus)return{state:"ended",activeRound:null};if("BEFORE_OPEN"===e.eventStatus)return{state:"beforeOpen",activeRound:null};if(e.currentRound){let t=null==(a=e.currentRound.mySubmission)?void 0:a.choiceSeq;return t?{state:"submitted",activeRound:e.currentRound,submittedChoiceSeq:t}:{state:"open",activeRound:e.currentRound}}return"OPEN"===e.eventStatus&&(null==(t=e.previousRound)?void 0:t.mySubmission)&&!1===e.previousRound.graded?{state:"waitingSettlement",activeRound:e.previousRound,submittedChoiceSeq:e.previousRound.mySubmission.choiceSeq}:{state:"ended",activeRound:e.previousRound}})(A):null,O=A&&S?((e,t,a)=>{var n;let{activeRound:r}=a;if("beforeOpen"===a.state)return{title:"이벤트 오픈 전이에요",description:e.copy.beforeOpenDescription((e=>{if(null==e.eventStartTime||null==e.participationEndDate)return"";let t=z(e.eventStartTime),a=z(e.participationEndDate);return"".concat(t," ~ ").concat(a)})(t))};if("waitingSettlement"===a.state&&r)return{title:"".concat(L(r.roundDate)," 예측이 종료되었어요"),description:e.copy.waitingSettlementDescription};if("ended"===a.state)return{title:"이벤트가 종료되었어요",description:"다음 이벤트를 기다려 주세요."};let s=null!=(n=e.copy.choiceDescription)?n:"";return{title:"".concat(L(r.roundDate)," ").concat(r.instrumentName||e.copy.instrumentLabel,"가\n올라갈지 내려갈지 선택해주세요"),description:r.notice&&s?"".concat(r.notice,"\n").concat(s):r.notice||s}})(u,A,S):null,I=null!=(t=null==S?void 0:S.activeRound)?t:null,B=null==S?void 0:S.submittedChoiceSeq,W=(null==(e=k.data)?void 0:e.isConsented)===!0,Y=(e=>{var t,a;let{forecast:n,body:r,isMyDataConnected:s,refetchForecast:l}=e,i=(0,D.useRouter)(),{tracking:c}=x(),o=(0,H.n)({mutationFn:Q}),[p,u]=(0,d.useState)(null),[m,g]=(0,d.useState)(null),[h,f]=(0,d.useState)(!1),[v,b]=(0,d.useState)(!1),y=null!=(t=null==r?void 0:r.activeRound)?t:null,w=null==r?void 0:r.submittedChoiceSeq,N=null!=(a=null!=w?w:m)?a:p,j=!!w||!!m;(0,d.useEffect)(()=>{u(null),g(null)},[null==y?void 0:y.itemSeq]);let C=e=>{(null==n?void 0:n.campaignKey)&&y&&!j&&!o.isPending&&o.mutate({campaignKey:n.campaignKey,itemSeq:y.itemSeq,choiceSeq:e},{onSuccess:()=>{g(e),b(!0),l().catch(()=>void 0)},onError:e=>{var t;u(null),J.has(null!=(t=(e=>{var t,a,n,r,s,l;if(!(0,X.F0)(e))return;let i=null==(t=e.response)?void 0:t.data;return null!=(l=null!=(s=null!=(r=$(null==i?void 0:i.errorCode))?r:$(null==i||null==(a=i.data)?void 0:a.errorCode))?s:$(null==i?void 0:i.code))?l:$(null==i||null==(n=i.data)?void 0:n.code)})(e))?t:0)&&l().catch(()=>void 0)}})};return{visibleChoiceSeq:N,isMyDataRequiredPopupOpen:h,isPredictionCompletePopupOpen:v,hasCompletedPrediction:j,isSubmittingPrediction:o.isPending,selectPredictionChoice:e=>{if(!j&&!o.isPending){if(u(e),M.A.eventTracking({event:c.predictClick,properties:{selected_type:E.zA[e],predict_date:U(null==y?void 0:y.roundDate),is_mydata_connect:s?"Y":"N"}}),!s){var t,a;M.A.eventTracking({event:c.predictLockedView,properties:{reason:"mydata_not_connected",enter_path:String(null!=(a=null!=(t=i.query.enter_path)?t:i.query.enterPath)?a:"")}}),f(!0);return}C(e)}},cancelMyDataRequiredPopup:()=>{u(null),f(!1)},submitPrediction:C,closePredictionComplete:e=>{y&&N&&M.A.eventTracking({event:c.predictCompleteConfirmClick,properties:{predict_date:U(y.roundDate),selected_type:E.zA[N]}}),b(!1),e()}}})({forecast:A,body:S,isMyDataConnected:W,refetchForecast:m.refetch}),V=(e=>{let{forecast:t,refetchForecast:a,enabled:n}=e,r=(0,D.useRouter)(),s=(0,h.jE)(),l=x(),{getNow:p}=(e=>{let{data:t}=(0,c.I)({...(0,i.j)({queryKey:["pcs","common","server-time"],queryFn:async()=>({...(await o.A.getInstance().get("/pcs/common/v1/time")).data,receivedAt:Date.now()}),staleTime:1/0,throwOnError:!1}),...e}),a=t?j.A.tz(t.time).valueOf()-t.receivedAt:0,n=void 0!==t&&Number.isFinite(a);return{getNow:(0,d.useCallback)(()=>n?Date.now()+a:Date.now(),[n,a]),isServerAnchored:n}})({enabled:n});return(0,d.useEffect)(()=>
1{if(!n)return;let[e,t]=function(e,t){let a=q.get(e)||(t=>{e(t.detail)}),n=()=>{window.removeEventListener(R,a,void 0)};return[()=>{n(),window.addEventListener(R,a,void 0)},n]}(async()=>{s.invalidateQueries({queryKey:(0,T.D)().queryKey}),await a().catch(()=>void 0)});return e(),t},[n,s,a]),{startMyDataConnect:()=>{var e,a;M.A.eventTracking({event:l.tracking.myDataIntroView,properties:{enter_path:String(null!=(a=null!=(e=r.query.enter_path)?e:r.query.enterPath)?a:"")}}),M.A.startMyDataConnect({searchParams:{reference:l.myData.entryPoint,entryPoint:l.myData.entryPoint,completePageTitle:l.myData.completeTitle,completePageDescription:K(l,t,p()).replace(/\n/g,"\\n"),completePageCtaText:l.myData.completeCtaText,isRefinanceFlow:!1}})}}})({forecast:A,refetchForecast:m.refetch,enabled:!0===s}),ee=(e=>{var t;let{forecast:a,refetchForecast:n}=e,{storageKeys:r,tracking:s}=x(),[l,i]=(0,d.useState)(()=>(e=>{let t=C(e.lastSeenResultItemSeq);if(!t)return null;let a=Number(t);return Number.isFinite(a)?a:null})(r)),[c,o]=(0,d.useState)(null),p=(0,d.useRef)(null),u=null!=(t=null==a?void 0:a.lastResult)?t:null,m=null!==c,g=((e,t)=>!!e&&(null===t||e.itemSeq>t))(u,l)&&c!==(null==u?void 0:u.itemSeq);return(0,d.useEffect)(()=>{if(!a||!u||!g)return;o(u.itemSeq);let e=G(a);M.A.eventTracking({event:e?s.resultLastPopupView:s.resultPopupView,properties:e?{predict_result:u.correct?"success":"fail",total_point:a.totalRewardAmount,predict_date:U(u.roundDate)}:{predict_result:u.correct?"success":"fail",point_earned:((e,t)=>t.correct&&t.rewardAmount>0&&e.specialRewardAmount>0?t.rewardAmount+e.specialRewardAmount:t.rewardAmount)(a,u),predict_date:U(u.roundDate),is_bonus_winner:a.specialRewardAmount>0?"Y":"N"}})},[a,u,g,s]),(0,d.useEffect)(()=>{m&&(e=>(null==e?void 0:e.correct)===!0&&0===e.rewardAmount)(u)&&p.current!==u.itemSeq&&(p.current=u.itemSeq,n().catch(()=>void 0))},[m,n,u]),{resultPopup:u,isResultPopupOpen:m,shouldOpenResultPopup:g,isFinalResult:!!a&&G(a),closeResultPopup:()=>{var e;if(!a||!u)return;let t=G(a);M.A.eventTracking({event:t?s.resultLastPopupClick:s.resultPopupClick,properties:{predict_result:u.correct?"success":"fail",click_destination:t?"asset_home":"next_day_predict"}}),e=u.itemSeq,_(r.lastSeenResultItemSeq,String(e)),i(u.itemSeq),o(null),n().catch(()=>void 0),t&&M.A.goTo({page:Z.M.LOAN_MANAGE_TOTAL_ACCOUNTS})}}})({forecast:A,refetchForecast:m.refetch}),et=(e=>{var t,a,n;let{enabled:r,body:s,isBlockedByOtherPopup:l}=e,i=(0,h.jE)(),{marketing:c,storageKeys:o}=x(),[p,u]=(0,d.useState)(!1),[m,g]=(0,d.useState)([]),k=(0,d.useRef)(null),A=(0,d.useRef)(!1),S=(0,d.useRef)(""),D=(0,v.Bu)({alarmType:"MKT_AGREE_ALARM",enabled:r}),M=(0,w.J)({screenKey:c.termsScreenKey,enabled:!1}),q=(0,N.n)(),R=(0,b.a)({invalidateOnSuccess:!1}),T=null!=(n=null==s?void 0:s.activeRound)?n:null,E=null==s?void 0:s.submittedChoiceSeq,O=(null==s?void 0:s.state)==="submitted"||(null==s?void 0:s.state)==="waitingSettlement",F=q.isPending||R.isPending;(0,d.useEffect)(()=>()=>{k.current&&clearTimeout(k.current)},[]);let L=(0,d.useCallback)(async()=>{var e,t,a,n;if(p||k.current||A.current)return;if(A.current=!0,!(e=>{let t=C(e.marketingSheetSuppressUntil);return(!t||!!(0,j.A)().isAfter((0,j.A)(t)))&&C(e.marketingSheetShownDate)!==(0,j.A)().format("YYYY-MM-DD")})(o)){A.current=!1;return}let r=null!=(t=null==(e=M.data)?void 0:e.agreementGroups)?t:[];if(0===r.length){let e=await M.refetch().catch(()=>null);r=null!=(n=null==e||null==(a=e.data)?void 0:a.agreementGroups)?n:[]}let s=await Promise.all(r.flatMap(e=>e.agreements.flatMap(e=>e.docSeqKey?[e.docSeqKey]:[])).map(e=>i.ensureQueryData((0,y.zn)({docSeqKey:e})))).catch(()=>null);if(!s||!(P(r=((e,t)=>{let a=0;return e.map(e=>({...e,agreements:e.agreements.map(e=>{if(!e.docSeqKey)return e;let n=!!t[a];return a+=1,{...e,agreed:n}})}))})(r,s)).visibleAgreements.length>0)){A.current=!1;return}k.current=setTimeout(()=>{k.current=null,A.current=!1,g(r),_(o.marketingSheetShownDate,(0,j.A)().format("YYYY-MM-DD")),u(!0)},1e3)},[p,null==(t=M.data)?void 0:t.agreementGroups,M.refetch,i,o]);(0,d.useEffect)(()=>{var e;if(!O||l)return;let t=[null==s?void 0:s.state,null!=(e=null==T?void 0:T.itemSeq)?e:"none",null!=E?E:"none"].join(":");S.current!==t&&(S.current=t,L())},[null==T?void 0:T.itemSeq,null==s?void 0:s.state,l,O,L,E]);let I=()=>{u(!1)};return{agreementGroups:m,isAgreed:(null==(a=D.data)?void 0:a.value)===!0,isAgreeSuccess:D.isSuccess,isLoading:D.isLoading,isPending:F,isSheetOpen:p,agree:e=>{q.mutate(e,{onSuccess:()=>{(e=>{let t=new Set(e.flatMap(e=>{let{agree:t,termsId:a}=e;return t&&a?[a]:[]}));
1m.forEach(e=>e.agreements.forEach(e=>{let{id:a,docSeqKey:n}=e;n&&t.has(a)&&i.setQueryData((0,y.zn)({docSeqKey:n}).queryKey,!0)}))})(e),R.mutate({alarmType:"MKT_AGREE_ALARM",value:!0},{onSuccess:()=>{I(),f.o.success("".concat(c.agreedSnackbar).concat((0,j.A)().format("YYYY.MM.DD")))}})}})},close:I,openIfNeeded:L}})({enabled:!0===s,body:S,isBlockedByOtherPopup:Y.isPredictionCompletePopupOpen||ee.isResultPopupOpen||ee.shouldOpenResultPopup}),ea=A?null!=(a=null!=I?I:A.currentRound)?a:A.previousRound:null,en="v2"===u.layout,er=en?"bg-white":"bg-gray-010",el=A?(e=>{if(null==e.eventStartTime||null==e.participationEndDate)return"";let t=F(e.eventStartTime),a=F(e.participationEndDate);return"".concat(t.format("M월 D일"),"부터 ").concat(a.format("D일"),"까지")})(A):"",ei=(null==S?void 0:S.state)==="open",ec=(null==S?void 0:S.state)==="submitted"||(null==S?void 0:S.state)==="waitingSettlement"||Y.hasCompletedPrediction||Y.isSubmittingPrediction,eo=(null==S?void 0:S.state)==="ended";return((e=>{let{forecast:t,body:a,activeRound:n,persistedChoiceSeq:r,isMyDataConnected:s,isMarketingAgreed:l,isConsentInfoSuccess:i,isMarketingAgreeSuccess:c}=e,o=(0,D.useRouter)(),{tracking:p}=x(),u=(0,d.useRef)(""),m=(0,d.useRef)("");(0,d.useEffect)(()=>{var e,r,d,x,m,g,h;if(!t||!i||!c||(null==a?void 0:a.state)==="ended")return;let f=[null!=(d=t.campaignKey)?d:"none",null!=(m=null!=(x=null==(e=t.currentRound)?void 0:e.itemSeq)?x:null==(r=t.previousRound)?void 0:r.itemSeq)?m:"none",s?"Y":"N",l?"Y":"N"].join(":");u.current!==f&&(u.current=f,M.A.eventTracking({event:p.introView,properties:{is_mydata_connect:s?"Y":"N",enter_date:(0,j.A)().format("YYYY-MM-DD"),enter_path:String(null!=(h=null!=(g=o.query.enter_path)?g:o.query.enterPath)?h:""),user_has_predicted_today:(null==a?void 0:a.submittedChoiceSeq)?"Y":"N",marketing_agreement:l?"Y":"N",is_non_business_day:(null==n?void 0:n.notice)?"Y":"N"}}))},[null==n?void 0:n.notice,t,null==a?void 0:a.state,null==a?void 0:a.submittedChoiceSeq,i,c,l,s,o.query.enterPath,o.query.enter_path,p.introView]),(0,d.useEffect)(()=>{var e,t;if(!a||!n||!r||"submitted"!==a.state&&"waitingSettlement"!==a.state)return;let s="".concat(a.state,":").concat(n.itemSeq,":").concat(r);m.current!==s&&(m.current=s,M.A.eventTracking({event:p.resultWaitView,properties:{predict_date:U(n.roundDate),selected_type:E.zA[r],enter_path:String(null!=(t=null!=(e=o.query.enter_path)?e:o.query.enterPath)?t:"")}}))},[n,a,r,o.query.enterPath,o.query.enter_path,p.resultWaitView])})({forecast:A,body:S,activeRound:I,persistedChoiceSeq:B,isMyDataConnected:W,isMarketingAgreed:et.isAgreed,isConsentInfoSuccess:k.isSuccess,isMarketingAgreeSuccess:et.isAgreeSuccess}),!0!==s)?(0,l.jsx)(eS,{title:"앱에서만 참여할 수 있어요",description:"핀다 앱에서 다시 접속해주세요.",showHeader:!1}):m.isLoading||k.isLoading||et.isLoading?(0,l.jsx)(ey,{}):!m.isError&&A&&S&&O?(0,l.jsxs)(l.Fragment,{children:[eo?(0,l.jsx)(eS,{title:O.title,description:O.description,imageSrc:n.k.PromotionMyData.eventEndIcon}):(0,l.jsxs)("main",{className:"mx-auto min-h-screen ".concat(g.viewportMaxWidthClassName," ").concat(er," pb-[40px]"),children:[(0,l.jsx)(eh,{backgroundClassName:er}),en?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(e6,{eventPeriod:el,predictRound:null!=(r=null!=I?I:A.currentRound)?r:A.previousRound,baseRound:ea}),(0,l.jsx)(e2,{selectedChoiceSeq:Y.visibleChoiceSeq,disabled:!ei||ec,onSelect:Y.selectPredictionChoice}),(0,l.jsx)("div",{className:"h-[10px] w-full bg-gray-005"})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ef,{eventPeriod:el,eventRound:ea}),(0,l.jsx)(em,{bodyMessage:O,selectedChoiceSeq:Y.visibleChoiceSeq,disabled:!ei||ec,onSelect:Y.selectPredictionChoice})]}),(0,l.jsx)(es,{})]}),(0,l.jsx)(e$,{isOpen:Y.isMyDataRequiredPopupOpen,onConnect:()=>{V.startMyDataConnect(),Y.cancelMyDataRequiredPopup()},onExit:Y.cancelMyDataRequiredPopup}),(0,l.jsx)(eZ,{isOpen:Y.isPredictionCompletePopupOpen,roundDate:null==I?void 0:I.roundDate,choiceSeq:Y.visibleChoiceSeq,onClose:()=>Y.closePredictionComplete(et.openIfNeeded)}),(0,l.jsx)(ek,{isOpen:ee.isResultPopupOpen,isFinal:ee.isFinalResult,specialRewardAmount:A.specialRewardAmount,result:ee.resultPopup,userName:p,onClose:ee.closeResultPopup}),(0,l.jsx)(ta,{isOpen:et.isSheetOpen,isPending:et.isPending,agreementGroups:et.agreementGroups,onAgree:et.agree,onClose:et.close})]}):(0,l.jsx)(eS,{title:"이벤트 정보를 불러오지 못했어요",description:"잠시 후 다시 시도해주세요.",actionLabel:"다시 불러오기",onActionClick:()=>m.refetch()})},tl=e=>{let{campaign:t}=e;return(0,l.jsx)(u,{campaign:t,children:(0,l.jsx)(ts,{})})},ti={success:"성공",special:"성공(스페셜)",pending:"성공(적립중)",fail:"실패"},tc={variant:"success",userName:"핀다",rewardAmount:1500,specialRewardAmount:1e4},to=e=>Array.isArray(e)?e[0]:e,td=()=>{let e=x(),t=(0,D.useRouter)(),[a,n]=(0,d.useState)(null),[r,s]=(0,d.useState)(!0);(0,d.useEffect)(()=>
1{if(!t.isReady)return;let e=to(t.query.variant),a=to(t.query.final),r=to(t.query.name);n({variant:(e=>void 0!==e&&e in ti)(e)?e:tc.variant,isFinal:"1"===a||"true"===a,userName:null!=r?r:tc.userName,roundDate:(e=>{if(!e)return(0,j.A)().valueOf();let t=(0,j.A)(e);return t.isValid()?t.valueOf():(0,j.A)().valueOf()})(to(t.query.date))}),s(!0)},[t.isReady,t.query]);let i=e=>{t.replace({pathname:t.pathname,query:{...t.query,...e}},void 0,{shallow:!0}).catch(()=>void 0)};if(!a)return null;let c=((e,t,a)=>({roundDate:a,itemSeq:0,gradedAt:a,instrumentCode:e.key.toUpperCase(),instrumentName:e.copy.resultInstrumentName,result:"UP",winningChoiceSeqs:[E.ap.UP],basePrice:2500.12,basePriceDate:a,closePrice:2530.45,mySubmission:{choiceSeq:E.ap.UP,submitTime:a},correct:"fail"!==t,rewardAmount:"pending"===t?0:tc.rewardAmount}))(e,a.variant,a.roundDate),o="special"===a.variant?tc.specialRewardAmount:0;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("main",{className:"mx-auto flex min-h-screen ".concat(g.viewportMaxWidthClassName," flex-col gap-[16px] bg-gray-010 px-[20px] py-[24px]"),children:[(0,l.jsxs)("h1",{className:"text-20-bold text-gray-110",children:[e.copy.resultInstrumentName," 예측 결과 화면 프리뷰"]}),(0,l.jsxs)("p",{className:"text-15-regular text-gray-060",children:["실제 이벤트 상태와 무관하게 결과 화면을 강제로 노출합니다.",(0,l.jsx)("br",{}),"로티가 매번 새로 마운트되는지 확인하려면 CTA로 닫은 뒤 다시 열어보세요."]}),(0,l.jsxs)("section",{className:"flex flex-col gap-[8px]",children:[(0,l.jsx)("h2",{className:"text-15-bold text-gray-110",children:"결과 종류"}),(0,l.jsx)("div",{className:"flex flex-wrap gap-[8px]",children:Object.entries(ti).map(e=>{let[t,n]=e;return(0,l.jsx)(eA.A,{variant:a.variant===t?"primary":"tertiaryGray",size:"S",onClick:()=>i({variant:t}),children:n},t)})})]}),(0,l.jsxs)("section",{className:"flex flex-col gap-[8px]",children:[(0,l.jsx)("h2",{className:"text-15-bold text-gray-110",children:"CTA"}),(0,l.jsxs)("div",{className:"flex flex-wrap gap-[8px]",children:[(0,l.jsx)(eA.A,{variant:a.isFinal?"tertiaryGray":"primary",size:"S",onClick:()=>i({final:"0"}),children:"행사 기간 중"}),(0,l.jsx)(eA.A,{variant:a.isFinal?"primary":"tertiaryGray",size:"S",onClick:()=>i({final:"1"}),children:"마지막 회차"})]})]}),(0,l.jsx)(eA.A,{variant:"secondary",size:"M",onClick:()=>s(!0),children:"결과 화면 다시 열기"})]}),(0,l.jsx)(ek,{isOpen:r,isFinal:a.isFinal,specialRewardAmount:o,result:c,userName:a.userName,onClose:()=>s(!1)})]})},tp=e=>{let{campaign:t}=e;return(0,l.jsx)(u,{campaign:t,children:(0,l.jsx)(td,{})})}},76651:(e,t,a)=>{"use strict";a.d(t,{D:()=>l,O:()=>i});var n=a(36142),r=a(8777),s=a(8620);let l=()=>(0,n.j)({queryKey:["consent","summary"],queryFn:()=>s.A.getInstance().get("/mydata-api/consent/summary",{params:{isCache:!0}}),select:e=>{let{data:t}=e;return t.data},staleTime:1/0}),i=e=>(0,r.I)({...l(),...e})},78482:(e,t,a)=>{"use strict";a.d(t,{J:()=>l});var n=a(8777),r=a(8620);let s=async e=>{let{screenKey:t}=e,{data:a}=await r.A.getInstance().get("/tms/v1/screen-group/screen-key/".concat(t));return a},l=e=>{let{screenKey:t,enabled:a=!0}=e;return(0,n.I)({queryKey:["agreement-group","screen-key",t],queryFn:()=>s({screenKey:t}),enabled:a})}},83411:(e,t,a)=>{"use strict";a.d(t,{OV:()=>d,u5:()=>o,zn:()=>c});var n=a(36142),r=a(8777),s=a(38877),l=a(8620);let i=async e=>{let{docSeqKey:t}=e,{data:a}=await l.A.getInstance().get("/tms/v1/agreement-content-user/is-agree",{params:{"doc-seq-key":t}});return a},c=e=>{let{docSeqKey:t,enabled:a=!0}=e;return(0,n.j)({queryKey:["agreement-group",t],queryFn:()=>i({docSeqKey:t}),enabled:a})},o=e=>{let{docSeqKey:t,enabled:a=!0}=e;return(0,r.I)({...c({docSeqKey:t,enabled:a})})},d=e=>{let{docSeqKeyList:t,enabled:a=!0}=e;return(0,s.E)({queries:t.map(e=>c({docSeqKey:e,enabled:a}))})}},89104:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>b});var n=a(88233),r=a(51733),s=a(43222),l=a(12584),i=a.n(l);let c=(0,r.memo)(function(e){let{type:t,children:a,className:r,ref:l,...c}=e;if("single"===t){let{collapsible:e,defaultValue:t,value:o,onValueChange:d,...p}=c;return(0,n.jsx)(s.bL,{ref:l,type:"single",collapsible:e,defaultValue:t,value:o,onValueChange:d,className:i()("w-full",r),...p,children:a})}let{defaultValue:o,value:d,onValueChange:p,...u}=c;return(0,n.jsx)(s.bL,{ref:l,type:"multiple",defaultValue:o,value:d,onValueChange:p,className:i()("w-full",r),...u,children:a})});var o=a(49647),d=a.n(o);let p=(0,r.memo)(function(e){let{children:t,className:a,ref:r,...l}=e;return(0,n.jsx)(s.UC,{ref:r,className:i()(d().content,a),...l,children:(0,n.jsx)("div",{className:"px-[20px] pb-[28px] pt-[20px] text-findaGray-50",children:t})})}),u=(0,r.createContext)(null),x={white:"bg-mono-100",gray:"bg-[#F6F6F9]"},m=(0,r.memo)(function(e){let{value:t,variant:a="white",size:l="l",disabled:c=!1,children:o,className:d,ref:p,...m}=e,g=(0,r.useMemo)(()=>({variant:a,size:l}),[a,l]);return(0,n.jsx)(u.Provider,{value:g,children:(0,n.jsx)(s.q7,{ref:p,value:t,disabled:c,
1className:i()("overflow-hidden",x[a],d),...m,children:o})})});var g=a(77221);let h={l:"py-[16px] px-[20px] text-[17px] font-[600]",m:"py-[12px] px-[16px] text-[15px] font-[600]"},f={l:20,m:18},v=(0,r.memo)(function(e){let{children:t,className:a,ref:l,...c}=e,{size:o}=(()=>{let e=(0,r.useContext)(u);if(!e)throw Error("AccordionItem 컴포넌트 내부에서 사용해주세요.");return e})();return(0,n.jsx)(s.Y9,{className:"flex",children:(0,n.jsxs)(s.l9,{ref:l,className:i()("flex flex-1 items-center justify-between","text-[#444857]","transition-colors","focus:outline-none","disabled:cursor-not-allowed disabled:opacity-50","group",h[o],a),...c,children:[(0,n.jsx)("span",{className:"text-left",children:t}),(0,n.jsx)(g.A,{name:"IcAccordionArrowOutline",width:f[o],height:f[o],className:i()("ml-[16px] shrink-0","group-data-[state=open]:rotate-180")})]})})});c.Item=m,c.Trigger=v,c.Content=p;let b=c},93061:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var n=a(3287),r=a(30127);function s(){return(0,r.G)(n.rx)}},95026:(e,t,a)=>{"use strict";a.d(t,{F:()=>r,X:()=>s});let n=["","천","만","억","조","경"];function r(e){if(e<1e4){let t=Math.floor(Math.log10(e)/3);return"".concat(e/1e3**t).concat(n[t])}let t=Math.floor(Math.log10(e)/4);return"".concat(e/1e4**t).concat(n[t+1])}function s(e){let t=String(e),a=t.indexOf("."),n=/(\d)(?=(\d\d\d)+(?!\d))/g;return a>-1?t.slice(0,a).replace(n,"$1,")+t.slice(a):t.replace(n,"$1,")}}}]);

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.