{"version":3,"file":"Color.SeApkawT.mjs","names":[],"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":"kQAE4H,SAAwB,EAAgB,EAAM,CAQ8C,MAR7C,GAAU,IAAI,CAAC,GAAG,EAAM,gBAAgB,CAAC,IAAM,EAAQ,mBAAyB,EAAc,SAAS,eAAe,EAAQ,CAAC,AAAG,GAAe,EAAc,QAAQ,CAAE,IAAM,EAAM,SAAS,cAAc,QAAQ,CAQpX,AARqX,EAAM,GAAG,EAAQ,EAAM,WAAW;;wBAE1Y,EAAM,yBAAyB;mBACpC,EAAM,mBAAmB;;;wBAGpB,EAAM,yBAAyB;mBACpC,EAAM,mBAAmB;WACjC,SAAS,KAAK,YAAY,EAAM,AAAE,KAAI,CAAC,IAAM,EAAM,SAAS,eAAe,mBAAmB,CAAC,AAAG,GAAO,EAAM,QAAQ,AAAG,CAAC,EAAC,CAAC,EAAM,gBAAgB,EAAM,yBAAyB,EAAM,kBAAmB,EAAC,CAAqB,EAAK,MAAM,CAAE,EAAC,AAAE,cAA+C,AAR3S,GAA2C,IAA6B,IAAoD,CAQgI,EAAgB,YAAY,mBAAmB,EAAoB,EAAgB,CAAC,gBAAgB,CAAC,MAAM,YAAY,KAAK,EAAY,QAAQ,cAAa,EAAK,aAAa,MAAM,cAAc,KAAK,YAAY,0DAA2D,EAAC,yBAAyB,CAAC,MAAM,aAAa,KAAK,EAAY,MAAM,aAAa,OAAO,OAAO,EAAM,CAAC,OAAO,EAAM,eAAiB,CAAC,EAAC,mBAAmB,CAAC,MAAM,aAAa,KAAK,EAAY,MAAM,aAAa,OAAO,OAAO,EAAM,CAAC,OAAO,EAAM,eAAiB,CAAC,CAAC,EAAC"}