{"version":3,"sources":["webpack:///./frontend/components/Button/Button.jsx","webpack:///./frontend/layouts/NoLayout/NoLayout.jsx","webpack:///./frontend/lib/FlashMessages/FlashMessages.jsx","webpack:///./frontend/layouts/AuthLayout/AuthLayout.jsx","webpack:///./frontend/layouts/StoreLayout/Navigation.jsx","webpack:///./frontend/layouts/StoreLayout/StoreLayout.jsx","webpack:///./frontend/layouts/InternalLayout/Navigation.jsx","webpack:///./frontend/layouts/InternalLayout/InternalLayout.jsx","webpack:///./frontend/components/LanguageSelector/LanguageSelector.jsx","webpack:///./frontend/layouts/CustomerLayout/CustomerLayout.jsx","webpack:///./frontend/components/VenueSelector/VenueSelector.jsx","webpack:///./frontend/layouts/VenueAdminLayout/TopNav.jsx","webpack:///./frontend/layouts/VenueAdminLayout/Navigation.jsx","webpack:///./frontend/layouts/VenueAdminLayout/VenueAdminLayout.jsx","webpack:///./frontend/layouts/TerminalLayout/Navigation.jsx","webpack:///./frontend/layouts/TerminalLayout.jsx","webpack:///./frontend/components/ApplicationWrapper.jsx","webpack:///./frontend/contexts/CurrentUserContext.jsx","webpack:///./frontend/contexts/ApplicationContext.jsx","webpack:///./frontend/lib/auth/Terminal.js","webpack:///./frontend/components/Card/Card.jsx","webpack:///./frontend/components/Select/Select.jsx","webpack:///./frontend/components/Form/Form.jsx","webpack:///./frontend/components/Loader/Loader.jsx","webpack:///./frontend/lib/request.js","webpack:///./frontend/lib/flash.js","webpack:///./frontend/lib/Store.js","webpack:///./frontend/components/Modal/Modal.jsx","webpack:///./frontend/components/SeatSelector/SeatSelector.jsx","webpack:///./node_modules/react-i18next/dist/es/I18nextProvider.js","webpack:///./frontend/components/Confirm/Confirm.jsx","webpack:///./frontend/contexts/FeatureFlagContext.jsx","webpack:///./frontend/components/Switch/Switch.jsx","webpack:///./node_modules/react-swipeable/dist/react-swipeable.umd.js","webpack:///./frontend/views/FourOhFour/FourOhFour.jsx","webpack:///./frontend/lib/i18n.js","webpack:///./frontend/components/Image/Image.jsx","webpack:///./frontend/assets/notify.mp3","webpack:///./frontend/lib/features/hasPayments.js","webpack:///./frontend/lib/features/hasWebsockets.js","webpack:///./frontend/lib/usesFeatures.js","webpack:///./frontend/lib/features/hasData.js","webpack:///./frontend/lib/features/hasInputs.js","webpack:///./frontend/lib/features/hasSound.js","webpack:///./frontend/lib/features/hasPagination.js","webpack:///./frontend/contexts/CustomerContext.jsx","webpack:///./frontend/lib/Customer.js","webpack:///./frontend/components/RadioButtonGroup/RadioButtonGroup.jsx","webpack:///./frontend/views/Customer/CartView/CartView.jsx","webpack:///./frontend/components/Swipeable/Swipeable.jsx","webpack:///./frontend/components/DrawerModal/DrawerModal.jsx","webpack:///./frontend/components/QuantityInput/QuantityInput.jsx","webpack:///./frontend/views/Customer/ProductView/ProductView.jsx","webpack:///./frontend/views/Customer/StoreView/Menu.jsx","webpack:///./frontend/views/Customer/StoreView/StoreView.jsx","webpack:///./frontend/views/Customer/OrderView/CustomerForm.jsx","webpack:///./frontend/views/Customer/OrderView/OrderView.jsx","webpack:///./frontend/views/Customer/Checkout/components/QuickPay.jsx","webpack:///./frontend/views/Customer/Checkout/components/PaymentRequired.jsx","webpack:///./frontend/views/Customer/Checkout/components/AllInclusive.jsx","webpack:///./frontend/views/Customer/Checkout/components/OrderMethod.jsx","webpack:///./frontend/views/Customer/Checkout/NewCheckout.jsx","webpack:///./frontend/views/Customer/Checkout/Checkout.jsx","webpack:///./frontend/views/Customer/VenueDirectory/Store.jsx","webpack:///./frontend/views/Customer/VenueDirectory/VenueDirectory.jsx","webpack:///./frontend/views/Customer/ReceiptView.jsx","webpack:///./frontend/routes/Customer.jsx","webpack:///./frontend/packs/Customer.jsx","webpack:///./frontend/lib/ErrorReporting.jsx","webpack:///./frontend/components/Header/Header.jsx","webpack:///./frontend/images/icons/datatable/sort_asc.png","webpack:///./frontend/images/icons/datatable/sort_both.png","webpack:///./frontend/images/icons/datatable/sort_desc.png","webpack:///./frontend/images/icons/typing.gif","webpack:///./frontend/components/Icon/Icon.jsx","webpack:///./frontend/lib/User.js","webpack:///./frontend/components/Input/Input.jsx","webpack:///./frontend/images sync ^\\.\\/.*$"],"names":["Button","classes","props","className","split","flat","loading","push","disabled","buttonColor","join","color","onClick","e","preventDefault","this","text","React","PureComponent","NoLayout","children","Component","FlashMessages","state","messages","handleFlash","event","detail","id","Math","random","timeout","setTimeout","removeFlash","bind","setState","flashClass","type","filter","m","document","body","addEventListener","removeEventListener","map","message","i","key","AuthLayout","src","Navigation","renderNavItem","link","icon","isActive","window","location","pathname","includes","to","Icon","store","href","alt","name","allInclusive","delivery","Confirm","action","handleLogout","StoreLayout","cacheWhoAmI","data","Store","setWhoAmI","clearAuthToken","clearWhoAmI","logOut","whoAmI","getWhoAmI","fetchData","dataFetched","usesFeatures","Spinner","size","path","crossLogLink","InternalLayout","host","replace","token","User","getAuthToken","protocol","context","CurrentUserContext","user","venue","updateWhoAmI","Loader","contextType","ApplicationContext","LANGS","fr","LanguageSelector","open","changeLanguage","lang","i18n","toggleList","renderLanguageSelection","localStorage","getItem","isEnabled","FeatureFlagContext","CustomerLayout","VenueSelector","canUseComponent","fetchVenues","venues","request","get","then","changeVenue","venue_id","post","success","assign","renderVenueLink","TopNav","requests","toggleMenu","t","canUse","initialState","account","isCustomerDataEnabled","VenueAdminLayout","readerStatus","checkingReader","isIdentifyModalOpen","identificationString","isIdentifying","identifyReader","terminal","toString","substring","req","response","error","Flash","broadcast","fetchReaderStatus","Modal","number","colSpan","style","whiteSpace","startCase","TerminalLayout","Terminal","LAYOUTS","None","Auth","Internal","Customer","VenueAdmin","wrapComponent","ComponentToWrap","layout","variant","ApplicationWrapper","layoutLookup","identifier","Layout","contextName","createContext","CurrentUserProvider","currentUser","currentVenue","fetched","userUpdated","updatedAt","permission","permissions","Provider","value","CONTEXTS","ApplicationProviderWrapper","providerTree","ApplicationProvider","contexts","forEach","values","mainContext","contextValues","useContext","defaultProps","KEYS","authToken","lastPage","currentOrderId","currentLayout","isAuthenticated","undefined","setAuthToken","setItem","removeItem","JSON","stringify","parse","Card","image","title","actions","Select","handleOnChange","target","onChange","renderOption","label","prompt","Object","entries","options","Form","handleSubmit","onSubmit","wrapper","authScope","app","internal","server","axios","create","baseURL","responseType","headers","getElementsByName","interceptors","use","config","domain","hostname","auth","common","logger","Promise","reject","status","statuts","setLastPage","put","patch","delete","dispatchEvent","CustomEvent","isOpen","toggleModal","SeatSelector","area","seatType","selectedArea","selectedSection","selectedRow","selectedSeat","sectionOnly","canSubmit","depth","indexOf","areas","sortedUniq","sections","s","sort","updateSelection","field","findSection","skipSeats","change","sectionsFor","section","opts","find","x","sectionId","rowsFor","rows","zipObject","seatsFor","seats","skipRows","firstRow","lastRow","firstSeat","lastSeat","submit","clear","level","selected","length","keys","capitalize","I18nextProvider","_ref","defaultNS","handleConfirm","FeatureFlagProvider","flags","featureFlags","feature","console","warn","Switch","readOnly","checked","factory","_typeof","Symbol","iterator","obj","constructor","prototype","exports","_interopNamespace","__esModule","n","k","d","getOwnPropertyDescriptor","defineProperty","enumerable","React__namespace","_extends","arguments","source","hasOwnProperty","call","apply","LEFT","RIGHT","DOWN","delta","preventDefaultTouchmoveEvent","rotationAngle","trackMouse","trackTouch","first","initial","start","swiping","xy","mouseMove","mouseUp","rotateXYByAngle","pos","angle","angleInRadians","PI","cos","sin","getHandlers","set","handlerProps","onStart","touches","onMove","onUp","clientX","clientY","concat","timeStamp","_ref2","_rotateXYByAngle","y","deltaX","deltaY","absX","abs","absY","time","velocity","sqrt","vxvy","dir","getDirection","toLowerCase","eventData","onSwipeStart","onSwiping","cancelablePageSwipe","onSwiped","cancelable","onEnd","onSwipedDir","onTap","cleanUpMouse","attachTouch","el","passive","cleanup","tls","_ref3","h","_ref4","output","ref","addState","cleanUpTouch","onMouseDown","UP","useSwipeable","transientState","useRef","transientProps","current","_React$useMemo","useMemo","stateSetter","handlers","updateTransientState","module","IMAGES","FourOhFour","getRandomImage","sample","log","backgroundImage","history","goBack","withRouter","translations","en","translation","LanguageDetector","initReactI18next","init","resources","fallbackLng","debug","interpolation","escapeValue","Image","list","ratio","stripePromise","loadStripe","appConfig","spk","consumer","ActionCable","createConsumer","content","FEATURES","WrappedComponent","url","callback","hasDataFetch","checkVersion","setData","catchError","fourohfour","currentVersion","api_version","reload","updateWith","form","updateField","prevState","formData","clearForm","seedFormData","seedData","sound","playSound","useSound","soundFile","payments","stripe","elements","pagination","setPageData","pagy","pageData","getPage","page","joinChar","pageUrl","websockets","subscribe","channel","onReceived","subscriptions","received","subscribeTo","c","withTranslation","features","f","compose","CustomerContext","CustomerProviderWrapper","CustomerProvider","setCartId","getCartId","clearCartId","RadioButtonGroup","classesFor","button","toFixed","handleClick","display","CartView","removeProduct","lineItemId","cartId","heap","track","params","cart","updateCart","updateTip","tipAmount","amount","removeDiscount","discountLoading","discountErrors","errors","submitDiscount","code","discountCode","discount","renderProduct","product","quantity","imageUrl","modifiers","isAllInclusive","price","Header","products","closeModal","isShowDiscount","discountSubmitting","Input","v","tipOptions","tip","subtotal","taxes","customerFee","customerFeeDescriptor","discountAmount","chargeTotal","cartDisclaimer","itemCount","Swipeable","DrawerModal","handleSwipe","swipe","close","drawer","dismiss","createRef","expanded","top","scrollY","position","overflow","width","scrollTo","parseInt","hasFooter","onSwipedDown","Children","child","cloneElement","QuantityInput","canSubtract","updateValue","direction","ProductView","updateQuantity","handleAddToCart","productId","selectedModifiers","toggleModifier","xor","totalPrice","prices","parseFloat","sum","renderModifier","modifier","active","canAddProduct","modifierGroups","every","group","groupSelections","intersection","modifierIds","required","max","lockScroll","description","mg","mi","onTouchEnd","handleAddtoCart","Menu","productsFor","category","p","categoryId","simpleId","productLink","currentPath","renderCategory","selectProduct","categories","StoreView","selectedProduct","itemsInCart","cartStoreId","setCart","storeId","cartData","clearProduct","openCart","cartOpen","closeCart","match","subtitle","closestSection","backLink","vendorAtId","venueId","CustomerForm","processing","email","phone","orderId","isValidPhoneNumber","country","OrderView","trackEvent","addUserProperties","accountId","order","customer","fulfilled","confirmationCode","slice","sectionName","pickupInstructions","isEnrolledInRewards","rewardsBalance","nextReward","rewardDisplay","points","refunded","QuickPay","useStripe","useState","paymentRequest","setPaymentRequest","useEffect","pr","currency","total","storeName","requestPayerName","requestPayerPhone","requestPayerEmail","canMakePayment","result","on","ev","a","quickPay","confirmCardPayment","clientSecret","payment_method","paymentMethod","handleActions","paymentIntent","complete","onPaymentSuccess","payerName","payerPhone","payerEmail","PaymentRequired","updateCard","paymentComplete","handleSuccessfulPayment","rewards","deliveryInfo","paymentSuccess","paymentError","payment","cardElement","getElement","CardElement","intentSecret","card","billing_details","toOrderPage","marginLeft","base","fontSize","invalid","isRewardsEnabled","marginTop","AllInclusive","method","selectSeat","OrderMethod","changeOrderMethod","row","seat","hideMethod","Checkout","readyForPayment","canProgress","checkoutStage","nextStep","submitCustomer","setOrderType","pickup","NewCheckout","rewardsProgram","VenueDirectory","renderStore","stores","ReceiptView","setOrder","setCustomer","useParams","exact","component","require","render","ErrorReporting","getElementById","appsignal","Appsignal","apk","revision","FallbackComponent","instance","fallback","solid","brand","getLastPage","clearLastPage","fieldClasses","append","horizontal","controlClasses","errorKey","step","placeholder","hint","webpackContext","webpackContextResolve","__webpack_require__","o","Error","resolve"],"mappings":"i1CAIqBA,E,uZACnBC,QAAU,WACR,IAAMA,EAAU,CACd,SACA,EAAKC,MAAMC,UAAY,EAAKD,MAAMC,UAAUC,MAAM,KAAO,IACzDC,OAaF,OAXI,EAAKH,MAAMI,UACbL,EAAQM,KAAK,cACbN,EAAQM,KAAK,gBAGX,EAAKL,MAAMM,UACbP,EAAQM,KAAK,eAGfN,EAAQM,KAAK,EAAKE,eAEXR,EAAQS,KAAK,M,EAGtBD,YAAc,WACZ,OAAQ,EAAKP,MAAMS,OACjB,IAAK,MACH,MAAO,YACT,IAAK,SACH,MAAO,aACT,IAAK,QACH,MAAO,aACT,IAAK,OACH,MAAO,UACT,QACE,MAAO,e,EAIbC,QAAU,SAACC,GACTA,EAAEC,iBACE,EAAKZ,MAAMU,SACb,EA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mvB,UAKnBtuB,KAAKb,MAAMyvB,MACX,uBAAGxvB,UAAU,QAASY,KAAKb,MAAMyvB,MAEjC5uB,KAAKb,MAAM6gB,OAAOhgB,KAAKb,MAAMsvB,WAC7B,uBAAGrvB,UAAU,oBAAqBY,KAAKb,MAAM6gB,OAAOhgB,KAAKb,MAAMsvB,iB,8BA9CtCvuB,IAAMC,eAqDzC8gB,EAAM3V,aAAe,CACnB0U,OAAQ,K,mBCzDV,IAAIne,EAAM,CACT,6BAA8B,GAC9B,iCAAkC,GAClC,8BAA+B,GAC/B,kCAAmC,GACnC,8BAA+B,GAC/B,kCAAmC,GACnC,iBAAkB,GAClB,qBAAsB,IAIvB,SAASgtB,EAAezmB,GACvB,IAAIvH,EAAKiuB,EAAsB1mB,GAC/B,OAAO2mB,EAAoBluB,GAE5B,SAASiuB,EAAsB1mB,GAC9B,IAAI2mB,EAAoBC,EAAEntB,EAAKuG,GAAM,CACpC,IAAItI,EAAI,IAAImvB,MAAM,uBAAyB7mB,EAAM,KAEjD,MADAtI,EAAEogB,KAAO,mBACHpgB,EAEP,OAAO+B,EAAIuG,GAEZymB,EAAe/c,KAAO,WACrB,OAAO/E,OAAO+E,KAAKjQ,IAEpBgtB,EAAeK,QAAUJ,EACzBxV,EAAOlG,QAAUyb,EACjBA,EAAehuB,GAAK,I","file":"js/Customer-960c1bc2bd7c650bd59f.chunk.js","sourcesContent":["import \"./Button.scss\";\n\nimport React from \"react\";\n\nexport default class Button extends React.PureComponent {\n classes = () => {\n const classes = [\n \"button\",\n this.props.className ? this.props.className.split(\" \") : [],\n ].flat()\n\n if (this.props.loading) {\n classes.push(\"is-loading\")\n classes.push(\"is-disabled\")\n }\n\n if (this.props.disabled) {\n classes.push(\"is-disabled\")\n }\n\n classes.push(this.buttonColor())\n\n return classes.join(\" \")\n }\n\n buttonColor = () => {\n switch (this.props.color) {\n case \"red\":\n return \"is-danger\"\n case \"yellow\":\n return \"is-warning\"\n case \"green\":\n return \"is-success\"\n case \"link\":\n return \"is-link\"\n default:\n return \"is-primary\"\n }\n }\n\n onClick = (e) => {\n e.preventDefault()\n if (this.props.onClick) {\n this.props.onClick()\n }\n }\n\n render() {\n return(\n \n { this.props.text }\n \n )\n }\n}\n","import React from \"react\";\nimport \"./NoLayout.scss\";\n\nexport default class NoLayout extends React.Component {\n render() {\n return(\n <>\n { this.props.children }\n \n )\n }\n}\n","import \"./FlashMessages.scss\";\n\nimport React from \"react\";\n\nexport default class FlashMessages extends React.Component {\n state = {\n messages: []\n }\n\n componentDidMount() {\n document.body.addEventListener('flashBroadcast', this.handleFlash.bind(this));\n }\n\n componentWillUnmount() {\n document.body.removeEventListener('flashBroadcast', this.handleFlash.bind(this));\n }\n\n handleFlash = (event) => {\n const { messages } = this.state\n const detail = event.detail\n detail.id = Math.random()\n detail.timeout = setTimeout(this.removeFlash.bind(null, detail.id), (this.props.timeout || 15000))\n messages.push(event.detail)\n this.setState({messages})\n }\n\n flashClass = (type) => {\n if(type == \"error\") return \"is-danger\"\n if(type == \"warning\") return \"is-warning\"\n if(type == \"info\") return \"is-primary\"\n if(type == \"success\") return \"is-success\"\n return \"is-primary\"\n }\n\n removeFlash = (id) => {\n const messages = this.state.messages.filter((m) => m.id != id)\n this.setState({messages})\n }\n\n render() {\n return(\n
\n { this.state.messages.map((message, i) => {\n return(\n
\n \n
\n { message.body }\n
\n
\n )\n })}\n
\n )\n }\n}\n","import React from \"react\";\nimport \"./AuthLayout.scss\";\n\nimport FlashMessages from \"FlashMessages\"\n\nexport default class AuthLayout extends React.Component {\n render() {\n return(\n
\n \n
\n
\n
\n
\n
\n \n
\n { this.props.children }\n
\n
\n
\n
\n
\n
\n )\n }\n}\n","import React from \"react\";\nimport { Link } from \"react-router-dom\";\n\nimport Icon from \"Icon\"\nimport Confirm from \"Confirm\"\n\nexport default class Navigation extends React.Component {\n renderNavItem = (text, link, icon) => {\n let isActive = window.location.pathname.includes(link)\n if (window.location.pathname != \"/\" && link == \"/\") isActive = false\n return(\n
  • \n \n \n { text }\n \n
  • \n )\n }\n\n render() {\n const { store } = this.props\n return(\n
    \n
    \n \n \"\"\n \n
    \n
    \n { store ? store.name : \"\" }\n
    \n
    \n
      \n { this.renderNavItem(\"Dashboard\", \"/\", \"home\") }\n { this.renderNavItem(\"Orders\", \"/orders\", \"shopping-cart\") }\n { store && store.allInclusive && store.delivery &&\n this.renderNavItem(\"Orders by Section\", \"/sections\", \"chair\")\n }\n { this.renderNavItem(\"Products\", \"/products\", \"box-open\") }\n
    • \n \n Log Out\n \n
    • \n
    \n
    \n
    \n )\n }\n}\n\n","import \"./StoreLayout.scss\";\n\nimport React from \"react\";\nimport { Link, Redirect } from \"react-router-dom\";\nimport request from \"request\"\nimport usesFeatures from \"usesFeatures\"\nimport { SkewLoader } from \"react-spinners\"\n\nimport Store from \"Store\"\nimport Navigation from \"./Navigation\"\nimport FlashMessages from \"FlashMessages\"\n\nclass StoreLayout extends React.PureComponent {\n constructor (props) {\n super(props)\n const whoAmI = Store.getWhoAmI() || {}\n\n this.state = {\n store: whoAmI.store,\n }\n }\n\n componentDidMount() {\n if (!this.state.store) this.props.fetchData(\"store/whoami\", this.cacheWhoAmI)\n }\n\n cacheWhoAmI = (data) => {\n Store.setWhoAmI(data)\n this.setState(data)\n }\n\n handleLogout = () => {\n Store.clearAuthToken()\n Store.clearWhoAmI()\n this.setState({logOut: true})\n }\n\n render() {\n if (this.state.logOut) return \n if (!this.props.dataFetched && !this.state.store) return false\n\n const { store } = this.state\n return(\n
    \n \n \n
    \n
    \n
    \n { !store && }\n { store && this.props.children }\n
    \n
    \n
    \n
    \n )\n }\n}\n\nexport default usesFeatures(['data'], StoreLayout)\n\nclass Spinner extends React.PureComponent {\n render() {\n return(\n
    \n \n
    \n )\n }\n}\n","import React from \"react\";\nimport { Link } from \"react-router-dom\";\n\nimport Icon from \"Icon\"\n\nexport default class Navigation extends React.Component {\n renderNavItem = (text, link, icon) => {\n const path = window.location.pathname\n const isActive = path == link || (link != \"/\" && path.includes(link))\n return(\n
  • \n \n \n { text }\n \n
  • \n )\n }\n\n\n render() {\n return(\n
    \n
    \n \n \"\"/\n \n
    \n
    \n
      \n { this.renderNavItem(\"Dashboard\", \"/\", \"home\") }\n
    • \n Accounts & Users\n
        \n { this.renderNavItem(\"Accounts\", \"/accounts\", \"university\") }\n { this.renderNavItem(\"Vendors\", \"/vendors\", \"truck-moving\") }\n { this.renderNavItem(\"Venues\", \"/venues\", \"building\") }\n { this.renderNavItem(\"Users\", \"/users\", \"user\") }\n { this.renderNavItem(\"Permissions\", \"/permissions\", \"user-lock\") }\n
      \n
    • \n
    • \n Customers (Fans)\n
        \n { this.renderNavItem(\"Orders\", \"/orders\", \"shopping-cart\") }\n
      \n
    • \n
    • \n Events\n
        \n { this.renderNavItem(\"Seasons\", \"/seasons\", \"calendar-alt\") }\n { this.renderNavItem(\"Events\", \"/events\", \"futbol\") }\n
      \n
    • \n
    • \n Finance\n
        \n { this.renderNavItem(\"Payouts\", \"/payouts\", \"hand-holding-usd\") }\n { this.renderNavItem(\"Invoices\", \"/invoices\", \"file-invoice-dollar\") }\n
      \n
    • \n
    • \n Sales\n
        \n { this.renderNavItem(\"Sales Tools\", \"/sales\", \"comment-dollar\") }\n { this.renderNavItem(\"Reports\", \"/reports\", \"chart-line\") }\n
      \n
    • \n
    • \n Engineering\n
        \n { this.renderNavItem(\"Printers\", \"/printers\", \"print\") }\n { this.renderNavItem(\"Card Readers\", \"/readers\", \"credit-card\") }\n { this.renderNavItem(\"Engineering\", \"/eng\", \"wrench\") }\n { this.renderNavItem(\"Deliverect\", \"/deliverect\", \"warehouse\") }\n
      \n
    • \n
    • \n App Login\n
    • \n
    \n
    \n
    \n )\n }\n}\n","import \"./InternalLayout.scss\";\n\nimport React from \"react\";\nimport { Link } from \"react-router-dom\";\nimport { ApplicationContext } from 'ApplicationContext'\n\nimport User from \"User\";\nimport usesFeatures from 'usesFeatures'\n\nimport Loader from \"Loader\"\nimport Navigation from \"./Navigation\"\nimport FlashMessages from \"FlashMessages\"\n\nclass InternalLayout extends React.PureComponent {\n static contextType = ApplicationContext;\n\n componentDidMount() {\n const { user, venue } = this.context.CurrentUserContext\n if(!user) this.context.CurrentUserContext.updateWhoAmI()\n }\n\n crossLogLink = () => {\n let host = window.location.host.replace(\"internal.\", \"app.\")\n let token = User.getAuthToken()\n return [ `${window.location.protocol}/`, host, `cross-login?token=${token}`].join(\"/\")\n }\n\n render() {\n const { user, venue } = this.context.CurrentUserContext\n\n return(\n
    \n \n \n
    \n
    \n
    \n { user && this.props.children }\n { !user && ()}\n
    \n
    \n
    \n
    \n )\n }\n}\n\nexport default usesFeatures([\"data\"], InternalLayout)\n","import \"./LanguageSelector.scss\";\n\nimport React from \"react\";\n//import { Link } from \"react-router-dom\";\n//import request from \"request\"\nimport i18n from \"lib/i18n\"\nimport usesFeatures from \"usesFeatures\"\n\nimport { FeatureFlagContext } from \"FeatureFlagContext\"\n\nconst LANGS = {\n \"en-US\": \"English\",\n fr: \"French\"\n}\n\nexport default class LanguageSelector extends React.PureComponent {\n static contextType = FeatureFlagContext\n state = {\n open: false\n }\n\n changeLanguage = (lang) => {\n i18n.changeLanguage(lang)\n this.setState({ open: false })\n }\n\n toggleList = () => {\n this.setState({ open: !this.state.open })\n }\n\n renderLanguageSelection = (lang) => {\n if (localStorage.getItem(\"i18nextLng\") == lang) return null\n return(\n { LANGS[lang] }\n )\n }\n\n render() {\n if (!this.context.isEnabled(\"language_selection\")) return null\n return(\n
    \n { LANGS[localStorage.getItem(\"i18nextLng\") || \"en\"] }\n { this.state.open &&\n
    \n { this.renderLanguageSelection(\"en-US\") }\n { this.renderLanguageSelection(\"fr\") }\n Close\n
    \n }\n
    \n )\n }\n}\n","import \"./CustomerLayout.scss\";\n\nimport React from \"react\";\nimport { Link } from \"react-router-dom\";\nimport request from \"request\"\nimport usesFeatures from \"usesFeatures\"\n\nimport LanguageSelector from \"LanguageSelector\"\nimport FlashMessages from \"FlashMessages\"\n\nexport default class CustomerLayout extends React.PureComponent {\n constructor (props) {\n super(props)\n this.state = {}\n }\n\n render() {\n return(\n
    \n \n \n
    \n
    \n { this.props.children }\n
    \n
    \n
    \n )\n }\n}\n","import \"./VenueSelector.scss\";\n\nimport React from \"react\";\nimport request from \"request\"\nimport User from \"User\"\n\nexport default class VenueSelector extends React.Component {\n constructor (props) {\n super(props)\n this.state = {}\n }\n\n canUseComponent = () => {\n return this.props.user.type == \"admin\" || this.props.user.type == \"internal\"\n }\n\n fetchVenues = () => {\n if (this.state.venues) return this.setState({ open: !this.state.open })\n\n let req = request.get(\"venue_admin/venues\")\n req.then(({data}) => {\n this.setState({venues: data.venues, open: true})\n })\n }\n\n toggleList = () => {\n this.setState({ open: !this.state.open })\n }\n\n changeVenue = (venue_id) => {\n let req = request.post(\"venue_admin/user/change_venue\", { venue_id: venue_id })\n req.then(({data}) => {\n if (data.success) {\n window.location.assign(\"/\")\n }\n })\n }\n\n renderVenueLink = (venue) => {\n if (this.props.user.venue_id == venue.id) return null\n return(\n {venue.name}\n )\n }\n\n render() {\n if (!this.canUseComponent()) return null\n\n const { venues } = this.state\n return(\n
    \n Change Venue\n { venues && this.state.open && (\n
    \n { venues.map((venue) => {\n return(this.renderVenueLink(venue))\n })}\n Close\n
    \n )}\n
    \n )\n }\n}\n","import React from \"react\";\nimport { Link, Redirect } from \"react-router-dom\";\nimport \"./VenueAdminLayout.scss\";\nimport { ApplicationContext } from \"ApplicationContext\"\nimport usesFeatures from 'usesFeatures'\n\nimport requests from \"request\";\n\nimport User from \"User\";\nimport Icon from \"Icon\"\nimport VenueSelector from \"VenueSelector\";\nimport LanguageSelector from \"LanguageSelector\"\n\nclass TopNav extends React.Component {\n static contextType = ApplicationContext\n constructor (props) {\n super(props)\n this.state = {}\n }\n\n handleLogout = () => {\n let req = requests.delete(\"logout\")\n req.then(({data}) => {\n if (data.success ) {\n User.clearAuthToken()\n this.setState({logOut: true})\n }\n })\n }\n\n toggleMenu = () => {\n this.setState({open: !this.state.open})\n }\n\n crossLogLink = () => {\n let host = window.location.host.replace(\"app.\", \"internal.\")\n let token = User.getAuthToken()\n return [ `${window.location.protocol}/`, host, `cross-login?token=${token}`].join(\"/\")\n }\n\n render() {\n if (this.state.logOut) return \n const { user, venue, t } = this.props\n const { canUse } = this.context.CurrentUserContext\n return(\n
    \n
    \n
    \n \n \"\"\n \n
    \n

    Venue Admin

    \n
    \n
    \n
    \n
    \n { user && (\n <>\n \n { t(\"greeting\") } {\n {user.name}\n }\n \n { venue &&\n \n {venue.name}\n \n }\n \n { user && canUse(\"change_venue\") &&\n \n }\n \n )}\n\n
    \n
    \n Logout\n { user && canUse(\"internal\") &&\n Internal Login\n }\n
    \n
    \n
    \n
    \n
    \n )\n }\n}\n\nexport default usesFeatures([\"translation\"], TopNav)\n\n","import React from \"react\";\nimport { Link, Redirect } from \"react-router-dom\";\nimport \"./VenueAdminLayout.scss\";\nimport { ApplicationContext } from \"ApplicationContext\"\nimport usesFeatures from 'usesFeatures'\n\nimport requests from \"request\";\n\nimport User from \"User\";\nimport Icon from \"Icon\"\nimport VenueSelector from \"VenueSelector\";\nimport LanguageSelector from \"LanguageSelector\"\n\nclass Navigation extends React.Component {\n static contextType = ApplicationContext\n constructor (props) {\n super(props)\n this.state = {}\n }\n\n renderNavItem = (text, link, icon) => {\n const path = window.location.pathname\n const isActive = path == link || (link != \"/\" && path.includes(link))\n return(\n
  • \n \n \n { text }\n \n
  • \n )\n }\n\n render() {\n if (this.state.logOut) return \n const { user, venue, t } = this.props\n const { canUse } = this.context.CurrentUserContext\n return(\n
    \n
    \n
      \n { this.renderNavItem(t(\"simple.stores\"), \"/stores\", \"store\") }\n { this.renderNavItem(t(\"simple.categories\"), \"/categories\", \"tags\") }\n { this.renderNavItem(t(\"simple.products\"), \"/products\", \"box-open\") }\n { this.renderNavItem(t(\"simple.reports\"), \"/reports\", \"chart-line\") }\n { this.renderNavItem(t(\"simple.terminals\"), \"/terminals\", \"cash-register\") }\n { initialState.account?.isCustomerDataEnabled &&\n this.renderNavItem(t(\"simple.customerData\"), \"/customers\", \"users\")\n }\n
    \n
    \n
    \n )\n }\n}\n\nexport default usesFeatures([\"translation\"], Navigation)\n","import React from \"react\";\nimport { Redirect, Link } from \"react-router-dom\";\nimport \"./VenueAdminLayout.scss\";\nimport { ApplicationContext } from 'ApplicationContext'\n\nimport requests from \"request\";\nimport usesFeatures from 'usesFeatures'\nimport User from \"User\";\nimport VenueSelector from \"VenueSelector\";\nimport FlashMessages from \"FlashMessages\"\nimport TopNav from \"./TopNav\";\nimport Navigation from \"./Navigation\";\nimport Loader from \"Loader\"\n\nclass VenueAdminLayout extends React.PureComponent {\n static contextType = ApplicationContext;\n\n constructor(props) {\n super(props)\n this.state = {}\n }\n\n componentDidMount() {\n const { user, venue } = this.context.CurrentUserContext\n if(!user) this.context.CurrentUserContext.updateWhoAmI()\n }\n\n render() {\n const { user, venue } = this.context.CurrentUserContext\n\n return(\n
    \n \n \n
    \n \n
    \n
    \n { user && this.props.children }\n { !user && ()}\n
    \n
    \n
    \n
    \n )\n }\n}\nexport default usesFeatures([\"data\"], VenueAdminLayout)\n","import React from \"react\";\nimport { Link } from \"react-router-dom\";\nimport Flash from \"flash\"\nimport request from \"request\"\nimport { startCase } from \"lodash\"\n\nimport Icon from \"Icon\"\nimport Button from \"Button\"\nimport Confirm from \"Confirm\"\nimport Modal from \"Modal\"\n\nexport default class Navigation extends React.Component {\n state = {\n readerStatus: null,\n checkingReader: false,\n isIdentifyModalOpen: false,\n identificationString: \"\",\n isIdentifying: false,\n }\n\n componentDidMount() {\n this.fetchReaderStatus()\n }\n\n renderNavItem = (text, link, icon) => {\n const isActive = window.location.pathname.includes(link)\n return(\n \n \n { text }\n \n )\n }\n\n identifyReader = () => {\n const { terminal } = this.props\n const identificationString = Math.random().toString(36).substring(2, 8)\n this.setState({identificationString, isIdentifying: true})\n const req = request.post(`/terminals/${terminal.id}/reader/identify`, { identificationString })\n req.then(() => {\n this.setState({isIdentifyModalOpen: true})\n })\n req.catch(({response}) => {\n switch(response.data.error) {\n case \"terminal_reader_offline\":\n Flash.broadcast(\"error\", \"The reader is currently offline\")\n break;\n case \"terminal_reader_timeout\":\n Flash.broadcast(\"error\", \"There was a timeout while identifying the reader. Please try again\")\n break;\n default:\n Flash.broadcast(\"error\", \"There was an unknown error communicating with the reader\")\n }\n this.setState({identificationString: null, isIdentifyModalOpen: false})\n })\n req.finally(() => {\n this.setState({isIdentifying: false})\n })\n }\n\n fetchReaderStatus = () => {\n this.setState({checkingReader: true})\n const req = request.get(`/terminals/${this.props.terminal.id}/reader/status`)\n req.then(({data}) => {\n const { readerStatus } = data\n this.setState({readerStatus, checkingReader: false})\n })\n }\n\n render() {\n const { terminal } = this.props\n const { readerStatus, checkingReader } = this.state\n\n return(\n
    \n \n

    Identifying Card Reader

    \n

    Card Reader Displaying

    \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    1Reader for Terminal #{terminal.number}$0.00
    1IDENTIFY {this.state.identificationString}$0.00
    Subtotal$0.01
    \n {\n const req = request.post(`/terminals/${terminal.id}/reader/clear`)\n this.setState({isIdentifyModalOpen: false, identificationString: \"\"})\n }}\n />\n \n
    \n
    \n \n \"\"\n \n
    \n

    \n Terminal #{terminal.number}\n
    \n { terminal.store.name }\n

    \n
    \n
    \n
    \n {\n // this.renderNavItem(\"Register\", \"/\", \"store\")\n }\n
    \n
    \n
    \n
    \n
    \n { readerStatus == \"online\" &&\n \n }\n { readerStatus == \"online\" &&\n request.post(`/terminals/${terminal.id}/reader/clear`)}\n text=\"Clear Reader\"\n />\n }\n { readerStatus &&\n <>\n \n \n \n }\n \n
    \n
    \n
    \n
    \n
    \n )\n }\n}\n\n\n","import \"./TerminalLayout/TerminalLayout.scss\";\n\nimport React from \"react\";\nimport { Link, Redirect } from \"react-router-dom\";\nimport request from \"request\"\nimport usesFeatures from \"usesFeatures\"\nimport Loader from \"Loader\"\n\nimport Terminal from \"lib/auth/Terminal\"\nimport Navigation from \"./TerminalLayout/Navigation\"\nimport FlashMessages from \"FlashMessages\"\n\nclass TerminalLayout extends React.PureComponent {\n constructor (props) {\n super(props)\n const whoAmI = Terminal.getWhoAmI() || {}\n\n this.state = {\n terminal: whoAmI.Terminal,\n }\n }\n\n componentDidMount() {\n if (!this.state.terminal) this.props.fetchData(\"auth/terminal/whoami\", this.cacheWhoAmI)\n }\n\n cacheWhoAmI = (data) => {\n Terminal.setWhoAmI(data)\n this.setState(data)\n }\n\n handleLogout = () => {\n Terminal.clearAuthToken()\n Terminal.clearWhoAmI()\n this.setState({logOut: true})\n }\n\n render() {\n if (this.state.logOut) return \n if (!this.props.dataFetched || !this.state.terminal) return false\n\n const { terminal } = this.state\n return(\n
    \n \n \n
    \n
    \n
    \n { terminal ? this.props.children : }\n
    \n
    \n
    \n
    \n )\n }\n}\n\nexport default usesFeatures(['data'], TerminalLayout)\n","import React from 'react'\n\nimport NoLayout from \"NoLayout\"\nimport AuthLayout from \"AuthLayout\"\nimport StoreLayout from \"StoreLayout\"\nimport InternalLayout from \"InternalLayout\"\nimport CustomerLayout from \"CustomerLayout\"\nimport VenueAdminLayout from \"VenueAdminLayout\"\nimport TerminalLayout from \"TerminalLayout\"\n\nconst LAYOUTS = {\n None: NoLayout,\n Auth: AuthLayout,\n Store: StoreLayout,\n Internal: InternalLayout,\n Customer: CustomerLayout,\n VenueAdmin: VenueAdminLayout,\n Terminal: TerminalLayout,\n}\n\nexport default function wrapComponent(ComponentToWrap, layout, variant) {\n return class WrappedComponent extends React.PureComponent {\n render() {\n return (\n \n \n \n )\n }\n }\n}\n\nexport class ApplicationWrapper extends React.PureComponent {\n layoutLookup = (identifier) => {\n if (identifier) {\n return LAYOUTS[identifier]\n } else {\n return LAYOUTS.None\n }\n }\n\n render() {\n const { children } = this.props;\n const Layout = this.layoutLookup(this.props.layout)\n\n return (\n \n { children }\n \n )\n }\n}\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nimport request from \"request\"\nimport User from \"User\"\n\nexport const contextName = 'CurrentUserContext';\nexport const CurrentUserContext = React.createContext();\nexport default class CurrentUserProvider extends Component {\n state = {\n currentUser: null,\n currentVenue: null,\n }\n\n componentDidMount() {\n if(!this.state.currentUser) this.updateWhoAmI()\n }\n\n updateWhoAmI = () => {\n let req = request.get(\"whoami\")\n req.then(({data}) => {\n this.setState({currentUser: data.user, currentVenue: data.venue})\n })\n }\n\n fetched = ({data}) => {\n if (data.userUpdated != this.state.currentUser.updatedAt) this.updateWhoAmI()\n }\n\n canUse = (permission) => {\n return this.state.currentUser.permissions.includes(permission)\n }\n\n render() {\n const { currentUser, currentVenue } = this.state\n\n return (\n \n {this.props.children}\n \n )\n }\n}\n","import React, { useContext } from 'react';\n\nimport * as CurrentUserContext from \"CurrentUserContext\"\nimport * as FeatureFlagContext from \"FeatureFlagContext\"\n\nexport const ApplicationContext = React.createContext();\n\nconst CONTEXTS = [\n CurrentUserContext,\n FeatureFlagContext,\n];\n\nexport default function ApplicationProviderWrapper(props) {\n let providerTree = (\n \n {props.children}\n \n );\n\n props.contexts.forEach(context => {\n providerTree = (\n \n {providerTree}\n \n );\n })\n\n return providerTree;\n}\n\nApplicationProviderWrapper.defaultProps = {\n contexts: CONTEXTS,\n values: {},\n}\n\nfunction ApplicationProvider(props) {\n let values = {};\n props.contexts.forEach(mainContext => {\n const { contextName } = mainContext;\n const contextValues = useContext(mainContext[contextName]);\n\n values = {\n ...values,\n [contextName]: {\n ...contextValues,\n }\n };\n });\n\n return (\n \n {props.children}\n \n );\n}\n","const KEYS = {\n authToken: \"terminalAuthToken\",\n lastPage: \"terminalLastPage\",\n whoAmI: \"terminalWhoAmI\",\n currentOrderId: \"terminalCurrentOrderId\",\n currentLayout: \"terminalCurrentLayout\",\n}\n\nconst Terminal = {\n isAuthenticated: () => Terminal.getAuthToken() !== null,\n\n get: (key) => {\n let value = localStorage.getItem(KEYS[key])\n if(value === undefined) return null\n return value\n },\n\n setAuthToken: (token) => localStorage.setItem(KEYS.authToken, token),\n getAuthToken: () => Terminal.get(\"authToken\"),\n clearAuthToken: () => localStorage.removeItem(KEYS.authToken),\n isAuthenticated: () => Terminal.getAuthToken() !== null,\n\n setCurrentOrderId: (data) => localStorage.setItem(KEYS.currentOrderId, data),\n getCurrentOrderId: () => localStorage.getItem(KEYS.currentOrderId),\n clearCurrentOrderId: () => localStorage.removeItem(KEYS.currentOrderId),\n\n setWhoAmI: (data) => localStorage.setItem(KEYS.whoAmI, JSON.stringify(data)),\n getWhoAmI: () => JSON.parse(localStorage.getItem(KEYS.whoAmI)),\n clearWhoAmI: () => localStorage.removeItem(KEYS.whoAmI),\n\n getLayout: () => localStorage.getItem(KEYS.currentLayout),\n setLayout: (layout) => localStorage.setItem(KEYS.currentLayout, layout),\n}\n\nexport default Terminal\n\n","import \"./Card.scss\";\nimport React from \"react\";\n\nexport default class Card extends React.PureComponent {\n render() {\n return(\n
    \n { this.props.image &&\n
    \n
    \n \n
    \n
    \n }\n { this.props.title &&\n
    \n
    \n

    { this.props.title }

    \n
    \n
    \n { this.props.actions }\n
    \n
    \n }\n { this.props.children }\n
    \n )\n }\n}\n","import \"./Select.scss\";\n\nimport React from \"react\";\nimport { Link } from \"react-router-dom\";\n\nexport default class Select extends React.Component {\n handleOnChange = ({target}) => this.props.onChange(target.value)\n\n renderOption = ([value, label], i) => {\n return(\n \n )\n }\n\n render() {\n const { prompt, label } = this.props\n\n return(\n
    \n { label && }\n
    \n \n { prompt && ( )}\n { Object.entries(this.props.options || {}).map(this.renderOption) }\n \n
    \n
    \n )\n }\n}\n","import \"./Form.scss\";\n\nimport React from \"react\";\nimport { Link } from \"react-router-dom\";\nimport request from \"request\"\nimport usesFeatures from \"usesFeatures\"\n\nexport default class Form extends React.Component {\n handleSubmit = (e) => {\n e.preventDefault()\n this.props.onSubmit()\n }\n\n render() {\n return(\n
    \n
    \n { this.props.title &&\n
    \n
    \n

    { this.props.title }

    \n
    \n
    \n }\n\n
    \n
    \n { this.props.children }\n
    \n
    \n
    \n
    \n )\n }\n}\n\nForm.defaultProps = {\n wrapper: true\n}\n","import React from \"react\";\nimport \"./Loader.scss\";\n\nimport { BounceLoader } from \"react-spinners\"\n\nexport default class Loader extends React.PureComponent {\n render() {\n return(\n
    \n \n
    \n )\n }\n}\n","import axios from \"axios\"\nimport User from \"User\"\nimport Store from \"Store\"\nimport Terminal from \"lib/auth/Terminal\"\nimport Flash from \"flash\"\n\nconst authScope = {\n app: User,\n store: Store,\n internal: User,\n terminal: Terminal,\n t: Terminal,\n}\n\nlet server = axios.create(\n {\n baseURL: '/api',\n responseType: 'json',\n headers: {\n \"X-CSRF-Token\": document.getElementsByName('csrf-token')[0]['content'],\n \"X-CURRENT-PAGE\": window.location.href,\n }\n }\n)\n\n// Add in auth token, always\nserver.interceptors.request.use(function (config) {\n const domain = window.location.hostname.split(\".\")[0]\n const auth = authScope[domain]\n if (auth) {\n config.headers.common[\"Authorization\"] = auth.getAuthToken()\n }\n\n return config;\n}, function (error) {\n // Do something with request error\n logger.error(error);\n return Promise.reject(error);\n});\n\nserver.interceptors.request.use(function (config) {\n\n if (config.data && config.data.image) {\n config.headers[\"Content-Type\"] = \"multipart/form-data\"\n }\n\n return config;\n}, function (error) {\n // Do something with request error\n logger.error(error);\n return Promise.reject(error);\n});\n\n\nserver.interceptors.response.use(function (response) {\n // Any status code that lie within the range of 2xx cause this function to trigger\n // Do something with response data\n return response;\n }, function (error) {\n if (error.response && error.response.status === 401) {\n const domain = window.location.hostname.split(\".\")[0]\n const auth = authScope[domain]\n if (auth.setLastPage) auth.setLastPage(window.location.pathname)\n auth.clearAuthToken()\n window.location.assign(\"/login?reauth=true\")\n } else if (error.request && error.request.status == 422) {\n return Promise.reject(error);\n } else if (error.request && error.request.status != 500 && error.request.statuts != 422 && error.request.status != 404) {\n Flash.broadcast(\"error\", \"There was a problem with your internet connection. Please verify connectivity\")\n return Promise.reject(error);\n } else {\n return Promise.reject(error);\n }\n });\n\nlet request = {\n get: server.get,\n post: server.post,\n put: server.put,\n patch: server.patch,\n delete: server.delete\n}\n\nexport default request\n","const Flash = {\n broadcast: (type, message) => {\n document.body.dispatchEvent(new CustomEvent(\"flashBroadcast\", {\n detail: { type: type, body: message }\n }));\n }\n}\n\nexport default Flash\n","const KEYS = {\n authToken: \"storeAuthToken\",\n lastPage: \"storeLastPage\",\n whoAmI: \"storeWhoAmI\",\n}\n\nconst Store = {\n isAuthenticated: () => Store.getAuthToken() !== null,\n\n get: (key) => {\n let value = localStorage.getItem(KEYS[key])\n if(value === undefined) return null\n return value\n },\n\n setAuthToken: (token) => localStorage.setItem(KEYS.authToken, token),\n getAuthToken: () => Store.get(\"authToken\"),\n clearAuthToken: () => localStorage.removeItem(KEYS.authToken),\n isAuthenticated: () => Store.getAuthToken() !== null,\n\n setWhoAmI: (data) => localStorage.setItem(KEYS.whoAmI, JSON.stringify(data)),\n getWhoAmI: () => JSON.parse(localStorage.getItem(KEYS.whoAmI)),\n clearWhoAmI: () => localStorage.removeItem(KEYS.whoAmI),\n}\n\nexport default Store\n\n","import \"./Modal.scss\";\n\nimport React from \"react\";\nimport { Link } from \"react-router-dom\";\nimport request from \"request\"\nimport usesFeatures from \"usesFeatures\"\n\nexport default class Modal extends React.PureComponent {\n render() {\n const isOpen = this.props.isOpen || this.props.open\n return(\n
    \n
    \n
    \n
    \n
    \n { this.props.title &&\n
    \n
    { this.props.title }
    \n
    \n }\n
    \n { this.props.children }\n
    \n { this.props.actions &&\n
    \n { this.props.actions }\n
    \n }\n
    \n
    \n { this.props.toggleModal &&\n \n }\n
    \n
    \n )\n }\n}\n","import \"./SeatSelector.scss\";\n\nimport React from \"react\";\nimport usesFeatures from \"usesFeatures\"\nimport { sortedUniq, zipObject, capitalize } from \"lodash\"\n\nimport Select from \"Select\"\n\nexport default class SeatSelector extends React.PureComponent {\n state = {\n area: \"\",\n seatType: \"\",\n selectedArea: \"\",\n selectedSection: \"\",\n selectedRow: \"\",\n selectedSeat: \"\",\n sectionOnly: false,\n }\n\n componentDidMount() {\n const selected = {}\n let areas = this.areas()\n if (areas.length == 1) {\n selected.selectedArea = areas[0]\n }\n if (this.props.sections.length == 1) {\n const section = this.props.sections[0]\n selected.seatType = section[\"type\"]\n selected.selectedSection = section.id\n }\n if (Object.keys(selected).length > 0) {\n this.setState({...selected})\n }\n }\n\n canSubmit = () => {\n const { selectedArea, selectedSection, selectedRow, selectedSeat } = this.state\n if(this.depth() == 3 && selectedSeat) return true\n if(this.depth() == 2 && selectedRow) return true\n if(this.depth() == 1 && selectedSection) return true\n if(this.depth() == 0 && selectedArea) return true\n return false\n }\n depth = () => [ \"area\", \"section\", \"row\", \"seat\" ].indexOf(this.props.depth)\n\n areas = () => sortedUniq(this.props.sections.map((s) => s.area).sort())\n\n updateSelection = (field, value) => {\n let state = Object.assign({}, this.state)\n\n state[field] = value\n if (field == \"selectedArea\") {\n state = Object.assign(state, {selectedSection: null, selectedRow: null, selectedSeat: null})\n }\n if (field == \"selectedSection\") {\n state[\"seatType\"] = this.findSection(value).type\n state[\"sectionOnly\"] = this.skipSeats(value)\n state = Object.assign(state, {selectedRow: null, selectedSeat: null})\n }\n if (field == \"selectedRow\") {\n state = Object.assign(state, {selectedSeat: null})\n }\n this.setState({...state}, this.change)\n }\n\n sectionsFor = (section) => {\n const sections = this.props.sections.filter((s) => s.area == this.state.selectedArea)\n const opts = {}\n sections.map((s) => {\n if (!(this.props.filter || []).find((x) => x.id == s.id)) {\n opts[s.id] = s.name\n }\n })\n return opts\n }\n\n findSection = (sectionId) => this.props.sections.find((x) => x.id === sectionId)\n\n rowsFor = (section) => {\n const rows = this.findSection(section).rows\n return zipObject(rows, rows)\n }\n\n seatsFor = (section) => {\n const seats = this.findSection(section).seats\n return zipObject(seats, seats)\n }\n\n skipRows = (sectionId) => {\n if (!sectionId) return false\n const section = this.findSection(sectionId)\n return !section.firstRow && !section.lastRow\n }\n\n skipSeats = (sectionId) => {\n if (!sectionId) return false\n const section = this.findSection(sectionId)\n return !section.firstSeat && !section.lastSeat && this.skipRows(sectionId)\n }\n\n change = () => {\n if (this.props.onChange) {\n const { selectedArea, selectedSection, selectedRow, selectedSeat, seatType, sectionOnly} = this.state\n this.props.onChange({selectedArea, selectedSection, selectedRow, selectedSeat, seatType, sectionOnly})\n }\n }\n\n submit = () => {\n const { selectedArea, selectedSection, selectedRow, selectedSeat } = this.state\n this.props.onSubmit({selectedArea, selectedSection, selectedRow, selectedSeat})\n this.clear(this.depth())\n }\n\n clear = (level) => {\n switch (level) {\n case 0: this.setState({selectedArea: \"\"})\n case 1: this.setState({selectedSection: \"\"})\n case 2: this.setState({selectedRow: \"\"})\n case 3: this.setState({selectedSeat: \"\"})\n }\n }\n\n render() {\n const { selectedArea, selectedSection, selectedRow, selectedSeat } = this.state\n return(\n
    \n
    \n \n
    \n { this.depth() > 0 &&\n
    \n { selectedArea &&\n \n }\n
    \n }\n { this.depth() > 1 && !this.skipRows(selectedSection) &&\n
    \n { selectedSection && !this.skipRows(selectedSection) &&\n \n }\n
    \n }\n { this.depth() > 2 && !this.skipSeats(selectedSection) &&\n
    \n { (selectedRow || this.skipRows(selectedSection)) &&\n \n }\n
    \n }\n { selectedSection && this.skipRows(selectedSection) && this.depth() > 1 &&\n
    \n }\n { this.props.action &&\n
    \n { this.canSubmit() &&\n \n { this.props.action }\n \n }\n
    \n }\n
    \n )\n }\n}\n","import { createElement, useMemo } from 'react';\nimport { I18nContext } from './context';\nexport function I18nextProvider(_ref) {\n var i18n = _ref.i18n,\n defaultNS = _ref.defaultNS,\n children = _ref.children;\n var value = useMemo(function () {\n return {\n i18n: i18n,\n defaultNS: defaultNS\n };\n }, [i18n, defaultNS]);\n return /*#__PURE__*/createElement(I18nContext.Provider, {\n value: value\n }, children);\n}","import \"./Confirm.scss\";\n\nimport React from \"react\";\nimport Icon from \"Icon\"\n\nexport default class Confirm extends React.PureComponent {\n constructor (props) {\n super(props)\n this.state = {\n open: false\n }\n }\n\n toggleModal = () => {\n if (!this.props.loading) {\n this.setState({open: !this.state.open})\n }\n }\n\n handleConfirm = () => {\n this.setState({open: false})\n this.props.action()\n }\n\n render() {\n return(\n
    \n
    \n
    \n
    \n
    \n
    \n

    Are you sure?

    \n \n \n \n
    \n
    \n { this.props.message }\n
    \n
    \n Cancel\n Confirm\n
    \n
    \n
    \n \n
    \n
    \n { this.props.children }\n
    \n
    \n )\n }\n}\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nexport const contextName = 'FeatureFlagContext';\nexport const FeatureFlagContext = React.createContext();\nexport default class FeatureFlagProvider extends Component {\n state = {\n flags: window.featureFlags,\n }\n\n isEnabled = (feature) => {\n const { flags } = this.state;\n\n if (feature in flags) return flags[feature]\n console.warn(`Feature Flag not found ${feature}`)\n return feature in flags && flags[feature];\n }\n\n render() {\n return (\n \n {this.props.children}\n \n )\n }\n}\n\n","import \"./Switch.scss\";\n\nimport React from \"react\";\n\nexport default class Switch extends React.PureComponent {\n handleOnChange = (e) => {\n e.preventDefault();\n if (this.props.disabled) return false\n this.props.onChange(!this.props.value)\n }\n\n render() {\n return(\n
    \n \n\n { this.props.label &&\n
    \n { this.props.label }\n
    \n }\n
    \n )\n }\n}\n\nSwitch.defaultProps = {\n disabled: false,\n classes: \"\",\n}\n","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : (global = global || self, factory(global.swipeable = {}, global.react));\n})(this, function (exports, React) {\n function _interopNamespace(e) {\n if (e && e.__esModule) return e;\n var n = Object.create(null);\n\n if (e) {\n Object.keys(e).forEach(function (k) {\n if (k !== 'default') {\n var d = Object.getOwnPropertyDescriptor(e, k);\n Object.defineProperty(n, k, d.get ? d : {\n enumerable: true,\n get: function get() {\n return e[k];\n }\n });\n }\n });\n }\n\n n['default'] = e;\n return n;\n }\n\n var React__namespace = /*#__PURE__*/_interopNamespace(React);\n\n function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n }\n\n var LEFT = \"Left\";\n var RIGHT = \"Right\";\n var UP = \"Up\";\n var DOWN = \"Down\";\n var defaultProps = {\n delta: 10,\n preventDefaultTouchmoveEvent: false,\n rotationAngle: 0,\n trackMouse: false,\n trackTouch: true\n };\n var initialState = {\n first: true,\n initial: [0, 0],\n start: 0,\n swiping: false,\n xy: [0, 0]\n };\n var mouseMove = \"mousemove\";\n var mouseUp = \"mouseup\";\n var touchEnd = \"touchend\";\n var touchMove = \"touchmove\";\n var touchStart = \"touchstart\";\n\n function getDirection(absX, absY, deltaX, deltaY) {\n if (absX > absY) {\n if (deltaX > 0) {\n return RIGHT;\n }\n\n return LEFT;\n } else if (deltaY > 0) {\n return DOWN;\n }\n\n return UP;\n }\n\n function rotateXYByAngle(pos, angle) {\n if (angle === 0) return pos;\n var angleInRadians = Math.PI / 180 * angle;\n var x = pos[0] * Math.cos(angleInRadians) + pos[1] * Math.sin(angleInRadians);\n var y = pos[1] * Math.cos(angleInRadians) - pos[0] * Math.sin(angleInRadians);\n return [x, y];\n }\n\n function getHandlers(set, handlerProps) {\n var onStart = function onStart(event) {\n if (event && \"touches\" in event && event.touches.length > 1) return;\n set(function (state, props) {\n if (props.trackMouse) {\n document.addEventListener(mouseMove, onMove);\n document.addEventListener(mouseUp, onUp);\n }\n\n var _ref = \"touches\" in event ? event.touches[0] : event,\n clientX = _ref.clientX,\n clientY = _ref.clientY;\n\n var xy = rotateXYByAngle([clientX, clientY], props.rotationAngle);\n return _extends({}, state, initialState, {\n initial: [].concat(xy),\n xy: xy,\n start: event.timeStamp || 0\n });\n });\n };\n\n var onMove = function onMove(event) {\n set(function (state, props) {\n if (\"touches\" in event && event.touches.length > 1) {\n return state;\n }\n\n var _ref2 = \"touches\" in event ? event.touches[0] : event,\n clientX = _ref2.clientX,\n clientY = _ref2.clientY;\n\n var _rotateXYByAngle = rotateXYByAngle([clientX, clientY], props.rotationAngle),\n x = _rotateXYByAngle[0],\n y = _rotateXYByAngle[1];\n\n var deltaX = x - state.xy[0];\n var deltaY = y - state.xy[1];\n var absX = Math.abs(deltaX);\n var absY = Math.abs(deltaY);\n var time = (event.timeStamp || 0) - state.start;\n var velocity = Math.sqrt(absX * absX + absY * absY) / (time || 1);\n var vxvy = [deltaX / (time || 1), deltaY / (time || 1)];\n var dir = getDirection(absX, absY, deltaX, deltaY);\n var delta = typeof props.delta === \"number\" ? props.delta : props.delta[dir.toLowerCase()] || defaultProps.delta;\n if (absX < delta && absY < delta && !state.swiping) return state;\n var eventData = {\n absX: absX,\n absY: absY,\n deltaX: deltaX,\n deltaY: deltaY,\n dir: dir,\n event: event,\n first: state.first,\n initial: state.initial,\n velocity: velocity,\n vxvy: vxvy\n };\n eventData.first && props.onSwipeStart && props.onSwipeStart(eventData);\n props.onSwiping && props.onSwiping(eventData);\n var cancelablePageSwipe = false;\n\n if (props.onSwiping || props.onSwiped || \"onSwiped\" + dir in props) {\n cancelablePageSwipe = true;\n }\n\n if (cancelablePageSwipe && props.preventDefaultTouchmoveEvent && props.trackTouch && event.cancelable) event.preventDefault();\n return _extends({}, state, {\n first: false,\n eventData: eventData,\n swiping: true\n });\n });\n };\n\n var onEnd = function onEnd(event) {\n set(function (state, props) {\n var eventData;\n\n if (state.swiping && state.eventData) {\n eventData = _extends({}, state.eventData, {\n event: event\n });\n props.onSwiped && props.onSwiped(eventData);\n var onSwipedDir = props[\"onSwiped\" + eventData.dir];\n onSwipedDir && onSwipedDir(eventData);\n } else {\n props.onTap && props.onTap({\n event: event\n });\n }\n\n return _extends({}, state, initialState, {\n eventData: eventData\n });\n });\n };\n\n var cleanUpMouse = function cleanUpMouse() {\n document.removeEventListener(mouseMove, onMove);\n document.removeEventListener(mouseUp, onUp);\n };\n\n var onUp = function onUp(e) {\n cleanUpMouse();\n onEnd(e);\n };\n\n var attachTouch = function attachTouch(el, passive) {\n var cleanup = function cleanup() {};\n\n if (el && el.addEventListener) {\n var tls = [[touchStart, onStart], [touchMove, onMove], [touchEnd, onEnd]];\n tls.forEach(function (_ref3) {\n var e = _ref3[0],\n h = _ref3[1];\n return el.addEventListener(e, h, {\n passive: passive\n });\n });\n\n cleanup = function cleanup() {\n return tls.forEach(function (_ref4) {\n var e = _ref4[0],\n h = _ref4[1];\n return el.removeEventListener(e, h);\n });\n };\n }\n\n return cleanup;\n };\n\n var onRef = function onRef(el) {\n if (el === null) return;\n set(function (state, props) {\n if (state.el === el) return state;\n var addState = {};\n\n if (state.el && state.el !== el && state.cleanUpTouch) {\n state.cleanUpTouch();\n addState.cleanUpTouch = undefined;\n }\n\n if (props.trackTouch && el) {\n addState.cleanUpTouch = attachTouch(el, !props.preventDefaultTouchmoveEvent);\n }\n\n return _extends({}, state, {\n el: el\n }, addState);\n });\n };\n\n var output = {\n ref: onRef\n };\n\n if (handlerProps.trackMouse) {\n output.onMouseDown = onStart;\n }\n\n return [output, attachTouch];\n }\n\n function updateTransientState(state, props, attachTouch) {\n var addState = {};\n\n if (!props.trackTouch && state.cleanUpTouch) {\n state.cleanUpTouch();\n addState.cleanUpTouch = undefined;\n } else if (props.trackTouch && !state.cleanUpTouch) {\n if (state.el) {\n addState.cleanUpTouch = attachTouch(state.el, !props.preventDefaultTouchmoveEvent);\n }\n }\n\n return _extends({}, state, addState);\n }\n\n function useSwipeable(options) {\n var trackMouse = options.trackMouse;\n var transientState = React__namespace.useRef(_extends({}, initialState));\n var transientProps = React__namespace.useRef(_extends({}, defaultProps));\n transientProps.current = _extends({}, defaultProps, options);\n\n var _React$useMemo = React__namespace.useMemo(function () {\n return getHandlers(function (stateSetter) {\n return transientState.current = stateSetter(transientState.current, transientProps.current);\n }, {\n trackMouse: trackMouse\n });\n }, [trackMouse]),\n handlers = _React$useMemo[0],\n attachTouch = _React$useMemo[1];\n\n transientState.current = updateTransientState(transientState.current, transientProps.current, attachTouch);\n return handlers;\n }\n\n exports.DOWN = DOWN;\n exports.LEFT = LEFT;\n exports.RIGHT = RIGHT;\n exports.UP = UP;\n exports.useSwipeable = useSwipeable;\n});","import React from \"react\";\nimport \"./FourOhFour.scss\";\n\nimport { sample } from \"lodash\"\nimport { withRouter } from 'react-router-dom';\n\nconst IMAGES = [\n \"1.gif\",\n \"2.gif\",\n \"3.gif\",\n \"4.gif\",\n \"5.gif\",\n]\n\nclass FourOhFour extends React.Component {\n getRandomImage = () => {\n return(sample(IMAGES))\n }\n render() {\n console.log(this.props)\n return(\n
    \n
    \n

    Page Not Found - Error 404

    \n

    Sorry, we seem to be missing what you're looking for

    \n

    \n Try going back\n

    \n

    If this error persists, please let us know at support@gocatch.io

    \n
    \n
    \n )\n }\n}\nexport default withRouter(FourOhFour)\n","import i18n from 'i18next';\nimport { initReactI18next } from 'react-i18next';\n\nimport LanguageDetector from 'i18next-browser-languagedetector';\n\nimport en from \"locales/en.json\"\nimport fr from \"locales/fr.json\"\n\nconst translations = {\n en: { translation: en },\n fr: { translation: fr },\n}\n\ni18n\n // load translation using http -> see /public/locales (i.e. https://github.com/i18next/react-i18next/tree/master/example/react/public/locales)\n // learn more: https://github.com/i18next/i18next-http-backend\n // want your translations to be loaded from a professional CDN? => https://github.com/locize/react-tutorial#step-2---use-the-locize-cdn\n // detect user language\n // learn more: https://github.com/i18next/i18next-browser-languageDetector\n .use(LanguageDetector)\n // pass the i18n instance to react-i18next.\n .use(initReactI18next)\n // init i18next\n // for all options read: https://www.i18next.com/overview/configuration-options\n .init({\n resources: translations,\n fallbackLng: 'en',\n debug: true,\n\n interpolation: {\n escapeValue: false, // not needed for react as it escapes by default\n }\n });\n\n\nexport default i18n;\n","import \"./Image.scss\";\nimport React from \"react\";\n\nexport default class Image extends React.PureComponent {\n classes = () => {\n let list = [\n \"image\"\n ]\n if (this.props.loading) {\n list.push(\"is-loading\")\n }\n if (this.props.ratio) {\n list.push(\"has-ratio\")\n list.push(`is-${this.props.ratio}`)\n }\n return list.join(\" \")\n }\n render() {\n return(\n
    \n \n
    \n )\n }\n}\n","export default __webpack_public_path__ + \"9feeb08cfb94e58ba743607bf059ac8d.mp3\";","import React from \"react\";\nimport { Elements, CardElement, ElementsConsumer } from '@stripe/react-stripe-js';\nimport { loadStripe } from '@stripe/stripe-js';\n\n// Make sure to call `loadStripe` outside of a component’s render to avoid\n// recreating the `Stripe` object on every render.\nconst stripePromise = loadStripe(appConfig.spk);\n\nexport default function hasData (WrappedComponent) {\n return class extends React.PureComponent {\n render() {\n return(\n \n \n {({elements, stripe}) => (\n \n )}\n \n \n )\n }\n }\n}\n","import React from \"react\";\nimport ActionCable from 'actioncable';\n\nconst consumer = ActionCable.createConsumer(document.getElementsByName(\"action-cable-url\")[0].content)\n\nexport default function hasWebsockets (WrappedComponent) {\n return class extends React.Component {\n subscribe = (channel, data, onReceived) => {\n consumer.subscriptions.create({channel: channel, ...data }, {\n received(data) { onReceived(data) }\n })\n }\n\n render() {\n return (\n \n )\n }\n }\n}\n\n","import { compose } from \"redux\"\n\nimport hasData from \"./features/hasData\"\nimport hasInputs from \"./features/hasInputs\"\nimport hasSound from \"./features/hasSound\"\nimport hasPayments from \"./features/hasPayments\"\nimport hasPagination from \"./features/hasPagination\"\nimport hasWebsockets from \"./features/hasWebsockets\"\nimport { withRouter } from \"react-router\";\nimport { withTranslation } from 'react-i18next';\n\nconst FEATURES = {\n data: hasData,\n form: hasInputs,\n sound: hasSound,\n history: withRouter,\n payments: hasPayments,\n pagination: hasPagination,\n websockets: hasWebsockets,\n translation: (c) => withTranslation()(c),\n}\n\nexport default function usesFeatures (features, WrappedComponent) {\n const selected = features.map((f) => { return(FEATURES[f]) })\n return compose(...selected)(WrappedComponent)\n}\n","import React from \"react\";\nimport request from \"lib/request\";\nimport User from \"User\"\nimport { ApplicationContext } from \"ApplicationContext\"\nimport Loader from \"Loader\"\nimport FourOhFour from \"FourOhFour\"\n\nexport default function hasData (WrappedComponent) {\n return class extends React.Component {\n static contextType = ApplicationContext\n constructor(props) {\n super(props)\n this.state = {\n hasDataFetch: false\n }\n }\n\n fetchData = (url, callback) => {\n if (url != \"whoami\") this.setState({hasDataFetch: true})\n let req = request.get(url)\n req.then(this.checkVersion).then(this.setData).then(callback)\n if (this.context) req.then(this.context.CurrentUserContext.fetched)\n req.catch(this.catchError)\n }\n\n catchError = ({ response }) => {\n if (response && response.status == 404) {\n this.setState({fourohfour: true})\n }\n }\n\n checkVersion = (data) => {\n if (appConfig.e == \"development\") return data\n\n let currentVersion = localStorage.getItem(\"catchApiVersion\")\n localStorage.setItem(\"catchApiVersion\", data.headers.api_version)\n if (currentVersion && currentVersion != data.headers.api_version) {\n window.location.reload(true)\n }\n return(data)\n }\n\n setData = ({data}) => {\n this.setState({dataFetched: true, ...data})\n return(data)\n }\n\n updateWith = (data) => {\n this.setState({...data})\n }\n\n render() {\n const { dataFetched } = this.state\n\n if (this.state.fourohfour) {\n return(\n
    \n \n
    \n )\n }\n\n return (\n <>\n { !this.state.dataFetched && this.state.hasDataFetch && }\n \n \n )\n }\n }\n}\n","import React from \"react\";\nimport request from \"lib/request\";\n\nexport default function hasData (WrappedComponent) {\n return class extends React.Component {\n constructor(props) {\n super(props)\n this.state = {\n formData: {}\n }\n }\n\n updateField = (field, value) => {\n this.setState(prevState => {\n let formData = Object.assign({}, prevState.formData);\n formData[field] = value;\n return { formData };\n })\n }\n\n clearForm = () => this.setState({formData: {}})\n\n seedFormData = ({formData}) => {\n let seedData = Object.assign({}, formData)\n this.setState({formData: seedData})\n }\n\n render() {\n return (\n \n )\n }\n }\n}\n","import React from \"react\";\n\nimport useSound from 'use-sound';\nimport soundFile from 'assets/notify.mp3';\n\nexport default function hasSound(Component) {\n return function WrappedComponent(props) {\n const [ playSound ] = useSound(soundFile)\n return ;\n }\n}\n\n","import React from \"react\";\nimport request from \"lib/request\";\n\nexport default function hasPagination (WrappedComponent) {\n return class extends React.Component {\n constructor(props) {\n super(props)\n this.state = {\n pageData: props.pageData,\n pagy: props.pagy,\n page: 1,\n }\n }\n\n setPageData = ({pagy, pageData}) => this.setState({pagy, pageData})\n\n getPage = (url, page) => {\n let joinChar = url.indexOf(\"?\") > 0 ? \"&\" : \"?\"\n const pageUrl = [ url, `page=${page}` ].join(joinChar)\n let req = request.get(pageUrl)\n req.then(({data}) => this.setState({pagy: data.pagy, pageData: data.pageData}))\n }\n\n render() {\n const { dataFetched } = this.state\n const pagy = this.state.pagy || this.props.pagy\n const pageData = this.state.pageData || this.props.pageData\n\n return (\n \n )\n }\n }\n}\n","import React, { useContext } from 'react';\n\nimport * as FeatureFlagContext from \"FeatureFlagContext\"\n\nexport const CustomerContext = React.createContext();\n\nconst CONTEXTS = [\n FeatureFlagContext,\n];\n\nexport default function CustomerProviderWrapper(props) {\n let providerTree = (\n \n {props.children}\n \n );\n\n props.contexts.forEach(context => {\n providerTree = (\n \n {providerTree}\n \n );\n })\n\n return providerTree;\n}\n\nCustomerProviderWrapper.defaultProps = {\n contexts: CONTEXTS,\n values: {},\n}\n\nfunction CustomerProvider(props) {\n let values = {};\n props.contexts.forEach(mainContext => {\n const { contextName } = mainContext;\n const contextValues = useContext(mainContext[contextName]);\n\n values = {\n ...values,\n [contextName]: {\n ...contextValues,\n }\n };\n });\n\n return (\n \n {props.children}\n \n );\n}\n\n","const KEYS = {\n cartId: \"catchCustomerCartId\",\n}\n\nconst Customer = {\n setCartId: (data) => localStorage.setItem(KEYS.cartId, data),\n getCartId: () => localStorage.getItem(KEYS.cartId),\n clearCartId: () => localStorage.removeItem(KEYS.cartId),\n}\n\nexport default Customer\n","import \"./RadioButtonGroup.scss\";\n\nimport React from \"react\";\n\nexport default class RadioButtonGroup extends React.PureComponent {\n state = {}\n\n classesFor = (button) => {\n const classes = [ \"button\", \"h-button\" ]\n\n if (button == this.props.value.toFixed()) {\n classes.push(\"is-primary\")\n }\n\n return classes.join(\" \")\n }\n\n handleClick = (value) => {\n this.props.onChange(value)\n }\n\n render() {\n return(\n
    \n { this.props.label &&\n

    {this.props.label}

    \n }\n
    \n { Object.entries(this.props.options).map(([value, display], i) => {\n return(\n

    \n \n { display }\n \n

    \n )\n })}\n
    \n
    \n )\n }\n}\n","import \"./CartView.scss\";\n\nimport React from \"react\";\nimport { Link } from \"react-router-dom\";\nimport request from \"request\"\nimport usesFeatures from \"usesFeatures\"\nimport Customer from \"Customer\"\nimport Flash from \"flash\"\n\nimport Icon from \"Icon\"\nimport Image from \"Image\"\nimport Input from \"Input\"\nimport Header from \"Header\"\nimport Button from \"Button\"\nimport RadioButtonGroup from \"RadioButtonGroup\"\n\nclass CartView extends React.Component {\n constructor (props) {\n super(props)\n this.state = {\n discountCode: \"\"\n }\n }\n\n componentDidMount() {\n const cartId = Customer.getCartId()\n this.props.fetchData(`customer/cart/${cartId}`)\n heap.track(\"Cart/View\", { cartId: cartId })\n }\n\n removeProduct = (lineItemId) => {\n const cartId = Customer.getCartId()\n heap.track(\"Cart/Remove \", { cartId: cartId })\n const params = {\n cartId: cartId,\n lineItemId: lineItemId,\n }\n\n let req = request.post(\"customer/cart/remove\", params)\n req.then(({data}) => {\n if (data.success) {\n this.props.updateWith(data.cart)\n this.props.updateCart(data.cart)\n }\n })\n }\n\n updateTip = (tipAmount) => {\n heap.track(\"Cart/Tip\", { amount: tipAmount })\n const cartId = Customer.getCartId()\n let req = request.post(\"customer/cart/tip\", { tipAmount, cartId })\n req.then(({data}) => {\n if (data.success) this.props.updateWith(data.cart)\n })\n }\n\n removeDiscount = () => {\n this.setState({discountLoading: true})\n const cartId = Customer.getCartId()\n\n let req = request.delete(`carts/${cartId}/discounts`, {})\n\n req.catch((e) => {\n this.setState({discountErrors: e.response.data.errors})\n })\n req.then(({data}) => {\n this.props.updateWith(data.cart)\n Flash.broadcast(\"success\", \"Discount Removed\")\n })\n req.finally(() => {\n this.setState({discountLoading: false})\n })\n }\n submitDiscount = () => {\n this.setState({discountLoading: true})\n const cartId = Customer.getCartId()\n let req = request.post(`carts/${cartId}/discounts`, {\n code: this.state.discountCode\n })\n req.catch((e) => {\n this.setState({discountErrors: e.response.data.errors})\n })\n req.then(({data}) => {\n this.props.updateWith(data.cart)\n this.setState({discountCode: \"\"})\n Flash.broadcast(\"success\", `Discount ${data.cart.discount.name} applied!`)\n })\n req.finally(() => {\n this.setState({discountLoading: false})\n })\n }\n\n renderProduct = (product, i) => {\n return(\n
    \n
    \n { product.quantity} \n \n
    \n
    \n

    { product.name }

    \n

    { product.modifiers.map((m) => m.name).join(\", \") }

    \n { !this.props.isAllInclusive &&

    ${ product.price }

    }\n
    \n
    \n
    \n
    \n \n
    \n
    \n )\n }\n\n render() {\n if (!this.props.dataFetched) return false\n\n return(\n
    \n
    \n \n\n { this.props.products.map(this.renderProduct) }\n { this.props.products.length == 0 &&\n

    Nothing here

    \n }\n\n
    \n Add more items\n
    \n\n { this.props.isShowDiscount &&\n
    \n { this.props.discount &&\n \n }\n { !this.props.discount &&\n <>\n
    \n this.setState({discountCode: v})}\n value={this.state.discountCode}\n className=\"is-flex-grow\"\n />\n \n
    \n { this.state.discountErrors &&\n

    { this.state.discountErrors.join(\", \") }

    \n }\n

    Have a discount code? Apply it here

    \n \n }\n
    \n }\n { !this.props.isAllInclusive && this.props.store.open &&\n
    \n \n
    \n }\n { !this.props.isAllInclusive &&\n
    \n

    \n Items Subtotal\n ${ this.props.subtotal }\n

    \n

    \n Sales Tax\n ${ this.props.taxes }\n

    \n { this.props.customerFee != \"$0.00\" &&\n

    \n { this.props.account.customerFeeDescriptor }\n { this.props.customerFee }\n

    \n }\n { this.props.discountAmount != \"$0.00\" &&\n

    \n {this.props.discount.name}\n { this.props.discountAmount }\n

    \n }\n { this.props.tip > 0 &&\n

    \n Tip\n ${ this.props.tip.toFixed(2) }\n

    \n }\n

    \n Total\n ${ this.props.chargeTotal }\n

    \n { this.props.venue.cartDisclaimer &&\n

    { this.props.venue.cartDisclaimer }

    \n }\n
    \n }\n
    \n { this.props.itemCount > 0 && this.props.store.open &&\n
    \n \n Continue\n { !this.props.isAllInclusive &&\n ${ this.props.chargeTotal }\n }\n \n
    \n }\n
    \n )\n }\n}\n\nexport default usesFeatures(['data'], CartView)\n","import \"./Swipeable.scss\";\n\nimport React from \"react\";\n\nimport { useSwipeable } from \"react-swipeable\"\n\nexport const Swipeable = ({children, ...props}) => {\n const handlers = useSwipeable(props);\n return (
    {children}
    );\n}\n\nexport default Swipeable\n","import \"./DrawerModal.scss\";\n\nimport React from \"react\";\nimport Swipeable from \"Swipeable\"\nimport Icon from \"Icon\"\n\nexport default class DrawerModal extends React.PureComponent {\n constructor (props) {\n super(props)\n this.drawer = React.createRef()\n this.state = {\n expanded: false\n }\n }\n\n componentDidMount() {\n document.body.style.top = `-${window.scrollY}px`;\n document.body.style.position = 'fixed';\n document.body.style.overflow = 'hidden';\n document.body.style.width = '100%';\n\n setTimeout(() => {\n this.drawer.current.className += \" expanded\"\n }, 100)\n }\n\n componentWillUnmount() {\n const scrollY = document.body.style.top;\n document.body.style.overflow = '';\n document.body.style.position = '';\n document.body.style.top = '';\n document.body.style.width = '';\n window.scrollTo(0, parseInt(scrollY || '0') * -1);\n }\n\n handleSwipe = (swipe) => {\n if (swipe.velocity > 0.6) {\n heap.track(\"Product/SwipeClose\")\n this.close()\n }\n }\n\n close = () => {\n if (this.drawer.current) { this.drawer.current.className += \" closing\" }\n setTimeout(this.props.dismiss, 300)\n }\n\n render() {\n return(\n
    \n \n \n \n
    \n \n {\n React.Children.map(this.props.children, (child) => {\n return React.cloneElement(child, {\n closeModal: this.close,\n });\n })\n }\n \n
    \n
    \n )\n }\n}\n","import \"./QuantityInput.scss\";\n\nimport React from \"react\";\nimport Icon from \"Icon\"\n\nexport default class QuantityInput extends React.PureComponent {\n constructor (props) {\n super(props)\n this.state = {}\n }\n\n canSubtract = () => this.props.value > 1\n\n updateValue = (direction) => {\n let value = this.props.value + direction\n if (value < 1) return\n this.props.onChange(value)\n }\n\n render() {\n const { value } = this.props\n return(\n
    \n
    \n \n
    \n
    { value }
    \n
    \n \n
    \n
    \n )\n }\n}\n","import \"./ProductView.scss\";\n\nimport React from \"react\";\nimport { Link } from \"react-router-dom\";\nimport request from \"request\"\nimport usesFeatures from \"usesFeatures\"\nimport { xor, intersection, sum } from \"lodash\"\n\nimport Icon from \"Icon\"\nimport Image from \"Image\"\nimport QuantityInput from \"QuantityInput\"\n\nclass ProductView extends React.PureComponent {\n constructor (props) {\n super(props)\n this.state = {\n quantity: 1,\n selectedModifiers: []\n }\n }\n\n componentDidMount() {\n heap.track(\"Product/View\", { productId: this.props.productId })\n this.props.fetchData(`customer/products/${this.props.productId}`, this.lockScroll)\n }\n\n updateQuantity = (quantity) => {\n heap.track(\"Product/Quantity\", { quantity: quantity })\n this.setState({quantity})\n }\n\n handleAddToCart = () => {\n let params = {\n cartId: this.props.cartId,\n productId: this.props.productId,\n selectedModifiers: this.state.selectedModifiers,\n quantity: this.state.quantity,\n }\n\n heap.track(\"Cart/Add\", { productId: params.productId, quantity: params.quantity, cartId: params.cartId })\n\n let req = request.post(\"customer/cart/add\", params)\n req.then(({data}) => {\n this.props.updateCart(data)\n this.props.closeModal()\n })\n }\n\n toggleModifier = (id) => {\n this.setState(prevState => {\n let selectedModifiers = xor(prevState.selectedModifiers, [ id ])\n return { selectedModifiers };\n })\n }\n\n totalPrice = () => {\n const { product } = this.props\n let prices = this.state.selectedModifiers.map((e) => parseFloat(product.modifiers.find((x) => x.id == e).price))\n return (this.state.quantity * (parseFloat(product.price) + sum(prices))).toFixed(2)\n }\n\n renderModifier = (modifier, key) => {\n if (!modifier.active) return null\n\n return(\n
    \n
    \n -1 ? \"check-square\" : \"square\" } />\n
    \n
    \n

    { modifier.name }

    \n
    \n
    \n { modifier.price != 0 &&\n (parseFloat(modifier.price) >= 0 ? \"+\" : \"-\") + \"$\" + modifier.price\n }\n
    \n
    \n )\n }\n\n canAddProduct = () => {\n const { selectedModifiers } = this.state\n const { modifierGroups, modifiers } = this.props.product\n\n return modifierGroups.every((group) => {\n const groupSelections = intersection(selectedModifiers, group.modifierIds).length\n\n return (\n // Optional Groups: Is there no max, or are selections under it\n (!group.required && (!group.max || groupSelections <= group.max)) ||\n // Required groups: Is there a selection, and are the selections under the max\n (group.required && groupSelections > 0 && (!group.max || groupSelections <= group.max))\n )\n })\n }\n\n render() {\n if (!this.props.dataFetched) return false\n\n const { product } = this.props\n\n return(\n
    \n \n\n
    \n

    { product.name }

    \n

    { product.description }

    \n
    \n
    \n { product.modifierGroups.length > 0 ? (\n product.modifierGroups.map((mg, i) => {\n return(\n
    \n { mg.name &&\n
    \n

    \n { mg.name }\n { mg.max &&\n <>\n
    \n \n Select { mg.max > 1 && \"Up To \" }{ mg.max }\n \n \n }\n

    \n { mg.required &&\n
    \n \n \n Required\n \n
    \n }\n
    \n }\n { mg.modifiers.map((m, mi) => this.renderModifier(m, mi)) }\n
    \n )\n })\n ) : (\n product.modifiers.map((m, i) => this.renderModifier(m, i) )\n )}\n\n
    \n
    \n \n
    \n\n
    \n \n Add to Cart\n { !this.props.isAllInclusive && ${ this.totalPrice() }}\n \n
    \n
    \n )\n }\n}\n\nexport default usesFeatures(['data'], ProductView)\n","import React from \"react\";\nimport { Link } from \"react-router-dom\";\n\nimport Image from \"Image\"\n\nexport default class Menu extends React.PureComponent {\n productsFor = (category) => {\n return this.props.products.filter((p) => p.categoryId == category.simpleId && p.isActive)\n }\n\n productLink = (productId) => {\n return(`${this.props.currentPath}/products/${productId}`)\n }\n\n renderCategory = (category, i) => {\n let products = this.productsFor(category)\n if (products.length == 0) return null\n return(\n
    \n

    { category.id ? category.name : \"Other\" }

    \n { products.map(this.renderProduct) }\n
    \n )\n }\n\n renderProduct = (product, i) => {\n if (!product.isActive) return null\n return(\n
    \n
    \n
    \n

    { product.name }

    \n { product.description &&

    { product.description }

    }\n { !this.props.isAllInclusive &&

    ${ product.price }

    }\n
    \n \n
    \n
    \n )\n }\n\n render() {\n const { categories } = this.props\n\n return(\n
    \n
    \n
    \n { categories.map(this.renderCategory) }\n
    \n
    \n
    \n )\n }\n}\n\n","import \"./StoreView.scss\";\n\nimport React from \"react\";\nimport { Link } from \"react-router-dom\";\nimport request from \"request\"\nimport usesFeatures from \"usesFeatures\"\n\nimport Image from \"Image\"\nimport Header from \"Header\"\nimport Customer from \"Customer\"\nimport DrawerModal from \"DrawerModal\"\n\nimport ProductView from \"Customer/ProductView\"\nimport CartView from \"Customer/CartView\"\nimport Menu from \"./Menu.jsx\"\n\nclass StoreView extends React.Component {\n state = {\n cartId: Customer.getCartId(),\n selectedProduct: null,\n itemsInCart: 0,\n cartStoreId: null,\n }\n\n componentDidMount() {\n const id = this.props.match.params.storeId\n this.props.fetchData(`/customer/stores/${id}?cartId=${this.state.cartId}`, this.setCart)\n }\n\n setCart = (data) => {\n if(data.cart) this.setState({itemsInCart: data.cart.itemCount, cartStoreId: data.cart.storeId})\n }\n\n updateCart = (cartData) => {\n Customer.setCartId(cartData.cartId)\n this.setState({cartId: cartData.cartId, itemsInCart: cartData.itemCount, cartStoreId: cartData.storeId})\n this.clearProduct()\n }\n\n selectProduct = (selectedProduct) => this.setState({selectedProduct})\n openCart = () => this.setState({cartOpen: true})\n closeCart = () => this.setState({cartOpen: false})\n\n clearProduct = () => {\n heap.track(\"Product/Close\", { productId: this.state.selectedProduct })\n this.setState({selectedProduct: null})\n }\n\n render() {\n if (!this.props.dataFetched) return false\n\n const { store, categories, products, cart } = this.props\n const { selectedProduct, itemsInCart, cartStoreId } = this.state\n\n return(\n
    0 ? \"HasCart\" : \"\"}`}>\n \n\n { !store.open &&\n
    \n
    \n Sorry! This store is closed - you will not be able to place an order\n
    \n
    \n }\n\n
    \n \n
    \n\n
    \n \n
    \n\n { itemsInCart > 0 && store.id == cartStoreId &&\n
    \n \n
    Items in Cart
    \n
    { itemsInCart }
    \n
    \n
    \n }\n\n { selectedProduct &&\n \n \n \n }\n { this.state.cartOpen &&\n \n \n \n }\n
    \n )\n }\n}\n\nexport default usesFeatures([\"data\"], StoreView)\n","import React from \"react\";\nimport { Link } from \"react-router-dom\";\nimport request from \"request\"\nimport usesFeatures from \"usesFeatures\"\nimport { isValidPhoneNumber } from 'libphonenumber-js'\n\nimport Card from \"Card\"\nimport Input from \"Input\"\nimport PhoneInput from 'react-phone-number-input/input'\n\nclass CustomerForm extends React.Component {\n state = {\n errors: []\n }\n\n handleSubmit = () => {\n if (!this.canSubmit()) return false\n\n this.setState({processing: true, errors: []})\n const { name, email, phone } = this.props.formData\n\n let req = request.put(`/customer/orders/${this.props.orderId}`, { name, email, phone })\n req.then(({data}) => {\n this.setState({processing: false})\n if (data.success) {\n window.location.reload()\n } else {\n this.setState({errors: data.errors})\n }\n })\n }\n\n canSubmit = () => {\n if (this.state.processing) return false\n const { formData } = this.props\n let phone = (formData.phone ? formData.phone : \"\")\n return(formData.phone && formData.name && isValidPhoneNumber(formData.phone, \"US\"))\n }\n\n render() {\n const { formData, updateField } = this.props\n return(\n
    \n
    \n
    \n \n
    \n

    Oh no! Looks like we had some issues gathering your contact info.

    \n

    \n Your Order will be placed once this form is submitted\n

    \n
    \n { this.state.errors.length > 0 &&\n
    \n { this.state.errors.map((e, i) =>

    {e}

    ) }\n
    \n }\n \n \n
    \n \n \n
    \n\n \n { this.state.processing ? \"Processing…\" : \"Update Info\" }\n \n
    \n
    \n
    \n
    \n )\n }\n}\n\nexport default usesFeatures(['form'], CustomerForm)\n","import \"./OrderView.scss\";\n\nimport React from \"react\";\nimport { Link } from \"react-router-dom\";\nimport request from \"request\"\nimport usesFeatures from \"usesFeatures\"\n\nimport Image from \"Image\"\nimport CustomerForm from \"./CustomerForm\"\n\nclass OrderView extends React.PureComponent {\n constructor (props) {\n super(props)\n this.state = {}\n }\n\n componentDidMount() {\n const orderId = this.props.match.params.orderId\n this.props.fetchData(`/customer/orders/${orderId}`, this.trackEvent)\n }\n\n trackEvent = (data) => {\n heap.addUserProperties({accountId: data.accountId});\n heap.track(\"Order/View\", { orderId: data.order.id })\n }\n\n renderProduct = (product, i) => {\n const { order, customer } = this.props\n return(\n
    \n
    \n \n
    \n
    \n

    \n { product.name }\n { product.quantity > 1 ? ` x${product.quantity}` : \"\" }\n

    \n { product.fulfilled != product.quantity && (order.status == \"complete\" || order.status == \"cancelled\") &&\n

    \n Refunded { product.quantity - product.fulfilled }\n

    \n }\n

    { product.modifiers.map((m) => m.name).join(\", \") }

    \n { !this.props.order.allInclusive &&

    ${ product.price }

    }\n
    \n
    \n )\n }\n\n render() {\n if (!this.props.dataFetched) return false\n\n const { order, customer } = this.props\n\n if(!customer) return(\n \n )\n\n return(\n
    \n
    \n

    Your Order

    \n

    Order#{order.number}: { order.status == \"ready\" ? \"ready for pickup\" : order.status}

    \n

    Store: { order.store.name }

    \n

    Confirmation/Pickup Code: {\n [ order.confirmationCode.slice(0, 3), order.confirmationCode.slice(3) ].join('-')\n }

    \n { order.sectionName &&\n

    \n Delivering To: { order.sectionName }{ order.location ? ` - ${order.location }` : \"\" }\n

    \n }\n
    \n
    \n

    \n You will be receive text message updates for your order, so you know when it's\n { order.sectionName ? \" been accepted\" : \" ready for pickup\" }\n

    \n { order.store.pickupInstructions &&\n <>\n

    Pickup Instructions

    \n

    { order.store.pickupInstructions }

    \n \n }\n
    \n
    \n \n Order from {order.store.name} again\n \n
    \n { order.isEnrolledInRewards &&\n
    \n

    Your Rewards balance: { order.rewardsBalance }

    \n

    \n { order.nextReward ? (\n <>\n Earn a discount code for { order.nextReward.rewardDisplay + \" \"}\n off your next order when you reach { order.nextReward.points } points\n \n ) : (\n <>You've earned all available rewards. Congrats!\n )}\n

    \n
    \n }\n
    \n

    Items in this order

    \n { order.products.map(this.renderProduct) }\n { order.products.length == 0 &&\n

    Nothing here

    \n }\n\n { !order.allInclusive &&\n
    \n

    \n Items Subtotal\n ${ order.subtotal }\n

    \n

    \n Sales Tax\n ${ order.taxes }\n

    \n { order.customerFee != \"$0.00\" &&\n

    \n { order.account.customerFeeDescriptor }\n { order.customerFee }\n

    \n }\n { order.tip > 0 &&\n

    \n Tip\n ${ order.tip.toFixed(2) }\n

    \n }\n { order.discountAmount != \"$0.00\" &&\n

    \n { order.discount.name }\n { order.discountAmount }\n

    \n }\n

    \n Total\n ${ order.chargeTotal }\n

    \n { order.refunded &&\n

    \n Refunded\n ${ order.refunded }\n

    \n }\n
    \n }\n
    \n
    \n )\n }\n}\n\nexport default usesFeatures(['data'], OrderView)\n","import React, {useState, useEffect} from 'react';\nimport {PaymentRequestButtonElement, useStripe} from '@stripe/react-stripe-js';\n\nconst QuickPay = (props) => {\n const stripe = useStripe();\n const [paymentRequest, setPaymentRequest] = useState(null);\n\n useEffect(() => {\n if (stripe) {\n const pr = stripe.paymentRequest({\n country: props.country,\n currency: props.currency.toLowerCase(),\n total: {\n label: `${props.storeName} via Catch`,\n amount: props.amount,\n },\n requestPayerName: true,\n requestPayerPhone: true,\n requestPayerEmail: true,\n });\n\n // Check the availability of the Payment Request API.\n pr.canMakePayment().then(result => {\n if (result) {\n setPaymentRequest(pr);\n }\n });\n\n pr.on('paymentmethod', async (ev) => {\n heap.track(\"Payment/Submit\", { quickPay: true })\n // Confirm the PaymentIntent without handling potential next actions (yet).\n const {paymentIntent, error: confirmError} = await stripe.confirmCardPayment(\n props.clientSecret,\n {payment_method: ev.paymentMethod.id},\n {handleActions: false}\n );\n\n if (confirmError) {\n heap.track(\"Payment/Fail\", { quickPay: true })\n // Report to the browser that the payment failed, prompting it to\n // re-show the payment interface, or show an error message and close\n // the payment interface.\n ev.complete('fail');\n } else {\n // Report to the browser that the confirmation was successful, prompting\n // it to close the browser payment method collection interface.\n ev.complete('success');\n heap.track(\"Payment/Success\", { quickPay: true })\n // Check if the PaymentIntent requires any actions and if so let Stripe.js\n // handle the flow. If using an API version older than \"2019-02-11\"\n // instead check for: `paymentIntent.status === \"requires_source_action\"`.\n if (paymentIntent.status === \"requires_action\") {\n // Let Stripe.js handle the rest of the payment flow.\n const {error} = await stripe.confirmCardPayment(clientSecret);\n if (error) {\n // The payment failed -- ask your customer for a new payment method.\n } else {\n // The payment has succeeded.\n }\n } else {\n // The payment has succeeded.\n props.onPaymentSuccess(ev.payerName, ev.payerPhone, ev.payerEmail)\n }\n }\n });\n }\n }, [stripe]);\n\n\n return(\n <>\n { paymentRequest &&\n
    \n

    Express Pay

    \n \n
    \n }\n \n )\n\n // Use a traditional checkout form.\n return 'Insert your form or button component here.';\n}\n\nexport default QuickPay\n","import React from \"react\";\nimport { Link, Redirect } from \"react-router-dom\";\nimport request from \"request\"\nimport usesFeatures from \"usesFeatures\"\nimport { isValidPhoneNumber } from 'libphonenumber-js'\n\nimport Customer from \"Customer\"\nimport QuickPay from \"./QuickPay\"\nimport { CardElement } from '@stripe/react-stripe-js';\n\nimport Form from \"Form\"\nimport Icon from \"Icon\"\nimport Input from \"Input\"\nimport Switch from \"Switch\"\nimport PhoneInput from 'react-phone-number-input/input'\n\nclass PaymentRequired extends React.PureComponent {\n constructor (props) {\n super(props)\n this.state = {\n paymentComplete: false\n }\n }\n\n updateCard = (ev) => this.setState({ paymentComplete: ev.complete })\n\n canSubmit = () => {\n if (this.state.processing) return false\n const { formData } = this.props\n let phone = (formData.phone ? formData.phone : \"\")\n if (!this.state.paymentComplete) return false\n return(formData.phone && formData.name && isValidPhoneNumber(formData.phone, \"US\"))\n }\n\n handleSuccessfulPayment = (name, phone, email) => {\n const { formData } = this.props\n const cartId = Customer.getCartId()\n let data = {\n name: name,\n email: email,\n phone: phone,\n rewards: formData.rewards || false,\n sectionId: formData.sectionId,\n deliveryInfo: formData.deliveryInfo,\n }\n\n let req = request.post(`customer/checkout/${cartId}/quickpay`, data)\n req.then(({data}) => this.paymentSuccess(data))\n }\n\n handleSubmit = (event) => {\n this.setState({paymentError: null, processing: true})\n if (!this.canSubmit()) return false\n event.preventDefault();\n\n if (!this.props.stripe || !this.props.elements) {\n return;\n }\n\n const cartId = Customer.getCartId()\n heap.track(\"Payment/Submit\", { cartId: cartId })\n const { stripe, payment, formData, elements } = this.props\n const cardElement = elements.getElement(CardElement);\n\n let stripePayment = stripe.confirmCardPayment(payment.intentSecret, {\n payment_method: {\n card: cardElement,\n billing_details: {\n name: formData.name,\n phone: formData.phone,\n email: formData.email,\n }\n }\n })\n\n stripePayment.then((result) => {\n if (result.error) {\n heap.track(\"Payment/Failed\", { cartId: cartId })\n this.setState({paymentError: result.error.message, processing: false})\n }\n\n if (result.paymentIntent && result.paymentIntent.status == \"requires_capture\") {\n heap.track(\"Payment/Success\", { cartId: cartId })\n let req = request.post(`customer/checkout/${cartId}/payment`, formData)\n req.then(({data}) => this.paymentSuccess(data))\n }\n })\n }\n\n paymentSuccess = (data) => {\n Customer.clearCartId()\n this.setState({toOrderPage: true, orderId: data.order.id})\n }\n\n render() {\n if (this.state.toOrderPage) return \n\n const { formData, store, payment } = this.props\n\n return(\n
    \n

    \n Payment Information\n

    \n \n\n \n \n
    \n \n \n
    \n\n
    \n \n \n
    \n\n { this.state.paymentError &&\n

    \n Payment Error: { this.state.paymentError }\n

    \n }\n\n { this.props.isRewardsEnabled &&\n
    \n \n

    \n Once enrolled, always rewarded – your phone number remains\n registered in our rewards program, ensuring you earn points\n seamlessly with every order.\n

    \n
    \n }\n\n \n { this.state.processing ? \"Processing…\" : \"Place Order\" }\n \n
    \n )\n }\n}\n\nexport default usesFeatures([\"payments\"], PaymentRequired)\n","import React from \"react\";\nimport { Link, Redirect } from \"react-router-dom\";\nimport request from \"request\"\nimport usesFeatures from \"usesFeatures\"\nimport { isValidPhoneNumber } from \"libphonenumber-js\"\n\nimport Customer from \"Customer\"\nimport QuickPay from \"./QuickPay\"\nimport { CardElement } from \"@stripe/react-stripe-js\";\n\nimport Form from \"Form\"\nimport Icon from \"Icon\"\nimport Input from \"Input\"\nimport PhoneInput from \"react-phone-number-input/input\"\nimport SeatSelector from \"SeatSelector\"\n\nexport default class AllInclusive extends React.PureComponent {\n state = {\n processing: false\n }\n\n canSubmit = () => {\n if (this.state.processing) return false\n const { formData } = this.props\n let phone = (formData.phone ? formData.phone : \"\")\n return(\n formData.phone && formData.name &&\n isValidPhoneNumber(formData.phone, \"US\") &&\n (formData.sectionId || formData.method == \"pickup\")\n )\n }\n\n selectSeat = (data) => {\n this.setState({...data})\n }\n\n handleSubmit = () => {\n if (!this.canSubmit()) return false\n this.setState({processing: true})\n\n const { name, phone, location, sectionId, deliveryInfo } = this.props.formData\n const data = { name, phone, location, sectionId, deliveryInfo }\n const cartId = Customer.getCartId()\n\n let req = request.post(`customer/checkout/${cartId}/inclusive`, data)\n req.then(({data}) => {\n if (data.success) {\n Customer.clearCartId()\n this.setState({toOrderPage: true, orderId: data.order.id})\n } else {\n this.setState({processing: false, errors: data.errors})\n }\n })\n req.catch(() => { this.setState({processing: false, errors: \"There was a problem. Please try again shortly.\"}) })\n }\n\n render() {\n const { formData, store, payment } = this.props\n\n if (this.state.toOrderPage) return \n\n return(\n
    \n \n \n
    \n \n \n
    \n\n { this.state.errors &&\n

    \n { this.state.errors }\n

    \n }\n\n \n { this.state.processing ? \"Processing…\" : \"Place Order\" }\n \n
    \n )\n }\n}\n","import React from \"react\";\nimport { Link, Redirect } from \"react-router-dom\";\nimport request from \"request\"\nimport usesFeatures from \"usesFeatures\"\nimport { isValidPhoneNumber } from 'libphonenumber-js'\n\nimport SeatSelector from \"SeatSelector\"\n\nexport default class OrderMethod extends React.PureComponent {\n changeOrderMethod = (type) => {\n if (type != this.props.formData.method) {\n heap.track(\"Checkout/Method\", { method: type})\n this.props.updateField(\"method\", type)\n this.props.updateField(\"sectionId\", null)\n this.props.updateField(\"deliveryInfo\", null)\n }\n }\n\n selectSeat = (data) => {\n this.setState({...data})\n\n if (data.selectedSeat) {\n this.props.updateField(\"sectionId\", data.selectedSection)\n this.props.updateField(\"deliveryInfo\", { row: data.selectedRow, seat: data.selectedSeat })\n } else if (data.selectedSection && data.sectionOnly) {\n this.props.updateField(\"sectionId\", data.selectedSection)\n this.props.updateField(\"deliveryInfo\", {})\n } else {\n this.props.updateField(\"deliveryInfo\", null)\n }\n }\n\n render() {\n const { formData, store, payment, sections } = this.props\n return(\n
    \n { !this.props.hideMethod &&\n
    \n

    \n Select Order Method\n

    \n
    \n

    \n \n Pickup\n \n

    \n

    \n \n Delivery\n \n

    \n
    \n
    \n }\n { formData.method == \"delivery\" &&\n
    \n { this.props.hideMethod &&

    Delivery

    }\n

    Where are you located?

    \n \n { !formData.deliveryInfo &&\n

    \n If your section and seat are not listed, your order\n is not eligible for delivery from { store.name }\n

    \n }\n
    \n }\n
    \n )\n }\n}\n","import \"./Checkout.scss\";\n\nimport React from \"react\";\nimport { Link, Redirect } from \"react-router-dom\";\nimport request from \"request\"\nimport usesFeatures from \"usesFeatures\"\nimport { isValidPhoneNumber } from 'libphonenumber-js'\n\nimport Customer from \"Customer\"\n\nimport Form from \"Form\"\nimport Icon from \"Icon\"\nimport Input from \"Input\"\nimport PhoneInput from 'react-phone-number-input/input'\n\nimport PaymentRequired from \"./components/PaymentRequired\"\nimport AllInclusive from \"./components/AllInclusive\"\nimport OrderMethod from \"./components/OrderMethod\"\n\nclass Checkout extends React.PureComponent {\n\n constructor (props) {\n super(props)\n this.state = {\n checkoutStage: \"info\",\n paymentComplete: false,\n processing: false,\n }\n }\n\n readyForPayment = () => {\n if (this.props.formData.method == \"pickup\") return true\n\n return this.props.formData.method == \"delivery\" && this.props.formData.deliveryInfo\n }\n\n canProgress = () => {\n const { checkoutStage } = this.state\n const { formData } = this.props\n\n if(checkoutStage == \"info\" && isValidPhoneNumber((formData.phone || \"\"), \"US\")) return true\n }\n\n nextStep = () => {\n switch(this.state.checkoutStage) {\n case \"info\": this.submitCustomer()\n }\n }\n\n submitCustomer = () => {\n const { phone } = this.props.formData\n const req = request.post(\"customer/customers\", { phone })\n req.then(({data}) => {\n if (data.success) {\n } else {\n }\n })\n }\n\n render() {\n const { formData, store, payment, sections } = this.props\n const { checkoutStage } = this.state\n console.log(payment)\n return(\n
    \n\n
    \n \n \n
    \n\n
    \n { checkoutStage == \"info\" &&\n \n }\n \n
    \n
    \n )\n }\n}\n\nexport default usesFeatures([\"data\", \"form\"], Checkout)\n\n","import \"./Checkout.scss\";\n\nimport React from \"react\";\nimport { Link, Redirect } from \"react-router-dom\";\nimport request from \"request\"\nimport usesFeatures from \"usesFeatures\"\nimport { isValidPhoneNumber } from 'libphonenumber-js'\nimport { FeatureFlagContext } from \"FeatureFlagContext\"\n\nimport Customer from \"Customer\"\n\nimport Form from \"Form\"\nimport Icon from \"Icon\"\nimport Input from \"Input\"\nimport PhoneInput from 'react-phone-number-input/input'\n\nimport NewCheckout from \"./NewCheckout\"\n\nimport PaymentRequired from \"./components/PaymentRequired\"\nimport AllInclusive from \"./components/AllInclusive\"\nimport OrderMethod from \"./components/OrderMethod\"\n\nclass Checkout extends React.PureComponent {\n static contextType = FeatureFlagContext\n\n constructor (props) {\n super(props)\n this.state = {\n paymentComplete: false\n }\n }\n\n componentDidMount() {\n const cartId = Customer.getCartId()\n heap.track(\"Checkout/Start\", { cartId: cartId })\n this.props.fetchData(`customer/checkout/${cartId}/start`, this.setOrderType)\n }\n\n setOrderType = (data) => {\n // All Inclusive Delivery\n if (data.store.delivery && data.store.allInclusive) {\n this.props.updateField(\"method\", \"delivery\")\n this.setState({hideMethod: true})\n }\n // No Delivery\n else if (data.sections.length == 0 || data.store.delivery == false) {\n this.setState({hideMethod: true})\n this.props.updateField(\"method\", \"pickup\")\n }\n // Delivery only\n else if (!data.store.pickup && data.store.delivery) {\n this.setState({hideMethod: true})\n this.props.updateField(\"method\", \"delivery\")\n }\n }\n\n readyForPayment = () => {\n if (this.props.formData.method == \"pickup\") return true\n\n return this.props.formData.method == \"delivery\" && this.props.formData.deliveryInfo\n }\n\n render() {\n if (!this.props.dataFetched) return false\n\n const { formData, store, payment, sections } = this.props\n\n return(\n
    \n
    \n
    \n
    \n \n
    \n
    \n

    Checkout from:

    \n

    { this.props.store.name }

    \n
    \n
    \n
    \n
    \n \n\n { this.readyForPayment() && (\n this.context.isEnabled(\"saved_payment_methods\") ? (\n store.allInclusive ? : \n ) : (\n\n
    \n { store.allInclusive ?\n : (\n \n )\n }\n
    \n ))}\n \n
    \n
    \n

    \n By placing an order you agree to our \n Privacy Policy\n

    \n
    \n
    \n )\n }\n}\n\nexport default usesFeatures([\"data\", \"form\"], Checkout)\n","\nimport React from \"react\";\nimport { Link, Redirect } from \"react-router-dom\";\n\nimport Image from \"Image\"\n\nexport default class Store extends React.PureComponent {\n render() {\n const { store } = this.props\n return(\n \n { !store.open &&
    Store Closed
    }\n
    \n
    \n

    { store.name }

    \n { store.closestSection &&\n

    Closest Section - { store.closestSection }

    \n }\n

    { store.description }

    \n
    \n \n
    \n \n )\n }\n}\n","import \"./VenueDirectory.scss\";\n\nimport React from \"react\";\nimport { Link } from \"react-router-dom\";\nimport request from \"request\"\nimport usesFeatures from \"usesFeatures\"\n\nimport Store from \"./Store.jsx\"\n\nclass VenueDirectory extends React.PureComponent {\n constructor (props) {\n super(props)\n this.state = {}\n }\n\n componentDidMount() {\n const id = this.props.match.params.venueId\n this.props.fetchData(`customer/venue/${id}`)\n heap.track(\"Venue/View\", { venueId: id })\n }\n\n renderStore = (store) => \n\n render() {\n if (!this.props.dataFetched) return false\n\n return(\n
    \n
    \n
    \n { this.props.stores.map(this.renderStore) }\n
    \n
    \n
    \n )\n }\n}\n\nexport default usesFeatures([\"data\"], VenueDirectory)\n","import React, { useState, useEffect } from \"react\";\nimport { Link, useParams } from \"react-router-dom\";\nimport request from \"request\"\nimport usesFeatures from \"usesFeatures\"\nimport { startCase } from \"lodash\"\n\nimport Image from \"Image\"\n\nconst ReceiptView = () => {\n const [order, setOrder] = useState({})\n const [customer, setCustomer] = useState({})\n const { orderId } = useParams()\n\n const fetchOrder = () => {\n const req = request.get(`/customer/orders/${orderId}`)\n req.then(({data}) => {\n setOrder(data.order)\n setCustomer(data.customer)\n })\n }\n useEffect(fetchOrder, [])\n\n const renderProduct = (product, i) => {\n return(\n
    \n
    \n \n
    \n
    \n

    \n { product.name }\n { product.quantity > 1 ? ` x${product.quantity}` : \"\" }\n

    \n { product.fulfilled != product.quantity && (order.status == \"complete\" || order.status == \"cancelled\") &&\n

    \n Refunded { product.quantity - product.fulfilled }\n

    \n }\n

    { product.modifiers.map((m) => m.name).join(\", \") }

    \n { !order.allInclusive &&

    ${ product.price }

    }\n
    \n
    \n )\n }\n\n if(!order.id) return null\n return(\n
    \n
    \n

    Receipt for Order

    \n

    Order#{order.number}: { order.status == \"ready\" ? \"ready for pickup\" : startCase(order.status)}

    \n

    Store: { order.store.name }

    \n { order.type === \"mobile\" &&\n

    Confirmation/Pickup Code: {\n [ order.confirmationCode.slice(0, 3), order.confirmationCode.slice(3) ].join('-')\n }

    \n }\n { order.sectionName &&\n

    \n Delivering To: { order.sectionName }{ order.location ? ` - ${order.location }` : \"\" }\n

    \n }\n

    \n Paid via { startCase(order.payment.type) }\n

    \n
    \n
    \n

    Items in this order

    \n { order.products.map(renderProduct) }\n { order.products.length == 0 &&\n

    Nothing here

    \n }\n\n { !order.allInclusive &&\n
    \n

    \n Items Subtotal\n ${ order.subtotal }\n

    \n

    \n Sales Tax\n ${ order.taxes }\n

    \n { order.customerFee != \"$0.00\" &&\n

    \n { order.account.customerFeeDescriptor }\n { order.customerFee }\n

    \n }\n { order.tip > 0 &&\n

    \n Tip\n ${ order.tip.toFixed(2) }\n

    \n }\n { order.discountAmount != \"$0.00\" &&\n

    \n {order.discount.name}\n { order.discountAmount }\n

    \n }\n

    \n Total\n ${ order.chargeTotal }\n

    \n { order.refunded &&\n

    \n Refunded\n ${ order.refunded }\n

    \n }\n
    \n }\n
    \n
    \n )\n}\n\nexport default ReceiptView\n","import React from \"react\";\nimport { BrowserRouter as Router, Route, Switch } from \"react-router-dom\";\nimport wrapComponent from \"ApplicationWrapper\"\n\nimport CartView from \"Customer/CartView\";\nimport StoreView from \"Customer/StoreView\";\nimport OrderView from \"Customer/OrderView\";\nimport Checkout from \"Customer/Checkout\";\nimport VenueDirectory from \"Customer/VenueDirectory\";\nimport ReceiptView from \"Customer/ReceiptView\";\n\nimport FourOhFour from \"FourOhFour\"\n\nexport default props => (\n \n \n \n \n\n \n \n\n\n \n \n\n \n\n \n \n \n);\n","import React from 'react'\nimport { render } from \"react-dom\";\n// Images (jpg, jpeg, png) are imported here.\n// This will copy all static images under `frontend/images` to the output\n// folder and reference them with the image_pack_tag helper in views\n// (e.g <%= image_pack_tag 'hero.png' %>) or the `imagePath` JavaScript helper\n// below.\n\nconst images = require.context('../images', true)\nconst imagePath = (name) => images(name, true)\n\nimport CustomerProviderWrapper from 'CustomerContext';\nimport { I18nextProvider } from \"react-i18next\";\nimport i18n from \"lib/i18n\"\n\nimport Customer from \"routes/Customer\";\nimport ErrorReporting from \"ErrorReporting\";\n\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n render(\n \n \n \n \n \n \n ,\n document.getElementById(\"app\")\n );\n});\n\n","import React from 'react'\nimport Appsignal from \"@appsignal/javascript\";\nimport { ErrorBoundary } from \"@appsignal/react\";\n\nconst appsignal = new Appsignal({\n key: window.appConfig.apk,\n revision: window.appConfig.v,\n});\n\nconst FallbackComponent = () => (\n
    \n
    \n Sorry, it looks like an unhandled error occured.
    \n You can go Back Home or reload the page.
    \n If this persists, please reach out to sales@gocatch.io\n
    \n
    \n);\n\nexport default class ErrorReporting extends React.Component {\n render() {\n return(\n }\n >\n { this.props.children }\n \n )\n }\n}\n","import \"./Header.scss\";\n\nimport React from \"react\";\nimport { Link } from \"react-router-dom\";\nimport request from \"request\"\n\nexport default class Header extends React.Component {\n render() {\n return(\n
    \n
    \n { this.props.backLink && (\n \n \n \n \n \n \n \n \n \n \n \n )}\n\n
    \n

    { this.props.text }

    \n { this.props.subtitle &&\n

    { this.props.subtitle }

    \n }\n
    \n
    \n { this.props.children }\n
    \n
    \n
    \n )\n }\n}\n","module.exports = __webpack_public_path__ + \"media/images/icons/datatable/sort_asc-da7ee0eceb6a70b9954b7fb36538648e.png\";","module.exports = __webpack_public_path__ + \"media/images/icons/datatable/sort_both-dc897a5618bb01ce89e941a12bbbe7d1.png\";","module.exports = __webpack_public_path__ + \"media/images/icons/datatable/sort_desc-45d1f75c039557dd6c7d2180cf639397.png\";","module.exports = __webpack_public_path__ + \"media/images/icons/typing-47cf2cd73622c5092de84b8e43d63e41.gif\";","import \"./Icon.scss\";\n\nimport React from \"react\";\n\n// NOTE: Using Font Awesome, search icons here\n// https://fontawesome.com/v5.0/icons?d=gallery&p=1\n\nexport default class Icon extends React.PureComponent {\n style = () => {\n let types = {\n solid: \"fas\",\n brand: \"fab\",\n }\n let type = types[this.props.style]\n return type || \"far\"\n }\n render() {\n return(\n \n )\n }\n}\n\nIcon.defaultProps = {\n style: \"solid\",\n className: \"\",\n}\n","const KEYS = {\n authToken: \"catchAuthToken\",\n lastPage: \"catchLastPage\",\n}\n\nconst User = {\n getAuthToken: () => {\n let token = localStorage.getItem(KEYS.authToken)\n if(token === undefined) return null\n return token\n },\n\n setAuthToken: (token) => localStorage.setItem(KEYS.authToken, token),\n clearAuthToken: () => localStorage.removeItem(KEYS.authToken),\n isAuthenticated: () => User.getAuthToken() !== null,\n\n setLastPage: (url) => localStorage.setItem(KEYS.lastPage, url),\n getLastPage: () => localStorage.getItem(KEYS.lastPage),\n clearLastPage: () => localStorage.removeItem(KEYS.lastPage),\n}\n\nexport default User\n","import React from \"react\";\nimport \"./Input.scss\";\n\nexport default class Input extends React.PureComponent {\n handleOnChange = ({target}) => this.props.onChange(target.value)\n\n fieldClasses = () => {\n let classes = [\"field\", \"block\", \"has-input\"]\n if (this.props.append) classes.push(\"has-addons\")\n if (this.props.horizontal) classes.push(\"is-horizontal\")\n return(classes.join(\" \"))\n }\n\n controlClasses = () => {\n let classes = [\"control\", \"has-validation\"]\n if (this.props.errors[this.props.errorKey]) classes.push(\"has-error\")\n return(classes.join(\" \"))\n }\n\n render() {\n return(\n
    \n { this.props.label && !this.props.horizontal && }\n
    \n { this.props.label && this.props.horizontal && }\n
    \n \n
    \n { this.props.append && (\n

    \n \n { this.props.append }\n \n

    \n )}\n
    \n { this.props.hint &&\n

    { this.props.hint }

    \n }\n { this.props.errors[this.props.errorKey] &&\n

    { this.props.errors[this.props.errorKey] }

    \n }\n
    \n )\n }\n}\n\nInput.defaultProps = {\n errors: {}\n}\n","var map = {\n\t\"./icons/datatable/sort_asc\": 54,\n\t\"./icons/datatable/sort_asc.png\": 54,\n\t\"./icons/datatable/sort_both\": 55,\n\t\"./icons/datatable/sort_both.png\": 55,\n\t\"./icons/datatable/sort_desc\": 56,\n\t\"./icons/datatable/sort_desc.png\": 56,\n\t\"./icons/typing\": 57,\n\t\"./icons/typing.gif\": 57\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 94;"],"sourceRoot":""}