adp-web-components 0.1.80 → 0.1.81

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 (241) hide show
  1. package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +5 -47
  2. package/dist/cjs/flexible-container.cjs.entry.js +1 -1
  3. package/dist/cjs/form-checkbox.cjs.entry.js +3 -3
  4. package/dist/cjs/form-date-picker.cjs.entry.js +1 -1
  5. package/dist/cjs/form-dialog_13.cjs.entry.js +30 -17
  6. package/dist/cjs/{form-input-DH-U4kEM.js → form-input-CfVsbpFP.js} +1 -1
  7. package/dist/cjs/form-input_4.cjs.entry.js +8 -7
  8. package/dist/cjs/form-switch.cjs.entry.js +3 -3
  9. package/dist/cjs/form-time-picker.cjs.entry.js +1 -1
  10. package/dist/cjs/general-form.cjs.entry.js +5 -5
  11. package/dist/cjs/general-inquiry-form.cjs.entry.js +5 -5
  12. package/dist/cjs/{get-language-from-url-D5rCyA1u.js → get-language-from-url-DoohcPbK.js} +3 -2
  13. package/dist/cjs/{get-local-language-D02WksZl.js → get-local-language-dtz_ylI9.js} +1 -1
  14. package/dist/cjs/get-mock-files-sCsI1Hn3.js +53 -0
  15. package/dist/cjs/information-table.cjs.entry.js +1 -1
  16. package/dist/cjs/loader.cjs.js +1 -1
  17. package/dist/cjs/loading-spinner.cjs.entry.js +1 -1
  18. package/dist/cjs/manufacturer-part-lookup.cjs.entry.js +2 -2
  19. package/dist/cjs/part-lookup.cjs.entry.js +1 -1
  20. package/dist/cjs/{phone-validator-D6nzYTs8.js → phone-validator-BwVVzgyp.js} +2 -2
  21. package/dist/cjs/service-booking-form.cjs.entry.js +5 -5
  22. package/dist/cjs/shift-checkbox.cjs.entry.js +1 -1
  23. package/dist/cjs/shift-components.cjs.js +1 -1
  24. package/dist/cjs/shift-switch.cjs.entry.js +1 -1
  25. package/dist/cjs/shift-tab-content.cjs.entry.js +1 -1
  26. package/dist/cjs/shift-tabs_2.cjs.entry.js +2 -2
  27. package/dist/cjs/ssc-lookup-form.cjs.entry.js +5 -5
  28. package/dist/cjs/{state-object-B2D8PkT8.js → state-object-BPv_-WNe.js} +23 -1
  29. package/dist/cjs/test-drive-form.cjs.entry.js +5 -5
  30. package/dist/cjs/{validation-N-XMdEIM.js → validation-BAHdEc4w.js} +6 -0
  31. package/dist/cjs/vehicle-accessories_7.cjs.entry.js +8 -8
  32. package/dist/cjs/vehicle-lookup.cjs.entry.js +20 -2
  33. package/dist/cjs/vehicle-quotation-form.cjs.entry.js +3 -3
  34. package/dist/collection/components/components/empty.css +1 -1
  35. package/dist/collection/components/components/flexible-container.css +1 -1
  36. package/dist/collection/components/components/information-table.css +1 -1
  37. package/dist/collection/components/components/loading-spinner.css +1 -1
  38. package/dist/collection/components/components/shift-tab-content.css +1 -1
  39. package/dist/collection/components/components/shift-tabs.css +1 -1
  40. package/dist/collection/components/form-elements/form-input-preview.js +15 -2
  41. package/dist/collection/components/form-elements/form-inputs.css +1 -1
  42. package/dist/collection/components/form-elements/form-select.js +22 -1
  43. package/dist/collection/components/forms/defaults/mappers.js +22 -0
  44. package/dist/collection/components/forms/defaults/validation.js +6 -0
  45. package/dist/collection/components/part-lookup/manufacturer-part-lookup.css +1 -1
  46. package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -1
  47. package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -1
  48. package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.css +1 -1
  49. package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
  50. package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +40 -0
  51. package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -1
  52. package/dist/collection/components/vehicle-lookup/vehicle-sale-information.css +1 -1
  53. package/dist/collection/components/vehicle-lookup/vehicle-service-history.css +1 -1
  54. package/dist/collection/components/vehicle-lookup/vehicle-specification.css +1 -1
  55. package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +1 -1
  56. package/dist/collection/features/form-hook/form-hook.js +3 -2
  57. package/dist/collection/features/mocks/types.js +2 -2
  58. package/dist/collection/templates/vehicle-lookup/mock-loader.js +26 -0
  59. package/dist/components/dead-stock-lookup.js +1 -1
  60. package/dist/components/distributor-lookup.js +1 -1
  61. package/dist/components/flexible-container.js +1 -1
  62. package/dist/components/form-checkbox.js +1 -1
  63. package/dist/components/form-date-picker.js +1 -1
  64. package/dist/components/form-dialog.js +1 -1
  65. package/dist/components/form-file.js +1 -1
  66. package/dist/components/form-input-preview.js +1 -1
  67. package/dist/components/form-input.js +1 -1
  68. package/dist/components/form-phone-number.js +1 -1
  69. package/dist/components/form-picker-input.js +1 -1
  70. package/dist/components/form-select.js +1 -1
  71. package/dist/components/form-shadow-input.js +1 -1
  72. package/dist/components/form-stepper-control.js +1 -1
  73. package/dist/components/form-stepper-submit.js +1 -1
  74. package/dist/components/form-stepper.js +1 -1
  75. package/dist/components/form-structure-error.js +1 -1
  76. package/dist/components/form-structure.js +1 -1
  77. package/dist/components/form-submit.js +1 -1
  78. package/dist/components/form-switch.js +1 -1
  79. package/dist/components/form-text-area.js +1 -1
  80. package/dist/components/form-time-picker.js +1 -1
  81. package/dist/components/form-vin-input.js +1 -1
  82. package/dist/components/general-form.js +1 -1
  83. package/dist/components/general-inquiry-form.js +1 -1
  84. package/dist/components/information-table.js +1 -1
  85. package/dist/components/loading-spinner.js +1 -1
  86. package/dist/components/manufacturer-lookup.js +1 -1
  87. package/dist/components/manufacturer-part-lookup.js +1 -1
  88. package/dist/components/{p-gEeo-RSf.js → p-1t0ee2KV.js} +1 -1
  89. package/dist/components/{p-QsYqPaPW.js → p-8XSbLgc1.js} +1 -1
  90. package/dist/components/{p-Bsnu7u9K.js → p-9SYAxR5D.js} +1 -1
  91. package/dist/components/{p-CqTxdwgo.js → p-B2L6-H-H.js} +1 -1
  92. package/dist/components/{p-DhQjm81u.js → p-B3Sse1dx.js} +1 -1
  93. package/dist/components/{p-zyFVlTck.js → p-B9DO0698.js} +1 -1
  94. package/dist/components/{p-Dj3_tuTX.js → p-BAUUwLQn.js} +1 -1
  95. package/dist/components/p-BSODiZ3e.js +5 -0
  96. package/dist/components/p-BX7sXgsE.js +5 -0
  97. package/dist/components/{p-DY9gBU2J.js → p-BYlmz8H8.js} +1 -1
  98. package/dist/components/{p-BeL46S5b.js → p-BaXSdgrz.js} +1 -1
  99. package/dist/components/{p-DwyZCgYl.js → p-BbYlJcJL.js} +1 -1
  100. package/dist/components/p-BdMk8LMO.js +5 -0
  101. package/dist/components/{p-VufjPJkT.js → p-BgC7TfjM.js} +1 -1
  102. package/dist/components/{p-CvoSPdhp.js → p-Bgdfc3fC.js} +1 -1
  103. package/dist/components/p-BoZ-KRmQ.js +5 -0
  104. package/dist/components/{p-BiRjebkj.js → p-Bto_Qn2L.js} +1 -1
  105. package/dist/components/{p-CXoG03EM.js → p-CMo5vVFD.js} +1 -1
  106. package/dist/components/{p-COS-bXsj.js → p-CRhdQvF0.js} +1 -1
  107. package/dist/components/{p-CjZxWPIE.js → p-CWTyZunC.js} +1 -1
  108. package/dist/components/{p-CeUdMJED.js → p-CYPozMZL.js} +1 -1
  109. package/dist/components/{p-D7ZYsC-o.js → p-CnzWHmTp.js} +1 -1
  110. package/dist/components/{p-DSTKQdoW.js → p-CvwANsMG.js} +1 -1
  111. package/dist/components/{p-DKzEP2g4.js → p-D6G60Qle.js} +1 -1
  112. package/dist/components/p-DA8N8GN1.js +5 -0
  113. package/dist/components/{p-BFaCcwNv.js → p-DDR68BFE.js} +1 -1
  114. package/dist/components/{p-MJwr71KB.js → p-DJaWpqrV.js} +1 -1
  115. package/dist/components/p-DMa2mnS4.js +5 -0
  116. package/dist/components/{p-BN3IFAWI.js → p-DNwpXqOm.js} +1 -1
  117. package/dist/components/p-DSXAyWai.js +5 -0
  118. package/dist/components/{p-dM4PJkDk.js → p-DSxJGv9x.js} +1 -1
  119. package/dist/{shift-components/p-DCHyQw_L.js → components/p-DW0CwKKo.js} +1 -1
  120. package/dist/components/{p-8IdtkeX1.js → p-DXYMGJnE.js} +1 -1
  121. package/dist/components/{p-DT2OVZtH.js → p-DYdL_Qjt.js} +1 -1
  122. package/dist/components/{p-B807sG0U.js → p-DqPjMHKd.js} +1 -1
  123. package/dist/components/{p-D0oHH_yi.js → p-DrRm2GeC.js} +1 -1
  124. package/dist/components/p-d53FlScY.js +5 -0
  125. package/dist/components/{p-B882WrlQ.js → p-okkx_Dxf.js} +1 -1
  126. package/dist/components/{p-B14TvlWp.js → p-pgyBiEEk.js} +1 -1
  127. package/dist/components/p-ri6ceTKZ.js +5 -0
  128. package/dist/components/p-uERtY6Fc.js +5 -0
  129. package/dist/components/{p-DtCTkfsR.js → p-zPFPWP-C.js} +1 -1
  130. package/dist/components/part-lookup.js +1 -1
  131. package/dist/components/service-booking-form.js +1 -1
  132. package/dist/components/shift-accordion.js +1 -1
  133. package/dist/components/shift-checkbox.js +1 -1
  134. package/dist/components/shift-slider.js +1 -1
  135. package/dist/components/shift-switch.js +1 -1
  136. package/dist/components/shift-tab-content.js +1 -1
  137. package/dist/components/shift-tabs.js +1 -1
  138. package/dist/components/ssc-lookup-form.js +1 -1
  139. package/dist/components/test-drive-form.js +1 -1
  140. package/dist/components/vehicle-accessories.js +1 -1
  141. package/dist/components/vehicle-claimable-items.js +1 -1
  142. package/dist/components/vehicle-item-claim-form.js +1 -1
  143. package/dist/components/vehicle-lookup.js +1 -1
  144. package/dist/components/vehicle-paint-thickness.js +1 -1
  145. package/dist/components/vehicle-quotation-form.js +1 -1
  146. package/dist/components/vehicle-sale-information.js +1 -1
  147. package/dist/components/vehicle-service-history.js +1 -1
  148. package/dist/components/vehicle-specification.js +1 -1
  149. package/dist/components/vehicle-warranty-details.js +1 -1
  150. package/dist/esm/dead-stock-lookup_3.entry.js +2 -44
  151. package/dist/esm/flexible-container.entry.js +1 -1
  152. package/dist/esm/form-checkbox.entry.js +3 -3
  153. package/dist/esm/form-date-picker.entry.js +1 -1
  154. package/dist/esm/form-dialog_13.entry.js +30 -17
  155. package/dist/esm/{form-input-DKjuSVBS.js → form-input-BZhw7_xV.js} +1 -1
  156. package/dist/esm/form-input_4.entry.js +8 -7
  157. package/dist/esm/form-switch.entry.js +3 -3
  158. package/dist/esm/form-time-picker.entry.js +1 -1
  159. package/dist/esm/general-form.entry.js +5 -5
  160. package/dist/esm/general-inquiry-form.entry.js +5 -5
  161. package/dist/esm/{get-language-from-url-fGWv4JfI.js → get-language-from-url-X9X1Ax8Z.js} +3 -2
  162. package/dist/esm/{get-local-language-DtdpsfQH.js → get-local-language-C_rz-aLR.js} +1 -1
  163. package/dist/esm/get-mock-files-BTL2DSUD.js +51 -0
  164. package/dist/esm/information-table.entry.js +1 -1
  165. package/dist/esm/loader.js +1 -1
  166. package/dist/esm/loading-spinner.entry.js +1 -1
  167. package/dist/esm/manufacturer-part-lookup.entry.js +2 -2
  168. package/dist/esm/part-lookup.entry.js +1 -1
  169. package/dist/esm/{phone-validator-CW0vHN1w.js → phone-validator-B9M8NqEu.js} +2 -2
  170. package/dist/esm/service-booking-form.entry.js +5 -5
  171. package/dist/esm/shift-checkbox.entry.js +1 -1
  172. package/dist/esm/shift-components.js +1 -1
  173. package/dist/esm/shift-switch.entry.js +1 -1
  174. package/dist/esm/shift-tab-content.entry.js +1 -1
  175. package/dist/esm/shift-tabs_2.entry.js +2 -2
  176. package/dist/esm/ssc-lookup-form.entry.js +5 -5
  177. package/dist/esm/{state-object-D__N3A52.js → state-object-B8DNFIL2.js} +23 -1
  178. package/dist/esm/test-drive-form.entry.js +5 -5
  179. package/dist/esm/{validation-CjIBF497.js → validation-DI1MnYKr.js} +6 -0
  180. package/dist/esm/vehicle-accessories_7.entry.js +8 -8
  181. package/dist/esm/vehicle-lookup.entry.js +20 -2
  182. package/dist/esm/vehicle-quotation-form.entry.js +3 -3
  183. package/dist/mocks/generated/standard-dealer/part-lookup.json +129 -0
  184. package/dist/mocks/generated/standard-dealer/vehicle-lookup.json +240 -0
  185. package/dist/shift-components/{p-31193ab5.entry.js → p-20048d5e.entry.js} +1 -1
  186. package/dist/shift-components/{p-fa57b412.entry.js → p-20467010.entry.js} +1 -1
  187. package/dist/shift-components/{p-dcde6026.entry.js → p-24a3746d.entry.js} +1 -1
  188. package/dist/shift-components/{p-0ea039a0.entry.js → p-2fe3538e.entry.js} +1 -1
  189. package/dist/shift-components/{p-a6ad0fdf.entry.js → p-30d616e8.entry.js} +1 -1
  190. package/dist/shift-components/p-38500489.entry.js +5 -0
  191. package/dist/shift-components/{p-37bbc653.entry.js → p-3c9fc400.entry.js} +1 -1
  192. package/dist/shift-components/p-45d46073.entry.js +5 -0
  193. package/dist/shift-components/p-51b1d98c.entry.js +5 -0
  194. package/dist/shift-components/{p-6f563241.entry.js → p-54f0635f.entry.js} +1 -1
  195. package/dist/shift-components/{p-3c5f015c.entry.js → p-676836bc.entry.js} +1 -1
  196. package/dist/shift-components/{p-b1f9f6e3.entry.js → p-76fe6d18.entry.js} +1 -1
  197. package/dist/shift-components/{p-baa868f8.entry.js → p-7a69c2a0.entry.js} +1 -1
  198. package/dist/shift-components/{p-00514dfd.entry.js → p-9684c41d.entry.js} +1 -1
  199. package/dist/shift-components/{p-DOaMIJLj.js → p-B1_PA5hq.js} +1 -1
  200. package/dist/shift-components/{p-zqc-VRCh.js → p-BJJ8dVwO.js} +1 -1
  201. package/dist/shift-components/p-C8QB-gF9.js +5 -0
  202. package/dist/shift-components/p-Cm_2J53u.js +5 -0
  203. package/dist/{components/p-D_bnut2e.js → shift-components/p-Cms5hx_v.js} +1 -1
  204. package/dist/shift-components/p-Cw1plyNz.js +5 -0
  205. package/dist/shift-components/{p-DFsecEMm.js → p-DfifGpJh.js} +1 -1
  206. package/dist/shift-components/{p-49803ea5.entry.js → p-a3796321.entry.js} +1 -1
  207. package/dist/shift-components/{p-3eb1890a.entry.js → p-a4abc248.entry.js} +1 -1
  208. package/dist/shift-components/{p-9d25df8c.entry.js → p-a7ccdc2b.entry.js} +1 -1
  209. package/dist/shift-components/p-b6381123.entry.js +5 -0
  210. package/dist/shift-components/p-b7ccfb5d.entry.js +5 -0
  211. package/dist/shift-components/{p-136ce48d.entry.js → p-bb080827.entry.js} +1 -1
  212. package/dist/shift-components/{p-d26ff83d.entry.js → p-e1994b6f.entry.js} +1 -1
  213. package/dist/shift-components/{p-fd8ec358.entry.js → p-eccf53d1.entry.js} +1 -1
  214. package/dist/shift-components/{p-8049016c.entry.js → p-f4914abc.entry.js} +1 -1
  215. package/dist/shift-components/{p-2cb2cf2c.entry.js → p-f4dbe8aa.entry.js} +1 -1
  216. package/dist/shift-components/shift-components.esm.js +1 -1
  217. package/dist/types/components/form-elements/form-input-preview.d.ts +1 -0
  218. package/dist/types/components/form-elements/form-select.d.ts +1 -0
  219. package/dist/types/components/forms/defaults/mappers.d.ts +4 -0
  220. package/dist/types/components/forms/defaults/validation.d.ts +2 -0
  221. package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +3 -0
  222. package/dist/types/components.d.ts +16 -0
  223. package/dist/types/features/mocks/types.d.ts +2 -2
  224. package/package.json +1 -1
  225. package/dist/components/p-B68P3DtP.js +0 -5
  226. package/dist/components/p-B9Kquvk4.js +0 -5
  227. package/dist/components/p-CPGswmtd.js +0 -5
  228. package/dist/components/p-CXzb5oyt.js +0 -5
  229. package/dist/components/p-CZ_bF39p.js +0 -5
  230. package/dist/components/p-DOS_lP0E.js +0 -5
  231. package/dist/components/p-MdiEjk1X.js +0 -5
  232. package/dist/components/p-aHqL2KKd.js +0 -5
  233. package/dist/components/p-rvbbkr0i.js +0 -5
  234. package/dist/mocks/part-lookup.json +0 -281
  235. package/dist/shift-components/p-16eb4c57.entry.js +0 -5
  236. package/dist/shift-components/p-6fca3b48.entry.js +0 -5
  237. package/dist/shift-components/p-9b910889.entry.js +0 -5
  238. package/dist/shift-components/p-D-IGTVAo.js +0 -5
  239. package/dist/shift-components/p-D_IVXzoK.js +0 -5
  240. package/dist/shift-components/p-d915cd1c.entry.js +0 -5
  241. package/dist/shift-components/p-e2d72fb9.entry.js +0 -5
