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B,SAEvCS,GAlCN,SACLb,EACAK,EACAC,EAAuBH,GAGzB,CA2B6BW,CAA8B,SAC5BV,EAA0B,c","sources":["webpack://realm_app/./app/javascript/components/MarketingSite/Header/RealmLogo/index.tsx","webpack://realm_app/./app/javascript/utils/analyticsV2.ts"],"sourcesContent":["import React, { FC } from 'react'\n\nconst RealmLogo: FC = (props) => (\n \n \n \n \n \n \n \n \n \n)\n\nexport const RealmLogoPride: FC = (props) => (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \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 const RealmLogoSmall: FC = (props) => (\n \n \n \n \n \n)\n\nexport const RealmLogoSmallPride: FC = (props) => (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \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 RealmLogo\n","import { track as legacyTrack, trackSync as legacyTrackSync, trackPage as legacyTrackPage } from './analytics'\n\n/**\n * import { trackClick, trackPage, trackImpression }\n * trackClick({ ... })\n * // Traditional replacement of 'track', when we're tracking a 'click' of any type\n * trackImpression({ ... })\n * // New 'impression' for when we show something to a user.\n * trackPage(pageName)\n * // Drop in replacement of 'trackPage'\n *\n * // When a page will be tracking multiple times, but using the same\n * // base set of options, you can prepare a local track\n * const trackOnboardinClick = prepare({ family: 'onboarding', screen: 'enter-address' }, trackClick)\n * // And then call it to fire the tracking event\n * trackOnboardinClick({ code: 'test', feature: 'test-feature' })\n *\n * // Another convenience function is available if you know you'll be using both 'click'\n * // and 'impression' events, but that they'll share some of the same options.\n * const [trackOnboardingClick, trackOnboardingImpression] = prepareBoth({ feature: 'test' })\n */\nexport interface TrackBase {\n code?: string\n screen?: string\n section?: string\n feature?: string\n family?: string\n content_rank?: string\n property_id?: string\n flexfield_1?: any\n flexfield_2?: any\n content_text?: string\n}\n\ninterface TrackOptions extends TrackBase {\n code: string\n}\n\ntype TrackNameTypes = 'impression' | 'click' | 'page-view' | 'state-event'\n\ntype TrackFn = (name: TrackNameTypes, options?: TrackBase) => Promise\ntype TrackSyncFn = (name: TrackNameTypes, options?: TrackBase) => void\n\ntype TrackNameFn = (options: T) => Promise\ntype TrackNameSyncFn = (options: T) => void\ntype TrackNameOptionalFn = (options?: T) => Promise\n\nexport const track: TrackFn = (name, options) => {\n if (name == 'page-view') legacyTrackPage(options?.screen)\n return legacyTrack(name, options)\n}\nexport const trackSync: TrackSyncFn = (name, options) => {\n legacyTrackSync(name, options)\n}\n\nexport function prepareName(\n name: TrackNameTypes,\n preparedOptions?: T,\n trackFn: TrackFn = track\n): TrackNameFn {\n return (options) => trackFn(name, { ...options, ...preparedOptions })\n}\nexport function prepareNameSync(\n name: TrackNameTypes,\n preparedOptions?: T,\n trackFn: TrackSyncFn = trackSync\n): TrackNameSyncFn {\n return (options) => trackFn(name, { ...options, ...preparedOptions })\n}\nexport function prepareNameOptional(\n name: TrackNameTypes,\n preparedOptions?: T,\n trackFn: TrackFn = track\n): TrackNameOptionalFn {\n return (options) => trackFn(name, { ...options, ...preparedOptions })\n}\nexport function prepare(\n preparedOptions: TrackBase,\n trackFn: TrackNameFn\n): TrackNameOptionalFn {\n return (options) => trackFn({ ...options, ...(preparedOptions as T) })\n}\n\nexport function prepareBoth(\n preparedOptions: TrackBase,\n trackFn: TrackFn = track\n): [TrackNameFn, TrackNameFn] {\n const trackClick = (options) => trackFn('click', { ...options, ...preparedOptions })\n const trackImpression = (options) => trackFn('impression', { ...options, ...preparedOptions })\n return [trackClick, trackImpression]\n}\n\nexport const trackPageOptions = prepareNameOptional('page-view')\nexport const trackPage = (screen?: string): Promise => trackPageOptions({ screen })\nexport const trackClick = prepareName('click')\nexport const trackCickSync = prepareNameSync('click')\nexport const trackImpression = prepareName('impression')\n"],"names":["RealmLogoSmall","props","viewBox","fill","xmlns","d","fillRule","clipRule","track","name","options","screen","trackSync","prepareName","preparedOptions","trackFn","prepare","prepareBoth","trackPageOptions","prepareNameOptional","trackPage","trackClick","trackImpression","prepareNameSync"],"sourceRoot":""}