{"version":3,"sources":["jsdelivr-header.js","/gh/makebuild-code/typeform@1.0.30/src/t/js-t.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,CCLA,WACE,MAAM,EAAuB,CAC3B,CACE,QAAS,IAAuB,cAAjB,OAAO,MACtB,MAAO,CACL,kBAAmB,YACnB,QAAS,0BAGb,CACE,QAAS,IAAM,OAAO,SAAS,SAAS,WAAW,QACnD,MAAO,CACL,kBAAmB,iBAGvB,CACE,QAAS,IAAM,OAAO,SAAS,SAAS,WAAW,SACnD,MAAO,CACL,kBAAmB,SAGvB,CACE,QAAS,IAAmC,aAA7B,OAAO,SAAS,SAC/B,MAAO,CACL,kBAAmB,mBACnB,QAAS,0BAGb,CACE,QAAS,IAAM,OAAO,SAAS,SAAS,WAAW,qBACnD,MAAO,CACL,kBAAmB,mBACnB,QAAS,mCAGb,CACE,QAAS,KACP,MAAO,EAAG,GAAQ,OAAO,SAAS,SAAS,MAAM,KACjD,MAAgB,wBAAT,GAET,MAAO,KAEE,CACL,kBAAmB,mBACnB,QAAS,oCACT,6BAJsB,OAAO,SAAS,SAAS,MAAM,KAAK,MAQhE,CACE,QAAS,KACP,MAAO,EAAG,EAAM,GAAW,OAAO,SAAS,SAAS,MAAM,KAC1D,MAAgB,YAAT,GAAsB,GAAuB,aAAZ,GAE1C,MAAO,KAEE,CACL,kBAAmB,mBACnB,QAAS,4BACT,qBAJc,OAAO,SAAS,SAAS,MAAM,KAAK,MAQxD,CACE,QAAS,KACP,MAAM,EAAO,OAAO,SAAS,SAC7B,MAAgB,eAAT,GACA,EAAK,WAAW,gBAChB,EAAK,WAAW,yBAChB,EAAK,WAAW,6BAEzB,MAAO,CACL,kBAAmB,6BAqNzB,OAAO,eAhNP,WACE,IAAI,EAAiB,CAAC,EAEtB,MAAM,EAAmB,KACvB,MAAM,MAAE,GACN,EAAqB,KAAK,EAAG,aAAc,MAAc,CAAC,EACtD,EAAe,EACA,mBAAV,EACL,IACA,EACF,CAAC,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AAa,IAAI,EAAK,KAGvC,MAAM,EAAoB,OAAO,uBAC7B,GACF,EAAe,aAAa,IAC1B,OAAO,0BACP,GAIJ,MAAM,EAAuB,EAAe,WAE5C,GAAI,EACF,OAAO,OAAO,KAAK,EAAsB,GAE3C,OAAO,SAAW,CACpB,CAAE,MAAO,GACP,QAAQ,MAAM,sCAAuC,EACvD,GAGI,EAAoC,IACxC,MAAM,EAAY,GAAQ,SAM1B,MAAO,IALO,EAAU,iBAAiB,QACzB,EAAU,iBACxB,6CAME,EAAqB,GAAe,IACxC,GAAI,aAAgB,YAAa,CACP,EAAiC,GAEzC,QAAS,IACvB,GAAsB,WAAlB,EAAK,WAA0B,EAAK,aAAa,cACnD,OAKF,GAFoB,EAAa,IAAI,GAO/B,IACF,EAAK,oBAAoB,QAAS,EAAa,IAAI,IACnD,EAAa,OAAO,QAPN,CAChB,MAAM,EAAW,EAAgB,GACjC,EAAa,IAAI,EAAM,GACvB,EAAK,iBAAiB,QAAS,EACjC,GAOJ,GAG2B,IAAI,iBAAkB,IACjD,EAAU,QAAS,IACW,cAAxB,EAAe,OACjB,EAAe,WAAW,QAAQ,GAAkB,IACpD,EAAe,aAAa,QAAQ,GAAkB,SAKvC,QAAQ,SAAS,KAAM,CAC1C,WAAW,EACX,SAAS,IAGa,IAER,QAAS,IACvB,MAAM,EAAW,EAAgB,GACjC,EAAa,IAAI,EAAM,GACvB,EAAK,iBAAiB,QAAS,IAElC,CA1OD","file":"/gh/makebuild-code/typeform@1.0.30/src/t/js-t.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.48.0.\n * Original file: /gh/makebuild-code/typeform@1.0.30/src/t/js-t.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","// JS Tracking Helper\n(function trackingCLientHelperScope() {\n  const viewPagePropsMapping = [\n    {\n      isMatch: () => window.title === \"Not Found\",\n      props: {\n        typeform_property: \"404_pages\",\n        section: \"public_site_not_found\",\n      },\n    },\n    {\n      isMatch: () => window.location.pathname.startsWith(\"/try\"),\n      props: {\n        typeform_property: \"landing_page\",\n      },\n    },\n    {\n      isMatch: () => window.location.pathname.startsWith(\"/blog\"),\n      props: {\n        typeform_property: \"blog\",\n      },\n    },\n    {\n      isMatch: () => window.location.pathname === \"/connect\",\n      props: {\n        typeform_property: \"typeform_connect\",\n        section: \"typeform_connect_home\",\n      },\n    },\n    {\n      isMatch: () => window.location.pathname.startsWith(\"/connect-category\"),\n      props: {\n        typeform_property: \"typeform_connect\",\n        section: \"typeform_connect_category_page\",\n      },\n    },\n    {\n      isMatch: () => {\n        const [_, path] = window.location.pathname.split(\"/\");\n        return path === \"connect-integration\";\n      },\n      props: () => {\n        const integrationSlug = window.location.pathname.split(\"/\")[2];\n        return {\n          typeform_property: \"typeform_connect\",\n          section: \"typeform_connect_integration_page\",\n          typeform_connect_integration: integrationSlug,\n        };\n      },\n    },\n    {\n      isMatch: () => {\n        const [_, path, appSlug] = window.location.pathname.split(\"/\");\n        return path === \"connect\" && appSlug && appSlug !== \"category\";\n      },\n      props: () => {\n        const appSlug = window.location.pathname.split(\"/\")[2];\n        return {\n          typeform_property: \"typeform_connect\",\n          section: \"typeform_connect_app_page\",\n          typeform_connect_app: appSlug,\n        };\n      },\n    },\n    {\n      isMatch: () => {\n        const path = window.location.pathname;\n        return path === \"/templates\" || // exact match for landing page\n               path.startsWith(\"/templates/\") ||\n               path.startsWith(\"/templates-category/\") ||\n               path.startsWith(\"/templates-sub-category/\");\n      },\n      props: {\n        typeform_property: \"public_template_gallery\",\n      },\n    },\n  ];\n\n  function createTrackingHelper() {\n    let _viewPageProps = {};\n\n    const getViewPageProps = () => {\n      const { props } =\n        viewPagePropsMapping.find(({ isMatch }) => isMatch()) || {};\n      const matchedProps = props\n        ? typeof props === \"function\"\n          ? props()\n          : props\n        : {};\n      return {\n        typeform_property: \"public_site\",\n        ..._viewPageProps,\n        ...matchedProps,\n      };\n    };\n\n    const log = (...args) => {\n      window.__DEBUG_TRACKING__ && console.trace(...args);\n    };\n\n    return {\n      getViewPageProps: getViewPageProps,\n      setPageTrackingProps: (props) => {\n        _viewPageProps = {\n          ..._viewPageProps,\n          ...props,\n        };\n      },\n      snakeCase: (value) => {\n        const words =\n          value\n            // between lower & upper\n            .replace(/([a-z])([A-Z])/g, \"$1 $2\")\n            // between number & letter\n            .replace(/(\\d)([A-Za-z])/g, \"$1 $2\")\n            .replace(/([A-Za-z])(\\d)/g, \"$1 $2\")\n            // before last upper in a sequence followed by lower\n            .replace(/\\b([A-Z]+)([A-Z])([a-z])/, \"$1 $2$3\")\n            .match(/[A-Za-z0-9]+/g) ?? [];\n\n        return words.map((value) => value.toLowerCase()).join(\"_\");\n      },\n      getTypeformVersion: () => {\n        return isMobile.any ? \"mobile\" : \"v2\";\n      },\n      getPage: () => {\n        return window.location.origin + window.location.pathname;\n      },\n      getMandatoryProperties: () => {\n        const viewPageProps = getViewPageProps();\n        return {\n          category: \"public_site\",\n          typeform_version: window.trackingHelper.getTypeformVersion(),\n          unique_pageview_id: uuidv4(),\n          unique_sectionview_id: uuidv4(),\n          attribution_user_id: window.getAttributionUserId(),\n          page: window.trackingHelper.getPage(),\n          tracking_session_id: Cookies.get(\"tracking_session_id\"),\n          event_owner: \"site_team\",\n          ...viewPageProps,\n          // country: {countryCode},\n        };\n      },\n      trackViewPageSection: (data) => {\n        const props = {\n          page: window.location.href,\n          title: document.title,\n          ...window.trackingHelper.getMandatoryProperties(),\n          ...(data || {}),\n        };\n\n        trackingClient.trackViewPageSection(props);\n\n        log(\"view_page_section\", props);\n      },\n      trackEvent: (eventName, data) => {\n        const props = {\n          ...window.trackingHelper.getMandatoryProperties(),\n          ...data,\n        };\n\n        trackingClient.sendEvent(eventName, props);\n\n        log(eventName, props);\n      },\n      trackItemClicked: (trackingData) => {\n        const { link_url: rawLinkUrl } = trackingData;\n        const link_url = rawLinkUrl\n          ? rawLinkUrl.replace(window.location.origin, \"\")\n          : undefined;\n\n        const props = {\n          ...window.trackingHelper.getMandatoryProperties(),\n          ...trackingData,\n          link_url,\n        };\n\n        trackingClient.trackItemClicked(props);\n        log(\"item_clicked\", props);\n      },\n      trackMessageShown: (trackingData) => {\n        const props = {\n          ...window.trackingHelper.getMandatoryProperties(),\n          ...trackingData,\n        };\n\n        trackingClient.trackMessageShown(props);\n        log(\"message_shown\", props);\n      },\n      trackTmpItemClicked: (item, props) => {\n        const trackingProps = {\n          ...window.trackingHelper.getMandatoryProperties(),\n          item,\n          test_id: \"all\",\n          ...props,\n        };\n        trackingClient.trackTmpItemClicked(trackingProps);\n        log(\"tmp_item_clicked\", props);\n      },\n      trackLogin: (url, label, location = \"\", itemType = \"link\") => {\n        window.trackingHelper.trackItemClicked({\n          item: \"login\",\n          item_type: itemType,\n          link_url: url,\n          label: window.trackingHelper.snakeCase(label),\n          product: \"typeform\",\n          ...(location && { location }),\n        });\n      },\n      trackSignup: (url, label, location = \"\", itemType = \"link\") => {\n        window.trackingHelper.trackItemClicked({\n          item: \"sign_up\",\n          item_type: itemType,\n          link_url: url,\n          label: window.trackingHelper.snakeCase(label),\n          product: \"typeform\",\n          ...(location && { location }),\n        });\n      },\n      trackContactSales: (url, label, location = \"\", itemType = \"button\") => {\n        window.trackingHelper.trackItemClicked({\n          item: \"contact_sales\",\n          item_type: itemType,\n          link_url: url,\n          label: window.trackingHelper.snakeCase(label),\n          pricing_version: \"3.1\",\n          ...(location && { location }),\n        });\n      },\n      trackPageNavigated: (props) => {\n        const documentHeight = document.body.offsetHeight - window.innerHeight;\n        const scrollPercentage = window.scrollY / documentHeight;\n\n        window.trackingHelper.trackEvent(\"page_navigated\", {\n          item: \"scroll\",\n          ...props,\n          location_depth: scrollPercentage,\n        });\n      },\n      trackExperimentViewed: (props) => {\n        const state = window.optimizely?.get('state');\n        if (!state) {\n          return;\n        }\n\n        const activeExperiments = state.getActiveExperimentIds();\n        const userContext = window.optimizely?.get('visitor');\n        \n        // Track an event for each active experiment\n        activeExperiments.forEach(experimentId => {\n          const experiment = state.getExperimentStates()[experimentId];\n          if (experiment) {\n            // Get active campaign states\n            const campaignStates = window.optimizely.get('state').getCampaignStates({ isActive: true });\n            \n            // Find the campaign that contains our experiment\n            const campaign = Object.values(campaignStates).find(c => \n              c.experiment && c.experiment.id === experimentId\n            );\n            \n            if (campaign && !campaign.isInCampaignHoldback) {\n              const eventData = {\n                experiment_id: experimentId,\n                experiment_name: campaign.experiment.name,\n                variation_id: campaign.variation.id,\n                variation_name: campaign.variation.name,\n                optimizely_user_id_fingerprint: window.optimizely?.get('visitor')?.visitorId\n              };\n              \n              window.trackingHelper.trackEvent(\"experiment_viewed\", eventData);\n            }\n          }\n        });\n      },\n      trackSearchQueryEntered: (data) => {\n        const props = {\n          ...window.trackingHelper.getMandatoryProperties(),\n          ...data,\n        };\n\n        trackingClient.trackSearchQueryEntered(props);\n        log(\"search_query_entered\", props);\n      },\n    };\n  }\n\n  window.trackingHelper = createTrackingHelper();\n\n  window.dispatchEvent(new Event(\"tracking-helper:loaded\"));\n})();\n\n// Init JS Tracking\n(function jsTrackingInitScope() {\n  let hasPageTracked = false;\n  let hasTrackingInitialized = false;\n\n  // The backend pageview covers visitors without performance consent, where\n  // Segment never initializes and no view_page_section is sent. It must not\n  // fire for visitors who DO have performance consent, or the pageview is\n  // counted twice.\n  //\n  // OneTrust publishes consent in phases. Traced on a cold US load:\n  //\n  //   t=978   OnetrustActiveGroups undefined, no OptanonConsent cookie\n  //   t=3308  OnetrustActiveGroups \",,\"          <- resolves to NO consent\n  //   t=4422  OnetrustActiveGroups \",1,2,3,4,\"   <- auto-grant lands\n  //\n  // For ~1.1s the group list exists but is empty, so hasPerformanceConsent()\n  // reports false for a visitor who is about to have it. Deciding in that\n  // window sends the backend pageview and latches hasPageTracked; Segment\n  // then initializes on the next phase and sends view_page_section too.\n  //\n  // Note the eager initTracking() call below cannot simply be dropped to\n  // avoid this. js-t.js is injected as type=\"cc-ext-hosted-script\" and only\n  // executes when the consent extension activates it at DOMContentLoaded.\n  // When OneTrust resolves first (measured: events at 556ms and 816ms,\n  // js-t.js active at 817ms) the listener is registered too late to ever\n  // receive one, and without the eager call tracking never initializes at\n  // all. So keep the eager call and make the pageview decision wait instead.\n  const CONSENT_POLL_MS = 100;\n  const CONSENT_TIMEOUT_MS = 5000;\n  let backendPageviewScheduled = false;\n\n  function isConsentResolved() {\n    // Returning visitor: their stored choice is already readable.\n    if (consentUtil.hasConsentCookie()) return true;\n\n    const groups = window.OnetrustActiveGroups;\n    return typeof groups === \"string\" && groups.replace(/,/g, \"\") !== \"\";\n  }\n\n  function sendBackendPageview() {\n    if (hasPageTracked) return;\n\n    // Re-read rather than trusting the pass that scheduled this: that is the\n    // whole point of waiting.\n    if (consentUtil.hasPerformanceConsent()) return;\n\n    hasPageTracked = true;\n    const viewPageProps = window.trackingHelper.getViewPageProps();\n\n    fetch(\"https://www.typeform.com/api/v2/track/page/\", {\n      method: \"POST\",\n      headers: {\n        \"Content-Type\": \"application/json\",\n      },\n      body: JSON.stringify({\n        typeformProperty:\n          (viewPageProps && viewPageProps.typeform_property) || \"public_site\",\n        title: document.title,\n        url: window.location.href,\n        referrer: document.referrer,\n        userAgent: navigator.userAgent,\n        typeformVersion: window.trackingHelper.getTypeformVersion(),\n        attributionUserId: window.getAttributionUserId(),\n        locale: navigator.language,\n      }),\n    }).catch(() => {});\n  }\n\n  function scheduleBackendPageview() {\n    if (backendPageviewScheduled) return;\n    backendPageviewScheduled = true;\n\n    // The timeout covers OneTrust being blocked outright: the group list\n    // never appears, and that visitor genuinely has no consent.\n    const deadline = Date.now() + CONSENT_TIMEOUT_MS;\n\n    (function waitForConsent() {\n      if (hasPageTracked) return;\n\n      if (isConsentResolved() || Date.now() >= deadline) {\n        sendBackendPageview();\n        return;\n      }\n\n      setTimeout(waitForConsent, CONSENT_POLL_MS);\n    })();\n  }\n  function initTracking() {\n    // Now you can run following consentUtil check the exact consent.\n    // Script tags above adds consentUtil helper to global window\n\n    // TargetingConsent\n    const hasTargetingConsent = consentUtil.hasTargetingConsent();\n\n    // FunctionalConsent\n    const hasFunctionalConsent = consentUtil.hasFunctionalConsent();\n\n    // Performance Consent\n    const hasPerformanceConsent = consentUtil.hasPerformanceConsent();\n\n    const canInitializeTracking = hasPerformanceConsent;\n\n    if (hasTargetingConsent && !document.getElementById(\"clearbit\")) {\n      const clearbitScript = document.createElement(\"script\");\n      clearbitScript.id = \"clearbit\";\n      clearbitScript.innerHTML = `!function(w){var clearbit=w.clearbit=w.clearbit||[];if(!clearbit.initialize)if(clearbit.invoked)w.console&&console.error&&console.error(\"Clearbit snippet included twice.\");else{clearbit.invoked=!0;clearbit.methods=[\"trackSubmit\",\"trackClick\",\"trackLink\",\"trackForm\",\"pageview\",\"identify\",\"reset\",\"group\",\"track\",\"ready\",\"alias\",\"page\",\"once\",\"off\",\"on\"];clearbit.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);clearbit?.push?.(e);return clearbit}};for(var t=0;t<clearbit.methods.length;t++){var e=clearbit.methods[t];clearbit[e]=clearbit.factory(e)}clearbit.load=function(t){var e=document.createElement(\"script\");e.async=!0;e.src=(\"https:\"===document.location.protocol?\"https://\":\"http://\")+\"x.clearbitjs.com/v1/\"+t+\"/clearbit.js\";var n=document.getElementsByTagName(\"script\")[0];n.parentNode.insertBefore(e,n)};clearbit.SNIPPET_VERSION=\"3.1.0\"; clearbit.load(\"pk_76b17f79dd398468af3f36d637ba1002\"); clearbit.page(); }}(window);`;\n\n      document.body.appendChild(clearbitScript);\n    }\n\n    if (!canInitializeTracking) {\n      scheduleBackendPageview();\n    }\n\n    // For eg. initialize tracking when we have functional consent\n    if (\n      canInitializeTracking &&\n      !trackingClient.isInitialized(\"segment\") &&\n      !hasTrackingInitialized\n    ) {\n      attributionUtil.default.generateUser(\n        \".typeform.com\",\n        window.getAttributionUserId()\n      );\n      \n      // Determine which Segment key to use based on hostname\n      const isDevelopment = window.location.hostname === 'www.web-team.tfdev.typeform.com';\n      const segmentKey = isDevelopment\n        ? 'N4DrQC6NYcQXbJZo6iAU2QLSymJGMQkI'  // Segment Dev key\n        : '13PRPoCAmemn6i0qZSq8pnKYbRZ57rTB';  // Segment Prod Key\n\n      trackingClient.default.init(\n        segmentKey,\n        trackingHelper.getMandatoryProperties(),\n        {\n          integrations: {\n            All: true,\n          },\n        },\n        \"GTM-WH2ZQ3X\" // GTM_ID\n      );\n\n      if (!window.analytics) return;\n\n      // Segment source middleware: stitch the $impression event's anonymousId\n      // to our own attribution_user_id cookie so Amplitude's device_id lines\n      // up with the rest of the user's stitched journey. See:\n      // https://www.twilio.com/docs/segment/connections/sources/catalog/libraries/website/javascript/middleware\n      if (\n        typeof window.analytics.addSourceMiddleware === \"function\" &&\n        !window.__segmentImpressionMiddlewareRegistered\n      ) {\n        window.analytics.addSourceMiddleware(({ payload, next }) => {\n          const event = payload.obj;\n          const attributionId = window.getAttributionUserId\n            ? window.getAttributionUserId()\n            : null;\n\n          if (\n            event?.type === \"track\" &&\n            event?.event === \"$impression\" &&\n            attributionId\n          ) {\n            event.anonymousId = attributionId;\n          }\n\n          next(payload);\n        });\n\n        window.__segmentImpressionMiddlewareRegistered = true;\n        window.dispatchEvent(new Event(\"segment-impression-middleware:ready\"));\n      }\n\n      window.analytics.ready(() => {\n        hasTrackingInitialized = true;\n        window.trackingHelper.trackViewPageSection();\n\n        // Function to track active experiments\n        const trackActiveExperiments = () => {\n          const state = window.optimizely?.get('state');\n          const activeExperiments = state?.getActiveExperimentIds() || [];\n          \n          if (activeExperiments.length > 0) {\n            const campaignStates = state.getCampaignStates({ isActive: true });\n            \n            activeExperiments.forEach(experimentId => {\n              const campaign = Object.values(campaignStates).find(c => \n                c.experiment && c.experiment.id === experimentId\n              );\n              \n              if (campaign && !campaign.isInCampaignHoldback) {\n                const eventData = {\n                  experiment_id: experimentId,\n                  experiment_name: campaign.experiment.name,\n                  variation_id: campaign.variation.id,\n                  variation_name: campaign.variation.name,\n                  optimizely_user_id_fingerprint: window.optimizely?.get('visitor')?.visitorId\n                };\n                \n                window.trackingHelper.trackEvent(\"experiment_viewed\", eventData);\n              }\n            });\n          }\n        };\n\n        // Add Optimizely initialization check and tracking\n        if (window.optimizely) {\n          // Track any already-active experiments\n          trackActiveExperiments();\n\n          // Add listener for future activations\n          window.optimizely.push({\n            type: \"addListener\",\n            handler: function(event) {\n              if (event.type === 'lifecycle' && \n                  (event.name === 'activateDeferredDone' || event.name === 'activated')) {\n                trackActiveExperiments();\n              }\n            }\n          });\n        }\n\n        if (window.reveal) {\n          const { company } = window.reveal;\n\n          if (company) {\n            // Override default encoder\n            const cookies = Cookies.withConverter({\n              write: (value = {}) => JSON.stringify(value),\n            });\n\n            cookies.set(\n              \"clearbit-reveal\",\n              {\n                employees: company.metrics.employees,\n              },\n              {\n                domain: \".typeform.com\",\n              }\n            );\n          }\n        }\n      });\n    }\n  }\n\n  function handleRejectCookies() {\n    window.cookiesUtil.deleteAllNonStrictlyNecessaryCookies();\n\n    // Cello attribution library sets all of its cookies twice for both .typeform.com and www.typeform.com domain\n    // .typeform.com cookies can be deleted via js-tracking util but not www.typeform.com domain cookies.\n    // Therefore, we need to delete cello related cookies our selves without touching other ones.\n    // We have raised the issue to Cello and we will clean this code when they fix this issue on their side\n    const allLeftOverCookies = Object.keys(Cookies.get());\n    const celloCookies = allLeftOverCookies.filter((cookie) =>\n      cookie.includes(\"cello-\")\n    );\n\n    celloCookies.forEach((celloCookie) => {\n      Cookies.remove(celloCookie);\n    });\n  }\n\n  window.addEventListener(\"OneTrustGroupsUpdated\", initTracking);\n  window.addEventListener(\"oneTrustCookiesRejected\", handleRejectCookies);\n  initTracking();\n})();\n\n// Tracking With Attributes Helper\n(function initTrackingWithAttributesHelper() {\n  // cc-t- prefixed attributes are used to for custom properties while tracking events\n  function getTrackingAttributes(element) {\n    const attributes = Array.from(element.attributes).reduce((acc, attr) => {\n      if (attr.name.startsWith(\"cc-t-\")) {\n        // Skip utility attributes\n        if (attr.name.startsWith(\"cc-t-utility-\")) {\n          return acc;\n        }\n        acc[attr.name.replace(\"cc-t-\", \"\")] = attr.value;\n      }\n      return acc;\n    }, {});\n\n    // Only look for parent section if this is an item_clicked event or has event tracking\n    if (!attributes.location && (attributes.item || attributes.event)) {\n      const parentSection = element.closest('section[id]');\n      if (parentSection && parentSection.id) {\n        attributes.location = parentSection.id;\n      }\n    }\n\n    return attributes;\n  }\n\n  window.trackElementWithAttributes = function trackElementWithAttributes(\n    element\n  ) {\n    const {\n      event,\n      in_view,\n      in_view_allow_multipe,\n      \"global-skip\": globalSkip,\n      ...trackingData\n    } = getTrackingAttributes(element);\n\n    if (event === \"item_clicked\") {\n      if (!trackingData.item) {\n        console.warn(\"Item attribute is required for tracking\");\n        return;\n      }\n\n      window.trackingHelper.trackItemClicked({\n        ...trackingData,\n        link_url: trackingData.link || element.href,\n        item_type: trackingData.item_type || \"link\",\n        label:\n          element.getAttribute(\"cc-t-utility-snake_case\") === \"off\"\n            ? trackingData.label || element.textContent || \"\"\n            : window.trackingHelper.snakeCase(\n                trackingData.label || element.textContent || \"\"\n              ),\n      });\n\n      return;\n    }\n\n    if (in_view === \"true\" && !event) {\n      window.trackingHelper.trackPageNavigated(trackingData);\n      return;\n    }\n\n    if (!event) {\n      return;\n    }\n\n    window.trackingHelper.trackEvent(event, trackingData);\n  };\n\n  // cc-t-in_view attribute is used to track when an element is in view\n  const inViewElements = document.querySelectorAll(\"[cc-t-in_view]\");\n\n  const observer = new IntersectionObserver(\n    (entries) => {\n      entries.forEach((entry) => {\n        if (entry.isIntersecting) {\n          const delay = entry.target.getAttribute(\"cc-t-in_view_delay\");\n\n          // If delay attribute exists, wait before tracking\n          if (delay) {\n            const timeoutId = setTimeout(() => {\n              // Only track if element is still in view after delay\n              if (entry.target.getAttribute(\"data-in-view\") === \"true\") {\n                window.trackElementWithAttributes(entry.target);\n\n                // Get the attribute value, default to \"false\" if not present\n                const allowMultiple = entry.target.getAttribute(\"cc-t-in_view_allow_multipe\") === \"true\";\n                if (!allowMultiple) {\n                  observer.unobserve(entry.target);\n                }\n              }\n            }, parseFloat(delay) * 1000);\n\n            // Store timeout ID to clear if element leaves view\n            entry.target.setAttribute(\"data-timeout-id\", timeoutId);\n            entry.target.setAttribute(\"data-in-view\", \"true\");\n          } else {\n            // Original behavior for elements without delay\n            window.trackElementWithAttributes(entry.target);\n\n            // Get the attribute value, default to \"false\" if not present\n            const allowMultiple = entry.target.getAttribute(\"cc-t-in_view_allow_multipe\") === \"true\";\n            if (!allowMultiple) {\n              observer.unobserve(entry.target);\n            }\n          }\n        } else {\n          // Clear timeout and in-view state when element leaves viewport\n          const timeoutId = entry.target.getAttribute(\"data-timeout-id\");\n          if (timeoutId) {\n            clearTimeout(parseInt(timeoutId));\n            entry.target.removeAttribute(\"data-timeout-id\");\n          }\n          entry.target.setAttribute(\"data-in-view\", \"false\");\n        }\n      });\n    },\n    {\n      threshold: 0,\n      rootMargin: \"0px\",\n    }\n  );\n\n  inViewElements.forEach((element) => {\n    observer.observe(element);\n  });\n})();\n\n// Global Link Interceptor\n(function linkInterceptorScope() {\n  const HOSTNAMES_ALLOWLIST = [\"typeform.com\"];\n  const HOSTNAMES_BLOCKLIST = [\"auth.typeform.com\"];\n\n  const SEARCH_PARAMS_ALLOWLIST = [\n    \"utm_source\",\n    \"utm_medium\",\n    \"utm_campaign\",\n    \"utm_term\",\n    \"utm_content\",\n    \"tf_source\",\n    \"tf_medium\",\n    \"tf_campaign\",\n    \"tf_term\",\n    \"tf_content\",\n    \"referrer\",\n    \"redirect_uri\",\n    \"dev\",\n    \"gspk\",\n    \"gsxid\",\n    window.ATTRIBUTION_ID_GLOBAL_KEY,\n  ];\n  const listenersMap = new Map();\n\n  const getCurrentSearchParams = () => {\n    const currentUrl = new URL(window.location.href);\n    const entries = [...currentUrl.searchParams.entries()];\n\n    return entries.filter(([key]) => {\n      return SEARCH_PARAMS_ALLOWLIST.includes(key);\n    });\n  };\n\n  const isAllowedHostname = (hostname = \"\") => {\n    const isBlocked = HOSTNAMES_BLOCKLIST.some((hn) => hn === hostname);\n    if (isBlocked) {\n      return false;\n    }\n\n    return HOSTNAMES_ALLOWLIST.some((hn) => hostname.endsWith(hn));\n  };\n  const hasKeyPressed = (event) => {\n    return [\"ctrlKey\", \"shiftKey\", \"altKey\", \"metaKey\"].some(\n      (key) => event[key] === true\n    );\n  };\n  const handleLinkClick = (link) => (event) => {\n    const linkHref = link.href;\n    const linkHrefAttribute = link.getAttribute(\"href\");\n    const linkText = link.innerText;\n    const targetHref = event?.target?.href;\n    const linkTarget = link?.target;\n    const targetTarget = event?.target?.target;\n    const href = linkHref || targetHref;\n    const anchorTarget = linkTarget || targetTarget;\n\n    // Check both self and parent for skip attribute\n    const shouldSkipGlobal =\n      link.getAttribute(\"cc-t-global-skip\") === \"self\" ||\n      link.closest('[cc-t-global-skip=\"children\"]') !== null;\n\n    // Only run global helper tracking if neither skip condition is met\n    if (!shouldSkipGlobal) {\n      // login tracking (excluding logout)\n      if (\n        linkHref &&\n        linkHref.includes(\"login\") &&\n        !linkHref.includes(\"login/logout\")\n      ) {\n        const location = link.getAttribute(\"cc-t-location\") || \"\";\n        const itemType = link.getAttribute(\"cc-t-item_type\") || \"link\";\n        window.trackingHelper.trackLogin(linkHref, linkText || \"\", location, itemType);\n      }\n\n      // signup tracking\n      const getSignupUrls = () => {\n        const domains = [\n          'www.typeform.com',\n          'www.web-team.tfdev.typeform.com',\n          'admin.typeform.com'\n        ];\n        \n        return domains.flatMap(domain => [\n          `https://${domain}/signup/`,\n          `https://${domain}/signup`,\n          `https://${domain}/signup-email/`,\n          `https://${domain}/signup-email`\n        ]).concat(['/signup/', '/signup', '/signup-email/', '/signup-email']); // Include relative paths\n      };\n\n      const signupUrls = getSignupUrls();\n      if (linkHref) {\n        try {\n          const url = new URL(linkHref);\n          const matchesSignup = signupUrls.some(signupUrl => {\n            // Handle relative paths\n            if (signupUrl.startsWith('/')) {\n              return url.pathname === signupUrl || url.pathname === signupUrl.slice(0, -1);\n            }\n            // Handle absolute URLs\n            return url.origin + url.pathname === signupUrl || url.origin + url.pathname === signupUrl.slice(0, -1);\n          });\n\n          if (matchesSignup) {\n            const location = link.getAttribute(\"cc-t-location\") || \"\";\n            const itemType = link.getAttribute(\"cc-t-item_type\") || \"link\";\n            window.trackingHelper.trackSignup(linkHref, linkText || \"\", location, itemType);\n          }\n        } catch (e) {\n          // Handle invalid URLs silently\n          //console.debug('Invalid URL in signup tracking:', e);\n        }\n      }\n\n      // contactSales tracking\n      if (linkHref && linkHref.includes(\"tfsales.typeform.com/to/PxcVKQGb\")) {\n        const location = link.getAttribute(\"cc-t-location\") || \"\";\n        const itemType = link.getAttribute(\"cc-t-item_type\") || \"button\";\n        window.trackingHelper.trackContactSales(linkHref, linkText || \"\", location, itemType);\n      }\n    }\n\n    // Always run attribute-specific tracking\n    window.trackElementWithAttributes(link);\n\n    if (link.nodeName === \"BUTTON\") {\n      return;\n    }\n\n    // If the user had pressed a key when they click on a link then we'll use native link behaviour\n    if (hasKeyPressed(event)) {\n      return;\n    }\n\n    try {\n      // Links without an href attribute\n      if (!linkHref) {\n        return;\n      }\n\n      // If the link is to an anchor on the same page, then we'll use native link behaviour\n      if (linkHref.startsWith(\"#\") || linkHrefAttribute.startsWith(\"#\")) {\n        return;\n      }\n\n      const destinationUrl = new URL(href);\n\n      // If the link goes outside of typeform.com then we'll use native link behaviour\n      if (!isAllowedHostname(destinationUrl.hostname)) {\n        return;\n      }\n\n      event.preventDefault();\n\n      const currentSearchParams = getCurrentSearchParams();\n      currentSearchParams.forEach(([key, value]) => {\n        destinationUrl.searchParams.set(key, value);\n      });\n\n      const attributionUserId = window.getAttributionUserId();\n      if (attributionUserId) {\n        destinationUrl.searchParams.set(\n          window.ATTRIBUTION_ID_GLOBAL_KEY,\n          attributionUserId\n        );\n      }\n\n      const destinationUrlString = destinationUrl.toString();\n      // If we have a target value, then use it, otherwise change navigate in the same window.\n      if (anchorTarget) {\n        return window.open(destinationUrlString, anchorTarget);\n      }\n      window.location = destinationUrlString;\n    } catch (e) {\n      console.error(\"Error while intercepting link click\", e);\n    }\n  };\n\n  const getAllLinksAndButtonsToIntercept = (node) => {\n    const container = node || document;\n    const links = container.querySelectorAll(\"a\");\n    const buttons = container.querySelectorAll(\n      'button[cc-t-event]:not([cc-t-event=\"\"])'\n    );\n\n    return [...links, ...buttons];\n  };\n\n  const handleMutatedNode = (isRemoved) => (node) => {\n    if (node instanceof HTMLElement) {\n      const linksAndButtons = getAllLinksAndButtonsToIntercept(node);\n\n      linksAndButtons.forEach((link) => {\n        if (link.nodeName === \"BUTTON\" && !link.hasAttribute(\"cc-t-event\")) {\n          return;\n        }\n\n        const hasListener = listenersMap.has(link);\n\n        if (!hasListener) {\n          const listener = handleLinkClick(link);\n          listenersMap.set(link, listener);\n          link.addEventListener(\"click\", listener);\n        } else {\n          if (isRemoved) {\n            link.removeEventListener(\"click\", listenersMap.get(link));\n            listenersMap.delete(link);\n          }\n        }\n      });\n    }\n  };\n\n  const linkMutationObserver = new MutationObserver((mutations) => {\n    mutations.forEach((mutationRecord) => {\n      if (mutationRecord.type === \"childList\") {\n        mutationRecord.addedNodes.forEach(handleMutatedNode(false));\n        mutationRecord.removedNodes.forEach(handleMutatedNode(true));\n      }\n    });\n  });\n\n  linkMutationObserver.observe(document.body, {\n    childList: true,\n    subtree: true,\n  });\n\n  const linksAndButtons = getAllLinksAndButtonsToIntercept();\n\n  linksAndButtons.forEach((link) => {\n    const listener = handleLinkClick(link);\n    listenersMap.set(link, listener);\n    link.addEventListener(\"click\", listener);\n  });\n})();\n"]}