@cling-se/widget 0.3.3 → 0.4.0

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 (114) hide show
  1. package/.env +4 -4
  2. package/dist/{DocFormSend.8754868e.js → DocFormSend.06af8a6b.js} +25 -30
  3. package/dist/{DocSendReminder.d98e3f1e.js → DocSendReminder.526624ad.js} +4 -5
  4. package/dist/{DocTimeline.281a4dbc.js → DocTimeline.fbf264f2.js} +32 -33
  5. package/dist/index.es.js +29 -4
  6. package/dist/index.umd.js +104 -105
  7. package/dist/{main.837b42e2.js → main.5aaccd3f.js} +9413 -8832
  8. package/package.json +1 -1
  9. package/stats.html +1 -1
  10. package/tailwind.config.cjs +1 -1
  11. package/dist/index.0064b913.js +0 -347
  12. package/dist/index.03eb849d.js +0 -392
  13. package/dist/index.06ae19a2.js +0 -392
  14. package/dist/index.0b00c821.js +0 -174
  15. package/dist/index.0b0db0bd.js +0 -405
  16. package/dist/index.0bc608d5.js +0 -373
  17. package/dist/index.0c336ba9.js +0 -405
  18. package/dist/index.0ceaa718.js +0 -358
  19. package/dist/index.0ef1a3a6.js +0 -413
  20. package/dist/index.1503d863.js +0 -424
  21. package/dist/index.15ee0ab9.js +0 -414
  22. package/dist/index.168c2bce.js +0 -423
  23. package/dist/index.16902632.js +0 -392
  24. package/dist/index.18701043.js +0 -419
  25. package/dist/index.198d78b9.js +0 -418
  26. package/dist/index.1b27357e.js +0 -400
  27. package/dist/index.1bc3c82c.js +0 -487
  28. package/dist/index.1cca6025.js +0 -457
  29. package/dist/index.2026e05c.js +0 -413
  30. package/dist/index.222039f9.js +0 -402
  31. package/dist/index.23a35b9b.js +0 -497
  32. package/dist/index.2942b429.js +0 -442
  33. package/dist/index.298a69f1.js +0 -362
  34. package/dist/index.2ace86f5.js +0 -44
  35. package/dist/index.2c359b4e.js +0 -405
  36. package/dist/index.2d941184.js +0 -396
  37. package/dist/index.2db71959.js +0 -542
  38. package/dist/index.2f4aeb17.js +0 -76
  39. package/dist/index.31152a7a.js +0 -460
  40. package/dist/index.311ffa7e.js +0 -527
  41. package/dist/index.32733310.js +0 -437
  42. package/dist/index.3c067fea.js +0 -498
  43. package/dist/index.3fcd5701.js +0 -422
  44. package/dist/index.47d10a37.js +0 -358
  45. package/dist/index.49976861.js +0 -358
  46. package/dist/index.5087f7bd.js +0 -414
  47. package/dist/index.54e2a93d.js +0 -573
  48. package/dist/index.572141f4.js +0 -88
  49. package/dist/index.6158b0ab.js +0 -398
  50. package/dist/index.66cfda66.js +0 -495
  51. package/dist/index.67e7120b.js +0 -497
  52. package/dist/index.694a50c1.js +0 -573
  53. package/dist/index.6b196f79.js +0 -485
  54. package/dist/index.6fbbcdb3.js +0 -392
  55. package/dist/index.741c5144.js +0 -50
  56. package/dist/index.7a83617c.js +0 -495
  57. package/dist/index.7b414677.js +0 -395
  58. package/dist/index.8163ec67.js +0 -89
  59. package/dist/index.825ca275.js +0 -88
  60. package/dist/index.849ab6fa.js +0 -358
  61. package/dist/index.87a7d282.js +0 -422
  62. package/dist/index.89b15e9c.js +0 -11089
  63. package/dist/index.89edadab.js +0 -401
  64. package/dist/index.8d78ff09.js +0 -357
  65. package/dist/index.91647e7b.js +0 -390
  66. package/dist/index.91b4b4e5.js +0 -390
  67. package/dist/index.91b9ac70.js +0 -427
  68. package/dist/index.947cc7ce.js +0 -414
  69. package/dist/index.98d98c90.js +0 -605
  70. package/dist/index.9a09d960.js +0 -401
  71. package/dist/index.9a1c119f.js +0 -103
  72. package/dist/index.9b893c04.js +0 -411
  73. package/dist/index.9c1acbbd.js +0 -422
  74. package/dist/index.9fb3d656.js +0 -89
  75. package/dist/index.9fd80be0.js +0 -423
  76. package/dist/index.a3323069.js +0 -394
  77. package/dist/index.aa84e0d9.js +0 -392
  78. package/dist/index.add715bd.js +0 -664
  79. package/dist/index.b08b5876.js +0 -174
  80. package/dist/index.b3a86349.js +0 -371
  81. package/dist/index.b5842b70.js +0 -89
  82. package/dist/index.b658adad.js +0 -396
  83. package/dist/index.b71f00b5.js +0 -90
  84. package/dist/index.b8750637.js +0 -540
  85. package/dist/index.b995f365.js +0 -358
  86. package/dist/index.ba4f216e.js +0 -399
  87. package/dist/index.bee408a6.js +0 -406
  88. package/dist/index.bf274622.js +0 -397
  89. package/dist/index.bfdd7ce8.js +0 -391
  90. package/dist/index.c02dd0fa.js +0 -344
  91. package/dist/index.c84e7cc7.js +0 -324
  92. package/dist/index.c8b68fb4.js +0 -89
  93. package/dist/index.cbebf0b5.js +0 -89
  94. package/dist/index.cd8e3187.js +0 -247
  95. package/dist/index.cedea761.js +0 -397
  96. package/dist/index.d104916c.js +0 -20
  97. package/dist/index.d3fb286b.js +0 -566
  98. package/dist/index.d6936050.js +0 -446
  99. package/dist/index.d7e2ee42.js +0 -399
  100. package/dist/index.d97cba81.js +0 -564
  101. package/dist/index.dc39d415.js +0 -264
  102. package/dist/index.e1de722f.js +0 -392
  103. package/dist/index.e216613c.js +0 -400
  104. package/dist/index.e70ace17.js +0 -50
  105. package/dist/index.ead78f64.js +0 -496
  106. package/dist/index.eaf0a7c6.js +0 -99
  107. package/dist/index.ef37b57d.js +0 -105
  108. package/dist/index.f9398aeb.js +0 -347
  109. package/dist/index.fbf51f38.js +0 -388
  110. package/dist/index.fd6131ed.js +0 -397
  111. package/dist/index.fe1fd10f.js +0 -514
  112. package/dist/index.fe69dc7a.js +0 -89
  113. package/dist/index.ffd56116.js +0 -161
  114. package/dist/init.1c637e98.js +0 -570
