1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3898],{44286:function(e){e.exports=function(e){return e.split("")}},14259:function(e){e.exports=function(e,t,i){var n=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(i=i>s?s:i)<0&&(i+=s),s=t>i?0:i-t>>>0,t>>>=0;for(var a=Array(s);++n<s;)a[n]=e[n+t];return a}},40180:function(e,t,i){var n=i(14259);e.exports=function(e,t,i){var s=e.length;return i=void 0===i?s:i,!t&&i>=s?e:n(e,t,i)}},98805:function(e,t,i){var n=i(40180),s=i(62689),a=i(83140),o=i(79833);e.exports=function(e){return function(t){var i=s(t=o(t))?a(t):void 0,r=i?i[0]:t.charAt(0),l=i?n(i,1).join(""):t.slice(1);return r[e]()+l}}},62689:function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},83140:function(e,t,i){var n=i(44286),s=i(62689),a=i(676);e.exports=function(e){return s(e)?a(e):n(e)}},676:function(e){var t="\ud800-\udfff",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",s="[^"+t+"]",a="(?:\ud83c[\udde6-\uddff]){2}",o="[\ud800-\udbff][\udc00-\udfff]",r="(?:"+i+"|"+n+")?",l="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[s,a,o].join("|")+")"+l+r+")*",d=RegExp(n+"(?="+n+")|(?:"+[s+i+"?",i,a,o,"["+t+"]"].join("|")+")"+(l+r+c),"g");e.exports=function(e){return e.match(d)||[]}},68929:function(e,t,i){var n=i(48403),s=i(35393)(function(e,t,i){return t=t.toLowerCase(),e+(i?n(t):t)});e.exports=s},48403:function(e,t,i){var n=i(79833),s=i(11700);e.exports=function(e){return s(n(e).toLowerCase())}},91175:function(e){e.exports=function(e){return e&&e.length?e[0]:void 0}},64721:function(e,t,i){var n=i(42118);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},18029:function(e,t,i){var n=i(35393),s=i(11700),a=n(function(e,t,i){return e+(i?" ":"")+s(t)});e.exports=a},11700:function(e,t,i){var n=i(98805)("toUpperCase");e.exports=n},57532:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/a/list-boat/[id]/review",function(){return i(16391)}])},16391:function(e,t,i){"use strict";i.r(t),i.d(t,{GrayDivider:function(){return es},default:function(){return ea}});var n=i(85893),s=i(64061),a=i.n(s),o=i(67294),r=i(9008),l=i.n(r),c=i(48403),d=i.n(c),u=i(91175),m=i.n(u),p=i(1469),h=i.n(p),x=i(10928),f=i.n(x),g=i(89293),v=i(75741),b=i(15688),j=i(33789),y=i(49040),w=i(44546),_=i(60502),k=i(27935),N=i(66620),M=i(14013),B=i(69138),Z=i(95642),E=i(41017),A=i(72157),O=i(89111),R=i(98439);function P(e){let{boatId:t}=e,{temporaryPackage:i}=(0,A.P)(t);return(0,n.jsx)(O.or,{blwReviewStyle:!0,children:i?(0,n.jsxs)(O.Zn,{blwReviewStyle:!0,children:[(0,n.jsxs)(O.d9,{children:[(0,n.jsx)(O.l5,{children:"Booking options"}),(0,n.jsxs)(O.Qe,{children:[(0,n.jsx)(O.dk,{children:"Is this a captained fishing charter?"}),(0,n.jsx)(O.B4,{children:(null==i?void 0:i.commercial_captained_fishing_charter)?"Yes":"No"})]}),(0,n.jsxs)(O.Qe,{children:[(0,n.jsx)(O.dk,{children:"Renter operates my boat"}),(0,n.jsx)(O.B4,{children:(null==i?void 0:i.bareboat)?"Yes":"No"})]}),(0,n.jsxs)(O.Qe,{children:[(0,n.jsx)(O.dk,{children:"USCG-certified captain operates my boat"}),(0,n.jsx)(O.B4,{children:(null==i?void 0:i.captained)?"Yes":"No"})]}),(null==i?void 0:i.using_captain_network)&&(0,n.jsxs)(O.Qe,{children:[(0,n.jsx)(O.dk,{children:"Will you use the Boatsetter Captain Network"}),(0,n.jsx)(O.B4,{children:(null==i?void 0:i.using_captain_network)?"Yes":"No"})]}),(null==i?void 0:i.captain_payment_collection)&&!(null==i?void 0:i.commercial_captained_fishing_charter)&&(0,n.jsxs)(O.Qe,{children:[(0,n.jsx)(O.dk,{children:"How will the captain collect payment?"}),(null==i?void 0:i.captain_payment_collection)==="via_boatsetter"&&(0,n.jsx)(O.B4,{children:"Via boatsetter"}),(null==i?void 0:i.captain_payment_collection)==="at_dock"&&(0,n.jsx)(O.B4,{children:"At dock"})]}),(null==i?void 0:i.owner_captain_provision)!=="na"&&(null==i?void 0:i.captained)&&!(null==i?void 0:i.commercial_captained_fishing_charter)&&!(null==i?void 0:i.using_captain_network)&&(0,n.jsxs)(O.Qe,{children:[(0,n.jsx)(O.dk,{children:"Who will choose the captain"}),(0,n.jsx)(O.B4,{children:(null==i?void 0:i.owner_captain_provision)==="owner_
1choice"?"I choose":"Renter chooses"})]})]}),(0,n.jsxs)(O.d9,{children:[(0,n.jsx)(O.l5,{children:"Booking durations"}),null==i?void 0:i.initial_duration_preferences.map(e=>(0,n.jsx)(O.Qe,{children:(0,n.jsx)(O.dk,{children:R.lI.find(t=>{let{value:i}=t;return i===e}).label})},e))]}),(0,n.jsxs)(O.d9,{blwReviewStyle:!0,children:[(0,n.jsx)(O.l5,{children:"Fuel policy"}),(0,n.jsxs)(O.Qe,{children:[(0,n.jsx)(O.dk,{children:"Who pays for fuel?"}),(null==i?void 0:i.fuel_policy)==="renter_pays"?(0,n.jsx)(O.B4,{children:"Renter pays"}):(0,n.jsx)(O.B4,{children:"Owner pays"})]})]})]}):null})}var C=i(11163),L=i(91131),S=i(43485),D=i(9046);let G=e=>{let{answersList:t}=e;return(0,n.jsx)("ul",{children:t.map(e=>(0,n.jsx)("li",{children:(0,n.jsxs)(O.lY,{children:[(0,n.jsx)(O.Ls,{children:e.text}),(0,n.jsx)(O.iP,{children:I(e)})]})},e.slug))})},I=e=>(null==e?void 0:e.answer)?"yes_no"===e.type?d()(e.answer):"money"===e.type?"$".concat(parseFloat(e.answer).toFixed(2)):e.answer:"";function z(e){let{isManage:t,onEditSection:i,section:s}=e,a=(0,C.useRouter)(),o=(0,y.X2)(a.query.id),{insuranceType:r}=(0,S.VY)(o),{insuranceScreening:l}=(0,D.Ih)({insurerId:"buoy",targetTypes:["owner","boat"],boatId:o});return(0,n.jsxs)("div",{id:"section-renters-insurance",className:" Grid Grid--withGutterWide ".concat(s&&"renters_insurance"!==s?"hidden":""),children:[(0,n.jsx)("div",{className:"Grid-cell ".concat(t?"":"u-mb2 u-sm-mb1 u-lg-size1of2"," "),children:(0,n.jsx)("h1",{style:{maxWidth:440},className:"sectionReviewTitle u-sm-fsSm u-sm-textBold ".concat(t?"u-fsXl u-textBold u-mb1":"u-textSemiBold"),children:"commercial"===r?"Renter's Insurance":"Insurance"})}),(0,n.jsxs)("div",{className:"Grid-cell ".concat(t?"":"u-lg-size1of2"," "),children:[(null==l?void 0:l.owner)&&(0,n.jsx)(v.Z,{title:"Boat owner",action:()=>i("buoy-insurance-owner"),section:"boat_owner",isManage:t,children:(0,n.jsx)(G,{answersList:l.owner.questions})}),(null==l?void 0:l.boat)&&(0,n.jsx)(v.Z,{title:"Boat",action:()=>i("buoy-insurance-boat"),section:"insurance_boat",isManage:t,children:(0,n.jsx)(G,{answersList:l.boat.questions})})]})]})}var W=i(44329),T=i(95589),F=i(88095);function X(){return(0,n.jsxs)(Y,{children:[(0,n.jsx)(W.aN,{}),(0,n.jsx)(T.x,{fWeight:600,fSize:"20px",mt:"12px",mb:"16px",mdMin:{fSize:"24px"},children:"Renterâs insurance submittal is down"}),(0,n.jsxs)(T.x,{mb:"24px",children:["Donât worry, we wonât let you drown! Please contact our"," ",(0,n.jsx)(W.rU,{href:"mailto:[email protected]",children:"Customer Service"})," team and weâll get someone to help you."]})]})}let Y=F.ZP.div.withConfig({componentId:"sc-d58bb83c-0"})(["text-align:center;"]);var H=i(29425),U=i(23346),q=i(50043),Q=i(56132);function $(){return(0,n.jsxs)(V,{children:[(0,n.jsx)(Q.Z,{bg:!1,color:"#F4C064",size:"medium"}),(0,n.jsx)(T.x,{fWeight:600,fSize:"20px",mt:"12px",mb:"16px",mdMin:{fSize:"24px"},children:"Processing, please wait..."}),(0,n.jsx)(T.x,{mb:"24px",children:"This might take up to 1 minute, please donât close or reload this tab."})]})}let V=F.ZP.div.withConfig({componentId:"sc-ba5ac68b-0"})(["text-align:center;background:'transparent';"]);var K=i(49630),J=i(99462),ee=i(13394),et=i(93070),ei=i(39450),en=i(60990);let es=e=>{let{hide:t}=e;return(0,n.jsx)("div",{className:"Divider u-mb3",style:{opacity:.4,display:t?"none":"inherit"}})};var ea=e=>{var t,i;let{isManage:s,section:r}=e,c=(0,C.useRouter)(),{enqueueSnackbar:u}=(0,U.Z)(),{boatDetails:p,boatDetails:{id:x,state:A,boat_rules:O,cancellation_policy:R,start_times:G,advance_notice:I,multibook_enabled:T,multibook_buffer_time_hours:F},refetch:Y}=(0,S.Gb)((0,y.X2)(c.query.id)),Q=(0,et.PS)("buoy_p2p_for_blw"),{defaultStartTimes:V}=(0,en.FS)(),{insuranceType:ea}=(0,S.VY)(x),eo=(0,L.b9)(ei.D);(0,o.useEffect)(()=>{eo(!1)},[]);let er=(0,o.useCallback)(async e=>{let t="";t="preferences"===e?"rules":e;let i="".concat(J.Z.listBoat,"/").concat(x,"/").concat(t,"?review=true");eo(!0),await c.push(i)},[x]),el=(0,o.useCallback)(async e=>{let t=e;switch(e){case"specifications":t="Boat specifications information missing";break;case"location":t="Boat location information missing";break;case"title":t="Boat title and description information missing";break;case"cancellation-policy":t="Select one cancellation policy option.";break;case"photos":t="You must upload at least 4 photos.";break;case"preferences":t="Please select preference options";break;case"features":t="Please select boat features options";break;case"insurance":t="Boat insurance information missing";break;case"pricing":t="Boat pricing information missing";break;default:t="".concat(d()(t)," missing")}u(t,{variant:"error",autoHideDuration:5e3}),er(e)},[er]),ec=O?("string"==typeof O?O.split(", "):Object.entries(O).filter(e=>!!e[1]).map(e=>e[0])).map(e=>({label:d()(e),value:e})):[],ed=(0,D.h9)(),eu=(0,D.If)(),em=(0,ee.zA)(x),ep=em&&"commercial"===ea,{insuranceScreening:eh}=(0,D.Ih)({insurerId:"buoy",targetTypes:["owner","boat"],boatId:x},{enabled:ep||em&&Q}
1),{modal:ex,openModal:ef,closeModal:eg}=(0,H.Z)((0,n.jsx)(W.ZP,{onResubmit:()=>e_()}),{size:"small",trackingName:"buoy_insurance_issue_modal"}),{modal:ev,openModal:eb,closeModal:ej}=(0,H.Z)((0,n.jsx)($,{}),{hideCloseButton:!0,isTray:!1,clickOutsideToClose:!1,size:"small",trackingName:"processing_modal"}),[ey,ew]=(0,o.useState)(0),e_=async()=>{try{ey<4?await eB():(eg(),eN())}catch(e){a().notify(e),console.error(e)}finally{ew(ey+1)}},{modal:ek,openModal:eN}=(0,H.Z)((0,n.jsx)(X,{}),{size:"small",trackingName:"buoy_insurance_is_down_modal"}),eM=()=>em?"buoy":null,eB=async()=>{var e,t,i,n;eg(),ep&&eb();try{await eu.mutateAsync({boatId:x,body:{standards_agreement_at:!0}});let i=(0,K.W)(p,null==eh?void 0:null===(e=eh.owner)||void 0===e?void 0:e.complete,null==eh?void 0:null===(t=eh.boat)||void 0===t?void 0:t.complete,em,!1,Q);if("finished"!==i&&"review"!==i)el(i);else{let e=await ed.mutateAsync({boatId:x,body:{insurer:eM()}});if(Y(),em&&"pending_insurance"===e.data.state){await c.push("".concat(J.Z.listBoat,"/").concat(x,"/listing-pending")),ej();return}await c.push("".concat(J.Z.listBoat,"/").concat(x,"/finished")),ej()}}catch(t){a().notify(t),console.error(t);let e=null==t?void 0:null===(n=t.response)||void 0===n?void 0:null===(i=n.data)||void 0===i?void 0:i.error_message;ej(),("Insurer service error"===e||"Insurer network error"===e)&&(ef(),ew(ey+1))}},eZ=null==V?void 0:V.filter(e=>e.default);return(0,n.jsxs)(j.Z,{name:"review",children:[(0,n.jsx)(l(),{children:(0,n.jsx)("title",{children:"List your Boat"})}),!s&&(0,n.jsx)(b.Z,{size:"xxl",children:(0,n.jsx)("div",{className:"Grid Grid--withGutterWide",children:(0,n.jsx)("div",{className:"Grid-cell ",children:(0,n.jsx)("div",{className:"Grid PageWrapper-title",children:(0,n.jsx)("div",{className:"Grid-cell",children:(0,n.jsxs)("h1",{className:"u-textSemiBold u-textWhite u-textLeft u-sm-pr1",children:["Please review your boat listing ",(0,n.jsx)("br",{className:"u-sm-hide"}),"before submitting."]})})})})})}),(0,n.jsxs)("div",{children:[(0,n.jsx)(q.x,{background:"white",className:"Panel Panel--noRoundTop Panel--noRoundBottom Panel--paddingBig ".concat(s?"u-pv05":"u-pv4 u-sm-pt2"," "),children:(0,n.jsxs)("div",{className:"Container Container--xxl",children:[(0,n.jsxs)("div",{id:"section-details",className:" Grid Grid--withGutterWide ".concat(r&&"boat_details"!==r?"hidden":""),children:[(0,n.jsx)("div",{className:"Grid-cell ".concat(s?"":"u-mb2 u-sm-mb1 u-lg-size1of2"," "),children:(0,n.jsx)("h1",{className:"sectionReviewTitle u-sm-fsSm u-sm-textBold ".concat(s?"u-fsXl u-textBold u-mb1":"u-textSemiBold "),children:"Boat details"})}),(0,n.jsxs)("div",{className:"Grid-cell ".concat(s?"":"u-lg-size1of2"),children:[(0,n.jsx)(v.Z,{isManage:s,title:"Specifications",action:()=>er("specifications"),section:"specifications",children:(0,n.jsx)(N.Z,{})}),(0,n.jsx)(v.Z,{isManage:s,title:"Location",section:"location",action:()=>er("location"),locked:"approved"===A&&s,children:(0,n.jsx)(M.Z,{})}),(0,n.jsx)(v.Z,{isManage:s,title:"Title",section:"title",action:()=>er("title"),split:!1,children:(0,n.jsx)(B.Z,{})}),(0,n.jsx)(v.Z,{isManage:s,title:"Cancellation policy",section:"cancellation-policy",action:()=>er("cancellation-policy"),split:!1,children:(0,n.jsxs)("div",{className:"Grid",children:[(0,n.jsx)("div",{className:"Grid-cell",children:(0,n.jsx)("h4",{children:d()(R||"")})}),(0,n.jsx)("div",{className:"Grid-cell",children:"flexible"===R?(0,_.CS)():"moderate"===R?(0,_.vA)():"strict"===R?(0,_.y9)():""})]})}),(0,n.jsx)(v.Z,{isManage:s,title:"Preferences",section:"preferences",action:()=>er("preferences"),split:!1,subText:"What is allowed on your boat?",children:(0,n.jsx)("ul",{children:ec.map(e=>(0,n.jsx)("li",{children:d()(e.label.replace(/_/g," "))},e.value))})}),(0,n.jsx)(v.Z,{isManage:s,title:"Features",action:()=>er("features"),split:!1,section:"features",children:(0,n.jsx)(k.Z,{isReview:!0,isManage:s,boatId:x,list:!0})}),(0,n.jsx)(v.Z,{isManage:s,title:"Photos",section:"photos",action:()=>er("photos"),split:!1,children:(0,n.jsx)(Z.Z,{})})]})]}),(0,n.jsx)(es,{hide:!!r}),(0,n.jsxs)("div",{id:"section-availability",className:" Grid Grid--withGutterWide ".concat(r&&"availability"!==r?"hidden":""),children:[(0,n.jsx)("div",{className:" Grid-cell ".concat(s?"":"u-mb2 u-sm-mb1 u-lg-size1of2"," "),children:(0,n.jsx)("h1",{className:"sectionReviewTitle u-sm-fsSm u-sm-textBold ".concat(s?"u-fsXl u-textBold u-mb1":"u-textSemiBold "),children:"Availability"})}),(0,n.jsxs)("div",{className:"Grid-cell ".concat(s?"":"u-lg-size1of2"," "),children:[(0,n.jsx)(v.Z,{isManage:s,title:"Start times",section:"start-times",action:()=>er("start-times"),children:(0,y.Bd)(G)?(0,n.jsxs)("div",{children:["Monday to Sunday, from ",(null===(t=m()(eZ))||void 0===t?void 0:t.label)||"8:00 AM"," -"," ",(null===(i=f()(eZ))||void 0===i?void 0:i.label)||"6:00 PM"]}):Object.entries(G).sort((e,t)=>
1"0"===e[0]?1:"0"===t[0]?-1:parseInt(e[0],10)-parseInt(t[0],10)).map(e=>(0,n.jsxs)("div",{className:"u-mb2",children:[(0,n.jsx)("p",{className:"u-mb05",children:w.c1[e[0]]}),h()(e[1])&&(0,n.jsx)("p",{className:"u-textSemiBold",children:(0,E.uc)(G,V,e[0])})]},e[0]))}),(0,n.jsx)(v.Z,{isManage:s,title:"Advance notice",section:"advance-notice",action:()=>er("advance-notice"),children:(0,n.jsxs)("div",{className:"u-mb0",children:[(0,n.jsx)("p",{className:"u-mb05",children:"Advance notice"}),(0,n.jsx)("p",{className:"u-textSemiBold",children:Object.keys(w.kr).find(e=>w.kr[e]===I)})]})}),(0,n.jsxs)(v.Z,{isManage:s,title:"Multiple-booking days",section:"multi-booking",action:()=>er("multi-booking"),children:[(0,n.jsxs)("div",{className:"u-mb2",children:[(0,n.jsx)("p",{className:"u-mb05",children:"Allow multiple bookings on the same day"}),(0,n.jsx)("p",{className:"u-textSemiBold",children:T?"Yes":"No"})]}),T&&(0,n.jsxs)("div",{className:"u-mb0",children:[(0,n.jsx)("p",{className:"u-mb05",children:"Buffer time"}),(0,n.jsx)("p",{className:"u-textSemiBold",children:Object.keys(w.KC).find(e=>w.KC[e]===F)})]})]})]})]}),(0,n.jsx)(es,{hide:!!r}),(0,n.jsxs)("div",{id:"section-duration",className:" Grid Grid--withGutterWide ".concat(r&&"options_and_pricing"!==r?"hidden":""),children:[(0,n.jsx)("div",{className:"Grid-cell ".concat(s?"":"u-mb2 u-sm-mb1 u-lg-size1of2"," "),children:(0,n.jsx)("h1",{style:{maxWidth:440},className:"sectionReviewTitle u-sm-fsSm u-sm-textBold ".concat(s?"u-fsXl u-textBold u-mb1":"u-textSemiBold"),children:"Operators and durations"})}),(0,n.jsx)("div",{className:"Grid-cell ".concat(s?"":"u-lg-size1of2"," "),children:(0,n.jsx)(v.Z,{title:"",editText:"options and pricing",action:()=>er("duration"),section:"duration",isManage:s,children:(0,n.jsx)(P,{boatId:x})})})]}),em&&("commercial"===ea||Q)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(es,{hide:!!r}),(0,n.jsx)(z,{isManage:s,onEditSection:er,section:r})]}),s?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(es,{hide:!!r}),(0,n.jsxs)("div",{className:"Grid Grid--withGutterWide ",children:[(0,n.jsx)("div",{className:"Grid-cell u-mb2 u-sm-mb1 u-lg-size1of2 ",children:(0,n.jsx)("h1",{className:"u-sm-fsSm u-sm-textBold u-textSemiBold ",children:"Boatsetter standards"})}),(0,n.jsx)("div",{className:"Grid-cell u-lg-size1of2",children:(0,n.jsxs)("div",{className:"Grid u-sizeFull",children:[(0,n.jsxs)("ul",{className:"u-listBulleted",children:[(0,n.jsx)("li",{className:"u-mb1",children:"Keep your boat well-maintained and make sure all regulatory and safety requirements have been met so your renters are safe on the water."}),(0,n.jsx)("li",{className:"u-mb1",children:"Clean and refuel your boat before every trip so guests have an enjoyable experience."})]}),(0,n.jsx)("p",{className:"u-textGrayLight u-fsSm u-mt2 u-mb5",children:"These standards keep our boat sharing community safe and reliable. By clicking âSubmitâ, youâre agreeing to our standards."})]})})]})]})]})}),!s&&(0,n.jsx)(g.Z,{isLoading:ed.isLoading||eu.isLoading,isForm:!1,action:eB,text:"SUBMIT",backUrl:ep||em&&Q?"/buoy-insurance-boat":"/duration"})]}),ex,ek,ev]})}},33789:function(e,t,i){"use strict";i.d(t,{Z:function(){return N}});var n=i(85893),s=i(11163),a=i(56132),o=i(67294),r=i(12199),l=i(41609),c=i.n(l),d=i(99462),u=i(68469),m=i(43485),p=i(49040),h=i(11752),x=i.n(h),f=i(9008),g=i.n(f),v=i(55017),b=i(9992),j=i(15688);let{RAILS_URL:y}=x()().publicRuntimeConfig;var w=e=>{let{background:t,size:i,withContainer:s=!0,className:a,isAuthenticated:r,withNoFlex:l,noPadding:c,isMobile:u,noPaddingMobile:m,backgroundTop:p,name:h,children:x}=e,f=/\.(gif|jpg|jpeg|tiff|png)$/i.test(t)?"url(".concat(t,")"):t,w=["blw PageWrapper NavOffCanvas-push js-off-canvas-item js-off-canvas-close",!s||l?"PageWrapper--noflex PageWrapper--ip-flex":"",r?"loggedIn":"","isHome",u?"isMobile":"",c?"u-pb0 u-sm-pb5":"",m?"u-sm-pb0":"",p?"PageWrapper--backgroundTop":"","page-blw-".concat(h)].join(" ").trim(),_="".concat(y).concat(d.Z.listBoat),[k,N]=(0,o.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g(),{children:(0,n.jsx)("link",{rel:"canonical",href:_},"canonical")}),(0,n.jsxs)("div",{id:"root3",style:{height:"100%",width:"100%",position:"absolute"},children:[(0,n.jsx)("div",{children:(0,n.jsx)(v.ZP,{menuOpen:k,setMenuOpen:N,isHome:!0,greenBg:!0})}),(0,n.jsx)("div",{children:(0,n.jsx)(b.ZP,{menuOpen:k,setMenuOpen:N,isHome:!0})}),(0,n.jsx)("main",{children:(0,n.jsx)("div",{id:"bg-image-div",className:"".concat(w),style:{backgroundImage:f},children:(0,n.jsx)("div",{className:"PageWrapper-content w-100 h-100 ".concat(a||""," u-ip-pv0 u-pt4 u-sm-pt0"),children:s?(0,n.jsx)(j.Z,{size:i,children:x}):x})})})]},"r3")]})},_=e=>{let{background:t,size:i,withContainer:s=!0,className:a,isHome:r,isAuthenticated:l,withNoFlex:c,noPadding:d,isMobile:u,noPaddingMobile:m,backgroundTop:p,name:h,vh100:x,children:f,stretch:v}=e,y=/\.(gif|jpg|jpeg|tiff|png)$/i.test(t)?"url(".concat(t,")"):t,w=["blw PageWrapper NavOffCanvas-push js-off-canvas-item js-off-canvas-close",!s||c?"PageWrapper--noflex PageWrapper--ip-flex":"",l?"loggedIn":"",r?"isHome":"",u?"isMobile":"",x?"vh100":"",d?"u-pb0 u-sm-pb5":"",m?"u-sm-pb0":"",p?"PageWrapper--backgroundTop":"","page-blw-".concat(h)].join(" ").trim(),[_,k]=(0,o.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(g(),{children:[(0,n.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),(0,n.jsx)("title",{children:"List your Boat"})]}),(0,n.jsx)("div",{children:(0,n.jsx)(b.ZP,{menuOpen:_,setMenuOpen:k,isHome:!1})}),(0,n.jsx)("main",{children:(0,n.jsx)("div",{id:"bg-image-div",className:"".concat(w),style:{backgroundImage:y},children:(0,n.jsx)("div",{style:{paddingTop:"60px"},className:"PageWrapper-content w-100 h-100 ".concat(a||""," ").concat(v&&"u-flexAlignItemsStretch"," u-ip-pv0 u-pt4 u-sm-pt0"),children:s?(0,n.jsx)(j.Z,{withNav:!1,size:i,children:f}):f})})})]})},k=i(53097),N=e=>{let{name:t,children:i,vh100:l,stretch:h,isProtected:x=!0,isHome:f,className:g,noBackgroun
1d:v=!1,isLoading:b=!1}=e,j=(0,s.useRouter)(),y=(0,p.X2)(j.query.id),{boatDetails:N,isLoading:M}=(0,m.Gb)(y),{isAuthenticated:B}=(0,r.vU)(),Z=(0,k.Gc)(),E=Z.xs||Z.sm;!function(e){let t=(0,s.useRouter)(),{userDetails:i,isAuthenticated:n}=(0,r.vU)();(0,o.useEffect)(()=>{var n;let s=t.pathname===d.Z.listBoat;if(!c()(i)&&!s&&(null==e?void 0:e.id)&&(!i||!i.is_admin)){if(i&&(null==e?void 0:null===(n=e.primary_manager)||void 0===n?void 0:n.id)!==i.id){t.push(d.Z.listBoat);return}!i||(null==e?void 0:e.state)==="incomplete"||t.pathname.includes("finished")||t.pathname.includes("listing-pending")||t.pathname.includes("review")||t.push(d.Z.listBoat)}},[n,t.pathname,i,e])}(N),(0,u.p)(x);let A=["/insurance","/details","/commercial","/international","/add-more-boats"].map(e=>"".concat(d.Z.listBoat,"/").concat(y||y).concat(e)),O=["/rental-options","/review","/location-pin","/safety-standards"].map(e=>"".concat(d.Z.listBoat,"/").concat(y||y).concat(e)),R=["/insurance-type","/cancellation-policy","/rules","/advance-notice","/multi-booking","/features","/duration","/photos"].map(e=>"".concat(d.Z.listBoat,"/").concat(y||y).concat(e)),P=[].map(e=>"".concat(d.Z.listBoat,"/").concat(y||y).concat(e)),C=["/details","/insurance","/commercial","/finished"].map(e=>"".concat(d.Z.listBoat,"/").concat(y||y).concat(e)),L=f||j.asPath===d.Z.listBoat||j.asPath===d.Z.listBoat,S=v?null:L?B?E?"/images/logged-in-hero-mobile.jpg":"/images/logged-in-hero.jpg":E?"/images/logged-out-hero-mobile-new.jpg":"/images/logged-out-hero-new.jpg":"linear-gradient(162.71deg, #063735 -2.87%, #0E7873 59.26%, #80AC66 109.13%)",D=j.asPath.includes("add-more-boats")?"md":"xxl",G=L||A.includes(j.asPath),I=O.includes(j.asPath)||L,z=R.includes(j.asPath),W=P.includes(j.asPath),T=C.includes(j.asPath),F=M||b?(0,n.jsx)("div",{style:{minHeight:"100vh"},children:(0,n.jsx)("div",{style:{position:"fixed",top:"0px",left:"0px",width:"100vw",height:"100vh",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,n.jsx)(a.Z,{size:"medium",color:"#72D4BA"})})}):i;return L?(0,n.jsx)(w,{name:t,background:S,size:D,withContainer:G,withNoFlex:I,isAuthenticated:B,noPadding:z,isMobile:E,noPaddingMobile:W,backgroundTop:T,className:g,children:F}):(0,n.jsx)(_,{name:t,className:g,isHome:L,background:S,size:D,withContainer:G,withNoFlex:I,isAuthenticated:B,noPadding:z,isMobile:E,noPaddingMobile:W,backgroundTop:T,vh100:l,stretch:h,children:F})}},15688:function(e,t,i){"use strict";var n=i(85893),s=i(50043);t.Z=e=>{let{size:t="md",children:i,whiteBg:a=!1,containerClasses:o="",withNav:r=!0}=e;return(0,n.jsx)(s.x,{background:a?"white":void 0,className:"".concat(r?"NavTop-push u-sm-pb0 u-pv2":""," "),style:{margin:"0 auto"},children:(0,n.jsx)("div",{className:"Container Container--".concat(t," ").concat(o.toString()),children:i})})}},48893:function(e,t,i){"use strict";let n=i(88095).ZP.div.withConfig({componentId:"sc-a03c3305-0"})(["position:fixed;inset:0;background:rgba(10,37,47,0.6);z-index:10;-webkit-backface-visibility:hidden;backface-visibility:hidden;&.REMODAL_overlay_transition{&-enter{opacity:0;}&-enter-active{opacity:1;background:rgba(10,37,47,0.6);transition:opacity 300ms ease-in-out;}&-exit{opacity:1;}&-exit-active{opacity:0;background:rgba(10,37,47,0.6);transition:opacity 300ms ease-in-out;}}"]);t.Z=n},29425:function(e,t,i){"use strict";i.d(t,{Z:function(){return B}});var n=i(85893),s=i(67294),a=i(73935);function o(e){let{children:t,selector:i}=e,n=(0,s.useRef)(),[o,r]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{n.current=document.querySelector(i),r(!0)},[i]),o?(0,a.createPortal)(t,n.current):null}var r=i(65716),l=i(85397),c=i(6254),d=i(88095),u=i(14428);let m=d.ZP.button.attrs({type:"button"}).withConfig({componentId:"sc-192daf8d-0"})(["position:absolute;z-index:9999;top:12px;right:12px;display:block;overflow:visible;width:32px;height:32px;margin:0;padding:0;cursor:pointer;transition:color 0.2s;text-decoration:none;font-size:1.2em;border:0;outline:0;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='16' fill='%23F5F7F9'/%3E%3Crect width='2' height='14' x='10' y='11.414' fill='%235E696A' rx='1' transform='rotate(-45 10 11.414)'/%3E%3Crect width='2' height='14' x='11.414' y='21.314' fill='%235E696A' rx='1' transform='rotate(-135 11.414 21.314)'/%3E%3C/svg%3E\");","{top:20px;right:20px;}&:focus{outline:0;}&:hover,&:focus{color:#2b2e38;}"],u.Ag);function p(e){let{title:t,titleBackDrop:i,onCloseModal:s}=e;return(0,n.jsx)(x,{style:{background:i?"rgba(10,37,47,.6)":"unset"}
1,children:(0,n.jsxs)("div",{style:"string"!=typeof t?{height:55}:{},children:[(0,n.jsx)(m,{onClick:s}),"string"==typeof t&&(0,n.jsx)(h,{children:t})]})})}let h=d.ZP.div.withConfig({componentId:"sc-a3b4f544-0"})(["font-weight:bold;font-size:24px;","{text-align:center;font-size:18px;font-weight:600;}"],u.$m),x=d.ZP.div.withConfig({componentId:"sc-a3b4f544-1"})(["padding:1em 2em;box-shadow:0 2px 5px -2px rgb(0 0 0 / 15%);","{top:0.1em;right:0.1em;}"],m),f=(0,d.iv)(["&.REMODAL_transition{&-enter{opacity:0;.REMODAL_content{transform:scale(0.9);}}&-enter-active{opacity:1;transition:opacity 300ms ease-in-out;.REMODAL_content{transform:scale(1);transition:transform 300ms ease-in-out;}}&-exit{opacity:1;.REMODAL_content{transform:scale(1);}}&-exit-active{opacity:0;transition:opacity 300ms ease-in-out;.REMODAL_content{transform:scale(0.9);transition:transform 300ms ease-in-out;}}}"]),g=(0,d.iv)([".REMODAL_scroll{padding:1.5em;","{padding:3em 3.6em;}}"],u.Ag),v={large:(0,d.iv)([".REMODAL_content{","{max-width:960px;}}",""],u.Ag,g),small:(0,d.iv)([".REMODAL_content{","{max-width:573px;}}.REMODAL_scroll{padding:36px;}"],u.Ag),medium:(0,d.iv)([".REMODAL_content{","{max-width:653px;}}",""],u.Ag,g),"medium-large":(0,d.iv)([".REMODAL_content{","{max-width:750px;}}"],u.Ag),kindaSmall:(0,d.iv)([".REMODAL_content{","{max-width:420px;}}.REMODAL_scroll{padding:2em;}"],u.Ag)},b=e=>v[e],j={none:null,extraSmall:(0,d.iv)(["padding:0.5em !important;"]),small:(0,d.iv)(["padding:1.5em !important;"])},y=e=>j[e],w=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e&&(0,d.iv)(["","{align-items:flex-end;padding:0;overflow:hidden;.REMODAL_content{overflow:hidden;border:none;max-height:calc(100% - 7vh);box-shadow:0 8px 28px rgb(0 0 0 / 28%);border-radius:14px 14px 0 0;display:flex;flex-direction:column;}.REMODAL_scroll{padding:1.5em;overflow-y:auto;height:100%;}&.REMODAL_transition{&-enter{.REMODAL_content{transform:translateY(100%);}}&-enter-active{.REMODAL_content{transform:translateY(0%);}}&-exit{.REMODAL_content{transform:translateY(0%);}}&-exit-active{.REMODAL_content{transform:translateY(100%);}}}}"],u.$m)},_=e=>e&&(0,d.iv)(["","{justify-content:flex-end;align-items:stretch;.REMODAL_content{max-height:100%;height:100%;width:unset;border-radius:unset;border:none;}.REMODAL_scroll{padding:40px 75px;}","{right:unset;position:sticky;left:15px;top:15px;}&.REMODAL_transition{&-enter{.REMODAL_content{transform:translateX(100%);}}&-enter-active{.REMODAL_content{transform:translateX(0%);}}&-exit{.REMODAL_content{transform:translateX(0%);}}&-exit-active{.REMODAL_content{transform:translateX(100%);}}}}"],u.Ag,m);var k=i(48893);function N(e){let{modalProps:t,modalContent:i,isVisible:a,handleCloseModal:o,modalName:l}=e,{overridePadding:d="none",size:u="large",isTray:h=!0,isOverlay:x=!1,hideCloseButton:f=!1,isOnRight:g=!1,title:v="",titleBackDrop:b,notScrollAble:j=!1,onClose:y=null,fullHeight:w,clickOutsideToClose:_=!0}=null!=t?t:{},N=(0,s.useRef)(null),B=(0,r.Z)(),Z=(0,s.useCallback)(()=>{o(),null==y||y(),(0,s.isValidElement)(i)&&"function"==typeof i.type&&B("modal_close_event",{name:t.trackingName,modalProps:Object.fromEntries(Object.entries(i.props).filter(e=>{let[,t]=e;return["string","boolean","number"].includes(typeof t)}))})},[o,y]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Z,{in:a,timeout:300,classNames:"REMODAL_overlay_transition",unmountOnExit:!0,mountOnEnter:!0,children:(0,n.jsx)(k.Z,{role:"presentation"})}),(0,n.jsx)(c.Z,{in:a,timeout:300,classNames:"REMODAL_transition",unmountOnExit:!0,mountOnEnter:!0,children:(0,n.jsx)(M,{size:u,notScrollAble:j,fullHeight:w,isOnRight:g,isOverlay:x,isTray:h,overridePadding:d,onClick:e=>{var t;e.stopPropagation(),(null==e||null===(t=e.target)||void 0===t||!t.closest(".REMODAL_content"))&&_&&Z()},children:(0,n.jsxs)("div",{className:"REMODAL_content",tabIndex:-1,ref:N,children:[!v&&!f&&(0,n.jsx)(m,{onClick:Z}),v&&(0,n.jsx)(p,{title:v,titleBackDrop:b,onCloseModal:Z}),(0,n.jsx)("div",{className:"REMODAL_scroll",children:i})]})})})]})}let M=d.ZP.div.withConfig({componentId:"sc-afed9b17-0"})(["overscroll-behavior:none;-webkit-overflow-scrolling:touch;position:fixed;inset:0;z-index:10;display:flex;justify-content:center;align-items:center;","{padding:1em;}","{align-items:center;}"," .REMODAL_content{position:relative;max-height:90vh;overflow-y:auto;overflow-x:hidden;width:100%;background:#fff;border-radius:14px;border:solid 1px #dbdfe5;}"," .REMODAL_scroll{-webkit-overflow-scrolling:touch;overscroll-behavior:none;"," ","}",";",";",";",";"],u.$m,u.Ag,f,e=>{let{size:t}=e;return b(t)},e=>{let{overridePadding:t}=e;return y(t)},e=>{let{notScrollAble:t}=e;return t&&(0,d.iv)(["overflow:inherit !important;height:100% !important;"])},e=>{let{isTray:t}=e;return w(t)},e=>{let{isOnRight:t}=e;return _(t)},e=>{let{fullHeight:t}=e;return t&&(0,d.iv)(["","{.REMODAL_content{min-height:80%;}}"],u.Ag)},e=>{let{isOverlay:t}=e;return t&&(0,d.iv)(["","{.REMODAL_content{max-height:unset;height:100%;border-radius:unset;border:none;max-width:unset;}","}"],u.$m,f)});
1function B(e,t,i){let[a,c]=(0,s.useState)(!1),[d,u]=(0,s.useState)(null),m=(0,r.Z)(),p=(0,s.useCallback)(()=>{c(!0),document.documentElement.classList.add("no-scroll"),m("modal_open_event",{name:t.trackingName,modalProps:Object.fromEntries(Object.entries(e.props).filter(e=>{let[,t]=e;return["string","boolean","number"].includes(typeof t)}))})},[]),h=(0,s.useCallback)(()=>{c(!1),document.documentElement.classList.remove("no-scroll"),u(null)},[]),x=(0,s.useCallback)(e=>{u({...d,titleBackDrop:e})},[d,u]),f=(0,s.useCallback)(e=>{u({...d,title:e})},[d,u]),g=(0,s.useMemo)(()=>({isModalOpen:a,closeModal:h,setModalTitleBackdrop:x,setModalTitle:f}),[a,h,x,f]),v=(0,n.jsx)(o,{selector:"#modalPortal",children:(0,n.jsx)(l.Z.Provider,{value:g,children:(0,n.jsx)(N,{modalProps:{...t,...d},modalContent:e,isVisible:a,handleCloseModal:h,modalName:i})})});return{openModal:p,closeModal:h,modal:v,isModalOpen:a}}},71567:function(e,t,i){"use strict";var n=i(85893),s=i(88095);t.Z=e=>{let{error:t,message:i,className:s,dataTestId:l}=e;return t?(0,n.jsx)(a,{className:"".concat(s||""," ErrorMessage"),children:(0,n.jsx)(o,{children:(0,n.jsx)(r,{className:"ErrorMessageItem",children:t.message||i||"This field is required"})})}):null};let a=s.ZP.div.withConfig({componentId:"sc-65dbcc71-0"})(["&.InputTextError{position:absolute;}"]),o=s.ZP.div.withConfig({componentId:"sc-65dbcc71-1"})(["background-color:transparent;color:#bc350a;"]),r=s.ZP.div.withConfig({componentId:"sc-65dbcc71-2"})(["font-size:12px;padding:0;line-height:18px;margin-bottom:12px;margin-top:4px;"])},49630:function(e,t,i){"use strict";i.d(t,{W:function(){return o}});var n=i(41609),s=i.n(n),a=i(49040);let o=(e,t,i,n,o,r)=>{let{year_manufactured:l,make:c,model:d,length:u,location:m,listing_tagline:p,listing_description:h,blw_agreement_at:x,photos:f,type:g,state:v,boat_category:b,boat_cancellation_policy:j,passenger_capacity:y,coi_submitted:w,packages:[{insurance_type:_=""}={}]=[],packages:k,top_speed:N,engine_year:M,engine_type:B,engine_quantity:Z,insured_value_cents:E,hull_material:A,external_insurer:O,boat_registration_number:R}=e,{location_type:P,address:C,city:L,state:S,postal_code:D,country_code:G,lat:I,lng:z}=m,W=!(0,a.Bd)(D)||"00000"===D,T=!(0,a.Bd)(P),F=!(0,a.Bd)(C);if("US"===G&&!_)return"insurance-type";if("commercial"===_&&"US"===G&&s()(x))return"commercial";if(("commercial"===_||""===_)&&"US"!==G&&(s()(x)||""===_))return"international";if(!(!Object.entries({address:C,city:L,state:S,country_code:G,lat:I,lng:z}).some(e=>s()(e[1]))&&W&&T&&F))return"location";if(!p||!h)return"title";if(!j)return"cancellation-policy";if(s()(f)||f.length<4)return"photos";let X="commercial"!==_||!(y>12)||w;if(Object.entries({year_manufactured:l,make:c,model:d,length:u,type:g,boat_category:b,passenger_capacity:y,coi_submitted:w}).some(e=>(0,a.Bd)(e[1]))||!X)return"specifications";if("p2p"===_&&(!n||!r)&&(null===N||null===M||void 0===B||void 0===A||void 0===Z||void 0===E||void 0===O))return"insurance";if(k.find(e=>e.available&&0===e.half_day_cents&&0===e.all_day_cents&&0===e.two_hour_price_cents&&0===e.three_hour_price_cents&&0===e.six_hour_price_cents)||0===k.length)return"duration";if(n&&r&&(0,a.Bd)(R))return"specifications";if((r||"commercial"===_)&&n){if(o)return"/listing-pending";if(!t)return"/buoy-insurance-owner";if(!i)return"/buoy-insurance-boat"}return"incomplete"===v?"review":"finished"}}},function(e){e.O(0,[916,575,6882,2283,5610,1735,7769,6992,4490,1150,8594,2210,2888,9774,179],function(){return e(e.s=57532)}),_N_E=e.O()}]); 2//# sourceMappingURL=review-e48cb8eb60c7f68e.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.