@alfadocs/ui-kit 1.90.2 → 1.91.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 (162) hide show
  1. package/dist/_chunks/{agenda-card-BDuvreCe.js → agenda-card-BhY342MA.js} +2 -2
  2. package/dist/_chunks/{agenda-tray-D-jvptdo.js → agenda-tray-BmxBGEci.js} +2 -2
  3. package/dist/_chunks/{alia-sidebar-CsTRAxC8.js → alia-sidebar-ovRX_oti.js} +3 -3
  4. package/dist/_chunks/{appointment-card-5JMWi9_f.js → appointment-card-Bstc1p7a.js} +2 -2
  5. package/dist/_chunks/{appointment-peek-39BwVMUf.js → appointment-peek-C0kKqnFk.js} +2 -2
  6. package/dist/_chunks/{appointment-timeline-1-Za2miy.js → appointment-timeline-rbt9AwHO.js} +2 -2
  7. package/dist/_chunks/{appointment-tray-Dwc8MSIQ.js → appointment-tray-6zd8RLIL.js} +2 -2
  8. package/dist/_chunks/{avatar-BPiPL7ND.js → avatar-a6042Ox2.js} +52 -52
  9. package/dist/_chunks/{balance-badge-cell-D9VhFp0L.js → balance-badge-cell-BtJvre1-.js} +2 -2
  10. package/dist/_chunks/booking-opt_h7Uc.js +4590 -0
  11. package/dist/_chunks/{calendar-ClB-jWH1.js → calendar-CmiMS4FJ.js} +2 -2
  12. package/dist/_chunks/{calendar-appointment-editor-dialog-CiAGAX2t.js → calendar-appointment-editor-dialog-sJKLoVJ2.js} +7 -7
  13. package/dist/_chunks/{care-plan-card-BYCPNDvA.js → care-plan-card-DD9rEWYN.js} +2 -2
  14. package/dist/_chunks/{care-plan-header-BzsAg6oY.js → care-plan-header-CXUJQt8Q.js} +2 -2
  15. package/dist/_chunks/{chat-message-CmFJdEre.js → chat-message-LRO_6Ee3.js} +2 -2
  16. package/dist/_chunks/{clinical-note-card-Caidqcwa.js → clinical-note-card-Cut2lNmu.js} +3 -3
  17. package/dist/_chunks/{contact-card-Czu60UvU.js → contact-card-ClvEDM9e.js} +2 -2
  18. package/dist/_chunks/{contact-profile-card-Da1vmJQI.js → contact-profile-card-CX45mZA3.js} +106 -95
  19. package/dist/_chunks/{dependent-selector-C4kOgO8b.js → dependent-selector-CyNi7M_f.js} +2 -2
  20. package/dist/_chunks/{entity-summary-BLxzSSXK.js → entity-summary-B_bOloqP.js} +3 -3
  21. package/dist/_chunks/error-page-B0fGNTRB.js +419 -0
  22. package/dist/_chunks/{languages-CZqBaPwI.js → languages-CGLX6Qpe.js} +3 -15
  23. package/dist/_chunks/link-DtCfnLnF.js +332 -0
  24. package/dist/_chunks/{link-cell-renderer-CnCgudvq.js → link-cell-renderer-BS3V4LA6.js} +2 -2
  25. package/dist/_chunks/{marketplace-app-shell-CmZx0Oam.js → marketplace-app-shell-CJQtx3sv.js} +2 -2
  26. package/dist/_chunks/{message-card-CvCnCssc.js → message-card-B6SduXJv.js} +2 -2
  27. package/dist/_chunks/{message-tray-IJYvy6Cf.js → message-tray-Cllf-v0G.js} +2 -2
  28. package/dist/_chunks/{nav-grid-Oc4aCPrg.js → nav-grid-D2xVcHTO.js} +2 -2
  29. package/dist/_chunks/{note-attachment-DIlIQ7JF.js → note-attachment-cnj2JRrg.js} +2 -2
  30. package/dist/_chunks/{note-timeline-KzL52MmB.js → note-timeline-BrjHBQfx.js} +2 -2
  31. package/dist/_chunks/{notes-panel-Dywo6R55.js → notes-panel-ib7I3aNf.js} +2 -2
  32. package/dist/_chunks/{operator-hero-6aAIQaFZ.js → operator-hero-C_5B-8Qp.js} +43 -41
  33. package/dist/_chunks/{patient-details-BUr7Oemx.js → patient-details-BjcUpD9S.js} +3 -3
  34. package/dist/_chunks/{patient-field-row-bJk8Q_qr.js → patient-field-row-B0tdiaWi.js} +2 -2
  35. package/dist/_chunks/{patient-summary-card-CCQZ8X37.js → patient-summary-card-Cvv6_Ugk.js} +4 -4
  36. package/dist/_chunks/{payment-request-card-MndSlVoK.js → payment-request-card-BfGauFY0.js} +2 -2
  37. package/dist/_chunks/{practice-profile-hero-qfrsFQI_.js → practice-profile-hero-ClzE-4CB.js} +76 -73
  38. package/dist/_chunks/{practice-results-DQuOfqej.js → practice-results-CQ_KvEXK.js} +517 -514
  39. package/dist/_chunks/{product-hub-panel-Blag8t8f.js → product-hub-panel-bHi7lkVD.js} +2 -2
  40. package/dist/_chunks/public-footer-IoRWoAMz.js +596 -0
  41. package/dist/_chunks/{signature-request-DjY-X62H.js → signature-request-DvhyrRpn.js} +3 -3
  42. package/dist/_chunks/{signed-out-frame-G-3ATOdu.js → signed-out-frame-CgRXOUzi.js} +2 -2
  43. package/dist/_chunks/{slot-grid-DrwynKeN.js → slot-grid-B-IAFX3C.js} +180 -169
  44. package/dist/_chunks/{timeline-wUuTDFY_.js → timeline-BcYHdP56.js} +2 -2
  45. package/dist/_chunks/{use-appointment-details-read-BytPq3Ux.js → use-appointment-details-read-D8vDg0sg.js} +5 -5
  46. package/dist/agent-catalog.json +2 -2
  47. package/dist/components/_shared/social-brand-icons.d.ts +29 -0
  48. package/dist/components/agenda-card/index.js +1 -1
  49. package/dist/components/agenda-tray/index.js +1 -1
  50. package/dist/components/appointment-card/index.js +2 -2
  51. package/dist/components/appointment-details-panel/index.js +1 -1
  52. package/dist/components/appointment-peek/index.js +1 -1
  53. package/dist/components/appointment-timeline/index.js +1 -1
  54. package/dist/components/avatar/avatar.d.ts +14 -0
  55. package/dist/components/avatar/index.js +1 -1
  56. package/dist/components/booking/booking-types.d.ts +26 -0
  57. package/dist/components/booking/index.js +1 -1
  58. package/dist/components/booking/slot-load-state.d.ts +11 -0
  59. package/dist/components/calendar/index.js +1 -1
  60. package/dist/components/care-plan-card/index.js +1 -1
  61. package/dist/components/care-plan-header/index.js +1 -1
  62. package/dist/components/chat-message/index.js +1 -1
  63. package/dist/components/clinical-note-card/index.js +1 -1
  64. package/dist/components/contact-card/index.js +1 -1
  65. package/dist/components/contact-profile-card/index.js +1 -1
  66. package/dist/components/data-table/index.js +1 -1
  67. package/dist/components/dependent-selector/index.js +1 -1
  68. package/dist/components/entity-summary/index.js +1 -1
  69. package/dist/components/link/index.js +1 -1
  70. package/dist/components/link/link.d.ts +10 -1
  71. package/dist/components/link/social-url.d.ts +71 -0
  72. package/dist/components/message-card/index.js +1 -1
  73. package/dist/components/message-tray/index.js +1 -1
  74. package/dist/components/nav-grid/index.js +1 -1
  75. package/dist/components/note-timeline/index.js +1 -1
  76. package/dist/components/notes-panel/index.js +1 -1
  77. package/dist/components/operator-hero/index.js +1 -1
  78. package/dist/components/operator-hero/operator-hero.d.ts +6 -0
  79. package/dist/components/patient-details/index.js +1 -1
  80. package/dist/components/patient-summary-card/index.js +1 -1
  81. package/dist/components/patient-table/index.js +1 -1
  82. package/dist/components/payment-card/index.js +1 -1
  83. package/dist/components/practice-profile-hero/index.js +1 -1
  84. package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +6 -0
  85. package/dist/components/practice-results/index.js +1 -1
  86. package/dist/components/practice-results/practice-results.d.ts +8 -2
  87. package/dist/components/product-hub-tray/index.js +1 -1
  88. package/dist/components/public-footer/index.js +1 -1
  89. package/dist/components/public-footer/public-footer.d.ts +13 -1
  90. package/dist/components/public-footer/socials.d.ts +6 -5
  91. package/dist/components/slot-grid/index.js +1 -1
  92. package/dist/components/slot-grid/slot-grid.d.ts +2 -0
  93. package/dist/components/timeline/index.js +1 -1
  94. package/dist/i18n/config.js +224 -96
  95. package/dist/i18n/locales/ar.d.ts +3 -0
  96. package/dist/i18n/locales/ar.js +4 -1
  97. package/dist/i18n/locales/de.d.ts +3 -0
  98. package/dist/i18n/locales/de.js +4 -1
  99. package/dist/i18n/locales/el.d.ts +3 -0
  100. package/dist/i18n/locales/el.js +4 -1
  101. package/dist/i18n/locales/en.d.ts +3 -0
  102. package/dist/i18n/locales/en.js +3 -0
  103. package/dist/i18n/locales/es.d.ts +3 -0
  104. package/dist/i18n/locales/es.js +4 -1
  105. package/dist/i18n/locales/fr.d.ts +3 -0
  106. package/dist/i18n/locales/fr.js +4 -1
  107. package/dist/i18n/locales/hi.d.ts +3 -0
  108. package/dist/i18n/locales/hi.js +4 -1
  109. package/dist/i18n/locales/it.d.ts +3 -0
  110. package/dist/i18n/locales/it.js +4 -1
  111. package/dist/i18n/locales/ja.d.ts +3 -0
  112. package/dist/i18n/locales/ja.js +4 -1
  113. package/dist/i18n/locales/nl.d.ts +3 -0
  114. package/dist/i18n/locales/nl.js +4 -1
  115. package/dist/i18n/locales/pl.d.ts +3 -0
  116. package/dist/i18n/locales/pl.js +4 -1
  117. package/dist/i18n/locales/pt.d.ts +3 -0
  118. package/dist/i18n/locales/pt.js +4 -1
  119. package/dist/i18n/locales/ro.d.ts +3 -0
  120. package/dist/i18n/locales/ro.js +4 -1
  121. package/dist/i18n/locales/ru.d.ts +3 -0
  122. package/dist/i18n/locales/ru.js +4 -1
  123. package/dist/i18n/locales/sq.d.ts +3 -0
  124. package/dist/i18n/locales/sq.js +4 -1
  125. package/dist/i18n/locales/sv.d.ts +3 -0
  126. package/dist/i18n/locales/sv.js +4 -1
  127. package/dist/i18n/locales/tr.d.ts +3 -0
  128. package/dist/i18n/locales/tr.js +4 -1
  129. package/dist/i18n/locales/zh.d.ts +3 -0
  130. package/dist/i18n/locales/zh.js +4 -1
  131. package/dist/index.js +42 -42
  132. package/dist/locales/ar.json +4 -1
  133. package/dist/locales/de.json +4 -1
  134. package/dist/locales/el.json +4 -1
  135. package/dist/locales/en.json +3 -0
  136. package/dist/locales/es.json +4 -1
  137. package/dist/locales/fr.json +4 -1
  138. package/dist/locales/hi.json +4 -1
  139. package/dist/locales/it.json +4 -1
  140. package/dist/locales/ja.json +4 -1
  141. package/dist/locales/nl.json +4 -1
  142. package/dist/locales/pl.json +4 -1
  143. package/dist/locales/pt.json +4 -1
  144. package/dist/locales/ro.json +4 -1
  145. package/dist/locales/ru.json +4 -1
  146. package/dist/locales/sq.json +4 -1
  147. package/dist/locales/sv.json +4 -1
  148. package/dist/locales/tr.json +4 -1
  149. package/dist/locales/zh.json +4 -1
  150. package/dist/patterns/alia-assistant/index.js +1 -1
  151. package/dist/patterns/calendar/index.js +1 -1
  152. package/dist/patterns/error-page/error-page-english.d.ts +71 -0
  153. package/dist/patterns/error-page/index.js +1 -1
  154. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  155. package/dist/patterns/signature-request/index.js +1 -1
  156. package/dist/patterns/signed-out-frame/index.js +1 -1
  157. package/dist/tokens.css +1 -1
  158. package/package.json +1 -1
  159. package/dist/_chunks/booking-CcE_oviI.js +0 -4373
  160. package/dist/_chunks/error-page-Bhai-spN.js +0 -344
  161. package/dist/_chunks/link-N5_YpLtm.js +0 -138
  162. package/dist/_chunks/public-footer-CXOrdAaS.js +0 -568
