@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.
Files changed (185) hide show
  1. package/dist/lib/monite-sdk.d.ts +42 -42
  2. package/dist/lib/monite-sdk.js +18 -18
  3. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +19 -19
  4. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +56 -10
  5. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +10 -37
  6. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +39 -1
  7. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +0 -105
  8. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +105 -0
  9. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +1 -56
  10. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +56 -1
  11. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +1 -55
  12. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +55 -1
  13. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -55
  14. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +55 -1
  15. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -153
  16. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +150 -52
  17. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +55 -2
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +0 -1
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +2 -0
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +0 -1
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +2 -10
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +7 -53
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +51 -36
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +38 -71
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +72 -39
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +36 -9
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +7 -6
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +6 -64
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +57 -158
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +172 -7
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +6 -1
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +2 -76
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +76 -1
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +0 -78
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +78 -0
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +1 -35
  37. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +35 -1
  38. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +0 -57
  39. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +56 -42
  40. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +44 -1
  41. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +0 -568
  42. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +568 -0
  43. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +1 -1
  44. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +1 -160
  45. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +159 -0
  46. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +0 -26
  47. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +26 -0
  48. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +1 -12
  49. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +2 -2
  50. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +2 -2
  51. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +10 -16
  52. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +16 -19
  53. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +19 -27
  54. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +29 -1
  55. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +1 -93
  56. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +4 -4
  57. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +1 -1
  58. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +4 -4
  59. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +1 -1
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +1 -1
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +2 -2
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +1 -1
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +12 -11
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +4 -4
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +2 -2
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +1 -1
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +2 -2
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +4 -4
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +1 -1
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +87 -41
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +44 -48
  72. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +48 -82
  73. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +83 -7
  74. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +7 -305
  75. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +307 -1
  76. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +1 -32
  77. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +32 -1
  78. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +1 -29
  79. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +29 -1
  80. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +1 -22
  81. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +22 -1
  82. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +0 -159
  83. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +159 -0
  84. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +1 -37
  85. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +34 -33
  86. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +33 -3
  87. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +3 -102
  88. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +88 -172
  89. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +171 -116
  90. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +114 -191
  91. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +209 -11
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +11 -15
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +14 -28
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +31 -1
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +0 -241
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +241 -0
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +1 -36
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +31 -137
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +142 -1
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +0 -166
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +166 -25
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +26 -19
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +16 -17
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +17 -5
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +4 -14
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +12 -18
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +9 -9
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +21 -5
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +4 -13
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +11 -14
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +20 -9
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +8 -26
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +23 -11
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +12 -8
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +8 -24
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +25 -14
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +14 -81
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +81 -14
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +14 -100
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +98 -42
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +43 -27
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +30 -1
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +0 -105
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +102 -35
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +32 -166
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +171 -12
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +13 -3
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +4 -70
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +62 -19
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +24 -209
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +207 -87
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +90 -17
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +17 -158
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +144 -88
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +100 -42
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +46 -4
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +4 -24
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +20 -73
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +74 -16
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +16 -19
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +19 -5
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +4 -8
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +10 -11
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +11 -131
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +129 -4
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +4 -4
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +8 -5
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +4 -221
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +219 -31
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +31 -11
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +12 -34
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +34 -20
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +18 -72
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +73 -181
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +182 -14
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +14 -204
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +192 -88
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +97 -61
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +63 -54
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +46 -83
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +91 -40
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +39 -75
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +63 -71
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +85 -12
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +12 -24
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +25 -16
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +14 -2
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +4 -23
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +23 -0
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +0 -45
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +46 -32
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +30 -2
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +2 -34
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +33 -15
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +14 -29
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +29 -27
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +31 -2
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +2 -97
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +97 -0
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +2 -17
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +17 -3
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +5 -1
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +1 -57
  184. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  185. package/package.json +1 -1
