{"version":3,"sources":["components/pages/Bookings/BookingHome.js"],"names":["Navigation","lazy","catch","e","window","location","reload","BookingsMain","NotFound","BookingHome","updateBookings","booking_id","details","bookings","props","setAppStateValue","sendEventToGoogleTagManager","event","storeEncryptedState","Modal","destroyAll","Fragment","this","className","exact","path","render","fallback","renderLoader","state","React","Component","withRouter"],"mappings":"oPAMMA,EAAaC,gBAAK,kBACpB,+BAEEC,OAAM,SAACC,GAAD,OAAOC,OAAOC,SAASC,eAE7BC,EAAeN,gBAAK,kBACtB,4DAAgEC,OAAM,SAACC,GAAD,OAClEC,OAAOC,SAASC,eAGlBE,EAAWP,gBAAK,kBAClB,+BAAyDC,OAAM,SAACC,GAAD,OAC3DC,OAAOC,SAASC,eAIxB,kC,IAEMG,E,4MAMFC,eAAiB,SAACC,EAAYC,GAC1B,IAAIC,EAAQ,eAAQ,EAAKC,MAAMD,UAC/BA,EAASF,GAAcC,EAEvB,EAAKE,MAAMC,iBAAiB,WAAYF,GAAU,GAAM,WACpD,EAAKC,MAAME,4BAA4B,CACnCC,MAAO,iCAEX,EAAKH,MAAMI,0B,0DAbnB,WACIC,IAAMC,e,oBAgBV,WAAU,IAAD,OACL,OACI,eAAC,IAAMC,SAAP,WACI,cAACrB,EAAD,eAAgBsB,KAAKR,QACrB,qBAAKS,UAAU,UAAf,SACI,eAAC,IAAD,WACI,cAAC,IAAD,CACIC,OAAK,EACLC,KAAK,gBACLC,OAAQ,SAACZ,GAAD,OACJ,cAAC,WAAD,CAAUa,SAAU,EAAKb,MAAMc,eAA/B,SACI,cAACrB,EAAD,uCACQ,EAAKsB,OACL,EAAKf,OAFb,IAGIJ,eAAgB,EAAKA,uBAMrC,cAAC,IAAD,CACIgB,OAAQ,SAACZ,GAAD,OACJ,cAAC,WAAD,CAAUa,SAAU,EAAKb,MAAMc,eAA/B,SACI,cAACpB,EAAD,eAAc,EAAKM,yB,GAzC7BgB,IAAMC,WAoDjBC,sBAAWvB","file":"static/js/BookingHome.ffeb29cf.chunk.js","sourcesContent":["import React, { lazy, Suspense } from \"react\";\nimport { Route, Switch, withRouter } from \"react-router-dom\";\n\n//Ant Design Elements\nimport Modal from \"antd/lib/modal\";\n\nconst Navigation = lazy(() =>\n import(\n \"../../elements/Web/Navigation\" /* webpackChunkName: \"Navigation\" */\n ).catch((e) => window.location.reload())\n);\nconst BookingsMain = lazy(() =>\n import(\"./BookingsMain\" /* webpackChunkName: \"BookingsMain\" */).catch((e) =>\n window.location.reload()\n )\n);\nconst NotFound = lazy(() =>\n import(\"../NotFound\" /* webpackChunkName: \"NotFound\" */).catch((e) =>\n window.location.reload()\n )\n);\n\nimport(\"../../../styles/Booking.css\" /* webpackChunkName: \"Booking\" */);\n\nclass BookingHome extends React.Component {\n componentWillUnmount() {\n Modal.destroyAll();\n }\n\n //Will either create a new booking entry, or overwrite the details of an existing booking\n updateBookings = (booking_id, details) => {\n let bookings = { ...this.props.bookings };\n bookings[booking_id] = details;\n\n this.props.setAppStateValue(\"bookings\", bookings, true, () => {\n this.props.sendEventToGoogleTagManager({\n event: \"cart-addition-driving-lesson\",\n });\n this.props.storeEncryptedState();\n });\n };\n\n render() {\n return (\n \n \n
\n \n (\n \n \n \n )}\n />\n\n (\n \n \n \n )}\n />\n \n
\n
\n );\n }\n}\n\nexport default withRouter(BookingHome);\n"],"sourceRoot":""}