{
  "version": 3,
  "sources": ["ssg: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:\"\uD83D\uDC4B\"},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__\":{\"type\":\"vari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Y,OAAO,MAAM,gBAAgB,aAAa,CAAC,EAAE,KAAK,CAAC,KAAK,OAAO,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,GAAG,WAAW,GAAG,CAAC,CAAC,CAAC",
  "names": ["TallyButtonLink", "props", "label", "tallyOpen", "tallyWidth", "tallyOverlay", "tallyEmojiText", "tallyEmojiAnimation", "tallyAutoClose", "trip", "backgroundColor", "textColor", "hoverBackgroundColor", "hoverTextColor", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight", "borderRadius", "font", "style", "queryParams", "href", "p", "e", "addPropertyControls", "ControlType"]
}
