{"version":3,"file":"GlassButton.BDc7wEk7.mjs","names":[],"sources":["https:/framerusercontent.com/modules/XGkgCb2HPtyalnodjZSr/duBaqGLL331IxsQO0XhU/GlassButton.js"],"sourcesContent":["// GlassButton.tsx\n// The base tappable element: glass + accent-filled variants.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";// --- synced from tripifi.ts (do not hand-edit; re-sync from source) ---\nconst T={accentBase:\"#EA6880\",accentInk:\"#14100C\",textPrimary:{dark:\"#F4F5F7\",light:\"#17181C\"},glassBg:{dark:\"rgba(255,255,255,0.08)\",light:\"rgba(255,255,255,0.55)\"},glassBgHover:{dark:\"rgba(255,255,255,0.14)\",light:\"rgba(255,255,255,0.72)\"},glassBorder:{dark:\"rgba(255,255,255,0.14)\",light:\"rgba(0,0,0,0.12)\"},radiusPill:999,rise:{type:\"spring\",stiffness:300,damping:30},pop:{type:\"spring\",stiffness:420,damping:22},press:{scale:.94,opacity:.8},hoverLift:-2};/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function GlassButton(props){const{label=\"Get Tripifi\",variant=\"accent\",mode=\"dark\",link,newTab=false,style}=props;const isAccent=variant===\"accent\";const base={position:\"relative\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",gap:8,padding:\"14px 24px\",borderRadius:T.radiusPill,fontWeight:600,fontSize:15,letterSpacing:\"-0.01em\",lineHeight:1,cursor:\"pointer\",textDecoration:\"none\",whiteSpace:\"nowrap\",border:isAccent?\"0.5px solid rgba(0,0,0,0.0)\":`0.5px solid ${T.glassBorder[mode]}`,color:isAccent?T.accentInk:T.textPrimary[mode],backgroundColor:isAccent?T.accentBase:T.glassBg[mode],...isAccent?{boxShadow:\"0 6px 18px rgba(234,104,128,0.28)\"}:{backdropFilter:\"blur(20px) saturate(180%)\",WebkitBackdropFilter:\"blur(20px) saturate(180%)\",boxShadow:\"inset 0 1px 0 rgba(255,255,255,0.18)\"},...style};const hover=isAccent?{y:T.hoverLift,backgroundColor:T.accentBase,boxShadow:\"0 10px 28px rgba(234,104,128,0.45)\",transition:T.rise}:{y:T.hoverLift,backgroundColor:T.glassBgHover[mode],boxShadow:\"inset 0 1px 0 rgba(255,255,255,0.24), 0 10px 28px rgba(0,0,0,0.28)\",transition:T.rise};const tap={...T.press,transition:T.pop};return /*#__PURE__*/_jsx(motion.a,{href:link||undefined,target:link&&newTab?\"_blank\":undefined,rel:link&&newTab?\"noreferrer\":undefined,role:\"button\",\"aria-label\":label,style:base,whileHover:hover,whileTap:tap,children:label});}addPropertyControls(GlassButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Get Tripifi\"},variant:{type:ControlType.Enum,title:\"Variant\",options:[\"accent\",\"glass\"],optionTitles:[\"Accent\",\"Glass\"],defaultValue:\"accent\",displaySegmentedControl:true},mode:{type:ControlType.Enum,title:\"Mode\",options:[\"dark\",\"light\"],optionTitles:[\"Dark\",\"Light\"],defaultValue:\"dark\",displaySegmentedControl:true},link:{type:ControlType.Link,title:\"Link\"},newTab:{type:ControlType.Boolean,title:\"New tab\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GlassButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GlassButton.map"],"mappings":"6MAMG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,cAAc,UAAQ,SAAS,OAAK,OAAO,OAAK,SAAO,GAAM,SAAO,EAAY,EAAS,IAAU,SAAe,EAAK,CAAC,SAAS,WAAW,QAAQ,cAAc,WAAW,SAAS,eAAe,SAAS,IAAI,EAAE,QAAQ,YAAY,aAAa,EAAE,WAAW,WAAW,IAAI,SAAS,GAAG,cAAc,UAAU,WAAW,EAAE,OAAO,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