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yScriptEmbed.js","webpack://_N_E/../../node_modules/@next/third-parties/dist/google/ga.js","webpack://_N_E/../../node_modules/@next/third-parties/dist/google/google-maps-embed.js","webpack://_N_E/../../node_modules/@next/third-parties/dist/google/gtm.js","webpack://_N_E/../../node_modules/@next/third-parties/dist/google/index.js","webpack://_N_E/../../node_modules/@next/third-parties/dist/google/youtube-embed.js","webpack://_N_E/../../packages/lib/fbq.ts","webpack://_N_E/../../packages/ui/src/Tracking/FacebookPixel.tsx","webpack://_N_E/../../packages/ui/src/Tracking/GoogleAnalytics.tsx","webpack://_N_E/../../packages/ui/src/Tracking/GoogleTagManager.tsx","webpack://_N_E/../../packages/ui/src/Tracking/HubspotTracking.tsx","webpack://_N_E/../../packages/ui/src/Tracking/SegmentAnalytics.tsx","webpack://_N_E/../../packages/ui/src/Tracking/index.tsx","webpack://_N_E/../../node_modules/next/router.js","webpack://_N_E/../../node_modules/next/script.js","webpack://_N_E/../../node_modules/third-party-capital/lib/cjs/index.js","webpack://_N_E/../../node_modules/third-party-capital/lib/cjs/third-parties/google-analytics/index.js","webpack://_N_E/../../node_modules/third-party-capital/lib/cjs/third-parties/google-maps-embed/index.js","webpack://_N_E/../../node_modules/third-party-capital/lib/cjs/third-parties/youtube-embed/index.js","webpack://_N_E/../../node_modules/third-party-capital/lib/cjs/utils/index.js","webpack://_N_E/"],"sourcesContent":["\"use strict\";\n'use client';\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst jsx_runtime_1 = require(\"react/jsx-runtime\");\nconst react_1 = require(\"react\");\nfunction ThirdPartyScriptEmbed({ html, height = null, width = null, children, dataNtpc = '', }) {\n (0, react_1.useEffect)(() => {\n if (dataNtpc) {\n // performance.mark is being used as a feature use signal. While it is traditionally used for performance\n // benchmarking it is low overhead and thus considered safe to use in production and it is a widely available\n // existing API.\n performance.mark('mark_feature_usage', {\n detail: {\n feature: `next-third-parties-${dataNtpc}`,\n },\n });\n }\n }, [dataNtpc]);\n return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [children, html ? ((0, jsx_runtime_1.jsx)(\"div\", { style: {\n height: height != null ? `${height}px` : 'auto',\n width: width != null ? `${width}px` : 'auto',\n }, \"data-ntpc\": dataNtpc, dangerouslySetInnerHTML: { __html: html } })) : null] }));\n}\nexports.default = ThirdPartyScriptEmbed;\n","\"use strict\";\n'use client';\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sendGAEvent = exports.GoogleAnalytics = void 0;\nconst jsx_runtime_1 = require(\"react/jsx-runtime\");\n// TODO: Evaluate import 'client only'\nconst react_1 = require(\"react\");\nconst script_1 = __importDefault(require(\"next/script\"));\nlet currDataLayerName = undefined;\nfunction GoogleAnalytics(props) {\n const { gaId, dataLayerName = 'dataLayer' } = props;\n if (currDataLayerName === undefined) {\n currDataLayerName = dataLayerName;\n }\n (0, react_1.useEffect)(() => {\n // performance.mark is being used as a feature use signal. While it is traditionally used for performance\n // benchmarking it is low overhead and thus considered safe to use in production and it is a widely available\n // existing API.\n // The performance measurement will be handled by Chrome Aurora\n performance.mark('mark_feature_usage', {\n detail: {\n feature: 'next-third-parties-ga',\n },\n });\n }, []);\n return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(script_1.default, { id: \"_next-ga-init\", dangerouslySetInnerHTML: {\n __html: `\n window['${dataLayerName}'] = window['${dataLayerName}'] || [];\n function gtag(){window['${dataLayerName}'].push(arguments);}\n gtag('js', new Date());\n\n gtag('config', '${gaId}');`,\n } }), (0, jsx_runtime_1.jsx)(script_1.default, { id: \"_next-ga\", src: `https://www.googletagmanager.com/gtag/js?id=${gaId}` })] }));\n}\nexports.GoogleAnalytics = GoogleAnalytics;\nconst sendGAEvent = (...args) => {\n if (currDataLayerName === undefined) {\n console.warn(`@next/third-parties: GA has not been initialized`);\n return;\n }\n if (window[currDataLayerName]) {\n window[currDataLayerName].push(...args);\n }\n else {\n console.warn(`@next/third-parties: GA dataLayer ${currDataLayerName} does not exist`);\n }\n};\nexports.sendGAEvent = sendGAEvent;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst jsx_runtime_1 = require(\"react/jsx-runtime\");\nconst third_party_capital_1 = require(\"third-party-capital\");\nconst ThirdPartyScriptEmbed_1 = __importDefault(require(\"../ThirdPartyScriptEmbed\"));\nfunction GoogleMapsEmbed(props) {\n const { apiKey, ...restProps } = props;\n const formattedProps = { ...restProps, key: apiKey };\n const { html } = (0, third_party_capital_1.GoogleMapsEmbed)(formattedProps);\n return ((0, jsx_runtime_1.jsx)(ThirdPartyScriptEmbed_1.default, { height: formattedProps.height || null, width: formattedProps.width || null, html: html, dataNtpc: \"GoogleMapsEmbed\" }));\n}\nexports.default = GoogleMapsEmbed;\n","\"use strict\";\n'use client';\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sendGTMEvent = exports.GoogleTagManager = void 0;\nconst jsx_runtime_1 = require(\"react/jsx-runtime\");\n// TODO: Evaluate import 'client only'\nconst react_1 = require(\"react\");\nconst script_1 = __importDefault(require(\"next/script\"));\nlet currDataLayerName = undefined;\nfunction GoogleTagManager(props) {\n const { gtmId, dataLayerName = 'dataLayer', auth, preview, dataLayer } = props;\n if (currDataLayerName === undefined) {\n currDataLayerName = dataLayerName;\n }\n const gtmLayer = dataLayerName !== 'dataLayer' ? `$l=${dataLayerName}` : '';\n const gtmAuth = auth ? `>m_auth=${auth}` : '';\n const gtmPreview = preview ? `>m_preview=${preview}>m_cookies_win=x` : '';\n (0, react_1.useEffect)(() => {\n // performance.mark is being used as a feature use signal. While it is traditionally used for performance\n // benchmarking it is low overhead and thus considered safe to use in production and it is a widely available\n // existing API.\n // The performance measurement will be handled by Chrome Aurora\n performance.mark('mark_feature_usage', {\n detail: {\n feature: 'next-third-parties-gtm',\n },\n });\n }, []);\n return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(script_1.default, { id: \"_next-gtm-init\", dangerouslySetInnerHTML: {\n __html: `\n (function(w,l){\n w[l]=w[l]||[];\n w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});\n ${dataLayer ? `w[l].push(${JSON.stringify(dataLayer)})` : ''}\n })(window,'${dataLayerName}');`,\n } }), (0, jsx_runtime_1.jsx)(script_1.default, { id: \"_next-gtm\", \"data-ntpc\": \"GTM\", src: `https://www.googletagmanager.com/gtm.js?id=${gtmId}${gtmLayer}${gtmAuth}${gtmPreview}` })] }));\n}\nexports.GoogleTagManager = GoogleTagManager;\nconst sendGTMEvent = (data) => {\n if (currDataLayerName === undefined) {\n console.warn(`@next/third-parties: GTM has not been initialized`);\n return;\n }\n if (window[currDataLayerName]) {\n window[currDataLayerName].push(data);\n }\n else {\n console.warn(`@next/third-parties: GTM dataLayer ${currDataLayerName} does not exist`);\n }\n};\nexports.sendGTMEvent = sendGTMEvent;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sendGAEvent = exports.GoogleAnalytics = exports.sendGTMEvent = exports.GoogleTagManager = exports.YouTubeEmbed = exports.GoogleMapsEmbed = void 0;\nvar google_maps_embed_1 = require(\"./google-maps-embed\");\nObject.defineProperty(exports, \"GoogleMapsEmbed\", { enumerable: true, get: function () { return __importDefault(google_maps_embed_1).default; } });\nvar youtube_embed_1 = require(\"./youtube-embed\");\nObject.defineProperty(exports, \"YouTubeEmbed\", { enumerable: true, get: function () { return __importDefault(youtube_embed_1).default; } });\nvar gtm_1 = require(\"./gtm\");\nObject.defineProperty(exports, \"GoogleTagManager\", { enumerable: true, get: function () { return gtm_1.GoogleTagManager; } });\nObject.defineProperty(exports, \"sendGTMEvent\", { enumerable: true, get: function () { return gtm_1.sendGTMEvent; } });\nvar ga_1 = require(\"./ga\");\nObject.defineProperty(exports, \"GoogleAnalytics\", { enumerable: true, get: function () { return ga_1.GoogleAnalytics; } });\nObject.defineProperty(exports, \"sendGAEvent\", { enumerable: true, get: function () { return ga_1.sendGAEvent; } });\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst jsx_runtime_1 = require(\"react/jsx-runtime\");\nconst script_1 = __importDefault(require(\"next/script\"));\nconst third_party_capital_1 = require(\"third-party-capital\");\nconst ThirdPartyScriptEmbed_1 = __importDefault(require(\"../ThirdPartyScriptEmbed\"));\nconst scriptStrategy = {\n server: 'beforeInteractive',\n client: 'afterInteractive',\n idle: 'lazyOnload',\n worker: 'worker',\n};\nfunction YouTubeEmbed(props) {\n const { html, scripts, stylesheets } = (0, third_party_capital_1.YouTubeEmbed)(props);\n return ((0, jsx_runtime_1.jsx)(ThirdPartyScriptEmbed_1.default, { height: props.height || null, width: props.width || null, html: html, dataNtpc: \"YouTubeEmbed\", children: scripts === null || scripts === void 0 ? void 0 : scripts.map((script) => ((0, jsx_runtime_1.jsx)(script_1.default, { src: script.url, strategy: scriptStrategy[script.strategy], stylesheets: stylesheets }, script.url))) }));\n}\nexports.default = YouTubeEmbed;\n","/* eslint-disable @typescript-eslint/no-explicit-any */\ndeclare global {\n interface Window {\n fbq: any;\n }\n}\nexport const FB_PIXEL_ID = process.env.NEXT_PUBLIC_FACEBOOK_PIXEL_ID;\n\nexport const pageview = () => {\n window.fbq(\"track\", \"PageView\");\n};\n\n// https://developers.facebook.com/docs/facebook-pixel/advanced/\nexport const event = (name, options = {}) => {\n window.fbq(\"track\", name, options);\n};\n","/* eslint-disable */\nimport Script from \"next/script\";\n\nimport { FB_PIXEL_ID, pageview } from \"lib/fbq\";\nimport { useRouter } from \"next/router\";\nimport { useEffect } from \"react\";\n\nexport const FacebookPixel = () => {\n const router = useRouter();\n\n useEffect(() => {\n const handleRouteChange = async () => {\n pageview();\n };\n\n router.events.on(\"routeChangeComplete\", handleRouteChange);\n\n return () => {\n router.events.off(\"routeChangeComplete\", () => handleRouteChange);\n };\n }, [router.events]);\n\n return (\n <>\n {/* Global Site Code Pixel - Facebook Pixel */}\n \n \n );\n};\n\nexport const FacebookPixelNoScript = () => {\n return (\n process.env.BUILD_ENV === \"production\" && (\n \n )\n );\n};\n","import { GoogleAnalytics as GA } from \"@next/third-parties/google\";\n\nexport const GoogleAnalytics = () => (\n \n);\n","import { useEffect } from \"react\";\n\nimport {\n GoogleTagManager as GTM,\n sendGTMEvent,\n} from \"@next/third-parties/google\";\nimport { useRouter } from \"next/router\";\n\nexport const GoogleTagManager = () => {\n const router = useRouter();\n\n useEffect(() => {\n const handleRouteChange = async (url: string) => {\n url && sendGTMEvent({ event: \"pageview\", page: url });\n };\n\n router.events.on(\"routeChangeComplete\", handleRouteChange);\n\n return () => {\n router.events.off(\"routeChangeComplete\", () => handleRouteChange);\n };\n }, [router.events]);\n\n return ;\n};\n","import Script from \"next/script\";\n\nexport const HubspotTracking = () => {\n return (\n process.env.BUILD_ENV === \"production\" && (\n <>\n {/* */}\n \n \n )\n );\n};\n","import { useEffect } from \"react\";\n\nimport { useRouter } from \"next/router\";\n\nexport const SegmentAnalytics = () => {\n const router = useRouter();\n\n useEffect(() => {\n const handleRouteChange = async (url: string) => {\n const pageViewed = await import(\"lib/segment\").then((m) => m.pageViewed);\n url && pageViewed(url);\n };\n\n router.events.on(\"routeChangeComplete\", handleRouteChange);\n\n return () => {\n router.events.off(\"routeChangeComplete\", () => handleRouteChange);\n };\n }, [router.events]);\n\n return null;\n};\n","import { FacebookPixel } from \"./FacebookPixel\";\nimport { GoogleAnalytics } from \"./GoogleAnalytics\";\nimport { GoogleTagManager } from \"./GoogleTagManager\";\nimport { HubspotTracking } from \"./HubspotTracking\";\nimport { SegmentAnalytics } from \"./SegmentAnalytics\";\n\nexport const Tracking = () => {\n return (\n <>\n {process.env.BUILD_ENV === \"production\" && (\n <>\n \n \n \n )}\n {(process.env.BUILD_ENV === \"production\" ||\n process.env.BUILD_ENV === \"development\") && (\n <>\n \n \n \n \n )}\n \n );\n};\n","module.exports = require('./dist/client/router')\n","module.exports = require('./dist/client/script')\n","\"use strict\";\n// Copyright 2023 Google LLC\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.YouTubeEmbed = exports.GoogleMapsEmbed = exports.GoogleAnalytics = void 0;\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n// https://www.apache.org/licenses/LICENSE-2.0\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nvar google_analytics_1 = require(\"./third-parties/google-analytics\");\nObject.defineProperty(exports, \"GoogleAnalytics\", { enumerable: true, get: function () { return google_analytics_1.GoogleAnalytics; } });\nvar google_maps_embed_1 = require(\"./third-parties/google-maps-embed\");\nObject.defineProperty(exports, \"GoogleMapsEmbed\", { enumerable: true, get: function () { return google_maps_embed_1.GoogleMapsEmbed; } });\nvar youtube_embed_1 = require(\"./third-parties/youtube-embed\");\nObject.defineProperty(exports, \"YouTubeEmbed\", { enumerable: true, get: function () { return youtube_embed_1.YouTubeEmbed; } });\n","\"use strict\";\n// Copyright 2023 Google LLC\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.GoogleAnalytics = void 0;\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n// https://www.apache.org/licenses/LICENSE-2.0\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nconst data_json_1 = __importDefault(require(\"./data.json\"));\nconst utils_1 = require(\"../../utils\");\nconst GoogleAnalytics = (_a) => {\n var args = __rest(_a, []);\n return (0, utils_1.formatData)(data_json_1.default, args);\n};\nexports.GoogleAnalytics = GoogleAnalytics;\n","\"use strict\";\n// Copyright 2023 Google LLC\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.GoogleMapsEmbed = void 0;\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n// https://www.apache.org/licenses/LICENSE-2.0\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nconst data_json_1 = __importDefault(require(\"./data.json\"));\nconst utils_1 = require(\"../../utils\");\nconst GoogleMapsEmbed = (_a) => {\n var args = __rest(_a, []);\n return (0, utils_1.formatData)(data_json_1.default, args);\n};\nexports.GoogleMapsEmbed = GoogleMapsEmbed;\n","\"use strict\";\n// Copyright 2023 Google LLC\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.YouTubeEmbed = void 0;\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n// https://www.apache.org/licenses/LICENSE-2.0\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nconst data_json_1 = __importDefault(require(\"./data.json\"));\nconst utils_1 = require(\"../../utils\");\nconst YouTubeEmbed = (_a) => {\n var args = __rest(_a, []);\n return (0, utils_1.formatData)(data_json_1.default, args);\n};\nexports.YouTubeEmbed = YouTubeEmbed;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.formatData = exports.createHtml = exports.formatUrl = void 0;\nfunction filterArgs(args, selectedArgs, inverse = false) {\n if (!selectedArgs)\n return {};\n return Object.keys(args)\n .filter((key) => inverse ? !selectedArgs.includes(key) : selectedArgs.includes(key))\n .reduce((obj, key) => {\n obj[key] = args[key];\n return obj;\n }, {});\n}\n// Add all required search params with user inputs as values\nfunction formatUrl(url, params, args, slug) {\n const newUrl = slug && Object.keys(slug).length > 0\n ? new URL(Object.values(slug)[0], url) // If there's a user inputted param for the URL slug, replace the default existing slug or include it\n : new URL(url);\n if (params && args) {\n params.forEach((param) => {\n if (args[param])\n newUrl.searchParams.set(param, args[param]);\n });\n }\n return newUrl.toString();\n}\nexports.formatUrl = formatUrl;\n// Construct HTML element and include all default attributes and user-inputted attributes\nfunction createHtml(element, attributes, htmlAttrArgs, urlQueryParamArgs, slugParamArg) {\n var _a;\n if (!attributes)\n return `<${element}>`;\n const formattedAttributes = ((_a = attributes.src) === null || _a === void 0 ? void 0 : _a.url)\n ? Object.assign(Object.assign({}, attributes), { src: formatUrl(attributes.src.url, attributes.src.params, urlQueryParamArgs, slugParamArg) }) : attributes;\n const htmlAttributes = Object.keys(Object.assign(Object.assign({}, formattedAttributes), htmlAttrArgs)).reduce((acc, name) => {\n const userVal = htmlAttrArgs === null || htmlAttrArgs === void 0 ? void 0 : htmlAttrArgs[name];\n const defaultVal = formattedAttributes[name];\n const finalVal = userVal !== null && userVal !== void 0 ? userVal : defaultVal; // overwrite\n const attrString = finalVal === true ? name : `${name}=\"${finalVal}\"`;\n return finalVal ? acc + ` ${attrString}` : acc;\n }, '');\n return `<${element}${htmlAttributes}>`;\n}\nexports.createHtml = createHtml;\n// Format JSON by including all default and user-required parameters\nfunction formatData(data, args) {\n var _a, _b, _c, _d, _e;\n const allScriptParams = (_a = data.scripts) === null || _a === void 0 ? void 0 : _a.reduce((acc, script) => [\n ...acc,\n ...(Array.isArray(script.params) ? script.params : []),\n ], []);\n // First, find all input arguments that map to parameters passed to script URLs\n const scriptUrlParamInputs = filterArgs(args, allScriptParams);\n // Second, find all input arguments that map to parameters passed to the HTML src attribute\n const htmlUrlParamInputs = filterArgs(args, (_c = (_b = data.html) === null || _b === void 0 ? void 0 : _b.attributes.src) === null || _c === void 0 ? void 0 : _c.params);\n // Third, find the input argument that maps to the slug parameter passed to the HTML src attribute if present\n const htmlSlugParamInput = filterArgs(args, [\n (_e = (_d = data.html) === null || _d === void 0 ? void 0 : _d.attributes.src) === null || _e === void 0 ? void 0 : _e.slugParam,\n ]);\n // Lastly, all remaining arguments are forwarded as separate HTML attributes\n const htmlAttrInputs = filterArgs(args, [\n ...Object.keys(scriptUrlParamInputs),\n ...Object.keys(htmlUrlParamInputs),\n ...Object.keys(htmlSlugParamInput),\n ], true);\n return Object.assign(Object.assign({}, data), { \n // Pass any custom attributes to HTML content\n html: data.html\n ? createHtml(data.html.element, data.html.attributes, htmlAttrInputs, htmlUrlParamInputs, htmlSlugParamInput)\n : null, \n // Pass any required query params with user values for relevant scripts\n scripts: data.scripts\n ? data.scripts.map((script) => (Object.assign(Object.assign({}, script), { url: formatUrl(script.url, script.params, scriptUrlParamInputs) })))\n : null });\n}\nexports.formatData = formatData;\n"],"names":["Object","defineProperty","exports","value","jsx_runtime_1","__webpack_require__","react_1","html","height","width","children","dataNtpc","useEffect","performance","mark","detail","feature","jsxs","Fragment","jsx","style","dangerouslySetInnerHTML","__html","currDataLayerName","__importDefault","mod","__esModule","sendGAEvent","GoogleAnalytics","script_1","props","gaId","dataLayerName","undefined","default","id","src","args","console","warn","window","push","third_party_capital_1","ThirdPartyScriptEmbed_1","apiKey","restProps","formattedProps","key","GoogleMapsEmbed","sendGTMEvent","GoogleTagManager","gtmId","auth","preview","dataLayer","gtmLayer","gtmAuth","gtmPreview","JSON","stringify","data","YouTubeEmbed","google_maps_embed_1","enumerable","get","youtube_embed_1","gtm_1","ga_1","scriptStrategy","server","client","idle","worker","scripts","stylesheets","map","script","url","strategy","pageview","fbq","FacebookPixel","router","useRouter","handleRouteChange","events","on","off","jsx_runtime","Script","concat","process","GA","event","page","GTM","HubspotTracking","type","defer","SegmentAnalytics","pageViewed","Promise","all","e","then","bind","m","Tracking","module","google_analytics_1","__rest","s","t","p","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","data_json_1","utils_1","_a","formatData","filterArgs","selectedArgs","inverse","keys","filter","includes","reduce","obj","formatUrl","params","slug","newUrl","URL","values","forEach","param","searchParams","set","toString","createHtml","element","attributes","htmlAttrArgs","urlQueryParamArgs","slugParamArg","formattedAttributes","assign","htmlAttributes","acc","name","userVal","defaultVal","finalVal","attrString","_b","_c","_d","_e","allScriptParams","Array","isArray","scriptUrlParamInputs","htmlUrlParamInputs","htmlSlugParamInput","slugParam","htmlAttrInputs"],"sourceRoot":""}