@wix/form-elements 1.108.0 → 1.110.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 (107) hide show
  1. package/dist/component/{appointment-rac-ZAp8oWbK.js → appointment-rac-CfPs6AsU.js} +60 -60
  2. package/dist/component/{bookings-address-rac-x-Az7vHf.js → bookings-address-rac-XkgsBu8i.js} +1 -1
  3. package/dist/component/{bookings-email-rac-MoF_CaqB.js → bookings-email-rac-CyESeQLD.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CWh3Rb0M.js → bookings-first-name-rac-CFY5Qwk9.js} +1 -1
  5. package/dist/component/{bookings-header-rac-BVTiXUWk.js → bookings-header-rac-lRsebspV.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-kXRRlyHl.js → bookings-last-name-rac-B7J2K4oK.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-C4Zr6kXE.js → bookings-login-bar-rac-BD97U76_.js} +3 -3
  8. package/dist/component/{bookings-phone-rac-2rz1m_xi.js → bookings-phone-rac-CpgDCLTp.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-BEjGypQw.js → bookings-rich-text-rac-DQUQMN3s.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-DwEQLIaz.js → checkbox-field-rac-CcOW4yol.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-BsOww_QB.js → checkbox-group-field-headless-DiBxnwOj.js} +8 -8
  12. package/dist/component/{checkbox-group-field-rac-DTcZcVS6.js → checkbox-group-field-rac-BCzS44NM.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-DQsML-pW.js → checkbox-group-rac-C2oHVikX.js} +1 -1
  14. package/dist/component/{checkbox-rac-irEBBOxP.js → checkbox-rac-DPhswfJ9.js} +1 -1
  15. package/dist/component/{contacts-address-rac-B5bSAYrm.js → contacts-address-rac-Cjqot4Vo.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DyScj8f4.js → contacts-birthdate-rac-C3uYlFa3.js} +1 -1
  17. package/dist/component/{contacts-company-rac-C5X9-jXa.js → contacts-company-rac-BDmDrlJm.js} +1 -1
  18. package/dist/component/{contacts-email-rac-B0vkfmrS.js → contacts-email-rac-9NI8430K.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-Cfil3U_e.js → contacts-first-name-rac-PNgDNwXZ.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-CtPLE-7-.js → contacts-last-name-rac-Dkf8oYRe.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-YkzsAoBZ.js → contacts-phone-rac-BefG0umR.js} +1 -1
  22. package/dist/component/{contacts-position-rac-BS4j8QC-.js → contacts-position-rac-8ZWMa74Q.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-z_9VsEZL.js → contacts-subscribe-rac-Dj0k_O2C.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-WFkmKyZv.js → contacts-tax-id-rac-Dbz0SEH9.js} +1 -1
  25. package/dist/component/{date-availability-NN3rxosk.js → date-availability-CpZYBX1d.js} +1 -1
  26. package/dist/component/{date-input-field-rac-mdhEC3oq.js → date-input-field-rac-8CkusNEQ.js} +64 -64
  27. package/dist/component/{date-input-rac-CGciuoTx.js → date-input-rac-CH1ke9-c.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-CRZVODfF.js → date-picker-field-rac-pZQhHvZc.js} +31 -31
  29. package/dist/component/{date-picker-rac-Bfbvjy8W.js → date-picker-rac-BOdzNgu6.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-TDWBXZ44.js → date-time-input-field-rac-DDUZvi8G.js} +70 -70
  31. package/dist/component/{date-time-input-rac-DY0qdSix.js → date-time-input-rac-DkjW7KId.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BFGM7SOt.js → dext-checkbox-group-rac-Cjx062TO.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-DPZvTeUZ.js → dext-checkbox-rac-CIqsZ8Cf.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-Xd5kojsQ.js → dext-date-picker-rac-BYQN00yy.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-C0RIdxJW.js → dext-date-time-input-rac-Bh-HYZ_X.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-D1m8vJvm.js → dext-dropdown-rac-rnkUqsSx.js} +1 -1
  37. package/dist/component/{dext-email-rac-BC81RFYY.js → dext-email-rac-DtW_DadC.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-Z_ih9FfX.js → dext-number-input-rac-DTfdLXFG.js} +1 -1
  39. package/dist/component/{dext-phone-rac-s3BOnXuI.js → dext-phone-rac-D3anV8iB.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-CL3jcezs.js → dext-radio-group-rac-CIO_2H7F.js} +4 -4
  41. package/dist/component/{dext-rating-input-rac-wz1EyP5b.js → dext-rating-input-rac-Bdtbwo1W.js} +1 -1
  42. package/dist/component/{dext-tags-rac-BY4Rf2BP.js → dext-tags-rac-DT4_lRM0.js} +4 -4
  43. package/dist/component/{dext-text-area-rac-DRJzlsq8.js → dext-text-area-rac-BgMlIgik.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-BGcRNNAi.js → dext-text-input-rac-DDc6-lsN.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-CRAIm8yp.js → dext-url-input-rac-CrOT7XQf.js} +1 -1
  46. package/dist/component/{donation-rac-BlTfOIlE.js → donation-rac-CORUAfww.js} +74 -74
  47. package/dist/component/{dropdown-field-headless-DhzRAMcM.js → dropdown-field-headless-B-82vlHV.js} +10 -10
  48. package/dist/component/{dropdown-field-rac-DXyY5we-.js → dropdown-field-rac-AYGyhYSH.js} +3 -3
  49. package/dist/component/{dropdown-rac-C6YM6qxm.js → dropdown-rac-g-zqV-y4.js} +1 -1
  50. package/dist/component/{ecom-address-rac-CAdr7wya.js → ecom-address-rac-BQqh4QrW.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-Z2VMuCbt.js → ecom-subscription-checkbox-rac-Cf7Ou6Om.js} +2 -2
  52. package/dist/component/{email-input-field-rac-DpkfunVK.js → email-input-field-rac-BFrfF6TW.js} +47 -47
  53. package/dist/component/{events-repeater-rac-CuJkdrPo.js → events-repeater-rac-CNifjThM.js} +8 -8
  54. package/dist/component/{events-rsvp-rac-BKWlSeQ9.js → events-rsvp-rac-CnW7CNdo.js} +10 -10
  55. package/dist/component/{field-error-headless-tsg9FQ-_.js → field-error-headless-BLgaEh1d.js} +11 -11
  56. package/dist/component/{field-label-headless-CB8dEat8.js → field-label-headless-C8NbnF9M.js} +4 -4
  57. package/dist/component/file-upload-rac-Yk44koqY.js +561 -0
  58. package/dist/component/{fixed-payment-rac-CuIQEeHh.js → fixed-payment-rac-r_OUP_KD.js} +15 -15
  59. package/dist/component/{form-0jt4L5xo.js → form-DC8xFBa_.js} +6178 -5729
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +3 -3
  62. package/dist/component/{header-field-rac-CWVGzxKb.js → header-field-rac-6NOymbBc.js} +4 -4
  63. package/dist/component/{header-rac-D6KsV-ko.js → header-rac-DzK8Cg5s.js} +1 -1
  64. package/dist/component/{image-choice-rac-CUCyVS8c.js → image-choice-rac-CcCInqrr.js} +9 -9
  65. package/dist/component/{index-iOqQidgV.js → index-B_72TOzS.js} +2 -2
  66. package/dist/component/{index-TJSnVtCO.js → index-CGbawBGb.js} +43 -43
  67. package/dist/component/{isObjectLike-DQbx8r1c.js → isObjectLike-BziKAUTi.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-DtZ1NTfD.js → multiline-address-field-rac-CJw6HvHY.js} +78 -78
  69. package/dist/component/{multiline-address-rac-ub-_XzHU.js → multiline-address-rac-B_GR1nkJ.js} +1 -1
  70. package/dist/component/{number-input-field-rac-DLItn4DK.js → number-input-field-rac-CXFmpNWL.js} +13 -13
  71. package/dist/component/{number-input-rac-UuxJzqEx.js → number-input-rac-sr4Dhnxa.js} +1 -1
  72. package/dist/component/{password-rac-Di6q96Rn.js → password-rac-BwBEPYo3.js} +15 -15
  73. package/dist/component/{payment-input-rac-CG6c4-Ge.js → payment-input-rac-BcLSkgtK.js} +44 -44
  74. package/dist/component/{phone-input-field-rac-D4JphCuT.js → phone-input-field-rac-4kp5xRJZ.js} +50 -50
  75. package/dist/component/{phone-rac-_vDw2usa.js → phone-rac-B_QYTg28.js} +1 -1
  76. package/dist/component/{product-list-rac-CgxRlj1f.js → product-list-rac-C7YDHPj_.js} +50 -50
  77. package/dist/component/{quiz-radio-group-rac-bi26aGxN.js → quiz-radio-group-rac-Be1v1PyS.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-DDJq2ESf.js → radio-button-module-classes-k9DhZ1Fd.js} +14 -14
  79. package/dist/component/{radio-group-field-rac-D1aMVO6l.js → radio-group-field-rac-BDEAYQH5.js} +6 -6
  80. package/dist/component/{radio-group-rac-HKC85M6t.js → radio-group-rac-DcmSrcGy.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-CpRehxFB.js → rating-input-field-rac-CcO3-3O3.js} +20 -20
  82. package/dist/component/{rating-input-rac-BMuCZ3oj.js → rating-input-rac-wl8G35Xv.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-mZ6xoAOd.js → rich-content-rac.module-CzZ6x_Yf.js} +1 -1
  84. package/dist/component/{rich-text-field-rac-CUK8V8Kf.js → rich-text-field-rac-B4l_YgG7.js} +4 -4
  85. package/dist/component/{rich-text-rac-B-7sR2FJ.js → rich-text-rac-BlW4v4gg.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-1DDNT5bn.js → service-dropdown-rac-CJTrm0iL.js} +33 -33
  87. package/dist/component/{services-multi-choice-rac-CB-6dwxz.js → services-multi-choice-rac-BkiL2Pct.js} +13 -13
  88. package/dist/component/{signature-rac-7XBci6P2.js → signature-rac-_fTng53p.js} +133 -133
  89. package/dist/component/{submit-button-rac-B1-Mk8Gg.js → submit-button-rac-EmqyRMuE.js} +17 -17
  90. package/dist/component/{tags-field-rac-CQ9Y7mq-.js → tags-field-rac-CTlZZLdv.js} +32 -32
  91. package/dist/component/{tags-rac-Visic-Ml.js → tags-rac-xd-CpByf.js} +1 -1
  92. package/dist/component/{text-area-field-rac-C8fP1g-w.js → text-area-field-rac-Dap_aF4j.js} +14 -14
  93. package/dist/component/{text-area-rac-B6yZxzxm.js → text-area-rac-rKSZi3gu.js} +1 -1
  94. package/dist/component/{text-input-field-rac-CNjbOxD1.js → text-input-field-rac-GBsaUY0A.js} +5 -5
  95. package/dist/component/{text-input-headless-Bm8PJGep.js → text-input-headless-SHtvSa6y.js} +3 -3
  96. package/dist/component/{text-input-rac-BEPC1Z-4.js → text-input-rac-v4R17Vxm.js} +1 -1
  97. package/dist/component/{time-input-rac-3m6C_Jp5.js → time-input-rac-DgnhZSjV.js} +27 -27
  98. package/dist/component/{url-input-field-rac-CIk_6Lf6.js → url-input-field-rac-BuTadRMy.js} +19 -19
  99. package/dist/component/{url-input-rac-DyVoygXH.js → url-input-rac-BpVSwqpz.js} +1 -1
  100. package/dist/component/{use-dropdown-option-class-name-McG3ayOT.js → use-dropdown-option-class-name-Cwfh_4oi.js} +2 -2
  101. package/dist/component/{use-element-state-class-name-B9MBWX44.js → use-element-state-class-name-BF7I_Ju7.js} +1 -1
  102. package/dist/component/{use-is-forced-open-dropdown-r5G_sZsO.js → use-is-forced-open-dropdown-BMuhxge2.js} +8 -8
  103. package/dist/component/{use-service-options-base-hcbkvhpw.js → use-service-options-base-DfyQZjmw.js} +1 -1
  104. package/dist/component/{use-text-input-class-name-SnurFqAr.js → use-text-input-class-name-ixt7gTGg.js} +2 -2
  105. package/dist/form.d.ts +18 -0
  106. package/package.json +3 -3
  107. package/dist/component/file-upload-rac-ZdgYt646.js +0 -483
