{"version":3,"file":"FloatingSkipConsultation.CltfMSRc.mjs","names":["React.useMemo","React.useState"],"sources":["https:/framerusercontent.com/modules/QVVCERWaUi0tTDPDEBg8/KrGxTskKTXtZIKfu07gR/FloatingSkipConsultation.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";function ArrowIcon({variant,color=\"#000\",size=20}){const common={width:size,height:size,viewBox:\"0 0 24 24\",fill:\"none\",stroke:color,strokeWidth:2,strokeLinecap:\"round\",strokeLinejoin:\"round\"};switch(variant){case\"chevronRight\":return /*#__PURE__*/_jsx(\"svg\",{...common,children:/*#__PURE__*/_jsx(\"polyline\",{points:\"9 18 15 12 9 6\"})});case\"arrowUpRight\":return /*#__PURE__*/_jsxs(\"svg\",{...common,children:[/*#__PURE__*/_jsx(\"line\",{x1:\"7\",y1:\"17\",x2:\"17\",y2:\"7\"}),/*#__PURE__*/_jsx(\"polyline\",{points:\"7 7 17 7 17 17\"})]});case\"longArrow\":return /*#__PURE__*/_jsxs(\"svg\",{...common,children:[/*#__PURE__*/_jsx(\"line\",{x1:\"4\",y1:\"12\",x2:\"18\",y2:\"12\"}),/*#__PURE__*/_jsx(\"polyline\",{points:\"14 8 18 12 14 16\"})]});case\"arrowRight\":default:return /*#__PURE__*/_jsxs(\"svg\",{...common,children:[/*#__PURE__*/_jsx(\"line\",{x1:\"5\",y1:\"12\",x2:\"19\",y2:\"12\"}),/*#__PURE__*/_jsx(\"polyline\",{points:\"12 5 19 12 12 19\"})]});}}export default function FloatingCTA(props){const{label,href,// Gate\ncountry,// Colours\nbackground,textColor,arrowColor,// Typography\nfont,fontSize,fontWeight,// Icon\niconVariant,iconSize,// Layout\nminHeight,radius,paddingX,// Width\nmaxWidth,mobileBreakpoint,mobileSidePadding,// Shadow\nshadowBlur,shadowY,shadowSpread,shadowColor,// Position\nbottomOffset,// Text\nsingleLine,// Hover / bounce\nhoverLift,hoverScale,hoverDurationMs,hoverEasing,hoverShadowBoost}=props;const shouldRender=React.useMemo(()=>{const raw=(country||\"\").trim();if(!raw)return true;try{const v=(localStorage.getItem(\"cc_currency\")||\"\").trim().toLowerCase();if(!v)return false;// Allow: \"USD, GBP, eur\" (also allows spaces/newlines)\nconst allowed=raw.split(/[,\\n]/g).map(s=>s.trim().toLowerCase()).filter(Boolean);if(allowed.length===0)return true;return allowed.includes(v);}catch{return false;}},[country]);const[isMobile,setIsMobile]=React.useState(false);const[isHover,setIsHover]=React.useState(false);React.useEffect(()=>{const onResize=()=>setIsMobile(window.innerWidth<mobileBreakpoint);onResize();window.addEventListener(\"resize\",onResize);return()=>window.removeEventListener(\"resize\",onResize);},[mobileBreakpoint]);const handleClick=()=>{if(href)window.location.href=href;};if(!shouldRender)return null;const family=font?.family||font?.fontFamily||\"Inter\";const baseShadow=shadowBlur>0?`0 ${shadowY}px ${shadowBlur}px ${shadowSpread}px ${shadowColor}`:\"none\";const boostedBlur=Math.max(0,shadowBlur+hoverShadowBoost);const hoverShadow=boostedBlur>0?`0 ${shadowY}px ${boostedBlur}px ${shadowSpread}px ${shadowColor}`:\"none\";const pillWidth=isMobile?\"100%\":\"fit-content\";const pillMaxWidth=isMobile?\"100%\":maxWidth>0?`${maxWidth}px`:\"none\";const transition=`transform ${Math.max(0,hoverDurationMs)}ms ${hoverEasing}, box-shadow ${Math.max(0,hoverDurationMs)}ms ${hoverEasing}`;const lift=!isMobile&&isHover?-hoverLift:0;const scale=!isMobile&&isHover?hoverScale:1;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",left:0,right:0,bottom:bottomOffset,zIndex:9999,pointerEvents:\"none\",display:\"flex\",justifyContent:\"center\",boxSizing:\"border-box\",paddingLeft:isMobile?mobileSidePadding:0,paddingRight:isMobile?mobileSidePadding:0,paddingBottom:isMobile?mobileSidePadding:0},children:/*#__PURE__*/_jsx(\"div\",{onClick:handleClick,onMouseEnter:()=>setIsHover(true),onMouseLeave:()=>setIsHover(false),style:{pointerEvents:\"auto\",width:pillWidth,maxWidth:pillMaxWidth,background,borderRadius:radius,cursor:href?\"pointer\":\"default\",userSelect:\"none\",WebkitTapHighlightColor:\"transparent\",// Height behaviour (no collapsing)\nminHeight,height:\"auto\",// Content layout\ndisplay:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxSizing:\"border-box\",paddingLeft:paddingX,paddingRight:paddingX,// Hover bounce\ntransform:`translateY(${lift}px) scale(${scale})`,transition,boxShadow:isHover&&!isMobile?hoverShadow:baseShadow},role:href?\"button\":undefined,\"aria-disabled\":!href,children:/*#__PURE__*/_jsxs(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",gap:10,color:textColor,fontFamily:family,fontSize,fontWeight,lineHeight:\"1.2em\",textAlign:\"center\",whiteSpace:singleLine?\"nowrap\":\"normal\",overflow:\"hidden\",textOverflow:singleLine?\"ellipsis\":\"clip\",maxWidth:\"100%\"},children:[/*#__PURE__*/_jsx(ArrowIcon,{variant:iconVariant,color:arrowColor,size:iconSize}),label]})})});}FloatingCTA.defaultProps={label:\"Prefer to text? Let's connect on WhatsApp.\",href:\"\",country:\"\",background:\"#ffffff\",textColor:\"#111111\",arrowColor:\"#111111\",font:{family:\"Inter\"},fontSize:18,fontWeight:650,iconVariant:\"arrowRight\",iconSize:20,minHeight:56,radius:999,paddingX:22,maxWidth:720,mobileBreakpoint:520,mobileSidePadding:16,shadowBlur:18,shadowY:8,shadowSpread:0,shadowColor:\"rgba(0,0,0,0.12)\",bottomOffset:16,singleLine:true,// Hover\nhoverLift:6,hoverScale:1.02,hoverDurationMs:180,hoverEasing:\"cubic-bezier(0.2, 0.8, 0.2, 1)\",hoverShadowBoost:8};addPropertyControls(FloatingCTA,{label:{type:ControlType.String,title:\"Text\"},href:{type:ControlType.String,title:\"Link\"},country:{type:ControlType.String,title:\"Country\",description:\"If set, only shows when localStorage key cc_currency matches this value (case-insensitive).\",defaultValue:\"\"},background:{type:ControlType.Color,title:\"Background\"},textColor:{type:ControlType.Color,title:\"Text Colour\"},arrowColor:{type:ControlType.Color,title:\"Arrow Colour\"},minHeight:{type:ControlType.Number,title:\"Min Height\",min:36,max:140},radius:{type:ControlType.Number,title:\"Radius\",min:0,max:999},paddingX:{type:ControlType.Number,title:\"Padding X\",min:8,max:60},maxWidth:{type:ControlType.Number,title:\"Max Width\",min:160,max:2e3},mobileBreakpoint:{type:ControlType.Number,title:\"Mobile <\",min:320,max:1e3},mobileSidePadding:{type:ControlType.Number,title:\"Mobile Padding\",min:0,max:40},bottomOffset:{type:ControlType.Number,title:\"Bottom Offset\",min:0,max:80},shadowBlur:{type:ControlType.Number,title:\"Shadow Blur\",min:0,max:80},shadowY:{type:ControlType.Number,title:\"Shadow Y\",min:-40,max:40},shadowSpread:{type:ControlType.Number,title:\"Shadow Spread\",min:-40,max:40},shadowColor:{type:ControlType.Color,title:\"Shadow Colour\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:FloatingCTA.defaultProps.font},fontSize:{type:ControlType.Number,title:\"Font Size\",min:10,max:48},fontWeight:{type:ControlType.Number,title:\"Weight\",min:100,max:900,step:50},iconVariant:{type:ControlType.Enum,title:\"Icon\",options:[\"arrowRight\",\"arrowUpRight\",\"chevronRight\",\"longArrow\"],optionTitles:[\"Arrow →\",\"Arrow ↗\",\"Chevron ›\",\"Long Arrow →\"]},iconSize:{type:ControlType.Number,title:\"Icon Size\",min:12,max:30},singleLine:{type:ControlType.Boolean,title:\"Single line\",defaultValue:true},hoverLift:{type:ControlType.Number,title:\"Hover Lift\",min:0,max:20,defaultValue:6},hoverScale:{type:ControlType.Number,title:\"Hover Scale\",min:1,max:1.1,step:.01,defaultValue:1.02},hoverDurationMs:{type:ControlType.Number,title:\"Hover Time (ms)\",min:0,max:600,defaultValue:180},hoverShadowBoost:{type:ControlType.Number,title:\"Hover Shadow +\",min:0,max:40,defaultValue:8},hoverEasing:{type:ControlType.Enum,title:\"Hover easing\",options:[\"ease\",\"ease-in\",\"ease-out\",\"ease-in-out\",\"cubic-bezier(0.2, 0.8, 0.2, 1)\",\"cubic-bezier(0.34, 1.56, 0.64, 1)\"],optionTitles:[\"Ease\",\"Ease in\",\"Ease out\",\"Ease in-out\",\"Soft\",\"Bouncy\"],defaultValue:\"cubic-bezier(0.2, 0.8, 0.2, 1)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FloatingCTA\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FloatingSkipConsultation.map"],"mappings":"6MAAyI,SAAS,EAAU,CAAC,UAAQ,QAAM,OAAO,OAAK,IAAI,CAAC,IAAM,EAAO,CAAC,MAAM,EAAK,OAAO,EAAK,QAAQ,YAAY,KAAK,OAAO,OAAO,EAAM,YAAY,EAAE,cAAc,QAAQ,eAAe,QAAQ,CAAC,OAAO,EAAP,CAAgB,IAAI,eAAe,OAAoB,EAAK,MAAM,CAAC,GAAG,EAAO,SAAsB,EAAK,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,IAAI,eAAe,OAAoB,EAAM,MAAM,CAAC,GAAG,EAAO,SAAS,CAAc,EAAK,OAAO,CAAC,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC,CAAc,EAAK,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,YAAY,OAAoB,EAAM,MAAM,CAAC,GAAG,EAAO,SAAS,CAAc,EAAK,OAAO,CAAC,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC,CAAc,EAAK,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,aAAa,QAAQ,OAAoB,EAAM,MAAM,CAAC,GAAG,EAAO,SAAS,CAAc,EAAK,OAAO,CAAC,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GA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