@@ -1,160 +1 @@
1
- import { useMoniteContext as e } from "./index45.js";
2
- import { getCounterpartName as t } from "./index50.js";
3
- import { useDialog as n } from "./index128.js";
4
- import { useApprovalPolicyTrigger as r } from "./index91.js";
5
- import { User as i } from "./index74.js";
6
- import "./index75.js";
7
- import { useApprovalPolicyScript as a } from "./index99.js";
8
- import { Role as o } from "./index101.js";
9
- import "./index102.js";
10
- import "./index129.js";
11
- import { DialogFooter as s } from "./index130.js";
12
- import "./index131.js";
13
- import { DialogHeader as c } from "./index134.js";
14
- import "./index139.js";
15
- import { Fragment as l, jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
16
- import { toast as f } from "react-hot-toast";
17
- import { Chip as p, DialogContent as m, Paper as h, Stack as g, Table as _, TableBody as v, TableCell as y, TableHead as b, TableRow as x, Typography as S } from "@mui/material";
18
- import { Trans as C, useLingui as w } from "@lingui/react";
19
- //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js
20
- var T = ({ approvalPolicy: T, setIsEdit: E }) => {
21
- let { i18n: D } = w(), O = n(), { api: k, queryClient: A } = e(), { triggers: j, getTriggerLabel: M, getAmountLabel: N } = r({ approvalPolicy: T }), { rules: P, getRuleLabel: F } = a({ approvalPolicy: T }), { data: I } = k.finops.getCounterparts.useQuery({ query: { id__in: Array.isArray(j?.counterpart_id) ? j.counterpart_id : [] } }, { enabled: !!j?.counterpart_id?.length }), L = k.finops.deleteApprovalPoliciesId.useMutation(void 0, { onSuccess: async () => {
22
- await Promise.all([k.finops.getApprovalPolicies.invalidateQueries(A), k.finops.getApprovalPoliciesId.invalidateQueries({ parameters: { path: { approval_policy_id: T.id } } }, A)]), f.success(D._("Approval policy has been deleted"));
23
- } }), R = Object.keys(j).map((e) => {
24
- let n = M(e), r;
25
- switch (e) {
26
- case "was_created_by_user_id":
27
- Array.isArray(j[e]) && (r = /* @__PURE__ */ u(g, {
28
- direction: "row",
29
- gap: 1,
30
- sx: { flexWrap: "wrap" },
31
- children: j[e].map((e) => /* @__PURE__ */ u(i, { userId: e }, e))
32
- }));
33
- break;
34
- case "counterpart_id":
35
- r = /* @__PURE__ */ u(g, {
36
- direction: "row",
37
- gap: 1,
38
- sx: { flexWrap: "wrap" },
39
- children: I?.data.map((e) => /* @__PURE__ */ u(p, { label: t(e) }, e.id))
40
- });
41
- break;
42
- case "amount":
43
- r = /* @__PURE__ */ u("p", { children: N(j.amount?.value ?? [], j.amount?.currency ?? "EUR") });
44
- break;
45
- default: r = e;
46
- }
47
- return {
48
- label: n,
49
- value: r
50
- };
51
- }), z = P && Object.keys(P)?.map((e) => {
52
- if (!P[e]) return null;
53
- switch (e) {
54
- case "single_user": return {
55
- label: F(e),
56
- value: /* @__PURE__ */ u(i, { userId: P[e].userId })
57
- };
58
- case "users_from_list": return {
59
- label: F(e, P[e].count),
60
- value: /* @__PURE__ */ u(g, {
61
- direction: "column",
62
- gap: 1,
63
- sx: { flexWrap: "wrap" },
64
- children: P[e].userIds?.map((e) => /* @__PURE__ */ u(i, { userId: e }, e))
65
- })
66
- };
67
- case "roles_from_list": return {
68
- label: F(e),
69
- value: /* @__PURE__ */ u(g, {
70
- direction: "row",
71
- gap: 1,
72
- sx: { flexWrap: "wrap" },
73
- children: P[e].roleIds?.map((e) => /* @__PURE__ */ u(o, {
74
- roleId: e,
75
- quoted: !0
76
- }, e))
77
- })
78
- };
79
- case "approval_chain": return {
80
- label: F(e),
81
- value: /* @__PURE__ */ u(g, {
82
- direction: "column",
83
- spacing: .5,
84
- children: P[e].chainUserIds?.map((e) => e ? /* @__PURE__ */ u(i, { userId: e }, e) : null)
85
- })
86
- };
87
- }
88
- });
89
- return /* @__PURE__ */ d(l, { children: [
90
- /* @__PURE__ */ u(c, {
91
- title: T?.name,
92
- closeButtonTooltip: D._("Close approval policy details")
93
- }),
94
- /* @__PURE__ */ d(m, { children: [
95
- /* @__PURE__ */ u(S, {
96
- variant: "h5",
97
- mt: 2,
98
- mb: 1,
99
- children: D._("Description")
100
- }),
101
- T?.description && /* @__PURE__ */ u(S, {
102
- variant: "body1",
103
- children: T.description
104
- }),
105
- /* @__PURE__ */ u(S, {
106
- variant: "h5",
107
- mt: 4,
108
- mb: 1,
109
- children: D._("Conditions")
110
- }),
111
- /* @__PURE__ */ u(S, {
112
- variant: "body1",
113
- mb: 1,
114
- children: /* @__PURE__ */ u(C, {
115
- id: "INKhSX",
116
- components: { 0: /* @__PURE__ */ u("strong", {}) }
117
- })
118
- }),
119
- /* @__PURE__ */ u(h, {
120
- variant: "outlined",
121
- children: /* @__PURE__ */ d(_, { children: [/* @__PURE__ */ u(b, { children: /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(y, { children: D._("Condition") }), /* @__PURE__ */ u(y, { children: D._("Criteria") })] }) }), /* @__PURE__ */ u(v, { children: R.length > 0 ? R.map((e) => /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(y, { children: e.label }), /* @__PURE__ */ u(y, { children: e.value })] }, e.label)) : /* @__PURE__ */ u(x, { children: /* @__PURE__ */ u(y, {
122
- colSpan: 2,
123
- children: D._("No conditions")
124
- }) }) })] })
125
- }),
126
- /* @__PURE__ */ u(S, {
127
- variant: "h5",
128
- mt: 4,
129
- mb: 1,
130
- children: D._("Approval flow")
131
- }),
132
- /* @__PURE__ */ u(S, {
133
- variant: "body1",
134
- mb: 1,
135
- children: D._("Who needs to approve the document and how:")
136
- }),
137
- /* @__PURE__ */ u(h, {
138
- variant: "outlined",
139
- children: /* @__PURE__ */ d(_, { children: [/* @__PURE__ */ u(b, { children: /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(y, { children: D._("Approval type") }), /* @__PURE__ */ u(y, { children: D._("Users or Roles") })] }) }), /* @__PURE__ */ u(v, { children: z && z.length > 0 ? z.map((e) => /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(y, { children: e?.label }), /* @__PURE__ */ u(y, { children: e?.value })] }, e?.label)) : /* @__PURE__ */ u(x, { children: /* @__PURE__ */ u(y, {
140
- colSpan: 2,
141
- children: D._("No rules")
142
- }) }) })] })
143
- })
144
- ] }),
145
- /* @__PURE__ */ u(s, {
146
- primaryButton: {
147
- label: D._("Edit"),
148
- onClick: () => E(!0)
149
- },
150
- deleteButton: {
151
- onClick: () => {
152
- L.mutate({ path: { approval_policy_id: T.id } }, { onSuccess: () => O?.onClose?.() });
153
- },
154
- isLoading: L.isPending
155
- }
156
- })
157
- ] });
158
- };
159
- //#endregion
160
- export { T as ApprovalPolicyView };
1
+ import "./index135.js";
@@ -1 +1,160 @@
1
+ import { useMoniteContext as e } from "./index45.js";
2
+ import { getCounterpartName as t } from "./index50.js";
3
+ import { useDialog as n } from "./index129.js";
4
+ import { useApprovalPolicyTrigger as r } from "./index91.js";
5
+ import { User as i } from "./index74.js";
6
+ import "./index75.js";
7
+ import { useApprovalPolicyScript as a } from "./index100.js";
8
+ import { Role as o } from "./index102.js";
9
+ import "./index103.js";
10
+ import "./index130.js";
11
+ import { DialogFooter as s } from "./index131.js";
12
+ import "./index132.js";
13
+ import { DialogHeader as c } from "./index135.js";
1
14
  import "./index140.js";
