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,MAAK,SAAAqC,GAAC,MAAmB,UAAfA,EAAE/J,aAErCwK,SAAU,CACRC,IAAKrC,EAASrK,MACd2M,IAAKlC,EAAUzK,OAEjBgH,OAAQ8E,EAAY9L,MACpBqH,MAAOA,EAAMrH,MACbmH,MAAOA,EAAMnH,MACboH,IAAKA,EAAIpH,MACTgF,oBAAqBA,EAAoBhF","sources":["webpack://cashstore-online/./src/kentico/components/breadcrumb/data.ts","webpack://cashstore-online/./src/kentico/components/breadcrumb/indext.tsx","webpack://cashstore-online/./src/kentico/components/store-page/data.ts","webpack://cashstore-online/./src/kentico/components/store-page/index.tsx","webpack://cashstore-online/./src/gatsby/templates/store-page.tsx","webpack://cashstore-online/./src/kentico/components/loan-type-links/data.ts","webpack://cashstore-online/./src/kentico/components/store/data.ts"],"sourcesContent":["import * as IO from 'io-ts'\n\nexport const KenticoBreadcrumbData = IO.type({\n elements: IO.type({\n breadcrumb_item: IO.type({\n value: IO.array(\n IO.type(\n {\n id:IO.string,\n elements:IO.type({\n label:IO.type({\n value:IO.string\n }),\n url:IO.type({\n value:IO.string\n })\n }),\n }\n )\n )\n })\n })}\n)\n","import {KenticoBreadcrumbData} from './data'\nimport * as IO from 'io-ts'\nimport { Row as BootstrapRow } from '~/bootstrap/components/layout'\nimport React from 'react'\nimport {FaAngleRight, FaHome} from 'react-icons/fa'\nimport styled from 'styled-components'\n\n\n/** Data type. */\nexport interface KenticoBreadcrumbData\n extends IO.TypeOf {}\n\ninterface Props {\n breadcrumbData: KenticoBreadcrumbData | undefined | null\n endCrumb: string\n}\n\nconst Row = styled(BootstrapRow)`\n @media (min-width: ${({theme}) => theme.breakpoints.min.lg}) {\n margin-left: 1em;\n }\n @media (max-width: ${({theme}) => theme.breakpoints.max.md}) {\n margin-left: 0.8em;\n }\n @media (max-width: ${({theme}) => theme.breakpoints.max.sm}) {\n margin-left: 0.5em;\n }\n`\n\nexport const BreadcrumbComponent = ({breadcrumbData, endCrumb}: Props) => {\n\nconst homeCrumb = \nconst breadcrumbs = breadcrumbData?.elements.breadcrumb_item.value.map(({elements}) => (\n <>{elements.label.value}\n))\n\n return (\n \n {homeCrumb}\n \n {breadcrumbs}\n {endCrumb}\n \n )\n}\n","import {graphql} from 'gatsby'\nimport * as IO from 'io-ts'\nimport {LinkedItems} from '../../util'\nimport {KenticoBodyItemData} from '../body-item'\nimport {KenticoBreadcrumbData} from '../breadcrumb/data'\nimport {KenticoPageLinkData} from '../page-link'\nimport {KenticoPageScriptData} from '../page-script'\nimport {KenticoRichTextData} from '../rich-text'\nimport {KenticoSchemaData} from '../schema'\n\n\n\n/** Page Store. */\nexport const KenticoStorePageData = IO.intersection(\n [\n KenticoPageLinkData,\n IO.type({\n elements: IO.type({\n backToLink: LinkedItems(KenticoPageLinkData),\n breadcrumb: LinkedItems(KenticoBreadcrumbData),\n canonicalPage: LinkedItems(KenticoPageLinkData),\n description: IO.type({\n value: IO.string,\n }),\n postBody: LinkedItems(KenticoBodyItemData),\n preBody: LinkedItems(KenticoBodyItemData),\n robots: IO.type({\n value: IO.array(\n IO.type({\n codename: IO.string,\n }),\n ),\n }),\n schema: LinkedItems(KenticoSchemaData),\n scripts: LinkedItems(KenticoPageScriptData),\n storeDetailedDescription: KenticoRichTextData,\n title: IO.type({\n value: IO.string,\n }),\n }),\n system: IO.type({\n id: IO.string,\n }),\n }),\n ],\n 'KenticoStorePage',\n)\n\n/** Data type. */\nexport interface KenticoStorePageData\n extends IO.TypeOf {}\n\n/** Fragment helper. */\nexport const fragment = graphql`\n fragment KenticoStorePage on Node {\n ... on kontent_item_store_page {\n ...KenticoPageLink\n system {\n id\n }\n elements {\n backToLink: back_to_link {\n nodes: value {\n ...KenticoPageLink\n }\n }\n preBody: pre_post_body__pre_body {\n nodes: value {\n ...KenticoBodyItem\n }\n }\n postBody: pre_post_body__post_body {\n nodes: value {\n ...KenticoBodyItem\n }\n }\n canonicalPage: metadata__canonical_page {\n nodes: value {\n ...KenticoPageLink\n }\n }\n description: metadata__description {\n value\n }\n robots: metadata__robots {\n value {\n codename\n }\n }\n schema: metadata__schema {\n nodes: value {\n ...KenticoSchema\n }\n }\n scripts: metadata__scripts {\n nodes: value {\n ...KenticoPageScript\n }\n }\n storeDetailedDescription: store_detailed_description {\n ...KenticoRichText\n }\n title: metadata__title {\n value\n }\n breadcrumb: breadcrumb {\n nodes: value {\n ... on kontent_item_store_breadcrumb {\n elements {\n breadcrumb_item {\n value {\n ... on kontent_item_store_breadcrumb_item {\n id\n elements {\n label {\n value\n }\n url {\n value\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n`\n","import React, {useContext, useMemo} from 'react'\nimport {FaAngleLeft, FaCheckCircle} from 'react-icons/fa'\nimport {\n MdAccessTime,\n MdArrowDropDown,\n MdPhone,\n MdRecordVoiceOver,\n} from 'react-icons/md'\nimport {UncontrolledCollapse} from 'reactstrap'\nimport styled from 'styled-components'\nimport {\n Col,\n Container as BootstrapContainer,\n Row,\n} from '~/bootstrap/components/layout'\nimport {Link} from '~/common/components/link'\nimport {Noop} from '~/common/components/noop'\nimport {formatPhoneNumber} from '~/common/util'\nimport {GatsbySEO} from '~/gatsby/components/seo'\nimport {useQuery} from '~/gatsby/util'\nimport {StoresHours} from '~/stores/components/hours'\nimport {StoresMap} from '~/stores/components/map'\nimport {StoresContext} from '~/stores/context'\nimport {Store} from '~/stores/types'\nimport {createReplace} from '../../renderer'\nimport {createUrl, linkedItems} from '../../util'\nimport {KenticoBodyItem} from '../body-item'\nimport { BreadcrumbComponent } from '../breadcrumb/indext'\nimport {KenticoFluidImage} from '../fluid-image'\nimport {KenticoGlobalScriptData} from '../global-script'\nimport {KenticoStorePageData} from './data'\nimport { BsExclamationCircle } from 'react-icons/bs'\nimport { NotificationMessage } from '~/stores/components/notificationMessage'\n\ninterface Props {\n page: KenticoStorePageData\n globalScripts: KenticoGlobalScriptData\n}\n\n/** Kentico type data. */\nexport {KenticoStorePageData}\n\nconst Container = styled(BootstrapContainer)`\n padding-top: ${({theme}) => theme.spacers[4]};\n`\n\nconst StoreDetail = styled.p`\n font-size: normal;\n\n > svg {\n margin-right: ${({theme}) => theme.spacers[2]};\n }\n`\n\nconst StoreDescription = styled.div`\n h1{\n font-size:1.125rem !important;\n }\n`\n\nconst NotificationWarning = styled.span`\n color: ${({theme}) => theme.colors.red};\n`\n\nconst NearbyStoreContainer = styled.div`\n max-width: 50%;\n`\n\nconst StoreDetailAddress = styled(StoreDetail)`\n margin-bottom: 0;\n`\n\nconst Divider = styled.hr`\n margin: ${({theme}) => theme.spacers[3]} 0 ${({theme}) => theme.spacers[4]};\n`\n\nconst LastDivider = styled(Divider)`\n margin-top: ${({theme}) => theme.spacers[4]};\n`\n\nconst SectionTitle = styled.h5`\n margin-bottom: ${({theme}) => theme.spacers[4]};\n`\n\nconst Checkmark = styled(FaCheckCircle)`\n color: ${({theme}) => theme.colors.tertiary};\n margin-right: ${({theme}) => theme.spacers[3]};\n font-size: 1.4rem;\n`\n\nconst ServiceAvailable = styled(Col)`\n display: flex;\n`\n\nconst NearbyLocation = styled(Col)`\n padding-bottom: ${({theme}) => theme.spacers[3]};\n\n & > p {\n margin-bottom: 0;\n }\n`\n\nconst MapContainer = styled(Col)`\n @media (max-width: ${({theme}) => theme.breakpoints.max.sm}) {\n display: none;\n }\n`\n\nconst SmallTextRow = styled(Row)`\n padding-bottom: ${({theme}) => theme.spacers[3]};\n\n @media (max-width: ${({theme}) => theme.breakpoints.max.sm}) {\n padding-left: ${({theme}) => theme.spacers[2]};\n }\n`\n\nconst DropdownCol = styled(Col)`\n display: flex;\n flex-direction: column;\n padding-bottom: ${({theme}) => theme.spacers[3]};\n`\n\nconst DropdownButton = styled(StoreDetail)`\n display: inline-block;\n cursor: pointer;\n align-items: center;\n`\n\nconst OtherStoreLink = styled.a`\n color: ${({theme}) => theme.colors.secondary};\n\n &:hover {\n color: ${({theme}) => theme.colors.secondary};\n border-bottom: 1px solid ${({theme}) => theme.colors.secondary};\n }\n`\n\nconst StoreTitle = styled.h4`\n @media (max-width: ${({theme}) => theme.breakpoints.max.sm}) {\n padding-top: ${({theme}) => theme.spacers[3]};\n }\n`\n\n// The functions below are helpers, not components\n/* eslint-disable react/no-multi-comp */\n\nconst createCashAdvanceLoanLink = (store: Store) => {\n if (!store.loans.cashAdvance) {\n return undefined\n }\n let cashAdvanceLoanText =

