{"version":3,"sources":["../node_modules/@ionic/core/dist/esm-es5 lazy /^/.//.*/.entry/.js$/ groupOptions: {} namespace object","../node_modules/ionicons/dist/esm-es5 lazy /^/.//.*/.entry/.js$/ include: //.entry/.js$/ exclude: //.system/.entry/.js$/ groupOptions: {} namespace object","assets/images/logo_realapp_small_white.png","../node_modules/@aws-amplify/ui-components/dist/esm-es5 lazy /^/.//.*/.entry/.js$/ include: //.entry/.js$/ exclude: //.system/.entry/.js$/ groupOptions: {} namespace object","redux/reducers/businessReducer.ts","redux/reducers/featuredBlockReducer.ts","redux/reducers/standardBlockReducer.ts","redux/reducers/profileReducer.ts","redux/reducers/index.ts","redux/constants.ts","redux/store.ts","pages/Home.tsx","services/pageService.ts","shared/components/ModalCloseButton.tsx","shared/components/BlockCard.tsx","shared/components/Header.tsx","redux/actions/businessActions.ts","components/Footer.tsx","components/Announcement.tsx","shared/components/HeroImage.tsx","pages/Landing.tsx","pages/Listing.tsx","shared/components/AdminMenu.tsx","shared/components/AdminHeader.tsx","enums.ts","redux/actions/rootActions.ts","shared/components/AdminBusinessMenu.tsx","shared/components/FormInput.tsx","shared/components/FileUpload.tsx","pages/AdminBusinessDetail.tsx","shared/components/SelectInput.tsx","shared/components/CreateBusinessModal.tsx","pages/AdminBusinesses.tsx","pages/AdminHome.tsx","redux/actions/profileActions.ts","shared/components/CreateProfileModal.tsx","pages/AdminUsers.tsx","pages/AdminUserDetail.tsx","shared/components/RichTextEditor.tsx","pages/AdminBusinessDetailLanding.tsx","redux/actions/featuredBlockActions.ts","components/EditFeaturedBlockModal.tsx","pages/AdminBusinessDetailFeaturedBlocks.tsx","shared/components/EditStandardBlock.tsx","redux/actions/standardBlockActions.ts","pages/AdminBusinessDetailStandardBlocks.tsx","pages/AdminBusinessDetailFeaturedBlockDetail.tsx","pages/AdminBusinessDetailStandardBlockDetail.tsx","pages/Admin.tsx","Router.tsx","App.tsx","serviceWorker.ts","index.tsx"],"names":["map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","id","keys","Object","module","exports","initialState","loading","businessLoading","businessesLoading","businesses","createdBusiness","business","error","profiles","profile","appReducer","combineReducers","businessReducer","state","action","type","payload","updatedBusiness","featuredBlockReducer","standardBlockReducer","availableOptions","profileReducer","currentProfile","rootReducer","console","log","undefined","composeEnhancers","window","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","compose","Home","fullscreen","className","src","alt","class","href","color","formatHtml","html","replace","ModalCloseButton","props","slot","fill","size","onClick","icon","closeOutline","BlockCard","title","image","content","linkUrl","pdf","slug","name","logo","useState","showModal","setShowModal","cardContent","target","routerLink","isOpen","onDidDismiss","style","display","width","dangerouslySetInnerHTML","__html","Header","fetchBusinesses","dispatch","_getState","fetchBusinessesStarted","API","get","response","fetchBusinessesSuccess","data","catch","fetchBusinessesFailure","createBusinessStarted","createBusinessSuccess","createBusinessError","fetchBusinessById","onSuccess","onError","fetchBusinessStarted","fetchBusinessSuccess","fetchBusinessFailure","fetchBusinessBySlug","updateBusiness","a","updateBusinessStarted","put","body","updateBusinessSuccess","updateBusinessError","Footer","flipbookLink","flipbookLinkTextColor","flipbookLinkBackgroundColor","address","city","zip","phone","website","facebook","logoFacebook","instagram","logoInstagram","twitter","logoTwitter","linkedin","logoLinkedin","youtube","logoYoutube","require","height","Announcement","text","backgroundColor","textColor","announcementInner","HeroImage","Landing","match","useDispatch","useSelector","store","useEffect","params","enabled","location","announcementText","announcementBGColor","announcementTextColor","announcementType","announcementContent","announcementLinkUrl","announcementPdf","mainImage","taglineText","taglineBackgroundColor","taglineTextColor","temporalDivElement","document","createElement","innerHTML","textContent","innerText","stripHtml","mainContent","featuredBlocks","filter","block","featuredBlock","key","sizeSm","sizeMd","sizeLg","Listing","listingFeaturedBlocks","length","getHeaderText","standardBlocks","standardBlock","AdminMenu","contentId","homeOutline","role","briefcaseOutline","peopleOutline","FileUploadTypes","AdminHeader","email","Auth","signOut","err","AdminBusinessMenu","businessId","FormInput","label","value","placeholder","disabled","onIonChange","position","FileUpload","fileUrl","buttonText","onChange","onDelete","inputElement","setInputElement","accept","borderBottom","documentAttachOutline","cloudUploadOutline","click","expand","ref","input","hidden","file","nativeEvent","files","item","axios","process","encodeURIComponent","putUrl","Key","headers","AdminBusinessDetail","parseInt","setEnabled","setName","setSlug","setLogo","setFlipbookLink","setAddress","setCity","setState","setZip","setPhone","setWebsite","setFacebook","setInstagram","setTwitter","setLinkedin","setYoutube","showErrorAlert","setShowErrorAlert","textAlign","origin","includeMargin","canvas","getElementById","pngUrl","toDataURL","downloadLink","download","appendChild","removeChild","checked","detail","url","field","header","subHeader","message","Array","isArray","join","SelectInput","options","option","index","CreateBusinessModal","setType","onCloseClick","post","createBusiness","AdminBusinesses","showCreateModal","setShowCreateModal","AdminHome","fetchProfiles","fetchProfilesPending","fetchProfilesSuccess","fetchProfilesFailure","fetchProfileById","fetchProfilePending","fetchProfileSuccess","fetchProfileFailure","createProfilePending","createProfileSuccess","createdProfile","createProfileError","updateProfilePending","updateProfileSuccess","updatedProfile","updateProfileError","fetchCurrentProfilePending","fetchCurrentProfileSuccess","fetchCurrentProfileFailure","CreateProfileModal","setEmail","firstName","setFirstName","lastName","setLastName","setRole","setBusinessId","createProfile","AdminUsers","AdminUserDetail","updateProfile","RichTextEditor","modules","toolbar","align","list","delta","source","editor","padding","AdminBusinessDetailLanding","setAnnouncementText","setAnnouncementBGColor","setAnnouncementTextColor","setAnnouncementType","setAnnouncementContent","setAnnouncementLinkUrl","setAnnouncementPdf","setTaglineText","setTaglineTextColor","setTaglineBackgroundColor","setMainImage","setMainContent","createFeaturedBlockStarted","createFeaturedBlockSuccess","createFeaturedBlockError","EditFeaturedBlockModal","setImage","setContent","setLinkUrl","setPdf","onSubmitClick","submitText","onDeleteClick","AdminBusinessDetailFeaturedBlocks","creatingFeaturedBlock","setCreatingFeaturedBlock","createFeaturedBlock","EditStandardBlockModal","searchText","setSearchText","overflow","paddingLeft","toLowerCase","indexOf","createStandardBlockStarted","createStandardBlockSuccess","createStandardBlockError","getAvailableStandardBlocks","standardBlockGetAvailableOptionsPending","standardBlockGetAvailableOptionsSuccess","standardBlockGetAvailableOptionsFailure","AdminBusinessDetailStandardBlocks","creatingStandardBlock","setCreatingStandardBlock","EditStandardBlock","createStandardBlock","AdminBusinessDetailFeaturedBlocksDetail","blockId","updateFeaturedBlock","del","deleteFeaturedBlock","AdminBusinessDetailStandardBlocksDetail","updateStandardBlock","deleteStandardBlock","Admin","React","authState","setAuthState","user","setUser","onAuthUIStateChange","nextAuthState","authData","fetchCurrentProfile","AuthState","SignedIn","exact","path","component","AdminBusinessDetailFeaturedBlockDetail","AdminBusinessDetailStandardBlockDetail","Router","setTitle","Helmet","getPageTitle","render","history","pathname","createStore","applyMiddleware","thunk","App","Boolean","hostname","Amplify","configure","identityPoolId","region","userPoolId","userPoolWebClientId","endpoints","endpoint","custom_header","currentSession","getAccessToken","getJwtToken","Authorization","TagManager","initialize","gtmId","ReactDOM","navigator","serviceWorker","ready","registration","unregister"],"mappings":"qJAAA,IAAIA,EAAM,CACT,8BAA+B,CAC9B,IACA,GAED,uBAAwB,CACvB,IACA,GAED,uBAAwB,CACvB,IACA,GAED,0BAA2B,CAC1B,IACA,IAED,6BAA8B,CAC7B,IACA,IAED,0BAA2B,CAC1B,IACA,IAED,0BAA2B,CAC1B,IACA,IAED,wBAAyB,CACxB,IACA,IAED,0BAA2B,CAC1B,IACA,IAED,sBAAuB,CACtB,IACA,IAED,uBAAwB,CACvB,IACA,IAED,4BAA6B,CAC5B,IACA,IAED,uBAAwB,CACvB,IACA,IAED,qBAAsB,CACrB,IACA,IAED,mCAAoC,CACnC,IACA,IAED,uBAAwB,CACvB,IACA,IAED,+BAAgC,CAC/B,IACA,IAED,wBAAyB,CACxB,IACA,IAED,yBAA0B,CACzB,IACA,IAED,wBAAyB,CACxB,IACA,IAED,uBAAwB,CACvB,IACA,IAED,uBAAwB,CACvB,IACA,IAED,yBAA0B,CACzB,IACA,IAED,8BAA+B,CAC9B,IAC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ASpQ,MAAM,mBAC1B+P,EAAS,SAGT,kBAAC,GAAD,SAIN,kBAAC,IAAD,CACEN,OAAK,EACLC,KAAK,IACLQ,OAAQ,YAIN,OAJsB,EAAd3P,SACK6P,SAASpQ,MAAM,WAC1B+P,EAAS,QAGT,kBAAC,EAAD,aC1CT5P,GxCbE,CACLA,MANYkQ,YACZ/W,EACAI,EAAiB4W,YAAgBC,QwCgB9BpQ,MAYQqQ,GAVO,WACpB,OACE,kBAAC,IAAD,CAAUrQ,MAAOA,IACf,kBAAC,IAAD,KACE,kBAAC,GAAD,SCvBYsQ,QACW,cAA7B9W,OAAO4G,SAASmQ,UAEe,UAA7B/W,OAAO4G,SAASmQ,UAEhB/W,OAAO4G,SAASmQ,SAAS1Q,MACvB,2D,kCCXN2Q,WAAQC,UAAU,CAChB1N,KAAK,CAED2N,eAAgB1L,iDAEhB2L,OAAQ3L,YAER4L,WAAY5L,sBAEZ6L,oBAAqB7L,8BAEzBvI,IAAK,CACHqU,UAAW,CACT,CACEzV,KAAM,QACN0V,SAAU/L,8BACVgM,cAAc,WAAD,4BAAE,sBAAArT,EAAA,qFAG4BoF,KAAKkO,iBAHjC,0BAGmDC,iBAAiBC,cAHpE,oDAGJC,cAHI,kDAAF,kDAAC,IAMhB,CACE/V,KAAM,SACN0V,SAAU/L,mCAUlBqM,KAAWC,WAJY,CACrBC,MAAOvM,gBAKTwM,IAASzB,OAAO,kBAAC,GAAD,MAAS9O,SAAS4F,eAAe,SDgG3C,kBAAmB4K,WACrBA,UAAUC,cAAcC,MAAMza,MAAK,SAAA0a,GACjCA,EAAaC,kB","file":"static/js/main.6872e833.chunk.js","sourcesContent":["var map = {\n\t\"./ion-action-sheet.entry.js\": [\n\t\t669,\n\t\t5\n\t],\n\t\"./ion-alert.entry.js\": [\n\t\t670,\n\t\t6\n\t],\n\t\"./ion-app_8.entry.js\": [\n\t\t671,\n\t\t9\n\t],\n\t\"./ion-avatar_3.entry.js\": [\n\t\t672,\n\t\t30\n\t],\n\t\"./ion-back-button.entry.js\": [\n\t\t673,\n\t\t31\n\t],\n\t\"./ion-backdrop.entry.js\": [\n\t\t674,\n\t\t74\n\t],\n\t\"./ion-button_2.entry.js\": [\n\t\t675,\n\t\t32\n\t],\n\t\"./ion-card_5.entry.js\": [\n\t\t676,\n\t\t33\n\t],\n\t\"./ion-checkbox.entry.js\": [\n\t\t677,\n\t\t34\n\t],\n\t\"./ion-chip.entry.js\": [\n\t\t678,\n\t\t35\n\t],\n\t\"./ion-col_3.entry.js\": [\n\t\t679,\n\t\t75\n\t],\n\t\"./ion-datetime_3.entry.js\": [\n\t\t680,\n\t\t12\n\t],\n\t\"./ion-fab_3.entry.js\": [\n\t\t681,\n\t\t36\n\t],\n\t\"./ion-img.entry.js\": [\n\t\t682,\n\t\t76\n\t],\n\t\"./ion-infinite-scroll_2.entry.js\": [\n\t\t683,\n\t\t77\n\t],\n\t\"./ion-input.entry.js\": [\n\t\t684,\n\t\t37\n\t],\n\t\"./ion-item-option_3.entry.js\": [\n\t\t685,\n\t\t38\n\t],\n\t\"./ion-item_8.entry.js\": [\n\t\t686,\n\t\t39\n\t],\n\t\"./ion-loading.entry.js\": [\n\t\t687,\n\t\t40\n\t],\n\t\"./ion-menu_3.entry.js\": [\n\t\t688,\n\t\t41\n\t],\n\t\"./ion-modal.entry.js\": [\n\t\t689,\n\t\t10\n\t],\n\t\"./ion-nav_2.entry.js\": [\n\t\t690,\n\t\t27\n\t],\n\t\"./ion-popover.entry.js\": [\n\t\t691,\n\t\t11\n\t],\n\t\"./ion-progress-bar.entry.js\": [\n\t\t692,\n\t\t42\n\t],\n\t\"./ion-radio_2.entry.js\": [\n\t\t693,\n\t\t43\n\t],\n\t\"./ion-range.entry.js\": [\n\t\t694,\n\t\t44\n\t],\n\t\"./ion-refresher_2.entry.js\": [\n\t\t695,\n\t\t13\n\t],\n\t\"./ion-reorder_2.entry.js\": [\n\t\t696,\n\t\t29\n\t],\n\t\"./ion-ripple-effect.entry.js\": [\n\t\t697,\n\t\t78\n\t],\n\t\"./ion-route_4.entry.js\": [\n\t\t698,\n\t\t45\n\t],\n\t\"./ion-searchbar.entry.js\": [\n\t\t699,\n\t\t46\n\t],\n\t\"./ion-segment_2.entry.js\": [\n\t\t700,\n\t\t47\n\t],\n\t\"./ion-select_3.entry.js\": [\n\t\t701,\n\t\t48\n\t],\n\t\"./ion-slide_2.entry.js\": [\n\t\t702,\n\t\t79\n\t],\n\t\"./ion-spinner.entry.js\": [\n\t\t703,\n\t\t15\n\t],\n\t\"./ion-split-pane.entry.js\": [\n\t\t704,\n\t\t80\n\t],\n\t\"./ion-tab-bar_2.entry.js\": [\n\t\t705,\n\t\t49\n\t],\n\t\"./ion-tab_2.entry.js\": [\n\t\t706,\n\t\t28\n\t],\n\t\"./ion-text.entry.js\": [\n\t\t707,\n\t\t50\n\t],\n\t\"./ion-textarea.entry.js\": [\n\t\t708,\n\t\t51\n\t],\n\t\"./ion-toast.entry.js\": [\n\t\t709,\n\t\t52\n\t],\n\t\"./ion-toggle.entry.js\": [\n\t\t710,\n\t\t14\n\t],\n\t\"./ion-virtual-scroll.entry.js\": [\n\t\t711,\n\t\t81\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = 359;\nmodule.exports = webpackAsyncContext;","var map = {\n\t\"./ion-icon.entry.js\": [\n\t\t713,\n\t\t87\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = 361;\nmodule.exports = webpackAsyncContext;","module.exports = __webpack_public_path__ + \"static/media/logo_realapp_small_white.c8c2a472.png\";","var map = {\n\t\"./amplify-amazon-button_5.entry.js\": [\n\t\t715,\n\t\t53\n\t],\n\t\"./amplify-auth-fields_9.entry.js\": [\n\t\t716,\n\t\t54\n\t],\n\t\"./amplify-authenticator.entry.js\": [\n\t\t717,\n\t\t16\n\t],\n\t\"./amplify-button_3.entry.js\": [\n\t\t718,\n\t\t55\n\t],\n\t\"./amplify-chatbot.entry.js\": [\n\t\t719,\n\t\t7\n\t],\n\t\"./amplify-checkbox.entry.js\": [\n\t\t720,\n\t\t56\n\t],\n\t\"./amplify-confirm-sign-in_7.entry.js\": [\n\t\t721,\n\t\t17\n\t],\n\t\"./amplify-container.entry.js\": [\n\t\t722,\n\t\t57\n\t],\n\t\"./amplify-federated-buttons_2.entry.js\": [\n\t\t723,\n\t\t58\n\t],\n\t\"./amplify-federated-sign-in.entry.js\": [\n\t\t724,\n\t\t59\n\t],\n\t\"./amplify-form-field_4.entry.js\": [\n\t\t725,\n\t\t60\n\t],\n\t\"./amplify-greetings.entry.js\": [\n\t\t726,\n\t\t61\n\t],\n\t\"./amplify-icon-button.entry.js\": [\n\t\t727,\n\t\t62\n\t],\n\t\"./amplify-icon.entry.js\": [\n\t\t728,\n\t\t18\n\t],\n\t\"./amplify-link.entry.js\": [\n\t\t729,\n\t\t63\n\t],\n\t\"./amplify-nav_2.entry.js\": [\n\t\t730,\n\t\t64\n\t],\n\t\"./amplify-photo-picker.entry.js\": [\n\t\t731,\n\t\t65\n\t],\n\t\"./amplify-picker.entry.js\": [\n\t\t732,\n\t\t66\n\t],\n\t\"./amplify-radio-button_2.entry.js\": [\n\t\t733,\n\t\t19\n\t],\n\t\"./amplify-s3-album.entry.js\": [\n\t\t734,\n\t\t20\n\t],\n\t\"./amplify-s3-image-picker.entry.js\": [\n\t\t735,\n\t\t21\n\t],\n\t\"./amplify-s3-image.entry.js\": [\n\t\t736,\n\t\t22\n\t],\n\t\"./amplify-s3-text-picker.entry.js\": [\n\t\t737,\n\t\t23\n\t],\n\t\"./amplify-s3-text.entry.js\": [\n\t\t738,\n\t\t24\n\t],\n\t\"./amplify-select-mfa-type.entry.js\": [\n\t\t739,\n\t\t67\n\t],\n\t\"./amplify-sign-in-button.entry.js\": [\n\t\t740,\n\t\t25\n\t],\n\t\"./amplify-toast.entry.js\": [\n\t\t741,\n\t\t68\n\t],\n\t\"./amplify-tooltip.entry.js\": [\n\t\t742,\n\t\t69\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = 640;\nmodule.exports = webpackAsyncContext;","import { IBusiness } from '../../shared/classes/Business.class';\nimport * as types from '../constants';\nimport { BusinessActionTypes } from '../constants';\n\nexport interface IBusinessReducerInitState {\n loading: boolean,\n businessLoading: boolean,\n businessesLoading: boolean,\n businesses: IBusiness[],\n business: IBusiness | null,\n createdBusiness: IBusiness | null,\n}\n\nconst initialState: IBusinessReducerInitState = {\n loading: false,\n businessLoading: false,\n businessesLoading: false,\n businesses: [],\n createdBusiness: null,\n business: null,\n};\n\nexport default function businessReducer(state: IBusinessReducerInitState = initialState, action: BusinessActionTypes) {\n switch (action.type) {\n case types.FETCH_BUSINESSES_PENDING:\n return {\n ...state,\n businessesLoading: true,\n };\n case types.FETCH_BUSINESSES_SUCCESS:\n return {\n ...state,\n businessesLoading: false,\n businesses: action.payload.businesses,\n };\n case types.FETCH_BUSINESSES_FAILURE:\n return {\n ...state,\n businessesLoading: false,\n businesses: [],\n error: action.payload.error,\n }\n\n case types.CREATE_BUSINESS_PENDING:\n return {\n ...state,\n loading: true,\n };\n case types.CREATE_BUSINESS_SUCCESS:\n return {\n ...state,\n loading: false,\n createdBusiness: action.payload.createdBusiness,\n };\n case types.CREATE_BUSINESS_FAILURE:\n return {\n ...state,\n loading: false,\n createdBusiness: null,\n error: action.payload.error,\n }\n\n case types.UPDATE_BUSINESS_PENDING:\n return {\n ...state,\n loading: true,\n };\n case types.UPDATE_BUSINESS_SUCCESS:\n return {\n ...state,\n loading: false,\n updatedBusiness: action.payload.updatedBusiness,\n };\n case types.UPDATE_BUSINESS_FAILURE:\n return {\n ...state,\n loading: false,\n updatedBusiness: null,\n error: action.payload.error,\n }\n\n case types.FETCH_BUSINESS_PENDING:\n return {\n ...state,\n businessLoading: true,\n };\n case types.FETCH_BUSINESS_SUCCESS:\n return {\n ...state,\n businessLoading: false,\n business: action.payload.business,\n };\n case types.FETCH_BUSINESS_FAILURE:\n return {\n ...state,\n businessLoading: false,\n business: null,\n error: action.payload.error,\n }\n default:\n return state;\n }\n}","import * as types from '../constants';\n\nconst initialState: {\n loading: boolean,\n error: any,\n} = {\n loading: false,\n error: null,\n};\n\n\nexport default function featuredBlockReducer(state = initialState, action: any) {\n switch (action.type) {\n case types.CREATE_FEATURED_BLOCK_PENDING:\n return {\n ...state,\n loading: true,\n };\n case types.CREATE_FEATURED_BLOCK_SUCCESS:\n return {\n ...state,\n loading: false,\n };\n case types.CREATE_FEATURED_BLOCK_FAILURE:\n return {\n ...state,\n loading: false,\n error: action.payload.error,\n }\n\n default:\n return state;\n }\n}","import * as types from '../constants';\n\nconst initialState: {\n loading: boolean,\n error: any,\n} = {\n loading: false,\n error: null,\n};\n\nexport default function standardBlockReducer(state = initialState, action: any) {\n switch (action.type) {\n case types.STANDARD_BLOCK_CREATE_PENDING:\n return {\n ...state,\n loading: true,\n };\n case types.STANDARD_BLOCK_CREATE_SUCCESS:\n return {\n ...state,\n loading: false,\n };\n case types.STANDARD_BLOCK_CREATE_FAILURE:\n return {\n ...state,\n loading: false,\n error: action.payload.error,\n }\n case types.STANDARD_BLOCK_GET_AVAILABLE_OPTIONS_PENDING:\n return {\n ...state,\n loading: true,\n }\n case types.STANDARD_BLOCK_GET_AVAILABLE_OPTIONS_SUCCESS:\n return {\n ...state,\n availableOptions: action.payload.availableOptions,\n loading: false,\n }\n case types.STANDARD_BLOCK_GET_AVAILABLE_OPTIONS_FAILURE:\n return {\n ...state,\n loading: false,\n error: action.payload.error,\n }\n\n default:\n return state;\n }\n}","import * as types from '../constants';\n\nconst initialState: {\n loading: boolean,\n error: any,\n profiles: any[],\n profile: any,\n} = {\n loading: false,\n error: null,\n profiles: [],\n profile: null,\n};\n\nexport default function profileReducer(state = initialState, action: any) {\n switch (action.type) {\n case types.PROFILE_GET_ALL_PENDING:\n return {\n ...state,\n loading: true,\n };\n case types.PROFILE_GET_ALL_SUCCESS:\n return {\n ...state,\n loading: false,\n profiles: action.payload.profiles,\n };\n case types.PROFILE_GET_ALL_FAILURE:\n return {\n ...state,\n loading: false,\n profiles: [],\n error: action.payload.error,\n }\n\n case types.PROFILE_GET_PENDING:\n return {\n ...state,\n loading: true,\n };\n case types.PROFILE_GET_SUCCESS:\n return {\n ...state,\n loading: false,\n profile: action.payload.profile,\n };\n case types.PROFILE_GET_FAILURE:\n return {\n ...state,\n loading: false,\n profile: null,\n error: action.payload.error,\n }\n\n case types.PROFILE_CREATE_PENDING:\n return {\n ...state,\n loading: true,\n };\n case types.PROFILE_CREATE_SUCCESS:\n return {\n ...state,\n loading: false,\n };\n case types.PROFILE_CREATE_FAILURE:\n return {\n ...state,\n loading: false,\n error: action.payload.error,\n }\n\n case types.PROFILE_UPDATE_PENDING:\n return {\n ...state,\n loading: true,\n };\n case types.PROFILE_UPDATE_SUCCESS:\n return {\n ...state,\n loading: false,\n };\n case types.PROFILE_UPDATE_FAILURE:\n return {\n ...state,\n loading: false,\n error: action.payload.error,\n }\n\n case types.PROFILE_GET_CURRENT_PENDING:\n return {\n ...state,\n loading: true,\n };\n case types.PROFILE_GET_CURRENT_SUCCESS:\n return {\n ...state,\n loading: false,\n currentProfile: action.payload.profile,\n };\n case types.PROFILE_GET_CURRENT_FAILURE:\n return {\n ...state,\n loading: false,\n currentProfile: null,\n error: action.payload.error,\n }\n\n default:\n return state;\n }\n}","import { combineReducers } from 'redux';\n\nimport * as types from '../constants'\nimport businessReducer from './businessReducer';\nimport featuredBlockReducer from './featuredBlockReducer';\nimport standardBlockReducer from './standardBlockReducer';\nimport profileReducer from './profileReducer';\n\n\nconst appReducer = combineReducers({\n businessReducer,\n featuredBlockReducer,\n standardBlockReducer,\n profileReducer,\n})\n\nconst rootReducer = (state: any, action: any) => {\n console.log(action)\n if (action.type === types.USER_LOGOUT) {\n state = undefined\n }\n\n return appReducer(state, action)\n}\n\nexport default rootReducer;","import { IBusiness } from \"../shared/classes/Business.class\";\n\nexport const USER_LOGOUT = 'USER_LOGOUT';\n\nexport const FETCH_BUSINESSES_PENDING = 'FETCH_BUSINESSES_PENDING';\nexport const FETCH_BUSINESSES_SUCCESS = 'FETCH_BUSINESSES_SUCCESS';\nexport const FETCH_BUSINESSES_FAILURE = 'FETCH_BUSINESSES_FAILURE';\n\ninterface FetchBusinessesPendingAction {\n type: typeof FETCH_BUSINESSES_PENDING;\n}\ninterface FetchBusinessesSuccessAction {\n type: typeof FETCH_BUSINESSES_SUCCESS;\n payload: {\n businesses: IBusiness[]\n }\n}interface FetchBusinessesFailureAction {\n type: typeof FETCH_BUSINESSES_FAILURE;\n payload: {\n error: any;\n }\n}\n\nexport const CREATE_BUSINESS_PENDING = 'CREATE_BUSINESS_PENDING';\nexport const CREATE_BUSINESS_SUCCESS = 'CREATE_BUSINESS_SUCCESS';\nexport const CREATE_BUSINESS_FAILURE = 'CREATE_BUSINESS_FAILURE';\n\ninterface CreateBusinessPendingAction {\n type: typeof CREATE_BUSINESS_PENDING;\n}\ninterface CreateBusinessSuccessAction {\n type: typeof CREATE_BUSINESS_SUCCESS;\n payload: {\n createdBusiness: IBusiness;\n }\n}\ninterface CreateBusinessFailureAction {\n type: typeof CREATE_BUSINESS_FAILURE;\n payload: {\n error: any;\n }\n}\n\nexport const UPDATE_BUSINESS_PENDING = 'UPDATE_BUSINESS_PENDING';\nexport const UPDATE_BUSINESS_SUCCESS = 'UPDATE_BUSINESS_SUCCESS';\nexport const UPDATE_BUSINESS_FAILURE = 'UPDATE_BUSINESS_FAILURE';\n\ninterface UpdateBusinessPendingAction {\n type: typeof UPDATE_BUSINESS_PENDING;\n}\ninterface UpdateBusinessSuccessAction {\n type: typeof UPDATE_BUSINESS_SUCCESS;\n payload: {\n updatedBusiness: IBusiness;\n }\n}\ninterface UpdateBusinessFailureAction {\n type: typeof UPDATE_BUSINESS_FAILURE;\n payload: {\n error: any;\n }\n}\n\nexport const FETCH_BUSINESS_PENDING = 'FETCH_BUSINESS_PENDING';\nexport const FETCH_BUSINESS_SUCCESS = 'FETCH_BUSINESS_SUCCESS';\nexport const FETCH_BUSINESS_FAILURE = 'FETCH_BUSINESS_FAILURE';\n\ninterface FetchBusinessPendingAction {\n type: typeof FETCH_BUSINESS_PENDING;\n}interface FetchBusinessSuccessAction {\n type: typeof FETCH_BUSINESS_SUCCESS;\n payload: {\n business: IBusiness;\n }\n}\ninterface FetchBusinessFailureAction {\n type: typeof FETCH_BUSINESS_FAILURE;\n payload: {\n error: any;\n }\n}\n\nexport type BusinessActionTypes = FetchBusinessPendingAction | FetchBusinessSuccessAction | FetchBusinessFailureAction | CreateBusinessPendingAction | CreateBusinessSuccessAction | CreateBusinessFailureAction | \n FetchBusinessesPendingAction | FetchBusinessesSuccessAction | FetchBusinessesFailureAction | UpdateBusinessSuccessAction | UpdateBusinessFailureAction | UpdateBusinessPendingAction;\n\nexport const CREATE_FEATURED_BLOCK_PENDING = 'CREATE_FEATURED_BLOCK_PENDING';\nexport const CREATE_FEATURED_BLOCK_SUCCESS = 'CREATE_FEATURED_BLOCK_SUCCESS';\nexport const CREATE_FEATURED_BLOCK_FAILURE = 'CREATE_FEATURED_BLOCK_FAILURE';\n\nexport const STANDARD_BLOCK_CREATE_PENDING = 'STANDARD_BLOCK_CREATE_PENDING';\nexport const STANDARD_BLOCK_CREATE_SUCCESS = 'STANDARD_BLOCK_CREATE_SUCCESS';\nexport const STANDARD_BLOCK_CREATE_FAILURE = 'STANDARD_BLOCK_CREATE_FAILURE';\nexport const STANDARD_BLOCK_GET_AVAILABLE_OPTIONS_PENDING = 'STANDARD_BLOCK_GET_AVAILABLE_OPTIONS_PENDING';\nexport const STANDARD_BLOCK_GET_AVAILABLE_OPTIONS_SUCCESS = 'STANDARD_BLOCK_GET_AVAILABLE_OPTIONS_SUCCESS';\nexport const STANDARD_BLOCK_GET_AVAILABLE_OPTIONS_FAILURE = 'STANDARD_BLOCK_GET_AVAILABLE_OPTIONS_FAILURE';\n\nexport const PROFILE_GET_ALL_PENDING = 'PROFILE_GET_ALL_PENDING';\nexport const PROFILE_GET_ALL_SUCCESS = 'PROFILE_GET_ALL_SUCCESS';\nexport const PROFILE_GET_ALL_FAILURE = 'PROFILE_GET_ALL_FAILURE';\nexport const PROFILE_GET_PENDING = 'PROFILE_GET_PENDING';\nexport const PROFILE_GET_SUCCESS = 'PROFILE_GET_SUCCESS';\nexport const PROFILE_GET_FAILURE = 'PROFILE_GET_FAILURE';\nexport const PROFILE_GET_CURRENT_PENDING = 'PROFILE_GET_CURRENT_PENDING';\nexport const PROFILE_GET_CURRENT_SUCCESS = 'PROFILE_GET_CURRENT_SUCCESS';\nexport const PROFILE_GET_CURRENT_FAILURE = 'PROFILE_GET_CURRENT_FAILURE';\nexport const PROFILE_CREATE_PENDING = 'PROFILE_CREATE_PENDING';\nexport const PROFILE_CREATE_SUCCESS = 'PROFILE_CREATE_SUCCESS';\nexport const PROFILE_CREATE_FAILURE = 'PROFILE_CREATE_FAILURE';\nexport const PROFILE_UPDATE_PENDING = 'PROFILE_UPDATE_PENDING';\nexport const PROFILE_UPDATE_SUCCESS = 'PROFILE_UPDATE_SUCCESS';\nexport const PROFILE_UPDATE_FAILURE = 'PROFILE_UPDATE_FAILURE';\n","import {createStore, applyMiddleware, compose} from 'redux';\nimport thunk from 'redux-thunk';\n\nimport rootReducer from './reducers/index';\n\ndeclare var window: any;\n\n// support redux devtools\nconst composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;\n\nexport default () => {\n const store = createStore(\n rootReducer,\n composeEnhancers(applyMiddleware(thunk)),\n );\n\n return {\n store\n }\n}","import { IonButton, IonContent, IonImg, IonPage } from '@ionic/react';\nimport React from 'react';\nimport './Home.css';\n\nconst Home: React.FC = () => {\n return (\n \n \n \n \n \n \n \n Login\n \n \n \n \n );\n};\n\nexport default Home;\n","export function getPageTitle({\n title\n}: {\n title: string;\n}) {\n return `${title} | RealApp`;\n}\n\nexport function formatHtml(html: string) {\n // wrap videos to make them responsive\n let modifiedHtml = html.replace(/()/gi, '$1');\n return modifiedHtml;\n}\n","import {\n IonButton,\n IonIcon,\n} from \"@ionic/react\";\nimport React from \"react\";\nimport { closeOutline } from 'ionicons/icons';\n\ninterface Props {\n onClick: (e: any) => void;\n}\n\nconst ModalCloseButton: React.FC = (props) => {\n return (\n \n \n \n )\n};\n\nexport default ModalCloseButton;","import {\n IonCard,\n IonCardHeader,\n IonCardTitle,\n IonContent,\n IonHeader,\n IonImg,\n IonModal,\n IonRouterLink,\n IonToolbar,\n} from \"@ionic/react\";\nimport React, { useState } from \"react\";\nimport { formatHtml } from \"../../services/pageService\";\nimport ModalCloseButton from \"./ModalCloseButton\";\n\nimport './BlockCard.css';\n\ninterface Props {\n title: string;\n image: string;\n type: string;\n content: string;\n linkUrl: string;\n pdf: string;\n slug: string;\n name: string;\n logo: string;\n}\n\nconst BlockCard: React.FC = (props) => {\n const {\n title,\n image,\n type,\n content,\n linkUrl,\n pdf,\n slug,\n name,\n logo,\n } = props;\n\n const [showModal, setShowModal] = useState(false);\n\n const cardContent = (\n setShowModal(true) : () => {}}>\n \n \n \n \n {title}\n \n \n );\n\n if (type === 'external') {\n return (\n \n {cardContent}\n \n );\n } else if (type === 'pdf') {\n return (\n \n {cardContent}\n \n );\n } else if (type === 'listing') {\n return (\n \n {cardContent}\n \n );\n } else if (type === 'content') {\n return (\n <>\n {cardContent}\n setShowModal(false)}>\n \n \n {/* this is here to center the logo in the modal header */}\n \n setShowModal(false)} class=\"logo-container\">\n \n \n setShowModal(false)} />\n \n \n \n {title}\n \n \n \n >\n );\n }\n\n return (\n cardContent\n );\n}\n\nexport default BlockCard;\n","import { IonHeader, IonRouterLink, IonToolbar } from \"@ionic/react\"\nimport React from \"react\"\n\nimport './Header.css';\n\ninterface Props {\n slug: string;\n name: string;\n logo: string;\n}\n\nconst Header: React.FC = (props) => {\n const {\n slug,\n name,\n logo,\n } = props;\n\n return (\n \n \n \n \n \n \n \n );\n}\n\nexport default Header\n","import * as types from '../constants';\nimport { BusinessActionTypes } from '../constants';\nimport { IBusiness } from '../../shared/classes/Business.class';\nimport { API } from 'aws-amplify';\nimport { IUpdateBusiness } from '../../interfaces';\n\nexport function fetchBusinesses() {\n return (dispatch: any, _getState: any) => {\n dispatch(fetchBusinessesStarted());\n\n API.get('admin', '/businesses', {\n response: true,\n // OPTIONAL\n // headers: {}, // OPTIONAL\n // queryStringParameters: { // OPTIONAL\n // name: 'param'\n // }\n })\n .then((response) => {\n console.log(response);\n dispatch(fetchBusinessesSuccess(response.data));\n })\n .catch((error) => {\n console.log(error);\n dispatch(fetchBusinessesFailure(error.response));\n });\n };\n};\n\nconst fetchBusinessesStarted = (): BusinessActionTypes => ({\n type: types.FETCH_BUSINESSES_PENDING,\n});\n\nconst fetchBusinessesSuccess = (businesses: IBusiness[]): BusinessActionTypes => ({\n type: types.FETCH_BUSINESSES_SUCCESS,\n payload: {\n businesses,\n },\n});\n\nconst fetchBusinessesFailure = (error: any): BusinessActionTypes => ({\n type: types.FETCH_BUSINESSES_FAILURE,\n payload: {\n error,\n },\n});\n\nexport function createBusiness({\n name,\n slug,\n type,\n}: {\n name: string,\n slug: string,\n type: string,\n}, onSuccess: () => void = () => {}, onError: () => void = () => {}) {\n return async (dispatch: any, _getState: any) => {\n dispatch(createBusinessStarted());\n\n API.post('admin', '/businesses', {\n body: {\n name,\n slug,\n type,\n },\n response: true,\n // OPTIONAL\n // headers: {}, // OPTIONAL\n // queryStringParameters: { // OPTIONAL\n // name: 'param'\n // }\n })\n .then((response) => {\n console.log(response);\n dispatch(createBusinessSuccess(response.data));\n onSuccess();\n })\n .catch((error) => {\n console.log(error);\n dispatch(createBusinessError(error.response));\n onError();\n });\n };\n};\n\nconst createBusinessStarted = (): BusinessActionTypes => ({\n type: types.CREATE_BUSINESS_PENDING,\n});\n\nconst createBusinessSuccess = (createdBusiness: IBusiness): BusinessActionTypes => ({\n type: types.CREATE_BUSINESS_SUCCESS,\n payload: {\n createdBusiness,\n },\n});\n\nconst createBusinessError = (error: any): BusinessActionTypes => ({\n type: types.CREATE_BUSINESS_FAILURE,\n payload: {\n error,\n },\n});\n\nexport function fetchBusinessById(id: number, onSuccess: () => void = () => {}, onError: () => void = () => {}) {\n return (dispatch: any, _getState: any) => {\n dispatch(fetchBusinessStarted());\n\n API.get('admin', `/businesses/${id}`, {\n response: true,\n // OPTIONAL\n // headers: {}, // OPTIONAL\n // queryStringParameters: { // OPTIONAL\n // name: 'param'\n // }\n })\n .then((response) => {\n console.log(response);\n dispatch(fetchBusinessSuccess(response.data));\n onSuccess();\n })\n .catch((error) => {\n console.log(error);\n dispatch(fetchBusinessFailure(error.response));\n onError();\n });\n };\n};\n\nexport function fetchBusinessBySlug(slug: string, onSuccess: (data: any) => void = () => {}, onError: () => void = () => {}) {\n return (dispatch: any, _getState: any) => {\n dispatch(fetchBusinessStarted());\n\n API.get('public', `/businesses?slug=${slug}`, {\n response: true,\n // OPTIONAL\n // headers: {}, // OPTIONAL\n // queryStringParameters: { // OPTIONAL\n // name: 'param'\n // }\n })\n .then((response) => {\n console.log(response);\n dispatch(fetchBusinessSuccess(response.data));\n onSuccess(response.data);\n })\n .catch((error) => {\n console.log(error);\n dispatch(fetchBusinessFailure(error.response));\n onError();\n });\n };\n};\n\nconst fetchBusinessStarted = () => ({\n type: types.FETCH_BUSINESS_PENDING,\n});\n\nconst fetchBusinessSuccess = (business: any) => ({\n type: types.FETCH_BUSINESS_SUCCESS,\n payload: {\n business,\n },\n});\n\nconst fetchBusinessFailure = (error: any) => ({\n type: types.FETCH_BUSINESS_FAILURE,\n payload: {\n error,\n },\n});\n\nexport function updateBusiness(business: IUpdateBusiness, onSuccess: () => void = () => {}, onError: () => void = () => {}) {\n return async (dispatch: any, _getState: any) => {\n dispatch(updateBusinessStarted());\n\n API.put('admin', `/businesses/${business.id}`, {\n body: business,\n response: true,\n // OPTIONAL\n // headers: {}, // OPTIONAL\n // queryStringParameters: { // OPTIONAL\n // name: 'param'\n // }\n })\n .then((response) => {\n console.log(response);\n dispatch(updateBusinessSuccess(response.data));\n onSuccess();\n })\n .catch((error) => {\n console.log(error);\n dispatch(updateBusinessError(error.response));\n onError();\n });\n };\n};\n\nconst updateBusinessStarted = (): BusinessActionTypes => ({\n type: types.UPDATE_BUSINESS_PENDING,\n});\n\nconst updateBusinessSuccess = (updatedBusiness: IBusiness): BusinessActionTypes => ({\n type: types.UPDATE_BUSINESS_SUCCESS,\n payload: {\n updatedBusiness,\n },\n});\n\nconst updateBusinessError = (error: any): BusinessActionTypes => ({\n type: types.UPDATE_BUSINESS_FAILURE,\n payload: {\n error,\n },\n});\n","import { IonFooter, IonIcon, IonRouterLink, IonText, IonToolbar } from \"@ionic/react\"\nimport React from \"react\"\n\nimport { logoFacebook, logoInstagram, logoLinkedin, logoTwitter, logoYoutube } from 'ionicons/icons';\n\nimport './Footer.css';\n\ninterface Props {\n flipbookLink: string;\n flipbookLinkTextColor: string;\n flipbookLinkBackgroundColor: string;\n name: string;\n address: string;\n city: string;\n state: string;\n zip: string;\n phone: string;\n website: string;\n facebook: string;\n instagram: string;\n twitter: string;\n linkedin: string;\n youtube: string;\n}\n\nconst Footer: React.FC = (props) => {\n const {\n flipbookLink,\n flipbookLinkTextColor,\n flipbookLinkBackgroundColor,\n name,\n address,\n city,\n state,\n zip,\n phone,\n website,\n } = props;\n\n return (\n \n {flipbookLink && \n \n Local Information\n \n }\n \n \n {name}\n {address}\n \n {city}\n {city && state && ,}\n {state}\n {zip}\n \n \n {phone && {phone}}\n {phone && website && | }\n {website && {website}}\n \n \n \n {props.facebook && \n \n }\n {props.instagram && \n \n }\n {props.twitter && \n \n }\n {props.linkedin && \n \n }\n {props.youtube && \n \n }\n \n \n All rights reserved © 2020 {name}\n \n \n \n Powered by REAL\n \n \n \n );\n}\n\nexport default Footer\n","import { IonContent, IonHeader, IonModal, IonRouterLink, IonText, IonToolbar } from \"@ionic/react\"\nimport React, { useState } from \"react\"\nimport { formatHtml } from \"../services/pageService\";\nimport ModalCloseButton from \"../shared/components/ModalCloseButton\";\n\nimport './Announcement.css';\n\ninterface Props {\n slug: string;\n logo: string;\n name: string;\n text: string;\n backgroundColor: string;\n textColor: string;\n type: string;\n content: string;\n linkUrl: string;\n pdf: string;\n}\n\nconst Announcement: React.FC = (props) => {\n const {\n slug,\n logo,\n name,\n text,\n backgroundColor,\n textColor,\n type,\n content,\n linkUrl,\n pdf,\n } = props;\n\n const [showModal, setShowModal] = useState(false);\n\n if (!text || !type || type === 'off') {\n return null;\n }\n\n const announcementInner = (\n setShowModal(true) : () => {}}\n class=\"announcement\"\n style={{\n '--background': backgroundColor,\n '--color': textColor,\n }}>\n \n {text}\n \n \n )\n\n if (type === 'content' && content) {\n return (\n <>\n {announcementInner}\n setShowModal(false)}>\n \n \n {/* this is here to center the logo in the modal header */}\n \n setShowModal(false)} class=\"logo-container\">\n \n \n setShowModal(false)} />\n \n \n \n \n \n \n >\n );\n } else if (type === 'external' && linkUrl) {\n return (\n \n {announcementInner}\n \n );\n } else if (type === 'pdf' && pdf) {\n return (\n \n {announcementInner}\n \n );\n }\n\n return null;\n}\n\nexport default Announcement\n","import { IonImg } from \"@ionic/react\"\nimport React from \"react\"\n\nimport './HeroImage.css';\n\ninterface Props {\n name: string;\n image: string;\n}\n\nconst HeroImage: React.FC = (props) => {\n const { image, name } = props;\n\n return (\n \n \n \n );\n}\n\nexport default HeroImage\n","import {\n IonContent,\n IonPage,\n IonTitle,\n IonToolbar,\n IonText,\n IonRow,\n IonCol,\n IonLoading\n} from '@ionic/react';\nimport React, { useEffect } from 'react';\nimport { RouteComponentProps } from 'react-router';\nimport BlockCard from '../shared/components/BlockCard';\nimport Header from '../shared/components/Header';\nimport './Landing.css';\nimport {fetchBusinessBySlug} from '../redux/actions/businessActions';\nimport { useDispatch, useSelector } from 'react-redux';\nimport Footer from '../components/Footer';\nimport { IBlock } from '../interfaces';\nimport Announcement from '../components/Announcement';\nimport HeroImage from '../shared/components/HeroImage';\nimport { formatHtml } from '../services/pageService';\n\ndeclare const location: any;\n\nconst stripHtml = (html: string) => {\n const temporalDivElement = document.createElement(\"div\");\n temporalDivElement.innerHTML = html;\n return temporalDivElement.textContent || temporalDivElement.innerText || '';\n}\n\ninterface Props extends RouteComponentProps<{\n slug: string;\n}> {}\n\nconst Landing: React.FC = ({match}) => {\n const dispatch = useDispatch();\n const {\n business\n } = useSelector((store: any) => ({\n business: store.businessReducer\n }));\n\n // only fetch business from API if slug is different\n useEffect(() => {\n if (!business.business || business.business.slug !== match.params.slug) {\n dispatch(fetchBusinessBySlug(match.params.slug, (data) => {\n // if the business is null or not enabled, redirect to app homepage\n if (!data || !data.enabled) {\n location.href = '/';\n }\n }));\n }\n }, [business.business, dispatch, match.params.slug]);\n\n return (\n \n {business.loading || !business.business ? (\n \n \n \n ) : (\n <>\n \n \n {/* announcement */}\n \n {business.business.mainImage && }\n {/* tagline */}\n {business.business?.taglineText && \n \n \n {business.business?.taglineText}\n \n \n }\n {stripHtml(business.business.mainContent) && \n \n \n \n \n \n }\n \n {business.business.featuredBlocks.filter((block: IBlock) => block.enabled).map((featuredBlock: IBlock) => (\n \n \n \n ))}\n \n \n \n >\n )}\n \n );\n};\n\nexport default Landing;","import {\n IonContent,\n IonPage,\n IonRow,\n IonCol,\n IonLoading,\n} from '@ionic/react';\nimport React, { useEffect } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { RouteComponentProps } from 'react-router';\nimport Announcement from '../components/Announcement';\nimport Footer from '../components/Footer';\nimport Header from '../shared/components/Header';\nimport { fetchBusinessBySlug } from '../redux/actions/businessActions';\nimport './Listing.css';\nimport BlockCard from '../shared/components/BlockCard';\nimport { IBlock } from '../interfaces';\n\ndeclare const location: any;\n\ninterface Props extends RouteComponentProps<{\n slug: string;\n}> {}\n\nconst Listing: React.FC = ({match}) => {\n const dispatch = useDispatch();\n const {\n business\n } = useSelector((store: any) => ({\n business: store.businessReducer\n }));\n\n // only fetch business from API if slug is different\n useEffect(() => {\n if (!business.business || business.business.slug !== match.params.slug) {\n dispatch(fetchBusinessBySlug(match.params.slug, (data) => {\n // if the business is null or not enabled, redirect to app homepage\n if (!data || !data.enabled) {\n location.href = '/';\n }\n }));\n }\n }, [business.business, dispatch, match.params.slug]);\n\n const getHeaderText = (name: string, featuredBlocks: IBlock[]) => {\n const listingFeaturedBlocks = featuredBlocks.filter((featuredBlock: IBlock) => !featuredBlock.linkUrl && !featuredBlock.content);\n\n if (listingFeaturedBlocks.length === 0) {\n return business.name;\n } else {\n return listingFeaturedBlocks[0].name;\n }\n }\n\n return (\n \n {business.loading || !business.business ? (\n \n \n \n ) : (\n <>\n \n \n {/* announcement */}\n \n \n \n \n {getHeaderText(business.business.name, business.business.featuredBlocks)}\n \n \n \n \n {business.business.standardBlocks.filter((standardBlock: IBlock) => standardBlock.enabled).map((standardBlock: IBlock) => (\n \n \n \n ))}\n \n \n \n >\n )}\n \n );\n};\n\nexport default Listing;","\nimport {\n IonContent,\n IonMenu,\n IonHeader,\n IonToolbar,\n IonTitle,\n IonList,\n IonItem,\n IonIcon,\n IonLabel,\n} from '@ionic/react';\nimport React from 'react';\nimport { briefcaseOutline, homeOutline, peopleOutline } from 'ionicons/icons';\nimport { useSelector } from 'react-redux';\n\nconst AdminMenu: React.FC = () => {\n const {\n profile\n } = useSelector((store: any) => ({\n profile: store.profileReducer\n }));\n\n return (\n \n \n \n Menu\n \n \n \n \n \n \n Home\n \n {profile.currentProfile?.role === 'admin' && \n \n Businesses\n }\n {profile.currentProfile?.role === 'admin' && \n \n Users\n }\n {profile.currentProfile?.role === 'customer' && profile.currentProfile?.business &&\n \n \n Business Info\n }\n {profile.currentProfile?.role === 'customer' && profile.currentProfile?.business &&\n \n \n Business Landing\n }\n {profile.currentProfile?.role === 'customer' && profile.currentProfile?.business &&\n \n \n Business Featured Blocks\n }\n {profile.currentProfile?.role === 'customer' && profile.currentProfile?.business &&\n \n \n Business Standard Blocks\n }\n \n \n \n );\n};\n\nexport default AdminMenu;\n","import {\n IonButton,\n IonHeader,\n IonLabel,\n IonTitle,\n IonToolbar,\n} from '@ionic/react';\nimport { Auth } from 'aws-amplify';\nimport React from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { logout } from '../../redux/actions/rootActions';\n\ndeclare const location: any;\n\ninterface Props {\n title: string;\n}\n\nconst AdminHeader: React.FC = (props) => {\n const dispatch = useDispatch();\n const {\n profile,\n } = useSelector((store: any) => ({\n profile: store.profileReducer,\n }));\n\n return (\n \n \n {props.title}\n {profile.currentProfile?.email}\n {\n Auth.signOut()\n .then(data => {\n dispatch(logout());\n location.href = '/admin';\n })\n .catch(err => console.log(err));\n }}>\n Log Out\n \n \n \n );\n};\n\nexport default AdminHeader;\n\n","export enum FileUploadTypes {\n image,\n pdf,\n}\n","import * as types from '../constants';\n\nexport function logout() {\n return {\n type: types.USER_LOGOUT\n }\n}\n","import {\n IonButton,\n IonButtons,\n IonToolbar,\n} from '@ionic/react';\nimport React from 'react';\n\ninterface Props {\n businessId: number;\n}\n\nconst AdminBusinessMenu: React.FC = (props) => {\n return (\n \n \n \n Business Information\n \n \n Landing Page\n \n \n Featured Blocks\n \n \n Standard Blocks\n \n \n \n );\n};\n\nexport default AdminBusinessMenu;\n","import { IonItem, IonLabel, IonInput } from \"@ionic/react\"\nimport React from \"react\"\n\ninterface Props {\n label: string;\n value: string;\n placeholder: string;\n disabled?: boolean;\n onIonChange: (e: any) => void;\n}\n\nconst FormInput: React.FC = (props) => {\n const {\n label,\n value,\n placeholder,\n disabled,\n onIonChange,\n } = props;\n\n return (\n \n {label}\n \n \n );\n}\n\nexport default FormInput;\n","import {\n IonItem,\n IonLabel,\n IonButton,\n IonImg,\n IonIcon,\n IonItemDivider,\n IonRouterLink\n} from \"@ionic/react\"\nimport React, { useState } from \"react\"\nimport { cloudUploadOutline, documentAttachOutline } from 'ionicons/icons';\nimport axios from 'axios';\n\nimport './FileUpload.css';\nimport { FileUploadTypes } from \"../../enums\";\n\ninterface Props {\n label: string;\n type: FileUploadTypes;\n fileUrl?: string;\n buttonText: string;\n onChange: (url: string) => void;\n onDelete?: () => void;\n}\n\nconst FileUpload: React.FC = (props) => {\n const {\n label,\n type,\n fileUrl,\n buttonText,\n onChange,\n onDelete,\n } = props;\n\n const [inputElement, setInputElement] = useState({} as HTMLInputElement);\n\n let accept = '';\n\n if (type === FileUploadTypes.image) {\n accept = 'image/*';\n } else if (type === FileUploadTypes.pdf) {\n accept = 'application/pdf';\n }\n\n return (\n <>\n \n {label}\n \n \n {fileUrl && type === FileUploadTypes.image && }\n {fileUrl && type === FileUploadTypes.pdf && \n \n View PDF\n }\n {!fileUrl && }\n inputElement.click()} expand=\"block\" slot=\"end\">\n (input !== null ? setInputElement(input) : null)}\n accept={accept}\n hidden\n type=\"file\"\n onChange={async (e) => {\n const file = (e.nativeEvent.target as HTMLInputElement).files?.item(0) || ({} as File);\n const response = await axios.get(`${process.env.REACT_APP_API_BASE_URL}/media-upload/upload?type=${encodeURIComponent(file.type)}`);\n const { putUrl, Key } = response.data as { putUrl: string, Key: string };\n await axios.put(putUrl, file, { headers: { Key, 'Content-Type': file.type }});\n onChange(`https://${process.env.REACT_APP_S3_MEDIA_LIBRARY_BUCKET}.s3.amazonaws.com/${Key}`);\n }}\n />\n {buttonText}\n \n {onDelete && \n Delete\n }\n \n >\n );\n}\n\nexport default FileUpload;\n","import {\n IonAlert,\n IonButton,\n IonCheckbox,\n IonContent,\n IonFooter,\n IonItem,\n IonLabel,\n IonLoading,\n IonPage,\n IonText,\n} from '@ionic/react';\nimport React, { useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { RouteComponentProps } from 'react-router';\nimport QRCode from 'qrcode.react';\nimport { fetchBusinessById, fetchBusinesses, updateBusiness } from '../redux/actions/businessActions';\nimport AdminHeader from '../shared/components/AdminHeader';\nimport AdminBusinessMenu from '../shared/components/AdminBusinessMenu';\nimport FormInput from '../shared/components/FormInput';\nimport FileUpload from '../shared/components/FileUpload';\nimport { FileUploadTypes } from '../enums';\n\ninterface Props extends RouteComponentProps<{\n id: string;\n}> {}\n\nconst AdminBusinessDetail: React.FC = ({match}) => {\n const dispatch = useDispatch();\n const {\n business,\n profile,\n } = useSelector((store: any) => ({\n business: store.businessReducer,\n profile: store.profileReducer,\n }));\n\n useEffect(() => {\n // fetch business when id param changes\n dispatch(fetchBusinessById(parseInt(match.params.id)));\n }, [dispatch, match.params.id]);\n\n useEffect(() => {\n setEnabled(business.business?.enabled || false);\n setName(business.business?.name || '');\n setSlug(business.business?.slug || '');\n setLogo(business.business?.logo || '');\n setFlipbookLink(business.business?.flipbookLink || '');\n setAddress(business.business?.address || '');\n setCity(business.business?.city || '');\n setState(business.business?.state || '');\n setZip(business.business?.zip || '');\n setPhone(business.business?.phone || '');\n setWebsite(business.business?.website || '');\n setFacebook(business.business?.facebook || '');\n setInstagram(business.business?.instagram || '');\n setTwitter(business.business?.twitter || '');\n setLinkedin(business.business?.linkedin || '');\n setYoutube(business.business?.youtube || '');\n }, [business.business]);\n\n const [enabled, setEnabled] = useState(business.business?.enabled || false);\n const [name, setName] = useState(business.business?.name || '');\n const [slug, setSlug] = useState(business.business?.slug || '');\n const [logo, setLogo] = useState(business.business?.logo || '');\n const [flipbookLink, setFlipbookLink] = useState(business.business?.flipbookLink || '');\n const [address, setAddress] = useState(business.business?.address || '');\n const [city, setCity] = useState(business.business?.city || '');\n const [state, setState] = useState(business.business?.state || '');\n const [zip, setZip] = useState(business.business?.zip || '');\n const [phone, setPhone] = useState(business.business?.phone || '');\n const [website, setWebsite] = useState(business.business?.website || '');\n const [facebook, setFacebook] = useState(business.business?.facebook || '');\n const [instagram, setInstagram] = useState(business.business?.instagram || '');\n const [twitter, setTwitter] = useState(business.business?.twitter || '');\n const [linkedin, setLinkedin] = useState(business.business?.linkedin || '');\n const [youtube, setYoutube] = useState(business.business?.youtube || '');\n const [showErrorAlert, setShowErrorAlert] = useState(false);\n\n const QR_CODE_ID = 'business-qr-code';\n\n const downloadQrCode = () => {\n const canvas = document.getElementById(QR_CODE_ID) as HTMLCanvasElement;\n if (canvas) {\n const pngUrl = canvas\n .toDataURL(\"image/png\")\n .replace(\"image/png\", \"image/octet-stream\");\n let downloadLink = document.createElement(\"a\");\n downloadLink.href = pngUrl;\n downloadLink.download = `${slug}.png`;\n document.body.appendChild(downloadLink);\n downloadLink.click();\n document.body.removeChild(downloadLink);\n }\n };\n\n return (\n \n \n \n {!business.business ? (\n \n ) : (\n <>\n \n \n Business Information\n Upload your logo, your favorite photo, select colors and fonts, and enter your copy to create your custom landing page.\n \n \n \n \n Download QR Code\n \n {profile.currentProfile?.role === 'admin' && \n Enabled\n setEnabled(e.detail.checked)} />\n }\n setName(e.detail.value as string)}\n />\n {profile.currentProfile?.role === 'admin' && setSlug(e.detail.value as string)}\n />}\n setLogo(url)}\n onDelete={() => setLogo('')}\n />\n setFlipbookLink(e.detail.value as string)}\n />\n setAddress(e.detail.value as string)}\n />\n setCity(e.detail.value as string)}\n />\n setState(e.detail.value as string)}\n />\n setZip(e.detail.value as string)}\n />\n setPhone(e.detail.value as string)}\n />\n setWebsite(e.detail.value as string)}\n />\n setFacebook(e.detail.value as string)}\n />\n setInstagram(e.detail.value as string)}\n />\n setTwitter(e.detail.value as string)}\n />\n setLinkedin(e.detail.value as string)}\n />\n setYoutube(e.detail.value as string)}\n />\n >\n )}\n \n \n {business.business && field.length === 0).length > 0}\n onClick={() => dispatch(\n updateBusiness(\n {\n id: business.business.id,\n enabled,\n name,\n slug,\n logo,\n flipbookLink,\n address,\n city,\n state,\n zip,\n phone,\n website,\n facebook,\n instagram,\n twitter,\n youtube,\n linkedin,\n },\n () => {\n dispatch(fetchBusinessById(business.business.id));\n dispatch(fetchBusinesses());\n },\n () => {\n setShowErrorAlert(true);\n }\n )\n )}\n >Update}\n \n {showErrorAlert && setShowErrorAlert(false)}\n header={'Error'}\n subHeader={'Please Check Inputs'}\n message={Array.isArray(business.error?.data?.message) ? business.error?.data?.message?.join('') : 'Error Updating Business'}\n />}\n \n );\n};\n\nexport default AdminBusinessDetail;\n","import { IonItem, IonLabel, IonSelect, IonSelectOption } from \"@ionic/react\"\nimport React from \"react\"\n\ninterface Props {\n label: string;\n value: string;\n placeholder: string;\n options: {\n label: string,\n value: string,\n }[],\n onIonChange: (e: any) => void;\n}\n\nconst SelectInput: React.FC = (props) => {\n const {\n label,\n value,\n placeholder,\n options,\n onIonChange,\n } = props;\n\n return (\n \n {label}\n \n {options.map((option, index) => (\n \n {option.label}\n \n ))}\n \n \n );\n}\n\nexport default SelectInput;\n","import {\n IonAlert,\n IonButton,\n IonContent,\n IonFooter,\n IonHeader,\n IonModal,\n IonTitle,\n IonToolbar\n} from \"@ionic/react\";\nimport React, { useState } from \"react\";\nimport SelectInput from \"./SelectInput\";\n// import FileUpload from \"./FileUpload\";\nimport FormInput from \"./FormInput\";\nimport ModalCloseButton from \"./ModalCloseButton\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { createBusiness } from \"../../redux/actions/businessActions\";\n\ninterface Props {\n isOpen: boolean;\n title: string;\n // onSubmitClick: (name: string, image: string, content: string, linkUrl: string) => void,\n onCloseClick: () => void,\n onSuccess: () => void,\n}\n\nconst CreateBusinessModal: React.FC = (props) => {\n const dispatch = useDispatch();\n const {\n business,\n } = useSelector((store: any) => ({\n business: store.businessReducer,\n }));\n\n const [name, setName] = useState('');\n const [slug, setSlug] = useState('');\n const [type, setType] = useState('');\n const [showErrorAlert, setShowErrorAlert] = useState(false);\n\n return (\n \n \n \n {props.title}\n \n \n \n \n setName(e.detail.value as string)}\n />\n setSlug(e.detail.value as string)}\n />\n setType(e.detail.value)}\n />\n \n \n {\n dispatch(createBusiness(\n {\n name,\n slug,\n type,\n },\n () => {\n setName('');\n setSlug('');\n setType('');\n props.onSuccess();\n },\n () => setShowErrorAlert(true),\n ));\n }}>Create\n \n {showErrorAlert && setShowErrorAlert(false)}\n header={'Error'}\n subHeader={'Please Check Inputs'}\n message={Array.isArray(business.error?.data?.message) ? business.error?.data?.message?.join('') : 'Error Creating Business'}\n />}\n \n )\n}\n\nexport default CreateBusinessModal;\n","import {\n IonContent,\n IonPage,\n IonText,\n IonFooter,\n IonButton,\n IonList,\n IonItem,\n IonLoading,\n} from '@ionic/react';\nimport React, { useEffect, useState } from 'react';\nimport { fetchBusinesses } from '../redux/actions/businessActions';\nimport { useSelector } from 'react-redux';\nimport { IBusiness } from '../shared/classes/Business.class';\nimport { useDispatch } from \"react-redux\";\nimport { IBusinessReducerInitState } from '../redux/reducers/businessReducer';\nimport CreateBusinessModal from '../shared/components/CreateBusinessModal';\nimport AdminHeader from '../shared/components/AdminHeader';\n\ninterface IAdminBusinessesState extends IBusinessReducerInitState {\n showCreateModal: boolean;\n}\n\nconst AdminBusinesses: React.FC<{}> = (props) => {\n\n const dispatch = useDispatch();\n\n const {\n business\n } = useSelector((store: any) => ({\n business: store.businessReducer\n }));\n\n // const businessSelector = useSelector((store: any) => ({ businessSelector: store.businessReducer })).businessSelector;\n\n useEffect(() => {\n console.log('Landing.useEffect');\n dispatch(fetchBusinesses());\n }, [dispatch]);\n\n\n const [showCreateModal, setShowCreateModal] = useState(false);\n\n return (\n \n \n \n \n All Businesses\n \n {business.businessesLoading || business.loading ? (\n \n ) : null}\n \n {business.businesses.map((business: IBusiness) => (\n \n {business.name}\n \n ))}\n \n setShowCreateModal(false)}\n onSuccess={() => {\n dispatch(fetchBusinesses());\n setShowCreateModal(false);\n }}\n />\n \n \n setShowCreateModal(true)}>Create New Business\n \n \n )\n};\n \nexport default AdminBusinesses;\n","import {\n IonCard,\n IonCardHeader,\n IonCardTitle,\n IonCol,\n IonContent,\n IonGrid,\n IonPage,\n IonRouterLink,\n IonRow,\n} from '@ionic/react';\nimport React from 'react';\nimport { useSelector } from 'react-redux';\nimport AdminHeader from '../shared/components/AdminHeader';\n\nconst AdminHome: React.FC = () => {\n const {\n profile,\n } = useSelector((store: any) => ({\n profile: store.profileReducer,\n }));\n\n return (\n \n \n \n \n \n {profile.currentProfile?.role === 'admin' && <>\n \n \n \n \n Businesses\n \n \n \n \n \n \n \n \n Users\n \n \n \n \n >}\n {profile.currentProfile?.role === 'customer' && profile.currentProfile?.business && <>\n \n \n \n \n Business\n \n \n \n \n >}\n \n \n \n \n );\n};\n\nexport default AdminHome;\n","import * as types from '../constants';\nimport { ICreateProfile, IUpdateProfile } from '../../interfaces';\nimport { API } from 'aws-amplify';\n\nexport function fetchProfiles() {\n return (dispatch: any, _getState: any) => {\n dispatch(fetchProfilesPending());\n\n API.get('admin', '/profiles', {\n response: true,\n // OPTIONAL\n // headers: {}, // OPTIONAL\n // queryStringParameters: { // OPTIONAL\n // name: 'param'\n // }\n })\n .then((response) => {\n console.log(response);\n dispatch(fetchProfilesSuccess(response.data));\n })\n .catch((error) => {\n console.log(error);\n dispatch(fetchProfilesFailure(error.response));\n });\n };\n};\n\nconst fetchProfilesPending = () => ({\n type: types.PROFILE_GET_ALL_PENDING,\n});\n\nconst fetchProfilesSuccess = (profiles: any) => ({\n type: types.PROFILE_GET_ALL_SUCCESS,\n payload: {\n profiles,\n },\n});\n\nconst fetchProfilesFailure = (error: any) => ({\n type: types.PROFILE_GET_ALL_FAILURE,\n payload: {\n error,\n },\n});\n\nexport function fetchProfileById(id: number, onSuccess: () => void = () => {}, onError: () => void = () => {}) {\n return (dispatch: any, _getState: any) => {\n dispatch(fetchProfilePending());\n\n API.get('admin', `/profiles/${id}`, {\n response: true,\n // OPTIONAL\n // headers: {}, // OPTIONAL\n // queryStringParameters: { // OPTIONAL\n // name: 'param'\n // }\n })\n .then((response) => {\n console.log(response);\n dispatch(fetchProfileSuccess(response.data));\n onSuccess();\n })\n .catch((error) => {\n console.log(error);\n dispatch(fetchProfileFailure(error.response));\n onError();\n });\n };\n};\n\nconst fetchProfilePending = () => ({\n type: types.PROFILE_GET_PENDING,\n});\n\nconst fetchProfileSuccess = (profile: any) => ({\n type: types.PROFILE_GET_SUCCESS,\n payload: {\n profile,\n },\n});\n\nconst fetchProfileFailure = (error: any) => ({\n type: types.PROFILE_GET_FAILURE,\n payload: {\n error,\n },\n});\n\nexport function createProfile(profile: ICreateProfile, onSuccess: () => void = () => {}, onError: () => void = () => {}) {\n return (dispatch: any, _getState: any) => {\n dispatch(createProfilePending());\n\n API.post('admin', '/profiles', {\n body: {\n email: profile.email,\n firstName: profile.firstName,\n lastName: profile.lastName,\n role: profile.role,\n business: profile.businessId,\n },\n response: true,\n // OPTIONAL\n // headers: {}, // OPTIONAL\n // queryStringParameters: { // OPTIONAL\n // name: 'param'\n // }\n })\n .then((response) => {\n console.log(response);\n dispatch(createProfileSuccess(response.data));\n onSuccess();\n })\n .catch((error) => {\n console.log(error);\n dispatch(createProfileError(error.response));\n onError();\n });\n };\n};\n\nconst createProfilePending = () => ({\n type: types.PROFILE_CREATE_PENDING,\n});\n\nconst createProfileSuccess = (createdProfile: any) => ({\n type: types.PROFILE_CREATE_SUCCESS,\n payload: {\n createdProfile,\n },\n});\n\nconst createProfileError = (error: any) => ({\n type: types.PROFILE_CREATE_FAILURE,\n payload: {\n error,\n },\n});\n\nexport function updateProfile(profile: IUpdateProfile, onSuccess: () => void = () => {}, onError: () => void = () => {}) {\n return (dispatch: any, _getState: any) => {\n dispatch(updateProfilePending());\n\n API.put('admin', `/profiles/${profile.id}`, {\n body: {\n firstName: profile.firstName,\n lastName: profile.lastName,\n role: profile.role,\n business: profile.businessId,\n },\n response: true,\n // OPTIONAL\n // headers: {}, // OPTIONAL\n // queryStringParameters: { // OPTIONAL\n // name: 'param'\n // }\n })\n .then((response) => {\n console.log(response);\n dispatch(updateProfileSuccess(response.data));\n onSuccess();\n })\n .catch((error) => {\n console.log(error);\n dispatch(updateProfileError(error.response));\n onError();\n });\n };\n};\n\nconst updateProfilePending = () => ({\n type: types.PROFILE_UPDATE_PENDING,\n});\n\nconst updateProfileSuccess = (updatedProfile: any) => ({\n type: types.PROFILE_UPDATE_SUCCESS,\n payload: {\n updatedProfile,\n },\n});\n\nconst updateProfileError = (error: any) => ({\n type: types.PROFILE_UPDATE_FAILURE,\n payload: {\n error,\n },\n});\n\nexport function fetchCurrentProfile(onSuccess: () => void = () => {}, onError: () => void = () => {}) {\n return (dispatch: any, _getState: any) => {\n dispatch(fetchCurrentProfilePending());\n\n API.get('admin', '/profiles/current', {\n response: true,\n // OPTIONAL\n // headers: {}, // OPTIONAL\n // queryStringParameters: { // OPTIONAL\n // name: 'param'\n // }\n })\n .then((response) => {\n console.log(response);\n dispatch(fetchCurrentProfileSuccess(response.data));\n onSuccess();\n })\n .catch((error) => {\n console.log(error);\n dispatch(fetchCurrentProfileFailure(error.response));\n onError();\n });\n };\n};\n\nconst fetchCurrentProfilePending = () => ({\n type: types.PROFILE_GET_CURRENT_PENDING,\n});\n\nconst fetchCurrentProfileSuccess = (profile: any) => ({\n type: types.PROFILE_GET_CURRENT_SUCCESS,\n payload: {\n profile,\n },\n});\n\nconst fetchCurrentProfileFailure = (error: any) => ({\n type: types.PROFILE_GET_CURRENT_FAILURE,\n payload: {\n error,\n },\n});\n","import {\n IonAlert,\n IonButton,\n IonContent,\n IonFooter,\n IonHeader,\n IonModal,\n IonTitle,\n IonToolbar\n} from \"@ionic/react\";\nimport React, { useState } from \"react\";\nimport SelectInput from \"./SelectInput\";\n// import FileUpload from \"./FileUpload\";\nimport FormInput from \"./FormInput\";\nimport ModalCloseButton from \"./ModalCloseButton\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { createProfile } from \"../../redux/actions/profileActions\";\n\ninterface Props {\n isOpen: boolean;\n title: string;\n // onSubmitClick: (name: string, image: string, content: string, linkUrl: string) => void,\n onCloseClick: () => void,\n onSuccess: () => void,\n}\n\nconst CreateProfileModal: React.FC = (props) => {\n const dispatch = useDispatch();\n const {\n profile,\n business,\n } = useSelector((store: any) => ({\n profile: store.profileReducer,\n business: store.businessReducer,\n }));\n\n const [email, setEmail] = useState('');\n const [firstName, setFirstName] = useState('');\n const [lastName, setLastName] = useState('');\n const [role, setRole] = useState('');\n const [businessId, setBusinessId] = useState('');\n const [showErrorAlert, setShowErrorAlert] = useState(false);\n\n return (\n \n \n \n {props.title}\n \n \n \n \n setEmail(e.detail.value as string)}\n />\n setFirstName(e.detail.value as string)}\n />\n setLastName(e.detail.value as string)}\n />\n setRole(e.detail.value)}\n />\n {role === 'customer' && ({\n label: business.name,\n value: business.id,\n }))}\n onIonChange={e => setBusinessId(e.detail.value)}\n />}\n \n \n field.length === 0).length > 0}\n onClick={() => {\n dispatch(createProfile(\n {\n email,\n firstName,\n lastName,\n role,\n businessId: parseInt(businessId)\n },\n () => {\n setEmail('');\n setFirstName('');\n setLastName('');\n setRole('');\n setBusinessId('');\n props.onSuccess();\n },\n () => {\n setShowErrorAlert(true);\n }\n ));\n }}>Create\n \n {showErrorAlert && setShowErrorAlert(false)}\n header={'Error'}\n subHeader={'Please Check Inputs'}\n message={profile.error?.data?.message?.join('') || 'Error Creating Profile'}\n />}\n \n )\n}\n\nexport default CreateProfileModal;\n","import {\n IonContent,\n IonPage,\n IonText,\n IonFooter,\n IonButton,\n IonList,\n IonItem,\n IonLoading,\n IonLabel,\n} from '@ionic/react';\nimport React, { useEffect, useState } from 'react';\nimport { useSelector } from 'react-redux';\nimport { useDispatch } from \"react-redux\";\nimport AdminHeader from '../shared/components/AdminHeader';\nimport CreateProfileModal from '../shared/components/CreateProfileModal';\nimport { fetchProfiles } from '../redux/actions/profileActions';\nimport { fetchBusinesses } from '../redux/actions/businessActions';\n\ninterface Props {\n\n}\n\nconst AdminUsers: React.FC = (props) => {\n\n const dispatch = useDispatch();\n\n const {\n profile\n } = useSelector((store: any) => ({\n profile: store.profileReducer\n }));\n\n // const businessSelector = useSelector((store: any) => ({ businessSelector: store.businessReducer })).businessSelector;\n\n useEffect(() => {\n dispatch(fetchProfiles());\n dispatch(fetchBusinesses());\n }, [dispatch]);\n\n\n const [showCreateModal, setShowCreateModal] = useState(false);\n\n return (\n \n \n \n \n All Users\n \n {profile.loading ? (\n \n ) : null}\n \n {profile.profiles.map((profile: any) => (\n \n \n {profile.firstName} {profile.lastName}\n {profile.email}\n {profile.role}\n \n \n ))}\n \n \n setShowCreateModal(false)}\n onSuccess={() => {\n dispatch(fetchProfiles());\n setShowCreateModal(false);\n }}\n />\n \n \n setShowCreateModal(true)}>Create New User\n \n \n )\n};\n\nexport default AdminUsers;\n","import {\n IonAlert,\n IonButton,\n IonContent,\n IonFooter,\n IonLoading,\n IonPage,\n IonText,\n} from '@ionic/react';\nimport React, { useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { RouteComponentProps } from 'react-router';\nimport AdminHeader from '../shared/components/AdminHeader';\nimport { fetchProfileById, updateProfile } from '../redux/actions/profileActions';\nimport FormInput from '../shared/components/FormInput';\nimport SelectInput from '../shared/components/SelectInput';\nimport { fetchBusinesses } from '../redux/actions/businessActions';\n\ninterface Props extends RouteComponentProps<{\n id: string;\n}> {}\n\nconst AdminUserDetail: React.FC = ({match}) => {\n const dispatch = useDispatch();\n const {\n profile,\n business,\n } = useSelector((store: any) => ({\n profile: store.profileReducer,\n business: store.businessReducer,\n }));\n\n useEffect(() => {\n // fetch profile when id param changes\n dispatch(fetchProfileById(parseInt(match.params.id)));\n }, [dispatch, match.params.id]);\n\n useEffect(() => {\n dispatch(fetchBusinesses());\n }, [dispatch])\n\n useEffect(() => {\n setEmail(profile.profile?.email || '');\n setFirstName(profile.profile?.firstName || '');\n setLastName(profile.profile?.lastName || '');\n setRole(profile.profile?.role || '');\n setBusinessId(profile.profile?.business?.id || null);\n }, [profile.profile])\n\n const [email, setEmail] = useState(profile.profile?.email || '');\n const [firstName, setFirstName] = useState(profile.profile?.firstName || '');\n const [lastName, setLastName] = useState(profile.profile?.lastName || '');\n const [role, setRole] = useState(profile.profile?.role || '');\n const [businessId, setBusinessId] = useState(profile.profile?.business?.id || null);\n const [showErrorAlert, setShowErrorAlert] = useState(false);\n\n return (\n \n \n \n \n User Customization\n \n {!profile.profile ? (\n \n ) : (\n <>\n () => {}}\n />\n setFirstName(e.detail.value as string)}\n />\n setLastName(e.detail.value as string)}\n />\n setRole(e.detail.value)}\n />\n {role === 'customer' && ({\n label: business.name,\n value: business.id,\n }))]}\n onIonChange={e => setBusinessId(e.detail.value)}\n />}\n >\n )}\n \n \n {profile.profile && field.length === 0).length > 0}\n onClick={() => dispatch(\n updateProfile(\n {id: profile.profile.id, firstName, lastName, role, businessId: parseInt(businessId)},\n () => dispatch(fetchProfileById(profile.profile.id)),\n () => {\n setShowErrorAlert(true);\n }\n )\n )}\n >Update}\n \n {showErrorAlert && setShowErrorAlert(false)}\n header={'Error'}\n subHeader={'Please Check Inputs'}\n message={profile.error?.data?.message?.join('') || 'Error Updating Profile'}\n />}\n \n );\n};\n\nexport default AdminUserDetail;\n","import React from \"react\";\n\nimport ReactQuill from 'react-quill';\nimport 'react-quill/dist/quill.snow.css';\n\ninterface Props {\n content: string;\n onChange: (e: any) => void;\n}\n\nconst RichTextEditor: React.FC = (props) => {\n const {\n content,\n onChange,\n } = props;\n\n return (\n {\n onChange(html);\n }}\n style={{\n width: '100%',\n padding: 5,\n }}\n />\n );\n}\n\nexport default RichTextEditor;\n","import {\n IonAlert,\n IonButton,\n IonContent,\n IonFooter,\n IonItemDivider,\n IonLabel,\n IonLoading,\n IonPage,\n IonText,\n} from '@ionic/react';\nimport React, { useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { RouteComponentProps } from 'react-router';\nimport { fetchBusinessById, updateBusiness } from '../redux/actions/businessActions';\nimport AdminHeader from '../shared/components/AdminHeader';\nimport AdminBusinessMenu from '../shared/components/AdminBusinessMenu';\nimport FormInput from '../shared/components/FormInput';\nimport SelectInput from '../shared/components/SelectInput';\nimport FileUpload from '../shared/components/FileUpload';\nimport RichTextEditor from '../shared/components/RichTextEditor';\nimport { FileUploadTypes } from '../enums';\n\ninterface Props extends RouteComponentProps<{\n id: string;\n}> {}\n\nconst AdminBusinessDetailLanding: React.FC = ({match}) => {\n const dispatch = useDispatch();\n const {\n business,\n } = useSelector((store: any) => ({\n business: store.businessReducer,\n }));\n\n useEffect(() => {\n // fetch business when id param changes\n dispatch(fetchBusinessById(parseInt(match.params.id)));\n }, [dispatch, match.params.id]);\n\n useEffect(() => {\n setAnnouncementText(business.business?.announcementText || '');\n setAnnouncementBGColor(business.business?.announcementBGColor || '#fff');\n setAnnouncementTextColor(business.business?.announcementTextColor || '#000');\n setAnnouncementType(business.business?.announcementType || '');\n setAnnouncementContent(business.business?.announcementContent || '');\n setAnnouncementLinkUrl(business.business?.announcementLinkUrl || '');\n setAnnouncementPdf(business.business?.announcementPdf || '');\n setTaglineText(business.business?.taglineText || '');\n setTaglineTextColor(business.business?.taglineTextColor || '#000');\n setTaglineBackgroundColor(business.business?.taglineBackgroundColor || '#fff');\n setMainImage(business.business?.mainImage || '');\n setMainContent(business.business?.mainContent || '');\n }, [business.business]);\n\n const [announcementText, setAnnouncementText] = useState(business.business?.announcementText || '');\n const [announcementBGColor, setAnnouncementBGColor] = useState(business.business?.announcementBGColor || '#fff');\n const [announcementTextColor, setAnnouncementTextColor] = useState(business.business?.announcementTextColor || '#000');\n const [announcementType, setAnnouncementType] = useState(business.business?.announcementType || '');\n const [announcementContent, setAnnouncementContent] = useState(business.business?.announcementContent || '');\n const [announcementLinkUrl, setAnnouncementLinkUrl] = useState(business.business?.announcementLinkUrl || '');\n const [announcementPdf, setAnnouncementPdf] = useState(business.business?.announcementPdf || '');\n const [taglineText, setTaglineText] = useState(business.business?.taglineText || '');\n const [taglineTextColor, setTaglineTextColor] = useState(business.business?.taglineTextColor || '#000');\n const [taglineBackgroundColor, setTaglineBackgroundColor] = useState(business.business?.taglineBackgroundColor || '#fff');\n const [mainImage, setMainImage] = useState(business.business?.mainImage || '');\n const [mainContent, setMainContent] = useState(business.business?.mainContent || '');\n const [showErrorAlert, setShowErrorAlert] = useState(false);\n\n return (\n \n \n \n {!business.business ? (\n \n ) : (\n <>\n \n \n Business Landing Page\n \n setAnnouncementText(e.detail.value as string)}\n />\n setAnnouncementBGColor(e.detail.value as string)}\n />\n setAnnouncementTextColor(e.detail.value as string)}\n />\n setAnnouncementType(e.detail.value as string)}\n />\n {announcementType === 'content' && <>\n \n \n Announcement Content\n \n \n \n >}\n {announcementType === 'external' && setAnnouncementLinkUrl(e.detail.value as string)}\n />}\n {announcementType === 'pdf' && setAnnouncementPdf(url)}\n onDelete={() => setAnnouncementPdf('')}\n />}\n setTaglineText(e.detail.value as string)}\n />\n setTaglineTextColor(e.detail.value as string)}\n />\n setTaglineBackgroundColor(e.detail.value as string)}\n />\n setMainImage(url)}\n onDelete={() => setMainImage('')}\n />\n \n \n Main Content\n \n \n \n >\n )}\n \n \n {business.business && dispatch(\n updateBusiness(\n {\n id: business.business.id,\n announcementText,\n announcementBGColor,\n announcementTextColor,\n announcementType,\n announcementContent,\n announcementLinkUrl,\n announcementPdf,\n taglineText,\n taglineTextColor,\n taglineBackgroundColor,\n mainImage,\n mainContent,\n },\n () => dispatch(fetchBusinessById(business.business.id)),\n () => {\n setShowErrorAlert(true);\n }\n )\n )}\n >Update}\n \n {showErrorAlert && setShowErrorAlert(false)}\n header={'Error'}\n subHeader={'Please Check Inputs'}\n message={Array.isArray(business.error?.data?.message) ? business.error?.data?.message?.join('') : 'Error Updating Business'}\n />}\n \n );\n};\n\nexport default AdminBusinessDetailLanding;\n","import * as types from '../constants';\nimport API from '@aws-amplify/api';\n\nexport function createFeaturedBlock({ name, image, type, content, linkUrl, pdf, businessId }: {\n name: string,\n image: string,\n type: string,\n content: string,\n linkUrl: string,\n pdf: string,\n businessId: number,\n}, onSuccess: () => void = () => {}, onError: () => void = () => {}) {\n return (dispatch: any, _getState: any) => {\n dispatch(createFeaturedBlockStarted());\n\n API.post('admin', '/featured-blocks', {\n body: {\n enabled: false,\n name,\n image,\n type,\n content,\n linkUrl,\n pdf,\n businessId,\n },\n response: true,\n // OPTIONAL\n // headers: {}, // OPTIONAL\n // queryStringParameters: { // OPTIONAL\n // name: 'param'\n // }\n })\n .then((response) => {\n console.log(response);\n dispatch(createFeaturedBlockSuccess(response.data));\n onSuccess();\n })\n .catch((error) => {\n console.log(error);\n dispatch(createFeaturedBlockError(error.response));\n onError();\n });\n };\n};\n\nexport function updateFeaturedBlock({ id, enabled, name, image, type, content, linkUrl, pdf}: {\n id: number,\n enabled: boolean,\n name: string,\n image: string,\n type: string,\n content: string,\n linkUrl: string,\n pdf: string,\n}, onSuccess: () => void = () => {}, onError: () => void = () => {}) {\n return (dispatch: any, _getState: any) => {\n dispatch(createFeaturedBlockStarted());\n\n API.put('admin', `/featured-blocks/${id}`, {\n body: {\n id,\n enabled,\n name,\n image,\n type,\n content,\n linkUrl,\n pdf,\n },\n response: true,\n // OPTIONAL\n // headers: {}, // OPTIONAL\n // queryStringParameters: { // OPTIONAL\n // name: 'param'\n // }\n })\n .then((response) => {\n console.log(response);\n dispatch(createFeaturedBlockSuccess(response.data));\n onSuccess();\n })\n .catch((error) => {\n console.log(error);\n dispatch(createFeaturedBlockError(error.response));\n onError();\n });\n };\n};\n\nexport function deleteFeaturedBlock(id: number, onSuccess: () => void = () => {}, onError: () => void = () => {}) {\n return (dispatch: any, _getState: any) => {\n dispatch(createFeaturedBlockStarted());\n\n API.del('admin', `/featured-blocks/${id}`, {\n response: true,\n // OPTIONAL\n // headers: {}, // OPTIONAL\n // queryStringParameters: { // OPTIONAL\n // name: 'param'\n // }\n })\n .then((response) => {\n console.log(response);\n dispatch(createFeaturedBlockSuccess(response.data));\n onSuccess();\n })\n .catch((error) => {\n console.log(error);\n dispatch(createFeaturedBlockError(error.response));\n onError();\n });\n };\n};\n\nconst createFeaturedBlockStarted = () => ({\n type: types.CREATE_FEATURED_BLOCK_PENDING,\n});\n\nconst createFeaturedBlockSuccess = (createdBusiness: any) => ({\n type: types.CREATE_FEATURED_BLOCK_SUCCESS,\n payload: {\n createdBusiness,\n },\n});\n\nconst createFeaturedBlockError = (error: any) => ({\n type: types.CREATE_FEATURED_BLOCK_FAILURE,\n payload: {\n error,\n },\n});","import {\n IonButton,\n IonContent,\n IonFooter,\n IonHeader,\n IonItemDivider,\n IonLabel,\n IonModal,\n IonTitle,\n IonToolbar\n} from \"@ionic/react\";\nimport React, { useState } from \"react\";\nimport FileUpload from \"../shared/components/FileUpload\";\nimport FormInput from \"../shared/components/FormInput\";\n\nimport RichTextEditor from \"../shared/components/RichTextEditor\";\nimport ModalCloseButton from \"../shared/components/ModalCloseButton\";\nimport SelectInput from \"../shared/components/SelectInput\";\nimport { FileUploadTypes } from \"../enums\";\n\ninterface Props {\n title: string,\n name: string,\n image: string,\n type: string,\n content: string,\n linkUrl: string,\n pdf: string,\n submitText: string,\n onSubmitClick: (name: string, image: string, type: string, content: string, linkUrl: string, pdf: string) => void,\n onDeleteClick?: () => void,\n onCloseClick: () => void,\n}\n\nconst EditFeaturedBlockModal: React.FC = (props) => {\n const [name, setName] = useState(props.name);\n const [image, setImage] = useState(props.image);\n const [type, setType] = useState(props.type);\n const [content, setContent] = useState(props.content);\n const [linkUrl, setLinkUrl] = useState(props.linkUrl);\n const [pdf, setPdf] = useState(props.pdf);\n\n return (\n \n \n \n {props.title}\n \n \n \n \n setName(e.detail.value as string)}\n />\n setImage(url)}\n onDelete={() => setImage('')}\n />\n setType(e.detail.value)}\n />\n {type=== 'external' && setLinkUrl(e.detail.value as string)}\n />}\n {type === 'content' && <>\n \n \n Modal Content\n \n \n \n >}\n {type === 'pdf' && setPdf(url)}\n onDelete={() => setPdf('')}\n />}\n \n \n props.onSubmitClick(name, image, type, content, linkUrl, pdf)}>\n {props.submitText}\n \n {props.onDeleteClick && Delete}\n \n \n )\n}\n\nexport default EditFeaturedBlockModal;\n","import {\n IonAlert,\n IonButton,\n IonContent,\n IonFooter,\n IonItem,\n IonLabel,\n IonLoading,\n IonPage,\n IonText,\n} from '@ionic/react';\nimport React, { useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { RouteComponentProps } from 'react-router';\nimport { fetchBusinessById } from '../redux/actions/businessActions';\nimport { createFeaturedBlock } from '../redux/actions/featuredBlockActions';\nimport EditFeaturedBlockModal from '../components/EditFeaturedBlockModal';\nimport AdminHeader from '../shared/components/AdminHeader';\nimport AdminBusinessMenu from '../shared/components/AdminBusinessMenu';\n\ninterface Props extends RouteComponentProps<{\n id: string;\n}> {}\n\nconst AdminBusinessDetailFeaturedBlocks: React.FC = ({match}) => {\n const dispatch = useDispatch();\n const {\n business,\n featuredBlock,\n } = useSelector((store: any) => ({\n business: store.businessReducer,\n featuredBlock: store.featuredBlockReducer,\n }));\n\n useEffect(() => {\n // fetch business when id param changes\n dispatch(fetchBusinessById(parseInt(match.params.id)));\n }, [dispatch, match.params.id]);\n\n const [creatingFeaturedBlock, setCreatingFeaturedBlock] = useState(false);\n const [showErrorAlert, setShowErrorAlert] = useState(false);\n\n return (\n \n \n \n {!business.business ? (\n \n ) : (\n <>\n \n \n Featured Blocks (for display on the landing page)\n \n {business.business.featuredBlocks.map((featuredBlock: any) => (\n \n {featuredBlock.name}\n \n ))}\n {creatingFeaturedBlock &&\n setCreatingFeaturedBlock(false)}\n onSubmitClick={(name: string, image: string, type: string, content: string, linkUrl: string, pdf: string) => {\n return dispatch(createFeaturedBlock({ name, image, type, content, linkUrl, pdf, businessId: business.business.id }, () => {\n setCreatingFeaturedBlock(false);\n dispatch(fetchBusinessById(business.business.id));\n }, () => {\n setShowErrorAlert(true);\n }));\n }} />\n }\n >\n )}\n \n \n setCreatingFeaturedBlock(true)}>Create New Featured Block\n \n {showErrorAlert && setShowErrorAlert(false)}\n header={'Error'}\n subHeader={'Please Check Inputs'}\n message={Array.isArray(featuredBlock.error?.data?.message) ? featuredBlock.error?.data?.message?.join('') : 'Error Modifying Featured Block'}\n />}\n \n );\n};\n\nexport default AdminBusinessDetailFeaturedBlocks;\n","import {\n IonButton,\n IonContent,\n IonFooter,\n IonHeader,\n IonInput,\n IonItem,\n IonItemDivider,\n IonLabel,\n IonModal,\n IonTitle,\n IonToolbar\n} from \"@ionic/react\";\nimport React, { useState } from \"react\";\nimport { FileUploadTypes } from \"../../enums\";\nimport FileUpload from \"./FileUpload\";\n// import FileUpload from \"./FileUpload\";\nimport FormInput from \"./FormInput\";\nimport ModalCloseButton from \"./ModalCloseButton\";\n\nimport RichTextEditor from \"./RichTextEditor\";\nimport SelectInput from \"./SelectInput\";\n\ninterface Props {\n title: string,\n name: string,\n availableOptions?: string[] | undefined,\n // image: string,\n type: string,\n content: string,\n linkUrl: string,\n pdf: string,\n submitText: string,\n // onSubmitClick: (name: string, image: string, content: string, linkUrl: string) => void,\n onSubmitClick: (name: string, type: string, content: string, linkUrl: string, pdf: string) => void,\n onDeleteClick?: () => void,\n onCloseClick: () => void,\n}\n\nconst EditStandardBlockModal: React.FC = (props) => {\n const [name, setName] = useState(props.name);\n // const [image, setImage] = useState(props.image);\n const [type, setType] = useState(props.type);\n const [content, setContent] = useState(props.content);\n const [linkUrl, setLinkUrl] = useState(props.linkUrl);\n const [pdf, setPdf] = useState(props.pdf);\n\n const [searchText, setSearchText] = useState('');\n\n return (\n \n \n \n {props.title}\n \n \n \n \n {props.availableOptions ? <>\n \n Name\n \n setSearchText(e.detail.value as string)}\n />\n \n \n {props.availableOptions\n .filter((option) => (\n searchText.length === 0\n || option.toLowerCase().indexOf(searchText.toLowerCase()) !== -1\n ))\n .map((option) => (\n setName(option)}>\n {option}\n \n ))}\n \n > : \n Name\n \n }\n {/* setImage(url)}\n onDelete={() => setImage('')}\n /> */}\n setType(e.detail.value)}\n />\n {type === 'external' && setLinkUrl(e.detail.value as string)}\n />}\n {type === 'content' && <>\n \n \n Modal Content\n \n \n \n >}\n {type === 'pdf' && setPdf(url)}\n onDelete={() => setPdf('')}\n />}\n \n \n props.onSubmitClick(name, type, content, linkUrl, pdf)}>\n {props.submitText}\n \n {props.onDeleteClick && Delete}\n \n \n )\n}\n\nexport default EditStandardBlockModal;\n","import * as types from '../constants';\nimport { API } from 'aws-amplify';\n\n// export function createStandardBlock({ name, image, content, linkUrl, businessId }: {\nexport function createStandardBlock({ name, type, content, linkUrl, pdf, businessId }: {\n name: string,\n // image: string,\n type: string,\n content: string,\n linkUrl: string,\n pdf: string,\n businessId: number,\n}, onSuccess: () => void = () => {}, onError: () => void = () => {}) {\n return (dispatch: any, _getState: any) => {\n dispatch(createStandardBlockStarted());\n\n API.post('admin', '/standard-blocks', {\n body: {\n enabled: false,\n name,\n // image,\n type,\n content,\n linkUrl,\n pdf,\n businessId,\n },\n response: true,\n // OPTIONAL\n // headers: {}, // OPTIONAL\n // queryStringParameters: { // OPTIONAL\n // name: 'param'\n // }\n })\n .then((response) => {\n console.log(response);\n dispatch(createStandardBlockSuccess(response.data));\n onSuccess();\n })\n .catch((error) => {\n console.log(error);\n dispatch(createStandardBlockError(error.response));\n onError();\n });\n };\n};\n\n// export function updateStandardBlock({ id, name, image, content, linkUrl, businessId }: {\nexport function updateStandardBlock({ id, enabled, name, type, content, linkUrl, pdf }: {\n id: number,\n enabled: boolean,\n name: string,\n // image: string,\n type: string,\n content: string,\n linkUrl: string,\n pdf: string,\n}, onSuccess: () => void = () => {}, onError: () => void = () => {}) {\n return (dispatch: any, _getState: any) => {\n dispatch(createStandardBlockStarted());\n\n API.put('admin', `/standard-blocks/${id}`, {\n body: {\n id,\n enabled,\n name,\n // image,\n type,\n content,\n linkUrl,\n pdf,\n },\n response: true,\n // OPTIONAL\n // headers: {}, // OPTIONAL\n // queryStringParameters: { // OPTIONAL\n // name: 'param'\n // }\n })\n .then((response) => {\n console.log(response);\n dispatch(createStandardBlockSuccess(response.data));\n onSuccess();\n })\n .catch((error) => {\n console.log(error);\n dispatch(createStandardBlockError(error.response));\n onError();\n });\n };\n};\n\nexport function deleteStandardBlock(id: number, onSuccess: () => void = () => {}, onError: () => void = () => {}) {\n return (dispatch: any, _getState: any) => {\n dispatch(createStandardBlockStarted());\n\n API.del('admin', `/standard-blocks/${id}`, {\n response: true,\n // OPTIONAL\n // headers: {}, // OPTIONAL\n // queryStringParameters: { // OPTIONAL\n // name: 'param'\n // }\n })\n .then((response) => {\n console.log(response);\n dispatch(createStandardBlockSuccess(response.data));\n onSuccess();\n })\n .catch((error) => {\n console.log(error);\n dispatch(createStandardBlockError(error.response));\n onError();\n });\n };\n};\n\nconst createStandardBlockStarted = () => ({\n type: types.STANDARD_BLOCK_CREATE_PENDING,\n});\n\nconst createStandardBlockSuccess = (createdBusiness: any) => ({\n type: types.STANDARD_BLOCK_CREATE_SUCCESS,\n payload: {\n createdBusiness,\n },\n});\n\nconst createStandardBlockError = (error: any) => ({\n type: types.STANDARD_BLOCK_CREATE_FAILURE,\n payload: {\n error,\n },\n});\n\nexport function getAvailableStandardBlocks(businessId: number, onSuccess: () => void = () => {}, onError: () => void = () => {}) {\n return (dispatch: any, _getState: any) => {\n dispatch(standardBlockGetAvailableOptionsPending());\n\n API.get('admin', `/standard-blocks/available-options/${businessId}`, {\n response: true\n // OPTIONAL\n // headers: {}, // OPTIONAL\n // queryStringParameters: { // OPTIONAL\n // name: 'param'\n // }\n })\n .then((response) => {\n console.log(response);\n dispatch(standardBlockGetAvailableOptionsSuccess(response.data));\n onSuccess();\n })\n .catch((error) => {\n console.log(error);\n dispatch(standardBlockGetAvailableOptionsFailure(error.response));\n onError();\n });\n };\n};\n\nconst standardBlockGetAvailableOptionsPending = () => ({\n type: types.STANDARD_BLOCK_GET_AVAILABLE_OPTIONS_PENDING,\n});\n\nconst standardBlockGetAvailableOptionsSuccess = (availableOptions: any) => ({\n type: types.STANDARD_BLOCK_GET_AVAILABLE_OPTIONS_SUCCESS,\n payload: {\n availableOptions,\n },\n});\n\nconst standardBlockGetAvailableOptionsFailure = (error: any) => ({\n type: types.STANDARD_BLOCK_GET_AVAILABLE_OPTIONS_FAILURE,\n payload: {\n error,\n },\n});\n","import {\n IonAlert,\n IonButton,\n IonContent,\n IonFooter,\n IonItem,\n IonLabel,\n IonLoading,\n IonPage,\n IonText,\n} from '@ionic/react';\nimport React, { useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { RouteComponentProps } from 'react-router';\nimport { fetchBusinessById } from '../redux/actions/businessActions';\nimport EditStandardBlockModal from '../shared/components/EditStandardBlock';\nimport { createStandardBlock, getAvailableStandardBlocks } from '../redux/actions/standardBlockActions';\nimport AdminHeader from '../shared/components/AdminHeader';\nimport AdminBusinessMenu from '../shared/components/AdminBusinessMenu';\n\ninterface Props extends RouteComponentProps<{\n id: string;\n}> {}\n\nconst AdminBusinessDetailStandardBlocks: React.FC = ({match}) => {\n const dispatch = useDispatch();\n const {\n business,\n standardBlock,\n } = useSelector((store: any) => ({\n business: store.businessReducer,\n standardBlock: store.standardBlockReducer,\n }));\n\n useEffect(() => {\n // fetch business when id param changes\n dispatch(fetchBusinessById(parseInt(match.params.id)));\n // fetch available standard blocks when id param changes\n dispatch(getAvailableStandardBlocks(parseInt(match.params.id)));\n }, [dispatch, match.params.id]);\n\n const [creatingStandardBlock, setCreatingStandardBlock] = useState(false);\n const [showErrorAlert, setShowErrorAlert] = useState(false);\n\n return (\n \n \n \n {!business.business ? (\n \n ) : (\n <>\n \n \n Standard Blocks (for display on the A-Z page)\n \n {business.business.standardBlocks.map((standardBlock: any) => (\n \n {standardBlock.name}\n \n ))}\n {creatingStandardBlock &&\n setCreatingStandardBlock(false)}\n // onSubmitClick={(name: string, image: string, content: string, linkUrl: string) => {\n // return dispatch(createStandardBlock({ name, image, content, linkUrl, businessId: business.business.id }, () => {\n onSubmitClick={(name: string, type: string, content: string, linkUrl: string, pdf: string) => {\n return dispatch(createStandardBlock({ name, type, content, linkUrl, pdf, businessId: business.business.id }, () => {\n setCreatingStandardBlock(false);\n dispatch(fetchBusinessById(business.business.id));\n dispatch(getAvailableStandardBlocks(business.business.id));\n }, () => {\n setShowErrorAlert(true);\n }));\n }} />\n }\n >\n )}\n \n \n setCreatingStandardBlock(true)}>Create New Standard Block\n \n {showErrorAlert && setShowErrorAlert(false)}\n header={'Error'}\n subHeader={'Please Check Inputs'}\n message={Array.isArray(standardBlock.error?.data?.message) ? standardBlock.error?.data?.message?.join('') : 'Error Modifying Standard Block'}\n />}\n \n );\n};\n\nexport default AdminBusinessDetailStandardBlocks;\n","import {\n IonAlert,\n IonButton,\n IonCheckbox,\n IonContent,\n IonFooter,\n IonItem,\n IonItemDivider,\n IonLabel,\n IonLoading,\n IonPage,\n IonText,\n} from '@ionic/react';\nimport React, { useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { RouteComponentProps } from 'react-router';\nimport { fetchBusinessById } from '../redux/actions/businessActions';\nimport AdminHeader from '../shared/components/AdminHeader';\nimport AdminBusinessMenu from '../shared/components/AdminBusinessMenu';\nimport FormInput from '../shared/components/FormInput';\nimport FileUpload from '../shared/components/FileUpload';\nimport SelectInput from '../shared/components/SelectInput';\nimport RichTextEditor from '../shared/components/RichTextEditor';\nimport { FileUploadTypes } from '../enums';\nimport { deleteFeaturedBlock, updateFeaturedBlock } from '../redux/actions/featuredBlockActions';\n\ndeclare const location: any;\n\ninterface Props extends RouteComponentProps<{\n id: string;\n blockId: string;\n}> {}\n\nconst AdminBusinessDetailFeaturedBlocksDetail: React.FC = ({match}) => {\n const dispatch = useDispatch();\n const {\n business,\n featuredBlock,\n } = useSelector((store: any) => ({\n business: store.businessReducer,\n featuredBlock: store.featuredBlockReducer,\n }));\n\n const block = business.business?.featuredBlocks\n .filter((block: any) => block.id === parseInt(match.params.blockId))[0];\n\n useEffect(() => {\n // fetch business when id param changes\n dispatch(fetchBusinessById(parseInt(match.params.id)));\n }, [dispatch, match.params.id]);\n\n useEffect(() => {\n const block = business.business?.featuredBlocks\n .filter((block: any) => block.id === parseInt(match.params.blockId))[0];\n setEnabled(block?.enabled || false);\n setName(block?.name || '');\n setImage(block?.image || '');\n setType(block?.type || '');\n setContent(block?.content || '');\n setLinkUrl(block?.linkUrl || '');\n setPdf(block?.pdf || '');\n }, [business.business, match.params.blockId]);\n\n const [enabled, setEnabled] = useState(block?.enabled || false); \n const [name, setName] = useState(block?.name || '');\n const [image, setImage] = useState(block?.image || '');\n const [type, setType] = useState(block?.type || '');\n const [content, setContent] = useState(block?.content || '');\n const [linkUrl, setLinkUrl] = useState(block?.linkUrl || '');\n const [pdf, setPdf] = useState(block?.pdf || '');\n const [showErrorAlert, setShowErrorAlert] = useState(false);\n\n return (\n \n \n \n {!business.business ? (\n \n ) : (\n <>\n \n \n Featured Block Detail (for display on the landing page)\n \n \n Enabled\n setEnabled(e.detail.checked)} />\n \n setName(e.detail.value as string)}\n />\n setImage(url)}\n onDelete={() => setImage('')}\n />\n setType(e.detail.value)}\n />\n {type=== 'external' && setLinkUrl(e.detail.value as string)}\n />}\n {type === 'content' && <>\n \n \n Modal Content\n \n \n \n >}\n {type === 'pdf' && setPdf(url)}\n onDelete={() => setPdf('')}\n />}\n >\n )}\n \n \n \n Back\n \n {\n return dispatch(updateFeaturedBlock({ id: block?.id, enabled, name, image, type, content, linkUrl, pdf }, () => {\n dispatch(fetchBusinessById(business.business.id));\n }, () => {\n setShowErrorAlert(true);\n }));\n }}>\n Update\n \n {\n dispatch(deleteFeaturedBlock(block?.id, () => {\n location.href = `/admin/businesses/${business.business?.id}/featured-blocks`;\n dispatch(fetchBusinessById(business.business.id));\n }))\n }}>Delete\n \n {showErrorAlert && setShowErrorAlert(false)}\n header={'Error'}\n subHeader={'Please Check Inputs'}\n message={Array.isArray(featuredBlock.error?.data?.message) ? featuredBlock.error?.data?.message?.join('') : 'Error Modifying Featured Block'}\n />}\n \n );\n};\n\nexport default AdminBusinessDetailFeaturedBlocksDetail;\n","import {\n IonAlert,\n IonButton,\n IonCheckbox,\n IonContent,\n IonFooter,\n IonItem,\n IonItemDivider,\n IonLabel,\n IonLoading,\n IonPage,\n IonText,\n} from '@ionic/react';\nimport React, { useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { RouteComponentProps } from 'react-router';\nimport { fetchBusinessById } from '../redux/actions/businessActions';\nimport AdminHeader from '../shared/components/AdminHeader';\nimport AdminBusinessMenu from '../shared/components/AdminBusinessMenu';\nimport FormInput from '../shared/components/FormInput';\nimport FileUpload from '../shared/components/FileUpload';\nimport SelectInput from '../shared/components/SelectInput';\nimport RichTextEditor from '../shared/components/RichTextEditor';\nimport { FileUploadTypes } from '../enums';\nimport { deleteStandardBlock, updateStandardBlock } from '../redux/actions/standardBlockActions';\n\ndeclare const location: any;\n\ninterface Props extends RouteComponentProps<{\n id: string;\n blockId: string;\n}> {}\n\nconst AdminBusinessDetailStandardBlocksDetail: React.FC = ({match}) => {\n const dispatch = useDispatch();\n const {\n business,\n standardBlock,\n } = useSelector((store: any) => ({\n business: store.businessReducer,\n standardBlock: store.standardBlockReducer,\n }));\n\n const block = business.business?.standardBlocks\n .filter((block: any) => block.id === parseInt(match.params.blockId))[0];\n\n useEffect(() => {\n // fetch business when id param changes\n dispatch(fetchBusinessById(parseInt(match.params.id)));\n }, [dispatch, match.params.id]);\n\n useEffect(() => {\n const block = business.business?.standardBlocks\n .filter((block: any) => block.id === parseInt(match.params.blockId))[0];\n setEnabled(block?.enabled || false);\n setName(block?.name || '');\n setType(block?.type || '');\n setContent(block?.content || '');\n setLinkUrl(block?.linkUrl || '');\n setPdf(block?.pdf || '');\n }, [business.business, match.params.blockId]);\n\n const [enabled, setEnabled] = useState(block?.enabled || false); \n const [name, setName] = useState(block?.name || '');\n const [type, setType] = useState(block?.type || '');\n const [content, setContent] = useState(block?.content || '');\n const [linkUrl, setLinkUrl] = useState(block?.linkUrl || '');\n const [pdf, setPdf] = useState(block?.pdf || '');\n const [showErrorAlert, setShowErrorAlert] = useState(false);\n\n return (\n \n \n \n {!business.business ? (\n \n ) : (\n <>\n \n \n Standard Block Detail (for display on the landing page)\n \n \n Enabled\n setEnabled(e.detail.checked)} />\n \n setName(e.detail.value as string)}\n />\n setType(e.detail.value)}\n />\n {type=== 'external' && setLinkUrl(e.detail.value as string)}\n />}\n {type === 'content' && <>\n \n \n Modal Content\n \n \n \n >}\n {type === 'pdf' && setPdf(url)}\n onDelete={() => setPdf('')}\n />}\n >\n )}\n \n \n \n Back\n \n {\n return dispatch(updateStandardBlock({ id: block?.id, enabled, name, type, content, linkUrl, pdf }, () => {\n dispatch(fetchBusinessById(business.business.id));\n }, () => {\n setShowErrorAlert(true);\n }));\n }}>\n Update\n \n {\n dispatch(deleteStandardBlock(block?.id, () => {\n location.href = `/admin/businesses/${business.business?.id}/standard-blocks`;\n dispatch(fetchBusinessById(business.business.id));\n }))\n }}>Delete\n \n {showErrorAlert && setShowErrorAlert(false)}\n header={'Error'}\n subHeader={'Please Check Inputs'}\n message={Array.isArray(standardBlock.error?.data?.message) ? standardBlock.error?.data?.message?.join('') : 'Error Modifying Featured Block'}\n />}\n \n );\n};\n\nexport default AdminBusinessDetailStandardBlocksDetail;\n","import {\n IonSplitPane,\n IonRouterOutlet\n} from '@ionic/react';\nimport React, { useEffect } from 'react';\nimport { Route } from 'react-router';\nimport { AmplifyAuthenticator, AmplifySignIn } from '@aws-amplify/ui-react';\nimport { AuthState, onAuthUIStateChange } from '@aws-amplify/ui-components';\nimport AdminMenu from '../shared/components/AdminMenu';\nimport AdminBusinessDetail from './AdminBusinessDetail';\nimport AdminBusinesses from './AdminBusinesses';\nimport AdminHome from './AdminHome';\nimport AdminUsers from './AdminUsers';\nimport AdminUserDetail from './AdminUserDetail';\nimport { fetchCurrentProfile } from '../redux/actions/profileActions';\nimport { useDispatch } from 'react-redux';\nimport AdminBusinessDetailLanding from './AdminBusinessDetailLanding';\nimport AdminBusinessDetailFeaturedBlocks from './AdminBusinessDetailFeaturedBlocks';\nimport AdminBusinessDetailStandardBlocks from './AdminBusinessDetailStandardBlocks';\nimport AdminBusinessDetailFeaturedBlockDetail from './AdminBusinessDetailFeaturedBlockDetail';\nimport AdminBusinessDetailStandardBlockDetail from './AdminBusinessDetailStandardBlockDetail';\n\nimport './Admin.css';\n\nconst Admin: React.FC = () => {\n const dispatch = useDispatch();\n const [authState, setAuthState] = React.useState();\n const [user, setUser] = React.useState();\n\n useEffect(() => {\n onAuthUIStateChange((nextAuthState, authData) => {\n setAuthState(nextAuthState);\n setUser(authData);\n dispatch(fetchCurrentProfile());\n });\n }, [dispatch]);\n\n return authState === AuthState.SignedIn && user ? (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ) : (\n \n \n \n \n \n );\n}\n\nexport default Admin;\n","import { IonRouterOutlet } from \"@ionic/react\";\nimport { IonReactRouter } from \"@ionic/react-router\";\nimport React, { useState } from \"react\";\nimport { Route } from \"react-router-dom\";\nimport Home from './pages/Home';\nimport Landing from \"./pages/Landing\";\nimport Listing from './pages/Listing';\nimport Admin from './pages/Admin';\nimport { Helmet } from \"react-helmet\";\nimport { useSelector } from \"react-redux\";\nimport { getPageTitle } from \"./services/pageService\";\n\nconst Router: React.FC = () => {\n const {\n business\n } = useSelector((store: any) => ({\n business: store.businessReducer\n }));\n\n const [title, setTitle] = useState('');\n\n return (\n <>\n \n {getPageTitle({title})}\n \n \n \n {\n if (location.pathname.match(/^\\/business\\/[^/]+$/gi)) {\n setTitle(`${business.business?.name} - Home`);\n }\n return (\n \n );\n }}\n />\n {\n if (location.pathname.match(/^\\/business\\/.+\\/listing$/gi)) {\n setTitle(`${business.business?.name || 'Business'} - A-Z`);\n }\n return (\n \n )\n }}\n />\n {\n if (location.pathname.match(/^\\/admin?.+$/gi)) {\n setTitle('Admin');\n }\n return (\n \n )\n }}\n />\n {\n if (location.pathname.match(/^\\/$/gi)) {\n setTitle('Home');\n }\n return (\n \n );\n }} />\n \n \n >\n );\n};\n\nexport default Router;\n","import React from 'react';\nimport { Provider } from 'react-redux';\nimport { IonApp } from '@ionic/react';\n\nimport configureStore from './redux/store';\n\n/* Core CSS required for Ionic components to work properly */\nimport '@ionic/react/css/core.css';\n\n/* Basic CSS for apps built with Ionic */\nimport '@ionic/react/css/normalize.css';\nimport '@ionic/react/css/structure.css';\nimport '@ionic/react/css/typography.css';\n\n/* Optional CSS utils that can be commented out */\nimport '@ionic/react/css/padding.css';\nimport '@ionic/react/css/float-elements.css';\nimport '@ionic/react/css/text-alignment.css';\nimport '@ionic/react/css/text-transformation.css';\nimport '@ionic/react/css/flex-utils.css';\nimport '@ionic/react/css/display.css';\n\n/* Theme variables */\nimport './theme/variables.css';\n\nimport './App.css';\n\nimport Router from './Router';\n\nconst {store} = configureStore();\n\nconst App: React.FC = () => {\n return (\n \n \n \n \n \n );\n};\n\nexport default App;\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.0/8 are considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\ntype Config = {\n onSuccess?: (registration: ServiceWorkerRegistration) => void;\n onUpdate?: (registration: ServiceWorkerRegistration) => void;\n};\n\nexport function register(config?: Config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(\n process.env.PUBLIC_URL,\n window.location.href\n );\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl: string, config?: Config) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch(error => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl: string, config?: Config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl, {\n headers: { 'Service-Worker': 'script' }\n })\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf('javascript') === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.'\n );\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister();\n });\n }\n}\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport App from './App';\nimport * as serviceWorker from './serviceWorker';\nimport Amplify, { Auth } from 'aws-amplify';\nimport TagManager from 'react-gtm-module'\n\nAmplify.configure({\n Auth:{\n // REQUIRED - Amazon Cognito Identity Pool ID\n identityPoolId: process.env.REACT_APP_COGNITO_IDENTITY_POOL_ID, \n // REQUIRED - Amazon Cognito Region\n region: process.env.REACT_APP_COGNITO_REGION, \n // OPTIONAL - Amazon Cognito User Pool ID\n userPoolId: process.env.REACT_APP_COGNITO_USER_POOL_ID,\n // OPTIONAL - Amazon Cognito Web Client ID\n userPoolWebClientId: process.env.REACT_APP_COGNITO_USER_POOL_WEB_CLIENT_ID, \n },\n API: {\n endpoints: [\n {\n name: 'admin',\n endpoint: process.env.REACT_APP_API_BASE_URL,\n custom_header: async () => { \n //return { Authorization : 'token' } \n // Alternatively, with Cognito User Pools use this:\n return { Authorization: `Bearer ${(await Auth.currentSession()).getAccessToken().getJwtToken()}` }\n }\n },\n {\n name: 'public',\n endpoint: process.env.REACT_APP_API_BASE_URL,\n }\n ]\n }\n});\n\nconst tagManagerArgs = {\n gtmId: process.env.REACT_APP_GTM_ID || '',\n}\n\nTagManager.initialize(tagManagerArgs)\n\nReactDOM.render(, document.getElementById('root'));\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();\n"],"sourceRoot":""}
Upload your logo, your favorite photo, select colors and fonts, and enter your copy to create your custom landing page.
{profile.email}
{profile.role}