{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/dmi04DAUL45OJPTUFxSP/NMsbnSBaqTofQhLLYU0g/Dropdown_required_validation.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";export function RequiredDropdownCustomArrow(){const[variant,setVariant]=React.useState(\"Default\");const[value,setValue]=React.useState(\"Select one\");React.useEffect(()=>{const style=document.createElement(\"style\");style.innerHTML=`\n            /* Hide the default arrow container (with vertical line) */\n            .framer-select [class*=\"Arrow\"],\n            .framer-select [class*=\"icon\"],\n            .framer-select svg {\n                display: none !important;\n            }\n        `;document.head.appendChild(style);return()=>style.remove();},[]);return{variant,onFocus:()=>setVariant(\"Focus\"),onBlur:()=>{if(value===\"Select one\"||value===\"\"||!value){setVariant(\"Invalid\");}else{setVariant(\"Default\");}},onValueChange:newValue=>{setValue(newValue);setVariant(\"Focus\");},// Add your own custom arrow icon here\nchildren:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",width:\"100%\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{flex:1},children:value}),/*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M7 10l5 5 5-5z\",fill:\"currentColor\"})})]})};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withRequiredDropdownCustomArrow(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...RequiredDropdownCustomArrow(props)});};}withRequiredDropdownCustomArrow.displayName=\"RequiredDropdownCustomArrow\";\nexport const __FramerMetadata__ = {\"exports\":{\"withRequiredDropdownCustomArrow\":{\"type\":\"reactHoc\",\"name\":\"withRequiredDropdownCustomArrow\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"RequiredDropdownCustomArrow\":{\"type\":\"override\",\"name\":\"RequiredDropdownCustomArrow\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Dropdown_required_validation.map"],
  "mappings": "8GAA4F,SAASA,GAA6B,CAAC,GAAK,CAACC,EAAQC,CAAU,EAAQC,EAAS,SAAS,EAAO,CAACC,EAAMC,CAAQ,EAAQF,EAAS,YAAY,EAAE,OAAMG,EAAU,IAAI,CAAC,IAAMC,EAAM,SAAS,cAAc,OAAO,EAAE,OAAAA,EAAM,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,UAOjT,SAAS,KAAK,YAAYA,CAAK,EAAQ,IAAIA,EAAM,OAAO,CAAE,EAAE,CAAC,CAAC,EAAQ,CAAC,QAAAN,EAAQ,QAAQ,IAAIC,EAAW,OAAO,EAAE,OAAO,IAAI,CAA8CA,EAA1CE,IAAQ,cAAcA,IAAQ,IAAI,CAACA,EAAkB,UAA4B,SAAnB,CAA+B,EAAE,cAAcI,GAAU,CAACH,EAASG,CAAQ,EAAEN,EAAW,OAAO,CAAE,EACvS,SAAsBO,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,WAAW,SAAS,MAAM,MAAM,EAAE,SAAS,CAAcC,EAAK,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,SAASN,CAAK,CAAC,EAAeM,EAAK,MAAM,CAAC,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,SAAsBA,EAAK,OAAO,CAAC,EAAE,iBAAiB,KAAK,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAA2J,SAASC,EAAgCC,EAAE,CAAC,OAAOC,IAAQC,EAA+BC,CAAuC,EAASL,EAAKE,EAAE,CAAC,GAAGC,EAAM,GAAGb,EAA4Ba,CAAK,CAAC,CAAC,EAAI,CAACF,EAAgC,YAAY",
  "names": ["RequiredDropdownCustomArrow", "variant", "setVariant", "ye", "value", "setValue", "ue", "style", "newValue", "u", "p", "withRequiredDropdownCustomArrow", "C", "props", "re", "DataObserverContext"]
}
