PageSourceSearch

https://app.snappr.com/_next/static/chunks/94167.f9c57e56aa41ab9c.js

js snappr.com collected 2026-09-24 09:30:56 UTC 3,292 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:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="27f05ce8-231a-4b54-a239-761b230d77d7",e._sentryDebugIdIdentifier="sentry-dbid-27f05ce8-231a-4b54-a239-761b230d77d7")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[94167],{2516:(e,s,l)=>{l.d(s,{I:()=>t});var n=l(50979);l(25963);let t=e=>{let{style:s={},src:l,...t}=e;return(0,n.jsx)("div",{style:{display:"block",width:37,height:37,background:"no-repeat center",backgroundSize:"contain",backgroundImage:"url(".concat(l,")"),...s},...t})}},94167:(e,s,l)=>{l.r(s),l.d(s,{JobRoute:()=>m});var n=l(50979),t=l(25963),a=l(92211),r=l(54113),i=l(60584),o=l(2516),d=l(41382),c=l(94828),h=l(18460),b=l.n(h);class g extends t.Component{render(){let{onDismiss:e,session:{token:s},bookingId:l}=this.props;return(0,n.jsx)(i.A,{promise:this.state.deleteGalleryPromise,children:a=>{let{isPending:r,result:i,error:h}=a;return(0,n.jsx)(c.g1,{onDismiss:e,children:(0,n.jsxs)("div",{className:"card my-4",children:[(0,n.jsxs)("div",{className:"card-header d-flex justify-content-between",children:[(0,n.jsx)("h4",{className:"mb-0",children:"Delete gallery"}),(0,n.jsx)("a",{href:"/job/".concat(l),className:"close","data-dismiss":"modal","aria-label":"Close",onClick:e,children:(0,n.jsx)(o.I,{src:b(),style:{width:20,height:20}})})]}),(0,n.jsxs)("div",{className:"card-body d-flex flex-column",style:{width:"600px"},children:[(0,n.jsxs)("div",{className:"flex-1",style:{position:"relative"},children:[!r&&(h?(0,n.jsx)("div",{className:"alert alert-danger",children:h.errors&&h.errors.join(".\n")||"Unknown error"}):(0,n.jsx)(t.Fragment,{children:(0,n.jsx)("div",{className:"card mb-3",children:(0,n.jsxs)("div",{className:"card-body",children:[(0,n.jsx)("p",{children:"Are you sure you want to delete the gallery for this booking?"}),(0,n.jsx)("p",{children:"Doing it will delete the gallery from the booking and will set the booking back to paid so you can upload the photos again."})]})})})),r&&(0,n.jsx)("div",{className:"d-flex flex-columns justify-content-center align-items-center",style:{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:"rgba(255, 255, 255, 0.5)"},children:(0,n.jsx)("span",{children:"Loading..."})})]}),(0,n.jsxs)("div",{className:"d-flex justify-content-between mt-3",children:[(0,n.jsx)("a",{className:"btn btn-secondary",href:"/job/".concat(l),children:"Hell no! do not delete the gallery"}),(0,n.jsx)("button",{className:"btn btn-danger",disabled:r,onClick:()=>this.setState({deleteGalleryPromise:(0,d.nr)("/api/v2/bookings/".concat(l,"/delete-gallery"),{token:s,method:"POST"}).then(()=>e())}),children:r?"Deleting the gallery...":"Yes, delete the gallery"})]})]})]})})}})}constructor(...e){super(...e),this.state={deleteGalleryPromise:null}}}let m=e=>{let{session:s,match:{params:{bookingId:l}}}=e;return(0,n.jsxs)("div",{className:"d-flex flex-column flex-1 bg-light",children:[(0,n.jsx)(a._,{}),(0,n.jsx)(r.j,{session:s}),(0,n.jsx)("div",{className:"container",children:(0,n.jsx)(g,{session:s,bookingId:l,onDismiss:()=>window.location.assign("/job/".concat(l))})})]})}}}]);

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.