1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8029],{5957:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pay/[paymentId]",function(){return t(1272)}])},3774:function(e,n,t){"use strict";t.d(n,{X:function(){return v},I:function(){return c}});var i=t(5944),a=t(917),o=t(6829),r=t(2432);function c(e){var n=e.type,t=e.name,a=e.isRequired,o=e.isDisabled,r=e.placeholder,c=e.maxLength,l=e.value,d=e.onChange,p=e.isBg,s=(e.testId,e.bgColor),h=r?a?"".concat(r," *"):r:"",v=function(e){return d(t,e.target.value)};return(0,i.tZ)(u,{isBg:p,bgColor:s,children:"tel"===n?(0,i.tZ)("input",{type:"number",name:t,required:a,disabled:o,placeholder:h,value:l||"",onChange:v,onInput:v,pattern:"[0-9]*",inputMode:"numeric",maxLength:11}):(0,i.tZ)("input",{type:n,name:t,required:a,disabled:o,placeholder:h,maxLength:c,value:l||"",onChange:v,onInput:v})})}var l=(0,a.iv)("width:100%;height:44px;padding:10px 18px;border:none;border-radius:8px;background-color:",r.Z.GRAY_f3f4f4,";vertical-align:top;box-shadow:inset 0 0 0 0 rgb(0 0 0 / 0%);box-sizing:border-box;font-size:16px;font-weight:500;line-height:1.5;color:",r.Z.NAVY_232935,";"),d=(0,a.iv)("width:100%;border:none;border-bottom:1px solid ",r.Z.GRAY_e1e1e1,";padding:21px 0 16px 0;font-size:16px;line-height:19px;"),u=(0,o.Z)("div",{target:"ex6m6sh0"})("width:100%;> input{",(function(e){return e.isBg?l:d})," ",(function(e){var n=e.bgColor;return n&&"background-color: ".concat(n,";")})," &::placeholder{opacity:0.5;color:",r.Z.NAVY_232935,";}}> input[type='number']::-webkit-outer-spin-button,> input[type='number']::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}input[type='number']{-moz-appearance:textfield;}"),p=t(7294),s=t(5675),h=t.n(s);function v(e){var n=e.name,t=e.text,a=e.value,o=e.onChange,r=(0,p.useState)(a),c=r[0],l=r[1],d=a?"/images/common/icon-checked.png":"/images/common/icon-unchecked.png";(0,p.useEffect)((function(){o(n,c)}),[o,n,c]);return(0,i.BX)(m,{htmlFor:n,isChecked:a,children:[(0,i.tZ)("input",{id:n,type:"checkbox",name:n,value:"".concat(c)||"false",onChange:function(){return l(!c)}}),(0,i.tZ)("span",{"aria-hidden":"true",children:(0,i.tZ)(h(),{src:d,alt:"",width:"20",height:"20","aria-hidden":"true"})}),t&&t]})}var m=(0,o.Z)("label",{target:"e5hhlhl0"})("display:block;font-size:16px;font-weight:500;line-height:20px;color:",r.Z.NAVY_232935,";> span{position:relative;display:inline-block;width:20px;height:20px;margin-right:12px;border-radius:10px;background-color:",(function(e){return e.isChecked?r.Z.NAVY_232935:r.Z.WHITE}),";border:",(function(e){var n=e.isChecked;return"1px solid ".concat(n?r.Z.NAVY_232935:r.Z.GRAY_b1b5bc)}),";vertical-align:top;}input{display:none;}&::placeholder{opacity:0.5;color:",r.Z.NAVY_232935,";}")},6591:function(e,n,t){"use strict";t.d(n,{CT:function(){return r},IQ:function(){return s},On:function(){return h},Us:function(){return p},ds:function(){return c}});var i=t(5944),a=t(6829),o=t(2432),r=(0,a.Z)("section",{target:"eusp7qu0"})("display:flex;flex-direction:column;justify-content:center;*{font-weight:400;font-size:14px;}> h2{margin:32px 0 14px;font-size:30px;font-weight:700;text-align:",(function(e){return e.alignLeft?"left":"center"}),";> span{display:block;margin-top:11px;word-break:keep-all;em{color:#a03c03;}}}> p{margin-top:16px;margin-left:12px;font-size:14px;word-break:keep-all;}");function c(e){var n,t=e.data,a=null===(n=t.data)||void 0===n?void 0:n.map((function(e,n){var t=(0,i.BX)(i.HY,{children:[(null===e||void 0===e?void 0:e.name)&&(0,i.tZ)("strong",{children:e.name}),(0,i.BX)("div",{children:[(null===e||void 0===e?void 0:e.value)&&(0,i.tZ)("span",{children:e.value}),(null===e||void 0===e?void 0:e.desc)&&(0,i.tZ)("p",{children:e.desc})]})]});return(null===e||void 0===e?void 0:e.isBox)?(0,i.tZ)(u,{children:t},n):(0,i.tZ)(d,{color:null===e||void 0===e?void 0:e.color,isBold:null===e||void 0===e?void 0:e.isBold,isRight:null===e||void 0===e?void 0:e.isRight,children:t},n)}));return(null===t||void 0===t?void 0:t.title)?(0,i.BX)(l,{children:[(0,i.tZ)("h3",{children:t.title}),a&&a]}):(0,i.tZ)(l,{children:a&&a})}var l=(0,a.Z)("div",{target:"eusp7qu1"})("padding-bottom:16px;border-top:1px solid rgba(34,36,38,0.15);border-bottom:1px solid rgba(34,36,38,0.15);& + &{border-top:0 none;}> h3{margin-top:32px;font-size:16px;font-weight:700;}"),d=(0,a.Z)("div",{target:"eusp7qu2"})("display:flex;margin-top:12px;font-size:14px;> strong{flex:0 0 75px;padding-right:10px;color:",o.Z.GRAY_646b79,"}> div{flex:1;>
1 span{display:block;color:",(function(e){return e.color||"rgba(0,0,0,.87)"}),";",(function(e){return e.isBold&&"font-weight: 700"}),";",(function(e){return e.isRight&&"text-align: right"}),";}> p{font-size:12px;color:",o.Z.GRAY_646b79," word-break:keep-all;}}"),u=(0,a.Z)("div",{target:"eusp7qu3"})("display:flex;font-size:14px;margin:16px 0 -16px 0;background-color:",o.Z.BEIGE_f5ebe0,";padding:16px;justify-content:space-between;*{font-weight:700 !important;}"),p=(0,a.Z)("ul",{target:"eusp7qu4"})("margin:16px 0 0;> li{font-size:14px;font-weight:400;&:before{display:inline-block;width:3px;height:3px;margin:8px 6px 0 0;background-color:",o.Z.GRAY_b1b5bc,";border-radius:50px;vertical-align:top;content:'';}}> li + li{margin-top:6px;}"),s=(0,a.Z)("a",{target:"eusp7qu5"})("display:block;text-align:center;background-color:",o.Z.BEIGE_f5ebe0,";border-radius:100rem;color:",o.Z.GRAY_333,";font-size:16px;font-weight:400;line-height:1.5;padding:12px 21px;margin:32px auto 0;min-width:180px;&:disabled{background-color:",o.Z.GRAY_333,";color:",o.Z.WHITE,";}&:hover{color:",o.Z.GRAY_333,";}");function h(e){var n=e.name,t=e.id,a=e.value,o=e.text,r=e.checked,c=e.onChange;return(0,i.BX)(v,{htmlFor:t,children:[(0,i.tZ)("input",{type:"radio",name:n,id:t,value:a,checked:r,onChange:c}),(0,i.tZ)("span",{}),o]})}var v=(0,a.Z)("label",{target:"eusp7qu6"})("min-width:17px;min-height:17px;margin-right:24px;position:relative;display:inline-block;backface-visibility:hidden;outline:0;line-height:17px;&:hover{cursor:pointer;}> input{display:none;}> span{position:relative;display:inline-block;vertical-align:top;width:15px;height:15px;margin-right:11px;border-radius:50px;border:1px solid #d4d4d5;}> input:checked + span:before{position:absolute;content:'' !important;line-height:15px;top:50%;left:50%;transform:translate(-50%,-50%);width:7px;height:7px;border-radius:50px;background-color:rgba(0,0,0,0.87);}")},2379:function(e,n,t){"use strict";t.d(n,{I:function(){return r}});var i=t(7294),a=t(594),o=t(2920),r=function(){var e=(0,i.useState)(!1),n=e[0],t=e[1],r=(0,i.useState)(!1),c=r[0],l=r[1];return{isLoading:n,isCompleted:c,handleRequest:function(e){var n=e.api,i=e.data,r=e.onSuccess,c=e.onEnd,d=e.errorMessage;t(!0),a.Z.post(n,i,{headers:{"Content-type":"application/json",Accept:"application/json"}}).then((function(e){l(!0),r&&r(e)})).catch((function(e){var n,t=e.response,i="\uc804\uc1a1\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4. \uc9c0\uc18d\uc801\uc73c\ub85c \uc2e4\ud328\ud560 \uacbd\uc6b0, \uad00\ub9ac\uc790\uc5d0\uac8c \ubb38\uc758\ud574 \uc8fc\uc138\uc694.";if(d)return(0,o.Am)(d);var a=null===t||void 0===t||null===(n=t.data)||void 0===n?void 0:n.error_message;if(a){if("string"!==typeof a){var r,c=null===(r=Object.values(a))||void 0===r?void 0:r[0];return(0,o.Am)(c||i)}(0,o.Am)(a)}return(0,o.Am)(i)})).finally((function(){t(!1),c&&c()}))}}}},8354:function(e,n,t){"use strict";t.d(n,{IN:function(){return i},R4:function(){return o},cv:function(){return a},fs:function(){return c},i$:function(){return r}});var i=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=n||(null===(e=window.navigator.userAgent)||void 0===e?void 0:e.toLowerCase()),i={},a={},o="pc",r=/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(silk)/.exec(t)||/(android)/.exec(t)||/(win)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||/(playbook)/.exec(t)||/(bb)/.exec(t)||/(blackberry)/.exec(t)||[];return a.platform=r[0]||"",a.platform&&(i[a.platform]=!0),(i.android||i.bb||i.blackberry||i.ipad||i.iphone||i.ipod||i.kindle||i.playbook||i.silk||i["windows phone"])&&(o="mobile"),(i.cros||i.mac||i.linux||i.win)&&(o="pc"),o},a=function(e){return"".concat(e.toLocaleString(),"\uc6d0")},o=function(e){return e.filter((function(e){return Object.keys(e).length>0}))},r=function(e){var n=e.slice(1,-1),t=n.length,i="*".repeat(t);return e.replace(n,i)},c=function(e,n){var t=n?"-":"@",i=e.split(t),a=null===i||void 0===i?void 0:i.map((function(e,t){return n&&0===t?e:r(e)}
1));return a.join(t)}},1272:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return z}});var i=t(5944),a=t(7294),o=t(1163),r=t(9008),c=t.n(r),l=t(4298),d=t.n(l),u=t(6829),p=t(2379),s=t(5675),h=t.n(s),v=t(1664),m=t.n(v),g=t(6591);function f(e){var n=e.data,t=n&&function(e){return[{data:[{name:"\uc774\uc6a9 \ub0b4\uc5ed",value:e.content},{name:"\uc774\uc6a9 \uae30\uac04",value:e.using_days},{name:"\uacb0\uc81c \uae08\uc561",value:e.price.toLocaleString()},{name:"\uacb0\uc81c \uc815\ubcf4",value:(0,i.BX)(i.HY,{children:["\uce74\ub4dc\uacb0\uc81c",(0,i.tZ)("br",{}),"\uc2b9\uc778\uc77c\uc2dc: ".concat(e.auth_date)]})}]}]}(n),a=null===t||void 0===t?void 0:t.map((function(e,n){return(0,i.tZ)(g.ds,{data:e},n)}));return(0,i.BX)(g.CT,{children:[(0,i.tZ)(h(),{src:"/images/common/icon-check-round.svg",alt:"",width:100,height:100,"aria-hidden":"true"}),(0,i.tZ)("h2",{children:"\uacb0\uc81c \uc644\ub8cc"}),a,(0,i.tZ)(m(),{href:"/",passHref:!0,children:(0,i.tZ)(g.IQ,{children:"\ud648\uc73c\ub85c"})})]})}var x,b,Z,_=t(6042),y=t(8354),E=t(2432),R=function(e){var n=function(e,n,t){var i=(0,y.i$)(e),a=(0,y.fs)(n,!0),o=(0,y.fs)(t),r=i&&{value:i},c=a&&{value:a},l=o&&{value:o},d=[(0,_.Z)({},r),(0,_.Z)({},c),(0,_.Z)({},l)];return{title:"\uacc4\uc57d\uc790",data:(0,y.R4)(d)}}(e.name,e.phone,e.email),t=function(e){return{title:"\uacc4\uc57d \uc815\ubcf4",data:[{name:"\uc9c0\uc810",value:e.site},{name:"\uae30\uac04",value:e.period},{name:"\uc720\ud615",value:e.type},{name:"\uc9c0\ubd88\ud615\ud0dc",value:e.pay_type}]}}(e.contact),a=function(e){var n,t,a,o,r,c,l,d={name:"\uc774\uc6a9\uae30\uac04",value:e.using_days},u=e.using_seats.length>0&&{name:"\uc774\uc6a9 \ub0b4\uc5ed",value:(0,i.tZ)(i.HY,{children:e.using_seats.map((function(e,n){var t=e.price*e.count;return(0,i.BX)(C,{children:[e.name,(0,i.BX)("em",{children:[(0,i.tZ)("span",{children:(0,y.cv)(t)})," (".concat((0,y.cv)(e.price)," x ").concat(e.count,")")]})]},n)}))})},p=e.services.length>0&&{name:"\ubd80\uac00\uc11c\ube44\uc2a4 \uc774\uc6a9 \ub0b4\uc5ed",value:(0,i.tZ)(i.HY,{children:null===(n=e.services)||void 0===n?void 0:n.map((function(e,n){var t=e.price*e.count;return(0,i.BX)(C,{children:[e.name,(0,i.tZ)("span",{children:"\uc774\uc6a9\uc88c\uc11d\uc218 : ".concat(e.count)}),(0,i.BX)("em",{children:[(0,i.tZ)("span",{children:(0,y.cv)(t)})," (".concat((0,y.cv)(e.price)," x ").concat(e.count,")")]})]},n)}))})},s=Object.keys(e.overdue).length>0&&{name:"\uc5f0\uccb4 \uae08\uc561",value:(0,i.BX)(i.HY,{children:["\ub204\uc801\ubbf8\ub0a9\uae08\uc561 - ".concat((null===(t=e.overdue)||void 0===t||null===(a=t.price)||void 0===a?void 0:a.toLocaleString())||0,"\uc6d0"),(0,i.tZ)("br",{}),"\uc5f0\uccb4\ub8cc (10%) : ".concat((null===(o=e.overdue)||void 0===o||null===(r=o.late_fee)||void 0===r?void 0:r.toLocaleString())||0,"\uc6d0"),(0,i.tZ)("br",{}),"".concat((null===(c=e.overdue)||void 0===c||null===(l=c.total_price)||void 0===l?void 0:l.toLocaleString())||0,"\uc6d0")]})},h={name:"\ub0a9\ubd80 \uae30\ud55c",value:e.expire_date,desc:"\ub0a9\ubd80 \uae30\ud55c\uc774 \uc9c0\ub098\uba74 \ub0a9\ubd80 \uae30\ud55c\uc774 \uc9c0\ub098\uba74 \uc774\uc6a9\uc774 \uc815\uc9c0\ub429\ub2c8\ub2e4.",color:"#a03c03",isBold:!0},v=[(0,_.Z)({},d),(0,_.Z)({},u),(0,_.Z)({},p),(0,_.Z)({},s),(0,_.Z)({},h)];return{title:"\uccad\uad6c \ub0b4\uc5ed",data:(0,y.R4)(v)}}(e.bill),o=function(e){var n={name:"\uc774\uc6a9 \uae08\uc561",value:(0,y.cv)(e.price),isRight:!0},t=(null===e||void 0===e?void 0:e.discount)&&{name:"\ud560\uc778 \uae08\uc561",value:(0,y.cv)(e.discount),isRight:!0},i=t&&(null===e||void 0===e?void 0:e.discounted_price)&&{name:"\ud560\uc778 \uc801\uc6a9 \uae08\uc561",value:(0,y.cv)(e.discounted_price),isRight:!0},a=(null===e||void 0===e?void 0:e.value_tax)&&{name:"\ubd80\uac00\uc138 10%",value:(0,y.cv)(e.value_tax),isRight:!0},o=(null===e||void 0===e?void 0:e.late_fee)&&{name:"\uc5f0\uccb4 \uae08\uc561",value:(0,y.cv)(e.late_fee),isRight:!0},r={name:"\ud569\uacc4",value:(0,y.cv)(e.total_price),isBox:!0},c=[(0,_.Z)({},n),(0,_.Z)({},t),(0,_.Z)({},i),(0,_.Z)({},a),(0,_.Z)({},o),(0,_.Z)({},r)];return{title:"\uacb0\uc81c \uae08\uc561",data:(0,y.R4)(c)}}(e.price_to_pay);return[(0,_.Z)({},n),(0,_.Z)({},t),(0,_.Z)({},a),(0,_.Z)({},o)]},C=(0,u.Z)("div",{target:"e2hensj0"})("margin-bottom:8px;padding-bottom:8px;font-size:14px;border-bottom:1px solid rgba(34,36,38,0.15);> span{margin-top:4px;display:block;font-size:12px;color:",E.Z.GRAY_646b79,";}> em{display:block;margin-top:4px;color:",E.Z.BROWN_a68e74,";> span{font-weight:700;color:",E.Z.BROWN_a68e74,";}}");!function(e){e.CARD="card",e.PASSBOOK="deposit-without-passbook"}(x||(x={})),function(e){e.RECEIPT_TRUE="RECEIPT_TRUE",e.RECEIPT_FALSE="RECEIPT_FALSE"}(b||(b={})),function(e){e.PERSON="PERSON",e.COMPANY="COMPANY"}(Z||(Z={}));var k=t(3774);
1function w(e){var n=e.payMethodType,t=e.receiveCashReceipt,a=e.cashReceiptUsage,o=e.receiptNumber,r=e.taxInvoiceMail,c=e.onChangeValue,l=n===x.PASSBOOK,d=t===b.RECEIPT_TRUE,u=a===Z.COMPANY,p=function(e){c(e.target.name,e.target.value)},s=function(){c("receive_cash_receipt",b.RECEIPT_FALSE),c("receipt_number",""),c("business_number",""),c("tax_invoice_mail","")},h=(0,i.tZ)(B,{children:(0,i.tZ)(g.On,{name:"pay_method_type",id:x.CARD,value:x.CARD,text:"\uc2e0\uc6a9\uce74\ub4dc",checked:n===x.CARD,onChange:function(e){p(e),s()}})}),v=(0,i.BX)(i.HY,{children:[(0,i.BX)(A,{children:[(0,i.BX)("div",{children:[(0,i.tZ)("strong",{children:"\uc785\uae08 \uc740\ud589"}),"\uae30\uc5c5\uc740\ud589"]}),(0,i.BX)("div",{children:[(0,i.tZ)("strong",{children:"\uacc4\uc88c \ubc88\ud638"}),"261-088825-01-021"]}),(0,i.BX)("div",{children:[(0,i.tZ)("strong",{children:"\uc608\uae08\uc8fc"}),"\uc54c\ub9ac\ucf58(\uc8fc)"]})]}),(0,i.tZ)(g.Us,{children:(0,i.tZ)("li",{children:"\uacc4\uc57d\uc790 \uba85\uacfc \uc785\uae08\uc790 \uba85\uc774 \uc77c\uce58\ud574\uc57c \uc785\uae08\ud655\uc778\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4."})})]}),m=(0,i.BX)(B,{children:[(0,i.tZ)(g.On,{name:"receive_cash_receipt",id:b.RECEIPT_TRUE,value:b.RECEIPT_TRUE,text:"\uc2e0\uccad",checked:t===b.RECEIPT_TRUE,onChange:p}),(0,i.tZ)(g.On,{name:"receive_cash_receipt",id:b.RECEIPT_FALSE,value:b.RECEIPT_FALSE,text:"\ubbf8\uc2e0\uccad",checked:t===b.RECEIPT_FALSE,onChange:s})]}),f=(0,i.BX)(B,{children:[(0,i.tZ)(g.On,{name:"cash_receipt_usage",id:Z.PERSON,value:Z.PERSON,text:"\uac1c\uc778\uc18c\ub4dd\uacf5\uc81c\uc6a9",checked:a===Z.PERSON,onChange:p}),(0,i.tZ)(g.On,{name:"cash_receipt_usage",id:Z.COMPANY,value:Z.COMPANY,text:"\uc0ac\uc5c5\uc790\uc99d\ube59\uc6a9 (\uc138\uae08\uacc4\uc0b0\uc11c\uc6a9)",checked:a===Z.COMPANY,onChange:p})]}),_=(0,i.tZ)(k.I,{name:"receipt_number",placeholder:u?"\uc0ac\uc5c5\uc790\ubc88\ud638(\uc22b\uc790\ub9cc \uc785\ub825)":"\ud604\uae08\uc601\uc218\uc99d \ubc1c\uae09 \ubc88\ud638(\uc22b\uc790\ub9cc \uc785\ub825)",maxLength:u?11:null,value:o,onChange:c,isBg:!1});return(0,i.BX)(i.HY,{children:[(0,i.tZ)(g.ds,{data:{title:"\uacb0\uc81c \uc218\ub2e8",data:[{value:(0,i.BX)(i.HY,{children:[h,l&&v]})}]}}),l&&(0,i.tZ)(g.ds,{data:{title:"\uc138\uae08\uacc4\uc0b0\uc11c \ub610\ub294 \ud604\uae08\uc601\uc218\uc99d",data:[{value:(0,i.BX)(i.HY,{children:[m,d&&(0,i.BX)(S,{children:[f,_,(0,i.tZ)(k.I,{type:"email",name:"tax_invoice_mail",placeholder:"\uc138\uae08\uacc4\uc0b0\uc11c \ubc1b\uc744 \uc774\uba54\uc77c",value:r,onChange:c,isBg:!1})]})]})}]}})]})}var B=(0,u.Z)("div",{target:"e1jvnzg30"})("margin-top:12px;> label + label{margin-top:12px;}"),A=(0,u.Z)("div",{target:"e1jvnzg31"})("margin-top:16px;padding:16px;background-color:",E.Z.BEIGE_f5ebe0,";> div{display:flex;> strong{flex:0 1 84px;color:",E.Z.GRAY_646b79,";}}> div + div{margin-top:12px;}"),S=(0,u.Z)("div",{target:"e1jvnzg32"})("margin-top:16px;border:1px solid ",E.Z.GRAY_e1e1e1,";padding:0 16px 16px;"),I=t(7536),O=t(2920);function P(e){var n=e.id,t=e.data,a=(0,o.useRouter)().reload,r=(0,p.I)().handleRequest,c=t&&R(t),l=null===c||void 0===c?void 0:c.map((function(e,n){return(0,i.tZ)(g.ds,{data:e},n)})),d=(0,I.cI)({defaultValues:{pay_method_type:x.CARD,receive_cash_receipt:b.RECEIPT_FALSE,cash_receipt_usage:Z.PERSON,receipt_number:"",tax_invoice_mail:""}}),u=d.setValue,s=(0,d.watch)(),h=s.pay_method_type,v=s.receive_cash_receipt,m=s.cash_receipt_usage,f=s.receipt_number,_=s.tax_invoice_mail,E=h===x.PASSBOOK,C=v===b.RECEIPT_TRUE,k=m===Z.COMPANY,B=!E||!C||!!f&&!!_,A=function(){var e;if(E)if((null===(e=f.match(/[^0-9]/g))||void 0===e?void 0:e.length)>0)(0,O.Am)(k?"\uc0ac\uc5c5\uc790 \ubc88\ud638\uc5d0\ub294 10\uc790\ub9ac \uc22b\uc790\ub9cc \uc785\ub825\ud574 \uc8fc\uc138\uc694.":"\ud604\uae08\uc601\uc218\uc99d \ubc1c\uae09 \ubc88\ud638\uc5d0\ub294 \uc22b\uc790\ub9cc \uc785\ub825\ud574 \uc8fc\uc138\uc694.");else{var t=1===(v===b.RECEIPT_TRUE?1:0),i=m===Z.PERSON?0:1,o={receive_cash_receipt:v,cash_receipt_usage:i,receipt_number:t&&0===i?f:null,business_number:t&&1===i?f:null,tax_invoice_mail:_||null};r({api:"/payment/".concat(n,"/dwp"),data:o,onSuccess:function(e){200===e.status&&a()}})}else!function(){var e=document.payForm;"mobile"===(0,y.IN)()?(e.action="https://web.nicepay.co.kr/v3/v3Payment.jsp",e.submit()):(null===document||void 0===document?void 0:document.payForm)&&window.goPay(e)}()}
1,S=(0,i.tZ)(w,{payMethodType:h,receiveCashReceipt:v,cashReceiptUsage:m,receiptNumber:f,taxInvoiceMail:_,onChangeValue:u}),P=t.enable_to_pay?(0,i.tZ)(T,{type:E?"button":"submit",disabled:!B,onClick:A,children:E?"\ub2e4\uc74c":"\uacb0\uc81c\ud558\uae30"}):(0,i.tZ)(T,{type:"submit",disabled:!0,children:"\uae30\ud55c \ucd08\uacfc\ub85c \uacb0\uc81c \ubd88\uac00"});return(0,i.BX)(g.CT,{alignLeft:!0,children:[(0,i.BX)("h2",{children:["\ube44\ub098\uc774\ub354 \uacb0\uc81c",(0,i.BX)("span",{children:["\uc774 \ud398\uc774\uc9c0\ub294 \ube44\ub098\uc774\ub354 \uace0\uac1d\uc744 \uc704\ud55c \uacb0\uc81c \uc804\uc6a9 ",(0,i.tZ)("br",{}),"\ud398\uc774\uc9c0\ub85c, \ub0a9\ubd80 \uae30\ud55c\uc774 \uc9c0\ub098\uba74 \ube44\uacf5\uac1c\ub85c \uc804\ud658\ub429\ub2c8\ub2e4."]})]}),l,E?(0,i.BX)("form",{onSubmit:A,children:[S,P]}):(0,i.BX)(i.HY,{children:[S,P,(0,i.BX)("form",{name:"payForm",style:{display:"none"},action:"/payment/".concat(n,"/loading"),children:[(0,i.tZ)("input",{type:"hidden",name:"PayMethod",value:"CARD"}),(0,i.tZ)("input",{type:"hidden",name:"GoodsName",value:null===t||void 0===t?void 0:t.product}),(0,i.tZ)("input",{type:"hidden",name:"Amt",value:null===t||void 0===t?void 0:t.price}),(0,i.tZ)("input",{type:"hidden",name:"MID",value:null===t||void 0===t?void 0:t.mid}),(0,i.tZ)("input",{type:"hidden",name:"Moid",value:null===t||void 0===t?void 0:t.moid}),(0,i.tZ)("input",{type:"hidden",name:"BuyerName",value:null===t||void 0===t?void 0:t.name}),(0,i.tZ)("input",{type:"hidden",name:"BuyerEmail",value:null===t||void 0===t?void 0:t.email}),(0,i.tZ)("input",{type:"hidden",name:"ReturnURL",value:"".concat(window.location.origin,"/api/payment/").concat(n)}),(0,i.tZ)("input",{type:"hidden",name:"NpLang",value:"KO"}),(0,i.tZ)("input",{type:"hidden",name:"GoodsCl",value:"1"}),(0,i.tZ)("input",{type:"hidden",name:"TransType",value:"0"}),(0,i.tZ)("input",{type:"hidden",name:"CharSet",value:"utf-8"}),(0,i.tZ)("input",{type:"hidden",name:"ReqReserved",value:""}),(0,i.tZ)("input",{type:"hidden",name:"EdiDate",value:null===t||void 0===t?void 0:t.date}),(0,i.tZ)("input",{type:"hidden",name:"SignData",value:null===t||void 0===t?void 0:t.encrypted_data})]})]})]})}var T=(0,u.Z)("button",{target:"ei02oc00"})("display:block;text-align:center;background-color:",E.Z.GRAY_333,";border-radius:100rem;color:",E.Z.WHITE,";font-size:16px;font-weight:400;line-height:1.5;padding:12px 21px;margin:32px auto 0;min-width:180px;&:disabled{opacity:0.45;cursor:default;}");function N(e){var n=e.data,t=n&&function(e){return[{data:[{name:"\uc774\uc6a9 \ub0b4\uc5ed",value:e.content},{name:"\uc774\uc6a9 \uae30\uac04",value:e.using_days},{name:"\uacb0\uc81c \uae08\uc561",value:e.price.toLocaleString()},{name:"\uc785\uae08 \uc740\ud589",value:"\uae30\uc5c5\uc740\ud589",color:"#a03c03"},{name:"\uacc4\uc88c \ubc88\ud638",value:"261-088825-01-021",color:"#a03c03"},{name:"\uc608\uae08\uc8fc",value:"\uc54c\ub9ac\ucf58(\uc8fc)",color:"#a03c03"},{name:"\uc785\uae08 \uae30\ud55c",value:"".concat(e.expire_date,"\uae4c\uc9c0"),desc:"\uc785\uae08 \uae30\ud55c\uc774 \uc9c0\ub098\uba74 \uc5f0\uccb4\ub8cc\uac00 \ubd80\uacfc\ub429\ub2c8\ub2e4.",color:"#a03c03"}]}]}(n),a=null===t||void 0===t?void 0:t.map((function(e,n){return(0,i.tZ)(g.ds,{data:e},"key".concat(n))})),o="".concat(null===n||void 0===n?void 0:n.expire_date,"\uae4c\uc9c0");return(0,i.BX)(g.CT,{children:[(0,i.tZ)(h(),{src:"/images/common/img-sandglass.svg",alt:"",width:100,height:100,"aria-hidden":"true"}),(0,i.BX)("h2",{children:["\uc785\uae08 \ub300\uae30\uc911",(0,i.BX)("span",{children:[(0,i.tZ)("em",{children:o})," \uc740\ud589\uc5d0 \uc785\uae08\ud574\uc8fc\uc2dc\uba74, \uacb0\uc81c\uac00 \uc644\ub8cc\ub429\ub2c8\ub2e4."]})]}),a,(0,i.tZ)(g.Us,{children:(0,i.tZ)("li",{children:"\ub0a9\ubd80\ub97c \ub3d5\uae30 \uc704\ud574 \uc81c\uacf5\ub418\ub294 \ud398\uc774\uc9c0\ub85c, \uc785\uae08\uc5ec\ubd80\ub97c \ud45c\uc2dc\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4"})}),(0,i.tZ)(m(),{href:"/",passHref:!0,children:(0,i.tZ)(g.IQ,{children:"\ud648\uc73c\ub85c"})})]})}var X="WAIT",Y="DEFAULT",L="COMPLETE";function z(){var e=(0,o.useRouter)(),n=e.query.paymentId,t=(0,p.I)().handleRequest,r=(0,a.useState)(!1),l=r[0],u=r[1],s=(0,a.useState)(!1),h=s[0],v=s[1],m=(0,a.useState)(null),g=m[0],x=m[1];(0,a.useEffect)((function(){var e=document.createElement("script");e.src="https://web.nicepay.co.kr/v3/webstd/js/nicepay-3.0.js",e.addEventListener("load",(function(){return u(!0)})),document.head.appendChild(e),document.cookie="SameSite=None; Secure"}),[]);var b=g&&(g.auth_date?L:g.expire_date?X:Y);return(0,a.useEffect)((function(){if(n&&!h&&!g){v(!0);t({api:"/payment/".concat(n),data:g,onSuccess:function(e){200===e.status&&x(e.data)},onEnd:function(){return e.push("/pay/".concat(n))}})}}),[n,t,g,e,h]),(0,i.BX)(i.HY,{children:[(0,i.BX)(c(),{children:[(0,i.tZ)("title",{}),(0,i.tZ)("meta",{name:"description",content:""},"description"),(0,i.tZ)("meta",{name:"og:title",property:"og:title",content:""},"og:title"),(0,i.tZ)("meta",{name:"og:url",property:"og:url",content:""},"og:url"),(0,i.tZ)("meta",{name:"og:image",property:"og:image",content:""},"og:image"),(0,i.tZ)("meta",{name:"og:site_name",property:"og:site_name",content:""},"og:site_name"),(0,i.tZ)("meta",{name:"og:description",property:"og:description",content:""},"og:description"),(0,i.tZ)("meta",{property:"og:locale",content:"ko_KR"}),(0,i.tZ)("meta",{name:"keyword",content:""})]}),(0,i.BX)(G,{children:[l&&b===Y&&(0,i.tZ)(P,{id:n,data:g}),b===X&&(0,i.tZ)(N,{data:g}),b===L&&(0,i.tZ)(f,{data:g}),(0,i.tZ)(d(),{id:"nicePayFuncs",children:"//[PC Only]When pc payment window is closed, nicepay-3.0.js call back nicepaySubmit() function <<'nicepaySubmit()' DO NOT CHANGE>>\n function nicepaySubmit() {\n document.payForm.submit();\n }\n \n //[PC Only]payment window close function <<'nicepayClose()' DO NOT CHANGE>>\n function nicepayClose() {\n alert('\uacb0\uc81c\uac00 \ucde8\uc18c \ub418\uc5c8\uc2b5\ub2c8\ub2e4');\n }"})]})]})}var G=(0,u.Z)("article",{target:"e1snzt6x0"})("max-width:360px;width:100%;margin:auto;padding:152px 30px 40px;",(function(e){return e.theme.mq.tablet}),"{padding:100px 30px 180px;}")}},function(e){e.O(0,[7536,9774,2888,179],(function(){return n=5957,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.