{"version":3,"file":"Action_Kit_Function_BG_LazyLoad_2.CWCi-LOF.mjs","names":["rive"],"sources":["https:/framerusercontent.com/modules/Z0DGF0w6dOl1tyiohwum/B15GZCxuhjO4if96yIX3/Action_Kit_Function_BG_LazyLoad_2.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import rive from\"@rive-app/react-canvas\";import{useInView}from\"react-intersection-observer\";const IMAGE_PLACEHOLDER=\"https://ucarecdn.com/2a1f2380-75f3-4948-8fda-e8abc808e1ca/GenericPlaceholder.png\";const RIVE_URL=\"https://ucarecdn.com/197eda71-27d5-4d86-be79-26630c0af66c/bg__add_actionkit_as_function_tool_1.riv\";const ART_BOARD=\"Bg - Add ActionKit as function tool - DESKTOP \";//const ART_BOARD = \"Artboard\"\nconst STATE_MACHINE_NAME=\"State Machine 1\";export default function ActionKitFunctionBG(){// 1) Setup Rive normally, using a string URL (not an import).\nconst{RiveComponent}=rive.useRive({src:RIVE_URL,autoplay:true,stateMachines:STATE_MACHINE_NAME,artboard:ART_BOARD,layout:new rive.Layout({fit:rive.Fit.FitWidth,alignment:rive.Alignment.Center})});// 2) Use react-intersection-observer\nconst[ref,isInView]=useInView({triggerOnce:true,threshold:.2});// 3) If inView is false, render <img> placeholder; if true, show the Rive.\nreturn /*#__PURE__*/_jsx(\"section\",{ref:ref,style:{width:\"100%\",height:\"100%\"},children:isInView?/*#__PURE__*/_jsx(RiveComponent,{style:{width:\"100%\",height:\"100%\"}}):/*#__PURE__*/_jsx(\"img\",{src:IMAGE_PLACEHOLDER,alt:\"Placeholder\",style:{width:\"100%\",height:\"100%\"}})});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ActionKitFunctionBG\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Action_Kit_Function_BG_LazyLoad_2.map"],"mappings":"yMAC2C,SAAwB,GAAqB,CACxF,GAAK,CAAC,iBAAeA,EAAK,QAAQ,CAAC,IAAI,EAAS,SAAS,GAAK,cAAc,EAAmB,SAAS,EAAU,OAAO,IAAIA,EAAK,OAAO,CAAC,IAAIA,EAAK,IAAI,SAAS,UAAUA,EAAK,UAAU,OAAO,CAAC,CAAC,CAAC,CAC9L,CAAC,EAAI,GAAU,EAAU,CAAC,YAAY,GAAK,UAAU,GAAG,CAAC,CAC9D,OAAoB,EAAK,UAAU,CAAK,MAAI,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,CAAC,SAAS,EAAsB,EAAK,EAAc,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,CAAC,CAAC,CAAc,EAAK,MAAM,CAAC,IAAI,EAAkB,IAAI,cAAc,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,0BAJnO,IAAyC,IAAmD,CAAM,EAAkB,mFAAyF,EAAS,qGAA2G,EAAU,iDAChX,EAAmB"}