PageSourceSearch

https://ladygracecatamaran.com/wp-content/themes/white-whale/build/assets/ctaTracker-DAywJN_H.js?ver=DAywJN_H

js ladygracecatamaran.com collected 2026-10-07 23:55:27 UTC 2,754 bytes, 2 lines download raw bytes

1const m="click-cta",b=["booking_lightframe","internal_navigation","external_link","phone","email","form_submit"];function d(t){if(!t||typeof t.closest!="function")return{};const n=t.closest("[data-fhs-component-type]");return n?{component_type:n.getAttribute("data-fhs-component-type")||void 0,component_id:n.getAttribute("data-fhs-component-id")||void 0,pattern_id:n.getAttribute("data-fhs-pattern-id")||void 0}:{}}function l(t){if(!t||typeof t.getAttribute!="function")return null;const n=t.getAttribute("data-cta-type");if(!n||!b.includes(n))return null;const e=d(t),i=t.getAttribute("data-cta-label")||(t.textContent||"").trim().slice(0,200),a=t.getAttribute("data-cta-destination-url")||t.getAttribute("href")||t.getAttribute("formaction")||"",o=t.getAttribute("data-cta-destination-type")||g(a,n),u=t.getAttribute("data-cta-button-location")||void 0,s=t.getAttribute("data-cta-component-type")||e.component_type,f=t.getAttribute("data-cta-component-id")||e.component_id,p=t.getAttribute("data-cta-pattern-id")||e.pattern_id;return{component_type:s,component_id:f,pattern_id:p,cta_label:i,cta_type:n,button_location:u,destination_url:a,destination_type:o}}function g(t,n){if(n==="phone"||n==="email")return n;if(n==="booking_lightframe")return"item";if(!t||t.startsWith("#")||t.startsWith("javascript:"))return"unknown";try{return t.startsWith("mailto:")?"email":t.startsWith("tel:")?"phone":t.includes("fareharbor.com")?"item":new URL(t,window.location.origin).origin===window.location.origin?"page":"external"}catch{return"unknown"}}function y(t){const n=t.getAttribute("href")||"",e=(t.textContent||"").trim().slice(0,200),i=d(t),a={component_type:i.component_type,component_id:i.component_id,pattern_id:i.pattern_id,cta_label:t.getAttribute("data-cta-label")||e,cta_type:"booking_lightframe",button_location:t.getAttribute("data-cta-button-location"),destination_url:n,destination_type:"item"};return Object.fromEntries(Object.entries(a).filter(([,o])=>o!=null&&o!==""))}function r(t,n){if(typeof window>"u"||!window.fhsAnalytics?.track||!t)return;let e;if(n==="booking_lightframe")e=y(t);else if(e=l(t),!e)return;Object.keys(e).length!==0&&window.fhsAnalytics.track(m,e)}function c(){typeof document>"u"||(document.addEventListener("click",t=>{const n=t.target.closest("a[data-cta-type], button[data-cta-type]");n&&r(n)},!0),document.addEventListener("submit",t=>{const n=t.target,e=n.querySelector('[type="submit"][data-cta-type]')||n.querySelector("button[data-cta-type]");e&&r(e)},!0))}typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",c):c(),window.fhsAnalytics=window.fhsAnalytics||{},window.fhsAnalytics.trackCtaClick=r);
2//# sourceMappingURL=ctaTracker-DAywJN_H.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.