PageSourceSearch

https://app.snappr.com/_next/static/chunks/54113.a99584019f730d42.js

js snappr.com collected 2026-09-24 09:30:10 UTC 13,358 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6b6d911a-9f5f-4139-9d36-d0451644a01e",e._sentryDebugIdIdentifier="sentry-dbid-6b6d911a-9f5f-4139-9d36-d0451644a01e")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54113],{16618:(e,n,s)=>{"use strict";s.d(n,{h:()=>i});var t=s(50979),a=s(47810),l=s.n(a),r=s(69639),o=s.n(r);let i=e=>{let{size:n="md"}=e;return(0,t.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:l()(o().avatarIcon,"sm"===n&&o().avatarIconSm,"fill"===n&&o().avatarIconFill),children:[(0,t.jsx)("rect",{width:"40",height:"40",fill:"black"}),(0,t.jsx)("path",{d:"M27.1998 30.2V20H12.7998V30.2M24.1998 22.4V23.6M16.9998 9.80005H22.9998V15.8H16.9998V9.80005Z",stroke:"white",strokeWidth:"1.2"})]})}},25984:(e,n,s)=>{"use strict";s.d(n,{e:()=>i});var t=s(50979),a=s(25963),l=s(16618),r=s(29307),o=s.n(r);let i=a.memo(function(e){let{src:n,alt:s,fallback:r}=e,[i,c]=a.useState(!1);return a.useEffect(()=>{c(!1)},[n]),(0,t.jsxs)("div",{className:o().root,children:[(0,t.jsx)("div",{className:o().fallback,children:null!=r?r:(0,t.jsx)(l.h,{size:"fill"})}),n&&!i&&(0,t.jsx)("img",{src:n,alt:null!=s?s:"",className:o().image,onError:()=>c(!0)})]})})},29307:e=>{e.exports={root:"Avatar_root__m2TW4",image:"Avatar_image__A878l",fallback:"Avatar_fallback__we9k5"}},31409:(e,n,s)=>{"use strict";s.d(n,{f:()=>d,z:()=>h});var t=s(86739),a=s(50979),l=s(25963),r=s(51065),o=s(31606),i=s(16678);function c(){let e=(0,t._)(["\n    query ClaimMapSurgeAlertQuery {\n      getBookingsToClaim(availableOnly: true) {\n        edges {\n          id\n        }\n      }\n    }\n  "]);return c=function(){return e},e}function d(){return(0,o.IT)((0,o.J1)(c()))}let m="snappr.surgeAlert";function h(e){var n,s,t,o;let{onlyShowOn:c,noMarginTop:d=!1,bookingsToClaimQuery:h}=e,x=null!=(o=null==(t=h.data)||null==(s=t.getBookingsToClaim)||null==(n=s.edges)?void 0:n.length)?o:0,u=l.useMemo(()=>new r.A,[]),[g,p]=l.useState(()=>{let e=u.get(m);return!!e&&Date.now()<parseInt(e,10)+864e5});return x<1||!0===g?null:(0,a.jsxs)("div",{className:"alert alert-danger alert-dismissible fade show mb-0"+(d?"":" mt-3")+("MOBILE"===c?" d-flex d-md-none":" d-none d-md-flex"),role:"alert",style:{backgroundColor:"#E11F59"},children:[(0,a.jsxs)("a",{href:"/claim-map",className:"text-white",target:"_blank",rel:"noopener noreferrer",children:[(0,a.jsx)("strong",{children:"Shoot surge alert:"})," there"," ",1===x?"is":"are"," ",x," ",1===x?"shoot":"shoots"," available in your area - ",(0,a.jsx)("span",{className:"text-underline",children:"click here to claim"})]}),(0,a.jsx)("button",{type:"button",className:"close text-white","aria-label":"Close",onClick:()=>{p(!0),u.set(m,Date.now(),{path:"/",httpOnly:!1,maxAge:i.Cq,sameSite:"lax"})},children:(0,a.jsx)("span",{"aria-hidden":"true",children:"\xd7"})})]})}},54113:(e,n,s)=>{"use strict";s.d(n,{j:()=>A});var t=s(86739),a=s(50979),l=s(25963),r=s(3452),o=s(79254),i=s(31188),c=s(46795),d=s(97768),m=s(25788);s(28767);var h=s(50039),x=s(66296),u=s(67525),g=s(46874),p=s(10392),b=s(6480),j=s(60938),v=s(31409),f=s(76469),N=s(84959),I=s(50145),w=s(25984),y=s(80256),k=s.n(y),M=s(76892);function _(){let e=(0,t._)(["\n  a {\n    color: rgb(66, 66, 66);\n    letter-spacing: 1px;\n    font-size: 0.88rem;\n    position: relative;\n\n    &.active:after {\n      background: #000;\n      position: absolute;\n      content: '';\n      width: 100%;\n      height: 2px;\n      left: 0;\n      right: 0;\n      bottom: 0;\n    }\n  }\n"]);return _=function(){return e},e}let C=(0,j.x)({loader:()=>s.e(9322).then(s.bind(s,9322)).then(e=>e.AvailabilityToggle),loading:()=>null}),D=(0,j.x)({loader:()=>s.e(6898).then(s.bind(s,6898)).then(e=>e.ChatGlobalPendingMessages),loading:()=>null}),B=e=>{let{session:n}=e;return n&&n.user&&n.user.grants&&n.user.grants.includes("beProvider")||!1},S=r.Ay.li(_()),T=e=>{let{to:n,children:s,disabled:t,native:l,className:r="nav-link py-3",...o}=e;return(0,a.jsx)(S,{className:"nav-item",children:l?(0,a.jsx)("a",{href:n,className:r,disabled:t,...o,children:s}):(0,a.jsx)(c.k2,{to:n,activeClassName:"font-weight-bold active text-primary",className:r,children:s})})};function A(e){let{t:n}=(0,h.Bd)([f.I4.common]),{localizeURL:s}=(0,M.$)();return(0,a.jsx)(z,{...e,t:n,localizeURL:s})}class z extends l.Component{render(){let{session:e,marketingPartnerL
1ogo:n,partnerLogo:s,wrapperRef:t,dashboardNavBar:r=!1,showBookNowButton:h=!1,hideFreeShootsLink:j=!1,isReferralPartner:y=!1,bookingsToClaimQuery:M,helpUrl:_,hideLoginButton:A=!1,t:z,localizeURL:E,Logo:H=()=>s?(0,a.jsxs)("a",{className:"navbar-brand d-flex flex-row d-flex align-items-center",href:"https://www.snappr.com",children:[(0,a.jsxs)("div",{className:"d-flex flex-column align-items-center",children:[(0,a.jsx)("img",{src:s,alt:"Partner",style:{maxWidth:y?150:200,maxHeight:y?50:30}}),!y&&(0,a.jsx)("small",{style:{fontSize:"12px"},children:z("photographyText",{ns:f.I4.common})})]}),!y&&(0,a.jsxs)(l.Fragment,{children:[(0,a.jsx)("span",{className:"mx-3 small font-manrope font-italic",children:z("poweredBy",{ns:f.I4.common})}),(0,a.jsx)("div",{className:"navbar-brand",children:(0,a.jsx)(I.E,{})})]})]}):(0,a.jsxs)("a",{className:"navbar-brand d-flex flex-row d-flex align-items-center",href:"https://www.snappr.com",children:[(0,a.jsx)(I.E,{}),n&&(0,a.jsxs)(l.Fragment,{children:[(0,a.jsx)("span",{className:"font-manrope mx-3 font-italic",children:"with"}),(0,a.jsx)("img",{src:n,alt:"Partner logo",style:{maxWidth:150,maxHeight:30}})]})]})}=this.props,{user:L}=e||{},{showMenu:W}=this.state;return(0,a.jsx)(m.A,{query:{maxWidth:u.a9.md},children:n=>{var s,m,u,I;return(0,a.jsxs)(l.Fragment,{children:[(0,a.jsxs)("div",{className:"bg-white"+(r?" d-block":" d-none d-sm-block"),style:{borderBottom:"1px solid #e8edf5"},ref:t,children:[(0,a.jsx)("nav",{"data-test":"old-self-service-navbar",className:"navbar navbar-expand-sm navbar-light"+(n?"":" px-5"),style:{height:70},children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)(H,{}),r&&(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[B({session:e})&&(0,a.jsx)(D,{children:e=>{let{count:n,pendingBookingId:s}=e;return n>0&&(0,a.jsx)(d.qh,{children:e=>{let{location:t}=e;return(0,a.jsx)(c.N_,{to:{...t,pathname:"/provider-dashboard/jobs/".concat(s,"/chat")},className:"mr-3 d-flex d-sm-none",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)("span",{className:"badge badge-pill badge-danger",style:{backgroundColor:b.NG},children:n})})}})}}),(0,a.jsx)("button",{className:"navbar-toggler",type:"button",onClick:()=>this.setState(e=>({showBurgerContent:!e.showBurgerContent})),children:(0,a.jsx)("span",{className:"navbar-toggler-icon"})})]}),(0,a.jsx)("div",{className:"collapse navbar-collapse",children:(0,a.jsx)("ul",{className:"navbar-nav align-items-center ml-auto",children:L?(0,a.jsxs)(l.Fragment,{children:[!j&&e&&e.user&&e.user.grants&&!B({session:e})&&(0,a.jsx)("li",{className:"nav-item d-flex align-items-baseline px-0 mr-4",children:(0,a.jsx)(c.N_,{className:"nav-link py-0",to:"/refer",children:z("freeShoots",{ns:f.I4.common})})}),(0,a.jsx)(N.W,{}),(0,a.jsx)("li",{className:"nav-item d-flex align-items-baseline px-0 mr-4",children:(0,a.jsx)("a",{className:"nav-link py-0",href:E("/help"),children:z("help",{ns:f.I4.common})})}),(0,a.jsxs)("li",{className:"nav-item d-flex align-items-baseline dropdown px-0",children:[(0,a.jsxs)("button",{className:"nav-link py-0 d-flex align-items-center  d-inline bg-transparent border-0",onClick:this.toggleMenu,children:[L.firstname,(0,a.jsx)("img",{src:k(),className:"mx-3",alt:"arrow down"}),(0,a.jsx)(w.e,{src:"".concat(o.QU,"/rpc/v1/avatar/").concat(L.uid),alt:L.firstname})]}),(0,a.jsx)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,display:W?"flex":"none",justifyContent:"center",alignItems:"center",zIndex:100},children:(0,a.jsx)("button",{style:{background:"transparent",position:"absolute",top:0,left:0,right:0,bottom:0,border:"none",width:"100%"},onClick:this.toggleMenu})}),h&&(0,a.jsx)(c.N_,{to:E("/book"),className:"btn btn-primary px-4 ml-3",children:(0,a.jsx)(g.MB,{children:z("bookNow",{ns:f.I4.common})})}),(0,a.jsxs)("div",{className:"dropdown-menu  ".concat(W&&"show"),style:{zIndex:200},children:[(0,a.jsx)(c.N_,{to:B({session:e})?"/provider-dashboard":E(i.Ot),className:"btn-link dropdown-item",children:B({session:e})?z("partnerDashboard",{ns:f.I4.common}):z("dashboard",{ns:f.I4.common})}),(e=>{let{session:n}=e;return B({session:n})&&n.user.booking_count>0||!1})({session:e})&&(0,a.jsx)(c.N_,{to:E("/shoot"),className:"btn-link dropdown-item",children:z("customerDashboard",{ns:f.I4.common})}),!1,(0,a.jsx)(c.N_,{to:"/account-settings",className:"btn-link dropdown-item",children:z("account",{ns:f.I4.common})}),(0,a.jsx)("a",{className:"btn-link dropdown-item",href:"/logout",children:z("logout",{ns:f.I4.common})})]})]})]}):(0,a.jsxs)(l.Fragment,{children:[(0,a.jsx)(N.W,{}),(null==e||!B({session:e}))&&(0,a.jsx)("li",{className:"nav-item d-flex align-items-baseline px-0 mr-4",children:(0,a.jsx)("a",{className:"nav-link py-0",href:E(null!=_?_:"/help"),children:z("help",{ns:f.I4.common})})}),!0!==A&&(0,a.jsx)(c.N_,{className:"btn-outline-primary btn px-4",to:E("/login"),"data-test":"login-button",children:z("login",{ns:f.I4.common})})]})})})]})}),r&&(B({session:e})?(0,a.jsx)(p.e,{urlToFetch:"/api/v2/providers/".concat(null==e?void 0:e.uid),session:e,children:s=>(0,a.jsxs)("div",{className:this.state.showBurgerContent?"d-flex flex-column":"d-none d-sm-block",children:[(0,a.jsx)("div",{className:"border-top"}),(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)("ul",{className:"nav flex-column flex-sm-row",style:{marginLeft:-16},children:[(0,a.jsxs)(T,{to:E("/provider-dashboard/jobs"),className:"py-3 nav-link px-0 mr-3 ml-3 position-relative",children:[z("shoots",{ns:f.I4.common}),(0,a.jsx)(D,{children:e=>{let{count:n}=e;return n>0&&(0,a.jsx)("div",{className:"position-absolute d-none d-sm-flex",
1style:{top:0,right:0,justifyContent:"center",alignItems:"center",transform:"translate(50%, 25%)"},children:(0,a.jsx)("span",{className:"badge badge-pill badge-danger",style:{backgroundColor:b.NG},children:n})})}})]}),(0,a.jsxs)(T,{to:E("/provider-dashboard/points"),children:[z("points",{ns:f.I4.common})," "]}),!1===n&&(0,a.jsx)(T,{to:E("/provider/profile/profile-photo"),native:!0,children:z("profileNav",{ns:f.I4.common})}),!0===n?null:(0,a.jsx)(T,{to:E("/provider/portfolio"),native:!0,children:z("portfolio",{ns:f.I4.common})}),(0,a.jsx)(T,{to:null!=s.result&&(0,f.EQ)({country:s.result.country})||"#",target:"_blank",rel:"noopener",native:!0,disabled:null==s.result,children:z("infoPack",{ns:f.I4.common})}),(0,a.jsx)("div",{className:"flex-grow-1"}),null!=e&&(0,a.jsx)(S,{className:"nav-item px-3 pb-3 pb-sm-0",children:(0,a.jsx)(C,{session:e,providerFetch:s})})]})}),this.state.showBurgerContent&&(0,a.jsx)("div",{className:"border-top"})]})}):(0,a.jsxs)("div",{className:this.state.showBurgerContent?"d-flex flex-column":"d-none",children:[(0,a.jsx)("div",{className:"border-top"}),(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)("ul",{className:"nav flex-column flex-sm-row text-right",style:{marginLeft:-16},children:[(0,a.jsx)(c.N_,{to:B({session:e})?"/provider-dashboard":E(i.Ot),className:"btn btn-link text-right",children:B({session:e})?z("partnerDashboard",{ns:f.I4.common}):z("dashboard",{ns:f.I4.common})}),(0,a.jsx)(c.N_,{to:"/account-settings",className:"btn btn-link text-right",children:z("account",{ns:f.I4.common})}),(0,a.jsx)(N.W,{}),(0,a.jsx)(c.N_,{to:E("/help"),className:"btn btn-link text-right",children:z("help",{ns:f.I4.common})}),(0,a.jsx)("button",{className:"btn btn-link text-right",onClick:()=>(0,x.jL)({withNext:!1}),children:z("logout",{ns:f.I4.common})})]})}),this.state.showBurgerContent&&(0,a.jsx)("div",{className:"border-top"})]}))]}),null!=M&&(null!=(I=null==(u=M.data)||null==(m=u.getBookingsToClaim)||null==(s=m.edges)?void 0:s.length)?I:0)>0&&(0,a.jsx)(v.z,{onlyShowOn:"MOBILE",noMarginTop:!0,bookingsToClaimQuery:M})]})}})}constructor(...e){super(...e),this.state={showMenu:!1,showBurgerContent:!1},this.toggleMenu=()=>{this.setState(e=>({showMenu:!e.showMenu}))}}}},69639:e=>{e.exports={avatarIcon:"AvatarIcon_avatarIcon__kVU6W",avatarIconSm:"AvatarIcon_avatarIconSm__gnXlU",avatarIconFill:"AvatarIcon_avatarIconFill__0Wqz0"}},76892:(e,n,s)=>{"use strict";s.d(n,{$:()=>a});var t=s(80178);function a(){let{defaultLocale:e,locale:n}=(0,t.useRouter)();return{localizeURL:function(s){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=n!==e?"/".concat(n).concat(s):s;return"".concat(t).concat(a)}}}},80256:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iNiIgdmlld0JveD0iMCAwIDEwIDYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxsaW5lIHgxPSIwLjM1MzU1MyIgeTE9IjAuNjQ2NDQ3IiB4Mj0iNS4zNTM1NSIgeTI9IjUuNjQ2NDUiIHN0cm9rZT0iIzQ1NEY1QyIvPgo8bGluZSB5MT0iLTAuNSIgeDI9IjcuMDcxMDciIHkyPSItMC41IiB0cmFuc2Zvcm09Im1hdHJpeCgtMC43MDcxMDcgMC43MDcxMDcgMC43MDcxMDcgMC43MDcxMDcgMTAgMSkiIHN0cm9rZT0iIzQ1NEY1QyIvPgo8L3N2Zz4K"}}]);

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.