15
+ import { Fragment as l, jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
16
+ import { toast as f } from "react-hot-toast";
17
+ import { Chip as p, DialogContent as m, Paper as h, Stack as g, Table as _, TableBody as v, TableCell as y, TableHead as b, TableRow as x, Typography as S } from "@mui/material";
18
+ import { Trans as C, useLingui as w } from "@lingui/react";
19
+ //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js
20
+ var T = ({ approvalPolicy: T, setIsEdit: E }) => {
21
+ let { i18n: D } = w(), O = n(), { api: k, queryClient: A } = e(), { triggers: j, getTriggerLabel: M, getAmountLabel: N } = r({ approvalPolicy: T }), { rules: P, getRuleLabel: F } = a({ approvalPolicy: T }), { data: I } = k.finops.getCounterparts.useQuery({ query: { id__in: Array.isArray(j?.counterpart_id) ? j.counterpart_id : [] } }, { enabled: !!j?.counterpart_id?.length }), L = k.finops.deleteApprovalPoliciesId.useMutation(void 0, { onSuccess: async () => {
22
+ await Promise.all([k.finops.getApprovalPolicies.invalidateQueries(A), k.finops.getApprovalPoliciesId.invalidateQueries({ parameters: { path: { approval_policy_id: T.id } } }, A)]), f.success(D._("Approval policy has been deleted"));
23
+ } }), R = Object.keys(j).map((e) => {
24
+ let n = M(e), r;
25
+ switch (e) {
26
+ case "was_created_by_user_id":
27
+ Array.isArray(j[e]) && (r = /* @__PURE__ */ u(g, {
28
+ direction: "row",
29
+ gap: 1,
30
+ sx: { flexWrap: "wrap" },
31
+ children: j[e].map((e) => /* @__PURE__ */ u(i, { userId: e }, e))
32
+ }));
33
+ break;
34
+ case "counterpart_id":
35
+ r = /* @__PURE__ */ u(g, {
36
+ direction: "row",
37
+ gap: 1,
38
+ sx: { flexWrap: "wrap" },
39
+ children: I?.data.map((e) => /* @__PURE__ */ u(p, { label: t(e) }, e.id))
40
+ });
41
+ break;
42
+ case "amount":
43
+ r = /* @__PURE__ */ u("p", { children: N(j.amount?.value ?? [], j.amount?.currency ?? "EUR") });
44
+ break;
45
+ default: r = e;
46
+ }
47
+ return {
48
+ label: n,
49
+ value: r
50
+ };
51
+ }), z = P && Object.keys(P)?.map((e) => {
52
+ if (!P[e]) return null;
53
+ switch (e) {
54
+ case "single_user": return {
55
+ label: F(e),
56
+ value: /* @__PURE__ */ u(i, { userId: P[e].userId })
57
+ };
58
+ case "users_from_list": return {
59
+ label: F(e, P[e].count),
60
+ value: /* @__PURE__ */ u(g, {
61
+ direction: "column",
62
+ gap: 1,
63
+ sx: { flexWrap: "wrap" },
64
+ children: P[e].userIds?.map((e) => /* @__PURE__ */ u(i, { userId: e }, e))
65
+ })
66
+ };
67
+ case "roles_from_list": return {
68
+ label: F(e),
69
+ value: /* @__PURE__ */ u(g, {
70
+ direction: "row",
71
+ gap: 1,
72
+ sx: { flexWrap: "wrap" },
73
+ children: P[e].roleIds?.map((e) => /* @__PURE__ */ u(o, {
74
+ roleId: e,
75
+ quoted: !0
76
+ }, e))
77
+ })
78
+ };
79
+ case "approval_chain": return {
80
+ label: F(e),
81
+ value: /* @__PURE__ */ u(g, {
82
+ direction: "column",
83
+ spacing: .5,
84
+ children: P[e].chainUserIds?.map((e) => e ? /* @__PURE__ */ u(i, { userId: e }, e) : null)
85
+ })
86
+ };
87
+ }
88
+ });
89
+ return /* @__PURE__ */ d(l, { children: [
90
+ /* @__PURE__ */ u(c, {
91
+ title: T?.name,
92
+ closeButtonTooltip: D._("Close approval policy details")
93
+ }),
94
+ /* @__PURE__ */ d(m, { children: [
95
+ /* @__PURE__ */ u(S, {
96
+ variant: "h5",
97
+ mt: 2,
98
+ mb: 1,
99
+ children: D._("Description")
100
+ }),
101
+ T?.description && /* @__PURE__ */ u(S, {
102
+ variant: "body1",
103
+ children: T.description
104
+ }),
105
+ /* @__PURE__ */ u(S, {
106
+ variant: "h5",
107
+ mt: 4,
108
+ mb: 1,
109
+ children: D._("Conditions")
110
+ }),
111
+ /* @__PURE__ */ u(S, {
112
+ variant: "body1",
113
+ mb: 1,
114
+ children: /* @__PURE__ */ u(C, {
115
+ id: "INKhSX",
116
+ components: { 0: /* @__PURE__ */ u("strong", {}) }
117
+ })
118
+ }),
119
+ /* @__PURE__ */ u(h, {
120
+ variant: "outlined",
121
+ children: /* @__PURE__ */ d(_, { children: [/* @__PURE__ */ u(b, { children: /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(y, { children: D._("Condition") }), /* @__PURE__ */ u(y, { children: D._("Criteria") })] }) }), /* @__PURE__ */ u(v, { children: R.length > 0 ? R.map((e) => /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(y, { children: e.label }), /* @__PURE__ */ u(y, { children: e.value })] }, e.label)) : /* @__PURE__ */ u(x, { children: /* @__PURE__ */ u(y, {
122
+ colSpan: 2,
123
+ children: D._("No conditions")
124
+ }) }) })] })
125
+ }),
126
+ /* @__PURE__ */ u(S, {
127
+ variant: "h5",
128
+ mt: 4,
129
+ mb: 1,
130
+ children: D._("Approval flow")
131
+ }),
132
+ /* @__PURE__ */ u(S, {
133
+ variant: "body1",
134
+ mb: 1,
135
+ children: D._("Who needs to approve the document and how:")
136
+ }),
137
+ /* @__PURE__ */ u(h, {
138
+ variant: "outlined",
139
+ children: /* @__PURE__ */ d(_, { children: [/* @__PURE__ */ u(b, { children: /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(y, { children: D._("Approval type") }), /* @__PURE__ */ u(y, { children: D._("Users or Roles") })] }) }), /* @__PURE__ */ u(v, { children: z && z.length > 0 ? z.map((e) => /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(y, { children: e?.label }), /* @__PURE__ */ u(y, { children: e?.value })] }, e?.label)) : /* @__PURE__ */ u(x, { children: /* @__PURE__ */ u(y, {
140
+ colSpan: 2,
141
+ children: D._("No rules")
142
+ }) }) })] })
143
+ })
144
+ ] }),
145
+ /* @__PURE__ */ u(s, {
146
+ primaryButton: {
147
+ label: D._("Edit"),
148
+ onClick: () => E(!0)
149
+ },
150
+ deleteButton: {
151
+ onClick: () => {
152
+ L.mutate({ path: { approval_policy_id: T.id } }, { onSuccess: () => O?.onClose?.() });
153
+ },
154
+ isLoading: L.isPending
155
+ }
156
+ })
157
+ ] });
158
+ };
159
+ //#endregion
160
+ export { T as ApprovalPolicyView };
@@ -1,27 +1 @@
1
- import { useApprovalPolicyById as e } from "./index53.js";
2
- import "./index63.js";
3
- import { LoadingPage as t } from "./index68.js";
4
- import "./index69.js";
5
- import { ApprovalPolicyForm as n } from "./index137.js";
6
- import "./index138.js";
7
- import { ApprovalPolicyView as r } from "./index140.js";
8
1
  import "./index141.js";
