{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/EL0mazPYhzvrBTFiDeQe/O4GiKBHOonkXvPT84XbQ/New_GTM_Arrow.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export function ArrowGTMTracker(props){const{eventName=\"slideshow_navigation\",buttonLocation=\"slideshow\",buttonPage=\"\",title=\"Slideshow Arrow\",positionX=20,positionY=\"50%\",arrowWidth=40,arrowHeight=40,arrowDirection=\"next\",showBorder=true}=props;const trackEvent=()=>{const fullParams={event:eventName,button_location:buttonLocation,button_page:buttonPage||window.location.pathname,title:title,arrow_direction:arrowDirection};window.dataLayer=window.dataLayer||[];window.dataLayer.push(fullParams);console.log(\"\u2705 Arrow event pushed to GTM:\",fullParams);};const handleClick=e=>{trackEvent();let slideshowContainer=e.currentTarget.parentElement;while(slideshowContainer&&!slideshowContainer.querySelector(\"[data-framer-name]\")){slideshowContainer=slideshowContainer.parentElement;}if(slideshowContainer){const selectors=['button[aria-label*=\"next\"]','button[aria-label*=\"previous\"]','button[aria-label*=\"prev\"]','[role=\"button\"][aria-label*=\"next\"]','[role=\"button\"][aria-label*=\"previous\"]','[role=\"button\"][aria-label*=\"prev\"]',\".framer-slideshow-button\",\"[data-slideshow-button]\",\"button:has(svg)\"];for(const selector of selectors){const buttons=slideshowContainer.querySelectorAll(selector);for(const button of buttons){const ariaLabel=button.getAttribute(\"aria-label\")||\"\";const isNext=ariaLabel.toLowerCase().includes(\"next\");const isPrev=ariaLabel.toLowerCase().includes(\"prev\");if(arrowDirection===\"next\"&&isNext||arrowDirection===\"prev\"&&isPrev){button.click();return;}}}const allButtons=slideshowContainer.querySelectorAll('button, [role=\"button\"]');const rect=e.currentTarget.getBoundingClientRect();for(const button of allButtons){const buttonRect=button.getBoundingClientRect();const distance=Math.sqrt(Math.pow(buttonRect.left-rect.left,2)+Math.pow(buttonRect.top-rect.top,2));if(distance<50){button.click();return;}}}console.warn(\"\u26A0\uFE0F Could not find slideshow arrow button to click\");};return /*#__PURE__*/_jsx(\"div\",{onClick:handleClick,style:{position:\"absolute\",left:positionX,top:positionY,transform:\"translateY(-50%)\",width:arrowWidth,height:arrowHeight,backgroundColor:\"transparent\",cursor:\"pointer\",zIndex:1e3,border:showBorder?\"2px dashed rgba(255, 0, 0, 0.5)\":\"none\"},title:`${title} Tracker`});}ArrowGTMTracker.defaultProps={eventName:\"slideshow_navigation\",buttonLocation:\"slideshow\",buttonPage:\"\",title:\"Slideshow Arrow\",positionX:20,positionY:\"50%\",arrowWidth:40,arrowHeight:40,arrowDirection:\"next\"};addPropertyControls(ArrowGTMTracker,{eventName:{type:ControlType.String,title:\"Event Name\",defaultValue:\"slideshow_navigation\"},buttonLocation:{type:ControlType.String,title:\"Button Location\",defaultValue:\"slideshow\"},buttonPage:{type:ControlType.String,title:\"Button Page (optional)\",defaultValue:\"\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Slideshow Arrow\"},arrowDirection:{type:ControlType.Enum,title:\"Arrow Direction\",options:[\"next\",\"prev\"],optionTitles:[\"Next Arrow\",\"Previous Arrow\"],defaultValue:\"next\"},showBorder:{type:ControlType.Boolean,title:\"Show Border\",defaultValue:true},positionX:{type:ControlType.Number,title:\"X Position\",min:0,max:500,defaultValue:20},positionY:{type:ControlType.String,title:\"Y Position\",defaultValue:\"50%\"},arrowWidth:{type:ControlType.Number,title:\"Hit Area Width\",min:20,max:100,defaultValue:40},arrowHeight:{type:ControlType.Number,title:\"Hit Area Height\",min:20,max:100,defaultValue:40}});\nexport const __FramerMetadata__ = {\"exports\":{\"ArrowGTMTracker\":{\"type\":\"reactComponent\",\"name\":\"ArrowGTMTracker\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./New_GTM_Arrow.map"],
  "mappings": "kIAAsG,SAASA,EAAgBC,EAAM,CAAC,GAAK,CAAC,UAAAC,EAAU,uBAA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AY,CAAC,KAAKA,EAAY,OAAO,MAAM,kBAAkB,IAAI,GAAG,IAAI,IAAI,aAAa,EAAE,CAAC,CAAC",
  "names": ["ArrowGTMTracker", "props", "eventName", "buttonLocation", "buttonPage", "title", "positionX", "positionY", "arrowWidth", "arrowHeight", "arrowDirection", "showBorder", "trackEvent", "fullParams", "window", "p", "e", "slideshowContainer", "selectors", "selector", "buttons", "button", "ariaLabel", "isNext", "isPrev", "allButtons", "rect", "buttonRect", "addPropertyControls", "ControlType"]
}