@@ -3,14 +3,14 @@
3
3
  * Copyright (c)
4
4
  */
5
5
  import { r as registerInstance, h, H as Host, a as getElement } from './index-Bf4Ol6Qt.js';
6
- import { f as functionHooks } from './phone-validator-CW0vHN1w.js';
6
+ import { f as functionHooks } from './phone-validator-B9M8NqEu.js';
7
7
  import { c as cn } from './cn-BK16Cn81.js';
8
- import { g as getFormValidations } from './validation-CjIBF497.js';
8
+ import { g as getFormValidations } from './validation-DI1MnYKr.js';
9
9
  import { s as sharedFormLocalesSchema } from './types-BDhR4pDq.js';
10
- import { g as getLanguageFromUrl } from './get-language-from-url-fGWv4JfI.js';
10
+ import { g as getLanguageFromUrl } from './get-language-from-url-X9X1Ax8Z.js';
11
11
  import { L as LoaderIcon } from './loader-icon-DM4Vm5gX.js';
12
- import { a as getDefaultStateObject, g as getFormMappers } from './state-object-D__N3A52.js';
13
- import './get-local-language-DtdpsfQH.js';
12
+ import { a as getDefaultStateObject, g as getFormMappers } from './state-object-B8DNFIL2.js';
13
+ import './get-local-language-C_rz-aLR.js';
14
14
  import './validate-vin-CUREVASG.js';