package/.env CHANGED
@@ -1,7 +1,7 @@
1
1
  VITE_APP_ROOT_STYLE_ID=CLING_WIDGET_STYLE
2
- VITE_APP_WEB_BASEURL=https://app.dev2.cling.se
3
- VITE_APP_CLINGAPI_BASEURL=https://api.dev.cling.se
4
- VITE_APP_CLINGAPI_SOCKET_ROOT=https://api.dev.cling.se
2
+ VITE_APP_WEB_BASEURL=https://app.cling.se
3
+ VITE_APP_CLINGAPI_BASEURL=https://api.cling.se
4
+ VITE_APP_CLINGAPI_SOCKET_ROOT=https://api.cling.se
5
5
  VITE_APP_ROLLBAR_CLIENT_TOKEN=cf75726b70174d4097505ae18d5f9600
6
6
  VITE_APP_ROLLBAR_ENV=production
7
7
  VITE_APP_STRIPE_PUBLISHABLE_KEY=pk_live_srt9FB7WkzNiQGIP46ISVpag00bGlEZBT8
@@ -11,4 +11,4 @@ VITE_APP_WEB_BASEURL_DEV=https://app.dev2.cling.se
11
11
  VITE_APP_CLINGAPI_BASEURL_DEV=https://api.dev.cling.se
12
12
  VITE_APP_CLINGAPI_SOCKET_ROOT_DEV=https://api.dev.cling.se
13
13
  VITE_APP_ROLLBAR_CLIENT_TOKEN_DEV=cf75726b70174d4097505ae18d5f9600
