{"version":3,"file":"PhoneEmailLinkTracking.DIt2iT3p.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","Image","p","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/FvI1sVTCkb0xMxkBvBTG/xmNgjfsHtMItxAdVdIGj/pZjgOYdF0.js","https:/framerusercontent.com/modules/Xx7aFqBkyY0JbpKAdstw/LIRVf6lLoyxrCmDIS3js/PhoneEmailLinkTracking.js"],"sourcesContent":["// Generated by Framer (ff07650)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getLoadingLazyAtYPosition,Image,Link,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const cycleOrder=[\"JZu7zygQs\",\"ZFca5LQ2G\",\"EEciQugP9\",\"nF1TEu5tJ\"];const serializationHash=\"framer-42zyU\";const variantClassNames={EEciQugP9:\"framer-v-12snuk9\",JZu7zygQs:\"framer-v-1pv9u73\",nF1TEu5tJ:\"framer-v-1tocr32\",ZFca5LQ2G:\"framer-v-bf2wkw\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={\"150px\":\"nF1TEu5tJ\",\"250px\":\"EEciQugP9\",\"350px\":\"ZFca5LQ2G\",\"550px\":\"JZu7zygQs\"};const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"JZu7zygQs\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"JZu7zygQs\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(Link,{href:{webPageId:\"augiA20Il\"},motionChild:true,nodeId:\"JZu7zygQs\",openInNewTab:false,scopeId:\"pZjgOYdF0\",children:/*#__PURE__*/_jsx(Image,{...restProps,...gestureHandlers,as:\"a\",background:{alt:\"Accurate Realty & Management LLC Logo\",fit:\"fill\",loading:getLoadingLazyAtYPosition(componentViewport?.y||0),pixelHeight:201,pixelWidth:550,sizes:componentViewport?.width||\"100vw\",src:\"https://framerusercontent.com/images/G1Ot45PoIQhm7s55fC34k3ppmq8.webp?width=550&height=201\",srcSet:\"https://framerusercontent.com/images/G1Ot45PoIQhm7s55fC34k3ppmq8.webp?scale-down-to=512&width=550&height=201 512w,https://framerusercontent.com/images/G1Ot45PoIQhm7s55fC34k3ppmq8.webp?width=550&height=201 550w\"},className:`${cx(scopingClassNames,\"framer-1pv9u73\",className,classNames)} framer-1y69pkk`,\"data-framer-name\":\"550px\",layoutDependency:layoutDependency,layoutId:\"JZu7zygQs\",ref:refBinding,style:{...style},...addPropertyOverrides({EEciQugP9:{\"data-framer-name\":\"250px\",background:{alt:\"Accurate Realty & Management LLC Logo\",fit:\"fill\",loading:getLoadingLazyAtYPosition(componentViewport?.y||0),pixelHeight:91,pixelWidth:250,src:\"https://framerusercontent.com/images/P0e0fntuThJnU57Ari3GcFCCk.webp?width=250&height=91\"}},nF1TEu5tJ:{\"data-framer-name\":\"150px\",background:{alt:\"Accurate Realty & Management LLC Logo\",fit:\"fill\",loading:getLoadingLazyAtYPosition(componentViewport?.y||0),pixelHeight:55,pixelWidth:150,src:\"https://framerusercontent.com/images/muCfW9PvIfbi94lWlgewepKIBfY.webp?width=150&height=55\"}},ZFca5LQ2G:{\"data-framer-name\":\"350px\",background:{alt:\"Accurate Realty & Management LLC Logo\",fit:\"fill\",loading:getLoadingLazyAtYPosition(componentViewport?.y||0),pixelHeight:128,pixelWidth:350,src:\"https://framerusercontent.com/images/Lh8M6Cwlo4fi76o3J1T5ui4c0Y.webp?width=350&height=128\"}}},baseVariant,gestureVariant)})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-42zyU.framer-1y69pkk, .framer-42zyU .framer-1y69pkk { display: block; }\",\".framer-42zyU.framer-1pv9u73 { gap: 10px; height: 183px; overflow: hidden; position: relative; text-decoration: none; width: 550px; }\",\".framer-42zyU.framer-v-bf2wkw.framer-1pv9u73 { aspect-ratio: 2.736318407960199 / 1; height: var(--framer-aspect-ratio-supported, 128px); width: 350px; }\",\".framer-42zyU.framer-v-12snuk9.framer-1pv9u73 { aspect-ratio: 2.736318407960199 / 1; height: var(--framer-aspect-ratio-supported, 91px); width: 250px; }\",\".framer-42zyU.framer-v-1tocr32.framer-1pv9u73 { aspect-ratio: 2.736318407960199 / 1; height: var(--framer-aspect-ratio-supported, 55px); width: 150px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 201\n * @framerIntrinsicWidth 550\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"ZFca5LQ2G\":{\"layout\":[\"fixed\",\"fixed\"]},\"EEciQugP9\":{\"layout\":[\"fixed\",\"fixed\"]},\"nF1TEu5tJ\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerpZjgOYdF0=withCSS(Component,css,\"framer-42zyU\");export default FramerpZjgOYdF0;FramerpZjgOYdF0.displayName=\"Logo\";FramerpZjgOYdF0.defaultProps={height:201,width:550};addPropertyControls(FramerpZjgOYdF0,{variant:{options:[\"JZu7zygQs\",\"ZFca5LQ2G\",\"EEciQugP9\",\"nF1TEu5tJ\"],optionTitles:[\"550px\",\"350px\",\"250px\",\"150px\"],title:\"Variant\",type:ControlType.Enum}});addFonts(FramerpZjgOYdF0,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerpZjgOYdF0\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"550\",\"framerIntrinsicHeight\":\"201\",\"framerComponentViewportWidth\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerContractVersion\":\"1\",\"framerColorSyntax\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"ZFca5LQ2G\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"EEciQugP9\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"nF1TEu5tJ\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerImmutableVariables\":\"true\",\"framerAutoSizeImages\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./pZjgOYdF0.map","// contactTracking.ts\n// Framer Code Overrides to track tel:/mailto: clicks via Plausible custom events\n// Apply to any layer/component that has a Link set to tel: or mailto:\n//   - For a single, specific number/address: use trackContact() (auto-detects tel/mailto)\n//   - If you want to force a specific event name: use trackPhone() or trackEmail()\nimport{jsx as _jsx}from\"react/jsx-runtime\";// Small helper to safely call plausible()\nfunction sendPlausible(event,props){const p=window.plausible;if(typeof p===\"function\"){p(event,{props});}}// Extract the href from either the element itself or a nested <a>\nfunction getHrefFromTarget(target){let el=target;while(el&&el!==document.body){// If this node is an <a> with href, use it\nif(el instanceof HTMLAnchorElement&&el.getAttribute(\"href\")){return el.getAttribute(\"href\");}// Some Framer components render an <a> inside; keep climbing\nel=el.parentElement;}return null;}// Shared click handler factory\nfunction onClickFactory(opts){return evt=>{const href=getHrefFromTarget(evt.target)||\"\";const isTel=href.startsWith(\"tel:\");const isMail=href.startsWith(\"mailto:\");if(!isTel&&!isMail)return;// Not a contact link — do nothing\n// Choose event name: explicit override or auto\nconst eventName=opts?.eventName??(isTel?\"Phone: Click\":\"Email: Click\");// You can add more props (placement, variant, etc.) via data attributes if desired\n// Example: add data-plausible-area=\"Header\" on your layer; we’ll capture it here.\nconst host=evt.currentTarget||null;const area=host?.getAttribute?.(\"data-plausible-area\")??null;sendPlausible(eventName,{url:href,text:(host?.textContent||\"\").trim()||null,area:area});// Let the browser proceed immediately with dialing / opening the email client\n};}/** Auto-detect tel:/mailto: and send \"Phone: Click\" or \"Email: Click\". */export function trackContact(){return{onClick:onClickFactory()};}/** Force the event to be \"Phone: Click\" (still requires the layer to link to tel:). */export function trackPhone(){return{onClick:onClickFactory({eventName:\"Phone: Click\"})};}/** Force the event to be \"Email: Click\" (still requires the layer to link to mailto:). */export function trackEmail(){return{onClick:onClickFactory({eventName:\"Email: Click\"})};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withtrackContact(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...trackContact(props)});};}withtrackContact.displayName=\"trackContact\";export function withtrackPhone(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...trackPhone(props)});};}withtrackPhone.displayName=\"trackPhone\";export function withtrackEmail(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...trackEmail(props)});};}withtrackEmail.displayName=\"trackEmail\";\nexport const __FramerMetadata__ = {\"exports\":{\"withtrackPhone\":{\"type\":\"reactHoc\",\"name\":\"withtrackPhone\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"trackEmail\":{\"type\":\"override\",\"name\":\"trackEmail\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withtrackContact\":{\"type\":\"reactHoc\",\"name\":\"withtrackContact\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"trackContact\":{\"type\":\"override\",\"name\":\"trackContact\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"trackPhone\":{\"type\":\"override\",\"name\":\"trackPhone\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withtrackEmail\":{\"type\":\"reactHoc\",\"name\":\"withtrackEmail\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PhoneEmailLinkTracking.map"],"mappings":"mWAC0jB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,yCAAvrB,IAAgK,IAAkE,IAA4B,CAAgC,EAAW,CAAC,YAAY,YAAY,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,mBAAmB,UAAU,mBAAmB,UAAU,mBAAmB,UAAU,kBA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