{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/VRi1WjoghsnjhJYRDoa6/N95nAhuXzXCDeHHyKZWt/Home_Search_bar.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useRef}from\"react\";export default function Search_bar_automation(props,{variant=\"default\"}){const[buttonHovered,setButtonHovered]=useState(false);const inputRef=useRef(null);const containerStyle={height:\"100%\",width:\"100%\",borderRadius:20,position:\"relative\",backgroundColor:\"white\",borderColor:\"white\",zIndex:2};const inputStyle={border:\"none\",backgroundColor:\"transparent\",width:\"100%\",height:\"100%\",zIndex:0,fontSize:14,lineHeight:1.2,padding:\"8px 56px 8px 16px\",borderRadius:16};const buttonStyle={backgroundColor:\"transparent\",padding:0,border:\"none\",position:\"absolute\",right:16,top:\"50%\",transform:\"translateY(-50%)\",zIndex:10,cursor:\"pointer\",opacity:buttonHovered?.7:1,width:24,height:24};const handleSearch=()=>{if(!inputRef.current)return;const{value}=inputRef.current;if(!value)return window.location.assign(`/listings`);else window.location.assign(`/listings?q=${encodeURIComponent(value)}`);};const handleKeyDown=e=>{if(!inputRef.current)return;if(e.key===\"Enter\")handleSearch();};return /*#__PURE__*/_jsxs(\"div\",{style:containerStyle,children:[/*#__PURE__*/_jsx(\"input\",{type:\"text\",name:\"search\",style:inputStyle,ref:inputRef,onKeyDown:handleKeyDown,placeholder:\"Search any core lab\u2026\"}),/*#__PURE__*/_jsx(\"button\",{style:buttonStyle,onMouseEnter:()=>setButtonHovered(true),onMouseLeave:()=>setButtonHovered(false),onClick:handleSearch,children:/*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",style:{width:\"100%\",height:\"100%\"},children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"11\",cy:\"11\",r:\"8\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"21\",y1:\"21\",x2:\"16.65\",y2:\"16.65\"})]})})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Search_bar_automation\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Home_Search_bar.map"],
  "mappings": "uGAA2G,SAARA,EAAuCC,EAAM,CAAC,QAAAC,EAAQ,SAAS,EAAE,CAAC,GAAK,CAACC,EAAcC,CAAgB,EAAEC,EAAS,EAAK,EAAQC,EAASC,EAAO,IAAI,EAAQC,EAAe,CAAC,OAAO,OAAO,MAAM,OAAO,aAAa,GAAG,SAAS,WAAW,gBAAgB,QAAQ,YAAY,QAAQ,OAAO,CAAC,EAAQC,EAAW,CAAC,OAAO,OAAO,gBAAgB,cAAc,MAAM,OAAO,OAAO,OAAO,OAAO,EAAE,SAAS,GAAG,WAAW,IAAI,QAAQ,oBAAoB,aAAa,EAAE,EAAQC,EAAY,CAAC,gBAAgB,cAAc,QAAQ,EAAE,OAAO,OAAO,SAAS,WAAW,MAAM,GAAG,IAAI,MAAM,UAAU,mBAAmB,OAAO,GAAG,OAAO,UAAU,QAAQP,EAAc,GAAG,EAAE,MAAM,GAAG,OAAO,EAAE,EAAQQ,EAAa,IAAI,CAAC,GAAG,CAACL,EAAS,QAAQ,OAAO,GAAK,CAAC,MAAAM,CAAK,EAAEN,EAAS,QAAQ,GAAIM,EAAsDC,EAAO,SAAS,OAAO,eAAe,mBAAmBD,CAAK,CAAC,EAAE,MAAjH,QAAOC,EAAO,SAAS,OAAO,WAAW,CAA0E,EAA0F,OAAoBC,EAAM,MAAM,CAAC,MAAMN,EAAe,SAAS,CAAcO,EAAK,QAAQ,CAAC,KAAK,OAAO,KAAK,SAAS,MAAMN,EAAW,IAAIH,EAAS,UAAvNU,GAAG,CAAKV,EAAS,SAAkBU,EAAE,MAAM,SAAQL,EAAa,CAAE,EAA6K,YAAY,2BAAsB,CAAC,EAAeI,EAAK,SAAS,CAAC,MAAML,EAAY,aAAa,IAAIN,EAAiB,EAAI,EAAE,aAAa,IAAIA,EAAiB,EAAK,EAAE,QAAQO,EAAa,SAAsBG,EAAM,MAAM,CAAC,MAAM,6BAA6B,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,OAAO,eAAe,YAAY,IAAI,cAAc,QAAQ,eAAe,QAAQ,MAAM,CAAC,MAAM,OAAO,OAAO,MAAM,EAAE,SAAS,CAAcC,EAAK,SAAS,CAAC,GAAG,KAAK,GAAG,KAAK,EAAE,GAAG,CAAC,EAAeA,EAAK,OAAO,CAAC,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE",
  "names": ["Search_bar_automation", "props", "variant", "buttonHovered", "setButtonHovered", "ye", "inputRef", "pe", "containerStyle", "inputStyle", "buttonStyle", "handleSearch", "value", "window", "u", "p", "e"]
}
