39820.js 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. "use strict";
  2. exports.id = 39820;
  3. exports.ids = [39820];
  4. exports.modules = {
  5. /***/ 29033:
  6. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  7. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  8. /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
  9. /* harmony export */ });
  10. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
  11. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  12. var _path;
  13. function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
  14. var SvgSearch = function SvgSearch(props) {
  15. return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", _extends({
  16. width: 24,
  17. height: 24,
  18. viewBox: "0 0 24 24",
  19. fill: "currentColor",
  20. xmlns: "http://www.w3.org/2000/svg"
  21. }, props), _path || (_path = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
  22. d: "m23.5 21.466-7.01-7.01a9.066 9.066 0 0 0 1.736-5.343C18.226 4.088 14.138 0 9.113 0 4.088 0 0 4.088 0 9.113c0 5.025 4.088 9.113 9.113 9.113a9.066 9.066 0 0 0 5.343-1.735l7.01 7.009 2.034-2.034ZM9.113 15.348a6.236 6.236 0 1 1 6.235-6.235 6.243 6.243 0 0 1-6.235 6.235Z"
  23. })));
  24. };
  25. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SvgSearch);
  26. /***/ }),
  27. /***/ 79862:
  28. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  29. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  30. /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
  31. /* harmony export */ });
  32. /* unused harmony export useFocusElement */
  33. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
  34. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  35. /**
  36. * A hook that focus a referenced element.
  37. *
  38. * @param {FocusOptions} options
  39. * @returns {[() => void, RefObject<T>]}
  40. */ const useFocusElement = (options)=>{
  41. const elementRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
  42. // a function that will be invoked by the component using this hook to focus the the element being referenced (if found).
  43. const executeFocus = ()=>{
  44. // only focus when the ref has a value
  45. if (elementRef.current) {
  46. elementRef.current.focus(options);
  47. }
  48. };
  49. return [
  50. executeFocus,
  51. elementRef
  52. ];
  53. };
  54. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useFocusElement);
  55. /***/ })
  56. };
  57. ;
  58. //# sourceMappingURL=39820.js.map