{"version":3,"file":"TallyButton.CG5ygmO2.mjs","names":[],"sources":["https:/framerusercontent.com/modules/yjvWlxPBflWXj6uABEAM/PsBXgyQOuo7U3ZZNuZ4l/TallyButton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function TallyButtonLink(props){const{label,tallyOpen,tallyWidth,tallyOverlay,tallyEmojiText,tallyEmojiAnimation,tallyAutoClose,trip,backgroundColor,textColor,hoverBackgroundColor,hoverTextColor,paddingTop,paddingBottom,paddingLeft,paddingRight,borderRadius,font,style}=props;const queryParams=new URLSearchParams;if(tallyOpen)queryParams.append(\"tally-open\",tallyOpen);if(trip)queryParams.append(\"trip\",trip);if(tallyWidth)queryParams.append(\"tally-width\",String(tallyWidth));if(typeof tallyOverlay===\"boolean\")queryParams.append(\"tally-overlay\",tallyOverlay?\"1\":\"0\");if(tallyEmojiText)queryParams.append(\"tally-emoji-text\",tallyEmojiText);if(tallyEmojiAnimation)queryParams.append(\"tally-emoji-animation\",tallyEmojiAnimation);if(tallyAutoClose)queryParams.append(\"tally-auto-close\",String(tallyAutoClose));const href=`#${queryParams.toString()}`;return /*#__PURE__*/_jsx(\"a\",{style:{...style,display:\"block\",width:\"100%\",textAlign:\"center\",textDecoration:\"none\",backgroundColor,color:textColor,paddingTop,paddingBottom,paddingLeft,paddingRight,borderRadius,cursor:\"pointer\",transition:\"background-color 0.3s, color 0.3s\",...font},href:href,\"data-tally-open\":tallyOpen,\"data-tally-width\":tallyWidth,\"data-tally-overlay\":tallyOverlay?\"1\":\"0\",\"data-tally-emoji-text\":tallyEmojiText,\"data-tally-emoji-animation\":tallyEmojiAnimation,\"data-tally-auto-close\":tallyAutoClose,\"data-trip\":trip,onMouseEnter:e=>{if(hoverBackgroundColor)e.currentTarget.style.backgroundColor=hoverBackgroundColor;if(hoverTextColor)e.currentTarget.style.color=hoverTextColor;},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=backgroundColor;e.currentTarget.style.color=textColor;},children:label});}TallyButtonLink.displayName=\"Tally Button Link\";addPropertyControls(TallyButtonLink,{label:{type:ControlType.String,title:\"Button Label\",defaultValue:\"Click me\"},tallyOpen:{type:ControlType.String,title:\"Tally Form ID\",defaultValue:\"w82KOY\"},tallyWidth:{type:ControlType.Number,title:\"Tally Width\",defaultValue:420},tallyOverlay:{type:ControlType.Boolean,title:\"Overlay\",defaultValue:true},tallyEmojiText:{type:ControlType.String,title:\"Emoji Text\",defaultValue:\"👋\"},tallyEmojiAnimation:{type:ControlType.String,title:\"Emoji Animation\",defaultValue:\"wave\"},tallyAutoClose:{type:ControlType.Number,title:\"Auto Close (ms)\",defaultValue:500},trip:{type:ControlType.String,title:\"Trip\",defaultValue:\"Namibia\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},hoverBackgroundColor:{type:ControlType.Color,title:\"Hover Background\",defaultValue:\"#333333\"},hoverTextColor:{type:ControlType.Color,title:\"Hover Text Color\",defaultValue:\"#FFFFFF\"},paddingTop:{type:ControlType.Number,title:\"Padding Top\",defaultValue:12},paddingBottom:{type:ControlType.Number,title:\"Padding Bottom\",defaultValue:12},paddingLeft:{type:ControlType.Number,title:\"Padding Left\",defaultValue:24},paddingRight:{type:ControlType.Number,title:\"Padding Right\",defaultValue:24},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:8},font:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:16,lineHeight:1.2}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TallyButtonLink\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"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