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,EAAiBgD,GAAgBtB,EAAOwB,EAClE,CACF,CACF,CAuCMO,CAAiBjB,EAAqBtC,GAlB5C,SAAuBD,GACrB,MAAMyD,EAAa/D,SAASiD,uBAAuB,iBAEnD,IAAK,IAAIpB,KAAOkC,EAAY,CAC1B,MACMC,EADa/B,IAAOJ,GAAKgC,OACDG,WAC1BA,KAAc1D,GAChBA,EAAc0D,IAElB,CACF,CAUIC,CAAc3D,EAChB,CAEAN,SAASkE,iBAAiB,uBAAuB,KAC/CnB,GAAS,IAOX/C,SAASkE,iBAAiB,4BAA4B,KACpDnB,GAAS,GAEb,C,wBClJA,IAAIN,EAAM,CACT,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,wBAAyB,CACxB,MACA,MAED,wBAAyB,CACxB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,wBAAyB,CACxB,MACA,MAED,wBAAyB,CACxB,MACA,KAED,qBAAsB,CACrB,MACA,KAED,qBAAsB,CACrB,MACA,KAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,KACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,KAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,KACA,MAED,kBAAmB,CAClB,MACA,MAED,qBAAsB,CACrB,MACA,KAED,qBAAsB,CACrB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,KAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,KACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,KACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,KAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,IACA,KAED,kBAAmB,CAClB,KACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,KACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,kBAAmB,CAClB,KACA,MAED,iBAAkB,CACjB,KACA,MAED,iBAAkB,CACjB,MACA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,EAAiB5C,cAAc,UAAU6C,MAAMC,QAAU,OACzDF,EAAiB5C,cAAc,8BAA8B+C,WAAYC,EAAAA,EAAAA,UAASzD,GAClFqD,EAAiB5C,cAAc,uBAAuB6C,MAAMC,QAAU,QAE1E,C","sources":["webpack://agra/./app/javascript/error-logger-init.js","webpack://agra/./app/javascript/helpers/url-params.js","webpack://agra/./app/javascript/tooltips.js","webpack://agra/./app/javascript/utils/component-loader.js","webpack://agra/./app/javascript/locales/ lazy ^\\.\\/.*\\/.*\\.js$ namespace object","webpack://agra/./app/javascript/utils/dom-ready.js","webpack://agra/./app/javascript/helpers/transform-object-keys.js","webpack://agra/./app/javascript/helpers/class-from-color-index.js","webpack://agra/./app/javascript/agra-configuration.js","webpack://agra/./app/javascript/vue-init.js","webpack://agra/./app/javascript/analytics/track.js","webpack://agra/./app/javascript/modals.js","webpack://agra/./app/javascript/i18n/translations.js","webpack://agra/./app/javascript/constants.js","webpack://agra/./app/javascript/helpers/ajax.js","webpack://agra/./app/javascript/error-logger.js","webpack://agra/./app/javascript/public-path.js","webpack://agra/./app/javascript/i18n/i18n-plugin.js","webpack://agra/./app/javascript/agra.js"],"sourcesContent":["import ErrorLogger from '@/error-logger'\nwindow.errorLogger = new ErrorLogger()\n","function urlWithParams(baseUrl, searchParamsMap) {\n const urlObj = new URL(baseUrl, window.location.origin)\n const urlSearchParams = urlObj.searchParams\n Object.entries(searchParamsMap).forEach(([k, v]) => {\n const stringValue = typeof v === 'string' ? v : JSON.stringify(v)\n urlSearchParams.append(k, stringValue)\n })\n\n // Deterministic ordering of url params. This is useful for when we check\n // the url with params in tests.\n urlSearchParams.sort()\n return urlObj.toString()\n}\n\nfunction urlParamsWithNamespace(paramsMap, namespace) {\n const newParamsMap = {}\n Object.entries(paramsMap).forEach(([k, v]) => {\n newParamsMap[`${namespace}[${k}]`] = v\n })\n return newParamsMap\n}\n\nexport {\n urlParamsWithNamespace,\n urlWithParams\n}\n","import { Tooltip } from 'bootstrap'\n\nexport function setUpTooltips() {\n document.querySelectorAll('[data-bs-toggle=\"tooltip\"]').forEach((el) => {\n new Tooltip(el)\n })\n}\n","import jQuery from 'jquery'\n\nexport default function addComponentLoader(componentMapping, scriptMapping, storeGetterImport) {\n baseAddComponentLoader(componentMapping, scriptMapping, storeGetterImport, false, null)\n}\n\nexport function addSharedStoreComponentLoader(componentList, scriptMapping, storeGetterImport, storeDataComponentName) {\n baseAddComponentLoader(componentList, scriptMapping, storeGetterImport, true, storeDataComponentName)\n}\n\nexport function importWithRetry(importer, retriesLeft = 3) {\n if (retriesLeft === 0) {\n throw new Error('Failed to load component after 3 retries')\n }\n\n return new Promise((resolve, reject) => {\n importer()\n .then(resolve)\n .catch((error) => {\n console.warn(error, 'Failed to load component, retrying...')\n setTimeout(async () => {\n try {\n // Recursively call the function again, decreasing the retry count\n const result = await importWithRetry(importer, retriesLeft - 1)\n resolve(result) // Resolve the promise with the result from the recursive call\n } catch (err) {\n reject(err) // Reject the promise if the recursive call fails\n }\n }, 500)\n })\n })\n}\n\nasync function sharedStoreHandler(componentMapping, storeGetterImport, storeDataComponentName) {\n // Find all component loaders on the page\n const vueComponentDivs = document.getElementsByClassName('vue-component-loader')\n\n // Filter to just the ones in our componentMapping\n const relevantVueComponentDivs = Array.from(vueComponentDivs).filter(\n (div) => div.dataset.componentName in componentMapping\n )\n\n if (relevantVueComponentDivs.length === 0) {\n // None of the components we're looking for are on the page, so just exit.\n return\n }\n\n // Initialize the store! If storeDataComponentName is specified, that component's data\n // will be used to initialize the store.\n let vuexStore\n const { default: storeOrStoreGetter } = await storeGetterImport()\n if (typeof storeOrStoreGetter === 'function') {\n vuexStore = storeOrStoreGetter(storeDataComponentName)\n } else {\n vuexStore = storeOrStoreGetter\n }\n\n // Initialize each of the components in our mapping that are on the page,\n // hooking them all into the same vuex store.\n for (let div of relevantVueComponentDivs) {\n const componentData = div.dataset\n const componentName = componentData.componentName\n const props = JSON.parse(componentData.props)\n createVueComponent(div, componentMapping[componentName], props, vuexStore)\n }\n}\n\nasync function unorderedHandler(componentMapping, storeGetterImport) {\n const vueComponentDivs = document.getElementsByClassName('vue-component-loader')\n\n for (let div of vueComponentDivs) {\n const componentData = jQuery(div).data()\n const componentName = componentData.componentName\n\n if (componentName in componentMapping) {\n const props = componentData.props ? componentData.props : componentData\n\n // Here, we expect that each component, if it has a store,\n // has a store that is independent from the other components being loaded.\n let vuexStore\n if (storeGetterImport) {\n const { default: storeOrStoreGetter } = await storeGetterImport()\n if (typeof storeOrStoreGetter === 'function') {\n vuexStore = storeOrStoreGetter(componentName)\n } else {\n vuexStore = storeOrStoreGetter\n }\n }\n createVueComponent(div, componentMapping[componentName], props, vuexStore)\n }\n }\n}\n\nfunction createVueComponent(div, definition, props, store) {\n const el = jQuery(div).children('.vue-component').first()[0]\n\n if (!el) {\n // This .vue-component-loader div has no .vue-component child.\n // This probably means it has already been processed, and there's nothing we need to do.\n return\n }\n\n // Transform existing list of classes ['class-a', 'class-b'] from the element into the format:\n // {\n // class-a: true,\n // class-b: true\n // }\n const classes = Object.fromEntries(Array.from(el.classList).map((val) => [val, true]))\n\n window.createRootVueComponent(el, definition, {...props, class: classes}, store)\n}\n\nfunction scriptHandler(scriptMapping) {\n const scriptDivs = document.getElementsByClassName('script-loader')\n\n for (let div of scriptDivs) {\n const scriptData = jQuery(div).data()\n const scriptName = scriptData.scriptName\n if (scriptName in scriptMapping) {\n scriptMapping[scriptName]()\n }\n }\n}\n\nfunction baseAddComponentLoader(componentCollection, scriptMapping, storeGetterImport, sharedStore = false, storeDataComponentName) {\n function handler() {\n if (sharedStore) {\n sharedStoreHandler(componentCollection, storeGetterImport, storeDataComponentName)\n }\n else {\n unorderedHandler(componentCollection, storeGetterImport)\n }\n scriptHandler(scriptMapping)\n }\n\n document.addEventListener('translations:loaded', () => {\n handler()\n })\n\n // The above event will not be fired again for our \"remote\" forms,\n // but we still need the vue component to be re-placed on the page.\n // Therefore, we fire this event for remote forms on update\n // if reloading vue components is needed.\n document.addEventListener('agra:need-vue-components', () => {\n handler()\n })\n}\n","var map = {\n\t\"./friendship/ar.js\": [\n\t\t21918,\n\t\t1918\n\t],\n\t\"./friendship/cs.js\": [\n\t\t84611,\n\t\t4611\n\t],\n\t\"./friendship/da.js\": [\n\t\t51510,\n\t\t1510\n\t],\n\t\"./friendship/de-AT.js\": [\n\t\t96354,\n\t\t3973\n\t],\n\t\"./friendship/de-CH.js\": [\n\t\t45172,\n\t\t5172\n\t],\n\t\"./friendship/de.js\": [\n\t\t67466,\n\t\t7466\n\t],\n\t\"./friendship/el.js\": [\n\t\t55972,\n\t\t5972\n\t],\n\t\"./friendship/en-GB.js\": [\n\t\t59630,\n\t\t9630\n\t],\n\t\"./friendship/en-US.js\": [\n\t\t80531,\n\t\t531\n\t],\n\t\"./friendship/en.js\": [\n\t\t70894,\n\t\t894\n\t],\n\t\"./friendship/es.js\": [\n\t\t90969,\n\t\t969\n\t],\n\t\"./friendship/fr.js\": [\n\t\t68689,\n\t\t8689\n\t],\n\t\"./friendship/he.js\": [\n\t\t25950,\n\t\t5950\n\t],\n\t\"./friendship/hi.js\": [\n\t\t57290,\n\t\t7290\n\t],\n\t\"./friendship/hu.js\": [\n\t\t72782,\n\t\t2782\n\t],\n\t\"./friendship/id.js\": [\n\t\t52752,\n\t\t2752\n\t],\n\t\"./friendship/it.js\": [\n\t\t79744,\n\t\t9744\n\t],\n\t\"./friendship/ja.js\": [\n\t\t65748,\n\t\t5748\n\t],\n\t\"./friendship/ko.js\": [\n\t\t36039,\n\t\t6039\n\t],\n\t\"./friendship/nl.js\": [\n\t\t3547,\n\t\t3547\n\t],\n\t\"./friendship/no.js\": [\n\t\t34750,\n\t\t4750\n\t],\n\t\"./friendship/pl.js\": [\n\t\t13149,\n\t\t3149\n\t],\n\t\"./friendship/pt.js\": [\n\t\t32645,\n\t\t2645\n\t],\n\t\"./friendship/ro.js\": [\n\t\t55890,\n\t\t5890\n\t],\n\t\"./friendship/sr.js\": [\n\t\t88492,\n\t\t8492\n\t],\n\t\"./friendship/sv.js\": [\n\t\t94688,\n\t\t4688\n\t],\n\t\"./friendship/sw.js\": [\n\t\t93463,\n\t\t3463\n\t],\n\t\"./friendship/tr.js\": [\n\t\t60179,\n\t\t179\n\t],\n\t\"./phoenix/ar.js\": [\n\t\t94787,\n\t\t4787\n\t],\n\t\"./phoenix/cs.js\": [\n\t\t4322,\n\t\t4322\n\t],\n\t\"./phoenix/da.js\": [\n\t\t12491,\n\t\t2491\n\t],\n\t\"./phoenix/de-AT.js\": [\n\t\t20109,\n\t\t109\n\t],\n\t\"./phoenix/de-CH.js\": [\n\t\t92371,\n\t\t2371\n\t],\n\t\"./phoenix/de.js\": [\n\t\t59599,\n\t\t9599\n\t],\n\t\"./phoenix/el.js\": [\n\t\t61069,\n\t\t1069\n\t],\n\t\"./phoenix/en-GB.js\": [\n\t\t31773,\n\t\t4154\n\t],\n\t\"./phoenix/en-US.js\": [\n\t\t44392,\n\t\t4392\n\t],\n\t\"./phoenix/en.js\": [\n\t\t17931,\n\t\t7931\n\t],\n\t\"./phoenix/es.js\": [\n\t\t70432,\n\t\t432\n\t],\n\t\"./phoenix/fr.js\": [\n\t\t32668,\n\t\t2668\n\t],\n\t\"./phoenix/he.js\": [\n\t\t55963,\n\t\t5963\n\t],\n\t\"./phoenix/hi.js\": [\n\t\t61079,\n\t\t1079\n\t],\n\t\"./phoenix/hu.js\": [\n\t\t24747,\n\t\t4747\n\t],\n\t\"./phoenix/id.js\": [\n\t\t38289,\n\t\t8289\n\t],\n\t\"./phoenix/it.js\": [\n\t\t65281,\n\t\t5281\n\t],\n\t\"./phoenix/ja.js\": [\n\t\t4969,\n\t\t4969\n\t],\n\t\"./phoenix/ko.js\": [\n\t\t38270,\n\t\t8270\n\t],\n\t\"./phoenix/nl.js\": [\n\t\t12538,\n\t\t2538\n\t],\n\t\"./phoenix/no.js\": [\n\t\t39559,\n\t\t9559\n\t],\n\t\"./phoenix/pl.js\": [\n\t\t29140,\n\t\t9140\n\t],\n\t\"./phoenix/pt.js\": [\n\t\t98684,\n\t\t8684\n\t],\n\t\"./phoenix/ro.js\": [\n\t\t94099,\n\t\t4099\n\t],\n\t\"./phoenix/sr.js\": [\n\t\t31809,\n\t\t1809\n\t],\n\t\"./phoenix/sv.js\": [\n\t\t32413,\n\t\t2413\n\t],\n\t\"./phoenix/sw.js\": [\n\t\t6142,\n\t\t6142\n\t],\n\t\"./phoenix/tr.js\": [\n\t\t25902,\n\t\t5902\n\t],\n\t\"./pizzazz/ar.js\": [\n\t\t69776,\n\t\t9776\n\t],\n\t\"./pizzazz/cs.js\": [\n\t\t19297,\n\t\t9297\n\t],\n\t\"./pizzazz/da.js\": [\n\t\t15588,\n\t\t5588\n\t],\n\t\"./pizzazz/de-AT.js\": [\n\t\t52708,\n\t\t2708\n\t],\n\t\"./pizzazz/de-CH.js\": [\n\t\t93122,\n\t\t3122\n\t],\n\t\"./pizzazz/de.js\": [\n\t\t99320,\n\t\t9320\n\t],\n\t\"./pizzazz/el.js\": [\n\t\t84842,\n\t\t4842\n\t],\n\t\"./pizzazz/en-GB.js\": [\n\t\t64908,\n\t\t4908\n\t],\n\t\"./pizzazz/en-US.js\": [\n\t\t70733,\n\t\t733\n\t],\n\t\"./pizzazz/en.js\": [\n\t\t86624,\n\t\t6624\n\t],\n\t\"./pizzazz/es.js\": [\n\t\t91595,\n\t\t1595\n\t],\n\t\"./pizzazz/fr.js\": [\n\t\t29055,\n\t\t9055\n\t],\n\t\"./pizzazz/he.js\": [\n\t\t25764,\n\t\t5764\n\t],\n\t\"./pizzazz/hi.js\": [\n\t\t56944,\n\t\t6944\n\t],\n\t\"./pizzazz/hu.js\": [\n\t\t63124,\n\t\t3124\n\t],\n\t\"./pizzazz/id.js\": [\n\t\t70078,\n\t\t7697\n\t],\n\t\"./pizzazz/it.js\": [\n\t\t558,\n\t\t558\n\t],\n\t\"./pizzazz/ja.js\": [\n\t\t1350,\n\t\t1350\n\t],\n\t\"./pizzazz/ko.js\": [\n\t\t12093,\n\t\t2093\n\t],\n\t\"./pizzazz/nl.js\": [\n\t\t45501,\n\t\t5501\n\t],\n\t\"./pizzazz/no.js\": [\n\t\t33652,\n\t\t3652\n\t],\n\t\"./pizzazz/pl.js\": [\n\t\t52251,\n\t\t2251\n\t],\n\t\"./pizzazz/pt.js\": [\n\t\t53379,\n\t\t3379\n\t],\n\t\"./pizzazz/ro.js\": [\n\t\t7824,\n\t\t7824\n\t],\n\t\"./pizzazz/sr.js\": [\n\t\t26498,\n\t\t6498\n\t],\n\t\"./pizzazz/sv.js\": [\n\t\t62830,\n\t\t2830\n\t],\n\t\"./pizzazz/sw.js\": [\n\t\t12141,\n\t\t2141\n\t],\n\t\"./pizzazz/tr.js\": [\n\t\t8621,\n\t\t8621\n\t],\n\t\"./signup/ar.js\": [\n\t\t4388,\n\t\t4388\n\t],\n\t\"./signup/cs.js\": [\n\t\t76005,\n\t\t6005\n\t],\n\t\"./signup/da.js\": [\n\t\t62928,\n\t\t2928\n\t],\n\t\"./signup/de-AT.js\": [\n\t\t53312,\n\t\t3312\n\t],\n\t\"./signup/de-CH.js\": [\n\t\t30918,\n\t\t918\n\t],\n\t\"./signup/de.js\": [\n\t\t38652,\n\t\t8652\n\t],\n\t\"./signup/el.js\": [\n\t\t76062,\n\t\t6062\n\t],\n\t\"./signup/en-GB.js\": [\n\t\t37800,\n\t\t7800\n\t],\n\t\"./signup/en-US.js\": [\n\t\t72537,\n\t\t2537\n\t],\n\t\"./signup/en.js\": [\n\t\t31604,\n\t\t1604\n\t],\n\t\"./signup/es.js\": [\n\t\t57415,\n\t\t7415\n\t],\n\t\"./signup/fr.js\": [\n\t\t18667,\n\t\t8667\n\t],\n\t\"./signup/he.js\": [\n\t\t2208,\n\t\t2208\n\t],\n\t\"./signup/hi.js\": [\n\t\t73556,\n\t\t3556\n\t],\n\t\"./signup/hu.js\": [\n\t\t55984,\n\t\t3603\n\t],\n\t\"./signup/id.js\": [\n\t\t29658,\n\t\t9658\n\t],\n\t\"./signup/it.js\": [\n\t\t60074,\n\t\t74\n\t],\n\t\"./signup/ja.js\": [\n\t\t30410,\n\t\t410\n\t],\n\t\"./signup/ko.js\": [\n\t\t14457,\n\t\t4457\n\t],\n\t\"./signup/nl.js\": [\n\t\t17713,\n\t\t7713\n\t],\n\t\"./signup/no.js\": [\n\t\t43032,\n\t\t3032\n\t],\n\t\"./signup/pl.js\": [\n\t\t88471,\n\t\t8471\n\t],\n\t\"./signup/pt.js\": [\n\t\t82895,\n\t\t2895\n\t],\n\t\"./signup/ro.js\": [\n\t\t15596,\n\t\t5596\n\t],\n\t\"./signup/sr.js\": [\n\t\t57302,\n\t\t7302\n\t],\n\t\"./signup/sv.js\": [\n\t\t73258,\n\t\t3258\n\t],\n\t\"./signup/sw.js\": [\n\t\t69689,\n\t\t9689\n\t],\n\t\"./signup/tr.js\": [\n\t\t23209,\n\t\t3209\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() { return Object.keys(map); };\nwebpackAsyncContext.id = 16859;\nmodule.exports = webpackAsyncContext;","// If the document is ready already, fire the callback immediately, otherwise wait for DOMContentLoaded\nexport function domReady(callback) {\n if (\n document.readyState === 'complete' ||\n (document.readyState !== 'loading' && !document.documentElement.doScroll)\n ) {\n callback()\n } else {\n document.addEventListener('DOMContentLoaded', callback)\n }\n}\n\n","import forEach from 'lodash/forEach' // this works on JS objects in addition to arrays\nimport isPlainObject from 'lodash/isPlainObject'\nimport camelCase from 'lodash/camelCase'\nimport snakeCase from 'lodash/snakeCase'\n\n// Warning: Only for serializable javascript objects without recursive references\n// otherwise will have infinite recursion + stack overflow.\n\nfunction makeObjectTransformer(transformWithFunction) {\n return function transformObjectKeys(sourceObject) {\n let transformedObject = {}\n if (Array.isArray(sourceObject)) {\n transformedObject = []\n }\n\n forEach(\n sourceObject,\n function(value, key) {\n if (isPlainObject(value) || Array.isArray(value)) { // checks that a value is a plain object or an array - for recursive key conversion\n value = transformObjectKeys(value) // recursively update keys of any values that are also objects\n }\n transformedObject[transformWithFunction(key)] = value\n }\n )\n return transformedObject\n }\n}\n\nconst objectKeysToCamelCase = makeObjectTransformer(camelCase)\nconst objectKeysToSnakeCase = makeObjectTransformer(snakeCase)\n\nexport {\n // For a plain JS object or array with snake_case keys,\n // recursively transform the keys to be camelCase instead.\n // Returns the transformed version.\n objectKeysToCamelCase,\n\n // For a plain JS object or array with camelCase keys,\n // recursively transform the keys to be snake_case instead.\n // Returns the transformed version.\n objectKeysToSnakeCase\n}\n","const TYPE_TO_COLOR_INDEX_MAP = {\n event: 0,\n group: 1\n}\n\nexport default {\n install(app) {\n app.config.globalProperties.classFromColorIndex = function(colorIndex, primaryClass, secondaryClass) {\n if (colorIndex === 0) {\n return { [primaryClass]: true}\n }\n return { [secondaryClass]: true }\n }\n\n app.config.globalProperties.colorIndexForType = function(typeName) {\n return TYPE_TO_COLOR_INDEX_MAP[typeName]\n }\n }\n}\n\n","export default {\n install(app) {\n app.config.globalProperties.agraConfiguration = window.Agra.Configuration\n }\n}\n\n","import ClassFromColorIndex from './helpers/class-from-color-index'\nimport AgraConfiguration from './agra-configuration'\nimport { ErrorLoggerVueInit } from '@/error-logger'\n\nconst applyCommonPluginsToVueApp = function(app) {\n app.use(ErrorLoggerVueInit)\n app.use(ClassFromColorIndex)\n app.use(AgraConfiguration)\n}\n\nexport { applyCommonPluginsToVueApp }\n","import isEmpty from 'lodash/isEmpty'\n\nexport function trackShareOpen(socialKind, entityType, entitySlug) {\n const trackingEventName = `Opened ${socialKind} Share for ${entityType}`\n let trackingParams = {\n category: 'recommendation',\n action: socialKind,\n name: `${entityType} ${entitySlug}`\n }\n\n if (entitySlug) {\n trackingParams[entityType.toLowerCase()] = entitySlug\n }\n\n trackEvent(trackingEventName, trackingParams)\n}\n\nfunction trackEventWithGoogleAnalytics(event, parameters, identity, windowGlobal) {\n if (windowGlobal.gtag !== undefined) {\n // this is using nifty object spread syntax to map things onto new field names\n // const { key:renamedKey, ...restOfTheKeys } = anObject\n const { action: eventName, ...params } = parameters\n const eventNameWithFallback = eventName || event\n windowGlobal.gtag('event', eventNameWithFallback, paramsForGoogleAnalytics(params))\n }\n}\n\nfunction trackEventWithGtm(event, parameters, identity, windowGlobal) {\n if (windowGlobal.dataLayer !== undefined) {\n const dataLayerEvent = Object.assign(parameters, {event: event})\n if (identity['email'] && windowGlobal.sendEnhancedConversionData) {\n window.memberEmailAddress = identity['email']\n dataLayerEvent.enhanced_conversion_data = {\n email: 'memberEmailAddress'\n }\n }\n windowGlobal.dataLayer.push(dataLayerEvent)\n }\n}\n\nfunction trackEventWithMatomo(event, parameters, identity, windowGlobal) {\n if (windowGlobal._paq !== undefined) {\n windowGlobal._paq.push(['trackEvent', parameters['category'], parameters['action'], parameters['name'], parameters['value']])\n }\n}\n\nfunction trackEventWithSegment(event, parameters, identity, windowGlobal) {\n if (windowGlobal.analytics !== undefined) {\n let segmentContext = identity['anonymousId'] ? {anonymousId: identity['anonymousId']} : {}\n\n if (windowGlobal.optimizely && windowGlobal.optimizely.get) {\n segmentContext['Optimizely'] = {userId: windowGlobal.optimizely.get('visitor').visitorId }\n }\n\n if (!isEmpty(identity)) {\n windowGlobal.analytics.identify(`csl-${ identity['id'] }`, {email: identity['email']}, segmentContext )\n }\n windowGlobal.analytics.track(event, parameters, segmentContext)\n }\n}\n\nconst TRACKING_METHODS_BY_SLUG = {\n google_analytics: trackEventWithGoogleAnalytics,\n google_tag_manager: trackEventWithGtm,\n matomo: trackEventWithMatomo,\n segment: trackEventWithSegment\n}\n\n// we pass the global `window` in separately to assist us in stubbing easily with jest\nexport function trackEvent(event, parameters = {}, identity = {}, windowGlobal = window ) {\n for (let tracker of windowGlobal.Agra.Configuration.sendTrackingEventsTo) {\n TRACKING_METHODS_BY_SLUG[tracker](event, parameters, identity, windowGlobal)\n }\n\n return true\n}\n\nfunction paramsForGoogleAnalytics(params) {\n const { category: event_category, name: event_label, ...restParams } = params\n return {\n event_category,\n event_label,\n ...restParams\n }\n}\n","import { Modal } from 'bootstrap'\n\n// Make Modal available to .js.erb scripts, which cannot do their own imports\nwindow.Modal = Modal\n","import I18n from 'i18n-js'\nimport { domReady } from '@/utils/dom-ready'\nimport { importWithRetry } from '@/utils/component-loader'\n\nclass I18nTranslations {\n constructor({translationContext}) {\n this.translationContext = translationContext\n\n if (this.translationsLoaded === undefined) {\n this.translationsLoaded = false\n this.translationsLoading = false\n }\n document.addEventListener('turbolinks:load', this.loadTranslations)\n\n // for pages not using turbolinks, we get document:ready event\n domReady(this.loadTranslations)\n }\n\n isRtl = () => {\n const htmlElement = document.getElementsByTagName('html')[0]\n if (htmlElement && htmlElement.attributes['dir']) {\n return htmlElement.attributes['dir'].value === 'rtl'\n }\n\n return false\n }\n\n loadTranslations = () => {\n // Do not attempt to reload translations if they were already initialized\n if (this.translationsLoaded) {\n // Trigger the event to forward turbolinks:load for other scripts\n document.dispatchEvent(new Event('translations:loaded'))\n return\n }\n\n if (this.translationsLoading) {\n // only allow one attempt at loading translations to be in progress at once.\n return\n }\n\n this.translationsLoading = true\n\n const currentLocale = htmlLang()\n if (!currentLocale) {\n throw 'Couldn\\'t find current locale'\n }\n\n importWithRetry(() => import(/* webpackMode: \"lazy\" */ `../locales/${this.translationContext}/${currentLocale}.js`))\n .then(({default: translations}) => {\n I18n.locale = currentLocale\n I18n.fallbacks = 'default_locale'\n I18n.translations[currentLocale] = translations\n }).then(() => {\n this.translationsLoaded = true\n this.translationsLoading = false\n document.dispatchEvent(new Event('translations:loaded'))\n })\n }\n\n locale() {\n this.translationsLoadedGuard()\n return I18n.locale\n }\n\n translate(scope, options) {\n this.translationsLoadedGuard()\n return I18n.translate(scope, options)\n }\n\n t(scope, options) {\n return this.translate(scope, options)\n }\n\n localize(scope, value, options) {\n this.translationsLoadedGuard()\n return I18n.localize(scope, value, options)\n }\n\n l(scope, value, options) {\n return this.localize(scope, value, options)\n }\n\n pluralize(count, scope, options) {\n this.translationsLoadedGuard()\n return I18n.pluralize(count, scope, options)\n }\n\n p(count, scope, options) {\n this.pluralize(count, scope, options)\n }\n\n toNumber(number, options) {\n this.translationsLoadedGuard()\n return I18n.toNumber(number, options)\n }\n\n strftime(time, string) {\n this.translationsLoadedGuard()\n return I18n.strftime(time, string)\n }\n\n translationsLoadedGuard() {\n if (!this.translationsLoaded) {\n throw 'Translations not loaded yet. Need to wait until translations:loaded before calling this function'\n }\n }\n}\n\nexport const htmlLang = () => document.getElementsByTagName('html')[0].attributes['lang'].value\n\nexport default I18nTranslations\n","export const CHART_FORMAT = {\n pointHoverBackgroundColor: '#ffffff',\n pointHoverBorderColor: '#e2e2e2',\n pointHoverBorderWidth: 1,\n borderWidth: 2,\n pointRadius: 0,\n pointHoverRadius: 6,\n pointHitRadius: 10,\n fill: false,\n borderColor: [ '#0f91c2']\n}\n\nexport const DATA_COLORS = [\n '#61a1e7',\n '#ff8f8f',\n '#7086f4',\n '#f0bb70',\n '#d27777',\n '#df71db',\n '#fdd455',\n '#eef270',\n '#b7e762',\n '#a465ed',\n '#7af5a3',\n '#79e7f4'\n]\n\nexport const TYPE_TO_COLOR_MAP = {\n event: 'bg-primary',\n group: 'bg-secondary'\n}\n\nexport const COOKIE_NAME_AGREED_COOKIES = 'agreed_cookies'\n\nexport const MIN_MD_SCREEN_WIDTH = 768\n","import { objectKeysToCamelCase } from './transform-object-keys'\nimport { urlWithParams } from './url-params'\n\nconst STATUS_ERROR = 'error'\nconst GET_VERB = 'GET'\nconst POST_VERB = 'POST'\nconst PATCH_VERB = 'PATCH'\nconst PUT_VERB = 'PUT'\nconst DELETE_VERB = 'DELETE'\nconst PARAMS_IN_BODY_METHODS = [POST_VERB, PATCH_VERB, PUT_VERB, DELETE_VERB]\n\nfunction get(options) {\n return ajaxBase({...options, method: GET_VERB})\n}\n\nfunction post(options) {\n return ajaxBase({...options, method: POST_VERB})\n}\n\nfunction patch(options) {\n return ajaxBase({...options, method: PATCH_VERB})\n}\n\nfunction put(options) {\n return ajaxBase({...options, method: PUT_VERB})\n}\n\nconst errorTypes = {\n FETCH_FAILED: 'fetchFailed',\n NOT_OK_HTTP_STATUS: 'nonOkHttpStatus'\n}\n\nasync function ajaxBase({url, params, method, headers, data: requestData, acceptContentType='application/json',\n successHandler, errorHandler = null, throwOnFailure = false, camelCaseResponse = true}) {\n // If we're doing a GET, encode the params in the URL. Otherwise, we'll encode into the request body\n const parameterizedUrl = (method === GET_VERB) ? urlWithParams(url, params || {}) : url\n\n // By default, do not set the `body` parameter. For GET and other methods that do not accept a body,\n // even setting `body: null` can cause errors in some browsers.\n const maybeBody = {}\n\n // by default, communicate with the server via json\n let contentType = 'application/json;charset=UTF-8'\n\n if (PARAMS_IN_BODY_METHODS.includes(method)) {\n if (requestData === undefined) {\n // We need to do send as URL encoded data, since we accept arbitrary params.\n maybeBody.body = new URLSearchParams(params).toString()\n contentType = 'application/x-www-form-urlencoded'\n } else {\n // Need to JSON.stringify the bodyData here or it will be serialized\n // as [object Object] by default\n maybeBody.body = JSON.stringify(requestData)\n }\n }\n\n let response = null\n try {\n response = await fetch(parameterizedUrl, {\n method,\n headers: {\n ...headers,\n ...maybeCsrfToken(),\n 'Accept': acceptContentType,\n 'Content-Type': contentType,\n credentials: 'same-origin'\n },\n ...maybeBody\n })\n } catch (e) {\n if (throwOnFailure) {\n throw e\n } else {\n document.dispatchEvent(new CustomEvent('agra:ajax-error', {detail: {errorType: errorTypes.FETCH_FAILED}}))\n return\n }\n }\n\n // Check that HTTP status is OK\n if (!response.ok) {\n let errorBody\n try {\n errorBody = await response.json()\n } catch {\n // couldn't parse JSON\n errorBody = {error: `Response status was ${response.status}`}\n }\n\n if (throwOnFailure) {\n throw errorBody\n } else {\n document.dispatchEvent(new CustomEvent('agra:ajax-error', {\n detail: {\n errorType: errorTypes.NOT_OK_HTTP_STATUS,\n httpStatusCode: response.status,\n message: errorBody.message\n }\n }))\n return\n }\n }\n\n // Parse the response body\n if (response.status === 204) {\n // No response body to parse. Call the provided success handler function and we're done.\n if (successHandler) {\n successHandler(null)\n }\n return\n }\n\n // Parse body as JSON if that's the expected response\n const jsonRegexContentType = /json/i\n if (jsonRegexContentType.test(acceptContentType)) {\n const jsonResponse = await response.json()\n\n const transformedResponse = camelCaseResponse ? objectKeysToCamelCase(jsonResponse) : jsonResponse\n\n if (Array.isArray(jsonResponse)) {\n // Send the array data to the provided success handler function\n if (successHandler) {\n successHandler(transformedResponse)\n }\n return\n }\n\n // If we get here, we can assume that the JSON data is a hash. Extract common fields from it.\n const { status, message, data, ...rest } = transformedResponse\n\n // If the response has \"status\": \"error\", that's a 'business logic' error that the caller should handle.\n // Send it to the provided error handler function. If we were not provided an error handler function,\n // throw an exception.\n if (status === STATUS_ERROR) {\n if (errorHandler) {\n errorHandler({ message, info: rest })\n return\n } else {\n let error = new Error(message)\n error.info = rest\n throw error\n }\n }\n\n // Send the body, minus the 'status', to the provided success handler function\n if (successHandler) {\n successHandler({ message, data, ...rest })\n }\n } else {\n // Send the body as unparsed text to the provided success handler function\n const bodyText = await response.text()\n if (successHandler) {\n successHandler(bodyText)\n }\n }\n}\n\nfunction maybeCsrfToken() {\n const tokenElement = document.querySelector('meta[name=\"csrf-token\"]')\n if (tokenElement) {\n return {\n 'X-CSRF-Token': tokenElement.getAttribute('content')\n }\n }\n else {\n return {}\n }\n}\n\nexport default {\n get,\n post,\n // We inline the delete method here because `delete` is a JS keyword\n delete: options => {\n return ajaxBase({...options, method: DELETE_VERB})\n },\n put,\n patch,\n\n errorTypes\n}\n","import { importWithRetry } from '@/utils/component-loader'\n\nexport default class ErrorLogger {\n rollbarLogger = null\n appsignalLogger = null\n\n constructor() {\n const errorReportingConfig = window.Agra.Configuration.errorReporting\n if (errorReportingConfig.rollbar.enabled) {\n importWithRetry(() => import(/* webpackMode: \"lazy\"*/ 'rollbar'))\n .then(module => {\n this.rollbarLogger = new module.default(this.rollbarOptions(errorReportingConfig.rollbar))\n })\n } else if (errorReportingConfig.appsignal.enabled) {\n importWithRetry(() => import(/* webpackMode: \"lazy\"*/ '@appsignal/javascript'))\n .then(module => {\n this.appsignalLogger = new module.default({\n key: errorReportingConfig.appsignal.frontendKey\n })\n })\n }\n }\n\n rollbarOptions(config) {\n return {\n accessToken: config.publicAccessToken,\n autoInstrument: {\n contentSecurityPolicy: true,\n errorOnContentSecurityPolicy: false\n },\n captureUncaught: true,\n captureUnhandledRejections: true,\n captureIp: false,\n enabled: true,\n environment: config.environment,\n ignoredMessages: ['ResizeObserver loop completed with undelivered notifications'],\n payload: {\n client: {\n javascript: {\n source_map_enabled: true,\n guess_uncaught_frames: true\n }\n }\n },\n scrubTelemetryInputs: true\n }\n }\n\n error(message, exception) {\n if (!exception) {\n exception = new Error(message)\n }\n\n if (this.rollbarLogger) {\n this.rollbarLogger.error(message, exception)\n } else if (this.appsignalLogger) {\n this.appsignalLogger.sendError(exception)\n } else {\n // stub implementation for case when neither rollbar or appsignal are loaded. Just logs to the console.\n console.log(`[ERROR] ${message} - ${JSON.stringify(exception)}`)\n }\n }\n}\n\nexport const ErrorLoggerVueInit = {\n install(app) {\n const errorLogger = new ErrorLogger()\n app.config.globalProperties.$errorLogger = errorLogger\n }\n}\n","// eslint-disable-next-line no-undef\n__webpack_public_path__ = window.__webpack_public_path__\n","const I18nPlugin = {\n install(app, options) {\n const i18n = options.i18n\n\n app.config.globalProperties.i18n = i18n\n app.config.globalProperties.i18n.formattedCount = (i18nKey, count) => {\n return i18n.t(i18nKey, { count, formatted_count: i18n.toNumber(count, {precision: 0})})\n }\n app.config.globalProperties.translationsLoaded = true\n app.provide('i18n', i18n)\n }\n}\n\nexport default I18nPlugin\n","import { trackEvent } from '@/analytics/track'\nimport { unescape } from 'lodash'\n\nwindow.Agra = window.Agra || {}\nwindow.Agra.trackEvent = trackEvent\n\nwindow.Agra.alertMessageSuccess = function (message) {\n const clientSideAlerts = document.querySelector('.client-side-alerts')\n if (clientSideAlerts) {\n clientSideAlerts.querySelector('.alert').style.display = 'none'\n clientSideAlerts.querySelector('.alert.alert-success > span').innerText = unescape(message)\n clientSideAlerts.querySelector('.alert.alert-success').style.display = 'block'\n }\n}\n\nwindow.Agra.alertMessageDanger = function (message) {\n const clientSideAlerts = document.querySelector('.client-side-alerts')\n if (clientSideAlerts) {\n clientSideAlerts.querySelector('.alert').style.display = 'none'\n clientSideAlerts.querySelector('.alert.alert-danger > span').innerText = unescape(message)\n clientSideAlerts.querySelector('.alert.alert-danger').style.display = 'block'\n }\n}\n"],"names":["window","errorLogger","ErrorLogger","urlWithParams","baseUrl","searchParamsMap","urlObj","URL","location","origin","urlSearchParams","searchParams","Object","entries","forEach","k","v","stringValue","JSON","stringify","append","sort","toString","urlParamsWithNamespace","paramsMap","namespace","newParamsMap","setUpTooltips","document","querySelectorAll","el","Tooltip","addComponentLoader","componentMapping","scriptMapping","storeGetterImport","baseAddComponentLoader","addSharedStoreComponentLoader","componentList","storeDataComponentName","importWithRetry","importer","retriesLeft","Error","Promise","resolve","reject","then","catch","error","console","warn","setTimeout","async","result","err","createVueComponent","div","definition","props","store","jQuery","children","first","classes","fromEntries","Array","from","classList","map","val","createRootVueComponent","class","componentCollection","sharedStore","handler","vueComponentDivs","getElementsByClassName","relevantVueComponentDivs","filter","dataset","componentName","length","vuexStore","default","storeOrStoreGetter","componentData","parse","sharedStoreHandler","data","unorderedHandler","scriptDivs","scriptName","scriptHandler","addEventListener","webpackAsyncContext","req","__webpack_require__","o","e","code","ids","id","keys","module","exports","domReady","callback","readyState","documentElement","doScroll","makeObjectTransformer","transformWithFunction","transformObjectKeys","sourceObject","transformedObject","isArray","value","key","isPlainObject","objectKeysToCamelCase","camelCase","objectKeysToSnakeCase","snakeCase","TYPE_TO_COLOR_INDEX_MAP","event","group","install","app","config","globalProperties","classFromColorIndex","colorIndex","primaryClass","secondaryClass","colorIndexForType","typeName","agraConfiguration","Agra","Configuration","applyCommonPluginsToVueApp","use","ErrorLoggerVueInit","ClassFromColorIndex","AgraConfiguration","trackShareOpen","socialKind","entityType","entitySlug","trackingEventName","trackingParams","category","action","name","toLowerCase","trackEvent","TRACKING_METHODS_BY_SLUG","google_analytics","parameters","identity","windowGlobal","undefined","gtag","eventName","params","eventNameWithFallback","event_category","event_label","restParams","paramsForGoogleAnalytics","google_tag_manager","dataLayer","dataLayerEvent","assign","sendEnhancedConversionData","memberEmailAddress","enhanced_conversion_data","email","push","matomo","_paq","segment","analytics","segmentContext","anonymousId","optimizely","get","userId","visitorId","isEmpty","identify","track","tracker","sendTrackingEventsTo","Modal","htmlLang","getElementsByTagName","attributes","constructor","translationContext","this","translationsLoaded","translationsLoading","loadTranslations","isRtl","htmlElement","dispatchEvent","Event","currentLocale","translations","I18n","locale","translationsLoadedGuard","translate","scope","options","t","localize","l","pluralize","count","p","toNumber","number","strftime","time","string","CHART_FORMAT","pointHoverBackgroundColor","pointHoverBorderColor","pointHoverBorderWidth","borderWidth","pointRadius","pointHoverRadius","pointHitRadius","fill","borderColor","DATA_COLORS","COOKIE_NAME_AGREED_COOKIES","MIN_MD_SCREEN_WIDTH","POST_VERB","PATCH_VERB","DELETE_VERB","PARAMS_IN_BODY_METHODS","errorTypes","FETCH_FAILED","NOT_OK_HTTP_STATUS","ajaxBase","url","method","headers","requestData","acceptContentType","successHandler","errorHandler","throwOnFailure","camelCaseResponse","parameterizedUrl","maybeBody","contentType","includes","body","URLSearchParams","response","fetch","maybeCsrfToken","credentials","CustomEvent","detail","errorType","ok","errorBody","json","status","httpStatusCode","message","test","jsonResponse","transformedResponse","rest","info","bodyText","text","tokenElement","querySelector","getAttribute","post","delete","put","patch","rollbarLogger","appsignalLogger","errorReportingConfig","errorReporting","rollbar","enabled","rollbarOptions","appsignal","frontendKey","accessToken","publicAccessToken","autoInstrument","contentSecurityPolicy","errorOnContentSecurityPolicy","captureUncaught","captureUnhandledRejections","captureIp","environment","ignoredMessages","payload","client","javascript","source_map_enabled","guess_uncaught_frames","scrubTelemetryInputs","exception","sendError","log","$errorLogger","__webpack_public_path__","I18nPlugin","i18n","formattedCount","i18nKey","formatted_count","precision","provide","alertMessageSuccess","clientSideAlerts","style","display","innerText","unescape","alertMessageDanger"],"sourceRoot":""}