1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2238],{15727:function(e,n,t){"use strict";var s=t(85893),i=t(67294),l=t(2818),r=t(60217),d=t.n(r);n.Z=function(e){var n=e.marginTop,t=e.marginBottom,r=e.forVat,o=void 0!==r&&r,c=(0,i.useContext)(l.V)[0],a=c.lblOnceSavedCantBeChanged,u=c.lblPsPriceNoVAT;return(0,s.jsx)("div",{className:d().AlertInfo,style:{marginTop:n,marginBottom:t},children:(0,s.jsxs)("p",{children:[(0,s.jsx)("img",{src:"/assets/icons/checkout-online-old/infoImg.svg"}),(0,s.jsx)("label",{children:o?null===u||void 0===u?void 0:u.Value:null===a||void 0===a?void 0:a.Value})]})})}},30225:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var s=t(34051),i=t.n(s),l=t(85893),r=t(11163),d=t(67294),o=t(25617),c=t(2818),a=t(68680),u=t(60707),v=t(32194),p=t(40387),_=t.n(p),h=function(e){var n=e.itemsDeliveryTimes,t=e.setTimeIdSelected,s=e.timeIdSelected,i=e.setTimeTitleSelected,r=(0,d.useContext)(c.V)[0].lblDeliveryTime;return(0,l.jsxs)("div",{className:_().DeliveryTimeWrapper,children:[(0,l.jsx)("h3",{children:null===r||void 0===r?void 0:r.Value}),(0,l.jsx)("div",{className:_().DeliveryTimeContent,children:(0,l.jsx)("ul",{children:null===n||void 0===n?void 0:n.map((function(e){return(0,l.jsx)("li",{onClick:function(n,s){return function(e,n){t(e),i(n)}(null===e||void 0===e?void 0:e.Id,null===e||void 0===e?void 0:e.TimingStr)},className:s===(null===e||void 0===e?void 0:e.Id)?_().active:"",children:(0,l.jsx)("span",{children:null===e||void 0===e?void 0:e.TimingStr})},null===e||void 0===e?void 0:e.Id)}))})})]})},y=t(56629),m=t.n(y),x=function(){return(0,l.jsx)("div",{className:m().ldsContainer,children:(0,l.jsxs)("div",{className:m().ldsRing,children:[(0,l.jsx)("div",{}),(0,l.jsx)("div",{}),(0,l.jsx)("div",{}),(0,l.jsx)("div",{})]})})},f=t(25603),j=t.n(f);function S(e,n,t,s,i,l,r){try{var d=e[l](r),o=d.value}catch(c){return void t(c)}d.done?n(o):Promise.resolve(o).then(s,i)}var A=function(e){var n=e.itemAddress,t=e.LotNumber,s=e.InvoiceId,o=(0,r.useRouter)().locale,u=(0,d.useContext)(c.V)[0].lblAED,v=(0,d.useState)(!0),p=v[0],_=v[1],h=(0,d.useState)([]),y=h[0],m=h[1],f=(0,d.useState)([]),A=(f[0],f[1]),N=function(){var e,l=(e=i().mark((function e(){var l,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),e.prev=1,e.next=4,(0,a.oo)(o,t,s,null===n||void 0===n?void 0:n.GX,null===n||void 0===n?void 0:n.GY).then(l);case 4:return l=e.sent,e.next=7,null===l||void 0===l?void 0:l.data;case 7:r=e.sent,m(null===r||void 0===r?void 0:r.FeesDisplay),A(null===r||void 0===r?void 0:r.Fees),_(!1),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),_(!0);case 16:case"end":return e.stop()}}),e,null,[[1,13]])})),function(){var n=this,t=arguments;return new Promise((function(s,i){var l=e.apply(n,t);function r(e){S(l,s,i,r,d,"next",e)}function d(e){S(l,s,i,r,d,"throw",e)}r(void 0)}))});return function(){return l.apply(this,arguments)}}();return(0,d.useEffect)((function(){N()}),[]),(0,l.jsx)("div",{className:j().priceWrapper,children:p?(0,l.jsx)(x,{}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:j().currancy,children:null===u||void 0===u?void 0:u.Value}),(0,l.jsx)("p",{className:j().number,children:y})]})})},N=t(86901),I=t.n(N),C=function(e){var n=e.haveStationery,t=e.sethaveStationery,s=e.addressId,i=e.sethaveStationeryMultiple,r=e.fromMultiple,o=(0,d.useState)(!0),c=o[0],a=o[1];return(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:I().toggleButtonWrapper,children:(0,l.jsx)("div",{className:I().toggleButton,children:(0,l.jsxs)("label",{className:I().switch,children:[(0,l.jsx)("input",{id:"have-Receipt",onChange:function(){a(!c),s===(null===n||void 0===n?void 0:n.id)&&(null===n||void 0===n?void 0:n.Stationery)?(t({id:s,Stationery:!1}),r&&i({id:s,Stationery:!1})):(t({id:s,Stationery:!0}),r&&i({id:s,Stationery:!0}))},type:"checkbox",checked:c}),(0,l.jsx)("span",{className:I().slider})]})})})})},g=t(4274),T=t.n(g);function b(e,n,t,s,i,l,r){try{var d=e[l](r),o=d.value}catch(c){return void t(c)}d.done?n(o):Promise.resolve(o).then(s,i)}var w=function(e){var n=e.setAddressTitleSelected,t=e.setFullAddressSelected,s=e.setTimeTitleSelected,p=e.addressIdSelected,_=e.setAddressIdSelected,y=e.timeIdSelected,m=e.setTimeIdSelected,x=e.itemsDeliveryAddress,f=e.itemsDeliveryTimes,j=e.InvoiceId,S=e.LotNumber,N=e.closeRequestDeliveryModal,I=e.reFetchCheckoutOnline,g=e.setOpenNewAddressModal,w=e.fromMultiple,D=e.setHeadStep,E=e.setCarsWithFeesLoading,O=e.setCarsWithFeesAPiError,k=e.setVehiclesWithFeesData,M=e.sethaveStationeryMultiple,V=e.haveStationeryMultiple,W=e.getAllCountriesData,R=e.NewAddressId,B=(0,r.useRouter)().locale,L=(0,o.I0)(),F=(0,d.useRef)(!1),H=(0,d.useContext)(c.V)[0],Y=H.lblAddNewAddress,K=(H.lblApply,H.lblAED,H.lblDeliveryAddress),P=H.lblNext,Z=H.lblAddToYourAddressBook,q=H.btnConfirm,G=(0,o.v9)((function(e){return e.checkoutOnlineAssignDeliveryRequestToMotor})),U=(0,d.useState)({id:0,Stationery:!1}),J=U[0],X=U[1];(0,d.useEffect)((function(){X(V)}),[]),(0,d.useEffect)((function(){F.current&&G.success&&(N(),L((0,u.ip)()),I()),F.
1current=!0}),[G]);var Q=function(){var e,n=(e=i().mark((function e(){var n,t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return E(!0),e.prev=1,e.next=4,(0,a.JW)(B,j,p).then(n);case 4:return n=e.sent,e.next=7,null===n||void 0===n?void 0:n.data;case 7:t=e.sent,k(null===t||void 0===t?void 0:t.CarsFees),E(!1),O(!1),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(1),E(!1),O(!0);case 17:case"end":return e.stop()}}),e,null,[[1,13]])})),function(){var n=this,t=arguments;return new Promise((function(s,i){var l=e.apply(n,t);function r(e){b(l,s,i,r,d,"next",e)}function d(e){b(l,s,i,r,d,"throw",e)}r(void 0)}))});return function(){return n.apply(this,arguments)}}();return(0,l.jsxs)("div",{className:"".concat(T().DeliveryAddressSelectWrapper," ").concat(w?T().DeliveryAddressMultiple:""),children:[w?(0,l.jsx)("h3",{children:null===K||void 0===K?void 0:K.Value}):null,(0,l.jsx)("div",{className:T().selectWrapper,children:null===x||void 0===x?void 0:x.map((function(e,s){return(0,l.jsxs)("div",{className:"".concat(T().selectContent," ").concat(R===(null===e||void 0===e?void 0:e.Id)?T().highlighted:""),children:[(0,l.jsxs)("div",{className:T().select,children:[(0,l.jsx)("div",{className:T().control,children:(0,l.jsxs)("div",{className:T().checkbox,children:[(0,l.jsx)("input",{type:"radio",name:"radio-group",id:null===e||void 0===e?void 0:e.Id,defaultChecked:(null===e||void 0===e?void 0:e.Id)===p,onClick:function(s,i,l){return function(e,s,i){_(e),n(s),t(i),X({id:e,Stationery:!0}),w&&M({id:e,Stationery:!0})}(null===e||void 0===e?void 0:e.Id,null===e||void 0===e?void 0:e.Title,null===e||void 0===e?void 0:e.FullAddress)}}),(0,l.jsx)("label",{htmlFor:null===e||void 0===e?void 0:e.Id}),(0,l.jsx)("input",{type:"radio"})]})}),(0,l.jsxs)("div",{className:T().selectInfo,children:[(0,l.jsx)("h4",{children:null===e||void 0===e?void 0:e.Title}),(0,l.jsxs)("div",{className:T().selectContent,children:[(0,l.jsx)("p",{children:null===e||void 0===e?void 0:e.FullAddress}),w?null:(0,l.jsx)(A,{LotNumber:S,InvoiceId:j,itemAddress:e})]})]})]}),(null===e||void 0===e?void 0:e.IsStationery)?(0,l.jsxs)("div",{className:T().IsStationeryContainer,children:[(0,l.jsx)("div",{className:T().IsStationeryHead,children:(0,l.jsx)("p",{children:null===Z||void 0===Z?void 0:Z.Value})}),(0,l.jsx)("div",{className:T().IsStationeryAction,children:(0,l.jsx)(C,{addressId:null===e||void 0===e?void 0:e.Id,sethaveStationery:X,haveStationery:J,sethaveStationeryMultiple:M,fromMultiple:w})})]}):null,s!==(null===x||void 0===x?void 0:x.length)-1?(0,l.jsx)("div",{className:T().separatorDashedLine}):null]},null===e||void 0===e?void 0:e.Id)}))}),(0,l.jsx)("div",{className:T().NewAddress,children:(0,l.jsxs)("label",{children:[(0,l.jsx)("img",{src:"/assets/icons/checkout-online-old/newAddress.svg"}),(0,l.jsx)("span",{onClick:function(){return W(),g(!0),void N()},children:null===Y||void 0===Y?void 0:Y.Value})]})}),(0,l.jsx)(h,{setTimeIdSelected:m,setTimeTitleSelected:s,timeIdSelected:y,itemsDeliveryTimes:f}),(0,l.jsx)("div",{className:T().ApplyBtnWrapper,children:w?(0,l.jsx)("button",{onClick:function(){null!==p&&null!==y&&(Q(),D(2))},className:null===p||null===y?T().dimmedBtn:T().ApplyBtn,children:(0,l.jsx)("span",{children:null===P||void 0===P?void 0:P.Value})}):(0,l.jsx)("button",{onClick:function(){(null===G||void 0===G?void 0:G.loading)||null!==p&&null!==y&&L((0,u.c5)(j,p,S,y,B,null===J||void 0===J?void 0:J.Stationery))},className:null===p||null===y?T().dimmedBtn:T().ApplyBtn,children:(0,l.jsx)("span",{children:(null===G||void 0===G?void 0:G.loading)?(0,l.jsx)(v.Z,{}):null===q||void 0===q?void 0:q.Value})})})]})}},20896:function(e,n,t){"use strict";var s=t(85893),i=t(67294),l=t(2818),r=t(15612),d=t.n(r);n.Z=function(e){var n=e.setOpenNewAddressModal,t=e.closeRequestDeliveryModal,r=e.fromMultiple,o=e.getAllCountriesData,c=(0,i.useContext)(l.V)[0],a=c.lblNoAddressesFound,u=c.lblYouHaventAddedAnyAddressesYet,v=c.lblAddNewAddress,p=(c.lblApply,c.lblNext),_=c.btnConfirm;return(0,s.jsxs)("div",{className:d().NoAddresses,children:[(0,s.jsx)("h3",{children:null===a||void 0===a?void 0:a.Value}),(0,s.jsx)("p",{children:null===u||void 0===u?void 0:u.Value}),(0,s.jsx)("div",{className:d().NewAddress,children:(0,s.jsxs)("label",{children:[(0,s.jsx)("img",{src:"/assets/icons/checkout-online-old/newAddress.svg"}),(0,s.jsx)("span",{onClick:function(){return o(),n(!0),void t()},children:null===v||void 0===v?void 0:v.Value})]})}),(0,s.jsx)("button",{children:(0,s.jsx)("span",{children:r?null===p||void 0===p?void 0:p.Value:null===_||void 0===_?void 0:_.Value})})]})}},60707:function(e,n,t){"use strict";t.d(n,{c5:function(){return a},ip:function(){return u}});var s=t(34051),i=t.n(s),l=t(68680);function r(e,n,t,s,i,l,r){try{var d=e[l](r),o=d.value}catch(c){return void t(c)}d.done?n(o):Promise.resolve(o).then(s,i)}function d(e){return function(){var n=this,t=arguments;return new Promise((function(s,i){var l=e.apply(n,t);function d(e){r(l,s,i,d,o,"next",e)}function o(e){r(l,s,i,d,o,"throw",e)}d(void 0)}))}}var o=function(e,n){return{type:"CHECKOUT_ONLINE_ASSIGN_DELIVERY_TO_MOTOR_SUCCESS",payload:e,Success:n}},c=function(e){return{type:"CHECKOUT_ONLINE_ASSIGN_DELIVERY_TO_MOTOR_FAILURE",payload:e}},a=function(e,n,t,s,r){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return function(){var u=d(i().mark((function d(u){return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:u({type:"CHECKOUT_ONLINE_ASSIGN_DELIVERY_TO_MOTOR_REQUEST"}),(0,l.mo)(e,n,t,s,r,a).then((function(e){u(o(e.data.Message,e.data.Success))})).catch((function(e){u(c(e))}));case 2:case"end":return i.stop()}}),d)})));return function(e){return u.apply(this,arguments)}}()},u=function(){return{type:"RESET_CHECKOUT_ONLINE_ASSIGN_DELIVERY_TO_MOTOR"}}},60217:function(e){e.exports={AlertInfo:"styles_AlertInfo__K3MJ8"}},40387:function(e){e.exports={DeliveryTimeWrapper:"styles_DeliveryTimeWrapper__1eSxY",DeliveryTimeContent:"styles_DeliveryTimeContent__qmKrW",active:"styles_active__cEZU9"}},25603:function(e){e.exports={priceWrapper:"styles_priceWrapper__Lnx4A",currancy:"styles_currancy__3dSy3",number:"styles_number__LO5qj"}},4274:function(e){e.exports={DeliveryAddressSelectWrapper:"styles_DeliveryAddressSelectWrapper__99d52",selectWrapper:"styles_selectWrapper__dHMfe",highlighted:"styles_highlighted__NJZFe",highlightedFade:"styles_highlightedFade__0dJuY",selectContentIsStationery:"styles_selectContentIsStationery__CwGO5",selectContent:"styles_selectContent__xXTux",IsStationeryContainer:"styles_IsStationeryContainer__s5ycz",IsStationeryHead:"styles_IsStationeryHead__XVLgE",select:"styles_select__BBAvH",checkbox:"styles_checkbox__8oYCO",selectInfo:"styles_selectInfo__P7oMT",priceWrapper:"styles_priceWrapper__KdxZw",currancy:"styles_currancy__NxOK0",number:"styles_number__wvpOt",separatorDashedLine:"styles_separatorDashedLine__J7icr",NewAddress:"styles_NewAddress__rKjRu",ApplyBtnWrapper:"styles_ApplyBtnWrapper__jGPAZ",dimmedBtn:"styles_dimmedBtn__H_MiL",ApplyBtn:"styles_ApplyBtn__eoRqo",DeliveryAddressMultiple:"styles_DeliveryAddressMultiple__83q9Z"}},86901:function(e){e.exports={toggleButtonWrapper:"styles_toggleButtonWrapper__jKQyM",switch:"styles_switch__KRAp7",slider:"styles_slider__JqEl0",round:"styles_round__QMiES"}},56629:function(e){e.exports={ldsContainer:"styles_ldsContainer__cFggp",ldsRing:"styles_ldsRing__yews_"}},15612:function(e){e.exports={NoAddresses:"styles_NoAddresses__YBCok",NewAddress:"styles_NewAddress__Oc6Xg"}}}]);
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.