9
- import { useState as i } from "react";
10
- import { jsx as a } from "@emotion/react/jsx-runtime";
11
- //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js
12
- var o = ({ id: o, onCreated: s, onUpdated: c }) => {
13
- let [l, u] = i(!1), { data: d, isLoading: f } = e(o);
14
- return o && f ? /* @__PURE__ */ a(t, {}) : !l && d ? /* @__PURE__ */ a(r, {
15
- approvalPolicy: d,
16
- setIsEdit: u
17
- }) : l && d ? /* @__PURE__ */ a(n, {
18
- approvalPolicy: d,
19
- setIsEdit: u,
20
- onUpdated: c
21
- }) : /* @__PURE__ */ a(n, {
22
- setIsEdit: u,
23
- onCreated: s
24
- });
25
- };
26
- //#endregion
27
- export { o as ApprovalPolicyDetails };
@@ -1 +1,27 @@
1
+ import { useApprovalPolicyById as e } from "./index53.js";
2
+ import "./index63.js";
3
+ import { LoadingPage as t } from "./index68.js";
4
+ import "./index69.js";
5
+ import { ApprovalPolicyForm as n } from "./index138.js";
6
+ import "./index139.js";
7
+ import { ApprovalPolicyView as r } from "./index141.js";
1
8
  import "./index142.js";
