{"version":3,"file":"Color.fRfCb5vQ.mjs","names":["__esmMin","init_npm_react_18_3_1","ce","init_jsx_runtime","c","init_framer_D1IzEvwH","addPropertyControls","ColorsSelection","props","styleId","existingStyle","style","init_Color","ControlType"],"sources":["https:/framerusercontent.com/modules/qTx8OYW6fpa1lPuSykLV/BrGWgEw2QgTWb1bpXy7B/Color.js"],"sourcesContent":["// Welcome to Template by Dee S. (https://dees.lemonsqueezy.com/)\n// Follow https://twitter.com/deespnr\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function ColorsSelection(props){useEffect(()=>{if(props.enableSelection){const styleId=\"selection-styles\";const existingStyle=document.getElementById(styleId);if(existingStyle){existingStyle.remove();}const style=document.createElement(\"style\");style.id=styleId;style.innerHTML=`\n        ::selection { \n          background: ${props.selectionBackgroundColor};\n          color: ${props.selectionTextColor};\n        }\n        ::-moz-selection { \n          background: ${props.selectionBackgroundColor};\n          color: ${props.selectionTextColor};\n        }`;document.head.appendChild(style);}else{const style=document.getElementById(\"selection-styles\");if(style){style.remove();}}},[props.enableSelection,props.selectionBackgroundColor,props.selectionTextColor]);return /*#__PURE__*/_jsx(\"div\",{});}ColorsSelection.displayName=\"Selection colors\";addPropertyControls(ColorsSelection,{enableSelection:{title:\"Selection\",type:ControlType.Boolean,defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\",description:\"Use to change the colour of selected text and background\"},selectionBackgroundColor:{title:\"Background\",type:ControlType.Color,defaultValue:\"#000\",hidden(props){return!props.enableSelection;}},selectionTextColor:{title:\"Text color\",type:ControlType.Color,defaultValue:\"#fff\",hidden(props){return!props.enableSelection;}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ColorsSelection\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Color.map"],"mappings":"A,qKAE4H,SAAwBO,EAAgB,EAAM,CAQ8C,OAR7CL,MAAc,CAAC,GAAGM,EAAM,gBAAgB,CAAC,IAAMC,EAAQ,mBAAyBC,EAAc,SAAS,eAAeD,CAAO,EAAKC,GAAeA,EAAc,OAAO,EAAG,IAAMC,EAAM,SAAS,cAAc,OAAO,EAAE,EAAM,GAAGF,EAAQ,EAAM,UAAU;;wBAEzYD,EAAM,yBAAyB;mBACpCA,EAAM,mBAAmB;;;wBAGpBA,EAAM,yBAAyB;mBACpCA,EAAM,mBAAmB;WACjC,SAAS,KAAK,YAAYG,CAAK,CAAE,KAAK,CAAC,IAAMA,EAAM,SAAS,eAAe,kBAAkB,EAAKA,GAAOA,EAAM,OAAO,CAAG,CAAC,EAAE,CAACH,EAAM,gBAAgBA,EAAM,yBAAyBA,EAAM,kBAAkB,CAAC,EAAsB,gBAAK,MAAM,CAAC,CAAC,CAAE,C,0CAAC,EAAgB,YAAY,mBAAmBF,EAAoBC,EAAgB,CAAC,gBAAgB,CAAC,MAAM,YAAY,KAAKM,EAAY,QAAQ,aAAa,GAAK,aAAa,MAAM,cAAc,KAAK,YAAY,0DAA0D,EAAE,yBAAyB,CAAC,MAAM,aAAa,KAAKA,EAAY,MAAM,aAAa,OAAO,OAAO,EAAM,CAAC,MAAM,CAACL,EAAM,eAAgB,CAAC,EAAE,mBAAmB,CAAC,MAAM,aAAa,KAAKK,EAAY,MAAM,aAAa,OAAO,OAAO,EAAM,CAAC,MAAM,CAACL,EAAM,eAAgB,CAAC,CAAC,CAAC,C"}