@tesouro/embedded-components-react 0.7.50 → 0.7.51
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/lib/monite-sdk.d.ts +42 -42
- package/dist/lib/monite-sdk.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +56 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +39 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +105 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +1 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +150 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +55 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +7 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +51 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +38 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +72 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +36 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +6 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +57 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +172 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +6 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +2 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +76 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +0 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +78 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +1 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +35 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +56 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +44 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +0 -568
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +568 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +1 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +19 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +1 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +87 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +44 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +48 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +83 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +7 -305
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +307 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +0 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +1 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +34 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +33 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +3 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +88 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +171 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +114 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +209 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +11 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +14 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +0 -241
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +241 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +1 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +31 -137
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +142 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +0 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +166 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +26 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +17 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +4 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +12 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +21 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +11 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +20 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +8 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +23 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +25 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +14 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +81 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +14 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +98 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +43 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +30 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +102 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +32 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +171 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +4 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +62 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +24 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +207 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +90 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +17 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +144 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +100 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +46 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +4 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +20 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +74 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +19 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +11 -131
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +129 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +4 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +219 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +31 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +12 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +34 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +18 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +73 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +182 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +14 -204
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +192 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +97 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +63 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +46 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +91 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +39 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +63 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +85 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +25 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +4 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +0 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +46 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +33 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +14 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +29 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +31 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +2 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +97 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +17 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +1 -57
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -1,46 +1,104 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
1
|
+
import { applyAPIValidationErrors as e, parseAPIValidationErrors as t } from "./index25.js";
|
|
2
|
+
import { useCurrencies as n } from "./index76.js";
|
|
3
|
+
import "./index89.js";
|
|
4
|
+
import { Button as r } from "./index122.js";
|
|
5
|
+
import { LoadingSpinner as i } from "./index67.js";
|
|
6
|
+
import { MoniteScopedProviders as a } from "./index155.js";
|
|
7
|
+
import "./index251.js";
|
|
8
|
+
import { useCreateProduct as o } from "./index294.js";
|
|
9
|
+
import "./index302.js";
|
|
10
|
+
import { PRODUCT_API_FIELD_MAP as s } from "./index305.js";
|
|
11
|
+
import { Sheet as c, SheetClose as l, SheetContent as u, SheetDescription as d, SheetFooter as f, SheetHeader as p, SheetTitle as m } from "./index308.js";
|
|
12
|
+
import { getProductValidationSchema as h } from "./index309.js";
|
|
13
|
+
import { ProductFormContent as g } from "./index321.js";
|
|
14
|
+
import { useCallback as _, useId as v, useMemo as y } from "react";
|
|
15
|
+
import { jsx as b, jsxs as x } from "@emotion/react/jsx-runtime";
|
|
16
|
+
import { useLingui as S } from "@lingui/react";
|
|
17
|
+
import { FormProvider as C, useForm as w } from "react-hook-form";
|
|
18
|
+
import { zodResolver as T } from "@hookform/resolvers/zod";
|
|
12
19
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js
|
|
13
|
-
var
|
|
14
|
-
let
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
20
|
+
var E = (e) => /* @__PURE__ */ b(a, { children: /* @__PURE__ */ b(D, { ...e }) }), D = ({ onClose: a, open: E, onCreated: D }) => {
|
|
21
|
+
let { i18n: O } = S(), { formatToMinorUnits: k } = n(), A = `product-form-${v()}`, { mutate: j, isPending: M } = o(D), N = y(() => ({
|
|
22
|
+
name: "",
|
|
23
|
+
type: "product",
|
|
24
|
+
measureUnitId: "",
|
|
25
|
+
pricePerUnit: void 0,
|
|
26
|
+
currency: "USD",
|
|
27
|
+
description: void 0
|
|
28
|
+
}), []), { watch: P, ...F } = w({
|
|
29
|
+
resolver: T(h(O)),
|
|
30
|
+
defaultValues: N
|
|
31
|
+
}), I = P("type"), L = !!P("name")?.trim() && P("pricePerUnit") !== void 0, R = _((n) => {
|
|
32
|
+
n.preventDefault(), n.stopPropagation(), F.handleSubmit((n) => {
|
|
33
|
+
j({ body: {
|
|
34
|
+
name: n.name,
|
|
35
|
+
type: n.type,
|
|
36
|
+
price: {
|
|
37
|
+
value: k(n.pricePerUnit, n.currency) ?? 0,
|
|
38
|
+
currency: n.currency
|
|
39
|
+
},
|
|
40
|
+
description: n.description,
|
|
41
|
+
...n.measureUnitId ? { measure_unit_id: n.measureUnitId } : {}
|
|
42
|
+
} }, { onError: (n) => {
|
|
43
|
+
e(F.setError, t(n), { fieldMap: s });
|
|
44
|
+
} });
|
|
45
|
+
})(n);
|
|
46
|
+
}, [
|
|
47
|
+
j,
|
|
48
|
+
k,
|
|
49
|
+
F.handleSubmit,
|
|
50
|
+
F.setError
|
|
51
|
+
]);
|
|
52
|
+
return /* @__PURE__ */ b(c, {
|
|
53
|
+
open: E,
|
|
54
|
+
onOpenChange: a,
|
|
55
|
+
children: /* @__PURE__ */ x(u, {
|
|
56
|
+
className: "ttw:gap-0",
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ x(p, {
|
|
59
|
+
className: "ttw:border-b ttw:border-border",
|
|
60
|
+
children: [/* @__PURE__ */ b(m, {
|
|
61
|
+
className: "ttw:text-2xl",
|
|
62
|
+
children: O._("Add a product or service")
|
|
63
|
+
}), /* @__PURE__ */ b(d, {
|
|
64
|
+
className: "ttw:max-w-130",
|
|
65
|
+
children: O._("Save the products and services you sell so you can quickly add them as line items on invoices.")
|
|
66
|
+
})]
|
|
67
|
+
}),
|
|
68
|
+
/* @__PURE__ */ b("div", {
|
|
69
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:px-6 ttw:py-8 ttw:overflow-auto",
|
|
70
|
+
children: /* @__PURE__ */ b(C, {
|
|
71
|
+
...F,
|
|
72
|
+
watch: P,
|
|
73
|
+
children: /* @__PURE__ */ b("form", {
|
|
74
|
+
id: A,
|
|
75
|
+
onSubmit: R,
|
|
76
|
+
children: /* @__PURE__ */ b(g, { isLoading: M })
|
|
77
|
+
})
|
|
78
|
+
})
|
|
79
|
+
}),
|
|
80
|
+
/* @__PURE__ */ x(f, {
|
|
81
|
+
className: "ttw:border-t ttw:border-border ttw:flex-row ttw:justify-end",
|
|
82
|
+
children: [/* @__PURE__ */ b(l, {
|
|
83
|
+
asChild: !0,
|
|
84
|
+
children: /* @__PURE__ */ b(r, {
|
|
85
|
+
variant: "outline",
|
|
86
|
+
disabled: M,
|
|
87
|
+
className: "ttw:flex-1 ttw:border-border",
|
|
88
|
+
children: O._("Cancel")
|
|
89
|
+
})
|
|
90
|
+
}), /* @__PURE__ */ x(r, {
|
|
91
|
+
type: "submit",
|
|
92
|
+
form: A,
|
|
93
|
+
className: "ttw:flex-1",
|
|
94
|
+
title: O._("Complete the form to continue"),
|
|
95
|
+
disabled: M || !L,
|
|
96
|
+
children: [M && /* @__PURE__ */ b(i, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }), O._("Save {type}", { type: I })]
|
|
97
|
+
})]
|
|
98
|
+
})
|
|
99
|
+
]
|
|
42
100
|
})
|
|
43
|
-
|
|
101
|
+
});
|
|
44
102
|
};
|
|
45
103
|
//#endregion
|
|
46
|
-
export {
|
|
104
|
+
export { E as CreateProduct };
|
|
@@ -1,4 +1,46 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
1
|
+
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
+
import "../../shared/data-access/dist/index.js";
|
|
3
|
+
import { MoniteScopedProviders as t } from "./index155.js";
|
|
4
|
+
import { useUserPermissions as n } from "./index156.js";
|
|
5
|
+
import { AccessRestriction as r } from "./index162.js";
|
|
6
|
+
import "./index165.js";
|
|
7
|
+
import { ProductsTable as i } from "./index316.js";
|
|
8
|
+
import { ProductDetails as a } from "./index324.js";
|
|
9
|
+
import { CreateProduct as o } from "./index325.js";
|
|
10
|
+
import { useCallback as s, useState as c } from "react";
|
|
11
|
+
import { Fragment as l, jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js
|
|
13
|
+
var f = (e) => /* @__PURE__ */ u(t, { children: /* @__PURE__ */ u(p, { ...e }) }), p = ({ pageTitleComponent: t }) => {
|
|
14
|
+
let f = n().has(e.InvoiceReadOrg), [p, m] = c(void 0), [h, g] = c(!1), _ = s((e) => {
|
|
15
|
+
m(e);
|
|
16
|
+
}, []), v = s(() => {
|
|
17
|
+
m(void 0);
|
|
18
|
+
}, []), y = s(() => {
|
|
19
|
+
g(!1);
|
|
20
|
+
}, []), b = s(() => {
|
|
21
|
+
g(!0);
|
|
22
|
+
}, []), x = s((e) => {
|
|
23
|
+
m(e);
|
|
24
|
+
}, []);
|
|
25
|
+
return /* @__PURE__ */ d(l, { children: [
|
|
26
|
+
t(/* @__PURE__ */ u(l, {})),
|
|
27
|
+
!f && /* @__PURE__ */ u(r, {}),
|
|
28
|
+
f && /* @__PURE__ */ u(i, {
|
|
29
|
+
onRowClick: _,
|
|
30
|
+
onDeleted: x,
|
|
31
|
+
openCreateModal: b
|
|
32
|
+
}),
|
|
33
|
+
h && /* @__PURE__ */ u(o, {
|
|
34
|
+
open: !0,
|
|
35
|
+
onClose: y,
|
|
36
|
+
onCreated: y
|
|
37
|
+
}),
|
|
38
|
+
!!p && p && /* @__PURE__ */ u(a, {
|
|
39
|
+
id: p,
|
|
40
|
+
open: !0,
|
|
41
|
+
onClose: v
|
|
42
|
+
})
|
|
43
|
+
] });
|
|
44
|
+
};
|
|
45
|
+
//#endregion
|
|
46
|
+
export { f as Products };
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
let a = n();
|
|
6
|
-
return /* @__PURE__ */ e(t, {
|
|
7
|
-
sx: {
|
|
8
|
-
background: `linear-gradient(180deg, ${a.palette.primary.light} 0%, ${a.palette.background.paper} 100%)`,
|
|
9
|
-
display: "flex",
|
|
10
|
-
flexDirection: "column",
|
|
11
|
-
gap: 1,
|
|
12
|
-
px: 3,
|
|
13
|
-
py: i ? 3 : 2.5,
|
|
14
|
-
width: "100%",
|
|
15
|
-
minHeight: "auto",
|
|
16
|
-
borderRadius: "16px",
|
|
17
|
-
boxShadow: "0 16px 24px 0 rgba(0, 0, 0, 0.02)",
|
|
18
|
-
border: i ? "none" : `1px solid ${a.palette.divider}`
|
|
19
|
-
},
|
|
20
|
-
children: r
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
//#endregion
|
|
24
|
-
export { r as FinanceBannerWrapper };
|
|
1
|
+
import "./index316.js";
|
|
2
|
+
import "./index324.js";
|
|
3
|
+
import "./index325.js";
|
|
4
|
+
import "./index326.js";
|
|
@@ -1,77 +1,24 @@
|
|
|
1
|
-
import { jsx as e
|
|
2
|
-
import { Box as
|
|
3
|
-
import { useLingui as a } from "@lingui/react";
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Box as t, useTheme as n } from "@mui/material";
|
|
4
3
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
id: 4,
|
|
23
|
-
question: "How do I repay the loan?",
|
|
24
|
-
answer: "At the moment we support monthly loan repayment once you agree to the loan payment schedule. A fixed amount will be automatically deducted from the bank you linked during the onboarding.In the near future, you can also choose to pay back the loan as a fixed percentage of your daily sales until the loan is fully repaid."
|
|
25
|
-
}
|
|
26
|
-
], s = () => {
|
|
27
|
-
let { i18n: s } = a();
|
|
28
|
-
return /* @__PURE__ */ t(n, {
|
|
29
|
-
p: 4,
|
|
30
|
-
children: [
|
|
31
|
-
/* @__PURE__ */ t(n, { children: [/* @__PURE__ */ e(i, {
|
|
32
|
-
variant: "h3",
|
|
33
|
-
children: s._("Simplified, fast funding for your growing business")
|
|
34
|
-
}), /* @__PURE__ */ e(i, {
|
|
35
|
-
variant: "subtitle2",
|
|
36
|
-
mt: 2,
|
|
37
|
-
children: s._("Get your business moving and accelerate growth with quick and easy access to funding. Multiple options available.")
|
|
38
|
-
})] }),
|
|
39
|
-
/* @__PURE__ */ t(n, {
|
|
40
|
-
mt: 5,
|
|
41
|
-
children: [/* @__PURE__ */ e(i, {
|
|
42
|
-
mb: 1,
|
|
43
|
-
variant: "h3",
|
|
44
|
-
children: s._("FAQ")
|
|
45
|
-
}), o.map((r) => /* @__PURE__ */ t(n, {
|
|
46
|
-
mt: 3,
|
|
47
|
-
children: [/* @__PURE__ */ e(i, {
|
|
48
|
-
variant: "subtitle2",
|
|
49
|
-
children: s._("{faqQuestion}", { faqQuestion: r.question })
|
|
50
|
-
}), /* @__PURE__ */ e(i, {
|
|
51
|
-
variant: "body1",
|
|
52
|
-
mt: 1,
|
|
53
|
-
children: s._("{faqAnswer}", { faqAnswer: r.answer })
|
|
54
|
-
})]
|
|
55
|
-
}, r.id))]
|
|
56
|
-
}),
|
|
57
|
-
/* @__PURE__ */ e(n, {
|
|
58
|
-
mt: 5,
|
|
59
|
-
children: /* @__PURE__ */ t(i, {
|
|
60
|
-
variant: "body2",
|
|
61
|
-
children: [
|
|
62
|
-
s._("All loans are subject to credit approval. Your terms may vary. Flourish Capital loans are issued by Kanmon. California Loans are made pursuant to a Department of Financial Protection and Innovation California Lenders Law License. Read more about Kanmon"),
|
|
63
|
-
" ",
|
|
64
|
-
/* @__PURE__ */ e(r, {
|
|
65
|
-
target: "_blank",
|
|
66
|
-
rel: "noopener noreferrer",
|
|
67
|
-
href: "https://kanmon.com",
|
|
68
|
-
children: s._("here.")
|
|
69
|
-
})
|
|
70
|
-
]
|
|
71
|
-
})
|
|
72
|
-
})
|
|
73
|
-
]
|
|
4
|
+
var r = ({ children: r, shouldApplyFinanceStyles: i = !1 }) => {
|
|
5
|
+
let a = n();
|
|
6
|
+
return /* @__PURE__ */ e(t, {
|
|
7
|
+
sx: {
|
|
8
|
+
background: `linear-gradient(180deg, ${a.palette.primary.light} 0%, ${a.palette.background.paper} 100%)`,
|
|
9
|
+
display: "flex",
|
|
10
|
+
flexDirection: "column",
|
|
11
|
+
gap: 1,
|
|
12
|
+
px: 3,
|
|
13
|
+
py: i ? 3 : 2.5,
|
|
14
|
+
width: "100%",
|
|
15
|
+
minHeight: "auto",
|
|
16
|
+
borderRadius: "16px",
|
|
17
|
+
boxShadow: "0 16px 24px 0 rgba(0, 0, 0, 0.02)",
|
|
18
|
+
border: i ? "none" : `1px solid ${a.palette.divider}`
|
|
19
|
+
},
|
|
20
|
+
children: r
|
|
74
21
|
});
|
|
75
22
|
};
|
|
76
23
|
//#endregion
|
|
77
|
-
export {
|
|
24
|
+
export { r as FinanceBannerWrapper };
|
|
@@ -1,19 +1,77 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import { useState as n } from "react";
|
|
5
|
-
import { Fragment as r, jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
1
|
+
import { jsx as e, jsxs as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Box as n, Link as r, Typography as i } from "@mui/material";
|
|
3
|
+
import { useLingui as a } from "@lingui/react";
|
|
6
4
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js
|
|
7
|
-
var o =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
var o = [
|
|
6
|
+
{
|
|
7
|
+
id: 1,
|
|
8
|
+
question: "Does enrolling in the program affect my credit score?",
|
|
9
|
+
answer: "Nope! During the onboarding process we will only conduct a soft pull on your credit report, which will not affect your personal credit score."
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
id: 2,
|
|
13
|
+
question: "Why do I need to provide my bank connection details?",
|
|
14
|
+
answer: "Securely connecting your business bank account allows us to review your cashflow and determine your best loan offers."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
id: 3,
|
|
18
|
+
question: "When should I expect to receive a loan offer?",
|
|
19
|
+
answer: "Once you are enrolled into the program, we will be actively analyzing your financials and creating pre-approved offers that work best for your business needs. We do this to help you avoid debt trap. Loan offers are usually provided within less than 48 hours."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
id: 4,
|
|
23
|
+
question: "How do I repay the loan?",
|
|
24
|
+
answer: "At the moment we support monthly loan repayment once you agree to the loan payment schedule. A fixed amount will be automatically deducted from the bank you linked during the onboarding.In the near future, you can also choose to pay back the loan as a fixed percentage of your daily sales until the loan is fully repaid."
|
|
25
|
+
}
|
|
26
|
+
], s = () => {
|
|
27
|
+
let { i18n: s } = a();
|
|
28
|
+
return /* @__PURE__ */ t(n, {
|
|
29
|
+
p: 4,
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ t(n, { children: [/* @__PURE__ */ e(i, {
|
|
32
|
+
variant: "h3",
|
|
33
|
+
children: s._("Simplified, fast funding for your growing business")
|
|
34
|
+
}), /* @__PURE__ */ e(i, {
|
|
35
|
+
variant: "subtitle2",
|
|
36
|
+
mt: 2,
|
|
37
|
+
children: s._("Get your business moving and accelerate growth with quick and easy access to funding. Multiple options available.")
|
|
38
|
+
})] }),
|
|
39
|
+
/* @__PURE__ */ t(n, {
|
|
40
|
+
mt: 5,
|
|
41
|
+
children: [/* @__PURE__ */ e(i, {
|
|
42
|
+
mb: 1,
|
|
43
|
+
variant: "h3",
|
|
44
|
+
children: s._("FAQ")
|
|
45
|
+
}), o.map((r) => /* @__PURE__ */ t(n, {
|
|
46
|
+
mt: 3,
|
|
47
|
+
children: [/* @__PURE__ */ e(i, {
|
|
48
|
+
variant: "subtitle2",
|
|
49
|
+
children: s._("{faqQuestion}", { faqQuestion: r.question })
|
|
50
|
+
}), /* @__PURE__ */ e(i, {
|
|
51
|
+
variant: "body1",
|
|
52
|
+
mt: 1,
|
|
53
|
+
children: s._("{faqAnswer}", { faqAnswer: r.answer })
|
|
54
|
+
})]
|
|
55
|
+
}, r.id))]
|
|
56
|
+
}),
|
|
57
|
+
/* @__PURE__ */ e(n, {
|
|
58
|
+
mt: 5,
|
|
59
|
+
children: /* @__PURE__ */ t(i, {
|
|
60
|
+
variant: "body2",
|
|
61
|
+
children: [
|
|
62
|
+
s._("All loans are subject to credit approval. Your terms may vary. Flourish Capital loans are issued by Kanmon. California Loans are made pursuant to a Department of Financial Protection and Innovation California Lenders Law License. Read more about Kanmon"),
|
|
63
|
+
" ",
|
|
64
|
+
/* @__PURE__ */ e(r, {
|
|
65
|
+
target: "_blank",
|
|
66
|
+
rel: "noopener noreferrer",
|
|
67
|
+
href: "https://kanmon.com",
|
|
68
|
+
children: s._("here.")
|
|
69
|
+
})
|
|
70
|
+
]
|
|
71
|
+
})
|
|
72
|
+
})
|
|
73
|
+
]
|
|
74
|
+
});
|
|
17
75
|
};
|
|
18
76
|
//#endregion
|
|
19
|
-
export {
|
|
77
|
+
export { s as FinanceFaqDetails };
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { Dialog as e } from "./index129.js";
|
|
2
|
+
import "./index130.js";
|
|
3
|
+
import { FinanceFaqDetails as t } from "./index329.js";
|
|
4
|
+
import { useState as n } from "react";
|
|
5
|
+
import { Fragment as r, jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
3
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js
|
|
4
|
-
var
|
|
5
|
-
let
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
backgroundColor: i.palette.primary.main,
|
|
15
|
-
width: `${r}%`,
|
|
16
|
-
height: "6px",
|
|
17
|
-
borderRadius: .5
|
|
18
|
-
} })
|
|
19
|
-
});
|
|
7
|
+
var o = ({ children: o }) => {
|
|
8
|
+
let [s, c] = n(!1);
|
|
9
|
+
return /* @__PURE__ */ a(r, { children: [o({ openModal: () => {
|
|
10
|
+
c(!0);
|
|
11
|
+
} }), /* @__PURE__ */ i(e, {
|
|
12
|
+
open: s,
|
|
13
|
+
onClose: () => c(!1),
|
|
14
|
+
alignDialog: "right",
|
|
15
|
+
children: /* @__PURE__ */ i(t, {})
|
|
16
|
+
})] });
|
|
20
17
|
};
|
|
21
18
|
//#endregion
|
|
22
|
-
export {
|
|
19
|
+
export { o as FinanceFaqWrapper };
|
|
@@ -1,8 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Box as t, useTheme as n } from "@mui/material";
|
|
2
3
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js
|
|
3
|
-
var
|
|
4
|
-
let
|
|
5
|
-
return t
|
|
4
|
+
var r = ({ progress: r }) => {
|
|
5
|
+
let i = n();
|
|
6
|
+
return /* @__PURE__ */ e(t, {
|
|
7
|
+
sx: {
|
|
8
|
+
backgroundColor: i.palette.divider,
|
|
9
|
+
width: "100%",
|
|
10
|
+
height: "6px",
|
|
11
|
+
borderRadius: .5
|
|
12
|
+
},
|
|
13
|
+
children: /* @__PURE__ */ e(t, { sx: {
|
|
14
|
+
backgroundColor: i.palette.primary.main,
|
|
15
|
+
width: `${r}%`,
|
|
16
|
+
height: "6px",
|
|
17
|
+
borderRadius: .5
|
|
18
|
+
} })
|
|
19
|
+
});
|
|
6
20
|
};
|
|
7
21
|
//#endregion
|
|
8
|
-
export {
|
|
22
|
+
export { r as FinanceProgressBar };
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
-
import { toast as t } from "react-hot-toast";
|
|
3
|
-
import { useLingui as n } from "@lingui/react";
|
|
4
2
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js
|
|
5
|
-
var
|
|
6
|
-
let { api:
|
|
7
|
-
return
|
|
8
|
-
t.error(i._("The financing service is currently unavailable. Please reload the page or try again later."));
|
|
9
|
-
} });
|
|
3
|
+
var t = () => {
|
|
4
|
+
let { api: t } = e();
|
|
5
|
+
return t.finops.getFinancingOffers.useQuery();
|
|
10
6
|
};
|
|
11
7
|
//#endregion
|
|
12
|
-
export {
|
|
8
|
+
export { t as useGetFinanceOffers };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import {
|
|
3
|
-
import "@
|
|
4
|
-
import "@lingui/react";
|
|
1
|
+
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
+
import { toast as t } from "react-hot-toast";
|
|
3
|
+
import { useLingui as n } from "@lingui/react";
|
|
5
4
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
5
|
+
var r = () => {
|
|
6
|
+
let { api: r } = e(), { i18n: i } = n();
|
|
7
|
+
return r.finops.postFinancingTokens.useMutation({}, { onError: () => {
|
|
8
|
+
t.error(i._("The financing service is currently unavailable. Please reload the page or try again later."));
|
|
9
|
+
} });
|
|
10
|
+
};
|
|
12
11
|
//#endregion
|
|
13
|
-
export {
|
|
12
|
+
export { r as useGetFinancingConnectToken };
|