@@ -1,8 +1,7 @@
1
- import u from "i18next";
2
- import { default as D } from "i18next";
3
- import { initReactI18next as I } from "react-i18next";
4
- import { enUi as m } from "./locales/en.js";
5
- const E = [
1
+ import d from "i18next";
2
+ import { default as J } from "i18next";
3
+ import { initReactI18next as x } from "react-i18next";
4
+ const W = [
6
5
  "en",
7
6
  "it",
8
7
  "de",
@@ -22,18 +21,19 @@ const E = [
22
21
  "zh",
23
22
  "hi"
24
23
  ];
25
- function O(e, t, i = u) {
26
- i.addResourceBundle(
24
+ function F(e, r, t = d) {
25
+ t.addResourceBundle(
27
26
  e,
28
27
  "ui",
29
- t,
28
+ r,
30
29
  /* deep */
31
30
  !0,
32
31
  /* overwrite */
33
32
  !1
34
33
  );
35
34
  }
36
- const L = !1, U = {
35
+ const A = !1, L = {
36
+ en: () => import("./locales/en.js").then((e) => e.enUi),
37
37
  it: () => import("./locales/it.js").then((e) => e.itUi),
38
38
  de: () => import("./locales/de.js").then((e) => e.deUi),
39
39
  ar: () => import("./locales/ar.js").then((e) => e.arUi),
@@ -51,135 +51,263 @@ const L = !1, U = {
51
51
  ja: () => import("./locales/ja.js").then((e) => e.jaUi),
52
52
  zh: () => import("./locales/zh.js").then((e) => e.zhUi),
53
53
  hi: () => import("./locales/hi.js").then((e) => e.hiUi)
54
- }, R = /* @__PURE__ */ new WeakMap();
55
- function v(e) {
54
+ }, q = /* @__PURE__ */ new WeakMap();
55
+ function I(e) {
56
56
  if (!e) return;
57
- const t = e.toLowerCase().replaceAll("_", "-").split("-")[0];
58
- return t === "en" || Object.hasOwn(U, t) ? t : void 0;
59
- }
60
- function y(e) {
61
- e.addResourceBundle("en", "ui", m, !0, !1);
57
+ const r = e.toLowerCase().replaceAll("_", "-").split("-")[0];
58
+ return Object.hasOwn(L, r) ? r : void 0;
62
59
  }
63
60
  function p(e) {
64
- const t = R.get(e);
65
- if (t) return t;
66
- const i = {
61
+ const r = q.get(e);
62
+ if (r) return r;
63
+ const t = {
67
64
  languageRequest: 0,
65
+ changing: 0,
68
66
  completed: /* @__PURE__ */ new Map(),
69
- pending: /* @__PURE__ */ new Map()
67
+ failed: /* @__PURE__ */ new Set(),
68
+ pending: /* @__PURE__ */ new Map(),
69
+ waiters: /* @__PURE__ */ new Set(),
70
+ requested: /* @__PURE__ */ new Set()
70
71
  };
71
- R.set(e, i);
72
- const a = e.changeLanguage.bind(e);
73
- return e.changeLanguage = (r, n) => {
74
- const g = ++i.languageRequest;
75
- if (!r) return a(r, n);
76
- const d = e.services.languageUtils, l = v(r), o = e.getDataByLanguage(r), B = l && l !== r && w(r, e).includes(l) && o && Object.keys(o).some(
77
- (s) => s !== "ui" || i.completed.get(r) !== e.getResourceBundle(r, "ui")
78
- ), h = e.options.supportedLngs && !B ? d.getBestMatchFromCodes([r]) : r;
79
- if (!h) {
80
- const s = e.t.bind(e);
81
- return n == null || n(null, s), Promise.resolve(s);
72
+ q.set(e, t), N(e, t);
73
+ const i = e.changeLanguage.bind(e);
74
+ return e.changeLanguage = (n, o) => {
75
+ const u = ++t.languageRequest;
76
+ if (!n) return i(n, o);
77
+ const s = e.services.languageUtils, a = I(n), h = e.getDataByLanguage(n), l = a && a !== n && B(n, e).includes(a) && h && Object.keys(h).some(
78
+ (f) => f !== "ui" || t.completed.get(n) !== e.getResourceBundle(n, "ui")
79
+ ), g = e.options.supportedLngs && !l ? s.getBestMatchFromCodes([n]) : n;
80
+ if (!g) {
81
+ const f = e.t.bind(e);
82
+ return o == null || o(null, f), Promise.resolve(f);
82
83
  }
83
- return f(h, e).then(
84
+ return t.changing++, R(g, e).then(
84
85
  () => {
85
- if (g !== i.languageRequest) {
86
- const s = e.t.bind(e);
87
- return n == null || n(null, s), s;
86
+ if (u !== t.languageRequest) {
87
+ const f = e.t.bind(e);
88
+ return o == null || o(null, f), f;
88
89
  }
89
- return a(h, n);
90
+ return i(g, o);
90
91
  },
91
- (s) => {
92
- throw n == null || n(s, e.t.bind(e)), s;
92
+ (f) => {
93
+ throw o == null || o(f, e.t.bind(e)), f;
93
94
  }
94
- );
95
+ ).finally(() => {
96
+ t.changing--;
97
+ });
95
98
  }, e.on("initialized", () => {
96
- y(e), f(e.language, e).catch(
97
- (r) => {
98
- }
99
- );
100
- }), i;
99
+ z(e).catch((n) => {
100
+ }), U(t);
101
+ }), e.on("languageChanged", () => U(t)), t;
101
102
  }
102
- function w(e, t) {
103
- return t.services.languageUtils.toResolveHierarchy(e);
103
+ function N(e, r) {
104
+ const t = e.hasLoadedNamespace.bind(e);
105
+ e.hasLoadedNamespace = (u, s) => {
106
+ const a = t(u, s);
107
+ return c(u) && e.isInitialized && b(
108
+ e,
109
+ r,
110
+ typeof (s == null ? void 0 : s.lng) == "string" ? s.lng : e.language
111
+ ), a;
112
+ };
113
+ const i = e.t.bind(e);
114
+ e.t = ((...u) => {
115
+ const s = i(...u);
116
+ return typeof s == "string" && M(e, r, u) ? "" : s;
117
+ });
118
+ const n = e.loadNamespaces.bind(e);
119
+ e.loadNamespaces = (u, s) => c(u) ? O(e, r).then(() => n(u, s)) : n(u, s);
120
+ const o = e.loadLanguages.bind(e);
121
+ e.loadLanguages = (u, s) => {
122
+ const a = (Array.isArray(u) ? u : [u]).map((l) => m(l, e)).filter((l) => !!l), h = [].concat(e.options.ns ?? []);
123
+ return !e.isInitialized || a.length === 0 || !h.includes("ui") ? o(u, s) : Promise.all(
124
+ a.map((l) => y(l, e).catch(() => !1))
125
+ ).then(() => o(u, s));
126
+ };
104
127
  }
105
- async function f(e, t) {
106
- await Promise.all(
107
- [.../* @__PURE__ */ new Set([e, ...w(e, t)])].filter(Boolean).map((i) => c(i, t))
128
+ function M(e, r, t) {
129
+ if (!e.isInitialized) return !1;
130
+ const i = [t[1], t[2]].find(
131
+ (a) => typeof a == "object" && a !== null
132
+ ), n = Array.isArray(t[0]) ? t[0][0] : t[0], u = (typeof n == "string" && n.includes(":") ? n.split(":")[0] : "") || (i == null ? void 0 : i.ns) || e.options.defaultNS;
133
+ if (!u || !c(u)) return !1;
134
+ const s = typeof (i == null ? void 0 : i.lng) == "string" ? i.lng : e.language;
135
+ return w(e, s) ? !1 : (b(e, r, s), !0);
136
+ }
137
+ function b(e, r, t) {
138
+ if (!t || w(e, t)) return;
139
+ const i = m(t, e);
140
+ i && (t === e.language && r.changing > 0 || (r.requested.add(i), y(i, e).catch((n) => {
141
+ })));
142
+ }
143
+ const c = (e) => typeof e == "string" ? e === "ui" : e.includes("ui");
144
+ function w(e, r) {
145
+ if (!r) return !0;
146
+ const t = m(r, e);
147
+ if (!t) return !0;
148
+ const i = p(e);
149
+ return S(t, e).every(
150
+ (n) => v(n, e, i) || i.failed.has(n) || j(n, e)
108
151
  );
109
152
  }
110
- async function c(e, t = u) {
111
- if (!t.isInitialized)
153
+ function j(e, r) {
154
+ const t = r.getResourceBundle(e, "ui");
155
+ return !!(t != null && t.common && t.errorPage);
156
+ }
157
+ function O(e, r) {
158
+ return e.isInitialized && w(e, e.language) ? Promise.resolve() : new Promise((t) => {
159
+ const i = () => {
160
+ e.isInitialized && w(e, e.language) && (r.waiters.delete(i), t());
161
+ };
162
+ r.waiters.add(i), e.isInitialized && r.changing === 0 && z(e).catch((n) => {
163
+ });
164
+ });
165
+ }
166
+ function U(e) {
167
+ for (const r of [...e.waiters]) r();
168
+ }
169
+ function B(e, r) {
170
+ return r.services.languageUtils.toResolveHierarchy(e);
171
+ }
172
+ async function R(e, r) {
173
+ const t = m(e, r);
174
+ return t ? y(t, r) : !1;
175
+ }
176
+ function m(e, r) {
177
+ return [.../* @__PURE__ */ new Set([e, ...B(e, r)])].filter(Boolean).find((t) => I(t));
178
+ }
179
+ function S(e, r) {
180
+ const t = I(e);
181
+ return e !== t && !B(e, r).includes(t) ? [t, e] : [t];
182
+ }
183
+ function v(e, r, t) {
184
+ const i = r.getResourceBundle(e, "ui");
185
+ return !!i && t.completed.get(e) === i;
186
+ }
187
+ async function z(e) {
188
+ p(e).changing > 0 || await R(e.language, e);
189
+ }
190
+ async function P(e, r = d) {
191
+ await y(e, r);
192
+ }
193
+ async function y(e, r) {
194
+ if (!r.isInitialized)
112
195
  throw new Error(
113
196
  "Initialise the host i18next instance before loading UI locales."
114
197
  );
115
- const i = v(e);
116
- if (!i) return;
117
- const a = p(t), r = e !== i && !w(e, t).includes(i) ? [i, e] : [i];
118
- if (r.every((l) => {
119
- const o = t.getResourceBundle(l, "ui");
120
- return o && a.completed.get(l) === o;
121
- }))
122
- return;
123
- const n = r.join(":"), g = a.pending.get(n);
124
- if (g) return g;
125
- const d = (async () => {
126
- const l = i === "en" ? m : await U[i]();
127
- t.addResourceBundle(i, "ui", l, !0, !1);
128
- for (const o of r)
129
- o !== i && t.addResourceBundle(
130
- o,
131
- "ui",
132
- t.getResourceBundle(i, "ui"),
133
- !0,
134
- !1
135
- ), a.completed.set(o, t.getResourceBundle(o, "ui"));
198
+ const t = I(e);
199
+ if (!t) return !1;
200
+ const i = p(r), n = S(e, r);
201
+ if (n.every((a) => v(a, r, i)))
202
+ return !1;
203
+ const o = n.join(":"), u = i.pending.get(o);
204
+ if (u) return u.then(() => !1);
205
+ const s = (async () => {
206
+ try {
207
+ const l = await L[t]();
208
+ r.addResourceBundle(t, "ui", l, !0, !1);
209
+ for (const g of n)
210
+ g !== t && r.addResourceBundle(
211
+ g,
212
+ "ui",
213
+ r.getResourceBundle(t, "ui"),
214
+ !0,
215
+ !1
216
+ ), i.completed.set(g, r.getResourceBundle(g, "ui"));
217
+ } catch (l) {
218
+ throw await E(t, n, r, i), l;
219
+ }
220
+ const a = n.some((l) => i.failed.delete(l)), h = i.requested.delete(t);
221
+ U(i), (a || h || m(r.language, r) === t) && r.emit("languageChanged", r.language);
136
222
  })();
137
- a.pending.set(n, d);
223
+ i.pending.set(o, s);
224
+ try {
225
+ await s;
226
+ } finally {
227
+ i.pending.delete(o);
228
+ }
229
+ return !0;
230
+ }
231
+ async function E(e, r, t, i) {
232
+ const n = i.waiters.size > 0 || i.requested.has(e) || m(t.language, t) === e;
233
+ if (i.requested.delete(e), !n) {
234
+ for (const o of r) i.failed.add(o);
235
+ return;
236
+ }
138
237
  try {
139
- await d;
238
+ e !== "en" && !C(t, i).includes("en") && await y("en", t).catch(() => !1);
239
+ const o = C(t, i);
240
+ o.length > 0 ? H(t, o[0]) : K(t);
140
241
  } finally {
141
- a.pending.delete(n);
242
+ for (const o of r) i.failed.add(o);
243
+ U(i), t.isInitialized && t.emit("languageChanged", t.language);
244
+ }
245
+ }
246
+ function C(e, r) {
247
+ return Object.keys(L).filter(
248
+ (t) => v(t, e, r) || j(t, e)
249
+ );
250
+ }
251
+ function H(e, r) {
252
+ const t = e.options.fallbackLng, i = (n) => typeof n == "string" ? [n] : Array.isArray(n) ? n : [];
253
+ if (!(typeof t == "function" || t === !1)) {
254
+ if (t && typeof t == "object" && !Array.isArray(t)) {
255
+ const n = t;
256
+ i(n.default).includes(r) || (n.default = [...i(n.default), r]);
257
+ return;
258
+ }
259
+ i(t).includes(r) || (e.options.fallbackLng = [...i(t), r]);
142
260
  }
143
261
  }
144
- async function q(e = u) {
262
+ function K(e) {
263
+ e.options.parseMissingKeyHandler || (e.options.parseMissingKeyHandler = (r, t, i) => {
264
+ if (t !== void 0) return t;
265
+ if (!(i != null && i.ns) || !c(i.ns)) return r;
266
+ const o = (r.split(/[.:]/).at(-1) ?? r).replace(/([a-z0-9])([A-Z])/g, "$1 $2").replaceAll("_", " ").toLowerCase();
267
+ return o.charAt(0).toUpperCase() + o.slice(1);
268
+ });
269
+ }
270
+ async function T(e = d) {
145
271
  if (!e.isInitialized)
146
272
  throw new Error(
147
273
  "Initialise the host i18next instance before setting up UI translations."
148
274
  );
149
- p(e), await c("en", e), await f(e.language, e);
275
+ p(e), await R(e.language, e);
150
276
  }
151
- async function C(e, t = u) {
152
- p(t), await t.changeLanguage(e);
277
+ async function $(e, r = d) {
278
+ p(r), await r.changeLanguage(e);
153
279
  }
154
- async function S(e = u) {
280
+ async function V(e = d) {
155
281
  await Promise.all(
156
- ["en", ...Object.keys(U)].map((t) => c(t, e))
282
+ Object.keys(L).map((r) => P(r, e))
157
283
  );
158
284
  }
159
- u.isInitialized || u.use(I).init({
285
+ d.isInitialized || d.use(x).init({
160
286
  lng: "en",
161
287
  fallbackLng: "en",
162
288
  ns: ["ui"],
163
289
  defaultNS: "ui",
164
290
  partialBundledLanguages: !0,
165
- debug: L,
166
- saveMissing: L,
291
+ debug: A,
292
+ saveMissing: A,
167
293
  missingKeyHandler: void 0,
168
294
  interpolation: { escapeValue: !1 },
169
- resources: { en: { ui: m } }
295
+ // English arrives through the lazy loader below, like every other locale.
296
+ resources: {}
170
297
  });
171
- y(u);
172
- p(u);
173
- q().catch((e) => {
298
+ p(d);
299
+ Promise.resolve().then(
300
+ () => d.isInitialized ? z(d) : void 0
301
+ ).catch((e) => {
174
302
  });
175
303
  export {
176
- E as LOCALES_WITH_BUNDLES,
177
- D as default,
178
- q as initialiseUiI18n,
179
- S as loadAllLocales,
180
- c as loadLocale,
181
- O as registerUiBundle,
182
- v as resolveUiLanguage,
183
- C as setLocale
304
+ W as LOCALES_WITH_BUNDLES,
305
+ J as default,
306
+ T as initialiseUiI18n,
307
+ V as loadAllLocales,
308
+ P as loadLocale,
309
+ F as registerUiBundle,
310
+ I as resolveUiLanguage,
311
+ $ as setLocale
184
312
  };
185
313
  //# sourceMappingURL=config.js.map
@@ -2427,6 +2427,9 @@ export declare const arUi: {
2427
2427
  readonly stay: "ابقَ في هذه الصفحة";
2428
2428
  readonly stayed: "انتقل إلى منطقة المرضى عندما تكون مستعدًا للتأكيد.";
2429
2429
  };
2430
+ readonly slotsLoadError: "تعذّر تحميل الأوقات المتاحة. يُرجى المحاولة مرة أخرى.";
2431
+ readonly retrySlots: "حاول مرة أخرى";
2432
+ readonly emptySlotsDescription: "جرّب مقدم خدمة آخر أو تواصل مع العيادة.";
2430
2433
  };
2431
2434
  readonly patientSearch: {
2432
2435
  readonly regionLabel: "ابحث عن موعد";
@@ -2419,7 +2419,10 @@ const e = {
2419
2419
  goNow: "انتقل الآن",
2420
2420
  stay: "ابقَ في هذه الصفحة",
2421
2421
  stayed: "انتقل إلى منطقة المرضى عندما تكون مستعدًا للتأكيد."
2422
- }
2422
+ },
2423
+ slotsLoadError: "تعذّر تحميل الأوقات المتاحة. يُرجى المحاولة مرة أخرى.",
2424
+ retrySlots: "حاول مرة أخرى",
2425
+ emptySlotsDescription: "جرّب مقدم خدمة آخر أو تواصل مع العيادة."
2423
2426
  },
2424
2427
  patientSearch: {
2425
2428
  regionLabel: "ابحث عن موعد",
@@ -2415,6 +2415,9 @@ export declare const deUi: {
2415
2415
  readonly stay: "Auf dieser Seite bleiben";
2416
2416
  readonly stayed: "Gehen Sie zum Patientenbereich, wenn Sie bereit zur Bestätigung sind.";
2417
2417
  };
2418
+ readonly slotsLoadError: "Die verfügbaren Termine konnten nicht geladen werden. Bitte versuchen Sie es erneut.";
2419
+ readonly retrySlots: "Erneut versuchen";
2420
+ readonly emptySlotsDescription: "Wählen Sie eine andere Fachperson oder kontaktieren Sie die Praxis.";
2418
2421
  };
2419
2422
  readonly patientSearch: {
2420
2423
  readonly regionLabel: "Termin suchen";
@@ -2407,7 +2407,10 @@ const e = {
2407
2407
  goNow: "Jetzt öffnen",
2408
2408
  stay: "Auf dieser Seite bleiben",
2409
2409
  stayed: "Gehen Sie zum Patientenbereich, wenn Sie bereit zur Bestätigung sind."
2410
- }
2410
+ },
2411
+ slotsLoadError: "Die verfügbaren Termine konnten nicht geladen werden. Bitte versuchen Sie es erneut.",
2412
+ retrySlots: "Erneut versuchen",
2413
+ emptySlotsDescription: "Wählen Sie eine andere Fachperson oder kontaktieren Sie die Praxis."
2411
2414
  },
2412
2415
  patientSearch: {
2413
2416
  regionLabel: "Termin suchen",
@@ -2412,6 +2412,9 @@ export declare const elUi: {
2412
2412
  readonly stay: "Παραμονή σε αυτή τη σελίδα";
2413
2413
  readonly stayed: "Μεταβείτε στην περιοχή ασθενών όταν είστε έτοιμοι να επιβεβαιώσετε.";
2414
2414
  };
2415
+ readonly slotsLoadError: "Δεν ήταν δυνατή η φόρτωση των διαθέσιμων ωρών. Δοκιμάστε ξανά.";
2416
+ readonly retrySlots: "Δοκιμάστε ξανά";
2417
+ readonly emptySlotsDescription: "Επιλέξτε άλλον επαγγελματία ή επικοινωνήστε με το ιατρείο.";
2415
2418
  };
2416
2419
  readonly patientSearch: {
2417
2420
  readonly regionLabel: "Αναζήτηση ραντεβού";
@@ -2407,7 +2407,10 @@ const e = {
2407
2407
  goNow: "Μετάβαση τώρα",
2408
2408
  stay: "Παραμονή σε αυτή τη σελίδα",
2409
2409
  stayed: "Μεταβείτε στην περιοχή ασθενών όταν είστε έτοιμοι να επιβεβαιώσετε."
2410
- }
2410
+ },
2411
+ slotsLoadError: "Δεν ήταν δυνατή η φόρτωση των διαθέσιμων ωρών. Δοκιμάστε ξανά.",
2412
+ retrySlots: "Δοκιμάστε ξανά",
2413
+ emptySlotsDescription: "Επιλέξτε άλλον επαγγελματία ή επικοινωνήστε με το ιατρείο."
2411
2414
  },
2412
2415
  patientSearch: {
2413
2416
  regionLabel: "Αναζήτηση ραντεβού",
@@ -2373,6 +2373,9 @@ export declare const enUi: {
2373
2373
  };
2374
2374
  readonly dateTimeSummary: "{{date}} at {{time}}";
2375
2375
  readonly noSlotsForDate: "No times available on this day";
2376
+ readonly slotsLoadError: "We couldn't load the available times. Please try again.";
2377
+ readonly retrySlots: "Try again";
2378
+ readonly emptySlotsDescription: "Try another professional or contact the practice.";
2376
2379
  readonly slotsAvailable_one: "{{count}} time available";
2377
2380
  readonly slotsAvailable_zero: "{{count}} times available";
2378
2381
  readonly slotsAvailable_two: "{{count}} times available";
@@ -2353,6 +2353,9 @@ const e = {
2353
2353
  },
2354
2354
  dateTimeSummary: "{{date}} at {{time}}",
2355
2355
  noSlotsForDate: "No times available on this day",
2356
+ slotsLoadError: "We couldn't load the available times. Please try again.",
2357
+ retrySlots: "Try again",
2358
+ emptySlotsDescription: "Try another professional or contact the practice.",
2356
2359
  slotsAvailable_one: "{{count}} time available",
2357
2360
  slotsAvailable_zero: "{{count}} times available",
2358
2361
  slotsAvailable_two: "{{count}} times available",
@@ -2415,6 +2415,9 @@ export declare const esUi: {
2415
2415
  readonly stay: "Quedarme en esta página";
2416
2416
  readonly stayed: "Vaya al área de pacientes cuando quiera confirmar.";
2417
2417
  };
2418
+ readonly slotsLoadError: "No hemos podido cargar los horarios disponibles. Inténtelo de nuevo.";
2419
+ readonly retrySlots: "Reintentar";
2420
+ readonly emptySlotsDescription: "Pruebe con otro profesional o contacte con la clínica.";
2418
2421
  };
2419
2422
  readonly patientSearch: {
2420
2423
  readonly regionLabel: "Buscar cita";
@@ -2410,7 +2410,10 @@ const e = {
2410
2410
  goNow: "Ir ahora",
2411
2411
  stay: "Quedarme en esta página",
2412
2412
  stayed: "Vaya al área de pacientes cuando quiera confirmar."
2413
- }
2413
+ },
2414
+ slotsLoadError: "No hemos podido cargar los horarios disponibles. Inténtelo de nuevo.",
2415
+ retrySlots: "Reintentar",
2416
+ emptySlotsDescription: "Pruebe con otro profesional o contacte con la clínica."
2414
2417
  },
2415
2418
  patientSearch: {
2416
2419
  regionLabel: "Buscar cita",
@@ -2415,6 +2415,9 @@ export declare const frUi: {
2415
2415
  readonly stay: "Rester sur cette page";
2416
2416
  readonly stayed: "Accédez à l'espace patient quand vous serez prêt à confirmer.";
2417
2417
  };
2418
+ readonly slotsLoadError: "Nous n’avons pas pu charger les créneaux disponibles. Veuillez réessayer.";
2419
+ readonly retrySlots: "Réessayer";
2420
+ readonly emptySlotsDescription: "Essayez un autre praticien ou contactez le cabinet.";
2418
2421
  };
2419
2422
  readonly patientSearch: {
2420
2423
  readonly regionLabel: "Rechercher un rendez-vous";
@@ -2410,7 +2410,10 @@ const e = {
2410
2410
  goNow: "Y aller maintenant",
2411
2411
  stay: "Rester sur cette page",
2412
2412
  stayed: "Accédez à l'espace patient quand vous serez prêt à confirmer."
2413
- }
2413
+ },
2414
+ slotsLoadError: "Nous n’avons pas pu charger les créneaux disponibles. Veuillez réessayer.",
2415
+ retrySlots: "Réessayer",
2416
+ emptySlotsDescription: "Essayez un autre praticien ou contactez le cabinet."
2414
2417
  },
2415
2418
  patientSearch: {
2416
2419
  regionLabel: "Rechercher un rendez-vous",
@@ -2412,6 +2412,9 @@ export declare const hiUi: {
2412
2412
  readonly stay: "इसी पेज पर रहें";
2413
2413
  readonly stayed: "पुष्टि के लिए तैयार होने पर रोगी क्षेत्र में जाएँ।";
2414
2414
  };
2415
+ readonly slotsLoadError: "उपलब्ध समय लोड नहीं हो सके। कृपया फिर से कोशिश करें।";
2416
+ readonly retrySlots: "फिर से कोशिश करें";
2417
+ readonly emptySlotsDescription: "किसी दूसरे स्वास्थ्य पेशेवर को चुनें या क्लिनिक से संपर्क करें।";
2415
2418
  };
2416
2419
  readonly patientSearch: {
2417
2420
  readonly regionLabel: "अपॉइंटमेंट खोजें";
@@ -2407,7 +2407,10 @@ const e = {
2407
2407
  goNow: "अभी जाएँ",
2408
2408
  stay: "इसी पेज पर रहें",
2409
2409
  stayed: "पुष्टि के लिए तैयार होने पर रोगी क्षेत्र में जाएँ।"
2410
- }
2410
+ },
2411
+ slotsLoadError: "उपलब्ध समय लोड नहीं हो सके। कृपया फिर से कोशिश करें।",
2412
+ retrySlots: "फिर से कोशिश करें",
2413
+ emptySlotsDescription: "किसी दूसरे स्वास्थ्य पेशेवर को चुनें या क्लिनिक से संपर्क करें।"
2411
2414
  },
2412
2415
  patientSearch: {
2413
2416
  regionLabel: "अपॉइंटमेंट खोजें",
@@ -2412,6 +2412,9 @@ export declare const itUi: {
2412
2412
  readonly stay: "Resta su questa pagina";
2413
2413
  readonly stayed: "Puoi andare all'area pazienti quando vuoi, per confermare.";
2414
2414
  };
2415
+ readonly slotsLoadError: "Non siamo riusciti a caricare gli orari disponibili. Riprova.";
2416
+ readonly retrySlots: "Riprova";
2417
+ readonly emptySlotsDescription: "Prova con un altro professionista o contatta lo studio.";
2415
2418
  };
2416
2419
  readonly patientSearch: {
2417
2420
  readonly regionLabel: "Cerca un appuntamento";
@@ -2391,7 +2391,10 @@ const e = {
2391
2391
  goNow: "Vai ora",
2392
2392
  stay: "Resta su questa pagina",
2393
2393
  stayed: "Puoi andare all'area pazienti quando vuoi, per confermare."
2394
- }
2394
+ },
2395
+ slotsLoadError: "Non siamo riusciti a caricare gli orari disponibili. Riprova.",
2396
+ retrySlots: "Riprova",
2397
+ emptySlotsDescription: "Prova con un altro professionista o contatta lo studio."
2395
2398
  },
2396
2399
  patientSearch: {
2397
2400
  regionLabel: "Cerca un appuntamento",
@@ -2412,6 +2412,9 @@ export declare const jaUi: {
2412
2412
  readonly stay: "このページにとどまる";
2413
2413
  readonly stayed: "確認の準備ができたら、患者ページへお進みください。";
2414
2414
  };
2415
+ readonly slotsLoadError: "空き時間を読み込めませんでした。もう一度お試しください。";
2416
+ readonly retrySlots: "もう一度試す";
2417
+ readonly emptySlotsDescription: "別の担当者を選ぶか、医院にお問い合わせください。";
2415
2418
  };
2416
2419
  readonly patientSearch: {
2417
2420
  readonly regionLabel: "予約を検索";
@@ -2407,7 +2407,10 @@ const e = {
2407
2407
  goNow: "今すぐ移動",
2408
2408
  stay: "このページにとどまる",
2409
2409
  stayed: "確認の準備ができたら、患者ページへお進みください。"
2410
- }
2410
+ },
2411
+ slotsLoadError: "空き時間を読み込めませんでした。もう一度お試しください。",
2412
+ retrySlots: "もう一度試す",
2413
+ emptySlotsDescription: "別の担当者を選ぶか、医院にお問い合わせください。"
2411
2414
  },
2412
2415
  patientSearch: {
2413
2416
  regionLabel: "予約を検索",
@@ -2412,6 +2412,9 @@ export declare const nlUi: {
2412
2412
  readonly stay: "Op deze pagina blijven";
2413
2413
  readonly stayed: "Ga naar het patiëntenportaal wanneer u klaar bent om te bevestigen.";
2414
2414
  };
2415
+ readonly slotsLoadError: "We konden de beschikbare tijden niet laden. Probeer het opnieuw.";
2416
+ readonly retrySlots: "Opnieuw proberen";
2417
+ readonly emptySlotsDescription: "Kies een andere behandelaar of neem contact op met de praktijk.";
2415
2418
  };
2416
2419
  readonly patientSearch: {
2417
2420
  readonly regionLabel: "Afspraak zoeken";
@@ -2407,7 +2407,10 @@ const e = {
2407
2407
  goNow: "Nu doorgaan",
2408
2408
  stay: "Op deze pagina blijven",
2409
2409
  stayed: "Ga naar het patiëntenportaal wanneer u klaar bent om te bevestigen."
2410
- }
2410
+ },
2411
+ slotsLoadError: "We konden de beschikbare tijden niet laden. Probeer het opnieuw.",
2412
+ retrySlots: "Opnieuw proberen",
2413
+ emptySlotsDescription: "Kies een andere behandelaar of neem contact op met de praktijk."
2411
2414
  },
2412
2415
  patientSearch: {
2413
2416
  regionLabel: "Afspraak zoeken",
@@ -2418,6 +2418,9 @@ export declare const plUi: {
2418
2418
  readonly stay: "Zostań na tej stronie";
2419
2419
  readonly stayed: "Przejdź do strefy pacjenta, gdy zechcesz potwierdzić.";
2420
2420
  };
2421
+ readonly slotsLoadError: "Nie udało się wczytać dostępnych terminów. Spróbuj ponownie.";
2422
+ readonly retrySlots: "Spróbuj ponownie";
2423
+ readonly emptySlotsDescription: "Wybierz innego specjalistę lub skontaktuj się z gabinetem.";
2421
2424
  };
2422
2425
  readonly patientSearch: {
2423
2426
  readonly regionLabel: "Wyszukaj wizytę";