PageSourceSearch

https://assets.getmyboat.com/_next/static/chunks/8509-4482310230378e7a.js

js getmyboat.com collected 2026-09-24 17:22:13 UTC 10,448 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8509],{20554:function(n,e,t){"use strict";t.d(e,{a:function(){return d}});var i=t(85893),o=t(11163),a=t(67294),s=t(99984),r=t(65534),l=t(4452);let _=[s.yy.ADMIN_ADDONS,s.yy.ADMIN_LISTINGS,s.yy.ADMIN_LISTING_EDITOR],c=(0,a.createContext)({});e.Z=n=>{let{backLabel:e,backAria:t,backHref:s,children:d}=n,[u,m]=(0,a.useState)(s),[N,h]=(0,a.useState)(),{l:y}=(0,l.l)(),[v,f]=(0,a.useState)(!y),[p,b]=(0,a.useState)(!1),x=(0,a.useCallback)(n=>{"string"==typeof n?(m(n),h(void 0)):(h(()=>n),m(void 0))},[]),w=(0,r.ZP)("pricing-v2--nav"),{asPath:g}=(0,o.useRouter)(),I=!w||!_.some(n=>g.startsWith(n));(0,a.useEffect)(()=>{f(!y)},[y]);let j=(0,a.useMemo)(()=>({backHref:u,backOnClick:N,setBackAction:x,backLabel:e,backAria:t,isBackLabelHidden:v,setBackLabelHidden:f,setBackLoading:b,backLoading:p,shouldRenderNav:I}),[t,u,e,p,N,v,x,I]);return(0,i.jsx)(c.Provider,{value:j,children:d})};let d=()=>{let n=(0,a.useContext)(c);if(!n)throw Error("useAdminPagesContext must be used within a AdminPagesProvider");return n}},83642:function(n,e,t){"use strict";t.d(e,{v:function(){return i}});let i="admin--footer-slot"},5965:function(n,e,t){"use strict";t.d(e,{Z:function(){return Z}});var i=t(85893),o=t(38842),a=t(31614),s=t(90217),r=t(11163),l=t(99984),_=t(65534),c=t(35381),d=t(38508),u=t(93037),m=t(25386),N=t(49217),h=t(93967),y=t.n(h),v=t
1(59483),f=t.n(v),p=n=>{let{href:e,active:t,icon:o,showWarning:a,onClick:s,children:r}=n;return(0,i.jsx)("li",{className:f().root,children:(0,i.jsxs)(N.Z,{href:e,className:(0,u.Z)(f(),"link",y()({active:t,showWarning:a})),onClick:s,children:[(0,i.jsxs)("span",{className:f().linkContent,children:[(0,i.jsx)(m.ZP,{id:o,size:"l",className:f().icons}),r]}),a&&(0,i.jsx)(m.ZP,{id:"warning-filled",className:f().warningIcon})]})})},b=t(90784),x=t.n(b),w=n=>{let{close:e,variant:t}=n,o=(0,_.ZP)("pricing-v2--nav"),{validateUserPayoutCurrency:a}=(0,c.VT)(),{user:m,userRole:N}=(0,d.SE)(),h=!!(null==m?void 0:m.is_captain),y=!!(null==m?void 0:m.owner_approved),v="renter"===N,f=a(),b=!!((null==m?void 0:m.has_payout_method)&&f),w=(0,r.useRouter)(),g="".concat(w.pathname,"/"),[I]=(0,s.$G)("navbar");return(0,i.jsxs)("ul",{className:(0,u.Z)(x(),"list",t),children:[o&&(y||v)&&(0,i.jsx)(p,{href:l.yy.ADMIN_PROFILE,active:g.includes(l.yy.ADMIN_PROFILE),onClick:e,icon:"admin",children:I("admin-profile")}),!o&&y&&(0,i.jsx)(p,{href:l.yy.ADMIN_LISTINGS,active:g.includes(l.yy.ADMIN_LISTINGS)||g.includes(l.yy.ADMIN_LISTING_EDITOR),onClick:e,icon:"listings",children:I("admin-listings")}),!o&&y&&(0,i.jsx)(p,{href:l.yy.ADMIN_ADDONS,active:g.includes(l.yy.ADMIN_ADDONS),onClick:e,icon:"basket",children:I("admin-add-ons")}),(y||h)&&(0,i.jsx)(p,{href:l.yy.ADMIN_PAYMENTS,active:g.includes(l.yy.ADMIN_PAYMENTS),showWarning:!b,onClick:e,icon:"payment",children:I("admin-payments")}),(y||h)&&(0,i.jsx)(p,{href:l.yy.ADMIN_TRANSACTIONS,active:g.includes(l.yy.ADMIN_TRANSACTIONS),onClick:e,icon:"bank",children:I("admin-transactions")}),y&&(0,i.jsx)(p,{href:l.yy.ADMIN_CHECKOUT,active:g.includes(l.yy.ADMIN_CHECKOUT),onClick:e,icon:"link",children:I("admin-checkout")}),(y||h)&&(0,i.jsx)(p,{href:l.yy.ADMIN_SETTINGS,active:g.includes(l.yy.ADMIN_SETTINGS),onClick:e,icon:"gear",children:I(o?"admin-booking-settings":"admin-settings")}),(y||h)&&(0,i.jsx)(p,{href:l.yy.ADMIN_ACCOUNT,active:g.includes(l.yy.ADMIN_ACCOUNT),onClick:e,icon:o?"house":"person",children:I(o?"admin-personal-info":"admin-account")}),!o&&(y||v)&&(0,i.jsx)(p,{href:l.yy.ADMIN_PROFILE,active:g.includes(l.yy.ADMIN_PROFILE),onClick:e,icon:"profile",children:I("admin-profile")}),v&&(0,i.jsx)(p,{href:l.yy.ADMIN_SECURITY,active:g.includes(l.yy.ADMIN_SECURITY),onClick:e,icon:"lock",children:I("admin-security")})]})},g=t(71106),I=t(7690),j=t(77121),k=t.n(j);let A={account:"person","add-ons":"basket",listing:"listings",listings:"listings",payments:"payment",profile:"profile",checkout:"link",settings:"gear",transactions:"bank",security:"lock"};var D=n=>{let{variant:e,fullWidth:t=!1}=n,[o]=(0,s.$G)("navbar"),{pathname:a}=(0,r.useRouter)(),l=a.split("/").filter(n=>!!n)[1];return(0,i.jsx)(I.Z,{className:(0,u.Z)(k(),"root",y()(e,{fullWidth:t})),disableOnClickOutside:!0,children:n=>{let{close:e,isOpen:a,toggle:s}=n;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("button",{type:"button",onClick:s,className:(0,u.Z)(k(),"button",y()({open:a,fullWidth:t})),"aria-label":"Owner's menu",children:[(0,i.jsx)(m.ZP,{id:A[l]}),o("admin-".concat(l)),(0,i.jsx)(m.ZP,{id:"caret-down",className:k().chevron,size:"xs"})]}),(0,i.jsx)(g.Z,{close:e,isOpen:a,children:(0,i.jsx)(w,{close:e,variant:"mobile"})})]})}})},S=t(20554),C=t(32209),L=t(83642),M=t(39187),O=t.n(M),Z=n=>{let{children:e,variant:t}=n,{shouldRenderNav:s}=(0,S.a)(),{isMobileNativeWebView:r}=(0,C.Z)();return(0,i.jsxs)(a.Z,{withFixedHeader:!r,children:[(0,i.jsx)(o.Z,{children:s&&(0,i.jsx)(D,{variant:t})}),(0,i.jsxs)("main",{className:(0,u.Z)(O(),"root",y()({withNav:s})),children:[r&&(0,i.jsx)("div",{className:O().mobileNavigationDropdown,children:(0,i.jsx)(D,{variant:t,fullWidth:!0})}),s&&!r&&(0,i.jsx)(w,{variant:"desktop"}),(0,i.jsx)("div",{children:e}),(0,i.jsx)("div",{id:L.v,className:O().stickyFooter})]})]})}},10253:function(n,e,t){"use strict";var i=t(85893);t(67294);var o=t(93967),a=t.n(o),s=t(93037),r=t(2226),l=t.n(r);e.Z=n=>{let{children:e,fullWidth:t=!1,classNameModifier:o=""}=n;return(0,i.jsx)("div",{className:(0,s.Z)(l(),"root",a()(o,{fullWidth:t})),children:e})}},13720:function(n,e,t){"use strict";var i=t(85893),o=t(93037),a=t(31203),s=t(93967),r=t.n(s),l=t(57742),_=t.
1n(l);e.Z=n=>{let{children:e,variant:t="columns",size:s="l",label:l,htmlFor:c,required:d=!1,inlineSlot:u=null,rightSlot:m=null,compact:N=!1}=n;return(0,i.jsxs)("label",{className:(0,o.Z)(_(),"root",t),htmlFor:null==e?c:void 0,children:[(0,i.jsxs)("div",{className:(0,o.Z)(_(),"row",r()(t,{compact:N})),"data-test":(0,a.X)(l,"label"),children:[(0,i.jsx)("span",{className:(0,o.Z)(_(),"label",r()(t,"body-".concat(s))),children:l}),d&&(0,i.jsx)("span",{className:(0,o.Z)(_(),"required",t),children:"*"})," ",u&&(0,i.jsx)("span",{className:(0,o.Z)(_(),"inlineSlot",t),children:u})," ",m&&(0,i.jsx)("span",{className:(0,o.Z)(_(),"rightSlot",t),children:m})]}),e]})}},33448:function(n,e,t){"use strict";t.d(e,{x:function(){return l}});var i=t(85893),o=t(91296),a=t.n(o),s=t(91444),r=t(76018);let l=3e3,_=a()(n=>{let{i18nKey:e,i18nMessageKey:t,i18nMessageKeyCount:o,i18nActionKey:a,action:_,variant:c="info",translation:d,translationOption:u,autoCloseDelay:m}=n;s.Am.dismiss(),(0,s.Am)((0,i.jsx)(r.Z,{translation:d,headingKey:e,messageKey:t,messageKeyCount:o,action:_,actionKey:a,translationOptions:u}),{autoClose:null!=m?m:l,type:c})},1e3,{leading:!0,trailing:!1});e.Z=_},76018:function(n,e,t){"use strict";var i=t(85893);t(67294);var o=t(90217),a=t(25386),s=t(9823),r=t.n(s);e.Z=n=>{let{translation:e="common",headingKey:t,messageKey:s,messageKeyCount:l,actionKey:_,action:c,iconId:d,translationOptions:u}=n,[m]=(0,o.$G)(e);return(0,i.jsxs)("div",{className:r().root,children:[(d||t)&&(0,i.jsxs)("div",{className:r().row,children:[d&&(0,i.jsx)(a.ZP,{id:d,size:"m"}),t&&(0,i.jsx)("h6",{className:r().title,children:u?m(t,u):m(t)})]}),s&&(0,i.jsx)("p",{className:r().message,children:(0,i.jsx)(o.cC,{t:m,i18nKey:s,count:l,tOptions:u,components:[(0,i.jsx)("button",{type:"button",onClick:c,className:r().action,..._?{"aria-label":m(_)}:{}})]})})]})}},12823:function(n,e,t){"use strict";var i=t(67294),o=t(11163),a=t(38508),s=t(70370),r=t(65534);e.Z=function(){let n=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,o.useRouter)(),{user:t}=(0,a.SE)(),l=(0,r.ZP)("auth-migration");(0,i.useEffect)(()=>{(null==t?void 0:t.id)||!n||e.push((0,s.Z)(e.asPath,e.query,l))},[e,null==t?void 0:t.id,n,l])}},70370:function(n,e,t){"use strict";var i=t(17673),o=t(99984);e.Z=(n,e,t)=>{let a=(0,i.stringify)({...e,next:n}),s=t?o.yy.LOGIN:o.oG.LOGIN;return"".concat(s,"?").concat(a)}},39187:function(n){n.exports={root:"AdminPagesLayout_root__0__IK",root_withNav:"AdminPagesLayout_root_withNav__M_ITL",stickyFooter:"AdminPagesLayout_stickyFooter__VLPke",mobileNavigationDropdown:"AdminPagesLayout_mobileNavigationDropdown__D1a1f"}},90784:function(n){n.exports={list:"Navigation_list__VwUiO",list_desktop:"Navigation_list_desktop__Y14D7"}},77121:function(n){n.exports={button:"NavigationDropdown_button__JEpOf",root:"NavigationDropdown_root__rOxLA","root_with-back-button":"NavigationDropdown_root_with-back-button__lGJ01",root_fullWidth:"NavigationDropdown_root_fullWidth__ySPaD",button_fullWidth:"NavigationDropdown_button_fullWidth__8OaQs",chevron:"NavigationDropdown_chevron__5Pe_q"}},59483:function(n){n.exports={root:"OwnerNavigationItem_root__HAfYa",link:"OwnerNavigationItem_link__3CTHE",link_active:"OwnerNavigationItem_link_active__nPue2",link_showWarning:"OwnerNavigationItem_link_showWarning__GnqnH",linkContent:"OwnerNavigationItem_linkContent__2aVTv",icons:"OwnerNavigationItem_icons__8mbAM",warningIcon:"OwnerNavigationItem_warningIcon__BP0YK"}},19721:function(n){n.exports={root:"BaseModal_root__MrwkN",description:"BaseModal_description__p_Vqt",form:"BaseModal_form__HrdxD",fieldset:"BaseModal_fieldset__O0fWW"}},2226:function(n){n.exports={root:"ButtonGroup_root__7PTj_",root_fullWidth:"ButtonGroup_root_fullWidth__GM_9C",root_centered:"ButtonGroup_root_centered__vX7Ff",root_column:"ButtonGroup_root_column__Z1bpO"}},57742:function(n){n.exports={root:"Label_root__q6BeE",root_row:"Label_root_row__u2lrt","root_row-space-between":"Label_root_row-space-between__rLcMq","root_row-reverse":"Label_root_row-reverse__duR2I",row:"Label_row__ioTW7",row_compact:"Label_row_compact__514OM",row_columns:"Label_row_columns__X6hPe",row_inline:"Label_row_inline__yXRIh","row_row-space-between":"Label_row_row-space-between__LqjYf","label_body-s":"Label_label_body-s__JSb5P","label_body-m":"Label_label_body-m__nDLrM","label_body-l":"Label_label_body-l__1Ujuq",required:"Label_required__yKvEC",inlineSlot:"Label_inlineSlot__VryFu",inlineSlot_columns:"Label_inlineSlot_columns__jphlt",inlineSlot_inline:"Label_inlineSlot_inline__4o3S9",rightSlot:"Label_rightSlot__IGJYk",rightSlot_inline:"Label_rightSlot_inline__m6rpq"}},9823:function(n){n.exports={action:"Notification_action__svEGe",root:"Notification_root__9O1i5",row:"Notification_row__MnnaZ",title:"Notification_title__6XLtf",message:"Notification_message__PG6tQ"}}}]);
2//# sourceMappingURL=8509-4482310230378e7a.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.