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,GACtBvF,OAAOwF,eAAiBD,EAAcE,sBACxC,KA7DoB7B,EA+DTE,EAAAA,QA/DgBpE,OAAOgG,QAAQ9B,GAiE1CO,OAAOwB,GAAGC,WAAWzB,OAAOwB,GAAGE,OAAM,IAErC7F,OAAO8F,OAAS,M,6DCnEhB,QAXe,CACbC,IAAK,CACHC,QAAS,CACPC,SAAiBzF,iFACjB0F,OAAiB1F,YACjB2F,gBAAiB,SACjBC,OAAiB5F,mC,aCNvB6F,OAAOC,UAAUC,SAAW,SAAUC,EAAQC,GAI5C,OAHc,MAAVD,IAAgBA,EAAS,KACf,MAAVC,IAAgBA,EAAS,OAEzBC,KAAKF,OAASA,EACTE,KAAKC,UAAU,EAAGH,EAASC,EAAOD,QAAUC,EAE9CC,IACT,C,aCRAE,SAASC,iBAAiB,oBAAqBC,SAAAA,GAC7C,IAAMnB,EAAKxB,OAAOwB,GAAGE,QACrB,OAAO3B,QAAQ5C,IAAI,mBAAoBqE,EAAI,CACzCoB,QAAS,IACTC,KAAS,KAEb,G","sources":["webpack://brokerkit/./app/frontend/src/init/ sync \\.(js)$","webpack://brokerkit/./app/frontend/src/lib/posthog-init.js","webpack://brokerkit/./app/frontend/packs/application.js","webpack://brokerkit/./app/frontend/src/init/aws-exports.js","webpack://brokerkit/./app/frontend/src/init/string.js","webpack://brokerkit/./app/frontend/src/init/timezone.js"],"sourcesContent":["var map = {\n\t\"./aws-exports.js\": 62347,\n\t\"./string.js\": 43847,\n\t\"./timezone.js\": 41101,\n\t\"src/init/aws-exports.js\": 62347,\n\t\"src/init/string.js\": 43847,\n\t\"src/init/timezone.js\": 41101\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 51583;","import posthog from 'posthog-js';\n\nfunction initializePostHog() {\n if (shouldExcludePosthog()) {\n return;\n }\n\n posthog.init(process.env.PUBLIC_POSTHOG_KEY, {\n api_host: 'https://app.posthog.com',\n loaded(posthogObj) {\n const data = window.dataLayer.find((item) => {\n const keyNames = Object.keys(item);\n return keyNames.includes('USER') && keyNames.includes('COMPANY');\n });\n\n if (!data) {\n console.error('Error: USER and COMPANY data not found in window.dataLayer.');\n return;\n }\n\n const { USER, COMPANY } = data;\n\n try {\n posthogObj.identify(USER.EMAIL);\n\n posthogObj.people.set({\n User_ID: USER.ID_IN_DB,\n User_Name: USER.NAME,\n User_Email: USER.EMAIL,\n User_Role: USER.ROLE,\n Company_Name: COMPANY.NAME,\n Organization_Name: COMPANY.ORGANIZATION_NAME,\n Account_Number: COMPANY.ID_IN_DB,\n Organization_Number: COMPANY.ORGANIZATION_ID,\n Pricing_Plan_Name: COMPANY.PLAN_NAME,\n Account_Creation_Date: COMPANY.SIGN_UP_DATE,\n Pricing_Plan_ID: COMPANY.PRICING_PLAN_ID,\n Trial: COMPANY.TRIAL,\n Active: COMPANY.ACTIVE,\n Test: COMPANY.TEST_ACCOUNT,\n });\n\n posthog.capture('web_experiment_applied');\n } catch (error) {\n console.error('Error during PostHog user identification or setting properties:', error);\n }\n\n window.isPosthogInitialized = true;\n window.dispatchEvent(new Event('posthogReady'));\n },\n });\n\n window.posthog = posthog;\n}\n\nfunction shouldExcludePosthog() {\n const url = window.location.href;\n const exception_pages = ['/houston/', '/t/', 'users/sign_in', '/video/'];\n\n const shouldExclude = exception_pages.some((keyword) => url.includes(keyword));\n\n return shouldExclude;\n}\n\nexport default initializePostHog;\n","import Rails from '@rails/ujs';\nimport * as ActiveStorage from '@rails/activestorage';\nimport { Amplify } from 'aws-amplify';\nimport '@fortawesome/fontawesome-pro/js/all';\n\nimport initializePostHog from '../src/lib/posthog-init';\nimport config from '~/init/aws-exports';\n\n// This will initialize PostHog if the conditions are met\ninitializePostHog();\n\nfunction requireAll(r) { r.keys().forEach(r); }\n\nRails.start();\nActiveStorage.start();\nAmplify.configure(config);\n\nconst componentRequireContext = require.context('../src/components', true);\nconst ReactRailsUJS = require('react_ujs');\n\nReactRailsUJS.useContext(componentRequireContext);\n\n_lodash.mixin(require('lodash-inflection'));\n\nrequire('moment-duration-format');\n\nwindow.Cookies = require('js.cookie');\nwindow.Moment = require('moment-timezone');\nwindow.bs = require('bootstrap');\n\nimport('../src/components/global_container').then(\n (globalContainerModule) => {\n window.GlobalContainer = globalContainerModule.default;\n },\n);\n\nimport('../src/components/app_router').then((appRouterModule) => {\n window.AppRouter = appRouterModule.default;\n});\n\nimport('../src/components/billing_app').then((billingAppModule) => {\n window.BillingApp = billingAppModule.default;\n});\n\nimport('../src/components/onboard_app').then((onboardAppModule) => {\n window.OnboardApp = onboardAppModule.default;\n});\n\nimport('../src/components/notifications').then(\n (notificationsModule) => {\n window.Notifications = notificationsModule.default;\n },\n);\n\nimport('../src/components/messages').then((messagesModule) => {\n window.Messages = messagesModule.default;\n});\n\nimport('../src/components/attention_needed').then(\n (attentionNeededModule) => {\n window.AttentionNeeded = attentionNeededModule.default;\n },\n);\n\nimport('../src/components/lead_recruiting_app').then(\n (leadRecruitingAppModule) => {\n window.LeadRecruitingApp = leadRecruitingAppModule.default;\n },\n);\n\nimport('history').then((historyModule) => {\n window.browserHistory = historyModule.createBrowserHistory();\n});\n\nrequireAll(require.context('../src/init', true, /\\.(js)$/));\n\nMoment.tz.setDefault(Moment.tz.guess(true));\n\nwindow.height = 'auto';\n","const config = {\n API: {\n GraphQL: {\n endpoint: process.env.APPSYNC_ENDPOINT,\n region: process.env.APPSYNC_REGION,\n defaultAuthMode: 'apiKey',\n apiKey: process.env.APPSYNC_API_KEY,\n },\n },\n};\n\nexport default config;\n","String.prototype.truncate = function (length, ending) {\n if (length == null) length = 100;\n if (ending == null) ending = '...';\n\n if (this.length > length) {\n return this.substring(0, length - ending.length) + ending;\n }\n return this;\n};\n","document.addEventListener('DOMContentLoaded', (event) => {\n const tz = Moment.tz.guess();\n return Cookies.set('browser.timezone', tz, {\n expires: 365,\n path: '/',\n });\n});\n"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","url","window","location","href","some","keyword","includes","posthog","init","process","api_host","loaded","posthogObj","data","dataLayer","find","item","keyNames","USER","COMPANY","identify","EMAIL","people","set","User_ID","ID_IN_DB","User_Name","NAME","User_Email","User_Role","ROLE","Company_Name","Organization_Name","ORGANIZATION_NAME","Account_Number","Organization_Number","ORGANIZATION_ID","Pricing_Plan_Name","PLAN_NAME","Account_Creation_Date","SIGN_UP_DATE","Pricing_Plan_ID","PRICING_PLAN_ID","Trial","TRIAL","Active","ACTIVE","Test","TEST_ACCOUNT","capture","error","console","isPosthogInitialized","dispatchEvent","Event","initializePostHog","Rails","ActiveStorage","Amplify","configure","config","r","componentRequireContext","require","useContext","_lodash","mixin","Cookies","Moment","bs","then","globalContainerModule","GlobalContainer","default","appRouterModule","AppRouter","billingAppModule","BillingApp","onboardAppModule","OnboardApp","notificationsModule","Notifications","messagesModule","Messages","attentionNeededModule","AttentionNeeded","leadRecruitingAppModule","LeadRecruitingApp","historyModule","browserHistory","createBrowserHistory","forEach","tz","setDefault","guess","height","API","GraphQL","endpoint","region","defaultAuthMode","apiKey","String","prototype","truncate","length","ending","this","substring","document","addEventListener","event","expires","path"],"sourceRoot":""}