{"version":3,"file":"OpenSourceImageToVideoContentFilterOverride_1.Bw4-K7o7.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/bgY1LQbOrm6qxC1fi05X/gnXzffW3ID0KZEROSZRN/OpenSourceImageToVideoContentFilterOverride_1.js"],"sourcesContent":["import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{AnimatePresence,motion}from\"framer-motion\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{useEffect,useState}from\"react\";const useStore=createStore({category:\"\",allVisibility:false,obsVisibility:false});export function CMScomponent(Component){return props=>{const[store]=useStore();console.log(\"Props From CMS Component\",props);console.log(\"inside CMSComponent filter updated to:\",store.category);return /*#__PURE__*/_jsx(AnimatePresence,{mode:\"wait\",children:/*#__PURE__*/_jsx(motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0,transition:{duration:.3}},exit:{opacity:0,y:-20,transition:{duration:.2}},children:/*#__PURE__*/_jsx(Component,{...props,filter:store.category})},store.category)});};}export function setDropdownTitle(Component){return props=>{const[store]=useStore();const[activeCategory,setActiveCategory]=useState(store.category);console.log(\"Props From Dropdown Component\",props);useEffect(()=>{// Update the active category when the store changes\nsetActiveCategory(store.category===\"\"?\"All\":store.category);},[store.category]);console.log(\"Active Category : \",activeCategory);return /*#__PURE__*/_jsx(Component,{...props,mainTitle:activeCategory});};}export function PrintProps(Component){return props=>{console.log(\"Props Inside Component : \",props);return /*#__PURE__*/_jsx(Component,{...props});};}export function onClickFilterChange(Component){return props=>{const[store,setStore]=useStore();const{\"data-framer-name\":dataFramerName,...rest}=props;const handleClick=()=>{console.log(\"props in Item Component:\",props);console.log(\"title in Item Component:\",props.title);//console.log(\"text value in filterText:\", text)\nconst category=props.title===\"All\"?\"\":props.title;setStore({category});// Update the URL with the selected category\n// const newUrl = category ? `/${category}` : \"/\"\n// window.history.pushState(null, \"\", newUrl)\n};return /*#__PURE__*/_jsx(Component,{...rest,onClick:handleClick});};}export function visibilityAllButton(Component){return props=>{const[store,setStore]=useStore();const[activeCategory,setActiveCategory]=useState(store.category);console.log(\"Here 1\");const handleClick=()=>{console.log(\"Store Category:\",store.category);console.log(\"Handle Click Ke Andar:\",props.title);//console.log(\"text value in filterText:\", text)\nconst category=\"\";setStore({category});// Update the URL with the selected category\n// const newUrl = category ? `/${category}` : \"/\"\n// window.history.pushState(null, \"\", newUrl)\n};useEffect(()=>{// Update the active category when the store changes\nsetActiveCategory(store.category);},[store.category]);console.log(\"Here 2\");const flag=activeCategory!==\"\"?true:false;return /*#__PURE__*/_jsx(_Fragment,{children:flag&&/*#__PURE__*/_jsx(Component,{...props,onClick:handleClick})});};}export function alternateClickVisibility(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{const{obsVisibility}=store;const newObsVisibility=!obsVisibility;setStore({obsVisibility:newObsVisibility});}});};}export function setVisibilityObservations(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(_Fragment,{children:store.obsVisibility&&/*#__PURE__*/_jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"setDropdownTitle\":{\"type\":\"reactHoc\",\"name\":\"setDropdownTitle\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"alternateClickVisibility\":{\"type\":\"reactHoc\",\"name\":\"alternateClickVisibility\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CMScomponent\":{\"type\":\"reactHoc\",\"name\":\"CMScomponent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"PrintProps\":{\"type\":\"reactHoc\",\"name\":\"PrintProps\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"setVisibilityObservations\":{\"type\":\"reactHoc\",\"name\":\"setVisibilityObservations\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"onClickFilterChange\":{\"type\":\"reactHoc\",\"name\":\"onClickFilterChange\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"visibilityAllButton\":{\"type\":\"reactHoc\",\"name\":\"visib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