9
+ import { useState as i } from "react";
10
+ import { jsx as a } from "@emotion/react/jsx-runtime";
11
+ //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js
12
+ var o = ({ id: o, onCreated: s, onUpdated: c }) => {
13
+ let [l, u] = i(!1), { data: d, isLoading: f } = e(o);
14
+ return o && f ? /* @__PURE__ */ a(t, {}) : !l && d ? /* @__PURE__ */ a(r, {
15
+ approvalPolicy: d,
16
+ setIsEdit: u
17
+ }) : l && d ? /* @__PURE__ */ a(n, {
18
+ approvalPolicy: d,
19
+ setIsEdit: u,
20
+ onUpdated: c
21
+ }) : /* @__PURE__ */ a(n, {
22
+ setIsEdit: u,
23
+ onCreated: s
24
+ });
25
+ };
26
+ //#endregion
27
+ export { o as ApprovalPolicyDetails };
@@ -1,12 +1 @@
1
- import { createElement as e } from "react";
2
- //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js
3
- var t = ({ color: t = "currentColor", size: n, ...r }) => e("svg", {
4
- xmlns: "http://www.w3.org/2000/svg",
5
- width: n,
6
- height: n,
7
- viewBox: "0 0 24 24",
8
- fill: t,
9
- ...r
10
- }, e("path", { d: "M3.5,6a1,1,0,1,0,1,1A1,1,0,0,0,3.5,6Zm4,2h14a1,1,0,0,0,0-2H7.5a1,1,0,0,0,0,2Zm0,3a1,1,0,1,0,1,1A1,1,0,0,0,7.5,11Zm4,5a1,1,0,1,0,1,1A1,1,0,0,0,11.5,16Zm10-5h-10a1,1,0,0,0,0,2h10a1,1,0,0,0,0-2Zm0,5h-6a1,1,0,0,0,0,2h6a1,1,0,0,0,0-2Z" }));
11
- //#endregion
12
- export { t as UListUiAlt };
1
+ import "./index143.js";
@@ -7,6 +7,6 @@ var t = ({ color: t = "currentColor", size: n, ...r }) => e("svg", {
7
7
  viewBox: "0 0 24 24",
8
8
  fill: t,
9
9
  ...r
10
- }, e("path", { d: "M12,2A10,10,0,0,0,4.65,18.76h0a10,10,0,0,0,14.7,0h0A10,10,0,0,0,12,2Zm0,18a8,8,0,0,1-5.55-2.25,6,6,0,0,1,11.1,0A8,8,0,0,1,12,20ZM10,10a2,2,0,1,1,2,2A2,2,0,0,1,10,10Zm8.91,6A8,8,0,0,0,15,12.62a4,4,0,1,0-6,0A8,8,0,0,0,5.09,16,7.92,7.92,0,0,1,4,12a8,8,0,0,1,16,0A7.92,7.92,0,0,1,18.91,16Z" }));
10
+ }, e("path", { d: "M3.5,6a1,1,0,1,0,1,1A1,1,0,0,0,3.5,6Zm4,2h14a1,1,0,0,0,0-2H7.5a1,1,0,0,0,0,2Zm0,3a1,1,0,1,0,1,1A1,1,0,0,0,7.5,11Zm4,5a1,1,0,1,0,1,1A1,1,0,0,0,11.5,16Zm10-5h-10a1,1,0,0,0,0,2h10a1,1,0,0,0,0-2Zm0,5h-6a1,1,0,0,0,0,2h6a1,1,0,0,0,0-2Z" }));
11
11
  //#endregion
