react-native-exp-fig 0.1.41 → 0.1.42

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 (187) hide show
  1. package/lib/commonjs/@types/as-base-component.js.map +1 -1
  2. package/lib/commonjs/common/icons-svg/arrow-down/index.js +51 -0
  3. package/lib/commonjs/common/icons-svg/arrow-down/index.js.map +1 -0
  4. package/lib/commonjs/common/icons-svg/constants/index.js +3 -1
  5. package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
  6. package/lib/commonjs/common/icons-svg/user-circle/index.js +37 -0
  7. package/lib/commonjs/common/icons-svg/user-circle/index.js.map +1 -0
  8. package/lib/commonjs/components/active-loadings-summary/index.js +88 -0
  9. package/lib/commonjs/components/active-loadings-summary/index.js.map +1 -0
  10. package/lib/commonjs/components/active-loadings-summary/interface.d.js +6 -0
  11. package/lib/commonjs/components/active-loadings-summary/interface.d.js.map +1 -0
  12. package/lib/commonjs/components/alert-critical-load/index.js +64 -0
  13. package/lib/commonjs/components/alert-critical-load/index.js.map +1 -0
  14. package/lib/commonjs/components/alert-critical-load/interface.js +6 -0
  15. package/lib/commonjs/components/alert-critical-load/interface.js.map +1 -0
  16. package/lib/commonjs/components/alert-critical-load/styles.js +40 -0
  17. package/lib/commonjs/components/alert-critical-load/styles.js.map +1 -0
  18. package/lib/commonjs/components/card-available-load/index.js +131 -0
  19. package/lib/commonjs/components/card-available-load/index.js.map +1 -0
  20. package/lib/commonjs/components/card-available-load/interface.js +6 -0
  21. package/lib/commonjs/components/card-available-load/interface.js.map +1 -0
  22. package/lib/commonjs/components/card-available-load/style.js +54 -0
  23. package/lib/commonjs/components/card-available-load/style.js.map +1 -0
  24. package/lib/commonjs/components/card-driver-data/index.js +105 -0
  25. package/lib/commonjs/components/card-driver-data/index.js.map +1 -0
  26. package/lib/commonjs/components/card-driver-data/interface.js +6 -0
  27. package/lib/commonjs/components/card-driver-data/interface.js.map +1 -0
  28. package/lib/commonjs/components/card-driver-data/style.js +55 -0
  29. package/lib/commonjs/components/card-driver-data/style.js.map +1 -0
  30. package/lib/commonjs/components/card-loading/index.js +9 -9
  31. package/lib/commonjs/components/card-loading/index.js.map +1 -1
  32. package/lib/commonjs/components/card-loading/interface.d.js.map +1 -1
  33. package/lib/commonjs/components/document-carga-info/index.js +98 -0
  34. package/lib/commonjs/components/document-carga-info/index.js.map +1 -0
  35. package/lib/commonjs/components/document-carga-info/interface.js +2 -0
  36. package/lib/commonjs/components/document-carga-info/interface.js.map +1 -0
  37. package/lib/commonjs/components/document-carga-info/styles.js +64 -0
  38. package/lib/commonjs/components/document-carga-info/styles.js.map +1 -0
  39. package/lib/commonjs/components/driver-journey-info/index.js +141 -0
  40. package/lib/commonjs/components/driver-journey-info/index.js.map +1 -0
  41. package/lib/commonjs/components/driver-journey-info/interface.js +6 -0
  42. package/lib/commonjs/components/driver-journey-info/interface.js.map +1 -0
  43. package/lib/commonjs/components/driver-journey-info/style.js +55 -0
  44. package/lib/commonjs/components/driver-journey-info/style.js.map +1 -0
  45. package/lib/commonjs/index.js +42 -0
  46. package/lib/commonjs/index.js.map +1 -1
  47. package/lib/commonjs/stories/active-loadings-summary/active-loadings-summary.stories.js +63 -0
  48. package/lib/commonjs/stories/active-loadings-summary/active-loadings-summary.stories.js.map +1 -0
  49. package/lib/commonjs/stories/alert-critical-load/alert-critical-load.stories.js +58 -0
  50. package/lib/commonjs/stories/alert-critical-load/alert-critical-load.stories.js.map +1 -0
  51. package/lib/commonjs/stories/card-available-load/card-available-load.stories.js +94 -0
  52. package/lib/commonjs/stories/card-available-load/card-available-load.stories.js.map +1 -0
  53. package/lib/commonjs/stories/card-driver-data/card-driver-data.stories.js +81 -0
  54. package/lib/commonjs/stories/card-driver-data/card-driver-data.stories.js.map +1 -0
  55. package/lib/commonjs/stories/document-carga-info/document-carga-info.stories.js +76 -0
  56. package/lib/commonjs/stories/document-carga-info/document-carga-info.stories.js.map +1 -0
  57. package/lib/commonjs/stories/driver-journey-info/driver-journey-info.stories.js +87 -0
  58. package/lib/commonjs/stories/driver-journey-info/driver-journey-info.stories.js.map +1 -0
  59. package/lib/commonjs/styles/theme/theme.js +5 -4
  60. package/lib/commonjs/styles/theme/theme.js.map +1 -1
  61. package/lib/commonjs/utils/status-color/return-color.js +4 -2
  62. package/lib/commonjs/utils/status-color/return-color.js.map +1 -1
  63. package/lib/module/@types/as-base-component.js.map +1 -1
  64. package/lib/module/common/icons-svg/arrow-down/index.js +45 -0
  65. package/lib/module/common/icons-svg/arrow-down/index.js.map +1 -0
  66. package/lib/module/common/icons-svg/constants/index.js +3 -1
  67. package/lib/module/common/icons-svg/constants/index.js.map +1 -1
  68. package/lib/module/common/icons-svg/user-circle/index.js +29 -0
  69. package/lib/module/common/icons-svg/user-circle/index.js.map +1 -0
  70. package/lib/module/components/active-loadings-summary/index.js +81 -0
  71. package/lib/module/components/active-loadings-summary/index.js.map +1 -0
  72. package/lib/module/components/active-loadings-summary/interface.d.js +2 -0
  73. package/lib/module/components/active-loadings-summary/interface.d.js.map +1 -0
  74. package/lib/module/components/alert-critical-load/index.js +63 -0
  75. package/lib/module/components/alert-critical-load/index.js.map +1 -0
  76. package/lib/module/components/alert-critical-load/interface.js +2 -0
  77. package/lib/module/components/alert-critical-load/interface.js.map +1 -0
  78. package/lib/module/components/alert-critical-load/styles.js +34 -0
  79. package/lib/module/components/alert-critical-load/styles.js.map +1 -0
  80. package/lib/module/components/card-available-load/index.js +130 -0
  81. package/lib/module/components/card-available-load/index.js.map +1 -0
  82. package/lib/module/components/card-available-load/interface.js +2 -0
  83. package/lib/module/components/card-available-load/interface.js.map +1 -0
  84. package/lib/module/components/card-available-load/style.js +49 -0
  85. package/lib/module/components/card-available-load/style.js.map +1 -0
  86. package/lib/module/components/card-driver-data/index.js +104 -0
  87. package/lib/module/components/card-driver-data/index.js.map +1 -0
  88. package/lib/module/components/card-driver-data/interface.js +2 -0
  89. package/lib/module/components/card-driver-data/interface.js.map +1 -0
  90. package/lib/module/components/card-driver-data/style.js +50 -0
  91. package/lib/module/components/card-driver-data/style.js.map +1 -0
  92. package/lib/module/components/card-loading/index.js +9 -9
  93. package/lib/module/components/card-loading/index.js.map +1 -1
  94. package/lib/module/components/card-loading/interface.d.js.map +1 -1
  95. package/lib/module/components/document-carga-info/index.js +97 -0
  96. package/lib/module/components/document-carga-info/index.js.map +1 -0
  97. package/lib/module/components/document-carga-info/interface.js +2 -0
  98. package/lib/module/components/document-carga-info/interface.js.map +1 -0
  99. package/lib/module/components/document-carga-info/styles.js +60 -0
  100. package/lib/module/components/document-carga-info/styles.js.map +1 -0
  101. package/lib/module/components/driver-journey-info/index.js +140 -0
  102. package/lib/module/components/driver-journey-info/index.js.map +1 -0
  103. package/lib/module/components/driver-journey-info/interface.js +2 -0
  104. package/lib/module/components/driver-journey-info/interface.js.map +1 -0
  105. package/lib/module/components/driver-journey-info/style.js +50 -0
  106. package/lib/module/components/driver-journey-info/style.js.map +1 -0
  107. package/lib/module/index.js +8 -2
  108. package/lib/module/index.js.map +1 -1
  109. package/lib/module/stories/active-loadings-summary/active-loadings-summary.stories.js +57 -0
  110. package/lib/module/stories/active-loadings-summary/active-loadings-summary.stories.js.map +1 -0
  111. package/lib/module/stories/alert-critical-load/alert-critical-load.stories.js +50 -0
  112. package/lib/module/stories/alert-critical-load/alert-critical-load.stories.js.map +1 -0
  113. package/lib/module/stories/card-available-load/card-available-load.stories.js +86 -0
  114. package/lib/module/stories/card-available-load/card-available-load.stories.js.map +1 -0
  115. package/lib/module/stories/card-driver-data/card-driver-data.stories.js +73 -0
  116. package/lib/module/stories/card-driver-data/card-driver-data.stories.js.map +1 -0
  117. package/lib/module/stories/document-carga-info/document-carga-info.stories.js +68 -0
  118. package/lib/module/stories/document-carga-info/document-carga-info.stories.js.map +1 -0
  119. package/lib/module/stories/driver-journey-info/driver-journey-info.stories.js +79 -0
  120. package/lib/module/stories/driver-journey-info/driver-journey-info.stories.js.map +1 -0
  121. package/lib/module/styles/theme/theme.js +5 -4
  122. package/lib/module/styles/theme/theme.js.map +1 -1
  123. package/lib/module/utils/status-color/return-color.js +4 -2
  124. package/lib/module/utils/status-color/return-color.js.map +1 -1
  125. package/lib/typescript/src/common/icons-svg/arrow-down/index.d.ts +10 -0
  126. package/lib/typescript/src/common/icons-svg/constants/index.d.ts +2 -0
  127. package/lib/typescript/src/common/icons-svg/user-circle/index.d.ts +10 -0
  128. package/lib/typescript/src/components/active-loadings-summary/index.d.ts +10 -0
  129. package/lib/typescript/src/components/alert-critical-load/index.d.ts +11 -0
  130. package/lib/typescript/src/components/alert-critical-load/interface.d.ts +9 -0
  131. package/lib/typescript/src/components/alert-critical-load/styles.d.ts +28 -0
  132. package/lib/typescript/src/components/card-available-load/index.d.ts +11 -0
  133. package/lib/typescript/src/components/card-available-load/interface.d.ts +30 -0
  134. package/lib/typescript/src/components/card-available-load/style.d.ts +8 -0
  135. package/lib/typescript/src/components/card-driver-data/index.d.ts +11 -0
  136. package/lib/typescript/src/components/card-driver-data/interface.d.ts +27 -0
  137. package/lib/typescript/src/components/card-driver-data/style.d.ts +8 -0
  138. package/lib/typescript/src/components/document-carga-info/index.d.ts +11 -0
  139. package/lib/typescript/src/components/document-carga-info/interface.d.ts +15 -0
  140. package/lib/typescript/src/components/document-carga-info/styles.d.ts +50 -0
  141. package/lib/typescript/src/components/driver-journey-info/index.d.ts +11 -0
  142. package/lib/typescript/src/components/driver-journey-info/interface.d.ts +28 -0
  143. package/lib/typescript/src/components/driver-journey-info/style.d.ts +8 -0
  144. package/lib/typescript/src/components/selects/select-date-and-hours/index.d.ts +1 -1
  145. package/lib/typescript/src/index.d.ts +6 -0
  146. package/lib/typescript/src/stories/active-loadings-summary/active-loadings-summary.stories.d.ts +8 -0
  147. package/lib/typescript/src/stories/alert-critical-load/alert-critical-load.stories.d.ts +9 -0
  148. package/lib/typescript/src/stories/card-available-load/card-available-load.stories.d.ts +10 -0
  149. package/lib/typescript/src/stories/card-driver-data/card-driver-data.stories.d.ts +10 -0
  150. package/lib/typescript/src/stories/document-carga-info/document-carga-info.stories.d.ts +10 -0
  151. package/lib/typescript/src/stories/driver-journey-info/driver-journey-info.stories.d.ts +10 -0
  152. package/lib/typescript/src/styles/global/theme-provider.d.ts +1 -0
  153. package/lib/typescript/src/styles/theme/theme.d.ts +1 -0
  154. package/lib/typescript/src/utils/status-color/return-color.d.ts +1 -1
  155. package/package.json +1 -1
  156. package/src/@types/as-base-component.ts +9 -9
  157. package/src/common/icons-svg/arrow-down/index.tsx +44 -0
  158. package/src/common/icons-svg/constants/index.ts +2 -0
  159. package/src/common/icons-svg/user-circle/index.tsx +29 -0
  160. package/src/components/active-loadings-summary/index.tsx +69 -0
  161. package/src/components/active-loadings-summary/interface.d.ts +16 -0
  162. package/src/components/alert-critical-load/index.tsx +83 -0
  163. package/src/components/alert-critical-load/interface.ts +13 -0
  164. package/src/components/alert-critical-load/styles.ts +35 -0
  165. package/src/components/card-available-load/index.tsx +163 -0
  166. package/src/components/card-available-load/interface.ts +36 -0
  167. package/src/components/card-available-load/style.ts +51 -0
  168. package/src/components/card-driver-data/index.tsx +139 -0
  169. package/src/components/card-driver-data/interface.ts +33 -0
  170. package/src/components/card-driver-data/style.ts +55 -0
  171. package/src/components/card-loading/index.tsx +276 -294
  172. package/src/components/card-loading/interface.d.ts +37 -37
  173. package/src/components/document-carga-info/index.tsx +137 -0
  174. package/src/components/document-carga-info/interface.ts +19 -0
  175. package/src/components/document-carga-info/styles.ts +65 -0
  176. package/src/components/driver-journey-info/index.tsx +185 -0
  177. package/src/components/driver-journey-info/interface.ts +36 -0
  178. package/src/components/driver-journey-info/style.ts +55 -0
  179. package/src/index.ts +56 -50
  180. package/src/stories/active-loadings-summary/active-loadings-summary.stories.tsx +59 -0
  181. package/src/stories/alert-critical-load/alert-critical-load.stories.tsx +51 -0
  182. package/src/stories/card-available-load/card-available-load.stories.tsx +85 -0
  183. package/src/stories/card-driver-data/card-driver-data.stories.tsx +73 -0
  184. package/src/stories/document-carga-info/document-carga-info.stories.tsx +72 -0
  185. package/src/stories/driver-journey-info/driver-journey-info.stories.tsx +79 -0
  186. package/src/styles/theme/theme.ts +192 -191
  187. package/src/utils/status-color/return-color.ts +36 -34