15
15
  import './calendar-days-icon-Dz291Fau.js';
16
16
  import './decode-time-offset-DFZOybyr.js';
@@ -5,7 +5,7 @@
5
5
  import { h } from './index-Bf4Ol6Qt.js';
6
6
  import './types-BDhR4pDq.js';
7
7
  import { L as LoaderIcon, d as dateFnsExports } from './loader-icon-DM4Vm5gX.js';
8
- import { g as getPhoneValidator } from './phone-validator-CW0vHN1w.js';
8
+ import { g as getPhoneValidator } from './phone-validator-B9M8NqEu.js';
9
9
  import { c as cn } from './cn-BK16Cn81.js';
10
10
  import { C as CalendarDaysIcon } from './calendar-days-icon-Dz291Fau.js';
11
11
  import { d as decodeTimeOffset } from './decode-time-offset-DFZOybyr.js';
@@ -191,6 +191,28 @@ const getFormMappers = (stateObject, extraMappers = {}) => (Object.assign({ subm
191
191
  return options;
192
192
  };
193
193
  return h("form-select", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props, { clearable: true, fetcher: fetcher, language: language }));
194
+ }, year: ({ language, props }) => {
195
+ const minYear = (props === null || props === void 0 ? void 0 : props.min) || new Date().getFullYear() - 20;
196
+ const maxYear = (props === null || props === void 0 ? void 0 : props.max) || new Date().getFullYear();
197
+ const options = [];
198
+ for (let year = minYear; year <= maxYear; year++) {
199
+ options.push({
200
+ value: `${year}`,
201
+ label: `${year}`,
202
+ });
203
+ }
204
+ const fetcher = async ({ language }) => {
205
+ var _a, _b, _c, _d, _e, _f, _g, _h;
206
+ let parsedOptions = [...options];
207
+ if (props === null || props === void 0 ? void 0 : props.firstOption) {
208
+ parsedOptions = [{ label: ((_b = (_a = props === null || props === void 0 ? void 0 : props.firstOption) === null || _a === void 0 ? void 0 : _a.label) === null || _b === void 0 ? void 0 : _b[language]) || '', value: ((_d = (_c = props === null || props === void 0 ? void 0 : props.firstOption) === null || _c === void 0 ? void 0 : _c.value) === null || _d === void 0 ? void 0 : _d[language]) || '' }, ...parsedOptions];
209
+ }
210
+ if (props === null || props === void 0 ? void 0 : props.lastOption) {
211
+ parsedOptions = [...parsedOptions, { label: ((_f = (_e = props === null || props === void 0 ? void 0 : props.lastOption) === null || _e === void 0 ? void 0 : _e.label) === null || _f === void 0 ? void 0 : _f[language]) || '', value: ((_h = (_g = props === null || props === void 0 ? void 0 : props.lastOption) === null || _g === void 0 ? void 0 : _g.value) === null || _h === void 0 ? void 0 : _h[language]) || '' }];
212
+ }
213
+ return parsedOptions;
214
+ };
215
+ return h("form-select", Object.assign({ key: props === null || props === void 0 ? void 0 : props.name }, props, { clearable: true, fetcher: fetcher, language: language }));
194
216
  }, currentVehicleBrand: ({ form, language, props, locale }) => {
195
217
  const fetcher = async ({ signal }) => {
196
218
  var _a;
@@ -3,14 +3,14 @@
3
3
  * Copyright (c)
4
4
  */
5
5
  import { r as registerInstance, h, H as Host, a as getElement } from './index-Bf4Ol6Qt.js';
6
- import { f as functionHooks } from './phone-validator-CW0vHN1w.js';
6
+ import { f as functionHooks } from './phone-validator-B9M8NqEu.js';
7
7
  import { c as cn } from './cn-BK16Cn81.js';
8
- import { g as getFormValidations } from './validation-CjIBF497.js';
8
+ import { g as getFormValidations } from './validation-DI1MnYKr.js';
9
9
  import { s as sharedFormLocalesSchema } from './types-BDhR4pDq.js';
10
- import { g as getLanguageFromUrl } from './get-language-from-url-fGWv4JfI.js';
10
+ import { g as getLanguageFromUrl } from './get-language-from-url-X9X1Ax8Z.js';
11
11
  import { L as LoaderIcon } from './loader-icon-DM4Vm5gX.js';
12
- import { a as getDefaultStateObject, g as getFormMappers } from './state-object-D__N3A52.js';
13
- import './get-local-language-DtdpsfQH.js';
12
+ import { a as getDefaultStateObject, g as getFormMappers } from './state-object-B8DNFIL2.js';
13
+ import './get-local-language-C_rz-aLR.js';
14
14
  import './validate-vin-CUREVASG.js';
15
15
  import './calendar-days-icon-Dz291Fau.js';
16
16
  import './decode-time-offset-DFZOybyr.js';
@@ -82,6 +82,12 @@ const getFormValidations = (stateObject, extraFields = {}) => {
82
82
  is: true,
83
83
  otherwise: schema => schema.optional(),
84
84
  then: schema => schema.required(require('date')),
85
+ }), year: create$6()
86
+ .meta(meta('year'))
87
+ .when(condition('year'), {
88
+ is: true,
89
+ otherwise: schema => schema.optional(),
90
+ then: schema => schema.required(require('year')),
85
91
  }), time: create$6()
86
92
  .meta(meta('time'))
87
93
  .when(condition('time'), {