12
- export { t as UUserCircle };
12
+ export { t as UListUiAlt };
@@ -7,6 +7,6 @@ var t = ({ color: t = "currentColor", size: n, ...r }) => e("svg", {
7
7
  viewBox: "0 0 24 24",
8
8
  fill: t,
9
9
  ...r
10
- }, e("path", { d: "M12.3,12.22A4.92,4.92,0,0,0,14,8.5a5,5,0,0,0-10,0,4.92,4.92,0,0,0,1.7,3.72A8,8,0,0,0,1,19.5a1,1,0,0,0,2,0,6,6,0,0,1,12,0,1,1,0,0,0,2,0A8,8,0,0,0,12.3,12.22ZM9,11.5a3,3,0,1,1,3-3A3,3,0,0,1,9,11.5Zm9.74.32A5,5,0,0,0,15,3.5a1,1,0,0,0,0,2,3,3,0,0,1,3,3,3,3,0,0,1-1.5,2.59,1,1,0,0,0-.5.84,1,1,0,0,0,.45.86l.39.26.13.07a7,7,0,0,1,4,6.38,1,1,0,0,0,2,0A9,9,0,0,0,18.74,11.82Z" }));
10
+ }, e("path", { d: "M12,2A10,10,0,0,0,4.65,18.76h0a10,10,0,0,0,14.7,0h0A10,10,0,0,0,12,2Zm0,18a8,8,0,0,1-5.55-2.25,6,6,0,0,1,11.1,0A8,8,0,0,1,12,20ZM10,10a2,2,0,1,1,2,2A2,2,0,0,1,10,10Zm8.91,6A8,8,0,0,0,15,12.62a4,4,0,1,0-6,0A8,8,0,0,0,5.09,16,7.92,7.92,0,0,1,4,12a8,8,0,0,1,16,0A7.92,7.92,0,0,1,18.91,16Z" }));
11
11
  //#endregion
