{"version":3,"file":"Click.tiCnColz.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","sharedStyle.className","sharedStyle1.className","sharedStyle2.className","sharedStyle3.className","className","RichText","sharedStyle.css","sharedStyle1.css","sharedStyle2.css","sharedStyle3.css","sharedStyle.fonts","sharedStyle1.fonts","sharedStyle2.fonts","sharedStyle3.fonts","useRef","useCallback"],"sources":["https:/framerusercontent.com/modules/37fX7VcdHYSGWJHLXCgH/hS7Y2ZJ7DcAMVoZlNQ9m/tN8XHCtLe.js","https:/framerusercontent.com/modules/UGwU4Ix0zYUmiZ87VjSb/pewG8EprNjRrjxpArvyi/Click.js"],"sourcesContent":["// Generated by Framer (bf2ee14)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getFontsFromSharedStyle,Link,RichText,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import*as sharedStyle1 from\"https://framerusercontent.com/modules/ZCth4wwf2yFGv5GFmlBo/QLKetQ9qXbtMupBaxQ73/FgRokC6Q6.js\";import*as sharedStyle from\"https://framerusercontent.com/modules/JGtYY0TgM3Xep1PSV9ER/MCC8r94N4mv9nTmoXD6Z/NzdXliOXT.js\";import*as sharedStyle2 from\"https://framerusercontent.com/modules/YsUKxmLCsixkqnsUylNp/pORFE3kq7vRRC0z8zHGK/PtI8PDU3U.js\";import*as sharedStyle3 from\"https://framerusercontent.com/modules/nfzh1sQNBVBv2SIQMpZ7/07C35jFp3T1ZVntioJee/thCUiBgAc.js\";const enabledGestures={L1VyyDhxR:{hover:true},NQzb1Fg6f:{hover:true},uIfkB4hwt:{hover:true},YtqCFQBlr:{hover:true}};const cycleOrder=[\"L1VyyDhxR\",\"uIfkB4hwt\",\"YtqCFQBlr\",\"NQzb1Fg6f\"];const serializationHash=\"framer-i9PHL\";const variantClassNames={L1VyyDhxR:\"framer-v-147ht3t\",NQzb1Fg6f:\"framer-v-5rcs46\",uIfkB4hwt:\"framer-v-1lcylz7\",YtqCFQBlr:\"framer-v-ys7bdp\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={delay:0,duration:.3,ease:[.44,0,.56,1],type:\"tween\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={\"14\":\"L1VyyDhxR\",\"16\":\"uIfkB4hwt\",\"18\":\"YtqCFQBlr\",\"24\":\"NQzb1Fg6f\"};const getProps=({click,height,id,link,text,textColor,width,...props})=>{return{...props,Mg_B_ZKw9:textColor??props.Mg_B_ZKw9??\"var(--token-6248adc6-3697-472f-8061-4111e56095eb, rgb(10, 10, 10))\",Sg1kz8pun:text??props.Sg1kz8pun??\"Text\",variant:humanReadableVariantMap[props.variant]??props.variant??\"L1VyyDhxR\",xLMsDJR23:link??props.xLMsDJR23,XTZcZ7phx:click??props.XTZcZ7phx};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,Sg1kz8pun,Mg_B_ZKw9,XTZcZ7phx,xLMsDJR23,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"L1VyyDhxR\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTap1ukt1za=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(XTZcZ7phx){const res=await XTZcZ7phx(...args);if(res===false)return false;}});const sharedStyleClassNames=[sharedStyle.className,sharedStyle1.className,sharedStyle2.className,sharedStyle3.className];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(Link,{href:xLMsDJR23,motionChild:true,nodeId:\"L1VyyDhxR\",scopeId:\"tN8XHCtLe\",children:/*#__PURE__*/_jsx(motion.a,{...restProps,...gestureHandlers,className:`${cx(scopingClassNames,\"framer-147ht3t\",className,classNames)} framer-9u0usk`,\"data-framer-name\":\"14\",\"data-highlight\":true,layoutDependency:layoutDependency,layoutId:\"L1VyyDhxR\",onTap:onTap1ukt1za,ref:refBinding,style:{...style},...addPropertyOverrides({\"L1VyyDhxR-hover\":{\"data-framer-name\":undefined},\"NQzb1Fg6f-hover\":{\"data-framer-name\":undefined},\"uIfkB4hwt-hover\":{\"data-framer-name\":undefined},\"YtqCFQBlr-hover\":{\"data-framer-name\":undefined},NQzb1Fg6f:{\"data-framer-name\":\"24\"},uIfkB4hwt:{\"data-framer-name\":\"16\"},YtqCFQBlr:{\"data-framer-name\":\"18\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsxs(motion.div,{className:\"framer-1jz8lki\",\"data-framer-name\":\"Text\",layoutDependency:layoutDependency,layoutId:\"DiaTZpE0O\",children:[/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-1jkpvpw\",\"data-styles-preset\":\"NzdXliOXT\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--variable-reference-Mg_B_ZKw9-tN8XHCtLe))\"},children:\"Text\"})}),className:\"framer-3y33qo\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"Tnm4PhnKd\",style:{\"--extracted-r6o4lv\":\"var(--variable-reference-Mg_B_ZKw9-tN8XHCtLe)\",\"--framer-paragraph-spacing\":\"0px\",\"--variable-reference-Mg_B_ZKw9-tN8XHCtLe\":Mg_B_ZKw9},text:Sg1kz8pun,verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({NQzb1Fg6f:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-gvl1r6\",\"data-styles-preset\":\"thCUiBgAc\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--variable-reference-Mg_B_ZKw9-tN8XHCtLe))\"},children:\"Text\"})})},uIfkB4hwt:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-zutx2k\",\"data-styles-preset\":\"FgRokC6Q6\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--variable-reference-Mg_B_ZKw9-tN8XHCtLe))\"},children:\"Text\"})})},YtqCFQBlr:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-1iy8iq8\",\"data-styles-preset\":\"PtI8PDU3U\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--variable-reference-Mg_B_ZKw9-tN8XHCtLe))\"},children:\"Text\"})})}},baseVariant,gestureVariant)}),/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-1jkpvpw\",\"data-styles-preset\":\"NzdXliOXT\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--variable-reference-Mg_B_ZKw9-tN8XHCtLe))\"},children:\"Text\"})}),className:\"framer-i7d7a9\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"EaHbXjLiD\",style:{\"--extracted-r6o4lv\":\"var(--variable-reference-Mg_B_ZKw9-tN8XHCtLe)\",\"--framer-paragraph-spacing\":\"0px\",\"--variable-reference-Mg_B_ZKw9-tN8XHCtLe\":Mg_B_ZKw9},text:Sg1kz8pun,verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({NQzb1Fg6f:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-gvl1r6\",\"data-styles-preset\":\"thCUiBgAc\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--variable-reference-Mg_B_ZKw9-tN8XHCtLe))\"},children:\"Text\"})})},uIfkB4hwt:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-zutx2k\",\"data-styles-preset\":\"FgRokC6Q6\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--variable-reference-Mg_B_ZKw9-tN8XHCtLe))\"},children:\"Text\"})})},YtqCFQBlr:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-1iy8iq8\",\"data-styles-preset\":\"PtI8PDU3U\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--variable-reference-Mg_B_ZKw9-tN8XHCtLe))\"},children:\"Text\"})})}},baseVariant,gestureVariant)})]})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-i9PHL.framer-9u0usk, .framer-i9PHL .framer-9u0usk { display: block; }\",\".framer-i9PHL.framer-147ht3t { align-content: flex-start; align-items: flex-start; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 6px; height: min-content; justify-content: center; overflow: hidden; padding: 0px; position: relative; text-decoration: none; width: min-content; }\",\".framer-i9PHL .framer-1jz8lki { align-content: center; align-items: center; display: flex; flex: none; flex-direction: column; flex-wrap: nowrap; gap: 8px; height: min-content; justify-content: center; overflow: hidden; padding: 0px; position: relative; width: min-content; }\",\".framer-i9PHL .framer-3y33qo { -webkit-user-select: none; flex: none; height: auto; position: relative; user-select: none; white-space: pre; width: auto; z-index: 1; }\",\".framer-i9PHL .framer-i7d7a9 { -webkit-user-select: none; bottom: -16px; flex: none; height: auto; left: 0px; position: absolute; user-select: none; white-space: pre; width: auto; z-index: 1; }\",\".framer-i9PHL.framer-v-1lcylz7 .framer-i7d7a9 { bottom: -20px; }\",\".framer-i9PHL.framer-v-ys7bdp .framer-i7d7a9 { bottom: -24px; }\",\".framer-i9PHL.framer-v-5rcs46 .framer-i7d7a9 { bottom: -32px; }\",\".framer-i9PHL.framer-v-147ht3t.hover .framer-3y33qo { left: 0px; position: absolute; top: -16px; }\",\".framer-i9PHL.framer-v-147ht3t.hover .framer-i7d7a9, .framer-i9PHL.framer-v-1lcylz7.hover .framer-i7d7a9, .framer-i9PHL.framer-v-ys7bdp.hover .framer-i7d7a9, .framer-i9PHL.framer-v-5rcs46.hover .framer-i7d7a9 { bottom: unset; left: unset; position: relative; }\",\".framer-i9PHL.framer-v-1lcylz7.hover .framer-3y33qo { left: 0px; position: absolute; top: -20px; }\",\".framer-i9PHL.framer-v-ys7bdp.hover .framer-3y33qo { left: 0px; position: absolute; top: -24px; }\",\".framer-i9PHL.framer-v-5rcs46.hover .framer-3y33qo { left: 0px; position: absolute; top: -32px; }\",...sharedStyle.css,...sharedStyle1.css,...sharedStyle2.css,...sharedStyle3.css];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 17\n * @framerIntrinsicWidth 27\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"uIfkB4hwt\":{\"layout\":[\"auto\",\"auto\"]},\"YtqCFQBlr\":{\"layout\":[\"auto\",\"auto\"]},\"NQzb1Fg6f\":{\"layout\":[\"auto\",\"auto\"]},\"CdMjbAflU\":{\"layout\":[\"auto\",\"auto\"]},\"s6YedJr12\":{\"layout\":[\"auto\",\"auto\"]},\"PVXqkM86e\":{\"layout\":[\"auto\",\"auto\"]},\"SEKkLGqR6\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"Sg1kz8pun\":\"text\",\"Mg_B_ZKw9\":\"textColor\",\"XTZcZ7phx\":\"click\",\"xLMsDJR23\":\"link\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramertN8XHCtLe=withCSS(Component,css,\"framer-i9PHL\");export default FramertN8XHCtLe;FramertN8XHCtLe.displayName=\"Text\";FramertN8XHCtLe.defaultProps={height:17,width:27};addPropertyControls(FramertN8XHCtLe,{variant:{options:[\"L1VyyDhxR\",\"uIfkB4hwt\",\"YtqCFQBlr\",\"NQzb1Fg6f\"],optionTitles:[\"14\",\"16\",\"18\",\"24\"],title:\"Variant\",type:ControlType.Enum},Sg1kz8pun:{defaultValue:\"Text\",displayTextArea:false,title:\"Text\",type:ControlType.String},Mg_B_ZKw9:{defaultValue:\"var(--token-6248adc6-3697-472f-8061-4111e56095eb, rgb(10, 10, 10))\",title:\"Text color\",type:ControlType.Color},XTZcZ7phx:{title:\"Click\",type:ControlType.EventHandler},xLMsDJR23:{title:\"Link\",type:ControlType.Link}});addFonts(FramertN8XHCtLe,[{explicitInter:true,fonts:[{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/vQyevYAyHtARFwPqUzQGpnDs.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/b6Y37FthZeALduNqHicBT6FutY.woff2\",weight:\"400\"}]},...getFontsFromSharedStyle(sharedStyle.fonts),...getFontsFromSharedStyle(sharedStyle1.fonts),...getFontsFromSharedStyle(sharedStyle2.fonts),...getFontsFromSharedStyle(sharedStyle3.fonts)],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramertN8XHCtLe\",\"slots\":[],\"annotations\":{\"framerColorSyntax\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerIntrinsicHeight\":\"17\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"uIfkB4hwt\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"YtqCFQBlr\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"NQzb1Fg6f\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"CdMjbAflU\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"s6YedJr12\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"PVXqkM86e\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"SEKkLGqR6\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerDisplayContentsDiv\":\"false\",\"framerImmutableVariables\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerVariables\":\"{\\\"Sg1kz8pun\\\":\\\"text\\\",\\\"Mg_B_ZKw9\\\":\\\"textColor\\\",\\\"XTZcZ7phx\\\":\\\"click\\\",\\\"xLMsDJR23\\\":\\\"link\\\"}\",\"framerIntrinsicWidth\":\"27\",\"framerContractVersion\":\"1\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./tN8XHCtLe.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useCallback,useRef}from\"react\";/**\n * HapticClick — Global haptic feedback for the mobile web.\n * Drop it anywhere on a page. It uses the iOS silent switch hack\n * (checkbox[switch] + label.click()) for Safari, with navigator.vibrate()\n * fallback for Android.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 0\n * @framerIntrinsicHeight 0\n */const HAPTIC_ID=\"__framer_haptic\";function isIOS(){if(typeof navigator===\"undefined\")return false;return/iPhone|iPad|iPod/.test(navigator.userAgent)||navigator.platform===\"MacIntel\"&&navigator.maxTouchPoints>1;}function hasVibrateAPI(){return typeof navigator!==\"undefined\"&&\"vibrate\"in navigator;}// Patterns as [vibrate, pause, vibrate, ...] in ms\nconst PATTERNS={tap:[10],doubleTap:[10,60,10],success:[30,50,30],nudge:[40,30,15],error:[20,40,20,40,20],buzz:[200],heavy:[50],soft:[5]};/**\n * iOS hack: toggling a hidden <input type=\"checkbox\" switch>\n * via its <label> triggers a native haptic tap in Safari.\n * Pulse it multiple times with delays for patterns.\n */function pulseIOSSwitch(label,count,delayMs){let i=0;function tick(){if(i>=count)return;label.click();i++;if(i<count){setTimeout(tick,delayMs);}}tick();}// Map patterns to iOS pulse params: [pulseCount, delayBetweenMs]\nconst IOS_PULSE={tap:[1,0],doubleTap:[2,70],success:[2,80],nudge:[2,50],error:[3,60],buzz:[4,50],heavy:[1,0],soft:[1,0]};export default function HapticClick(props){const{pattern=\"tap\",customPattern=\"10, 60, 10\",customPulseCount=2,customPulseDelay=60,triggerOn=\"pointerdown\",onlyInteractive=true,style}=props;const inputRef=useRef(null);const labelRef=useRef(null);// Set the non-standard \"switch\" attribute imperatively to avoid TS errors\nuseEffect(()=>{if(inputRef.current){inputRef.current.setAttribute(\"switch\",\"\");}},[]);const fireHaptic=useCallback(()=>{// iOS: use the silent switch hack\nif(isIOS()){const label=labelRef.current;if(!label)return;if(pattern===\"custom\"){pulseIOSSwitch(label,customPulseCount,customPulseDelay);}else{const[count,delay]=IOS_PULSE[pattern]||[1,0];pulseIOSSwitch(label,count,delay);}return;}// Android / other: navigator.vibrate\nif(hasVibrateAPI()){let vibrationPattern;if(pattern===\"custom\"){vibrationPattern=customPattern.split(\",\").map(s=>parseInt(s.trim(),10)).filter(n=>!isNaN(n)&&n>0);if(vibrationPattern.length===0)vibrationPattern=[10];}else{vibrationPattern=PATTERNS[pattern]||PATTERNS.tap;}navigator.vibrate(vibrationPattern);}},[pattern,customPattern,customPulseCount,customPulseDelay]);const handleTrigger=useCallback(e=>{if(onlyInteractive){const target=e.target;const interactive=target.closest(\"a, button, [role='button'], input:not(#\"+HAPTIC_ID+\"), select, textarea, [tabindex], [data-haptic]\");if(!interactive)return;}fireHaptic();},[onlyInteractive,fireHaptic]);useEffect(()=>{const eventName=triggerOn===\"pointerup\"?\"pointerup\":triggerOn===\"click\"?\"click\":\"pointerdown\";document.addEventListener(eventName,handleTrigger,{passive:true});return()=>{document.removeEventListener(eventName,handleTrigger);if(hasVibrateAPI())navigator.vibrate(0);};},[triggerOn,handleTrigger]);return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",top:-9999,left:-9999,...style},\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"input\",{ref:inputRef,type:\"checkbox\",id:HAPTIC_ID,style:{display:\"none\"},tabIndex:-1}),/*#__PURE__*/_jsx(\"label\",{ref:labelRef,htmlFor:HAPTIC_ID,style:{display:\"none\"}})]});}HapticClick.displayName=\"Haptic Click\";addPropertyControls(HapticClick,{pattern:{type:ControlType.Enum,title:\"Pattern\",defaultValue:\"tap\",options:[\"tap\",\"doubleTap\",\"success\",\"nudge\",\"error\",\"buzz\",\"heavy\",\"soft\",\"custom\"],optionTitles:[\"Tap\",\"Double Tap\",\"Success\",\"Nudge\",\"Error\",\"Buzz\",\"Heavy\",\"Soft\",\"Custom\"]},customPattern:{type:ControlType.String,title:\"Custom Vibration\",defaultValue:\"10, 60, 10\",placeholder:\"e.g. 10, 60, 10\",description:\"Android: comma-separated vibration durations in ms.\",hidden:props=>props.pattern!==\"custom\"},customPulseCount:{type:ControlType.Number,title:\"iOS Pulses\",defaultValue:2,min:1,max:10,step:1,displayStepper:true,description:\"Number of haptic taps on iOS.\",hidden:props=>props.pattern!==\"custom\"},customPulseDelay:{type:ControlType.Number,title:\"iOS Pulse Delay\",defaultValue:60,min:20,max:300,step:10,unit:\"ms\",displayStepper:true,description:\"Delay between each iOS haptic tap.\",hidden:props=>props.pattern!==\"custom\"},triggerOn:{type:ControlType.Enum,title:\"Trigger On\",defaultValue:\"pointerdown\",options:[\"pointerdown\",\"pointerup\",\"click\"],optionTitles:[\"Press Down\",\"Release\",\"Click\"]},onlyInteractive:{type:ControlType.Boolean,title:\"Interactive Only\",defaultValue:true,enabledTitle:\"Buttons & Links\",disabledTitle:\"All Taps\",description:\"When on, only triggers on buttons, links, and inputs. Turn off for every tap.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HapticClick\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Click.map"],"mappings":"8jBAC4rC,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,4CAA3yC,IAA0L,IAAkE,IAA4B,KAAoJ,IAAyH,KAA0H,KAA0H,CAAM,EAAgB,CAAC,UAAU,CAAC,MAAM,GAAK,CAAC,UAAU,CAAC,MAAM,GAAK,CAAC,UAAU,CAAC,MAAM,GAAK,CAAC,UAAU,CAAC,MAAM,GAAK,CAAC,CAAO,EAAW,CAAC,YAAY,YAAY,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,mBAAmB,UAAU,kBAAkB,UAAU,mBAAmB,UAAU,kBAAkB,CAA8L,EAAY,CAAC,MAAM,EAAE,SAAS,GAAG,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,KAAK,QAAQ,CAAO,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,EAAiB,EAAoB,CAAO,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,aAAW,EAAE,CA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