@@ -6,19 +6,19 @@ import { E as it } from "./error-icon-hZxQ6DEy.js";
6
6
  import { g as lt, c as Ce } from "./calendar.module-DnhTT4QT.js";
7
7
  import { H as me } from "./custom-focus-class-_483Pkwp.js";
8
8
  import { s as de } from "./field-rac.module-B4l_0KRU.js";
9
- import { aZ as De, aY as ct, b1 as Te, bf as ut, be as mt, b5 as ce, b2 as Ee, b7 as dt, b4 as ft, F as Dt, H as Et, T as St, g as pt, z as We, o as _t, U as yt, u as Lt, p as At, Z as Nt } from "./form-0jt4L5xo.js";
10
- import { u as gt } from "./use-element-state-class-name-B9MBWX44.js";
11
- import { ListBox as It, Button as he, ListBoxItem as bt, RadioGroup as Ot, RadioField as Tt, RadioButton as ht } from "react-aria-components";
9
+ import { b1 as De, b0 as ct, b5 as Te, bj as ut, bi as mt, b9 as ce, b6 as Ee, bb as dt, b8 as ft, F as Dt, I as Et, U as St, g as pt, G as We, o as _t, V as yt, v as Lt, p as At, $ as Nt } from "./form-DC8xFBa_.js";
10
+ import { u as gt } from "./use-element-state-class-name-BF7I_Ju7.js";
11
+ import { ListBox as bt, Button as he, ListBoxItem as It, RadioGroup as Ot, RadioField as Tt, RadioButton as ht } from "react-aria-components";
12
12
  import { f as T, a as le } from "./find-child-C60k4CxG.js";
