@tesouro/embedded-components-react 0.7.49 → 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/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsTable.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/mocks/counterparts.js +233 -88
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/mocks/labels.js +1 -1
- 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,19 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import "./index200.js";
|
|
2
|
+
import "./index201.js";
|
|
3
|
+
import "./index202.js";
|
|
4
|
+
import "./index203.js";
|
|
5
|
+
import "./index204.js";
|
|
6
|
+
import "./index205.js";
|
|
7
|
+
import "./index206.js";
|
|
8
|
+
import "./index207.js";
|
|
9
|
+
import "./index208.js";
|
|
10
|
+
import "./index209.js";
|
|
11
|
+
import "./index210.js";
|
|
12
|
+
import "./index211.js";
|
|
13
|
+
import "./index212.js";
|
|
14
|
+
import "./index213.js";
|
|
15
|
+
import "./index214.js";
|
|
16
|
+
import "./index215.js";
|
|
17
|
+
import "./index216.js";
|
|
18
|
+
import "./index217.js";
|
|
19
|
+
import "./index218.js";
|
|
20
|
+
import "./index219.js";
|
|
21
|
+
import "./index220.js";
|
|
22
|
+
import "./index273.js";
|
|
23
|
+
import "./index286.js";
|
|
24
|
+
import "./index274.js";
|
|
25
|
+
import "./index287.js";
|
|
26
|
+
import "./index291.js";
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { messageWithTruncatedName as n } from "./index292.js";
|
|
4
|
-
import { toast as r } from "react-hot-toast";
|
|
5
|
-
import { useLingui as i } from "@lingui/react";
|
|
1
|
+
import { Fragment as e } from "react";
|
|
2
|
+
import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
|
|
6
3
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js
|
|
7
|
-
|
|
8
|
-
let
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
function r(r, i) {
|
|
5
|
+
let a = r.split("\0");
|
|
6
|
+
return a.length === 1 ? /* @__PURE__ */ t("span", { children: r }) : /* @__PURE__ */ t("span", {
|
|
7
|
+
className: "ttw:flex ttw:min-w-0",
|
|
8
|
+
children: a.map((r, o) => /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
|
|
9
|
+
className: "ttw:whitespace-pre-wrap",
|
|
10
|
+
children: r
|
|
11
|
+
}), o < a.length - 1 && /* @__PURE__ */ t("span", {
|
|
12
|
+
className: "ttw:min-w-[4ch] ttw:shrink-[9999] ttw:truncate",
|
|
13
|
+
title: i,
|
|
14
|
+
children: i
|
|
15
|
+
})] }, o))
|
|
17
16
|
});
|
|
18
|
-
}
|
|
17
|
+
}
|
|
19
18
|
//#endregion
|
|
20
|
-
export {
|
|
19
|
+
export { r as messageWithTruncatedName };
|
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getAPIErrorMessage as e } from "./index26.js";
|
|
2
|
+
import { useMoniteContext as t } from "./index45.js";
|
|
3
|
+
import { messageWithTruncatedName as n } from "./index293.js";
|
|
4
|
+
import { toast as r } from "react-hot-toast";
|
|
5
|
+
import { useLingui as i } from "@lingui/react";
|
|
2
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js
|
|
3
|
-
var
|
|
4
|
-
let { api: t } =
|
|
5
|
-
return
|
|
7
|
+
var a = (a) => {
|
|
8
|
+
let { api: o, queryClient: s } = t(), { i18n: c } = i();
|
|
9
|
+
return o.finops.postProducts.useMutation(void 0, {
|
|
10
|
+
onSuccess: async (e) => {
|
|
11
|
+
a?.(e), await o.finops.getProducts.invalidateQueries(s), r.success(n(c._("{name} has been added to the list.", { name: "\0" }), e.name));
|
|
12
|
+
},
|
|
13
|
+
onError: (t) => {
|
|
14
|
+
let n = e(c, t, { defaultMessage: "" });
|
|
15
|
+
r.error(n ? c._("Failed to create: {reason}", { reason: n }) : c._("Failed to create"));
|
|
16
|
+
}
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
19
|
//#endregion
|
|
8
|
-
export {
|
|
20
|
+
export { a as useCreateProduct };
|
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
-
import { messageWithTruncatedName as t } from "./index292.js";
|
|
3
|
-
import { toast as n } from "react-hot-toast";
|
|
4
|
-
import { useLingui as r } from "@lingui/react";
|
|
5
2
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js
|
|
6
|
-
var
|
|
7
|
-
let { api:
|
|
8
|
-
return
|
|
9
|
-
onSuccess: async () => {
|
|
10
|
-
i && (await a.finops.getMeasureUnits.invalidateQueries(o), n.success(t(s._("Unit {name} was deleted from the list.", { name: "\0" }), i)));
|
|
11
|
-
},
|
|
12
|
-
onError: (e) => {
|
|
13
|
-
console.error(e), n.error(s._("Failed to delete Unit."));
|
|
14
|
-
}
|
|
15
|
-
});
|
|
3
|
+
var t = () => {
|
|
4
|
+
let { api: t } = e();
|
|
5
|
+
return t.finops.getMeasureUnits.useQuery();
|
|
16
6
|
};
|
|
17
7
|
//#endregion
|
|
18
|
-
export {
|
|
8
|
+
export { t as useGetMeasureUnits };
|
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { useLingui as i } from "@lingui/react";
|
|
1
|
+
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
+
import { messageWithTruncatedName as t } from "./index293.js";
|
|
3
|
+
import { toast as n } from "react-hot-toast";
|
|
4
|
+
import { useLingui as r } from "@lingui/react";
|
|
6
5
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js
|
|
7
|
-
var
|
|
8
|
-
let { api:
|
|
9
|
-
return
|
|
10
|
-
onSuccess: async (
|
|
11
|
-
await
|
|
6
|
+
var i = (i) => {
|
|
7
|
+
let { api: a, queryClient: o } = e(), { i18n: s } = r();
|
|
8
|
+
return a.finops.deleteMeasureUnitsId.useMutation(void 0, {
|
|
9
|
+
onSuccess: async () => {
|
|
10
|
+
i && (await a.finops.getMeasureUnits.invalidateQueries(o), n.success(t(s._("Unit {name} was deleted from the list.", { name: "\0" }), i)));
|
|
12
11
|
},
|
|
13
|
-
onError:
|
|
14
|
-
|
|
15
|
-
if (n.includes("already exists")) {
|
|
16
|
-
o?.(n);
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
r.error(n);
|
|
12
|
+
onError: (e) => {
|
|
13
|
+
console.error(e), n.error(s._("Failed to delete Unit."));
|
|
20
14
|
}
|
|
21
15
|
});
|
|
22
16
|
};
|
|
23
17
|
//#endregion
|
|
24
|
-
export {
|
|
18
|
+
export { i as useDeleteMeasureUnit };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { getAPIErrorMessage as e } from "./index26.js";
|
|
2
2
|
import { useMoniteContext as t } from "./index45.js";
|
|
3
|
-
import { messageWithTruncatedName as n } from "./
|
|
3
|
+
import { messageWithTruncatedName as n } from "./index293.js";
|
|
4
4
|
import { toast as r } from "react-hot-toast";
|
|
5
5
|
import { useLingui as i } from "@lingui/react";
|
|
6
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js
|
|
7
|
-
var a = (a, o
|
|
8
|
-
let { api:
|
|
9
|
-
return
|
|
7
|
+
var a = (a, o) => {
|
|
8
|
+
let { api: s, queryClient: c } = t(), { i18n: l } = i();
|
|
9
|
+
return s.finops.postMeasureUnits.useMutation({}, {
|
|
10
10
|
onSuccess: async (e) => {
|
|
11
|
-
await
|
|
11
|
+
await s.finops.getMeasureUnits.invalidateQueries(c), r.success(n(l._("Unit {name} was added to the list", { name: "\0" }), e.name)), a?.();
|
|
12
12
|
},
|
|
13
|
-
onError: (t) => {
|
|
14
|
-
let n = e(
|
|
13
|
+
onError: async (t) => {
|
|
14
|
+
let n = e(l, t);
|
|
15
15
|
if (n.includes("already exists")) {
|
|
16
|
-
|
|
16
|
+
o?.(n);
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
r.error(n);
|
|
@@ -21,4 +21,4 @@ var a = (a, o, s) => {
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
//#endregion
|
|
24
|
-
export { a as
|
|
24
|
+
export { a as useCreateMeasureUnit };
|
|
@@ -1,8 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getAPIErrorMessage as e } from "./index26.js";
|
|
2
|
+
import { useMoniteContext as t } from "./index45.js";
|
|
3
|
+
import { messageWithTruncatedName as n } from "./index293.js";
|
|
4
|
+
import { toast as r } from "react-hot-toast";
|
|
5
|
+
import { useLingui as i } from "@lingui/react";
|
|
2
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js
|
|
3
|
-
var
|
|
4
|
-
let { api:
|
|
5
|
-
return
|
|
7
|
+
var a = (a, o, s) => {
|
|
8
|
+
let { api: c, queryClient: l } = t(), { i18n: u } = i();
|
|
9
|
+
return c.finops.patchMeasureUnitsId.useMutation({ path: { unit_id: a } }, {
|
|
10
|
+
onSuccess: async (e) => {
|
|
11
|
+
await Promise.all([c.finops.getMeasureUnits.invalidateQueries(l), c.finops.getMeasureUnitsId.invalidateQueries({ parameters: { path: { unit_id: a } } }, l)]), r.success(n(u._("Unit {name} was updated", { name: "\0" }), e.name)), o?.();
|
|
12
|
+
},
|
|
13
|
+
onError: (t) => {
|
|
14
|
+
let n = e(u, t);
|
|
15
|
+
if (n.includes("already exists")) {
|
|
16
|
+
s?.(n);
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
r.error(n);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
6
22
|
};
|
|
7
23
|
//#endregion
|
|
8
|
-
export {
|
|
24
|
+
export { a as useUpdateMeasureUnit };
|
|
@@ -1,17 +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/index299.js
|
|
5
|
-
var
|
|
6
|
-
let {
|
|
7
|
-
return
|
|
8
|
-
onSuccess: async () => {
|
|
9
|
-
await o.finops.getProducts.invalidateQueries(s), t.success(a._("Product was deleted.")), i?.();
|
|
10
|
-
},
|
|
11
|
-
onError: () => {
|
|
12
|
-
t.error(a._("Failed to delete product."));
|
|
13
|
-
}
|
|
14
|
-
});
|
|
3
|
+
var t = (t, n = !0) => {
|
|
4
|
+
let { api: r } = e();
|
|
5
|
+
return r.finops.getProductsId.useQuery({ path: { product_id: t } }, { enabled: n });
|
|
15
6
|
};
|
|
16
7
|
//#endregion
|
|
17
|
-
export {
|
|
8
|
+
export { t as useGetProductById };
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { toast as r } from "react-hot-toast";
|
|
5
|
-
import { useLingui as i } from "@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";
|
|
6
4
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js
|
|
7
|
-
var
|
|
8
|
-
let { i18n:
|
|
9
|
-
return
|
|
10
|
-
onSuccess: async (
|
|
11
|
-
await
|
|
5
|
+
var r = (r, i) => {
|
|
6
|
+
let { i18n: a } = n(), { api: o, queryClient: s } = e();
|
|
7
|
+
return o.finops.deleteProductsId.useMutation({ path: { product_id: r } }, {
|
|
8
|
+
onSuccess: async () => {
|
|
9
|
+
await o.finops.getProducts.invalidateQueries(s), t.success(a._("Product was deleted.")), i?.();
|
|
12
10
|
},
|
|
13
|
-
onError: (
|
|
14
|
-
|
|
15
|
-
r.error(n ? o._("Failed to update: {reason}", { reason: n }) : o._("Failed to update"));
|
|
11
|
+
onError: () => {
|
|
12
|
+
t.error(a._("Failed to delete product."));
|
|
16
13
|
}
|
|
17
14
|
});
|
|
18
15
|
};
|
|
19
16
|
//#endregion
|
|
20
|
-
export {
|
|
17
|
+
export { r as useDeleteProduct };
|
|
@@ -1,9 +1,20 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { getAPIErrorMessage as e } from "./index26.js";
|
|
2
|
+
import { useMoniteContext as t } from "./index45.js";
|
|
3
|
+
import { messageWithTruncatedName as n } from "./index293.js";
|
|
4
|
+
import { toast as r } from "react-hot-toast";
|
|
5
|
+
import { useLingui as i } from "@lingui/react";
|
|
6
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js
|
|
7
|
+
var a = (a) => {
|
|
8
|
+
let { i18n: o } = i(), { api: s, queryClient: c } = t();
|
|
9
|
+
return s.finops.patchProductsId.useMutation({ path: { product_id: a } }, {
|
|
10
|
+
onSuccess: async (e) => {
|
|
11
|
+
await s.finops.getProducts.invalidateQueries(c), await s.finops.getProductsId.invalidateQueries({ parameters: { path: { product_id: e.id } } }, c), r.success(n(e.type === "product" ? o._("Product {name} was updated.", { name: "\0" }) : o._("Service {name} was updated.", { name: "\0" }), e.name));
|
|
12
|
+
},
|
|
13
|
+
onError: (t) => {
|
|
14
|
+
let n = e(o, t, { defaultMessage: "" });
|
|
15
|
+
r.error(n ? o._("Failed to update: {reason}", { reason: n }) : o._("Failed to update"));
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { a as useUpdateProduct };
|
|
@@ -1,27 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import "./index230.js";
|
|
2
|
+
import "./index294.js";
|
|
3
|
+
import "./index295.js";
|
|
4
|
+
import "./index296.js";
|
|
5
|
+
import "./index297.js";
|
|
6
|
+
import "./index298.js";
|
|
7
|
+
import "./index299.js";
|
|
8
|
+
import "./index300.js";
|
|
5
9
|
import "./index301.js";
|
|
6
|
-
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
7
|
-
import { useLingui as i } from "@lingui/react";
|
|
8
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js
|
|
9
|
-
var a = ({ id: a, open: o, onClose: s, onDeleted: c }) => {
|
|
10
|
-
let { i18n: l } = i(), { data: u } = t(a), d = n(a, () => {
|
|
11
|
-
s(), c?.(a);
|
|
12
|
-
});
|
|
13
|
-
return u ? /* @__PURE__ */ r(e, {
|
|
14
|
-
open: o && !!a,
|
|
15
|
-
title: l._("Delete \"{name}\"?", { name: u.name }),
|
|
16
|
-
message: l._("It will remain in all the documents where it is added. You can't undo this action."),
|
|
17
|
-
confirmLabel: l._("Delete"),
|
|
18
|
-
cancelLabel: l._("Cancel"),
|
|
19
|
-
onClose: s,
|
|
20
|
-
onConfirm: () => {
|
|
21
|
-
d.mutate(void 0);
|
|
22
|
-
},
|
|
23
|
-
isLoading: d.isPending
|
|
24
|
-
}) : null;
|
|
25
|
-
};
|
|
26
|
-
//#endregion
|
|
27
|
-
export { a as ProductDeleteModal };
|
|
@@ -1,15 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { ConfirmationModal as e } from "./index252.js";
|
|
2
|
+
import "./index253.js";
|
|
3
|
+
import { useGetProductById as t } from "./index299.js";
|
|
4
|
+
import { useDeleteProduct as n } from "./index300.js";
|
|
5
|
+
import "./index302.js";
|
|
6
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
7
|
+
import { useLingui as i } from "@lingui/react";
|
|
5
8
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js
|
|
6
|
-
var
|
|
7
|
-
let { i18n:
|
|
8
|
-
|
|
9
|
-
variant: "secondary",
|
|
10
|
-
className: t(o ? "ttw:bg-blue-100 ttw:text-blue-700" : "ttw:bg-pink-100 ttw:text-pink-700"),
|
|
11
|
-
children: s
|
|
9
|
+
var a = ({ id: a, open: o, onClose: s, onDeleted: c }) => {
|
|
10
|
+
let { i18n: l } = i(), { data: u } = t(a), d = n(a, () => {
|
|
11
|
+
s(), c?.(a);
|
|
12
12
|
});
|
|
13
|
+
return u ? /* @__PURE__ */ r(e, {
|
|
14
|
+
open: o && !!a,
|
|
15
|
+
title: l._("Delete \"{name}\"?", { name: u.name }),
|
|
16
|
+
message: l._("It will remain in all the documents where it is added. You can't undo this action."),
|
|
17
|
+
confirmLabel: l._("Delete"),
|
|
18
|
+
cancelLabel: l._("Cancel"),
|
|
19
|
+
onClose: s,
|
|
20
|
+
onConfirm: () => {
|
|
21
|
+
d.mutate(void 0);
|
|
22
|
+
},
|
|
23
|
+
isLoading: d.isPending
|
|
24
|
+
}) : null;
|
|
13
25
|
};
|
|
14
26
|
//#endregion
|
|
15
|
-
export {
|
|
27
|
+
export { a as ProductDeleteModal };
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
import { Badge as e } from "./index71.js";
|
|
2
|
+
import { twMerge as t } from "tailwind-merge";
|
|
3
|
+
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
4
|
+
import { useLingui as r } from "@lingui/react";
|
|
1
5
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var i = ({ type: i }) => {
|
|
7
|
+
let { i18n: a } = r(), o = i === "product", s = o ? a._("Product") : a._("Service");
|
|
8
|
+
return /* @__PURE__ */ n(e, {
|
|
9
|
+
variant: "secondary",
|
|
10
|
+
className: t(o ? "ttw:bg-blue-100 ttw:text-blue-700" : "ttw:bg-pink-100 ttw:text-pink-700"),
|
|
11
|
+
children: s
|
|
12
|
+
});
|
|
9
13
|
};
|
|
10
14
|
//#endregion
|
|
11
|
-
export {
|
|
15
|
+
export { i as ProductType };
|
|
@@ -1,27 +1,11 @@
|
|
|
1
|
-
import { useDebounceCallback as e } from "./index85.js";
|
|
2
|
-
import { InputGroup as t, InputGroupAddon as n, InputGroupInput as r } from "./index124.js";
|
|
3
|
-
import { FILTER_TYPE_SEARCH as i } from "./index304.js";
|
|
4
|
-
import { Search as a } from "lucide-react";
|
|
5
|
-
import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
6
|
-
import { useLingui as c } from "@lingui/react";
|
|
7
1
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
className: "ttw:w-80",
|
|
16
|
-
children: [/* @__PURE__ */ o(n, {
|
|
17
|
-
align: "inline-start",
|
|
18
|
-
children: /* @__PURE__ */ o(a, {})
|
|
19
|
-
}), /* @__PURE__ */ o(r, {
|
|
20
|
-
placeholder: u._("Search by name"),
|
|
21
|
-
onChange: (e) => d(e.target.value)
|
|
22
|
-
})]
|
|
23
|
-
})
|
|
24
|
-
});
|
|
2
|
+
var e = "search", t = {
|
|
3
|
+
name: "name",
|
|
4
|
+
type: "type",
|
|
5
|
+
description: "description",
|
|
6
|
+
"price.value": "pricePerUnit",
|
|
7
|
+
"price.currency": "currency",
|
|
8
|
+
measure_unit_id: "measureUnitId"
|
|
25
9
|
};
|
|
26
10
|
//#endregion
|
|
27
|
-
export {
|
|
11
|
+
export { e as FILTER_TYPE_SEARCH, t as PRODUCT_API_FIELD_MAP };
|
|
@@ -1,16 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { jsx as
|
|
1
|
+
import { useDebounceCallback as e } from "./index85.js";
|
|
2
|
+
import { InputGroup as t, InputGroupAddon as n, InputGroupInput as r } from "./index125.js";
|
|
3
|
+
import { FILTER_TYPE_SEARCH as i } from "./index305.js";
|
|
4
|
+
import { Search as a } from "lucide-react";
|
|
5
|
+
import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { useLingui as c } from "@lingui/react";
|
|
6
7
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js
|
|
7
|
-
var
|
|
8
|
-
let {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
var l = ({ onChangeFilter: l }) => {
|
|
9
|
+
let { i18n: u } = c(), d = e((e) => {
|
|
10
|
+
l(i, e);
|
|
11
|
+
}, 500);
|
|
12
|
+
return /* @__PURE__ */ o("div", {
|
|
13
|
+
className: "ttw:flex ttw:justify-between ttw:items-center ttw:gap-4",
|
|
14
|
+
children: /* @__PURE__ */ s(t, {
|
|
15
|
+
className: "ttw:w-80",
|
|
16
|
+
children: [/* @__PURE__ */ o(n, {
|
|
17
|
+
align: "inline-start",
|
|
18
|
+
children: /* @__PURE__ */ o(a, {})
|
|
19
|
+
}), /* @__PURE__ */ o(r, {
|
|
20
|
+
placeholder: u._("Search by name"),
|
|
21
|
+
onChange: (e) => d(e.target.value)
|
|
22
|
+
})]
|
|
23
|
+
})
|
|
24
|
+
});
|
|
25
|
+
};
|
|
15
26
|
//#endregion
|
|
16
|
-
export {
|
|
27
|
+
export { l as Filters };
|
|
@@ -1,83 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
import "react";
|
|
5
|
-
import {
|
|
6
|
-
import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
7
|
-
import * as a from "@radix-ui/react-dialog";
|
|
1
|
+
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
+
import { Skeleton as t } from "./index72.js";
|
|
3
|
+
import { Typography as n } from "./index158.js";
|
|
4
|
+
import { memo as r } from "react";
|
|
5
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
8
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"data-slot": "sheet-close",
|
|
18
|
-
...e
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
function c({ container: e, ...t }) {
|
|
22
|
-
return /* @__PURE__ */ r(a.Portal, {
|
|
23
|
-
"data-slot": "sheet-portal",
|
|
24
|
-
...t,
|
|
25
|
-
container: e
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
var l = (e) => e === "under-dialogs" ? "ttw:z-1295" : "ttw:z-1300";
|
|
29
|
-
function u({ className: e, layer: n = "default", ...i }) {
|
|
30
|
-
return /* @__PURE__ */ r(a.Overlay, {
|
|
31
|
-
"data-slot": "sheet-overlay",
|
|
32
|
-
className: t("ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:fixed ttw:inset-0 ttw:bg-black/50", l(n), e),
|
|
33
|
-
...i
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
function d({ className: o, children: s, side: d = "right", container: f, showCloseButton: p = !0, layer: m = "default", ...h }) {
|
|
37
|
-
let { root: g } = e();
|
|
38
|
-
return /* @__PURE__ */ i(c, {
|
|
39
|
-
container: f ?? g,
|
|
40
|
-
children: [/* @__PURE__ */ r(u, { layer: m }), /* @__PURE__ */ i(a.Content, {
|
|
41
|
-
"data-slot": "sheet-content",
|
|
42
|
-
className: t("ttw:bg-background ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:fixed ttw:flex ttw:flex-col ttw:gap-4 ttw:shadow-lg ttw:transition ttw:ease-in-out ttw:data-[state=closed]:duration-300 ttw:data-[state=open]:duration-500", l(m), d === "right" && "ttw:data-[state=closed]:slide-out-to-right ttw:data-[state=open]:slide-in-from-right ttw:inset-y-0 ttw:right-0 ttw:h-full ttw:w-3/4 ttw:sm:max-w-[600px]", d === "left" && "ttw:data-[state=closed]:slide-out-to-left ttw:data-[state=open]:slide-in-from-left ttw:inset-y-0 ttw:left-0 ttw:h-full ttw:w-3/4 ttw:sm:max-w-[600px]", d === "top" && "ttw:data-[state=closed]:slide-out-to-top ttw:data-[state=open]:slide-in-from-top ttw:inset-x-0 ttw:top-0 ttw:h-auto ttw:border-b", d === "bottom" && "ttw:data-[state=closed]:slide-out-to-bottom ttw:data-[state=open]:slide-in-from-bottom ttw:inset-x-0 ttw:bottom-0 ttw:h-auto ttw:border-t", o),
|
|
43
|
-
...h,
|
|
44
|
-
children: [s, p && /* @__PURE__ */ i(a.Close, {
|
|
45
|
-
className: "ttw:p-2 ttw:ring-offset-background ttw:focus:ring-ring ttw:data-[state=open]:bg-neutral ttw:absolute ttw:top-4 ttw:right-4 ttw:rounded-xs ttw:opacity-70 ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:ring-2 ttw:focus:ring-offset-2 ttw:focus:outline-hidden ttw:cursor-pointer ttw:disabled:pointer-events-none",
|
|
46
|
-
children: [/* @__PURE__ */ r(n, { className: "ttw:size-4" }), /* @__PURE__ */ r("span", {
|
|
47
|
-
className: "ttw:sr-only",
|
|
48
|
-
children: "Close"
|
|
49
|
-
})]
|
|
50
|
-
})]
|
|
51
|
-
})]
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
function f({ className: e, ...n }) {
|
|
55
|
-
return /* @__PURE__ */ r("div", {
|
|
56
|
-
"data-slot": "sheet-header",
|
|
57
|
-
className: t("ttw:flex ttw:flex-col ttw:gap-1.5 ttw:p-4", e),
|
|
58
|
-
...n
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
function p({ className: e, ...n }) {
|
|
62
|
-
return /* @__PURE__ */ r("div", {
|
|
63
|
-
"data-slot": "sheet-footer",
|
|
64
|
-
className: t("ttw:mt-auto ttw:flex ttw:flex-col ttw:gap-2 ttw:p-4", e),
|
|
65
|
-
...n
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
function m({ className: e, ...n }) {
|
|
69
|
-
return /* @__PURE__ */ r(a.Title, {
|
|
70
|
-
"data-slot": "sheet-title",
|
|
71
|
-
className: t("ttw:text-foreground ttw:font-semibold", e),
|
|
72
|
-
...n
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
function h({ className: e, ...n }) {
|
|
76
|
-
return /* @__PURE__ */ r(a.Description, {
|
|
77
|
-
"data-slot": "sheet-description",
|
|
78
|
-
className: t("ttw:text-muted-foreground ttw:text-sm", e),
|
|
79
|
-
...n
|
|
80
|
-
});
|
|
81
|
-
}
|
|
7
|
+
var a = r(({ unitId: r }) => {
|
|
8
|
+
let { api: a } = e(), { data: o, isLoading: s } = a.finops.getMeasureUnitsId.useQuery({ path: { unit_id: r } });
|
|
9
|
+
return s ? /* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-4" }) : o ? /* @__PURE__ */ i(n, {
|
|
10
|
+
color: "muted",
|
|
11
|
+
variant: "body2",
|
|
12
|
+
children: o.name
|
|
13
|
+
}) : null;
|
|
14
|
+
});
|
|
82
15
|
//#endregion
|
|
83
|
-
export {
|
|
16
|
+
export { a as MeasureUnit };
|