{"version":3,"file":"TextHighlight.f0CsYtMB.mjs","names":["useMemo","useState","HomeFactory","React","__esmMin","npm_react_18_3_1_exports","pe","init_npm_react_18_3_1","_e","de","J","init_jsx_runtime","ce","fontStore","addPropertyControls","init_framer_BL70qLPA","RenderTarget","ControlType","containerStyles","emptyStateStyle","NullState","init_nullstate","init_icon_nullstate_js_0_7","r","s","init_home","n","o","e","i","l","useIconSelection","iconSearchResult","iconSearch","iconSearchTerm","lowercaseIconKeyPairs","findByArray","iconKeys","iconSelection","selectByList","defaultEvents","init_utils","arr","a","search","init_utils_MaUy","Icon","props","iconKey","SelectedIcon","setSelectedIcon","importModule","active","module","moduleBaseUrl","emptyState","mirrored","uppercaseIconKeys","init_Feather","name","key","res","fonts","css","className","init_SddJJCHUv","TextHighlight","styleId","styleEl","getSelectorForScope","scope","customSelector","scopes","b","selector","scopeConfig","prefix","mozPrefix","includeInputs","init_TextHighlight"],"sources":["https:/framerusercontent.com/modules/DyldKav0OOAWR3bCAlhK/8c3l9FzyOlGpbPncYhfc/nullstate.js","https:/framer.com/m/framer/icon-nullstate.js@0.7.0","https:/framerusercontent.com/modules/8tFVJ9SCM5akQRM0UzVD/YkxZV5bKC4LrRDEdvAgQ/home.js","https:/framerusercontent.com/modules/Ma20hU0GGRxLxZphbywl/OSpwWF91FHPVFyQJjMHt/utils.js","https:/framer.com/m/utils-MaUy.js@OSpwWF91FHPVFyQJjMHt","https:/framerusercontent.com/modules/7Ls2xI2Kql2CfPQkDhTy/XCCaaUbEdMRWKm6QXpcT/Feather.js","https:/framerusercontent.com/modules/KqH2QOdzPnlRwYjgOyZN/dehi2NQRYwCGWbIeJ5Nm/SddJJCHUv.js","https:/framerusercontent.com/modules/5whgieCMi4rS763UbZNE/OgfGmdbekJj6XEZOcNBf/TextHighlight.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as React from \"react\";\nexport const containerStyles = {\n    width: \"100%\",\n    height: \"100%\",\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\"\n};\nconst nullIconStyle = {\n    minWidth: \"10px\",\n    minHeight: \"10px\",\n    maxWidth: \"20px\",\n    maxHeight: \"20px\",\n    width: \"60%\",\n    height: \"60%\"\n};\nconst emptyStateStyle = {\n    ...containerStyles,\n    borderRadius: 6,\n    background: \"rgba(149, 149, 149, 0.1)\",\n    border: \"1px dashed rgba(149, 149, 149, 0.15)\",\n    color: \"#a5a5a5\",\n    flexDirection: \"column\"\n};\nexport const NullState = /*#__PURE__*/ React.forwardRef((_, ref)=>{\n    return(/*#__PURE__*/ _jsx(\"div\", {\n        style: emptyStateStyle,\n        ref: ref\n    }));\n}) /*\n\n<svg\n                xmlns=\"http://www.w3.org/2000/svg\"\n                viewBox=\"0 0 30 30\"\n                style={nullIconStyle}\n            >\n                <path\n                    d=\"M 12.857 0 C 19.958 0 25.714 5.756 25.714 12.857 C 25.714 19.958 19.958 25.714 12.857 25.714 C 5.756 25.714 0 19.958 0 12.857 C 0 5.756 5.756 0 12.857 0 Z\"\n                    fill=\"#FFFFFF\"\n                ></path>\n                <path\n                    d=\"M 20.357 20.357 L 27.857 27.857\"\n                    fill=\"transparent\"\n                    strokeWidth=\"4.28\"\n                    stroke=\"#FFFFFF\"\n                    strokeLinecap=\"round\"\n                ></path>\n                <g transform=\"translate(9.643 6.429)\">\n                    <path\n                        d=\"M 3.214 12.857 L 3.214 12.857\"\n                        fill=\"transparent\"\n                        strokeWidth=\"3.75\"\n                        stroke=\"currentColor\"\n                        strokeLinecap=\"round\"\n                    ></path>\n                    <path\n                        d=\"M 0 3.214 C 0 1.004 1.843 0 3.214 0 C 4.586 0 6.429 0.603 6.429 3.214 C 6.429 5.826 3.214 5.913 3.214 7.232 C 3.214 8.552 3.214 8.571 3.214 8.571\"\n                        fill=\"transparent\"\n                        strokeWidth=\"3.22\"\n                        stroke=\"currentColor\"\n                        strokeLinecap=\"round\"\n                        strokeLinejoin=\"round\"\n                    ></path>\n                </g>\n            </svg>\n            */ ;\n\nexport const __FramerMetadata__ = {\"exports\":{\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"NullState\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./nullstate.map","/*\n * nullstate (framer/icon-nullstate@0.7.0)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/DyldKav0OOAWR3bCAlhK/8c3l9FzyOlGpbPncYhfc/nullstate.js\"\n","let r;\nvar s = (o) => {\n    if (!r) {\n        const n = o.forwardRef(({color: t = \"currentColor\", size: e = 24, ...i}, l) => {\n            return o.createElement(\"svg\", {ref: l, xmlns: \"http://www.w3.org/2000/svg\", width: e, height: e, viewBox: \"0 0 24 24\", fill: \"none\", stroke: t, strokeWidth: \"2\", strokeLinecap: \"round\", strokeLinejoin: \"round\", ...i}, o.createElement(\"path\", {d: \"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\"}), o.createElement(\"polyline\", {points: \"9 22 9 12 15 12 15 22\"}));\n        });\n        n.displayName = \"Home\",r = n;\n    }\n    return r;\n};\nconst __FramerMetadata__ = {exports: {default: {type: \"reactComponent\", slots: [], annotations: {framerContractVersion: \"1\"}}, __FramerMetadata__: {type: \"variable\"}}};\nexport { __FramerMetadata__, s as default };","import{useMemo}from\"react\";import{ControlType}from\"framer\";/*\n ** ICON UTILS\n ** Pull as much re-usable logic into here as possible\n ** This will make it easier to replace in all icon components\n */ export const containerStyles={width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\"};export const defaultEvents={onClick:{type:ControlType.EventHandler},onMouseDown:{type:ControlType.EventHandler},onMouseUp:{type:ControlType.EventHandler},onMouseEnter:{type:ControlType.EventHandler},onMouseLeave:{type:ControlType.EventHandler}};const findByArray=(arr,search)=>arr.find(a=>a.toLowerCase().includes(search));export function getIconSelection(iconKeys,selectByList,iconSearch=\"\",iconSelection,lowercaseIconKeyPairs){// gotta get the exact match first THEN find\n// have a set and try to access ?\nif(selectByList)return iconSelection;if(iconSearch==null||(iconSearch===null||iconSearch===void 0?void 0:iconSearch.length)===0)return null;const iconSearchTerm=iconSearch.toLowerCase().replace(/-|\\s/g,\"\");var _iconSearchTerm;// check for exact match, otherwise use .find\nconst searchResult=(_iconSearchTerm=lowercaseIconKeyPairs[iconSearchTerm])!==null&&_iconSearchTerm!==void 0?_iconSearchTerm:findByArray(iconKeys,iconSearchTerm);return searchResult;}export function useIconSelection(iconKeys,selectByList,iconSearch=\"\",iconSelection,lowercaseIconKeyPairs){// Clean search term\nconst iconSearchResult=useMemo(()=>{if(iconSearch==null||(iconSearch===null||iconSearch===void 0?void 0:iconSearch.length)===0)return null;const iconSearchTerm=iconSearch.toLowerCase().replace(/-|\\s/g,\"\");var _iconSearchTerm;// check for exact match, otherwise use .find\nconst searchResult=(_iconSearchTerm=lowercaseIconKeyPairs[iconSearchTerm])!==null&&_iconSearchTerm!==void 0?_iconSearchTerm:findByArray(iconKeys,iconSearchTerm);return searchResult;},[iconSelection,iconSearch]);const name=selectByList?iconSelection:iconSearchResult;return name;}\nexport const __FramerMetadata__ = {\"exports\":{\"getIconSelection\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIconSelection\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultEvents\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./utils.map","/*\n * utils\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/Ma20hU0GGRxLxZphbywl/OSpwWF91FHPVFyQJjMHt/utils.js\"\n","import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{useState,useEffect,useRef}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{NullState}from\"https://framer.com/m/framer/icon-nullstate.js@0.7.0\";import HomeFactory from\"https://framer.com/m/feather-icons/home.js@0.0.29\";import{defaultEvents,useIconSelection}from\"https://framer.com/m/utils-MaUy.js@OSpwWF91FHPVFyQJjMHt\";export const iconKeys=[\"activity\",\"airplay\",\"alert-circle\",\"alert-octagon\",\"alert-triangle\",\"align-center\",\"align-justify\",\"align-left\",\"align-right\",\"anchor\",\"aperture\",\"archive\",\"arrow-down\",\"arrow-down-circle\",\"arrow-down-left\",\"arrow-down-right\",\"arrow-left\",\"arrow-left-circle\",\"arrow-right\",\"arrow-right-circle\",\"arrow-up\",\"arrow-up-circle\",\"arrow-up-left\",\"arrow-up-right\",\"at-sign\",\"award\",\"bar-chart\",\"bar-chart-2\",\"battery\",\"battery-charging\",\"bell\",\"bell-off\",\"bluetooth\",\"bold\",\"book\",\"book-open\",\"bookmark\",\"box\",\"briefcase\",\"calendar\",\"camera\",\"camera-off\",\"cast\",\"check\",\"check-circle\",\"check-square\",\"chevron-down\",\"chevron-left\",\"chevron-right\",\"chevron-up\",\"chevrons-down\",\"chevrons-left\",\"chevrons-right\",\"chevrons-up\",\"chrome\",\"circle\",\"clipboard\",\"clock\",\"cloud\",\"cloud-drizzle\",\"cloud-lightning\",\"cloud-off\",\"cloud-rain\",\"cloud-snow\",\"code\",\"codepen\",\"codesandbox\",\"coffee\",\"columns\",\"command\",\"compass\",\"copy\",\"corner-down-left\",\"corner-down-right\",\"corner-left-down\",\"corner-left-up\",\"corner-right-down\",\"corner-right-up\",\"corner-up-left\",\"corner-up-right\",\"cpu\",\"credit-card\",\"crop\",\"crosshair\",\"database\",\"delete\",\"disc\",\"divide\",\"divide-circle\",\"divide-square\",\"dollar-sign\",\"download\",\"download-cloud\",\"dribbble\",\"droplet\",\"edit\",\"edit-2\",\"edit-3\",\"external-link\",\"eye\",\"eye-off\",\"facebook\",\"fast-forward\",\"feather\",\"figma\",\"file\",\"file-minus\",\"file-plus\",\"file-text\",\"film\",\"filter\",\"flag\",\"folder\",\"folder-minus\",\"folder-plus\",\"framer\",\"frown\",\"gift\",\"git-branch\",\"git-commit\",\"git-merge\",\"git-pull-request\",\"github\",\"gitlab\",\"globe\",\"grid\",\"hard-drive\",\"hash\",\"headphones\",\"heart\",\"help-circle\",\"hexagon\",\"home\",\"image\",\"inbox\",\"info\",\"instagram\",\"italic\",\"key\",\"layers\",\"layout\",\"life-buoy\",\"link\",\"link-2\",\"linkedin\",\"list\",\"loader\",\"lock\",\"log-in\",\"log-out\",\"mail\",\"map\",\"map-pin\",\"maximize\",\"maximize-2\",\"meh\",\"menu\",\"message-circle\",\"message-square\",\"mic\",\"mic-off\",\"minimize\",\"minimize-2\",\"minus\",\"minus-circle\",\"minus-square\",\"monitor\",\"moon\",\"more-horizontal\",\"more-vertical\",\"mouse-pointer\",\"move\",\"music\",\"navigation\",\"navigation-2\",\"octagon\",\"package\",\"paperclip\",\"pause\",\"pause-circle\",\"pen-tool\",\"percent\",\"phone\",\"phone-call\",\"phone-forwarded\",\"phone-incoming\",\"phone-missed\",\"phone-off\",\"phone-outgoing\",\"pie-chart\",\"play\",\"play-circle\",\"plus\",\"plus-circle\",\"plus-square\",\"pocket\",\"power\",\"printer\",\"radio\",\"refresh-ccw\",\"refresh-cw\",\"repeat\",\"rewind\",\"rotate-ccw\",\"rotate-cw\",\"rss\",\"save\",\"scissors\",\"search\",\"send\",\"server\",\"settings\",\"share\",\"share-2\",\"shield\",\"shield-off\",\"shopping-bag\",\"shopping-cart\",\"shuffle\",\"sidebar\",\"skip-back\",\"skip-forward\",\"slack\",\"slash\",\"sliders\",\"smartphone\",\"smile\",\"speaker\",\"square\",\"star\",\"stop-circle\",\"sun\",\"sunrise\",\"sunset\",\"tablet\",\"tag\",\"target\",\"terminal\",\"thermometer\",\"thumbs-down\",\"thumbs-up\",\"toggle-left\",\"toggle-right\",\"tool\",\"trash\",\"trash-2\",\"trello\",\"trending-down\",\"trending-up\",\"triangle\",\"truck\",\"tv\",\"twitch\",\"twitter\",\"type\",\"umbrella\",\"underline\",\"unlock\",\"upload\",\"upload-cloud\",\"user\",\"user-check\",\"user-minus\",\"user-plus\",\"user-x\",\"users\",\"video\",\"video-off\",\"voicemail\",\"volume\",\"volume-1\",\"volume-2\",\"volume-x\",\"watch\",\"wifi\",\"wifi-off\",\"wind\",\"x\",\"x-circle\",\"x-octagon\",\"x-square\",\"youtube\",\"zap\",\"zap-off\",\"zoom-in\",\"zoom-out\"];const moduleBaseUrl=\"https://framer.com/m/feather-icons/\";const uppercaseIconKeys=iconKeys.map(name=>name.charAt(0).toUpperCase()+name.slice(1));const lowercaseIconKeyPairs=iconKeys.reduce((res,key)=>{res[key.toLowerCase()]=key;return res;},{});/**\n * FEATHER\n *\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export function Icon(props){const{color,selectByList,iconSearch,iconSelection,onClick,onMouseDown,onMouseUp,onMouseEnter,onMouseLeave,mirrored}=props;const isMounted=useRef(false);const iconKey=useIconSelection(iconKeys,selectByList,iconSearch,iconSelection,lowercaseIconKeyPairs);// Selected Icon Module\nconst[SelectedIcon,setSelectedIcon]=useState(iconKey===\"Home\"?HomeFactory(React):null);// Import the selected module or reset so null state\nasync function importModule(){let active=true;// Get the selected module\ntry{const iconModuleUrl=`${moduleBaseUrl}${iconKey}.js@0.0.29`;const module=await import(/* webpackIgnore: true */iconModuleUrl);// console.log(module.default)\nif(active)setSelectedIcon(module.default(React));}catch(e){console.log(e);if(active)setSelectedIcon(null);}return()=>{active=false;};}// Import module when new style or icon is selected\nuseEffect(()=>{importModule();},[iconKey]);const isOnCanvas=RenderTarget.current()===RenderTarget.canvas;const emptyState=isOnCanvas?/*#__PURE__*/_jsx(NullState,{}):null;return /*#__PURE__*/_jsx(\"div\",{style:{display:\"contents\"},onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp,children:SelectedIcon?/*#__PURE__*/_jsx(SelectedIcon,{style:{width:\"100%\",height:\"100%\",transform:mirrored?\"scale(-1, 1)\":undefined},color:color}):emptyState});}Icon.displayName=\"Feather\";Icon.defaultProps={width:24,height:24,iconSelection:\"home\",iconSearch:\"Home\",color:\"#66F\",selectByList:true,mirrored:false};addPropertyControls(Icon,{selectByList:{type:ControlType.Boolean,title:\"Select\",enabledTitle:\"List\",disabledTitle:\"Search\",defaultValue:Icon.defaultProps.selectByList},iconSelection:{type:ControlType.Enum,options:iconKeys,optionTitles:uppercaseIconKeys,defaultValue:Icon.defaultProps.iconSelection,title:\"Name\",hidden:({selectByList})=>!selectByList,description:\"Find every icon name on the [Feather site](https://feathericons.com/)\"},iconSearch:{type:ControlType.String,title:\"Name\",placeholder:\"Menu, Wifi, Box…\",hidden:({selectByList})=>selectByList},mirrored:{type:ControlType.Boolean,enabledTitle:\"Yes\",disabledTitle:\"No\",defaultValue:Icon.defaultProps.mirrored},color:{type:ControlType.Color,title:\"Color\",defaultValue:Icon.defaultProps.color},...defaultEvents});\nexport const __FramerMetadata__ = {\"exports\":{\"IconProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"iconKeys\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Icon\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"24\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"24\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Feather.map","// Generated by Framer (2b87f15)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"CUSTOMV2;PP Mori Medium\",\"CUSTOMV2;PP Mori Bold\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"PP Mori Medium\",source:\"custom\",style:\"normal\",uiFamilyName:\"PP Mori\",url:\"https://framerusercontent.com/assets/82rNIwX4JZZWNDRYKjwhp5fA7c.woff2\",weight:\"500\"},{cssFamilyName:\"PP Mori Bold\",source:\"custom\",style:\"normal\",uiFamilyName:\"PP Mori\",url:\"https://framerusercontent.com/assets/7cabGqS1YEjqa1wCF9qgUQDbiU.woff2\",weight:\"700\"}]}];export const css=['.framer-vAraD .framer-styles-preset-1jbix1s:not(.rich-text-wrapper), .framer-vAraD .framer-styles-preset-1jbix1s.rich-text-wrapper p { --framer-font-family: \"PP Mori Medium\", \"PP Mori Medium Placeholder\", sans-serif; --framer-font-family-bold: \"PP Mori Bold\", \"PP Mori Bold Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 22px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-letter-spacing: 0em; --framer-line-height: 1.4em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: #ffffff; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }','@media (max-width: 1919px) and (min-width: 810px) { .framer-vAraD .framer-styles-preset-1jbix1s:not(.rich-text-wrapper), .framer-vAraD .framer-styles-preset-1jbix1s.rich-text-wrapper p { --framer-font-family: \"PP Mori Medium\", \"PP Mori Medium Placeholder\", sans-serif; --framer-font-family-bold: \"PP Mori Bold\", \"PP Mori Bold Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 20px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-letter-spacing: 0em; --framer-line-height: 1.4em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: #ffffff; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }','@media (max-width: 809px) and (min-width: 640px) { .framer-vAraD .framer-styles-preset-1jbix1s:not(.rich-text-wrapper), .framer-vAraD .framer-styles-preset-1jbix1s.rich-text-wrapper p { --framer-font-family: \"PP Mori Medium\", \"PP Mori Medium Placeholder\", sans-serif; --framer-font-family-bold: \"PP Mori Bold\", \"PP Mori Bold Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 18px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-letter-spacing: 0em; --framer-line-height: 1.4em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: #ffffff; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }','@media (max-width: 639px) and (min-width: 0px) { .framer-vAraD .framer-styles-preset-1jbix1s:not(.rich-text-wrapper), .framer-vAraD .framer-styles-preset-1jbix1s.rich-text-wrapper p { --framer-font-family: \"PP Mori Medium\", \"PP Mori Medium Placeholder\", sans-serif; --framer-font-family-bold: \"PP Mori Bold\", \"PP Mori Bold Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 16px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-letter-spacing: 0em; --framer-line-height: 1.4em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: #ffffff; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }'];export const className=\"framer-vAraD\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Text Highlight - Customizable browser text selection colors with theme support\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect}from\"react\";/**\n * @framerIntrinsicWidth 5\n * @framerIntrinsicHeight 5\n * \n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function TextHighlight(props){const{scopes=[],includeInputs=true}=props;useEffect(()=>{if(typeof document===\"undefined\")return;const styleId=\"framer-text-highlight-global\";let styleEl=document.getElementById(styleId);if(!styleEl){styleEl=document.createElement(\"style\");styleEl.id=styleId;document.head.appendChild(styleEl);}const getSelectorForScope=(scope,customSelector)=>{switch(scope){case\"global\":return\"\";case\"headings\":return\"h1::selection, h2::selection, h3::selection, h4::selection, h5::selection, h6::selection\";case\"links\":return\"a\";case\"code\":return\"code, pre\";case\"inputs\":return\"input, textarea\";case\"custom\":// Split custom selectors by comma and add ::selection to each\nif(!customSelector||customSelector.trim()===\"\")return\"*\";return customSelector.split(\",\").map(s=>s.trim()).filter(s=>s.length>0).map(s=>`${s}::selection`).join(\", \");default:return\"\";}};let css=\"\";// Sort scopes to ensure global is first\nconst sortedScopes=[...scopes].sort((a,b)=>{if(a.scope===\"global\")return-1;if(b.scope===\"global\")return 1;return 0;});sortedScopes.forEach(scopeConfig=>{const selector=getSelectorForScope(scopeConfig.scope,scopeConfig.customSelector);// For headings and custom, the selector already includes ::selection\nconst prefix=scopeConfig.scope===\"headings\"||scopeConfig.scope===\"custom\"?selector:selector?`${selector}::selection`:\"::selection\";const mozPrefix=scopeConfig.scope===\"headings\"||scopeConfig.scope===\"custom\"?selector.replace(/::selection/g,\"::-moz-selection\"):selector?`${selector}::-moz-selection`:\"::-moz-selection\";if(scopeConfig.themeMode){// Base styles (fallback)\ncss+=`\n            ${prefix} {\n                background-color: ${scopeConfig.lightBg};\n                color: ${scopeConfig.lightText};\n            }\n            ${mozPrefix} {\n                background-color: ${scopeConfig.lightBg};\n                color: ${scopeConfig.lightText};\n            }\n            \n            @media (prefers-color-scheme: light) {\n                ${prefix} {\n                    background-color: ${scopeConfig.lightBg};\n                    color: ${scopeConfig.lightText};\n                }\n                ${mozPrefix} {\n                    background-color: ${scopeConfig.lightBg};\n                    color: ${scopeConfig.lightText};\n                }\n            }\n            \n            @media (prefers-color-scheme: dark) {\n                ${prefix} {\n                    background-color: ${scopeConfig.darkBg};\n                    color: ${scopeConfig.darkText};\n                }\n                ${mozPrefix} {\n                    background-color: ${scopeConfig.darkBg};\n                    color: ${scopeConfig.darkText};\n                }\n            }\n            `;}else{css+=`\n            ${prefix} {\n                background-color: ${scopeConfig.bg};\n                color: ${scopeConfig.text};\n            }\n            ${mozPrefix} {\n                background-color: ${scopeConfig.bg};\n                color: ${scopeConfig.text};\n            }\n            `;}});// Handle input exclusion if needed\nif(!includeInputs&&!scopes.some(s=>s.scope===\"inputs\")){css+=`\n            input::selection,\n            textarea::selection {\n                background-color: Highlight;\n                color: HighlightText;\n            }\n            input::-moz-selection,\n            textarea::-moz-selection {\n                background-color: Highlight;\n                color: HighlightText;\n            }\n            `;}// Forced colors mode for accessibility\ncss+=`\n            @media (forced-colors: active) {\n                ::selection {\n                    background-color: Highlight;\n                    color: HighlightText;\n                }\n                ::-moz-selection {\n                    background-color: Highlight;\n                    color: HighlightText;\n                }\n            }\n        `;styleEl.textContent=css;return()=>{// Cleanup: remove style when component unmounts\nif(styleEl&&styleEl.parentNode){styleEl.parentNode.removeChild(styleEl);}};},[scopes,includeInputs]);return /*#__PURE__*/_jsx(\"div\",{style:{width:5,height:5,pointerEvents:\"none\"}});}addPropertyControls(TextHighlight,{scopes:{type:ControlType.Array,title:\"Color Scopes\",control:{type:ControlType.Object,controls:{scope:{type:ControlType.Enum,title:\"Scope\",options:[\"global\",\"headings\",\"links\",\"code\",\"inputs\",\"custom\"],optionTitles:[\"Global\",\"Headings\",\"Links\",\"Code\",\"Inputs\",\"Custom\"],defaultValue:\"global\"},customSelector:{type:ControlType.String,title:\"Custom Selector\",defaultValue:\"\",placeholder:\".my-class, #my-id\",hidden:props=>props.scope!==\"custom\"},themeMode:{type:ControlType.Boolean,title:\"Theme Mode\",defaultValue:false,enabledTitle:\"Light/Dark\",disabledTitle:\"Single\"},bg:{type:ControlType.Color,title:\"Background\",defaultValue:\"#0099FF\",hidden:props=>props.themeMode},text:{type:ControlType.Color,title:\"Text\",defaultValue:\"#FFFFFF\",hidden:props=>props.themeMode},lightBg:{type:ControlType.Color,title:\"Light BG\",defaultValue:\"#0099FF\",hidden:props=>!props.themeMode},lightText:{type:ControlType.Color,title:\"Light Text\",defaultValue:\"#FFFFFF\",hidden:props=>!props.themeMode},darkBg:{type:ControlType.Color,title:\"Dark BG\",defaultValue:\"#8855FF\",hidden:props=>!props.themeMode},darkText:{type:ControlType.Color,title:\"Dark Text\",defaultValue:\"#FFFFFF\",hidden:props=>!props.themeMode}}},defaultValue:[{scope:\"global\",customSelector:\"\",themeMode:false,bg:\"#0099FF\",text:\"#FFFFFF\",lightBg:\"#0099FF\",lightText:\"#FFFFFF\",darkBg:\"#8855FF\",darkText:\"#FFFFFF\"}],maxCount:10},includeInputs:{type:ControlType.Boolean,title:\"Include Inputs\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextHighlight\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"5\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"5\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextHighlight.map"],"mappings":"A,uQAEa,EAAkB,CAC3B,MAAO,OACP,OAAQ,OACR,QAAS,OACT,eAAgB,SAChB,WAAY,QAChB,EASM,EAAkB,CACpB,GAAGkB,EACH,aAAc,EACd,WAAY,2BACZ,OAAQ,uCACR,MAAO,UACP,cAAe,QACnB,EACa,EAA0B,iBAAkB,EAAG,IACnC,gBAAK,MAAO,CAC7B,MAAOC,EACF,KACT,CAAC,CACJ,C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