mayak-common-library 0.0.17 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -61,6 +61,7 @@ var src_exports = {};
61
61
  __export(src_exports, {
62
62
  AppBar: () => AppBar_default,
63
63
  ArticleCard: () => ArticleCard_default,
64
+ Autocomplete: () => Autocomplete_default,
64
65
  Avatar: () => Avatar_default,
65
66
  Badge: () => Badge_default,
66
67
  Button: () => Button_default,
@@ -90,20 +91,15 @@ __export(src_exports, {
90
91
  module.exports = __toCommonJS(src_exports);
91
92
 
92
93
  // src/components/Greet.tsx
93
- var import_jsx_runtime = require("react/jsx-runtime");
94
94
  function Greet(props) {
95
95
  const { name } = props;
96
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
97
- "Hello ",
98
- name
99
- ] });
96
+ return /* @__PURE__ */ React.createElement("div", null, "Hello ", name);
100
97
  }
101
98
 
102
99
  // src/components/Button/Button.tsx
103
100
  var import_Button = __toESM(require("@mui/material/Button"));
104
101
  var import_material = require("@mui/material");
105
102
  var import_Typography = __toESM(require("@mui/material/Typography"));
106
- var import_jsx_runtime2 = require("react/jsx-runtime");
107
103
  var StyledButton = (0, import_material.styled)(import_Button.default)(() => ({
108
104
  textTransform: "none",
109
105
  width: "fit-content",
@@ -123,29 +119,28 @@ var StyledButton = (0, import_material.styled)(import_Button.default)(() => ({
123
119
  }));
124
120
  var Button = (props) => {
125
121
  const _a = props, { children, base, bolt, border, small, large } = _a, rest = __objRest(_a, ["children", "base", "bolt", "border", "small", "large"]);
126
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
122
+ return /* @__PURE__ */ React.createElement(
127
123
  StyledButton,
128
124
  __spreadProps(__spreadValues({}, rest), {
129
125
  disableRipple: true,
130
126
  className: `${base ? "bg-accent-dark rounded-none text-white hover:bg-accent-beige text-base" : ""}
131
127
  ${small ? "py-1.5 px-4" : ""}
132
128
  ${large ? "py-5 px-10" : ""}
133
- ${border ? "border-b border-solid rounded-none" : ""}`,
134
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
135
- import_Typography.default,
136
- {
137
- className: `${bolt ? "font-extrabold leading-4" : "font-normal leading-3"}`,
138
- children
139
- }
140
- )
141
- })
129
+ ${border ? "border-b border-solid rounded-none" : ""}`
130
+ }),
131
+ /* @__PURE__ */ React.createElement(
132
+ import_Typography.default,
133
+ {
134
+ className: `${bolt ? "font-extrabold leading-4" : "font-normal leading-3"}`
135
+ },
136
+ children
137
+ )
142
138
  );
143
139
  };
144
140
  var Button_default = Button;
145
141
 
146
142
  // src/components/Button/IconButton.tsx
147
143
  var import_material2 = require("@mui/material");
148
- var import_jsx_runtime3 = require("react/jsx-runtime");
149
144
  var StyledButton2 = (0, import_material2.styled)(import_material2.IconButton)(() => ({
150
145
  width: "fit-content",
151
146
  borderRadius: 0,
@@ -160,7 +155,7 @@ var StyledButton2 = (0, import_material2.styled)(import_material2.IconButton)(()
160
155
  }));
161
156
  var IconButton = (props) => {
162
157
  const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
163
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(StyledButton2, __spreadProps(__spreadValues({}, rest), { disableRipple: true, children }));
158
+ return /* @__PURE__ */ React.createElement(StyledButton2, __spreadProps(__spreadValues({}, rest), { disableRipple: true }), children);
164
159
  };
165
160
  var IconButton_default = IconButton;
166
161
 
@@ -169,13 +164,11 @@ var import_react = require("react");
169
164
  var import_material3 = require("@mui/material");
170
165
 
171
166
  // src/icons/dropdown-arrow.svg
172
- var React = __toESM(require("react"));
173
- var import_jsx_runtime4 = require("react/jsx-runtime");
174
- var SvgDropdownArrow = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", __spreadProps(__spreadValues({ width: 13, height: 7, viewBox: "0 0 13 7", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 6.25L6.5 0.75L1 6.25", stroke: "#343434", strokeLinecap: "round" }) }));
167
+ var React2 = __toESM(require("react"));
168
+ var SvgDropdownArrow = (props) => /* @__PURE__ */ React2.createElement("svg", __spreadValues({ width: 13, height: 7, viewBox: "0 0 13 7", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ React2.createElement("path", { d: "M12 6.25L6.5 0.75L1 6.25", stroke: "#343434", strokeLinecap: "round" }));
175
169
  var dropdown_arrow_default = SvgDropdownArrow;
176
170
 
177
171
  // src/components/Select/Select.tsx
178
- var import_jsx_runtime5 = require("react/jsx-runtime");
179
172
  var StyledSelect = (0, import_material3.styled)(import_material3.Select)(({ open }) => ({
180
173
  minWidth: 250,
181
174
  "&.MuiInputBase-root": {
@@ -227,7 +220,7 @@ var CustomSelect = (props) => {
227
220
  var _a2;
228
221
  if (!open) (_a2 = myRef.current) == null ? void 0 : _a2.classList.remove("Mui-focused");
229
222
  }, [open]);
230
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
223
+ return /* @__PURE__ */ React.createElement(
231
224
  StyledSelect,
232
225
  __spreadProps(__spreadValues({}, rest), {
233
226
  ref: myRef,
@@ -252,17 +245,16 @@ var CustomSelect = (props) => {
252
245
  }
253
246
  }
254
247
  },
255
- IconComponent: () => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(dropdown_arrow_default, {}),
256
- children
257
- })
248
+ IconComponent: () => /* @__PURE__ */ React.createElement(dropdown_arrow_default, null)
249
+ }),
250
+ children
258
251
  );
259
252
  };
260
253
  var Select_default = CustomSelect;
261
254
 
262
255
  // src/icons/search.svg
263
- var React2 = __toESM(require("react"));
264
- var import_jsx_runtime6 = require("react/jsx-runtime");
265
- var SvgSearch = (props) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("svg", __spreadProps(__spreadValues({ width: 24, height: 25, viewBox: "0 0 24 25", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M21 12.5L12 3.5L3 12.5H5V19.5C5 20.0304 5.21071 20.5391 5.58579 20.9142C5.96086 21.2893 6.46957 21.5 7 21.5H11.7M9 21.5V15.5C9 14.9696 9.21071 14.4609 9.58579 14.0858C9.96086 13.7107 10.4696 13.5 11 13.5H13M20.1992 20.6992L21.9992 22.4992M15 18.5C15 19.2956 15.3161 20.0587 15.8787 20.6213C16.4413 21.1839 17.2044 21.5 18 21.5C18.7956 21.5 19.5587 21.1839 20.1213 20.6213C20.6839 20.0587 21 19.2956 21 18.5C21 17.7044 20.6839 16.9413 20.1213 16.3787C19.5587 15.8161 18.7956 15.5 18 15.5C17.2044 15.5 16.4413 15.8161 15.8787 16.3787C15.3161 16.9413 15 17.7044 15 18.5Z", stroke: "#C8BCA1", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }) }));
256
+ var React3 = __toESM(require("react"));
257
+ var SvgSearch = (props) => /* @__PURE__ */ React3.createElement("svg", __spreadValues({ width: 24, height: 25, viewBox: "0 0 24 25", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ React3.createElement("path", { d: "M21 12.5L12 3.5L3 12.5H5V19.5C5 20.0304 5.21071 20.5391 5.58579 20.9142C5.96086 21.2893 6.46957 21.5 7 21.5H11.7M9 21.5V15.5C9 14.9696 9.21071 14.4609 9.58579 14.0858C9.96086 13.7107 10.4696 13.5 11 13.5H13M20.1992 20.6992L21.9992 22.4992M15 18.5C15 19.2956 15.3161 20.0587 15.8787 20.6213C16.4413 21.1839 17.2044 21.5 18 21.5C18.7956 21.5 19.5587 21.1839 20.1213 20.6213C20.6839 20.0587 21 19.2956 21 18.5C21 17.7044 20.6839 16.9413 20.1213 16.3787C19.5587 15.8161 18.7956 15.5 18 15.5C17.2044 15.5 16.4413 15.8161 15.8787 16.3787C15.3161 16.9413 15 17.7044 15 18.5Z", stroke: "#C8BCA1", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }));
266
258
  var search_default = SvgSearch;
267
259
 
268
260
  // src/components/Select/SelectPro.tsx
@@ -270,16 +262,11 @@ var import_react2 = require("react");
270
262
  var import_material4 = require("@mui/material");
271
263
 
272
264
  // src/icons/close.svg
273
- var React3 = __toESM(require("react"));
274
- var import_jsx_runtime7 = require("react/jsx-runtime");
275
- var SvgClose = (props) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("svg", __spreadProps(__spreadValues({ width: 9, height: 9, viewBox: "0 0 9 9", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: [
276
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M1 7.5L7.5 1", stroke: "#343434", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }),
277
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M7.5 7.5L1 1", stroke: "#343434", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })
278
- ] }));
265
+ var React4 = __toESM(require("react"));
266
+ var SvgClose = (props) => /* @__PURE__ */ React4.createElement("svg", __spreadValues({ width: 9, height: 9, viewBox: "0 0 9 9", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ React4.createElement("path", { d: "M1 7.5L7.5 1", stroke: "#343434", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ React4.createElement("path", { d: "M7.5 7.5L1 1", stroke: "#343434", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }));
279
267
  var close_default = SvgClose;
280
268
 
281
269
  // src/components/Select/SelectPro.tsx
282
- var import_jsx_runtime8 = require("react/jsx-runtime");
283
270
  var SelectPro = ({
284
271
  children,
285
272
  placeholder,
@@ -293,6 +280,7 @@ var SelectPro = ({
293
280
  const [btn, setAnchorEl] = (0, import_react2.useState)(null);
294
281
  const [open, setOpen] = (0, import_react2.useState)(false);
295
282
  const handleClick = (event) => {
283
+ event.persist();
296
284
  if (open)
297
285
  setTimeout(() => {
298
286
  setAnchorEl(null);
@@ -309,83 +297,78 @@ var SelectPro = ({
309
297
  const childrenWithHandleChange = (0, import_react2.isValidElement)(children) ? (0, import_react2.cloneElement)(children, {
310
298
  collapseParent: handleClose
311
299
  }) : children;
312
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material4.ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material4.Box, { children: [
313
- clickComponent ? (0, import_react2.cloneElement)(clickComponent, {
300
+ return /* @__PURE__ */ React.createElement(import_material4.ClickAwayListener, { onClickAway: handleClose }, /* @__PURE__ */ React.createElement(import_material4.Box, null, clickComponent ? (0, import_react2.cloneElement)(clickComponent, {
301
+ ref: btn,
302
+ onClick: handleClick
303
+ // onClick: (e) => {
304
+ // clickComponent.props.onClick(e);
305
+ // // e.preventDefault();
306
+ // handleClick(e);
307
+ // },
308
+ }) : /* @__PURE__ */ React.createElement(
309
+ import_material4.Button,
310
+ {
314
311
  ref: btn,
315
- onClick: handleClick
316
- }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
317
- import_material4.Button,
312
+ "aria-controls": open ? "basic-menu" : void 0,
313
+ "aria-haspopup": "true",
314
+ "aria-expanded": open ? "true" : void 0,
315
+ onClick: handleClick,
316
+ disableRipple: true,
317
+ fullWidth: true,
318
+ sx: {
319
+ height: small ? "34px" : "49px",
320
+ padding: small ? "0 10px 0 6px" : "0 20px 0 19px"
321
+ },
322
+ className: `border rounded-none border-solid normal-case text-accent-dark hover:bg-white ${open ? "!border-transparent bg-white" : ""} ${colorBorder ? "border-accent-beige flex-row-reverse justify-end gap-x-2" : "justify-between border-accent-dark"}`
323
+ },
324
+ /* @__PURE__ */ React.createElement(
325
+ import_material4.Typography,
318
326
  {
319
- ref: btn,
320
- "aria-controls": open ? "basic-menu" : void 0,
321
- "aria-haspopup": "true",
322
- "aria-expanded": open ? "true" : void 0,
323
- onClick: handleClick,
324
- disableRipple: true,
325
- fullWidth: true,
326
- sx: {
327
- height: small ? "34px" : "49px",
328
- padding: small ? "0 10px 0 6px" : "0 20px 0 19px"
329
- },
330
- className: `border rounded-none border-solid normal-case text-accent-dark hover:bg-white ${open ? "!border-transparent bg-white" : ""} ${colorBorder ? "border-accent-beige flex-row-reverse justify-end gap-x-2" : "justify-between border-accent-dark"}`,
331
- children: [
332
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
333
- import_material4.Typography,
334
- {
335
- className: "text-sm leading-4",
336
- children: `${placeholder}`
337
- }
338
- ),
339
- colorBorder ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(search_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
340
- dropdown_arrow_default,
341
- {
342
- style: {
343
- transform: open ? "scaleY(-1)" : "scaleY(1)",
344
- transition: "0.3s ease-in-out"
345
- }
346
- }
347
- )
348
- ]
349
- }
327
+ className: "text-sm leading-4"
328
+ },
329
+ `${placeholder}`
350
330
  ),
351
- btn ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
352
- import_material4.Paper,
331
+ colorBorder ? /* @__PURE__ */ React.createElement(search_default, null) : /* @__PURE__ */ React.createElement(
332
+ dropdown_arrow_default,
353
333
  {
354
- sx: {
355
- position: "absolute",
356
- width: !fullContainerWidth && btn ? btn.offsetWidth : "100%",
357
- left: fullContainerWidth ? 0 : "initial",
358
- right: fullContainerWidth ? 0 : "initial",
359
- top: overButton ? 0 : "initial"
360
- },
361
- className: `menu ${open ? "menu--open" : "menu--close"} z-50 rounded-none shadow-sm`,
362
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material4.Box, { className: `flex flex-col p-3 gap-3`, children: [
363
- overButton ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
364
- IconButton_default,
365
- {
366
- className: "bg-accent-silver p-1 self-end absolute",
367
- onClick: handleClose,
368
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(close_default, {})
369
- }
370
- ) : null,
371
- childTitle ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
372
- import_material4.Typography,
373
- {
374
- className: "text-sm font-normal text-accent-silver-2",
375
- children: childTitle
376
- }
377
- ) : null,
378
- childrenWithHandleChange
379
- ] })
334
+ style: {
335
+ transform: open ? "scaleY(-1)" : "scaleY(1)",
336
+ transition: "0.3s ease-in-out"
337
+ }
380
338
  }
381
- ) : null
382
- ] }) });
339
+ )
340
+ ), btn ? /* @__PURE__ */ React.createElement(
341
+ import_material4.Paper,
342
+ {
343
+ sx: {
344
+ position: "absolute",
345
+ width: !fullContainerWidth && btn ? btn.offsetWidth : "100%",
346
+ left: fullContainerWidth ? 0 : "initial",
347
+ right: fullContainerWidth ? 0 : "initial",
348
+ top: overButton ? 0 : "initial"
349
+ },
350
+ className: `menu ${open ? "menu--open" : "menu--close"} z-50 rounded-none shadow-sm`
351
+ },
352
+ /* @__PURE__ */ React.createElement(import_material4.Box, { className: `flex flex-col p-3 gap-3` }, overButton ? /* @__PURE__ */ React.createElement(
353
+ IconButton_default,
354
+ {
355
+ className: "bg-accent-silver p-1 self-end absolute",
356
+ onClick: handleClose
357
+ },
358
+ /* @__PURE__ */ React.createElement(close_default, null)
359
+ ) : null, childTitle ? /* @__PURE__ */ React.createElement(
360
+ import_material4.Typography,
361
+ {
362
+ className: "text-sm font-normal text-accent-silver-2"
363
+ },
364
+ childTitle
365
+ ) : null, childrenWithHandleChange)
366
+ ) : null));
383
367
  };
384
368
  var SelectPro_default = SelectPro;
385
369
 
386
370
  // src/components/Chip/Chip.tsx
387
371
  var import_material5 = require("@mui/material");
388
- var import_jsx_runtime9 = require("react/jsx-runtime");
389
372
  var StyledChip = (0, import_material5.styled)(import_material5.Chip)(({ theme: theme2 }) => ({
390
373
  borderRadius: theme2.shape.borderRadius
391
374
  }));
@@ -397,7 +380,7 @@ var ChipViews = {
397
380
  };
398
381
  var CustomChip = (props) => {
399
382
  const _a = props, { view } = _a, rest = __objRest(_a, ["view"]);
400
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
383
+ return /* @__PURE__ */ React.createElement(
401
384
  StyledChip,
402
385
  __spreadValues({
403
386
  className: `rounded-none w-fit h-fit px-2.5 py-0 ${ChipViews[view]}`
@@ -408,61 +391,57 @@ var Chip_default = CustomChip;
408
391
 
409
392
  // src/components/Badge/Badge.tsx
410
393
  var import_material6 = require("@mui/material");
411
- var import_jsx_runtime10 = require("react/jsx-runtime");
412
394
  var CustomBadge = (props) => {
413
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_material6.Badge, __spreadValues({}, props));
395
+ return /* @__PURE__ */ React.createElement(import_material6.Badge, __spreadValues({}, props));
414
396
  };
415
397
  var Badge_default = CustomBadge;
416
398
 
417
399
  // src/components/Avatar/Avatar.tsx
418
400
  var import_Avatar = __toESM(require("@mui/material/Avatar"));
419
- var import_jsx_runtime11 = require("react/jsx-runtime");
420
401
  var CustomAvatar = (props) => {
421
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_Avatar.default, __spreadValues({}, props));
402
+ return /* @__PURE__ */ React.createElement(import_Avatar.default, __spreadValues({}, props));
422
403
  };
423
404
  var Avatar_default = CustomAvatar;
424
405
 
425
406
  // src/components/Text/Text.tsx
426
407
  var import_Typography2 = __toESM(require("@mui/material/Typography"));
427
- var import_jsx_runtime12 = require("react/jsx-runtime");
428
408
  var Text = (props) => {
429
409
  const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
430
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_Typography2.default, __spreadProps(__spreadValues({}, rest), { children }));
410
+ return /* @__PURE__ */ React.createElement(import_Typography2.default, __spreadValues({}, rest), children);
431
411
  };
432
412
  var Text_default = Text;
433
413
 
434
414
  // src/components/Radio/Radio.tsx
415
+ var import_react3 = __toESM(require("react"));
435
416
  var import_Radio = __toESM(require("@mui/material/Radio"));
436
417
  var import_FormControlLabel = __toESM(require("@mui/material/FormControlLabel"));
437
- var import_jsx_runtime13 = require("react/jsx-runtime");
438
418
  var CustomRadio = (props) => {
439
419
  const { value, label, radioProps, labelProps } = props;
440
420
  if (label && value)
441
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
421
+ return /* @__PURE__ */ import_react3.default.createElement(
442
422
  import_FormControlLabel.default,
443
423
  __spreadValues({
444
424
  value,
445
- control: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_Radio.default, __spreadValues({}, radioProps)),
425
+ control: /* @__PURE__ */ import_react3.default.createElement(import_Radio.default, __spreadValues({}, radioProps)),
446
426
  label
447
427
  }, labelProps)
448
428
  );
449
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_Radio.default, __spreadValues({}, radioProps));
429
+ return /* @__PURE__ */ import_react3.default.createElement(import_Radio.default, __spreadValues({}, radioProps));
450
430
  };
451
431
  var Radio_default = CustomRadio;
452
432
 
453
433
  // src/components/RadioGroup/RadioGroup.tsx
434
+ var import_react4 = __toESM(require("react"));
454
435
  var import_RadioGroup = __toESM(require("@mui/material/RadioGroup"));
455
- var import_jsx_runtime14 = require("react/jsx-runtime");
456
436
  var CustomRadioGroup = (props) => {
457
437
  const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
458
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_RadioGroup.default, __spreadProps(__spreadValues({}, rest), { children }));
438
+ return /* @__PURE__ */ import_react4.default.createElement(import_RadioGroup.default, __spreadValues({}, rest), children);
459
439
  };
460
440
  var RadioGroup_default = CustomRadioGroup;
461
441
 
462
442
  // src/components/Switch/Switch.tsx
463
443
  var import_material7 = require("@mui/material");
464
444
  var import_Typography3 = __toESM(require("@mui/material/Typography"));
465
- var import_jsx_runtime15 = require("react/jsx-runtime");
466
445
  var Switch = (0, import_material7.styled)(import_material7.Switch)(({ theme: theme2 }) => ({
467
446
  width: 60,
468
447
  height: 30,
@@ -506,26 +485,20 @@ var Switch = (0, import_material7.styled)(import_material7.Switch)(({ theme: the
506
485
  }));
507
486
  var CustomSwitch = (props) => {
508
487
  const _a = props, { beforeText, afterText } = _a, rest = __objRest(_a, ["beforeText", "afterText"]);
509
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_material7.Stack, { direction: "row", spacing: 1, alignItems: "center", children: [
510
- beforeText ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_Typography3.default, { className: "text-base", children: beforeText }) : null,
511
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Switch, __spreadProps(__spreadValues({ defaultChecked: true }, rest), { disableRipple: true })),
512
- afterText ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_Typography3.default, { className: "text-base", children: afterText }) : null
513
- ] });
488
+ return /* @__PURE__ */ React.createElement(import_material7.Stack, { direction: "row", spacing: 1, alignItems: "center" }, beforeText ? /* @__PURE__ */ React.createElement(import_Typography3.default, { className: "text-base" }, beforeText) : null, /* @__PURE__ */ React.createElement(Switch, __spreadProps(__spreadValues({ defaultChecked: true }, rest), { disableRipple: true })), afterText ? /* @__PURE__ */ React.createElement(import_Typography3.default, { className: "text-base" }, afterText) : null);
514
489
  };
515
490
  var Switch_default = CustomSwitch;
516
491
 
517
492
  // src/components/Slider/Slider.tsx
518
493
  var import_material8 = require("@mui/material");
519
- var import_jsx_runtime16 = require("react/jsx-runtime");
520
494
  var StyledSlider = (0, import_material8.styled)(import_material8.Slider)(() => ({}));
521
495
  var CustomSlider = (props) => {
522
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(StyledSlider, __spreadValues({}, props));
496
+ return /* @__PURE__ */ React.createElement(StyledSlider, __spreadValues({}, props));
523
497
  };
524
498
  var Slider_default = CustomSlider;
525
499
 
526
500
  // src/components/MenuItem/MenuItem.tsx
527
501
  var import_material9 = require("@mui/material");
528
- var import_jsx_runtime17 = require("react/jsx-runtime");
529
502
  var StyledMenuItem = (0, import_material9.styled)(import_material9.MenuItem)(() => ({
530
503
  borderRadius: "5px",
531
504
  "&.Mui-selected": {
@@ -535,14 +508,13 @@ var StyledMenuItem = (0, import_material9.styled)(import_material9.MenuItem)(()
535
508
  }));
536
509
  var CustomMenuItem = (props) => {
537
510
  const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
538
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(StyledMenuItem, __spreadProps(__spreadValues({}, rest), { children }));
511
+ return /* @__PURE__ */ React.createElement(StyledMenuItem, __spreadValues({}, rest), children);
539
512
  };
540
513
  var MenuItem_default = CustomMenuItem;
541
514
 
542
515
  // src/components/Input/Input.tsx
543
516
  var import_material10 = require("@mui/material");
544
517
  var import_Input = __toESM(require("@mui/material/Input"));
545
- var import_jsx_runtime18 = require("react/jsx-runtime");
546
518
  var StyledInput = (0, import_material10.styled)(import_Input.default)(() => ({
547
519
  "& input::-webkit-outer-spin-button, & input::-webkit-inner-spin-button": {
548
520
  display: "none"
@@ -554,17 +526,17 @@ var StyledInput = (0, import_material10.styled)(import_Input.default)(() => ({
554
526
  var CustomInput = (props) => {
555
527
  const _a = props, { type, adornmentText, value } = _a, rest = __objRest(_a, ["type", "adornmentText", "value"]);
556
528
  const handleKeyDown = (event) => {
557
- if (!/[0-9]/.test(event.key) && event.key !== "Backspace") {
529
+ if (type === "number" && !/[0-9]/.test(event.key) && event.key !== "Backspace") {
558
530
  event.preventDefault();
559
531
  event.stopPropagation();
560
532
  }
561
533
  };
562
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
534
+ return /* @__PURE__ */ React.createElement(
563
535
  StyledInput,
564
536
  __spreadValues({
565
537
  disableUnderline: true,
566
538
  onKeyDown: handleKeyDown,
567
- startAdornment: adornmentText ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_material10.InputAdornment, { position: "start", className: "text-sm", children: adornmentText }) : void 0,
539
+ startAdornment: adornmentText ? /* @__PURE__ */ React.createElement(import_material10.InputAdornment, { position: "start", className: "text-sm" }, adornmentText) : void 0,
568
540
  value,
569
541
  componentsProps: {
570
542
  root: {
@@ -579,12 +551,11 @@ var Input_default = CustomInput;
579
551
 
580
552
  // src/components/Input/PhoneInput.tsx
581
553
  var import_react_number_format = require("react-number-format");
582
- var import_react3 = require("react");
583
- var import_jsx_runtime19 = require("react/jsx-runtime");
584
- var PhoneInput = (0, import_react3.forwardRef)(
554
+ var import_react5 = require("react");
555
+ var PhoneInput = (0, import_react5.forwardRef)(
585
556
  function NumericFormatCustom(props, ref) {
586
557
  const _a = props, { onChange } = _a, other = __objRest(_a, ["onChange"]);
587
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
558
+ return /* @__PURE__ */ React.createElement(
588
559
  import_react_number_format.PatternFormat,
589
560
  __spreadProps(__spreadValues({}, other), {
590
561
  getInputRef: ref,
@@ -608,23 +579,16 @@ var PhoneInput_default = PhoneInput;
608
579
  // src/components/Input/FromToInput.tsx
609
580
  var import_material11 = require("@mui/material");
610
581
  var import_Typography4 = __toESM(require("@mui/material/Typography"));
611
- var import_jsx_runtime20 = require("react/jsx-runtime");
612
582
  var FromToInput = ({ label }) => {
613
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_material11.Stack, { children: [
614
- label ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_Typography4.default, { className: "text-accent-dark text-xs", children: label }) : null,
615
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_material11.Stack, { direction: "row", spacing: 1, children: [
616
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Input_default, { adornmentText: "\u0432\u0456\u0434", fullWidth: true, type: "number" }),
617
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Input_default, { adornmentText: "\u0434\u043E", fullWidth: true, type: "number" })
618
- ] })
619
- ] });
583
+ return /* @__PURE__ */ React.createElement(import_material11.Stack, null, label ? /* @__PURE__ */ React.createElement(import_Typography4.default, { className: "text-accent-dark text-xs" }, label) : null, /* @__PURE__ */ React.createElement(import_material11.Stack, { direction: "row", spacing: 1 }, /* @__PURE__ */ React.createElement(Input_default, { adornmentText: "\u0432\u0456\u0434", fullWidth: true, type: "number" }), /* @__PURE__ */ React.createElement(Input_default, { adornmentText: "\u0434\u043E", fullWidth: true, type: "number" })));
620
584
  };
621
585
  var FromToInput_default = FromToInput;
622
586
 
623
587
  // src/theme/index.tsx
624
- var import_react4 = require("react");
588
+ var import_react6 = require("react");
625
589
  var import_cache = __toESM(require("@emotion/cache"));
626
590
  var import_navigation = require("next/navigation");
627
- var import_react5 = require("@emotion/react");
591
+ var import_react7 = require("@emotion/react");
628
592
  var import_ThemeProvider = __toESM(require("@mui/material/styles/ThemeProvider"));
629
593
  var import_createTheme = __toESM(require("@mui/material/styles/createTheme"));
630
594
  var import_CssBaseline = __toESM(require("@mui/material/CssBaseline"));
@@ -667,11 +631,10 @@ var _theme = {
667
631
  };
668
632
 
669
633
  // src/theme/index.tsx
670
- var import_jsx_runtime21 = require("react/jsx-runtime");
671
634
  var theme = (0, import_createTheme.default)(__spreadValues({}, _theme));
672
635
  function ThemeRegistry(props) {
673
636
  const { children } = props;
674
- const [{ cache, flush }] = (0, import_react4.useState)(() => {
637
+ const [{ cache, flush }] = (0, import_react6.useState)(() => {
675
638
  const cache2 = (0, import_cache.default)({
676
639
  key: "mui",
677
640
  stylisPlugins: [import_stylis.prefixer]
@@ -700,39 +663,34 @@ function ThemeRegistry(props) {
700
663
  for (const name of names) {
701
664
  styles += cache.inserted[name];
702
665
  }
703
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
666
+ return /* @__PURE__ */ React.createElement(
704
667
  "style",
705
668
  {
669
+ key: cache.key,
706
670
  "data-emotion": `${cache.key} ${names.join(" ")}`,
707
671
  dangerouslySetInnerHTML: {
708
672
  __html: styles
709
673
  }
710
- },
711
- cache.key
674
+ }
712
675
  );
713
676
  });
714
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react5.CacheProvider, { value: cache, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_ThemeProvider.default, { theme, children: [
715
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_CssBaseline.default, {}),
716
- children
717
- ] }) });
677
+ return /* @__PURE__ */ React.createElement(import_react7.CacheProvider, { value: cache }, /* @__PURE__ */ React.createElement(import_ThemeProvider.default, { theme }, /* @__PURE__ */ React.createElement(import_CssBaseline.default, null), children));
718
678
  }
719
679
 
720
680
  // src/providers/Providers.tsx
721
- var import_jsx_runtime22 = require("react/jsx-runtime");
722
681
  var Providers = ({ children }) => {
723
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ThemeRegistry, { children });
682
+ return /* @__PURE__ */ React.createElement(ThemeRegistry, null, children);
724
683
  };
725
684
  var Providers_default = Providers;
726
685
 
727
686
  // src/components/AppBar/AppBar.tsx
728
- var import_react6 = require("react");
687
+ var import_react8 = require("react");
729
688
  var import_material12 = require("@mui/material");
730
689
  var import_link = __toESM(require("next/link"));
731
- var import_jsx_runtime23 = require("react/jsx-runtime");
732
690
  var AppBar = ({ links }) => {
733
- const [activeIndex, setActiveIndex] = (0, import_react6.useState)(0);
734
- const navItemsRef = (0, import_react6.useRef)([]);
735
- (0, import_react6.useEffect)(() => {
691
+ const [activeIndex, setActiveIndex] = (0, import_react8.useState)(0);
692
+ const navItemsRef = (0, import_react8.useRef)([]);
693
+ (0, import_react8.useEffect)(() => {
736
694
  const indicator = document.querySelector(".nav-indicator");
737
695
  const navItem = navItemsRef.current[activeIndex];
738
696
  const navItemWidth = navItem.offsetWidth;
@@ -746,29 +704,25 @@ var AppBar = ({ links }) => {
746
704
  const handleClick = (index) => {
747
705
  setActiveIndex(index);
748
706
  };
749
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_material12.Stack, { direction: "row", spacing: 1, position: "relative", children: [
750
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_material12.Box, { className: "nav-indicator" }),
751
- links.map((link, index) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
752
- import_link.default,
753
- {
754
- ref: (el) => {
755
- navItemsRef.current[index] = el;
756
- },
757
- href: link.path,
758
- className: `nav-item ${index === activeIndex ? "active" : ""} hover:text-accent-beige`,
759
- onClick: () => handleClick(index),
760
- children: link.title
707
+ return /* @__PURE__ */ React.createElement(import_material12.Stack, { direction: "row", spacing: 1, position: "relative" }, /* @__PURE__ */ React.createElement(import_material12.Box, { className: "nav-indicator" }), links.map((link, index) => /* @__PURE__ */ React.createElement(
708
+ import_link.default,
709
+ {
710
+ ref: (el) => {
711
+ navItemsRef.current[index] = el;
761
712
  },
762
- index
763
- ))
764
- ] });
713
+ key: index,
714
+ href: link.path,
715
+ className: `nav-item ${index === activeIndex ? "active" : ""} hover:text-accent-beige`,
716
+ onClick: () => handleClick(index)
717
+ },
718
+ link.title
719
+ )));
765
720
  };
766
721
  var AppBar_default = AppBar;
767
722
 
768
723
  // src/components/Image/ImageContainer.tsx
769
724
  var import_material13 = require("@mui/material");
770
725
  var import_image = __toESM(require("next/image"));
771
- var import_jsx_runtime24 = require("react/jsx-runtime");
772
726
  var ImageContainer = (props) => {
773
727
  const {
774
728
  src,
@@ -780,7 +734,7 @@ var ImageContainer = (props) => {
780
734
  loading = "lazy",
781
735
  objectFit = "object-cover"
782
736
  } = props;
783
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_material13.Box, { className: `relative ${width} ${height}`, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
737
+ return /* @__PURE__ */ React.createElement(import_material13.Box, { className: `relative ${width} ${height}` }, /* @__PURE__ */ React.createElement(
784
738
  import_image.default,
785
739
  {
786
740
  className: `${objectFit} object-center`,
@@ -791,14 +745,13 @@ var ImageContainer = (props) => {
791
745
  sizes: "(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",
792
746
  priority
793
747
  }
794
- ) });
748
+ ));
795
749
  };
796
750
  var ImageContainer_default = ImageContainer;
797
751
 
798
752
  // src/icons/map-search.svg
799
- var React4 = __toESM(require("react"));
800
- var import_jsx_runtime25 = require("react/jsx-runtime");
801
- var SvgMapSearch = (props) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("svg", __spreadProps(__spreadValues({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("path", { d: "M11 18L9 17M9 17L3 20V7L9 4M9 17V4M9 4L15 7M15 7L21 4V11.5M15 7V12M20.1992 20.1992L21.9992 21.9992M15 18C15 18.7956 15.3161 19.5587 15.8787 20.1213C16.4413 20.6839 17.2044 21 18 21C18.7956 21 19.5587 20.6839 20.1213 20.1213C20.6839 19.5587 21 18.7956 21 18C21 17.2044 20.6839 16.4413 20.1213 15.8787C19.5587 15.3161 18.7956 15 18 15C17.2044 15 16.4413 15.3161 15.8787 15.8787C15.3161 16.4413 15 17.2044 15 18Z", stroke: "#343434", className: "stroke-current", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }) }));
753
+ var React7 = __toESM(require("react"));
754
+ var SvgMapSearch = (props) => /* @__PURE__ */ React7.createElement("svg", __spreadValues({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ React7.createElement("path", { d: "M11 18L9 17M9 17L3 20V7L9 4M9 17V4M9 4L15 7M15 7L21 4V11.5M15 7V12M20.1992 20.1992L21.9992 21.9992M15 18C15 18.7956 15.3161 19.5587 15.8787 20.1213C16.4413 20.6839 17.2044 21 18 21C18.7956 21 19.5587 20.6839 20.1213 20.1213C20.6839 19.5587 21 18.7956 21 18C21 17.2044 20.6839 16.4413 20.1213 15.8787C19.5587 15.3161 18.7956 15 18 15C17.2044 15 16.4413 15.3161 15.8787 15.8787C15.3161 16.4413 15 17.2044 15 18Z", stroke: "#343434", className: "stroke-current", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }));
802
755
  var map_search_default = SvgMapSearch;
803
756
 
804
757
  // src/components/Card/CategoryCard.tsx
@@ -809,23 +762,16 @@ var import_link2 = __toESM(require("next/link"));
809
762
  var NO_IMAGE = "/images/no-photo.svg";
810
763
 
811
764
  // src/components/Card/CategoryCard.tsx
812
- var import_jsx_runtime26 = require("react/jsx-runtime");
813
765
  var CategoryCard = (props) => {
814
766
  const { link, text, title, image_url = NO_IMAGE } = props;
815
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_link2.default, { href: link, className: "group/card", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_material14.Box, { className: "flex flex-col gap-[20px]", children: [
816
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ImageContainer_default, { src: image_url, alt: title, height: "h-[300px]" }),
817
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_material14.Box, { className: "flex flex-col px-[16px]", children: [
818
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
819
- import_material14.Typography,
820
- {
821
- component: "span",
822
- className: "font-extrabold text-16 group-hover/card:text-gold2",
823
- children: title
824
- }
825
- ),
826
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_material14.Typography, { component: "span", className: "group-hover/card:text-gold2", children: text })
827
- ] })
828
- ] }) });
767
+ return /* @__PURE__ */ React.createElement(import_link2.default, { href: link, className: "group/card" }, /* @__PURE__ */ React.createElement(import_material14.Box, { className: "flex flex-col gap-[20px]" }, /* @__PURE__ */ React.createElement(ImageContainer_default, { src: image_url, alt: title, height: "h-[300px]" }), /* @__PURE__ */ React.createElement(import_material14.Box, { className: "flex flex-col px-[16px]" }, /* @__PURE__ */ React.createElement(
768
+ import_material14.Typography,
769
+ {
770
+ component: "span",
771
+ className: "font-extrabold text-16 group-hover/card:text-gold2"
772
+ },
773
+ title
774
+ ), /* @__PURE__ */ React.createElement(import_material14.Typography, { component: "span", className: "group-hover/card:text-gold2" }, text))));
829
775
  };
830
776
  var CategoryCard_default = CategoryCard;
831
777
 
@@ -833,139 +779,184 @@ var CategoryCard_default = CategoryCard;
833
779
  var import_link3 = __toESM(require("next/link"));
834
780
  var import_material15 = require("@mui/material");
835
781
  var import_Typography5 = __toESM(require("@mui/material/Typography"));
836
- var import_jsx_runtime27 = require("react/jsx-runtime");
837
782
  var ArticleCard = (props) => {
838
783
  const { image_src = NO_IMAGE } = props;
839
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_link3.default, { href: "/", className: "group/card bg-gray-light", children: [
840
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
841
- ImageContainer_default,
842
- {
843
- src: image_src,
844
- alt: "test",
845
- contentful: false,
846
- height: "h-[220px]"
847
- }
848
- ),
849
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_material15.Box, { className: "pt-[24px] pl-[16px] pr-[50px] pb-[10px] flex flex-col gap-[6px]", children: [
850
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
851
- import_Typography5.default,
852
- {
853
- component: "span",
854
- className: "text-16 font-extrabold group-hover/card:text-gold2",
855
- children: "\u041E\u0441\u043E\u0431\u043B\u0438\u0432\u043E\u0441\u0442\u0456 \u043A\u0443\u043F\u0456\u0432\u043B\u0456 \u0433\u043E\u0442\u0435\u043B\u044E"
856
- }
857
- ),
858
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
859
- import_Typography5.default,
860
- {
861
- component: "span",
862
- className: "text-gray group-hover/card:text-gold2",
863
- children: "We have built a strong network in Dubai since 2009, which allows us to source the best deal for"
864
- }
865
- ),
866
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_Typography5.default, { component: "span", className: "border-gold-block-snack", children: "\u0422\u0435\u0433-\u043D\u0430\u0437\u0432\u0430" })
867
- ] })
868
- ] });
784
+ return /* @__PURE__ */ React.createElement(import_link3.default, { href: "/", className: "group/card bg-gray-light" }, /* @__PURE__ */ React.createElement(
785
+ ImageContainer_default,
786
+ {
787
+ src: image_src,
788
+ alt: "test",
789
+ contentful: false,
790
+ height: "h-[220px]"
791
+ }
792
+ ), /* @__PURE__ */ React.createElement(import_material15.Box, { className: "pt-[24px] pl-[16px] pr-[50px] pb-[10px] flex flex-col gap-[6px]" }, /* @__PURE__ */ React.createElement(
793
+ import_Typography5.default,
794
+ {
795
+ component: "span",
796
+ className: "text-16 font-extrabold group-hover/card:text-gold2"
797
+ },
798
+ "\u041E\u0441\u043E\u0431\u043B\u0438\u0432\u043E\u0441\u0442\u0456 \u043A\u0443\u043F\u0456\u0432\u043B\u0456 \u0433\u043E\u0442\u0435\u043B\u044E"
799
+ ), /* @__PURE__ */ React.createElement(
800
+ import_Typography5.default,
801
+ {
802
+ component: "span",
803
+ className: "text-gray group-hover/card:text-gold2"
804
+ },
805
+ "We have built a strong network in Dubai since 2009, which allows us to source the best deal for"
806
+ ), /* @__PURE__ */ React.createElement(import_Typography5.default, { component: "span", className: "border-gold-block-snack" }, "\u0422\u0435\u0433-\u043D\u0430\u0437\u0432\u0430")));
869
807
  };
870
808
  var ArticleCard_default = ArticleCard;
871
809
 
872
810
  // src/components/Card/JobCard.tsx
873
- var import_jsx_runtime28 = require("react/jsx-runtime");
874
811
  var JobCard = () => {
875
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jsx_runtime28.Fragment, {});
812
+ return /* @__PURE__ */ React.createElement(React.Fragment, null);
876
813
  };
877
814
  var JobCard_default = JobCard;
878
815
 
879
816
  // src/components/Card/RealtorCard.tsx
880
- var import_jsx_runtime29 = require("react/jsx-runtime");
881
817
  var RealtorCard = () => {
882
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, {});
818
+ return /* @__PURE__ */ React.createElement(React.Fragment, null);
883
819
  };
884
820
  var RealtorCard_default = RealtorCard;
885
821
 
886
822
  // src/components/Card/RealtyCard.tsx
887
823
  var import_material16 = require("@mui/material");
888
824
  var import_link4 = __toESM(require("next/link"));
889
- var import_jsx_runtime30 = require("react/jsx-runtime");
890
825
  var RealtyCard = () => {
891
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_link4.default, { href: "/", className: "relative", children: [
892
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_material16.Box, { className: "absolute left-[16px] top-[16px] flex flex-col gap-[9px] z-[1]", children: [
893
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Chip_default, { view: "white", label: "id: 00154" }),
894
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Chip_default, { view: "white", label: "\u0416\u041A: \u0421\u0443\u0447\u0430\u0441\u043D\u0438\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B4" })
895
- ] }),
896
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
897
- ImageContainer_default,
898
- {
899
- src: "/images/test.png",
900
- alt: "test",
901
- height: "h-[260px]",
902
- contentful: false
903
- }
904
- ),
905
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_material16.Box, { className: "bg-white py-[20px] px-[16px] flex flex-col gap-[6px]", children: [
906
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Chip_default, { view: "black", label: "120 000 \u20B4/\u043C\u0456\u0441\u044F\u0446\u044C" }),
907
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_material16.Typography, { component: "span", className: "font-extrabold", children: "\u0432\u0443\u043B. \u0414\u0440\u0430\u0433\u043E\u043C\u0438\u0440\u043E\u0432\u0430 25" }),
908
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_material16.Typography, { component: "span", className: "text-12", children: "\u041F\u0435\u0447\u0435\u0440\u0441\u044C\u043A\u0438\u0439 \u0440-\u043D" }),
909
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
910
- Chip_default,
911
- {
912
- view: "silver",
913
- label: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_material16.Stack, { direction: "row", spacing: 1, children: [
914
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_material16.Typography, { children: "\u043C\u0435\u0442\u0440\u043E:" }),
915
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_material16.Typography, { className: "font-extrabold", children: "\u041B\u0438\u0431\u0456\u0434\u0441\u044C\u043A\u0430" })
916
- ] })
917
- }
918
- ),
919
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_material16.Box, { className: "flex flex-wrap gap-[6px] mt-[6px]", children: [
920
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Chip_default, { view: "line", label: "2 \u043A\u0456\u043C\u043D" }),
921
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Chip_default, { view: "line", label: "60 \u043C\xB2" }),
922
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Chip_default, { view: "line", label: "\u043F\u043E\u0432\u0435\u0440\u0445: 3/24" })
923
- ] })
924
- ] })
925
- ] });
826
+ return /* @__PURE__ */ React.createElement(import_link4.default, { href: "/", className: "relative" }, /* @__PURE__ */ React.createElement(import_material16.Box, { className: "absolute left-[16px] top-[16px] flex flex-col gap-[9px] z-[1]" }, /* @__PURE__ */ React.createElement(Chip_default, { view: "white", label: "id: 00154" }), /* @__PURE__ */ React.createElement(Chip_default, { view: "white", label: "\u0416\u041A: \u0421\u0443\u0447\u0430\u0441\u043D\u0438\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B4" })), /* @__PURE__ */ React.createElement(
827
+ ImageContainer_default,
828
+ {
829
+ src: "/images/test.png",
830
+ alt: "test",
831
+ height: "h-[260px]",
832
+ contentful: false
833
+ }
834
+ ), /* @__PURE__ */ React.createElement(import_material16.Box, { className: "bg-white py-[20px] px-[16px] flex flex-col gap-[6px]" }, /* @__PURE__ */ React.createElement(Chip_default, { view: "black", label: "120 000 \u20B4/\u043C\u0456\u0441\u044F\u0446\u044C" }), /* @__PURE__ */ React.createElement(import_material16.Typography, { component: "span", className: "font-extrabold" }, "\u0432\u0443\u043B. \u0414\u0440\u0430\u0433\u043E\u043C\u0438\u0440\u043E\u0432\u0430 25"), /* @__PURE__ */ React.createElement(import_material16.Typography, { component: "span", className: "text-12" }, "\u041F\u0435\u0447\u0435\u0440\u0441\u044C\u043A\u0438\u0439 \u0440-\u043D"), /* @__PURE__ */ React.createElement(
835
+ Chip_default,
836
+ {
837
+ view: "silver",
838
+ label: /* @__PURE__ */ React.createElement(import_material16.Stack, { direction: "row", spacing: 1 }, /* @__PURE__ */ React.createElement(import_material16.Typography, null, "\u043C\u0435\u0442\u0440\u043E:"), /* @__PURE__ */ React.createElement(import_material16.Typography, { className: "font-extrabold" }, "\u041B\u0438\u0431\u0456\u0434\u0441\u044C\u043A\u0430"))
839
+ }
840
+ ), /* @__PURE__ */ React.createElement(import_material16.Box, { className: "flex flex-wrap gap-[6px] mt-[6px]" }, /* @__PURE__ */ React.createElement(Chip_default, { view: "line", label: "2 \u043A\u0456\u043C\u043D" }), /* @__PURE__ */ React.createElement(Chip_default, { view: "line", label: "60 \u043C\xB2" }), /* @__PURE__ */ React.createElement(Chip_default, { view: "line", label: "\u043F\u043E\u0432\u0435\u0440\u0445: 3/24" }))));
926
841
  };
927
842
  var RealtyCard_default = RealtyCard;
928
843
 
929
844
  // src/components/Card/TeamPersonCard.tsx
930
845
  var import_material17 = require("@mui/material");
931
- var import_jsx_runtime31 = require("react/jsx-runtime");
932
846
  var TeamPersonCard = (props) => {
933
847
  const { image_url = NO_IMAGE, name, position, text } = props;
934
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_material17.Box, { className: "group/card", children: [
935
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_material17.Box, { className: "relative h-[300px]", children: [
936
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_material17.Box, { className: "w-full h-full bg-gray-medium group-hover/card:brightness-[50%]", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
937
- ImageContainer_default,
938
- {
939
- contentful: false,
940
- src: image_url,
941
- alt: name,
942
- objectFit: "object-contain"
943
- }
944
- ) }),
945
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_material17.Box, { className: "hidden absolute top-[110px] left-[30px] right-[30px] group-hover/card:flex flex-col text-white", children: [
946
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_material17.Typography, { component: "span", className: "text-16 font-extrabold", children: position }),
947
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_material17.Typography, { component: "span", className: "mt-[4px]", children: name }),
948
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
949
- import_material17.Typography,
950
- {
951
- component: "span",
952
- className: "mt-[11px] text-12 !leading-[16px]",
953
- children: text
954
- }
955
- )
956
- ] })
957
- ] }),
958
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_material17.Box, { className: "mt-[20px] text-center mx-auto flex flex-col w-10/12", children: [
959
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_material17.Typography, { component: "span", className: "text-16 font-extrabold", children: position }),
960
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_material17.Typography, { component: "span", className: "text-gray", children: name })
961
- ] })
962
- ] });
848
+ return /* @__PURE__ */ React.createElement(import_material17.Box, { className: "group/card" }, /* @__PURE__ */ React.createElement(import_material17.Box, { className: "relative h-[300px]" }, /* @__PURE__ */ React.createElement(import_material17.Box, { className: "w-full h-full bg-gray-medium group-hover/card:brightness-[50%]" }, /* @__PURE__ */ React.createElement(
849
+ ImageContainer_default,
850
+ {
851
+ contentful: false,
852
+ src: image_url,
853
+ alt: name,
854
+ objectFit: "object-contain"
855
+ }
856
+ )), /* @__PURE__ */ React.createElement(import_material17.Box, { className: "hidden absolute top-[110px] left-[30px] right-[30px] group-hover/card:flex flex-col text-white" }, /* @__PURE__ */ React.createElement(import_material17.Typography, { component: "span", className: "text-16 font-extrabold" }, position), /* @__PURE__ */ React.createElement(import_material17.Typography, { component: "span", className: "mt-[4px]" }, name), /* @__PURE__ */ React.createElement(
857
+ import_material17.Typography,
858
+ {
859
+ component: "span",
860
+ className: "mt-[11px] text-12 !leading-[16px]"
861
+ },
862
+ text
863
+ ))), /* @__PURE__ */ React.createElement(import_material17.Box, { className: "mt-[20px] text-center mx-auto flex flex-col w-10/12" }, /* @__PURE__ */ React.createElement(import_material17.Typography, { component: "span", className: "text-16 font-extrabold" }, position), /* @__PURE__ */ React.createElement(import_material17.Typography, { component: "span", className: "text-gray" }, name)));
963
864
  };
964
865
  var TeamPersonCard_default = TeamPersonCard;
866
+
867
+ // src/components/Autocomplete/Autocomplete.tsx
868
+ var import_react9 = require("react");
869
+ var import_material18 = require("@mui/material");
870
+ var import_react_hook_form = require("react-hook-form");
871
+ var RenderInputAutocomplete = (_a) => {
872
+ var _b = _a, {
873
+ InputProps: InputProps2,
874
+ InputLabelProps
875
+ } = _b, other = __objRest(_b, [
876
+ "InputProps",
877
+ "InputLabelProps"
878
+ ]);
879
+ return /* @__PURE__ */ React.createElement(import_material18.Box, { ref: InputProps2.ref }, /* @__PURE__ */ React.createElement(
880
+ import_material18.Input,
881
+ __spreadProps(__spreadValues(__spreadValues({}, InputProps2), other), {
882
+ startAdornment: /* @__PURE__ */ React.createElement(import_material18.Stack, { direction: "row", alignItems: "center" }, /* @__PURE__ */ React.createElement(import_material18.InputAdornment, { position: "start" }, /* @__PURE__ */ React.createElement(search_default, null)), InputProps2.startAdornment),
883
+ endAdornment: /* @__PURE__ */ React.createElement(React.Fragment, null),
884
+ ref: InputProps2.ref,
885
+ disableUnderline: true,
886
+ placeholder: "\u041F\u043E\u0448\u0443\u043A \u043F\u043E \u0440\u0430\u0439\u043E\u043D\u0443, \u0432\u0443\u043B\u0438\u0446\u0456, \u0416\u041A",
887
+ componentsProps: {
888
+ root: {
889
+ className: "border rounded-none border-solid normal-case text-accent-dark hover:bg-white border-accent-beige gap-x-2 px-5 !py-2"
890
+ }
891
+ // input: {
892
+ // className: "w-full",
893
+ // },
894
+ }
895
+ })
896
+ ));
897
+ };
898
+ var CustomPaperComponent = (props) => {
899
+ return /* @__PURE__ */ React.createElement(import_material18.Paper, __spreadValues({}, props), /* @__PURE__ */ React.createElement("div", { key: "click-away-wrapper" }, "helllooo", props.children));
900
+ };
901
+ var Autocomplete = (props) => {
902
+ const { values } = props;
903
+ const [open, setOpen] = (0, import_react9.useState)(false);
904
+ const [anchorEl, setAnchorEl] = (0, import_react9.useState)(null);
905
+ const { field } = (0, import_react_hook_form.useController)(props);
906
+ const handleClick = (event) => {
907
+ if (open)
908
+ setTimeout(() => {
909
+ setAnchorEl(null);
910
+ }, 200);
911
+ else setAnchorEl(event.currentTarget);
912
+ setOpen(!open);
913
+ };
914
+ return /* @__PURE__ */ React.createElement(
915
+ import_material18.Autocomplete,
916
+ {
917
+ multiple: true,
918
+ ref: anchorEl,
919
+ open: !!anchorEl,
920
+ onOpen: handleClick,
921
+ onClose: handleClick,
922
+ onChange: (_event, values2) => {
923
+ field.onChange(values2);
924
+ },
925
+ disableCloseOnSelect: true,
926
+ options: values,
927
+ PaperComponent: CustomPaperComponent,
928
+ renderTags: (value, getTagProps) => value.map((option, index) => {
929
+ const _a = getTagProps({ index }), { key } = _a, tagProps = __objRest(_a, ["key"]);
930
+ return /* @__PURE__ */ React.createElement(
931
+ import_material18.Chip,
932
+ __spreadProps(__spreadValues({
933
+ label: option,
934
+ key
935
+ }, tagProps), {
936
+ deleteIcon: /* @__PURE__ */ React.createElement(IconButton_default, { className: "rounded-none bg-accent-silver p-1" }, /* @__PURE__ */ React.createElement(close_default, null)),
937
+ className: "rounded-none w-fit h-fit bg-transparent p-0"
938
+ })
939
+ );
940
+ }),
941
+ slotProps: {
942
+ paper: {
943
+ sx: {},
944
+ className: `menu ${open ? "menu--open" : "menu--close"} z-50 rounded-none shadow-sm`
945
+ }
946
+ },
947
+ renderInput: (params) => /* @__PURE__ */ React.createElement(
948
+ RenderInputAutocomplete,
949
+ __spreadValues({}, params)
950
+ )
951
+ }
952
+ );
953
+ };
954
+ var Autocomplete_default = Autocomplete;
965
955
  // Annotate the CommonJS export names for ESM import in node:
966
956
  0 && (module.exports = {
967
957
  AppBar,
968
958
  ArticleCard,
959
+ Autocomplete,
969
960
  Avatar,
970
961
  Badge,
971
962
  Button,