{"version":3,"file":"SideToSideMotion.40BonwdD.mjs","names":["__esmMin","J","init_jsx_runtime","init_npm_react_18_3_1","c","useReducedMotion","init_framer_motion_DhsWWWsN","init_framer_BWFVvmND","addPropertyControls","ControlType","buildOpacityPulseOverride","Wrapped","defaultDuration","rest","props","prefersReducedMotion","canAnimate","enabled","clampedMin","minOpacity","clampedMax","maxOpacity","safeMin","safeMax","Component","style","animate","transition","duration","delay","OpacityPulse","OpacityPulseFast20","init_OpacityPulse","buildSideToSideOverride","defaults","safeOffset","offsetPixels","computedDuration","speedPercent","xKeyframes","direction","SideToSideMotion","SideToSideMotionLeftFast","init_SideToSideMotion"],"sources":["https:/framerusercontent.com/modules/nrOpi65SEmwzL8u9nHiS/HFC1I0UFnbQV95wxkxfY/OpacityPulse.js","https:/framerusercontent.com/modules/rO6VJJ4YmstRkM5PO9iF/IEvATjnBU2HboLObTfmo/SideToSideMotion.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{forwardRef}from\"react\";import{useReducedMotion}from\"framer-motion\";function buildOpacityPulseOverride(Component,defaultDuration){const Wrapped=/*#__PURE__*/forwardRef(function OpacityPulseOverride(props,ref){const{enabled=true,duration=defaultDuration,delay=0,minOpacity=.45,maxOpacity=1,style,animate,transition,...rest}=props;const prefersReducedMotion=useReducedMotion();const canAnimate=enabled&&!prefersReducedMotion;const clampedMin=Math.min(1,Math.max(0,minOpacity));const clampedMax=Math.min(1,Math.max(0,maxOpacity));const safeMin=Math.min(clampedMin,clampedMax);const safeMax=Math.max(clampedMin,clampedMax);return /*#__PURE__*/_jsx(Component,{ref:ref,...rest,style:{...style},animate:canAnimate?{...typeof animate===\"object\"?animate:{},opacity:[safeMin,safeMax]}:animate,transition:canAnimate?{...typeof transition===\"object\"?transition:{},duration:Math.max(.1,duration),delay:Math.min(20,Math.max(0,delay)),ease:\"easeInOut\",repeat:Infinity,repeatType:\"mirror\"}:transition});});addPropertyControls(Wrapped,{enabled:{type:ControlType.Boolean,title:\"Enabled\",defaultValue:true},duration:{type:ControlType.Number,title:\"Pulse Speed\",defaultValue:defaultDuration,min:.1,max:20,step:.1,unit:\"s\"},delay:{type:ControlType.Number,title:\"Delay\",defaultValue:0,min:0,max:20,step:.1,unit:\"s\"},minOpacity:{type:ControlType.Number,title:\"Min Opacity\",defaultValue:.45,min:0,max:1,step:.01},maxOpacity:{type:ControlType.Number,title:\"Max Opacity\",defaultValue:1,min:0,max:1,step:.01}});return Wrapped;}export function OpacityPulse(Component){return buildOpacityPulseOverride(Component,3);}export function OpacityPulseFast20(Component){return buildOpacityPulseOverride(Component,2.5);}\nexport const __FramerMetadata__ = {\"exports\":{\"OpacityPulseFast20\":{\"type\":\"reactHoc\",\"name\":\"OpacityPulseFast20\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"OpacityPulse\":{\"type\":\"reactHoc\",\"name\":\"OpacityPulse\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./OpacityPulse.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{forwardRef}from\"react\";import{useReducedMotion}from\"framer-motion\";function buildSideToSideOverride(Component,defaults){const Wrapped=/*#__PURE__*/forwardRef(function SideToSideMotionOverride(props,ref){const{enabled=true,offsetPixels=20,speedPercent=defaults.speedPercent,direction=defaults.direction,style,animate,transition,...rest}=props;const prefersReducedMotion=useReducedMotion();const canAnimate=enabled&&!prefersReducedMotion;const safeOffset=Math.max(0,offsetPixels);const clampedSpeedPercent=Math.min(300,Math.max(10,speedPercent));const baseLegDurationSeconds=12;const computedDuration=baseLegDurationSeconds*100/clampedSpeedPercent;const xKeyframes=direction===\"Left\"?[safeOffset,-safeOffset]:[-safeOffset,safeOffset];return /*#__PURE__*/_jsx(Component,{ref:ref,...rest,style:{...style},animate:canAnimate?{...typeof animate===\"object\"?animate:{},x:xKeyframes}:animate,transition:canAnimate?{...typeof transition===\"object\"?transition:{},duration:Math.max(.1,computedDuration),ease:\"easeInOut\",repeat:Infinity,repeatType:\"mirror\"}:transition});});addPropertyControls(Wrapped,{enabled:{type:ControlType.Boolean,title:\"Enabled\",defaultValue:true},offsetPixels:{type:ControlType.Number,title:\"Offset\",defaultValue:20,min:0,max:400,step:1,unit:\"px\"},speedPercent:{type:ControlType.Number,title:\"Speed\",defaultValue:defaults.speedPercent,min:10,max:300,step:1,unit:\"%\"},direction:{type:ControlType.Enum,title:\"Direction\",options:[\"Left\",\"Right\"],optionTitles:[\"Left\",\"Right\"],defaultValue:defaults.direction,displaySegmentedControl:true}});return Wrapped;}export function SideToSideMotion(Component){return buildSideToSideOverride(Component,{speedPercent:100,direction:\"Right\"});}export function SideToSideMotionLeftFast(Component){return buildSideToSideOverride(Component,{speedPercent:115,direction:\"Left\"});}\nexport const __FramerMetadata__ = {\"exports\":{\"SideToSideMotionLeftFast\":{\"type\":\"reactHoc\",\"name\":\"SideToSideMotionLeftFast\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SideToSideMotion\":{\"type\":\"reactHoc\",\"name\":\"SideToSideMotion\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SideToSideMotion.map"],"mappings":"A,2NAAyK,SAASU,EAA0B,EAAU,EAAgB,CAAC,IAAMC,EAAqB,gBAAW,SAA8B,EAAM,EAAI,CAAC,GAAK,CAAC,UAAQ,GAAK,WAASC,EAAgB,QAAM,EAAE,aAAW,IAAI,aAAW,EAAE,QAAM,UAAQ,aAAW,GAAGC,GAAMC,EAAYC,EAAqBV,EAAiB,EAAQW,EAAWC,GAAS,CAACF,EAA2BG,EAAW,KAAK,IAAI,EAAE,KAAK,IAAI,EAAEC,CAAU,CAAC,EAAQC,EAAW,KAAK,IAAI,EAAE,KAAK,IAAI,EAAEC,CAAU,CAAC,EAAQC,EAAQ,KAAK,IAAIJ,EAAWE,CAAU,EA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