14
- VITE_APP_ROLLBAR_ENV_DEV=staging
14
+ VITE_APP_ROLLBAR_ENV_DEV=staging
@@ -1,5 +1,4 @@
1
- import { g as Se, n as N, C as Ya, s as jf, e as Wf, i as Yf, r as Tc, a as Xs, m as Rc, b as Lt, c as mn, d as nt, _ as Vf, f as Ic, h as Uf, p as Hf, j as Gf, k as qf, l as Pc, V as Va, o as Ac, A as Kf, q as Xf, t as Zf, u as Jf, v as Qf, F as Fc, w as Nc, x as Ua, y as eh, z as th, B as Zs, D as rh, E as nh, G as ih } from "./main.837b42e2.js";
2
- import { c as se, b as ah } from "./init.1c637e98.js";
1
+ import { c as se, g as Se, a as jf, n as N, C as Ya, s as Wf, e as Yf, i as Vf, r as Tc, b as Xs, m as Rc, d as Lt, f as mn, h as nt, _ as Uf, j as Ic, k as Hf, p as Gf, l as qf, o as Kf, q as Pc, V as Va, t as Ac, A as Xf, u as Zf, v as Jf, w as Qf, x as eh, F as Fc, y as Nc, z as Ua, B as th, D as rh, E as Zs, G as nh, H as ih, I as ah } from "./main.5aaccd3f.js";
3
2
  const fe = {
4
3
  AD: {
5
4
  name: "Andorra",
@@ -6153,7 +6152,7 @@ y.HTML5_FMT = {
6153
6152
  const sk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6154
6153
  __proto__: null,
6155
6154
  default: y
6156
- }, Symbol.toStringTag, { value: "Module" })), ok = /* @__PURE__ */ ah(sk);
6155
+ }, Symbol.toStringTag, { value: "Module" })), ok = /* @__PURE__ */ jf(sk);
6157
6156
  /*!
6158
6157
  * Pikaday
6159
6158
  *
@@ -6642,7 +6641,7 @@ const ck = {
6642
6641
  change(t) {
6643
6642
  if (t) {
6644
6643
  let e = new Date(t);
6645
- this.direction === "start" && (e = jf(e)), this.direction === "end" && (e = Wf(e)), e = e.toISOString(), this.$emit("input", e);
6644
+ this.direction === "start" && (e = Wf(e)), this.direction === "end" && (e = Yf(e)), e = e.toISOString(), this.$emit("input", e);
6646
6645
  }
6647
6646
  },
6648
6647
  onSelect() {
@@ -6653,7 +6652,7 @@ const ck = {
6653
6652
  this.visible = !0, this.overflowCheck();
6654
6653
  },
6655
6654
  onClose() {
6656
- Yf(new Date(this.value)) || (this.pikaday.setDate(null, !0), this.change(null)), this.visible = !1;
6655
+ Vf(new Date(this.value)) || (this.pikaday.setDate(null, !0), this.change(null)), this.visible = !1;
6657
6656
  },
6658
6657
  show() {
6659
6658
  this.pikaday.show(), this.$emit("focus");
@@ -6963,7 +6962,7 @@ var Mk = function() {
6963
6962
  null
6964
6963
  );
6965
6964
  const Rk = Tk.exports;
6966
- var Ik = Vf, Pk = function() {
6965
+ var Ik = Uf, Pk = function() {
6967
6966
  return Ik.Date.now();
6968
6967
  }, Ak = Pk, Fk = /\s/;
6969
6968
  function Nk(t) {
@@ -6975,7 +6974,7 @@ var Lk = Nk, Bk = Lk, zk = /^\s+/;
6975
6974
  function jk(t) {
6976
6975
  return t && t.slice(0, Bk(t) + 1).replace(zk, "");
6977
6976
  }
6978
- var Wk = jk, Yk = Wk, sc = Ic, Vk = Uf, oc = 0 / 0, Uk = /^[-+]0x[0-9a-f]+$/i, Hk = /^0b[01]+$/i, Gk = /^0o[0-7]+$/i, qk = parseInt;
6977
+ var Wk = jk, Yk = Wk, sc = Ic, Vk = Hf, oc = 0 / 0, Uk = /^[-+]0x[0-9a-f]+$/i, Hk = /^0b[01]+$/i, Gk = /^0o[0-7]+$/i, qk = parseInt;
6979
6978
  function Kk(t) {
6980
6979
  if (typeof t == "number")
6981
6980
  return t;
@@ -7104,7 +7103,7 @@ const nD = {
7104
7103
  async fetchType(t, e, r, n) {
7105
7104
  if (!this.canFetchType(t))
7106
7105
  return [];
7107
- const { data: i } = await Hf("search", {
7106
+ const { data: i } = await Gf("search", {
7108
7107
  type: t,
7109
7108
  query: e,
7110
7109
  ...r !== null && n !== null && { start: r, end: n }
@@ -7129,7 +7128,7 @@ const nD = {
7129
7128
  }
7130
7129
  }
7131
7130
  ]
7132
- }, { data: a } = await Gf("/document", {
7131
+ }, { data: a } = await qf("/document", {
7133
7132
  params: {
7134
7133
  lean: !0,
7135
7134
  filter: encodeURIComponent(JSON.stringify(i)),
@@ -7147,7 +7146,7 @@ const nD = {
7147
7146
  this.hasSearchedAll = !1;
7148
7147
  return;
7149
7148
  }
7150
- const { data: a } = await qf.search(i, { query: t, type: "article" });
7149
+ const { data: a } = await Kf.search(i, { query: t, type: "article" });
7151
7150
  a && Array.isArray(a) && n.push(...a);
7152
7151
  } catch {
7153
7152
  }
@@ -7864,7 +7863,7 @@ const { mapFields: iM } = Ac({
7864
7863
  name: "FormClient",
7865
7864
  components: {
7866
7865
  ClientAutocomplete: Df,
7867
- Animation: Kf
7866
+ Animation: Xf
7868
7867
  },
7869
7868
  mixins: [nM],
7870
7869
  props: {
@@ -8155,7 +8154,7 @@ const cM = lM.exports, { mapFields: uM } = Ac({
8155
8154
  showMessage: nt.SHOW_MESSAGE
8156
8155
  }),
8157
8156
  loadForm(t = {}) {
8158
- this.storedNewClient = Object.assign(this.storedNewClient, t), this.endCustomer = Xf({
8157
+ this.storedNewClient = Object.assign(this.storedNewClient, t), this.endCustomer = Zf({
8159
8158
  type: this.$brand === "cling" ? "individual" : "company",
8160
8159
  ...t
8161
8160
  });
@@ -8339,7 +8338,7 @@ const bM = {
8339
8338
  generateSenderClient() {
8340
8339
  const { company: t, user: e } = this._document.sender || {}, r = Se(this._document, "data.defaultAnswerMethod");
8341
8340
  this.senderClientData = {
8342
- ...Zf(),
8341
+ ...Jf(),
8343
8342
  documentRole: "recipient",
8344
8343
  ...r && { answerMethod: r },
8345
8344
  ...this.senderClient,
@@ -8445,7 +8444,7 @@ const xM = {
8445
8444
  },
8446
8445
  methods: {
8447
8446
  onMoveRecipient({ index: t, direction: e }) {
8448
- this.clients = Jf(this.clients).set(
8447
+ this.clients = Qf(this.clients).set(
8449
8448
  {
8450
8449
  ...this.clients[t],
8451
8450
  signOrder: Math.max(this.clients[t].signOrder + e, 0)
@@ -8475,7 +8474,7 @@ const xM = {
8475
8474
  {
8476
8475
  documentClientIndex: t,
8477
8476
  ...this.useSignOrder && {
8478
- signOrder: Qf(e) === "number" ? e : this.maxSignOrder + 1
8477
+ signOrder: eh(e) === "number" ? e : this.maxSignOrder + 1
8479
8478
  },
8480
8479
  isPublicForm: this.isPublicForm
8481
8480
  }
@@ -8566,10 +8565,6 @@ const EM = {
8566
8565
  type: Boolean,
8567
8566
  default: !1
8568
8567
  },
8569
- addMissingAnswerMethod: {
8570
- type: Boolean,
8571
- default: !1
8572
- },
8573
8568
  onSaveDocument: {
8574
8569
  type: Function,
8575
8570
  default: null
@@ -8649,7 +8644,7 @@ const EM = {
8649
8644
  });
8650
8645
  }
8651
8646
  }
8652
- this.addMissingAnswerMethod && !this.defaultAnswerMethod && (this.defaultAnswerMethod = { accept: "signature", deny: "button" }), ((t = this.defaultAnswerMethod) == null ? void 0 : t.accept) === "button" && this.setAnswerMethod("signature", { ignoreChanges: !0 });
8647
+ ((t = this.defaultAnswerMethod) == null ? void 0 : t.accept) === "button" && this.setAnswerMethod("signature", { ignoreChanges: !0 });
8653
8648
  },
8654
8649
  validations: {
8655
8650
  clients: {
@@ -8671,7 +8666,7 @@ const EM = {
8671
8666
  },
8672
8667
  async doSendDocument() {
8673
8668
  var t;
8674
- this.$v.$touch(), ((t = this._document) == null ? void 0 : t.status) === "denied" && this.resetDeniedDocument(), await this.doSaveDocument({ doSend: !0 });
8669
+ this.$v.$touch(), !this.$v.$invalid && (((t = this._document) == null ? void 0 : t.status) === "denied" && this.resetDeniedDocument(), await this.doSaveDocument({ doSend: !0 }));
8675
8670
  },
8676
8671
  setDeliveryMethod(t, e) {
8677
8672
  const r = this.deliveryTypes;
@@ -8775,7 +8770,7 @@ var TM = function() {
8775
8770
  RM,
8776
8771
  !1,
8777
8772
  null,
8778
- "6ed08d50",
8773
+ "ccf0eb53",
8779
8774
  null,
8780
8775
  null
8781
8776
  );
@@ -10203,7 +10198,7 @@ const If = zE.exports, jE = {
10203
10198
  components: {
10204
10199
  CField: If
10205
10200
  },
10206
- extends: eh,
10201
+ extends: th,
10207
10202
  computed: {
10208
10203
  type() {
10209
10204
  return this.hasErrors ? "is-danger" : this.isValid ? "is-success" : null;
@@ -10347,7 +10342,7 @@ const eT = QE.exports, tT = {
10347
10342
  return this.items.filter((t) => typeof t == "object" ? Object.keys(t).some((e) => String(t[e]).toLowerCase().includes(this.query.toLowerCase())) : String(t).toLowerCase().includes(this.query.toLowerCase()));
10348
10343
  },
10349
10344
  sortedItems() {
10350
- return this.searchedItems.slice().sort((t, e) => (typeof t == "object" && typeof e == "object" && (t = t[this.sortBy], e = e[this.sortBy]), (t === e ? 0 : th(t, e)) * this.sortOrder));
10345
+ return this.searchedItems.slice().sort((t, e) => (typeof t == "object" && typeof e == "object" && (t = t[this.sortBy], e = e[this.sortBy]), (t === e ? 0 : rh(t, e)) * this.sortOrder));
10351
10346
  }
10352
10347
  },
10353
10348
  created() {
@@ -10880,7 +10875,7 @@ const Ec = Va.observable({
10880
10875
  };
10881
10876
  },
10882
10877
  computed: {
10883
- ...rh({
10878
+ ...nh({
10884
10879
  company: "application/company",
10885
10880
  can: "application/can",
10886
10881
  rawDoc: "forms/document",
@@ -10900,14 +10895,14 @@ const Ec = Va.observable({
10900
10895
  this.setFormValue && (Ec.setFormValue = this.setDocValue);
10901
10896
  },
10902
10897
  methods: {
10903
- ...nh({
10898
+ ...ih({
10904
10899
  setFormValue: nt.SET_FORM_VALUE,
10905
10900
  removeFormValue: nt.REMOVE_FORM_VALUE
10906
10901
  }),
10907
10902
  async initDoc() {
10908
10903
  if (!this.rawDoc)
10909
10904
  throw new Error("Missing initiated form document");
10910
- this.document = new ih({
10905
+ this.document = new ah({
10911
10906
  data: this.rawDoc,
10912
10907
  can: this.can,
10913
10908
  getters: this.$store.getters,
@@ -10931,7 +10926,7 @@ var OT = function() {
10931
10926
  clients: "clients",
10932
10927
  reminders: "data.reminders",
10933
10928
  name: "data.name"
10934
- }, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "add-missing-answer-method": "", "use-scroll": "" } }) : r("div", { staticClass: "w-full h-full grid place-items-center" }, [r("BaseIcon", { staticClass: "animate-spin text-gray-400", attrs: { type: "loader", size: 28 } })], 1);
10929
+ }, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "use-scroll": "" } }) : r("div", { staticClass: "w-full h-full grid place-items-center" }, [r("BaseIcon", { staticClass: "animate-spin text-gray-400", attrs: { type: "loader", size: 28 } })], 1);
10935
10930
  }, kT = [], DT = /* @__PURE__ */ N(
10936
10931
  xT,
10937
10932
  OT,
@@ -10942,7 +10937,7 @@ var OT = function() {
10942
10937
  null,
10943
10938
  null
10944
10939
  );
10945
- const TT = DT.exports;
10940
+ const ET = DT.exports;
10946
10941
  export {
10947
- TT as default
10942
+ ET as default
10948
10943
  };
@@ -1,5 +1,4 @@
1
- import { b as d, c, d as l, n as r } from "./main.837b42e2.js";
2
- import "./init.1c637e98.js";
1
+ import { d, f as c, h as l, n as r } from "./main.5aaccd3f.js";
3
2
  const m = {
4
3
  name: "DocumentSendReminderModal",
5
4
  props: {
@@ -87,7 +86,7 @@ var _ = function() {
87
86
  return s("DocumentSendReminderModal", { attrs: { document: e.document }, on: { close: function(t) {
88
87
  return e.$router.push("/");
89
88
  } } });
90
- }, f = [], b = /* @__PURE__ */ r(
89
+ }, f = [], T = /* @__PURE__ */ r(
91
90
  h,
92
91
  _,
93
92
  f,
@@ -97,7 +96,7 @@ var _ = function() {
97
96
  null,
98
97
  null
99
98
  );
100
- const $ = b.exports;
99
+ const g = T.exports;
101
100
  export {
102
- $ as default
101
+ g as default
103
102
  };
@@ -1,5 +1,4 @@
1
- import { n as p, i as g, H as f, b as x } from "./main.837b42e2.js";
2
- import "./init.1c637e98.js";
1
+ import { n as p, i as g, J as f, d as x } from "./main.5aaccd3f.js";
3
2
  const $ = {
4
3
  name: "DynamicLink",
5
4
  props: {
@@ -15,8 +14,8 @@ const $ = {
15
14
  }
16
15
  };
17
16
  var v = function() {
18
- var t = this, e = t._self._c;
19
- return e(t.transformed, { tag: "component" });
17
+ var e = this, t = e._self._c;
18
+ return t(e.transformed, { tag: "component" });
20
19
  }, b = [], C = /* @__PURE__ */ p(
21
20
  $,
22
21
  v,
@@ -110,8 +109,8 @@ const k = C.exports, S = {
110
109
  }
111
110
  };
112
111
  var D = function() {
113
- var t = this, e = t._self._c;
114
- return e("div", { staticClass: "flex flex-nowrap relative text-primary-500 cursor-default pb-5 ml-4 event before:content-[''] before:absolute before:w-px before:h-full before:bg-gray-300 before:-left-px before:top-4 last:before:hidden" }, [e("div", { staticClass: "m-0 h-[23px] relative", staticStyle: { "--bg": "#fff" } }, [e("div", { staticClass: "rounded-full absolute left-1/2 top-1/2 z-[1] w-7 h-7 flex items-center justify-center border-none bg-gray-100", class: t.iconClasses, staticStyle: { transform: "translate(-50%, calc(-50% + 8px))", "box-shadow": "0 0 0 2px var(--bg)" } }, [t.loading ? t._e() : e("BaseIcon", { attrs: { type: t.icon, size: "14" } })], 1)]), e("div", { staticClass: "ml-7 min-w-0 flex-grow flex flex-col pt-1" }, [t.loading ? [e("CSkeleton", { staticClass: "max-w-md text-gray-900 font-medium", class: t.titleSize, attrs: { width: "80%" } }), e("CSkeleton", { staticClass: "text-gray-600", class: t.textSize, attrs: { width: "40%" } }), e("CSkeleton", { staticClass: "text-center text-gray-500 text-xs inline-flex pt-0.5", class: t.dateSize, attrs: { hidden: "" } })] : t._e(), e("div", { staticClass: "max-w-md font-medium", class: [t.isFuture ? "text-gray-500" : "text-gray-700", t.titleSize] }, [t.template ? e("DynamicLink", { attrs: { template: t.template } }) : [t._v(t._s(t.title))]], 2), t.content ? e("div", { class: [t.isFuture ? "text-gray-400" : "text-gray-600", t.textSize] }, [e("div", { domProps: { innerHTML: t._s(t.content) } })]) : t._e(), e("div", { staticClass: "text-center text-gray-500 inline-flex pt-1", class: t.dateSize }, [e("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.date, expression: "date" }] }, [t._v(t._s(t.dayOfMonth) + " " + t._s(t.month))])])], 2)]);
112
+ var e = this, t = e._self._c;
113
+ return t("div", { staticClass: "flex flex-nowrap relative text-primary-500 cursor-default pb-5 ml-4 event before:content-[''] before:absolute before:w-px before:h-full before:bg-gray-300 before:-left-px before:top-4 last:before:hidden" }, [t("div", { staticClass: "m-0 h-[23px] relative", staticStyle: { "--bg": "#fff" } }, [t("div", { staticClass: "rounded-full absolute left-1/2 top-1/2 z-[1] w-7 h-7 flex items-center justify-center border-none bg-gray-100", class: e.iconClasses, staticStyle: { transform: "translate(-50%, calc(-50% + 8px))", "box-shadow": "0 0 0 2px var(--bg)" } }, [e.loading ? e._e() : t("BaseIcon", { attrs: { type: e.icon, size: "14" } })], 1)]), t("div", { staticClass: "ml-7 min-w-0 flex-grow flex flex-col pt-1" }, [e.loading ? [t("CSkeleton", { staticClass: "max-w-md text-gray-900 font-medium", class: e.titleSize, attrs: { width: "80%" } }), t("CSkeleton", { staticClass: "text-gray-600", class: e.textSize, attrs: { width: "40%" } }), t("CSkeleton", { staticClass: "text-center text-gray-500 text-xs inline-flex pt-0.5", class: e.dateSize, attrs: { hidden: "" } })] : e._e(), t("div", { staticClass: "max-w-md font-medium", class: [e.isFuture ? "text-gray-500" : "text-gray-700", e.titleSize] }, [e.template ? t("DynamicLink", { attrs: { template: e.template } }) : [e._v(e._s(e.title))]], 2), e.content ? t("div", { class: [e.isFuture ? "text-gray-400" : "text-gray-600", e.textSize] }, [t("div", { domProps: { innerHTML: e._s(e.content) } })]) : e._e(), t("div", { staticClass: "text-center text-gray-500 inline-flex pt-1", class: e.dateSize }, [t("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.date, expression: "date" }] }, [e._v(e._s(e.dayOfMonth) + " " + e._s(e.month))])])], 2)]);
115
114
  }, w = [], z = /* @__PURE__ */ p(
116
115
  S,
117
116
  D,
@@ -191,9 +190,9 @@ const I = z.exports, M = {
191
190
  code: "created",
192
191
  createdAt: (i = this.document) == null ? void 0 : i.createdAt
193
192
  })
194
- ], { events: t, scheduledFirstDelivery: e } = this.document || {};
195
- if ((e == null ? void 0 : e.status) === "active") {
196
- const r = e.deliveryTypes.join(
193
+ ], { events: e, scheduledFirstDelivery: t } = this.document || {};
194
+ if ((t == null ? void 0 : t.status) === "active") {
195
+ const r = t.deliveryTypes.join(
197
196
  ` ${this.$t("_common:and")} `
198
197
  );
199
198
  n.push({
@@ -201,18 +200,18 @@ const I = z.exports, M = {
201
200
  content: `${this.$t(
202
201
  "_common:via"
203
202
  )} ${r}, ${this.$formatDate(
204
- e.sendAt
203
+ t.sendAt
205
204
  )}`,
206
205
  isFuture: !0,
207
206
  icon: "calendar",
208
207
  color: "primary"
209
208
  });
210
209
  }
211
- return t == null || t.forEach((r) => n.push(this.formatEvent(r))), n;
210
+ return e == null || e.forEach((r) => n.push(this.formatEvent(r))), n;
212
211
  }
213
212
  },
214
213
  methods: {
215
- formatEvent({ code: n, data: t, createdAt: e, children: i = [] }) {
214
+ formatEvent({ code: n, data: e, createdAt: t, children: i = [] }) {
216
215
  const {
217
216
  client: r = {},
218
217
  clients: u,
@@ -221,18 +220,18 @@ const I = z.exports, M = {
221
220
  counter: _,
222
221
  sendSource: h,
223
222
  companyUserId: y
224
- } = t || {}, m = _ || i.length + 1, o = r.name;
223
+ } = e || {}, m = _ || i.length + 1, o = r.name;
225
224
  return {
226
225
  created: () => ({
227
226
  title: this.$t("_common:created"),
228
- createdAt: e,
227
+ createdAt: t,
229
228
  icon: "folder",
230
229
  color: "primary"
231
230
  }),
232
231
  viewed: () => ({
233
232
  title: this.$t("viewed"),
234
233
  content: (o ? this.$t("viewedContent", { name: o }) : "") + (m ? ` ${this.$tc("_common:times", { count: m })}` : ""),
235
- createdAt: e,
234
+ createdAt: t,
236
235
  icon: "eye",
237
236
  color: "primary"
238
237
  }),
@@ -241,7 +240,7 @@ const I = z.exports, M = {
241
240
  const s = {
242
241
  title: this.$t("_common:status.signed"),
243
242
  content: o ? this.$t("byName", { name: o }) : "",
244
- createdAt: e,
243
+ createdAt: t,
245
244
  icon: "check",
246
245
  color: "primary"
247
246
  };
@@ -250,7 +249,7 @@ const I = z.exports, M = {
250
249
  denied: () => ({
251
250
  title: this.$t("_common:status.denied"),
252
251
  content: o ? this.$t("byName", { name: o }) : "",
253
- createdAt: e,
252
+ createdAt: t,
254
253
  icon: "x",
255
254
  color: "primary"
256
255
  }),
@@ -266,7 +265,7 @@ const I = z.exports, M = {
266
265
  (a, l) => a ? `${a}<div>${l}</div>` : `${this.$t("_common:to")}: ${l}`.capitalize(),
267
266
  ""
268
267
  ),
269
- createdAt: e,
268
+ createdAt: t,
270
269
  icon: h === "reminder" ? "bell" : "send",
271
270
  color: "primary"
272
271
  };
@@ -275,7 +274,7 @@ const I = z.exports, M = {
275
274
  title: `${this.$t("statusChanged")} ${this.$t(
276
275
  `_common:status.${d}`
277
276
  )}`,
278
- createdAt: e,
277
+ createdAt: t,
279
278
  icon: d === "accepted" ? "check" : "x",
280
279
  color: d === "accepted" ? "green" : "red"
281
280
  } : null,
@@ -287,7 +286,7 @@ const I = z.exports, M = {
287
286
  `_common:status.${d}`
288
287
  )}`,
289
288
  content: s && this.$t("byName", { name: s }),
290
- createdAt: e,
289
+ createdAt: t,
291
290
  icon: "tool",
292
291
  color: "primary"
293
292
  };
@@ -297,35 +296,35 @@ const I = z.exports, M = {
297
296
  thing: this.$t("_common:email").capitalize()
298
297
  }),
299
298
  content: c ? `${this.$t("_common:to")}: ${c}`.capitalize() : "",
300
- createdAt: e,
299
+ createdAt: t,
301
300
  icon: "inbox",
302
301
  color: "primary"
303
302
  }),
304
303
  mailOpened: () => ({
305
304
  title: this.$t("mailOpened"),
306
305
  content: `${this.$t("mailOpenedContent", { email: c })} ${m ? this.$tc("_common:times", { count: m }) : ""}`,
307
- createdAt: e,
306
+ createdAt: t,
308
307
  icon: "email",
309
308
  color: "primary"
310
309
  }),
311
310
  mailDropped: () => ({
312
311
  title: this.$t("mailDropped"),
313
312
  content: c ? this.$t("toEmail", { email: c }) : null,
314
- createdAt: e,
313
+ createdAt: t,
315
314
  icon: "alert-triangle",
316
315
  color: "orange"
317
316
  }),
318
317
  smsDropped: () => ({
319
318
  title: this.$t("smsDropped"),
320
- content: t ? `${this.$t("_common:to")}: ${t}`.capitalize() : "",
321
- createdAt: e,
319
+ content: e ? `${this.$t("_common:to")}: ${e}`.capitalize() : "",
320
+ createdAt: t,
322
321
  icon: "alert-triangle",
323
322
  color: "orange"
324
323
  }),
325
324
  expired: () => ({
326
325
  title: this.$t("expired"),
327
326
  content: this.$t("expiredContent"),
328
- createdAt: e,
327
+ createdAt: t,
329
328
  icon: "x",
330
329
  color: "red"
331
330
  })
@@ -334,9 +333,9 @@ const I = z.exports, M = {
334
333
  }
335
334
  };
336
335
  var B = function() {
337
- var t = this, e = t._self._c;
338
- return e("div", [e("div", { staticClass: "border-b mb-4 pb-4" }, [e("div", { staticClass: "mb-2" }, [e("div", { staticClass: "text-xs text-gray-600", domProps: { textContent: t._s(t.$t("_common:document").capitalize()) } }), e("div", { staticClass: "font-semibold text-lg" }, [t._v(t._s(t.document.name))])]), e("div", { staticClass: "inline-flex items-center rounded-full bg-gray-100 border-gray-200 -ml-2" }, [e("div", { staticClass: "text-xs text-gray-600 mr-1 py-1 pl-2", domProps: { textContent: t._s(t.$t("_common:status.status")) } }), e("div", { staticClass: "text-xs font-semibold py-1 px-2 bg-gray-300 rounded-r-full", domProps: { textContent: t._s(t.$t(`_common:status.${t.document.status}`)) } })])]), t._l(t.events, function(i, r) {
339
- return e("EventItem", { key: r, attrs: { title: i.title, content: i.content, createdAt: i.createdAt, icon: i.icon, color: i.color, "is-future": i.isFuture, size: "large" } });
336
+ var e = this, t = e._self._c;
337
+ return t("div", [t("div", { staticClass: "border-b mb-4 pb-4" }, [t("div", { staticClass: "mb-2" }, [t("div", { staticClass: "text-xs text-gray-600", domProps: { textContent: e._s(e.$t("_common:document").capitalize()) } }), t("div", { staticClass: "font-semibold text-lg" }, [e._v(e._s(e.document.name))])]), t("div", { staticClass: "inline-flex items-center rounded-full bg-gray-100 border-gray-200 -ml-2" }, [t("div", { staticClass: "text-xs text-gray-600 mr-1 py-1 pl-2", domProps: { textContent: e._s(e.$t("_common:status.status")) } }), t("div", { staticClass: "text-xs font-semibold py-1 px-2 bg-gray-300 rounded-r-full", domProps: { textContent: e._s(e.$t(`_common:status.${e.document.status}`)) } })])]), e._l(e.events, function(i, r) {
338
+ return t("EventItem", { key: r, attrs: { title: i.title, content: i.content, createdAt: i.createdAt, icon: i.icon, color: i.color, "is-future": i.isFuture, size: "large" } });
340
339
  })], 2);
341
340
  }, O = [], E = /* @__PURE__ */ p(
342
341
  M,
@@ -361,8 +360,8 @@ const N = E.exports, T = {
361
360
  }
362
361
  };
363
362
  var q = function() {
364
- var t = this, e = t._self._c;
365
- return e("div", { staticClass: "p-8" }, [e("DocumentTimeline", { attrs: { id: t.id } })], 1);
363
+ var e = this, t = e._self._c;
364
+ return t("div", { staticClass: "p-8" }, [t("DocumentTimeline", { attrs: { id: e.id } })], 1);
366
365
  }, F = [], P = /* @__PURE__ */ p(
367
366
  T,
368
367
  q,
@@ -373,7 +372,7 @@ var q = function() {
373
372
  null,
374
373
  null
375
374
  );
376
- const A = P.exports;
375
+ const j = P.exports;
377
376
  export {
378
- A as default
377
+ j as default
379
378
  };