PageSourceSearch

https://crediview.co.kr/_next/static/chunks/28206-6281edbb32d2e64e.js

js crediview.co.kr collected 2026-10-08 23:40:17 UTC 8,791 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[28206],{26943:(e,r,t)=>{t.d(r,{wx:()=>c,qn:()=>a,r3:()=>o,uf:()=>l,it:()=>s,Wg:()=>u,$n:()=>i});var n=t(79794);let a=async e=>await (0,n.Ib)({path:"G_PAYMENT_0001",body:e}).then(e=>e.resultData),o=async e=>await (0,n.Ib)({path:"G_PAYMENT_0002",body:e}).then(e=>e?.resultData),l=async e=>await (0,n.Ib)({path:"P_PAYMENT_0001",body:e}),c=async e=>await (0,n.Ib)({path:"P_PAYMENT_0006",body:e}),s=async e=>await (0,n.Ib)({path:"P_PAYMENT_0007",body:e}),i=async e=>await (0,n.Ib)({path:"P_SETTLEMENT_0001",body:e}),u=async e=>await (0,n.Ib)({path:"P_PAYMENT_0009",body:e})},35985:(e,r,t)=>{t.d(r,{bo:()=>n.bo,fz:()=>l,Jf:()=>n.Jf});var n=t(38320),a=t(41535),o=t(74553);let l=(0,a.v)(e=>({orderInfo:o.jf,setOrderInfo:r=>e(e=>({orderInfo:{...e.orderInfo,...r}})),resetOrderInfo:()=>e(()=>({orderInfo:o.jf}))}))},38320:(e,r,t)=>{t.d(r,{Jf:()=>m,bo:()=>C});var n=t(95155),a=t(12115),o=t(35867),l=t(41535),c=t(53718);let s={idOrd:null,ownerKey:null,prdInfo:null,partner:null,order:{payMethod:"CARD",curCoupon:null}},i={payInfo:null},u={step:c.UT.order,orderTerms:[],snapshot:s,complete:i},d=()=>(0,o.y)(e=>({...u,setStep:r=>e({step:r}),setOrderTerms:r=>e({orderTerms:r}),setSnapshot:r=>e(e=>({snapshot:{...e.snapshot,...r}})),setOrderDraft:r=>e(e=>({snapshot:{...e.snapshot,order:{...e.snapshot.order,...r}}})),setComplete:r=>e(e=>({complete:{...e.complete,...r}})),resetComplete:()=>e({complete:i}),resetSnapshot:()=>e({snapshot:s}),reset:()=>e(u)})),E=(0,a.createContext)(void 0),C=({children:e})=>{let[r]=(0,a.useState)(d);return(0,n.jsx)(E.Provider,{value:r,children:e})};function m(e){let r=(0,a.useContext)(E);if(!r)throw Error("usePaymentStore must be used within PaymentStoreProvider");return(0,l.P)(r,e)}},48457:(e,r,t)=>{t.d(r,{s:()=>E});var n=t(95155),a=t(90980),o=t(49668),l=t(12115),c=t(35985),s=t(26943),i=t(83278),u=t(38028),d=t(1506);let E=({Button:e,prevOnClick:r,afterOnClick:t,handleComplete:E,handleCashComplete:C})=>{let{setToast:m}=(0,d.EM)(),[p,h]=(0,l.useState)(null),[f,P]=(0,l.useState)(null),[T,D]=(0,l.useState)(!1),A=(0,l.useRef)(null),y=(0,l.useRef)(!1),I=(0,l.useRef)(null),N=(0,l.useRef)(null),R=(0,l.useRef)(()=>{});(0,l.useEffect)(()=>{I.current=p},[p]),(0,l.useEffect)(()=>{N.current=f},[f]);let _=(0,l.useCallback)(async e=>{if(!e||y.current)return;y.current=!0;let r=0,t=async()=>{r+=1;try{let r=await (0,s.r3)({idPayAttempt:e}),t=r?.pay_status_info;if(t){let e=t.status_attempt;if(e===i.G1.COMPLETE||e===i.G1.WAITING){D(!1),y.current=!1,A.current&&(clearInterval(A.current),A.current=null);try{I.current?.close()}catch{m({message:"결제창을 자동으로 닫지 못했습니다. 직접 닫아 주세요."})}finally{I.current=null,h(null)}P(null),N.current=null,E&&E(t);return}}}catch{console.error("[douzonepay] payment status polling failed")}r<3?setTimeout(t,2e3):(y.current=!1,D(!1),m({message:"결제 결과를 확인하지 못했습니다. 결제가 완료되었다면 결제 내역에서 다시 확인해 주세요."}))};t()},[E,m]);(0,l.useEffect)(()=>{R.current=e=>{_(e)}},[_]);let w=(0,l.useCallback)(()=>{if(I.current&&!I.current.closed){try{I.current.close()}catch{m({message:"기존 결제창을 자동으로 닫지 못했습니다. 직접 닫아 주세요."})}I.current=null,h(null)}let e=c.fz.getState().orderInfo,r=(0,o.Go)(e);if(!r.ordr_idxx||!r.good_name||!r.good_mny)return void a.fF.alert({icon:"ErrorIcon",content:(0,n.jsx)("p",{className:"SOLText-desc",children:"결제 정보가 올바르지 않습니다. 다시 시도해 주세요."}),isDimmer:!0,closeOnDimmerClick:!1});let l=window.open("","POPWIN","width=600,height=750,scrollbars=no");if(!l)return void a.fF.alert({icon:"ErrorIcon",content:(0,n.jsx)("p",{className:"SOLText-desc",children:"팝업이 차단되었습니다. 브라우저 설정을 확인해 주세요."}),isDimmer:!0});I.current=l,N.current=r.ordr_idxx,D(!0),h(l),P(r.ordr_idxx);let s=l.document;s.body.innerHTML="";let i=s.createElement("form");for(let e in i.acceptCharset="euc-kr",i.method="POST",i.action="https://pay.duzonpay.com:9143/Pay/B_duzonpay_V2.jsp",r){let t=s.createElement("input");t.type="hidden",t.id=e,t.name=e,t.value=String(r[e]??""),i.appendChild(t)}t&&t();let u=s.createElement("iframe");u.name="POPWIN",u.width="100%",u.height="100%",u.style.border="none",u.style.overflow="hidden",s.body.appendChild(u),i.target="POPWIN",s.body.appendChild(i),i.submit()},[t,m]),S=(0,l.useCallback)(async()=>{let e=!0;if(r&&(e=await r()),e){if((0,u.nr)())return void a.fF.confirm({icon:"InfoIcon",cancelLabel:"아니요",confirmLabel:"예",isDimmer:!0,closeOnDimmerClick:!1,content:(0,n.jsxs)("p",{className:"SOLText-desc",children:["결제 정보를 확인했습니다.",(0,n.jsx)("br",{}),"결제창으로 이동하시겠습니까?"]}),onConfirm:()=>{w()}});w()}},[r,w]),v=(0,l.useCallback)(async e=>{try{if(window.location.origin!==e.origin||!["/payment","/mypage/rts0205/payment","/mypage/rts0205/receipt","/service/evaluation/rts0101"].some(e=>window.location.pathname.includes(e))||!e.data||!e.data?.BKW_RESULTCD)return;let{BKW_PAYTYPE:r,BKW_RESULTCD:t,BKW_TRADENO:o}=e.data;if("0000"===t){if("PA50"===r){C&&o&&C(o);return}let e=c.fz.getState().orderInfo.ordr_idxx||N.current||"";e&&R.current(e);return}"9805"===t?a.fF.alert({icon:"ErrorIcon",content:(0,n.jsx)("p",{className:"SOLText-desc",children:"결제가 취소되었습니다."}),isDimmer:!0}):a.fF.alert({icon:"ErrorIcon",isDimmer:!0,content:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("p",{className:"SOLText-desc",children:"결제가 실패했습니다."})})}),P(null),N.current=null,y.current=!1,D(!1);try{I.current?.close()}catch{m({message:"결제창을 자동으로 닫지 못했습니다. 직접 닫아 주세요."})}finally{I.current=null,h(null)}}catch(e){throw e}},[m]);return(0,l.useEffect)(()=>
1{if(p&&f&&!A.current)return A.current=setInterval(()=>{let e=I.current,r=N.current;e&&r&&e.closed&&(A.current&&(clearInterval(A.current),A.current=null),P(null),N.current=null,R.current(r))},1e3),()=>{A.current&&(clearInterval(A.current),A.current=null)}},[p,f]),(0,l.useEffect)(()=>(window.addEventListener("message",v),()=>window.removeEventListener("message",v)),[v]),(0,n.jsxs)(n.Fragment,{children:[e&&(0,l.cloneElement)(e,{...e.props,onClick:S,disabled:!!e.props.disabled||T}),(0,n.jsx)(a.Uc,{isLoading:T})]})}},53718:(e,r,t)=>{t.d(r,{vN:()=>c,ZK:()=>o,UT:()=>n});let n={order:"order",virtual:"virtual",complete:"complete"};var a=t(95155);let o={7023:{title:"주문 만료 안내",body:(0,a.jsxs)(a.Fragment,{children:["만료된 주문입니다.",(0,a.jsx)("br",{}),"신청 페이지로 이동 후 다시 진행해 주세요."]}),action:"replace"},1100:{title:"주문 정보 변경 안내",body:(0,a.jsxs)(a.Fragment,{children:["주문 정보가 변경되었습니다.",(0,a.jsx)("br",{}),"신청 페이지로 이동 후 다시 진행해 주세요."]}),action:"replace"}};var l=t(83278);let c={CRA:{allowedMethods:[l.Dq.CARD,l.Dq.ACNT,l.Dq.VCNT,l.Dq.COUP,l.Dq.PTN,l.Dq.FREE],showMethodSelector:!0,forceMethodWhenFree:[l.Dq.COUP,l.Dq.PTN,l.Dq.FREE],minOrderAmt:0,allowTaxInvoice:!0,allowedDouzonePayMethods:[l.Dq.CARD,l.Dq.ACNT,l.Dq.VCNT]},SIN:{allowedMethods:[l.Dq.CARD,l.Dq.COUP,l.Dq.FREE],showMethodSelector:!0,forceMethodWhenFree:[l.Dq.COUP,l.Dq.FREE],minOrderAmt:0,allowTaxInvoice:!1,allowedDouzonePayMethods:[l.Dq.CARD]},SCR:{allowedMethods:[l.Dq.CARD,l.Dq.COUP,l.Dq.PTN,l.Dq.FREE,l.Dq.ACNT],showMethodSelector:!0,forceMethodWhenFree:[l.Dq.COUP,l.Dq.PTN,l.Dq.FREE],minOrderAmt:0,allowTaxInvoice:!0,allowedDouzonePayMethods:[l.Dq.CARD,l.Dq.ACNT]}}},70590:(e,r,t)=>{function n(e){return e}t.d(r,{L:()=>n,W:()=>o});let a=new Set(["CARD","ACNT","VCNT","CASH"]);function o(e){return a.has(e)}},74553:(e,r,t)=>{t.d(r,{kt:()=>a,jf:()=>o});var n=t(83278);let a={CARD:n.Dq.CARD,ACNT:n.Dq.ACNT,VCNT:n.Dq.VCNT,CASH:n.Dq.CASH},o={site_cd:"W0001",corp_id:"MK102531",pg_type:"PGNW",charset:"UTF-8",Result_URL:"https://crediview.co.kr/api/pay",Noti_URL:"https://crediview.co.kr/api/pay/backnoti",Pay_Type:a.CARD,ordr_idxx:"",good_name:"",good_mny:0,buyr_name:"",buyr_tel1:"",buyr_mail:"",rcvr_name:"",rcvr_tel1:"",rcvr_mail:""}},83278:(e,r,t)=>{t.d(r,{G1:()=>o,QZ:()=>a,Dq:()=>n,$7:()=>c,DG:()=>l});let n={CARD:"CARD",ACNT:"ACNT",VCNT:"VCNT",CASH:"CASH",COUP:"COUP",PTN:"PTN",FREE:"FREE"},a={READY:"READY",WAITING:"WAITING",COMPLETE:"COMPLETE",CANCEL:"CANCEL",CANCEL_REQ:"CANCEL_REQ",EXPIRE:"EXPIRE",TEXPIRE:"TEXPIRE",REISSUE:"REISSUE"},o={READY:"READY",WAITING:"WAITING",COMPLETE:"COMPLETE",CANCEL:"CANCEL",CANCEL_REQ:"CANCEL_REQ",EXPIRE:"EXPIRE",TEXPIRE:"TEXPIRE",REISSUE:"REISSUE"},l={PA11:"PA11",PA03:"PA03",PA10:"PA10",CP01:"CP01",PT01:"PT01",FR01:"FR01"},c={PA11:"카드결제",PA03:"실시간 계좌이체",PA10:"가상계좌",CP01:"쿠폰",PT01:"제휴",FR01:"-"}}}]);

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.