{"version":3,"file":"AutoResizeIframe.D8JVbubu.mjs","names":["Phosphor","React.useContext","React.useMemo","React.useId","sharedStyle.className","className","RichText","React.Fragment","sharedStyle.css","sharedStyle.fonts","useRef"],"sources":["https:/framerusercontent.com/modules/q76odSzGnAzJfGk5Q6IX/1csfQKDjRN3kMKfPStLp/RkwtNtYC9.js","https:/framerusercontent.com/modules/Gk2wNbRVxmy4dIRH4uAn/jHmqCCd7REmBzF5X8HV8/AutoResizeIframe.js"],"sourcesContent":["// Generated by Framer (214386f)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getFonts,getPropertyControls,RichText,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{Icon as Phosphor}from\"https://framerusercontent.com/modules/tYScH7LTqUtz5KUaUAYP/CAjjxbTJBxHwH1MagCef/Phosphor.js\";import*as sharedStyle from\"https://framerusercontent.com/modules/9kIHIE9iPRL2y1SVBHfj/H0iaskauMeNliUuJSxga/no4VIAehA.js\";const PhosphorFonts=getFonts(Phosphor);const PhosphorControls=getPropertyControls(Phosphor);const cycleOrder=[\"wp80lOsAm\",\"hm9k_k9Im\"];const variantClassNames={hm9k_k9Im:\"framer-v-xf1jkl\",wp80lOsAm:\"framer-v-1qb0i8t\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants===null||variants===void 0?void 0:variants.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const humanReadableVariantMap={\"Pill Small\":\"hm9k_k9Im\",Pill:\"wp80lOsAm\"};const transitions={default:{damping:60,delay:0,mass:1,stiffness:500,type:\"spring\"}};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value!==null&&value!==void 0?value:config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/ _jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Component=/*#__PURE__*/ React.forwardRef(function({id,style,className,width,height,layoutId,variant:outerVariant=\"wp80lOsAm\",title:ocQcc7fwO=\"Testimonials\",icon:YOk8dX6kO=\"Chat\",color:ChxP8Daid='var(--token-11ff12d9-32be-40f8-8981-def548ce84f3, rgb(10, 122, 21)) /* {\"name\":\"Accent / Light Green\"} */',...restProps},ref){const outerVariantId=humanReadableVariantMap[outerVariant];const variant=outerVariantId||outerVariant;const{baseVariant,classNames,gestureVariant,setGestureState,setVariant,transition,variants}=useVariantState({cycleOrder,defaultVariant:\"wp80lOsAm\",transitions,variant,variantClassNames});const layoutDependency=variants.join(\"-\")+restProps.layoutDependency;const isDisplayed=()=>{if(baseVariant===\"hm9k_k9Im\")return false;return true;};const defaultLayoutId=React.useId();return /*#__PURE__*/ _jsx(LayoutGroup,{id:layoutId!==null&&layoutId!==void 0?layoutId:defaultLayoutId,children:/*#__PURE__*/ _jsx(motion.div,{initial:variant,animate:variants,onHoverStart:()=>setGestureState({isHovered:true}),onHoverEnd:()=>setGestureState({isHovered:false}),onTapStart:()=>setGestureState({isPressed:true}),onTap:()=>setGestureState({isPressed:false}),onTapCancel:()=>setGestureState({isPressed:false}),className:cx(\"framer-5xZHU\",sharedStyle.className,classNames),style:{display:\"contents\"},children:/*#__PURE__*/ _jsx(Transition,{value:transition,children:/*#__PURE__*/ _jsxs(motion.div,{...restProps,className:cx(\"framer-1qb0i8t\",className),\"data-border\":true,\"data-framer-name\":\"Pill\",layoutDependency:layoutDependency,layoutId:\"wp80lOsAm\",ref:ref,style:{\"--border-bottom-width\":\"1px\",\"--border-color\":'var(--token-4ab8ccda-4faa-4b8d-9df7-1275bcc8c72b, rgb(201, 241, 204)) /* {\"name\":\"Accent / Green Border\"} */',\"--border-left-width\":\"1px\",\"--border-right-width\":\"1px\",\"--border-style\":\"solid\",\"--border-top-width\":\"1px\",backgroundColor:\"var(--token-0884347d-9266-4c73-9863-858719853d7b, rgb(226, 241, 228))\",borderBottomLeftRadius:32,borderBottomRightRadius:32,borderTopLeftRadius:32,borderTopRightRadius:32,...style},...addPropertyOverrides({hm9k_k9Im:{\"data-framer-name\":\"Pill Small\"}},baseVariant,gestureVariant),children:[isDisplayed()&&/*#__PURE__*/ _jsx(motion.div,{className:\"framer-u0jmk3-container\",layoutDependency:layoutDependency,layoutId:\"XvymtTKeG-container\",children:/*#__PURE__*/ _jsx(Phosphor,{color:ChxP8Daid,height:\"100%\",iconSearch:\"House\",iconSelection:YOk8dX6kO,id:\"XvymtTKeG\",layoutId:\"XvymtTKeG\",mirrored:false,selectByList:true,style:{height:\"100%\",width:\"100%\"},weight:\"bold\",width:\"100%\"})}),/*#__PURE__*/ _jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/ _jsx(React.Fragment,{children:/*#__PURE__*/ _jsx(motion.p,{className:\"framer-styles-preset-1r9uoyi\",\"data-styles-preset\":\"no4VIAehA\",children:\"Testimonials\"})}),className:\"framer-102yxxy\",layoutDependency:layoutDependency,layoutId:\"JESxBEO9H\",style:{\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\",\"--framer-paragraph-spacing\":\"0px\"},text:ocQcc7fwO,verticalAlignment:\"top\",withExternalLayout:true})]})})})});});const css=['.framer-5xZHU [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; pointer-events: none; }',\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-5xZHU .framer-1jrgu8y { display: block; }\",\".framer-5xZHU .framer-1qb0i8t { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 4px; height: min-content; justify-content: center; overflow: hidden; padding: 8px 12px 8px 12px; position: relative; width: min-content; will-change: transform; }\",\".framer-5xZHU .framer-u0jmk3-container { flex: none; height: 16px; position: relative; width: 16px; }\",\".framer-5xZHU .framer-102yxxy { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\",\"@supports (background: -webkit-named-image(i)) and (not (font-palette:dark)) { .framer-5xZHU .framer-1qb0i8t { gap: 0px; } .framer-5xZHU .framer-1qb0i8t > * { margin: 0px; margin-left: calc(4px / 2); margin-right: calc(4px / 2); } .framer-5xZHU .framer-1qb0i8t > :first-child { margin-left: 0px; } .framer-5xZHU .framer-1qb0i8t > :last-child { margin-right: 0px; } }\",\".framer-5xZHU.framer-v-xf1jkl .framer-1qb0i8t { padding: 4px 12px 4px 12px; }\",...sharedStyle.css];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 33\n * @framerIntrinsicWidth 126\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"hm9k_k9Im\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"ocQcc7fwO\":\"title\",\"YOk8dX6kO\":\"icon\",\"ChxP8Daid\":\"color\"}\n */ const FramerRkwtNtYC9=withCSS(Component,css,\"framer-5xZHU\");export default FramerRkwtNtYC9;FramerRkwtNtYC9.displayName=\"Components / Pill\";FramerRkwtNtYC9.defaultProps={height:33,width:126};addPropertyControls(FramerRkwtNtYC9,{variant:{options:[\"wp80lOsAm\",\"hm9k_k9Im\"],optionTitles:[\"Pill\",\"Pill Small\"],title:\"Variant\",type:ControlType.Enum},ocQcc7fwO:{defaultValue:\"Testimonials\",displayTextArea:false,title:\"Title\",type:ControlType.String},YOk8dX6kO:(PhosphorControls===null||PhosphorControls===void 0?void 0:PhosphorControls[\"iconSelection\"])&&{...PhosphorControls[\"iconSelection\"],defaultValue:\"Chat\",hidden:undefined,title:\"Icon\"},ChxP8Daid:{defaultValue:'var(--token-11ff12d9-32be-40f8-8981-def548ce84f3, rgb(10, 122, 21)) /* {\"name\":\"Accent / Light Green\"} */',title:\"Color\",type:ControlType.Color}});addFonts(FramerRkwtNtYC9,[...PhosphorFonts,...sharedStyle.fonts]);\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerRkwtNtYC9\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"126\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"hm9k_k9Im\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"33\",\"framerVariables\":\"{\\\"ocQcc7fwO\\\":\\\"title\\\",\\\"YOk8dX6kO\\\":\\\"icon\\\",\\\"ChxP8Daid\\\":\\\"color\\\"}\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RkwtNtYC9.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useRef}from\"react\";export function withIframeHeight(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const containerRef=useRef(null);useEffect(()=>{const handleMessage=event=>{if(!containerRef.current){return;}if(event.data&&event.data?.type===\"iframe-resize\"){const height=event.data.height;if(typeof height===\"number\"&&containerRef.current){containerRef.current.parentElement.style.height=height+\"px\";}}};window.addEventListener(\"message\",handleMessage);return()=>{window.removeEventListener(\"message\",handleMessage);};},[]);return /*#__PURE__*/_jsx(\"div\",{style:{height:\"100%\",width:\"100%\"},ref:containerRef,children:/*#__PURE__*/_jsx(Component,{ref:ref,...props})});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withIframeHeight\":{\"type\":\"reactHoc\",\"name\":\"withIframeHeight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AutoResizeIframe.map"],"mappings":"kdACkuB,S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