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B0O,EAAGV,QAAQ,CAAC","sources":["webpack://_N_E/./src/constants/tracing/semanticAttributes.ts","webpack://_N_E/./src/constants/tracing/semanticResourceAttributes.ts","webpack://_N_E/./src/constants/tracing/index.ts","webpack://_N_E/./src/utils/tracing.ts","webpack://_N_E/./src/api/helpers/executeQuery.ts","webpack://_N_E/./src/api/graphql/business.ts","webpack://_N_E/./src/api/query-functions/business.ts","webpack://_N_E/./src/api/query-hooks/business.ts","webpack://_N_E/./src/components/Common/CottageBanner/CottageBanner.tsx","webpack://_N_E/./src/components/Common/CottageBanner/useBannerText.tsx","webpack://_N_E/./src/components/Common/CottageBanner/index.tsx","webpack://_N_E/./src/components/AppLayout/AppLayout.tsx","webpack://_N_E/./src/components/AppLayout/index.tsx","webpack://_N_E/./src/models/react-query.ts","webpack://_N_E/./src/utils/helpers/DateTimeHelpers.ts"],"sourcesContent":["import {\n SEMATTRS_EXCEPTION_TYPE,\n SEMATTRS_HTTP_METHOD,\n SEMATTRS_HTTP_STATUS_CODE,\n SEMATTRS_HTTP_URL,\n} from '@opentelemetry/semantic-conventions';\n\nexport enum SemanticAttributes {\n EXCEPTION_TYPE = SEMATTRS_EXCEPTION_TYPE,\n HTTP_STATUS_CODE = SEMATTRS_HTTP_STATUS_CODE,\n HTTP_URL = SEMATTRS_HTTP_URL,\n HTTP_METHOD = SEMATTRS_HTTP_METHOD,\n}\n\nexport const enum MoreSemanticAttributes {\n // https://opentelemetry.io/docs/specs/otel/trace/semantic_conventions/instrumentation/graphql/\n GRAPHQL_OPERATION_NAME = 'graphql.operation.name',\n GRAPHQL_OPERATION_TYPE = 'graphql.operation.type',\n GRAPHQL_DOCUMENT = 'graphql.document',\n}\n\nexport const enum NonStandardSemanticAttributes {\n GRAPHQL_OPERATION_VARIABLES = 'graphql.operation.variables',\n\n APOLLO_ERROR_COUNT = 'graphql.apollo.error.length',\n APOLLO_FIRST_ERROR_TYPE = 'graphql.apollo.error.0.type',\n APOLLO_FIRST_ERROR_MESSAGE = 'graphql.apollo.error.0.message',\n\n AWS_COGNITO_USER_POOL_ID = 'aws.cognito.user_pool_id',\n AWS_COGNITO_USER_POOL_CLIENT_ID = 'aws.cognito.user_pool_client_id',\n AWS_COGNITO_IDENTITY_POOL_CLIENT_ID = 'aws.cognito.identity_pool_id',\n}\n\nexport const enum CottageSemanticAttributes {\n BUSINESS_ID = 'cottage.business_id',\n CONSUMER_ID = 'cottage.consumer_id',\n}\n","import { SEMRESATTRS_SERVICE_NAME } from '@opentelemetry/semantic-conventions';\n\nexport enum SemanticResourceAttributes {\n SERVICE_NAME = SEMRESATTRS_SERVICE_NAME,\n}\n","export * from './semanticAttributes';\nexport * from './semanticResourceAttributes';\n","import { Attributes, Span, SpanStatusCode, trace } from '@opentelemetry/api';\n\nimport { measure } from './timing';\n\nexport const SERVICE_NAME = 'cottage-shop-web';\nexport const TRACER_NAME = 'default';\n\n/**\n * Creates a span in the current tracing context.\n *\n * Use {@link withTracing} unless you need direct access to the OpenTelemetry span.\n */\nexport async function startSpan(spanName: string, fn: (span: Span) => Promise): Promise {\n return await trace.getTracer(TRACER_NAME).startActiveSpan(spanName, async (span) => {\n try {\n return await fn(span);\n } finally {\n span.end();\n }\n });\n}\n\n/** Helper function to run an async function with OpenTelemetry tracing. */\nexport async function withTracing(\n spanName: string,\n spanAttributes: Attributes,\n fn: () => Promise\n): Promise {\n return startSpan(spanName, async (span) => {\n span.setAttributes(spanAttributes);\n\n try {\n const result = await measure(spanName, fn);\n span.setStatus({\n code: SpanStatusCode.OK,\n });\n return result;\n } catch (e) {\n span.setStatus({\n code: SpanStatusCode.ERROR,\n message: e instanceof Error ? e.message : String(e),\n });\n if (e instanceof Error) {\n span.recordException(e);\n }\n throw e;\n }\n });\n}\n","import { GraphQLOptions, GraphQLResult } from '@aws-amplify/api-graphql';\nimport { SpanStatusCode } from '@opentelemetry/api';\nimport { APIClass, graphqlOperation } from 'aws-amplify';\nimport {\n MoreSemanticAttributes,\n NonStandardSemanticAttributes,\n SemanticAttributes,\n} from 'constants/tracing';\nimport { Kind, parse } from 'graphql';\nimport { getLogger } from 'utils';\nimport { serializeError } from 'utils/errors';\nimport { startSpan } from 'utils/tracing';\n\nimport { GraphQLError } from './errors';\n\ntype Operation = { name: string; type: string };\nconst queryToOperationCache = new Map();\n\n/** Parses a GraphQL query to determine the operation name/type. Uses a cache when possible. */\nfunction parseOperation(gqlQuery: string): Operation {\n const cachedValue = queryToOperationCache.get(gqlQuery);\n if (cachedValue) {\n return cachedValue;\n }\n\n const def = parse(gqlQuery).definitions[0];\n if (def.kind !== Kind.OPERATION_DEFINITION || !def.name) {\n throw new Error(`Malformed query: ${gqlQuery}`);\n }\n const result = {\n name: def.name.value,\n type: String(def.operation),\n };\n queryToOperationCache.set(gqlQuery, result);\n return result;\n}\n\n/** Executes a GraphQL query in a type-safe way */\nasync function request(api: APIClass, options: GraphQLOptions): Promise> {\n const promise = api.graphql(options) as Promise>;\n return await promise;\n}\n\n/** Removes resolver-level tracing data from a response or error object so it's not passed around downstream */\nfunction stripTracing | GraphQLError>(thing: T): T {\n if (thing.extensions?.tracing) {\n delete thing.extensions.tracing;\n }\n return thing;\n}\n\n/** Executes a GraphQL query, traces the execution, and strips resolver-level tracing data */\nexport async function executeQuery<\n ResultType extends Record,\n VariablesType extends Record = Record,\n>(api: APIClass, gqlQuery: string, variables: VariablesType): Promise> {\n const logger = getLogger('executeQuery');\n const { name: operationName, type: operationType } = parseOperation(gqlQuery);\n\n return await startSpan(`GraphQL ${operationName}`, async (span) => {\n span.setAttributes({\n [MoreSemanticAttributes.GRAPHQL_OPERATION_NAME]: operationName,\n [MoreSemanticAttributes.GRAPHQL_OPERATION_TYPE]: operationType,\n [MoreSemanticAttributes.GRAPHQL_DOCUMENT]: gqlQuery,\n [NonStandardSemanticAttributes.GRAPHQL_OPERATION_VARIABLES]: JSON.stringify(variables),\n });\n\n try {\n const response = await request(api, graphqlOperation(gqlQuery, variables));\n\n logger.debug(`GraphQL operation ${operationName} succeeded`);\n span.setStatus({ code: SpanStatusCode.OK });\n return stripTracing(response);\n } catch (e) {\n if (e instanceof Error) {\n // The request failed, but not with a GraphQL error\n logger.error(\n `GraphQL operation ${operationName} failed with a non-GraphQL error`,\n serializeError(e)\n );\n span.setStatus({ code: SpanStatusCode.ERROR, message: e.message });\n span.recordException(e);\n throw e;\n }\n\n if (!Object.hasOwn(e as object, 'errors')) {\n // Unrecognized POJO error (should not happen)\n logger.error(\n `GraphQL operation ${operationName} failed with an unrecognized POJO error`,\n serializeError(e)\n );\n span.setStatus({ code: SpanStatusCode.ERROR });\n throw e;\n }\n\n const graphqlError = stripTracing(e as GraphQLError);\n logger.debug(\n `GraphQL operation ${operationName} failed with an Apollo error`,\n serializeError(graphqlError)\n );\n\n const error = graphqlError.errors[0];\n span.setAttributes({\n [SemanticAttributes.EXCEPTION_TYPE]: 'GraphQLError',\n [NonStandardSemanticAttributes.APOLLO_ERROR_COUNT]: graphqlError.errors.length,\n [NonStandardSemanticAttributes.APOLLO_FIRST_ERROR_TYPE]: error.extensions.code,\n [NonStandardSemanticAttributes.APOLLO_FIRST_ERROR_MESSAGE]: error.message,\n });\n\n span.recordException(graphqlError.errors[0].extensions.exception);\n span.setStatus({\n code: SpanStatusCode.ERROR,\n message: error.extensions.code ?? error.message,\n });\n throw graphqlError;\n }\n });\n}\n","export const getBusinessAuthQueryGql = `query GetBusinessAuth ($input: GetBusinessInput!) {\n getBusiness (input: $input) {\n id\n cognito {\n identityPoolId\n userPoolId\n userPoolClientId\n }\n }\n}`;\n\nexport const getBusinessSettingsQueryGql = `query GetBusinessSettings ($input: GetBusinessInput!) {\n getBusiness (input: $input) {\n id\n settings {\n subscriptionAllowPause\n subscriptionAllowCancel\n orderAllowCancel\n referralConfiguration {\n enabled\n value {\n amount\n currency {\n symbol\n abbreviation\n }\n }\n }\n rewardConfiguration {\n enabled\n threshold\n value {\n amount\n currency {\n symbol\n abbreviation\n }\n }\n }\n }\n }\n}`;\n\nexport const getBusinessMetadataQueryGql = `query GetBusinessMetadata ($input: GetBusinessMetadataInput!) {\n getBusinessMetadata (input: $input) {\n id\n createdAt\n updatedAt\n title\n subdomain\n customDomain\n avatarImage\n coverImage\n toolbarImage\n supportPhoneNumber\n supportEmail\n showPromotePlans\n showGiftCard\n promotePlansText\n supportWidget\n banner\n colorTheme\n metaPixelId\n featurableWidgetId\n headline {\n primary\n secondary\n }\n howItWorks {\n title\n subtitle\n icon\n }\n social {\n facebook\n instagram\n linkedin\n twitter\n }\n faqs {\n id\n createdAt\n updatedAt\n question\n answer\n }\n testimonials {\n id\n createdAt\n updatedAt\n name\n city\n message\n }\n featuredProducts {\n id\n title\n description\n images\n nutrition {\n calorie\n protein\n carbohydrate\n fat\n }\n }\n giftCard {\n minPrice {\n amount\n currency {\n symbol\n abbreviation\n }\n }\n maxPrice {\n amount\n currency {\n symbol\n abbreviation\n }\n }\n }\n marketing {\n provider\n enabled\n integrationScript\n hostedSignUpUrl\n }\n }\n}`;\n\nexport const getBusinessAboutQueryGql = `query GetBusinessAboutUsTeamMembers ($input: GetBusinessMetadataInput!) {\n getBusinessMetadata (input: $input) {\n id\n aboutUs {\n mission\n origin\n }\n teamMemberProfiles {\n id\n name\n title\n bio\n picture\n position\n }\n }\n}`;\n\nexport const getBusinessDeliveriesQueryGql = `query GetBusinessDeliveries ($input: GetBusinessInput!) {\n getBusiness (input: $input) {\n deliveries {\n total\n pageInfo {\n startCursor\n endCursor\n hasPreviousPage\n hasNextPage\n }\n edges {\n cursor\n node {\n id\n createdAt\n updatedAt\n status\n postalCodes\n minimumTotal {\n amount\n currency {\n abbreviation\n symbol\n }\n }\n fee {\n amount\n currency {\n abbreviation\n symbol\n }\n }\n }\n }\n }\n }\n}`;\n\nexport const getBusinessImagesQueryGql = `query GetBusinessImages ($input: GetBusinessMetadataInput!) {\n getBusinessMetadata (input: $input) {\n toolbarImage\n avatarImage\n }\n}`;\n\nexport const getBusinessFaqsQueryGql = `query GetBusinessFaqs ($input: GetBusinessMetadataInput!) {\n getBusinessMetadata (input: $input) {\n faqs {\n id\n createdAt\n updatedAt\n question\n answer\n }\n }\n}`;\n\nexport const getBusinessProductAllergensQueryGql = `query GetBusinessProductAllergens ($input: GetBusinessMetadataInput!) {\n getBusinessMetadata (input: $input) {\n productAllergens\n }\n}`;\n\nexport const getBusinessProductCategoriesGql = `query GetBusinessProductCategories ($input: GetBusinessMetadataInput!) {\n getBusinessMetadata (input: $input) {\n id\n productCategories\n }\n}`;\n\nexport const getBusinessPlansQueryGql = `query GetBusinessPlans ($input: GetBusinessInput!, $filterInput: FilterPlansInput, $pagination: PaginationInput) {\n getBusiness(input: $input) {\n plans(input: $filterInput, pagination: $pagination) {\n total\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n edges {\n node {\n id\n createdAt\n updatedAt\n status\n title\n interval\n images\n description\n transportationType\n chargeDay\n allowSelection\n price {\n amount\n currency {\n abbreviation\n symbol\n }\n }\n pickupAddress {\n id\n isDefault\n createdAt\n updatedAt\n status\n lat\n long\n street\n street2\n city\n stateOrProvince\n postalCode\n country\n }\n fulfillment {\n quantity\n day\n product {\n id\n title\n images\n description\n }\n }\n }\n }\n }\n }\n}`;\n\nexport const getBusinessLegalQueryGql = `query GetBusinessLegal ($input: GetBusinessInput!) {\n getBusiness (input: $input) {\n id\n metadata {\n subdomain\n customDomain\n title\n supportPhoneNumber\n supportEmail\n }\n address {\n id\n createdAt\n updatedAt\n lat\n long\n isDefault\n status\n street\n street2\n city\n postalCode\n country\n stateOrProvince\n }\n }\n}`;\n\nexport const getBusinessPromotedScheduleQueryGql = `query GetBusinessPromotedSchedule ($input: GetBusinessMetadataInput!) {\n getBusinessMetadata (input: $input) {\n promotedSchedule {\n id\n type\n title\n orderReadyStart\n orderReadyEnd\n orderCutoff\n pickupAddress {\n id\n createdAt\n updatedAt\n title\n lat\n long\n isDefault\n status\n street\n street2\n city\n postalCode\n country\n stateOrProvince\n }\n }\n }\n}`;\n\nexport const getBusinessSchedulesQueryGql = `query GetBusinessSchedules (\n $input: GetBusinessInput!, \n $filterSchedulesInput: FilterSchedulesInput!) {\n getBusiness (input: $input) {\n schedules(input: $filterSchedulesInput) {\n edges {\n node {\n id\n createdAt\n updatedAt\n title\n status\n type\n orderReadyStart\n orderReadyEnd\n orderCutoff\n pickupAddress {\n id\n createdAt\n updatedAt\n status\n street\n street2\n city\n stateOrProvince\n postalCode\n country\n title\n isDefault\n lat\n long\n instructions\n }\n }\n }\n }\n }\n}`;\n","import {\n GetBusinessAboutUsTeamMembersQuery,\n GetBusinessAuthQuery,\n GetBusinessDeliveriesQuery,\n GetBusinessFaqsQuery,\n GetBusinessImagesQuery,\n GetBusinessInput,\n GetBusinessLegalQuery,\n GetBusinessLegalQueryVariables,\n GetBusinessMetadataInput,\n GetBusinessMetadataQuery,\n GetBusinessPlansQuery,\n GetBusinessPlansQueryVariables,\n GetBusinessProductAllergensQuery,\n GetBusinessProductCategoriesQuery,\n GetBusinessPromotedScheduleQuery,\n GetBusinessSchedulesQuery,\n GetBusinessSettingsQuery,\n Schedule,\n TransportationType,\n} from 'API';\nimport {\n getBusinessAboutQueryGql,\n getBusinessAuthQueryGql,\n getBusinessDeliveriesQueryGql,\n getBusinessFaqsQueryGql,\n getBusinessImagesQueryGql,\n getBusinessLegalQueryGql,\n getBusinessMetadataQueryGql,\n getBusinessPlansQueryGql,\n getBusinessProductAllergensQueryGql,\n getBusinessProductCategoriesGql,\n getBusinessPromotedScheduleQueryGql,\n getBusinessSchedulesQueryGql,\n getBusinessSettingsQueryGql,\n} from 'api/graphql/business';\nimport { APIClass } from 'aws-amplify';\nimport { Delivery, Pickup, ScheduleByType } from 'containers/Order/Order.types';\nimport { DateTime } from 'luxon';\nimport { QueryFnProps } from 'models/react-query';\nimport DateTimeHelpers from 'utils/helpers/DateTimeHelpers';\n\nimport { executeQuery } from '../helpers/executeQuery';\n\nexport type DateTile = {\n dateTimeEpoch: string;\n day: string;\n schedules: Schedule[];\n};\n\nexport const getBusinessAuthFn = async (\n { queryKey }: QueryFnProps,\n api: APIClass\n) => {\n const [, input] = queryKey;\n return await executeQuery(api, getBusinessAuthQueryGql, { input });\n};\n\nexport const getBusinessSettingsFn = async (\n { queryKey }: QueryFnProps,\n api: APIClass\n) => {\n const [, input] = queryKey;\n return await executeQuery(api, getBusinessSettingsQueryGql, { input });\n};\n\nexport const getBusinessImagesFn = async (\n { queryKey }: QueryFnProps,\n api: APIClass\n) => {\n const [, input] = queryKey;\n return await executeQuery(api, getBusinessImagesQueryGql, { input });\n};\n\nexport const getBusinessMetadataFn = async (\n { queryKey }: QueryFnProps,\n api: APIClass\n) => {\n const [, input] = queryKey;\n return await executeQuery(api, getBusinessMetadataQueryGql, { input });\n};\n\nexport const getBusinessPromotedScheduleFn = async (\n { queryKey }: QueryFnProps,\n api: APIClass\n) => {\n const [, input] = queryKey;\n return await executeQuery(\n api,\n getBusinessPromotedScheduleQueryGql,\n {\n input,\n }\n );\n};\n\nexport const getBusinessAboutFn = async (\n { queryKey }: QueryFnProps,\n api: APIClass\n) => {\n const [, input] = queryKey;\n return await executeQuery(api, getBusinessAboutQueryGql, {\n input,\n });\n};\n\nexport const getBusinessFaqsFn = async (\n { queryKey }: QueryFnProps,\n api: APIClass\n) => {\n const [, input] = queryKey;\n return await executeQuery(api, getBusinessFaqsQueryGql, { input });\n};\n\nexport const getBusinessProductAllergensFn = async (\n { queryKey }: QueryFnProps,\n api: APIClass\n) => {\n const [, input] = queryKey;\n return await executeQuery(\n api,\n getBusinessProductAllergensQueryGql,\n {\n input,\n }\n );\n};\n\nexport const getBusinessProductCategoriesFn = async (\n { queryKey }: QueryFnProps,\n api: APIClass\n) => {\n const [, input] = queryKey;\n return await executeQuery(\n api,\n getBusinessProductCategoriesGql,\n {\n input,\n }\n );\n};\n\nexport const getBusinessPlansFn = async (\n { queryKey }: QueryFnProps,\n api: APIClass\n) => {\n const [, input, filterInput, pagination] = queryKey;\n return await executeQuery(api, getBusinessPlansQueryGql, {\n input,\n filterInput,\n pagination,\n });\n};\n\nexport const getBusinessLegalFn = async (\n { queryKey }: QueryFnProps,\n api: APIClass\n) => {\n const [, input] = queryKey;\n return await executeQuery(api, getBusinessLegalQueryGql, {\n input,\n });\n};\n\nexport const getBusinessSchedulesFn = async (\n { queryKey }: QueryFnProps,\n api: APIClass\n) => {\n const [, input, filterSchedulesInput] = queryKey;\n const data = await executeQuery(api, getBusinessSchedulesQueryGql, {\n input,\n filterSchedulesInput,\n });\n\n const pickups: Pickup[] = [];\n const deliveries: Delivery[] = [];\n\n const schedules = data.data?.getBusiness?.schedules?.edges?.map((e) => e.node) ?? [];\n\n for (const schedule of schedules) {\n if (DateTime.now().toMillis() > parseInt(schedule.orderCutoff || '0')) {\n continue;\n }\n const { id, orderReadyStart, orderReadyEnd, pickupAddress, title } = schedule;\n if (schedule.type === TransportationType.PICK_UP) {\n if (!pickupAddress) {\n continue;\n }\n pickups.push({\n id,\n cutoffTime: parseInt(schedule.orderCutoff),\n time: {\n orderReadyStart: parseInt(orderReadyStart),\n orderReadyEnd: parseInt(orderReadyEnd),\n },\n pickupAddresses: [pickupAddress],\n type: TransportationType.PICK_UP,\n title,\n });\n } else if (schedule.type === TransportationType.DELIVERY) {\n deliveries.push({\n id,\n time: {\n orderReadyStart: parseInt(orderReadyStart),\n orderReadyEnd: parseInt(orderReadyEnd),\n },\n cutoffTime: parseInt(schedule.orderCutoff),\n type: TransportationType.DELIVERY,\n title,\n });\n }\n }\n\n const sortedPickups = pickups.sort((p1, p2) => p1.time.orderReadyStart - p2.time.orderReadyStart);\n const sortedDeliveries = deliveries.sort(\n (p1, p2) => p1.time.orderReadyStart - p2.time.orderReadyStart\n );\n\n const pickupMap = new Map();\n for (const pickup of sortedPickups) {\n const displayableDate = DateTimeHelpers.displayableDateWithDayMonthDay(\n `${pickup.time.orderReadyStart}`\n );\n const bucket = pickupMap.get(displayableDate);\n if (bucket) {\n bucket.push(pickup);\n } else {\n pickupMap.set(displayableDate, [pickup]);\n }\n }\n\n const deliveryMap = new Map();\n for (const delivery of sortedDeliveries) {\n const displayableDate = DateTimeHelpers.displayableDateWithDayMonthDay(\n `${delivery.time.orderReadyStart}`\n );\n const bucket = deliveryMap.get(displayableDate);\n if (bucket) {\n bucket.push(delivery);\n } else {\n deliveryMap.set(displayableDate, [delivery]);\n }\n }\n\n return {\n pickups: pickupMap,\n deliveries: deliveryMap,\n } as ScheduleByType;\n};\n\nexport const getBusinessDeliveriesFn = async (\n { queryKey }: QueryFnProps,\n api: APIClass\n) => {\n const [, input] = queryKey;\n return await executeQuery(api, getBusinessDeliveriesQueryGql, {\n input,\n });\n};\n","import { GraphQLResult } from '@aws-amplify/api';\nimport {\n FilterPlansInput,\n FilterSchedulesInput,\n GetBusinessAboutUsTeamMembersQuery,\n GetBusinessAuthQuery,\n GetBusinessDeliveriesQuery,\n GetBusinessFaqsQuery,\n GetBusinessImagesQuery,\n GetBusinessInput,\n GetBusinessLegalQuery,\n GetBusinessMetadataInput,\n GetBusinessPlansQuery,\n GetBusinessProductAllergensQuery,\n GetBusinessProductCategoriesQuery,\n GetBusinessPromotedScheduleQuery,\n GetBusinessSettingsQuery,\n PaginationInput,\n} from 'API';\nimport {\n getBusinessAboutFn,\n getBusinessAuthFn,\n getBusinessDeliveriesFn,\n getBusinessFaqsFn,\n getBusinessImagesFn,\n getBusinessLegalFn,\n getBusinessPlansFn,\n getBusinessProductAllergensFn,\n getBusinessProductCategoriesFn,\n getBusinessPromotedScheduleFn,\n getBusinessSchedulesFn,\n getBusinessSettingsFn,\n} from 'api/query-functions/business';\nimport { queryWithAmplify } from 'auth';\nimport { ScheduleByType } from 'containers/Order/Order.types';\nimport { QueryKeys } from 'models/react-query';\nimport { useQuery, UseQueryOptions } from 'react-query';\n\nexport const useGetBusinessAuth = (\n input: GetBusinessInput,\n options: UseQueryOptions> = {}\n) => {\n return useQuery>({\n queryKey: [QueryKeys.BUSINESS_AUTH, input],\n queryFn: queryWithAmplify(getBusinessAuthFn),\n ...options,\n });\n};\n\nexport const useGetBusinessSettings = (\n input: GetBusinessInput,\n options: UseQueryOptions> = {}\n) => {\n return useQuery>({\n queryKey: [QueryKeys.BUSINESS_SETTINGS, input],\n queryFn: queryWithAmplify(getBusinessSettingsFn),\n ...options,\n });\n};\n\nexport const useGetBusinessImages = (\n input: GetBusinessMetadataInput,\n options: UseQueryOptions> = {}\n) => {\n return useQuery>({\n queryKey: [QueryKeys.BUSINESS_IMAGES, input],\n queryFn: queryWithAmplify(getBusinessImagesFn),\n ...options,\n });\n};\n\nexport const useGetBusinessAbout = (\n input: GetBusinessMetadataInput,\n options: UseQueryOptions> = {}\n) => {\n return useQuery>({\n queryKey: [QueryKeys.BUSINESS_ABOUT, input],\n queryFn: queryWithAmplify(getBusinessAboutFn),\n ...options,\n });\n};\n\nexport const useGetBusinessFaqs = (\n input: GetBusinessMetadataInput,\n options: UseQueryOptions> = {}\n) => {\n return useQuery>({\n queryKey: [QueryKeys.BUSINESS_FAQS, input],\n queryFn: queryWithAmplify(getBusinessFaqsFn),\n ...options,\n });\n};\n\nexport const useGetBusinessProductAllergens = (\n input: GetBusinessMetadataInput,\n options: UseQueryOptions> = {}\n) => {\n return useQuery>({\n queryKey: [QueryKeys.BUSINESS_PRODUCT_ALLERGENS, input],\n queryFn: queryWithAmplify(getBusinessProductAllergensFn),\n ...options,\n });\n};\n\nexport const useGetBusinessProductCategories = (\n input: GetBusinessInput,\n options: UseQueryOptions> = {}\n) => {\n return useQuery>({\n queryKey: [QueryKeys.BUSINESS_PRODUCT_CATEGORIES, input],\n queryFn: queryWithAmplify(getBusinessProductCategoriesFn),\n ...options,\n });\n};\n\nexport const useGetBusinessPlans = (\n input: GetBusinessInput,\n filters: FilterPlansInput,\n pagination: PaginationInput,\n options: UseQueryOptions> = {}\n) => {\n return useQuery>({\n queryKey: [QueryKeys.BUSINESS_PLANS, input, filters, pagination],\n queryFn: queryWithAmplify(getBusinessPlansFn),\n ...options,\n });\n};\n\nexport const useGetBusinessPromotedSchedule = (\n input: GetBusinessMetadataInput,\n options: UseQueryOptions> = {}\n) => {\n return useQuery>({\n queryKey: [QueryKeys.BUSINESS_PROMOTED_SCHEDULE, input],\n queryFn: queryWithAmplify(getBusinessPromotedScheduleFn),\n ...options,\n });\n};\n\nexport const useGetBusinessLegal = (\n input: GetBusinessInput,\n options: UseQueryOptions> = {}\n) => {\n return useQuery>({\n queryKey: [QueryKeys.BUSINESS_LEGAL, input],\n queryFn: queryWithAmplify(getBusinessLegalFn),\n ...options,\n });\n};\n\nexport const useGetBusinessSchedules = (\n input: GetBusinessInput,\n filterSchedulesInput: FilterSchedulesInput,\n options: UseQueryOptions = {}\n) => {\n return useQuery({\n queryKey: [QueryKeys.BUSINESS_SCHEDULES, input, filterSchedulesInput],\n queryFn: queryWithAmplify(getBusinessSchedulesFn),\n ...options,\n });\n};\n\nexport const useGetBusinessDeliveries = (\n input: GetBusinessInput,\n options: UseQueryOptions>\n) => {\n return useQuery>({\n queryKey: [QueryKeys.BUSINESS_DELIVERIES, input],\n queryFn: queryWithAmplify(getBusinessDeliveriesFn),\n ...options,\n });\n};\n","import { Box, chakra, Flex, IconButton, Text, useMultiStyleConfig } from '@chakra-ui/react';\nimport { XIcon } from '@heroicons/react/solid';\nimport { FC } from 'react';\n\nexport interface ICottageBannerProps {\n bannerText?: string | null;\n handleHideBanner: () => void;\n}\n\nconst ChakraXIcon = chakra(XIcon);\n\nexport const CottageBanner: FC = ({ bannerText, handleHideBanner }) => {\n // Multipart component styling configured in the Chakra UI theme system\n const themeStyles = useMultiStyleConfig('CottageBanner');\n\n if (!bannerText) {\n return <>;\n }\n\n return (\n \n \n \n {bannerText}\n \n \n }\n onClick={handleHideBanner}\n variant=\"tertiary\"\n aria-label=\"Close banner\"\n __css={themeStyles.closeButton}\n />\n \n \n \n );\n};\n","import { DateTime } from 'luxon';\nimport { useEffect, useState } from 'react';\n\nconst BANNER_KEY = 'banner';\n\nexport const useBannerText = (banner?: string | null) => {\n const [bannerText, setBannerText] = useState();\n\n useEffect(() => {\n const now = DateTime.now();\n const bannerFromStorage = localStorage.getItem(BANNER_KEY);\n const parsedBannerObject = bannerFromStorage && JSON.parse(bannerFromStorage);\n if (parsedBannerObject?.text !== banner || parsedBannerObject.date < now) {\n localStorage.removeItem(BANNER_KEY);\n setBannerText(banner);\n }\n }, [bannerText]);\n\n const handleHideBanner = () => {\n const expireTime = DateTime.now().plus({ hours: 1 });\n localStorage.setItem(BANNER_KEY, JSON.stringify({ text: banner, date: expireTime }));\n setBannerText(null);\n };\n\n return { bannerText, handleHideBanner };\n};\n","export { CottageBanner as default, type ICottageBannerProps } from './CottageBanner';\nexport { useBannerText } from './useBannerText';\n","import { Box, Flex, useBreakpoint } from '@chakra-ui/react';\nimport { useAppContext } from 'context/AppContext/context';\nimport dynamic from 'next/dynamic';\nimport { FC, ReactNode, useEffect, useState } from 'react';\nimport ImageHelpers from 'utils/helpers/ImageHelpers';\n\nimport CottageBanner, { useBannerText } from '../Common/CottageBanner';\n\nconst Footer = dynamic(() => import('components/Footer'));\nconst Navigation = dynamic(() => import('components/Navigation'));\n\ninterface IAppLayout {\n showNavigationLinks: boolean;\n showFooter: boolean;\n children: ReactNode;\n showBanner?: boolean;\n}\n\n// Higher Order Component (HOC) that wraps every page in the app. It owns all common components such as\n// the head tag, navigation components, and footer. It also accepts a children component which represents each\n// page's specific content.\nconst AppLayout: FC = ({\n showNavigationLinks,\n showFooter,\n children,\n showBanner = false,\n}) => {\n const { businessMetadata: metadata } = useAppContext();\n const social = metadata.social;\n const supportPhoneNumber = metadata.supportPhoneNumber;\n const supportEmail = metadata.supportEmail;\n\n const toolbarImageFullPath = ImageHelpers.resolveImage(\n 'assets/shop/your_business_name.svg',\n metadata.toolbarImage\n );\n\n const layout = useBreakpoint();\n const { bannerText, handleHideBanner } = useBannerText(metadata.banner);\n const [bannerHeight, setBannerHeight] = useState(0);\n\n const marketing = metadata.marketing;\n\n useEffect(() => {\n setBannerHeight(document.getElementById('banner')?.offsetHeight ?? 0);\n }, [bannerText, layout]);\n\n return (\n \n {showBanner && }\n \n \n {children}\n \n {showFooter ? (\n \n ) : null}\n \n );\n};\n\nexport default AppLayout;\n","import AppLayout from './AppLayout';\n\nexport default AppLayout;\n","export enum QueryKeys {\n BUSINESS_ABOUT = 'business_about',\n BUSINESS_AUTH = 'business_cognito',\n BUSINESS_DELIVERIES = 'business_deliveries',\n BUSINESS_FAQS = 'business_faqs',\n BUSINESS_IMAGES = 'business_images',\n BUSINESS_LANDING_PAGE_INFO = 'business_landing_page_info',\n BUSINESS_LEGAL = 'business_legal',\n BUSINESS_METADATA = 'business_metadata',\n BUSINESS_PLANS = 'business_plan',\n BUSINESS_PRODUCT_ALLERGENS = 'business_product_allergens',\n BUSINESS_PRODUCT_CATEGORIES = 'business_product_categories',\n BUSINESS_PROMOTED_SCHEDULE = 'business_promoted_schedule',\n BUSINESS_SCHEDULES = 'business_schedules',\n BUSINESS_SETTINGS = 'business_settings',\n\n CART = 'cart',\n\n LOCATION_SCHEDULES_PICKER = 'location_schedules_picker',\n\n CHECKOUT = 'checkout',\n CHECKOUT_COMPLETE = 'checkout_complete',\n\n CONSUMER = 'consumer',\n CONSUMER_PROFILE = 'consumer_profile',\n CONSUMER_REFERRAL = 'consumer_referral',\n CONSUMER_ADDRESS = 'consumer_address',\n CONSUMER_DEFAULT_ADDRESS = 'consumer_default_address',\n CONSUMER_ADDRESSES = 'consumer_addresses',\n CONSUMER_ALLERGENS = 'consumer_allergens',\n CONSUMER_CARDS = 'consumer_cards',\n CONSUMER_GIFT_CARDS = 'consumer_gift_cards',\n CONSUMER_CREDIT_BALANCE = 'consumer_credit_balance',\n CONSUMER_PLAN_CHECKOUT = 'consumer_plan_checkout',\n CONSUMER_GIFT_CARD_CHECKOUT = 'consumer_gift_card_checkout',\n\n GIFT_CARD = 'gift_card',\n\n ORDER = 'order',\n OFFER = 'offer',\n\n PLAN = 'plan',\n PLAN_PRODUCTS = 'plan_products',\n\n RECURRING_ORDER = 'recurring_order',\n\n SCHEDULE_OFFERS = 'schedule_offers',\n\n SUBSCRIPTION = 'subscription',\n SUBSCRIPTION_INVOICES = 'subscription_invoices',\n\n TAX = 'tax',\n\n CONSUMER_ORDERS = 'consumer_orders',\n CONSUMER_ALL_ORDERS = 'consumer_all_orders',\n CONSUMER_SUBSCRIPTIONS = 'consumer_subscriptions',\n}\n\nexport interface QueryFnProps {\n // TODO: this definition provides basically no type safety.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n queryKey: [QueryKeys, InputType, FilterType?] | any;\n}\n","import { DateTime } from 'luxon';\n\nexport default class DateTimeHelpers {\n /**\n *\n * @param epochTimeStr epoch time in millis\n * @returns Format that looks like \"Aug 8, 2021\"\n */\n static displayableDateWithYear = (epochTimeStr: string) =>\n DateTime.fromMillis(parseInt(epochTimeStr)).toLocaleString(DateTime.DATE_MED);\n\n /**\n *\n * @param epochTimeStr epoch time in millis\n * @returns Format that looks like \"Fri, Aug 8, 2021\"\n */\n static displayableDateWithDayMonthYear = (epochTimeStr: string) =>\n DateTime.fromMillis(parseInt(epochTimeStr)).toLocaleString(DateTime.DATE_MED_WITH_WEEKDAY);\n\n /**\n *\n * @param epochTimeStr epoch time in millis\n * @returns Format that looks like \"Fri, Aug 8\"\n */\n static displayableDateWithDayMonthDay = (epochTimeStr: string) =>\n DateTime.fromMillis(parseInt(epochTimeStr))\n .toLocaleString(DateTime.DATE_MED_WITH_WEEKDAY)\n .slice(0, -6);\n\n /**\n *\n * @param epochTimeStr epoch time in millis\n * @returns Format that looks like \"Aug 8\"\n */\n static displayableDateMonthDay = (epochTimeStr: string) =>\n DateTime.fromMillis(parseInt(epochTimeStr)).toFormat('LLL d');\n\n /**\n *\n * @param epochTimeStr epoch time in millis\n * @returns Format that looks like \"12:00pm\"\n */\n static displayableTime = (epochTimeStr: string) =>\n DateTime.fromMillis(parseInt(epochTimeStr)).toFormat('t');\n\n static displayRelativeTime = (epochTimeStr: string) => {\n const relativeTimeStr = DateTime.fromMillis(parseInt(epochTimeStr)).toRelative({\n locale: 'en-US',\n unit: ['months', 'weeks', 'days', 'hours', 'minutes', 'seconds'],\n });\n\n return relativeTimeStr?.replace('in', 'within');\n };\n\n /**\n * Display a window of time, each DateTime can be a different day\n */\n static getTimeWindow = (d1: DateTime, d2: DateTime) => {\n if (d1.day !== d2.day) {\n // i.e. Fri Feb 5, 12:00 PM - Sun Feb 7, 5:00 PM\n return `${d1.toFormat('ccc LLL d, t')} - ${d2.toFormat('EEE MMM d, t')}`;\n }\n\n // i.e. Fri Mar 3 | 12:00 PM - 2:00 PM\n return `${d1.toFormat('EEE MMM d')} | ${d1.toFormat('t')} - ${d2.toFormat('t')}`;\n };\n}\n"],"names":["SemanticAttributes","MoreSemanticAttributes","NonStandardSemanticAttributes","CottageSemanticAttributes","SemanticResourceAttributes","SEMATTRS_EXCEPTION_TYPE","SEMATTRS_HTTP_STATUS_CODE","SEMATTRS_HTTP_URL","SEMATTRS_HTTP_METHOD","SEMRESATTRS_SERVICE_NAME","startSpan","spanName","fn","trace","getTracer","startActiveSpan","span","end","queryToOperationCache","Map","request","api","options","promise","graphql","stripTracing","thing","extensions","tracing","executeQuery","gqlQuery","variables","logger","getLogger","name","operationName","type","operationType","parseOperation","cachedValue","get","def","parse","definitions","kind","Kind","OPERATION_DEFINITION","concat","result","value","String","operation","set","setAttributes","GRAPHQL_OPERATION_NAME","GRAPHQL_OPERATION_TYPE","GRAPHQL_DOCUMENT","GRAPHQL_OPERATION_VARIABLES","JSON","stringify","response","graphqlOperation","debug","setStatus","code","SpanStatusCode","OK","e","error","Error","serializeError","ERROR","message","recordException","Object","hasOwn","graphqlError","errors","EXCEPTION_TYPE","APOLLO_ERROR_COUNT","length","APOLLO_FIRST_ERROR_TYPE","APOLLO_FIRST_ERROR_MESSAGE","exception","getBusinessSettingsFn","param","queryKey","input","getBusinessImagesFn","getBusinessPromotedScheduleFn","getBusinessAboutFn","getBusinessFaqsFn","getBusinessProductAllergensFn","getBusinessProductCategoriesFn","getBusinessPlansFn","filterInput","pagination","getBusinessLegalFn","getBusinessSchedulesFn","data","filterSchedulesInput","pickups","deliveries","schedule","getBusiness","schedules","edges","map","node","DateTime","now","toMillis","parseInt","orderCutoff","id","orderReadyStart","orderReadyEnd","pickupAddress","title","TransportationType","PICK_UP","push","cutoffTime","time","pickupAddresses","DELIVERY","sortedPickups","sort","p1","p2","sortedDeliveries","pickupMap","pickup","displayableDate","DateTimeHelpers","displayableDateWithDayMonthDay","bucket","deliveryMap","delivery","getBusinessDeliveriesFn","useGetBusinessSettings","useQuery","QueryKeys","BUSINESS_SETTINGS","queryFn","queryWithAmplify","useGetBusinessImages","BUSINESS_IMAGES","useGetBusinessAbout","BUSINESS_ABOUT","useGetBusinessFaqs","BUSINESS_FAQS","useGetBusinessProductAllergens","BUSINESS_PRODUCT_ALLERGENS","useGetBusinessProductCategories","BUSINESS_PRODUCT_CATEGORIES","useGetBusinessPlans","filters","BUSINESS_PLANS","useGetBusinessPromotedSchedule","BUSINESS_PROMOTED_SCHEDULE","useGetBusinessLegal","BUSINESS_LEGAL","useGetBusinessSchedules","BUSINESS_SCHEDULES","useGetBusinessDeliveries","BUSINESS_DELIVERIES","ChakraXIcon","chakra","XIcon","CottageBanner","bannerText","handleHideBanner","themeStyles","useMultiStyleConfig","jsx_runtime","jsx","Box","as","__css","root","jsxs","Flex","flex","textContainer","Text","sx","position","closeContainer","IconButton","icon","closeIcon","onClick","variant","aria-label","closeButton","Fragment","BANNER_KEY","useBannerText","setBannerText","useState","useEffect","bannerFromStorage","localStorage","getItem","parsedBannerObject","text","banner","date","removeItem","expireTime","plus","hours","setItem","Footer","dynamic","Promise","all","__webpack_require__","then","bind","Navigation","components_AppLayout","marketing","showNavigationLinks","showFooter","children","showBanner","businessMetadata","metadata","useAppContext","social","supportPhoneNumber","supportEmail","toolbarImageFullPath","ImageHelpers","resolveImage","toolbarImage","layout","useBreakpoint","bannerHeight","setBannerHeight","document","getElementById","offsetHeight","width","height","minHeight","justifyContent","flexDirection","showGiftCard","showPlans","showPromotePlans","top","flexGrow","overflowX","marginTop","showSubscribe","enabled","subscribeUrl","hostedSignUpUrl","undefined","displayableDateWithYear","fromMillis","epochTimeStr","toLocaleString","DATE_MED","displayableDateWithDayMonthYear","DATE_MED_WITH_WEEKDAY","slice","displayableDateMonthDay","toFormat","displayableTime","displayRelativeTime","relativeTimeStr","toRelative","locale","unit","replace","getTimeWindow","d1","d2","day"],"sourceRoot":""}