(this["webpackJsonppick-a-pier-frontend"]=this["webpackJsonppick-a-pier-frontend"]||[]).push([[61],{104:function(e,t,n){"use strict";var a=n(37),r=n.n(a),i=n(52),o=n(43),s=n(44),c={apiKey:"AIzaSyCeG0jKirlWIovPM8kATK3S8kH2FwuQ0iQ",authDomain:"marina-prod-1ff4f.firebaseapp.com",databaseURL:"https://marina-prod-1ff4f.firebaseio.com",projectId:"marina-prod-1ff4f",storageBucket:"marina-prod-1ff4f.appspot.com",messagingSenderId:"300001231291",appId:"1:300001231291:web:07ed587466f1562313049e",measurementId:"G-RTMP8BJJ1V"},l=n(120),d=n(8),u=n.n(d),b=n(914),p=n.n(b),m=n(915),h=(n(1289),n(1614),new(function(){function e(){var t=this;Object(o.a)(this,e),this.timeStampToMoment=function(e){return e instanceof u.a?e:u()(e.toDate())},this.listenUserUpdates=function(e,n){t.userUpdatesListener=t.db.collection("marina_updates").doc(e).onSnapshot((function(e){if(e.exists){var a=e.data();a.message&&(t.updates.message=t.timeStampToMoment(a.message)),a.notification&&(t.updates.notification=t.timeStampToMoment(a.notification)),a.reservation&&(t.updates.reservation=t.timeStampToMoment(a.reservation)),a.traffic_event&&(t.updates.traffic_event={lastUpdate:t.timeStampToMoment(a.traffic_event.lastUpdate),traffic_event_id:a.traffic_event.traffic_event_id})}return console.info("updated"),n(t.updates)})),t.marinaUpdatesListener=t.db.collection("marina_commands").doc(e).onSnapshot((function(e){if(e.exists){var n=e.data().command;n&&t.timeStampToMoment(n.timestamp).isAfter(t.updates.application)&&("REFRESH_PAGE"===n.action&&window.location.reload(),console.info("application updated"))}}))},this.changePassword=function(){var e=Object(i.a)(r.a.mark((function e(t,n){var a,i;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.auth&&n){e.next=2;break}return e.abrupt("return");case 2:return a=this.auth.currentUser,i=l.a.auth.EmailAuthProvider.credential(a.email,t),e.next=6,a.reauthenticateWithCredential(i);case 6:return e.next=8,a.updatePassword(n);case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),this.sendPasswordResetEmail=function(){var e=Object(i.a)(r.a.mark((function e(t){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.auth.sendPasswordResetEmail(t);case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),this.uploadFile=function(){var e=Object(i.a)(r.a.mark((function e(t,n,a){var i,o,s,c,d,u,b;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=this.auth.currentUser.uid,o=t.name,s=p()(t.name),c="".concat(Object(m.v4)(),".").concat(s),d="".concat(a||"reservation_approval_kit/attachments/").concat(i,"/").concat(c),u={contentType:t.type},(b=l.a.storage().ref().child(d).put(t,u)).on(l.a.storage.TaskEvent.STATE_CHANGED,(function(e){var t=e.bytesTransferred/e.totalBytes*100;switch(n({status:"PROCESSING",progress:t}),console.info("Upload is "+t+"% done"),e.state){case l.a.storage.TaskState.PAUSED:console.info("Upload is paused");break;case l.a.storage.TaskState.RUNNING:console.info("Upload is running")}}),(function(e){e.code,n({status:"ERROR"})}),(function(){b.snapshot.ref.getDownloadURL().then((function(e){return console.info("File available at",e),n({status:"DONE",url:e,name:o,file_path:d,file_type:t.type})}))}));case 8:case"end":return e.stop()}}),e,this)})));return function(t,n,a){return e.apply(this,arguments)}}(),this.getFileUrl=function(){var e=Object(i.a)(r.a.mark((function e(a){var i;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t.storage){e.next=4;break}return e.next=4,n.e(25).then(n.bind(null,2222));case 4:return e.next=6,l.a.storage().ref().child(a).getDownloadURL();case 6:return i=e.sent,e.abrupt("return",i);case 10:return e.prev=10,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t){return e.apply(this,arguments)}}(),this.onAuthStateChanged=function(e){t.auth&&t.auth.onAuthStateChanged(e)},this.signOut=function(){if(t.auth)return"function"===typeof t.userUpdatesListener&&t.userUpdatesListener(),"function"===typeof t.marinaUpdatesListener&&t.marinaUpdatesListener(),t.auth.signOut().then((function(){})).catch((function(e){console.error("error logging out")}))}}return Object(s.a)(e,[{key:"zeroPad",value:function(e,t){var n=t-e.toString().length+1;return Array(+(n>0&&n)).join("0")+e}},{key:"init",value:function(e){if(0!==Object.entries(c).length||c.constructor!==Object){if(!l.a.apps.length){l.a.initializeApp(c);var t=this;t.FieldValue=l.a.firestore.FieldValue,t.Timestamp=l.a.firestore.Timestamp,t.firebase=l.a,t.db=l.a.firestore(),n.e(25).then(n.bind(null,2222)).then((function(){t.storage=l.a.storage()})).catch((function(e){console.error("Unable to lazy-load firebase/storage:",e)})),Promise.all([n.e(21),n.e(71)]).then(n.bind(null,2223)).then((function(){t.analytics=l.a.analytics()})).catch((function(e){console.error("Unable to lazy-load firebase/analytics:",e)})),Promise.all([n.e(21),n.e(72)]).then(n.bind(null,2224)).then((function(){t.performance=l.a.performance()})).catch((function(e){console.error("Unable to lazy-load firebase/performance:",e)})),this.auth=l.a.auth(),l.a.auth().setPersistence(l.a.auth.Auth.Persistence.SESSION),this.updates={application:u()(),message:u()(),notification:u()(),reservation:u()(),traffic_event:{traffic_event_id:null,lastUpdate:u()()}},e(!0)}}else e(!1)}}]),e}()));t.a=h},118:function(e,t,n){"use strict";var a=n(485);n.d(t,"a",(function(){return a.a}))},119:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var a=n(2),r=n(29),i=n(43),o=n(44),s=n(58),c=n(59),l=n(1),d=n.n(l),u=n(40),b=n.n(u),p=n(15),m=n(1701),h=n(0),f=["type","classes","className","variant","children","additionalStyling","icon"],j=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"render",value:function(){var e=this.props,t=e.type,n=e.classes,i=e.className,o=e.variant,s=e.children,c=e.additionalStyling,l=e.icon,u=Object(r.a)(e,f),p=l?d.a.cloneElement(l,{classes:{root:n.icon}}):null;return Object(h.jsxs)(m.a,Object(a.a)(Object(a.a)({className:b()(n[t],n.button,i,c),variant:o,"data-testid":"button"},u),{},{children:[p,Object(h.jsx)("span",{className:n.text,children:s})]}))}}]),n}(d.a.PureComponent),O=Object(p.a)((function(e){return{button:{height:"32px",borderRadius:"16px !important",padding:"8px 18px 8px 19px !important",fontSize:"14px !important",fontWeight:"bold !important",width:"fit-content !important"},icon:{opacity:.8,marginRight:10},text:{fontSize:e.utils.pxToRem(16),textTransform:"none"},main:function(e){return e.disabled?{backgroundColor:"#c9c7c5",color:"#fff !important"}:{backgroundColor:"#4071e2",color:"#fff","&:hover":{background:"#0036b1 !important",color:"#fff !important"}}},secondary:function(e){return e.disabled?{color:"#c9c7c5",border:"solid 1px #dcdcdc"}:{color:"#4071e2",backgroundColor:"#fff",border:"solid 1px #4071e2","&:hover":{backgroundColor:"#eff2f8",color:"#0036b1",border:"solid 1px #0036b1"}}},withIcon:function(e){return e.disabled?{color:"#c9c7c5"}:{color:"#4071e2","&:hover":{backgroundColor:"#eff2f8",color:"#0036b1"}}},inverse:function(e){return e.disabled?{backgroundColor:"#c9c7c5"}:{color:"#fff",backgroundColor:"transparent",border:"solid 1px #a0a1a2","&:hover":{backgroundColor:"#fff",color:"#4071e2"}}},link:function(e){return e.disabled?{color:"#3661f6 !important",backgroundColor:"transparent !important",opacity:.5}:{color:"#3661f6",fontSize:15,fontWeight:"bold",backgroundColor:"transparent !important","&:hover":{color:"#1948ed"}}}}}))(j)},12:function(e,t,n){"use strict";n.d(t,"A",(function(){return xt})),n.d(t,"P",(function(){return Re})),n.d(t,"p",(function(){return Ae})),n.d(t,"B",(function(){return Se})),n.d(t,"b",(function(){return Ce})),n.d(t,"E",(function(){return Ne})),n.d(t,"e",(function(){return Ie})),n.d(t,"J",(function(){return rt})),n.d(t,"j",(function(){return it})),n.d(t,"T",(function(){return Le})),n.d(t,"t",(function(){return Be})),n.d(t,"L",(function(){return ke})),n.d(t,"l",(function(){return He})),n.d(t,"R",(function(){return Ve})),n.d(t,"r",(function(){return Fe})),n.d(t,"Q",(function(){return Ke})),n.d(t,"q",(function(){return Xe})),n.d(t,"I",(function(){return We})),n.d(t,"i",(function(){return Ue})),n.d(t,"K",(function(){return Ge})),n.d(t,"k",(function(){return ze})),n.d(t,"N",(function(){return Ye})),n.d(t,"n",(function(){return qe})),n.d(t,"X",(function(){return Qe})),n.d(t,"x",(function(){return Ze})),n.d(t,"V",(function(){return Je})),n.d(t,"v",(function(){return $e})),n.d(t,"O",(function(){return et})),n.d(t,"o",(function(){return tt})),n.d(t,"G",(function(){return nt})),n.d(t,"g",(function(){return at})),n.d(t,"a",(function(){return ot})),n.d(t,"M",(function(){return st})),n.d(t,"m",(function(){return ct})),n.d(t,"U",(function(){return lt})),n.d(t,"u",(function(){return dt})),n.d(t,"D",(function(){return ut})),n.d(t,"z",(function(){return pt})),n.d(t,"d",(function(){return bt})),n.d(t,"C",(function(){return mt})),n.d(t,"y",(function(){return ft})),n.d(t,"c",(function(){return ht})),n.d(t,"F",(function(){return jt})),n.d(t,"f",(function(){return Ot})),n.d(t,"S",(function(){return we})),n.d(t,"s",(function(){return De})),n.d(t,"H",(function(){return gt})),n.d(t,"h",(function(){return _t})),n.d(t,"W",(function(){return Pe})),n.d(t,"w",(function(){return Me}));var a=n(2),r=n(5),i=Object(r.c)("POPUP"),o=i.show,s=i.hide,c=Object(r.c)("AR_POPUP"),l=c.show,d=c.hide,u=Object(r.c)("RESERVATION_POPUP"),b=u.show,p=u.hide,m=Object(r.c)("Vacancy_POPUP"),h=m.show,f=m.hide,j=Object(r.c)("ALLOCATE_VESSEL_POPUP"),O=j.show,g=j.hide,_=Object(r.c)("RESIDENCY_DECLINE_POPUP"),v=_.show,x=_.hide,E=Object(r.c)("MEMBERSHIP_DECLINE_POPUP"),y=E.show,T=E.hide,R=Object(r.c)("RESERVATION_DECLINE_POPUP"),A=R.show,S=R.hide,N=Object(r.c)("DISCARD_CHANGES_POPUP"),I=N.show,C=N.hide,w=Object(r.c)("MULTIPLE_BERTHS_POPUP"),D=w.show,P=w.hide,M=Object(r.c)("DIFFERENT_MATCHING_POPUP"),L=M.show,B=M.hide,k=Object(r.c)("DIALOG"),H=k.show,V=k.hide,F=Object(r.c)("REDEEM_HISTORY"),W=F.show,U=F.hide,G=Object(r.c)("WALK_THROUGH"),z=G.show,Y=G.hide,q=Object(r.c)("TERMS"),K=q.show,X=q.hide,Q=Object(r.c)("OVERLAY"),Z=Q.show,J=Q.hide,$=Object(r.c)("CHAT_POPUP"),ee=$.show,te=$.hide,ne=Object(r.e)("EDIT_MODE"),ae=ne.enable,re=ne.modify,ie=ne.disable,oe=Object(r.c)("MOBILE_LANGUAGE_DIALOG"),se=oe.show,ce=oe.hide,le=Object(r.c)("MOBILE_SHORTCUT_DIALOG"),de=le.show,ue=le.hide,be=Object(r.d)("ADD_RESERVATION_DIALOG"),pe=be.show,me=be.hide,he=be.modify,fe=Object(r.d)("ADD_ABSENCE_REPORT_DIALOG"),je=fe.show,Oe=fe.hide,ge=fe.modify,_e=Object(r.c)("BERTH_INFO_POPUP"),ve=_e.show,xe=_e.hide,Ee=Object(r.c)("MARINA_LITE_CUSTOMERS_POPUP"),ye=Ee.show,Te=Ee.hide,Re=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:vt,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.type:var n=t.payload,r=n.popupTitle,i=n.popupDescription,c=n.confirmLabel,u=n.cancelLabel,m=n.onConfirm,j=n.onCancel;return Object(a.a)(Object(a.a)({},e),{},{popupOpen:!0,popupTitle:r,popupDescription:i,confirmLabel:c,cancelLabel:u,onConfirm:m,onCancel:j});case s.type:return Object(a.a)(Object(a.a)({},e),{},{popupOpen:!1});case l.type:var _=t.payload.permission;return Object(a.a)(Object(a.a)({},e),{},{ARPopup:{open:!0,permission:_}});case d.type:return Object(a.a)(Object(a.a)({},e),{},{ARPopup:{open:!1,permission:void 0}});case b.type:var E=t.payload,R=E.id,N=E.edit,w=E.currentReservationTableFilters;return Object(a.a)(Object(a.a)({},e),{},{reservationPopup:{open:!0,id:R,edit:N,currentReservationTableFilters:w}});case p.type:return Object(a.a)(Object(a.a)({},e),{},{reservationPopup:{open:!1,id:null,edit:!1}});case h.type:var M=t.payload.id;return Object(a.a)(Object(a.a)({},e),{},{vacancyPopup:{open:!0,id:M}});case f.type:return Object(a.a)(Object(a.a)({},e),{},{vacancyPopup:{open:!1,id:null}});case O.type:return Object(a.a)(Object(a.a)({},e),{},{allocateVesselPopup:{open:!0,vessel_id:t.payload}});case g.type:return Object(a.a)(Object(a.a)({},e),{},{allocateVesselPopup:{open:!1,vessel_id:void 0}});case L.type:return Object(a.a)(Object(a.a)({},e),{},{differentMatchingPopup:t.payload});case B.type:return Object(a.a)(Object(a.a)({},e),{},{differentMatchingPopup:{}});case v.type:var k=t.payload,F=k.location,G=k.callBack;return Object(a.a)(Object(a.a)({},e),{},{residencyDeclinePopup:{open:!0,callBack:G,location:F}});case x.type:return Object(a.a)(Object(a.a)({},e),{},{residencyDeclinePopup:{open:!1}});case y.type:return Object(a.a)(Object(a.a)({},e),{},{membershipDeclinePopup:{open:!0,props:t.payload}});case T.type:return Object(a.a)(Object(a.a)({},e),{},{membershipDeclinePopup:{open:!1}});case A.type:return Object(a.a)(Object(a.a)({},e),{},{reservationDeclinePopup:{open:!0,location:t.payload}});case S.type:return Object(a.a)(Object(a.a)({},e),{},{reservationDeclinePopup:{open:!1}});case H.type:return Object(a.a)(Object(a.a)({},e),{},{dialog:t.payload});case V.type:return Object(a.a)(Object(a.a)({},e),{},{dialog:{}});case I.type:return Object(a.a)(Object(a.a)({},e),{},{discardChangesPopup:t.payload});case C.type:return Object(a.a)(Object(a.a)({},e),{},{discardChangesPopup:{}});case D.type:return Object(a.a)(Object(a.a)({},e),{},{multipleBerthsPopup:t.payload});case P.type:return Object(a.a)(Object(a.a)({},e),{},{multipleBerthsPopup:{}});case W.type:return Object(a.a)(Object(a.a)({},e),{},{redeemShown:!0});case U.type:return Object(a.a)(Object(a.a)({},e),{},{redeemShown:!1});case z.type:return Object(a.a)(Object(a.a)({},e),{},{walkThroughOpen:!0});case Y.type:return Object(a.a)(Object(a.a)({},e),{},{walkThroughOpen:!1});case K.type:return Object(a.a)(Object(a.a)({},e),{},{termsOpen:!0});case X.type:return Object(a.a)(Object(a.a)({},e),{},{termsOpen:!1});case Z.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case J.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1});case ee.type:return Object(a.a)(Object(a.a)({},e),{},{chatPopup:Object(a.a)(Object(a.a)({},e.chatPopup),{},{open:!0,confirmCb:t.payload})});case te.type:return Object(a.a)(Object(a.a)({},e),{},{chatPopup:Object(a.a)(Object(a.a)({},e.chatPopup),{},{open:!1,confirmCb:function(){}})});case ae.type:return Object(a.a)(Object(a.a)({},e),{},{editMode:{enabled:!0,isModified:!1}});case re.type:return Object(a.a)(Object(a.a)({},e),{},{editMode:Object(a.a)(Object(a.a)({},e.editMode),{},{isModified:t.payload})});case ie.type:return Object(a.a)(Object(a.a)({},e),{},{editMode:{enabled:!1,isModified:!1}});case se.type:var q=t.payload,Q=q.onCancel,$=q.onChange;return Object(a.a)(Object(a.a)({},e),{},{mobileLanguagePopup:Object(a.a)(Object(a.a)({},e.mobileLanguagePopup),{},{open:!0,onCancel:Q,onChange:$})});case ce.type:return Object(a.a)(Object(a.a)({},e),{},{mobileLanguagePopup:Object(a.a)(Object(a.a)({},e.mobileLanguagePopup),{},{open:!1,onCancel:function(){},onChange:function(){}})});case de.type:var ne=t.payload,oe=ne.onCancel,le=ne.onAdd;return Object(a.a)(Object(a.a)({},e),{},{mobileShortcutPopup:Object(a.a)(Object(a.a)({},e.mobileShortcutPopup),{},{open:!0,onCancel:oe,onAdd:le})});case ue.type:return Object(a.a)(Object(a.a)({},e),{},{mobileShortcutPopup:Object(a.a)(Object(a.a)({},e.mobileShortcutPopup),{},{open:!1,onCancel:function(){},onAdd:function(){}})});case pe.type:var be=t.payload,fe=be.title,_e=be.body,Ee=be.actions,Re=be.step,Ae=be.handleClose;return Object(a.a)(Object(a.a)({},e),{},{addReservationDialog:{open:!0,title:fe,body:_e,actions:Ee,step:Re,handleClose:Ae}});case he.type:var Se=t.payload,Ne=Se.step,Ie=Se.body,Ce=Se.actions,we=Se.handleClose;return Object(a.a)(Object(a.a)({},e),{},{addReservationDialog:Object(a.a)(Object(a.a)({},e.addReservationDialog),{},{step:Ne,body:Ie,actions:Ce,handleClose:we})});case me.type:return Object(a.a)(Object(a.a)({},e),{},{addReservationDialog:{open:!1}});case je.type:var De=t.payload,Pe=De.title,Me=De.body,Le=De.actions,Be=De.disabled;return Object(a.a)(Object(a.a)({},e),{},{addAbsenceReportDialog:{open:!0,title:Pe,body:Me,actions:Le,disabled:Be}});case ge.type:var ke=t.payload,He=ke.body,Ve=ke.disabled,Fe=ke.actions;return Object(a.a)(Object(a.a)({},e),{},{addAbsenceReportDialog:Object(a.a)(Object(a.a)({},e.addAbsenceReportDialog),{},{body:He,disabled:Ve,actions:Fe})});case Oe.type:return Object(a.a)(Object(a.a)({},e),{},{addAbsenceReportDialog:{open:!1,disabled:!0}});case ve.type:return Object(a.a)(Object(a.a)({},e),{},{berthInfoPopup:{open:!0,id:t.payload}});case xe.type:return Object(a.a)(Object(a.a)({},e),{},{berthInfoPopup:{open:!1,id:null}});case ye.type:return Object(a.a)(Object(a.a)({},e),{},{customersPopup:{open:!0}});case Te.type:return Object(a.a)(Object(a.a)({},e),{},{customersPopup:{open:!1}});default:return e}}},121:function(e,t,n){"use strict";var a=n(2),r=n(6),i=n(1),o=n(76),s=n(60),c=n.n(s);t.a=function(){var e=Object(i.useState)(""),t=Object(r.a)(e,2),n=t[0],s=t[1];c()(n)&&s(window?"".concat(window.innerWidth,"X").concat(window.innerHeight):"unable-to-provide-resolution");return{sendToAmplitude:Object(i.useCallback)((function(e){var t=e.marinaProperties,r=e.eventProperties,i=void 0===r?{}:r,s=e.identificationData,l=e.eventName,d=Object(a.a)(Object(a.a)({},i),{},{resolution:n}),u=function(){return new Promise((function(){}))},b=c()(s)?u:o.a,p=c()(t)?u:o.f;b(s).then(p(t).then(Object(o.b)(l,d)))}),[n])}}},1210:function(e,t,n){var a={"./":[635,7,0,1,3,7],"./compareTranslations":[971,9,0,1,3,20],"./compareTranslations.js":[971,9,0,1,3,20],"./de":[965,7,0],"./de.js":[965,7,0],"./en":[522,7],"./en.js":[522,7],"./es":[963,7,22],"./es.js":[963,7,22],"./fr":[964,7,23],"./fr.js":[964,7,23],"./index":[635,7,0,1,3,7],"./index.js":[635,7,0,1,3,7],"./it":[966,7,1],"./it.js":[966,7,1],"./oldUpdateDictionary":[972,7,24],"./oldUpdateDictionary.js":[972,7,24],"./updateDictionary":[977,9,5,8,0,1,11],"./updateDictionary.js":[977,9,5,8,0,1,11]};function r(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],r=t[0];return Promise.all(t.slice(2).map(n.e)).then((function(){return n.t(r,t[1])}))}r.keys=function(){return Object.keys(a)},r.id=1210,e.exports=r},127:function(e,t,n){"use strict";n.d(t,"k",(function(){return et})),n.d(t,"d",(function(){return De})),n.d(t,"f",(function(){return Pe})),n.d(t,"r",(function(){return Je})),n.d(t,"j",(function(){return Me})),n.d(t,"q",(function(){return Ze})),n.d(t,"u",(function(){return Le})),n.d(t,"c",(function(){return Be})),n.d(t,"e",(function(){return ke})),n.d(t,"o",(function(){return ze})),n.d(t,"h",(function(){return He})),n.d(t,"m",(function(){return Ye})),n.d(t,"i",(function(){return Ve})),n.d(t,"n",(function(){return qe})),n.d(t,"t",(function(){return Fe})),n.d(t,"a",(function(){return We})),n.d(t,"p",(function(){return Ke})),n.d(t,"g",(function(){return Ue})),n.d(t,"s",(function(){return Xe})),n.d(t,"b",(function(){return Ge})),n.d(t,"l",(function(){return Qe}));var a=n(2),r=n(5),i=n(93),o=Object(r.b)("CREATE_PIER"),s=o.request,c=o.success,l=o.failure,d=o.reset,u=o.set,b=Object(r.b)("GET_ALL_PIERS"),p=b.request,m=b.success,h=b.failure,f=b.reset,j=b.set,O=Object(r.b)("GET_PIER"),g=O.request,_=O.success,v=O.failure,x=O.reset,E=O.set,y=Object(r.b)("UPDATE_PIER"),T=y.request,R=y.success,A=y.failure,S=y.set,N=Object(r.b)("DELETE_PIER"),I=N.request,C=N.success,w=N.failure,D=(N.set,Object(r.b)("CREATE_BERTH")),P=D.request,M=D.success,L=D.failure,B=D.set,k=Object(r.b)("GET_ALL_BERTHS"),H=k.request,V=k.success,F=k.failure,W=k.reset,U=k.set,G=Object(r.b)("GET_AVAILABLE_BERTHS"),z=G.request,Y=G.success,q=G.failure,K=G.reset,X=(G.set,Object(r.b)("GET_AVAILABLE_MATCHED_BERTHS")),Q=X.request,Z=X.success,J=X.failure,$=X.reset,ee=X.set,te=Object(r.b)("GET_BERTH"),ne=te.request,ae=te.success,re=te.failure,ie=te.reset,oe=te.set,se=Object(r.b)("UPDATE_BERTH"),ce=se.request,le=se.success,de=se.failure,ue=se.set,be=Object(r.b)("DELETE_BERTH"),pe=be.request,me=be.success,he=be.failure,fe=(be.set,Object(r.b)("ALLOCATE_VESSEL")),je=fe.request,Oe=fe.success,ge=fe.failure,_e=fe.set,ve=Object(r.b)("GET_ALL_VESSELS"),xe=ve.request,Ee=ve.success,ye=ve.failure,Te=ve.reset,Re=ve.set,Ae=Object(r.b)("CHECK_AVAILABILITY"),Se=Ae.request,Ne=Ae.success,Ie=Ae.failure,Ce=Ae.reset,we=Ae.set,De=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:$e,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case c.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null,wasCreated:"pier",creationDetails:t.payload});case l.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case d.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null,wasCreated:!1,creationDetails:null,wasUpdated:"",updateDetails:null});case p.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case m.type:return Object(a.a)(Object(a.a)({},e),{},{piers:Object(a.a)(Object(a.a)({},e.piers),{},{list:t.payload,map:t.payload.reduce((function(e,t){return e[t.id]=t,e}),{})}),isLoading:!1,error:null});case f.type:return Object(a.a)(Object(a.a)({},e),{},{piers:Object(a.a)(Object(a.a)({},e.piers),{},{list:[],map:{}}),isLoading:!1,error:null});case h.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case g.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case _.type:return Object(a.a)(Object(a.a)({},e),{},{piers:Object(a.a)(Object(a.a)({},e.piers),{},{data:t.payload}),isLoading:!1,error:null});case x.type:return Object(a.a)(Object(a.a)({},e),{},{piers:Object(a.a)(Object(a.a)({},e.piers),{},{data:{}}),isLoading:!1,error:null});case v.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case T.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case R.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null,wasUpdated:"pier",updateDetails:t.payload});case A.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case I.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case C.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case w.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case P.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case M.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null,wasCreated:"berth",creationDetails:t.payload});case L.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case H.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case V.type:return Object(a.a)(Object(a.a)({},e),{},{berths:Object(a.a)(Object(a.a)({},e.berths),{},{list:t.payload,vesselsToBerthsMap:t.payload.reduce((function(e,t){return t.vessel_id&&(e[t.vessel_id]=t),e}),{})}),isLoading:!1,error:null});case W.type:return Object(a.a)(Object(a.a)({},e),{},{berths:Object(a.a)(Object(a.a)({},e.berths),{},{list:[],vesselsToBerthsMap:null}),isLoading:!1,error:null});case F.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case z.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case Y.type:return Object(a.a)(Object(a.a)({},e),{},{availableBerths:Object(a.a)(Object(a.a)({},e.availableBerths),{},{list:t.payload,vesselsToBerthsMap:t.payload.reduce((function(e,t){return t.vessel_id&&(e[t.vessel_id]=t),e}),{})}),isLoading:!1,error:null});case K.type:return Object(a.a)(Object(a.a)({},e),{},{availableBerths:Object(a.a)(Object(a.a)({},e.availableBerths),{},{list:[],vesselsToBerthsMap:null}),isLoading:!1,error:null});case q.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case Q.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case Z.type:return Object(a.a)(Object(a.a)({},e),{},{availableMatchedBerths:t.payload,isLoading:!1,error:null});case $.type:return Object(a.a)(Object(a.a)({},e),{},{availableMatchedBerths:[],isLoading:!1,error:null});case J.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case ne.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case ae.type:return Object(a.a)(Object(a.a)({},e),{},{berths:Object(a.a)(Object(a.a)({},e.berths),{},{data:t.payload}),isLoading:!1,error:null});case ie.type:return Object(a.a)(Object(a.a)({},e),{},{berths:Object(a.a)(Object(a.a)({},e.berths),{},{data:{}}),isLoading:!1,error:null});case re.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case ce.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case le.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,wasUpdated:"berth",updateDetails:t.payload,error:null});case de.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case pe.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case me.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case he.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case je.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case Oe.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case ge.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case xe.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case Ee.type:return Object(a.a)(Object(a.a)({},e),{},{availableVessels:t.payload,isLoading:!1,error:null});case ye.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload,availableVessels:[]});case Te.type:return Object(a.a)(Object(a.a)({},e),{},{availableVessels:[],isLoading:!1,error:null});case Se.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case Ne.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,matchingAvailability:t.payload});case Ie.type:return{isLoading:!1,error:t.payload,matchingAvailability:[]};case Ce.type:return Object(a.a)(Object(a.a)({},e),{},{matchingAvailability:[],isLoading:!1,error:null});default:return e}}},13:function(e,t,n){"use strict";n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return O}));var a=n(2),r=n(37),i=n.n(r),o=n(52),s=(n(917),"AUTH_TOKEN");function c(){return{Authorization:"Bearer "+(l()||"")}}function l(){return localStorage.getItem(s)}var d=n(22),u=n(104),b="airpap-marina-api.pickapier.com",p=function(){var e=Object(o.a)(i.a.mark((function e(t,n){var a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t,n);case 2:return a=e.sent,e.abrupt("return",m(a));case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),m=function(e){var t=e.status||"unknown";if(401===t&&(localStorage.removeItem(s),window.location.href.includes("login")?Object(d.a)((function(){window.location.href.includes("?error=unauthorized")||window.location.replace(window.location.href+"?error=unauthorized")}),500):Object(d.a)((function(){return window.location.assign("/login")}),500)),204!==t)return e};function h(e,t){return f.apply(this,arguments)}function f(){return(f=Object(o.a)(i.a.mark((function e(t,n){var r,o,s,l;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=Object.assign(n||{})).method=r.method?r.method:"GET",r.cache="no-cache",r.mode="cors",Object.prototype.hasOwnProperty.call(r,"headers")){e.next=11;break}if(r.headers=Object(a.a)({Accept:"application/json","Content-Type":"application/json","Cache-Control":"no-cache"},c()),!u.a.auth.currentUser){e.next=11;break}return e.next=9,u.a.auth.currentUser.getIdToken(!0);case 9:o=e.sent,r.headers.Authorization=o;case 11:return!r.body||r.body instanceof FormData||r.headers["Content-Type"]||(r.headers["Content-Type"]="application/json"),r.body&&"object"===typeof r.body&&(r.body=JSON.stringify(r.body)),s=t.startsWith("/")?t:"/".concat(t),l="//"+b+s,e.abrupt("return",p(l,r));case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.method="GET",t.body=void 0,h(e,t)}function O(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t&&!n.body)throw new Error("No body data provided in POST method");return n.method="POST",n.body=n.body||t,h(e,n)}},131:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r}));var a=n(31),r=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return JSON.stringify(e)===JSON.stringify({})},i=function(e){return e&&"object"===typeof e&&!Array.isArray(e)&&null!==e},o=function e(t,n){return i(t)&&i(n)&&Object.keys(n).forEach((function(r){i(n[r])?(t[r]||Object.assign(t,Object(a.a)({},r,{})),e(t[r],n[r])):Object.assign(t,Object(a.a)({},r,n[r]))})),t}},1371:function(e,t){},153:function(e,t,n){"use strict";n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return y})),n.d(t,"c",(function(){return T}));var a=n(2),r=n(5),i=n(191),o=Object(r.b)("GET_MESSAGES"),s=o.request,c=o.success,l=o.failure,d=o.set,u=Object(r.b)("VIEW_MESSAGES"),b=u.request,p=u.success,m=u.failure,h=u.set,f=Object(r.b)("READ_MESSAGES"),j=f.request,O=f.success,g=f.failure,_=(f.set,Object(r.b)("UNREAD_MESSAGES")),v=_.request,x=_.success,E=_.failure,y=(_.set,function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:R,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0,error:null});case c.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,list:t.payload,lastUpd:new Date});case l.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case b.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0,error:null});case p.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1});case m.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case j.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0,error:null});case O.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1});case g.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case v.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0,error:null});case x.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1});case E.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});default:return e}}},154:function(e,t,n){"use strict";var a=n(663);n.d(t,"a",(function(){return a.a}))},158:function(e,t,n){"use strict";n.d(t,"e",(function(){return k})),n.d(t,"b",(function(){return D})),n.d(t,"a",(function(){return L})),n.d(t,"c",(function(){return P})),n.d(t,"d",(function(){return M}));var a=n(2),r=n(5),i=n(13),o="/admin/dashboard/membership_stats",s="/admin/report/map_visits",c="/admin/marina/statistics",l="/admin/visit/getVisitsPerYearForMarina";function d(e){return Object(i.b)(o,{year:e}).then((function(e){return e.json()}))}function u(){return Object(i.a)(c).then((function(e){return e.json()}))}function b(){return Object(i.b)(l,{}).then((function(e){return e.json()}))}var p=n(456),m=Object(r.b)("MEMBERSHIP_STATS"),h=m.request,f=m.success,j=m.failure,O=m.set,g=Object(r.b)("MAP_VISITS_FOR_ASSOCIATION_STATS"),_=g.request,v=g.success,x=g.failure,E=(g.set,Object(r.b)("STATISTICS_FOR_AMPLITUDE")),y=E.request,T=E.success,R=E.failure,A=E.set,S=Object(r.b)("GET_VISITS_PER_YEAR_FOR_MARINA"),N=S.request,I=S.success,C=S.failure,w=S.set,D=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:B,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case h.type:return Object(a.a)(Object(a.a)({},e),{},{statsIsLoading:!0,error:null});case f.type:return Object(a.a)(Object(a.a)({},e),{},{statsIsLoading:!1,membership:t.payload.membership_stats,residentsCount:t.payload.residents_count,error:null});case j.type:return Object(a.a)(Object(a.a)({},e),{},{statsIsLoading:!1,membership:t.payload,residentsCount:t.payload,error:!0});case _.type:return Object(a.a)(Object(a.a)({},e),{},{statsIsLoading:!0,error:null});case v.type:return Object(a.a)(Object(a.a)({},e),{},{statsIsLoading:!1,mapVisits:t.payload,error:null});case x.type:return Object(a.a)(Object(a.a)({},e),{},{statsIsLoading:!1,mapVisits:t.payload,error:!0});case y.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case T.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,amplitudeData:t.payload});case R.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,amplitudeData:{},errorData:t.payload});case N.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case I.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1});case C.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});default:return e}}},1610:function(e,t,n){},1613:function(e,t,n){"use strict";n.r(t);n(1011),n(1020);var a=n(1),r=n.n(a),i=n(50),o=n(18),s=n(1752),c=n(25),l=n(85),d=n(2),u=n(29),b=n(6),p=n(19),m=n(109),h=n(493),f=n.n(h),j=n(74),O=n(34),g=n.n(O),_=n(43),v=n(44),x=n(58),E=n(59),y=n(0);function T(e){return function(t){return function(n){Object(x.a)(r,n);var a=Object(E.a)(r);function r(){return Object(_.a)(this,r),a.apply(this,arguments)}return Object(v.a)(r,[{key:"render",value:function(){return e?Object(y.jsx)(e,{children:Object(y.jsx)(t,Object(d.a)({},this.props))}):Object(y.jsx)(t,Object(d.a)({},this.props))}}]),r}(r.a.Component)}}var R=["component","layout"],A=function(e){var t=e.component,n=e.layout,a=Object(u.a)(e,R),r=T(n)(t);return Object(y.jsx)(p.c,Object(d.a)(Object(d.a)({},a),{},{render:function(e){return Object(y.jsx)(r,Object(d.a)({},e))}}))},S=n(21),N=n(31),I=n(336),C=n(4),w=n(1706),D=n(15),P=n(1618),M=n(1702),L=n(1703),B=n(1704),k=n(1619),H=n(1620),V=n(1622),F=n(1705),W=n(1623),U=n(1624),G=n(513),z=n.n(G),Y=n(514),q=n.n(Y),K=n(325),X=n(119),Q=n(662),Z=n(22),J=n(76),$=n(212),ee=n(51),te=function(e){Object(x.a)(n,e);var t=Object(E.a)(n);function n(){var e;Object(_.a)(this,n);for(var a=arguments.length,r=new Array(a),i=0;i div":{borderLeft:"5px solid #29B6F6",boxShadow:"0 2px 4px 0 rgba(0,0,0,0.5)",backgroundColor:"#353D57"},"& > :hover":{backgroundColor:"#353D57"}},listItem:{marginTop:12},listItemText:{color:e.palette.grey[600],fontSize:e.utils.pxToRem(16)},listItemIcon:{color:e.palette.grey[600]}}}))((function(e){var t=e.classes,n=e.to,a=e.icon,r=e.text,i=e.testID,o=Object(u.a)(e,gt);return Object(y.jsx)(m.c,Object(d.a)(Object(d.a)({exact:!0,to:n,className:t.navLink,activeClassName:t.navLinkActive,testID:i},o),{},{children:Object(y.jsxs)(jt.a,Object(d.a)(Object(d.a)({button:!0},o),{},{children:[Object(y.jsx)(Ve.a,{className:t.listItemIcon,children:a}),Object(y.jsx)("span",{className:t.listItemText,children:r})]}))}))})),vt=Object(D.a)((function(e){return{wrapper:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0 5px"},line:{display:"block",flex:1,height:1,background:"rgba(255,255,255,0.5)"},text:{background:"#1F263E",padding:"0 5px",fontSize:e.utils.pxToRem(12)}}}))((function(e){var t=e.classes,n=e.type,a=Object(re.a)().t,r={admin:a("navigation_adminDivider"),marina:a("navigation_marinaDivider")};return Object(y.jsxs)("div",{className:t.wrapper,style:"marina"===n?{marginTop:10}:{},children:[Object(y.jsx)("span",{className:t.line}),Object(y.jsx)("span",{className:t.text,children:r[n]}),Object(y.jsx)("span",{className:t.line})]})})),xt=Object(D.a)((function(e){return{root:{flexGrow:1,paddingTop:60,zIndex:99999999}}}))((function(e){var t=e.classes,n=e.entries;return Object(y.jsx)("div",{className:t.root,children:Object(y.jsx)(Ot.a,{children:n&&n.map((function(e,t){return Object(y.jsxs)("span",{children:[0===t&&e.admin&&Object(y.jsx)(vt,{type:"admin"}),!e.admin&&n[t-1]&&n[t-1].admin&&Object(y.jsx)(vt,{type:"marina"}),Object(y.jsx)(_t,{to:e.to,icon:e.icon,text:e.text,testId:e.text,onClick:e.disabled&&function(t){t.preventDefault(),e.onClick&&e.onClick()},disabled:e.disabled})]},"".concat(t,"-").concat(e.to))}))})})})),Et=["classes","children","logout","saveUserLang","user","navigationEntries","uiMix","showWalkThrough"],yt=Object(D.a)((function(e){return{wrapper:{display:"flex",justifyContent:"flex-end",flexDirection:"row",flex:1,paddingRight:"-1em"},gridWrap:{display:"flex",flexDirection:"column",flex:1,height:"100%"},content:{flex:1,position:"relative",maxHeight:"calc(100vh - 70px)",overflow:"hidden",backgroundColor:e.palette.background.main}}}))((function(e){var t=e.classes,n=e.children,i=e.logout,o=e.saveUserLang,s=e.user,c=e.navigationEntries,l=e.uiMix,d=e.showWalkThrough,p=Object(u.a)(e,Et),m=Object(a.useState)({}),h=Object(b.a)(m,2),f=h[0],j=h[1],O=Object(a.useState)(null),g=Object(b.a)(O,2),_=g[0],v=g[1],x=Object(a.useState)(),E=Object(b.a)(x,2),T=E[0],R=E[1],A=Object(a.useState)(null),S=Object(b.a)(A,2),N=S[0],I=S[1],C=Object(a.useState)(!0),w=Object(b.a)(C,2),D=w[0],P=w[1];Object(a.useEffect)((function(){v(r.a.createRef()),I(r.a.createRef())}),[]),Object(a.useEffect)((function(){_&&R(_.current.offsetWidth)}),[_]);var M=N&&N.current&&N.current.scrollHeight;return Object(a.useEffect)((function(){N&&(N.current.clientWidth :last-child":{marginLeft:8}},secondaryButton:{background:"transparent",color:"#fff",border:"1px solid #fff","&:hover":{backgroundColor:"#fff",color:"#4C5165"}},continueButton:{minWidth:207},buttonIcon:{fontSize:18,marginRight:8}}}))((function(e){var t=e.classes,n=e.isOpen,a=e.title,r=e.body,i=e.user,o=e.handleClose,s=e.actions,c=Object(re.a)().t;if(!n)return Object(y.jsx)("div",{});var l=Object(ee.d)({entity:i.marina});return Object(y.jsx)("div",{children:Object(y.jsxs)(sn.a,{open:n,maxWidth:"sm","aria-labelledby":"add-reservation-dialog-title","aria-describedby":"add-reservation-dialog-description",onClose:function(e,t){t&&"backdropClick"===t&&o&&o()},children:[a&&Object(y.jsxs)(y.Fragment,{children:[Object(y.jsxs)(zn.a,{id:"add-reservation-dialog-title",className:t.title,children:[a,Object(y.jsx)(W.a,{"aria-label":"close",className:t.closeButton,onClick:s.onCancel,children:Object(y.jsx)(on.a,{})})]}),Object(y.jsx)(ye.a,{className:t.divider})]}),Object(y.jsx)(Yn.a,{className:t.body,children:r||null}),Object(y.jsxs)(qn.a,{className:t.actions,children:[s.onBack&&Object(y.jsx)(Sa.a,{type:l?"secondary":"inverse",large:!0,onClick:s.onBack,testID:"reservationBack",variant:"contained",isMarinaLiteVersion:l,children:c("MARINA_RESERVATION_WIDGET_ACTION_BACK")}),s.onNext&&Object(y.jsx)(Sa.a,{type:l?"secondary":"inverse",large:!0,isMarinaLiteVersion:l,onClick:s.onNext,autoFocus:!0,testID:"reservationNext",variant:"contained",children:c("MARINA_RESERVATION_WIDGET_ACTION_NEXT")})]})]})})})),Pa=n(210),Ma=Object(o.b)((function(e){return{isOpen:e.uiMix.addReservationDialog.open,title:e.uiMix.addReservationDialog.title,body:e.uiMix.addReservationDialog.body,actions:e.uiMix.addReservationDialog.actions,handleClose:e.uiMix.addReservationDialog.handleClose,user:Object(Pa.c)(e)}}))(Da),La=Object(D.a)((function(e){return{title:{padding:"22px 30px","& h2":{color:"#253967",fontWeight:"bold",fontSize:18}},closeButton:{position:"absolute",right:10,top:15},actions:{padding:"32px 30px"},body:{paddingTop:21,paddingBottom:100,display:"flex",justifyContent:"center"},button:{width:"100%",height:47,textTransform:"none",borderRadius:23,padding:"6px 20px",fontWeight:700}}}))((function(e){var t=e.classes,n=e.isOpen,a=e.title,r=e.body,i=e.disabled,o=e.actions,s=Object(re.a)().t;return n?Object(y.jsx)("div",{children:Object(y.jsxs)(sn.a,{open:n,"aria-labelledby":"add-reservation-dialog-title","aria-describedby":"add-reservation-dialog-description",contentStyle:{width:"100%",maxWidth:"none"},children:[a&&Object(y.jsx)(y.Fragment,{children:Object(y.jsxs)(zn.a,{id:"add-reservation-dialog-title",className:t.title,children:[a,Object(y.jsx)(W.a,{"aria-label":"close",className:t.closeButton,onClick:o.onCancel,children:Object(y.jsx)(on.a,{})})]})}),Object(y.jsx)(Yn.a,{className:t.body,children:r||null}),Object(y.jsx)(qn.a,{className:t.actions,children:Object(y.jsx)(X.a,{type:"main",disabled:i,onClick:o.onCreate,autoFocus:!0,testID:"reservationNext",className:t.button,variant:"contained",children:s("new_absence_report_popup_createReport")})})]})}):Object(y.jsx)("div",{})})),Ba=Object(o.b)((function(e){return{isOpen:e.uiMix.addAbsenceReportDialog.open,title:e.uiMix.addAbsenceReportDialog.title,body:e.uiMix.addAbsenceReportDialog.body,disabled:e.uiMix.addAbsenceReportDialog.disabled,actions:e.uiMix.addAbsenceReportDialog.actions}}))(La),ka=n(270),Ha=n.n(ka),Va=n(215),Fa=n.n(Va),Wa=Object(D.a)((function(e){return{root:{background:"#255EDD",marginLeft:5,color:"#fff",fontSize:12,width:24,height:24,borderRadius:24,display:"flex",alignItems:"center",justifyContent:"center"}}}))((function(e){var t=e.classes,n=e.label;return Object(y.jsx)("span",{className:t.root,children:Object(y.jsx)("span",{children:n})})})),Ua=function(e){return Object(y.jsx)("svg",{style:{width:"1.248046875em",height:"1em",verticalAlign:"middle",overflow:"hidden"},fill:"none",viewBox:"0 0 1278 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Object(y.jsx)("path",{fill:"#BDBDBD",d:"M1272.447024 472.907505l-150.052574 149.245613a32.021415 32.021415 0 0 1-44.681788 0L928.777033 472.906505c-17.717123-20.478986-5.895708-27.925618 6.45368-39.716035h136.525243A441.782135 441.782135 0 0 0 253.257466 304.732828L178.791151 275.257287a521.555187 521.555187 0 0 1 973.731808 157.934183h113.56338a26.653681 26.653681 0 0 1 6.360685 39.716035zM202.713967 440.946087l150.022575 149.556598a26.622682 26.622682 0 0 1-6.45468 39.717034H216.366292a442.247112 442.247112 0 0 0 789.701915 120.700026l75.213278 29.787526A521.555187 521.555187 0 0 1 134.513343 630.219719h-118.994111c-12.411386-11.791416-24.170804-19.238048-6.453681-39.717034l148.935629-149.556598a32.641385 32.641385 0 0 1 44.712787 0z"})})};Ua.displayName="MarinaLiteMenuReset";var Ga=Object(p.j)((function(e){var t=Object(re.a)().t,n=Object(a.useMemo)((function(){return new URLSearchParams(location.search).toString()}),[location.search]);Object(a.useEffect)((function(){e.historyChange("".concat(e.history.location.pathname).concat(n?"?".concat(n):""))}),[e.history.location.pathname,e.history.location.search,n]),Object(a.useEffect)((function(){e.globalCount?document.title="(".concat(e.globalCount,") Pick-A-Pier"):document.title="Pick-A-Pier"}),[e.globalCount]);var r=Object(d.a)({},e.uiMix.dialog);Object(a.useEffect)((function(){e.common.error&&Object(Z.a)((function(){e.showDialog({open:!0,title:"customers_errorOccurred",cancel:{label:"close",onClick:function(){return e.hideDialog()}}})}))}),[e.common.error]);var i=[{to:"/",icon:Object(y.jsx)(Ha.a,{style:{fontSize:"1.5rem"}}),text:Object(y.jsxs)("span",{style:{display:"flex"},children:[t("navigation_dashboard")," ",e.pendingEventsCounter?Object(y.jsx)(Wa,{label:e.pendingEventsCounter}):null]})},{to:"/memberships",icon:Object(y.jsx)(Vt,{style:{fontSize:"1.5rem"}}),text:t("navigation_memberships")},{to:"/customers",icon:Object(y.jsx)(Nt,{style:{fontSize:"1.5rem"}}),text:t("navigation_customers")},{to:"/reservations",icon:Object(y.jsx)(Fa.a,{style:{fontSize:"1.5rem"}}),text:t("navigation_reservations")},{to:"/absence-reports",icon:Object(y.jsx)(kt.a,{style:{fontSize:"1.5rem"}}),text:t("navigation_absenceReports")},{to:"/inventory",icon:Object(y.jsx)(Wt,{style:{fontSize:"1.5rem"}}),text:t("BERTH_MODULE_BUTTON")}],o=[{to:"/ad-panel",icon:Object(y.jsx)(At,{style:{fontSize:"1.125rem"}}),text:t("navigation_adminPanel"),admin:!0},{to:"/boaters",icon:Object(y.jsx)(Ct,{style:{fontSize:"1.5rem"}}),text:t("navigation_boaters"),admin:!0},{to:"/reservations-admin",icon:Object(y.jsx)(Fa.a,{style:{fontSize:"1.5rem"}}),text:t("navigation_reservations"),admin:!0},{to:"/marinas",icon:Object(y.jsx)(Dt,{style:{fontSize:"1.5rem"}}),text:t("navigation_marinas"),admin:!0},{to:"/reports",icon:Object(y.jsx)(Mt,{style:{fontSize:"1.5rem"}}),text:t("navigation_reports"),admin:!0},{text:"Configuration",admin:!0,to:"/configuration",icon:Object(y.jsx)(Bt,{})}];var s=[{to:"/",icon:Object(y.jsx)(Ha.a,{style:{fontSize:"1.5rem"}}),text:t("navigation_adminPanel")},{to:"/marinas",icon:Object(y.jsx)(Dt,{style:{fontSize:"1.5rem"}}),text:t("navigation_marinas"),admin:!0}];return Object(y.jsxs)(y.Fragment,{children:[r.open&&Object(y.jsx)(ia.a,Object(d.a)({title:r.title&&t(r.title),description:r.description&&t(r.description),isOpen:r.open,body:r.body&&r.body},function(){var e={};return r.confirm&&r.confirm.label&&(e=Object(d.a)(Object(d.a)({},e),{},{confirm:{label:r.confirm.label&&t(r.confirm.label),onClick:r.confirm.onClick}})),r.cancel&&r.cancel.label&&(e=Object(d.a)(Object(d.a)({},e),{},{cancel:{label:r.cancel&&t(r.cancel.label),onClick:r.cancel&&r.cancel.onClick}})),r.extraAction&&r.extraAction.label&&(e=Object(d.a)(Object(d.a)({},e),{},{extraAction:{label:r.extraAction.label&&t(r.extraAction.label),onClick:r.extraAction.onClick}})),e}())),e.uiMix.walkThroughOpen&&Object(y.jsx)(fn,{}),e.uiMix.ARPopup.open&&Object(y.jsx)(xn,{}),e.uiMix.addReservationDialog.open&&Object(y.jsx)(Ma,{}),e.uiMix.addAbsenceReportDialog.open&&Object(y.jsx)(Ba,{}),e.uiMix.allocateVesselPopup.open&&Object(y.jsx)(Qn,{}),e.uiMix.differentMatchingPopup.open&&Object(y.jsx)(ta,{}),e.uiMix.chatPopup.open&&Object(y.jsx)(da,{}),e.uiMix.residencyDeclinePopup.open&&Object(y.jsx)(ga,{}),e.uiMix.membershipDeclinePopup.open&&Object(y.jsx)(va,{}),e.uiMix.reservationDeclinePopup.open&&Object(y.jsx)(Aa,{}),e.uiMix.discardChangesPopup.open&&Object(y.jsx)(Ia,{}),e.uiMix.multipleBerthsPopup.open&&Object(y.jsx)(wa,{}),Object(y.jsx)(ra,{}),e.user?Object(y.jsx)(yt,Object(d.a)({navigationEntries:e.user&&function(t,n,a){if(a)return s;var r=t?[].concat(o,i):i,c=n&&r.map((function(t){if("/reservations"===t.to&&!n.reservation)return Object(d.a)(Object(d.a)({},t),{},{disabled:!0,onClick:function(){return e.showWalkThrough()}});if("/absence-reports"===t.to){if(!(e.user&&e.user.marina&&e.user.marina.marina_settings&&e.user.marina.marina_settings.permissions&&e.user.marina.marina_settings.permissions.absence_report))return Object(d.a)(Object(d.a)({},t),{},{disabled:!0,onClick:function(){return e.showARPopup(!0)}});if(!window.localStorage.getItem("absence_experience_".concat(e.user.id)))return Object(d.a)(Object(d.a)({},t),{},{to:"/absence-reports?first_visit=true"})}return t}));return"TEM"!==e.user.marina.association.code&&(c=c.filter((function(e){return"/memberships"!==e.to}))),e.user.marina.marina_settings.permissions.inventory||(c=c.filter((function(e){return"/inventory"!==e.to}))),c}(e.user.is_admin,e.user.marina.marina_settings.permissions,e.user.association_manager)},e)):null,e.uiMix.berthInfoPopup.open&&Object(y.jsx)(Un,{})]})})),za=Object(D.a)((function(e){return{root:{color:"#828282",fontSize:19,fontWeight:700,lineHeight:1.2,padding:16}}}))((function(e){var t=e.classes,n=e.header;return e.isEmpty?null:Object(y.jsx)("div",{className:t.root,children:n})})),Ya=Object(D.a)((function(e){return{root:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"0 0 31px 0",width:"100%"},text:{fontSize:e.utils.pxToRem(16),fontWeight:700,color:"#253967"}}}))((function(e){var t=e.classes,n=e.isEmpty,a=e.message;Object(re.a)().t;return n?Object(y.jsxs)("div",{className:t.root,children:[Object(y.jsx)(tt,{}),Object(y.jsx)("span",{className:t.text,children:a})]}):null})),qa=Object(D.a)((function(e){return{icon:{display:"flex",justifyContent:"center",alignItems:"center",borderRadius:38,width:38,minWidth:38,height:38,border:"1px solid #e8eaec"}}}))((function(e){var t=e.classes,n=e.underHover,a=e.iconType,r={reservation:"#ffab91",absence_report:"#a5d6a7",general:"#80deea"},i={isUnderHover:n,color:"#253967",hoverColor:"#fff"},o={reservation:Object(y.jsx)(it.a,Object(d.a)({},i)),absence_report:Object(y.jsx)(at.a,Object(d.a)({},i)),general:Object(y.jsx)(rt.a,Object(d.a)({},i))};return Object(y.jsx)("div",{className:t.icon,style:n?{background:r[a],border:"1px solid ".concat(r[a])}:{},children:o[a]})})),Ka=Object(D.a)((function(e){return{root:{fontSize:15,lineHeight:1.2,color:"##333333",marginLeft:15,flex:1,minWidth:1},boater:{fontWeight:700,marginBottom:4},message:{maxWidth:245,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}}))((function(e){var t=e.classes,n=e.boater,a=e.message,r=e.sender,i=Object(re.a)().t,o="boater"===r?a:"current_user"===r?"".concat(i("you"),": ").concat(a):"".concat(r,": ").concat(a);return Object(y.jsxs)("div",{className:t.root,children:[Object(y.jsx)("div",{className:t.boater,children:n}),Object(y.jsx)("div",{className:t.message,children:o})]})})),Xa=Object(D.a)((function(e){return{root:{display:"flex",justifyContent:"flex-end",alignItems:"center",width:"100%",fontSize:12,color:"#828282"}}}))((function(e){var t=e.classes,n=e.data,a=n&&Object(ct.f)(_e()(),n,"days",!0),r=n&&!a?_e()(n).format("HH:MM"):a&&1===a?Object(ct.g)(n):_e()(n).format("DD/MM/YYYY");return Object(y.jsx)("div",{className:t.root,children:r})})),Qa=Object(p.j)(Object(D.a)((function(e){return{root:{display:"flex",padding:16,cursor:"pointer",width:"100%",backgroundColor:function(e){return!!e.data.viewed_by_receiver&&"#f2f2f2"}}}}))((function(e){var t=e.classes,n=e.data,r=e.history,i=Object(a.useState)(!1),o=Object(b.a)(i,2),s=o[0],c=o[1],l="".concat(n.boater.first_name?n.boater.first_name:""," ").concat(n.boater.last_name?n.boater.last_name:"");return Object(y.jsxs)("div",{id:n.id,onMouseEnter:function(){return c(!0)},onMouseLeave:function(){return c(!1)},className:t.root,style:s?{boxShadow:"0 0 9px 0 rgba(0, 0, 0, 0.2)"}:{},onClick:function(){return function(e,t){var n={reservation:"/reservations/".concat(t,"?tab=1"),absence_report:"/absence-reports/".concat(t,"?tab=1"),general:"/boaters/".concat(t,"?tab=messages")};r.push(n[e])}(n.chatFlow.type,n.chatFlow.redirect_id)},children:[Object(y.jsx)(qa,{iconType:n.chatFlow.type,underHover:s}),Object(y.jsx)(Ka,{boater:l,message:n.message,sender:n.sender}),Object(y.jsx)(Xa,{data:n.lastUpd})]})}))),Za=Object(D.a)((function(e){return{root:{width:"100%",boxSizing:"border-box"},menuItem:{padding:0,"&:hover":{backgroundColor:"#f2f2f2"}}}}))((function(e){var t=e.classes,n=e.data;return n&&n.length?Object(y.jsx)("div",{className:t.root,children:n.map((function(e){return Object(y.jsx)(Te.a,{className:t.menuItem,autoFocus:!1,testID:"helpMenuItem",children:Object(y.jsx)(Qa,{data:e},e.boater.id)},e.boater.id)}))}):null})),Ja=Object(D.a)((function(e){return{icon:{display:"flex",justifyContent:"center",alignItems:"center",borderRadius:38,width:38,minWidth:38,height:38,border:"1px solid #e8eaec"}}}))((function(e){var t=e.classes,n=e.underHover,a=e.iconType,r={reservation:"#ffab91",absence_report:"#a5d6a7",general:"#80deea"},i={isUnderHover:n,color:"#253967",hoverColor:"#fff"},o={reservation:Object(y.jsx)(it.a,Object(d.a)({},i)),absence_report:Object(y.jsx)(at.a,Object(d.a)({},i)),general:Object(y.jsx)(rt.a,Object(d.a)({},i))};return Object(y.jsx)("div",{className:t.icon,style:n?{background:r[a],border:"1px solid ".concat(r[a])}:{},children:o[a]})})),$a=Object(D.a)((function(e){return{root:{fontSize:15,lineHeight:1.2,color:"#333333",marginLeft:15,display:"flex",flexDirection:"column",flex:1,minWidth:1},header:{fontWeight:700,marginBottom:4},message:{maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}}))((function(e){var t=e.classes,n=e.boater,a=e.header,r=e.message;return Object(y.jsxs)("div",{className:t.root,children:[Object(y.jsx)("div",{className:t.header,children:a||n}),Object(y.jsx)("div",{className:t.message,title:r,children:r})]})})),er=Object(D.a)((function(e){return{root:{display:"flex",justifyContent:"flex-end",alignItems:"center",fontSize:12,color:"#828282"}}}))((function(e){var t=e.classes,n=e.data,a=n&&Object(ct.f)(_e()(),n,"days",!0),r=n&&!a?_e()(n).format("HH:mm"):a&&1===a?Object(ct.g)(n):_e()(n).format("DD/MM/YYYY");return Object(y.jsx)("div",{className:t.root,children:r})})),tr=Object(p.j)(Object(D.a)((function(e){return{root:{display:"flex",padding:16,cursor:"pointer",width:"100%",boxSizing:"border-box"}}}))((function(e){var t=e.classes,n=e.user,a=e.data,r=e.viewNotifications,i=e.readNotifications,o=e.getNotifications,s=e.totalNotifications,c=e.history,l=Object(ja.a)().sendToAmplitude,d=Object(re.a)().t,u=d("highlightsNoVesselName"),b={RESERVATION:{INITIATED:{message:d("eventHeaderNewReservation"),ctaAction:function(){return c.push({pathname:"/reservations/".concat(a.details.reservation_id),state:{ref:"highlight"}})}},CANCELED:{message:d("eventHeaderReservationCancelled"),ctaAction:function(){return c.push({pathname:"/reservations/".concat(a.details.reservation_id),search:"?tab=1",state:{ref:"highlight"}})},readOnClick:!0},ACCEPTED:{message:d("eventHeaderReservationWaiting"),cta:d("eventCtaReservationWaiting"),ctaAction:function(){return c.push({pathname:"/reservations/".concat(a.details.reservation_id),state:{ref:"highlight"}})},readOnClick:!0},INSTANT_BOOK:{message:d("eventHeaderInstantBooking"),ctaAction:function(){return c.push("/reservations/".concat(a.details.reservation_id))},readOnClick:!0}},MEMBERSHIP:{INITIATED:{message:d("eventHeaderMembershipRequest"),ctaAction:function(){return c.push({pathname:"/boaters/".concat(a.details.boater_id),search:"?tab=1",state:{ref:"highlight"}})}}},ABSENCE_REPORT:{INITIATED:{message:d("NEW_VACANCY_NOTIFICATION",{boat_name:a.details.boat_name?a.details.boat_name:"-"}),ctaAction:function(){return c.push({pathname:"/vacancies/".concat(a.details.absence_report_id),state:{ref:"highlight"}})}},UPDATED:{message:d("UPDATED_VACANCY_NOTIFICATION",{boat_name:a.details.boat_name?a.details.boat_name:"-"}),ctaAction:function(){return c.push({pathname:"/vacancies/".concat(a.details.absence_report_id),state:{ref:"highlight"}})}},DELETED:{message:d("DELETED_VACANCY_NOTIFICATION",{boat_name:a.details.vessel_name?a.details.vessel_name:"-"}),ctaAction:function(){return c.push({pathname:"/vacancies",state:{ref:"highlight"}})}}},HOME_MARINA_VERIFICATION:{INITIATED:{header:d("NotificationHeaderResidencyRequest"),message:d("eventBodyResidencyRequest",{boater_name:a.details.boater_name?a.details.boater_name:"-",vessel_name:a.details.boat_name?a.details.boat_name:"-",vessel_length:a.details.boat_length?a.details.boat_length:"-"}),ctaAction:function(){return c.push({pathname:"/vessels/".concat(a.details.vessel_id),state:{ref:"highlight"}})}}}},p=b[a.subject]?b[a.subject]:null,m=p&&p[a.type]?p[a.type]:null,h=a.boater_name||u;return Object(y.jsxs)("div",{id:a.id,className:t.root,onClick:function(){Object(Z.a)((function(){r([a.id]).then((function(){m.readOnClick?i([a.id]).then((function(){return o()})):o()}))})).then((function(){m.ctaAction(),l({marinaProperties:{user:n},eventProperties:{subject:a.subject&&a.subject.toLowerCase(),total_highlights:s},eventName:"highlight_clicked"})}))},children:[Object(y.jsx)(Ja,{iconType:function(){var e=a.subject;return"RESERVATION"===e?"reservation":"MEMBERSHIP"===e?"general":"HOME_MARINA_VERIFICATION"===e?"absence_report":void 0}()})," ",Object(y.jsx)($a,{boater:h,message:m.message,header:m.header}),Object(y.jsx)(er,{data:a.created_at})]})}))),nr=Object(D.a)((function(e){return{root:{width:"100%",boxSizing:"border-box"},menuItem:{padding:0,"&:hover":{backgroundColor:"#f2f2f2"}}}}))((function(e){var t=e.classes,n=e.data,a=e.viewNotifications,r=e.getNotifications,i=e.user,o=e.readNotifications;return n&&n.length?Object(y.jsx)("div",{className:t.root,children:n.map((function(e){return Object(y.jsx)(Te.a,{className:t.menuItem,autoFocus:!1,testID:"helpMenuItem",children:Object(y.jsx)(tr,{data:e,viewNotifications:a,readNotifications:o,getNotifications:r,totalNotifications:n.length,user:i},e.id)},e.id)}))}):null})),ar={top:61},rr={minWidth:386,marginTop:-20,paddingRight:8,paddingLeft:8,overflow:"hidden",height:"calc(100% - 96px)",maxHeight:431},ir={width:"90vw",marginTop:-20,paddingRight:8,paddingLeft:8,overflow:"hidden",height:"calc(100% - 96px)",maxHeight:431},or=Object(p.j)(Object(D.a)((function(e){return{wrapper:{},button:{position:"relative",cursor:"pointer",color:"#253967",marginRight:8,"&.MuiButton-text":{padding:"8px 0",minWidth:40,"&:hover":{backgroundColor:"#3d5489"}},"& .MuiBadge-badge":{right:9,top:5,minWidth:14,height:14,padding:0,backgroundColor:"#eb5757",color:"#ffffff"}},buttonActive:{"&.MuiButton-text":{backgroundColor:"#3d5489"}},demoButton:{position:"relative",cursor:"pointer",color:"#253967",marginRight:8,"&.MuiButton-text":{padding:"18px 0",minWidth:40,"&:hover":{backgroundColor:"#EEEEEE"}},"& .MuiBadge-badge":{right:9,top:5,minWidth:14,height:14,padding:0,backgroundColor:"#eb5757",color:"#ffffff"}},demoButtonActive:{"&.MuiButton-text":{backgroundColor:"#fff"}},dropdown:{height:"100%",display:"flex",flexDirection:"column"},customMenu:{"& .MuiList-root":{height:"100%",boxSizing:"border-box"}},scrollWrapper:{padding:0,overflow:"hidden",position:"relative",height:"calc(100% - 55px)"},counterRectangle:{"& .MuiBadge-badge":{minWidth:18}}}}))((function(e){var t=e.notifications,n=e.messages,r=e.isMessagesLoading,i=e.isNotificationsLoading,o=e.viewNotifications,s=e.readNotifications,l=e.icon,d=e.emptyState,u=e.header,p=e.classes,m=e.user,h=e.type,f=e.getNotifications,j=e.showChatPopup,O=e.getAllMessages,g=Object(a.useState)(null),_=Object(b.a)(g,2),v=_[0],x=_[1],E=Object(a.useState)(0),T=Object(b.a)(E,2),R=T[0],A=T[1],S=Object(a.useState)([]),N=Object(b.a)(S,2),I=N[0],w=N[1],D={notifications:{elementId:"notificationContainer-notifications",listComponent:Object(y.jsx)(nr,{data:I,viewNotifications:o,readNotifications:s,getNotifications:f,user:m}),request:f,loading:i},messages:{elementId:"notificationContainer-messages",listComponent:Object(y.jsx)(Za,{data:I}),request:O,loading:r}}[h],P=D.request,M=D.loading,L=D.elementId,B=D.listComponent;Object(a.useEffect)((function(){Object(Z.a)((function(){m&&m.marina&&P()}))}),[]),Object(a.useEffect)((function(){if(m&&m.marina&&t&&"notifications"===h){var e=t.filter((function(e){var t=e.view_at;return"HOME_MARINA_VERIFICATION"===e.subject||!t}));w(e),A(e.length)}}),[t]),Object(a.useEffect)((function(){if(m&&m.marina&&n&&"messages"===h){w(n);var e=n.filter((function(e){return!e.viewed_by_receiver}));A(e.length)}}),[n]);var k=function(){x(null)};return Object(y.jsxs)("div",{className:p.wrapper,children:[Object(y.jsx)(He.a,{className:Object(C.a)("demo"===Object(ee.a)(null===m||void 0===m?void 0:m.marina)?p.demoButton:p.button,!!v&&("demo"===Object(ee.a)(null===m||void 0===m?void 0:m.marina)?p.demoButtonActive:p.buttonActive)),onClick:m.marina.marina_settings.permissions.chat?function(e){return function(e,t){t&&t.preventDefault(),t&&t.stopPropagation(),"open"===e&&x(t.currentTarget),Object(Z.a)((function(){})).then((function(){var t,n=document.getElementById(L);"open"===e&&n&&n.scrollHeight>n.clientHeight?t=new je.a(n,{useBothWheelAxes:!1,suppressScrollX:!0}):t&&(t.destroy(),t=null)}))}("open",e)}:function(){return j((function(){}))},children:Object(y.jsx)(Ke.a,{className:R>9&&p.counterRectangle,color:"primary",badgeContent:R>0?R:null,children:l})}),Object(y.jsx)(Ee.a,{id:"menu",className:p.customMenu,style:ar,anchorEl:v,open:!!v,onClose:k,onClick:k,PaperProps:{style:c.isMobile?ir:rr},classes:{root:p.menu},children:Object(y.jsxs)("div",{className:p.dropdown,children:[Object(y.jsx)(za,{isEmpty:M||!I.length,header:u}),Object(y.jsx)(Ya,{isEmpty:M||!I.length,message:d}),M||!I.length?null:Object(y.jsx)("div",{className:p.scrollWrapper,id:L,children:B})]})})]})}))),sr=Object(o.b)((function(e){return{messages:Object(S.O)(e),notifications:Object(S.G)(e),isMessagesLoading:e.messages.isLoading,isNotificationsLoading:e.notifications.isLoading,error:e.messages.error,user:Object(S.X)(e)}}),(function(e){return{getNotifications:function(){return e(Object(ze.b)())},showChatPopup:function(t){return e(Object(qe.G)(t))},getAllMessages:function(){return e(Object(Ye.a)())},viewNotifications:function(t){return e(Object(ze.f)(t))},readNotifications:function(t){return e(Object(ze.c)(t))}}}))(or),cr=function(e){return Object(y.jsx)("svg",{width:"32",height:e.height||"32",viewBox:"0 0 32 32",stroke:"demo"===e.view?"#545556":"none",file:"none",strokeWidth:"2px",xmlns:"http://www.w3.org/2000/svg",children:Object(y.jsx)("path",{d:"M16 29.333c1.467 0 2.667-1.2 2.667-2.667h-5.334A2.667 2.667 0 0 0 16 29.333zm8-8v-6.667c0-4.093-2.187-7.52-6-8.426v-.907c0-1.107-.893-2-2-2s-2 .893-2 2v.907c-3.827.906-6 4.32-6 8.426v6.667l-1.72 1.72c-.84.84-.253 2.28.933 2.28h17.56c1.187 0 1.787-1.44.947-2.28L24 21.333z",fill:"#fff"})})};cr.displayName="BellIcon",cr.muiName="BellIcon";var lr=cr,dr=function(e){return Object(y.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(y.jsx)("path",{d:"M12.79 21 3 11.21v2c0 .53.21 1.04.59 1.41l7.79 7.79c.78.78 2.05.78 2.83 0l6.21-6.21c.78-.78.78-2.05 0-2.83L12.79 21z",fill:"#BDBDBD"}),Object(y.jsx)("path",{d:"M11.38 17.41c.39.39.9.59 1.41.59.51 0 1.02-.2 1.41-.59l6.21-6.21c.78-.78.78-2.05 0-2.83L12.62.58C12.25.21 11.74 0 11.21 0H5C3.9 0 3 .9 3 2v6.21c0 .53.21 1.04.59 1.41l7.79 7.79zM5 2h6.21L19 9.79 12.79 16 5 8.21V2z",fill:"#BDBDBD"}),Object(y.jsx)("path",{d:"M7.25 5.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5z",fill:"#BDBDBD"})]})};dr.displayName="MarinaLiteMenuPromotions";var ur=dr,br=function(e){return Object(y.jsx)("svg",{width:"24",height:"23",viewBox:"0 0 24 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(y.jsx)("path",{d:"M22.1538 5.84615H19.4462C19.6154 5.2 19.6154 4.55385 19.6154 3.90769C19.4462 3.42308 19.2769 2.93846 18.9385 2.45385C18.6 1.96923 18.2615 1.64615 17.7538 1.48462C17.2462 1.32308 16.7385 1 16.2308 1C15.7231 1 15.2154 1 14.7077 1.32308C13.5231 1.64615 12.6769 2.45385 12 3.42308C11.3231 2.45385 10.4769 1.64615 9.29231 1.32308C8.78462 1.16154 8.27692 1 7.76923 1C7.26154 1 6.75385 1.16154 6.24615 1.48462C5.73846 1.64615 5.4 1.96923 5.06154 2.45385C4.72308 2.77692 4.55385 3.42308 4.38462 3.90769C4.38462 4.55385 4.38462 5.2 4.55385 5.84615H1.84615L1 6.65385V21.1923L1.84615 22H22.1538L23 21.1923V6.65385L22.1538 5.84615ZM11.1538 20.3846H2.69231V7.46154H11.1538V20.3846ZM11.1538 5.84615H6.07692V5.52308C5.90769 5.03846 5.90769 4.71538 5.90769 4.23077C6.07692 3.90769 6.07692 3.58462 6.41538 3.42308C6.58462 3.1 6.92308 2.93846 7.26154 2.77692C7.43077 2.61538 7.76923 2.61538 8.10769 2.61538C8.44615 2.61538 8.78462 2.61538 9.12308 2.77692C9.63077 2.93846 10.1385 3.26154 10.4769 3.74615C10.8154 4.23077 11.1538 4.71538 11.1538 5.36154V5.84615ZM12.8462 5.36154C12.8462 4.71538 13.1846 4.23077 13.5231 3.74615C13.8615 3.26154 14.3692 2.93846 14.8769 2.77692C15.2154 2.61538 15.5538 2.61538 15.8923 2.61538C16.2308 2.61538 16.5692 2.61538 16.9077 2.77692C17.2462 2.93846 17.4154 3.1 17.7538 3.42308C17.9231 3.58462 17.9231 3.90769 18.0923 4.23077C18.0923 4.71538 18.0923 5.03846 17.9231 5.52308C17.9231 5.68462 17.9231 5.68462 17.7538 5.84615H12.8462V5.36154ZM21.3077 20.3846H12.8462V7.46154H21.3077V20.3846Z",fill:"#BDBDBD",stroke:"#BDBDBD",strokeWidth:"0.2",strokeMiterlimit:"1",strokeLinejoin:"round"})})};br.displayName="MarinaLiteMenuGiftPoints";var pr=br,mr=Object(p.j)(Object(D.a)((function(e){return{root:{},appBar:{position:"sticky",color:e.pageHeader.color,background:e.pageHeader.background,borderBottom:"0.7px solid #DFE5F9"},logo:{marginRight:"6px",maxHeight:64},logoText:{fontSize:e.utils.pxToRem(14),width:"95px",height:"17px",margin:"3px 0 4px 6px",fontWeight:"normal",fontStretch:"normal",fontStyle:"normal",lineHeight:"normal",letterSpacing:"normal",color:"#253967"},logoIcon:{width:"24px",height:"24px",margin:"0 6px 0 0",objectFit:"contain"},spacer:{flex:1},toolbar:{alignItems:"center",width:"99%"},date:{color:"#000A12",margin:"0 10px",fontSize:e.utils.pxToRem(14)},loginInfo:{display:"flex",flexDirection:"row",alignItems:"center",color:"#545556",padding:"0 25px",height:"60px"},settingsButton:{cursor:"pointer",padding:"0 25px",height:"60px",color:"#545556","&:hover":{background:"#eee",borderRadius:"5px"}},helpDropDown:{cursor:"pointer",padding:"0 25px",height:"60px",display:"flex",flexDirection:"row",alignItems:"center",color:"#545556","&:hover":{background:"#eee",borderRadius:"5px"}},userData:{margin:"0 12px",display:"flex",flexDirection:"column",fontWeight:700},userName:{color:"#545556",fontSize:e.utils.pxToRem(18),lineHeight:"20px"},userCode:{color:"#1A1A1B",fontSize:e.utils.pxToRem(14),lineHeight:"16px"},firstMenuItem:{padding:"6px 8px",height:45,opacity:1},menuIcon:{fontSize:e.utils.pxToRem(16),marginRight:20},gear:{padding:"10px"},divider:{width:1,height:40,background:"#d8d8d8"},warning:{background:"#3CB043",color:"#fff",fontWeight:"bold",padding:"3px 10px",fontSize:12,borderRadius:3}}}))((function(e){var t=e.classes,n=e.user,r=e.logout,i=e.history,o=e.saveUserLang,s=Object(re.a)(),c=s.t,l=s.i18n,d=Object(a.useState)(null),u=Object(b.a)(d,2),p=u[0],m=u[1],h=Object(a.useState)(null),f=Object(b.a)(h,2),j=f[0],O=f[1],g=Object(a.useState)(_e()().format("LLL")),_=Object(b.a)(g,2),v=_[0],x=_[1];Object(a.useEffect)((function(){var e=setInterval((function(){return x(_e()().format("LLL"))}),5e3);return function(){clearInterval(e)}}),[]);var E=n&&n.first_name?n.first_name:"",T=n&&n.last_name?n.last_name:"",R="".concat(E," ").concat(T),A=n?"".concat(n.marina.name," (").concat(n.marina.code,")"):null,S=Object(a.useMemo)((function(){return n&&n.marina.association&&n.marina.association.code}),[n]),N=Object(a.useMemo)((function(){var e={TEM:{src:"/static/img/tem-logo.png",alt:c("login_transEuropeLogo")},BFG:{src:"/static/img/bf_logo.png",alt:c("blue_flag_Logo")},IGY:{src:"/static/img/igy_logo.png",alt:c("igy_Logo")}};if(S&&e[S])return Object(y.jsx)("img",{src:e[S].src,alt:e[S].alt,className:t.logo})}),[S]);return Object(y.jsx)("div",{className:t.root,children:Object(y.jsx)(ve.a,{color:"default",elevation:0,className:t.appBar,children:Object(y.jsxs)(xe.a,{disableGutters:!0,className:t.toolbar,children:[N,Object(y.jsxs)("div",{className:t.date,testID:"todaysHeader",children:[v," "]}),!1,Object(y.jsx)("div",{className:t.spacer}),n&&n.is_admin&&Object(y.jsx)("div",{className:t.helpDropDown,onClick:function(e){m(e.currentTarget)},testID:"adminButton",children:Object(y.jsx)("div",{style:{textDecoration:"underline"},children:c("header_navigation_admin")})}),Object(y.jsxs)(Ee.a,{id:"menu",style:{top:61},anchorEl:p,open:!!p,onClose:function(){m(null)},PaperProps:{style:{minWidth:270,marginTop:-20}},children:[Object(y.jsx)(ye.a,{tabIndex:"-1",style:{display:"none"}}),Object(y.jsxs)(Te.a,{className:t.helpDropDown,autoFocus:!1,onClick:function(){return i.push("/ad-panel")},children:[Object(y.jsx)(At,{}),Object(y.jsx)("div",{className:t.userData,children:Object(y.jsx)("span",{style:{color:"#545556"},children:c("navigation_adminPanel")})})]}),Object(y.jsxs)(Te.a,{className:t.helpDropDown,autoFocus:!1,onClick:function(){return i.push("/boaters")},children:[Object(y.jsx)(Ct,{}),Object(y.jsx)("div",{className:t.userData,children:Object(y.jsx)("span",{style:{color:"#545556"},children:c("navigation_boaters")})})]}),Object(y.jsxs)(Te.a,{className:t.helpDropDown,autoFocus:!1,onClick:function(){return i.push("/reservations-admin")},children:[Object(y.jsx)(Fa.a,{}),Object(y.jsx)("div",{className:t.userData,children:Object(y.jsx)("span",{style:{color:"#545556"},children:c("navigation_reservations")})})]}),Object(y.jsxs)(Te.a,{className:t.helpDropDown,autoFocus:!1,onClick:function(){return i.push("/marinas")},children:[Object(y.jsx)(Dt,{}),Object(y.jsx)("div",{className:t.userData,children:Object(y.jsx)("span",{style:{color:"#545556"},children:c("navigation_marinas")})})]}),Object(y.jsxs)(Te.a,{className:t.helpDropDown,autoFocus:!1,onClick:function(){return i.push("/reports")},children:[Object(y.jsx)(Mt,{}),Object(y.jsx)("div",{className:t.userData,children:Object(y.jsx)("span",{style:{color:"#545556"},children:c("navigation_reports")})})]}),Object(y.jsxs)(Te.a,{className:t.helpDropDown,autoFocus:!1,onClick:function(){return i.push("/gift-points")},children:[Object(y.jsx)(pr,{}),Object(y.jsx)("div",{className:t.userData,children:Object(y.jsx)("span",{style:{color:"#545556"},children:c("navigation_gift_points")})})]}),Object(y.jsxs)(Te.a,{className:t.helpDropDown,autoFocus:!1,onClick:function(){return i.push("/promotions")},children:[Object(y.jsx)(ur,{}),Object(y.jsx)("div",{className:t.userData,children:Object(y.jsx)("span",{style:{color:"#545556"},children:c("Promotions")})})]}),Object(y.jsxs)(Te.a,{className:t.helpDropDown,autoFocus:!1,onClick:function(){return i.push("/configuration")},children:[Object(y.jsx)(Bt,{}),Object(y.jsx)("div",{className:t.userData,children:Object(y.jsx)("span",{style:{color:"#545556"},children:"Configuration"})})]}),!1]}),Object(y.jsx)("div",{className:t.divider}),n&&!n.association_manager&&Object(y.jsx)(pt,{}),Object(y.jsx)("div",{className:t.divider}),n&&!n.association_manager&&Object(y.jsx)(sr,{type:"notifications",icon:Object(y.jsx)(lr,{height:"24",view:"demo"}),emptyState:c("notifications_EmptyState"),header:c("notifications_header")}),Object(y.jsx)(Ge,{i18n:l,setLocale:function(){x(_e()().format("LLL"))},saveUserLang:o,user:n,classes:{},alignOptions:"right"}),Object(y.jsx)("div",{className:t.divider}),Object(y.jsx)("div",{className:t.loginInfo,testID:"marinaInfo",children:Object(y.jsxs)("div",{className:t.userData,children:[Object(y.jsx)("div",{className:t.userName,testID:"userName",children:R}),A?Object(y.jsx)("div",{className:t.userCode,testID:"marinaName",children:A.length<30?A:A.substring(0,27)+"..."}):null]})}),Object(y.jsx)("div",{className:t.divider}),Object(y.jsx)(Ce.a,{onClick:function(e){O(e.currentTarget)},className:t.settingsButton,testID:"settingsButton"}),Object(y.jsxs)(Ee.a,{id:"menu",style:{top:10},anchorEl:j,open:!!j,onClose:function(){O(null)},PaperProps:{style:{minWidth:200,marginTop:41,alignItems:"center"}},children:[Object(y.jsx)(ye.a,{tabIndex:"-1",style:{display:"none"}}),n&&"ALLOWED"===n.permissions.marina_settings&&!n.association_manager?Object(y.jsxs)(Te.a,{onClick:function(){return i.push("/marina_settings")},testID:"marinaSettingsMenuItem",children:[Object(y.jsx)("img",{src:"/static/img/icons-marina.svg",alt:c("marina_settings"),className:t.logoIcon}),Object(y.jsx)("div",{className:t.logoText,children:c("marina_settings")})]}):null,n&&"ALLOWED"===n.permissions.marina_settings&&!n.association_manager?Object(y.jsx)(ye.a,{}):null,Object(y.jsxs)(Te.a,{onClick:function(){Object(Z.a)((function(){return i.push("/user_settings")}),300)},testID:"userSettingsMenuItem",children:[Object(y.jsx)("img",{src:"/static/img/icons-users-management.svg",alt:c("userSettings"),className:t.logoIcon}),Object(y.jsx)("div",{className:t.logoText,children:c("userSettings")})]}),Object(y.jsx)(ye.a,{}),Object(y.jsxs)(Te.a,{onClick:function(){r().then((function(){return i.push("/login")}))},testID:"logoutMenuItem",children:[Object(y.jsx)("img",{src:"/static/img/icons-log-out.svg",alt:c("userSettings"),className:t.logoIcon}),Object(y.jsx)("div",{style:{textTransform:"capitalize"},className:t.logoText,children:c("login_logout")})]})]})]})})})}))),hr=Object(o.b)((function(e){return{termsOfServiceLink:Object(S.V)(e)}}))(mr);var fr=Object(D.a)((function(e){return{root:{minWidth:e.sidebar.width,maxWidth:e.sidebar.width,backgroundColor:e.sidebar.backgroundColor,color:"white",display:"flex",flexDirection:"column",position:"fixed",left:0,minHeight:"calc(100vh - 66px)"},footer:{fontSize:e.utils.pxToRem(16),color:"rgba(255, 255, 255, 0.6)",textAlign:"center",display:"flex",flexDirection:"column"},footerLogo:{margin:"16px 16px 50px",width:82}}}))((function(e){var t=e.classes;return Object(y.jsxs)("aside",{className:t.root,ref:e.sideRef,children:[e.children,Object(y.jsxs)("div",{className:t.footer,children:["Powered by",Object(y.jsx)("a",{href:"https://www.pickapier.com",target:"_blank",rel:"noreferrer noopener",children:Object(y.jsx)("img",{src:"/static/img/logo_white.png",className:t.footerLogo})})]})]})})),jr=["classes","to","icon","text","testID"],Or=Object(D.a)((function(e){return{navLink:{textDecoration:"none"},navLinkActive:{"& > div":{borderLeft:"5px solid #29B6F6",boxShadow:"0 2px 4px 0 rgba(0,0,0,0.5)",backgroundColor:"#353D57"},"& > :hover":{backgroundColor:"#353D57"}},listItem:{marginTop:12},listItemText:{color:e.palette.grey[600],fontSize:e.utils.pxToRem(16)},listItemIcon:{color:e.palette.grey[600],minWidth:41}}}))((function(e){var t=e.classes,n=e.to,a=e.icon,r=e.text,i=e.testID,o=Object(u.a)(e,jr);return Object(y.jsx)(m.c,Object(d.a)(Object(d.a)({exact:!0,to:n,className:t.navLink,activeClassName:t.navLinkActive,testID:i},o),{},{children:Object(y.jsxs)(jt.a,Object(d.a)(Object(d.a)({button:!0},o),{},{children:[Object(y.jsx)(Ve.a,{className:t.listItemIcon,children:a}),Object(y.jsx)("span",{className:t.listItemText,children:r})]}))}))})),gr=Object(D.a)((function(e){return{wrapper:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"25px 20px 5px 5px"},line:{display:"block",flex:1,height:1,background:"rgba(255,255,255,0.5)"},text:{background:"#1F263E",padding:"0 5px",fontSize:e.utils.pxToRem(12)}}}))((function(e){var t=e.classes,n=e.type,a=Object(re.a)().t,r={workspace:a("navigation_workspaceDivider"),records:a("navigation_recordsDivider")};return Object(y.jsxs)("div",{className:t.wrapper,style:"marina"===n?{marginTop:10}:{},children:[Object(y.jsx)("span",{className:t.line}),Object(y.jsx)("span",{className:t.text,children:r[n]}),Object(y.jsx)("span",{className:t.line})]})})),_r=Object(D.a)((function(e){return{root:{flexGrow:1,paddingTop:10,zIndex:99999999}}}))((function(e){var t=e.classes,n=e.entries;return Object(y.jsx)("div",{className:t.root,children:Object(y.jsx)(Ot.a,{children:n&&n.map((function(e,t){return Object(y.jsxs)("span",{children:[0===t&&e.workspace&&Object(y.jsx)(gr,{type:"workspace"}),!e.workspace&&n[t-1]&&n[t-1].workspace&&Object(y.jsx)(gr,{type:"records"}),Object(y.jsx)(Or,{to:e.to,icon:e.icon,text:e.text,testId:e.text,onClick:e.disabled&&function(t){t.preventDefault(),e.onClick&&e.onClick()},disabled:e.disabled})]},"".concat(t,"-").concat(e.to))}))})})})),vr=["classes","children","logout","saveUserLang","user","navigationEntries","uiMix","showWalkThrough"],xr=Object(D.a)((function(e){return{wrapper:{display:"flex",justifyContent:"flex-end",flexDirection:"row",flex:1,paddingRight:"-1em"},gridWrap:{display:"flex",flexDirection:"column",flex:1,height:"100%"},content:{flex:1,position:"relative",maxHeight:"calc(100vh - 70px)",overflow:"hidden",backgroundColor:e.palette.background.main}}}))((function(e){var t=e.classes,n=e.children,i=e.logout,o=e.saveUserLang,s=e.user,c=e.navigationEntries,l=e.uiMix,d=e.showWalkThrough,p=Object(u.a)(e,vr),m=Object(a.useState)({}),h=Object(b.a)(m,2),f=h[0],j=h[1],O=Object(a.useState)(null),g=Object(b.a)(O,2),_=g[0],v=g[1],x=Object(a.useState)(),E=Object(b.a)(x,2),T=E[0],R=E[1],A=Object(a.useState)(null),S=Object(b.a)(A,2),N=S[0],I=S[1],C=Object(a.useState)(!0),w=Object(b.a)(C,2),D=w[0],P=w[1];Object(a.useEffect)((function(){v(r.a.createRef()),I(r.a.createRef())}),[]),Object(a.useEffect)((function(){_&&R(_.current.offsetWidth)}),[_]);var M=N&&N.current&&N.current.scrollHeight;return Object(a.useEffect)((function(){N&&(N.current.clientWidth1&&void 0!==arguments[1]&&arguments[1];O(t?"":e.target.value)},customLabel:c("messageResident")})})]})}))),Xr=Object(o.b)((function(e){return{isOpen:e.uiMix.vacancyPopup.open,id:e.uiMix.vacancyPopup.id,edit:e.uiMix.vacancyPopup.edit}}),(function(e){return{hideOverlay:function(){return e(Object(qe.o)())},showDialog:function(){return e(qe.I.apply(void 0,arguments))},hideDialog:function(){return e(Object(qe.i)())}}}))(Kr),Qr=Object(p.j)(Object(D.a)((function(e){return{wrapper:{width:"100%",height:"100%",display:"flex"}}}))((function(e){var t=e.classes,n=e.history,r=e.id,i=e.user,o=e.customer,s=e.error,c=e.messages,l=e.absenceReport,d=e.newMessages,u=e.showDialog,b=e.hideDialog,p=e.getAbsenceReport,m=e.getMessages,h=e.resetAbsenceReportData,f=e.updateAbsenceReport,j=e.createMessage,O=e.readMessages,g=e.viewMessages,_=(e.resetMessagesBoater,e.getAllMessages),v=e.showOverlay,x=e.hideOverlay,E=e.deleteAbsenceReport,T=e.hideVacancyPopup,R=e.getAllAbsenceReports,A=Object(ja.a)().sendToAmplitude,S=d&&d.length;Object(a.useEffect)((function(){l&&S&&m(l.boater_id)}),[c.lastUpd]);var N=Object(a.useCallback)((function(){p(r).then((function(e){m(e.payload.boater_id)}))}),[r]);Object(a.useEffect)((function(){return JSON.stringify(i)&&N(),function(){h()}}),[]);var I=function(){if(l)return{departure:_e()(l.departure_date),return:_e()(l.return_date),destination:l.destination||"",reason:l.reason||"",numOfNights:_e()(l.return_date).diff(l.departure_date,"days"),vessel_name:l.vessel_name,vessel_length:l.vessel_length,vessel_beam:l.vessel_beam,vessel_draft:l.vessel_draft,id:r,boater_name:"".concat(l.boater.first_name," ").concat(l.boater.last_name)}}();return s&&u({open:!0,title:"customers_errorOccurred",confirm:{label:"OK",onClick:function(){return b()}}}),Object(y.jsxs)("div",{className:t.wrapper,children:[Object(y.jsx)(Yr,{data:I,onCancelAbsenceReport:function(){u({open:!0,title:"boater_confirmCancelAbsenceTitle",description:"boater_confirmCancelAbsenceDesc",confirm:{label:"boater_cancelAbsence",onClick:function(){b(),v(),E(r).then((function(){Object(Z.a)((function(){N(r),R()}),300).then((function(){x(),T();var e=Object(J.d)({location:location});A({eventProperties:{id:r,marina_name:i.marina&&i.marina.name,marina_country:i.marina&&i.marina.country,origin:e,marina_app_version:"lite"},eventName:"absence_canceled"}),n.push("/vacancies")}))}))}},cancel:{label:"boater_cancel",onClick:function(){return b()}}})},onUpdateAbsenceReport:function(e,t,n,a){return v(),f(l.id,e,t,n,a).then((function(){Object(Z.a)((function(){N(r),R()}),300).then((function(){x();var e=Object(J.d)({location:location});A({eventProperties:{id:l.id,marina_name:i.marina&&i.marina.name,marina_country:i.marina&&i.marina.country,origin:e,marina_app_version:"lite"},eventName:"absence_updated"})}))}))}}),Object(y.jsx)(Xr,{customer:o,messages:c,handleCreateMessage:function(e){j(l.boater_id,e,"Vacancy").then((function(){m(l.boater_id)}))},handleReadMessages:function(e){g(l.boater_id,e),O(l.boater_id,e).then((function(e){"MESSAGE_READ_SUCCESS"===e.type&&m(l.boater_id)})).then((function(){_(!0)}))},user:i})]})}))),Zr=Object(o.b)((function(e){return{id:e.uiMix.vacancyPopup.id,user:Object(S.X)(e),messages:Object(S.m)(e),absenceReport:e.absenceReports.absenceReport,customer:Object(S.r)(e),error:e.absenceReports.error,newMessages:e.absenceReports.absenceReport&&Object(S.F)(e).filter((function(t){return!t.read_at&&t.details.sender_id===e.absenceReports.absenceReport.boater_id}))}}),(function(e){return{showOverlay:function(){return e(Object(qe.O)())},hideOverlay:function(){return e(Object(qe.o)())},showDialog:function(){return e(qe.I.apply(void 0,arguments))},hideDialog:function(){return e(Object(qe.i)())},getAbsenceReport:function(t){return e(Object(kr.c)(t))},getMessages:function(t){return e(Object(ua.d)(t))},resetAbsenceReportData:function(){return e(Object(kr.g)())},updateAbsenceReport:function(t,n,a,r,i){return e(Object(kr.j)(t,n,a,r,i))},createMessage:function(t,n,a){return e(Object(ua.c)(t,n,a))},readMessages:function(t,n){return e(Object(xa.i)(t,n))},viewMessages:function(t,n){return e(Object(Ye.c)(t,n))},resetMessagesBoater:function(){return e(Object(ua.k)())},getAllMessages:function(t){return e(Object(Ye.a)(t))},deleteAbsenceReport:function(t){return e(Object(kr.b)(t))},hideVacancyPopup:function(){return e(Object(qe.w)())},getAllAbsenceReports:function(){return e(Object(kr.d)())}}}))(Qr),Jr=Object(p.j)(Object(D.a)((function(e){return{scrollWrapper:{height:"100%",overflow:"hidden",maxWidth:"100%"},closeBtn:{zIndex:2,position:"absolute",right:0,top:10}}}))((function(e){var t=e.isOpen,n=e.classes,a=e.hideVacancyPopup,r=(e.showDialog,e.hideDialog,e.history);e.id;return Object(y.jsx)("div",{children:Object(y.jsxs)(Br,{open:t,children:[Object(y.jsx)(He.a,{className:n.closeBtn,onClick:function(){return Object(Z.a)((function(){a(),r.push("/vacancies")}))},children:Object(y.jsx)(on.a,{})}),Object(y.jsx)("div",{className:n.scrollWrapper,children:Object(y.jsx)(Zr,{})})]})})}))),$r=Object(o.b)((function(e){return{isOpen:e.uiMix.vacancyPopup.open,id:e.uiMix.vacancyPopup.id}}),(function(e){return{hideVacancyPopup:function(){return e(Object(qe.w)())},hideOverlay:function(){return e(Object(qe.o)())},showDialog:function(){return e(qe.I.apply(void 0,arguments))},hideDialog:function(){return e(Object(qe.i)())}}}))(Jr),ei=Object(p.j)((function(e){var t=Object(re.a)().t,n=Object(a.useMemo)((function(){return new URLSearchParams(location.search).toString()}),[location.search]);Object(a.useEffect)((function(){e.historyChange("".concat(e.history.location.pathname).concat(n?"?".concat(n):""))}),[e.history.location.pathname,e.history.location.search,n]),Object(a.useEffect)((function(){e.globalCount?document.title="(".concat(e.globalCount,") Pick-A-Pier"):document.title="Pick-A-Pier"}),[e.globalCount]);var r=Object(d.a)({},e.uiMix.dialog);Object(a.useEffect)((function(){e.common.error&&Object(Z.a)((function(){e.showDialog({open:!0,title:"customers_errorOccurred",cancel:{label:"close",onClick:function(){return e.hideDialog()}}})}))}),[e.common.error]);var i=[{to:"/reservations",icon:Object(y.jsx)(Ir,{style:{fontSize:"1.5rem"}}),text:t("navigation_reservations"),workspace:!0},{to:"/vacancies",icon:Object(y.jsx)(kt.a,{style:{fontSize:"1.5rem"}}),text:t("navigation_absenceReports"),workspace:!0},{to:"/activity",icon:Object(y.jsx)(yr,{style:{fontSize:"1.5rem"}}),text:Object(y.jsx)("span",{style:{display:"flex"},children:t("navigation_departures_arrivals")}),workspace:!0},{to:"/berths",icon:Object(y.jsx)(wr,{style:{fontSize:"1.5rem"}}),text:t("navigation_dock_walker"),workspace:!0}],o=[{to:"/history",icon:Object(y.jsx)(Fa.a,{style:{fontSize:"1.5rem"}}),text:t("navigation_reservations"),records:!0},{to:"/history/waiting_list",icon:Object(y.jsx)(Sr,{style:{fontSize:"1.5rem"}}),text:t("navigation_waiting_list"),records:!0},{to:"/absence-reports",icon:Object(y.jsx)(Ct,{style:{fontSize:"1.5rem"}}),text:t("navigation_absenceReports"),records:!0},{to:"/customers",icon:Object(y.jsx)(Nt,{style:{fontSize:"1.5rem"}}),text:t("navigation_customers"),records:!0},{to:"/memberships",icon:Object(y.jsx)(Vt,{style:{fontSize:"1.5rem"}}),text:t("navigation_memberships"),records:!0},{to:"/inventory",icon:Object(y.jsx)(Wt,{style:{fontSize:"1.5rem"}}),text:t("BERTH_MODULE_BUTTON"),records:!0}],s=[{to:"/",icon:Object(y.jsx)(Ha.a,{style:{fontSize:"1.5rem"}}),text:t("navigation_adminPanel")},{to:"/marinas",icon:Object(y.jsx)(Dt,{style:{fontSize:"1.5rem"}}),text:t("navigation_marinas"),admin:!0}];return Object(y.jsxs)(y.Fragment,{children:[r.open&&Object(y.jsx)(ia.a,Object(d.a)({title:r.title&&t(r.title),description:r.description&&t(r.description),isOpen:r.open,body:r.body&&r.body},function(){var e={};return r.confirm&&r.confirm.label&&(e=Object(d.a)(Object(d.a)({},e),{},{confirm:{label:r.confirm.label&&t(r.confirm.label),onClick:r.confirm.onClick}})),r.cancel&&r.cancel.label&&(e=Object(d.a)(Object(d.a)({},e),{},{cancel:{label:r.cancel&&t(r.cancel.label),onClick:r.cancel&&r.cancel.onClick}})),r.extraAction&&r.extraAction.label&&(e=Object(d.a)(Object(d.a)({},e),{},{extraAction:{label:r.extraAction.label&&t(r.extraAction.label),onClick:r.extraAction.onClick}})),e}())),e.uiMix.walkThroughOpen&&Object(y.jsx)(fn,{}),e.uiMix.ARPopup.open&&Object(y.jsx)(xn,{}),e.uiMix.addReservationDialog.open&&Object(y.jsx)(Ma,{}),e.uiMix.addAbsenceReportDialog.open&&Object(y.jsx)(Ba,{}),e.uiMix.allocateVesselPopup.open&&Object(y.jsx)(Qn,{}),e.uiMix.differentMatchingPopup.open&&Object(y.jsx)(ta,{}),e.uiMix.chatPopup.open&&Object(y.jsx)(da,{}),e.uiMix.residencyDeclinePopup.open&&Object(y.jsx)(ga,{}),e.uiMix.membershipDeclinePopup.open&&Object(y.jsx)(va,{}),e.uiMix.reservationDeclinePopup.open&&Object(y.jsx)(Aa,{}),e.uiMix.discardChangesPopup.open&&Object(y.jsx)(Ia,{}),e.uiMix.multipleBerthsPopup.open&&Object(y.jsx)(wa,{}),Object(y.jsx)(ra,{}),e.user?Object(y.jsx)(xr,Object(d.a)({navigationEntries:e.user&&function(t,n,a){if(a)return s;var r=[].concat(i,o),c=n&&r.map((function(t){if("/reservations"===t.to&&!n.reservation)return Object(d.a)(Object(d.a)({},t),{},{disabled:!0,onClick:function(){return e.showWalkThrough()}});if("/absence-reports"===t.to){if(!(e.user&&e.user.marina&&e.user.marina.marina_settings&&e.user.marina.marina_settings.permissions&&e.user.marina.marina_settings.permissions.absence_report))return Object(d.a)(Object(d.a)({},t),{},{disabled:!0,onClick:function(){return e.showARPopup(!0)}});if(!window.localStorage.getItem("absence_experience_".concat(e.user.id)))return Object(d.a)(Object(d.a)({},t),{},{to:"/absence-reports?first_visit=true"})}return t}));return"TEM"!==e.user.marina.association.code&&(c=c.filter((function(e){return"/memberships"!==e.to}))),e.user.marina.marina_settings.permissions.inventory||(c=c.filter((function(e){return"/inventory"!==e.to}))),c}(e.user.is_admin,e.user.marina.marina_settings.permissions,e.user.association_manager)},e)):null,e.uiMix.berthInfoPopup.open&&Object(y.jsx)(Un,{}),e.uiMix.reservationPopup.open&&Object(y.jsx)(Lr,{}),e.uiMix.vacancyPopup.open&&Object(y.jsx)($r,{})]})})),ti=n(202),ni=n(96),ai=/^([a-z0-9])+((?:\.[a-z0-9]+)|(?:[-+_][a-z0-9]+))*@(?:[a-z0-9]((?:[a-z0-9]*[a-z0-9])|(?:[-_][a-z0-9]+))*?\.)+[a-z0-9]((?:[a-z0-9]*[a-z0-9])|(?:[-_][a-z0-9]+))*$/i,ri=ni.b((function(e){return ni.d().shape({email:ni.e().trim().matches(ai,j.a.t("emailInvalid")).required(j.a.t("emailRequired")),password:ni.e().min(6,j.a.t("login_atLeast6")).required(j.a.t("login_passwordRequired"))})})),ii=Object(ti.f)({mapPropsToValues:function(){return{email:"",password:""}},validationSchema:ri,handleSubmit:function(e,t){var n=t.props,a=t.setSubmitting,r=t.setStatus,i=e.email,o=e.password;n.showOverlay();return n.login(i,o).then((function(e){e.payload&&e.payload.error?(r("unauthorized"),Object(Z.a)((function(){return a(!1)}),500).then((function(){n.hideOverlay()}))):(window.localStorage.setItem("isFirstVisit","yes"),window.localStorage.setItem("showWalkTrough","yes"),Object(Z.a)((function(){return a(!1)}),500).then((function(){n.hideOverlay()})))})).catch((function(e){return console.info(e.error)})),!1}}),oi=Object(p.j)(ii(Object(D.a)((function(e){return{root:{maxWidth:420,width:"100%"},header:{textAlign:"center",fontWeight:function(e){return!e.isMobile&&600},fontSize:e.utils.pxToRem(28),paddingBottom:function(e){return e.isMobile&&50}},form:{display:"flex",flexDirection:"column"},field:{margin:function(e){return e.isMobile?"20px 0px":"25px 0"},borderBottomLeftRadius:4,borderBottomRightRadius:4,width:function(e){return e.isMobile&&"80%"},alignSelf:function(e){return e.isMobile&&"center"}},button:function(t){return t.isMobile?{width:323,height:54,alignSelf:"center",borderRadius:43.5,marginTop:25,padding:17,fontFamily:"Lato",fontWeight:"bold","& .MuiButton-label span":{fontSize:20}}:{alignSelf:"center",marginTop:25,padding:17,fontSize:"".concat(e.utils.pxToRem(20)," !important")}},error:{color:"red",marginTop:15},mobileError:{width:"80%",alignSelf:"center"},inputMobile:{height:63,backgroundColor:"#e8f0fe","&.MuiFilledInput-root:hover":{backgroundColor:"#e8f0fe"}}}}))((function(e){var t=e.setStatus,n=e.history,r=e.location,i=e.classes,o=e.values,s=e.isMobile,c=e.handleSubmit,l=e.isSubmitting,u=e.handleChange,b=e.setFieldTouched,p=e.setFieldValue,m=e.touched,h=e.errors,f=e.status,j=e.uiMix,O=e.user,g=Object(re.a)().t,_=n.location.search,v=r.search?new URLSearchParams(r.search).get("email"):null,x=r.search?new URLSearchParams(r.search).get("login_token"):null;Object(a.useEffect)((function(){!function(){if(/\?error=unauthorized/.test(_))t("unauthorized")}()}),[_]),Object(a.useEffect)((function(){v&&x&&(p("email",v),p("password",x),Object(Z.a)(c,0))}),[v,x]),Object(a.useEffect)((function(){if(O&&O.is_first_login){var e=v&&x?"/changePassword":"/firstLogin";n.push({pathname:e,search:_})}}),[O,l,_]);var E=j.dialogOpen,T=j.dialogTitle,R=j.dialogDescription,A=j.onDialogConfirm,S=j.dialogConfirmLabel,N=function(e,t){t.persist(),u(t),b(e,!0,!1)},I=function(e){return{helperText:m[e]?h[e]:"",error:m[e]&&!!h[e],onChange:N.bind(null,e)}};return Object(y.jsxs)("div",{className:i.root,children:[Object(y.jsx)(na.a,{className:i.header,component:"h1",variant:"h4",testID:"loginTitle",children:g("login_welcome")}),Object(y.jsxs)("form",{onSubmit:c,autoComplete:"off",className:i.form,children:["unauthorized"===f&&Object(y.jsx)("div",{className:Object(C.a)(i.error,s&&i.mobileError),"data-testid":"errorMessage",testID:"errorMessage",children:g("customers_emailPasswordDontMatch")}),Object(y.jsx)(Fn.a,Object(d.a)(Object(d.a)({id:"email",label:g("email"),className:i.field,defaultValue:o.email,value:o.email||"",variant:"filled",margin:"normal"},I("email")),{},{InputProps:s&&{className:i.inputMobile},inputProps:{testID:"emailField"},InputLabelProps:{testID:"emailLabel"},FormHelperTextProps:{testID:"emailErrorMessage"}})),Object(y.jsx)(Fn.a,Object(d.a)(Object(d.a)({id:"password",label:g("login_password"),type:"password",className:i.field,defaultValue:o.password,value:o.password||"",variant:"filled",margin:"normal"},I("password")),{},{inputProps:{testID:"passwordField"},InputProps:s&&{className:i.inputMobile},InputLabelProps:{testID:"passwordLabel"},FormHelperTextProps:{testID:"passwordErrorMessage"}})),Object(y.jsx)(pn.a,{type:"submit",disabled:l,className:i.button,label:g("login_login"),testID:"loginBtn"})]}),Object(y.jsx)(ia.a,{isOpen:E,title:T&&g(T),description:R&&g(R),confirm:{label:S?g(S):"OK",onClick:A}})]})})))),si=Object(o.b)((function(e){return{isSubmitting:Object(S.eb)(e),i18n:e.i18n}}),(function(e){return{login:function(t,n){return e(Object(sa.a)(t,n))}}}))(oi),ci=Object(D.a)((function(e){return{title:{padding:30,fontSize:e.utils.pxToRem(21),fontWeight:600},formWrapper:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",paddingBottom:c.isMobile?"":150},notice:{fontSize:e.utils.pxToRem(14),marginTop:17},menuItem:{display:"flex",fontSize:e.utils.pxToRem(16),marginRight:20,padding:10},userData:{margin:"0 12px",display:"flex",flexDirection:"column",fontWeight:700},loginInfo:{display:"flex",flexDirection:"row",alignItems:"center",color:"#1F263E",fontSize:c.isMobile&&18,padding:c.isMobile?"":"0 20px 0 20px",cursor:"pointer",height:"60px","&:hover":{background:"#eee",borderRadius:"5px"}},topbar:{display:"flex",marginRight:c.isMobile&&42,justifyContent:"flex-end",alignItems:"flex-start"},link:{cursor:"pointer",padding:"0 25px",height:"60px",display:"flex",fontSize:c.isMobile&&18,flexDirection:"row",alignItems:"center",color:"#000",textDecoration:"none","&:hover":{background:"#eee",borderRadius:"5px"}}}}))((function(e){var t=e.classes,n=e.authError,r=e.showDialog,i=e.hideDialog,o=e.user,s=e.showOverlay,l=e.hideOverlay,d=e.uiMix,u=e.showWalkThrough,m=e.fetchUserData,h=e.location,f=Object(re.a)().t,O=Object(a.useState)(null),g=Object(b.a)(O,2),_=g[0],v=g[1],x=Object(a.useState)(null),E=Object(b.a)(x,2),T=E[0],R=E[1];var A="/",S="";if(h&&h.state&&h.state.from&&(A=h.state.from.pathname||"/",S=h.state.from.search),o){var N=h.search?new URLSearchParams(h.search).get("email"):null,I=h.search?new URLSearchParams(h.search).get("login_token"):null;if(o.is_password_temp){var C=N&&I?h.search:null;return Object(y.jsx)(p.b,{to:{pathname:"/changePassword",search:C}})}if(!o.is_first_login&&!o.is_password_temp)return Object(y.jsx)(p.b,{to:{pathname:A,search:S}})}return Object(a.useEffect)((function(){var e=window.localStorage.getItem("lang")||"en";j.a.changeLanguage(e)}),[]),Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)(fn,{}),Object(y.jsxs)("div",{className:t.topbar,children:[Object(y.jsx)("div",{className:t.loginInfo,children:Object(y.jsx)(Ge,{isGuest:!0,classes:{}})}),Object(y.jsx)("div",{className:t.loginInfo,onClick:function(e){v(e.currentTarget)},testID:"helpButton",children:Object(y.jsx)("div",{style:{textDecoration:"underline"},children:f("login_help")})})]}),Object(y.jsxs)(Ee.a,{id:"menu",style:{top:61},anchorEl:_,open:!!_,onClose:function(){v(null)},PaperProps:{style:{minWidth:270,marginTop:-20}},children:[Object(y.jsx)(ye.a,{tabIndex:"-1",style:{display:"none"}}),Object(y.jsx)(Te.a,{className:t.menuItem,autoFocus:!1,children:Object(y.jsxs)("a",{style:{textDecoration:"none",display:"flex"},href:"https://pickapier-marina.zendesk.com/hc/en-150",target:"_blank",rel:"noopener noreferrer",children:[Object(y.jsx)(Ae.a,{}),Object(y.jsx)("div",{className:t.userData,children:Object(y.jsx)("div",{children:f("login_goToHelpCenter")})})]})}),Object(y.jsx)(ye.a,{tabIndex:"-1"}),!c.isMobile&&Object(y.jsxs)(Te.a,{className:t.menuItem,autoFocus:!1,onClick:function(){return u()},children:[Object(y.jsx)(Ne.a,{}),Object(y.jsx)("div",{className:t.userData,children:Object(y.jsx)("div",{children:f("login_systemWalkThrough")})})]})]}),Object(y.jsxs)("div",{className:t.formWrapper,children:[Object(y.jsx)(si,{showOverlay:s,hideOverlay:l,uiMix:d,onError:function(){"Unauthorized"!==n&&(r({open:!0,title:"customers_errorOccurred",cancel:{label:"ok",onClick:function(){return i()}}}),function(){for(var e=document.cookie.split(";"),t=0;t-1?n.substr(0,a):n;document.cookie=r+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}}())},showWalkThrough:u,fetchUserData:m,user:o,status:T,setStatus:R,isMobile:c.isMobile}),Object(y.jsx)("div",{testID:"forgotPassword",children:Object(y.jsx)("a",{className:t.link,style:{textDecoration:"none"},href:"/forgotpassword",rel:"noopener noreferrer",children:Object(y.jsx)("div",{children:f("LOGIN_FORGOT_PASSWORD")})})})]})]})})),li=Object(o.b)((function(e,t){return{history:t.history,i18n:e.i18n,user:Object(S.X)(e),uiMix:e.uiMix,authError:Object(S.f)(e)}}),(function(e){return{fetchUserData:function(){return e(Object(sa.e)())},showDialog:function(){return e(qe.I.apply(void 0,arguments))},hideDialog:function(){return e(qe.i.apply(void 0,arguments))}}}))(ci),di=function(e){Object(x.a)(n,e);var t=Object(E.a)(n);function n(){return Object(_.a)(this,n),t.apply(this,arguments)}return Object(v.a)(n,[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.values,a=e.handleSubmit,r=e.setFieldValue,i=e.isSubmitting;return Object(y.jsxs)("div",{className:t.root,children:[Object(y.jsx)(na.a,{className:t.header,component:"h1",variant:"h4",children:"Hello Marina!"}),Object(y.jsxs)("form",{onSubmit:a,autoComplete:"off",className:t.form,children:[Object(y.jsx)(Fn.a,{id:"name",label:"Name",className:t.field,value:n.name,onChange:function(e){return r("name",e.target.value)},variant:"filled",margin:"normal"}),Object(y.jsx)(Fn.a,{id:"password",label:"New Password",type:"password",className:t.field,value:n.password,onChange:function(e){return r("password",e.target.value)},variant:"filled",margin:"normal"}),Object(y.jsx)(Fn.a,{id:"password",label:"Confirm Password",type:"password",className:t.field,value:n.password,onChange:function(e){return r("password",e.target.value)},variant:"filled",margin:"normal"}),Object(y.jsx)(X.a,{type:"submit",disabled:i,className:t.button,children:"Login"})]})]})}}]),n}(r.a.PureComponent),ui=Object(ti.f)({mapPropsToValues:function(e){return{}},validate:function(e){},handleSubmit:function(e,t){t.props;(0,t.setSubmitting)(!1)}})(Object(D.a)((function(e){return{root:{maxWidth:420,width:"100%"},header:{textAlign:"center",fontWeight:600,fontSize:e.utils.pxToRem(28)},form:{display:"flex",flexDirection:"column"},field:{margin:"25px 0",borderBottom:"1px solid rgba(81,97,111,0.8)",borderBottomLeftRadius:4,borderBottomRightRadius:4},button:{marginTop:25,padding:17,fontSize:e.utils.pxToRem(20)}}}))(di));var bi=Object(D.a)((function(e){return{title:{padding:30,fontSize:e.utils.pxToRem(21),fontWeight:600},formWrapper:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",paddingBottom:150},notice:{fontSize:e.utils.pxToRem(14),marginTop:17}}}))((function(e){var t=e.classes;return Object(y.jsxs)(r.a.Fragment,{children:[Object(y.jsx)(K.a,{title:"Marina Signup",className:t.title}),Object(y.jsxs)("div",{className:t.formWrapper,children:[Object(y.jsx)(ui,{}),Object(y.jsx)("div",{className:t.notice,children:"By logging in, you are agree to our Terms of Use & Privacy Policy"})]})]})})),pi=n(1635),mi=n(1759),hi=n(308),fi=n.n(hi),ji=function(e){Object(x.a)(n,e);var t=Object(E.a)(n);function n(){var e;Object(_.a)(this,n);for(var a=arguments.length,r=new Array(a),i=0;i1&&void 0!==arguments[1]?arguments[1]:{id:"all"},n={all:e,members:e.filter((function(e){return!!e.membershipCard})),boaters:e.filter((function(e){return!e.membershipCard.status})),active:e.filter((function(e){return"active"===e.membershipCard.status})),expired:e.filter((function(e){return"expired"===e.membershipCard.status||"archived"===e.membershipCard.status}))};return n[t.id]},k=function(e,t){return t&&t.length&&"all"!==t[0].id?e.filter((function(e){return t.map((function(e){return e.id})).includes(e.membershipCard&&e.membershipCard.status)})):e},H=Object(Eo.b)(function(){if("residents"===t){var e=k(r,M.statuses);return B(e,M.customers?M.customers[0]:v[t][0].entries[0])}if("visitors"===t){var n=k(r,M.statuses),a=B(n,M.customers?M.customers[0]:v[t][0].entries[0]);return"visitors"===t?(i=a,!(o=M.countries)||!o.length||o[0]&&"all"===o[0].id?i:i.filter((function(e){return o.map((function(e){return e&&e.id})).includes(e.country)}))):a}var i,o;return r}(),T,["boatName","fullName","card"]);return Object(y.jsxs)("div",{children:[Object(y.jsx)(bo,{tableType:t,searchTerm:T,onSearch:function(e){e&&e.target?(R(e.target.value),C(!1)):R("")},searchFail:I,onFilter:function(e,t,n){L("customers"===e?Object(d.a)(Object(d.a)({},M),{},Object(N.a)({},e,"add"===n?[t]:M[e].filter((function(e){return e.id!==t.id})))):Object(d.a)(Object(d.a)({},M),{},Object(N.a)({},e,"add"===n?[].concat(Object(co.a)(M[e]),[t]):M[e].filter((function(e){return e.id!==t.id})))))},selectedFilters:M,filters:v,isMarinaLiteVersion:h}),Object(y.jsx)(xo,{tableType:t,data:H,isLoading:o,searchTerm:T,searchFail:I,notFoundLabel:s,fetchCard:c,showOverlay:l,hideOverlay:u,setSearchFail:C,fetchAll:n,setStrip:p,isMarinaLiteVersion:h})]})},Ro=Object(p.j)(Object(D.a)((function(e){return{content:{position:"relative",margin:"0 calc(1em + 15px) 0 calc(1em + 15px)",background:"#fff",minHeight:"calc(100vh - 211px)"},liteContent:{minHeight:"calc(100vh - 165px)"}}}))((function(e){var t,n=e.classes,i=e.user,o=e.residents,s=e.isLoadingResidents,c=e.isLoadingVisitors,l=e.fetchRequests,u=e.fetchResidents,p=e.resetResidents,m=e.visitors,h=e.fetchVisitors,f=e.resetVisitors,j=e.fetchCard,O=e.showOverlay,g=e.hideOverlay,_=e.getMarinaRequests,v=e.resetMarinaRequests,x=e.marinaRequests,E=e.isLoadingRequests,T=e.permissions,R=e.isMarinaLiteVersion,A=Object(re.a)().t,S=r.a.useState(mo[0]),N=Object(b.a)(S,2),I=N[0],C=N[1],w=Object(a.useState)({open:!1,message:"",style:""}),D=Object(b.a)(w,2),P=D[0],M=D[1],L=function(e){i&&e()};return Object(y.jsxs)("section",{style:R?{paddingTop:0,paddingBottom:15}:{paddingTop:15},children:[!R&&Object(y.jsx)(_i.a,{open:P.open,message:P.message,variant:P.style}),Object(y.jsxs)("div",{className:R?n.liteContent:n.content,children:[Object(y.jsx)(so,{user:i,activePanel:I,changePanel:function(e,t){C(mo[t])},tabs:mo,disableCreation:i&&("secondary"===i.role||"EDITOR"!==T.residents),permissions:T,isMarinaLiteVersion:R}),Object(y.jsx)(To,Object(d.a)(Object(d.a)({},(t=I.type,{visitors:{tableType:"visitors",fetchAll:function(){return L(h)},data:m,resetData:function(){return f()},isLoading:c,notFoundLabel:A(mo[1].notFoundLabel)},residents:{tableType:"residents",fetchAll:function(){L(u),L(l)},data:o,resetData:function(){return p()},isLoading:s,notFoundLabel:A(mo[0].notFoundLabel)},residencyRequests:{tableType:"residencyRequests",fetchAll:function(){return L(_)},data:x,resetData:function(){return v()},isLoading:E,notFoundLabel:A(mo[1].notFoundLabel),setStrip:M}}[t])),{},{fetchCard:j,showOverlay:O,hideOverlay:g,user:i,isMarinaLiteVersion:R}))]})]})}))),Ao=Object(o.b)((function(e){return{user:Object(S.X)(e),residents:Object(S.T)(e),requests:Object(S.P)(e),marinaRequests:Object(S.B)(e),isLoadingResidents:e.residents.isLoading,visitors:Object(S.bb)(e),isLoadingVisitors:e.visitors.isLoading,isLoadingRequests:e.requests.isLoading,permissions:Object(S.Y)(e)}}),(function(e){return{fetchRequests:function(){return e(Object(Ut.f)({request:Vi,actionSet:Yi}))},fetchResidents:function(){return e(Object(Si.a)())},resetResidents:function(){return e(Object(Si.c)())},fetchVisitors:function(){return e(Object(Ut.f)({request:Ii,actionSet:Li}))},resetVisitors:function(){return e(Object(Ut.f)({reset:!0,actionSet:Li}))},fetchCard:function(t){return e(Object(eo.e)(t))},getMarinaRequests:function(){return e(Object(Ut.f)({request:Fi,actionSet:Ji}))},resetMarinaRequests:function(){return e(Object(Ut.f)({reset:!0,actionSet:Ji}))}}}))(Ro),So=n(201),No=n(1731),Io={greenSearch:"/static/img/group-13.svg",iconRevenue:"/static/img/icon-revenue.svg",blueTower:"/static/img/group.svg"},Co={green:"progressGreen",yellow:"progressYellow",blue:"progressBlue"},wo=Object(D.a)((function(e){return{wrapper:{background:"#fff",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.13)",flex:1,marginRight:16},content:{padding:"30px 40px 0 16px"},titleBar:{display:"flex",alignItems:"center",justifyContent:"space-between"},title:{maxWidth:175,color:"#1A1A1B",fontSize:14,fontWeight:"bold",fontFamily:"Lato",textTransform:"uppercase",marginRight:10},progressSection:{margin:"20px 0"},progress:{height:8,borderRadius:4},progressBg:{backgroundColor:"#EAEAEA"},progressGreen:{backgroundColor:"#2eb7a9"},progressYellow:{backgroundColor:"#ffad1b"},progressBlue:{backgroundColor:"#33ade4"},PBTitle:{marginTop:8,color:"#253967"},bold:{fontWeight:"bold"},spacer:{width:"100%",height:1,backgroundColor:"#f3f6fe"},CTA:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"24px 16px"},lastSent:{color:"#8d8d8d",fontSize:14},button:{background:"#255EDD",color:"#fff",justifyContent:"center",marginLeft:50,"&:hover":{background:"#255EDD",color:"#fff",boxShadow:"0 3px 10px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12)"}}}}))((function(e){var t=e.classes,n=e.title,a=e.icon,r=e.value,i=e.color,o=e.progressBarTitle,s=e.lastSent,c=e.cta,l=e.noMargin,d=Object(re.a)().t;return Object(y.jsxs)("section",{className:t.wrapper,style:l?{marginRight:0}:{},children:[Object(y.jsxs)("div",{className:t.content,children:[Object(y.jsxs)("div",{className:t.titleBar,children:[Object(y.jsx)("div",{className:t.title,children:d(n)}),Object(y.jsx)("div",{className:t.icon,children:Object(y.jsx)("img",{src:Io[a],alt:a})})]}),Object(y.jsxs)("div",{className:t.progressSection,children:[Object(y.jsx)(No.a,{variant:"determinate",value:r<100?r:100,classes:{root:t.progress,colorPrimary:t.progressBg,barColorPrimary:t[Co[i]]}}),Object(y.jsxs)("div",{className:t.PBTitle,children:[Object(y.jsx)("span",{className:t.bold,children:"".concat(r,"% ")}),d(o)]})]})]}),Object(y.jsx)("div",{className:t.spacer}),Object(y.jsxs)("div",{className:t.CTA,children:[Object(y.jsx)("div",{className:t.lastSent,children:"".concat(d("MEMBERSHIP_DASHBAORD_PREVIOUSLY_SENT"),": ").concat(s||"-")}),Object(y.jsx)(pn.a,{label:c.label,onClick:c.onClick,customClasses:{root:t.button},bold:!0})]})]})})),Do=n(64),Po=n(620),Mo=n(613),Lo=n(614),Bo=n(899),ko=["#0C386D","#0C55B0","#46B6F6","#62E0CC","#7FDCC2","#9CE791","#FDE587","#F4A783","#F18283","#CE90E8","#7C8CF8","#8963DD"],Ho=["#fff","#353D57","#fff","#fff"],Vo=Object(D.a)((function(e){return{wrapper:{background:"#fff",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.13)",flex:1,paddingTop:16},content:{display:"flex",justifyContent:"space-around"},section:{display:"flex",flexDirection:"column",alignItems:"center",minWidth:300},sectionTitle:{display:"flex",alignItems:"center",fontSize:14,color:"#1A1A1B",fontWeight:"bold",textTransform:"uppercase"},infoIcon:{marginLeft:8},chartWrapper:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",minHeight:200}}}))((function(e){var t=e.classes,n=e.fetchYearList,i=e.membershipStats,o=e.getMarinaStats,s=Object(re.a)().t,c=Object(a.useState)([]),l=Object(b.a)(c,2),d=l[0],u=l[1],p=Object(a.useState)(_e()().format("YYYY")),m=Object(b.a)(p,2),h=m[0],f=m[1];Object(a.useEffect)((function(){function e(){return(e=Object(Le.a)(Me.a.mark((function e(){var t,a,r,i,o;return Me.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],e.next=3,n();case 3:a=e.sent,r=Object(Do.a)(a.payload);try{for(r.s();!(i=r.n()).done;)o=i.value,t.push(o.year)}catch(s){r.e(s)}finally{r.f()}u(t);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]),Object(a.useEffect)((function(){o(h)}),[h]);var j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,a=[];return!e||e.map((function(e){return a.push({name:n("dashboard_"+e.country),secondary:parseInt(e.customer_count),primary:e.redeem_nights_count,label:t})})).filter((function(e){return!!e.primary})),a},O=i&&i.visitors?i.visitors:[],g=i&&i.residents?i.residents:[],_=i&&i.residentsUniqueCount?i.residentsUniqueCount:0,v=i&&i.visitorsUniqueCount?i.visitorsUniqueCount:0,x=j(O,"visitors",s),E=j(g,"residents",s),T={},R=0;x.forEach((function(e){return T[e.name]?null:T[e.name]=ko[R++]})),E.forEach((function(e){return T[e.name]?null:T[e.name]=ko[R++]}));var A=function(e){var t=[];return e.forEach((function(e){return t.push(T[e.name])})),t},S=A(x),N=A(E),I=function(e,t,n,a){return 1===e[t]?s("dashboard_".concat(n)):s("dashboard_".concat(a))};return Object(y.jsxs)("div",{className:t.wrapper,children:[Object(y.jsx)(Bo.a,{yearList:d,selectedYear:h,setSelectedYear:f}),Object(y.jsxs)("div",{className:t.content,children:[Object(y.jsxs)("div",{className:t.section,children:[Object(y.jsxs)("div",{className:t.sectionTitle,children:[s("customers_visitors"),Object(y.jsx)(ao.a,{placement:"bottom-end",title:s("dashboard_visitorsChart"),children:Object(y.jsx)("img",{src:"static/img/icons-info_blue.svg",className:t.infoIcon,alt:"\xednfo"})})]}),Object(y.jsx)("div",{className:t.chartWrapper,children:Object(y.jsx)(Po.a,{data:x,children:Object(y.jsxs)(r.a.Fragment,{children:[Object(y.jsx)(Mo.a,{data:x,colors:S,labelColors:Ho,primaryLabel:I(x,"primary","night","nights"),secondaryLabel:I(x,"secondary","visitor","visitors"),showSecondary:!0,width:200,height:200,propSecondarySum:v,outerRadius:"70%",small:!0}),Object(y.jsx)(Lo.a,{payload:x,colors:S})]})})})]}),Object(y.jsxs)("div",{className:t.section,children:[Object(y.jsxs)("div",{className:t.sectionTitle,children:[s("customers_residents"),Object(y.jsx)(ao.a,{placement:"bottom-end",title:s("dashboard_residentsChart"),children:Object(y.jsx)("img",{src:"static/img/icons-info_blue.svg",className:t.infoIcon,alt:"\xednfo"})})]}),Object(y.jsx)("div",{className:t.chartWrapper,children:Object(y.jsx)(Po.a,{data:E,children:Object(y.jsxs)(r.a.Fragment,{children:[Object(y.jsx)(Mo.a,{data:E,colors:N,labelColors:Ho,primaryLabel:I(E,"primary","night","nights"),secondaryLabel:I(E,"secondary","resident","residents"),showSecondary:!0,width:200,height:200,propSecondarySum:_,outerRadius:"70%",small:!0}),Object(y.jsx)(Lo.a,{payload:E,colors:N})]})})})]})]})]})})),Fo=n(659),Wo=n(643),Uo=function(e){return{root:{display:"flex",alignItems:"flex-start",padding:"16px 0"},title:{fontSize:e.utils.pxToRem(20)},iconWrapper:{display:"flex",alignItems:"center",justifyContent:"center",width:46,height:"92%",borderRadius:50,cursor:"pointer",transition:"0.2s","&:hover":{opacity:"0.7",background:"rgba(0, 0, 0, 0.05)"}},icon:{fontSize:e.utils.pxToRem(17),fill:"rgba(0, 0, 0, 0.3)"},search:{height:46,width:346,borderRadius:50,padding:"0 0 0 24px"}}},Go={label:{color:"#1256AD",fontWeight:"bold",fontSize:"0.875rem"}},zo=Object(D.a)(Uo)((function(e){var t=e.classes,n=e.onClick;return Object(y.jsx)("div",{className:t.iconWrapper,onClick:n,testID:"searchButton",children:Object(y.jsx)(Wo.a,{className:t.icon})})})),Yo=Object(p.j)(Object(D.a)(Uo)((function(e){var t=e.classes,n=e.user,r=e.showOverlay,i=e.fetchCardData,o=e.history,s=e.hideOverlay,c=Object(re.a)().t,l=Object(a.useState)(""),d=Object(b.a)(l,2),u=d[0],p=d[1],m=Object(a.useState)(""),h=Object(b.a)(m,2),f=h[0],j=h[1],O=function(e){var t=encodeURIComponent(e.target.value).toUpperCase();r(),i(t).then((function(e){var a=e.payload,r=a.membership&&a.membership.boater&&a.membership.boater.email&&a.membership.boater.email.includes("demopickapier"),i=n.email&&n.email.includes("@pickapier.com"),l=a.homeMarina&&a.homeMarina.mail&&a.homeMarina.mail.includes("@pickapier");a.id&&-1!==a.id&&(!l||i||r)&&a.membership?a.membership&&a.membership.vessel?o.push({pathname:"/vessels/".concat(a.membership.vessel.id),search:"?tab=1",state:{ref:"membership_search"}}):a.membership&&a.membership.boater&&o.push({pathname:"/boaters/".concat(a.membership.boater.id),search:"?vessel_view=true&tab=1",state:{ref:"membership_search"}}):Object(Z.a)((function(){return s()}),300).then((function(){j(c("dashboard_cardNotFound",{card:t}))}))}))};return Object(y.jsx)("div",{className:t.root,children:Object(y.jsx)(Fo.a,{className:t.search,placeholder:c("dashboard_enterCode"),iconRight:zo,onIconClick:function(){return O({target:{value:u}})},customStyles:Go,onChange:function(e){p(e.target.value)},onEnterKeyDown:O,errorMessage:f,testID:"searchField"})})}))),qo=Object(o.b)((function(e){return{user:Object(S.X)(e)}}),(function(e){return{fetchCardData:function(t){return e(Object(eo.e)(t))},fetchActivityLog:function(t,n){return n?e(Object(eo.d)(t)).then(n):e(Object(eo.d)(t))},showOverlay:function(){return e(Object(qe.O)())},hideOverlay:function(){return e(Object(qe.o)())}}}))(Yo),Ko=n(1760),Xo=n(940),Qo=n(884),Zo=n(944),Jo=n.n(Zo),$o=function(e){var t=e.cx,n=e.cy,a=e.midAngle,r=e.outerRadius,i=e.width,o=Math.PI/180,s=Math.sin(-o*a),c=t+(r+.03*i)*Math.cos(-o*a),l=n+(r+.03*i)*s;return Object(y.jsxs)("g",{children:[Object(y.jsx)("circle",{cx:t,cy:n,r:.02*i,fill:"#666",stroke:"none"}),Object(y.jsx)("path",{d:"M".concat(t,",").concat(n,"L").concat(c,",").concat(l),strokeWidth:"6",stroke:"#666",fill:"none",strokeLinecap:"round"})]})},es=Object(D.a)((function(e){return{wrapper:{marginTop:-20,marginBottom:-54,position:"relative"},loadLabels:{position:"absolute",width:"100%",height:"100%",fontSize:14,color:"#253967"},low:{position:"absolute",width:"50%",textAlign:"right",right:220,top:60},medium:{position:"absolute",width:"100%",textAlign:"center",top:-10,left:5},high:{position:"absolute",width:"50%",textAlign:"left",left:227,top:60}}}))((function(e){var t=e.classes,n=e.loadLevel,a=void 0===n?0:n,r=Object(re.a)().t,i=300,o=1.8*a,s=[{value:60,color:"#D6EAF7"},{value:60,color:"#85C1E9"},{value:60,color:"#3498DA"}],c=s.map((function(e,t,n){var a=Object(co.a)(n).splice(0,t+1).reduce((function(e,t){return{value:e.value+t.value}})).value;return o>a-e.value&&o<=a})).findIndex((function(e){return e})),l=s.map((function(e){return e.value})).reduce((function(e,t){return e+t})),u=[{value:o},{value:0},{value:l-o}],b={startAngle:180,endAngle:0,cx:150,cy:75},p={innerRadius:26.25,outerRadius:60};return Object(y.jsxs)("div",{className:t.wrapper,children:[Object(y.jsxs)("div",{className:t.loadLabels,children:[Object(y.jsx)("div",{className:t.low,children:r("MEMBERSHIP_DASHBAORD_GAUGE_LOW")}),Object(y.jsx)("div",{className:t.medium,children:r("MEMBERSHIP_DASHBAORD_GAUGE_MEDIUM")}),Object(y.jsx)("div",{className:t.high,children:r("MEMBERSHIP_DASHBAORD_GAUGE_HIGH")})]}),Object(y.jsxs)(Ko.a,{width:i,height:150,children:[Object(y.jsx)(Xo.a,Object(d.a)(Object(d.a)(Object(d.a)({activeIndex:c,activeShape:Jo.a,data:s,fill:"#8884d8"},p),b),{},{children:s.map((function(e,t){return Object(y.jsx)(Qo.a,{fill:s[t].color},"cell-".concat(t))}))})),Object(y.jsx)(Xo.a,Object(d.a)({stroke:"none",activeIndex:1,activeShape:function(e){return Object(y.jsx)($o,Object(d.a)(Object(d.a)({},e),{},{width:i}))},data:u,outerRadius:p.innerRadius,fill:"none"},b))]})]})})),ts=Object(D.a)((function(e){return{wrapper:{background:"#fff",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.13)",flex:1,marginRight:16},content:{display:"flex",flexDirection:"column",alignItems:"center",padding:"32px 0 0 0"},title:{color:"#1A1A1B",fontSize:16,fontWeight:"bold"},zendeskButton:{border:"none",background:"transparent",color:"#255EDD",fontSize:e.utils.pxToRem(17),cursor:"pointer","&:hover":{textDecoration:"underline"}},listedIndicator:{fontSize:40,color:"#255EDD",fontWeight:"bold"},spacerLine:{width:"100%",height:1,background:"#f3f6fe",marginBottom:"32px"},description:{color:"#253967",fontWeight:"bold",fontSize:14,marginBottom:16}}}))((function(e){var t=e.classes,n=e.showDialog,r=e.hideDialog,i=e.ticketFormsList,o=e.listed,s=Object(re.a)().t,c=Object(a.useState)(!1),l=Object(b.a)(c,2),d=l[0],u=l[1],p=Object(a.useState)(!1),m=Object(b.a)(p,2),h=m[0],f=m[1];Object(a.useEffect)((function(){var e=window.zE;return function(){e("webWidget:on","close",(function(){}))}}),[]),Object(a.useEffect)((function(){var e=window.zE;d||(e("webWidget","reset"),e("webWidget","updateSettings",{contactForm:{ticketForms:i.filter((function(e){return 360001083500!==e.id}))}}))}),[h]);var j=function(){n({open:!0,title:"visitorCardPopup_title",description:"visitorCardPopup_subTitle",body:Object(un.a)(s("visitorCardPopup_text")),confirm:{label:"visitorCardPopup_CTA",onClick:function(){return function(){var e=window.zE;r(),u(!0),e("webWidget:on","open",(function(){console.info("zendesk widget opened"),f(!0)})),e("webWidget:on","close",(function(){console.info("zendesk widget closed"),u(!1),f(!1)})),e("webWidget","updateSettings",{contactForm:{ticketForms:i.filter((function(e){return 360001083500===e.id}))}}),e("webWidget","open")}()}}})};return Object(y.jsxs)("div",{className:t.wrapper,children:[Object(y.jsxs)("div",{className:t.content,style:{paddingBottom:24},children:[Object(y.jsx)("div",{className:t.title,children:s("dashboard_manageMembers")}),Object(y.jsx)(qo,{}),Object(y.jsxs)("div",{style:{display:"flex",fontSize:14,color:"#253967"},children:[s("dashboard_paperCard"),Object(y.jsx)("button",{className:t.zendeskButton,onClick:function(){return j()},children:s("visitorCardPopupMemberships")})]})]}),Object(y.jsx)("div",{className:t.spacerLine}),Object(y.jsxs)("div",{className:t.content,style:{paddingBottom:36,paddingTop:24},children:[Object(y.jsx)("div",{className:t.listedIndicator,children:Object(y.jsx)(es,{loadLevel:+o<=40?16.666666666666668:+o<=75?50:83.33333333333333})}),Object(y.jsx)("div",{className:t.description,children:s("MEMBERSHIP_DASHBAORD_GAUGE_DESCRIPTION")}),Object(y.jsx)(to.a,{label:"customers_add"})]})]})})),ns=Object(D.a)((function(e){return{wrapper:{padding:"16px"},statsWrapper:{marginTop:16,display:"flex",justifyContent:"space-between"},marinaStatsWrapper:{display:"flex",justifyContent:"space-between",minHeight:"calc(100vh - 453px)"}}}))((function(e){var t=e.classes,n=(e.user,e.getMembershipStats),r=e.resetMembershipStats,i=e.membershipStats,o=e.fetchYearList,s=e.stats,c=e.getMarinaStats,l=e.showDialog,d=e.hideDialog,u=e.ticketFormsList,b=Object(re.a)().t,p=Object(fa.b)();Object(a.useEffect)((function(){return n(),function(){r()}}),[]);var m=Object(a.useMemo)((function(){return i.boater_connections||{}}),[i]),h=Object(a.useMemo)((function(){return i.revenue_planning||{}}),[i]),f=Object(a.useMemo)((function(){return i.marina_traffic||{}}),[i]);return Object(y.jsxs)("div",{className:t.wrapper,children:[Object(y.jsxs)("div",{className:t.marinaStatsWrapper,children:[Object(y.jsx)(ts,{membershipStats:s,showDialog:l,hideDialog:d,ticketFormsList:u,listed:+i.residents_listed}),Object(y.jsx)(Vo,{fetchYearList:o,membershipStats:s,getMarinaStats:c})]}),Object(y.jsxs)("div",{className:t.statsWrapper,children:[Object(y.jsx)(wo,{title:"MEMBERSHIP_DASHBAORD_MARKETING_SECTION1_TITLE",icon:"greenSearch",value:+m.registered_boaters||0,lastSent:m.previously_sent?Object(ct.b)(f.previously_sent):"-",color:"green",progressBarTitle:"MEMBERSHIP_DASHBAORD_MARKETING_SECTION1_DESCRIPTION",cta:{label:b("MEMBERSHIP_DASHBAORD_MARKETING_SECTION1_CTA"),onClick:function(){return p.push("/memberships/grow_up?type=boater_connection")}}}),Object(y.jsx)(wo,{title:"MEMBERSHIP_DASHBAORD_MARKETING_SECTION2_TITLE",icon:"iconRevenue",value:+h.absence_reported||0,lastSent:h.previously_sent?Object(ct.b)(f.previously_sent):"-",color:"yellow",progressBarTitle:"MEMBERSHIP_DASHBAORD_MARKETING_SECTION2_DESCRIPTION",cta:{label:b("MEMBERSHIP_DASHBAORD_MARKETING_SECTION2_CTA"),onClick:function(){return p.push("/memberships/grow_up?type=improve_revenue")}}}),Object(y.jsx)(wo,{title:"MEMBERSHIP_DASHBAORD_MARKETING_SECTION3_TITLE",icon:"blueTower",value:+f.nights_redeemed||0,lastSent:f.previously_sent?Object(ct.b)(f.previously_sent):"-",color:"blue",progressBarTitle:"MEMBERSHIP_DASHBAORD_MARKETING_SECTION3_DESCRIPTION",cta:{label:b("MEMBERSHIP_DASHBAORD_MARKETING_SECTION3_CTA"),onClick:function(){return p.push("/memberships/grow_up?type=increase_traffic")}},noMargin:!0})]})]})})),as=Object(o.b)((function(e){return{user:Object(S.X)(e),membershipStats:Object(S.D)(e),stats:Object(S.E)(e),ticketFormsList:Object(S.W)(e)}}),(function(e){return{getMembershipStats:function(){return e(Object(So.b)())},resetMembershipStats:function(){return e(Object(So.f)())},fetchYearList:function(){return e(Object(ba.d)())},getMarinaStats:function(t){return e(Object(ba.b)(t))},showDialog:function(){return e(qe.I.apply(void 0,arguments))},hideDialog:function(){return e(Object(qe.i)())}}}))(ns),rs={grow_boater:"/static/img/grow_boater_header-icon.svg",improve_revenue:"/static/img/improve_revenue_header-icon.svg",increase_traffic:"/static/img/increese_traffic_header-icon.svg"},is=Object(D.a)((function(e){return{wrapper:{display:"flex",justifyContent:"space-between",padding:"48px 98px 64px 82px",background:"#255EDD",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.13)",borderRadius:4},text:{color:"#fff",marginRight:50},title:{fontSize:36,fontWeight:"bold",marginBottom:16},description:{fontSize:17}}}))((function(e){var t=e.classes,n=e.title,a=e.description,r=e.icon,i=Object(re.a)().t;return Object(y.jsxs)("div",{className:t.wrapper,children:[Object(y.jsxs)("div",{className:t.text,children:[Object(y.jsx)("div",{className:t.title,children:i(n)}),Object(y.jsx)("div",{className:t.description,children:i(a)})]}),Object(y.jsx)("img",{width:125,src:rs[r],alt:r})]})})),os=Object(D.a)((function(e){return{wrapper:{display:"flex",alignItems:"center",textDecoration:"underline",cursor:"pointer"}}}))((function(e){var t=e.classes,n=e.label,a=e.onClick,r=Object(re.a)().t;return Object(y.jsxs)("div",{className:t.wrapper,onClick:function(){return a()},children:[Object(y.jsx)("img",{style:{marginRight:4},src:"/static/img/download-black-18-dp.svg",alt:r("download")}),r(n)]})})),ss=Object(D.a)((function(e){return{wrapper:{display:"flex",justifyContent:"space-between"},card:{display:"flex",flexDirection:"column",justifyContent:"space-between",flex:1,boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.13)",background:"#fff",paddingTop:32,paddingBottom:32,minWidth:316,boxSizing:"border-box"},title:{fontSize:14,fontWeight:"bold",color:"#1A1A1B",textTransform:"uppercase",marginBottom:4},number:{fontSize:40,fontWeight:"700",color:"#255EDD"},descriptionText:{fontSize:14,color:"#8d8d8d",marginTop:4,marginBottom:24},plainText:{fontSize:14,color:"#253967"},spacerLine:{height:1,width:219,background:"#dddddd",marginTop:32,marginBottom:24},preview:{display:"flex",flexDirection:"column",alignItems:"center",cursor:"pointer"},blueLink:{fontSize:14,fontWeight:"bold",color:"#255EDD",cursor:"pointer",marginTop:12,textDecoration:"none"},placeholder:{width:150,border:"solid 1px #979797"}}}))((function(e){var t=e.classes,n=e.contacts,a=e.description,r=e.fromEmail,i=(e.templateURL,e.getCSV),o=e.getTemplate,s=e.subject,c=e.amplitudeDetails,l=Object(re.a)().t,u=Object(ja.a)().sendToAmplitude;return Object(y.jsxs)("div",{className:t.wrapper,children:[Object(y.jsxs)("div",{className:t.card,style:{paddingLeft:82,paddingRight:51},children:[Object(y.jsx)("div",{className:t.title,children:l("MEMBERSHIP_MARKETING_CONTACTS_FOUND")}),Object(y.jsx)("div",{className:t.number,children:n}),Object(y.jsx)("div",{className:t.descriptionText,children:l(a)}),Object(y.jsx)(os,{label:"MEMBERSHIP_MARKETING_DOWNLOAD_CSV",onClick:function(){i(),u({eventProperties:Object(d.a)(Object(d.a)({},c),{},{type:"download contacts"}),eventName:"marketing_interaction"})}})]}),Object(y.jsxs)("div",{className:t.card,style:{paddingLeft:48,paddingRight:40},children:[Object(y.jsxs)("div",{children:[Object(y.jsx)("div",{className:t.title,children:l("MEMBERSHIP_MARKETING_FROM")}),Object(y.jsx)("div",{className:t.plainText,children:r||"-"}),Object(y.jsx)("div",{className:t.title,style:{marginTop:24},children:l("MEMBERSHIP_MARKETING_SUBJECT_LINE")}),Object(y.jsx)("div",{className:t.plainText,children:l(s)}),Object(y.jsx)("div",{className:t.spacerLine}),Object(y.jsx)("div",{className:t.plainText,style:{marginBottom:8},children:l("MEMBERSHIP_MARKETING_HAVE_YOUR_OWN")})]}),Object(y.jsx)(os,{label:"MEMBERSHIP_MARKETING_HAVE_YOUR_OWN_CTA",onClick:function(){o("TEXT"),u({eventProperties:Object(d.a)(Object(d.a)({},c),{},{type:"download HTML"}),eventName:"marketing_interaction"})}})]}),Object(y.jsxs)("div",{className:t.card,style:{alignItems:"center"},children:[Object(y.jsx)("div",{className:t.preview,onClick:function(){return o("HTML")},children:Object(y.jsx)("img",{src:"/static/img/placeholder_email.png",className:t.placeholder})}),Object(y.jsx)("span",{className:t.blueLink,onClick:function(){return o("HTML")},children:l("MEMBERSHIP_MARKETING_PREVIEW")})]})]})})),cs=Object(D.a)((function(e){return{wrapper:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"24px 0",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.13)",borderRadius:4,background:"#fff"},button:{background:"#255EDD",color:"#fff",justifyContent:"center","&:hover":{background:"#255EDD",color:"#fff",boxShadow:"0 3px 10px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12)"}},disabled:{cursor:"default",color:"#fff",background:"rgba(0, 73, 245, 0.5)","&:hover":{background:"rgba(0, 73, 245, 0.5)",color:"#fff",boxShadow:"none",cursor:"not-allowed"}},lastSent:{color:"#8d8d8d",fontSize:14,marginTop:16}}}))((function(e){var t=e.classes,n=e.lastSent,r=e.onClick,i=e.contacts,o=(e.emailDetails,e.showDialog),s=e.hideDialog,c=e.showOverlay,l=e.hideOverlay,u=e.fetchStats,b=e.amplitudeDetails,p=Object(re.a)().t,m=Object(ja.a)().sendToAmplitude,h=Object(a.useMemo)((function(){return _e()().format("DD/MM/YYYY")===_e()(n).format("DD/MM/YYYY")||!+i}),[i,n]);return Object(y.jsxs)("div",{className:t.wrapper,children:[Object(y.jsx)(pn.a,{label:p("MEMBERSHIP_MARKETING_CTA"),onClick:function(){h||(c(),r().then((function(e){"SEND_MARKETING_EMAIL_SUCCESS"===e.type?Object(Z.a)((function(){u(),l()}),300).then((function(){return o({open:!0,title:"MEMBERSHIP_MARKETING_SEND_SUCCESS_POPUP_TITLE",description:"MEMBERSHIP_MARKETING_SEND_SUCCESS_POPUP_BODY",confirm:{label:"MEMBERSHIP_MARKETING_SEND_SUCCESS_POPUP_CTA",onClick:function(){return s()}}})})).then((function(){m({eventProperties:Object(d.a)(Object(d.a)({},b),{},{type:"email sent"}),eventName:"marketing_interaction"})})):Object(Z.a)((function(){u(),l()}),300).then((function(){return o({open:!0,title:"customers_errorOccurred",confirm:{label:"OK",onClick:function(){return s()}}})}))})))},customClasses:h?{root:t.disabled}:{root:t.button},isDisabled:h,bold:!0}),Object(y.jsx)("div",{className:t.lastSent,children:"".concat(p("MEMBERSHIP_DASHBAORD_PREVIOUSLY_SENT"),": ").concat(n?Object(ct.b)(_e()(n)):"-")})]})})),ls=n(410),ds={boater_connection:"BOATER_CONNECTIONS",improve_revenue:"REVENUE_PLANNING",increase_traffic:"MARINA_TRAFFIC"},us={boater_connection:{title:"MEMBERSHIP_MARKETING_SECTION1_TITLE",description:"MEMBERSHIP_MARKETING_SECTION1_DESCRIPTION",icon:"grow_boater"},improve_revenue:{title:"MEMBERSHIP_MARKETING_SECTION2_TITLE",description:"MEMBERSHIP_MARKETING_SECTION2_DESCRIPTION",icon:"improve_revenue"},increase_traffic:{title:"MEMBERSHIP_MARKETING_SECTION3_TITLE",description:"MEMBERSHIP_MARKETING_SECTION3_DESCRIPTION",icon:"increase_traffic"}},bs={boater_connection:{description:"MEMBERSHIP_MARKETING_CONTACTS_SECTION1"},improve_revenue:{description:"MEMBERSHIP_MARKETING_CONTACTS_SECTION2"},increase_traffic:{description:"MEMBERSHIP_MARKETING_CONTACTS_SECTION3"}},ps={boater_connection:"TE41_MARKETING1_SUBJECT",improve_revenue:"TE42_MARKETING2_SUBJECT",increase_traffic:"TE43_MARKETING3_SUBJECT"},ms=Object(D.a)((function(e){return{wrapper:{display:"flex",justifyContent:"center",paddingTop:24},content:{width:956},spacer:{height:12}}}))((function(e){var t=e.classes,n=(e.user,e.getSectionDetails),r=e.resetSectionDetails,i=e.sectionDetails,o=e.emailDetails,s=e.sendMarketingEmail,c=e.showDialog,l=e.hideDialog,d=e.showOverlay,u=e.hideOverlay,b=e.getCSV,p=e.getTemplate,m=Object(re.a)().t,h=Object(ja.a)().sendToAmplitude,f=new URLSearchParams(window.location.search).get("type"),j=function(){n(ds[f])};Object(a.useEffect)((function(){return f&&j(),function(){r()}}),[f]);var O=Object(a.useMemo)((function(){return i&&i.screen_details||{}}),[i]),g={type:"section clicked",goal:f,number_of_contacts:O.residents_found,metric:O.metric,previously_sent:O.previously_sent};return Object(a.useEffect)((function(){h({eventProperties:g,eventName:"marketing_interaction"})}),[]),Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)(ls.a,{defaultTitle:"".concat(m("navigation_goBack",{path:m("memberships")})),defaultPath:"/memberships"}),Object(y.jsx)("div",{className:t.wrapper,children:Object(y.jsxs)("div",{className:t.content,children:[Object(y.jsx)(is,{title:us[f].title,description:us[f].description,icon:us[f].icon}),Object(y.jsx)("div",{className:t.spacer}),Object(y.jsx)(ss,{contacts:O.residents_found,description:bs[f].description,fromEmail:O.from_email,templateURL:O.template_url,getCSV:function(){return b(ds[f])},getTemplate:function(e){return p(ds[f],e)},subject:ps[f],amplitudeDetails:g}),Object(y.jsx)("div",{className:t.spacer}),Object(y.jsx)(cs,{lastSent:O.previously_sent,contacts:O.residents_found,emailDetails:o,onClick:function(){return s(ds[f])},showDialog:c,hideDialog:l,showOverlay:d,hideOverlay:u,fetchStats:j,amplitudeDetails:g})]})})]})})),hs=Object(o.b)((function(e){return{user:Object(S.X)(e),sectionDetails:Object(S.U)(e),emailDetails:Object(S.u)(e)}}),(function(e){return{getSectionDetails:function(t){return e(Object(So.c)(t))},sendMarketingEmail:function(t){return e(Object(So.h)(t))},getCSV:function(t){return e(Object(So.a)(t))},resetSectionDetails:function(){return e(Object(So.g)())},showDialog:function(){return e(qe.I.apply(void 0,arguments))},hideDialog:function(){return e(Object(qe.i)())},showOverlay:function(){return e(Object(qe.O)())},hideOverlay:function(){return e(Object(qe.o)())},getTemplate:function(t,n){return e(Object(So.d)(t,n))}}}))(ms),fs=n(482),js=n(296),Os="https://pickapier-marina.zendesk.com/api/v2/ticket_forms/show_many.json?include=ticket_fields&locale=en-US&associated_to_brand=true&end_user_visible=true&active=true",gs=function(){return fetch(Os).then((function(e){return e.json()})).then((function(e){return e.ticket_forms}))},_s=Object(Ut.b)("GET_ALL_TICKET_FORMS"),vs=_s.request,xs=_s.success,Es=_s.failure,ys=_s.reset,Ts=_s.set,Rs=function(){return Object(Ut.f)({request:gs,actionSet:Ts})},As=function(){return Object(Ut.f)({reset:!0,actionSet:Ts})},Ss={ticketForms:[],isLoading:!0},Ns=n(232),Is=function(e){return Object(y.jsx)("svg",{width:"37",height:"36",viewBox:"0 0 37 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(y.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.204 15.35C1.554 6.531 9.335.003 18.499 0 28.717 0 37 8.059 37 18s-8.283 18-18.501 18c-.736 0-1.47-.043-2.2-.127V5.293h-3.196v29.929C4.339 32.619-1.147 24.167.203 15.349zM23.894 18c0 7.016-2.416 12.706-5.395 12.706h.001c7.213 0 13.06-5.689 13.06-12.706 0-7.018-5.847-12.706-13.06-12.706 2.98 0 5.394 5.69 5.394 12.706z",fill:"#fff"})})};Is.displayName="PickAPierLogo",Is.muiName="SvgIcon";var Cs=Is,ws=function(e){return Object(y.jsx)("svg",{width:"32",height:e.height||"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(y.jsx)("path",{d:"M26.666 5.333H5.333A2.667 2.667 0 0 0 2.666 8v16a2.667 2.667 0 0 0 2.667 2.666h21.333A2.666 2.666 0 0 0 29.333 24V8a2.667 2.667 0 0 0-2.667-2.667zm0 6.267-10.667 7.112L5.333 11.6V8.396l10.666 7.11 10.667-7.11V11.6z",fill:"#fff"})})};ws.displayName="EnvelopIcon",ws.muiName="EnvelopIcon";var Ds=ws,Ps=n(266),Ms=n.n(Ps),Ls=n(628),Bs=n.n(Ls),ks=function(e){return Object(y.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(y.jsx)("g",{clipPath:"url(#a)",stroke:"#BDBDBD",strokeWidth:"2.36",strokeMiterlimit:"10",children:Object(y.jsx)("path",{d:"M19.5 13.92a7.448 7.448 0 0 0 0-10.55 7.47 7.47 0 0 0-10.55 0 7.48 7.48 0 0 0-2.11 6.37 7.45 7.45 0 0 0 2.11 4.18 7.452 7.452 0 0 0 10.55 0zM9.4 13.49l-8.39 8.38M3.74 13.81l2.67 2.66M.84 16.72l2.66 2.66"})}),Object(y.jsx)("defs",{children:Object(y.jsx)("clipPath",{id:"a",children:Object(y.jsx)("path",{fill:"#fff",d:"M0 0h22.88v22.71H0z"})})})]})};ks.displayName="MarinaLiteMenuAdminPanel";var Hs=ks,Vs=function(e){return Object(y.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(y.jsx)("path",{d:"M6.859 7.806H4.143V3.6l7.974-1.7 8.286 1.7v4.206h-2.779M4.143 16.287h16.26M4.143 12.234h16.26M1 20.492h22",stroke:"#BDBDBD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};Vs.displayName="MarinaLiteMenuMarinas";var Fs=Vs,Ws=function(e){return Object(y.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(y.jsx)("path",{d:"M23 10.5V2.75c0-.464-.193-.91-.537-1.237A1.878 1.878 0 0 0 21.167 1H2.833c-.486 0-.952.184-1.296.513A1.71 1.71 0 0 0 1 2.75v17.5c0 .464.193.91.537 1.237.344.329.81.513 1.296.513H12",stroke:"#BDBDBD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(y.jsx)("path",{d:"M17.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7z",stroke:"#BDBDBD",strokeWidth:"2"}),Object(y.jsx)("path",{d:"m20 19 3 2M6 6h12M6 11h5",stroke:"#BDBDBD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})};Ws.displayName="MarinaLiteMenuAdminReservations";var Us=Ws,Gs=function(e){return Object(y.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(y.jsx)("path",{d:"M16.995 3.215a9.866 9.866 0 0 1 4.228 4.701 9.618 9.618 0 0 1 .456 6.25 9.787 9.787 0 0 1-3.5 5.244 10.128 10.128 0 0 1-6.027 2.094 10.14 10.14 0 0 1-6.09-1.914 9.803 9.803 0 0 1-3.66-5.137 9.615 9.615 0 0 1 .263-6.261 9.849 9.849 0 0 1 4.08-4.825M11.998 13.286V2.178",stroke:"#BDBDBD",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round"})})};Gs.displayName="MarinaLiteMenuLogout";var zs=Gs,Ys=function(e){return Object(y.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(y.jsx)("path",{d:"M22.5 6.5h-12M3.5 6.5h-2",stroke:"#BDBDBD",strokeWidth:"2",strokeLinecap:"round"}),Object(y.jsx)("circle",{cx:"7.5",cy:"6.5",r:"3",transform:"rotate(-180 7.5 6.5)",stroke:"#BDBDBD",strokeWidth:"2"}),Object(y.jsx)("path",{d:"M1.5 17.5h12M20.5 17.5h2",stroke:"#BDBDBD",strokeWidth:"2",strokeLinecap:"round"}),Object(y.jsx)("circle",{cx:"16.5",cy:"17.5",r:"3",stroke:"#BDBDBD",strokeWidth:"2"})]})};Ys.displayName="MarinaLiteMenuMarinaSettings";var qs=Ys,Ks=function(e){return Object(y.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(y.jsx)("rect",{x:"1",y:"5",width:"22",height:"15",rx:"1.52",stroke:"#BDBDBD",strokeWidth:"2",strokeLinejoin:"round"}),Object(y.jsx)("circle",{cx:"17.825",cy:"9.735",r:"1.938",stroke:"#BDBDBD",strokeWidth:"2",strokeLinejoin:"round"}),Object(y.jsx)("path",{d:"M4.5 12.5h6M4.5 16h13",stroke:"#BDBDBD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})};Ks.displayName="MarinaLiteMenuMemberships";var Xs=Ks,Qs=function(e){return Object(y.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(y.jsx)("path",{d:"M17 7A5 5 0 1 1 7 7a5 5 0 0 1 10 0",stroke:"#BDBDBD",strokeWidth:"2"}),Object(y.jsx)("path",{d:"M21 21.961c0-.05 0-.1-.004-.15-.125-3.106-4.025-5.709-8.704-5.808C7.192 15.896 3 18.607 3 21.975V22",stroke:"#BDBDBD",strokeWidth:"2",strokeLinecap:"round"})]})};Qs.displayName="MarinaLiteMenuUserSettings";var Zs=Qs,Js=function(e){return Object(y.jsxs)("svg",{width:"26",height:"24",viewBox:"0 0 26 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(y.jsx)("path",{clipRule:"evenodd",d:"m12.711 18.71-5.1-5.1a2.277 2.277 0 1 1 3.221-3.22l3.245 3.244 6.076-8.1a2.277 2.277 0 1 1 3.643 2.733l-7.652 10.2a2.276 2.276 0 0 1-3.433.243z",stroke:"#BDBDBD",strokeWidth:"2",strokeLinejoin:"round"}),Object(y.jsx)("path",{d:"m12.705 8.537 2.253-3.006a2.28 2.28 0 0 1 2.45-.823M9.891 19.246a2.277 2.277 0 0 1-2.373-.536l-5.1-5.1a2.277 2.277 0 0 1 2.364-3.76",stroke:"#BDBDBD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})};Js.displayName="MarinaLiteMenuVacancies";var $s=Js,ec=n(1741),tc=n(1767),nc=n(1768),ac=n(1766),rc=n(1739),ic=n(1740),oc={color:"#ffffff",fontSize:32},sc=Object(D.a)((function(e){return{toolbar:{"& .MuiButton-text":{padding:"4px 0",minWidth:40,"&:hover":{backgroundColor:"#3d5489"}}},drawer:{minHeight:"100%",width:257,backgroundColor:"#ffffff"},header:{display:"flex",alignItems:"center",padding:"12px 24px",backgroundColor:"#253967","& .MuiButton-text":{padding:"4px 0",minWidth:40,"&:hover":{backgroundColor:"#3d5489"}}},list:{padding:"20px 0","& .MuiListItem-root":{padding:"10px 0 10px 24px"},"& .MuiListItem-root.Mui-selected:hover":{backgroundColor:"#f2f2f2","& .MuiTypography-root":{color:"#4f4f4f"}},"& .MuiListItem-root.Mui-selected":{backgroundColor:"#ffffff"},"& .MuiListItem-root.Mui-disabled":{pointerEvents:"auto"}},menuIcon:{marginRight:16,height:24,width:24},listItemText:{"& .MuiTypography-root":{fontSize:15,fontFamily:"Lato",color:"#828282"}},listItemTextActive:{"& .MuiTypography-root":{fontWeight:600,color:"#3661f6"}},divider:{margin:"0 70px 0 24px"},collapseItem:{"& .MuiTypography-root":{fontWeight:"bold",paddingLeft:20}}}}))((function(e){var t=e.classes,n=e.history,i=e.location,o=e.logout,s=e.user,c=e.showWalkThrough,l=e.showARPopup,u=s.association_manager,p=s.is_admin,h="ALLOWED"===s.permissions.marina_settings,f=s.marina.marina_settings.permissions,j={id:"association",items:[{id:"adminPanel",label:"navigation_adminPanel",to:"/dashboard"},{id:"marinas",label:"navigation_marinas",to:"/marinas"}]},O={id:"admin",sectionTitle:"Administrator",isOpen:function(){return!P.admin},onCollapse:function(){return M(Object(d.a)(Object(d.a)({},P),{},{admin:!P.admin}))},items:[{id:"adminPanel",label:"navigation_adminPanel",to:"/ad-panel",icon:Object(y.jsx)(Hs,{})},{id:"boaters",label:"navigation_boaters",to:"/boaters",icon:Object(y.jsx)(yr,{})},{id:"reservationsAdmin",label:"navigation_reservations",to:"/reservations-admin",icon:Object(y.jsx)(Us,{})},{id:"marinas",label:"navigation_marinas",to:"/marinas",icon:Object(y.jsx)(Fs,{})},{to:"/gift-points",icon:Object(y.jsx)(pr,{}),label:"navigation_gift_points"},{id:"promotions",label:"Promotions",to:"/promotions",icon:Object(y.jsx)(ur,{})},{id:"reports",label:"navigation_reports",to:"/reports",icon:Object(y.jsx)(Rr,{})},{id:"configuration",label:"Configuration",to:"/configuration",icon:Object(y.jsx)(Bt,{})}],collapse:!0};var g={id:"topMenu",items:[{id:"reservations",label:"reservations",to:"/",icon:Object(y.jsx)(Ir,{}),disabled:!f.reservation,disabledCb:f.reservation?null:function(){return c()}},{id:"history",label:"navigation_history",to:"/history",icon:Object(y.jsx)(Sr,{}),disabled:!f.reservation,disabledCb:f.reservation?null:function(){return c()}},{id:"memberships",label:"memberships",to:"/memberships",icon:Object(y.jsx)(Xs,{})},{id:"vacancies",label:"navigation_absenceReports",to:window.localStorage.getItem("absence_experience_".concat(s.id))?"/vacancies":"/vacancies?first_visit=true",icon:Object(y.jsx)($s,{}),disabled:!f.absence_report,disabledCb:f.absence_report?null:function(){return l(!0)}},{id:"berths",label:"DESKTOP_DOCKWALKER_VIEW_SIDEMENU_CTA",to:"/berths",icon:Object(y.jsx)(wr,{})}]},_={id:"bottomMenu",items:[{id:"marinaSettings",label:"marina_settings",to:"/marina_settings",icon:Object(y.jsx)(qs,{}),hidden:!h},{id:"userSettings",label:"userSettings",to:"/user_settings",icon:Object(y.jsx)(Zs,{})},{id:"logout",label:"login_logout",to:"/login",backendRequest:"logout",icon:Object(y.jsx)(zs,{})}]},v=Object(re.a)().t,x=r.a.useState(!1),E=Object(b.a)(x,2),T=E[0],R=E[1],A=Object(a.useState)(null),S=Object(b.a)(A,2),N=S[0],I=S[1],w=Object(a.useState)({admin:!0}),D=Object(b.a)(w,2),P=D[0],M=D[1],L={logout:o},B=function(){R(!1)};Object(a.useEffect)((function(){var e=i.pathname,t=Ms()([].concat(Object(co.a)(j.items),Object(co.a)(O.items),Object(co.a)(g.items),Object(co.a)(_.items)),(function(t){return e===t.to}));t&&I(t.id)}),[i]);var k,H=function(e){var a=e.id,r=e.label,i=e.to,o=e.backendRequest,s=e.hidden,c=void 0!==s&&s,l=e.disabled,d=void 0!==l&&l,u=e.disabledCb,b=e.icon,p=N===a,h=p?Object(C.a)(t.listItemText,t.listItemTextActive):t.listItemText;return c?null:Object(y.jsxs)(jt.a,{button:!0,disabled:d,component:m.b,to:i,selected:p,onClick:function(e){return function(e,t,a,r){r?(e.preventDefault(),r()):(B(),a&&(e.preventDefault(),L[a]().then((function(){return n.push(t)}))))}(e,i,o,u)},children:[Object(y.jsx)("i",{className:t.menuIcon,children:b}),Object(y.jsx)(Fe.a,{className:h,primary:v(r)})]},a)};return Object(a.useEffect)((function(){var e=O.items.some((function(e){return e.id===N}));M(e?Object(d.a)(Object(d.a)({},P),{},{admin:!1}):Object(d.a)(Object(d.a)({},P),{},{admin:!0}))}),[N]),Object(y.jsxs)(tc.a,{children:[Object(y.jsx)("div",{className:t.toolbar,children:Object(y.jsx)(He.a,{"aria-label":"open drawer",onClick:function(){R(!0)},children:Object(y.jsx)(Bs.a,{style:oc})})}),Object(y.jsxs)(nc.a,{classes:{paper:t.drawer},anchor:"left",open:T,ModalProps:{onBackdropClick:B,onEscapeKeyDown:B},children:[Object(y.jsx)("div",{className:t.header,children:Object(y.jsx)(He.a,{onClick:B,children:Object(y.jsx)(Bs.a,{style:oc})})}),(k=u?[j]:p?[O,g,_]:[g,_],k.map((function(e){var n=e.collapse,r=e.items;return Object(y.jsxs)(a.Fragment,{children:[Object(y.jsx)("div",{className:t.divider,children:Object(y.jsx)(ye.a,{})}),Object(y.jsx)(Ot.a,{className:t.list,children:n?Object(y.jsxs)(y.Fragment,{children:[Object(y.jsxs)(ac.a,{onClick:e.onCollapse,children:[Object(y.jsx)(Fe.a,{className:Object(C.a)(t.listItemText,t.collapseItem),primary:e.sectionTitle}),e.isOpen()?Object(y.jsx)(rc.a,{}):Object(y.jsx)(ic.a,{})]}),Object(y.jsx)(ec.a,{in:e.isOpen(),timeout:"auto",unmountOnExit:!0,children:r.map((function(e){return H(e)}))})]}):r.map((function(e){return H(e)}))},e.id)]},e.id)})))]})]})})),cc=Object(p.j)(Object(D.a)((function(e){return{root:{},appBar:{position:"sticky",background:e.marinaLiteVersion.backgroundColor},toolbar:{alignItems:"center",width:"100%",padding:"12px 24px",boxSizing:"border-box",justifyContent:"space-between"},toolSection:{display:"flex",alignItems:"center"},date:{color:e.marinaLiteVersion.color,margin:"0 24px",fontSize:15,lineHeight:1.2},warning:{background:"#3CB043",color:"#fff",fontWeight:"bold",padding:"3px 10px",fontSize:12,borderRadius:3},loginInfo:{display:"flex",flexDirection:"column",alignItems:"flex-start",marginRight:16,fontSize:12},userName:{fontSize:15,lineHeight:"20px"},userCode:{lineHeight:"16px"},logo:{height:36}}}))((function(e){var t=e.classes,n=e.user,r=e.history,i=e.location,o=e.logout,s=e.saveUserLang,c=e.showWalkThrough,l=e.showARPopup,d=e.isLoading,u=Object(re.a)(),p=u.t,m=u.i18n,h=Object(a.useState)(Object(ct.d)(_e()())),f=Object(b.a)(h,2),j=f[0],O=f[1];Object(a.useEffect)((function(){var e=setInterval((function(){return O(Object(ct.d)(_e()()))}),5e3);return function(){clearInterval(e)}}),[]);var g=n&&n.first_name?n.first_name:"",_=n&&n.last_name?n.last_name:"",v="".concat(g," ").concat(_),x=n?"".concat(n.marina.name," (").concat(n.marina.code,")"):null;return d?null:Object(y.jsx)("div",{className:t.root,children:Object(y.jsx)(ve.a,{elevation:0,className:t.appBar,children:Object(y.jsxs)(xe.a,{disableGutters:!0,className:t.toolbar,children:[Object(y.jsxs)("div",{className:t.toolSection,children:[n&&Object(y.jsx)(sc,{history:r,location:i,logout:o,user:n,showWalkThrough:c,showARPopup:l}),Object(y.jsxs)("div",{className:t.date,testID:"todaysHeader",children:[j," "]}),!1]}),Object(y.jsxs)("div",{className:t.toolSection,children:[n&&!n.association_manager&&Object(y.jsx)(sr,{type:"notifications",icon:Object(y.jsx)(lr,{height:"24"}),emptyState:p("notifications_EmptyState"),header:p("notifications_header")}),n&&!n.association_manager&&Object(y.jsx)(sr,{type:"messages",icon:Object(y.jsx)(Ds,{height:"24"}),emptyState:p("messages_recentChatsEmptyState"),header:p("messages_recentChatsHeader")}),Object(y.jsx)(Ge,{liteVersion:!0,i18n:m,setLocale:function(){O(Object(ct.d)(_e()()))},saveUserLang:s,user:n,alignOptions:"right"}),Object(y.jsxs)("div",{className:t.loginInfo,testID:"marinaInfo",children:[Object(y.jsx)("div",{className:t.userName,testID:"userName",children:v}),x?Object(y.jsx)("div",{className:t.userCode,testID:"marinaName",children:x.length<30?x:x.substring(0,27)+"..."}):null]}),Object(y.jsx)("div",{className:t.logo,children:Object(y.jsx)(Cs,{})})]})]})})})}))),lc=Object(o.b)((function(e){return{termsOfServiceLink:Object(S.V)(e)}}))(cc),dc=["classes","children","logout","saveUserLang","user","uiMix","showWalkThrough","showARPopup","isLoading"],uc=Object(D.a)((function(e){return{wrapper:{display:"flex",justifyContent:"flex-end",flexDirection:"row",flex:1,paddingRight:"-1em"},gridWrap:{display:"flex",flexDirection:"column",flex:1,height:"100%"},content:{flex:1,position:"relative",maxHeight:"calc(100vh - 64px)",overflow:"hidden",backgroundColor:e.palette.background.main}}}))((function(e){var t=e.classes,n=e.children,i=e.logout,o=e.saveUserLang,s=e.user,c=e.uiMix,l=e.showWalkThrough,d=e.showARPopup,p=e.isLoading,m=Object(u.a)(e,dc),h=Object(a.useState)({}),f=Object(b.a)(h,2),j=f[0],O=(f[1],Object(a.useState)(null)),g=Object(b.a)(O,2),_=g[0],v=g[1],x=Object(a.useState)(!0),E=Object(b.a)(x,2),T=E[0],R=E[1];Object(a.useEffect)((function(){v(r.a.createRef())}),[]);var A=_&&_.current&&_.current.scrollHeight;return Object(a.useEffect)((function(){_&&(_.current.clientWidth<_.current.scrollWidth||_.current.clientHeight<_.current.scrollHeight)?R(!0):_&&R(!1)}),[_,j,A]),Object(a.useEffect)((function(){var e,t=_&&_.current;return Object(Z.a)((function(){})).then((function(){if(T&&_)try{e=t&&new je.a(_&&_.current)}catch(n){e&&(e.destroy(),e=null)}})),function(){e&&(e.destroy(),e=null)}}),[j,_,T]),Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)(se.a,{viewAria:"main",open:c.isLoading}),Object(y.jsx)(Oe.a,{container:!0,justify:"center",children:Object(y.jsxs)(Oe.a,{item:!0,xs:12,className:t.gridWrap,children:[Object(y.jsx)(lc,{isLoading:p,saveUserLang:o,logout:i,user:s,showWalkThrough:l,showARPopup:d}),Object(y.jsx)("div",{className:t.wrapper,children:Object(y.jsx)("main",{id:"main-content-wrapper",ref:_,className:t.content,children:Object(y.jsx)("div",{style:{height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"},children:r.a.Children.map(n,(function(e){return r.a.cloneElement(e,m)}))})})})]})})]})})),bc=Object(p.j)(Object(D.a)((function(e){return{paper:{overflow:"hidden",width:"88vw",maxWidth:"88vw",height:"calc(100vh - 134px)"},scrollWrapper:{maxHeight:"100%",overflow:"hidden",maxWidth:"100%"},closeBtn:{zIndex:2,position:"absolute",right:0,top:15,padding:"5px 8px"}}}))((function(e){var t=e.isOpen,n=e.classes,a=e.hideCustomersPopup;e.history;return Object(y.jsx)("div",{children:Object(y.jsxs)(sn.a,{open:t,classes:{paper:n.paper},children:[Object(y.jsx)(He.a,{className:n.closeBtn,onClick:a,children:Object(y.jsx)(on.a,{})}),Object(y.jsx)("div",{className:n.scrollWrapper,children:Object(y.jsx)(Ao,{isMarinaLiteVersion:!0})})]})})}))),pc=Object(o.b)((function(e){return{isOpen:e.uiMix.customersPopup.open,id:e.uiMix.customersPopup.id,edit:e.uiMix.customersPopup.edit}}),(function(e){return{hideCustomersPopup:function(){return e(Object(qe.h)())}}}))(bc),mc=Object(p.j)((function(e){var t=Object(re.a)().t,n=Object(a.useMemo)((function(){return new URLSearchParams(location.search).toString()}),[location.search]);Object(a.useEffect)((function(){e.historyChange("".concat(e.history.location.pathname).concat(n?"?".concat(n):""))}),[e.history.location.pathname,e.history.location.search,n]),Object(a.useEffect)((function(){e.globalCount?document.title="(".concat(e.globalCount,") Pick-A-Pier"):document.title="Pick-A-Pier"}),[e.globalCount]);var r=Object(d.a)({},e.uiMix.dialog);return Object(a.useEffect)((function(){e.common.error&&Object(Z.a)((function(){e.showDialog({open:!0,title:"customers_errorOccurred",cancel:{label:"close",onClick:function(){return e.hideDialog()}}})}))}),[e.common.error]),Object(y.jsxs)(y.Fragment,{children:[r.open&&Object(y.jsx)(ia.a,Object(d.a)(Object(d.a)({title:r.title&&t(r.title),description:r.description&&t(r.description),isOpen:r.open,body:r.body&&r.body},function(){var e={};return r.confirm&&r.confirm.label&&(e=Object(d.a)(Object(d.a)({},e),{},{confirm:{label:r.confirm.label&&t(r.confirm.label),onClick:r.confirm.onClick}})),r.cancel&&r.cancel.label&&(e=Object(d.a)(Object(d.a)({},e),{},{cancel:{label:r.cancel&&t(r.cancel.label),onClick:r.cancel&&r.cancel.onClick}})),r.extraAction&&r.extraAction.label&&(e=Object(d.a)(Object(d.a)({},e),{},{extraAction:{label:r.extraAction.label&&t(r.extraAction.label),onClick:r.extraAction.onClick}})),e}()),{},{isMarinaLiteVersion:!0})),e.uiMix.walkThroughOpen&&Object(y.jsx)(fn,{}),e.uiMix.ARPopup.open&&Object(y.jsx)(xn,{}),e.uiMix.addReservationDialog.open&&Object(y.jsx)(Ma,{}),e.uiMix.allocateVesselPopup.open&&Object(y.jsx)(Qn,{}),e.uiMix.differentMatchingPopup.open&&Object(y.jsx)(ta,{}),e.uiMix.chatPopup.open&&Object(y.jsx)(da,{}),e.uiMix.residencyDeclinePopup.open&&Object(y.jsx)(ga,{}),e.uiMix.membershipDeclinePopup.open&&Object(y.jsx)(va,{}),e.uiMix.reservationDeclinePopup.open&&Object(y.jsx)(Aa,{}),e.uiMix.discardChangesPopup.open&&Object(y.jsx)(Ia,{}),e.uiMix.multipleBerthsPopup.open&&Object(y.jsx)(wa,{}),e.uiMix.berthInfoPopup.open&&Object(y.jsx)(Un,{}),e.uiMix.reservationPopup.open&&Object(y.jsx)(Lr,{}),e.uiMix.vacancyPopup.open&&Object(y.jsx)($r,{}),e.uiMix.customersPopup.open&&Object(y.jsx)(pc,{}),Object(y.jsx)(ra,{}),Object(y.jsx)(uc,Object(d.a)({},e))]})})),hc=n(491),fc=n(485),jc=n(486),Oc=n(946),gc=n.n(Oc),_c=n(640),vc=Object(p.j)(Object(D.a)((function(e){return{screenWrapper:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},formWrapper:{display:"flex",flexDirection:"column",border:"1px solid gray",borderRadius:"2px",backgroundColor:"white",padding:20,width:500},csvReader:{display:"flex",flexDirection:"row",marginBottom:10},browseFile:{width:"20%"},acceptedFile:{border:"1px solid #ccc",height:45,lineHeight:2.5,paddingLeft:10,width:"80%"},remove:{borderRadius:0,padding:"0 20px"},progressBarBackgroundColor:{backgroundColor:"red"},expirationDateError:{color:"orange"}}}))((function(e){var t=e.classes,n=e.giftPoints,r=e.showDialog,i=e.hideDialog,o=e.showOverlay,s=e.hideOverlay,c=e.user,l=Object(a.useState)(null),d=Object(b.a)(l,2),u=d[0],p=d[1],m=Object(a.useState)(null),h=Object(b.a)(m,2),f=h[0],j=h[1],O=Object(a.useState)(!0),g=Object(b.a)(O,2),_=g[0],v=g[1],x=Object(a.useState)([]),E=Object(b.a)(x,2),T=E[0],R=E[1],A=Object(a.useState)("specific"),S=Object(b.a)(A,2),N=S[0],I=S[1],C=Object(a.useRef)(null),w=Object(a.useState)(!1),D=Object(b.a)(w,2),P=D[0],M=D[1],L="asaf@pickapier.com"===(null===c||void 0===c?void 0:c.email);return Object(y.jsx)("div",{className:t.screenWrapper,children:Object(y.jsxs)("form",{className:t.formWrapper,children:[Object(y.jsx)("h1",{children:"Gift Points"}),Object(y.jsxs)("div",{children:[Object(y.jsx)("input",{onClick:function(){R([]),v(!1),I("all")},type:"radio",value:"all",name:"gift-method",disabled:!L}),Object(y.jsx)("label",{htmlFor:"all",children:"All Members (this action can only be performed by Asaf Cohen)"})]}),Object(y.jsxs)("div",{children:[Object(y.jsx)("input",{onClick:function(){v(!0),I("specific")},defaultChecked:!0,type:"radio",value:"specific",name:"gift-method"}),Object(y.jsx)("label",{htmlFor:"specific",children:"Members List"})]}),Object(y.jsx)("br",{}),_&&Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)("input",{ref:C,type:"file",accept:".csv",onChange:function(e){gc.a.parse(e.target.files[0],{header:!1,skipEmptyLines:!0,complete:function(e){var t=[].concat.apply([],e.data);R(t)}}),M(!0)}}),Object(y.jsx)("br",{}),Object(y.jsx)($.a,{type:"secondary",isMarinaLiteVersion:!0,onClick:function(e){e.preventDefault(),C.current.value=null,M(!1)},testID:"removeCSVFile",disabled:!P,children:"Remove"})]}),Object(y.jsx)(fc.a,{label:"Points",type:"number",double:!0,value:u,onChange:function(e){p(e.target.value)},onInput:function(e){e.target.value&&(0===Number(e.target.value)&&(e.target.value=""),"."===e.target.value[e.target.value.length-1]||/^\d+(\.\d{1,2}){0,1}$/.test(e.target.value)||(e.target.value=e.target.value.slice(0,e.target.value.length-1)))}}),Object(y.jsx)(jc.a,{name:"expdate",label:"Expiration Date",value:f,onChange:function(e,t){return function(e){e&&j(e)}(t)},disablePast:!0}),Object(y.jsx)("span",{className:t.expirationDateError,children:"Note: Expiration date must be of the format DD/MM/YYYY"}),Object(y.jsx)("br",{}),Object(y.jsx)($.a,{type:"main",isMarinaLiteVersion:!0,onClick:function(e){o();var a={amount:Number(u),expiry_date:f.format("YYYY-MM-DD")};"all"===N?a.gift_all_members=!0:a.email_list=T,n(a).then((function(e){var n=e.payload.errors,a="The operation succeeded with ".concat(n.length," errors");r({open:!0,title:"Report of gifting points",body:Object(y.jsxs)("div",{children:[Object(y.jsx)("span",{children:a}),Object(y.jsx)("div",{children:!Vn()(n)&&Object(y.jsx)(_c.CSVLink,{className:t.button,data:n,filename:"gifting_points_error_report",children:"Download Report"})})]}),confirm:{label:"OK",onClick:function(){return i()}}}),p(null),j(null),M(!1),C&&C.current&&C.current.value&&(C.current.value=null),s()}))},testID:"confirmGiftPoints",disabled:function(){var e=Vn()(u)||ha()(f),t="specific"===N&&!P,n=!_e()(f,"MM/DD/YYYY").isValid();return e||t||n}(),children:"Confirm"})]})})}))),xc=Object(o.b)((function(e){return{id:e.uiMix.vacancyPopup.id,user:Object(S.X)(e)}}),(function(e){return{giftPoints:function(t){return e(Object(hc.a)(t))},hideOverlay:function(){return e(Object(qe.o)())},showOverlay:function(){return e(Object(qe.O)())}}}))(vc),Ec=["component","authLoaded","isAuthenticated","user"],yc=["fetchUserData","fetchGlobalData","showDiscardChangesPopup","hideDiscardChangesPopup","user","getAllTicketForms","resetAllTicketForms","ticketFormsList"],Tc=g()({loader:function(){return Promise.all([n.e(2),n.e(4),n.e(15),n.e(37)]).then(n.bind(null,2182))},loading:ul,modules:["AssociationDashboard"]}),Rc=g()({loader:function(){return Promise.all([n.e(9),n.e(38)]).then(n.bind(null,2196))},loading:ul,modules:["AssociationMarinas"]}),Ac=g()({loader:function(){return Promise.all([n.e(2),n.e(6),n.e(28)]).then(n.bind(null,2174))},loading:ul,modules:["Activity"]}),Sc=(g()({loader:function(){return Promise.all([n.e(2),n.e(6),n.e(28)]).then(n.bind(null,2215))},loading:ul,modules:["Activity"]}),g()({loader:function(){return Promise.all([n.e(4),n.e(14),n.e(65),n.e(19),n.e(30)]).then(n.bind(null,2193))},loading:ul,modules:["AddMarina"]})),Nc=g()({loader:function(){return Promise.all([n.e(19),n.e(29)]).then(n.bind(null,2216))},loading:ul,modules:["AddAbsenceReport"]}),Ic=g()({loader:function(){return Promise.all([n.e(2),n.e(10),n.e(67),n.e(6),n.e(54)]).then(n.bind(null,2203))},loading:ul,modules:["ReservationsLite"]}),Cc=g()({loader:function(){return Promise.all([n.e(2),n.e(6),n.e(53)]).then(n.bind(null,2195))},loading:ul,modules:["Reservations"]}),wc=g()({loader:function(){return Promise.resolve().then(n.bind(null,949))},loading:ul,modules:["Reservation"]}),Dc=g()({loader:function(){return n.e(27).then(n.bind(null,2188))},loading:ul,modules:["AbsenceReports"]}),Pc=g()({loader:function(){return n.e(26).then(n.bind(null,2189))},loading:ul,modules:["AbsenceReport"]}),Mc=g()({loader:function(){return Promise.all([n.e(13),n.e(17),n.e(40)]).then(n.bind(null,2197))},loading:ul,modules:["Boater"]}),Lc=g()({loader:function(){return n.e(41).then(n.bind(null,2198))},loading:ul,modules:["BoaterBalance"]}),Bc=g()({loader:function(){return Promise.all([n.e(13),n.e(17),n.e(60)]).then(n.bind(null,2177))},loading:ul,modules:["Vessel"]}),kc=g()({loader:function(){return n.e(55).then(n.bind(null,2186))},loading:ul,modules:["ReservationsSettings"]}),Hc=g()({loader:function(){return n.e(69).then(n.bind(null,2208))},loading:ul,modules:["Configuration"]}),Vc=g()({loader:function(){return n.e(46).then(n.bind(null,2200))},loading:ul,modules:["MarinaSettings"]}),Fc=g()({loader:function(){return n.e(57).then(n.bind(null,2209))},loading:ul,modules:["UserSettings"]}),Wc=g()({loader:function(){return n.e(44).then(n.bind(null,2210))},loading:ul,modules:["EmailPreferences"]}),Uc=g()({loader:function(){return n.e(51).then(n.bind(null,2179))},loading:ul,modules:["PriceSettings"]}),Gc=g()({loader:function(){return n.e(51).then(n.bind(null,2181))},loading:ul,modules:["PriceSettings"]}),zc=g()({loader:function(){return Promise.all([n.e(18),n.e(34)]).then(n.bind(null,2217))},loading:ul,modules:["AddUser"]}),Yc=g()({loader:function(){return Promise.all([n.e(18),n.e(43)]).then(n.bind(null,2218))},loading:ul,modules:["EditUser"]}),qc=g()({loader:function(){return n.e(58).then(n.bind(null,2199))},loading:ul,modules:["Users"]}),Kc=g()({loader:function(){return n.e(33).then(n.bind(null,2178))},loading:ul,modules:["AddNewResident"]}),Xc=g()({loader:function(){return Promise.all([n.e(12),n.e(32)]).then(n.bind(null,2207))},loading:ul,modules:["AddNewPier"]}),Qc=g()({loader:function(){return Promise.all([n.e(16),n.e(45)]).then(n.bind(null,2175))},loading:ul,modules:["Inventory"]}),Zc=g()({loader:function(){return n.e(48).then(n.bind(null,2194))},loading:ul,modules:["Matching"]}),Jc=g()({loader:function(){return Promise.all([n.e(14),n.e(12),n.e(31)]).then(n.bind(null,2204))},loading:ul,modules:["AddNewBerth"]}),$c=g()({loader:function(){return n.e(49).then(n.bind(null,2205))},loading:ul,modules:["Payments"]}),el=g()({loader:function(){return Promise.all([n.e(64),n.e(50)]).then(n.bind(null,2187))},loading:ul,modules:["PopeyePromotions"]}),tl=g()({loader:function(){return Promise.all([n.e(2),n.e(4),n.e(15),n.e(35)]).then(n.bind(null,2183))},loading:ul,modules:["AdminPanel"]}),nl=g()({loader:function(){return Promise.all([n.e(10),n.e(68),n.e(42)]).then(n.bind(null,2201))},loading:ul,modules:["Boaters"]}),al=g()({loader:function(){return n.e(39).then(n.bind(null,2180))},loading:ul,modules:["Berths"]}),rl=g()({loader:function(){return Promise.all([n.e(9),n.e(47)]).then(n.bind(null,2190))},loading:ul,modules:["Marinas"]}),il=g()({loader:function(){return n.e(36).then(n.bind(null,2202))},loading:ul,modules:["AdminReservations"]}),ol=g()({loader:function(){return n.e(52).then(n.bind(null,2211))},loading:ul,modules:["Reports"]}),sl=g()({loader:function(){return n.e(56).then(n.bind(null,2219))},loading:ul,modules:["ResetDemo"]}),cl=g()({loader:function(){return Promise.all([n.e(66),n.e(59)]).then(n.bind(null,2184))},loading:ul,modules:["VacanciesLite"]}),ll=g()({loader:function(){return Promise.all([n.e(2),n.e(10),n.e(67),n.e(6),n.e(54)]).then(n.bind(null,2191))},loading:ul,modules:["MembershipsLite"]}),dl=g()({loader:function(){return Promise.all([n.e(2),n.e(10),n.e(67),n.e(6),n.e(54)]).then(n.bind(null,2212))},loading:ul,modules:["PopeyeInviteScreen"]});function ul(e){var t=Object(a.useState)(0),n=Object(b.a)(t,2),r=n[0],i=n[1];return Object(a.useEffect)((function(){var e=setTimeout((function(){i((function(e){return e<75?e+2:75}))}),400);return function(){return clearTimeout(e)}})),Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)(f.a,{percent:r,color:"#255EDD",style:{zIndex:9e3}}),gl()]})}var bl=function(e){var t=e.component,n=e.authLoaded,a=e.isAuthenticated,r=e.user,i=Object(u.a)(e,Ec);if(!n||n&&a&&!r)return gl(!0);var o=Boolean(n&&a&&r);return Object(y.jsx)(p.c,Object(d.a)({render:function(e){return o?Object(y.jsx)(t,Object(d.a)({},e)):Object(y.jsx)(p.b,{to:{pathname:"/login",state:{from:e.location}}})}},i))},pl=pe((function(){return!(!fe.a.auth||!fe.a.auth.currentUser)})),ml=function(e){return Object(o.b)((function(e){return{user:Object(S.X)(e),uiMix:e.uiMix,globalCount:Object(S.x)(e),pendingEventsCounter:Object(S.H)(e,!0),common:e.common}}),(function(e){return{logout:function(){return e(Object(sa.f)())},saveUserLang:function(t){return e(Object(js.f)(t))},setFirstLoginComplete:function(){return e(Object(sa.c)())},handleChangePassword:function(t,n,a){return e(Object(sa.b)(t,n,a))},showPopup:function(){return e(qe.P.apply(void 0,arguments))},hidePopup:function(){return e(qe.p.apply(void 0,arguments))},showOverlay:function(){return e(Object(qe.O)())},hideOverlay:function(){return e(Object(qe.o)())},showDialog:function(){return e(qe.I.apply(void 0,arguments))},hideDialog:function(){return e(qe.i.apply(void 0,arguments))},showWalkThrough:function(){return e(Object(qe.X)())},hideWalkThrough:function(){return e(Object(qe.x)())},showTerms:function(){return e(Object(qe.V)())},hideTerms:function(){return e(Object(qe.v)())},showARPopup:function(t){return e(Object(qe.B)(t))},hideARPopup:function(){return e(Object(qe.b)())},historyChange:function(t){return e(Object(Ns.b)(t))}}}))(e)},hl=ml(mc),fl=ml(Ga),jl=ml(ei),Ol=Object(o.b)((function(e){return Object(d.a)({user:Object(S.X)(e),uiMix:e.uiMix,history:e.history},e)}),(function(e){return{logout:function(){return e(Object(sa.f)())},showPopup:function(){return e(qe.P.apply(void 0,arguments))},hidePopup:function(){return e(qe.p.apply(void 0,arguments))},showOverlay:function(){return e(Object(qe.O)())},hideOverlay:function(){return e(Object(qe.o)())},showWalkThrough:function(){return e(Object(qe.X)())},hideWalkThrough:function(){return e(Object(qe.x)())}}}))(le);function gl(e){return Object(y.jsx)("div",{id:"loading-screen",children:Object(y.jsxs)("div",{className:"center",children:[e&&Object(y.jsx)("div",{className:"logo",style:{textAlign:"center",marginBottom:"40px"},children:Object(y.jsx)("img",{width:"100",src:"/static/img/logo.png",alt:"logo"})}),e&&Object(y.jsx)("div",{style:{textAlign:"center",width:"100%",color:"#255EDD"},children:"Checking for sign in..."}),Object(y.jsx)("div",{className:"spinner-wrapper",children:Object(y.jsx)("div",{className:"spinner",children:Object(y.jsxs)("div",{className:"inner",children:[Object(y.jsx)("div",{className:"gap"}),Object(y.jsx)("div",{className:"left",children:Object(y.jsx)("div",{className:"half-circle"})}),Object(y.jsx)("div",{className:"right",children:Object(y.jsx)("div",{className:"half-circle"})})]})})})]})})}var _l=Object(o.b)((function(e,t){return{user:Object(S.X)(e),ticketFormsList:Object(S.W)(e)}}),(function(e){return{fetchGlobalData:function(){return e(Object(fs.a)())},fetchUserData:function(){return e(Object(sa.e)())},showDiscardChangesPopup:function(){return e(qe.K.apply(void 0,arguments))},hideDiscardChangesPopup:function(){return e(Object(qe.k)())},getAllTicketForms:function(){return e(Rs())},resetAllTicketForms:function(){return e(As())}}}))((function(e){var t=e.fetchUserData,n=e.fetchGlobalData,r=e.showDiscardChangesPopup,i=e.hideDiscardChangesPopup,o=e.user,s=e.getAllTicketForms,c=e.resetAllTicketForms,l=e.ticketFormsList;Object(u.a)(e,yc);Object(a.useEffect)((function(){return s(),function(){c()}}),[]),Object(a.useEffect)((function(){l.length&&(0,window.zE)("webWidget","updateSettings",{contactForm:{ticketForms:l.filter((function(e){return 360001290459!==e.id}))}})}),[l]);var h=Object(a.useState)(!1),f=Object(b.a)(h,2),O=f[0],g=f[1],_=Object(a.useState)(window.localStorage.getItem("marinaMode")||"default"),v=Object(b.a)(_,2),x=v[0],E=v[1];Object(a.useEffect)((function(){new Promise((function(e,a){return fe.a.init((function(t){t||e()})),fe.a.onAuthStateChanged((function(a){a?(t(),n()):console.info("user not logged in"),g(!0),e()})),Promise.resolve()}))}),[]);var T=!!o&&!0===o.is_first_login,R=Object(a.useCallback)((function(e,t){var n=JSON.parse(e);r(Object(d.a)(Object(d.a)({},n),{},{confirm:Object(d.a)(Object(d.a)({},n.confirm),{},{onClick:function(){i(),t(!1)}}),cancel:Object(d.a)(Object(d.a)({},n.cancel),{},{onClick:function(){i(),t(!0)}})}))}),[r]);if(window.innerWidth<=760)return Object(y.jsxs)("div",{className:"mobile-overlay",children:[Object(y.jsx)(he.a,{style:{color:"white",fontSize:"2.5rem"}}),Object(y.jsx)("br",{}),Object(y.jsx)("span",{style:{fontSize:"1.25rem"},children:" Oops! "}),Object(y.jsxs)("div",{style:{textAlign:"center",padding:"5px"},children:[Object(y.jsx)("p",{children:"Currently there is no mobile version."}),Object(y.jsx)("p",{children:"You can enjoy the full functionality of the system via the desktop version."})]})]});Object(a.useEffect)((function(){o&&o.language&&(j.a.changeLanguage(o.language),E(Object(ee.a)(o.marina)),localStorage.setItem("marinaMode",Object(ee.a)(o.marina)))}),[o]);var S=[{path:"/firstLogin",component:gi,exact:!0},{path:"/ad-panel",component:tl,exact:!0},{path:"/gift-points",component:xc,exact:!0},{path:["/","/dashboard"],component:o&&o.association_manager?Tc:Ac,exact:!0},{path:"/memberships",component:o&&"TEM"===o.marina.association.code?as:Ao,exact:!0},{path:"/memberships/grow_up",component:hs,exact:!0},{path:"/customers",component:Ao,exact:!0},{path:"/reservations",component:Cc,exact:!0},{path:"/absence-reports",component:Dc,exact:!0},{path:"/absence-reports/create/:id",component:Nc,exact:!0},{path:"/absence-reports/:id",component:Pc,exact:!0},{path:"/marinas",component:o&&o.association_manager?Rc:rl,exact:!0},{path:"/reports",component:ol,exact:!0},{path:"/reset",component:sl,exact:!0},{path:"/marinas/create",component:Sc,exact:!0},{path:"/changePassword",component:ae,exact:!0},{path:"/cards/create",component:Kc,exact:!0},{path:"/inventory",component:Qc,exact:!0},{path:"/matching",component:Zc,exact:!0},{path:"/piers/create",component:Xc,exact:!0},{path:"/piers/:id",component:Xc,exact:!0},{path:"/berths/create",component:Jc,exact:!0},{path:"/berths/:id",component:Jc,exact:!0},{path:"/reservations/:id",component:wc,exact:!0},{path:"/boaters",component:nl,exact:!0},{path:"/reservations-admin",component:il,exact:!0},{path:"/boaters/:id",component:Mc,exact:!0},{path:"/vessels/:id",component:Bc,exact:!0},{path:"/marina_settings",component:Vc,exact:!0},{path:"/user_settings",component:Fc,exact:!0},{path:"/email_preferences",component:Wc,exact:!0},{path:"/reservations_settings",component:kc,exact:!0},{path:"/configuration",component:Hc,exact:!0},{path:"/users",component:qc,exact:!0},{path:"/price_settings",component:Uc,exact:!0},{path:"/long_term_settings",component:Gc,exact:!0},{path:"/create_user",component:zc,exact:!0},{path:"/edit_user/:id",component:Yc,exact:!0},{path:"/payments",component:$c,exact:!0},{path:"/boaters/balance/:id",component:Lc,exact:!0}],N=[{path:"/firstLogin",component:gi,exact:!0},{path:"/ad-panel",component:tl,exact:!0},{path:"/gift-points",component:xc,exact:!0},{path:["/","/dashboard"],component:Ic,exact:!0},{path:"/activity",component:Ac,exact:!0},{path:"/memberships",component:as,exact:!0},{path:"/memberships/grow_up",component:hs,exact:!0},{path:"/customers",component:Ao,exact:!0},{path:"/reservations",component:Ic,exact:!0},{path:"/absence-reports",component:Dc,exact:!0},{path:"/absence-reports/create/:id",component:Nc,exact:!0},{path:"/absence-reports/:id",component:Pc,exact:!0},{path:"/history",component:Cc,exact:!0},{path:"/history/:tab",component:Cc,exact:!0},{path:"/vacancies",component:cl,exact:!0},{path:"/vacancies/:id",component:cl,exact:!0},{path:"/marinas",component:o&&o.association_manager?Rc:rl,exact:!0},{path:"/reports",component:ol,exact:!0},{path:"/reset",component:sl,exact:!0},{path:"/marinas/create",component:Sc,exact:!0},{path:"/changePassword",component:ae,exact:!0},{path:"/cards/create",component:Kc,exact:!0},{path:"/inventory",component:Qc,exact:!0},{path:"/matching",component:Zc,exact:!0},{path:"/piers/create",component:Xc,exact:!0},{path:"/piers/:id",component:Xc,exact:!0},{path:"/berths",component:al,exact:!0},{path:"/berths/create",component:Jc,exact:!0},{path:"/berths/:id",component:Jc,exact:!0},{path:"/reservations/:id",component:Ic,exact:!0},{path:"/boaters",component:nl,exact:!0},{path:"/reservations-admin",component:il,exact:!0},{path:"/boaters/:id",component:Mc,exact:!0},{path:"/vessels/:id",component:Bc,exact:!0},{path:"/marina_settings",component:Vc,exact:!0},{path:"/user_settings",component:Fc,exact:!0},{path:"/email_preferences",component:Wc,exact:!0},{path:"/reservations_settings",component:kc,exact:!0},{path:"/configuration",component:Hc,exact:!0},{path:"/users",component:qc,exact:!0},{path:"/price_settings",component:Uc,exact:!0},{path:"/long_term_settings",component:Gc,exact:!0},{path:"/create_user",component:zc,exact:!0},{path:"/edit_user/:id",component:Yc,exact:!0},{path:"/payments",component:$c,exact:!0},{path:"/boaters/balance/:id",component:Lc,exact:!0},{path:"/promotions",component:el,exact:!0}],I=!(!fe.a.auth||!fe.a.auth.currentUser),C=[{path:"/dashboard",component:o&&o.association_manager?Tc:Ac,exact:!0},{path:"/ad-panel",component:tl,exact:!0},{path:"/gift-points",component:xc,exact:!0},{path:"/memberships",component:ll,exact:!0},{path:"/memberships/popeye-invite",component:dl,exact:!0},{path:"/",component:Ic,exact:!0},{path:"/configuration",component:Hc,exact:!0},{path:"/history",component:Cc,exact:!0},{path:"/vacancies",component:cl},{path:"/vacancies/:id",component:cl,exact:!0},{path:"/marinas",component:o&&o.association_manager?Rc:rl,exact:!0},{path:"/reports",component:ol,exact:!0},{path:"/reset",component:sl,exact:!0},{path:"/marinas/create",component:Sc,exact:!0},{path:"/changePassword",component:ae,exact:!0},{path:"/cards/create",component:Kc,exact:!0},{path:"/berths",component:al,exact:!0},{path:"/reservations/:id",component:Ic,exact:!0},{path:"/boaters",component:nl,exact:!0},{path:"/reservations-admin",component:il,exact:!0},{path:"/boaters/:id",component:Mc,exact:!0},{path:"/boaters/balance/:id",component:Lc,exact:!0},{path:"/vessels/:id",component:Bc,exact:!0},{path:"/marina_settings",component:Vc,exact:!0},{path:"/user_settings",component:Fc,exact:!0},{path:"/email_preferences",component:Wc,exact:!0},{path:"/reservations_settings",component:kc,exact:!0},{path:"/users",component:qc,exact:!0},{path:"/price_settings",component:Uc,exact:!0},{path:"/long_term_settings",component:Gc,exact:!0},{path:"/create_user",component:zc,exact:!0},{path:"/edit_user/:id",component:Yc,exact:!0},{path:"/payments",component:$c,exact:!0},{path:"/promotions",component:el,exact:!0}].map((function(e){return Object(d.a)(Object(d.a)({},e),{},{component:ml(e.component),authLoaded:O,isAuthenticated:I,user:o})})),w="lite"===x,D="demo"===x;return Object(y.jsx)(m.a,{getUserConfirmation:R,children:w?Object(y.jsxs)(p.e,{children:[Object(y.jsx)(A,{exact:!0,path:"/login",layout:Ol,component:li}),Object(y.jsx)(A,{exact:!0,path:"/forgotpassword",layout:Ol,component:Ai}),Object(y.jsx)(A,{exact:!0,path:"/signup",layout:Ol,component:bi}),Object(y.jsx)(hl,{isLoading:!O||O&&I&&!o,children:Object(y.jsxs)(p.e,{children:[Object(y.jsx)(bl,{exact:!0,path:"/firstLogin",component:ml(gi),authLoaded:!0,isAuthenticated:!0,user:!0}),C.map((function(e,t){var n=e.path,a=e.exact,r=e.component,i=e.authLoaded,o=e.isAuthenticated,s=e.user;return Object(y.jsx)(bl,{exact:a,path:n,component:r,authLoaded:i,isAuthenticated:o,user:s},t)})),Object(y.jsx)(p.b,{to:"/"})]})})]}):D?Object(y.jsxs)(p.e,{children:[!O&&gl(!0),Object(y.jsx)(A,{exact:!0,path:"/login",layout:Ol,component:li}),Object(y.jsx)(A,{exact:!0,path:"/forgotpassword",layout:Ol,component:Ai}),Object(y.jsx)(A,{exact:!0,path:"/signup",layout:Ol,component:bi}),N.map((function(e,t){var n=e.path,a=e.exact,r=e.component,i=e.layout,o=void 0===i?jl:i;return Object(y.jsx)(pl,{exact:a,path:n,layout:o,component:r},t)})),T&&Object(y.jsx)(p.b,{to:{pathname:"/firstLogin"}}),Object(y.jsx)(p.b,{to:"/"})]}):Object(y.jsxs)(p.e,{children:[!O&&gl(!0),Object(y.jsx)(A,{exact:!0,path:"/login",layout:Ol,component:li}),Object(y.jsx)(A,{exact:!0,path:"/forgotpassword",layout:Ol,component:Ai}),Object(y.jsx)(A,{exact:!0,path:"/signup",layout:Ol,component:bi}),S.map((function(e,t){var n=e.path,a=e.exact,r=e.component,i=e.layout,o=void 0===i?fl:i;return Object(y.jsx)(pl,{exact:a,path:n,layout:o,component:r},t)})),T&&Object(y.jsx)(p.b,{to:{pathname:"/firstLogin"}}),Object(y.jsx)(p.b,{to:"/"})]})})})),vl=["classes","children","uiMix"];var xl=Object(D.a)((function(e){return{root:{display:"flex",width:"100%"},main:{flex:1,display:"flex",flexDirection:"column",background:"#fff",overflow:"scroll"}}}))((function(e){var t=e.classes,n=e.children,a=e.uiMix,i=Object(u.a)(e,vl);return Object(y.jsxs)("div",{className:t.root,children:[Object(y.jsx)(se.a,{open:a.isLoading}),Object(y.jsx)("div",{className:t.main,children:r.a.Children.map(n,(function(e){return r.a.cloneElement(e,i)}))})]})})),El=n(1771),yl=n(1772),Tl=n(1769),Rl=n(1761),Al=n(1745),Sl=n(1746),Nl=n(1615),Il=n(1773),Cl=Object(Nl.a)((function(e){return{appBar:{position:"relative",color:e.pageHeader.color,background:e.pageHeader.background,borderBottom:"0.7px solid #DFE5F9",zIndex:"1400 !important"},toolbar:{minHeight:56,boxSizing:"border-box",display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",color:"white",backgroundColor:"#05297B",paddingTop:8,paddingBottom:8,paddingLeft:12,paddingRight:14},toolSection:{display:"flex",alignItems:"center"},menuButton:{margin:"0 !important",width:40,height:40},drawer:{width:"100vw !important"},toolbarPlaceholder:e.mixins.toolbar,divider:{width:"43.2%",marginLeft:24},list:{padding:"20px 0","& .MuiListItem-root":{padding:"10px 0 10px 24px"},"& .MuiListItem-root.Mui-selected:hover":{backgroundColor:"#f2f2f2","& .MuiTypography-root":{color:"#4f4f4f"}},"& .MuiListItem-root.Mui-selected":{backgroundColor:"#ffffff"},"& .MuiListItem-root.Mui-disabled":{pointerEvents:"auto"}},listItemText:{"& .MuiTypography-root":{fontSize:15,fontFamily:"Lato",color:"#828282"}},listItemTextActive:{"& .MuiTypography-root":{fontWeight:600,color:"#3661f6"}},menuIcon:{marginRight:16,height:24,width:24}}}))((function(e){var t=e.classes,n=e.user,r=e.saveUserLang,i=e.history,o=e.location,s=e.logout,c=Object(a.useState)(!1),l=Object(b.a)(c,2),d=l[0],u=l[1],p=Object(a.useState)(null),h=Object(b.a)(p,2),f=h[0],j=h[1],O=Object(re.a)(),g=O.t,_=O.i18n,v={logout:s},x=n.marina.marina_settings.permissions,E=Object(a.useMemo)((function(){return{id:"topMenu",items:[{id:"reservations",label:"reservations",to:"/",icon:Object(y.jsx)(Ir,{}),disabled:!x.reservation},{id:"berths",label:"DESKTOP_DOCKWALKER_VIEW_SIDEMENU_CTA",to:"/berths",icon:Object(y.jsx)(wr,{})}]}}),[x]),T=Object(a.useMemo)((function(){return{id:"bottomMenu",items:[{id:"logout",label:"login_logout",to:"/login",backendRequest:"logout",icon:Object(y.jsx)(zs,{})}]}}),[]);Object(a.useEffect)((function(){var e=o.pathname,t=Ms()([].concat(Object(co.a)(E.items),Object(co.a)(T.items)),(function(t){return e===t.to}));t&&j(t.id)}),[o]);var R,A=function(e){var n=e.id,a=e.label,r=e.to,o=e.backendRequest,s=e.hidden,c=void 0!==s&&s,l=e.disabled,d=void 0!==l&&l,b=e.disabledCb,p=e.icon,h=f===n,j=h?Object(C.a)(t.listItemText,t.listItemTextActive):t.listItemText;return c?null:Object(y.jsxs)(jt.a,{button:!0,disabled:d,component:m.b,to:r,selected:h,onClick:function(e){return function(e,t,n,a){a?(e.preventDefault(),a()):(u(!1),n&&(e.preventDefault(),v[n]().then((function(){return i.push(t)}))))}(e,r,o,b)},children:[Object(y.jsx)("i",{className:t.menuIcon,children:p}),Object(y.jsx)(Fe.a,{className:j,primary:g(a)})]},n)};return Object(y.jsxs)(Tl.a,{color:"default",elevation:0,className:t.appBar,children:[Object(y.jsxs)(El.a,{disableGutters:!0,className:t.toolbar,children:[Object(y.jsx)(yl.a,{size:"large",edge:"start",color:"inherit","aria-label":"menu",className:t.menuButton,onClick:function(){return u(!d)},children:d?Object(y.jsx)(Al.a,{}):Object(y.jsx)(Sl.a,{})}),!d&&Object(y.jsxs)("div",{className:t.toolSection,children:[n&&!n.association_manager&&Object(y.jsx)(sr,{type:"notifications",icon:Object(y.jsx)(lr,{height:"24"}),emptyState:g("notifications_EmptyState"),header:g("notifications_header")}),n&&!n.association_manager&&Object(y.jsx)(sr,{type:"messages",icon:Object(y.jsx)(Ds,{height:"24"}),emptyState:g("messages_recentChatsEmptyState"),header:g("messages_recentChatsHeader")}),Object(y.jsx)(Ge,{liteVersion:!0,i18n:_,saveUserLang:r,user:n,alignOptions:"right"})]})]}),Object(y.jsx)(Rl.a,{anchor:"left",open:d,onClose:function(){return u(!1)},children:Object(y.jsxs)(Il.a,{className:t.drawer,children:[Object(y.jsx)("div",{className:t.toolbarPlaceholder}),(R=[E,T],R.map((function(e){var n=e.items;return Object(y.jsxs)(a.Fragment,{children:[Object(y.jsx)("div",{className:t.divider,children:Object(y.jsx)(ye.a,{})}),Object(y.jsx)(Ot.a,{className:t.list,children:n.map((function(e){return A(e)}))},e.id)]},e.id)})))]})})]})})),wl=["classes","children","user","navigationEntries","uiMix","saveUserLang","toolbar","location","history","logout"],Dl=Object(D.a)((function(e){return{wrapper:{display:"flex",justifyContent:"flex-end",flexDirection:"row",flex:1},gridWrap:{display:"flex",flexDirection:"column",flex:1,height:"100%"},content:{flex:1,position:"relative",overflow:"hidden",maxHeight:"100vh",backgroundColor:"#ffffff",display:"flex",flexDirection:"column",minHeight:1},container:{flex:1,minHeight:0},toolbar:e.mixins.toolbar}}))((function(e){var t=e.classes,n=e.children,i=e.user,o=(e.navigationEntries,e.uiMix),s=e.saveUserLang,c=e.toolbar,l=e.location,d=e.history,p=e.logout,m=Object(u.a)(e,wl),h=Object(a.useState)({}),f=Object(b.a)(h,2),j=f[0],O=f[1],g=Object(a.useState)(null),_=Object(b.a)(g,2),v=_[0],x=_[1],E=Object(a.useState)(!0),T=Object(b.a)(E,2),R=T[0],A=T[1];Object(a.useEffect)((function(){x(r.a.createRef())}),[]);var S=v&&v.current&&v.current.scrollHeight;return Object(a.useEffect)((function(){v&&v.current.clientHeight0&&void 0!==arguments[0]?arguments[0]:an,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Qt.type:return Object(d.a)(Object(d.a)({},e),{},{isLoading:!0});case Zt.type:return Object(d.a)(Object(d.a)({},e),{},{isLoading:!1,respond:t.payload,error:null});case Jt.type:return{isLoading:!1,error:t.payload,respond:null};default:return e}},notifications:ze.d,messages:Ye.b,cards:eo.g,requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$i,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ui.type:return Object(d.a)(Object(d.a)({},e),{},{isLoading:!0});case Gi.type:return Object(d.a)(Object(d.a)({},e),{},{isLoading:!1,list:t.payload});case zi.type:return{isLoading:!1,list:[]};case Ki.type:return Object(d.a)(Object(d.a)({},e),{},{isLoading:!0});case Xi.type:return Object(d.a)(Object(d.a)({},e),{},{isLoading:!1,marinaRequests:t.payload});case Qi.type:return{isLoading:!1,marinaRequests:[]};case Zi.type:return Object(d.a)(Object(d.a)({},e),{},{marinaRequests:[]});default:return e}},residents:Si.b,visitors:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bi,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case wi.type:return Object(d.a)(Object(d.a)({},e),{},{isLoading:!0});case Di.type:return Object(d.a)(Object(d.a)({},e),{},{isLoading:!1,error:null,list:t.payload});case Pi.type:return{isLoading:!1,error:t.payload,list:[]};case Mi.type:return Bi;default:return e}},stats:ba.e,reservations:xa.j,absenceReports:kr.f,boaters:ua.h,uiMix:qe.A,archived:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bd,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case cd.type:return Object(d.a)(Object(d.a)({},e),{},{isLoading:!0});case ld.type:return Object(d.a)(Object(d.a)({},e),{},{isLoading:!1,list:t.payload});case dd.type:return{isLoading:!1,list:[]};case ud.type:return bd;default:return e}},marinas:oa.c,reports:md.b,adminDashboard:pd.d,settings:hd.d,users:js.e,documents:fd.b,pricing:jd.e,zendesk:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ss,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case vs.type:return Object(d.a)(Object(d.a)({},e),{},{isLoading:!0});case xs.type:return Object(d.a)(Object(d.a)({},e),{},{ticketForms:t.payload,isLoading:!1,error:null});case ys.type:return Object(d.a)(Object(d.a)({},e),{},{ticketForms:[],isLoading:!1,error:null});case Es.type:return Object(d.a)(Object(d.a)({},e),{},{isLoading:!1,error:t.payload});default:return e}},payments:Od.c,boaterActivities:gd.b,dockWalker:En.g,global:fs.b,marinaEvents:_d.c,popeye:hc.c,memberships:vd.b,promotions:xd.c,reset:Ed.b}),Td=[id.a],Rd=rd.c,Ad=rd.a.apply(void 0,Td)(rd.d),Sd=null,Nd="en";if("undefined"!==typeof Storage)""!==(Nd=localStorage.getItem("lang"))&&void 0!==Nd&&null!==Nd||(Nd="en");else{var Id=navigator.language||navigator.userLanguage;""===Id||void 0===Id?Id="en":(Id=Id.split("-")[0],["es","de","fr","en","it"].includes(Id)||(Id="en")),localStorage.setItem("lang",Id)}var Cd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Sd||(Sd=Ad(yd,e,Rd()))},wd=(n(1610),n(1611),n(1612),n(950)),Dd=window.devicePixelRatio,Pd=window.innerWidth<1400,Md=Dd>1||Pd?18:16,Ld=Object(wd.a)({palette:{grey:{50:"#F8F9FB",100:"#FAFBFF",200:"#F3F6FE",300:"#E0E3EF",400:"#DCE2E8",500:"#CFD7DE",600:"#B0B3BB",700:"#6D8C9C",800:"#386378",900:"#00334d"},black:"#000",white:"#fff",primary:{light:"#91d8f3",main:"#255EDD",dark:"#255EDD",contrastText:"#fff"},orange:"#f5821f",secondary:{light:"#ff5d69",main:"#e6535c",contrastText:"#fff"},error:{light:"#ff5d69",main:"#e6535c",contrastText:"#fff"},success:{main:"#54C71A"},text:{main:"#4A4A4A"},background:{main:"#F3F6FE",form:"#F0F2F4"},icon:{main:"#1cb2d3"}}}).palette,Bd=Object(wd.a)({palette:Ld,utils:{pxToRem:function(e){return"".concat(e/Md*1,"rem")}},overrides:{MuiListItem:{button:{"&:focus":{backgroundColor:"inherit"}}},MuiTooltip:{popper:{maxWidth:250},tooltip:{backgroundColor:"rgba(5, 15, 39, 0.9)",borderRadius:4,fontSize:12,padding:"10px 15px"},arrow:{color:"rgba(5, 15, 39, 0.9)"}},MuiFilledInput:{adornedEnd:{paddingRight:0}},MuiPickersBasePicker:{pickerView:{minHeight:330}},MuiAccordion:{root:{boxShadow:"none",border:"1px solid #ececec",borderBottom:0,"&:last-child":{borderBottom:"1px solid #ececec"},"&$expanded":{margin:0}}},MuiAccordionSummary:{root:{minHeight:80,padding:"0px 18px","&$expanded":{minHeight:80}}}},sidebar:{width:220,maxWidth:220,backgroundColor:"#1F263E"},pageHeader:{color:Ld.primary.light,background:Ld.white},typography:{fontFamily:["Lato","-apple-system",'"Helvetica Neue"','"Segoe UI"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(",")},MuiButton:{root:{letterSpacing:0}},marinaLiteVersion:{backgroundColor:"#253967",color:"white"}}),kd=n(1751);console.log("%c \u26f5 Pick a Pier Marinas - %cv.".concat("1.0.0"," \u26f5 "),"color: #194AB9; background: white;","color: #194AB9; background: white; font-weight: bold;"),console.info("%cENV: ".concat("production"),"font-weight:bold;text-decoration:underline;");window.addEventListener("beforeinstallprompt",(function(e){e.preventDefault(),window.deferredPrompt=e,console.log(null)}));var Hd=Cd();Object(i.render)(Object(y.jsx)(o.a,{store:Hd,children:Object(y.jsx)(kd.a,{theme:Bd,children:Object(y.jsx)(ad,{children:Object(y.jsx)(s.a,{i18n:l.a,children:c.isMobile?Object(y.jsx)($l,{}):Object(y.jsx)(_l,{})})})})}),document.getElementById("root"))},174:function(e,t,n){"use strict";n.d(t,"g",(function(){return d})),n.d(t,"h",(function(){return u})),n.d(t,"f",(function(){return b})),n.d(t,"e",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"i",(function(){return j})),n.d(t,"c",(function(){return O})),n.d(t,"d",(function(){return g})),n.d(t,"b",(function(){return f}));var a=n(29),r=n(2),i=n(30),o=n.n(i),s=n(60),c=n.n(s),l=["primary_boater"],d=function(e){return e.inventory.piers&&e.inventory.piers.list},u=function(e){return e.inventory.piers&&e.inventory.piers.map},b=function(e){return e.inventory.piers&&e.inventory.piers.data},p=function(e){var t=[];return e&&e.length&&(t=e.map((function(e){var t,n,a,i=e&&e.pier&&e.pier.name||"",s=e&&e.number||"",l=e.vessel_id&&e.vessel?"".concat(null===(t=e.vessel.primary_boater)||void 0===t?void 0:t.first_name," ").concat(null===(n=e.vessel.primary_boater)||void 0===n?void 0:n.last_name):"",d={withNotes:!c()(e.note),nonActive:!e.active,vacant:o()(e.current_berth_owner),instantBooking:e.instant_booking};return a=e.active?o()(e.current_berth_owner)?"vacant":"occupied":"nonActive",Object(r.a)(Object(r.a)({},e),{},{occupancy:a,berth_name:"".concat(i).concat(s),occupancies:d,boater_name:l})}))),t},m=function(e){var t=e.inventory.berths&&e.inventory.berths.list;return p(t)},h=function(e){var t=e.inventory.availableBerths&&e.inventory.availableBerths.list;return p(t)},f=function(e){var t=e.inventory.availableMatchedBerths.matchedBerths;return p(t)},j=function(e){return e.inventory.berths&&e.inventory.berths.vesselsToBerthsMap},O=function(e){return e.inventory.berths&&e.inventory.berths.data},g=function(e){var t=e.dockWalker.berthData,n=Object(r.a)({},t);if(!o()(t)){var i=t.active_traffic_event;if(o()(i)){if(o()(t.berth_owner))return n;var s=t.berth_owner,c=t.berth_holder_type,d=s.primary_boater,u={vessel:Object(a.a)(s,l),boater_name:"".concat(null===d||void 0===d?void 0:d.first_name," ").concat(null===d||void 0===d?void 0:d.last_name),berth_holder_type:c};return Object(r.a)(Object(r.a)({},n),{},{current_berth_owner:u})}var b={vessel:i.vessel,boater_name:i.boater_name,berth_holder_type:i.berth_holder_type};return Object(r.a)(Object(r.a)({},n),{},{current_berth_owner:b})}return t}},185:function(e,t,n){"use strict";n.d(t,"d",(function(){return q})),n.d(t,"b",(function(){return F})),n.d(t,"f",(function(){return W})),n.d(t,"c",(function(){return U})),n.d(t,"a",(function(){return z})),n.d(t,"e",(function(){return G}));var a=n(2),r=n(5),i=n(13),o="/admin/notification/getall",s="/admin/notification/view",c="/admin/notification/read",l="/admin/notification/unread",d="/admin/notification/delete",u=function(){return Object(i.b)(o,{}).then((function(e){return e.json()}))},b=function(e){return Object(i.b)(s,{notification_ids:e}).then((function(e){return e.json()}))},p=function(e){return Object(i.b)(c,{notification_ids:e}).then((function(e){return e.json()}))},m=function(e){return Object(i.b)(l,{notification_ids:e}).then((function(e){return e.json()}))},h=function(e){return Object(i.b)(d,{notification_ids:e}).then((function(e){return e.json()}))},f=Object(r.b)("GET_NOTIFICATIONS"),j=f.request,O=f.success,g=f.failure,_=f.set,v=Object(r.b)("VIEW_NOTIFICATIONS"),x=v.request,E=v.success,y=v.failure,T=v.set,R=Object(r.b)("READ_NOTIFICATIONS"),A=R.request,S=R.success,N=R.failure,I=R.set,C=Object(r.b)("UNREAD_NOTIFICATIONS"),w=C.request,D=C.success,P=C.failure,M=C.set,L=Object(r.b)("DELETE_NOTIFICATIONS"),B=L.request,k=L.success,H=L.failure,V=L.set,F=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:Y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case j.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0,error:null});case O.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,list:t.payload});case g.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case x.type:return Object(a.a)(Object(a.a)({},e),{},{error:null});case E.type:return Object(a.a)(Object(a.a)({},e),{},{responseMessage:t.payload});case y.type:return Object(a.a)(Object(a.a)({},e),{},{error:t.payload});case A.type:return Object(a.a)(Object(a.a)({},e),{},{error:null});case S.type:return Object(a.a)(Object(a.a)({},e),{},{responseMessage:t.payload});case N.type:return Object(a.a)(Object(a.a)({},e),{},{error:t.payload});case w.type:return Object(a.a)(Object(a.a)({},e),{},{error:null});case D.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,responseMessage:t.payload});case P.type:return Object(a.a)(Object(a.a)({},e),{},{error:t.payload});case B.type:return Object(a.a)(Object(a.a)({},e),{},{error:null});case k.type:return Object(a.a)(Object(a.a)({},e),{},{responseMessage:t.payload});case H.type:return Object(a.a)(Object(a.a)({},e),{},{error:t.payload});default:return e}}},186:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));n(1);var a=n(15),r=n(119),i=n(1715),o=n(1716),s=n(1713),c=n(1717),l=n(1721),d=n(1718),u=n(212),b=n(0),p=Object(a.a)((function(e){return{title:{fontSize:e.utils.pxToRem(20),fontWeight:700,marginLeft:8},actions:{padding:"20px 30px 20px 0",minHeight:80,boxSizing:"border-box"},body:{minWidth:"300px",color:"#545556"},button:{textTransform:"none",borderRadius:20,padding:"6px 20px",fontWeight:700},buttonMarinaLite:{height:40,borderRadius:0,"& .MuiButton-root":{borderRadius:0}}}}))((function(e){var t=e.classes,n=e.isOpen,a=e.title,p=e.description,m=e.confirm,h=e.cancel,f=e.body,j=e.extraAction,O=e.isMarinaLiteVersion;return n?Object(b.jsx)("div",{children:Object(b.jsxs)(i.a,{open:n,onClose:h?h.onClick:m?m.onClick:function(){},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[a&&Object(b.jsxs)(b.Fragment,{children:[Object(b.jsx)(o.a,{id:"alert-dialog-title",className:t.title,children:a}),Object(b.jsx)(s.a,{})]}),Object(b.jsx)(c.a,{className:t.body,children:p&&Object(b.jsx)(l.a,{id:"alert-dialog-description",children:p})}),f&&Object(b.jsx)(c.a,{children:Object(b.jsx)(l.a,{id:"alert-dialog-description",children:f})}),Object(b.jsx)(s.a,{}),Boolean(m||h||j)&&Object(b.jsxs)(d.a,{className:t.actions,children:[j&&Object(b.jsx)(r.a,{type:"secondary",onClick:j.onClick,testID:"cancelDialog",className:t.button,variant:"contained",children:j.label}),h&&Object(b.jsx)(u.a,{type:"secondary",large:!0,isMarinaLiteVersion:O,onClick:h.onClick,testID:"cancelDialog",variant:"contained",children:h.label}),m&&Object(b.jsx)(u.a,{type:"main",large:!0,isMarinaLiteVersion:O,onClick:m.onClick,autoFocus:!0,testID:"confirmDialog",variant:"contained",children:m.label})]})]})}):Object(b.jsx)("div",{})}))},191:function(e,t,n){"use strict";n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return p})),n.d(t,"h",(function(){return h})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return j})),n.d(t,"e",(function(){return m})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var a=n(13),r="/admin/message/create",i="/admin/message/getall",o="/admin/message/reservation",s="/admin/message/view",c="/admin/message/read",l="/admin/message/unread",d=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"Reservation";return Object(a.b)(r,{boater_id:e,reservation_id:t,text:n,chat_view:i}).then((function(e){return e.json()}))},u=function(e,t,n){return Object(a.b)(r,{boater_id:e,text:t,chat_view:n}).then((function(e){return e.json()}))},b=function(e){return Object(a.b)(i,{remove_notifications:e}).then((function(e){return e.json()}))},p=function(e){return Object(a.b)(i,{boater_id:e}).then((function(e){return e.json()}))},m=function(e,t){return Object(a.b)(o,{boater_id:e,reservation_id:t}).then((function(e){return e.json()}))},h=function(e,t){return Object(a.b)(s,{boater_id:e,message_ids:t}).then((function(e){return e.json()}))},f=function(e,t){return Object(a.b)(c,{boater_id:e,message_ids:t}).then((function(e){return e.json()}))},j=function(e,t){return Object(a.b)(l,{boater_id:e,message_ids:t}).then((function(e){return e.json()}))}},199:function(e,t,n){"use strict";n.d(t,"h",(function(){return j})),n.d(t,"g",(function(){return O})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return _})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return x})),n.d(t,"f",(function(){return E})),n.d(t,"e",(function(){return y}));var a=n(64),r=n(2),i=n(83),o=n(758),s=n.n(o),c=n(51),l=n(8),d=n.n(l),u={CANCELED_BY_MARINA:!0,CANCELED_BY_BOATER:!0},b={EXPIRED_NO_MARINA_RESPONSE:!0,EXPIRED_NO_BOATER_RESPONSE:!0,PAYMENT_EXPIRED:!0},p={APPROVED:!0,INSTANT_BOOK:!0},m=Object(r.a)(Object(r.a)(Object(r.a)({},p),b),u),h=function(e){return e=e.filter((function(e){if("INSTANT_BOOKING_INITIATED"!==function(e){var t=e.statuses&&Object(i.f)(e.statuses,Object(i.a)("asc","created_at"));if(t)return t[0]}(e).status_code)return e;var t,n=!1,r=Object(a.a)(e.statuses);try{for(r.s();!(t=r.n()).done;){if("APPROVED"===t.value.status_code){n=!0;break}}}catch(o){r.e(o)}finally{r.f()}return n?e:void 0}))},f=function(e){var t=function(e){var t=e.statuses&&Object(i.f)(e.statuses,Object(i.a)("desc","created_at"));if(t)return t[0]}(e),n=e.status_code?e.status_code.toLowerCase():"-";return t?j({last_status_code:e.status_code})?"finished":"BOATER"!==t.action_required||"UPDATED"!==t.status_code&&"BOATER_ACCEPTED"!==t.status_code&&"BOATER_ADDED_DOCUMENTS"!==t.status_code?"MARINA"!==t.action_required||"UPDATED"!==t.status_code&&"BOATER_ACCEPTED"!==t.status_code&&"BOATER_ADDED_DOCUMENTS"!==t.status_code?"INSTANT_BOOK"===t.status_code?"approved":"WAITING_LIST"===t.status_code?"waiting_list":t.status_code?t.status_code.toLowerCase():"-":"pending":"waiting":n},j=function(e){var t=e.last_status_code;return m[t]},O=function(e){var t=e.last_status_code;return u[t]||b[t]},g=function(){return u},_=function(){return p},v=function(){return b},x=function(){return{instant_booking_initiated:{label:"reservation_pending",color:"#f5821f"},initiated:{label:"reservation_pending",color:"#f5821f"},pending:{label:"reservation_pending",color:"#ffad1b"},waiting:{label:"reservation_waiting",color:"#8d9aa4"},canceled:{label:"reservation_canceled",color:"#f17272"},canceled_by_marina:{label:"reservation_canceled",color:"#f17272"},canceled_by_boater:{label:"reservation_canceled",color:"#f17272"},expired_no_boater_response:{label:"reservation_canceled",color:"#f17272"},expired_no_marina_response:{label:"reservation_canceled",color:"#f17272"},approved:{label:"reservation_approved",color:"#2eb7a9"},payment_expired:{label:"reservation_canceled",color:"#f17272"},waiting_list:{label:"reservation_waiting",color:"#f5821f"},marina_added_dates:{label:"reservation_waiting",color:"#8d9aa4"},boater_accepted_suggested_dates:{label:"reservation_pending",color:"#f5821f"},updated:{label:"reservation_pending",color:"#f5821f"}}},E=function(e,t){var n={admin:e.adminDashboard.allReservations};if("marina"===t){var a=Object(c.d)({entity:e.authentication.user.marina}),i=e.reservations.list,o=h(i),l=a?s()(o,["start_date"],["desc"]):o.sort((function(e,t){return d()(t.updated_at).diff(d()(e.updated_at))}));n.marina=l}return n[t].length?n[t].map((function(t){var n,a;return Object(r.a)(Object(r.a)({},t),{},{reservation_status:f(t),currency:e.authentication.user.marina.marina_settings.currency,vessel:Object(r.a)(Object(r.a)({},t.vessel),{},{home_port:t.vessel.home_marina_name?t.vessel.home_marina_name:"-"}),boaterName:"".concat((null===(n=t.boater)||void 0===n?void 0:n.first_name)||""," ").concat((null===(a=t.boater)||void 0===a?void 0:a.last_name)||"")})})):[]},y=function(e){if(!e.reservations.reservation)return null;var t=e.reservations.reservation,n={};return t.vessel&&((n=t.vessel).name=t.vessel.name?t.vessel.name:"-"),Object(r.a)(Object(r.a)({},t),{},{vessel:n,reservation_status:f(e.reservations.reservation)})}},201:function(e,t,n){"use strict";n.d(t,"e",(function(){return K})),n.d(t,"b",(function(){return V})),n.d(t,"f",(function(){return z})),n.d(t,"c",(function(){return U})),n.d(t,"g",(function(){return Y})),n.d(t,"h",(function(){return G})),n.d(t,"a",(function(){return F})),n.d(t,"d",(function(){return W}));var a=n(2),r=n(5),i=n(13),o=n(299),s=n(8),c=n.n(s),l="/admin/marketing/membership_statistics/",d="/admin/marketing/section_screen/",u="/admin/marketing/send_marketing_email/",b="/admin/marketing/csv/",p="/admin/marketing/template/",m=function(){return Object(i.a)(l,{}).then((function(e){return e.json()}))},h=function(e){return Object(i.b)(d,{screen_type:e}).then((function(e){return e.json()}))},f=function(e){return Object(i.b)(u,{screen_type:e}).then((function(e){return e.json()}))},j=function(e){return Object(i.b)(b,{screen_type:e}).then((function(e){return e.blob()})).then((function(e){Object(o.a)("boaters_list_from".concat(c()().format("DD/MM/YYYY"),".csv"),URL.createObjectURL(e))}))},O=function(e,t){return Object(i.b)(p,{screen_type:e,data_type:t}).then((function(e){return e.blob()})).then((function(n){"HTML"===t?window.open(URL.createObjectURL(n)):Object(o.a)("".concat(e,"_").concat(t,"_from_").concat(c()().format("DD/MM/YYYY"),".txt"),URL.createObjectURL(n))}))},g=Object(r.b)("GET_MEMBERSHIP_STATS"),_=g.request,v=g.success,x=g.failure,E=g.reset,y=g.set,T=Object(r.b)("GET_SECTION_DETAILS"),R=T.request,A=T.success,S=T.failure,N=T.reset,I=T.set,C=Object(r.b)("SEND_MARKETING_EMAIL"),w=C.request,D=C.success,P=C.failure,M=C.set,L=Object(r.b)("GET_CSV"),B=(L.request,L.success,L.failure,L.set),k=Object(r.b)("GET_TEMPLATE"),H=(k.request,k.success,k.failure,k.set),V=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:q,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case _.type:return Object(a.a)(Object(a.a)({},e),{},{membershipStats:Object(a.a)(Object(a.a)({},e.membershipStats),{},{isLoading:!0})});case v.type:return Object(a.a)(Object(a.a)({},e),{},{membershipStats:Object(a.a)(Object(a.a)({},e.membershipStats),{},{data:t.payload,error:null,isLoading:!1})});case x.type:return Object(a.a)(Object(a.a)({},e),{},{membershipStats:Object(a.a)(Object(a.a)({},e.membershipStats),{},{data:{},error:t.payload,isLoading:!1})});case E.type:return Object(a.a)(Object(a.a)({},e),{},{membershipStats:Object(a.a)(Object(a.a)({},e.membershipStats),{},{data:{},error:null,isLoading:!1})});case R.type:return Object(a.a)(Object(a.a)({},e),{},{sectionDetails:Object(a.a)(Object(a.a)({},e.sectionDetails),{},{isLoading:!0})});case A.type:return Object(a.a)(Object(a.a)({},e),{},{sectionDetails:Object(a.a)(Object(a.a)({},e.sectionDetails),{},{data:t.payload,error:null,isLoading:!1})});case S.type:return Object(a.a)(Object(a.a)({},e),{},{sectionDetails:Object(a.a)(Object(a.a)({},e.sectionDetails),{},{data:{},error:t.payload,isLoading:!1})});case N.type:return Object(a.a)(Object(a.a)({},e),{},{sectionDetails:Object(a.a)(Object(a.a)({},e.sectionDetails),{},{data:{},error:null,isLoading:!1})});case w.type:return Object(a.a)(Object(a.a)({},e),{},{marketingEmail:Object(a.a)(Object(a.a)({},e.marketingEmail),{},{isLoading:!0})});case D.type:return Object(a.a)(Object(a.a)({},e),{},{marketingEmail:Object(a.a)(Object(a.a)({},e.marketingEmail),{},{success:t.payload,error:null,isLoading:!1})});case P.type:return Object(a.a)(Object(a.a)({},e),{},{marketingEmail:Object(a.a)(Object(a.a)({},e.marketingEmail),{},{success:null,error:t.payload,isLoading:!1})});default:return e}}},203:function(e,t,n){"use strict";n.d(t,"g",(function(){return re})),n.d(t,"b",(function(){return X})),n.d(t,"c",(function(){return te})),n.d(t,"i",(function(){return Q})),n.d(t,"e",(function(){return J})),n.d(t,"f",(function(){return $})),n.d(t,"d",(function(){return ee})),n.d(t,"a",(function(){return Z})),n.d(t,"h",(function(){return ne}));var a=n(2),r=n(5),i=n(37),o=n.n(i),s=n(52),c=n(13),l="/admin/card/add",d="/admin/card/update",u="/admin/card/get",b="/admin/visit/redeem_nights",p="/admin/visit/get",m="/admin/card/change_status",h=function(e){var t=e.vessel,n=e.boaters,r=e.membership,i=function(e){return e.map((function(e){return Object(a.a)(Object(a.a)({},e),{},{file_path:"test"})}))},o=Object(a.a)(Object(a.a)({},t),{},{attachments:i(t.attachments)}),s=n.map((function(e){return Object(a.a)(Object(a.a)({},e),{},{attachments:i(e.attachments)})}));return Object(c.b)(l,{vessel:o,boaters:s,membership:r}).then((function(e){return e.json()})).then((function(e){return e&&e.error_type?"CONFLICT"===e.error_type?{id:-1,message:"customers_duplicateEmail2",tMessage:"customers_duplicateEmail"}:{id:-1,message:"customers_unknownError",tMessage:"customers_errorOccurred"}:e}))};function f(e,t){return Object(c.b)(d,{customer_id:e,first_name:t.firstName,last_name:t.lastName,boat_name:t.boatName,boat_length:t.boatLength,auto_renew:t.autoRenew,expired:t.expired,email:t.email,phone:t.phone,language:t.language}).then((function(e){return e.json()})).then((function(e){return e&&e.error_type?"CONFLICT"===e.error_type?{id:-1,message:"Unable to create card, possible duplicate card.",tMessage:"customers_duplicateEmail"}:{id:-1,message:"Unknown error",tMessage:"customers_unknownError"}:e}))}function j(e,t){return Object(c.b)(m,{customer_id:e,new_status:t}).then((function(e){return e&&e.error_type?{id:-1,message:"Unknown error",tMessage:"customers_unknownError"}:e.json()}))}var O=function(){var e=Object(s.a)(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(c.b)(u,{card_number:t}).then((function(e){return e&&e.error_type&&500===e.status?{id:-1,message:"Card not found",notFound:!0}:e.json()}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function g(e,t,n){return Object(c.b)(b,{customer_id:e,start_date:t,end_date:n}).then((function(e){return e.json()}))}var _=function(e){return Object(c.b)(p,{customer_id:e}).then((function(e){return e.json()}))},v=Object(r.b)("CREATE_CARD"),x=v.request,E=v.success,y=v.failure,T=v.reset,R=v.set,A=Object(r.b)("UPDATE_CARD"),S=A.request,N=A.success,I=A.failure,C=A.set,w=Object(r.b)("GET_CARD"),D=w.request,P=w.success,M=w.failure,L=w.reset,B=w.set,k=Object(r.b)("REDEEM_NIGHTS"),H=(k.request,k.success,k.failure,k.set),V=Object(r.b)("GET_ACTIVITY_LOG"),F=V.request,W=V.success,U=(V.failure,V.set),G=Object(r.b)("CHANGE_STATUS"),z=G.request,Y=G.success,q=G.failure,K=G.set,X=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:ae,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case x.type:return{isLoading:!0};case E.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null,cardCreated:!0});case y.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload,cardCreated:!1});case T.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null,cardCreated:!1});case D.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0,error:null});case L.type:return Object(a.a)(Object(a.a)({},e),{},{data:{},activityLog:[],nightsLeft:null,error:null});case P.type:return Object(a.a)(Object(a.a)({},e),{},{data:t.payload,isLoading:!1,error:null});case M.type:return Object(a.a)(Object(a.a)({},e),{},{error:!0});case F.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case W.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,activityLog:t.payload.map((function(e){return{startDate:e.start_date,endDate:e.end_date,marina:e.marina,created:e.created}}))});case S.type:return Object(a.a)({},e);case N.type:return Object(a.a)(Object(a.a)({},e),{},{data:t.payload,error:null});case I.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:!0});case z.type:return Object(a.a)({},e);case Y.type:return Object(a.a)(Object(a.a)({},e),{},{data:t.payload,error:null});case q.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:!0});default:return e}}},21:function(e,t,n){"use strict";n.d(t,"X",(function(){return a.c})),n.d(t,"eb",(function(){return a.e})),n.d(t,"f",(function(){return a.a})),n.d(t,"Y",(function(){return a.d})),n.d(t,"A",(function(){return a.b})),n.d(t,"o",(function(){return s})),n.d(t,"p",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"T",(function(){return p})),n.d(t,"bb",(function(){return h})),n.d(t,"E",(function(){return f})),n.d(t,"c",(function(){return j})),n.d(t,"s",(function(){return O})),n.d(t,"C",(function(){return g})),n.d(t,"t",(function(){return _})),n.d(t,"cb",(function(){return v})),n.d(t,"z",(function(){return E})),n.d(t,"y",(function(){return y})),n.d(t,"db",(function(){return x})),n.d(t,"b",(function(){return T})),n.d(t,"d",(function(){return R})),n.d(t,"R",(function(){return I})),n.d(t,"m",(function(){return C})),n.d(t,"N",(function(){return D})),n.d(t,"O",(function(){return P})),n.d(t,"F",(function(){return L})),n.d(t,"x",(function(){return B})),n.d(t,"H",(function(){return H})),n.d(t,"G",(function(){return V})),n.d(t,"v",(function(){return k})),n.d(t,"S",(function(){return F.f})),n.d(t,"Q",(function(){return F.e})),n.d(t,"n",(function(){return G})),n.d(t,"w",(function(){return Y})),n.d(t,"j",(function(){return z})),n.d(t,"P",(function(){return q})),n.d(t,"B",(function(){return K})),n.d(t,"Z",(function(){return Q})),n.d(t,"r",(function(){return Z.c})),n.d(t,"i",(function(){return Z.b})),n.d(t,"L",(function(){return J.a})),n.d(t,"J",(function(){return $.g})),n.d(t,"I",(function(){return $.f})),n.d(t,"l",(function(){return $.e})),n.d(t,"g",(function(){return $.a})),n.d(t,"h",(function(){return $.b})),n.d(t,"k",(function(){return $.c})),n.d(t,"K",(function(){return $.h})),n.d(t,"ab",(function(){return $.i})),n.d(t,"W",(function(){return ee})),n.d(t,"D",(function(){return te})),n.d(t,"U",(function(){return ne})),n.d(t,"u",(function(){return ae})),n.d(t,"V",(function(){return re})),n.d(t,"q",(function(){return ie})),n.d(t,"M",(function(){return oe}));var a=n(210),r=n(2),i=n(8),o=n.n(i),s=function(e){var t=e.cards.data||{};return Object(r.a)(Object(r.a)({firstName:t.first_name,lastName:t.last_name,email:t.email,cardNumber:t.cardNumber,boatName:t.boat_name,boatLength:t.boat_length},t),{},{vessels:[{name:t.boat_name,length:t.boat_length}]})},c=function(e){return e.cards.error},l=function(e){return(e.cards.activityLog||[]).map((function(e,t){return Object(r.a)(Object(r.a)({},e),{},{id:t,nightsCount:o()(o()(e.endDate).startOf("day")).diff(o()(e.startDate).startOf("day"),"days")})}))},d=n(26),u=function(e){return Object(d.a)(e.marinas.association_list).reverse()},b=function(e){return e&&e.map((function(e){return function(e){var t=e,n=t.primary_boater,a={length:t.length?t.length:"-",beam:t.beam?t.beam:"-",draft:t.draft?t.draft:"-"};return{id:t.id,boatName:t.name?t.name:"-",boatLoa:t.length?(+t.length).toFixed(2):"-",vesselSize:a,vesselType:t.type?"".concat(t.type.charAt(0)).concat(t.type.slice(1).toLowerCase()):"-",fullName:"".concat(null===n||void 0===n?void 0:n.first_name," ").concat(null===n||void 0===n?void 0:n.last_name),expDate:{autoRenew:t.membership&&t.membership.customer.auto_renew,date:o()(t.membership&&t.membership.customer.expired).format("DD.MM.YYYY")},membershipCard:{card:t.membership&&t.membership.card_number?t.membership.card_number:"-",status:t.membership&&t.membership.customer.status},boater:t.primary_boater_id?t.primary_boater_id:null}}(e)}))},p=function(e){var t=e.residents.list&&e.residents.list.length?Object(d.a)(e.residents.list).reverse():[],n=b(t);return Object(d.a)(n)},m=function(e){return e.map((function(e){return function(e){return{id:e.id,boatName:e.vessel_name?e.vessel_name:"-",fullName:e.first_name||e.last_name?"".concat(e.first_name," ").concat(e.last_name):"".concat(e.email),lastInteraction:e.last_interaction?o()(e.last_interaction).format("DD/MM/YYYY"):"-",nextVisit:e.next_visit?o()(e.next_visit).format("DD/MM/YYYY"):"-",membershipCard:{card:e.membership&&e.membership.card_number?e.membership.card_number:"-",status:e.membership&&e.membership.customer.status},boater:e.id?e.id:null,country:e.country_of_residence?e.country_of_residence:"-"}}(e)}))},h=function(e){var t=Object(d.a)(e.visitors.list).reverse();return m(t)},f=function(e){return e.stats.membership},j=function(e){return e.adminDashboard.allCustomersCount},O=function(e){return e.adminDashboard.customersPerCountry},g=function(e){return e.adminDashboard.marinasPerCountry},_=function(e){return e.adminDashboard.customersPerMarina},v=function(e){return e.adminDashboard.visitsPerMarina},x=function(e){return e.adminDashboard.visitsPerMonth},E=function(e){return e.stats.mapVisits},y=function(e){return e.adminDashboard.mapVisits},T=function(e){return e.adminDashboard.allBoaters},R=function(e){return e.adminDashboard.allReservations},A=n(64),S=n(83),N=(n(60),function(e,t,n){var a={read:[],unread:[],lastUp:n},i=function(e){return e.sort((function(e,t){return o()(e.created_at).isBefore(t.created_at)?-1:1}))},s=function(e){return"UPDATED"===e.status_code?"MARINA"===e.action_required?"UPDATED_BY_BOATER":"UPDATED_BY_MARINA":e.status_code},c=e.filter((function(e){return"MARINA"===e.sender||"MARINA"===e.receiver&&!0===!!e.read_by_receiver})),l=e.filter((function(e){return"MARINA"===e.receiver&&!1===!!e.read_by_receiver})),u=i(c),b=c.length?o()(u[c.length-1].created_at):o()(),p=function(e){return Object(r.a)(Object(r.a)({},e),{},{text:s(e),isService:!0,sender:"BOATER_ADDED_DOCUMENTS"===e.status_code||"MARINA"===e.action_required?"BOATER":"MARINA"})},m=t&&t.filter((function(e){return o()(e.created_at).isBefore(b)})).map((function(e){return p(e)})),h=t&&t.filter((function(e){return!o()(e.created_at).isBefore(b)})).map((function(e){return p(e)})),f=c&&m?i([].concat(Object(d.a)(c),Object(d.a)(m))):[],j=c&&m?i([].concat(Object(d.a)(l),Object(d.a)(h))):[];return e&&t&&(a=j.filter((function(e){return!e.isService})).length?{read:f,unread:j,lastUpd:n}:{read:[].concat(Object(d.a)(f),Object(d.a)(j)),unread:[],lastUpd:n}),a}),I=function(e){if(e.reservations){var t=e.boaters.messages,n=e.reservations.reservation&&e.reservations.reservation.statuses;return N(t,n,e.messages.lastUpd)}},C=function(e){if(e.boaters){var t=e.boaters.messages;return N(t,[],e.messages.lastUpd)}},w=function(e,t){return"MARINA"===e.receiver?"boater":e.signed_by_user?e.signed_by_user.id===t.authentication.user.id?"current_user":"".concat(e.signed_by_user.first_name?e.signed_by_user.first_name:""," ").concat(e.signed_by_user.last_name?e.signed_by_user.last_name:""):"current_user"},D=function(e){var t=e.messages.list,n=Object(S.f)(function(e){var t=[],n=e&&e.length?e.map((function(e){return e instanceof Object?JSON.stringify(e):e})):[];return n&&n.length&&(t=n.filter((function(e,t,n){return n.indexOf(e)===t}))),t&&t.length?t.map((function(e){return e&&JSON.parse(e)instanceof Object?JSON.parse(e):e})):[]}(t.map((function(e){return e.boater}))).map((function(n){var a,r,i=(a=n.id,Object(S.f)(t.filter((function(e){return e.boater_id===a})),Object(S.a)("desc","created_at"))[0]);return{boater:n,message:i.text,lastUpd:i.created_at,chatFlow:(r=i,r.absence_report_id?{type:"absence_report",redirect_id:r.absence_report_id}:r.reservation_id?{type:"reservation",redirect_id:r.reservation_id}:{type:"general",redirect_id:r.boater_id}),sender:w(i,e),viewed_by_receiver:i.viewed_by_receiver}})),Object(S.a)("desc","lastUpd"));return n&&n.length?n.slice(0,10):[]},P=function(e){var t=function(e,t){var n,a=[],r=Object(A.a)(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.absence_report_id&&t.absence_reports||i.reservation_id&&t.reservations||a.push(i)}}catch(o){r.e(o)}finally{r.f()}return a}(e.messages.list,{absence_reports:!0}).filter((function(e){return"MARINA"===e.receiver}));return D({messages:{list:t}})},M=function(e){return"NEW_MESSAGE_RECEIVED"===e.text||"RESERVATION"===e.subject?"message":"notification"},L=function(e){return e.notifications.list.filter((function(e){return"message"===M(e)}))},B=function(e){var t=0;return e&&e.notifications&&(t=function(e){return e.notifications.list.filter((function(e){return"notification"===M(e)}))}(e).filter((function(e){return!e.view_at})).length+L(e).filter((function(e){return!e.view_at})).length),t},k=function(e){var t=e.notifications.list.filter((function(e){return"RESERVATION"===e.subject}));return t&&t.length?t.filter((function(e){return o()(e.details.end_date).isBefore(o()(),"days")||"UPDATED"===e.type})):[]},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.notifications.list,a=n&&n.length&&n.filter((function(e){return!e.read_at})),r=a&&a.length&&a.filter((function(e){return"RESERVATION"!==e.subject||!o()(e.details.end_date).isBefore(o()(),"days")&&"UPDATED"!==e.type})),i=r&&r.length&&Object(S.f)(r,Object(S.a)("asc","created_at"));return t?i&&i.length?i.length:0:i&&i.length?i:[]},V=function(e){var t=e.notifications.list.filter((function(e){return function(e){return"NEW_MESSAGE_RECEIVED"!==e.text&&"WAITING_FOR_BERTH"!==e.type}(e)})).map((function(e){return Object(r.a)(Object(r.a)({},e),{},{boater_name:e.details.boater_name})}));return Object(S.f)(t,Object(S.a)("desc","created_at"))||[]},F=n(199),W=n(525),U=n(23),G=function(e){var t=Object(d.a)(e.adminDashboard.allBoaters),n=e.global.data.marinas,a=function(e){if(e&&n){var t,a=Object.entries(n).find((function(t){var n;return(null===(n=t[1])||void 0===n?void 0:n.marina_id)===e}));if(a)return!(null===(t=a[1].marina)||void 0===t?void 0:t.hide_marina)}return!1},r=[];return t.map((function(e){var t=e.vessels;t&&t.forEach((function(t){var n,i,s,c,l,d,u=null===(n=e.memberships)||void 0===n?void 0:n.find((function(e){return e.vessel_id===t.id}));r.push({boaterId:e.id,vesselId:t.id,fullName:"".concat(e.first_name," ").concat(e.last_name),email:e.email?e.email:"-",phone:e.phone?e.phone:"-",country:e.country_of_residence,boatName:t.name||"-",boatSize:{length:(null===t||void 0===t?void 0:t.length)||"-",beam:(null===t||void 0===t?void 0:t.beam)||"-",draft:(null===t||void 0===t?void 0:t.draft)||"-"},homeMarina:t.home_marina_name?"".concat(t.home_marina_name,", ").concat(e.country_of_residence?e.country_of_residence:""):"-",membershipCard:(null===u||void 0===u?void 0:u.card_number)&&{card_number:null===u||void 0===u?void 0:u.card_number,date:(null===u||void 0===u||null===(i=u.customer)||void 0===i?void 0:i.expired)?o()(null===u||void 0===u||null===(s=u.customer)||void 0===s?void 0:s.expired).isAfter(o()())?Object(U.b)(o()(null===u||void 0===u||null===(c=u.customer)||void 0===c?void 0:c.expired)):"Expired":"-"}||"-",popeyeStatus:e.loyalty_user&&"ACTIVE"===e.popeye_loyalty_status?o()(null===(l=e.loyalty_user)||void 0===l?void 0:l.joined_at).add(1,"year").isAfter(o()())?Object(U.b)(o()(null===(d=e.loyalty_user)||void 0===d?void 0:d.joined_at).add(1,"year")):"Expired":"-",signedIn:!Object(W.isEmpty)(null===e||void 0===e?void 0:e.firebase_id),marketplace:a(t.home_marina_id)})}))})),r},z=function(e){return e.boaters.balanceLogs},Y=function(e,t,n){var a={},i=e.authentication.user,s=t?e.reservations.reservation&&Object(r.a)({},e.reservations.reservation.boater):n?e.absenceReports.absenceReport&&e.absenceReports.absenceReport.boater:e.boaters.data,c=t?e.reservations.reservation&&e.reservations.reservation.vessel:{},l=!!function(){var e=null;return s&&i&&s.membership_requests&&(e=s.membership_requests[s.membership_requests.findIndex((function(e){return e.marina_id===i.marina.id&&"PENDING"===e.status}))]),e}(),d=!!function(){var e=null;return s&&i&&s.marina_requests&&(e=s.marina_requests[s.marina_requests.findIndex((function(e){return e.marina_id===i.marina.id&&"PENDING"===e.status}))]),e}(),u=function(){var e=null,t=null;return s&&i&&s.marina_requests&&(t=s.marina_requests.sort((function(e,t){return o()(e.updated_at).isBefore(t.updated_at)?1:-1}))[0],!c.home_marina_verified&&t&&t.marina_id===i.marina.id&&(e=t)),e}(),b=function(e){return e.home_marina_verified?"approved":!e.home_marina_verified&&d?"waiting":u?"declined":"noVerified"},p=s&&s.vessels&&s.vessels.length&&Object(r.a)({},c),m=s&&e.reservations.reservation&&Object(r.a)(Object(r.a)({},e.reservations.reservation.vessel),{},{homeMarina:function(e){if(e)return l?{name:i.marina.boat_name,country:i.marina.country,verifyStatus:b(e)}:u?{name:i.marina.name,country:i.marina.country,verifyStatus:b(e),finished_at:u.finished_at}:{name:e.homeMarina?e.homeMarina.name:e.home_marina_name,country:e.homeMarina?e.homeMarina.country:s.country_of_residence,verifyStatus:b(e),finished_at:e.home_marina_verified_at}}(e.reservations.reservation.vessel)}),h=s&&{id:s.id,firstName:s.first_name,lastName:s.last_name,email:s.email,phone:s.phone,address:s.address,country:s.country_of_residence,zipCode:s.postal_code,birthday:s.date_of_birth&&o()(s.date_of_birth)._isValid?o()(s.date_of_birth).format("DD/MM/YYYY"):null,licence:s.licence};return a.vessel=t?m:p,a.contact=h,a},q=function(e){var t=e.requests.list;return t&&t.length&&t.map((function(e){return function(e){return{id:e.id,boatName:e.boat_name,boatLoa:e.boat_length?+e.boat_length.toLocaleString(void 0,{minimumFractionDigits:2}):"-",beam:e.boat_beam?+e.boat_beam.toLocaleString(void 0,{minimumFractionDigits:2}):"-",draft:e.boat_draft?+e.boat_draft.toLocaleString(void 0,{minimumFractionDigits:2}):"-",fullName:"".concat(e.boater.first_name," ").concat(e.boater.last_name),requestDate:o()(e.created_at).format("DD.MM.YYYY"),membershipCard:{card:"N/A",status:e.status?e.status.toLowerCase():"-"},boater:e.boater?e.boater.id:null}}(e)}))},K=function(e){var t=e.requests.marinaRequests;return t&&t.length?t.map((function(e){return function(e){return{id:e.request_id,boatName:e.boat_name,boatLoa:e.boat_loa?+e.boat_loa.toLocaleString(void 0,{minimumFractionDigits:2}):"-",beam:e.boat_beam?+e.boat_beam.toLocaleString(void 0,{minimumFractionDigits:2}):"-",draft:e.boat_draft?+e.boat_draft.toLocaleString(void 0,{minimumFractionDigits:2}):"-",fullName:"".concat(e.first_name," ").concat(e.last_name),requestDate:o()(e.created_at).format("DD.MM.YYYY")}}(e)})):[]},X=function(e){return{id:e.id,email:e.email,first_name:e.first_name,last_name:e.last_name,residents:e.permissions.residents,reservations:e.permissions.reservations,marina_settings:e.permissions.marina_settings}},Q=function(e){return Object(d.a)(e.users.list).reverse().map(X)},Z=n(531),J=n(661),$=n(174),ee=function(e){return e.zendesk&&e.zendesk.ticketForms},te=function(e){return e.marketing.membershipStats.data},ne=function(e){return e.marketing.sectionDetails.data},ae=function(e){return e.marketing.marketingEmail},re=function(e){return e.global.data.terms_of_service_marinas||null},ie=function(e){return e.global.data.cookie_policy||null},oe=function(e){return e.global.data.privacy_policy||null}},210:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var a=function(e){return e.authentication.user||void 0},r=function(e){return e.authentication.user?e.authentication.user.permissions:{}},i=function(e){return e.authentication.isLoading},o=function(e){return e.authentication.errorData},s=function(e){return e.authentication.user?e.authentication.user.marina.marina_settings.permissions:{}}},212:function(e,t,n){"use strict";var a=n(2),r=n(29),i=n(1),o=n.n(i),s=n(119),c=n(43),l=n(44),d=n(58),u=n(59),b=n(40),p=n.n(b),m=n(15),h=n(1701),f=n(0),j=["type","classes","variant","additionalStyling","children","icon"],O=function(e){Object(d.a)(n,e);var t=Object(u.a)(n);function n(){return Object(c.a)(this,n),t.apply(this,arguments)}return Object(l.a)(n,[{key:"render",value:function(){var e=this.props,t=e.type,n=void 0===t?"main":t,i=e.classes,s=e.variant,c=e.additionalStyling,l=e.children,d=e.icon,u=Object(r.a)(e,j),b=d?o.a.cloneElement(d,{classes:{root:i.icon}}):null;return Object(f.jsxs)(h.a,Object(a.a)(Object(a.a)({className:p()(i.button,i[n],c),variant:s,"data-testid":"button"},u),{},{children:[b,Object(f.jsx)("span",{className:i.text,children:l})]}))}}]),n}(o.a.PureComponent),g=Object(m.a)((function(e){return{button:{height:"".concat(40,"px"),minWidth:94,boxShadow:"none","&.MuiButton-root":{padding:"11px 24px 11px 24px","&:active, &:hover":{boxShadow:"none"}}},icon:{opacity:.8,marginRight:10},text:{fontSize:"15px",textTransform:"none",height:"100%",whiteSpace:"nowrap"},main:function(e){var t={display:"flex",height:e.large?"".concat(40,"px"):"".concat(34,"px"),"&.MuiButton-root":{backgroundColor:"#3661f6",color:"#ffffff","&:active, &:hover":{backgroundColor:"#1948ed"}}};return e.disabled?Object(a.a)(Object(a.a)({},t),{},{opacity:.5}):t},secondary:function(e){var t={border:"solid 1px #bdbdbd",height:e.large?"".concat(40,"px"):"".concat(34,"px"),"&.MuiButton-root":{backgroundColor:"#ffffff",color:"#333","&:active, &:hover":{backgroundColor:"#f2f2f2"}}};return e.disabled?Object(a.a)(Object(a.a)({},t),{},{opacity:.5}):Object(a.a)(Object(a.a)({},t),{},{fontWeight:"bold"})},withIcon:function(e){return e.disabled?{color:"#c9c7c5"}:{color:"#4071e2","&:hover":{backgroundColor:"#eff2f8",color:"#0036b1"}}},inverse:function(e){return e.disabled?{backgroundColor:"#c9c7c5"}:{color:"#fff",backgroundColor:"transparent",border:"solid 1px #a0a1a2","&:hover":{backgroundColor:"#fff",color:"#4071e2"}}},link:function(e){var t={height:e.large?"".concat(40,"px"):"".concat(34,"px"),"&.MuiButton-root":{backgroundColor:"transparent",color:"#3661f6","&:active, &:hover":{backgroundColor:"transparent",color:"#1948ed"}},"& .MuiTouchRipple-root":{display:"none"}};return e.disabled?Object(a.a)(Object(a.a)({},t),{},{opacity:.5}):Object(a.a)(Object(a.a)({},t),{},{fontWeight:"bold"})}}}))(O),_=["isMarinaLiteVersion","disabled","onClick","type","large","additionalStyling","children"];t.a=function(e){var t=e.isMarinaLiteVersion,n=void 0!==t&&t,i=e.disabled,o=e.onClick,c=e.type,l=e.large,d=void 0!==l&&l,u=e.additionalStyling,b=void 0===u?{}:u,p=e.children,m=Object(r.a)(e,_),h=Object(a.a)({onClick:o,type:c,disabled:i,additionalStyling:b},m);return n?Object(f.jsx)(g,Object(a.a)(Object(a.a)({large:d},h),{},{children:p})):Object(f.jsx)(s.a,Object(a.a)(Object(a.a)({},h),{},{children:p}))}},22:function(e,t,n){"use strict";function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1?arguments[1]:void 0,n=new Promise((function(e){setTimeout(e,t)}));return Promise.all([e,n]).then((function(e){return e[0]&&"function"===typeof e[0]&&e[0]()||e[0]}),(function(){return Promise.reject("Error in waitFor")}))}n.d(t,"a",(function(){return a}))},226:function(e,t,n){"use strict";var a=n(2),r=n(43),i=n(44),o=n(58),s=n(59),c=n(1),l=n.n(c),d=n(354),u=n(0),b=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){return Object(u.jsx)(d.a,Object(a.a)(Object(a.a)({viewBox:"0 0 21 21"},this.props),{},{children:Object(u.jsx)("path",{d:"M10.5,0 C4.70080435,0 0,4.70080435 0,10.5 C0,16.2991957 4.70080435,21 10.5,21 C16.2991957,21 21,16.2991957 21,10.5 C21,4.70080435 16.2991957,0 10.5,0 Z M10.5,4.10869565 C11.2564565,4.10869565 11.8695652,4.72180435 11.8695652,5.47826087 C11.8695652,6.23471739 11.2564565,6.84782609 10.5,6.84782609 C9.74354348,6.84782609 9.13043478,6.23471739 9.13043478,5.47826087 C9.13043478,4.72180435 9.74354348,4.10869565 10.5,4.10869565 Z M12.326087,16.4347826 L11.4130435,16.4347826 L9.58695652,16.4347826 L8.67391304,16.4347826 L8.67391304,15.5217391 L9.58695652,15.5217391 L9.58695652,9.58695652 L8.67391304,9.58695652 L8.67391304,8.67391304 L9.58695652,8.67391304 L11.4130435,8.67391304 L11.4130435,9.58695652 L11.4130435,15.5217391 L12.326087,15.5217391 L12.326087,16.4347826 Z"})}))}}]),n}(l.a.PureComponent);b.displayName="Info",b.muiName="SvgIcon",t.a=b},23:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"i",(function(){return s})),n.d(t,"g",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"h",(function(){return d})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return p})),n.d(t,"c",(function(){return m}));var a=n(8),r=n.n(a),i=n(85),o=function(e){return r()(e).format("YYYY-MM-DD")},s=function(e){return e&&e.set({hour:0,minute:0,second:0,millisecond:0})},c=function(e){var t=new Date,n=r.a.duration(r()(t).diff(r()(e))),a=n._data.years?"".concat(n._data.years," ").concat(n._data.years>1?i.a.t("yearsAgo"):i.a.t("yearAgo")):"",o=n._data.months?"".concat(n._data.months," ").concat(n._data.months>1?i.a.t("monthsAgo"):i.a.t("monthAgo")):"",s=n._data.days?"".concat(n._data.days," ").concat(n._data.days>1?i.a.t("daysAgo"):i.a.t("dayAgo")):"",c=n._data.hours?"".concat(n._data.hours," ").concat(n._data.hours>1?i.a.t("hoursAgo"):i.a.t("hourAgo")):"",l=n._data.minutes?"".concat(n._data.minutes," ").concat(n._data.minutes>1?i.a.t("minutesAgo"):i.a.t("minuteAgo")):"";return a?"".concat(a," ").concat(o&&o):o||(s?1===n._data.days?i.a.t("yesterday"):7===n._data.days?i.a.t("weekAgo"):14===n._data.days?i.a.t("twoWeeksAgo"):s:c||(l||i.a.t("recently")))},l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"days",a=arguments.length>3?arguments[3]:void 0,o="nights"===n?r()(e).diff(r()(t),"days"):r()(e).diff(r()(t),n),s=function(e,t,n){return a?e:e>1?"".concat(e," ").concat(n):"".concat(e," ").concat(t)},c={years:o?s(o,i.a.t("year"),i.a.t("years")):"",months:o?s(o,i.a.t("month"),i.a.t("months")):"",days:o?s(o,i.a.t("day"),i.a.t("days")):"",nights:o?s(o,i.a.t("night"),i.a.t("nights")):""};return c[n]},d=function(e,t){if(!e)return!1;if(!t)return!!r()(e).isValid();if(e&&t){var n=t.split("/"),a=e.split("/"),i=a&&a.length&&a[n.indexOf("DD")]||"",o=a&&a.length&&a[n.indexOf("MM")]||"",s=a&&a.length&&a[n.indexOf("YYYY")]||"",c=i&&i.length&&i.length<=2&&+i<=31,l=o&&o.length&&o.length<=2&&+o<=12,d=s&&s.length&&4===s.length&&+s>=1900;return!!(c&&l&&d)&&!!r()(e,t).isValid()}return!0},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Intl.DateTimeFormat(i.a.language,{month:"short",day:"numeric",year:t?void 0:"numeric"}).format(Object(a.isMoment)(e)?e.toDate():new Date(e))},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Intl.DateTimeFormat(i.a.language,{month:"short",day:"numeric",year:t?void 0:"numeric",hour:"2-digit",minute:"2-digit"}).format(Object(a.isMoment)(e)?e.toDate():new Date(e))},p=function(e){return new Intl.DateTimeFormat(i.a.language,{month:"short"}).format(Object(a.isMoment)(e)?e.toDate():new Date(e))},m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=r()(e),o=r()(t);return n&&o.set("year",a.get("year")),new Intl.DateTimeFormat(i.a.language,{month:"short",day:"numeric",year:n?void 0:"numeric"}).formatRange(a.toDate(),o.toDate())}},232:function(e,t,n){"use strict";n.d(t,"c",(function(){return m})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return u}));var a=n(31),r=n(26),i=n(2),o=n(5),s=Object(o.a)("HISTORY_CHANGE"),c=Object(o.a)("ADD_NEW_PAGE_TITLE"),l=Object(o.a)("HISTORY_GO_BACK"),d=function(e){return function(t){return t(s(e))}},u=function(){return function(e){return e(l())}},b={routerHistory:[],customTitles:{}},p=50,m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.type:return e.routerHistory[e.routerHistory.length-1]!==t.payload?e.routerHistory.length0&&void 0!==arguments[0]?arguments[0]:_e,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case c.type:return Object(a.a)(Object(a.a)({},e),{},{piers:t.payload,isLoading:!1,error:null});case d.type:return Object(a.a)(Object(a.a)({},e),{},{piers:[],isLoading:!1,error:null});case l.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case p.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case m.type:return Object(a.a)(Object(a.a)({},e),{},{berthData:t.payload,isLoading:!1,error:null});case f.type:return Object(a.a)(Object(a.a)({},e),{},{berthData:{},isLoading:!1,error:null});case h.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case g.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case _.type:return Object(a.a)(Object(a.a)({},e),{},{extendedBerthData:t.payload,isLoading:!1,error:null});case x.type:return Object(a.a)(Object(a.a)({},e),{},{extendedBerthData:{},isLoading:!1,error:null});case v.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case T.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1});case R.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case A.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case Y.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1});case q.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case K.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case I.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1});case C.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,session_id:t.payload.id,error:null});case w.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case M.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1});case L.type:var n=t.payload.length?t.payload.find((function(e){return"STARTED"===e.status})):null;return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,sessions:t.payload,session_id:n?n.id:null,error:null});case k.type:return Object(a.a)(Object(a.a)({},e),{},{sessions:null,isLoading:!1,error:null});case F.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1});case W.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case U.type:case B.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case Z.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1});case J.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case $.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case ne.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1});case ae.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case re.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});default:return e}}},254:function(e,t,n){"use strict";n.d(t,"f",(function(){return ae})),n.d(t,"a",(function(){return q})),n.d(t,"d",(function(){return K})),n.d(t,"c",(function(){return X})),n.d(t,"j",(function(){return J})),n.d(t,"b",(function(){return Q})),n.d(t,"h",(function(){return $})),n.d(t,"g",(function(){return ee})),n.d(t,"e",(function(){return Z})),n.d(t,"i",(function(){return te}));var a=n(2),r=n(5),i=n(13),o="/admin/absence_report/create",s="/admin/absence_report/getall",c="/admin/absence_report/get",l="/admin/absence_report/edit",d="/admin/absence_report/delete",u="/admin/absence_report/available_vessels",b=function(){return Object(i.b)(s,{}).then((function(e){return e.json()}))},p=function(e){return Object(i.b)(c,{absence_report_id:e}).then((function(e){return e.json()}))},m=function(e){return Object(i.b)(d,{absence_report_id:e}).then((function(e){return e.json()}))},h=function(){return Object(i.b)(u,{}).then((function(e){return e.json()}))},f=Object(r.b)("CREATE_ABSENCE_REPORT"),j=f.request,O=f.success,g=f.failure,_=(f.set,Object(r.b)("ABSENCE_REPORTS")),v=_.request,x=_.success,E=_.failure,y=_.reset,T=_.set,R=Object(r.b)("ABSENCE_REPORT"),A=R.request,S=R.success,N=R.failure,I=R.reset,C=R.set,w=Object(r.b)("ABSENCE_REPORT_UPDATE"),D=w.request,P=w.success,M=w.failure,L=(w.set,Object(r.b)("ABSENCE_REPORT_DELETE")),B=L.request,k=L.success,H=L.failure,V=L.set,F=Object(r.b)("ABSENCE_REPORT_AVAILABLE_VESSELS"),W=F.request,U=F.success,G=F.failure,z=F.reset,Y=F.set,q=function(e,t,n,r,s,c,l){return function(d){return d(j()),function(e,t,n,r,s,c,l){var d={departure_date:r,return_date:s,reason:c,destination:l,vessel_id:e};return t&&(d.customer_id=t),n&&(d.boater_id=n),e&&(d.vessel_id=e),Object(i.b)(o,Object(a.a)({},d)).then((function(e){return e.json()}))}(e,t,n,r,s,c,l).then((function(e){return e.error?d(g(e.error)):d(O(e))})).catch((function(e){return d(g(e))}))}},K=function(){for(var e=arguments.length,t=new Array(e),n=0;n3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return Object(i.b)(l,{absence_report_id:e,departure_date:t,return_date:n,reason:a,destination:r}).then((function(e){return e.json()}))}(e,t,n,a,r).then((function(e){return e.error?o(M(e.error)):o(P(e))})).catch((function(e){return o(M(e))}))}},$=function(){return Object(r.f)({reset:!0,actionSet:T})},ee=function(){return Object(r.f)({reset:!0,actionSet:C})},te=function(){return Object(r.f)({reset:!0,actionSet:Y})},ne={isLoading:!0,list:[],absenceReport:null,error:null,availableVessels:[]},ae=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case j.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case O.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case g.type:return{isLoading:!1,error:t.payload};case v.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case x.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,list:t.payload,error:null});case E.type:return{isLoading:!1,list:[],error:t.payload};case y.type:return Object(a.a)(Object(a.a)({},e),{},{list:[]});case A.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case S.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,absenceReport:t.payload,error:null});case N.type:return{isLoading:!1,list:[],error:t.payload};case I.type:return Object(a.a)(Object(a.a)({},e),{},{absenceReport:null,messages:[]});case D.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case P.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case M.type:return{isLoading:!1,error:t.payload};case B.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case k.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case H.type:return{isLoading:!1,error:t.payload};case W.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case U.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,availableVessels:t.payload,error:null});case G.type:return{isLoading:!1,availableVessels:[],error:t.payload};case z.type:return Object(a.a)(Object(a.a)({},e),{},{availableVessels:[]});default:return e}}},262:function(e,t,n){"use strict";var a=n(2),r=(n(1),n(354)),i=n(0),o=function(e){return Object(i.jsx)(r.a,Object(a.a)(Object(a.a)({viewBox:"0 0 24 24"},e),{},{children:Object(i.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:"#FFF",strokeLinejoin:"round",strokeWidth:"1.5",children:[Object(i.jsx)("path",{d:"M11.711 18.71l-5.1-5.1c-.89-.89-.889-2.331 0-3.22.89-.89 2.332-.89 3.221 0l3.245 3.244 6.076-8.1c.488-.65 1.286-.992 2.094-.894.808.097 1.502.618 1.822 1.366.32.748.215 1.61-.273 2.261l-7.652 10.2c-.396.529-1.002.86-1.661.906-.659.047-1.306-.195-1.772-.663z"}),Object(i.jsx)("path",{strokeLinecap:"round",d:"M11.705 8.537l2.253-3.006c.567-.755 1.541-1.082 2.449-.823M8.891 19.246c-.828.294-1.752.086-2.373-.536l-5.1-5.1c-.753-.751-.886-1.924-.32-2.824.566-.9 1.68-1.29 2.684-.936"})]})}))};o.displayName="AbsenceReportIcon",o.muiName="SvgIcon",t.a=o},269:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return p})),n.d(t,"f",(function(){return m})),n.d(t,"d",(function(){return h}));var a=n(13),r="/admin/users/getall",i="/admin/users/add",o="/admin/users/edit",s="/admin/users/delete",c="/admin/users/language",l="/admin/public/reset_password",d=function(){return Object(a.b)(r,{}).then((function(e){return e.json()}))},u=function(e,t,n,r){return Object(a.b)(i,{email:e,first_name:t,last_name:n,permissions:r}).then((function(e){return e.json()}))},b=function(e,t,n,r){return Object(a.b)(o,{edit_user_id:e,first_name:t,last_name:n,permissions:r}).then((function(e){return e.json()}))},p=function(e){return Object(a.b)(s,{user_id:e}).then((function(e){return e.json()}))},m=function(e){return Object(a.b)(c,{language:e}).then((function(e){return e.json()}))},h=function(e){return Object(a.b)(l,{email:e}).then((function(e){return e.json()}))}},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(2),r=(n(1),n(919)),i=n.n(r),o=n(0),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"div",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(){return{__html:i.a.sanitize(e)}},s=t;return Object(o.jsx)(s,Object(a.a)({dangerouslySetInnerHTML:r()},n))}},296:function(e,t,n){"use strict";n.d(t,"e",(function(){return k})),n.d(t,"a",(function(){return D})),n.d(t,"d",(function(){return w})),n.d(t,"c",(function(){return P})),n.d(t,"b",(function(){return M})),n.d(t,"f",(function(){return L}));var a=n(2),r=n(5),i=n(269),o=Object(r.b)("GET_ALL_USERS"),s=o.request,c=o.success,l=o.failure,d=o.set,u=Object(r.b)("CREATE_USER"),b=u.request,p=u.success,m=u.failure,h=u.reset,f=u.set,j=Object(r.b)("CREATE_USER"),O=j.request,g=j.success,_=j.failure,v=j.set,x=Object(r.b)("DELETE_USER"),E=x.request,y=x.success,T=x.failure,R=x.set,A=Object(r.b)("EDIT_USER_LANGUAGE"),S=A.request,N=A.success,I=A.failure,C=A.set,w=function(){return Object(r.f)({request:i.e,actionSet:d})},D=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:B,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case b.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case p.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case m.type:return{isLoading:!1,error:t.payload};case h.type:return Object(a.a)(Object(a.a)({},e),{},{error:null});case O.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case g.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case _.type:return{isLoading:!1,error:t.payload};case E.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case y.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case T.type:return{isLoading:!1,error:t.payload};case s.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case c.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null,list:t.payload});case l.type:return{isLoading:!1,error:t.payload,list:[]};case S.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case N.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case I.type:return{isLoading:!1,error:t.payload};default:return e}}},299:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var a=n(37),r=n.n(a),i=n(52),o=n(13),s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},r=function(t){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){if(r.status&&200===r.status){var t=window.URL.createObjectURL(r.response),a=document.createElement("a");a.href=t,a.download=e,document.body.appendChild(a),a.click(),a.remove()}n()},r.onerror=function(e){a(e)},r.send()};r(t)},c=function(){var e=Object(i.a)(r.a.mark((function e(t){var n,a=arguments;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:"pap_download",e.next=3,Object(o.b)("/admin/attachment/get_link",{attachment_id:t}).then((function(e){return e.text()})).then((function(e){s(n,e)}));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},303:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i}));var a=[{label:"MEMBERS_TYPES_POPEYE",id:"popeye"},{label:"MEMBERS_TYPES_TEM",id:"TEM"},{label:"MEMBERS_TYPES_SIGNED_UP",id:"signed"},{label:"MEMBERS_TYPES_NONE",id:"non"}],r=[{label:"customers_filter_all",id:"all"},{label:"customers_filter_nonMembers",id:"boaters"},{label:"active",id:"active"},{label:"expired",id:"expired"}],i=[{label:"customers_filter_all",id:"all"},{label:"customers_filter_nonMembers",id:"boaters"},{label:"active",id:"active"}]},304:function(e,t,n){"use strict";n.d(t,"e",(function(){return ie})),n.d(t,"c",(function(){return Q})),n.d(t,"h",(function(){return ne})),n.d(t,"b",(function(){return Z})),n.d(t,"g",(function(){return ae})),n.d(t,"a",(function(){return $})),n.d(t,"f",(function(){return ee})),n.d(t,"i",(function(){return te})),n.d(t,"d",(function(){return J}));var a=n(2),r=n(13),i="/admin/vessel/get",o="/admin/vessel/available_boaters",s="/admin/vessel/add_boater",c="/admin/vessel/remove_boater",l="/admin/vessel/set_primary_boater",d="/admin/memberships/get",u=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(r.b)(i,{vessel_id:e,is_membership_search:t}).then((function(e){return e.json()}))},b=function(e){return Object(r.b)(o,{vessel_id:e}).then((function(e){return e.json()}))},p=function(e,t,n){var i={vessel_id:e};return t?i=Object(a.a)(Object(a.a)({},i),{},{boater_id:t}):n&&(i=Object(a.a)(Object(a.a)({},i),{},{email:n})),Object(r.b)(s,i).then((function(e){return e.json()}))},m=function(e,t){return Object(r.b)(c,{vessel_id:e,boater_id:t}).then((function(e){return e.json()}))},h=function(e,t){return Object(r.b)(l,{vessel_id:e,boater_id:t}).then((function(e){return e.json()}))},f=function(e){return Object(r.b)(d,{vessel_id:e}).then((function(e){return e.json()}))},j=n(5),O=Object(j.b)("GET_VESSEL"),g=O.request,_=O.success,v=O.failure,x=O.reset,E=O.set,y=Object(j.b)("GET_AVAILABLE_BOATERS"),T=y.request,R=y.success,A=y.failure,S=y.reset,N=y.set,I=Object(j.b)("GET_VESSEL_MEMBERSHIPS"),C=I.request,w=I.success,D=I.failure,P=I.set,M=Object(j.b)("ADD_CONTACT"),L=M.request,B=M.success,k=M.failure,H=M.set,V=Object(j.b)("REMOVE_CONTACT"),F=V.request,W=V.success,U=V.failure,G=V.set,z=Object(j.b)("SET_PRIMARY_CONTACT"),Y=z.request,q=z.success,K=z.failure,X=z.set,Q=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:re,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case g.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case _.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null,vessel:t.payload});case v.type:return{isLoading:!1,error:t.payload,vessel:null};case C.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case w.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null,memberships:t.payload});case D.type:return{isLoading:!1,error:t.payload,memberships:[]};case x.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0,error:null,vessel:null,memberships:[]});case T.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case R.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null,availableBoaters:t.payload});case A.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload,availableBoaters:null});case S.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0,error:null,availableBoaters:[]});case L.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case B.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case k.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case F.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case W.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case U.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case Y.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case q.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case K.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});default:return e}}},324:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i}));var a=[{id:"boatName",label:"customers_boatName",formatter:"fullName",dataKeys:["boatName"],sortable:!0},{id:"length",label:"newReservationWizardVesselSizes",formatter:"size",dataKeys:["boatSize"],sortable:!1},{id:"homeMarina",label:"EXPORT_CUSTOMERS_VESSEL_HOME_MARINA",formatter:"homeMarinaName",dataKeys:["homeMarina"],sortable:!0},{id:"fullName",label:"new_boaters_table_boater_full_name",formatter:"fullName",dataKeys:["fullName"],sortable:!0},{id:"email",label:"new_boaters_table_boater_email_address",formatter:"email",dataKeys:["email"],sortable:!0},{id:"popeyeStatus",label:"new_boaters_table_boater_popeye_status",formatter:"popeye",dataKeys:["popeyeStatus"],sortable:!1},{id:"membershipCard",subField:"card",label:"new_boaters_table_boater_tem_number",formatter:"temNumber",dataKeys:["membershipCard"],sortable:!1}],r=[{id:"MOTOR",label:"MOTOR"},{id:"SAIL",label:"SAIL"},{id:"WIDEBEAM",label:"WIDEBEAM"},{id:"BARGE",label:"BARGE"},{id:"NARROWBOAT",label:"NARROWBOAT"},{id:"RIB",label:"RIB"}],i=[{id:"MONOHULL",label:"MONOHULL"},{id:"MULTIHULL",label:"MULTIHULL"}]},325:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));n(1);var a=n(40),r=n.n(a),i=n(15),o=n(2),s=n(354),c=n(0),l=function(e){return Object(c.jsxs)(s.a,Object(o.a)(Object(o.a)({},e),{},{children:[Object(c.jsx)("defs",{children:Object(c.jsxs)("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"97.0224809%",id:"gradient",children:[Object(c.jsx)("stop",{stopColor:"#11A6DE",offset:"0%"}),Object(c.jsx)("stop",{stopColor:"#004CAB",offset:"100%"})]})}),Object(c.jsx)("g",{fill:"url(#gradient)",children:Object(c.jsx)("polygon",{points:"0 24 24 0 24 24"})})]}))};l.displayName="Triangle",l.muiName="SvgIcon";var d=l,u=Object(i.a)((function(e){return{root:{display:"flex",alignItems:"baseline"},icon:{fontSize:e.utils.pxToRem(13),marginRight:10},title:{display:"inline-flex",width:"100%",alignItems:"center"}}}))((function(e){var t=e.classes,n=e.title,a=e.className,i=e.testID;return Object(c.jsxs)("div",{className:r()(t.root,a),children:[Object(c.jsx)(d,{className:t.icon}),Object(c.jsx)("div",{className:t.title,testID:i,children:n})]})}))},327:function(e,t,n){"use strict";n(1);var a=n(0),r=function(e){var t=e.isUnderHover,n=e.color,r=e.hoverColor;return Object(a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:Object(a.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:t?r:n,strokeLinejoin:"round",strokeWidth:"1.5",children:[Object(a.jsx)("path",{d:"M11.711 18.71l-5.1-5.1c-.89-.89-.889-2.331 0-3.22.89-.89 2.332-.89 3.221 0l3.245 3.244 6.076-8.1c.488-.65 1.286-.992 2.094-.894.808.097 1.502.618 1.822 1.366.32.748.215 1.61-.273 2.261l-7.652 10.2c-.396.529-1.002.86-1.661.906-.659.047-1.306-.195-1.772-.663z"}),Object(a.jsx)("path",{strokeLinecap:"round",d:"M11.705 8.537l2.253-3.006c.567-.755 1.541-1.082 2.449-.823M8.891 19.246c-.828.294-1.752.086-2.373-.536l-5.1-5.1c-.753-.751-.886-1.924-.32-2.824.566-.9 1.68-1.29 2.684-.936"})]})})};r.displayName="Absences",t.a=r},328:function(e,t,n){"use strict";n(1);var a=n(0),r=function(e){var t=e.isUnderHover,n=e.color,r=e.hoverColor;return Object(a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:Object(a.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:t?r:n,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[Object(a.jsx)("path",{d:"M.75 20.25c0-3.728 3.022-6.75 6.75-6.75s6.75 3.022 6.75 6.75M3.945 5.781c1.98 2.05 5.023 2.662 7.642 1.536"}),Object(a.jsx)("circle",{cx:"7.5",cy:"7.875",r:"4.125"}),Object(a.jsx)("path",{d:"M15 13.667c2.002-.454 4.103.028 5.707 1.308 1.605 1.281 2.54 3.222 2.543 5.275M14.251 4.416c1.635-1.062 3.79-.835 5.167.545 1.377 1.38 1.6 3.536.535 5.168-1.065 1.633-3.128 2.297-4.946 1.592"}),Object(a.jsx)("path",{d:"M20.612 8.2l.011.778c-.039 1.151.26 2.289.86 3.272"}),Object(a.jsx)("path",{d:"M14.247 7.867c.87-.324 1.644-.861 2.253-1.562 1.033 1.196 2.532 1.889 4.112 1.9"})]})})};r.displayName="CustomersNotification",t.a=r},329:function(e,t,n){"use strict";n(1);var a=n(0),r=function(e){var t=e.isUnderHover,n=e.color,r=e.hoverColor;return Object(a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:Object(a.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:t?r:n,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",transform:"translate(.75 .753)",children:[Object(a.jsx)("rect",{width:"22.5",height:"22.5",rx:"1.5"}),Object(a.jsx)("path",{d:"M6 6.75L16.5 6.75M6 11.25L16.5 11.25M6 15.75L16.5 15.75"})]})})};r.displayName="Reservations",t.a=r},339:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a=function(){return"_"+Math.random().toString(36).substr(2,9)}},344:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var a=n(2),r=n(6),i=n(1),o=n(913),s=n(330),c=n.n(s),l=n(4),d=n(19),u=n(424),b=n(1701),p=n(1633),m=n(1754),h=n(15),f=n(0),j=function(e,t){var n=t.inputValue;return n?Object(u.a)(e,n,{keys:["name"]}):[]},O=Object(h.a)((function(e){return{wrapper:{width:"100%",fontSize:e.utils.pxToRem(10),backgroundColor:"#EFF2F8","& .MuiInputBase-root":{paddingLeft:14},"& .MuiAutocomplete-input":{fontSize:e.utils.pxToRem(14),height:27},"& .MuiAutocomplete-paper":{margin:0},"& .MuiAutocomplete-listbox":{padding:"4px 0",maxHeight:"158px"},"& .MuiAutocomplete-option":{fontSize:e.utils.pxToRem(14),minHeight:30,padding:0},'& .MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:"transparent"},'& .MuiAutocomplete-option[data-focus="true"]':{backgroundColor:"rgba(0, 0, 0, 0.04)"},"& .MuiAutocomplete-popupIndicatorOpen":{transform:"none"},"& .MuiAutocomplete-clearIndicator":{visibility:"hidden"},"& .MuiAutocomplete-endAdornment":{right:5}},selected:{"& .MuiAutocomplete-popupIndicator":{display:"none"},"& .MuiAutocomplete-clearIndicator":{visibility:"visible"}},optionWrapper:{height:"100%",width:"100%",padding:"6px 16px 6px"},emptyOption:{backgroundColor:"#ffffff"},noResultsOption:{},noResultsText:{fontSize:e.utils.pxToRem(14),margin:"0 0 7px",color:"#1A1A1B"},button:{textTransform:"none",padding:0,fontSize:e.utils.pxToRem(14),"&.Mui-disabled":{opacity:.3,color:"#255EDD"}}}}))(Object(d.j)((function(e){var t=e.classes,n=e.value,s=e.inputValue,d=e.options,u=e.onChange,h=e.onOpen,O=void 0===h?function(){}:h,g=e.onClose,_=void 0===g?function(){}:g,v=e.onInputChange,x=void 0===v?function(){}:v,E=e.style,y=void 0===E?{}:E,T=e.history,R=e.onCreate,A=void 0===R?function(){}:R,S=e.vessel_id,N=e.reservation_id,I=Object(o.a)().t,C=Object(i.useState)(!1),w=Object(r.a)(C,2),D=w[0],P=w[1],M=function(e){e.stopPropagation();var t="/berths/create?";S&&(t="".concat(t,"&vessel_id=").concat(S)),N&&(t="".concat(t,"&reservation_id=").concat(N));var n=function(e){var t=e?e.match(/\d+$/):null,n=t?t.index:null,a=t&&n?t[0]:null,r=a?e.substring(0,n):null;return e&&r&&a?{pier_name:r,berth_number:a}:null}(s);n&&(t="".concat(t,"&pier_name=").concat(n.pier_name,"&berth_number=").concat(n.berth_number)),A(),T.push(t)},L=function(){P(!0)},B=function(){P(!1)};return Object(f.jsx)("div",{className:Object(l.a)(t.wrapper,n&&n.name&&t.selected),children:Object(f.jsx)(m.a,{openOnFocus:!0,blurOnSelect:!0,fullWidth:!0,disablePortal:!0,id:"berth-autocomplete",value:n,onChange:u,popupIcon:D?null:Object(f.jsx)(c.a,{fontSize:"small"}),getOptionLabel:function(e){return e.name},getOptionSelected:function(e){return e.name},filterOptions:function(e){var n=j(e,{inputValue:s});return n.length?n:[{name:Object(f.jsxs)("div",{className:t.noResultsOption,onClick:function(e){return e.stopPropagation()},children:[Object(f.jsx)("p",{className:t.noResultsText,children:I("RESIDENT_BERTH_NOT_FOUND")}),Object(f.jsx)(b.a,{color:"primary",className:t.button,onClick:M,children:I("RESIDENT_BERTH_CREATE_BUTTON")})]})}]},inputValue:s,onInputChange:x,onClose:_,onOpen:O,options:d,renderOption:function(e){var n=j(d,{inputValue:s});return Object(f.jsx)("div",{className:Object(l.a)(t.optionWrapper,!n.length&&t.emptyOption),children:e.name})},renderInput:function(e){return Object(f.jsx)(p.a,Object(a.a)(Object(a.a)({},e),{},{autoFocus:!n,placeholder:D?"":I("RESIDENT_BERTH_SEARCH_PH"),margin:"none",onFocus:L,onBlur:B}))},style:y})})})))},346:function(e,t,n){"use strict";n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return b}));var a=n(2),r=n(13),i="/admin/chain_manager/dashboard/get_all",o="/admin/chain_manager/switch_marina_id",s="/admin/chain_manager/add_user_to_marina",c="/admin/chain_manager/permissions";function l(e){return Object(r.b)(i,Object(a.a)({},e)).then((function(e){return e.json()}))}var d=function(e){return Object(r.b)(o,{new_marina_id:e}).then((function(e){return e.json()}))},u=function(e,t){return Object(r.b)(s,{marina_id:e,user_email:t}).then((function(e){return e.json()}))},b=function(e,t){return Object(r.b)(c,{edit_marina_id:e,permissions:t}).then((function(e){return e.json()}))}},355:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(929),r={name:n.n(a)()("^(\\p{L})+(?:[-'`.\\p{L}\\s])*$"),phone:/^(\+{0,1}\d(\d|-){4,})$/,email:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,date:/^\d{2}[./-]\d{2}[./-]\d{4}$/}},356:function(e,t,n){"use strict";n.d(t,"b",(function(){return E})),n.d(t,"a",(function(){return g})),n.d(t,"d",(function(){return _})),n.d(t,"c",(function(){return v}));var a=n(2),r=n(5),i=n(13),o="/admin/customers/residents",s=function(){return Object(i.b)(o,{}).then((function(e){return e.json()}))},c="/admin/card/resend";function l(e,t){return Object(i.b)(c,{customer_id:e,email:t}).then((function(e){return e.json()})).catch((function(e){return e}))}var d=Object(r.b)("RESIDENTS"),u=d.request,b=d.success,p=d.failure,m=d.reset,h=d.set,f=Object(r.b)("SEND_RESIDENT_EMAIL"),j=(f.request,f.success,f.failure),O=f.set,g=function(){return Object(r.f)({request:s,actionSet:h})},_=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:x,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case b.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null,list:t.payload});case p.type:return{isLoading:!1,error:t.payload,list:[]};case j.type:return Object(a.a)(Object(a.a)({},e),{},{error:t.payload});case m.type:return x;default:return e}}},385:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(2),r=n(29),i=(n(1),n(4)),o=n(15),s=n(1724),c=n(0),l=["classes"],d=Object(o.a)((function(e){return{root:{width:34,height:21,padding:0,margin:0},disabled:{opacity:.5},switchBase:{padding:1,"&$checked":{transform:"translateX(13px)",color:e.palette.common.white,"& + $track":{backgroundColor:"#255EDD",opacity:1,border:"none"}},"&$focusVisible $thumb":{color:"#255EDD",border:"6px solid #fff"}},thumb:{width:19,height:19},track:{borderRadius:13,backgroundColor:"#bfbfbf",opacity:1,transition:e.transitions.create(["background-color","border"])},checked:{},focusVisible:{}}}))((function(e){var t=e.classes,n=Object(r.a)(e,l);return Object(c.jsx)(s.a,Object(a.a)({focusVisibleClassName:t.focusVisible,disableRipple:!0,classes:{root:n.disabled?Object(i.a)(t.root,t.disabled):t.root,switchBase:t.switchBase,thumb:t.thumb,track:t.track,checked:t.checked}},n))}))},392:function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var a=n(18),r=n(21),i=n(12),o=n(2),s=n(6),c=n(29),l=n(1),d=n(19),u=n(15),b=n(913),p=n(916),m=n(1713),h=n(1629),f=n(119),j=n(194),O=n(22),g=n(28),_=n(0),v=["classes","user","showDialog","hideDialog"],x=Object(u.a)((function(e){return{root:{fontSize:e.utils.pxToRem(14)},button:{textTransform:"none",borderRadius:20,padding:"6px 20px"},icon:{fontSize:e.utils.pxToRem(18)},text:{fontSize:e.utils.pxToRem(16)},menuIcon:{fontSize:e.utils.pxToRem(16),marginRight:20},dialogWrapper:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"".concat(e.utils.pxToRem(16)," 0 ").concat(e.utils.pxToRem(68)," ").concat(e.utils.pxToRem(20))},dialogText:{marginTop:e.utils.pxToRem(10)}}}))(Object(d.j)((function(e){var t=e.classes,n=e.user,a=e.showDialog,r=e.hideDialog,i=Object(c.a)(e,v),o=Object(b.a)().t;Object(l.useEffect)((function(){i.open&&Object(O.a)((function(){})).then((function(){a({onClose:i.onClose(),open:!0,title:"multiplePopup_title",body:d(),confirm:{label:"multiplePopup_confirm",onClick:function(){return u()}},cancel:{label:"cancel",onClick:function(){return s()}}})}))}),[i.open]);var s=function(){r(),i.onClose()},d=function(){return Object(_.jsxs)("div",{className:t.dialogWrapper,children:[Object(_.jsx)("img",{src:"/static/img/download-scv.svg"}),Object(_.jsxs)("div",{children:[Object(_.jsx)(j.a,{style:{fontWeight:700},children:o("multiplePopup_subTitle")}),Object(_.jsx)(j.a,{children:Object(g.a)(o("multiplePopup_text"),"span")})]})]})},u=function(){try{var e=document.createElement("a");e.style.display="none";var i=n.language?n.language.toUpperCase():"EN";e.href="https://images.pickapier.com/Multiple_Cards_Form_".concat(i,".xlsx"),e.download="multiple_card_spreadsheet_".concat(window.localStorage.getItem("lang").toUpperCase(),".xlsx"),document.body.appendChild(e),e.click(),a({open:!0,title:"multiplePopupSuccess_title",body:Object(_.jsxs)("div",{className:t.dialogWrapper,children:[Object(_.jsx)("img",{src:"/static/img/download-scv-done.svg"}),Object(_.jsxs)("div",{children:[Object(_.jsx)(j.a,{style:{fontWeight:700},children:o("multiplePopupSuccess_subTitle")}),Object(_.jsx)(j.a,{children:Object(g.a)(o("multiplePopupSuccess_text"),"span")})]})]}),confirm:{label:"ok",onClick:function(){return s()}}})}catch(c){console.info(c),a({open:!0,title:"customers_errorOccurred",cancel:{label:"close",onClick:function(){return r()}}})}};return Object(_.jsx)(_.Fragment,{})}))),E=Object(a.b)((function(e,t){return{user:Object(r.X)(e)}}),(function(e){return{showDialog:function(){return e(i.I.apply(void 0,arguments))},hideDialog:function(){return e(Object(i.i)())},showOverlayAction:function(){return e(Object(i.O)())},hideOverlayAction:function(){return e(Object(i.o)())}}}))(x),y=n(55),T=n(261),R=n.n(T),A=n(532),S=n.n(A),N=["classes","user","showDialog","hideDialog","disableMultiple","label","isMarinaLiteVersion","hideCustomersPopup"],I=Object(u.a)((function(e){return{root:{fontSize:e.utils.pxToRem(14)},button:{textTransform:"none",borderRadius:20,padding:"4px 16px"},icon:{fontSize:e.utils.pxToRem(18)},text:{fontSize:e.utils.pxToRem(16)},menuIcon:{fontSize:e.utils.pxToRem(16),marginRight:20},dialogWrapper:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"".concat(e.utils.pxToRem(16)," 0 ").concat(e.utils.pxToRem(68)," ").concat(e.utils.pxToRem(20))},dialogText:{marginTop:e.utils.pxToRem(10)}}}))(Object(d.j)((function(e){var t=e.classes,n=(e.user,e.showDialog,e.hideDialog,e.disableMultiple),a=e.label,r=void 0===a?"customers_add":a,i=e.isMarinaLiteVersion,d=e.hideCustomersPopup,u=Object(c.a)(e,N),j=Object(b.a)().t,g=Object(l.useState)(null),v=Object(s.a)(g,2),x=v[0],T=v[1],A=Object(l.useState)(!1),I=Object(s.a)(A,2),C=I[0],w=I[1],D=function(e){T(e.currentTarget)},P=function(){T(null)};return Object(_.jsxs)("div",{className:t.root,children:[Object(_.jsx)(E,{open:C,onClose:function(){return w(!1)}}),i?Object(_.jsx)(y.a,Object(o.a)(Object(o.a)({type:"main",isMarinaLiteVersion:!0,onClick:D,testID:"addCardButton"},u),{},{children:j(r)})):Object(_.jsx)(f.a,Object(o.a)(Object(o.a)({type:"withIcon",onClick:D,testID:"addCardButton",icon:Object(_.jsx)(S.a,{className:t.icon})},u),{},{children:Object(_.jsx)("span",{className:t.text,children:j(r)})})),Object(_.jsxs)(p.a,{id:"menu",style:{top:20},anchorEl:x,open:!!x,onClose:P,PaperProps:{style:{minWidth:230,marginTop:29}},children:[Object(_.jsx)(m.a,{tabIndex:"-1",style:{display:"none"}}),Object(_.jsxs)(h.a,{onClick:function(){d(),u.history.push("/cards/create")},testID:"addSingleMenuItem",children:[Object(_.jsx)(S.a,{className:t.menuIcon}),Object(_.jsx)("div",{style:{textTransform:"capitalize"},children:j("customers_newCard")})]}),Object(_.jsx)(m.a,{}),Object(_.jsxs)(h.a,{onClick:function(){Object(O.a)((function(){return P()})).then((function(){w(!0)}))},testID:"addMultipleMenuItem",disabled:n,children:[Object(_.jsx)(R.a,{className:t.menuIcon}),Object(_.jsx)("div",{style:{textTransform:"capitalize"},children:j("customers_multipleCards")})]})]})]})}))),C=Object(a.b)((function(e,t){return{user:Object(r.X)(e)}}),(function(e){return{showDialog:function(){return e(i.I.apply(void 0,arguments))},hideDialog:function(){return e(Object(i.i)())},showOverlayAction:function(){return e(Object(i.O)())},hideOverlayAction:function(){return e(Object(i.o)())},hideCustomersPopup:function(){return e(Object(i.h)())}}}))(I)},404:function(e,t,n){"use strict";n.d(t,"c",(function(){return E})),n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return v}));var a=n(2),r=n(5),i=n(13),o="/admin/marina_events/get",s="/admin/marina_events/create",c=function(e,t){return Object(i.b)(o,{start_date:e,end_date:t}).then((function(e){return e.json()}))},l=function(e){return Object(i.b)(s,{marina_event_details:e}).then((function(e){return e.json()}))},d=Object(r.b)("GET_MARINA_EVENT"),u=d.request,b=d.success,p=d.failure,m=d.set,h=Object(r.b)("CREATE_MARINA_EVENT"),f=h.request,j=h.success,O=h.failure,g=h.set,_=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:x,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case f.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case j.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1});case O.type:return{isLoading:!1};case u.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case b.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1});case p.type:return{isLoading:!1,error:t.payload.message};default:return e}}},410:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(18),r=n(232),i=n(1),o=n(19),s=n(913),c=n(4),l=n(15),d=n(194),u=n(0),b=Object(l.a)((function(e){return{titleContainer:{padding:"11px 0 12px 21px",borderBottom:"1px solid #e3e6ee",marginBottom:12,background:"#fff"},title:{fontSize:e.utils.pxToRem(14),color:"#253967"},clickable:{cursor:"pointer",color:"#545556",transition:"0.3s","&:hover":{color:"#253967",textDecoration:"underline"}}}}))(Object(o.j)((function(e){var t=e.classes,n=e.defaultTitle,a=e.routerHistory,r=e.goBack,o=e.history,l=e.defaultPath,b=e.unClickable,p=e.customTitles,m=e.exactPath,h=e.location,f=Object(s.a)().t,j=/reservations\/{1}/,O=/absence-reports\/{1}/,g=Object(i.useMemo)((function(){return!b&&a[a.length-2]}),[b,a]),_=Object(i.useMemo)((function(){return{dashboard:"dashboard",customers:"customers",reservations:"reservations","absence-reports":"absenceReports",memberships:"memberships",reservation:"reservation",absence:"absence"}}),[]),v=Object(i.useCallback)((function(e){return _[e.replace(/\\|\//g,"")]?_[e.replace(/\\|\//g,"")]:j.test(e)?_.reservation:O.test(e)?_.absence:""}),[]),x=Object(i.useMemo)((function(){return function(e){var t=e&&v(e),a=e&&e.split("?")[0];return e&&p[a]?f("navigation_goBack",{path:p[a]}):"/"===e?f("navigation_goBack",{path:f("navigation_".concat(_.dashboard))}):e&&_[t]?f("navigation_goBack",{path:f("navigation_".concat(_[t]))}):f(n||"back")}(g)}),[g]);return Object(u.jsx)("div",{className:t.titleContainer,children:Object(u.jsx)(d.a,{component:"h1",className:b?t.title:Object(c.a)(t.title,t.clickable),onClick:function(){m?o.push(l):g?(o.push(g,h.state?{back:h.state}:void 0),r()):l&&o.push(l)},children:"".concat(g||l?"<":""," ").concat(x)})})}))),p=Object(a.b)((function(e){return{routerHistory:e.router.routerHistory,customTitles:e.router.customTitles}}),(function(e){return{goBack:function(){return e(Object(r.a)())}}}))(b)},413:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var a=n(2),r=n(1755),i=n(1725),o=(n(1),n(913)),s=n(30),c=n.n(s),l=n(25),d=n(15),u=n(0),b=Object(d.a)((function(e){return{root:{textTransform:"none",fontSize:17,"&:hover":{color:"#0036b1",opacity:.9}},rootMobile:{width:"100%",padding:0,paddingLeft:"4.26vw",paddingRight:"4.26vw",boxSizing:"border-box"},indicator:{height:4,backgroundColor:"#194AB9"},selected:{color:"rgba(25, 74, 185, 1)",background:"#fff",minHeight:48},tabRoot:{textTransform:"none",fontSize:17,padding:"19px 19px 21px 19px","&:hover":{color:"#0036b1",opacity:.9},flexGrow:1},tabRootMobile:{textTransform:"none",fontSize:17,fontWeight:600,padding:"19px 19px 21px 19px","&:hover":{color:"#0036b1",opacity:.9},flexGrow:1},disabledTab:{color:"rgba(79, 79, 79, 1)"}}}))((function(e){var t=e.classes,n=e.tabs,s=e.activePanel,d=e.otherTabsProperties,b=void 0===d?{}:d,p=e.renderCustomTabLabel,m=e.labelProperty,h=void 0===m?"label":m,f=e.changePanel,j=e.a11yProps,O=Object(o.a)().t;return Object(u.jsx)(r.a,Object(a.a)(Object(a.a)({value:s.index,onChange:f,classes:{root:l.isMobile?t.rootMobile:t.root,indicator:t.indicator}},b),{},{children:n.map((function(e){return Object(u.jsx)(i.a,Object(a.a)(Object(a.a)({disabled:e.disabled,label:c()(p)?O(e[h]):p(e),classes:{selected:t.selected,root:t.tabRoot,disabled:t.disabledTab}},j(e.index)),{},{variant:"fullWidth"}),e.index)}))}))}))},414:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(6),r=n(1),i=n(4),o=n(15),s=n(630),c=n(22),l=n(0),d=Object(o.a)((function(e){return{wrapper:{display:"flex",position:"absolute",top:0,left:0,width:"100%",minHeight:44,justifyContent:"center",alignItems:"center",color:"#fff"},success:{background:"rgba(0, 196, 140, 0.8)"},failure:{background:"rgba(241, 114, 114, 0.8)"},info:{background:"rgb(0, 73, 245, 0.8)"}}}))((function(e){var t=e.classes,n=e.message,o=e.open,d=e.variant,u=Object(r.useState)(o),b=Object(a.a)(u,2),p=b[0],m=b[1];return Object(r.useEffect)((function(){o&&m(!0),Object(c.a)((function(){m(!1)}),5e3)}),[o]),Object(l.jsx)(s.a,{in:p,timeout:1e3,children:Object(l.jsx)("div",{className:Object(i.a)(t.wrapper,t[d]),children:n})})}))},415:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"d",(function(){return f}));var a=n(6),r=n(1),i=n(18),o=n(253),s=n.n(o);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(r.useState)(!1),o=Object(a.a)(n,2),c=o[0],l=o[1],d=Object(i.c)(),u=Object(i.d)((function(e){return e.uiMix.editMode.enabled})),b=!s()(e,t),p=Object(r.useCallback)((function(){d({type:"EDIT_MODE_ENABLE"}),l(!0)}),[d,b]),m=Object(r.useCallback)((function(){d({type:"EDIT_MODE_DISABLE"}),l(!1)}),[d]);return Object(r.useEffect)((function(){return function(){m()}}),[]),Object(r.useEffect)((function(){d({type:"EDIT_MODE_MODIFY",payload:b})}),[b]),{isEnabled:c,isEnabledGlobal:u,isModified:b,enable:p,disable:m}}n(22);var l=n(19),d=n(60),u=n.n(d),b=n(913);function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=Object(b.a)(),n=t.t,o=Object(l.i)(),s=Object(i.c)(),c=Object(i.d)((function(e){return e.uiMix.editMode})),d=Object(r.useMemo)((function(){return u()(o)?"":Object.values(o).join("/")}),[o]),p=Object(r.useMemo)((function(){return new URLSearchParams(window.location.search)}),[window.location]),m=Object(r.useCallback)((function(e){p.has("tab")&&p.delete("tab"),p.set("tab",e),window.history.replaceState(window.history.state,"","".concat(d,"?").concat(p.toString()))}),[]),h=Object(r.useState)(e),f=Object(a.a)(h,2),j=f[0],O=f[1],g=function(e){O(e),m(e)},_=Object(r.useCallback)((function(e){c.enabled&&c.isModified?s({type:"DISCARD_CHANGES_POPUP_SHOW",payload:{open:!0,title:n("settingsSaveChangesPopupSubject"),description:n("settingsSaveChangesPopupBody"),confirm:{label:n("settingsSaveChangesPopupCTA1"),onClick:function(){return s({type:"DISCARD_CHANGES_POPUP_HIDE"})}},cancel:{label:n("settingsSaveChangesPopupCTA2"),onClick:function(){s({type:"DISCARD_CHANGES_POPUP_HIDE"}),s({type:"EDIT_MODE_DISABLE"}),g(e)}}}}):g(e)}),[c]);return{active:j,setActive:_}}var m=n(2);function h(){var e=Object(i.c)(),t=Object(l.h)(),n=function(n,a){e({type:"ADD_NEW_PAGE_TITLE",payload:{path:"".concat(t.location.pathname),title:a}}),t.push(n)};return Object(m.a)(Object(m.a)({},t),{},{push:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n(e,t)}})}function f(){var e=Object(r.useState)({width:0,height:0}),t=Object(a.a)(e,2),n=t[0],i=t[1];return Object(r.useLayoutEffect)((function(){var e=function(){i({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}}),[]),n}},418:function(e,t,n){"use strict";n.d(t,"c",(function(){return R})),n.d(t,"b",(function(){return x})),n.d(t,"a",(function(){return E})),n.d(t,"d",(function(){return y}));var a=n(2),r=n(5),i=n(779),o=n(346),s=Object(r.b)("ASSOCIATION_MARINAS"),c=s.request,l=s.success,d=s.failure,u=s.set,b=Object(r.b)("MARINA"),p=b.request,m=b.success,h=b.failure,f=Object(r.b)("EDIT_MARINA_PERMISSIONS"),j=f.request,O=f.success,g=f.failure,_=f.set,v=function(e){throw e&&Promise.resolve(e),{error_type:"MARINA_NOT_FOUND"}},x=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:T,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case c.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case l.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,association_list:t.payload});case d.type:return{isLoading:!1,association_list:[]};case p.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case m.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,marina:t.payload});case h.type:return{isLoading:!1,marina:!1,error:t.payload};case j.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case O.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1});case g.type:return{isLoading:!1,error:t.payload};default:return e}}},427:function(e,t,n){"use strict";n.d(t,"a",(function(){return R}));var a=n(1),r=n(61),i=n(15),o=n(913),s=n(0),c=Object(i.a)((function(e){return{wrapper:{display:"flex",width:"calc(100% - 60px)",margin:"21px 0 24px 20px",position:"relative",justifyContent:"flex-start",alignItems:"center"},line:{position:"absolute",background:e.palette.orange,height:1,width:"100%"},text:{position:"absolute",minWidth:90,background:e.palette.white,color:e.palette.white,fontSize:e.utils.pxToRem(12),borderRadius:50},textWrapper:{width:"100%",height:"100%",borderRadius:50,padding:"3px 15px 3px 7px",background:e.palette.orange}}}))((function(e){var t=e.classes,n=e.counter,a=Object(o.a)().t;return Object(s.jsxs)("div",{className:t.wrapper,children:[Object(s.jsx)("span",{className:t.line}),Object(s.jsx)("span",{className:t.text,children:Object(s.jsx)("span",{className:t.textWrapper,children:n?"".concat(n," ").concat(a(n>1?"messages_newMessages":"messages_newMessage")):null})})]})})),l=n(8),d=n.n(l),u=n(23),b=Object(i.a)((function(e){return{wrapper:{display:"flex",width:"100%",justifyContent:"center",alignItems:"center",marginTop:17,color:"#888888"},line:{background:"#EAEAEA",height:1,width:45},text:{margin:"0 7px 0 7px",textTransform:"capitalize"}}}))((function(e){var t=e.classes,n=e.date,a=Object(o.a)().t,r=d()(n),i=n&&r._isValid?"".concat(r._locale._weekdays[r.day()],", ").concat(r.format("DD MMMM"),", ").concat(r.format("YYYY")):null,c=Object(u.f)(d()(),r,"days",!0),l=c?c?Object(u.g)(r):null:a("today"),b=!c||c<2?l:i;return Object(s.jsxs)("div",{className:t.wrapper,children:[Object(s.jsx)("span",{className:t.line}),Object(s.jsx)("span",{className:t.text,children:b||""}),Object(s.jsx)("span",{className:t.line})]})})),p=n(4),m=n(81),h=n(299),f=Object(i.a)((function(e){return{wrapper:{display:"flex"},img:{display:"block",width:40,height:40,color:"#ffffff",borderRadius:"50%",textAlign:"center",margin:"0 9px 0 20px",cursor:"default"},imgOwnMessage:{background:"#1f253e"},imgIncoming:{background:"rgb(245, 130, 31)"},noImg:{lineHeight:"40px"},message:{position:"relative",borderRadius:4,padding:"10px 23px 25px 19px",margin:"3px 0 0 15px",maxWidth:420},ownMessage:{border:"1px solid #C0E5FF",background:"#C0E5FF"},incoming:{border:"1px solid #e3e6ee",background:e.palette.white},arrow:{display:"block",position:"absolute",transform:"rotate(45deg)",width:10,height:10,left:-6},ownArrow:{background:"#C0E5FF",borderLeft:"1px solid #C0E5FF",borderBottom:"1px solid #C0E5FF"},incomingArrow:{background:"#fff",borderLeft:"1px solid #e3e6ee",borderBottom:"1px solid #e3e6ee"},downloadLink:{fontSize:"12px",color:"blue",cursor:"pointer"},messageTime:{position:"absolute",right:8,bottom:3,fontSize:"12px"}}}))((function(e){var t=e.classes,n=e.source,a=e.sender,r=e.text,i=e.user,c=e.singedBy,l=e.boater,u=e.attachment,b=e.created_at,f=Object(o.a)().t,j=function(){var e="";return"MARINA"!==n?l?"".concat(l.first_name?l.first_name:""," ").concat(l.last_name?l.last_name:""):"N/A":(c&&i&&i.marina&&(e="".concat(i.marina.name,": ").concat(c.first_name?c.first_name:""," ").concat(c.last_name?c.last_name:"")),e)},O=function(){var e="";return"MARINA"!==n?a&&a.first_name&&a.last_name?"".concat(a.first_name.charAt(0)).concat(a.last_name.charAt(0)):"N/A":(c?e="".concat(c.first_name?c.first_name.split(" ")[0].charAt(0):"").concat(c.last_name?c.last_name.split(" ")[0].charAt(0):""):i&&i.marina&&i.marina.name&&(e="".concat(i.marina.name.split(" ")[0].charAt(0)).concat(i.marina.name.split(" ")[1]?i.marina.name.split(" ")[1].charAt(0):"").concat(i.marina.name.split(" ")[2]?i.marina.name.split(" ")[2].charAt(0):"")),e)};return Object(s.jsxs)("div",{className:t.wrapper,children:[Object(s.jsx)(m.a,{placement:"bottom-end",title:j(),children:Object(s.jsx)("span",{className:"MARINA"===n?Object(p.a)(t.img,t.imgOwnMessage):Object(p.a)(t.img,t.imgIncoming),children:!a.img&&Object(s.jsx)("span",{className:t.noImg,children:O()})})}),Object(s.jsxs)("span",{className:"MARINA"===n?Object(p.a)(t.message,t.ownMessage):Object(p.a)(t.message,t.incoming),children:[Object(s.jsx)("span",{className:"MARINA"===n?Object(p.a)(t.arrow,t.ownArrow):Object(p.a)(t.arrow,t.incomingArrow)}),r.trim().split("\n").map((function(e){return Object(s.jsxs)(s.Fragment,{children:[e,Object(s.jsx)("br",{})]})})),u&&Object(s.jsxs)("span",{className:t.downloadLink,onClick:function(){return e=u.id,t=u.name,void(e&&Object(h.b)(e,t));var e,t},children:[" ",f("download")," "]}),Object(s.jsx)("span",{className:t.messageTime,children:d()(b).format("HH:mm")})]})]})})),j=n(226),O=Object(i.a)((function(e){return{wrapper:{display:"flex",alignItems:"center",marginLeft:40},icon:{fontSize:e.utils.pxToRem(14),color:e.palette.primary.main},message:{padding:"9px 23px 15px 11px",margin:"3px 0 0 0px",maxWidth:420,fontWeight:700},messageTime:{padding:"9px 23px 15px 11px",margin:"3px 0 0 0px",fontSize:"12px"}}}))((function(e){var t,n,a=e.classes,r=e.boater,i=e.text,c=e.data,l=Object(o.a)().t,b=r.first_name?"".concat(r.first_name," ").concat(r.last_name):"".concat(r.email),p=r.first_name?"".concat(r.first_name," ").concat(r.last_name):l("THE_GUEST_BOATER"),m={INITIATED:l("reservation_newReservationRequest",{name:b}),CANCELED_BY_MARINA:l("reservation_cancelByMarina"),EXPIRED_NO_MARINA_RESPONSE:l("reservation_cancelByMarina"),EXPIRED_NO_BOATER_RESPONSE:l("reservation_cancelByBoater",{name:p}),CANCELED_BY_BOATER:l("reservation_cancelByBoater",{name:p}),UPDATED_BY_MARINA:l("reservation_reservationWasUpdatedByMarina"),UPDATED_BY_BOATER:l("reservation_reservationWasUpdatedByBoater",{name:"".concat(r.first_name," ").concat(r.last_name)}),APPROVED:l("reservation_reservationWasApproved"),PAYED:l("reservation_reservationWasPayed"),MARINA_DECLINED:l("reservation_reservationWasDeclinedByMarina"),BOATER_ACCEPTED:l("reservation_reservationWasAcceptedByBoater",{name:"".concat(r.first_name," ").concat(r.last_name)}),BOATER_DECLINED:l("reservation_reservationWasDeclinedByBoater",{name:"".concat(r.first_name," ").concat(r.last_name)}),ON_HOLD:l("reservation_reservationIsOnHold"),BOATER_ADDED_DOCUMENTS:l("reservation_boaterAddedDocuments",{name:"".concat(r.first_name," ").concat(r.last_name)}),INSTANT_BOOK:l("reservation_reservationWasApproved"),BOATER_ACCEPTED_SUGGESTED_DATES:l("reservation_boaterAcceptedSuggestedDates",{name:"".concat(r.first_name," ").concat(r.last_name),dates:(null===c||void 0===c?void 0:c.suggested_dates)&&(null===c||void 0===c?void 0:c.suggested_dates.length)>0?Object(u.c)(d()(null===c||void 0===c||null===(t=c.suggested_dates[0])||void 0===t?void 0:t.start_date),d()(null===c||void 0===c||null===(n=c.suggested_dates[0])||void 0===n?void 0:n.end_date)):"n/a"}),MARINA_ADDED_DATES:l("reservation_marinaAddedDates",c&&c.suggested_dates&&c.suggested_dates.length>0?{dates:Object(u.c)(d()(c.suggested_dates[0].start_date),d()(c.suggested_dates[0].end_date))}:{dates:"n/a"})};return Object(s.jsxs)("div",{className:a.wrapper,children:[Object(s.jsx)(j.a,{className:a.icon}),Object(s.jsx)("span",{className:a.message,children:m[i]}),Object(s.jsx)("span",{className:a.messageTime,children:d()(c.created_at).format("HH:mm")})]})})),g=function(e){var t=e.data,n=e.boater,a=e.user;return t?t.isService?Object(s.jsx)(O,{sender:t.sender,text:t.text,type:t.status_code,boater:n,data:t}):Object(s.jsx)(f,{source:t.sender,sender:t.boater,text:t.text,user:a,created_at:t.created_at,attachment:t.attachment,singedBy:t&&t.signed_by_user,boater:n}):null},_=n(6),v=n(1633),x=n(22),E=n(55),y=Object(i.a)((function(e){return{wrapper:{display:"flex",justifyContent:"space-between",alignItems:"center",position:"absolute",bottom:0,left:0,padding:23,width:"calc(100% - 46px)",borderTop:"solid 1px #e3e6ee",backgroundColor:e.palette.white},label:{color:"#545556",marginRight:9},input:{width:"calc(100% - 165px)"},sendButton:{width:110,padding:"4px 0 4px 0",marginLeft:20,textTransform:"none",borderRadius:50,fontWeight:700,boxShadow:"0 3px 10px 0 rgba(0, 0, 0, 0.06), 0 2px 2px 0 rgba(0, 0, 0, 0.08)",border:"solid 1px #e3e6ee"},sendButtonLite:{marginLeft:20}}}))((function(e){var t=e.classes,n=e.handleCreateMessage,r=e.readAllMessages,i=e.message,c=e.handleChange,l=e.isMarinaLiteVersion,d=e.customLabel,u=Object(a.useState)(""),b=Object(_.a)(u,2),p=b[0],m=b[1];Object(a.useEffect)((function(){i&&Object(x.a)((function(){m(i)}))}),[]);var h=Object(o.a)().t;return Object(s.jsxs)("form",{className:t.wrapper,children:[Object(s.jsx)("span",{className:t.label,children:d||h("reservation_messageToCustomer")}),Object(s.jsx)(v.a,{className:t.input,margin:"none",multiline:!0,rowsMax:4,value:p,onChange:function(e){c(e),m(e.target.value)},autoFocus:!0,InputProps:{style:{padding:"10px 10px 10px 10px",background:"#EFF2F8"}}}),Object(s.jsx)(E.a,{additionalStyling:l?t.sendButtonLite:t.sendButton,type:"secondary",variant:"contained",onClick:function(){Object(x.a)((function(){r()})).then((function(){n(i),c(null,!0),m("")}))},disabled:!i,isMarinaLiteVersion:l,children:h("send")})]})})),T=n(51),R=Object(i.a)((function(e){return{wrapper:{display:"flex",flexDirection:"column",position:"relative",height:"100%"},cont:{overflow:"hidden",position:"absolute",width:"100%",maxHeight:"calc(100% - 95px)"},messageRow:{display:"flex",paddingRight:25,margin:"5px 0 5px 0"},spacer:{height:15},emptyMessage:{display:"flex",justifyContent:"center",color:"#1A1A1B",padding:5,borderRadius:30,background:"rgba(126, 126, 126, 0.05)",margin:20}}}))((function(e){var t=e.classes,n=e.data,i=e.unreadCounter,l=e.handleCreateMessage,d=e.handleReadMessages,p=e.boater,m=e.user,h=e.message,f=e.handleChange,j=e.customLabel,O=Object(o.a)().t,_=function(){if(n.unread&&n.unread.length){var e=n.unread.filter((function(e){return!e.isService})),t=n.read.length&&n.read.filter((function(e){return!e.unread}))[0],a=n.unread.map((function(e){return e.id}));e&&e.length?d(a):t&&d([t])}};Object(a.useEffect)((function(){var e=document.getElementById("scrollContainer"),t=document.getElementById("content").offsetHeight,n=new r.a(e);return e.scrollTop=t,function(){n&&n.destroy(),n=null,_()}}),[n.read.length,n.unread.length]);var v=function(e){return e.map((function(n,a){return Object(s.jsxs)("div",{children:[0===a||Object(u.f)(n.created_at,e[a-1].created_at,"days",!0)>1?Object(s.jsx)(b,{date:n.created_at}):null,Object(s.jsx)("div",{className:t.messageRow,children:Object(s.jsx)(g,{data:n,boater:p,user:m})})]},n.id)}))},x=n.read&&n.unread&&!n.read.length&&!n.unread.length;return Object(s.jsxs)("div",{className:t.wrapper,children:[Object(s.jsx)("div",{className:t.cont,id:"scrollContainer",children:Object(s.jsxs)("div",{id:"content",children:[x?Object(s.jsx)("div",{className:t.emptyMessage,children:O("messages_newChatEmptyState")}):null,n.read&&n.read.length?v(n.read):null,n.unread&&n.unread.length?Object(s.jsxs)(s.Fragment,{children:[Object(s.jsx)(c,{counter:i}),v(n.unread)]}):null,Object(s.jsx)("div",{className:t.spacer})]})}),Object(s.jsx)(y,{readAllMessages:_,handleCreateMessage:l,message:h,handleChange:f,isMarinaLiteVersion:Object(T.d)({entity:m.marina}),customLabel:j})]})}))},428:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(2),r=n(29),i=(n(1),n(913)),o=n(15),s=n(1720),c=n(1759),l=n(0),d=["classes"],u=Object(o.a)((function(e){return{root:{width:34,height:21,padding:0,margin:e.spacing(1)},switchBase:{padding:1,"&$checked":{transform:"translateX(13px)",color:e.palette.common.white,"& + $track":{backgroundColor:"#255EDD",opacity:1,border:"none"}},"&$focusVisible $thumb":{color:"#255EDD",border:"6px solid #fff"}},thumb:{width:19,height:19},track:{borderRadius:13,backgroundColor:"#bfbfbf",opacity:1,transition:e.transitions.create(["background-color","border"])},checked:{},focusVisible:{}}}))((function(e){e.classes;var t=Object(r.a)(e,d),n=Object(i.a)().t;return Object(l.jsx)(s.a,{control:Object(l.jsx)(c.a,Object(a.a)({color:"primary"},t)),label:t.label&&Object(l.jsx)("span",{style:{color:"#545556"},children:n(t.label)}),labelPlacement:"end"})}))},456:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var a=n(2),r=n(8),i=n.n(r),o=function(e,t){var n,a=function(e){var t=e.getFullYear(),n=e.getMonth(),a=e.getDate();return new Date(t+1,n,a)},r={started:"-",ends:"-",daysLeft:"-",redeemNightsLeft:5},o=e.filter((function(e){return e.marina?e.marina.id===t.marina.id:e.marina_id===t.marina.id})).sort((function(e,t){return i()(e.startDate,"DD/MM/YYYY").diff(i()(t.startDate,"DD/MM/YYYY"))}));if(o.length)for(var s=new Date(e[0].startDate),c=a(new Date(e[0].startDate)),l=5,d=0;d0&&void 0!==arguments[0]?arguments[0]:O,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case p.type:return Object(r.a)(Object(r.a)({},e),{},{isLoading:!0});case m.type:var n=t.payload,i=n.cookie_policy,o=n.privacy_policy,s=n.terms_of_service,c=n.terms_of_service_marinas,l=n.countries,d=n.amenities,b=n.associations,f=n.marinasCountries,j=Object(a.a)(n,u),g={cookie_policy:i,privacy_policy:o,terms_of_service:s,terms_of_service_marinas:c,countries:l,amenities:d,associations:b,marinasCountries:f,marinas:Object(r.a)({},j)};return Object(r.a)(Object(r.a)({},e),{},{isLoading:!1,data:g,error:null});case h.type:return{isLoading:!1,error:t.payload,data:{}};default:return e}}},483:function(e,t,n){"use strict";n.d(t,"b",(function(){return T})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return E})),n.d(t,"d",(function(){return x}));var a=n(2),r=n(5),i=n(13),o="/admin/dashboard/activity",s="/admin/dashboard/traffic/update",c=function(){return Object(i.b)(o,{}).then((function(e){return e.json()}))},l=function(e,t){return Object(i.b)(s,{traffic_event_id:e,action:t}).then((function(e){return e.json()}))},d=Object(r.b)("DASHBOARD_ACTIVITY"),u=d.request,b=d.success,p=d.failure,m=d.reset,h=d.set,f=Object(r.b)("UPDATE_TRAFFIC_EVENT"),j=f.request,O=f.success,g=f.failure,_=f.set,v=function(){return Object(r.f)({request:c,actionSet:h})},x=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0,error:null});case b.type:return Object(a.a)(Object(a.a)({},e),{},{data:t.payload,error:null,isLoading:!1});case p.type:return Object(a.a)(Object(a.a)({},e),{},{data:y.data,isLoading:!1,error:t.payload});case m.type:return Object(a.a)({},y);case j.type:return Object(a.a)(Object(a.a)({},e),{},{updParams:Object(a.a)(Object(a.a)({},e.updParams),{},{isLoading:!0})});case O.type:return Object(a.a)(Object(a.a)({},e),{},{updParams:Object(a.a)(Object(a.a)({},e.updParams),{},{isLoading:!1,error:null,success:t.payload})});case g.type:return Object(a.a)(Object(a.a)({},e),{},{updParams:Object(a.a)(Object(a.a)({},e.updParams),{},{isLoading:!1,error:t.payload,success:null})});default:return e}}},484:function(e,t,n){"use strict";n.d(t,"e",(function(){return X})),n.d(t,"a",(function(){return W})),n.d(t,"c",(function(){return U})),n.d(t,"g",(function(){return G})),n.d(t,"b",(function(){return z})),n.d(t,"f",(function(){return q})),n.d(t,"d",(function(){return Y}));var a=n(2),r=n(5),i=n(13),o="/admin/settings/pricing_plan/get",s="/admin/settings/pricing_plan/create",c="/admin/settings/pricing_plan/update",l="/admin/settings/pricing_plan/delete",d="/admin/settings/pricing_plan/calculatePricingPlanForVessel",u=function(){return Object(i.b)(o,{}).then((function(e){return e.json()}))},b=function(e){return Object(i.b)(c,{season_pricing_plan:e}).then((function(e){return e.json()}))},p=function(e){return Object(i.b)(s,{season_pricing_plan:e}).then((function(e){return e.json()}))},m=function(e){return Object(i.b)(l,{season_pricing_plan_id:e}).then((function(e){return e.json()}))},h=function(e,t,n,a,r,o){return Object(i.b)(d,{vessel:e,start_date:t,end_date:n,contract_id:a,isCommercial:r,liveaboard:o}).then((function(e){return e.json()}))},f=Object(r.b)("SEASON_PRICING_PLAN_CREATE"),j=f.request,O=f.success,g=f.failure,_=f.set,v=Object(r.b)("PRICING_PLAN"),x=v.request,E=v.success,y=v.failure,T=v.reset,R=v.set,A=Object(r.b)("SEASON_PRICING_PLAN_UPDATE"),S=A.request,N=A.success,I=A.failure,C=A.set,w=Object(r.b)("SEASON_PRICING_PLAN_DELETE"),D=w.request,P=w.success,M=w.failure,L=w.set,B=Object(r.b)("GET_PRICING_PLAN_CALCULATION"),k=B.request,H=B.success,V=B.failure,F=(B.reset,B.set),W=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:K,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case j.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case O.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1});case g.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case x.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case E.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,pricingPlan:t.payload,error:null});case y.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case T.type:return Object(a.a)(Object(a.a)({},e),{},{pricingPlan:{}});case S.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case N.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case I.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case D.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case P.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case M.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case k.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case H.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case V.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});default:return e}}},485:function(e,t,n){"use strict";var a=n(2),r=n(29),i=n(43),o=n(44),s=n(58),c=n(59),l=n(1),d=n.n(l),u=n(1633),b=n(25),p=n(0),m=["name","label","value","disabled","variant","margin","double","customStyles","helperCustomStyles","placeholder"],h=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"render",value:function(){var e=this.props,t=e.name,n=e.label,i=e.value,o=void 0===i?"":i,s=e.disabled,c=void 0!==s&&s,l=e.variant,d=void 0===l?"filled":l,h=e.margin,f=void 0===h?"normal":h,j=e.double,O=void 0!==j&&j,g=e.customStyles,_=void 0===g?{}:g,v=e.helperCustomStyles,x=void 0===v?{}:v,E=e.placeholder,y=void 0===E?"":E,T=Object(r.a)(e,m),R=function(e){var t;t=e.charCode,(O?(t<48||t>57)&&46!==t:t<48||t>57)&&e.preventDefault()};return Object(p.jsx)(u.a,Object(a.a)({id:t,name:t,label:n,value:o||"",variant:d,margin:f,onKeyPress:function(e){return R(e)},disabled:c,placeholder:y,FormHelperTextProps:{style:Object(a.a)({position:"absolute",top:37,left:-13,width:b.isMobile?"70%":430},x)},inputProps:{style:Object(a.a)({},_)}},T))}}]),n}(d.a.PureComponent);t.a=h},486:function(e,t,n){"use strict";var a=n(2),r=n(29),i=(n(1),n(8)),o=n.n(i),s=n(654),c=n(125),l=n(1641),d=n(0),u=["disableFuture","disabled","disablePast","variant","inputVariant","value","mask","format","maxDate","minDate","name","label","withoutLabel","onChange","error","helperText","disabledDates","readOnlyInput"];t.a=function(e){var t=e.disableFuture,n=void 0!==t&&t,i=e.disabled,b=void 0!==i&&i,p=e.disablePast,m=void 0!==p&&p,h=e.variant,f=void 0===h?"inline":h,j=e.inputVariant,O=void 0===j?"standard":j,g=e.value,_=void 0===g?"":g,v=e.mask,x=void 0===v?"__/__/____":v,E=e.format,y=void 0===E?"DD/MM/YYYY":E,T=e.maxDate,R=e.minDate,A=e.name,S=e.label,N=e.withoutLabel,I=void 0!==N&&N,C=e.onChange,w=e.error,D=e.helperText,P=e.disabledDates,M=e.readOnlyInput,L=void 0!==M&&M,B=Object(r.a)(e,u);return Object(d.jsx)(c.a,{utils:s.a,children:Object(d.jsx)(l.b,Object(a.a)(Object(a.a)(Object(a.a)({autoOk:!0,disableToolbar:!0,disabled:b,variant:f,disableFuture:n,disablePast:m},function(){var e={};return T&&(e=Object(a.a)(Object(a.a)({},e),{},{maxDate:new Date(T)})),R&&(e=Object(a.a)(Object(a.a)({},e),{},{minDate:new Date(R)})),e}()),{},{id:A,name:A,mask:x,label:I?null:S?"".concat(S," (dd/mm/yyyy)"):"(dd/mm/yyyy)",format:y,helperText:D,value:o()(_)._isValid?new Date(_):null,inputValue:_?"":x,onChange:function(e){return C(A,e)},inputVariant:O,error:!!w||!!D},B),{},{inputProps:{id:"fieldDatePicker-".concat(A),testID:"fieldDatePicker",readOnly:L},InputLabelProps:{testID:"datePickerLabel"},KeyboardButtonProps:{id:"buttonDatePicker-".concat(A),testID:"buttonDatePicker"},rightArrowButtonProps:{testID:"nextDatePicker"},leftArrowButtonProps:{testID:"prevDatePicker"},shouldDisableDate:function(e){return P&&-1!==P.indexOf(o()(e).format("DD/MM/YYYY"))}}))})}},491:function(e,t,n){"use strict";n.d(t,"c",(function(){return C})),n.d(t,"b",(function(){return S})),n.d(t,"a",(function(){return N}));var a=n(2),r=n(5),i=n(13),o="/admin/popeye/invite",s="/admin/loyalty/gift_points",c=function(e){return Object(i.b)(o,{emails:e}).then((function(e){return e.json()}))},l=function(e){return Object(i.b)(s,e).then((function(e){return e.json()}))},d=Object(r.b)("GET_POPEYE_LAST_GENERATED_CODE"),u=d.request,b=d.success,p=d.failure,m=(d.set,Object(r.b)("GENERATE_POPEYE_CODE")),h=m.request,f=m.success,j=m.failure,O=(m.set,Object(r.b)("POPEYE_INVITE_BATCH_EMAILS")),g=O.request,_=O.success,v=O.failure,x=O.set,E=Object(r.b)("GIFT_POINTS_TO_MEMBERS"),y=E.request,T=E.success,R=E.failure,A=E.set,S=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:I,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case b.type:return Object(a.a)(Object(a.a)({},e),{},{generatedCode:t.payload,error:null,isLoading:!1});case p.type:return Object(a.a)(Object(a.a)({},e),{},{generatedCode:I.generatedCode,isLoading:!1,error:t.payload});case h.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case f.type:return Object(a.a)(Object(a.a)({},e),{},{generatedCode:t.payload,error:null,isLoading:!1});case j.type:return Object(a.a)(Object(a.a)({},e),{},{generatedCode:I.generatedCode,isLoading:!1,error:t.payload});case g.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case _.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,invitedEmails:t.payload});case v.type:return Object(a.a)(Object(a.a)({},e),{},{invitedEmails:I.invitedEmails,isLoading:!1,error:t.payload});case y.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case T.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,giftPoints:Object(a.a)(Object(a.a)({},e.giftPoints),{},{errors:t.payload.errors})});case R.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});default:return e}}},5:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return u}));var a=n(26),r=n(337),i=n.n(r),o=function(e){var t=function(t){return{type:e,payload:t}};return t.type=e,t},s=function(e){return function(e,t,n,a){var r=o(e),i=o(t),s=o(n),c=o(a);return{request:r,success:i,failure:s,reset:c,set:{request:r,success:i,failure:s,reset:c}}}("".concat(e,"_REQUEST"),"".concat(e,"_SUCCESS"),"".concat(e,"_FAILURE"),"".concat(e,"_RESET"))},c=function(e){return t="".concat(e,"_SHOW"),n="".concat(e,"_HIDE"),{show:o(t),hide:o(n)};var t,n},l=function(e){return t="".concat(e,"_SHOW"),n="".concat(e,"_HIDE"),a="".concat(e,"_MODIFY"),{show:o(t),hide:o(n),modify:o(a)};var t,n,a},d=function(e){return t="".concat(e,"_ENABLE"),n="".concat(e,"_MODIFY"),a="".concat(e,"_DISABLE"),{enable:o(t),modify:o(n),disable:o(a)};var t,n,a},u=function(e){var t=e.request,n=e.actionSet,r=e.args,o=e.reset,s=e.success;if(o)return b({actionSet:n});if(s)return p({actionSet:n,request:t});var c=i()(r)?function(){return t()}:function(){return t.apply(void 0,Object(a.a)(r))};return function(e){return e(n.request()),c().then((function(t){return t&&t.error_type?e(n.failure(t)):e(n.success(t))})).catch((function(t){return e(n.failure(t))}))}},b=function(e){var t=e.actionSet;return function(e){e(t.reset())}},p=function(e){var t=e.actionSet,n=e.request;return function(e){return n().then((function(){return e(t.success())}))}}},51:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return c}));var a=["resident","marina_setting"],r=["reservation","resident"],i=function(e){var t=e.permission,n=e.entity;switch(e.entityType){case"marina":return a.includes(t)||n.marina_settings.permissions[t];case"user":return n.permissions[t];default:return!1}},o=function(e){return!r.includes(e)},s=function(e){return"lite"===e.entity.marina_settings.permissions.view_mode},c=function(e){var t;return null===e||void 0===e||null===(t=e.marina_settings)||void 0===t?void 0:t.permissions.view_mode}},512:function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return u}));var a=n(2),r=n(5),i=function(e){return fetch(e.ocr_url).then((function(e){return e.json()}))},o=Object(r.b)("OCR"),s=o.request,c=o.success,l=o.failure,d=o.set,u=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case c.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,ocr:t.payload,error:null});case l.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});default:return Object(a.a)({},e)}}},522:function(e,t){e.exports={translation:{MEMBERSHIP_DASHBAORD_GAUGE_LOW:"Low",MEMBERSHIP_DASHBAORD_GAUGE_MEDIUM:"Medium",MEMBERSHIP_DASHBAORD_GAUGE_HIGH:"High",MEMBERSHIP_DASHBAORD_GAUGE_DESCRIPTION:"Resident listed",MEMBERSHIP_DASHBAORD_MARKETING_SECTION1_TITLE:"DIGITISE BOATER COMMUNICATION",MEMBERSHIP_DASHBAORD_MARKETING_SECTION1_DESCRIPTION:"registered boaters",MEMBERSHIP_DASHBAORD_MARKETING_SECTION1_CTA:"Learn How to Do It",MEMBERSHIP_DASHBAORD_MARKETING_SECTION2_TITLE:"IMPROVE REVENUE PLANNING",MEMBERSHIP_DASHBAORD_MARKETING_SECTION2_DESCRIPTION:"Planned Vacancies",MEMBERSHIP_DASHBAORD_MARKETING_SECTION2_CTA:"Learn How to Do It",MEMBERSHIP_DASHBAORD_MARKETING_SECTION3_TITLE:"IMPROVE RESIDENT RELATIONS",MEMBERSHIP_DASHBAORD_MARKETING_SECTION3_DESCRIPTION:"redeemed a night",MEMBERSHIP_DASHBAORD_MARKETING_SECTION3_CTA:"Learn How to Do It",MEMBERSHIP_DASHBAORD_PREVIOUSLY_SENT:"Previously sent",MEMBERSHIP_MARKETING_SECTION1_TITLE:"Digitise Boater Communication",MEMBERSHIP_MARKETING_SECTION1_DESCRIPTION:"We recommend sending a reminder to any residents who haven\u2019t yet created their Pick a Pier account that they should do so to enjoy the benefits of our platform. On the right, you can find a suggested email detailing the value of having a Pick a Pier account and encouraging boaters to connect their TransEurope Marinas membership to their account.",MEMBERSHIP_MARKETING_SECTION2_TITLE:"Improve Revenue Planning",MEMBERSHIP_MARKETING_SECTION2_DESCRIPTION:"Know when your residents set sail in advance and increase your available berths. If a boater did not report any planned vacancies in a season or redeemed a night at a different marina without reporting an their berth as vacant, we recommend giving them a little nudge via email to let them know they can and should use Pick a Pier to do so. You can use the email on the right to inform them.",MEMBERSHIP_MARKETING_SECTION3_TITLE:"Improve Resident Relations",MEMBERSHIP_MARKETING_SECTION3_DESCRIPTION:"Your residents can enjoy 50% off the cost of 5 nights a year in any other TransEurope Marina. Letting your residents know about this benefit will drive customer appreciation and encourage them to set sail more often, creating more vacancies for you. On the right, you can find a pre-written email that you can use for this purpose.",MEMBERSHIP_MARKETING_PREVIEW:"Click to preview",MEMBERSHIP_MARKETING_CONTACTS_FOUND:"contacts found",MEMBERSHIP_MARKETING_CONTACTS_SECTION1:"Residents in your Marina who are not yet Pick a Pier members",MEMBERSHIP_MARKETING_CONTACTS_SECTION2:"Residents who failed to report a planned vacancy this season",MEMBERSHIP_MARKETING_CONTACTS_SECTION3:"Residents who did not redeem a single discounted night last season",MEMBERSHIP_MARKETING_FROM:"From",MEMBERSHIP_MARKETING_SUBJECT_LINE:"Subject line",MEMBERSHIP_MARKETING_CTA:"Send email",MEMBERSHIP_MARKETING_HAVE_YOUR_OWN:"Have your own marketing tool?",MEMBERSHIP_MARKETING_HAVE_YOUR_OWN_CTA:"Download text",MEMBERSHIP_MARKETING_SEND_SUCCESS_POPUP_TITLE:"Email Sent!",MEMBERSHIP_MARKETING_SEND_SUCCESS_POPUP_BODY:"You've successfully sent an email reminder to the residents on the list. We recommend returning to do again before each season.",MEMBERSHIP_MARKETING_SEND_SUCCESS_POPUP_CTA:"Got it",create_new_contact:"Create new contact",create_new_contact_title:"New contact",create_new_contact_description:"Enter the contact's email address and we'll send them a notification",CUSTOMER_ACTIVITIES_VISITOR_CONTACT_RESERVATION:"New reservation request for {{vessel_name}}, {{dates}} - {{translated_status}}",CUSTOMER_ACTIVITIES_RESIDENT_CONTACT_INFO_UPDATE:"{{boater_full_name}} updated contact info",CUSTOMER_ACTIVITIES_RESIDENT_VESSEL_HMV_CANCELLED:"Residency request cancelled",CUSTOMER_ACTIVITIES_RESIDENT_VESSEL_MEMBERSHIP_CANCELLED:"Membership request cancelled",CUSTOMER_ACTIVITIES_VISITOR_VESSEL_NIGHTS_REDEEMED:"{{visit_dates}}, {{number_redeemed_nights}} nights redeemed ({{remainder}} nights remain)",CUSTOMER_ACTIVITIES_VISITOR_VESSEL_RESERVATION:"{{boater_full_name}} sent a reservation request, {{dates}} - {{translated_status}}",CUSTOMER_ACTIVITIES_RESIDENT_VESSEL_INFO_UPDATE:"{{marina_user_name}} updated boat info",CUSTOMER_ACTIVITIES_RESIDENT_VESSEL_MEMBERSHIP_DECLINED:"Membership request declined by {{marina_user_name}}",CUSTOMER_ACTIVITIES_RESIDENT_VESSEL_MEMBERSHIP_APPROVED:"Membership request approved by {{marina_user_name}}",CUSTOMER_ACTIVITIES_RESIDENT_VESSEL_MEMBERSHIP_REQUESTED:"Membership request by {{boater_full_name}}",CUSTOMER_ACTIVITIES_RESIDENT_VESSEL_HMV_DECLINED:"Residency request declined by {{marina_user_name}}",CUSTOMER_ACTIVITIES_RESIDENT_VESSEL_HMV_APPROVED:"Residency request approved by {{marina_user_name}}",CUSTOMER_ACTIVITIES_RESIDENT_VESSEL_HMV_REQUESTED:"Residency request by {{boater_full_name}}",CUSTOMER_ACTIVITIES_RESIDENT_VESSEL_NIGHTS_REDEEMED:"{{number_redeemed_nights}} nights redeemed at {{host_marina_name}}",PRICING_CURRENCY:"CURRENCY",PRICING_CURRENCY_SUBTEXT:"Choose the currency used in your marina",PRICING_CURRENCY_TYPE:"Default type",PRICING_CURRENCY_CHANGE:"To change your currency, please contact our support at marina-support@pickapier.com",COMPANY:"Company",INVIDUAL:"Invidual",FULL_NAME_MINIMUM:"Full name must include at least two letters",FULL_NAME_IS_REQUIRED:"Full name is required",FULL_NAME_IS_INVALID:"Full name shouldn't contain numbers or special symbols",ENTER_FULL_NAME:"Enter full name",ENTER_BANK_ACCOUNT_DETAILS:"Enter bank account details",ADD_BANK_ACCOUNT:"Add Bank Account",MARINA_SETTINGS_PAYMENT_TITLE:"Payments",MARINA_SETTINGS_PAYMENT_DISC:"Set your payment preferences to allow online payment",PAYMENT_SETTINGS_ONLINE_PAYMENTS_ENABLED:"Enabled",PAYMENT_SETTINGS_ONLINE_PAYMENTS_DISABLED:"Disabled",PAYMENT_SETTINGS_ONLINE_PAYMENTS_TITLE:"Online Payments",PAYMENT_SETTINGS_ONLINE_PAYMENTS_DISC:"When enabled, boaters will be able to pay in advance using Pick a Pier Payments (powered by Stripe).",PAYMENT_SETTINGS_ONLINE_PAYMENTS_TERMS_INFO:"For more info, please view our Terms of Use",TERMS_OF_USE:"Terms of Use",PAYMENT_SETTINGS_ONLINE_SETUP_STRIPE:"Setup your Stripe account",PAYMENT_SETTINGS_ONLINE_MANAGE_STRIPE:"Manage your Stripe account",RESERVATION_PAYMENT_VIA_PAP:"Pay via Pick a Pier",download:"download",eventHeaderDecreasedSupplyFlow:"Berth availability alert",eventBodyDecreasedSupplyFlow:"No room for reservation {{reservation_num}}",eventCtaDecreasedSupplyFlow:"View details",decreasedSupplyFlowBanner:"There's no longer an available berth for this reservation (due to recent changes in residents' planned vacancies or berth details).
We suggest notifying the visitor (by sending a message or cancelling the reservation), or manually allocating a vacant berth.",back:"Back",maxThousand:"Max 1000m",alreadyExist:"Already exist",address:"Address",address_line_two:"Address Line 2",update:"Update",imo:"IMO",mmsi:"MMSI",flag:"Flag",contacts:"Contacts",memberships:"Memberships",activity:"Activity",vessels:"Boats",backToCustomers:"Back to Customers",CATAMARAN:"Catamaran",MOTOR:"Motor",SAIL:"Sail",WIDEBEAM:"Widebeam",BARGE:"Barge",NARROWBOAT:"Narrowboat",RIB:"Rib",MULTIHULL:"Multihull",hullType:"Hull type",Types:"Types",live_aboard:"Liveaboard",newResidentFormVessel:"Boat",newResidentFormApplyMembership:"Apply",newResidentFormMembership:"Membership",newResidentFormPrimaryContact:"Primary contact",newResidentFormLess:"Less",newResidentFormMore:"More",newResidentFormVesselName:"Boat Name",newResidentFormType:"Type",newResidentFormSize:"Size (m)",newResidentFormFlag:"Flag",newResidentFormIMO:"IMO",newResidentFormMMSI:"MMSI",newResidentFormVesselLicence:"Boat Licence",newResidentFormVesselInsurance:"Boat Insurance",newResidentFormUpload:"upload",newResidentFormFirstName:"First Name",newResidentFormLastName:"Last Name",newResidentFormEmail:"Email",newResidentFormPhone:"Phone",newResidentFormLanguage:"Language",newResidentFormAddress:"Address",newResidentFormCountry:"Country",newResidentFormZipCode:"Zip Code",newResidentFormBirthday:"Birthday",newResidentFormLicence:"Licence",newResidentFormApply:"Apply",newResidentFormExpiration:"Expiration",newResidentFormAutorenew:"Auto renew",newResidentFormCreateCard:"Create Card",newResidentFormVesselSizeErrorAll:"All size fields are required",newResidentFormVesselSizeErrorAllCharacters:"None of the size fields can contain special characters",newResidentFormVesselSizeErrorLOAMax:"LOA Maximum size is {{max_loa}}",newResidentFormVesselSizeErrorBeamMax:"Beam Maximum size is {{max_beam}}",newResidentFormVesselSizeErrorDraftMax:"Draft Maximum size is {{max_draft}}",valueMoreThanThousand:"Value can't be more than 1000m",highlightsNoVesselName:"New visitor",language_is_required:"Language is required",vesselNameRequired:"Boat name is required",HullTypeRequired:"Hull type is required",vesselTypeRequired:"Boat type is required",yes:"Yes",no:"No",yearsAgo:"years ago",yearAgo:"year ago",monthsAgo:"months ago",monthAgo:"month ago",daysAgo:"days ago",dayAgo:"day ago",hoursAgo:"hours ago",hourAgo:"hour ago",minutesAgo:"minutes ago",minuteAgo:"minute ago",today:"today",yesterday:"yesterday",weekAgo:"week ago",twoWeeksAgo:"two weeks ago",recently:"recently",years:"years",year:"year",months:"months",month:"month",days:"days",day:"day",nights:"nights",night:"night",for:"for",edit:"Edit",cancel:"Cancel",send:"Send",TEMarinas:"TransEurope Marinas",TEMarinasMember:"TransEurope Marinas Member",BFGMember:"Blue Flag Member",IGYMember:"Island Global Yachting Member",skip:"Skip",seeAll:"See all",dontShowAgain:"Don't show this again",close:"Close",ok:"Ok",typeHere:"Type here",approve:"Approve",decline:"Decline",typeHereReason:"Type your reason here",goBack:"Go back",save:"Save",saved:"Saved",message:"Message",messages:"Messages",you:"you",provideReason:"Please provide a reason",system_wizard_header:"New features available",system_wizard_subHeader:"New features, more possibilities, better performance!",system_wizard_beta:"Beta",system_wizard_newBooking:"New booking
reservation module",system_wizard_realTime:"Real-time chat
with customers",system_wizard_newLook:"New look",system_wizard_boaterPlatform:"Boater mobile
platform",system_wizard_contact:"Sounds interesting? contact us to discover more",system_wizard_notNow:"Not now, thanks",system_wizard_wontToHEarMore:"I want to hear more",system_wizard_weWillContactYou:"Thanks! We will contact you soon",system_wizard_pickapierTeam:"Pick a Pier team",messages_newMessages:"new messages",messages_newMessage:"new message",messages_markAsRead:"Mark as read",messages_markAsUnread:"Mark as unread",messages_deleteMessage:"Delete message",messages_markAllAsRead:"Mark all as read",messages_noMessages:"there are no new messages",messages_messagesHeader:"Here you can communicate with the visitor directly. Just type your message below and click on Send",messages_sentANewMessage:"sent a new message",messages_newChatEmptyState:"Here you can communicate directly with the boater",messages_chatModulePopupHeader:"Chat with Your Customers",messages_chatModulePopupBody:"Start sending direct messages to your customers by enabling Chats",messages_chatModulePopupCTA:"Enable Chats",messages_recentChatsEmptyState:"There are no recent chats",messages_recentChatsHeader:"Recent chats",login_welcomeTo:"Welcome aboard to Pick a Pier\u2019s marina portal!",login_simpleSeamless:"Easy communication with residents & visitors",login_digitalCards:"Better visibility into occupancy and availability",login_resnvis:"Great decisions with customer analytics & insights",login_marinaLogin:"Marina Login",login_helloMarina:"Hello Marina!",login_email:"Email",login_trackReports:"Easy tracking & reports",login_password:"Password",login_login:"Login",login_termNCond:"By logging in, you agree to our Terms of Use & Privacy Policy.",login_temMarinas:"Growth, Innovation & Sustainability",login_eurExtensive:"in the Recreational Boating Industry",login_poweredBy:"Powered by",login_acceptTNC:"I accept the terms and conditions",login_acceptPP:"I accept the privacy policy",login_iAcceptThe:"I accept the",login_iAcceptThe2:"I accept the",login_TNC:"Cookie Policy",login_PP:"Privacy Policy",login_submit:"Submit",login_changePassword:"Change password",login_selectLanguage:"Select language",login_currentPassword:"Current password",login_newPassword:"New password",login_confirmNewPassword:"Confirm new password",login_wrongPassword:"Incorrect password",login_passwordChanged:"Your password has been changed",login_close:"close",login_allInOnePlace:"All in one place!",login_atLeast6:"Password must be at least 6 characters",login_mustCheck:"You must mark both checkboxes to continue",login_passwordsDontMatch:"Passwords do not match",login_welcome:"Welcome!",login_forgotPass:"Forgot password? Click on the Support button below to create a support request",login_marinaCode:"Marina code",login_help:"Help Center",login_goToHelpCenter:"Go to help center",login_passwordRequired:"Password is required",login_support:"Support",login_transEuropeLogo:"TransEurope marina logo",login_logout:"Logout",login_systemWalkThrough:"System walkthrough",login_termsOfService:"Terms of service",login_userManagement:"User management",login_reservationsSettings:"Reservations settings",login_reservationsRequirements:"Reservations requirements",login_reservationsDesc:"You can request/remove the following reservation requirements",first_login_welcomeTitle:"Welcome To TransEurope Marinas
New Membership System",first_login_welcomeTip:"Check out the system functions",first_login_activitiesTitle:"Gain insights based on customer activity",first_login_cardsTitle:"Create & manage membership cards easily",first_login_discountsTitle:"Track & manage visitor discounts",first_login_customersTitle:"Access all customer in one place",first_login_next:"next",first_login_finish:"GOT IT",first_login_back:"back",marinas_pageHeader:"Marinas List",marinas_tableHeader_name:"Marina name",marinas_tableHeader_country:"Country",marinas_tableHeader_email:"Email",marinas_tableHeader_phone:"Phone",marinas_tableHeader_active_cards:"Active cards",marinas_tableHeader_nights_redeemed:"Nights redeemed",customers_email:"Email",customers_addResident:"Add Resident",customers_residencyRequests:"Residency requests",customers_reservationCount:"Reservation count",customers_filter_status:"Status",customers_filter_countries:"Country",customers_pending:"Pending",customers_archived:"Archived",customers_temporary:"Temporary",customers_filter_customer:"Customers",customers_filter_all:"All",customers_filter_members:"Members",customers_filter_nonMembers:"Non members",customers_exportReport:"Export report",customers_exportTooltip:"Export customers list to csv",customers_exportTitle:"Export customers report",customers_exportMessage:"A report with all of your customers (residents and visitors) will be produced to CSV file",customers_downloadReport:"Download Report",customers_autorenew:"Auto Renew",customers_searchPlaceholder:"Enter card number, customer or boat name",customers_noResultsTitle:"No results found for {{card}}",customers_noResultsTitle2:"No results found",customers_noResultsLink:"all TransEurope Marinas cards",customers_noResultsQuestion:"If you are looking for a {{user}} card, try to search in",customers_noResultsTip:"Searching the entire system will work only when typing the exact card code",customers_searchFailTitle:"No results found in all cards",customers_searchFailTip:"Please make sure you typed correctly and try again",customers_card:"card",customers_boatName:"Boat name",customers_boatloa:"Boat L.O.A (m)",customers_fullName:"Full name",customers_firstName:"First name",customers_lastName:"Last name",customers_membershipCard:"Membership card",customers_expDate:"Exp. date",customers_cardNum:"Card number",customers_send:"Send",customers_sending:"Sending...",customers_emailSent:"Email sent",customers_emailSendError:"Error: Email not sent!",customers_noEmail:"No email",customers_residents:"Residents",customers_cancel:"Cancel",customers_phone:"Phone",customers_sendMail:"Send Mail",customers_confirmSendMail:"Send card email to this user?",customers_sendToResidentTitle:"Send card to resident?",customers_sendToResidentDesc:"An email will be sent to the resident with the card's full details.",customers_country:"Country",customers_homeMarina:"Home marina",customers_nightsLeft:"Nights left",customers_lastVisit:"Last visit",customers_nextVisit:"Next visit",customers_lastInteraction:"Last interaction",customers_allCountries:"All countries",marinas_allAssociations:"All associations",marinas_allVersions:"All versions",customers_visitors:"Visitors",customers_active:"active",customers_enterDetails:"Enter card num, customer or boat name",customers_add:"Add new",customers_add_membership:"+Add",customers_newCard:"New Card",customers_multipleCards:"Multiple Cards",customers_addNewCard:"Add New Card",customers_redeemNights:"Redeem Nights",customers_numberOfNightsLeft:"Number of night left",customers_nightsRedeemed:"Nights redeemed",customers_previousVisit:"previous visit?",customers_yes:"yes",customers_no:"no",customers_discountEligibility:"Discount Eligibility",customers_started:"Started:",customers_ends:"Ends:",customers_daysLeft:"Days left:",customers_daysLeftTooltip:'"Days left" represents the period of time remains to redeem the remaining nights. *End date is valid as long as the card is active.',customers_date:"Date",customers_numOfNights:"Number of nights",customers_noActivityYet:"No activity yet",customers_waitingForFirstVisit:"Waiting for first visit",customers_visitor:"visitor",customers_resident:"resident",customers_waiting:"waiting",customers_today:"Today",customers_duplicateEmail:"Email already in use",customers_duplicateEmail2:"Email address is already in use please enter another email",customers_unknownError:"Unknown error",customers_errorOccurred:"Sorry, an error has occurred",customers_emailPasswordDontMatch:"User email and password do not match",customers_activityDate:"Activity Date",customers_type:"Type",customers_typeVisit:"Visit",customers_visitDates:"Visit Dates",customers_standby:"Standby",customers_typeRenew:"Renew",customers_archivedResidents:"Archived Residents",customers_archivedCards:"Archived Cards",customers_allCards:"All Cards",customers_requested:"Waiting Approval",customers_unauthorized:"Unauthorized to perform this action",customers_pageTitle:"Customers",customers_beam:"Beam (m)",customers_draft:"Draft (m)",customers_requestDate:"Request Date",customers_addAr:"Create vacancy",customers_errorOccured:"Sorry, an error has occurred",boater_backToCustomers:"Back to Customers",boater_member:"Member",boater_personalInfo:"Personal Info",boater_firstName:"First name",boater_lastName:"Last name",boater_birthday:"Birthday",boater_country:"Country",boater_address:"Address",boater_zipCode:"Zip code",boater_mail:"Email",BOATER_EMAIL:"Boater Email",boater_phone:"Phone",boater_vessel:"Boat",boater_vesselName:"Boat Name",boater_loa:"L.O.A",boater_l:"L",boater_b:"B",boater_d:"D",boater_type:"Type",boater_homeMarina:"Home Marina",boater_requestDate:"Request Date",boater_documents:"Documents",boater_noDocs:"No documents available",boater_memberships:"Memberships",boater_activity:"Activity",boater_messages:"Messages",boater_noActivity:"There is no activities yet",boater_noMemberships:"No membership card related to the customer yet",boater_noMembership:"No membership card yet",boater_noMessages:"Coming soon",boater_table_visitDate:"Visit Date",boater_table_destination:"Travel destination",boater_table_redeemedNights:"Redeemed nights",boater_table_created:"Created",boater_table_id:"ID",boater_resendCard:"Resend Card",boater_save:"Save",boater_edit:"Edit",boater_cancel:"Cancel",boater_membershipInfo:"Membership Info",boater_membershipVessel:"Registered Boat",boater_membershipStatus:"Membership Status",boater_changeStatus:"Change status",boater_expirationDate:"Expiration Date",boater_created:"Created",boater_autoRenew:"Auto Renew",boater_discountStatus:"Discount Status",boater_availableUntil:"Available until",boater_eligibilityTooltip:"The Discount Eligibility is started on {{start}} (first visit). Available until {{end}} as long as the card is in active status",boater_counterDesc:"Night left out of 5",boater_from:"From",boater_to:"To",boater_renewRequest:"Request to Renew",boater_expiredMessage:"Customer card is expired therefore, a discount in unavailable. To ask for card activation contact the marina at:",boater_temporaryMessage:"Please note that this membership card was created by {{marinaName}} and not by the customers\u2019 home marina. The card is waiting for the home marina approval, but until then you can redeem nights as you wish to.",boater_renewRequestMessage:"Saint-Quay Port D\u2019Armor marina sent you request to renew the membership card status.
For further information contact the marina at",boater_decline:"Decline",boater_approveRenuval:"Approve Renuval",boater_addVisit:"Add visit",boater_waitingForVisit:"Waiting for first visit",boater_membershipRequestMessage:"{{name}} is asking for a new membership card.
Please review the request details for approval. You can also edit the request if needed.
For approval, click on CREATE CARD.
You can also DECLINE the request and send a message to the customer.",boater_approveMembership:"Create card",boater_waitingApproval:"Waiting approval",boater_membershipRequestWaiting:"Request waiting approval",boater_membershipCardRequest:"Membership card request",boater_confirmCreateCardTitle:"Create card",boater_confirmCreateCardDesc:"This action will create new membership card.",boater_confirmCancelAbsenceTitle:"Cancel request",boater_confirmCancelAbsenceDesc:"This action will cancel the vacancy request. Are you sure you want to do this?",boater_cancelAbsence:"Cancel request",boater_cancelCreateCardTitle:"Decline Residency Request",boater_dateIsRedeemed:"This night is already redeemed",boater_notEnoughNights:"You can't redeem more than {{nights}}",boater_viewFullCard:"View full card",boater_backToReservations:"Back to Reservations",boater_redeem:"Redeem",boater_marinaApproved:"Verified
at {{date}}",boater_marinaWasDeclined:"Home marina residency verification
declined on {{date}}",boater_marinaWaiting:"Waiting home marina verification",boater_marinaRequestMessage:"Do you verify {{boater_name}} as a resident at your marina?",boater_marinaRequestApprove:"Yes, verify residency",boater_marinaRequestDecline:"No, decline",boater_marinaRequestDeclineCancel:"No residence",boater_marinaRequestDeclineApprove:"Decline",boater_marinaRequestApproveCancel:"Cancel",boater_marinaRequestApproveApprove:"Yes, approve",boater_confirmMarinaRequest:"Approve residency",boater_confirmMarinaRequestDesc:"Is this boat your resident?",boater_cancelMarinaRequestDecs:"You are about to decline {{boater}}'s residency request.
Please describe the reason for the decline to the boater.",boater_residencyVerified:"Residency verified!",boater_residencyDeclined:"Residency declined!",boater_marinaNotApproved:"Not verified",reservations_pageTitle:"Reservations",reservations_tabs_pending:"Pending",reservations_tabs_approved:"Approved",reservations_tabs_closed:"Closed",reservations_table_status:"Status",reservations_table_source:"Reservation source",reservations_table_dates:"Dates",reservations_table_price:"Price per Night",reservations_table_vesselName:"Boat Name",reservations_table_size:"Size (metres)",reservations_table_homeMarina:"Home Marina",reservations_table_customer:"Visitor",reservations_table_Termsated:"Last updated",reservations_table_id:"RSVN. ID",reservations_setPrice:"Set price",reservations_customer:"Customer",reservations_marina:"Marina",reservations_finished:"Finished",reservations_noPending:"There are no reservations in process",reservations_noApproved:"There are no approved reservations yet",reservations_noClosed:"There are no closed reservations yet",reservations_waitingArrival:"Waiting arrival",reservations_searchPlaceholder:"Search by: RSVN.ID, visitor, boat name or home marina",reservations_notFound:"No results found",reservations_table_lastUpdated:"Last updated",reservations_source_customer:"Boater",reservations_source_marina:"Marina",reservation_waitingBooking:"You can't approve reservation request until boater doesn't book a price",reservation_waitingDocuments:"You can't approve reservation request until boater upload required documents",reservation_backToReservations:"Back to Reservations",reservation_titleReservation:"Reservation no",reservation_titleRequest:"Reservation request",reservation_pending:"pending",reservation_waiting:"waiting",reservation_canceled:"canceled",reservation_approved:"approved",reservation_details:"Details",reservation_messages:"Messages",reservation_total:"Total",reservation_per_night:"Per night",reservation_fees:"Fees",reservation_taxes:"Taxes",reservation_harbor_dues:"Harbor Dues",reservation_dates:"Dates",reservation_price:"Price",reservation_membership:"Membership",reservation_payment:"Customer payment",reservation_messageVisitor:"Message visitor",reservation_requiredDocuments:"Required documents",reservation_additionalRequirements:"Additional
Requirements",reservation_additionalCharges:"Additional
Charges",reservation_paymentRequest:"Payment request",reservation_25depositOnly:"{{rate}}% deposit only",reservation_fullPayment:"Full payment",emailPreferencesTransactionalEmailsNever:"Never",reservation_fromTo:"From-To",reservation_totalNights:"Total Nights",reservation_address:"Address",reservation_postal_code:"Postcode",reservation_zipCode:"Zip code",reservation_water_electricity:"Water & electricity",reservation_needsWaterOrElectricity:"Needs water or electricity",reservation_additionalServices:"Additional Services",reservation_pricePerNight:"Price per Night {{currency}}",contract:"Contract",reservation_discount:"Allow Discount",reservation_inPercent:"in %",reservation_inCurrency:"in {{currency}}",reservation_nightsToRedeem:"Nights To Redeem",reservation_outOfNightsSingular:"Out of {{nights}} night",reservation_outOfNightsPlural:"Out of {{nights}} nights",reservation_userHasNoNights:"This user has no nights to redeem",reservation_downpayment:"Downpayment",reservation_payInMarina:"Pay at Marina",reservation_vesselInsurance:"Boat Insurance",reservation_vesselLicense:"Boat License",reservation_skiper:"Skipper ID/License",reservation_docFour:"Doc 4",reservation_docFive:"Doc 5",reservation_note:"Message Visitor",reservation_totalPrice:"Total Price",reservation_deposit:"Deposit",reservation_decline:"Decline",reservation_selectAction:"Select Action",reservation_sendToCustomer:"Respond",reservation_approveReservation:"Approve Reservation",reservation_subtotal:"subtotal",reservation_priceRequired:"Please offer a price",reservation_priceTooltip:"Type in your offered price. You can also chose to give the visitor a discount.",reservation_totalDiscount:"total discount",reservation_discountTooltip:"You can choose to request a downpayment from the visitor here.",reservation_additionalReqTooltip:"Choose the documents you would like to get from the visitor prior to arrival",reservation_noMembershipConnected:"Membership card is not connected",reservation_mightHaveMembership:"The visitor might have a membership card, but the card has not been connected yet.",reservation_editReservation:"Edit reservation",reservation_cancelReservation:"Cancel reservation",reservation_viewInMessages:"View messages",reservation_inValidNumber:"Field shouldn't contain numbers or special symbols",reservation_cancelDialogTitle:"Cancel this reservation?",reservation_cancelDialogDesc:"This action will cancel the reservation.",reservation_cancelDialogConfirm:"Continue",reservation_updDialogTitle:"Send Update to Visitor?",reservation_updDialogDesc:"Click OK to send the updated reservation details to the visitor",reservation_updDialogConfirm:"Ok",reservation_approveDialogTitle:"Approve reservation?",reservation_approveDialogDesc:"This action will approve reservation. Are you sure you want to do this?",reservation_approveDialogConfirm:"Approve",reservation_messageToCustomer:"Message Visitor",reservation_moreThanTotal:"You are trying to redeem more nights than visit duration",reservation_moreThanAvailable:"You are trying to redeem more nights than visitor has",reservation_moreThanAvailableTT:"The number of nights to redeem for this reservation is more than the client has left. This could be because the nights were used for another visit while this reservation request was being processed",reservation_cancelReason:"Enter reason",reservation_newReservationRequest:"A new reservation request has been received from {{name}}",reservation_reservationWasUpdatedByMarina:"Reservation details were updated by marina",reservation_cancelByMarina:"Reservation was canceled by marina",reservation_reservationWasUpdatedByBoater:"Reservation details were updated by {{name}}",reservation_cancelByBoater:"Reservation was canceled by {{name}}",reservation_reservationWasApproved:"Reservation was approved",reservation_reservationWasPayed:"Reservation paid. Waiting for marina final approval",reservation_reservationWasDeclinedByMarina:"Reservation was declined by marina",reservation_reservationWasAcceptedByBoater:"Reservation was accepted by {{name}}",reservation_reservationWasDeclinedByBoater:"Reservation was declined by {{name}}",reservation_reservationIsOnHold:"Reservation is on hold",reservation_marinaAddedDates:"Marina suggested new dates: {{dates}}",reservation_skipperPassport:"Skipper Passport",reservation_boaterAddedDocuments:"{{name}} addded documents",reservation_boaterAcceptedSuggestedDates:"{{name}} accepted the suggested dates: {{dates}}",reservation_waitingArrival:"Waiting arrival",reservation_followTheRequierments:"In order to complete the reservation, we would need you to add the following requirements. Thanks {{marina}}",reservation_noNightsForResident:"You can't redeem any nights for resident",reservation_additional_water:"Water",reservation_additional_electricity:"Electricity",reservation_additional_parking:"Parking",reservation_boatersAddress:"Boater's Address",reservation_dateOfBirth:"Date of birth",reservation_country:"Country",reservation_phoneNumber:"Phone number",reservation_vesselName:"Boat name",reservation_vesselType:"Boat type",reservation_vesselLoa:"Boat L.O.A",reservation_vesselBeam:"Boat beam",reservation_vesselDraft:"Boat draft",reservation_homeMarina:"Home marina",reservation_reservationRedeemNightsTooltip:"Here you can see the amount of the nights left to redeem on the member's annual benefit. In awarding the discount, you can choose to redeem all eligible nights or choose the required amount.",reservation_instantBookingReservationPrice:"Sent via email",reservation_inEuro:"in \u20ac",dashboard_manageMembers:"Search a TransEurope Marinas member",dashboard_enterCode:"Type a card number (e.g. TEM12345)",dashboard_cardNotFound:"Card {{card}} not found",dashboard_noActivity:"No activity",dashboard_visitorsChart:"This chart displays the number of nights made by the visitors in your marina. The division into countries represents the home ports from which visitors arrived.",dashboard_residentsChart:"This chart displays the number of nights made in other marinas, by your residents. The division into countries represents the travel destination of the residents.",dashboard_Greece:"Greece",dashboard_Netherlands:"Netherlands",dashboard_Morocco:"Morocco",dashboard_Croatia:"Croatia",dashboard_Italy:"Italy",dashboard_France:"France",dashboard_Portugal:"Portugal","Canary Islands":"Canary Islands",dashboard_Spain:"Spain",dashboard_Ireland:"Ireland","United Kingdom":"United Kingdom",dashboard_UK:"United Kingdom",dashboard_Belgium:"Belgium",dashboard_israel:"Israel",dashboard_Germany:"Germany",dashboard_cards:"Cards",dashboard_activeCards:"Active Cards",dashboard_night:"night",dashboard_nights:"nights",dashboard_visitor:"visitor",dashboard_visitors:"visitors",dashboard_resident:"resident",dashboard_residents:"residents",dashboard_paperCard:"Paper card?",pendingEventsHeader:"HIGHLIGHTS",filterAll:"All",filterReservations:"Reservations",filterAbsences:"Vacancies",filterCustomers:"Customers",eventHeaderNewReservation:"New reservation",eventBodyNewReservation:"{{vessel_name}} (L.O.A {{vessel_length}}m) wants to stay for {{num_nights}} nights",eventCtaNewReservation:"Set price",eventHeaderReservationWaiting:"Reservation confirmed",eventBodyReservationWaiting:"{{vessel_name}} (L.O.A {{vessel_length}}m) confirmed his reservation",eventCtaReservationWaiting:"View details",eventHeaderReservationNewMessage:"Reservation - new message",eventBodyReservationNewMessage:"{{boater_name}} sent you a new message",eventCtaReservationNewMessage:"View message",eventHeaderNewAbsence:"New vacancy",eventBodyNewAbsence:"{{vessel_name}} (L.O.A {{vessel_length}}m), {{berth_name}}, has generated a vacancy of {{num_nights}} nights",eventCtaNewAbsence:"Got it",eventHeaderAbsenceCancelled:"Vacancy cancelled",eventBodyAbsenceCancelled:"{{vessel_name}} cancelled a planned vacancy of {{num_nights}} nights",eventCtaAbsenceCancelled:"View details",eventHeaderResidencyRequest:"Residency request",eventBodyResidencyRequest:"{{boater_name}} is requesting residency approval for {{vessel_name}} (L.O.A {{vessel_length}}m)",eventCtaResidencyRequest:"Verify residency",eventHeaderMembershipRequest:"Membership card request",eventBodyMembershipRequest:"{{boater_name}} is requesting a membership card for {{vessel_name}} (L.O.A {{vessel_length}}m)",eventCtaMembershipRequest:"Create card",eventHeaderNewMessage:"New message",eventBodyNewMessage:"{{boater_name}} sent you a new message",eventCtaNewMessage:"View message",eventHeaderTypeEight:"Reservation canceled",eventBodyTypeEight:"Reservation #{{reservation_id}} canceled by {{boater}}",eventCtaTypeEight:"Got it",eventHeaderTypeNine:"Reservation updated",eventBodyTypeNine:"Reservation #{{reservation_id}} was updated",eventCtaTypeNine:"View details",emptyStateHighlightsAll:"Perfect!",emptyStateHighlightsFilters:"No pending events",pendingEventsTooltip:"Click to view",eventHeaderAbsenceUpdated:"Vacancy updated",eventBodyAbsenceUpdated:"{{boat}} (L.O.A {{length}}m), {{berth_name}} , updated their vacancy details.",eventCtaAbsenceUpdated:"Got it",eventBodyTypeFive:"{{boater_name}} is requesting residency approval for {{Vessel name}} (L.O.A {{Vessel_length}}m)",eventHeaderReservationCancelled:"Reservation cancelled",eventBodyReservationCancelled:"{{boater_name}} cancelled the reservation",eventCtaReservationCancelled:"View details",eventHeaderInstantBooking:"New reservation booked",eventBodyInstantBooking:"{{vessel_name}} (L.O.A {{vessel_length}}m) booked a reservation",eventCtaInstantBooking:"View reservation",arrivalDeparturesHeader:"DEPARTURES / ARRIVALS",presetToday:"Today",presetTomorrow:"Tomorrow",presetNext3Days:"Next 3 days",arrivalsHeader:"Arrivals",departuresHeader:"Departures",emptyStateArrivalsToday:"No arrivals today",emptyStateArrivalsTomorrow:"No arrivals tomorrow",emptyStateArrivalsNext3Days:"No arrivals in the next 3 days",emptyStateDeparturesToday:"No departures today",emptyStateDeparturesTomorrow:"No departures tomorrow",emptyStateDeparturesNext3Days:"No departures in the next 3 days",totalNights:"Nights",vesselLoa:"L.O.A",createNew:"Create new card",enterFname:"Enter first name",enterLname:"Enter last name",enterEmail:"Enter email",enterBoatName:"Enter boat name",enterLOA:"Enter boat L.O.A. in metres",enterExp:"Expiration date",enterPhone:"Enter phone",createCard:"Create Card",autoRenew:"Auto Renew?",autoRenewTooltip:"Auto renew allows automatic 1-year card renewal from current expiration date.",enterStartDate:"Enter start date",newCardCreated:"A new card has been successfully created",emailSentToResident:"An email with card details has been sent to the resident",emailSentToMarina:"An email with card details has been sent to the marina mail",noEmailCB:"No email",emailToMarina:"an email will be sent to the marina office email address",noEmailTooltip:"Mark this if the resident has no email. The card details will be sent to the marina office email address.",wantToCreate:"Want to create more then one card at a time?",useSpreadSheet:"Use the Multiple card spreadsheet",phoneError:"Phone number OR Email is required",multiplePopup_title:"Multiple cards",multiplePopup_subTitle:"Want to create more than one card at a time?",multiplePopup_text:"Simply download our CSV template and fill it with the relevant residents details. Once it's ready, send it to marina-support@pickapier.com.
And that's it. We will take it from here and contact you soon.",multiplePopup_confirm:"Download CSV template",multiplePopupSuccess_title:"Downloading CSV template",multiplePopupSuccess_subTitle:"Please check your Downloads folder to view and edit the CSV file.",multiplePopupSuccess_text:'When the file is ready, please send it to marina-support@pickapier.com

Need help? Feel free to contact our support',multipleQuestion:"Want to create more than one card at a time?",noThanks:"No, thanks",createMultiple:"Yes, create multiple cards",visitorCardPopup_title:"New Visitor Card",visitorCardPopup_subTitle:"Got a visitor with a paper card?",visitorCardPopup_text:"No worries! We'll make it digital in no time. Click on \"Let's do it\", fill in the required details, attach the paper card's photo - and that's it.
We'll send the visitor the new digital card and notify you once the card is ready to redeem nights.",visitorCardPopup_CTA:"Let's do it",visitorCardPopupMemberships:"Paper card?",boatloaMax:"Boat L. O. A. can't be more than 1 km",fnameRequired:"First name is required",fnameInvalid:"First name shouldn't contain numbers or special symbols",lnameInvalid:"Last name shouldn't contain numbers or special symbols",lnameRequired:"Last name is required",emailRequired:"Email is required",emailInvalid:"Invalid email. Please enter correct email address",boatNameRequired:"Boat name is required",boatNameInvalid:"Boat name shouldn't contain numbers or special symbols",boatloaRequired:"Boat length is required",boatloaTooShort:"Boat length can't be less than 1",boatBeamRequired:"Boat beam is required",boatbeamTooShort:"Boat beam can't be less than 1",boatloaAndBeamRequired:"All size fields are reqired",boatDraftRequired:"Boat draft is required",boatdraftTooShort:"Boat draft can't be less than 1",expDateRequired:"Expiration date is required",fNameAtLeast:"First name must include at least two letters",lNameAtLeast:"Last name must include at least two letters",boatNameAtLeast:"Boat name must include at least three characters",expDatePast:"Invalid date. Please select a future date",expDateMustBeValid:"Invalid date. Please insert date according to the format dd/mm/yyyy",dateRequired:"Start date is required",cardInfo:"Card info",creationDate:"Creation date",expDate:"Expiration date",saveCard:"Save Card",confirmDeleteTitle:"Delete this user?",confirmDeleteDesc:"Action of deletion/archiving is permanent. Do you really want to proceed?",confirmArchiveTitle:"Archive this member card?",confirmDisableDesc:"The card will be available for view only. You will be able to activate the card at any time.",confirmDisableTitle:"Disable card?",confirmRestoreTitle:"Restore this card?",confirmRestoreDesc:"Restoring this card from archive will allow it to be used. Are you sure?",confirmArchiveDesc2:"The card will not be available on your Residents list. You will be able to view and restore the card via the Archived cards list.",ArchivedStripeBanner:"This card was archived by it's home marina and is no longer available.",ArchivedStripeBanner2:"For further questions or to request card activation, please contact the marina at:",DisabledStripeBanner:"This card was disabled by the visitor's home marina and is no longer available.",DisabledStripeBanner2:"For further questions or to request card activation, please contact the marina at:",disable:"Disable",delete:"Delete",archive:"Archive",restore:"Restore",saveChanges:"Save changes",phoneIfNoEmail:"Enter a phone number if the customer doesn't have an email address.",phoneInvalid:"Invalid phone number",noEmailThenYourMail:"When empty - the card will be sent to the marina Email.",emptyMailPlaceholder:"Empty - The email will be sent to the marina email",saving:"Saving...",cardSaved:"Saved",errorSaving:"Error while saving",activityLog:"Activity Log",language:"Language",specialChars:"Field cannot contain special characters",suggestHistoryNights:"The visitor may already visited the marina this year. It is suggested to redeem previous visits retroactively.",insertPrev:"Insert history",insertPrevTitle:"Enter previous visits?",oneNightLeft:"Only 1 night left to redeem",XNightsLeft:"Only {{nights}} nights left to redeem",card:"Card",disabled:"Disabled",disableCard:"Disable Card",active:"Active",expired:"Expired",archived:"Archived",temporary:"Temporary",pending:"Pending",changeStatus:"Change status",redeemPreviousVisits:"Redeem previous visits",dateMustBeAfter:"Visits are retroactively valid up to 1 year",noFutureDates:"You cannot enter future dates",renewCardTitle:"Renew card?",renewCardDesc2:"The new expiration date will be set to 1 year from today. If needed, You can change it by editing the card.",renew:"Renew",activateCardTitle:"Activate card?",activateCardDesc:"The card will now be available for use. If needed, you can change the expiration date by editing the card.",activate:"Activate",travelDestination:"Travel Destination",cardNotFound:"Card not found",resend:"Resend",ArchivedInfo:"The card has been archived by the home marina",status:"Status",inValidDate:"Invalid date. Please enter valid date",regUsers:"Number of cards per country",regMarinas:"Number of cards per marina",regVisits:"Number of visits per marina",regUsersInfo:"This chart displays the number of cards in the system per country",regMarinasInfo:"This chart displays the number of cards in the system per marina",regVisitsInfo:"This chart displays the number of visits in the system per marina",cards:"cards",marinas:"marinas",visits:"visits",activeMarinas:"Active marinas per country",activeMarinasInCountry:"active marinas",marinasInfo:"This chart displays the number of marinas per country",temNights:"Total of redeem nights in TEM",temNightsInfo:"This chart displays the number of nights within TEM.",nightsRedeemed:"Nights redeemed",totalMarinas:"Marinas",activeCards:"Active cards",cardsPerMarina:"cards per marina",totalCardsPerCountry:"Total active cards per country",averageCardsPerCountry:"Average marina active cards per country",totalNightsPerCountry:"Total nights redeemed per country",averageNightsPerCountry:"Average marina nights redeemed per country",activeCardsTipSingle:"active card",activeCardsTipPlural:"active cards",nightsRedeemedTipSingle:"night redeemed",nightsRedeemedTipPlural:"nights redeemed",boaters_pageTitle:"Boaters",marina_title:"Marina:",cardTitle:"Marina info",name:"Name",code:"Code",country:"Country",city:"City",phone:"Phone",spread_sheet_link:"Spreadsheet link",mail:"Email",notes:"Notes",created:"Creation date (dd/mm/yyyy)",comments:"Comments",hpLink:"HP link",berths_number:"Berths number",blue_flag:"Blue Flag",golden_anchors:"Golden anchors",main_interest:"Main Interest",office_hours:"Office Hours",photo_link:"Photo link",header_navigation_admin:"Admin",navigation_waiting_list:"Waiting List",navigation_departures_arrivals:"Departures/Arrivals",navigation_dock_walker:"Dock Walker",navigation_adminPanel:"Admin Panel",navigation_dashboard:"Dashboard",navigation_customers:"Customers",navigation_marinas:"Marinas",navigation_reservations:"Reservations",navigation_adminDivider:"Administrator",navigation_marinaDivider:"Marina",navigation_reports:"Reports",navigation_gift_points:"Gift Points",navigation_boaters:"Boaters",navigation_absenceReports:"Vacancies",navigation_memberships:"Memberships",navigation_navbarActivity:"Activity",navigation_goBack:"Back to {{path}}",navigation_goBackDefault:"go back",navigation_reservation:"Reservation",navigation_absence:"Planned vacancy",navigation_workspaceDivider:"WORKSPACE",navigation_recordsDivider:"RECORDS",users_create_title:"Add new user",backToMgmt:"Back to Users management",email_placeholder:"Email",firstName_placeholder:"First name",lastName_placeholder:"Last name",residents:"Residents",reservations:"Reservations",marina_settings:"Marina settings",option_view:"View only",option_edit:"Can edit",option_notAllow:"Not allowed",option_allow:"Allowed",permissions:"Permissions",createUser:"Create user",residents_tooltip:"User will be able to create and edit resident cards and planned vacancies",reservations_tooltip:"User will be able to redeem nights, communicate with customers regarding reservations, and approve/decline reservations",marina_settings_tooltip:"Manage marina users and custom reservation settings",table_email:"Email",table_first_name:"First name",table_last_name:"Last name",table_residents:"Residents",table_reservations:"Reservations",table_marina_settings:"Marina settings",usersManagement:"Users management",backToTable:"Back to users",systemFunctions:"Check out the system functions",gainInsight:"Gain insights based on customer activity",manageMembership:"Create & manage membership cards easily",trackDiscounts:"Track & manage visitor discounts",accessInOnePlace:"Access all customer in one place",vacancySearchTitle:"Search vacancies based on absent residents",vacancySearchMatchColumn:"Search match",full:"Full",partial:"Partial",vacancyDatePickerPresetFirst:"Next 30 days",vacancyDatePickerPresetSecond:"Next 7 days",vacancyDatePickerPresetThird:"Today",vacancySearchEmptyState:"No vacancy matches found.",vacancySearchFrom:"From",vacancySearchTo:"To",pageTitle:"Planned vacancies",departure:"Departure",return:"Return",numOfNights:"Num. of nights",vessel:"Boat",size:"Size (metres)",resident:"Resident",id:"ID",backTo:"Back to Vacancies",titleRequest:"Planned vacancy",reason:"Reason",Termsated:"Last updated",destination:"Destination",table_id:"ID",Terms:"Last updated",AR_MARINA_POPUP_HEADER:"What do Vacancies Mean?",AR_MARINA_TITLE1:"Online Communication",AR_MARINA_BODY1:"Get departure & return
reports from residents in advance",AR_MARINA_TITLE2:"Easy Management",AR_MARINA_BODY2:"Enjoy an organized view
with all vacancies created by your residents",AR_MARINA_TITLE3:"Availability Insights",AR_MARINA_BODY3:"Know which berths are
vacant and when",AR_MARINA_FOOTER_LINE:"This upgrade is FREE of charge",AR_DATE_PICKER_TITLE_1:"Search vacancy",AR_DATE_PICKER_TITLE_2:"Vacant berths between selected dates",AR_DATE_PICKER_PRESET_1:"Next 30 days",AR_DATE_PICKER_PRESET_2:"Next 7 days",AR_DATE_PICKER_PRESET_3:"Today",AR_MATCHRATE_TOOLTIP:"{{pratialOrFull}}. x days are vacant out of {{num_of_vacancy_days_searched}} days",createReport:"Create Report",select:"Select",internationalVacation:"International vacation",domesticVacation:"Domestic vacation",maintenance:"Maintenance",other:"Other",departureDateRequired:"Departure date field is required",returnDateRequired:"Return date field is required",reasonRequired:"Reason field is required",returnLessThatDeparture:"Return date can't be before departure date",newReportCreated:"A planned vacancy has been successfully created.
The report details have been sent to the boater's email.",tabs_upcoming:"Upcoming",tabs_current:"Current",tabs_past:"Past",noUpcoming:"There are no upcoming planned vacancies.",noCurrent:"Currently there are no active planned vacancies",noPast:"There are still active or unreported planned vacancies",searchPlaceHolder:"Search by: resident name or boat name",new_absence_report_title:"New planned vacancy",new_absence_report_residentName:"Resident name",new_absence_report_vesselName:"Boat name",new_absence_report_berthName:"Berth",new_absence_report_departureDate:"Departure date",new_absence_report_returnDate:"Return date",new_absence_report_reason:"Reason",new_absence_report_createReport:"Create Report",new_absence_report_select:"Select",new_absence_report_internationalVacation:"International vacation",new_absence_report_domesticVacation:"Domestic vacation",new_absence_report_maintenance:"Maintenance",new_absence_report_other:"Other",new_absence_report_departureDateRequired:"Departure date field is required",new_absence_report_returnDateRequired:"Return date field is required",new_absence_report_reasonRequired:"Reason field is required",new_absence_report_returnLessThatDeparture:"Return date can't be before departure date",new_absence_report_newReportCreated:"A planned vacancy has been successfully created.
The report details have been sent to the boater's email.",absenceReportCancelled:"Cancelled",absenceReportCancel:"Cancel report",USER_ALREADY_EXISTS:"User with this email already exists",setPrimaryContact:"Set as primary contact",addContact:"+ Add contact",changePrimaryContact:"Change primary contact",primaryContact:"Primary contact",connectedBoaterTooltip:"This contact is registered to Pick a Pier",editContact:"Edit contact",removeContact:"Remove contact",searchContact:"Enter contact name or email",marinaSettings:"Marina Settings",marinaSettingsUserManagements:"User Management",marinaSettingsUserManagementsDesc:"Create new users and set system permissions",marinaSettingsReservations:"Reservations",marinaSettingsReservationsDesc:"Choose the information you'd like to receive from visitors",marinaSettingsPricing:"Pricing",marinaSettingsPricingDesc:"Set your pricing scheme to automate the reservation process",marinaSettingsLongTerm:"Long term contract pricing",marinaSettingsLongTermDesc:"Set your pricing scheme for long term contracts",PRICING_CONTRACTS_PERIOD:"Period",PRICING_CONTRACTS_AVAILABILITY:"Availability",pricingPrice:"PRICE",pricingExtraCharges:"EXTRA CHARGES",pricingDiscounts:"DISCOUNTS",pricingPriceType:"Type",pricingPriceTypeFixed:"Fixed price",pricingPriceTypeCategories:"Price categories",pricingPricePerMetre:"Price per metre",pricingPriceMin:"Minimum",pricingPriceMinDesc:"Minimum chargeable length",contractPriceDesc:"Set a fixed price for the entire duration of the contract",pricingPriceDesc:"You can either set a fixed price per metre or define length categories",pricingExtraChargesDesc:"You can add conditions to raise your price",pricingExtraChargesSeason:"Season {{number}}",pricingExtraChargesContract:"Contract {{number}}",pricingExtraChargesSeasonAdd:"Add %",pricingMore:"+ Add",pricingFrom:"From",pricingTo:"To",pricingExtraChargesMultihull:"Beam surcharge",pricingDiscountsDesc:"You can set special discounts according to duration of stay",pricingDiscountPicker:"{{number}}+ nights",pricingSave:"Save",pricingCancel:"Cancel",pricingPriceCategory:"Category {{category}} (m)",pricingPriceAddCategory:"Add Category",settingsSaveChangesPopupSubject:"Save changes?",settingsSaveChangesPopupBody:"Your changes haven't been saved yet. Do you want to save your changes?",settingsSaveChangesPopupCTA1:"Save changes",settingsSaveChangesPopupCTA2:"No, thanks",pricingExtraChargesAddSeason:"Add Season",pricingExtraChargesAddContract:"Add Contract",pricingDiscountsAddDiscount:"Add Discount",pricingPriceCategoryAndAbove:"And above",pricingMultihullApply:"Apply from",pricingSeasonsOverlap:"Overlapping",pricingSeasonFormat:"DD/MM",pricingSeasonFormatUS:"MM/DD",pricingContractFormat:"DD-MM-YYYY",pricingContractFormatShort:"DD-MM",pricingContractFormatUS:"mm-dd-yyyy",pricingContractFormatUSshort:"mm-dd",pricingDiscountsNumbering:"Discount {{number}}",userSettings:"User settings",userSettingsTitle:"User Settings",emailPreferences:"Email preferences",emailPreferencesDesc:"Customize which emails you'll get from Pick a Pier",changePassword:"Change Password",changePasswordDesc:"Change your login password",emailPreferencesTransactionalEmails:"System activity notifications",emailPreferencesTransactionalEmailsDesc:"Get updates from clients to your email",emailPreferencesTransactionalEmailsEveryEvent:"Every event",emailPreferencesTransactionalEmailsOnce3H:"Once in 3 hours",emailPreferencesTransactionalEmailsOnceDay:"Once a day at",emailPreferencesProduct:"Product updates & tips",emailPreferencesProductDesc:"Get the most out of Pick a Pier",emailPreferencesMarketing:"Special offers & webinar invites",emailPreferencesMarketingDesc:"Don't miss your unique user benefits",pricingBack:"Back to marina settings",pricingPricePerMetreError:"Price per metre is required",pricingMultihullMetreError:"Min beam for surcharge is required",pricingMultihullError:"Beam surcharge is required",pricingSeasonInvalidDateError:"Invalid date format",pricingSeasonRequiredError:"Date is required",availabilityTimeError:"Availability period must be longer than the contract period.",pricingSeasonToError:"TO field must be later than FROM field",pricingSeasonFromError:"FROM field must be earlier than TO field",pricingExtraChargesSeasonAddRequiredError:"Percent is required",pricingDiscountEmpty:"nights",pricingDiscountPickerError:"Number is required",pricingDiscountPercentError:"Discount percent is required",cancelCreateCardTitle:"Decline Membership Card Request",cancelCreateCardDesc:"You are about to decline the membership card requested by {{boater_name}}. Please describe the reason for the decline to the boater.",cancelMarinaRequestTitle:"Decline Residency Request",messageResident:"Message resident",NEW_BERTH_HEADER:"New berth",NEW_BERTH_DESC:"To start select an existing pier or create a new one",BERTH_NAME:"BERTH NAME",BERTH_NAME_PIER_NAME:"Pier name",BERTH_NAME_PIER_NAME_PH:"e.g A",BERTH_NAME_PIER_NAME_NOT_FOUND:"No results found",BERTH_NAME_PIER_NAME_CREATE:"Create Pier",BERTH_NAME_PIER_NAME_MISSING:"Add Pier name",BERTH_NAME_BERTH_NUMBER:"Berth number",BERTH_NAME_BERTH_NUMBER_PH:"e.g 12",BERTH_NAME_BERTH_NUMBER_MISSING:"Missing berth number",BERTH_NAME_BERTH_NUMBER_INVALID:"Insert a number",BERTH_NAME_BERTH_NUMBER_EXISTS:"{{pier_name}}{{berth_num}} already exists",BERTH_SIZES:"BERTH SIZES",BERTH_SIZES_MAX_SIZES:"Max Sizes (m)",BERTH_SIZES_LOA:"L.O.A",BERTH_SIZES_LOA_MISSING:"Missing L.O.A",BERTH_SIZES_B:"B",BERTH_SIZES_B_MISSING:"Missing Beam",BERTH_SIZES_D:"D",BERTH_SIZES_D_MISSING:"Missing draft",BERTH_SIZES_INVALID:"Insert a number",BERTH_HOLDER:"BERTH HOLDER",BERTH_HOLDER_RESIDENT_VESSEL:"Resident boat",BERTH_HOLDER_PH:"Search by Boat or Resident Name",BERTH_HOLDER_NOT_FOUND:"No results found",SMART_EXTENSION:"SMART EXTENSION",SMART_EXTENSION_DESC:"Can this berth be extended using the neighboring berths?",SMART_EXTENSION_ON:"Yes",EXTRAS:"EXTRAS",EXTRAS_HEADER:"Additional Settings",EXTRAS_PH:"Select",EXTRAS_SERVICES:"Services",EXTRAS_LOCATION:"Location",EXTRAS_VESSEL_TYPES:"Boat Types",SERVICES_ELECTRICITY:"Electricity",SERVICES_WATER:"Water",SERVICES_WASTE:"Waste",LOCATION_OFFICE:"Office",LOCATION_FACILITIES:"Facilities",LOCATION_VIEW:"View",LOCATION_ACCESSIBLE:"Accessible",LOCATION_QUITE:"Quiet",VESSEL_TYPES_ANY:"Any boat",VESSEL_TYPES_MOTOR:"Motor",VESSEL_TYPES_SAIL:"Sail",BERTH_STATUS:"BERTH STATUS",BERTH_STATUS_DESC:"Switch the toggle to place the berth in/out of offered inventory",BERTH_INSTANT_BOOKING:"INSTANT BOOKING",BERTH_INSTANT_BOOKING_DESC:"Activate to make berth available for instant booking reservations",BERTH_INSTANT_BOOKING_DEACTIVATED_PIER_DESC:"To activate, please activate Instant Booking at the pier level",BIER_INSTANT_BOOKING_DESC:"Activate to allow instant booking on berths of this pier",BIER_INSTANT_BOOKING_NO_PERMISSION_DESC:"To activate instant booking please contact support",MOVING_BERTH_TO_INSTANCE_BOOKING_PIER:"Pier {{pier_name}} has instant booking enabled. Would you like to activate instant booking for this berth?",MOVING_BERTH_TO_NON_INSTANCE_BOOKING_PIER:"Instant booking is not enabled for pier {{pier_name}}. The berth you are moving will be deactivated from instant booking.",INSTANT_BOOKING_TABLE_TAB:"Instant Booking",BERTH_INSTANT_BOOKING_ENABLED:"Enabled",INVENTORY_TABLE_INSTANT_BOOKING_DISABLED:"Disabled",BERTHS_TABLE_INSTANT_BOOKING_DISABLED:"-",INVENTORY_TABLE_INSTANT_BOOKING_ENABLED:"Enabled - {{berths_number}} berths",BERTH_STATUS_ON:"Active",NEW_BERTH_CANCEL:"Cancel",NEW_BERTH_CREATE:"Create Berth",BERTH_SAVE_CHANGES:"Save Changes",NEW_BERTH_CREATED_POPUP_HEADER:"Congrats! You added a new berth.",NEW_BERTH_CREATED_POPUP_BODY1:"Berth {{berth_name}} was successfully created.

Want to add another new berth?",NEW_BERTH_CREATED_POPUP_BODY2:"Berth {{berth_name}} was successfully created.
Pier {{pier_name}} is now saved for future use.

Want to add another new berth?",NEW_BERTH_CREATED_POPUP_BUTTON1_ADD_NEW:"Add new berth",NEW_BERTH_CREATED_POPUP_BUTTON2_NO:"Maybe later, thanks",NEW_PIER_HEADER:"New Pier",NEW_PIER_DESC:"Define the pier's and its berths basic settings",NEW_PIER_PIER_NAME:"Pier name",NEW_PIER_BERTH_SIZES:"Berth Sizes",NEW_PIER_PIER_NAME_PH:"e.g A",NEW_PIER_PIER_NAME_MISSING:"Add Pier name",NEW_PIER_PIER_NAME_EXISTS:"{{pier_name}} already exists",NEW_PIER_CANCEL:"Cancel",NEW_PIER_CREATE:"Create Pier",PIER_SAVE_CHANGES:"Save Changes",NEW_PIER_CREATED_POPUP_HEADER:"Pier created!",NEW_PIER_CREATED_POPUP_BODY:"Pier {{pier_name}} was successfully created.
You can use this pier now when adding new berths.

Are there more piers to add?",NEW_PIER_CREATED_POPUP_BUTTON1_ADD_NEW:"Yes, create new pier",NEW_PIER_CREATED_POPUP_BUTTON2_NO:"Maybe later, thanks",MULTIPLE_BERTHS_POPUP_HEADER:"Add multiple berths",MULTIPLE_BERTHS_POPUP_BODY:"Want to create more than one berth at a time?Simply download our template and fill it with the relevant berths details.
Once it's ready, {{click_here}} to upload",MULTIPLE_BERTHS_POPUP_UPLOAD_BUTTON:"Click here",MULTIPLE_BERTHS_POPUP_DOWNLOAD_BOTTON:"Download template",MULTIPLE_BERTHS_POPUP_CANCEL:"Cancel",BERTH_OR_PIER_CHANGES_SAVED_POPUP:"Changes were successfully saved.",BERTH_OR_PIER_CHANGES_SAVED_POPUP_OK:"OK",BERTH_CHANGES_SAVED_NEW_PIER_POPUP:"Berth changes were successfully saved.
Pier {{pier_name}} is now saved for future use.",PIER_CHANGES_ARE_YOU_SURE_HEADER:"Save changes",PIER_CHANGES_SAVE_SETTINGS_BODY:"Are you sure you want to save changes to pier settings?",PIER_CHANGES_SAVE_SETTINGS_WITH_INSTANT_BOOKING_BODY:"Are you sure you want to save changes to pier settings? Note that deactivating instant booking for this pier will deactivate it for {{berths_number}} berths that have instant booking enabled.",PIER_CHANGES_ARE_YOU_SURE_BODY:"Apply changes for all pier's berths?",PIER_CHANGES_ARE_YOU_SURE_YES_ALL:"Yes, save pier & update berths",PIER_CHANGES_ARE_YOU_SURE_PIER_ONLY:"No, save pier only",PIER_CHANGES_ARE_YOU_SURE_CANCEL:"Cancel",RESIDENT_BERTH:"Berth",RESIDENT_BERTH_ALLOCATE_BUTTON:"Allocate",RESIDENT_BERTH_SEARCH_PH:"Type berth name",RESIDENT_BERTH_NOT_FOUND:"No results found",RESIDENT_BERTH_CREATE_BUTTON:"Create berth",RESIDENT_BERTH_CANCEL:"Cancel",RESIDENT_BERTH_CHANGE_BERTH:"Change",RESIDENT_BERTH_SAVE_CHANGES:"Save Changes",ABSENCE_BERTH:"Berth",ABSENCE_CONNECT_BERTH_POPUP_HEADER:"Connect Berth",ABSENCE_CONNECT_BERTH_POPUP_CTA:"Allocate",ABSENCE_CONNECT_BERTH_POPUP_CANCEL:"Cancel",BERTHS_ADD_BUTTON:"+ Add",BERTHS_ADD_BUTTON_NEW_BERTH:"New Berth",BERTHS_ADD_BUTTON_MULTIPLE_BERTHS:"Multiple Berths",BERTHS_ADD_BUTTON_NEW_PIER:"New Pier",BERTHS_TAB:"Berths",BERTHS_TAB_SEARCH_PH:"Search by berth name, resident name or boat",BERTHS_TAB_BERTH_NAME:"Berth Name",BERTHS_TAB_MAX_SIZES:"Max Sizes (metre)",BERTHS_TAB_BERTH_HOLDER:"Berth Holder",BERTHS_TAB_OCCUPANCY:"Occupancy",BERTHS_TAB_OCCUPANCY_VACANT:"Vacant",BERTHS_TAB_OCCUPANCY_OCCUPIED:"Occupied",BERTHS_TAB_OCCUPANCY_NON_ACTIVE:"Non-Active",BERTHS_FILTER_INSTANT_BOOKING_ENABLED:"Instant booking",BERTHS_TAB_EMPTY_STATE:"Add your marina berths here",PIER_TAB:"Piers",PIER_TAB_SEARCH_PH:"Search pier name",PIER_TAB_PIER_NAME:"Pier Name",PIER_TAB_MAX_SIZES:"Max Sizes (metre)",PIER_TAB_TOTAL_BERTHS:"Number of Berths",PIER_TAB_EMPTY_STATE:"Get Started!
Set your marina piers to allocate berths easier.",BERTH_MODULE_BUTTON:"Berths",LOGIN_FORGOT_PASSWORD:"Forgot password?",SEND_EMAIL:"Send Email",FORGOT_PASSWORD_TITLE:"Recover Password",FORGOT_PASSWORD_TEXT:"Enter your email to recover your account",FORGOT_SENDMAIL_SUCCESS:"Email sent!",FORGOT_SENDMAIL_FAIL:"Sorry, an error occurred.","Canary Islands:":"Canary Islands","United Kingdom:":"United Kingdom",reservationMatchSection:"BERTH",reservationMatchingSectionField:"Berth name",reservationMatchingSectionFieldCanceled:"Was allocated to",reservationMatchingSectionNo:"No match suggestions",reservationsMatchingSectionSetManually:"Set Manually",reservationsMatchingSectionEditMatchSave:"Save",reservationsMatchingSectionEditMatchCancel:"Cancel",reservationsMatchingSectionEditMatch:"Move",reservationMatchingSectionYesMultiple:"{{number}} matches found",reservationMatchingSectionYesSingle:"1 match found",reservationMatchingSectionAll:"View",reservationMatchingSectionChangeMatch:"Move",reservationMatchingSectionConfirmMatch:"{{match}} - Confirm",reservationMatchingSectionChangeViaMatching:"Check Matches",reservationMatchingSectionChangeMatchManually:"Set Manually",reservationsTableNew:"New Reservation",newReservationWizardTitle:"New Reservation",newReservationWizardDates:"Dates",newReservationWizardVesselType:"Boat type",newReservationWizardVesselSizes:"Boat sizes",newReservationWizardLOA:"L.O.A",newReservationWizardBeam:"B",newReservationWizardDraft:"D",newReservationWizardTotalNights:"Total nights",newReservationWizardMatchFoundPopupTitle:"Success! Match Found!",newReservationWizardMatchFoundPopupBody:"Berth {{berth_name}} is available and matches the reservation boat sizes and dates.",newReservationWizardMatchFoundPopupCTA:"Next",newReservationWizardNoMatchPopupTitle:"No Matches Currently",newReservationWizardNoMatchPopupBody:"There are no berths available at the moment for the reservation dates and boat sizes.
Note that updating your inventory regularly increases the chances of finding a matching berth easily.",newReservationWizardNoMatchPopupMainCTA:"Next",newReservationWizardNoMatchPopupSecondaryCTA:"Cancel reservation",newReservationWizardRequiredInfoTitle:"Complete Reservation",newReservationWizardRequiredInfoMainCTA:"Create Reservation",newReservationWizardRequiredInfoSecondaryCTA:"Cancel",matchingScreenVesselSection:"Boat",matchingScreenBerthSection:"Berth",matchingScreenVesselType:"Boat type",matchingScreenVesselSize:"Boat size",matchingScreenTotalNights:"Total nights",matchingScreenVesselLOA:"L.O.A",matchingScreenVesselBeam:"Beam",matchingScreenVesselDraft:"Draft",matchingScreenBerthName:"Berth name",matchingScreenSizeComparison:"Match",matchingScreenBerthAvailability:"Availability",matchingScreenSuggestions:"{{step}} of {{total}} suggestions",matchingScreenPreviousMatch:"Previous match",matchingScreenNextMatch:"Next match",matchingScreenMainCTA:"Allocate {{name}}",matchingScreenSecondaryCTA:"Cancel",matchingScreenSecondaryCTAVariant:"Skip",matchingDifferentChoiceReasonsPopupTitle:"Skip Matching - Please choose the relevant case",matchingDifferentChoiceReasonsPopupReason1:"Boat sizes do not fit",matchingDifferentChoiceReasonsPopupReason2:"Suggested berth is unavailable",matchingDifferentChoiceReasonsPopupReason3:"Services (water, electricity)",matchingDifferentChoiceReasonsPopupReason4:"Incompatible mooring type",matchingDifferentChoiceReasonsPopupReason5:"Weather related issues",matchingDifferentChoiceReasonsPopupReason6:"Weekday / busy times",matchingDifferentChoiceReasonsPopupReason7:"Other",eventHeaderAllocationRequired:"Reservation - allocation required",eventBodyAllocationRequired:"{{vessel_name}} is waiting for berth allocation",eventCtaAllocationRequired:"Allocate",matchingScreenBerthSectionAbsence:"Planned vacancy",matchingScreenBerthBestMatch:"BEST MATCH",matchingScreenBerthAvailabilityTooltipOccupied:"Occupied by",matchingScreenBerthAvailabilityTooltipAvailable:"Available",matchingScreenBerthNameAbsence:"Boat name",matchingScreenBerthNameAbsenceResident:"Resident boat",matchingDifferentChoiceReasonsPopupCTA:"Send",login_atLeast4:"Password must be at least 4 characters",eventCtaNewAbsenceNoBerth:"Connect berth",eventCtaAbsenceUpdatedNoBerth:"Connect berth",ARRIVALS_DEPARTURES_PRESET_CONFLICTS:"Conflicts",ARRIVALS_DEPARTURES_CONFLICT_HOVER_ROW:"View conflict",ARRIVALS_DEPARTURES_PRESET_CONFLICTS_EMPTYSTATE:"All good! no conflicts.",ARRIVALS_DEPARTURES_PRESET_CONFLICTS_VISITOR_LATE_DEPARTURE_MESSAGE:"Your resident {{resident_vessel_name}} (L:{{resident_vessel_loa}}m) is about to return, while the visitor {{visitor_vessel_name}} (L:{{visitor_vessel_loa}}m), is still at {{berth_name}}.",ARRIVALS_DEPARTURES_PRESET_CONFLICTS_VISITOR_LATE_DEPARTURE_BUTTON:"Message visitor",ARRIVALS_DEPARTURES_PRESET_CONFLICTS_RESIDENT_LATE_DEPARTURE_MESSAGE:"The visitor {{visitor_vessel_name}} (L:{{visitor_vessel_loa}}m) is about to arrive, while your resident {{resident_vessel_name}} (L:{{resident_vessel_loa}}m) is still at {{berth_name}}.",ARRIVALS_DEPARTURES_PRESET_CONFLICTS_RESIDENT_LATE_DEPARTURE_BUTTON:"Message resident",ARRIVALS_DEPARTURES_PRESET_LAST_7_DAYS_HOVER:"Last 7 days",ARRIVALS_DEPARTURES_PRESET_LAST_7_DAYS_HEADER:"Last 7 days",ARRIVALS_DEPARTURES_PRESET_LAST_7_DAYS_EMPTYSTATE:"No events in the last 7 days.",ARRIVALS_DEPARTURES_PRESET_LAST_7_DAYS_OVERDUE_ARRIVED:"Arrived
Overdue",ARRIVALS_DEPARTURES_PRESET_LAST_7_DAYS_OVERDUE_DEPARTED:"Departed
Overdue",ARRIVALS_DEPARTURES_PRESET_LAST_7_DAYS_OVERDUE_NOT_ARRIVED:"Not arrived
Overdue",ARRIVALS_DEPARTURES_PRESET_LAST_7_DAYS_OVERDUE_NOT_DEPARTED:"Not departed
Overdue",ARRIVALS_DEPARTURES_PRESET_LAST_7_DAYS_MENU_BUTTON_HOVER:"Select action",ARRIVALS_DEPARTURES_PRESET_LAST_7_DAYS_RESTORE:"Restore",ARRIVALS_DEPARTURES_PRESET_LAST_7_DAYS_EDIT_RESERVATION:"Edit reservation",ARRIVALS_DEPARTURES_PRESET_LAST_7_DAYS_EDIT_ABSENCE:"Edit vacancy",ARRIVALS_DEPARTURES_EDIT_BUTTON_HOVER_ABSENCE:"Edit vacancy",ARRIVALS_DEPARTURES_EDIT_BUTTON_HOVER_RESERVATION:"Edit reservation",ARRIVALS_DEPARTURES_CONFIRM_ARRIVAL_BUTTON_HOVER_ONTIME:"Confirm arrival",ARRIVALS_DEPARTURES_CONFIRM_DEPARTURE_BUTTON_HOVER_ONTIME:"Confirm departure",ARRIVALS_DEPARTURES_CONFIRM_BUTTON_HOVER_FUTURE:"Future events can only be edited","ARRIVALS_DEPARTURES_ARRIVAL_CONFIRMED_POPUP:":"Arrival confirmed",ARRIVALS_DEPARTURES_DEPARTURE_CONFIRMED_POPUP:"Departure confirmed",ARRIVALS_DEPARTURES_CONFIRMED_POPUP_UNDO_BUTTON:"Undo",ARRIVALS_DEPARTURES_LATE_ARRIVAL_POPUP:"We suggest updating the dates in case the duration changed.",ARRIVALS_DEPARTURES_LATE_ARRIVAL_POPUP_UNDO_BUTTON:"Undo confirmation",ARRIVALS_DEPARTURES_LATE_ARRIVAL_POPUP_EDIT_BUTTON:"Update dates",ARRIVALS_DEPARTURES_LATE_DEPARTURE_POPUP:"We suggest updating the dates in case the duration changed.",ARRIVALS_DEPARTURES_LATE_DEPARTURE_POPUP_UNDO_BUTTON:"Undo confirmation",ARRIVALS_DEPARTURES_LATE_DEPARTURE_POPUP_EDIT_BUTTON:"Update dates",ARRIVALS_DEPARTURES_LATE_EVENT_INFO:"{{days_late}} days late",SMART_EXTENSION_SET_BUTTON:"Set the neigboring berths",SMART_EXTENSION_TOOLTIP:"This will allow you to get advanced allocation suggestions, such as utilizing two berths for a large boat. {{learn_more}}",SMART_EXTENSION_CONTINUE:"Continue",SMART_EXTENSION_BACK:"Back",SMART_EXTENSION_FINISH:"Finish",SMART_EXTENSION_SAVE:"Save changes",SMART_EXTENSION_PAGINATION:"Smart Extension
Step {{step_num}} of {{total_steps}}",SMART_EXTENSION_SIDE1:"Side 1",SMART_EXTENSION_SIDE2:"Side 2",SMART_EXTENSION_WATER_MAX_WIDTH:"Water width {{water_width}} (m)",SMART_EXTENSION_WATER_MAX_LENGTH:"Water width {{water_length}} (m)",SMART_EXTENSION_CLEAR_ALL:"Clear all",SMART_EXTENSION_EDIT:"Edit",SMART_EXTENSION_EXTENDABLE_SIDES_HEADER:"Extendable sides",SMART_EXTENSION_EXTENDABLE_SIDES_DISC:"Which picture describes the berth surroundings best?",SMART_EXTENSION_EXTENDABLE_SIDES_1SIDE:"1 Extendable side",SMART_EXTENSION_EXTENDABLE_SIDES_2SIDES:"2 Extendable sides",SMART_EXTENSION_NEIGBORING_BERTHS_HEADER:"Neigboring berths",SMART_EXTENSION_NEIGBORING_BERTHS_DISC:"Let\u2019s connect the nearby berths!",SMART_EXTENSION_NEIGBORING_BERTHS_SIDE1:"Side 1",SMART_EXTENSION_NEIGBORING_BERTHS_SIDE2:"Side 2",SMART_EXTENSION_NEIGBORING_BERTHS_WATER:"No berth - just water",SMART_EXTENSION_NEIGBORING_BERTHS_WATER_MAX_WIDTH:"Max width (m)",SMART_EXTENSION_NEIGBORING_BERTHS_WATER_MAX_LENGTH:"Max length (m)",SMART_EXTENSION_NEIGBORING_BERTHS_CANT_FIND_BERTH:"Can't find a berth? you can finish and update later",SMART_EXTENSION_NEIGBORING_SUCCESS_BANNER:"Smart Extension successfully updated!",SMART_EXTENSION_CLEAR_ALL_POPUP_HEADER:"Disable Smart Extension",SMART_EXTENSION_CLEAR_ALL_POPUP_DISC:"Clearing all settings will disable the Smart Extension suggestions.
Are you sure?",SMART_EXTENSION_CLEAR_ALL_POPUP_CANCEL:"No, cancel",SMART_EXTENSION_CLEAR_ALL_POPUP_CLEAR:"Yes, clear all",EXPORT_CUSTOMERS_RESIDENT_STATUS:"resident status",EXPORT_CUSTOMERS_VESSEL_NAME:"boat name",EXPORT_CUSTOMERS_VESSEL_TYPE:"boat type",EXPORT_CUSTOMERS_VESSEL_LENGTH:"boat length",EXPORT_CUSTOMERS_VESSEL_BEAM:"boat beam",EXPORT_CUSTOMERS_VESSEL_DRAFT:"boat draft",EXPORT_CUSTOMERS_VESSEL_HOME_MARINA:"Boat home marina",EXPORT_CUSTOMERS_VESSEL_HOME_MARINA_STATUS:"boat home marina status",EXPORT_CUSTOMERS_VESSEL_FLAG:"boat flag",EXPORT_CUSTOMERS_VESSEL_IMO:"boat IMO",EXPORT_CUSTOMERS_VESSEL_MMSI:"boat MMSI",EXPORT_CUSTOMERS_PRIMARY_CONTACT_FIRST_NAME:"primary contact first name",EXPORT_CUSTOMERS_PRIMARY_CONTACT_LAST_NAME:"primary contact last name",EXPORT_CUSTOMERS_PRIMARY_CONTACT_EMAIL:"primary contact email",EXPORT_CUSTOMERS_PRIMARY_CONTACT_PHONE:"primary contact phone",EXPORT_CUSTOMERS_PRIMARY_CONTACT_ADDRESS:"primary contact address",EXPORT_CUSTOMERS_PRIMARY_CONTACT_COUNTRY:"primary contact country",EXPORT_CUSTOMERS_PRIMARY_CONTACT_ZIP_CODE:"primary contact zip code",EXPORT_CUSTOMERS_PRIMARY_CONTACT_BIRTHDAY:"primary contact birthday",EXPORT_CUSTOMERS_PRIMARY_CONTACT_LANGUAGE:"primary contact language",EXPORT_CUSTOMERS_MEMBERSHIP_CARD:"membership card",EXPORT_CUSTOMERS_MEMBERSHIP_STATUS:"membership status",EXPORT_CUSTOMERS_MEMBERSHIP_EXPIRATION_DATE:"membership expiration date",EXPORT_CUSTOMERS_AUTO_RENEW_MEMBERSHIP:"auto-renew membership",EXPORT_CUSTOMERS_VISITOR_FIRST_NAME:"visitor first name",EXPORT_CUSTOMERS_VISITOR_LAST_NAME:"visitor last name",EXPORT_CUSTOMERS_VISITOR_EMAIL:"visitor email",EXPORT_CUSTOMERS_VISITOR_PHONE:"visitor phone",EXPORT_CUSTOMERS_VISITOR_ADDRESS:"visitor address",EXPORT_CUSTOMERS_VISITOR_COUNTRY:"visitor country",EXPORT_CUSTOMERS_VISITOR_ZIP_CODE:"visitor zip code",EXPORT_CUSTOMERS_VISITOR_BIRTHDAY:"visitor birthday",EXPORT_CUSTOMERS_NIGHTS_LEFT:"nights left",boater_cancelCreateCardDesc:"You are about to decline the membership card requested by {{boater_name}}. Please describe the reason for the decline to the boater.",BERTHS_TAB_EMPTYSTATE:"Add your marina berths here",PIER_TAB_EMPTYSTATE:"Get Started!
Set your marina piers to allocate berths easier.",ARRIVALS_DEPARTURES_LATE_EVENT_INFO_DAY:"{{days_late}} day late",EXPORT_CUSTOMERS_ALL_RESIDENTS:"All residents",EXPORT_CUSTOMERS_ALL_VISITORS:"All visitors",SMART_EXTENSION_BERTH_ORIENTATION_HEADER:"Berth Orientation",SMART_EXTENSION_BERTH_ORIENTATION_DISC:"Which picture describes the berth orientation best?",SMART_EXTENSION_BERTH_ORIENTATION_STERN_OR_BOW:"Stern/Bow
(following by beam)",SMART_EXTENSION_BERTH_ORIENTATION_LONGSIDE:"Longside
(following by L.O.A.)",lastUpdated:"Last updated",lastUpd:"Last updated",ARRIVALS_DEPARTURES_NO_VESSEL_NAME:"No name",ARRIVALS_DEPARTURES_NO_VESSEL_TYPE:"No type",ARRIVALS_DEPARTURES_NO_LOA:"No L.O.A",ARRIVALS_DEPARTURES_NO_BERTH:"No berth",ABSENCE_LAST_UPDATED_BY_BOATER:"by {{boater_name}}",ABSENCE_LAST_UPDATED_BY_MARINA:"by {{marina_name}}",ABSENCE_EDIT_SAVE_BUTTON:"Save Changes",ABSENCE_EDIT_CANCEL_BUTTON:"Cancel",ABSENCE_CHANGES_SAVED:"All changes successfully saved",ARRIVALS_DEPARTURES_LATE_ARRIVAL_POPUP_HEADER:"Late arrival confirmed.",ARRIVALS_DEPARTURES_LATE_DEPARTURE_POPUP_HEADER:"Late departure confirmed.",GUEST_VESSEL_NAME:"No name",CHAT_GUEST_NAME_NEW_VISITOR:"New visitor",THE_GUEST_BOATER:"the guest boater",ARRIVALS_DEPARTURES_CONFLICTS:"Conflicts",ARRIVALS_DEPARTURES_CONFLICT_DETAILS:"Conflict details",ARRIVALS_DEPARTURES_CONFLICT:"Conflict",ARRIVALS_DEPARTURES_CONFLICTS_PAGINATION:"{{current}} of {{amount}}",ARRIVALS_DEPARTURES_PRESET_LAST_7_DEPARTED:"Departed",ARRIVALS_DEPARTURES_PRESET_LAST_7_ARRIVED:"Arrived",ARRIVALS_DEPARTURES_PRESET_LAST_7_NOT_DEPARTED:"Not Departed",ARRIVALS_DEPARTURES_PRESET_LAST_7_NOT_ARRIVED:"Not Arrived",ARRIVALS_DEPARTURES_PRESET_LAST_7_DAYS_OVERDUE:"Overdue",add:"Berth",MULTIPLE_BERTHS_CSV_FILE_NAME:"Multiple berths creation",addVessel:"Add boat",myProfileChangeAdminButton:"Change admin",CUSTOMER_ACTIVITIES_RESIDENT_VESSEL_ABSENCE_CREATED:"Planned vacancy created - {{dates}}, reported by {{boater_full_name}}",CUSTOMER_ACTIVITIES_RESIDENT_VESSEL_ABSENCE_UPDATED:"Planned vacancy updated - {{dates}}, reported by {{boater_full_name}}",DOCK_WALKER_BERTH_INFO_VISITOR_VESSEL:"Visitor boat",DOCK_WALKER_BERTH_INFO_VISITOR_NAME:"Visitor name",DOCK_WALKER_BERTH_INFO_RESERVATION:"RESERVATION",DOCK_WALKER_BERTH_INFO_NIGHTS:"nights",DOCK_WALKER_BERTH_INFO_NIGHT:"night",DOCK_WALKER_BERTH_INFO_OUT:"OUT",DOCK_WALKER_BERTH_INFO_RESIDENT_VESSEL:"Resident boat",DOCK_WALKER_BERTH_INFO_RESIDENT_NAME:"Primary contact",DOCK_WALKER_BERTH_INFO_ABSENCE:"PLANNED VACANCY",DOCK_WALKER_BERTH_INFO_ABSENCE_INQUIRY_QUESTION:"This boat isn't here?",DOCK_WALKER_BERTH_INFO_ABSENCE_INQUIRY_CTA:"Inquire for Vacancy",DOCK_WALKER_BERTH_INFO_ABSENCE_INQUIRY_SENT:"Vacancy inquiry sent",DOCK_WALKER_BERTH_INFO:"BERTH INFO",DOCK_WALKER_BERTH_INFO_LOA:"L.O.A",DOCK_WALKER_BERTH_INFO_BEAM:"Beam",DOCK_WALKER_BERTH_INFO_DRAFT:"Draft",DOCK_WALKER_BERTH_INFO_NOTES:"Quick note",DOCK_WALKER_BERTH_INFO_NOTES_PLACEHOLDER:"Write anything here",DOCK_WALKER_BERTH_INFO_NEXT_ACTIVITIES:"NEXT ACTIVITIES",DOCK_WALKER_BERTH_INFO_NEXT_ACTIVITIES_ARRIVING:"Arriving",DOCK_WALKER_BERTH_INFO_NEXT_ACTIVITIES_DEPARTING:"Departing",DOCK_WALKER_BERTH_INFO_NOTES_SAVE:"Save",DOCK_WALKER_BERTH_INFO_NOTES_EDIT:"Edit",DOCK_WALKER_MOBILE_TITLE:"DOCK WALKER",DOCK_WALKER_MOBILE_SEARCH:"Search Berth",DOCK_WALKER_MOBILE_ALL_NUMBERS:"Show all berths",DOCK_WALKER_MOBILE_ODD_NUMBERS:"Only odd numbers",DOCK_WALKER_MOBILE_EVEN_NUMBERS:"Only even numbers",BERTHS_FILTER_WITH_NOTES:"With notes",DOCK_WALKER_MOBILE_MENU_SHORTCUT:"Create a shortcut",DOCK_WALKER_MOBILE_MENU_LANGUAGES:"Language",DOCK_WALKER_MOBILE_MENU_LOGOUT:"Log out",BOATER_ALREADY_EXISTS:"Boater already exists",VESSEL_ADDED_TO_BOATER:"The vessel was added to the boater\u2019s vessels list",MONO_MULTI_HULL:"Monohull / Multihull",MONOHULL:"Monohull",login_certified_by:"GDPR Certified by:",admin_searchPlaceholder:"Enter customer, email or boat name",PRICING_SEASONS_EMPTY:"There are no seasons to price yet. Add a season to get started",PRICING_DELETE:"Delete Season",PRICING_CONTRACT_EMPTY:"There are no contracts to price yet. Add a contract to get started",CONTRACT_DELETE:"Delete Contract",PRICING_SEASONS:"Season",PRICING_SEASONS_DESCRIPTION:"Set the dates for the season",PRICING_CONTRACTS:"Contract",PRICING_CONTRACT_DESCRIPTION:"Set the contract period",PRICING_SEASONS_NAME:"Name",PRICING_SEASONS_DATES:"Dates",PRICING_DELETE_SEASON_POPUP_TITLE:"Delete season?",PRICING_DELETE_SEASON_POPUP_BODY:"Are you sure you want to delete this season?",PRICING_DELETE_SEASON_POPUP_MAIN_CTA:"Delete season",PRICING_DELETE_CONTRACT_POPUP_TITLE:"Delete contract?",PRICING_DELETE_CONTRACT_POPUP_BODY:"Are you sure you want to delete this contract?",PRICING_DELETE_CONTRACT_POPUP_MAIN_CTA:"Delete contract",PRICING_DELETE_SEASON_POPUP_SECONDARY_CRA:"Cancel",PRICING_MISSING_DATES_POPUP_TITLE:"Seasons do not Cover Entire Year",PRICING_MISSING_DATES_POPUP_BODY:"The seasons you defined do not cover the entire year, which means that some days of the year will not be a part of any season. Do you wish to go back to edit the seasons or continue as it is?",PRICING_MISSING_DATES_POPUP_MAIN_CTA:"Go Back",PRICING_MISSING_DATES_POPUP_SECONDARY_CTA:"Save & Continue",PRICING_FIXED_PRICE_PER_METRE:"Per metre",PRICING_FIXED_PRICE_PER_M2:"Per m\xb2",PRICING_FIXED_PRICE_PER_METRE_DESC:"Minimum chargeable length",PRICING_FIXED_PRICE_PER_M2_DESC:"Minimum chargeable m\xb2",PRICING_FIXED_PRICE_CALCULATION:"Calculation",PRICING_PRICE_CATEGORIES_CALCULATION:"Calculation",PRICING_PRICE_CATEGORIES_ERROR:"The category you've can't be smaller than the one you've already defined",PRICING_PRICE_DAILY:"Daily",PRICING_PRICE_WEEKLY:"Weekly",PRICING_PRICE_MONTHLY:"Monthly",PRICING_PRICE_CATEGORIES_CALCULATION_LENGTH:"Length","PRICING_PRICE_CATEGORIES_CALCULATION_LENGTH_&_BEAM":"Length & Beam",PRICING_PRICE_CATEGORIES_CALCULATION_M2:"Per m\xb2",PRICING_PRICE_CATEGORIES_CALCULATION_LENGTH_HEADER_LENGTH:"Length ({{unit_of_length}})","PRICING_PRICE_CATEGORIES_CALCULATION_LENGTH_&_BEAM_HEADER_BEAM":"Beam ({{unit_of_length}})",PRICING_PRICE_CATEGORIES_CALCULATION_M2_HEADER_M2:"m\xb2",PRICING_MULTIHULL_SURCHARGES:"MULTIHULL SURCHARGES",PRICING_MULTIHULL_SURCHARGES_DESCRIPTION:"You can add a premium to the price in the case of a multihull vessel",LIVE_ABOARD:"Live Aboard - Y/N? ",PRICING_COMMERCAIL_OR_PRIVATE_SURCHARGES:"COMMERCIAL SURCHARGES",PRICING_COMMERCAIL_OR_PRIVATE_SURCHARGES_DESCRIPTION:"You can add a premium to the price for commercial vessel",PRICING_LIVEABOARD_SURCHARGES:"LIVEABOARD SURCHARGES",PRICING_LIVEABOARD_SURCHARGES_DESCRIPTION:"You can add a premium to the price when living on board",PRICING_REMOVE:"Remove",PRICING_MULTIHULL_SURCHARGES_TYPE:"Type",PRICING_MULTIHULL_SURCHARGES_TYPE_LENGTH:"Length Multiplier",PRICING_COMMERCIAL_SURCHARGES_BOAT_TYPES:"Applicable Boat Types:",PRICING_MULTIHULL_SURCHARGES_TYPE_M2:"m\xb2 fixed price",PRICING_MULTIHULL_SURCHARGES_TYPE_BEAM:"Beam categories",PRICING_MULTIHULL_SURCHARGES_TYPE_LENGTH_HEADER:"Length X",PRICING_MULTIHULL_SURCHARGES_TYPE_M2_HEADER:"Fixed",PRICING_MULTIHULL_SURCHARGES_TYPE_BEAM_HEADER_BEAM:"Beam",PRICING_MULTIHULL_SURCHARGES_TYPE_BEAM_ADD_CATEGORY:"Add category",PRICING_MULTIHULL_SURCHARGES_TYPE_BEAM_HEADER_ADD:"Add",PRICING_MULTIHULL_SURCHARGES_TYPE_BEAM_APPLY_ALSO:"Apply also to monohull vessels",PRICING_MULTIHULL_SURCHARGES_TYPE_LENGTH_ERROR:"Value should be bigger than 1",PRICING_MULTIHULL_SURCHARGES_ERROR:"You've already defined pricing for this category",PRICING_MULTIHULL_SURCHARGES_TYPE_LENGTH_TOOLTIP:"The price for multihull boats will be the value you enter multiplied by the loa",PRICING_COMMERCIAL_LENGTH_TOOLTIP:"The price for commercial boats will be the value you enter multiplied by the L.O.A",PRICING_LIVEABOARD_LENGTH_TOOLTIP:"The price for living onboard will be the value you enter multiplied by the L.O.A",PRICING_MULTIHULL_SURCHARGES_TYPE_M2_TOOLTIP:"Multihull boats will be charged according to your price multiplied by m^2 (LOA x Beam)",PRICING_MULTIHULL_SURCHARGES_TYPE_BEAM_TOOLTIP:"We will apply a surcharge to boats according to its beam category. Each category is from a specific beam or above. You can also apply this pricing to all boats.",vesselHullTypeRequired:"Vessel hull type is required",mainHeader:"PICK A PIER TERMS OF SERVICE",lastUpdTerms:"Last Updated: March 24| 2020",mainInfo_p1:'Welcome to Pick A Pier! The following terms and conditions as may be amended from time to time (these "Terms of Service")| govern your access to and use of the pickapier.com website| including any subdomains thereof (referred to as the "Site")| the Pick A Pier mobile application ("App")| as well as the content| products| software and services (collectively| including the Site and App| the "Platform") made available by Pick A Pier Ltd. ("Pick A Pier"| "we|" "our|" or "us"). References to "you"| "User" or "Marinas" in these Terms of Service means you| your duly authorized representatives and any entity you may represent in connection with your access or use of the Platform.',mainInfo_p2:'By accessing or using any of our Platform, you acknowledge that you have read and understood these Terms of Service and our Privacy Policy (the "Privacy Policy") (collectively| the "Terms"). You agree to comply and be bound by these Terms and acknowledge that these Terms constitute a binding and enforceable contract between Pick A Pier and you.',pleaseRead:"PLEASE READ THESE TERMS CAREFULLY BEFORE USING THE PLATFORM. IF YOU DO NOT AGREE TO THESE TERMS OR THE PRIVACY POLICY| DO NOT ACCESS OR OTHERWISE USE OUR SITE| APP AND PLATFORM.",scopeHeader:"1. Scope of Services",scopeInfo_p1:'Pick A Pier provides a cloud-based communication platform that seeks to simplify sea going activities for both marinas and boaters. Our Platform is an online marketplace that enables Marinas to offer services ("Marina Berth Services") on the Platform ("Listings") and to communicate and transact directly with Boaters that are seeking to book such Marina Berth Services. "Marina Berth Services" may include| without limitation| berthing services for vessels| vessel repairs| parking lots| clubhouse| pub| water| electricity| internet access and other related facilities and services. "Boaters" are users| and their representatives| who create an account through and intend to use our Platform to make| manage| and pay for bookings under their account for Marina Berth Services at any of the Marinas.',scopeInfo_p2:"As the provider of the Platform| Pick A Pier does not own| create| sell| resell| provide| process| control| manage| offer| deliver| or supply any Listing or Marina Berth Services. You alone are responsible for your Listings and Marina Berth Services. When Boaters make or accept a booking| they are entering into a contract directly with you. Pick A Pier is not and does not become a party to any contractual relationship between Boaters and Marinas| nor is Pick A Pier a real estate broker or insurer.",scopeInfo_p3:"Due to the nature of the internet| Pick A Pier cannot guarantee the continuous and uninterrupted availability and accessibility of the Platform. Pick A Pier may restrict the availability of the Platform or certain areas or features thereof| if this is necessary in view of capacity limits| the security or integrity of our servers| or to carry out maintenance measures that ensure the proper or improved functioning of the Platform. Pick A Pier may improve| enhance and modify the Platform and introduce new services from time to time.",registrationHeader:"2. Account Registration",registrationInfo_p1:"You must be at least 18 years old to access and use the Platform or register an Account. By accessing or using the Platform you represent and warrant that you are 18 or older and have the legal capacity and authority to enter into a contract.",registrationInfo_p2:'Pick A Pier provides a cloud-based communication platform that seeks to simplify sea going activities for both marinas and boaters. Our Platform is an online marketplace that enables Marinas to offer services ("Marina Berth Services") on the Platform ("Listings") and to communicate and transact directly with Boaters that are seeking to book such Marina Berth Services. "Marina Berth Services" may include| without limitation| berthing services for vessels| vessel repairs| parking lots| clubhouse| pub| water| electricity| internet access and other related facilities and services. "Boaters" are users| and their representatives| who create an account through and intend to use our Platform to make| manage| and pay for bookings under their account for Marina Berth Services at any of the Marinas.',registrationInfo_p3:"You must provide accurate| current and complete information during the registration process and keep your Account information up to date at all times. Your failure to maintain accurate| complete and up-to-date details may result in your inability to use the Platform or suspension or termination of your Account.",registrationInfo_p4:'In case of forgotten log-in details or improper use by third parties thereof| you must inform Pick A Pier promptly by sending us an email at office@pickapier.com. Pick A Pier takes no responsibility for any loss and/or damage arising from or in connection with any failure to comply with these Terms.',contentHeader:"3. User Content",contentInfo_p1:'The Platform allows you to upload| store| share| or otherwise provide content to be processed by Pick A Pier ("User Content"). You retain all of your ownership rights in your User Content and we will process your User Content in accordance with these Terms \u2013 to which you agree and shall be deemed as your instructions \u2013 and in accordance with your specific instructions (or your organization\u2019s instructions).',contentInfo_p2:"You represent and warrant that you have all the rights to the User Content and that none of the User Content nor Pick A Pier\u2019s use of the User Content as permitted herein infringes| misappropriates or violates any third party's intellectual property or proprietary rights| or rights of publicity or privacy| or violates any applicable law or regulation| and that you have obtained all necessary licenses| consents or permissions to submit the User Content to Pick A Pier under these Terms.",contentInfo_p3:"We may| but have no obligation to| monitor| edit or remove User Content that we determine in our sole discretion to be unlawful| offensive| threatening| libelous| defamatory| pornographic| obscene or otherwise objectionable or that violates any party\u2019s intellectual property rights or these Terms.",privacyHeader:"4. Privacy",privacyInfo:'Pick A Pier respects your privacy. Please have a look at our Privacy Policy and Cookies Policy for further information.',propertyHeader:"5. Proprietary Rights",propertyInfo_p1:"Pick A Pier and its licensors own and reserve all rights| title and interest in and to the Platform| other than the rights explicitly granted to you to use the Platform in accordance with these Terms. No title to or ownership of any proprietary rights related to the Platform is transferred to you pursuant to these Terms and all rights not explicitly granted to you are reserved by Pick A Pier.",propertyInfo_p2:'Any and all comments| suggestions or recommendations (verbal or written) that you provide to Pick A Pier in connection with the Platform (including| without limitation| regarding modifications| enhancements| improvements or other changes to the Platform) (collectively| "Feedback") is voluntary| is at no cost to Pick A Pier| and is without any restrictions on Pick A Pier. You hereby acknowledge that any and all intellectual property rights in the Feedback and any changes or improvements to the Platform resulting from the Feedback| is and shall remain the property of Pick A Pier.',licenseHeader:"6. License to Use the Platform",licenseInfo_p1:"Subject to your compliance with these Terms| Pick A Pier grants you a nonexclusive| non-commercial| non-transferable| non-sublicensable| payable and fully revocable limited license to access| register and use the Platform.",licenseInfo_p2:"Subject to your compliance with these Terms| Pick A Pier grants you a nonexclusive| non-commercial| non-transferable| non-sublicensable| payable and fully revocable limited license to access| register and use the Platform.",restrictionsHeader:"7. Use Restrictions",restrictionsInfo:'Without derogating from any other restrictions in these Terms| unless otherwise explicitly permitted by Pick A Pier in writing| you may not| whether by yourself or anyone on your behalf: (a) remove any copyright| trademark or other proprietary notices from any portion of the Platform| (b) copy| modify| alter| adapt| make available| translate| port| reverse engineer| decompile or disassemble any portion of the Platform or publicly display| reproduce| create derivative works of| perform| distribute| or otherwise use the Platform| or any material in connection therewith including without limitation text| files| logos| button icons| images| data compilations| links| other specialized content| technical data| documentation| know-how| specifications materials| designs| data| the "look and feel" of the Platform| algorithms| source and object code| interface| GUI| interactive features related graphics| illustrations| drawings| animations| and other features available on the Platform| (c) reverse engineer or attempt to extract the source code of the Platform| (d) use the Platform for any illegal| immoral| unlawful or unauthorized purposes| (e) use the Platform other than as specifically permitted in these Terms including without limitation: distribute| resell or offer the services on the Platform for rent or lease or offer any of the above to the public in any manner| or integrate any of the above within a service of your own| sell| license| or otherwise exploit the Platform | (f) interfere with or violate other user\u2019s rights to privacy and other rights| or harvest or collect personal information about other users without their express consent| whether manually or with the use of any robot| spider| crawler| any search or retrieval application| or use other manual or automatic device| process or method to access the Platform and retrieve| index or data-mine information| (g) interfere with or disrupt the operation of the Platform| or the servers or networks that host them| or disobey any laws or regulations or requirements| procedures| policies| or regulations of such servers or networks| (h) falsely state or otherwise misrepresent your affiliation with any person or entity| or express or imply that Pick A Pier endorses you or your organization| or any statement you make| or present false or inaccurate information about the Platform| (i) take any action that imposes| or may impose| an unreasonable or disproportionately large load on our online-platform infrastructure| as determined| at our sole discretion| (j) bypass or go around any measures we may use to prevent or restrict access to the Platform| (k) transmit or otherwise make available in connection with the Platform any virus| malware| or any other computer code| file| or program that may or is intended to damage or hijack the operation of any hardware| software| or telecommunications equipment| or any other actually or potentially harmful| disruptive| or invasive code or component| and (l) infringe or violate any of these Terms.',bookingHeader:"8. Listings and Bookings",bookingInfo_p1:"WHEN RENDERING OUR SERVICES VIA THE PLATFORM| THE INFORMATION THAT WE DISCLOSE IS BASED ON THE INFORMATION PROVIDED TO US BY MARINAS AND OTHER BOATERS. ALTHOUGH WE WILL USE REASONABLE SKILL AND CARE IN PERFORMING OUR SERVICES| WE CANNOT GUARANTEE THAT ALL INFORMATION IS ACCURATE| COMPLETE OR CORRECT| NOR CAN WE BE HELD RESPONSIBLE FOR ANY ERRORS| ANY INTERRUPTIONS| INACCURATE| MISLEADING OR UNTRUE INFORMATION OR NON-DELIVERY OF INFORMATION. EACH MARINA AND BOATER REMAINS RESPONSIBLE AT ALL TIMES FOR THE ACCURACY| COMPLETENESS AND CORRECTNESS OF THE INFORMATION (INCLUDING THE RATES/FEES/PRICES| REGULATIONS & TAXES| POLICIES & CONDITIONS AND AVAILABILITY) DISPLAYED ON OUR PLATFORM.",bookingInfo_p2:"When creating a Listing through Platform you must (i) provide complete and accurate information about your Marina Berth Services (such as listing description| location| and calendar availability)| (ii) disclose any deficiencies| restrictions (such as Marina rules) and (iii) provide any other pertinent information requested by the Platform. You are responsible for keeping your Listing information (including calendar availability) up to date at all times. Pictures| animations or videos used in your Listings must accurately reflect the quality and condition of your Marina Berth Services. Any terms and conditions included in your Listing| in particular in relation to cancellations| must not conflict with these Terms.",bookingInfo_p3:"You are solely responsible for accepting bookings for Marinas which are equipped and maintained| up to date with any technical testing| with safety equipment in keeping with its sailing category| up-to-date equipment and regular maintenance.",bookingInfo_p4:"You are solely responsible for setting a price (including any taxes if applicable) for your Listing. Once a Boater requests a booking of your Listing| you may not request that the Boater pays a higher price than in the booking request.",bookingInfo_p5:"You are responsible to respond to Boaters requests concerning the Marina Berth Services in a timely manner.",bookingInfo_p6:'By accepting a booking through the Platform| you enter into a direct (legally binding) contractual relationship with Boater ("Marina Berth Services Agreement"). From the point at which you accept a reservation| we act solely as an intermediary between you and the Boater| transmitting the relevant details of the reservation to you and sending the Boater a confirmation email for and on your behalf. You must verify the identity of the Boater before signing a Marina Berth Services Agreement with a Boater. Furthermore| you must verify that the Boater holds the certification and/or qualifications specified which are required for sailing on the Marina| if needed.',bookingInfo_p7:"You are responsible to prepare and sign a Marina Berth Services Agreement with the Boater including a full inventory on arrival| on the check-in day. You must sign an inventory of the Marina on departure| with the Boater| on the last day of the Marina Berth Services or on the date of return of the Marina in case of delay.",bookingInfo_p8:"You agree not to divert and/or solicit Boaters of the Platform and not to conclude the Marina Berth Services Agreement directly with them| outside of bookings made via the Platform.",bookingInfo_p9:"YOU MUST HAVE DECLARED AND/OR REGISTERED YOUR MARINA| IF REQUIRED| WITH THE COMPETENT AUTHORITIES. MARINAS ARE ALONE RESPONSIBLE FOR IDENTIFYING AND OBTAINING ANY REQUIRED LICENSES| PERMITS| OR REGISTRATIONS FOR ANY MARINA BERTH SERVICES THEY OFFER ON THE PLATFORM.",feesHeader:"9. Service Fees",feesInfo_p1:"By using the Platform as a Marina| you are appointing Pick A Pier as your payment agent in connection with transactions carried out through the Platform. Marinas agree to all payment terms and fees described in these Terms. Marinas agree to pay Pick A Pier\u2019s applicable service fee for all bookings processed through the Platform.",feesInfo_p2:'Payment processing services for Marinas on the Platform are provided by Stripe| Inc. ("Stripe") and are subject to Stripe\u2019s Terms of Service.',feesInfo_p3:"Marinas shall follow all federal| state and local laws| rules and regulations concerning their business| as required in the jurisdiction where they are physically located or where they directly or indirectly conduct business. Pick A Pier takes no part in and bears no responsibility for any portion of the transaction between you and the Boater other than facilitating payment.",feesInfo_p4:"As a Marina| you are solely responsible for properly reporting taxable income made in connection with any reservations initiated through the Platform. You agree that we will have no liability relating to your failure to report any taxable income made in connection with any reservations initiated through the Platform or to pay taxes on that income. You further agree to indemnify us against liability to any third party| including any state or local taxation authority| arising out of your failure to report any taxable income made in connection with any reservations initiated through the Platform or to pay taxes on that income.",cancellationHeader:"10. Cancellation Policies",cancellationInfo_p1:"Pick A Pier understands that your circumstances may change between the time of a booking through the Platform and the use of a confirmed reservation. You are required to have a cancellation policy specific to your facility and the Boaters who make reservations with you through our Platform.",cancellationInfo_p2:"Marinas are required to honor all reservations made by Boaters through our Platform or any other reservation that originates as a result of the Platform. If a Marina cancels a confirmed booking| the Boater will receive a full refund of the total fees for such booking. In such an event| we will work with best efforts to process the refund within seventy-two (72) hours of the cancellation. In some extenuating circumstances refunds may take longer.",cancellationInfo_p3:"Marinas are required to honor all reservations made by Boaters through our Platform or any other reservation that originates as a result of the Platform. If a Marina cancels a confirmed booking| the Boater will receive a full refund of the total fees for such booking. In such an event| we will work with best efforts to process the refund within seventy-two (72) hours of the cancellation. In some extenuating circumstances refunds may take longer.",updatesHeader:"11. Updates| Suspension and Termination of the Platform",updatesInfo_p1:"Pick A Pier reserves the right| in its sole discretion| to make necessary unscheduled changes| updates or enhancements to the Platform at any time. We may also add| remove or alter functionalities or features of the Platform from time to time.",updatesInfo_p2:"Pick A Pier reserves the right| in its sole discretion| to make necessary unscheduled changes| updates or enhancements to the Platform at any time. We may also add| remove or alter functionalities or features of the Platform from time to time.",updatesInfo_p3:"You may at any time voluntarily delete your Account but be advised that it may prevent your access to your Account and may cause a loss of certain information including| without limitation| the User Content.",integrationsHeader:"12. Third Party Interactions",integrationsInfo_p1:"The services on the Platform may be rendered through or integrated with third-party platforms that are not owned or controlled by us. We have no control over these third-party interactions and assume no responsibility or liability for the content| privacy policies| performance or practices of any third-party interactions. In addition| we will not and cannot censor or edit the content of any third-party site.",integrationsInfo_p2:"if you use the Platform with any third-party\u2019s platforms or access any third party's website| service| or content from the Platform| you do so at your own risk. By using the Platform| you expressly release Pick A Pier (and its owners| officers| employees| agents| affiliates| or licensors) from any and all liability arising from your use of any third-party interaction including without limitation third party\u2019s website| information| materials| products| or services. Accordingly| we encourage you to be cautious and to read the terms and conditions and privacy policy of each third-party interaction that you use.",integrationsInfo_p3:"You further agree that you are solely responsible for compliance with third-party policies and terms in connection with your use of the Platform and acknowledge that Pick A Pier will not be held responsible for your non-compliance with such third-party policies and terms.",warrantiesHeader:"13. No Warranties",warrantiesInfo_p1:'TO THE FULLEST EXTENT LEGALLY PERMISSIBLE| THE PLATFORM IS RENDERED TO YOU "AS-IS" AND "WITH ALL FAULTS AND ERRORS". EXCEPT FOR ANY EXPRESS WARRANTY THAT IS SPECIFIED IN THESE TERMS| PICK A PIER MAKES NO \u2013 AND DISCLAIMS ALL \u2013 REPRESENTATIONS OR WARRANTIES OF ANY KIND| WHETHER EXPRESS| IMPLIED| STATUTORY OR OTHERWISE| INCLUDING| WITHOUT LIMITATION| ANY WARRANTY THAT: THE PLATFORM WILL BE ERROR-FREE| MALWARE OR ANY OTHER HARMFUL COMPONENTS| THE PLATFPORM WILL BE AVAILABLE AND FULLY FUNCTION AT ALL TIME| THAT THE DATA YOU PROVIDE WILL BE SECURE OR NOT OTHERWISE LOST OR DAMAGED| OR ANY IMPLIED WARRANTY OF MERCHANTABILITY| SATISFACTORY QUALITY| FITNESS FOR A PARTICULAR PURPOSE| OR NON-INFRINGEMENT| AND ANY WARRANTY ARISING OUT OF ANY COURSE OF PERFORMANCE| COURSE OF DEALING OR USAGE OF TRADE.',warrantiesInfo_p2:"IN ADDITION TO OTHER DISCLAIMERS CONTAINED IN THESE TERMS| WE DO NOT WARRANT (I) THAT THE USE AND OPERATION OF THE PLATFORM IS OR WILL BE SECURE| TIMELY| ACCURATE| COMPLETE| UNINTERRUPTED| WITHOUT ERRORS| OR FREE OF VIRUSES| DEFECTS| WORMS| OTHER HARMFUL COMPONENTS OR OTHER PROGRAM LIMITATIONS| (II) THAT WE WILL CORRECT ANY ERRORS OR DEFECTS IN THE PLATFORM (III) THAT THE APP WILL BE INTEROPERABLE OR COMPATIBLE WITH YOUR MOBILE DEVICE| OTHER SOFTWARE| HARDWARE| OR ANY EQUIPMENT| AND WE ARE NOT RESPONSIBLE FOR ANY LOSSES SUFFERED RESULTING FROM INTEROPERABILITY OR COMPATIBILITY PROBLEMS| AND/OR (IV) MAKE ANY REPRESENTATION REGARDING THE USE| INABILITY TO USE OR OPERATE| OR THE RESULTS OF THE USE OF THE PLATFORM INCLUDING THAT THE RESULTS OF USING THEM WILL MEET YOUR REQUIREMENTS). PICK A PIER HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS WITH REGARD TO THE USE OF THE PLATFORM| INCLUDING BUT NOT LIMITED TO ITS AVAILABILITY| RELIABILITY OR QUALITY| AND IT IS NOT AND SHALL NOT BE RESPONSIBLE FOR ANY ERROR| FAULT OR MISTAKE RELATED TO ANY CONTENT AND INFORMATION DISPLAYED ON IT.",warrantiesInfo_p3:"SOME JURISDICTIONS DO NOT ALLOW THE FOREGOING EXCLUSIONS. IN SUCH AN EVENT| SUCH EXCLUSION WILL NOT APPLY SOLELY TO THE EXTENT PROHIBITED BY APPLICABLE LAW.",limitationHeader:"14. Limitation of Liability",limitationInfo_p1:'TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW| IN NO EVENT WILL PICK A PIER AND ITS OFFICERS| DIRECTORS| EMPLOYEES| AFFILIATES| SUBSIDIARIES| LICENSORS| AGENTS AND SUPPLIERS ("COVERED PARTIES") BE LIABLE FOR ANY PERSONAL INJURY OR ANY INDIRECT| INCIDENTAL| SPECIAL| PUNITIVE OR CONSEQUENTIAL DAMAGES| INCLUDING| WITHOUT LIMITATION| DAMAGES FOR LOST DATA| PROFITS OR REVENUE AND DAMAGES RESULTED OUT OF YOUR PERFORMANCE OF YOUR PROFESSIONAL OBLIGATIONS| MEDICAL NEGLIGENCE OR YOUR FAILING TO FULFILL YOUR OBLIGATIONS UNDER THESE TERMS| CAUSED UNDER ANY THEORY OF LIABILITY| INCLUDING| WITHOUT LIMITATION| CONTRACT| TORT| WARRANTY| NEGLIGENCE OR OTHERWISE| EVEN IF PICK A PIER HAS BEEN ADVISED AS TO THE POSSIBILITY OF SUCH DAMAGES.',limitationInfo_p2:"WITHOUT LIMITING THE GENERALITY OF THE FOREGOING AND TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW| IN NO EVENT SHALL THE AGGREGATE LIABILITY OF PICK A PIER AND ITS COVERED PARTIES| FOR ALL DAMAGES OR LOSSES WHATSOEVER ARISING HEREUNDER OR IN CONNECTION WITH YOUR USE OR INABILITY TO USE THE PLATFORM| EXCEED THE AMOUNT ACTUALLY PAID TO PICK A PIER BY YOU (OR YOUR ORGANIZATION) FOR THE PLATFORM IN THE TWELVE (12) MONTHS IMMEDIATELY PRECEDING THE EVENT GIVING RISE TO THE CLAIM. THE LIMITATIONS AND EXCLUSIONS APPLY REGARDLESS OF WHETHER THIS REMEDY DOES NOT FULLY COMPENSATE YOU FOR ANY LOSSES OR FAILS OF ITS ESSENTIAL PURPOSE.",indemnificationHeader:"15. Indemnification",indemnificationInfo_p1:"You agree to defend| indemnify and hold Pick A Pier and its affiliates| independent contractors and service providers| and each of their respective directors| officers| employees and agents harmless from and against all third-party claims| damages| costs| liabilities and expenses (including| but not limited to| reasonable attorneys\u2019 fees) caused by| arising out of or related to (a) your use of the Platform| (b) your violation of these Terms or any other applicable terms| policies| warnings or instructions provided by Pick A Pier or a third party in relation to the Platform| (c) your violation of any applicable law or any rights of any third party| or (d) any User Content or Feedback you provide.",indemnificationInfo_p2:"You agree to defend| indemnify and hold Pick A Pier and its affiliates| independent contractors and service providers| and each of their respective directors| officers| employees and agents harmless from and against all third-party claims| damages| costs| liabilities and expenses (including| but not limited to| reasonable attorneys\u2019 fees) caused by| arising out of or related to (a) your use of the Platform| (b) your violation of these Terms or any other applicable terms| policies| warnings or instructions provided by Pick A Pier or a third party in relation to the Platform| (c) your violation of any applicable law or any rights of any third party| or (d) any User Content or Feedback you provide.",governingHeader:"16. Governing Law and Jurisdiction",governingInfo:"These Terms shall be governed and construed in accordance with the laws of the State of Israel without giving effect to any conflict or choice of law provisions. You and we consent to the exclusive jurisdiction of the courts of Tel Aviv| Israel for all disputes arising out of or relating to these Terms. Notwithstanding the foregoing| Pick A Pier may seek injunctive relief in any court of competent jurisdiction.",waiverHeader:"17. Waiver & Severability",waiverInfo:"Any failure by Pick A Pier to enforce any right or provision of these Terms will not be considered a waiver of those rights. If any provision of these Terms is held to be invalid| illegal or unenforceable for any reason by a court of competent jurisdiction| the provision shall be modified to the extent necessary to make it enforceable while| to the maximum extent possible| reflecting the intent of the parties| and| in any event| shall not affect the validity of the remaining provisions of these Terms| which shall remain in full force and effect.",assignmentHeader:"18. Assignment",assignmentInfo:"Pick A Pier may assign| transfer or otherwise dispose of our rights and obligations under these Terms| in whole or in part| at any time without notice. You may not assign or transfer any rights to use the Platform without our written permission.",changesHeader:"19. Changes to these Terms",changesInfo_p1:'Pick A Pier reserves the right to revise and update these Terms from time to time in its sole discretion. Please take a look at the "LAST UPDATED" legend at the top of this page to see when these Terms were last revised. Any such revision or modification will become effective immediately upon posting of the revised Terms on our website.',changesInfo_p2:"Your continued use of the Platform following the posting of revised Terms means that you accept and agree to the changes. You are expected to check this page frequently| so you are aware of any changes| as they are binding on you.",contactHeader:"20. Contact",contactInfo:'If you have any questions (or comments) concerning these Terms| you are welcome to send us an email at: office@pickapier.com. and we will make an effort to reply within a reasonable timeframe.',CODE_OF_CONDUCT_ALERT:"To request your card membership, please sign up that you agree to our Code of Conduct.",CODE_OF_CONDUCT_RESPECT_TITLE:"Respect",CODE_OF_CONDUCT_RESPECT_1:"I will anchor only in permitted places",CODE_OF_CONDUCT_RESPECT_2:"I will fish only where and when it is permitted",CODE_OF_CONDUCT_RESPECT_3:"I will not disturb wildlife",CODE_OF_CONDUCT_RESPECT_4:"I will not disturb protected nature areas",CODE_OF_CONDUCT_RESPONSIBILITY_TITLE:"Responsibility",CODE_OF_CONDUCT_RESPONSIBILITY_1:"I will use environmentally friendly products",CODE_OF_CONDUCT_RESPONSIBILITY_2:"I will report violations of environmental regulations to the authorities",CODE_OF_CONDUCT_RESPONSIBILITY_3:"I will notify authorities immediately if I see polluted waters",CODE_OF_CONDUCT_RESPONSIBILITY_4:"I will encourage other boaters to be environmentally friendly",CODE_OF_CONDUCT_WASTE_TITLE:"Waste",CODE_OF_CONDUCT_WASTE_1:"I will keep in mind the Five R\u2019s: Refuse, Reduce, Reuse, Repurpose, Recycle",CODE_OF_CONDUCT_WASTE_2:"I will create as little waste as possible during my sailing journey",CODE_OF_CONDUCT_WASTE_3:"What waste I do create I will dispose of correctly, recycling whenever possible",CODE_OF_CONDUCT_WASTE_4:"I will never dump waste into the ocean",CODE_OF_CONDUCT_CHECKBOX_LABEL:"I agree to the Code of Conduct",EXPIRED_NO_MARINA_RESPONSE:"Canceled",EXPIRED_NO_BOATER_RESPONSE:"Canceled",MARINA_PAGE_CASHBACK_BANNER:"This marina provides cashback",MAIN_PAGE_CASHBACK_BANNER_TITLE:"Earn money for your next trip!",MAIN_PAGE_CASHBACK_BANNER_BODY:"Every reservation paid with Pick a Pier earns you money for your next trip",MAIN_PAGE_CASHBACK_BANNER_CTA:"Learn more",POST_RESERVATION_POPUP_STEP1_TITLE:"You\u2019ve Just Earned {{cashback_sum_with_currency}}",POST_RESERVATION_POPUP_STEP1_BODY:"Every payment you make in Pick a Pier earns you a little something for your future use",POST_RESERVATION_POPUP_STEP1_CTA:"Thanks!",POST_RESERVATION_POPUP_STEP2_TITLE:"Let Your Home Marina Know",POST_RESERVATION_POPUP_STEP2_BODY:"By letting your home marina know in advance of your planned vacancy, you\u2019re helping your fellow boaters find a berthing spot for their upcoming trips (and making sure you marina knows when you\u2019ll return to guarantee your regular spot is waiting for you)",POST_RESERVATION_POPUP_STEP2_CTA_MAIN:"Let\u2019s do it",POST_RESERVATION_POPUP_STEP2_CTA_SECONDARY:"Maybe later",POST_RESERVATION_POPUP_STEP2_HIGH_DEMAND_TITLE:"Want To Earn Another \u20ac5?",POST_RESERVATION_POPUP_STEP2_HIGH_DEMAND_BODY:"Let your home marina know in advance of your planned vacancy, to help your fellow boaters find a berthing spot for their upcoming trips (and to make sure you marina knows when you\u2019ll return to guarantee your regular spot is waiting for you)",POST_RESERVATION_POPUP_STEP2_HIGH_DEMAND_CTA_MAIN:"Let\u2019s do it",POST_RESERVATION_POPUP_STEP2_HIGH_DEMAND_CTA_SECONDARY:"Maybe later",PAP_BALANCE_USE_IN_RESERVATION:"Use my balance",PAP_BALANCE_RESERVATION_CASHBACK:"You will receive {{amount_with_currency}} upon completing this reservations. How to use",PAP_BALANCE_RESERVATION_CASHBACK_HOW_TO_USE:"You can use your balance only after reserving and staying for 3 nights",ABSENCE_REPORT_SUCCESS_POPUP_HIGH_DEMAND_TITLE:"You\u2019ve Just Earned \u20ac5",ABSENCE_REPORT_SUCCESS_POPUP_HIGH_DEMAND_BODY:'Thanks for letting your marina know in advance about your future vacancy. Here\u2019s a little something from us, as a way to say "thanks" in the name of your fellow boaters',ABSENCE_REPORT_SUCCESS_POPUP_HIGH_DEMAND_CTA:"See your balance",WALLLET_SECTION_NAME:"Earnings",WALLET_MY_BALANCE:"My balance",WALLET_STATUS:"Reserve and stay for 3 nights to unlock your balance",WALLET_TOTAL_EARNED:"Total earnings",WALLET_HISTORY:"History",WALLET_UPCOMING:"Upcoming",WALLET_RESERVATION:"Reservation",WALLET_ABSENCE:"Vacancy",WALLET_UPCOMING_PENDING:"Pending",TE40_ABSENCE_INQUIRY_SUBJECT:'{{marina_name}} noticed your vessel "{{vessel_name}}" isn\'t in its berth',TE40_ABSENCE_INQUIRY_HEADER:"Out on the sea?",TE40_ABSENCE_INQUIRY_MESSAGE:'Hi {{boater_first_name}},

Your friends at {{marina_name}} noticed your boat "{{vessel_name}}" isn\'t in its berth. We encourage boaters to always let their marinas know about their upcoming trips in advance using our "Planned Vacancies" feature - it helps the marina to plan ahead, it helps your fellow boaters boom in advance with your marina, and it guarantees you\'ll get your berth back upon return.

To let your marina know when you\'re planning to return, click on the "Create a Planned Vacancy" button below.
If neither you nor any of your partners didn\'t take out you boat - we suggest you contact your marina immediately.',TE40_ABSENCE_INQUIRY_BUTTON:"Create a Planned Vacancy",START_DATE:"Start Date",END_DATE:"End Date",CSV_UPLOAD:"Import from CSV",UPLOAD_POPUP_HEADER:"Upload customers data",DOWNLOAD_TEMPLATE_TEXT:"Download a template and update your customers easily",DOWNLOAD_TEMPLATE_CTA:"Download template",UPLOAD_EXISTING_FILE_CTA:"Upload your own CSV",UPLOAD_EXISTING_FILE_TEXT:"Upload your existing customers file, we'll guide you through it",CHOOSE_FILE:"Choose a file from your computer",MATCH_UPLOAD_HEADER:"Matching CSV fields",MATCH_UPLOAD_BODY:"Drag & drop labels to match to correct values",UPLOAD_SUCCESS_HEADER:"Uploading customers",UPLOAD_SUCCESS_BODY:"We are working on your customers upload",UPLOAD_SUCCESS_BODY_UPDATE:"This may take afew minutes, we'll update you when it's done",APPROVE_BUTTON:"OK",MEMBERSHIP_MARKETING_DOWNLOAD_CSV:"Download CSV",TE41_MARKETING1_SUBJECT:"Special Benefit from {{marina_name}}",TE42_MARKETING2_SUBJECT:"Ensure Your Spot is There When You Return from a Sailaway",TE43_MARKETING3_SUBJECT:"Claim Your Benefits - Nights at 50% Off at Marinas Across Europe",ADD_NEW_RESERVATION_CTA:"Add new",ADD_NEW_RESERVATION_DROPDOWN_ABSNCE:"New vacancy",ADD_NEW_RESERVATION_DROPDOWN_RESERVATION:"New reservation",MARINA_RESERVATION_WIDGET_HEADER:"Create a new reservation",MARINA_RESERVATION_WIDGET_ACTION_NEXT:"Next",MARINA_RESERVATION_WIDGET_ACTION_BACK:"Back",MARINA_RESERVATION_WIDGET_OPTIONS_LABEL:"Select visitor identification option",MARINA_RESERVATION_WIDGET_BY_EMAIL:"By email",MARINA_RESERVATION_WIDGET_BY_MEMBERSHIP:"By membership",MARINA_RESERVATION_WIDGET_BY_EMAIL_DESC:"Choose this for visitors who are not members of TransEurope Marinas",MARINA_RESERVATION_WIDGET_BY_MEMBERSHIP_DESC:"Choose this for visitors with TransEurope Membership card only",MARINA_RESERVATION_WIDGET_INPUT_EMAIL_FIELD:"Enter the visitor's email",MARINA_RESERVATION_WIDGET_INPUT_FIELD:"Enter visitor's card number",MARINA_RESERVATION_WIDGET_INVALID_CARD_ERROR:"Card code format should be XXX0000",MARINA_RESERVATION_WIDGET_WRONG_CARD_ERROR:"Card XXX000 not found",MARINA_RESERVATION_WIDGET_WRONG_CUSTOMER_ERROR:"This customer belongs to a resident of the marina",MARINA_RESERVATION_WIDGET_WRONG_EMAIL_ERROR:"Email address not valid",MARINA_RESERVATION_WIDGET_WRONG_CUSTOMER_EMAIL_ERROR:"Customer with this email doesn't have a vessel for the reservation in this marina",MARINA_RESERVATION_RESERVATION_FORM_BOATER_REDEEM_NIGHTS:"The visitor requested to redeem these nights",MARINA_RESERVATION_RESERVATION_FORM_BOATER_NO_REDEEM_NIGHTS:"The visitor requested to not redeem nights in the reservation",MARINA_RESERVATION_RESERVATION_FORM_SEND_EMAIL:"Email you visitor ask for more information",MARINA_RESERVATION_RESERVATION_FORM_BOATER_REDEEM_NIGHT:"The visitor requested to redeem these nights",DOCK_WALKER_MOBILE_SHORTCUT_TITLE:"Add to Home screen",DOCK_WALKER_MOBILE_SHORTCUT_CANCEL:"Cancel",DOCK_WALKER_MOBILE_SHORTCUT_CTA:"Add",DOCK_WALKER_INVENTORY_FEATURE_REQUIRED:"Inventory should be enabled to use dockwalker",MARINA_RESERVATION_WIDGET_SECONDRY_CTA:"Keep editing",MARINA_RESERVATION_WIDGET_PRIMARY_CTA:"Email visitor",MARINA_RESERVATION_CANCELLATION_REASON_FULL:"The marina is already fully booked",MARINA_RESERVATION_CANCELLATION_REASON_FAR:"Reservation is too far in advance",MARINA_RESERVATION_CANCELLATION_REASON_LONG:"Reservation is too long",MARINA_RESERVATION_CANCELLATION_REASON_CUSTOMER:"Customer cancelled",MARINA_RESERVATION_CANCELLATION_REASON_HEADER:"Cancel this reservation?",MARINA_RESERVATION_CANCELLATION_REASON_BOATER_NOTIFIED:"The boater has been notified",MARINA_RESERVATION_CANCELLATION_REASON_TIP_MATCHING:"We can create more space!",MARINA_RESERVATION_CANCELLATION_REASON_TIP_MATCHING_BODY:"Our platform holds advanced capabilities for Berth allocation and matching, So you can utilise your residents' berths when there away accept more happy visitors and increase your revenue",MARINA_RESERVATION_CANCELLATION_REASON_TIP_INVENTORY:"Let\u2019s make things clear:",MARINA_RESERVATION_CANCELLATION_REASON_TIP_INVENTORY_BODY:"efficiently plan ahead and open an ocean of possibilities",MARINA_RESERVATION_CANCELLATION_CTA:"Tell me more",MARINA_RESERVATION_CANCELLATION_OTHER_CTA:"Send to boater",BOATER_RESERVATION_CANCELATION_REASON_MISTAKE:"I did not intend to make this reservation",BOATER_RESERVATION_CANCELATION_REASON_BETTER_DEAL:"I found a better deal",BOATER_RESERVATION_CANCELATION_REASON_CANT_MAKE_IT:"I can't make it on selected dates",BOATER_RESERVATION_CANCELATION_REASON_CANT_NO_RESPONSE:"The marina did not respond in time",BOATER_RESERVATION_CANCELATION_REASON_CANCEL:"My vacation was cancelled",MARINA_RESERVATION_WIDGET_DATES_LABEL:"Dates",MARINA_RESERVATION_WIDGET_MEMBERSHIP_LABEL:"Membership",MARINA_RESERVATION_WIDGET_SIZE_LABEL:"Size (m)",MARINA_RESERVATION_WIDGET_LOA_ADORNMENT:"L.O.A",MARINA_RESERVATION_WIDGET_BEAM_ADORNMENT:"Beam",MARINA_RESERVATION_WIDGET_DRAFT_ADORNMENT:"Draft",MARINA_RESERVATION_WIDGET_TYPE_LABEL:"Type",MARINA_RESERVATION_WIDGET_ADD_MEMBER:"TEM member",MARINA_RESERVATION_WIDGET_NO_MEMBER:"No membership",MARINA_RESERVATION_WIDGET_START_DATE:"Arrival date",MARINA_RESERVATION_WIDGET_END_DATE:"Departure date",MARINA_RESERVATION_WIDGET_ACTION_CONTINUE:"Continue editing",MARINA_RESERVATION_WIDGET_ACTION_EMAIL:"Email visitor",RESERVATION_BERTHING_TITLE:"Berthing",RESERVATION_GENERAL_TITLE:"General",RESERVATION_PRICING_TITLE:"Pricing",MARINA_RESERVATION_WIDGET_ADD_EMAIL:"Add your visitors e-mail so you easily communicate and ask for more information",MARINA_RESERVATION_FORM_EMAIL_CTA:"Email customer",MARINA_RESERVATION_FORM_EMAIL_DROPDOWN:"Complete reservation",new_absence_report_popup_title:"New Vacancy Created",new_absence_report_popup_residentName:"Resident name",new_absence_report_popup_vesselName:"Vessel name",new_absence_report_popup_createReport:"Create Report",new_absence_report_popup_search_vessel:"Search vessel",new_absence_report_no_vessels_found:"No results found",BERTHS_FILTER_ALL:"All berths",RESERVATION_PAYMENT_PENDING_INDICATION:"Waiting for payment",RESERVATION_PAYMENT_APPROVED_INDICATION:"Payment approved",RESERVATION_SETTINGS_VESSEL_SIZE:"Boat size",RESERVATION_SETTINGS_VESSEL_SIZE_All:"Accept all Boat sizes (up to a maximum of LOA={{loa}}m, Beam={{beam}}m, Draft={{draft}}m)",RESERVATION_SETTINGS_VESSEL_SIZE_LIMIT:"Set maximum acceptable boat size",RESERVATION_SETTINGS_LENGTH:"Reservation length",RESERVATION_SETTINGS_LENGTH_ALL:"Accept all reservations lengths",RESERVATION_SETTINGS_LENGTH_LIMIT:"Set maximum acceptable reservation length (nights)",RESERVATION_SETTINGS_DAYSAHEAD:"Reservation days in advance",RESERVATION_SETTINGS_DAYSAHEAD_ALL:"Accept all future reservations",RESERVATION_SETTINGS_DAYSAHEAD_LIMIT:"Set maximum acceptable days in advance for making a reservation",MAXIMUM_DAYS:"Maximum days",MAXIMUM_NIGHTS:"Maximum nights",MAXIMUM_SIZE:"Maximum size",ADD_TO_WAITING_LIST:"Add to waiting list",WAITING_LIST_TAB:"Waiting List",WAITING_LIST_MATCH_FOUND_HIGHLIGHT_HEADER:"We have a match!",WAITING_LIST_MATCH_FOUND_HIGHLIGHT_BODY:"A reservation from your waiting list can now be confirmed.",WAITING_LIST_MATCH_FOUND_HIGHLIGHT_CTA:"Show me",RESERVATION_SETTINGS_LOA:"L.O.A",RESERVATION_SETTINGS_BEAM:"Beam",RESERVATION_SETTINGS_DRAFT:"Draft",MARINA_SETTINGS_RESERVATION_DAYS_IN_ADVANCE_ERROR:"Maximum days in advance is 999",MARINA_SETTINGS_RESERVATION_LENGTH_MAX_ERROR:"Maximum reservation length is 999",RESERVATION_APPROVAL_SETTINGS_EMAIL:"Customize approval email text:",RESERVATION_APPROVAL_SETTINGS_DOCUMENTS:"Select documents to attach to approval email:",RESERVATION_APPROVAL_SETTINGS_TIMING:"Set approval email timing:",RESERVATION_APPROVAL_SETTINGS_TIMING_OPTION_IMMEDIATE:"Upon approval",RESERVATION_APPROVAL_SETTINGS_TIMING_OPTION_DAY:"A day before arrival",RESERVATION_APPROVAL_SETTINGS_TIMING_OPTION_SAME_DAY:"The day of arrival",reservation_addToWaitingListDialogTitle:"Add to Waiting List?",reservation_addToWaitingListDialogDesc:"Click OK to add the reservation to Waiting List",reservation_addToWaitingListDialogConfirm:"Ok",RESERVATIONS_TAB:"Reservations",reservations_noWaiting:"There are no reservations in waiting list",reservations_noReservations:"There are no reservations yet",RESERVATION_STATUS_FILTER_APPROVED:"Approved",RESERVATION_STATUS_FILTER_WAITING_ALOCATION:"Wating allocation",RESERVATION_STATUS_FILTER_PENDING:"Pending",RESERVATION_STATUS_FILTER_CANCELLED:"Cancelled",RESERVATION_STATUS_FILTER_EXPIRED:"Expired",RESERVATION_STATUS_FILTER_CLOSED:"Closed",RESERVATION_STATUS_FILTER_ALL:"Select all",RESERVATION_DATE_FILTER_ALL:"All dates",RESERVATION_DATE_FILTER_TODAY:"Today",RESERVATION_DATE_FILTER_TOMORROW:"Tomorrow",RESERVATION_DATE_FILTER_NEXT_3_DAYS:"Next 3 days",RESERVATION_DATE_FILTER_NEXT_7_DAYS:"Next 7 days",RESERVATION_DATE_FILTER_NEXT_WEEK:"Next week",RESERVATION_DATE_FILTER_NEXT_CUSTOM:"Custom",reservationsSettingsBack:"Back to marina settings",reservationsGeneralSettingsTab:"General settings",reservationsApprovalKitTab:"Approval kit",reservationsGeneralSettingsHeadline:"General settings",reservationsApprovalKitHeadline:"Approval kit",reservationsApprovalKitUploadButton:"Upload document",reservationsApprovalKitNoDocuments:"No documents uploaded, approval email will not be sent.",reservationsApprovalKitOneDocument:"1 document",reservationsApprovalKitDocuments:"{{amount}} documents",PRICING_SURCHARGES:"CUSTOM SURCHARGES",pricingSurchargesAddSurcharge:"Add Surcharge",pricingSurchargeNameError:"Surcharge name is required",pricingSurchargeValueError:"Surcharge value is required",surcharge_name:"Surcharge name",surcharge_value:"Surcharge value",surcharge_clac:"Charge by",SURCHARGE_CALCULATION_PER_NIGHT:"Per night",SURCHARGE_CALCULATION_PER_NIGHT_PER_METER:"Per night per meter",SURCHARGE_CALCULATION_TOTAL:"Total",error_creating_or_updating_membership:"Error on creating or updating membership",error_editing_user:"Error on editing a user",error_deleting_user:"Error on deleting a user",error_adding_new_contact:"Error on adding a new contact",error_updating_absence_report:"Error on updating a vacancy",error_adding_new_absence_report:"Error on adding a new vacancy",error_adding_new_boater:"Error on adding a new boater",error_adding_or_updating_berth:"Error on adding or updating a berth",error_creating_or_updating_pier:"Error on creating or updating a pier",error_creating_resident:"Error on creating a resident",notifications_EmptyState:"There are no notifications",notifications_header:"Notifications",EXPORT_REPORT:"Export",RESERVATION_REPORT_MULTIPLE_FILTERING:"multipule filters",NEW_RESERVATIONS:"New reservations",WAITING_LIST:"Waiting list",APPROVED:"Approved, pending payment",BOOKED:"Booked",CREATE_NEW:"Create a reservation",RESERVATIONS_HISTORY:"Reservation history",RESERVATION_CARD_ARRIVING:"Arriving",RESERVATION_CARD_DURATION:"Duration",RESERVATION_CARD_SET_PRICE:"Set price",reservation_customSurcharges:"Custom
Surcharges",reservation_totalCustomSurcharges:"Total custom surcharges",filter_all_statuses:"All statuses",navigation_history:"History",PRICING_COVER_ALL_YEAR:"Yearly pricing scheme",reservation_dates_required:"Dates are required",reservation_price_suggestion:"Reservation Price Suggestion",reservation_price_use_suggested:"Use suggested","ARRIVALS_DEPARTURES_ARRIVAL CONFIRMED_POPUP":"Arrival confirmed",RESERVATION_PAYMENT_REQUEST_INDICATION:"Secured Online payment request",RESERVATION_PAYMENT_CANCELLED_INDICATION:"Resevation cancelled",MEMBERSHIPS_POPEYE_CODE_GENERATOR:"Generate a registration referral code and give it to your berth holders",MEMBERSHIPS_POPEYE_CODE_GENERATOR_CTA:"Generate code",MEMBERSHIPS_POPEYE_CODE_GENERATOR_COPY:"Copy code",MEMBERSHIPS_POPEYE_CANCEL_CTA:"Cancel",MEMBERSHIPS_POPEYE_DONE_CTA:"Done",MEMBERSHIPS_POPEYE_MAIL_DESCRIPTION:"Enter your berth-holder's email address and we'll send them an invite. You can copy-paste multiple emails",MEMBERSHIPS_POPEYE_MAIL_ADDRESS:"Place email addresses here",MEMBERSHIPS_POPEYE_INVITE_REPORT_DONE:"Done",MEMBERSHIPS_POPEYE_INVITE_REPORT_DOWNLOAD:"Download error report",MEMBERSHIPS_POPEYE_INVITE_REPORT_TOTAL_ERRORS:"Total errors",MEMBERSHIPS_POPEYE_INVITE_REPORT_TOTAL_SUCCESS:"Total invites sent",MEMBERSHIPS_POPEYE_INVITE_REPORT_TITLE:"Invite status report",MEMBERSHIPS_POPEYE_INVITE_SCREEN_COUNTER:"{{number_of_emails}} emails added",MEMBERSHIPS_POPEYE_HEADER:"Invite berth holders to enjoy their benefits",MEMBERSHIPS_POPEYE_INVITE_SCREEN_INVITE:"Invite",MEMBERSHIPS_POPEYE_INVITE_SCREEN_CANCEL:"Cancel",MEMBERSHIPS_POPEYE_TOTAL_INVITES:"You invited {{total_invited_emails}} members",MEMBERSHIPS_POPEYE_CTA:"Invite berth holders",MEMBERSHIPS_POPEYE_CTA_SECONDERY:"Or generate a code",MEMBERSHIPS_POPEYE_INVITE_REPORT_CSV_NAME:"Invite error report",INVALID_EMAIL_ADDRESS_ERROR:"Invalid Email address, please check the address format",EMAIL_EXIST_ERROR:"Email address is already connected to a membership. please change address",DUPLICATE_EMAIL_ADDRESS_ERROR:"Duplicate Email address, please remove duplications",MEMBERSHIPS_AWARDED_MEMBERS_PERCENT:"Members awarded",MEMBERHSIPS_TEM_SECTION_VIEW_LIST_CTA:"View list",MEMBERHSIPS_TEM_SECTION_INVITE_CTA:"Invite",MEMBERHSIPS_TEM_SECTION_INFO_TITLE:"Members info",MEMBERHSIPS_TEM_SECTION_PAPER_CARD_LABEL:"Using paper card?",MEMBERHSIPS_TEM_SECTION_PAPER_CARD_CTA:"Enter card",SEARCH_VACANCY:"Search vacancy by boat or customer name",MEMBERSHIPS_INVITED_MEMBERS_NUMBER:"You invited {{members_amount}} members",MEMBERHSIPS_TEM_SECTION_TITLE:"TransEurope Marinas",ARRIVALS_DEPARTURES_ARRIVAL_CONFIRMED_POPUP:"Arrival confirmed",RESERVATION_PAYMENT_REIMBURSHED_INDICATION:"Payment cancelled",EDIT_MEMBERS:"Edit members",ASSIGN_BERTH:"Assign berth",AVAILABLE_BERTHS:"Available berths",EDIT_BERTH_ASSIGNED:"Edit assigned berth",BEST_MATCHS:"Best match",FILTER_ALL_STATUSES:"All statuses",RESERVATION_DATE_FILTER_WEEK:"Next week",RESERVATION_DATE_FILTER_CUSTOM:"Custom",MEMBERSHIPS_POPEYE_STATUS:"Status",MEMBERSHIPS_POPEYE_CANCELL:"Cancel",MEMBERSHIPS_POPEYE_CODE_GENERATOR_TEMPLATE:"Click here to use our email template",INSERT_CODE:"I have a code",INSERT_CODE_ERROR:"We could not match that code, please try again",CREATE_VACANCY:"Create vacancy",BOAT_NAME:"Boat name",BOAT_INFO:"Boat info",VACANCY_TODAY:"Today",NEW_VACANCY:"Create vacancy",DUPLICATE_VACANCY_ERROR:"This vessel already has a planned vacancy on these dates. Please edit the exisiting vacancy report.",reservation_sendToCustomer_CTA:"Respond",reservation_Approve:"Approve",MEMBERHSIPS_TEM_TOTAL_INIVTES:"You created {{members_amount}} members",NEW_VACANCY_SEARCH_BOAT_PLACEHOLDER:"Select resident boat",vesselBeam:"Beam",vesselDraft:"Draft",VACANCIES_EXPORT_REPORT_FILE_NAME:"Vacancies",vesselAddNew:"+Add new",NEW_VACANCY_NOTIFICATION:"New vacancy from {{boat_name}}",UPDATED_VACANCY_NOTIFICATION:"Updated vacancy from {{boat_name}}",DELETED_VACANCY_NOTIFICATION:"Cancelled vacancy from {{boat_name}}",NEW_BOAT_DIALOG_TITLE:"New boat",NEW_BOAT_DIALOG_CANCEL:"Cancel",NEW_BOAT_DIALOG_CTA:"Add boat",BOATER_EXISTS_ERROR:"You can not add a new vessel to existing boaters. Existing vessel : {{boat_name}}",VACANCY_REPORT_TITLE:"Vacancy Report",VACANCY_REPORT_VACANCY_DATES:"Vacancy Dates",NotificationHeaderResidencyRequest:"Verify berth holder",HMVRequestMessage:"Approve this request? future vacancy reports for {{boat_name}} will be sent to you",marinaRequestDecline:"No, decline",marinaRequestApprove:"Yes",VACANCY_OVERLAPPING_ERROR_TITLE:"Vacancy is not created",VACANCY_OVERLAPPING_ERROR_DESC:"There is already vacancy spreading on that time slot with the same vessel and home marina",dashboard_Croacia:"Croatia",DESKTOP_DOCKWALKER_VIEW_SIDEMENU_CTA:"Berth view",DESKTOP_DOCKWALKER_VIEW_SEARCH_PLACEHOLDER:"Search berth or boat name",SELECT_DATE_TIME_PLACEHOLDER:"Select date and time",FILTER_ALL:"All",FILTER_OCCUPIED:"Occupied",FILTER_VACANT:"Vacant",DESKTOP_DOCKWALKER_VIEW_PIER_SELECTOR:"Jump to pier",DESKTOP_DOCKWALKER_VIEW_EXPORT:"Export CSV",DESKTOP_DOCKWALKER_VIEW_DATEPICKER_PLACEHOLDER:"Select previous dockwalk report",DESKTOP_DOCKWALKER_VIEW_SELCT_REPORT:"select report",NO_BOAT_EMAIL_POP_UP_HEADLINE:"A new boat was added!",NO_BOAT_EMAIL_POP_UP_BODY:"{{boat_name}} was added without email address, update the info and add an email address so you can communicate with the boater.",NO_BOAT_EMAIL_POP_UP_CTA:"Update info",DOCK_WALKER_VIEW:"Dock walker view",SELECT_DATE:"Select date",SELECT_TIME:"Select time",MISSING_EMAIL_BANNER:"{{boat_name}} is missing email address",ADD_EMAIL:"Add email",DESKTOP_BOATER_MAIL_PLACEHOLDER:"Enter boater email",DESKTOP_BEAM:"Beam",DESKTOP_DRAFT:"Draft",DESKTOP_METERS:"Meters",START_NEW_WALK:"Start a new walk",SAVE_WALK:"Save walk",DOCK_WALKER_MOBILE_FILTER_BY:"Filter by",COMPLETE_WHOLE_PIER:"Mark Complete",SEARCH_PLACE_HOLDER:"Search berth or boat name",DOCKWALKER_BERTH_STATUS:"Change mooring boat",VACANT_BERTH:"No boat",BERTH_ADD_NEW_BOAT:"Add a new boat",BERTH_VISITOR:"Visitor",BERTH_RESIDENT:"Berth holder",DOCK_WALKER_VACANCY_REQUEST_POPUP_TITLE:"Request for vacancy",DOCK_WALKER_VACANCY_REQUEST_POPUP_DESCRIPTION:"You are replacing a resident boat. Do you want to request for vacancy?",INQUIRE_FOR_VACANCY_CTA:"Inquire for vacancy",DOCK_WALKER_VACANCY_REQUEST_POPUP_SECONDARY_CTA:"No",DOCK_WALKER_VACANCY_REQUEST_SENT_POPUP_TITLE:"Request sent to",DOCK_WALKER_VACANCY_REQUEST_SENT_POPUP_MAIN_CTA:"Done",DOCK_WALKER_DISCARD_POPUP_TITLE:"Start a new walk?",DOCK_WALKER_DISCARD_POPUP_DESCRIPTION:"If you start a new walk all check berth statuses will be re-set",DOCK_WALKER_DISCARD_POPUP_MAIN_CTA:"Yes, start the new walk",DOCK_WALKER_DISCARD_POPUP_SECONDARY_CTA:"No, continue the current one",DOCK_WALKER_CLEAR_SEARCH:"Clear",DOCK_WALKER_REQUEST_SENT:"Requested vacancy",DOCK_WALKER_BERTH_INFO_TITLE:"Berth info",NOTE:"Note",BOAT_PHOTO:"Add photo",DOCK_WALKER_SAVE_CTA:"Vacancy request",DOCK_WALKER_VACANCY_REQUEST:"Vacancy request",DOCK_WALKER_VACANCY_REQUEST_SENT_ON:"Sent on {{date}}",DOCK_WALKER_BERTH_PHOTO:"Berth photo",DELETE_NO_BOAT_EMAIL_POP_UP_HEADLINE:"Vacant berth?",DELETE_NO_BOAT_EMAIL_POP_UP_BODY:"{{boat_name}} was added without email address,you can add an Email now or delete this boat you can add an Email now or delete this boat",DELETE_NO_BOAT_EMAIL_POP_UP_CTA:"Add Email",DELETE_NO_BOAT_EMAIL_POP_UP_SECONDRY_CTA:"Delete {{boat_name}}",FAST_OPTIONS:"Quick actions",BERTH_BERTH_HOLDER:"Berth holder",SELECT_OPTION:"Select",CANCEL_UPDATE:"Cancel",BOAT_OUT:"The boat is out","DESKTOP_DOCKWALKER_VIEW_SEARCH PLACEHOLDER":"Search berth or boat name",DESKTOP_LOA:"LOA",ADD_NEW_BOAT_EMAIL_EXIST_POPUP_HEADER:"{{boater_email}} already exists",ADD_NEW_BOAT_EMAIL_EXIST_POPUP_BODY:"Do you want to use his existing boat {{boat_name}} or add a new one?",ADD_NEW_BOAT_EMAIL_EXIST_POPUP_CTA:"Use existing",ADD_NEW_BOAT_EMAIL_EXIST_POPUP_SECONDRY_CTA:"Add new boat",SIDE_MENU_DOCKWALKER:"Dock-walker",SIDE_MENU_MARINAAPP:"Back to main screen",FRESH_WATER:"Fresh Water",ELECTRICITY:"Electricity",FUEL:"Fuel",GAS:"Gas",RESTROOMS:"Restrooms",SHOWERS:"Showers",LAUNDRY:"Laundry",LAUNDRETTE:"Laundrette",RESTAURANT:"Restaurant",BOAT_LIFT:"Boat Lift",WORKSHOP:"Workshop",SEWAGE_PUMP_OUT:"Sewage Pump Out",ACCESS_24_HOURS:"24-hour Access",WIFI:"Wi-Fi",SEWEGE_PUMP_OUT:"Sewage pump out",TOILETS:"Toilets",SUPERMARKET:"Supermarket",CHILDREN_FRIENDLY:"Children friendly",POOL:"Swimming Pool",PHARMACY:"Pharmacy",HOTEL:"Hotel",SPORT_ACTIVITIES:"Sport & recreational activities",SECURITY:"Security cameras",ZOO:"Zoo",ATM:"ATM machine",reservation_nights_count:"{{nights}} nights",customer_info:"Customer info",DELETE_USER:"Delete user",DELETE_USER_CONFIRMATION_MESSAGE:"Are you sure you want to delete {{email}} ?",RESERVATION_DATES_CHANGED_BY_BOATER_FROM:"Changed from {{date}}.",RESERVATION_FORM_OTHER_AVAILABILITIES_BUTTON:"Suggest availability",RESERVATION_FORM_OTHER_AVAILABILITIES_ERROR:"No availability for these dates",RESERVATION_FORM_OTHER_AVAILABILITIES_HEADER:"Can't accommodate this reservation?",RESERVATION_FORM_OTHER_AVAILABILITIES_BODY:"Suggest other availabilities",RESERVATION_FORM_OTHER_AVAILABILITIES_CTA:"Send to boater",RESERVATION_FORM_OTHER_AVAILABILITIES_SUGGESTION:"Suggestion {{index}}",RESERVATION_FORM_OTHER_AVAILABILITIES_ADD_DATE:"+ Add date",RESERVATION_FORM_OTHER_AVAILABILITIES_EDIT_BUTTON:"Edit availabilities",new_boaters_table_boater_full_name:"Boater full name",new_boaters_table_boater_email_address:"Boater email address",new_boaters_table_boater_popeye_status:"Popeye status",new_boaters_table_boater_tem_number:"TEM number",results:"Results: {{result}}",MEMBERS_TYPES_POPEYE_VALUE:"Popeye",MEMBERS_TYPES_TEM_VALUE:"TEM",MEMBERS_TYPES_NON_VALUE:"Non",MEMBERS_TYPES_POPEYE:"Popeye members",MEMBERS_TYPES_TEM:"TEM members",MEMBERS_TYPES_NONE:"Non members",MEMBERS_TYPES_SIGNED_UP:"Signed up",ARE_YOU_SURE:"Are you sure?",ARE_YOU_SURE_YOU_WANT_TO_REMOVE_IMAGE:"You are about to remove image {{index}}, are you sure?",ARE_YOU_SURE_YOU_WANT_TO_DISCARD_CHANGES:"Are you sure you want to discard the changes?",CLOSE_POPUP_TITLE:"Leave page?",CLOSE_POPUP_BODY:"Changes you made will not be saved.",CLOSE_POPUP_CONFIRM:"Leave",CLOSE_POPUP_CANCEL:"Stay on page",reservationsInstantBookingTab:"Instant booking",INSTANT_BOOKING_SETTINGS:"Instant booking settings",INSTANT_BOOKING_REQUIREMENTS_TITLE:"Requirements from boaters during booking",INSTANT_BOOKING_REQUIREMENTS:"Requirements for availability check and pricing (Shown to boater on 1st step of the instant booking flow)",INSTANT_BOOKING_ADDITIONAL_REQUIREMENTS:"Addtional requirements for instant booking (shown to boaters before completing the reservation)",PRIVATE_OR_COMMERCIAL:"Private / Commercial",BOAT_USAGE:"Boat usage",PRIVATE:"Private",COMMERCIAL:"Commercial",INSTANT_BOOKING_LIMITIONS_TITLE:"Booking limitations for Instant Booking",INSTANT_BOOKING_LIMITIONS_DESCRIPTION:"The following limitions are defined in General Booking settings and apply also for Instant Booking reservations:",INSTANT_BOOKING_BOAT_SIZE_LIMIT:"- Boat size (LOA={{length}}m, Beam={{beam}}m, Draft={{draft}}m)",INSTANT_BOOKING_UNLIMITED_BOAT_SIZE_LIMIT:"- Accept all Boat sizes (up to a maximum of LOA=250m, Beam=40m, Draft=20m)",INSTANT_BOOKING_UNLIMITED_RESERVATION_LENGTH:"- Reservation length (Accept all reservation lengths)",INSTANT_BOOKING_RESERVATION_LENGTH:"- Maximum acceptable reservation length ({{nights_number}} nights)",INSTANT_BOOKING_MAX_RESERVATION_DAYS_IN_ADVANCE:"- Max reservation days in advance (max {{days_number}} days)",INSTANT_BOOKING_UNLIMITED_MAX_RESERVATION_DAYS_IN_ADVANCE:"- Max reservation days in advance (Accept all future reservations)",INSTANT_BOOKING_MIN_RESERVATION_DAYS:"Min reservation days in advance:",INSTANT_BOOKING_MIN_RESERVATION_DAYS_LEAVE_EMPTY:"(Leave empty if not required)",INSTANT_BOOKING_OTHER_SETTINGS:"Other settings",INSTANT_BOOKING_SHOW_AVAILABLE_BERTHS_OPTION:"Show number of available berths to boaters during booking",INSTANT_BOOKING_ADDITIONAL_SETTINGS_BOAT_LABEL:"Boat:",INSTANT_BOOKING_ADDITIONAL_SETTINGS_BOATER_LABEL:"Boater:",boaterInquiries:"Boater inquiries",internalNotes:"Internal notes",PAID_100:"PAID 100%",PAID_25:"PAID {{rate}}%",meterUnit:"m",MONO:"Mono",MULTI:"Multi",reservatison_totalBerthingPrice:"Total berthing price",set_total_price:"Set the total price",set_price_per_night:"Set price per night",reservation_payout_status:"Payout to bank",deposit_payment_succeeded_status:"Deposit payment {{amount}} - Succeeded on {{date}}",deposit_payment_refunded_status:"Deposit payment {{amount}} - Refunded on {{date}}",full_payment_succeeded_status:"Full payment {{amount}} - Succeeded on {{date}}",full_payment_refunded_status:"Full payment {{amount}} - Refunded on {{date}}",deposit_payout_in_transit_status:"Deposit payment {{amount}} - in transit on {{date}}",deposit_payout_paid_status:"Deposit payment {{amount}} - paid on {{date}}",full_payment_payout_in_transit_status:"Full payment {{amount}} - in transit on {{date}}",full_payment_payout_paid_status:"Full payment {{amount}} - paid on {{date}}",contractPriceType:"Fixed contract price per meter",STARTENDDATES:"Set start and end dates",CONTRACT_PRICE:"Price",CONTRACT_PER_METER:"per meter","1MONTH":"1 month","2MONTH":"2 months","3MONTH":"3 months","4MONTH":"4 months","5MONTH":"5 months","6MONTH":"6 months","7MONTH":"7 months","8MONTH":"8 months","9MONTH":"9 months","10MONTH":"10 months","11MONTH":"11 months","1YEAR":"1 year","2YEAR":"2 year","3YEAR":"3 year","4YEAR":"4 year","5YEAR":"5 year","6YEAR":"6 year","7YEAR":"7 year","8YEAR":"8 year","9YEAR":"9 year","10YEAR":"10 year",PRICE_PER_NIGHT:"price per night: ",TOTAL_PRICE:"total price: "}}},524:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return o}));var a=[{label:"mail",dataKey:"email"},{label:"phone",dataKey:"phone"},{label:"address",dataKey:"address"},{label:"address_line_two",dataKey:"address_line_two"},{label:"country",dataKey:"country_of_residence"},{label:"boater_zipCode",dataKey:"postal_code"},{label:"boater_birthday",dataKey:"date_of_birth",fieldType:"date",datepickerParams:{placement:"top",marginLeft:"-40px"}},{label:"license",dataKey:"license",fieldType:"document"}],r=[{label:"customers_firstName",dataKey:"first_name",fieldType:"text"},{label:"customers_lastName",dataKey:"last_name",fieldType:"text"},{label:"mail",dataKey:"email",fieldType:"text"},{label:"phone",dataKey:"phone",fieldType:"text"},{label:"language",dataKey:"language",fieldType:"lang"},{label:"address",dataKey:"address",fieldType:"text"},{label:"boater_country",dataKey:"country_of_residence",fieldType:"country"},{label:"boater_zipCode",dataKey:"postal_code",fieldType:"text"},{label:"boater_birthday",dataKey:"date_of_birth",fieldType:"date",datepickerParams:{placement:"top"}}],i=[{label:"boater_type",dataKey:"type",editable:!0,fieldType:"vesselTypeSelect"},{label:"MONO_MULTI_HULL",dataKey:"hull_type",editable:!0,fieldType:"hullTypeSelect"},{dataKey:"sizes",label:"size",multiple:!0,editable:!0,fieldType:"double",data:[{label:"boater_l",dataKey:"length"},{label:"boater_b",dataKey:"beam"},{label:"boater_d",dataKey:"draft"}]},{label:"boater_homeMarina",dataKey:"marina",editable:!1,fieldType:"homeMarina"},{label:"flag",dataKey:"flag",editable:!0,fieldType:"text"},{label:"imo",dataKey:"imo",editable:!0,fieldType:"text"},{label:"mmsi",dataKey:"mmsi",editable:!0,fieldType:"text"},{label:"reservation_vesselLicense",dataKey:"license",editable:!0,fieldType:"document"},{label:"reservation_vesselInsurance",dataKey:"insurance",editable:!0,fieldType:"document"}],o=[{index:0,label:"contacts",notFoundLabel:"customersContactCardVesselsTab",type:"contacts"},{index:1,label:"memberships",notFoundLabel:"noMemberships",type:"memberships"},{index:2,label:"activity",notFoundLabel:"noActivity",type:"activity"},{index:3,label:"messageResident",notFoundLabel:"noMessages",type:"messages"}],s=[{index:0,label:"vessels",notFoundLabel:"customersVesselCardContactsTab",type:"vessels"},{index:1,label:"memberships",notFoundLabel:"noMemberships",type:"memberships"},{index:2,label:"activity",notFoundLabel:"noActivity",type:"activity"},{index:3,label:"messages",notFoundLabel:"noMessages",type:"messages"}]},527:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return c}));var a=n(26),r=n(268),i=n.n(r),o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!t)return e;var r=i.a.remove(t),o=function e(t,n){var a=null;for(var r in t){if(r===n&&t[r])return t;if(t[r]instanceof Object&&(a=e(t[r],n)))break}return a},s=function(e){var t=[];for(var n in e)if(e[n]instanceof Object){if(t=o(e[n]))break}else t=[].concat(Object(a.a)(t),[e[n]&&e[n].toString().toLowerCase()]);return t};return e.filter((function(e){return(n.length?n.map((function(t){return o(e,t)&&i.a.remove("".concat(o(e,t)[t])).toLowerCase()})):s(e).map((function(e){return i.a.remove(e)}))).some((function(e){return e&&e.includes(r.toString().toLowerCase())}))}))},s=function(e,t){return et?1:0},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc";return function(n){return n.map((function(t){return t[e]})).filter((function(e,t,n){return n.indexOf(e)===t})).sort((function(e,n){return"asc"===t?s(e,n):-s(e,n)}))}}},531:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s}));var a=n(2),r=n(8),i=n.n(r),o=function(e){var t=e.absenceReports.absenceReport?e.absenceReports.absenceReport:{},n=t.boater?t.boater:t.customer,r=t.vessel,i=r?{name:r.homeMarina.name,country:r.homeMarina.country}:t.customer?{name:n.homeMarina.name,country:n.homeMarina.country}:{};return t&&n&&Object(a.a)(Object(a.a)({},n),{},{vessel:r,boater_id:t.boater_id,boatName:t.vessel_name,boatLength:t.vessel_length,beam:t.vessel_beam,draft:t.vessel_draft,firstName:t.first_name,lastName:t.last_name,boatType:t.vessel_type,homeMarina:i,firebase_id:t.boater&&t.boater.firebase_id})},s=function(e){var t=e.absenceReports.availableVessels;return[].concat.apply([],t.map((function(e){return e.boaters.map((function(t){return Object(a.a)(Object(a.a)({},t),{},{vessel_id:e.id,vessel_name:e.name,length:e.length,beam:e.beam,draft:e.draft})}))||[]})))},c=function(e){var t=e.absenceReports.list,n=t&&t.length?t.sort((function(e,t){return i()(t.updated_at).diff(i()(e.updated_at))})):[];return n&&n.length?n.map((function(e){var t=i()(e.departure_date),n=i()(e.return_date),r={name:e.vessel_name,length:e.vessel_length,draft:e.vessel_draft,beam:e.vessel_beam,type:e.vessel_type};return Object(a.a)(Object(a.a)({},e),{},{numOfNights:n.diff(t,"days"),departure_date:t.format("DD/MM/YYYY"),return_date:n.format("DD/MM/YYYY"),fullName:"".concat(e.first_name," ").concat(e.last_name),vessel:r})})):[]}},533:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n(1);var a=n(15),r=n(0),i=Object(a.a)((function(e){return{label:{top:0,right:0,fontSize:e.utils.pxToRem(15),borderRadius:4,color:"#ffffff",padding:"3px 12px",textTransform:"uppercase"}}}))((function(e){var t=e.classes,n=e.label,a=e.color;return Object(r.jsx)("span",{className:t.label,style:{backgroundColor:a},children:n})}))},55:function(e,t,n){"use strict";var a=n(212);n.d(t,"a",(function(){return a.a}))},613:function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var a=n(43),r=n(44),i=n(58),o=n(59),s=n(1),c=n.n(s),l=n(15),d=n(398),u=n(1760),b=n(940),p=n(884),m=n(143),h=n(409),f=n(0),j=function(e){return{root:{flex:1,height:415,margin:15},label:{fontSize:e.utils.pxToRem(13)},dimText:{fill:"#8A96A0"},liteDimText:{fill:"#828282"},tooltip:{backgroundColor:"rgba(72, 84, 101, 0.9)",borderRadius:2,display:"flex",flexDirection:"row",fontSize:e.utils.pxToRem(12),padding:10,alignItems:"center"},tipColor:{width:12,height:12,borderRadius:2,boxShadow:"0 2px 4px 0 rgba(22),75,215,0.3)"},tipName:{color:"#fff",opacity:.6,marginLeft:6},tipDetail:{marginLeft:13,color:"#fff",lineHeight:"15px"}}},O=Object(l.a)(j)((function(e){var t=e.viewBox,n=e.value1,a=e.value2,r=e.value3,i=e.showSecondary,o=e.classes,s=e.small,c=e.isMarinaLiteVersion,l=t.cx,d=t.cy;return Object(f.jsxs)("text",{x:l,y:d-40,fill:c?"#333333":"#3d405c",textAnchor:"middle",dominantBaseline:"central",children:[Object(f.jsx)("tspan",{x:l,dy:s?20:"0.51em",alignmentBaseline:"middle",fontSize:s?"24":"40",children:n},0),Object(f.jsx)("tspan",{x:l,dy:s?20:"1.61em",fontSize:s?c?"15":"14":"20",className:c?o.liteDimText:o.dimText,children:a},1),i?Object(f.jsx)("tspan",{x:l,dy:s?c?18:15:"2em",fontSize:c?"15":"13",className:c?o.liteDimText:o.dimText,children:r},2):null]})})),g=function(e){var t=e.cx,n=e.cy,a=e.innerRadius,r=e.outerRadius,i=e.startAngle,o=e.endAngle,s=e.fill;return Object(f.jsx)(d.a,{cx:t,cy:n,innerRadius:a,outerRadius:r+15,startAngle:i,endAngle:o,fill:s})},_=Object(l.a)(j)((function(e){var t=e.active,n=e.payload,a=e.classes,r=e.showSecondary,i=e.secondaryLabel,o=e.primaryLabel;if(!t)return null;var s=n[0].payload,c=s.fill,l=s.name,d=s.primary,u=s.secondary;return Object(f.jsxs)("div",{className:a.tooltip,children:[Object(f.jsx)("div",{className:a.tipColor,style:{background:c}}),Object(f.jsx)("div",{className:a.tipName,children:l}),Object(f.jsx)("div",{className:a.tipDetail,children:"".concat(d," ").concat(o)}),r?Object(f.jsx)("div",{className:a.tipDetail,children:"(".concat(u," ").concat(i,")")}):null]})})),v=function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(){var e;Object(a.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o0&&Object(x.jsx)(T.a,{classes:{spacer:t.spacer},component:"div",count:n,rowsPerPage:a,rowsPerPageOptions:r,page:i,onChangePage:o,backIconButtonProps:{testID:s+"Prev"},nextIconButtonProps:{testID:s+"Next"}})})})),A=n(1712),S=n(325),N=Object(b.a)((function(e){return{root:{paddingRight:e.spacing(1),borderBottom:"1px solid #dfdfdf"},wrapper:{width:"100%"},title:{paddingTop:15,fontWeight:600}}}))((function(e){var t=e.classes,n=e.title,a=e.children,r=e.withTabs;return Object(x.jsx)(A.a,{className:t.root,children:Object(x.jsxs)("div",{className:t.wrapper,children:[r?n:Object(x.jsx)("div",{className:t.title,children:Object(x.jsx)(S.a,{title:n})}),a]})})})),I=n(154),C=["classes","className","title","cols","renderRow","ToolbarChildren","data","notFoundMessage","withTabs","embedded","smallHeader","testID","isLoading","rowsPerPage","stickyPagination","maxHeight","setPageNumber","pageNember","totalRows","serverSidePagination","icon","headerBackgrondColor","withoutPagination","defaultOrder"],w=Object(b.a)((function(e){return{root:{minWidth:880,height:"100%","& .MuiToolbar-gutters":{paddingLeft:"0px",paddingRight:"0px"},paddingBottom:50},tableWrapper:{overflow:"hidden",position:"relative",minHeight:"100%",padding:"0 22px"},table:{border:function(e){return e.boatersTable?"1px solid #e0e0e0":"none"},width:"100%",minHeight:"100%"},noActivity:{display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",padding:25,color:"#8A96A0",fontWeight:600},spacer:{height:20,backgroundColor:"red"},footer:{color:"#33333",fontWeight:600,fontSize:18,paddingTop:8}}}))((function(e){var t=e.classes,n=e.className,c=e.title,b=e.cols,O=e.renderRow,g=e.ToolbarChildren,_=e.data,v=e.notFoundMessage,y=e.withTabs,T=void 0!==y&&y,A=e.embedded,S=void 0!==A&&A,w=e.smallHeader,D=void 0!==w&&w,P=e.testID,M=e.isLoading,L=e.rowsPerPage,B=e.stickyPagination,k=e.maxHeight,H=e.setPageNumber,V=e.pageNember,F=e.totalRows,W=e.serverSidePagination,U=e.icon,G=e.headerBackgrondColor,z=e.withoutPagination,Y=e.defaultOrder,q=Object(i.a)(e,C),K=Object(u.a)().t,X=Object(o.useState)(Y||"asc"),Q=Object(r.a)(X,2),Z=Q[0],J=Q[1],$=Object(o.useState)((b.find((function(e){return!!e.defaultSort}))||{}).id),ee=Object(r.a)($,2),te=ee[0],ne=ee[1],ae=Object(o.useState)(""),re=Object(r.a)(ae,2),ie=re[0],oe=re[1],se=Object(o.useState)(L||5),ce=Object(r.a)(se,2),le=ce[0],de=(ce[1],Object(o.useState)(V||0)),ue=Object(r.a)(de,2),be=ue[0],pe=ue[1],me=s.a.createRef(),he=Object(o.useState)([0,0]),fe=Object(r.a)(he,2),je=fe[0],Oe=fe[1];Object(o.useLayoutEffect)((function(){var e=function(){Oe([window.innerWidth,window.innerHeight])};return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}}),[]),Object(o.useEffect)((function(){var e=null,t=me.current;return t.scrollTop=0,Object(j.a)((function(){e&&(e.destroy(),e=null)})).then((function(){if(_&&_.length){var n=document.querySelector(".MuiTableBody-root")&&document.querySelector(".MuiTableBody-root").offsetHeight,a=document.querySelector(".MuiTableHead-root")&&document.querySelector(".MuiTableHead-root").offsetHeight;t&&a&&n+a>t.offsetHeight&&(e=new d.a(t))}})),function(){e&&(e.destroy(),e=null)}}),[_,be,je]),Object(o.useEffect)((function(){W||pe(0)}),[_]);var ge=function(e){return te&&"expDate"===te&&ie&&"date"===ie?Object(f.d)(e,Object(f.a)(Z,te,ie)):te&&"berth_name"===te?Object(f.b)(e,Z):te&&"association"===te?Object(f.c)(e,Z):te&&"view"===te?Object(f.e)(e,Z):Object(f.f)(e,Object(f.a)(Z,te,ie))};return Object(x.jsxs)(p.a,Object(a.a)(Object(a.a)({className:t.root,style:S?{boxShadow:"none"}:{}},q),{},{children:[M&&Object(x.jsx)(I.a,{open:!0}),g&&Object(x.jsx)(N,{withTabs:T,title:c,children:g}),Object(x.jsxs)("div",{className:t.tableWrapper,style:{maxHeight:k},ref:me,children:[Object(x.jsx)(m.a,{size:"small",className:l()(t.table,n),"aria-labelledby":"tableTitle",children:!M&&Object(x.jsxs)(x.Fragment,{children:[Object(x.jsx)(E,{color:G,icon:U,cols:b,order:Z,orderBy:te||(b[0].sortable?b[0].id:void 0),onRequestSort:function(e,t,n){var a=t,r="desc";te===t&&"desc"===Z&&(r="asc"),J(r),ne(a),oe(n)},smallHeader:D}),Object(x.jsx)(h.a,{testID:P,children:_&&_.length?z?ge(_).map(O):ge(_).slice(be*le,(be+1)*le).map(O):null})]})}),z&&Object(x.jsx)("div",{className:t.footer,children:K("results",{result:null===_||void 0===_?void 0:_.length})}),(!_||!_.length)&&Object(x.jsx)("div",{className:t.noActivity,children:v()})]}),!z&&Object(x.jsx)(R,{fillEmptySpace:!0,count:F||(_?_.length:0),rowsPerPage:le,rowsPerPageOptions:[],page:be,onChangePage:function(e,t){pe(t),W&&H(t)},stickyPagination:B})]}))}))},633:function(e,t,n){"use strict";n.d(t,"a",(function(){return q}));var a=n(6),r=n(29),i=n(31),o=n(2),s=n(1),c=n.n(s),l=n(4),d=n(913),u=n(8),b=n.n(u),p=n(15),m=n(1642),h=n(1629),f=n(1635),j=n(1619),O=n(1622),g=n(194),_=n(780),v=n.n(_),x=n(263),E=n(118),y=n(653),T=n(81),R=n(385),A=n(658),S=n(901),N=n(900),I=n(344),C=n(634),w=n(488),D=n.n(w),P=n(331),M=n.n(P),L=n(489),B=n.n(L),k=n(487),H=n.n(k),V=n(395),F=n.n(V),W=n(299),U=n(324),G=n(23),z=n(0),Y=["classes","id","label","value","data","noData","multiple","readOnly","cardRow","joined","fieldType","editMode","handleChange","error","boldValue","tableType","isMarinaLiteVersion"],q=Object(p.a)((function(e){return{wrapper:{padding:"10px 10px 10px 23px",fontSize:e.utils.pxToRem(10)},cardWrapper:{padding:"11px 10px 11px 23px"},item:function(e){var t={display:"flex",contentJustify:"flex-start",alignItems:"center"};if("reservation"===e.tableType){var n=e.error?{marginBottom:20}:{marginBottom:0};return Object(o.a)(Object(o.a)({},t),{},{"& .MuiInput-root":Object(o.a)({width:207,maxWidth:207,height:48},n),"& .MuiFormHelperText-root.Mui-error":{width:207,minHeight:40,display:"block",maxWidth:207}})}return t},key:{color:"#1A1A1B",fontSize:e.utils.pxToRem(12.45),minWidth:110,display:"flex",alignItems:"center",marginRight:10},keyForReservationForm:{color:"#1A1A1B",fontSize:"15px",minWidth:100,display:"flex",alignItems:"center"},shortKey:Object(i.a)({color:"#1A1A1B",fontSize:e.utils.pxToRem(12.45),minWidth:110},"@media (max-width:1280px)",{minWidth:60}),value:{maxWidth:"20vw",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:"#545556",fontSize:e.utils.pxToRem(12.45)},valueLite:{fontSize:17},mKey:{marginRight:11,minWidth:5,fontSize:e.utils.pxToRem(12.45)},mKeyCard:{marginRight:5},longKey:{marginRight:11},mItem:{marginRight:16,display:"flex"},mItemCard:{marginRight:8,"&:nth-last-of-type(1)":{marginRight:0}},numberInput:{margin:0},download:{color:"#255EDD",fontSize:e.utils.pxToRem(12.45),cursor:"pointer"},status:{display:"flex",alignItems:"center"},statusIcon:{fontSize:13,borderRadius:20,margin:" 3px 5px",color:"rgba(255, 255, 255, 0.8)"},active:{background:"#00c48c"},expired:{background:"#f17272"},disabled:{background:"#8b8b8b"},archived:{background:"#8b8b8b"},temporary:{background:"#f5821f"},multipleFieldItem:{position:"relative"},multipleFieldItemLabel:{position:"absolute",zIndex:1,color:"#1A1A1B",fontSize:14,top:8,left:5},homeMarina:{display:"flex",alignItems:"center"},smallSpacer:{minWidth:5},bolded:{fontWeight:"bold"},field:{background:"rgb(245, 246, 247)",minWidth:208,padding:"2px 8px"}}}))((function(e){var t=e.classes,n=e.id,i=e.label,u=e.value,p=e.data,_=e.noData,w=e.multiple,P=e.readOnly,L=e.cardRow,k=e.joined,V=e.fieldType,q=void 0===V?"text":V,K=e.editMode,X=void 0!==K&&K,Q=e.handleChange,Z=e.error,J=e.boldValue,$=e.tableType,ee=e.isMarinaLiteVersion,te=Object(r.a)(e,Y),ne={question:Object(z.jsx)(v.a,{style:{color:"#C0C2CB",marginLeft:3}})},ae=Q||function(e){return te.setFieldValue(n.e.target.value)},re=Object(d.a)().t,ie="reservation"===$?t.keyForReservationForm:t.key,oe=function(e){var a={en:"English",fr:"Fran\xe7ais",de:"Deutsch",es:"Espa\xf1ol",it:"Italiano"},r={active:Object(z.jsxs)("span",{className:t.status,children:[re("active"),Object(z.jsx)(M.a,{className:Object(l.a)(t.statusIcon,t.active)})]}),expired:Object(z.jsxs)("span",{className:t.status,children:[re("expired"),Object(z.jsx)(H.a,{className:Object(l.a)(t.statusIcon,t.expired)})]}),disabled:Object(z.jsxs)("span",{className:t.status,children:[re("disabled"),Object(z.jsx)(D.a,{className:Object(l.a)(t.statusIcon,t.disabled)})]}),archived:Object(z.jsxs)("span",{className:t.status,children:[re("archived"),Object(z.jsx)(B.a,{className:Object(l.a)(t.statusIcon,t.archived)})]}),temporary:Object(z.jsxs)("span",{className:t.status,children:[re("temporary"),Object(z.jsx)(F.a,{className:Object(l.a)(t.statusIcon,t.temporary)})]}),pending:Object(z.jsxs)("span",{className:t.status,children:[re("pending"),Object(z.jsx)(F.a,{className:Object(l.a)(t.statusIcon,t.temporary)})]})},i=Object(o.a)({inputProps:{id:n,testid:"test-".concat(n,"-input"),style:"date"===q?te.shortKey?{width:130}:{width:255}:Object(o.a)({},{padding:"10px 10px 8px 10px",background:"#EFF2F8",width:"235px",fontSize:14,fontFamily:"Lato"})},onChange:ae,error:!!Z,helperText:Z?re(Z):""},te),s={country:Object(z.jsx)(S.a,{value:e,id:n,setValue:te.setFieldValue,error:Z,width:te.width}),vesselTypeSelect:Object(z.jsx)(m.a,{labelId:"".concat(n,"-label"),id:n,value:u,margin:"none",onChange:function(e){return te.setFieldValue("type",e.target.value)},style:{padding:"4px 0 3px 10px",width:235,background:"#EFF2F8"},onClose:function(){return te.setFieldTouched("type",!0,!1)},classes:{root:t.noBg},inputProps:{id:n},error:!!Z,children:U.c.map((function(e){return Object(z.jsx)(h.a,{value:e.id,children:re(e.label)},e.id)}))}),hullTypeSelect:Object(z.jsx)(m.a,{labelId:"".concat(n,"-label"),id:n,value:u,margin:"none",onChange:function(e){return te.setFieldValue("hull_type",e.target.value)},style:{padding:"4px 0 3px 10px",width:235,background:"#EFF2F8"},onClose:function(){return te.setFieldTouched("hull_type",!0,!1)},classes:{root:t.noBg},inputProps:{id:n},error:!!Z,children:U.b.map((function(e){return Object(z.jsx)(h.a,{value:e.id,children:re(e.label)},e.id)}))}),text:Object(z.jsx)(C.a,Object(o.a)(Object(o.a)({variant:"filled",margin:"none",value:e,id:n},i),{},{error:Z})),integer:Object(z.jsx)(E.a,Object(o.a)({value:e,className:t.numberInput,variant:"standard"},i)),double:Object(z.jsx)(E.a,Object(o.a)({value:e,className:t.numberInput,variant:"standard",double:!0},i)),date:Object(z.jsx)(A.a,Object(o.a)(Object(o.a)(Object(o.a)({datepickerParams:te.datepickerParams,styles:{padding:0,height:48,paddingLeft:10},disabledDates:te.disabledDates,value:e,name:n},i),te),{},{width:197,error:Z,onChange:function(e){return te.setFieldValue(te.formId?te.formId:n,e)}})),oldDate:Object(z.jsx)(y.a,Object(o.a)(Object(o.a)({disabledDates:te.disabledDates,value:e,onChange:ae,name:n},i),te)),switch:Object(z.jsx)(R.a,Object(o.a)(Object(o.a)({onChange:ae,name:n},i),te)),lang:Object(z.jsx)(f.a,{className:t.inline,style:{alignItems:"center"},children:Object(z.jsx)(j.a,{className:t.formControl,children:Object(z.jsxs)(m.a,{value:e,onChange:function(e){return Q&&"function"===typeof Q?Q("language",e.target.value):te.setFieldValue("language",e.target.value)},input:Object(z.jsx)(O.a,{name:"language",id:"langSelect-placeholder"}),displayEmpty:!0,className:t.field,name:"language",id:"language",inputProps:{testid:"test-".concat(n)},children:[Object(z.jsx)(h.a,{value:"en",children:"English"},"en"),Object(z.jsx)(h.a,{value:"fr",children:"Fran\xe7ais"},"fr"),Object(z.jsx)(h.a,{value:"de",children:"Deutsch"},"de"),Object(z.jsx)(h.a,{value:"es",children:"Espa\xf1ol"},"es"),Object(z.jsx)(h.a,{value:"it",children:"Italiano"},"it")]})})}),berthAutocomplete:Object(z.jsx)(I.a,{onChange:ae,onInputChange:te.setFieldValue,value:e,options:p,inputValue:te.inputValue,vessel_id:te.vessel_id})},c={country:e&&e.length?Object(x.getName)(e):"",vesselTypeSelect:re("".concat(e)),hullTypeSelect:re("".concat(e)),double:e?"".concat(e,"m"):"",date:e?b()(e).isValid()?te.dateFormat?Object(G.b)(b()(e,te.dateFormat)):Object(G.b)(b()(e)):e:"-",lang:e?a[e]:a.en,document:e?Object(z.jsx)("div",{className:t.download,onClick:function(){return Object(W.b)(e.id,e.name)},children:re("download")}):"-",status:r[e],switch:Object(z.jsx)(R.a,Object(o.a)({disabled:!0},te)),homeMarina:Object(z.jsx)("div",{className:t.homeMarina,children:p&&Object(z.jsxs)(z.Fragment,{children:[p?p.name:"-",Object(z.jsx)("span",{className:t.smallSpacer}),Object(z.jsx)(N.a,{status:p.verifyStatus,date:p.finished_at})]})}),berthAutocomplete:e?Object(z.jsx)("span",{className:Object(l.a)(J&&t.bolded),children:e}):"--"};return X?Object(z.jsx)(z.Fragment,{children:s[q]}):e||p||"switch"===q?Object(z.jsx)("span",{testid:"test-".concat(n,"-value"),className:P?te.rest.shortKey?t.shortKey:ie:Object(l.a)(t.value,ee&&t.valueLite),ref:ue,children:c[q]?c[q]:e}):_?Object(z.jsx)("span",{className:te.shortKey?t.shortKey:ie,children:_}):null};if(w)return Object(z.jsx)("div",{testid:"test-".concat(n,"-value"),className:Object(l.a)(t.wrapper,L&&t.cardWrapper),children:p&&Object(z.jsxs)(g.a,{component:"div",className:t.item,children:[i?Object(z.jsx)("span",{className:te.shortKey?t.shortKey:te.longKey?Object(l.a)(t.longKey,ie):ie,style:k?{minWidth:0,marginRight:10}:{},children:"".concat(i)}):null,p.map((function(e){return Object(z.jsx)("span",{className:Object(l.a)(t.mItem,i&&t.mItemCard),children:X?Object(z.jsxs)("span",{className:t.multipleFieldItem,children:[Object(z.jsx)("span",{className:t.multipleFieldItemLabel,children:i?e.label:"".concat(e.label)}),Object(z.jsx)(E.a,{id:e.dataKey,value:e.value,className:t.numberInput,variant:"standard",onChange:function(t){return te.setFieldValue(e.dataKey,t.target.value)},error:te.multipleErrors[e.dataKey],double:"double"===q,inputProps:{testid:"test-".concat(e.dataKey,"-input"),style:{padding:"10px 4px 8px 18px",background:"#EFF2F8",width:"100%",fontSize:17}}})]}):Object(z.jsxs)(z.Fragment,{children:[Object(z.jsx)("span",{className:Object(l.a)(t.mKey,te.shortKey?t.shortKey:ie,i&&t.mKeyCard),children:i?e.label:"".concat(e.label)}),Object(z.jsx)("span",{testid:"test-".concat(e.dataKey,"-value"),className:Object(l.a)(t.value,t.mValue),children:e.value?i?e.value:"".concat(e.value,","):"-"})]})},e.label)}))]})});var se=Object(s.useState)(!1),ce=Object(a.a)(se,2),le=ce[0],de=ce[1],ue=c.a.createRef();return Object(s.useLayoutEffect)((function(){return ue.current&&ue.current.clientWidth0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case c.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case l.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,allCustomersCount:t.payload.allCustomers,customersPerMarina:t.payload.customersPerMarina,visitsPerMarina:t.payload.visitsPerMarina,allBoaters:t.payload.allBoaters,totalVessels:t.payload.totalVessels,allReservations:t.payload.allReservations,customersPerCountry:t.payload.customersPerCountry,marinasPerCountry:t.payload.marinasPerCountry,visitsPerMonth:t.payload.visitsPerMonth,mapVisits:t.payload.mapVisits});case d.type:return Object(a.a)(Object(a.a)({},y),{},{isLoading:!1,allCustomersCount:-1});case b.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case p.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case m.type:return{isLoading:!1,error:t.payload};case j.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case O.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case g.type:return{isLoading:!1,error:t.payload};default:return e}}},643:function(e,t,n){"use strict";var a=n(2),r=(n(1),n(354)),i=n(0),o=function(e){return Object(i.jsx)(r.a,Object(a.a)(Object(a.a)({viewBox:"0 0 18 18"},e),{},{children:Object(i.jsx)("path",{d:"M7.2,0 C3.23207791,0 0,3.23207791 0,7.2 C0,11.1679222 3.23207791,14.4 7.2,14.4 C8.92548576,14.4 10.5101172,13.7872699 11.7520315,12.7701562 L16.0509377,17.0690623 C16.2315256,17.2571557 16.4996899,17.3329248 16.7520082,17.2671479 C17.0043265,17.201371 17.201371,17.0043265 17.2671479,16.7520082 C17.3329248,16.4996899 17.2571557,16.2315256 17.0690623,16.0509377 L12.7701562,11.7520315 C13.7872699,10.5101172 14.4,8.92548576 14.4,7.2 C14.4,3.23207791 11.1679222,0 7.2,0 Z M7.2,1.44 C10.3896886,1.44 12.96,4.01031173 12.96,7.2 C12.96,10.3896886 10.3896886,12.96 7.2,12.96 C4.01031173,12.96 1.44,10.3896886 1.44,7.2 C1.44,4.01031173 4.01031173,1.44 7.2,1.44 Z"})}))};o.displayName="Search",o.muiName="SvgIcon",t.a=o},646:function(e,t,n){"use strict";n.d(t,"a",(function(){return ce}));var a=n(2),r=n(29),i=n(1),o=n.n(i),s=n(4),c=n(15),l=n(1727),d=n(1728),u=n(6),b=n(913),p=n(8),m=n.n(p),h=n(930),f=n.n(h),j=n(931),O=n.n(j),g=n(488),_=n.n(g),v=n(331),x=n.n(v),E=n(489),y=n.n(E),T=n(487),R=n.n(T),A=n(932),S=n.n(A),N=n(395),I=n.n(N),C=n(0),w=function(e){return Object(C.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(C.jsx)("path",{d:"M7.99888 0.25C7.54825 0.25 7.09534 0.348969 6.75381 0.547188L2.16872 3.19397C1.48266 3.59006 0.921875 4.56128 0.921875 5.35284V10.6472C0.921875 11.439 1.48266 12.4105 2.16875 12.8064L6.75381 15.4537C7.09534 15.6513 7.54822 15.75 7.99888 15.75C8.45156 15.75 8.90419 15.6513 9.24575 15.4537L13.8308 12.8064C14.5159 12.4105 15.0779 11.439 15.0779 10.6472V5.35281C15.0779 4.56125 14.5159 3.59 13.8308 3.19394L9.24572 0.547219C8.90419 0.348969 8.45156 0.25 7.99888 0.25ZM11.0985 4.76166C11.2306 4.76166 11.3626 4.81172 11.4626 4.91206L12.0203 5.46916C12.2204 5.67003 12.2204 5.99847 12.0203 6.19916L7.13178 11.0882C6.92972 11.2887 6.60247 11.2887 6.40241 11.0882L4.24797 8.93469C4.04791 8.73422 4.09034 8.36353 4.24797 8.20531L4.80594 7.64819C5.00603 7.44731 5.33531 7.44731 5.53534 7.64819L6.40241 8.51462C6.60247 8.71509 6.92972 8.71509 7.13178 8.51462L10.7329 4.91206C10.8301 4.81551 10.9615 4.76142 11.0985 4.76166H11.0985Z",fill:"#828282"})})};w.displayName="BoatersTableMarketplaceCheck";var D=w,P=function(e){return Object(C.jsx)("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(C.jsx)("path",{d:"M14.1783 13.6131C14.9957 12.6297 15.5641 11.4639 15.8357 10.2143C16.1072 8.96475 16.0737 7.66816 15.7381 6.43425C15.4026 5.20034 14.7747 4.0654 13.9078 3.12544C13.0408 2.18549 11.9602 1.46816 10.7574 1.03416C9.55457 0.600151 8.26491 0.46223 6.99751 0.63206C5.73011 0.80189 4.52226 1.27448 3.47613 2.00984C2.43 2.7452 1.57637 3.72171 0.987451 4.85675C0.398535 5.9918 0.0916565 7.25198 0.0927765 8.53071C0.0932063 10.3896 0.748276 12.189 1.94304 13.6131L1.93165 13.6228C1.97149 13.6706 2.01703 13.7116 2.058 13.7588C2.10923 13.8174 2.16443 13.8726 2.21736 13.9295C2.37672 14.1026 2.54063 14.2687 2.71251 14.4247C2.76487 14.4725 2.81894 14.5169 2.87187 14.5624C3.05399 14.7195 3.24124 14.8686 3.43531 15.0075C3.46035 15.0246 3.48312 15.0467 3.50816 15.0644V15.0576C4.84114 15.9956 6.4313 16.499 8.06125 16.499C9.6912 16.499 11.2814 15.9956 12.6143 15.0576V15.0644C12.6394 15.0467 12.6616 15.0246 12.6872 15.0075C12.8807 14.868 13.0685 14.7195 13.2506 14.5624C13.3036 14.5169 13.3576 14.4719 13.41 14.4247C13.5819 14.2682 13.7458 14.1026 13.9051 13.9295C13.9581 13.8726 14.0127 13.8174 14.0645 13.7588C14.1049 13.7116 14.151 13.6706 14.1908 13.6222L14.1783 13.6131ZM8.06068 3.97762C8.56722 3.97762 9.06239 4.12783 9.48356 4.40925C9.90473 4.69067 10.233 5.09066 10.4268 5.55864C10.6207 6.02662 10.6714 6.54158 10.5726 7.03838C10.4738 7.53519 10.2298 7.99154 9.87166 8.34971C9.51348 8.70789 9.05714 8.95182 8.56033 9.05064C8.06352 9.14946 7.54857 9.09874 7.08059 8.90489C6.6126 8.71105 6.21261 8.38279 5.93119 7.96161C5.64978 7.54044 5.49957 7.04528 5.49957 6.53874C5.49957 5.85949 5.7694 5.20806 6.2497 4.72776C6.73 4.24745 7.38143 3.97762 8.06068 3.97762ZM3.51158 13.6131C3.52145 12.8658 3.82514 12.1524 4.35695 11.6273C4.88875 11.1022 5.60591 10.8076 6.35327 10.8073H9.76809C10.5154 10.8076 11.2326 11.1022 11.7644 11.6273C12.2962 12.1524 12.5999 12.8658 12.6098 13.6131C11.3616 14.7379 9.74092 15.3604 8.06068 15.3604C6.38044 15.3604 4.75978 14.7379 3.51158 13.6131Z",fill:"#828282"})})};P.displayName="BoatersTableSignedIn";var M=P,L=n(23),B=n(81),k=n(68),H=n(69),V=n(199),F=function(e){return{firstLine:{fontSize:e.utils.pxToRem(14),color:"#253967"},secondLine:{fontSize:e.utils.pxToRem(14),color:"#1A1A1B"},noOverflow:{display:"block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},icon:{verticalAlign:"text-top"}}},W=Object(c.a)(Object(a.a)(Object(a.a)({},{wrapper:{display:"flex"},icon:{marginRight:9},status:{textTransform:"capitalize"}}),F))((function(e){var t,n,a=e.classes,r=e.rowData,i=Object(b.a)().t,o=r[0],s=r[1]&&r[1][r[1].length-1],c=s&&s.action_required,l=Object(V.d)();return Object(C.jsxs)("div",{className:a.wrapper,children:[Object(C.jsx)("span",{className:a.icon,style:{color:null===(t=l[r[0]])||void 0===t?void 0:t.color},children:Object(C.jsx)(f.a,{})}),Object(C.jsxs)("span",{className:a.status,children:[Object(C.jsx)("span",{className:a.firstLine,children:i(null===(n=l[o])||void 0===n?void 0:n.label)}),Object(C.jsx)("br",{}),c&&o?Object(C.jsx)("span",{className:a.secondLine,style:{color:"#1A1A1B"},children:!Object(V.g)({last_status_code:o.toUpperCase()})&&i({BOATER:"reservations_customer",MARINA:"reservations_marina",FINISHED:"reservations_waitingArrival"}[c])}):null]})]})})),U=Object(c.a)(F)((function(e){var t=e.classes,n=e.rowData;return Object(C.jsx)(C.Fragment,{children:Object(C.jsx)("span",{className:t.firstLine,children:Object(L.c)(m()(n[0]),m()(n[1]))})})})),G=Object(c.a)(Object(a.a)(Object(a.a)({},{setPrice:{color:"#f17272",cursor:"pointer",transition:"0.3s"}}),F))((function(e){var t=e.classes,n=e.rowData,a=Object(b.a)().t,r=n&&n[0]?n[0]:null;return Object(C.jsx)(C.Fragment,{children:Object(C.jsx)("span",{children:Object(C.jsxs)(C.Fragment,{children:[Object(C.jsx)("span",{className:r?"":t.setPrice,children:r?"".concat(Object(k.a)(Object(H.b)(r.price_per_night),"en",r.currency)):Object(C.jsx)("span",{className:t.setPrice,children:a("reservations_setPrice")})}),Object(C.jsx)("br",{}),Object(C.jsx)("span",{className:t.secondLine,children:Object(L.f)(n[2],n[1],"nights")})]})})})})),z=Object(c.a)(F)((function(e){var t=e.classes,n=e.rowData,a=n[0]&&n[0].hull_type?n[0].hull_type.toLowerCase():"-";return Object(C.jsx)(C.Fragment,{children:Object(C.jsxs)("span",{children:[n[0].name,Object(C.jsx)("br",{}),Object(C.jsx)("span",{className:t.secondLine,style:{textTransform:"capitalize"},children:a})]})})})),Y=Object(c.a)(F)((function(e){var t,n,a,r,i,o,s=e.classes,c=e.rowData;return Object(C.jsx)(C.Fragment,{children:Object(C.jsxs)("span",{className:s.secondLine,children:["LOA: ",Object(C.jsx)("span",{className:s.firstLine,children:(null===(t=c[0])||void 0===t?void 0:t.length)?null===(n=c[0])||void 0===n?void 0:n.length:"-"}),Object(C.jsx)("br",{}),"B ".concat((null===(a=c[0])||void 0===a?void 0:a.beam)?null===(r=c[0])||void 0===r?void 0:r.beam:"-"," D ").concat((null===(i=c[0])||void 0===i?void 0:i.draft)?null===(o=c[0])||void 0===o?void 0:o.draft:"-")]})})})),q=Object(c.a)(F)((function(e){var t=e.classes,n=e.rowData;return Object(C.jsx)(C.Fragment,{children:Object(C.jsxs)("span",{children:[Object(C.jsx)("span",{className:t.noOverflow,style:{maxWidth:"13vw"},children:n[0].home_port}),n[1]?Object(C.jsx)("span",{className:t.secondLine,children:n[1].country_of_residence}):null]})})})),K=Object(c.a)(F)((function(e){e.classes;var t=e.rowData,n=Object(b.a)().t;return Object(C.jsx)(C.Fragment,{children:Object(C.jsx)("span",{children:n({BOATER:"reservations_source_customer",MARINA:"reservations_source_marina"}[t[0]])})})})),X=Object(c.a)(F)((function(e){var t=e.classes,n=e.rowData,a=!(!n[0].first_name&&!n[0].last_name),r=a?"".concat(n[0].first_name," ").concat(n[0].last_name):"".concat(n[0].email),s=a?{}:{width:"130px"},c=Object(i.useState)(!1),l=Object(u.a)(c,2),d=l[0],b=l[1],p=o.a.createRef();return Object(i.useLayoutEffect)((function(){return p.current&&p.current.clientWidth57)&&46!==t:t<48||t>57)&&e.preventDefault()},p=Object(r.useState)(0),m=Object(s.a)(p,2),f=m[0],j=m[1];Object(r.useEffect)((function(){if(o.staticPlaceholder){var e=document.getElementById("staticPlaceholder-".concat(o.InputProps.id));e&&j(e.offsetWidth+14)}}),[o.staticPlaceholder]);return Object(b.jsxs)("div",{className:t.wrapper,children:[Object(b.jsx)(l.a,Object(a.a)(Object(a.a)({},o),{},{onChange:function(e){o.setFieldTouched(o.id);var t=e.target.value;-1!==t.indexOf(".")&&t.slice(t.indexOf(".")+1,t.length).length>2?i&&e.preventDefault():o.setFieldValue(o.id,e.target.value)},onKeyPress:function(e){return d(e)},value:n,InputProps:Object(a.a)(Object(a.a)({},o.InputProps),{},{style:f?Object(a.a)(Object(a.a)({},o.InputProps.style),{},{paddingLeft:f}):o.InputProps.style})})),o.staticPlaceholder?Object(b.jsx)("label",{htmlFor:o.id,id:"staticPlaceholder-".concat(o.InputProps.id),className:t.staticPlaceholder,children:o.staticPlaceholder}):null,o.withReset?Object(b.jsx)("div",{className:t.resetButton,onClick:function(){return o.onReset()},children:Object(b.jsx)(u.a,{className:t.resetButtonIcon})}):null]})})),j=n(26),O=n(916),g=n(1629),_=n(277),v=n.n(_),x=n(428),E=n(638),y=["classes"],T=Object(i.a)((function(e){return{container:{width:235,background:"rgb(245,246,247)",fontSize:14,color:"#253967",borderBottom:"1px solid rgba(0, 0, 0, 0.42);",cursor:"pointer"},content:{display:"flex",alignItems:"center",padding:"0px 30px 0px 9px",boxSizing:"border-box",minHeight:38,position:"relative",flexWrap:"wrap"},noSelect:{fontSize:14},expandIcon:{color:"#898A8B",position:"absolute",right:9,top:9},menuItem:{fontSize:14,color:"#545556",paddingTop:0,paddingBottom:0,zIndex:2},selectedItem:{display:"flex",position:"relative",alignItems:"center",background:"#fff",padding:"4px 30px 4px 4px",margin:"3px 5px 3px 0"},selectedItemLabel:{fontSize:14,color:"#253967"},removeButtonIcon:{color:"#545556",fontSize:16,position:"absolute",right:4},label:{fontSize:14,color:"#545556",marginLeft:-16}}}))((function(e){var t,n=e.classes,i=Object(c.a)(e,y),l=Object(o.a)().t,d=Object(r.useState)(null),p=Object(s.a)(d,2),m=p[0],h=p[1],f=Object(r.useState)([]),_=Object(s.a)(f,2),T=_[0],R=_[1],A=Object(r.useState)(!1),S=Object(s.a)(A,2),N=S[0],I=S[1];Object(r.useEffect)((function(){var e={};i.options.map((function(t){e[t.id]=T.includes(t.id)})),N?i.setFieldValue(i.fieldId,e):I(!0)}),[T]),Object(r.useEffect)((function(){var e=i.defaultValue?Object.keys(i.defaultValue).filter((function(e){return!!i.defaultValue[e]})):[];Object(E.a)(e,T)||R(e)}),[i.defaultValue]);return Object(b.jsxs)(b.Fragment,{children:[Object(b.jsx)("div",{className:n.container,onClick:function(e){h(e.currentTarget)},style:function(){var e={};return m&&(e=Object(a.a)(Object(a.a)({},e),{},{borderBottomColor:"#0036b1"})),i.containerStyles&&(e=Object(a.a)(Object(a.a)({},i.containerStyles),e)),e}(),children:Object(b.jsxs)("div",{className:n.content,style:(null===i||void 0===i||null===(t=i.InputProps)||void 0===t?void 0:t.style)||{},children:[T&&T.length?Object(b.jsx)(b.Fragment,{children:T.map((function(e,t){return Object(b.jsxs)("div",{className:n.selectedItem,children:[Object(b.jsx)("div",{className:n.selectedItemLabel,children:l(i.options[i.options.findIndex((function(t){return t.id===e}))].label)}),Object(b.jsx)(u.a,{onClick:function(t){return function(e,t){e.stopPropagation(),R(T.filter((function(e){return e!==t})))}(t,e)},className:n.removeButtonIcon})]},t)}))}):Object(b.jsx)("div",{className:n.noSelect,children:i.noSelectLabel}),Object(b.jsx)(v.a,{className:n.expandIcon,style:i.containerStyles&&i.containerStyles.top?{top:i.containerStyles.top}:{}})]})}),Object(b.jsx)(O.a,Object(a.a)(Object(a.a)({id:"customized-menu",anchorEl:m,keepMounted:!0,open:Boolean(m),onClose:function(){h(null)}},null===i||void 0===i?void 0:i.menuProps),{},{PaperProps:{style:{minWidth:235,marginTop:49}},children:i.options.map((function(e){return Object(b.jsxs)(g.a,{className:n.menuItem,onClick:function(t){return function(e,t){e.stopPropagation(),T.includes(t)?R(T.filter((function(e){return e!==t}))):R([].concat(Object(j.a)(T),[t]))}(t,e.id)},children:[Object(b.jsx)(x.a,{checked:(t=e.id,!!T.includes(t))}),Object(b.jsx)("span",{className:n.label,children:l(e.label)})]},e.id);var t}))}))]})})),R=["classes","value","options","allowEmpty","renderListItemComponent"],A=Object(i.a)((function(e){return{container:{width:235,background:"rgb(245,246,247)",fontSize:14,color:"#253967",borderBottom:"1px solid rgba(0, 0, 0, 0.42);",cursor:"pointer"},content:{display:"flex",alignItems:"center",padding:"0px 30px 0px 9px",minHeight:38,position:"relative",flexWrap:"wrap"},expandIcon:{color:"#898A8B",position:"absolute",right:9,top:9},menuItem:{fontSize:14,color:"#545556",paddingTop:5,paddingBottom:5},selectedItem:{display:"flex",position:"relative",alignItems:"center",background:"#fff",padding:"4px 30px 4px 4px",margin:"3px 5px 3px 0"},selectedItemLabel:{fontSize:14,color:"#253967"},removeButtonIcon:{color:"#545556",fontSize:16,position:"absolute",right:4}}}))((function(e){var t=e.classes,n=e.value,a=e.options,i=e.allowEmpty,l=e.renderListItemComponent,d=Object(c.a)(e,R),u=Object(o.a)().t,p=Object(r.useState)(null),m=Object(s.a)(p,2),h=m[0],f=m[1],_=Object(r.useState)(d.defaultValue),x=Object(s.a)(_,2),E=x[0],y=x[1];Object(r.useEffect)((function(){d.setFieldValue(d.fieldId,E)}),[E]),Object(r.useEffect)((function(){d.defaultValue&&(d.setFieldValue(d.fieldId,d.defaultValue),y(d.defaultValue))}),[d.defaultValue]),Object(r.useEffect)((function(){y(n)}),[n]);var T=i?[{id:"",label:h?u("select"):"-"}].concat(Object(j.a)(a)):a,A=Object(r.useMemo)((function(){return function(e,t){var n=e&&e.length&&e[T.findIndex((function(e){return e.id===t}))];return n?n.label:"-"}(T,E)}),[a,E,i]);return Object(b.jsxs)(b.Fragment,{children:[Object(b.jsx)("div",{className:t.container,onClick:function(e){f(e.currentTarget)},style:h?{borderBottomColor:"#0036b1"}:{},children:Object(b.jsxs)("div",{className:t.content,children:[E&&E.length?Object(b.jsx)("div",{className:t.selectedItemLabel,children:A}):Object(b.jsx)("div",{children:d.noSelectLabel}),Object(b.jsx)(v.a,{className:t.expandIcon})]})}),Object(b.jsx)(O.a,{id:"".concat(d.fieldId,"-select-menu"),anchorEl:h,keepMounted:!0,open:Boolean(h),onClose:function(){f(null)},PaperProps:{style:{minWidth:235,marginTop:46}},children:T.map((function(e){return Object(b.jsx)(g.a,{className:t.menuItem,onClick:function(){return t=e.id,y(t),void f(null);var t},children:l?l(e):e.label},e.id)}))})]})})),S=n(61),N=n(1710),I=n(1631),C=n(330),w=n.n(C),D=n(83),P=["classes","searchParams","value","newCaseValue","placeholder","options","resetHandler","renderCreateNewItem"],M=Object(i.a)((function(e){return{wrapper:{position:"relative"},resetButton:{position:"absolute",opacity:"0.5",top:9,right:6,cursor:"pointer"},resetButtonIcon:{color:"#545556",fontSize:16},searchButton:{position:"absolute",opacity:"0.5",top:11,right:6},searchButtonIcon:{color:"#545556",fontSize:16},scrollWrapper:{position:"relative",maxHeight:200}}}))((function(e){var t=e.classes,n=e.searchParams,i=void 0===n?["name"]:n,o=e.value,d=e.newCaseValue,p=e.placeholder,m=e.options,h=void 0===m?[]:m,f=e.resetHandler,j=e.renderCreateNewItem,O=void 0===j?function(){}:j,_=Object(c.a)(e,P),v=Object(r.useRef)(),x=function(e){return e&&e.length?e[0].selectName?Object(D.f)(e,Object(D.a)("asc","selectName")):Object(D.f)(e,Object(D.a)("asc","name")):[]},E=Object(r.useState)(""),y=Object(s.a)(E,2),T=y[0],R=y[1],A=Object(r.useState)(null),C=Object(s.a)(A,2),M=C[0],L=C[1],B=Object(r.useState)(o),k=Object(s.a)(B,2),H=k[0],V=k[1],F=Object(r.useState)(h),W=Object(s.a)(F,2),U=W[0],G=W[1],z=Object(r.useState)(!1),Y=Object(s.a)(z,2),q=Y[0],K=Y[1],X=function(){M&&_.setFieldTouched(_.id),L(null)};Object(r.useEffect)((function(){o&&o!==H&&h&&h.length&&V(o),d&&"new"===o&&d&&R(d)}),[o,d]),Object(r.useEffect)((function(){var e;if(M){var t=v&&v.current;if(t)try{e=t&&new S.a(t,{useBothWheelAxes:!1,suppressScrollX:!0})}catch(n){e&&(e.destroy(),e=null)}}return function(){e&&(e.destroy(),e=null)}}),[o,M,U]),Object(r.useEffect)((function(){var e=h.find((function(e){return e.id===H}));H!==o&&e&&_.setFieldValue(_.fieldId,H),e&&e.selectName!==T&&h&&h.length&&H&&e&&R(e.selectName||e.name)}),[H,h]),Object(r.useEffect)((function(){K(!1),G(x(T?h.filter((function(e){for(var t=!1,n=0;n57)&&e.preventDefault()};function O(e){var t=e.classNames,n=(e.selectedDay,e.children),a=e.placement,r=e.inputHeight,s=Object(o.a)(e,h);return Object(m.jsx)("div",Object(i.a)(Object(i.a)({},s),{},{id:"datePickerWrapper",className:t.overlay,style:"bottom"===a?{top:+r+2}:{bottom:+r+2},children:n}))}var g=Object(b.a)((function(e){return{main:{position:"relative","& .DayPickerInput-Overlay":{marginLeft:function(e){return e.datepickerParams&&e.datepickerParams.marginLeft}}},field:{"& > input":{display:"block",minWidth:"100%",borderBottomLeftRadius:4,borderBottomRightRadius:4}},error:{position:"absolute",color:"#e6535c",fontSize:12}}}))((function(e){var t=e.classes,n=e.onChange,o=e.width,c=void 0===o?235:o,d=e.styles,b=void 0===d?{}:d,h=e.disabled,g=e.value,_=e.id,v=void 0===_?"date":_,x=e.error,E=e.disableDates,y=void 0===E?[]:E,T=e.datepickerParams,R=Object(s.useState)(!1),A=Object(r.a)(R,2),S=A[0],N=A[1],I=Object(s.useState)(""),C=Object(r.a)(I,2),w=C[0],D=C[1],P=document.getElementById(v),M=P&&P.offsetHeight||0;return Object(s.useEffect)((function(){if(S){var e=document.getElementById("datePickerWrapper")&&document.getElementById("datePickerWrapper").offsetHeight||0,t=P&&function(e){var t=0;if(e.offsetParent)do{t+=e.offsetTop,e=e.offsetParent}while(e);return t>=0?t:0}(P);T&&T.placement?D(T.placement):window.innerHeight-t<=M+e?D("top"):D("bottom")}}),[S]),Object(m.jsxs)("div",{className:t.main,style:{width:c},children:[Object(m.jsx)(u.a,{dayPickerProps:{modifiers:{disabled:Object(a.a)(y)}},overlayComponent:function(e){return w&&Object(m.jsx)(O,Object(i.a)(Object(i.a)({},e),{},{placement:w,inputHeight:M}))},formatDate:p.formatDate,parseDate:p.parseDate,format:"DD/MM/YYYY",placeholder:"dd/mm/yyyy",onDayChange:function(e){return function(e){e&&n(l()(e).format("DD/MM/YYYY"))}(e)},onDayPickerShow:function(){return N(!0)},onDayPickerHid:function(){return N(!1)},value:g,inputProps:{id:v,disabled:h,onKeyPress:j,onChange:function(e){n(e.target.value)},style:Object(i.a)(Object(i.a)(Object(i.a)({},f),b),{},{borderBottom:x?"1px solid #e6535c":"1px solid rgba(0, 0, 0, 0.42)"})},style:{display:"block"}}),x?Object(m.jsx)("div",{className:t.error,style:{width:1.5*c},children:x}):null]})}))},659:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(43),r=n(44),i=n(58),o=n(59),s=n(1),c=n.n(s),l=n(15),d=n(40),u=n.n(d),b=n(520),p=n(962),m=n(0),h=function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(){var e;Object(a.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:ee,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case g.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case _.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case v.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case y.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case T.type:return Object(a.a)(Object(a.a)({},e),{},{stripe_url:t.payload.stripe_url,isLoading:!1,error:null});case R.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case N.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case I.type:return Object(a.a)(Object(a.a)({},e),{},{account_details:t.payload.account,isLoading:!1,error:null});case C.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case P.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case M.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case L.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case H.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case V.type:return Object(a.a)(Object(a.a)({},e),{},{VATList:t.payload.VATList,isLoading:!1,error:null});case F.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case G.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case z.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case Y.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});default:return e}}},673:function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var a=n(6),r=n(1),i=n.n(r),o=n(913),s=n(15),c=n(1701),l=n(916),d=n(1629),u=n(1720),b=n(1759),p=n(308),m=n.n(p),h=n(665),f=n.n(h),j=n(81),O=n(0),g=function(e,t){var n=e.classes,s=e.label,p=e.entries,h=e.active,g=e.onFilter,_=e.filterType,v=(e.trigger,Object(o.a)().t),x=Object(r.useState)(null),E=Object(a.a)(x,2),y=E[0],T=E[1],R=Object(r.useState)(0),A=Object(a.a)(R,2),S=A[0],N=A[1],I=i.a.createRef();Object(r.useLayoutEffect)((function(){N(I.current.offsetWidth)}),[]),Object(r.useImperativeHandle)(t,(function(){return{closeFilter:function(){T(null)}}}),[]);var C=h&&h.length?h:p&&[p[0]],w=C&&C.length&&C.map((function(e){return e&&v(e.label)})).join(", "),D=function(e){return!!C.map((function(e){return e.id})).includes(e.id)};return Object(O.jsxs)("div",{className:n.wrapper,ref:I,children:[Object(O.jsxs)(c.a,{className:n.button,onClick:function(e){return T(e.currentTarget)},children:[Object(O.jsx)(j.a,{placement:"bottom-end",title:s?"".concat(v(s),": ").concat(w):w,children:Object(O.jsx)("span",{className:n.label,children:s?"".concat(v(s),": ").concat(w):w})}),Object(O.jsx)(m.a,{})]}),Object(O.jsx)(l.a,{open:!!y,anchorEl:y,onClose:function(){return T(null)},PaperProps:{style:{marginTop:60,minWidth:S}},children:p&&p.length&&p.map((function(e,t){return Object(O.jsx)(d.a,{anchorEl:I,children:Object(O.jsx)(u.a,{value:"end",control:Object(O.jsx)(b.a,{disabled:Boolean(e.disabled),color:"custom",checkedIcon:Object(O.jsx)(f.a,{}),checked:D(e),onChange:function(){return g(_,e,D(e)?"remove":"add")},classes:{checked:n.checked,root:n.checkBox}}),label:v(e.label),labelPlacement:"end"})},"".concat(e.id,"-").concat(t))}))})]})},_=Object(s.a)((function(e){return{wrapper:{marginRight:10},button:{border:"1px solid #BDBDBD",borderRadius:2,minWidth:200,display:"flex",justifyContent:"space-between",textTransform:"none",maxHeight:36},checkBox:{color:"#253967"},checked:{color:"#545556"},label:{maxWidth:155,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}}))(Object(r.forwardRef)(g))},68:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));n(923);var a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"EUR";return e||"EUR"},r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EUR";return parseFloat(e).toLocaleString(t||"en",{style:"currency",currency:n||"EUR",currencyDisplay:"code"})}},69:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r}));var a=function(e){var t=(+e).toFixed(2);return isNaN(t)?0:t},r=function(e){for(var t,n="";e>0;)t=(e-1)%26,n=String.fromCharCode(65+t)+n,e=(e-t)/26|0;return n||void 0}},76:function(e,t,n){"use strict";n.d(t,"f",(function(){return j})),n.d(t,"b",(function(){return O})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return _})),n.d(t,"e",(function(){return v})),n.d(t,"a",(function(){return x}));var a,r=n(37),i=n.n(r),o=n(52),s=n(2),c=function(){var e=Object(o.a)(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a){e.next=3;break}return e.next=3,Promise.all([n.e(5),n.e(70)]).then(n.t.bind(null,2172,7)).then((function(e){(a=e).getInstance().init("38713cacac5285d89311ce61029e0d70")}));case 3:return e.abrupt("return",a);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),l=n(30),d=n.n(l),u=n(772),b=n.n(u),p=n(51),m=n(8),h=c(),f=function(e){Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_AMPLITUDE_API_KEY:"38713cacac5285d89311ce61029e0d70",REACT_APP_API_ENDPOINT:"airpap-marina-api.pickapier.com",REACT_APP_ENVIRONMENT:"production",REACT_APP_GOOGLE_MAPS_API_KEY:"AIzaSyCnQ_y2beWV0V8D5cain1g2pH1B-XWr8QE",REACT_APP_GOOGLE_MAP_API_KEY:"https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCnQ_y2beWV0V8D5cain1g2pH1B-XWr8QE&libraries=geometry,drawing,places",REACT_APP_STRIPE_API_KEY:"pk_live_aSW9xC0uTEpKmIVLPPG3Fa5p00EtDqu8zT",REACT_APP_VERSION:"1.0.0"}).REACT_APP_TESTING_AMPLITUDE;try{var t=e.user,n=e.statistics,a={};if(!d()(t.permissions)){var r=t.permissions,i=r.marina_settings,o=r.reservations,c=r.residents;a.permissions_residents=c.toLowerCase(),a.permissions_reservations=o.toLowerCase(),a.permissions_marina_settings=i.toLowerCase()}var l={};if(!d()(n))l={marina_residents:n.total_residents_without_membership,marina_members:n.total_residents_with_membership,marina_approved_reservations:n.total_approved_reservations,marina_absences:n.total_absence_reports};return Object(s.a)(Object(s.a)(Object(s.a)({user_id:t.id,full_name:"".concat(t.first_name," ").concat(t.last_name),email:t.email,marina_name:t.marina&&t.marina.name,marina_country:t.marina&&t.marina.country,language:t.language,marina_association:t.association&&t.association.name},a),l),{},{screen_size:window.screen.width*window.devicePixelRatio+"x"+window.screen.height*window.devicePixelRatio,marina_app_version:Object(p.d)({entity:t.marina})?"lite":"legacy"})}catch(u){console.log("Ampltude: Error get marina user properties function",u)}},j=function(){var e=Object(o.a)(i.a.mark((function e(t){var n,a,r,o,s,l,d,u;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_AMPLITUDE_API_KEY:"38713cacac5285d89311ce61029e0d70",REACT_APP_API_ENDPOINT:"airpap-marina-api.pickapier.com",REACT_APP_ENVIRONMENT:"production",REACT_APP_GOOGLE_MAPS_API_KEY:"AIzaSyCnQ_y2beWV0V8D5cain1g2pH1B-XWr8QE",REACT_APP_GOOGLE_MAP_API_KEY:"https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCnQ_y2beWV0V8D5cain1g2pH1B-XWr8QE&libraries=geometry,drawing,places",REACT_APP_STRIPE_API_KEY:"pk_live_aSW9xC0uTEpKmIVLPPG3Fa5p00EtDqu8zT",REACT_APP_VERSION:"1.0.0"}).REACT_APP_TESTING_AMPLITUDE,e.next=2;break;case 2:if(e.prev=2,!h){e.next=14;break}return n=t.user,a=t.statistics,r=f({user:n,statistics:a}),e.next=8,c();case 8:for(e.t0=e.sent.Identify,o=new e.t0,s=0,l=Object.keys(r);s1&&void 0!==a[1]?a[1]:{},Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_AMPLITUDE_API_KEY:"38713cacac5285d89311ce61029e0d70",REACT_APP_API_ENDPOINT:"airpap-marina-api.pickapier.com",REACT_APP_ENVIRONMENT:"production",REACT_APP_GOOGLE_MAPS_API_KEY:"AIzaSyCnQ_y2beWV0V8D5cain1g2pH1B-XWr8QE",REACT_APP_GOOGLE_MAP_API_KEY:"https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCnQ_y2beWV0V8D5cain1g2pH1B-XWr8QE&libraries=geometry,drawing,places",REACT_APP_STRIPE_API_KEY:"pk_live_aSW9xC0uTEpKmIVLPPG3Fa5p00EtDqu8zT",REACT_APP_VERSION:"1.0.0"}).REACT_APP_TESTING_AMPLITUDE,e.next=3;break;case 3:return e.prev=3,e.next=6,c();case 6:e.sent.getInstance().logEvent(t,n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),console.log("Amplitude create log event error: ",e.t0);case 12:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(t){return e.apply(this,arguments)}}(),g=function(e){Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_AMPLITUDE_API_KEY:"38713cacac5285d89311ce61029e0d70",REACT_APP_API_ENDPOINT:"airpap-marina-api.pickapier.com",REACT_APP_ENVIRONMENT:"production",REACT_APP_GOOGLE_MAPS_API_KEY:"AIzaSyCnQ_y2beWV0V8D5cain1g2pH1B-XWr8QE",REACT_APP_GOOGLE_MAP_API_KEY:"https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCnQ_y2beWV0V8D5cain1g2pH1B-XWr8QE&libraries=geometry,drawing,places",REACT_APP_STRIPE_API_KEY:"pk_live_aSW9xC0uTEpKmIVLPPG3Fa5p00EtDqu8zT",REACT_APP_VERSION:"1.0.0"}).REACT_APP_TESTING_AMPLITUDE;try{var t=e.location;if(!t)return null;var n="";return t.search&&t.search.includes("ref=email")?n="email":t.state?t.state&&t.state.ref&&(n=t.state.ref):n="direct_link",n}catch(a){console.log("Amplitude error in getSource function",a)}},_=function(e){Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_AMPLITUDE_API_KEY:"38713cacac5285d89311ce61029e0d70",REACT_APP_API_ENDPOINT:"airpap-marina-api.pickapier.com",REACT_APP_ENVIRONMENT:"production",REACT_APP_GOOGLE_MAPS_API_KEY:"AIzaSyCnQ_y2beWV0V8D5cain1g2pH1B-XWr8QE",REACT_APP_GOOGLE_MAP_API_KEY:"https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCnQ_y2beWV0V8D5cain1g2pH1B-XWr8QE&libraries=geometry,drawing,places",REACT_APP_STRIPE_API_KEY:"pk_live_aSW9xC0uTEpKmIVLPPG3Fa5p00EtDqu8zT",REACT_APP_VERSION:"1.0.0"}).REACT_APP_TESTING_AMPLITUDE;try{var t=e.reservation,n=e.boater,a=e.reason,r=e.type,i=e.origin,o=e.user,c={},l={},d=m(t.end_date).diff(m(t.start_date),"days");if(n.contact&&n.vessel){var u=n.contact,h=n.vessel;h.home_marina_id&&(c.boater_marina_id=h.home_marina_id,c.boater_marina_name=h.home_marina_name,c.boater_marina_country=h.homeMarina.country);var f={};if(e.payment?f=e.payment:t.payment&&(f=t.payment),f){if(l.price=f.total_to_pay?f.total_to_pay:"-",l.discount_amount=f.marina_discount_percent||"-",f.additional_charges){var j=f.additional_charges,O={};if(b()(j,(function(e,t){if(e.amount>0)return O={taxName:t,amount:e.amount},!1})),O){var g=O,_=g.amount,v=g.taxName;l.additional_chrages_amount=_,l.additional_chrages_type=v}}c.nights_redeemed_amount=f.nights_to_redeem}var x=t.messages&&t.messages.length?t.messages.length:0;return"chat"===r&&(x+=1),Object(s.a)(Object(s.a)(Object(s.a)({origin:i,type:r,reservation_id:t.id,boater_email:u.email||"-",boater_country:u.country,vessel_type:h.type||"-",vessel_loa:h.length,vessel_beam:h.beam,vessel_draft:h.draft,total_messages:x,number_of_nights:d,decline_reason:a,sla:t.sla_until_set_price_in_hours},c),l),{},{marina_app_version:Object(p.d)({entity:o.marina})?"lite":"legacy"})}}catch(E){console.log("Amplitude: Error on send reservation update event function",E)}},v=function(){var e=Object(o.a)(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_AMPLITUDE_API_KEY:"38713cacac5285d89311ce61029e0d70",REACT_APP_API_ENDPOINT:"airpap-marina-api.pickapier.com",REACT_APP_ENVIRONMENT:"production",REACT_APP_GOOGLE_MAPS_API_KEY:"AIzaSyCnQ_y2beWV0V8D5cain1g2pH1B-XWr8QE",REACT_APP_GOOGLE_MAP_API_KEY:"https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCnQ_y2beWV0V8D5cain1g2pH1B-XWr8QE&libraries=geometry,drawing,places",REACT_APP_STRIPE_API_KEY:"pk_live_aSW9xC0uTEpKmIVLPPG3Fa5p00EtDqu8zT",REACT_APP_VERSION:"1.0.0"}).REACT_APP_TESTING_AMPLITUDE,e.next=2;break;case 2:return e.prev=2,e.next=5,c();case 5:e.sent.getInstance().setUserId(null),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(2),console.info("Amplitude remove user identification error: ",e.t0);case 11:case"end":return e.stop()}}),e,null,[[2,8]])})));return function(){return e.apply(this,arguments)}}(),x=function(){var e=Object(o.a)(i.a.mark((function e(t){var n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_AMPLITUDE_API_KEY:"38713cacac5285d89311ce61029e0d70",REACT_APP_API_ENDPOINT:"airpap-marina-api.pickapier.com",REACT_APP_ENVIRONMENT:"production",REACT_APP_GOOGLE_MAPS_API_KEY:"AIzaSyCnQ_y2beWV0V8D5cain1g2pH1B-XWr8QE",REACT_APP_GOOGLE_MAP_API_KEY:"https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyCnQ_y2beWV0V8D5cain1g2pH1B-XWr8QE&libraries=geometry,drawing,places",REACT_APP_STRIPE_API_KEY:"pk_live_aSW9xC0uTEpKmIVLPPG3Fa5p00EtDqu8zT",REACT_APP_VERSION:"1.0.0"}).REACT_APP_TESTING_AMPLITUDE,e.next=2;break;case 2:return e.prev=2,n=t.userId?t.userId:null,e.next=6,c();case 6:e.sent.getInstance().setUserId(n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),console.info("Amplitude add user identification error: ",e.t0);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t){return e.apply(this,arguments)}}()},777:function(e,t,n){"use strict";n(1);var a=n(0),r=function(e){return Object(a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:Object(a.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:"#545556",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",transform:"translate(1 4)",children:[Object(a.jsx)("rect",{width:"21",height:"15",x:".5",y:".75",rx:"1.5"}),Object(a.jsx)("path",{d:"M21.161 1.3l-8.144 6.264c-1.19.915-2.845.915-4.034 0L.839 1.3"})]})})};r.displayName="Email",r.muiName="SvgIcon",t.a=r},779:function(e,t,n){"use strict";n.d(t,"b",(function(){return c}));var a=n(37),r=n.n(a),i=n(52),o=n(13),s="/admin/marina/getall/";function c(){return Object(o.b)(s,{}).then((function(e){return e.json()}))}t.a={create:function(){var e=Object(i.a)(r.a.mark((function e(t){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(o.b)("/admin/marina/add",t).then((function(e){return e.json()}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),update:function(){var e=Object(i.a)(r.a.mark((function e(t){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(o.b)("admin/marina/update",t).then((function(e){return e.json()}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}},781:function(e,t,n){"use strict";n(1);var a=n(0),r=function(e){return Object(a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",children:Object(a.jsx)("g",{fill:"none",fillRule:"evenodd",children:Object(a.jsx)("g",{stroke:"#FFF",children:Object(a.jsx)("g",{children:Object(a.jsx)("g",{children:Object(a.jsxs)("g",{children:[Object(a.jsx)("path",{strokeLinejoin:"round",strokeWidth:"1.5",d:"M16.813 12.172V9.017c0-1.067-1.036-1.931-2.315-1.931H9.87c-1.278 0-2.314.864-2.314 1.93v3.403",transform:"translate(-204 -276) translate(185 220.115) translate(13 46.885) translate(6 9.5)"}),Object(a.jsx)("path",{strokeLinejoin:"round",strokeWidth:"1.5",d:"M12 10.692L18.72 13.456 16.702 17.928 7.298 17.928 5.28 13.456z",transform:"translate(-204 -276) translate(185 220.115) translate(13 46.885) translate(6 9.5)"}),Object(a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M21 13.333v5c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2v-5h0",transform:"translate(-204 -276) translate(185 220.115) translate(13 46.885) translate(6 9.5)"}),Object(a.jsx)("path",{strokeLinejoin:"round",strokeWidth:"1.5",d:"M13.511 4.444c0-.245-.269-.444-.6-.444h-1.2c-.331 0-.6.199-.6.444v2.223h2.4V4.444zM12 17.613L12 10.692",transform:"translate(-204 -276) translate(185 220.115) translate(13 46.885) translate(6 9.5)"}),Object(a.jsx)("path",{strokeLinecap:"square",d:"M5.5 16.5L3.5 17.5",transform:"translate(-204 -276) translate(185 220.115) translate(13 46.885) translate(6 9.5)"}),Object(a.jsx)("path",{strokeLinecap:"square",d:"M20.5 16.5L18.5 17.5",transform:"translate(-204 -276) translate(185 220.115) translate(13 46.885) translate(6 9.5) matrix(-1 0 0 1 39 0)"})]})})})})})})};r.displayName="BerthTableIcon",r.muiName="SvgIcon",t.a=r},81:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(2),r=n(29),i=(n(1),n(1723)),o=n(0),s=["children","title","placement","arrow","testID"],c=function(e){var t=e.children,n=e.title,c=e.placement,l=void 0===c?"bottom":c,d=e.arrow,u=void 0===d||d,b=e.testID,p=Object(r.a)(e,s);return Object(o.jsx)(i.a,Object(a.a)(Object(a.a)({title:n,placement:l,arrow:u,testID:b},p),{},{children:t}))}},82:function(e,t,n){"use strict";n.d(t,"g",(function(){return se})),n.d(t,"a",(function(){return ee})),n.d(t,"f",(function(){return ne})),n.d(t,"e",(function(){return te})),n.d(t,"c",(function(){return ie})),n.d(t,"b",(function(){return ae})),n.d(t,"d",(function(){return re}));var a=n(2),r=n(5),i=n(37),o=n.n(i),s=n(52),c=n(13),l=n(104),d=n(76),u="/admin/migrator/migrate_user",b="/admin/marina/self/",p="/admin/users/firstLoginComplete",m="/admin/users/firstTimeChangePassword",h=function(e){return new Promise((function(t,n){var a=e.email,r=e.password,i=e.onError;l.a.auth&&l.a.auth.signInWithEmailAndPassword(a,r).then((function(e){var n={id:l.a.auth.currentUser.uid,email:a};t(e),Object(d.a)({userId:n.id}).then(Object(d.b)("login"))})).catch((function(e){"auth/invalid-api-key"===e.code&&console.log("api key error"),i&&i(e),n(e)}))}))};function f(e,t){return h({email:e,password:t}).then((function(e){return{success:e}}),(function(n){return"auth/user-not-found"!==n.code?{error:n}:Object(c.b)(u,{email:e,password:t}).then((function(e){return 401===e.status||e.error_type?{error:e}:e.json()})).then((function(n){return n.error?{error:n}:h({email:e,password:t}).then((function(e){return{success:e}}),(function(e){return console.error(e),{error:e}}))}))}))}function j(){return O.apply(this,arguments)}function O(){return(O=Object(s.a)(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(d.e)(),e.abrupt("return",l.a.signOut());case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(){return Object(c.b)(b,{}).then((function(e){return e.json()}))}function _(e,t,n){return v.apply(this,arguments)}function v(){return(v=Object(s.a)(o.a.mark((function e(t,n,a){var r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.a.changePassword(t,n);case 2:if(!a){e.next=18;break}return e.next=5,Object(c.b)(m,{});case 5:if(e.t1=r=e.sent,e.t0=null===e.t1,e.t0){e.next=9;break}e.t0=void 0===r;case 9:if(!e.t0){e.next=13;break}e.t2=void 0,e.next=14;break;case 13:e.t2=r.json();case 14:if(!(i=e.t2)||!i.error_type){e.next=17;break}throw i.error_type;case 17:return e.abrupt("return",i);case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var x=n(269),E=n(185),y=n(153),T=n(97),R=n(483),A=n(95),S=n(240),N=n(8),I=n.n(N),C=n(51),w=Object(r.b)("USER_AUTH"),D=w.request,P=w.success,M=w.failure,L=w.set,B=Object(r.b)("USER_DATA"),k=B.request,H=B.success,V=B.failure,F=Object(r.b)("FIRST_LOGIN_COMPLETE"),W=F.request,U=F.success,G=F.failure,z=(F.set,Object(r.b)("CHANGE_PASSWORD").set),Y=Object(r.b)("FORGOT_PASSWORD"),q=Y.request,K=Y.success,X=Y.failure,Q=Y.set,Z=Object(r.b)("USER_LOGOUT"),J=Z.success,$=Z.set,ee=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:oe,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case D.type:return{isLoading:!0,updates:e.updates};case P.type:return{isLoading:!1,email:t.payload.email,errorData:void 0,updates:e.updates};case M.type:return{isLoading:!1,errorData:t.payload,updates:e.updates};case J.type:return oe;case H.type:return Object(a.a)(Object(a.a)({},e),{},{user:Object(a.a)({},t.payload),updates:e.updates});case V.type:return Object(a.a)(Object(a.a)({},e),{},{user:void 0,updates:e.updates});case U.type:return Object(a.a)(Object(a.a)({},e),{},{user:Object(a.a)(Object(a.a)({},e.user),{},{language:t.payload.language,is_first_login:t.payload.firstLogin})});case q.type:case K.type:return{isLoading:!1};case X.type:return{isLoading:!1,errorData:t.payload};default:return e}}},827:function(e,t,n){"use strict";n(1);var a=n(0),r=function(){return Object(a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(a.jsx)("path",{d:"M10.2999 10.2998L7.00005 7M7.00005 7L3.70022 3.70017M7.00005 7L10.2999 3.70017M7.00005 7L3.70022 10.2998",stroke:"#121A2C",strokeWidth:"2",strokeLinecap:"round"})})};r.displayName="SuggestionRemoveIcon",t.a=r},83:function(e,t,n){"use strict";n.d(t,"f",(function(){return b})),n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return u}));var a=n(268),r=n.n(a),i=n(8),o=n.n(i),s=n(23);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3?arguments[3]:void 0,i=function e(t){var a=null;for(var r in t){if(r===n&&t[r])return t;if(t[r]instanceof Object&&(a=e(t[r])))break}return a},o=e,s=t;JSON.stringify(e)&&JSON.stringify(t)&&n&&(o=i(e)?i(e):e,s=i(t)?i(t):t);var c=function(e){var t=function(e){return isNaN(e)?"string"===typeof e?r.a.remove(e).toLowerCase():e:Number(e)};return e[n]instanceof Object?t(e[n][a]):t(e[n])};return!c(s)||c(s)c(o)?1:0}function l(e,t){if(e&&e.length){var n=e.map((function(e,t){return[e,t]})),a=n.filter((function(e){return Object(s.h)(e[0].expDate.date,"DD/MM/YYYY")}));return a.sort((function(e,n){var a=o()(e[0].expDate.date,"DD/MM/YYYY"),r=o()(n[0].expDate.date,"DD/MM/YYYY"),i=a.diff(r,"days")*t(e[0].expDate.date,n[0].expDate.date);return 0!==i?i:e[1]-n[1]})),a.concat(n.filter((function(e){return!Object(s.h)(e[0].expDate.date,"DD/MM/YYYY")}))).map((function(e){return e[0]}))}}function d(e,t){if(e&&e.length){var n=e.map((function(e,t){return[e,t]}));return n.sort((function(e,n){var a,r,i,o,s=((null===(a=e[0].association)||void 0===a?void 0:a.name)||"n/a").localeCompare((null===(r=n[0].association)||void 0===r?void 0:r.name)||"n/a"),c=((null===(i=n[0].association)||void 0===i?void 0:i.name)||"n/a").localeCompare((null===(o=e[0].association)||void 0===o?void 0:o.name)||"n/a");return"asc"===t?s:c})),n.map((function(e){return e[0]}))}}function u(e,t){if(e&&e.length){var n=e.map((function(e,t){return[e,t]}));return n.sort((function(e,n){var a,r,i,o,s,c,l,d,u,b,p=((null===(a=e[0].marina_settings)||void 0===a||null===(r=a.permissions)||void 0===r?void 0:r.view_mode)||"n/a").localeCompare((null===(i=n[0].marina_settings)||void 0===i||null===(o=i.permissions)||void 0===o?void 0:o.view_mode)||"n/a"),m=((null===(s=n[0].marina_settings)||void 0===s||null===(c=s.permissions)||void 0===c?void 0:c.view_mode)||"n/a").localeCompare((null===(l=e[0].marina_settings)||void 0===l||null===(d=l.permissions)||void 0===d?void 0:d.view_mode)||"n/a");null===(u=n[0].marina_settings)||void 0===u||null===(b=u.permissions)||void 0===b||b.view_mode;return"asc"===t?p:m})),n.map((function(e){return e[0]}))}}function b(e,t){if(e&&e.length){var n=e.map((function(e,t){return[e,t]}));return n.sort((function(e,n){var a=t(e[0],n[0]);return 0!==a?a:e[1]-n[1]})),n.map((function(e){return e[0]}))}}function p(e,t,n){return"desc"===e?function(e,a){return c(e,a,t,n)}:function(e,a){return-c(e,a,t,n)}}var m=/[^a-zA-Z]/g,h=/[^0-9]/g;function f(e,t,n){if(e&&e.length)return e.sort((function(e,n){var a=e.berth_name.replace(m,""),r=n.berth_name.replace(m,"");if(a===r){var i=parseInt(e.berth_name.replace(h,""),10),o=parseInt(n.berth_name.replace(h,""),10);return i===o?0:"desc"===t?i>o?1:-1:i>o?-1:1}return"desc"===t?a>r?1:-1:a>r?-1:1}))}},85:function(e,t,n){"use strict";var a=n(74),r=n(903),i=n(904),o=n.n(i),s=n(905),c=n.n(s),l=n(906),d=n.n(l),u=n(907),b=n.n(u),p=n(8),m=n.n(p),h=n(274),f={en:n(522)},j=window.localStorage.getItem("lang")||"en";a.a.use(r.a).use(h.e).init({resources:f,lng:j,fallbackLng:"en",detection:{order:["path"],lookupFromPathIndex:0},keySeparator:!1,escapeInterpolation:!1,interpolation:{escapeValue:!1},react:{transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0}}),a.a.on("languageChanged",(function(e){m.a.locale(e,[o.a,c.a,d.a,b.a]),f[e]||n(1210)("./"+e).then((function(t){f[e]=t,a.a.addResources(e,null,t),a.a.changeLanguage(e)}))})),t.a=a.a},892:function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return p}));var a=n(2),r=n(5),i=n(13),o="/admin/chain_manager/list",s=function(){return Object(i.b)(o,{}).then((function(e){return e.json()}))},c=Object(r.b)("GET_REPORTS"),l=c.request,d=c.success,u=c.failure,b=c.set,p=function(){return Object(r.f)({request:s,actionSet:b})},m={isLoading:!1,list:[],error:null},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case l.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case d.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,list:t.payload});case u.type:return{isLoading:!1,list:[]};default:return e}}},893:function(e,t,n){"use strict";n.d(t,"d",(function(){return L})),n.d(t,"c",(function(){return I})),n.d(t,"e",(function(){return P})),n.d(t,"a",(function(){return C})),n.d(t,"b",(function(){return w})),n.d(t,"g",(function(){return N})),n.d(t,"f",(function(){return D}));var a=n(2),r=n(5),i=n(13),o="/admin/settings/marina_requirements",s="/admin/attachment/getall",c="/admin/attachment/create",l="/admin/attachment/delete",d=function(e){return Object(i.b)(o,e).then((function(e){return e.json()}))},u=function(e){return Object(i.b)(s,e).then((function(e){return e.json()}))},b=function(e){return Object(i.b)(c,e).then((function(e){return e.json()}))},p=function(e){return Object(i.b)(l,e).then((function(e){return e.json()}))},m=Object(r.b)("UPDATE_MARINA_REQUIREMENTS"),h=m.request,f=m.success,j=m.failure,O=m.set,g=Object(r.b)("RESERVATION_ATTACHMENTS"),_=g.request,v=g.success,x=g.failure,E=g.reset,y=g.set,T=Object(r.b)("CREATE_RESERVATION_ATTACHMENT"),R=(T.request,T.success,T.failure,T.set),A=Object(r.b)("DELETE_RESERVATION_ATTACHMENT"),S=(A.request,A.success,A.failure,A.set),N=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:M,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case h.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case f.type:var n=t.payload,r=n.reservation_limits,i=n.marina_requirements,o=n.reservation_approval_kit_schedule_type,s=n.instant_booking_requirements,c=n.instant_booking_additional_requirements;return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,list:t.payload.updated,reservationLimits:r,marinaRequirements:i,instantBookingRequirements:s,instantBookingAdditionalRequirements:c,scheduleType:o});case j.type:return{isLoading:!1,error:t.payload,list:{}};case _.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case v.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,attachments:t.payload,error:null});case x.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case E.type:return Object(a.a)(Object(a.a)({},e),{},{attachments:[]});case"SELECT_SETTINGS_TAB":return Object(a.a)(Object(a.a)({},e),{},{tabId:t.payload});default:return e}}},894:function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return p}));var a=n(2),r=n(13),i="/admin/boater_activity/get",o=function(e){return Object(r.b)(i,e).then((function(e){return e.json()}))},s=n(5),c=Object(s.b)("GET_BOATER_ACTIVITIES"),l=c.request,d=c.success,u=c.failure,b=c.set,p=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:m,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case l.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case d.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null,data:t.payload});case u.type:return{isLoading:!1,error:t.payload,data:[]};default:return e}}},895:function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return p}));var a=n(2),r=n(5),i=n(13),o="/admin/memberships/count/";function s(){return Object(i.a)(o,{}).then((function(e){return e.json()}))}var c=Object(r.b)("GET_MEMBERSHIPS_COUNT"),l=c.request,d=c.success,u=c.failure,b=c.set,p=function(){return Object(r.f)({request:s,actionSet:b})},m={error:null,isLoading:!0,count:{}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case l.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case d.type:return Object(a.a)(Object(a.a)({},e),{},{count:t.payload});case u.type:return Object(a.a)(Object(a.a)({},e),{},{count:m.count,isLoading:!1,error:t.payload});default:return e}}},896:function(e,t,n){"use strict";n.d(t,"c",(function(){return D})),n.d(t,"b",(function(){return A})),n.d(t,"e",(function(){return C})),n.d(t,"a",(function(){return S})),n.d(t,"f",(function(){return N})),n.d(t,"d",(function(){return I}));var a=n(2),r=n(5),i=n(13),o="/admin/loyalty/promotions",s="/admin/loyalty/create_promotion",c="/admin/loyalty/update_promotion",l=function(){return Object(i.a)(o,{}).then((function(e){return e.json()}))},d=function(e){return Object(i.b)(s,e).then((function(e){return e.json()}))},u=Object(r.b)("PROMOTIONS"),b=u.request,p=u.success,m=u.failure,h=u.reset,f=u.set,j=Object(r.b)("CREATE_PROMOTION"),O=j.request,g=j.success,_=j.failure,v=j.reset,x=j.set,E=Object(r.b)("PROMOTION_UPDATE"),y=E.request,T=E.success,R=E.failure,A=(E.set,function(){return Object(r.f)({request:l,actionSet:f})}),S=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:w,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case b.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case p.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,list:t.payload,error:null});case m.type:return{isLoading:!1,list:[],error:t.payload};case h.type:return Object(a.a)(Object(a.a)({},e),{},{list:[]});case O.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case g.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,created:t.payload,error:null});case _.type:return{isLoading:!1,created:null,error:t.payload};case v.type:return Object(a.a)(Object(a.a)({},e),{},{created:null});case y.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case T.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case R.type:return{isLoading:!1,error:t.payload};default:return e}}},897:function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return p}));var a=n(2),r=n(5),i=n(13),o="/admin/chain_manager/reset",s=function(){return Object(i.b)(o,{}).then((function(e){return e.json()}))},c=Object(r.b)("PERFORM_RESET"),l=c.request,d=c.success,u=c.failure,b=c.set,p=function(){return Object(r.f)({request:s,actionSet:b})},m={isLoading:!1,error:null},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case l.type:return Object(a.a)(Object(a.a)({},e),{},{error:null,isLoading:!0});case d.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1});case u.type:return{isLoading:!1,error:"Reset Failed!"};default:return e}}},898:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(2),r=n(6),i=n(29),o=n(1),s=n(61),c=n(4),l=n(15),d=n(1642),u=n(1625),b=n(1627),p=n(22),m=n(0),h=["classes","className","children","onChange"],f=Object(l.a)((function(e){return{optionsList:{overflow:"hidden",position:"relative",maxHeight:"inherit"}}}))((function(e){var t=e.classes,n=e.className,l=e.children,f=e.onChange,j=Object(i.a)(e,h),O=Object(o.useState)({}),g=Object(r.a)(O,2),_=g[0],v=g[1],x=Object(o.useState)(!1),E=Object(r.a)(x,2),y=E[0],T=E[1],R=Object(o.useRef)(),A=Object(o.useRef)(),S=o.Children.toArray(l),N=function(e){f(e),T(!1)};return 1===S.length?S=[Object(o.cloneElement)(S[0],{onClick:function(){return N(S[0].props.value)}})]:S.length>0&&(S=o.Children.map(S,(function(e){return Object(o.cloneElement)(e,{onClick:function(){return N(e.props.value)}})}))),Object(o.useEffect)((function(){var e;return y&&Object(p.a)((function(){}),300).then((function(){var t=A&&A.current;if(t){var n=t.parentNode.clientHeight;t.style.height="".concat(n,"px");try{e=t&&new s.a(t,{useBothWheelAxes:!1,suppressScrollX:!0})}catch(a){e&&(e.destroy(),e=null)}}})),function(){e&&(e.destroy(),e=null)}}),[_,y]),Object(o.useLayoutEffect)((function(){var e=function(){v({height:window.innerHeight,width:window.innerWidth})};return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}}),[]),Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)(d.a,Object(a.a)(Object(a.a)({ref:R,className:Object(c.a)(t.select,n),open:!1,onOpen:function(){return T(!0)}},j),{},{children:S})),Object(m.jsx)(u.a,Object(a.a)(Object(a.a)({open:y,anchorEl:R.current,onClose:function(){return T(!1)}},j.MenuProps),{},{children:Object(m.jsx)("div",{ref:A,className:t.optionsList,children:Object(m.jsx)(b.a,{children:S})})}))]})}))},899:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var a=n(6),r=n(1),i=n(19),o=n(15),s=n(1706),c=n(21),l=n(18),d=n(1629),u=n(1713),b=n(916),p=n(119),m=n(55),h=n(277),f=n.n(h),j=n(0),O=Object(o.a)((function(e){return{root:{padding:"15px 0 2px 0",fontSize:e.utils.pxToRem(16),display:"flex",justifyContent:"center"},liteRoot:{paddingBottom:41},text:{fontSize:14,color:"#1A1A1B",marginRight:8},buttonColor:{color:"#1A1A1B",boxShadow:"none",border:"1px solid #d8d8d8",background:"#fff",paddingLeft:"20px",paddingRight:"10px",borderRadius:20},liteText:{color:"#333333",paddingRight:24},liteButton:{"&.MuiButton-root":{padding:"0 0 0 24px"},"& .MuiButton-label":{height:"100%"}},liteIconWrapper:{height:34,width:38,display:"flex",alignItems:"center",justifyContent:"center",borderLeft:"1px solid #bdbdbd"},liteIcon:{color:"#333333"},wrapper:{display:"flex",flexDirection:"row",height:"100%",alignItems:"center"}}}))(Object(i.j)(Object(l.b)((function(e,t){return{user:Object(c.X)(e)}}),(function(e){return{}}))(Object(s.a)()((function(e){var t=e.classes,n=e.selectedYear,i=e.setSelectedYear,o=e.yearList,s=e.isMarinaLiteVersion,c=void 0!==s&&s,l=Object(r.useState)(null),h=Object(a.a)(l,2),O=h[0],g=h[1],_=Object(r.useMemo)((function(){return!o||!o.length}),[o]),v=function(e){!_&&g(e.currentTarget)},x=o.map((function(e){return Object(j.jsxs)(d.a,{value:e,onClick:function(){return i(e+""),void g(null)},testID:e+" yearMenuItem",children:[e,Object(j.jsx)(u.a,{})]},e)}));return Object(j.jsx)(j.Fragment,{children:Object(j.jsxs)("div",{className:c?t.liteRoot:t.root,children:[c?Object(j.jsx)(m.a,{isMarinaLiteVersion:!0,disabled:_,type:"secondary",onClick:v,testID:"openYearPicker",additionalStyling:t.liteButton,children:Object(j.jsxs)("div",{className:t.wrapper,children:[Object(j.jsx)("span",{className:t.liteText,children:n}),Object(j.jsx)("div",{className:t.liteIconWrapper,children:Object(j.jsx)(f.a,{className:t.liteIcon})})]})}):Object(j.jsx)(p.a,{className:t.buttonColor,onClick:v,testID:"openYearPicker",disabled:_,children:Object(j.jsxs)("div",{className:t.wrapper,children:[Object(j.jsx)("span",{className:t.text,children:n}),Object(j.jsx)(f.a,{style:{color:"#1A1A1B"}})]})}),Object(j.jsxs)(b.a,{id:"menu",style:{top:40},anchorEl:O,open:!!O,onClose:function(){g(null)},PaperProps:{style:{minWidth:90,justifyContent:"center"}},children:[Object(j.jsx)(u.a,{tabIndex:"-1",style:{display:"none"}}),x]})]})})})))))},900:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));n(1);var a=n(8),r=n.n(a),i=n(15),o=n(921),s=n.n(o),c=n(412),l=n.n(c),d=n(425),u=n.n(d),b=n(922),p=n.n(b),m=n(81),h=n(913),f=n(28),j=n(23),O=n(0),g=Object(i.a)((function(e){return{marinaIcon:{fontSize:e.utils.pxToRem(16)}}}))((function(e){var t=e.classes,n=e.status,a=e.date,i=e.data,o=Object(h.a)().t;return"waiting"===n||i&&i.is_temporary?Object(O.jsx)(m.a,{placement:"bottom-start",title:o("boater_marinaWaiting"),testID:"waitingIconToolTip",children:Object(O.jsx)(s.a,{className:t.marinaIcon,style:{color:"#253967",background:"#e3e6ee",borderRadius:16}})}):"approved"===n?Object(O.jsx)(m.a,{placement:"bottom-start",title:Object(f.a)(o("boater_marinaApproved",{date:a?Object(j.b)(r()(a)):"-"})),testID:"approvedIconToolTip",children:Object(O.jsx)(l.a,{className:t.marinaIcon,style:{color:"#00c48c",background:"#d5f2ea",borderRadius:16}})}):"noVerified"===n?Object(O.jsx)(m.a,{placement:"bottom-start",title:o("boater_marinaNotApproved"),testID:"notVerifiedIconToolTip",children:Object(O.jsx)(u.a,{className:t.marinaIcon,style:{color:"#253967",background:"#e3e6ee",borderRadius:16}})}):"declined"===n?Object(O.jsx)(m.a,{placement:"bottom-start",title:Object(f.a)(o("boater_marinaWasDeclined",{date:Object(j.b)(r()(a))})),testID:"declinedIconToolTip",children:Object(O.jsx)(p.a,{className:t.marinaIcon,style:{color:"#f17272",background:"#ffdbdb",borderRadius:16}})}):Object(O.jsx)("div",{})}))},901:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var a=n(2),r=n(6),i=n(29),o=n(1),s=n(61),c=n(15),l=n(1710),d=n(1633),u=n(1631),b=n(1627),p=n(1629),m=n(263),h=n(0),f=["classes","id","setValue","error","width"],j={padding:"6px 10px 2px 10px",background:"#EFF2F8",width:"235px"},O=Object(c.a)((function(e){return{field:{borderBottomLeftRadius:4,borderBottomRightRadius:4,"& > div":{backgroundColor:"rgba(81,97,111,0.06)"},"&:first-child":{marginTop:0}}}}))((function(e){var t=e.classes,n=e.id,c=e.setValue,O=e.error,g=e.width,_=Object(i.a)(e,f),v=Object(m.getData)(),x=Object(o.useRef)(),E=Object(o.useState)(null),y=Object(r.a)(E,2),T=y[0],R=y[1],A=Object(o.useState)(v),S=Object(r.a)(A,2),N=S[0],I=S[1],C=Object(o.useState)(""),w=Object(r.a)(C,2),D=w[0],P=w[1];Object(o.useEffect)((function(){_.value&&(Object(m.getName)(_.value)&&P(Object(m.getName)(_.value)),Object(m.getCode)(_.value)&&P(_.value))}),[]),Object(o.useEffect)((function(){var e;if(open){var t=x&&x.current;if(t){var n=t.parentNode.clientHeight;t.style.height="".concat(n,"px");try{e=t&&new s.a(t,{useBothWheelAxes:!1,suppressScrollX:!0})}catch(a){e&&(e.destroy(),e=null)}}}return function(){e&&(e.destroy(),e=null)}}),[T]);return Object(h.jsx)(l.a,{onClickAway:function(e){return R(null)},children:Object(h.jsxs)("div",{className:t.wrapper,children:[Object(h.jsx)(d.a,{onFocus:function(e){return function(e){R(e.currentTarget)}(e)},className:t.field,margin:"none",name:n,InputProps:{style:Object(a.a)(Object(a.a)({},j),{},{width:g||j.width}),id:n},value:D,error:!!O,helperText:O,onChange:function(e){return function(e){P(e.target.value);var t=Object(m.getCode)(e.target.value);I(v.filter((function(t){return t.name.toLocaleLowerCase().includes(e.target.value.toLocaleLowerCase())}))),t&&c(n,t)}(e)},FormHelperTextProps:{style:{position:"absolute",bottom:-20,width:350}}}),Object(h.jsx)(u.a,{open:!!T,onClose:function(){return R(null)},anchorEl:T,transition:!0,disablePortal:!0,style:{minWidth:235,maxWidth:235,marginBottom:15,maxHeight:200,background:"#fff",zIndex:1},children:Object(h.jsx)(b.a,{ref:x,children:N.map((function(e){return Object(h.jsx)(p.a,{style:{background:"#fff"},onClick:function(t){return function(e,t){e.stopPropagation(),e.preventDefault(),P(t.name),c(n,t.code),R(null)}(t,e)},children:e.name},e.code)}))})})]})})}))},91:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));n(1);var a=n(40),r=n.n(a),i=n(15),o=n(1701),s=n(308),c=n.n(s),l=n(0),d=Object(i.a)((function(e){return{button:function(t){return{display:"flex",justifyContent:"space-around",textTransform:"none",textAlign:"center",fontSize:e.utils.pxToRem(14),color:"#fff !important",backgroundColor:t.disabled?"#c9c7c5 !important":"#4071e2",borderRadius:16,padding:"8px 18px 8px 19px !important",width:"fit-content !important",border:"1px solid transparent !important","&:hover":{background:"#0036b1 !important",color:"#fff !important"}}}}}))((function(e){var t=e.classes,n=e.label,a=e.dropDown,i=e.bold,s=e.minWidth,d=e.onClick,u=e.customClasses,b=e.disabled,p=e.type,m=e.className;return Object(l.jsxs)(o.a,{variant:"outlined",onClick:d,className:r()(t.button,m),classes:u,style:a?s?{minWidth:s}:{minWidth:192}:{},disabled:b,type:p,children:[Object(l.jsx)("span",{testId:"button-"+n,style:i?{fontWeight:700}:{},children:n}),a&&Object(l.jsx)(c.a,{})]})}))},93:function(e,t,n){"use strict";n.d(t,"f",(function(){return N})),n.d(t,"k",(function(){return I})),n.d(t,"s",(function(){return C})),n.d(t,"y",(function(){return w})),n.d(t,"h",(function(){return D})),n.d(t,"e",(function(){return P})),n.d(t,"i",(function(){return M})),n.d(t,"p",(function(){return k})),n.d(t,"v",(function(){return H})),n.d(t,"g",(function(){return V})),n.d(t,"b",(function(){return W})),n.d(t,"m",(function(){return F})),n.d(t,"d",(function(){return U})),n.d(t,"n",(function(){return L})),n.d(t,"o",(function(){return B})),n.d(t,"l",(function(){return G})),n.d(t,"q",(function(){return z})),n.d(t,"t",(function(){return q})),n.d(t,"u",(function(){return X})),n.d(t,"w",(function(){return Q})),n.d(t,"r",(function(){return Y})),n.d(t,"a",(function(){return K})),n.d(t,"x",(function(){return Z})),n.d(t,"c",(function(){return J})),n.d(t,"j",(function(){return $}));var a=n(13),r="/admin/inventory/pier/create/",i="/admin/inventory/pier/getall/",o="/admin/inventory/pier/get/",s="/admin/inventory/pier/update/",c="/admin/inventory/pier/delete/",l="/admin/inventory/berth/create/",d="/admin/inventory/berth/getall/",u="/admin/inventory/available_berths/",b="/admin/inventory/get_available_matched_berths/",p="/admin/inventory/berth/get/",m="/admin/inventory/berth/update/",h="/admin/inventory/berth/delete/",f="/admin/inventory/berth/allocate",j="/admin/inventory/vessel/getall",O="/admin/inventory/availability_check",g="/admin/inventory/dock_walker/pier/getall",_="/admin/inventory/dock_walker/berth/get",v="/admin/inventory/dock_walker/absence_inquiry",x="/admin/inventory/dock_walker/session/start",E="/admin/inventory/dock_walker/berth/",y="/admin/inventory/dock_walker/add/vessel",T="/admin/inventory/dock_walker/update/vessel",R="/admin/inventory/dock_walker/session/update",A="/admin/inventory/dock_walker/session/getAll",S="/admin/inventory/dock_walker/berth/change_occupied_vessel",N=function(e){return Object(a.b)(r,{pier:e}).then((function(e){return e.json()}))},I=function(e){return Object(a.b)(i,{session_id:e}).then((function(e){return e.json()}))},C=function(e){return Object(a.b)(o,{pier_id:e}).then((function(e){return e.json()}))},w=function(e){return Object(a.b)(s,{pier:e}).then((function(e){return e.json()}))},D=function(e){return Object(a.b)(c,{pier_id:e}).then((function(e){return e.json()}))},P=function(e){return Object(a.b)(l,{berth:e}).then((function(e){return e.json()}))},M=function(e){return Object(a.b)(d,{only_available_berths:e}).then((function(e){return e.json()}))},L=function(e){return Object(a.b)(u,e).then((function(e){return e.json()}))},B=function(e){return Object(a.b)(b,e).then((function(e){return e.json()}))},k=function(e){return Object(a.b)(p,{berth_id:e}).then((function(e){return e.json()}))},H=function(e){return Object(a.b)(m,{berth:e}).then((function(e){return e.json()}))},V=function(e){return Object(a.b)(h,{berth_id:e}).then((function(e){return e.json()}))},F=function(e){return Object(a.b)(j,{only_available_vessels:e}).then((function(e){return e.json()}))},W=function(e){return Object(a.b)(f,e).then((function(e){return e.json()}))},U=function(e,t,n){return Object(a.b)(O,{berth_id:e,start_date:t,end_date:n}).then((function(e){return e.json()}))},G=function(e){return Object(a.b)(g,{session_id:e}).then((function(e){return e.json()}))},z=function(e){return Object(a.b)(_,{berth_id:e}).then((function(e){return e.json()}))},Y=function(e){return Object(a.a)(E+e).then((function(e){return e.json()}))},q=function(e,t){return Object(a.b)(v,{vessel_id:e,berth_id:t}).then((function(e){return e.json()}))},K=function(e){return Object(a.b)(y,{vessel:e}).then((function(e){return e.json()}))},X=function(){return Object(a.b)(x,{}).then((function(e){return e.json()}))},Q=function(e){return Object(a.b)(R,e).then((function(e){return e.json()}))},Z=function(e){return Object(a.b)(T,e).then((function(e){return e.json()}))},J=function(e,t,n,r){return Object(a.b)(S,{selected_vessel_id:e,previous_selected_vessel_id:t,berth_id:n,email_address:r}).then((function(e){return e.json()}))},$=function(){return Object(a.b)(A,{}).then((function(e){return e.json()}))}},944:function(e,t){},949:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return ta}));var a=n(18),r=n(97),i=n(203),o=n(153),s=n(95),c=n(512),l=n(127),d=n(21),u=n(12),b=n(404),p=n(158),m=n(484),h=n(185),f=n(29),j=n(2),O=n(37),g=n.n(O),_=n(52),v=n(6),x=n(1),E=n.n(x),y=n(19),T=n(8),R=n.n(T),A=n(25),S=n(15),N=n(656),I=n(51),C=n(0),w=function(e){return Object(C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"21",viewBox:"0 0 17 21",children:Object(C.jsx)("g",{fill:"none",fillRule:"evenodd",children:Object(C.jsx)("g",{fill:"#253967",children:Object(C.jsx)("g",{children:Object(C.jsxs)("g",{transform:"translate(-205 -130) translate(168 108) translate(37 22)",children:[Object(C.jsx)("path",{d:"M9.563 19.125c.586 0 1.062.476 1.062 1.062 0 .125-.021.244-.06.355h-3.42c-.04-.11-.062-.23-.062-.355 0-.586.476-1.062 1.062-1.062h1.418z",transform:"rotate(-180 8.854 19.833)"}),Object(C.jsx)("rect",{width:"17",height:"3.542",y:"14.875",rx:"1.771"}),Object(C.jsx)("path",{d:"M8.5 2.125c3.52 0 6.375 2.854 6.375 6.375v3.728c0 .676-.105 1.328-.3 1.939H2.425c-.195-.611-.3-1.263-.3-1.939V8.5c0-3.52 2.854-6.375 6.375-6.375z"}),Object(C.jsx)("rect",{width:"1.417",height:"3.896",x:"7.792",rx:".708"})]})})})})})};w.displayName="AlarmBellFilled";var D=w,P=n(61),M=n(26),L=n(913),B=n(119),k=n(648),H=n(633),V=n(4),F=n(194),W=n(331),U=n.n(W),G=n(533),z=n(354),Y=function(e){return Object(C.jsx)(z.a,Object(j.a)(Object(j.a)({viewBox:"0 0 27 28"},e),{},{children:Object(C.jsx)("g",{fill:"none",fillRule:"evenodd",children:Object(C.jsx)("g",{children:Object(C.jsx)("g",{children:Object(C.jsxs)("g",{children:[Object(C.jsx)("path",{d:"M0 0H27V27H0z",transform:"translate(-355.000000, -144.000000) translate(215.000000, 138.000000) translate(140.000000, 6.379765)"}),Object(C.jsx)("path",{fill:"#FFF",d:"M20.658 8.62v2.26l-6.5-1.7-.5-.13-.5.13-6.5 1.7V8.62c0-1.38 1.12-2.5 2.5-2.5h9c1.38 0 2.5 1.12 2.5 2.5M19.657 21.62h-12l-4.269-5.244c-.43-.48-.51-1.211-.2-1.79.18-.332.47-.565.8-.666l9.67-2.8 9.67 2.8c.33.1.62.334.8.667.31.578.23 1.31-.2 1.789l-4.27 5.244z",transform:"translate(-355.000000, -144.000000) translate(215.000000, 138.000000) translate(140.000000, 6.379765)"}),Object(C.jsx)("path",{stroke:"#FFF",strokeLinecap:"round",strokeWidth:"2",d:"M3.658 22.12s1.104-1 2.368-1c1.263 0 1.313 1 2.55 1 1.239 0 1.276-1 2.52-1 1.246 0 1.256 1 2.514 1 1.257 0 1.119-1 2.45-1 1.333 0 1.174 1 2.517 1s1.415-1 2.642-1c1.227 0 1.126 1 2.439 1",transform:"translate(-355.000000, -144.000000) translate(215.000000, 138.000000) translate(140.000000, 6.379765)"}),Object(C.jsx)("path",{stroke:"#FFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13.658 6.62L13.658 4",transform:"translate(-355.000000, -144.000000) translate(215.000000, 138.000000) translate(140.000000, 6.379765)"})]})})})})}))};Y.displayName="VisitorVesselIcon";var q=Y,K=Object(S.a)((function(e){return{wrapper:{display:"flex",position:"relative",alignItems:"center",fontSize:e.utils.pxToRem(21),padding:10,borderTopRightRadius:4},img:{width:40,height:40,color:"#ffffff",background:"#1f253e",borderRadius:"50%",textAlign:"center",margin:"0 9px 0 20px"},contactImg:{margin:"0 13px 0 15px"},svg:{marginTop:12,marginBottom:5,width:65,height:56},noImg:{lineHeight:"40px"},resident:{background:"#d0f1eb"},waiting:{background:"#eee"},vessel:{paddingBottom:12,flexDirection:"column",backgroundColor:"rgb(237,250,251)",background:"linear-gradient(0deg, rgba(237,250,251,1) 0%, rgba(227,247,248,1) 50%, rgba(213,243,244,1) 100%)"},visitor:{background:"#d5edf9"},contact:{backgroundColor:"#ffffff",paddingTop:24,paddingBottom:15},text:{color:"#1A1A1B"},name:{color:"#000000",maxWidth:170,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:20},button:{position:"absolute",bottom:11,right:0,textTransform:"none",fontWeight:"bold",padding:"4px 10px"},typeLabelWrapper:{display:"flex",justifyContent:"space-around",alignItems:"center",background:"#1569a1",padding:11,borderRadius:4},whiteLine:{width:100,height:1,background:"#fff"},typeLabel:{color:"#fff",fontSize:12,textTransform:"uppercase",display:"flex",alignItems:"center"},vesselIcon:{display:"flex",paddingRight:8,fontSize:27}}}))((function(e){var t=e.classes,n=e.customerType,a=e.firstName,r=e.lastName,i=e.email,o=e.tem_member,s=e.isMarinaLiteVersion,c=Object(L.a)().t,l=a||r?"".concat(a||"-"," ").concat(r||"-"):i;return Object(C.jsxs)(C.Fragment,{children:[!s&&Object(C.jsxs)("div",{className:t.typeLabelWrapper,children:[Object(C.jsx)("div",{className:t.whiteLine}),Object(C.jsxs)("span",{className:t.typeLabel,children:[Object(C.jsx)(q,{className:t.vesselIcon})," ",c("customers_visitor")]}),Object(C.jsx)("div",{className:t.whiteLine})]}),Object(C.jsxs)("div",{className:Object(V.a)(t.wrapper,t[n],t.contact),children:[Object(C.jsx)("span",{className:Object(V.a)(t.img,t.contactImg),style:{background:{resident:"#75dfb2",waiting:"#8D9AA4",visitor:"#81cdff"}[n]},children:Object(C.jsx)("span",{className:t.noImg,children:a&&r&&"".concat(a.charAt(0)).concat(r.charAt(0))})}),Object(C.jsxs)("span",{children:[Object(C.jsx)(F.a,{className:Object(V.a)(t.text,t.name),children:l}),Object(C.jsx)(F.a,{className:t.text,style:{display:"flex",alignItems:"center",fontSize:"0.8765rem"},children:o&&Object(C.jsxs)(C.Fragment,{children:[c("TEMarinas"),Object(C.jsx)(U.a,{fontSize:"small",style:{marginLeft:5,color:"#44c4a1"}})]})})]})]})]})})),X=n(524),Q=n(55),Z=Object(y.j)(Object(S.a)((function(e){return{cont:{display:"flex",flexDirection:"column",position:"relative",height:"calc(100% - 125px)"},liteCont:{height:"100%"},scrollWrapper:{overflow:"hidden",background:"#fff",width:"100%"},viewFull:{display:"flex",justifyContent:"flex-end",marginRight:10,paddingBottom:24}}}))((function(e){var t=e.classes,n=e.data,a=e.customerType,r=e.pageType,i=e.history,o=e.updateReservationMM,s=e.creationMode,c=e.isSignedUp,l=e.isGuest,d=e.setFieldValue,u=e.setFieldTouched,b=(e.handleChange,e.errors),p=e.presetForm,m=e.isMarinaLiteVersion,h=e.hideReservationPopup,f=e.isMarinaLiteEditable,j=Object(L.a)().t,O="reservation"!==r&&"resident"!==a?X.a.filter((function(e){return"document"!==e.fieldType})):X.a,g=Object(x.useState)(!1),_=Object(v.a)(g,2),E=_[0],y=_[1],T=Object(x.useState)(!1),R=Object(v.a)(T,2),S=R[0],N=R[1];E&&(S||s)&&(O=[{label:"firstName_placeholder",dataKey:"first_name"},{label:"lastName_placeholder",dataKey:"last_name"}].concat(Object(M.a)(O))),Object(x.useEffect)((function(){c||!S&&!s?c&&y(!1):y(!0)}),[S,s,c]);return Object(C.jsxs)("div",{children:[Object(C.jsx)(K,{firstName:n?n.first_name:"-",lastName:n?n.last_name:"-",email:n?n.email:"-",customerType:a,tem_member:n&&n.tem_member,isMarinaLiteVersion:m}),Object(C.jsx)("div",{className:Object(V.a)(t.cont,m&&t.liteCont),children:Object(C.jsxs)("div",{className:t.scrollWrapper,id:"cardInfoContainer",children:[Object(C.jsx)(k.a,{isFirst:!0,children:O.map((function(e){return Object(C.jsx)(H.a,{cardRow:!0,id:e.dataKey,label:j(e.label),value:n?n[e.dataKey]:"",noData:e.noData?j(e.noData):"-",fieldType:"country_of_residence"===e.dataKey?"country":e.fieldType||"text",editMode:E&&(S||s),setFieldValue:d,setFieldTouched:u,datepickerParams:e.datepickerParams,error:b[e.dataKey],tableType:"reservation",isMarinaLiteVersion:m},e.dataKey)}))}),S?Object(C.jsxs)("div",{className:t.viewFull,children:[Object(C.jsx)(B.a,{type:"secondary",onClick:function(){return N(!1)},color:"primary",testID:"cancelDialog",className:t.button2,children:j("cancel")}),Object(C.jsx)(B.a,{type:"main",onClick:function(){o("UPDATE",{boater:n}),N(!1)},testID:"confirmDialog",className:t.button2,children:j("update")})]}):s?Object(C.jsx)(C.Fragment,{}):Object(C.jsxs)("div",{className:t.viewFull,children:[Object(C.jsx)(Q.a,{type:"link",isMarinaLiteVersion:m,disabled:c||l||!f,onClick:function(){N(!0),p(n)},children:j("edit")}),!A.isMobile&&"boater"!==r&&n&&n.id&&Object(C.jsx)(Q.a,{type:"link",isMarinaLiteVersion:m,disabled:!f||n.email.includes("*"),onClick:function(){m&&h(),i.push("/boaters/".concat(n.id))},children:j("boater_viewFullCard")})]})]})})]})}))),J=n(22),$=n.p+"static/media/ic_back_btn.06a85fcd.svg",ee=["classes","data","cardType","withScroll","pageType","match","history","documents","user","getOcrLink","ocr","view","editMode","creationMode","updateReservationMM","presetForm","isMarinaLiteVersion","hideReservationPopup","isMarinaLiteEditable","onBackClicked"],te=Object(y.j)(Object(S.a)((function(e){return{wrapper:{width:368,maxWidth:368,borderRadius:4,border:"solid 1px #cdcdcd",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.13)",background:"#fff"},liteWrapper:{width:408,position:"absolute",top:0,left:0},liteMobileWrapper:{width:"100%",flexGrow:1,minWidth:1},cont:{display:"flex",flexDirection:"column",position:"relative",height:"calc(100% - 75px)"},scrollWrapper:{overflow:"hidden",position:"absolute",width:311,height:"100%",background:"#fff"},marinaName:{position:"relative",paddingLeft:5},marinaIcon:{fontSize:e.utils.pxToRem(16)},liteInner:{position:"relative",height:"calc(100vh - 214px)",overflow:"hidden",borderRight:"1px solid #c5c5c5"},backWrapper:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:8,fontWeight:600,fontSize:17,lineHeight:"120%",color:"#121A2C",cursor:"pointer",marginTop:10,marginLeft:18}}}))((function(e){var t=e.classes,n=e.data,a=e.cardType,r=(e.withScroll,e.pageType),i=(e.match,e.history,e.documents,e.user,e.getOcrLink,e.ocr,e.view,e.editMode),o=e.creationMode,s=e.updateReservationMM,c=e.presetForm,l=e.isMarinaLiteVersion,d=e.hideReservationPopup,u=e.isMarinaLiteEditable,b=e.onBackClicked,p=Object(f.a)(e,ee),m=Object(x.useState)(null),h=Object(v.a)(m,2),j=h[0],O=h[1],g=Object(L.a)().t;return Object(x.useEffect)((function(){var e,t=document.getElementById("cardInfoContainer");return l||(e=new P.a(t)),function(){e&&e.destroy(),e=null}}),[]),Object(x.useEffect)((function(){var e,t=j&&j.current;return Object(J.a)((function(){})).then((function(){l&&(e=t&&new P.a(j&&j.current))})),function(){e&&(e.destroy(),e=null)}}),[j]),Object(x.useEffect)((function(){O(E.a.createRef())}),[]),Object(C.jsx)("div",{className:l?A.isMobile?t.liteMobileWrapper:t.liteWrapper:t.wrapper,children:Object(C.jsxs)("div",{ref:j,className:l?t.liteInner:"",children:[A.isMobile&&Object(C.jsxs)("div",{className:t.backWrapper,onClick:b,children:[Object(C.jsx)("img",{src:$,alt:"back"}),Object(C.jsx)("span",{children:g("navigation_reservation")})]}),Object(C.jsx)(Z,{data:n,customerType:a,pageType:r,isGuest:n.is_guest,isSignedUp:n.is_signed_up,editMode:i,creationMode:o,setFieldValue:p.setFieldValue,setFieldTouched:p.setFieldTouched,handleChange:p.handleChange,errors:p.errors,updateReservationMM:s,presetForm:c,isMarinaLiteVersion:l,hideReservationPopup:d,isMarinaLiteEditable:u})]})})}))),ne=n(410),ae=n(31),re=n(253),ie=n.n(re),oe=[{index:0,label:"reservation_details",type:"details"},{index:1,label:"reservation_messages",type:"messages",disableOnCreationMode:!0}],se=[{label:"reservation_dates",formatter:"dates",required:!0,section:"general"},{formatter:"suggestions",section:"general"},{label:"boater_vesselName",formatter:"vessel_name",required:!0,section:"general"},{label:"boater_vesselName",formatter:"vessel_id",required:!0,section:"general"},{label:"newReservationWizardVesselSizes",formatter:"vesselSize",required:!0,section:"general"},{label:"Types",formatter:"vesselTypes",required:!1,section:"general"},{label:"boaterInquiries",formatter:"notes",section:"general"},{label:"internalNotes",formatter:"internalNotes",section:"general"},{label:"reservationMatchingSectionField",label1:"reservationMatchingSectionField",label2:"reservationMatchingSectionFieldCanceled",formatter:"berth_id",section:"berthing"},{label:"reservation_additionalRequirements",icon:"additionalCard",formatter:"additionalRequirements"},{label:"BOAT_USAGE",formatter:"private_commercial",section:"pricing"},{label:"live_aboard",formatter:"live_aboard",section:"pricing"},{label:"contract",icon:"cash",formatter:"contract",section:"pricing"},{label:"reservation_pricePerNight",label2:"reservatison_totalBerthingPrice",formatter:"price_per_night",required:!0,section:"pricing"},{label:"reservation_price_suggestion",formatter:"price_suggestion",section:"pricing"},{label:"pricingDiscountsNumbering",formatter:"discount",section:"pricing"},{label:"reservation_nightsToRedeem",formatter:"nights_to_redeem",section:"pricing"},{label:"reservation_additionalCharges",icon:"cash",formatter:"additionalCharges",section:"pricing"},{label:"reservation_paymentRequest",icon:"cash",formatter:"paymentRequest",section:"pricing"},{label:"reservation_customSurcharges",icon:"cash",formatter:"custom_surcharges",section:"pricing"},{label:"reservation_payment",icon:"payment",formatter:"payment",section:"pricing"},{label:"reservation_payment_status",formatter:"paymentStatus",section:"pricing"},{label:"reservation_payout_status",formatter:"payoutStatus",section:"pricing"},{label:"reservation_membership",icon:"contact",formatter:"membership",required:!0}],ce=Object(S.a)((function(e){return{main:{color:"#707070",fontSize:17}}}))((function(e){var t=e.classes,n=e.title;return Object(C.jsx)("div",{className:t.main,children:n})})),le=n(28),de=n(69),ue=Object(S.a)((function(e){return{wrapper:Object(ae.a)({display:"flex",alignItems:"flex-start",minWidth:"10.9375rem"},"@media (max-width:1390px)",{minWidth:"7.9375rem"}),title:Object(ae.a)({fontSize:15,fontFamily:"Lato",color:"#1A1A1B"},"@media (max-width:1390px)",{maxWidth:135})}}))((function(e){var t=e.classes,n=e.label;return Object(C.jsx)("div",{className:t.wrapper,children:Object(C.jsx)(F.a,{className:t.title,children:n})})})),be=n(1701),pe=n(1710),me=n(1631),he=n(520),fe=n(131),je=n(344),Oe=n(781),ge=n(262),_e=["classes","label","style"],ve=Object(S.a)((function(e){return{wrapper:{fontSize:17,color:"#1A1A1B",margin:0}}}))((function(e){var t=e.classes,n=e.label,a=e.style,r=Object(f.a)(e,_e);return Object(C.jsx)("span",Object(j.a)(Object(j.a)({style:a,className:t.wrapper},r),{},{children:n}))})),xe=(Object(y.j)(Object(S.a)((function(e){return{wrapper:{display:"flex",alignItems:"center",justifyContent:"space-between",minWidth:455},liteWrapper:{},button:{fontSize:14,fontWeight:700,textTransform:"none"},allocateBtn:{whiteSpace:"nowrap",minWidth:75,padding:"4px 22px",borderRadius:50,boxShadow:"0 3px 10px 0 rgba(0, 0, 0, 0.06), 0 2px 2px 0 rgba(0, 0, 0, 0.08)",color:"#fff",background:"#255EDD",border:"none","&:hover":{color:"#255EDD",background:"#fff"},"&.Mui-disabled":{color:"#fff",opacity:.3}},marginButton:{marginLeft:10},changeButton:{paddingLeft:5},viewButton:{color:"#1A1A1B"},cancelButton:{minWidth:75,padding:"4px",borderRadius:50,boxShadow:"0 3px 10px 0 rgba(0, 0, 0, 0.06), 0 2px 2px 0 rgba(0, 0, 0, 0.08)",border:"solid 1px #e3e6ee"},menuItem:{color:"#255EDD",fontWeight:700,fontSize:14},scrollWrapper:{position:"relative",maxHeight:308},tooltipWrapper:{position:"relative"},tooltipInner:{padding:"15px 0 15px 10px"},tooltipItem:{display:"flex",alignItems:"center",height:42,marginBottom:2,minWidth:219,color:"#535353",fontSize:14,paddingRight:20},tooltipBerthItem:{color:"#253967",fontSize:18},icon:{height:"100%",width:36,background:"#A2ACC7",display:"flex",justifyContent:"center",alignItems:"center",marginRight:29},arrow:{position:"absolute",left:0,width:17,height:33,marginLeft:"-16px","&::before":{content:'""',borderWidth:"17px 17px 16px 0",borderColor:"transparent #e1e1e1 transparent transparent",margin:"auto",display:"block",width:0,height:0,borderStyle:"solid"},"&::after":{content:'""',top:1,position:"absolute",right:0,borderWidth:"16px 16px 15px 0",borderColor:"transparent #ffffff transparent transparent",margin:"auto",display:"block",width:0,height:0,borderStyle:"solid"}},setManual:{display:"flex",alignItems:"center"},autocompleteWrapper:{minWidth:130},selectedMatch:{color:"#545556",fontSize:20,paddingRight:10}}}))((function(e){var t,n=e.classes,a=e.rowData,r=e.piersMap,i=e.berthList,o=e.allocateReservation,s=e.status,c=e.isMarinaLiteVersion,l=Object(L.a)().t,d="approved"===s,u=Object(x.useRef)(null),b=Object(x.useState)([]),p=Object(v.a)(b,2),m=p[0],h=p[1],f=Object(x.useState)(null),j=Object(v.a)(f,2),O=j[0],E=j[1],y=Object(x.useState)(null),T=Object(v.a)(y,2)[1],R=Object(x.useState)(null),A=Object(v.a)(R,2),S=A[0],N=A[1],I=Object(x.useState)(null),w=Object(v.a)(I,2),D=w[0],M=w[1],B=Object(x.useState)(!1),k=Object(v.a)(B,2),H=k[0],F=k[1],W=Object(x.useState)([]),U=Object(v.a)(W,2),G=U[0],z=U[1],Y=Object(x.useState)(null),q=Object(v.a)(Y,2),K=q[0],X=q[1],Q=Object(x.useState)(null),Z=Object(v.a)(Q,2),J=Z[0],$=Z[1],ee=Object(x.useState)(""),te=Object(v.a)(ee,2),ne=te[0],re=te[1],ie=Object(x.useState)(!1),oe=Object(v.a)(ie,2),se=oe[0],ce=oe[1];Object(x.useEffect)((function(){a.matches&&a.matches.length&&h(a.matches.filter((function(e){return!e.custom&&e.available})))}),[a.matches]),Object(x.useEffect)((function(){if(a.vessel_id&&!Object(fe.a)(r)&&i&&i.length){var e=i.map((function(e){var t=r[e.pier_id];return{id:e.id,name:"".concat(t.name).concat(e.number)}}));z(e)}}),[a.vessel_id,r,i]),Object(x.useEffect)((function(){var e;if(S){var t=u&&u.current;if(t)try{e=t&&new P.a(t,{useBothWheelAxes:!1,suppressScrollX:!0})}catch(n){e&&(e.destroy(),e=null)}}return function(){e&&(e.destroy(),e=null)}}),[S]),Object(x.useEffect)((function(){var e=a.selected_match,t=r;if(!e||Object(fe.a)(e)||Object(fe.a)(t))X(null);else if(e.available){var n=null;if(e.vessel_id){n={type:"absence_report",id:e.absence_report_id,name:e.vessel.name}}else{var i=e.berth;n={type:"berth",id:i.id,name:"".concat(t[i.pier_id].name).concat(i.number)},$({id:n.id,name:n.name})}X(n),ce(!1)}else ce(!0)}),[a.selected_match,r]),Object(x.useEffect)((function(){var e=r;if(!Object(fe.a)(e)&&m.length){var t=m.filter((function(e){return!e.order}))[0];if(t){var n={id:t.id};t.vessel_id?(n.type="absence_report",n.name=t.vessel.name,n.absence_report_id=t.absence_report_id):(n.type="berth",n.name="".concat(e[t.berth.pier_id].name).concat(t.berth.number),n.berth_id=t.berth_id),E(n)}}}),[r,m]);var le=function(){var e=Object(_.a)(g.a.mark((function e(){var t;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={reservation_id:a.id,start_date:a.start_date,end_date:a.end_date},H?(t.custom_berth_id=J.id,F(!1),X({type:"berth",id:J.id,name:J.name})):t.match_id=O.id,o(t);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),de=function(e){N(e.currentTarget)},ue=function(){N(null)},_e=function(){return m.length&&!se?m.length>1?l("reservationMatchingSectionYesMultiple",{number:m.length}):l("reservationMatchingSectionYesSingle"):l("reservationMatchingSectionNo")};return Object(C.jsx)("div",{className:Object(V.a)(n.wrapper,c&&n.liteWrapper),children:d?Object(C.jsx)(C.Fragment,{children:H?Object(C.jsxs)("div",{className:n.setManual,children:[Object(C.jsx)("div",{className:n.autocompleteWrapper,children:Object(C.jsx)(je.a,{onChange:function(e,t){$(t)},onInputChange:function(e,t){re(t)},value:J,options:G,inputValue:ne,onCreate:function(){return F(!1)},reservation_id:a.id})}),Object(C.jsx)(be.a,{variant:"outlined",color:"primary",className:Object(V.a)(n.button,n.cancelButton,n.marginButton),onClick:function(){K&&"berth"===K.type?$({id:K.id,name:K.name}):$(null),F(!1)},children:l("reservationsMatchingSectionEditMatchCancel")}),Object(C.jsx)(be.a,{disabled:!J,onClick:le,className:Object(V.a)(n.button,n.allocateBtn,n.marginButton),color:"default",children:l("reservationsMatchingSectionEditMatchSave")})]}):Object(C.jsxs)(C.Fragment,{children:[K?Object(C.jsx)("div",{className:n.selectedMatch,children:K.name}):null,m.length&&!se?Object(C.jsx)(C.Fragment,{children:Object(C.jsx)(be.a,{onClick:function(){T(null),F(!0)},className:Object(V.a)(n.button,n.allocateBtn),color:"default",children:l("reservationMatchingSectionChangeMatchManually")})}):Object(C.jsxs)(C.Fragment,{children:[K?null:Object(C.jsx)(ve,{style:{whiteSpace:"nowrap"},label:_e()}),Object(C.jsx)(be.a,{onClick:function(){return F(!0)},className:Object(V.a)(n.button,n.marginButton,(t={},Object(ae.a)(t,n.allocateBtn,!K),Object(ae.a)(t,n.changeButton,K),t)),color:K?"primary":"default",children:l(K?"reservationsMatchingSectionEditMatch":"reservationsMatchingSectionSetManually")})]})]})}):Object(C.jsxs)(C.Fragment,{children:[Object(C.jsx)(ve,{label:_e()}),m.length?Object(C.jsx)(pe.a,{onClickAway:ue,children:Object(C.jsxs)("div",{className:n.tooltipWrapper,children:[Object(C.jsx)(be.a,{size:"small",className:Object(V.a)(n.button,n.viewButton,n.marginButton),onClick:function(e){S?ue():de(e)},children:l("reservationMatchingSectionAll")}),Object(C.jsxs)(me.a,{open:!!S,onClose:ue,anchorEl:S,transition:!0,placement:"right-start",disablePortal:!0,style:{boxShadow:"0px 2px 5px 0px rgba(0,0,0,0.26)",maxHeight:338,background:"#fff",zIndex:1},modifiers:{offset:{enabled:!0,offset:"-20, 20"},flip:{enabled:!1},arrow:{enabled:!0,element:D}},children:[Object(C.jsx)("span",{className:n.arrow,ref:M}),Object(C.jsx)(he.a,{className:n.tooltipInner,square:!0,variant:"outlined",children:Object(C.jsx)("div",{className:n.scrollWrapper,ref:u,children:m.map((function(e,t){var a=Boolean(!e.vessel_id),i=r,o=a?Object(fe.a)(i)?"":"".concat(i[e.berth.pier_id].name).concat(e.berth.number):e.vessel.name;return Object(C.jsxs)("div",{className:Object(V.a)(n.tooltipItem,Object(ae.a)({},n.tooltipBerthItem,a)),children:[Object(C.jsx)("div",{className:n.icon,children:a?Object(C.jsx)(Oe.a,{}):Object(C.jsx)(ge.a,{})}),o]},t)}))})})]})]})}):null]})})}))),n(424)),Ee=n(1754),ye=n(1633),Te=Object(S.a)((function(e){return{wrapper:{display:"flex",alignItems:"center",justifyContent:"space-between",minWidth:455},setManual:{display:"flex",alignItems:"center"},autocompleteWrapper:{minWidth:200},autocompleteLiteWrapper:{minWidth:104},selectedBerth:{color:"##1A1A1B",fontSize:17},optionWrapper:{height:"100%",width:"100%",padding:"0 16px",display:"flex",alignItems:"center"},optionText:{fontSize:17,lineHeight:"20px",color:"#121A2C"},input:{backgroundColor:"#f4f9fe","& .MuiInput-root":{paddingLeft:12,height:46}},liteInput:{"& .MuiInput-root":{color:"#333333"}},button:{fontSize:14,fontWeight:700,textTransform:"none"},assignBtn:{whiteSpace:"nowrap",minWidth:75,padding:"4px 22px",borderRadius:50,boxShadow:"0 3px 10px 0 rgba(0, 0, 0, 0.06), 0 2px 2px 0 rgba(0, 0, 0, 0.08)",color:"#fff",background:"#255EDD",border:"none","&:hover":{color:"#255EDD",background:"#fff"},"&.Mui-disabled":{color:"#fff",opacity:.3}},marginButton:{marginLeft:10}}}))((function(e){var t=e.classes,n=e.rowData,a=e.piersMap,r=e.berthList,i=e.isMarinaLiteVersion,o=e.allocateReservation,s=e.setFieldValue,c=e.status,l=Object(L.a)().t,d=R()(n.start_date,"YYYY-MM-DD"),u=R()().startOf("day"),b=d.diff(u,"days")>=0&&"canceled_by_marina"!==c&&"canceled_by_boater"!==c&&"EXPIRED_NO_MARINA_RESPONSE"!==c&&"EXPIRED_NO_BOATER_RESPONSE"!==c&&"expired_no_marina_response"!==c&&"expired_no_boater_response"!==c,p=Object(x.useState)(!1),m=Object(v.a)(p,2),h=m[0],f=m[1],O=Object(x.useState)([]),E=Object(v.a)(O,2),y=E[0],T=E[1],A=Object(x.useState)(null),S=Object(v.a)(A,2),N=S[0],I=S[1],w=Object(x.useState)(""),D=Object(v.a)(w,2),P=D[0],B=D[1];Object(x.useEffect)((function(){if(n.vessel_id&&!Object(fe.a)(a)&&r&&r.length){var e=n.vessel.length,t=parseFloat(e),i=r.filter((function(e){var n=e.length;return!n||parseFloat(n)-t>=0})),o=r.filter((function(e){return!i.some((function(t){return t.id===e.id}))})),s=[].concat(Object(M.a)(i.sort((function(e,t){return e.length-t.length}))),Object(M.a)(o.sort((function(e,t){return t.length-e.length})))).map((function(e){var t=a[e.pier_id];return{id:e.id,name:"".concat(t.name).concat(e.number)}}));T(s)}}),[n.vessel_id,a,r]),Object(x.useEffect)((function(){var e=n.berth_id,t=n.berth,r=a;if(!e||Object(fe.a)(t)||Object(fe.a)(r))I(null);else{var i={type:"berth",id:t.id,name:"".concat(r[t.pier_id].name).concat(t.number)};I({id:i.id,name:i.name})}}),[n.berth_id,a]);var k=function(){var e=Object(_.a)(g.a.mark((function e(){var t;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={reservation_id:n.id,berth_id:N?N.id:null},o(t);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(C.jsx)("div",{className:t.wrapper,children:b?Object(C.jsxs)("div",{className:t.setManual,children:[Object(C.jsx)("div",{className:i?t.autocompleteLiteWrapper:t.autocompleteWrapper,children:Object(C.jsx)(Ee.a,{blurOnSelect:!0,fullWidth:!0,id:"berth-search-autocomplete",value:N,onChange:function(e,t){I(t),s("berth_id",t?t.id:null)},getOptionLabel:function(e){return e.name},getOptionSelected:function(e){return e.name},filterOptions:function(e){var n=function(e,t){var n=t.inputValue;return n?Object(xe.a)(e,n,{keys:["name"]}):[]}(e,{inputValue:P});return P?n.length?n:[{name:Object(C.jsx)("div",{className:t.noResultsOption,onClick:function(e){return e.stopPropagation()},children:Object(C.jsx)("p",{className:t.noResultsText,children:l("RESIDENT_BERTH_NOT_FOUND")})})}]:e},inputValue:P,onInputChange:function(e,t){B(t)},options:y,renderOption:function(e){return Object(C.jsx)("div",{className:t.optionWrapper,children:Object(C.jsx)("div",{className:t.optionText,children:e.name})})},ListboxProps:{style:{maxHeight:140}},renderInput:function(e){return Object(C.jsx)(ye.a,Object(j.a)(Object(j.a)({},e),{},{className:Object(V.a)(t.input,i&&t.liteInput),margin:"none",placeholder:h?"":l("RESIDENT_BERTH_SEARCH_PH"),onFocus:function(){return f(!0)},onBlur:function(){return f(!1)}}))}})}),Object(C.jsx)(be.a,{onClick:k,className:Object(V.a)(t.button,t.assignBtn,t.marginButton),color:"default",children:l("reservationsMatchingSectionEditMatchSave")})]}):Object(C.jsx)(C.Fragment,{children:N?Object(C.jsx)("div",{className:t.selectedBerth,children:N.name}):null})})})),Re=n(1619),Ae=n(1624),Se=n(1715),Ne=n(1716),Ie=n(1717),Ce=n(1718),we=n(339),De=n(1623),Pe=n(954),Me=n(241),Le=function(){return Object(C.jsxs)("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(C.jsx)("path",{d:"M13.4685 3.30078H4.36176C2.68525 3.30078 1.32617 4.6887 1.32617 6.40078V14.1508C1.32617 15.8629 2.68525 17.2508 4.36176 17.2508H13.4685C15.145 17.2508 16.5041 15.8629 16.5041 14.1508V6.40078C16.5041 4.6887 15.145 3.30078 13.4685 3.30078Z",stroke:"#121A2C",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(C.jsx)("path",{d:"M5.87956 1.75V4.85M11.9507 1.75V4.85M1.32617 7.95H16.5041",stroke:"#121A2C",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})};Le.displayName="SuggestionPicker";var Be=Le,ke=n(827),He=(n(416),n(417),n(23)),Ve=Object(S.a)((function(e){return{wrapper:{display:"flex",alignItems:"center",paddingTop:8,paddingBottom:8,minWidth:438},wrapperMobile:{paddingTop:8,paddingBottom:8,position:"relative"},title:{color:"#333333",fontWeight:600,fontSize:15,lineHeight:"18px",marginRight:10,minWidth:100},titleMobileStyles:{marginBottom:5},suggestionField:{width:290,height:48,display:"flex",alignItems:"center",backgroundColor:"#f2f2f2",borderBottom:"1px solid #333333",boxSizing:"border-box",cursor:"pointer"},suggestionFieldMobileStyles:{width:"90%"},icon:{height:"100%",width:45,display:"flex",alignItems:"center",justifyContent:"center",marginRight:6,borderRight:"1px solid #BDBDBD"},dates:{display:"flex",alignItems:"center"},date:{color:"#121A2C",fontSize:15,lineHeight:1.2,paddingRight:5},dateEmpty:{color:"#828282"},removeButtom:{position:"absolute",right:"-10px",top:34}}}))((function(e){var t=e.classes,n=e.index,a=e.suggestionsNumber,r=e.onChange,i=e.onRemove,o=e.start_date,s=e.end_date,c=Object(L.a)().t,l=Object(x.useState)(null),d=Object(v.a)(l,2),u=d[0],b=d[1],p=Object(x.useState)(null),m=Object(v.a)(p,2),h=m[0],f=m[1],j=Object(x.useState)("startDate"),O=Object(v.a)(j,2),g=O[0],_=O[1],E=Object(x.useState)(!1),y=Object(v.a)(E,2),T=y[0],S=y[1],N=Object(x.useState)(!1),I=Object(v.a)(N,2),w=I[0],D=I[1],P=Object(x.useState)(!1),M=Object(v.a)(P,2),B=M[0],k=M[1];Object(x.useEffect)((function(){b(o),f(s)}),[o,s]);Object(x.useEffect)((function(){R.a.isMoment(u)&&D(!0)}),[u]),Object(x.useEffect)((function(){R.a.isMoment(h)&&k(!0)}),[h]),Object(x.useEffect)((function(){w&&B&&(S(!1),r({startDate:u.format("YYYY-MM-DD"),endDate:h.format("YYYY-MM-DD")}))}),[w,B]),Object(x.useEffect)((function(){T||(D(!1),k(!1))}),[T]);return Object(C.jsxs)("div",{className:A.isMobile?t.wrapperMobile:t.wrapper,children:[Object(C.jsx)("div",{className:Object(V.a)(t.title,A.isMobile&&t.titleMobileStyles),children:c("RESERVATION_FORM_OTHER_AVAILABILITIES_SUGGESTION",{index:Object(de.a)(n+1)})}),Object(C.jsxs)("div",{className:Object(V.a)(t.suggestionField,A.isMobile&&t.suggestionFieldMobileStyles),onClick:function(){return S(!0)},children:[Object(C.jsx)("div",{className:t.icon,children:Object(C.jsx)(Be,{})}),Object(C.jsxs)("div",{className:t.dates,children:[u&&!h&&Object(C.jsx)("span",{className:t.date,children:"".concat(Object(He.b)(u)," - ")}),!u&&h&&Object(C.jsx)("span",{className:t.date,children:"- ".concat(Object(He.b)(h))}),u&&h&&Object(C.jsx)("span",{className:t.date,children:Object(He.c)(u,h)})]})]}),(1!==a||u||h)&&Object(C.jsx)(De.a,{"aria-label":"close",onClick:i,className:A.isMobile?t.removeButtom:"",children:Object(C.jsx)(ke.a,{})}),Object(C.jsx)(Se.a,{open:T,maxWidth:"md",children:Object(C.jsx)(Me.DayPickerRangeController,{numberOfMonths:2,onFocusChange:function(e){_(e||"startDate")},focusedInput:g,startDate:u?R()(u,"YYYY-MM-DD"):null,endDate:h?R()(h,"YYYY-MM-DD"):null,onDatesChange:function(e){var t=e.startDate,n=e.endDate;b(t),f(n)},onOutsideClick:function(){return S(!1)},orientation:A.isMobile?"vertical":"horizontal",isOutsideRange:function(e){return!Object(Pe.a)(e,R()())}})})]})})),Fe=Object(S.a)((function(e){return{title:{padding:"16px 24px",backgroundColor:"#F2F2F2","& h2":{color:"#121A2C",fontWeight:"bold",fontSize:21,lineHeight:"25px"}},body:{padding:"32px 62px 30px 57px",overflowy:"scroll"},bodyMobile:{padding:16,overflowy:"scroll"},actions:{borderTop:"1px solid #E0E0E0",padding:16,display:"flex",justifyContent:"flex-end"},addButton:{alignSelf:"flex-start",marginLeft:110,"&.MuiButton-root":{padding:"6px 17px 6px 17px",color:"#121A2C",fontSize:14}},addButtonMobileStyles:{marginLeft:0}}}))((function(e){var t=e.classes,n=e.isOpen,a=e.onCreate,r=e.onClose,i=e.reservationSuggestions,o=Object(L.a)().t,s=Object(x.useState)([]),c=Object(v.a)(s,2),l=c[0],d=c[1];Object(x.useEffect)((function(){return i&&i.length?d(Object(M.a)(i)):d([{id:Object(we.a)(),startDate:null,endDate:null}]),function(){d([])}}),[i]);var u=l.some((function(e){var t=e.startDate,n=e.endDate;return!t||!n}));return n?Object(C.jsx)("div",{children:Object(C.jsxs)(Se.a,{open:n,"aria-labelledby":"date-suggestions-dialog-title","aria-describedby":"date-suggestions-dialog-description",contentStyle:{width:"100%",maxWidth:"none"},children:[Object(C.jsx)(Ne.a,{id:"add-vacancy-dialog-title",className:t.title,children:o("RESERVATION_FORM_OTHER_AVAILABILITIES_HEADER")}),Object(C.jsxs)(Ie.a,{className:A.isMobile?t.bodyMobile:t.body,children:[l.map((function(e,t){var n=e.id,a=e.startDate,r=e.endDate;return Object(C.jsx)(Ve,{index:t,suggestionsNumber:l.length,start_date:a,end_date:r,onChange:function(e){var t=e.startDate,a=e.endDate;return function(e,t,n){d(l.map((function(a){return a.id===e?Object(j.a)(Object(j.a)({},a),{},{startDate:t,endDate:n}):a})))}(n,t,a)},onRemove:function(){return function(e){1===l.length?d([{id:Object(we.a)(),startDate:null,endDate:null}]):d(l.filter((function(t){return t.id!==e})))}(n)}},n)})),Object(C.jsx)(Q.a,{type:"link",isMarinaLiteVersion:!0,onClick:function(){d([].concat(Object(M.a)(l),[{id:Object(we.a)(),startDate:null,endDate:null}]))},additionalStyling:Object(V.a)(t.addButton,A.isMobile&&t.addButtonMobileStyles),children:o("RESERVATION_FORM_OTHER_AVAILABILITIES_ADD_DATE")})]}),Object(C.jsxs)(Ce.a,{className:t.actions,children:[Object(C.jsx)(Q.a,{type:"secondary",large:!0,isMarinaLiteVersion:!0,onClick:function(){r()},testID:"cancelCreateVacancy",variant:"contained",children:o("cancel")}),Object(C.jsx)(Q.a,{type:"main",large:!0,disabled:u,isMarinaLiteVersion:!0,onClick:function(){a(l)},autoFocus:!0,testID:"submitCreateVacancy",variant:"contained",children:o("RESERVATION_FORM_OTHER_AVAILABILITIES_CTA")})]})]})}):Object(C.jsx)("div",{})})),We=function(e){return Object(C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:Object(C.jsx)("g",{fill:"none",fillRule:"evenodd",children:Object(C.jsx)("g",{children:Object(C.jsx)("g",{children:Object(C.jsx)("g",{children:Object(C.jsxs)("g",{children:[Object(C.jsx)("path",{d:"M0 0L24 0 24 24 0 24z",transform:"translate(-819.000000, -281.000000) translate(252.000000, 138.000000) translate(405.000000, 131.000000) translate(162.000000, 12.000000)"}),Object(C.jsx)("path",{fill:"#1A1A1B",fillRule:"nonzero",d:"M16.53 11.06L15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17l5.94-5.94zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11z",transform:"translate(-819.000000, -281.000000) translate(252.000000, 138.000000) translate(405.000000, 131.000000) translate(162.000000, 12.000000)"})]})})})})})})};We.displayName="CalendarReservation";var Ue=We,Ge=function(e){return{wrapper:{display:"flex",alignItems:"center",position:"relative",flexGrow:1,maxWidth:"100%",justifyContent:"space-between"},fieldWrapper:{},pickerWrapper:{width:"100%",backgroundColor:"#f4f9ff",borderBottom:"1px solid #253967",color:"#253967",padding:0,"& .DateRangePickerInput":{backgroundColor:"#f4f9ff"},"& .DateInput":{width:145},"& .DateInput input::placeholder":{color:"#1A1A1B",fontSize:"17px",fontFamily:"Lato"},"& .DateInput input":{color:"#1A1A1B",padding:"0 16px",boxSizing:"border-box",fontSize:"17px",fontFamily:"Lato",backgroundColor:"#f4f9ff","&:focus":{outline:"none"},"&::placeholder":{color:"#1A1A1B"},"&.DateInput_input__focused":{borderBottom:"2px solid transparent"}},"& .DateRangePickerInput_arrow":{marginBottom:"3px",backgroundColor:"#f4f9ff"},"& .DateRangePickerInput_calendarIcon":{padding:"12px 14px 9px",margin:0,borderRight:"1px solid #d7d7d7","&:focus":{outline:"none"}},"& .DateInput input:disabled":{color:"#979a9d",fontStyle:"normal"}},pickerMobileWrapper:{width:"100%",backgroundColor:"#f4f9ff",borderBottom:"1px solid #253967",color:"#253967",padding:0,"& .DateRangePickerInput":{backgroundColor:"#f4f9ff"},"& .DateInput":{width:"34%"},"& .DateInput input::placeholder":{color:"#1A1A1B",fontSize:"0.8rem",fontFamily:"Lato"},"& .DateInput input":{color:"#1A1A1B",padding:"0 16px",boxSizing:"border-box",fontSize:"0.8rem",fontFamily:"Lato",backgroundColor:"#f4f9ff","&:focus":{outline:"none"},"&::placeholder":{color:"#1A1A1B"},"&.DateInput_input__focused":{borderBottom:"2px solid transparent"}},"& .DateRangePickerInput_arrow":{marginBottom:"3px",backgroundColor:"#f4f9ff"},"& .DateRangePickerInput_calendarIcon":{padding:"12px 14px 9px",margin:0,borderRight:"1px solid #d7d7d7","&:focus":{outline:"none"}},"& .DateInput input:disabled":{color:"#979a9d",fontStyle:"normal"}},withError:{borderBottom:"2px solid rgba(230, 83, 92)",marginTop:20},withDisabled:{borderBottom:"1px dotted rgba(0, 0, 0, 0.42)"},inputLabel:{marginRight:"4px",marginLeft:"4px"},datesSuggestionsError:{color:"#EB5757",fontSize:14,lineHeight:"17px"},action:{alignSelf:"flex-start",marginTop:5,marginLeft:20},actionMobile:{marginTop:10},suggestion:{display:"flex",alignItems:"center"},title:{color:"#333333",fontWeight:600,fontSize:15,lineHeight:"18px",marginRight:10,minWidth:100},suggestionField:{width:290,height:48,display:"flex",alignItems:"center",backgroundColor:"#f2f2f2",borderBottom:"1px solid #333333",boxSizing:"border-box",cursor:"pointer"},icon:{height:"100%",width:45,display:"flex",alignItems:"center",justifyContent:"center",marginRight:6,borderRight:"1px solid #BDBDBD"},dates:{display:"flex",alignItems:"center"},date:{color:"#121A2C",fontSize:15,lineHeight:1.2,paddingRight:5}}},ze=Object(S.a)(Ge)((function(e){var t=e.classes;return Object(C.jsx)("span",{className:t.inputLabel,children:"-"})})),Ye=Object(S.a)(Ge)((function(e){var t,n=e.classes,a=e.rowData,r=e.editMode,i=e.values,o=e.reservationsValues,s=e.setFieldValue,c=e.error,l=e.setReservationDates,d=e.handlePricingPlan,u=e.handleSuggestDates,b=e.source,p=e.isMarinaLiteVersion,m=e.status,h=Object(L.a)().t,f=Object(x.useState)(null),j=Object(v.a)(f,2),O=j[0],g=j[1],_=Object(x.useState)(!1),E=Object(v.a)(_,2),y=E[0],T=E[1],S="BOATER"===b,N=S&&!c;return Object(C.jsxs)("div",{className:A.isMobile?"":n.wrapper,children:[r?Object(C.jsx)(C.Fragment,{children:Object(C.jsxs)(Re.a,{className:n.fieldWrapper,error:!!c,children:[Object(C.jsx)("div",{className:Object(V.a)(A.isMobile?n.pickerMobileWrapper:n.pickerWrapper,(t={},Object(ae.a)(t,n.withDisabled,!!N),Object(ae.a)(t,n.withError,!!c),t)),children:Object(C.jsx)(Me.DateRangePicker,{disabled:!!N,startDate:i.start_date?R()(i.start_date):null,startDateId:"new_reservation_start_date_id",endDate:i.end_date?R()(i.end_date):null,endDateId:"new_reservation_end_date_id",startDatePlaceholderText:h("MARINA_RESERVATION_WIDGET_START_DATE"),endDatePlaceholderText:h("MARINA_RESERVATION_WIDGET_END_DATE"),onDatesChange:function(e){return s("dates",{start_date:(t=e).startDate,end_date:t.endDate}),setTimeout((function(){s("total",Object(He.f)(t.endDate,t.startDate,"nights",!0)),l({start_date:t.startDate,end_date:t.endDate})}),0),void d(t.startDate,t.endDate);var t},focusedInput:O,onFocusChange:function(e){return g(e)},noBorder:!0,withPortal:!p,minimumNights:1,displayFormat:"ll",verticalSpacing:-13,inputIconPosition:"before",customInputIcon:Object(C.jsx)(Ue,{}),customArrowIcon:Object(C.jsx)(ze,{}),orientation:A.isMobile?"vertical":"horizontal"})}),c?Object(C.jsx)(Ae.a,{children:h(c)}):null,S&&!c&&"initiated"===m&&!!o.suggestions.length&&Object(C.jsx)(Ae.a,{className:n.datesSuggestionsError,children:h("RESERVATION_FORM_OTHER_AVAILABILITIES_ERROR")})]})}):Object(C.jsx)(ve,{label:Object(He.c)(R()(a.start_date),R()(a.end_date))}),S&&("initiated"===m||"marina_added_dates"===m||"boater_accepted_suggested_dates"===m)&&Object(C.jsx)("div",{className:A.isMobile?n.actionMobile:n.action,children:Object(C.jsx)(Q.a,{type:"secondary",large:!0,isMarinaLiteVersion:!0,onClick:function(){return T(!0)},variant:"contained",children:o.suggestions.length?h("RESERVATION_FORM_OTHER_AVAILABILITIES_EDIT_BUTTON"):h("RESERVATION_FORM_OTHER_AVAILABILITIES_BUTTON")})}),Object(C.jsx)(Fe,{reservationSuggestions:o.suggestions,isOpen:y,onCreate:function(e){s("suggestions",e),T(!1);var t=e.map((function(e){return{start_date:e.startDate,end_date:e.endDate}}));u(t)},onClose:function(){return T(!1)}})]})})),qe=n(1720),Ke=n(1724),Xe=n(1756),Qe=n(1642),Ze=n(1629),Je=Object(S.a)((function(e){return{wrapper:{display:"flex",justifyContent:"flex-start",alignItems:"center",fontSize:17,color:"#1A1A1B"}}}))((function(e){var t=e.disabled,n=e.classes,a=e.label,r=e.radio,i=e.switchBox,o=e.customStyles,s=e.select;return Object(C.jsxs)("div",{className:n.wrapper,style:i||r?{minWidth:135}:{},children:[Object(C.jsx)("span",{style:t?{opacity:"0.8"}:{},children:a}),r&&Object(C.jsx)(Xe.a,Object(j.a)({},r)),i&&Object(C.jsx)(Ke.a,Object(j.a)(Object(j.a)({},i),{},{color:"primary"})),s&&Object(C.jsx)(Qe.a,{labelId:"".concat(s.id,"-select-label"),id:s.id,value:s.value,margin:"none",onChange:function(e){return s.onSelect(e)},style:Object(j.a)({textAlign:"center",padding:"0 0 5px 0",minWidth:193,background:"#f4f9ff"},o),disabled:s.disabled,children:s.entries.map((function(e){return Object(C.jsx)(Ze.a,{value:e.value,children:e.label},e.value)}))})]})})),$e=function(e){return{wrapper:{display:"flex",alignItems:"center",position:"relative"},wrapperFullWidth:{display:"flex",alignItems:"center",position:"relative",width:"100%"},column:{display:"flex",height:"calc(100% - 16px)",flexDirection:"column",margin:"8px 0 8px 0"},row:{display:"flex",flexDirection:"row",alignItems:"center",margin:"8px 10px 18px 0"},rowFullWidth:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},link:{color:"#255EDD",cursor:"pointer",marginTop:-2},infoBlock:{fontSize:e.utils.pxToRem(15),minWidth:"40px"},infoIcon:{fill:"#255EDD",fontSize:e.utils.pxToRem(15)},accordion:{display:"flex",flexDirection:"column-reverse",border:"none",boxShadow:"none"},accordionSummary:{display:"flex",justifyContent:"center",color:"#255EDD"},accordionSummaryContent:{flexGrow:0},accordionSummaryIcon:{color:"#255EDD"},accordionDetails:{padding:0},subtotal:{position:"absolute",minWidth:300,fontSize:12,color:"#1A1A1B",bottom:10},inputGroup:{display:"flex",alignItems:"center"},icon:{paddingRight:16},hidden:{display:"none"},selectPadding:{padding:"0px 15px",paddingRight:"15px !important"},textOverflowUnset:{textOverflow:"unset",height:0}}},et={padding:"12px 10px 6px 10px",background:"#f4f9ff",width:"235px"},tt=(Object(j.a)(Object(j.a)({},et),{},{width:"105px"}),Object(S.a)(Object(j.a)(Object(j.a)({},{label:{margin:"0 11px 0 0",fontSize:"0.8125rem",color:"#444444"}}),$e))((function(e){var t=e.classes,n=e.editMode,a=e.values,r=e.setFieldValue,i=Object(L.a)().t,o=Object.keys(a.documents).map((function(e){return{id:e,value:a.documents[e]}})),s={vessel_insurence:i("reservation_vesselInsurance"),vessel_license:i("reservation_vesselLicense"),skipper_id:i("reservation_skiper")},c=function(e){return Object(C.jsx)(C.Fragment,{children:n?Object(C.jsx)(qe.a,{labelPlacement:"start",label:s[e.id],className:t.label,control:Object(C.jsx)(Ke.a,{name:e.id,id:e.id,color:"primary",checked:a.documents[e.id],onChange:function(){return r("required_documents",Object(j.a)(Object(j.a)({},a.documents),{},Object(ae.a)({},e.id,!a.documents[e.id])))}})}):Object(C.jsx)(C.Fragment,{children:a.documents[e.id]?Object(C.jsx)(Je,{label:s[e.id]}):null})})};return Object(C.jsx)("div",{className:t.wrapper,children:Object(C.jsx)("div",{className:t.row,style:{display:"flex",alignItems:"center",height:"100%",marginBottom:5,flexWrap:"wrap"},children:o.map((function(e){return Object(C.jsx)("span",{children:c(e)},e.id)}))})})}))),nt=n(1622),at=n(81),rt=n(226),it=n(337),ot=n.n(it),st=Object(S.a)($e)((function(e){var t=e.classes,n=e.setInputProps,a=e.values,r=e.editMode,i=e.isTemMember,o=e.rowData,s=e.setFieldValue,c=Object(L.a)().t,l=function(){return a.nights_to_redeem?a.nights_to_redeem:""};if(!i)return Object(C.jsx)(Je,{label:c("reservation_noMembershipConnected")});if("RESIDENT"===o.customer_type)return Object(C.jsx)(Je,{label:c("reservation_noNightsForResident")});var d=o&&o.memberships&&o.memberships[0]&&o.memberships[0].customer.status,u=!+a.maxVal&&!+l()||"active"!==d,b=n("nights_to_redeem");return Object(C.jsx)("div",{className:t.wrapper,children:i&&Object(C.jsxs)("div",{style:{position:"relative",paddingBottom:20,paddingTop:13},children:[Object(C.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[Object(C.jsx)(Je,{label:c("reservation_nightsToRedeem")}),function(){if(!ot()(o.requested_redeem_nights_amount)){var e=0===o.requested_redeem_nights_amount,t=e?"MARINA_RESERVATION_RESERVATION_FORM_BOATER_NO_REDEEM_NIGHTS":"MARINA_RESERVATION_RESERVATION_FORM_BOATER_REDEEM_NIGHTS";if(e||a.nights_to_redeem===o.requested_redeem_nights_amount)return Object(C.jsx)("div",{style:{display:"flex",wordBreak:"break-word",maxWidth:"140px",color:"#255EDD",fontSize:"13px",fontWeight:"bold"},children:c(t)})}return null}()]}),r?Object(C.jsxs)(C.Fragment,{children:[Object(C.jsx)(Qe.a,{value:l(),onChange:function(e){return s("nights_to_redeem",e.target.value)},input:Object(C.jsx)(nt.a,{style:{textIndent:10,minWidth:185,background:"#EFF2F8",padding:"0 0 5px 0"},name:"reasonSelect",id:"reasonSelect-placeholder"}),displayEmpty:!0,name:"redeem-nights-select",id:"redeem-nights-select",disabled:u,children:function(){var e=o.max_nights_to_redeem;return[].concat(Object(M.a)(Array(e).keys()),[e])}().map((function(e){return Object(C.jsx)(Ze.a,{value:e,testID:"option-".concat(e),children:e},"option-".concat(e))}))}),Object(C.jsx)("div",{style:{position:"absolute",bottom:-14,left:145,minHeight:40},children:Object(C.jsx)(Ae.a,{style:{color:b.error?"#e6535c":"rgba(0, 0, 0, 0.54)"},children:b.helperText})})]}):Object(C.jsx)(ve,{label:a.nights_to_redeem}),Object(C.jsx)("span",{style:{color:"#1A1A1B",marginLeft:20},children:Object(C.jsx)(at.a,{placement:"bottom-end",title:c("reservation_reservationRedeemNightsTooltip"),children:Object(C.jsx)(rt.a,{className:t.infoIcon})})})]})})})),ct=Object(S.a)(Object(j.a)(Object(j.a)({},{label:{margin:"0 11px 0 0",fontSize:"0.8125rem",color:"#444444"}}),$e))((function(e){var t=e.classes,n=e.editMode,a=e.changeTab,r=e.setInputProps,i=e.values,o=Object(L.a)().t;return Object(C.jsx)("div",{className:t.wrapper,style:{width:"100%",maxWidth:445},children:Object(C.jsx)("div",{className:t.column,children:Object(C.jsx)("div",{className:t.row,style:{alignItems:"flex-start",marginTop:"18px"},children:n?Object(C.jsx)(ye.a,Object(j.a)(Object(j.a)({multiline:!0,margin:"none",rowsMax:"4",style:{width:"100%"},InputProps:{style:Object(j.a)(Object(j.a)({},et),{},{width:"100%"})}},r("message")),{},{value:i&&i.message?i.message:"",disabled:i.disabled})):Object(C.jsx)("span",{className:t.link,onClick:function(e){return a(e,1)},children:o("reservation_viewInMessages")})})})})})),lt=n(68),dt=Object(S.a)($e)((function(e){var t=e.data,n=(e.classes,e.editMode,e.status),a=e.currency,r=e.acceptsOnlinePayments,i=Object(L.a)().t,o=t&&t.payment&&t.payment.payment&&t.payment.payment.payment_status,s=t&&t.payment&&t.payment.payment&&t.payment.payment.payment_date,c=t&&t.payment&&t.payment.payment&&t.payment.payment.deposit_rate,l=t&&t.payment&&t.payment.payment&&t.payment.payment.total_to_pay,d=l&&Object(lt.a)(Object(de.b)(100!==c?l*(c/100):l),"en",a),u={initiated:"RESERVATION_PAYMENT_REQUEST_INDICATION",waiting_list:"RESERVATION_PAYMENT_REQUEST_INDICATION",pending:"RESERVATION_PAYMENT_REQUEST_INDICATION",waiting:"RESERVATION_PAYMENT_PENDING_INDICATION",approved:"RESERVATION_PAYMENT_APPROVED_INDICATION",canceled_by_boater:"RESERVATION_PAYMENT_CANCELLED_INDICATION",canceled_by_marina:"RESERVATION_PAYMENT_CANCELLED_INDICATION"};return"succeeded"===o?25===c?Object(C.jsx)(Je,{label:Object(le.a)(i("deposit_payment_succeeded_status",{date:Object(He.b)(R()(s)),amount:d}))}):Object(C.jsx)(Je,{label:Object(le.a)(i("full_payment_succeeded_status",{date:Object(He.b)(R()(s)),amount:d}))}):"refunded"===o?25===c?Object(C.jsx)(Je,{label:Object(le.a)(i("deposit_payment_refunded_status",{date:Object(He.b)(R()(s)),amount:d}))}):Object(C.jsx)(Je,{label:Object(le.a)(i("full_payment_refunded_status",{date:Object(He.b)(R()(s)),amount:d}))}):Object(C.jsx)(Je,{label:i(r&&u[n]?u[n]:"reservation_payInMarina")})})),ut=Object(S.a)($e)((function(e){e.classes,e.editMode;var t=e.status,n=e.acceptsOnlinePayments,a=Object(L.a)().t,r={initiated:"RESERVATION_PAYMENT_REQUEST_INDICATION",waiting_list:"RESERVATION_PAYMENT_REQUEST_INDICATION",pending:"RESERVATION_PAYMENT_REQUEST_INDICATION",waiting:"RESERVATION_PAYMENT_PENDING_INDICATION",approved:"RESERVATION_PAYMENT_APPROVED_INDICATION",canceled_by_boater:"RESERVATION_PAYMENT_CANCELLED_INDICATION",canceled_by_marina:"RESERVATION_PAYMENT_CANCELLED_INDICATION"};return Object(C.jsx)(Je,{label:a(n&&r[t]?r[t]:"reservation_payInMarina")})})),bt=Object(S.a)($e)((function(e){var t=e.data,n=(e.classes,e.editMode,e.status,e.currency),a=(e.acceptsOnlinePayments,Object(L.a)().t),r=t&&t.payment&&t.payment.payment&&t.payment.payment.payout_status,i=t&&t.payment&&t.payment.payment&&t.payment.payment.payout_date,o=t&&t.payment&&t.payment.payment&&t.payment.payment.deposit_rate,s=t&&t.payment&&t.payment.payment&&t.payment.payment.total_to_pay,c=s&&Object(lt.a)(Object(de.b)(25===o?s*(o/100):s),"en",n);return"in_transit"===r?25===o?Object(C.jsx)(Je,{label:Object(le.a)(a("deposit_payout_in_transit_status",{date:Object(He.b)(R()(i)),amount:c}))}):Object(C.jsx)(Je,{label:Object(le.a)(a("full_payment_payout_in_transit_status",{date:Object(He.b)(R()(i)),amount:c}))}):"paid"===r?25===o?Object(C.jsx)(Je,{label:Object(le.a)(a("deposit_payout_paid_status",{date:Object(He.b)(R()(i)),amount:c}))}):Object(C.jsx)(Je,{label:Object(le.a)(a("full_payment_payout_paid_status",{date:Object(He.b)(R()(i)),amount:c}))}):Object(C.jsx)(Je,{label:""})})),pt=n(118),mt=Object(S.a)($e)((function(e){var t=e.classes,n=e.setInputProps,a=e.values,r=e.editMode,i=e.setFieldValue,o=e.currency,s=Object(L.a)().t,c=Object(x.useState)(!1),l=Object(v.a)(c,2),d=l[0],u=l[1],b=Object(x.useState)(0),p=Object(v.a)(b,2),m=p[0],h=p[1];return Object(x.useEffect)((function(){i("marina_discount_percent",m>100?100:m)}),[m]),Object(x.useEffect)((function(){a.marina_discount_percent>0?u(!0):""===a.marina_discount_percent&&u(!1)}),[a.marina_discount_percent]),Object(C.jsx)("div",{className:A.isMobile?t.wrapperFullWidth:t.wrapper,children:Object(C.jsxs)("div",{className:t.column,children:[Object(C.jsxs)("div",{className:t.row,children:[Object(C.jsx)(Je,{label:s("reservation_pricePerNight",{currency:Object(lt.b)(o)})}),Object(C.jsx)("div",{className:t.infoBlock,children:Object(C.jsx)(at.a,{placement:"bottom-end",title:s("reservation_priceTooltip"),testID:"priceToolTip",children:Object(C.jsx)(rt.a,{className:t.infoIcon})})}),r?Object(C.jsx)(pt.a,Object(j.a)(Object(j.a)({margin:"none"},n("price_per_night",Object(j.a)(Object(j.a)({},et),{},{width:"100%"}))),{},{value:Number(a.price_per_night)?a.price_per_night:"",placeholder:"00.00",double:!0,onInput:function(e){e.target.value&&("."===e.target.value[e.target.value.length-1]||/^\d{1,6}(\.\d{1,2}){0,1}$/.test(e.target.value)||(e.target.value=e.target.value.slice(0,e.target.value.length-1)))}})):Object(C.jsx)(ve,{label:a.price_per_night})]}),Object(C.jsx)("div",{className:t.row,children:"suggestion"}),Object(C.jsxs)("div",{className:t.row,children:[Object(C.jsx)(Je,{label:s("reservation_discount"),switchBox:function(){if(r)return{name:"discount",checked:d,onChange:function(){u(!d),i("marina_discount_percent",0)}}}()}),Object(C.jsx)("div",{className:t.infoBlock}),r?Object(C.jsx)(C.Fragment,{children:Object(C.jsx)("div",{className:t.column,children:Object(C.jsxs)("div",{className:t.row,children:[Object(C.jsx)(pt.a,Object(j.a)(Object(j.a)({},n("marina_discount_percent",et)),{},{style:{width:178},value:Number(a.marina_discount_percent)?a.marina_discount_percent:"",placeholder:"00.00",margin:"none",onBlur:a.marina_discount_percent?function(){}:function(){return u(!1)},disabled:!d,double:!0,onChange:function(e){return h(e.target.value.replace(/(\.\d{2})\d+/g,"$1"))}})),Object(C.jsxs)(Qe.a,{labelId:"downpayment-select-label",id:"downpayment-select-label",value:"%",margin:"none",onChange:function(){},style:{textAlign:"center",padding:"0 0 5px 0",width:75,borderLeft:"1px solid rgba(0, 0, 0, 0.42)",background:"#EFF2F8"},disabled:!0,children:[Object(C.jsx)(Ze.a,{value:"%",children:"%"}),Object(C.jsx)(Ze.a,{value:"\u20ac",children:"EUR"})]})]})})}):Object(C.jsx)(C.Fragment,{children:a.marina_discount_percent&&Object(C.jsx)(ve,{label:"".concat(a.marina_discount_percent,"%")})})]})]})})})),ht=Object(S.a)($e)((function(e){var t=e.classes,n=e.setInputProps,a=e.values,r=e.editMode,i=e.setFieldValue,o=Object(L.a)().t,s=function(e,t){i("additional_charges",Object(j.a)(Object(j.a)({},a),{},Object(ae.a)({},t,e.target.value)))};return Object(x.useEffect)((function(){a&&!a.chargeType&&i("additional_charges",Object(j.a)(Object(j.a)({},a),{},{chargeType:"harbor_dues"}))}),[a]),Object(C.jsxs)("div",{className:t.wrapper,children:[r?Object(C.jsx)(Je,{customStyles:{height:48,padding:0},select:{id:"chargeType",value:a.chargeType,onSelect:function(e){return s(e,"chargeType")},color:"primary",entries:[{label:o("reservation_fees"),value:"fees"},{label:o("reservation_taxes"),value:"taxes"},{label:o("reservation_harbor_dues"),value:"harbor_dues"}]}}):Object(C.jsx)(Je,{label:o("reservation_".concat(a.chargeType))}),r?Object(C.jsxs)(C.Fragment,{children:[Object(C.jsx)(pt.a,Object(j.a)(Object(j.a)({},n("amount",Object(j.a)(Object(j.a)({},et),{},{height:26}))),{},{customStyles:et,helperCustomStyles:{top:45},onChange:function(e){return s(e,"amount")},value:Number(a.amount)?a.amount:"",style:{width:105,marginLeft:8,marginRight:8},margin:"none",placeholder:"00.00",double:!0})),Object(C.jsxs)(Qe.a,{labelId:"downpayment-select-label",id:"downpayment-select-label",value:a.type,margin:"none",onChange:function(e){return s(e,"type")},style:{textAlign:"center",width:144,height:48,background:"#f4f9ff"},children:[Object(C.jsx)(Ze.a,{value:"TOTAL",children:o("reservation_total")}),Object(C.jsx)(Ze.a,{value:"PER_NIGHT",children:o("reservation_per_night")})]})]}):Object(C.jsx)(Je,{label:"".concat(a.amount," (").concat(a.type?o("reservation_".concat(a.type.toLowerCase())):"-",")")})]})})),ft=Object(S.a)($e)((function(e){var t=e.classes,n=e.values,a=e.editMode,r=e.setFieldValue,i=Object(L.a)().t;return Object(C.jsx)("div",{className:t.wrapper,children:a?Object(C.jsx)(Je,{customStyles:{height:48,padding:0},select:{id:"paymentRequest",value:n,onSelect:function(e){!function(e){r("paymentRequest",e.target.value)}(e)},color:"primary",entries:[{label:i("reservation_25depositOnly",{rate:5}),value:5},{label:i("reservation_25depositOnly",{rate:10}),value:10},{label:i("reservation_25depositOnly",{rate:15}),value:15},{label:i("reservation_25depositOnly",{rate:20}),value:20},{label:i("reservation_25depositOnly",{rate:25}),value:25},{label:i("reservation_25depositOnly",{rate:30}),value:30},{label:i("reservation_25depositOnly",{rate:35}),value:35},{label:i("reservation_25depositOnly",{rate:40}),value:40},{label:i("reservation_25depositOnly",{rate:45}),value:45},{label:i("reservation_25depositOnly",{rate:50}),value:50},{label:i("reservation_25depositOnly",{rate:55}),value:55},{label:i("reservation_25depositOnly",{rate:60}),value:60},{label:i("reservation_25depositOnly",{rate:65}),value:65},{label:i("reservation_25depositOnly",{rate:70}),value:70},{label:i("reservation_25depositOnly",{rate:75}),value:75},{label:i("reservation_25depositOnly",{rate:80}),value:80},{label:i("reservation_25depositOnly",{rate:85}),value:85},{label:i("reservation_25depositOnly",{rate:90}),value:90},{label:i("reservation_25depositOnly",{rate:95}),value:95},{label:i("reservation_fullPayment"),value:100}]}}):Object(C.jsx)(Je,{label:i("reservation_".concat(null===n||void 0===n?void 0:n.paymentRequest))})})})),jt=Object(S.a)((function(e){return{inputWrapper:{"&:focus":{outline:"none",border:"0px"}}}}))((function(e){var t=e.classes,n=e.values,a=(e.editMode,e.setFieldValue),r=e.setNotesEdited;return Object(C.jsx)("div",{children:Object(C.jsx)("textarea",{type:"text",className:t.inputWrapper,value:n,id:"internalNotes",maxLength:"2000",style:{width:"500px",height:60,border:"0px",backgroundColor:"#F2F8FF",padding:"10px",marginRight:"100px"},name:"internalNotes",onChange:function(e){a("internalNotes",e.target.value),r(!0)}})})})),Ot=Object(S.a)($e)((function(e){var t=e.classes,n=e.rowData,a=Object(L.a)().t;return Object(C.jsx)("div",{className:t.wrapper,children:Object(C.jsx)("div",{className:t.column,children:n&&Object.keys(n).map((function(e){return Object(C.jsxs)("div",{className:t.row,children:[Object(C.jsx)(Je,{label:a("reservation.".concat(e))}),Object(C.jsx)(ve,{label:n[e]})]},e)}))})})})),gt=Object(S.a)($e)((function(e){var t=e.classes,n=e.rowData,a=e.editMode,r=e.setInputProps,i=e.value,o=e.creationMode,s=e.isSignedUp,c=e.isNewBoaterCreation,l=Object(j.a)(Object(j.a)({},et),{},{width:A.isMobile?"100%":455,height:48,padding:"0px 10px 0 10px"});return Object(C.jsx)("div",{className:t.wrapperFullWidth,children:a&&!o||o&&c||o&&null===n?Object(C.jsx)(ye.a,Object(j.a)(Object(j.a)({margin:"none",disabled:s,rowsMax:"4",style:{width:"100%"},InputProps:{style:l}},r("vessel_name")),{},{value:i&&i?i:""})):Object(C.jsx)(ve,{label:n||i})})})),_t=Object(S.a)($e)((function(e){var t=e.classes,n=e.rowData,a=(e.editMode,e.setFieldValue),r=e.value,i=e.availableVessels,o=e.selectCreationVessel;return Object(C.jsx)("div",{className:t.wrapper,children:i.length?Object(C.jsx)(Qe.a,{id:"vessel_name",value:r,margin:"none",onChange:function(e){a("vessel_id",e.target.value),o(e.target.value)},style:{padding:"4px 0 3px 10px",width:235,background:"#f4f9ff"},classes:{root:t.noBg},inputProps:{id:"vessel_name"},children:i.map((function(e){return Object(C.jsx)(Ze.a,{value:e.id,children:e.name},e.id)}))}):Object(C.jsx)(ve,{label:n||r})})})),vt=n(1705),xt=Object(S.a)((function(e){return Object(j.a)(Object(j.a)({},$e),{},{wrapper:{display:"flex",minWidth:455,height:function(e){return e.editMode&&55}},wrapperMobile:{display:"flex",flexDirection:"column",width:"100%",gap:"4vw"},inputGroup:{display:"flex",width:147},inputGroupMobile:{display:"flex",width:"100%"},sizeLabel:Object(j.a)(Object(j.a)({},et),{},{color:"#1A1A1B",width:73,borderBottom:"1px solid rgba(0, 0, 0, 0.42)",height:29,display:"flex",alignItems:"center",fontSize:15}),input:{"& .MuiFilledInput-input":{fontSize:17,color:"#1A1A1B"}},adornment:Object(j.a)(Object(j.a)({},et),{},{height:29,marginBottom:1,marginLeft:-6,display:"flex",justifyContent:"center","& p":{fontSize:15,color:"#1A1A1B"}})})}))((function(e){var t=e.classes,n=e.rowData,a=e.editMode,r=e.setSizeInputProps,i=e.isSignedUp,o=e.values,s=Object(L.a)().t;return Object(C.jsxs)("div",{className:A.isMobile?t.wrapperMobile:t.wrapper,children:[Object(C.jsx)("span",{style:A.isMobile?void 0:{marginRight:8},children:a?Object(C.jsx)("div",{className:A.isMobile?t.inputGroupMobile:t.inputGroup,children:Object(C.jsx)(pt.a,Object(j.a)(Object(j.a)({},r("vessel_length",Object(j.a)(Object(j.a)({},et),{},{height:30}))),{},{disabled:i,value:o.vessel_length,placeholder:"00.00",margin:"none",double:!0,InputProps:{endAdornment:Object(C.jsx)(vt.a,{className:t.adornment,position:"end",children:s("vesselLoa")})}}))}):Object(C.jsxs)(C.Fragment,{children:[n.length," ",Object(C.jsx)("span",{style:{color:"#1A1A1B",marginLeft:16},children:s("vesselLoa")})]})}),Object(C.jsx)("span",{style:A.isMobile?void 0:{marginRight:9},children:a?Object(C.jsx)("div",{className:A.isMobile?t.inputGroupMobile:t.inputGroup,children:Object(C.jsx)(pt.a,Object(j.a)(Object(j.a)({},r("vessel_beam",Object(j.a)(Object(j.a)({},et),{},{height:30}))),{},{value:o.vessel_beam,disabled:i,placeholder:"00.00",margin:"none",double:!0,InputProps:{endAdornment:Object(C.jsx)(vt.a,{className:t.adornment,position:"end",children:s("customers_beam")})}}))}):Object(C.jsxs)(C.Fragment,{children:[n.beam," ",Object(C.jsx)("span",{style:{color:"#1A1A1B",marginLeft:16},children:s("customers_beam")})]})}),Object(C.jsx)("span",{style:A.isMobile?void 0:{marginRight:17},children:a?Object(C.jsx)("div",{className:A.isMobile?t.inputGroupMobile:t.inputGroup,children:Object(C.jsx)(pt.a,Object(j.a)(Object(j.a)({},r("vessel_draft",Object(j.a)(Object(j.a)({},et),{},{height:30}))),{},{value:o.vessel_draft,disabled:i,placeholder:"00.00",margin:"none",double:!0,InputProps:{endAdornment:Object(C.jsx)(vt.a,{className:t.adornment,position:"end",children:s("customers_draft")})}}))}):Object(C.jsxs)(C.Fragment,{children:[n.draft," ",Object(C.jsx)("span",{style:{color:"#1A1A1B",marginLeft:16},children:s("customers_draft")})]})})]})})),Et=n(324),yt=Object(S.a)((function(e){return Object(j.a)(Object(j.a)({},$e),{},{container:{display:"flex"},fieldInnerContainer:{display:"flex",alignItems:"center",marginRight:"20px"},between:{marginRight:"43px"}})}))((function(e){var t=e.classes,n=e.rowData,a=e.editMode,r=e.isSignedUp,i=e.setFieldValue,o=e.value,s=e.error,c=e.row,l=Object(L.a)().t;return Object(C.jsxs)("div",{className:t.container,children:[a?Object(C.jsx)("div",{className:t.container,children:Object(C.jsxs)(Re.a,{error:!!s.vessel_type,children:[Object(C.jsxs)("div",{className:t.fieldInnerContainer,children:[Object(C.jsx)("span",{style:{color:"#1A1A1B",marginRight:16},children:l("reservation_vesselType")+(c.required?"*":"")}),Object(C.jsx)(Qe.a,{id:"vessel_type",value:o.vesselType,margin:"none",disabled:r,onChange:function(e){return i("vessel_type",e.target.value)},style:{padding:"4px 0 3px 10px",width:193,height:48,background:"#f4f9ff"},classes:{root:t.noBg,icon:t.icon},inputProps:{id:"vessel_type"},error:!!s.vessel_type,children:Et.c.map((function(e){return Object(C.jsx)(Ze.a,{value:e.id,children:l(e.label)},e.id)}))})]}),s?Object(C.jsx)(Ae.a,{children:l(s.vessel_type)}):null]})}):Object(C.jsxs)("div",{className:t.between,children:[" ",Object(C.jsx)("span",{style:{color:"#1A1A1B",marginRight:12},children:l("reservation_vesselType")+":"})," ",n.type?l(n.type):"-"," "]}),a?Object(C.jsx)("div",{className:t.container,children:Object(C.jsxs)(Re.a,{error:!!s.vessel_hull_type,children:[Object(C.jsxs)("div",{className:t.fieldInnerContainer,children:[Object(C.jsx)("span",{style:{color:"#1A1A1B",marginRight:16},children:l("hullType")+"*"}),Object(C.jsx)(Qe.a,{id:"vessel_hull_type",value:o.vesselHullType,margin:"none",disabled:r,onChange:function(e){return i("vessel_hull_type",e.target.value)},style:{padding:"4px 0 3px 10px",width:193,height:48,background:"#f4f9ff"},classes:{root:t.noBg,icon:t.icon},inputProps:{id:"vessel_hull_type"},error:!!s.vessel_hull_type,children:Et.b.map((function(e){return Object(C.jsx)(Ze.a,{value:e.id,children:l(e.label)},e.id)}))})]}),s?Object(C.jsx)(Ae.a,{children:l(s.vessel_hull_type)}):null]})}):Object(C.jsxs)(C.Fragment,{children:[" ",Object(C.jsx)("span",{style:{color:"#1A1A1B",marginRight:12},children:l("hullType")+":"})," ",l(n.hull_type)," "]})]})})),Tt=Object(S.a)((function(e){return{wrapper:{marginTop:function(e){return!e.editMode&&20}},wrapperMobile:{width:"100%",display:"flex",flexDirection:"row"},field:{"& .MuiFilledInput-input":{paddingBottom:0,paddingTop:0,paddingRight:0,height:30,minWidth:458}},fieldMobile:{flex:1,minWidth:1,"& .MuiFilledInput-input":{paddingBottom:0,paddingTop:0,paddingRight:0,height:30,width:"100%"}},hidden:{display:"none"},selectPadding:{padding:"0px 15px",paddingRight:"15px !important"},selectMenu:{textOverflow:"unset",height:0}}}))((function(e){var t,n=e.classes,a=e.value,r=e.currency,i=e.setPriceInputProps,o=e.editMode,s=e.priceViewMode,c=(e.reservationsValues,e.totalNights),l=i("price_per_night",A.isMobile?{backgroundColor:"#f4f9ff",width:"100%",height:48}:{backgroundColor:"#f4f9ff",minWidth:436,paddingRight:10,height:48}),d=Object(x.useState)(""),u=Object(v.a)(d,2),b=u[0],p=u[1];return o?Object(C.jsxs)("div",{className:A.isMobile?n.wrapperMobile:void 0,children:[Object(C.jsxs)(Qe.a,{labelId:"downpayment-select-label",id:"downpayment-select-label",value:r,margin:"none",onChange:function(){},style:{textAlign:"center",padding:"0 0 5px 0",width:53,height:48,borderRight:"1px solid rgba(0, 0, 0, 0.42)",background:"#f4f9ff"},classes:{icon:n.hidden,select:n.selectPadding,selectMenu:n.selectMenu},disabled:!0,children:[Object(C.jsx)(Ze.a,{value:"EUR",children:" EUR "}),Object(C.jsx)(Ze.a,{value:"GBP",children:" GBP "}),Object(C.jsx)(Ze.a,{value:"ILS",children:" ILS "})]}),Object(C.jsx)(pt.a,Object(j.a)(Object(j.a)({margin:"none",className:A.isMobile?n.fieldMobile:n.field},Object(j.a)(Object(j.a)({},l),{},{onChange:function(e){p(s),l.onChange(e)}})),{},{value:Number(a)?"perNight"===s?isNaN(a)||"perNight"!==!b?a:(t=new Number(a).toFixed(2),isNaN(t)||t%1!==0?t:Math.trunc(t)):a*c:"",placeholder:"00.00",helperCustomStyles:{top:45},double:!0,onInput:function(e){var t="perNight"===s?/^\d{1,6}(\.\d{1,2}){0,1}$/:/^\d{1,6}$/;e.target.value&&("."===e.target.value[e.target.value.length-1]||t.test(e.target.value)||(e.target.value=e.target.value.slice(0,e.target.value.length-1)))}}))]}):Object(C.jsxs)("div",{className:n.wrapper,children:[Object(C.jsx)(ve,{label:a?"".concat(r?Object(lt.b)(r):""," ").concat(a):""}),Object(C.jsx)("div",{className:n.subtotal,children:l?l.helperText:""})]})})),Rt=n(91),At=function(){return Object(C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:Object(C.jsx)("g",{fill:"none",fillRule:"evenodd",children:Object(C.jsx)("g",{fill:"currentColor",fillRule:"nonzero",children:Object(C.jsx)("g",{children:Object(C.jsx)("g",{children:Object(C.jsx)("g",{children:Object(C.jsx)("path",{d:"M11.52 8.378c1.728 0 3.142 1.414 3.142 3.142s-1.414 3.142-3.142 3.142-3.142-1.414-3.142-3.142 1.414-3.142 3.142-3.142m0-2.094c-2.89 0-5.236 2.346-5.236 5.236 0 2.89 2.346 5.236 5.236 5.236 2.89 0 5.236-2.346 5.236-5.236 0-2.89-2.346-5.236-5.236-5.236zM1.047 12.567h2.095c.576 0 1.047-.471 1.047-1.047s-.471-1.047-1.047-1.047H1.047C.471 10.473 0 10.944 0 11.52s.471 1.047 1.047 1.047zm18.851 0h2.095c.576 0 1.047-.471 1.047-1.047s-.471-1.047-1.047-1.047h-2.095c-.576 0-1.047.471-1.047 1.047s.471 1.047 1.047 1.047zm-9.425-11.52v2.095c0 .576.471 1.047 1.047 1.047s1.047-.471 1.047-1.047V1.047C12.567.471 12.096 0 11.52 0s-1.047.471-1.047 1.047zm0 18.851v2.095c0 .576.471 1.047 1.047 1.047s1.047-.471 1.047-1.047v-2.095c0-.576-.471-1.047-1.047-1.047s-1.047.471-1.047 1.047zM5.226 3.75c-.409-.408-1.079-.408-1.477 0-.408.409-.408 1.079 0 1.477l1.11 1.11c.409.408 1.079.408 1.477 0 .398-.408.408-1.079 0-1.477l-1.11-1.11zM18.18 16.704c-.409-.408-1.079-.408-1.477 0-.408.408-.408 1.079 0 1.477l1.11 1.11c.409.408 1.079.408 1.477 0 .408-.409.408-1.079 0-1.477l-1.11-1.11zm1.11-11.478c.408-.409.408-1.079 0-1.477-.409-.408-1.079-.408-1.477 0l-1.11 1.11c-.408.409-.408 1.079 0 1.477.408.398 1.079.408 1.477 0l1.11-1.11zM6.336 18.18c.408-.409.408-1.079 0-1.477-.408-.408-1.079-.408-1.477 0l-1.11 1.11c-.408.409-.408 1.079 0 1.477.409.398 1.079.408 1.477 0l1.11-1.11z",transform:"translate(-834.000000, -573.000000) translate(659.000000, 562.000000) translate(147.000000, 0.000000) translate(28.000000, 11.000000)"})})})})})})})};At.displayName="Weather",At.muiName="SvgIcon";var St=At,Nt=function(){return Object(C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:Object(C.jsx)("g",{fill:"none",fillRule:"evenodd",children:Object(C.jsx)("g",{children:Object(C.jsx)("g",{children:Object(C.jsx)("g",{children:Object(C.jsxs)("g",{children:[Object(C.jsx)("g",{fill:"currentColor",fillRule:"nonzero",children:Object(C.jsx)("path",{d:"M20 7.24l-7.19-.62L10 0 7.19 6.63 0 7.24l5.46 4.73L3.82 19 10 15.27 16.18 19l-1.63-7.03L20 7.24zM10 13.4V4.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L10 13.4z",transform:"translate(-922.000000, -572.000000) translate(659.000000, 562.000000) translate(147.000000, 0.000000) translate(116.000000, 10.000000) translate(2.000000, 3.000000)"})}),Object(C.jsx)("path",{d:"M0 0L24 0 24 24 0 24z",transform:"translate(-922.000000, -572.000000) translate(659.000000, 562.000000) translate(147.000000, 0.000000) translate(116.000000, 10.000000)"})]})})})})})})};Nt.displayName="Rating",Nt.muiName="SvgIcon";var It=Nt,Ct=function(){return Object(C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:Object(C.jsx)("g",{fill:"none",fillRule:"evenodd",children:Object(C.jsx)("g",{children:Object(C.jsx)("g",{children:Object(C.jsx)("g",{children:Object(C.jsxs)("g",{children:[Object(C.jsx)("path",{d:"M0 0L24 0 24 24 0 24z",transform:"translate(-1010.000000, -572.000000) translate(659.000000, 562.000000) translate(147.000000, 0.000000) translate(204.000000, 10.000000)"}),Object(C.jsx)("path",{fill:"currentColor",fillRule:"nonzero",d:"M15.5 15h-.79l-.28-.27c.98-1.14 1.57-2.62 1.57-4.23C16 6.91 13.09 4 9.5 4S3 6.91 3 10.5 5.91 17 9.5 17c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 20l-4.99-5zm-6 0C7.01 15 5 12.99 5 10.5S7.01 6 9.5 6 14 8.01 14 10.5 11.99 15 9.5 15z",transform:"translate(-1010.000000, -572.000000) translate(659.000000, 562.000000) translate(147.000000, 0.000000) translate(204.000000, 10.000000)"})]})})})})})})};Ct.displayName="Search",Ct.muiName="SvgIcon";var wt=Ct,Dt=function(){return Object(C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:Object(C.jsx)("g",{fill:"none",fillRule:"evenodd",children:Object(C.jsx)("g",{children:Object(C.jsx)("g",{children:Object(C.jsx)("g",{children:Object(C.jsx)("g",{children:Object(C.jsx)("g",{children:Object(C.jsxs)("g",{children:[Object(C.jsx)("path",{d:"M0 0H24V24H0z",transform:"translate(-1098.000000, -572.000000) translate(659.000000, 562.000000) translate(147.000000, 0.000000) translate(264.000000, 0.000000) translate(22.000000, 10.000000) translate(6.000000, 0.000000)"}),Object(C.jsx)("path",{fill:"currentColor",fillRule:"nonzero",d:"M18 11v2h4v-2h-4zM16 17.61c.96.71 2.21 1.65 3.2 2.39.4-.53.8-1.07 1.2-1.6-.99-.74-2.24-1.68-3.2-2.4-.4.54-.8 1.08-1.2 1.61zM20.4 5.6c-.4-.53-.8-1.07-1.2-1.6-.99.74-2.24 1.68-3.2 2.4.4.53.8 1.07 1.2 1.6.96-.72 2.21-1.65 3.2-2.4zM4 9c-1.1 0-2 .9-2 2v2c0 1.1.9 2 2 2h1v4h2v-4h1l5 3V6L8 9H4zm5.03 1.71L11 9.53v4.94l-1.97-1.18-.48-.29H4v-2h4.55l.48-.29zM15.5 12c0-1.33-.58-2.53-1.5-3.35v6.69c.92-.81 1.5-2.01 1.5-3.34z",transform:"translate(-1098.000000, -572.000000) translate(659.000000, 562.000000) translate(147.000000, 0.000000) translate(264.000000, 0.000000) translate(22.000000, 10.000000) translate(6.000000, 0.000000)"})]})})})})})})})})};Dt.displayName="Events",Dt.muiName="SvgIcon";var Pt=Dt,Mt=Object(S.a)((function(e){return{wrapper:{display:"flex",flexDirection:"column",marginBottom:"49px"},buttonsWrapper:{display:"flex",marginLeft:10,height:80,alignItems:"center"},useWrapper:{display:"flex",alignItems:"center",marginTop:"28px"},suggestionItem:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:80,height:62,margin:"0 8px 0 0"},button:{textTransform:"none",width:80,height:64,background:"transparent",borderRadius:2,border:"solid 1px #d2d2d2",fontSize:12,color:"#707070","&:hover":{backgroundColor:"#f0f0f0"}},pressed:{textTransform:"none",width:80,height:64,borderRadius:2,border:"solid 1px #4071e2",fontSize:12,backgroundColor:"#f4f9ff",color:"#4071e2"},AddBtn:{boxShadow:"0 3px 10px 0 rgba(0, 0, 0, 0.06), 0 2px 2px 0 rgba(0, 0, 0, 0.08)",width:"136px",height:"32px",backgroundColor:"#255EDD",color:"#fff",cursor:"pointer",padding:"7px 22px 8px 23px",fontSize:"14px","&:hover":{backgroundColor:"#fff",color:"#255EDD",border:"1px solid #255EDD"}},priceSuggestWarrper:{display:"flex",justifyContent:"center"},priceText:{width:"88px",height:"21px",margin:"5px 32px 6px 0",fontSize:"17px",color:"#050f27"}}}))((function(e){var t=e.classes,n=e.rowData,a=e.setFieldValue,r=e.editMode,i=e.currency,o=n.setSuggestion,s=n.selectedSuggestedValue,c=n.setSelectedSuggestedValue,l=n.suggestedPrice,d=n.randomValue,u=n.setRandomValue,b=Object(L.a)().t,p=function(e){o(e),c(e)},m=Object(de.b)(0===Number(l)?d:Number(l)+d);return Object(C.jsx)(C.Fragment,{children:Object(C.jsxs)("div",{className:t.wrapper,children:[Object(C.jsxs)("div",{className:t.useWrapper,children:[Object(C.jsx)("div",{className:t.priceSuggestWarrper,children:Object(C.jsx)(F.a,{className:t.priceText,children:"".concat(Object(lt.b)(i)+" "+m)})}),Object(C.jsx)(Rt.a,{disabled:!r,label:b("reservation_price_use_suggested"),onClick:function(){a("price_per_night",m),u(0)},customClasses:{root:t.AddBtn}})]}),Object(C.jsxs)("div",{className:t.buttonsWrapper,children:[Object(C.jsx)("div",{className:t.suggestionItem,children:Object(C.jsxs)("button",{className:"weather"===s?t.pressed:t.button,onClick:function(){return p("weather")},children:[Object(C.jsx)(St,{}),Object(C.jsx)("div",{children:b("weather")})]})}),Object(C.jsx)("div",{className:t.suggestionItem,children:Object(C.jsxs)("button",{className:"rating"===s?t.pressed:t.button,onClick:function(){return p("rating")},disabled:!r,children:[Object(C.jsx)(It,{}),Object(C.jsx)("div",{children:b("rating")})]})}),Object(C.jsx)("div",{className:t.suggestionItem,children:Object(C.jsxs)("button",{className:"occupancy"===s?t.pressed:t.button,onClick:function(){return p("occupancy")},disabled:!r,children:[Object(C.jsx)(wt,{}),Object(C.jsx)("div",{children:b("occupancy")})]})}),Object(C.jsx)("div",{className:t.suggestionItem,children:Object(C.jsxs)("button",{className:"events"===s?t.pressed:t.button,onClick:function(){return p("events")},disabled:!r,children:[Object(C.jsx)(Pt,{}),Object(C.jsx)("div",{children:b("events")})]})})]})]})})})),Lt=Object(S.a)($e)((function(e){var t=e.classes,n=e.editMode,a=e.value,r=e.setInputProps,i=e.setFieldValue,o=Object(x.useState)(!1),s=Object(v.a)(o,2)[1],c=Object(x.useState)(0),l=Object(v.a)(c,2),d=l[0],u=l[1];return Object(x.useEffect)((function(){i("marina_discount_percent",d>100?100:d)}),[d]),Object(C.jsx)(C.Fragment,{children:n?Object(C.jsx)("div",{className:A.isMobile?t.wrapperFullWidth:void 0,children:Object(C.jsxs)("div",{className:A.isMobile?t.rowFullWidth:t.row,children:[Object(C.jsxs)(Qe.a,{labelId:"downpayment-select-label",id:"downpayment-select-label",value:"%",margin:"none",onChange:function(){},style:{textAlign:"center",padding:"0 0 5px 0",width:53,height:48,borderRight:"1px solid rgba(0, 0, 0, 0.42)",background:"#f4f9ff"},classes:{icon:t.hidden,select:t.selectPadding,selectMenu:t.textOverflowUnset},disabled:!0,children:[Object(C.jsx)(Ze.a,{value:"%",children:Object(C.jsx)("img",{src:"/static/img/group-17.png"})}),Object(C.jsx)(Ze.a,{value:"\u20ac",children:"EUR"})]}),Object(C.jsx)(pt.a,Object(j.a)(Object(j.a)({},r("marina_discount_percent",Object(j.a)(Object(j.a)({},et),{},{height:36,paddingTop:6,width:"100%"}))),{},{style:{width:A.isMobile?"initial":140,flexGrow:1},value:Number(a)?a:"",placeholder:"00.00",helperCustomStyles:{top:45},margin:"none",onBlur:a?function(){}:function(){return s(!1)},double:!0,onChange:function(e){return u(e.target.value.replace(/(\.\d{2})\d+/g,"$1"))}}))]})}):Object(C.jsx)("div",{className:A.isMobile?t.wrapperFullWidth:t.wrapper,children:Object(C.jsx)(ve,{label:a?"%".concat(a):""})})})})),Bt=Object(S.a)($e)((function(e){var t=e.classes,n=e.editMode,a=e.value,r=e.setFieldValue,i=e.isTemMember,o=e.rowData,s=e.disableRedeemNightsComponent,c=e.setInputProps,l=Object(L.a)().t;if(!i)return Object(C.jsx)(Je,{label:l("reservation_noMembershipConnected")});if(o&&"RESIDENT"===o.customer_type)return Object(C.jsx)(Je,{label:l("reservation_noNightsForResident")});var d=c("nights_to_redeem");return Object(C.jsx)("div",{className:t.wrapper,children:n?Object(C.jsx)("div",{className:t.column,children:Object(C.jsxs)("div",{children:[Object(C.jsx)(Qe.a,{value:a||"",onChange:function(e){return r("nights_to_redeem",e.target.value)},input:Object(C.jsx)(nt.a,{style:{textIndent:10,minWidth:193,background:"#f4f9ff",padding:"0 0 5px 0",height:48},name:"reasonSelect",id:"reasonSelect-placeholder"}),displayEmpty:!0,disabled:s,name:"redeem-nights-select",id:"redeem-nights-select",children:function(){var e=o&&o.max_nights_to_redeem||0;return[].concat(Object(M.a)(Array(e).keys()),[e])}().map((function(e){return Object(C.jsx)(Ze.a,{value:e,testID:"option-".concat(e),children:e},"option-".concat(e))}))}),Object(C.jsx)("div",{style:{position:"absolute",top:63,left:0,minWidth:300},children:Object(C.jsx)(Ae.a,{style:{color:d.error?"#e6535c":"rgba(0, 0, 0, 0.54)"},children:d.helperText})}),Object(C.jsxs)("span",{style:{color:"#1A1A1B",marginLeft:20},children:[l("TEMarinas"),Object(C.jsx)(at.a,{placement:"bottom-end",title:l("reservation_reservationRedeemNightsTooltip"),children:Object(C.jsx)(rt.a,{className:t.infoIcon})})]})]})}):Object(C.jsxs)(C.Fragment,{children:[Object(C.jsx)(ve,{label:a||""}),Object(C.jsxs)("span",{style:{color:"#1A1A1B",marginLeft:20},children:["| ",l("TEMarinas"),Object(C.jsx)(at.a,{placement:"bottom-end",title:l("reservation_reservationRedeemNightsTooltip"),children:Object(C.jsx)(rt.a,{className:t.infoIcon})})]})]})})})),kt=n(428),Ht=Object(S.a)((function(e){return{wrapper:{display:"flex",flexDirection:"column",paddingTop:function(e){return e.editMode&&20}},field:{display:"flex",alignItems:"start",marginBottom:5,"& .MuiFormControlLabel-root":{marginRight:12}},fieldError:{marginBottom:20},keyText:{marginRight:10,textOverflow:"ellipsis"},keyName:{width:193},keyValue:{width:100},keyType:{width:193},subtotal:{margin:"0px 14px 0 43px",lineHeight:1.66,fontSize:12,color:"#757575"}}}))((function(e){var t=e.classes,n=e.values,a=e.editMode,r=e.setFieldValue,i=e.error,o=e.getSubTotal,s=e.currency,c=Object(L.a)().t,l=function(e,t,a){var i=n.map((function(n){return n.id===a?"total_custom_surcharge"===t?Object(j.a)(Object(j.a)({},n),{},{total_custom_surcharge:e,updated_total_custom_surcharge:e}):Object(j.a)(Object(j.a)({},n),{},Object(ae.a)({},t,e)):n}));r("custom_surcharges",i)};return Object(C.jsx)("div",{className:t.wrapper,style:{marginTop:a?8:24},children:a?Object(C.jsxs)(C.Fragment,{children:[n.map((function(e){return Object(C.jsxs)("div",{className:i&&i[e.id]?Object(V.a)(t.field,t.fieldError):t.field,children:[Object(C.jsx)(kt.a,{id:"custom_surcharge_active_".concat(e.id),onChange:function(t){return l(t.target.checked,"active",e.id)},checked:Boolean(e.active)}),Object(C.jsx)(ye.a,{disabled:!0,name:"surcharge_name_".concat(e.id),value:e.name,margin:"none",InputProps:{style:Object(j.a)(Object(j.a)({},et),{},{width:150,height:48,padding:"0px 10px 0 10px"})}}),Object(C.jsx)(pt.a,{disabled:!e.active,customStyles:Object(j.a)(Object(j.a)({},et),{},{height:33,paddingTop:9}),helperCustomStyles:{top:45},onChange:function(t){return l(t.target.value,"total_custom_surcharge",e.id)},value:e.total_custom_surcharge||"",style:{width:105,marginLeft:8,marginRight:8},margin:"none",placeholder:"00.00",double:!0,error:i&&i[e.id],helperText:i&&i[e.id]?c(i[e.id]):null})]},e.id)})),Boolean(!i||Object(fe.a)(i))&&Object(C.jsx)("p",{className:t.subtotal,children:o("custom_surcharges")})]}):n.map((function(e){return e.active?Object(C.jsxs)("div",{className:t.field,children:[Object(C.jsx)("div",{className:Object(V.a)(t.keyText,t.keyName),children:Object(C.jsx)(Je,{label:e.name})}),Object(C.jsx)("div",{className:Object(V.a)(t.keyText,t.keyValue),children:Object(C.jsx)(Je,{label:Object(lt.a)(Object(de.b)(e.total_custom_surcharge),"en",s)})})]},e.id):null}))})})),Vt=Object(S.a)((function(e){return{suggestionField:{width:290,height:48,display:"flex",alignItems:"center",backgroundColor:"#f4f9ff",borderBottom:"1px dotted rgba(0, 0, 0, 0.42)",boxSizing:"border-box"},icon:{height:"100%",width:54,display:"flex",alignItems:"center",justifyContent:"center",marginRight:6},dates:{display:"flex",alignItems:"center"},date:{color:"#121A2C",fontSize:17,lineHeight:1.2,paddingRight:5},dateMobileStyles:{fontSize:"0.8rem"}}}))((function(e){var t=e.classes,n=e.startDate,a=e.endDate;return Object(C.jsxs)("div",{className:t.suggestionField,children:[Object(C.jsx)("div",{className:t.icon,children:Object(C.jsx)(Ue,{})}),Object(C.jsxs)("div",{className:t.dates,children:[n&&!a&&Object(C.jsx)("span",{className:Object(V.a)(t.date,A.isMobile&&t.dateMobileStyles),children:"".concat(Object(He.b)(n)," - ")}),!n&&a&&Object(C.jsx)("span",{className:Object(V.a)(t.date,A.isMobile&&t.dateMobileStyles),children:"- ".concat(Object(He.b)(a))}),n&&a&&Object(C.jsx)("span",{className:Object(V.a)(t.date,A.isMobile&&t.dateMobileStyles),children:Object(He.c)(n,a)})]})]})})),Ft=function(e){e.classes;var t=e.rowData,n=Object(L.a)().t;return Object(C.jsx)(ve,{label:!0===t?n("COMMERCIAL"):!1===t?n("PRIVATE"):"-"})},Wt={paddingLeft:30},Ut=Object(S.a)($e)((function(e){e.classes,e.editMode;var t,n,a,r,i=e.data,o=e.contract_name,s=Object(L.a)().t,c=null===(t=i.payment)||void 0===t||null===(n=t.pricing_plan)||void 0===n?void 0:n.price_per_night,l=null===(a=i.payment)||void 0===a||null===(r=a.pricing_plan)||void 0===r?void 0:r.total_to_pay;return Object(C.jsx)(Je,{label:Object(C.jsxs)(C.Fragment,{children:[Object(C.jsxs)("span",{style:Wt,children:[o," "]}),Object(C.jsxs)("span",{style:Wt,children:[" ",s("TOTAL_PRICE")," ",l," "]}),Object(C.jsxs)("span",{style:Wt,children:[" ",s("PRICE_PER_NIGHT")," ",c," "]})]})})})),Gt=function(e){e.classes;var t=e.rowData,n=Object(L.a)().t;return Object(C.jsx)(ve,{label:!0===t?n("yes"):!1===t?n("no"):"-"})},zt=Object(S.a)((function(e){return{wrapper:{display:"flex",alignItems:"center",padding:"0 30px 0 30px",minHeight:100,"& .MuiFormHelperText-root":{fontFamily:"Lato"}},paymentElementWrapper:{minHeight:"0px",paddingBottom:"30px"},priceEdit:{cursor:"pointer",paddingLeft:"15px",color:"#0057D4",fontSize:"12px",textDecoration:"underline"},borderedTop:{borderTop:"1px solid #828282",borderTopLeftRadius:4,borderTopRightRadius:4},bordered:{borderRight:"1px solid #828282",borderLeft:"1px solid #828282"},borderedBottom:{paddingBottom:18,borderBottom:"1px solid #828282",borderBottomLeftRadius:4,borderBottomRightRadius:4},suggestion:{minHeight:"62px !important"},wrapperMobile:{width:"100%",boxSizing:"border-box",display:"flex",alignItems:"flex-start",justifyContent:"flex-start",flexDirection:"column",padding:0,minHeight:100,"& .MuiFormHelperText-root":{fontFamily:"Lato"}},item:{width:"100%"}}}))((function(e){var t=e.classes,n=e.format,a=e.data,r=e.rowData,i=e.values,o=e.errors,s=e.handleChange,c=e.setFieldValue,l=e.getSubTotal,d=e.editMode,u=e.changeTab,b=e.currency,p=e.piersMap,m=e.berthList,h=e.allocateReservation,f=e.status,j=e.required,O=e.creationMode,g=e.availableVessels,_=e.selectCreationVessel,E=e.isNewBoaterCreation,y=e.setReservationDates,T=e.handlePricingPlan,S=e.handleSuggestDates,N=e.reservationsErrors,I=e.isSignedUp,w=e.source,D=e.isMarinaLiteVersion,P=e.acceptsOnlinePayments,M=e.reservationsValues,B=e.setNotesEdited,k=Object(L.a)().t,H=Object(x.useState)("perNight"),F=Object(v.a)(H,2),W=F[0],U=F[1],G=Object(x.useMemo)((function(){return M&&M.dates&&M.dates.start_date&&M.dates.end_date?R()(M.dates.end_date).diff(R()(M.dates.start_date),"days"):0}),[M]),z=function(){U("perNight"===W?"total":"perNight")},Y=function(e,t){return{inputProps:{id:e,style:t},onChange:s,error:!!o,helperText:o?k(o):l(e)}},q=function(e,t){return{inputProps:{id:e,style:t},onChange:s,error:!!o[e],helperText:o[e]?k(o[e]):l(e)}},K={berth_id:Object(C.jsx)(Te,{rowData:r,piersMap:p,berthList:m,isMarinaLiteVersion:D,status:f,allocateReservation:h,setFieldValue:c}),price:Object(C.jsx)(mt,{currency:b,setFieldValue:c,editMode:d,values:i,setInputProps:Y}),membership:Object(C.jsx)(st,{editMode:d,setInputProps:Y,values:i,isTemMember:r&&r.tem_member,rowData:r,setFieldValue:c}),contract:Object(C.jsx)(Ut,{data:a,editMode:d,acceptsOnlinePayments:P,contract_name:a.contract_name}),payment:Object(C.jsx)(dt,{currency:b,data:a,editMode:d,acceptsOnlinePayments:P,status:f}),paymentStatus:Object(C.jsx)(ut,{data:a,editMode:d,acceptsOnlinePayments:P,status:f}),payoutStatus:Object(C.jsx)(bt,{data:a,editMode:d,acceptsOnlinePayments:P,status:f}),additionalRequirements:Object(C.jsx)(Ot,{rowData:r}),messageVisitor:Object(C.jsx)(ct,{editMode:d,changeTab:u,setInputProps:Y,values:i,setFieldValue:c}),additional:Object(C.jsx)(tt,{setInputProps:q,editMode:d,values:i,setFieldValue:c}),dates:Object(C.jsx)(Ye,{error:o,rowData:r,editMode:d,values:i,setFieldValue:c,setReservationDates:y,handlePricingPlan:T,handleSuggestDates:S,source:w,isMarinaLiteVersion:D,status:f,reservationsValues:M}),vessel_name:Object(C.jsx)(gt,{rowData:r,editMode:d,setInputProps:Y,value:i,creationMode:O,isNewBoaterCreation:E,isSignedUp:I}),vessel_id:Object(C.jsx)(_t,{rowData:r,editMode:d,setFieldValue:c,value:i,availableVessels:g,selectCreationVessel:_}),vesselSize:Object(C.jsx)(xt,{rowData:r,editMode:d,setSizeInputProps:function(e,t){var n=O?N[e]:o;return{inputProps:{id:e,style:t},onChange:s,error:!!n,helperText:O?n?k(N[e]):l(e):o?k(o):l(e),FormHelperTextProps:{style:{minWidth:147,marginLeft:0}}}},values:i,isSignedUp:I}),vesselTypes:Object(C.jsx)(yt,{row:n,error:N?N.vesselTypes:null,rowData:r,editMode:d,setFieldValue:c,value:i,isSignedUp:I}),private_commercial:Object(C.jsx)(Ft,{rowData:r}),live_aboard:Object(C.jsx)(Gt,{rowData:r}),price_per_night:Object(C.jsx)(Tt,{priceViewMode:W,setPriceViewMode:U,currency:b,setFieldValue:c,editMode:d,value:i,setPriceInputProps:function(e,n){var a=N&&N.price&&N.price.price_per_night;return{inputProps:{id:e,style:n},onChange:function(e){return c(e.target.id,"total"===W?e.target.value/G:e.target.value)},error:a,helperText:a?k(N.price.price_per_night):Object(C.jsxs)(C.Fragment,{children:[" ",Object(C.jsxs)("span",{children:[" ",l("perNight"!==W?"total":e)," "]})," "," "!==l(e)&&d&&Object(C.jsxs)("span",{className:t.priceEdit,onClick:z,children:[" ",k("perNight"===W?"set_total_price":"set_price_per_night")," "]})," "]})}},reservationsValues:M,totalNights:G}),price_suggestion:Object(C.jsx)(Mt,{currency:b,rowData:r,setSuggestion:c,editMode:d,setFieldValue:c}),discount:Object(C.jsx)(Lt,{setFieldValue:c,editMode:d,setInputProps:Y,value:i}),nights_to_redeem:Object(C.jsx)(Bt,{editMode:d,setFieldValue:c,isTemMember:r&&r.tem_member,disableRedeemNightsComponent:r&&r.disableRedeemNightsComponent,value:i,setInputProps:Y,rowData:r}),additionalCharges:Object(C.jsx)(ht,{values:i,setFieldValue:c,editMode:d,setInputProps:q}),paymentRequest:Object(C.jsx)(ft,{values:i,setFieldValue:c,editMode:d,setInputProps:q}),custom_surcharges:Object(C.jsx)(Ht,{values:i,setFieldValue:c,editMode:d,error:o,getSubTotal:l,currency:b}),internalNotes:Object(C.jsx)(jt,{setNotesEdited:B,values:i,setFieldValue:c,editMode:d,setInputProps:q}),notes:"".concat(null===M||void 0===M?void 0:M.notes)};if("suggestions"===n.formatter)return M.suggestions.map((function(e,n){var a=e.id,r=e.startDate,i=e.endDate;return Object(C.jsxs)("div",{className:Object(V.a)(A.isMobile?t.wrapperMobile:t.wrapper,t.suggestion,!A.isMobile&&t.bordered,n===M.suggestions.length-1&&!A.isMobile&&t.borderedBottom),children:[Object(C.jsx)(ue,{label:k("RESERVATION_FORM_OTHER_AVAILABILITIES_SUGGESTION",{index:Object(de.a)(n+1)})}),Object(C.jsx)(Vt,{startDate:r,endDate:i})]},a)}));return Object(C.jsxs)("div",{className:Object(V.a)(A.isMobile?t.wrapperMobile:t.wrapper,"dates"===n.formatter&&"initiated"===f&&M.suggestions.length&&!A.isMobile&&t.bordered,"dates"===n.formatter&&"initiated"===f&&M.suggestions.length&&!A.isMobile&&t.borderedTop,"payoutStatus"===n.formatter&&t.paymentElementWrapper),children:[Object(C.jsx)(ue,{label:Object(le.a)("".concat(k("total"===W&&"price_per_night"===n.formatter?n.label2:n.label)).concat(j?"*":""))}),Object(C.jsx)("div",{className:A.isMobile?t.item:void 0,children:K[n.formatter]})]})})),Yt=Object(S.a)((function(e){return{wrapper:{width:"100%",display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",gap:"8.53vw"}}}))((function(e){var t=e.rows,n=e.editMode,a=e.setNotesEdited,r=e.data,i=e.reservationsValues,o=e.reservationsErrors,s=e.handleChange,c=e.setFieldValue,l=e.getSubTotal,d=e.changeTab,u=e.currency,b=e.piersMap,p=e.berthList,m=e.allocateReservation,h=e.status,f=e.creationMode,j=e.availableVessels,O=e.selectCreationVessel,g=e.isNewBoaterCreation,_=e.setReservationDates,v=e.handlePricingPlan,x=e.source,E=e.isMarinaLiteVersion,y=e.classes,T=e.handleSuggestDates,R=Object(L.a)().t;return Object(C.jsxs)("div",{className:A.isMobile?y.wrapper:void 0,children:[!A.isMobile&&Object(C.jsx)(ce,{title:R("RESERVATION_GENERAL_TITLE")}),t.map((function(e,t){return Object(C.jsx)(zt,{setNotesEdited:a,editMode:f||n,format:e,data:r,rowData:r[e.formatter],isSignedUp:r.is_signed_up,values:i[e.formatter],errors:o[e.formatter],reservationsValues:i,reservationsErrors:o,handleChange:s,setFieldValue:c,getSubTotal:l,changeTab:d,currency:u,piersMap:b,berthList:p,allocateReservation:m,status:h,required:e.required,creationMode:f,availableVessels:j,selectCreationVessel:O,isNewBoaterCreation:g,setReservationDates:_,handlePricingPlan:v,handleSuggestDates:T,source:x,isMarinaLiteVersion:E},"".concat(e.label,"-").concat(t))}))]})})),qt=Object(S.a)((function(e){return{wrapper:{width:"100%",display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",gap:"8.53vw"}}}))((function(e){var t=e.rows,n=e.editMode,a=e.data,r=e.reservationsValues,i=e.reservationsErrors,o=e.handleChange,s=e.setFieldValue,c=e.getSubTotal,l=e.changeTab,d=e.currency,u=e.piersMap,b=e.berthList,p=e.allocateReservation,m=e.status,h=e.creationMode,f=e.isMarinaLiteVersion,j=e.acceptsOnlinePayments,O=e.classes,g=Object(L.a)().t;return Object(C.jsxs)("div",{className:A.isMobile?O.wrapper:void 0,children:[!A.isMobile&&Object(C.jsx)(ce,{title:g("RESERVATION_PRICING_TITLE")}),t.map((function(e,t){return Object(C.jsx)(zt,{editMode:n||h,format:e,data:a,rowData:a[e.formatter],reservationsValues:r,values:r[e.formatter],errors:i[e.formatter],reservationsErrors:i,handleChange:o,setFieldValue:s,getSubTotal:c,changeTab:l,currency:d,piersMap:u,berthList:b,allocateReservation:p,status:m,required:e.required,isMarinaLiteVersion:f,acceptsOnlinePayments:j},"".concat(e.label,"-").concat(t))}))]})})),Kt=Object(S.a)((function(e){return{}}))((function(e){var t=e.rows,n=e.editMode,a=e.data,r=e.reservationsValues,i=e.reservationsErrors,o=e.handleChange,s=e.setFieldValue,c=e.getSubTotal,l=e.changeTab,d=e.currency,u=e.piersMap,b=e.berthList,p=e.allocateReservation,m=e.status,h=e.isMarinaLiteVersion,f=Object(L.a)().t;return Object(C.jsxs)("div",{children:[Object(C.jsx)(ce,{title:f("RESERVATION_BERTHING_TITLE")}),t.map((function(e,t){return Object(C.jsx)(zt,{editMode:n,format:e,data:a,rowData:a[e.formatter],values:r[e.formatter],errors:i[e.formatter],handleChange:o,setFieldValue:s,getSubTotal:c,changeTab:l,currency:d,piersMap:u,berthList:b,allocateReservation:p,status:m,required:e.required,isMarinaLiteVersion:h},"".concat(e.label,"-").concat(t))}))]})})),Xt=Object(S.a)((function(e){return{wrapper:{display:"flex",flexDirection:"column",position:"relative"},liteWrapper:{top:89,height:"calc(100vh - 303px)",position:"absolute",width:"calc(100% - 408px)",boxSizing:"border-box"},liteMobileWrapper:{width:"100%",height:"100%",overflow:"scroll",display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start"},cont:{width:"100%",height:"100%"},liteCont:{height:"calc(100vh - 303px)",position:"relative"},section:{padding:"24px 32px"},sectionMobile:{width:"100%",boxSizing:"border-box",paddingRight:"6.4vw",paddingLeft:"7.2vw"},divider:{height:1,background:"#cdcdcd",width:"90%",marginLeft:"32px"},customerRow:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",width:"100%",boxSizing:"border-box",paddingRight:36},customerInfoLink:{fontWeight:600,fontsize:14,lineHeight:"120%",textDecorationLine:"underline",color:"#121A2C"}}}))((function(e){var t=e.classes,n=e.data,a=e.boater,r=e.handleChange,i=e.setFieldValue,o=e.values,s=e.initialValues,c=e.errors,l=e.getSubTotal,d=e.editMode,u=e.changeTab,b=e.resetForm,p=e.status,m=e.permissions,h=e.user,f=e.piersMap,O=e.availableMatchedBerthsList,g=e.allocateReservation,_=e.creationMode,v=e.availableVessels,E=e.creationBoaterType,y=e.selectCreationVessel,T=e.isNewBoaterCreation,R=e.setReservationDates,S=e.handlePricingPlan,N=e.isMarinaLiteVersion,w=e.onShowCustomerInfo,D=e.handleSuggestDates,B=e.setNotesEdited,k=Object(L.a)().t;Object(x.useEffect)((function(){var e;if(N){var t=document.getElementById("detailsContainer");t&&(e=new P.a(t))}return function(){e&&e.destroy(),e=null}}),[]),Object(x.useEffect)((function(){if(b(s),"initiated"===p||"boater_accepted_suggested_dates"===p){var e=document.getElementById("price_per_night");e&&e.focus()}}),[d]);var H={price_per_night:n.instant_book?k("reservation_instantBookingReservationPrice"):o.price_per_night,discount:o.marina_discount_percent,paymentRequest:o.paymentRequest,nights_to_redeem:o.nights_to_redeem,vessel_name:o.vessel_name,vessel_id:o.vessel_id,vesselSize:{vessel_length:o.vessel_length,vessel_beam:o.vessel_beam,vessel_draft:o.vessel_draft},vesselTypes:{vesselHullType:o.vessel_hull_type,vesselType:o.vessel_type},notes:n.notes,internalNotes:o.internalNotes,dates:o.dates,membership:{isTemMember:n.tem_member,nights_to_redeem:o.nights_to_redeem,maxVal:"finished"===p?"finished":n.membership.nights_available},payment:{method:o.method},additional:{documents:o.required_documents},messageVisitor:{message:o.message,disabled:"EDITOR"!==m.reservations},additionalCharges:Object(j.a)({},o.additional_charges),custom_surcharges:Object(M.a)(o.custom_surcharges),berth_id:o.berth_id,suggestions:o.suggestions},F={price:{price_per_night:c.price_per_night,marina_discount_percent:c.marina_discount_percent},membership:{nights_to_redeem:c.nights_to_redeem},payment:{method:c.method},messageVisitor:{message:c.message},additionalCharges:Object(j.a)({},c.additional_charges),dates:c.dates,vessel_name:c.vessel_name,vessel_length:c.vessel_length,vessel_beam:c.vessel_beam,vessel_draft:c.vessel_draft,vesselTypes:{vessel_hull_type:c.vessel_hull_type,vessel_type:c.vessel_type},custom_surcharges:c.custom_surcharges},W=function(e){var t=!!Object.values(n.additionalRequirements).filter((function(e){return!!e})).length,a=!!o.additional_charges.amount,r=!!_||!!o.marina_discount_percent,i=!!_||!!o.marina_discount_percent,s=_&&"EMAIL"===E&&v.length>1,c=!_&&n.price_suggestion&&n.price_suggestion.dynamic_pricing_permission,l=Boolean(o.custom_surcharges&&o.custom_surcharges.length&&(d||o.custom_surcharges.some((function(e){return e.active})))),u=se.filter((function(e){return"vesselTypes"===(u=e).formatter?(h.marina.marina_settings.marina_requirements.includes("vessel_type")?u.required=!0:u.required=!1,!0):u.required&&!_?"vessel_id"!==u.formatter:u.required&&_?!("vessel_id"===u.formatter&&!s)&&("vessel_name"!==u.formatter||!s):"berth_id"===u.formatter&&h.marina.marina_settings.permissions.inventory?(u.label="canceled_by_marina"===p||"canceled_by_boater"===p?u.label2:u.label1,!0):!("nights_to_redeem"!==u.formatter||"TEM"!==h.marina.association.code||!i&&!d)||!("additionalRequirements"!==u.formatter||!t)||!("additionalCharges"!==u.formatter||!a&&!d)||!("paymentRequest"!==u.formatter||!d&&!_||82!==h.marina.id&&22!==h.marina.id&&(411===h.marina.id||h.marina.id,1))||!("discount"!==u.formatter||!r&&!d)||!("price_suggestion"!==u.formatter||!c)||!("vessel_id"!==u.formatter||!s)||!("vessel_name"===u.formatter&&!s)&&(!("custom_surcharges"!==u.formatter||!l)||!("suggestions"!==u.formatter||!o.suggestions.length||"initiated"!==p)||!("notes"!==u.formatter||!o.notes)||"internalNotes"===u.formatter||"payment"===u.formatter||"paymentStatus"!==u.formatter&&("payoutStatus"===u.formatter?!!(n&&n.payment&&n.payment.payment&&n.payment.payment.payout_status):!("live_aboard"!==u.formatter||!h.marina.marina_settings.instant_booking_requirements.includes("live_aboard"))||!("private_commercial"!==u.formatter||!h.marina.marina_settings.instant_booking_requirements.includes("private_or_commercial"))||"contract"===u.formatter&&!(!n||!n.contract_name)));var u}));return{general:u.filter((function(e){return"general"===e.section})),pricing:u.filter((function(e){return"pricing"===e.section})),berthing:u.filter((function(e){return"berthing"===e.section}))}[e]};n.vessel&&(n.vessel.documents=n.attachments,n.vesselName=n.vessel.name,n.vesselSize={length:n.vessel.length,beam:n.vessel.beam,draft:n.vessel.draft},n.vesselTypes={hull_type:n.vessel.hull_type,type:n.vessel.type},n.vesselHullType=n.vessel.hull_type),n.pricePerNight="",n.nights_to_redeem=n.membership;var U=Object(C.jsx)(Yt,{rows:W("general"),editMode:d,setNotesEdited:B,data:n,reservationsValues:H,reservationsErrors:F,handleChange:r,setFieldValue:i,getSubTotal:l,changeTab:u,currency:h.marina.marina_settings.currency,piersMap:f,berthList:O,allocateReservation:g,status:p,creationMode:_,availableVessels:v,selectCreationVessel:y,isNewBoaterCreation:T,setReservationDates:R,handlePricingPlan:S,handleSuggestDates:D,source:n.source,isMarinaLiteVersion:N}),G=Object(C.jsx)(qt,{rows:W("pricing"),editMode:d,data:n,reservationsValues:H,reservationsErrors:F,handleChange:r,setFieldValue:i,getSubTotal:l,changeTab:u,currency:h.marina.marina_settings.currency,piersMap:f,berthList:O,allocateReservation:g,status:p,creationMode:_,isMarinaLiteVersion:N,acceptsOnlinePayments:h.marina.marina_settings.accepts_online_payments}),z=Object(C.jsx)(Kt,{rows:W("berthing"),editMode:d,data:n,reservationsValues:H,reservationsErrors:F,handleChange:r,setFieldValue:i,getSubTotal:l,changeTab:u,currency:h.marina.marina_settings.currency,piersMap:f,berthList:O,allocateReservation:g,status:p,isMarinaLiteVersion:N});return N&&A.isMobile?Object(C.jsxs)("div",{className:t.liteMobileWrapper,children:[Object(C.jsxs)("div",{className:t.customerRow,children:[Object(C.jsx)(K,{firstName:(null===n||void 0===n?void 0:n.first_name)||(null===a||void 0===a?void 0:a.first_name)||"-",lastName:(null===n||void 0===n?void 0:n.last_name)||(null===a||void 0===a?void 0:a.last_name)||"-",email:n.email||a.email||"-",customerType:"visitor",tem_member:n&&n.tem_member,isMarinaLiteVersion:N}),Object(C.jsx)("span",{onClick:w,className:t.customerInfoLink,children:k("customer_info")})]}),Object(C.jsx)("div",{className:t.sectionMobile,children:U}),Object(C.jsx)("div",{className:t.sectionMobile,children:G}),!_&&Object(I.c)({entity:h.marina,entityType:"marina",permission:"inventory"})&&Object(C.jsx)("div",{className:t.sectionMobile,children:z})]}):Object(C.jsx)("div",{className:Object(V.a)(t.wrapper,N&&t.liteWrapper),children:Object(C.jsxs)("div",{className:Object(V.a)(t.cont,N&&t.liteCont),id:"detailsContainer",children:[Object(C.jsx)("div",{className:t.section,children:U}),Object(C.jsx)("div",{className:t.divider}),Object(C.jsx)("div",{className:t.section,children:G}),!_&&Object(I.c)({entity:h.marina,entityType:"marina",permission:"inventory"})?Object(C.jsxs)(C.Fragment,{children:[Object(C.jsx)("div",{className:t.divider}),Object(C.jsx)("div",{className:t.section,children:z})]}):null]})})})),Qt=n(427),Zt=Object(S.a)((function(e){return{wrapper:{height:"calc(100% - 129px)"},liteWrapper:{top:89,height:"calc(100vh - 303px)",position:"absolute",width:"calc(100% - 408px)",boxSizing:"border-box"},liteMobileWrapper:{flexGrow:1,minHeight:1,width:"100%",boxSizing:"border-box"}}}))((function(e){var t=e.classes,n=e.data,a=e.unreadCounter,r=e.handleCreateMessage,i=e.handleReadMessages,o=e.boater,s=e.user,c=e.message,l=e.handleChange,d=e.isMarinaLiteVersion;return Object(C.jsx)("div",{className:d?A.isMobile?t.liteMobileWrapper:t.liteWrapper:t.wrapper,children:Object(C.jsx)(Qt.a,{data:n,unreadCounter:a,handleCreateMessage:r,handleReadMessages:i,boater:o,user:s,message:c,handleChange:l})})})),Jt=n(916),$t=Object(S.a)((function(e){return{primaryButton:{background:"#255EDD",color:"#fff",textTransform:"none",padding:"8px 20px 8px 26px","&:hover":{background:"#0036b1",color:"#fff"},itemLabel:{fontSize:e.utils.pxToRem(15),width:"95px",height:"17px",margin:"3px 0 4px 6px",fontWeight:"bold",fontStretch:"normal",fontStyle:"normal",lineHeight:"normal",letterSpacing:"normal",color:"#253967",fontFamily:"Lato"},"&.MuiButton-root.Mui-disabled":{background:"#c9c7c5",color:"#fefefe"}},litePrimaryButton:{minWidth:192},buttonContainer:{display:"flex",alignItems:"center"},menuLabel:{paddingRight:function(e){return e.icon&&8}}}}))((function(e){var t=e.classes,n=e.menuLabel,a=e.icon,r=e.disabled,i=void 0!==r&&r,o=e.menuItems,s=e.afterHandleOpenMenu,c=void 0===s?function(){}:s,l=e.afterHandleCloseMenu,d=void 0===l?function(){}:l,u=e.isMarinaLiteVersion,b=e.testID,p=Object(x.useState)(null),m=Object(v.a)(p,2),h=m[0],f=m[1];return Object(C.jsxs)(C.Fragment,{children:[Object(C.jsx)(Q.a,{additionalStyling:Object(V.a)(u?t.litePrimaryButton:t.primaryButton),type:"main",large:!0,onClick:function(e){f(e.currentTarget),c()},disabled:i,isMarinaLiteVersion:u,children:Object(C.jsxs)("div",{className:t.buttonContainer,children:[Object(C.jsx)("span",{className:t.menuLabel,testId:b,style:{fontWeight:700,marginRight:"auto"},children:n}),a]})}),Object(C.jsx)(Jt.a,{id:"menu",style:{top:-40},anchorEl:h,open:!!h,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:function(){f(null),d()},PaperProps:{style:{minWidth:200,marginTop:41,alignItems:"center"}},children:o.map((function(e,n){var a=e.onClick,r=e.disabled,i=void 0!==r&&r,o=e.label,s=e.testID;return Object(C.jsx)(Ze.a,{onClick:a,disabled:i,testID:s,children:Object(C.jsx)("div",{className:t.itemLabel,children:o})},n)}))})]})})),en=n(199),tn=n(502),nn=n.n(tn),an=Object(S.a)((function(e){return{wrapper:{display:"flex",justifyContent:"space-between",alignItems:"center",position:"absolute",bottom:0,left:0,background:"#1f263e",width:"calc(100% - 30px)",padding:"10px 15px",borderRadius:4,fontSize:e.utils.pxToRem(15),fontWeight:700},liteWrapper:{background:e.marinaLiteVersion.backgroundColor,borderRadius:0,padding:"15px 32px",width:"100%",boxSizing:"border-box"},infoBlock:{display:"flex",justifyContent:"space-between",fontSize:15},infoItem:{display:"flex",flexDirection:"column",marginRight:e.utils.pxToRem(40)},liteInfoItem:{marginRight:80},keyText:{color:"#aeaeae",marginBottom:5},liteKeyText:{color:"#ffffff",fontWeight:"normal"},valueText:{color:"#fff"},actionBlock:{display:"flex",justifyContent:"space-between"},spacer:{width:15},selectButton:{backgroundColor:"#255EDD",color:"#fff","&:hover":{background:"#fff",color:"#255EDD",border:"1px solid #255EDD"}},approveButton:{background:"#00c48c",color:"#fff","&:hover":{background:"#fff",color:"#00c48c",border:"1px solid #00c48c"},"&:disabled":{background:"#3C686C",color:"#6F7383",border:"1px solid #3C686C"}},sendButton:{background:"#255EDD",color:"#fff","&:hover":{background:"#fff",color:"#255EDD",border:"1px solid #255EDD"},"&:disabled":{background:"rgba(0, 73, 245, 0.5)",color:"#999",border:"1px solid rgba(0, 73, 245, 0.5)"}},menuItem:{color:"#255EDD"},menuItemText:{fontSize:e.utils.pxToRem(15),width:"95px",height:"17px",margin:"3px 0 4px 6px",fontWeight:"bold",fontStretch:"normal",fontStyle:"normal",lineHeight:"normal",letterSpacing:"normal",color:"#253967",fontFamily:"Lato"},wrapperMobile:{width:"100%",background:"#FFFFFF",boxShadow:"0px -2px 20px rgba(0, 0, 0, 0.08)",padding:"4.26vw",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box"},priceWrapper:{display:"flex",flexDirection:"row",alignItems:"flex-end",fontWeight:700,color:"#121A2C",fontSize:30,lineHeight:"120%",minHeight:36},nights:{display:"flex",flexDirection:"row",alignItems:"flex-end",fontWeight:400,color:"rgba(18, 26, 44, 1)",fontSize:15,lineHeight:"120%"}}}))((function(e){var t=e.classes,n=e.data,a=e.updateReservation,r=e.updateReservationMM,i=e.updPayload,o=e.showDialog,s=e.hideDialog,c=e.status,l=e.editMode,d=e.handleCancelEdit,u=e.handleCancel,b=e.checkUpload,p=e.checkPrice,m=e.isExpired,h=(e.isStartDatePassed,e.permissions),f=(e.currency,e.isLoading),O=e.setIsLoading,g=(e.isChanged,e.creationMode),_=e.createReservation,E=e.getCreationDetails,y=e.contactInfoErrors,T=e.isMarinaLiteEditable,S=e.isMarinaLiteVersion,N=e.setSubmitted,I=e.validateBoaterInfoFields,w=Object(L.a)().t,D="EDITOR"===h.reservations,P=Object(x.useState)(null),M=Object(v.a)(P,2),B=M[0],k=M[1],H={total_to_pay:n.price,marina_discount_percent:i.payment&&i.payment.marina_discount_percent,additional_charges:i.payment&&i.payment.additional_charges,nights_to_redeem:i.payment&&i.payment.nights_to_redeem},F=function(e,t,i){var c={UPDATE:{title:"reservation_updDialogTitle",description:"reservation_updDialogDesc",confLabel:"reservation_updDialogConfirm"},NOTIFY:{title:"reservation_updDialogTitle",description:"reservation_updDialogDesc",confLabel:"reservation_updDialogConfirm"},APPROVE:{title:"reservation_approveDialogTitle",description:"reservation_approveDialogDesc",confLabel:"reservation_approveDialogConfirm"},ADD_TO_WAITING_LIST:{title:"reservation_addToWaitingListDialogTitle",description:"reservation_addToWaitingListDialogDesc",confLabel:"reservation_addToWaitingListDialogConfirm"}};o({open:!0,title:c[e].title,description:c[e].description,body:c[e].body,confirm:{label:c[e].confLabel,onClick:"MARINA"===n.source?function(){return r(e,Object(j.a)({},t),i)}:function(){return a(e,Object(j.a)({},t),i)}},cancel:{label:"cancel",onClick:function(){return s()}}})},W=function(e){N(!0),I(),U()&&p&&e()},U=function(){var e=Object.keys(n.errors).length;return!(g&&Object.keys(y).length||e)},G=function(e){return{confirmButton:m||+n.max<+n.nightsToRedeem||"waiting_list"!==c,sendButton:m||+n.max<+n.nightsToRedeem||"marina_added_dates"===c,approveButton:m||+n.max<+n.nightsToRedeem||!b||"waiting"===c||"initiated"===c||"boater_accepted_suggested_dates"===c||"payment_expired"===c||!D}[e]},z=n.instant_book?w("reservation_instantBookingReservationPrice"):n.price,Y=function(e){return O(e)},q=Object(C.jsx)(C.Fragment,{children:T&&Object(C.jsxs)("div",{className:t.actionBlock,children:["MARINA"===n.source||Object(en.h)({last_status_code:c})?null:Object(C.jsx)(C.Fragment,{children:"initiated"===c||"boater_accepted_suggested_dates"===c||"marina_added_dates"===c||"waiting_list"===c&&"BOATER"===n.source?Object(C.jsx)($t,Object(j.a)({},function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{menuLabel:w("reservation_sendToCustomer"),isMarinaLiteVersion:S,menuItems:[{label:w("reservation_approveReservation"),onClick:function(){return W((function(){return F("UPDATE",Object(j.a)({},i),H)}))},disabled:G(e?"confirmButton":"sendButton"),testID:"sendToVisitorMenuItem"},{label:w("reservation_decline"),onClick:function(){return u(Y)},testID:"declineReservationMenuItem"},{label:w("ADD_TO_WAITING_LIST"),onClick:function(){return W((function(){return F("ADD_TO_WAITING_LIST",Object(j.a)({},i),H)}))},disabled:!!e||G("sendButton"),testID:"addToWaitingListMenuItem"}],testID:"sendToVisitorButton"}}("waiting_list"===c))):Object(C.jsx)(C.Fragment,{children:l&&"waiting_list"!==c?Object(C.jsxs)(C.Fragment,{children:[Object(C.jsx)(Q.a,{type:"secondary",large:!0,isMarinaLiteVersion:S,onClick:function(){return d()},disabled:!D||f,additionalStyling:t.declineButton,bold:!0,children:w("cancel")}),Object(C.jsx)("span",{className:t.spacer}),Object(C.jsx)(Q.a,{type:"main",large:!0,isMarinaLiteVersion:S,onClick:function(){return W((function(){return F("UPDATE",Object(j.a)({},i),H)}))},minWidth:140,disabled:G("sendButton")||f,bold:!0,children:w("reservation_sendToCustomer")})]}):null})}),g&&Object(C.jsx)($t,Object(j.a)({},{isMarinaLiteVersion:S,menuLabel:w("MARINA_RESERVATION_FORM_EMAIL_CTA"),icon:Object(C.jsx)(nn.a,{}),disabled:G("sendButton")||f,menuItems:[{label:w("MARINA_RESERVATION_FORM_EMAIL_CTA"),onClick:function(){return W((function(){return _(E("NOTIFY"))}))},disabled:G("sendButton")||f},{label:w("reservation_approveReservation"),onClick:function(){return W((function(){return _(E("APPROVE"))}))},disabled:G("approveButton")||f},{label:w("ADD_TO_WAITING_LIST"),onClick:function(){return W((function(){return _(E("ADD_TO_WAITING_LIST"))}))},disabled:G("sendButton")||f}]})),"waiting_list"===c&&"MARINA"===n.source&&Object(C.jsxs)(C.Fragment,{children:[Object(C.jsx)(Q.a,{type:"main",large:!0,isMarinaLiteVersion:S,onClick:function(e){return W((function(){k(e.currentTarget)}))},disabled:G("confirmButton"),testID:"sendToVisitor",children:w("reservation_sendToCustomer")}),Object(C.jsxs)(Jt.a,{id:"menu-waiting",style:{top:-40},anchorEl:B,open:!!B,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:function(){k(null)},PaperProps:{style:{minWidth:200,marginTop:41,alignItems:"center"}},children:[Object(C.jsx)(Ze.a,{onClick:function(){return F("NOTIFY",Object(j.a)({},i),H)},children:Object(C.jsx)("div",{className:t.menuItemText,children:w("MARINA_RESERVATION_FORM_EMAIL_CTA")})}),Object(C.jsx)(Ze.a,{onClick:function(){return F("APPROVE",Object(j.a)({},i),H)},children:Object(C.jsx)("div",{className:t.menuItemText,children:w("reservation_approveReservation")})})]})]})]})});return S&&A.isMobile?Object(C.jsxs)("div",{className:t.wrapperMobile,children:[Object(C.jsxs)("div",{className:t.priceWrapper,children:[n.price||"--",n.nights&&Object(C.jsxs)("span",{className:t.nights,children:["/",w("reservation_nights_count",{nights:n.nights})]})]}),q]}):Object(C.jsxs)("div",{className:Object(V.a)(t.wrapper,S&&t.liteWrapper),children:[Object(C.jsxs)("div",{className:t.infoBlock,children:[Object(C.jsxs)("div",{className:Object(V.a)(t.infoItem,S&&t.liteInfoItem),children:[Object(C.jsx)("span",{className:Object(V.a)(t.keyText,S&&t.liteKeyText),children:w("reservation_dates")}),Object(C.jsx)("span",{className:t.valueText,children:n.start_date&&n.end_date?Object(He.c)(R()(n.start_date),R()(n.end_date)):null})]}),Object(C.jsxs)("div",{className:Object(V.a)(t.infoItem,S&&t.liteInfoItem),children:[Object(C.jsx)("span",{className:Object(V.a)(t.keyText,S&&t.liteKeyText),children:w("reservation_totalNights")}),Object(C.jsx)("span",{className:t.valueText,children:n.nights})]}),Object(C.jsxs)("div",{className:Object(V.a)(t.infoItem,S&&t.liteInfoItem),children:[Object(C.jsx)("span",{className:Object(V.a)(t.keyText,S&&t.liteKeyText),children:w("reservation_totalPrice")}),Object(C.jsx)("span",{className:t.valueText,children:z})]}),n.deposit&&Object(C.jsxs)("div",{className:Object(V.a)(t.infoItem,S&&t.liteInfoItem),children:[Object(C.jsx)("span",{className:Object(V.a)(t.keyText,S&&t.liteKeyText),children:w("reservation_deposit")}),Object(C.jsx)("span",{className:t.valueText,children:n.deposit})]})]}),q]})})),rn=function(e){return Object(C.jsx)(z.a,Object(j.a)(Object(j.a)({viewBox:"0 0 18 18"},e),{},{children:Object(C.jsx)("g",{fill:"none",fillRule:"evenodd",children:Object(C.jsx)("g",{children:Object(C.jsxs)("g",{children:[Object(C.jsx)("g",{fill:"#1A1A1B",fillRule:"nonzero",children:Object(C.jsx)("path",{d:"M3.333 15.833c0 .459.375.834.834.834H7.5c.458 0 .833-.375.833-.834V15h-5v.833zM5.833 0C2.617 0 0 2.617 0 5.833c0 1.984.992 3.725 2.5 4.784V12.5c0 .458.375.833.833.833h5c.459 0 .834-.375.834-.833v-1.883c1.508-1.059 2.5-2.8 2.5-4.784C11.667 2.617 9.05 0 5.833 0zm2.375 9.25l-.708.5v1.917H4.167V9.75l-.709-.5c-1.125-.783-1.791-2.058-1.791-3.417 0-2.3 1.866-4.166 4.166-4.166 2.3 0 4.167 1.866 4.167 4.166 0 1.359-.667 2.634-1.792 3.417z",transform:"translate(-626.000000, -159.000000) translate(626.000000, 159.000000) translate(3.166667, 0.666667)"})}),Object(C.jsx)("path",{d:"M0 0H18V18H0z",transform:"translate(-626.000000, -159.000000) translate(626.000000, 159.000000)"})]})})})}))};rn.displayName="LightIcon",rn.muiName="SvgIcon";var on=rn,sn=n(1713),cn=n(202),ln=n(96),dn=ln.d().shape({method:ln.e().required(),price_per_night:ln.c().typeError("reservation_inValidNumber").required("reservation_priceRequired"),marina_discount_percent:ln.c().typeError("reservation_inValidNumber"),nights_to_redeem:ln.c().typeError("reservation_inValidNumber"),additional_charges:ln.d().shape({chargeType:ln.e(),type:ln.e(),amount:ln.c()})}),un=function(e){if(!e)return{chargeType:"harbor_dues",type:"TOTAL",amount:0};var t=e.additional_charges,n=Object.keys(t).filter((function(e){return t[e].amount}))[0],a=n?t[Object.keys(t).filter((function(e){return t[e].amount}))[0]]:{type:"TOTAL",amount:0};return{chargeType:n,type:a.type,amount:a.amount}},bn=Object(cn.f)({mapPropsToValues:function(e){var t,n=e.data,a=n.pricing_plan,r=n.payment,i=n.requested_redeem_nights_amount,o=n.required_documents,s=n.end_date,c=n.start_date,l=a&&a.price_per_night?a.price_per_night:0,d=a&&a.discount_percent?a.discount_percent:0,u=a&&a.available_custom_surcharges&&a.available_custom_surcharges.length?a.available_custom_surcharges:[],b=e.user.marina.marina_settings.currency,p=o?{vessel_insurence:o.vessel_insurence,vessel_license:o.vessel_license,skipper_id:o.skipper_id}:{vessel_insurence:!1,vessel_license:!1,skipper_id:!1};r?t=r.nights_to_redeem||"0":ot()(i)?e.creationMode&&(t="0"):t=i||0;var m=[];r?m=r.custom_surcharges||[]:u.length&&(m=u.map((function(e){return Object(j.a)(Object(j.a)({},e),{},{active:!0})})));var h=[],f=(e.data.statuses?e.data.statuses[e.data.statuses.length-1]:{}).suggested_dates,O=e.data.statuses&&e.data.statuses[e.data.statuses.length-1]&&e.data.statuses[e.data.statuses.length-1].status_code;f&&f.length&&"BOATER_ACCEPTED_SUGGESTED_DATES"!==O&&(h=f.map((function(e){var t=e.start_date,n=e.end_date;return{id:Object(we.a)(),startDate:t,endDate:n}})));var g=82===e.user.marina.id||411===e.user.marina.id&&!1,_=22===e.user.marina.id||265===e.user.marina.id&&!1;return{method:r&&r.method||"IN_MARINA",price_per_night:r&&r.price_per_night||l||0,marina_discount_percent:r&&r.marina_discount_percent||d||"0",paymentRequest:r&&r.deposit_rate||(g?25:_?10:100),nights_to_redeem:t,currency:b,message:"",total:Object(He.f)(s,c,"nights",!0),required_documents:Object(j.a)({},p),additional_charges:un(r),dates:{start_date:e.data?e.data.start_date:null,end_date:e.data?e.data.end_date:null},notes:e.data.notes,internalNotes:e.data.internal_note,vessel_name:e.vessel?e.vessel.name:"",vessel_length:e.vessel?e.vessel.length:"",vessel_beam:e.vessel?e.vessel.beam:"",vessel_draft:e.vessel?e.vessel.draft:"",vessel_hull_type:e.vessel?e.vessel.hull_type:"",vessel_type:e.vessel?e.vessel.type:null,vessel_id:e.vessel?e.vessel.id:null,custom_surcharges:m.length?m:[],berth_id:e.data.berth_id||null,suggestions:h}},validate:function(e,t){var n={},a=t.user.marina.marina_settings.marina_requirements,r=t.data.nights_available;t.creationMode&&(t.creationVessel&&t.creationVessel.memberships.length&&(r=t.creationVessel.memberships[0].card_stats.redeemNightsLeft));if(e.nights_to_redeem>e.total&&(n.nights_to_redeem="reservation_moreThanTotal"),e.nights_to_redeem>r&&(n.nights_to_redeem="reservation_moreThanAvailable"),e.dates.start_date&&e.dates.end_date||(n.dates="reservation_dates_required"),e.vessel_name||(n.vessel_name="vesselNameRequired"),e.vessel_length||(n.vessel_length="boatloaRequired"),e.vessel_beam||(n.vessel_beam="boatBeamRequired"),e.vessel_draft||(n.vessel_draft="boatDraftRequired"),e.vessel_hull_type||(n.vessel_hull_type="HullTypeRequired"),!e.vessel_type&&a.includes("vessel_type")&&t.creationMode&&(n.vessel_type="vesselTypeRequired"),e.price_per_night||(n.price_per_night="reservation_priceRequired"),e.vessel_length&&e.vessel_length<.1&&(n.vessel_length="boatloaTooShort"),e.vessel_beam&&e.vessel_beam<.1&&(n.vessel_beam="boatbeamTooShort"),e.vessel_draft&&e.vessel_draft<.1&&(n.vessel_draft="boatdraftTooShort"),e.custom_surcharges&&e.custom_surcharges.length){var i={};e.custom_surcharges.forEach((function(e){var t=e.total_custom_surcharge,n=e.active,a=e.id;n&&!t&&(i[a]="pricingSurchargeValueError")})),Object(fe.a)(i)||(n.custom_surcharges=i)}return n},enableReinitialize:!0,validationSchema:dn,validateOnMount:!0}),pn=n(121),mn=n(413),hn=n(60),fn=n.n(hn),jn=n(266),On=n.n(jn),gn=n(76),_n=bn(Object(S.a)((function(e){var t,n;return{title:Object(ae.a)({display:"flex",fontSize:15,height:62,alignItems:"center",textTransform:"uppercase",color:"#1A1A1B",fontWeight:700},"@media (max-width:1390px)",{maxWidth:240}),wrapper:{position:"relative",minWidth:"100%",borderRadius:4,boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.13)",background:"#fff",border:"1px solid #c5c5c5","& .MuiTab-textColorInherit":{opacity:1}},liteWrapper:{borderLeft:"1px solid #c5c5c5"},noTextTransform:{textTransform:"none",fontWeight:"bold",letterSpacing:"normal",fontFamily:"Lato",fontSize:"15px",fontStretch:"normal",fontStyle:"normal",lineHeight:"normal",color:"#1A1A1B",alignItems:"center ",display:"flex",minWidth:190},editButton:{display:"flex",fontSize:15,fontWeight:"bold",textTransform:"none",letterSpacing:"normal",lineHeight:"normal"},messagesCounterContainer:{display:"flex",justifyContent:"center",marginLeft:5,alignItems:"center",width:24,height:24,background:"#f5821f",borderRadius:"50%",color:e.palette.white,fontWeight:700},field:{width:"100%"},statusContainer:{display:"flex",alignItems:"center",justifyContent:"center",padding:"0 30px"},dNone:Object(ae.a)({},"@media (max-width:1300px)",{display:"none"}),viewFull:{display:"flex",justifyContent:"center",alignItems:"center",padding:"0 20px"},button:{textTransform:"none",fontWeight:"bold",maxWidth:"200px",padding:20,maxHeight:33},buttonInvis:{textTransform:"none",fontWeight:"bold",padding:"14px 20px",width:"100%",opacity:0,maxWidth:"200px"},innerTabsWrapper:(t={display:"flex",borderBottom:"1px solid #c5c5c5"},Object(ae.a)(t,"@media (min-width:1300px)",{}),Object(ae.a)(t,"padding","0 30px"),Object(ae.a)(t,"maxWidth","100%"),Object(ae.a)(t,"justifyContent","space-between"),t),liteInnerTabsWrapper:{paddingTop:19,background:"#ffffff",position:"absolute",top:0,right:0,width:"calc(100% - 408px)",boxSizing:"border-box",zIndex:1},arrowDown:(n={},Object(ae.a)(n,"@media (min-width:1290px)",{marginLeft:"18px"}),Object(ae.a)(n,"padding",0),n),invis:{opacity:0},spacer:{height:60},cardInfoContainer:{display:"flex",flexDirection:"column"},grower:{flexGrow:1},bannerWrapper:{display:"flex",paddingTop:"20px",paddingBottom:"21px",paddingLeft:"29px",borderRadius:"4px",border:"solid 1px #cdcdcd",backgroundColor:"#fffde7"},bannerText:{color:"#1A1A1B",paddingLeft:"8px"},bannerDivider:{backgroundColor:"#f4f6fa",height:"10px"},lightIcon:{fontSize:"18px",alignSelf:"center"},tabLabel:{display:"flex",fontFamily:"Lato",fontSize:16},liteMobileWrapper:{width:"100%",height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between"},liteMobileContentWrapper:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"flex-start",flex:1,minHeight:1,position:"relative"},drawer:{width:"100%",height:"100%",position:"absolute",top:0,left:0,backgroundColor:"white"},drawerClosed:{width:"100%",height:"100%",position:"absolute",top:0,left:0,transform:"translateX(-100%)",backgroundColor:"white",transition:"translateX 1s ease-in"}}}))((function(e){var t,n,a,r,i=e.classes,o=e.data,s=e.handleChange,c=e.setFieldValue,l=e.setFieldTouched,d=e.updateReservation,u=e.showReservationDeclinePopup,b=e.location,p=e.values,m=e.initialValues,h=e.touched,f=e.errors,O=e.validateBoaterInfoFields,g=e.handleCreateMessage,_=e.handleReadMessages,E=e.handleUpdateMessage,T=e.showDialog,S=e.hideDialog,N=e.messages,w=e.resetForm,D=e.defaultTab,P=e.user,B=e.permissions,k=e.showChatPopup,H=e.chatEnableCb,W=e.piersMap,U=e.availableMatchedBerthsList,z=e.allocateReservation,Y=e.getAllPiers,q=(e.getAvailableBerths,e.getAvailableMatchedBerhts),K=e.isLoading,X=e.setIsLoading,Z=e.createReservation,J=e.resetCreatedReservation,$=e.creationMode,ee=e.boater,te=e.showOverlay,ne=e.hideOverlay,re=e.boaterValues,se=e.creationVessel,ce=e.availableVessels,le=e.creationBoaterType,ue=e.updateReservationMM,pe=e.isNewBoaterCreation,me=e.setReservationDates,he=e.reservationDates,fe=e.setCreationVessel,je=(e.isValidating,e.setSubmitted),Oe=e.isSubmitted,ge=e.setSelectedSuggestedValue,_e=e.selectedSuggestedValue,ve=e.setSuggestion,xe=e.setSuggestedPrice,Ee=e.suggestedPrice,ye=e.finalPrice,Te=e.setFinalPrice,Re=e.dynamicPrice,Ae=e.randomValue,Se=e.setRandomValue,Ne=e.contactInfoErrors,Ie=e.getPricingPlanCalculation,Ce=e.isMarinaLiteVersion,we=e.isMarinaLiteEditable,De=e.handleCloseReservationPopup,Pe=e.userDetails,Me=e.userView,Le=e.setFormChanged,Be=e.onShowCustomerInfo,ke=Object(x.useMemo)((function(){var e,t,n,a;return Object(He.f)(o.end_date||(null===(e=p)||void 0===e||null===(t=e.dates)||void 0===t?void 0:t.end_date),o.start_date||(null===(n=p)||void 0===n||null===(a=n.dates)||void 0===a?void 0:a.start_date),"nights",!0)}),[o.end_date||(null===(t=p)||void 0===t||null===(n=t.dates)||void 0===n?void 0:n.end_date),o.start_date||(null===(a=p)||void 0===a||null===(r=a.dates)||void 0===r?void 0:r.start_date)]),Ve=Object(pn.a)().sendToAmplitude;console.log("AVAI: ",U);var Fe=Object(x.useMemo)((function(){if(se&&se&&!fn()(se.memberships)){var e=se.memberships[0].card_stats.redeemNightsLeft;if(!fn()(p.dates.start_date)&&!fn()(p.dates.end_date)){var t=p.dates,n=t.start_date,a=t.end_date,r=R()(a,"YYYY-MM-DD").diff(R()(n,"YYYY-MM-DD"),"days");return r1&&void 0!==arguments[1]&&arguments[1];et(t?"":e.target.value)},at=Object(L.a)().t,rt=Object(x.useCallback)((function(){return D?Number(D):0}),[D]),it=Object(x.useState)(rt()),ot=Object(v.a)(it,2),st=ot[0],ct=ot[1],dt=Object(x.useState)(null),ut=Object(v.a)(dt,2),bt=ut[0],pt=ut[1],mt=Object(x.useState)(!1),ht=Object(v.a)(mt,2),ft=ht[0],jt=ht[1],Ot=Object(x.useState)(!1),gt=Object(v.a)(Ot,2),_t=gt[0],vt=gt[1],xt=Object(x.useMemo)((function(){return R()(o.start_date).isBefore(R()(),"days")}),[o.start_date]);Object(x.useEffect)((function(){w(m)}),[ft]),Object(x.useEffect)((function(){o&&JSON.stringify(o)&&o.start_date&&o.end_date&&(console.log("HDAAAAAAAAAAAAAAAAAAATTTTTTTTTTTTTTTTTTAAAAAAAAAAa :",o),Y(),q(o))}),[o.id]);var Et=function(){pt(null)},yt=function(e,t){pt(null),e.apply(void 0,Object(M.a)(t))},Tt=Object(x.useMemo)((function(){if($)return"pending";for(var e=o.statuses||[],t=(e=e.sort((function(e,t){return R()(e.created_at).isAfter(t.created_at)?1:-1}))).length-1,n=e[t];t&&"BOATER_ADDED_DOCUMENTS"===n.status_code;)n=e[--t];return n?"BOATER"!==n.action_required||"UPDATED"!==n.status_code&&"BOATER_ACCEPTED"!==n.status_code?"MARINA"!==n.action_required||"UPDATED"!==n.status_code&&"BOATER_ACCEPTED"!==n.status_code?"BOATER_ACCEPTED_SUGGESTED_DATES"===n.status_code?"boater_accepted_suggested_dates":"INSTANT_BOOK"===n.status_code?"approved":n.status_code?n.status_code.toLowerCase():"-":"pending":"waiting":"pending"}),[o.statuses]);Object(x.useEffect)((function(){jt(!("initiated"!==Tt&&"boater_accepted_suggested_dates"!==Tt||!we))}),[o.statuses]);var Rt=Object(x.useCallback)((function(e,t){1!==t||P.marina.marina_settings.permissions.chat?ct(t):k(H)}),[]),At=Object(x.useCallback)((function(e){return at(f[e])}),[]);Object(x.useEffect)((function(){xe(Object(de.b)(p.price_per_night?+p.price_per_night:0))}),[p.price_per_night]);var St=Object(x.useCallback)((function(e,t){var n=P.marina.marina_settings.currency,a=$||"MARINA"===o.source?+p.total*+p.price_per_night:+ke*+p.price_per_night,r=+a*(p.marina_discount_percent/100),i=p.price_per_night-p.price_per_night*p.marina_discount_percent/100,s=+p.nights_to_redeem*(i/2),c="total"===p.additional_charges.type.toLowerCase()?+p.additional_charges.amount:+ke*p.additional_charges.amount,l=p.custom_surcharges&&p.custom_surcharges.length&&p.vessel_length?function(){var e=0;return p.custom_surcharges.forEach((function(t){var n=t.total_custom_surcharge;t.active&&(e+=parseFloat(n))})),e}():0,d=o.payment&&o.payment.total_to_pay;Te(!d||ft?a-r-s+c+l:d);var u;u=p.additional_charges.chargeType;var b={harbor_dues:at("reservation_harbor_dues"),taxes:at("reservation_taxes"),fees:at("reservation_fees")};return{price_per_night:a?"".concat(at("reservation_subtotal"),": ").concat(Object(lt.a)(Object(de.b)(p.price_per_night),"en",n)," x ").concat(ke," ").concat(at(1===ke?"night":"nights")," = ").concat(Object(lt.a)(Object(de.b)(a),"en",n)):" ",total:a?"".concat(at("reservation_subtotal"),": ").concat(Object(lt.a)(Object(de.b)(a),"en",n)," ").concat(at("for")," ").concat(ke," ").concat(at(1===ke?"night":"nights")):" ",marina_discount_percent:r?"".concat(at("reservation_totalDiscount"),": ").concat(Object(lt.a)(Object(de.b)(r),"en",n)):" ",nights_to_redeem:s?"".concat(at("reservation_totalDiscount"),": ").concat(Object(lt.a)(Object(de.b)(i/2),"en",n)," x ").concat(Object(lt.a)(Object(de.b)(p.nights_to_redeem),"en",n)," = ").concat(Object(lt.a)(Object(de.b)(s),"en",n)," | ").concat(at("reservation_subtotal"),": ").concat(Object(lt.a)(Object(de.b)(ye),"en",n)):" ",amount:c?"total"===p.additional_charges.type.toLowerCase()?"".concat(at("reservation_total")," ").concat(b[u],": ").concat(Object(lt.a)(Object(de.b)(c),"en",n)):"".concat(at("reservation_total")," ").concat(b[u],": ").concat(Object(lt.a)(Object(de.b)(p.additional_charges.amount),"en",n)," x ").concat(ke," ").concat(at("nights")," = ").concat(Object(lt.a)(Object(de.b)(c),"en",n)):" ",custom_surcharges:l?t?l:"".concat(at("reservation_totalCustomSurcharges"),": ").concat(Object(lt.a)(Object(de.b)(l),"en",n)):"",final:ye?t?ye:Object(lt.a)(Object(de.b)(ye),"en",n):0}[e]}),[o,p,ye]),Nt={start_date:$||"MARINA"===o.source?p.dates.start_date:o.start_date,end_date:$||"MARINA"===o.source?p.dates.end_date:o.end_date,nights:$||"MARINA"===o.source?p.total:ke,nightsToRedeem:p.nights_to_redeem,price:St("final")||0,deposit:p.paymentRequest&&100!==p.paymentRequest?Object(lt.a)(Object(de.b)(St("final",!0)*(p.paymentRequest/100)),"en",P.marina.marina_settings.currency):void 0,errors:f,max:$?Fe:o.nights_available,instant_book:o.instant_book,source:o.source},It=p.additional_charges.chargeType?p.additional_charges.chargeType:"fees",Ct={payment:Object(j.a)(Object(j.a)({},o.payment),{},{method:"IN_MARINA",price_per_night:p.price_per_night||0,marina_discount_percent:p.marina_discount_percent||0,nights_to_redeem:p.nights_to_redeem||0,deposit_rate:p.paymentRequest||100,additional_charges:Object(ae.a)({},It,{type:p.additional_charges.type||"harbor_dues",amount:p.additional_charges.amount||0}),custom_surcharges:p.custom_surcharges}),internal_notes:p.internalNotes,message:p.message,required_documents:p.required_documents,vessel:{hull_type:p.vessel_hull_type,length:p.vessel_length,beam:p.vessel_beam,draft:p.vessel_draft,name:p.vessel_name,type:p.vessel_type},dates:p.dates,start_date:R.a.isMoment(p.dates.start_date)?Object(He.a)(p.dates.start_date):p.dates.start_date,end_date:R.a.isMoment(p.dates.end_date)?Object(He.a)(p.dates.end_date):p.dates.end_date,nights_to_redeem:p.nights_to_redeem,berth_id:p.berth_id},wt=Object(x.useCallback)((function(e){fe(ce.find((function(t){return t.id===e})))}),[ce]),Dt=Object(x.useCallback)((function(e){wt(e),setTimeout((function(){Ue("dates",he)}),0)}),[se]),Pt=function(e){var t={data:Ke,editMode:ft,setNotesEdited:vt,handleChange:function(e){return Ge(e)},setFieldValue:function(e,t){return Ue(e,t)},values:p,initialValues:m,errors:Oe?f:Object.fromEntries(Object.entries(f).filter((function(e){var t=Object(v.a)(e,1)[0];return h[t]}))),getSubTotal:St,getError:At,status:Tt,changeTab:Rt,resetForm:w,permissions:B,user:P,piersMap:W,availableMatchedBerthsList:U,allocateReservation:z,creationMode:$,availableVessels:ce,creationBoaterType:le,selectCreationVessel:Dt,isNewBoaterCreation:pe,setReservationDates:me,setSelectedSuggestedValue:ge,selectedSuggestedValue:_e,handlePricingPlan:Ye,handleSuggestDates:qe,isMarinaLiteVersion:Ce,onShowCustomerInfo:Be,boater:ee},n={data:N,boater:o.boater,handleCreateMessage:g,handleReadMessages:_,handleUpdateMessage:E,unreadCounter:Bt,user:P,message:$e,handleChange:nt,isMarinaLiteVersion:Ce};return{0:Object(C.jsx)(Xt,Object(j.a)({},t)),1:Object(C.jsx)(Zt,Object(j.a)({},n))}[e]},Mt=Object(en.d)(),Lt=function(e){u(b,e),Et()},Bt=N&&N.unread&&N.unread.length?N.unread.filter((function(e){return!e.isService})).length:null,kt=function(e){return"initiated"===e||"boater_accepted_suggested_dates"===e||"pending"===e||"waiting"===e||"payment_expired"===e};Object(x.useEffect)((function(){if(kt){var e=document.getElementById("fieldDatePicker-expdate");e&&e.focus()}}),[]);var Ht=!!p.price_per_night,Vt=Object(x.useMemo)((function(){return R()(o.end_date).isBefore(R()())}),[o.end_date]),Ft=Object(x.useMemo)((function(){return 0===st&&("pending"===Tt||"waiting"===Tt||"approved"===Tt||"payment_expired"===Tt||"waiting_list"===Tt)}),[Tt,st]),Wt=Object(x.useMemo)((function(){return $?oe.map((function(e){return e.disableOnCreationMode?Object(j.a)(Object(j.a)({},e),{},{disabled:!0}):e})):oe}),[$]),Ut=Object(C.jsx)(mn.a,{tabs:Wt,activePanel:{index:st},changePanel:Rt,a11yProps:function(e){return{id:"reservation-tab-".concat(e),"aria-controls":"reservation-tabpanel-".concat(e),style:"messages"!==oe[e].type||P.marina.marina_settings.permissions.chat?{}:{color:"rgba(0, 0, 0, 0.5)"}}},renderCustomTabLabel:function(e){return"messages"===e.type?Object(C.jsxs)("span",{className:i.tabLabel,children:[at(e.label),!$&&Bt?Object(C.jsx)("div",{className:i.messagesCounterContainer,children:Bt}):null]}):at(e.label)}}),Gt=Object(C.jsx)(an,{data:Nt,setSubmitted:je,validateBoaterInfoFields:O,updateReservation:d,updateReservationMM:ue,updPayload:Ct,showDialog:T,hideDialog:S,status:Tt,handleCancelEdit:function(){p=Object(j.a)(Object(j.a)({},p),{},{payment:Object(j.a)({},m)}),jt(!1)},editMode:ft,handleCancel:Lt,checkUpload:function(){var e=!1,t={vessel_license:"VESSEL_LICENSE",vessel_insurence:"VESSEL_INSURANCE",skipper_id:"SKIPPER_ID_LICENSE"},n=o.attachments,a=Object.keys(p.required_documents).filter((function(e){return!!p.required_documents[e]})).map((function(e){return t[e]}));if(!a||!a.length)return!0;if(n&&n.length)for(var r=function(t){e=-1!==n.findIndex((function(e){return e.attachment_type===a[t]}))},i=0;i0&&void 0!==arguments[0]?arguments[0]:Ie,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e&&_e?_e:b.params.id;"null"!==t&&a(t).then(function(){var e=Object(_.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m(t.payload.boater_id);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())};Object(x.useEffect)((function(){if(p){var e=Object(I.d)({entity:p.marina})||"demo"===Object(I.a)(p.marina);Ce(e),Kt(e)}return function(){P(),X(),$()}}),[]);var Xt=Object(x.useCallback)((function(e,t,n){Ae(!0),c(),s(),r(Lt.boater_id,Lt.id,e,Object(j.a)({},t)).then((function(){Kt(),Ie&&xe()})).then((function(){W().then((function(a){var r=Object(gn.d)({location:w}),i={};if("UPDATE"===e)i=Object(gn.c)({reservation:Lt,boater:G,type:"set_price",payment:n,origin:r,user:p}),Pt({marinaProperties:{user:p,statistics:a&&a.payload},eventProperties:i,eventName:"reservation_updated"});else if("UPDATE_DATE"===e)Pt({eventProperties:{type:"suggest_optional_dates"},eventName:"reservation_updated"});else if("APPROVE"===e&&Mt.contact&&Mt.vessel){var o=G.contact,s=G.vessel;if(i=Object(gn.c)({reservation:Lt,boater:G,type:"approved",payment:n,origin:r,user:p}),Pt({marinaProperties:{user:p,statistics:a&&a.payload},eventProperties:i,eventName:"reservation_updated"}),t.payment&&"0"!==t.payment.nights_to_redeem){var c=t.payment.nights_to_redeem,l=Lt.nights_available-c;Pt({marinaProperties:{user:p,statistics:a&&a.payload},eventProperties:{origin:"reservation",reservation_id:Lt.id,nights_redeemed:c,nights_remaining:l,boater_email:o.email||"-",boater_country:o.country||"-",boater_marina_id:s.home_marina_id,boater_marina:s.home_marina_name,boater_marina_country:s.homeMarina.country||"-",marina_app_version:Object(I.d)({entity:p.marina})?"lite":"legacy"},eventName:"night_redeemed"})}}}))})).then((function(){return Kt()})).then((function(){return l()})).then((function(){Ae(!1),Ie&&on()}))}),[Lt]),Qt=Object(x.useCallback)((function(e,t,n){Ae(!0),c(),s(),i(Lt.boater_id,Lt.id,e,Object(j.a)({},t)).then((function(){return Kt()})).then((function(){W().then((function(a){var r=Object(gn.d)({location:w}),i={};if("UPDATE"===e)i=Object(gn.c)({reservation:Lt,boater:G,type:"set_price",payment:n,origin:r,user:p}),Pt({marinaProperties:{user:p,statistics:a&&a.payload},eventProperties:i,eventName:"reservation_updated"});else if("APPROVE"===e&&Mt.contact&&Mt.vessel){var o=G.contact,s=G.vessel;if(i=Object(gn.c)({reservation:Lt,boater:G,type:"approved",payment:n,origin:r,user:p}),Pt({marinaProperties:{user:p,statistics:a&&a.payload},eventProperties:i,eventName:"reservation_updated"}),t.payment&&"0"!==t.payment.nights_to_redeem){var c=t.payment.nights_to_redeem,l=Lt.nights_available-c;Pt({marinaProperties:{user:p,statistics:a&&a.payload},eventProperties:{origin:"reservation",reservation_id:Lt.id,nights_redeemed:c,nights_remaining:l,boater_email:o.email||"-",boater_country:o.country||"-",boater_marina_id:s.home_marina_id,boater_marina:s.home_marina_name,boater_marina_country:s.homeMarina.country||"-",marina_app_version:Object(I.d)({entity:p.marina})?"lite":"legacy"},eventName:"night_redeemed"})}}}))})).then((function(){return Kt()})).then((function(){return l()})).then((function(){Ae(!1),Ie&&on()}))}),[Lt]),Zt=Object(x.useCallback)((function(e){c(),Ee(e).then((function(){Object(J.a)((function(){}),500).then((function(){Kt(Ie),K({only_available_berths:!0})})).then((function(){l()}))}))}),[Ie]),Jt=Object(x.useCallback)((function(e){h(Lt.boater_id,Lt.id,e).then((function(e){"MESSAGE_CREATE_SUCCESS"===e.type&&(Kt(),W().then((function(e){var t=Object(gn.d)({location:w}),n=Object(gn.c)({reservation:Lt,boater:G,type:"chat",origin:t,user:p});Pt({marinaProperties:{user:p,statistics:e&&e.payload},eventProperties:n,eventName:"reservation_updated"})})))}))}),[Lt]),$t=Object(x.useCallback)((function(e){M(Lt.boater_id,e),O(Lt.boater_id,e).then((function(e){"MESSAGE_READ_SUCCESS"===e.type&&Kt()})).then((function(){L(!0)}))}),[Lt]),en=Object(x.useCallback)((function(e,t){E(e,t)}),[]),tn=Object(x.useCallback)((function(){return n.push("?tab=1")}),[]),nn=Object(x.useMemo)((function(){if(!Lt)return null;if(Pe||"MARINA"===Lt.source){if(ke)return Object(j.a)(Object(j.a)({},ce),{},{id:ke.id});var e=Object(j.a)(Object(j.a)({},ce),{},{is_signed_up:Lt&&Lt.boater&&Lt.boater.is_signed_up});return"MARINA"===Lt.source&&(e=Object(j.a)(Object(j.a)({},e),{},{license:Lt.attachments&&Lt.attachments.find((function(e){return"SKIPPER_ID_LICENSE"===e.attachment_type}))})),e}if(Lt){var t,n=null===p||void 0===p||null===(t=p.marina)||void 0===t?void 0:t.marina_settings.permissions.hide_contact_details,a=Object(j.a)({},Lt.boater),r=a.email,i=a.phone,o=Object(f.a)(a,$n),s={email:r?"".concat(r[0],"*********"):"-",phone:i?"".concat(i[0],"*********"):"-"};return Object(j.a)(Object(j.a)({},"approved"!==Lt.reservation_status&&n?Object(j.a)(Object(j.a)({},o),s):Object(j.a)({},Lt.boater)),{},{license:Lt.attachments&&Lt.attachments.find((function(e){return"SKIPPER_ID_LICENSE"===e.attachment_type})),id:Lt.boater_id})}}),[Pe,ke,Lt,ce,p]),an=Object(x.useMemo)((function(){return Pe?Ye:Lt?Object(j.a)({},Lt.vessel):void 0}),[Pe,Lt,Ye]),rn={};u&&(rn={weather:{currency:p.marina.marina_settings.currency,price:ct,temp:"28",wave:"12.1",prec:"4",wind:"16",date:R()(u.start_date)},rating:{currency:p.marina.marina_settings.currency,price:ct,myRating:"4.2",nearbyRating:"4.6"},occupancy:{currency:p.marina.marina_settings.currency,price:ct,start_date:u.start_date,end_date:u.end_date},events:{currency:p.marina.marina_settings.currency,price:ct,start_date:u.start_date,end_date:u.end_date}});var on=function(){return Object(J.a)((function(){ve(),"demo"===Object(I.a)(p.marina)?n.push("/reservations"):n.push("/")}))},sn=function(e){"cancel"===e?it(""):(jt(e),c(),Object(J.a)((function(){}),800).then((function(){it("")})).then((function(){l()})))},cn=Object(C.jsx)(te,{contactData:Pe?ke:Mt.contact,vesselData:Mt.vessel,cardType:"visitor",withScroll:!0,pageType:"reservation",getOcrLink:k,ocr:H,user:p,documents:Lt&&Lt.attachments,updateReservationMM:Qt,presetForm:qt,data:nn,creationMode:Pe,setFieldValue:function(e,t){re(e,t),ue&&ue(!0)},setFieldTouched:function(e,t){return oe(e,t,!1)},handleChange:se,errors:St?le:Object.fromEntries(Object.entries(le).filter((function(e){var t=Object(v.a)(e,1)[0];return de[t]&&""!==ce[t]}))),isMarinaLiteVersion:Ie,hideReservationPopup:ve,isMarinaLiteEditable:ge,onBackClicked:function(){return Dt(!1)}}),ln=Object(C.jsx)(_n,{data:Lt,messages:Bt,handleCreateMessage:Jt,handleReadMessages:$t,handleUpdateMessage:en,updateReservation:Xt,updateReservationMM:Qt,allocateReservation:Zt,validateBoaterInfoFields:T,showDialog:o,hideDialog:s,defaultTab:Vt,user:p,viewMessages:M,permissions:B,showChatPopup:V,showReservationDeclinePopup:F,chatEnableCb:tn,location:w,piersMap:z,berthList:kt,availableMatchedBerthsList:Ht,getAvailableMatchedBerhts:Q,getAllPiers:q,getAvailableBerths:K,isLoading:Re,setIsLoading:Ae,setSubmitted:Nt,isSubmitted:St,creationMode:Pe,createReservation:ee,resetCreatedReservation:ae,vessel:an,boater:nn,showOverlay:c,hideOverlay:l,boaterValues:ce,foundBoater:Qe,creationVessel:Ye,availableVessels:We,creationBoaterType:Gt,setCreationVessel:qe,isNewBoaterCreation:Yt,setReservationDates:Tt,reservationDates:yt,setSelectedSuggestedValue:tt,selectedSuggestedValue:et,setSuggestion:function(e){it(e)},setSuggestedPrice:lt,suggestedPrice:ct,finalPrice:bt,setFinalPrice:pt,dynamicPrice:ft,randomValue:_t,setRandomValue:vt,contactInfoErrors:le,getPricingPlanCalculation:je,isMarinaLiteVersion:Ie,getReservationData:Kt,setCreationMode:Me,isMarinaLiteEditable:ge,handleCloseReservationPopup:on,userDetails:cn,userView:wt,onShowCustomerInfo:function(){return Dt(!0)},setFormChanged:ue});return Ie&&A.isMobile?Object(C.jsx)("div",{className:t.mobileRoot,children:Lt&&ln}):Object(C.jsx)("section",{className:t.root,children:Lt&&Object(C.jsxs)(C.Fragment,{children:[!Ie&&Object(C.jsx)(ne.a,{defaultTitle:"reservation_backToReservations",defaultPath:"/reservations"}),"APPROVED"===function(e){if(Pe)return"PENDING";var t=(e||{}).statuses,n=t?t.sort((function(e,t){return R()(e.created_at).isAfter(t.created_at)?1:-1})):[],a=t&&t.length?n[t.length-1]:null;return a?a.status_code:null}(Lt)&&Lt.selected_match&&!1===Lt.selected_match.available&&Object(C.jsx)(N.a,{icon:Object(C.jsx)(D,{style:{fontSize:"2.25rem"}}),translationParams:{style:{fontSize:14,lineHeight:1.43}},label:"decreasedSupplyFlowBanner"}),Object(C.jsxs)("div",{className:Ie?t.liteContent:t.content,children:[Object(C.jsxs)("div",{className:Ie?t.liteCardInfoContainer:"",children:[function(){switch(rt){case"weather":return Object(C.jsx)(Cn,{data:rn[rt],handleClick:sn,setRandomValue:vt});case"rating":return Object(C.jsx)(Pn,{data:rn[rt],handleClick:sn,setRandomValue:vt});case"occupancy":return Object(C.jsx)(Ln,{data:rn[rt],handleClick:sn,setRandomValue:vt});case"events":return Object(C.jsx)(Kn,{data:rn[rt],getMarinaEvents:he,createMarinaEvent:fe,handleClick:sn,setRandomValue:vt});default:return cn}}(),Object(C.jsx)("div",{className:t.grower})]}),Object(C.jsx)("div",{className:Ie?t.liteTabsWrapper:t.tabsWrapper,children:ln})]})]})})})))),ta=Object(a.b)((function(e){return{messagesUpd:e.messages.lastUpd,reservation:e.reservations.reservation,user:Object(d.X)(e),ocr:e.documents.ocr,error:e.reservations.error,isLoading:e.reservations.isLoading,permissions:Object(d.Y)(e),boater:e.reservations.reservation?e.reservations.reservation.boater:{},piersMap:Object(d.K)(e),berthList:e.inventory.berths&&e.inventory.berths.list,availableMatchedBerths:e.inventory.availableMatchedBerths,messages:e.boaters.messages,boaters:e.boaters.list}}),(function(e){return{getReservation:function(t){return e(Object(r.h)(t))},resetReservationData:function(){return e(Object(r.l)())},getAllMessages:function(t){return e(Object(o.a)(t))},getMessages:function(t){return e(Object(s.d)(t))},updateReservation:function(t,n,a,i){return e(Object(r.o)(t,n,a,i))},updateReservationMM:function(t,n,a,i){return e(Object(r.p)(t,n,a,i))},createMessage:function(t,n,a){return e(Object(r.c)(t,n,a))},readMessages:function(t,n){return e(Object(r.i)(t,n))},updateMessage:function(t,n){return e(Object(r.n)(t,n))},viewMessages:function(t,n){return e(Object(o.c)(t,n))},getOcrLink:function(t){return e(Object(c.a)(t))},showChatPopup:function(t){return e(Object(u.G)(t))},showReservationDeclinePopup:function(t,n){return e(Object(u.R)(t,n))},getAvailableBerths:function(t){return e(Object(l.e)(t))},resetAvailableBerths:function(){return e(Object(l.o)())},getAvailableMatchedBerhts:function(t){return e(Object(l.h)(t))},resetAvailableMatchedBerths:function(){return e(Object(l.m)())},getAllPiers:function(){return e(Object(l.f)())},resetPiers:function(){return e(Object(l.r)())},allocateReservation:function(t){return e(Object(r.a)(t))},assignReservationBerth:function(t){return e(Object(r.b)(t))},getStatisticsForAmplitude:function(){return e(Object(p.c)())},createReservation:function(t){return e(Object(r.d)(t))},resetCreatedReservation:function(){return e(Object(r.k)())},getBoater:function(t){return e(Object(s.e)(t))},showOverlay:function(){return e(Object(u.O)())},hideOverlay:function(){return e(Object(u.o)())},getCard:function(e){return Object(i.e)(e)},findBoater:function(){return e(r.e.apply(void 0,arguments))},getMarinaEvents:function(t,n){return e(Object(b.b)(t,n))},createMarinaEvent:function(t){return e(Object(b.a)(t))},getPricingPlanCalculation:function(t,n,a,r,i,o){return e(Object(m.d)(t,n,a,r,i,o))},showDialog:function(){return e(u.I.apply(void 0,arguments))},hideDialog:function(){return e(u.i.apply(void 0,arguments))},hideReservationPopup:function(){return e(Object(u.s)())},getAllNotifications:function(){return e(Object(h.b)())}}}))(ea)},95:function(e,t,n){"use strict";n.d(t,"h",(function(){return He})),n.d(t,"e",(function(){return ye})),n.d(t,"m",(function(){return Re})),n.d(t,"j",(function(){return Me})),n.d(t,"o",(function(){return Se})),n.d(t,"d",(function(){return Ie})),n.d(t,"c",(function(){return Ae})),n.d(t,"n",(function(){return Ne})),n.d(t,"b",(function(){return Ce})),n.d(t,"g",(function(){return Te})),n.d(t,"k",(function(){return Le})),n.d(t,"a",(function(){return we})),n.d(t,"f",(function(){return De})),n.d(t,"i",(function(){return Be})),n.d(t,"l",(function(){return Pe}));var a=n(2),r=n(5),i=n(13),o="/admin/boater/get",s="/admin/card/update",c="/admin/membership_request/update",l="/admin/marina_request/update",d="/admin/vessel/add_membership",u="/admin/memberships/get",b="/admin/boater/add",p="/admin/loyalty/boater_history",m="/admin/loyalty/update_balance",h=function(e,t){return Object(i.b)(o,{boater_id:e,all_marinas:t}).then((function(e){return e.json()}))},f=function(e){return Object(i.b)(s,e).then((function(e){return e.json()}))},j=function(e){return Object(i.b)(d,e).then((function(e){return e.json()}))},O=function(e){return Object(i.b)(b,e).then((function(e){return e.json()}))},g=function(e,t,n,a,r){return Object(i.b)(c,{membership_request_id:e,action:t,expired:n,auto_renew:a,decline_reason:r}).then((function(e){return e.json()}))},_=function(e,t,n){return Object(i.b)(l,{marina_request_id:e,action:t,decline_reason:n}).then((function(e){return e.json()}))},v=function(e){return Object(i.b)(u,{boater_id:e}).then((function(e){return e.json()}))},x=function(e){return Object(i.b)(p,{email:e}).then((function(e){return e.json()}))},E=function(e,t,n){return Object(i.b)(m,{method:e,email_list:t,amount:n}).then((function(e){return e.json()}))},y=n(191),T=Object(r.b)("BOATER"),R=T.request,A=T.success,S=T.failure,N=T.reset,I=T.set,C=Object(r.b)("UPDATE_BOATER"),w=C.request,D=C.success,P=C.failure,M=C.set,L=Object(r.b)("UPDATE_MEMBERSHIP_REQUEST"),B=L.request,k=L.success,H=L.failure,V=L.set,F=Object(r.b)("UPDATE_MARINA_REQUEST"),W=(F.request,F.success,F.failure,F.set),U=Object(r.b)("GET_MESSAGES_BOATER"),G=U.request,z=U.success,Y=U.failure,q=U.reset,K=U.set,X=Object(r.b)("CREATE_MESSAGE_TO_BOATER"),Q=X.request,Z=X.success,J=X.failure,$=X.set,ee=Object(r.b)("GET_BOATER_MEMBERSHIPS"),te=ee.request,ne=ee.success,ae=ee.failure,re=ee.set,ie=Object(r.b)("CREATE_MEMBERSHIP"),oe=ie.request,se=ie.success,ce=ie.failure,le=ie.set,de=Object(r.b)("GET_BOATER_BALANCE_LOGS"),ue=de.request,be=de.success,pe=de.failure,me=de.set,he=Object(r.b)("UPDATE_BALANCE"),fe=he.request,je=he.success,Oe=he.failure,ge=(he.set,Object(r.b)("CREATE_BOATER")),_e=ge.request,ve=ge.success,xe=ge.failure,Ee=ge.set,ye=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:ke,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case R.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case N.type:return Object(a.a)(Object(a.a)({},e),{},{data:null,memberships:[]});case A.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,data:t.payload,error:null});case te.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case ne.type:return Object(a.a)(Object(a.a)({},e),{},{memberships:t.payload});case ae.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,data:t.payload,memberships:[]});case S.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case w.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case D.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,updateResult:t.payload,error:null});case P.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case B.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case k.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case H.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case G.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0,error:null});case z.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,messages:t.payload});case Y.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case q.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,messages:[],error:null});case Q.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0,error:null});case Z.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1});case J.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case oe.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case se.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case ce.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case _e.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case ve.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case xe.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});case ue.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case be.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,balanceLogs:t.payload});case pe.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,balanceLogs:[]});case fe.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case je.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case Oe.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:t.payload});default:return e}}},97:function(e,t,n){"use strict";n.d(t,"j",(function(){return qe})),n.d(t,"f",(function(){return Ce})),n.d(t,"h",(function(){return De})),n.d(t,"g",(function(){return Le})),n.d(t,"c",(function(){return Be})),n.d(t,"i",(function(){return ke})),n.d(t,"n",(function(){return He})),n.d(t,"o",(function(){return Pe})),n.d(t,"m",(function(){return Ge})),n.d(t,"l",(function(){return ze})),n.d(t,"a",(function(){return Ve})),n.d(t,"e",(function(){return Fe})),n.d(t,"d",(function(){return we})),n.d(t,"k",(function(){return Ue})),n.d(t,"p",(function(){return Me})),n.d(t,"b",(function(){return We}));var a=n(2),r=n(5),i=n(13),o="/admin/reservation/getall",s="/admin/reservation/get",c="/admin/reservation/create",l="/admin/reservation/update",d="/admin/message/edit",u="/admin/reservation/select_match",b="/admin/reservation/find_boater",p="/admin/reservation/update_marina_mode",m="/admin/reservation/assign_berth",h=function(){return Object(i.b)(o,{}).then((function(e){return e.json()}))},f=function(e){return Object(i.b)(c,e).then((function(e){return e.json()}))},j=function(e){return Object(i.b)(s,{reservation_id:e}).then((function(e){return e.json()}))},O=function(e,t,n,r){return Object(i.b)(p,Object(a.a)({boater_id:e,reservation_id:t,method:n},r)).then((function(e){return e.json()}))},g=function(e,t,n,r){return Object(i.b)(l,Object(a.a)({boater_id:e,reservation_id:t,method:n},r)).then((function(e){return e.json()}))},_=function(e,t){return Object(i.b)(d,{message_id:e,text:t}).then((function(e){return e.json()}))},v=function(e){var t=e.reservation_id,n=e.match_id,a=e.custom_berth_id;return Object(i.b)(u,{reservation_id:t,match_id:n,custom_berth_id:a}).then((function(e){return e.json()}))},x=function(e){var t=e.reservation_id,n=e.berth_id;return Object(i.b)(m,{reservation_id:t,berth_id:n}).then((function(e){return e.json()}))},E=function(e){var t=e.boater_type,n=e.card_number,a=e.email;return Object(i.b)(b,{boater_type:t,card_number:n,email:a}).then((function(e){return e.json()}))},y=n(191),T=Object(r.b)("RESERVATIONS"),R=T.request,A=T.success,S=T.failure,N=T.reset,I=T.set,C=Object(r.b)("CREATE_RESERVATION"),w=C.request,D=C.success,P=C.failure,M=C.reset,L=C.set,B=Object(r.b)("RESERVATION"),k=B.request,H=B.success,V=B.failure,F=B.reset,W=B.set,U=Object(r.b)("FIND_BOATER"),G=U.request,z=U.success,Y=U.failure,q=U.set,K=Object(r.b)("RESERVATION_UPDATE"),X=K.request,Q=K.success,Z=K.failure,J=K.set,$=Object(r.b)("RESERVATION_MM_UPDATE"),ee=($.request,$.success,$.failure,$.set),te=Object(r.b)("MESSAGES"),ne=te.request,ae=te.success,re=te.failure,ie=te.set,oe=Object(r.b)("MESSAGE_CREATE"),se=oe.request,ce=oe.success,le=oe.failure,de=oe.set,ue=Object(r.b)("MESSAGE_READ"),be=ue.request,pe=ue.success,me=ue.failure,he=ue.set,fe=Object(r.b)("MESSAGE_UPDATE"),je=fe.request,Oe=fe.success,ge=fe.failure,_e=fe.set,ve=Object(r.b)("ALLOCATE_MATCH"),xe=ve.request,Ee=ve.success,ye=ve.failure,Te=ve.set,Re=Object(r.b)("ASSIGN_BERTH"),Ae=Re.request,Se=Re.success,Ne=Re.failure,Ie=Re.set,Ce=function(){return Object(r.f)({request:h,actionSet:I})},we=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:Ye,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case R.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case A.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,list:t.payload,error:null});case S.type:return{isLoading:!1,list:[],error:t.payload};case N.type:return Object(a.a)(Object(a.a)({},e),{},{list:[]});case k.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case H.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,reservation:t.payload,error:null});case V.type:return{isLoading:!1,list:[],error:t.payload};case F.type:return Object(a.a)(Object(a.a)({},e),{},{reservation:null,messages:[]});case w.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case D.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,created:t.payload,error:null});case P.type:return{isLoading:!1,created:null,error:t.payload};case M.type:return Object(a.a)(Object(a.a)({},e),{},{created:null});case X.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case Q.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case Z.type:return{isLoading:!1,error:t.payload};case xe.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case Ee.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case ye.type:return{isLoading:!1,error:t.payload};case Ae.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case Se.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case Ne.type:return{isLoading:!1,error:t.payload};case G.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case z.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,foundBoater:t.payload,error:null});case Y.type:return{isLoading:!1,error:t.payload};case ne.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case ae.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,messages:t.payload,error:null});case re.type:return{isLoading:!1,error:t.payload};case se.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case ce.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case le.type:return{isLoading:!1,error:t.payload};case be.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case pe.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case me.type:return{isLoading:!1,error:t.payload};case je.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!0});case Oe.type:return Object(a.a)(Object(a.a)({},e),{},{isLoading:!1,error:null});case ge.type:return{isLoading:!1,error:t.payload};default:return e}}}},[[1613,62,63]]]); //# sourceMappingURL=main.205e6bb1.chunk.js.map