{"version":3,"file":"AnalyticsForwarding.7z2IFYlg.mjs","names":["mask","SVG","getProps","Icon","React.forwardRef","React.forwardRef","useRef","useCallback"],"sources":["https:/framerusercontent.com/modules/0WMAYsSVA8g53C8sT5KU/C04DKmptPpsEvu2NUh3O/TAkhVaEYf.js","https:/framerusercontent.com/modules/QL65NekRyGlej8APmFiL/EfJhiBMusrx6SCmF9LfF/aE7ozwXux.js","https:/framerusercontent.com/modules/hKMDdwEoic2GF4L6rAFD/ENVysEEuCodWt11NjpUb/AnalyticsForwarding.js"],"sourcesContent":["// Generated by Framer (6ca5d98)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask='url(\\'data:image/svg+xml,<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 19.888 14.92 L 19.888 17.92 C 19.89 18.483 19.655 19.021 19.24 19.402 C 18.825 19.783 18.269 19.971 17.708 19.92 C 14.631 19.586 11.675 18.534 9.078 16.85 C 6.662 15.315 4.613 13.266 3.078 10.85 C 1.388 8.241 0.336 5.271 0.008 2.18 C -0.042 1.621 0.144 1.066 0.523 0.652 C 0.901 0.237 1.437 0.001 1.998 0 L 4.998 0 C 6.002 -0.01 6.858 0.726 6.998 1.72 C 7.125 2.68 7.36 3.623 7.698 4.53 C 7.973 5.261 7.797 6.085 7.248 6.64 L 5.978 7.91 C 7.402 10.414 9.475 12.487 11.978 13.91 L 13.248 12.64 C 13.803 12.091 14.627 11.915 15.358 12.19 C 16.265 12.529 17.208 12.763 18.168 12.89 C 19.174 13.032 19.913 13.905 19.888 14.92 Z\" fill=\"transparent\" height=\"19.928223630904675px\" id=\"tCa4p16mC\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" stroke=\"var(--43q7um, rgb(0,0,0))\" transform=\"translate(2.112 2)\" width=\"19.888748287219748px\"/></svg>\\') alpha no-repeat center / auto var(--framer-icon-mask-mode, add), var(--framer-icon-mask, none)';const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(motion.div,{...rest,layoutId:layoutId,ref:ref}):/*#__PURE__*/_jsx(\"div\",{...rest,ref:ref});});const getProps=({height,id,stroke,width,...props})=>{return{...props,UO5clYVeQ:stroke??props.UO5clYVeQ??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,UO5clYVeQ,...restProps}=getProps(props);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-rNbLA\",className),layoutId:layoutId,ref:ref,style:{\"--43q7um\":UO5clYVeQ,...style}});});const css=[`.framer-rNbLA { -webkit-mask: ${mask}; aspect-ratio: 1; background-color: var(--43q7um); mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"UO5clYVeQ\":\"stroke\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Phone\",\"color\":{\"type\":\"variable\",\"value\":\"43q7um\"},\"set\":{\"localId\":\"vectorSet/T8qKXkLfy\",\"id\":\"T8qKXkLfy\",\"moduleId\":\"fiHEoJwBMFnT6QLOcpPz\"}}\n * @framerDisableUnlink true\n */const Icon=withCSS(Component,css,\"framer-rNbLA\");Icon.displayName=\"Phone\";export default Icon;addPropertyControls(Icon,{UO5clYVeQ:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Stroke\",type:ControlType.Color}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerVariables\":\"{\\\"UO5clYVeQ\\\":\\\"stroke\\\"}\",\"framerImmutableVariables\":\"true\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"24\",\"framerIntrinsicWidth\":\"24\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerDisableUnlink\":\"true\",\"framerVector\":\"{\\\"name\\\":\\\"Phone\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"43q7um\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/T8qKXkLfy\\\",\\\"id\\\":\\\"T8qKXkLfy\\\",\\\"moduleId\\\":\\\"fiHEoJwBMFnT6QLOcpPz\\\"}}\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (6ca5d98)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask='url(\\'data:image/svg+xml,<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 2 0 L 18 0 C 19.1 0 20 0.9 20 2 L 20 14 C 20 15.1 19.1 16 18 16 L 2 16 C 0.9 16 0 15.1 0 14 L 0 2 C 0 0.9 0.9 0 2 0 Z\" fill=\"transparent\" height=\"16px\" id=\"NvQOXSS14\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" stroke=\"var(--43q7um, rgb(0,0,0))\" transform=\"translate(2 4)\" width=\"20px\"/><path d=\"M 20 0 L 10 7 L 0 0\" fill=\"transparent\" height=\"7px\" id=\"XYqf_BtA8\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" stroke=\"var(--43q7um, rgb(0,0,0))\" transform=\"translate(2 6)\" width=\"20px\"/></svg>\\') alpha no-repeat center / auto var(--framer-icon-mask-mode, add), var(--framer-icon-mask, none)';const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(motion.div,{...rest,layoutId:layoutId,ref:ref}):/*#__PURE__*/_jsx(\"div\",{...rest,ref:ref});});const getProps=({height,id,stroke,width,...props})=>{return{...props,UO5clYVeQ:stroke??props.UO5clYVeQ??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,UO5clYVeQ,...restProps}=getProps(props);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-erqbn\",className),layoutId:layoutId,ref:ref,style:{\"--43q7um\":UO5clYVeQ,...style}});});const css=[`.framer-erqbn { -webkit-mask: ${mask}; aspect-ratio: 1; background-color: var(--43q7um); mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"UO5clYVeQ\":\"stroke\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Mail\",\"color\":{\"type\":\"variable\",\"value\":\"43q7um\"},\"set\":{\"localId\":\"vectorSet/T8qKXkLfy\",\"id\":\"T8qKXkLfy\",\"moduleId\":\"fiHEoJwBMFnT6QLOcpPz\"}}\n * @framerDisableUnlink true\n */const Icon=withCSS(Component,css,\"framer-erqbn\");Icon.displayName=\"Mail\";export default Icon;addPropertyControls(Icon,{UO5clYVeQ:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Stroke\",type:ControlType.Color}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerVariables\":\"{\\\"UO5clYVeQ\\\":\\\"stroke\\\"}\",\"framerIntrinsicHeight\":\"24\",\"framerContractVersion\":\"1\",\"framerImmutableVariables\":\"true\",\"framerVector\":\"{\\\"name\\\":\\\"Mail\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"43q7um\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/T8qKXkLfy\\\",\\\"id\\\":\\\"T8qKXkLfy\\\",\\\"moduleId\\\":\\\"fiHEoJwBMFnT6QLOcpPz\\\"}}\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"24\",\"framerDisableUnlink\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useCallback,useEffect,useRef}from\"react\";const processedFormSubmitEvents=new WeakSet;function fireGtagEvent(eventName){if(typeof window===\"undefined\")return;const maybeGtag=window.gtag;if(typeof maybeGtag===\"function\"){maybeGtag(\"event\",eventName);}}function createLinkAnalyticsOverride(eventName){return function withLinkAnalytics(Component){return /*#__PURE__*/forwardRef(function LinkAnalyticsOverride(props,ref){const WrappedComponent=Component;const lastActivationTsRef=useRef(null);const sendOncePerActivation=useCallback(timeStamp=>{const ts=typeof timeStamp===\"number\"?timeStamp:null;if(ts!==null&&lastActivationTsRef.current===ts)return;lastActivationTsRef.current=ts;fireGtagEvent(eventName);},[eventName]);const handleClick=useCallback(event=>{props.onClick?.(event);sendOncePerActivation(event.timeStamp);},[props,sendOncePerActivation]);const handleTap=useCallback(event=>{props.onTap?.(event);sendOncePerActivation(event?.timeStamp);},[props,sendOncePerActivation]);return /*#__PURE__*/_jsx(WrappedComponent,{ref:ref,...props,onClick:handleClick,onTap:handleTap});});};}export function withEmailClick(Component){return createLinkAnalyticsOverride(\"email_click\")(Component);}export function withWorkshopClick(Component){return createLinkAnalyticsOverride(\"workshop_click\")(Component);}export function withFineArtClick(Component){return createLinkAnalyticsOverride(\"fine_art_click\")(Component);}export function withInstagramClick(Component){return createLinkAnalyticsOverride(\"instagram_click\")(Component);}export function withFacebookClick(Component){return createLinkAnalyticsOverride(\"facebook_click\")(Component);}export function withGenerateLeadOnSuccess(Component){return /*#__PURE__*/forwardRef(function GenerateLeadOnSuccessOverride(props,ref){const WrappedComponent=Component;const rootRef=useRef(null);const setRefs=useCallback(node=>{rootRef.current=node;if(typeof ref===\"function\"){ref(node);}else if(ref&&typeof ref===\"object\"){ref.current=node;}},[ref]);useEffect(()=>{if(typeof window===\"undefined\")return;// Listen to Framer's native form completion event and filter by the known trackingId.\nconst onFramerFormSubmit=nativeEvent=>{if(!(nativeEvent instanceof CustomEvent))return;const detail=nativeEvent.detail;if(detail?.trackingId!==\"contact-form\")return;// Dedupe at module scope so parallel responsive instances do not double-send.\nif(processedFormSubmitEvents.has(nativeEvent))return;processedFormSubmitEvents.add(nativeEvent);fireGtagEvent(\"generate_lead\");};document.addEventListener(\"framer:formsubmit\",onFramerFormSubmit);return()=>{document.removeEventListener(\"framer:formsubmit\",onFramerFormSubmit);};},[]);return /*#__PURE__*/_jsx(WrappedComponent,{ref:setRefs,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withGenerateLeadOnSuccess\":{\"type\":\"reactHoc\",\"name\":\"withGenerateLeadOnSuccess\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withInstagramClick\":{\"type\":\"reactHoc\",\"name\":\"withInstagramClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withWorkshopClick\":{\"type\":\"reactHoc\",\"name\":\"withWorkshopClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFacebookClick\":{\"type\":\"reactHoc\",\"name\":\"withFacebookClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withEmailClick\":{\"type\":\"reactHoc\",\"name\":\"withEmailClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFineArtClick\":{\"type\":\"reactHoc\",\"name\":\"withFineArtClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AnalyticsForwarding.map"],"mappings":"yRAC0C,IAAsE,IAA4B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