1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9699],{13882:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function requiredArgs(required,args){if(args.length<required)throw TypeError(required+" argument"+(required>1?"s":"")+" required, but only "+args.length+" present")}__webpack_require__.d(__webpack_exports__,{Z:function(){return requiredArgs}})},83946:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function toInteger(dirtyNumber){if(null===dirtyNumber||!0===dirtyNumber||!1===dirtyNumber)return NaN;var number=Number(dirtyNumber);return isNaN(number)?number:number<0?Math.ceil(number):Math.floor(number)}__webpack_require__.d(__webpack_exports__,{Z:function(){return toInteger}})},77349:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return addDays}});var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(83946),_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(19013),_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(13882);function addDays(dirtyDate,dirtyAmount){(0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.Z)(2,arguments);var date=(0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate),amount=(0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__.Z)(dirtyAmount);return isNaN(amount)?new Date(NaN):(amount&&date.setDate(date.getDate()+amount),date)}},19013:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return toDate}});var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(13882);function toDate(argument){(0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.Z)(1,arguments);var argStr=Object.prototype.toString.call(argument);return argument instanceof Date||"object"==typeof argument&&"[object Date]"===argStr?new Date(argument.getTime()):"number"==typeof argument||"[object Number]"===argStr?new Date(argument):(("string"==typeof argument||"[object String]"===argStr)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}},27791:function(__unused_webpack_module,__unused_webpack_exports,__webpack_require__){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-payments/[id]",function(){return __webpack_require__(1436)}])},1436:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return AddPayments}});var _swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7297),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(85893),next_router__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(11163),react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(67294),src_components_general_button__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(79625),src_components_general_textBadge__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(69504),src_components_layout__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(77814),src_components_modal_product_checkBeforeOrderModal__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(96316),src_consts__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(4015),src_utils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(17333),styled_components__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(32125),_mypage_info__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(45019),pages_come_in__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(77109),src_components_modal_termsModal__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(47079),react_i18next__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(26793),react_i18next__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(59251),src_components_modal_pickupPriceModal__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(48533);
1function _templateObject(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n display: flex;\n flex-direction: column;\n width: 100%;\n padding: 5rem 2rem;\n gap: 7rem;\n\n section.sticky {\n position: sticky;\n top: 0;\n /* margin-top: 6rem; */\n background-color: white;\n border-bottom: 2px solid ",";\n }\n"]);return _templateObject=function(){return data},data}function _templateObject1(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n display: flex;\n flex-direction: column;\n width: 100%;\n padding: 5rem 2rem 3rem;\n gap: 2rem;\n\n > div {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n }\n div.row {\n display: flex;\n p:first-child {\n width: 30%;\n min-width: 30%;\n }\n /* p:last-child {\n text-align: right;\n } */\n }\n div.column {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n }\n\n p.small-title {\n }\n"]);return _templateObject1=function(){return data},data}function _templateObject2(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n color: ",";\n"]);return _templateObject2=function(){return data},data}function _templateObject3(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n color: ",";\n"]);return _templateObject3=function(){return data},data}function _templateObject4(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n display: flex;\n flex-direction: column;\n width: 100%;\n padding: 1.5rem 1rem;\n background-color: ",";\n border-radius: 0.4rem;\n gap: 1rem;\n p {\n white-space: pre-line;\n }\n p::before {\n display: inline-block;\n content: '';\n width: 1.8rem;\n height: 1.8rem;\n background-image: url('/images/captionCheck.svg');\n background-size: cover;\n margin: auto 0.4rem auto 0;\n }\n"]);return _templateObject4=function(){return data},data}function _templateObject5(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n color: ",";\n"]);return _templateObject5=function(){return data},data}function _templateObject6(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n display: flex;\n flex-direction: column;\n width: 100%;\n padding: 3rem 2rem 2.5rem;\n gap: 0.5rem;\n > div.row {\n display: flex;\n justify-content: space-between;\n }\n"]);return _templateObject6=function(){return data},data}function _templateObject7(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n font: normal 1.1rem/1.8rem Noto Sans KR;\n letter-spacing: -0.66px;\n color: #a8a8a8;\n margin: 0.5rem 0 3rem;\n"]);return _templateObject7=function(){return data},data}function _templateObject8(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n * {\n color: ",";\n }\n"]);return _templateObject8=function(){return data},data}function _templateObject9(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n display: flex;\n width: 100%;\n border-bottom: 1px solid ",";\n"]);return _templateObject9=function(){return data},data}function _templateObject10(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n display: flex;\n width: 100%;\n height: 1rem;\n background-color: ",";\n box-shadow: inset 0px 3px 2px #22222208;\n"]);return _templateObject10=function(){return data},data}function AddPayments(){var ref,ref1,ref2,ref3,ref4;let router=(0,next_router__WEBPACK_IMPORTED_MODULE_2__.useRouter)(),{id}=router.query,{t}=(0,react_i18next__WEBPACK_IMPORTED_MODULE_14__.$)(),[priceModal,setPriceModal]=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(!1),[pickupPriceModalOn,setPickupPriceModalOn]=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(!1),[data,setData]=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)({users:{id:0,name:"",phone:"",address:"",zipcode:""},temp_order_no:"",store_name:"",store_type:"direct",product_type:"",product_plans:[{product_category_id:5,product_category_name:"",product_category_image:"",plan_id:22,plan_name:"1ê°ì ê²°ì íë",single_payment_price:"0",monthly_price:"0",plan_month:"1"}
1],coupons:[],billing:{id:0,bill_key:"",card_vendor:"",card_number:"**********",card_expire_month:"",card_expire_year:"",domestic_yn:"domestic"},pickup_price:{mint_box:{once:{each:"",three:"1000",five:"6000",max:"120000"},later:{each:"",three:"15000",five:"9000",max:"150000"}},clothes_storage_box:{once:{each:"",three:"15000",five:"9000",max:"120000"},later:{each:"25000",three:"",five:"",max:"150000"}}}}),[originPrice,setOriginPrice]=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(0),[totalPrice,setTotalPrice]=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(0),[addPrice,setAddPrice]=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)({floor:null,weight:null,extra_fee:null,parking_fee:null,waiting_time:null,delivery_fee:null,manager_name:null,total_additional_price:null}),[productPlans,setProductPlans]=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)([{product_category_id:null,product_category_name:null,product_category_image:null,plan_id:null,plan_name:null,single_payment_price:null,monthly_price:0,plan_month:0,qty:0}]),[termsModalOn,setTermsModalOn]=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(!1),[termsAgreement,setTermsAgreement]=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(!1),[monthlyPaymentAgreement,setMonthlyAgreement]=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(!1),[paymentAgreement,setPaymentAgreement]=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(!1),[itemToggle,setItemToggle]=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(!1),[coupon,setCoupon]=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(),handleTermsAgreement=state=>{setTermsAgreement(state)},updateTotalPrice=()=>{let sum=productPlans[0].product_category_id?productPlans.reduce((total,value)=>value.monthly_price*value.qty+total,0):productPlans[0].monthly_price,delivery_fee=addPrice.delivery_fee?parseInt(addPrice.delivery_fee):0,total_additional_price=addPrice.total_additional_price?parseInt(addPrice.total_additional_price):0,coupon_discount=null!==coupon&&(null==coupon?void 0:coupon.code)?parseInt(coupon.value):0,total_sum=parseInt(sum)+total_additional_price+delivery_fee-coupon_discount;setOriginPrice(sum),setTotalPrice(total_sum)},handleSubmit=async()=>{if(!termsAgreement){alert(t("alert.valid-needed-agreement")),setTermsModalOn(!0);return}if(!paymentAgreement){alert(t("alert.valid-needed-agreement-payment"));return}await (0,src_utils__WEBPACK_IMPORTED_MODULE_9__.$b)(data.temp_order_no).then(res=>{res.success?router.replace("/add-payments/".concat(id,"/result")):alert(t("alert.payment-failed"))}).catch(e=>{alert(t("alert.payment-failed"))})};return(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(()=>{(0,src_utils__WEBPACK_IMPORTED_MODULE_9__.Sb)("".concat(id)).then(res=>{setData(res.success),setAddPrice(res.success.request_payment),setProductPlans(res.success.product_plans),setCoupon(res.success.coupons[0])}).catch(e=>{alert(t("alert.invalid-order-infomation")),router.replace("/")})},[]),(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(()=>{updateTotalPrice()},[data]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(src_components_layout__WEBPACK_IMPORTED_MODULE_6__.Z,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(Section,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_mypage_info__WEBPACK_IMPORTED_MODULE_10__.Title,{style:{marginRight:"auto"},children:t("order.add-payments.additional-charges")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(src_components_general_textBadge__WEBPACK_IMPORTED_MODULE_5__.V,{color:src_consts__WEBPACK_IMPORTED_MODULE_8__.O.gray_50,style:{cursor:"pointer"},onClick(){setPriceModal(!0)},children:t("order.add-payments.cost-criterion")})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Info,{style:{fontWeight:"700",color:src_consts__WEBPACK_IMPORTED_MODULE_8__.O.point_mint},children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(react_i18next__WEBPACK_IMPORTED_MODULE_15__.c,{i18nKey:"order.add-payments.payment-due",values:{time:null==data?void 0:data.payment_due_at}})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_mypage_info__WEBPACK_IMPORTED_MODULE_10__.ItemTitle,{className:"small-title",children:t("mypage.pickup.box.order-infomation")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{className:"row",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Info,{children:t("order.result.item")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:(null==data?void 0:data.product_plans)?null==data?void 0:null===(ref=data.product_plans)||void 0===ref?void 0:ref.map(d=>"".concat(d.product_category_name," ").concat(d.qty).concat(t("general.etc.pcs")," ")):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(null===(ref1=null==data?void 0:data.product_plans[0])||void 0===ref1?void 0:ref1.product_category_name)&&""," ",(null===(ref2=null==data?void 0:data.product_plans[0])||void 0===ref2?void 0:ref2.qty)&&""]}
1)})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{className:"row",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Info,{children:t("order.locker.user-name")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:null==data?void 0:null===(ref3=data.users)||void 0===ref3?void 0:ref3.name})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{className:"row",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Info,{children:t("order.locker.user-phone")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(Content,{children:[" ",(0,src_utils__WEBPACK_IMPORTED_MODULE_9__.bu)((null==data?void 0:null===(ref4=data.users)||void 0===ref4?void 0:ref4.phone)||"")]})]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_mypage_info__WEBPACK_IMPORTED_MODULE_10__.ItemTitle,{className:"small-title",children:t("order.add-payments.additional-charge-infomation")}),null!==addPrice.floor?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{className:"column",style:{marginBottom:"1rem"},children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Info,{children:t("order.add-payments.stair-policy")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:addPrice.floor})]}):null,null!==addPrice.weight?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{className:"column",style:{marginBottom:"1rem"},children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Info,{children:t("order.add-payments.weight-limit-of-item")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:addPrice.weight})]}):null,null!==addPrice.waiting_time?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{className:"column",style:{marginBottom:"1rem"},children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Info,{children:t("order.add-payments.waiting-time")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:addPrice.waiting_time})]}):null,null!==addPrice.parking_fee?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{className:"column",style:{marginBottom:"1rem"},children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Info,{children:t("order.add-payments.carpark-fee")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:addPrice.parking_fee})]}):null,null!==addPrice.extra_fee?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{className:"column",style:{marginBottom:"1rem"},children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Info,{children:t("order.add-payments.etc")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:addPrice.extra_fee})]}):null]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(CaptionContainer,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Caption,{children:t("order.add-payments.check-1")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Caption,{children:t("order.add-payments.check-2")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Caption,{style:{display:"block"},children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(react_i18next__WEBPACK_IMPORTED_MODULE_15__.c,{i18nKey:"order.add-payments.check-3",components:{u:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("u",{}),bold:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{})}})})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("label",{style:{paddingBottom:"1.5rem",borderBottom:"1px solid ".concat(src_consts__WEBPACK_IMPORTED_MODULE_8__.O.gray_20)},children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("span",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(pages_come_in__WEBPACK_IMPORTED_MODULE_11__.CheckboxAll,{children:t("general.etc.boxful-terms-list")})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("input",{type:"checkbox",id:"terms_agreement",name:"terms_agreement",onChange:e=>setTermsModalOn(!0),checked:termsAgreement}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("label",{htmlFor:"terms_agreement",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("span",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(pages_come_in__WEBPACK_IMPORTED_MODULE_11__.CheckboxEach,{children:t("general.etc.terms.terms-conditions")}),termsAgreement?"":(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("img",{src:"/images/rightArrow.svg",style:{marginLeft:"auto"},alt:"right arrow",className:itemToggle?"active":""})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("input",{type:"checkbox",id:"monthly_payment_agreement",name:"monthly_payment_agreement",onChange:e=>setMonthlyAgreement(e.target.checked),checked:monthlyPaymentAgreement}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("label",{htmlFor:"monthly_payment_agreement",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("span",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(pages_come_in__WEBPACK_IMPORTED_MODULE_11__.CheckboxEach,{children:t("general.etc.terms.charged-every-month")}),monthlyPaymentAgreement?"":(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("img",{src:"/images/rightArrow.svg",style:{marginLeft:"auto"},alt:"right arrow",className:itemToggle?"active":""})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("input",{type:"checkbox",id:"paymentAgreement",name:"paymentAgreement",onChange:e=>setPaymentAgreement(e.target.checked),checked:paymentAgreement}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("label",{htmlFor:"paymentAgreement",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("span",{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Info,{style:{color:src_consts__WEBPACK_IMPORTED_MODULE_8__.O.gray_40},children:t("order.add-payments.accept-and-agree")})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(TermsDescription,{style:{margin:"1rem 0 0"},children:t("order.pickup.terms-additional-description")})]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Contour,{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(PriceSection,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(PriceRow,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Description,{children:t("order.pickup.storage-fee")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(Description,{children:[0!==originPrice?(0,src_utils__WEBPACK_IMPORTED_MODULE_9__.x6)(originPrice.toString()):0,t("product.price.krw")]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(PriceRow,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{style:{display:"flex"},children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Description,{children:t("order.pickup.pickup-fee")}),data.product_type.includes("box")||data.product_type.includes("ë°ì¤")?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("img",{src:"/images/information.svg",alt:"i",style:{marginLeft:"0.5rem",cursor:"pointer"},onClick(){setPickupPriceModalOn(!0)}}):null]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(Description,{children:[null!==addPrice.delivery_fee?(0,src_utils__WEBPACK_IMPORTED_MODULE_9__.x6)(addPrice.delivery_fee):0,t("product.price.krw")]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(PriceRow,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Description,{children:t("order.add-payments.charge")}
1),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(Description,{children:[addPrice.total_additional_price?(0,src_utils__WEBPACK_IMPORTED_MODULE_9__.x6)(addPrice.total_additional_price):0,t("product.price.krw")]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(Caption,{style:{color:src_consts__WEBPACK_IMPORTED_MODULE_8__.O.gray_35,justifyContent:"flex-end"},children:[t("order.add-payments.service-by")," : ",addPrice.manager_name]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Line,{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(PriceRow,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(TotalPrice,{children:t("product.price.total")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(TotalPrice,{style:{fontWeight:"700",color:src_consts__WEBPACK_IMPORTED_MODULE_8__.O.point_mint},children:[(0,src_utils__WEBPACK_IMPORTED_MODULE_9__.x6)(totalPrice.toString()),t("product.price.krw")]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(src_components_general_button__WEBPACK_IMPORTED_MODULE_4__.Z,{type:"color",size:"small",text:t("order.locker.pay-now"),isEnabled:!0,width:"100%",height:"5rem",fontSize:"1.6rem",margin:"1rem 0",onClick:handleSubmit})]})]}),termsModalOn?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(src_components_modal_termsModal__WEBPACK_IMPORTED_MODULE_12__.Z,{closeIcon:!0,data:data,totalPrice:totalPrice,modalCallBack:handleTermsAgreement,agree:termsAgreement,onClose(){setTermsModalOn(!1)}}):null,priceModal?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(src_components_modal_product_checkBeforeOrderModal__WEBPACK_IMPORTED_MODULE_7__.Z,{type:data.product_type.includes("box")||data.product_type.includes("ë°ì¤")?"box":"pallet",onClose(){setPriceModal(!1)}}):null,pickupPriceModalOn?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(src_components_modal_pickupPriceModal__WEBPACK_IMPORTED_MODULE_13__.Z,{onClose(){setPickupPriceModalOn(!1)},title:t("order.pickup.pickup-fee")}):null]})}styled_components__WEBPACK_IMPORTED_MODULE_16__.ZP.article.withConfig({componentId:"sc-231375a3-0"})(_templateObject(),src_consts__WEBPACK_IMPORTED_MODULE_8__.O.gray_30);let Section=styled_components__WEBPACK_IMPORTED_MODULE_16__.ZP.section.withConfig({componentId:"sc-231375a3-1"})(_templateObject1()),Info=(0,styled_components__WEBPACK_IMPORTED_MODULE_16__.ZP)(src_consts__WEBPACK_IMPORTED_MODULE_8__._.caption_1_m.medium).withConfig({componentId:"sc-231375a3-2"})(_templateObject2(),src_consts__WEBPACK_IMPORTED_MODULE_8__.O.gray_50),Content=(0,styled_components__WEBPACK_IMPORTED_MODULE_16__.ZP)(src_consts__WEBPACK_IMPORTED_MODULE_8__._.caption_1_m.regular).withConfig({componentId:"sc-231375a3-3"})(_templateObject3(),src_consts__WEBPACK_IMPORTED_MODULE_8__.O.gray_35),CaptionContainer=styled_components__WEBPACK_IMPORTED_MODULE_16__.ZP.div.withConfig({componentId:"sc-231375a3-4"})(_templateObject4(),src_consts__WEBPACK_IMPORTED_MODULE_8__.O.gray_0),Caption=(0,styled_components__WEBPACK_IMPORTED_MODULE_16__.ZP)(src_consts__WEBPACK_IMPORTED_MODULE_8__._.caption_2_m.regular).withConfig({componentId:"sc-231375a3-5"})(_templateObject5(),src_consts__WEBPACK_IMPORTED_MODULE_8__.O.gray_40),PriceSection=styled_components__WEBPACK_IMPORTED_MODULE_16__.ZP.section.withConfig({componentId:"sc-231375a3-6"})(_templateObject6()),TotalPrice=src_consts__WEBPACK_IMPORTED_MODULE_8__._.body_2_m.medium,TermsDescription=styled_components__WEBPACK_IMPORTED_MODULE_16__.ZP.p.withConfig({componentId:"sc-231375a3-7"})(_templateObject7());src_consts__WEBPACK_IMPORTED_MODULE_8__._.body_1_m.regular;let PriceRow=styled_components__WEBPACK_IMPORTED_MODULE_16__.ZP.div.withConfig({componentId:"sc-231375a3-8"})(_templateObject8(),src_consts__WEBPACK_IMPORTED_MODULE_8__.O.gray_35),Description=src_consts__WEBPACK_IMPORTED_MODULE_8__._.caption_1_m.regular,Line=styled_components__WEBPACK_IMPORTED_MODULE_16__.ZP.div.withConfig({componentId:"sc-231375a3-9"})(_templateObject9(),src_consts__WEBPACK_IMPORTED_MODULE_8__.O.gray_30),Contour=styled_components__WEBPACK_IMPORTED_MODULE_16__.ZP.div.withConfig({componentId:"sc-231375a3-10"}
1)(_templateObject10(),src_consts__WEBPACK_IMPORTED_MODULE_8__.O.gray_10)},69504:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{V:function(){return Tag},Z:function(){return TextBadge}});var _swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7297),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(85893),styled_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(32125),src_consts__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4015);function _templateObject(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n color: white;\n background: ",";\n "]);return _templateObject=function(){return data},data}function _templateObject1(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n color: ",";\n background: ","30;\n border: 2px solid ","30;\n "]);return _templateObject1=function(){return data},data}function _templateObject2(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n color: ",";\n background: ",";\n "]);return _templateObject2=function(){return data},data}function _templateObject3(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n display: flex;\n align-items: center;\n height: 2.4rem;\n width: max-content;\n ","\n padding: 0.6rem 1rem;\n border-radius: 1.2rem; //50%; //1.2rem;\n"]);return _templateObject3=function(){return data},data}function TextBadge(param){let{color,children,onClick}=param;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Tag,{color:"".concat(color),onClick:onClick||(()=>{}),children:children})}let Tag=(0,styled_components__WEBPACK_IMPORTED_MODULE_3__.ZP)(src_consts__WEBPACK_IMPORTED_MODULE_2__._.caption_2_m.medium).withConfig({componentId:"sc-12b181be-0"})(_templateObject3(),props=>props.color==src_consts__WEBPACK_IMPORTED_MODULE_2__.O.gray_50?(0,styled_components__WEBPACK_IMPORTED_MODULE_3__.iv)(_templateObject(),src_consts__WEBPACK_IMPORTED_MODULE_2__.O.gray_50):props.color==src_consts__WEBPACK_IMPORTED_MODULE_2__.O.point_mint?(0,styled_components__WEBPACK_IMPORTED_MODULE_3__.iv)(_templateObject1(),src_consts__WEBPACK_IMPORTED_MODULE_2__.O.point_mint,src_consts__WEBPACK_IMPORTED_MODULE_2__.O.point_mint,src_consts__WEBPACK_IMPORTED_MODULE_2__.O.point_mint):(0,styled_components__WEBPACK_IMPORTED_MODULE_3__.iv)(_templateObject2(),src_consts__WEBPACK_IMPORTED_MODULE_2__.O.gray_35,src_consts__WEBPACK_IMPORTED_MODULE_2__.O.gray_10))},48533:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return PickupPriceModal}});var _swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7297),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(85893),styled_components__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(32125),src_consts__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4015),_modalTemplateMiddle__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(71133),pages_product_locker_id___WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(30356),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(67294),react_i18next__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(26793),i18n__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(99426);function _templateObject(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n display: flex;\n flex-direction: column;\n width: 100%;\n gap: 1.7rem;\n max-height: 80vh;\n overflow-y: auto;\n /* width: 31.5rem;\n margin: 0 auto; */\n max-width: 100%;\n\n p.agreement {\n text-align: center;\n justify-content: center;\n strong {\n font-weight: 700;\n }\n }\n img {\n width: 100%;\n }\n"]);return _templateObject=function(){return data},data}function PickupPriceModal(param){let{title,onClose}=param,{t}=(0,react_i18next__WEBPACK_IMPORTED_MODULE_7__.$)(),[tab,setTab]=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)("mint");return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_modalTemplateMiddle__WEBPACK_IMPORTED_MODULE_3__.Z,{setOnModal:onClose,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(InnerContent,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"0.8rem"},children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Title,{children:title})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(pages_product_locker_id___WEBPACK_IMPORTED_MODULE_4__.TabBarContainer,{style:{margin:"0",minHeight:"4rem"},children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(pages_product_locker_id___WEBPACK_IMPORTED_MODULE_4__.TabBar,{active:"mint"==tab,onClick:()=>setTab("mint"),children:t("product.pickup.mint-box")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(pages_product_locker_id___WEBPACK_IMPORTED_MODULE_4__.TabBar,{active:"clothes"==tab,onClick:()=>setTab("clothes"),children:t("product.pickup.clothes-box")})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("img",{src:"mint"==tab?"https://boxful-b2c-test-bucket.s3.ap-northeast-2.amazonaws.com/products/pickup/box/".concat("ko"==i18n__WEBPACK_IMPORTED_MODULE_6__.Z.language?"ko":"en","/mint-box-delivery.png"):"https://boxful-b2c-test-bucket.s3.ap-northeast-2.amazonaws.com/products/pickup/box/".concat("ko"==i18n__WEBPACK_IMPORTED_MODULE_6__.Z.language?"ko":"en","/clothes-storage-box-delivery.png")})]})})}let InnerContent=styled_components__WEBPACK_IMPORTED_MODULE_8__.ZP.div.withConfig({componentId:"sc-220eaa7f-0"}
1)(_templateObject()),Title=src_consts__WEBPACK_IMPORTED_MODULE_2__._.heading_3_m.medium},96316:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return CheckBeforeOrderModal}});var _swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7297),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(85893),styled_components__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(32125),src_consts__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4015),_modalTemplateMiddle__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(71133),react_i18next__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(26793);function _templateObject(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n display: flex;\n flex-direction: column;\n /* align-items: center; */\n width: 100%;\n padding-bottom: 5rem;\n gap: 5rem;\n max-height: 80vh;\n overflow-y: auto;\n"]);return _templateObject=function(){return data},data}function _templateObject1(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n display: flex;\n flex-direction: column;\n\n div {\n display: flex;\n margin-bottom: 0.8rem;\n\n p:first-child {\n width: 30%;\n min-width: 30%;\n color: black;\n /* color: ","; */\n }\n }\n div:last-child {\n margin-bottom: 2.5rem;\n }\n h3 {\n margin-bottom: 2rem;\n }\n\n p {\n color: ",";\n }\n"]);return _templateObject1=function(){return data},data}function CheckBeforeOrderModal(param){let{type,onClose}=param,{i18n}=(0,react_i18next__WEBPACK_IMPORTED_MODULE_4__.$)();return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_modalTemplateMiddle__WEBPACK_IMPORTED_MODULE_3__.Z,{setOnModal:onClose,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(InnerContent,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("img",{src:"https://boxful-b2c-test-bucket.s3.ap-northeast-2.amazonaws.com/products/pickup/".concat(type,"/").concat(i18n.language,"/").concat("box"==type?"By-the-Item-detail":"By-Square-Feet-detail",".png"),alt:"ë°°ì¡í ìì¸í 보기",style:{width:"100%",maxWidth:"30rem"}})})})}let InnerContent=styled_components__WEBPACK_IMPORTED_MODULE_5__.ZP.div.withConfig({componentId:"sc-b27e482-0"})(_templateObject());styled_components__WEBPACK_IMPORTED_MODULE_5__.ZP.section.withConfig({componentId:"sc-b27e482-1"})(_templateObject1(),src_consts__WEBPACK_IMPORTED_MODULE_2__.O.gray_50,src_consts__WEBPACK_IMPORTED_MODULE_2__.O.gray_35),src_consts__WEBPACK_IMPORTED_MODULE_2__._.heading_3_m.regular,src_consts__WEBPACK_IMPORTED_MODULE_2__._.caption_1_m.regular},47079:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return TermsModal}});var _swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7297),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(85893),styled_components__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(32125),src_consts__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4015),_modalTemplateMiddle__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(71133),react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(67294),src_utils__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(17333),_general_textBadge__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(69504),react_i18next__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(26793),i18n__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(99426),date_fns__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(77349);function _templateObject(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n display: flex;\n flex-direction: column;\n width: 100%;\n gap: 1.7rem;\n max-height: 80vh;\n overflow-y: auto;\n /* width: 31.5rem;\n margin: 0 auto; */\n max-width: 100%;\n\n p.agreement {\n text-align: center;\n justify-content: center;\n strong {\n font-weight: 700;\n }\n }\n"]);
1return _templateObject=function(){return data},data}function _templateObject1(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin-bottom: 4rem;\n > div {\n display: flex;\n width: 100%;\n p {\n color: ",";\n }\n p:first-child {\n width: 30%;\n min-width: 30%;\n color: #2c2c2c;\n }\n p:last-child {\n width: 70%;\n }\n }\n"]);return _templateObject1=function(){return data},data}function _templateObject2(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n display: flex;\n gap: 1rem;\n width: 100%;\n min-height: 4.6rem;\n color: ",";\n background-color: ",";\n border: 1px solid ",";\n border-radius: 0.8rem;\n padding: 1.1rem 1.6rem;\n margin-bottom: 4.6rem;\n\n > img {\n width: 2.4rem;\n height: 2.4rem;\n }\n"]);return _templateObject2=function(){return data},data}function _templateObject3(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n display: flex;\n gap: 1rem;\n width: 100%;\n min-height: 4.6rem;\n color: ",";\n background-color: ",";\n border: 1px solid ",";\n border-radius: 0.8rem;\n padding: 1.1rem 1.6rem;\n margin-bottom: 4.6rem;\n\n > img {\n width: 2.4rem;\n height: 2.4rem;\n }\n"]);return _templateObject3=function(){return data},data}function _templateObject4(){let data=(0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__.Z)(["\n width: max-content;\n"]);return _templateObject4=function(){return data},data}let Agree=(0,react__WEBPACK_IMPORTED_MODULE_4__.forwardRef)((props,ref)=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div",{ref:ref,children:props.children}));function TermsModal(param){let{closeIcon,startDate,data,totalPrice,couponDiscount,couponApplyPeriod,modalCallBack,onClose,agree}=param,{t}=(0,react_i18next__WEBPACK_IMPORTED_MODULE_8__.$)(),[agreement,setAgreement]=(0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(void 0!==agree&&agree),current=new Date,content=(0,react__WEBPACK_IMPORTED_MODULE_4__.createRef)();return(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(()=>{setTimeout(()=>{var ref;null===(ref=content.current)||void 0===ref||ref.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},200),modalCallBack&&(modalCallBack(agreement),void 0!==agree&&agreement!==agree&&onClose())},[agreement]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_modalTemplateMiddle__WEBPACK_IMPORTED_MODULE_3__.Z,{setOnModal:onClose,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(InnerContent,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Title,{style:{marginBottom:"2rem"},children:t("order.locker.terms-and-conditions")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("a",{href:"/terms",target:"_blank",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(TermsDetail,{color:"".concat(src_consts__WEBPACK_IMPORTED_MODULE_2__.O.gray_50),style:{width:"max-width"},children:t("order.locker.detail")})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(Section,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(SmallTitle,{children:t("order.locker.contact-infomation")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:t("order.locker.user-name")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:data.users.name})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:t("order.locker.user-phone")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:data.users.phone})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:t("mypage.user-info.address")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:data.users.address})]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(Section,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(SmallTitle,{children:t("order.locker.service-information")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:t("order.result.product-code")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:null==data?void 0:data.product_codes})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:t("mypage.payment.usage-plan")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:data.product_plans[0].plan_name})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:t("mypage.payment.period-of-use")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:startDate?"".concat((0,src_utils__WEBPACK_IMPORTED_MODULE_5__.kI)(new Date(startDate))," - ").concat((0,src_utils__WEBPACK_IMPORTED_MODULE_5__.kI)((0,date_fns__WEBPACK_IMPORTED_MODULE_9__.default)(new Date(startDate),30*(data.product_plans[0].plan_month||1)-1))):"".concat((0,src_utils__WEBPACK_IMPORTED_MODULE_5__.kI)(new Date)," - ").concat((0,src_utils__WEBPACK_IMPORTED_MODULE_5__.kI)((0,date_fns__WEBPACK_IMPORTED_MODULE_9__.default)(new Date,30*(data.product_plans[0].plan_month||1)-1)))})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{children:["hour"===data.product_plans[0].plan_payment_unit||"hour-based"===data.product_plans[0].plan_payment_unit?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:t("order.locker.hourly-charge")}
1):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:t("order.pickup.storage-fee")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(Content,{children:[totalPrice?(0,src_utils__WEBPACK_IMPORTED_MODULE_5__.x6)(totalPrice.toString()):0,t("product.price.krw"),[42,43,44,49,50,53,54,55].includes(null==data?void 0:data.product_plans[0].product_category_id)?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["( ",data.product_plans[0].plan_month,t("general.etc.month-auto-charge")," )"]})]})]}),couponDiscount&&couponDiscount>0?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:"ko"===i18n__WEBPACK_IMPORTED_MODULE_7__.Z.language?"ì¿ í° í ì¸":"Coupon Discount"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(Content,{children:["-",(0,src_utils__WEBPACK_IMPORTED_MODULE_5__.x6)(couponDiscount.toString()),t("product.price.krw"),couponApplyPeriod&&"lifetime"!==couponApplyPeriod&&"all"!==couponApplyPeriod?" (".concat(couponApplyPeriod).concat("ko"===i18n__WEBPACK_IMPORTED_MODULE_7__.Z.language?"íì°¨ ê²°ì ì ì©":" payment(s) applied",")"):""]})]}):null]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(Agree,{ref:content,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(AgreementText,{className:"agreement",children:"ko"==i18n__WEBPACK_IMPORTED_MODULE_7__.Z.language?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["ì ì²ì¸ ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:data.users.name}),"ë"," ","ê³ ì í"===data.product_type||"ì´ëí"===data.product_type?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:"ë°ì¤í ì
í ê³µì ì°½ê³ "}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:"ë°ì¤í ë°°ì¡í ê³µì ì°½ê³ "})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("br",{}),"ì´ì©ì½ê´ì ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:"ëì"}),"í©ëë¤."]}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:["I, ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("strong",{children:data.users.name})," accept and agree to the Terms and Conditions"]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(AgreementDate,{className:"agreement",style:{color:src_consts__WEBPACK_IMPORTED_MODULE_2__.O.gray_40,marginTop:"1rem"},children:"ko"==i18n__WEBPACK_IMPORTED_MODULE_7__.Z.language?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[current.getFullYear(),"ë
",current.getMonth()+1,"ì ",current.getDate(),"ì¼"]}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[current.getMonth()+1,".",current.getDate(),".",current.getFullYear()]})})]}),agreement?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(CheckedAgreementButton,{onClick(){setAgreement(!1)},children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("img",{src:"/images/checkCircleWhite.svg",alt:"check"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:t("order.locker.accept-and-agree")})]}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(AgreementButton,{onClick(){setAgreement(!0)},children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("img",{src:"/images/checkCircle.svg",alt:"check"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Content,{children:t("order.locker.accept-and-agree")})]})]})})}let InnerContent=styled_components__WEBPACK_IMPORTED_MODULE_10__.ZP.div.withConfig({componentId:"sc-35ea917c-0"}
1)(_templateObject()),Title=src_consts__WEBPACK_IMPORTED_MODULE_2__._.heading_3_m.regular,SmallTitle=src_consts__WEBPACK_IMPORTED_MODULE_2__._.caption_1_m.bold,Content=src_consts__WEBPACK_IMPORTED_MODULE_2__._.caption_1_m.regular,Section=styled_components__WEBPACK_IMPORTED_MODULE_10__.ZP.section.withConfig({componentId:"sc-35ea917c-1"})(_templateObject1(),src_consts__WEBPACK_IMPORTED_MODULE_2__.O.gray_35),AgreementText=src_consts__WEBPACK_IMPORTED_MODULE_2__._.body_3_m.regular,AgreementDate=src_consts__WEBPACK_IMPORTED_MODULE_2__._.caption_2_m.regular,AgreementButton=styled_components__WEBPACK_IMPORTED_MODULE_10__.ZP.div.withConfig({componentId:"sc-35ea917c-2"})(_templateObject2(),src_consts__WEBPACK_IMPORTED_MODULE_2__.O.gray_40,src_consts__WEBPACK_IMPORTED_MODULE_2__.O.gray_10,src_consts__WEBPACK_IMPORTED_MODULE_2__.O.gray_20),CheckedAgreementButton=styled_components__WEBPACK_IMPORTED_MODULE_10__.ZP.div.withConfig({componentId:"sc-35ea917c-3"})(_templateObject3(),src_consts__WEBPACK_IMPORTED_MODULE_2__.O.white,src_consts__WEBPACK_IMPORTED_MODULE_2__.O.gray_50,src_consts__WEBPACK_IMPORTED_MODULE_2__.O.gray_50),TermsDetail=(0,styled_components__WEBPACK_IMPORTED_MODULE_10__.ZP)(_general_textBadge__WEBPACK_IMPORTED_MODULE_6__.V).withConfig({componentId:"sc-35ea917c-4"})(_templateObject4())}},function(__webpack_require__){__webpack_require__.O(0,[1664,8764,298,9685,2237,8683,9063,7333,5752,8272,5019,3950,7109,356,9774,2888,179],function(){return __webpack_require__(__webpack_require__.s=27791)}),_N_E=__webpack_require__.O()}]);
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.