@@ -0,0 +1,141 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _box = _interopRequireDefault(require("../box"));
10
+ var _typography = require("../typography");
11
+ var _userCircle = require("../../common/icons-svg/user-circle");
12
+ var _arrowDown = require("../../common/icons-svg/arrow-down");
13
+ var _asBaseComponent = require("../../@types/as-base-component");
14
+ var _style = require("./style");
15
+ var _theme = require("../../styles/theme/theme");
16
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
18
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } /**
20
+ * IMPORTS
21
+ */ // components
22
+ // commons / icons
23
+ // typings
24
+ // styles
25
+ /**
26
+ * Componente DriverJourneyInfo para interação do usuário.
27
+ */
28
+ const DriverJourneyInfo = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
29
+ var _motorista$nome, _motorista$contato2, _motorista$posicao, _motorista$previsao_c, _motorista$previsao_c2;
30
+ const {
31
+ backgroundColor,
32
+ motorista,
33
+ ...rest
34
+ } = props;
35
+ const [isExpanded, setIsExpanded] = (0, _react.useState)(true);
36
+ const handleToggle = () => {
37
+ _reactNative.LayoutAnimation.configureNext(_reactNative.LayoutAnimation.Presets.easeInEaseOut);
38
+ setIsExpanded(prev => !prev);
39
+ };
40
+ const handleCallPhone = phone => {
41
+ const cleanNumber = phone.replace(/\D/g, "");
42
+ _reactNative.Linking.openURL(`tel:${cleanNumber}`);
43
+ };
44
+ return /*#__PURE__*/_react.default.createElement(_box.default, _extends({
45
+ ref: ref,
46
+ style: _style.styles.container(backgroundColor)
47
+ }, rest), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
48
+ style: _style.styles.header,
49
+ activeOpacity: 0.7,
50
+ onPress: handleToggle
51
+ }, /*#__PURE__*/_react.default.createElement(_userCircle.SvgIconUserCircle, {
52
+ icon: "USER_CIRCLE",
53
+ color: "#393939",
54
+ size: 32
55
+ }), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
56
+ style: {
57
+ width: "76%"
58
+ }
59
+ }, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
60
+ text: "Informa\xE7\xF5es da Jornada do Motorista",
61
+ size: _theme.theme.fontSizes.lg,
62
+ fontFamily: _theme.theme.fonts.inter_bold,
63
+ color: _theme.theme.colors.black[25]
64
+ })), /*#__PURE__*/_react.default.createElement(_arrowDown.SvgIconArrowOpen, {
65
+ icon: "ARROW_DROP_DOWN",
66
+ color: _theme.theme.colors.black[25],
67
+ style: [_style.styles.arrow, {
68
+ transform: [{
69
+ rotate: isExpanded ? "180deg" : "0deg"
70
+ }]
71
+ }]
72
+ })), isExpanded && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_box.default, {
73
+ flexStyle: {
74
+ flexDirection: "row",
75
+ alignItems: "center"
76
+ }
77
+ }, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
78
+ text: "Nome",
79
+ size: _theme.theme.fontSizes.sm,
80
+ fontFamily: _theme.theme.fonts.inter_bold,
81
+ color: _theme.theme.colors.black[25]
82
+ }), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
83
+ style: _style.styles.textOption
84
+ }, (_motorista$nome = motorista === null || motorista === void 0 ? void 0 : motorista.nome) !== null && _motorista$nome !== void 0 ? _motorista$nome : "N/A")), /*#__PURE__*/_react.default.createElement(_box.default, {
85
+ flexStyle: {
86
+ flexDirection: "row",
87
+ alignItems: "center"
88
+ }
89
+ }, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
90
+ text: "Contato:",
91
+ size: _theme.theme.fontSizes.sm,
92
+ fontFamily: _theme.theme.fonts.inter_bold,
93
+ color: _theme.theme.colors.black[25],
94
+ style: _style.styles.textSpacing
95
+ }), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
96
+ activeOpacity: 0.6,
97
+ onPress: () => {
98
+ var _motorista$contato;
99
+ return handleCallPhone((_motorista$contato = motorista === null || motorista === void 0 ? void 0 : motorista.contato) !== null && _motorista$contato !== void 0 ? _motorista$contato : "");
100
+ }
101
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
102
+ style: [_style.styles.textOption, {
103
+ color: "#0088FF",
104
+ fontWeight: "bold",
105
+ textDecorationLine: "underline"
106
+ }]
107
+ }, (_motorista$contato2 = motorista === null || motorista === void 0 ? void 0 : motorista.contato) !== null && _motorista$contato2 !== void 0 ? _motorista$contato2 : "N/A"))), /*#__PURE__*/_react.default.createElement(_box.default, {
108
+ flexStyle: {
109
+ flexDirection: "row",
110
+ alignItems: "center",
111
+ flex: "wrap"
112
+ }
113
+ }, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
114
+ text: "Posi\xE7\xE3o atual:",
115
+ size: _theme.theme.fontSizes.sm,
116
+ fontFamily: _theme.theme.fonts.inter_bold,
117
+ color: _theme.theme.colors.black[25],
118
+ style: _style.styles.textSpacing
119
+ }), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
120
+ style: _style.styles.textOption
121
+ }, (_motorista$posicao = motorista === null || motorista === void 0 ? void 0 : motorista.posicao) !== null && _motorista$posicao !== void 0 ? _motorista$posicao : "N/A")), /*#__PURE__*/_react.default.createElement(_box.default, {
122
+ flexStyle: {
123
+ flexDirection: "row",
124
+ alignItems: "center"
125
+ }
126
+ }, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
127
+ text: "Data previs\xE3o chegada:",
128
+ size: _theme.theme.fontSizes.sm,
129
+ fontFamily: _theme.theme.fonts.inter_bold,
130
+ color: _theme.theme.colors.black[25]
131
+ }), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
132
+ style: _style.styles.textOption
133
+ }, (_motorista$previsao_c = motorista === null || motorista === void 0 || (_motorista$previsao_c2 = motorista.previsao_chegada) === null || _motorista$previsao_c2 === void 0 ? void 0 : _motorista$previsao_c2.replace(" ", " ás ")) !== null && _motorista$previsao_c !== void 0 ? _motorista$previsao_c : "N/A"))));
134
+ });
135
+ DriverJourneyInfo.displayName = "DriverJourneyInfo";
136
+
137
+ /**
138
+ * EXPORTS
139
+ */
140
+ var _default = exports.default = (0, _asBaseComponent.asBaseComponent)(DriverJourneyInfo);
141
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_box","_interopRequireDefault","_typography","_userCircle","_arrowDown","_asBaseComponent","_style","_theme","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","DriverJourneyInfo","forwardRef","props","ref","_motorista$nome","_motorista$contato2","_motorista$posicao","_motorista$previsao_c","_motorista$previsao_c2","backgroundColor","motorista","rest","isExpanded","setIsExpanded","useState","handleToggle","LayoutAnimation","configureNext","Presets","easeInEaseOut","prev","handleCallPhone","phone","cleanNumber","replace","Linking","openURL","createElement","style","styles","container","TouchableOpacity","header","activeOpacity","onPress","SvgIconUserCircle","icon","color","size","View","width","Typography","text","theme","fontSizes","lg","fontFamily","fonts","inter_bold","colors","black","SvgIconArrowOpen","arrow","transform","rotate","Fragment","flexStyle","flexDirection","alignItems","sm","Text","textOption","nome","textSpacing","_motorista$contato","contato","fontWeight","textDecorationLine","flex","posicao","previsao_chegada","displayName","_default","exports","asBaseComponent"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React, { forwardRef, useState } from \"react\";\nimport {\n TouchableOpacity,\n LayoutAnimation,\n Text,\n View,\n Linking,\n} from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n// commons / icons\nimport { SvgIconUserCircle } from \"../../common/icons-svg/user-circle\";\nimport { SvgIconArrowOpen } from \"../../common/icons-svg/arrow-down\";\n\n// typings\nimport { IDriverJourneyInfo } from \"./interface\";\nimport { asBaseComponent } from \"../../@types/as-base-component\";\n\n// styles\nimport { styles } from \"./style\";\nimport { theme } from \"../../styles/theme/theme\";\n\n/**\n * Componente DriverJourneyInfo para interação do usuário.\n */\nconst DriverJourneyInfo = forwardRef<View, IDriverJourneyInfo>(\n (props, ref): React.ReactElement => {\n const { backgroundColor, motorista, ...rest } = props;\n\n const [isExpanded, setIsExpanded] = useState<boolean>(true);\n\n const handleToggle = (): void => {\n LayoutAnimation.configureNext(\n LayoutAnimation.Presets.easeInEaseOut\n );\n setIsExpanded((prev) => !prev);\n };\n\n const handleCallPhone = (phone: string): void => {\n const cleanNumber = phone.replace(/\\D/g, \"\");\n Linking.openURL(`tel:${cleanNumber}`);\n };\n\n return (\n <Box\n ref={ref}\n style={styles.container(backgroundColor)}\n {...rest}\n >\n {/* HEADER */}\n <TouchableOpacity\n style={styles.header}\n activeOpacity={0.7}\n onPress={handleToggle}\n >\n <SvgIconUserCircle\n icon=\"USER_CIRCLE\"\n color=\"#393939\"\n size={32}\n />\n\n <View style={{ width: \"76%\" }}>\n <Typography\n text=\"Informações da Jornada do Motorista\"\n size={theme.fontSizes.lg}\n fontFamily={theme.fonts.inter_bold}\n color={theme.colors.black[25]}\n />\n </View>\n\n <SvgIconArrowOpen\n icon=\"ARROW_DROP_DOWN\"\n color={theme.colors.black[25]}\n style={[\n styles.arrow,\n {\n transform: [\n { rotate: isExpanded ? \"180deg\" : \"0deg\" },\n ],\n },\n ]}\n />\n </TouchableOpacity>\n\n {/* CONTENT */}\n {isExpanded && (\n <>\n {/* Nome motorista */}\n <Box flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\n <Typography\n text=\"Nome\"\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold}\n color={theme.colors.black[25]}\n />\n <Text style={styles.textOption}>\n {motorista?.nome ?? \"N/A\"}\n </Text>\n </Box>\n\n {/* Contato motorista */}\n <Box flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\n <Typography\n text=\"Contato:\"\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold}\n color={theme.colors.black[25]}\n style={styles.textSpacing}\n />\n\n <TouchableOpacity\n activeOpacity={0.6}\n onPress={() =>\n handleCallPhone(motorista?.contato ?? \"\")\n }\n >\n <Text\n style={[\n styles.textOption,\n {\n color: \"#0088FF\",\n fontWeight: \"bold\",\n textDecorationLine: \"underline\",\n },\n ]}\n >\n {motorista?.contato ?? \"N/A\"}\n </Text>\n </TouchableOpacity>\n </Box>\n\n {/* Posição atual */}\n <Box\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n flex: \"wrap\",\n }}\n >\n <Typography\n text=\"Posição atual:\"\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold}\n color={theme.colors.black[25]}\n style={styles.textSpacing}\n />\n <Text style={styles.textOption}>\n {motorista?.posicao ?? \"N/A\"}\n </Text>\n </Box>\n\n {/* Previsão de chegada */}\n <Box flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\n <Typography\n text=\"Data previsão chegada:\"\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold}\n color={theme.colors.black[25]}\n />\n <Text style={styles.textOption}>\n {motorista?.previsao_chegada?.replace(\n \" \",\n \" ás \"\n ) ?? \"N/A\"}\n </Text>\n </Box>\n </>\n )}\n </Box>\n );\n }\n);\n\nDriverJourneyInfo.displayName = \"DriverJourneyInfo\";\n\n/**\n * EXPORTS\n */\nexport default asBaseComponent(DriverJourneyInfo);\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,IAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAGA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AAIA,IAAAO,gBAAA,GAAAP,OAAA;AAGA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,MAAA,GAAAT,OAAA;AAAiD,SAAAG,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,I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,aAAM,CAACgC;EAAW,IAAAtD,qBAAA,GAC5BG,SAAS,aAATA,SAAS,gBAAAF,sBAAA,GAATE,SAAS,CAAE4D,gBAAgB,cAAA9D,sBAAA,uBAA3BA,sBAAA,CAA6BgB,OAAO,CACnC,GAAG,EACH,MACF,CAAC,cAAAjB,qBAAA,cAAAA,qBAAA,GAAI,KACD,CACH,CACL,CAED,CAAC;AAEV,CACF,CAAC;AAEDP,iBAAiB,CAACuE,WAAW,GAAG,mBAAmB;;AAEnD;AACA;AACA;AAFA,IAAAC,QAAA,GAAAC,OAAA,CAAAjG,OAAA,GAGe,IAAAkG,gCAAe,EAAC1E,iBAAiB,CAAC","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["interface.ts"],"sourcesContent":["/**\n * IMPORTS\n */\n\nimport { TextStyle, ViewStyle } from \"react-native\";\n\n/**\n * STYLES\n */\ninterface IStyles {\n container: (bg?: string) => ViewStyle;\n header: ViewStyle;\n arrow: ViewStyle;\n textSpacing: TextStyle;\n buttonText: TextStyle;\n}\n\n\ninterface IDriverJourneyInfo {\n motorista: {\n nome: string;\n contato: string;\n posicao: string;\n previsao_chegada: string;\n\n }\n onPress: () => void;\n backgroundColor?: string;\n\n}\n\n\n/**\n * EXPORT\n */\nexport type { IDriverJourneyInfo, IStyles };\n"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.styles = void 0;
7
+ var _reactNative = require("react-native");
8
+ var _theme = require("../../styles/theme/theme");
9
+ /**
10
+ * IMPORTS
11
+ */
12
+
13
+ // typings
14
+
15
+ // styles
16
+
17
+ const styles = exports.styles = _reactNative.StyleSheet.create({
18
+ container: bg => ({
19
+ width: "100%",
20
+ padding: _theme.theme.paddings.sm,
21
+ backgroundColor: bg !== null && bg !== void 0 ? bg : _theme.theme.colors.gray[700],
22
+ borderRadius: 16
23
+ }),
24
+ header: {
25
+ flexDirection: "row",
26
+ alignItems: "center",
27
+ justifyContent: "space-between",
28
+ flexWrap: "wrap",
29
+ marginBottom: _theme.theme.margins.md
30
+ },
31
+ arrow: {
32
+ width: 20,
33
+ height: 20
34
+ },
35
+ textSpacing: {
36
+ marginTop: _theme.theme.margins["2xs"],
37
+ marginBottom: _theme.theme.margins["2xs"]
38
+ },
39
+ buttonText: {
40
+ color: _theme.theme.colors.neutral[25],
41
+ fontFamily: _theme.theme.fonts.inter_medium_500,
42
+ fontSize: _theme.theme.fontSizes.md
43
+ },
44
+ textOption: {
45
+ color: _theme.theme.colors.black[25],
46
+ fontFamily: _theme.theme.fonts.inter_regular_400,
47
+ fontSize: 12,
48
+ marginLeft: 4
49
+ }
50
+ });
51
+
52
+ /**
53
+ * EXPORTS
54
+ */
55
+ //# sourceMappingURL=style.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_theme","styles","exports","StyleSheet","create","container","bg","width","padding","theme","paddings","sm","backgroundColor","colors","gray","borderRadius","header","flexDirection","alignItems","justifyContent","flexWrap","marginBottom","margins","md","arrow","height","textSpacing","marginTop","buttonText","color","neutral","fontFamily","fonts","inter_medium_500","fontSize","fontSizes","textOption","black","inter_regular_400","marginLeft"],"sources":["style.ts"],"sourcesContent":["/**\n * IMPORTS\n */\n\nimport { StyleSheet } from \"react-native\";\n\n// typings\nimport { IStyles } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\nconst styles = StyleSheet.create<IStyles | any>({\n container: (bg?: string) => ({\n width: \"100%\",\n padding: theme.paddings.sm,\n backgroundColor: bg ?? theme.colors.gray[700],\n borderRadius: 16,\n }),\n\n header: {\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n flexWrap: \"wrap\",\n marginBottom: theme.margins.md,\n },\n\n arrow: {\n width: 20,\n height: 20,\n },\n\n textSpacing: {\n marginTop: theme.margins[\"2xs\"],\n marginBottom: theme.margins[\"2xs\"],\n },\n\n buttonText: {\n color: theme.colors.neutral[25],\n fontFamily: theme.fonts.inter_medium_500,\n fontSize: theme.fontSizes.md,\n },\n textOption: {\n color: theme.colors.black[25],\n fontFamily: theme.fonts.inter_regular_400,\n fontSize: 12,\n marginLeft: 4,\n }\n});\n\n/**\n * EXPORTS\n */\nexport { styles}\n"],"mappings":";;;;;;AAIA,IAAAA,YAAA,GAAAC,OAAA;AAMA,IAAAC,MAAA,GAAAD,OAAA;AAVA;AACA;AACA;;AAIA;;AAGA;;AAGA,MAAME,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAGE,uBAAU,CAACC,MAAM,CAAgB;EAC9CC,SAAS,EAAGC,EAAW,KAAM;IAC3BC,KAAK,EAAE,MAAM;IACbC,OAAO,EAAEC,YAAK,CAACC,QAAQ,CAACC,EAAE;IAC1BC,eAAe,EAAEN,EAAE,aAAFA,EAAE,cAAFA,EAAE,GAAIG,YAAK,CAACI,MAAM,CAACC,IAAI,CAAC,GAAG,CAAC;IAC7CC,YAAY,EAAE;EAChB,CAAC,CAAC;EAEFC,MAAM,EAAE;IACNC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BC,QAAQ,EAAE,MAAM;IAChBC,YAAY,EAAEZ,YAAK,CAACa,OAAO,CAACC;EAC9B,CAAC;EAEDC,KAAK,EAAE;IACLjB,KAAK,EAAE,EAAE;IACTkB,MAAM,EAAE;EACV,CAAC;EAEDC,WAAW,EAAE;IACXC,SAAS,EAAElB,YAAK,CAACa,OAAO,CAAC,KAAK,CAAC;IAC/BD,YAAY,EAAEZ,YAAK,CAACa,OAAO,CAAC,KAAK;EACnC,CAAC;EAEDM,UAAU,EAAE;IACVC,KAAK,EAAEpB,YAAK,CAACI,MAAM,CAACiB,OAAO,CAAC,EAAE,CAAC;IAC/BC,UAAU,EAAEtB,YAAK,CAACuB,KAAK,CAACC,gBAAgB;IACxCC,QAAQ,EAAEzB,YAAK,CAAC0B,SAAS,CAACZ;EAC5B,CAAC;EACDa,UAAU,EAAE;IACVP,KAAK,EAAEpB,YAAK,CAACI,MAAM,CAACwB,KAAK,CAAC,EAAE,CAAC;IAC7BN,UAAU,EAAEtB,YAAK,CAACuB,KAAK,CAACM,iBAAiB;IACzCJ,QAAQ,EAAE,EAAE;IACZK,UAAU,EAAE;EACd;AACF,CAAC,CAAC;;AAEF;AACA;AACA","ignoreList":[]}
@@ -3,6 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ Object.defineProperty(exports, "ActiveLoadingsSummary", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _activeLoadingsSummary.ActiveLoadingsSummary;
10
+ }
11
+ });
6
12
  Object.defineProperty(exports, "ActivitiesDaily", {
7
13
  enumerable: true,
8
14
  get: function () {
@@ -21,6 +27,12 @@ Object.defineProperty(exports, "ActivityTimeline", {
21
27
  return _activityTimeline.default;
22
28
  }
23
29
  });
30
+ Object.defineProperty(exports, "AlertCriticalLoad", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _alertCriticalLoad.default;
34
+ }
35
+ });
24
36
  Object.defineProperty(exports, "AvatarProfile", {
25
37
  enumerable: true,
26
38
  get: function () {
@@ -45,6 +57,18 @@ Object.defineProperty(exports, "CapturePhoto", {
45
57
  return _capturePhoto.CapturePhoto;
46
58
  }
47
59
  });
60
+ Object.defineProperty(exports, "CardAvailableLoad", {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _cardAvailableLoad.default;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "CardDriverData", {
67
+ enumerable: true,
68
+ get: function () {
69
+ return _cardDriverData.default;
70
+ }
71
+ });
48
72
  Object.defineProperty(exports, "CardHistory", {
49
73
  enumerable: true,
50
74
  get: function () {
@@ -87,6 +111,18 @@ Object.defineProperty(exports, "Coil", {
87
111
  return _coil.Coil;
88
112
  }
89
113
  });
114
+ Object.defineProperty(exports, "DocumentCargaInfo", {
115
+ enumerable: true,
116
+ get: function () {
117
+ return _documentCargaInfo.default;
118
+ }
119
+ });
120
+ Object.defineProperty(exports, "DriverJourneyInfo", {
121
+ enumerable: true,
122
+ get: function () {
123
+ return _driverJourneyInfo.default;
124
+ }
125
+ });
90
126
  Object.defineProperty(exports, "FilterDateSelector", {
91
127
  enumerable: true,
92
128
  get: function () {
@@ -294,11 +330,17 @@ var _profileMenuOption = require("./components/profile-menu-option");
294
330
  var _modalActivities = require("./components/modals/modal-activities");
295
331
  var _historyActivitiesCard = require("./components/history-activities-card");
296
332
  var _modalChangeActivity = require("./components/modals/modal-change-activity");
333
+ var _activeLoadingsSummary = require("./components/active-loadings-summary");
297
334
  var _modalActivityReason = _interopRequireDefault(require("./components/modals/modal-activity-reason"));
298
335
  var _inputTextCounter = _interopRequireDefault(require("./components/input-text-counter"));
299
336
  var _modalCreateActivitie = _interopRequireDefault(require("./components/modal-create-activitie"));
300
337
  var _modalJourneyRectification = _interopRequireDefault(require("./components/modal-journey-rectification"));
301
338
  var _activityTimeline = _interopRequireDefault(require("./components/activity-timeline"));
339
+ var _cardAvailableLoad = _interopRequireDefault(require("./components/card-available-load"));
340
+ var _cardDriverData = _interopRequireDefault(require("./components/card-driver-data"));
341
+ var _driverJourneyInfo = _interopRequireDefault(require("./components/driver-journey-info"));
342
+ var _documentCargaInfo = _interopRequireDefault(require("./components/document-carga-info"));
343
+ var _alertCriticalLoad = _interopRequireDefault(require("./components/alert-critical-load"));
302
344
  var _mutiply = require("./utils/mutiply");
303
345
  var _formatData = require("./utils/format-data");
304
346
  var _theme = require("./styles/theme/theme");
@@ -1 +1 @@
1
- {"version":3,"names":["_box","_interopRequireDefault","require","_button","_stepIndicator","_typography","_input","_capturePhoto","_cardHours","_selectOption","_headerProfile","_scheduledJourneyIndicators","_cardScheduledJourney","_userProfile","_menuItem","_cardLoading","_cardWorkSession","_loadingProgress","_noData","_filterJourney","_coil","_filterDateSelector","_cardHistory","_notificationLoading","_checkBox","_imageCaptureWithRemove","_loadingDetails","_avatarProfile","_historyDetails","_activitiesDaily","_activitiesProgress","_profileMenuOption","_modalActivities","_historyActivitiesCard","_modalChangeActivity","_modalActivityReason","_inputTextCounter","_modalCreateActivitie","_modalJourneyRectification","_activityTimeline","_mutiply","_formatData","_theme","e","__esModule","default"],"sources":["index.ts"],"sourcesContent":["/**\r\n * EXPORTS\r\n */\r\n\r\n// Components\r\nexport { default as Box } from \"./components/box\";\r\nexport { Button } from \"./components/button\";\r\nexport { default as StepIndicator } from \"./components/step-indicator\";\r\nexport { Typography } from \"./components/typography\";\r\nexport { Input } from \"./components/input\";\r\nexport { CapturePhoto } from \"./components/capture-photo\";\r\nexport { CardHours } from \"./components/card-hours\";\r\nexport { default as SelectOption } from \"./components/selects/select-option\";\r\nexport { Header } from \"./components/header-profile\";\r\nexport { ScheduledJourneyIndicators } from \"./components/scheduled-journey-indicators\";\r\nexport { CardScheduledJourney } from \"./components/card-scheduled-journey\";\r\nexport { UserProfile } from \"./components/user-profile\";\r\nexport { MenuItem } from \"./components/menu-item\";\r\nexport { CardLoading } from \"./components/card-loading\";\r\nexport { CardWorkSession } from \"./components/card-work-session\";\r\nexport { LoadingProgress } from \"./components/loading-progress\";\r\nexport { NoData } from \"./components/no-data\";\r\nexport { FilterJourney } from \"./components/filter-journey\";\r\nexport { Coil } from \"./components/coil\";\r\nexport { FilterDateSelector } from \"./components/filter-date-selector\";\r\nexport { CardHistory } from \"./components/card-history\";\r\nexport { NotificationLoading } from \"./components/notification-loading\";\r\nexport { CheckBox } from \"./components/check-box\";\r\nexport { ImageCaptureWithRemove } from \"./components/image-capture-with-remove\";\r\nexport { LoadingDetails } from \"./components/loading-details\";\r\nexport { AvatarProfile } from \"./components/avatar-profile\";\r\nexport { HistoryDetails } from \"./components/history-details\";\r\nexport { ActivitiesDaily } from \"./components/activities-daily\";\r\nexport { ActivitiesProgress } from \"./components/activities-progress\";\r\nexport { ProfileMenuOption } from \"./components/profile-menu-option\";\r\nexport { ModalActivities } from \"./components/modals/modal-activities\";\r\nexport { HistoryActivitiesCard } from \"./components/history-activities-card\";\r\nexport { ModalChangeActivity } from \"./components/modals/modal-change-activity\";\r\nexport { default as ModalActivityReason } from \"./components/modals/modal-activity-reason\";\r\nexport { default as InputTextCounter } from \"./components/input-text-counter\";\r\nexport { default as ModalCreteActivitie } from \"./components/modal-create-activitie\";\r\nexport { default as ModalJourneyRectification } from \"./components/modal-journey-rectification\";\r\nexport { default as ActivityTimeline } from \"./components/activity-timeline\";\r\n\r\n// Utilities\r\nexport { multiply } from \"./utils/mutiply\";\r\nexport { formatDate, getLastSevenDays, formHoursMinute } from \"./utils/format-data\";\r\n\r\n// Styles\r\nexport { theme } from \"./styles/theme/theme\";\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAAA,IAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,cAAA,GAAAR,OAAA;AACA,IAAAS,2BAAA,GAAAT,OAA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","ignoreList":[]}
1
+ {"version":3,"names":["_box","_interopRequireDefault","require","_button","_stepIndicator","_typography","_input","_capturePhoto","_cardHours","_selectOption","_headerProfile","_scheduledJourneyIndicators","_cardScheduledJourney","_userProfile","_menuItem","_cardLoading","_cardWorkSession","_loadingProgress","_noData","_filterJourney","_coil","_filterDateSelector","_cardHistory","_notificationLoading","_checkBox","_imageCaptureWithRemove","_loadingDetails","_avatarProfile","_historyDetails","_activitiesDaily","_activitiesProgress","_profileMenuOption","_modalActivities","_historyActivitiesCard","_modalChangeActivity","_activeLoadingsSummary","_modalActivityReason","_inputTextCounter","_modalCreateActivitie","_modalJourneyRectification","_activityTimeline","_cardAvailableLoad","_cardDriverData","_driverJourneyInfo","_documentCargaInfo","_alertCriticalLoad","_mutiply","_formatData","_theme","e","__esModule","default"],"sources":["index.ts"],"sourcesContent":["/**\n * EXPORTS\n */\n\n// Components\nexport { default as Box } from \"./components/box\";\nexport { Button } from \"./components/button\";\nexport { default as StepIndicator } from \"./components/step-indicator\";\nexport { Typography } from \"./components/typography\";\nexport { Input } from \"./components/input\";\nexport { CapturePhoto } from \"./components/capture-photo\";\nexport { CardHours } from \"./components/card-hours\";\nexport { default as SelectOption } from \"./components/selects/select-option\";\nexport { Header } from \"./components/header-profile\";\nexport { ScheduledJourneyIndicators } from \"./components/scheduled-journey-indicators\";\nexport { CardScheduledJourney } from \"./components/card-scheduled-journey\";\nexport { UserProfile } from \"./components/user-profile\";\nexport { MenuItem } from \"./components/menu-item\";\nexport { CardLoading } from \"./components/card-loading\";\nexport { CardWorkSession } from \"./components/card-work-session\";\nexport { LoadingProgress } from \"./components/loading-progress\";\nexport { NoData } from \"./components/no-data\";\nexport { FilterJourney } from \"./components/filter-journey\";\nexport { Coil } from \"./components/coil\";\nexport { FilterDateSelector } from \"./components/filter-date-selector\";\nexport { CardHistory } from \"./components/card-history\";\nexport { NotificationLoading } from \"./components/notification-loading\";\nexport { CheckBox } from \"./components/check-box\";\nexport { ImageCaptureWithRemove } from \"./components/image-capture-with-remove\";\nexport { LoadingDetails } from \"./components/loading-details\";\nexport { AvatarProfile } from \"./components/avatar-profile\";\nexport { HistoryDetails } from \"./components/history-details\";\nexport { ActivitiesDaily } from \"./components/activities-daily\";\nexport { ActivitiesProgress } from \"./components/activities-progress\";\nexport { ProfileMenuOption } from \"./components/profile-menu-option\";\nexport { ModalActivities } from \"./components/modals/modal-activities\";\nexport { HistoryActivitiesCard } from \"./components/history-activities-card\";\nexport { ModalChangeActivity } from \"./components/modals/modal-change-activity\";\nexport { ActiveLoadingsSummary } from \"./components/active-loadings-summary\";\nexport { default as ModalActivityReason } from \"./components/modals/modal-activity-reason\";\nexport { default as InputTextCounter } from \"./components/input-text-counter\";\nexport { default as ModalCreteActivitie } from \"./components/modal-create-activitie\";\nexport { default as ModalJourneyRectification } from \"./components/modal-journey-rectification\";\nexport { default as ActivityTimeline } from \"./components/activity-timeline\";\nexport { default as CardAvailableLoad } from \"./components/card-available-load\";\nexport { default as CardDriverData } from \"./components/card-driver-data\";\nexport { default as DriverJourneyInfo } from \"./components/driver-journey-info\";\nexport { default as DocumentCargaInfo } from \"./components/document-carga-info\";\nexport { default as AlertCriticalLoad } from \"./components/alert-critical-load\";\n\n// Utilities\nexport { multiply } from \"./utils/mutiply\";\nexport { formatDate, getLastSevenDays, formHoursMinute } from \"./utils/format-data\";\n\n// Styles\nexport { theme } from \"./styles/theme/theme\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A,IAAAmC,iBAAA,GAAApC,sBAAA,CAAAC,OAAA;AACA,IAAAoC,qBAAA,GAAArC,sBAAA,CAAAC,OAAA;AACA,IAAAqC,0BAAA,GAAAtC,sBAAA,CAAAC,OAAA;AACA,IAAAsC,iBAAA,GAAAvC,sBAAA,CAAAC,OAAA;AACA,IAAAuC,kBAAA,GAAAxC,sBAAA,CAAAC,OAAA;AACA,IAAAwC,eAAA,GAAAzC,sBAAA,CAAAC,OAAA;AACA,IAAAyC,kBAAA,GAAA1C,sBAAA,CAAAC,OAAA;AACA,IAAA0C,kBAAA,GAAA3C,sBAAA,CAAAC,OAAA;AACA,IAAA2C,kBAAA,GAAA5C,sBAAA,CAAAC,OAAA;AAGA,IAAA4C,QAAA,GAAA5C,OAAA;AACA,IAAA6C,WAAA,GAAA7C,OAAA;AAGA,IAAA8C,MAAA,GAAA9C,OAAA;AAA6C,SAAAD,uBAAAgD,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.ZeroCarregamentos = exports.Padrao = exports.MuitosCarregamentos = void 0;
7
+ var _activeLoadingsSummary = require("../../components/active-loadings-summary");
8
+ const meta = {
9
+ title: "componente/ActiveLoadingsSummary",
10
+ component: _activeLoadingsSummary.ActiveLoadingsSummary,
11
+ args: {
12
+ count: 3,
13
+ onPressView: () => {}
14
+ },
15
+ parameters: {
16
+ docs: {
17
+ disable: true
18
+ },
19
+ previewTabs: {
20
+ "storybook/docs/panel": {
21
+ hidden: true
22
+ },
23
+ canvas: {
24
+ hidden: true
25
+ }
26
+ },
27
+ notes: `
28
+ # ActiveLoadingsSummary
29
+
30
+ Componente que mostra a quantidade de carregamentos iniciados e um botão para visualizar.
31
+ Você usa assim:
32
+ \`\`\`tsx
33
+ <ActiveLoadingsSummary
34
+ count={5}
35
+ onPressView={() => {}}
36
+ />
37
+ \`\`\`
38
+ `
39
+ }
40
+ };
41
+ var _default = exports.default = meta;
42
+ const Padrao = exports.Padrao = {
43
+ name: "active-loadings-summary-padrao",
44
+ args: {
45
+ count: 5,
46
+ onPressView: () => {}
47
+ }
48
+ };
49
+ const ZeroCarregamentos = exports.ZeroCarregamentos = {
50
+ name: "active-loadings-summary-zero",
51
+ args: {
52
+ count: 0,
53
+ onPressView: () => {}
54
+ }
55
+ };
56
+ const MuitosCarregamentos = exports.MuitosCarregamentos = {
57
+ name: "active-loadings-summary-muitos",
58
+ args: {
59
+ count: 25,
60
+ onPressView: () => {}
61
+ }
62
+ };
63
+ //# sourceMappingURL=active-loadings-summary.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_activeLoadingsSummary","require","meta","title","component","ActiveLoadingsSummary","args","count","onPressView","parameters","docs","disable","previewTabs","hidden","canvas","notes","_default","exports","default","Padrao","name","ZeroCarregamentos","MuitosCarregamentos"],"sources":["active-loadings-summary.stories.tsx"],"sourcesContent":["import type { StoryObj, Meta } from \"@storybook/react\";\r\n\r\nimport { ActiveLoadingsSummary } from \"../../components/active-loadings-summary\";\r\n\r\nconst meta: Meta<typeof ActiveLoadingsSummary> = {\r\n title: \"componente/ActiveLoadingsSummary\",\r\n component: ActiveLoadingsSummary,\r\n args: {\r\n count: 3,\r\n onPressView: () => {},\r\n },\r\n parameters: {\r\n docs: { disable: true },\r\n previewTabs: {\r\n \"storybook/docs/panel\": { hidden: true },\r\n canvas: { hidden: true },\r\n },\r\n notes: `\r\n# ActiveLoadingsSummary\r\n\r\nComponente que mostra a quantidade de carregamentos iniciados e um botão para visualizar.\r\nVocê usa assim:\r\n\\`\\`\\`tsx\r\n<ActiveLoadingsSummary\r\n count={5}\r\n onPressView={() => {}}\r\n/>\r\n\\`\\`\\`\r\n`,\r\n },\r\n};\r\n\r\nexport default meta;\r\n\r\ntype Story = StoryObj<typeof meta>;\r\n\r\nexport const Padrao: Story = {\r\n name: \"active-loadings-summary-padrao\",\r\n args: {\r\n count: 5,\r\n onPressView: () => {},\r\n },\r\n};\r\n\r\nexport const ZeroCarregamentos: Story = {\r\n name: \"active-loadings-summary-zero\",\r\n args: {\r\n count: 0,\r\n onPressView: () => {},\r\n },\r\n};\r\n\r\nexport const MuitosCarregamentos: Story = {\r\n name: \"active-loadings-summary-muitos\",\r\n args: {\r\n count: 25,\r\n onPressView: () => {},\r\n },\r\n};\r\n"],"mappings":";;;;;;AAEA,IAAAA,sBAAA,GAAAC,OAAA;AAEA,MAAMC,IAAwC,GAAG;EAC/CC,KAAK,EAAE,kCAAkC;EACzCC,SAAS,EAAEC,4CAAqB;EAChCC,IAAI,EAAE;IACJC,KAAK,EAAE,CAAC;IACRC,WAAW,EAAEA,CAAA,KAAM,CAAC;EACtB,CAAC;EACDC,UAAU,EAAE;IACVC,IAAI,EAAE;MAAEC,OAAO,EAAE;IAAK,CAAC;IACvBC,WAAW,EAAE;MACX,sBAAsB,EAAE;QAAEC,MAAM,EAAE;MAAK,CAAC;MACxCC,MAAM,EAAE;QAAED,MAAM,EAAE;MAAK;IACzB,CAAC;IACDE,KAAK,EAAE;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE;AACF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEahB,IAAI;AAIZ,MAAMiB,MAAa,GAAAF,OAAA,CAAAE,MAAA,GAAG;EAC3BC,IAAI,EAAE,gCAAgC;EACtCd,IAAI,EAAE;IACJC,KAAK,EAAE,CAAC;IACRC,WAAW,EAAEA,CAAA,KAAM,CAAC;EACtB;AACF,CAAC;AAEM,MAAMa,iBAAwB,GAAAJ,OAAA,CAAAI,iBAAA,GAAG;EACtCD,IAAI,EAAE,8BAA8B;EACpCd,IAAI,EAAE;IACJC,KAAK,EAAE,CAAC;IACRC,WAAW,EAAEA,CAAA,KAAM,CAAC;EACtB;AACF,CAAC;AAEM,MAAMc,mBAA0B,GAAAL,OAAA,CAAAK,mBAAA,GAAG;EACxCF,IAAI,EAAE,gCAAgC;EACtCd,IAAI,EAAE;IACJC,KAAK,EAAE,EAAE;IACTC,WAAW,EAAEA,CAAA,KAAM,CAAC;EACtB;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.Default = void 0;
7
+ var _alertCriticalLoad = _interopRequireDefault(require("../../components/alert-critical-load"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ /**
10
+ * IMPORTS
11
+ */
12
+
13
+ // component
14
+
15
+ const meta = {
16
+ title: "componente/AlertCriticalLoad",
17
+ component: _alertCriticalLoad.default,
18
+ args: {
19
+ message: "Carregamento crítico para esse carregamento, faça o mais rápido possível.",
20
+ handleToggle: () => {}
21
+ },
22
+ parameters: {
23
+ docs: {
24
+ disable: true
25
+ },
26
+ previewTabs: {
27
+ "storybook/docs/panel": {
28
+ hidden: true
29
+ },
30
+ canvas: {
31
+ hidden: true
32
+ }
33
+ },
34
+ notes: `
35
+ # AlertCriticalLoad
36
+
37
+ Componente responsável por exibir informações urgentes sobre uma carga.
38
+
39
+ Exemplo de uso:
40
+
41
+ \`\`\`tsx
42
+ <AlertCriticalLoad
43
+ message="Carregamento crítico para esse carregamento, faça o mais rápido possível."
44
+ handleToggle: () => { },
45
+ />
46
+ \`\`\`
47
+ `
48
+ }
49
+ };
50
+ var _default = exports.default = meta;
51
+ const Default = exports.Default = {
52
+ name: "alert-critical-load-default",
53
+ args: {
54
+ message: "Carregamento crítico para esse carregamento, faça o mais rápido possível.",
55
+ handleToggle: () => {}
56
+ }
57
+ };
58
+ //# sourceMappingURL=alert-critical-load.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_alertCriticalLoad","_interopRequireDefault","require","e","__esModule","default","meta","title","component","AlertCriticalLoad","args","message","handleToggle","parameters","docs","disable","previewTabs","hidden","canvas","notes","_default","exports","Default","name"],"sources":["alert-critical-load.stories.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport type { Meta, StoryObj } from \"@storybook/react\";\n\n// component\nimport AlertCriticalLoad from \"../../components/alert-critical-load\";\n\nconst meta: Meta<typeof AlertCriticalLoad> = {\n title: \"componente/AlertCriticalLoad\",\n component: AlertCriticalLoad,\n args: {\n message: \"Carregamento crítico para esse carregamento, faça o mais rápido possível.\",\n handleToggle: () => { },\n },\n parameters: {\n docs: { disable: true },\n previewTabs: {\n \"storybook/docs/panel\": { hidden: true },\n canvas: { hidden: true },\n },\n notes: `\n# AlertCriticalLoad\n\nComponente responsável por exibir informações urgentes sobre uma carga.\n\nExemplo de uso:\n\n\\`\\`\\`tsx\n<AlertCriticalLoad\n message=\"Carregamento crítico para esse carregamento, faça o mais rápido possível.\"\n handleToggle: () => { },\n/>\n\\`\\`\\`\n`,\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\n\nexport const Default: Story = {\n name: \"alert-critical-load-default\",\n args: {\n message: \"Carregamento crítico para esse carregamento, faça o mais rápido possível.\",\n handleToggle: () => { },\n },\n};\n\n"],"mappings":";;;;;;AAMA,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAqE,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AANrE;AACA;AACA;;AAGA;;AAGA,MAAMG,IAAoC,GAAG;EAC3CC,KAAK,EAAE,8BAA8B;EACrCC,SAAS,EAAEC,0BAAiB;EAC5BC,IAAI,EAAE;IACJC,OAAO,EAAE,2EAA2E;IACpFC,YAAY,EAAEA,CAAA,KAAM,CAAE;EACxB,CAAC;EACDC,UAAU,EAAE;IACVC,IAAI,EAAE;MAAEC,OAAO,EAAE;IAAK,CAAC;IACvBC,WAAW,EAAE;MACX,sBAAsB,EAAE;QAAEC,MAAM,EAAE;MAAK,CAAC;MACxCC,MAAM,EAAE;QAAED,MAAM,EAAE;MAAK;IACzB,CAAC;IACDE,KAAK,EAAE;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE;AACF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAhB,OAAA,GAEaC,IAAI;AAKZ,MAAMgB,OAAc,GAAAD,OAAA,CAAAC,OAAA,GAAG;EAC5BC,IAAI,EAAE,6BAA6B;EACnCb,IAAI,EAAE;IACJC,OAAO,EAAE,2EAA2E;IACpFC,YAAY,EAAEA,CAAA,KAAM,CAAE;EACxB;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.CardAvailableLoadOpen = exports.CardAvailableLoadClosed = void 0;
7
+ var _cardAvailableLoad = _interopRequireDefault(require("../../components/card-available-load"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ /**
10
+ * IMPORTS
11
+ */
12
+
13
+ // components
14
+
15
+ const meta = {
16
+ title: "componente/CardAvailableLoad",
17
+ component: _cardAvailableLoad.default,
18
+ args: {
19
+ backgroundColor: "#2D3748",
20
+ onPress: () => {},
21
+ carregamento: {
22
+ numero_carregamento: "01020304050607",
23
+ local: "Doca 1, Patío 03 - Usiminas Ipatinga",
24
+ previsao_carregamento: "10/03/2025 12:37",
25
+ qtd_bobinas: 15,
26
+ peso_total_kg: 20
27
+ }
28
+ },
29
+ parameters: {
30
+ docs: {
31
+ disable: true
32
+ },
33
+ previewTabs: {
34
+ "storybook/docs/panel": {
35
+ hidden: true
36
+ },
37
+ canvas: {
38
+ hidden: true
39
+ }
40
+ },
41
+ notes: `
42
+ # CardAvailableLoad
43
+
44
+ Componente que mostra os dados detalhado de um carregamento.
45
+ Você usa assim:
46
+ \`\`\`tsx
47
+ <CardAvailableLoad
48
+ backgroundColor={"#2D3748"}
49
+ onPress={() => { }}
50
+ carregamento={
51
+ {
52
+ numero_carregamento: "01020304050607",
53
+ local: "Doca 1, Patío 03 - Usiminas Ipatinga",
54
+ previsao_carregamento: "10/03/2025 12:37",
55
+ qtd_bobinas: 15,
56
+ peso_total_kg: 20
57
+ }
58
+ }
59
+ />
60
+ \`\`\`
61
+ `
62
+ }
63
+ };
64
+ var _default = exports.default = meta;
65
+ const CardAvailableLoadOpen = exports.CardAvailableLoadOpen = {
66
+ name: "card-available-load-open",
67
+ args: {
68
+ backgroundColor: "#2D3748",
69
+ onPress: () => {},
70
+ carregamento: {
71
+ numero_carregamento: "01020304050607",
72
+ local: "Doca 1, Patío 03 - Usiminas Ipatinga",
73
+ previsao_carregamento: "10/03/2025 12:37",
74
+ qtd_bobinas: 15,
75
+ peso_total_kg: 20
76
+ }
77
+ }
78
+ };
79
+ const CardAvailableLoadClosed = exports.CardAvailableLoadClosed = {
80
+ name: "card-available-load-closed",
81
+ args: {
82
+ isOpen: false,
83
+ backgroundColor: "#2D3748",
84
+ onPress: () => {},
85
+ carregamento: {
86
+ numero_carregamento: "01020304050607",
87
+ local: "Doca 1, Patío 03 - Usiminas Ipatinga",
88
+ previsao_carregamento: "10/03/2025 12:37",
89
+ qtd_bobinas: 15,
90
+ peso_total_kg: 20
91
+ }
92
+ }
93
+ };
94
+ //# sourceMappingURL=card-available-load.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_cardAvailableLoad","_interopRequireDefault","require","e","__esModule","default","meta","title","component","CardAvailableLoad","args","backgroundColor","onPress","carregamento","numero_carregamento","local","previsao_carregamento","qtd_bobinas","peso_total_kg","parameters","docs","disable","previewTabs","hidden","canvas","notes","_default","exports","CardAvailableLoadOpen","name","CardAvailableLoadClosed","isOpen"],"sources":["card-available-load.stories.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport type { StoryObj, Meta } from \"@storybook/react\";\n\n// components\nimport CardAvailableLoad from \"../../components/card-available-load\";\n\nconst meta: Meta<typeof CardAvailableLoad> = {\n title: \"componente/CardAvailableLoad\",\n component: CardAvailableLoad,\n args: {\n backgroundColor: \"#2D3748\",\n onPress: () => {},\n carregamento: {\n numero_carregamento: \"01020304050607\",\n local: \"Doca 1, Patío 03 - Usiminas Ipatinga\",\n previsao_carregamento: \"10/03/2025 12:37\",\n qtd_bobinas: 15,\n peso_total_kg: 20\n },\n },\n parameters: {\n docs: { disable: true },\n previewTabs: {\n \"storybook/docs/panel\": { hidden: true },\n canvas: { hidden: true },\n },\n notes: `\n# CardAvailableLoad\n\nComponente que mostra os dados detalhado de um carregamento.\nVocê usa assim:\n\\`\\`\\`tsx\n<CardAvailableLoad\n backgroundColor={\"#2D3748\"}\n onPress={() => { }}\n carregamento={\n {\n numero_carregamento: \"01020304050607\",\n local: \"Doca 1, Patío 03 - Usiminas Ipatinga\",\n previsao_carregamento: \"10/03/2025 12:37\",\n qtd_bobinas: 15,\n peso_total_kg: 20\n }\n }\n/>\n\\`\\`\\`\n`,\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\n\nexport const CardAvailableLoadOpen: Story = {\n name: \"card-available-load-open\",\n args: {\n backgroundColor: \"#2D3748\",\n onPress: () => {},\n carregamento: {\n numero_carregamento: \"01020304050607\",\n local: \"Doca 1, Patío 03 - Usiminas Ipatinga\",\n previsao_carregamento: \"10/03/2025 12:37\",\n qtd_bobinas: 15, peso_total_kg: 20\n },\n },\n};\n\nexport const CardAvailableLoadClosed: Story = {\n name: \"card-available-load-closed\",\n args: {\n isOpen: false,\n backgroundColor: \"#2D3748\",\n onPress: () => {},\n carregamento: {\n numero_carregamento: \"01020304050607\",\n local: \"Doca 1, Patío 03 - Usiminas Ipatinga\",\n previsao_carregamento: \"10/03/2025 12:37\",\n qtd_bobinas: 15, peso_total_kg: 20\n },\n },\n};\n"],"mappings":";;;;;;AAMA,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAuE,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