{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/2PtZ8FkGsbNsvyRagea9/mPn4SHnndFJfYNF9Hgt7/WorkflowTemplatesCarousel.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/#code-components-auto-sizing\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function WorkflowTemplatesCarousel(props){const[height,setHeight]=useState(100);const[iframeSrc,setIframeSrc]=useState(\"\");const iframeRef=useRef(null);useEffect(()=>{const messageHandler=event=>{if(event.data.type===\"LAYOUT_HEIGHT\"){setHeight(event.data.height);}};window.addEventListener(\"message\",messageHandler,false);setIframeSrc(`https://app.glade.ai/workflow-templates/${props.value!==\"all\"?props.value:\"\"}`);return()=>{window.removeEventListener(\"message\",messageHandler,false);};},[]);return /*#__PURE__*/_jsx(\"iframe\",{ref:iframeRef,src:iframeSrc,style:{...style,height}});}const style={border:\"none\",width:\"100%\",overflow:\"hidden\"};addPropertyControls(WorkflowTemplatesCarousel,{value:{type:ControlType.Enum,defaultValue:\"all\",options:[\"all\",\"bankruptcy\",\"immigration\",\"personal-injury\"],optionTitles:[\"all\",\"bankruptcy\",\"immigration\",\"personal-injury\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"WorkflowTemplatesCarousel\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WorkflowTemplatesCarousel.map"],
  "mappings": "uJAMkB,SAARA,EAA2CC,EAAM,CAAC,GAAK,CAACC,EAAOC,CAAS,EAAEC,EAAS,GAAG,EAAO,CAACC,EAAUC,CAAY,EAAEF,EAAS,EAAE,EAAQG,EAAUC,EAAO,IAAI,EAAE,OAAAC,EAAU,IAAI,CAAC,IAAMC,EAAeC,GAAO,CAAIA,EAAM,KAAK,OAAO,iBAAiBR,EAAUQ,EAAM,KAAK,MAAM,CAAG,EAAE,OAAAC,EAAO,iBAAiB,UAAUF,EAAe,EAAK,EAAEJ,EAAa,2CAA2CL,EAAM,QAAQ,MAAMA,EAAM,MAAM,EAAE,EAAE,EAAQ,IAAI,CAACW,EAAO,oBAAoB,UAAUF,EAAe,EAAK,CAAE,CAAE,EAAE,CAAC,CAAC,EAAsBG,EAAK,SAAS,CAAC,IAAIN,EAAU,IAAIF,EAAU,MAAM,CAAC,GAAGS,EAAM,OAAAZ,CAAM,CAAC,CAAC,CAAE,CAAC,IAAMY,EAAM,CAAC,OAAO,OAAO,MAAM,OAAO,SAAS,QAAQ,EAAEC,EAAoBf,EAA0B,CAAC,MAAM,CAAC,KAAKgB,EAAY,KAAK,aAAa,MAAM,QAAQ,CAAC,MAAM,aAAa,cAAc,iBAAiB,EAAE,aAAa,CAAC,MAAM,aAAa,cAAc,iBAAiB,CAAC,CAAC,CAAC",
  "names": ["WorkflowTemplatesCarousel", "props", "height", "setHeight", "ye", "iframeSrc", "setIframeSrc", "iframeRef", "pe", "ue", "messageHandler", "event", "window", "p", "style", "addPropertyControls", "ControlType"]
}