13
- import { D as vt, E as kt } from "./field-error-headless-tsg9FQ-_.js";
14
- import { L as Rt } from "./field-label-headless-CB8dEat8.js";
13
+ import { D as vt, E as kt } from "./field-error-headless-BLgaEh1d.js";
14
+ import { L as Rt } from "./field-label-headless-C8NbnF9M.js";
15
15
  import { F as wt } from "./fieldset-headless-CD3fds9J.js";
16
16
  import "date-fns";
17
- import { V as Ze } from "./headless-styles-CmcyA_pi.js";
17
+ import { V as Ge } from "./headless-styles-CmcyA_pi.js";
18
18
  function Ft(e) {
19
19
  return { evid: 40, src: 16, endpoint: "", params: e };
20
20
  }
21
- var Ie = /* @__PURE__ */ (function(e) {
21
+ var be = /* @__PURE__ */ (function(e) {
22
22
  return e.BOOKING_NOT_INSTALL = "BOOKING_NOT_INSTALL", e.NO_AVAILABILITY_DATES_FOUND = "NO_AVAILABILITY_DATES_FOUND", e.GENERAL = "GENERAL", e;
23
23
  })({}), z = /* @__PURE__ */ (function(e) {
24
24
  return e.LOADING = "LOADING", e.DONE = "DONE", e.ERROR = "ERROR", e;
@@ -45,7 +45,7 @@ const Mt = (e) => {
45
45
  staffMemberIds: e == null ? void 0 : e.staffMemberIds,
46
46
  isOfferedAsPricingPlan: !1
47
47
  });
48
- }, Ge = (e) => {
48
+ }, Ze = (e) => {
49
49
  var l;
50
50
  const { appointmentFieldProps: t } = ve(), { isEditor: n, isComposer: a } = De(), s = ct(), r = e || ((l = t == null ? void 0 : t.initialData) == null ? void 0 : l.service);
51
51
  if (!(n || a))
@@ -57,10 +57,10 @@ const Mt = (e) => {
57
57
  }))
58
58
  };
