1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4095],{1917:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/terminate_order/[order_id]",function(){return r(9048)}])},2996:(e,t,r)=>{"use strict";r.d(t,{ak:()=>s,ci:()=>i});var a=r(56557),n=r.n(a);let i=e=>n()(e).format("YYYY-MM-DD"),s=()=>n()(Date.now()).format("YYYY-MM-DD")},9048:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>T,default:()=>L});var a=r(37876),n=r(55255),i=r(96241),s=r(40788),o=r(91040),l=r(14232),c=r(91408),d=r(39593),m=r(68050),_=r(93260),u=r(96005),x=r(77063),p=r(99239),h=r(45109),g=r(18904),y=r(89099),v=r(68073),f=r(71168),j=r(56557),b=r.n(j),w=r(84530),S=r(2996),N=r(62002),k=r(16662);let q=e=>{var t,r;let{data:n,locale:i}=e,{t:s}=(0,N.Bd)("common");(0,y.useRouter)();let[o,c]=(0,l.useState)(null),d=e=>{let t=n.inventory.find(t=>t.carton_no===e);t&&c({[e]:t})},m=()=>{c(null)};return(0,a.jsx)("div",{className:"w-full px-5",children:(0,a.jsx)("div",{className:"mt-8 flow-root",children:(0,a.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,a.jsx)("div",{className:"inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"overflow-hidden ring-1 shadow-sm ring-black/5 sm:rounded-lg",children:(0,a.jsxs)("table",{className:"min-w-full divide-y divide-gray-300",children:[(0,a.jsx)("thead",{className:"bg-gray-100",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{scope:"col",className:"min-w-[100px] py-3.5 pr-3 pl-4 text-center text-[20px] font-semibold text-gray-900 sm:pl-6",children:s("terminate_order.order_id")}),(0,a.jsx)("th",{scope:"col",className:"min-w-[100px] py-3.5 pr-3 pl-4 text-left text-[20px] font-semibold text-gray-900 sm:pl-6",children:s("terminate_order.box_number")}),(0,a.jsx)("th",{scope:"col",className:"min-w-[100px] px-3 py-3.5 text-left text-[20px] font-semibold text-gray-900",children:s("terminate_order.product_type")}),(0,a.jsx)("th",{scope:"col",className:"min-w-[100px] px-3 py-3.5 text-left text-[20px] font-semibold text-gray-900",children:s("terminate_order.quantity")}),(0,a.jsx)("th",{scope:"col",className:"min-w-[100px] px-3 py-3.5 text-left text-[20px] font-semibold text-gray-900",children:s("terminate_order.contract_duration")}),(0,a.jsx)("th",{scope:"col",className:"min-w-[100px] px-3 py-3.5 text-left text-[20px] font-semibold text-gray-900",children:s("terminate_order.storage_date")}),(0,a.jsx)("th",{scope:"col",className:"min-w-[100px] px-3 py-3.5 text-left text-[20px] font-semibold text-gray-900",children:s("terminate_order.contract_end_date")}),(0,a.jsx)("th",{scope:"col",className:"min-w-[100px] px-3 py-3.5 text-left text-[20px] font-semibold text-gray-900",children:s("terminate_order.option")})]})}),(0,a.jsx)("tbody",{className:"divide-y divide-gray-200 bg-white",children:null==n||null==(r=n.inventory)||null==(t=r.sort((e,t)=>e.carton_no.localeCompare(t.carton_no)))?void 0:t.map((e,t)=>{let r=o&&Object.keys(o).some(t=>t===e.carton_no.toString());return(0,a.jsxs)(l.Fragment,{children:[(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"py-4 pr-3 pl-4 text-[18px] font-medium whitespace-nowrap text-gray-900 sm:pl-6",children:(0,a.jsx)("div",{className:"w-full flex justify-between items-center",children:(0,a.jsx)("p",{className:"font-bold text-center w-full mx-2",children:n.order_no})})}),(0,a.jsx)("td",{className:"px-3 py-4 text-[18px] whitespace-nowrap text-gray-500",children:e.carton_no}),(0,a.jsx)("td",{className:"px-3 py-4 text-[18px] whitespace-nowrap text-gray-500",children:(0,k.p)(i,e.packing_box.name_en,e.packing_box.name)}),(0,a.jsx)("td",{className:"px-3 py-4 text-[18px] whitespace-nowrap text-gray-500",children:"1"}),(0,a.jsxs)("td",{className:"px-3 py-4 text-[18px] whitespace-nowrap text-gray-500",children:[n.month," ",s("general.month_with_lower_space")]}),(0,a.jsx)("td",{className:"px-3 py-4 text-[18px] whitespace-nowrap text-gray-500",children:(0,S.ci)(e.stockin_date.toString())}),(0,a.jsx)("td",{className:"px-3 py-4 text-[18px] whitespace-nowrap text-gray-500",children:(0,S.ci)(n.order_end_date.toString())}),(0,a.jsx)("td",{className:"px-3 py-4 text-[18px] whitespace-nowrap text-gray-500",children:(0,a.jsx)("div",{className:"flex justify-center ",children:r?(0,a.jsx)("div",{onClick:()=>m(),className:"cursor-pointer ",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"})})}):(0,a.jsx)("div",{onClick:()=>d(e.carton_no),className:"cursor-pointer",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})})})})})]},e.order_id),o&&o[e.carton_no]&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{colSpan:3,className:"py-3 text-sm font-medium whitespace-nowrap text-gray-900 sm:pl-6",children:(0,a.jsxs)("div",{className:"text-primarydarkgray flex flex-col justify-center items-start gap-3",children:[(0,a.jsx)("div",{children:s("storage_manage.box_number")}),(0,a.jsx)("div",{children:e.carton_no})]})}),(0,a.jsx)("td",{colSpan:5,className:"py-3 text-sm font-medium whitespace-nowrap text-gray-900 sm:pl-6",children:(0,a.jsxs)("div",{className:"text-primarydarkgray flex flex-col justify-center items-start gap-3",children:[(0,a.jsx)("div",{children:s("storage_manage.item_description")}),(0,a.jsx)("div",{children:e.client_box_remark||"N/A"})]})})]}),(0,a.jsx)("tr",{children:(0,a.jsxs)("td",{colSpan:8,className:"p-3 text-primarydarkgray py-3 text-sm font-medium gap-5",children:[(0,a.jsx)("div",{className:"px-3",children:s("storage_manage.item_photo")}),(0,a.jsx)("div",{className:"flex justify-start gap-3 my-3 overflow-x-auto",children:e.client_photos&&e.client_photos.length>0?e.client_photos.map((e,t)=>(0,a.jsx)("img",{src:e,alt:"ç©åç¸ç",width:300,className:"rounded-xl object-contain border border-primarydarkgray-2"},t)):(0,a.jsx)("div",{className:"px-3",children:"N/A"})})]})})]})]},"".concat(e.inventory_id,"-inventory"))})})]})})})})})})};var A=r(53341),U=r(2943),Y=r(29083),D=r(7246),C=r(31432),M=r(80179),B=r(79837),P=r(42353),F=r(51393),T=!0;let L=e=>{var t,r,j,S,k,T,L,K,O,z,R,$,E,H,V,I,W,X,Z,J,Q,G,ee,et,er,ea,en,ei,es,eo,el,ec,ed,em,e_;let{data:eu}=e,{t:ex}=(0,N.Bd)("common"),ep=eu.holiday.map((e,t)=>({holiday_start:b()(e.dtstart[0],"YYYY-MM-DD").toDate(),holiday_name:e.summary})),[eh,eg]=(0,l.useState)(eu.user_address&&eu.user_address.length>0?eu.user_address[0]:null),[ey,ev]=(0,l.useState)(!1),[ef,ej]=(0,l.useState)(0),[eb,ew]=(0,l.useState)([]),{token:eS}=(0,B.A)(),eN=(0,y.useRouter)(),{pathname:ek,locale:eq}=eN,{order_id:eA}=eN.query,eU="zh-Hant"===eq,eY=e=>{eN.push(e)},eD=(0,l.useMemo)(()=>{var e,t,r;return null==(r=eu.order)||null==(t=r.order)||null==(e=t.inventory)?void 0:e.some(e=>{var t;return(null==e||null==(t=e.packing_box)?void 0:t.is_plastic)===!0})},[null==(r=eu.order)||null==(t=r.order)?void 0:t.inventory]),eC=async e=>{let t={...e,locale:eq,request_pick_up_box_date:e.request_pick_up_box_date,request_pick_up_box_time:e.request_pick_up_box_time,user_address_id:eh&&eh.user_address_id};if(eD&&e.request_pick_up_box_date===e.request_delivery_box_date&&e.request_pick_up_box_time<e.request_delivery_box_time)return void e$({variant:"destructive",title:ex("general.pickup_time_after_delivery")});await o.A.post("".concat(s.o.server_path,"/order/terminate/").concat(eA),t,{headers:{Authorization:"Bearer ".concat(eS)}}).then(async e=>{if(e.data&&e.data.data){var t,r;eN.replace(null==(r=e.data)||null==(t=r.data)?void 0:t.stripe_url)}else e$({variant:"destructive",title:ex("terminate_order.termination_failed")})}).catch(e=>{var t,r;e$({variant:"destructive",title:(null==(r=e.response)||null==(t=r.data)?void 0:t.message)||ex("order_creation_failed")})})},eM={salutation:null==eu||null==(j=eu.user_detail)?void 0:j.salutation,first_name:null!=(G=null==eu||null==(S=eu.user_detail)?void 0:S.first_name)?G:"",last_name:null!=(ee=null==eu||null==(k=eu.user_detail)?void 0:k.last_name)?ee:"",contact_no:null!=(et=null==eu||null==(T=eu.user_detail)?void 0:T.contact_no)?et:"",email:null!=(er=null==eu||null==(L=eu.user_detail)?void 0:L.email)?er:"",region:null!=(ea=null==eu||null==(K=eu.order)?void 0:K.order.order_appointments.region)?ea:"",district:null!=(en=null==eu||null==(O=eu.order)?void 0:O.order.order_appointments.district)?en:"",street_name:null!=(ei=null==eu||null==(z=eu.order)?void 0:z.order.order_appointments.street_name)?ei:"",street_no:null!=(es=null==eu||null==(R=eu.order)?void 0:R.order.order_appointments.street_no)?es:"",building_name:null!=(eo=null==eu||null==($=eu.order)?void 0:$.order.order_appointments.building_name)?eo:"",floor:null!=(el=null==eu||null==(E=eu.order)?void 0:E.order.order_appointments.floor)?el:"",unit:null!=(ec=null==eu||null==(H=eu.order)?void 0:H.order.order_appointments.unit)?ec:"",is_staircase:null!=(ed=null==(V=eu.order)?void 0:V.order.order_appointments.is_staircase)&&ed,staircase_count:null!=(em=null==(I=eu.order)?void 0:I.order.order_appointments.staircase_count)?em:0,request_delivery_box_date:null,request_delivery_box_time:null,request_pick_up_box_date:null,request_pick_up_box_time:null,is_return_plastic_box_today:null,is_return_plastic_box_later:!!eD||null,agree_terms:!1},eB=c.Ik({salutation:c.Yj().required(ex("terminate_order.salutation_required")),first_name:c.Yj().required(ex("terminate_order.first_name_required")),last_name:c.Yj().required(ex("terminate_order.last_name_required")),contact_no:c.ai().required(ex("terminate_order.contact_no_required")),email:c.Yj().email(ex("terminate_order.invalid_email")).required(ex("terminate_order.email_required")),is_staircase:c.zM().required(ex("terminate_order.staircase_required")),staircase_count:c.ai().when("is_staircase",{is:!0,then:e=>e.required(ex("terminate_order.staircase_count_required")).min(1,ex("terminate_order.staircase_count_min")),otherwise:e=>e.notRequired()}),request_delivery_box_date:c.p6().required(ex("terminate_order.select_date_required")),request_delivery_box_time:c.Yj().required(ex("terminate_order.pickup_time_required")),is_return_plastic_box_today:c.zM().nullable(),request_pick_up_box_date:c.p6().when("is_return_plastic_box_later",{is:!0,then:e=>e.required(ex("terminate_order.other_day_return_date_required")),otherwise:e=>e.notRequired().nullable()}),request_pick_up_box_time:c.Yj().when("is_return_plastic_box_later",{is:!0,then:e=>e.required(ex("terminate_order.other_day_return_time_required")),otherwise:e=>e.notRequired().nullable()}),agree_terms:c.zM().oneOf([!0],ex("terminate_order.term_required"))}),{handleSubmit:eP,handleChange:eF,values:eT,errors:eL,touched:eK,setFieldValue:eO,isSubmitting:ez}=(0,d.Wx)({initialValues:eM,validationSchema:eB,onSubmit:async e=>{if(eD&&(e.request_pick_up_box_date,null===e.request_pick_up_box_time))return void e$({variant:"destructive",title:ex("terminate_order.plastic_box_return_required")});await eC(e)}}),eR=[{id:1,name:ex("contact_us.form_fields.salutation_mr"),value:"å
ç"},{id:2,name:ex("contact_us.form_fields.salutation_ms"),value:"å°å§"},{id:3,name:ex("contact_us.form_fields.salutation_mrs"),value:"太太"},{id:4,name:ex("contact_us.form_fields.salutation_not_disclosure"),value:"ä¸éé²"}],{toast:e$}=(0,U.dj)(),eE=(0,l.useMemo)(()=>
1{if(eu.order&&eu.order.order){var e,t;let r=eu.order.order,a=(0,P.X)({order_last_billing_date:b()(r.order_last_billing_date).format("YYYY-MM-DD"),order_end_date:b()(r.order_end_date).format("YYYY-MM-DD"),ordered_packing_boxes:r.ordered_packing_boxes||[],inventory:eu.inventory.inventory||[],min_charge:eu.order_charge},eu.packing_box,!0);null==a||a.fees[0].startDate,null==a||a.fees[0].endDate;let n=new Date(null==a?void 0:a.fees[0].startDate),i=new Date(null==a?void 0:a.fees[0].endDate);for(let e=1;e<(null==a?void 0:a.fees.length);e++){let t=new Date(null==a?void 0:a.fees[e].startDate),r=new Date(null==a?void 0:a.fees[e].endDate);t<n&&(n=t,null==a||a.fees[e].startDate),r>i&&(i=r,null==a||a.fees[e].endDate)}return{start:n,end:i,min_charge:null==(e=a.shortfallFees)?void 0:e.reduce((e,t)=>e+t.shortfall||0,0),amount:Math.round((null==a||null==(t=a.fees)?void 0:t.reduce((e,t)=>e+t.total,0))*10)/10}}},[eu.order,eT.request_delivery_box_date]),eH=eu.order.order.order_end_date,eV=()=>{ev(!0)},[eI,eW]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{(async()=>{try{var e,t,r,a;let n=await o.A.post("".concat(s.o.server_path,"/order/terminate-calculate/").concat(eu.order.order.order_id),{staircase_count:eh?eh.staircase_count:0,is20min:(null==eT?void 0:eT.is_return_plastic_box_today)===null&&(null==eT?void 0:eT.is_return_plastic_box_later)===null?null:!!(null==eT?void 0:eT.is_return_plastic_box_today),inventory_ids:(null==(t=eu.inventory)||null==(e=t.inventory)?void 0:e.map(e=>e.inventory_id))||[],is_full_order:!0},{headers:{Authorization:"Bearer ".concat(eS)}});n.data?(ew((null==(r=n.data)?void 0:r.tableData)||[]),ej((null==(a=n.data)?void 0:a.billingAmount)||0)):(ew([]),ej(0))}catch(e){console.error("Error calculating terminate fee:",e),e$({variant:"destructive",title:"è¨ç®è²»ç¨å¤±æ"})}})()},[eh,null==eT?void 0:eT.is_return_plastic_box_today,null==eT?void 0:eT.is_return_plastic_box_later,eS]),(0,a.jsxs)("div",{className:"w-full flex justify-center items-center",children:[(0,a.jsx)(Y.A,{currentPath:ek}),(0,a.jsxs)("div",{className:"w-[90%] xs:w-3/4 flex flex-col justify-center items-center gap-5 ",children:[(0,a.jsx)(i.A,{title:ex("terminate_order.title")}),(0,a.jsx)(n.A,{Title:ex("terminate_order.personal_info"),className:"text-[22px] xs:text-[3xl]"}),(0,a.jsx)("div",{className:"w-full",children:(0,a.jsxs)("form",{onSubmit:eP,className:"w-full",children:[(0,a.jsxs)("div",{className:"grid grid-cols-4 gap-3",children:[(0,a.jsx)(m.A,{label:ex("terminate_order.member_id"),value:eu.user_detail.user_no,width:"w-full",className:"lg:col-span-1 md:col-span-2 col-span-4"}),(0,a.jsx)(_.A,{label:ex("terminate_order.salutation"),name:"salutation",value:eT.salutation,onChange:e=>eO("salutation",e),touched:!!eK.salutation,error:eL.salutation,width:"w-full",disable:!0,options:eR,className:"lg:col-span-1 md:col-span-2 col-span-4"}),(0,a.jsx)(u.A,{label:ex("terminate_order.last_name"),name:"last_name",placeholder:ex("terminate_order.name_placeholder"),value:eT.last_name,onChange:eF,touched:!!eK.last_name,error:eL.last_name,disable:!0,width:"w-full",className:"lg:col-span-1 md:col-span-2 col-span-4"}),(0,a.jsx)(u.A,{label:ex("terminate_order.first_name"),name:"first_name",placeholder:ex("terminate_order.name_placeholder"),value:eT.first_name,onChange:eF,touched:!!eK.first_name,error:eL.first_name,disable:!0,width:"w-full",className:"lg:col-span-1 md:col-span-2 col-span-4"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-4 gap-3",children:[(0,a.jsx)(u.A,{label:ex("terminate_order.phone_number"),name:"contact_no",placeholder:ex("terminate_order.phone_placeholder"),value:eT.contact_no,onChange:eF,touched:!!eK.contact_no,error:eL.contact_no,disable:!0,width:"w-full",className:"lg:col-span-1 md:col-span-2 col-span-4"}),(0,a.jsx)(u.A,{label:ex("terminate_order.email"),name:"email",placeholder:ex("terminate_order.email_placeholder"),value:eT.email,onChange:eF,touched:!!eK.email,error:eL.email,disable:!0,width:"w-full",className:"lg:col-span-3 md:col-span-2 col-span-4"})]}),(0,a.jsx)(x.A,{title:ex("terminate_order.return_address"),className:"px-5"}),0==eu.user_address.length?(0,a.jsxs)("div",{onClick:()=>eN.push(g.W.USER_PROFILE),className:"w-full flex flex-col justify-center items-center gap-2 hover:scale-110 transition-transform duration-200",children:[(0,a.jsx)("img",{src:C.oy,alt:"",width:30,height:30,className:"cursor-pointer rotate-45"}),(0,a.jsx)("div",{className:"text-primaryorange text-bold text-lg cursor-pointer",children:ex("terminate_order.add_address")})]}):(0,a.jsx)("div",{className:"px-5",children:(0,a.jsx)(M.A,{addressList:eu.user_address,selected:eh,setSelected:e=>{eg(e)}})}),(0,a.jsxs)("div",{className:"w-full h-auto mx-auto justify-between items-center my-[50px] px-5",children:[(0,a.jsx)("div",{className:"font-bold text-primaryblue text-[22px] xs:text-3xl my-3",children:ex("terminate_order.pickup_time")}),(0,a.jsx)("div",{className:"text-red-600 text-[20px] my-[8px] mb-5",children:ex("terminate_order.return_box_warning")}),(0,a.jsxs)("div",{className:"grid grid-cols-2 w-full h-auto mx-auto justify-start items-start gap-3",children:[(0,a.jsx)(D.A,{value:eT.request_delivery_box_date?b()(eT.request_delivery_box_date):null,contractEndDate:b()(eu.order.order.order_end_date),onChange:e=>{eO("request_delivery_box_date",e?e.format("YYYY-MM-DD"):null),(null==e?void 0:e.isAfter(eT.request_pick_up_box_date))&&eO("request_pick_up_box_date",e?e.format("YYYY-MM-DD"):null)},touched:!!eK.request_delivery_box_date,error:eL.request_delivery_box_date,className:"xs:col-span-1 col-span-2",holiday:ep,hasPlasticBox:eD,isZh:eU}),(0,a.jsx)("div",{className:"xs:col-span-1 col-span-2 flex flex-col justify-start items-start",children:(0,a.jsx)(f.A,{value:eT.request_delivery_box_time,onChange:e=>eO("request_delivery_box_time",e),touched:!!eK.request_delivery_box_time,error:eL.request_delivery_box_time,className:"w-full"})})]})]}),eD&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.A,{Title:ex("terminate_order.return_box"),className:"my-[60px] mb-[10px] text-[22px] xs:text-3xl"}),(0,a.jsxs)("div",{className:"w-full h-auto mx-auto justify-between items-center my-[40px] px-5",children:[(0,a.jsxs)("label",{className:"flex items-center space-x-2 cursor-pointer",children:[(0,a.jsx)("div",{className:"font-bold text-primaryblue text-[22px] xs:text-3xl",children:ex("terminate_order.other_day_return_title")}),eL.is_return_plastic_box_later&&(0,a.jsx)("div",{className:"text-red-500 text-[20px]",children:eL.is_return_plastic_box_later})]}),(0,a.jsx)("div",{className:"text-red-600 text-[20px] my-[8px] mb-5",children:ex("terminate_order.return_policy")}),(0,a.jsxs)("div",{className:"grid grid-cols-2 w-full h-auto mx-auto justify-start items-start gap-3",children:[(0,a.jsx)(v.A,{value:eT.request_pick_up_box_date?b()(eT.request_pick_up_box_date):null,onChange:e=>eO("request_pick_up_box_date",e?e.format("YYYY-MM-DD"):null),touched:!!eK.request_pick_up_box_date,error:eL.request_pick_up_box_date,className:"xs:col-span-1 col-span-2",holiday:ep,order_end_date:eH.toString(),return_date:null!=(e_=eT.request_delivery_box_date)?e_:"",isZh:eU}),(0,a.jsx)("div",{className:"xs:col-span-1 col-span-2 flex flex-col justify-start items-start",children:(0,a.jsx)(f.A,{value:eT.request_pick_up_box_time,onChange:e=>eO("request_pick_up_box_time",e),touched:!!eK.request_pick_up_box_time,error:eL.request_pick_up_box_time,className:"w-full"})})]})]})]}),(0,a.jsx)(n.A,{Title:ex("terminate_order.contract_inventory_info"),
1className:"my-[100px] mb-[50px] text-[22px] xs:text-3xl"}),(0,a.jsx)(q,{data:eu.inventory,locale:eq}),(0,a.jsx)(n.A,{Title:ex("terminate_order.fee_list"),className:"mt-[100px] mb-6 text-[22px] xs:text-3xl"}),eT.is_return_plastic_box_today&&(0,a.jsx)(x.A,{title:ex("terminate_order.same_day_return"),className:"pb-5 px-6"}),(0,a.jsx)(A.k,{cartonBoxQuantity:null==(X=eu.inventory)||null==(W=X.inventory)?void 0:W.length,plasticBoxQuantity:null==(J=eu.inventory)||null==(Z=J.inventory)?void 0:Z.filter(e=>!0==e.packing_box.is_plastic).length,staircase_qty:eh?eh.staircase_count:0,is20min:null===eT.is_return_plastic_box_today&&null===eT.is_return_plastic_box_later?void 0:!!eT.is_return_plastic_box_today,order_charge:eu.order_charge,remainMonthlyFee:eE,tableData:eb,locale:eq}),(0,a.jsxs)("div",{className:"flex w-full justify-end items-end gap-5 px-6 mt-2 md:mt-0",children:[(0,a.jsx)(x.A,{title:ex("terminate_order.total_fee"),className:"!w-fit text-[22px] xs:text-2xl"}),(0,a.jsx)(w.A,{label:"",value:ef,width:"w-fit min-w-[200px]"})]}),(0,a.jsxs)("div",{className:"flex flex-col h-auto mx-auto justify-center items-start gap-3",children:[(0,a.jsx)(x.A,{title:ex("terminate_order.payment_method"),marginTop:"mt-10",className:"text-[22px] xs:text-3xl"}),(0,a.jsx)("div",{className:"flex justify-start items-center gap-3 w-full",children:null==(Q=eu.payment_method)?void 0:Q.map(e=>(0,a.jsx)(p.A,{image:e.image,name:e.name},e.id))}),(0,a.jsxs)("div",{className:"flex flex-col justify-start gap-4 my-6",children:[(0,a.jsxs)("div",{className:"flex flex-wrap",children:[(0,a.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,a.jsx)("input",{type:"checkbox",name:"agree_terms",checked:eT.agree_terms,className:"w-5 h-5 flex"}),(0,a.jsx)("p",{className:"text-[20px] text-primarylightgray",children:ex("terminate_order.accept_terms_1")})]}),(0,a.jsx)("p",{className:"md:mx-2 mx-1 text-[20px] font-bold underline text-primarylightgray cursor-pointer",onClick:()=>eV(),children:ex("terminate_order.accept_terms_2")}),(0,a.jsxs)("p",{className:"text-[20px] font-bold text-primaryorange cursor-pointer",onClick:()=>eV(),children:["(",ex("general.required_read"),")"]})]}),eL.agree_terms&&eK.agree_terms&&(0,a.jsx)("div",{className:"text-red-500 text-sm",children:eL.agree_terms})]}),(0,a.jsxs)("div",{className:"w-full h-auto p-5 flex justify-center items-center gap-5 my-10",children:[(0,a.jsx)(h.A,{disable:ez,className:"w-[300px] h-[40px]",label:ex("terminate_order.back_to_previous"),onClickFunction:()=>eY(g.W.PACKING_BOX_APPLY)}),(0,a.jsx)(h.A,{disable:ez,className:"w-[300px] h-[40px]",label:ez?ex("terminate_order.submitting"):ex("terminate_order.confirm"),onClickFunction:eP})]})]})]})}),(0,a.jsx)(F.f,{isOpen:ey,handleCloseDialog:()=>{ev(!1),eO("agree_terms",!1)},handleAgreeDialog:()=>{ev(!1),eO("agree_terms",!0)}})]})]})}},16662:(e,t,r)=>{"use strict";r.d(t,{p:()=>a});let a=(e,t,r)=>"en-US"==e?t:r},29083:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var a=r(37876);r(14232);var n=r(77328),i=r.n(n),s=r(31432),o=r(89099),l=r(77536);let c=e=>{let{currentPath:t,customTitle:r,customDescription:n}=e,c=(0,o.useRouter)(),d=(0,l.A)(),{asPath:m}=c,_="https://carrykuma.com.hk",u=m.split("#",1)[0].replace(/^\/(?:en-us|en-US|zh-hant|zh-Hant)(?=\/|$)/,"")||"/",x="/en-us".concat("/"===u?"":u),p="".concat(_).concat("en-US"===d?x:u),h="Carry Kuma",g={"":{title:"en-US"==d?"Carry Kuma":"Carry Kuma︰ä¸éå²åç®±ãé»åç©æµæå",description:"en-US"==d?"About us , Carry Kuma Services":"Carry Kuma æä¾å°æ¥ä¸éå²åç®±æååé»åç©æµæ¹æ¡ï¼æ¶µèå®¶å±
è¿·ä½ ååã忥å²åæåãHKTVmall é»åç©æµãShopifyï¼Shopline ç¶²åºç©æµæåãç¶²åºåå²ç®¡ç系統çãé
åç²ç´å庫èå°æ¥åéï¼å©ä½ æ´å®å¿ãæ´é«æå°èçå²ååç©æµéæ±ã"},"/":{title:"en-US"==d?"Carry Kuma":"Carry Kuma︰ä¸éå²åç®±ãé»åç©æµæå",description:"en-US"==d?"About us , Carry Kuma Services":"Carry Kuma æä¾å°æ¥ä¸éå²åç®±æååé»åç©æµæ¹æ¡ï¼æ¶µèå®¶å±
è¿·ä½ ååã忥å²åæåãHKTVmall é»åç©æµãShopifyï¼Shopline ç¶²åºç©æµæåãç¶²åºåå²ç®¡ç系統çãé
åç²ç´å庫èå°æ¥åéï¼å©ä½ æ´å®å¿ãæ´é«æå°èçå²ååç©æµéæ±ã
1"},"/verify_email":{title:"en-US"==d?"Email Verification - Storage Box Service":"é»éµé©è - å²åç®±æå",description:"en-US"==d?"Verify your email address to complete your account registration and start using our storage box services.":"é©èæ¨çé»éµå°å以宿右æ¶è¨»å並éå§ä½¿ç¨æåçå²åç®±æåã"},"/user_profile":{title:"en-US"==d?"User Profile - Storage Box Service":"ç¨æ¶è³æ - å²åç®±æå",description:"en-US"==d?"Manage your personal information and storage box service order details.":"ç®¡çæ¨çåäººè³æèå²åç®±æåè¨å®è©³æ
ã"},"/additional_service/list":{title:"en-US"==d?"Additional Storage List - Storage Box Service":"æ°å¢å²åå表 - å²åç®±æå",description:"en-US"==d?"Browse and manage your additional storage services for door-to-door storage boxes.":"ç覽åç®¡çæ¨çæ°å¢å²åï¼è¼é¬ç³è«ä¸éå²åç®±ç¸éæåã"},"/mid_term_retrieval/list":{title:"en-US"==d?"Mid-Term Retrieval List - Storage Box Service":"ä¸éæåå表 - å²åç®±æå",description:"en-US"==d?"View and manage mid-term retrieval services for flexible storage box needs.":"æ¥çå管çä¸éæåæåï¼æ¹ä¾¿éæ´»èçæ¨çå²åç®±éæ±ã"},"/terminate_order/list":{title:"en-US"==d?"Terminate Order List - Storage Box Service":"çµæ¢è¨å®å表 - å²åç®±æå",description:"en-US"==d?"View and manage terminated orders for your storage box services.":"æ¥çå管ççµæ¢è¨å®ï¼è¼é¬èçæ¨çå²åç®±è¨å®çµæ¢éæ±ã"},"/renewal_service/list":{title:"en-US"==d?"Renewal List - Storage Box Service":"çºç´å表 - å²åç®±æå",description:"en-US"==d?"View and manage renewal orders to extend your storage box services.":"æ¥çå管ççºç´è¨å®ï¼è¼é¬èçæ¨çå²åç®±è¨å®çºç´éæ±ã"},"/payment/failure":{title:"en-US"==d?"Payment Failure - Storage Box Service":"æ¯ä»å¤±æ - å²åç®±æå",description:"en-US"==d?"Your payment could not be completed. Please check payment details or contact support.":"æ¨çæ¯ä»æªè½å®æï¼è«æª¢æ¥æ¯ä»è©³æ
æè¯ç¹«æ¯æä»¥è§£æ±ºåé¡ã"}},y={title:h,description:"en-US"==d?"Professional door-to-door storage box services tailored to meet your storage needs.":"æä¾å°æ¥çä¸éå²åç®±æåï¼æ»¿è¶³æ¨çå²åéæ±ã"},v=y;(r||n)&&(v={title:r||y.title,description:n||y.description});let f=/^\/terminate_order\/(\d+)$/,j=/^\/renewal_service\/(\d+)$/,b=/^\/payment\/success\/(\d+)$/,w=/^\/mid_term_retrieval\/(\d+)$/,S=/^\/inventory\/(\d+)\/(\d+)$/,N=/^\/additional_service\/register\/(\d+)$/,k=/^\/auth\/reset_password\/([a-zA-Z0-9\-_]+)$/,q=t.match(/^\/additional_service\/order_form\/(\d+)$/);if(q){let e=q[1];v={title:"en-US"==d?"Additional Storage Order Form ".concat(e," - Storage Box Service"):"æ°å¢å²åè¨å®è¡¨ ".concat(e," - å²åç®±æå"),description:"en-US"==d?"Manage the additional service order form for order ".concat(e," and enjoy professional storage solutions."):"管çè¨å® ".concat(e," çéå æåè¨å®è¡¨ï¼äº«åå°æ¥å²åè§£æ±ºæ¹æ¡ã")}}else if(t.match(N)){let e=t.match(N)[1];v={title:"en-US"==d?"Additional Storage Registration ".concat(e," - Storage Box Service"):"æ°å¢å²å註å ".concat(e," - å²åç®±æå"),description:"en-US"==d?"Register additional services for order ".concat(e," to start using storage box solutions."):"註åè¨å® ".concat(e," çéå æåï¼éå§ä½¿ç¨å²åç®±è§£æ±ºæ¹æ¡ã")}}else if(t.match(S)){let e=t.match(S),r=e[1],a=e[2];v={title:"en-US"==d?"Storage Box Order ".concat(r," - Packing Box ").concat(a):"å²åç®±è¨å® ".concat(r," - å
è£ç®± ").concat(a),description:"en-US"==d?"View detailed packing box information for storage box order ".concat(r," (ID: ").concat(a,")."):"æ¥çå²åç®±è¨å® ".concat(r," ç詳細å
è£ç®±è³è¨ï¼ID: ").concat(a,"ï¼ã")}}else if(t.match(f)){let e=t.match(f)[1];v={title:"en-US"==d?"Terminate Order ".concat(e," - Storage Box Service"):"çµæ¢è¨å® ".concat(e," - å²åç®±æå"),description:"en-US"==d?"Manage the termination process for order ".concat(e," to handle your storage box order termination needs."):"管çè¨å® ".concat(e," ççµæ¢æµç¨ï¼èçæ¨çå²åç®±è¨å®çµæ¢éæ±ã")}}else if(t.match(j)){let e=t.match(j)[1];v={title:"en-US"==d?"Renewal Service Order ".concat(e," - Storage Box Service"):"çºç´æåè¨å® ".concat(e," - å²åç®±æå"),description:"en-US"==d?"Manage the renewal service for order ".concat(e," to extend your storage box service duration."):"管çè¨å® ".concat(e," ççºç´æåï¼å»¶é·æ¨çå²åç®±æåæéã")}}else if(t.match(b)){let e=t.match(b)[1];v={title:"en-US"==d?"Payment Successful - Order ".concat(e," - Storage Box Service"):"æ¯ä»æå - è¨å® ".concat(e," - å²åç®±æå"),description:"en-US"==d?"Payment for order ".concat(e," has been successfully completed. Thank y
1ou for using our storage box service!"):"è¨å® ".concat(e," çæ¯ä»å·²æåå®æï¼æè¬æ¨ä½¿ç¨æåçå²åç®±æåï¼")}}else if(t.match(w)){let e=t.match(w)[1];v={title:"en-US"==d?"Mid-Term Retrieval Order ".concat(e," - Storage Box Service"):"ä¸éæåè¨å® ".concat(e," - å²åç®±æå"),description:"en-US"==d?"Manage the mid-term retrieval service for order ".concat(e," to flexibly handle your storage box needs."):"管çè¨å® ".concat(e," çä¸éæåæåï¼éæ´»èçæ¨çå²åç®±éæ±ã")}}else t.match(k)?(t.match(k)[1],v={title:"en-US"==d?"Reset Password - Storage Box Service":"éè¨å¯ç¢¼ - å²åç®±æå",description:"en-US"==d?"Securely reset your password using the provided token to ensure account safety and continue using storage box services.":"ä½¿ç¨æä¾ç令çå®å
¨éè¨æ¨çå¯ç¢¼ï¼ç¢ºä¿æ¨ç帳æ¶å®å
¨ä¸¦ç¹¼çºä½¿ç¨å²åç®±æåã"}):g[t]&&(v=g[t]);let A={"@context":"https://schema.org","@type":"Organization",name:h,alternateName:["Carry Kuma","carrykuma"],url:_,logo:"".concat(_).concat(s.P$),description:v.description,founder:"å¨é»ç©æµæåæéå
¬å¸",foundingLocation:{"@type":"Place",name:"Hong Kong"},areaServed:["Hong Kong","Shenzhen"],serviceType:["Storage Services","Logistics","Door-to-Door Storage"],sameAs:["https://api.whatsapp.com/send?phone=85263188761"],contactPoint:{"@type":"ContactPoint",telephone:"+852-6318-8761",contactType:"customer service"}};return(0,a.jsxs)(i(),{children:[(0,a.jsx)("title",{children:v.title}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no"}),(0,a.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:s.P$}),(0,a.jsx)("meta",{name:"description",content:v.description}),(0,a.jsx)("meta",{name:"keywords",content:"en-US"==d?"storage service, door-to-door storage, Hong Kong storage, logistics, e-commerce storage":"å²åæå, ä¸éå²å, 馿¸¯å²å, ç©æµ, é»åå²å"}),(0,a.jsx)("meta",{name:"author",content:h}),(0,a.jsx)("meta",{name:"robots",content:"index, follow"}),(0,a.jsx)("link",{rel:"canonical",href:p}),(0,a.jsx)("link",{rel:"alternate",hrefLang:"zh-Hant",href:"".concat(_).concat(u)}),(0,a.jsx)("link",{rel:"alternate",hrefLang:"en",href:"".concat(_).concat(x)}),(0,a.jsx)("link",{rel:"alternate",hrefLang:"x-default",href:"".concat(_).concat(u)}),(0,a.jsx)("meta",{property:"og:site_name",content:h}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:description",content:v.description}),(0,a.jsx)("meta",{property:"og:title",content:v.title}),(0,a.jsx)("meta",{property:"og:image:secure_url",itemProp:"image",content:"".concat(_).concat(s.P$)}),(0,a.jsx)("meta",{property:"og:image",itemProp:"image",content:"".concat(_).concat(s.P$)}),(0,a.jsx)("meta",{property:"og:image:type",content:"image/png"}),(0,a.jsx)("meta",{property:"og:image:width",content:"200"}),(0,a.jsx)("meta",{property:"og:image:height",content:"200"}),(0,a.jsx)("meta",{property:"og:url",content:p}),(0,a.jsx)("meta",{property:"og:locale",content:"en-US"==d?"en_US":"zh_HK"}),(0,a.jsx)("meta",{property:"og:image:alt",content:h}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:title",content:v.title}),(0,a.jsx)("meta",{name:"twitter:description",content:v.description}),(0,a.jsx)("meta",{name:"twitter:image",content:"".concat(_).concat(s.P$)}),(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(A)}}),(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"WebSite",name:h,alternateName:h,url:_,potentialAction:{"@type":"SearchAction",target:"".concat(_,"/search?q={search_term_string}"),"query-input":"required name=search_term_string"}})}}),(0,a.jsx)("meta",{name:"application-name",content:h}),(0,a.jsx)("meta",{name:"apple-mobile-web-app-title",content:h}),(0,a.jsx)("meta",{name:"msapplication-TileColor",content:"#FFFFFF"}),(0,a.jsx)("meta",{name:"theme-color",content:"#FFFFFF"})]})}},55255:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(37876);r(14232);var n=r(69241);let i=e=>{let{Title:t,className:r,as:i="div"}=e;return(0,a.jsx)(i,{className:(0,n.A)("min-h-[76px] flex justify-center items-center xs:justify-start pl-0 xs:pl-[45px] w-full rounded-full bg-primaryblue text-white text-center xs:text-left text-3xl font-black my-auto",r||""),children:(0,a.jsx)("h2"===i?"
1span":"p",{className:"w-[90%] h-fit",children:t})})}},96241:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(37876);r(14232);var n=r(69241);let i=e=>{let{title:t,className:r,as:i="div"}=e;return(0,a.jsx)(i,{className:(0,n.A)("w-full h-[100px] mx-auto mt-5 mb-6 flex justify-start items-center text-primaryorange text-[36px] xs:text-5xl font-light",r||""),children:t})}}},e=>{var t=t=>e(e.s=t);e.O(0,[1355,4890,9632,8381,252,7688,636,6593,8792],()=>t(1917)),_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.