PageSourceSearch

https://owner.unban.ai/_next/static/chunks/9255-7019b7419d0ab9fa.js

js unban.ai collected 2026-10-02 00:28:34 UTC 255,445 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fc5f3ca0-adb1-4d68-93a4-f43653ef090d",e._sentryDebugIdIdentifier="sentry-dbid-fc5f3ca0-adb1-4d68-93a4-f43653ef090d")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9255],{4267:function(e,t,n){var o,r=n(67294);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}t.Z=function(e){return r.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),o||(o=r.createElement("path",{stroke:"#8E96A4",d:"m2.499 2.498 11.003 11.004m0-11.004L2.499 13.502"})))}},84334:function(e,t,n){var o,r=n(67294);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}t.Z=function(e){return r.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none"},e),o||(o=r.createElement("path",{stroke:"#636874",d:"M15.137 2.863 2.863 15.137m12.274 0L2.863 2.863"})))}},42705:function(e,t,n){var o=n(85893);t.Z=function(e){var t=e.color,n=void 0===t?"#636874":t;return(0,o.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-sentry-element":"svg","data-sentry-component":"IconRefresh","data-sentry-source-file":"icon-refresh.tsx",children:[(0,o.jsx)("path",{d:"M14.25 4.8497C12.9673 3.39646 11.0907 2.47989 9 2.47989C5.13401 2.47989 2 5.6139 2 9.47989C2 13.3459 5.13401 16.4799 9 16.4799C12.866 16.4799 16 13.3459 16 9.47989C16 9.13048 15.9744 8.78706 15.925 8.45139",stroke:n,strokeWidth:"1.5",strokeLinecap:"round","data-sentry-element":"path","data-sentry-source-file":"icon-refresh.tsx"}),(0,o.jsx)("path",{d:"M14.252 4.8627L10.3893 5.26562",stroke:n,strokeWidth:"1.5",strokeLinecap:"round","data-sentry-element":"path","data-sentry-source-file":"icon-refresh.tsx"}),(0,o.jsx)("path",{d:"M14.252 4.8627L13.849 1.00001",stroke:n,strokeWidth:"1.5",strokeLinecap:"round","data-sentry-element":"path","data-sentry-source-file":"icon-refresh.tsx"})]})}},16870:function(e,t,n){n.d(t,{Z:function(){return a}});var o=n(85893);n(67294);var r=function(e){var t=e.chip,n=e.onClickChip;return(0,o.jsxs)("button",{className:"flex flex-none rounded-[8px] border border-b-co-08 bg-co-10 px-[12px] py-[5px] text-[14px] text-co-04",onClick:function(){return n(t)},"data-sentry-component":"Chip","data-sentry-source-file":"Chip.tsx",children:[(0,o.jsx)("p",{className:"max-w-[140px] overflow-hidden text-ellipsis whitespace-nowrap",children:t.left}),"/",t.right]})},i=n(4267),a=function(e){var t=e.title,n=e.tooltip,a=e.chips,s=e.onClickChip,l=e.isShowTooltip,d=e.setIsShowTooltip,c=e.isCjEnm;return(0,o.jsxs)("div",{"data-sentry-component":"Chips","data-sentry-source-file":"Chips.tsx",children:[(0,o.jsxs)("div",{className:"relative mb-[8px]",children:[(0,o.jsx)("p",{className:"text-[14px] font-bold leading-[22px] text-co-04",children:t}),l&&(0,o.jsxs)("div",{className:"cc-tooltip left-bottom absolute bottom-[8px] left-0 flex items-center gap-[12px] opacity-80",children:[n,(0,o.jsx)("button",{onClick:function(){return d(!l)},children:(0,o.jsx)(i.Z,{})})]})]}),(0,o.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:a.map(function(e,t){return c&&"트레일러"===e.left?null:(0,o.jsx)(r,{chip:e,onClickChip:s},"".concat(e.left).concat(t))})})]})}},58377:function(e,t,n){var o=n(72253),r=n(14932),i=n(47702),a=n(24043),s=n(85893),l=n(40481),d=n(67294),c=d.forwardRef(function(e,t){var n=e.isEnabledDateIcon,c=e.disabledlabel,u=e.value,p=e.className,m=e.inputClassName,h=(0,i._)(e,["isEnabledDateIcon","disabledlabel","value","className","inputClassName"]),f=(0,o._)({},h);delete f.className,delete f.value;var g=(0,d.useRef)(null),y=(0,a._)((0,d.useState)(""),2),x=y[0],v=y[1],T=(0,a._)((0,d.useState)(!1),2),I=T[0],N=T[1];return(0,d.useEffect)(function(){c?v(c):v(u)},[c,u]),(0,s.jsxs)("div",{className:p,onClick:function(){N(!0),setTimeout(function(){var e;return null==g?void 0:null===(e=g.current)||void 0===e?void 0:e.focus()},66)},children:[I?(0,s.jsx)("input",(0,r._)((0,o._)({ref:g,autoComplete:"off",defaultValue:x,className:"w-full cursor-pointer outline-none ".concat(m)},f),{readOnly:!1,onBlur:function(){return N(!1)}}),"input1"):(0,s.jsx)("input",(0,r._)((0,o._)({autoComplete:"off",value:x,className:"w-full cursor-pointer outline-none ".concat(m)},f),{readOnly:!0}),"input2"),n&&(0,s.jsx)(l.Z,{})]})});t.Z=c},67001:function(e,t,n){n.d(t,{Z:function(){return a}});var o=n(85893),r=n(5233),i=n(75855);function a(e){var t,n=e.message,a=e.onClose,s=(0,r.$G)(["order"]).t;return(0,o.jsx)(i.CommonModal,{title:"",modalWidth:"470px",modalIsOpen:!0,titleVisible:!1,buttonVisible:!0,confirmText:s("order:needToResetTerm.confirm"),handleComplete:a,handleClose:a,"data-sentry-element":"CommonModal","data-sentry-component":"ContractErrorModal","data-sentry-source-file":"ContractErrorModal.tsx",children:(0,o.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,o.jsx)("h4",{children:s("order:needToResetTerm.title")}),(0,o.jsx)("div",{className:"text-sm",dangerouslySetInnerHTML:{__html:null!==(t=null==n?void 0:n.replace(/\n/g,"<br/>
1"))&&void 0!==t?t:s("order:needToResetTerm.description")}})]})})}},15114:function(e,t,n){var o=n(85893),r=n(64247),i=n(34052),a=n(5233),s=n(29255),l=n(17351);t.Z=function(){var e=(0,a.$G)().t,t=l.Z.getCurrentUserFromStorage().isMilkrunNaverOwner,n=(0,s.Ws)(),d=n.isOpenedConfirmModal,c=n.orderTypeOptions,u=n.currentOrderType,p=n.setIsOpenedConfirmModal,m=n.handleChangeOrderType,h=n.handleConfirmModal;return(0,o.jsxs)("div",{className:"pb-4","data-sentry-component":"OrderTypeSelector","data-sentry-source-file":"OrderTypeSelector.tsx",children:[t?(0,o.jsx)("div",{className:"rounded-[4px] border-[1px] border-primary-01 p-[20px] text-center text-[16px] font-bold text-primary-01",children:"밀크런"}):(0,o.jsx)(r.$m,{options:c,selectedKey:u,onClickOption:function(e){return m(e.key)}}),d&&(0,o.jsx)(i.sm,{title:e("order:baros.modal.title"),description:e("order:baros.modal.description"),leftButtonLabel:e("order:button.cancel"),rightButtonLabel:e("order:button.confirm"),isOpened:d,onClickLeftButton:function(){return p(!1)},onClickRightButton:h})]})}},48358:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(85893),r=n(38095),i=n(5233),a=n(51763),s=n(11641),l=function(e){var t=e.onRegister,n=(0,i.$G)().t,l=(0,a.Lq)(),d=l.currentStep,c=l.currentOrderType,u=function(){switch(d){case a.I$.STEP_LOADING:return s.ZP.sendCustomEvent({event:"register_pickup_info",event_category:c});case a.I$.STEP_WAYPOINT:return s.ZP.sendCustomEvent({event:"register_waypoint_info",event_category:c});case a.I$.STEP_UNLOADING:return s.ZP.sendCustomEvent({event:"register_drop_info",event_category:c});case a.I$.STEP_SCHEDULE:return s.ZP.sendCustomEvent({event:"register_date_info",event_category:c});case a.I$.STEP_VEHICLE:return s.ZP.sendCustomEvent({event:"register_car_info",event_category:c});case a.I$.STEP_CARGO:return s.ZP.sendCustomEvent({event:"register_item_info",event_category:c})}};return(0,o.jsx)(r.gg,{type:"button",sizeType:"T42",label:n("order:button.registration"),onClick:function(){u(),t()},"data-sentry-element":"SolidButton","data-sentry-component":"CommonFormRegisterButton","data-sentry-source-file":"CommonFormRegisterButton.tsx"})},d=n(76893),c=function(e){var t=e.description,n=e.resetButton,r=e.onReset,i=e.onRegister,a=e.children;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"mb-10 flex flex-row items-center justify-between text-[26px] font-thin leading-[38px] -tracking-[0.52px]",children:[(0,o.jsx)("div",{children:t}),(0,o.jsxs)("div",{className:"flex gap-[16px] text-co-04",children:[n||(0,o.jsx)(d.Z,{onReset:r}),(0,o.jsx)(l,{onRegister:i,"data-sentry-element":"CommonFormRegisterButton","data-sentry-source-file":"CommonFormInnerLayout.tsx"})]})]}),a,(0,o.jsx)("div",{className:"flex flex-row-reverse",children:(0,o.jsx)(l,{onRegister:i,"data-sentry-element":"CommonFormRegisterButton","data-sentry-source-file":"CommonFormInnerLayout.tsx"})})]})}},99388:function(e,t,n){var o=n(85893);t.Z=function(e){var t=e.children,n=e.title;return(0,o.jsx)("div",{className:"h-full overflow-y-scroll","data-sentry-component":"CommonFormLayout","data-sentry-source-file":"CommonFormLayout.tsx",children:(0,o.jsx)("div",{className:"flex w-full flex-col items-center pb-[80px] pt-[64px]",children:(0,o.jsxs)("div",{className:"h-full w-full max-w-[460px] flex-col xl:max-w-[500px] 2xl:max-w-[700px]",children:[(0,o.jsx)("h2",{className:"text-9 mb-1 font-bold leading-[50px] -tracking-[0.072px]",children:n}),t]})})})}},76893:function(e,t,n){var o=n(85893),r=n(42705),i=n(5233);t.Z=function(e){var t=e.onReset,n=(0,i.$G)().t;return(0,o.jsxs)("button",{className:"flex items-center text-[14px] font-medium",onClick:t,"data-sentry-component":"CommonFormResetButton","data-sentry-source-file":"CommonFormResetButton.tsx",children:[(0,o.jsx)(r.Z,{"data-sentry-element":"Refresh
1Icon","data-sentry-source-file":"CommonFormResetButton.tsx"}),(0,o.jsx)("span",{className:"ml-[6px]",children:n("order:button.init")})]})}},72032:function(e,t,n){n.d(t,{Z:function(){return T}});var o=n(24043),r=n(85893),i=n(38095),a=n(67294),s=n(75855),l=n(85790),d=n(93967),c=n.n(d),u=function(e){var t=e.onSelectMemo,n=e.memo,s=(0,o._)((0,a.useState)(!1),2),l=s[0],d=s[1],u=(0,o._)((0,a.useState)(!1),2),p=u[0],m=u[1],h=(0,a.useRef)(null);return(0,a.useEffect)(function(){if(h.current){var e=parseFloat(getComputedStyle(h.current).lineHeight);h.current.scrollHeight>2*e&&m(!0)}},[h]),(0,r.jsxs)("div",{className:"mb-[10px] flex min-h-[78px] items-center justify-between bg-co-10 p-[24px]","data-sentry-component":"CommonRecentMemo","data-sentry-source-file":"CommonRecentMemo.tsx",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{ref:h,className:c()("w-[448px] overflow-hidden whitespace-pre-wrap break-all text-[12px] text-co-02 transition-all duration-300",{"max-h-none":l,"line-clamp-2 max-h-[448px]":!l&&p}),children:n}),p&&!l&&(0,r.jsx)("button",{onClick:function(){return d(!l)},className:"mt-[8px] text-[12px] text-fail",children:"더보기"})]}),(0,r.jsx)(i.ii,{className:"w-[51px]",type:"button",sizeType:"T30",label:"선택",onClick:function(){return t(n)},"data-sentry-element":"LineButton","data-sentry-source-file":"CommonRecentMemo.tsx"})]})},p=n(11010),m=n(97582),h=n(67848),f=n(71922),g=n(87465),y=function(e){var t,n=(0,f.Z)().getRecentOrderMemoList,o=(t=(0,p._)(function(){return(0,m.Jh)(this,function(t){switch(t.label){case 0:return[4,n(e)];case 1:return[2,t.sent().data.result]}})}),function(){return t.apply(this,arguments)});return(0,h.a)([g.qJ],o)},x=n(67698),v=n(85309),T=function(e){var t=e.onSelectMemo,n=e.currentZoneType,d=(0,(0,x.aF)().getCurrentUser)(),c=(0,o._)((0,a.useState)(!1),2),p=c[0],m=c[1],h=(0,o._)((0,a.useState)([]),2),f=h[0],g=h[1],T=y({memberId:d.memberId,orderLocationType:v.Hrc.orderLocationType[n]}),I=T.refetch,N=T.isSuccess,C=T.data,S=T.remove,b=function(e){m(!1),t(e)};return(0,a.useEffect)(function(){N&&C&&(g(C.map(function(e){return{memo:e}})),S())},[N]),(0,a.useEffect)(function(){p&&I()},[p]),(0,r.jsxs)("div",{"data-sentry-component":"CommonRecentMemoList","data-sentry-source-file":"CommonRecentMemoList.tsx",children:[(0,r.jsx)(i.ii,{className:"w-[125px]",type:"button",sizeType:"T30",label:"최근 메모 불러오기",onClick:function(){m(!0)},"data-sentry-element":"LineButton","data-sentry-source-file":"CommonRecentMemoList.tsx"}),p&&(0,r.jsx)(s.CommonModal,{closeText:null,handleClose:function(){return m(!1)},modalIsOpen:!0,title:"최근 메모 불러오기",buttonVisible:!1,modalWidth:"620px",contentClassName:"max-h-[calc(100vh-300px)] p-[24px] overflow-y-auto",handleComplete:null,confirmText:null,children:(0,r.jsxs)("div",{children:[f.length>0&&f.map(function(e){return(0,r.jsx)(u,{onSelectMemo:b,memo:e.memo},(0,l.Vj)())}),0===f.length&&(0,r.jsx)("div",{className:"my-[92px] text-center text-[18px] font-extrabold text-co-02",children:"최근 등록한 메모가 없습니다."})]})})]})}},15510:function(e,t,n){var o=n(85893),r=n(5233),i=n(66947),a=n(18441),s=n(92853),l=a.BI.LOADING_ZONE;t.Z=function(){var e=(0,r.$G)().t,t=(0,i.Pl)();return(0,o.jsx)(s.YJ,{title:e("order:loadingZone.title"),"data-sentry-element":"CommonFormLayout","data-sentry-component":"FormLoading","data-sentry-source-file":"FormLoading.tsx",children:(0,o.jsx)(s.Nw,{zoneType:l,zoneState:t,"data-sentry-element":"CommonFormLoadingUnloadingZone","data-sentry-source-file":"FormLoading.tsx"})})}},34841:function(e,t,n){n.d(t,{Z:function(){return x}});var o=n(85893),r=n(18446),i=n.n(r),a=n(45220),s=n.n(a),l=n(66947),d=n(18441),c=n(15510),u=n(46936),p=n(75416),m=n(59853),h=n(22722),f=n(62673),g=function(){return(0,o.jsxs)("div",{className:"flex h-[48px] w-full items-center justify-center gap-2 bg-[#81899B] bg-[linear-gradient(90deg,#576FEC,#122699)] text-[#ffffff]","data-sentry-component":"OnStyleOrderStepBanner","data-sentry-source-file":"OnStyleOrderStepBanner.tsx",children:[(0,o.jsx)("span",{className:"flex h-[21px] items-center rounded-[12px] bg-[#FFFFFF] px-[8px] py-[4px] text-[13px] text-[#122699]",children:"CJ ONSTYLE 파트너스"}),(0,o.jsx)("span",{className:"font-extrabold",children:"를 통해 더 운반을 이용중이십니다"})]})},y=n(67698),x=function(){var e=(0,l.Lq)(),t=e.currentStep,n=e.importOrderInfo,r=(0,(0,y.aF)().getCurrentUser)(),a=function(e){return i()(t,e)};return(0,o.jsxs)(o.Fragment,{children:[!!r.vendorInfo&&(0,o.jsx)(g,{}),a(d.I$.STEP_LOADING)&&(0,o.jsx)(c.Z,{}),a(d.I$.STEP_WAYPOINT)&&(0,o.jsx)(f.Z,{}),a(d.I$.STEP_UNLOADING)&&(0,o.jsx)(p.Z,{}),a(d.I$.STEP_SCHEDULE)&&s()(n)&&(0,o.jsx)(u.Z,{}),a(d.I$.STEP_VEHICLE)&&(0,o.jsx)(h.Z,{}
1),a(d.I$.STEP_CARGO)&&(0,o.jsx)(m.Z,{})]})}},46936:function(e,t,n){n.d(t,{Z:function(){return F}});var o=n(85893),r=n(17351),i=n(5233),a=n(29255),s=n(92853),l=n(18441),d=n(72253);n(81042);var c=n(75855),u=n(27484),p=n.n(u),m=n(23675),h=n(52822),f=n(23908),g=n(64247),y=n(24270),x=n(58377),v=n(58918),T=function(e){var t=e.type,n=e.loadingDate,r=e.minDate,a=e.inputReadOnly,l=e.onChangeDate,d=(0,i.$G)().t;return(0,o.jsx)(g.__,{required:!0,label:d("order:schedule.".concat(t.toLowerCase())),"data-sentry-element":"Label","data-sentry-component":"FormDatePickerDefault","data-sentry-source-file":"FormDatePickerDefault.tsx",children:(0,o.jsx)(c.CommonDatePicker,{required:!0,className:"relative flex h-[56px] w-[335px] cursor-pointer items-center rounded-[4px] border border-co-08 bg-co-11 px-[20px] py-[15px] text-[16px] font-normal leading-[26px] -tracking-[0.32px] text-co-02 outline-none focus:border-co-02",calendarClassName:"cc-common-date-picker !border !border-co-09 mt-[10px]",dateFormat:d("order:schedule.calendarFormat"),isOpened:!0,showTimeSelect:!0,selected:n,value:p()(n).format(f.$4.FULL_DATE_TIME_KO),minDate:r,minTime:r,maxTime:(0,m.default)((0,h.default)(new Date,59),23),customInput:void 0===a||a?(0,o.jsx)(y.Z,{}):(0,o.jsx)(x.Z,{}),renderCustomHeader:function(e){return(0,o.jsx)(s.fR,{params:e,onChangeDate:l})},onChange:function(e){return l((0,v.hV)(e))},"data-sentry-element":"CommonDatePicker","data-sentry-source-file":"FormDatePickerDefault.tsx"})})},I=n(24043),N=n(93967),C=n.n(N),S=n(67294),b=function(e){var t=e.type,n=e.loadingDate,r=e.minDate,a=e.inputReadOnly,l=e.onChangeDate,d=(0,i.$G)().t,u=(0,I._)((0,S.useState)(!1),2),T=u[0],N=u[1];return(0,o.jsx)(g.__,{required:!0,label:d("order:schedule.".concat(t.toLowerCase())),"data-sentry-element":"Label","data-sentry-component":"FormDatePickerExtended","data-sentry-source-file":"FormDatePickerExtended.tsx",children:(0,o.jsx)(c.CommonDatePicker,{required:!0,className:"flex h-[56px] w-[335px] cursor-pointer items-center rounded-[4px] border border-co-08 bg-co-11 px-[20px] py-[15px] text-[16px] font-normal leading-[26px] -tracking-[0.32px] text-co-02 outline-none focus:border-co-02",calendarClassName:C()(" cc-common-date-picker date-picker-absolute !border !border-co-09 ",{"date-picker-focus":T}),dateFormat:d("order:schedule.calendarFormat"),isOpened:T,showTimeSelect:!0,selected:n,value:p()(n).format(f.$4.FULL_DATE_TIME_KO),minDate:r,minTime:r,maxTime:(0,m.default)((0,h.default)(new Date,59),23),customInput:void 0===a||a?(0,o.jsx)(y.Z,{className:C()("",{"border border-co-02":T})}):(0,o.jsx)(x.Z,{className:C()("",{"border border-co-02":T})}),renderCustomHeader:function(e){return(0,o.jsx)(s.fR,{params:e,onChangeDate:l})},onChange:function(e){return l((0,v.hV)(e))},onFocus:function(){return N(!0)},onBlur:function(){return N(!1)},onClickOutside:function(){return N(!1)},"data-sentry-element":"CommonDatePicker","data-sentry-source-file":"FormDatePickerExtended.tsx"})})},O=function(e){var t=e.loadingDate,n=e.minDate,i=r.Z.getCurrentUserFromStorage(),a=i.isFursysRelated,s=i.isKoas;return t&&n?(0,o.jsx)(o.Fragment,{children:a||s?(0,o.jsx)(b,(0,d._)({},e)):(0,o.jsx)(T,(0,d._)({},e))}):null},w=n(34052),D=function(e){var t=e.description,n=e.onClose,r=(0,i.$G)().t;return(0,o.jsx)(w.VF,{title:r("order:schedule.alertModal.title"),description:t,buttonLabel:r("order:schedule.alertModal.confirm"),onClickButton:n,"data-sentry-element":"AlertModal","data-sentry-component":"FormDateTimeAlertModal","data-sentry-source-file":"FormDateTimeAlertModal.tsx"})},_=function(e){var t=e.dateTimeFields,n=t.validator,i=t.loadingDate,a=t.unloadingDate,s=t.loadingReturnDate,d=t.minLoadingDateTime,c=t.minUnloadingDateTime,u=t.minLoadingReturnDateTime,m=t.hasReturnDatePicker,h=t.handleChangeLoadingDate,y=t.handleChangeUnloadingDate,x=t.handleChangeLoadingReturnDate,v=r.Z.getCurrentUserFromStorage(),T=v.isHanssem,I=v.isMilkrunNaverOwner;return(0,o.jsx)(o.Fragment,{children:I?(0,o.jsxs)("div",{className:"flex min-h-[428px] justify-between",children:[(0,o.jsx)(g.II,{label:"상차일시",className:"w-[336px]",boxClassName:"T42",validation:null,value:p()(i).format(f.$4.FULL_DATE_TIME_KO),disabled:!0,searchChildren:(0,o.jsx)("div",{className:"mt-[10px] text-[13px] text-grey-700",children:"밀크런 상차 시간은 임시로 지정되며, 추후 확정됩니다."})}),(0,o.jsx)(g.II,{className:"w-[336px]",label:"하차일시",boxClassName:"T42",validation:null,value:p()(a).format(f.$4.FULL_DATE_TIME_KO),disabled:!0,searchChildren:(0,o.jsx)("div",{className:"mt-[10px] text-[13px] text-grey-700",children:"밀크런 하차 시간은 당일 23시로 자동 설
1정됩니다."})})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex flex-row flex-wrap gap-7",children:[(0,o.jsx)(O,{type:l.gU.LOADING,loadingDate:i,minDate:d,inputReadOnly:!T,minuteInterval:T?5:void 0,onChangeDate:h}),(0,o.jsx)(O,{type:l.gU.UNLOADING,loadingDate:a,minDate:c,inputReadOnly:!T,minuteInterval:T?5:void 0,onChangeDate:y})]}),m&&(0,o.jsx)("div",{className:"my-[20px] flex",children:(0,o.jsx)(O,{type:l.gU.COMEBACK,loadingDate:s,minDate:u,inputReadOnly:!T,minuteInterval:T?5:void 0,onChangeDate:x})}),n.dateTimeValidator&&(0,o.jsx)(D,{description:n.dateTimeValidator,onClose:function(){return n.reset()}})]})})},P=n(66947),R=function(e){var t=e.onClose,n=(0,i.$G)().t,r=(0,P.bW)().isDarmasOrLabor;return(0,o.jsx)(w.VF,{title:n("warehousing:warehousingPanel.errorModal.title"),description:n(r()?"warehousing:warehousingPanel.errorModal.description1":"warehousing:warehousingPanel.errorModal.description2"),buttonLabel:n("common:button.confirm"),onClickButton:t,"data-sentry-element":"AlertModal","data-sentry-component":"FareTypeErrorModal","data-sentry-source-file":"FareTypeErrorModal.tsx"})},k=function(e){var t=e.settlementFields,n=e.isShowSettlementGroupOptions,r=(0,i.$G)().t,a=t.isOpenedErrorModal,s=t.validator,l=t.settlementGroupId,d=t.fareType,c=t.settlementMemo,u=t.settlementGroupOptions,p=t.fareTypeOptions,m=t.setSettlementGroupId,h=t.setSettlementMemo,f=t.handleChangeFareType,y=t.handleCloseErrorModal;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("ul",{className:"flex flex-col gap-[24px]",children:[(void 0===n||n)&&(0,o.jsxs)("li",{children:[(0,o.jsx)(g.__,{required:!0,label:r("warehousing:warehousingPanel.option1.name"),labelChildren:(0,o.jsx)("p",{className:"text-[13px] font-[400] leading-[18px] -tracking-[0.26px] text-caution-01",children:r("warehousing:warehousingPanel.option1.description")})}),u&&(0,o.jsx)(g.Qc,{sizeType:"T56",width:"100%",placeholder:r("warehousing:warehousingPanel.option1.placeholder"),selectedGroupKey:l,options:u,validation:s.settlementGroupValidator,onChangeOption:m})]}),(0,o.jsxs)("li",{children:[(0,o.jsx)(g.__,{required:!0,label:r("warehousing:warehousingPanel.option2.name"),"data-sentry-element":"Label","data-sentry-source-file":"FormSettlement.tsx"}),(0,o.jsx)(g.$m,{options:p,selectedKey:d,onClickOption:function(e){return f(e.key)},"data-sentry-element":"SquareRadio","data-sentry-source-file":"FormSettlement.tsx"})]}),(0,o.jsxs)("li",{children:[(0,o.jsx)(g.__,{label:r("warehousing:warehousingPanel.option3.name"),"data-sentry-element":"Label","data-sentry-source-file":"FormSettlement.tsx"}),(0,o.jsx)(g.gx,{textareaClassName:"h-[108px]",maxLength:500,value:c,placeholder:r("warehousing:warehousingPanel.option3.placeholder"),onChange:function(e){return h(e.target.value)},"data-sentry-element":"Textarea","data-sentry-source-file":"FormSettlement.tsx"})]})]}),a&&(0,o.jsx)(R,{onClose:function(){return y()}})]})},E=n(45220),j=n.n(E),M=n(21629),L=function(e){var t=e.warehousingType,n=e.label,r=e.placeholder,a=e.options,s=e.value,l=e.validation,d=e.onChangeOption;return(0,i.$G)().t,(0,o.jsx)("div",{className:"basis-[50%]","data-sentry-component":"FormWarehousingSelectBox","data-sentry-source-file":"FormWarehousingSelectBox.tsx",children:(0,o.jsx)(M.j,{label:n,disabled:j()(t),sizeType:"T56",className:"h-[56px]",boxClassName:"h-[56px] !p-[12px]",optionsClassName:"!top-[55px]",options:a,value:s,placeholder:r,validation:l,onChangeOption:d,"data-sentry-element":"SelectBox","data-sentry-source-file":"FormWarehousingSelectBox.tsx"})})},A=function(e){var t=e.warehousingFields,n=(0,i.$G)().t,r=t.validator,a=t.warehousingType,s=t.warehousingCenterCode,l=t.warehousingCenterGroupCode,d=t.warehousingMemo,c=t.warehousingTypeOptions,u=t.warehousingCenterOptions,p=t.warehousingCenterGroupOptions,m=t.setWarehousingType,h=t.setWarehousingCenterCode,f=t.setWarehousingCenterGroupCode,y=t.setWarehousingMemo;return(0,o.jsxs)("div",{className:"flex flex-col gap-[24px]","data-sentry-component":"FormWarehousing","data-sentry-source-file":"FormWarehousing.tsx",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(g.__,{label:n("warehousing:warehousingPanel.option4.name"),"data-sentry-element":"Label","data-sentry-source-file":"FormWarehousing.tsx"}),(0,o.jsx)(g.$m,{options:c,selectedKey:a,onClickOption:function(e){return m(e.key)},"data-sentry-element":"SquareRadio","data-sentry-source-file":"FormWarehousing.tsx"})]}),(0,o.jsx)("div",{className:"flex h-[110px] flex-row items-center gap-[10px]",children:(0,o.jsxs)("div",{className:"flex w-full flex-row gap-[30px]",children:[(0,o.jsx)(L,{warehousingType:a,label:n("warehousing:warehousingPanel.option5.name"),placeholder:n("warehousing:warehousingPanel.option5.placeholder"),options:u,value:s,validation:r.centerCodeValidator,onChangeOption:function(e){return h(e.key)},"data-sentry-element":"FormWarehousingSelectBox","data-sentry-source-file":"FormWarehousing.tsx"}),(0,o.jsx)(L,{warehousingType:a,label:n("warehousing:warehousingPanel.option6.name"),placeholder:n("warehousing:warehousingPanel.option6.placeholder"),options:p,value:l,validation:r.centerGroupCodeValidator,onChangeOption:function(e){return f(e.key)},"data-sentry-element":"FormWarehousingSelectBox","data-sentry-source-file":"FormWarehousing.tsx"})]})}),(0,o.jsxs)("div",{children:[(0,o.jsx)(g.__,{label:n("warehousing:warehousingPanel.option7.name"),"data-sentry-element":"Label","data-sentry-source-file":"FormWarehousing.tsx"}),(0,o.jsx)(g.gx,{disabled:j()(a),textareaClassName:"h-[108px]",maxLength:500,value:d,placeholder:n("warehousing:warehousingPanel.option7.placeholder"),onChange:function(e){return y(e.target.value)},"data-sentry-element":"Textarea","data-sentry-source-file":"FormWarehousing.tsx"})]})]})},F=function(){var e=(0,i.$G)().t,t=r.Z.getCurrentUserFromStorage(),n=(0,a.hY)(),l=n.dateTimeFields,d=n.settlementFields,c=n.warehousingFields,u=n.getTitle,p=n.get
1SubTitle,m=n.handleReset,h=n.handleRegister;return(0,o.jsx)(s.YJ,{title:u(),"data-sentry-element":"CommonFormLayout","data-sentry-component":"FormSchedule","data-sentry-source-file":"FormSchedule.tsx",children:(0,o.jsxs)(s.$5,{description:e("order:schedule.scheduleDescription"),onReset:m,onRegister:h,"data-sentry-element":"CommonFormInnerLayout","data-sentry-source-file":"FormSchedule.tsx",children:[(0,o.jsx)(_,{dateTimeFields:l,"data-sentry-element":"FormDateTime","data-sentry-source-file":"FormSchedule.tsx"}),t.isKoas&&(0,o.jsxs)("div",{className:"mb-[24px] mt-[24px] flex w-full flex-col gap-[16px]",children:[(0,o.jsx)("h2",{className:"text-[24px] font-[700] leading-[34px] -tracking-[0.48px]",children:e("warehousing:warehousingPanel.title2")}),(0,o.jsx)(k,{settlementFields:d,isShowSettlementGroupOptions:!1})]}),t.isFursys&&(0,o.jsxs)("div",{className:"mt-[24px] flex w-full flex-col gap-[16px]",children:[(0,o.jsx)("h2",{className:"text-[24px] font-[700] leading-[34px] -tracking-[0.48px]",children:p()}),t.isFursysGroup&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(k,{settlementFields:d}),(0,o.jsx)("hr",{})]}),(0,o.jsx)(A,{warehousingFields:c})]})]})})}},75416:function(e,t,n){var o=n(85893),r=n(5233),i=n(66947),a=n(18441),s=n(92853),l=a.BI.UNLOADING_ZONE;t.Z=function(){var e=(0,r.$G)().t,t=(0,i.V8)();return(0,o.jsx)(s.YJ,{title:e("order:unloadingZone.title"),"data-sentry-element":"CommonFormLayout","data-sentry-component":"FormUnloading","data-sentry-source-file":"FormUnloading.tsx",children:(0,o.jsx)(s.Nw,{zoneType:l,zoneState:t,"data-sentry-element":"CommonFormLoadingUnloadingZone","data-sentry-source-file":"FormUnloading.tsx"})})}},59853:function(e,t,n){n.d(t,{Z:function(){return x}});var o=n(85893),r=n(5233),i=n(92853),a=n(99388),s=n(64247),l=n(51045),d=n(29255),c=n(93967),u=n.n(c),p=function(e){var t=e.className,n=e.itemName,r=e.currentCursorIdx,i=e.setCurrentCursorIdx,a=e.handleCargoTypeClick,s=e.listRef,l=(0,d.sN)({itemName:n}).cargoItems;return(0,o.jsx)(o.Fragment,{children:l.items.length>0&&(0,o.jsx)("ul",{className:u()("cargoes relative",void 0===t?"":t),ref:s,children:l.items.map(function(e,t){return(0,o.jsx)("li",{className:u()({hasCurrentCursor:r===t}),"data-id":e.itemId,"data-name":e.itemName,tabIndex:-1,onMouseDown:function(){return a(e)},onTouchStart:function(){return a(e)},onMouseEnter:function(){return i(t)},children:(0,o.jsx)("p",{children:e.itemName})},"".concat(t+e.itemId))})})})},m=function(e){var t=e.validation,n=e.cargoItem,i=e.onChangeCargoItem,a=e.onReset,c=e.cargoItemName,m=(0,r.$G)().t,h=(0,d.jN)({cargoItem:n,onChangeCargoItem:i,onReset:a}),f=h.focused,g=h.listRef,y=h.currentCursorIdx,x=h.setFocused,v=h.handleKeyDown,T=h.handleCargoName,I=h.handleCancelClick,N=h.setCurrentCursorIdx,C=h.handleCargoTypeClick,S=h.isActiveItemList;return(0,o.jsxs)("div",{className:u()("cc-order-input relative",{"search-list":S}),"data-sentry-component":"FormCargoItemType","data-sentry-source-file":"FormCargoItemType.tsx",children:[(0,o.jsxs)("div",{className:"flex flex-row",children:[(0,o.jsx)(s.__,{label:m("order:cargoInfo.type"),required:!0,"data-sentry-element":"Label","data-sentry-source-file":"FormCargoItemType.tsx"}),(0,o.jsx)("div",{className:"ml-[5px] flex h-[20px] items-center",children:(0,o.jsx)(l.u,{className:"ml-[4px]",id:"orderListTooltip",place:"top-start",isOpenStart:!1,useCloseButton:!1,tooltip:(0,o.jsx)("div",{className:"py-[4px]",children:(0,o.jsxs)("p",{children:["경유 운송의 경우 하나 이상의 물품 종류를 선택할 수 없습니다. 한 가지 이상의",(0,o.jsx)("br",{}),"물품 종류 운송을 원하신다면 고객센터(☎︎1833-8255)로 연락해 주시기 바랍니다."]})}),"data-sentry-element":"Tooltip","data-sentry-source-file":"FormCargoItemType.tsx"})})]}),(0,o.jsx)("div",{className:"flex w-full flex-row gap-1",children:(0,o.jsxs)("div",{className:"relative w-full",children:[(0,o.jsx)(s.II,{className:"h-auto w-full",setIsFocused:x,autoComplete:"off",onKeyDown:v,placeholder:m("order:cargoInfo.placeholder.type"),onChange:T,value:c,validation:t,is
1Focused:f,onReset:function(){return I()},"data-sentry-element":"Input","data-sentry-source-file":"FormCargoItemType.tsx"}),S&&(0,o.jsx)(p,{className:"!top-[54px]",itemName:c,currentCursorIdx:y,setCurrentCursorIdx:N,handleCargoTypeClick:C,listRef:g})]})})]})},h=n(60486),f=n(76986),g=n(16870);n(67294);var y=n(17351),x=function(){var e,t,n,l=(0,r.$G)().t,c=(0,d.fu)(),p=c.isAvailablePriceGroup,x=c.priceGroups,v=c.cargoItem,T=c.packingMethod,I=c.totalWeight,N=c.totalCount,C=c.packingSize,S=c.price,b=c.priceGroup,O=c.packingMethodTypes,w=c.confirmBoxCount,D=c.itemNameValidator,_=c.packingMethodValidator,P=c.totalWeightValidator,R=c.totalCountValidator,k=c.priceGroupValidator,E=c.confirmBoxCountValidator,j=c.isShowChipTooltip,M=c.isRequiredTotalCount,L=c.openapiOrderKey,A=c.setIsShowChipTooltip,F=c.setCargoItem,W=c.handleFormReset,V=c.handleRegister,B=c.handleResetCargoItem,U=c.handlePackagingTypesChange,Z=c.handleChangeTotalWeight,G=c.handleChangeTotalCount,q=c.handleChangePackingSize,K=c.handleChangeCbm,$=c.handleChangePrice,H=c.handleBlurTotalWeight,Y=c.handleBlurCbm,z=c.handleClickChip,Q=c.handleClickPriceType,J=c.handleChangeOpenapiOrderKey,X=c.handleChangeConfirmBoxCount,ee=(0,f.Z)(),et=ee.items,en=ee.isFrequentlyOrders,eo=y.Z.getCurrentUserFromStorage(),er=eo.isFursysGroup,ei=eo.isHanssem,ea=eo.isMilkrunNaverOwner,es=eo.isFursys,el=p&&!en,ed=ea?["BOX","ETC","CARTON","TON_BAG","ROLL_CONTAINER"]:[];return(0,o.jsx)(a.Z,{title:el?"운임 및 화물 정보":l("order:cargoInfo.title"),"data-sentry-element":"CommonFormLayout","data-sentry-component":"FormCargo","data-sentry-source-file":"FormCargo.tsx",children:(0,o.jsx)(i.$5,{description:l("order:cargoInfo.subTitle"),onReset:W,onRegister:V,"data-sentry-element":"CommonFormInnerLayout","data-sentry-source-file":"FormCargo.tsx",children:(0,o.jsxs)("div",{className:"mb-[40px] flex flex-col gap-[24px]",children:[el&&(0,o.jsxs)("div",{children:[(0,o.jsx)(s.__,{label:"운임 유형",required:!0,labelClassName:"!mb-0"}),(0,o.jsx)(s.$m,{options:x.map(function(e){return{key:e.priceId,value:e.shortTitle,moduleType:e.priceModuleType}}),containerClassName:"!overflow-visible flex-wrap",className:u()("mt-[6px] !w-auto !min-w-[136px] flex-1",{"!min-w-[171px] !flex-1 [&:nth-child(4n)]:rounded-r-[4px] [&:nth-child(4n)]:border [&:nth-child(4n)]:border-r-[1px] [&:nth-child(4n)]:border-co-08":x.length%4>=2,"[&:nth-child(5n)]:rounded-r-[4px] [&:nth-child(5n)]:border [&:nth-child(5n)]:border-r-[1px] [&:nth-child(5n)]:border-co-08":x.length%4<=1}),selectedKey:b.id,validation:k,onClickOption:Q})]}),et.length>0&&(0,o.jsx)(g.Z,{onClickChip:z,chips:et,title:l("order:recentOrderChips.item"),tooltip:l("order:recentOrderChips.tooltip"),isShowTooltip:j,setIsShowTooltip:function(){return A(!j)}}),(0,o.jsx)(m,{cargoItem:v,validation:D,onChangeCargoItem:F,onReset:B,cargoItemName:v.itemName,"data-sentry-element":"FormCargoItemType","data-sentry-source-file":"FormCargo.tsx"}),(0,o.jsxs)("div",{children:[(0,o.jsx)(s.__,{label:l("order:cargoInfo.packagingMethod"),required:!0,"data-sentry-element":"Label","data-sentry-source-file":"FormCargo.tsx"}),(0,o.jsx)(s.$m,{options:O,selectedKey:T,validation:_,onClickOption:U,disabledOptionKeys:ed,"data-sentry-element":"SquareRadio","data-sentry-source-file":"FormCargo.tsx"})]}),(0,o.jsx)("div",{children:(0,o.jsxs)("div",{className:"flex h-full w-full flex-row gap-[10px]",children:[(0,o.jsxs)("div",{className:"mb-[6px] flex w-full flex-col gap-[4px] text-[14px] font-bold leading-[22px] text-co-04",children:[(0,o.jsx)(s.__,{label:l("order:cargoInfo.standard"),required:!0,"data-sentry-element":"Label","data-sentry-source-file":"FormCargo.tsx"}),(0,o.jsx)(s.II,{required:!0,className:"h-auto w-full",validation:P,inputClassName:"text-right mr-[8px]",placeholder:l("order:cargoInfo.weight"),value:I||"",suffix:l("order:cargoInfo.ton"),suffixClassName:"w-[36px]",onChange:Z,onBlur:H,"data-sentry-element":"Input","data-sentry-source-file":"FormCargo.tsx"})]}),(0,o.jsxs)("div",{className:"mb-[6px] flex w-full flex-col gap-[4px] text-[14px] font-bold leading-[22px] text-co-04",children:[(0,o.jsx)(s.__,{label:l("order:cargoInfo.standard2"),required:M||ea,"data-sentry-element":"Label","data-sentry-source-file":"FormCargo.tsx"}),(0,o.jsx)(s.II,{required:!0,className:"h-auto w-full",validation:M||ea?R:"",inputClassName:"text-right mr-[8px]",placeholder:l("order:cargoInfo.placeholder.packagingCount"),value:N||"",suffix:l("order:common.count"),onChange:G,onBlur:G,"data-sentry-element":"Input","data-sentry-source-file":"FormCargo.tsx"})]}),ea&&(0,o.jsxs)("div",{className:"mb-[6px] flex w-full flex-col gap-[4px] text-[14px] font-bold leading-[22px] text-co-04",children:[(0,o.jsx)(s.__,{label:l("검수 박스"),required:!0}),(0,o.jsx)(s.II,{required:!0,className:"h-auto w-full",validation:E,inputClassName:"text-right mr-[8px]",placeholder:"박스 수량 숫자 입력",value:w||"",suffix:l("order:common.count"),onChange:X,onBlur:X})]})]})}),(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:"mb-[6px] flex flex-row items-center gap-[4px] text-[14px] font-bold leading-[22px] text-co-04",children:(0,o.jsx)("label",{children:l("order:cargoInfo.standard3")})}),(0,o.jsx)("div",{children:(0,o.jsxs)("div",{className:"flex w-full",children:[(0,o.jsx)(s.II,{className:"xs min-w-[120px]",inputClassName:"text-right mr-[6px]",placeholder:l("order:cargoInfo.width"),value:"0"!==(0,h.Lg)(null!==(e=C.width)&&void 0!==e?e:0)?(0,h.Lg)(C.width):"",suffix:"mm",onCh
1ange:function(e){return q(e,"width")},"data-sentry-element":"Input","data-sentry-source-file":"FormCargo.tsx"}),(0,o.jsx)(s.II,{className:"xs min-w-[120px]",inputClassName:"text-right mr-[6px]",placeholder:l("order:cargoInfo.depth"),value:"0"!==(0,h.Lg)(null!==(t=C.length)&&void 0!==t?t:0)?(0,h.Lg)(C.length):"",suffix:"mm",onChange:function(e){return q(e,"length")},"data-sentry-element":"Input","data-sentry-source-file":"FormCargo.tsx"}),(0,o.jsx)(s.II,{className:"xs min-w-[120px]",inputClassName:"text-right mr-[6px]",placeholder:l("order:cargoInfo.height"),value:"0"!==(0,h.Lg)(null!==(n=C.height)&&void 0!==n?n:0)?(0,h.Lg)(C.height):"",suffix:"mm",onChange:function(e){return q(e,"height")},"data-sentry-element":"Input","data-sentry-source-file":"FormCargo.tsx"}),(0,o.jsxs)("div",{className:"relative w-full max-w-[309px]",children:[(0,o.jsx)(s.II,{className:"sm w-full",inputClassName:"text-right mr-[6px]",placeholder:l("order:cargoInfo.placeholder.standard"),value:C.cbm||"",suffix:"m3",suffixClassName:"!text-co-11",onChange:K,onBlur:Y,"data-sentry-element":"Input","data-sentry-source-file":"FormCargo.tsx"}),(0,o.jsxs)("span",{className:"absolute right-0 right-[20px] top-[15px] text-[16px] text-co-06",children:["m",(0,o.jsx)("sup",{children:"3"})]})]})]})})]}),(0,o.jsx)(s.II,{label:l("order:cargoInfo.price"),className:"inline-block",inputClassName:"text-right mr-[6px]",placeholder:l("order:cargoInfo.placeholder.price"),value:S?(0,h.Lg)(S):"",suffix:l("order:common.won"),onChange:$,"data-sentry-element":"Input","data-sentry-source-file":"FormCargo.tsx"}),!er&&!ei&&!es&&(0,o.jsx)(s.gx,{label:"내부관리코드",rows:4,maxLength:250,value:L,placeholder:"내부적으로 관리하는 코드 및 정보를 입력하세요(엑셀 파일에서 확인 가능)",onChange:J})]})})})}},22722:function(e,t,n){n.d(t,{Z:function(){return H}});var o=n(85893),r=n(17351),i=n(37072),a=n(5233),s=n(29255),l=n(99388),d=n(2808),c=n(21629),u=n(48358),p=n(64247),m=n(98072),h=n(24043),f=n(38095),g=n(67294),y=n(75855),x=function(e){var t=e.onClickClose,n=(0,a.$G)(["order"]).t;return(0,o.jsx)(y.CommonModal,{title:n("order:methodInfo.additionalFare"),modalIsOpen:!0,handleComplete:null,handleClose:t,confirmText:"",buttonVisible:!1,modalWidth:"620px",modalHeight:"780px",contentClassName:"flex flex-col overflow-y-auto p-0",shouldCloseOnOverlayClick:!1,"data-sentry-element":"CommonModal","data-sentry-component":"AdditionalFareModal","data-sentry-source-file":"AdditionalFareModal.tsx",children:(0,o.jsxs)("div",{className:"flex flex-col gap-[30px] p-8 text-[14px] font-normal text-co-02",children:[(0,o.jsxs)("div",{className:"flex w-full flex-col",children:[(0,o.jsxs)("div",{className:"mb-[10px] flex flex-row items-center justify-between",children:[(0,o.jsx)("span",{className:"text-[18px] font-bold",children:n("methodInfo.stowageBoxOpen.title")}),(0,o.jsxs)("span",{className:"text-[14px] font-normal",children:[n("methodInfo.unit")," : ",n("methodInfo.won")]})]}),(0,o.jsx)("div",{className:"mb-[10px]",children:(0,o.jsxs)("table",{className:"w-full",children:[(0,o.jsx)("thead",{className:"border-t border-co-04 bg-co-10 text-[14px] font-medium text-co-02",children:(0,o.jsxs)("tr",{children:[(0,o.jsx)("th",{className:"px-[14px] py-[17px] font-medium",children:n("methodInfo.stowageBoxOpen.header1")}),(0,o.jsx)("th",{className:"px-[14px] py-[17px] font-medium",children:n("methodInfo.stowageBoxOpen.header2")})]})}),(0,o.jsx)("tbody",{children:(0,o.jsxs)("tr",{className:"border-b border-co-08 text-[14px] font-normal text-co-03",children:[(0,o.jsx)("td",{className:"p-[15px] text-center",children:"20,000"}),(0,o.jsx)("td",{className:"p-[15px] text-center",children:"30,000"})]})})]})}),(0,o.jsxs)("div",{className:"relative flex flex-col gap-[5px] text-[13px] font-normal text-co-05",children:[(0,o.jsx)("p",{className:'flex items-center pl-[10px] before:absolute before:left-0 before:top-[2px] before:inline-block before:content-["*"]',children:n("methodInfo.stowageBoxOpen.description1")}),(0,o.jsx)("p",{className:'flex items-center pl-[10px] before:absolute before:left-0 before:top-[28px] before:inline-block before:content-["*"]',children:n("methodInfo.stowageBoxOpen.description2")})]})]}),(0,o.jsxs)("div",{className:"flex w-full flex-col",children:[(0,o.jsxs)("div",{className:"mb-[10px] flex flex-row items-center justify-between",children:[(0,o.jsx)("span",{className:"text-[18px] font-bold",children:n("methodInfo.driverSupports.title")}),(0,o.jsxs)("span",{className:"text-[14px] font-normal",children:[n("methodInfo.unit")," : ",n("methodInfo.won")]})]}),(0,o.jsx)("div",{className:"mb-[10px]",children:(0,o.jsxs)("table",{className:"w-full",children:[(0,o.jsx)("thead",{className:"border-t border-co-04 bg-co-10 text-[14px] font-medium text-co-02",children:(0,o.jsxs)("tr",{children:[(0,o.jsx)("th",{className:"px-[14px] py-[17px] font-medium",children:n("methodInfo.driverSupports.header1")}),(0,o.jsx)("th",{className:"px-[14px] py-[17px] font-medium",children:n("methodInfo.driverSupports.header2")})]})}),(0,o.jsx)("tbody",{children:(0,o.jsxs)("tr",{className:"border-b border-co-08 text-[14px] font-normal text-co-03",children:[(0,o.jsx)("td",{className:"p-[15p
1x] text-center",children:"10,000"}),(0,o.jsx)("td",{className:"p-[15px] text-center",children:"20,000"})]})})]})}),(0,o.jsxs)("div",{className:"relative flex flex-col gap-[5px] text-[13px] font-normal text-co-05",children:[(0,o.jsx)("p",{className:'flex items-center pl-[10px] before:absolute before:left-0 before:top-[2px] before:inline-block before:content-["*"]',children:n("methodInfo.driverSupports.description1")}),(0,o.jsx)("p",{className:'flex items-center pl-[10px] before:absolute before:left-0 before:top-[28px] before:inline-block before:content-["*"]',children:n("methodInfo.driverSupports.description2")})]})]}),(0,o.jsxs)("div",{className:"flex w-full flex-col",children:[(0,o.jsxs)("div",{className:"mb-[10px] flex flex-row items-center justify-between",children:[(0,o.jsx)("span",{className:"text-[18px] font-bold",children:n("methodInfo.waitingFare.title")}),(0,o.jsxs)("span",{className:"text-[14px] font-normal",children:[n("methodInfo.unit")," : ",n("methodInfo.won")]})]}),(0,o.jsx)("div",{className:"mb-[10px]",children:(0,o.jsxs)("table",{className:"w-full",children:[(0,o.jsx)("thead",{className:"border-t border-co-04 bg-co-10 text-[14px] font-medium text-co-02",children:(0,o.jsxs)("tr",{children:[(0,o.jsx)("th",{className:"px-[14px] py-[17px] font-medium",children:n("methodInfo.waitingFare.header1")}),(0,o.jsx)("th",{className:"px-[14px] py-[17px] font-medium",children:n("methodInfo.waitingFare.header2")}),(0,o.jsx)("th",{className:"px-[14px] py-[17px] font-medium",children:n("methodInfo.waitingFare.header3")})]})}),(0,o.jsx)("tbody",{children:(0,o.jsxs)("tr",{className:"border-b border-co-08 text-[14px] font-normal text-co-03",children:[(0,o.jsx)("td",{className:"p-[15px] text-center",children:"10,000"}),(0,o.jsx)("td",{className:"p-[15px] text-center",children:"15,000"}),(0,o.jsx)("td",{className:"p-[15px] text-center",children:"20,000"})]})})]})}),(0,o.jsxs)("div",{className:"relative flex flex-col gap-[5px] text-[13px] font-normal text-co-05",children:[(0,o.jsx)("p",{className:'flex items-center pl-[10px] before:absolute before:left-0 before:top-[2px] before:inline-block before:content-["*"]',children:n("methodInfo.waitingFare.description1")}),(0,o.jsx)("p",{className:'flex items-center pl-[10px] before:absolute before:left-0 before:top-[28px] before:inline-block before:content-["*"]',children:n("methodInfo.waitingFare.description2")})]})]}),(0,o.jsxs)("div",{className:"flex w-full flex-col",children:[(0,o.jsx)("div",{className:"mb-[10px] flex flex-row items-center justify-between",children:(0,o.jsx)("span",{className:"text-[18px] font-bold",children:n("methodInfo.ancillaryFare.title")})}),(0,o.jsx)("p",{className:"text-[14px] font-normal text-co-04",children:n("methodInfo.ancillaryFare.description1")}),(0,o.jsx)("p",{className:'relative pl-[10px] text-[13px] font-normal text-co-05 before:absolute before:left-0 before:top-[2px] before:inline-block before:content-["*"]',children:n("methodInfo.beCareful")})]})]})})},v=function(){var e=(0,a.$G)().t,t=(0,h._)((0,g.useState)(!1),2),n=t[0],r=t[1];return(0,o.jsxs)(o.Fragment,{children:[n&&(0,o.jsx)(x,{onClickClose:function(){return r(!1)}}),(0,o.jsx)(f.ii,{label:e("order:methodInfo.additionalFare"),className:"cc-line-button T30",onClick:function(){return r(!0)},"data-sentry-element":"LineButton","data-sentry-source-file":"AdditionalFareGuideButton.tsx"})]})},T=n(18441),I=function(e){var t=e.selectLoadingMethod,n=e.selectUnloadingMethod,s=e.setSelectLoadingMethod,l=e.setSelectUnloadingMethod,d=e.selectedVehicleTon,c=(0,a.$G)().t,u=r.Z.getCurrentUserFromStorage().isMilkrunNaverOwner,h=(0,m.H)().loadingUnloadingMethodSelectList,f=parseInt(null==d?void 0:d.value,10)>=T.iy,g=u?[i.NI.CRANE,i.NI.HOIST,i.NI.FOLK_LIFT_ACTUAL_COST,i.NI.DRIVER_HANDWORK,i.NI.OWNER_HANDWORK]:f?[i.NI.DRIVER_HANDWORK]:[];return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex items-center justify-between",children:[(0,o.jsx)("p",{className:"text-[16px] font-light text-caution-01",children:(0,o.jsx)(a.cC,{t:c,i18nKey:"order:methodInfo.additionalFeeDescription",components:{b:(0,o.jsx)("span",{className:"font-bold"})},"data-sentry-element":"Trans","data-sentry-source-file":"FormMethod.tsx"})}),(0,o.jsx)(v,{"data-sentry-element":"AdditionalFareGuideButton","data-sentry-source-file":"FormMethod.tsx"})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)(p.__,{label:c("order:methodInfo.loading.description"),required:!0,"data-sentry-element":"Label","data-sentry-source-file":"FormMethod.tsx"}),(0,o.jsx)(p.$m,{options:h,selectedKey:null==t?void 0:t.key,onClickOption:function(e){return s(e)},disabledOptionKeys:g,"data-sentry-element":"SquareRadio","data-sentry-source-file":"FormMethod.tsx"})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)(p.__,{label:c("order:methodInfo.unloading.description"),required:!0,"data-sentry-element":"Label","data-sentry-source-file":"FormMethod.tsx"}),(0,o.jsx)(p.$m,{options:h,selectedKey:null==n?void 0:n.key,onClickOption:function(e){return l(e)},disabledOptionKeys:g,"data-sentry-element":"SquareRadio","data-sentry-source-file":"FormMethod.tsx"})]})]})}
1,N=function(e){var t=e.dispatchType,n=e.setVehicleDispatchRadio,r=(0,a.$G)(["order"]).t;return(0,o.jsxs)("div",{"data-sentry-component":"FormVehicleDispatchRadioBox","data-sentry-source-file":"FormVehicleDispatchRadioBox.tsx",children:[(0,o.jsx)(p.__,{label:r("order:vehicleInfo.dispatchType"),required:!0,"data-sentry-element":"Label","data-sentry-source-file":"FormVehicleDispatchRadioBox.tsx"}),(0,o.jsx)(p.$m,{options:[{key:i.dS.UNBAN,value:r("order:vehicleInfo.dispatchUnban")},{key:i.dS.DIRECT,value:r("order:vehicleInfo.dispatchDirectCar")}],selectedKey:t,onClickOption:function(e){return n(e.key)},"data-sentry-element":"SquareRadio","data-sentry-source-file":"FormVehicleDispatchRadioBox.tsx"})]})},C=function(e){var t=e.handleVehicleDispatchRadio,n=(0,a.$G)(["order"]).t,r=(0,s.ae)(),l=r.directCarOptionList,p=r.loadingMethod,m=r.unloadingMethod,h=r.setLoadingMethod,f=r.setUnloadingMethod,g=r.handleFormReset,y=r.handleRegister,x=r.selectDirectCar,v=(r.setSelectDirectCar,r.directCarTypeInfoValidation),T=r.handleChangeOption;return(0,o.jsx)(u.Z,{description:n("order:vehicleInfo.subTitle"),onReset:g,onRegister:y,"data-sentry-element":"CommonFormInnerLayout","data-sentry-component":"FormVehicleDirectType","data-sentry-source-file":"FormVehicleDirectType.tsx",children:(0,o.jsxs)("div",{className:"mb-[24px] flex flex-col gap-[24px]",children:[(0,o.jsx)(N,{dispatchType:i.dS.DIRECT,setVehicleDispatchRadio:t,"data-sentry-element":"FormVehicleDispatchRadioBox","data-sentry-source-file":"FormVehicleDirectType.tsx"}),(0,o.jsxs)("div",{children:[(0,o.jsx)(d.Z,{required:!0,label:n("order:vehicleInfo.directCarTypeSelect.label"),"data-sentry-element":"Label","data-sentry-source-file":"FormVehicleDirectType.tsx"}),(0,o.jsx)(c.j,{id:"dateType",sizeType:"T56",value:null==x?void 0:x.businessDirectOperatedCarId,onChangeOption:T,options:l,className:"w-full",placeholder:n(0===l.length?"order:vehicleInfo.directCarTypeSelect.disabled":"order:vehicleInfo.directCarTypeSelect.placeholder"),validation:v,disabled:0===l.length,"data-sentry-element":"SelectBox","data-sentry-source-file":"FormVehicleDirectType.tsx"}),(0,o.jsx)("div",{className:"flex text-[13px] font-normal text-co-04 ".concat(v?"mt-[38px]":"mt-[10px]"),dangerouslySetInnerHTML:{__html:n("order:vehicleInfo.directCarTypeSelect.description")}})]}),(0,o.jsx)(I,{selectLoadingMethod:p,selectUnloadingMethod:m,setSelectLoadingMethod:h,setSelectUnloadingMethod:f,selectedVehicleTon:x.vehicleTon,"data-sentry-element":"FormMethod","data-sentry-source-file":"FormVehicleDirectType.tsx"})]})})},S=n(72253),b=n(14932),O=n(92853),w=n(25980);function D(e){var t=e.dispatchIntervalType,n=e.onSelected,r=(0,a.$G)().t,i=(0,m.H)().dispatchIntervalList;return(0,o.jsx)(c.j,{required:!0,id:"vehicleTimeSlot",value:t,placeholder:r("order:vehicleInfo.placeholder.dispatchIntervalType"),onChangeOption:function(e){n((null==e?void 0:e.key)||w.Q.INTERVAL0)},options:i,sizeType:"T52",boxClassName:"h-[56px]",className:"h-[56px]","data-sentry-element":"SelectBox","data-sentry-component":"FormVehicleDispatchIntervalSlot","data-sentry-source-file":"FormVehicleDispatchIntervalSlot.tsx"})}var _=function(e){var t=e.dispatchNumber,n=e.dispatchInterval,r=e.dispatchValidation,i=e.onSelected,l=e.dispatchNumberType,d=e.setDispatchNumberType,c=(0,a.$G)(["order"]).t,u=(0,s.s$)({onSelected:i,dispatchInterval:n,dispatchNumber:t,dispatchNumberType:l,setDispatchNumberType:d}),m=u.handleDispatchNumberTypeChange,h=u.handleDispatchNumberChange,f=u.handleIntervalChange;return(0,o.jsx)(p.__,{label:c("order:vehicleInfo.dispatcher"),"data-sentry-element":"Label","data-sentry-component":"FormDispatchNumber","data-sentry-source-file":"FormDispatchNumber.tsx",children:(0,o.jsxs)("div",{className:"flex items-center",children:[(0,o.jsx)(p.Y8,{label:c("order:vehicleInfo.placeholder.dispatcher.default"),className:"mr-[40px]",checked:l===T.Wd.DEFAULT,onClick:function(){return m(T.Wd.DEFAULT,T.gd)},"data-sentry-element":"Radio","data-sentry-source-file":"FormDispatchNumber.tsx"}),(0,o.jsxs)("div",{className:"flex flex-row items-center gap-[10px]",children:[(0,o.jsx)(p.Y8,{label:c("order:vehicleInfo.placeholder.dis
1patcher.over"),className:"mr-[20px]",checked:l===T.Wd.MANY,onClick:function(){return m(T.Wd.MANY,T.rZ)},"data-sentry-element":"Radio","data-sentry-source-file":"FormDispatchNumber.tsx"}),l===T.Wd.MANY&&(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:"flex w-full gap-[10px]",children:[(0,o.jsx)(p.II,{value:t,placeholder:c("order:vehicleInfo.placeholder.dispatchNumber"),inputClassName:"text-right",suffix:c("order:vehicleInfo.placeholder.dispatcher.unit"),validationBorder:!!r,onChange:h}),(0,o.jsx)(D,{dispatchIntervalType:n,onSelected:f})]}),r&&(0,o.jsx)("div",{className:"mt-[10px] text-error",children:r})]})]})]})})},P=n(93967),R=n.n(P),k=n(36695),E={tonnageKo:"차량톤수",carType:"차종",width:"적재함 너비<br/>(CM)",length:"적재함 길이<br/>(CM)",height:"적재함 높이<br/>(CM)",weight:"최대적재 중량<br/>(KG)",quantity:"최대적재<br/>파렛수량(EA)",cbm:"최대 CBM"},j=[{tonnage:.3,tonnageKo:"0.3톤",carType:"DARMAS",width:126,length:175,height:126,weight:450,quantity:1,cbm:2},{tonnage:.5,tonnageKo:"0.5톤",carType:"LABOR",width:133,length:194,height:126,weight:550,quantity:1,cbm:3},{tonnage:1,tonnageKo:"1톤",carType:"CARGO",width:160,length:280,height:170,weight:1100,quantity:2,cbm:7},{tonnage:1,tonnageKo:"1톤",carType:"WING_BODY",width:160,length:280,height:170,weight:1100,quantity:2,cbm:7},{tonnage:1,tonnageKo:"1톤",carType:"LIFT",width:160,length:280,height:170,weight:1100,quantity:2,cbm:7},{tonnage:1,tonnageKo:"1톤",carType:"TOP",width:160,length:280,height:170,weight:1100,quantity:2,cbm:7},{tonnage:1.4,tonnageKo:"1.4톤",carType:"CARGO",width:160,length:280,height:170,weight:1540,quantity:2,cbm:7},{tonnage:1.4,tonnageKo:"1.4톤",carType:"WING_BODY",width:160,length:280,height:170,weight:1540,quantity:2,cbm:7},{tonnage:1.4,tonnageKo:"1.4톤",carType:"LIFT",width:160,length:280,height:170,weight:1540,quantity:2,cbm:7},{tonnage:1.4,tonnageKo:"1.4톤",carType:"TOP",width:160,length:280,height:170,weight:1540,quantity:2,cbm:7},{tonnage:2.5,tonnageKo:"2.5톤",carType:"CARGO",width:192,length:435,height:210,weight:2750,quantity:3,cbm:15},{tonnage:2.5,tonnageKo:"2.5톤",carType:"WING_BODY",width:192,length:430,height:210,weight:2750,quantity:3,cbm:15},{tonnage:2.5,tonnageKo:"2.5톤",carType:"LIFT",width:192,length:435,height:210,weight:2750,quantity:3,cbm:15},{tonnage:2.5,tonnageKo:"2.5톤",carType:"TOP",width:192,length:435,height:210,weight:2750,quantity:3,cbm:15},{tonnage:3.5,tonnageKo:"3.5톤",carType:"CARGO",width:206,length:460,height:220,weight:3850,quantity:4,cbm:19},{tonnage:3.5,tonnageKo:"3.5톤",carType:"WING_BODY",width:206,length:460,height:220,weight:3850,quantity:4,cbm:19},{tonnage:3.5,tonnageKo:"3.5톤",carType:"LIFT",width:206,length:460,height:220,weight:3850,quantity:4,cbm:19},{tonnage:3.5,tonnageKo:"3.5톤",carType:"TOP",width:206,length:460,height:220,weight:3850,quantity:4,cbm:19},{tonnage:5,tonnageKo:"5톤",carType:"CARGO",width:220,length:620,height:240,weight:5500,quantity:10,cbm:23},{tonnage:5,tonnageKo:"5톤",carType:"WING_BODY",width:220,length:620,height:240,weight:5500,quantity:10,cbm:23},{tonnage:5,tonnageKo:"5톤",carType:"LIFT",width:220,length:620,height:240,weight:5500,quantity:10,cbm:23},{tonnage:5,tonnageKo:"5톤",carType:"TOP",width:220,length:620,height:240,weight:5500,quantity:10,cbm:23},{tonnage:5,tonnageKo:"5톤 축",hasAxle:!0,carType:"CARGO",width:220,length:800,height:230,weight:8800,quantity:12,cbm:41},{tonnage:5,tonnageKo:"5톤 축",hasAxle:!0,carType:"WING_BODY",width:220,length:850,height:230,weight:8800,quantity:12,cbm:41},{tonnage:5,tonnageKo:"5톤 축",hasAxle:!0,carType:"LIFT",width:220,length:730,height:230,weight:8800,quantity:12,cbm:41},{tonnage:5,tonnageKo:"5톤 축",hasAxle:!0,carType:"TOP",width:220,length:730,height:230,weight:8800,quantity:12,cbm:41},{tonnage:11,tonnageKo:"11톤",hasAxle:!0,carType:"CARGO",width:234,length:1020,height:250,weight:12100,quantity:16,cbm:57},{tonnage:11,tonnageKo:"11톤",hasAxle:!0,carType:"WING_BODY",width:234,length:1020,height:250,weight:12100,quantity:16,cbm:57},{tonnage:11,tonnageKo:"11톤",hasAxle:!0,carType:"LIFT",width:234,length:910,height:250,weight:12100,quantity:16,cbm:57},{tonnage:11,tonnageKo:"11톤",hasAxle:!0,carType:"TOP",width:234,length:910,height:250,weight:12100,quantity:16,cbm:57},{tonnage:18,tonnageKo:"18톤",hasAxle:!0,carType:"CARGO",width:234,length:1020,height:250,weight:19800,quantity:16,cbm:60},{tonnage:18,tonnageKo:"18톤",hasAxle:!0,carType:"WING_BODY",width:234,length:1020,height:250,weight:19800,quantity:16,cbm:60},{tonnage:18,tonnageKo:"18톤",hasAxle:!0,carType:"LIFT",width:234,length:960,height:250,weight:19800,quantity:16,cbm:60},{tonnage:18,tonnageKo:"18톤",hasAxle:!0,carType:"TOP",width:234,length:960,height:250,weight:19800,quantity:16,cbm:60},{tonnage:25,tonnageKo:"25톤",hasAxle:!0,carType:"CARGO",width:234,length:1010,height:250,weight:27500,quantity:18,cbm:60},{tonnage:25,tonnageKo:"25톤",hasAxle:!0,carType:"WING_BODY",width:234,length:1010,height:250,weight:27500,quantity:18,cbm:60},{tonnage:25,tonnageKo:"25톤",hasAxle:!0,carType:"LIFT",width:234,length:1010,height:250,weight:27500,quantity:18,cbm:60},{tonnage:25,tonnageKo:"25톤",hasAxle:!0,carType:"TOP",width:234,length:1010,height:250,weight:27500,quantity:18,cbm:60},{tonnage:25,tonnageKo:"트레일러",hasAxle:!0,carType:"FLAT_TRAILER",width:250,length:1241,height:141,weight:27500,quantity:"-",cbm:"-"}],M=n(60486),L=function(e){var t,n=e.onClickClose,r=(0,a.$G)(["order"]).t;return(0,o.jsx)(y.CommonModal,{title:r("order:vehicleInfo.specification.title"),modalIsOpen:!0,handleComplete:null,handleClose:n,confirmText:"",buttonVisible:!1,modalWidth:"920px",shouldCloseOnOverlayClick:!1,contentClassName:"","data-sentry-element":"CommonModal","data-sentry-component":"VehicleListModal","data-sentry-source-file":"VehicleListModal.tsx",children:(0,o.jsxs)("div",{className:"h-[480px] overflow-y-scroll pb-10",children:[(0,o.jsx)("div",{className:"mx-8 mb-4 mt-8 flex items-center justify-end text-[14px] font-normal text-co-02",children:r("order:vehicleInfo.specification.description")}),(0,o.jsx)("div",{className:"px-8",children:(0,o.jsxs)("table",{className:"w-full border-0",children:[(0,o.jsx)("thead",{className:"sticky top-0 border-t border-co-04 bg-co-10 text-[14px] font-normal text-co-02",children:(0,o.jsx)("tr",{children:null===(t=Object.values(E))||void 0===t?void 0:t.map(function(e){return(0,o.jsx)("th",{className:"px-[14px] py-[17px] font-medium",dangerouslySetInnerHTML:{__html:e}},e)})})}),(0,o.jsx)("tbody",{children:null==j?void 0:j.map(function(e,t){return(0,o.jsx)("tr",{className:"border-b border-co-08",children:Object.keys(E).map(function(t){var n;return(0,o.jsx)("td",{className:"py-[20px] text-center text-[14px] text-co-03",children:(n=e[t],"carType"===t?r("order:vehicleInfo.types.".concat(n)):"weight"===t||"length"===t?(0,M.Lg)(n):n)},t)})},"".concat(t))})})]})})]})})},A=n(15448),F=r.Z.getCurrentUserFromStorage().isMilkrunNaverOwner,W=function(e){var t=e.validation,n=e.value,r=e.onSetVehicle,i=e.isCjEnm,l=(0,a.$G)().t,d=(0,s.zf)({onSetVehicle:r}),c=d.isHanssem,u=d.isFursysGroup,m=d.vehicleCarTypes,h=d.handleClick,g=d.isOpenedSpecModal,y=d.setIsOpenedSpecModal,x=d.isScheduleStepCompleted;return(0,o.jsxs)("div",{className:"cc-order-vehicle-radio-box","data-sentry-component":"VehicleListBox","data-sentry-source-file":"VehicleListBox.tsx",children:[(0,o.jsxs)("div",{className:"mb-[6px] flex place-content-between items-center",children:[(0,o.jsx)(p.__,{label:l("order:vehicleInfo.choiceVehicle"),required:!0,className:"h-[20px]","data-sentry-element":"Label","data-sentry-source-file":"VehicleListBox.tsx"}),(0,o.jsx)(f.ii,{type:"button",sizeType:"T30",label:l("order:vehicleInfo.specification.title"),onClick:function(){return y(!0)},"data-sentry-element":"LineButton","data-sentry-source-file":"VehicleListBox.tsx"})]}),g&&(0,o.jsx)(L,{onClickClose:function(){return y(!1)}}),(0,o.jsx)("ul",{role:"list",className:"data",children:m.map(function(e){var t=n===e.ke
1y,r=e.value;if((c||"MOTORCYCLE"!==e.key)&&(c&&"WING_BODY_CARGO"===e.key&&(r="카고/윙"),"DUMP"!==e.key&&"TANK_LORRY"!==e.key))return F&&"WING_BODY_CARGO"!==e.key&&(e.disabled=!0),i&&"TRAILER"===e.key?null:(0,o.jsxs)("li",{onClick:function(){return h(e.key,e.disabled)},className:R()({selected:t,"!cursor-default !border-r-co-09 !bg-co-09":e.disabled}),children:[(0,o.jsx)("div",{className:R()("image",{"!bg-co-09":e.disabled}),children:(0,o.jsx)(k.Z,{selected:t,selectKey:e.key,disabled:e.disabled})}),(0,o.jsx)("div",{className:R()("flex-none text-[16px]",{"text-co-06":e.disabled}),children:r})]},e.key)})}),t&&(0,o.jsx)("p",{className:"validation",children:t}),n!==A.PV.TRAILER&&u&&x()&&(0,o.jsx)("p",{className:"mt-[10px] text-[12px] text-co-04",children:l("order:vehicleInfo.fareTypeDescription")}),n===A.PV.TRAILER&&(0,o.jsx)("p",{className:"mt-[10px] text-[12px] text-co-04",children:l("order:vehicleInfo.trailerDescription")})]})};function V(e){var t=e.vehicleTon,n=e.validation,i=e.onSelected,l=e.disabled,d=(0,a.$G)().t,c=(0,s.Rr)({onSelected:i}),u=c.isHanssem,m=c.vehicleTonOptions,h=c.handleTonChange,f=r.Z.getCurrentUserFromStorage().isMilkrunNaverOwner?[A.oi.TON1_0,A.oi.TON1_4,A.oi.TON2_5,A.oi.TON3_5,A.oi.TON5_0,A.oi.TON5_0_PLUS,A.oi.TON18_0,A.oi.TON25_0]:[];return(0,o.jsxs)("div",{"data-sentry-component":"VehicleTonListBox","data-sentry-source-file":"VehicleTonListBox.tsx",children:[(0,o.jsx)(p.__,{label:d("order:vehicleInfo.tonnage"),required:!0,"data-sentry-element":"Label","data-sentry-source-file":"VehicleTonListBox.tsx"}),(0,o.jsx)(p.$m,{options:m,selectedKey:t,validation:n,onClickOption:h,isSelectDisable:l,disabledOptionKeys:f,className:"min-w-fit flex-1","data-sentry-element":"SquareRadio","data-sentry-source-file":"VehicleTonListBox.tsx"}),l&&!u&&(0,o.jsx)("p",{className:"mt-[10px] text-[12px] text-co-04",children:d("order:vehicleInfo.fixedTonDescription")}),l&&u&&(0,o.jsx)("p",{className:"mt-[10px] text-[12px] text-co-04",children:"다마스(0.3톤), 라보(0.5톤), 트레일러(25톤), 오토바이(0.05톤) 선택 시 차량 톤수가 자동으로 반영됩니다."})]})}var B=n(16870),U=n(76169),Z=n(34052),G=n(66947),q=function(e){var t=e.onClose,n=(0,a.$G)().t,r=(0,G.bU)().fareType;return(0,o.jsx)(Z.VF,{title:n("warehousing:warehousingPanel.errorModal.title"),description:n(r!==i.NY.QUICK_FREIGHT?"warehousing:warehousingPanel.errorModal.description3":"warehousing:warehousingPanel.errorModal.description4"),buttonLabel:n("common:button.confirm"),onClickButton:t,"data-sentry-element":"AlertModal","data-sentry-component":"VehicleErrorModal","data-sentry-source-file":"VehicleErrorModal.tsx"})},K=n(92594),$=function(e){var t=e.isVisibleMethodType,n=e.handleVehicleDispatchRadio,a=(0,s.ME)(),l=a.t,d=a.fareType,c=a.vehicleType,u=a.vehicleTon,p=a.loadingBox,m=a.count,h=a.dispatchInterval,f=a.dispatchNumberType,g=a.vehicleTypeValidator,y=a.vehicleTonValidator,x=a.countValidator,v=a.isDisabledTonType,T=a.loadingMethod,C=a.unloadingMethod,w=a.isLifted,D=a.isShowChipTooltip,P=a.isNonVibrating,R=a.isRisingWing,k=a.isFrozenTemp,E=a.isRefrigeratedTemp,j=a.isRoomTemp,M=a.isLongLength,L=a.setIsShowChipTooltip,A=a.setLoadingMethod,F=a.setUnloadingMethod,Z=a.setDispatchNumberType,G=a.handleSetVehicle,$=a.handleTonChange,H=a.handleDispatchNumberChange,Y=a.handleFormReset,z=a.handleRegister,Q=a.handleSelectVehicleChip,J=a.isShowVehicleErrorModal,X=a.setIsShowVehicleErrorModal,ee=a.setIsLifted,et=a.setLoadingBox,en=a.setIsNonVibrating,eo=a.setIsRisingWing,er=a.setIsFrozenTemp,ei=a.setIsRefrigeratedTemp,ea=a.setIsRoomTemp,es=a.setIsLongLength,el=(0,U.Z)().vehicles,ed=r.Z.getCurrentUserFromStorage(),ec=!!(null==ed?void 0:ed.vendorInfo)||(null==ed?void 0:ed.isCjEnmId);return(0,o.jsxs)(O.$5,{description:l("order:vehicleInfo.subTitle"),onReset:Y,onRegister:z,"data-sentry-element":"CommonFormInnerLayout","data-sentry-component":"FormVehicleUnbanType","data-sentry-source-file":"FormVehicleUnbanType.tsx",children:[(0,o.jsxs)("div",{className:"mb-[24px] flex flex-col gap-[24px]",children:[t&&(0,o.jsx)(N,{dispatchType:i.dS.UNBAN,setVehicleDispatchRadio:n}),el.length>0&&(0,o.jsx)(B.Z,{onClickChip:Q,chips:el,title:l("order:recentOrderChips.vehicle"),tooltip:l("order:recentOrderChips.tooltip"),isShowTooltip:D,isCjEnm:ec,setIsShowTooltip:function(){return L(!D)}}),(0,o.jsx)(W,{value:c,isCjEnm:ec,validation:g,onSetVehicle:G,"data-sentry-element":"VehicleListBox","data-sentry-source-file":"FormVehicleUnbanType.tsx"}
1),(0,o.jsx)(V,{vehicleTon:null==u?void 0:u.key,validation:y,onSelected:$,disabled:v,"data-sentry-element":"VehicleTonListBox","data-sentry-source-file":"FormVehicleUnbanType.tsx"}),(0,o.jsx)("div",{className:"flex flex-col",children:(0,o.jsx)(K.Z,{isLifted:w,loadingBox:p,fareType:d,vehicleType:c,vehicleTon:null==u?void 0:u.key,isNonVibrating:P,isRisingWing:R,isFrozenTemp:k,isRefrigeratedTemp:E,isRoomTemp:j,isLongLength:M,isCjEnm:ec,onClickIsLifted:ee,onClickIsStowageBackOpen:function(e){return et((0,b._)((0,S._)({},p),{isOpenBack:e}))},onClickIsStowageLeftOpen:function(e){return et((0,b._)((0,S._)({},p),{isOpenLeft:e}))},onClickIsStowageRightOpen:function(e){return et((0,b._)((0,S._)({},p),{isOpenRight:e}))},onClickIsNonVibrating:en,onClickIsRisingWing:eo,onClickIsFrozenTemp:er,onClickIsRefrigeratedTemp:ei,onClickIsRoomTemp:ea,onClickIsLongLength:es,"data-sentry-element":"VehicleOptions","data-sentry-source-file":"FormVehicleUnbanType.tsx"})}),(0,o.jsx)(_,{dispatchNumber:m,dispatchInterval:h,dispatchValidation:x,onSelected:H,dispatchNumberType:f,setDispatchNumberType:Z,"data-sentry-element":"FormDispatchNumber","data-sentry-source-file":"FormVehicleUnbanType.tsx"}),(0,o.jsx)(I,{selectLoadingMethod:T,selectUnloadingMethod:C,setSelectLoadingMethod:A,setSelectUnloadingMethod:F,selectedVehicleTon:u,"data-sentry-element":"FormMethod","data-sentry-source-file":"FormVehicleUnbanType.tsx"})]}),J&&(0,o.jsx)(q,{onClose:function(){return X(!1)}})]})},H=function(){var e=r.Z.getCurrentUserFromStorage(),t=(0,a.$G)().t,n=(0,s.y)(),d=n.selectVehicleMethodType,c=n.handleVehicleDispatchRadio;return(0,o.jsx)(l.Z,{title:t("order:vehicleMethodInfo.title"),"data-sentry-element":"CommonFormLayout","data-sentry-component":"FormVehicle","data-sentry-source-file":"FormVehicle.tsx",children:d===i.dS.UNBAN?(0,o.jsx)($,{isVisibleMethodType:e.isDirectOperatedCarOption,handleVehicleDispatchRadio:c}):(0,o.jsx)(C,{handleVehicleDispatchRadio:c})})}},62673:function(e,t,n){n.d(t,{Z:function(){return L}});var o=n(85893),r=n(3292),i=n(20502),a=n(64247),s=n(5787),l=n(92853),d=n(18441),c=n(5233),u=n(24043),p=n(75855),m=n(93967),h=n.n(m),f=n(23675),g=n(52822),y=n(27484),x=n.n(y),v=n(67294),T=n(23908),I=n(24270),N=n(58377),C=n(67698),S=n(17351),b=n(76271),O=n(58918),w=function(e){var t=e.waypointDate,n=e.isCheckedArriveDate,r=e.setWaypointDate,i=e.setIsCheckedArriveDate,s=(0,c.$G)().t,d=S.Z.getCurrentUserFromStorage().isHanssem,m=(0,C.kt)({dateFormat:s("driving:search.dateFormat"),setSelected:function(e){return E(e)}}),y=m.ref,w=m.isOpened,D=m.openDatePicker,_=m.closeDatePicker,P=(0,u._)((0,v.useState)(new Date),2),R=P[0],k=P[1],E=function(e){return r((0,O.hV)(e))};return(0,v.useEffect)(function(){var e=x()(new Date).clone(),n=b.g.ceilToNearest30(e.add(30,"minutes").toDate());x()(t).format("YYYYMMDD")>x()(n).format("YYYYMMDD")?k(b.g.currentDate()):k(n),0>x()(t).diff(n)&&r(n)},[t]),(0,o.jsx)(a.__,{label:s("order:baros.waypointDate.label"),labelClassName:"!mb-[3px]",className:"mb-0 flex flex-1 flex-col",labelChildren:(0,o.jsx)(a.XZ,{label:s("order:baros.waypointDate.checkBox"),checked:n,className:"float-left !my-0 font-normal",onClick:function(){return i(!n)}}),"data-sentry-element":"Label","data-sentry-component":"FormWaypointDate","data-sentry-source-file":"FormWaypointDate.tsx",children:(0,o.jsx)(p.CommonDatePicker,{ref:y,className:h()("flex h-[56px] w-[335px] cursor-pointer items-center rounded-[4px] border border-co-08 bg-co-11 px-[20px] py-[15px] text-[16px] font-normal leading-[26px] -tracking-[0.32px] text-co-02 outline-none focus:border-co-02",{"border-co-09 bg-co-09":n}),disabled:n,calendarClassName:h()("cc-common-date-picker !border !border-co-09 comebackDateCalender date-picker-absolute",{"date-picker-focus":w}),dateFormat:s("order:schedule.calendarFormat"),isOpened:w,onFocus:D,onBlur:_,onClickOutside:_,showTimeSelect:!0,minDate:R,minTime:R,maxTime:(0,f.default)((0,g.default)(new Date,59),23),selected:t,value:x()(t).format(T.$4.FULL_DATE_TIME_KO),onChange:E,customInput:d?(0,o.jsx)(N.Z,{className:h()({"border border-co-02":w,"text-co-06":n}),disabledlabel:n?s("order:baros.waypointDate.checkBox"):void 0}):(0,o.jsx)(I.Z,{className:h()({"border border-co-02":w,"text-co-06":n}),disabledlabel:n?s("order:baros.waypointDate.checkBox"):void 0}),renderCustomHeader:function(e){return(0,o.jsx)(l.fR,{params:e,onChangeDate:E})},"data-sentry-element":"CommonDatePicker","data-sentry-source-file":"FormWaypointDate.tsx"})})},D=function(e){var t=e.departureType,n=e.waypointDate,r=e.isCheckedArriveDate,i=e.onClickDepartureType,s=e.setWaypointDate,l=e.setIsCheckedArriveDate,u=(0,
1c.$G)().t,p=function(e){i(e)};return(0,o.jsxs)("div",{className:"flex flex-row gap-[30px]","data-sentry-component":"FormWaypointDepartureTypeDate","data-sentry-source-file":"FormWaypointDepartureTypeDate.tsx",children:[(0,o.jsxs)("div",{className:"w-full basis-[50%]",children:[(0,o.jsx)(a.__,{required:!0,label:u("order:waypointZone.checkBoxTransferTitle"),"data-sentry-element":"Label","data-sentry-source-file":"FormWaypointDepartureTypeDate.tsx"}),(0,o.jsx)(a.$m,{options:[{key:d.SD.DEPARTURE,value:u("order:waypointZone.checkBoxLoading")},{key:d.SD.DESTINATION,value:u("order:waypointZone.checkBoxUnloading")}],selectedKey:t,onClickOption:function(e){return p(e.key)},"data-sentry-element":"SquareRadio","data-sentry-source-file":"FormWaypointDepartureTypeDate.tsx"})]}),(0,o.jsx)("div",{className:"basis-[50%]",children:(0,o.jsx)(w,{waypointDate:n,isCheckedArriveDate:r,setWaypointDate:s,setIsCheckedArriveDate:l,"data-sentry-element":"FormWaypointDate","data-sentry-source-file":"FormWaypointDepartureTypeDate.tsx"})})]})},_=n(29255),P=n(1859),R=n(32516),k=n(72032),E=n(33204),j=function(e){var t=e.waypointOrderNo,n=(0,c.$G)().t,u=(0,(0,C.aF)().getCurrentUser)().isHanssem,p=(0,_.KM)(t),m=p.fields,h=m.companyName,f=m.waypointType,g=m.waypointDate,y=m.address,x=m.managerName,v=m.managerPhone,T=m.memo,I=m.isBasicAddress,N=m.isRegToAddressBook,S=m.isCheckedArriveDate,b=m.palletNo,O=m.hanssemOrderNo,w=m.itemType,j=m.isCashOnDelivery,M=m.liftingWork,L=m.tileBox,A=m.setPalletNo,F=m.setHanssemOrderNo,W=m.setItemType,V=m.setIsCashOnDelivery,B=m.setLiftingWork,U=m.setTileBox,Z=m.setCompanyName,G=m.setAddress,q=m.setManagerName,K=m.setManagerPhone,$=m.setMemo,H=m.setIsBasicAddress,Y=m.setIsRegToAddressBook,z=m.setWaypointType,Q=m.setWaypointDate,J=m.setIsCheckedArriveDate,X=m.handleSelectAddressBook,ee=m.handleReset,et=m.handleRegister,en=p.validators,eo=en.companyNameValidator,er=en.addressValidator,ei=en.managerNameValidator,ea=en.managerPhoneNumberValidator,es=en.resetAddressValidator,el=p.addressBookFields,ed=el.isErrorCreateAddressBook,ec=el.errorCreateAddressBook;return(0,o.jsx)(l.$5,{description:n("order:waypointZone.description"),resetButton:(0,o.jsx)(l.Ah,{onReset:ee}),onReset:ee,onRegister:et,"data-sentry-element":"CommonFormInnerLayout","data-sentry-component":"FormWaypointZone","data-sentry-source-file":"FormWaypointZone.tsx",children:(0,o.jsxs)("div",{className:"mb-10 flex flex-col gap-6",children:[(0,o.jsx)(D,{departureType:f,waypointDate:g,isCheckedArriveDate:S,onClickDepartureType:z,setWaypointDate:Q,setIsCheckedArriveDate:J,"data-sentry-element":"FormWaypointDepartureTypeDate","data-sentry-source-file":"FormWaypointZone.tsx"}),(0,o.jsx)(a.II,{required:!0,label:n("order:waypointZone.companyName"),value:h,validation:eo,placeholder:n("order:waypointZone.placeholder.companyName"),maxLength:30,labelChildren:(0,o.jsx)(s.x,{onAddressBookSelected:X}),onChange:function(e){return Z(e.target.value.substring(0,30))},onReset:function(){return Z("")},"data-sentry-element":"Input","data-sentry-source-file":"FormWaypointZone.tsx"}),(0,o.jsx)(i.Z,{address:y,label:n("order:waypointZone.address"),placeholder:n("order:waypointZone.placeholder.address"),detailPlaceholder:n("order:waypointZone.placeholder.detailAddress"),validation:er,initValidation:es,onChangeAddress:function(e){return G(P.ws.create(e))},"data-sentry-element":"AddressInputComponent","data-sentry-source-file":"FormWaypointZone.tsx"}),(0,o.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,o.jsx)(a.II,{required:!0,className:"flex-1",label:n("order:waypointZone.managerName"),value:x,validation:ei,placeholder:n("order:waypointZone.placeholder.managerName"),onChange:function(e){return q(e.target.value.substring(0,30))},onReset:function(){return q("")},"data-sentry-element":"Input","data-sentry-source-file":"FormWaypointZone.tsx"}),(0,o.jsx)(a.II,{required:!0,className:"flex-1",label:n("order:waypointZone.managerPhoneNumber"),value:v,validation:ea,placeholder:n("order:waypointZone.placeholder.managerPhoneNumber"),onChange:function(e){return K((0,r.Kd)(e.target.value).substring(0,15))},onReset:function(){return K("")},"data-sentry-element":"Input","data-sentry-source-file":"FormWaypointZone.tsx"})]}),(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:"flex flex-row gap-[60
1px]",children:[(0,o.jsxs)("div",{className:"mt-[18px] flex items-center",children:[(0,o.jsx)(a.XZ,{className:"mb-0 mt-0",label:n("order:waypointZone.setAsDefaultZone",{index:String(t+1)}),checked:I,onClick:function(){return H(!I)},"data-sentry-element":"Checkbox","data-sentry-source-file":"FormWaypointZone.tsx"}),(0,o.jsx)(R.Z,{className:"ml-[4px]",isHover:!0,id:"zoneDefaultTooltip",place:"top-start",isOpenStart:!1,useCloseButton:!1,tooltip:(0,o.jsx)("div",{className:"py-[4px]",children:(0,o.jsxs)("p",{children:[n("order:waypointZone.setAsDefaultZone",{index:String(t+1)}),"로 설정 시 입력하신 '회사명, 주소,",(0,o.jsx)("br",{}),"담당자 이름, 연락처, 메모' 정보를 자동으로 불러옵니다."]})}),"data-sentry-element":"Tooltip","data-sentry-source-file":"FormWaypointZone.tsx"})]}),(0,o.jsx)(a.XZ,{className:"mb-0",disabled:I,label:n("order:waypointZone.regToAddress"),checked:N,onClick:function(){return Y(!N)},"data-sentry-element":"Checkbox","data-sentry-source-file":"FormWaypointZone.tsx"})]}),I&&(0,o.jsx)("div",{className:"mt-[17px]",children:(0,o.jsx)("p",{className:"text-co-05",children:n("order:waypointZone.basicAddressRegistrationInformation",{transferCount:String(t+1)})})})]}),u&&(0,o.jsx)(E.Z,{isUseNewOrder:!0,isShowCashOnDelivery:!0,palletNo:b,hanssemOrderNo:O,itemType:w,isCashOnDelivery:j,liftingWork:M,tileBox:L,setPalletNo:A,setHanssemOrderNo:F,setItemType:W,setIsCashOnDelivery:V,setLiftingWork:B,setTileBox:U}),(0,o.jsxs)("div",{className:"relative",children:[(0,o.jsx)("div",{className:"absolute right-0",children:(0,o.jsx)(k.Z,{onSelectMemo:function(e){return $(e.substring(0,500))},currentZoneType:d.EO.WAYPOINT,"data-sentry-element":"CommonRecentMemoList","data-sentry-source-file":"FormWaypointZone.tsx"})}),(0,o.jsx)(a.gx,{labelClassName:"h-[30px] !mb-0",rows:4,cols:50,label:n("order:waypointZone.memo"),value:T,maxLength:500,onChange:function(e){return $(e.target.value.substring(0,500))},"data-sentry-element":"Textarea","data-sentry-source-file":"FormWaypointZone.tsx"})]}),(0,o.jsx)(s.h,{isError:ed,error:ec,"data-sentry-element":"AddressBookErrorModal","data-sentry-source-file":"FormWaypointZone.tsx"}),(0,o.jsx)(l.sh,{"data-sentry-element":"CommonFormZoneWaypointErrorModal","data-sentry-source-file":"FormWaypointZone.tsx"})]})})},M=n(66947),L=function(){var e=(0,c.$G)().t,t=(0,M.Lq)().currentWayPointIndex;return(0,o.jsx)(l.YJ,{title:e("order:waypointZone.title",{index:t+1}),"data-sentry-element":"CommonFormLayout","data-sentry-component":"FormWaypoint","data-sentry-source-file":"FormWaypoint.tsx",children:(0,o.jsx)(j,{waypointOrderNo:t,"data-sentry-element":"FormWaypointZone","data-sentry-source-file":"FormWaypoint.tsx"})})}},24345:function(e,t,n){n.d(t,{Z:function(){return s}});var o=n(85893),r=n(93967),i=n.n(r),a=n(5233);function s(e){var t=e.estimatedRouteInfo,n=(0,a.$G)().t;return(0,o.jsxs)("p",{className:"flex items-center gap-[10px] 2xl:gap-[14px]","data-sentry-component":"EstimatedDistance","data-sentry-source-file":"EstimatedDistance.tsx",children:[(0,o.jsx)("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-[14px] font-normal -tracking-[0.02em] text-co-06 xl:text-[16px]",children:n("order:pricing.totalDistance")}),(0,o.jsx)("span",{className:i()("text-[16px] font-bold text-co-11 xl:text-[20px]",{"w-[53px] 2xl:w-[66px]":!(null==t?void 0:t.estimateDistance)}),children:(null==t?void 0:t.estimateDistance)?null==t?void 0:t.formattedDistance():"-"})]})}},75435:function(e,t,n){n.d(t,{Z:function(){return d}});var o=n(85893),r=n(5233),i=n(66947),a=n(93967),s=n.n(a),l=n(17351);function d(e){e.estimatedPricingInfo;var t=(0,r.$G)().t,n=(0,i.Lq)(),a=n.priceInfo,d=n.isMixOrder,c=n.displayOrderFixedFee,u=l.Z.getCurrentUserFromStorage().isMilkrunNaverOwner?"0원":a?d?a.displayLcl:c||a.display:null;return(0,o.jsxs)("p",{className:"flex items-center gap-[10px] 2xl:gap-[14px]","data-sentry-component":"EstimatedPrice","data-sentry-source-file":"EstimatedPrice.tsx",children:[(0,o.jsx)("span",{title:t("order:pricing.estimatedFare"),className:"overflow-hidden text-ellipsis whitespace-nowrap text-[14px] font-normal -tracking-[0.02em] text-co-06 xl:text-[16
1px]",children:t("order:pricing.estimatedFare")}),(0,o.jsx)("span",{className:s()("overflow-hidden text-ellipsis whitespace-nowrap text-[20px] font-bold text-co-11 xl:text-[26px]",{"w-[218px] 2xl:w-[283px]":!u}),children:u||"-"})]})}},6382:function(e,t,n){n.d(t,{Z:function(){return s}});var o=n(85893),r=n(5233),i=n(93967),a=n.n(i);function s(e){var t=e.estimatedRouteInfo,n=(0,r.$G)().t;return(0,o.jsxs)("p",{className:"flex items-center gap-[10px] 2xl:gap-[14px]","data-sentry-component":"EstimatedTime","data-sentry-source-file":"EstimatedTime.tsx",children:[(0,o.jsx)("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-[14px] font-normal -tracking-[0.02em] text-co-06 xl:text-[16px]",children:n("order:pricing.totalRequiredTime")}),(0,o.jsx)("span",{className:a()("overflow-hidden text-ellipsis whitespace-nowrap text-[16px] font-bold text-co-11 xl:text-[20px]",{"w-[75px] 2xl:w-[94px]":!(null==t?void 0:t.spendTimeInMinutes())}),children:(null==t?void 0:t.spendTimeInMinutes())?null==t?void 0:t.formattedDuration():"-"})]})}},89579:function(e,t,n){n.d(t,{Z:function(){return v}});var o=n(85893),r=n(38095),i=n(24043),a=n(64247),s=n(67294),l=function(e){var t=e.address,n=e.title;return(0,o.jsxs)("li",{"data-sentry-component":"AddressItem","data-sentry-source-file":"AddressItem.tsx",children:[(0,o.jsx)("h4",{className:"truncate text-[13px] font-bold leading-[18px] -tracking-[0.26px]",children:n}),(0,o.jsx)("p",{className:"truncate text-[12px] font-[300] leading-[18px] -tracking-[0.24px]",children:t.fullAddress()})]})},d=n(66947),c=n(93967),u=n.n(c),p=n(5233),m=function(){var e=(0,p.$G)().t,t=(0,i._)((0,s.useState)(!1),2),n=t[0],r=t[1],c=(0,d.Pl)().address,m=(0,d.V8)().address,h=(0,d.aK)().waypoints;return(0,o.jsx)("div",{className:"absolute left-[50px] top-[20px] z-recommendedRouteTopBox","data-sentry-component":"AddressList","data-sentry-source-file":"AddressList.tsx",children:(0,o.jsxs)("div",{className:u()("w-[250px] rounded-[8px_10px_10px_10px] bg-[rgba(255,255,255,.8)] p-[15px_20px] text-co-02",{"h-[56px]":!n}),children:[(0,o.jsx)("div",{className:u()({"border-b border-dashed":n}),children:(0,o.jsx)(a.XZ,{className:"my-0 mb-[15px]",label:e("order:recommendedRoute.button1"),checked:n,onClick:function(){return r(!n)},"data-sentry-element":"Checkbox","data-sentry-source-file":"AddressList.tsx"})}),(0,o.jsxs)("ul",{className:u()("mt-[15px] flex flex-col gap-[15px]",{hidden:!n}),children:[(0,o.jsx)(l,{address:c,title:e("order:recommendedRoute.loadingZone"),"data-sentry-element":"AddressItem","data-sentry-source-file":"AddressList.tsx"}),h.map(function(t,n){return(0,o.jsx)(l,{address:t.address,title:"".concat(e("order:recommendedRoute.waypoint")," ").concat(n+1)},"".concat(t.address.point.lat).concat(t.address.point.lng).concat(n))}),(0,o.jsx)(l,{address:m,title:e("order:recommendedRoute.unloadingZone"),"data-sentry-element":"AddressItem","data-sentry-source-file":"AddressList.tsx"})]})]})})},h=n(75855),f=n(29255),g=n(52227),y=function(){var e=(0,f.NW)(),t=e.map,n=e.setMap,r=e.showPathLocation,i=e.activeRecommendRoute,a=e.inActiveRecommendRoute;return(0,o.jsx)(h.InaviMap,{mapClassName:"w-full h-full left-0 top-0 right-0",onMapCreated:function(e){return n(e)},"data-sentry-element":"InaviMap","data-sentry-component":"MapBox","data-sentry-source-file":"MapBox.tsx",children:r&&(0,o.jsx)(g.Z,{map:t,activePaths:i.routePaths(),roundPaths:i.roundRoutePaths(),inactivePaths:a.routePaths()})})},x=function(){return(0,o.jsxs)("div",{className:"relative h-full w-full bg-co-09 ","data-sentry-component":"RouteMap","data-sentry-source-file":"RouteMap.tsx",children:[(0,o.jsx)(m,{"data-sentry-element":"AddressList","data-sentry-source-file":"RouteMap.tsx"}),(0,o.jsx)(y,{"data-sentry-element":"MapBox","data-sentry-source-file":"RouteMap.tsx"})]})},v=function(e){var t=e.onClickOrderUpdate,n=(0,p.$G)().t;return(0,s.useEffect)(function(){return window.document.body.querySelector("main")&&(window.document.body.querySelector("main").style.overflow="hidden"),function(){window.document.body.querySelector("main")&&(window.document.body.querySelector("main").style.overflow=null)}},[]),(0,o.jsxs)("div",{className:"absolute left-0 top-0 flex h-[calc(100%-86px)] w-full","data-sentry-component":"RouteMapPanel","data-sentry-source-file":"RouteMapPanel.tsx",children:[(0,o.jsx)("div",{className:"relative h-full w-[500px] bg-[rgba(255,255,255,.8)]",children:(0,o.jsx)(r.gg,{type:"button",className:"T42 C03 absolute bottom-[60px] left-[50%] w-[140px] translate-x-[-50%]",label:n("order:recommendedRoute.button2"),onClick:t,"data-sentry-element":"SolidButton","data-sentry-source-file":"RouteMapPanel.tsx"})}),(0,o.jsx)("div",{className:"z-10 flex-1",children:(0,o.jsx)(x,{"data-sentry-element":"RouteMap","data-sentry-source-file":"RouteMapPanel.tsx"})})]})}},52227:function(e,t,n){var o=n(85893),r=n(75855),i=n(29255),a=n(34437),s=n(18441),l=n(5233),d=n(97762);t.Z=function(e){var t=e.map,n=e.roundPaths,c=e.activePaths,u=e.inactivePaths,p=(0,l.$G)(["order"]).t,m=(0,i.WD)(t),h=m.loadingPoint,f=m.unloadingPoint,g=m.icons,y=m.loadingAddress,x=m.waypoints,v=m.unloadingAddress;return(0,o.jsxs)(o.Fragment,{children:[y&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(r.Marker,{map:t,position:h,icon:g[s.c9.LOADING]}),(0,o.jsx)(r.CustomInfoWindow,{map:t,position:h,content:d.renderToString((0,o.jsx)("span",{className:"h-[20px] w-[50px] rounded-[60px] bg-primary-01 px-[8px] text-center text-co-11",children:p("order:recommendedRoute.loadingZone")})),offset:[0,-55]})]}),x.length>0&&x.map(function(e,n){var i=a.I.mapToPresentation(e.address.point);return(0,o.jsxs)("div",{children:[(0,o.jsx)(r.Marker,{map:t,position:i,icon:g[s.c9.WAYPOINT]}),(0,o.jsx)(r.CustomInfoWindow,{map:t,position:i,content:d.renderToString((0,o.jsxs)("span",{className:"h-[20px] min-w-[56px] rounded-[60px] bg-co-03 px-[8px] text-center text-co-11",children:[p("order:recommendedRoute.waypoint"),n+1]})),offset:[0,-55]})]},"".concat(i.lat).concat(i.lng).concat(n))}),v&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(r.Marker,{map:t,position:f,icon:g[s.c9.UNLOADING]}),(0,o.jsx)(r.CustomInfoWindow,{map:t,position:f,content:d.renderToString((0,o.jsx)("span",{className:"h-[20px] w-[50px] rounded-[60px] bg-secondary-02 px-[8px] text-center text-co-11",children:p("order:recommendedRoute.unloadingZone")})),offset:[0,-55]})]}),u&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(r.Polyline,{map:t,path:u,style:{lineColor:"#868C98",lineWidth:3,lineCap:"round",lineJoin:"round"}}),(0,o.jsx)(r.Polyline,{map:t,path:u,style:{lineColor:"#868C98",lineWidth:14,lineOpacity:.2,lineCap:"round",lineJoin:"round"}})]}),(0,o.jsx)(r.Polyline,{map:t,path:c,style:{lineColor:"#122699",lineWidth:3,lineCap:"round",lineJoin:"round"},"data-sentry-element":"Polyline","data-sentry-source-file":"RoutePathLine.tsx"}),(0,o.jsx)(r.Polyline,{map:t,path:c,style:{lineColor:"#122699",lineWidth:14,lineOpacity:.2,lineCap:"round",lineJoin:"round"},"data-sentry-element":"Polyline","data-sentry-source-file":"RoutePathLine.tsx"}),n&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(r.Polyline,{map:t,path:n,style:{lineColor:"#DF1464",lineWidth:3,lineCap:"round",lineJoin:"round"}}),(0,o.jsx)(r.Polyline,{map:t,path:n,style:{lineColor:"#DF1464",lineWidth:14,lineOpacity:.2,lineCap:"round",lineJoin:"round"}})]})]})}},59218:function(e,t,n){var o=n(85893),r=n(60486),i=n(5233),a=n(29255),s=n(18441),l=n(92853),d=n(6441);t.Z=function(){var e=(0,i.$G)().t,t=(0,a.cc)().cargoState,n=t.cargoItem,c=t.packingMethod,u=t.totalWeight,p=t.totalCount,m=t.packingSize,h=t.stepStatus,f=t.isStepCompleted;return(0,o.jsx)("div",{"data-sentry-component":"StepCargo","data-sentry-source-file":"StepCargo.tsx",children:(0,o.jsxs)(l.xy,{step:s.I$.STEP_
1CARGO,stepStatus:h,"data-sentry-element":"CommonStep","data-sentry-source-file":"StepCargo.tsx",children:[f()&&(0,o.jsxs)("div",{children:[(0,o.jsx)(l.GW,{description:"".concat(n.itemName," ").concat(e("order:cargoInfo.packagingTypes.".concat(c)),"(").concat(p?"".concat((0,r.Lg)(p)).concat(e("order:common.count")):e("order:cargoInfo.emptyCount"),")"),isExistData:!0}),(0,o.jsx)(l.ui,{description:"".concat(u).concat(e("order:common.ton")," ").concat(m.width||m.length||m.height?"/ ".concat((0,d._0)(m.width,m.length,m.height)):""),isExistData:!0,className:"overflow-hidden text-ellipsis whitespace-nowrap"})]}),!f()&&(0,o.jsxs)("div",{children:[(0,o.jsx)(l.GW,{description:e("order:cargoInfo:description")}),(0,o.jsx)(l.ui,{description:e("order:cargoInfo:subDescription")})]})]})})}},45279:function(e,t,n){var o=n(85893),r=n(5233),i=n(29255),a=n(18441),s=n(92853);t.Z=function(){var e=(0,r.$G)().t,t=(0,i.cc)(),n=t.scheduleState,l=t.getFormattedDateTime,d=n.stepStatus,c=n.loadingDate,u=n.unloadingDate,p=n.isStepCompleted;return(0,o.jsx)("div",{"data-sentry-component":"StepDateTime","data-sentry-source-file":"StepDateTime.tsx",children:(0,o.jsxs)(s.xy,{step:a.I$.STEP_SCHEDULE,stepStatus:d,"data-sentry-element":"CommonStep","data-sentry-source-file":"StepDateTime.tsx",children:[p()&&(0,o.jsxs)("div",{className:"flex h-full w-full flex-col gap-[10px]",children:[(0,o.jsxs)("div",{className:"flex items-center",children:[(0,o.jsx)(s.ui,{description:e("order:schedule.loading"),isExistData:!0}),(0,o.jsx)("span",{children:"\xa0\xa0"}),(0,o.jsx)(s.GW,{description:l(c),isExistData:!0})]}),(0,o.jsxs)("div",{className:"flex items-center",children:[(0,o.jsx)(s.ui,{description:e("order:schedule.unloading"),isExistData:!0}),(0,o.jsx)("span",{children:"\xa0\xa0"}),(0,o.jsx)(s.GW,{description:l(u),isExistData:!0})]})]}),!p()&&(0,o.jsxs)("div",{className:"flex flex-col gap-[10px]",children:[(0,o.jsxs)("p",{className:"flex flex-row items-center gap-[10px]",children:[(0,o.jsx)("span",{className:"text-sm font-light text-co-04",children:e("order:schedule:loading")}),(0,o.jsx)(s.GW,{description:e("order:schedule:loadingDescription")})]}),(0,o.jsxs)("p",{className:"flex flex-row items-center gap-[10px]",children:[(0,o.jsx)("span",{className:"text-sm font-light text-co-04",children:e("order:schedule:unloading")}),(0,o.jsx)(s.GW,{description:e("order:schedule:unloadingDescription")})]})]})]})})}},46863:function(e,t,n){var o=n(85893),r=n(29255),i=n(18441),a=n(92853);t.Z=function(){var e=(0,r.cc)(),t=e.loadingZoneState,n=e.getDisplayAddress,s=t.stepStatus,l=t.address;return(0,o.jsx)("div",{"data-sentry-component":"StepLoading","data-sentry-source-file":"StepLoading.tsx",children:(0,o.jsx)(a.xy,{step:i.I$.STEP_LOADING,stepStatus:s,"data-sentry-element":"CommonStep","data-sentry-source-file":"StepLoading.tsx",children:(0,o.jsx)(a.Hs,{localeNS:i.BI.LOADING_ZONE,loadingZoneState:t,displayAddress:n(l),"data-sentry-element":"CommonStepZone","data-sentry-source-file":"StepLoading.tsx"})})})}},77246:function(e,t,n){n.d(t,{Z:function(){return f}});var o=n(85893),r=n(24043),i=n(5233),a=n(67294),s=n(75855),l=n(52227),d=n(66947),c=function(e){var t=e.onClickClose,n=(0,i.$G)().t,c=(0,r._)((0,a.useState)(null),2),u=c[0],p=c[1],m=(0,d.Pl)().isStepCompleted,h=(0,d.V8)().isStepCompleted,f=(0,d.Lq)().routeInfo,g=(0,r._)((0,a.useState)(!1),2),y=g[0],x=g[1];return(0,a.useEffect)(function(){u&&m()&&h()?x(!0):x(!1)},[u]),(0,o.jsx)(s.CommonModal,{modalIsOpen:!0,titleVisible:!0,buttonVisible:!1,title:n("order:button.viewMap"),closeText:"",confirmText:"",handleComplete:null,modalWidth:"860px",modalHeight:"80vh",contentClassName:"flex flex-col",contentHeight:"100%",shouldCloseOnOverlayClick:!1,handleClose:function(){return t()},"data-sentry-element":"CommonModal","data-sentry-component":"RoutePreviewModal","data-sentry-source-file":"RoutePreviewModal.tsx",children:(0,o.jsx)("div",{className:"flex h-[calc(80vh-80px)] w-full flex-col p-[30px]",children:(0,o.jsx)(s.InaviMap,{mapClassName:"w-full h-full left-0 top-0 right-0",onMapCreated:function(e){p(e)},"data-sentry-element":"InaviMap","data-sentry-source-file":"RoutePreviewModal.tsx",children:y&&(0,o.jsx)(l.Z,{map:u,activePaths:f.routePaths(),roundPaths:f.roundRoutePaths()})})})})},u=function(){var e=(0,i.$G)().t,t=(0,r._)((0,a.useState)(!1),2),n=t[0],s=t[1];return(0,o.jsxs)("div",{"data-sentry-component":"RoutePreviewButton","data-sentry-source-file":"RoutePreviewButton.tsx",children:[(0,o.jsx)("button",{type:"button",onClick:function(){return s(!0)},className:"border-b border-b-co-06 text-[13px] font-medium leading-[18px] -tracking-[0.26px] text-co-04",children:e("order:button.viewMap")}),n&&(0,o.jsx)(c,{onClickClose:function(){return s(!1)}})]})},p=n(29255),m=n(18441),h=n(92853),f=function(e){var t=e.visibleShowMap,n=(0,p.cc)(),r=n.unloadingZoneState,i=n.getDisplayAddress,a=n.loadingZoneState,s=n.waypointListState,l=r.stepStatus,d=r.address;return(0,o.jsx)("div",{className:"relative","data-sentry-component":"StepUnloading","data-sentry-source-file":"StepUnloading.tsx",children:(0,o.jsxs)(h.xy,{step:m.I$.STEP_UNLOADING,stepStatus:l,"data-sentry-element":"CommonStep","data-sentry-source-file":"StepUnloading.tsx",children:[(void 0===t||t)&&a.isStepCompleted()&&r.isStepCompleted()&&s.isWaypointListCompleted()&&(0,o.jsx)("div",{className:"z-1 absolute right-[20px] top-[20px]",children:(0,o.jsx)(u,{})}),(0,o.jsx)(h.Hs,{localeNS:m.BI.UNLOADING_ZONE,loadingZoneState:r,displayAddress:i(d),"data-sentry-element":"CommonStepZone","data-sentry-source-file":"StepUnloading.tsx"})]})})}},20785:function(e,t,n){var o=n(85893),r=n(5233),i=n(29255),a=n(18441),s=n(92853);t.Z=function(){var e=(0,r.$G)().t,t=(0,i.cc)(),n=t.vehicleState,l=t.getDispatchNumber,d=t.vehicleTypeValue,c=t.vehicleTonValue,u=n.isStepCompleted,p=n.stepStatus,m=n.theUnbanVehicleInfo,h=n.loadingMethod,f=n.unloadingMethod;return(0,o.jsx)("div",{"data-sentry-component":"StepVehicle","data-sentry-source-file":"StepVehicle.tsx",children:(0,o.jsxs)(s.xy,{step:a.I$.STEP_VEHICLE,stepStatus:p,title:e("order:vehicleMethodInfo.title"),"data-sentry-element":"CommonStep","data-sentry-source-file":"StepVehicle.tsx",children:[u()&&(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:"flex items-center gap-[4px]",children:[(0,o.jsx)(s.GW,{description:"".concat(d," ").concat(c),isExistData:!0}
1),(0,o.jsx)(s.ui,{description:l(m.dispatchCount),isExistData:!0})]}),(0,o.jsxs)("div",{className:"flex",children:[(0,o.jsxs)("div",{className:"flex flex-1 items-center gap-[10px]",children:[(0,o.jsx)(s.ui,{description:e("order:common.loadingZone"),isExistData:!0}),(0,o.jsx)(s.GW,{description:null==h?void 0:h.value,isExistData:!0})]}),(0,o.jsxs)("p",{className:"flex flex-1 items-center gap-[10px]",children:[(0,o.jsx)(s.ui,{description:e("order:common.unloadingZone"),isExistData:!0}),(0,o.jsx)(s.GW,{description:null==f?void 0:f.value,isExistData:!0})]})]})]}),!u()&&(0,o.jsx)(s.GW,{description:e("order:vehicleMethodInfo:description")})]})})}},25530:function(e,t,n){n.d(t,{Z:function(){return S}});var o,r,i=n(85893),a=n(38095),s=n(29255),l=n(5233),d=n(18441),c=n(92853),u=n(24043),p=n(67294);function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}var h=function(e){return p.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",width:12,height:13,fill:"none"},e),o||(o=p.createElement("path",{fill:"#F7F7F9",d:"M1.452 3.11 6 10.389l4.548-7.28z"})))};function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}var g=function(e){return p.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:12,height:13,fill:"none"},e),r||(r=p.createElement("path",{fill:"#F7F7F9",d:"M1.452 10.39 6 3.111l4.548 7.28z"})))},y=n(34052),x=n(66947),v=function(e){var t=e.index,n=e.waypointItem,o=e.onOrderNoChanged,r=(0,l.$G)().t,a=(0,x.aK)(),s=a.waypoints,c=a.moveUpWaypointItem,m=a.moveDownWaypointItem,f=(0,u._)((0,p.useState)(!1),2),v=f[0],T=f[1],I=(0,u._)((0,p.useState)(null),2),N=I[0],C=I[1],S=t>0,b=t+1<s.length,O=function(e){T(!1),N===d.aD.UP?c(e):N===d.aD.DOWN&&m(e),o(n)},w=function(e){C(e),T(!0)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex h-full w-[16px] flex-1 flex-col bg-grey-200",children:[(0,i.jsx)("button",{className:"flex flex-1 items-center justify-center border-b-[1px] border-grey-300 ".concat(S?"bg-grey-500":"bg-grey-200"),disabled:!S,onClick:function(){return w(d.aD.UP)},children:(0,i.jsx)(g,{"data-sentry-element":"TransferUpIcon","data-sentry-source-file":"StepWaypointMoveButtons.tsx"})}),(0,i.jsx)("button",{className:"flex flex-1 items-center justify-center ".concat(b?"bg-grey-500":"bg-grey-200"),disabled:!b,onClick:function(){return w(d.aD.DOWN)},children:(0,i.jsx)(h,{"data-sentry-element":"TransferDownIcon","data-sentry-source-file":"StepWaypointMoveButtons.tsx"})})]}),v&&(0,i.jsx)(y.sm,{title:r("order:waypointZone.popup.change.title"),description:r("order:waypointZone.popup.change.description"),rightButtonLabel:r("order:button.confirm"),leftButtonLabel:r("order:button.cancel"),isOpened:v,onClickLeftButton:function(){return T(!1)},onClickRightButton:function(){return O(n.id)}})]})},T=n(84334),I=function(e){var t=e.index,n=e.waypointItem,o=e.onRemoved,r=(0,l.$G)().t,a=(0,x.Lq)(),s=a.setCurrentStep,c=a.setCurrentWayPointIndex,m=a.currentWayPointIndex,h=a.resetPriceInfo,f=(0,x.aK)(),g=f.waypoints,v=f.removeWaypoint,I=(0,u._)((0,p.useState)(!1),2),N=I[0],C=I[1],S=function(e,t,n){e.stopPropagation(),m===n?m+1>g.length-1&&(c(null),s(d.I$.STEP_UNLOADING)):null!==m&&n<m&&c(m-1),v(t.id),C(!1),h(),o()};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{onClick:function(){C(!0)},className:"absolute right-[32px] top-[20px]",children:(0,i.jsx)(T.Z,{"data-sentry-element":"TransferCloseIcon","data-sentry-source-file":"StepWaypointRemoveButton.tsx"})}),N&&(0,i.jsx)(y.sm,{title:r("order:waypointZone.popup.delete.title"),description:r("order:waypointZone.popup.delete.description"),rightButtonLabel:r("order:button.confirm"),leftButtonLabel:r("order:button.cancel"),isOpened:N,onClickLeftButton:function(){return C(!1)},onClickRightButton:function(e){return S(e,n,t)}})]})},N=function(e){var t=e.waypointItem,n=e.index,o=e.onRemoved,r=e.onOrderNoChanged,a=e.getDisplayAddress,s=(0,l.$G)().t;return(0,i.jsx)("div",{className:"relative mb-[3px]","data-sentry-component":"StepWaypointListItem","data-sentry-source-file":"StepWaypointListItem.tsx",children:(0,i.jsxs)(c.xy,{step:d.I$.STEP_WAYPOINT,stepStatus:t.stepStatus,title:s("order:waypointZone.title",{index:n+1}),index:n,"data-sentry-element":"CommonStep","data-sentry-source-file":"StepWaypointListItem.tsx",children:[(0,i.jsx)(I,{index:n,waypointItem:t,onRemoved:function(){return o(t)},"data-sentry-element":"StepWaypointRemoveButton","data-sentry-source-file":"StepWaypointListItem.tsx"}),(0,i.jsx)("div",{className:"absolute right-0 top-0 flex h-full flex-col justify-between",children:(0,i.jsx)(v,{index:n,waypointItem:t,onOrderNoChanged:r,"data-sentry-element":"StepWaypointMoveButtons","data-sentry-source-file":"StepWaypointListItem.tsx"})}),(0,i.jsx)(c.Hs,{localeNS:d.BI.WAYPOINT_ZONE,loadingZoneState:t,displayAddress:a(t.address),"data-sentry-element":"CommonStepZone","data-sentry-source-file":"StepWaypointListItem.tsx"})]})})},C=n(17351),S=function(){var e=(0,l.$G)().t,t=(0,s.cc)(),n=t.orderState,o=t.waypointListState,r=t.getDisplayAddress,d=(0,s.v)(),c=d.handleAddWaypoint,u=d.handleChangeRemoveStatus,p=C.Z.getCurrentUserFromStorage().ownerWayPointCount;return(0,i.jsxs)(i.Fragment,{children:[o.waypoints.map(function(e,t){return(0,i.jsx)(N,{index:t,waypointItem:e,onRemoved:u,onOrderNoChanged:u,getDisplayAddress:r},e.id)}),!n.isOrderTypeRoundTrip()&&(0,i.jsx)(a.ii,{className:"mb-[16px] mt-[13px] w-full",type:"button",sizeType:"T30",label:e("order:button.transfer",{count:p}),disabled:o.waypoints.length>=p,onClick:c})]})}},92594:function(e,t,n){var o=n(24043),r=n(85893),i=n(67294),a=n(64247),s=n(5233),l=n(37072),d=n(6441),c=n(15448),u=n(17351),p=n(45220),m=n.n(p);t.Z=function(e){var t,n,p,h=e.isLifted,f=e.loadingBox,g=e.fareType,y=e.vehicleType,x=e.vehicleTon,v=e.isNonVibrating,T=e.isRisingWing,I=e.isFrozenTemp,N=e.isRefrigeratedTemp,C=e.isRoomTemp,S=e.isLongLength,b=e.isCjEnm,O=e.onClickIsLifted,w=e.onClickIsStowageBackOpen,D=e.onClickIsStowageLeftOpen,_=e.onClickIsStowageRightOpen,P=e.onClickIsNonVibrating,R=e.onClickIsRisingWing,k=e.onClickIsFrozenTemp,E=e.onClickIsRefrigeratedTemp,j=e.onClickIsRoomTemp,M=e.onClickIsLongLength,L=e.isDisabledOptions,A=(0,s.$G)().t,F=u.Z.getCurrentUserFromStorage(),W=F.isFursysRelated,V=F.isFursysVendor,B=u.Z.getCurrentUserFromStorage(),U=(0,o._)((0,i.useState)(!1),2),Z=U[0],G=U[1],q=(0,o._)((0,i.useState)(!1),2),K=q[0],$=q[1],H=(0,o._)((0,i.useState)(!1),2),Y=H[0],z=H[1],Q=(0,o._)((0,i.useState)(!1),2),J=Q[0],X=Q[1],ee=(0,o._)((0,i.useState)(!1),2),et=ee[0],en=ee[1],eo=(0,o._)((0,i.useState)(!1),2),er=eo[0],ei=eo[1],ea=!m()(y)&&y!==c.PV.CARGO||g===l.NY.QUICK_FREIGHT,es=null!==(p=null===(n=B.business)||void 0===n?void 0:null===(t=n.businessFunctionOptionTypes)||void 0===t?void 0:t.includes("PARTNER_OWNER"))&&void 0!==p&&p,el=function(){var e=b&&[c.oi.TON11_0,c.oi.TON18_0,c.oi.TON25_0].find(function(e){return e===x}),t=g===l.NY.QUICK_FREIGHT,n=y&&x&&!d.f9.isAvailableLiftOption({isFursys:W&&!V,selectedVehicle:y,selectedTon:x});t||n||e?($(!0),O(!1)):$(!1)},ed=function(){if(!y){X(!1);return}y&&y===c.PV.WING_BODY&&[c.oi.TON5_0,c.oi.TON5_0_PLUS,c.oi.TON11_0,c.oi.TON18_0,c.oi.TON25_0].find(function(e){return e===x})?X(!1):(X(!0),R(!1))},ec=function(){es&&([c.oi.TON1_0,c.oi.TON1_4].find(function(e){return e===x})&&[c.PV.CARGO,c.PV.WING_BODY,c.PV.TOP,c.PV.WING_BODY_CARGO].find(function(e){return e===y})?ei(!1):(ei(!0),M(!1)))},eu=function(){var e=!N;E(e),e||I||j(!1)},ep=function(){var e=!I;k(e),e||N||j(!1)};return(0,i.useEffect)(function(){el(),ed(),ec()},[y,x]),(0,i.useEffect)(function(){if(!y){z(!1),en(!1);return}y===c.PV.WING_BODY||y===c.PV.TOP?(z(!1),en(!1)):(z(!0),en(!0),P(!1),k(!1),E(!1),j(!1))},[y]),(0,i.useEffect)(function(){h&&y===c.PV.CARGO?(w(!1),G(!0)):G(!1)},[h,y]),(0,r.jsxs)(a.__,{label:A("order:vehicleInfo.option"),"data-sentry-element":"Label","data-sentry-component":"VehicleOptions","data-sentry-source-file":"VehicleOptions.tsx",children:[(0,r.jsxs)("div",{className:"mb-[8px] flex gap-[24px]",children:[(0,r.jsx)(a.XZ,{label:A("order:vehicleInfo.placeholder.lift"),className:"my-[0px] flex-none",checked:h,onClick:function(){return O(!h)},disabled:L||K,"data-sentry-element":"Checkbox","data-sentry-source-file":"VehicleOptions.tsx"}),(0,r.jsx)(a.XZ,{label:A("order:vehicleInfo.placeholder.loadingBox.backOpen"),className:"my-[0px] flex-none",checked:f.isOpenBack,onClick:function(){return w(!f.isOpenBack)},disabled:L||Z||ea,"data-sentry-element":"Checkbox","data-sentry-source-file":"VehicleOptions.tsx"}),(0,r.jsx)(a.XZ,{label:A("order:vehicleInfo.placeholder.loadingBox.leftOpen"),className:"my-[0px] flex-none",checked:f.isOpenLeft,onClick:function(){return D(!f.isOpenLeft)},disabled:L||ea,"data-sentry-element":"Checkbox","data-sentry-source-file":"VehicleOptions.tsx"}),(0,r.jsx)(a.XZ,{label:A("order:vehicleInfo.placeholder.loadingBox.rightOpen"),className:"my-[0px] flex-none",checked:f.isOpenRight,onClick:function(){return _(!f.isOpenRight)},disabled:L||ea,"data-sentry-element":"Checkbox","data-sentry-source-file":"VehicleOptions.tsx"}),(0,r.jsx)(a.XZ,{label:A("order:vehicleInfo.nonVibrating"),className:"my-[0px] flex-none",checked:v,onClick:function(){return P(!v)},disabled:L||Y,"data-sentry-element":"Checkbox","data-sentry-source-file":"VehicleOptions.tsx"}),(0,r.jsx)(a.XZ,{label:A("order:vehicleInfo.risingWing"),className:"my-[0px] flex-none",checked:T,onClick:function(){return R(!T)},disabled:L||J,"data-sentry-element":"Checkbox","data-sentry-source-file":"VehicleOptions.tsx"})]}),(0,r.jsxs)("div",{className:"flex gap-[24px]",children:[es&&(0,r.jsx)(a.XZ,{label:"장축",className:"my-[0px] flex-none",checked:S,onClick:function(){return M(!S)},disabled:er}),!b&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.XZ,{label:A("order:vehicleInfo.refrigeratedTemp"),className:"my-[0px] flex-none",checked:N,onClick:function(){return eu()},disabled:L||et}),(0,r.jsx)(a.XZ,{label:A("order:vehicleInfo.frozenTemp"),className:"my-[0px] flex-none",checked:I,onClick:function(){return ep()},disabled:L||et})]}),(I||N)&&(0,r.jsx)(a.XZ,{label:A("order:vehicleInfo.roomTemp"),className:"my-[0px] flex-none",checked:C,onClick:function(){return j(!C)}})]})]})}},33204:function(e,t,n){var o=n(85893);n(67294);var r=n(64247),i=n(68013),a=n(93967),s=n.n(a),l=n(37072),d=n(98072);t.Z=function(e){var t=e.isUseNewOrder,n=void 0!==t&&t,a=e.isShowCashOnDelivery,c=e.isRoundTripReturn,u=e.palletNo,p=e.hanssemOrderNo,m=e.itemType,h=e.isCashOnDelivery,f=e.liftingWork,g=e.tileBox,y=e.setPalletNo,x=e.setHanssemOrderNo,v=e.setItemType,T=e.setIsCashOnDelivery,I=e.setLiftingWork,N=e.setTileBox,C=e.tileBoxValidator,S=(0,d.H)().orderMeta,b=[{key:l.Oy.SINGLE,value:"단품"},{key:l.Oy.SET,value:"세트"}],O=S.liftedTask,w=S.tileBox,D=void 0!==c&&c?"(상차지 복귀)":"";return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:s()("flex",{"gap-5":!n,"gap-2":n}),children:[(0,o.jsx)(r.II,{label:"파렛트 번호".concat(D),value:u,placeholder:"출고 계획서 내 물류 PALT 번호를 입력하세요",className:"flex-1",boxClassName:s()({T42:!n,T56:n}),onChange:function(e){return y((e.target.value||"").substring(0,80))},onReset:function(){return y("")},"data-sentry-element":"Input","data-sentry-source-file":"HanssemOrdersOptions.tsx"}),(0,o.jsx)(r.II,{label:"한샘 오더번호".concat(D),placeholder:"출고 계획서 내 ì˜
1¤ë”번호를 입력하세요",value:p,className:"flex-1",boxClassName:s()({T42:!n,T56:n}),onChange:function(e){return x((e.target.value||"").substring(0,80))},onReset:function(){return x("")},"data-sentry-element":"Input","data-sentry-source-file":"HanssemOrdersOptions.tsx"})]}),(0,o.jsxs)("div",{className:"flex w-full flex-wrap gap-[8px]",children:[(0,o.jsxs)("div",{className:s()("flex flex-col",{"w-[calc(50%-8px)]":!n,"w-[calc(50%-4px)]":n}),children:[(0,o.jsx)(i.__,{label:"물품 구분".concat(D),required:!0,"data-sentry-element":"Label","data-sentry-source-file":"HanssemOrdersOptions.tsx"}),(0,o.jsx)(r.$m,{options:b,selectedKey:m,onClickOption:function(e){return v(null==e?void 0:e.key)},"data-sentry-element":"SquareRadio","data-sentry-source-file":"HanssemOrdersOptions.tsx"})]}),void 0!==a&&a&&(0,o.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,o.jsx)(i.__,{label:"착불 여부".concat(D),required:!0}),(0,o.jsx)(r.$m,{options:[{key:"false",value:"해당 없음"},{key:"true",value:"착불"}],selectedKey:null==h?void 0:h.toString(),onClickOption:function(e){return T((null==e?void 0:e.key)==="true")}})]}),(0,o.jsxs)("div",{className:s()("flex flex-col",{"w-[calc(50%-8px)]":!n,"w-[calc(50%-4px)]":n}),children:[(0,o.jsx)(i.__,{label:"양중 작업".concat(D),required:!0,"data-sentry-element":"Label","data-sentry-source-file":"HanssemOrdersOptions.tsx"}),(0,o.jsx)(r.$m,{options:O,selectedKey:f,onClickOption:function(e){I(null==e?void 0:e.key),(null==e?void 0:e.key)!==l.RP.TILE&&N(null)},"data-sentry-element":"SquareRadio","data-sentry-source-file":"HanssemOrdersOptions.tsx"})]}),f===l.RP.TILE&&(0,o.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,o.jsx)(i.__,{label:"타일 BOX".concat(D),required:!0}),(0,o.jsx)(r.$m,{options:w,selectedKey:g,validation:C,onClickOption:function(e){return N(null==e?void 0:e.key)}})]})]})]})}},16328:function(e,t,n){var o,r,i,a,s,l,d,c;n.d(t,{TS:function(){return r}}),(s=o||(o={})).STEP_LOADINGZONE="loadingZone",s.STEP_UNLOADINGZONE="unloadingZone",s.STEP_TRANSFERZONE="transferZone",s.STEP_TRANSFERREADYZONE="transferReadyZone",s.STEP_DATETIME="schedule",s.STEP_VEHICLE="vehicleInfo",s.STEP_CARGO="cargoInfo",s.STEP_METHOD="methodInfo",(l=r||(r={})).VEHICLE="VEHICLE",l.ORDER_TYPE="ORDER_TYPE",l.LOADINGZONE="LOADINGZONE",l.UNLOADINGZONE="UNLOADINGZONE",l.WAREHOUSING="WAREHOUSING",l.WAYPOINT="WAYPOINT",l.CARGO="CARGO",l.METHOD="METHOD",(d=i||(i={})).STATUS_NONE="none",d.STATUS_EDITING="editing",d.STATUS_COMPLETED="completed",(c=a||(a={})).STATUS_NONE="none",c.STATUS_EDITING="editing",c.STATUS_COMPLETED="completed"},23908:function(e,t,n){n.d(t,{$4:function(){return o}});var o={START_TIME:"YYYY-MM-DDT00:00:00+09:00",END_TIME:"YYYY-MM-DDT23:59:59+09:00",DATE:"YY.MM.DD",FULL_DATE_KO:"YYYY년 MM월 DD일",DATETIME:"YY.MM.DD HH:mm",FULL_DATE_TIME_KO:"YYYY년 MM월 DD일 HH시 mm분"}},39260:function(e,t,n){n.d(t,{E3:function(){return x},FF:function(){return f},GI:function(){return r},Gc:function(){return T},Gp:function(){return i},KQ:function(){return N},N_:function(){return o},OZ:function(){return u},RU:function(){return p},W8:function(){return c},YV:function(){return m},Ye:function(){return g},bF:function(){return l},bw:function(){return I},eH:function(){return S},gg:function(){return a},hU:function(){return O},jn:function(){return h},nP:function(){return v},nQ:function(){return y},pw:function(){return s},sO:function(){return b},tQ:function(){return C},wD:function(){return d}});var o="Order/NewOrderStore",r="Order/LoadingZoneStore",i="Order/UnloadingZoneStore",a="Order/WaypointListStore",s="Order/ScheduleStore",l="Order/VehicleStore",d="Order/CargoStore",c="Order/AddressStore",u="Order/PaymentTypeStore",p="OrdersUploadStore",m="OrderDetail/OrderInfoStore",h="OrderDetail/ElectronicReceiptStore",f="OrderEdit/VehicleInfoStore",g="OrderEdit/OrderTypeStore",y="OrderEdit/LoadingZoneInfoStore",x="OrderEdit/UnloadingZoneInfoStore",v="OrderEdit/WaypointListStore",T="OrderEdit/WarehousingInfoStore",I="OrderEdit/CargoInfoStore",N="OrderReDispatchStore",C="Settlement/FilterStore",S="Settlement/CreditSettlementListStore",b="DrivingStore",O="ChatbotStore"},49588:function(e,t,n){n.d(t,{L:function(){return f}});var o=n(11010),r=n(24043),i=n(248),a=n(97582),s=n(48564),l=function(){"use strict";function e(){(0,s._)(this,e)}return e.mapToPresentation=function(e){return null===e?[]:e.map(function(e){return{key:e.centerCode,value:e.centerName}})},e}(),d=n(30456),c=n(67848),u=function(e){var t,n=(0,d.Z)().getCenterList,r=(t=(0,o._)(function(){return(0,a.Jh)(this,function(e){switch(e.label){case 0:return[4,n()];case 1:return[2,e.sent().data.result]}})}),function(){return t.apply(this,arguments)});return(0,c.a)(["useCenterGroupQuery"],r,e)},p=n(17351),m=n(5233),h=n(67294),f=function(e){var t,n=e.defaultLabel,s=p.Z.getCurrentUserFromStorage().isFursysRelated,d=(0,m.$G)(["common"]).t,c=(0,r._)((0,h.useState)(null),2),f=c[0],g=c[1],y=u({onSuccess:(t=(0,o._)(function(e){var t,o,r;return(0,a.Jh)(this,function(a){return(t=l.mapToPresentation(e)).length>0?((o=r=[{key:null,value:n||d("common:all")}]).push.apply(o,(0,i._)(t)),g(r)):g(null),[2]})}),function(e){return t.apply(this,arguments)})}).refetch,x=function(){s&&y().catch()};return(0,h.useEffect)(function(){x()},[]),{centerOptions:f,refetch:x}}},14117:function(e,t,n){n.d(t,{p:function(){return h}});var o=n(11010),r=n(24043),i=n(248),a=n(97582),s=n(48564),l=function(){"use strict";function e(){(0,s._)(this,e)}return e.mapToPresentation=function(e){return null===e?[]:e.map(function(e){return{key:e.ioboundDtCode,value:e.i
1oboundDtName}})},e}(),d=n(30456),c=n(48228),u=function(){var e,t=(0,d.Z)().getIobountList,n=(e=(0,o._)(function(e){return(0,a.Jh)(this,function(n){switch(n.label){case 0:return[4,t(e)];case 1:return[2,n.sent().data.result]}})}),function(t){return e.apply(this,arguments)});return(0,c.D)(["useIoboundMutation"],n)},p=n(5233),m=n(67294),h=function(e){var t,n=e.defaultLabel,s=(0,p.$G)(["common"]).t,d=(0,r._)((0,m.useState)(null),2),c=d[0],h=d[1],f=u().mutateAsync;return{ioboundOptions:c,refetch:(t=(0,o._)(function(e,t,o){var r;return(0,a.Jh)(this,function(a){switch(a.label){case 0:return r=[{key:null,value:n||s("common:all")}],[4,f({isInbound:e,centerCode:t,ioBoundType:o},{onSuccess:function(e){var t=l.mapToPresentation(e);t.length>0?(r.push.apply(r,(0,i._)(t)),h(r)):h(null)}})];case 1:return a.sent(),[2]}})}),function(e,n,o){return t.apply(this,arguments)})}}},76986:function(e,t,n){n.d(t,{Z:function(){return c}});var o,r=n(24043),i=n(3998),a=n(67294),s=n(5233);(o||(o={})).mapToPresentation=function(e){return e?e.items.map(function(e){return{left:e.itemName,right:s.ag.t("order:cargoInfo.packagingTypes.".concat(e.method))}}):[]};var l=n(11163),d=n(83349),c=function(){var e=(0,i.A)(),t=e.isSuccess,n=e.data,s=e.refetch,c=(0,r._)((0,a.useState)([]),2),u=c[0],p=c[1],m=(0,l.useRouter)().pathname.includes(d.e0);return(0,a.useEffect)(function(){t&&p(o.mapToPresentation(n))},[t]),(0,a.useEffect)(function(){s()},[]),{items:u,isFrequentlyOrders:m}}},76169:function(e,t,n){var o=n(24043),r=n(3998),i=n(67294),a=n(97883);t.Z=function(){var e=(0,r.t)(),t=e.isSuccess,n=e.data,s=e.refetch,l=(0,o._)((0,i.useState)([]),2),d=l[0],c=l[1];return(0,i.useEffect)(function(){t&&c(a.rQ.mapToPresentation(n))},[t]),(0,i.useEffect)(function(){s()},[]),{vehicles:d}}},3998:function(e,t,n){n.d(t,{A:function(){return d},t:function(){return l}});var o=n(11010),r=n(97582),i=n(71922),a=n(67848),s=n(87465),l=function(){var e,t=(0,i.Z)().getRecentOrderVehicles,n=(e=(0,o._)(function(){var e;return(0,r.Jh)(this,function(n){switch(n.label){case 0:return[4,t()];case 1:return[2,null===(e=n.sent().data)||void 0===e?void 0:e.result]}})}),function(){return e.apply(this,arguments)});return(0,a.a)([s.QS],n)},d=function(){var e,t=(0,i.Z)().getRecentOrderItems,n=(e=(0,o._)(function(){var e;return(0,r.Jh)(this,function(n){switch(n.label){case 0:return[4,t()];case 1:return[2,null===(e=n.sent().data)||void 0===e?void 0:e.result]}})}),function(){return e.apply(this,arguments)});return(0,a.a)([s.Aq],n)}},5787:function(e,t,n){n.d(t,{x:function(){return V},h:function(){return U}});var o,r,i,a,s,l=n(24043),d=n(85893),c=n(38095),u=n(5233),p=n(67294),m=n(75855),h=n(83349),f=n(12956),g=n(34394),y=n(65800),x=n(64247),v=n(17351),T=n(93967),I=n.n(T),N=n(11163),C=n(41609),S=n.n(C),b=n(72253),O=n(14932);(o=i||(i={})).create=function(e){var t,n;return{items:null!==(t=null==e?void 0:e.items)&&void 0!==t?t:[],totalCount:null!==(n=null==e?void 0:e.totalCount)&&void 0!==n?n:0}},o.init=function(){return o.create()},(a||(a={})).create=function(e){return(0,b._)({},e)},(r=s||(s={})).mapsToPresentation=function(e){return e||i.init(),i.create({items:e.data.map(function(e){return r.mapToPresentation(e)}),totalCount:e.totalCount})},r.mapToPresentation=function(e){return a.create((0,O._)((0,b._)({},e),{ownerAddressBookId:e.ownerAddressBookId,name:e.address.name,memberId:e.memberId,memberName:e.memberName,managerName:e.address.managerName,managerPhoneNumber:e.address.managerPhoneNumber,address:e.address,point:{lat:e.point.lat,lng:e.point.lng},addressType:e.addressType,memo:e.address.addressMemo,isBasicAddress:e.isBasicAddress}))};var w=s,D=n(11010),_=n(97582),P=n(17342),R=n(67848),k=function(e,t){var n,o=(0,P.Z)().getAddressBookManagement,r=(n=(0,D._)(function(){var t,n;return(0,_.Jh)(this,function(r){switch(r.label){case 0:return[4,o(e)];case 1:return[2,null==(n=r.sent())?void 0:null===(t=n.data)||void 0===t?void 0:t.result]}})}),function(){return n.apply(this,arguments)});return(0,R.a)(["useAddressManagementQuery"],r,t)},E=n(39260),j=n(85790),M=n(64529),L={addressList:i.init(),pageNo:0,pageSize:10},A=(0,M.Ue)()((0,j.zq)(function(e){return(0,O._)((0,b._)({},L),{setAddressList:function(t){e({addressList:t})},setPageIndex:function(t){e({pageNo:t})}})},{name:E.W8})),F=function(e){var t=e.onClose,n=e.onComplete,o=v.Z.getCurrentUserFromStorage(),r=A(),i=r.addressList,a=r.pageNo,s=r.pageSize,d=r.
1setAddressList,c=r.setPageIndex,u=(0,l._)((0,p.useState)(""),2),m=u[0],h=u[1],f=(0,l._)((0,p.useState)(0),2),g=f[0],y=f[1],x=(0,l._)((0,p.useState)(""),2),T=x[0],I=x[1],N=g>0,C=!S()(i.items),b=k({memberId:T,pageNo:a,pageSize:s,keyword:m}),O=b.isSuccess,D=b.data,_=b.refetch,P=b.remove;return(0,p.useEffect)(function(){O&&D&&((T||m)&&o.isMain||y(D.totalCount),d(w.mapsToPresentation(D)))},[O,D]),(0,p.useEffect)(function(){_()},[T,a]),{addressList:i,pageNo:a,pageSize:s,searchInputText:m,selectedMemberId:T,hasData:N,hasFilteredData:C,getModalHeight:function(){return N&&C?"782px":N&&!C?"444px":"320px"},getModalContentHeight:function(){return N&&C?"704px":N&&!C?"366px":"242px"},setPageIndex:c,setSearchInputText:h,handleComplete:function(e){n(i.items.find(function(t){return t.ownerAddressBookId===e})),t(),c(0)},handleClose:function(){t(),c(0),P()},handleSelectMember:function(e){I(e)},handleSearchResults:function(){_()}}};function W(e){var t=e.onClose,n=e.onComplete,o=(0,N.useRouter)(),r=(0,u.$G)().t,i=F({onClose:t,onComplete:n}),a=i.addressList,s=i.pageNo,l=i.pageSize,p=i.searchInputText,T=i.selectedMemberId,C=i.hasData,S=i.hasFilteredData,b=i.getModalHeight,O=i.getModalContentHeight,w=i.setPageIndex,D=i.setSearchInputText,_=i.handleComplete,P=i.handleClose,R=i.handleSelectMember,k=i.handleSearchResults,E=v.Z.getCurrentUserFromStorage();return(0,d.jsx)(m.CommonModal,{title:r("order:common.addressBook"),containerClassName:"justify-start",contentClassName:"flex flex-col max-h-full",modalIsOpen:!0,handleComplete:null,handleClose:P,confirmText:"",shouldCloseOnOverlayClick:!1,buttonVisible:!1,modalWidth:"620px",modalHeight:b(),contentHeight:O(),footerChildren:a&&(0,d.jsx)("footer",{className:"mb-[30px] mt-[26px] flex items-center justify-center",children:(0,d.jsx)(g.Z,{paginationMode:"server",forcePage:s,totalCount:a.totalCount,itemsPerPage:l,originalItems:a.items,onClickPage:w})}),"data-sentry-element":"CommonModal","data-sentry-component":"AddressBookModal","data-sentry-source-file":"AddressBookModal.tsx",children:C?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"mx-[30px] mt-[30px] flex h-[42px] items-center gap-[10px]",children:[(0,d.jsx)(f.Z,{className:"w-[154px]",defaultLabel:r("order:orderList.search.creator.placeholder"),onSelected:R,memberId:T}),(0,d.jsx)(x.II,{type:"text",className:I()({"w-[300px]":!0===E.isMain,"w-full":!1===E.isMain}),boxClassName:"T42",placeholder:r("order:addressBook.placeholder"),value:p,onReset:function(){return D("")},onChange:function(e){return D(e.target.value)},onKeyDown:function(e){"Enter"===e.code&&k()}}),(0,d.jsx)(c.gg,{type:"button",label:r("common:button.search"),sizeType:"T42",onClick:k})]}),S?(0,d.jsx)("div",{className:"mt-[20px] h-full w-full overflow-y-auto px-[30px]",children:a.items.length>0&&(0,d.jsx)("ul",{className:"flex h-[532px] flex-col gap-[10px]",children:a.items.map(function(e){return(0,d.jsx)("li",{className:"w-full rounded bg-co-10 p-[24px] text-[13px] font-normal text-co-03",children:(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsxs)("div",{className:"mb-[10px] flex items-center justify-between text-[16px] font-bold text-co-02",children:[(0,d.jsx)("p",{className:"leading-normal -tracking-[0.32px]",children:e.name}),(0,d.jsx)(c.ii,{type:"button",sizeType:"T30",label:r("order:button.selector"),onClick:function(){return _(e.ownerAddressBookId)}})]}),(0,d.jsxs)("p",{className:"text-[13px] font-[400] leading-[18px] -tracking-[0.26px] text-co-03",children:[e.address.roadAddress1,e.address.roadAddress2]}),(0,d.jsxs)("p",{className:"text-[13px] font-[400] leading-[18px] -tracking-[0.26px] text-co-03",children:[e.managerName," / ",e.managerPhoneNumber]})]})},e.ownerAddressBookId)})})}):(0,d.jsx)(y.Z,{showIcon:!0,title:r("order:frequentOrder.empty.description2"),description:r("order:frequentOrder.empty.description3"),className:"mb-[50px] mt-[50px]"})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(y.Z,{title:r("order:addressBook.empty.title"),description:r("order:addressBook.empty.description"),className:"mb-[30px] mt-[50px]"}),(0,d.jsx)("div",{className:"flex w-full items-center justify-center",children:(0,d.jsx)(c.gg,{type:"button",sizeType:"T42 w-[170px]",label:r("order:addressBook.empty.button"),onClick:function(){o.push(h.X_)}})})]})})}var V=function(e){var t=e.onAddressBookSelected,n=(0,u.$G)().t,o=(0,l._)((0,p.useState)(!1),2),r=o[0],i=o[1];return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(c.ii,{type:"button",sizeType:"T30",label:n("order:common.addressBook"),className:"!w-[60px]",onClick:function(){return i(!0)},"data-sentry-element":"LineButton","data-sentry-source-file":"AddressBookButton.tsx"}),r&&(0,d.jsx)(W,{onClose:function(){return i(!1)},onComplete:t})]})},B=n(34052),U=function(e){var t,n=e.isError,o=e.error,r=(0,u.$G)().t,i=(0,l._)((0,p.useState)(!1),2),a=i[0],s=i[1];return(0,p.useEffect)(function(){n&&o&&s(!0)},[n,o]),(0,d.jsx)(d.Fragment,{children:a&&(0,d.jsx)(B.VF,{title:o.responseCode?r("order:addressBook.modal.createAddressBook".concat(o.responseCode)):"주소록 등록 중에 에러가 발생했습니다.",description:null===(t=o.message)||void 0===t?void 0:t.split(": ")[1],buttonLabel:r("order:button.confirm"),onClickButton:function(){return s(!1)}})})}},92853:function(e,t,n){n.d(t,{fR:function(){return Z},$5:function(){return g.Z},YJ:function(){return y.Z},Nw:function(){return er},Ah:function(){return es},sh:function(){return el},xy:function(){return V},GW:function(){return G},ui:function(){return q},Hs:function(){return B}});var o,r,i,a,s,l,d,c,u,p,m,h,f,g=n(48358),y=n(99388),x=n(85893),v=n(93967),T=n.n(v),I=n(29255),N=n(18441),C=n(67294);function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}var b=function(e){return C.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",width:30,height:30,fill:"none"},e),o||(o=C.createElement("circle",{cx:15,cy:15,r:15,fill:"#636874",opacity:.1})),r||(r=C.createElement("path",{fill:"#636874",fillRule:"evenodd",d:"M21.666 12.61a6.64 6.64 0 0 1-1.279 3.928l-4.539 7.06a1 1 0 0 1-1.681 0l-4.572-7.084a6.667 6.667 0 1 1 12.072-3.904m-6.665 2.19a3 3 0 1 0 0-6 3 3 0 0 0 0 6",clipRule:"evenodd"})),i||(i=C.createElement("circle",{cx:15,cy:11.791,r:3,fill:"#fff"})))};function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}var w=function(e){return C.createElement("svg",O({xmlns:"http://www.w3.org/2000/svg",width:30,height:30,fill:"none"},e),a||(a=C.createElement("circle",{cx:15,cy:15,r:15,fill:"#636874",opacity:.1})),s||(s=C.createElement("circle",{cx:15,cy:15,r:4.5,stroke:"#1E2025",strokeWidth:3})))};function D(){return(D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}var _=function(e){return C.createElement("svg",D({xmlns:"http://www.w3.org/2000/svg",width:30,height:30,fill:"none"},e),l||(l=C.createElement("circle",{cx:15,cy:15,r:15,fill:"#122699",opacity:.1})),d||(d=C.createElement("path",{fill:"#122699",d:"M20.387 16.538a6.667 6.667 0 1 0-10.792-.024l4.572 7.084a1 1 0 0 0 1.681-.001z"})),c||(c=C.createElement("circle",{cx:15.001,cy:11.8,r:3,fill:"#E7E9F5"})))};function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}var R=function(e){return C.createElement("svg",P({xmlns:"http://www.w3.org/2000/svg",width:30,height:30,fill:"none"},e),u||(u=C.createElement("circle",{cx:15,cy:15,r:15,fill:"#636874",opacity:.1})),p||(p=C.createElement("circle",{cx:15,cy:15,r:4.5,stroke:"#A9ACB4",strokeWidth:3})))};function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}var E=function(e){return C.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",width:30,height:30,fill:"none"},e),m||(m=C.createElement("circle",{cx:15,cy:15,r:15,fill:"#DF1464",opacity:.1})),h||(h=C.createElement("path",{fill:"#DF1464",d:"M20.387 16.538a6.667 6.667 0 1 0-10.792-.024l4.572 7.085a1 1 0 0 0 1.681-.002z"})),f||(f=C.createElement("circle",{cx:15.001,cy:11.8,r:3,fill:"#FADCE8"})))},j=function(e){var t=e.step,n=e.stepStatus;return(0,x.jsx)("div",{className:"mt-[-2px]","data-sentry-component":"CommonStepIcon","data-sentry-source-file":"CommonStepIcon.tsx",children:function(){switch(t){case N.I$.STEP_LOADING:return(0,x.jsx)(_,{});case N.I$.STEP_UNLOADING:return(0,x.jsx)(E,{});case N.I$.STEP_WAYPOINT:return(0,x.jsx)(b,{});default:if(n===N.ip.STATUS_COMPLETED)return(0,x.jsx)(w,{});return(0,x.jsx)(R,{})}}()})},M=n(17351),L=n(5233),A=function(e){var t=e.step,n=e.title,o=(0,L.$G)().t,r=M.Z.getCurrentUserFromStorage(),i=function(){switch(t){case N.I$.STEP_LOADING:return o("order:loadingZone.title");case N.I$.STEP_UNLOADING:return o("order:unloadingZone.title");case N.I$.STEP_SCHEDULE:return o("order:schedule.title");case N.I$.STEP_VEHICLE:return o("order:vehicleInfo.title");
1case N.I$.STEP_CARGO:return o("order:cargoInfo.title");default:return""}};return(0,x.jsx)("div",{className:T()("text-3 mb-[6px] flex flex-row justify-between font-bold leading-[16px] -tracking-[0.24px] text-co-04",{"text-primary-01":t===N.I$.STEP_LOADING,"text-secondary-02":t===N.I$.STEP_UNLOADING}),"data-sentry-component":"CommonStepTitle","data-sentry-source-file":"CommonStepTitle.tsx",children:function(){if(t===N.I$.STEP_SCHEDULE){if(r.isKoas)return(0,x.jsx)("span",{children:o("order:schedule.title4")});if(r.isFursys)return(0,x.jsx)("span",{children:r.isFursysGroup?o("order:schedule.title2"):o("order:schedule.title3")})}return t===N.I$.STEP_CARGO&&r.isAvailablePriceGroup?"운임 및 화물 정보":(0,x.jsx)("span",{"data-sentry-component":"renderTitle","data-sentry-source-file":"CommonStepTitle.tsx",children:n||i()})}()})},F=n(34052),W=function(e){var t=e.step,n=e.onClose,o=e.onConfirm,r=(0,L.$G)().t,i=M.Z.getCurrentUserFromStorage(),a=i.isFursysGroup,s=i.isFursysVendor,l=i.isKoas;return(0,x.jsx)(F.sm,{title:function(){switch(t){case N.I$.STEP_LOADING:return r("order:loadingZone.unmountingStep.title");case N.I$.STEP_WAYPOINT:return r("order:waypointZone.unmountingStep.title");case N.I$.STEP_UNLOADING:return r("order:unloadingZone.unmountingStep.title");case N.I$.STEP_SCHEDULE:if(l)return r("order:schedule.unmountingStep.title4");if(a)return r("order:schedule.unmountingStep.title2");if(s)return r("order:schedule.unmountingStep.title3");return r("order:schedule.unmountingStep.title");case N.I$.STEP_VEHICLE:return r("order:vehicleMethodInfo.unmountTitle");case N.I$.STEP_CARGO:return r("order:cargoInfo.unmountingStep.title");default:return""}}(),description:r("order:loadingZone.unmountingStep.description"),leftButtonLabel:r("order:button.exit"),rightButtonLabel:r("order:button.cancel"),isOpened:!0,onClickLeftButton:o,onClickRightButton:n,"data-sentry-element":"ConfirmModal","data-sentry-component":"CommonStepWarningModal","data-sentry-source-file":"CommonStepWarningModal.tsx"})},V=function(e){var t=e.children,n=e.step,o=e.stepStatus,r=e.title,i=e.index,a=void 0===i?null:i,s=(0,I.k)(n,a),l=s.isOpenedWarningModal,d=s.currentStep,c=s.isCurrentStepWithIndex,u=s.setIsOpenedWarningModal,p=s.handleClickStep,m=s.handleConfirmWarningModal;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("div",{className:T()("flex w-full cursor-pointer flex-row justify-between gap-3 rounded px-5 pb-4 pt-5 transition-[background-color] duration-300 ease-linear",{"bg-co-10":c(n,a)}),onClick:function(){return p()},children:[(0,x.jsx)(j,{step:n,stepStatus:o,"data-sentry-element":"CommonStepIcon","data-sentry-source-file":"CommonStep.tsx"}),(0,x.jsxs)("div",{className:"h-full w-[310px] flex-none",children:[(0,x.jsx)(A,{step:n,title:r,"data-sentry-element":"CommonStepTitle","data-sentry-source-file":"CommonStep.tsx"}),(0,x.jsx)("div",{children:t})]})]}),l&&(0,x.jsx)(W,{step:d,onClose:function(){return u(!1)},onConfirm:m})]})},B=function(e){var t=e.localeNS,n=e.loadingZoneState,o=e.displayAddress,r=(0,L.$G)().t,i=n.companyName,a=n.managerName,s=n.managerPhone;return(0,x.jsxs)(x.Fragment,{children:[n.isStepCompleted()&&(0,x.jsxs)("div",{className:"h-full w-full",children:[t!==N.BI.WAYPOINT_ZONE&&(0,x.jsx)(G,{description:i,className:"mb-1 overflow-hidden text-ellipsis whitespace-nowrap",isExistData:!0}),(0,x.jsx)(q,{description:o,className:"mb-0.5 line-clamp-2",isExistData:!0}),(0,x.jsxs)("div",{className:"flex flex-row gap-2.5",children:[(0,x.jsx)(q,{description:a,className:"max-w-[calc(100%-100px)] overflow-hidden text-ellipsis whitespace-nowrap",isExistData:!0}),(0,x.jsx)("span",{className:"text-co-08",children:"|"}),(0,x.jsx)(q,{description:s,className:"truncate",isExistData:!0})]})]}),!n.isStepCompleted()&&(0,x.jsxs)(x.Fragment,{children:[t!==N.BI.WAYPOINT_ZONE&&(0,x.jsx)(G,{description:r("order:".concat(t,":description"))}),(0,x.jsx)(q,{description:r("order:".concat(t,":subDescription"))})]})]})},U=n(20568),Z=function(e){var t=e.params,n=e.onChangeDate;return(0,x.jsx)(U.bZ,{date:t.date,increaseMonth:t.increaseMonth,decreaseMonth:t.decreaseMonth,nextMonthButtonDisabled:t.nextMonthButtonDisabled,prevMonthButtonDisabled:t.prevMonthButtonDisabled,setDate:n,closePicker:null,"data-sentry-element":"DatePickerHeader","data-sentry-component":"CommonFormDatePickerHeader","data-sentry-source-file":"CommonFormDatePickerHeader.tsx"})},G=function(e){var t=e.description,n=e.isExistData,o=void 0!==n&&n,r=e.className;return(0,x.jsx)("span",{className:T()("block text-[16px] font-bold leading-[26px] -tracking-[0.32px] ".concat(void 0===r?"":r),{"text-co-02":o,"text-co-06":!o}),"data-sentry-component":"CommonStepBold","data-sentry-source-file":"CommonStepBold.tsx",children:t})},q=function(e){var t=e.description,n=e.isExistData,o=void 0!==n&&n,r=e.className;return(0,x.jsx)("span",{className:T()("block text-[14px] font-light leading-[22px] -tracking-[0.28px] ".concat(void 0===r?"":r),{"text-co-04":o,"text-co-06":!o}),"data-sentry-component":"CommonStepLight","data-sentry-source-file":"CommonStepLight.tsx",children:t})},K=n(3292),$=n(20502),H=n(64247),Y=n(5787),z=n(66947),Q=n(1859),J=function(e){var t=e.onCancel,n=e.onConfirm,o=(0,L.$G)().t;return(0,x.jsx)(F.sm,{title:o("order:loadingStepResetModal.title"),description:o("order:loadingStepResetModal.description"),leftButtonLabel:o("order:button.cancel"),rightButtonLabel:o("order:button.confirm"),isOpened:!0,onClickLeftButton:t,onClickRightButton:n,"data-sentry-element":"ConfirmModal","data-sentry-component":"WaypointResetModal","data-sentry-source-file":"WaypointResetModal.tsx"})},X=n(32516),ee=n(72032),et=n(33204),en=n(67698),eo=n(85309),er=function(e){var t=e.zoneType,n=e.zoneState,o=(0,(0,en.aF)().getCurrentUser)(),r=o.isHanssem,i=o.hanssemDepartmentType,a=(0,L.$G)().t,s=(0,z.Lq)().isOrderTypeRoundTrip,l=(0,I.fY)({zoneState:n,initialZoneState:z.gN,zoneType:t}),d=r&&i===eo.E49.departmentType.WINDOWS&&t===N.BI.LOADING_ZONE,c=l.f
1ields,u=c.companyName,p=c.address,m=c.managerName,h=c.managerPhone,f=c.memo,y=c.isBasicAddress,v=c.isRegToAddressBook,T=c.palletNo,C=c.hanssemOrderNo,S=c.itemType,b=c.isCashOnDelivery,O=c.liftingWork,w=c.tileBox,D=c.setPalletNo,_=c.setHanssemOrderNo,P=c.setItemType,R=c.setIsCashOnDelivery,k=c.setLiftingWork,E=c.setTileBox,j=c.setCompanyName,M=c.setAddress,A=c.setManagerName,F=c.setManagerPhone,W=c.setMemo,V=c.setIsBasicAddress,B=c.setIsRegToAddressBook,U=c.handleSelectAddressBook,Z=c.isRecall,G=c.setIsRecall,q=l.validators,er=q.companyNameValidator,ei=q.addressValidator,ea=q.managerNameValidator,ed=q.managerPhoneNumberValidator,ec=q.resetAddressValidator,eu=q.tileBoxValidator,ep=l.addressBookFields,em=ep.isErrorCreateAddressBook,eh=ep.errorCreateAddressBook;return(0,x.jsx)(g.Z,{description:a("order:".concat(t,".description")),resetButton:(0,x.jsx)(es,{onReset:l.handleRequestReset}),onReset:l.handleRequestReset,onRegister:l.fields.handleRegister,"data-sentry-element":"CommonFormInnerLayout","data-sentry-component":"LoadingUnloadingZone","data-sentry-source-file":"LoadingUnloadingZone.tsx",children:(0,x.jsxs)("div",{className:"mb-10 flex flex-col gap-6",children:[(0,x.jsx)(H.II,{required:!0,label:a("order:".concat(t,".companyName")),value:u,validation:er,placeholder:a("order:".concat(t,".placeholder.companyName")),maxLength:30,labelChildren:(0,x.jsx)(Y.x,{onAddressBookSelected:U}),onChange:function(e){return j(e.target.value.substring(0,30))},onReset:function(){return j("")},"data-sentry-element":"Input","data-sentry-source-file":"LoadingUnloadingZone.tsx"}),(0,x.jsx)($.Z,{address:p,label:a("order:".concat(t,".address")),placeholder:a("order:".concat(t,".placeholder.address")),detailPlaceholder:a("order:".concat(t,".placeholder.detailAddress")),validation:ei,initValidation:ec,onChangeAddress:function(e){return M(Q.ws.create(e))},"data-sentry-element":"AddressInputComponent","data-sentry-source-file":"LoadingUnloadingZone.tsx"}),(0,x.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,x.jsx)(H.II,{required:!0,className:"flex-1",label:a("order:".concat(t,".managerName")),value:m,validation:ea,placeholder:a("order:".concat(t,".placeholder.managerName")),onChange:function(e){return A(e.target.value.substring(0,30))},onReset:function(){return A("")},"data-sentry-element":"Input","data-sentry-source-file":"LoadingUnloadingZone.tsx"}),(0,x.jsx)(H.II,{required:!0,className:"flex-1",label:a("order:".concat(t,".managerPhoneNumber")),value:h,validation:ed,placeholder:a("order:".concat(t,".placeholder.managerPhoneNumber")),onChange:function(e){return F((0,K.Kd)(e.target.value).substring(0,15))},onReset:function(){return F("")},"data-sentry-element":"Input","data-sentry-source-file":"LoadingUnloadingZone.tsx"})]}),(0,x.jsxs)("div",{children:[(0,x.jsxs)("div",{className:"flex flex-row gap-[60px]",children:[(0,x.jsxs)("div",{className:"mt-[18px] flex items-center",children:[(0,x.jsx)(H.XZ,{className:"mb-0 mt-0",label:a("order:".concat(t,".setAsDefaultZone")),checked:y,onClick:function(){return V(!y)},"data-sentry-element":"Checkbox","data-sentry-source-file":"LoadingUnloadingZone.tsx"}),(0,x.jsx)(X.Z,{className:"ml-[4px]",isHover:!0,id:"zoneDefaultTooltip",place:"top-start",isOpenStart:!1,useCloseButton:!1,tooltip:(0,x.jsx)("div",{className:"py-[4px]",children:(0,x.jsxs)("p",{children:[a("order:".concat(t,".setAsDefaultZone")),"로 설정 시 입력하신 '회사명, 주소,",(0,x.jsx)("br",{}),"담당자 이름, 연락처, 메모' 정보를 자동으로 불러옵니다."]})}),"data-sentry-element":"Tooltip","data-sentry-source-file":"LoadingUnloadingZone.tsx"})]}),(0,x.jsx)(H.XZ,{className:"mb-0",disabled:y,label:a("order:".concat(t,".regToAddress")),checked:v,onClick:function(){return B(!v)},"data-sentry-element":"Checkbox","data-sentry-source-file":"LoadingUnloadingZone.tsx"}),d&&(0,x.jsx)(H.XZ,{className:"mb-0",label:"회수여부",checked:Z,onClick:function(){return G(!Z)}})]}),y&&(0,x.jsx)("div",{className:"mt-[17px]",children:(0,x.jsx)("p",{className:"text-co-05",children:a("order:".concat(t,".basicAddressRegistrationInformation"))})})]}),r&&(t!==N.BI.LOADING_ZONE||s())&&(0,x.jsx)(et.Z,{isUseNewOrder:!0,isShowCashOnDelivery:!(t===N.BI.LOADING_ZONE&&s()),isRoundTripReturn:t===N.BI.LOADING_ZONE&&s(),palletNo:T,hanssemOrderNo:C,itemType:S,isCashOnDelivery:b,liftingWork:O,tileBox:w,setPalletNo:D,setHanssemOrderNo:_,setItemType:P,setIsCashOnDelivery:R,setLiftingWork:k,setTileBox:E,tileBoxValidator:eu}),(0,x.jsxs)("div",{className:"relative",children:[(0,x.jsx)("div",{className:"absolute right-0",children:(0,x.jsx)(ee.Z,{onSelectMemo:function(e){return W(e.substring(0,500))},currentZoneType:t===N.BI.LOADING_ZONE?N.EO.PICKUP:N.EO.DROP,"data-sentry-element":"CommonRecentMemoList","data-sentry-source-file":"LoadingUnloadingZone.tsx"})}),(0,x.jsx)(H.gx,{labelClassName:"h-[30px] !mb-0",rows:4,cols:50,label:a("order:".concat(t,".memo")),value:f,maxLength:500,onChange:function(e){return W(e.target.value.substring(0,500))},"data-sentry-element":"Textarea","data-sentry-source-file":"LoadingUnloadingZone.tsx"})]}),(0,x.jsx)(Y.h,{isError:em,error:eh,"data-sentry-element":"AddressBookErrorModal","data-sentry-source-file":"LoadingUnloadingZone.tsx"}),(0,x.jsx)(el,{"data-sentry-element":"CommonFormZoneWaypointErrorModal","data-sentry-source-file":"LoadingUnloadingZone.tsx"}),l.isOpenedWaypointResetModal&&(0,x.jsx)(J,{onCancel:function(){return l.setIsOpenedWaypointResetModal(!1)},onConfirm:l.handleResetWaypointComplete})]})})},ei=n(24043),ea=n(76893),es=function(e){var t=e.onReset,n=(0,L.$G)().t,o=(0,z.aK)().waypoints,r=(0,ei._)((0,C.useState)(!1),2),i=r[0],a=r[1];return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(ea.Z,{onReset:function(){o.length?a(!0):t()},"data-sentry-element":"CommonFormResetButton","data-sentry-source-file":"ResetButton.tsx"}),i&&(0,x.jsx)(F.sm,{title:n("order:loadingStepResetModal.title"),description:n("order:loadingStepResetModal.description"),leftButtonLabel:n("order:button.cancel"),rightButtonLabel:n("order:button.confirm"),isOpened:i,onClickLeftButton:function(){return a(!1)},onClickRightButton:function(){a(!1),t()}})]})},el=function(){var e=(0,L.$G)().t,t=(0,z.aK)(),n=t.validationFailedWaypoint,o=t.setValidationFailedWaypoint;return(0,x.jsx)(x.Fragment,{children:null!==n&&(0,x.jsx)(F.VF,{title:e("order:waypointZone.popup.arrayCheck.title",{waypointCount:n+1}),description:e("order:waypointZone.popup.arrayCheck.description",{waypointCount:n+1}),buttonLabel:e("order:button.confirm"),onClickButton:function(){return o(null)}})})}},29255:function(e,t,n){n.d(t,{fu:function(){return eC},jN:function(){return eS},sN:function(){return eO},eg:function(){return eD},k:function(){return s},NW:function(){return e_},TX:function(){return u},ZR:function(){return eP},A3:function(){return R},B1:function(){return eA},cc:function(){return E},o5:function(){return j},wI:function(){return eL},Ws:function(){return L},OV:function(){return D},WD:function(){return eE},hY:function(){return X},v:function(){return A},ae:function(){return ep},s$:function(){return em},y:function(){return ee},zf:function(){return eh},Rr:function(){return eg},ME:function(){return ev},KM:function(){return ec},fY:function(){return es}});var o=n(24043),r=n(67294),i=n(66947),a=n(18441),s=function(e,t){var n=(0,i.Lq)(),s=n.currentStep,l=n.isCurrentStepWithIndex,d=n.setCurrentStep,c=n.setCurrentWayPointIndex,u=n.currentWayPointIndex,p=(0,i.Pl)().isStepChanged,m=(0,i.V8)().isStepChanged,h=(0,i.aK)().currentWaypoint,f=(0,i.bU)().isStepChanged,g=(0,i.bW)().isStepChanged,y=(0,i.o3)().isStepChanged,x=(0,o._)((0,r.useState)(!1),2),v=x[0],T=x[1],I=function(){switch(s){case a.I$.STEP_LOADING:return p;case a.I$.STEP_UNLOADING:return m;case a.I$.STEP_WAYPOINT:var e;return null===(e=h(u))||void 0===e?void 0:e.isStepChanged;case a.I$.STEP_SCHEDULE:return f;case a.I$.STEP_VEHICLE:return g;
1case a.I$.STEP_CARGO:return y;default:return!1}};return{isOpenedWarningModal:v,currentStep:s,isCurrentStepWithIndex:l,setIsOpenedWarningModal:T,handleClickStep:function(){l(e,t)||(I()?T(!0):(d(e),c(t)))},handleConfirmWarningModal:function(){T(!1),d(e),c(t)}}},l=n(17351),d=n(18191),c=n(67948),u=function(e){var t=l.Z.getCurrentUserFromStorage(),n=(0,i.Pl)().updateState,o=(0,i.V8)().updateState,a=(0,i.aK)().setBasicWaypointAddressList,s=(0,c.uy)(),u=s.isFetched,p=s.isSuccess,m=s.data,h=s.refetch;return(0,r.useEffect)(function(){u&&e()},[u]),(0,r.useEffect)(function(){if(p&&m){var e=d.vw.mapToPresentation(m),t=e.loadingZoneInfo,r=e.unloadingZoneInfo,i=e.waypointListInfo;t&&n(t),r&&o(r),a(i)}},[p,m]),{loadBasicAddress:function(){t.isPickupBasicAddress||t.isWaypointBasicAddress||t.isDropBasicAddress?h():e()}}},p=n(72253),m=n(14932),h=n(25980),f=n(98072),g=n(44286),y=n(37072),x=n(27484),v=n.n(x),T=n(18446),I=n.n(T),N=n(45220),C=n.n(N),S=n(64337),b=n(53282),O=n(41609),w=n.n(O),D=function(e){var t=(0,b.s6)().setIsLoading,n=(0,i.Pl)(),o=(0,i.V8)(),s=(0,i.aK)(),l=(0,i.bU)(),u=(0,i.bW)(),h=(0,i.o3)(),f=(0,i.Lq)(),g=function(){var t=null==e?void 0:e.queryKey;if(I()(f.currentStep,a.I$.STEP_WAYPOINT)&&!w()(s.waypoints)){var n=(null==e?void 0:e.waypointFields)?null==e?void 0:e.waypointFields.waypoints[f.currentWayPointIndex].id:s.waypoints[f.currentWayPointIndex].id;t="".concat(t,"-waypoint-").concat(n)}return t},y=(0,c.Xt)(d.Eu.mapToRequest({orderState:f,loadingZoneState:(null==e?void 0:e.loadingZoneFormFields)||n,unloadingZoneState:(null==e?void 0:e.unloadingZoneFormFields)||o,waypointListState:(null==e?void 0:e.waypointFields)||s,scheduleState:(null==e?void 0:e.scheduleFields)||l}),g()),x=y.isFetching,v=y.isSuccess,T=y.data,N=y.error,C=y.refetch,S=y.remove,O=(0,c.G3)(d.xn.mapToRequest({orderState:f,loadingZoneState:(null==e?void 0:e.loadingZoneFormFields)||n,unloadingZoneState:(null==e?void 0:e.unloadingZoneFormFields)||o,waypointListState:(null==e?void 0:e.waypointFields)||s,scheduleState:(null==e?void 0:e.scheduleFields)||l,vehicleState:(null==e?void 0:e.vehicleFields)||(0,m._)((0,p._)({},u),{vehicleInfo:u.selectedVehicleInfo()}),cargoState:(null==e?void 0:e.cargoFields)||h,paymentTypeState:(null==e?void 0:e.paymentTypeFields)||{}}),g()),D=O.isFetching,_=O.isSuccess,P=O.isError,R=O.data,k=O.error,E=O.refetch,j=O.remove;return(0,r.useEffect)(function(){t(x||D)},[x,D]),(0,r.useEffect)(function(){v&&T&&((0,f.setRouteInfo)(d.C9.mapToPresentation(T)),S())},[v,T]),(0,r.useEffect)(function(){(0,f.setErrorEstimateRouteInfo)(N||null)},[N]),(0,r.useEffect)(function(){if(_&&R){var e=f.setPriceInfo,t=f.setOrderFixedFeeWithCoupon,n=d.$k.mapToPresentation(R);e(n),t(n.orderFixedFeeWithCoupon),j()}},[_,R]),(0,r.useEffect)(function(){(0,f.setErrorEstimatePriceInfo)(k||null)},[k]),{isSuccessEstimateRouteInfo:v,isSuccessEstimatePriceInfo:_,isErrorEstimatePriceInfo:P,errorEstimatePriceInfo:k,estimatedRouteInfo:f.routeInfo,estimatedPriceInfo:f.priceInfo,estimateRouteInfo:C,estimatePriceInfo:E}},_=n(4309),P=n(60486),R=function(){var e=l.Z.getCurrentUserFromStorage(),t=(0,f.H)(),n=t.vehicleWeightList,s=t.loadingUnloadingMethodSelectList,d=(0,i.Lq)(),c=d.importOrderInfo,u=d.updateState,x=d.currentOrderType,T=(0,i.Pl)(),N=T.stepStatus,b=T.isStepCompleted,O=T.updateState,w=(0,i.V8)(),R=w.stepStatus,k=w.isStepCompleted,E=w.updateState,j=(0,i.aK)().setWaypoints,M=(0,i.bU)(),L=M.reset,A=M.updateState,F=(0,i.bW)().updateState,W=(0,i.o3)().updateState,V=D({queryKey:"OrderImporter"}).estimateRouteInfo,B=(0,o._)((0,r.useState)(null),2),U=B[0],Z=B[1],G=function(t){var n,o,r,s;u({currentStep:a.I$.STEP_SCHEDULE,currentOrderType:I()(t.orderType,g.RX.ROUND_TRIP)?g.RX.ROUND_TRIP:g.RX.SINGLE,currentWayPointIndex:i.GM.currentWayPointIndex,routeInfo:i.GM.routeInfo,priceInfo:i.GM.priceInfo,errorEstimateRouteInfo:i.GM.errorEstimateRouteInfo,errorEstimatePriceInfo:i.GM.errorEstimatePriceInfo,recommendRouteInfo:i.GM.recommendRouteInfo}),L(),O((0,m._)((0,p._)({},t.loadingZone),{stepStatus:(null===(o=t.loadingZone)||void 0===o?void 0:null===(n=o.address)||void 0===n?void 0:n.point)?a.ip.STATUS_COMPLETED:a.ip.STATUS_NONE})),E((0,m._)((0,p._)({},t.unloadingZone),{stepStatus:(null===(s=t.unloadingZone)||void 0===s?void 0:null===(r=s.address)||void 0===r?void 0:r.point)?a.ip.STATUS_COMPLETED:a.ip.STATUS_NONE})),j(t.waypoints.items.map(function(e){return S.P0.create((0,m._)((0,p._)({},e),{departureDateTime:C()(e.waypointRequestAt)?null:v()(e.waypointRequestAt).toDate(),memo:e.memo,waypointType:e.type,isIgnoreArriveDate:C()(e.waypointRequestAt),stepStatus:a.ip.STATUS_COMPLETED}))})),e.isFursysGroup&&(0,_.O)(t.vehicleInfo.type)&&A({fareType:y.NY.QUICK_FREIGHT}),q(t.vehicleInfo),K(t.cargoItem),u({importOrderInfo:t})}
1,q=function(e){var t={dispatchMethodType:e.dispatchType,theUnbanVehicleInfo:i.PO.theUnbanVehicleInfo,directVehicleInfo:i.PO.directVehicleInfo,stepStatus:a.ip.STATUS_NONE,loadingMethod:e.convertLoadingMethodType(s),unloadingMethod:e.convertUnloadingMethodType(s)};if(e.dispatchType===y.dS.UNBAN){if(!n.find(function(t){return I()(t.key,e.ton)})){F(t);return}t.stepStatus=C()(e.type)?a.ip.STATUS_NONE:a.ip.STATUS_COMPLETED,t.theUnbanVehicleInfo={vehicleType:e.type,vehicleTon:n.find(function(t){return I()(t.key,e.ton)})||null,isLifted:e.isLifted,isNonVibrating:e.isNonVibrating,isRisingWing:e.isRisingWing,isFrozenTemp:e.isFrozenTemp,isRefrigeratedTemp:e.isRefrigeratedTemp,isRoomTemp:e.isRoomTemp,isLongLength:e.isLongLength,loadingBox:{isOpenBack:e.isStowageBackOpen,isOpenLeft:e.isStowageLeftOpen,isOpenRight:e.isStowageRightOpen},dispatchCount:e.dispatchNumber,dispatchInterval:(0,h.i)(e.dispatchInterval)}}F(t)},K=function(t){var n,o,r,i,s,l,d,c;W({cargoItem:{itemId:t.itemId,itemName:t.itemName,orderOptionItemTypes:t.orderOptionItemTypes,ownerFavoritesOrderId:null==t?void 0:t.ownerFavoritesOrderId,ownerFavoritesOrderItemId:null==t?void 0:t.ownerFavoritesOrderItemId},packingMethod:null===(n=t.itemPacking)||void 0===n?void 0:n.method,totalWeight:(0,P.BP)(null===(o=t.itemPacking)||void 0===o?void 0:o.totalWeight),totalCount:null===(r=t.itemPacking)||void 0===r?void 0:r.quantity,confirmBoxCount:null===(i=t.milkrunOrderDto)||void 0===i?void 0:i.confirmBoxAmount,packingSize:{width:(null===(s=t.itemPacking)||void 0===s?void 0:s.width)||0,length:(null===(l=t.itemPacking)||void 0===l?void 0:l.length)||0,height:(null===(d=t.itemPacking)||void 0===d?void 0:d.height)||0,cbm:null===(c=t.itemPacking)||void 0===c?void 0:c.cbm},price:t.itemPrice,openapiOrderKey:t.openapiOrderKey,stepStatus:e.isAvailablePriceGroup?a.ip.STATUS_NONE:(null==t?void 0:t.itemName)?a.ip.STATUS_COMPLETED:a.ip.STATUS_NONE})};return(0,r.useEffect)(function(){!C()(c)&&(u({importOrderInfo:null}),b()&&k()&&U===c.orderType&&V())},[c,N,R]),(0,r.useEffect)(function(){Z(x)},[x]),{handleImportOrder:function(e){G(e)}}},k=n(5233),E=function(){var e,t,n=(0,k.$G)().t,o=(0,i.Lq)(),r=(0,i.Pl)(),a=(0,i.V8)(),s=(0,i.aK)(),l=(0,i.bU)(),d=(0,i.bW)(),c=(0,i.o3)(),u=(0,f.H)(),p=u.vehicleTypeList,m=u.dispatchIntervalList,h=d.theUnbanVehicleInfo,g=d.directVehicleInfo,y=d.selectedVehicleTon,x=h.vehicleType||g.vehicleType,T=null===(e=y())||void 0===e?void 0:e.value;return{orderState:o,loadingZoneState:r,unloadingZoneState:a,waypointListState:s,scheduleState:l,vehicleState:d,cargoState:c,vehicleTypeValue:null===(t=p.find(function(e){return e.key===x}))||void 0===t?void 0:t.value,vehicleTonValue:T,theUnbanVehicleInfo:h,directVehicleInfo:g,getDisplayAddress:function(e){return(null==e?void 0:e.roadAddress1)?"".concat(e.roadAddress1," ").concat(e.roadAddress2):(null==e?void 0:e.address1)?"".concat(e.address1," ").concat(e.address2):""},getFormattedDateTime:function(e){return e?v()(e).format(n("order:schedule.dateFormat")):""},getDispatchNumber:function(e){if(e>1){var t,o=null===(t=m.find(function(e){return e.key===h.dispatchInterval}))||void 0===t?void 0:t.value;return"/ ".concat(n("order:vehicleInfo.over"),"(").concat(e).concat(n("order:vehicleInfo.placeholder.dispatcher.unit"),") / ").concat(o)}return"/ ".concat(n("order:vehicleInfo.default")," ").concat(e).concat(n("order:vehicleInfo.placeholder.dispatcher.unit"))}}},j=function(e){var t,n=e.onCompleteCallback,s=(0,i.Lq)(),l=s.currentStep,d=s.currentWayPointIndex,c=s.orderCategory,u=s.setCurrentStep,h=s.setCurrentWayPointIndex,f=s.setIsShowRouteMap,g=(0,i.Pl)(),y=(0,i.V8)(),x=(0,i.aK)(),v=(0,i.bU)(),T=(0,i.bW)(),N=(0,i.o3)(),S=D((t=e.zoneFormFields,{scheduleFields:e.scheduleFields,vehicleFields:e.vehicleFields,cargoFields:e.cargoFields,loadingZoneFormFields:I()(l,a.I$.STEP_LOADING)?t:void 0,unloadingZoneFormFields:I()(l,a.I$.STEP_UNLOADING)?t:void 0,waypointFields:I()(l,a.I$.STEP_WAYPOINT)?{waypoints:x.waypoints.map(function(e,n){return I()(d,n)?(0,m._)((0,p._)({},e),{address:t.address}):e})}:void 0,queryKey:"Form"})),b=S.isSuccessEstimateRouteInfo,O=S.isSuccessEstimatePriceInfo,_=S.estimateRouteInfo,P=S.estimatePriceInfo,R=(0,o._)((0,r.useState)(!1),2),k=R[0],E=R[1],j=(0,o._)((0,r.useState)(!1),2),M=j[0],L=j[1],A=function(){return!!((I()(l,a.I$.STEP_LOADING)||g.isStepCompleted())&&(I()(l,a.I$.STEP_UNLOADING)||y.isStepCompleted()))},F=function(){var e=Object.values(a.I$);
1return w()(x.waypoints)&&(e=e.filter(function(e){return!I()(e,a.I$.STEP_WAYPOINT)})),I()(c,a.w0.FAVORITES)&&(e=e.filter(function(e){return!I()(e,a.I$.STEP_SCHEDULE)})),e},W=function(){return F().indexOf(l)},V=function(){return I()(W(),F().length-1)},B=function(){if(n(),!C()(x.validationFailedWaypoint)){U(x.validationFailedWaypoint);return}if(I()(l,a.I$.STEP_WAYPOINT)&&d<x.waypoints.length-1){h(d+1);return}I()(l,a.I$.STEP_LOADING)&&x.waypoints.length>0?h(0):h(null);var e=F(),t=W();V()||u(a.I$[e[t+1]])},U=function(e){u(a.I$.STEP_WAYPOINT),h(e)};return(0,r.useEffect)(function(){b&&((A()&&(I()(l,a.I$.STEP_SCHEDULE)||v.isStepCompleted())&&(I()(l,a.I$.STEP_VEHICLE)||T.isStepCompleted())&&(I()(l,a.I$.STEP_CARGO)||N.isStepCompleted())?w()(x.waypoints)?0:!x.waypoints.filter(function(e,t){return!I()(d,t)}).every(function(e){return e.isStepCompleted()}):1)?E(!0):L(!0))},[b]),(0,r.useEffect)(function(){M&&(P(),L(!1))},[M]),(0,r.useEffect)(function(){O&&(V()&&f(!0),E(!0))},[O]),(0,r.useEffect)(function(){k&&(B(),E(!1))},[k]),{startMoveNextStep:function(){A()?_():B()},reset:function(){E(!1)},moveWaypointStep:U}},M=n(76271),L=function(){var e=(0,k.$G)().t,t=(0,i.Lq)(),n=t.currentOrderType,s=t.setCurrentOrderType,l=t.setCurrentStep,d=(0,i.Pl)().isStepCompleted,c=(0,i.V8)().isStepCompleted,u=(0,i.aK)(),p=u.waypoints,m=u.reset,h=(0,i.bU)(),f=(0,i.bW)(),g=(0,i.o3)(),x=D({queryKey:"OrderTypeSelector"}),T=x.isSuccessEstimateRouteInfo,N=x.estimateRouteInfo,C=x.estimatePriceInfo,S=function(){return d()&&c()},b=(0,o._)((0,r.useState)(!1),2),O=b[0],_=b[1],P=[{key:y.RX.SINGLE,value:e("order:baros.orderType.oneWay")},{key:y.RX.ROUND_TRIP,value:e("order:baros.orderType.round")}],R=function(e){l(a.I$.STEP_LOADING),!I()(n,e)&&(s(e),m(),h.isStepCompleted()&&(I()(e,y.RX.ROUND_TRIP)?h.updateState({loadingReturnDate:M.g.ceilToNearest30(v()(h.unloadingDate).add(30,"minutes").toDate())}):h.updateState({loadingReturnDate:null})))};return(0,r.useEffect)(function(){S()&&N()},[n]),(0,r.useEffect)(function(){T&&S()&&h.isStepCompleted()&&f.isStepCompleted()&&g.isStepCompleted()&&(w()(p)||p.every(function(e){return e.isStepCompleted()}))&&C()},[T]),{isOpenedConfirmModal:O,orderTypeOptions:P,currentOrderType:n,setIsOpenedConfirmModal:_,handleChangeOrderType:function(e){I()(e,y.RX.ROUND_TRIP)&&!w()(p)&&p.some(function(e){return e.isStepCompleted()})?_(!0):R(e)},handleConfirmModal:function(){R(y.RX.ROUND_TRIP),_(!1)}}},A=function(){var e=(0,i.Lq)(),t=e.setCurrentStep,n=e.setCurrentWayPointIndex,s=e.resetPriceInfo,l=(0,i.Pl)().isStepCompleted,d=(0,i.V8)().isStepCompleted,c=(0,i.aK)(),u=c.waypoints,p=c.addWaypoint,m=(0,i.bU)().resetDateTime,h=(0,o._)((0,r.useState)(!1),2),f=h[0],g=h[1],y=D({scheduleFields:i.zv,queryKey:"StepWaypointList"}).estimateRouteInfo;return(0,r.useEffect)(function(){f&&(l()&&d()&&(m(),y()),g(!1))},[f]),{handleAddWaypoint:function(){t(a.I$.STEP_WAYPOINT),n(u.length),p(),m(),s()},handleChangeRemoveStatus:function(e){e.isStepCompleted()&&g(!0)}}},F=n(36988),W=n(58918),V=n(50102),B=function(e,t){var n=(0,o._)((0,r.useState)(!1),2),i=n[0],a=n[1],s=(0,o._)((0,r.useState)(!1),2),l=s[0],d=s[1];return(0,r.useEffect)(function(){a(!0)},[]),(0,r.useEffect)(function(){i&&(!t.isStepCompleted()||I()(t.loadingDate,e.loadingDate)&&I()(t.unloadingDate,e.unloadingDate)&&I()(t.loadingReturnDate,e.loadingReturnDate)?d(!1):d(!0))},[i,e.loadingDate,e.unloadingDate,e.loadingReturnDate]),{isChanged:l}},U=function(e){var t=(0,k.$G)().t,n=(0,o._)((0,r.useState)(""),2),i=n[0],a=n[1],s=e.loadingDate,l=e.unloadingDate,d=(0,o._)((0,r.useState)(!1),2),c=d[0],u=d[1];return(0,r.useEffect)(function(){u&&u(w()(i))},[i]),{isValidated:c,dateTimeValidator:i,reset:function(){a("")},checkAllValidations:function(){return v()(s).isBefore(v()(l))?(a(""),!0):(a(t("order:schedule.alertModal.errorMessages.greaterThanUnloadingDate")),!1)}}},Z=function(e){var t=e.originalState,n=(0,i.Lq)(),s=n.routeInfo,d=(0,n.isOrderTypeRoundTrip)(),c=(0,o._)((0,r.useState)(t.loadingDate),2),u=c[0],p=c[1],m=(0,o._)((0,r.useState)(t.unloadingDate),2),h=m[0],f=m[1],g=(0,o._)((0,r.useState)(t.loadingReturnDate),2),y=g[0],x=g[1],T=(0,o._)((0,r.useState)(u),2),I=T[0],N=T[1],S=(0,o._)((0,r.useState)(h),2),b=S[0],O=S[1],w=(0,o._)((0,r.useState)(y),2),D=w[0],_=w[1],P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return V.x.omit({loadingDate:u,unloadingDate:h,loadingReturnDate:y},e)},R=U(P(["loadingReturnDate"])),k=R.reset,E=B(P(),t).isChanged;return(0,r.useLayoutEffect)(function(){var e,n,o=M.g.getInitMinLoadingAndUnloadingDate(null===(n=l.Z.getCurrentUserFromStorage())||void 0===n?void 0:null===(e=n.business)||void 0===e?void 0:e.isExcludePickupDateTimeCheck),r=o.minLoadingDate,i=o.minUnloadingDate;C()(t.loadingDate)&&p(r),C()(t.unloadingDate)&&f(i),l.Z.getCurrentUserFromStorage().isMilkrunNaverOwner&&(p(v()().hour(21).minute(0).second(0).millisecond(0).toDate()),f(v()().hour(23).minute(0).second(0).millisecond(0).toDate()))},[]),(0,r.useEffect)(function(){var e,t=l.Z.getCurrentUserFromStorage();if(!t.isMilkrunNaverOwner){var n=M.g.getMinLoadingDate(s.estimateDistance,null===(e=t.business)||void 0===e?void 0:e.isExcludePickupDateTimeCheck),o=(0,W.KC)(new Date,u)?n:M.g.currentDate();N(o);var r=v()(u).clone(),i=d?s.spendTimeInMinutes()/2:s.spendTimeInMinutes(),a=s.spendTime?i:30,c=M.g.ceilToNearest30(r.add(a,"minutes").toDate()),m=r.add(30,"minutes").toDate();v()(h).format("YYYYMMDD")>v()(m).format("YYYYMMDD")?O(M.g.currentDate()):O(m),0>v()(h).diff(m)&&f(c),0>v()(u).diff(v()(o))&&p(o)}},[u,h]),(0,r.useEffect)(function(){if(h&&d){var e=s.spendTime?v()(u).clone():v()(h).clone(),t=s.spendTime?s.spendTimeInMinutes():30,n=M.g.ceilToNearest30(e.add(t,"minutes").toDate());v()(y).format("YYYYMMDD")>v()(n).format("YYYYMMDD")?_(M.g.currentDate()):_(n),0>v()(y||void 0).diff(n)&&x(n)}},[d,h,y]),{loadingDate:u,unloadingDate:h,loadingReturnDate:y,minLoadingDateTime:I,minUnloadingDateTime:b,minLoadingReturnDateTime:
1D,hasReturnDatePicker:d,isChanged:E,validator:R,reset:function(){var e,t,n=M.g.getInitMinLoadingAndUnloadingDate(null===(t=l.Z.getCurrentUserFromStorage())||void 0===t?void 0:null===(e=t.business)||void 0===e?void 0:e.isExcludePickupDateTimeCheck),o=n.minLoadingDate,r=n.minUnloadingDate;p(o),f(r),x(r),k()},register:function(){(!t.isStepCompleted()||E)&&t.updateState({loadingDate:u,unloadingDate:h,loadingReturnDate:y,stepStatus:a.ip.STATUS_COMPLETED})},handleChangeLoadingDate:p,handleChangeUnloadingDate:f,handleChangeLoadingReturnDate:x}},G=n(63215),q=function(e,t){var n=(0,o._)((0,r.useState)(!1),2),i=n[0],a=n[1],s=(0,o._)((0,r.useState)(!1),2),l=s[0],d=s[1];return(0,r.useEffect)(function(){a(!0)},[]),(0,r.useEffect)(function(){i&&(t.settlementGroupId!==e.settlementGroupId||t.fareType!==e.fareType||t.settlementMemo!==e.settlementMemo?d(!0):d(!1))},[i,e.settlementGroupId,e.fareType,e.settlementMemo]),{isChanged:l}},K=function(e){var t=(0,k.$G)().t,n=(0,o._)((0,r.useState)(""),2),i=n[0],a=n[1],s=e.settlementGroupId,l=(0,o._)((0,r.useState)(!1),2),d=l[0],c=l[1];return(0,r.useEffect)(function(){c&&c(w()(i))},[i]),{isValidated:d,settlementGroupValidator:i,reset:function(){a("")},checkAllValidations:function(){return C()(s)?(a(t("order:common.validation")),!1):(a(""),!0)}}},$=function(e){var t=e.originalState,n=l.Z.getCurrentUserFromStorage(),a=(0,k.$G)().t,s=(0,i.Lq)().resetPriceInfo,d=(0,i.bW)(),c=d.isDarmasOrLabor,u=d.isStepCompleted,p=d.reset,m=(0,o._)((0,r.useState)(t.settlementGroupId),2),h=m[0],f=m[1],g=(0,o._)((0,r.useState)(t.fareType),2),x=g[0],v=g[1],T=(0,o._)((0,r.useState)(t.settlementMemo),2),I=T[0],N=T[1],C=(0,o._)((0,r.useState)(!1),2),S=C[0],b=C[1],O=function(){return{settlementGroupId:h,fareType:x,settlementMemo:I}},w=K({settlementGroupId:h}),D=q(O(),t).isChanged,_=(0,G.n)({defaultLabel:a("warehousing:warehousingPanel.option1.placeholder")}).groupOptions,P=[{key:y.NY.NORMAL_FREIGHT,value:a("warehousing:warehousingPanel.option2.CONTRACT")},{key:y.NY.DISTRICT_FREIGHT,value:a("warehousing:warehousingPanel.option2.PERDAY")},{key:y.NY.HALF_DAILY_FREIGHT,value:a("warehousing:warehousingPanel.option2.HALFPERDAY")},{key:y.NY.MONTHLY_FREIGHT,value:a("warehousing:warehousingPanel.option2.MONTHLY")},{key:y.NY.QUICK_FREIGHT,value:a("warehousing:warehousingPanel.option2.QUICK")}],R=[{key:y.NY.NORMAL_FREIGHT,value:a("warehousing:warehousingPanel.option2.CONTRACT")},{key:y.NY.QUICK_FREIGHT,value:a("warehousing:warehousingPanel.option2.QUICK")},{key:y.NY.DISTRICT_FREIGHT,value:a("warehousing:warehousingPanel.option2.PERDAY")},{key:y.NY.MONTHLY_FREIGHT,value:a("warehousing:warehousingPanel.option2.MONTHLY")}];return{settlementGroupId:h,fareType:x,settlementMemo:I,settlementGroupOptions:_,fareTypeOptions:n.isKoas?P:R,isChanged:D,isOpenedErrorModal:S,validator:w,setSettlementGroupId:f,setSettlementMemo:N,setIsOpenedErrorModal:b,handleChangeFareType:function(e){var t=e===y.NY.QUICK_FREIGHT;(u()&&t&&!c()||!t&&c())&&b(!0),v(e)},reset:function(){f(i.t9.settlementGroupId),v(i.t9.fareType),N(i.t9.settlementMemo),w.reset()}
1,register:function(){D&&t.updateState(O())},handleCloseErrorModal:function(){p(),s(),b(!1)}}},H=n(49588),Y=n(14117),z=function(e,t){var n=(0,o._)((0,r.useState)(!1),2),i=n[0],a=n[1],s=(0,o._)((0,r.useState)(!1),2),l=s[0],d=s[1];return(0,r.useEffect)(function(){a(!0)},[]),(0,r.useEffect)(function(){i&&(t.warehousingType!==e.warehousingType||t.warehousingCenterCode!==e.warehousingCenterCode||t.warehousingCenterGroupCode!==e.warehousingCenterGroupCode||t.warehousingMemo!==e.warehousingMemo?d(!0):d(!1))},[i,e.warehousingType,e.warehousingCenterCode,e.warehousingCenterGroupCode,e.warehousingMemo]),{isChanged:l}},Q=function(e){var t=(0,k.$G)().t,n=(0,o._)((0,r.useState)(""),2),i=n[0],a=n[1],s=(0,o._)((0,r.useState)(""),2),l=s[0],d=s[1],c=e.warehousingType,u=e.warehousingCenterCode,p=e.warehousingCenterGroupCode,m=(0,o._)((0,r.useState)(!1),2),h=m[0],f=m[1];return(0,r.useEffect)(function(){f&&f(w()(i)||w()(l))},[i,l]),{isValidated:h,centerCodeValidator:i,centerGroupCodeValidator:l,reset:function(){a(""),d("")},checkAllValidations:function(){var e=!0;return C()(c)||(C()(u)?(a(C()(u)?t("order:common.validation"):""),e=!1):a(""),C()(p)?(d(t("order:common.validation")),e=!1):d("")),e}}},J=function(e){var t=e.originalState,n=(0,k.$G)().t,a=(0,o._)((0,r.useState)(t.warehousingType),2),s=a[0],l=a[1],d=(0,o._)((0,r.useState)(t.warehousingCenterCode),2),c=d[0],u=d[1],p=(0,o._)((0,r.useState)(t.warehousingCenterGroupCode),2),m=p[0],h=p[1],f=(0,o._)((0,r.useState)(t.warehousingMemo),2),g=f[0],x=f[1],v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return V.x.omit({warehousingType:s,warehousingCenterCode:c,warehousingCenterGroupCode:m,warehousingMemo:g},e)},T=[{key:null,value:n("warehousing:warehousingPanel.option4.null")},{key:y.fQ.RECEIVING,value:n("warehousing:warehousingPanel.option4.RECEIVING")},{key:y.fQ.FORWARDING,value:n("warehousing:warehousingPanel.option4.FORWARDING")}],N=(0,H.L)({defaultLabel:n("warehousing:warehousingPanel.option5.placeholder")}).centerOptions,S=(0,Y.p)({defaultLabel:n("warehousing:warehousingPanel.option6.placeholder")}),b=S.ioboundOptions,O=S.refetch,w=Q(v(["warehousingMemo"])),D=z(v(),t).isChanged,_=function(){l(i.t9.warehousingType),u(i.t9.warehousingCenterCode),h(i.t9.warehousingCenterGroupCode),x(i.t9.warehousingMemo),w.reset()};return(0,r.useEffect)(function(){C()(s)?_():O(I()(s,y.fQ.RECEIVING),c,s)},[s,c]),{warehousingType:s,warehousingCenterCode:c,warehousingCenterGroupCode:m,warehousingMemo:g,warehousingTypeOptions:T,warehousingCenterOptions:N,warehousingCenterGroupOptions:b,isChanged:D,validator:w,setWarehousingType:l,setWarehousingCenterCode:u,setWarehousingCenterGroupCode:h,setWarehousingMemo:x,reset:_,register:function(){D&&t.updateState(v())}}},X=function(){var e=(0,k.$G)().t,t=(0,i.bU)(),n=Z({originalState:t}),o=$({originalState:t}),a=J({originalState:t}),s=l.Z.getCurrentUserFromStorage(),d=j({scheduleFields:(0,p._)({},n,o),onCompleteCallback:function(){n.register(),o.register(),a.register()}}).startMoveNextStep;return(0,r.useEffect)(function(){t.setIsStepChanged(n.isChanged||o.isChanged||a.isChanged)},[n.isChanged,o.isChanged,a.isChanged]),{dateTimeFields:n,settlementFields:o,warehousingFields:a,getTitle:function(){if(s.isKoas)return e("order:schedule.title4");switch(s.fursysGroupType){case F.Z.FURSYS_GROUP:return e("order:schedule.title2");case F.Z.FURSYS_VENDOR:return e("order:schedule.title3");case F.Z.FURSYS_NONE:default:return e("order:schedule.title")}},getSubTitle:function(){return s.isFursysGroup?e("warehousing:warehousingPanel.title1"):e("warehousing:warehousingPanel.title3")},handleReset:function(){n.reset(),o.reset(),a.reset()},handleRegister:function(){var e=[n.validator];s.isFursys&&e.push(a.validator),s.isFursysGroup&&e.push(o.validator),e.every(function(e){return e.checkAllValidations()})&&d()}}},ee=function(){var e=(0,i.bW)().dispatchMethodType,t=(0,o._)((0,r.useState)(e),2),n=t[0],a=t[1];return{selectVehicleMethodType:n,handleVehicleDispatchRadio:function(e){a(e)}}},et=n(11010),en=n(97582),eo=function(e,t,n,o){var i=e.companyName,a=e.address,s=e.managerName,l=e.managerPhone,u=e.memo,p=e.isRegToAddressBook,m=e.isBasicAddress,h=(0,c.in)(d.IR.mapToRequest({companyName:i,address:a,managerName:s,managerPhone:l,memo:u,isRegToAddressBook:p,isBasicAddress:m},n,o)),f=h.isSuccess,g=h.isError,y=h.data,x=h.error,v=h.mutateAsync,T=h.reset;return(0,r.useEffect)(function(){f&&y&&(t(),T())},[f,y]),{isErrorCreateAddressBook:g,errorCreateAddressBook:x,createAddressBook:v}},er=function(e,t,n){var i=(0,o._)((0,r.useState)(!1),2),a=i[0],s=i[1],l=(0,o._)((0,r.useState)(!1),2),d=l[0],c=l[1];return(0,r.useEffect)(function(){s(!0)},[]),(0,r.useEffect)(function(){if(a){var o,r,i,s,l=!1;n&&(l=!I()(t.waypointType,e.waypointType)||!I()(t.isIgnoreArriveDate,e.isIgnoreArriveDate)||!e.isIgnoreArriveDate&&!I()(t.departureDateTime,e.departureDateTime)),I()(t.companyName,e.companyName)&&I()(null===(o=t.address)||void 0===o?void 0:o.detailAddress,null===(r=e.address)||void 0===r?void 0:r.detailAddress)&&I()(null===(i=t.address)||void 0===i?void 0:i.point,
1null===(s=e.address)||void 0===s?void 0:s.point)&&I()(t.managerName,e.managerName)&&I()(t.managerPhone,e.managerPhone)&&I()(t.memo,e.memo)&&I()(t.palletNo,e.palletNo)&&I()(t.hanssemOrderNo,e.hanssemOrderNo)&&I()(t.itemType,e.itemType)&&I()(t.isCashOnDelivery,e.isCashOnDelivery)&&I()(t.liftingWork,e.liftingWork)&&I()(t.tileBox,e.tileBox)&&I()(t.isRecall,e.isRecall)&&!l?c(!1):c(!0)}},[a,e.companyName,e.address,e.managerName,e.managerPhone,e.memo,e.palletNo,e.hanssemOrderNo,e.itemType,e.isCashOnDelivery,e.liftingWork,e.tileBox,e.isRecall,e.waypointType,e.isIgnoreArriveDate,e.departureDateTime]),{isChanged:d,reset:function(){c(!1)}}},ei=function(e){var t=l.Z.getCurrentUserFromStorage().isHanssem,n=(0,k.$G)().t,i=(0,o._)((0,r.useState)(""),2),a=i[0],s=i[1],d=(0,o._)((0,r.useState)(""),2),c=d[0],u=d[1],p=(0,o._)((0,r.useState)(""),2),m=p[0],h=p[1],f=(0,o._)((0,r.useState)(""),2),g=f[0],x=f[1],v=(0,o._)((0,r.useState)(!1),2),T=v[0],I=v[1],N=(0,o._)((0,r.useState)(""),2),C=N[0],S=N[1],b=e.address,O=e.companyName,D=e.managerName,_=e.managerPhone,P=e.isValidationStarted,R=e.liftingWork,E=e.tileBox,j=function(){var e,t;return b?(null==b?void 0:null===(e=b.point)||void 0===e?void 0:e.lat)>0&&(null==b?void 0:null===(t=b.point)||void 0===t?void 0:t.lng)>0?(W(),!0):(s(n("order:loadingZone.validation.address")),!1):(s(n("order:common.validation")),!1)},M=function(){return O?(u(""),!0):(u(n("order:common.validation")),!1)},L=function(){return D?(h(""),!0):(h(n("order:common.validation")),!1)},A=function(){return _?_.length<8?(x(n("order:loadingZone.validation.phoneNumber")),!1):(x(""),!0):(x(n("order:common.validation")),!1)},F=function(){return!t||(R!==y.RP.TILE||E?(S(""),!0):(S(n("order:common.validation")),!1))},W=function(){s("")};return(0,r.useEffect)(function(){P&&j()},[b]),(0,r.useEffect)(function(){P&&M()},[O]),(0,r.useEffect)(function(){P&&L()},[D]),(0,r.useEffect)(function(){P&&A()},[_]),(0,r.useEffect)(function(){P&&F()},[E,R]),(0,r.useEffect)(function(){I&&I(w()(a)&&w()(c)&&w()(m)&&w()(g)&&w()(C))},[a,c,m,g,C]),{isValidated:T,addressValidator:a,companyNameValidator:c,managerNameValidator:m,managerPhoneNumberValidator:g,reset:function(){s(""),u(""),h(""),x(""),S("")},checkAllValidations:function(){return[j(),M(),L(),A(),F()].every(function(e){return e})},resetAddressValidator:W,tileBoxValidator:C}},ea=n(81125),es=function(e){var t,n=e.zoneState,s=e.initialZoneState,l=e.zoneType,d=(0,i.aK)(),c=d.waypoints,u=d.reset,h=(0,i.bU)(),f=(0,i.Lq)().resetPriceInfo,g=(0,o._)((0,r.useState)(n.companyName),2),y=g[0],x=g[1],v=(0,o._)((0,r.useState)(n.address),2),T=v[0],I=v[1],N=(0,o._)((0,r.useState)(n.managerName),2),C=N[0],S=N[1],b=(0,o._)((0,r.useState)(n.managerPhone),2),O=b[0],D=b[1],_=(0,o._)((0,r.useState)(n.memo),2),P=_[0],R=_[1],k=(0,o._)((0,r.useState)(n.palletNo),2),E=k[0],M=k[1],L=(0,o._)((0,r.useState)(n.hanssemOrderNo),2),A=L[0],F=L[1],W=(0,o._)((0,r.useState)(n.itemType),2),B=W[0],U=W[1],Z=(0,o._)((0,r.useState)(n.isCashOnDelivery),2),G=Z[0],q=Z[1],K=(0,o._)((0,r.useState)(n.liftingWork),2),$=K[0],H=K[1],Y=(0,o._)((0,r.useState)(n.tileBox),2),z=Y[0],Q=Y[1],J=(0,o._)((0,r.useState)(n.isRecall),2),X=J[0],ee=J[1],es=(0,o._)((0,r.useState)(!1),2),el=es[0],ed=es[1],ec=(0,o._)((0,r.useState)(!1),2),eu=ec[0],ep=ec[1],em=(0,o._)((0,r.useState)(!1),2),eh=em[0],ef=em[1],eg=(0,o._)((0,r.useState)(!1),2),ey=eg[0],ex=eg[1],ev=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return V.x.omit({address:T,companyName:y,managerName:C,managerPhone:O,memo:P,palletNo:E,hanssemOrderNo:A,itemType:B,isCashOnDelivery:G,liftingWork:$,tileBox:z,isRecall:X},e)},eT=function(){!eS.isChanged&&n.isStepCompleted()||n.updateState((0,m._)((0,p._)({},ev()),{stepStatus:a.ip.STATUS_COMPLETED}))},eI=function(e){x(e.companyName),I(e.address),S(e.managerName),D(e.managerPhone),R(e.memo),M(e.palletNo),F(e.hanssemOrderNo),U(e.itemType),q(e.isCashOnDelivery),H(e.liftingWork),Q(e.tileBox),ee(e.isRecall)},eN=function(){ed(!1),ep(!1),ef(!1),eb.reset(),eS.reset(),eO.reset()},eC=function(){var e=eb.isValidated;return eh||(ef(!0),e=eb.checkAllValidations()),e},eS=er(ev(),n,!1),eb=ei((0,m._)((0,p._)({},ev(["memo"])),{isValidationStarted:eh,setIsValidationStarted:ef})),eO=j({zoneFormFields:{address:T},scheduleFields:i.zv,onCompleteCallback:eT}),ew=eo({companyName:y,address:T,managerName:C,managerPhone:O,memo:P,isBasicAddress:el,isRegToAddressBook:eu},eT,l),eD=function(){eI(s),eN()},e_=(t=(0,et._)(function(){return(0,en.Jh)(this,function(e){switch(e.label){case 0:if(!eC())return[2];if(!(el||eu))return[3,2];return[4,ew.createAddressBook()];case 1:e.sent(),e.label=2;case 2:return h.resetDateTime(),f(),eO.startMoveNextStep(),[2]}})}),function(){return t.apply(this,arguments)});return(0,r.useEffect)(function(){n.setIsStepChanged(eS.isChanged)},[eS.isChanged]),{isOpenedWaypointResetModal:ey,setIsOpenedWaypointResetModal:ex,handleRequestReset:function(){if(!w()(c)){ex(!0);return}eD()},handleResetWaypointComplete:function(){eD(),u(),ex(!1)},validators:eb,addressBookFields:ew,fields:{companyName:y,address:T,managerName:C,managerPhone:O,memo:P,isBasicAddress:el,isRegToAddressBook:eu,palletNo:E,hanssemOrderNo:A,itemType:B,isCashOnDelivery:G,liftingWork:$,tileBox:z,isRecall:X,setIsRecall:ee,setPalletNo:M,setHanssemOrderNo:F,setItemType:U,setIsCashOnDelivery:q,setLiftingWork:H,setTileBox:Q,setCompanyName:x,setAddress:I,setManagerName:S,setManagerPhone:D,setMemo:R,setIsBasicAddress:ed,setIsRegToAddressBook:ep,resetZoneFields:eI,resetEtcFields:eN,handleSelectAddressBook:function(e){x(e.address.name),I(ea.Qi.mapToPresentation(e.address,e.point)),S(e.address.managerName),D(e.address.managerPhoneNumber),R(e.memo),ed(e.isBasicAddress)},handleReset:eD,handleRegister:e_}}},el=n(52353),ed=n.n(el),ec=function(e){var t,n=S.P0.init(),s=(0,i.Lq)().resetPriceInfo,l=(0,i.aK)(),d=l.currentWaypoint(e),c=(0,i.bU)(),u=(0,o._)((0,r.useState)(d.companyName),2),h=u[0],f=u[1],g=(0,o._)((0,r.useState)(d.address),2),y=g[0],x=g[1],v=(0,o._)((0,r.useState)(d.managerName),2),T=v[0],I=v[1],N=(0,o._)((0,r.useState)(d.managerPhone),2),C=N[0],b=N[1],O=(0,o._)((0,r.useState)(d.memo),2),w=O[0],D=O[1],_=(0,o._)((0,r.useState)(!1),2),P=_[0],R=_[1],k=(0,o._)((0,r.useState)(!1),2),E=k[0],M=k[1],L=(0,o._)((0,r.useState)(!1),2),A=L[0],F=L[1],W=(0,o._)((0,r.useState)(d.palletNo),2),B=W[0],U=W[1],Z=(0,o._)((0,r.useState)(d.hanssemOrderNo),2),G=Z[0],q=Z[1],K=(0,o._)((0,r.useState)(d.itemType),2),$=K[0],H=K[1],Y=(0,o._)((0,r.useState)(d.isCashOnDelivery),2),z=Y[0],Q=Y[1],J=(0,o._)((0,r.useState)(d.liftingWork),2),X=J[0],ee=J[1],es=(0,o._)((0,r.useState)(d.tileBox),2),el=es[0],ec=es[1],eu=(0,o._)((0,r.useState)(null==d?void 0:d.wayp
1ointType),2),ep=eu[0],em=eu[1],eh=(0,o._)((0,r.useState)(null==d?void 0:d.departureDateTime),2),ef=eh[0],eg=eh[1],ey=(0,o._)((0,r.useState)(null==d?void 0:d.isIgnoreArriveDate),2),ex=ey[0],ev=ey[1],eT=(0,o._)((0,r.useState)(!1),2),eI=eT[0],eN=eT[1],eC=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return V.x.omit({address:y,companyName:h,managerName:T,managerPhone:C,memo:w,palletNo:B,hanssemOrderNo:G,itemType:$,isCashOnDelivery:z,liftingWork:X,tileBox:el},e)},eS=er((0,m._)((0,p._)({},eC()),{waypointType:ep,departureDateTime:ef,isIgnoreArriveDate:ex}),d,!0),eb=ei((0,m._)((0,p._)({},eC(["memo"])),{isValidationStarted:A,setIsValidationStarted:F})),eO=function(){d.updateState((0,m._)((0,p._)({},eC()),{waypointType:ep,departureDateTime:ef,isIgnoreArriveDate:ex,stepStatus:a.ip.STATUS_COMPLETED})),d.setIsStepChanged(!1)},ew=j({zoneFormFields:{address:y},scheduleFields:i.zv,onCompleteCallback:eO}),eD=eo({companyName:h,address:y,managerName:T,managerPhone:C,memo:w,isBasicAddress:P},eO,a.BI.WAYPOINT_ZONE,e),e_=function(e){f(e.companyName),x(e.address),I(e.managerName),b(e.managerPhone),D(e.memo),U(e.palletNo),q(e.hanssemOrderNo),H(e.itemType),Q(e.isCashOnDelivery),ee(e.liftingWork),ec(e.tileBox),em(e.waypointType),eg(e.departureDateTime),ev(e.isIgnoreArriveDate)},eP=function(){var t,n=null===(t=l.basicWaypointAddressList)||void 0===t?void 0:t[e];d.isStepCompleted()||ed()(n)?e_(d):e_(n)},eR=function(){e_(n)},ek=function(){R(!1),M(!1),F(!1),eb.reset(),eS.reset(),ew.reset()},eE=function(){var e=eb.isValidated;return A||(F(!0),e=eb.checkAllValidations()),e},ej=(t=(0,et._)(function(){return(0,en.Jh)(this,function(e){switch(e.label){case 0:if(!eE())return[2];if(!(P||E))return[3,2];return[4,eD.createAddressBook()];case 1:e.sent(),e.label=2;case 2:return c.resetDateTime(),s(),ew.startMoveNextStep(),[2]}})}),function(){return t.apply(this,arguments)});return(0,r.useEffect)(function(){return eP(),function(){ek()}},[null==d?void 0:d.id]),(0,r.useEffect)(function(){d.setIsStepChanged(eS.isChanged)},[eS.isChanged]),{validators:eb,addressBookFields:eD,fields:{companyName:h,address:y,managerName:T,managerPhone:C,memo:w,isBasicAddress:P,isRegToAddressBook:E,palletNo:B,hanssemOrderNo:G,itemType:$,isCashOnDelivery:z,liftingWork:X,tileBox:el,isRecall:eI,setIsRecall:eN,setPalletNo:U,setHanssemOrderNo:q,setItemType:H,setIsCashOnDelivery:Q,setLiftingWork:ee,setTileBox:ec,setCompanyName:f,setAddress:x,setManagerName:I,setManagerPhone:b,setMemo:D,setIsBasicAddress:R,setIsRegToAddressBook:M,resetZoneFields:eR,resetEtcFields:ek,handleSelectAddressBook:function(e){f(e.address.name),x(ea.Qi.mapToPresentation(e.address,e.point)),I(e.address.managerName),b(e.address.managerPhoneNumber),D(e.memo),R(e.isBasicAddress)},handleReset:function(){eR(),ek()},handleRegister:ej,waypointType:ep,waypointDate:ef,isCheckedArriveDate:ex,setWaypointType:em,setWaypointDate:eg,setIsCheckedArriveDate:ev,handleRequestReset:function(){eR(),ek()}}}},eu=function(e){var t=e.directVehicleState,n=e.isValidationStarted,i=(0,k.$G)().t,a=t.driverName,s=(0,o._)((0,r.useState)(""),2),l=s[0],d=s[1],c=(0,o._)((0,r.useState)(!1),2),u=c[0],p=c[1],m=function(){return a?(d(""),!0):(d(i("order:common.validation")),!1)};return(0,r.useEffect)(function(){n&&m()},[a]),(0,r.useEffect)(function(){p(w()(l))},[l]),{vehicleTypeValidator:l,isValidated:u,reset:function(){d("")},checkAllValidations:function(){return m()}}},ep=function(){var e=(0,i.bW)(),t=(0,f.H)().loadingUnloadingMethodSelectList,n=e.directVehicleInfo,s=(0,o._)((0,r.useState)([]),2),l=s[0],u=s[1],m=(0,o._)((0,r.useState)(n),2),h=m[0],g=m[1],x=(0,o._)((0,r.useState)(!1),2),v=x[0],T=x[1],N=function(e){return e||t.find(function(e){return e.key===y.NI.FOLK_LIFT})},C=(0,o._)((0,r.useState)(N(e.loadingMethod)),2),S=C[0],b=C[1],O=(0,o._)((0,r.useState)(N(e.unloadingMethod)),2),w=O[0],D=O[1],_=eu({directVehicleState:(0,p._)({},h),isValidationStarted:v}),P=j({vehicleFields:{loadingMethod:S,unloadingMethod:w,dispatchMethodType:y.dS.DIRECT,vehicleInfo:h},onCompleteCallback:function(){R()&&e.setDirectVehicleInfo({loadingMethod:S,unloadingMethod:w,directVehicleInfo:h})}}).startMoveNextStep,R=function(){return!I()(h,n)},k=(0,c.__)({keyword:""}),E=k.refetch,M=k.isSuccess,L=k.data;return(0,r.useEffect)(function(){E()},[]),(0,r.useEffect)(function(){u(d.Db.mapsToPresentation(L))},[M]),(0,r.useEffect)(function(){e.setIsStepChanged(R())},[h]),{loadingMethod:S,unloadingMethod:w,selectDirectCar:h,directCarOptionList:l,directCarTypeInfoValidation:_.vehicleTypeValidator,setLoadingMethod:b,
1setUnloadingMethod:D,setDirectCarOptionList:u,setSelectDirectCar:g,handleFormReset:function(){g(i.PO.directVehicleInfo),_.reset()},handleRegister:function(){var e=_.isValidated;v||(T(!0),e=_.checkAllValidations()),e&&P()},handleChangeOption:function(e){parseInt(e.info.vehicleTon.value,10)>=a.iy&&(S.key===y.NI.DRIVER_HANDWORK||w.key===y.NI.DRIVER_HANDWORK)&&(b(t.find(function(e){return e.key===y.NI.FOLK_LIFT})),D(t.find(function(e){return e.key===y.NI.FOLK_LIFT}))),g(e.info)}}},em=function(e){var t=e.onSelected,n=e.dispatchInterval,o=e.dispatchNumber,r=e.dispatchNumberType,i=e.setDispatchNumberType;return{dispatchNumberType:r,handleDispatchNumberTypeChange:function(e,n){i(e),t(Number(n),h.Q.INTERVAL0)},handleDispatchNumberChange:function(e){t(Number(e.target.value.trim().replace(/\D{0,2}/g,"")),n)},handleIntervalChange:function(e){t(Number(o),e)}}},eh=function(e){var t=e.onSetVehicle,n=l.Z.getCurrentUserFromStorage(),a=n.isFursysGroup,s=n.isKoas,d=n.isHanssem,c=(0,f.H)().vehicleTypeList,u=(0,i.bU)(),h=u.fareType,g=u.isStepCompleted,x=(0,i.Lq)().isFavoriteOrder,v=(0,o._)((0,r.useState)(!1),2),T=v[0],I=v[1],N=c.map(function(e){var t=!1;return(a||s)&&!x()&&(t=h===y.NY.QUICK_FREIGHT?!(0,_.O)(e.key):(0,_.O)(e.key)),(0,m._)((0,p._)({},e),{disabled:t})});return{isHanssem:d,isFursysGroup:a,vehicleCarTypes:N,handleClick:function(e,n){
1n||t(e)},setIsOpenedSpecModal:I,isOpenedSpecModal:T,isScheduleStepCompleted:g}},ef=n(15448),eg=function(e){var t=e.onSelected,n=(0,f.H)().vehicleWeightList;return{isHanssem:l.Z.getCurrentUserFromStorage().isHanssem,vehicleTonOptions:n.filter(function(e){return e.key!==ef.oi.TON0_3&&e.key!==ef.oi.TON0_5&&e.key!==ef.oi.TON00_5}),handleTonChange:function(e){t(e)}}},ey=function(e){var t=e.theUnbanVehicleState,n=e.dispatchNumberType,i=e.isValidationStarted,s=e.isDisabledTonType,l=(0,k.$G)().t,d=t.vehicleTon,c=t.vehicleType,u=(t.loadingBox,t.dispatchCount),p=(0,o._)((0,r.useState)(""),2),m=p[0],h=p[1],f=(0,o._)((0,r.useState)(""),2),g=f[0],y=f[1],x=(0,o._)((0,r.useState)(""),2),v=x[0],T=x[1],I=(0,o._)((0,r.useState)(!1),2),N=I[0],C=I[1],S=function(){return c?(h(""),!0):(h(l("order:common.validation")),!1)},b=function(){return s||(null==d?void 0:d.key)?(y(""),!0):(y(l("order:common.validation")),!1)},O=function(){if(n===a.Wd.DEFAULT)return T(""),!0;var e=Number(u);return e<2?(T(l("order:vehicleInfo.validation.dispatchNumberRequired")),!1):e>20?(T(l("order:vehicleInfo.validation.dispatchNumberLimit")),!1):(T(""),!0)};return(0,r.useEffect)(function(){i&&S()},[c]),(0,r.useEffect)(function(){i&&b()},[d]),(0,r.useEffect)(function(){i&&O()},[u]),(0,r.useEffect)(function(){C(w()(m)&&w()(g)&&w()(v))},[m,g,v]),{vehicleTypeValidator:m,vehicleTonValidator:g,countValidator:v,isValidated:N,reset:function(){h(""),y(""),T("")},checkAllValidations:function(){return[S(),b(),O()].every(function(e){return e})}}},ex=n(6441),ev=function(){var e=(0,k.$G)(["order"]).t,t=l.Z.getCurrentUserFromStorage(),n=t.isFursysGroup,s=t.isMilkrunNaverOwner,d=(0,f.H)(),c=d.loadingUnloadingMethodSelectList,u=d.vehicleWeightList,h=d.vehicleTypeList,g=(0,i.bW)(),x=(0,i.bU)().fareType,v=(0,i.o3)(),T=v.totalWeight,N=v.updateState,C=v.setStepStatus,S=v.isNamYangWater,b=(0,i.Lq)(),O=b.isFavoriteOrder,w=b.resetPriceInfo,D=(0,o._)((0,r.useState)(s?ef.PV.WING_BODY_CARGO:g.theUnbanVehicleInfo.vehicleType),2),R=D[0],E=D[1],M=(0,o._)((0,r.useState)(s?u.find(function(e){return e.key===ef.oi.TON11_0}):g.theUnbanVehicleInfo.vehicleTon),2),L=M[0],A=M[1],F=(0,o._)((0,r.useState)(g.theUnbanVehicleInfo.loadingBox),2),W=F[0],B=F[1],U=(0,o._)((0,r.useState)(g.theUnbanVehicleInfo.dispatchCount||1),2),Z=U[0],G=U[1],q=(0,o._)((0,r.useState)(g.theUnbanVehicleInfo.dispatchInterval),2),K=q[0],$=q[1],H=(0,o._)((0,r.useState)(g.theUnbanVehicleInfo.dispatchCount>1?a.Wd.MANY:a.Wd.DEFAULT),2),Y=H[0],z=H[1],Q=(0,o._)((0,r.useState)(g.theUnbanVehicleInfo.isLifted),2),J=Q[0],X=Q[1],ee=(0,o._)((0,r.useState)(g.theUnbanVehicleInfo.isNonVibrating),2),et=ee[0],en=ee[1],eo=(0,o._)((0,r.useState)(g.theUnbanVehicleInfo.isRisingWing),2),er=eo[0],ei=eo[1],ea=(0,o._)((0,r.useState)(g.theUnbanVehicleInfo.isFrozenTemp),2),es=ea[0],el=ea[1],ed=(0,o._)((0,r.useState)(g.theUnbanVehicleInfo.isRefrigeratedTemp),2),ec=ed[0],eu=ed[1],ep=(0,o._)((0,r.useState)(g.theUnbanVehicleInfo.isRoomTemp),2),em=ep[0],eh=ep[1],eg=(0,o._)((0,r.useState)(g.theUnbanVehicleInfo.isLongLength),2),ev=eg[0],eT=eg[1],eI=(0,o._)((0,r.useState)(!1),2),eN=eI[0],eC=eI[1],eS=function(e){return e||c.find(function(e){return e.key===y.NI.FOLK_LIFT})},eb=(0,o._)((0,r.useState)(eS(g.loadingMethod)),2),eO=eb[0],ew=eb[1],eD=(0,o._)((0,r.useState)(eS(g.unloadingMethod)),2),e_=eD[0],eP=eD[1],eR=(0,o._)((0,r.useState)(!1),2),ek=eR[0],eE=eR[1],ej=x===y.NY.QUICK_FREIGHT||ex.fi.isFixedTonVehicle(R),eM=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return V.x.omit({vehicleType:R,vehicleTon:L,loadingBox:W,dispatchCount:Z,dispatchInterval:K,isLifted:J,isNonVibrating:et,isRisingWing:er,isFrozenTemp:es,isRefrigeratedTemp:ec,isRoomTemp:em,isLongLength:ev},e)},eL=ey({theUnbanVehicleState:(0,p._)({},eM(["dispatchInterval"])),dispatchNumberType:Y,isValidationStarted:ek,isDisabledTonType:ej}),eA=j({vehicleFields:{loadingMethod:eO,unloadingMethod:e_,dispatchMethodType:y.dS.UNBAN,vehicleInfo:eM()},onCompleteCallback:function(){eV()&&g.setTheUnbanVehicleInfo({loadingMethod:eO,unloadingMethod:e_,theUnbanVehicleInfo:eM()})}}).startMoveNextStep,eF=function(e){if(e!==ef.PV.CARGO&&B(i.PO.theUnbanVehicleInfo.loadingBox),ex.fi.isFixedTonVehicle(e)){A(u.find(function(t){return t.key===ex.fi.getFixedTonOfVehicle(e)})),E(e);return}ex.fi.isFixedTonVehicle(R)&&A(i.PO.theUnbanVehicleInfo.vehicleTon),E(e)},eW=function(e){parseInt(e.value,10)>=a.iy&&(eO.key===y.NI.DRIVER_HANDWORK||e_.key===y.NI.DRIVER_HANDWORK)&&(ew(c.find(function(e){return e.key===y.NI.FOLK_LIFT})),eP(c.find(function(e){return e.key===y.NI.FOLK_LIFT}))),A(e)},eV=function(){return!I()(R,g.theUnbanVehicleInfo.vehicleType)||!I()(L,g.theUnbanVehicleInfo.vehicleTon)||
1!I()(J,g.theUnbanVehicleInfo.isLifted)||!I()(W,g.theUnbanVehicleInfo.loadingBox)||!I()(et,g.theUnbanVehicleInfo.isNonVibrating)||!I()(er,g.theUnbanVehicleInfo.isRisingWing)||!I()(es,g.theUnbanVehicleInfo.isFrozenTemp)||!I()(ec,g.theUnbanVehicleInfo.isRefrigeratedTemp)||!I()(em,g.theUnbanVehicleInfo.isRoomTemp)||!I()(ev,g.theUnbanVehicleInfo.isLongLength)||!I()(Z,g.theUnbanVehicleInfo.dispatchCount||1)||!I()(K,g.theUnbanVehicleInfo.dispatchInterval)||!I()(eO,eS(g.loadingMethod))||!I()(e_,eS(g.unloadingMethod))};return(0,r.useEffect)(function(){g.setIsStepChanged(eV())},[R,L,W,Z,K,eO,e_,J,et,er,es,ec,em,ev]),(0,r.useEffect)(function(){var t=Number((1.1*parseFloat(null==L?void 0:L.value)).toFixed(3));(null==L?void 0:L.key)===ef.oi.TON00_5&&(t=.075),t<Number(T)&&(alert(e("order:vehicleInfo.alert.overWeightForCargo")),N({totalWeight:(0,P.BP)(i.mW.totalWeight),totalCount:i.mW.totalCount}),C(a.ip.STATUS_NONE),w())},[L]),(0,m._)((0,p._)({},eL),{fareType:x,dispatchNumberType:Y,t:e,vehicleType:R,vehicleTon:L,loadingBox:W,count:Z,dispatchInterval:K,isDisabledTonType:ej,loadingMethod:eO,unloadingMethod:e_,isLifted:J,isShowChipTooltip:g.isShowChipTooltip,setIsShowChipTooltip:g.setIsShowChipTooltip,isNonVibrating:et,isRisingWing:er,isFrozenTemp:es,isRefrigeratedTemp:ec,isRoomTemp:em,isLongLength:ev,setLoadingMethod:ew,setUnloadingMethod:eP,handleSetVehicle:eF,handleTonChange:eW,handleDispatchNumberChange:function(e,t){G(e),$(t)},handleFormReset:function(){var e=i.PO.theUnbanVehicleInfo;E(e.vehicleType),A(e.vehicleTon),X(e.isLifted),en(e.isNonVibrating),ei(e.isRisingWing),el(e.isFrozenTemp),eu(e.isRefrigeratedTemp),eh(e.isRoomTemp),eT(e.isLongLength),B(e.loadingBox),G(e.dispatchCount),$(e.dispatchInterval),z(a.Wd[a.Wd.DEFAULT]),eE(!1),ew(eS(g.loadingMethod)),eP(eS(g.unloadingMethod)),s&&(E(ef.PV.WING_BODY_CARGO),A(u.find(function(e){return e.key===ef.oi.TON11_0}))),eL.reset()},handleRegister:function(){var e=eL.isValidated;ek||(eE(!0),e=eL.checkAllValidations()),e&&(S&&L!==g.theUnbanVehicleInfo.vehicleTon&&(N({totalCount:i.mW.totalCount}),C(a.ip.STATUS_NONE),w()),eA())},setDispatchNumberType:z,handleSelectVehicleChip:function(e){var t=h.find(function(t){return t.value===e.left}),o=(0,_.O)(t.key);if(n&&!O()&&(x===y.NY.QUICK_FREIGHT&&!o||x!==y.NY.QUICK_FREIGHT&&o)){eC(!0);return}t&&eF(t.key);var r=u.find(function(t){return t.value===e.right});r&&!o&&eW(r)},isShowVehicleErrorModal:eN,setIsShowVehicleErrorModal:eC,setIsLifted:X,setLoadingBox:B,setIsNonVibrating:en,setIsRisingWing:ei,setIsFrozenTemp:el,setIsRefrigeratedTemp:eu,setIsRoomTemp:eh,setIsLongLength:eT})},eT=n(75766),eI=n(3292),eN=n(85309),eC=function(){var e,t=l.Z.getCurrentUserFromStorage(),n=t.isHanssem,s=t.isAvailablePriceGroup,d=t.priceGroups,c=t.isMilkrunNaverOwner,u=(0,i.o3)(),h=u.cargoItem,g=u.packingMethod,y=u.totalWeight,x=u.totalCount,v=u.packingSize,T=u.price,N=u.priceGroup,C=u.openapiOrderKey,S=u.isShowChipTooltip,b=u.setIsShowChipTooltip,O=u.updateState,w=u.setStepStatus,D=u.setIsStepChanged,_=u.setIsNamYangWater,R=u.isNamYangWater,k=u.confirmBoxCount,E=(0,f.H)().orderMeta,M=(0,i.bW)(),L=M.directVehicleInfo,A=M.selectedVehicleTon,F=M.selectedVehicleType,W=(0,i.aK)(),V=(0,P.BP)(y),B=null===(e=A())||void 0===e?void 0:e.key;if(n&&B){var U=(1.1*Number(B.match(/(\d+_\d+)/)[0].replace("_","."))).toFixed(3);V=B===ef.oi.TON00_5?"0.075":U.toString()}var Z=F(),G=function(e,t){return t===a.CQ.PALLET&&e===eN.dEV.priceModuleType.NAMYANG_WATER},q=function(){if(1===d.length&&d[0].priceModuleType===eN.dEV.priceModuleType.NAMYANG_WATER)return{type:d[0].priceModuleType,id:d[0].priceId};if(d.length>=2){var e=d.find(function(e){return e.isDefault});if(e)return{type:e.priceModuleType,id:e.priceId}}return N},K=(0,o._)((0,r.useState)(h),2),$=K[0],H=K[1],Y=(0,o._)((0,r.useState)(c?a.CQ.PALLET:g),2),z=Y[0],Q=Y[1],J=(0,o._)((0,r.useState)((0,P.BP)(V)),2),X=J[0],ee=J[1],et=(0,o._)((0,r.useState)(x),2),en=et[0],eo=et[1],er=(0,o._)((0,r.useState)(v),2),ei=er[0],ea=er[1],es=(0,o._)((0,r.useState)(T),2),el=es[0],ed=es[1],ec=(0,o._)((0,r.useState)(q()),2),eu=ec[0],ep=ec[1],em=(0,o._)((0,r.useState)(!1),2),eh=em[0],eg=em[1],ey=(0,o._)((0,r.useState)(C),2),ex=ey[0],ev=ey[1],eC=(0,r.useMemo)(function(){return!!R&&!(Z===ef.PV.DARMAS||Z===ef.PV.LABOR)},[R,Z]),eS=(0,o._)((0,r.useState)(k),2),eb=eS[0],eO=eS[1],ew=function(){return{cargoItem:$,packingMethod:z,totalWeight:X,totalCount:en,packingSize:ei,price:el,priceGroup:eu,isNamYangWater:R,open
1apiOrderKey:ex,confirmBoxCount:eb}},e_=eD((0,m._)((0,p._)({},ew()),{isValidationStarted:eh})),eP=(E.packingMethodType||[]).map(function(e){return{key:e.key,value:e.value}}),eR=j({cargoFields:{cargoItem:$,packingMethod:z,totalWeight:X,totalCount:en,packingSize:ei,price:el,priceGroup:eu,openapiOrderKey:ex,confirmBoxCount:eb},onCompleteCallback:function(){eE()&&(O(ew()),w(a.ip.STATUS_COMPLETED))}}).startMoveNextStep,ek=function(e){Q(e.key),_(G(eu.type,e.key))},eE=function(){return!I()($,h)||!I()(z,g)||!I()(X,y)||!I()(en,x)||!I()(ei,v)||!I()(el,T)||!I()(eu,N)||!I()(ex,C)||!I()(eb,k)};return(0,r.useEffect)(function(){D(eE())},[$,z,X,en,ei,el,eu,h,g,y,x,v,T,N,C,eb,k]),(0,r.useEffect)(function(){_(G(N.type,g))},[]),(0,r.useEffect)(function(){L.vehicleTon.value&&(Number(X)<Number(parseFloat(L.vehicleTon.value))||(ee(String(parseFloat(L.vehicleTon.value))),O({totalWeight:String(parseFloat((0,P.BP)(L.vehicleTon.value)))})))},[L.vehicleTon.value]),(0,m._)((0,p._)({},e_),{isAvailablePriceGroup:s,priceGroups:d,cargoItem:$,packingMethod:z,totalWeight:X,totalCount:en,packingSize:ei,price:el,priceGroup:eu,packingMethodTypes:eP,isShowChipTooltip:S,isRequiredTotalCount:eC,waypointZoneState:W,openapiOrderKey:ex,handlePalletNoChange:function(e){H(function(t){return(0,m._)((0,p._)({},t),{palletNo:e.target.value.substring(0,100)})})},setIsShowChipTooltip:b,setCargoItem:H,handleFormReset:function(){H(i.mW.cargoItem),Q(i.mW.packingMethod),ee(i.mW.totalWeight),eo(i.mW.totalCount),ea(i.mW.packingSize),ed(i.mW.price),ep(q()),_(!1),eg(!1),e_.initValidation(),c&&Q(a.CQ.PALLET),eO(i.mW.confirmBoxCount)},handleRegister:function(){var e=e_.isValidated;eh||(eg(!0),e=e_.checkAllValidations()),e&&eR()},handleResetCargoItem:function(){H(i.mW.cargoItem)},handlePackagingTypesChange:ek,handleChangeTotalWeight:function(e){var t=(0,P.E3)(e.target.value,3).substring(0,9);isNaN(Number(t))||ee(t)},handleChangeTotalCount:function(e){eo(Number((0,eI.Kd)(e.target.value).substring(0,9)))},handleChangePackingSize:function(e,t){var n=e.target.value;(1!==n.length||0!==Number(n))&&ea((0,m._)((0,p._)({},ei),(0,eT._)({},t,(0,eI.Kd)(n.substring(0,11)))))},handleChangeCbm:function(e){var t=(0,P.E3)(e.target.value,3).substring(0,9);isNaN(Number(t))||ea((0,m._)((0,p._)({},ei),{cbm:t}))},handleChangePrice:function(e){ed(Number((0,eI.Kd)(e.target.value).substring(0,9)))},handleBlurTotalWeight:function(e){var t;I()(null===(t=e.target.value)||void 0===t?void 0:t.slice(-1),".")&&ee(e.target.value.substring(0,e.target.value.length-1))},handleBlurCbm:function(e){var t;I()(null===(t=e.target.value)||void 0===t?void 0:t.slice(-1),".")&&ea((0,m._)((0,p._)({},ei),{cbm:e.target.value.substring(0,e.target.value.length-1)}))},handleClickChip:function(e){H({itemId:"",itemName:e.left,orderOptionItemTypes:$.orderOptionItemTypes});var t=eP.find(function(t){return t.value===e.right});t&&ek(t)},handleSingAndSetTypesChange:function(e){H(function(t){return(0,m._)((0,p._)({},t),{orderItemType:e.key})})},handleClickPriceType:function(e){_(G(e.moduleType,z)),ep({type:e.moduleType,id:e.key})},handleChangeOpenapiOrderKey:function(e){ev(e.target.value)},confirmBoxCount:eb,handleChangeConfirmBoxCount:function(e){eO(Number((0,eI.Kd)(e.target.value).substring(0,9)))}})},eS=function(e){var t,n=e.cargoItem,i=e.onReset,a=e.onChangeCargoItem,s=(0,r.useRef)(null),l=(0,o._)((0,r.useState)(0),2),d=l[0],c=l[1],u=(0,o._)((0,r.useState)(!1),2),m=u[0],h=u[1],f=(0,o._)((0,r.useState)(!1),2),g=f[0],y=f[1],x=function(e){a((0,p._)({},e)),c(0)},v=function(e,t){if("Enter"===e){var n,o=null===(n=t[d])||void 0===n?void 0:n.dataset;o&&(x({itemId:o.id,itemName:o.name}),h(!1))}},T=(t=(0,et._)(function(e){return(0,en.Jh)(this,function(t){return m||h(!0),y(!0),a({itemId:"",itemName:e.target.value.substring(0,30),orderOptionItemTypes:n.orderOptionItemTypes}),[2]})}),function(e){return t.apply(this,arguments)});return(0,r.useEffect)(function(){var e,t;null==s||null===(t=s.current)||void 0===t||null===(e=t.getElementsByTagName("li")[d])||void 0===e||e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[d,s]),(0,r.useEffect)(function(){m||(c(0),y(!1))},[m]),{focused:m,listRef:s,currentCursorIdx:d,setFocused:h,handleKeyDown:function(e){if(!e.nativeEvent.isComposing&&(null==s?void 0:s.current)){var t,n=null==s?void 0:s.current.getElementsByTagName("li"),o=n.length;0===o||("ArrowDown"===(t=e.code)&&d<o-1?(c(function(e){return e+1}),1):"ArrowUp"===t&&d>0&&(c(function(e){return e-1}),1))||v(e.code,n)}},handleCargoName:T,handleCancelClick:function(){i()},setCurrentCursorIdx:c,handleCargoTypeClick:x,isActiveItemList:m&&g}},eb=n(1859),eO=function(e){var t=e.itemName,n=(0,o._)((0,r.useState)(eb.cS.init()),2),i=n[0],a=n[1],s=(0,r.useDeferredValue)(t),l=(0,c.ll)({word:s.trim()}),u=l.isSuccess,p=l.data;return(0,r.useEffect)(function(){s||a(eb.cS.init())},[s]),(0,r.useEffect)(function(){u&&a(d.lk.mapsToPresentation(p))},[u,p]),{cargoItems:i}},ew=n(20419),eD=function(e){var t,n=l.Z.getCurrentUserFromStorage(),a=n.isAvailablePriceGroup,s=n.isMilkrunNaverOwner,d=(0,k.$G)().t,c=e.cargoItem,u=e.packingMethod,p=e.totalWeight,m=e.totalCount,h=e.isValidationStarted,g=e.priceGroup,y=e.isNamYangWater,x=e.confirmBoxCount,v=(0,f.H)().vehicleWeightList,T=(0,i.bW)(),I=T.selectedVehicleTon,N=T.selectedVehicleType,C=null===(t=I())||void 0===t?void 0:t.key,S=N(),b=(0,o._)((0,r.useState)(!1),2),O=b[0],D=b[1],_=(0,o._)((0,r.useState)(""),2),P=_[0],R=_[1],E=(0,o._)((0,r.useState)(""),2),j=E[0],M=E[1],L=(0,o._)((0,r.useState)(""),2),A=L[0],F=L[1],W=(0,o._)((0,r.useState)(""),2),V=W[0],B=W[1],U=(0,o._)((0,r.useState)(""),2),Z=U[0],G=U[1],q=(0,o._)((0,r.useState)(""),2),K=q[0],$=q[1],H=function(){return!a||((null==g?void 0:g.id)?(G(""),!0):(G(d("order:common.validation")),!1))},Y=function(){return c.itemName?(R(""),!0):(R(d("order:common.validation")),!1)},z=function(){return u?(M(""),!0):(M(d("order:common.validation")),!1)},Q=function(){var e=Number(p),t=null==v?void 0:v.find(function(e){return e.key===C});if(!p)return F(d("order:common.validation")),!1;if(0===e)return F(d("order:cargoInfo.validation.zeroWeight")),!1;var n=Number((1.1*parseFloat(null==t?void 0:t.value)).toFixed(3));return(C===ef.oi.TON00_5&&(n=.075),n<e)?(F("".concat(d("order:cargoInfo.validation.overWeight1")," ")+"".concat(null==t?void 0:t.value).concat(d("order:cargoInfo.validation.overWeight2")," ")+"".concat(n).concat(d("order:cargoInfo.validation.overWeight3"))),!1):(F(""),!0)},J=function(){if(s){var e=Number(x);return e?0===e?($(d("order:cargoInfo.validation.zeroCount")),!1):e>999?($("최대 수량은 999개입니다."),!1):($(""),!0):($(d("order:common.validation")),!1)}return $(""),!0},X=function(){if(s){var e=Number(m);if(!e)return B(d("order:common.validation")),!1;if(0===e)return B(d("order:cargoInfo.validation.zeroCount")),!1;if(e>999)return B("최대 수량은 999개입니다."),!1;if(e>0)return B(""),!0}if(!y||y&&(S===ef.PV.DARMAS||S===ef.PV.LABOR))return B(""),!0;var t=Number(m);if(!m)return B(d("order:common.validation")),!1;if(0===m)return B(d("order:cargoInfo.validation.zeroCount")),!1;if(Object.keys(ew.c).includes(C)){var n=ew.c[C],o=n.min,r=n.max,i=n.label;if(t<o||t>r)return B(o===r?d("order:cargoInfo.validation.totalCountValidatorMaxOnly",{ton:i,max:r}):d("order:cargoInfo.validation.totalCountValidator",{ton:i,min:o,max:r})),!1}return B(""),!0};return(0,r.useEffect)(function(){h&&Y()},[c]),(0,r.useEffect)(function(){h&&z()},[u]),(0,r.useEffect)(function(){h&&Q()},[p]),(0,r.useEffect)(function(){h&&H()},[g]),(0,r.useEffect)(function(){h&&X()},[m,p,u,C,y,g]),(0,r.useEffect)(function(){h&&J()},[x]),(0,r.useEffect)(function(){D(w()(P)&&w()(j)&&w()(A)&&w()(V)&&w()(Z)&&w()(K))},[P,j,A,V,Z,K]),{isValidated:O,itemNameValidator:P,packingMethodValidator:j,totalWeightValidator:A,totalCountValidator:V,priceGroupValidator:Z,checkItemName:Y,checkPackingMethod:z,checkTotalWeight:Q,checkPriceGroup:H,initValidation:function(){R(""),M(""),F(""),B(""),G(""),$("")},checkAllValidations:function(){return[Y(),z(),Q(),X(),H(),J()].every(function(e){return e})},confirmBoxCountValidator:K}},e_=function(){var e=(0,o._)((0,r.useState)(null),2),t=e[0],n=e[1],a=(0,o._)((0,r.useState)(!1),2),s=a[0],l=a[1],d=(0,i.Lq)(),c=d.routeInfo,u=d.recommendRouteInfo,p=S.WG.init();return(0,r.useEffect)(function(){t&&l(!!u)},[t,u]),{map:t,setMap:n,showPathLocation:s,activeRecommendRoute:c,inActiveRecommendRoute:p}},eP=function(){var e=(0,i.Lq)(),t=e.errorEstimateRouteInfo,n=e.setErrorEstimateRouteInfo,o=e.reset,a=e.isShowRouteMap,s=e.setIsShowRouteMap,l=(0,i.Pl)().reset,d=(0,i.V8)().reset,c=(0,i.aK)().reset,u=(0,i.bU)().reset,p=(0,i.bW)().reset,m=(0,i.o3)().reset;return(0,r.useEffect)(function(){return function(){o(),l(),d(),c(),u(),p(),m()}},[]),{isShowRouteMap:a,errorEstimateRouteInfo:t,setIsShowRouteMap:s,handleClickOrderConfirm:function(){s(!0)},setErrorEstimateRouteInfo:n}},eR=n(248),ek=n(34437),eE=function(e){var t,n=(0,i.Pl)().address,o=(0,i.V8)().address,s=(0,i.aK)().waypoints,l=ek.I.mapsToPresentation([n.point].concat((0,eR._)(s.map(function(e){return e.address.point}
1)),[o.point])),d=ek.I.mapToPresentation(n.point),c=ek.I.mapToPresentation(o.point),u=(t={},(0,eT._)(t,a.c9.LOADING,"https://cf-common.unban.ai/owner-web/icon-loading-spot.svg"),(0,eT._)(t,a.c9.UNLOADING,"https://cf-common.unban.ai/owner-web/icon-unloading-spot.svg"),(0,eT._)(t,a.c9.WAYPOINT,"https://cf-common.unban.ai/owner-web/icon-waypoint-spot.svg?q=1"),t);return(0,r.useEffect)(function(){e&&e.fitCoordinates(l,{padding:{top:100,left:100,right:100,bottom:150}})},[e,l]),{loadingPoint:d,unloadingPoint:c,icons:u,loadingAddress:n,waypoints:s,unloadingAddress:o}},ej=n(74159),eM=n(48213),eL=function(e,t){var n=(0,i.Lq)(),a=n.priceInfo,s=n.routeInfo,d=(0,i.aK)().waypoints,c=(0,i.Pl)(),u=(0,i.V8)(),p=(0,i.bU)(),m=(0,i.bW)(),h=(0,ej.t)(),f=h.selectedPaymentMethod,g=h.setPaymentMethods,x=h.reset,v=(0,o._)((0,r.useState)(null),2),T=v[0],I=v[1],N=m.selectedVehicleType(),C=m.selectedVehicleTon(),S=d.length,O=(0,b.Fx)().dispatchBannerListInfoModel.bannerList,w=l.Z.getCurrentUserFromStorage(),D=m.dispatchMethodType===y.dS.UNBAN,_=(0,eM.xo)(),P=_.isSuccess,R=_.data,k=_.refetch,E=(0,r.useMemo)(function(){return w.business.paymentMethodType===eN.IKO.paymentMethodType.CREDIT_SALES||w.business.paymentMethodType===eN.IKO.paymentMethodType.INTERNAL_CREDIT_SALES},[w.business.paymentMethodType]),j=(0,r.useMemo)(function(){return w.business.paymentMethodType===eN.IKO.paymentMethodType.CREDIT_CARD||w.business.paymentMethodType===eN.IKO.paymentMethodType.QUICK_PAY},[w.business.paymentMethodType]);return(0,r.useEffect)(function(){(w.business.paymentMethodType===eN.IKO.paymentMethodType.CREDIT_CARD||w.business.paymentMethodType===eN.IKO.paymentMethodType.QUICK_PAY)&&k()},[w.business.paymentMethodType]),(0,r.useEffect)(function(){P&&(g(R),I(f()))},[P,R]),(0,r.useEffect)(function(){return function(){return x()}},[]),{isUnbanDispatch:D,bannerList:O,priceInfo:a,loadingZoneState:c,waypointListLength:S,unloadingZoneState:u,scheduleState:p,selectVehicleType:N,selectVehicleTon:C,vehicleState:m,routeInfo:s,currentUser:w,iseCheckedCreditSales:E,isCheckedCreditCard:j,currentPaymentMethod:T,completeModal:function(){t()},closeModal:function(){e()}}};n(53888);var eA=function(e,t){var n=(0,i.Lq)(),a=n.priceInfo,s=(0,i.aK)(),d=s.waypoints,c=s.setWaypoint,u=s.setWaypoints,h=(0,i.Pl)(),f=(0,i.V8)(),g=(0,i.bU)(),x=(0,i.bW)(),v=(0,i.sO)(),T=(0,ej.t)(),I=T.selectedPaymentMethod,N=T.setPaymentMethods,C=(0,o._)((0,r.useState)(null),2),S=C[0],O=C[1],w=D({queryKey:"OrderCashOnDeliveryTypeSelector",paymentTypeFields:v}).estimatePriceInfo,_=(0,eM.xo)(),P=_.isSuccess,R=_.data,k=_.refetch,E=x.selectedVehicleType(),j=x.selectedVehicleTon(),M=d.length,L=(0,b.Fx)().dispatchBannerListInfoModel.bannerList,A=l.Z.getCurrentUserFromStorage(),F=x.dispatchMethodType===y.dS.UNBAN,W=(0,r.useMemo)(function(){return M>0&&v.orderPaymentMethodType!==eN.UEQ.orderPaymentMethodType.CASH_ON_DELIVERY},[M,v.orderPaymentMethodType]),V=(0,r.useMemo)(function(){return v.orderPaymentMethodType===eN.UEQ.orderPaymentMethodType.CREDIT_SALES},[v.orderPaymentMethodType]),B=(0,r.useMemo)(function(){return v.orderPaymentMethodType===eN.UEQ.orderPaymentMethodType.CREDIT_CARD},[v.orderPaymentMethodType]),U=(0,r.useMemo)(function(){return v.orderPaymentMethodType===eN.UEQ.orderPaymentMethodType.CASH_ON_DELIVERY},[v.orderPaymentMethodType]);return(0,r.useEffect)(function(){P&&(N(R),O(I()))},[P,R]),(0,r.useEffect)(function(){(A.business.paymentMethodType===eN.IKO.paymentMethodType.CREDIT_CARD||A.business.paymentMethodType===eN.IKO.paymentMethodType.QUICK_PAY)&&k()},[A.business.paymentMethodType]),(0,r.useEffect)(function(){w()},[v.orderPaymentMethodType]),(0,r.useEffect)(function(){w()},[h,f,d]),(0,r.useEffect)(function(){var e=A.business.paymentMethodType;e===eN.IKO.paymentMethodType.INTERNAL_CREDIT_SALES&&(e=eN.IKO.paymentMethodType.CREDIT_SALES),e===eN.IKO.paymentMethodType.QUICK_PAY&&(e=eN.IKO.paymentMethodType.CREDIT_CARD),v.setOrderPaymentMethodType(e)},[A.business.paymentMethodType]),(0,r.useEffect)(function(){return(0===M||n.currentOrderType===y.RX.ROUND_TRIP)&&f.isCashOnDelivery&&v.setOrderPaymentMethodType(eN.UEQ.orderPaymentMethodType.CASH_ON_DELIVERY),function(){return v.reset()}},[]),{isUnbanDispatch:F,bannerList:L,priceInfo:a,loadingZoneState:h,waypoints:d,setWaypoint:c,waypointListLength:M,unloadingZoneState:f,scheduleState:g,paymentTypeState:v,selectVehicleType:E,selectVehicleTon:j,vehicleState:x,orderState:n,currentUser:A,currentPaymentMethod:S,iseCheckedCreditSales:V,isCheckedCreditCard:B,isCheckedCashOnDelivery:U,isShowCashOnDeliveryChecked:W,completeModal:function(){t()},closeModal:function(){n.setPriceInfo(a),e()},handleOrderPaymentMethodType:function(e){M>
10&&u(d.map(function(e){return(0,m._)((0,p._)({},e),{isCashOnDelivery:!1})})),f.updateState({isCashOnDelivery:!1}),v.setOrderPaymentMethodType(e),v.resetOrderOptionCashOnDeliveryTypes()}}}},51763:function(e,t,n){n.d(t,{A3:function(){return y.A3},EY:function(){return u.Z},Gr:function(){return m.Z},H:function(){return h.Z},I$:function(){return v.I$},LJ:function(){return p.Z},Lj:function(){return s.Z},Lq:function(){return x.Lq},Nc:function(){return o.Z},Pl:function(){return x.Pl},SR:function(){return r.Z},Tn:function(){return c.Z},V8:function(){return x.V8},ZR:function(){return y.ZR},aK:function(){return x.aK},bW:function(){return x.bW},bz:function(){return i.Z},it:function(){return d.Z},iu:function(){return g.Z},o3:function(){return x.o3},py:function(){return T.py},qN:function(){return f.Z},w0:function(){return v.w0},wU:function(){return l.Z},yJ:function(){return a.Z}});var o=n(15114),r=n(67001),i=n(15510);n(34841),n(46936);var a=n(75416),s=n(59853),l=n(22722),d=n(62673),c=n(24345);n(75435);var u=n(6382);n(89579);var p=n(59218);n(45279);var m=n(46863),h=n(77246),f=n(20785),g=n(25530),y=n(29255),x=n(66947),v=n(18441),T=n(18191)},34437:function(e,t,n){var o,r;n.d(t,{I:function(){return o}}),(r=o||(o={})).mapsToPresentation=function(e){return e.map(function(e){return r.mapToPresentation(e)})},r.mapToPresentation=function(e){return{lng:e.lng,lat:e.lat}}},18191:function(e,t,n){n.d(t,{vw:function(){return z},lk:function(){return E},IR:function(){return j},tV:function(){return M},Db:function(){return el},xn:function(){return A},Eu:function(){return F},Vc:function(){return ef},$k:function(){return V},C9:function(){return B},py:function(){return eg}});var o,r,i,a,s,l,d,c,u,p,m,h,f,g,y,x,v,T,I,N,C,S,b,O,w,D,_,P,R,k,E,j,M,L,A,F,W,V,B,U,Z,G=n(81125),q=n(41609),K=n.n(q),$=n(85309),H=n(64337),Y=n(67698);(k||(k={})).mapToPresentation=function(e){var t,n,o=[],r=(0,(0,Y.aF)().getCurrentUser)().ownerWayPointCount;return e.data.forEach(function(e){switch(e.addressType){case $.egs.addressType.PICKUP:t={address:G.Qi.mapToPresentation(e.address,e.point),companyName:e.address.name,managerName:e.address.managerName,managerPhone:e.address.managerPhoneNumber,memo:e.address.addressMemo};break;case $.egs.addressType.DROP:n={address:G.Qi.mapToPresentation(e.address,e.point),companyName:e.address.name,managerName:e.address.managerName,managerPhone:e.address.managerPhoneNumber,memo:e.address.addressMemo};break;case $.egs.addressType.WAYPOINT:if(K()(o)&&(o=Array.from({length:r},function(){return H.P0.init()})),e.orderBy>o.length)break;o[e.orderBy-1].address=G.Qi.mapToPresentation(e.address,e.point),o[e.orderBy-1].companyName=e.address.name,o[e.orderBy-1].managerName=e.address.managerName,o[e.orderBy-1].managerPhone=e.address.managerPhoneNumber,o[e.orderBy-1].memo=e.address.addressMemo}}),{loadingZoneInfo:t,unloadingZoneInfo:n,waypointListInfo:o}};var z=k,Q=n(1859);(o=E||(E={})).mapsToPresentation=function(e){if(!e)return Q.cS.init();var t=e.map(function(e){return o.mapToPresentation({itemId:e.itemId,itemName:e.itemName})});return Q.cS.create({items:t})},o.mapToPresentation=function(e){return e?Q.Ce.create({itemId:e.itemId,itemName:e.itemName}):Q.Ce.init()};var J=n(18441);(j||(j={})).mapToRequest=function(e,t,n){var o,r,i,a,s,l,d,c,u,p,m={address:{name:e.companyName,managerName:e.managerName,managerPhoneNumber:e.managerPhone,zipCode:null===(o=e.address)||void 0===o?void 0:o.zipCode,address1:null===(r=e.address)||void 0===r?void 0:r.address1,address2:null===(i=e.address)||void 0===i?void 0:i.address2,roadAddress1:null===(a=e.address)||void 0===a?void 0:a.roadAddress1,roadAddress2:null===(s=e.address)||void 0===s?void 0:s.roadAddress2,detailAddress:null===(l=e.address)||void 0===l?void 0:l.detailAddress,addressMemo:e.memo},point:{lat:null===(c=e.address)||void 0===c?void 0:null===(d=c.point)||void 0===d?void 0:d.lat,lng:null===(p=e.address)||void 0===p?void 0:null===(u=p.point)||void 0===u?void 0:u.lng},isPickupBasicAddress:!1,isDropBasicAddress:!1,isWaypointBasicAddress:!1,orderBy:null!==n?n+1:null};if(e.isBasicAddress)switch(t){case J.BI.LOADING_ZONE:m.isPickupBasicAddress=!0;break;case J.BI.UNLOADING_ZONE:m.isDropBasicAddress=!0;break;case J.BI.WAYPOINT_ZONE:m.isWaypointBasicAddress=!0}return m};var X=n(72253),ee=n(14932),et=n(27484),en=n.n(et),eo=n(45220),er=n.n(eo),ei=n(50102),ea=n(60486),es=n(17351);
1r=M||(M={}),i=es.Z.getCurrentUserFromStorage(),r.mapToRequest=function(e){var t,n,o,r=e.order,f=e.loadingZone,g=e.unloadingZone,y=e.waypoints,x=e.schedule,v=e.vehicle,T=e.cargo,I=e.paymentType,N=e.isMixedCargo,C=e.mixCargoTonTypeOption,S=e.isFursys,b=(0,ee._)((0,X._)({isFursys:S,priceId:null===(t=T.priceGroup)||void 0===t?void 0:t.id,trackingId:r.trackingId,fromPoint:null===(n=f.address)||void 0===n?void 0:n.point,toPoint:null===(o=g.address)||void 0===o?void 0:o.point,fromAddress:a(f,r.isOrderTypeRoundTrip()),toAddress:a(g,!0),pickupRequestAt:s(x.loadingDate),dropRequestAt:s(x.unloadingDate),returnRequestAt:r.isOrderTypeRoundTrip()?s(x.loadingReturnDate):null,requestCar:l(v),orderItems:d(T),orderOptionItemTypes:c(T),pickupMethod:ei.B.methodToRequestParam(v.loadingMethod),dropMethod:ei.B.methodToRequestParam(v.unloadingMethod),isMultiOrder:N,multiOrderCarTonTypeOption:$.UEQ.multiOrderCarTonTypeOption[C],wayPointDtos:u(y),isRecommendedRouteUsed:!1,isRound:r.isOrderTypeRoundTrip(),businessSettlementGroupId:x.settlementGroupId,businessSettlementGroupMemo:x.settlementMemo,freightType:v.isDarmasOrLabor()||v.isMotorcycle()?$.UEQ.freightType.QUICK_FREIGHT:x.fareType,ioBoundType:x.warehousingType,dispatchMethod:v.dispatchMethodType,businessDirectOperatedCarId:v.directVehicleInfo.businessDirectOperatedCarId},h(I)),{couponId:r.couponId,openapiOrderKey:T.openapiOrderKey,orderFixedFee:r.orderFixedFee,ownerFreightSelectionType:r.ownerFreightSelectionType,milkrunOrderDto:null});if(i.isMilkrunNaverOwner){var O={boxAmount:0,confirmBoxAmount:T.confirmBoxCount,isFulfillment:!1,palletAmount:T.totalCount};b.priceId=i.getMilkrunNaverPriceId,b.milkrunOrderDto=O}return(0,X._)({},b,p(x,v),m(x))},a=function(e,t){var n,o,r,i,a,s,l=es.Z.getCurrentUserFromStorage().isHanssem,d={name:e.companyName,zipCode:null===(n=e.address)||void 0===n?void 0:n.zipCode,address1:null===(o=e.address)||void 0===o?void 0:o.address1,address2:null===(r=e.address)||void 0===r?void 0:r.address2,roadAddress1:null===(i=e.address)||void 0===i?void 0:i.roadAddress1,roadAddress2:null===(a=e.address)||void 0===a?void 0:a.roadAddress2,detailAddress:null===(s=e.address)||void 0===s?void 0:s.detailAddress,managerName:e.managerName,managerPhoneNumber:e.managerPhone,addressMemo:e.memo,isRecall:e.isRecall};return l&&t?(0,ee._)((0,X._)({},d),{locationOption:{cashOnDelivery:e.isCashOnDelivery,liftedTask:$.K11.liftedTask[e.liftingWork],orderItemType:$.K11.orderItemType[e.itemType],palletIds:e.palletNo,partnerOrderId:e.hanssemOrderNo,tileBox:$.K11.tileBox[e.tileBox]}}):d},s=function(e){return e?en()(e).format():null},l=function(e){var t,n,o,r,i,a,s;return{type:$.t$Z.type[e.selectedVehicleType()],ton:$.t$Z.ton[null===(t=e.selectedVehicleTon())||void 0===t?void 0:t.key],isStowageBackOpen:(null===(n=e.theUnbanVehicleInfo)||void 0===n?void 0:n.loadingBox.isOpenBack)||!1,isStowageRightOpen:(null===(o=e.theUnbanVehicleInfo)||void 0===o?void 0:o.loadingBox.isOpenRight)||!1,isStowageLeftOpen:(null===(r=e.theUnbanVehicleInfo)||void 0===r?void 0:r.loadingBox.isOpenLeft)||!1,isLifted:(null===(i=e.theUnbanVehicleInfo)||void 0===i?void 0:i.isLifted)||!1,isNonVibrating:e.theUnbanVehicleInfo.isNonVibrating||!1,isRisingWing:e.theUnbanVehicleInfo.isRisingWing||!1,isFrozenTemp:e.theUnbanVehicleInfo.isFrozenTemp||!1,isRefrigeratedTemp:e.theUnbanVehicleInfo.isRefrigeratedTemp||!1,isRoomTemp:e.theUnbanVehicleInfo.isRoomTemp||!1,isLongLength:e.theUnbanVehicleInfo.isLongLength||!1,number:null===(a=e.theUnbanVehicleInfo)||void 0===a?void 0:a.dispatchCount,dispatchInterval:$.t$Z.dispatchInterval[null===(s=e.theUnbanVehicleInfo)||void 0===s?void 0:s.dispatchInterval]}},d=function(e){var t,n,o,r;return[{itemName:e.cargoItem.itemName,itemId:e.cargoItem.itemId,price:e.price?Number(e.price):null,itemPacking:{method:$.VKo.method[e.packingMethod],quantity:null===(t=e.totalCount)||void 0===t?void 0:t.toString(),totalWeight:(0,ea.BP)(e.totalWeight),width:null===(n=e.packingSize.width)||void 0===n?void 0:n.toString(),length:null===(o=e.packingSize.length)||void 0===o?void 0:o.toString(),height:null===(r=e.packingSize.height)||void 0===r?void 0:r.toString(),cbm:e.packingSize.cbm}}]},c=function(e){return e.cargoItem.orderOptionItemTypes},u=function(e){return e.map(function(e,t){return{address:a(e,!0),orderBy:t+1,point:{lat:e.address.point.lat,lng:e.address.point.lng}
1,type:e.waypointType,waypointRequestAt:s(e.isIgnoreArriveDate?null:e.departureDateTime)}})},p=function(e,t){var n={};return(e.fareType===$.UEQ.freightType.QUICK_FREIGHT||t.isDarmasOrLabor())&&(n={quickTonType:$.UEQ.quickTonType[t.selectedVehicleType()]}),n},m=function(e){var t={};return er()(e.warehousingType)||(t={ioBoundCenterCode:e.warehousingCenterCode,ioBoundDetailCode:e.warehousingCenterGroupCode,ioBoundMemo:e.warehousingMemo}),t},h=function(e){var t=null==e?void 0:e.orderPaymentMethodType,n=null==e?void 0:e.orderOptionCashOnDeliveryTypes;return(null==e?void 0:e.orderPaymentMethodType)!==$.s5t.orderPaymentMethodType.CASH_ON_DELIVERY&&(t=void 0),{orderPaymentMethodType:t,orderOptionCashOnDeliveryTypes:K()(n)?void 0:n}},(L||(L={})).mapsToPresentation=function(e){var t=null==e?void 0:e.data;return t?t.map(function(e){return{key:e.businessDirectOperatedCarId,value:"".concat(e.plateNumber," / ").concat(e.carTypeValue," / ").concat(e.carTonTypeValue," / ").concat(e.phoneNumber?e.phoneNumber:"-"),info:{businessDirectOperatedCarId:e.businessDirectOperatedCarId,plateNumber:e.plateNumber,phoneNumber:e.phoneNumber,driverName:e.driverName,vehicleTon:{key:e.carTonType,value:e.carTonTypeValue},vehicleType:e.carType}}}):[]};var el=L,ed=n(15448),ec=n(37072),eu=n(18446),ep=n.n(eu);f=A||(A={}),g=es.Z.getCurrentUserFromStorage(),f.mapToRequest=function(e){var t,n=e.orderState,o=e.loadingZoneState,r=e.unloadingZoneState,i=e.waypointListState,a=e.scheduleState,s=e.vehicleState,l=e.cargoState,d=e.paymentTypeState,c=es.Z.getCurrentUserFromStorage(),u=c.isFursysGroup,p=c.isHanssem,m=ep()(s.vehicleInfo.vehicleType,ed.PV.DARMAS)||ep()(s.vehicleInfo.vehicleType,ed.PV.LABOR)||ep()(s.vehicleInfo.vehicleType,ed.PV.MOTORCYCLE),h=d.orderPaymentMethodType===$.s5t.orderPaymentMethodType.CASH_ON_DELIVERY,f=(0,ee._)((0,X._)({couponId:n.couponId||null},b(n.routeInfo),x(o,h,p),v(r,h,p),T(i,h,p),I(a),N(s),em(d)),{orderItems:C(l),orderOptionItemTypes:S(l),trackingId:n.trackingId,isFursys:u,isRound:n.isOrderTypeRoundTrip(),priceId:null===(t=l.priceGroup)||void 0===t?void 0:t.id,freightType:m?$.UEQ.freightType.QUICK_FREIGHT:a.fareType,quickTonType:m?$.s5t.quickTonType[s.vehicleInfo.vehicleType]:null});if(g.isMilkrunNaverOwner){var y={boxAmount:0,confirmBoxAmount:l.confirmBoxCount,isFulfillment:!1,palletAmount:l.totalCount};f.priceId=g.getMilkrunNaverPriceId,f.milkrunOrderDto=y}return f.orderFixedFee=n.orderFixedFee,f.ownerFreightSelectionType=n.ownerFreightSelectionType,f},y=function(e){var t,n,o,r,i,a,s=e.zoneState,l=e.isCheckRoundTripCashOnDelivery,d=e.isHanssem,c={name:s.companyName,managerName:s.managerName,managerPhoneNumber:s.managerPhone,addressMemo:s.memo,address1:null===(t=s.address)||void 0===t?void 0:t.address1,address2:null===(n=s.address)||void 0===n?void 0:n.address2,roadAddress1:null===(o=s.address)||void 0===o?void 0:o.roadAddress1,roadAddress2:null===(r=s.address)||void 0===r?void 0:r.roadAddress2,detailAddress:null===(i=s.address)||void 0===i?void 0:i.detailAddress,zipCode:null===(a=s.address)||void 0===a?void 0:a.zipCode,isRecall:s.isRecall};return d?(0,ee._)((0,X._)({},c),{locationOption:{cashOnDelivery:!!l||s.isCashOnDelivery,liftedTask:$.K11.liftedTask[s.liftingWork],orderItemType:$.K11.orderItemType[s.itemType],palletIds:s.palletNo,partnerOrderId:s.hanssemOrderNo,tileBox:$.K11.tileBox[s.tileBox]}}):c},x=function(e,t,n){var o;return{fromAddress:y({zoneState:e,isCheckRoundTripCashOnDelivery:t,isHanssem:n}),fromPoint:null===(o=e.address)||void 0===o?void 0:o.point}},v=function(e,t,n){var o;return{toAddress:y({zoneState:e,isCheckRoundTripCashOnDelivery:t,isHanssem:n}),toPoint:null===(o=e.address)||void 0===o?void 0:o.point}},T=function(e,t,n){return{isWaypoint:!K()(e.waypoints),wayPointDtos:e.waypoints.map(function(e){var t;return null===(t=e.address)||void 0===t?void 0:t.point}),orderWayPointDtos:e.waypoints.map(function(e,o){var r;return{id:e.id,address:y({zoneState:e,isCheckRoundTripCashOnDelivery:t,isHanssem:n}),orderBy:o+1,point:null===(r=e.address)||void 0===r?void 0:r.point,type:e.waypointType,waypointRequestAt:e.isIgnoreArriveDate?null:en()(e.departureDateTime).format()}})}},I=function(e){return{pickupRequestAt:e.loadingDate?en()(null==e?void 0:e.loadingDate).format("YYYY-MM-DDTHH:mm:00+09:00"):null,dropRequestAt:e.unloadingDate?en()(null==e?void 0:e.unloadingDate).format("YYYY-MM-DDTHH:mm:00+09:00"):null,businessSettlementGroupId:e.settlementGroupId}},N=function(e){var t,n={type:$.t$Z.type[e.vehicleInfo.vehicleType],ton:$.t$Z.ton[null===(t=e.vehicleInfo.vehicleTon)||void 0===t?void 0:t.key]};return ep()(e.dispatchMethodType,ec.dS.UNBAN)&&(n.isLifted=e.vehicleInfo.isLifted||!1,n.isStowageBackOpen=e.vehicleInfo.loadingBox.isOpenBack||!1,n.isStowageRightOpen=e.vehicleInfo.loadingBox.isOpenRight||!1,n.isStowageLeftOpen=e.vehicleInfo.loadingBox.isOpenLeft||!1,n.isNonVibrating=e.vehicleInfo.isNonVibrating||!1,n.isRisingWing=e.vehicleInfo.isRisingWing||!1,n.isFrozenTemp=e.vehicleInfo.isFrozenTemp||!1,n.isRefrigeratedTemp=e.vehicleInfo.isRefrigeratedTemp||!1,n.isRoomTemp=e.vehicleInfo.isRoomTemp||!1,n.isLongLength=e.vehicleInfo.isLongLength||!1,n.number=Number(e.vehicleInfo.dispatchCount),n.dispatchInterval=$.t$Z.dispatchInterval[e.vehicleInfo.dispatchInterval]),{requestCar:n,dispatchMethod:$.s5t.dispatchMethod[e.dispatchMethodType],pickupMethod:ei.B.methodToRequestParam(e.loadingMethod),dropMethod:ei.B.methodToRequestParam(e.unloadingMethod)}},C=function(e){var t,n,o,r;return[{itemId:e.cargoItem.itemId,itemName:e.cargoItem.itemName,itemPacking:{method:$.VKo.method[e.packingMethod],quantity:null===(t=e.totalCount)||void 0===t?void 0:t.toString(),totalWeight:(0,ea.BP)(e.totalWeight),width:null===(n=e.packingSize.width)||void 0===n?void 0:n.toString(),length:null===(o=e.packingSize.length)||void 0===o?void 0:o.toString(),height:null===(r=e.packingSize.height)||void 0===r?void 0:r.toString(),cbm:e.packingSize.cbm},price:Number(e.price)}]},S=function(e){return e.cargoItem.orderOptionItemTypes},b=function(e){return{oneWayDistance:e.oneWayDistance,returnDistance:e.returnDistance,totalDistance:e.estimateDistance,waypointDistance:e.waypointDistance,tollFee:e.tollFee}};var em=function(e){var t=null==e?void 0:e.orderPaymentMethodType,n=null==e?void 0:e.orderOptionCashOnDeliveryTypes;return(null==e?void 0:e.orderPaymentMethodType)!==$.s5t.orderPaymentMethodType.CASH_ON_DELIVERY&&(t=void 0),{orderPaymentMethodType:K()(t)?void 0:t,orderOptionCashOnDeliveryTypes:K()(n)?void 0:n}};O=F||(F={}),w=es.Z.getCurrentUserFromStorage().isMilkrunNaverOwner,O.mapToRequest=function(e){var t,n,o,r,i,a,s,l,d=e.orderState,c=e.loadingZoneState,u=e.unloadingZoneState,p=e.waypointListState,m=e.scheduleState,h={fromLng:null==c?void 0:null===(n=c.address)||void 0===n?void 0:null===(t=n.point)||void 0===t?void 0:t.lng,fromLat:null==c?void 0:null===(r=c.address)||void 0===r?void 0:null===(o=r.point)||void 0===o?void 0:o.lat,toLng:null==u?void 0:null===(a=u.address)||void 0===a?void 0:null===(i=a.point)||void 0===i?void 0:i.lng,toLat:null==u?void 0:null===(l=u.address)||void 0===l?void 0:null===(s=l.point)||void 0===s?void 0:s.lat,fromDate:m.loadingDate?en()(m.loadingDate).format():null,toDate:m.unloadingDate?en()(m.unloadingDate).format():null,isWaypoint:!K()(p.waypoints),isRound:d.isOrderTypeRoundTrip()},f=[];
1return p.waypoints.forEach(function(e){var t;(null==e?void 0:null===(t=e.address)||void 0===t?void 0:t.point)&&f.push({viaLat:e.address.point.lat,viaLng:e.address.point.lng})}),h.waypoints=f,w&&(h.isValidationSpendTime=!1),h};var eh=n(30806);(W||(W={})).mapToPresentation=function(e){return Q.s4.create({orderType:e.ownerOrderType,loadingZone:eh.S.mapToPresentation(e.fromAddress,e.fromPoint),unloadingZone:eh.S.mapToPresentation(e.toAddress,e.toPoint),waypoints:G.sT.mapsToPresentation(e.wayPointDtos),vehicleInfo:G.im.mapToPresentation(e.requestCar,e.dispatchMethod,e.pickupMethod,e.dropMethod),cargoItem:G.Dv.mapToPresentation(e.orderItems,e.orderOptionItemTypes,e.openapiOrderKey,e.milkrunOrderDto)})};var ef=W;(V||(V={})).mapToPresentation=function(e){return null==e?H.$u.init():H.$u.create({display:e.display,displayLcl:e.displayLcl,displayUnDiscount:e.displayUnDiscount,validCouponList:e.validCouponList,discountRate:e.discountRate,ownerPriceMax:e.ownerPriceMax,ownerPriceMin:e.ownerPriceMin,orderFixedFee:e.orderFixedFee,orderFixedFeeWithCoupon:e.orderFixedFeeWithCoupon,ownerFreightSelectionType:e.ownerFreightSelectionType,ownerBasePriceMax:e.ownerBasePriceMax,ownerBasePriceMin:e.ownerBasePriceMin,ownerExtraPrice:e.ownerExtraPrice})}
1,(B||(B={})).mapToPresentation=function(e){if(null==e)return H.WG.init();var t,n,o=null==e?void 0:null===(t=e.route)||void 0===t?void 0:t.data,r=(null==e?void 0:null===(n=e.roundRoute)||void 0===n?void 0:n.data)||null;if(er()(o))return H.WG.init();var i=o.spend_time,a=o.toll_fee;return null!==r&&(i+=r.spend_time,a+=r.toll_fee),H.WG.create({estimateDistance:e.totalDistance,oneWayDistance:e.oneWayDistance,returnDistance:e.roundDistance,waypointDistance:e.waypointDistance,spendTime:i,tollFee:a,paths:o.paths,roundPaths:null==r?void 0:r.paths})},(U||(U={})).mapToModel=function(e,t,n,o,r,i){return Q.s4.create({orderType:e.currentOrderType,loadingZone:D(t),unloadingZone:D(n),waypoints:R(o),vehicleInfo:_(r),cargoItem:P(i)})},D=function(e){return Q.AJ.create({companyName:e.companyName,address:Q.ws.create(e.address),managerName:e.managerName,managerPhone:e.managerPhone,memo:e.memo,palletNo:e.palletNo,hanssemOrderNo:e.hanssemOrderNo,itemType:e.itemType,isCashOnDelivery:e.isCashOnDelivery,liftingWork:e.liftingWork,tileBox:e.tileBox,isRecall:e.isRecall})},_=function(e){var t,n,o,r,i,a;return e.isStepCompleted()?Q.Tx.create({type:e.selectedVehicleType(),ton:null===(t=e.selectedVehicleTon())||void 0===t?void 0:t.key,isStowageBackOpen:null===(n=e.theUnbanVehicleInfo)||void 0===n?void 0:n.loadingBox.isOpenBack,isStowageRightOpen:null===(o=e.theUnbanVehicleInfo)||void 0===o?void 0:o.loadingBox.isOpenRight,isStowageLeftOpen:null===(r=e.theUnbanVehicleInfo)||void 0===r?void 0:r.loadingBox.isOpenLeft,isLifted:e.theUnbanVehicleInfo.isLifted,isFrozenTemp:e.theUnbanVehicleInfo.isFrozenTemp,isNonVibrating:e.theUnbanVehicleInfo.isNonVibrating,isRefrigeratedTemp:e.theUnbanVehicleInfo.isRefrigeratedTemp,isRisingWing:e.theUnbanVehicleInfo.isRisingWing,isRoomTemp:e.theUnbanVehicleInfo.isRoomTemp,isLongLength:e.theUnbanVehicleInfo.isLongLength,dispatchType:e.dispatchMethodType,dispatchNumber:null===(i=e.theUnbanVehicleInfo)||void 0===i?void 0:i.dispatchCount,dispatchInterval:null===(a=e.theUnbanVehicleInfo)||void 0===a?void 0:a.dispatchInterval,loadingMethod:ei.B.methodToRequestParam(e.loadingMethod).method,loadingHandworkRequest:ei.B.methodToRequestParam(e.loadingMethod).isWorkSupportRequest,unloadingMethod:ei.B.methodToRequestParam(e.unloadingMethod).method,unloadingHandworkRequest:ei.B.methodToRequestParam(e.unloadingMethod).isWorkSupportRequest}):null},P=function(e){var t,n,o,r;return e.isStepCompleted()?Q.Ce.create({itemId:e.cargoItem.itemId,itemName:e.cargoItem.itemName,ownerFavoritesOrderId:e.cargoItem.ownerFavoritesOrderId,ownerFavoritesOrderItemId:e.cargoItem.ownerFavoritesOrderItemId,itemPacking:{method:e.packingMethod,quantity:e.totalCount?Number(e.totalCount):null,totalWeight:e.totalWeight?Number((0,ea.BP)(e.totalWeight)):null,width:(null===(t=e.packingSize)||void 0===t?void 0:t.width)?Number(e.packingSize.width):null,length:(null===(n=e.packingSize)||void 0===n?void 0:n.length)?Number(e.packingSize.length):null,height:(null===(o=e.packingSize)||void 0===o?void 0:o.height)?Number(e.packingSize.height):null,cbm:null===(r=e.packingSize)||void 0===r?void 0:r.cbm},itemPrice:e.price,orderOptionItemTypes:e.cargoItem.orderOptionItemTypes,openapiOrderKey:e.openapiOrderKey}):null},R=function(e){return Q.wy.create({items:e.waypoints.map(function(e,t){return Q.P0.create((0,ee._)((0,X._)({},D(e)),{orderBy:t+1,type:e.waypointType,waypointRequestAt:e.departureDateTime?en()(e.departureDateTime).format():""}))})})};var eg=U;(Z||(Z={})).mapToPresentation=function(e){return{fromPoint:e.loadingZoneAddressPoint,toPoint:e.unloadingZoneAddressPoint,waypoints:e.waypointList.filter(function(e){var t;return null===(t=e.address)||void 0===t?void 0:t.point}).map(function(e,t){return{waypointPoint:e.address.point,orderBy:t}})}}},64337:function(e,t,n){n.d(t,{$u:function(){return a},WG:function(){return s},P0:function(){return l}}),(i=a||(a={})).create=function(e){return{display:(null==e?void 0:e.display)||"-",displayLcl:(null==e?void 0:e.displayLcl)||"-",formattedEstimatePrice:function(){return this.display||"-"},displayUnDiscount:(null==e?void 0:e.displayUnDiscount)||"-",validCouponList:(null==e?void 0:e.validCouponList)||{data:[],total:0},discountRate:Math.floor((null==e?void 0:e.discountRate)*100||0),ownerPriceMax:null==e?void 0:e.ownerPriceMax,ownerPriceMin:null==e?void 0:e.ownerPriceMin,orderFixedFee:null==e?void 0:e.orderFixedFee,orderFixedFeeWithCoupon:null==e?void 0:e.orderFixedFeeWithCoupon,ownerFreightSelectionType:null==e?void 0:e.ownerFreightSelectionType,ownerBasePriceMax:null==e?void 0:e.ownerBasePriceMax,ownerBasePriceMin:null==e?void 0:e.ownerBasePriceMin,ownerExtraPrice:null==e?void 0:e.ownerExtraPrice}},i.init=function(){return i.create()};var o,r,i,a,s,l,d=n(248),c=n(85790),u=n(5233);(o=s||(s={})).create=function(e){return{estimateDistance:null==e?void 0:e.estimateDistance,oneWayDistance:null==e?void 0:e.oneWayDistance,returnDistance:null==e?void 0:e.returnDistance,waypointDistance:null==e?void 0:e.waypointDistance,spendTime:null==e?void 0:e.spendTime,tollFee:null==e?void 0:e.tollFee,paths:null==e?void 0:e.paths,roundPaths:null==e?void 0:e.roundPaths,routePaths:function(){var e,t=null===(e=this.paths)||void 0===e?void 0:e.reduce(function(e,t){return(0,d._)(e).concat((0,d._)(t.coords))},[]);return null==t?void 0:t.map(function(e){return[e.x,e.y]})},roundRoutePaths:function(){var e,t=null===(e=this.roundPaths)||void 0===e?void 0:e.reduce(function(e,t){return(0,d._)(e).concat((0,d._)(t.coords))},[]);return null==t?void 0:t.map(function(e){return[e.x,e.y]})},formattedDuration:function(){return(0,c.pQ)(this.spendTime,{hours:u.ag.t("common:hours"),minutes:u.ag.t("common:minutes")})},formattedDistance:function(){return"".concat((0,c.HO)(this.estimateDistance),"km")},spendTimeInMinutes:function(){return this.spendTime>0?this.spendTime/60:0}}},o.init=function(){return o.create({estimateDistance:0,oneWayDistance:0,returnDistance:null,waypointDistance:0,spendTime:0,tollFee:0,paths:null,roundPaths:null})};var p=n(76271),m=n(27484),h=n.n(m),f=n(18446),g=n.n(f),y=n(18441),x=n(37072);(r=l||(l={})).create=function(e){return{id:(null==e?void 0:e.id)||(0,c.Vj)(),waypointType:(null==e?void 0:e.waypointType)||y.Mv.DESTINATION,departureDateTime:(null==e?void 0:e.departureDateTime)||p.g.ceilToNearest30(h()(new Date).add(30,"minutes").toDate()),address:(null==e?void 0:e.address)||null,companyName:(null==e?void 0:e.companyName)||"",managerName:(null==e?void 0:e.managerName)||"",managerPhone:(null==e?void 0:e.managerPhone)||"",memo:(null==e?void 0:e.memo)||"",stepStatus:(null==e?void 0:e.stepStatus)||y.ip.STATUS_NONE,isStepChanged:(null==e?void 0:e.isStepChanged)||!1,isIgnoreArriveDate:(null==e?void 0:e.isIgnoreArriveDate)||!0,palletNo:(null==e?void 0:e.palletNo)||"",hanssemOrderNo:(null==e?void 0:e.hanssemOrderNo)||"",itemType:(null==e?void 0:e.itemType)||x.Oy.SINGLE,isCashOnDelivery:(null==e?void 0:e.isCashOnDelivery)||!1,liftingWork:(null==e?void 0:e.liftingWork)||x.RP.NONE,tileBox:(null==e?void 0:e.tileBox)||null,setStepStatus:function(e){this.stepStatus=e},setIsStepChanged:function(e){this.isStepChanged=e},isStepCompleted:function(){return g()(this.stepStatus,y.ip.STATUS_COMPLETED)},updateState:function(e){return Object.assign(this,e)}}},r.init=function(){return r.create()}},67948:function(e,t,n){n.d(t,{uy:function(){return c},ll:function(){return p},in:function(){return d},kD:function(){return v},__:function(){return h},G3:function(){return g},Xt:function(){return x},V$:function(){return T}});var o=n(11010),r=n(97582),i=n(17342),a=n(87465),s=n(48228),l=n(67848),d=function(e){var t,n=(0,i.Z)().createAddressBookManagement,l=(t=(0,o._)(function(){var t,o;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return[4,n(e)];case 1:return[2,null==(o=r.sent())?void 0:null===(t=o.data)||void 0===t?void 0:t.result]}})}),function(){return t.apply(this,arguments)});return(0,s.D)([a.uk],l,{})},c=function(){var e,t=(0,i.Z)().getBasicAddressManagement,n=(e=(0,o._)(function(){var e,n;return(0,r.Jh)(this,function(o){switch(o.label){case 0:return[4,t()];case 1:return[2,null==(n=o.sent())?void 0:null===(e=n.data)||void 0===e?void 0:e.result]}})}),function(){return e.apply(this,arguments)});return(0,l.a)([a.qU],n)},u=n(71922),p=function(e){var t,n=(0,u.Z)().getOrderWord,i=(t=(0,o._)(function(){return(0,r.Jh)(this,function(t){switch(t.label){case 0:return[4,n(e)];case 1:return[2,t.sent().data.result]}})}),function(){return t.apply(this,arguments)});return(0,l.a)({queryKey:[a.hJ,e.word],queryFn:i,enabled:!!e.word,cacheTime:0,staleTime:0})},m=n(44883),h=function(e){var t,n=(0,m.Z)().getDirectCarList,i=(t=(0,o._)(function(){return(0,r.Jh)(this,function(t){switch(t.label){case 0:return[4,n(e)];case 1:return[2,t.sent().data.result]}})}),function(){return t.apply(this,arguments)});return(0,l.a)([a.yQ],i)},f=n(51763),g=function(e,t){var n,i=(0,f.Lq)().setEstimatePriceRequestPayload,s=(0,u.Z)().getEstimatePrice,d=(n=(0,o._)(function(){return(0,r.Jh)(this,function(t){switch(t.label){case 0:return i(e),[4,s(e)];case 1:return[2,t.sent().data.result]}})}),function(){return n.apply(this,arguments)});return(0,l.a)(["".concat(a.ZW,"-").concat(t)],d)},y=n(66927),x=function(e,t){var n,i=(0,y.Z)().getEstimateRouting,s=(n=(0,o._)(function(){return(0,r.Jh)(this,function(t){switch(t.label){case 0:return[4,i(e)];case 1:return[2,t.sent().data.result]}})}),function(){return n.apply(this,arguments)});return(0,l.a)(["".concat(a.L8,"-").concat(t)],s,{onError:void 0,onSettled:void 0})},v=function(){var e,t=(0,u.Z)().createOrder,n=(e=(0,o._)(function(e){return(0,r.Jh)(this,function(n){switch(n.label){case 0:return[4,t(e)];case 1:return[2,n.sent().data.result]}})}),function(t){return e.apply(this,arguments)});return(0,s.D)([a.PJ],n)},T=function(e){var t,n=(0,u.Z)().searchCopiedOrder,i=(t=(0,o._)(function(){var t,o;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return[4,n(e)];case 1:return[2,null==(o=r.sent())?void 0:null===(t=o.data)||void 0===t?void 0:t.result]}})}),function(){return t.apply(this,arguments)});return(0,l.a)([a.X0],i)}},50102:function(e,t,n){n.d(t,{x:function(){return s},B:function(){return p}});var o,r,i=n(96486),a=n.n(i);(o||(o={})).omit=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return a().omit(e,t)};var s=o,l=n(37072),d=n(18446),c=n.n(d),u=n(85309);(r||(r={})).methodToRequestParam=function(e){return c()(null==e?void 0:e.key,l.NI.DRIVER_HANDWORK)||c()(null==e?void 0:e.key,l.NI.OWNER_HANDWORK)?{method:u.Znf.method[l.NI.HANDWORK],isWorkSupportRequest:c()(null==e?void 0:e.key,l.NI.DRIVER_HANDWORK)}:{method:u.Znf.method[null==e?void 0:e.key],isWorkSupportRequest:!1}};var p=r},66947:function(e,t,n){n.d(t,{mW:function(){return u},gN:function(){return h},GM:function(){return x},zv:function(){return T},t9:function(){return I},PO:function(){return w},o3:function(){return p},Pl:function(){return f},Lq:function(){return v},sO:function(){return E},bU:function(){return N},V8:function(){return S},bW:function(){return D},aK:function(){return R}});var o=n(72253),r=n(14932),i=n(39260),a=n(85790),s=n(18446),l=n.n(s),d=n(64529),c=n(18441),u={stepStatus:c.ip.STATUS_NONE,isStepChanged:!1,cargoItem:{itemId:"",itemName:"",orderOptionItemTypes:[]},packingMethod:null,totalWeight:"",totalCount:null,isShowChipTooltip:!0,packingSize:{cbm:null,width:null,height:null,length:null},price:0,priceGroup:{type:null,id:null},isNamYangWater:!1,openapiOrderKey:"",confirmBoxCount:null},p=(0,d.Ue)()((0,a.zq)(function(e,t){return(0,r._)((0,o._)({},u),{setIsStepChanged:function(t){e({isStepChanged:t})},isStepCompleted:function(){return l()(t().stepStatus,c.ip.STATUS_COMPLETED)}
1,setStepStatus:function(t){e({stepStatus:t})},updateState:function(t){e(t)},setIsShowChipTooltip:function(t){return e({isShowChipTooltip:t})},setIsNamYangWater:function(t){return e({isNamYangWater:t})},reset:function(){e((0,o._)({},u))}})},{name:i.wD})),m=n(37072),h={stepStatus:c.ip.STATUS_NONE,isStepChanged:!1,address:null,companyName:"",managerName:"",managerPhone:"",memo:"",palletNo:"",hanssemOrderNo:"",itemType:m.Oy.SINGLE,isCashOnDelivery:!1,liftingWork:m.RP.NONE,tileBox:null,isRecall:!1},f=(0,d.Ue)()((0,a.zq)(function(e,t){return(0,r._)((0,o._)({},h),{isStepCompleted:function(){return l()(t().stepStatus,c.ip.STATUS_COMPLETED)},setStepStatus:function(t){e({stepStatus:t})},setIsStepChanged:function(t){e({isStepChanged:t})},updateState:function(t){e(t)},reset:function(){e((0,o._)({},h))}})},{name:i.GI})),g=n(64337),y=n(85309),x={trackingId:(0,a.Vj)(),isMixOrder:!1,currentStep:c.I$.STEP_LOADING,currentOrderType:m.RX.SINGLE,currentWayPointIndex:null,importOrderInfo:null,routeInfo:g.WG.init(),recommendRouteInfo:g.WG.init(),priceInfo:null,errorEstimateRouteInfo:null,errorEstimatePriceInfo:null,orderCategory:c.w0.NEW,orderId:null,orderName:"",orderNameValidated:!1,isShowRouteMap:!1,couponId:null,estimatePriceRequestPayload:null,discountSummary:"",orderFixedFee:null,ownerFreightSelectionType:y.s5t.ownerFreightSelectionType.AI_RANGE_FREIGHT,orderFixedFeeWithCoupon:null,inputOrderFixedFee:null,isOrderValidation:!0,displayOrderFixedFee:null,ownerBasePriceMax:null,ownerBasePriceMin:null,ownerExtraPrice:null},v=(0,d.Ue)()((0,a.zq)(function(e,t){return(0,r._)((0,o._)({},x),{isOrderTypeRoundTrip:function(){return l()(t().currentOrderType,m.RX.ROUND_TRIP)},isCurrentStepWithIndex:function(e,n){return l()(t().currentStep,e)&&l()(t().currentWayPointIndex,n)},isFavoriteOrder:function(){return t().orderCategory===c.w0.FAVORITES},setCurrentStep:function(t){e({currentStep:t})},setCurrentWayPointIndex:function(t){e({currentWayPointIndex:t})},setCurrentOrderType:function(t){e({currentOrderType:t})},setRouteInfo:function(t){e({routeInfo:t})},setPriceInfo:function(t){e({priceInfo:t})},resetPriceInfo:function(){e({priceInfo:x.priceInfo})},setErrorEstimateRouteInfo:function(t){e({errorEstimateRouteInfo:t})},setErrorEstimatePriceInfo:function(t){e({errorEstimatePriceInfo:t})},setRecommendRouteInfo:function(t){e({recommendRouteInfo:t})},setIsMixOrder:function(t){e({isMixOrder:t})},setIsShowRouteMap:function(t){e({isShowRouteMap:t})},updateState:function(t){e(t)},setCouponId:function(t){e({couponId:t})},setDiscountSummary:function(t){e({discountSummary:t})},setEstimatePriceRequestPayload:function(t){e({estimatePriceRequestPayload:t})},setOrderFixedFee:function(t){e({orderFixedFee:t})},setOwnerFreightSelectionType:function(t){e({ownerFreightSelectionType:t})},setOrderFixedFeeWithCoupon:function(t){e({orderFixedFeeWithCoupon:t})},setInputOrderFixedFee:function(t){e({inputOrderFixedFee:t})},setIsOrderValidation:function(t){e({isOrderValidation:t})},setDisplayOrderFixedFee:function(t){e({displayOrderFixedFee:t})},setOwnerBasePriceMin:function(t){e({ownerBasePriceMin:t})},setOwnerBasePriceMax:function(t){e({ownerBasePriceMax:t})},setOwnerExtraPrice:function(t){e({ownerExtraPrice:t})},reset:function(){e((0,r._)((0,o._)({},x),{trackingId:(0,a.Vj)(),routeInfo:g.WG.init(),recommendRouteInfo:g.WG.init()}))}})},{name:i.N_})),T={loadingDate:null,loadingReturnDate:null,unloadingDate:null},I=(0,r._)((0,o._)({},T),{stepStatus:c.ip.STATUS_NONE,isStepChanged:!1,settlementGroupId:null,fareType:m.NY.NORMAL_FREIGHT,settlementMemo:"",warehousingType:null,warehousingCenterCode:null,warehousingCenterGroupCode:null,warehousingMemo:""}),N=(0,d.Ue)()((0,a.zq)(function(e,t){return(0,r._)((0,o._)({},I),{isStepCompleted:function(){return l()(t().stepStatus,c.ip.STATUS_COMPLETED)},setStepStatus:function(t){e({stepStatus:t})},setIsStepChanged:function(t){e({isStepChanged:t})},updateState:function(t){e(t)},resetDateTime:function(){e({stepStatus:I.stepStatus,loadingDate:I.loadingDate,loadingReturnDate:I.loadingReturnDate,unloadingDate:I.unloadingDate})},reset:function(){e((0,o._)({},I))}})},{name:i.pw})),C={stepStatus:c.ip.STATUS_NONE,isStepChanged:!1,address:null,companyName:"",managerName:"",managerPhone:"",memo:"",palletNo:"",hanssemOrderNo:"",itemType:m.Oy.SINGLE,isCashOnDelivery:!1,liftingWork:m.RP.NONE,tileBox:null},S=(0,d.Ue)()((0,a.zq)(function(e,t){return(0,r._)((0,o._)({},C),{isStepCompleted:function(){return l()(t().stepStatus,c.ip.STATUS_COMPLETED)}
1,setStepStatus:function(t){e({stepStatus:t})},setIsStepChanged:function(t){e({isStepChanged:t})},updateState:function(t){e(t)},reset:function(){e((0,o._)({},C))}})},{name:i.Gp})),b=n(25980),O=n(15448),w={dispatchMethodType:m.dS.UNBAN,stepStatus:c.ip.STATUS_NONE,isStepChanged:!1,loadingMethod:null,unloadingMethod:null,isShowChipTooltip:!0,theUnbanVehicleInfo:{vehicleType:null,vehicleTon:{key:"",value:""},loadingBox:{isOpenBack:!1,isOpenLeft:!1,isOpenRight:!1},isLifted:!1,isNonVibrating:!1,isRisingWing:!1,isFrozenTemp:!1,isRefrigeratedTemp:!1,isRoomTemp:!1,isLongLength:!1,dispatchCount:1,dispatchInterval:b.Q.INTERVAL0},directVehicleInfo:{businessDirectOperatedCarId:"",plateNumber:"",phoneNumber:"",driverName:"",vehicleTon:{key:"",value:""},vehicleType:null}},D=(0,d.Ue)()((0,a.zq)(function(e,t){return(0,r._)((0,o._)({},w),{isStepCompleted:function(){return l()(t().stepStatus,c.ip.STATUS_COMPLETED)},setStepStatus:function(t){e({stepStatus:t})},setIsStepChanged:function(t){e({isStepChanged:t})},setTheUnbanVehicleInfo:function(t){e({loadingMethod:t.loadingMethod,unloadingMethod:t.unloadingMethod,theUnbanVehicleInfo:t.theUnbanVehicleInfo,directVehicleInfo:w.directVehicleInfo,dispatchMethodType:m.dS.UNBAN,stepStatus:c.ip.STATUS_COMPLETED})},setDirectVehicleInfo:function(t){e({loadingMethod:t.loadingMethod,unloadingMethod:t.unloadingMethod,directVehicleInfo:t.directVehicleInfo,theUnbanVehicleInfo:w.theUnbanVehicleInfo,dispatchMethodType:m.dS.DIRECT,stepStatus:c.ip.STATUS_COMPLETED})},setVehicleType:function(n){e({theUnbanVehicleInfo:(0,r._)((0,o._)({},t().theUnbanVehicleInfo),{vehicleType:n})})},setVehicleTon:function(n){e({theUnbanVehicleInfo:(0,r._)((0,o._)({},t().theUnbanVehicleInfo),{vehicleTon:n})})},setLoadingMethod:function(t){e({loadingMethod:t})},setUnloadingMethod:function(t){e({unloadingMethod:t})},selectedVehicleInfo:function(){return l()(t().dispatchMethodType,m.dS.UNBAN)?t().theUnbanVehicleInfo:t().directVehicleInfo},selectedVehicleType:function(){return l()(t().dispatchMethodType,m.dS.UNBAN)?t().theUnbanVehicleInfo.vehicleType:t().directVehicleInfo.vehicleType},selectedVehicleTon:function(){return l()(t().dispatchMethodType,m.dS.UNBAN)?t().theUnbanVehicleInfo.vehicleTon:t().directVehicleInfo.vehicleTon},updateState:function(t){e(t)},isDarmasOrLabor:function(){return t().selectedVehicleType()===O.PV.LABOR||t().selectedVehicleType()===O.PV.DARMAS},isMotorcycle:function(){return t().selectedVehicleType()===O.PV.MOTORCYCLE},setIsShowChipTooltip:function(t){return e({isShowChipTooltip:t})},reset:function(){e((0,o._)({},w))}})},{name:i.bF})),_=n(248),P={waypoints:[],validationFailedWaypoint:null,basicWaypointAddressList:[]},R=(0,d.Ue)()((0,a.zq)(function(e,t){return(0,r._)((0,o._)({},P),{isWaypointListCompleted:function(){return t().waypoints.every(function(e){return e.isStepCompleted()})},setWaypoints:function(t){e({waypoints:t})},setWaypoint:function(n,r){e({waypoints:t().waypoints.map(function(e){return e.id===n?(0,o._)({},e,r):e})})},addWaypoint:function(){var n=t().waypoints,o=g.P0.init();e({waypoints:(0,_._)(n).concat([o])})},removeWaypoint:function(t){e(function(e){return{waypoints:e.waypoints.filter(function(e){return e.id!==t})}})},moveUpWaypointItem:function(n){var o=t().waypoints,r=o.findIndex(function(e){return e.id===n});if(0!==r){var i=o[r-1];o[r-1]=o[r],o[r]=i,e({waypoints:o})}},moveDownWaypointItem:function(n){var o=t().waypoints,r=o.findIndex(function(e){return e.id===n});if(r!==o.length-1){var i=o[r+1];o[r+1]=o[r],o[r]=i,e({waypoints:o})}},currentWaypoint:function(e){return t().waypoints[e]},setValidationFailedWaypoint:function(t){e({validationFailedWaypoint:t})},setBasicWaypointAddressList:function(t){e({basicWaypointAddressList:t})},reset:function(){e((0,o._)({},P))}})},{name:i.gg})),k={orderPaymentMethodType:null,orderOptionCashOnDeliveryTypes:[]},E=(0,d.Ue)()((0,a.zq)(function(e,t){return(0,r._)((0,o._)({},k),{setOrderPaymentMethodType:function(t){e({orderPaymentMethodType:t})},setOrderOptionCashOnDeliveryTypes:function(t){e({orderOptionCashOnDeliveryTypes:t})},resetOrderOptionCashOnDeliveryTypes:function(){e({orderOptionCashOnDeliveryTypes:[]})},reset:function(){e((0,o._)({},k))}})},{name:i.OZ}))},20419:function(e,t,n){n.d(t,{c:function(){return a}});var o,r=n(75766),i=n(15448),a=(o={},(0,r._)(o,i.oi.TON1_0,{min:1,max:1,label:"1톤"}),(0,r._)(o,i.oi.TON1_4,{min:1,max:1,label:"1.4톤"}),(0,r._)(o,i.oi.TON2_5,{min:1,max:2,label:"2.5톤"}),(0,r._)(o,i.oi.TON3_5,{min:1,max:3,label:"3.5톤"}),(0,r._)(o,i.oi.TON5_0,{min:1,max:5,label:"5톤"}),(0,r._)(o,i.oi.TON5_0_PLUS,{min:1,max:8,label:"5톤축"}),(0,r._)(o,i.oi.TON11_0,{min:1,max:10,label:"11톤"}),(0,r._)(o,i.oi.TON18_0,{min:1,max:16,label:"18톤"}),(0,r._)(o,i.oi.TON25_0,{min:1,max:18,label:"25톤"}),o)},18441:function(e,t,n){n.d(t,{gd:function(){return x},rZ:function(){return v},gU:function(){return o},Mv:function(){return a},Wd:function(){return s},iy:function(){return l},w0:function(){return d},EO:function(){return y},I$:function(){return c},ip:function(){return u},CQ:function(){return p},BI:function(){return m},SD:function(){return h},aD:function(){return f},c9:function(){return g}});var o={LOADING:"LOADING",UNLOADING:"UNLOADING",COMEBACK:"COMEBACK"},r=n(72253),i=n(85309),a=(0,r._)({},i.oW2.type),s={DEFAULT:"DEFAULT",MANY:"MANY"},l=5,d={NEW:"NEW",FAVORITES:"FAVORITES"},c={STEP_LOADING:"STEP_LOADING",STEP_WAYPOINT:"STEP_WAYPOINT",STEP_UNLOADING:"STEP_UNLOADING",STEP_SCHEDULE:"STEP_SCHEDULE",STEP_VEHICLE:"STEP_VEHICLE",STEP_CARGO:"STEP_CARGO"},u={STATUS_NONE:"STATUS_NONE",STATUS_COMPLETED:"STATUS_COMPLETED"},p=(0,r._)({},i.VKo.method),m={LOADING_ZONE:"loadingZone",UNLOADING_ZONE:"unloadingZone",WAYPOINT_ZONE:"waypointZone"},h=(0,r._)({},i.oW2.type),f={UP:"UP",DOWN:"DOWN"},g={LOADING:"loading",UNLOADING:"unloading",WAYPOINT:"waypoint"},y={DROP:"DROP",PICKUP:"PICKUP",RETURN:"RETURN",WAYPOINT:"WAYPOINT"},x=1,v=2},43395:function(e,t,n){n.d(t,{Q:function(){return o}});var o,r=n(1859);(o||(o={})).mapToPresentation=function(e,t){return r.ws.create({point:t,zipCode:e.zipCode,address1:e.address1,address2:e.address2,roadAddress1:e.roadAddress1,roadAddress2:e.roadAddress2,detailAddress:e.detailAddress})}},81125:function(e,t,n){n.d(t,{Qi:function(){return l.Q},Dv:function(){return i},im:function(){return a},sT:function(){return s}});var o,r,i,a,s,l=n(43395),d=n(41609),c=n.n(d),u=n(1859),p=n(60486);(o=i||(i={})).mapToPresentation=function(e,t,n,o){if(c()(e))return u.Ce.init();var r=e[0];return u.Ce.create({itemId:r.itemId,itemName:r.itemName,itemPacking:{method:r.itemPackingInfo.method,quantity:Number(r.itemPackingInfo.quantity),totalWeight:Number((0,p.BP)(r.itemPackingInfo.totalWeight)),width:Number(r.itemPackingInfo.width),length:Number(r.itemPackingInfo.length),height:Number(r.itemPackingInfo.height),cbm:r.itemPackingInfo.cbm},itemPrice:r.price,orderOptionItemTypes:t,openapiOrderKey:n,milkrunOrderDto:o})},o.mapToPresentationForFavoriteOrder=function(e,t,n,o){if(c()(e))return u.Ce.init();var r=e[0];return u.Ce.create({itemId:r.itemId,itemName:r.itemName,itemPacking:{method:r.itemPackingInfo.method,quantity:Number(r.itemPackingInfo.quantity),totalWeight:Number((0,p.BP)(r.itemPackingInfo.totalWeight)),width:Number(r.itemPackingInfo.width),length:Number(r.itemPackingInfo.length),height:Number(r.itemPackingInfo.height),cbm:r.itemPackingInfo.cbm},itemPrice:r.price,ownerFavoritesOrderId:null==r?void 0:r.ownerFavoritesOrderId,ownerFavoritesOrderItemId:null==r?void 0:r.ownerFavoritesOrderItemId,orderOptionItemTypes:t,openapiOrderKey:n,milkrunOrderDto:o})},(a||(a={})).mapToPresentation=function(e,t,n,o){return u.Tx.create({type:null==e?void 0:e.type,ton:null==e?void 0:e.ton,isLifted:null==e?void 0:e.isLifted,isFrozenTemp:null==e?void 0:e.isFrozenTemp,isNonVibrating:null==e?void 0:e.isNonVibrating,isRefrigeratedTemp:null==e?void 0:e.isRefrigeratedTemp,isRisingWing:null==e?void 0:e.isRisingWing,isRoomTemp:null==e?void 0:e.isRoomTemp,isLongLength:null==e?void 0:e.isLongLength,isStowageBackOpen:null==e?void 0:e.isStowageBackOpen,isStowageRightOpen:null==e?void 0:e.isStowageRightOpen,isStowageLeftOpen:null==e?void 0:e.isStowageLeftOpen,dispatchType:t,dispatchNumber:null==e?void 0:e.number,dis
1patchInterval:null==e?void 0:e.dispatchInterval,loadingMethod:null==n?void 0:n.method,loadingHandworkRequest:null==n?void 0:n.isWorkSupportRequest,unloadingMethod:null==o?void 0:o.method,unloadingHandworkRequest:null==o?void 0:o.isWorkSupportRequest})};var m=n(72253),h=n(14932),f=n(248),g=n(30806),y=n(17351);(r=s||(s={})).mapsToPresentation=function(e){var t=y.Z.getCurrentUserFromStorage().ownerWayPointCount,n=(0,f._)(e);return e.length>t&&(n=e.slice(0,t)),u.wy.create({items:n.map(function(e){return r.mapToPresentation(e)})})},r.mapToPresentation=function(e){var t,n,o,r,i,a;return u.P0.create((0,h._)((0,m._)({},g.S.mapToPresentation(e.address,e.point)),{memo:e.memo,orderBy:e.orderBy,type:e.type,waypointRequestAt:e.waypointRequestAt,palletNo:null===(t=e.address.locationOption)||void 0===t?void 0:t.palletIds,hanssemOrderNo:null===(n=e.address.locationOption)||void 0===n?void 0:n.partnerOrderId,itemType:null===(o=e.address.locationOption)||void 0===o?void 0:o.orderItemType,isCashOnDelivery:null===(r=e.address.locationOption)||void 0===r?void 0:r.cashOnDelivery,liftingWork:null===(i=e.address.locationOption)||void 0===i?void 0:i.liftedTask,tileBox:null===(a=e.address.locationOption)||void 0===a?void 0:a.tileBox}
1))}},30806:function(e,t,n){n.d(t,{S:function(){return o}});var o,r=n(45220),i=n.n(r),a=n(1859),s=n(43395);(o||(o={})).mapToPresentation=function(e,t){var n,o,r,l,d,c;return a.AJ.create({companyName:(null==e?void 0:e.name)||"",address:i()(e)?null:s.Q.mapToPresentation(e,t),managerName:(null==e?void 0:e.managerName)||"",managerPhone:(null==e?void 0:e.managerPhoneNumber)||"",memo:(null==e?void 0:e.addressMemo)||"",palletNo:null==e?void 0:null===(n=e.locationOption)||void 0===n?void 0:n.palletIds,hanssemOrderNo:null==e?void 0:null===(o=e.locationOption)||void 0===o?void 0:o.partnerOrderId,itemType:null==e?void 0:null===(r=e.locationOption)||void 0===r?void 0:r.orderItemType,isCashOnDelivery:null==e?void 0:null===(l=e.locationOption)||void 0===l?void 0:l.cashOnDelivery,liftingWork:null==e?void 0:null===(d=e.locationOption)||void 0===d?void 0:d.liftedTask,tileBox:null==e?void 0:null===(c=e.locationOption)||void 0===c?void 0:c.tileBox,isRecall:null==e?void 0:e.isRecall})}},1859:function(e,t,n){n.d(t,{ws:function(){return l},cS:function(){return d},Ce:function(){return c},AJ:function(){return u},s4:function(){return p},Tx:function(){return m},wy:function(){return h},P0:function(){return f}});var o,r,i,a,s,l,d,c,u,p,m,h,f,g=n(72253),y=n(14932);(l||(l={})).create=function(e){return(0,y._)((0,g._)({},e),{displayAddress1:function(){return this.roadAddress1||this.address1},fullAddress:function(){return"".concat(this.roadAddress1," ").concat(this.roadAddress2," ").concat(this.detailAddress)},summaryAddress:function(){return"".concat(this.roadAddress1," ").concat(this.detailAddress)}})},(o=d||(d={})).create=function(e){return{items:(null==e?void 0:e.items)||[]}},o.init=function(){return o.create()};var x=n(5233),v=n(60486);(r=c||(c={})).create=function(e){return{itemId:(null==e?void 0:e.itemId)||"",itemName:(null==e?void 0:e.itemName)||"",itemPacking:(null==e?void 0:e.itemPacking)||null,itemPrice:(null==e?void 0:e.itemPrice)||0,ownerFavoritesOrderId:(null==e?void 0:e.ownerFavoritesOrderId)||"",ownerFavoritesOrderItemId:(null==e?void 0:e.ownerFavoritesOrderItemId)||"",orderOptionItemTypes:(null==e?void 0:e.orderOptionItemTypes)||[],displayPackageCount:function(){var e,t=(null===(e=this.itemPacking)||void 0===e?void 0:e.quantity)?"".concat((0,v.Lg)(this.itemPacking.quantity)).concat(x.ag.t("order:common.count")):x.ag.t("order:cargoInfo.emptyCount");return"(".concat(t,")")},openapiOrderKey:(null==e?void 0:e.openapiOrderKey)||"",milkrunOrderDto:(null==e?void 0:e.milkrunOrderDto)||null}},r.init=function(){return r.create()};var T=n(37072);(u||(u={})).create=function(e){return{companyName:e.companyName,address:e.address,managerName:e.managerName,managerPhone:e.managerPhone,memo:e.memo||"",palletNo:e.palletNo||"",hanssemOrderNo:(null==e?void 0:e.hanssemOrderNo)||"",itemType:(null==e?void 0:e.itemType)||T.Oy.SINGLE,isCashOnDelivery:(null==e?void 0:e.isCashOnDelivery)||!1,liftingWork:(null==e?void 0:e.liftingWork)||T.RP.NONE,tileBox:(null==e?void 0:e.tileBox)||null,isRecall:(null==e?void 0:e.isRecall)||!1}},(p||(p={})).create=function(e){return{orderType:null==e?void 0:e.orderType,loadingZone:null==e?void 0:e.loadingZone,unloadingZone:null==e?void 0:e.unloadingZone,vehicleInfo:null==e?void 0:e.vehicleInfo,cargoItem:null==e?void 0:e.cargoItem,waypoints:null==e?void 0:e.waypoints}},i=m||(m={}),a=function(e,t,n){return e===T.NI.HANDWORK?t?n.find(function(e){return e.key===T.NI.DRIVER_HANDWORK}):n.find(function(e){return e.key===T.NI.OWNER_HANDWORK}):n.find(function(t){return t.key===e})},i.create=function(e){return{type:(null==e?void 0:e.type)||null,ton:(null==e?void 0:e.ton)||null,isStowageBackOpen:(null==e?void 0:e.isStowageBackOpen)||null,isStowageRightOpen:(null==e?void 0:e.isStowageRightOpen)||null,isStowageLeftOpen:(null==e?void 0:e.isStowageLeftOpen)||null,isLifted:(null==e?void 0:e.isLifted)||!1,isNonVibrating:(null==e?void 0:e.isNonVibrating)||!1,isRisingWing:(null==e?void 0:e.isRisingWing)||!1,isFrozenTemp:(null==e?void 0:e.isFrozenTemp)||!1,isRefrigeratedTemp:(null==e?void 0:e.isRefrigeratedTemp)||!1,isRoomTemp:(null==e?void 0:e.isRoomTemp)||!1,isLongLength:(null==e?void 0:e.isLongLength)||!1,dispatchType:(null==e?void 0:e.dispatchType)||null,dispatchNumber:(null==e?void 0:e.dispatchNumber)||null,dispatchInterval:(null==e?void 0:e.dispatchInterval)||null,loadingMethod:e.loadingMethod,unloadingMethod:e.unloadingMethod,loadingHandworkRequest:e.loadingHandworkRequest,unloadingHandworkRequest:e.unloadingHandworkRequest,convertLoadingMethodType:function(e){return a(this.loadingMethod,this.loadingHandworkRequest,e)},convertUnloadingMethodType:function(e){return a(this.unloadingMethod,this.unloadingHandworkRequest,e)}}},(s=h||(h={})).create=function(e){return{items:(null==e?void 0:e.items)||[],total:function(){return this.items.length}}},s.init=function(){return s.create()},(f||(f={})).create=function(e){return{address:e.address,companyName:e.companyName,managerName:e.managerName,managerPhone:e.managerPhone,memo:e.memo,orderBy:e.orderBy,type:e.type,waypointRequestAt:e.waypointRequestAt,palletNo:(null==e?void 0:e.palletNo)||"",hanssemOrderNo:(null==e?void 0:e.hanssemOrderNo)||"",itemType:(null==e?void 0:e.itemType)||"SINGLE",isCashOnDelivery:(null==e?void 0:e.isCashOnDelivery)||!1,liftingWork:(null==e?void 0:e.liftingWork)||null,tileBox:(null==e?void 0:e.tileBox)||null}}},68013:function(e,t,n){n.d(t,{II:function(){return o.Z},__:function(){return r.Z}}),n(53808);var o=n(23192),r=n(2808);n(2890),n(75010),n(85893),n(67294),n(93967)},44286:function(e,t,n){n.d(t,{eS:function(){return c},RW:function(){return p},$i:function(){return Z},i8:function(){return m},le:function(){return h},D_:function(){return f},JN:function(){return r},HZ:function(){return T},s4:function(){return I},Qb:function(){return w},RX:function(){return D},oE:function(){return P},Tx:function(){return R},m1:function(){return k},vS:function(){return E},G6:function(){return j},fQ:function(){return M},T8:function(){return A},u8:function(){return K},M9:function(){return W},RA:function(){return F},N$:function(){return V},zB:function(){return U}});var o,r,i=n(48564),a=n(2267),s=n(5233),l=n(72253),d=n(85309),c=(0,l._)({},d.t$Z.ton),u=function(){"use strict";function e(t){var n=t.key,o=t.selected;(0,i._)(this,e),this.key=n,this.value=n,this.selected=void 0!==o&&o}return(0,a._)(e,[{key:"label",get:function(){return s.ag.t("order:vehicleInfo.weights.".concat(this.key))}}]),e}(),p=function(){"use strict";function e(t){var n=t.items;(0,i._)(this,e),this.items=void 0===n?null:n}return e.init=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new e({items:[c.TON1_0,c.TON1_4,c.TON2_5,c.TON3_5,c.TON5_0,c.TON5_0_PLUS,c.TON11_0,c.TON18_0,c.TON25_0].map(function(e){return new u({key:e,selected:t===e})})})},e}(),m=function(){"use strict";function e(t){var n=t.itemId,o=t.itemName;(0,i._)(this,e),this.itemId=n,this.itemName=o}return e.init=function(){return new e({itemId:"",itemName:""})},e}(),h=function(){"use strict";function e(t){var n=t.items;(0,i._)(this,e),this.items=n}return e.init=function(){return new e({items:[]})},e}(),f=function(){"use strict";function e(t){var n=t.items;(0,i._)(this,e),this.items=n}return e.init=function(){return new e({items:[]})},e}(),g=n(18446),y=n.n(g);(o=r||(r={})).create=function(e){var t,n,o,r,i,a,s,l,c,u,p,m,h,f,g;return{oldOrderType:null!==(t=null==e?void 0:e.oldOrderType)&&void 0!==t?t:null,orderType:null!==(n=null==e?void 0:e.orderType)&&void 0!==n?n:null,display:null!==(o=null==e?void 0:e.display)&&void 0!==o?o:"",displayLcl:null!==(r=null==e?void 0:e.displayLcl)&&void 0!==r?r:"",displayCoupon:null!==(i=null==e?void 0:e.displayCoupon)&&void 0!==i?i:"",oldDisplay:null!==(a=null==e?void 0:e.oldDisplay)&&void 0!==a?a:"",oldDisplayLcl:null!==(s=null==e?void 0:e.oldDisplayLcl)&&void 0!==s?s:"",oldDisplayCoupon:null!==(l=null==e?void 0:e.oldDisplayCoupon)&&void 0!==l?l:"",diffDisplay:null!==(c=null==e?void 0:e.diffDisplay)&&void 0!==c?c:"",diffDisplayLcl:null!==(u=null==e?void 0:e.diffDisplayLcl)&&void 0!==u?u:"",diffDisplayCoupon:null!==(p=null==e?void 0:e.diffDisplayCoupon)&&void 0!==p?p:"",newPriceMinRaw:null!==(m=null==e?void 0:e.newPriceMinRaw)&&void 0!==m?m:null,newPriceMaxRaw:null!==(h=null==e?void 0:e.newPriceMaxRaw)&&void 0!==h?h:null,newPriceLclMinRaw:null!==(f=null==e?void 0:e.newPriceLclMinRaw)&&void 0!==f?f:null,newPriceLclMa
1xRaw:null!==(g=null==e?void 0:e.newPriceLclMaxRaw)&&void 0!==g?g:null,displayNewPrice:function(){return y()(this.orderType,d.tbA.ownerOrderType.MULTI)?this.displayLcl:this.display},displayOldPrice:function(){return y()(this.orderType,d.tbA.ownerOrderType.MULTI)?this.oldDisplayLcl:this.oldDisplay},displayDiffPrice:function(){return y()(this.orderType,d.tbA.ownerOrderType.MULTI)?this.diffDisplayLcl:this.diffDisplay},isDiffPrice:function(){var e=this.displayDiffPrice();return!y()(e,"")},isChangeOrderType:function(){return!y()(this.oldOrderType,this.orderType)},getNewPriceMinValue:function(){var e=y()(this.orderType,d.tbA.ownerOrderType.MULTI)?this.newPriceLclMinRaw:this.newPriceMinRaw;return null!=e?e:null},getNewPriceMaxValue:function(){var e=y()(this.orderType,d.tbA.ownerOrderType.MULTI)?this.newPriceLclMaxRaw:this.newPriceMaxRaw;return null!=e?e:null}}},o.init=function(){return o.create()};var x=n(85790),v=n(37072),T=function(){"use strict";function e(t){var n=t.arrivedAt,o=t.address,r=t.managerName,a=t.managerPhone,s=t.memo,l=t.returnAt,d=t.palletNo,c=t.hanssemOrderNo,u=t.itemType,p=t.liftingWork,m=t.tileBox,h=t.isRecall;(0,i._)(this,e),this.id=(0,x.Vj)(),this.arrivedAt=n,this.returnAt=l,this.address=o,this.managerName=r,this.managerPhone=a,this.memo=s,this.palletNo=d,this.hanssemOrderNo=c,this.itemType=u,this.liftingWork=p,this.tileBox=m,this.isRecall=h}return e.init=function(){return new e({arrivedAt:null,address:null,managerName:null,managerPhone:null,memo:null,returnAt:null,palletNo:"",hanssemOrderNo:"",itemType:v.Oy.SINGLE,liftingWork:v.RP.NONE,tileBox:null,isRecall:!1})},e}(),I=function(){"use strict";function e(t){var n=t.orderId,o=t.orderNo,r=t.orderType,a=t.originOrderType,s=t.vehicleInfo,l=t.loadingZoneInfo,d=t.unloadingZoneInfo,c=t.waypoints,u=t.warehousingInfo,p=t.freightType,m=t.cargoInfo,h=t.methodInfo,f=t.payMethod;(0,i._)(this,e),this.orderId=n,this.orderNo=o,this.orderType=r,this.originOrderType=a,this.vehicleInfo=s,this.loadingZoneInfo=l,this.unloadingZoneInfo=d,this.waypoints=c,this.warehousingInfo=u,this.freightType=p,this.cargoInfo=m,this.methodInfo=h,this.payMethod=f}return e.init=function(){return new e({orderId:null,orderNo:null,orderType:null,originOrderType:null,vehicleInfo:null,loadingZoneInfo:null,unloadingZoneInfo:null,waypoints:null,warehousingInfo:null,freightType:null,cargoInfo:null,methodInfo:null})},e}(),N=n(248),C=n(16328),S=n(68929),b=n.n(S),O=function(){"use strict";function e(t){(0,i._)(this,e),this.key=t,this.value=t}return(0,a._)(e,[{key:"label",get:function(){return s.ag.t("order:orderEdit.orderSteps.".concat(b()(this.key)))}}]),e}(),w=function(){"use strict";function e(t){var n=t.items,o=t.afterWaypointItems;(0,i._)(this,e),this.items=n,this.afterWaypointItems=o}return e.init=function(t){var n=[C.TS.UNLOADINGZONE,C.TS.CARGO,C.TS.METHOD],o=[C.TS.VEHICLE,C.TS.ORDER_TYPE,C.TS.LOADINGZONE,C.TS.WAYPOINT];return t&&(n=[C.TS.UNLOADINGZONE,C.TS.WAREHOUSING,C.TS.CARGO,C.TS.METHOD]),new e({items:(0,N._)(o).concat((0,N._)(n)).map(function(e){return new O(e)}),afterWaypointItems:n.map(function(e){return new O(e)})})},e}(),D=(0,l._)({},d.tbA.ownerOrderType),_=function(){"use strict";function e(t){var n=t.key,o=t.selected;(0,i._)(this,e),this.key=n,this.value=n,this.selected=void 0!==o&&o}return(0,a._)(e,[{key:"label",get:function(){return s.ag.t("order:orderList.orderType.".concat(this.key))}}]),e}(),P=function(){"use strict";function e(t){var n=t.items;(0,i._)(this,e),this.items=void 0===n?null:n}return e.init=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new e({items:[D.SINGLE,D.ROUND_TRIP].map(function(e){return new _({key:e,selected:t===e})})})},e}(),R=function e(t){"use strict";var n=t.carType,o=t.carTon,r=t.isLifted,a=t.isStowageBackOpen,s=t.isStowageLeftOpen,l=t.isStowageRightOpen,d=t.isNonVibrating,c=t.isRisingWing,u=t.isFrozenTemp,p=t.isRefrigeratedTemp,m=t.isRoomTemp,h=t.isLongLength,f=t.dispatchInterval,g=t.number;(0,i._)(this,e),this.carType=n,this.carTon=o,this.isLifted=r,this.isStowageBackOpen=a,this.isStowageLeftOpen=s,this.isStowageRightOpen=l,this.isNonVibrating=d,this.isRisingWing=c,this.isFrozenTemp=u,this.isRefrigeratedTemp=p,this.isRoomTemp=m,this.isLongLength=h,this.dispatchInterval=f,this.number=g},k=function e(t){"use strict";var n=t.key,o=t.value;(0,i._)(this,e),this.key=n,this.value=o},E=function(){"use strict";function e(t){var n=t.items;(0,i._)(this,e),this.items=n}return e.init=function(){return new e({items:[]})},e}(),j=function e(t){"use strict";var n=t.type,o=t.centerCode,r=t.detailCode,a=t.memo;(0,i._)(this,e),this.type=n,this.centerCode=o,this.detailCode=r,this.memo=a||""},M=(0,n(14932)._)((0,l._)({},d.UEQ.ioBoundType),{NONE:"NONE"}),L=function(){"use strict";function e(t){var n=t.key,o=t.selected;(0,i._)(this,e),this.key=n,this.value=n,this.selected=void 0!==o&&o}return(0,a._)(e,[{key:"label",get:function(){return s.ag.t("order:orderEdit.warehousingType.".concat(this.key.toLowerCase()))}}]),e}(),A=function(){"use strict";function e(t){var n=t.items;(0,i._)(this,e),this.items=void 0===n?null:n}return e.init=function(){return new e({items:[M.NONE,M.RECEIVING,M.FORWARDING].map(function(e){return new L({key:e})})})},e}(),F=function(){"use strict";function e(t){var n=t.arrivedAt,o=t.address,r=t.type,a=t.order,s=t.managerName,l=t.managerPhone,d=t.memo,c=t.palletNo,u=t.hanssemOrderNo,p=t.itemType,m=t.liftingWork,h=t.tileBox;(0,i._)(this,e),this.id=(0,x.Vj)(),this.arrivedAt=n,this.address=o,this.type=r,this.order=a,this.managerName=s,this.managerPhone=l,this.memo=d,this.palletNo=c,this.hanssemOrderNo=u,this.itemType=p,this.liftingWork=m,this.tileBox=h}return e.init=function(){return new e({arrivedAt:null,address:null,type:null,order:null,managerName:null,managerPhone:null,memo:null,palletNo:"",hanssemOrderNo:"",itemType:v.Oy.SINGLE,liftingWork:v.RP.NONE,tileBox:null})},e}(),W=function(){"use strict";function e(t){var n=t.items;(0,i._)(this,e),this.items=n}return e.prototype.findItemById=function(e){return this.items.find(function(t){return t.id===e})},e.init=function(){return new e({items:[]})},(0,a._)(e,[{key:"total",get:function(){return this.items.length}}]),e}(),V=(0,l._)({},d.RQ6.type),B=function(){"use strict";function e(t){var n=t.key,o=t.selected;(0,i._)(this,e),this.key=n,this.value=n,this.selected=void 0!==o&&o}return(0,a._)(e,[{key:"label",get:function(){return s.ag.t("order:orderEdit.waypointType.".concat(this.key.toLowerCase()))}}]),e}(),U=function(){"use strict";function e(t){var n=t.items;(0,i._)(this,e),this.items=void 0===n?null:n}return e.init=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new e({items:[V.DEPARTURE,V.DESTINATION].map(function(e){return new B({key:e,selected:t===e})})})},e}(),Z=(0,l._)({},d.t$Z.type),G=n(27484),q=n.n(G),K=function(){"use strict";function e(t){var n=t.id,o=t.type,r=t.loadingDate,a=t.isOpenedLoadingDatePicker,s=t.address,l=t.companyName,d=t.managerName,c=t.managerPhone,u=t.memo,p=t.order,m=t.isValidated,h=t.isCheckedArriveDate,f=t.palletNo,g=t.hanssemOrderNo,y=t.itemType,x=t.liftingWork,v=t.tileBox;(0,i._)(this,e),this.id=n,this.type=o,this.loadingDate=r,this.isOpenedLoadingDatePicker=void 0!==a&&a,this.address=s,this.companyName=l,this.managerName=d,this.managerPhone=c,this.memo=u,this.order=p,this.isValidated=m,this.isCheckedArriveDate=h,this.palletNo=f,this.hanssemOrderNo=g,this.itemType=y,this.liftingWork=x,this.tileBox=v}return e.prototype.restore=function(e){this.id=e.id,this.type=e.type,this.loadingDate=e.arrivedAt?q()(e.arr
1ivedAt).toDate():null,this.isOpenedLoadingDatePicker=!1,this.address=e.address,this.companyName=e.address.name,this.managerName=e.managerName,this.managerPhone=e.managerPhone,this.memo=e.memo,this.order=e.order,this.palletNo=e.palletNo,this.hanssemOrderNo=e.hanssemOrderNo,this.itemType=e.itemType,this.liftingWork=e.liftingWork,this.tileBox=e.tileBox,this.isValidated=!0,this.isCheckedArriveDate=!this.loadingDate},e.init=function(t){return new e({order:t,id:(0,x.Vj)(),type:V.DESTINATION,loadingDate:null,isOpenedLoadingDatePicker:!1,address:null,companyName:null,managerName:null,managerPhone:null,memo:null,isValidated:!1,isCheckedArriveDate:!0,palletNo:"",hanssemOrderNo:"",itemType:v.Oy.SINGLE,liftingWork:v.RP.NONE,tileBox:null})},e}()},48213:function(e,t,n){n.d(t,{BP:function(){return d},U$:function(){return u},xo:function(){return l},RM:function(){return c}});var o=n(11010),r=n(97582),i=n(71922),a=n(67848),s=n(48228),l=function(){var e,t=(0,i.Z)().getPayments,n=(e=(0,o._)(function(){return(0,r.Jh)(this,function(e){switch(e.label){case 0:return[4,t()];case 1:return[2,e.sent().data.result]}})}),function(){return e.apply(this,arguments)});return(0,a.a)(["useGetPaymentsQuery"],n)},d=function(e){var t,n=(0,i.Z)().createPayment,a=(t=(0,o._)(function(e){return(0,r.Jh)(this,function(t){switch(t.label){case 0:return[4,n(e)];case 1:return[2,t.sent().data]}})}),function(e){return t.apply(this,arguments)});return(0,s.D)(["useCreatePaymentMutation"],a,e)},c=function(e,t){var n,a=(0,i.Z)().updatePayment,l=(n=(0,o._)(function(){return(0,r.Jh)(this,function(t){switch(t.label){case 0:return[4,a(e)];case 1:return[2,t.sent().data.result]}})}),function(){return n.apply(this,arguments)});return(0,s.D)(["useUpdatePaymentMutation"],l,t)},u=function(e,t){var n,a=(0,i.Z)().deletePayment,l=(n=(0,o._)(function(){return(0,r.Jh)(this,function(t){switch(t.label){case 0:return[4,a(e)];case 1:return[2,t.sent().data.result]}})}),function(){return n.apply(this,arguments)});return(0,s.D)(["useDeletePaymentMutation"],l,t)}},74159:function(e,t,n){n.d(t,{t:function(){return f}});var o=n(11010),r=n(72253),i=n(14932),a=n(97582),s=n(64529),l=n(85790),d=n(48564),c=n(2267),u=n(5233),p=function(){"use strict";function e(t,n,o,r,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];(0,d._)(this,e),this.id=(0,l.Vj)(),this.paymentId=t,this.cardType=n,this.cardCode=o,this.cardNickname=r,this.batchKey=i,this.isDefault=a,this.selected=!1}return(0,c._)(e,[{key:"cardTypeName",get:function(){return(0,u.ag.t)("payment:cardType.".concat(this.cardType))}},{key:"cardName",get:function(){return this.cardNickname?this.cardNickname:this.cardTypeName}},{key:"cardNameWithDefault",get:function(){var e=u.ag.t,t=this.cardName;return this.isDefault&&(t="".concat(t," (").concat(e("payment:default"),")")),t}},{key:"cardNumbers",get:function(){return"****-****-****-".concat(this.cardCode)}},{key:"label",get:function(){return"".concat(this.cardName," ").concat(this.cardNumbers)}},{key:"labelWithCardType",get:function(){return"".concat(this.cardTypeName," ").concat(this.cardCode)}}]),e}(),m=function(){"use strict";function e(){(0,d._)(this,e)}return e.mapToModels=function(t){return t.map(function(t){return e.mapToModel(t)})},e.mapToModel=function(e){return new p(e.businessPaymentId,e.cardTypeCode,e.cardLastFourDigits,e.cardNickname,e.batchKey,e.main)},e}(),h={paymentMethods:null},f=(0,s.Ue)()((0,l.zq)(function(e,t){var n;return(0,i._)((0,r._)({},h),{setPaymentMethods:function(t){e({paymentMethods:m.mapToModels(t)})},selectedPaymentMethod:function(){var e,n,o=null===(e=t().paymentMethods)||void 0===e?void 0:e.find(function(e){return e.selected});return o||(o=null===(n=t().paymentMethods)||void 0===n?void 0:n.find(function(e){return e.isDefault})),o},changeSelectedPaymentMethod:(n=(0,o._)(function(n){var o;return(0,a.Jh)(this,function(r){switch(r.label){case 0:return null==(o=t().paymentMethods)||o.forEach(function(e){e.selected=e.paymentId===n}),[4,e({paymentMethods:o})];case 1:return r.sent(),[2]}})}),function(e){return n.apply(this,arguments)}),reset:function(){e((0,r._)({},h))}})},{name:"PaymentStore"}))},58918:function(e,t,n){n.d(t,{KC:function(){return l},_W:function(){return s},cQ:function(){return d},hV:function(){return c}});var o=n(27484),r=n.n(o),i=n(5233),a=n(17351);function s(e){if(!e)return"";var t=Math.floor(e/3600),n="";return t>0&&(n+="".concat(t).concat(i.ag.t("common:hours")," ")),n+="".concat(Math.floor((e-3600*t)/60)).concat(i.ag.t("common:minutes"))}function l(e,t){return r()(e).isSame(t,"days")}function d(){for(var e=[],t=new Date("2000-01-01T00:00:00"),n=new Date("2000-01-01T23:30:00"),o=t;o<=n;){var i=r()(o).format("HH:mm"),a=r()(o).format("HH:mm:ss");e.push({key:a,value:i}),o=new Date(o.getTime()+18e5)}return e}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,n=new Date(e),o=n.getMinutes(),r=a.Z.getCurrentUserFromStorage().isHanssem?5:t;if(o<1)n.setMinutes(0);else if(o<r)n.setMinutes(r);else if(o>60-r){var i=e.getHours();n.setHours(i+1,0)}else o%r&&n.setMinutes(Math.ceil(o/r)*r);return n}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.