Cash Advance Loans

\n if (store.loanLinks && store.loanLinks.length > 0) {\n cashAdvanceLoanText = (\n

\n \n Cash Advance Loans\n \n

\n )\n }\n return (\n \n \n {cashAdvanceLoanText}\n \n )\n}\n\nconst createInstallmentLoanLink = (store: Store) => {\n if (!store.loans.installment) {\n return undefined\n }\n let installmentLoanText =

Installment Loans

\n if (store.loanLinks && store.loanLinks.length > 0) {\n installmentLoanText = (\n

\n \n Installment Loans\n \n

\n )\n }\n return (\n \n \n {installmentLoanText}\n \n )\n}\n\nconst createTitleLoanLink = (store: Store) => {\n if (!store.loans.title) {\n return undefined\n }\n let titleLoanText =

Title Loans

\n if (store.loanLinks && store.loanLinks.length > 0) {\n titleLoanText = (\n

\n \n Title Loans\n \n

\n )\n }\n return (\n \n \n {titleLoanText}\n \n )\n}\n\n/**\n * Render store page from Kentico data.\n * @return React component\n */\nexport const KenticoStorePage = ({page, globalScripts}: Props) => {\n const {store, stores: nearbyStores} = useContext(StoresContext)\n const {mapMarker} = useQuery()\n const stores = useMemo(() => (store ? [store] : []), [store])\n if (!store || !nearbyStores) {\n return \n }\n const {storeDetailedDescription, breadcrumb} = page.elements\n\n let notification\n let notificationMessage\n if(store.notificationMessage && store.enableDallasStoreChanges){\n notification = \n notificationMessage = \n }\n\n let imageElement\n if (store.image) {\n imageElement = \n }\n\n let bilingualCheck\n if (store.bilingual) {\n bilingualCheck = (\n \n \n Bilingual\n \n )\n }\n\n const cashAdvanceCheck = createCashAdvanceLoanLink(store)\n const installmentCheck = createInstallmentLoanLink(store)\n const titleLoanCheck = createTitleLoanLink(store)\n let closestLocations: any[] = []\n let nearbyStoreNotificationMessage: {} | null | undefined\n\n nearbyStores.forEach(currentStore => {\n let nearbyStoreNotification\n if (currentStore.notificationMessage && store.enableDallasStoreChanges) {\n nearbyStoreNotification = (\n \n \n \n )\n nearbyStoreNotificationMessage = (\n <>\n \n \n \n )\n }\n closestLocations.push(\n \n \n \n \n Cash Store {nearbyStoreNotification}\n \n \n

{currentStore.address}

\n

\n {currentStore.city}, {currentStore.state} {currentStore.zip}\n

\n \n {formatPhoneNumber(currentStore.phone)}\n \n
\n
,\n )\n })\n\n let storeDescElement\n if (\n storeDetailedDescription.value.replace(/(<([^>]+)>)/gi, '').trim() !== ''\n ) {\n storeDescElement = (\n <>\n \n \n \n \n \n \n \n )\n }\n\n let storeLocationLink = (\n <>\n {store.address}\n \n {store.city}, {store.state} {store.zip}\n \n \n )\n if (store.gmbUrl !== undefined) {\n storeLocationLink = (\n \n {storeLocationLink}\n \n )\n }\n\n const backToResults =\n <>\n \n \n Back to Results\n \n \n\n// FIXME Code is too similar to store-location's, should be reused\n return (\n <>\n \n \n \n \n \n \n \n {breadcrumb.nodes ?\n breadcrumb.nodes.length === 0 ?\n backToResults :\n :\n backToResults\n }\n\n \n \n \n {imageElement}\n \n Cash Store {notification}\n {storeLocationLink}\n \n \n \n {formatPhoneNumber(store.phone)}\n \n \n {bilingualCheck}\n \n \n Store Hours\n \n \n \n \n \n \n \n \n \n \n {notificationMessage}\n \n \n \n \n Services Available\n \n {cashAdvanceCheck}\n {installmentCheck}\n {titleLoanCheck}\n \n \n \n \n Nearby Locations\n \n {closestLocations}\n {nearbyStoreNotificationMessage}\n \n \n \n \n \n \n {storeDescElement}\n \n \n \n \n )\n}\n","import {graphql} from 'gatsby'\nimport * as IO from 'io-ts'\nimport React, {useMemo} from 'react'\nimport {KenticoGlobalScriptData} from '~/kentico/components/global-script'\nimport {KenticoPageLinkData} from '~/kentico/components/page-link'\nimport {KenticoStoreData, toStore} from '~/kentico/components/store'\nimport {\n KenticoStorePage,\n KenticoStorePageData,\n} from '~/kentico/components/store-page'\nimport {LinkedItems, createUrl, linkedItems} from '~/kentico/util'\nimport {StoresProvider} from '~/stores/components/provider'\nimport {Store} from '~/stores/types'\nimport {CookieError} from '~/common/components/cookie-error'\nimport {GatsbyLayout} from '../components/layout'\nimport {useDecode} from '../util'\n\nconst Props = IO.type({\n data: IO.type({\n globalScripts: KenticoGlobalScriptData,\n page: IO.intersection([\n KenticoStorePageData,\n IO.type({\n elements: IO.type({\n store: LinkedItems(KenticoStoreData),\n }),\n }),\n ]),\n pages: LinkedItems(\n IO.intersection([\n KenticoPageLinkData,\n IO.type({\n elements: IO.type({\n store: LinkedItems(\n IO.type({\n id: IO.string,\n }),\n ),\n }),\n }),\n ]),\n ),\n stores: LinkedItems(KenticoStoreData),\n }),\n pageContext: IO.type({\n storeIds: IO.array(IO.string),\n }),\n})\n\n/** Query from template. */\nexport const query = graphql`\n query($id: String!, $storeIds: [String!]!, $pageIds: [String!]!) {\n page: kontentItemStorePage(id: {eq: $id}) {\n ...KenticoStorePage\n elements {\n store {\n nodes: value {\n ...KenticoStore\n }\n }\n }\n }\n stores: allKontentItemStore(filter: {id: {in: $storeIds}}) {\n nodes {\n ...KenticoStore\n }\n }\n pages: allKontentItemStorePage(filter: {id: {in: $pageIds}}) {\n nodes {\n ...KenticoPageLink\n elements {\n store {\n nodes: value {\n id\n }\n }\n }\n }\n }\n ...KenticoGlobalScripts\n }\n`\n\nconst StorePage = (props: unknown) => {\n //console.log(props)\n const {\n data: {pages, stores, ...data},\n pageContext: {storeIds},\n } = useDecode(Props, props)\n\n // Ensure sorting matches original data\n const sortedStores = useMemo(\n () =>\n [...linkedItems(stores)]\n .sort((a, b) => storeIds.indexOf(a.id) - storeIds.indexOf(b.id))\n .map(node => {\n const store = toStore(node)\n const page = linkedItems(pages).find(p =>\n linkedItems(p.elements.store).some(s => s.id === node.id),\n )\n return page ? {...store, url: createUrl(page)} : store\n }),\n [pages, stores, storeIds],\n )\n\n return (\n \n \n \n \n \n \n )\n}\n\n/** Store page. */\n// eslint-disable-next-line import/no-default-export\nexport default StorePage\n","import {graphql} from 'gatsby'\nimport * as IO from 'io-ts'\nimport {LinkedItems} from '../../util'\nimport {KenticoContentData} from '../content'\nimport {KenticoPageLinkData} from '../page-link'\n\n/** Loan Type Links. */\nexport const KenticoLoanTypeLinksData = IO.intersection([\n KenticoContentData,\n IO.type({\n elements: IO.type({\n cashAdvance: LinkedItems(KenticoPageLinkData),\n installment: LinkedItems(KenticoPageLinkData),\n title: LinkedItems(KenticoPageLinkData),\n }),\n system: IO.type({\n type: IO.literal('loan_type_links'),\n }),\n }),\n])\n\n/** Data type. */\nexport interface KenticoLoanTypeLinksData\n extends IO.TypeOf {}\n\n/** Fragment helper. */\nexport const fragment = graphql`\n fragment KenticoLoanTypeLinks on Node {\n ... on kontent_item_loan_type_links {\n system {\n codename\n id\n name\n type\n }\n elements {\n cashAdvance: cash_advance {\n nodes: value {\n ...KenticoPageLink\n }\n }\n installment {\n nodes: value {\n ...KenticoPageLink\n }\n }\n title {\n nodes: value {\n ...KenticoPageLink\n }\n }\n }\n }\n }\n`\n","import {setHours, startOfDay} from 'date-fns'\nimport {graphql} from 'gatsby'\nimport * as IO from 'io-ts'\nimport {Store, StoreHours} from '~/stores/types'\nimport {LinkedItems, linkedItems, validImage} from '../../util'\nimport {KenticoContentData} from '../content'\nimport {KenticoFluidImageData} from '../fluid-image'\nimport {KenticoLoanTypeLinksData} from '../loan-type-links'\n\n/** Store. */\nexport const KenticoStoreData = IO.intersection(\n [\n KenticoContentData,\n IO.type({\n elements: IO.type({\n address: IO.type({\n value: IO.string,\n }),\n city: IO.type({\n value: IO.string,\n }),\n fridayClose: IO.partial({\n value: IO.union([IO.number, IO.null]),\n }),\n fridayOpen: IO.partial({\n value: IO.union([IO.number, IO.null]),\n }),\n gmbLocationUrl: IO.partial({\n value: IO.union([IO.string, IO.null]),\n }),\n image: IO.type({\n value: IO.array(KenticoFluidImageData),\n }),\n latitude: IO.type({\n value: IO.number,\n }),\n loanTypeLinks: LinkedItems(KenticoLoanTypeLinksData),\n loanTypes: IO.type({\n value: IO.array(\n IO.type({\n codename: IO.keyof({\n cash_advance: undefined,\n installment: undefined,\n title: undefined,\n }),\n }),\n ),\n }),\n longitude: IO.type({\n value: IO.number,\n }),\n mondayClose: IO.partial({\n value: IO.union([IO.number, IO.null]),\n }),\n mondayOpen: IO.partial({\n value: IO.union([IO.number, IO.null]),\n }),\n number: IO.type({\n value: IO.string,\n }),\n options: IO.type({\n value: IO.array(\n IO.type({\n codename: IO.keyof({\n bilingual: undefined,\n open: undefined,\n }),\n }),\n ),\n }),\n phone: IO.type({\n value: IO.string,\n }),\n saturdayClose: IO.partial({\n value: IO.union([IO.number, IO.null]),\n }),\n saturdayOpen: IO.partial({\n value: IO.union([IO.number, IO.null]),\n }),\n // TODO specific typing\n state: IO.type({\n value: IO.string,\n }),\n sundayClose: IO.partial({\n value: IO.union([IO.number, IO.null]),\n }),\n sundayOpen: IO.partial({\n value: IO.union([IO.number, IO.null]),\n }),\n thursdayClose: IO.partial({\n value: IO.union([IO.number, IO.null]),\n }),\n thursdayOpen: IO.partial({\n value: IO.union([IO.number, IO.null]),\n }),\n tuesdayClose: IO.partial({\n value: IO.union([IO.number, IO.null]),\n }),\n tuesdayOpen: IO.partial({\n value: IO.union([IO.number, IO.null]),\n }),\n wednesdayClose: IO.partial({\n value: IO.union([IO.number, IO.null]),\n }),\n wednesdayOpen: IO.partial({\n value: IO.union([IO.number, IO.null]),\n }),\n zip: IO.type({\n value: IO.string,\n }),\n notificationMessage: IO.type({\n value: IO.string,\n })\n }),\n id: IO.string,\n system: IO.type({\n type: IO.literal('store'),\n }),\n }),\n ],\n 'KenticoStore',\n)\n\n/** Data type. */\nexport interface KenticoStoreData extends IO.TypeOf {}\n\n/** Fragment helper. */\nexport const fragment = graphql`\n fragment KenticoStore on Node {\n ... on kontent_item_store {\n system {\n codename\n id\n name\n type\n }\n elements {\n # Store information\n image: main_photo {\n value {\n ...KenticoFluidImage\n }\n }\n options: store_options {\n value {\n codename\n }\n }\n number: store_number {\n value\n }\n phone {\n value\n }\n loanTypes: loan_types {\n value {\n codename\n }\n }\n loanTypeLinks: loan_type_links {\n nodes: value {\n ...KenticoLoanTypeLinks\n }\n }\n gmbLocationUrl: gmb_location_url {\n value\n }\n\n # Store hours\n mondayOpen: monday_open {\n value\n }\n mondayClose: monday_close {\n value\n }\n tuesdayOpen: tuesday_open {\n value\n }\n tuesdayClose: tuesday_close {\n value\n }\n wednesdayOpen: wednesday_open {\n value\n }\n wednesdayClose: wednesday_close {\n value\n }\n thursdayOpen: thursday_open {\n value\n }\n thursdayClose: thursday_close {\n value\n }\n fridayOpen: friday_open {\n value\n }\n fridayClose: friday_close {\n value\n }\n saturdayOpen: saturday_open {\n value\n }\n saturdayClose: saturday_close {\n value\n }\n sundayOpen: sunday_open {\n value\n }\n sundayClose: sunday_close {\n value\n }\n notificationMessage: notification_message{\n value\n }\n\n # Location\n address {\n value\n }\n city {\n value\n }\n state {\n value\n }\n zip {\n value\n }\n latitude {\n value\n }\n longitude {\n value\n }\n }\n id\n }\n }\n`\n\nconst buildHours = (\n open: {value?: number | null},\n close: {value?: number | null},\n): StoreHours | undefined => {\n const today = startOfDay(new Date(0))\n if (open.value == undefined || close.value == undefined) {\n return undefined\n }\n return {\n close: setHours(today, close.value + 12),\n open: setHours(today, open.value),\n }\n}\n\n/**\n * Convert Kentico store to standard store.\n * @return Store\n */\nexport const toStore = ({\n elements: {\n address,\n city,\n fridayClose,\n fridayOpen,\n gmbLocationUrl,\n image,\n latitude,\n loanTypeLinks,\n loanTypes,\n longitude,\n mondayOpen,\n mondayClose,\n number: storeNumber,\n options,\n phone,\n saturdayClose,\n saturdayOpen,\n sundayClose,\n sundayOpen,\n thursdayOpen,\n thursdayClose,\n tuesdayClose,\n tuesdayOpen,\n wednesdayClose,\n wednesdayOpen,\n state,\n zip,\n notificationMessage,\n },\n}: KenticoStoreData): Store => {\n validImage(image)\n return {\n address: address.value,\n bilingual: options.value.some(o => o.codename === 'bilingual'),\n city: city.value,\n gmbUrl:\n gmbLocationUrl.value != undefined && gmbLocationUrl.value !== ''\n ? gmbLocationUrl.value\n : undefined,\n hours: {\n friday: buildHours(fridayOpen, fridayClose),\n monday: buildHours(mondayOpen, mondayClose),\n saturday: buildHours(saturdayOpen, saturdayClose),\n sunday: buildHours(sundayOpen, sundayClose),\n thursday: buildHours(thursdayOpen, thursdayClose),\n tuesday: buildHours(tuesdayOpen, tuesdayClose),\n wednesday: buildHours(wednesdayOpen, wednesdayClose),\n },\n image: image.value[0],\n loanLinks: linkedItems(loanTypeLinks),\n loans: {\n cashAdvance: loanTypes.value.some(o => o.codename === 'cash_advance'),\n installment: loanTypes.value.some(o => o.codename === 'installment'),\n title: loanTypes.value.some(o => o.codename === 'title'),\n },\n location: {\n lat: latitude.value,\n lng: longitude.value,\n },\n number: storeNumber.value,\n phone: phone.value,\n state: state.value,\n zip: zip.value,\n notificationMessage: notificationMessage.value,\n }\n}\n"],"names":["KenticoBreadcrumbData","IO","elements","breadcrumb_item","value","id","label","url","Row","styled","BootstrapRow","theme","breakpoints","min","lg","max","md","sm","BreadcrumbComponent","breadcrumbData","endCrumb","homeCrumb","href","size","breadcrumbs","map","KenticoStorePageData","KenticoPageLinkData","backToLink","LinkedItems","breadcrumb","canonicalPage","description","postBody","KenticoBodyItemData","preBody","robots","codename","schema","KenticoSchemaData","scripts","KenticoPageScriptData","storeDetailedDescription","KenticoRichTextData","title","system","Container","BootstrapContainer","spacers","StoreDetail","StoreDescription","NotificationWarning","colors","red","NearbyStoreContainer","StoreDetailAddress","Divider","LastDivider","SectionTitle","Checkmark","FaCheckCircle","tertiary","ServiceAvailable","Col","NearbyLocation","MapContainer","SmallTextRow","DropdownCol","DropdownButton","OtherStoreLink","secondary","StoreTitle","KenticoStorePage","page","globalScripts","useContext","StoresContext","store","nearbyStores","stores","mapMarker","useQuery","useMemo","notification","notificationMessage","imageElement","bilingualCheck","enableDallasStoreChanges","notificationText","image","alt","bilingual","nearbyStoreNotificationMessage","storeDescElement","cashAdvanceCheck","loans","cashAdvance","cashAdvanceLoanText","loanLinks","length","to","createUrl","createCashAdvanceLoanLink","installmentCheck","installment","installmentLoanText","createInstallmentLoanLink","titleLoanCheck","titleLoanText","createTitleLoanLink","closestLocations","forEach","currentStore","nearbyStoreNotification","push","key","number","address","city","state","zip","phone","formatPhoneNumber","replace","trim","dangerouslySetInnerHTML","__html","storeLocationLink","undefined","gmbUrl","rel","target","backToResults","pageScripts","createReplace","linkedItems","data","nodes","UncontrolledCollapse","toggler","icon","zoom","Props","KenticoGlobalScriptData","KenticoStoreData","pages","pageContext","storeIds","props","useDecode","sortedStores","sort","a","b","indexOf","node","toStore","find","p","some","s","contentId","KenticoLoanTypeLinksData","KenticoContentData","type","fridayClose","fridayOpen","gmbLocationUrl","KenticoFluidImageData","latitude","loanTypeLinks","loanTypes","cash_advance","longitude","mondayClose","mondayOpen","options","open","saturdayClose","saturdayOpen","sundayClose","sundayOpen","thursdayClose","thursdayOpen","tuesdayClose","tuesdayOpen","wednesdayClose","wednesdayOpen","buildHours","close","today","startOfDay","Date","setHours","storeNumber","validImage","o","hours","friday","monday","saturday","sunday","thursday","tuesday","wednesday","location","lat","lng"],"sourceRoot":""}