@verdocs/web-sdk 6.10.0 → 6.10.1

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 (232) hide show
  1. package/dist/cjs/{Environment-3vWt0C1Q.js → Environment-CP-XG6Lt.js} +2 -3
  2. package/dist/cjs/{Environment-3vWt0C1Q.js.map → Environment-CP-XG6Lt.js.map} +1 -1
  3. package/dist/cjs/_commonjsHelpers-CFO10eej.js +10 -0
  4. package/dist/cjs/_commonjsHelpers-CFO10eej.js.map +1 -0
  5. package/dist/cjs/{en-DyXpAt1T.js → en-B5Y8bwF8.js} +3 -3
  6. package/dist/cjs/{en-DyXpAt1T.js.map → en-B5Y8bwF8.js.map} +1 -1
  7. package/dist/cjs/index-DLmnUl1_.js +4 -4
  8. package/dist/cjs/{interact.min-BAnZvLwr.js → interact.min-CGi6ndGs.js} +3 -3
  9. package/dist/cjs/{interact.min-BAnZvLwr.js.map → interact.min-CGi6ndGs.js.map} +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/verdocs-adopt-signature-dialog_7.cjs.entry.js +1 -1
  12. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +16 -5206
  13. package/dist/cjs/verdocs-contact-picker.cjs.entry.js.map +1 -1
  14. package/dist/cjs/verdocs-date-input.cjs.entry.js +2 -2
  15. package/dist/cjs/verdocs-field-attachment_11.cjs.entry.js +3 -3
  16. package/dist/cjs/verdocs-field-payment.cjs.entry.js +2 -2
  17. package/dist/cjs/verdocs-preview_6.cjs.entry.js +3 -3
  18. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  19. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +16 -32
  20. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js.map +1 -1
  21. package/dist/components/p-161tgqin.js +2 -0
  22. package/dist/components/p-161tgqin.js.map +1 -0
  23. package/dist/components/{p-C_Xku1v2.js → p-29evahil.js} +2 -2
  24. package/dist/components/p-B85MJLTf.js +2 -0
  25. package/dist/components/{p-B_dAoCMu.js → p-BXCSHTRK.js} +2 -2
  26. package/dist/components/{p-pyA5cdVX.js → p-C-VgmSdO.js} +2 -2
  27. package/dist/{verdocs-web-sdk/p-CGNX5HqF.js → components/p-C4ygd3v_.js} +2 -2
  28. package/dist/components/{p-BxOEoXie.js → p-CD_W_8Te.js} +2 -2
  29. package/dist/components/{p-BT8wzCXz.js → p-CNS_xfUy.js} +2 -2
  30. package/dist/components/{p-DhO1wfh-.js → p-CabZXA4q.js} +2 -2
  31. package/dist/components/{p-DVGumEtx.js → p-Ct2pWzCQ.js} +2 -2
  32. package/dist/components/{p-BwEGkh_6.js → p-CwFFcX13.js} +2 -2
  33. package/dist/components/{p-Yxa93LOl.js → p-D7XKYAmn.js} +2 -2
  34. package/dist/components/{p-DwPH0TQ4.js → p-DBDp9BWW.js} +2 -2
  35. package/dist/components/{p-Dmw-lE3L.js → p-DFxdTSl_.js} +2 -2
  36. package/dist/components/{p-5E7bNT3k.js → p-DOj-ooY6.js} +2 -2
  37. package/dist/components/{p-DjOTs59Z.js → p-DYbHyMbx.js} +2 -2
  38. package/dist/components/{p-DXLcCG08.js → p-D_uebJGM.js} +2 -2
  39. package/dist/{verdocs-web-sdk/p-CjPsvAbb.js → components/p-DcAXub3q.js} +2 -2
  40. package/dist/components/{p-CnoHN1S8.js → p-DpyO-OJK.js} +2 -2
  41. package/dist/components/{p-B845hxhl.js → p-DuEnrEJr.js} +2 -2
  42. package/dist/components/{p-Cfiprngx.js → p-NAf9Gqm4.js} +2 -2
  43. package/dist/components/{p-BasWFMeN.js → p-PIdGCYte.js} +2 -2
  44. package/dist/components/verdocs-build.js +1 -1
  45. package/dist/components/verdocs-contact-picker.js +1 -1
  46. package/dist/components/verdocs-date-input.js +1 -1
  47. package/dist/components/verdocs-delegate-dialog.js +1 -1
  48. package/dist/components/verdocs-field-attachment.js +1 -1
  49. package/dist/components/verdocs-field-checkbox.js +1 -1
  50. package/dist/components/verdocs-field-date.js +1 -1
  51. package/dist/components/verdocs-field-dropdown.js +1 -1
  52. package/dist/components/verdocs-field-initial.js +1 -1
  53. package/dist/components/verdocs-field-payment.js +1 -1
  54. package/dist/components/verdocs-field-radio.js +1 -1
  55. package/dist/components/verdocs-field-signature.js +1 -1
  56. package/dist/components/verdocs-field-textarea.js +1 -1
  57. package/dist/components/verdocs-field-textbox.js +1 -1
  58. package/dist/components/verdocs-field-timestamp.js +1 -1
  59. package/dist/components/verdocs-otp-dialog.js +1 -1
  60. package/dist/components/verdocs-passcode-dialog.js +1 -1
  61. package/dist/components/verdocs-preview.js +1 -1
  62. package/dist/components/verdocs-send.js +1 -1
  63. package/dist/components/verdocs-sign.js +1 -1
  64. package/dist/components/verdocs-template-document-page.js +1 -1
  65. package/dist/components/verdocs-template-fields.js +1 -1
  66. package/dist/esm/{Environment-C_Xku1v2.js → Environment-29evahil.js} +3 -3
  67. package/dist/esm/{Environment-C_Xku1v2.js.map → Environment-29evahil.js.map} +1 -1
  68. package/dist/esm/_commonjsHelpers-B85MJLTf.js +8 -0
  69. package/dist/esm/_commonjsHelpers-B85MJLTf.js.map +1 -0
  70. package/dist/esm/{en-bsV5YfOZ.js → en-DZgdXBKq.js} +3 -3
  71. package/dist/{esm-es5/en-bsV5YfOZ.js.map → esm/en-DZgdXBKq.js.map} +1 -1
  72. package/dist/esm/index-CjTHbolG.js +4 -4
  73. package/dist/esm/{interact.min-BepJAdBZ.js → interact.min-BO_a_7pQ.js} +3 -3
  74. package/dist/{esm-es5/interact.min-BepJAdBZ.js.map → esm/interact.min-BO_a_7pQ.js.map} +1 -1
  75. package/dist/esm/loader.js +1 -1
  76. package/dist/esm/{utils-D9l-GFdv.js → utils-Bh3zb1Xs.js} +3 -3
  77. package/dist/{esm-es5/utils-D9l-GFdv.js.map → esm/utils-Bh3zb1Xs.js.map} +1 -1
  78. package/dist/esm/verdocs-adopt-signature-dialog_7.entry.js +1 -1
  79. package/dist/esm/verdocs-contact-picker.entry.js +17 -5207
  80. package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
  81. package/dist/esm/verdocs-date-input.entry.js +2 -2
  82. package/dist/esm/verdocs-download-dialog_4.entry.js +1 -1
  83. package/dist/esm/verdocs-envelopes-list.entry.js +1 -1
  84. package/dist/esm/verdocs-field-attachment_11.entry.js +3 -3
  85. package/dist/esm/verdocs-field-payment.entry.js +2 -2
  86. package/dist/esm/verdocs-pagination_2.entry.js +1 -1
  87. package/dist/esm/verdocs-preview_6.entry.js +4 -4
  88. package/dist/esm/verdocs-sign.entry.js +1 -1
  89. package/dist/esm/verdocs-signing-progress.entry.js +1 -1
  90. package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
  91. package/dist/esm/verdocs-web-sdk.js +1 -1
  92. package/dist/esm-es5/{Environment-C_Xku1v2.js → Environment-29evahil.js} +2 -2
  93. package/dist/esm-es5/{Environment-C_Xku1v2.js.map → Environment-29evahil.js.map} +1 -1
  94. package/dist/esm-es5/_commonjsHelpers-B85MJLTf.js +2 -0
  95. package/dist/esm-es5/_commonjsHelpers-B85MJLTf.js.map +1 -0
  96. package/dist/esm-es5/{en-bsV5YfOZ.js → en-DZgdXBKq.js} +2 -2
  97. package/dist/{esm/en-bsV5YfOZ.js.map → esm-es5/en-DZgdXBKq.js.map} +1 -1
  98. package/dist/esm-es5/index-CjTHbolG.js +1 -1
  99. package/dist/esm-es5/{interact.min-BepJAdBZ.js → interact.min-BO_a_7pQ.js} +2 -2
  100. package/dist/{esm/interact.min-BepJAdBZ.js.map → esm-es5/interact.min-BO_a_7pQ.js.map} +1 -1
  101. package/dist/esm-es5/loader.js +1 -1
  102. package/dist/esm-es5/{utils-D9l-GFdv.js → utils-Bh3zb1Xs.js} +2 -2
  103. package/dist/{esm/utils-D9l-GFdv.js.map → esm-es5/utils-Bh3zb1Xs.js.map} +1 -1
  104. package/dist/esm-es5/verdocs-adopt-signature-dialog_7.entry.js +1 -1
  105. package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -2
  106. package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
  107. package/dist/esm-es5/verdocs-date-input.entry.js +1 -1
  108. package/dist/esm-es5/verdocs-download-dialog_4.entry.js +1 -1
  109. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  110. package/dist/esm-es5/verdocs-field-attachment_11.entry.js +1 -1
  111. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  112. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  113. package/dist/esm-es5/verdocs-preview_6.entry.js +1 -1
  114. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  115. package/dist/esm-es5/verdocs-signing-progress.entry.js +1 -1
  116. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  117. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  118. package/dist/types/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.d.ts +0 -2
  119. package/dist/verdocs-web-sdk/{p-7e6d153f.system.entry.js → p-0d19368a.system.entry.js} +2 -2
  120. package/dist/verdocs-web-sdk/{p-e95723ac.entry.js → p-186984ee.entry.js} +2 -2
  121. package/dist/verdocs-web-sdk/{p-d60cfa3e.system.entry.js → p-234d351c.system.entry.js} +2 -2
  122. package/dist/verdocs-web-sdk/{p-ad40c4aa.system.entry.js → p-24e2db66.system.entry.js} +2 -2
  123. package/dist/verdocs-web-sdk/{p-C_Xku1v2.js → p-29evahil.js} +2 -2
  124. package/dist/verdocs-web-sdk/{p-C_Xku1v2.js.map → p-29evahil.js.map} +1 -1
  125. package/dist/verdocs-web-sdk/p-363d6565.system.entry.js +2 -0
  126. package/dist/verdocs-web-sdk/p-363d6565.system.entry.js.map +1 -0
  127. package/dist/verdocs-web-sdk/{p-e608d2bc.system.entry.js → p-4a2d69b9.system.entry.js} +2 -2
  128. package/dist/verdocs-web-sdk/{p-50d51d96.entry.js → p-5c2025ca.entry.js} +2 -2
  129. package/dist/verdocs-web-sdk/{p-f97ca49e.entry.js → p-5e934a5e.entry.js} +2 -2
  130. package/dist/verdocs-web-sdk/{p-33cfc977.system.entry.js → p-62e4605d.system.entry.js} +2 -2
  131. package/dist/verdocs-web-sdk/{p-edab1fed.system.entry.js → p-6af0110a.system.entry.js} +3 -3
  132. package/dist/verdocs-web-sdk/{p-b0aafc0a.entry.js → p-733acaa6.entry.js} +2 -2
  133. package/dist/verdocs-web-sdk/{p-04d2fa80.system.entry.js → p-74838066.system.entry.js} +2 -2
  134. package/dist/verdocs-web-sdk/{p-f2876180.entry.js → p-8eb09dd6.entry.js} +2 -2
  135. package/dist/verdocs-web-sdk/{p-d7284af0.entry.js → p-8f50f83f.entry.js} +2 -2
  136. package/dist/verdocs-web-sdk/p-97bdb772.entry.js +2 -0
  137. package/dist/verdocs-web-sdk/p-97bdb772.entry.js.map +1 -0
  138. package/dist/verdocs-web-sdk/p-B85MJLTf.js +2 -0
  139. package/dist/verdocs-web-sdk/p-B85MJLTf.js.map +1 -0
  140. package/dist/verdocs-web-sdk/p-BdZ5Ghsa.system.js +1 -1
  141. package/dist/{components/p-CGNX5HqF.js → verdocs-web-sdk/p-C4ygd3v_.js} +2 -2
  142. package/dist/verdocs-web-sdk/{p-CGNX5HqF.js.map → p-C4ygd3v_.js.map} +1 -1
  143. package/dist/verdocs-web-sdk/{p-T412l3FU.js → p-CGsVCy75.js} +2 -2
  144. package/dist/verdocs-web-sdk/{p-T412l3FU.js.map → p-CGsVCy75.js.map} +1 -1
  145. package/dist/verdocs-web-sdk/p-CHg64SCg.system.js +2 -0
  146. package/dist/verdocs-web-sdk/{p-C9y1KCYV.system.js.map → p-CHg64SCg.system.js.map} +1 -1
  147. package/dist/verdocs-web-sdk/p-D6-Ny6z1.system.js +2 -0
  148. package/dist/verdocs-web-sdk/p-D6-Ny6z1.system.js.map +1 -0
  149. package/dist/verdocs-web-sdk/{p-DE0Cygqz.system.js → p-DQMNv-mt.system.js} +2 -2
  150. package/dist/verdocs-web-sdk/{p-DE0Cygqz.system.js.map → p-DQMNv-mt.system.js.map} +1 -1
  151. package/dist/{components/p-CjPsvAbb.js → verdocs-web-sdk/p-DcAXub3q.js} +2 -2
  152. package/dist/verdocs-web-sdk/{p-CjPsvAbb.js.map → p-DcAXub3q.js.map} +1 -1
  153. package/dist/verdocs-web-sdk/{p-C06jLDFm.system.js → p-RE5sZHi0.system.js} +2 -2
  154. package/dist/verdocs-web-sdk/{p-C06jLDFm.system.js.map → p-RE5sZHi0.system.js.map} +1 -1
  155. package/dist/verdocs-web-sdk/{p-297d1631.system.entry.js → p-b3ac740e.system.entry.js} +2 -2
  156. package/dist/verdocs-web-sdk/{p-1258cb3f.system.entry.js → p-c09ed2af.system.entry.js} +2 -2
  157. package/dist/verdocs-web-sdk/{p-40f5ecf3.system.entry.js → p-c4c09247.system.entry.js} +2 -2
  158. package/dist/verdocs-web-sdk/{p-2e76c944.entry.js → p-c60bf9c2.entry.js} +2 -2
  159. package/dist/verdocs-web-sdk/{p-eb8091da.system.entry.js → p-d000b2aa.system.entry.js} +2 -2
  160. package/dist/verdocs-web-sdk/{p-d0e8419b.entry.js → p-d06d9cfd.entry.js} +3 -3
  161. package/dist/verdocs-web-sdk/{p-e632e92c.entry.js → p-e624dc88.entry.js} +2 -2
  162. package/dist/verdocs-web-sdk/{p-2d72560a.entry.js → p-e910098d.entry.js} +2 -2
  163. package/dist/verdocs-web-sdk/{p-11c3e5bb.entry.js → p-f9ef8d34.entry.js} +2 -2
  164. package/dist/verdocs-web-sdk/{p-EtGQEmqo.system.js → p-nfw6V5pF.system.js} +2 -2
  165. package/dist/verdocs-web-sdk/{p-EtGQEmqo.system.js.map → p-nfw6V5pF.system.js.map} +1 -1
  166. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  167. package/package.json +1 -1
  168. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +0 -13
  169. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js.map +0 -1
  170. package/dist/collection/utils/Unleash.js +0 -18
  171. package/dist/collection/utils/Unleash.js.map +0 -1
  172. package/dist/components/p-BFTU3MAI.js +0 -2
  173. package/dist/components/p-CPYFXW2q.js +0 -3
  174. package/dist/components/p-CPYFXW2q.js.map +0 -1
  175. package/dist/custom-elements.json +0 -2501
  176. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +0 -10
  177. package/dist/esm/_commonjsHelpers-BFTU3MAI.js.map +0 -1
  178. package/dist/esm-es5/_commonjsHelpers-BFTU3MAI.js +0 -2
  179. package/dist/esm-es5/_commonjsHelpers-BFTU3MAI.js.map +0 -1
  180. package/dist/types/utils/Unleash.d.ts +0 -14
  181. package/dist/verdocs-web-sdk/p-1ce27c81.system.entry.js +0 -4
  182. package/dist/verdocs-web-sdk/p-1ce27c81.system.entry.js.map +0 -1
  183. package/dist/verdocs-web-sdk/p-4e84a5b6.entry.js +0 -3
  184. package/dist/verdocs-web-sdk/p-4e84a5b6.entry.js.map +0 -1
  185. package/dist/verdocs-web-sdk/p-BFTU3MAI.js +0 -2
  186. package/dist/verdocs-web-sdk/p-BFTU3MAI.js.map +0 -1
  187. package/dist/verdocs-web-sdk/p-Bzy18UgU.system.js +0 -2
  188. package/dist/verdocs-web-sdk/p-Bzy18UgU.system.js.map +0 -1
  189. package/dist/verdocs-web-sdk/p-C9y1KCYV.system.js +0 -2
  190. /package/dist/components/{p-C_Xku1v2.js.map → p-29evahil.js.map} +0 -0
  191. /package/dist/components/{p-BFTU3MAI.js.map → p-B85MJLTf.js.map} +0 -0
  192. /package/dist/components/{p-B_dAoCMu.js.map → p-BXCSHTRK.js.map} +0 -0
  193. /package/dist/components/{p-pyA5cdVX.js.map → p-C-VgmSdO.js.map} +0 -0
  194. /package/dist/components/{p-CGNX5HqF.js.map → p-C4ygd3v_.js.map} +0 -0
  195. /package/dist/components/{p-BxOEoXie.js.map → p-CD_W_8Te.js.map} +0 -0
  196. /package/dist/components/{p-BT8wzCXz.js.map → p-CNS_xfUy.js.map} +0 -0
  197. /package/dist/components/{p-DhO1wfh-.js.map → p-CabZXA4q.js.map} +0 -0
  198. /package/dist/components/{p-DVGumEtx.js.map → p-Ct2pWzCQ.js.map} +0 -0
  199. /package/dist/components/{p-BwEGkh_6.js.map → p-CwFFcX13.js.map} +0 -0
  200. /package/dist/components/{p-Yxa93LOl.js.map → p-D7XKYAmn.js.map} +0 -0
  201. /package/dist/components/{p-DwPH0TQ4.js.map → p-DBDp9BWW.js.map} +0 -0
  202. /package/dist/components/{p-Dmw-lE3L.js.map → p-DFxdTSl_.js.map} +0 -0
  203. /package/dist/components/{p-5E7bNT3k.js.map → p-DOj-ooY6.js.map} +0 -0
  204. /package/dist/components/{p-DjOTs59Z.js.map → p-DYbHyMbx.js.map} +0 -0
  205. /package/dist/components/{p-DXLcCG08.js.map → p-D_uebJGM.js.map} +0 -0
  206. /package/dist/components/{p-CjPsvAbb.js.map → p-DcAXub3q.js.map} +0 -0
  207. /package/dist/components/{p-CnoHN1S8.js.map → p-DpyO-OJK.js.map} +0 -0
  208. /package/dist/components/{p-B845hxhl.js.map → p-DuEnrEJr.js.map} +0 -0
  209. /package/dist/components/{p-Cfiprngx.js.map → p-NAf9Gqm4.js.map} +0 -0
  210. /package/dist/components/{p-BasWFMeN.js.map → p-PIdGCYte.js.map} +0 -0
  211. /package/dist/verdocs-web-sdk/{p-7e6d153f.system.entry.js.map → p-0d19368a.system.entry.js.map} +0 -0
  212. /package/dist/verdocs-web-sdk/{p-e95723ac.entry.js.map → p-186984ee.entry.js.map} +0 -0
  213. /package/dist/verdocs-web-sdk/{p-d60cfa3e.system.entry.js.map → p-234d351c.system.entry.js.map} +0 -0
  214. /package/dist/verdocs-web-sdk/{p-ad40c4aa.system.entry.js.map → p-24e2db66.system.entry.js.map} +0 -0
  215. /package/dist/verdocs-web-sdk/{p-e608d2bc.system.entry.js.map → p-4a2d69b9.system.entry.js.map} +0 -0
  216. /package/dist/verdocs-web-sdk/{p-50d51d96.entry.js.map → p-5c2025ca.entry.js.map} +0 -0
  217. /package/dist/verdocs-web-sdk/{p-f97ca49e.entry.js.map → p-5e934a5e.entry.js.map} +0 -0
  218. /package/dist/verdocs-web-sdk/{p-33cfc977.system.entry.js.map → p-62e4605d.system.entry.js.map} +0 -0
  219. /package/dist/verdocs-web-sdk/{p-edab1fed.system.entry.js.map → p-6af0110a.system.entry.js.map} +0 -0
  220. /package/dist/verdocs-web-sdk/{p-b0aafc0a.entry.js.map → p-733acaa6.entry.js.map} +0 -0
  221. /package/dist/verdocs-web-sdk/{p-04d2fa80.system.entry.js.map → p-74838066.system.entry.js.map} +0 -0
  222. /package/dist/verdocs-web-sdk/{p-f2876180.entry.js.map → p-8eb09dd6.entry.js.map} +0 -0
  223. /package/dist/verdocs-web-sdk/{p-d7284af0.entry.js.map → p-8f50f83f.entry.js.map} +0 -0
  224. /package/dist/verdocs-web-sdk/{p-297d1631.system.entry.js.map → p-b3ac740e.system.entry.js.map} +0 -0
  225. /package/dist/verdocs-web-sdk/{p-1258cb3f.system.entry.js.map → p-c09ed2af.system.entry.js.map} +0 -0
  226. /package/dist/verdocs-web-sdk/{p-40f5ecf3.system.entry.js.map → p-c4c09247.system.entry.js.map} +0 -0
  227. /package/dist/verdocs-web-sdk/{p-2e76c944.entry.js.map → p-c60bf9c2.entry.js.map} +0 -0
  228. /package/dist/verdocs-web-sdk/{p-eb8091da.system.entry.js.map → p-d000b2aa.system.entry.js.map} +0 -0
  229. /package/dist/verdocs-web-sdk/{p-d0e8419b.entry.js.map → p-d06d9cfd.entry.js.map} +0 -0
  230. /package/dist/verdocs-web-sdk/{p-e632e92c.entry.js.map → p-e624dc88.entry.js.map} +0 -0
  231. /package/dist/verdocs-web-sdk/{p-2d72560a.entry.js.map → p-e910098d.entry.js.map} +0 -0
  232. /package/dist/verdocs-web-sdk/{p-11c3e5bb.entry.js.map → p-f9ef8d34.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var i,e=1,n=arguments.length;e<n;e++){i=arguments[e];for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r))t[r]=i[r]}return t};return __assign.apply(this,arguments)};import{g as getDefaultExportFromCjs}from"./_commonjsHelpers-BFTU3MAI.js";var airDatepicker$1={exports:{}};var airDatepicker=airDatepicker$1.exports;var hasRequiredAirDatepicker;function requireAirDatepicker(){if(hasRequiredAirDatepicker)return airDatepicker$1.exports;hasRequiredAirDatepicker=1;(function(t,i){!function(i,e){t.exports=e()}(airDatepicker,(function(){return function(){var t;var i={d:function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:true,get:e[n]})},o:function(t,i){return Object.prototype.hasOwnProperty.call(t,i)}},e={};i.d(e,{default:function(){return L}});var n={days:"days",months:"months",years:"years",day:"day",month:"month",year:"year",eventChangeViewDate:"changeViewDate",eventChangeCurrentView:"changeCurrentView",eventChangeFocusDate:"changeFocusDate",eventChangeSelectedDate:"changeSelectedDate",eventChangeTime:"changeTime",eventChangeLastSelectedDate:"changeLastSelectedDate",actionSelectDate:"selectDate",actionUnselectDate:"unselectDate",cssClassWeekend:"-weekend-"},r={classes:"",inline:false,locale:{days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],daysShort:["Вос","Пон","Вто","Сре","Чет","Пят","Суб"],daysMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthsShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],today:"Сегодня",clear:"Очистить",dateFormat:"dd.MM.yyyy",timeFormat:"HH:mm",firstDay:1},startDate:new Date,firstDay:"",weekends:[6,0],dateFormat:"",altField:"",altFieldDateFormat:"T",toggleSelected:true,keyboardNav:true,selectedDates:false,container:"",isMobile:false,visible:false,position:"bottom left",offset:12,view:n.days,minView:n.days,showOtherMonths:true,selectOtherMonths:true,moveToOtherMonthsOnSelect:true,showOtherYears:true,selectOtherYears:true,moveToOtherYearsOnSelect:true,minDate:"",maxDate:"",disableNavWhenOutOfRange:true,multipleDates:false,multipleDatesSeparator:", ",range:false,dynamicRange:true,buttons:false,monthsField:"monthsShort",showEvent:"focus",autoClose:false,fixedHeight:false,prevHtml:'<svg><path d="M 17,12 l -5,5 l 5,5"></path></svg>',nextHtml:'<svg><path d="M 14,12 l 5,5 l -5,5"></path></svg>',navTitles:{days:"MMMM, <i>yyyy</i>",months:"yyyy",years:"yyyy1 - yyyy2"},timepicker:false,onlyTimepicker:false,dateTimeSeparator:" ",timeFormat:"",minHours:0,maxHours:24,minMinutes:0,maxMinutes:59,hoursStep:1,minutesStep:1,onSelect:false,onChangeViewDate:false,onChangeView:false,onRenderCell:false,onShow:false,onHide:false,onClickDayName:false};function s(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return"string"==typeof t?i.querySelector(t):t}function a(){var t;var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=i.tagName,n=e===void 0?"div":e,r=i.className,s=r===void 0?"":r,a=i.innerHtml,h=a===void 0?"":a,u=i.id,c=u===void 0?"":u,f=i.attrs,v=f===void 0?{}:f,l=document.createElement(n);return s&&(t=l.classList).add.apply(t,s.split(" ")),c&&(l.id=c),h&&(l.innerHTML=h),v&&o(l,v),l}function o(t,i){for(var e=0,n=Object.entries(i);e<n.length;e++){var r=n[e],s=r[0],a=r[1];void 0!==a&&t.setAttribute(s,a)}return t}function h(t){return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()}function u(t){var i=t.getHours(),e=c(i),n=e.hours,r=e.dayPeriod;return{year:t.getFullYear(),month:t.getMonth(),fullMonth:t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,date:t.getDate(),fullDate:t.getDate()<10?"0"+t.getDate():t.getDate(),day:t.getDay(),hours:i,fullHours:f(i),hours12:n,dayPeriod:r,fullHours12:f(n),minutes:t.getMinutes(),fullMinutes:t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes()}}function c(t){return{dayPeriod:t>11?"pm":"am",hours:t%12==0?12:t%12}}function f(t){return t<10?"0"+t:t}function v(t){var i=10*Math.floor(t.getFullYear()/10);return[i,i+9]}function l(){var t=[];for(var i=arguments.length,e=new Array(i),n=0;n<i;n++)e[n]=arguments[n];return e.forEach((function(i){if("object"==typeof i)for(var e in i)i[e]&&t.push(e);else i&&t.push(i)})),t.join(" ")}function d(t,i){var e;var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.days;if(!t||!i)return false;var s=u(t),a=u(i);return(e={},e[n.days]=s.date===a.date&&s.month===a.month&&s.year===a.year,e[n.months]=s.month===a.month&&s.year===a.year,e[n.years]=s.year===a.year,e)[r]}function p(t,i,e){var n=y(t,false).getTime(),r=y(i,false).getTime();return e?n>=r:n>r}function m(t,i){return!p(t,i,true)}function y(t){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=new Date(t.getTime());return"boolean"!=typeof i||i||function(t){t.setHours(0,0,0,0)}(e),e}function b(t,i,e){t.length?t.forEach((function(t){t.addEventListener(i,e)})):t.addEventListener(i,e)}function w(t,i){return!(!t||t===document||t instanceof DocumentFragment)&&(t.matches(i)?t:w(t.parentNode,i))}function g(t,i,e){return t>e?e:t<i?i:t}function k(t){for(var i=arguments.length,e=new Array(i>1?i-1:0),n=1;n<i;n++)e[n-1]=arguments[n];return e.filter((function(t){return t})).forEach((function(i){for(var e=0,n=Object.entries(i);e<n.length;e++){var r=n[e],s=r[0],a=r[1];if(void 0!==a&&"[object Object]"===a.toString()){var o=void 0!==t[s]?t[s].toString():void 0,h=a.toString(),u=Array.isArray(a)?[]:{};t[s]=t[s]?o!==h?u:t[s]:u,k(t[s],a)}else t[s]=a}})),t}function D(t){var i=t;return t instanceof Date||("string"==typeof t&&/^\d{4}-\d{2}-\d{2}$/.test(t)&&(t+="T00:00:00"),i=new Date(t)),isNaN(i.getTime())&&(console.log('Unable to convert value "'.concat(t,'" to Date object')),i=false),i}function S(t){var i="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+i+")("+t+")($|<|"+i+")","g")}function M(t,i,e){return(i=function(t){var i=function(t,i){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof i?i:String(i)}(i))in t?Object.defineProperty(t,i,{value:e,enumerable:true,configurable:true,writable:true}):t[i]=e,t}var O=function(){function t(){var t=this;var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=i.type,n=i.date,r=i.dp,s=i.opts,a=i.body;M(this,"focus",(function(){t.$cell.classList.add("-focus-"),t.focused=true})),M(this,"removeFocus",(function(){t.$cell.classList.remove("-focus-"),t.focused=false})),M(this,"select",(function(){t.$cell.classList.add("-selected-"),t.selected=true})),M(this,"removeSelect",(function(){t.$cell.classList.remove("-selected-","-range-from-","-range-to-"),t.selected=false})),M(this,"onChangeSelectedDate",(function(){t.isDisabled||(t._handleSelectedStatus(),t.opts.range&&t._handleRangeStatus())})),M(this,"onChangeFocusDate",(function(i){if(!i)return void(t.focused&&t.removeFocus());var e=d(i,t.date,t.type);e?t.focus():!e&&t.focused&&t.removeFocus(),t.opts.range&&t._handleRangeStatus()})),M(this,"render",(function(){return t.$cell.innerHTML=t._getHtml(),t._handleClasses(),t.$cell})),this.type=e,this.singleType=this.type.slice(0,-1),this.date=n,this.dp=r,this.opts=s,this.body=a,this.customData=false,this.init()}t.prototype.init=function(){var t,i;var e=this.opts.onRenderCell;e&&(this.customData=e({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),null!==(t=this.customData)&&void 0!==t&&t.disabled?this.dp.disableDate(this.date):false===(null===(i=this.customData)||void 0===i?void 0:i.disabled)&&this.dp.enableDate(this.date)};t.prototype._bindDatepickerEvents=function(){this.dp.on(n.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(n.eventChangeFocusDate,this.onChangeFocusDate)};t.prototype.unbindDatepickerEvents=function(){this.dp.off(n.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(n.eventChangeFocusDate,this.onChangeFocusDate)};t.prototype._createElement=function(){var t;var i=u(this.date),e=i.year,n=i.month,r=i.fullMonth,s=i.date,o=i.fullDate,h=(null===(t=this.customData)||void 0===t?void 0:t.attrs)||{};this.$cell=a({attrs:__assign({"data-year":e,"data-month":n,"data-date":s,"data-iso-date":"".concat(e,"-").concat(r,"-").concat(o)},h)}),this.$cell.adpCell=this};t.prototype._getClassName=function(){var t;var i=new Date,e=this.opts,r=e.selectOtherMonths,s=e.selectOtherYears,a=this.dp,o=a.minDate,h=a.maxDate,c=a.isDateDisabled,f=u(this.date).day,v=this._isOutOfMinMaxRange(),p=c(this.date),m=l("air-datepicker-cell","-".concat(this.singleType,"-"),{"-current-":d(i,this.date,this.type),"-min-date-":o&&d(o,this.date,this.type),"-max-date-":h&&d(h,this.date,this.type)}),y="";switch(this.type){case n.days:y=l({"-weekend-":this.dp.isWeekend(f),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!r||v||p});break;case n.months:y=l({"-disabled-":v});break;case n.years:y=l({"-other-decade-":this.isOtherDecade,"-disabled-":v||this.isOtherDecade&&!s})}return l(m,y,null===(t=this.customData)||void 0===t?void 0:t.classes).split(" ")};t.prototype._getHtml=function(){var t;var i=u(this.date),e=i.year,r=i.month,s=i.date,a=this.opts,o=a.showOtherMonths,h=a.showOtherYears;if(null!==(t=this.customData)&&void 0!==t&&t.html)return this.customData.html;switch(this.type){case n.days:return!o&&this.isOtherMonth?"":s;case n.months:return this.dp.locale[this.opts.monthsField][r];case n.years:return!h&&this.isOtherDecade?"":e}};t.prototype._isOutOfMinMaxRange=function(){var t=this.dp,i=t.minDate,e=t.maxDate,r=this,s=r.type,a=r.date,o=u(a),h=o.month,c=o.year,f=o.date,v=s===n.days,l=s===n.years,d=!!i&&new Date(c,l?i.getMonth():h,v?f:i.getDate()),y=!!e&&new Date(c,l?e.getMonth():h,v?f:e.getDate());return i&&e?m(d,i)||p(y,e):i?m(d,i):e?p(y,e):void 0};t.prototype.destroy=function(){this.unbindDatepickerEvents()};t.prototype._handleRangeStatus=function(){var t;var i=this.dp,e=i.selectedDates,n=i.focusDate,r=i.rangeDateTo,s=i.rangeDateFrom,a=e.length;if(this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),!a)return;var o=s,h=r;if(1===a&&n){var u=p(n,e[0]);o=u?e[0]:n,h=u?n:e[0]}var c=l({"-in-range-":o&&h&&(f=this.date,v=o,y=h,p(f,v)&&m(f,y)),"-range-from-":o&&d(this.date,o,this.type),"-range-to-":h&&d(this.date,h,this.type)});var f,v,y;c&&(t=this.$cell.classList).add.apply(t,c.split(" "))};t.prototype._handleSelectedStatus=function(){var t=this.dp._checkIfDateIsSelected(this.date,this.type);t?this.select():!t&&this.selected&&this.removeSelect()};t.prototype._handleInitialFocusStatus=function(){d(this.dp.focusDate,this.date,this.type)&&this.focus()};t.prototype._handleClasses=function(){var t;this.$cell.setAttribute("class",""),this._handleInitialFocusStatus(),this.dp.hasSelectedDates&&(this._handleSelectedStatus(),this.dp.opts.range&&this._handleRangeStatus()),(t=this.$cell.classList).add.apply(t,this._getClassName())};Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.$cell.matches(".-disabled-")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isOtherMonth",{get:function(){return this.dp.isOtherMonth(this.date)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isOtherDecade",{get:function(){return this.dp.isOtherDecade(this.date)},enumerable:false,configurable:true});return t}();function C(t,i,e){return(i=function(t){var i=function(t,i){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof i?i:String(i)}(i))in t?Object.defineProperty(t,i,{value:e,enumerable:true,configurable:true,writable:true}):t[i]=e,t}var j=(t={},t[n.days]='<div class="air-datepicker-body--day-names"></div><div class="air-datepicker-body--cells -'.concat(n.days,'-"></div>'),t[n.months]='<div class="air-datepicker-body--cells -'.concat(n.months,'-"></div>'),t[n.years]='<div class="air-datepicker-body--cells -'.concat(n.years,'-"></div>'),t);var A=".air-datepicker-cell";var T=function(){function t(t){var i=this;var e=t.dp,r=t.type,s=t.opts;C(this,"handleClick",(function(t){var e=t.target.closest(A).adpCell;if(e.isDisabled)return;if(!i.dp.isMinViewReached)return void i.dp.down();var n=i.dp._checkIfDateIsSelected(e.date,e.type);n?i.dp._handleAlreadySelectedDates(n,e.date):i.dp.selectDate(e.date)})),C(this,"handleDayNameClick",(function(t){var e=t.target.getAttribute("data-day-index");i.opts.onClickDayName({dayIndex:Number(e),datepicker:i.dp})})),C(this,"onChangeCurrentView",(function(t){t!==i.type?i.hide():(i.show(),i.render())})),C(this,"onMouseOverCell",(function(t){var e=w(t.target,A);i.dp.setFocusDate(!!e&&e.adpCell.date)})),C(this,"onMouseOutCell",(function(){i.dp.setFocusDate(false)})),C(this,"onClickBody",(function(t){var e=i.opts.onClickDayName,n=t.target;n.closest(A)&&i.handleClick(t),e&&n.closest(".air-datepicker-body--day-name")&&i.handleDayNameClick(t)})),C(this,"onMouseDown",(function(t){i.pressed=true;var e=w(t.target,A),n=e&&e.adpCell;d(n.date,i.dp.rangeDateFrom)&&(i.rangeFromFocused=true),d(n.date,i.dp.rangeDateTo)&&(i.rangeToFocused=true)})),C(this,"onMouseMove",(function(t){if(!i.pressed||!i.dp.isMinViewReached)return;t.preventDefault();var e=w(t.target,A),n=e&&e.adpCell,r=i.dp,s=r.selectedDates,a=r.rangeDateTo,o=r.rangeDateFrom;if(!n||n.isDisabled)return;var h=n.date;if(2===s.length){if(i.rangeFromFocused&&!p(h,a)){var c=u(o),f=c.hours,v=c.minutes;h.setHours(f),h.setMinutes(v),i.dp.rangeDateFrom=h,i.dp.replaceDate(o,h)}if(i.rangeToFocused&&!m(h,o)){var l=u(a),d=l.hours,y=l.minutes;h.setHours(d),h.setMinutes(y),i.dp.rangeDateTo=h,i.dp.replaceDate(a,h)}}})),C(this,"onMouseUp",(function(){i.pressed=false,i.rangeFromFocused=false,i.rangeToFocused=false})),C(this,"onChangeViewDate",(function(t,e){if(!i.isVisible)return;var r=v(t),s=v(e);switch(i.dp.currentView){case n.days:if(d(t,e,n.months))return;break;case n.months:if(d(t,e,n.years))return;break;case n.years:if(r[0]===s[0]&&r[1]===s[1])return}i.render()})),C(this,"render",(function(){i.destroyCells(),i._generateCells(),i.cells.forEach((function(t){i.$cells.appendChild(t.render())}))})),this.dp=e,this.type=r,this.opts=s,this.cells=[],this.$el="",this.pressed=false,this.isVisible=true,this.init()}t.prototype.init=function(){this._buildBaseHtml(),this.type===n.days&&this.renderDayNames(),this.render(),this._bindEvents(),this._bindDatepickerEvents()};t.prototype._bindEvents=function(){var t=this.opts,i=t.range,e=t.dynamicRange;b(this.$el,"mouseover",this.onMouseOverCell),b(this.$el,"mouseout",this.onMouseOutCell),b(this.$el,"click",this.onClickBody),i&&e&&(b(this.$el,"mousedown",this.onMouseDown),b(this.$el,"mousemove",this.onMouseMove),b(window.document,"mouseup",this.onMouseUp))};t.prototype._bindDatepickerEvents=function(){this.dp.on(n.eventChangeViewDate,this.onChangeViewDate),this.dp.on(n.eventChangeCurrentView,this.onChangeCurrentView)};t.prototype._buildBaseHtml=function(){this.$el=a({className:"air-datepicker-body -".concat(this.type,"-"),innerHtml:j[this.type]}),this.$names=s(".air-datepicker-body--day-names",this.$el),this.$cells=s(".air-datepicker-body--cells",this.$el)};t.prototype._getDayNamesHtml=function(){var t;var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dp.locale.firstDay,e="",r=this.dp.isWeekend,s=this.opts.onClickDayName,a=i,o=0;for(;o<7;){var h=a%7;e+='<div class="'.concat(l("air-datepicker-body--day-name",(t={},t[n.cssClassWeekend]=r(h),t["-clickable-"]=!!s,t)),"\" data-day-index='").concat(h,"'>").concat(this.dp.locale.daysMin[h],"</div>"),o++,a++}return e};t.prototype.renderDayNames=function(){this.$names.innerHTML=this._getDayNamesHtml()};t.prototype._generateCell=function(t){var i=this,e=i.type,n=i.dp,r=i.opts;return new O({type:e,dp:n,opts:r,date:t,body:this})};t.prototype._generateCells=function(){var i=this;t.getDatesFunction(this.type)(this.dp,(function(t){i.cells.push(i._generateCell(t))}))};t.prototype.show=function(){this.isVisible=true,this.$el.classList.remove("-hidden-")};t.prototype.hide=function(){this.isVisible=false,this.$el.classList.add("-hidden-")};t.prototype.destroyCells=function(){this.cells.forEach((function(t){return t.destroy()})),this.cells=[],this.$cells.innerHTML=""};t.prototype.destroy=function(){this.destroyCells(),this.dp.off(n.eventChangeViewDate,this.onChangeViewDate),this.dp.off(n.eventChangeCurrentView,this.onChangeCurrentView)};t.getDaysDates=function(t,i){var e=t.viewDate,n=t.opts.fixedHeight,r=t.locale.firstDay,s=h(e),a=u(e),o=a.year,c=a.month,f=new Date(o,c,1),v=new Date(o,c,s),l=f.getDay()-r,d=6-v.getDay()+r;l=l<0?l+7:l,d=d>6?d-7:d;var p=function(t,i){var e=u(t),n=e.year,r=e.month,s=e.date;return new Date(n,r,s-i)}(f,l),m=s+l+d,y=p.getDate(),b=u(p),w=b.year,g=b.month,k=0;n&&(m=42);var D=[];for(;k<m;){var S=new Date(w,g,y+k);i&&i(S),D.push(S),k++}return D};t.getMonthsDates=function(t,i){var e=t.parsedViewDate.year,n=0,r=[];for(;n<12;){var s=new Date(e,n);r.push(s),i&&i(s),n++}return r};t.getYearsDates=function(t,i){var e=v(t.viewDate),n=e[0]-1,r=e[1]+1,s=n,a=[];for(;s<=r;){var o=new Date(s,0);a.push(o),i&&i(o),s++}return a};t.getDatesFunction=function(){var i;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.days;return(i={},i[n.days]=t.getDaysDates,i[n.months]=t.getMonthsDates,i[n.years]=t.getYearsDates,i)[e]};return t}();function x(t,i,e){return(i=function(t){var i=function(t,i){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof i?i:String(i)}(i))in t?Object.defineProperty(t,i,{value:e,enumerable:true,configurable:true,writable:true}):t[i]=e,t}var E=function(){function t(t){var i=this;var e=t.dp,n=t.opts;x(this,"onClickNav",(function(t){var e=w(t.target,".air-datepicker-nav--action");if(!e)return;var n=e.dataset.action;i.dp[n]()})),x(this,"onChangeViewDate",(function(){i.render(),i._resetNavStatus(),i.handleNavStatus()})),x(this,"onChangeCurrentView",(function(){i.render(),i._resetNavStatus(),i.handleNavStatus()})),x(this,"onClickNavTitle",(function(){i.dp.isFinalView||i.dp.up()})),x(this,"update",(function(){var t=i.opts,e=t.prevHtml,n=t.nextHtml;i.$prev.innerHTML=e,i.$next.innerHTML=n,i._resetNavStatus(),i.render(),i.handleNavStatus()})),x(this,"renderDelay",(function(){setTimeout(i.render)})),x(this,"render",(function(){i.$title.innerHTML=i._getTitle(),function(t,i){for(var e in i)i[e]?t.classList.add(e):t.classList.remove(e)}(i.$title,{"-disabled-":i.dp.isFinalView})})),this.dp=e,this.opts=n,this.init()}t.prototype.init=function(){this._createElement(),this._buildBaseHtml(),this._defineDOM(),this.render(),this.handleNavStatus(),this._bindEvents(),this._bindDatepickerEvents()};t.prototype._defineDOM=function(){this.$title=s(".air-datepicker-nav--title",this.$el),this.$prev=s('[data-action="prev"]',this.$el),this.$next=s('[data-action="next"]',this.$el)};t.prototype._bindEvents=function(){this.$el.addEventListener("click",this.onClickNav),this.$title.addEventListener("click",this.onClickNavTitle)};t.prototype._bindDatepickerEvents=function(){this.dp.on(n.eventChangeViewDate,this.onChangeViewDate),this.dp.on(n.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.on(n.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.on(n.eventChangeTime,this.render))};t.prototype.destroy=function(){this.dp.off(n.eventChangeViewDate,this.onChangeViewDate),this.dp.off(n.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.off(n.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.off(n.eventChangeTime,this.render))};t.prototype._createElement=function(){this.$el=a({tagName:"nav",className:"air-datepicker-nav"})};t.prototype._getTitle=function(){var t=this,i=t.dp,e=t.opts,n=e.navTitles[i.currentView];return"function"==typeof n?n(i):i.formatDate(i.viewDate,n)};t.prototype.handleNavStatus=function(){var t=this.opts.disableNavWhenOutOfRange,i=this.dp,e=i.minDate,r=i.maxDate;if(!e&&!r||!t)return;var s=this.dp.parsedViewDate,a=s.year,o=s.month,h=!!e&&u(e),c=!!r&&u(r);switch(this.dp.currentView){case n.days:e&&h.month>=o&&h.year>=a&&this._disableNav("prev"),r&&c.month<=o&&c.year<=a&&this._disableNav("next");break;case n.months:e&&h.year>=a&&this._disableNav("prev"),r&&c.year<=a&&this._disableNav("next");break;case n.years:{var f=v(this.dp.viewDate);e&&h.year>=f[0]&&this._disableNav("prev"),r&&c.year<=f[1]&&this._disableNav("next");break}}};t.prototype._disableNav=function(t){s('[data-action="'+t+'"]',this.$el).classList.add("-disabled-")};t.prototype._resetNavStatus=function(){!function(t){var i;for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];t.length?t.forEach((function(t){var i;(i=t.classList).remove.apply(i,n)})):(i=t.classList).remove.apply(i,n)}(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")};t.prototype._buildBaseHtml=function(){var t=this.opts,i=t.prevHtml,e=t.nextHtml;this.$el.innerHTML='<div class="air-datepicker-nav--action" data-action="prev">'.concat(i,'</div><div class="air-datepicker-nav--title"></div><div class="air-datepicker-nav--action" data-action="next">').concat(e,"</div>")};Object.defineProperty(t.prototype,"isNavIsFunction",{get:function(){var t=this.opts.navTitles;return Object.keys(t).find((function(i){return"function"==typeof t[i]}))},enumerable:false,configurable:true});return t}();var F={today:{content:function(t){return t.locale.today},onClick:function(t){return t.setViewDate(new Date)}},clear:{content:function(t){return t.locale.clear},onClick:function(t){return t.clear()}}};var N=function(){function t(t){var i=t.dp,e=t.opts;this.dp=i,this.opts=e,this.init()}t.prototype.init=function(){this.createElement(),this.render()};t.prototype.createElement=function(){this.$el=a({className:"air-datepicker-buttons"})};t.prototype.destroy=function(){this.$el.parentNode.removeChild(this.$el)};t.prototype.clearHtml=function(){return this.$el.innerHTML="",this};t.prototype.generateButtons=function(){var t=this;var i=this.opts.buttons;Array.isArray(i)||(i=[i]),i.forEach((function(i){var e=i;"string"==typeof i&&F[i]&&(e=F[i]);var n=t.createButton(e);e.onClick&&t.attachEventToButton(n,e.onClick),t.$el.appendChild(n)}))};t.prototype.attachEventToButton=function(t,i){var e=this;t.addEventListener("click",(function(){i(e.dp)}))};t.prototype.createButton=function(t){var i=t.content,e=t.className,n=t.tagName,r=n===void 0?"button":n,s=t.attrs,o=s===void 0?{}:s;return a({tagName:r,innerHtml:"<span tabindex='-1'>".concat("function"==typeof i?i(this.dp):i,"</span>"),className:l("air-datepicker-button",e),attrs:o})};t.prototype.render=function(){this.generateButtons()};return t}();function _(t,i,e){return(i=function(t){var i=function(t,i){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof i?i:String(i)}(i))in t?Object.defineProperty(t,i,{value:e,enumerable:true,configurable:true,writable:true}):t[i]=e,t}var V=function(){function t(){var t=this;var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=i.opts,r=i.dp;_(this,"toggleTimepickerIsActive",(function(i){t.dp.timepickerIsActive=i})),_(this,"onChangeSelectedDate",(function(i){var e=i.date,n=i.updateTime,r=n===void 0?false:n;e&&(t.setMinMaxTime(e),t.setCurrentTime(!!r&&e),t.addTimeToDate(e))})),_(this,"onChangeLastSelectedDate",(function(i){i&&(t.setTime(i),t.render())})),_(this,"onChangeInputRange",(function(i){var e=i.target;t[e.getAttribute("name")]=e.value,t.updateText(),t.dp.trigger(n.eventChangeTime,{hours:t.hours,minutes:t.minutes})})),_(this,"onMouseEnterLeave",(function(i){var e=i.target.getAttribute("name"),n=t.$minutesText;"hours"===e&&(n=t.$hoursText),n.classList.toggle("-focus-")})),_(this,"onFocus",(function(){t.toggleTimepickerIsActive(true)})),_(this,"onBlur",(function(){t.toggleTimepickerIsActive(false)})),this.opts=e,this.dp=r;var s=this.dp.locale.timeFormat;s&&(s.match(S("h"))||s.match(S("hh")))&&(this.ampm=true),this.init()}t.prototype.init=function(){this.setTime(this.dp.lastSelectedDate||this.dp.viewDate),this.createElement(),this.buildHtml(),this.defineDOM(),this.render(),this.bindDatepickerEvents(),this.bindDOMEvents()};t.prototype.bindDatepickerEvents=function(){this.dp.on(n.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(n.eventChangeLastSelectedDate,this.onChangeLastSelectedDate)};t.prototype.bindDOMEvents=function(){var t="input";navigator.userAgent.match(/trident/gi)&&(t="change"),b(this.$ranges,t,this.onChangeInputRange),b(this.$ranges,"mouseenter",this.onMouseEnterLeave),b(this.$ranges,"mouseleave",this.onMouseEnterLeave),b(this.$ranges,"focus",this.onFocus),b(this.$ranges,"mousedown",this.onFocus),b(this.$ranges,"blur",this.onBlur)};t.prototype.createElement=function(){this.$el=a({className:l("air-datepicker-time",{"-am-pm-":this.dp.ampm})})};t.prototype.destroy=function(){this.dp.off(n.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(n.eventChangeLastSelectedDate,this.onChangeLastSelectedDate),this.$el.parentNode.removeChild(this.$el)};t.prototype.buildHtml=function(){var t=this,i=t.ampm,e=t.hours,n=t.displayHours,r=t.minutes,s=t.minHours,a=t.minMinutes,o=t.maxHours,h=t.maxMinutes,u=t.dayPeriod,c=t.opts,v=c.hoursStep,l=c.minutesStep;this.$el.innerHTML='<div class="air-datepicker-time--current"> <span class="air-datepicker-time--current-hours">'.concat(f(n),'</span> <span class="air-datepicker-time--current-colon">:</span> <span class="air-datepicker-time--current-minutes">').concat(f(r),"</span> ")+(i?"<span class='air-datepicker-time--current-ampm'>".concat(u,"</span>"):"")+'</div><div class="air-datepicker-time--sliders"> <div class="air-datepicker-time--row">'+' <input type="range" name="hours" value="'.concat(e,'" min="').concat(s,'" max="').concat(o,'" step="').concat(v,'"/> </div> <div class="air-datepicker-time--row">')+' <input type="range" name="minutes" value="'.concat(r,'" min="').concat(a,'" max="').concat(h,'" step="').concat(l,'"/> </div></div>')};t.prototype.defineDOM=function(){var t=this;var i=function(i){return s(i,t.$el)};this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=i('[name="hours"]'),this.$minutes=i('[name="minutes"]'),this.$hoursText=i(".air-datepicker-time--current-hours"),this.$minutesText=i(".air-datepicker-time--current-minutes"),this.$ampm=i(".air-datepicker-time--current-ampm")};t.prototype.setTime=function(t){this.setMinMaxTime(t),this.setCurrentTime(t)};t.prototype.addTimeToDate=function(t){t&&(t.setHours(this.hours),t.setMinutes(this.minutes))};t.prototype.setMinMaxTime=function(t){if(this.setMinMaxTimeFromOptions(),t){var i=this.dp,e=i.minDate,n=i.maxDate;e&&d(t,e)&&this.setMinTimeFromMinDate(e),n&&d(t,n)&&this.setMaxTimeFromMaxDate(n)}};t.prototype.setCurrentTime=function(t){var i=t?u(t):this,e=i.hours,n=i.minutes;this.hours=g(e,this.minHours,this.maxHours),this.minutes=g(n,this.minMinutes,this.maxMinutes)};t.prototype.setMinMaxTimeFromOptions=function(){var t=this.opts,i=t.minHours,e=t.minMinutes,n=t.maxHours,r=t.maxMinutes;this.minHours=g(i,0,23),this.minMinutes=g(e,0,59),this.maxHours=g(n,0,23),this.maxMinutes=g(r,0,59)};t.prototype.setMinTimeFromMinDate=function(t){var i=this.dp.lastSelectedDate;this.minHours=t.getHours(),i&&i.getHours()>t.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=t.getMinutes()};t.prototype.setMaxTimeFromMaxDate=function(t){var i=this.dp.lastSelectedDate;this.maxHours=t.getHours(),i&&i.getHours()<t.getHours()?this.maxMinutes=this.opts.maxMinutes:this.maxMinutes=t.getMinutes()};t.prototype.updateSliders=function(){o(this.$hours,{min:this.minHours,max:this.maxHours}).value=this.hours,o(this.$minutes,{min:this.minMinutes,max:this.maxMinutes}).value=this.minutes};t.prototype.updateText=function(){this.$hoursText.innerHTML=f(this.displayHours),this.$minutesText.innerHTML=f(this.minutes),this.ampm&&(this.$ampm.innerHTML=this.dayPeriod)};Object.defineProperty(t.prototype,"hours",{get:function(){return this._hours},set:function(t){this._hours=t;var i=c(t),e=i.hours,n=i.dayPeriod;this.displayHours=this.ampm?e:t,this.dayPeriod=n},enumerable:false,configurable:true});t.prototype.render=function(){this.updateSliders(),this.updateText()};return t}();function H(t,i,e){return(i=function(t){var i=function(t,i){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof i?i:String(i)}(i))in t?Object.defineProperty(t,i,{value:e,enumerable:true,configurable:true,writable:true}):t[i]=e,t}var R=function(){function t(t){var i=this;var e=t.dp,n=t.opts;H(this,"pressedKeys",new Set),H(this,"hotKeys",new Map([[[["Control","ArrowRight"],["Control","ArrowUp"]],function(t){return t.month++}],[[["Control","ArrowLeft"],["Control","ArrowDown"]],function(t){return t.month--}],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],function(t){return t.year++}],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],function(t){return t.year--}],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],function(t){return t.year+=10}],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],function(t){return t.year-=10}],[["Control","Shift","ArrowUp"],function(t,i){return i.up()}]])),H(this,"handleHotKey",(function(t){var e=i.hotKeys.get(t),n=u(i.getInitialFocusDate());e(n,i.dp);var r=n.year,s=n.month,a=n.date,o=h(new Date(r,s));o<a&&(a=o);var c=i.dp.getClampedDate(new Date(r,s,a));i.dp.setFocusDate(c,{viewDateTransition:true})})),H(this,"isHotKeyPressed",(function(){var t=false,e=i.pressedKeys.size,n=function(t){return i.pressedKeys.has(t)};var r=function(i){if(t)return"break";if(Array.isArray(i[0]))i.forEach((function(r){t||e!==r.length||(t=r.every(n)&&i)}));else{if(e!==i.length)return"continue";t=i.every(n)&&i}};for(var s=0,a=i.hotKeys;s<a.length;s++){var o=a[s][0];var h=r(o);if(h==="break")break}return t})),H(this,"isArrow",(function(t){return t>=37&&t<=40})),H(this,"onKeyDown",(function(t){if(!i.dp.visible&&!i.dp.treatAsInline)return;var e=t.key,n=t.which,r=i,s=r.dp,a=r.dp.focusDate,o=r.opts;i.registerKey(e);var h=i.isHotKeyPressed();if(h)return t.preventDefault(),void i.handleHotKey(h);if(i.isArrow(n))return t.preventDefault(),void i.focusNextCell(e);if("Enter"===e){if(s.currentView!==o.minView)return void s.down();if(a){var u=s._checkIfDateIsSelected(a);return void(u?s._handleAlreadySelectedDates(u,a):s.selectDate(a))}}"Escape"===e&&i.dp.hide()})),H(this,"onKeyUp",(function(t){i.removeKey(t.key)})),this.dp=e,this.opts=n,this.init()}t.prototype.init=function(){this.bindKeyboardEvents()};t.prototype.bindKeyboardEvents=function(){var t=this.dp.$el;t.addEventListener("keydown",this.onKeyDown),t.addEventListener("keyup",this.onKeyUp)};t.prototype.destroy=function(){var t=this.dp.$el;t.removeEventListener("keydown",this.onKeyDown),t.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null};t.prototype.getInitialFocusDate=function(){var t=this.dp,i=t.focusDate,e=t.currentView,r=t.selectedDates,s=t.parsedViewDate,a=s.year,o=s.month,h=i||r[r.length-1];if(!h)switch(e){case n.days:h=new Date(a,o,(new Date).getDate());break;case n.months:h=new Date(a,o,1);break;case n.years:h=new Date(a,0,1)}return h};t.prototype.focusNextCell=function(t){var i=this.getInitialFocusDate(),e=this.dp.currentView,r=n.days,s=n.months,a=n.years,o=u(i),h=o.year,c=o.month,f=o.date;switch(t){case"ArrowLeft":e===r&&(f-=1),e===s&&(c-=1),e===a&&(h-=1);break;case"ArrowUp":e===r&&(f-=7),e===s&&(c-=3),e===a&&(h-=4);break;case"ArrowRight":e===r&&(f+=1),e===s&&(c+=1),e===a&&(h+=1);break;case"ArrowDown":e===r&&(f+=7),e===s&&(c+=3),e===a&&(h+=4)}var v=this.dp.getClampedDate(new Date(h,c,f));this.dp.setFocusDate(v,{viewDateTransition:true})};t.prototype.registerKey=function(t){this.pressedKeys.add(t)};t.prototype.removeKey=function(t){this.pressedKeys.delete(t)};return t}();var P={on:function(t,i){this.__events||(this.__events={}),this.__events[t]?this.__events[t].push(i):this.__events[t]=[i]},off:function(t,i){this.__events&&this.__events[t]&&(this.__events[t]=this.__events[t].filter((function(t){return t!==i})))},removeAllEvents:function(){this.__events={}},trigger:function(t){for(var i=arguments.length,e=new Array(i>1?i-1:0),n=1;n<i;n++)e[n-1]=arguments[n];this.__events&&this.__events[t]&&this.__events[t].forEach((function(t){t.apply(void 0,e)}))}};function I(t,i,e){return(i=function(t){var i=function(t,i){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof i?i:String(i)}(i))in t?Object.defineProperty(t,i,{value:e,enumerable:true,configurable:true,writable:true}):t[i]=e,t}var U="",$="",q=false;var L=function(){function t(t,i){var e=this;var o=this;if(I(this,"viewIndexes",[n.days,n.months,n.years]),I(this,"next",(function(){var t=e.parsedViewDate,i=t.year,r=t.month;switch(e.currentView){case n.days:e.setViewDate(new Date(i,r+1,1));break;case n.months:e.setViewDate(new Date(i+1,r,1));break;case n.years:e.setViewDate(new Date(i+10,0,1))}})),I(this,"prev",(function(){var t=e.parsedViewDate,i=t.year,r=t.month;switch(e.currentView){case n.days:e.setViewDate(new Date(i,r-1,1));break;case n.months:e.setViewDate(new Date(i-1,r,1));break;case n.years:e.setViewDate(new Date(i-10,0,1))}})),I(this,"_finishHide",(function(){e.hideAnimation=false,e._destroyComponents(),e.$container.removeChild(e.$datepicker)})),I(this,"setPosition",(function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("function"==typeof(t=t||o.opts.position))return void(o.customHide=t({$datepicker:o.$datepicker,$target:o.$el,$pointer:o.$pointer,isViewChange:i,done:o._finishHide}));var e,n,r=o.opts.isMobile,s=o.$el.getBoundingClientRect(),a=o.$el.getBoundingClientRect(),h=o.$datepicker.offsetParent,u=o.$el.offsetParent,c=o.$datepicker.getBoundingClientRect(),f=t.split(" "),v=window.scrollY,l=window.scrollX,d=o.opts.offset,p=f[0],m=f[1];if(r)o.$datepicker.style.cssText="left: 50%; top: 50%";else{if(h===u&&h!==document.body&&(a={top:o.$el.offsetTop,left:o.$el.offsetLeft,width:s.width,height:o.$el.offsetHeight},v=0,l=0),h!==u&&h!==document.body){var y=h.getBoundingClientRect();a={top:s.top-y.top,left:s.left-y.left,width:s.width,height:s.height},v=0,l=0}switch(p){case"top":e=a.top-c.height-d;break;case"right":n=a.left+a.width+d;break;case"bottom":e=a.top+a.height+d;break;case"left":n=a.left-c.width-d}switch(m){case"top":e=a.top;break;case"right":n=a.left+a.width-c.width;break;case"bottom":e=a.top+a.height-c.height;break;case"left":n=a.left;break;case"center":/left|right/.test(p)?e=a.top+a.height/2-c.height/2:n=a.left+a.width/2-c.width/2}o.$datepicker.style.cssText="left: ".concat(n+l,"px; top: ").concat(e+v,"px")}})),I(this,"_setInputValue",(function(){var t=e,i=t.opts,n=t.$altField,r=t.locale.dateFormat,s=i.altFieldDateFormat,a=i.altField;a&&n&&(n.value=e._getInputValue(s)),e.$el.value=e._getInputValue(r),e.$el.dispatchEvent(new Event("change"))})),I(this,"_getInputValue",(function(t){var i=e,n=i.selectedDates,r=i.opts,s=r.multipleDates,a=r.multipleDatesSeparator;if(!n.length)return"";var o="function"==typeof t,h=o?t(s?n:n[0]):n.map((function(i){return e.formatDate(i,t)}));return h=o?h:h.join(a),h})),I(this,"_checkIfDateIsSelected",(function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.days,e=false;return o.selectedDates.some((function(n){var r=d(t,n,i);return e=r&&n,r})),e})),I(this,"_scheduleCallAfterTransition",(function(t){e._cancelScheduledCall(),t&&t(false),e._onTransitionEnd=function(){t&&t(true)},e.$datepicker.addEventListener("transitionend",e._onTransitionEnd,{once:true})})),I(this,"_cancelScheduledCall",(function(){e.$datepicker.removeEventListener("transitionend",e._onTransitionEnd)})),I(this,"setViewDate",(function(t){if(!((t=D(t))instanceof Date))return;if(d(t,e.viewDate))return;var i=e.viewDate;e.viewDate=t;var r=e.opts.onChangeViewDate;if(r){var s=e.parsedViewDate,a=s.month,o=s.year;r({month:a,year:o,decade:e.curDecade})}e.trigger(n.eventChangeViewDate,t,i)})),I(this,"setFocusDate",(function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(!t||(t=D(t))instanceof Date)&&(o.focusDate=t,o.trigger(n.eventChangeFocusDate,t,i))})),I(this,"setCurrentView",(function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o.viewIndexes.includes(t)){if(o.currentView=t,o.elIsInput&&o.visible&&o.setPosition(void 0,true),o.trigger(n.eventChangeCurrentView,t),!o.views[t]){var e=o.views[t]=new T({dp:o,opts:o.opts,type:t});o.shouldUpdateDOM&&o.$content.appendChild(e.$el)}o.opts.onChangeView&&!i.silent&&o.opts.onChangeView(t)}})),I(this,"_updateLastSelectedDate",(function(t){e.lastSelectedDate=t,e.trigger(n.eventChangeLastSelectedDate,t)})),I(this,"destroy",(function(){if(e.isDestroyed)return;var t=e.opts,i=t.showEvent,n=t.isMobile,r=e.$datepicker.parentNode;r&&r.removeChild(e.$datepicker),e.$el.removeEventListener(i,e._onFocus),e.$el.removeEventListener("blur",e._onBlur),window.removeEventListener("resize",e._onResize),n&&e._removeMobileAttributes(),e.keyboardNav&&e.keyboardNav.destroy(),e.views=null,e.nav=null,e.$datepicker=null,e.opts={},e.$customContainer=null,e.viewDate=null,e.focusDate=null,e.selectedDates=[],e.rangeDateFrom=null,e.rangeDateTo=null,e.isDestroyed=true})),I(this,"update",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=k({},o.opts),r=i.silent;k(o.opts,t);var s=o.opts,a=s.timepicker,h=s.buttons,u=s.range,c=s.selectedDates,f=s.isMobile,v=o.visible||o.treatAsInline;o._createMinMaxDates(),o._limitViewDateByMaxMinDates(),o._handleLocale(),c&&(o.selectedDates=[],o.selectDate(c,{silent:r})),t.view&&o.setCurrentView(t.view,{silent:r}),o._setInputValue(),e.range&&!u?(o.rangeDateTo=false,o.rangeDateFrom=false):!e.range&&u&&o.selectedDates.length&&(o.rangeDateFrom=o.selectedDates[0],o.rangeDateTo=o.selectedDates[1]),e.timepicker&&!a?(v&&o.timepicker.destroy(),o.timepicker=false,o.$timepicker.parentNode.removeChild(o.$timepicker)):!e.timepicker&&a&&o._addTimepicker(),!e.buttons&&h?o._addButtons():e.buttons&&!h?(o.buttons.destroy(),o.$buttons.parentNode.removeChild(o.$buttons)):v&&e.buttons&&h&&o.buttons.clearHtml().render(),!e.isMobile&&f?(o.treatAsInline||$||o._createMobileOverlay(),o._addMobileAttributes(),o.visible&&o._showMobileOverlay()):e.isMobile&&!f&&(o._removeMobileAttributes(),o.visible&&($.classList.remove("-active-"),"function"!=typeof o.opts.position&&o.setPosition())),v&&(o.nav.update(),o.views[o.currentView].render(),o.currentView===n.days&&o.views[o.currentView].renderDayNames())})),I(this,"disableDate",(function(t,i){(Array.isArray(t)?t:[t]).forEach((function(t){var n=D(t);if(!n)return;var r=i?"delete":"add";e.disabledDates[r](e.formatDate(n,"yyyy-MM-dd"));var s=e.getCell(n,e.currentViewSingular);s&&s.adpCell.render()}),[])})),I(this,"enableDate",(function(t){e.disableDate(t,true)})),I(this,"isDateDisabled",(function(t){var i=D(t);return e.disabledDates.has(e.formatDate(i,"yyyy-MM-dd"))})),I(this,"isOtherMonth",(function(t){var i=u(t).month;return i!==e.parsedViewDate.month})),I(this,"isOtherYear",(function(t){var i=u(t).year;return i!==e.parsedViewDate.year})),I(this,"isOtherDecade",(function(t){var i=u(t).year,n=v(e.viewDate),r=n[0],s=n[1];return i<r||i>s})),I(this,"_onChangeSelectedDate",(function(t){var i=t.silent;setTimeout((function(){e._setInputValue(),e.opts.onSelect&&!i&&e._triggerOnSelect()}))})),I(this,"_onChangeFocusedDate",(function(t){var i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).viewDateTransition;if(!t)return;var e=false;i&&(e=o.isOtherMonth(t)||o.isOtherYear(t)||o.isOtherDecade(t)),e&&o.setViewDate(t),o.opts.onFocus&&o.opts.onFocus({datepicker:o,date:t})})),I(this,"_onChangeTime",(function(t){var i=t.hours,n=t.minutes,r=new Date,s=e,a=s.lastSelectedDate,o=s.opts.onSelect,h=a;a||(h=r);var u=e.getCell(h,e.currentViewSingular),c=u&&u.adpCell;c&&c.isDisabled||(h.setHours(i),h.setMinutes(n),a?(e._setInputValue(),o&&e._triggerOnSelect()):e.selectDate(h))})),I(this,"_onFocus",(function(t){e.visible||e.show()})),I(this,"_onBlur",(function(t){e.inFocus||!e.visible||e.opts.isMobile||e.hide()})),I(this,"_onMouseDown",(function(t){e.inFocus=true})),I(this,"_onMouseUp",(function(t){e.inFocus=false,e.$el.focus()})),I(this,"_onResize",(function(){e.visible&&"function"!=typeof e.opts.position&&e.setPosition()})),I(this,"_onClickOverlay",(function(){e.visible&&e.hide()})),I(this,"getViewDates",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.days;return T.getDatesFunction(t)(o)})),I(this,"isWeekend",(function(t){return e.opts.weekends.includes(t)})),I(this,"getClampedDate",(function(t){var i=e,n=i.minDate,r=i.maxDate,s=t;return r&&p(t,r)?s=r:n&&m(t,n)&&(s=n),s})),this.$el=s(t),!this.$el)return;this.$datepicker=a({className:"air-datepicker"}),this.opts=k({},r,i),this.$customContainer=!!this.opts.container&&s(this.opts.container),this.$altField=s(this.opts.altField||false);var h=this.opts,c=h.view,f=h.startDate;f||(this.opts.startDate=new Date),"INPUT"===this.$el.nodeName&&(this.elIsInput=true),this.inited=false,this.visible=false,this.viewDate=D(this.opts.startDate),this.focusDate=false,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=false,this.currentView=c,this.selectedDates=[],this.disabledDates=new Set,this.isDestroyed=false,this.views={},this.keys=[],this.rangeDateFrom="",this.rangeDateTo="",this.timepickerIsActive=false,this.treatAsInline=this.opts.inline||!this.elIsInput,this.init()}t.buildGlobalContainer=function(t){q=true,U=a({className:t,id:t}),s("body").appendChild(U)};t.prototype.init=function(){var i=this,e=i.opts,n=i.treatAsInline,r=i.opts,a=r.inline,o=r.isMobile,h=r.selectedDates,u=r.keyboardNav,c=r.onlyTimepicker,f=s("body");(!q||q&&U&&!f.contains(U))&&!a&&this.elIsInput&&!this.$customContainer&&t.buildGlobalContainer(t.defaultGlobalContainerId),!o||$||n||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(a||this._bindEvents(),u&&!c&&(this.keyboardNav=new R({dp:this,opts:e}))),h&&this.selectDate(h,{silent:true}),this.opts.visible&&!n&&this.show(),o&&!n&&this.$el.setAttribute("readonly",true),n&&this._createComponents()};t.prototype._createMobileOverlay=function(){$=a({className:"air-datepicker-overlay"}),U.appendChild($)};t.prototype._createComponents=function(){var t;var i=this,e=i.opts,n=i.treatAsInline,r=i.opts,s=r.inline,a=r.buttons,o=r.timepicker,h=r.position,u=r.classes,c=r.onlyTimepicker,f=r.isMobile;this._buildBaseHtml(),this.elIsInput&&(s||this._setPositionClasses(h)),!s&&this.elIsInput||this.$datepicker.classList.add("-inline-"),u&&(t=this.$datepicker.classList).add.apply(t,u.split(" ")),c&&this.$datepicker.classList.add("-only-timepicker-"),f&&!n&&this._addMobileAttributes(),this.views[this.currentView]=new T({dp:this,type:this.currentView,opts:e}),this.nav=new E({dp:this,opts:e}),o&&this._addTimepicker(),a&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)};t.prototype._destroyComponents=function(){for(var t in this.views)this.views[t].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()};t.prototype._addMobileAttributes=function(){$.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",true)};t.prototype._removeMobileAttributes=function(){$.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||""===this.initialReadonly||this.$el.removeAttribute("readonly")};t.prototype._createMinMaxDates=function(){var t=this.opts,i=t.minDate,e=t.maxDate;this.minDate=!!i&&D(i),this.maxDate=!!e&&D(e)};t.prototype._addTimepicker=function(){this.$timepicker=a({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new V({dp:this,opts:this.opts}),this.$timepicker.appendChild(this.timepicker.$el)};t.prototype._addButtons=function(){this.$buttons=a({className:"air-datepicker--buttons"}),this.$datepicker.appendChild(this.$buttons),this.buttons=new N({dp:this,opts:this.opts}),this.$buttons.appendChild(this.buttons.$el)};t.prototype._bindSubEvents=function(){this.on(n.eventChangeSelectedDate,this._onChangeSelectedDate),this.on(n.eventChangeFocusDate,this._onChangeFocusedDate),this.on(n.eventChangeTime,this._onChangeTime)};t.prototype._buildBaseHtml=function(){var t=this.opts.inline;var i,e;this.elIsInput?t?(i=this.$datepicker,(e=this.$el).parentNode.insertBefore(i,e.nextSibling)):this.$container.appendChild(this.$datepicker):this.$el.appendChild(this.$datepicker),this.$datepicker.innerHTML='<i class="air-datepicker--pointer"></i><div class="air-datepicker--navigation"></div><div class="air-datepicker--content"></div>',this.$content=s(".air-datepicker--content",this.$datepicker),this.$pointer=s(".air-datepicker--pointer",this.$datepicker),this.$nav=s(".air-datepicker--navigation",this.$datepicker)};t.prototype._handleLocale=function(){var t=this.opts,i=t.locale,e=t.dateFormat,n=t.firstDay,r=t.timepicker,s=t.onlyTimepicker,a=t.timeFormat,o=t.dateTimeSeparator;var h;this.locale=(h=i,JSON.parse(JSON.stringify(h))),e&&(this.locale.dateFormat=e),void 0!==a&&""!==a&&(this.locale.timeFormat=a);var u=this.locale.timeFormat;if(""!==n&&(this.locale.firstDay=n),r&&"function"!=typeof e){var c=u?o:"";this.locale.dateFormat=[this.locale.dateFormat,u||""].join(c)}s&&"function"!=typeof e&&(this.locale.dateFormat=this.locale.timeFormat)};t.prototype._setPositionClasses=function(t){var i;if("function"==typeof t)return void this.$datepicker.classList.add("-custom-position-");var e=(t=t.split(" "))[0],n="air-datepicker -".concat(e,"-").concat(t[1],"- -from-").concat(e,"-");(i=this.$datepicker.classList).add.apply(i,n.split(" "))};t.prototype._bindEvents=function(){this.$el.addEventListener(this.opts.showEvent,this._onFocus),this.$el.addEventListener("blur",this._onBlur),this.$datepicker.addEventListener("mousedown",this._onMouseDown),this.$datepicker.addEventListener("mouseup",this._onMouseUp),window.addEventListener("resize",this._onResize)};t.prototype._limitViewDateByMaxMinDates=function(){var t=this,i=t.viewDate,e=t.minDate,n=t.maxDate;n&&p(i,n)&&this.setViewDate(n),e&&m(i,e)&&this.setViewDate(e)};t.prototype.formatDate=function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.viewDate,e=arguments.length>1?arguments[1]:void 0;if(i=D(i),!(i instanceof Date))return;var n=e,r=this.locale,s=u(i),a=s.dayPeriod,o=v(i),h=t.replacer,c={T:i.getTime(),m:s.minutes,mm:s.fullMinutes,h:s.hours12,hh:s.fullHours12,H:s.hours,HH:s.fullHours,aa:a,AA:a.toUpperCase(),E:r.daysShort[s.day],EEEE:r.days[s.day],d:s.date,dd:s.fullDate,M:s.month+1,MM:s.fullMonth,MMM:r.monthsShort[s.month],MMMM:r.months[s.month],yy:s.year.toString().slice(-2),yyyy:s.year,yyyy1:o[0],yyyy2:o[1]};for(var f=0,l=Object.entries(c);f<l.length;f++){var d=l[f],p=d[0],m=d[1];n=h(n,S(p),m)}return n};t.prototype.down=function(t){this._handleUpDownActions(t,"down")};t.prototype.up=function(t){this._handleUpDownActions(t,"up")};t.prototype.selectDate=function(t){var i=this;var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=this,a=s.currentView,o=s.parsedViewDate,h=s.selectedDates,u=r.updateTime,c=r.silent,f=this.opts,v=f.moveToOtherMonthsOnSelect,l=f.moveToOtherYearsOnSelect,d=f.multipleDates,m=f.range,y=f.autoClose,b=f.onBeforeSelect,w=h.length;if(Array.isArray(t))return t.forEach((function(t){i.selectDate(t,r)})),new Promise((function(t){setTimeout(t)}));if((t=D(t))instanceof Date){if(b&&!c&&!b({date:t,datepicker:this}))return Promise.resolve();if(a===n.days&&t.getMonth()!==o.month&&v&&(e=new Date(t.getFullYear(),t.getMonth(),1)),a===n.years&&t.getFullYear()!==o.year&&l&&(e=new Date(t.getFullYear(),0,1)),e&&this.setViewDate(e),d&&!m){if(w===d)return;this._checkIfDateIsSelected(t)||h.push(t)}else if(m)switch(w){case 1:h.push(t),this.rangeDateTo||(this.rangeDateTo=t),p(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=t),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[t],this.rangeDateFrom=t,this.rangeDateTo="";break;default:this.selectedDates=[t],this.rangeDateFrom=t}else this.selectedDates=[t];return this.trigger(n.eventChangeSelectedDate,{action:n.actionSelectDate,silent:null==r?void 0:r.silent,date:t,updateTime:u}),this._updateLastSelectedDate(t),y&&!this.timepickerIsActive&&this.visible&&(d||m?m&&1===w&&this.hide():this.hide()),new Promise((function(t){setTimeout(t)}))}};t.prototype.unselectDate=function(t){var i=this;var e=this.selectedDates,r=this;if((t=D(t))instanceof Date)return e.some((function(s,a){if(d(s,t))return e.splice(a,1),r.selectedDates.length?(r.rangeDateTo="",r.rangeDateFrom=e[0],r._updateLastSelectedDate(r.selectedDates[r.selectedDates.length-1])):(r.rangeDateFrom="",r.rangeDateTo="",r._updateLastSelectedDate(false)),i.trigger(n.eventChangeSelectedDate,{action:n.actionUnselectDate,date:t}),true}))};t.prototype.replaceDate=function(t,i){var e=this;var r=this.selectedDates.find((function(i){return d(i,t,e.currentView)})),s=this.selectedDates.indexOf(r);s<0||d(this.selectedDates[s],i,this.currentView)||(this.selectedDates[s]=i,this.trigger(n.eventChangeSelectedDate,{action:n.actionSelectDate,date:i,updateTime:true}),this._updateLastSelectedDate(i))};t.prototype.clear=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.selectedDates=[],this.rangeDateFrom=false,this.rangeDateTo=false,this.lastSelectedDate=false,this.trigger(n.eventChangeSelectedDate,{action:n.actionUnselectDate,silent:t.silent}),new Promise((function(t){setTimeout(t)}))};t.prototype.show=function(){var t=this.opts,i=t.onShow,e=t.isMobile;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=true,i&&this._scheduleCallAfterTransition(i),e&&this._showMobileOverlay()};t.prototype.hide=function(){var t=this;var i=this.opts,e=i.onHide,n=i.isMobile,r=this._hasTransition();this.visible=false,this.hideAnimation=true,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition((function(i){!t.customHide&&(i&&r||!i&&!r)&&t._finishHide(),e&&e(i)})),n&&$.classList.remove("-active-")};t.prototype._triggerOnSelect=function(){var t=this;var i=[],e=[],n=this,r=n.selectedDates,s=n.locale,a=n.opts,o=a.onSelect,h=a.multipleDates,u=a.range,c=h||u,f="function"==typeof s.dateFormat;r.length&&(i=r.map(y),e=f?h?s.dateFormat(i):i.map((function(t){return s.dateFormat(t)})):i.map((function(i){return t.formatDate(i,s.dateFormat)}))),o({date:c?i:i[0],formattedDate:c?e:e[0],datepicker:this})};t.prototype._handleAlreadySelectedDates=function(t,i){var e=this,n=e.selectedDates,r=e.rangeDateFrom,s=e.rangeDateTo,a=this.opts,o=a.range,h=a.toggleSelected,u=n.length,c="function"==typeof h?h({datepicker:this,date:i}):h,f=Boolean(o&&1===u&&t),v=f?y(i):i;o&&!c&&(2!==u&&this.selectDate(v),2===u&&d(r,s))||(c?this.unselectDate(v):this._updateLastSelectedDate(f?v:t))};t.prototype._handleUpDownActions=function(t,i){if(!((t=D(t||this.focusDate||this.viewDate))instanceof Date))return;var e="up"===i?this.viewIndex+1:this.viewIndex-1;e>2&&(e=2),e<0&&(e=0),this.setViewDate(new Date(t.getFullYear(),t.getMonth(),1)),this.setCurrentView(this.viewIndexes[e])};t.prototype.getCell=function(t){var i;var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.day;if(!((t=D(t))instanceof Date))return;var r=u(t),s=r.year,a=r.month,o=r.date,h='[data-year="'.concat(s,'"]'),c='[data-month="'.concat(a,'"]'),f=(i={},i[n.day]="".concat(h).concat(c,'[data-date="').concat(o,'"]'),i[n.month]="".concat(h).concat(c),i[n.year]="".concat(h),i);return this.views[this.currentView]?this.views[this.currentView].$el.querySelector(f[e]):void 0};t.prototype._showMobileOverlay=function(){$.classList.add("-active-")};t.prototype._hasTransition=function(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce((function(t,i){return parseFloat(i)+t}),0)>0};Object.defineProperty(t.prototype,"shouldUpdateDOM",{get:function(){return this.visible||this.treatAsInline},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"parsedViewDate",{get:function(){return u(this.viewDate)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"currentViewSingular",{get:function(){return this.currentView.slice(0,-1)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"curDecade",{get:function(){return v(this.viewDate)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"viewIndex",{get:function(){return this.viewIndexes.indexOf(this.currentView)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFinalView",{get:function(){return this.currentView===n.years},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"hasSelectedDates",{get:function(){return this.selectedDates.length>0},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isMinViewReached",{get:function(){return this.currentView===this.opts.minView||this.currentView===n.days},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"$container",{get:function(){return this.$customContainer||U},enumerable:false,configurable:true});t.replacer=function(t,i,e){return t.replace(i,(function(t,i,n,r){return i+e+r}))};return t}();var J;return I(L,"defaults",r),I(L,"version","3.6.0"),I(L,"defaultGlobalContainerId","air-datepicker-global-container"),J=L.prototype,Object.assign(J,P),e.default}()}))})(airDatepicker$1);return airDatepicker$1.exports}var airDatepickerExports=requireAirDatepicker();var AirDatepicker=getDefaultExportFromCjs(airDatepickerExports);var en={};var hasRequiredEn;function requireEn(){if(hasRequiredEn)return en;hasRequiredEn=1;Object.defineProperty(en,"__esModule",{value:true});en.default=void 0;var t={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",dateFormat:"MM/dd/yyyy",timeFormat:"hh:mm aa",firstDay:0};en.default=t;return en}var enExports=requireEn();var localeEn=getDefaultExportFromCjs(enExports);export{AirDatepicker as A,localeEn as l};
2
- //# sourceMappingURL=en-bsV5YfOZ.js.map
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var i,e=1,n=arguments.length;e<n;e++){i=arguments[e];for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r))t[r]=i[r]}return t};return __assign.apply(this,arguments)};import{g as getDefaultExportFromCjs}from"./_commonjsHelpers-B85MJLTf.js";var airDatepicker$1={exports:{}};var airDatepicker=airDatepicker$1.exports;var hasRequiredAirDatepicker;function requireAirDatepicker(){if(hasRequiredAirDatepicker)return airDatepicker$1.exports;hasRequiredAirDatepicker=1;(function(t,i){!function(i,e){t.exports=e()}(airDatepicker,(function(){return function(){var t;var i={d:function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:true,get:e[n]})},o:function(t,i){return Object.prototype.hasOwnProperty.call(t,i)}},e={};i.d(e,{default:function(){return L}});var n={days:"days",months:"months",years:"years",day:"day",month:"month",year:"year",eventChangeViewDate:"changeViewDate",eventChangeCurrentView:"changeCurrentView",eventChangeFocusDate:"changeFocusDate",eventChangeSelectedDate:"changeSelectedDate",eventChangeTime:"changeTime",eventChangeLastSelectedDate:"changeLastSelectedDate",actionSelectDate:"selectDate",actionUnselectDate:"unselectDate",cssClassWeekend:"-weekend-"},r={classes:"",inline:false,locale:{days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],daysShort:["Вос","Пон","Вто","Сре","Чет","Пят","Суб"],daysMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthsShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],today:"Сегодня",clear:"Очистить",dateFormat:"dd.MM.yyyy",timeFormat:"HH:mm",firstDay:1},startDate:new Date,firstDay:"",weekends:[6,0],dateFormat:"",altField:"",altFieldDateFormat:"T",toggleSelected:true,keyboardNav:true,selectedDates:false,container:"",isMobile:false,visible:false,position:"bottom left",offset:12,view:n.days,minView:n.days,showOtherMonths:true,selectOtherMonths:true,moveToOtherMonthsOnSelect:true,showOtherYears:true,selectOtherYears:true,moveToOtherYearsOnSelect:true,minDate:"",maxDate:"",disableNavWhenOutOfRange:true,multipleDates:false,multipleDatesSeparator:", ",range:false,dynamicRange:true,buttons:false,monthsField:"monthsShort",showEvent:"focus",autoClose:false,fixedHeight:false,prevHtml:'<svg><path d="M 17,12 l -5,5 l 5,5"></path></svg>',nextHtml:'<svg><path d="M 14,12 l 5,5 l -5,5"></path></svg>',navTitles:{days:"MMMM, <i>yyyy</i>",months:"yyyy",years:"yyyy1 - yyyy2"},timepicker:false,onlyTimepicker:false,dateTimeSeparator:" ",timeFormat:"",minHours:0,maxHours:24,minMinutes:0,maxMinutes:59,hoursStep:1,minutesStep:1,onSelect:false,onChangeViewDate:false,onChangeView:false,onRenderCell:false,onShow:false,onHide:false,onClickDayName:false};function s(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return"string"==typeof t?i.querySelector(t):t}function a(){var t;var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=i.tagName,n=e===void 0?"div":e,r=i.className,s=r===void 0?"":r,a=i.innerHtml,h=a===void 0?"":a,u=i.id,c=u===void 0?"":u,f=i.attrs,v=f===void 0?{}:f,l=document.createElement(n);return s&&(t=l.classList).add.apply(t,s.split(" ")),c&&(l.id=c),h&&(l.innerHTML=h),v&&o(l,v),l}function o(t,i){for(var e=0,n=Object.entries(i);e<n.length;e++){var r=n[e],s=r[0],a=r[1];void 0!==a&&t.setAttribute(s,a)}return t}function h(t){return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()}function u(t){var i=t.getHours(),e=c(i),n=e.hours,r=e.dayPeriod;return{year:t.getFullYear(),month:t.getMonth(),fullMonth:t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,date:t.getDate(),fullDate:t.getDate()<10?"0"+t.getDate():t.getDate(),day:t.getDay(),hours:i,fullHours:f(i),hours12:n,dayPeriod:r,fullHours12:f(n),minutes:t.getMinutes(),fullMinutes:t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes()}}function c(t){return{dayPeriod:t>11?"pm":"am",hours:t%12==0?12:t%12}}function f(t){return t<10?"0"+t:t}function v(t){var i=10*Math.floor(t.getFullYear()/10);return[i,i+9]}function l(){var t=[];for(var i=arguments.length,e=new Array(i),n=0;n<i;n++)e[n]=arguments[n];return e.forEach((function(i){if("object"==typeof i)for(var e in i)i[e]&&t.push(e);else i&&t.push(i)})),t.join(" ")}function d(t,i){var e;var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.days;if(!t||!i)return false;var s=u(t),a=u(i);return(e={},e[n.days]=s.date===a.date&&s.month===a.month&&s.year===a.year,e[n.months]=s.month===a.month&&s.year===a.year,e[n.years]=s.year===a.year,e)[r]}function p(t,i,e){var n=y(t,false).getTime(),r=y(i,false).getTime();return e?n>=r:n>r}function m(t,i){return!p(t,i,true)}function y(t){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=new Date(t.getTime());return"boolean"!=typeof i||i||function(t){t.setHours(0,0,0,0)}(e),e}function b(t,i,e){t.length?t.forEach((function(t){t.addEventListener(i,e)})):t.addEventListener(i,e)}function w(t,i){return!(!t||t===document||t instanceof DocumentFragment)&&(t.matches(i)?t:w(t.parentNode,i))}function g(t,i,e){return t>e?e:t<i?i:t}function k(t){for(var i=arguments.length,e=new Array(i>1?i-1:0),n=1;n<i;n++)e[n-1]=arguments[n];return e.filter((function(t){return t})).forEach((function(i){for(var e=0,n=Object.entries(i);e<n.length;e++){var r=n[e],s=r[0],a=r[1];if(void 0!==a&&"[object Object]"===a.toString()){var o=void 0!==t[s]?t[s].toString():void 0,h=a.toString(),u=Array.isArray(a)?[]:{};t[s]=t[s]?o!==h?u:t[s]:u,k(t[s],a)}else t[s]=a}})),t}function D(t){var i=t;return t instanceof Date||("string"==typeof t&&/^\d{4}-\d{2}-\d{2}$/.test(t)&&(t+="T00:00:00"),i=new Date(t)),isNaN(i.getTime())&&(console.log('Unable to convert value "'.concat(t,'" to Date object')),i=false),i}function S(t){var i="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+i+")("+t+")($|<|"+i+")","g")}function M(t,i,e){return(i=function(t){var i=function(t,i){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof i?i:String(i)}(i))in t?Object.defineProperty(t,i,{value:e,enumerable:true,configurable:true,writable:true}):t[i]=e,t}var O=function(){function t(){var t=this;var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=i.type,n=i.date,r=i.dp,s=i.opts,a=i.body;M(this,"focus",(function(){t.$cell.classList.add("-focus-"),t.focused=true})),M(this,"removeFocus",(function(){t.$cell.classList.remove("-focus-"),t.focused=false})),M(this,"select",(function(){t.$cell.classList.add("-selected-"),t.selected=true})),M(this,"removeSelect",(function(){t.$cell.classList.remove("-selected-","-range-from-","-range-to-"),t.selected=false})),M(this,"onChangeSelectedDate",(function(){t.isDisabled||(t._handleSelectedStatus(),t.opts.range&&t._handleRangeStatus())})),M(this,"onChangeFocusDate",(function(i){if(!i)return void(t.focused&&t.removeFocus());var e=d(i,t.date,t.type);e?t.focus():!e&&t.focused&&t.removeFocus(),t.opts.range&&t._handleRangeStatus()})),M(this,"render",(function(){return t.$cell.innerHTML=t._getHtml(),t._handleClasses(),t.$cell})),this.type=e,this.singleType=this.type.slice(0,-1),this.date=n,this.dp=r,this.opts=s,this.body=a,this.customData=false,this.init()}t.prototype.init=function(){var t,i;var e=this.opts.onRenderCell;e&&(this.customData=e({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),null!==(t=this.customData)&&void 0!==t&&t.disabled?this.dp.disableDate(this.date):false===(null===(i=this.customData)||void 0===i?void 0:i.disabled)&&this.dp.enableDate(this.date)};t.prototype._bindDatepickerEvents=function(){this.dp.on(n.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(n.eventChangeFocusDate,this.onChangeFocusDate)};t.prototype.unbindDatepickerEvents=function(){this.dp.off(n.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(n.eventChangeFocusDate,this.onChangeFocusDate)};t.prototype._createElement=function(){var t;var i=u(this.date),e=i.year,n=i.month,r=i.fullMonth,s=i.date,o=i.fullDate,h=(null===(t=this.customData)||void 0===t?void 0:t.attrs)||{};this.$cell=a({attrs:__assign({"data-year":e,"data-month":n,"data-date":s,"data-iso-date":"".concat(e,"-").concat(r,"-").concat(o)},h)}),this.$cell.adpCell=this};t.prototype._getClassName=function(){var t;var i=new Date,e=this.opts,r=e.selectOtherMonths,s=e.selectOtherYears,a=this.dp,o=a.minDate,h=a.maxDate,c=a.isDateDisabled,f=u(this.date).day,v=this._isOutOfMinMaxRange(),p=c(this.date),m=l("air-datepicker-cell","-".concat(this.singleType,"-"),{"-current-":d(i,this.date,this.type),"-min-date-":o&&d(o,this.date,this.type),"-max-date-":h&&d(h,this.date,this.type)}),y="";switch(this.type){case n.days:y=l({"-weekend-":this.dp.isWeekend(f),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!r||v||p});break;case n.months:y=l({"-disabled-":v});break;case n.years:y=l({"-other-decade-":this.isOtherDecade,"-disabled-":v||this.isOtherDecade&&!s})}return l(m,y,null===(t=this.customData)||void 0===t?void 0:t.classes).split(" ")};t.prototype._getHtml=function(){var t;var i=u(this.date),e=i.year,r=i.month,s=i.date,a=this.opts,o=a.showOtherMonths,h=a.showOtherYears;if(null!==(t=this.customData)&&void 0!==t&&t.html)return this.customData.html;switch(this.type){case n.days:return!o&&this.isOtherMonth?"":s;case n.months:return this.dp.locale[this.opts.monthsField][r];case n.years:return!h&&this.isOtherDecade?"":e}};t.prototype._isOutOfMinMaxRange=function(){var t=this.dp,i=t.minDate,e=t.maxDate,r=this,s=r.type,a=r.date,o=u(a),h=o.month,c=o.year,f=o.date,v=s===n.days,l=s===n.years,d=!!i&&new Date(c,l?i.getMonth():h,v?f:i.getDate()),y=!!e&&new Date(c,l?e.getMonth():h,v?f:e.getDate());return i&&e?m(d,i)||p(y,e):i?m(d,i):e?p(y,e):void 0};t.prototype.destroy=function(){this.unbindDatepickerEvents()};t.prototype._handleRangeStatus=function(){var t;var i=this.dp,e=i.selectedDates,n=i.focusDate,r=i.rangeDateTo,s=i.rangeDateFrom,a=e.length;if(this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),!a)return;var o=s,h=r;if(1===a&&n){var u=p(n,e[0]);o=u?e[0]:n,h=u?n:e[0]}var c=l({"-in-range-":o&&h&&(f=this.date,v=o,y=h,p(f,v)&&m(f,y)),"-range-from-":o&&d(this.date,o,this.type),"-range-to-":h&&d(this.date,h,this.type)});var f,v,y;c&&(t=this.$cell.classList).add.apply(t,c.split(" "))};t.prototype._handleSelectedStatus=function(){var t=this.dp._checkIfDateIsSelected(this.date,this.type);t?this.select():!t&&this.selected&&this.removeSelect()};t.prototype._handleInitialFocusStatus=function(){d(this.dp.focusDate,this.date,this.type)&&this.focus()};t.prototype._handleClasses=function(){var t;this.$cell.setAttribute("class",""),this._handleInitialFocusStatus(),this.dp.hasSelectedDates&&(this._handleSelectedStatus(),this.dp.opts.range&&this._handleRangeStatus()),(t=this.$cell.classList).add.apply(t,this._getClassName())};Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.$cell.matches(".-disabled-")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isOtherMonth",{get:function(){return this.dp.isOtherMonth(this.date)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isOtherDecade",{get:function(){return this.dp.isOtherDecade(this.date)},enumerable:false,configurable:true});return t}();function C(t,i,e){return(i=function(t){var i=function(t,i){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof i?i:String(i)}(i))in t?Object.defineProperty(t,i,{value:e,enumerable:true,configurable:true,writable:true}):t[i]=e,t}var j=(t={},t[n.days]='<div class="air-datepicker-body--day-names"></div><div class="air-datepicker-body--cells -'.concat(n.days,'-"></div>'),t[n.months]='<div class="air-datepicker-body--cells -'.concat(n.months,'-"></div>'),t[n.years]='<div class="air-datepicker-body--cells -'.concat(n.years,'-"></div>'),t);var A=".air-datepicker-cell";var T=function(){function t(t){var i=this;var e=t.dp,r=t.type,s=t.opts;C(this,"handleClick",(function(t){var e=t.target.closest(A).adpCell;if(e.isDisabled)return;if(!i.dp.isMinViewReached)return void i.dp.down();var n=i.dp._checkIfDateIsSelected(e.date,e.type);n?i.dp._handleAlreadySelectedDates(n,e.date):i.dp.selectDate(e.date)})),C(this,"handleDayNameClick",(function(t){var e=t.target.getAttribute("data-day-index");i.opts.onClickDayName({dayIndex:Number(e),datepicker:i.dp})})),C(this,"onChangeCurrentView",(function(t){t!==i.type?i.hide():(i.show(),i.render())})),C(this,"onMouseOverCell",(function(t){var e=w(t.target,A);i.dp.setFocusDate(!!e&&e.adpCell.date)})),C(this,"onMouseOutCell",(function(){i.dp.setFocusDate(false)})),C(this,"onClickBody",(function(t){var e=i.opts.onClickDayName,n=t.target;n.closest(A)&&i.handleClick(t),e&&n.closest(".air-datepicker-body--day-name")&&i.handleDayNameClick(t)})),C(this,"onMouseDown",(function(t){i.pressed=true;var e=w(t.target,A),n=e&&e.adpCell;d(n.date,i.dp.rangeDateFrom)&&(i.rangeFromFocused=true),d(n.date,i.dp.rangeDateTo)&&(i.rangeToFocused=true)})),C(this,"onMouseMove",(function(t){if(!i.pressed||!i.dp.isMinViewReached)return;t.preventDefault();var e=w(t.target,A),n=e&&e.adpCell,r=i.dp,s=r.selectedDates,a=r.rangeDateTo,o=r.rangeDateFrom;if(!n||n.isDisabled)return;var h=n.date;if(2===s.length){if(i.rangeFromFocused&&!p(h,a)){var c=u(o),f=c.hours,v=c.minutes;h.setHours(f),h.setMinutes(v),i.dp.rangeDateFrom=h,i.dp.replaceDate(o,h)}if(i.rangeToFocused&&!m(h,o)){var l=u(a),d=l.hours,y=l.minutes;h.setHours(d),h.setMinutes(y),i.dp.rangeDateTo=h,i.dp.replaceDate(a,h)}}})),C(this,"onMouseUp",(function(){i.pressed=false,i.rangeFromFocused=false,i.rangeToFocused=false})),C(this,"onChangeViewDate",(function(t,e){if(!i.isVisible)return;var r=v(t),s=v(e);switch(i.dp.currentView){case n.days:if(d(t,e,n.months))return;break;case n.months:if(d(t,e,n.years))return;break;case n.years:if(r[0]===s[0]&&r[1]===s[1])return}i.render()})),C(this,"render",(function(){i.destroyCells(),i._generateCells(),i.cells.forEach((function(t){i.$cells.appendChild(t.render())}))})),this.dp=e,this.type=r,this.opts=s,this.cells=[],this.$el="",this.pressed=false,this.isVisible=true,this.init()}t.prototype.init=function(){this._buildBaseHtml(),this.type===n.days&&this.renderDayNames(),this.render(),this._bindEvents(),this._bindDatepickerEvents()};t.prototype._bindEvents=function(){var t=this.opts,i=t.range,e=t.dynamicRange;b(this.$el,"mouseover",this.onMouseOverCell),b(this.$el,"mouseout",this.onMouseOutCell),b(this.$el,"click",this.onClickBody),i&&e&&(b(this.$el,"mousedown",this.onMouseDown),b(this.$el,"mousemove",this.onMouseMove),b(window.document,"mouseup",this.onMouseUp))};t.prototype._bindDatepickerEvents=function(){this.dp.on(n.eventChangeViewDate,this.onChangeViewDate),this.dp.on(n.eventChangeCurrentView,this.onChangeCurrentView)};t.prototype._buildBaseHtml=function(){this.$el=a({className:"air-datepicker-body -".concat(this.type,"-"),innerHtml:j[this.type]}),this.$names=s(".air-datepicker-body--day-names",this.$el),this.$cells=s(".air-datepicker-body--cells",this.$el)};t.prototype._getDayNamesHtml=function(){var t;var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dp.locale.firstDay,e="",r=this.dp.isWeekend,s=this.opts.onClickDayName,a=i,o=0;for(;o<7;){var h=a%7;e+='<div class="'.concat(l("air-datepicker-body--day-name",(t={},t[n.cssClassWeekend]=r(h),t["-clickable-"]=!!s,t)),"\" data-day-index='").concat(h,"'>").concat(this.dp.locale.daysMin[h],"</div>"),o++,a++}return e};t.prototype.renderDayNames=function(){this.$names.innerHTML=this._getDayNamesHtml()};t.prototype._generateCell=function(t){var i=this,e=i.type,n=i.dp,r=i.opts;return new O({type:e,dp:n,opts:r,date:t,body:this})};t.prototype._generateCells=function(){var i=this;t.getDatesFunction(this.type)(this.dp,(function(t){i.cells.push(i._generateCell(t))}))};t.prototype.show=function(){this.isVisible=true,this.$el.classList.remove("-hidden-")};t.prototype.hide=function(){this.isVisible=false,this.$el.classList.add("-hidden-")};t.prototype.destroyCells=function(){this.cells.forEach((function(t){return t.destroy()})),this.cells=[],this.$cells.innerHTML=""};t.prototype.destroy=function(){this.destroyCells(),this.dp.off(n.eventChangeViewDate,this.onChangeViewDate),this.dp.off(n.eventChangeCurrentView,this.onChangeCurrentView)};t.getDaysDates=function(t,i){var e=t.viewDate,n=t.opts.fixedHeight,r=t.locale.firstDay,s=h(e),a=u(e),o=a.year,c=a.month,f=new Date(o,c,1),v=new Date(o,c,s),l=f.getDay()-r,d=6-v.getDay()+r;l=l<0?l+7:l,d=d>6?d-7:d;var p=function(t,i){var e=u(t),n=e.year,r=e.month,s=e.date;return new Date(n,r,s-i)}(f,l),m=s+l+d,y=p.getDate(),b=u(p),w=b.year,g=b.month,k=0;n&&(m=42);var D=[];for(;k<m;){var S=new Date(w,g,y+k);i&&i(S),D.push(S),k++}return D};t.getMonthsDates=function(t,i){var e=t.parsedViewDate.year,n=0,r=[];for(;n<12;){var s=new Date(e,n);r.push(s),i&&i(s),n++}return r};t.getYearsDates=function(t,i){var e=v(t.viewDate),n=e[0]-1,r=e[1]+1,s=n,a=[];for(;s<=r;){var o=new Date(s,0);a.push(o),i&&i(o),s++}return a};t.getDatesFunction=function(){var i;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.days;return(i={},i[n.days]=t.getDaysDates,i[n.months]=t.getMonthsDates,i[n.years]=t.getYearsDates,i)[e]};return t}();function x(t,i,e){return(i=function(t){var i=function(t,i){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof i?i:String(i)}(i))in t?Object.defineProperty(t,i,{value:e,enumerable:true,configurable:true,writable:true}):t[i]=e,t}var E=function(){function t(t){var i=this;var e=t.dp,n=t.opts;x(this,"onClickNav",(function(t){var e=w(t.target,".air-datepicker-nav--action");if(!e)return;var n=e.dataset.action;i.dp[n]()})),x(this,"onChangeViewDate",(function(){i.render(),i._resetNavStatus(),i.handleNavStatus()})),x(this,"onChangeCurrentView",(function(){i.render(),i._resetNavStatus(),i.handleNavStatus()})),x(this,"onClickNavTitle",(function(){i.dp.isFinalView||i.dp.up()})),x(this,"update",(function(){var t=i.opts,e=t.prevHtml,n=t.nextHtml;i.$prev.innerHTML=e,i.$next.innerHTML=n,i._resetNavStatus(),i.render(),i.handleNavStatus()})),x(this,"renderDelay",(function(){setTimeout(i.render)})),x(this,"render",(function(){i.$title.innerHTML=i._getTitle(),function(t,i){for(var e in i)i[e]?t.classList.add(e):t.classList.remove(e)}(i.$title,{"-disabled-":i.dp.isFinalView})})),this.dp=e,this.opts=n,this.init()}t.prototype.init=function(){this._createElement(),this._buildBaseHtml(),this._defineDOM(),this.render(),this.handleNavStatus(),this._bindEvents(),this._bindDatepickerEvents()};t.prototype._defineDOM=function(){this.$title=s(".air-datepicker-nav--title",this.$el),this.$prev=s('[data-action="prev"]',this.$el),this.$next=s('[data-action="next"]',this.$el)};t.prototype._bindEvents=function(){this.$el.addEventListener("click",this.onClickNav),this.$title.addEventListener("click",this.onClickNavTitle)};t.prototype._bindDatepickerEvents=function(){this.dp.on(n.eventChangeViewDate,this.onChangeViewDate),this.dp.on(n.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.on(n.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.on(n.eventChangeTime,this.render))};t.prototype.destroy=function(){this.dp.off(n.eventChangeViewDate,this.onChangeViewDate),this.dp.off(n.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.off(n.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.off(n.eventChangeTime,this.render))};t.prototype._createElement=function(){this.$el=a({tagName:"nav",className:"air-datepicker-nav"})};t.prototype._getTitle=function(){var t=this,i=t.dp,e=t.opts,n=e.navTitles[i.currentView];return"function"==typeof n?n(i):i.formatDate(i.viewDate,n)};t.prototype.handleNavStatus=function(){var t=this.opts.disableNavWhenOutOfRange,i=this.dp,e=i.minDate,r=i.maxDate;if(!e&&!r||!t)return;var s=this.dp.parsedViewDate,a=s.year,o=s.month,h=!!e&&u(e),c=!!r&&u(r);switch(this.dp.currentView){case n.days:e&&h.month>=o&&h.year>=a&&this._disableNav("prev"),r&&c.month<=o&&c.year<=a&&this._disableNav("next");break;case n.months:e&&h.year>=a&&this._disableNav("prev"),r&&c.year<=a&&this._disableNav("next");break;case n.years:{var f=v(this.dp.viewDate);e&&h.year>=f[0]&&this._disableNav("prev"),r&&c.year<=f[1]&&this._disableNav("next");break}}};t.prototype._disableNav=function(t){s('[data-action="'+t+'"]',this.$el).classList.add("-disabled-")};t.prototype._resetNavStatus=function(){!function(t){var i;for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];t.length?t.forEach((function(t){var i;(i=t.classList).remove.apply(i,n)})):(i=t.classList).remove.apply(i,n)}(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")};t.prototype._buildBaseHtml=function(){var t=this.opts,i=t.prevHtml,e=t.nextHtml;this.$el.innerHTML='<div class="air-datepicker-nav--action" data-action="prev">'.concat(i,'</div><div class="air-datepicker-nav--title"></div><div class="air-datepicker-nav--action" data-action="next">').concat(e,"</div>")};Object.defineProperty(t.prototype,"isNavIsFunction",{get:function(){var t=this.opts.navTitles;return Object.keys(t).find((function(i){return"function"==typeof t[i]}))},enumerable:false,configurable:true});return t}();var F={today:{content:function(t){return t.locale.today},onClick:function(t){return t.setViewDate(new Date)}},clear:{content:function(t){return t.locale.clear},onClick:function(t){return t.clear()}}};var N=function(){function t(t){var i=t.dp,e=t.opts;this.dp=i,this.opts=e,this.init()}t.prototype.init=function(){this.createElement(),this.render()};t.prototype.createElement=function(){this.$el=a({className:"air-datepicker-buttons"})};t.prototype.destroy=function(){this.$el.parentNode.removeChild(this.$el)};t.prototype.clearHtml=function(){return this.$el.innerHTML="",this};t.prototype.generateButtons=function(){var t=this;var i=this.opts.buttons;Array.isArray(i)||(i=[i]),i.forEach((function(i){var e=i;"string"==typeof i&&F[i]&&(e=F[i]);var n=t.createButton(e);e.onClick&&t.attachEventToButton(n,e.onClick),t.$el.appendChild(n)}))};t.prototype.attachEventToButton=function(t,i){var e=this;t.addEventListener("click",(function(){i(e.dp)}))};t.prototype.createButton=function(t){var i=t.content,e=t.className,n=t.tagName,r=n===void 0?"button":n,s=t.attrs,o=s===void 0?{}:s;return a({tagName:r,innerHtml:"<span tabindex='-1'>".concat("function"==typeof i?i(this.dp):i,"</span>"),className:l("air-datepicker-button",e),attrs:o})};t.prototype.render=function(){this.generateButtons()};return t}();function _(t,i,e){return(i=function(t){var i=function(t,i){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof i?i:String(i)}(i))in t?Object.defineProperty(t,i,{value:e,enumerable:true,configurable:true,writable:true}):t[i]=e,t}var V=function(){function t(){var t=this;var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=i.opts,r=i.dp;_(this,"toggleTimepickerIsActive",(function(i){t.dp.timepickerIsActive=i})),_(this,"onChangeSelectedDate",(function(i){var e=i.date,n=i.updateTime,r=n===void 0?false:n;e&&(t.setMinMaxTime(e),t.setCurrentTime(!!r&&e),t.addTimeToDate(e))})),_(this,"onChangeLastSelectedDate",(function(i){i&&(t.setTime(i),t.render())})),_(this,"onChangeInputRange",(function(i){var e=i.target;t[e.getAttribute("name")]=e.value,t.updateText(),t.dp.trigger(n.eventChangeTime,{hours:t.hours,minutes:t.minutes})})),_(this,"onMouseEnterLeave",(function(i){var e=i.target.getAttribute("name"),n=t.$minutesText;"hours"===e&&(n=t.$hoursText),n.classList.toggle("-focus-")})),_(this,"onFocus",(function(){t.toggleTimepickerIsActive(true)})),_(this,"onBlur",(function(){t.toggleTimepickerIsActive(false)})),this.opts=e,this.dp=r;var s=this.dp.locale.timeFormat;s&&(s.match(S("h"))||s.match(S("hh")))&&(this.ampm=true),this.init()}t.prototype.init=function(){this.setTime(this.dp.lastSelectedDate||this.dp.viewDate),this.createElement(),this.buildHtml(),this.defineDOM(),this.render(),this.bindDatepickerEvents(),this.bindDOMEvents()};t.prototype.bindDatepickerEvents=function(){this.dp.on(n.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(n.eventChangeLastSelectedDate,this.onChangeLastSelectedDate)};t.prototype.bindDOMEvents=function(){var t="input";navigator.userAgent.match(/trident/gi)&&(t="change"),b(this.$ranges,t,this.onChangeInputRange),b(this.$ranges,"mouseenter",this.onMouseEnterLeave),b(this.$ranges,"mouseleave",this.onMouseEnterLeave),b(this.$ranges,"focus",this.onFocus),b(this.$ranges,"mousedown",this.onFocus),b(this.$ranges,"blur",this.onBlur)};t.prototype.createElement=function(){this.$el=a({className:l("air-datepicker-time",{"-am-pm-":this.dp.ampm})})};t.prototype.destroy=function(){this.dp.off(n.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(n.eventChangeLastSelectedDate,this.onChangeLastSelectedDate),this.$el.parentNode.removeChild(this.$el)};t.prototype.buildHtml=function(){var t=this,i=t.ampm,e=t.hours,n=t.displayHours,r=t.minutes,s=t.minHours,a=t.minMinutes,o=t.maxHours,h=t.maxMinutes,u=t.dayPeriod,c=t.opts,v=c.hoursStep,l=c.minutesStep;this.$el.innerHTML='<div class="air-datepicker-time--current"> <span class="air-datepicker-time--current-hours">'.concat(f(n),'</span> <span class="air-datepicker-time--current-colon">:</span> <span class="air-datepicker-time--current-minutes">').concat(f(r),"</span> ")+(i?"<span class='air-datepicker-time--current-ampm'>".concat(u,"</span>"):"")+'</div><div class="air-datepicker-time--sliders"> <div class="air-datepicker-time--row">'+' <input type="range" name="hours" value="'.concat(e,'" min="').concat(s,'" max="').concat(o,'" step="').concat(v,'"/> </div> <div class="air-datepicker-time--row">')+' <input type="range" name="minutes" value="'.concat(r,'" min="').concat(a,'" max="').concat(h,'" step="').concat(l,'"/> </div></div>')};t.prototype.defineDOM=function(){var t=this;var i=function(i){return s(i,t.$el)};this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=i('[name="hours"]'),this.$minutes=i('[name="minutes"]'),this.$hoursText=i(".air-datepicker-time--current-hours"),this.$minutesText=i(".air-datepicker-time--current-minutes"),this.$ampm=i(".air-datepicker-time--current-ampm")};t.prototype.setTime=function(t){this.setMinMaxTime(t),this.setCurrentTime(t)};t.prototype.addTimeToDate=function(t){t&&(t.setHours(this.hours),t.setMinutes(this.minutes))};t.prototype.setMinMaxTime=function(t){if(this.setMinMaxTimeFromOptions(),t){var i=this.dp,e=i.minDate,n=i.maxDate;e&&d(t,e)&&this.setMinTimeFromMinDate(e),n&&d(t,n)&&this.setMaxTimeFromMaxDate(n)}};t.prototype.setCurrentTime=function(t){var i=t?u(t):this,e=i.hours,n=i.minutes;this.hours=g(e,this.minHours,this.maxHours),this.minutes=g(n,this.minMinutes,this.maxMinutes)};t.prototype.setMinMaxTimeFromOptions=function(){var t=this.opts,i=t.minHours,e=t.minMinutes,n=t.maxHours,r=t.maxMinutes;this.minHours=g(i,0,23),this.minMinutes=g(e,0,59),this.maxHours=g(n,0,23),this.maxMinutes=g(r,0,59)};t.prototype.setMinTimeFromMinDate=function(t){var i=this.dp.lastSelectedDate;this.minHours=t.getHours(),i&&i.getHours()>t.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=t.getMinutes()};t.prototype.setMaxTimeFromMaxDate=function(t){var i=this.dp.lastSelectedDate;this.maxHours=t.getHours(),i&&i.getHours()<t.getHours()?this.maxMinutes=this.opts.maxMinutes:this.maxMinutes=t.getMinutes()};t.prototype.updateSliders=function(){o(this.$hours,{min:this.minHours,max:this.maxHours}).value=this.hours,o(this.$minutes,{min:this.minMinutes,max:this.maxMinutes}).value=this.minutes};t.prototype.updateText=function(){this.$hoursText.innerHTML=f(this.displayHours),this.$minutesText.innerHTML=f(this.minutes),this.ampm&&(this.$ampm.innerHTML=this.dayPeriod)};Object.defineProperty(t.prototype,"hours",{get:function(){return this._hours},set:function(t){this._hours=t;var i=c(t),e=i.hours,n=i.dayPeriod;this.displayHours=this.ampm?e:t,this.dayPeriod=n},enumerable:false,configurable:true});t.prototype.render=function(){this.updateSliders(),this.updateText()};return t}();function H(t,i,e){return(i=function(t){var i=function(t,i){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof i?i:String(i)}(i))in t?Object.defineProperty(t,i,{value:e,enumerable:true,configurable:true,writable:true}):t[i]=e,t}var R=function(){function t(t){var i=this;var e=t.dp,n=t.opts;H(this,"pressedKeys",new Set),H(this,"hotKeys",new Map([[[["Control","ArrowRight"],["Control","ArrowUp"]],function(t){return t.month++}],[[["Control","ArrowLeft"],["Control","ArrowDown"]],function(t){return t.month--}],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],function(t){return t.year++}],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],function(t){return t.year--}],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],function(t){return t.year+=10}],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],function(t){return t.year-=10}],[["Control","Shift","ArrowUp"],function(t,i){return i.up()}]])),H(this,"handleHotKey",(function(t){var e=i.hotKeys.get(t),n=u(i.getInitialFocusDate());e(n,i.dp);var r=n.year,s=n.month,a=n.date,o=h(new Date(r,s));o<a&&(a=o);var c=i.dp.getClampedDate(new Date(r,s,a));i.dp.setFocusDate(c,{viewDateTransition:true})})),H(this,"isHotKeyPressed",(function(){var t=false,e=i.pressedKeys.size,n=function(t){return i.pressedKeys.has(t)};var r=function(i){if(t)return"break";if(Array.isArray(i[0]))i.forEach((function(r){t||e!==r.length||(t=r.every(n)&&i)}));else{if(e!==i.length)return"continue";t=i.every(n)&&i}};for(var s=0,a=i.hotKeys;s<a.length;s++){var o=a[s][0];var h=r(o);if(h==="break")break}return t})),H(this,"isArrow",(function(t){return t>=37&&t<=40})),H(this,"onKeyDown",(function(t){if(!i.dp.visible&&!i.dp.treatAsInline)return;var e=t.key,n=t.which,r=i,s=r.dp,a=r.dp.focusDate,o=r.opts;i.registerKey(e);var h=i.isHotKeyPressed();if(h)return t.preventDefault(),void i.handleHotKey(h);if(i.isArrow(n))return t.preventDefault(),void i.focusNextCell(e);if("Enter"===e){if(s.currentView!==o.minView)return void s.down();if(a){var u=s._checkIfDateIsSelected(a);return void(u?s._handleAlreadySelectedDates(u,a):s.selectDate(a))}}"Escape"===e&&i.dp.hide()})),H(this,"onKeyUp",(function(t){i.removeKey(t.key)})),this.dp=e,this.opts=n,this.init()}t.prototype.init=function(){this.bindKeyboardEvents()};t.prototype.bindKeyboardEvents=function(){var t=this.dp.$el;t.addEventListener("keydown",this.onKeyDown),t.addEventListener("keyup",this.onKeyUp)};t.prototype.destroy=function(){var t=this.dp.$el;t.removeEventListener("keydown",this.onKeyDown),t.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null};t.prototype.getInitialFocusDate=function(){var t=this.dp,i=t.focusDate,e=t.currentView,r=t.selectedDates,s=t.parsedViewDate,a=s.year,o=s.month,h=i||r[r.length-1];if(!h)switch(e){case n.days:h=new Date(a,o,(new Date).getDate());break;case n.months:h=new Date(a,o,1);break;case n.years:h=new Date(a,0,1)}return h};t.prototype.focusNextCell=function(t){var i=this.getInitialFocusDate(),e=this.dp.currentView,r=n.days,s=n.months,a=n.years,o=u(i),h=o.year,c=o.month,f=o.date;switch(t){case"ArrowLeft":e===r&&(f-=1),e===s&&(c-=1),e===a&&(h-=1);break;case"ArrowUp":e===r&&(f-=7),e===s&&(c-=3),e===a&&(h-=4);break;case"ArrowRight":e===r&&(f+=1),e===s&&(c+=1),e===a&&(h+=1);break;case"ArrowDown":e===r&&(f+=7),e===s&&(c+=3),e===a&&(h+=4)}var v=this.dp.getClampedDate(new Date(h,c,f));this.dp.setFocusDate(v,{viewDateTransition:true})};t.prototype.registerKey=function(t){this.pressedKeys.add(t)};t.prototype.removeKey=function(t){this.pressedKeys.delete(t)};return t}();var P={on:function(t,i){this.__events||(this.__events={}),this.__events[t]?this.__events[t].push(i):this.__events[t]=[i]},off:function(t,i){this.__events&&this.__events[t]&&(this.__events[t]=this.__events[t].filter((function(t){return t!==i})))},removeAllEvents:function(){this.__events={}},trigger:function(t){for(var i=arguments.length,e=new Array(i>1?i-1:0),n=1;n<i;n++)e[n-1]=arguments[n];this.__events&&this.__events[t]&&this.__events[t].forEach((function(t){t.apply(void 0,e)}))}};function I(t,i,e){return(i=function(t){var i=function(t,i){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof i?i:String(i)}(i))in t?Object.defineProperty(t,i,{value:e,enumerable:true,configurable:true,writable:true}):t[i]=e,t}var U="",$="",q=false;var L=function(){function t(t,i){var e=this;var o=this;if(I(this,"viewIndexes",[n.days,n.months,n.years]),I(this,"next",(function(){var t=e.parsedViewDate,i=t.year,r=t.month;switch(e.currentView){case n.days:e.setViewDate(new Date(i,r+1,1));break;case n.months:e.setViewDate(new Date(i+1,r,1));break;case n.years:e.setViewDate(new Date(i+10,0,1))}})),I(this,"prev",(function(){var t=e.parsedViewDate,i=t.year,r=t.month;switch(e.currentView){case n.days:e.setViewDate(new Date(i,r-1,1));break;case n.months:e.setViewDate(new Date(i-1,r,1));break;case n.years:e.setViewDate(new Date(i-10,0,1))}})),I(this,"_finishHide",(function(){e.hideAnimation=false,e._destroyComponents(),e.$container.removeChild(e.$datepicker)})),I(this,"setPosition",(function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("function"==typeof(t=t||o.opts.position))return void(o.customHide=t({$datepicker:o.$datepicker,$target:o.$el,$pointer:o.$pointer,isViewChange:i,done:o._finishHide}));var e,n,r=o.opts.isMobile,s=o.$el.getBoundingClientRect(),a=o.$el.getBoundingClientRect(),h=o.$datepicker.offsetParent,u=o.$el.offsetParent,c=o.$datepicker.getBoundingClientRect(),f=t.split(" "),v=window.scrollY,l=window.scrollX,d=o.opts.offset,p=f[0],m=f[1];if(r)o.$datepicker.style.cssText="left: 50%; top: 50%";else{if(h===u&&h!==document.body&&(a={top:o.$el.offsetTop,left:o.$el.offsetLeft,width:s.width,height:o.$el.offsetHeight},v=0,l=0),h!==u&&h!==document.body){var y=h.getBoundingClientRect();a={top:s.top-y.top,left:s.left-y.left,width:s.width,height:s.height},v=0,l=0}switch(p){case"top":e=a.top-c.height-d;break;case"right":n=a.left+a.width+d;break;case"bottom":e=a.top+a.height+d;break;case"left":n=a.left-c.width-d}switch(m){case"top":e=a.top;break;case"right":n=a.left+a.width-c.width;break;case"bottom":e=a.top+a.height-c.height;break;case"left":n=a.left;break;case"center":/left|right/.test(p)?e=a.top+a.height/2-c.height/2:n=a.left+a.width/2-c.width/2}o.$datepicker.style.cssText="left: ".concat(n+l,"px; top: ").concat(e+v,"px")}})),I(this,"_setInputValue",(function(){var t=e,i=t.opts,n=t.$altField,r=t.locale.dateFormat,s=i.altFieldDateFormat,a=i.altField;a&&n&&(n.value=e._getInputValue(s)),e.$el.value=e._getInputValue(r),e.$el.dispatchEvent(new Event("change"))})),I(this,"_getInputValue",(function(t){var i=e,n=i.selectedDates,r=i.opts,s=r.multipleDates,a=r.multipleDatesSeparator;if(!n.length)return"";var o="function"==typeof t,h=o?t(s?n:n[0]):n.map((function(i){return e.formatDate(i,t)}));return h=o?h:h.join(a),h})),I(this,"_checkIfDateIsSelected",(function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.days,e=false;return o.selectedDates.some((function(n){var r=d(t,n,i);return e=r&&n,r})),e})),I(this,"_scheduleCallAfterTransition",(function(t){e._cancelScheduledCall(),t&&t(false),e._onTransitionEnd=function(){t&&t(true)},e.$datepicker.addEventListener("transitionend",e._onTransitionEnd,{once:true})})),I(this,"_cancelScheduledCall",(function(){e.$datepicker.removeEventListener("transitionend",e._onTransitionEnd)})),I(this,"setViewDate",(function(t){if(!((t=D(t))instanceof Date))return;if(d(t,e.viewDate))return;var i=e.viewDate;e.viewDate=t;var r=e.opts.onChangeViewDate;if(r){var s=e.parsedViewDate,a=s.month,o=s.year;r({month:a,year:o,decade:e.curDecade})}e.trigger(n.eventChangeViewDate,t,i)})),I(this,"setFocusDate",(function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(!t||(t=D(t))instanceof Date)&&(o.focusDate=t,o.trigger(n.eventChangeFocusDate,t,i))})),I(this,"setCurrentView",(function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o.viewIndexes.includes(t)){if(o.currentView=t,o.elIsInput&&o.visible&&o.setPosition(void 0,true),o.trigger(n.eventChangeCurrentView,t),!o.views[t]){var e=o.views[t]=new T({dp:o,opts:o.opts,type:t});o.shouldUpdateDOM&&o.$content.appendChild(e.$el)}o.opts.onChangeView&&!i.silent&&o.opts.onChangeView(t)}})),I(this,"_updateLastSelectedDate",(function(t){e.lastSelectedDate=t,e.trigger(n.eventChangeLastSelectedDate,t)})),I(this,"destroy",(function(){if(e.isDestroyed)return;var t=e.opts,i=t.showEvent,n=t.isMobile,r=e.$datepicker.parentNode;r&&r.removeChild(e.$datepicker),e.$el.removeEventListener(i,e._onFocus),e.$el.removeEventListener("blur",e._onBlur),window.removeEventListener("resize",e._onResize),n&&e._removeMobileAttributes(),e.keyboardNav&&e.keyboardNav.destroy(),e.views=null,e.nav=null,e.$datepicker=null,e.opts={},e.$customContainer=null,e.viewDate=null,e.focusDate=null,e.selectedDates=[],e.rangeDateFrom=null,e.rangeDateTo=null,e.isDestroyed=true})),I(this,"update",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=k({},o.opts),r=i.silent;k(o.opts,t);var s=o.opts,a=s.timepicker,h=s.buttons,u=s.range,c=s.selectedDates,f=s.isMobile,v=o.visible||o.treatAsInline;o._createMinMaxDates(),o._limitViewDateByMaxMinDates(),o._handleLocale(),c&&(o.selectedDates=[],o.selectDate(c,{silent:r})),t.view&&o.setCurrentView(t.view,{silent:r}),o._setInputValue(),e.range&&!u?(o.rangeDateTo=false,o.rangeDateFrom=false):!e.range&&u&&o.selectedDates.length&&(o.rangeDateFrom=o.selectedDates[0],o.rangeDateTo=o.selectedDates[1]),e.timepicker&&!a?(v&&o.timepicker.destroy(),o.timepicker=false,o.$timepicker.parentNode.removeChild(o.$timepicker)):!e.timepicker&&a&&o._addTimepicker(),!e.buttons&&h?o._addButtons():e.buttons&&!h?(o.buttons.destroy(),o.$buttons.parentNode.removeChild(o.$buttons)):v&&e.buttons&&h&&o.buttons.clearHtml().render(),!e.isMobile&&f?(o.treatAsInline||$||o._createMobileOverlay(),o._addMobileAttributes(),o.visible&&o._showMobileOverlay()):e.isMobile&&!f&&(o._removeMobileAttributes(),o.visible&&($.classList.remove("-active-"),"function"!=typeof o.opts.position&&o.setPosition())),v&&(o.nav.update(),o.views[o.currentView].render(),o.currentView===n.days&&o.views[o.currentView].renderDayNames())})),I(this,"disableDate",(function(t,i){(Array.isArray(t)?t:[t]).forEach((function(t){var n=D(t);if(!n)return;var r=i?"delete":"add";e.disabledDates[r](e.formatDate(n,"yyyy-MM-dd"));var s=e.getCell(n,e.currentViewSingular);s&&s.adpCell.render()}),[])})),I(this,"enableDate",(function(t){e.disableDate(t,true)})),I(this,"isDateDisabled",(function(t){var i=D(t);return e.disabledDates.has(e.formatDate(i,"yyyy-MM-dd"))})),I(this,"isOtherMonth",(function(t){var i=u(t).month;return i!==e.parsedViewDate.month})),I(this,"isOtherYear",(function(t){var i=u(t).year;return i!==e.parsedViewDate.year})),I(this,"isOtherDecade",(function(t){var i=u(t).year,n=v(e.viewDate),r=n[0],s=n[1];return i<r||i>s})),I(this,"_onChangeSelectedDate",(function(t){var i=t.silent;setTimeout((function(){e._setInputValue(),e.opts.onSelect&&!i&&e._triggerOnSelect()}))})),I(this,"_onChangeFocusedDate",(function(t){var i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).viewDateTransition;if(!t)return;var e=false;i&&(e=o.isOtherMonth(t)||o.isOtherYear(t)||o.isOtherDecade(t)),e&&o.setViewDate(t),o.opts.onFocus&&o.opts.onFocus({datepicker:o,date:t})})),I(this,"_onChangeTime",(function(t){var i=t.hours,n=t.minutes,r=new Date,s=e,a=s.lastSelectedDate,o=s.opts.onSelect,h=a;a||(h=r);var u=e.getCell(h,e.currentViewSingular),c=u&&u.adpCell;c&&c.isDisabled||(h.setHours(i),h.setMinutes(n),a?(e._setInputValue(),o&&e._triggerOnSelect()):e.selectDate(h))})),I(this,"_onFocus",(function(t){e.visible||e.show()})),I(this,"_onBlur",(function(t){e.inFocus||!e.visible||e.opts.isMobile||e.hide()})),I(this,"_onMouseDown",(function(t){e.inFocus=true})),I(this,"_onMouseUp",(function(t){e.inFocus=false,e.$el.focus()})),I(this,"_onResize",(function(){e.visible&&"function"!=typeof e.opts.position&&e.setPosition()})),I(this,"_onClickOverlay",(function(){e.visible&&e.hide()})),I(this,"getViewDates",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.days;return T.getDatesFunction(t)(o)})),I(this,"isWeekend",(function(t){return e.opts.weekends.includes(t)})),I(this,"getClampedDate",(function(t){var i=e,n=i.minDate,r=i.maxDate,s=t;return r&&p(t,r)?s=r:n&&m(t,n)&&(s=n),s})),this.$el=s(t),!this.$el)return;this.$datepicker=a({className:"air-datepicker"}),this.opts=k({},r,i),this.$customContainer=!!this.opts.container&&s(this.opts.container),this.$altField=s(this.opts.altField||false);var h=this.opts,c=h.view,f=h.startDate;f||(this.opts.startDate=new Date),"INPUT"===this.$el.nodeName&&(this.elIsInput=true),this.inited=false,this.visible=false,this.viewDate=D(this.opts.startDate),this.focusDate=false,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=false,this.currentView=c,this.selectedDates=[],this.disabledDates=new Set,this.isDestroyed=false,this.views={},this.keys=[],this.rangeDateFrom="",this.rangeDateTo="",this.timepickerIsActive=false,this.treatAsInline=this.opts.inline||!this.elIsInput,this.init()}t.buildGlobalContainer=function(t){q=true,U=a({className:t,id:t}),s("body").appendChild(U)};t.prototype.init=function(){var i=this,e=i.opts,n=i.treatAsInline,r=i.opts,a=r.inline,o=r.isMobile,h=r.selectedDates,u=r.keyboardNav,c=r.onlyTimepicker,f=s("body");(!q||q&&U&&!f.contains(U))&&!a&&this.elIsInput&&!this.$customContainer&&t.buildGlobalContainer(t.defaultGlobalContainerId),!o||$||n||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(a||this._bindEvents(),u&&!c&&(this.keyboardNav=new R({dp:this,opts:e}))),h&&this.selectDate(h,{silent:true}),this.opts.visible&&!n&&this.show(),o&&!n&&this.$el.setAttribute("readonly",true),n&&this._createComponents()};t.prototype._createMobileOverlay=function(){$=a({className:"air-datepicker-overlay"}),U.appendChild($)};t.prototype._createComponents=function(){var t;var i=this,e=i.opts,n=i.treatAsInline,r=i.opts,s=r.inline,a=r.buttons,o=r.timepicker,h=r.position,u=r.classes,c=r.onlyTimepicker,f=r.isMobile;this._buildBaseHtml(),this.elIsInput&&(s||this._setPositionClasses(h)),!s&&this.elIsInput||this.$datepicker.classList.add("-inline-"),u&&(t=this.$datepicker.classList).add.apply(t,u.split(" ")),c&&this.$datepicker.classList.add("-only-timepicker-"),f&&!n&&this._addMobileAttributes(),this.views[this.currentView]=new T({dp:this,type:this.currentView,opts:e}),this.nav=new E({dp:this,opts:e}),o&&this._addTimepicker(),a&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)};t.prototype._destroyComponents=function(){for(var t in this.views)this.views[t].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()};t.prototype._addMobileAttributes=function(){$.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",true)};t.prototype._removeMobileAttributes=function(){$.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||""===this.initialReadonly||this.$el.removeAttribute("readonly")};t.prototype._createMinMaxDates=function(){var t=this.opts,i=t.minDate,e=t.maxDate;this.minDate=!!i&&D(i),this.maxDate=!!e&&D(e)};t.prototype._addTimepicker=function(){this.$timepicker=a({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new V({dp:this,opts:this.opts}),this.$timepicker.appendChild(this.timepicker.$el)};t.prototype._addButtons=function(){this.$buttons=a({className:"air-datepicker--buttons"}),this.$datepicker.appendChild(this.$buttons),this.buttons=new N({dp:this,opts:this.opts}),this.$buttons.appendChild(this.buttons.$el)};t.prototype._bindSubEvents=function(){this.on(n.eventChangeSelectedDate,this._onChangeSelectedDate),this.on(n.eventChangeFocusDate,this._onChangeFocusedDate),this.on(n.eventChangeTime,this._onChangeTime)};t.prototype._buildBaseHtml=function(){var t=this.opts.inline;var i,e;this.elIsInput?t?(i=this.$datepicker,(e=this.$el).parentNode.insertBefore(i,e.nextSibling)):this.$container.appendChild(this.$datepicker):this.$el.appendChild(this.$datepicker),this.$datepicker.innerHTML='<i class="air-datepicker--pointer"></i><div class="air-datepicker--navigation"></div><div class="air-datepicker--content"></div>',this.$content=s(".air-datepicker--content",this.$datepicker),this.$pointer=s(".air-datepicker--pointer",this.$datepicker),this.$nav=s(".air-datepicker--navigation",this.$datepicker)};t.prototype._handleLocale=function(){var t=this.opts,i=t.locale,e=t.dateFormat,n=t.firstDay,r=t.timepicker,s=t.onlyTimepicker,a=t.timeFormat,o=t.dateTimeSeparator;var h;this.locale=(h=i,JSON.parse(JSON.stringify(h))),e&&(this.locale.dateFormat=e),void 0!==a&&""!==a&&(this.locale.timeFormat=a);var u=this.locale.timeFormat;if(""!==n&&(this.locale.firstDay=n),r&&"function"!=typeof e){var c=u?o:"";this.locale.dateFormat=[this.locale.dateFormat,u||""].join(c)}s&&"function"!=typeof e&&(this.locale.dateFormat=this.locale.timeFormat)};t.prototype._setPositionClasses=function(t){var i;if("function"==typeof t)return void this.$datepicker.classList.add("-custom-position-");var e=(t=t.split(" "))[0],n="air-datepicker -".concat(e,"-").concat(t[1],"- -from-").concat(e,"-");(i=this.$datepicker.classList).add.apply(i,n.split(" "))};t.prototype._bindEvents=function(){this.$el.addEventListener(this.opts.showEvent,this._onFocus),this.$el.addEventListener("blur",this._onBlur),this.$datepicker.addEventListener("mousedown",this._onMouseDown),this.$datepicker.addEventListener("mouseup",this._onMouseUp),window.addEventListener("resize",this._onResize)};t.prototype._limitViewDateByMaxMinDates=function(){var t=this,i=t.viewDate,e=t.minDate,n=t.maxDate;n&&p(i,n)&&this.setViewDate(n),e&&m(i,e)&&this.setViewDate(e)};t.prototype.formatDate=function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.viewDate,e=arguments.length>1?arguments[1]:void 0;if(i=D(i),!(i instanceof Date))return;var n=e,r=this.locale,s=u(i),a=s.dayPeriod,o=v(i),h=t.replacer,c={T:i.getTime(),m:s.minutes,mm:s.fullMinutes,h:s.hours12,hh:s.fullHours12,H:s.hours,HH:s.fullHours,aa:a,AA:a.toUpperCase(),E:r.daysShort[s.day],EEEE:r.days[s.day],d:s.date,dd:s.fullDate,M:s.month+1,MM:s.fullMonth,MMM:r.monthsShort[s.month],MMMM:r.months[s.month],yy:s.year.toString().slice(-2),yyyy:s.year,yyyy1:o[0],yyyy2:o[1]};for(var f=0,l=Object.entries(c);f<l.length;f++){var d=l[f],p=d[0],m=d[1];n=h(n,S(p),m)}return n};t.prototype.down=function(t){this._handleUpDownActions(t,"down")};t.prototype.up=function(t){this._handleUpDownActions(t,"up")};t.prototype.selectDate=function(t){var i=this;var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=this,a=s.currentView,o=s.parsedViewDate,h=s.selectedDates,u=r.updateTime,c=r.silent,f=this.opts,v=f.moveToOtherMonthsOnSelect,l=f.moveToOtherYearsOnSelect,d=f.multipleDates,m=f.range,y=f.autoClose,b=f.onBeforeSelect,w=h.length;if(Array.isArray(t))return t.forEach((function(t){i.selectDate(t,r)})),new Promise((function(t){setTimeout(t)}));if((t=D(t))instanceof Date){if(b&&!c&&!b({date:t,datepicker:this}))return Promise.resolve();if(a===n.days&&t.getMonth()!==o.month&&v&&(e=new Date(t.getFullYear(),t.getMonth(),1)),a===n.years&&t.getFullYear()!==o.year&&l&&(e=new Date(t.getFullYear(),0,1)),e&&this.setViewDate(e),d&&!m){if(w===d)return;this._checkIfDateIsSelected(t)||h.push(t)}else if(m)switch(w){case 1:h.push(t),this.rangeDateTo||(this.rangeDateTo=t),p(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=t),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[t],this.rangeDateFrom=t,this.rangeDateTo="";break;default:this.selectedDates=[t],this.rangeDateFrom=t}else this.selectedDates=[t];return this.trigger(n.eventChangeSelectedDate,{action:n.actionSelectDate,silent:null==r?void 0:r.silent,date:t,updateTime:u}),this._updateLastSelectedDate(t),y&&!this.timepickerIsActive&&this.visible&&(d||m?m&&1===w&&this.hide():this.hide()),new Promise((function(t){setTimeout(t)}))}};t.prototype.unselectDate=function(t){var i=this;var e=this.selectedDates,r=this;if((t=D(t))instanceof Date)return e.some((function(s,a){if(d(s,t))return e.splice(a,1),r.selectedDates.length?(r.rangeDateTo="",r.rangeDateFrom=e[0],r._updateLastSelectedDate(r.selectedDates[r.selectedDates.length-1])):(r.rangeDateFrom="",r.rangeDateTo="",r._updateLastSelectedDate(false)),i.trigger(n.eventChangeSelectedDate,{action:n.actionUnselectDate,date:t}),true}))};t.prototype.replaceDate=function(t,i){var e=this;var r=this.selectedDates.find((function(i){return d(i,t,e.currentView)})),s=this.selectedDates.indexOf(r);s<0||d(this.selectedDates[s],i,this.currentView)||(this.selectedDates[s]=i,this.trigger(n.eventChangeSelectedDate,{action:n.actionSelectDate,date:i,updateTime:true}),this._updateLastSelectedDate(i))};t.prototype.clear=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.selectedDates=[],this.rangeDateFrom=false,this.rangeDateTo=false,this.lastSelectedDate=false,this.trigger(n.eventChangeSelectedDate,{action:n.actionUnselectDate,silent:t.silent}),new Promise((function(t){setTimeout(t)}))};t.prototype.show=function(){var t=this.opts,i=t.onShow,e=t.isMobile;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=true,i&&this._scheduleCallAfterTransition(i),e&&this._showMobileOverlay()};t.prototype.hide=function(){var t=this;var i=this.opts,e=i.onHide,n=i.isMobile,r=this._hasTransition();this.visible=false,this.hideAnimation=true,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition((function(i){!t.customHide&&(i&&r||!i&&!r)&&t._finishHide(),e&&e(i)})),n&&$.classList.remove("-active-")};t.prototype._triggerOnSelect=function(){var t=this;var i=[],e=[],n=this,r=n.selectedDates,s=n.locale,a=n.opts,o=a.onSelect,h=a.multipleDates,u=a.range,c=h||u,f="function"==typeof s.dateFormat;r.length&&(i=r.map(y),e=f?h?s.dateFormat(i):i.map((function(t){return s.dateFormat(t)})):i.map((function(i){return t.formatDate(i,s.dateFormat)}))),o({date:c?i:i[0],formattedDate:c?e:e[0],datepicker:this})};t.prototype._handleAlreadySelectedDates=function(t,i){var e=this,n=e.selectedDates,r=e.rangeDateFrom,s=e.rangeDateTo,a=this.opts,o=a.range,h=a.toggleSelected,u=n.length,c="function"==typeof h?h({datepicker:this,date:i}):h,f=Boolean(o&&1===u&&t),v=f?y(i):i;o&&!c&&(2!==u&&this.selectDate(v),2===u&&d(r,s))||(c?this.unselectDate(v):this._updateLastSelectedDate(f?v:t))};t.prototype._handleUpDownActions=function(t,i){if(!((t=D(t||this.focusDate||this.viewDate))instanceof Date))return;var e="up"===i?this.viewIndex+1:this.viewIndex-1;e>2&&(e=2),e<0&&(e=0),this.setViewDate(new Date(t.getFullYear(),t.getMonth(),1)),this.setCurrentView(this.viewIndexes[e])};t.prototype.getCell=function(t){var i;var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.day;if(!((t=D(t))instanceof Date))return;var r=u(t),s=r.year,a=r.month,o=r.date,h='[data-year="'.concat(s,'"]'),c='[data-month="'.concat(a,'"]'),f=(i={},i[n.day]="".concat(h).concat(c,'[data-date="').concat(o,'"]'),i[n.month]="".concat(h).concat(c),i[n.year]="".concat(h),i);return this.views[this.currentView]?this.views[this.currentView].$el.querySelector(f[e]):void 0};t.prototype._showMobileOverlay=function(){$.classList.add("-active-")};t.prototype._hasTransition=function(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce((function(t,i){return parseFloat(i)+t}),0)>0};Object.defineProperty(t.prototype,"shouldUpdateDOM",{get:function(){return this.visible||this.treatAsInline},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"parsedViewDate",{get:function(){return u(this.viewDate)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"currentViewSingular",{get:function(){return this.currentView.slice(0,-1)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"curDecade",{get:function(){return v(this.viewDate)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"viewIndex",{get:function(){return this.viewIndexes.indexOf(this.currentView)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFinalView",{get:function(){return this.currentView===n.years},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"hasSelectedDates",{get:function(){return this.selectedDates.length>0},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isMinViewReached",{get:function(){return this.currentView===this.opts.minView||this.currentView===n.days},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"$container",{get:function(){return this.$customContainer||U},enumerable:false,configurable:true});t.replacer=function(t,i,e){return t.replace(i,(function(t,i,n,r){return i+e+r}))};return t}();var J;return I(L,"defaults",r),I(L,"version","3.6.0"),I(L,"defaultGlobalContainerId","air-datepicker-global-container"),J=L.prototype,Object.assign(J,P),e.default}()}))})(airDatepicker$1);return airDatepicker$1.exports}var airDatepickerExports=requireAirDatepicker();var AirDatepicker=getDefaultExportFromCjs(airDatepickerExports);var en={};var hasRequiredEn;function requireEn(){if(hasRequiredEn)return en;hasRequiredEn=1;Object.defineProperty(en,"__esModule",{value:true});en.default=void 0;var t={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",dateFormat:"MM/dd/yyyy",timeFormat:"hh:mm aa",firstDay:0};en.default=t;return en}var enExports=requireEn();var localeEn=getDefaultExportFromCjs(enExports);export{AirDatepicker as A,localeEn as l};
2
+ //# sourceMappingURL=en-DZgdXBKq.js.map