magneto365.ui 2.46.0 → 2.47.0
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/assets/360b8d098be3a53b.svg +7 -0
- package/dist/assets/bdaa69e0d22124aa.svg +6 -0
- package/dist/cjs/css/magneto.ui.lib.min.css +1 -1
- package/dist/cjs/index.js +714 -406
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/ExpandableInfo.component.d.ts +6 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/ExpandableInfo.interface.d.ts +54 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoAction/ExpandableInfoAction.component.d.ts +6 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoAction/ExpandableInfoAction.constants.d.ts +3 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoAction/ExpandableInfoAction.interface.d.ts +38 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoAction/index.d.ts +2 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoDetails/ExpandableInfoDetails.component.d.ts +6 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoDetails/ExpandableInfoDetails.interface.d.ts +32 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoDetails/index.d.ts +2 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoMessage/ExpandableInfoMessage.component.d.ts +6 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoMessage/ExpandableInfoMessage.constants.d.ts +3 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoMessage/ExpandableInfoMessage.interface.d.ts +16 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoMessage/index.d.ts +2 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoModal/ExpandableInfoModal.component.d.ts +6 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoModal/ExpandableInfoModal.interface.d.ts +11 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoModal/index.d.ts +2 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoPopover/ExpandableInfoPopover.component.d.ts +6 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoPopover/ExpandableInfoPopover.interface.d.ts +20 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoPopover/index.d.ts +2 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoToggler/ExpandableInfoToggler.component.d.ts +6 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoToggler/ExpandableInfoToggler.constants.d.ts +3 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoToggler/ExpandableInfoToggler.interface.d.ts +16 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoToggler/index.d.ts +2 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/children/index.d.ts +6 -0
- package/dist/cjs/types/components/UI/molecules/ExpandableInfo/index.d.ts +2 -0
- package/dist/cjs/types/components/UI/molecules/index.d.ts +1 -0
- package/dist/cjs/types/constants/icons.constants.d.ts +15 -13
- package/dist/cjs/types/constants/stories/expandableInfo.constants.d.ts +5 -0
- package/dist/cjs/types/constants/stories/index.d.ts +1 -0
- package/dist/cjs/types/utils/classNameManager/classNameManager.util.d.ts +1 -1
- package/dist/esm/css/magneto.ui.lib.min.css +1 -1
- package/dist/esm/index.js +714 -407
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/ExpandableInfo.component.d.ts +6 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/ExpandableInfo.interface.d.ts +54 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoAction/ExpandableInfoAction.component.d.ts +6 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoAction/ExpandableInfoAction.constants.d.ts +3 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoAction/ExpandableInfoAction.interface.d.ts +38 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoAction/index.d.ts +2 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoDetails/ExpandableInfoDetails.component.d.ts +6 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoDetails/ExpandableInfoDetails.interface.d.ts +32 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoDetails/index.d.ts +2 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoMessage/ExpandableInfoMessage.component.d.ts +6 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoMessage/ExpandableInfoMessage.constants.d.ts +3 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoMessage/ExpandableInfoMessage.interface.d.ts +16 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoMessage/index.d.ts +2 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoModal/ExpandableInfoModal.component.d.ts +6 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoModal/ExpandableInfoModal.interface.d.ts +11 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoModal/index.d.ts +2 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoPopover/ExpandableInfoPopover.component.d.ts +6 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoPopover/ExpandableInfoPopover.interface.d.ts +20 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoPopover/index.d.ts +2 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoToggler/ExpandableInfoToggler.component.d.ts +6 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoToggler/ExpandableInfoToggler.constants.d.ts +3 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoToggler/ExpandableInfoToggler.interface.d.ts +16 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/ExpandableInfoToggler/index.d.ts +2 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/children/index.d.ts +6 -0
- package/dist/esm/types/components/UI/molecules/ExpandableInfo/index.d.ts +2 -0
- package/dist/esm/types/components/UI/molecules/index.d.ts +1 -0
- package/dist/esm/types/constants/icons.constants.d.ts +15 -13
- package/dist/esm/types/constants/stories/expandableInfo.constants.d.ts +5 -0
- package/dist/esm/types/constants/stories/index.d.ts +1 -0
- package/dist/esm/types/utils/classNameManager/classNameManager.util.d.ts +1 -1
- package/dist/index.d.ts +144 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -241,7 +241,7 @@ var useMediaQuery = function (defaultValue, options) {
|
|
|
241
241
|
|
|
242
242
|
var style$Y = {"magneto-ui-icon":"mg_icon_magneto-ui-icon_4jxnv","magneto-ui-hover":"mg_icon_magneto-ui-hover_4jxnv"};
|
|
243
243
|
|
|
244
|
-
var Component$
|
|
244
|
+
var Component$1_ = function (_a) {
|
|
245
245
|
var fallbackIcon = _a.fallbackIcon, _b = _a.showDefaultFallback, showDefaultFallback = _b === void 0 ? true : _b, icon = _a.icon, _c = _a.hover, hover = _c === void 0 ? false : _c, size = _a.size, className = _a.className, alt = _a.alt;
|
|
246
246
|
var _d = useState(false), imageError = _d[0], setImageError = _d[1];
|
|
247
247
|
var handleError = function () {
|
|
@@ -257,9 +257,9 @@ var Component$1T = function (_a) {
|
|
|
257
257
|
/**
|
|
258
258
|
* Atom UI component of Icon for general purpose
|
|
259
259
|
*/
|
|
260
|
-
var IconItem = Component$
|
|
260
|
+
var IconItem = Component$1_;
|
|
261
261
|
|
|
262
|
-
var styles$
|
|
262
|
+
var styles$1X = {"avatarComponent":"mg_avatar_avatarComponent_1upgt","magneto-ui-default-avatar":"mg_avatar_magneto-ui-default-avatar_1upgt"};
|
|
263
263
|
|
|
264
264
|
var Add = "https://static.magneto365.com/lib/assets/f738cef7b76c444f.svg";
|
|
265
265
|
|
|
@@ -267,6 +267,12 @@ var Add2 = "https://static.magneto365.com/lib/assets/4a5507815cef1554.svg";
|
|
|
267
267
|
|
|
268
268
|
var AddSquareBlackOutline = "https://static.magneto365.com/lib/assets/7802bad8f709827a.svg";
|
|
269
269
|
|
|
270
|
+
var AnimatedSpinnerBlack = "https://static.magneto365.com/lib/assets/gif/6f5219c0a4f28bcb.gif";
|
|
271
|
+
|
|
272
|
+
var AnimatedSpinnerBlue = "https://static.magneto365.com/lib/assets/gif/e67f4a6ee6def0b9.gif";
|
|
273
|
+
|
|
274
|
+
var AnimatedSpinnerWhite = "https://static.magneto365.com/lib/assets/gif/7ca5635f07345351.gif";
|
|
275
|
+
|
|
270
276
|
var AppGallery = "https://static.magneto365.com/lib/assets/9b6593bf9428b372.svg";
|
|
271
277
|
|
|
272
278
|
var AppStore = "https://static.magneto365.com/lib/assets/3a0538b69a09a4d4.svg";
|
|
@@ -287,6 +293,8 @@ var ArrowLeft2 = "https://static.magneto365.com/lib/assets/6db655a0b81727ca.svg"
|
|
|
287
293
|
|
|
288
294
|
var ArrowRight2 = "https://static.magneto365.com/lib/assets/ce1843403fbc32ff.svg";
|
|
289
295
|
|
|
296
|
+
var ArrowRightWhite = "https://static.magneto365.com/lib/assets/cc2f903ba305015e.svg";
|
|
297
|
+
|
|
290
298
|
var ArrowSwapVertical = "https://static.magneto365.com/lib/assets/11314346afd968cf.svg";
|
|
291
299
|
|
|
292
300
|
var BookBlueBold = "https://static.magneto365.com/lib/assets/1d63e2974f98ed3e.svg";
|
|
@@ -313,6 +321,12 @@ var Clock = "https://static.magneto365.com/lib/assets/4219aa1f11a79041.svg";
|
|
|
313
321
|
|
|
314
322
|
var Close = "https://static.magneto365.com/lib/assets/2cb852fd568fb219.svg";
|
|
315
323
|
|
|
324
|
+
var CloseCircle = "https://static.magneto365.com/lib/assets/8cfd4406b512a517.svg";
|
|
325
|
+
|
|
326
|
+
var CoinBlackOutline = "https://static.magneto365.com/lib/assets/360b8d098be3a53b.svg";
|
|
327
|
+
|
|
328
|
+
var Danger = "https://static.magneto365.com/lib/assets/9a7bd42035ea607a.svg";
|
|
329
|
+
|
|
316
330
|
var DocTextBlueBold = "https://static.magneto365.com/lib/assets/534ed15cadd2c1e2.svg";
|
|
317
331
|
|
|
318
332
|
var DocTextWhiteOutline = "https://static.magneto365.com/lib/assets/7b6b8e384fddcfc0.svg";
|
|
@@ -331,14 +345,16 @@ var Email = "https://static.magneto365.com/lib/assets/cf21f45748f93b42.svg";
|
|
|
331
345
|
|
|
332
346
|
var Error = "https://static.magneto365.com/lib/assets/b62119b52c5e0b45.svg";
|
|
333
347
|
|
|
334
|
-
var EyeSlash = "https://static.magneto365.com/lib/assets/a278e6e28b3d750f.svg";
|
|
335
|
-
|
|
336
348
|
var Export3 = "https://static.magneto365.com/lib/assets/d05dd8c8cf5dfdda.svg";
|
|
337
349
|
|
|
350
|
+
var EyeSlash = "https://static.magneto365.com/lib/assets/a278e6e28b3d750f.svg";
|
|
351
|
+
|
|
338
352
|
var Facebook = "https://static.magneto365.com/lib/assets/9afcd1285c3a80b9.svg";
|
|
339
353
|
|
|
340
354
|
var FacebookBlue = "https://static.magneto365.com/lib/assets/2f78889c67998b03.svg";
|
|
341
355
|
|
|
356
|
+
var FacebookSolid = "https://static.magneto365.com/lib/assets/8700e9c7eda0bc6f.svg";
|
|
357
|
+
|
|
342
358
|
var GooglePlay = "https://static.magneto365.com/lib/assets/559d947a07ad523b.svg";
|
|
343
359
|
|
|
344
360
|
var GridBlueBold = "https://static.magneto365.com/lib/assets/61110a805c116e35.svg";
|
|
@@ -367,6 +383,8 @@ var Info = "https://static.magneto365.com/lib/assets/ae6472919de3f2cd.svg";
|
|
|
367
383
|
|
|
368
384
|
var Instagram = "https://static.magneto365.com/lib/assets/2f6e7422de96c0e8.svg";
|
|
369
385
|
|
|
386
|
+
var InstagramSolid = "https://static.magneto365.com/lib/assets/b0d4cd86c4b553f3.svg";
|
|
387
|
+
|
|
370
388
|
var IsoLogoMagneto = "https://static.magneto365.com/lib/assets/e121976c355f1394.svg";
|
|
371
389
|
|
|
372
390
|
var IsoLogoMagnetoDark = "https://static.magneto365.com/lib/assets/7e60e6c4b8305a5e.svg";
|
|
@@ -377,6 +395,8 @@ var Linkedin = "https://static.magneto365.com/lib/assets/86746fb681bfc4fe.svg";
|
|
|
377
395
|
|
|
378
396
|
var LinkedInBlue = "https://static.magneto365.com/lib/assets/cff89749dd038dca.svg";
|
|
379
397
|
|
|
398
|
+
var LinkedinSolid = "https://static.magneto365.com/lib/assets/e064bafd7de57824.svg";
|
|
399
|
+
|
|
380
400
|
var Location = "https://static.magneto365.com/lib/assets/1d2b2fdbb7ac3a22.svg";
|
|
381
401
|
|
|
382
402
|
var Lock = "https://static.magneto365.com/lib/assets/1b4ef239451a4e2a.svg";
|
|
@@ -417,6 +437,8 @@ var PeopleWhiteOutline = "https://static.magneto365.com/lib/assets/c74040badfa68
|
|
|
417
437
|
|
|
418
438
|
var ProfileAdd = "https://static.magneto365.com/lib/assets/a35333dc3f36808a.svg";
|
|
419
439
|
|
|
440
|
+
var QuestionCircle = "https://static.magneto365.com/lib/assets/26163b1c4adfad74.svg";
|
|
441
|
+
|
|
420
442
|
var RedoDarkBlue = "https://static.magneto365.com/lib/assets/4cf47c41aa26c92f.svg";
|
|
421
443
|
|
|
422
444
|
var Refresh = "https://static.magneto365.com/lib/assets/ccf7b78b6ea5c7b1.svg";
|
|
@@ -435,6 +457,8 @@ var SettingWhiteOutline = "https://static.magneto365.com/lib/assets/aa52049cee4a
|
|
|
435
457
|
|
|
436
458
|
var Share = "https://static.magneto365.com/lib/assets/2349a66212a9afeb.svg";
|
|
437
459
|
|
|
460
|
+
var ShoppingCartBlueOutline = "https://static.magneto365.com/lib/assets/bdaa69e0d22124aa.svg";
|
|
461
|
+
|
|
438
462
|
var SmallClose = "https://static.magneto365.com/lib/assets/08aa49c5bd43a865.svg";
|
|
439
463
|
|
|
440
464
|
var SMSBlue = "https://static.magneto365.com/lib/assets/b7ccde33a6f717b4.svg";
|
|
@@ -451,6 +475,8 @@ var TaskWhiteOutline = "https://static.magneto365.com/lib/assets/e8987356bcb0eb6
|
|
|
451
475
|
|
|
452
476
|
var Tiktok = "https://static.magneto365.com/lib/assets/f3e3f11bce735190.svg";
|
|
453
477
|
|
|
478
|
+
var TiktokSolid = "https://static.magneto365.com/lib/assets/6fb8b692c5ce240a.svg";
|
|
479
|
+
|
|
454
480
|
var Trash = "https://static.magneto365.com/lib/assets/bb5696a688793d1a.svg";
|
|
455
481
|
|
|
456
482
|
var TwitterBlue = "https://static.magneto365.com/lib/assets/af2e6d20e352c9ec.svg";
|
|
@@ -471,49 +497,29 @@ var Warning = "https://static.magneto365.com/lib/assets/bfab45bdc4d8d900.svg";
|
|
|
471
497
|
|
|
472
498
|
var WhatsAppColor = "https://static.magneto365.com/lib/assets/75c50160036c6fdf.svg";
|
|
473
499
|
|
|
500
|
+
var WhatsAppDark = "https://static.magneto365.com/lib/assets/7fda674d8825bc06.svg";
|
|
501
|
+
|
|
474
502
|
var X = "https://static.magneto365.com/lib/assets/fbfcab4deaf2d769.svg";
|
|
475
503
|
|
|
476
504
|
var Youtube = "https://static.magneto365.com/lib/assets/f78dbede1bdf3dd0.svg";
|
|
477
505
|
|
|
478
|
-
var AnimatedSpinnerWhite = "https://static.magneto365.com/lib/assets/gif/7ca5635f07345351.gif";
|
|
479
|
-
|
|
480
|
-
var AnimatedSpinnerBlack = "https://static.magneto365.com/lib/assets/gif/6f5219c0a4f28bcb.gif";
|
|
481
|
-
|
|
482
|
-
var AnimatedSpinnerBlue = "https://static.magneto365.com/lib/assets/gif/e67f4a6ee6def0b9.gif";
|
|
483
|
-
|
|
484
|
-
var CloseCircle = "https://static.magneto365.com/lib/assets/8cfd4406b512a517.svg";
|
|
485
|
-
|
|
486
|
-
var Danger = "https://static.magneto365.com/lib/assets/9a7bd42035ea607a.svg";
|
|
487
|
-
|
|
488
|
-
var InstagramSolid = "https://static.magneto365.com/lib/assets/b0d4cd86c4b553f3.svg";
|
|
489
|
-
|
|
490
|
-
var FacebookSolid = "https://static.magneto365.com/lib/assets/8700e9c7eda0bc6f.svg";
|
|
491
|
-
|
|
492
|
-
var LinkedinSolid = "https://static.magneto365.com/lib/assets/e064bafd7de57824.svg";
|
|
493
|
-
|
|
494
|
-
var TiktokSolid = "https://static.magneto365.com/lib/assets/6fb8b692c5ce240a.svg";
|
|
495
|
-
|
|
496
506
|
var YoutubeSolid = "https://static.magneto365.com/lib/assets/cdcc07646d43bd9d.svg";
|
|
497
507
|
|
|
498
|
-
var
|
|
499
|
-
|
|
500
|
-
var ArrowRightWhite = "https://static.magneto365.com/lib/assets/cc2f903ba305015e.svg";
|
|
501
|
-
|
|
502
|
-
var Component$1S = function (_a) {
|
|
508
|
+
var Component$1Z = function (_a) {
|
|
503
509
|
var userImage = _a.userImage, fallbackImage = _a.fallbackImage, onClick = _a.onClick;
|
|
504
510
|
var _b = useState(false), imageError = _b[0], setImageError = _b[1];
|
|
505
511
|
var handleError = function () {
|
|
506
512
|
setImageError(true);
|
|
507
513
|
};
|
|
508
|
-
return (React.createElement("div", { className: styles$
|
|
514
|
+
return (React.createElement("div", { className: styles$1X.avatarComponent, onClick: onClick },
|
|
509
515
|
userImage && !imageError && React.createElement("img", { src: userImage, alt: "User Avatar", loading: "lazy", onError: handleError }),
|
|
510
|
-
(!userImage || imageError) && (React.createElement("div", { className: styles$
|
|
516
|
+
(!userImage || imageError) && (React.createElement("div", { className: styles$1X['magneto-ui-default-avatar'] },
|
|
511
517
|
React.createElement(IconItem, { icon: fallbackImage || User, hover: false })))));
|
|
512
518
|
};
|
|
513
519
|
/**
|
|
514
520
|
* UI Atom component of Avatar
|
|
515
521
|
*/
|
|
516
|
-
var Avatar = Component$
|
|
522
|
+
var Avatar = Component$1Z;
|
|
517
523
|
|
|
518
524
|
var BAR_LOADER_PREFIX = '--bar-loader';
|
|
519
525
|
|
|
@@ -542,7 +548,7 @@ function parseDate(value) {
|
|
|
542
548
|
}
|
|
543
549
|
|
|
544
550
|
var monthOptionsValue = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
|
|
545
|
-
var _a$
|
|
551
|
+
var _a$5 = generateYearArray(), yearsArray = _a$5.yearsArray, yearsArrayToString = _a$5.yearsArrayToString;
|
|
546
552
|
//Story const
|
|
547
553
|
var months = [
|
|
548
554
|
'January',
|
|
@@ -630,9 +636,9 @@ var SignUpButtonStyle = {
|
|
|
630
636
|
}
|
|
631
637
|
};
|
|
632
638
|
|
|
633
|
-
var styles$
|
|
639
|
+
var styles$1W = {"magneto-ui-modal-analyst-container":"mg_modal_analyst_container_magneto-ui-modal-analyst-container_1aqq3","magneto-ui-modal-analyst-container--desktop":"mg_modal_analyst_container_magneto-ui-modal-analyst-container--desktop_1aqq3","magneto-ui-modal-analyst-container--mobile":"mg_modal_analyst_container_magneto-ui-modal-analyst-container--mobile_1aqq3"};
|
|
634
640
|
|
|
635
|
-
var styles$
|
|
641
|
+
var styles$1V = {"magneto-ui-actions":"mg_actions_magneto-ui-actions_ks5p3","magneto-ui-actions__header":"mg_actions_magneto-ui-actions_header_ks5p3","magneto-ui-actions__header-title":"mg_actions_magneto-ui-actions_header-title_ks5p3","magneto-ui-actions__header-subtitle":"mg_actions_magneto-ui-actions_header-subtitle_ks5p3","magneto-ui-actions__button":"mg_actions_magneto-ui-actions_button_ks5p3","magneto-ui-actions__link":"mg_actions_magneto-ui-actions_link_ks5p3","magneto-ui-actions__link--no-decorator":"mg_actions_magneto-ui-actions_link--no-decorator_ks5p3","magneto-ui-actions__apply-button":"mg_actions_magneto-ui-actions_apply-button_ks5p3","magneto-ui-actions__back":"mg_actions_magneto-ui-actions_back_ks5p3","magneto-ui-actions__share":"mg_actions_magneto-ui-actions_share_ks5p3","magneto-ui__external-child":"mg_actions_magneto-ui_external-child_ks5p3"};
|
|
636
642
|
|
|
637
643
|
var ShareIcons = {
|
|
638
644
|
Facebook: {
|
|
@@ -652,7 +658,7 @@ var ShareIcons = {
|
|
|
652
658
|
}
|
|
653
659
|
};
|
|
654
660
|
|
|
655
|
-
var Component$
|
|
661
|
+
var Component$1Y = function (_a) {
|
|
656
662
|
var ActionsAnchorIcons = _a.ActionsAnchorIcons, ActionsAnchorLinks = _a.ActionsAnchorLinks, ActionAnchorText = _a.ActionAnchorText, ActionsHeader = _a.ActionsHeader, externalButtonChild = _a.externalButtonChild, saveButtonProps = _a.saveButtonProps, shareButtonProps = _a.shareButtonProps, copyButtonProps = _a.copyButtonProps, offerCompanyName = _a.offerCompanyName, backText = _a.backText;
|
|
657
663
|
var _b = useState(), component = _b[0], setComponent = _b[1];
|
|
658
664
|
var actionsLinkList = ActionsAnchorIcons === null || ActionsAnchorIcons === void 0 ? void 0 : ActionsAnchorIcons.map(function (_, index) { return ({
|
|
@@ -665,46 +671,46 @@ var Component$1R = function (_a) {
|
|
|
665
671
|
};
|
|
666
672
|
if (component)
|
|
667
673
|
return component;
|
|
668
|
-
return (React.createElement("div", { className: styles$
|
|
669
|
-
React.createElement("div", { id: styles$
|
|
674
|
+
return (React.createElement("div", { className: styles$1V['magneto-ui-actions'] },
|
|
675
|
+
React.createElement("div", { id: styles$1V['magneto-ui__external-child'] }, externalButtonChild),
|
|
670
676
|
React.createElement(SaveButton, __assign({}, saveButtonProps)),
|
|
671
|
-
React.createElement("button", { className: styles$
|
|
677
|
+
React.createElement("button", { className: styles$1V['magneto-ui-actions__button'], title: shareButtonProps.title, onClick: function () {
|
|
672
678
|
return setComponent(React.createElement(Actions.ShareLinks, { offerCompanyName: offerCompanyName, shareButtonProps: copyButtonProps, ActionsHeader: ActionsHeader, backText: backText, onBack: handleBack }));
|
|
673
679
|
} },
|
|
674
680
|
React.createElement(IconItem, { size: 20, icon: Share }),
|
|
675
681
|
shareButtonProps.content), actionsLinkList === null || actionsLinkList === void 0 ? void 0 :
|
|
676
682
|
actionsLinkList.map(function (_a, index) {
|
|
677
683
|
var url = _a.url, text = _a.text, Icon = _a.Icon;
|
|
678
|
-
return (React.createElement("a", { className: styles$
|
|
684
|
+
return (React.createElement("a", { className: styles$1V['magneto-ui-actions__link'], key: index, href: url, target: "_blank", rel: "noreferrer" },
|
|
679
685
|
React.createElement(IconItem, { hover: false, size: 20, icon: Icon }),
|
|
680
686
|
React.createElement("p", { key: index }, text)));
|
|
681
687
|
}),
|
|
682
|
-
React.createElement("div", { className: styles$
|
|
683
|
-
React.createElement("p", { className: styles$
|
|
684
|
-
offerCompanyName ? React.createElement("p", { className: styles$
|
|
688
|
+
React.createElement("div", { className: styles$1V['magneto-ui-actions__header'] },
|
|
689
|
+
React.createElement("p", { className: styles$1V['magneto-ui-actions__header-title'] }, ActionsHeader),
|
|
690
|
+
offerCompanyName ? React.createElement("p", { className: styles$1V['magneto-ui-actions__header-subtitle'] }, offerCompanyName) : null)));
|
|
685
691
|
};
|
|
686
692
|
var ShareLinksAction = function (_a) {
|
|
687
693
|
var onBack = _a.onBack, _b = _a.shareButtonProps, _c = _b.shareLinks, shareLinks = _c === void 0 ? [] : _c, shareProps = __rest(_b, ["shareLinks"]), ActionsHeader = _a.ActionsHeader, offerCompanyName = _a.offerCompanyName, backText = _a.backText;
|
|
688
|
-
return (React.createElement("div", { className: styles$
|
|
689
|
-
React.createElement(ShareButton, __assign({ className: styles$
|
|
694
|
+
return (React.createElement("div", { className: styles$1V['magneto-ui-actions'] },
|
|
695
|
+
React.createElement(ShareButton, __assign({ className: styles$1V['magneto-ui-actions__share'] }, shareProps)),
|
|
690
696
|
shareLinks.map(function (_a, index) {
|
|
691
697
|
var title = _a.title, ariaLabel = _a.ariaLabel, href = _a.href, icon = _a.icon, name = _a.name;
|
|
692
|
-
return (React.createElement("a", { key: "".concat(title, "-").concat(index), target: "_blank", rel: "noreferrer", "aria-label": ariaLabel, href: href, className: [styles$
|
|
698
|
+
return (React.createElement("a", { key: "".concat(title, "-").concat(index), target: "_blank", rel: "noreferrer", "aria-label": ariaLabel, href: href, className: [styles$1V['magneto-ui-actions__link'], styles$1V['magneto-ui-actions__link--no-decorator']].join(' ') },
|
|
693
699
|
React.createElement(IconItem, { size: 40, icon: name ? ShareIcons[name].icon : icon }),
|
|
694
700
|
React.createElement("span", null, title)));
|
|
695
701
|
}),
|
|
696
|
-
React.createElement("div", { className: styles$
|
|
697
|
-
React.createElement("p", { className: styles$
|
|
698
|
-
offerCompanyName ? React.createElement("p", { className: styles$
|
|
699
|
-
React.createElement("div", { className: styles$
|
|
700
|
-
React.createElement("button", { className: styles$
|
|
702
|
+
React.createElement("div", { className: styles$1V['magneto-ui-actions__header'] },
|
|
703
|
+
React.createElement("p", { className: styles$1V['magneto-ui-actions__header-title'] }, ActionsHeader),
|
|
704
|
+
offerCompanyName ? React.createElement("p", { className: styles$1V['magneto-ui-actions__header-subtitle'] }, offerCompanyName) : null),
|
|
705
|
+
React.createElement("div", { className: styles$1V['magneto-ui-actions__back'] },
|
|
706
|
+
React.createElement("button", { className: styles$1V['magneto-ui-actions__button'], onClick: function () { return onBack(); } },
|
|
701
707
|
React.createElement(IconItem, { size: 20, icon: ArrowLeft2 })),
|
|
702
708
|
backText)));
|
|
703
709
|
};
|
|
704
710
|
/**
|
|
705
711
|
* UI Molecule componet of Actions
|
|
706
712
|
*/
|
|
707
|
-
var Actions = Object.assign(Component$
|
|
713
|
+
var Actions = Object.assign(Component$1Y, { ShareLinks: ShareLinksAction });
|
|
708
714
|
|
|
709
715
|
var style$X = {"magneto-ui-alert":"mg_alert_magneto-ui-alert_1v3n3","magneto-ui-warning":"mg_alert_magneto-ui-warning_1v3n3","magneto-ui-warning--with-border":"mg_alert_magneto-ui-warning--with-border_1v3n3","magneto-ui-success":"mg_alert_magneto-ui-success_1v3n3","magneto-ui-success--with-border":"mg_alert_magneto-ui-success--with-border_1v3n3","magneto-ui-error":"mg_alert_magneto-ui-error_1v3n3","magneto-ui-error--with-border":"mg_alert_magneto-ui-error--with-border_1v3n3","magneto-ui-info":"mg_alert_magneto-ui-info_1v3n3","magneto-ui-info--with-border":"mg_alert_magneto-ui-info--with-border_1v3n3","magneto-ui-close-action":"mg_alert_magneto-ui-close-action_1v3n3"};
|
|
710
716
|
|
|
@@ -730,7 +736,7 @@ var alertIcons = {
|
|
|
730
736
|
warning: Warning,
|
|
731
737
|
error: Error
|
|
732
738
|
};
|
|
733
|
-
var Component$
|
|
739
|
+
var Component$1X = function (_a) {
|
|
734
740
|
var text = _a.text, type = _a.type, customText = _a.customText, _b = _a.border, border = _b === void 0 ? false : _b, size = _a.size, onClose = _a.onClose, _c = _a.className, className = _c === void 0 ? '' : _c, extraButton = _a.extraButton;
|
|
735
741
|
var borderStyle = border ? style$X["".concat(classMUI, "-").concat(type, "--with-border")] : '';
|
|
736
742
|
var typeStyle = style$X["".concat(classMUI, "-").concat(type)];
|
|
@@ -742,7 +748,7 @@ var Component$1Q = function (_a) {
|
|
|
742
748
|
React.createElement(IconItem, { icon: Close, alt: type }))),
|
|
743
749
|
extraButton));
|
|
744
750
|
};
|
|
745
|
-
var Alert = Component$
|
|
751
|
+
var Alert = Component$1X;
|
|
746
752
|
|
|
747
753
|
var style$V = {"magneto-ui-brands__header--row":"mg_brands_container_magneto-ui-brands_header--row_1pjqh","magneto-ui-brands-container":"mg_brands_container_magneto-ui-brands-container_1pjqh","magneto-ui-brands-container__brands":"mg_brands_container_magneto-ui-brands-container_brands_1pjqh","magneto-ui-brands-container__brands--brand":"mg_brands_container_magneto-ui-brands-container_brands--brand_1pjqh"};
|
|
748
754
|
|
|
@@ -784,7 +790,7 @@ var DrawerPortal = function (_a) {
|
|
|
784
790
|
|
|
785
791
|
var style$U = {"magneto-ui-mobile-drawer":"mg_mobile_drawer_magneto-ui-mobile-drawer_kxkzo","magneto-ui-close-button":"mg_mobile_drawer_magneto-ui-close-button_kxkzo","magneto-ui-container":"mg_mobile_drawer_magneto-ui-container_kxkzo","background-drawer":"mg_mobile_drawer_background-drawer_kxkzo","fadeIn":"mg_mobile_drawer_fadeIn_kxkzo","show":"mg_mobile_drawer_show_kxkzo","hidden":"mg_mobile_drawer_hidden_kxkzo"};
|
|
786
792
|
|
|
787
|
-
var Component$
|
|
793
|
+
var Component$1W = function (_a) {
|
|
788
794
|
var onClose = _a.onClose, isOpen = _a.isOpen, children = _a.children, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.blockBackgroundClose, blockBackgroundClose = _c === void 0 ? false : _c;
|
|
789
795
|
var _d = useState(false), showContent = _d[0], setShowContent = _d[1];
|
|
790
796
|
var _e = useState(isOpen), renderPortal = _e[0], setRenderPortal = _e[1];
|
|
@@ -820,7 +826,7 @@ var Component$1P = function (_a) {
|
|
|
820
826
|
/**
|
|
821
827
|
* Molecule UI component for Mobile Drawer
|
|
822
828
|
*/
|
|
823
|
-
var MobileDrawer = Component$
|
|
829
|
+
var MobileDrawer = Component$1W;
|
|
824
830
|
|
|
825
831
|
var style$T = {"magneto-ui-brand-button":"mg_brand_button_magneto-ui-brand-button_145qe","magneto-ui-brand-button__company-logo":"mg_brand_button_magneto-ui-brand-button_company-logo_145qe","magneto-ui-brand-button__company-logo--img":"mg_brand_button_magneto-ui-brand-button_company-logo--img_145qe","magneto-ui-brand-button__icon":"mg_brand_button_magneto-ui-brand-button_icon_145qe","rotate":"mg_brand_button_rotate_145qe"};
|
|
826
832
|
|
|
@@ -876,11 +882,11 @@ var BrandsMenuPopover = function (_a) {
|
|
|
876
882
|
};
|
|
877
883
|
var BrandsMenuPopover$1 = withClickOut(BrandsMenuPopover);
|
|
878
884
|
|
|
879
|
-
var styles$
|
|
885
|
+
var styles$1U = {"BreadcrumbsComponent":"mg_breadcrumbs_BreadcrumbsComponent_13csm"};
|
|
880
886
|
|
|
881
|
-
var Component$
|
|
887
|
+
var Component$1V = function (_a) {
|
|
882
888
|
var homeUrl = _a.homeUrl, breadcrumbProps = _a.breadcrumbProps, _b = _a.iconProps, iconProps = _b === void 0 ? iconPropsBreadCrumb : _b;
|
|
883
|
-
return (React.createElement("div", { className: styles$
|
|
889
|
+
return (React.createElement("div", { className: styles$1U.BreadcrumbsComponent },
|
|
884
890
|
React.createElement("a", { href: homeUrl },
|
|
885
891
|
React.createElement(IconItem, __assign({}, iconProps))),
|
|
886
892
|
breadcrumbProps && React.createElement(Breadcrumb, __assign({}, breadcrumbProps))));
|
|
@@ -888,52 +894,52 @@ var Component$1O = function (_a) {
|
|
|
888
894
|
/**
|
|
889
895
|
* Molecule UI component for breadcrums information
|
|
890
896
|
*/
|
|
891
|
-
var Breadcrumbs = Component$
|
|
897
|
+
var Breadcrumbs = Component$1V;
|
|
892
898
|
|
|
893
|
-
var styles$
|
|
899
|
+
var styles$1T = {"magneto-ui-cities-detail-drawer":"mg_cities_detail_drawer_magneto-ui-cities-detail-drawer_16b6c","magneto-ui-cities-detail-drawer__item-detail-icon":"mg_cities_detail_drawer_magneto-ui-cities-detail-drawer_item-detail-icon_16b6c","magneto-ui-cities-detail-drawer__item-detail-text":"mg_cities_detail_drawer_magneto-ui-cities-detail-drawer_item-detail-text_16b6c","magneto-ui-cities-detail-drawer__item-detail-text-remote":"mg_cities_detail_drawer_magneto-ui-cities-detail-drawer_item-detail-text-remote_16b6c","magneto-ui-cities-detail-drawer__item-detail-text-link":"mg_cities_detail_drawer_magneto-ui-cities-detail-drawer_item-detail-text-link_16b6c"};
|
|
894
900
|
|
|
895
901
|
var CitiesDetailDrawer = function (_a) {
|
|
896
902
|
var cities = _a.cities, isRemote = _a.isRemote, textRemote = _a.textRemote;
|
|
897
|
-
return (React.createElement("div", { className: styles$
|
|
898
|
-
React.createElement("div", { className: styles$
|
|
903
|
+
return (React.createElement("div", { className: styles$1T['magneto-ui-cities-detail-drawer'] }, cities && (cities === null || cities === void 0 ? void 0 : cities.length) ? (React.createElement(React.Fragment, null,
|
|
904
|
+
React.createElement("div", { className: styles$1T['magneto-ui-cities-detail-drawer__item-detail-icon'] },
|
|
899
905
|
React.createElement(IconItem, { alt: 'Location-icon', icon: Location, hover: false, size: 16 })),
|
|
900
|
-
React.createElement("div", { className: styles$
|
|
901
|
-
isRemote && (React.createElement("p", { className: styles$
|
|
906
|
+
React.createElement("div", { className: styles$1T['magneto-ui-cities-detail-drawer__item-detail-text'] },
|
|
907
|
+
isRemote && (React.createElement("p", { className: styles$1T['magneto-ui-cities-detail-drawer__item-detail-text-remote'] }, textRemote)),
|
|
902
908
|
cities &&
|
|
903
909
|
cities.map(function (_a, index) {
|
|
904
910
|
var name = _a.name, url = _a.url, title = _a.title;
|
|
905
|
-
return (React.createElement("div", { className: styles$
|
|
911
|
+
return (React.createElement("div", { className: styles$1T['magneto-ui-cities-detail-drawer__item-detail-text-link'], key: url },
|
|
906
912
|
url ? React.createElement(Link, { href: url, target: "_blank", text: name, title: title }) : React.createElement("span", null, name),
|
|
907
913
|
index !== cities.length - 1 && React.createElement("span", null, ' - ')));
|
|
908
914
|
})))) : null));
|
|
909
915
|
};
|
|
910
916
|
|
|
911
|
-
var styles$
|
|
917
|
+
var styles$1S = {"magneto-ui--date-dropdown__icon":"mg_date_dropdown_magneto-ui--date-dropdown_icon_1xs1p","magneto-ui--date-dropdown__wrapper":"mg_date_dropdown_magneto-ui--date-dropdown_wrapper_1xs1p","magneto-ui--date-dropdown__select":"mg_date_dropdown_magneto-ui--date-dropdown_select_1xs1p","magneto-ui--date-dropdown__option":"mg_date_dropdown_magneto-ui--date-dropdown_option_1xs1p"};
|
|
912
918
|
|
|
913
|
-
var Component$
|
|
919
|
+
var Component$1U = function (_a) {
|
|
914
920
|
var placeholderLabel = _a.placeholderLabel, dateOptions = _a.dateOptions, _b = _a.selectedOption, selectedOption = _b === void 0 ? '' : _b, onOptionChanged = _a.onOptionChanged, _c = _a.disabled, disabled = _c === void 0 ? false : _c;
|
|
915
921
|
var disabledArrow = useMemo(function () {
|
|
916
922
|
if (disabled)
|
|
917
|
-
return (React.createElement(IconItem, { className: styles$
|
|
923
|
+
return (React.createElement(IconItem, { className: styles$1S['magneto-ui--date-dropdown__icon'], icon: ArrowDown2, alt: "arrow-icon", size: 24 }));
|
|
918
924
|
return React.createElement(IconItem, { icon: ArrowDown3, alt: "arrow-icon", size: 24 });
|
|
919
925
|
}, [disabled]);
|
|
920
|
-
return (React.createElement("div", { className: styles$
|
|
921
|
-
React.createElement("select", { className: styles$
|
|
922
|
-
React.createElement("option", { className: styles$
|
|
926
|
+
return (React.createElement("div", { className: styles$1S['magneto-ui--date-dropdown__wrapper'] },
|
|
927
|
+
React.createElement("select", { className: styles$1S["magneto-ui--date-dropdown__select"], value: selectedOption, onChange: onOptionChanged, disabled: disabled },
|
|
928
|
+
React.createElement("option", { className: styles$1S['magneto-ui--date-dropdown__option'], value: "", disabled: true, hidden: true }, placeholderLabel), dateOptions === null || dateOptions === void 0 ? void 0 :
|
|
923
929
|
dateOptions.map(function (_a) {
|
|
924
930
|
var optionValue = _a.optionValue, optionLabel = _a.optionLabel;
|
|
925
|
-
return (React.createElement("option", { className: styles$
|
|
931
|
+
return (React.createElement("option", { className: styles$1S['magneto-ui--date-dropdown__option'], key: optionValue, value: optionValue }, optionLabel));
|
|
926
932
|
})),
|
|
927
|
-
React.createElement("span", { className: styles$
|
|
933
|
+
React.createElement("span", { className: styles$1S['magneto-ui--date-dropdown__icon'] }, disabledArrow)));
|
|
928
934
|
};
|
|
929
|
-
var DateDropdown = Component$
|
|
935
|
+
var DateDropdown = Component$1U;
|
|
930
936
|
|
|
931
|
-
var styles$
|
|
937
|
+
var styles$1R = {"magneto-ui--date-picker__wrapper":"mg_date_picker_magneto-ui--date-picker_wrapper_12pj2"};
|
|
932
938
|
|
|
933
939
|
var defaultValue$1 = function (value) {
|
|
934
940
|
return value ? parseDate(value) : { initialMonth: '', initialYear: '' };
|
|
935
941
|
};
|
|
936
|
-
var Component$
|
|
942
|
+
var Component$1T = function (_a) {
|
|
937
943
|
var monthOptionsLabels = _a.monthOptionsLabels, monthPlaceholder = _a.monthPlaceholder, yearPlaceholder = _a.yearPlaceholder, value = _a.value, disabled = _a.disabled, onChange = _a.onChange, futureYears = _a.futureYears, pastYears = _a.pastYears;
|
|
938
944
|
var _b = useState(defaultValue$1(value).initialMonth), selectedMonth = _b[0], setSelectedMonth = _b[1];
|
|
939
945
|
var _c = useState(defaultValue$1(value).initialYear), selectedYear = _c[0], setSelectedYear = _c[1];
|
|
@@ -967,16 +973,16 @@ var Component$1M = function (_a) {
|
|
|
967
973
|
}
|
|
968
974
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
969
975
|
}, [disabled]);
|
|
970
|
-
return (React.createElement("div", { className: styles$
|
|
976
|
+
return (React.createElement("div", { className: styles$1R['magneto-ui--date-picker__wrapper'] },
|
|
971
977
|
React.createElement(DateDropdown, { placeholderLabel: monthPlaceholder, dateOptions: monthOptionsList, selectedOption: selectedMonth, onOptionChanged: handleMonthChange, disabled: disabled }),
|
|
972
978
|
React.createElement(DateDropdown, { placeholderLabel: yearPlaceholder, dateOptions: yearOptionsList, selectedOption: selectedYear, onOptionChanged: handleYearChange, disabled: disabled })));
|
|
973
979
|
};
|
|
974
|
-
var DatePicker = Component$
|
|
980
|
+
var DatePicker = Component$1T;
|
|
975
981
|
|
|
976
982
|
var style$S = {"magneto-ui-drawer":"mg_drawer_magneto-ui-drawer_1hxen","magneto-ui-close-button":"mg_drawer_magneto-ui-close-button_1hxen","background-drawer":"mg_drawer_background-drawer_1hxen","fadeIn":"mg_drawer_fadeIn_1hxen","show-left":"mg_drawer_show-left_1hxen","hidden-left":"mg_drawer_hidden-left_1hxen","show-right":"mg_drawer_show-right_1hxen","hidden-right":"mg_drawer_hidden-right_1hxen","full-drawer":"mg_drawer_full-drawer_1hxen"};
|
|
977
983
|
|
|
978
984
|
var DEFAULT_PADDING = 20;
|
|
979
|
-
var Component$
|
|
985
|
+
var Component$1S = function (_a) {
|
|
980
986
|
var _b = _a.className, className = _b === void 0 ? '' : _b, isOpen = _a.isOpen, _c = _a.direction, direction = _c === void 0 ? 'left' : _c, isFull = _a.isFull, customPadding = _a.customPadding, drawerWidth = _a.drawerWidth, isMobile = _a.isMobile, hideButton = _a.hideButton, children = _a.children, onClose = _a.onClose, _d = _a.blockBackgroundClose, blockBackgroundClose = _d === void 0 ? false : _d;
|
|
981
987
|
var fullDrawer = isFull ? "full-drawer" : '';
|
|
982
988
|
var paddingValue = customPadding !== undefined ? "".concat(customPadding, "px") : "".concat(DEFAULT_PADDING, "px");
|
|
@@ -1022,7 +1028,7 @@ var Component$1L = function (_a) {
|
|
|
1022
1028
|
/**
|
|
1023
1029
|
* Molecule UI component for Drawer
|
|
1024
1030
|
*/
|
|
1025
|
-
var Drawer = Component$
|
|
1031
|
+
var Drawer = Component$1S;
|
|
1026
1032
|
|
|
1027
1033
|
var style$R = {"magneto-ui-empty-result":"mg_empty_results_magneto-ui-empty-result_1g4q8","fadeIn":"mg_empty_results_fadeIn_1g4q8","magneto-ui-empty-result__img-container":"mg_empty_results_magneto-ui-empty-result_img-container_1g4q8","magneto-ui-empty-result__img-container--img":"mg_empty_results_magneto-ui-empty-result_img-container--img_1g4q8","magneto-ui-empty-result__info":"mg_empty_results_magneto-ui-empty-result_info_1g4q8","magneto-ui-empty-result__info--search":"mg_empty_results_magneto-ui-empty-result_info--search_1g4q8","magneto-ui-empty-result__tags":"mg_empty_results_magneto-ui-empty-result_tags_1g4q8"};
|
|
1028
1034
|
|
|
@@ -1060,11 +1066,373 @@ var EmptyResult = function (_a) {
|
|
|
1060
1066
|
})))));
|
|
1061
1067
|
};
|
|
1062
1068
|
|
|
1063
|
-
var
|
|
1069
|
+
var EExpandableInfoActionVariant;
|
|
1070
|
+
(function (EExpandableInfoActionVariant) {
|
|
1071
|
+
EExpandableInfoActionVariant["DARK_BLUE"] = "dark-blue";
|
|
1072
|
+
EExpandableInfoActionVariant["LIGHT_BLUE"] = "light-blue";
|
|
1073
|
+
EExpandableInfoActionVariant["WHITE"] = "white";
|
|
1074
|
+
EExpandableInfoActionVariant["GREEN"] = "green";
|
|
1075
|
+
})(EExpandableInfoActionVariant || (EExpandableInfoActionVariant = {}));
|
|
1076
|
+
|
|
1077
|
+
var _a$4, _b$1, _c;
|
|
1078
|
+
var EXPANDABLE_INFO_ACTION_ICONS = {
|
|
1079
|
+
shoppingCart: (_a$4 = {},
|
|
1080
|
+
_a$4[EExpandableInfoActionVariant.LIGHT_BLUE] = ShoppingCartBlueOutline,
|
|
1081
|
+
_a$4),
|
|
1082
|
+
coin: (_b$1 = {},
|
|
1083
|
+
_b$1[EExpandableInfoActionVariant.DARK_BLUE] = DollarCircleWhiteOutline,
|
|
1084
|
+
_b$1[EExpandableInfoActionVariant.WHITE] = CoinBlackOutline,
|
|
1085
|
+
_b$1),
|
|
1086
|
+
loading: (_c = {},
|
|
1087
|
+
_c[EExpandableInfoActionVariant.DARK_BLUE] = AnimatedSpinnerWhite,
|
|
1088
|
+
_c[EExpandableInfoActionVariant.GREEN] = AnimatedSpinnerBlue,
|
|
1089
|
+
_c[EExpandableInfoActionVariant.LIGHT_BLUE] = AnimatedSpinnerBlue,
|
|
1090
|
+
_c[EExpandableInfoActionVariant.WHITE] = AnimatedSpinnerBlack,
|
|
1091
|
+
_c)
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
var styles$1Q = {"magneto-ui-expandable-info-action__button":"mg_expandable_info_action_magneto-ui-expandable-info-action_button_11ax1","magneto-ui-expandable-info-action__button--dark-blue":"mg_expandable_info_action_magneto-ui-expandable-info-action_button--dark-blue_11ax1","magneto-ui-expandable-info-action__button--light-blue":"mg_expandable_info_action_magneto-ui-expandable-info-action_button--light-blue_11ax1","magneto-ui-expandable-info-action__button--white":"mg_expandable_info_action_magneto-ui-expandable-info-action_button--white_11ax1","magneto-ui-expandable-info-action__button--green":"mg_expandable_info_action_magneto-ui-expandable-info-action_button--green_11ax1","magneto-ui-expandable-info-action__title":"mg_expandable_info_action_magneto-ui-expandable-info-action_title_11ax1"};
|
|
1095
|
+
|
|
1096
|
+
var Component$1R = function (_a) {
|
|
1097
|
+
var className = _a.className, loading = _a.loading, onAction = _a.onAction, prefixIcon = _a.prefixIcon, suffixIcon = _a.suffixIcon, title = _a.title, _b = _a.variant, variant = _b === void 0 ? 'blue' : _b;
|
|
1098
|
+
var isUrl = useMemo(function () { return onAction && typeof onAction === 'string'; }, [onAction]);
|
|
1099
|
+
var Component = useMemo(function () { return (isUrl ? 'a' : 'button'); }, [isUrl]);
|
|
1100
|
+
var componentProps = useMemo(function () {
|
|
1101
|
+
var className = CNM.get({
|
|
1102
|
+
styles: styles$1Q,
|
|
1103
|
+
cls: ['expandable-info-action__button', "expandable-info-action__button--".concat(variant)]
|
|
1104
|
+
});
|
|
1105
|
+
if (isUrl)
|
|
1106
|
+
return { className: className, href: onAction };
|
|
1107
|
+
return {
|
|
1108
|
+
className: className,
|
|
1109
|
+
onClick: onAction
|
|
1110
|
+
};
|
|
1111
|
+
}, [isUrl, onAction, variant]);
|
|
1112
|
+
var icon = useCallback(function (icon) {
|
|
1113
|
+
if (loading) {
|
|
1114
|
+
return EXPANDABLE_INFO_ACTION_ICONS.loading[variant];
|
|
1115
|
+
}
|
|
1116
|
+
if (icon) {
|
|
1117
|
+
if (Object.keys(EXPANDABLE_INFO_ACTION_ICONS).includes(icon)) {
|
|
1118
|
+
return EXPANDABLE_INFO_ACTION_ICONS[icon][variant];
|
|
1119
|
+
}
|
|
1120
|
+
return icon;
|
|
1121
|
+
}
|
|
1122
|
+
return;
|
|
1123
|
+
}, [loading, variant]);
|
|
1124
|
+
return (React.createElement("div", { className: CNM.get({ styles: styles$1Q, cls: ['expandable-info-action', className] }) },
|
|
1125
|
+
React.createElement("div", { className: CNM.get({ styles: styles$1Q, cls: ['expandable-info-action__container'] }) },
|
|
1126
|
+
React.createElement(Component, __assign({}, componentProps),
|
|
1127
|
+
(prefixIcon || loading) && React.createElement(IconItem, __assign({ size: 18 }, prefixIcon, { icon: icon(prefixIcon === null || prefixIcon === void 0 ? void 0 : prefixIcon.icon) })),
|
|
1128
|
+
React.createElement("span", { className: CNM.get({ styles: styles$1Q, cls: ['expandable-info-action__title'] }) }, title),
|
|
1129
|
+
suffixIcon && React.createElement(IconItem, __assign({ size: 18 }, suffixIcon, { icon: icon(suffixIcon.icon) }))))));
|
|
1130
|
+
};
|
|
1131
|
+
/**
|
|
1132
|
+
* Molecule UI child component of expandable info
|
|
1133
|
+
*/
|
|
1134
|
+
var ExpandableInfoAction = Component$1R;
|
|
1135
|
+
|
|
1136
|
+
var styles$1P = {"magneto-ui-expandable-info-details__container":"mg_expandable_info_details_magneto-ui-expandable-info-details_container_1l94q","magneto-ui-expandable-info-details__section":"mg_expandable_info_details_magneto-ui-expandable-info-details_section_1l94q","magneto-ui-expandable-info-details__section--multiple":"mg_expandable_info_details_magneto-ui-expandable-info-details_section--multiple_1l94q","magneto-ui-expandable-info-details__sub-section":"mg_expandable_info_details_magneto-ui-expandable-info-details_sub-section_1l94q","magneto-ui-expandable-info-details__sub-section--initial":"mg_expandable_info_details_magneto-ui-expandable-info-details_sub-section--initial_1l94q","magneto-ui-expandable-info-details__item":"mg_expandable_info_details_magneto-ui-expandable-info-details_item_1l94q","magneto-ui-expandable-info-details__item--first":"mg_expandable_info_details_magneto-ui-expandable-info-details_item--first_1l94q","magneto-ui-expandable-info-details__text":"mg_expandable_info_details_magneto-ui-expandable-info-details_text_1l94q","magneto-ui-expandable-info-details__text--bold":"mg_expandable_info_details_magneto-ui-expandable-info-details_text--bold_1l94q","magneto-ui-expandable-info-details__footer":"mg_expandable_info_details_magneto-ui-expandable-info-details_footer_1l94q","magneto-ui-expandable-info-details__action":"mg_expandable_info_details_magneto-ui-expandable-info-details_action_1l94q"};
|
|
1137
|
+
|
|
1138
|
+
var Component$1Q = function (_a) {
|
|
1139
|
+
var sections = _a.sections, footer = _a.footer;
|
|
1140
|
+
var sectionStyles = useCallback(function (multiple) {
|
|
1141
|
+
return CNM.get({
|
|
1142
|
+
styles: styles$1P,
|
|
1143
|
+
cls: ['expandable-info-details__section', multiple && 'expandable-info-details__section--multiple']
|
|
1144
|
+
});
|
|
1145
|
+
}, []);
|
|
1146
|
+
var subSectionStyles = useCallback(function (initial) {
|
|
1147
|
+
return CNM.get({
|
|
1148
|
+
styles: styles$1P,
|
|
1149
|
+
cls: ['expandable-info-details__sub-section', initial && 'expandable-info-details__sub-section--initial']
|
|
1150
|
+
});
|
|
1151
|
+
}, []);
|
|
1152
|
+
var itemStyles = useCallback(function (first) {
|
|
1153
|
+
return CNM.get({
|
|
1154
|
+
styles: styles$1P,
|
|
1155
|
+
cls: ['expandable-info-details__item', first && 'expandable-info-details__item--first']
|
|
1156
|
+
});
|
|
1157
|
+
}, []);
|
|
1158
|
+
var textStyles = useCallback(function (bold) {
|
|
1159
|
+
return CNM.get({
|
|
1160
|
+
styles: styles$1P,
|
|
1161
|
+
cls: ['expandable-info-details__text', bold && 'expandable-info-details__text--bold']
|
|
1162
|
+
});
|
|
1163
|
+
}, []);
|
|
1164
|
+
return (React.createElement("div", { className: CNM.get({ styles: styles$1P, cls: ['expandable-info-details'] }) },
|
|
1165
|
+
React.createElement("div", { className: CNM.get({ styles: styles$1P, cls: ['expandable-info-details__container'] }) }, sections === null || sections === void 0 ? void 0 :
|
|
1166
|
+
sections.map(function (section, index) {
|
|
1167
|
+
var _a, _b;
|
|
1168
|
+
return (React.createElement("div", { key: "eids-".concat(index), className: sectionStyles(((_a = section === null || section === void 0 ? void 0 : section.children) === null || _a === void 0 ? void 0 : _a.length) > 1) }, (_b = section === null || section === void 0 ? void 0 : section.children) === null || _b === void 0 ? void 0 : _b.map(function (subSection, subIndex) {
|
|
1169
|
+
var _a;
|
|
1170
|
+
return (React.createElement("div", { key: "eidss-".concat(subIndex), className: subSectionStyles(index === 0) },
|
|
1171
|
+
React.createElement("div", { className: itemStyles(index === 0) },
|
|
1172
|
+
React.createElement("span", { className: textStyles(true) }, subSection.title),
|
|
1173
|
+
React.createElement("span", { className: textStyles(false) }, subSection.summary)),
|
|
1174
|
+
React.createElement("div", null, (_a = subSection.content) === null || _a === void 0 ? void 0 : _a.map(function (content, lastIndex) { return (React.createElement("div", { key: "eidsi-".concat(lastIndex), className: itemStyles(false) },
|
|
1175
|
+
React.createElement("span", { className: textStyles(false) }, content.title),
|
|
1176
|
+
React.createElement("span", { className: textStyles(false) }, content.summary))); }))));
|
|
1177
|
+
})));
|
|
1178
|
+
}),
|
|
1179
|
+
(footer === null || footer === void 0 ? void 0 : footer.title) && footer.onAction && (React.createElement("div", { className: CNM.get({ styles: styles$1P, cls: ['expandable-info-details__footer'] }) },
|
|
1180
|
+
React.createElement(ExpandableInfoAction, { variant: "white", title: footer === null || footer === void 0 ? void 0 : footer.title, onAction: footer === null || footer === void 0 ? void 0 : footer.onAction, className: CNM.get({ styles: styles$1P, cls: ['expandable-info-details__action'] }) }))))));
|
|
1181
|
+
};
|
|
1182
|
+
/**
|
|
1183
|
+
* Molecule UI child component of expandable info
|
|
1184
|
+
*/
|
|
1185
|
+
var ExpandableInfoDetails = Component$1Q;
|
|
1186
|
+
|
|
1187
|
+
var EExpandableInfoVariant;
|
|
1188
|
+
(function (EExpandableInfoVariant) {
|
|
1189
|
+
EExpandableInfoVariant["BLUE"] = "blue";
|
|
1190
|
+
EExpandableInfoVariant["WHITE"] = "white";
|
|
1191
|
+
})(EExpandableInfoVariant || (EExpandableInfoVariant = {}));
|
|
1192
|
+
var EExpandableInfoSize;
|
|
1193
|
+
(function (EExpandableInfoSize) {
|
|
1194
|
+
EExpandableInfoSize["SMALL"] = "small";
|
|
1195
|
+
EExpandableInfoSize["LARGE"] = "large";
|
|
1196
|
+
})(EExpandableInfoSize || (EExpandableInfoSize = {}));
|
|
1197
|
+
|
|
1198
|
+
var _a$3;
|
|
1199
|
+
var EXPANDABLE_INFO_MESSAGE_ICONS = {
|
|
1200
|
+
warning: (_a$3 = {},
|
|
1201
|
+
_a$3[EExpandableInfoVariant.BLUE] = Warning,
|
|
1202
|
+
_a$3[EExpandableInfoVariant.WHITE] = Danger,
|
|
1203
|
+
_a$3)
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1206
|
+
var styles$1O = {"magneto-ui-expandable-info-message__container":"mg_expandable_info_message_magneto-ui-expandable-info-message_container_oubsq","magneto-ui-expandable-info-message__text":"mg_expandable_info_message_magneto-ui-expandable-info-message_text_oubsq","magneto-ui-expandable-info-message__text--blue":"mg_expandable_info_message_magneto-ui-expandable-info-message_text--blue_oubsq","magneto-ui-expandable-info-message__text--white":"mg_expandable_info_message_magneto-ui-expandable-info-message_text--white_oubsq"};
|
|
1207
|
+
|
|
1208
|
+
var Component$1P = function (_a) {
|
|
1209
|
+
var className = _a.className, title = _a.title, prefixIcon = _a.prefixIcon, variant = _a.variant;
|
|
1210
|
+
var icon = useCallback(function (icon) {
|
|
1211
|
+
if (icon) {
|
|
1212
|
+
if (Object.keys(EXPANDABLE_INFO_MESSAGE_ICONS).includes(icon) && variant) {
|
|
1213
|
+
return EXPANDABLE_INFO_MESSAGE_ICONS[icon][variant];
|
|
1214
|
+
}
|
|
1215
|
+
return icon;
|
|
1216
|
+
}
|
|
1217
|
+
return;
|
|
1218
|
+
}, [variant]);
|
|
1219
|
+
if (!title)
|
|
1220
|
+
return null;
|
|
1221
|
+
return (React.createElement("div", { className: CNM.get({ styles: styles$1O, cls: ['expandable-info-message', className] }) },
|
|
1222
|
+
React.createElement("div", { className: CNM.get({ styles: styles$1O, cls: ['expandable-info-message__container'] }) },
|
|
1223
|
+
prefixIcon && React.createElement(IconItem, __assign({ size: 16 }, prefixIcon, { icon: icon(prefixIcon.icon) })),
|
|
1224
|
+
React.createElement("span", { className: CNM.get({
|
|
1225
|
+
styles: styles$1O,
|
|
1226
|
+
cls: ['expandable-info-message__text', "expandable-info-message__text--".concat(variant)]
|
|
1227
|
+
}) }, title))));
|
|
1228
|
+
};
|
|
1229
|
+
/**
|
|
1230
|
+
* Molecule UI child component of expandable info
|
|
1231
|
+
*/
|
|
1232
|
+
var ExpandableInfoMessage = Component$1P;
|
|
1233
|
+
|
|
1234
|
+
var styles$1N = {"magneto-ui-expandable-info-modal":"mg_expandable_info_modal_magneto-ui-expandable-info-modal_mka0n"};
|
|
1235
|
+
|
|
1236
|
+
var Component$1O = function (_a) {
|
|
1237
|
+
var toggler = _a.toggler, details = _a.details;
|
|
1238
|
+
var _b = useState(false), visible = _b[0], setVisible = _b[1];
|
|
1239
|
+
var handleOnToggle = useCallback(function () {
|
|
1240
|
+
setVisible(function (prev) { return !prev; });
|
|
1241
|
+
}, []);
|
|
1242
|
+
return (React.createElement(React.Fragment, null,
|
|
1243
|
+
React.createElement(ExpandableInfoToggler, __assign({}, toggler, { onToggle: handleOnToggle })),
|
|
1244
|
+
React.createElement(MobileDrawer, { isOpen: visible, onClose: handleOnToggle, className: CNM.get({ styles: styles$1N, cls: ['expandable-info-modal'] }) },
|
|
1245
|
+
React.createElement(ExpandableInfoDetails, __assign({}, details)))));
|
|
1246
|
+
};
|
|
1247
|
+
/**
|
|
1248
|
+
* Molecule UI child component of expandable info
|
|
1249
|
+
*/
|
|
1250
|
+
var ExpandableInfoModal = Component$1O;
|
|
1251
|
+
|
|
1252
|
+
var styles$1M = {"magneto-ui-expandable-info-popover":"mg_expandable_info_popover_magneto-ui-expandable-info-popover_13xbj","magneto-ui-expandable-info-popover--small":"mg_expandable_info_popover_magneto-ui-expandable-info-popover--small_13xbj","magneto-ui-expandable-info-popover--large":"mg_expandable_info_popover_magneto-ui-expandable-info-popover--large_13xbj","magneto-ui-expandable-info-popover--white":"mg_expandable_info_popover_magneto-ui-expandable-info-popover--white_13xbj","magneto-ui-expandable-info-popover__arrow":"mg_expandable_info_popover_magneto-ui-expandable-info-popover_arrow_13xbj","magneto-ui-expandable-info-popover__arrow--small":"mg_expandable_info_popover_magneto-ui-expandable-info-popover_arrow--small_13xbj","magneto-ui-expandable-info-popover__arrow--large":"mg_expandable_info_popover_magneto-ui-expandable-info-popover_arrow--large_13xbj"};
|
|
1253
|
+
|
|
1254
|
+
var style$Q = {"mega-menu-side-cards":"mg_mega_menu_side_cards_mega-menu-side-cards_ojemf","mega-menu-side-cards__action":"mg_mega_menu_side_cards_mega-menu-side-cards_action_ojemf","mega-menu-side-cards__card":"mg_mega_menu_side_cards_mega-menu-side-cards_card_ojemf","mega-menu-side-cards__card--selected":"mg_mega_menu_side_cards_mega-menu-side-cards_card--selected_ojemf"};
|
|
1255
|
+
|
|
1256
|
+
var styles$1L = {"magneto-ui-play-button":"mg_image_magneto-ui-play-button_7q9yc"};
|
|
1257
|
+
|
|
1258
|
+
var Image = function (_a) {
|
|
1259
|
+
var image = _a.image, alt = _a.alt, playIcon = _a.playIcon, className = _a.className;
|
|
1260
|
+
return (React.createElement(React.Fragment, null,
|
|
1261
|
+
React.createElement("img", { src: image, alt: alt, loading: "lazy", className: className }),
|
|
1262
|
+
playIcon && React.createElement("div", { className: styles$1L['magneto-ui-play-button'] }, playIcon)));
|
|
1263
|
+
};
|
|
1264
|
+
|
|
1265
|
+
var styles$1K = {"magneto-ui-mega-menu-card":"mg_mega_menu_card_magneto-ui-mega-menu-card_198ar","magneto-ui-mega-menu-card__title":"mg_mega_menu_card_magneto-ui-mega-menu-card_title_198ar","magneto-ui-mega-menu-card__icon":"mg_mega_menu_card_magneto-ui-mega-menu-card_icon_198ar","magneto-ui-mega-menu-card__logo":"mg_mega_menu_card_magneto-ui-mega-menu-card_logo_198ar","magneto-ui-mega-menu-card__quotas":"mg_mega_menu_card_magneto-ui-mega-menu-card_quotas_198ar","magneto-ui-mega-menu-card__arrow":"mg_mega_menu_card_magneto-ui-mega-menu-card_arrow_198ar"};
|
|
1266
|
+
|
|
1267
|
+
var MegaMenuCard = function (_a) {
|
|
1268
|
+
var title = _a.title, logo = _a.logo, icon = _a.icon, quotas = _a.quotas, onClick = _a.onClick, className = _a.className, showRigthArrow = _a.showRigthArrow, href = _a.href, target = _a.target;
|
|
1269
|
+
var handleClick = useCallback(function (event) {
|
|
1270
|
+
if (onClick != null) {
|
|
1271
|
+
event.preventDefault();
|
|
1272
|
+
onClick();
|
|
1273
|
+
}
|
|
1274
|
+
}, [onClick]);
|
|
1275
|
+
return (React.createElement("a", { className: "".concat(styles$1K["magneto-ui-mega-menu-card"], " ").concat(className ? className : ''), onClick: handleClick, href: href, target: target },
|
|
1276
|
+
icon && (React.createElement("div", { className: styles$1K["magneto-ui-mega-menu-card__icon"] },
|
|
1277
|
+
React.createElement(IconItem, { icon: icon, size: 16 }))),
|
|
1278
|
+
logo && (React.createElement("div", { className: styles$1K["magneto-ui-mega-menu-card__logo"] },
|
|
1279
|
+
React.createElement(Image, { image: logo, alt: 'logo', className: styles$1K["magneto-ui-mega-menu-card__logo"] }))),
|
|
1280
|
+
React.createElement("div", { className: styles$1K["magneto-ui-mega-menu-card__content"] },
|
|
1281
|
+
React.createElement("div", { className: styles$1K["magneto-ui-mega-menu-card__title"] }, title),
|
|
1282
|
+
React.createElement("div", { className: styles$1K["magneto-ui-mega-menu-card__quotas"] }, "".concat(quotas, " cupos"))),
|
|
1283
|
+
showRigthArrow && (React.createElement("div", { className: styles$1K["magneto-ui-mega-menu-card__arrow"] },
|
|
1284
|
+
React.createElement(IconItem, { icon: ArrowRight2, size: 16 })))));
|
|
1285
|
+
};
|
|
1286
|
+
|
|
1287
|
+
var MegaMenuSideCards = function (_a) {
|
|
1288
|
+
var jobs = _a.jobs, action = _a.action, onSelectCard = _a.onSelectCard;
|
|
1289
|
+
var _b = useState(0), selected = _b[0], setSelected = _b[1];
|
|
1290
|
+
var handleClick = useCallback(function (index) { return function () {
|
|
1291
|
+
setSelected(index);
|
|
1292
|
+
onSelectCard && onSelectCard(index);
|
|
1293
|
+
}; }, [onSelectCard]);
|
|
1294
|
+
return (React.createElement("ul", { className: "".concat(style$Q["mega-menu-side-cards"]) },
|
|
1295
|
+
jobs &&
|
|
1296
|
+
jobs.slice(0, 10).map(function (job, key) { return (React.createElement("li", { key: key },
|
|
1297
|
+
React.createElement(MegaMenuCard, __assign({}, job, { showRigthArrow: selected == key, className: "".concat(style$Q["mega-menu-side-cards__card"], " ").concat(selected == key ? style$Q["mega-menu-side-cards__card--selected"] : ''), onClick: handleClick(key) })))); }),
|
|
1298
|
+
action && (React.createElement("li", null,
|
|
1299
|
+
React.createElement(SearchItem, { url: action.url, tag: action.label, className: "".concat(style$Q["mega-menu-side-cards__action"]), icon: ArrowRightWhite })))));
|
|
1300
|
+
};
|
|
1301
|
+
|
|
1302
|
+
var styles$1J = {"mega-menu-side-container":"mg_with_container_mega-menu-side-container_12vzc","mega-menu-side-container__side":"mg_with_container_mega-menu-side-container_side_12vzc","mega-menu-side-container__main":"mg_with_container_mega-menu-side-container_main_12vzc"};
|
|
1303
|
+
|
|
1304
|
+
var withMegaMenuContainer = function (WrappedComponent) {
|
|
1305
|
+
var Component = function (_a) {
|
|
1306
|
+
var sideProps = _a.sideProps, wrapperProps = _a.wrapperProps;
|
|
1307
|
+
return (React.createElement("div", { className: styles$1J['mega-menu-side-container'] },
|
|
1308
|
+
React.createElement("div", { className: styles$1J['mega-menu-side-container__side'] },
|
|
1309
|
+
React.createElement(MegaMenuSideCards, __assign({}, sideProps))),
|
|
1310
|
+
React.createElement("div", { className: styles$1J['mega-menu-side-container__main'] },
|
|
1311
|
+
React.createElement(WrappedComponent, __assign({}, wrapperProps)))));
|
|
1312
|
+
};
|
|
1313
|
+
return Component;
|
|
1314
|
+
};
|
|
1315
|
+
|
|
1316
|
+
var Component$1N = function (_a) {
|
|
1317
|
+
var details = _a.details, toggler = _a.toggler, _b = _a.clickOut, clickOut = _b === void 0 ? false : _b, _c = _a.setClickOut, setClickOut = _c === void 0 ? function () { return ({}); } : _c;
|
|
1318
|
+
return (React.createElement(Popover, { widthBase: 'auto', show: clickOut, positionX: "right", positionY: toggler.size === EExpandableInfoSize.LARGE ? 'top' : 'bottom', className: CNM.get({
|
|
1319
|
+
styles: styles$1M,
|
|
1320
|
+
cls: [
|
|
1321
|
+
'expandable-info-popover',
|
|
1322
|
+
"expandable-info-popover--".concat(toggler.size),
|
|
1323
|
+
"expandable-info-popover--".concat(toggler.variant)
|
|
1324
|
+
]
|
|
1325
|
+
}), content: React.createElement(React.Fragment, null,
|
|
1326
|
+
React.createElement("span", { className: CNM.get({
|
|
1327
|
+
styles: styles$1M,
|
|
1328
|
+
cls: ['expandable-info-popover__arrow', "expandable-info-popover__arrow--".concat(toggler.size)]
|
|
1329
|
+
}) }),
|
|
1330
|
+
React.createElement(ExpandableInfoDetails, __assign({}, details))) },
|
|
1331
|
+
React.createElement(ExpandableInfoToggler, __assign({}, toggler, { onToggle: function (value) { return setClickOut(value || !clickOut); } }))));
|
|
1332
|
+
};
|
|
1333
|
+
/**
|
|
1334
|
+
* Molecule UI child component of expandable info
|
|
1335
|
+
*/
|
|
1336
|
+
var ExpandableInfoPopover = withClickOut(Component$1N);
|
|
1337
|
+
|
|
1338
|
+
var EXPANDABLE_INFO_TOGGLER_ICONS = {
|
|
1339
|
+
coin: CoinBlackOutline
|
|
1340
|
+
};
|
|
1341
|
+
|
|
1342
|
+
var styles$1I = {"magneto-ui-expandable-info-toggler__container":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_container_uiv7v","magneto-ui-expandable-info-toggler__container--no-details":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_container--no-details_uiv7v","magneto-ui-expandable-info-toggler__container--blue":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_container--blue_uiv7v","magneto-ui-expandable-info-toggler__container--white":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_container--white_uiv7v","magneto-ui-expandable-info-toggler__container--small":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_container--small_uiv7v","magneto-ui-expandable-info-toggler__text":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_text_uiv7v","magneto-ui-expandable-info-toggler__text--blue":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_text--blue_uiv7v","magneto-ui-expandable-info-toggler__text--white":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_text--white_uiv7v","magneto-ui-expandable-info-toggler__text--small":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_text--small_uiv7v","magneto-ui-expandable-info-toggler__summary":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_summary_uiv7v","magneto-ui-expandable-info-toggler__summary--small":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_summary--small_uiv7v","magneto-ui-expandable-info-toggler__summary--large":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_summary--large_uiv7v"};
|
|
1343
|
+
|
|
1344
|
+
var Component$1M = function (_a) {
|
|
1345
|
+
var details = _a.details, onToggle = _a.onToggle, prefixIcon = _a.prefixIcon, size = _a.size, suffixIcon = _a.suffixIcon, summary = _a.summary, title = _a.title, _b = _a.variant, variant = _b === void 0 ? 'white' : _b;
|
|
1346
|
+
var styleGenerator = useCallback(function (base) {
|
|
1347
|
+
return CNM.get({
|
|
1348
|
+
styles: styles$1I,
|
|
1349
|
+
cls: __spreadArray(__spreadArray([], base, true), ["".concat(base.at(0), "--").concat(variant)], false)
|
|
1350
|
+
});
|
|
1351
|
+
}, [variant]);
|
|
1352
|
+
var icon = useCallback(function (icon) {
|
|
1353
|
+
if (icon) {
|
|
1354
|
+
if (Object.keys(EXPANDABLE_INFO_TOGGLER_ICONS).includes(icon)) {
|
|
1355
|
+
return EXPANDABLE_INFO_TOGGLER_ICONS[icon];
|
|
1356
|
+
}
|
|
1357
|
+
return icon;
|
|
1358
|
+
}
|
|
1359
|
+
return;
|
|
1360
|
+
}, []);
|
|
1361
|
+
var Component = useMemo(function () { return (details ? 'button' : 'div'); }, [details]);
|
|
1362
|
+
var componentProps = useMemo(function () {
|
|
1363
|
+
var className = styleGenerator([
|
|
1364
|
+
'expandable-info-toggler__container',
|
|
1365
|
+
!details && 'expandable-info-toggler__container--no-details',
|
|
1366
|
+
"expandable-info-toggler__container--".concat(size)
|
|
1367
|
+
]);
|
|
1368
|
+
if (!details)
|
|
1369
|
+
return { className: className };
|
|
1370
|
+
return {
|
|
1371
|
+
className: className,
|
|
1372
|
+
onClick: function () { return onToggle(); }
|
|
1373
|
+
};
|
|
1374
|
+
}, [details, onToggle, size, styleGenerator]);
|
|
1375
|
+
var baseSuffixIcon = useMemo(function () { return (variant === 'blue' ? ArrowDownWhite : ArrowDown2); }, [variant]);
|
|
1376
|
+
return (React.createElement(Component, __assign({}, componentProps),
|
|
1377
|
+
prefixIcon && React.createElement(IconItem, __assign({ size: 16 }, prefixIcon, { icon: icon(prefixIcon.icon) })),
|
|
1378
|
+
React.createElement("span", { className: styleGenerator(['expandable-info-toggler__text']) }, title + ':'),
|
|
1379
|
+
React.createElement("div", { className: CNM.get({
|
|
1380
|
+
styles: styles$1I,
|
|
1381
|
+
cls: [
|
|
1382
|
+
'expandable-info-toggler__summary',
|
|
1383
|
+
(size === EExpandableInfoSize.SMALL || suffixIcon) && 'expandable-info-toggler__summary--small',
|
|
1384
|
+
size === EExpandableInfoSize.LARGE && (details || suffixIcon) && 'expandable-info-toggler__summary--large'
|
|
1385
|
+
]
|
|
1386
|
+
}) },
|
|
1387
|
+
React.createElement("span", { className: styleGenerator(['expandable-info-toggler__text', "expandable-info-toggler__text--".concat(size)]) }, summary),
|
|
1388
|
+
React.createElement(IconItem, __assign({ icon: baseSuffixIcon, size: !suffixIcon ? 20 : 16 }, suffixIcon)))));
|
|
1389
|
+
};
|
|
1390
|
+
/**
|
|
1391
|
+
* Molecule UI child component of expandable info
|
|
1392
|
+
*/
|
|
1393
|
+
var ExpandableInfoToggler = Component$1M;
|
|
1394
|
+
|
|
1395
|
+
var styles$1H = {"magneto-ui-expandable-info":"mg_expandable_info_magneto-ui-expandable-info_bokzy","magneto-ui-expandable-info__container":"mg_expandable_info_magneto-ui-expandable-info_container_bokzy","magneto-ui-expandable-info__container--white":"mg_expandable_info_magneto-ui-expandable-info_container--white_bokzy","magneto-ui-expandable-info__container--blue":"mg_expandable_info_magneto-ui-expandable-info_container--blue_bokzy","magneto-ui-expandable-info__container--small":"mg_expandable_info_magneto-ui-expandable-info_container--small_bokzy","magneto-ui-expandable-info__container--floating":"mg_expandable_info_magneto-ui-expandable-info_container--floating_bokzy","magneto-ui-expandable-info__actions":"mg_expandable_info_magneto-ui-expandable-info_actions_bokzy"};
|
|
1396
|
+
|
|
1397
|
+
var Component$1L = function (_a) {
|
|
1398
|
+
var actions = _a.actions, details = _a.details, floating = _a.floating, message = _a.message, prefixIcon = _a.prefixIcon, _b = _a.size, size = _b === void 0 ? 'large' : _b, suffixIcon = _a.suffixIcon, summary = _a.summary, title = _a.title, _c = _a.variant, variant = _c === void 0 ? 'white' : _c;
|
|
1399
|
+
var togglerProps = useMemo(function () { return ({
|
|
1400
|
+
details: details,
|
|
1401
|
+
title: title,
|
|
1402
|
+
summary: summary,
|
|
1403
|
+
variant: variant,
|
|
1404
|
+
size: size,
|
|
1405
|
+
prefixIcon: prefixIcon,
|
|
1406
|
+
suffixIcon: suffixIcon
|
|
1407
|
+
}); }, [details, title, summary, variant, size, prefixIcon, suffixIcon]);
|
|
1408
|
+
var container = useMediaQuery(React.createElement(ExpandableInfoPopover, { details: details, toggler: togglerProps }), {
|
|
1409
|
+
sm: React.createElement(ExpandableInfoModal, { details: details, toggler: togglerProps })
|
|
1410
|
+
});
|
|
1411
|
+
return (React.createElement("div", { className: CNM.get({ styles: styles$1H, cls: ['expandable-info'] }) },
|
|
1412
|
+
React.createElement("div", { className: CNM.get({
|
|
1413
|
+
styles: styles$1H,
|
|
1414
|
+
cls: [
|
|
1415
|
+
'expandable-info__container',
|
|
1416
|
+
"expandable-info__container--".concat(variant),
|
|
1417
|
+
"expandable-info__container--".concat(size),
|
|
1418
|
+
floating && 'expandable-info__container--floating'
|
|
1419
|
+
]
|
|
1420
|
+
}) },
|
|
1421
|
+
container,
|
|
1422
|
+
size === EExpandableInfoSize.LARGE && (React.createElement(React.Fragment, null,
|
|
1423
|
+
actions && (actions === null || actions === void 0 ? void 0 : actions.length) > 0 && (React.createElement("div", { className: CNM.get({ styles: styles$1H, cls: ['expandable-info__actions'] }) }, actions === null || actions === void 0 ? void 0 : actions.map(function (action) { return action && React.createElement(ExpandableInfoAction, __assign({ key: action.title }, action)); }))),
|
|
1424
|
+
React.createElement(ExpandableInfoMessage, __assign({ variant: variant }, message)))))));
|
|
1425
|
+
};
|
|
1426
|
+
/**
|
|
1427
|
+
* Molecule UI component for expandable info
|
|
1428
|
+
*/
|
|
1429
|
+
var ExpandableInfo = Component$1L;
|
|
1430
|
+
|
|
1431
|
+
var style$P = {"magneto-ui-filter-container":"mg_filter_container_menu_magneto-ui-filter-container_r9inc"};
|
|
1064
1432
|
|
|
1065
1433
|
var FilterContainerMenu = function (_a) {
|
|
1066
1434
|
var children = _a.children;
|
|
1067
|
-
return React.createElement("div", { className: style$
|
|
1435
|
+
return React.createElement("div", { className: style$P["".concat(classMUI, "-filter-container")] }, children);
|
|
1068
1436
|
};
|
|
1069
1437
|
|
|
1070
1438
|
function formatNumber(num) {
|
|
@@ -1112,7 +1480,7 @@ var classNames = {
|
|
|
1112
1480
|
}
|
|
1113
1481
|
};
|
|
1114
1482
|
|
|
1115
|
-
var styles$
|
|
1483
|
+
var styles$1G = {"magneto-ui-filter-item":"mg_filter_menu_item_magneto-ui-filter-item_m5cdm","selected":"mg_filter_menu_item_selected_m5cdm","disabled":"mg_filter_menu_item_disabled_m5cdm","isSearched":"mg_filter_menu_item_isSearched_m5cdm","skeleton":"mg_filter_menu_item_skeleton_m5cdm","shimmer":"mg_filter_menu_item_shimmer_m5cdm"};
|
|
1116
1484
|
|
|
1117
1485
|
var FilterMenuItem = function (_a) {
|
|
1118
1486
|
var id = _a.id, label = _a.label, total = _a.total, field = _a.field, multiple = _a.multiple, loading = _a.loading, type = _a.type, isApplied = _a.isApplied, hasTotal = _a.hasTotal, _b = _a.isSearched, isSearched = _b === void 0 ? false : _b, customClass = _a.customClass, customId = _a.customId, _c = _a.hiddenCount, hiddenCount = _c === void 0 ? false : _c, setIsApplied = _a.setIsApplied, props = __rest(_a, ["id", "label", "total", "field", "multiple", "loading", "type", "isApplied", "hasTotal", "isSearched", "customClass", "customId", "hiddenCount", "setIsApplied"]);
|
|
@@ -1127,33 +1495,33 @@ var FilterMenuItem = function (_a) {
|
|
|
1127
1495
|
return isSearched || isApplied || hiddenCount ? false : !total;
|
|
1128
1496
|
}, [total, isApplied, isSearched, hiddenCount]);
|
|
1129
1497
|
var className = useMemo(function () {
|
|
1130
|
-
return isApplied ? styles$
|
|
1498
|
+
return isApplied ? styles$1G.selected : isSearched ? styles$1G.isSearched : hiddenCount ? '' : !total && styles$1G.disabled;
|
|
1131
1499
|
}, [total, isApplied, isSearched, hiddenCount]);
|
|
1132
1500
|
var handleClick = useCallback(function () {
|
|
1133
1501
|
var customId = type === 'RANGE' ? { id: id, from: props.from, to: props.to } : id;
|
|
1134
1502
|
setIsApplied({ id: customId, field: field, isApplied: isApplied, multiple: multiple });
|
|
1135
1503
|
}, [setIsApplied, id, field, isApplied, multiple, type, props.from, props.to]);
|
|
1136
1504
|
if (loading)
|
|
1137
|
-
return React.createElement("div", { className: styles$
|
|
1138
|
-
return (React.createElement("button", { id: customId, className: "".concat(styles$
|
|
1505
|
+
return React.createElement("div", { className: styles$1G.skeleton });
|
|
1506
|
+
return (React.createElement("button", { id: customId, className: "".concat(styles$1G['magneto-ui-filter-item'], " ").concat(className, " ").concat(customClass ? customClass : ''), title: label, onClick: handleClick, disabled: disabled },
|
|
1139
1507
|
React.createElement("span", null, label),
|
|
1140
1508
|
displayOutput));
|
|
1141
1509
|
};
|
|
1142
1510
|
|
|
1143
|
-
var styles$
|
|
1511
|
+
var styles$1F = {"magneto-ui-filter-search":"mg_filter_search_item_magneto-ui-filter-search_1ibtk","disabled":"mg_filter_search_item_disabled_1ibtk","skeleton":"mg_filter_search_item_skeleton_1ibtk","shimmer":"mg_filter_search_item_shimmer_1ibtk"};
|
|
1144
1512
|
|
|
1145
1513
|
var FilterSearchItem = function (_a) {
|
|
1146
1514
|
var placeholder = _a.placeholder, _b = _a.disabled, disabled = _b === void 0 ? false : _b, loading = _a.loading, handleSearch = _a.handleSearch;
|
|
1147
1515
|
var inputRef = useRef(null);
|
|
1148
1516
|
if (loading)
|
|
1149
|
-
return (React.createElement("div", { className: styles$
|
|
1517
|
+
return (React.createElement("div", { className: styles$1F.skeleton },
|
|
1150
1518
|
React.createElement(IconItem, { icon: SearchIcon, size: 17 })));
|
|
1151
|
-
return (React.createElement("div", { className: "".concat(styles$
|
|
1519
|
+
return (React.createElement("div", { className: "".concat(styles$1F['magneto-ui-filter-search'], " ").concat(disabled ? styles$1F.disabled : '') },
|
|
1152
1520
|
React.createElement(IconItem, { icon: SearchIcon, size: 17 }),
|
|
1153
1521
|
React.createElement("input", { ref: inputRef, type: "search", placeholder: placeholder, onChange: function (event) { return handleSearch(event, inputRef); }, disabled: disabled })));
|
|
1154
1522
|
};
|
|
1155
1523
|
|
|
1156
|
-
var styles$
|
|
1524
|
+
var styles$1E = {"magneto-ui-frequent-search":"mg_frequent_search_magneto-ui-frequent-search_46vb2","magneto-ui-frequent-search__heading":"mg_frequent_search_magneto-ui-frequent-search_heading_46vb2","magneto-ui-frequent-search__items":"mg_frequent_search_magneto-ui-frequent-search_items_46vb2","magneto-ui-frequent-search__buttons-container":"mg_frequent_search_magneto-ui-frequent-search_buttons-container_46vb2","magneto-ui-frequent-search__buttons-container--btn":"mg_frequent_search_magneto-ui-frequent-search_buttons-container--btn_46vb2"};
|
|
1157
1525
|
|
|
1158
1526
|
var Component$1K = function (_a) {
|
|
1159
1527
|
var searchHeading = _a.searchHeading, searchList = _a.searchList, showLess = _a.showLess, showMore = _a.showMore, showFrequentSearch = _a.showFrequentSearch;
|
|
@@ -1165,46 +1533,46 @@ var Component$1K = function (_a) {
|
|
|
1165
1533
|
return searchList;
|
|
1166
1534
|
}, [searchList, showFullList]);
|
|
1167
1535
|
var searchListResponsive = useMediaQuery(searchList, { md: searchListDinamyc });
|
|
1168
|
-
return (React.createElement(React.Fragment, null, showFrequentSearch !== false ? (React.createElement("div", { className: styles$
|
|
1169
|
-
React.createElement("h2", { className: styles$
|
|
1170
|
-
React.createElement("div", { className: styles$
|
|
1536
|
+
return (React.createElement(React.Fragment, null, showFrequentSearch !== false ? (React.createElement("div", { className: styles$1E['magneto-ui-frequent-search'] },
|
|
1537
|
+
React.createElement("h2", { className: styles$1E['magneto-ui-frequent-search__heading'] }, searchHeading),
|
|
1538
|
+
React.createElement("div", { className: styles$1E['magneto-ui-frequent-search__items'] }, searchListResponsive.map(function (_a, i) {
|
|
1171
1539
|
var props = __rest(_a, []);
|
|
1172
1540
|
return (React.createElement(SearchItem, __assign({ key: i }, props)));
|
|
1173
1541
|
})),
|
|
1174
|
-
React.createElement("div", { className: styles$
|
|
1542
|
+
React.createElement("div", { className: styles$1E['magneto-ui-frequent-search__buttons-container'] }, showFullList ? (React.createElement("button", { className: styles$1E['magneto-ui-frequent-search__buttons-container--btn'], onClick: function () { return setShowFullList(false); }, title: showMore },
|
|
1175
1543
|
showMore,
|
|
1176
1544
|
" (",
|
|
1177
1545
|
searchList.length,
|
|
1178
|
-
")")) : (React.createElement("button", { className: styles$
|
|
1546
|
+
")")) : (React.createElement("button", { className: styles$1E['magneto-ui-frequent-search__buttons-container--btn'], onClick: function () { return setShowFullList(true); }, title: showLess }, showLess))))) : (React.createElement(Fragment, null))));
|
|
1179
1547
|
};
|
|
1180
1548
|
/**
|
|
1181
1549
|
* UI Atom component of Frequent Search
|
|
1182
1550
|
*/
|
|
1183
1551
|
var FrequentSearch = Component$1K;
|
|
1184
1552
|
|
|
1185
|
-
var style$
|
|
1553
|
+
var style$O = {"header-drawer-company":"mg_header_drawer_company_header-drawer-company_jtdka"};
|
|
1186
1554
|
|
|
1187
1555
|
var Component$1J = function (_a) {
|
|
1188
1556
|
var logo = _a.logo, alt = _a.alt, logoCompany = _a.logoCompany, logoCompanyAlt = _a.logoCompanyAlt, flag = _a.flag, flagAlt = _a.flagAlt;
|
|
1189
|
-
return (React.createElement("div", { className: style$
|
|
1557
|
+
return (React.createElement("div", { className: style$O['header-drawer-company'] },
|
|
1190
1558
|
React.createElement(LogoComponent, { logo: logo, alt: alt }),
|
|
1191
1559
|
React.createElement(LogoComponent, { logo: logoCompany, alt: logoCompanyAlt }),
|
|
1192
1560
|
React.createElement("img", { src: flag, alt: flagAlt, loading: "lazy", width: '25px', height: '20px' })));
|
|
1193
1561
|
};
|
|
1194
1562
|
var HeaderDrawerCompany = Component$1J;
|
|
1195
1563
|
|
|
1196
|
-
var styles$
|
|
1564
|
+
var styles$1D = {"TabComponent":"mg_tab_TabComponent_zqqnn"};
|
|
1197
1565
|
|
|
1198
1566
|
var Component$1I = function (_a) {
|
|
1199
1567
|
var children = _a.children;
|
|
1200
|
-
return React.createElement("div", { className: styles$
|
|
1568
|
+
return React.createElement("div", { className: styles$1D.TabComponent }, children);
|
|
1201
1569
|
};
|
|
1202
1570
|
/**
|
|
1203
1571
|
* Molecule UI for Tab
|
|
1204
1572
|
*/
|
|
1205
1573
|
var Tab = Component$1I;
|
|
1206
1574
|
|
|
1207
|
-
var styles$
|
|
1575
|
+
var styles$1C = {"TabButtonComponent":"mg_tab_button_TabButtonComponent_hysss"};
|
|
1208
1576
|
|
|
1209
1577
|
var toCSSVariables = function (input) {
|
|
1210
1578
|
var output = {};
|
|
@@ -1223,18 +1591,18 @@ var Component$1H = function (_a) {
|
|
|
1223
1591
|
var tabButtonLink = _a.tabButtonLink, tabButtonLinkStyles = _a.tabButtonLinkStyles, tabButtonStyles = _a.tabButtonStyles;
|
|
1224
1592
|
var stylesValue = useMemo(function () { return toCSSVariables(tabButtonStyles); }, [tabButtonStyles]);
|
|
1225
1593
|
var boxShadow = (tabButtonStyles || {}).boxShadow;
|
|
1226
|
-
return (React.createElement("div", { className: styles$
|
|
1594
|
+
return (React.createElement("div", { className: styles$1C.TabButtonComponent, style: stylesValue, "data-box-shadow": boxShadow }, tabButtonLink && React.createElement(Link, __assign({}, tabButtonLink, { linkStyles: tabButtonLinkStyles }))));
|
|
1227
1595
|
};
|
|
1228
1596
|
/**
|
|
1229
1597
|
* Molecule UI component for Tab Button
|
|
1230
1598
|
*/
|
|
1231
1599
|
var TabButton = Component$1H;
|
|
1232
1600
|
|
|
1233
|
-
var styles$
|
|
1601
|
+
var styles$1B = {"HeaderDrawerTabsComponent":"mg_header_drawer_tabs_HeaderDrawerTabsComponent_1wrvo"};
|
|
1234
1602
|
|
|
1235
1603
|
var Component$1G = function (_a) {
|
|
1236
1604
|
var logoProps = _a.logoProps, leftTabLink = _a.leftTabLink, rightTabLink = _a.rightTabLink, leftTabStyle = _a.leftTabStyle, rightTabStyle = _a.rightTabStyle, homeUrl = _a.homeUrl;
|
|
1237
|
-
return (React.createElement("div", { className: styles$
|
|
1605
|
+
return (React.createElement("div", { className: styles$1B.HeaderDrawerTabsComponent },
|
|
1238
1606
|
React.createElement("a", { href: homeUrl },
|
|
1239
1607
|
React.createElement(LogoComponent, __assign({}, logoProps, { isoView: true }))),
|
|
1240
1608
|
React.createElement(Tab, null,
|
|
@@ -1243,11 +1611,11 @@ var Component$1G = function (_a) {
|
|
|
1243
1611
|
};
|
|
1244
1612
|
var HeaderDrawerTabs = Component$1G;
|
|
1245
1613
|
|
|
1246
|
-
var styles$
|
|
1614
|
+
var styles$1A = {"HeaderTabsComponent":"mg_header_tabs_HeaderTabsComponent_yjqx4"};
|
|
1247
1615
|
|
|
1248
1616
|
var Component$1F = function (_a) {
|
|
1249
1617
|
var _b = _a.headerTabList, headerTabList = _b === void 0 ? [] : _b, _c = _a.urlParam, urlParam = _c === void 0 ? '' : _c, addDivider = _a.addDivider;
|
|
1250
|
-
return (React.createElement("div", { className: styles$
|
|
1618
|
+
return (React.createElement("div", { className: styles$1A.HeaderTabsComponent, "data-add-divider": addDivider }, headerTabList.map(function (_a, index) {
|
|
1251
1619
|
var headerTabProps = __rest(_a, []);
|
|
1252
1620
|
return (React.createElement(React.Fragment, { key: index },
|
|
1253
1621
|
React.createElement(HeaderTab, __assign({}, headerTabProps, { isActive: Array.isArray(headerTabProps.slug)
|
|
@@ -1260,7 +1628,7 @@ var Component$1F = function (_a) {
|
|
|
1260
1628
|
*/
|
|
1261
1629
|
var HeaderTabs = Component$1F;
|
|
1262
1630
|
|
|
1263
|
-
var styles$
|
|
1631
|
+
var styles$1z = {"magneto-ui-input":"mg_input_magneto-ui-input_tifvx","magneto-ui-input--container":"mg_input_magneto-ui-input--container_tifvx","magneto-ui-input--container__input":"mg_input_magneto-ui-input--container_input_tifvx","magneto-ui-input--container__label":"mg_input_magneto-ui-input--container_label_tifvx","magneto-ui-input--container__icon":"mg_input_magneto-ui-input--container_icon_tifvx","magneto-ui-input--container__icon-action":"mg_input_magneto-ui-input--container_icon-action_tifvx","magneto-ui-input--container__error":"mg_input_magneto-ui-input--container_error_tifvx","magneto-ui-input__footer":"mg_input_magneto-ui-input_footer_tifvx","footer-without-error":"mg_input_footer-without-error_tifvx"};
|
|
1264
1632
|
|
|
1265
1633
|
var Input = function (_a) {
|
|
1266
1634
|
var _b = _a.value, value = _b === void 0 ? '' : _b, onChange = _a.onChange, _c = _a.name, name = _c === void 0 ? '' : _c, type = _a.type, placeholder = _a.placeholder, customIcon = _a.customIcon, _d = _a.hideIcon, hideIcon = _d === void 0 ? false : _d, error = _a.error, _e = _a.disabled, disabled = _e === void 0 ? false : _e, _f = _a.autoFocus, autoFocus = _f === void 0 ? false : _f, _g = _a.hasCounter, hasCounter = _g === void 0 ? false : _g, _h = _a.maxCounterValue, maxCounterValue = _h === void 0 ? 0 : _h, actionIcon = _a.actionIcon, _j = _a.actionInputIcon, actionInputIcon = _j === void 0 ? function () { return null; } : _j, props = __rest(_a, ["value", "onChange", "name", "type", "placeholder", "customIcon", "hideIcon", "error", "disabled", "autoFocus", "hasCounter", "maxCounterValue", "actionIcon", "actionInputIcon"]);
|
|
@@ -1295,26 +1663,26 @@ var Input = function (_a) {
|
|
|
1295
1663
|
setInputValue(e.target.value);
|
|
1296
1664
|
}, [onChange]);
|
|
1297
1665
|
return (React.createElement("div", { style: { height: 'auto', width: '100%' } },
|
|
1298
|
-
React.createElement("div", { className: styles$
|
|
1666
|
+
React.createElement("div", { className: styles$1z["".concat(classMUI, "-input")] },
|
|
1299
1667
|
React.createElement("div", null,
|
|
1300
|
-
React.createElement("div", { className: styles$
|
|
1668
|
+
React.createElement("div", { className: styles$1z["".concat(classMUI, "-input--container")] },
|
|
1301
1669
|
React.createElement("label", { htmlFor: name, style: {
|
|
1302
1670
|
left: hideIcon ? '10px' : '40px',
|
|
1303
1671
|
top: haveValueOrFocus ? '30%' : '45%',
|
|
1304
1672
|
fontSize: haveValueOrFocus ? '12px' : '14px'
|
|
1305
|
-
}, className: styles$
|
|
1673
|
+
}, className: styles$1z["".concat(classMUI, "-input--container__label")] }, placeholder),
|
|
1306
1674
|
React.createElement("input", __assign({}, props, { style: {
|
|
1307
1675
|
padding: hideIcon ? '0px 10px' : '0px 40px'
|
|
1308
|
-
}, disabled: disabled, className: styles$
|
|
1309
|
-
hideIcon ? null : (React.createElement("img", { className: styles$
|
|
1310
|
-
actionIcon ? (React.createElement("button", { type: "button", onClick: actionInputIcon, className: styles$
|
|
1676
|
+
}, disabled: disabled, className: styles$1z["".concat(classMUI, "-input--container__input")], type: type, name: name, value: value, onChange: handleChange, onFocus: function () { return setOnFocus(true); }, onBlur: function () { return setOnFocus(false); }, id: name, autoComplete: "off" })),
|
|
1677
|
+
hideIcon ? null : (React.createElement("img", { className: styles$1z["".concat(classMUI, "-input--container__icon")], src: customIcon ? customIcon : dinamyIcon[type] || DocumentTextGray })),
|
|
1678
|
+
actionIcon ? (React.createElement("button", { type: "button", onClick: actionInputIcon, className: styles$1z["".concat(classMUI, "-input--container__icon-action")] },
|
|
1311
1679
|
React.createElement("img", { "data-name": "icon", src: actionIcon }))) : null))),
|
|
1312
|
-
React.createElement("div", { className: "".concat(styles$
|
|
1313
|
-
error && (React.createElement("span", { style: { width: hasCounter ? '80%' : '100%' }, className: styles$
|
|
1680
|
+
React.createElement("div", { className: "".concat(styles$1z["".concat(classMUI, "-input__footer")], " ").concat(!error && hasCounter ? styles$1z['footer-without-error'] : '') },
|
|
1681
|
+
error && (React.createElement("span", { style: { width: hasCounter ? '80%' : '100%' }, className: styles$1z["".concat(classMUI, "-input--container__error")] }, error)),
|
|
1314
1682
|
hasCounter && React.createElement(ComparativeCounter, { current: inputValue.length, max: maxCounterValue }))));
|
|
1315
1683
|
};
|
|
1316
1684
|
|
|
1317
|
-
var styles$
|
|
1685
|
+
var styles$1y = {"magneto-ui-flat-loader":"mg_flat_loader_magneto-ui-flat-loader_q96bq","rotation":"mg_flat_loader_rotation_q96bq"};
|
|
1318
1686
|
|
|
1319
1687
|
var Component$1E = function (_a) {
|
|
1320
1688
|
var color = _a.color, size = _a.size, secondColor = _a.secondColor;
|
|
@@ -1330,11 +1698,11 @@ var Component$1E = function (_a) {
|
|
|
1330
1698
|
height: '15px'
|
|
1331
1699
|
};
|
|
1332
1700
|
}, [size]);
|
|
1333
|
-
return (React.createElement("div", { style: __assign(__assign({}, loadingSize), { border: "2px solid ".concat(color || '#090467'), borderBottomColor: secondColor || 'white' }), className: styles$
|
|
1701
|
+
return (React.createElement("div", { style: __assign(__assign({}, loadingSize), { border: "2px solid ".concat(color || '#090467'), borderBottomColor: secondColor || 'white' }), className: styles$1y["".concat(classMUI, "-flat-loader")] }));
|
|
1334
1702
|
};
|
|
1335
1703
|
var FlatLoader = Component$1E;
|
|
1336
1704
|
|
|
1337
|
-
var styles$
|
|
1705
|
+
var styles$1x = {"magneto-ui-input-plus":"mg_input_plus_magneto-ui-input-plus_1diki","magneto-ui-input-plus__plus-button":"mg_input_plus_magneto-ui-input-plus_plus-button_1diki","disabled":"mg_input_plus_disabled_1diki","disabled-img":"mg_input_plus_disabled-img_1diki"};
|
|
1338
1706
|
|
|
1339
1707
|
var InputPlus = function (_a) {
|
|
1340
1708
|
var onChange = _a.onChange, placeholder = _a.placeholder, _b = _a.maxWords, maxWords = _b === void 0 ? 4 : _b, disabled = _a.disabled, isLoading = _a.isLoading, _c = _a.className, className = _c === void 0 ? '' : _c, getValue = _a.getValue;
|
|
@@ -1378,23 +1746,23 @@ var InputPlus = function (_a) {
|
|
|
1378
1746
|
}
|
|
1379
1747
|
}
|
|
1380
1748
|
}, [disabledBtn, handleSubmmit]);
|
|
1381
|
-
return (React.createElement("div", { className: "".concat(styles$
|
|
1749
|
+
return (React.createElement("div", { className: "".concat(styles$1x["".concat(classMUI, "-input-plus")], " ").concat(className) },
|
|
1382
1750
|
React.createElement("input", { onKeyDown: handleKeyDown, placeholder: placeholder, value: inputValue, onChange: handleValue, type: "text" }),
|
|
1383
|
-
React.createElement("button", { type: "button", onClick: handleSubmmit, className: "".concat(styles$
|
|
1751
|
+
React.createElement("button", { type: "button", onClick: handleSubmmit, className: "".concat(styles$1x["".concat(classMUI, "-input-plus__plus-button")], " ").concat(disabledBtn ? styles$1x.disabled : ''), disabled: disabledBtn }, isLoading ? (React.createElement(FlatLoader, { color: "white", secondColor: "transparent" })) : (React.createElement("img", { className: "".concat(disabledBtn ? styles$1x['disabled-img'] : ''), src: Add2, alt: "icon" })))));
|
|
1384
1752
|
};
|
|
1385
1753
|
|
|
1386
|
-
var styles$
|
|
1754
|
+
var styles$1w = {"magneto-ui-job-actions":"mg_job_actions_magneto-ui-job-actions_gnly4","magneto-ui-job-actions__button-wrapper":"mg_job_actions_magneto-ui-job-actions_button-wrapper_gnly4","magneto-ui-job-actions__buttons-wrapper":"mg_job_actions_magneto-ui-job-actions_buttons-wrapper_gnly4","magneto-ui-job-actions__icon-wrapper":"mg_job_actions_magneto-ui-job-actions_icon-wrapper_gnly4","magneto-ui-job-actions__icon-anchor":"mg_job_actions_magneto-ui-job-actions_icon-anchor_gnly4","magneto-ui__external-child":"mg_job_actions_magneto-ui_external-child_gnly4"};
|
|
1387
1755
|
|
|
1388
|
-
var style$
|
|
1756
|
+
var style$N = {"popover":"mg_share_popover_popover_nlj0v","popover--hidden":"mg_share_popover_popover--hidden_nlj0v","popover__btn":"mg_share_popover_popover_btn_nlj0v","content":"mg_share_popover_content_nlj0v","content__link":"mg_share_popover_content_link_nlj0v"};
|
|
1389
1757
|
|
|
1390
1758
|
var Component$1D = function (_a) {
|
|
1391
1759
|
var _b = _a.shareLinks, shareLinks = _b === void 0 ? [] : _b, _c = _a.btnProps, btnProps = _c === void 0 ? {} : _c, _d = _a.classNameContent, classNameContent = _d === void 0 ? '' : _d, _e = _a.classNameButton, classNameButton = _e === void 0 ? '' : _e, rest = __rest(_a, ["shareLinks", "btnProps", "classNameContent", "classNameButton"]);
|
|
1392
1760
|
var _f = useState(false), show = _f[0], setShow = _f[1];
|
|
1393
|
-
return (React.createElement(Popover, { className: [style$
|
|
1761
|
+
return (React.createElement(Popover, { className: [style$N['popover'], !show ? style$N['popover--hidden'] : ''].join(' '), positionX: "right", positionY: "bottom", show: show, widthBase: 45, content: React.createElement("ul", { className: [style$N['content'], classNameContent].join(' ') },
|
|
1394
1762
|
shareLinks.map(function (_a, index) {
|
|
1395
1763
|
var title = _a.title, href = _a.href, ariaLabel = _a.ariaLabel, icon = _a.icon, name = _a.name;
|
|
1396
1764
|
return (React.createElement("li", { key: "".concat(title, "-").concat(index) },
|
|
1397
|
-
React.createElement("a", { title: title, href: href, target: "_blank", rel: "noreferrer", "aria-label": ariaLabel, className: style$
|
|
1765
|
+
React.createElement("a", { title: title, href: href, target: "_blank", rel: "noreferrer", "aria-label": ariaLabel, className: style$N['content__link'], onClick: function () { return setShow(false); } },
|
|
1398
1766
|
React.createElement(IconItem, { size: 40, icon: name ? ShareIcons[name].icon : icon }),
|
|
1399
1767
|
React.createElement("span", null, title))));
|
|
1400
1768
|
}),
|
|
@@ -1402,7 +1770,7 @@ var Component$1D = function (_a) {
|
|
|
1402
1770
|
React.createElement(ShareButton, __assign({}, rest, { onCopySuccess: function () {
|
|
1403
1771
|
rest.onCopySuccess();
|
|
1404
1772
|
} })))) },
|
|
1405
|
-
React.createElement("button", __assign({}, btnProps, { className: [style$
|
|
1773
|
+
React.createElement("button", __assign({}, btnProps, { className: [style$N['popover__btn'], classNameButton].join(' '), onClick: function () { return setShow(function (show) { return !show; }); }, onBlur: function () { return setShow(false); } }),
|
|
1406
1774
|
React.createElement(IconItem, { size: 20, icon: Share }))));
|
|
1407
1775
|
};
|
|
1408
1776
|
Component$1D.displayName = 'SharePopover';
|
|
@@ -1416,15 +1784,15 @@ var Component$1C = function (_a) {
|
|
|
1416
1784
|
title: actionsAnchorTitle === null || actionsAnchorTitle === void 0 ? void 0 : actionsAnchorTitle[index]
|
|
1417
1785
|
}); });
|
|
1418
1786
|
var filteredActionsLinkList = actionsLinkList === null || actionsLinkList === void 0 ? void 0 : actionsLinkList.filter(function (item) { return item.url !== null && item.url !== undefined; });
|
|
1419
|
-
return (React.createElement("div", { className: styles$
|
|
1420
|
-
React.createElement("div", { id: styles$
|
|
1421
|
-
React.createElement("div", { className: styles$
|
|
1787
|
+
return (React.createElement("div", { className: styles$1w['magneto-ui-job-actions'] },
|
|
1788
|
+
React.createElement("div", { id: styles$1w['magneto-ui__external-child'] }, externalButtonChild),
|
|
1789
|
+
React.createElement("div", { className: styles$1w['magneto-ui-job-actions__buttons-wrapper'] },
|
|
1422
1790
|
React.createElement(SaveButton, __assign({}, saveButtonProps)),
|
|
1423
1791
|
React.createElement(SharePopover, __assign({}, shareButtonProps)), filteredActionsLinkList === null || filteredActionsLinkList === void 0 ? void 0 :
|
|
1424
1792
|
filteredActionsLinkList.map(function (_a) {
|
|
1425
1793
|
var url = _a.url, title = _a.title, icon = _a.icon;
|
|
1426
|
-
return (React.createElement("div", { className: styles$
|
|
1427
|
-
React.createElement("a", { className: styles$
|
|
1794
|
+
return (React.createElement("div", { className: styles$1w['magneto-ui-job-actions__icon-wrapper'], key: "".concat(url, "-JobActions") },
|
|
1795
|
+
React.createElement("a", { className: styles$1w['magneto-ui-job-actions__icon-anchor'], href: url, target: "_blank", rel: "noreferrer", title: title },
|
|
1428
1796
|
React.createElement(IconItem, { hover: true, size: 20, icon: icon }))));
|
|
1429
1797
|
}))));
|
|
1430
1798
|
};
|
|
@@ -1433,13 +1801,13 @@ var Component$1C = function (_a) {
|
|
|
1433
1801
|
*/
|
|
1434
1802
|
var JobActions = Component$1C;
|
|
1435
1803
|
|
|
1436
|
-
var styles$
|
|
1804
|
+
var styles$1v = {"magneto-ui-job-apply-card":"mg_job_apply_card_magneto-ui-job-apply-card_qw6j6","magneto-ui-job-apply-card__wrapper":"mg_job_apply_card_magneto-ui-job-apply-card_wrapper_qw6j6","magneto-ui-job-apply-card__header":"mg_job_apply_card_magneto-ui-job-apply-card_header_qw6j6","magneto-ui-job-apply-card__requirements":"mg_job_apply_card_magneto-ui-job-apply-card_requirements_qw6j6","magneto-ui__external-child":"mg_job_apply_card_magneto-ui_external-child_qw6j6"};
|
|
1437
1805
|
|
|
1438
1806
|
var Component$1B = function (_a) {
|
|
1439
1807
|
var offerApplyHeader = _a.offerApplyHeader, offerApplyElements = _a.offerApplyElements, externalChild = _a.externalChild;
|
|
1440
|
-
return (React.createElement("div", { className: styles$
|
|
1441
|
-
React.createElement("div", { className: styles$
|
|
1442
|
-
React.createElement("div", { className: styles$
|
|
1808
|
+
return (React.createElement("div", { className: styles$1v['magneto-ui-job-apply-card'] },
|
|
1809
|
+
React.createElement("div", { className: styles$1v['magneto-ui-job-apply-card__wrapper'] },
|
|
1810
|
+
React.createElement("div", { className: styles$1v['magneto-ui-job-apply-card__header'] },
|
|
1443
1811
|
React.createElement("p", null, offerApplyHeader),
|
|
1444
1812
|
(offerApplyElements === null || offerApplyElements === void 0 ? void 0 : offerApplyElements.length) &&
|
|
1445
1813
|
offerApplyElements
|
|
@@ -1449,18 +1817,18 @@ var Component$1B = function (_a) {
|
|
|
1449
1817
|
})
|
|
1450
1818
|
.map(function (_a) {
|
|
1451
1819
|
var offerApplyLabel = _a.offerApplyLabel, offerApplyInfo = _a.offerApplyInfo;
|
|
1452
|
-
return (React.createElement("div", { className: styles$
|
|
1820
|
+
return (React.createElement("div", { className: styles$1v['magneto-ui-job-apply-card__requirements'], key: "".concat(offerApplyLabel, "-JobApplyCard") },
|
|
1453
1821
|
React.createElement("p", null, offerApplyLabel),
|
|
1454
1822
|
React.createElement("p", null, offerApplyInfo)));
|
|
1455
1823
|
})),
|
|
1456
|
-
React.createElement("div", { id: styles$
|
|
1824
|
+
React.createElement("div", { id: styles$1v['magneto-ui__external-child'] }, externalChild))));
|
|
1457
1825
|
};
|
|
1458
1826
|
/**
|
|
1459
1827
|
* UI Molecule Component for Job Apply Card
|
|
1460
1828
|
*/
|
|
1461
1829
|
var JobApplyCard = Component$1B;
|
|
1462
1830
|
|
|
1463
|
-
var style$
|
|
1831
|
+
var style$M = {"magneto-ui-card-jobs":"mg_job_card_desktop_magneto-ui-card-jobs_1u1yc","magneto-ui-card-jobs--arrow":"mg_job_card_desktop_magneto-ui-card-jobs--arrow_1u1yc","magneto-ui-card-jobs--data":"mg_job_card_desktop_magneto-ui-card-jobs--data_1u1yc","magneto-ui-card-jobs--row1":"mg_job_card_desktop_magneto-ui-card-jobs--row1_1u1yc","magneto-ui-card-jobs--row2":"mg_job_card_desktop_magneto-ui-card-jobs--row2_1u1yc","magneto-ui-card-jobs--row3":"mg_job_card_desktop_magneto-ui-card-jobs--row3_1u1yc","magneto-ui-card-jobs--row4":"mg_job_card_desktop_magneto-ui-card-jobs--row4_1u1yc","magneto-ui-card-jobs--row2__position":"mg_job_card_desktop_magneto-ui-card-jobs--row2_position_1u1yc","magneto-ui-card-jobs--row2__urgent":"mg_job_card_desktop_magneto-ui-card-jobs--row2_urgent_1u1yc","magneto-ui-card-jobs--row2__variant":"mg_job_card_desktop_magneto-ui-card-jobs--row2_variant_1u1yc","magneto-ui-card-jobs--row3__info1":"mg_job_card_desktop_magneto-ui-card-jobs--row3_info1_1u1yc","magneto-ui-card-jobs--row3__info2":"mg_job_card_desktop_magneto-ui-card-jobs--row3_info2_1u1yc","magneto-ui-card-jobs--brand":"mg_job_card_desktop_magneto-ui-card-jobs--brand_1u1yc","magneto-ui-card-jobs--brand__img":"mg_job_card_desktop_magneto-ui-card-jobs--brand_img_1u1yc","was-seen":"mg_job_card_desktop_was-seen_1u1yc","is-active":"mg_job_card_desktop_is-active_1u1yc"};
|
|
1464
1832
|
|
|
1465
1833
|
var JobCardDesktop = function (_a) {
|
|
1466
1834
|
var _b = _a.isCompanyPage, isCompanyPage = _b === void 0 ? false : _b, workSeen = _a.workSeen, jobOpen = _a.jobOpen, _c = _a.cities, cities = _c === void 0 ? [] : _c, salary = _a.salary, companyName = _a.companyName, title = _a.title, educationLevel = _a.educationLevel, formatPublishDate = _a.formatPublishDate, companyLogo = _a.companyLogo, companySlug = _a.companySlug, experience = _a.experience, contractType = _a.contractType, showDetail = _a.showDetail, urgent = _a.urgent, _d = _a.others, others = _d === void 0 ? '' : _d, jobSlug = _a.jobSlug, dynamicUrl = _a.dynamicUrl;
|
|
@@ -1471,43 +1839,43 @@ var JobCardDesktop = function (_a) {
|
|
|
1471
1839
|
return cities === null || cities === void 0 ? void 0 : cities.join(', ');
|
|
1472
1840
|
}, [cities]);
|
|
1473
1841
|
var infoRow4 = [contractType, salary, experience, educationLevel].join(' ');
|
|
1474
|
-
return (React.createElement("article", { onClick: showDetail, className: "".concat(style$
|
|
1475
|
-
!isCompanyPage && (React.createElement("div", { className: style$
|
|
1476
|
-
React.createElement("div", { className: style$
|
|
1477
|
-
React.createElement("img", { className: style$
|
|
1478
|
-
React.createElement("div", { className: style$
|
|
1479
|
-
React.createElement("div", { className: style$
|
|
1842
|
+
return (React.createElement("article", { onClick: showDetail, className: "".concat(style$M["".concat(classMUI, "-card-jobs")], " ").concat(workSeen ? style$M[workSeen] : '', " ").concat(jobOpen ? style$M[jobOpen] : '') },
|
|
1843
|
+
!isCompanyPage && (React.createElement("div", { className: style$M["".concat(classMUI, "-card-jobs--row1")] },
|
|
1844
|
+
React.createElement("div", { className: style$M["".concat(classMUI, "-card-jobs--brand")] },
|
|
1845
|
+
React.createElement("img", { className: style$M["".concat(classMUI, "-card-jobs--brand__img")], alt: companySlug ? companySlug : 'company-slug', src: companyLogo ? companyLogo : NoLogo, loading: "lazy", width: '67px', height: '67px' })))),
|
|
1846
|
+
React.createElement("div", { className: style$M["".concat(classMUI, "-card-jobs--data")] },
|
|
1847
|
+
React.createElement("div", { className: style$M["".concat(classMUI, "-card-jobs--row2")] },
|
|
1480
1848
|
React.createElement("a", { href: "".concat(dynamicUrl, "/").concat(jobSlug), title: title, target: "_blank", rel: "noreferrer", onClick: function (e) { return e.preventDefault(); } },
|
|
1481
|
-
React.createElement("h2", { className: "".concat(style$
|
|
1849
|
+
React.createElement("h2", { className: "".concat(style$M["".concat(classMUI, "-card-jobs--row2__position")], " ").concat(workSeen) }, title)),
|
|
1482
1850
|
React.createElement("h3", null, companyName),
|
|
1483
1851
|
React.createElement("p", null, formatPublishDate),
|
|
1484
|
-
urgent && (React.createElement("div", { className: style$
|
|
1852
|
+
urgent && (React.createElement("div", { className: style$M["".concat(classMUI, "-card-jobs--row2__urgent")] },
|
|
1485
1853
|
React.createElement(IconItem, { alt: 'alt', icon: Urgent, hover: false, size: 18 }),
|
|
1486
1854
|
React.createElement("p", null, urgent)))),
|
|
1487
|
-
React.createElement("div", { className: style$
|
|
1855
|
+
React.createElement("div", { className: style$M["".concat(classMUI, "-card-jobs--row3")] },
|
|
1488
1856
|
React.createElement("p", null,
|
|
1489
1857
|
citiesformatted,
|
|
1490
1858
|
(cities === null || cities === void 0 ? void 0 : cities.length) > 5 && ', ' + others)),
|
|
1491
|
-
React.createElement("div", { className: style$
|
|
1859
|
+
React.createElement("div", { className: style$M["".concat(classMUI, "-card-jobs--row4")] },
|
|
1492
1860
|
React.createElement("p", null, infoRow4))),
|
|
1493
|
-
React.createElement("div", { className: style$
|
|
1861
|
+
React.createElement("div", { className: style$M["".concat(classMUI, "-card-jobs--arrow")] },
|
|
1494
1862
|
React.createElement(IconItem, { icon: ArrowRight2 }))));
|
|
1495
1863
|
};
|
|
1496
1864
|
|
|
1497
|
-
var style$
|
|
1865
|
+
var style$L = {"magneto-ui-card-mobile-jobs":"mg_job_card_mobile_magneto-ui-card-mobile-jobs_18tcb","magneto-ui-card-mobile-jobs--data":"mg_job_card_mobile_magneto-ui-card-mobile-jobs--data_18tcb","magneto-ui-card-mobile-jobs--row1":"mg_job_card_mobile_magneto-ui-card-mobile-jobs--row1_18tcb","magneto-ui-card-mobile-jobs--row2":"mg_job_card_mobile_magneto-ui-card-mobile-jobs--row2_18tcb","magneto-ui-card-mobile-jobs--row2__position":"mg_job_card_mobile_magneto-ui-card-mobile-jobs--row2_position_18tcb","magneto-ui-card-mobile-jobs--row2__info":"mg_job_card_mobile_magneto-ui-card-mobile-jobs--row2_info_18tcb","magneto-ui-card-mobile-jobs--brand":"mg_job_card_mobile_magneto-ui-card-mobile-jobs--brand_18tcb","magneto-ui-card-mobile-jobs--brand__img":"mg_job_card_mobile_magneto-ui-card-mobile-jobs--brand_img_18tcb"};
|
|
1498
1866
|
|
|
1499
1867
|
var JobCardMobile = function (_a) {
|
|
1500
1868
|
var _b = _a.isCompanyPage, isCompanyPage = _b === void 0 ? false : _b, workSeen = _a.workSeen, jobOpen = _a.jobOpen, _c = _a.cities, cities = _c === void 0 ? [] : _c, salary = _a.salary, companyName = _a.companyName, title = _a.title, educationLevel = _a.educationLevel, formatPublishDate = _a.formatPublishDate, companyLogo = _a.companyLogo, companySlug = _a.companySlug, experience = _a.experience, showDetail = _a.showDetail, others = _a.others, jobSlug = _a.jobSlug, dynamicUrl = _a.dynamicUrl;
|
|
1501
|
-
return (React.createElement("article", { onClick: showDetail, className: "".concat(style$
|
|
1502
|
-
!isCompanyPage && (React.createElement("div", { className: style$
|
|
1503
|
-
React.createElement("div", { className: style$
|
|
1504
|
-
React.createElement("img", { className: style$
|
|
1505
|
-
React.createElement("div", { className: style$
|
|
1506
|
-
React.createElement("div", { className: style$
|
|
1869
|
+
return (React.createElement("article", { onClick: showDetail, className: "".concat(style$L["".concat(classMUI, "-card-mobile-jobs")], " ").concat(workSeen ? style$L[workSeen] : '', " ").concat(jobOpen ? style$L[jobOpen] : '') },
|
|
1870
|
+
!isCompanyPage && (React.createElement("div", { className: style$L["".concat(classMUI, "-card-mobile-jobs--row1")] },
|
|
1871
|
+
React.createElement("div", { className: style$L["".concat(classMUI, "-card-mobile-jobs--brand")] },
|
|
1872
|
+
React.createElement("img", { className: style$L["".concat(classMUI, "-card-mobile-jobs--brand__img")], alt: companySlug ? companySlug : 'company-slug', src: companyLogo ? companyLogo : NoLogo, loading: "lazy", width: '50px', height: '50px' })))),
|
|
1873
|
+
React.createElement("div", { className: style$L["".concat(classMUI, "-card-mobile-jobs--data")] },
|
|
1874
|
+
React.createElement("div", { className: style$L["".concat(classMUI, "-card-mobile-jobs--row2")] },
|
|
1507
1875
|
React.createElement("div", null,
|
|
1508
1876
|
React.createElement("a", { href: "".concat(dynamicUrl, "/").concat(jobSlug), title: title, rel: "noreferrer", onClick: function (e) { return e.stopPropagation(); } },
|
|
1509
|
-
React.createElement("h2", { className: "".concat(style$
|
|
1510
|
-
React.createElement("div", { className: style$
|
|
1877
|
+
React.createElement("h2", { className: "".concat(style$L["".concat(classMUI, "-card-mobile-jobs--row2__position")], " ").concat(workSeen) }, title))),
|
|
1878
|
+
React.createElement("div", { className: style$L["".concat(classMUI, "-card-mobile-jobs--row2__info")] },
|
|
1511
1879
|
React.createElement("h3", null,
|
|
1512
1880
|
companyName,
|
|
1513
1881
|
","),
|
|
@@ -1542,11 +1910,11 @@ var JobCard = function (_a) {
|
|
|
1542
1910
|
return React.createElement(React.Fragment, null, cardResponsive);
|
|
1543
1911
|
};
|
|
1544
1912
|
|
|
1545
|
-
var styles$
|
|
1913
|
+
var styles$1u = {"magneto-ui-job-company-header":"mg_job_company_header_magneto-ui-job-company-header_13130"};
|
|
1546
1914
|
|
|
1547
1915
|
var Component$1A = function (_a) {
|
|
1548
1916
|
var jobCompanyLogoProps = _a.jobCompanyLogoProps, jobHeaderProps = _a.jobHeaderProps;
|
|
1549
|
-
return (React.createElement("div", { className: styles$
|
|
1917
|
+
return (React.createElement("div", { className: styles$1u['magneto-ui-job-company-header'] },
|
|
1550
1918
|
React.createElement(JobCompanyLogo, __assign({}, jobCompanyLogoProps)),
|
|
1551
1919
|
React.createElement(JobHeader, __assign({}, jobHeaderProps))));
|
|
1552
1920
|
};
|
|
@@ -1555,31 +1923,31 @@ var Component$1A = function (_a) {
|
|
|
1555
1923
|
*/
|
|
1556
1924
|
var JobCompanyHeader = Component$1A;
|
|
1557
1925
|
|
|
1558
|
-
var styles$
|
|
1926
|
+
var styles$1t = {"magneto-ui-job-detail-card":"mg_job_detail_card_magneto-ui-job-detail-card_htydq"};
|
|
1559
1927
|
|
|
1560
1928
|
var Component$1z = function (_a) {
|
|
1561
1929
|
var offerDescription = _a.offerDescription;
|
|
1562
|
-
return (React.createElement("div", { className: styles$
|
|
1930
|
+
return (React.createElement("div", { className: styles$1t['magneto-ui-job-detail-card'] }, offerDescription !== null ? React.createElement("div", { dangerouslySetInnerHTML: { __html: offerDescription } }) : React.createElement(Fragment, null)));
|
|
1563
1931
|
};
|
|
1564
1932
|
/**
|
|
1565
1933
|
* UI Molecule Component for Job Detail Card Header
|
|
1566
1934
|
*/
|
|
1567
1935
|
var JobDetailCard = Component$1z;
|
|
1568
1936
|
|
|
1569
|
-
var style$
|
|
1937
|
+
var style$K = {"magneto-ui-job-detail-container":"mg_job_detail_container_magneto-ui-job-detail-container_2904j","magneto-ui-job-detail-container--btn":"mg_job_detail_container_magneto-ui-job-detail-container--btn_2904j","is-open":"mg_job_detail_container_is-open_2904j"};
|
|
1570
1938
|
|
|
1571
1939
|
var JobDetailContainer = function (_a) {
|
|
1572
1940
|
var children = _a.children, _b = _a.isOpen, isOpen = _b === void 0 ? false : _b, onClose = _a.onClose;
|
|
1573
1941
|
var toggleMenu = useMemo(function () {
|
|
1574
|
-
return isOpen ? style$
|
|
1942
|
+
return isOpen ? style$K['is-open'] : '';
|
|
1575
1943
|
}, [isOpen]);
|
|
1576
|
-
return (React.createElement("div", { className: "".concat(style$
|
|
1577
|
-
React.createElement("button", { type: "button", onClick: onClose, className: style$
|
|
1944
|
+
return (React.createElement("div", { className: "".concat(style$K["".concat(classMUI, "-job-detail-container")], " ").concat(toggleMenu) },
|
|
1945
|
+
React.createElement("button", { type: "button", onClick: onClose, className: style$K["".concat(classMUI, "-job-detail-container--btn")] },
|
|
1578
1946
|
React.createElement(IconItem, { alt: "arrow right", icon: ArrowRight2 })),
|
|
1579
1947
|
children));
|
|
1580
1948
|
};
|
|
1581
1949
|
|
|
1582
|
-
var styles$
|
|
1950
|
+
var styles$1s = {"magneto-ui-job-details":"mg_job_details_magneto-ui-job-details_nkmig","magneto-ui-job-details__wrapper":"mg_job_details_magneto-ui-job-details_wrapper_nkmig","magneto-ui-job-details__item-detail":"mg_job_details_magneto-ui-job-details_item-detail_nkmig","magneto-ui-job-details__item-detail-icon":"mg_job_details_magneto-ui-job-details_item-detail-icon_nkmig","magneto-ui-job-details__item-detail-text":"mg_job_details_magneto-ui-job-details_item-detail-text_nkmig"};
|
|
1583
1951
|
|
|
1584
1952
|
var Component$1y = function (_a) {
|
|
1585
1953
|
var offerDetailsList = _a.offerDetailsList, iconList = _a.iconList, altList = _a.altList, cities = _a.cities, textRemote = _a.textRemote, isRemote = _a.isRemote;
|
|
@@ -1591,15 +1959,15 @@ var Component$1y = function (_a) {
|
|
|
1591
1959
|
var offerDetailText = _a.offerDetailText;
|
|
1592
1960
|
return !!offerDetailText;
|
|
1593
1961
|
});
|
|
1594
|
-
return (React.createElement("div", { className: styles$
|
|
1595
|
-
React.createElement("div", { className: styles$
|
|
1962
|
+
return (React.createElement("div", { className: styles$1s['magneto-ui-job-details'] },
|
|
1963
|
+
React.createElement("div", { className: styles$1s['magneto-ui-job-details__wrapper'] },
|
|
1596
1964
|
(jobDetailsList === null || jobDetailsList === void 0 ? void 0 : jobDetailsList.length) &&
|
|
1597
1965
|
(jobDetailsList === null || jobDetailsList === void 0 ? void 0 : jobDetailsList.map(function (_a) {
|
|
1598
1966
|
var offerDetailText = _a.offerDetailText, icon = _a.icon, _b = _a.alt, alt = _b === void 0 ? '' : _b;
|
|
1599
|
-
return (React.createElement("div", { key: "".concat(offerDetailText, "-JobDetails"), className: styles$
|
|
1600
|
-
React.createElement("div", { className: styles$
|
|
1967
|
+
return (React.createElement("div", { key: "".concat(offerDetailText, "-JobDetails"), className: styles$1s['magneto-ui-job-details__item-detail'] },
|
|
1968
|
+
React.createElement("div", { className: styles$1s['magneto-ui-job-details__item-detail-icon'] },
|
|
1601
1969
|
React.createElement(IconItem, { alt: alt, icon: icon, hover: false, size: 16 })),
|
|
1602
|
-
React.createElement("p", { className: styles$
|
|
1970
|
+
React.createElement("p", { className: styles$1s['magneto-ui-job-details__item-detail-text'] }, offerDetailText)));
|
|
1603
1971
|
})),
|
|
1604
1972
|
React.createElement(CitiesDetailDrawer, { cities: cities, isRemote: isRemote, textRemote: textRemote }))));
|
|
1605
1973
|
};
|
|
@@ -1609,7 +1977,7 @@ var Component$1y = function (_a) {
|
|
|
1609
1977
|
Component$1y.displayName = 'JobDetails';
|
|
1610
1978
|
var JobDetails = Component$1y;
|
|
1611
1979
|
|
|
1612
|
-
var styles$
|
|
1980
|
+
var styles$1r = {"magneto-ui-job-footer-card":"mg_job_footer_card_magneto-ui-job-footer-card_xmrf6","magneto-ui-job-footer-card__icons":"mg_job_footer_card_magneto-ui-job-footer-card_icons_xmrf6","magneto-ui-job-footer-card__wrapper":"mg_job_footer_card_magneto-ui-job-footer-card_wrapper_xmrf6","magneto-ui__share-button":"mg_job_footer_card_magneto-ui_share-button_xmrf6"};
|
|
1613
1981
|
|
|
1614
1982
|
var Component$1x = function (_a) {
|
|
1615
1983
|
var offerFooterHeader = _a.offerFooterHeader, offerCompanyLogo = _a.offerCompanyLogo, offerFooterList = _a.offerFooterList, iconList = _a.iconList, shareButtonProps = _a.shareButtonProps, companyImgAlt = _a.companyImgAlt;
|
|
@@ -1622,18 +1990,18 @@ var Component$1x = function (_a) {
|
|
|
1622
1990
|
title: title
|
|
1623
1991
|
});
|
|
1624
1992
|
});
|
|
1625
|
-
return (React.createElement("div", { className: styles$
|
|
1993
|
+
return (React.createElement("div", { className: styles$1r['magneto-ui-job-footer-card'] },
|
|
1626
1994
|
React.createElement("img", { src: offerCompanyLogo ? offerCompanyLogo : NoLogo, alt: companyImgAlt, loading: "lazy", width: '100px', height: '100px' }),
|
|
1627
|
-
React.createElement("div", { className: styles$
|
|
1995
|
+
React.createElement("div", { className: styles$1r['magneto-ui-job-footer-card__icons'] },
|
|
1628
1996
|
React.createElement("p", null, offerFooterHeader),
|
|
1629
|
-
React.createElement("div", { className: styles$
|
|
1997
|
+
React.createElement("div", { className: styles$1r['magneto-ui-job-footer-card__wrapper'] },
|
|
1630
1998
|
(jobFooterList === null || jobFooterList === void 0 ? void 0 : jobFooterList.length) &&
|
|
1631
1999
|
(jobFooterList === null || jobFooterList === void 0 ? void 0 : jobFooterList.map(function (_a, i) {
|
|
1632
2000
|
var href = _a.href, ariaLabel = _a.ariaLabel, icon = _a.icon, title = _a.title;
|
|
1633
2001
|
return href !== null && (React.createElement("a", { key: "".concat(href, "-jobFooterList") + i, title: title, href: href, target: "_blank", rel: "noreferrer", "aria-label": ariaLabel },
|
|
1634
2002
|
React.createElement(IconItem, { hover: false, icon: icon || undefined })));
|
|
1635
2003
|
})),
|
|
1636
|
-
React.createElement("div", { className: styles$
|
|
2004
|
+
React.createElement("div", { className: styles$1r['magneto-ui__share-button'] },
|
|
1637
2005
|
React.createElement(ShareButton, __assign({}, shareButtonProps)))))));
|
|
1638
2006
|
};
|
|
1639
2007
|
/**
|
|
@@ -1641,7 +2009,7 @@ var Component$1x = function (_a) {
|
|
|
1641
2009
|
*/
|
|
1642
2010
|
var JobFooterCard = Component$1x;
|
|
1643
2011
|
|
|
1644
|
-
var styles$
|
|
2012
|
+
var styles$1q = {"magneto-ui-skill":"mg_skill_magneto-ui-skill_1nwsu","magneto-ui-skill__wrapper":"mg_skill_magneto-ui-skill_wrapper_1nwsu","magneto-ui-skill__bar":"mg_skill_magneto-ui-skill_bar_1nwsu","one":"mg_skill_one_1nwsu","two":"mg_skill_two_1nwsu","three":"mg_skill_three_1nwsu","four":"mg_skill_four_1nwsu"};
|
|
1645
2013
|
|
|
1646
2014
|
var Component$1w = function (_a) {
|
|
1647
2015
|
var name = _a.name, score = _a.score;
|
|
@@ -1679,21 +2047,21 @@ var Component$1w = function (_a) {
|
|
|
1679
2047
|
4: 'four'
|
|
1680
2048
|
};
|
|
1681
2049
|
var levelClass = scoreToLevel[score || 0] || '';
|
|
1682
|
-
var fillAnimation = animationApplied ? styles$
|
|
1683
|
-
return (React.createElement("div", { ref: skillRef, className: styles$
|
|
1684
|
-
React.createElement("div", { className: styles$
|
|
2050
|
+
var fillAnimation = animationApplied ? styles$1q[levelClass] : '';
|
|
2051
|
+
return (React.createElement("div", { ref: skillRef, className: styles$1q['magneto-ui-skill'] },
|
|
2052
|
+
React.createElement("div", { className: styles$1q['magneto-ui-skill__wrapper'] },
|
|
1685
2053
|
React.createElement("p", null, name),
|
|
1686
|
-
React.createElement("div", { className: "".concat(styles$
|
|
2054
|
+
React.createElement("div", { className: "".concat(styles$1q['magneto-ui-skill__bar'], " ").concat(fillAnimation || styles$1q['magneto-ui-skill--no-animation']) }))));
|
|
1687
2055
|
};
|
|
1688
2056
|
var Skill = Component$1w;
|
|
1689
2057
|
|
|
1690
|
-
var styles$
|
|
2058
|
+
var styles$1p = {"magneto-ui-job-skills-card":"mg_job_skills_card_magneto-ui-job-skills-card_o3vgw","magneto-ui-job-skills-card__skills-wrapper":"mg_job_skills_card_magneto-ui-job-skills-card_skills-wrapper_o3vgw"};
|
|
1691
2059
|
|
|
1692
2060
|
var Component$1v = function (_a) {
|
|
1693
2061
|
var offerSkillsLabel = _a.offerSkillsLabel, offerSkills = _a.offerSkills;
|
|
1694
|
-
return (React.createElement(Fragment, null, offerSkills && offerSkills.length >= 1 && (React.createElement("div", { className: styles$
|
|
2062
|
+
return (React.createElement(Fragment, null, offerSkills && offerSkills.length >= 1 && (React.createElement("div", { className: styles$1p['magneto-ui-job-skills-card'] },
|
|
1695
2063
|
React.createElement("p", null, offerSkillsLabel),
|
|
1696
|
-
React.createElement("div", { className: styles$
|
|
2064
|
+
React.createElement("div", { className: styles$1p['magneto-ui-job-skills-card__skills-wrapper'] }, offerSkills === null || offerSkills === void 0 ? void 0 : offerSkills.map(function (_a) {
|
|
1697
2065
|
var name = _a.name, score = _a.score, id = _a.id;
|
|
1698
2066
|
return (React.createElement(React.Fragment, { key: "".concat(id, "-JobSkillsCard") },
|
|
1699
2067
|
React.createElement(Skill, { id: id, name: name, score: score })));
|
|
@@ -1704,7 +2072,7 @@ var Component$1v = function (_a) {
|
|
|
1704
2072
|
*/
|
|
1705
2073
|
var JobSkillsCard = Component$1v;
|
|
1706
2074
|
|
|
1707
|
-
var styles$
|
|
2075
|
+
var styles$1o = {"magneto-ui-job-video":"mg_job_video_magneto-ui-job-video_ntfx8","magneto-ui-play-button":"mg_job_video_magneto-ui-play-button_ntfx8","jobDetailsVideo":"mg_job_video_jobDetailsVideo_ntfx8"};
|
|
1708
2076
|
|
|
1709
2077
|
var JobVideo = function (_a) {
|
|
1710
2078
|
var imageProps = _a.imageProps, jobId = _a.jobId, videoClassName = _a.videoClassName, vjsOptions = _a.vjsOptions, VideoComponent = _a.VideoComponent, loadVideo = _a.loadVideo, setLoadVideo = _a.setLoadVideo;
|
|
@@ -1719,15 +2087,15 @@ var JobVideo = function (_a) {
|
|
|
1719
2087
|
setLoadVideo && setLoadVideo(false);
|
|
1720
2088
|
}
|
|
1721
2089
|
}, [detailJobId, jobId, setLoadVideo]);
|
|
1722
|
-
return loadVideo || uploadVideo ? (React.createElement(VideoComponent, { vjsOptions: vjsOptions, key: "lazyVideo_".concat(jobId), className: styles$
|
|
2090
|
+
return loadVideo || uploadVideo ? (React.createElement(VideoComponent, { vjsOptions: vjsOptions, key: "lazyVideo_".concat(jobId), className: styles$1o[videoClassName] })) : (React.createElement("div", { className: styles$1o['magneto-ui-job-video'], onClick: handleLoadVideo },
|
|
1723
2091
|
React.createElement(Image, __assign({}, imageProps))));
|
|
1724
2092
|
};
|
|
1725
2093
|
|
|
1726
|
-
var style$
|
|
2094
|
+
var style$J = {"magneto-ui-list-icon":"mg_list_icon_link_magneto-ui-list-icon_1b3zm"};
|
|
1727
2095
|
|
|
1728
2096
|
var Component$1u = function (_a) {
|
|
1729
2097
|
var listIcon = _a.listIcon, size = _a.size, _b = _a.hover, hover = _b === void 0 ? true : _b, spacing = _a.spacing;
|
|
1730
|
-
return (React.createElement("div", { style: { gap: "".concat(spacing, "px") }, className: style$
|
|
2098
|
+
return (React.createElement("div", { style: { gap: "".concat(spacing, "px") }, className: style$J['magneto-ui-list-icon'] }, listIcon.map(function (_a, index) {
|
|
1731
2099
|
var icon = _a.icon, url = _a.url, title = _a.title;
|
|
1732
2100
|
return url && (React.createElement("a", { key: index, href: url, target: "_blank", rel: "noopener noreferrer" },
|
|
1733
2101
|
React.createElement(IconItem, { alt: title, hover: hover, size: size, icon: icon })));
|
|
@@ -1735,27 +2103,27 @@ var Component$1u = function (_a) {
|
|
|
1735
2103
|
};
|
|
1736
2104
|
var ListIconLink = Component$1u;
|
|
1737
2105
|
|
|
1738
|
-
var style$
|
|
2106
|
+
var style$I = {"magneto-ui-menu-icon":"mg_menu_icon_magneto-ui-menu-icon_1nc3s","magneto-ui-menu-icon__menu-text":"mg_menu_icon_magneto-ui-menu-icon_menu-text_1nc3s","isActive":"mg_menu_icon_isActive_1nc3s"};
|
|
1739
2107
|
|
|
1740
2108
|
var Component$1t = function (_a) {
|
|
1741
2109
|
var text = _a.text, icon = _a.icon, iconProps = _a.iconProps, _b = _a.iconSize, iconSize = _b === void 0 ? 20 : _b, url = _a.url, _c = _a.type, type = _c === void 0 ? 'link' : _c, onClick = _a.onClick, isActive = _a.isActive, _d = _a.className, className = _d === void 0 ? '' : _d, rel = _a.rel, target = _a.target;
|
|
1742
|
-
var menuActive = isActive ? style$
|
|
1743
|
-
return (React.createElement(React.Fragment, null, type === 'link' ? (React.createElement("a", { href: url, className: "".concat(style$
|
|
2110
|
+
var menuActive = isActive ? style$I['isActive'] : '';
|
|
2111
|
+
return (React.createElement(React.Fragment, null, type === 'link' ? (React.createElement("a", { href: url, className: "".concat(style$I['magneto-ui-menu-icon'], " ").concat(menuActive, " ").concat(className), title: text, rel: rel, target: target },
|
|
1744
2112
|
icon && React.createElement(IconItem, __assign({ size: iconSize, hover: false, icon: icon }, iconProps)),
|
|
1745
|
-
React.createElement("p", { className: style$
|
|
2113
|
+
React.createElement("p", { className: style$I['magneto-ui-menu-icon__menu-text'] }, text))) : (React.createElement("button", { onClick: onClick, className: "".concat(style$I['magneto-ui-menu-icon'], " ").concat(menuActive, " ").concat(className), title: text },
|
|
1746
2114
|
icon && React.createElement(IconItem, __assign({ size: iconSize, hover: false, icon: icon }, iconProps)),
|
|
1747
|
-
React.createElement("p", { className: style$
|
|
2115
|
+
React.createElement("p", { className: style$I['magneto-ui-menu-icon__menu-text'] }, text)))));
|
|
1748
2116
|
};
|
|
1749
2117
|
var MenuIcon = Component$1t;
|
|
1750
2118
|
|
|
1751
|
-
var style$
|
|
2119
|
+
var style$H = {"mangeto-ui-list-menu-icons":"mg_list_menu_icons_mangeto-ui-list-menu-icons_u92cd"};
|
|
1752
2120
|
|
|
1753
2121
|
var Component$1s = function (_a) {
|
|
1754
2122
|
var urlParam = _a.urlParam, menuItems = _a.menuItems, menuItems1440 = _a.menuItems1440, logout = _a.logout, settings = _a.settings, haveGif = _a.haveGif;
|
|
1755
2123
|
var logoutText = logout.logoutText, onClick = logout.onClick;
|
|
1756
2124
|
var settingsText = settings.settingsText, onClickSettings = settings.onClick;
|
|
1757
2125
|
var userMenu = useMediaQuery(menuItems1440 && !haveGif ? menuItems1440 : menuItems, { xl: menuItems });
|
|
1758
|
-
return (React.createElement("div", { className: style$
|
|
2126
|
+
return (React.createElement("div", { className: style$H['mangeto-ui-list-menu-icons'] },
|
|
1759
2127
|
React.createElement("div", null, userMenu === null || userMenu === void 0 ? void 0 :
|
|
1760
2128
|
userMenu.map(function (_a, i) {
|
|
1761
2129
|
var _b = _a.title, title = _b === void 0 ? '' : _b, items = _a.items;
|
|
@@ -1782,23 +2150,23 @@ var Component$1r = function (_a) {
|
|
|
1782
2150
|
};
|
|
1783
2151
|
var ListMenuItems = Component$1r;
|
|
1784
2152
|
|
|
1785
|
-
var style$
|
|
2153
|
+
var style$G = {"magneto-ui-list-menu":"mg_list_menu_text_magneto-ui-list-menu_1m4l3","magneto-ui-list-menu__title":"mg_list_menu_text_magneto-ui-list-menu_title_1m4l3","magneto-ui-list-menu__link":"mg_list_menu_text_magneto-ui-list-menu_link_1m4l3","magneto-ui-list-menu__create-account":"mg_list_menu_text_magneto-ui-list-menu_create-account_1m4l3","magneto-ui-list-menu__create-account--btn":"mg_list_menu_text_magneto-ui-list-menu_create-account--btn_1m4l3"};
|
|
1786
2154
|
|
|
1787
2155
|
var ListMenuText = function (_a) {
|
|
1788
2156
|
var title = _a.title, links = _a.links, createAccount = _a.createAccount, isLoading = _a.isLoading;
|
|
1789
|
-
return (React.createElement("div", { className: "".concat(style$
|
|
1790
|
-
React.createElement("p", { className: "".concat(style$
|
|
2157
|
+
return (React.createElement("div", { className: "".concat(style$G["".concat(classMUI, "-list-menu")]) },
|
|
2158
|
+
React.createElement("p", { className: "".concat(style$G["".concat(classMUI, "-list-menu__title")]) }, title),
|
|
1791
2159
|
links.map(function (_a, i) {
|
|
1792
2160
|
var tag = _a.tag, href = _a.href, isCreateAccount = _a.isCreateAccount, openNewTab = _a.openNewTab;
|
|
1793
2161
|
return isCreateAccount
|
|
1794
|
-
? tag && (React.createElement("div", { key: i, className: "".concat(style$
|
|
1795
|
-
React.createElement("button", { title: tag, className: "".concat(style$
|
|
2162
|
+
? tag && (React.createElement("div", { key: i, className: "".concat(style$G["".concat(classMUI, "-list-menu__create-account")]) },
|
|
2163
|
+
React.createElement("button", { title: tag, className: "".concat(style$G["".concat(classMUI, "-list-menu__create-account--btn")]), onClick: createAccount }, tag),
|
|
1796
2164
|
isLoading && React.createElement(Loading, __assign({}, LoadingProps))))
|
|
1797
|
-
: tag && (React.createElement("a", { className: "".concat(style$
|
|
2165
|
+
: tag && (React.createElement("a", { className: "".concat(style$G["".concat(classMUI, "-list-menu__link")]), title: tag, key: i, href: href, target: openNewTab ? '_blank' : '_self', rel: "noreferrer" }, tag));
|
|
1798
2166
|
})));
|
|
1799
2167
|
};
|
|
1800
2168
|
|
|
1801
|
-
var style$
|
|
2169
|
+
var style$F = {"magneto-ui-menu-filter":"mg_list_sort_menu_magneto-ui-menu-filter_ko7wt"};
|
|
1802
2170
|
|
|
1803
2171
|
var ListSortMenu = function (_a) {
|
|
1804
2172
|
var orderFields = _a.orderFields, setFilter = _a.setFilter, textOrderFilter = _a.textOrderFilter, setShowPopover = _a.setShowPopover;
|
|
@@ -1806,57 +2174,26 @@ var ListSortMenu = function (_a) {
|
|
|
1806
2174
|
setFilter({ key: key });
|
|
1807
2175
|
setShowPopover(false);
|
|
1808
2176
|
}, [setFilter, setShowPopover]);
|
|
1809
|
-
return (React.createElement("div", { className: style$
|
|
2177
|
+
return (React.createElement("div", { className: style$F['magneto-ui-menu-filter'] }, orderFields.map(function (_a, i) {
|
|
1810
2178
|
var field = _a.field, label = _a.label, iconUrl = _a.iconUrl;
|
|
1811
2179
|
return (React.createElement(MenuIcon, { key: "".concat(field, "-").concat(i), text: label, icon: iconUrl, type: "button", onClick: function () { return handleClick(field); }, isActive: label === textOrderFilter }));
|
|
1812
2180
|
})));
|
|
1813
2181
|
};
|
|
1814
2182
|
|
|
1815
|
-
var style$
|
|
2183
|
+
var style$E = {"magneto-ui-magneto-resolution":"mg_magneto_resolution_magneto-ui-magneto-resolution_h0xmi","magneto-ui-magneto-resolution__img":"mg_magneto_resolution_magneto-ui-magneto-resolution_img_h0xmi","magneto-ui-magneto-resolution__text":"mg_magneto_resolution_magneto-ui-magneto-resolution_text_h0xmi","magneto-ui-magneto-resolution__text--link":"mg_magneto_resolution_magneto-ui-magneto-resolution_text--link_h0xmi"};
|
|
1816
2184
|
|
|
1817
2185
|
var MagnetoResolution = function (_a) {
|
|
1818
2186
|
var resolutionText = _a.resolutionText, resolutionHrefText = _a.resolutionHrefText, resolutionHref = _a.resolutionHref;
|
|
1819
|
-
return (React.createElement("div", { className: "".concat(style$
|
|
1820
|
-
React.createElement("img", { className: "".concat(style$
|
|
1821
|
-
React.createElement("p", { className: "".concat(style$
|
|
2187
|
+
return (React.createElement("div", { className: "".concat(style$E["".concat(classMUI, "-magneto-resolution")]) },
|
|
2188
|
+
React.createElement("img", { className: "".concat(style$E["".concat(classMUI, "-magneto-resolution__img")]), src: MinTrabajo, alt: "min-trabajo-img", loading: "lazy", width: "80px" }),
|
|
2189
|
+
React.createElement("p", { className: "".concat(style$E["".concat(classMUI, "-magneto-resolution__text")]) },
|
|
1822
2190
|
resolutionText,
|
|
1823
|
-
React.createElement("a", { className: "".concat(style$
|
|
1824
|
-
};
|
|
1825
|
-
|
|
1826
|
-
var styles$1q = {"magneto-ui-play-button":"mg_image_magneto-ui-play-button_7q9yc"};
|
|
1827
|
-
|
|
1828
|
-
var Image = function (_a) {
|
|
1829
|
-
var image = _a.image, alt = _a.alt, playIcon = _a.playIcon, className = _a.className;
|
|
1830
|
-
return (React.createElement(React.Fragment, null,
|
|
1831
|
-
React.createElement("img", { src: image, alt: alt, loading: "lazy", className: className }),
|
|
1832
|
-
playIcon && React.createElement("div", { className: styles$1q['magneto-ui-play-button'] }, playIcon)));
|
|
1833
|
-
};
|
|
1834
|
-
|
|
1835
|
-
var styles$1p = {"magneto-ui-mega-menu-card":"mg_mega_menu_card_magneto-ui-mega-menu-card_198ar","magneto-ui-mega-menu-card__title":"mg_mega_menu_card_magneto-ui-mega-menu-card_title_198ar","magneto-ui-mega-menu-card__icon":"mg_mega_menu_card_magneto-ui-mega-menu-card_icon_198ar","magneto-ui-mega-menu-card__logo":"mg_mega_menu_card_magneto-ui-mega-menu-card_logo_198ar","magneto-ui-mega-menu-card__quotas":"mg_mega_menu_card_magneto-ui-mega-menu-card_quotas_198ar","magneto-ui-mega-menu-card__arrow":"mg_mega_menu_card_magneto-ui-mega-menu-card_arrow_198ar"};
|
|
1836
|
-
|
|
1837
|
-
var MegaMenuCard = function (_a) {
|
|
1838
|
-
var title = _a.title, logo = _a.logo, icon = _a.icon, quotas = _a.quotas, onClick = _a.onClick, className = _a.className, showRigthArrow = _a.showRigthArrow, href = _a.href, target = _a.target;
|
|
1839
|
-
var handleClick = useCallback(function (event) {
|
|
1840
|
-
if (onClick != null) {
|
|
1841
|
-
event.preventDefault();
|
|
1842
|
-
onClick();
|
|
1843
|
-
}
|
|
1844
|
-
}, [onClick]);
|
|
1845
|
-
return (React.createElement("a", { className: "".concat(styles$1p["magneto-ui-mega-menu-card"], " ").concat(className ? className : ''), onClick: handleClick, href: href, target: target },
|
|
1846
|
-
icon && (React.createElement("div", { className: styles$1p["magneto-ui-mega-menu-card__icon"] },
|
|
1847
|
-
React.createElement(IconItem, { icon: icon, size: 16 }))),
|
|
1848
|
-
logo && (React.createElement("div", { className: styles$1p["magneto-ui-mega-menu-card__logo"] },
|
|
1849
|
-
React.createElement(Image, { image: logo, alt: 'logo', className: styles$1p["magneto-ui-mega-menu-card__logo"] }))),
|
|
1850
|
-
React.createElement("div", { className: styles$1p["magneto-ui-mega-menu-card__content"] },
|
|
1851
|
-
React.createElement("div", { className: styles$1p["magneto-ui-mega-menu-card__title"] }, title),
|
|
1852
|
-
React.createElement("div", { className: styles$1p["magneto-ui-mega-menu-card__quotas"] }, "".concat(quotas, " cupos"))),
|
|
1853
|
-
showRigthArrow && (React.createElement("div", { className: styles$1p["magneto-ui-mega-menu-card__arrow"] },
|
|
1854
|
-
React.createElement(IconItem, { icon: ArrowRight2, size: 16 })))));
|
|
2191
|
+
React.createElement("a", { className: "".concat(style$E["".concat(classMUI, "-magneto-resolution__text--link")]), href: resolutionHref }, resolutionHrefText))));
|
|
1855
2192
|
};
|
|
1856
2193
|
|
|
1857
|
-
var style$
|
|
2194
|
+
var style$D = {"mega-menu-cards":"mg_mega_menu_cards_mega-menu-cards_11ld6","mega-menu-cards__title":"mg_mega_menu_cards_mega-menu-cards_title_11ld6","mega-menu-cards__action":"mg_mega_menu_cards_mega-menu-cards_action_11ld6","mega-menu-cards__action--grey":"mg_mega_menu_cards_mega-menu-cards_action--grey_11ld6"};
|
|
1858
2195
|
|
|
1859
|
-
var styles$
|
|
2196
|
+
var styles$1n = {"button-link":"mg_button_link_button-link_1iyy1","button-link__text":"mg_button_link_button-link_text_1iyy1"};
|
|
1860
2197
|
|
|
1861
2198
|
var Component$1q = function (_a) {
|
|
1862
2199
|
var buttonText = _a.buttonText, onClick = _a.onClick, suffixIcon = _a.suffixIcon, prefixIcon = _a.prefixIcon, className = _a.className, _b = _a.iconSize, iconSize = _b === void 0 ? 20 : _b, href = _a.href, rel = _a.rel, target = _a.target;
|
|
@@ -1866,10 +2203,10 @@ var Component$1q = function (_a) {
|
|
|
1866
2203
|
onClick();
|
|
1867
2204
|
}
|
|
1868
2205
|
}, [onClick]);
|
|
1869
|
-
return (React.createElement("a", { className: "".concat(className, " ").concat(styles$
|
|
1870
|
-
suffixIcon && (React.createElement(IconItem, { size: iconSize, icon: suffixIcon, hover: true, className: styles$
|
|
1871
|
-
buttonText && React.createElement("p", { className: styles$
|
|
1872
|
-
prefixIcon && (React.createElement(IconItem, { size: iconSize, icon: prefixIcon, hover: true, className: styles$
|
|
2206
|
+
return (React.createElement("a", { className: "".concat(className, " ").concat(styles$1n['button-link'], " "), type: "button", onClick: handleClick, href: href, rel: rel, target: target },
|
|
2207
|
+
suffixIcon && (React.createElement(IconItem, { size: iconSize, icon: suffixIcon, hover: true, className: styles$1n['button-link__icon'] })),
|
|
2208
|
+
buttonText && React.createElement("p", { className: styles$1n['button-link__text'] }, buttonText),
|
|
2209
|
+
prefixIcon && (React.createElement(IconItem, { size: iconSize, icon: prefixIcon, hover: true, className: styles$1n['button-link__icon'] }))));
|
|
1873
2210
|
};
|
|
1874
2211
|
/**
|
|
1875
2212
|
* UI Atom Component of Save Button
|
|
@@ -1879,16 +2216,16 @@ var ButtonLink = Component$1q;
|
|
|
1879
2216
|
var MegaMenuCards = function (_a) {
|
|
1880
2217
|
var jobs = _a.jobs, action = _a.action, title = _a.title, actionTitle = _a.actionTitle, className = _a.className;
|
|
1881
2218
|
return (React.createElement("nav", { className: className },
|
|
1882
|
-
title && (React.createElement("div", { className: "".concat(style$
|
|
2219
|
+
title && (React.createElement("div", { className: "".concat(style$D["mega-menu-cards__title"]) },
|
|
1883
2220
|
React.createElement("h4", null, title),
|
|
1884
|
-
actionTitle && (React.createElement(SearchItem, { url: actionTitle.url, tag: actionTitle.label, className: "".concat(style$
|
|
1885
|
-
React.createElement("ul", { className: "".concat(style$
|
|
2221
|
+
actionTitle && (React.createElement(SearchItem, { url: actionTitle.url, tag: actionTitle.label, className: "".concat(style$D["mega-menu-cards__action--grey"]) })))),
|
|
2222
|
+
React.createElement("ul", { className: "".concat(style$D["mega-menu-cards"]) }, jobs &&
|
|
1886
2223
|
jobs.slice(0, 39).map(function (job, key) { return (React.createElement("li", { key: key },
|
|
1887
2224
|
React.createElement(MegaMenuCard, __assign({}, job)))); })),
|
|
1888
|
-
action && (React.createElement(ButtonLink, { buttonText: action.label, href: action.url, target: '_blank', prefixIcon: ArrowRightWhite, className: "".concat(style$
|
|
2225
|
+
action && (React.createElement(ButtonLink, { buttonText: action.label, href: action.url, target: '_blank', prefixIcon: ArrowRightWhite, className: "".concat(style$D["mega-menu-cards__action"]) }))));
|
|
1889
2226
|
};
|
|
1890
2227
|
|
|
1891
|
-
var style$
|
|
2228
|
+
var style$C = {"mega-menu-jobs-tabs":"mg_mega_menu_jobs_tabs_mega-menu-jobs-tabs_8u7bc","mega-menu-jobs-tabs__tab":"mg_mega_menu_jobs_tabs_mega-menu-jobs-tabs_tab_8u7bc","mega-menu-jobs-tabs__container":"mg_mega_menu_jobs_tabs_mega-menu-jobs-tabs_container_8u7bc","mega-menu-jobs-tabs__content":"mg_mega_menu_jobs_tabs_mega-menu-jobs-tabs_content_8u7bc","selected-tab":"mg_mega_menu_jobs_tabs_selected-tab_8u7bc"};
|
|
1892
2229
|
|
|
1893
2230
|
var initialContext = {
|
|
1894
2231
|
socialHeaderProps: {
|
|
@@ -1928,23 +2265,23 @@ var MegaMenuJobsTabs = function () {
|
|
|
1928
2265
|
}; }, [onChangeTab]);
|
|
1929
2266
|
var isSelectedTab = useCallback(function (index) { return selectedTab == index; }, [selectedTab]);
|
|
1930
2267
|
var content = useMemo(function () { return tabs[selectedTab]; }, [tabs, selectedTab]).content;
|
|
1931
|
-
return (React.createElement("div", { className: "".concat(style$
|
|
2268
|
+
return (React.createElement("div", { className: "".concat(style$C["mega-menu-jobs-tabs__container"]) },
|
|
1932
2269
|
React.createElement("nav", null,
|
|
1933
|
-
React.createElement("ul", { className: "".concat(style$
|
|
2270
|
+
React.createElement("ul", { className: "".concat(style$C["mega-menu-jobs-tabs"]) },
|
|
1934
2271
|
tabs &&
|
|
1935
2272
|
tabs.map(function (_a, index) {
|
|
1936
2273
|
var label = _a.label, url = _a.url;
|
|
1937
2274
|
return (React.createElement("li", { key: index },
|
|
1938
|
-
React.createElement(ButtonLink, { buttonText: label, href: url, onClick: onClickTab(index), suffixIcon: megaMenuJobsIcons[index], className: "".concat(style$
|
|
2275
|
+
React.createElement(ButtonLink, { buttonText: label, href: url, onClick: onClickTab(index), suffixIcon: megaMenuJobsIcons[index], className: "".concat(style$C["mega-menu-jobs-tabs__tab"], " ").concat(isSelectedTab(index) ? style$C["selected-tab"] : ''), target: '_blank', iconSize: 16 })));
|
|
1939
2276
|
}),
|
|
1940
2277
|
React.createElement(Divider, { direction: 'VERTICAL' }),
|
|
1941
2278
|
React.createElement("li", null,
|
|
1942
2279
|
React.createElement(SearchItem, { tag: 'Todos los empleos', url: 'https://www.magneto365.com/co/empleos' })))),
|
|
1943
2280
|
React.createElement(Divider, null),
|
|
1944
|
-
React.createElement("div", { className: "".concat(style$
|
|
2281
|
+
React.createElement("div", { className: "".concat(style$C["mega-menu-jobs-tabs__content"]) }, content)));
|
|
1945
2282
|
};
|
|
1946
2283
|
|
|
1947
|
-
var styles$
|
|
2284
|
+
var styles$1m = {"magneto-ui-mega-menu-popover__dropdown":"mg_mega_menu_popover_magneto-ui-mega-menu-popover_dropdown_123jk","magneto-ui-mega-menu-popover__dropdown--open":"mg_mega_menu_popover_magneto-ui-mega-menu-popover_dropdown--open_123jk","magneto-ui-mega-menu-popover__action":"mg_mega_menu_popover_magneto-ui-mega-menu-popover_action_123jk","magneto-ui-mega-menu-popover__action--text":"mg_mega_menu_popover_magneto-ui-mega-menu-popover_action--text_123jk","magneto-ui-mega-menu-popover__action--icon":"mg_mega_menu_popover_magneto-ui-mega-menu-popover_action--icon_123jk","magneto-ui-mega-menu-popover__action--icon-reverse":"mg_mega_menu_popover_magneto-ui-mega-menu-popover_action--icon-reverse_123jk","magneto-ui-mega-menu-popover__shadow":"mg_mega_menu_popover_magneto-ui-mega-menu-popover_shadow_123jk","magneto-ui-mega-menu-popover__content":"mg_mega_menu_popover_magneto-ui-mega-menu-popover_content_123jk"};
|
|
1948
2285
|
|
|
1949
2286
|
var popoverClassName = 'magneto-ui-mega-menu-popover';
|
|
1950
2287
|
var MegaMenuPopover = function (_a) {
|
|
@@ -1963,27 +2300,27 @@ var MegaMenuPopover = function (_a) {
|
|
|
1963
2300
|
body.style.overflowY = showContent ? 'hidden' : 'auto';
|
|
1964
2301
|
}, [showContent]);
|
|
1965
2302
|
return (React.createElement(React.Fragment, null,
|
|
1966
|
-
jobAction && (React.createElement("button", { className: "".concat(styles$
|
|
1967
|
-
React.createElement("p", { className: "".concat(styles$
|
|
1968
|
-
React.createElement(IconItem, { className: "".concat(styles$
|
|
1969
|
-
React.createElement("div", { className: "".concat(styles$
|
|
1970
|
-
React.createElement("div", { className: styles$
|
|
1971
|
-
React.createElement("div", { className: styles$
|
|
2303
|
+
jobAction && (React.createElement("button", { className: "".concat(styles$1m["".concat(popoverClassName, "__action")]), onClick: handleShowContent(!showContent) },
|
|
2304
|
+
React.createElement("p", { className: "".concat(styles$1m["".concat(popoverClassName, "__action--text")]) }, jobAction.label),
|
|
2305
|
+
React.createElement(IconItem, { className: "".concat(styles$1m["".concat(popoverClassName, "__action--icon")], " ").concat(showContent ? styles$1m["".concat(popoverClassName, "__action--icon-reverse")] : ''), icon: ArrowDown2, alt: "arrow-icon", size: 16 }))),
|
|
2306
|
+
React.createElement("div", { className: "".concat(styles$1m["".concat(popoverClassName, "__dropdown")], " ").concat(showContent ? styles$1m["".concat(popoverClassName, "__dropdown--open")] : '') },
|
|
2307
|
+
React.createElement("div", { className: styles$1m["".concat(popoverClassName, "__shadow")], onClick: handleShowContent(false) }),
|
|
2308
|
+
React.createElement("div", { className: styles$1m["".concat(popoverClassName, "__content")], onClick: function (event) {
|
|
1972
2309
|
event.stopPropagation();
|
|
1973
2310
|
} }, children))));
|
|
1974
2311
|
};
|
|
1975
2312
|
|
|
1976
|
-
var styles$
|
|
2313
|
+
var styles$1l = {"magneto-ui-menu-search":"mg_menu_search_magneto-ui-menu-search_1nz6y","magneto-ui-menu-search_container":"mg_menu_search_magneto-ui-menu-search_container_1nz6y","magneto-ui-menu-search_content":"mg_menu_search_magneto-ui-menu-search_content_1nz6y","open":"mg_menu_search_open_1nz6y"};
|
|
1977
2314
|
|
|
1978
2315
|
var MenuSearch = function (_a) {
|
|
1979
2316
|
var children = _a.children, content = _a.content, show = _a.show, handleOnBlur = _a.handleOnBlur;
|
|
1980
2317
|
var onBlur = useCallback(function () {
|
|
1981
2318
|
handleOnBlur && handleOnBlur();
|
|
1982
2319
|
}, [handleOnBlur]);
|
|
1983
|
-
return (React.createElement("div", { className: styles$
|
|
1984
|
-
React.createElement("div", { className: styles$
|
|
2320
|
+
return (React.createElement("div", { className: styles$1l['magneto-ui-menu-search'], onBlur: onBlur },
|
|
2321
|
+
React.createElement("div", { className: styles$1l['magneto-ui-menu-search_container'] },
|
|
1985
2322
|
children,
|
|
1986
|
-
React.createElement("div", { className: "".concat(styles$
|
|
2323
|
+
React.createElement("div", { className: "".concat(styles$1l['magneto-ui-menu-search_content'], " ").concat(show && styles$1l.open) }, content))));
|
|
1987
2324
|
};
|
|
1988
2325
|
|
|
1989
2326
|
var initialState = {
|
|
@@ -1998,7 +2335,7 @@ var iconByType = {
|
|
|
1998
2335
|
error: Error
|
|
1999
2336
|
};
|
|
2000
2337
|
|
|
2001
|
-
var styles$
|
|
2338
|
+
var styles$1k = {"container":"mg_message_container_ccx0d","show":"mg_message_show_ccx0d","fadeIn":"mg_message_fadeIn_ccx0d","fadeOut":"mg_message_fadeOut_ccx0d","icon":"mg_message_icon_ccx0d"};
|
|
2002
2339
|
|
|
2003
2340
|
var Message = function (props) {
|
|
2004
2341
|
var _a = useState(__assign(__assign({}, initialState), props)), _b = _a[0], text = _b.text, _c = _b.type, type = _c === void 0 ? 'info' : _c, _d = _b.duration, duration = _d === void 0 ? 3000 : _d, setContent = _a[1];
|
|
@@ -2013,8 +2350,8 @@ var Message = function (props) {
|
|
|
2013
2350
|
messageRef.current.style.setProperty('--default-duration', exitDuration);
|
|
2014
2351
|
}, [duration]);
|
|
2015
2352
|
return (React.createElement(Fragment, null, text &&
|
|
2016
|
-
ReactDOM.createPortal(React.createElement("div", { ref: messageRef, className: "".concat(styles$
|
|
2017
|
-
React.createElement("img", { src: iconByType[type], className: styles$
|
|
2353
|
+
ReactDOM.createPortal(React.createElement("div", { ref: messageRef, className: "".concat(styles$1k.container, " ").concat(styles$1k.show) },
|
|
2354
|
+
React.createElement("img", { src: iconByType[type], className: styles$1k.icon, alt: type }),
|
|
2018
2355
|
text), document.body)));
|
|
2019
2356
|
};
|
|
2020
2357
|
var message = function (props) {
|
|
@@ -2032,11 +2369,11 @@ var message = function (props) {
|
|
|
2032
2369
|
setTimeout(function () { return document.body.removeChild(container); }, duration);
|
|
2033
2370
|
};
|
|
2034
2371
|
|
|
2035
|
-
var styles$
|
|
2372
|
+
var styles$1j = {"magneto-ui-mobile-job-details-header":"mg_mobile_job_detail_header_magneto-ui-mobile-job-details-header_1fct0"};
|
|
2036
2373
|
|
|
2037
2374
|
var Component$1p = function (_a) {
|
|
2038
2375
|
var returnText = _a.returnText, onClick = _a.onClick;
|
|
2039
|
-
return (React.createElement("div", { className: styles$
|
|
2376
|
+
return (React.createElement("div", { className: styles$1j['magneto-ui-mobile-job-details-header'] },
|
|
2040
2377
|
React.createElement("button", { onClick: onClick },
|
|
2041
2378
|
React.createElement(IconItem, { alt: "arrow-left", icon: ArrowLeft2 })),
|
|
2042
2379
|
React.createElement("p", null, returnText)));
|
|
@@ -2046,7 +2383,7 @@ var Component$1p = function (_a) {
|
|
|
2046
2383
|
*/
|
|
2047
2384
|
var MobileJobDetailsHeader = Component$1p;
|
|
2048
2385
|
|
|
2049
|
-
var styles$
|
|
2386
|
+
var styles$1i = {"MobileSearchbarComponent":"mg_mobile_searchbar_MobileSearchbarComponent_41dye","magneto-ui-search-button":"mg_mobile_searchbar_magneto-ui-search-button_41dye","magneto-ui-remove-button":"mg_mobile_searchbar_magneto-ui-remove-button_41dye","search-badge":"mg_mobile_searchbar_search-badge_41dye"};
|
|
2050
2387
|
|
|
2051
2388
|
var Component$1o = function (_a) {
|
|
2052
2389
|
var termValue = _a.termValue, onSearch = _a.onSearch, onClick = _a.onClick, focusSearchInput = _a.focusSearchInput, showMobileSearchbar = _a.showMobileSearchbar;
|
|
@@ -2070,20 +2407,20 @@ var Component$1o = function (_a) {
|
|
|
2070
2407
|
(_a = searchInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
2071
2408
|
}
|
|
2072
2409
|
}, [focusSearchInput]);
|
|
2073
|
-
return (React.createElement("div", { className: styles$
|
|
2410
|
+
return (React.createElement("div", { className: styles$1i.MobileSearchbarComponent, "data-show-mobile-searchbar": showMobileSearchbar },
|
|
2074
2411
|
React.createElement("form", { onSubmit: handleSubmit },
|
|
2075
|
-
searchValue && React.createElement("div", { className: styles$
|
|
2076
|
-
React.createElement(MainButton, __assign({ className: styles$
|
|
2412
|
+
searchValue && React.createElement("div", { className: styles$1i['search-badge'] }),
|
|
2413
|
+
React.createElement(MainButton, __assign({ className: styles$1i['magneto-ui-search-button'] }, searchMobileProps)),
|
|
2077
2414
|
React.createElement("label", { htmlFor: "search" }),
|
|
2078
2415
|
React.createElement("input", { type: "text", name: "search", value: searchValue, onChange: function (e) { return setSearchValue(e.target.value); }, ref: searchInputRef }),
|
|
2079
|
-
React.createElement(MainButton, __assign({ className: styles$
|
|
2416
|
+
React.createElement(MainButton, __assign({ className: styles$1i['magneto-ui-remove-button'], onClick: handleClearSearch }, closeSearchMobileProps)))));
|
|
2080
2417
|
};
|
|
2081
2418
|
/**
|
|
2082
2419
|
* Molecule UI component for MobileSearchbar
|
|
2083
2420
|
*/
|
|
2084
2421
|
var MobileSearchbar = Component$1o;
|
|
2085
2422
|
|
|
2086
|
-
var styles$
|
|
2423
|
+
var styles$1h = {"magneto-ui-modal":"mg_modal_magneto-ui-modal_1vun3","magneto-ui-modal__close-btn":"mg_modal_magneto-ui-modal_close-btn_1vun3","magneto-ui-modal__title":"mg_modal_magneto-ui-modal_title_1vun3","magneto-ui-modal__description":"mg_modal_magneto-ui-modal_description_1vun3","magneto-ui-modal__children-container":"mg_modal_magneto-ui-modal_children-container_1vun3","magneto-ui-background-modal":"mg_modal_magneto-ui-background-modal_1vun3","fadeIn":"mg_modal_fadeIn_1vun3"};
|
|
2087
2424
|
|
|
2088
2425
|
var Modal = function (_a) {
|
|
2089
2426
|
var onClose = _a.onClose, isOpen = _a.isOpen, children = _a.children, title = _a.title, description = _a.description, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.blockBackgroundClose, blockBackgroundClose = _c === void 0 ? false : _c;
|
|
@@ -2096,40 +2433,40 @@ var Modal = function (_a) {
|
|
|
2096
2433
|
if (!isOpen)
|
|
2097
2434
|
return null;
|
|
2098
2435
|
return (React.createElement(Fragment, null,
|
|
2099
|
-
React.createElement("div", { className: "".concat(styles$
|
|
2100
|
-
title ? React.createElement("h2", { className: "".concat(styles$
|
|
2101
|
-
description ? React.createElement("p", { className: "".concat(styles$
|
|
2436
|
+
React.createElement("div", { className: "".concat(styles$1h["".concat(classMUI, "-modal")], " ").concat(className) },
|
|
2437
|
+
title ? React.createElement("h2", { className: "".concat(styles$1h["".concat(classMUI, "-modal__title")]) }, title) : null,
|
|
2438
|
+
description ? React.createElement("p", { className: "".concat(styles$1h["".concat(classMUI, "-modal__description")]) }, description) : null,
|
|
2102
2439
|
children,
|
|
2103
|
-
React.createElement("button", { className: "".concat(styles$
|
|
2440
|
+
React.createElement("button", { className: "".concat(styles$1h["".concat(classMUI, "-modal__close-btn")]), onClick: onClose, type: "button" },
|
|
2104
2441
|
React.createElement("img", { src: Close, alt: "close icon" }))),
|
|
2105
|
-
React.createElement("span", { className: "".concat(styles$
|
|
2442
|
+
React.createElement("span", { className: "".concat(styles$1h["".concat(classMUI, "-background-modal")]), onClick: blockBackgroundClose ? function () { return null; } : onClose })));
|
|
2106
2443
|
};
|
|
2107
2444
|
var Title = function (_a) {
|
|
2108
2445
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
|
2109
|
-
return (React.createElement("h2", __assign({ className: "".concat(styles$
|
|
2446
|
+
return (React.createElement("h2", __assign({ className: "".concat(styles$1h["".concat(classMUI, "-modal__title")], " ").concat(className) }, props), children));
|
|
2110
2447
|
};
|
|
2111
2448
|
var Description = function (_a) {
|
|
2112
2449
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
|
2113
|
-
return (React.createElement("p", __assign({ className: "".concat(styles$
|
|
2450
|
+
return (React.createElement("p", __assign({ className: "".concat(styles$1h["".concat(classMUI, "-modal__description")], " ").concat(className) }, props), children));
|
|
2114
2451
|
};
|
|
2115
2452
|
var Modal$1 = Object.assign(Modal, { Title: Title, Description: Description });
|
|
2116
2453
|
|
|
2117
|
-
var styles$
|
|
2454
|
+
var styles$1g = {"magneto-ui-btn-pagination_anchor":"mg_btn_pagination_magneto-ui-btn-pagination_anchor_1y0uc","magneto-ui-btn-pagination_with__icon":"mg_btn_pagination_magneto-ui-btn-pagination_with_icon_1y0uc","magneto-ui-btn-pagination_btn":"mg_btn_pagination_magneto-ui-btn-pagination_btn_1y0uc","magneto-ui-btn-pagination_active":"mg_btn_pagination_magneto-ui-btn-pagination_active_1y0uc","magneto-ui-btn-pagination_disabled":"mg_btn_pagination_magneto-ui-btn-pagination_disabled_1y0uc","magneto-ui-btn-pagination_spinner":"mg_btn_pagination_magneto-ui-btn-pagination_spinner_1y0uc","spin":"mg_btn_pagination_spin_1y0uc"};
|
|
2118
2455
|
|
|
2119
2456
|
var BtnPagination = function (_a) {
|
|
2120
2457
|
var loading = _a.loading, value = _a.value, current = _a.current, text = _a.text, icon = _a.icon, onClick = _a.onClick, dynamicPaginationUrl = _a.dynamicPaginationUrl;
|
|
2121
2458
|
var displayContent = useMemo(function () {
|
|
2122
2459
|
if (loading && value && current === value)
|
|
2123
|
-
return React.createElement(IconItem, { icon: SpinnerWhite, className: styles$
|
|
2460
|
+
return React.createElement(IconItem, { icon: SpinnerWhite, className: styles$1g['magneto-ui-btn-pagination_spinner'] });
|
|
2124
2461
|
return value;
|
|
2125
2462
|
}, [loading, current, value]);
|
|
2126
2463
|
var pageQueryParam = 'paginator[page]=';
|
|
2127
2464
|
var displayIcon = useMemo(function () { return (icon ? React.createElement(IconItem, { icon: icon }) : React.createElement(Fragment, null)); }, [icon]);
|
|
2128
2465
|
var title = useMemo(function () { return (text ? text : "".concat(value)); }, [text, value]);
|
|
2129
|
-
return (React.createElement(Fragment, null, dynamicPaginationUrl ? (React.createElement("a", { className: styles$
|
|
2130
|
-
React.createElement("button", { className: "\n ".concat(loading && styles$
|
|
2466
|
+
return (React.createElement(Fragment, null, dynamicPaginationUrl ? (React.createElement("a", { className: styles$1g['magneto-ui-btn-pagination_anchor'], href: "".concat(dynamicPaginationUrl, "?").concat(pageQueryParam).concat(value), onClick: function (e) { return e.preventDefault(); } },
|
|
2467
|
+
React.createElement("button", { className: "\n ".concat(loading && styles$1g['magneto-ui-btn-pagination_disabled'], " \n ").concat(value && current === value && styles$1g['magneto-ui-btn-pagination_active'], " \n ").concat(text && styles$1g['magneto-ui-btn-pagination_with__icon'], "\n ").concat(styles$1g['magneto-ui-btn-pagination_btn'], "\n "), title: title, disabled: loading, onClick: onClick },
|
|
2131
2468
|
displayContent,
|
|
2132
|
-
displayIcon))) : (React.createElement("button", { className: "\n ".concat(loading && styles$
|
|
2469
|
+
displayIcon))) : (React.createElement("button", { className: "\n ".concat(loading && styles$1g['magneto-ui-btn-pagination_disabled'], " \n ").concat(value && current === value && styles$1g['magneto-ui-btn-pagination_active'], " \n ").concat(text && styles$1g['magneto-ui-btn-pagination_with__icon'], "\n ").concat(styles$1g['magneto-ui-btn-pagination_btn'], "\n "), title: title, disabled: loading, onClick: onClick },
|
|
2133
2470
|
displayContent,
|
|
2134
2471
|
displayIcon))));
|
|
2135
2472
|
};
|
|
@@ -2180,7 +2517,7 @@ var createPagination = function (_a) {
|
|
|
2180
2517
|
};
|
|
2181
2518
|
};
|
|
2182
2519
|
|
|
2183
|
-
var styles$
|
|
2520
|
+
var styles$1f = {"magneto-ui-pagination":"mg_pagination_magneto-ui-pagination_n897h","magneto-ui-pagination_ellipsis":"mg_pagination_magneto-ui-pagination_ellipsis_n897h"};
|
|
2184
2521
|
|
|
2185
2522
|
var Pagination = function (_a) {
|
|
2186
2523
|
var total = _a.total, current = _a.current, pageSize = _a.pageSize, loading = _a.loading, onChange = _a.onChange, prevTitle = _a.prevTitle, nextTitle = _a.nextTitle, _b = _a.numberOfButtons, numberOfButtons = _b === void 0 ? 3 : _b, dynamicUrl = _a.dynamicUrl;
|
|
@@ -2199,25 +2536,25 @@ var Pagination = function (_a) {
|
|
|
2199
2536
|
}, [total, current, pageSize, numberOfButtons]), buttons = _c.buttons, first = _c.first, last = _c.last;
|
|
2200
2537
|
if (total <= pageSize)
|
|
2201
2538
|
return React.createElement(Fragment, null);
|
|
2202
|
-
return (React.createElement("div", { className: styles$
|
|
2539
|
+
return (React.createElement("div", { className: styles$1f['magneto-ui-pagination'] },
|
|
2203
2540
|
first !== current && (React.createElement(BtnPagination, { loading: loading, text: prevTitle, icon: ArrowLeft2, onClick: function () { return handleClick(current - 1); } })),
|
|
2204
2541
|
React.createElement("ul", null,
|
|
2205
2542
|
!buttons.includes(first) && (React.createElement("li", null,
|
|
2206
2543
|
React.createElement(BtnPagination, { loading: loading, value: first, current: current, onClick: function () { return handleClick(first); }, dynamicPaginationUrl: dynamicUrl }),
|
|
2207
|
-
React.createElement(IconItem, { icon: Ellipsis, className: styles$
|
|
2544
|
+
React.createElement(IconItem, { icon: Ellipsis, className: styles$1f['magneto-ui-pagination_ellipsis'] }))),
|
|
2208
2545
|
buttons.map(function (page, index) { return (React.createElement("li", { key: "".concat(page, "-").concat(index) },
|
|
2209
2546
|
React.createElement(BtnPagination, { loading: loading, value: page, current: current, onClick: function () { return handleClick(page); }, dynamicPaginationUrl: dynamicUrl }))); }),
|
|
2210
2547
|
!buttons.includes(last) && (React.createElement("li", null,
|
|
2211
|
-
React.createElement(IconItem, { icon: Ellipsis, className: styles$
|
|
2548
|
+
React.createElement(IconItem, { icon: Ellipsis, className: styles$1f['magneto-ui-pagination_ellipsis'] }),
|
|
2212
2549
|
React.createElement(BtnPagination, { loading: loading, value: last, current: current, onClick: function () { return handleClick(last); }, dynamicPaginationUrl: dynamicUrl })))),
|
|
2213
2550
|
last !== current && (React.createElement(BtnPagination, { loading: loading, text: nextTitle, icon: ArrowRight2, onClick: function () { return handleClick(current + 1); } }))));
|
|
2214
2551
|
};
|
|
2215
2552
|
|
|
2216
|
-
var style$
|
|
2553
|
+
var style$B = {"magneto-ui-rights-reserved":"mg_rights_reserved_text_magneto-ui-rights-reserved_id953","magneto-ui-rights-reserved__link":"mg_rights_reserved_text_magneto-ui-rights-reserved_link_id953"};
|
|
2217
2554
|
|
|
2218
2555
|
var RightsReservedText = function (_a) {
|
|
2219
2556
|
var magnetoRightsText = _a.magnetoRightsText;
|
|
2220
|
-
return (React.createElement("div", { className: "".concat(style$
|
|
2557
|
+
return (React.createElement("div", { className: "".concat(style$B["".concat(classMUI, "-rights-reserved")]) },
|
|
2221
2558
|
React.createElement("p", null, magnetoRightsText)));
|
|
2222
2559
|
};
|
|
2223
2560
|
|
|
@@ -2228,7 +2565,7 @@ var generateID = function () {
|
|
|
2228
2565
|
return uniqueID;
|
|
2229
2566
|
};
|
|
2230
2567
|
|
|
2231
|
-
var styles$
|
|
2568
|
+
var styles$1e = {"magneto-ui-score-level":"mg_score_level_magneto-ui-score-level_thedx","magneto-ui-score-level__summary":"mg_score_level_magneto-ui-score-level_summary_thedx","magneto-ui-score-level__delete-action":"mg_score_level_magneto-ui-score-level_delete-action_thedx"};
|
|
2232
2569
|
|
|
2233
2570
|
var Component$1n = function (_a) {
|
|
2234
2571
|
var name = _a.name, onChange = _a.onChange, removeSkill = _a.removeSkill, scoreValue = _a.scoreValue, levels = _a.levels, color = _a.color, id = _a.id;
|
|
@@ -2258,17 +2595,17 @@ var Component$1n = function (_a) {
|
|
|
2258
2595
|
}
|
|
2259
2596
|
return { backgroundColor: '#c4c4c4' };
|
|
2260
2597
|
}, [color, score, spanHover]);
|
|
2261
|
-
return (React.createElement("div", { className: styles$
|
|
2598
|
+
return (React.createElement("div", { className: styles$1e['magneto-ui-score-level'] },
|
|
2262
2599
|
React.createElement("p", null, name),
|
|
2263
|
-
React.createElement("div", { className: styles$
|
|
2600
|
+
React.createElement("div", { className: styles$1e['magneto-ui-score-level__summary'] },
|
|
2264
2601
|
React.createElement("div", null, levels.map(function (_, index) { return (React.createElement("span", { onMouseOver: function () { return setSpanHover(index + 1); }, onMouseLeave: function () { return setSpanHover(0); }, style: setDinamycColor(index + 1), key: generateID(), onClick: function () { return handleScoreChange(index + 1); } })); })),
|
|
2265
2602
|
React.createElement("p", null, labelScore)),
|
|
2266
|
-
React.createElement("button", { className: styles$
|
|
2603
|
+
React.createElement("button", { className: styles$1e['magneto-ui-score-level__delete-action'], onClick: function () { return removeSkill(name); }, type: "button" },
|
|
2267
2604
|
React.createElement("img", { src: Trash, alt: "remove-skill-icon" }))));
|
|
2268
2605
|
};
|
|
2269
2606
|
var ScoreLevel = Component$1n;
|
|
2270
2607
|
|
|
2271
|
-
var styles$
|
|
2608
|
+
var styles$1d = {"magneto-ui-score-level":"mg_score_level_static_magneto-ui-score-level_1o91a","magneto-ui-score-level__summary":"mg_score_level_static_magneto-ui-score-level_summary_1o91a"};
|
|
2272
2609
|
|
|
2273
2610
|
var Component$1m = function (_a) {
|
|
2274
2611
|
var name = _a.name, scoreValue = _a.scoreValue, levels = _a.levels, color = _a.color;
|
|
@@ -2285,15 +2622,15 @@ var Component$1m = function (_a) {
|
|
|
2285
2622
|
}
|
|
2286
2623
|
return { backgroundColor: '#c4c4c4' };
|
|
2287
2624
|
}, [color, scoreValue]);
|
|
2288
|
-
return (React.createElement("div", { className: styles$
|
|
2625
|
+
return (React.createElement("div", { className: styles$1d['magneto-ui-score-level'] },
|
|
2289
2626
|
React.createElement("p", null, name),
|
|
2290
|
-
React.createElement("div", { className: styles$
|
|
2627
|
+
React.createElement("div", { className: styles$1d['magneto-ui-score-level__summary'] },
|
|
2291
2628
|
React.createElement("div", null, levels.map(function (_, index) { return (React.createElement("span", { style: setDinamycColor(index + 1), key: generateID() })); })),
|
|
2292
2629
|
React.createElement("p", null, labelScore))));
|
|
2293
2630
|
};
|
|
2294
2631
|
var ScoreLevelStatic = Component$1m;
|
|
2295
2632
|
|
|
2296
|
-
var styles$
|
|
2633
|
+
var styles$1c = {"SearchbarComponent":"mg_searchbar_SearchbarComponent_19nle","SearchbarComponent__badge":"mg_searchbar_SearchbarComponent_badge_19nle","magneto-ui-searchbar-buttons":"mg_searchbar_magneto-ui-searchbar-buttons_19nle","magneto-ui-remove-button":"mg_searchbar_magneto-ui-remove-button_19nle"};
|
|
2297
2634
|
|
|
2298
2635
|
var Component$1l = function (_a) {
|
|
2299
2636
|
var placeholder = _a.placeholder, onSearch = _a.onSearch, searchButtonProps = _a.searchButtonProps, removeButtonProps = _a.removeButtonProps, termValue = _a.termValue;
|
|
@@ -2311,13 +2648,13 @@ var Component$1l = function (_a) {
|
|
|
2311
2648
|
setSearchValue('');
|
|
2312
2649
|
onSearch('');
|
|
2313
2650
|
};
|
|
2314
|
-
return (React.createElement("div", { className: styles$
|
|
2651
|
+
return (React.createElement("div", { className: styles$1c.SearchbarComponent },
|
|
2315
2652
|
React.createElement("form", { onSubmit: handleSubmit },
|
|
2316
2653
|
React.createElement("input", { type: "text", value: searchValue, onChange: function (e) { return setSearchValue(e.target.value); }, placeholder: placeholder }),
|
|
2317
|
-
searchValue && React.createElement("div", { className: styles$
|
|
2318
|
-
React.createElement("div", { className: styles$
|
|
2654
|
+
searchValue && React.createElement("div", { className: styles$1c['SearchbarComponent__badge'] }),
|
|
2655
|
+
React.createElement("div", { className: styles$1c['magneto-ui-searchbar-buttons'] },
|
|
2319
2656
|
searchValue && (React.createElement(React.Fragment, null,
|
|
2320
|
-
React.createElement(MainButton, __assign({ className: styles$
|
|
2657
|
+
React.createElement(MainButton, __assign({ className: styles$1c['magneto-ui-remove-button'], onClick: handleClearSearch }, removeButtonProps)),
|
|
2321
2658
|
React.createElement("span", null, "|"))),
|
|
2322
2659
|
React.createElement(MainButton, __assign({}, searchButtonProps))))));
|
|
2323
2660
|
};
|
|
@@ -2326,17 +2663,17 @@ var Component$1l = function (_a) {
|
|
|
2326
2663
|
*/
|
|
2327
2664
|
var Searchbar = Component$1l;
|
|
2328
2665
|
|
|
2329
|
-
var styles$
|
|
2666
|
+
var styles$1b = {"search-button":"mg_search_button_search-button_svn7v","search-button__badge":"mg_search_button_search-button_badge_svn7v"};
|
|
2330
2667
|
|
|
2331
2668
|
var Component$1k = function (_a) {
|
|
2332
2669
|
var props = __rest(_a, []);
|
|
2333
|
-
return (React.createElement("div", { className: styles$
|
|
2334
|
-
props.searchValue && React.createElement("div", { className: styles$
|
|
2670
|
+
return (React.createElement("div", { className: styles$1b['search-button'] },
|
|
2671
|
+
props.searchValue && React.createElement("div", { className: styles$1b['search-button__badge'] }),
|
|
2335
2672
|
React.createElement(MainButton, __assign({ onClick: props.onClick }, props))));
|
|
2336
2673
|
};
|
|
2337
2674
|
var SearchButton = Component$1k;
|
|
2338
2675
|
|
|
2339
|
-
var styles$
|
|
2676
|
+
var styles$1a = {"magneto-ui-similar-jobs":"mg_similar_jobs_card_magneto-ui-similar-jobs_h6mjd","magneto-ui-similar-jobs__arrow":"mg_similar_jobs_card_magneto-ui-similar-jobs_arrow_h6mjd","magneto-ui-similar-jobs__img":"mg_similar_jobs_card_magneto-ui-similar-jobs_img_h6mjd","magneto-ui-similar-jobs__title":"mg_similar_jobs_card_magneto-ui-similar-jobs_title_h6mjd","magneto-ui-similar-jobs__info":"mg_similar_jobs_card_magneto-ui-similar-jobs_info_h6mjd"};
|
|
2340
2677
|
|
|
2341
2678
|
var SimilarJobsCard = function (_a) {
|
|
2342
2679
|
var cities = _a.cities, companyLogo = _a.companyLogo, experience = _a.experience, jobUrlSlug = _a.jobUrlSlug, salary = _a.salary, title = _a.title, companyName = _a.companyName, hideLogo = _a.hideLogo;
|
|
@@ -2346,15 +2683,15 @@ var SimilarJobsCard = function (_a) {
|
|
|
2346
2683
|
var experienceFormat = experience ? " | ".concat(experience) : '';
|
|
2347
2684
|
return "".concat(citiesFormat).concat(salaryFormat).concat(experienceFormat);
|
|
2348
2685
|
}, [cities, salary, experience]);
|
|
2349
|
-
return (React.createElement("a", { title: title, className: "".concat(styles$
|
|
2350
|
-
!hideLogo && (React.createElement("img", { className: "".concat(styles$
|
|
2686
|
+
return (React.createElement("a", { title: title, className: "".concat(styles$1a["".concat(classMUI, "-similar-jobs")]), href: jobUrlSlug },
|
|
2687
|
+
!hideLogo && (React.createElement("img", { className: "".concat(styles$1a["".concat(classMUI, "-similar-jobs__img")]), src: companyLogo ? companyLogo : NoLogo, alt: "".concat(companyName ? companyName : 'company', "-logo").toLowerCase() })),
|
|
2351
2688
|
React.createElement("div", null,
|
|
2352
|
-
React.createElement("p", { className: "".concat(styles$
|
|
2353
|
-
React.createElement("p", { className: "".concat(styles$
|
|
2354
|
-
React.createElement(IconItem, { className: "".concat(styles$
|
|
2689
|
+
React.createElement("p", { className: "".concat(styles$1a["".concat(classMUI, "-similar-jobs__title")]) }, title),
|
|
2690
|
+
React.createElement("p", { className: "".concat(styles$1a["".concat(classMUI, "-similar-jobs__info")]) }, formatInfo)),
|
|
2691
|
+
React.createElement(IconItem, { className: "".concat(styles$1a["".concat(classMUI, "-similar-jobs__arrow")]), icon: ArrowRight2, alt: "arow-right-icon" })));
|
|
2355
2692
|
};
|
|
2356
2693
|
|
|
2357
|
-
var style$
|
|
2694
|
+
var style$A = {"magneto-ui-btn-menu":"mg_sort_menu_magneto-ui-btn-menu_lw7uc","magneto-ui-btn-text":"mg_sort_menu_magneto-ui-btn-text_lw7uc","disabled":"mg_sort_menu_disabled_lw7uc"};
|
|
2358
2695
|
|
|
2359
2696
|
var SortMenu = function (_a) {
|
|
2360
2697
|
var orderFields = _a.orderFields, textOrderFilter = _a.textOrderFilter, setFilter = _a.setFilter, _b = _a.clickOut, clickOut = _b === void 0 ? false : _b, loading = _a.loading, _c = _a.setClickOut, setClickOut = _c === void 0 ? function () { return ({}); } : _c;
|
|
@@ -2367,13 +2704,13 @@ var SortMenu = function (_a) {
|
|
|
2367
2704
|
};
|
|
2368
2705
|
}, [orderFields, textOrderFilter, setFilter, setClickOut]);
|
|
2369
2706
|
return (React.createElement(Popover, { widthBase: 180, show: clickOut, content: React.createElement(ListSortMenu, __assign({}, listMenuProps)), positionX: "left", positionY: "bottom" },
|
|
2370
|
-
React.createElement("button", { className: "".concat(style$
|
|
2371
|
-
React.createElement("p", { className: style$
|
|
2707
|
+
React.createElement("button", { className: "".concat(style$A['magneto-ui-btn-menu'], " ").concat(loading && style$A.disabled), title: textOrderFilter, onClick: function () { return setClickOut(!clickOut); }, disabled: loading },
|
|
2708
|
+
React.createElement("p", { className: style$A['magneto-ui-btn-text'] }, textOrderFilter),
|
|
2372
2709
|
React.createElement(IconItem, __assign({}, menuSortButton)))));
|
|
2373
2710
|
};
|
|
2374
2711
|
var SortMenu$1 = withClickOut(SortMenu);
|
|
2375
2712
|
|
|
2376
|
-
var styles$
|
|
2713
|
+
var styles$19 = {"magneto-ui-text-area":"mg_text_area_magneto-ui-text-area_biieu","magneto-ui-text-area--container":"mg_text_area_magneto-ui-text-area--container_biieu","magneto-ui-text-area--container__text-area":"mg_text_area_magneto-ui-text-area--container_text-area_biieu","magneto-ui-text-area--container__label":"mg_text_area_magneto-ui-text-area--container_label_biieu","magneto-ui-text-area--container__icon":"mg_text_area_magneto-ui-text-area--container_icon_biieu","magneto-ui-text-area--container__error":"mg_text_area_magneto-ui-text-area--container_error_biieu","magneto-ui-text-area__footer":"mg_text_area_magneto-ui-text-area_footer_biieu"};
|
|
2377
2714
|
|
|
2378
2715
|
var TextArea = function (_a) {
|
|
2379
2716
|
var _b = _a.value, value = _b === void 0 ? '' : _b, onChange = _a.onChange, name = _a.name, placeholder = _a.placeholder, error = _a.error, _c = _a.rows, rows = _c === void 0 ? 4 : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.hasCounter, hasCounter = _e === void 0 ? false : _e, _f = _a.maxCounterValue, maxCounterValue = _f === void 0 ? 0 : _f, props = __rest(_a, ["value", "onChange", "name", "placeholder", "error", "rows", "disabled", "hasCounter", "maxCounterValue"]);
|
|
@@ -2399,19 +2736,19 @@ var TextArea = function (_a) {
|
|
|
2399
2736
|
return;
|
|
2400
2737
|
setShowPlaceholder(scrollTop === 0);
|
|
2401
2738
|
}, [showPlaceholder]);
|
|
2402
|
-
return (React.createElement("div", { className: styles$
|
|
2403
|
-
React.createElement("div", { className: styles$
|
|
2739
|
+
return (React.createElement("div", { className: styles$19["".concat(classMUI, "-text-area")] },
|
|
2740
|
+
React.createElement("div", { className: styles$19["".concat(classMUI, "-text-area--container")] },
|
|
2404
2741
|
showPlaceholder && (React.createElement("label", { htmlFor: name, style: {
|
|
2405
2742
|
top: haveValueOrFocus ? '5px' : '10px',
|
|
2406
2743
|
fontSize: haveValueOrFocus ? '12px' : '14px'
|
|
2407
|
-
}, className: styles$
|
|
2408
|
-
React.createElement("textarea", __assign({}, props, { disabled: disabled, className: styles$
|
|
2409
|
-
React.createElement("div", { className: styles$
|
|
2410
|
-
React.createElement("span", { className: styles$
|
|
2744
|
+
}, className: styles$19["".concat(classMUI, "-text-area--container__label")] }, placeholder)),
|
|
2745
|
+
React.createElement("textarea", __assign({}, props, { disabled: disabled, className: styles$19["".concat(classMUI, "-text-area--container__text-area")], name: name, value: value, onChange: handleChange, onFocus: function () { return setOnFocus(true); }, onBlur: function () { return setOnFocus(false); }, onScroll: handleScroll, id: name, rows: rows }))),
|
|
2746
|
+
React.createElement("div", { className: styles$19["".concat(classMUI, "-text-area__footer")] },
|
|
2747
|
+
React.createElement("span", { className: styles$19["".concat(classMUI, "-text-area--container__error")] }, error),
|
|
2411
2748
|
hasCounter && React.createElement(ComparativeCounter, { current: inputValue === null || inputValue === void 0 ? void 0 : inputValue.length, max: maxCounterValue }))));
|
|
2412
2749
|
};
|
|
2413
2750
|
|
|
2414
|
-
var style$
|
|
2751
|
+
var style$z = {"magneto-ui-timeline-event":"mg_timeline_event_magneto-ui-timeline-event_1jv11","magneto-ui-timeline-event__icon":"mg_timeline_event_magneto-ui-timeline-event_icon_1jv11","magneto-ui-timeline-event__icon--bar":"mg_timeline_event_magneto-ui-timeline-event_icon--bar_1jv11","magneto-ui-timeline-event__icon--icon":"mg_timeline_event_magneto-ui-timeline-event_icon--icon_1jv11","magneto-ui-timeline-event__text":"mg_timeline_event_magneto-ui-timeline-event_text_1jv11","magneto-ui-timeline-event__text--title":"mg_timeline_event_magneto-ui-timeline-event_text--title_1jv11","magneto-ui-timeline-event__text--title-checked":"mg_timeline_event_magneto-ui-timeline-event_text--title-checked_1jv11","magneto-ui-timeline-event__text--title-current":"mg_timeline_event_magneto-ui-timeline-event_text--title-current_1jv11","magneto-ui-timeline-event__text--title-blocked":"mg_timeline_event_magneto-ui-timeline-event_text--title-blocked_1jv11","magneto-ui-timeline-event__text--subtitle":"mg_timeline_event_magneto-ui-timeline-event_text--subtitle_1jv11","magneto-ui-timeline-event__text--subtitle-current":"mg_timeline_event_magneto-ui-timeline-event_text--subtitle-current_1jv11","magneto-ui-timeline-event__text--subtitle-blocked":"mg_timeline_event_magneto-ui-timeline-event_text--subtitle-blocked_1jv11","checked":"mg_timeline_event_checked_1jv11","current":"mg_timeline_event_current_1jv11","blocked":"mg_timeline_event_blocked_1jv11"};
|
|
2415
2752
|
|
|
2416
2753
|
var timelineIcons = {
|
|
2417
2754
|
checked: Checked,
|
|
@@ -2421,26 +2758,26 @@ var timelineIcons = {
|
|
|
2421
2758
|
var Component$1j = function (_a) {
|
|
2422
2759
|
var title = _a.title, subtitle = _a.subtitle, status = _a.status, _b = _a.index, index = _b === void 0 ? 0 : _b, _c = _a.onClick, onClick = _c === void 0 ? function () { return ({}); } : _c;
|
|
2423
2760
|
var iconByType = useMemo(function () { return timelineIcons[status]; }, [status]);
|
|
2424
|
-
var titleStyle = style$
|
|
2425
|
-
var subtitleStyle = style$
|
|
2426
|
-
return (React.createElement("button", { type: "button", onClick: function () { return onClick(status, index); }, className: style$
|
|
2427
|
-
React.createElement("div", { className: style$
|
|
2428
|
-
React.createElement("div", { className: "".concat(style$
|
|
2429
|
-
React.createElement(IconItem, { className: style$
|
|
2430
|
-
React.createElement("div", { className: style$
|
|
2431
|
-
React.createElement("p", { className: "".concat(style$
|
|
2432
|
-
React.createElement("p", { className: "".concat(style$
|
|
2761
|
+
var titleStyle = style$z["".concat(classMUI, "-timeline-event__text--title-").concat(status)];
|
|
2762
|
+
var subtitleStyle = style$z["".concat(classMUI, "-timeline-event__text--subtitle-").concat(status)];
|
|
2763
|
+
return (React.createElement("button", { type: "button", onClick: function () { return onClick(status, index); }, className: style$z["".concat(classMUI, "-timeline-event")] },
|
|
2764
|
+
React.createElement("div", { className: style$z["".concat(classMUI, "-timeline-event__icon")] },
|
|
2765
|
+
React.createElement("div", { className: "".concat(style$z["".concat(classMUI, "-timeline-event__icon--bar")], " ").concat(style$z[status]) }),
|
|
2766
|
+
React.createElement(IconItem, { className: style$z["".concat(classMUI, "-timeline-event__icon--icon")], icon: iconByType, alt: status })),
|
|
2767
|
+
React.createElement("div", { className: style$z["".concat(classMUI, "-timeline-event__text")] },
|
|
2768
|
+
React.createElement("p", { className: "".concat(style$z["".concat(classMUI, "-timeline-event__text--title")], " ").concat(titleStyle) }, title),
|
|
2769
|
+
React.createElement("p", { className: "".concat(style$z["".concat(classMUI, "-timeline-event__text--subtitle")], " ").concat(subtitleStyle) }, subtitle))));
|
|
2433
2770
|
};
|
|
2434
2771
|
var TimelineEvent = Component$1j;
|
|
2435
2772
|
|
|
2436
|
-
var styles$
|
|
2773
|
+
var styles$18 = {"tooltip-container":"mg_tooltip_tooltip-container_6uf1v","tooltip":"mg_tooltip_tooltip_6uf1v","tooltip-text":"mg_tooltip_tooltip-text_6uf1v","tooltip-top":"mg_tooltip_tooltip-top_6uf1v","tooltip-bottom":"mg_tooltip_tooltip-bottom_6uf1v","tooltip-left":"mg_tooltip_tooltip-left_6uf1v","tooltip-right":"mg_tooltip_tooltip-right_6uf1v"};
|
|
2437
2774
|
|
|
2438
2775
|
var Tooltip = function (_a) {
|
|
2439
2776
|
var title = _a.title, _b = _a.position, position = _b === void 0 ? 'top' : _b, children = _a.children, _c = _a.width, width = _c === void 0 ? '10rem' : _c;
|
|
2440
|
-
return (React.createElement("div", { className: "".concat(styles$
|
|
2441
|
-
React.createElement("div", { className: "".concat(styles$
|
|
2777
|
+
return (React.createElement("div", { className: "".concat(styles$18['tooltip-container'], " ").concat(styles$18["tooltip-".concat(position)]) },
|
|
2778
|
+
React.createElement("div", { className: "".concat(styles$18['tooltip'], " ").concat(styles$18["tooltip-".concat(position)]) },
|
|
2442
2779
|
children,
|
|
2443
|
-
React.createElement("span", { className: "".concat(styles$
|
|
2780
|
+
React.createElement("span", { className: "".concat(styles$18['tooltip-text'], " ").concat(styles$18["tooltip-text-".concat(position)]), style: { width: width } }, title))));
|
|
2444
2781
|
};
|
|
2445
2782
|
|
|
2446
2783
|
var Component$1i = function (_a) {
|
|
@@ -2457,12 +2794,13 @@ var userMenuAnalystIcons = {
|
|
|
2457
2794
|
manage: MouseCircleBlackOutline,
|
|
2458
2795
|
unlink: BuildingSlashBlackOutline,
|
|
2459
2796
|
add: AddSquareBlackOutline,
|
|
2460
|
-
redo: RedoDarkBlue
|
|
2797
|
+
redo: RedoDarkBlue,
|
|
2798
|
+
whatsApp: WhatsAppDark
|
|
2461
2799
|
};
|
|
2462
2800
|
|
|
2463
|
-
var styles$
|
|
2801
|
+
var styles$17 = {"magneto-ui-user-menu-analyst-options":"mg_user_menu_analyst_options_magneto-ui-user-menu-analyst-options_1vrkj","magneto-ui-user-menu-analyst-options__divider":"mg_user_menu_analyst_options_magneto-ui-user-menu-analyst-options_divider_1vrkj"};
|
|
2464
2802
|
|
|
2465
|
-
var styles$
|
|
2803
|
+
var styles$16 = {"magneto-ui-user-menu-analyst-option-default":"mg_user_menu_analyst_option_default_magneto-ui-user-menu-analyst-option-default_m64bi","magneto-ui-user-menu-analyst-option-default__container":"mg_user_menu_analyst_option_default_magneto-ui-user-menu-analyst-option-default_container_m64bi","magneto-ui-user-menu-analyst-option-default--button":"mg_user_menu_analyst_option_default_magneto-ui-user-menu-analyst-option-default--button_m64bi","magneto-ui-user-menu-analyst-option-default--underline":"mg_user_menu_analyst_option_default_magneto-ui-user-menu-analyst-option-default--underline_m64bi"};
|
|
2466
2804
|
|
|
2467
2805
|
var Component$1h = function (_a) {
|
|
2468
2806
|
var className = _a.className, handleModal = _a.handleModal, handleMenuOpen = _a.handleMenuOpen, option = _a.option, prefix = _a.prefix, suffix = _a.suffix, url = _a.url;
|
|
@@ -2477,12 +2815,12 @@ var Component$1h = function (_a) {
|
|
|
2477
2815
|
}
|
|
2478
2816
|
}, [handleModal, handleMenuOpen, option]);
|
|
2479
2817
|
return (React.createElement("span", { className: CNM.get({
|
|
2480
|
-
styles: styles$
|
|
2818
|
+
styles: styles$16,
|
|
2481
2819
|
cls: [getOptionTypeStyles(option.type), 'user-menu-analyst-option-default', className]
|
|
2482
2820
|
}) },
|
|
2483
2821
|
prefix,
|
|
2484
2822
|
React.createElement(MenuIcon, { className: CNM.get({
|
|
2485
|
-
styles: styles$
|
|
2823
|
+
styles: styles$16,
|
|
2486
2824
|
cls: ['user-menu-analyst-option-default__container']
|
|
2487
2825
|
}), text: option.title || '', icon: option.icon && userMenuAnalystIcons[option.icon] ? userMenuAnalystIcons[option.icon] : option.icon, iconProps: { showDefaultFallback: false }, iconSize: 18, url: url, type: typeof option.data === 'function' || option.modal ? 'button' : 'link', onClick: handleOnClick, target: target, rel: rel }),
|
|
2488
2826
|
suffix));
|
|
@@ -2492,16 +2830,16 @@ var Component$1h = function (_a) {
|
|
|
2492
2830
|
*/
|
|
2493
2831
|
var UserMenuAnalystOptionDefault = React.memo(Component$1h);
|
|
2494
2832
|
|
|
2495
|
-
var styles$
|
|
2833
|
+
var styles$15 = {"magneto-ui-user-menu-analyst-option-hover":"mg_user_menu_analyst_option_hover_magneto-ui-user-menu-analyst-option-hover_yk2al","magneto-ui-user-menu-analyst-option-hover__default":"mg_user_menu_analyst_option_hover_magneto-ui-user-menu-analyst-option-hover_default_yk2al"};
|
|
2496
2834
|
|
|
2497
2835
|
var Component$1g = function (_a) {
|
|
2498
2836
|
var className = _a.className, handleModal = _a.handleModal, handleMenuOpen = _a.handleMenuOpen, option = _a.option, prefix = _a.prefix, suffix = _a.suffix, url = _a.url;
|
|
2499
2837
|
return (React.createElement("span", { className: CNM.get({
|
|
2500
|
-
styles: styles$
|
|
2838
|
+
styles: styles$15,
|
|
2501
2839
|
cls: [className, 'user-menu-analyst-option-hover']
|
|
2502
2840
|
}) },
|
|
2503
2841
|
prefix,
|
|
2504
|
-
React.createElement(UserMenuAnalystOptionDefault, { className: CNM.get({ styles: styles$
|
|
2842
|
+
React.createElement(UserMenuAnalystOptionDefault, { className: CNM.get({ styles: styles$15, cls: ['user-menu-analyst-option-hover__default'] }), handleMenuOpen: handleMenuOpen, handleModal: handleModal, option: option, url: url }),
|
|
2505
2843
|
suffix));
|
|
2506
2844
|
};
|
|
2507
2845
|
/**
|
|
@@ -2509,12 +2847,12 @@ var Component$1g = function (_a) {
|
|
|
2509
2847
|
*/
|
|
2510
2848
|
var UserMenuAnalystOptionHover = React.memo(Component$1g);
|
|
2511
2849
|
|
|
2512
|
-
var styles$
|
|
2850
|
+
var styles$14 = {"magneto-ui-user-menu-analyst-option-text":"mg_user_menu_analyst_option_text_magneto-ui-user-menu-analyst-option-text_30oi7"};
|
|
2513
2851
|
|
|
2514
2852
|
var Component$1f = function (_a) {
|
|
2515
2853
|
var option = _a.option, className = _a.className;
|
|
2516
2854
|
return (React.createElement("span", { className: CNM.get({
|
|
2517
|
-
styles: styles$
|
|
2855
|
+
styles: styles$14,
|
|
2518
2856
|
cls: [className, 'user-menu-analyst-option-text']
|
|
2519
2857
|
}) },
|
|
2520
2858
|
React.createElement("p", null, option.title)));
|
|
@@ -2570,26 +2908,26 @@ var optionTypes = (_b = {},
|
|
|
2570
2908
|
_b);
|
|
2571
2909
|
var getOptionType = function (type) { return (type ? optionTypes[type] : UserMenuAnalystOptionDefault); };
|
|
2572
2910
|
|
|
2573
|
-
var styles$
|
|
2911
|
+
var styles$13 = {"magneto-ui-user-menu-analyst-title__title":"mg_user_menu_analyst_title_magneto-ui-user-menu-analyst-title_title_1djbn","magneto-ui-user-menu-analyst-title__subtitle":"mg_user_menu_analyst_title_magneto-ui-user-menu-analyst-title_subtitle_1djbn","magneto-ui-user-menu-analyst-title__subtitle--first":"mg_user_menu_analyst_title_magneto-ui-user-menu-analyst-title_subtitle--first_1djbn","magneto-ui-user-menu-analyst-title__subtitle--last":"mg_user_menu_analyst_title_magneto-ui-user-menu-analyst-title_subtitle--last_1djbn"};
|
|
2574
2912
|
|
|
2575
2913
|
var Component$1d = function (_a) {
|
|
2576
2914
|
var subTitle = _a.subTitle, title = _a.title;
|
|
2577
2915
|
var separatorIndex = subTitle === null || subTitle === void 0 ? void 0 : subTitle.indexOf(':');
|
|
2578
2916
|
return (React.createElement("div", null,
|
|
2579
|
-
React.createElement("span", { className: CNM.get({ styles: styles$
|
|
2917
|
+
React.createElement("span", { className: CNM.get({ styles: styles$13, cls: ['user-menu-analyst-title__title'] }) }, title),
|
|
2580
2918
|
subTitle && separatorIndex && (React.createElement("div", null,
|
|
2581
2919
|
React.createElement("span", { className: CNM.get({
|
|
2582
|
-
styles: styles$
|
|
2920
|
+
styles: styles$13,
|
|
2583
2921
|
cls: ['user-menu-analyst-title__subtitle', 'user-menu-analyst-title__subtitle--first']
|
|
2584
2922
|
}) }, subTitle.slice(0, separatorIndex + 1).trim() + ' '),
|
|
2585
2923
|
React.createElement("span", { className: CNM.get({
|
|
2586
|
-
styles: styles$
|
|
2924
|
+
styles: styles$13,
|
|
2587
2925
|
cls: ['user-menu-analyst-title__subtitle', 'user-menu-analyst-title__subtitle--last']
|
|
2588
2926
|
}) }, subTitle.slice(separatorIndex + 1).trim())))));
|
|
2589
2927
|
};
|
|
2590
2928
|
var UserMenuAnalystTitle = Component$1d;
|
|
2591
2929
|
|
|
2592
|
-
var styles$
|
|
2930
|
+
var styles$12 = {"magneto-ui-user-menu-analyst-option__object":"mg_user_menu_analyst_option_magneto-ui-user-menu-analyst-option_object_jswqx","magneto-ui-user-menu-analyst-option__dropdown-title":"mg_user_menu_analyst_option_magneto-ui-user-menu-analyst-option_dropdown-title_jswqx","magneto-ui-user-menu-analyst-option__dropdown":"mg_user_menu_analyst_option_magneto-ui-user-menu-analyst-option_dropdown_jswqx","magneto-ui-user-menu-analyst-option__dropdown-list":"mg_user_menu_analyst_option_magneto-ui-user-menu-analyst-option_dropdown-list_jswqx","magneto-ui-user-menu-analyst-option__empty-text":"mg_user_menu_analyst_option_magneto-ui-user-menu-analyst-option_empty-text_jswqx","magneto-ui-user-menu-analyst-option__arrow":"mg_user_menu_analyst_option_magneto-ui-user-menu-analyst-option_arrow_jswqx"};
|
|
2593
2931
|
|
|
2594
2932
|
var Component$1c = function (_a) {
|
|
2595
2933
|
var _b;
|
|
@@ -2617,13 +2955,13 @@ var Component$1c = function (_a) {
|
|
|
2617
2955
|
var OptionType = getOptionType(option.type);
|
|
2618
2956
|
if (!OptionType)
|
|
2619
2957
|
return null;
|
|
2620
|
-
return (React.createElement("div", { className: CNM.get({ styles: styles$
|
|
2621
|
-
React.createElement(OptionType, { className: CNM.get({ styles: styles$
|
|
2958
|
+
return (React.createElement("div", { className: CNM.get({ styles: styles$12, cls: ['user-menu-analyst-option__object'] }) },
|
|
2959
|
+
React.createElement(OptionType, { className: CNM.get({ styles: styles$12, cls: [classNames === null || classNames === void 0 ? void 0 : classNames.link] }), option: option, url: url(option), handleModal: handleModal, handleMenuOpen: handleMenuOpen, prefix: React.createElement(UserMenuAnalystOptionActions, { actions: option.prefix || [], getUrl: url, handleModal: handleModal, handleMenuOpen: handleMenuOpen, option: option }), suffix: React.createElement(UserMenuAnalystOptionActions, { actions: option.suffix || [], getUrl: url, handleModal: handleModal, handleMenuOpen: handleMenuOpen, option: option }) })));
|
|
2622
2960
|
}
|
|
2623
|
-
return (React.createElement(MenuDropdown, { title: React.createElement(UserMenuAnalystTitle, { title: option.title || '', subTitle: option.subTitle }), opened: isOpenDropdown, onClick: function () { return setIsOpenDropdown(!isOpenDropdown); }, listClassName: CNM.get({ styles: styles$
|
|
2961
|
+
return (React.createElement(MenuDropdown, { title: React.createElement(UserMenuAnalystTitle, { title: option.title || '', subTitle: option.subTitle }), opened: isOpenDropdown, onClick: function () { return setIsOpenDropdown(!isOpenDropdown); }, listClassName: CNM.get({ styles: styles$12, cls: ['user-menu-analyst-option__dropdown-list'] }), suffixIcon: { icon: ArrowLeft2, className: CNM.get({ styles: styles$12, cls: ['user-menu-analyst-option__arrow'] }) }, prefixIcon: {
|
|
2624
2962
|
icon: option.icon && userMenuAnalystIcons[option.icon] ? userMenuAnalystIcons[option.icon] : option.icon
|
|
2625
2963
|
}, className: CNM.get({
|
|
2626
|
-
styles: styles$
|
|
2964
|
+
styles: styles$12,
|
|
2627
2965
|
cls: [
|
|
2628
2966
|
'user-menu-analyst-option__dropdown',
|
|
2629
2967
|
isOpenDropdown && 'user-menu-analyst-option__dropdown--open',
|
|
@@ -2632,7 +2970,7 @@ var Component$1c = function (_a) {
|
|
|
2632
2970
|
}) }, (_b = option.data) === null || _b === void 0 ? void 0 : _b.map(function (item, i) {
|
|
2633
2971
|
var _a;
|
|
2634
2972
|
return (React.createElement(React.Fragment, { key: "option-".concat(item.title, "-").concat(i) },
|
|
2635
|
-
item.title && (React.createElement("span", { className: CNM.get({ styles: styles$
|
|
2973
|
+
item.title && (React.createElement("span", { className: CNM.get({ styles: styles$12, cls: ['user-menu-analyst-option__dropdown-title'] }) }, item.title)), (_a = item === null || item === void 0 ? void 0 : item.children) === null || _a === void 0 ? void 0 :
|
|
2636
2974
|
_a.map(function (child, j) { return (React.createElement(Component$1c, { key: "option-".concat(child.title, "-").concat(j), classNames: {
|
|
2637
2975
|
link: (classNames === null || classNames === void 0 ? void 0 : classNames.link) || '',
|
|
2638
2976
|
dropdown: (classNames === null || classNames === void 0 ? void 0 : classNames.dropdown) || ''
|
|
@@ -2647,11 +2985,11 @@ var UserMenuAnalystOption = Component$1c;
|
|
|
2647
2985
|
var Component$1b = function (_a) {
|
|
2648
2986
|
var className = _a.className, handleModal = _a.handleModal, handleMenuOpen = _a.handleMenuOpen, isMenuOpen = _a.isMenuOpen, optionClassNames = _a.optionClassNames, options = _a.options, queryString = _a.queryString;
|
|
2649
2987
|
var isLastSection = useMemo(function () { return (options === null || options === void 0 ? void 0 : options.length) === 1; }, [options]);
|
|
2650
|
-
return (React.createElement("div", { className: CNM.get({ styles: styles$
|
|
2988
|
+
return (React.createElement("div", { className: CNM.get({ styles: styles$17, cls: ['user-menu-analyst-options', className] }) }, options === null || options === void 0 ? void 0 : options.map(function (option, i) {
|
|
2651
2989
|
var _a;
|
|
2652
2990
|
return (React.createElement(React.Fragment, { key: "user-menu-analyst-section-".concat(i) }, (_a = option.children) === null || _a === void 0 ? void 0 :
|
|
2653
2991
|
_a.map(function (item, j) { return (React.createElement(UserMenuAnalystOption, { key: "user-menu-analyst-option-".concat(j), isOpen: isMenuOpen, option: item, classNames: optionClassNames, queryString: queryString, handleModal: handleModal, handleMenuOpen: handleMenuOpen })); }),
|
|
2654
|
-
!isLastSection && i < options.length - 1 && (React.createElement("div", { className: CNM.get({ styles: styles$
|
|
2992
|
+
!isLastSection && i < options.length - 1 && (React.createElement("div", { className: CNM.get({ styles: styles$17, cls: ['user-menu-analyst-options__divider'] }) },
|
|
2655
2993
|
React.createElement(Divider, null)))));
|
|
2656
2994
|
})));
|
|
2657
2995
|
};
|
|
@@ -2660,7 +2998,7 @@ var Component$1b = function (_a) {
|
|
|
2660
2998
|
*/
|
|
2661
2999
|
var UserMenuAnalystOptions = Component$1b;
|
|
2662
3000
|
|
|
2663
|
-
var styles$
|
|
3001
|
+
var styles$11 = {"magneto-ui-user-menu-analyst":"mg_user_menu_analyst_magneto-ui-user-menu-analyst_x7jdf","magneto-ui-user-menu-analyst__header":"mg_user_menu_analyst_magneto-ui-user-menu-analyst_header_x7jdf","magneto-ui-user-menu-analyst__user":"mg_user_menu_analyst_magneto-ui-user-menu-analyst_user_x7jdf","magneto-ui-user-menu-analyst__user-info":"mg_user_menu_analyst_magneto-ui-user-menu-analyst_user-info_x7jdf","magneto-ui-user-menu-analyst__user-info--name":"mg_user_menu_analyst_magneto-ui-user-menu-analyst_user-info--name_x7jdf","magneto-ui-user-menu-analyst__user-info--mail":"mg_user_menu_analyst_magneto-ui-user-menu-analyst_user-info--mail_x7jdf","magneto-ui-user-menu-analyst__user-info--title":"mg_user_menu_analyst_magneto-ui-user-menu-analyst_user-info--title_x7jdf","magneto-ui-user-menu-analyst__user-info--action":"mg_user_menu_analyst_magneto-ui-user-menu-analyst_user-info--action_x7jdf","magneto-ui-user-menu-analyst__company":"mg_user_menu_analyst_magneto-ui-user-menu-analyst_company_x7jdf","magneto-ui-user-menu-analyst__company--empty":"mg_user_menu_analyst_magneto-ui-user-menu-analyst_company--empty_x7jdf","magneto-ui-user-menu-analyst__company-dropdown":"mg_user_menu_analyst_magneto-ui-user-menu-analyst_company-dropdown_x7jdf"};
|
|
2664
3002
|
|
|
2665
3003
|
var Component$1a = function (_a) {
|
|
2666
3004
|
var action = _a.action, headerSections = _a.headerSections, handleModal = _a.handleModal, handleMenuOpen = _a.handleMenuOpen, _b = _a.isMenuOpen, isMenuOpen = _b === void 0 ? false : _b, footerSections = _a.footerSections, user = _a.user, _c = _a.queryString, queryString = _c === void 0 ? {} : _c;
|
|
@@ -2680,22 +3018,22 @@ var Component$1a = function (_a) {
|
|
|
2680
3018
|
: action.data;
|
|
2681
3019
|
}
|
|
2682
3020
|
}, [action, queryString]);
|
|
2683
|
-
return (React.createElement("div", { className: CNM.get({ styles: styles$
|
|
2684
|
-
React.createElement("header", { className: CNM.get({ styles: styles$
|
|
2685
|
-
React.createElement("div", { className: CNM.get({ styles: styles$
|
|
3021
|
+
return (React.createElement("div", { className: CNM.get({ styles: styles$11, cls: ['user-menu-analyst'] }) },
|
|
3022
|
+
React.createElement("header", { className: CNM.get({ styles: styles$11, cls: ['user-menu-analyst__header'] }) },
|
|
3023
|
+
React.createElement("div", { className: CNM.get({ styles: styles$11, cls: ['user-menu-analyst__user'] }) },
|
|
2686
3024
|
React.createElement(Avatar, { userImage: avatar, fallbackImage: UserRoundedGray }),
|
|
2687
|
-
React.createElement("div", { className: CNM.get({ styles: styles$
|
|
2688
|
-
React.createElement("span", { className: CNM.get({ styles: styles$
|
|
2689
|
-
React.createElement("span", { className: CNM.get({ styles: styles$
|
|
2690
|
-
action ? (React.createElement("span", { className: CNM.get({ styles: styles$
|
|
3025
|
+
React.createElement("div", { className: CNM.get({ styles: styles$11, cls: ['user-menu-analyst__user-info'] }) },
|
|
3026
|
+
React.createElement("span", { className: CNM.get({ styles: styles$11, cls: ['user-menu-analyst__user-info--name'] }) }, user.name),
|
|
3027
|
+
React.createElement("span", { className: CNM.get({ styles: styles$11, cls: ['user-menu-analyst__user-info--mail'] }) }, user.email),
|
|
3028
|
+
action ? (React.createElement("span", { className: CNM.get({ styles: styles$11, cls: ['user-menu-analyst__user-info--action'] }) },
|
|
2691
3029
|
React.createElement(IconItem, { showDefaultFallback: false, size: 14, icon: action.icon && userMenuAnalystIcons[action.icon] ? userMenuAnalystIcons[action.icon] : action.icon }),
|
|
2692
|
-
typeof action.data === 'string' ? (React.createElement(Link, { text: action.title, href: actionUrl, rel: action.rel, target: action.target })) : (React.createElement("button", { onClick: action.data }, action.title)))) : (React.createElement("span", { className: CNM.get({ styles: styles$
|
|
3030
|
+
typeof action.data === 'string' ? (React.createElement(Link, { text: action.title, href: actionUrl, rel: action.rel, target: action.target })) : (React.createElement("button", { onClick: action.data }, action.title)))) : (React.createElement("span", { className: CNM.get({ styles: styles$11, cls: ['user-menu-analyst__user-info--title'] }) }, user.title)))),
|
|
2693
3031
|
headerSections && (React.createElement(UserMenuAnalystOptions, { options: headerSections || [], queryString: queryString, isMenuOpen: isMenuOpen, handleModal: handleModal, handleMenuOpen: handleMenuOpen, className: CNM.get({
|
|
2694
|
-
styles: styles$
|
|
3032
|
+
styles: styles$11,
|
|
2695
3033
|
cls: ['user-menu-analyst__company', (headerSections === null || headerSections === void 0 ? void 0 : headerSections.length) === 0 && 'user-menu-analyst__company--empty']
|
|
2696
3034
|
}), optionClassNames: {
|
|
2697
|
-
link: CNM.get({ styles: styles$
|
|
2698
|
-
dropdown: CNM.get({ styles: styles$
|
|
3035
|
+
link: CNM.get({ styles: styles$11, cls: ['user-menu-analyst__company-link'] }),
|
|
3036
|
+
dropdown: CNM.get({ styles: styles$11, cls: ['user-menu-analyst__company-dropdown'] })
|
|
2699
3037
|
} }))),
|
|
2700
3038
|
footerSections && (footerSections === null || footerSections === void 0 ? void 0 : footerSections.length) > 0 && (React.createElement(UserMenuAnalystOptions, { handleModal: handleModal, handleMenuOpen: handleMenuOpen, options: footerSections || [], queryString: queryString }))));
|
|
2701
3039
|
};
|
|
@@ -2704,37 +3042,6 @@ var Component$1a = function (_a) {
|
|
|
2704
3042
|
*/
|
|
2705
3043
|
var UserMenuAnalyst = Component$1a;
|
|
2706
3044
|
|
|
2707
|
-
var style$z = {"mega-menu-side-cards":"mg_mega_menu_side_cards_mega-menu-side-cards_ojemf","mega-menu-side-cards__action":"mg_mega_menu_side_cards_mega-menu-side-cards_action_ojemf","mega-menu-side-cards__card":"mg_mega_menu_side_cards_mega-menu-side-cards_card_ojemf","mega-menu-side-cards__card--selected":"mg_mega_menu_side_cards_mega-menu-side-cards_card--selected_ojemf"};
|
|
2708
|
-
|
|
2709
|
-
var MegaMenuSideCards = function (_a) {
|
|
2710
|
-
var jobs = _a.jobs, action = _a.action, onSelectCard = _a.onSelectCard;
|
|
2711
|
-
var _b = useState(0), selected = _b[0], setSelected = _b[1];
|
|
2712
|
-
var handleClick = useCallback(function (index) { return function () {
|
|
2713
|
-
setSelected(index);
|
|
2714
|
-
onSelectCard && onSelectCard(index);
|
|
2715
|
-
}; }, [onSelectCard]);
|
|
2716
|
-
return (React.createElement("ul", { className: "".concat(style$z["mega-menu-side-cards"]) },
|
|
2717
|
-
jobs &&
|
|
2718
|
-
jobs.slice(0, 10).map(function (job, key) { return (React.createElement("li", { key: key },
|
|
2719
|
-
React.createElement(MegaMenuCard, __assign({}, job, { showRigthArrow: selected == key, className: "".concat(style$z["mega-menu-side-cards__card"], " ").concat(selected == key ? style$z["mega-menu-side-cards__card--selected"] : ''), onClick: handleClick(key) })))); }),
|
|
2720
|
-
action && (React.createElement("li", null,
|
|
2721
|
-
React.createElement(SearchItem, { url: action.url, tag: action.label, className: "".concat(style$z["mega-menu-side-cards__action"]), icon: ArrowRightWhite })))));
|
|
2722
|
-
};
|
|
2723
|
-
|
|
2724
|
-
var styles$11 = {"mega-menu-side-container":"mg_with_container_mega-menu-side-container_12vzc","mega-menu-side-container__side":"mg_with_container_mega-menu-side-container_side_12vzc","mega-menu-side-container__main":"mg_with_container_mega-menu-side-container_main_12vzc"};
|
|
2725
|
-
|
|
2726
|
-
var withMegaMenuContainer = function (WrappedComponent) {
|
|
2727
|
-
var Component = function (_a) {
|
|
2728
|
-
var sideProps = _a.sideProps, wrapperProps = _a.wrapperProps;
|
|
2729
|
-
return (React.createElement("div", { className: styles$11['mega-menu-side-container'] },
|
|
2730
|
-
React.createElement("div", { className: styles$11['mega-menu-side-container__side'] },
|
|
2731
|
-
React.createElement(MegaMenuSideCards, __assign({}, sideProps))),
|
|
2732
|
-
React.createElement("div", { className: styles$11['mega-menu-side-container__main'] },
|
|
2733
|
-
React.createElement(WrappedComponent, __assign({}, wrapperProps)))));
|
|
2734
|
-
};
|
|
2735
|
-
return Component;
|
|
2736
|
-
};
|
|
2737
|
-
|
|
2738
3045
|
var styles$10 = {"magneto-ui-user-menu-wrapper-analyst-dropdown":"mg_user_menu_wrapper_analyst_dropdown_magneto-ui-user-menu-wrapper-analyst-dropdown_1rwtz"};
|
|
2739
3046
|
|
|
2740
3047
|
var Component$19 = function (_a) {
|
|
@@ -2790,13 +3097,13 @@ var Component$16 = function (_a) {
|
|
|
2790
3097
|
var handleClose = _a.handleClose, isOpen = _a.isOpen, name = _a.name, data = _a.data, screens = _a.screens, step = _a.step, setStep = _a.setStep;
|
|
2791
3098
|
var component = useMemo(function () {
|
|
2792
3099
|
var _a, _b, _c;
|
|
2793
|
-
return (React.createElement("div", { className: CNM.get({ styles: styles$
|
|
3100
|
+
return (React.createElement("div", { className: CNM.get({ styles: styles$1W, cls: ['modal-analyst-container'] }) },
|
|
2794
3101
|
React.createElement(ModalAnalystHeader, { header: (_a = screens[step]) === null || _a === void 0 ? void 0 : _a.header }),
|
|
2795
3102
|
React.createElement(ModalAnalystContent, { content: (_b = screens[step]) === null || _b === void 0 ? void 0 : _b.content }),
|
|
2796
3103
|
React.createElement(ModalAnalystFooter, { footer: (_c = screens[step]) === null || _c === void 0 ? void 0 : _c.footer, name: name, data: data, setStep: setStep, handleClose: handleClose })));
|
|
2797
3104
|
}, [handleClose, name, data, screens, step, setStep]);
|
|
2798
|
-
var container = useMediaQuery(React.createElement(Modal$1, { isOpen: isOpen, onClose: function () { return handleClose(name, false, undefined); }, className: CNM.get({ styles: styles$
|
|
2799
|
-
sm: (React.createElement(MobileDrawer, { isOpen: isOpen, onClose: function () { return handleClose(name, false, undefined); }, className: CNM.get({ styles: styles$
|
|
3105
|
+
var container = useMediaQuery(React.createElement(Modal$1, { isOpen: isOpen, onClose: function () { return handleClose(name, false, undefined); }, className: CNM.get({ styles: styles$1W, cls: ['modal-analyst-container--desktop'] }) }, component), {
|
|
3106
|
+
sm: (React.createElement(MobileDrawer, { isOpen: isOpen, onClose: function () { return handleClose(name, false, undefined); }, className: CNM.get({ styles: styles$1W, cls: ['modal-analyst-container--mobile'] }) }, component))
|
|
2800
3107
|
});
|
|
2801
3108
|
return container;
|
|
2802
3109
|
};
|
|
@@ -7279,5 +7586,5 @@ var Component = function (_a) {
|
|
|
7279
7586
|
};
|
|
7280
7587
|
var SuggestedJobsPage = Component;
|
|
7281
7588
|
|
|
7282
|
-
export { Actions, Alert, AnalystTemplate, Avatar, BarLoader, BrandMenu, BrandsContainer, BrandsMenuMobile, BrandsMenuPopover$1 as BrandsMenuPopover, Breadcrumb, Breadcrumbs, Button, CitiesDetailDrawer, ComparativeCounter, DateDropdown, DateInput, DatePicker, DatePickerResponsiveComponent, Divider, Drawer, DrawerMenu, ERadioType, EmptyResult as EmptyResults, FilterCard, FilterContainerMenu, FilterHeader, FilterMenuItem, FilterSearchItem, FlatLoader, Footer, FooterMenuLinks, FrequentSearch, HeaderAnalyst, HeaderDrawerCompany, HeaderDrawerTabs, HeaderTab, HeaderTabs, IconItem, Image, Input, InputPlus, InputSearch, JobActions, JobApplyCard, JobCard, JobCardDesktop, JobCardMobile, JobCompanyHeader, JobCompanyLogo, JobDetailCard, JobDetailContainer, JobDetails, JobDetailsDrawer, JobFooterCard, JobHeader, JobSkillsCard, JobVideo, JobsPage, Link, ListIconLink, ListMenuIcons, ListMenuItems, ListMenuText, ListSortMenu, Loading, LoginHeader, LoginJobsHeader, LoginJobsTemplate, LoginTemplate, LogoComponent, LogoutHeader, LogoutJobsHeader, LogoutJobsTemplate, LogoutTemplate, MagnetoResolution, MagnetoSocialMedia, ContextAppProvider as MagnetoUIProvider, MainButton, MegaMenu, MegaMenuCard, MegaMenuCards, MegaMenuJobsTabs, MegaMenuPopover, MegaMenuTab, MenuDropdown, MenuIcon, MenuItem, MenuSearch, Message, MobileDatePicker, MobileDrawer, MobileDrawerMenu, MobileJobDetailsDrawer, MobileJobDetailsHeader, MobileSearchbar, MobileSortMenu, Modal$1 as Modal, ModalAnalyst, MultiRangeSlider, MultipleSelectionEntry, NavMenuAnalyst, NavMenuAnalystRegionModal, NavMenuDrawerAnalyst, OneSelectionEntry, Pagination, Paragraph, Popover, Radio, RightsReservedText, SaveButton, ScoreLevel, ScoreLevelStatic, SearchButton, SearchItem, Searchbar, Select, Select2, ShareButton, SharePopover, SideFilter, SimilarJobs, SimilarJobsCard, Skill, SortBar, SortMenu$1 as SortMenu, SuggestedJobsPage, Switch, Tab, TabButton, Tags as Tag, TextArea, Timeline, TimelineEvent, ToggleButton, Tooltip, UserMenu, UserMenuAnalyst, UserMenuButtonAnalyst, UserMenuWrapperAnalyst, message, useMediaQuery, withClickOut, withMegaMenuContainer };
|
|
7589
|
+
export { Actions, Alert, AnalystTemplate, Avatar, BarLoader, BrandMenu, BrandsContainer, BrandsMenuMobile, BrandsMenuPopover$1 as BrandsMenuPopover, Breadcrumb, Breadcrumbs, Button, CitiesDetailDrawer, ComparativeCounter, DateDropdown, DateInput, DatePicker, DatePickerResponsiveComponent, Divider, Drawer, DrawerMenu, EExpandableInfoSize, EExpandableInfoVariant, ERadioType, EmptyResult as EmptyResults, ExpandableInfo, FilterCard, FilterContainerMenu, FilterHeader, FilterMenuItem, FilterSearchItem, FlatLoader, Footer, FooterMenuLinks, FrequentSearch, HeaderAnalyst, HeaderDrawerCompany, HeaderDrawerTabs, HeaderTab, HeaderTabs, IconItem, Image, Input, InputPlus, InputSearch, JobActions, JobApplyCard, JobCard, JobCardDesktop, JobCardMobile, JobCompanyHeader, JobCompanyLogo, JobDetailCard, JobDetailContainer, JobDetails, JobDetailsDrawer, JobFooterCard, JobHeader, JobSkillsCard, JobVideo, JobsPage, Link, ListIconLink, ListMenuIcons, ListMenuItems, ListMenuText, ListSortMenu, Loading, LoginHeader, LoginJobsHeader, LoginJobsTemplate, LoginTemplate, LogoComponent, LogoutHeader, LogoutJobsHeader, LogoutJobsTemplate, LogoutTemplate, MagnetoResolution, MagnetoSocialMedia, ContextAppProvider as MagnetoUIProvider, MainButton, MegaMenu, MegaMenuCard, MegaMenuCards, MegaMenuJobsTabs, MegaMenuPopover, MegaMenuTab, MenuDropdown, MenuIcon, MenuItem, MenuSearch, Message, MobileDatePicker, MobileDrawer, MobileDrawerMenu, MobileJobDetailsDrawer, MobileJobDetailsHeader, MobileSearchbar, MobileSortMenu, Modal$1 as Modal, ModalAnalyst, MultiRangeSlider, MultipleSelectionEntry, NavMenuAnalyst, NavMenuAnalystRegionModal, NavMenuDrawerAnalyst, OneSelectionEntry, Pagination, Paragraph, Popover, Radio, RightsReservedText, SaveButton, ScoreLevel, ScoreLevelStatic, SearchButton, SearchItem, Searchbar, Select, Select2, ShareButton, SharePopover, SideFilter, SimilarJobs, SimilarJobsCard, Skill, SortBar, SortMenu$1 as SortMenu, SuggestedJobsPage, Switch, Tab, TabButton, Tags as Tag, TextArea, Timeline, TimelineEvent, ToggleButton, Tooltip, UserMenu, UserMenuAnalyst, UserMenuButtonAnalyst, UserMenuWrapperAnalyst, message, useMediaQuery, withClickOut, withMegaMenuContainer };
|
|
7283
7590
|
//# sourceMappingURL=index.js.map
|