@lanaco/lnc-react-ui 4.0.73 → 4.0.75
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/BannerSectionSimple.cjs +9 -9
- package/dist/BannerSectionSimple.js +14 -14
- package/dist/BrandHitsSection.cjs +3 -3
- package/dist/BrandHitsSection.js +18 -18
- package/dist/CalorieCalculatorSection.cjs +20 -11
- package/dist/CalorieCalculatorSection.js +168 -159
- package/dist/FieldOfInterestsMasonrySection.cjs +6 -6
- package/dist/FieldOfInterestsMasonrySection.js +21 -21
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +5 -5
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +41 -41
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +7 -7
- package/dist/FieldOfInterestsWithTagsCardsSection.js +45 -43
- package/dist/GeneralWithTagsCardsSection.cjs +14 -14
- package/dist/GeneralWithTagsCardsSection.js +37 -40
- package/dist/SalesCampaignsSection.cjs +4 -4
- package/dist/SalesCampaignsSection.js +110 -108
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as i, jsx as
|
|
1
|
+
import { jsxs as i, jsx as a, Fragment as z } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as w, useState as N, useRef as Y } from "react";
|
|
3
3
|
import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { M as
|
|
4
|
+
import { M as C } from "./consts-C1uHV4xc.js";
|
|
5
5
|
import S from "./Button.js";
|
|
6
|
-
import { P as
|
|
7
|
-
import
|
|
6
|
+
import { P as G } from "./index-S5Cd7WrG.js";
|
|
7
|
+
import A from "./RangeSlider.js";
|
|
8
8
|
import _ from "./DropdownItem.js";
|
|
9
9
|
import K from "./DropdownMenu.js";
|
|
10
10
|
import X from "./IconButton.js";
|
|
@@ -16,7 +16,7 @@ const J = y.div`
|
|
|
16
16
|
width: 100%;
|
|
17
17
|
gap: 2.25rem;
|
|
18
18
|
|
|
19
|
-
@media (max-width: ${
|
|
19
|
+
@media (max-width: ${C + "px"}) {
|
|
20
20
|
gap: 2rem;
|
|
21
21
|
}
|
|
22
22
|
`, Q = y.div`
|
|
@@ -37,7 +37,7 @@ const J = y.div`
|
|
|
37
37
|
font-weight: 500;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
@media (max-width: ${
|
|
40
|
+
@media (max-width: ${C + "px"}) {
|
|
41
41
|
}
|
|
42
42
|
`;
|
|
43
43
|
y.div`
|
|
@@ -71,7 +71,7 @@ const U = y.div`
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
@media (max-width: ${
|
|
74
|
+
@media (max-width: ${C + "px"}) {
|
|
75
75
|
gap: 2rem;
|
|
76
76
|
& .btns-footer {
|
|
77
77
|
width: 100%;
|
|
@@ -147,7 +147,7 @@ const U = y.div`
|
|
|
147
147
|
padding-top: 0 !important;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
@media (max-width: ${
|
|
150
|
+
@media (max-width: ${C + "px"}) {
|
|
151
151
|
gap: 0.25rem;
|
|
152
152
|
grid-template-columns: auto;
|
|
153
153
|
|
|
@@ -200,7 +200,7 @@ const U = y.div`
|
|
|
200
200
|
margin: 0 0.62rem;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
@media (max-width: ${
|
|
203
|
+
@media (max-width: ${C + "px"}) {
|
|
204
204
|
padding: 0.75rem;
|
|
205
205
|
gap: 0.75rem;
|
|
206
206
|
|
|
@@ -220,7 +220,7 @@ const U = y.div`
|
|
|
220
220
|
gap: 1rem;
|
|
221
221
|
flex: 1;
|
|
222
222
|
|
|
223
|
-
@media (max-width: ${
|
|
223
|
+
@media (max-width: ${C + "px"}) {
|
|
224
224
|
grid-template-columns: repeat(2, 1fr);
|
|
225
225
|
gap: 0.75rem;
|
|
226
226
|
}
|
|
@@ -250,7 +250,7 @@ const U = y.div`
|
|
|
250
250
|
font-size: 3rem;
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
@media (max-width: ${
|
|
253
|
+
@media (max-width: ${C + "px"}) {
|
|
254
254
|
flex-direction: row;
|
|
255
255
|
gap: 0.25rem;
|
|
256
256
|
font-size: 0.875rem;
|
|
@@ -280,7 +280,7 @@ const U = y.div`
|
|
|
280
280
|
font-family: Arial, sans-serif;
|
|
281
281
|
font-weight: bold;
|
|
282
282
|
font-size: 1rem;
|
|
283
|
-
color: var(--gray-950, #
|
|
283
|
+
color: var(--gray-950, #14161a);
|
|
284
284
|
transition: background-color 0.3s;
|
|
285
285
|
min-height: 2.5rem;
|
|
286
286
|
max-height: 2.5rem;
|
|
@@ -303,7 +303,7 @@ const U = y.div`
|
|
|
303
303
|
position: absolute;
|
|
304
304
|
top: 0;
|
|
305
305
|
bottom: 0;
|
|
306
|
-
left: ${(s) => s.checked ? "
|
|
306
|
+
left: ${(s) => s.checked ? "4.6875rem" : "0"};
|
|
307
307
|
background: var(--success-600, #059669);
|
|
308
308
|
border-radius: 30px;
|
|
309
309
|
transition: left 0.3s;
|
|
@@ -319,6 +319,15 @@ const U = y.div`
|
|
|
319
319
|
min-height: 2.5rem;
|
|
320
320
|
max-height: 2.5rem;
|
|
321
321
|
border: 1px solid var(--success-600, #059669);
|
|
322
|
+
|
|
323
|
+
& .cont {
|
|
324
|
+
min-width: 6.25rem;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
& .cont {
|
|
329
|
+
min-width: 4.6875rem;
|
|
330
|
+
justify-content: center;
|
|
322
331
|
}
|
|
323
332
|
|
|
324
333
|
.text {
|
|
@@ -343,53 +352,53 @@ const U = y.div`
|
|
|
343
352
|
align-items: center;
|
|
344
353
|
gap: 0.38rem;
|
|
345
354
|
}
|
|
346
|
-
`, I = w((s,
|
|
347
|
-
var
|
|
355
|
+
`, I = w((s, x) => {
|
|
356
|
+
var g, u, v, f, p, d, k, T;
|
|
348
357
|
const {
|
|
349
|
-
onChange:
|
|
358
|
+
onChange: m = () => {
|
|
350
359
|
},
|
|
351
|
-
items:
|
|
360
|
+
items: t = [
|
|
352
361
|
{ name: "Male", icon: "mng-lnc-male-02", value: "male" },
|
|
353
362
|
{ name: "Female", value: "female", icon: "mng-lnc-female-02" }
|
|
354
363
|
],
|
|
355
364
|
...l
|
|
356
365
|
} = s, c = /* @__PURE__ */ i("div", { className: "cont", children: [
|
|
357
|
-
/* @__PURE__ */
|
|
358
|
-
/* @__PURE__ */
|
|
366
|
+
/* @__PURE__ */ a("i", { className: (g = t == null ? void 0 : t.at(0)) == null ? void 0 : g.icon }),
|
|
367
|
+
/* @__PURE__ */ a("span", { children: (u = t == null ? void 0 : t.at(0)) == null ? void 0 : u.name })
|
|
359
368
|
] }), n = /* @__PURE__ */ i("div", { className: "cont", children: [
|
|
360
|
-
/* @__PURE__ */
|
|
361
|
-
/* @__PURE__ */
|
|
369
|
+
/* @__PURE__ */ a("span", { children: (v = t == null ? void 0 : t.at(1)) == null ? void 0 : v.name }),
|
|
370
|
+
/* @__PURE__ */ a("i", { className: (f = t == null ? void 0 : t.at(1)) == null ? void 0 : f.icon })
|
|
362
371
|
] }), [e, r] = N(!1);
|
|
363
|
-
return /* @__PURE__ */ i(ne, { ref:
|
|
364
|
-
/* @__PURE__ */
|
|
365
|
-
var
|
|
366
|
-
r(
|
|
367
|
-
|
|
372
|
+
return /* @__PURE__ */ i(ne, { ref: x, checked: e, ...l, children: [
|
|
373
|
+
/* @__PURE__ */ a("input", { type: "checkbox", checked: e, onChange: (h) => {
|
|
374
|
+
var j, L;
|
|
375
|
+
r(h.target.checked), m && m(
|
|
376
|
+
h.target.checked === !0 ? (j = t == null ? void 0 : t.at(1)) == null ? void 0 : j.value : (L = t == null ? void 0 : t.at(0)) == null ? void 0 : L.value
|
|
368
377
|
);
|
|
369
378
|
} }),
|
|
370
|
-
/* @__PURE__ */
|
|
379
|
+
/* @__PURE__ */ a("span", { className: "knob", children: e ? n : c }),
|
|
371
380
|
/* @__PURE__ */ i("span", { className: "text", children: [
|
|
372
381
|
/* @__PURE__ */ i("div", { className: "cont", children: [
|
|
373
|
-
/* @__PURE__ */
|
|
374
|
-
e === !0 && /* @__PURE__ */
|
|
382
|
+
/* @__PURE__ */ a("i", { className: (p = t == null ? void 0 : t.at(0)) == null ? void 0 : p.icon }),
|
|
383
|
+
e === !0 && /* @__PURE__ */ a("span", { className: "hidden-txt", children: (d = t == null ? void 0 : t.at(0)) == null ? void 0 : d.name })
|
|
375
384
|
] }),
|
|
376
385
|
/* @__PURE__ */ i("div", { className: "cont", children: [
|
|
377
|
-
e !== !0 && /* @__PURE__ */
|
|
378
|
-
/* @__PURE__ */
|
|
386
|
+
e !== !0 && /* @__PURE__ */ a("span", { className: "hidden-txt", children: (k = t == null ? void 0 : t.at(1)) == null ? void 0 : k.name }),
|
|
387
|
+
/* @__PURE__ */ a("i", { className: (T = t == null ? void 0 : t.at(1)) == null ? void 0 : T.icon })
|
|
379
388
|
] })
|
|
380
389
|
] })
|
|
381
390
|
] });
|
|
382
391
|
});
|
|
383
392
|
I.propTypes = {
|
|
384
|
-
value:
|
|
385
|
-
handleClick:
|
|
386
|
-
color:
|
|
393
|
+
value: G.any,
|
|
394
|
+
handleClick: G.func,
|
|
395
|
+
color: G.string
|
|
387
396
|
};
|
|
388
|
-
const ie = w((s,
|
|
389
|
-
var
|
|
397
|
+
const ie = w((s, x) => {
|
|
398
|
+
var T;
|
|
390
399
|
const {
|
|
391
|
-
yearsText:
|
|
392
|
-
heightText:
|
|
400
|
+
yearsText: m,
|
|
401
|
+
heightText: t,
|
|
393
402
|
weightText: l,
|
|
394
403
|
genderText: c = "Gender",
|
|
395
404
|
calculateText: n = "Calculate",
|
|
@@ -400,80 +409,80 @@ const ie = w((s, f) => {
|
|
|
400
409
|
{ name: "Male", icon: "mng-lnc-male-02", value: "male" },
|
|
401
410
|
{ name: "Female", value: "female", icon: "mng-lnc-female-02" }
|
|
402
411
|
],
|
|
403
|
-
activityLevels:
|
|
412
|
+
activityLevels: g = [
|
|
404
413
|
{ name: "Very low", code: "veryLow" },
|
|
405
414
|
{ name: "Moderate", code: "moderate" },
|
|
406
415
|
{ name: "Very active", code: "veryActive" }
|
|
407
416
|
],
|
|
408
|
-
activityLevelText:
|
|
409
|
-
goalText:
|
|
410
|
-
goals:
|
|
417
|
+
activityLevelText: u,
|
|
418
|
+
goalText: v,
|
|
419
|
+
goals: f = [
|
|
411
420
|
{ name: "Lose weight", code: "loseWeight", icon: "mng-lnc-weight-scale" },
|
|
412
421
|
{ name: "Maintaining", code: "maintaining", icon: "mng-lnc-move" },
|
|
413
422
|
{ name: "Gain muscle", code: "gainMuscle", icon: "mng-lnc-muscule" }
|
|
414
423
|
],
|
|
415
|
-
onCalculate:
|
|
424
|
+
onCalculate: p = () => {
|
|
416
425
|
}
|
|
417
|
-
} = s,
|
|
426
|
+
} = s, d = Y({
|
|
418
427
|
year: null,
|
|
419
428
|
height: null,
|
|
420
429
|
weight: null,
|
|
421
|
-
gender: (
|
|
430
|
+
gender: (T = o == null ? void 0 : o.at(0)) == null ? void 0 : T.value,
|
|
422
431
|
activityLevel: null,
|
|
423
432
|
goal: null
|
|
424
433
|
}), k = () => {
|
|
425
|
-
|
|
434
|
+
p == null || p(d == null ? void 0 : d.current);
|
|
426
435
|
};
|
|
427
436
|
return /* @__PURE__ */ i(U, { children: [
|
|
428
437
|
/* @__PURE__ */ i(ee, { className: "calorie-calculating", children: [
|
|
429
|
-
/* @__PURE__ */
|
|
430
|
-
/* @__PURE__ */
|
|
438
|
+
/* @__PURE__ */ a("div", { className: "grid-label", children: c }),
|
|
439
|
+
/* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
|
|
431
440
|
I,
|
|
432
441
|
{
|
|
433
442
|
items: o,
|
|
434
|
-
onChange: (
|
|
443
|
+
onChange: (h) => d.current.gender = h
|
|
435
444
|
}
|
|
436
445
|
) }),
|
|
437
|
-
/* @__PURE__ */
|
|
446
|
+
/* @__PURE__ */ a(
|
|
438
447
|
re,
|
|
439
448
|
{
|
|
440
|
-
text:
|
|
441
|
-
onChange: (
|
|
449
|
+
text: m,
|
|
450
|
+
onChange: (h) => d.current.year = h
|
|
442
451
|
}
|
|
443
452
|
),
|
|
444
|
-
/* @__PURE__ */
|
|
453
|
+
/* @__PURE__ */ a(
|
|
445
454
|
le,
|
|
446
455
|
{
|
|
447
|
-
text:
|
|
448
|
-
onChange: (
|
|
456
|
+
text: t,
|
|
457
|
+
onChange: (h) => d.current.height = h
|
|
449
458
|
}
|
|
450
459
|
),
|
|
451
|
-
/* @__PURE__ */
|
|
460
|
+
/* @__PURE__ */ a(
|
|
452
461
|
ce,
|
|
453
462
|
{
|
|
454
463
|
text: l,
|
|
455
|
-
onChange: (
|
|
464
|
+
onChange: (h) => d.current.weight = h
|
|
456
465
|
}
|
|
457
466
|
),
|
|
458
|
-
/* @__PURE__ */
|
|
467
|
+
/* @__PURE__ */ a(
|
|
459
468
|
oe,
|
|
460
469
|
{
|
|
461
|
-
text:
|
|
462
|
-
activityLevels:
|
|
463
|
-
onChange: (
|
|
470
|
+
text: u,
|
|
471
|
+
activityLevels: g,
|
|
472
|
+
onChange: (h) => d.current.activityLevel = h
|
|
464
473
|
}
|
|
465
474
|
),
|
|
466
|
-
/* @__PURE__ */
|
|
475
|
+
/* @__PURE__ */ a(
|
|
467
476
|
se,
|
|
468
477
|
{
|
|
469
|
-
text:
|
|
470
|
-
goals:
|
|
471
|
-
onChange: (
|
|
478
|
+
text: v,
|
|
479
|
+
goals: f,
|
|
480
|
+
onChange: (h) => d.current.goal = h
|
|
472
481
|
}
|
|
473
482
|
)
|
|
474
483
|
] }),
|
|
475
484
|
/* @__PURE__ */ i("div", { className: "btns-footer", children: [
|
|
476
|
-
/* @__PURE__ */
|
|
485
|
+
/* @__PURE__ */ a(
|
|
477
486
|
S,
|
|
478
487
|
{
|
|
479
488
|
type: "button",
|
|
@@ -485,7 +494,7 @@ const ie = w((s, f) => {
|
|
|
485
494
|
children: n
|
|
486
495
|
}
|
|
487
496
|
),
|
|
488
|
-
/* @__PURE__ */
|
|
497
|
+
/* @__PURE__ */ a(
|
|
489
498
|
S,
|
|
490
499
|
{
|
|
491
500
|
type: "button",
|
|
@@ -498,14 +507,14 @@ const ie = w((s, f) => {
|
|
|
498
507
|
)
|
|
499
508
|
] })
|
|
500
509
|
] });
|
|
501
|
-
}), re = w((s,
|
|
502
|
-
const { text:
|
|
510
|
+
}), re = w((s, x) => {
|
|
511
|
+
const { text: m = "Years", onChange: t = () => {
|
|
503
512
|
} } = s, [l, c] = N(1);
|
|
504
513
|
return /* @__PURE__ */ i(z, { children: [
|
|
505
|
-
/* @__PURE__ */
|
|
514
|
+
/* @__PURE__ */ a("div", { className: "grid-label", children: m }),
|
|
506
515
|
/* @__PURE__ */ i("div", { className: "caluclating-group", children: [
|
|
507
|
-
/* @__PURE__ */
|
|
508
|
-
|
|
516
|
+
/* @__PURE__ */ a(
|
|
517
|
+
A,
|
|
509
518
|
{
|
|
510
519
|
className: "range-input-lnc",
|
|
511
520
|
max: 115,
|
|
@@ -516,39 +525,39 @@ const ie = w((s, f) => {
|
|
|
516
525
|
defaultValue: 0,
|
|
517
526
|
onChange: (n) => {
|
|
518
527
|
var e, r;
|
|
519
|
-
c((e = n == null ? void 0 : n.target) == null ? void 0 : e.value),
|
|
528
|
+
c((e = n == null ? void 0 : n.target) == null ? void 0 : e.value), t == null || t((r = n == null ? void 0 : n.target) == null ? void 0 : r.value);
|
|
520
529
|
}
|
|
521
530
|
}
|
|
522
531
|
),
|
|
523
|
-
/* @__PURE__ */
|
|
532
|
+
/* @__PURE__ */ a(
|
|
524
533
|
"input",
|
|
525
534
|
{
|
|
526
535
|
tabIndex: 2,
|
|
527
536
|
type: "text",
|
|
528
537
|
className: "calculating-input",
|
|
529
538
|
onChange: (n) => {
|
|
530
|
-
var e, r, o,
|
|
531
|
-
!isNaN((e = n == null ? void 0 : n.target) == null ? void 0 : e.value) && +((r = n == null ? void 0 : n.target) == null ? void 0 : r.value) >= 0 && c(
|
|
532
|
-
((
|
|
533
|
-
);
|
|
539
|
+
var e, r, o, g, u, v, f, p;
|
|
540
|
+
!isNaN((e = n == null ? void 0 : n.target) == null ? void 0 : e.value) && +((r = n == null ? void 0 : n.target) == null ? void 0 : r.value) >= 0 && (c(
|
|
541
|
+
((g = (o = n == null ? void 0 : n.target) == null ? void 0 : o.value) == null ? void 0 : g.length) > 1 ? (v = (u = n == null ? void 0 : n.target) == null ? void 0 : u.value) == null ? void 0 : v.replace(/^0+/, "") : (f = n == null ? void 0 : n.target) == null ? void 0 : f.value
|
|
542
|
+
), t == null || t((p = n == null ? void 0 : n.target) == null ? void 0 : p.value));
|
|
534
543
|
},
|
|
535
544
|
value: l == null ? void 0 : l.toString()
|
|
536
545
|
}
|
|
537
546
|
)
|
|
538
547
|
] })
|
|
539
548
|
] });
|
|
540
|
-
}), le = w((s,
|
|
541
|
-
const { text:
|
|
549
|
+
}), le = w((s, x) => {
|
|
550
|
+
const { text: m = "Height", unitText: t = "cm", onChange: l = () => {
|
|
542
551
|
} } = s, [c, n] = N(1);
|
|
543
552
|
return /* @__PURE__ */ i(z, { children: [
|
|
544
553
|
/* @__PURE__ */ i("div", { className: "grid-label", children: [
|
|
545
|
-
|
|
554
|
+
m,
|
|
546
555
|
" ",
|
|
547
|
-
/* @__PURE__ */
|
|
556
|
+
/* @__PURE__ */ a("span", { className: "unit", children: `(${t})` })
|
|
548
557
|
] }),
|
|
549
558
|
/* @__PURE__ */ i("div", { className: "caluclating-group", children: [
|
|
550
|
-
/* @__PURE__ */
|
|
551
|
-
|
|
559
|
+
/* @__PURE__ */ a(
|
|
560
|
+
A,
|
|
552
561
|
{
|
|
553
562
|
className: "range-input-lnc",
|
|
554
563
|
max: 273,
|
|
@@ -563,35 +572,35 @@ const ie = w((s, f) => {
|
|
|
563
572
|
}
|
|
564
573
|
}
|
|
565
574
|
),
|
|
566
|
-
/* @__PURE__ */
|
|
575
|
+
/* @__PURE__ */ a(
|
|
567
576
|
"input",
|
|
568
577
|
{
|
|
569
578
|
type: "text",
|
|
570
579
|
tabIndex: 2,
|
|
571
580
|
className: "calculating-input",
|
|
572
581
|
onChange: (e) => {
|
|
573
|
-
var r, o,
|
|
574
|
-
!isNaN((r = e == null ? void 0 : e.target) == null ? void 0 : r.value) && +((o = e == null ? void 0 : e.target) == null ? void 0 : o.value) >= 0 && n(
|
|
575
|
-
((
|
|
576
|
-
);
|
|
582
|
+
var r, o, g, u, v, f, p, d;
|
|
583
|
+
!isNaN((r = e == null ? void 0 : e.target) == null ? void 0 : r.value) && +((o = e == null ? void 0 : e.target) == null ? void 0 : o.value) >= 0 && (n(
|
|
584
|
+
((u = (g = e == null ? void 0 : e.target) == null ? void 0 : g.value) == null ? void 0 : u.length) > 1 ? (f = (v = e == null ? void 0 : e.target) == null ? void 0 : v.value) == null ? void 0 : f.replace(/^0+/, "") : (p = e == null ? void 0 : e.target) == null ? void 0 : p.value
|
|
585
|
+
), l == null || l((d = e == null ? void 0 : e.target) == null ? void 0 : d.value));
|
|
577
586
|
},
|
|
578
587
|
value: c == null ? void 0 : c.toString()
|
|
579
588
|
}
|
|
580
589
|
)
|
|
581
590
|
] })
|
|
582
591
|
] });
|
|
583
|
-
}), ce = w((s,
|
|
584
|
-
const { text:
|
|
592
|
+
}), ce = w((s, x) => {
|
|
593
|
+
const { text: m = "Weight", unitText: t = "cm", onChange: l = () => {
|
|
585
594
|
} } = s, [c, n] = N(1);
|
|
586
595
|
return /* @__PURE__ */ i(z, { children: [
|
|
587
596
|
/* @__PURE__ */ i("div", { className: "grid-label", children: [
|
|
588
|
-
|
|
597
|
+
m,
|
|
589
598
|
" ",
|
|
590
|
-
/* @__PURE__ */
|
|
599
|
+
/* @__PURE__ */ a("span", { className: "unit", children: `(${t})` })
|
|
591
600
|
] }),
|
|
592
601
|
/* @__PURE__ */ i("div", { className: "caluclating-group", children: [
|
|
593
|
-
/* @__PURE__ */
|
|
594
|
-
|
|
602
|
+
/* @__PURE__ */ a(
|
|
603
|
+
A,
|
|
595
604
|
{
|
|
596
605
|
className: "range-input-lnc",
|
|
597
606
|
max: 400,
|
|
@@ -606,33 +615,33 @@ const ie = w((s, f) => {
|
|
|
606
615
|
}
|
|
607
616
|
}
|
|
608
617
|
),
|
|
609
|
-
/* @__PURE__ */
|
|
618
|
+
/* @__PURE__ */ a(
|
|
610
619
|
"input",
|
|
611
620
|
{
|
|
612
621
|
tabIndex: 2,
|
|
613
622
|
type: "text",
|
|
614
623
|
className: "calculating-input",
|
|
615
624
|
onChange: (e) => {
|
|
616
|
-
var r, o,
|
|
617
|
-
!isNaN((r = e == null ? void 0 : e.target) == null ? void 0 : r.value) && +((o = e == null ? void 0 : e.target) == null ? void 0 : o.value) >= 0 && n(
|
|
618
|
-
((
|
|
619
|
-
);
|
|
625
|
+
var r, o, g, u, v, f, p, d;
|
|
626
|
+
!isNaN((r = e == null ? void 0 : e.target) == null ? void 0 : r.value) && +((o = e == null ? void 0 : e.target) == null ? void 0 : o.value) >= 0 && (n(
|
|
627
|
+
((u = (g = e == null ? void 0 : e.target) == null ? void 0 : g.value) == null ? void 0 : u.length) > 1 ? (f = (v = e == null ? void 0 : e.target) == null ? void 0 : v.value) == null ? void 0 : f.replace(/^0+/, "") : (p = e == null ? void 0 : e.target) == null ? void 0 : p.value
|
|
628
|
+
), l == null || l((d = e == null ? void 0 : e.target) == null ? void 0 : d.value));
|
|
620
629
|
},
|
|
621
630
|
value: c == null ? void 0 : c.toString()
|
|
622
631
|
}
|
|
623
632
|
)
|
|
624
633
|
] })
|
|
625
634
|
] });
|
|
626
|
-
}), oe = w((s,
|
|
635
|
+
}), oe = w((s, x) => {
|
|
627
636
|
const {
|
|
628
|
-
text:
|
|
629
|
-
activityLevels:
|
|
637
|
+
text: m = "Activity level",
|
|
638
|
+
activityLevels: t,
|
|
630
639
|
onChange: l = () => {
|
|
631
640
|
}
|
|
632
641
|
} = s, [c, n] = N(null);
|
|
633
642
|
return /* @__PURE__ */ i(z, { children: [
|
|
634
|
-
/* @__PURE__ */
|
|
635
|
-
/* @__PURE__ */
|
|
643
|
+
/* @__PURE__ */ a("div", { className: "grid-label", children: m }),
|
|
644
|
+
/* @__PURE__ */ a("div", { className: "caluclating-group", children: t == null ? void 0 : t.map((e, r) => /* @__PURE__ */ a(
|
|
636
645
|
S,
|
|
637
646
|
{
|
|
638
647
|
type: "button",
|
|
@@ -647,12 +656,12 @@ const ie = w((s, f) => {
|
|
|
647
656
|
r
|
|
648
657
|
)) })
|
|
649
658
|
] });
|
|
650
|
-
}), se = w((s,
|
|
651
|
-
const { text:
|
|
659
|
+
}), se = w((s, x) => {
|
|
660
|
+
const { text: m = "Goal", goals: t, onChange: l = () => {
|
|
652
661
|
} } = s, [c, n] = N(null);
|
|
653
662
|
return /* @__PURE__ */ i(z, { children: [
|
|
654
|
-
/* @__PURE__ */
|
|
655
|
-
/* @__PURE__ */
|
|
663
|
+
/* @__PURE__ */ a("div", { className: "grid-label", children: m }),
|
|
664
|
+
/* @__PURE__ */ a("div", { className: "caluclating-group group-activity", children: t == null ? void 0 : t.map((e, r) => /* @__PURE__ */ a(
|
|
656
665
|
S,
|
|
657
666
|
{
|
|
658
667
|
type: "button",
|
|
@@ -663,77 +672,77 @@ const ie = w((s, f) => {
|
|
|
663
672
|
n(e == null ? void 0 : e.code), l(e == null ? void 0 : e.code);
|
|
664
673
|
},
|
|
665
674
|
children: /* @__PURE__ */ i("div", { className: "btn-cnt", children: [
|
|
666
|
-
/* @__PURE__ */
|
|
667
|
-
/* @__PURE__ */
|
|
675
|
+
/* @__PURE__ */ a("i", { className: e == null ? void 0 : e.icon }),
|
|
676
|
+
/* @__PURE__ */ a("span", { children: e == null ? void 0 : e.name })
|
|
668
677
|
] })
|
|
669
678
|
},
|
|
670
679
|
r
|
|
671
680
|
)) })
|
|
672
681
|
] });
|
|
673
|
-
}), de = w((s,
|
|
682
|
+
}), de = w((s, x) => {
|
|
674
683
|
const {
|
|
675
|
-
caloriesText:
|
|
676
|
-
carbsText:
|
|
684
|
+
caloriesText: m = "Calories",
|
|
685
|
+
carbsText: t = "Carbs",
|
|
677
686
|
proteinText: l = "Protein",
|
|
678
687
|
fatsText: c = "Fats",
|
|
679
688
|
calculateAgainText: n = "Calculate again",
|
|
680
689
|
calories: e,
|
|
681
690
|
carbs: r,
|
|
682
691
|
protein: o,
|
|
683
|
-
fats:
|
|
684
|
-
onGoBack:
|
|
692
|
+
fats: g,
|
|
693
|
+
onGoBack: u = () => {
|
|
685
694
|
}
|
|
686
695
|
} = s;
|
|
687
696
|
return /* @__PURE__ */ i(te, { children: [
|
|
688
697
|
/* @__PURE__ */ i(ae, { children: [
|
|
689
698
|
/* @__PURE__ */ i(R, { color: "var(--warning-600)", children: [
|
|
690
|
-
/* @__PURE__ */
|
|
699
|
+
/* @__PURE__ */ a("i", { className: "mng-lnc-fire" }),
|
|
691
700
|
/* @__PURE__ */ i("div", { className: "subgroup", children: [
|
|
692
701
|
/* @__PURE__ */ i("div", { children: [
|
|
693
702
|
e,
|
|
694
703
|
" kcal"
|
|
695
704
|
] }),
|
|
696
|
-
/* @__PURE__ */
|
|
705
|
+
/* @__PURE__ */ a("div", { className: "subtext", children: m })
|
|
697
706
|
] })
|
|
698
707
|
] }),
|
|
699
708
|
/* @__PURE__ */ i(R, { color: "var(--secondary-400)", children: [
|
|
700
|
-
/* @__PURE__ */
|
|
709
|
+
/* @__PURE__ */ a("i", { className: "mng-lnc-leaf" }),
|
|
701
710
|
/* @__PURE__ */ i("div", { className: "subgroup", children: [
|
|
702
711
|
/* @__PURE__ */ i("div", { children: [
|
|
703
712
|
r,
|
|
704
713
|
"g"
|
|
705
714
|
] }),
|
|
706
|
-
/* @__PURE__ */
|
|
715
|
+
/* @__PURE__ */ a("div", { className: "subtext", children: t })
|
|
707
716
|
] })
|
|
708
717
|
] }),
|
|
709
718
|
/* @__PURE__ */ i(R, { color: "var(--info-500)", children: [
|
|
710
|
-
/* @__PURE__ */
|
|
719
|
+
/* @__PURE__ */ a("i", { className: "mng-lnc-meat" }),
|
|
711
720
|
/* @__PURE__ */ i("div", { className: "subgroup", children: [
|
|
712
721
|
/* @__PURE__ */ i("div", { children: [
|
|
713
722
|
o,
|
|
714
723
|
"g"
|
|
715
724
|
] }),
|
|
716
|
-
/* @__PURE__ */
|
|
725
|
+
/* @__PURE__ */ a("div", { className: "subtext", children: l })
|
|
717
726
|
] })
|
|
718
727
|
] }),
|
|
719
728
|
/* @__PURE__ */ i(R, { color: "var(--warning-300)", children: [
|
|
720
|
-
/* @__PURE__ */
|
|
729
|
+
/* @__PURE__ */ a("i", { className: "mng-lnc-meat" }),
|
|
721
730
|
/* @__PURE__ */ i("div", { className: "subgroup", children: [
|
|
722
731
|
/* @__PURE__ */ i("div", { children: [
|
|
723
|
-
|
|
732
|
+
g,
|
|
724
733
|
"g"
|
|
725
734
|
] }),
|
|
726
|
-
/* @__PURE__ */
|
|
735
|
+
/* @__PURE__ */ a("div", { className: "subtext", children: c })
|
|
727
736
|
] })
|
|
728
737
|
] })
|
|
729
738
|
] }),
|
|
730
739
|
/* @__PURE__ */ i("div", { className: "dropdown-group", children: [
|
|
731
|
-
/* @__PURE__ */
|
|
732
|
-
/* @__PURE__ */
|
|
740
|
+
/* @__PURE__ */ a("div", { className: "vertical-line" }),
|
|
741
|
+
/* @__PURE__ */ a(
|
|
733
742
|
K,
|
|
734
743
|
{
|
|
735
744
|
color: "neutral",
|
|
736
|
-
control: /* @__PURE__ */
|
|
745
|
+
control: /* @__PURE__ */ a(
|
|
737
746
|
X,
|
|
738
747
|
{
|
|
739
748
|
borderRadius: "curved",
|
|
@@ -746,68 +755,68 @@ const ie = w((s, f) => {
|
|
|
746
755
|
),
|
|
747
756
|
offsetValue: -10,
|
|
748
757
|
placement: "bottom-end",
|
|
749
|
-
children: /* @__PURE__ */
|
|
758
|
+
children: /* @__PURE__ */ a(_, { icon: "star", onClick: u, children: n })
|
|
750
759
|
}
|
|
751
760
|
)
|
|
752
761
|
] })
|
|
753
762
|
] });
|
|
754
|
-
}), me = w((s,
|
|
763
|
+
}), me = w((s, x) => {
|
|
755
764
|
const {
|
|
756
|
-
caloriesText:
|
|
757
|
-
carbsText:
|
|
765
|
+
caloriesText: m,
|
|
766
|
+
carbsText: t,
|
|
758
767
|
proteinText: l,
|
|
759
768
|
fatsText: c,
|
|
760
769
|
calculateAgainText: n,
|
|
761
770
|
yearsText: e,
|
|
762
771
|
heightText: r,
|
|
763
772
|
weightText: o,
|
|
764
|
-
genderText:
|
|
765
|
-
calculateText:
|
|
766
|
-
closeText:
|
|
767
|
-
genders:
|
|
768
|
-
activityLevels:
|
|
769
|
-
activityLevelText:
|
|
773
|
+
genderText: g,
|
|
774
|
+
calculateText: u,
|
|
775
|
+
closeText: v,
|
|
776
|
+
genders: f,
|
|
777
|
+
activityLevels: p,
|
|
778
|
+
activityLevelText: d,
|
|
770
779
|
goalText: k,
|
|
771
|
-
goals:
|
|
772
|
-
title:
|
|
773
|
-
subtitle:
|
|
774
|
-
list:
|
|
780
|
+
goals: T,
|
|
781
|
+
title: h = "Daily calorie calculator",
|
|
782
|
+
subtitle: j = "Lorem ipsum dolor sit amet",
|
|
783
|
+
list: L = [
|
|
775
784
|
"Ovdje može pisati zašto je bitno da znamo kolika nam je dnevna kalorijska potreba.",
|
|
776
785
|
"Ovdje može pisati zašto je bitno da znamo kolikanam je dnevna kalorijska potreba.",
|
|
777
786
|
"From certified dealers from all over Europe"
|
|
778
787
|
],
|
|
779
788
|
buttonText: M = "Calculate calorie needs"
|
|
780
789
|
} = s, [W, $] = N(1), [b, B] = N(0);
|
|
781
|
-
return /* @__PURE__ */ i(J, { ref:
|
|
790
|
+
return /* @__PURE__ */ i(J, { ref: x, children: [
|
|
782
791
|
/* @__PURE__ */ i(Q, { children: [
|
|
783
|
-
/* @__PURE__ */
|
|
784
|
-
/* @__PURE__ */
|
|
792
|
+
/* @__PURE__ */ a("div", { className: "header-title", children: h }),
|
|
793
|
+
/* @__PURE__ */ a("div", { className: "header-subtitle", children: j })
|
|
785
794
|
] }),
|
|
786
|
-
W === 1 && /* @__PURE__ */
|
|
795
|
+
W === 1 && /* @__PURE__ */ a(
|
|
787
796
|
Z,
|
|
788
797
|
{
|
|
789
798
|
buttonText: M,
|
|
790
799
|
onButtonAction: () => {
|
|
791
800
|
$(2);
|
|
792
801
|
},
|
|
793
|
-
list:
|
|
802
|
+
list: L
|
|
794
803
|
}
|
|
795
804
|
),
|
|
796
|
-
W === 2 && /* @__PURE__ */
|
|
805
|
+
W === 2 && /* @__PURE__ */ a(
|
|
797
806
|
ie,
|
|
798
807
|
{
|
|
799
808
|
yearsText: e,
|
|
800
809
|
heightText: r,
|
|
801
810
|
weightText: o,
|
|
802
|
-
genderText:
|
|
803
|
-
calculateText:
|
|
804
|
-
closeText:
|
|
811
|
+
genderText: g,
|
|
812
|
+
calculateText: u,
|
|
813
|
+
closeText: v,
|
|
805
814
|
onClose: () => $(1),
|
|
806
|
-
genders:
|
|
807
|
-
activityLevels:
|
|
808
|
-
activityLevelText:
|
|
815
|
+
genders: f,
|
|
816
|
+
activityLevels: p,
|
|
817
|
+
activityLevelText: d,
|
|
809
818
|
goalText: k,
|
|
810
|
-
goals:
|
|
819
|
+
goals: T,
|
|
811
820
|
onCalculate: ({
|
|
812
821
|
gender: V,
|
|
813
822
|
year: E,
|
|
@@ -828,11 +837,11 @@ const ie = w((s, f) => {
|
|
|
828
837
|
}
|
|
829
838
|
}
|
|
830
839
|
),
|
|
831
|
-
W === 3 && /* @__PURE__ */
|
|
840
|
+
W === 3 && /* @__PURE__ */ a(
|
|
832
841
|
de,
|
|
833
842
|
{
|
|
834
|
-
caloriesText:
|
|
835
|
-
carbsText:
|
|
843
|
+
caloriesText: m,
|
|
844
|
+
carbsText: t,
|
|
836
845
|
proteinText: l,
|
|
837
846
|
fatsText: c,
|
|
838
847
|
calculateAgainText: n,
|
|
@@ -844,7 +853,7 @@ const ie = w((s, f) => {
|
|
|
844
853
|
}
|
|
845
854
|
)
|
|
846
855
|
] });
|
|
847
|
-
}), ke = w((s,
|
|
856
|
+
}), ke = w((s, x) => /* @__PURE__ */ a(me, { ref: x, ...s }));
|
|
848
857
|
export {
|
|
849
858
|
ke as default
|
|
850
859
|
};
|