@lanaco/lnc-react-ui 4.0.80 → 4.0.81

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.
@@ -1,27 +1,677 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { forwardRef as u } from "react";
3
- import { L as p } from "./index-CcLiL4eM.js";
4
- const m = u((o, a) => {
5
- const {
6
- loanCalculatorTitle: l,
7
- loanCalculatorText: t,
8
- loanCalculatorPlaceholder: r,
9
- openCalculatorText: e,
10
- onOpenCalculator: c = () => {
11
- }
12
- } = o;
13
- return /* @__PURE__ */ n(
14
- p,
1
+ import { jsxs as t, jsx as e, Fragment as G } from "react/jsx-runtime";
2
+ import { forwardRef as I, useState as B, useRef as J } from "react";
3
+ import { L as Q } from "./index-D0Cl3mpJ.js";
4
+ import X from "./Modal.js";
5
+ import D from "./Button.js";
6
+ import F from "./TextInput.js";
7
+ import K from "./RangeSlider.js";
8
+ import { s as V } from "./emotion-styled.browser.esm-BNN1dTl3.js";
9
+ import Y from "./IconButton.js";
10
+ const Z = V.div`
11
+ display: flex;
12
+ align-items: center;
13
+ gap: 0.5rem;
14
+ align-self: stretch;
15
+ position: relative;
16
+ margin-bottom: 0.5rem;
17
+ margin-top: -0.5rem;
18
+ padding-bottom: 1rem;
19
+
20
+ &::after {
21
+ content: "";
22
+ position: absolute;
23
+ left: -1.5rem;
24
+ right: -1.5rem;
25
+ bottom: 0;
26
+ height: 0.0625rem;
27
+ background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
28
+ z-index: 1;
29
+ }
30
+
31
+ & .header__title {
32
+ color: var(--gray-950, #14161a);
33
+ text-align: center;
34
+ font-size: 1rem;
35
+ font-style: normal;
36
+ font-weight: 500;
37
+ line-height: 1.5rem;
38
+ width: 100%;
39
+ }
40
+
41
+ & .header__action {
42
+ position: absolute;
43
+ right: 0;
44
+ }
45
+ `, U = V.div`
46
+ display: flex;
47
+ justify-content: flex-end;
48
+ align-items: center;
49
+ align-self: stretch;
50
+ padding: 0.5rem;
51
+ border-top: 0.0625rem solid var(--neutral-95008, rgba(20, 22, 26, 0.08));
52
+
53
+ & .footer__action {
54
+ color: var(--gray-950-beta, #14161a);
55
+ font-size: 0.875rem;
56
+ font-style: normal;
57
+ font-weight: 500;
58
+ line-height: 1.25rem;
59
+ letter-spacing: -0.0056rem;
60
+ }
61
+ `, ee = V.div`
62
+ display: flex;
63
+ align-items: flex-start;
64
+ gap: 2rem;
65
+ align-self: stretch;
66
+ padding-top: 0.5rem;
67
+
68
+ & .loan-calculator__right {
69
+ max-width: 22rem;
70
+
71
+ & .loan-calculator__summary {
72
+ display: flex;
73
+ padding: 1.25rem;
74
+ flex-direction: column;
75
+ align-items: flex-start;
76
+ gap: 1.25rem;
77
+ flex: 1 0 0;
78
+ border-radius: 0.75rem;
79
+ border: 0.0625rem solid var(--neutral-95008, rgba(20, 22, 26, 0.08));
80
+ background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
81
+
82
+ & .summary__hint {
83
+ color: var(--gray-600, #676e79);
84
+ font-size: 0.75rem;
85
+ font-style: normal;
86
+ font-weight: 400;
87
+ line-height: 1rem;
88
+ letter-spacing: 0.025rem;
89
+ }
90
+
91
+ & .summary__separator {
92
+ height: 1px;
93
+ align-self: stretch;
94
+ background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
95
+ }
96
+
97
+ & .summary__down {
98
+ display: flex;
99
+ flex-direction: column;
100
+ align-items: center;
101
+ gap: 0.5rem;
102
+ align-self: stretch;
103
+
104
+ & .summary__title-wrapper {
105
+ display: flex;
106
+ justify-content: space-between;
107
+ align-items: center;
108
+ align-self: stretch;
109
+
110
+ & .summary__title {
111
+ color: var(--gray-950, #14161a);
112
+ font-size: 0.875rem;
113
+ font-style: normal;
114
+ font-weight: 400;
115
+ line-height: 1.25rem;
116
+ letter-spacing: 0.0156rem;
117
+
118
+ &.strong {
119
+ font-weight: 600;
120
+ letter-spacing: 0.0063rem;
121
+ }
122
+ }
123
+ }
124
+ }
125
+
126
+ & .summary__up {
127
+ display: flex;
128
+ flex-direction: column;
129
+ align-items: flex-start;
130
+ gap: 8px;
131
+ align-self: stretch;
132
+
133
+ & .summary__title-wrapper {
134
+ display: flex;
135
+ flex-direction: column;
136
+ align-items: flex-start;
137
+ gap: 0.125rem;
138
+
139
+ & .summary__title {
140
+ color: var(--gray-950, #14161a);
141
+ font-size: 1rem;
142
+ font-style: normal;
143
+ font-weight: 600;
144
+ line-height: 1.5rem;
145
+ letter-spacing: 0.0063rem;
146
+
147
+ &.large {
148
+ font-size: 1.375rem;
149
+ font-style: normal;
150
+ font-weight: 600;
151
+ line-height: 1.75rem;
152
+ }
153
+ }
154
+ }
155
+ }
156
+ }
157
+ }
158
+
159
+ & .loan-calculator__left {
160
+ display: flex;
161
+ flex-direction: column;
162
+ align-items: flex-start;
163
+ gap: 2rem;
164
+
165
+ & .loan-calculator__submit {
166
+ width: 100%;
167
+ }
168
+
169
+ & .loan-calculator__range-inputs {
170
+ display: flex;
171
+ flex-direction: column;
172
+ align-items: flex-start;
173
+ gap: 1.5rem;
174
+ align-self: stretch;
175
+
176
+ & .loan-calculator__range-input {
177
+ display: flex;
178
+ flex-direction: column;
179
+ align-items: flex-start;
180
+ gap: 1rem;
181
+ align-self: stretch;
182
+
183
+ & .range-input__hint {
184
+ color: var(--gray-500, #868c98);
185
+ font-size: 0.75rem;
186
+ font-style: normal;
187
+ font-weight: 400;
188
+ line-height: 1rem;
189
+ letter-spacing: 0.025rem;
190
+
191
+ &.center {
192
+ display: flex;
193
+ justify-content: space-between;
194
+ align-items: center;
195
+ align-self: stretch;
196
+ }
197
+ }
198
+
199
+ & .range-input__form-field {
200
+ display: flex;
201
+ flex-direction: column;
202
+ align-items: flex-start;
203
+ gap: 0.75rem;
204
+ align-self: stretch;
205
+
206
+ & .range-input__label-field {
207
+ display: flex;
208
+ align-items: center;
209
+ align-self: stretch;
210
+ justify-content: space-between;
211
+ & .range-input__label {
212
+ color: var(--gray-950, #14161a);
213
+ font-size: 0.875rem;
214
+ font-style: normal;
215
+ font-weight: 500;
216
+ line-height: 1.25rem;
217
+ letter-spacing: -0.0056rem;
218
+ }
219
+
220
+ & .range-input__text {
221
+ max-width: 100px;
222
+ width: 100%;
223
+ }
224
+ }
225
+
226
+ & .range-input__ranger-wrapper {
227
+ display: flex;
228
+ flex-direction: column;
229
+ width: 100%;
230
+ }
231
+ }
232
+ }
233
+ }
234
+ }
235
+ `, te = I(
236
+ ({
237
+ defaultLoanAmount: n = 2e4,
238
+ defaultInterestRate: l = 5,
239
+ defaultLoanPeriod: s = 36,
240
+ monthlyPayment: v = 599,
241
+ totalInterestPaid: y = 21579,
242
+ currency: r = "KM",
243
+ loanPeriodUnit: c = "months",
244
+ minLoanAmount: d = 1,
245
+ maxLoanAmount: u = 3e5,
246
+ minInterestRate: h = 1,
247
+ maxInterestRate: g = 15,
248
+ isFixedInterestRate: x = !1,
249
+ minLoanPeriod: p = 1,
250
+ maxLoanPeriod: _ = 240,
251
+ loanAmountLabel: b = "Loan amount",
252
+ loanAmountHint: N = "Enter the total loan amount you want to borrow.",
253
+ interestRateLabel: C = "Interest rate",
254
+ interestRateHint: w = "Enter the annual interest rate for loan.",
255
+ loanPeriodLabel: L = "Loan period",
256
+ loanPeriodHint: $ = "Enter the duration of the loan in months.",
257
+ submitText: T = "Calculate",
258
+ summaryMonthlyPaymentText: M = "Monthly payment",
259
+ summaryMonthlyPaymentHint: E = "Lorem ipsum dolor sit amet consectetur. Eu eu velit faucibus hendrerit egestas aliquam.",
260
+ summaryTotalPaymentText: P = "Total interest paid",
261
+ summaryTotalPaymentHint: z = "Lorem ipsum dolor sit amet consectetur. Sed sed viverra sed lobortis. At eu tellus tristique hac quis.",
262
+ handleSubmit: S = () => {
263
+ }
264
+ }, R) => {
265
+ const [f, k] = B(n), [i, A] = B(l), [m, O] = B(s), H = (a) => {
266
+ var o;
267
+ k(+((o = a == null ? void 0 : a.target) == null ? void 0 : o.value));
268
+ }, j = (a) => {
269
+ var o;
270
+ A(+((o = a == null ? void 0 : a.target) == null ? void 0 : o.value));
271
+ }, q = (a) => {
272
+ var o;
273
+ O(+((o = a == null ? void 0 : a.target) == null ? void 0 : o.value));
274
+ }, W = () => {
275
+ S({
276
+ loanAmount: f,
277
+ interestRate: i,
278
+ loanPeriod: m
279
+ });
280
+ };
281
+ return /* @__PURE__ */ t(ee, { children: [
282
+ /* @__PURE__ */ t("div", { className: "loan-calculator__left", children: [
283
+ /* @__PURE__ */ t("div", { className: "loan-calculator__range-inputs", children: [
284
+ /* @__PURE__ */ e("div", { className: "loan-calculator__range-input", children: /* @__PURE__ */ t("div", { className: "range-input__form-field", children: [
285
+ /* @__PURE__ */ t("div", { className: "range-input__label-field", children: [
286
+ /* @__PURE__ */ e("div", { className: "range-input__label", children: `${b} (${r})` }),
287
+ /* @__PURE__ */ e(
288
+ F,
289
+ {
290
+ value: f,
291
+ onChange: H,
292
+ className: "range-input__text"
293
+ }
294
+ )
295
+ ] }),
296
+ /* @__PURE__ */ t("div", { className: "range-input__ranger-wrapper", children: [
297
+ /* @__PURE__ */ e(
298
+ K,
299
+ {
300
+ className: "range-input__ranger",
301
+ defaultValue: f,
302
+ value: f,
303
+ min: d,
304
+ max: u,
305
+ onChange: H
306
+ }
307
+ ),
308
+ /* @__PURE__ */ t("div", { className: "range-input__hint center", children: [
309
+ /* @__PURE__ */ e("div", { children: `${d} ${r}` }),
310
+ /* @__PURE__ */ e("div", { children: `${u} ${r}` })
311
+ ] })
312
+ ] }),
313
+ /* @__PURE__ */ e("div", { className: "range-input__hint", children: N })
314
+ ] }) }),
315
+ /* @__PURE__ */ e("div", { className: "loan-calculator__range-input", children: /* @__PURE__ */ t("div", { className: "range-input__form-field", children: [
316
+ /* @__PURE__ */ t("div", { className: "range-input__label-field", children: [
317
+ /* @__PURE__ */ e("div", { className: "range-input__label", children: `${C} (%)` }),
318
+ /* @__PURE__ */ e(
319
+ F,
320
+ {
321
+ value: i,
322
+ onChange: j,
323
+ className: "range-input__text"
324
+ }
325
+ )
326
+ ] }),
327
+ /* @__PURE__ */ t("div", { className: "range-input__ranger-wrapper", children: [
328
+ /* @__PURE__ */ e(
329
+ K,
330
+ {
331
+ className: "range-input__ranger",
332
+ defaultValue: i,
333
+ value: i,
334
+ min: h,
335
+ max: g,
336
+ disabled: x,
337
+ onChange: j
338
+ }
339
+ ),
340
+ /* @__PURE__ */ t("div", { className: "range-input__hint center", children: [
341
+ /* @__PURE__ */ e("div", { children: `${h} %` }),
342
+ /* @__PURE__ */ e("div", { children: `${g} %` })
343
+ ] })
344
+ ] }),
345
+ /* @__PURE__ */ e("div", { className: "range-input__hint", children: w })
346
+ ] }) }),
347
+ /* @__PURE__ */ e("div", { className: "loan-calculator__range-input", children: /* @__PURE__ */ t("div", { className: "range-input__form-field", children: [
348
+ /* @__PURE__ */ t("div", { className: "range-input__label-field", children: [
349
+ /* @__PURE__ */ e("div", { className: "range-input__label", children: `${L} (${c})` }),
350
+ /* @__PURE__ */ e(
351
+ F,
352
+ {
353
+ value: m,
354
+ onChange: q,
355
+ className: "range-input__text"
356
+ }
357
+ )
358
+ ] }),
359
+ /* @__PURE__ */ t("div", { className: "range-input__ranger-wrapper", children: [
360
+ /* @__PURE__ */ e(
361
+ K,
362
+ {
363
+ className: "range-input__ranger",
364
+ defaultValue: m,
365
+ value: m,
366
+ min: p,
367
+ max: _,
368
+ onChange: q
369
+ }
370
+ ),
371
+ /* @__PURE__ */ t("div", { className: "range-input__hint center", children: [
372
+ /* @__PURE__ */ e("div", { children: `${p} ${c}` }),
373
+ /* @__PURE__ */ e("div", { children: `${_} ${c}` })
374
+ ] })
375
+ ] }),
376
+ /* @__PURE__ */ e("div", { className: "range-input__hint", children: $ })
377
+ ] }) })
378
+ ] }),
379
+ /* @__PURE__ */ e(
380
+ D,
381
+ {
382
+ text: T,
383
+ className: "loan-calculator__submit",
384
+ onClick: W
385
+ }
386
+ )
387
+ ] }),
388
+ /* @__PURE__ */ e("div", { className: "loan-calculator__right", children: /* @__PURE__ */ t("div", { className: "loan-calculator__summary", children: [
389
+ /* @__PURE__ */ t("div", { className: "summary__up", children: [
390
+ /* @__PURE__ */ t("div", { className: "summary__title-wrapper", children: [
391
+ /* @__PURE__ */ e("div", { className: "summary__title", children: M }),
392
+ /* @__PURE__ */ e("div", { className: "summary__title large", children: `${v} ${r}` })
393
+ ] }),
394
+ /* @__PURE__ */ e("div", { className: "summary__hint", children: E })
395
+ ] }),
396
+ /* @__PURE__ */ e("div", { className: "summary__separator" }),
397
+ /* @__PURE__ */ t("div", { className: "summary__down", children: [
398
+ /* @__PURE__ */ t("div", { className: "summary__title-wrapper", children: [
399
+ /* @__PURE__ */ e("div", { className: "summary__title strong", children: P }),
400
+ /* @__PURE__ */ e("div", { className: "summary__title", children: `${y} ${r}` })
401
+ ] }),
402
+ /* @__PURE__ */ e("div", { className: "summary__hint", children: z })
403
+ ] })
404
+ ] }) })
405
+ ] });
406
+ }
407
+ ), ae = I(
408
+ ({
409
+ defaultLoanAmount: n = 2e4,
410
+ defaultInterestRate: l = 5,
411
+ defaultLoanPeriod: s = 36,
412
+ monthlyPayment: v = 599,
413
+ totalInterestPaid: y = 21579,
414
+ currency: r = "KM",
415
+ loanPeriodUnit: c = "months",
416
+ minLoanAmount: d = 1,
417
+ maxLoanAmount: u = 3e5,
418
+ minInterestRate: h = 1,
419
+ maxInterestRate: g = 15,
420
+ minLoanPeriod: x = 1,
421
+ maxLoanPeriod: p = 240,
422
+ isFixedInterestRate: _ = !1,
423
+ loanAmountLabel: b = "Loan amount",
424
+ loanAmountHint: N = "Enter the total loan amount you want to borrow.",
425
+ interestRateLabel: C = "Interest rate",
426
+ interestRateHint: w = "Enter the annual interest rate for loan.",
427
+ loanPeriodLabel: L = "Loan period",
428
+ loanPeriodHint: $ = "Enter the duration of the loan in months.",
429
+ submitText: T = "Calculate",
430
+ summaryMonthlyPaymentText: M = "Monthly payment",
431
+ summaryMonthlyPaymentHint: E = "Lorem ipsum dolor sit amet consectetur. Eu eu velit faucibus hendrerit egestas aliquam.",
432
+ summaryTotalPaymentText: P = "Total interest paid",
433
+ summaryTotalPaymentHint: z = "Lorem ipsum dolor sit amet consectetur. Sed sed viverra sed lobortis. At eu tellus tristique hac quis.",
434
+ handleSubmit: S = () => {
435
+ }
436
+ }, R) => /* @__PURE__ */ e(
437
+ te,
15
438
  {
16
- ref: a,
17
- title: l,
18
- text: t,
19
- openCalculatorText: e,
20
- onOpenCalculator: c,
21
- placeholderText: r
22
- }
23
- );
439
+ defaultLoanAmount: n,
440
+ defaultInterestRate: l,
441
+ defaultLoanPeriod: s,
442
+ monthlyPayment: v,
443
+ totalInterestPaid: y,
444
+ currency: r,
445
+ loanPeriodUnit: c,
446
+ minLoanAmount: d,
447
+ maxLoanAmount: u,
448
+ minInterestRate: h,
449
+ maxInterestRate: g,
450
+ isFixedInterestRate: _,
451
+ minLoanPeriod: x,
452
+ maxLoanPeriod: p,
453
+ loanAmountLabel: b,
454
+ loanAmountHint: N,
455
+ interestRateLabel: C,
456
+ interestRateHint: w,
457
+ loanPeriodLabel: L,
458
+ loanPeriodHint: $,
459
+ submitText: T,
460
+ summaryMonthlyPaymentText: M,
461
+ summaryMonthlyPaymentHint: E,
462
+ summaryTotalPaymentText: P,
463
+ summaryTotalPaymentHint: z,
464
+ handleSubmit: S
465
+ }
466
+ )
467
+ ), ne = I(
468
+ ({ headerTitleText: n = "Loan calculator", handleClick: l = () => {
469
+ } }, s) => /* @__PURE__ */ t(Z, { children: [
470
+ /* @__PURE__ */ e("div", { className: "header__title", children: n }),
471
+ /* @__PURE__ */ e(
472
+ Y,
473
+ {
474
+ icon: "times",
475
+ borderRadius: "curved",
476
+ btnType: "basic",
477
+ color: "neutral",
478
+ size: "small",
479
+ className: "header__action",
480
+ onClick: l
481
+ }
482
+ )
483
+ ] })
484
+ ), le = I(
485
+ ({ footerTitleText: n = "Close", handleClick: l = () => {
486
+ } }, s) => /* @__PURE__ */ e(U, { children: /* @__PURE__ */ e(
487
+ D,
488
+ {
489
+ text: n,
490
+ btnType: "basic",
491
+ color: "neutral",
492
+ onClick: l,
493
+ className: "footer__action"
494
+ }
495
+ ) })
496
+ ), re = I(
497
+ ({
498
+ defaultLoanAmount: n = 2e4,
499
+ defaultInterestRate: l = 5,
500
+ defaultLoanPeriod: s = 36,
501
+ monthlyPayment: v = 599,
502
+ totalInterestPaid: y = 21579,
503
+ currency: r = "KM",
504
+ loanPeriodUnit: c = "months",
505
+ minLoanAmount: d = 1,
506
+ maxLoanAmount: u = 3e5,
507
+ minInterestRate: h = 1,
508
+ maxInterestRate: g = 15,
509
+ isFixedInterestRate: x = !1,
510
+ minLoanPeriod: p = 1,
511
+ maxLoanPeriod: _ = 240,
512
+ headerTitleText: b = "Loan calculator",
513
+ footerTitleText: N = "Close",
514
+ loanAmountLabel: C = "Loan amount",
515
+ loanAmountHint: w = "Enter the total loan amount you want to borrow.",
516
+ interestRateLabel: L = "Interest rate",
517
+ interestRateHint: $ = "Enter the annual interest rate for loan.",
518
+ loanPeriodLabel: T = "Loan period",
519
+ loanPeriodHint: M = "Enter the duration of the loan in months.",
520
+ submitText: E = "Calculate",
521
+ summaryMonthlyPaymentText: P = "Monthly payment",
522
+ summaryMonthlyPaymentHint: z = "Lorem ipsum dolor sit amet consectetur. Eu eu velit faucibus hendrerit egestas aliquam.",
523
+ summaryTotalPaymentText: S = "Total interest paid",
524
+ summaryTotalPaymentHint: R = "Lorem ipsum dolor sit amet consectetur. Sed sed viverra sed lobortis. At eu tellus tristique hac quis.",
525
+ handleSubmit: f = () => {
526
+ },
527
+ handleCancel: k = () => {
528
+ }
529
+ }, i) => {
530
+ const A = () => {
531
+ var m;
532
+ (m = i == null ? void 0 : i.current) == null || m.close(), k();
533
+ };
534
+ return /* @__PURE__ */ e(
535
+ X,
536
+ {
537
+ ref: i,
538
+ header: /* @__PURE__ */ e(
539
+ ne,
540
+ {
541
+ headerTitleText: b,
542
+ handleClick: A
543
+ }
544
+ ),
545
+ footer: /* @__PURE__ */ e(
546
+ le,
547
+ {
548
+ footerTitleText: N,
549
+ handleClick: A
550
+ }
551
+ ),
552
+ showCloseButton: !1,
553
+ children: /* @__PURE__ */ e(
554
+ ae,
555
+ {
556
+ defaultLoanAmount: n,
557
+ defaultInterestRate: l,
558
+ defaultLoanPeriod: s,
559
+ monthlyPayment: v,
560
+ totalInterestPaid: y,
561
+ currency: r,
562
+ loanPeriodUnit: c,
563
+ minLoanAmount: d,
564
+ maxLoanAmount: u,
565
+ minInterestRate: h,
566
+ maxInterestRate: g,
567
+ minLoanPeriod: p,
568
+ maxLoanPeriod: _,
569
+ isFixedInterestRate: x,
570
+ loanAmountLabel: C,
571
+ loanAmountHint: w,
572
+ interestRateLabel: L,
573
+ interestRateHint: $,
574
+ loanPeriodLabel: T,
575
+ loanPeriodHint: M,
576
+ submitText: E,
577
+ summaryMonthlyPaymentText: P,
578
+ summaryMonthlyPaymentHint: z,
579
+ summaryTotalPaymentText: S,
580
+ summaryTotalPaymentHint: R,
581
+ handleSubmit: f
582
+ }
583
+ )
584
+ }
585
+ );
586
+ }
587
+ ), pe = I((n, l) => {
588
+ const {
589
+ loanCalculatorTitle: s,
590
+ loanCalculatorText: v,
591
+ loanCalculatorPlaceholder: y,
592
+ openCalculatorText: r,
593
+ onOpenCalculator: c = (a) => {
594
+ },
595
+ defaultLoanAmount: d,
596
+ defaultInterestRate: u,
597
+ defaultLoanPeriod: h,
598
+ monthlyPayment: g,
599
+ totalInterestPaid: x,
600
+ currency: p,
601
+ loanPeriodUnit: _,
602
+ minLoanAmount: b,
603
+ maxLoanAmount: N,
604
+ minInterestRate: C,
605
+ maxInterestRate: w,
606
+ minLoanPeriod: L,
607
+ maxLoanPeriod: $,
608
+ headerTitleText: T,
609
+ footerTitleText: M,
610
+ loanAmountLabel: E,
611
+ loanAmountHint: P,
612
+ interestRateLabel: z,
613
+ interestRateHint: S,
614
+ loanPeriodLabel: R,
615
+ loanPeriodHint: f,
616
+ submitText: k,
617
+ summaryMonthlyPaymentText: i,
618
+ summaryMonthlyPaymentHint: A,
619
+ summaryTotalPaymentText: m,
620
+ summaryTotalPaymentHint: O,
621
+ handleSubmit: H,
622
+ handleCancel: j
623
+ } = n, q = J();
624
+ return /* @__PURE__ */ t(G, { children: [
625
+ /* @__PURE__ */ e(
626
+ Q,
627
+ {
628
+ ref: l,
629
+ title: s,
630
+ text: v,
631
+ openCalculatorText: r,
632
+ onOpenCalculator: (a) => {
633
+ var o;
634
+ (o = q == null ? void 0 : q.current) == null || o.open(), c(a);
635
+ },
636
+ placeholderText: y
637
+ }
638
+ ),
639
+ /* @__PURE__ */ e(
640
+ re,
641
+ {
642
+ ref: q,
643
+ defaultLoanAmount: d,
644
+ defaultInterestRate: u,
645
+ defaultLoanPeriod: h,
646
+ monthlyPayment: g,
647
+ totalInterestPaid: x,
648
+ currency: p,
649
+ loanPeriodUnit: _,
650
+ minLoanAmount: b,
651
+ maxLoanAmount: N,
652
+ minInterestRate: C,
653
+ maxInterestRate: w,
654
+ minLoanPeriod: L,
655
+ maxLoanPeriod: $,
656
+ headerTitleText: T,
657
+ footerTitleText: M,
658
+ loanAmountLabel: E,
659
+ loanAmountHint: P,
660
+ interestRateLabel: z,
661
+ interestRateHint: S,
662
+ loanPeriodLabel: R,
663
+ loanPeriodHint: f,
664
+ submitText: k,
665
+ summaryMonthlyPaymentText: i,
666
+ summaryMonthlyPaymentHint: A,
667
+ summaryTotalPaymentText: m,
668
+ summaryTotalPaymentHint: O,
669
+ handleSubmit: H,
670
+ handleCancel: j
671
+ }
672
+ )
673
+ ] });
24
674
  });
25
675
  export {
26
- m as default
676
+ pe as default
27
677
  };