1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},o=(new e.Error).stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="dc37e70f-d629-4bd4-9788-a4062297d1d7",e._sentryDebugIdIdentifier="sentry-dbid-dc37e70f-d629-4bd4-9788-a4062297d1d7")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[63848],{63848:(e,o,t)=>{t.r(o),t.d(o,{ClonedForVideographyUpsellRoute:()=>b});var n=t(50979);t(25963);var r=t(32071),l=t(50844),s=t(38421),i=t(7585),u=t(60263),d=t(81723),a=t(41382),c=t(58564),p=t(90490),y=t(56473);let b=e=>{let{guessedTimezone:o}=(0,u.o)(),{createAndProcessBooking:t}=function(e){let{session:o,history:t,location:n,guessedTimezone:r}=e,l=(0,d.v)();return{createBookingPromiser:l,createAndProcessBooking:e=>{let{shoot_type:t,purpose:s,point:i,address:u,country:d,timezone:y,location_note:b,city:h,suburb:g,state:k}=e,v=(0,c.s)({guessed_timezone:r,session:o,location:n}).then(async e=>{let[n,r,l,c]=await (e=>{let{bookingId:t,shoot_type:n,purpose:r,point:l,address:s,country:i,timezone:u,location_note:d,city:c,suburb:y,state:b}=e;return Promise.all([(e=>{let{bookingId:t,serviceType:n}=e;return null!=n?(0,a.nr)("/api/v2/bookings/".concat(t,"/guessed-service-type"),{method:"PUT",body:JSON.stringify({guessed_service_type:n}),token:null==o?void 0:o.token}).then(()=>n):Promise.resolve()})({bookingId:t,serviceType:"videography"}),(e=>{let{bookingId:t,purpose:n}=e;return null!=n?(0,a.nr)("/api/v2/bookings/".concat(t,"/purpose"),{method:"PUT",body:JSON.stringify({purpose:n}),token:null==o?void 0:o.token}).then(()=>(0,p.J)(e=>{let{trackBookingEvent:o}=e;return o("booking purpose",{booking_uid:t,purpose:n,label:"click ".concat(n)})})).then(()=>n):Promise.resolve()})({bookingId:t,purpose:r}),(e=>{let{bookingId:t,shoottype:n}=e;return null!=n?(0,a.nr)("/api/v2/bookings/".concat(t,"/shoottype"),{method:"PUT",body:JSON.stringify({shoottype:n}),token:null==o?void 0:o.token}).then(()=>(0,p.J)(e=>{var r,l;let{trackBookingEvent:s}=e;return s("booking shoottype",{booking_uid:t,shoot_type:n,label:"click ".concat(n),email:null==o||null==(r=o.user)?void 0:r.email,mobilephone:null==o||null==(l=o.user)?void 0:l.mobilephone})})).then(()=>n):Promise.resolve()})({bookingId:t,shoottype:"profile"===n?"other":n}),(e=>{let{bookingId:t,point:n,address:r,country:l,timezone:s,location_note:i,suburb:u,city:d,state:c}=e;return(0,a.nr)("/api/v2/bookings/".concat(t,"/location"),{token:null==o?void 0:o.token,method:"PUT",body:JSON.stringify({point:n,address:r,country:l,timezone:s,location_note:i,suburb:u,city:d,state:c,has_coverage:!0})})})({bookingId:t,point:l,address:s,country:i,location_note:d,city:c,timezone:u,suburb:y,state:b})])})({bookingId:e.uid,purpose:s,point:i,city:h,country:d,timezone:y,location_note:b,address:u,shoot_type:t,suburb:g,state:k});return{bookingId:e.uid,purpose:r,shootType:l,location:c,serviceType:n}});return l.setPromise(v),v}}}({...e,guessedTimezone:o}),{booking:b}=e;return null==b?(0,n.jsx)(y.c,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(y.c,{}),(0,n.jsx)(l.A,{didMount:()=>{null!=b.shoot_type&&null!=b.purpose&&null!=b.point&&null!=b.address&&null!=b.country&&null!=b.timezone&&null!=b.city&&t({address:b.address,city:b.city,country:b.country,location_note:b.location_note,timezone:b.timezone,point:b.point,shoot_type:b.shoot_type,purpose:b.purpose,suburb:b.suburb,state:b.state}).then(o=>{let{bookingId:t,serviceType:n,purpose:l,shootType:u}=o,d=JSON.parse((0,i.GX)(r.parse(e.location.search).previousRoute)||"{}"),a="/book/".concat(t,"/package?").concat(r.stringify({serviceType:n,purpose:l,shoottype:u,previousRoute:JSON.stringify(d),preselectedCoupon:null!==s.FO&&void 0!==s.FO?s.FO:""}));e.history.replace(a)})}})]})}}}]);
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.