@grapadigital/shared-app-modules 0.0.226 → 0.0.228

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/action.d.ts CHANGED
@@ -406,7 +406,7 @@ declare interface PaymentInterface {
406
406
 
407
407
  declare type PaymentPhase = "pending" | "review" | "approval" | "awaiting" | "requested" | "received" | "queued" | "paid" | "client" | "canceled";
408
408
 
409
- declare type PaymentType = "influencer" | "advisor" | "employee_refund" | "influencer_extra" | "influencer_refund" | "partlog" | "airplane_ticket" | "hotel_ticket" | "supplier" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts";
409
+ declare type PaymentType = "influencer" | "advisor" | "employee_refund" | "influencer_extra" | "influencer_refund" | "partlog" | "airplane_ticket" | "hotel_ticket" | "supplier" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts" | "commission";
410
410
 
411
411
  declare interface Pending {
412
412
  requester: Requester;
@@ -1,4 +1,4 @@
1
- import { i as s } from "./youtube-icon.component.CqZ8FUlu.js";
1
+ import { i as s } from "./youtube-icon.component.pqd-_c8t.js";
2
2
  const i = (t) => {
3
3
  const e = s(t) ? t : Number(t);
4
4
  return `${parseInt(String(e * 100))}%`;
@@ -1,4 +1,4 @@
1
- import { u as r, a as l } from "./masks.util.DSH4bjFp.js";
1
+ import { u as r, a as l } from "./masks.util.DV_OyNW_.js";
2
2
  const i = (t, n) => {
3
3
  const e = t.target.value, a = r(e);
4
4
  n(a);
@@ -247,7 +247,7 @@ function no(e) {
247
247
  return Object.values(e);
248
248
  }
249
249
  const YA = (e) => e !== 0 && !e ? null : new Date(e);
250
- function ue(e) {
250
+ function oe(e) {
251
251
  function t(a) {
252
252
  return !a || !(a in e) ? null : e[a];
253
253
  }
@@ -262,19 +262,19 @@ function ue(e) {
262
262
  }
263
263
  };
264
264
  }
265
- const WA = ue({
265
+ const WA = oe({
266
266
  partner: "Parceiros",
267
267
  exclusive: "Exclusivos"
268
- }), QA = ue({
268
+ }), QA = oe({
269
269
  config: "Configuração",
270
270
  inProgress: "Em Andamento",
271
271
  finished: "Concluído",
272
272
  archived: "Arquivada",
273
273
  cancelled: "Cancelado"
274
- }), VA = ue({
274
+ }), VA = oe({
275
275
  agency: "Agência",
276
276
  brand: "Marca"
277
- }), GA = ue({
277
+ }), GA = oe({
278
278
  influencer: "Veículação de Influenciador",
279
279
  advisor: "Pagamento de Assessor",
280
280
  supplier: "Pagamento de Fornecedor",
@@ -290,8 +290,9 @@ const WA = ue({
290
290
  motoboy_bruno: "Motoboy Bruno",
291
291
  motoboy_others: "Motoboy Outros",
292
292
  logistics_control: "Controle de Logística",
293
- transfer_between_accounts: "Transferência entre Contas"
294
- }), JA = ue({
293
+ transfer_between_accounts: "Transferência entre Contas",
294
+ commission: "Comissão"
295
+ }), JA = oe({
295
296
  pending: "Revisão Atendimento",
296
297
  review: "Revisão Financeiro",
297
298
  awaiting: "Aguardando",
@@ -301,14 +302,14 @@ const WA = ue({
301
302
  paid: "Pago",
302
303
  client: "Pagamento via Cliente",
303
304
  canceled: "Cancelado"
304
- }), XA = ue({
305
+ }), XA = oe({
305
306
  new: "Aquisição",
306
307
  organic_expansion: "Expansão Orgânica de Base",
307
308
  strategic_expansion: "Expansão Estratégica de Base",
308
309
  renewal: "Renovação",
309
310
  comercial_winback: "Reativação Comercial",
310
311
  organic_winback: "Reativação Orgânica"
311
- }), ZA = ue({
312
+ }), ZA = oe({
312
313
  screening: "Triagem",
313
314
  proposal: "Proposta",
314
315
  negotiation: "Negociação",
@@ -316,14 +317,14 @@ const WA = ue({
316
317
  formalization: "Formalização",
317
318
  closed: "Fechada",
318
319
  lost: "Perdida"
319
- }), KA = ue({
320
+ }), KA = oe({
320
321
  inbox: "Caixa de Entrada",
321
322
  review: "Revisão Financeiro",
322
323
  awaiting: "Aguardando",
323
324
  invoiced: "Faturado",
324
325
  received: "Recebido",
325
326
  canceled: "Cancelado"
326
- }), $A = ue({
327
+ }), $A = oe({
327
328
  instagram: "Instagram",
328
329
  tiktok: "TikTok",
329
330
  youtube: "YouTube",
@@ -331,20 +332,32 @@ const WA = ue({
331
332
  pinterest: "Pinterest",
332
333
  twitter: "Twitter (X)",
333
334
  facebook: "Facebook"
334
- }), eu = ue({
335
+ }), eu = oe({
335
336
  instagram: "bg-gradient-to-br from-[#f09433] via-[#e6683c] via-[#dc2743] via-[#cc2366] to-[#bc1888]",
336
337
  tiktok: "bg-black",
337
338
  youtube: "bg-[#ff0033]",
338
339
  linkedin: "bg-[#0a66c2]",
339
340
  pinterest: "bg-[#e60023]",
340
341
  twitter: "bg-black"
341
- }), tu = ue({
342
+ }), tu = oe({
343
+ pending: "Pendente",
344
+ approved: "Aprovada",
345
+ ready: "Aguardando NF",
346
+ paid: "Pago",
347
+ cancelled: "Cancelada",
348
+ disputed: "Contestada",
349
+ reproved: "Reprovado"
350
+ }), nu = oe({
351
+ collaborator: "Colaborador",
352
+ agency: "Agência",
353
+ bonus: "Bônus"
354
+ }), ru = oe({
342
355
  service: "Atendimento",
343
356
  comercial: "Comercial",
344
357
  artistic: "Agenciamento Artístico",
345
358
  squad_a: "Squad A",
346
359
  squad_b: "Squad B"
347
- }), $e = ue({
360
+ }), $e = oe({
348
361
  white: "hover:opacity-90 bg-white border border-border text-black",
349
362
  black: "hover:opacity-90 bg-black text-white",
350
363
  slate: "hover:opacity-90 bg-slate-500 text-slate-50",
@@ -648,16 +661,16 @@ class Ao {
648
661
  }, this.getActiveToasts = () => this.toasts.filter((t) => !this.dismissedToasts.has(t.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set(), this.pendingDismissals = /* @__PURE__ */ new Map();
649
662
  }
650
663
  }
651
- const ie = new Ao(), uo = (e, t) => ie.message(e, t), lo = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", co = uo, fo = () => ie.toasts, po = () => ie.getActiveToasts(), hn = Object.assign(co, {
652
- success: ie.success,
653
- info: ie.info,
654
- warning: ie.warning,
655
- error: ie.error,
656
- custom: ie.custom,
657
- message: ie.message,
658
- promise: ie.promise,
659
- dismiss: ie.dismiss,
660
- loading: ie.loading
664
+ const Ae = new Ao(), uo = (e, t) => Ae.message(e, t), lo = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", co = uo, fo = () => Ae.toasts, po = () => Ae.getActiveToasts(), hn = Object.assign(co, {
665
+ success: Ae.success,
666
+ info: Ae.info,
667
+ warning: Ae.warning,
668
+ error: Ae.error,
669
+ custom: Ae.custom,
670
+ message: Ae.message,
671
+ promise: Ae.promise,
672
+ dismiss: Ae.dismiss,
673
+ loading: Ae.loading
661
674
  }, {
662
675
  getHistory: fo,
663
676
  getToasts: po
@@ -935,7 +948,7 @@ function xo() {
935
948
  }
936
949
  );
937
950
  }
938
- function nu({
951
+ function au({
939
952
  module: e,
940
953
  moduleId: t,
941
954
  organizationId: n,
@@ -1012,7 +1025,7 @@ function Do() {
1012
1025
  ] })
1013
1026
  ] });
1014
1027
  }
1015
- function ru({
1028
+ function ou({
1016
1029
  module: e,
1017
1030
  organizationId: t
1018
1031
  }) {
@@ -1023,7 +1036,7 @@ function ru({
1023
1036
  }
1024
1037
  }).data;
1025
1038
  }
1026
- function au({
1039
+ function su({
1027
1040
  module: e,
1028
1041
  tags: t = [],
1029
1042
  organizationId: n
@@ -2409,15 +2422,15 @@ function cs() {
2409
2422
  function ft(e) {
2410
2423
  return us(e) || ls(e) || cs();
2411
2424
  }
2412
- function Ae() {
2413
- return Ae = Object.assign || function(e) {
2425
+ function ue() {
2426
+ return ue = Object.assign || function(e) {
2414
2427
  for (var t = 1; t < arguments.length; t++) {
2415
2428
  var n = arguments[t];
2416
2429
  for (var a in n)
2417
2430
  Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
2418
2431
  }
2419
2432
  return e;
2420
- }, Ae.apply(this, arguments);
2433
+ }, ue.apply(this, arguments);
2421
2434
  }
2422
2435
  function ds(e, t) {
2423
2436
  if (!(e instanceof t))
@@ -2925,7 +2938,7 @@ function Hs() {
2925
2938
  }
2926
2939
  }
2927
2940
  }
2928
- var m = u, H = l, te = A, X = s, le = t, se = d, ge = a, be = v, oe = p, V = n, ee = o, W = r, k = c, G = !1;
2941
+ var m = u, H = l, te = A, X = s, le = t, ie = d, ge = a, be = v, se = p, V = n, ee = o, W = r, k = c, G = !1;
2929
2942
  function K(P) {
2930
2943
  return G || (G = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(P) || b(P) === u;
2931
2944
  }
@@ -2965,7 +2978,7 @@ function Hs() {
2965
2978
  function re(P) {
2966
2979
  return b(P) === c;
2967
2980
  }
2968
- z.AsyncMode = m, z.ConcurrentMode = H, z.ContextConsumer = te, z.ContextProvider = X, z.Element = le, z.ForwardRef = se, z.Fragment = ge, z.Lazy = be, z.Memo = oe, z.Portal = V, z.Profiler = ee, z.StrictMode = W, z.Suspense = k, z.isAsyncMode = K, z.isConcurrentMode = y, z.isContextConsumer = x, z.isContextProvider = F, z.isElement = D, z.isForwardRef = O, z.isFragment = j, z.isLazy = I, z.isMemo = N, z.isPortal = q, z.isProfiler = U, z.isStrictMode = _, z.isSuspense = re, z.isValidElementType = E, z.typeOf = b;
2981
+ z.AsyncMode = m, z.ConcurrentMode = H, z.ContextConsumer = te, z.ContextProvider = X, z.Element = le, z.ForwardRef = ie, z.Fragment = ge, z.Lazy = be, z.Memo = se, z.Portal = V, z.Profiler = ee, z.StrictMode = W, z.Suspense = k, z.isAsyncMode = K, z.isConcurrentMode = y, z.isContextConsumer = x, z.isContextProvider = F, z.isElement = D, z.isForwardRef = O, z.isFragment = j, z.isLazy = I, z.isMemo = N, z.isPortal = q, z.isProfiler = U, z.isStrictMode = _, z.isSuspense = re, z.isValidElementType = E, z.typeOf = b;
2969
2982
  })()), z;
2970
2983
  }
2971
2984
  var Bn;
@@ -3116,12 +3129,12 @@ function Ws() {
3116
3129
  element: b(),
3117
3130
  elementType: m(),
3118
3131
  instanceOf: H,
3119
- node: se(),
3132
+ node: ie(),
3120
3133
  objectOf: X,
3121
3134
  oneOf: te,
3122
3135
  oneOfType: le,
3123
3136
  shape: be,
3124
- exact: oe
3137
+ exact: se
3125
3138
  };
3126
3139
  function v(y, x) {
3127
3140
  return y === x ? y !== 0 || 1 / y === 1 / x : y !== y && x !== x;
@@ -3276,7 +3289,7 @@ function Ws() {
3276
3289
  }
3277
3290
  return g(D);
3278
3291
  }
3279
- function se() {
3292
+ function ie() {
3280
3293
  function y(x, F, D, O, j) {
3281
3294
  return V(x[F]) ? null : new w("Invalid " + O + " `" + j + "` supplied to " + ("`" + D + "`, expected a ReactNode."));
3282
3295
  }
@@ -3304,7 +3317,7 @@ function Ws() {
3304
3317
  }
3305
3318
  return g(x);
3306
3319
  }
3307
- function oe(y) {
3320
+ function se(y) {
3308
3321
  function x(F, D, O, j, I) {
3309
3322
  var N = F[D], q = W(N);
3310
3323
  if (q !== "object")
@@ -3893,7 +3906,7 @@ function wt(e, t) {
3893
3906
  className: d,
3894
3907
  classNames: c
3895
3908
  }, p);
3896
- return /* @__PURE__ */ M.createElement(r, Ae({}, f, {
3909
+ return /* @__PURE__ */ M.createElement(r, ue({}, f, {
3897
3910
  style: v
3898
3911
  }));
3899
3912
  }, s = r.displayName || r.name || "Component";
@@ -3934,15 +3947,15 @@ function Cr(e) {
3934
3947
  var b = [], m = {}, H = b, te = 0, X = function(V, ee, W) {
3935
3948
  if (Yt(E) && E >= ee && E <= ee + V.length) {
3936
3949
  var k = E - ee;
3937
- H.push(se(V.substring(0, k), te)), H = [se(V.substring(k), te)];
3950
+ H.push(ie(V.substring(0, k), te)), H = [ie(V.substring(k), te)];
3938
3951
  } else
3939
- H.push(se(V, te));
3952
+ H.push(ie(V, te));
3940
3953
  te++;
3941
3954
  }, le = function(V, ee, W, k, G, K, y) {
3942
3955
  var x = Ai(m, k);
3943
3956
  H.push(ge(k, G, K, x));
3944
- }, se = function(V, ee) {
3945
- return /* @__PURE__ */ M.createElement("span", Ae({}, u("substring"), {
3957
+ }, ie = function(V, ee) {
3958
+ return /* @__PURE__ */ M.createElement("span", ue({}, u("substring"), {
3946
3959
  key: ee
3947
3960
  }), V);
3948
3961
  }, ge = function(V, ee, W, k) {
@@ -3953,12 +3966,12 @@ function Cr(e) {
3953
3966
  }, K = Ke.toArray(A)[W];
3954
3967
  return /* @__PURE__ */ M.cloneElement(K, G);
3955
3968
  }, be = function(V) {
3956
- return /* @__PURE__ */ M.createElement("span", Ae({}, u("caret"), {
3969
+ return /* @__PURE__ */ M.createElement("span", ue({}, u("caret"), {
3957
3970
  ref: g,
3958
3971
  key: "caret"
3959
3972
  }), V);
3960
3973
  };
3961
- return nt(r, T, le, X), H.push(" "), H !== b && b.push(be(H)), /* @__PURE__ */ M.createElement("div", Ae({}, u, {
3974
+ return nt(r, T, le, X), H.push(" "), H !== b && b.push(be(H)), /* @__PURE__ */ M.createElement("div", ue({}, u, {
3962
3975
  ref: s
3963
3976
  }), b);
3964
3977
  }
@@ -4012,7 +4025,7 @@ function Sr(e) {
4012
4025
  var S = wr(g, A, a);
4013
4026
  return S === -1 ? /* @__PURE__ */ M.createElement("span", d("display"), g) : /* @__PURE__ */ M.createElement("span", d("display"), g.substring(0, S), /* @__PURE__ */ M.createElement("b", d("highlight"), g.substring(S, S + A.length)), g.substring(S + A.length));
4014
4027
  };
4015
- return /* @__PURE__ */ M.createElement("li", Ae({
4028
+ return /* @__PURE__ */ M.createElement("li", ue({
4016
4029
  id: t,
4017
4030
  role: "option",
4018
4031
  "aria-selected": n
@@ -4056,8 +4069,8 @@ function xr(e) {
4056
4069
  G = G - x + W, K = K - x + W, G < W ? X.scrollTop = G : K > X.offsetHeight && (X.scrollTop = K - X.offsetHeight);
4057
4070
  }
4058
4071
  }, [o, d, X]);
4059
- var se = function() {
4060
- var k = /* @__PURE__ */ M.createElement("ul", Ae({
4072
+ var ie = function() {
4073
+ var k = /* @__PURE__ */ M.createElement("ul", ue({
4061
4074
  ref: le,
4062
4075
  id: t,
4063
4076
  role: "listbox",
@@ -4085,7 +4098,7 @@ function xr(e) {
4085
4098
  return V(k, G);
4086
4099
  },
4087
4100
  onMouseEnter: function() {
4088
- return oe(K);
4101
+ return se(K);
4089
4102
  }
4090
4103
  });
4091
4104
  }, be = function() {
@@ -4093,14 +4106,14 @@ function xr(e) {
4093
4106
  return /* @__PURE__ */ M.createElement(fi, {
4094
4107
  style: T("loadingIndicator")
4095
4108
  });
4096
- }, oe = function(k, G) {
4109
+ }, se = function(k, G) {
4097
4110
  m && m(k);
4098
4111
  }, V = function(k, G) {
4099
4112
  v(k, G);
4100
4113
  }, ee = function(k) {
4101
4114
  return typeof k == "string" ? k : k.id;
4102
4115
  };
4103
- return f ? /* @__PURE__ */ M.createElement("div", Ae({}, Ls({
4116
+ return f ? /* @__PURE__ */ M.createElement("div", ue({}, Ls({
4104
4117
  position: s || "absolute",
4105
4118
  left: A,
4106
4119
  right: u,
@@ -4108,7 +4121,7 @@ function xr(e) {
4108
4121
  }, T), {
4109
4122
  onMouseDown: b,
4110
4123
  ref: g
4111
- }), se(), be()) : null;
4124
+ }), ie(), be()) : null;
4112
4125
  }
4113
4126
  xr.propTypes = {
4114
4127
  id: C.string.isRequired,
@@ -4261,12 +4274,12 @@ var yi = function(t) {
4261
4274
  var o = r.props, s = o.singleLine, A = o.style, u = r.getInputProps();
4262
4275
  return /* @__PURE__ */ M.createElement("div", A("control"), r.renderHighlighter(), s ? r.renderInput(u) : r.renderTextarea(u));
4263
4276
  }), R(B(r), "renderInput", function(o) {
4264
- return /* @__PURE__ */ M.createElement("input", Ae({
4277
+ return /* @__PURE__ */ M.createElement("input", ue({
4265
4278
  type: "text",
4266
4279
  ref: r.setInputRef
4267
4280
  }, o));
4268
4281
  }), R(B(r), "renderTextarea", function(o) {
4269
- return /* @__PURE__ */ M.createElement("textarea", Ae({
4282
+ return /* @__PURE__ */ M.createElement("textarea", ue({
4270
4283
  ref: r.setInputRef
4271
4284
  }, o));
4272
4285
  }), R(B(r), "setInputRef", function(o) {
@@ -4522,18 +4535,18 @@ var yi = function(t) {
4522
4535
  r.inputElement.focus();
4523
4536
  var le = T(A, u);
4524
4537
  E && (le += " ");
4525
- var se = d + le.length;
4538
+ var ie = d + le.length;
4526
4539
  r.setState({
4527
- selectionStart: se,
4528
- selectionEnd: se,
4540
+ selectionStart: ie,
4541
+ selectionEnd: ie,
4529
4542
  setSelectionAfterMentionChange: !0
4530
4543
  });
4531
4544
  var ge = {
4532
4545
  target: {
4533
4546
  value: X
4534
4547
  }
4535
- }, be = Xe(X, v), oe = Ze(f, d, c, le);
4536
- r.executeOnChange(ge, X, oe, be), b && b(A, u, m, H), r.clearSuggestions();
4548
+ }, be = Xe(X, v), se = Ze(f, d, c, le);
4549
+ r.executeOnChange(ge, X, se, be), b && b(A, u, m, H), r.clearSuggestions();
4537
4550
  }), R(B(r), "isLoading", function() {
4538
4551
  var o = !1;
4539
4552
  return M.Children.forEach(r.props.children, function(s) {
@@ -4573,7 +4586,7 @@ var yi = function(t) {
4573
4586
  }, {
4574
4587
  key: "render",
4575
4588
  value: function() {
4576
- return /* @__PURE__ */ M.createElement("div", Ae({
4589
+ return /* @__PURE__ */ M.createElement("div", ue({
4577
4590
  ref: this.setContainerElement
4578
4591
  }, this.props.style), this.renderControl(), this.renderSuggestionsOverlay());
4579
4592
  }
@@ -4679,7 +4692,7 @@ var Mt = function(t, n) {
4679
4692
  "&singleLine": t,
4680
4693
  "&multiLine": !t
4681
4694
  };
4682
- }), ou = wi(an), Ci = {
4695
+ }), iu = wi(an), Ci = {
4683
4696
  fontWeight: "inherit"
4684
4697
  }, Tr = function(t) {
4685
4698
  var n = t.display, a = t.style, r = t.className, o = t.classNames, s = nn(Ci, {
@@ -5772,7 +5785,7 @@ export {
5772
5785
  ye as J,
5773
5786
  Ko as K,
5774
5787
  ts as L,
5775
- ou as M,
5788
+ iu as M,
5776
5789
  NA as N,
5777
5790
  ur as O,
5778
5791
  Ua as P,
@@ -5801,10 +5814,10 @@ export {
5801
5814
  hA as aa,
5802
5815
  vA as ab,
5803
5816
  yA as ac,
5804
- nu as ad,
5805
- ru as ae,
5806
- au as af,
5807
- tu as ag,
5817
+ au as ad,
5818
+ ou as ae,
5819
+ su as af,
5820
+ ru as ag,
5808
5821
  $e as ah,
5809
5822
  WA as ai,
5810
5823
  QA as aj,
@@ -5816,6 +5829,8 @@ export {
5816
5829
  KA as ap,
5817
5830
  $A as aq,
5818
5831
  eu as ar,
5832
+ tu as as,
5833
+ nu as at,
5819
5834
  za as b,
5820
5835
  LA as c,
5821
5836
  Wa as d,
@@ -5832,7 +5847,7 @@ export {
5832
5847
  eo as o,
5833
5848
  to as p,
5834
5849
  YA as q,
5835
- ue as r,
5850
+ oe as r,
5836
5851
  Tr as s,
5837
5852
  yo as t,
5838
5853
  vo as u,
@@ -15,8 +15,8 @@ export declare interface CommissionInterface {
15
15
  updatedAt: string;
16
16
  }
17
17
 
18
- export declare type CommissionStatus = "pending" | "approved" | "reproved" | "ready" | "paid";
18
+ export declare type CommissionStatus = "pending" | "approved" | "ready" | "paid" | "cancelled" | "disputed" | "reproved";
19
19
 
20
- export declare type CommissionType = "novo" | "renovacao" | "upsell" | "bonus" | "collaborator";
20
+ export declare type CommissionType = "collaborator" | "agency" | "bonus";
21
21
 
22
22
  export { }
@@ -760,7 +760,7 @@ declare interface PaymentInterface {
760
760
 
761
761
  declare type PaymentPhase = "pending" | "review" | "approval" | "awaiting" | "requested" | "received" | "queued" | "paid" | "client" | "canceled";
762
762
 
763
- declare type PaymentType = "influencer" | "advisor" | "employee_refund" | "influencer_extra" | "influencer_refund" | "partlog" | "airplane_ticket" | "hotel_ticket" | "supplier" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts";
763
+ declare type PaymentType = "influencer" | "advisor" | "employee_refund" | "influencer_extra" | "influencer_refund" | "partlog" | "airplane_ticket" | "hotel_ticket" | "supplier" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts" | "commission";
764
764
 
765
765
  declare interface Pending {
766
766
  requester: Requester;
@@ -1,10 +1,10 @@
1
1
  import { aZ as v, I as _, c as u, B as N, a_ as M, aq as T, ar as F, as as D, w as $, F as j, W as q, X as B, $ as I, _ as O, Y as K, a0 as U } from "./chuncks/switch.D_38xWg-.js";
2
2
  import { jsx as e, jsxs as g, Fragment as R } from "react/jsx-runtime";
3
- import { a as W, o as X, c as G, b as Q } from "./chuncks/on-key-down.event.DwaAUcvU.js";
4
- import { m as Y, b as Z } from "./chuncks/masks.util.DSH4bjFp.js";
3
+ import { a as W, o as X, c as G, b as Q } from "./chuncks/on-key-down.event.P_bsCvU1.js";
4
+ import { m as Y, b as Z } from "./chuncks/masks.util.DV_OyNW_.js";
5
5
  import S, { useState as A, useRef as P, useEffect as H, useMemo as J } from "react";
6
- import { M as V, s as ee } from "./chuncks/youtube-icon.component.CqZ8FUlu.js";
7
- import { t as nt, L as at, O as rt, u as st, H as it, Y as ot, a4 as lt, Z as dt, _ as ct, J as gt, $ as ut, a5 as pt, a0 as xt, a1 as mt, a2 as bt, a3 as ft, K as ht, Q as yt, a7 as wt, a8 as vt, ad as kt, w as Nt, x as It, y as St, z as Ct, G as zt, a9 as _t, U as Mt, X as Tt, W as Ft, a6 as Dt, aa as Rt, ab as At, ac as Pt, af as Ht, ae as Lt } from "./chuncks/youtube-icon.component.CqZ8FUlu.js";
6
+ import { M as V, s as ee } from "./chuncks/youtube-icon.component.pqd-_c8t.js";
7
+ import { t as nt, L as at, O as rt, u as st, H as it, Y as ot, a4 as lt, Z as dt, _ as ct, J as gt, $ as ut, a5 as pt, a0 as xt, a1 as mt, a2 as bt, a3 as ft, K as ht, Q as yt, a7 as wt, a8 as vt, ad as kt, w as Nt, x as It, y as St, z as Ct, G as zt, a9 as _t, U as Mt, X as Tt, W as Ft, a6 as Dt, aa as Rt, ab as At, ac as Pt, af as Ht, ae as Lt } from "./chuncks/youtube-icon.component.pqd-_c8t.js";
8
8
  import { B as L, m as te, T as ne, k as ae, l as re, S as k } from "./chuncks/badge.tZcF7uIJ.js";
9
9
  import { parseISO as C, differenceInCalendarDays as se, format as ie } from "date-fns";
10
10
  import { u as oe } from "./chuncks/use-debounce.hook.DjZcE4xa.js";
package/dist/constants.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as n, A as m, B as S, C as A, D as c, E as N, F as E, I as g, N as l, a as _, d as p, P as B, R as r, c as s, e as i, S as t, T, V as I } from "./chuncks/youtube-icon.component.CqZ8FUlu.js";
1
+ import { b as n, A as m, B as S, C as A, D as c, E as N, F as E, I as g, N as l, a as _, d as p, P as B, R as r, c as s, e as i, S as t, T, V as I } from "./chuncks/youtube-icon.component.pqd-_c8t.js";
2
2
  const o = [
3
3
  {
4
4
  compe: "001",
package/dist/content.d.ts CHANGED
@@ -406,7 +406,7 @@ declare interface PaymentInterface {
406
406
 
407
407
  declare type PaymentPhase = "pending" | "review" | "approval" | "awaiting" | "requested" | "received" | "queued" | "paid" | "client" | "canceled";
408
408
 
409
- declare type PaymentType = "influencer" | "advisor" | "employee_refund" | "influencer_extra" | "influencer_refund" | "partlog" | "airplane_ticket" | "hotel_ticket" | "supplier" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts";
409
+ declare type PaymentType = "influencer" | "advisor" | "employee_refund" | "influencer_extra" | "influencer_refund" | "partlog" | "airplane_ticket" | "hotel_ticket" | "supplier" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts" | "commission";
410
410
 
411
411
  declare interface Pending {
412
412
  requester: Requester;
@@ -94,6 +94,60 @@ export declare const clientTypeDict: {
94
94
  is(value?: string | number | symbol | null): value is "agency" | "brand";
95
95
  };
96
96
 
97
+ export declare const commissionStatusDict: {
98
+ data: {
99
+ readonly pending: "Pendente";
100
+ readonly approved: "Aprovada";
101
+ readonly ready: "Aguardando NF";
102
+ readonly paid: "Pago";
103
+ readonly cancelled: "Cancelada";
104
+ readonly disputed: "Contestada";
105
+ readonly reproved: "Reprovado";
106
+ };
107
+ values: ("pending" | "paid" | "cancelled" | "approved" | "ready" | "disputed" | "reproved")[];
108
+ labels: ("Pago" | "Pendente" | "Aprovada" | "Aguardando NF" | "Cancelada" | "Contestada" | "Reprovado")[];
109
+ getLabel: {
110
+ <K extends "pending" | "paid" | "cancelled" | "approved" | "ready" | "disputed" | "reproved">(value: K): {
111
+ readonly pending: "Pendente";
112
+ readonly approved: "Aprovada";
113
+ readonly ready: "Aguardando NF";
114
+ readonly paid: "Pago";
115
+ readonly cancelled: "Cancelada";
116
+ readonly disputed: "Contestada";
117
+ readonly reproved: "Reprovado";
118
+ }[K];
119
+ (value?: string | number | symbol | null): "Pago" | "Pendente" | "Aprovada" | "Aguardando NF" | "Cancelada" | "Contestada" | "Reprovado" | null;
120
+ };
121
+ options: {
122
+ value: "pending" | "paid" | "cancelled" | "approved" | "ready" | "disputed" | "reproved";
123
+ label: "Pago" | "Pendente" | "Aprovada" | "Aguardando NF" | "Cancelada" | "Contestada" | "Reprovado";
124
+ }[];
125
+ is(value?: string | number | symbol | null): value is "pending" | "paid" | "cancelled" | "approved" | "ready" | "disputed" | "reproved";
126
+ };
127
+
128
+ export declare const commissionTypeDict: {
129
+ data: {
130
+ readonly collaborator: "Colaborador";
131
+ readonly agency: "Agência";
132
+ readonly bonus: "Bônus";
133
+ };
134
+ values: ("agency" | "collaborator" | "bonus")[];
135
+ labels: ("Agência" | "Colaborador" | "Bônus")[];
136
+ getLabel: {
137
+ <K extends "agency" | "collaborator" | "bonus">(value: K): {
138
+ readonly collaborator: "Colaborador";
139
+ readonly agency: "Agência";
140
+ readonly bonus: "Bônus";
141
+ }[K];
142
+ (value?: string | number | symbol | null): "Agência" | "Colaborador" | "Bônus" | null;
143
+ };
144
+ options: {
145
+ value: "agency" | "collaborator" | "bonus";
146
+ label: "Agência" | "Colaborador" | "Bônus";
147
+ }[];
148
+ is(value?: string | number | symbol | null): value is "agency" | "collaborator" | "bonus";
149
+ };
150
+
97
151
  export declare const invoicePhaseDict: {
98
152
  data: {
99
153
  readonly inbox: "Caixa de Entrada";
@@ -176,11 +230,12 @@ export declare const paymentTypeDict: {
176
230
  readonly motoboy_others: "Motoboy Outros";
177
231
  readonly logistics_control: "Controle de Logística";
178
232
  readonly transfer_between_accounts: "Transferência entre Contas";
233
+ readonly commission: "Comissão";
179
234
  };
180
- values: ("influencer" | "advisor" | "supplier" | "employee_refund" | "influencer_refund" | "influencer_extra" | "partlog" | "airplane_ticket" | "hotel_ticket" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts")[];
181
- labels: ("Veículação de Influenciador" | "Pagamento de Assessor" | "Pagamento de Fornecedor" | "Reembolso de Colaborador" | "Reembolso de Influenciador" | "Extra de Influenciador" | "Kit pela Partlog" | "Passagem Aérea para Influenciador" | "Hospedagem para Influenciador" | "Rumo Certo" | "Correios" | "Conta Simples" | "Motoboy Bruno" | "Motoboy Outros" | "Controle de Logística" | "Transferência entre Contas")[];
235
+ values: ("influencer" | "advisor" | "supplier" | "employee_refund" | "influencer_refund" | "influencer_extra" | "partlog" | "airplane_ticket" | "hotel_ticket" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts" | "commission")[];
236
+ labels: ("Veículação de Influenciador" | "Pagamento de Assessor" | "Pagamento de Fornecedor" | "Reembolso de Colaborador" | "Reembolso de Influenciador" | "Extra de Influenciador" | "Kit pela Partlog" | "Passagem Aérea para Influenciador" | "Hospedagem para Influenciador" | "Rumo Certo" | "Correios" | "Conta Simples" | "Motoboy Bruno" | "Motoboy Outros" | "Controle de Logística" | "Transferência entre Contas" | "Comissão")[];
182
237
  getLabel: {
183
- <K extends "influencer" | "advisor" | "supplier" | "employee_refund" | "influencer_refund" | "influencer_extra" | "partlog" | "airplane_ticket" | "hotel_ticket" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts">(value: K): {
238
+ <K extends "influencer" | "advisor" | "supplier" | "employee_refund" | "influencer_refund" | "influencer_extra" | "partlog" | "airplane_ticket" | "hotel_ticket" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts" | "commission">(value: K): {
184
239
  readonly influencer: "Veículação de Influenciador";
185
240
  readonly advisor: "Pagamento de Assessor";
186
241
  readonly supplier: "Pagamento de Fornecedor";
@@ -197,14 +252,15 @@ export declare const paymentTypeDict: {
197
252
  readonly motoboy_others: "Motoboy Outros";
198
253
  readonly logistics_control: "Controle de Logística";
199
254
  readonly transfer_between_accounts: "Transferência entre Contas";
255
+ readonly commission: "Comissão";
200
256
  }[K];
201
- (value?: string | number | symbol | null): "Veículação de Influenciador" | "Pagamento de Assessor" | "Pagamento de Fornecedor" | "Reembolso de Colaborador" | "Reembolso de Influenciador" | "Extra de Influenciador" | "Kit pela Partlog" | "Passagem Aérea para Influenciador" | "Hospedagem para Influenciador" | "Rumo Certo" | "Correios" | "Conta Simples" | "Motoboy Bruno" | "Motoboy Outros" | "Controle de Logística" | "Transferência entre Contas" | null;
257
+ (value?: string | number | symbol | null): "Veículação de Influenciador" | "Pagamento de Assessor" | "Pagamento de Fornecedor" | "Reembolso de Colaborador" | "Reembolso de Influenciador" | "Extra de Influenciador" | "Kit pela Partlog" | "Passagem Aérea para Influenciador" | "Hospedagem para Influenciador" | "Rumo Certo" | "Correios" | "Conta Simples" | "Motoboy Bruno" | "Motoboy Outros" | "Controle de Logística" | "Transferência entre Contas" | "Comissão" | null;
202
258
  };
203
259
  options: {
204
- value: "influencer" | "advisor" | "supplier" | "employee_refund" | "influencer_refund" | "influencer_extra" | "partlog" | "airplane_ticket" | "hotel_ticket" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts";
205
- label: "Veículação de Influenciador" | "Pagamento de Assessor" | "Pagamento de Fornecedor" | "Reembolso de Colaborador" | "Reembolso de Influenciador" | "Extra de Influenciador" | "Kit pela Partlog" | "Passagem Aérea para Influenciador" | "Hospedagem para Influenciador" | "Rumo Certo" | "Correios" | "Conta Simples" | "Motoboy Bruno" | "Motoboy Outros" | "Controle de Logística" | "Transferência entre Contas";
260
+ value: "influencer" | "advisor" | "supplier" | "employee_refund" | "influencer_refund" | "influencer_extra" | "partlog" | "airplane_ticket" | "hotel_ticket" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts" | "commission";
261
+ label: "Veículação de Influenciador" | "Pagamento de Assessor" | "Pagamento de Fornecedor" | "Reembolso de Colaborador" | "Reembolso de Influenciador" | "Extra de Influenciador" | "Kit pela Partlog" | "Passagem Aérea para Influenciador" | "Hospedagem para Influenciador" | "Rumo Certo" | "Correios" | "Conta Simples" | "Motoboy Bruno" | "Motoboy Outros" | "Controle de Logística" | "Transferência entre Contas" | "Comissão";
206
262
  }[];
207
- is(value?: string | number | symbol | null): value is "influencer" | "advisor" | "supplier" | "employee_refund" | "influencer_refund" | "influencer_extra" | "partlog" | "airplane_ticket" | "hotel_ticket" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts";
263
+ is(value?: string | number | symbol | null): value is "influencer" | "advisor" | "supplier" | "employee_refund" | "influencer_refund" | "influencer_extra" | "partlog" | "airplane_ticket" | "hotel_ticket" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts" | "commission";
208
264
  };
209
265
 
210
266
  export declare const salePhaseDict: {
@@ -217,10 +273,10 @@ export declare const salePhaseDict: {
217
273
  readonly closed: "Fechada";
218
274
  readonly lost: "Perdida";
219
275
  };
220
- values: ("closed" | "screening" | "proposal" | "negotiation" | "commission" | "formalization" | "lost")[];
276
+ values: ("closed" | "commission" | "screening" | "proposal" | "negotiation" | "formalization" | "lost")[];
221
277
  labels: ("Triagem" | "Proposta" | "Negociação" | "Comissionamento" | "Formalização" | "Fechada" | "Perdida")[];
222
278
  getLabel: {
223
- <K extends "closed" | "screening" | "proposal" | "negotiation" | "commission" | "formalization" | "lost">(value: K): {
279
+ <K extends "closed" | "commission" | "screening" | "proposal" | "negotiation" | "formalization" | "lost">(value: K): {
224
280
  readonly screening: "Triagem";
225
281
  readonly proposal: "Proposta";
226
282
  readonly negotiation: "Negociação";
@@ -232,10 +288,10 @@ export declare const salePhaseDict: {
232
288
  (value?: string | number | symbol | null): "Triagem" | "Proposta" | "Negociação" | "Comissionamento" | "Formalização" | "Fechada" | "Perdida" | null;
233
289
  };
234
290
  options: {
235
- value: "closed" | "screening" | "proposal" | "negotiation" | "commission" | "formalization" | "lost";
291
+ value: "closed" | "commission" | "screening" | "proposal" | "negotiation" | "formalization" | "lost";
236
292
  label: "Triagem" | "Proposta" | "Negociação" | "Comissionamento" | "Formalização" | "Fechada" | "Perdida";
237
293
  }[];
238
- is(value?: string | number | symbol | null): value is "closed" | "screening" | "proposal" | "negotiation" | "commission" | "formalization" | "lost";
294
+ is(value?: string | number | symbol | null): value is "closed" | "commission" | "screening" | "proposal" | "negotiation" | "formalization" | "lost";
239
295
  };
240
296
 
241
297
  export declare const socialNetworkColorDict: {
@@ -1,22 +1,24 @@
1
1
  import "./chuncks/switch.D_38xWg-.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
- import { aj as D, ai as m, ag as n, ak as l, ap as y, am as h, al as k, ao as P, ar as T, aq as g, ah as u, an as w } from "./chuncks/youtube-icon.component.CqZ8FUlu.js";
4
+ import { aj as r, ai as D, ag as n, ak as l, as as y, at as h, ap as T, am as k, al as u, ao as P, ar as S, aq as g, ah as w, an as C } from "./chuncks/youtube-icon.component.pqd-_c8t.js";
5
5
  import "@tanstack/react-query";
6
6
  import "date-fns";
7
7
  import "./chuncks/shared-app-modules.provider.DRJ7n4Cj.js";
8
8
  import "axios";
9
9
  export {
10
- D as actionStatusDict,
11
- m as actionTypeDict,
10
+ r as actionStatusDict,
11
+ D as actionTypeDict,
12
12
  n as businessUnitDict,
13
13
  l as clientTypeDict,
14
- y as invoicePhaseDict,
15
- h as paymentPhaseDict,
16
- k as paymentTypeDict,
14
+ y as commissionStatusDict,
15
+ h as commissionTypeDict,
16
+ T as invoicePhaseDict,
17
+ k as paymentPhaseDict,
18
+ u as paymentTypeDict,
17
19
  P as salePhaseDict,
18
- T as socialNetworkColorDict,
20
+ S as socialNetworkColorDict,
19
21
  g as socialNetworkDict,
20
- u as tagColorDict,
21
- w as typeSaleDict
22
+ w as tagColorDict,
23
+ C as typeSaleDict
22
24
  };
package/dist/events.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as a, o, c as t, a as g } from "./chuncks/on-key-down.event.DwaAUcvU.js";
1
+ import { b as a, o, c as t, a as g } from "./chuncks/on-key-down.event.P_bsCvU1.js";
2
2
  export {
3
3
  a as onChangePercentageFloat,
4
4
  o as onChangePercentageInteger,
package/dist/invoice.d.ts CHANGED
@@ -406,7 +406,7 @@ declare interface PaymentInterface {
406
406
 
407
407
  declare type PaymentPhase = "pending" | "review" | "approval" | "awaiting" | "requested" | "received" | "queued" | "paid" | "client" | "canceled";
408
408
 
409
- declare type PaymentType = "influencer" | "advisor" | "employee_refund" | "influencer_extra" | "influencer_refund" | "partlog" | "airplane_ticket" | "hotel_ticket" | "supplier" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts";
409
+ declare type PaymentType = "influencer" | "advisor" | "employee_refund" | "influencer_extra" | "influencer_refund" | "partlog" | "airplane_ticket" | "hotel_ticket" | "supplier" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts" | "commission";
410
410
 
411
411
  declare interface Pending {
412
412
  requester: Requester;
package/dist/payment.d.ts CHANGED
@@ -406,7 +406,7 @@ export declare interface PaymentInterface {
406
406
 
407
407
  export declare type PaymentPhase = "pending" | "review" | "approval" | "awaiting" | "requested" | "received" | "queued" | "paid" | "client" | "canceled";
408
408
 
409
- export declare type PaymentType = "influencer" | "advisor" | "employee_refund" | "influencer_extra" | "influencer_refund" | "partlog" | "airplane_ticket" | "hotel_ticket" | "supplier" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts";
409
+ export declare type PaymentType = "influencer" | "advisor" | "employee_refund" | "influencer_extra" | "influencer_refund" | "partlog" | "airplane_ticket" | "hotel_ticket" | "supplier" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts" | "commission";
410
410
 
411
411
  export declare interface Pending {
412
412
  requester: Requester;
@@ -406,7 +406,7 @@ declare interface PaymentInterface {
406
406
 
407
407
  declare type PaymentPhase = "pending" | "review" | "approval" | "awaiting" | "requested" | "received" | "queued" | "paid" | "client" | "canceled";
408
408
 
409
- declare type PaymentType = "influencer" | "advisor" | "employee_refund" | "influencer_extra" | "influencer_refund" | "partlog" | "airplane_ticket" | "hotel_ticket" | "supplier" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts";
409
+ declare type PaymentType = "influencer" | "advisor" | "employee_refund" | "influencer_extra" | "influencer_refund" | "partlog" | "airplane_ticket" | "hotel_ticket" | "supplier" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts" | "commission";
410
410
 
411
411
  declare interface Pending {
412
412
  requester: Requester;
package/dist/sale.d.ts CHANGED
@@ -406,7 +406,7 @@ declare interface PaymentInterface {
406
406
 
407
407
  declare type PaymentPhase = "pending" | "review" | "approval" | "awaiting" | "requested" | "received" | "queued" | "paid" | "client" | "canceled";
408
408
 
409
- declare type PaymentType = "influencer" | "advisor" | "employee_refund" | "influencer_extra" | "influencer_refund" | "partlog" | "airplane_ticket" | "hotel_ticket" | "supplier" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts";
409
+ declare type PaymentType = "influencer" | "advisor" | "employee_refund" | "influencer_extra" | "influencer_refund" | "partlog" | "airplane_ticket" | "hotel_ticket" | "supplier" | "rumo_certo" | "correios" | "conta_simples" | "motoboy_bruno" | "motoboy_others" | "logistics_control" | "transfer_between_accounts" | "commission";
410
410
 
411
411
  declare interface Pending {
412
412
  requester: Requester;
package/dist/utils.js CHANGED
@@ -1,6 +1,6 @@
1
- import { i as a, f as s } from "./chuncks/youtube-icon.component.CqZ8FUlu.js";
2
- import { r as C, p as O, n as x, j as U, h as j, l as q, m as w, k as B, g as R, o as T, q as A, v as z } from "./chuncks/youtube-icon.component.CqZ8FUlu.js";
3
- import { b as J, m as Z, a as H, u as K } from "./chuncks/masks.util.DSH4bjFp.js";
1
+ import { i as a, f as s } from "./chuncks/youtube-icon.component.pqd-_c8t.js";
2
+ import { r as C, p as O, n as x, j as U, h as j, l as q, m as w, k as B, g as R, o as T, q as A, v as z } from "./chuncks/youtube-icon.component.pqd-_c8t.js";
3
+ import { b as J, m as Z, a as H, u as K } from "./chuncks/masks.util.DV_OyNW_.js";
4
4
  function c(e) {
5
5
  const r = e.replace(/[^0-9]/g, "");
6
6
  return Number(r) / 100;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-app-modules",
3
3
  "private": false,
4
- "version": "0.0.226",
4
+ "version": "0.0.228",
5
5
  "files": [
6
6
  "dist"
7
7
  ],