12
- export { t as UUsersAlt };
12
+ export { t as UUserCircle };
@@ -1,18 +1,12 @@
1
- import e from "@emotion/styled/base";
1
+ import { createElement as e } from "react";
2
2
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js
3
- function t() {
4
- return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
5
- }
6
- var n = /*#__PURE__*/ e("ul", process.env.NODE_ENV === "production" ? { target: "e10it8hw0" } : {
7
- target: "e10it8hw0",
8
- label: "ColumnList"
9
- })(process.env.NODE_ENV === "production" ? {
10
- name: "1932ye7",
11
- styles: "margin:0;padding:0;list-style:none;li{display:flex;gap:4px;align-items:center;}"
12
- } : {
13
- name: "1932ye7",
14
- styles: "margin:0;padding:0;list-style:none;li{display:flex;gap:4px;align-items:center;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL1Rlc291cm8uUGF5bWVudHMuRnJvbnRlbmRzL1Rlc291cm8uUGF5bWVudHMuRnJvbnRlbmRzL2xpYnMvdGVzb3Vyby1lbWJlZGRlZC1jb21wb25lbnRzLXJlYWN0L21vbml0ZS1zZGsvc3JjL2NvbXBvbmVudHMvYXBwcm92YWxQb2xpY2llcy9BcHByb3ZhbFBvbGljaWVzVGFibGUvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVtQyIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay9UZXNvdXJvLlBheW1lbnRzLkZyb250ZW5kcy9UZXNvdXJvLlBheW1lbnRzLkZyb250ZW5kcy9saWJzL3Rlc291cm8tZW1iZWRkZWQtY29tcG9uZW50cy1yZWFjdC9tb25pdGUtc2RrL3NyYy9jb21wb25lbnRzL2FwcHJvdmFsUG9saWNpZXMvQXBwcm92YWxQb2xpY2llc1RhYmxlL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuZXhwb3J0IGNvbnN0IENvbHVtbkxpc3QgPSBzdHlsZWQudWxgXG4gIG1hcmdpbjogMDtcbiAgcGFkZGluZzogMDtcbiAgbGlzdC1zdHlsZTogbm9uZTtcblxuICBsaSB7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBnYXA6IDRweDtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICB9XG5gO1xuIl19 */",
15
- toString: t
16
- });
3
+ var t = ({ color: t = "currentColor", size: n, ...r }) => e("svg", {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ width: n,
6
+ height: n,
7
+ viewBox: "0 0 24 24",
8
+ fill: t,
9
+ ...r
10
+ }, e("path", { d: "M12.3,12.22A4.92,4.92,0,0,0,14,8.5a5,5,0,0,0-10,0,4.92,4.92,0,0,0,1.7,3.72A8,8,0,0,0,1,19.5a1,1,0,0,0,2,0,6,6,0,0,1,12,0,1,1,0,0,0,2,0A8,8,0,0,0,12.3,12.22ZM9,11.5a3,3,0,1,1,3-3A3,3,0,0,1,9,11.5Zm9.74.32A5,5,0,0,0,15,3.5a1,1,0,0,0,0,2,3,3,0,0,1,3,3,3,3,0,0,1-1.5,2.59,1,1,0,0,0-.5.84,1,1,0,0,0,.45.86l.39.26.13.07a7,7,0,0,1,4,6.38,1,1,0,0,0,2,0A9,9,0,0,0,18.74,11.82Z" }));
17
11
  //#endregion
18
- export { n as ColumnList };
12
+ export { t as UUsersAlt };
@@ -1,21 +1,18 @@
1
- import { useApprovalPolicyScript as e } from "./index99.js";
2
- import { UUserSquare as t } from "./index100.js";
3
- import { UListUiAlt as n } from "./index144.js";
4
- import { UUserCircle as r } from "./index145.js";
5
- import { UUsersAlt as i } from "./index146.js";
6
- import { ColumnList as a } from "./index147.js";
7
- import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
1
+ import e from "@emotion/styled/base";
8
2
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js
9
- var c = ({ approvalPolicy: c }) => {
10
- let { rules: l, getRuleName: u } = e({ approvalPolicy: c });
11
- return c ? /* @__PURE__ */ o(a, { children: l && Object.keys(l).map((e) => {
12
- switch (e) {
13
- case "single_user": return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ o(r, { width: 18 }), u(e)] }, e);
14
- case "users_from_list": return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ o(i, { width: 18 }), u(e)] }, e);
15
- case "roles_from_list": return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ o(t, { width: 18 }), u(e)] }, e);
16
- case "approval_chain": return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ o(n, { width: 18 }), u(e)] }, e);
17
- }
18
- }) }) : null;
19
- };
3
+ function t() {
4
+ return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
5
+ }
6
+ var n = /*#__PURE__*/ e("ul", process.env.NODE_ENV === "production" ? { target: "e10it8hw0" } : {
7
+ target: "e10it8hw0",
8
+ label: "ColumnList"
9
+ })(process.env.NODE_ENV === "production" ? {
10
+ name: "1932ye7",
11
+ styles: "margin:0;padding:0;list-style:none;li{display:flex;gap:4px;align-items:center;}"
12
+ } : {
13
+ name: "1932ye7",
14
+ styles: "margin:0;padding:0;list-style:none;li{display:flex;gap:4px;align-items:center;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL1Rlc291cm8uUGF5bWVudHMuRnJvbnRlbmRzL1Rlc291cm8uUGF5bWVudHMuRnJvbnRlbmRzL2xpYnMvdGVzb3Vyby1lbWJlZGRlZC1jb21wb25lbnRzLXJlYWN0L21vbml0ZS1zZGsvc3JjL2NvbXBvbmVudHMvYXBwcm92YWxQb2xpY2llcy9BcHByb3ZhbFBvbGljaWVzVGFibGUvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVtQyIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay9UZXNvdXJvLlBheW1lbnRzLkZyb250ZW5kcy9UZXNvdXJvLlBheW1lbnRzLkZyb250ZW5kcy9saWJzL3Rlc291cm8tZW1iZWRkZWQtY29tcG9uZW50cy1yZWFjdC9tb25pdGUtc2RrL3NyYy9jb21wb25lbnRzL2FwcHJvdmFsUG9saWNpZXMvQXBwcm92YWxQb2xpY2llc1RhYmxlL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuZXhwb3J0IGNvbnN0IENvbHVtbkxpc3QgPSBzdHlsZWQudWxgXG4gIG1hcmdpbjogMDtcbiAgcGFkZGluZzogMDtcbiAgbGlzdC1zdHlsZTogbm9uZTtcblxuICBsaSB7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBnYXA6IDRweDtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICB9XG5gO1xuIl19 */",
15
+ toString: t
16
+ });
20
17
  //#endregion