59
59
  };
60
- var be;
60
+ var Ie;
61
61
  (function(e) {
62
62
  e.UNDEFINED = "UNDEFINED", e.OWNER_BUSINESS = "OWNER_BUSINESS", e.OWNER_CUSTOM = "OWNER_CUSTOM", e.CUSTOM = "CUSTOM";
63
- })(be || (be = {}));
63
+ })(Ie || (Ie = {}));
64
64
  var Be;
65
65
  (function(e) {
66
66
  e.UNKNOWN_REQUESTED_GENDER = "UNKNOWN_REQUESTED_GENDER", e.ANY_MALE = "ANY_MALE", e.ANY_FEMALE = "ANY_FEMALE";
@@ -80,7 +80,7 @@ var Pe;
80
80
  const Wt = (e) => {
81
81
  const { service: t } = e || {};
82
82
  return (t == null ? void 0 : t.id) ? null : {
83
- type: Ie.GENERAL,
83
+ type: be.GENERAL,
84
84
  message: "Service ID is missing"
85
85
  };
86
86
  }, Bt = ({ appointmentFieldProps: e, isEditor: t, isComposer: n }) => {
@@ -126,13 +126,13 @@ const Wt = (e) => {
126
126
  m.setMinutes(m.getMinutes() + e);
127
127
  let p = !1;
128
128
  for (; m.getHours() < c || m.getHours() === c && m.getMinutes() === 0; ) {
129
- const b = {
129
+ const I = {
130
130
  slot: {
131
131
  serviceId: n,
132
132
  startDate: D.toISOString(),
133
133
  endDate: m.toISOString(),
134
134
  location: {
135
- locationType: be.CUSTOM
135
+ locationType: Ie.CUSTOM
136
136
  }
137
137
  },
138
138
  bookable: !0,
@@ -145,7 +145,7 @@ const Wt = (e) => {
145
145
  },
146
146
  nestedSlots: []
147
147
  };
148
- r.push(b), p || (s.push(b), p = !0), D = new Date(m), m = new Date(D), m.setMinutes(m.getMinutes() + e);
148
+ r.push(I), p || (s.push(I), p = !0), D = new Date(m), m = new Date(D), m.setMinutes(m.getMinutes() + e);
149
149
  }
150
150
  return {
151
151
  availabilitySlots: r,
@@ -159,11 +159,11 @@ function zt(e) {
159
159
  var d;
160
160
  const { initialData: t, onChange: n, value: a } = e, { isEditor: s, isComposer: r } = De(), l = (d = t == null ? void 0 : t.service) == null ? void 0 : d.id, { actions: i } = Te(), c = X(i);
161
161
  c.current = i;
162
- const D = !!(i != null && i.getAvailabilityDates && (i != null && i.getAvailabilitySlots)), [m, p] = Q(null), E = Ge(t == null ? void 0 : t.service);
162
+ const D = !!(i != null && i.getAvailabilityDates && (i != null && i.getAvailabilitySlots)), [m, p] = Q(null), E = Ze(t == null ? void 0 : t.service);
163
163
  return H(() => {
164
164
  l && !s && !r && D && (async () => {
165
165
  var _, O, Y, M, $;
166
- const v = Ve(), I = {
166
+ const v = Ve(), b = {
167
167
  currentSlotBulkSize: q,
168
168
  timezone: v,
169
169
  dataStatus: z.LOADING
@@ -171,43 +171,43 @@ function zt(e) {
171
171
  try {
172
172
  const U = async (se) => {
173
173
  var y, S;
174
- const { startDate: Z, endDate: C } = Ut(se, v);
174
+ const { startDate: G, endDate: C } = Ut(se, v);
175
175
  return (S = (y = c.current) == null ? void 0 : y.getAvailabilityDates) == null ? void 0 : S.call(y, {
176
176
  serviceId: l,
177
- fromDate: Z,
177
+ fromDate: G,
178
178
  toDate: C,
179
179
  timeZone: v
180
180
  });
181
181
  };
182
- if (I.availabilityDates = await U(2), (_ = I.availabilityDates) != null && _.length || (I.availabilityDates = await U(6)), !((O = I.availabilityDates) != null && O.length)) {
182
+ if (b.availabilityDates = await U(2), (_ = b.availabilityDates) != null && _.length || (b.availabilityDates = await U(6)), !((O = b.availabilityDates) != null && O.length)) {
183
183
  E == null || E.report({
184
184
  action: ne.LOAD,
185
185
  component: J.NO_AVAILABILITY_AT_ALL
186
186
  }), p({
187
187
  dataStatus: z.ERROR,
188
188
  error: {
189
- type: Ie.NO_AVAILABILITY_DATES_FOUND,
189
+ type: be.NO_AVAILABILITY_DATES_FOUND,
190
190
  message: "No availability dates found"
191
191
  }
192
192
  });
193
193
  return;
194
194
  }
195
- I.selectedDate = xt(I.availabilityDates), I.selectedDate && (I.availabilitySlots = await ((M = (Y = c.current) == null ? void 0 : Y.getAvailabilitySlots) == null ? void 0 : M.call(Y, {
195
+ b.selectedDate = xt(b.availabilityDates), b.selectedDate && (b.availabilitySlots = await ((M = (Y = c.current) == null ? void 0 : Y.getAvailabilitySlots) == null ? void 0 : M.call(Y, {
196
196
  serviceId: l,
197
197
  timeZone: v,
198
- selectedDate: I.selectedDate
198
+ selectedDate: b.selectedDate
199
199
  }))), E == null || E.report({
200
200
  action: ne.LOAD,
201
- component: ($ = I.availabilityDates) != null && $.length ? J.FORM : J.NO_AVAILABILITY_FOR_DATE
201
+ component: ($ = b.availabilityDates) != null && $.length ? J.FORM : J.NO_AVAILABILITY_FOR_DATE
202
202
  }), a != null && a.startDate || n(void 0), p({
203
- ...I,
203
+ ...b,
204
204
  dataStatus: z.DONE
205
205
  });
206
206
  } catch (U) {
207
207
  console.error(U), p({
208
208
  dataStatus: z.ERROR,
209
209
  error: {
210
- type: Ie.GENERAL,
210
+ type: be.GENERAL,
211
211
  message: "An error occurred in initialAppointmentState"
212
212
  }
213
213
  });
@@ -281,7 +281,7 @@ const qe = /* @__PURE__ */ Ke({
281
281
  formatType: "offset"
282
282
  });
283
283
  return `${n} (${a})`;
284
- }, ae = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Zt = (e, t) => {
284
+ }, ae = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Gt = (e, t) => {
285
285
  const n = new Date(e);
286
286
  n.setDate(e.getDate() - t);
287
287
  const a = new Date(e);
@@ -289,14 +289,14 @@ const qe = /* @__PURE__ */ Ke({
289
289
  fromDate: n,
290
290
  toDate: a
291
291
  };
292
- }, Gt = ({ setIsReloadingSlots: e }) => {
292
+ }, Zt = ({ setIsReloadingSlots: e }) => {
293
293
  const { appointmentFieldProps: t, appointmentState: n, setAppointmentState: a } = ve(), { value: s } = t, { actions: r } = Te();
294
294
  H(() => {
295
295
  (async () => {
296
296
  var i, c;
297
297
  if (s != null && s.startDate && (n != null && n.selectedDate) && (n == null ? void 0 : n.dataStatus) === z.DONE && !ae(new Date(s.startDate), n == null ? void 0 : n.selectedDate)) {
298
298
  e(!0);
299
- const m = new Date(s.startDate), { fromDate: p, toDate: E } = Zt(m, 8), [d, b] = await Promise.all([
299
+ const m = new Date(s.startDate), { fromDate: p, toDate: E } = Gt(m, 8), [d, I] = await Promise.all([
300
300
  (i = r == null ? void 0 : r.getAvailabilityDates) == null ? void 0 : i.call(r, {
301
301
  serviceId: t == null ? void 0 : t.initialData.service.id,
302
302
  timeZone: (n == null ? void 0 : n.timezone) || "",
@@ -312,7 +312,7 @@ const qe = /* @__PURE__ */ Ke({
312
312
  a({
313
313
  availabilityDates: d,
314
314
  selectedDate: m,
315
- availabilitySlots: b
315
+ availabilitySlots: I
316
316
  }), e(!1);
317
317
  }
318
318
  })();
@@ -389,11 +389,11 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
389
389
  return !!((a = n.slot) != null && a.startDate) && ae(new Date(n.slot.startDate), e);
390
390
  }), rn = () => {
391
391
  var Fe;
392
- const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } = ve(), { language: a, isEditor: s, isComposer: r } = De(), { t: l } = ut(), { actions: i } = Te(), c = Ge(), [D, m] = Q(!1), [p, E] = Q(!1), [d, b] = Q(), [v, I] = Q();
393
- Gt({
392
+ const { appointmentFieldProps: e, appointmentState: t, setAppointmentState: n } = ve(), { language: a, isEditor: s, isComposer: r } = De(), { t: l } = ut(), { actions: i } = Te(), c = Ze(), [D, m] = Q(!1), [p, E] = Q(!1), [d, I] = Q(), [v, b] = Q();
393
+ Zt({
394
394
  setIsReloadingSlots: m
395
395
  });
396
- const { onChange: _, value: O, target: Y, initialData: M, formatDescription: $, locationType: U, error: se } = e, { availabilityDates: Z, availabilitySlots: C, timezone: y = "", selectedDate: S, currentSlotBulkSize: k, dataStatus: K, error: G } = t, V = (Fe = M == null ? void 0 : M.service) == null ? void 0 : Fe.id, w = K === z.LOADING, ee = D || p, Se = !!G, Re = tn({
396
+ const { onChange: _, value: O, target: Y, initialData: M, formatDescription: $, locationType: U, error: se } = e, { availabilityDates: G, availabilitySlots: C, timezone: y = "", selectedDate: S, currentSlotBulkSize: k, dataStatus: K, error: Z } = t, V = (Fe = M == null ? void 0 : M.service) == null ? void 0 : Fe.id, w = K === z.LOADING, ee = D || p, Se = !!Z, Re = tn({
397
397
  error: se,
398
398
  selectedSlot: O
399
399
  }), L = P(() => Vt(C, Re), [
@@ -424,14 +424,14 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
424
424
  }, [
425
425
  O,
426
426
  L,
427
- Z
427
+ G
428
428
  ]);
429
429
  const pe = P(() => lt(a), [
430
430
  a
431
431
  ]), we = X(S);
432
432
  H(() => {
433
433
  const f = we.current;
434
- we.current = S, !!S && (!f || !ae(f, S)) && b(void 0);
434
+ we.current = S, !!S && (!f || !ae(f, S)) && I(void 0);
435
435
  }, [
436
436
  S
437
437
  ]);
@@ -457,7 +457,7 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
457
457
  key: an(x),
458
458
  date: x,
459
459
  isSelected: ge,
460
- isAvailable: !w && !ee && !ge && sn(x, Z),
460
+ isAvailable: !w && !ee && !ge && sn(x, G),
461
461
  isDisabled: st || ee && !ge,
462
462
  isToday: ae(x, f),
463
463
  dayOfMonthLabel: g.format(x),
@@ -469,7 +469,7 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
469
469
  }, [
470
470
  W,
471
471
  S,
472
- Z,
472
+ G,
473
473
  w,
474
474
  ee,
475
475
  a,
@@ -549,7 +549,7 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
549
549
  if (f < 0 && !Ae)
550
550
  return;
551
551
  const N = W, g = te(W, f * j);
552
- if (b(g), s || r)
552
+ if (I(g), s || r)
553
553
  return;
554
554
  const h = ++ue.current;
555
555
  E(!0), c == null || c.report({
@@ -567,7 +567,7 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
567
567
  availabilityDates: Ne
568
568
  });
569
569
  } catch {
570
- h === ue.current && b(N);
570
+ h === ue.current && I(N);
571
571
  } finally {
572
572
  h === ue.current && E(!1);
573
573
  }
@@ -614,14 +614,14 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
614
614
  c == null || c.report({
615
615
  action: ne.CLICK,
616
616
  component: J.SHOW_MORE
617
- }), I(f), n({
617
+ }), b(f), n({
618
618
  currentSlotBulkSize: f + q
619
619
  });
620
620
  }, [
621
621
  Le,
622
622
  k,
623
623
  c
624
- ]), at = ie(() => I(void 0), []), ot = P(() => {
624
+ ]), at = ie(() => b(void 0), []), ot = P(() => {
625
625
  if (Se)
626
626
  return l("form.appointment.empty-state.notification.text");
627
627
  if (!w && !D && !(L != null && L.length))
@@ -686,14 +686,14 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
686
686
  ]), E = (d) => {
687
687
  if (d === "all")
688
688
  return;
689
- const [b] = [
689
+ const [I] = [
690
690
  ...d
691
- ], v = n.find(({ key: I }) => I === b);
691
+ ], v = n.find(({ key: b }) => b === I);
692
692
  v && a(v.date);
693
693
  };
694
694
  return /* @__PURE__ */ o.createElement("div", {
695
695
  className: t
696
- }, r, l, i, /* @__PURE__ */ o.createElement(It, {
696
+ }, r, l, i, /* @__PURE__ */ o.createElement(bt, {
697
697
  "aria-label": s,
698
698
  orientation: "horizontal",
699
699
  selectionMode: "single",
@@ -715,7 +715,7 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
715
715
  if (D !== document.body && D !== i.current)
716
716
  return;
717
717
  const m = ((E = (p = i.current) == null ? void 0 : p.closest("fieldset")) == null ? void 0 : E.querySelectorAll("button")) ?? [];
718
- (d = Array.from(m).find((b) => b.getAttribute("aria-label") === r)) == null || d.focus();
718
+ (d = Array.from(m).find((I) => I.getAttribute("aria-label") === r)) == null || d.focus();
719
719
  }, [
720
720
  a,
721
721
  r
@@ -747,11 +747,11 @@ const Xt = "SLOT_UNAVAILABLE", en = (e) => {
747
747
  }) : /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("span", {
748
748
  "aria-hidden": "true"
749
749
  }, n), /* @__PURE__ */ o.createElement("span", {
750
- style: Ze
750
+ style: Ge
751
751
  }, a)));
752
752
  }, mn = ({ children: e, className: t, ...n }) => {
753
753
  const { day: a } = n;
754
- return /* @__PURE__ */ o.createElement(bt, {
754
+ return /* @__PURE__ */ o.createElement(It, {
755
755
  id: a.key,
756
756
  className: t,
757
757
  textValue: a.label,
@@ -768,16 +768,16 @@ B.Heading = un;
768
768
  B.NextWeek = cn;
769
769
  B.Day = mn;
770
770
  const Ye = 'input[type="radio"]', oe = ({ children: e, className: t, ...n }) => {
771
- const { hasTimezoneNote: a } = n, { slots: s, selectedSlotKey: r, selectSlot: l, selectedDateLabel: i, isReloadingSlots: c, timezoneLabel: D, pendingFocusIndex: m, consumePendingFocusIndex: p } = F(), { id: E, disabled: d, readOnly: b, required: v, hasError: I } = ce(), { inputId: _, labelId: O, ariaDescribedBy: Y } = Ee(), M = X(null), $ = `${_}-slots-label`, U = T(e, oe.Label), se = T(e, oe.Slot) ?? /* @__PURE__ */ o.createElement(oe.Slot, null), Z = !!U && !!i, C = [
771
+ const { hasTimezoneNote: a } = n, { slots: s, selectedSlotKey: r, selectSlot: l, selectedDateLabel: i, isReloadingSlots: c, timezoneLabel: D, pendingFocusIndex: m, consumePendingFocusIndex: p } = F(), { id: E, disabled: d, readOnly: I, required: v, hasError: b } = ce(), { inputId: _, labelId: O, ariaDescribedBy: Y } = Ee(), M = X(null), $ = `${_}-slots-label`, U = T(e, oe.Label), se = T(e, oe.Slot) ?? /* @__PURE__ */ o.createElement(oe.Slot, null), G = !!U && !!i, C = [
772
772
  Y,
773
773
  a && D ? Qe(_) : void 0
774
774
  ].filter(Boolean).join(" ") || void 0, y = (S) => {
775
- var k, K, G;
776
- (G = (K = (k = M.current) == null ? void 0 : k.querySelectorAll(Ye)) == null ? void 0 : K[S]) == null || G.focus();
775
+ var k, K, Z;
776
+ (Z = (K = (k = M.current) == null ? void 0 : k.querySelectorAll(Ye)) == null ? void 0 : K[S]) == null || Z.focus();
777
777
  };
778
778
  return dt(() => {
779
- var G, V;
780
- if (!!((G = M.current) != null && G.querySelector(Ye))) {
779
+ var Z, V;
780
+ if (!!((Z = M.current) != null && Z.querySelector(Ye))) {
781
781
  y(0);
782
782
  return;
783
783
  }
@@ -790,17 +790,17 @@ const Ye = 'input[type="radio"]', oe = ({ children: e, className: t, ...n }) =>
790
790
  s.length
791
791
  ]), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("div", {
792
792
  role: "status",
793
- style: Ze
793
+ style: Ge
794
794
  }, s.length > 0 ? i : void 0), /* @__PURE__ */ o.createElement(Ot, {
795
795
  ref: M,
796
796
  className: t,
797
797
  value: r ?? null,
798
798
  onChange: l,
799
799
  isDisabled: d,
800
- isReadOnly: b,
800
+ isReadOnly: I,
801
801
  isRequired: v,
802
- isInvalid: I,
803
- "aria-labelledby": Z ? $ : O,
802
+ isInvalid: b,
803
+ "aria-labelledby": G ? $ : O,
804
804
  "aria-describedby": C,
805
805
  "data-refetch": c || void 0
806
806
  }, le(U, {
@@ -859,7 +859,7 @@ const u = ({ children: e, className: t }) => {
859
859
  }, Dn = {
860
860
  visibility: "hidden"
861
861
  }, En = ({ children: e, className: t }) => {
862
- const { required: n, onFocus: a, onBlur: s } = ce(), { inputId: r, labelId: l, ariaDescribedBy: i } = Ee(), c = rn(), D = T(e, u.Loader), m = T(e, u.Notification), p = T(e, u.Dates), E = T(e, u.Timezone), d = T(e, u.Format), b = T(e, u.Slots), v = T(e, u.ShowMoreSlots);
862
+ const { required: n, onFocus: a, onBlur: s } = ce(), { inputId: r, labelId: l, ariaDescribedBy: i } = Ee(), c = rn(), D = T(e, u.Loader), m = T(e, u.Notification), p = T(e, u.Dates), E = T(e, u.Timezone), d = T(e, u.Format), I = T(e, u.Slots), v = T(e, u.ShowMoreSlots);
863
863
  return /* @__PURE__ */ o.createElement(je.Provider, {
864
864
  value: c
865
865
  }, /* @__PURE__ */ o.createElement(wt, {
@@ -872,7 +872,7 @@ const u = ({ children: e, className: t }) => {
872
872
  onBlur: s
873
873
  }, D, c.hasError ? m : /* @__PURE__ */ o.createElement("div", {
874
874
  style: c.isLoading ? Dn : void 0
875
- }, p, E, d, le(b, {
875
+ }, p, E, d, le(I, {
876
876
  hasTimezoneNote: !!E
877
877
  }), m, v)));
878
878
  }, Sn = ({ children: e, className: t }) => {
@@ -927,12 +927,12 @@ u.Slots = oe;
927
927
  u.ShowMoreSlots = Ln;
928
928
  u.Description = vt;
929
929
  u.Error = kt;
930
- const An = "_appointment_14hug_1", Nn = "_dates_14hug_6", gn = "_weekHeading_14hug_27", In = "_weekButton_14hug_36", bn = "_previousWeek_14hug_68", On = "_nextWeek_14hug_72", Tn = "_day_14hug_84", hn = "_weekdayLabel_14hug_96", vn = "_indicator_14hug_108", kn = "_hint_14hug_131", Rn = "_slots_14hug_144", wn = "_slotsLabel_14hug_159", Fn = "_slot_14hug_144", Mn = "_slotHover_14hug_198", Cn = "_slotSelected_14hug_206", Wn = "_showMoreSlots_14hug_260", Bn = "_loader_14hug_290", Un = "_notification_14hug_326", A = {
930
+ const An = "_appointment_14hug_1", Nn = "_dates_14hug_6", gn = "_weekHeading_14hug_27", bn = "_weekButton_14hug_36", In = "_previousWeek_14hug_68", On = "_nextWeek_14hug_72", Tn = "_day_14hug_84", hn = "_weekdayLabel_14hug_96", vn = "_indicator_14hug_108", kn = "_hint_14hug_131", Rn = "_slots_14hug_144", wn = "_slotsLabel_14hug_159", Fn = "_slot_14hug_144", Mn = "_slotHover_14hug_198", Cn = "_slotSelected_14hug_206", Wn = "_showMoreSlots_14hug_260", Bn = "_loader_14hug_290", Un = "_notification_14hug_326", A = {
931
931
  appointment: An,
932
932
  dates: Nn,
933
933
  weekHeading: gn,
934
- weekButton: In,
935
- previousWeek: bn,
934
+ weekButton: bn,
935
+ previousWeek: In,
936
936
  nextWeek: On,
937
937
  day: Tn,
938
938
  weekdayLabel: hn,
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { M as o } from "./multiline-address-field-rac-DtZ1NTfD.js";
2
+ import { M as o } from "./multiline-address-field-rac-CJw6HvHY.js";
3
3
  const s = () => /* @__PURE__ */ e.createElement(o, null);
4
4
  export {
5
5
  s as BookingsAddressRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { E as e } from "./email-input-field-rac-DpkfunVK.js";
2
+ import { E as e } from "./email-input-field-rac-BFrfF6TW.js";
3
3
  const m = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  m as BookingsEmailRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-CNjbOxD1.js";
2
+ import { T as e } from "./text-input-field-rac-GBsaUY0A.js";
3
3
  const m = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  m as BookingsFirstNameRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { H as r } from "./header-field-rac-CWVGzxKb.js";
2
+ import { H as r } from "./header-field-rac-6NOymbBc.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, {
4
4
  truncate: !1
5
5
  });
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-CNjbOxD1.js";
2
+ import { T as e } from "./text-input-field-rac-GBsaUY0A.js";
3
3
  const m = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  m as BookingsLastNameRAC
@@ -1,6 +1,6 @@
1
1
  import o from "react";
2
2
  import E from "classnames";
3
- import { b5 as d, bf as b, aZ as f, b1 as p, y as L } from "./form-0jt4L5xo.js";
3
+ import { b9 as d, bj as b, b1 as f, b5 as p, z as L } from "./form-DC8xFBa_.js";
4
4
  import { Button as _ } from "react-aria-components";
5
5
  import { a as i, f as g } from "./find-child-C60k4CxG.js";
6
6
  const l = ({ children: n }) => {
@@ -48,7 +48,7 @@ const T = "_container_1mvrn_1", C = "_text_1mvrn_34", v = "_button_1mvrn_39", u
48
48
  container: T,
49
49
  text: C,
50
50
  button: v
51
- }, y = () => {
51
+ }, A = () => {
52
52
  const { userData: n, language: r } = f(), { actions: t } = p();
53
53
  return /* @__PURE__ */ o.createElement(l, null, /* @__PURE__ */ o.createElement(l.LoginBar, {
54
54
  email: n == null ? void 0 : n.email,
@@ -67,7 +67,7 @@ const T = "_container_1mvrn_1", C = "_text_1mvrn_34", v = "_button_1mvrn_39", u
67
67
  }), /* @__PURE__ */ o.createElement(l.Button, {
68
68
  className: u.button
69
69
  })));
70
- }, h = () => /* @__PURE__ */ o.createElement(y, null);
70
+ }, h = () => /* @__PURE__ */ o.createElement(A, null);
71
71
  export {
72
72
  h as BookingsLoginBarRAC
73
73
  };
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { P as e } from "./phone-input-field-rac-D4JphCuT.js";
2
+ import { P as e } from "./phone-input-field-rac-4kp5xRJZ.js";
3
3
  const r = () => /* @__PURE__ */ o.createElement(e, null);
4
4
  export {
5
5
  r as BookingsPhoneRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { R as t } from "./rich-text-field-rac-CUK8V8Kf.js";
2
+ import { R as t } from "./rich-text-field-rac-B4l_YgG7.js";
3
3
  const c = () => /* @__PURE__ */ e.createElement(t, {
4
4
  truncate: !1
5
5
  });