{"version":3,"file":"ButtonHoverAnimation.Lt_jHeOs.mjs","names":["React.useId","React.useMemo"],"sources":["https:/framerusercontent.com/modules/ULaWfh6BSVaO4Z82Wl93/PUEUkRz2pRDW13RJgPtD/ButtonHoverAnimation.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function ArrowedLinksHover12(props){const{label=\"Link here\",url=\"#\",font,uppercase=false,textColor=\"#000000\",hoverTextColor=\"#000000\",lineColor=\"rgba(0,0,0,0.5)\",hoverLineColor=\"#000000\",openInNewTab=false,padding=\"12px\",style}=props;const scopeId=React.useId().replace(/:/g,\"\");const scopeClass=`alh12_${scopeId}`;const pad=React.useMemo(()=>parsePadding(padding),[padding]);const targetProps=React.useMemo(()=>{if(!openInNewTab)return{};return{target:\"_blank\",rel:\"noreferrer noopener\"};},[openInNewTab]);const textTransform=uppercase?\"uppercase\":undefined;const displayLabel=applyTextTransform(label,textTransform);const css=React.useMemo(()=>{const s=`\n\n/* Scope */\n.${scopeClass}{\n  --alh-text: ${textColor};\n  --alh-hoverText: ${hoverTextColor};\n  --alh-line: ${lineColor};\n  --alh-hoverLine: ${hoverLineColor};\n\n  --s4-line: var(--alh-line);\n  --s4-color: var(--alh-text);\n}\n\n.${scopeClass} .linkWrap{\n  position: relative;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\n/* Reset */\n.${scopeClass} a{\n  font: inherit;\n}\n\n.${scopeClass} .alh-link{\n  -webkit-tap-highlight-color: transparent;\n  user-select: none;\n}\n\n.${scopeClass} .alh-link:focus-visible{\n  outline: none;\n  box-shadow: 0 0 0 3px rgba(0,0,0,0.16);\n  border-radius: 10px;\n}\n\n/* ============ STYLE 4 ============ */\n.${scopeClass} .style-4{\n  display: flex;\n  align-items: center;\n  text-decoration: none;\n  color: var(--s4-color);\n  position: relative;\n  padding: ${padding};\n  --icon-width: 1.3em;\n  --icon-height: 2em;\n  --alh-icon-gap: 0.35em;\n  --background-size: 0%;\n  --background-delay: 0s;\n  --stroke-dashoffset: 46;\n  --stroke-duration: 0.15s;\n  --stroke-easing: linear;\n  --stroke-delay: 0s;\n}\n\n.${scopeClass} .style-4 span{\n  display: inline-block;\n  padding-right: 0px;\n  background-image: linear-gradient(0deg, var(--s4-line) 0%, var(--s4-line) 100%);\n  background-position: 100% 100%;\n  background-repeat: no-repeat;\n  background-size: var(--background-size, 0%) 1px;\n  transition: padding-right 0.2s linear, background-size 0.2s linear var(--background-delay, 0s);\n  transform: translateZ(0);\n}\n\n.${scopeClass} .style-4:hover span{\n  padding-right: calc(var(--icon-width) + var(--alh-icon-gap));\n}\n\n.${scopeClass} .style-4 svg{\n  vertical-align: top;\n  display: block;\n  line-height: 1;\n  width: var(--icon-width);\n  height: var(--icon-height);\n  position: absolute;\n  right: var(--alh-pad-right, 0px);\n  top: 50%;\n  transform: translateY(-50%);\n  fill: none;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n  stroke-width: 1px;\n  stroke: var(--s4-line);\n  stroke-dasharray: 7.95 30;\n  stroke-dashoffset: var(--stroke-dashoffset, 46);\n  transition: stroke-dashoffset var(--stroke-duration, 0.15s) var(--stroke-easing, linear) var(--stroke-delay, 0s);\n}\n\n.${scopeClass} .style-4:hover{\n  --background-size: 0%;\n  --background-delay: 0s;\n  --stroke-dashoffset: 26;\n  --stroke-duration: 0.3s;\n  --stroke-easing: cubic-bezier(0.3, 1.5, 0.5, 1);\n  --stroke-delay: 0.2s;\n  --s4-line: var(--alh-hoverLine);\n  color: var(--alh-hoverText);\n}\n\n`;return s;},[scopeClass,textColor,hoverTextColor,lineColor,hoverLineColor,padding]);return /*#__PURE__*/_jsxs(\"div\",{className:scopeClass,style:{position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",overflow:\"visible\",...font,textTransform,...style},children:[/*#__PURE__*/_jsx(\"style\",{children:css}),/*#__PURE__*/_jsx(\"div\",{className:\"linkWrap\",children:/*#__PURE__*/_jsxs(\"a\",{className:\"alh-link style-4\",href:url,\"aria-label\":label,style:{// Expose padding to CSS so the icon can sit inside the right padding without adding extra layout width\n[\"--alh-pad-right\"]:`${pad.right}px`},...targetProps,children:[/*#__PURE__*/_jsx(\"span\",{children:displayLabel}),/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 13 20\",\"aria-hidden\":\"true\",focusable:\"false\",children:/*#__PURE__*/_jsx(\"polyline\",{points:\"0.5 19.5 3 19.5 12.5 10 3 0.5\"})})]})})]});}function applyTextTransform(text,transform){const t=(transform||\"\").toLowerCase();if(!t||t===\"none\")return text;if(t===\"uppercase\")return text.toUpperCase();if(t===\"lowercase\")return text.toLowerCase();if(t===\"capitalize\"){return text.toLowerCase().replace(/(^|\\\\s|[-_])([a-z])/g,(m,p1,p2)=>`${p1}${String(p2).toUpperCase()}`);}return text;}function parsePadding(padding){const p=(padding||\"\").trim();const parts=p.split(/\\s+/).filter(Boolean);const parse=v=>{if(!v)return 0;if(v===\"0\")return 0;const m=v.match(/^(-?\\d*\\.?\\d+)(px)?$/i);if(!m)return 0;const n=Number(m[1]);return Number.isFinite(n)?n:0;};if(parts.length===1){const a=parse(parts[0]);return{top:a,right:a,bottom:a,left:a};}if(parts.length===2){const v=parse(parts[0]);const h=parse(parts[1]);return{top:v,right:h,bottom:v,left:h};}if(parts.length===3){const t=parse(parts[0]);const h=parse(parts[1]);const b=parse(parts[2]);return{top:t,right:h,bottom:b,left:h};}if(parts.length>=4){const t=parse(parts[0]);const r=parse(parts[1]);const b=parse(parts[2]);const l=parse(parts[3]);return{top:t,right:r,bottom:b,left:l};}return{top:0,right:0,bottom:0,left:0};}const defaultItems=[{enabled:true,label:\"Link here\",url:\"#\",variant:\"4\"}];addPropertyControls(ArrowedLinksHover12,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Link here\"},url:{type:ControlType.Link,title:\"URL\",defaultValue:\"#\"},openInNewTab:{type:ControlType.Boolean,title:\"New Tab\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"20px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"},displayFontSize:true},uppercase:{type:ControlType.Boolean,title:\"Uppercase\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#000000\"},hoverTextColor:{type:ControlType.Color,title:\"Hover Text\",defaultValue:\"#000000\"},lineColor:{type:ControlType.Color,title:\"Line\",defaultValue:\"#CCCCCC\"},hoverLineColor:{type:ControlType.Color,title:\"Hover Line\",defaultValue:\"#000000\"},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"12px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ArrowedLinksHover12\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ButtonHoverAnimation.map"],"mappings":"mLAGG,SAAwB,EAAoB,EAAM,CAAC,GAAK,CAAC,QAAM,YAAY,MAAI,IAAI,OAAK,YAAU,GAAM,YAAU,UAAU,iBAAe,UAAU,YAAU,kBAAkB,iBAAe,UAAU,eAAa,GAAM,UAAQ,OAAO,SAAO,EAAyD,EAAW,SAAhDA,EAAY,CAAC,CAAC,QAAQ,KAAK,EAAoC,IAAU,EAAIC,MAAkB,EAAa,CAAO,EAAE,CAAC,CAAO,CAAC,EAAQ,EAAYA,MAAuB,EAA4B,CAAC,OAAO,SAAS,IAAI,qBAAqB,EAAnD,CAAC,EAAsD,CAAC,CAAY,CAAC,EAAQ,EAAc,EAAU,YAAY,IAAA,GAAg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