21
- export { c as ApprovalPoliciesRules };
18
+ export { n as ColumnList };
@@ -1,29 +1,21 @@
1
- import { APPROVAL_STATUS_TO_MUI_ICON_MAP as e, ROW_TO_STATUS_MUI_MAP as t, getRowToStatusTextMap as n } from "./index96.js";
2
- import { jsx as r } from "@emotion/react/jsx-runtime";
3
- import { Chip as i } from "@mui/material";
4
- import { useLingui as a } from "@lingui/react";
5
- import o from "@mui/icons-material/Circle";
6
- import { styled as s, useThemeProps as c } from "@mui/material/styles";
1
+ import { useApprovalPolicyScript as e } from "./index100.js";
2
+ import { UUserSquare as t } from "./index101.js";
3
+ import { UListUiAlt as n } from "./index145.js";
4
+ import { UUserCircle as r } from "./index146.js";
5
+ import { UUsersAlt as i } from "./index147.js";
6
+ import { ColumnList as a } from "./index148.js";
7
+ import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
7
8
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js
8
- var l = ({ ref: i, ...s }) => {
9
- let { status: l, icon: d, size: f, variant: p } = c({
10
- props: s,
11
- name: "MoniteApprovalStatusChip"
12
- }), { i18n: m } = a(), h = e[l];
13
- return /* @__PURE__ */ r(u, {
14
- className: "Monite-ApprovalStatusChip",
15
- ref: i,
16
- color: t[l],
17
- icon: d && h ? /* @__PURE__ */ r(h, { fontSize: "small" }) : /* @__PURE__ */ r(o, { sx: { fontSize: "10px" } }),
18
- label: n(m)[l],
19
- size: f,
20
- status: l,
21
- variant: p ?? "filled"
22
- });
23
- }, u = s(i, {
24
- name: "MoniteApprovalStatusChip",
25
- slot: "root",
26
- shouldForwardProp: () => !0
27
- })({});
9
+ var c = ({ approvalPolicy: c }) => {
10
+ let { rules: l, getRuleName: u } = e({ approvalPolicy: c });
11
+ return c ? /* @__PURE__ */ o(a, { children: l && Object.keys(l).map((e) => {
12
+ switch (e) {
13
+ case "single_user": return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ o(r, { width: 18 }), u(e)] }, e);
14
+ case "users_from_list": return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ o(i, { width: 18 }), u(e)] }, e);
15
+ case "roles_from_list": return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ o(t, { width: 18 }), u(e)] }, e);
16
+ case "approval_chain": return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ o(n, { width: 18 }), u(e)] }, e);
17
+ }
18
+ }) }) : null;
19
+ };
28
20
  //#endregion
29
- export { l as ApprovalStatusChip, u as StyledChip };
21
+ export { c as ApprovalPoliciesRules };
@@ -1 +1,29 @@
1
- import "./index149.js";
1
+ import { APPROVAL_STATUS_TO_MUI_ICON_MAP as e, ROW_TO_STATUS_MUI_MAP as t, getRowToStatusTextMap as n } from "./index97.js";
2
+ import { jsx as r } from "@emotion/react/jsx-runtime";
3
+ import { Chip as i } from "@mui/material";
4
+ import { useLingui as a } from "@lingui/react";
5
+ import o from "@mui/icons-material/Circle";
6
+ import { styled as s, useThemeProps as c } from "@mui/material/styles";
7
+ //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js
8
+ var l = ({ ref: i, ...s }) => {
9
+ let { status: l, icon: d, size: f, variant: p } = c({
10
+ props: s,
11
+ name: "MoniteApprovalStatusChip"
12
+ }), { i18n: m } = a(), h = e[l];
13
+ return /* @__PURE__ */ r(u, {
14
+ className: "Monite-ApprovalStatusChip",
15
+ ref: i,
16
+ color: t[l],
17
+ icon: d && h ? /* @__PURE__ */ r(h, { fontSize: "small" }) : /* @__PURE__ */ r(o, { sx: { fontSize: "10px" } }),
18
+ label: n(m)[l],
19
+ size: f,
20
+ status: l,
21
+ variant: p ?? "filled"
22
+ });
23
+ }, u = s(i, {
24
+ name: "MoniteApprovalStatusChip",
25
+ slot: "root",
26
+ shouldForwardProp: () => !0
27
+ })({});
28
+ //#endregion
29
+ export { l as ApprovalStatusChip, u as StyledChip };