PageSourceSearch

https://carrykuma.com.hk/_next/static/chunks/pages/additional_serv…/order_form/[order_id]-dc7ad93649518edc.js

js carrykuma.com.hk collected 2026-10-02 01:55:03 UTC 23,185 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5502],{2996:(e,t,a)=>{"use strict";a.d(t,{ak:()=>l,ci:()=>i});var s=a(56557),r=a.n(s);let i=e=>r()(e).format("YYYY-MM-DD"),l=()=>r()(Date.now()).format("YYYY-MM-DD")},37404:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/additional_service/order_form/[order_id]",function(){return a(47752)}])},39062:(e,t,a)=>{"use strict";a.d(t,{J:()=>n});var s=a(37876),r=a(16662),i=a(62002);a(14232);var l=a(77536);let n=e=>{let{data:t,total:a}=e,{t:n}=(0,i.Bd)("common"),o=(0,l.A)();return(0,s.jsx)("div",{className:"mt-5",children:(0,s.jsx)("div",{className:"mt-8 flow-root",children:(0,s.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,s.jsx)("div",{className:"inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8",children:(0,s.jsx)("div",{className:"overflow-hidden ring-1 shadow-sm ring-black/5 sm:rounded-lg",children:(0,s.jsxs)("table",{className:"w-full divide-y table-fixed divide-gray-300",children:[(0,s.jsx)("thead",{className:"bg-gray-50",children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{scope:"col",className:"w-[100px] py-3.5 pr-3 pl-4 text-left text-[20px] font-semibold text-gray-900 sm:pl-6",children:n("new_storage.item")}),(0,s.jsx)("th",{scope:"col",className:"w-[550px] px-3 py-3.5 text-left text-[20px] font-semibold text-gray-900",children:n("new_storage.description")}),(0,s.jsx)("th",{scope:"col",className:"w-[150px] px-3 py-3.5 text-left text-[20px] font-semibold text-gray-900",children:n("new_storage.quantity")}),(0,s.jsx)("th",{scope:"col",className:"w-[200px] px-3 py-3.5 text-left text-[20px] font-semibold text-gray-900",children:n("new_storage.storage_duration")}),(0,s.jsx)("th",{scope:"col",className:"w-[150px] px-3 py-3.5 text-left text-[20px] font-semibold text-gray-900",children:n("new_storage.price")})]})}),(0,s.jsxs)("tbody",{className:"divide-y divide-gray-200 bg-white",children:[null==t?void 0:t.map((e,t)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"px-3 py-4 text-[20px] whitespace-nowrap text-gray-500",children:t+1}),(0,s.jsx)("td",{className:"px-3 py-4 text-[20px] whitespace-nowrap text-gray-500",children:(0,r.p)(o,e.item_name_en,e.item_name)}),(0,s.jsx)("td",{className:"px-3 py-4 text-[20px] whitespace-nowrap text-gray-500",children:(0,r.p)(o,String(e.quantity_en),String(e.quantity))}),(0,s.jsx)("td",{className:"px-3 py-4 text-[20px] whitespace-nowrap text-gray-500",children:e.month?"".concat(e.month," ").concat(n("new_storage.month")):""}),(0,s.jsx)("td",{className:"px-3 py-4 text-[20px] whitespace-nowrap text-gray-500",children:e.price?0>Number(e.price)?"- HK$".concat(Math.abs(Number(e.price))):"HK$".concat(e.price):null})]},"".concat(e.key,"-").concat(t))),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"py-4 pr-3 pl-4 text-[20px] font-medium whitespace-nowrap text-gray-900 sm:pl-6"}),0==a?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("td",{colSpan:4,className:"px-3 py-4 text-[20px] whitespace-nowrap font-bold text-gray-500 text-end",children:n("new_storage.pickup_time_prompt")})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("td",{className:"px-3 py-4 text-[20px] whitespace-nowrap text-gray-500"}),(0,s.jsx)("td",{className:"px-3 py-4 text-[20px] whitespace-nowrap text-gray-500"}),(0,s.jsxs)("td",{className:"px-3 py-4 text-[20px] whitespace-nowrap font-bold text-gray-500",children:[" ",n("new_storage.total")]}),(0,s.jsx)("td",{className:"px-3 py-4 w-[300px] text-[20px] whitespace-nowrap font-bold text-gray-500",children:a?"HK$".concat(Number(a)):0})]})]},"footer")]})]})})})})})})}},47752:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>F,default:()=>B});var s=a(37876),r=a(88662),i=a(96241),l=a(14232),n=a(91408),o=a(39593),c=a(96005),d=a(68050),_=a(18790),u=a(45109),p=a(89099),m=a(99239),x=a(3835),h=a(91040),g=a(56557),w=a.n(g),v=a(44452),b=a(62455),f=a(39062),y=a(79837),j=a(80179),N=a(55255),q=a(18904),k=a(77063),A=a(31432),Y=a(40788),C=a(29083),D=a(84915),S=a(58404),E=a(2943),O=a(51393),I=a(36837),M=a(8073),T=a(56475),L=a(32913),R=a(62002),z=a(77536),F=!0;let B=e=>{var t,a,g,F,B,P,H,W,K,V,$;let{data:J,locale:U}
1=e,{t:X}=(0,R.Bd)("common"),{toast:Z}=(0,E.dj)(),Q=J.holiday.map((e,t)=>({holiday_start:w()(e.dtstart[0],"YYYY-MM-DD").toDate(),holiday_name:e.summary})),G=X("new_storage.add_storage"),ee=X("new_storage.personal_info"),et=X("new_storage.your_appointment"),ea=(0,p.useRouter)(),{pathname:es}=ea,{order_id:er}=ea.query,ei="zh-Hant"===(0,z.A)(),el=e=>{ea.push(e)},[en,eo]=(0,l.useState)(J.user_address&&J.user_address.length>0?J.user_address[0]:null),[ec,ed]=(0,l.useState)(!1),[e_,eu]=(0,l.useState)(),[ep,em]=(0,l.useState)(0),{selectedBoxQuantity:ex,selectedMaterialQuantity:eh,selectedStoragePeriod:eg,selectedSinglePickPackingBoxTotal:ew,selectedBundlePickPackingBoxTotal:ev,selectedPackingBoxTotal:eb,selectedSinglePickPackingMaterialTotal:ef,selectedBundlePickPackingMaterialTotal:ey,selectedPackingMaterialTotal:ej,selectedBundles:eN}=(0,x.A)(),[eq,ek]=(0,l.useState)(0),[eA,eY]=(0,l.useState)([]);(0,l.useEffect)(()=>{0===Object.entries(ex).length&&el(q.W.ADDITIONAL_SERVICE_LIST)},[]);let eC={salutation:(null==U?void 0:U.includes("en"))?(null==(t=J.user_detail)?void 0:t.salutation)==="先生"?"Mr.":"Mrs.":null==(a=J.user_detail)?void 0:a.salutation,first_name:null==(g=J.user_detail)?void 0:g.first_name,last_name:null==(F=J.user_detail)?void 0:F.last_name,contact_no:null==(B=J.user_detail)?void 0:B.contact_no,email:null==(P=J.user_detail)?void 0:P.email,region:null==en?void 0:en.region,district:null==en?void 0:en.district,street_name:null==en?void 0:en.street_name,street_no:null==en?void 0:en.street_no,building_name:null==en?void 0:en.building_name,floor:null==en?void 0:en.floor,unit:null==en?void 0:en.unit,is_staircase:null==en?void 0:en.is_staircase,staircase_count:null==en?void 0:en.staircase_count,request_delivery_box_date:null,request_delivery_box_time:null,request_pick_up_box_date:null,request_pick_up_box_time:null,is_later_pickup:!1,ordered_package:null==(H=Object.entries(eN))?void 0:H.map(e=>{let[t,a]=e;return{package_id:parseInt(t),quantity:1}}),ordered_packing_box:null==(W=Object.entries(ex))?void 0:W.filter(e=>{let[t,{individual_qty:a}]=e;return a>0}).map(e=>{let[t,{individual_qty:a}]=e;return{packing_box_id:parseInt(t),quantity:a}}),ordered_packing_materials:null==(K=Object.entries(eh))?void 0:K.filter(e=>{let[t,{individual_qty:a,related_packing_box_qty:s}]=e;return a>0||s>0}).map(e=>{let[t,{individual_qty:a,related_packing_box_qty:s}]=e;return{packing_material_id:parseInt(t),quantity:a+s}}),month:eg||3,special_request:"",pickup_special_request:"",discount_code:"",agree_terms:!1,agree_no_prohibited_items:!1},eD=n.Ik({salutation:n.Yj().required(X("new_storage.salutation_required")),first_name:n.Yj().required(X("new_storage.first_name_required")),last_name:n.Yj().required(X("new_storage.last_name_required")),contact_no:n.ai().required(X("new_storage.contact_no_required")),email:n.Yj().email(X("new_storage.email_invalid")).required(X("new_storage.email_required")),region:n.Yj().required(X("new_storage.region")),district:n.Yj().required(X("new_storage.district")),street_name:n.Yj().required(X("new_storage.street_name")),building_name:n.Yj().required(X("new_storage.building_name")),floor:n.Yj().required(X("new_storage.floor")),unit:n.Yj().required(X("new_storage.unit")),request_delivery_box_date:n.p6().required(X("new_storage.request_new_start_date_required")).typeError(X("new_storage.invalid_date_format")),request_delivery_box_time:n.ai().required(X("new_storage.request_new_start_time_required")),request_pick_up_box_date:n.p6().when("is_later_pickup",{is:!0,then:()=>n.p6().nullable(),otherwise:()=>n.p6().required(X("new_storage.request_renewal_end_date_required")).typeError(X("new_storage.invalid_date_format"))}),request_pick_up_box_time:n.ai().when("is_later_pickup",{is:!0,then:()=>n.ai().nullable(),otherwise:()=>n.ai().required(X("new_storage.request_renewal_end_time_required"))}),special_request:n.Yj().optional(),pickup_special_request:n.Yj().optional(),discount_code:n.Yj().optional(),agree_terms:n.zM().oneOf([!0],X("new_storage.term_required")),agree_no_prohibited_items:n.zM().oneOf([!0],X("new_storage.item_required"))}),{handleSubmit:eS,handleChange:eE,values:eO,errors:eI,touched:eM,setFieldValue:eT,isSubmitting:eL,resetForm:eR}=(0,o.Wx)({initialValues:eC,validationSchema:eD,onSubmit:async(e,t)=>{let{setSubmitting:a}=t;if(!0==J.user_detail.is_blocked)return void Z({variant:"destructive",title:X("general.blocked_account")}
1);if(0==J.user_address.length&&Z({variant:"destructive",title:X("new_storage.please_add_address")}),J.user_address.length>0){let t=await eB(e,null!=ez?ez:"");t&&t.data&&ea.replace(t.data.stripe_url)}}});(0,l.useEffect)(()=>{(async()=>{try{let s=await h.A.post("".concat(Y.o.server_path,"/order/additional-calculate"),{selectedBoxQuantity:ex,selectedMaterialQuantity:eh,selectedPackingBoxTotal:eb,selectedPackingMaterialTotal:ej,selectedStoragePeriod:eg,staircase_count:null==en?void 0:en.staircase_count,values:{request_delivery_box_date:eO.request_delivery_box_date,request_pick_up_box_date:eO.request_pick_up_box_date,request_delivery_box_time:eO.request_delivery_box_time,request_pick_up_box_time:eO.request_pick_up_box_time},is_later_pickup:eO.is_later_pickup,discount_id:null==e_?void 0:e_.discount_id},{headers:{Authorization:"Bearer ".concat(ez)}});if(s.data){var e,t,a;eY(null==(e=s.data)?void 0:e.tableData),ek((null==(t=s.data)?void 0:t.billingAmount)||0),em((null==(a=s.data)?void 0:a.monthlyAmount)||0)}else eY([]),ek(0),em(0)}catch(e){console.error("Error calculating order price:",e),Z({variant:"destructive",title:"Failed to calculate order price"})}})()},[ex,eh,eN,eg,eO.request_delivery_box_date,eO.request_pick_up_box_date,eO.request_delivery_box_time,eO.request_pick_up_box_time,en,eO.is_later_pickup,e_]);let{token:ez,currentUserId:eF}=(0,y.A)(),eB=async(e,t)=>{let a={...e,user_id:eF,locale:U,user_address_id:en&&en.user_address_id,price:Number(eb+ej)||0,total_amount:Number(eq)+Number(ej)||0,discount_id:null==e_?void 0:e_.discount_id};await h.A.post("".concat(Y.o.server_path,"/order/createAdditionalOrder/").concat(er),a,{headers:{Authorization:"Bearer ".concat(t)}}).then(e=>{e.data&&e.data.data?ea.replace("/additional_service/payment/success/".concat(e.data.data)):Z({variant:"destructive",title:X("new_storage.create_order_failed")})}).catch(e=>{var t,a;Z({variant:"destructive",title:(null==(a=e.response)||null==(t=a.data)?void 0:t.message)||X("new_storage.create_order_failed")})})},[eP,eH]=(0,l.useState)(!1),eW=()=>{eH(!0)},[eK,eV]=(0,l.useState)(!1),e$=()=>{eV(!0)},{isOpen:eJ,onOpen:eU,onClose:eX}=(0,T.A)(),eZ=async e=>{if(eT("discount_code",e),eX(),!e)return void Z({variant:"destructive",title:X("new_storage.enter_promo_code")});if(!eO.request_delivery_box_date)return void Z({variant:"destructive",title:X("new_storage.select_delivery_box_date")});if(!eO.request_pick_up_box_date&&!eO.is_later_pickup)return void Z({variant:"destructive",title:X("new_storage.select_pickup_box_date")});try{let t=await h.A.post("".concat(Y.o.server_path,"/order/apply-discount-code"),{discount_code:e,order_appointment_type:M.Qt.ADDITIONAL_ORDER,monthly_amount:Number(ep),month:eg,locale:U},{headers:{Authorization:"Bearer ".concat(ez)}});t.data&&t.data?(Z({title:X("new_storage.discount_applied_success"),description:t.data.message,duration:5e3}),ed(!0),eu(t.data.discount)):Z({variant:"destructive",title:X("new_storage.discount_invalid"),description:t.data.message})}catch(e){var t,a;Z({variant:"destructive",title:(null==(a=e.response)||null==(t=a.data)?void 0:t.message)||X("new_storage.apply_discount_failed")}),console.error("Apply discount code failed:",e)}},eQ=()=>{ed(!1),eu(void 0),eT("discount_code","")};return(0,s.jsxs)("div",{className:"w-full h-full flex flex-col justify-center items-center p-5 gap-5",children:[(0,s.jsx)(C.A,{currentPath:es}),(0,s.jsxs)("div",{className:"w-full xs:w-3/4",children:[(0,s.jsx)(i.A,{title:G}),(0,s.jsx)(r.A,{subtitle:ee,description:""})]}),(0,s.jsx)("form",{onSubmit:eS,className:"w-full xs:w-3/4 h-full px-2 mt-2",children:(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsxs)("div",{className:"grid grid-cols-4 w-full h-auto mx-auto justify-between items-center gap-3 mb-2",children:[(0,s.jsx)(d.A,{label:X("new_storage.order_number"),value:null==(V=J.user_detail)?void 0:V.user_no,width:"w-full",className:"col-span-4 md:col-span-2 lg:col-span-1"}),(0,s.jsx)(c.A,{label:X("new_storage.salutation"),name:"salutation",placeholder:X("new_storage.salutation"),value:eO.salutation,onChange:eE,touched:!!eM.salutation,error:eI.salutation,width:"w-full",className:"col-span-4 md:col-span-2 lg:col-span-1",disable:!0}),(0,s.jsx)(c.A,{label:X("new_storage.last_name"),name:"last_name",placeholder:X("new_storage.last_name"),value:eO.last_name,onChange:eE,touched:!!eM.last_name,error:eI.last_name,width:"w-full",className:"col-span-4 md:col-span-2 lg:col-span-1",disable:!0}),(0,s.jsx)(c.A,{label:X("new_storage.first_name"),name:"first_name",placeholder:X("new_storage.first_name"),value:eO.first_name,onChange:eE,touched:!!eM.first_name,error:eI.first_name,width:"w-full",className:"col-span-4 md:col-span-2 lg:col-span-1",disable:!0})]}),(0,s.jsxs)("div",{className:"grid grid-cols-3 w-full h-auto mx-auto justify-between items-center gap-3",children:[(0,s.jsx)(c.A,{label:X("new_storage.contact_no"),name:"contact_no",placeholder:X("new_storage.contact_no"),value:eO.contact_no,onChange:eE,touched:!!eM.contact_no,error:eI.contact_no,disable:!0,width:"w-full",className:"col-span-4 xs:col-span-3 md:col-span-3 lg:col-span-1"}),(0,s.jsx)(c.A,{label:X("new_storage.email"),name:"email",placeholder:X("new_storage.email"),value:eO.email,onChange:eE,touched:!!eM.email,error:eI.email,disable:!0,width:"w-full",className:"col-span-4 xs:col-span-3 md:col-span-3 lg:col-span-2"})]}),(0,s.jsxs)("div",{className:"w-full flex justify-start mt-6 mb-2",children:[(0,s.jsx)("div",{className:"text-2xl text-primaryblue font-bold",children:X("new_storage.address")}),eM&&eI&&eI.region?(0,s.jsx)("div",{className:"text-red-500 text-md mt-1",children:"﹙".concat(eI.region,"﹚")}):null]}),0==J.user_address.length?(0,s.jsxs)("div",{onClick:()=>ea.push(q.W.USER_PROFILE),className:"w-full flex flex-col justify-center items-center gap-2 hover:scale-110 transition-transform duration-200",children:[(0,s.jsx)("img",{src:A.oy,alt:"",width:30,height:30,className:"cursor-pointer rotate-45"}),(0,s.jsx)("div",{className:"text-primaryorange text-bold text-lg cursor-pointer",children:X("new_storage.please_add_address")})]}):(0,s.jsx)(j.A,{addressList:J.user_address,selected:en,setSelected:e=>{eo(e)}}),(0,s.jsx)(N.A,{Title:et,className:"mt-10 text-[22px] xs:text-3xl"}),(0,s.jsx)(f.J,{data:eA,total:Number(eq)}),(0,s.jsx)(k.A,{title:X("new_storage.schedule_box_drop"),marginTop:"mt-10"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 w-full h-auto mx-auto justify-start items-start gap-3",children:[(0,s.jsx)(S.A,{value:eO.request_delivery_box_date?w()(eO.request_delivery_box_date):null,onChange:e=>{eT("request_delivery_box_date",e?e.format("YYYY-MM-DD"):null),eT("request_pick_up_box_date",null)},touched:!!eM.request_delivery_box_date,error:eI.request_delivery_box_date,className:"col-span-2 xs:col-span-1",holiday:Q,isZh:ei}),(0,s.jsx)("div",{className:"col-span-2 xs:col-span-1 flex flex-col justify-start items-start",children:(0,s.jsx)(b.A,{value:eO.request_delivery_box_time,onChange:e=>{if(w()(eO.request_delivery_box_date).isSame(eO.request_pick_up_box_date)&&eO.request_pick_up_box_time&&eO.request_pick_up_box_time<e){Z({variant:"destructive",title:X("new_storage.request_renewal_end_time_required")}),eT("request_delivery_box_time",null);return}eT("request_delivery_box_time",e)},touched:!!eM.request_delivery_box_time,error:eI.request_delivery_box_time})})]}),(0,s.jsx)(k.A,{title:X("new_storage.schedule_pickup"),marginTop:"mt-10"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 w-full h-auto mx-auto justify-between items-start gap-3",children:[(0,s.jsxs)("div",{className:"flex flex-col md:col-span-1 col-span-2",children:[(0,s.jsx)(D.A,{delivery_value:eO.request_delivery_box_date,value:eO.request_pick_up_box_date?w()(eO.request_pick_up_box_date):null,onChange:e=>{eQ(),eT("request_pick_up_box_date",e?e.format("YYYY-MM-DD"):null)},touched:!!eM.request_pick_up_box_date,error:eO.is_later_pickup?"":eI.request_pick_up_box_date,disabled:eO.is_later_pickup,className:"col-span-2 xs:col-span-1",holiday:Q,isZh:ei}),(0,s.jsx)("div",{className:"text-[18px] pl-[20px] text-center w-fit mt-2 text-primarylightgray",children:X("mid_term.days_in_stock")})]}),(0,s.jsx)("div",{className:"col-span-2 xs:col-span-1 flex-col justify-center items-center gap-3",children:(0,s.jsx)(v.A,{value:eO.request_pick_up_box_time,onChange:e=>{w()(eO.request_delivery_box_date).isSame(eO.request_pick_up_box_date)&&eO.request_delivery_box_time>e?(Z({variant:"destructive",title:X("new_storage.request_renewal_end_time_required")}),eT("request_pick_up_box_time",null)):eT("request_pick_up_box_time",e)},disabled:eO.is_later_pickup,touched:!!eM.request_pick_up_box_time,error:eO.is_later_pickup?"":eI.request_pick_up_box_time})})]}),(0,s.jsx)("div",{className:"flex mt-5",children:(0,s.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,s.jsx)("input",{type:"checkbox",name:"is_later_pickup",checked:eO.is_later_pickup,onChange:e=>{eT("is_later_pickup",e.target.checked),e.target.checked&&(eT("request_pick_up_box_date",null),eT("request_pick_up_box_time",null))},className:"w-5 h-5 flex"}),(0,s.jsx)("p",{className:"text-[20px] text-primarylightgray",children:X("new_storage.schedule_pickup")})]})}),(0,s.jsx)(k.A,{title:X("new_storage.special_instructions"),marginTop:"mt-10"}),(0,s.jsx)(_.A,{name:"special_request",placeholder:X("general.special_request_placeholder"),value:eO.special_request,onChange:eE,touched:!!eM.special_request,error:eI.special_request,width:"w-full"}),(0,s.jsx)(k.A,{title:X("new_storage.pickup_special_instructions"),marginTop:"mt-10"}),(0,s.jsx)(_.A,{name:"pickup_special_request",placeholder:X("general.pickup_special_request_placeholder"),value:eO.pickup_special_request,onChange:eE,touched:!!eM.pickup_special_request,error:eI.pickup_special_request,width:"w-full"}),(0,s.jsxs)("div",{className:"w-full grid grid-cols-2 gap-3",children:[(0,s.jsxs)("div",{className:"col-span-2 xs:col-span-1 flex flex-col w-full",children:[(0,s.jsxs)("div",{className:"flex justify-start items-center gap-5",children:[(0,s.jsx)(k.A,{title:X("new_storage.enter_promo_code"),className:"!h-fit !w-fit"}),(0,s.jsx)("div",{className:"text-primarydarkgray cursor-pointer underline",onClick:()=>eU(),children:X("new_storage.click_to_see")})]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(c.A,{label:"",name:"discount_code",placeholder:X("new_storage.enter_promo_code"),value:eO.discount_code,onChange:eE,touched:!!eM.discount_code,error:eI.discount_code,width:"w-full",className:ec?"!bg-gray-200":"",inputClassName:ec?"!bg-gray-200 pl-5":"pl-5",disable:ec,autoUppercase:!0}),ec?(0,s.jsx)("button",{type:"button",className:"absolute right-2 top-[50%] translate-y-[-50%] px-4 py-2 text-blue-500 font-bold rounded-md transition-colors",onClick:()=>eQ(),children:X("new_storage.deselect")}):(0,s.jsx)("button",{type:"button",disabled:ec,className:"absolute right-2 top-[50%] translate-y-[-50%] px-4 py-2 text-blue-500 font-bold rounded-md transition-colors ".concat(ec?"opacity-50 cursor-not-allowed":"hover:bg-white"),onClick:async()=>eZ(eO.discount_code),children:X("new_storage.confirm")})]})]}),(0,s.jsxs)("div",{className:"col-span-2 xs:col-span-1 flex flex-col w-full",children:[(0,s.jsx)(k.A,{title:X("new_storage.transport_fee"),className:"!h-fit"}),(0,s.jsx)("div",{className:"relative flex justify-center items-center  h-full",children:(0,s.jsx)(d.A,{label:"",value:isNaN(Number(eq))?0:Number(Number(eq)),width:"w-full"})})]})]}),(0,s.jsxs)("div",{className:"flex justify-start items-start gap-5 mt-10",children:[(0,s.jsx)("div",{className:"text-primarydarkgray h-[100px] flex jusify-center items-center",children:(0,s.jsx)(k.A,{title:X("new_storage.payment_method"),className:"!w-fit"})}),(0,s.jsx)("div",{className:"text-primarydarkgray h-[100px] flex jusify-center items-center pt-3",children:(0,s.jsx)("div",{children:X("new_storage.payment_method_description")})})]}),(0,s.jsx)("div",{className:"flex justify-start items-center gap-3 w-full",children:null==($=J.payment_method)?void 0:$.map(e=>(0,s.jsx)(m.A,{image:e.image,name:e.name},e.id))}),(0,s.jsxs)("div",{className:"flex flex-col justify-start gap-4 my-6",children:[(0,s.jsxs)("div",{className:"flex flex-wrap",children:[(0,s.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,s.jsx)("input",{type:"checkbox",name:"agree_terms",checked:eO.agree_terms,className:"w-5 h-5 flex"}),(0,s.jsx)("p",{className:"text-[20px] text-primarylightgray",children:X("new_storage.accept_terms_1")})]}),(0,s.jsx)("p",{className:"text-[20px] md:ml-2 ml-1 font-bold underline text-primarylightgray cursor-pointer",onClick:()=>eW(),children:X("new_storage.accept_terms_2")}),(0,s.jsxs)("p",{className:"text-[20px] md:ml-2 ml-1 font-bold text-primaryorange cursor-pointer",onClick:()=>eW(),children:["(",X("general.required_read"),")"]})]}),eI.agree_terms&&eM.agree_terms&&(0,s.jsx)("div",{className:"text-red-500 text-sm",children:eI.agree_terms}),(0,s.jsxs)("div",{className:"flex flex-wrap",children:[(0,s.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,s.jsx)("input",{type:"checkbox",name:"agree_no_prohibited_items",checked:eO.agree_no_prohibited_items,className:"w-5 h-5 flex"}),(0,s.jsx)("p",{className:"text-[20px] text-primarylightgray",children:X("new_storage.no_prohibited_items_1")})]}),(0,s.jsx)("p",{className:"text-[20px] md:ml-2 ml-1 font-bold underline text-primarylightgray cursor-pointer",onClick:()=>e$(),children:X("new_storage.no_prohibited_items_2")}),(0,s.jsxs)("p",{className:"text-[20px] md:ml-2 ml-1 font-bold text-primaryorange cursor-pointer",onClick:()=>e$(),children:["(",X("general.required_read"),")"]})]}),eI.agree_no_prohibited_items&&eM.agree_no_prohibited_items&&(0,s.jsx)("div",{className:"text-red-500 text-sm",children:eI.agree_no_prohibited_items})]}),(0,s.jsxs)("div",{className:"w-full h-auto p-5 flex justify-center items-center gap-5 my-10",children:[(0,s.jsx)(u.A,{disable:eL,className:"w-[300px] h-[40p
1x]",label:X("new_storage.back_to_previous"),onClickFunction:()=>el(q.W.ADDITIONAL_SERVICE_LIST)}),(0,s.jsx)(u.A,{disable:eL,className:"w-[300px] h-[40px]",label:"".concat(eL?X("new_storage.submitting"):X("new_storage.confirm")),onClickFunction:eS})]})]})}),(0,s.jsx)(L.A,{data:J.discounts,checkDiscountCode:eZ}),(0,s.jsx)(O.f,{isOpen:eP,handleCloseDialog:()=>{eH(!1),eT("agree_terms",!1)},handleAgreeDialog:()=>{eH(!1),eT("agree_terms",!0)}}),(0,s.jsx)(I.c,{isOpen:eK,handleCloseDialog:()=>{eV(!1),eT("agree_no_prohibited_items",!1)},handleAgreeDialog:()=>{eV(!1),eT("agree_no_prohibited_items",!0)}})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[1355,4890,9632,8381,252,120,5421,636,6593,8792],()=>t(37404)),_N_E=e.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.