@elliemae/pui-app-sdk 6.0.0-alpha.2 → 6.0.0-alpha.4
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.
- package/README.md +8 -4
- package/demo/1088.29acec16.iframe.bundle.js +30 -0
- package/demo/1088.29acec16.iframe.bundle.js.br +0 -0
- package/demo/1088.29acec16.iframe.bundle.js.gz +0 -0
- package/demo/1199.9df9a3af.iframe.bundle.js +30 -0
- package/demo/1199.9df9a3af.iframe.bundle.js.br +0 -0
- package/demo/1199.9df9a3af.iframe.bundle.js.gz +0 -0
- package/demo/1372.e2754361.iframe.bundle.js +30 -0
- package/demo/1372.e2754361.iframe.bundle.js.br +0 -0
- package/demo/1372.e2754361.iframe.bundle.js.gz +0 -0
- package/demo/182.25795e09.iframe.bundle.js +3 -0
- package/demo/182.25795e09.iframe.bundle.js.br +0 -0
- package/demo/182.25795e09.iframe.bundle.js.gz +0 -0
- package/demo/197.4305f232.iframe.bundle.js +323 -0
- package/demo/197.4305f232.iframe.bundle.js.br +0 -0
- package/demo/197.4305f232.iframe.bundle.js.gz +0 -0
- package/demo/2139.d6ce163c.iframe.bundle.js +889 -0
- package/demo/2139.d6ce163c.iframe.bundle.js.br +0 -0
- package/demo/2139.d6ce163c.iframe.bundle.js.gz +0 -0
- package/demo/2167.7e435a04.iframe.bundle.js +3 -0
- package/demo/2167.7e435a04.iframe.bundle.js.br +0 -0
- package/demo/2167.7e435a04.iframe.bundle.js.gz +0 -0
- package/demo/226.28364fb9c1cd62630203.manager.bundle.js +296 -0
- package/demo/226.28364fb9c1cd62630203.manager.bundle.js.br +0 -0
- package/demo/226.28364fb9c1cd62630203.manager.bundle.js.gz +0 -0
- package/demo/2706.3ac48b3e.iframe.bundle.js +184 -0
- package/demo/2706.3ac48b3e.iframe.bundle.js.br +0 -0
- package/demo/2706.3ac48b3e.iframe.bundle.js.gz +0 -0
- package/demo/283.ee7481e9dbe9dd5be45a.manager.bundle.js +10 -0
- package/demo/283.ee7481e9dbe9dd5be45a.manager.bundle.js.br +0 -0
- package/demo/283.ee7481e9dbe9dd5be45a.manager.bundle.js.gz +0 -0
- package/demo/2833.3f16f167.iframe.bundle.js +142 -0
- package/demo/2833.3f16f167.iframe.bundle.js.br +0 -0
- package/demo/2833.3f16f167.iframe.bundle.js.gz +0 -0
- package/demo/3330.2b981d37.iframe.bundle.js +128 -0
- package/demo/3330.2b981d37.iframe.bundle.js.br +0 -0
- package/demo/3330.2b981d37.iframe.bundle.js.gz +0 -0
- package/demo/3421.cb9d4b03.iframe.bundle.js +230 -0
- package/demo/3421.cb9d4b03.iframe.bundle.js.br +0 -0
- package/demo/3421.cb9d4b03.iframe.bundle.js.gz +0 -0
- package/demo/4018.bf34442a.iframe.bundle.js +19128 -0
- package/demo/4018.bf34442a.iframe.bundle.js.br +0 -0
- package/demo/4018.bf34442a.iframe.bundle.js.gz +0 -0
- package/demo/418.59707edaa88bb92bc4b1.manager.bundle.js +1 -0
- package/demo/418.59707edaa88bb92bc4b1.manager.bundle.js.br +0 -0
- package/demo/418.59707edaa88bb92bc4b1.manager.bundle.js.gz +0 -0
- package/demo/4333.7e82f3b9.iframe.bundle.js +22 -0
- package/demo/4333.7e82f3b9.iframe.bundle.js.br +0 -0
- package/demo/4333.7e82f3b9.iframe.bundle.js.gz +0 -0
- package/demo/453.0d9c1619.iframe.bundle.js +173 -0
- package/demo/453.0d9c1619.iframe.bundle.js.br +0 -0
- package/demo/453.0d9c1619.iframe.bundle.js.gz +0 -0
- package/demo/4545.f7205e3b.iframe.bundle.js +114 -0
- package/demo/4545.f7205e3b.iframe.bundle.js.br +0 -0
- package/demo/4545.f7205e3b.iframe.bundle.js.gz +0 -0
- package/demo/4705.e8cb3817.iframe.bundle.js +706 -0
- package/demo/4705.e8cb3817.iframe.bundle.js.br +0 -0
- package/demo/4705.e8cb3817.iframe.bundle.js.gz +0 -0
- package/demo/4776.7d09bd49.iframe.bundle.js +882 -0
- package/demo/4776.7d09bd49.iframe.bundle.js.br +0 -0
- package/demo/4776.7d09bd49.iframe.bundle.js.gz +0 -0
- package/demo/4cbbcfa9ded96b660559.html +26 -0
- package/demo/63.8a4920901abfb66b6c5f.manager.bundle.js +1 -0
- package/demo/63.8a4920901abfb66b6c5f.manager.bundle.js.br +0 -0
- package/demo/63.8a4920901abfb66b6c5f.manager.bundle.js.gz +0 -0
- package/demo/6503.ab6fa585.iframe.bundle.js +1 -0
- package/demo/6503.ab6fa585.iframe.bundle.js.br +0 -0
- package/demo/6503.ab6fa585.iframe.bundle.js.gz +0 -0
- package/demo/7086.5c700657.iframe.bundle.js +312 -0
- package/demo/7086.5c700657.iframe.bundle.js.br +0 -0
- package/demo/7086.5c700657.iframe.bundle.js.gz +0 -0
- package/demo/721.06bba888.iframe.bundle.js +796 -0
- package/demo/721.06bba888.iframe.bundle.js.br +0 -0
- package/demo/721.06bba888.iframe.bundle.js.gz +0 -0
- package/demo/786.6c70980fba796c81e61a.manager.bundle.js +1168 -0
- package/demo/786.6c70980fba796c81e61a.manager.bundle.js.br +0 -0
- package/demo/786.6c70980fba796c81e61a.manager.bundle.js.gz +0 -0
- package/demo/805.5b6c22fe354791d0c1e8.manager.bundle.js +17 -0
- package/demo/805.5b6c22fe354791d0c1e8.manager.bundle.js.br +0 -0
- package/demo/805.5b6c22fe354791d0c1e8.manager.bundle.js.gz +0 -0
- package/demo/8070.093eadd6.iframe.bundle.js +1 -0
- package/demo/8070.093eadd6.iframe.bundle.js.br +0 -0
- package/demo/8070.093eadd6.iframe.bundle.js.gz +0 -0
- package/demo/8165.7add50e2.iframe.bundle.js +1 -0
- package/demo/8165.7add50e2.iframe.bundle.js.br +0 -0
- package/demo/8165.7add50e2.iframe.bundle.js.gz +0 -0
- package/demo/840.beb66c5e.iframe.bundle.js +174 -0
- package/demo/840.beb66c5e.iframe.bundle.js.br +0 -0
- package/demo/840.beb66c5e.iframe.bundle.js.gz +0 -0
- package/demo/8553.243669a4.iframe.bundle.js +26 -0
- package/demo/8553.243669a4.iframe.bundle.js.br +0 -0
- package/demo/8553.243669a4.iframe.bundle.js.gz +0 -0
- package/demo/9046.8a9f60b2.iframe.bundle.js +109 -0
- package/demo/9046.8a9f60b2.iframe.bundle.js.br +0 -0
- package/demo/9046.8a9f60b2.iframe.bundle.js.gz +0 -0
- package/demo/929.9310f611b7d9886ddb18.manager.bundle.js +2 -0
- package/demo/929.9310f611b7d9886ddb18.manager.bundle.js.br +0 -0
- package/demo/929.9310f611b7d9886ddb18.manager.bundle.js.gz +0 -0
- package/demo/9332.04709039.iframe.bundle.js +717 -0
- package/demo/9332.04709039.iframe.bundle.js.br +0 -0
- package/demo/9332.04709039.iframe.bundle.js.gz +0 -0
- package/demo/9431.f74d6cf1.iframe.bundle.js +152 -0
- package/demo/9431.f74d6cf1.iframe.bundle.js.br +0 -0
- package/demo/9431.f74d6cf1.iframe.bundle.js.gz +0 -0
- package/demo/9488.af21db24.iframe.bundle.js +214 -0
- package/demo/9488.af21db24.iframe.bundle.js.br +0 -0
- package/demo/9488.af21db24.iframe.bundle.js.gz +0 -0
- package/demo/9576.77449673.iframe.bundle.js +1 -0
- package/demo/9576.77449673.iframe.bundle.js.br +0 -0
- package/demo/9576.77449673.iframe.bundle.js.gz +0 -0
- package/demo/993.4602c8bbb99f9be8eaa2.manager.bundle.js +15 -0
- package/demo/993.4602c8bbb99f9be8eaa2.manager.bundle.js.br +0 -0
- package/demo/993.4602c8bbb99f9be8eaa2.manager.bundle.js.gz +0 -0
- package/demo/9965.7e432ba2.iframe.bundle.js +2 -0
- package/demo/9965.7e432ba2.iframe.bundle.js.br +0 -0
- package/demo/9965.7e432ba2.iframe.bundle.js.gz +0 -0
- package/demo/app.config.json +127 -0
- package/demo/docs/1088.29acec16.iframe.bundle.js +30 -0
- package/demo/docs/1088.29acec16.iframe.bundle.js.br +0 -0
- package/demo/docs/1088.29acec16.iframe.bundle.js.gz +0 -0
- package/demo/docs/1199.9df9a3af.iframe.bundle.js +30 -0
- package/demo/docs/1199.9df9a3af.iframe.bundle.js.br +0 -0
- package/demo/docs/1199.9df9a3af.iframe.bundle.js.gz +0 -0
- package/demo/docs/1372.e2754361.iframe.bundle.js +30 -0
- package/demo/docs/1372.e2754361.iframe.bundle.js.br +0 -0
- package/demo/docs/1372.e2754361.iframe.bundle.js.gz +0 -0
- package/demo/docs/182.25795e09.iframe.bundle.js +3 -0
- package/demo/docs/182.25795e09.iframe.bundle.js.br +0 -0
- package/demo/docs/182.25795e09.iframe.bundle.js.gz +0 -0
- package/demo/docs/197.4305f232.iframe.bundle.js +323 -0
- package/demo/docs/197.4305f232.iframe.bundle.js.br +0 -0
- package/demo/docs/197.4305f232.iframe.bundle.js.gz +0 -0
- package/demo/docs/2139.d6ce163c.iframe.bundle.js +889 -0
- package/demo/docs/2139.d6ce163c.iframe.bundle.js.br +0 -0
- package/demo/docs/2139.d6ce163c.iframe.bundle.js.gz +0 -0
- package/demo/docs/2167.7e435a04.iframe.bundle.js +3 -0
- package/demo/docs/2167.7e435a04.iframe.bundle.js.br +0 -0
- package/demo/docs/2167.7e435a04.iframe.bundle.js.gz +0 -0
- package/demo/docs/226.28364fb9c1cd62630203.manager.bundle.js +296 -0
- package/demo/docs/226.28364fb9c1cd62630203.manager.bundle.js.br +0 -0
- package/demo/docs/226.28364fb9c1cd62630203.manager.bundle.js.gz +0 -0
- package/demo/docs/2706.3ac48b3e.iframe.bundle.js +184 -0
- package/demo/docs/2706.3ac48b3e.iframe.bundle.js.br +0 -0
- package/demo/docs/2706.3ac48b3e.iframe.bundle.js.gz +0 -0
- package/demo/docs/283.ee7481e9dbe9dd5be45a.manager.bundle.js +10 -0
- package/demo/docs/283.ee7481e9dbe9dd5be45a.manager.bundle.js.br +0 -0
- package/demo/docs/283.ee7481e9dbe9dd5be45a.manager.bundle.js.gz +0 -0
- package/demo/docs/2833.3f16f167.iframe.bundle.js +142 -0
- package/demo/docs/2833.3f16f167.iframe.bundle.js.br +0 -0
- package/demo/docs/2833.3f16f167.iframe.bundle.js.gz +0 -0
- package/demo/docs/3330.2b981d37.iframe.bundle.js +128 -0
- package/demo/docs/3330.2b981d37.iframe.bundle.js.br +0 -0
- package/demo/docs/3330.2b981d37.iframe.bundle.js.gz +0 -0
- package/demo/docs/3421.cb9d4b03.iframe.bundle.js +230 -0
- package/demo/docs/3421.cb9d4b03.iframe.bundle.js.br +0 -0
- package/demo/docs/3421.cb9d4b03.iframe.bundle.js.gz +0 -0
- package/demo/docs/4018.bf34442a.iframe.bundle.js +19128 -0
- package/demo/docs/4018.bf34442a.iframe.bundle.js.br +0 -0
- package/demo/docs/4018.bf34442a.iframe.bundle.js.gz +0 -0
- package/demo/docs/418.59707edaa88bb92bc4b1.manager.bundle.js +1 -0
- package/demo/docs/418.59707edaa88bb92bc4b1.manager.bundle.js.br +0 -0
- package/demo/docs/418.59707edaa88bb92bc4b1.manager.bundle.js.gz +0 -0
- package/demo/docs/4333.7e82f3b9.iframe.bundle.js +22 -0
- package/demo/docs/4333.7e82f3b9.iframe.bundle.js.br +0 -0
- package/demo/docs/4333.7e82f3b9.iframe.bundle.js.gz +0 -0
- package/demo/docs/453.0d9c1619.iframe.bundle.js +173 -0
- package/demo/docs/453.0d9c1619.iframe.bundle.js.br +0 -0
- package/demo/docs/453.0d9c1619.iframe.bundle.js.gz +0 -0
- package/demo/docs/4545.f7205e3b.iframe.bundle.js +114 -0
- package/demo/docs/4545.f7205e3b.iframe.bundle.js.br +0 -0
- package/demo/docs/4545.f7205e3b.iframe.bundle.js.gz +0 -0
- package/demo/docs/4705.e8cb3817.iframe.bundle.js +706 -0
- package/demo/docs/4705.e8cb3817.iframe.bundle.js.br +0 -0
- package/demo/docs/4705.e8cb3817.iframe.bundle.js.gz +0 -0
- package/demo/docs/4776.7d09bd49.iframe.bundle.js +882 -0
- package/demo/docs/4776.7d09bd49.iframe.bundle.js.br +0 -0
- package/demo/docs/4776.7d09bd49.iframe.bundle.js.gz +0 -0
- package/demo/docs/4cbbcfa9ded96b660559.html +26 -0
- package/demo/docs/63.8a4920901abfb66b6c5f.manager.bundle.js +1 -0
- package/demo/docs/63.8a4920901abfb66b6c5f.manager.bundle.js.br +0 -0
- package/demo/docs/63.8a4920901abfb66b6c5f.manager.bundle.js.gz +0 -0
- package/demo/docs/6503.ab6fa585.iframe.bundle.js +1 -0
- package/demo/docs/6503.ab6fa585.iframe.bundle.js.br +0 -0
- package/demo/docs/6503.ab6fa585.iframe.bundle.js.gz +0 -0
- package/demo/docs/7086.5c700657.iframe.bundle.js +312 -0
- package/demo/docs/7086.5c700657.iframe.bundle.js.br +0 -0
- package/demo/docs/7086.5c700657.iframe.bundle.js.gz +0 -0
- package/demo/docs/721.06bba888.iframe.bundle.js +796 -0
- package/demo/docs/721.06bba888.iframe.bundle.js.br +0 -0
- package/demo/docs/721.06bba888.iframe.bundle.js.gz +0 -0
- package/demo/docs/786.6c70980fba796c81e61a.manager.bundle.js +1168 -0
- package/demo/docs/786.6c70980fba796c81e61a.manager.bundle.js.br +0 -0
- package/demo/docs/786.6c70980fba796c81e61a.manager.bundle.js.gz +0 -0
- package/demo/docs/805.5b6c22fe354791d0c1e8.manager.bundle.js +17 -0
- package/demo/docs/805.5b6c22fe354791d0c1e8.manager.bundle.js.br +0 -0
- package/demo/docs/805.5b6c22fe354791d0c1e8.manager.bundle.js.gz +0 -0
- package/demo/docs/8070.093eadd6.iframe.bundle.js +1 -0
- package/demo/docs/8070.093eadd6.iframe.bundle.js.br +0 -0
- package/demo/docs/8070.093eadd6.iframe.bundle.js.gz +0 -0
- package/demo/docs/8165.7add50e2.iframe.bundle.js +1 -0
- package/demo/docs/8165.7add50e2.iframe.bundle.js.br +0 -0
- package/demo/docs/8165.7add50e2.iframe.bundle.js.gz +0 -0
- package/demo/docs/840.beb66c5e.iframe.bundle.js +174 -0
- package/demo/docs/840.beb66c5e.iframe.bundle.js.br +0 -0
- package/demo/docs/840.beb66c5e.iframe.bundle.js.gz +0 -0
- package/demo/docs/8553.243669a4.iframe.bundle.js +26 -0
- package/demo/docs/8553.243669a4.iframe.bundle.js.br +0 -0
- package/demo/docs/8553.243669a4.iframe.bundle.js.gz +0 -0
- package/demo/docs/9046.8a9f60b2.iframe.bundle.js +109 -0
- package/demo/docs/9046.8a9f60b2.iframe.bundle.js.br +0 -0
- package/demo/docs/9046.8a9f60b2.iframe.bundle.js.gz +0 -0
- package/demo/docs/929.9310f611b7d9886ddb18.manager.bundle.js +2 -0
- package/demo/docs/929.9310f611b7d9886ddb18.manager.bundle.js.br +0 -0
- package/demo/docs/929.9310f611b7d9886ddb18.manager.bundle.js.gz +0 -0
- package/demo/docs/9332.04709039.iframe.bundle.js +717 -0
- package/demo/docs/9332.04709039.iframe.bundle.js.br +0 -0
- package/demo/docs/9332.04709039.iframe.bundle.js.gz +0 -0
- package/demo/docs/9431.f74d6cf1.iframe.bundle.js +152 -0
- package/demo/docs/9431.f74d6cf1.iframe.bundle.js.br +0 -0
- package/demo/docs/9431.f74d6cf1.iframe.bundle.js.gz +0 -0
- package/demo/docs/9488.af21db24.iframe.bundle.js +214 -0
- package/demo/docs/9488.af21db24.iframe.bundle.js.br +0 -0
- package/demo/docs/9488.af21db24.iframe.bundle.js.gz +0 -0
- package/demo/docs/9576.77449673.iframe.bundle.js +1 -0
- package/demo/docs/9576.77449673.iframe.bundle.js.br +0 -0
- package/demo/docs/9576.77449673.iframe.bundle.js.gz +0 -0
- package/demo/docs/993.4602c8bbb99f9be8eaa2.manager.bundle.js +15 -0
- package/demo/docs/993.4602c8bbb99f9be8eaa2.manager.bundle.js.br +0 -0
- package/demo/docs/993.4602c8bbb99f9be8eaa2.manager.bundle.js.gz +0 -0
- package/demo/docs/9965.7e432ba2.iframe.bundle.js +2 -0
- package/demo/docs/9965.7e432ba2.iframe.bundle.js.br +0 -0
- package/demo/docs/9965.7e432ba2.iframe.bundle.js.gz +0 -0
- package/demo/docs/app.config.json +127 -0
- package/demo/docs/favicon.ico +0 -0
- package/demo/docs/iframe.html +377 -0
- package/demo/docs/index.html +59 -0
- package/demo/docs/main.0a93f2d0ad0dd1fa412d.manager.bundle.js +1 -0
- package/demo/docs/main.0a93f2d0ad0dd1fa412d.manager.bundle.js.br +0 -0
- package/demo/docs/main.0a93f2d0ad0dd1fa412d.manager.bundle.js.gz +0 -0
- package/demo/docs/main.a95267f2.iframe.bundle.js +5 -0
- package/demo/docs/main.a95267f2.iframe.bundle.js.br +0 -0
- package/demo/docs/main.a95267f2.iframe.bundle.js.gz +0 -0
- package/demo/docs/project.json +1 -0
- package/demo/docs/runtime~main.4e5ba139d118c130bf55.manager.bundle.js +2 -0
- package/demo/docs/runtime~main.4e5ba139d118c130bf55.manager.bundle.js.br +0 -0
- package/demo/docs/runtime~main.4e5ba139d118c130bf55.manager.bundle.js.gz +0 -0
- package/demo/docs/runtime~main.e8cb76b7.iframe.bundle.js +2 -0
- package/demo/docs/runtime~main.e8cb76b7.iframe.bundle.js.br +0 -0
- package/demo/docs/runtime~main.e8cb76b7.iframe.bundle.js.gz +0 -0
- package/demo/docs/static/media/ProximaLight.1c840f2e.woff +0 -0
- package/demo/docs/static/media/ProximaLightItalic.26edbdf9.woff +0 -0
- package/demo/docs/static/media/ProximaMedium.8648a446.woff +0 -0
- package/demo/docs/static/media/ProximaMediumItalic.6dd91f36.woff +0 -0
- package/demo/docs/static/media/ProximaNovaBlack.f1ff9416.woff +0 -0
- package/demo/docs/static/media/ProximaNovaBlackItalic.aa93a937.woff +0 -0
- package/demo/docs/static/media/ProximaNovaBold.690419e8.woff +0 -0
- package/demo/docs/static/media/ProximaNovaBoldItalic.f322b739.woff +0 -0
- package/demo/docs/static/media/ProximaNovaExtrabold.404c9e74.woff +0 -0
- package/demo/docs/static/media/ProximaNovaExtraboldItalic.d97ffa0f.woff +0 -0
- package/demo/docs/static/media/ProximaNovaRegular.7abe9fa6.woff +0 -0
- package/demo/docs/static/media/ProximaNovaRegularItalic.1073d28d.woff +0 -0
- package/demo/docs/static/media/ProximaNovaSemibold.1b57a486.woff +0 -0
- package/demo/docs/static/media/ProximaNovaSemiboldItalic.47673788.woff +0 -0
- package/demo/docs/static/media/ProximaNovaThin.730c623c.woff +0 -0
- package/demo/docs/static/media/ProximaNovaThinItalic.2915a90e.woff +0 -0
- package/demo/docs/stories.json +1 -0
- package/demo/docs/view-breakpoint-index-stories.725b4bf2.iframe.bundle.js +101 -0
- package/demo/docs/view-breakpoint-index-stories.725b4bf2.iframe.bundle.js.br +0 -0
- package/demo/docs/view-breakpoint-index-stories.725b4bf2.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-error-toast-index-stories.abbda66b.iframe.bundle.js +377 -0
- package/demo/docs/view-error-toast-index-stories.abbda66b.iframe.bundle.js.br +0 -0
- package/demo/docs/view-error-toast-index-stories.abbda66b.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-autocomplete-advanced-autocomplete-stories.2657a5b3.iframe.bundle.js +669 -0
- package/demo/docs/view-fields-autocomplete-advanced-autocomplete-stories.2657a5b3.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-autocomplete-advanced-autocomplete-stories.2657a5b3.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.8fd7b479.iframe.bundle.js +477 -0
- package/demo/docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.8fd7b479.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.8fd7b479.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-autocomplete-index-stories.041a9ac8.iframe.bundle.js +245 -0
- package/demo/docs/view-fields-autocomplete-index-stories.041a9ac8.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-autocomplete-index-stories.041a9ac8.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-check-box-index-stories.5d87b7de.iframe.bundle.js +181 -0
- package/demo/docs/view-fields-check-box-index-stories.5d87b7de.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-check-box-index-stories.5d87b7de.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-check-box-set-value-stories.1b8a1965.iframe.bundle.js +237 -0
- package/demo/docs/view-fields-check-box-set-value-stories.1b8a1965.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-check-box-set-value-stories.1b8a1965.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-combo-box-index-stories.cd3cf8c5.iframe.bundle.js +209 -0
- package/demo/docs/view-fields-combo-box-index-stories.cd3cf8c5.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-combo-box-index-stories.cd3cf8c5.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-combo-box-v3-index-stories.18f5a0af.iframe.bundle.js +229 -0
- package/demo/docs/view-fields-combo-box-v3-index-stories.18f5a0af.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-combo-box-v3-index-stories.18f5a0af.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-date-input-index-stories.e65fc9f7.iframe.bundle.js +189 -0
- package/demo/docs/view-fields-date-input-index-stories.e65fc9f7.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-date-input-index-stories.e65fc9f7.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-date-picker-index-stories.ec4c16fc.iframe.bundle.js +189 -0
- package/demo/docs/view-fields-date-picker-index-stories.ec4c16fc.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-date-picker-index-stories.ec4c16fc.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-date-range-picker-index-stories.d1dfa972.iframe.bundle.js +161 -0
- package/demo/docs/view-fields-date-range-picker-index-stories.d1dfa972.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-date-range-picker-index-stories.d1dfa972.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-date-time-picker-index-stories.de2037ca.iframe.bundle.js +649 -0
- package/demo/docs/view-fields-date-time-picker-index-stories.de2037ca.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-date-time-picker-index-stories.de2037ca.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-form-item-layout-index-stories.64fad387.iframe.bundle.js +149 -0
- package/demo/docs/view-fields-form-item-layout-index-stories.64fad387.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-form-item-layout-index-stories.64fad387.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-form-layout-block-item-index-stories.7a0edb4a.iframe.bundle.js +266 -0
- package/demo/docs/view-fields-form-layout-block-item-index-stories.7a0edb4a.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-form-layout-block-item-index-stories.7a0edb4a.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-input-mask-index-stories.88d48f48.iframe.bundle.js +225 -0
- package/demo/docs/view-fields-input-mask-index-stories.88d48f48.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-input-mask-index-stories.88d48f48.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-input-text-index-stories.ecfc7817.iframe.bundle.js +161 -0
- package/demo/docs/view-fields-input-text-index-stories.ecfc7817.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-input-text-index-stories.ecfc7817.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-large-text-box-index-stories.91bc0b9e.iframe.bundle.js +254 -0
- package/demo/docs/view-fields-large-text-box-index-stories.91bc0b9e.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-large-text-box-index-stories.91bc0b9e.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-masked-input-text-with-money-mask-stories.70dc56c5.iframe.bundle.js +213 -0
- package/demo/docs/view-fields-masked-input-text-with-money-mask-stories.70dc56c5.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-masked-input-text-with-money-mask-stories.70dc56c5.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-masked-input-text-with-percentage-mask-stories.42e47cb4.iframe.bundle.js +185 -0
- package/demo/docs/view-fields-masked-input-text-with-percentage-mask-stories.42e47cb4.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-masked-input-text-with-percentage-mask-stories.42e47cb4.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-radio-group-index-stories.2acd07e1.iframe.bundle.js +281 -0
- package/demo/docs/view-fields-radio-group-index-stories.2acd07e1.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-radio-group-index-stories.2acd07e1.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-radio-index-stories.24ea59f9.iframe.bundle.js +342 -0
- package/demo/docs/view-fields-radio-index-stories.24ea59f9.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-radio-index-stories.24ea59f9.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-radio-set-value-stories.e4be5a2e.iframe.bundle.js +366 -0
- package/demo/docs/view-fields-radio-set-value-stories.e4be5a2e.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-radio-set-value-stories.e4be5a2e.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-text-box-index-stories.2361b028.iframe.bundle.js +258 -0
- package/demo/docs/view-fields-text-box-index-stories.2361b028.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-text-box-index-stories.2361b028.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-fields-toggle-index-stories.49385e35.iframe.bundle.js +145 -0
- package/demo/docs/view-fields-toggle-index-stories.49385e35.iframe.bundle.js.br +0 -0
- package/demo/docs/view-fields-toggle-index-stories.49385e35.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-form-index-stories.662377c2.iframe.bundle.js +373 -0
- package/demo/docs/view-form-index-stories.662377c2.iframe.bundle.js.br +0 -0
- package/demo/docs/view-form-index-stories.662377c2.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-form-usecases-stories.c30ac9ae.iframe.bundle.js +305 -0
- package/demo/docs/view-form-usecases-stories.c30ac9ae.iframe.bundle.js.br +0 -0
- package/demo/docs/view-form-usecases-stories.c30ac9ae.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-intro-stories-mdx.1e4b9514.iframe.bundle.js +6 -0
- package/demo/docs/view-intro-stories-mdx.1e4b9514.iframe.bundle.js.br +0 -0
- package/demo/docs/view-intro-stories-mdx.1e4b9514.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-live-message-index-stories.8971291c.iframe.bundle.js +169 -0
- package/demo/docs/view-live-message-index-stories.8971291c.iframe.bundle.js.br +0 -0
- package/demo/docs/view-live-message-index-stories.8971291c.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-modals-error-index-stories.ec19ae67.iframe.bundle.js +93 -0
- package/demo/docs/view-modals-error-index-stories.ec19ae67.iframe.bundle.js.br +0 -0
- package/demo/docs/view-modals-error-index-stories.ec19ae67.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-modals-navigation-prompt-index-stories.08b41d76.iframe.bundle.js +101 -0
- package/demo/docs/view-modals-navigation-prompt-index-stories.08b41d76.iframe.bundle.js.br +0 -0
- package/demo/docs/view-modals-navigation-prompt-index-stories.08b41d76.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-modals-session-expiry-index-stories.10053489.iframe.bundle.js +101 -0
- package/demo/docs/view-modals-session-expiry-index-stories.10053489.iframe.bundle.js.br +0 -0
- package/demo/docs/view-modals-session-expiry-index-stories.10053489.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-session-timeout-index-stories.c15fb2ef.iframe.bundle.js +53 -0
- package/demo/docs/view-session-timeout-index-stories.c15fb2ef.iframe.bundle.js.br +0 -0
- package/demo/docs/view-session-timeout-index-stories.c15fb2ef.iframe.bundle.js.gz +0 -0
- package/demo/docs/view-wait-message-index-stories.4b3880d6.iframe.bundle.js +177 -0
- package/demo/docs/view-wait-message-index-stories.4b3880d6.iframe.bundle.js.br +0 -0
- package/demo/docs/view-wait-message-index-stories.4b3880d6.iframe.bundle.js.gz +0 -0
- package/demo/favicon.ico +0 -0
- package/demo/iframe.html +377 -0
- package/demo/index.html +59 -0
- package/demo/main.0a93f2d0ad0dd1fa412d.manager.bundle.js +1 -0
- package/demo/main.0a93f2d0ad0dd1fa412d.manager.bundle.js.br +0 -0
- package/demo/main.0a93f2d0ad0dd1fa412d.manager.bundle.js.gz +0 -0
- package/demo/main.a95267f2.iframe.bundle.js +5 -0
- package/demo/main.a95267f2.iframe.bundle.js.br +0 -0
- package/demo/main.a95267f2.iframe.bundle.js.gz +0 -0
- package/demo/project.json +1 -0
- package/demo/runtime~main.4e5ba139d118c130bf55.manager.bundle.js +2 -0
- package/demo/runtime~main.4e5ba139d118c130bf55.manager.bundle.js.br +0 -0
- package/demo/runtime~main.4e5ba139d118c130bf55.manager.bundle.js.gz +0 -0
- package/demo/runtime~main.e8cb76b7.iframe.bundle.js +2 -0
- package/demo/runtime~main.e8cb76b7.iframe.bundle.js.br +0 -0
- package/demo/runtime~main.e8cb76b7.iframe.bundle.js.gz +0 -0
- package/demo/static/media/ProximaLight.1c840f2e.woff +0 -0
- package/demo/static/media/ProximaLightItalic.26edbdf9.woff +0 -0
- package/demo/static/media/ProximaMedium.8648a446.woff +0 -0
- package/demo/static/media/ProximaMediumItalic.6dd91f36.woff +0 -0
- package/demo/static/media/ProximaNovaBlack.f1ff9416.woff +0 -0
- package/demo/static/media/ProximaNovaBlackItalic.aa93a937.woff +0 -0
- package/demo/static/media/ProximaNovaBold.690419e8.woff +0 -0
- package/demo/static/media/ProximaNovaBoldItalic.f322b739.woff +0 -0
- package/demo/static/media/ProximaNovaExtrabold.404c9e74.woff +0 -0
- package/demo/static/media/ProximaNovaExtraboldItalic.d97ffa0f.woff +0 -0
- package/demo/static/media/ProximaNovaRegular.7abe9fa6.woff +0 -0
- package/demo/static/media/ProximaNovaRegularItalic.1073d28d.woff +0 -0
- package/demo/static/media/ProximaNovaSemibold.1b57a486.woff +0 -0
- package/demo/static/media/ProximaNovaSemiboldItalic.47673788.woff +0 -0
- package/demo/static/media/ProximaNovaThin.730c623c.woff +0 -0
- package/demo/static/media/ProximaNovaThinItalic.2915a90e.woff +0 -0
- package/demo/stories.json +1 -0
- package/demo/view-breakpoint-index-stories.725b4bf2.iframe.bundle.js +101 -0
- package/demo/view-breakpoint-index-stories.725b4bf2.iframe.bundle.js.br +0 -0
- package/demo/view-breakpoint-index-stories.725b4bf2.iframe.bundle.js.gz +0 -0
- package/demo/view-error-toast-index-stories.abbda66b.iframe.bundle.js +377 -0
- package/demo/view-error-toast-index-stories.abbda66b.iframe.bundle.js.br +0 -0
- package/demo/view-error-toast-index-stories.abbda66b.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-autocomplete-advanced-autocomplete-stories.2657a5b3.iframe.bundle.js +669 -0
- package/demo/view-fields-autocomplete-advanced-autocomplete-stories.2657a5b3.iframe.bundle.js.br +0 -0
- package/demo/view-fields-autocomplete-advanced-autocomplete-stories.2657a5b3.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-autocomplete-async-suggestions-autocomplete-stories.8fd7b479.iframe.bundle.js +477 -0
- package/demo/view-fields-autocomplete-async-suggestions-autocomplete-stories.8fd7b479.iframe.bundle.js.br +0 -0
- package/demo/view-fields-autocomplete-async-suggestions-autocomplete-stories.8fd7b479.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-autocomplete-index-stories.041a9ac8.iframe.bundle.js +245 -0
- package/demo/view-fields-autocomplete-index-stories.041a9ac8.iframe.bundle.js.br +0 -0
- package/demo/view-fields-autocomplete-index-stories.041a9ac8.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-check-box-index-stories.5d87b7de.iframe.bundle.js +181 -0
- package/demo/view-fields-check-box-index-stories.5d87b7de.iframe.bundle.js.br +0 -0
- package/demo/view-fields-check-box-index-stories.5d87b7de.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-check-box-set-value-stories.1b8a1965.iframe.bundle.js +237 -0
- package/demo/view-fields-check-box-set-value-stories.1b8a1965.iframe.bundle.js.br +0 -0
- package/demo/view-fields-check-box-set-value-stories.1b8a1965.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-combo-box-index-stories.cd3cf8c5.iframe.bundle.js +209 -0
- package/demo/view-fields-combo-box-index-stories.cd3cf8c5.iframe.bundle.js.br +0 -0
- package/demo/view-fields-combo-box-index-stories.cd3cf8c5.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-combo-box-v3-index-stories.18f5a0af.iframe.bundle.js +229 -0
- package/demo/view-fields-combo-box-v3-index-stories.18f5a0af.iframe.bundle.js.br +0 -0
- package/demo/view-fields-combo-box-v3-index-stories.18f5a0af.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-date-input-index-stories.e65fc9f7.iframe.bundle.js +189 -0
- package/demo/view-fields-date-input-index-stories.e65fc9f7.iframe.bundle.js.br +0 -0
- package/demo/view-fields-date-input-index-stories.e65fc9f7.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-date-picker-index-stories.ec4c16fc.iframe.bundle.js +189 -0
- package/demo/view-fields-date-picker-index-stories.ec4c16fc.iframe.bundle.js.br +0 -0
- package/demo/view-fields-date-picker-index-stories.ec4c16fc.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-date-range-picker-index-stories.d1dfa972.iframe.bundle.js +161 -0
- package/demo/view-fields-date-range-picker-index-stories.d1dfa972.iframe.bundle.js.br +0 -0
- package/demo/view-fields-date-range-picker-index-stories.d1dfa972.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-date-time-picker-index-stories.de2037ca.iframe.bundle.js +649 -0
- package/demo/view-fields-date-time-picker-index-stories.de2037ca.iframe.bundle.js.br +0 -0
- package/demo/view-fields-date-time-picker-index-stories.de2037ca.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-form-item-layout-index-stories.64fad387.iframe.bundle.js +149 -0
- package/demo/view-fields-form-item-layout-index-stories.64fad387.iframe.bundle.js.br +0 -0
- package/demo/view-fields-form-item-layout-index-stories.64fad387.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-form-layout-block-item-index-stories.7a0edb4a.iframe.bundle.js +266 -0
- package/demo/view-fields-form-layout-block-item-index-stories.7a0edb4a.iframe.bundle.js.br +0 -0
- package/demo/view-fields-form-layout-block-item-index-stories.7a0edb4a.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-input-mask-index-stories.88d48f48.iframe.bundle.js +225 -0
- package/demo/view-fields-input-mask-index-stories.88d48f48.iframe.bundle.js.br +0 -0
- package/demo/view-fields-input-mask-index-stories.88d48f48.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-input-text-index-stories.ecfc7817.iframe.bundle.js +161 -0
- package/demo/view-fields-input-text-index-stories.ecfc7817.iframe.bundle.js.br +0 -0
- package/demo/view-fields-input-text-index-stories.ecfc7817.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-large-text-box-index-stories.91bc0b9e.iframe.bundle.js +254 -0
- package/demo/view-fields-large-text-box-index-stories.91bc0b9e.iframe.bundle.js.br +0 -0
- package/demo/view-fields-large-text-box-index-stories.91bc0b9e.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-masked-input-text-with-money-mask-stories.70dc56c5.iframe.bundle.js +213 -0
- package/demo/view-fields-masked-input-text-with-money-mask-stories.70dc56c5.iframe.bundle.js.br +0 -0
- package/demo/view-fields-masked-input-text-with-money-mask-stories.70dc56c5.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-masked-input-text-with-percentage-mask-stories.42e47cb4.iframe.bundle.js +185 -0
- package/demo/view-fields-masked-input-text-with-percentage-mask-stories.42e47cb4.iframe.bundle.js.br +0 -0
- package/demo/view-fields-masked-input-text-with-percentage-mask-stories.42e47cb4.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-radio-group-index-stories.2acd07e1.iframe.bundle.js +281 -0
- package/demo/view-fields-radio-group-index-stories.2acd07e1.iframe.bundle.js.br +0 -0
- package/demo/view-fields-radio-group-index-stories.2acd07e1.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-radio-index-stories.24ea59f9.iframe.bundle.js +342 -0
- package/demo/view-fields-radio-index-stories.24ea59f9.iframe.bundle.js.br +0 -0
- package/demo/view-fields-radio-index-stories.24ea59f9.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-radio-set-value-stories.e4be5a2e.iframe.bundle.js +366 -0
- package/demo/view-fields-radio-set-value-stories.e4be5a2e.iframe.bundle.js.br +0 -0
- package/demo/view-fields-radio-set-value-stories.e4be5a2e.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-text-box-index-stories.2361b028.iframe.bundle.js +258 -0
- package/demo/view-fields-text-box-index-stories.2361b028.iframe.bundle.js.br +0 -0
- package/demo/view-fields-text-box-index-stories.2361b028.iframe.bundle.js.gz +0 -0
- package/demo/view-fields-toggle-index-stories.49385e35.iframe.bundle.js +145 -0
- package/demo/view-fields-toggle-index-stories.49385e35.iframe.bundle.js.br +0 -0
- package/demo/view-fields-toggle-index-stories.49385e35.iframe.bundle.js.gz +0 -0
- package/demo/view-form-index-stories.662377c2.iframe.bundle.js +373 -0
- package/demo/view-form-index-stories.662377c2.iframe.bundle.js.br +0 -0
- package/demo/view-form-index-stories.662377c2.iframe.bundle.js.gz +0 -0
- package/demo/view-form-usecases-stories.c30ac9ae.iframe.bundle.js +305 -0
- package/demo/view-form-usecases-stories.c30ac9ae.iframe.bundle.js.br +0 -0
- package/demo/view-form-usecases-stories.c30ac9ae.iframe.bundle.js.gz +0 -0
- package/demo/view-intro-stories-mdx.1e4b9514.iframe.bundle.js +6 -0
- package/demo/view-intro-stories-mdx.1e4b9514.iframe.bundle.js.br +0 -0
- package/demo/view-intro-stories-mdx.1e4b9514.iframe.bundle.js.gz +0 -0
- package/demo/view-live-message-index-stories.8971291c.iframe.bundle.js +169 -0
- package/demo/view-live-message-index-stories.8971291c.iframe.bundle.js.br +0 -0
- package/demo/view-live-message-index-stories.8971291c.iframe.bundle.js.gz +0 -0
- package/demo/view-modals-error-index-stories.ec19ae67.iframe.bundle.js +93 -0
- package/demo/view-modals-error-index-stories.ec19ae67.iframe.bundle.js.br +0 -0
- package/demo/view-modals-error-index-stories.ec19ae67.iframe.bundle.js.gz +0 -0
- package/demo/view-modals-navigation-prompt-index-stories.08b41d76.iframe.bundle.js +101 -0
- package/demo/view-modals-navigation-prompt-index-stories.08b41d76.iframe.bundle.js.br +0 -0
- package/demo/view-modals-navigation-prompt-index-stories.08b41d76.iframe.bundle.js.gz +0 -0
- package/demo/view-modals-session-expiry-index-stories.10053489.iframe.bundle.js +101 -0
- package/demo/view-modals-session-expiry-index-stories.10053489.iframe.bundle.js.br +0 -0
- package/demo/view-modals-session-expiry-index-stories.10053489.iframe.bundle.js.gz +0 -0
- package/demo/view-session-timeout-index-stories.c15fb2ef.iframe.bundle.js +53 -0
- package/demo/view-session-timeout-index-stories.c15fb2ef.iframe.bundle.js.br +0 -0
- package/demo/view-session-timeout-index-stories.c15fb2ef.iframe.bundle.js.gz +0 -0
- package/demo/view-wait-message-index-stories.4b3880d6.iframe.bundle.js +177 -0
- package/demo/view-wait-message-index-stories.4b3880d6.iframe.bundle.js.br +0 -0
- package/demo/view-wait-message-index-stories.4b3880d6.iframe.bundle.js.gz +0 -0
- package/dist/cjs/analytics/index.js +4 -3
- package/dist/cjs/analytics/user-session-event.js +3 -3
- package/dist/cjs/api/users/index.js +6 -4
- package/dist/cjs/communication/http-client/baseQuery.js +17 -3
- package/dist/cjs/communication/http-client/index.js +9 -3
- package/dist/cjs/data/auth/actions.js +20 -4
- package/dist/cjs/data/breakpoint/index.js +1 -0
- package/dist/cjs/data/webpack-hmr.js +3 -4
- package/dist/cjs/index.js +11 -6
- package/dist/cjs/package.json +4 -1
- package/dist/cjs/utils/app-config/config.js +6 -4
- package/dist/cjs/utils/app-config/index.js +3 -4
- package/dist/cjs/utils/auth/index.js +85 -26
- package/dist/cjs/utils/auth/loginParams.js +12 -1
- package/dist/cjs/utils/constants.js +2 -0
- package/dist/cjs/utils/decorators/classDecorators.js +1 -1
- package/dist/cjs/utils/decorators/functionDecorators.js +98 -0
- package/dist/cjs/utils/decorators/index.js +4 -1
- package/dist/cjs/utils/helpers.js +16 -0
- package/dist/cjs/utils/logrocket.js +45 -0
- package/dist/cjs/utils/micro-frontend/app-bridge.js +45 -0
- package/dist/cjs/utils/micro-frontend/guest.js +276 -35
- package/dist/cjs/utils/micro-frontend/host.js +68 -17
- package/dist/cjs/utils/micro-frontend/index.js +5 -3
- package/dist/cjs/utils/micro-frontend/module-so.js +92 -0
- package/dist/cjs/utils/micro-frontend/ssf-host.js +44 -0
- package/dist/cjs/utils/micro-frontend/tests/__snapshots__/guest.test.ts.snap +242 -0
- package/dist/cjs/utils/micro-frontend/tests/app.config.json +200 -0
- package/dist/cjs/utils/micro-frontend/tests/utils.js +116 -0
- package/dist/cjs/utils/micro-frontend/types.js +18 -0
- package/dist/cjs/utils/session.js +2 -3
- package/dist/cjs/utils/testing/index.js +25 -4
- package/dist/cjs/utils/testing/performance-mock.js +110 -0
- package/dist/cjs/utils/window.js +2 -1
- package/dist/cjs/view/breakpoint/use-breakpoint.js +3 -2
- package/dist/cjs/view/error-toast/index.js +15 -3
- package/dist/cjs/view/fields/combo-box/index.js +2 -2
- package/dist/cjs/view/fields/date-input/index.js +2 -2
- package/dist/cjs/view/fields/date-picker/index.js +2 -2
- package/dist/cjs/view/fields/form-item-layout/index.js +5 -7
- package/dist/cjs/view/fields/form-layout-block-item/index.js +2 -4
- package/dist/cjs/view/fields/input-mask/index.js +4 -4
- package/dist/cjs/view/fields/large-text-box/index.js +2 -2
- package/dist/cjs/view/fields/masked-input-text/index.js +2 -2
- package/dist/cjs/view/fields/radio-group/index.js +2 -2
- package/dist/cjs/view/fields/text-box/index.js +2 -2
- package/dist/cjs/view/form/submit-button/index.js +2 -2
- package/dist/cjs/view/guest-microapp.js +221 -0
- package/dist/cjs/view/login/index.js +33 -3
- package/dist/cjs/view/micro-app/app-factory/index.js +28 -25
- package/dist/cjs/view/micro-app/resources/manifest.js +10 -0
- package/dist/cjs/view/micro-app/resources/script.js +4 -2
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +7 -2
- package/dist/cjs/view/micro-iframe-app/iframe.html +7 -8
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +3 -1
- package/dist/cjs/view/modals/navigation-prompt/index.js +4 -4
- package/dist/cjs/view/modals/session-expiry/index.js +13 -3
- package/dist/cjs/view/page.js +12 -19
- package/dist/cjs/view/require-auth.js +24 -2
- package/dist/cjs/view/tests/__snapshots__/guest-microapp.test.tsx.snap +75 -0
- package/dist/cjs/view/tests/__snapshots__/micro-iframe-app.test.tsx.snap +355 -0
- package/dist/cjs/view/tests/app.config.json +211 -0
- package/dist/cjs/view/tests/constants.js +46 -0
- package/dist/cjs/view/tests/flights/23.1/app.checksum1.css +3 -0
- package/dist/cjs/view/tests/flights/23.1/app.checksum1.js +52 -0
- package/dist/cjs/view/tests/flights/23.1/manifest.json +4 -0
- package/dist/cjs/view/tests/flights/latest/app.checksum.css +3 -0
- package/dist/cjs/view/tests/flights/latest/app.checksum.js +52 -0
- package/dist/cjs/view/tests/flights/latest/manifest.json +4 -0
- package/dist/cjs/view/tests/hotels/23.1/app.checksum.css +3 -0
- package/dist/cjs/view/tests/hotels/23.1/app.checksum.js +52 -0
- package/dist/cjs/view/tests/hotels/23.1/manifest.json +4 -0
- package/dist/cjs/view/tests/hotels/latest/app.checksum.css +3 -0
- package/dist/cjs/view/tests/hotels/latest/app.checksum.js +52 -0
- package/dist/cjs/view/tests/hotels/latest/manifest.json +4 -0
- package/dist/cjs/view/tests/loan/latest/index.js +116 -0
- package/dist/cjs/view/tests/loan/latest/manifest.json +3 -0
- package/dist/cjs/view/tests/scriptingObjects/appraisalServiceModule.js +81 -0
- package/dist/cjs/{utils/micro-frontend/host-app.js → view/tests/scriptingObjects/constant.js} +5 -10
- package/dist/cjs/view/tests/scriptingObjects/global.js +40 -0
- package/dist/cjs/view/tests/scriptingObjects/loan.js +204 -0
- package/dist/cjs/{utils/micro-frontend/scripting-objects/web-analytics.js → view/tests/server.js} +9 -14
- package/dist/cjs/view/tests/serverHandlers.js +225 -0
- package/dist/cjs/view/tests/ssfapp/index.html +14 -0
- package/dist/cjs/view/tests/ssfapp/latest/index.js +16 -0
- package/dist/cjs/view/tests/ssfapp/latest/manifest.json +3 -0
- package/dist/cjs/view/tests/task/latest/index.dev.js +67 -0
- package/dist/cjs/view/tests/task/latest/index.js +67 -0
- package/dist/cjs/view/tests/task/latest/manifest.json +4 -0
- package/dist/cjs/view/tests/travelhub/23.1/app.checksum.css +3 -0
- package/dist/cjs/view/tests/travelhub/23.1/app.checksum.js +25 -0
- package/dist/cjs/view/tests/travelhub/23.1/landing.checksum1.css +3 -0
- package/dist/cjs/view/tests/travelhub/23.1/landing.checksum1.js +6 -0
- package/dist/cjs/view/tests/travelhub/23.1/manifest.json +6 -0
- package/dist/cjs/view/tests/travelhub/latest/app.checksum.css +3 -0
- package/dist/cjs/view/tests/travelhub/latest/app.checksum.js +30 -0
- package/dist/cjs/view/tests/travelhub/latest/landing.checksum.css +3 -0
- package/dist/cjs/view/tests/travelhub/latest/landing.checksum.js +8 -0
- package/dist/cjs/view/tests/travelhub/latest/manifest.json +6 -0
- package/dist/cjs/{analytics/appdynamics.js → view/tests/utils.js} +33 -18
- package/dist/cjs/view/wait-message/index.js +3 -0
- package/dist/esm/analytics/index.js +3 -2
- package/dist/esm/analytics/user-session-event.js +1 -1
- package/dist/esm/api/users/index.js +6 -4
- package/dist/esm/communication/http-client/baseQuery.js +17 -3
- package/dist/esm/communication/http-client/index.js +9 -3
- package/dist/esm/data/auth/actions.js +20 -4
- package/dist/esm/data/breakpoint/index.js +1 -0
- package/dist/esm/data/webpack-hmr.js +3 -3
- package/dist/esm/index.js +19 -6
- package/dist/esm/package.json +4 -1
- package/dist/esm/utils/app-config/config.js +6 -4
- package/dist/esm/utils/app-config/index.js +3 -4
- package/dist/esm/utils/auth/index.js +85 -26
- package/dist/esm/utils/auth/loginParams.js +12 -1
- package/dist/esm/utils/constants.js +2 -0
- package/dist/esm/utils/decorators/classDecorators.js +1 -1
- package/dist/esm/utils/decorators/functionDecorators.js +98 -0
- package/dist/esm/utils/decorators/index.js +8 -2
- package/dist/esm/utils/helpers.js +16 -0
- package/dist/esm/utils/logrocket.js +29 -0
- package/dist/esm/utils/micro-frontend/app-bridge.js +25 -0
- package/dist/esm/utils/micro-frontend/guest.js +276 -35
- package/dist/esm/utils/micro-frontend/host.js +68 -16
- package/dist/esm/utils/micro-frontend/index.js +5 -3
- package/dist/esm/utils/micro-frontend/module-so.js +72 -0
- package/dist/esm/utils/micro-frontend/ssf-host.js +24 -0
- package/dist/esm/utils/micro-frontend/tests/__snapshots__/guest.test.ts.snap +242 -0
- package/dist/esm/utils/micro-frontend/tests/app.config.json +200 -0
- package/dist/esm/utils/micro-frontend/tests/utils.js +96 -0
- package/dist/esm/utils/micro-frontend/types.js +14 -0
- package/dist/esm/utils/session.js +4 -2
- package/dist/esm/utils/testing/index.js +24 -3
- package/dist/esm/utils/testing/performance-mock.js +90 -0
- package/dist/esm/utils/window.js +2 -1
- package/dist/esm/view/breakpoint/use-breakpoint.js +3 -2
- package/dist/esm/view/error-toast/index.js +21 -4
- package/dist/esm/view/fields/combo-box/index.js +1 -1
- package/dist/esm/view/fields/date-input/index.js +1 -1
- package/dist/esm/view/fields/date-picker/index.js +1 -1
- package/dist/esm/view/fields/form-item-layout/index.js +5 -7
- package/dist/esm/view/fields/form-layout-block-item/index.js +3 -5
- package/dist/esm/view/fields/input-mask/index.js +1 -1
- package/dist/esm/view/fields/large-text-box/index.js +1 -1
- package/dist/esm/view/fields/masked-input-text/index.js +2 -2
- package/dist/esm/view/fields/radio-group/index.js +1 -1
- package/dist/esm/view/fields/text-box/index.js +1 -1
- package/dist/esm/view/form/submit-button/index.js +1 -1
- package/dist/esm/view/guest-microapp.js +196 -0
- package/dist/esm/view/login/index.js +33 -3
- package/dist/esm/view/micro-app/app-factory/index.js +28 -32
- package/dist/esm/view/micro-app/resources/manifest.js +10 -0
- package/dist/esm/view/micro-app/resources/script.js +4 -2
- package/dist/esm/view/micro-iframe-app/iframe/index.js +8 -3
- package/dist/esm/view/micro-iframe-app/iframe.html +7 -8
- package/dist/esm/view/micro-iframe-app/use-frame-loaded.js +3 -1
- package/dist/esm/view/modals/navigation-prompt/index.js +1 -1
- package/dist/esm/view/modals/session-expiry/index.js +12 -2
- package/dist/esm/view/page.js +12 -9
- package/dist/esm/view/require-auth.js +24 -2
- package/dist/esm/view/tests/__snapshots__/guest-microapp.test.tsx.snap +75 -0
- package/dist/esm/view/tests/__snapshots__/micro-iframe-app.test.tsx.snap +355 -0
- package/dist/esm/view/tests/app.config.json +211 -0
- package/dist/esm/view/tests/constants.js +26 -0
- package/dist/esm/view/tests/flights/23.1/app.checksum1.css +3 -0
- package/dist/esm/view/tests/flights/23.1/app.checksum1.js +51 -0
- package/dist/esm/view/tests/flights/23.1/manifest.json +4 -0
- package/dist/esm/view/tests/flights/latest/app.checksum.css +3 -0
- package/dist/esm/view/tests/flights/latest/app.checksum.js +51 -0
- package/dist/esm/view/tests/flights/latest/manifest.json +4 -0
- package/dist/esm/view/tests/hotels/23.1/app.checksum.css +3 -0
- package/dist/esm/view/tests/hotels/23.1/app.checksum.js +51 -0
- package/dist/esm/view/tests/hotels/23.1/manifest.json +4 -0
- package/dist/esm/view/tests/hotels/latest/app.checksum.css +3 -0
- package/dist/esm/view/tests/hotels/latest/app.checksum.js +51 -0
- package/dist/esm/view/tests/hotels/latest/manifest.json +4 -0
- package/dist/esm/view/tests/loan/latest/index.js +115 -0
- package/dist/esm/view/tests/loan/latest/manifest.json +3 -0
- package/dist/esm/view/tests/scriptingObjects/appraisalServiceModule.js +63 -0
- package/dist/esm/view/tests/scriptingObjects/constant.js +4 -0
- package/dist/esm/view/tests/scriptingObjects/global.js +22 -0
- package/dist/esm/view/tests/scriptingObjects/loan.js +184 -0
- package/dist/esm/view/tests/server.js +9 -0
- package/dist/esm/view/tests/serverHandlers.js +195 -0
- package/dist/esm/view/tests/ssfapp/index.html +14 -0
- package/dist/esm/view/tests/ssfapp/latest/index.js +15 -0
- package/dist/esm/view/tests/ssfapp/latest/manifest.json +3 -0
- package/dist/esm/view/tests/task/latest/index.dev.js +66 -0
- package/dist/esm/view/tests/task/latest/index.js +66 -0
- package/dist/esm/view/tests/task/latest/manifest.json +4 -0
- package/dist/esm/view/tests/travelhub/23.1/app.checksum.css +3 -0
- package/dist/esm/view/tests/travelhub/23.1/app.checksum.js +24 -0
- package/dist/esm/view/tests/travelhub/23.1/landing.checksum1.css +3 -0
- package/dist/esm/view/tests/travelhub/23.1/landing.checksum1.js +5 -0
- package/dist/esm/view/tests/travelhub/23.1/manifest.json +6 -0
- package/dist/esm/view/tests/travelhub/latest/app.checksum.css +3 -0
- package/dist/esm/view/tests/travelhub/latest/app.checksum.js +29 -0
- package/dist/esm/view/tests/travelhub/latest/landing.checksum.css +3 -0
- package/dist/esm/view/tests/travelhub/latest/landing.checksum.js +7 -0
- package/dist/esm/view/tests/travelhub/latest/manifest.json +6 -0
- package/dist/esm/view/tests/utils.js +33 -0
- package/dist/esm/view/wait-message/index.js +3 -0
- package/dist/types/lib/analytics/index.d.ts +17 -5
- package/dist/types/lib/api/auth/index.d.ts +2 -0
- package/dist/types/lib/api/users/index.d.ts +2 -1
- package/dist/types/lib/communication/http-client/baseQuery.d.ts +57 -1
- package/dist/types/lib/communication/http-client/index.d.ts +38 -3
- package/dist/types/lib/communication/http-client/response-interceptor.d.ts +14 -0
- package/dist/types/lib/communication/http-client/tests/baseQuery.test.d.ts +1 -0
- package/dist/types/lib/data/auth/actions.d.ts +4 -2
- package/dist/types/lib/data/breakpoint/index.d.ts +2 -1
- package/dist/types/lib/data/listenerMiddleware.d.ts +29 -0
- package/dist/types/lib/data/store.d.ts +24 -0
- package/dist/types/lib/data/useAppDispatch.d.ts +17 -0
- package/dist/types/lib/data/useAppSelector.d.ts +13 -0
- package/dist/types/lib/data/useInjectQuery.d.ts +29 -0
- package/dist/types/lib/index.d.ts +7 -6
- package/dist/types/lib/utils/app-config/config.d.ts +51 -0
- package/dist/types/lib/utils/app-config/index.d.ts +19 -1
- package/dist/types/lib/utils/auth/helper.d.ts +17 -0
- package/dist/types/lib/utils/auth/index.d.ts +124 -4
- package/dist/types/lib/utils/auth/loginParams.d.ts +21 -0
- package/dist/types/lib/utils/auth/types.d.ts +5 -4
- package/dist/types/lib/utils/constants.d.ts +1 -0
- package/dist/types/lib/utils/custom-hooks/use-state-selector.d.ts +2 -2
- package/dist/types/lib/utils/decorators/classDecorators.d.ts +7 -2
- package/dist/types/lib/utils/decorators/functionDecorators.d.ts +126 -6
- package/dist/types/lib/utils/decorators/index.d.ts +4 -1
- package/dist/types/lib/utils/helpers.d.ts +7 -0
- package/dist/types/lib/utils/logrocket.d.ts +26 -0
- package/dist/types/lib/utils/micro-frontend/app-bridge.d.ts +15 -0
- package/dist/types/lib/utils/micro-frontend/guest.d.ts +91 -11
- package/dist/types/lib/utils/micro-frontend/host.d.ts +50 -11
- package/dist/types/lib/utils/micro-frontend/module-so.d.ts +82 -0
- package/dist/types/lib/utils/micro-frontend/ssf-host.d.ts +5 -0
- package/dist/types/lib/utils/micro-frontend/tests/guest-initialize.test.d.ts +1 -0
- package/dist/types/lib/utils/micro-frontend/tests/host.test.d.ts +1 -0
- package/dist/types/lib/utils/micro-frontend/tests/module-so.test.d.ts +1 -0
- package/dist/types/lib/utils/micro-frontend/tests/utils.d.ts +39 -0
- package/dist/types/lib/utils/micro-frontend/types.d.ts +120 -2
- package/dist/types/lib/utils/redact-pii.d.ts +24 -0
- package/dist/types/lib/utils/session.d.ts +79 -4
- package/dist/types/lib/utils/testing/index.d.ts +58 -2
- package/dist/types/lib/utils/testing/performance-mock.d.ts +27 -0
- package/dist/types/lib/utils/tests/logrocket.test.d.ts +1 -0
- package/dist/types/lib/utils/window.d.ts +22 -6
- package/dist/types/lib/view/app-root/index.d.ts +27 -0
- package/dist/types/lib/view/error-boundary/index.d.ts +21 -0
- package/dist/types/lib/view/fields/combo-box/index.d.ts +25 -0
- package/dist/types/lib/view/fields/date-picker/index.d.ts +21 -0
- package/dist/types/lib/view/fields/date-time-picker/index.stories.d.ts +37 -12
- package/dist/types/lib/view/fields/form-item-layout/index.d.ts +1 -1
- package/dist/types/lib/view/fields/form-layout-block-item/index.d.ts +1 -1
- package/dist/types/lib/view/fields/input-mask/index.d.ts +1 -1
- package/dist/types/lib/view/fields/text-box/index.d.ts +25 -0
- package/dist/types/lib/view/form/index.d.ts +32 -0
- package/dist/types/lib/view/guest-microapp.d.ts +35 -0
- package/dist/types/lib/view/loadable/index.d.ts +22 -0
- package/dist/types/lib/view/login/index.d.ts +41 -1
- package/dist/types/lib/view/login/tests/index.test.d.ts +1 -0
- package/dist/types/lib/view/micro-app/index.d.ts +5 -0
- package/dist/types/lib/view/micro-app/resources/script.d.ts +1 -1
- package/dist/types/lib/view/micro-iframe-app/index.d.ts +5 -0
- package/dist/types/lib/view/require-auth.d.ts +42 -1
- package/dist/types/lib/view/tests/constants.d.ts +12 -0
- package/dist/types/lib/view/tests/flights/23.1/app.checksum1.d.ts +7 -0
- package/dist/types/lib/view/tests/flights/latest/app.checksum.d.ts +7 -0
- package/dist/types/lib/view/tests/guest-microapp.test.d.ts +1 -0
- package/dist/types/lib/view/tests/hotels/23.1/app.checksum.d.ts +7 -0
- package/dist/types/lib/view/tests/hotels/latest/app.checksum.d.ts +7 -0
- package/dist/types/lib/view/tests/loan/latest/index.d.ts +11 -0
- package/dist/types/lib/view/tests/micro-iframe-app.test.d.ts +1 -0
- package/dist/types/lib/view/tests/require-auth.test.d.ts +1 -0
- package/dist/types/lib/view/tests/scriptingObjects/appraisalServiceModule.d.ts +36 -0
- package/dist/types/lib/view/tests/scriptingObjects/constant.d.ts +1 -0
- package/dist/types/lib/view/tests/scriptingObjects/global.d.ts +9 -0
- package/dist/types/lib/view/tests/scriptingObjects/loan.d.ts +32 -0
- package/dist/types/lib/view/tests/server.d.ts +1 -0
- package/dist/types/lib/view/tests/serverHandlers.d.ts +5 -0
- package/dist/types/lib/view/tests/ssfapp/latest/index.d.ts +2 -0
- package/dist/types/lib/view/tests/task/latest/index.d.ts +10 -0
- package/dist/types/lib/view/tests/task/latest/index.dev.d.ts +10 -0
- package/dist/types/lib/view/tests/travelhub/23.1/app.checksum.d.ts +7 -0
- package/dist/types/lib/view/tests/travelhub/23.1/landing.checksum1.d.ts +2 -0
- package/dist/types/lib/view/tests/travelhub/latest/app.checksum.d.ts +0 -0
- package/dist/types/lib/view/tests/travelhub/latest/landing.checksum.d.ts +0 -0
- package/dist/types/lib/view/tests/utils.d.ts +7 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +69 -71
- package/dist/cjs/utils/micro-frontend/scripting-objects/analytics.js +0 -195
- package/dist/cjs/utils/micro-frontend/ssfguest-adapter.js +0 -58
- package/dist/esm/analytics/appdynamics.js +0 -18
- package/dist/esm/utils/micro-frontend/host-app.js +0 -9
- package/dist/esm/utils/micro-frontend/scripting-objects/analytics.js +0 -165
- package/dist/esm/utils/micro-frontend/scripting-objects/web-analytics.js +0 -14
- package/dist/esm/utils/micro-frontend/ssfguest-adapter.js +0 -28
- package/dist/types/lib/analytics/appdynamics.d.ts +0 -10
- package/dist/types/lib/utils/micro-frontend/host-app.d.ts +0 -11
- package/dist/types/lib/utils/micro-frontend/scripting-objects/analytics.d.ts +0 -61
- package/dist/types/lib/utils/micro-frontend/scripting-objects/web-analytics.d.ts +0 -10
- package/dist/types/lib/utils/micro-frontend/ssfguest-adapter.d.ts +0 -7
- /package/dist/types/lib/{utils/micro-frontend/tests/guest-ssf-host.test.d.ts → communication/http-client/tests/auth-header.test.d.ts} +0 -0
|
@@ -0,0 +1,706 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_elliemae_pui_app_sdk=globalThis.webpackChunk_elliemae_pui_app_sdk||[]).push([[4705],{"./node_modules/.pnpm/@elliemae+ds-form-date-time-picker@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-form-date-time-picker/dist/esm/ControlledDateTimePicker.js"(fs,Xt,te){te.d(Xt,{l:()=>Mt});var r=te("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),c=te("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),It=te("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/describe.js"),zt=te("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/xstyledProps/useGetXstyledProps.js"),Jt=te("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/globalProps/useGetGlobalAttributes.js"),Zt=te("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/defaultProps/useMemoMergePropsWithDefault.js");const Qt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Qe=["January","February","March","April","May","June","July","August","September","October","November","December"],Rt={1:"first",2:"second",3:"third",4:"fourth",5:"fifth",6:"sixth",7:"seventh",8:"eighth",9:"ninth",10:"tenth",11:"eleventh",12:"twelfth",13:"thirteenth",14:"fourteenth",15:"fifteenth",16:"sixteenth",17:"seventeenth",18:"eighteenth",19:"ninteenth",20:"twentieth",21:"twentie first",22:"twentie second",23:"twentie third",24:"twentie fourth",25:"twentie fifth",26:"twentie sixth",27:"twentie seventh",28:"twentie eighth",29:"twentie ninth",30:"thirtieth",31:"thirty first"},Te={isAutomaticFillTrigger:!1},q=e=>{const t=Number.parseInt(e,10);return Number.isNaN(t)?-1:t},re=(e,t,n="0")=>{if(e.length===t)return e;const o=e.split("").reverse();return new Array(t).fill(n).map((s,a)=>o[a]?o[a]:n).reverse().join("")},be=(e,t,n="_")=>{if(e.length===t)return e;const o=e.split("");return new Array(t).fill(n).map((s,a)=>o[a]?o[a]:n).join("")},ve=({month:e,day:t,year:n})=>{const o=be(e,2),s=be(t,2),a=be(n,4);return`${o}/${s}/${a}`},qe=e=>e?.split?.(" ")?.[0],Ee=e=>{const[t="",n="",o=""]=e.split("/"),s=/_/g;return{month:(t||"").replace(s,""),day:(n||"").replace(s,""),year:(o||"").replace(s,"")}},bt=e=>{const[t="",n=""]=e.split(":"),[o="",s=""]=n.split(" "),a=/_/g;return{hours:(t||"").replace(a,""),minutes:(o||"").replace(a,""),meridiem:(s||"").replace(a,"")}},qt=/^[0-9_][0-9_]\/[0-9_][0-9_]\/[0-9_]{4}$/,_t=e=>{if(e==="")return!0;if(!qt.test(e))return!1;const{month:n,day:o,year:s}=Ee(e);return!(Number.parseInt(n,10)>12||Number.parseInt(o,10)>31||Number.parseInt(s,10)>9999)},et=({hours:e,minutes:t,meridiem:n})=>{const o=be(e,2),s=be(t,2),a=be(n,2);return`${o}:${s} ${a}`},Ke=e=>{const[t,n="__:__",o="__"]=e.split(" ");return`${n} ${o}`},wt=e=>{const[t="",n]=e.split(" "),[o,s]=t.split(":"),a=/_/g;return{hours:(o||"").replace(a,""),minutes:(s||"").replace(a,""),meridiem:(n||"").replace(a,"")}},en=/^[0-9_][0-9_]:[0-9_][0-9_]\s[aApP_][mM_]$/,Nt=e=>{if(e==="")return!0;if(!en.test(e))return!1;const{hours:n,minutes:o}=wt(e);return!(Number.parseInt(n,10)>12||Number.parseInt(o,10)>60)},tt=(e,t="_")=>e===""||e.includes(t),xt=e=>e==="__/__/____",kt=e=>e==="__:__ __",nt=e=>e==="__/__/____ __:__ __",tn=e=>{const{month:t,day:n,year:o}=Ee(e),s=q(t),a=q(n),i=q(o);return s===-1||a===-1||i===-1?"":`${Qe[s-1]} ${Rt[a]} ${i}`},ye=e=>({month:e?.getMonth?.(),day:e?.getDate?.(),year:e?.getFullYear?.()}),Me=e=>{const t=re(`${e.getMonth()+1}`,2),n=re(`${e.getDate()}`,2),o=re(`${e.getFullYear()}`,4);return`${t}/${n}/${o}`},nn=e=>{const t=re(`${e.getMonth()+1}`,2),n=re(`${e.getFullYear()}`,4);return`${t}/__/${n}`},rn=e=>{const t=e.getHours(),n=t>12?"PM":"AM",o=t>12?t-12:t,s=e.getMinutes(),a=re(`${o}`,2),i=re(`${s}`,2);return`${a}:${i} ${n}`},on=e=>Qe[e],sn=(e,t)=>e?.getTime?.()===t?.getTime?.(),We=(e,t)=>{const{day:n,month:o,year:s}=ye(e),{day:a,month:i,year:l}=ye(t);return n===a&&o===i&&s===l},Ot=(e,t)=>{const{month:n,year:o}=ye(e),{month:s,year:a}=ye(t);return n===s&&o===a},an=(e,t)=>{const{month:n,year:o}=ye(e),{month:s,year:a}=ye(t);return n-1===s&&o===a||n-1===-1&&o-1===a&&s===11},ln=(e,t)=>{const{month:n,year:o}=ye(e),{month:s,year:a}=ye(t);return n+1===s&&o===a||n+1===12&&o+1===a&&s===0},Es=(e,t)=>new Date(t,e+1,0),rt=(e,t,n)=>new Date(t,e,n)?.getMonth?.()===e,Ve=e=>{const{month:t,day:n,year:o}=Ee(e),s=q(t),a=q(n),i=q(o);return s!==-1&&a!==-1&&i!==-1&&rt(s-1,i,a)?new Date(i,s-1,a):null},cn=e=>{if(tt(e))return!0;const{month:t}=Ee(e),n=q(t);if(n===-1)return!1;const o=n-1;return Ve(e)?.getMonth?.()===o},_e=(e,t=o=>!1,n=o=>!1)=>{const o={};return tt(e)||(o.isDayPresentInMonth=cn(e),o.isDayPresentInMonth||(o.suggestedErrorMsg="The selected day is not part of the selected month"),Ve(e)&&(o.isOutOfRangeDay=t(e),o.isDisabledDay=n(e),(o.isOutOfRangeDay||o.isDisabledDay)&&(o.suggestedErrorMsg="The selected day is not allowed"))),o},Lt=e=>e%4===0&&e%100!==0||e%400===0,dn=(e,t)=>[31,Lt(e)?29:28,31,30,31,30,31,31,30,31,30,31][t],ys=e=>Lt(e.getFullYear()),un=e=>dn(e.getFullYear(),e.getMonth()),vt=(e,t)=>{const n=new Date(e.getTime()),o=n.getDate();return n.setDate(1),n.setMonth(n.getMonth()+t),n.setDate(Math.min(o,un(n))),n},mn=(e,t)=>vt(e,t*12),Ue=({month:e,year:t,day:n=1},{monthsToSum:o=0,yearsToSum:s=0,daysToSum:a=0})=>{let i=new Date(t,e,n);return s&&(i=mn(i,s)),o&&(i=vt(i,o)),a&&i.setDate(i.getDate()+a),{month:i.getMonth(),day:i.getDate(),year:i.getFullYear()}},Pe=(e,t)=>{const n=ye(e),{month:o,year:s,day:a}=Ue(n,t);return new Date(s,o,a)},Cs=(e,t=1)=>{const n=new Date(e.getTime());return n.setFullYear(e.getFullYear()-t),n},Ds=(e,t=1)=>{const n=new Date(e.getTime());return n.setMonth(e.getMonth()-t),n},pn=(e,t=1)=>{const n=new Date(e.getTime());return n.setMonth(e.getMonth()+t),n},Ts=(e,t=1)=>{const n=new Date(e.getTime());return n.setFullYear(e.getFullYear()+t),n},hn=(e,t)=>{const n=new Date(t,e,1),o=[];for(;n.getMonth()===e;)o.push(new Date(n)),n.setDate(n.getDate()+1);return o},Pt=(e,t,n)=>{const o=new Date(t,e,1),s=[];for(;s.length!==n;)o.setDate(o.getDate()-1),s.push(new Date(o));return s.reverse()},St=(e,t,n)=>{const o=pn(new Date(t,e,1),1),s=[];for(;s.length!==n;)s.push(new Date(o)),o.setDate(o.getDate()+1);return s},gn=(e,t)=>{const n=hn(e,t).map(E=>({day:E,dayAsString:Me(E),isPrevMonthDay:!1,isNextMonthDay:!1,isCurrMonthDay:!0,isHidden:!1,dayBtnRef:(0,r.createRef)()})),o=n?.[0]?.day?.getDay(),s=Pt(e,t,o).map(E=>({day:E,dayAsString:Me(E),isPrevMonthDay:!0,isNextMonthDay:!1,isCurrMonthDay:!1,isHidden:!1,dayBtnRef:(0,r.createRef)()})),a=n?.[n.length-1]?.day?.getDay(),i=St(e,t,6-a).map(E=>({day:E,dayAsString:Me(E),isPrevMonthDay:!1,isNextMonthDay:!0,isCurrMonthDay:!1,isHidden:!1,dayBtnRef:(0,r.createRef)()})),l=[...s,...n,...i];if(l.length===42)return l;const m=7+o;let h=6-a;s.length===0&&n.length===28&&i.length===0&&(h=7);const u=Pt(e,t,m).map(E=>({day:E,dayAsString:Me(E),isPrevMonthDay:!0,isNextMonthDay:!1,isCurrMonthDay:!1,isHidden:!1,dayBtnRef:(0,r.createRef)()})),p=St(e,t,h).map(E=>({day:E,dayAsString:Me(E),isPrevMonthDay:!1,isNextMonthDay:!0,isCurrMonthDay:!1,isHidden:!1,dayBtnRef:(0,r.createRef)()}));return[...u,...n,...p]};var fn=te("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propsPerSlot/getPropsPerSlotPropTypes.js"),En=te("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/globalProps/globalAttributesPropTypes.js"),yn=te("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/xstyledProps/xstyledPropTypes.js"),X=te("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/PropTypes.js");const Cn=e=>typeof e=="string",Dn=e=>typeof e=="object",Ht=e=>Object.keys(e).reduce((o,s)=>{const a=e[s];return Cn(a)?o.push(`${a}`):Dn(a)&&o.push(...Ht(a)),o},[]),Tn=e=>{const t=Ht(e),n={};return t.forEach(o=>{n[o]=X.A.shape({"aria-*":X.A.string.description("Aria related properties"),"data-*":X.A.string.description("Any data property to attach to the root container"),"on-*":X.A.func.description("Any supported React event"),"all HTML attributes":X.A.any.description("HTML attributes such as id, className, autoComplete, href and so on")}).description(`an object containing the definitions for ${o} aria and data props`).dataTestId()}),n};var Mn=te("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-system/dist/esm/styled/helpers.js");const ee="DSControlleddatetimepicker",ne={CONTAINER:"root",DATE_INPUTS_MONTH:"time-picker-month-input",DATE_INPUTS_DAY:"time-picker-day-input",DATE_INPUTS_YEAR:"time-picker-year-input",TIME_INPUTS_HOUR:"time-picker-hour-input",TIME_INPUTS_MINUTE:"time-picker-minute-input",TIME_INPUTS_MERIDIEM:"time-picker-meridiem-input",PICKER_ICONS_CALENDAR:"calendar-trigger-icon",PICKER_ICONS_TIMEWHEEL:"timewheel-trigger-icon",PICKER_ICONS_CALENDAR_TIMEWHEEL:"calendar-timewheel-trigger-icon",CALENDAR_DAY_BUTTON:"calendar-day",CALENDAR_HEADER_LABEL:"calendar-header-label",CALENDAR_HEADER_BUTTON:"calendar-header-buttons",CALENDAR_HEADER_WEEKLY_DAY_LIST:"calendar-header-weekly-day-list",TIMEWHEEL_TIME_BUTTON:"timewheel-time-button",TIMEWHEEL_TIME_CHANGE_BUTTON:"timewheel-time-change-button",TIMEWHEEL_HEADER_LABEL:"timewheel-header-label",CONTEXTUAL_MENU_CALENDAR:"calendar-context-content-wrapper",CONTEXTUAL_MENU_TIMEWHEEL:"timewheel-context-content-wrapper",CONTEXTUAL_MENU_CALENDAR_TIMEWHEEL:"calendar-timewheel-context-content-wrapper",FOOTERS_CALENDAR:"calendar-context-footer",FOOTERS_TIMEWHEEL:"timewheel-context-footer",FOOTERS_CALENDAR_TIMEWHEEL:"calendar-timewheel-context-footer",CONTROLLER_COMPONENT_CALENDAR:"calendar-controller-wrapper",CONTROLLER_COMPONENT_TIMEWHEEL:"timewheel-controller-wrapper",CONTROLLER_COMPONENT_CALENDAR_TIMEWHEEL:"calendar-timewheel-controller-wrapper",CLEAR_BUTTON:"clear-btn"},An={CONTAINER:"ds-controlled-date-time-picker-container",DATE_INPUTS_MONTH:"ds-controlled-date-time-picker-month-input",DATE_INPUTS_DAY:"ds-controlled-date-time-picker-day-input",DATE_INPUTS_YEAR:"ds-controlled-date-time-picker-year-input",TIME_INPUTS_HOUR:"ds-controlled-date-time-picker-hour-input",TIME_INPUTS_MINUTE:"ds-controlled-date-time-picker-minute-input",TIME_INPUTS_MERIDIEM:"ds-controlled-date-time-picker-meridiem-input",PICKER_ICONS_CALENDAR:"ds-controlled-date-time-picker-calendar-trigger-icon",PICKER_ICONS_TIMEWHEEL:"ds-controlled-date-time-picker-timewheel-trigger-icon",PICKER_ICONS_CALENDAR_TIMEWHEEL:"ds-controlled-date-time-picker-calendar-timewheel-trigger-icon",CALENDAR_TABLE_WRAPPER:"ds-controlled-date-time-picker-calendar-table-wrapper",CALENDAR_HEADER_LABEL:"ds-controlled-date-time-picker-calendar-header-label",CALENDAR_PREV_YEAR:"ds-controlled-date-time-picker-calendar-prev-year",CALENDAR_PREV_MONTH:"ds-controlled-date-time-picker-calendar-prev-month",CALENDAR_DAY:"ds-controlled-date-time-picker-calendar-day",CALENDAR_FOCUSED_DAY:"ds-controlled-date-time-picker-calendar-focused-day",CALENDAR_START_RANGE_DAY:"ds-controlled-date-time-picker-calendar-start-range-day",CALENDAR_IN_RANGE_DAY:"ds-controlled-date-time-picker-calendar-in-range-day",CALENDAR_END_RANGE_DAY:"ds-controlled-date-time-picker-calendar-end-range-day",CALENDAR_SELECTED_DAY:"ds-controlled-date-time-picker-calendar-selected-day",CALENDAR_SELECTED_FOCUSED_DAY:"ds-controlled-date-time-picker-calendar-selected-focused-day",CALENDAR_NEXT_MONTH:"ds-controlled-date-time-picker-calendar-next-month",CALENDAR_NEXT_YEAR:"ds-controlled-date-time-picker-calendar-next-year",TIMEWHEEL_HEADER_LABEL:"ds-controlled-date-time-picker-timewheel-header-label",TIMEWHEEL_PREV_HOUR:"ds-controlled-date-time-picker-timewheel-prev-hour",TIMEWHEEL_HOUR:"ds-controlled-date-time-picker-timewheel-hour",TIMEWHEEL_CURRENT_HOUR:"ds-controlled-date-time-picker-timewheel-current-hour",TIMEWHEEL_NEXT_HOUR:"ds-controlled-date-time-picker-timewheel-next-hour",TIMEWHEEL_PREV_MINUTE:"ds-controlled-date-time-picker-timewheel-prev-minute",TIMEWHEEL_MINUTE:"ds-controlled-date-time-picker-timewheel-minute",TIMEWHEEL_CURRENT_MINUTE:"ds-controlled-date-time-picker-timewheel-current-minute",TIMEWHEEL_NEXT_MINUTE:"ds-controlled-date-time-picker-timewheel-next-minute",TIMEWHEEL_PREV_MERIDIEM:"ds-controlled-date-time-picker-timewheel-prev-meridiem",TIMEWHEEL_MERIDIEM:"ds-controlled-date-time-picker-timewheel-meridiem",TIMEWHEEL_CURRENT_MERIDIEM:"ds-controlled-date-time-picker-timewheel-current-meridiem",TIMEWHEEL_NEXT_MERIDIEM:"ds-controlled-date-time-picker-timewheel-next-meridiem",CONTEXTUAL_MENU_CALENDAR:"ds-controlled-date-time-picker-calendar-context-content-wrapper",CONTEXTUAL_MENU_TIMEWHEEL:"ds-controlled-date-time-picker-timewheel-context-content-wrapper",CONTEXTUAL_MENU_CALENDAR_TIMEWHEEL:"ds-controlled-date-time-picker-calendar-timewheel-context-content-wrapper",CONTROLLER_COMPONENT_CALENDAR:"ds-controlled-date-time-picker-calendar-controller-wrapper",CONTROLLER_COMPONENT_TIMEWHEEL:"ds-controlled-date-time-picker-timewheel-controller-wrapper",CONTROLLER_COMPONENT_CALENDAR_TIMEWHEEL:"ds-controlled-date-time-picker-calendar-timewheel-controller-wrapper",FOOTERS_CALENDAR:"ds-controlled-date-time-picker-calendar-context-footer",FOOTERS_TIMEWHEEL:"ds-controlled-date-time-picker-timewheel-context-footer",FOOTERS_CALENDAR_TIMEWHEEL:"ds-controlled-date-time-picker-calendar-timewheel-context-footer",CLEAR_BUTTON:"ds-controlled-date-time-picker-clear-btn"},B={...(0,Mn.lD)(ee,ne),...An},In=ne,oe={CONTAINER:ne.CONTAINER,DATE_INPUTS:{MONTH:ne.DATE_INPUTS_MONTH,DAY:ne.DATE_INPUTS_DAY,YEAR:ne.DATE_INPUTS_YEAR},TIME_INPUTS:{HOUR:ne.TIME_INPUTS_HOUR,MINUTE:ne.TIME_INPUTS_MINUTE,MERIDIEM:ne.TIME_INPUTS_MERIDIEM},PICKER_ICONS:{CALENDAR:ne.PICKER_ICONS_CALENDAR,TIMEWHEEL:ne.PICKER_ICONS_TIMEWHEEL,CALENDAR_TIMEWHEEL:ne.PICKER_ICONS_CALENDAR_TIMEWHEEL},CALENDAR:{DAY_BUTTON:ne.CALENDAR_DAY_BUTTON,HEADER_LABEL:ne.CALENDAR_HEADER_LABEL,HEADER_BUTTON:ne.CALENDAR_HEADER_BUTTON,HEADER_WEEKLY_DAY_LIST:ne.CALENDAR_HEADER_WEEKLY_DAY_LIST},TIMEWHEEL:{TIME_BUTTON:ne.TIMEWHEEL_TIME_BUTTON,TIME_CHANGE_BUTTON:ne.TIMEWHEEL_TIME_CHANGE_BUTTON,HEADER_LABEL:ne.TIMEWHEEL_HEADER_LABEL},CONTEXTUAL_MENU:{CALENDAR:ne.CONTEXTUAL_MENU_CALENDAR,TIMEWHEEL:ne.CONTEXTUAL_MENU_TIMEWHEEL,CALENDAR_TIMEWHEEL:ne.CONTEXTUAL_MENU_CALENDAR_TIMEWHEEL},FOOTERS:{CALENDAR:ne.FOOTERS_CALENDAR,TIMEWHEEL:ne.FOOTERS_TIMEWHEEL,CALENDAR_TIMEWHEEL:ne.FOOTERS_CALENDAR_TIMEWHEEL},CONTROLLER_COMPONENT:{CALENDAR:ne.CONTROLLER_COMPONENT_CALENDAR,TIMEWHEEL:ne.CONTROLLER_COMPONENT_TIMEWHEEL,CALENDAR_TIMEWHEEL:ne.CONTROLLER_COMPONENT_CALENDAR_TIMEWHEEL},CLEAR_BUTTON:ne.CLEAR_BUTTON},Ms=null,V={CONTAINER:B.CONTAINER,DATE_INPUTS:{MONTH:B.DATE_INPUTS_MONTH,DAY:B.DATE_INPUTS_DAY,YEAR:B.DATE_INPUTS_YEAR},TIME_INPUTS:{HOUR:B.TIME_INPUTS_HOUR,MINUTE:B.TIME_INPUTS_MINUTE,MERIDIEM:B.TIME_INPUTS_MERIDIEM},PICKER_ICONS:{CALENDAR:B.PICKER_ICONS_CALENDAR,TIMEWHEEL:B.PICKER_ICONS_TIMEWHEEL,CALENDAR_TIMEWHEEL:B.PICKER_ICONS_CALENDAR_TIMEWHEEL},CALENDAR:{TABLE_WRAPPER:B.CALENDAR_TABLE_WRAPPER,HEADER_LABEL:B.CALENDAR_HEADER_LABEL,PREV_YEAR:B.CALENDAR_PREV_YEAR,PREV_MONTH:B.CALENDAR_PREV_MONTH,DAY:B.CALENDAR_DAY,FOCUSED_DAY:B.CALENDAR_FOCUSED_DAY,START_RANGE_DAY:B.CALENDAR_START_RANGE_DAY,IN_RANGE_DAY:B.CALENDAR_IN_RANGE_DAY,END_RANGE_DAY:B.CALENDAR_END_RANGE_DAY,SELECTED_DAY:B.CALENDAR_SELECTED_DAY,SELECTED_FOCUSED_DAY:B.CALENDAR_SELECTED_FOCUSED_DAY,NEXT_MONTH:B.CALENDAR_NEXT_MONTH,NEXT_YEAR:B.CALENDAR_NEXT_YEAR},TIMEWHEEL:{HEADER_LABEL:B.TIMEWHEEL_HEADER_LABEL,PREV_HOUR:B.TIMEWHEEL_PREV_HOUR,HOUR:B.TIMEWHEEL_HOUR,CURRENT_HOUR:B.TIMEWHEEL_CURRENT_HOUR,NEXT_HOUR:B.TIMEWHEEL_NEXT_HOUR,PREV_MINUTE:B.TIMEWHEEL_PREV_MINUTE,MINUTE:B.TIMEWHEEL_MINUTE,CURRENT_MINUTE:B.TIMEWHEEL_CURRENT_MINUTE,NEXT_MINUTE:B.TIMEWHEEL_NEXT_MINUTE,PREV_MERIDIEM:B.TIMEWHEEL_PREV_MERIDIEM,MERIDIEM:B.TIMEWHEEL_MERIDIEM,CURRENT_MERIDIEM:B.TIMEWHEEL_CURRENT_MERIDIEM,NEXT_MERIDIEM:B.TIMEWHEEL_NEXT_MERIDIEM},CONTEXTUAL_MENU:{CALENDAR:B.CONTEXTUAL_MENU_CALENDAR,TIMEWHEEL:B.CONTEXTUAL_MENU_TIMEWHEEL,CALENDAR_TIMEWHEEL:B.CONTEXTUAL_MENU_CALENDAR_TIMEWHEEL},CONTROLLER_COMPONENT:{CALENDAR:B.CONTROLLER_COMPONENT_CALENDAR,TIMEWHEEL:B.CONTROLLER_COMPONENT_TIMEWHEEL,CALENDAR_TIMEWHEEL:B.CONTROLLER_COMPONENT_CALENDAR_TIMEWHEEL},FOOTERS:{CALENDAR:B.FOOTERS_CALENDAR,TIMEWHEEL:B.FOOTERS_TIMEWHEEL,CALENDAR_TIMEWHEEL:B.FOOTERS_CALENDAR_TIMEWHEEL},CLEAR_BUTTON:B.CLEAR_BUTTON},Ae=()=>{},Se=()=>!1,Rn={type:"full-date-time",onDateChange:Ae,onMonthChange:Ae,onDayChange:Ae,onYearChange:Ae,onTimeChange:Ae,onHourChange:Ae,onMinuteChange:Ae,onMeridiemChange:Ae,onPickerOpen:Ae,onPickerClose:Ae,getIsDisabledDay:Se,getIsOutOfRangeDay:Se,getIsStartRangeDay:Se,getIsDayInRange:Se,getIsEndRangeDay:Se,getIsDisabledTime:Se,minutesInterval:1,isClearable:!1,disabled:!1,readOnly:!1,hasError:!1,autoFocus:!1,preventCloseOnSelection:!1},bn={...(0,fn.Y)(ee,In),...En.P,...yn.w,type:X.A.oneOf(["full-date-time","date-time-inputs","date-time-picker","date-time-picker-controller-only","full-date","date-inputs","date-picker","date-picker-controller-only","full-time","time-inputs","time-picker","time-picker-controller-only"]).description("Type of time form control to use").defaultValue("full-date-time"),disabled:X.A.bool.description("wheter or not the input is disabled").defaultValue(!1),applyAriaDisabled:X.A.bool.description("Whether to apply disabled styling and announce as disabled in SR. CAN STILL RECEIVE FOCUS. PREVENTS ONLY MAIN ACTION."),readOnly:X.A.bool.description("Makes the component non-editable while remaining accessible").defaultValue(!1),isClearable:X.A.bool.description("with or without clearable button").defaultValue(!1),dateTime:X.A.string.description("when using date-time types, this is the value of the controller"),date:X.A.string.description("when using date types, this is the value of the controller"),time:X.A.string.description("when using time types, this is the value of the controller"),onDateChange:X.A.func.description("(newDateString, metaInformations) => void"),onTimeChange:X.A.func.description("(newTimeString, metaInformations) => void"),onDateTimeChange:X.A.func.description("(newDateTimeString, metaInformations) => void"),onMonthChange:X.A.func.description("(newMonthString, event, metaInformations) => void"),onDayChange:X.A.func.description("(newDayString, event, metaInformations) => void"),onYearChange:X.A.func.description("(newYearString, event, metaInformations) => void"),onHourChange:X.A.func.description("(newHourString, event, metaInformations) => void"),onMinuteChange:X.A.func.description("(newMinuteString, event, metaInformations) => void"),onMeridiemChange:X.A.func.description("(newMeridiemString, event, metaInformations) => void"),getIsDisabledDay:X.A.func.description("(dayAsString) => true for marking as disabled, false for marking as valid"),getIsOutOfRangeDay:X.A.func.description("(dayAsString) => true for marking as disabled, false for marking as valid"),getIsDisabledTime:X.A.func.description("(timeAsString) => true for marking as disabled, false for marking as valid"),emptyPickerStartingMonth:X.A.string.description('which month to start the calendar on open, when value is empty, string following the "MM/__/YYYY" pattern'),onCalendarOpenFocusedDay:X.A.string.description('which day to focus on calendar open when value is empty, string following the "MM/DD/YYYY" pattern').defaultValue("if value is empty current month, else current month"),onTimeWheelOpenStartingTime:X.A.string.description('which day to start the timewheel on picker open when value is empty, string following the HH:MM AA" pattern').defaultValue("01:00 AM"),minutesInterval:X.A.number.description("increments/decrements of minutes in time related controllers interactions").defaultValue("1"),"data-testid":X.A.string.description("Unique id for tests.").defaultValue(""),...Tn(V),innerRef:X.A.oneOfType([X.A.func,X.A.object]).description("inner ref for the month input"),fromDate:X.A.string.description(`Strictly formatted string representing user's selected "from" date, this prop comes from the DateRangePicker and it's used internally for the range selection announcement`),toDate:X.A.string.description(`Strictly formatted string representing user's selected "to" date, this prop comes from the DateRangePicker and it's used internally for the range selection announcement`),hasError:X.A.bool.description("whether the input has error or not").defaultValue(!1)},_n=e=>{const t=new Date,n=Me(t),o=nn(t),s=e.emptyPickerStartingMonth,l={...Rn,...s===void 0||o===s?{onCalendarOpenFocusedDay:n,emptyPickerStartingMonth:o}:{}};return(0,Zt.b)(e,l)},wn=({DOMRefs:e,flags:t})=>{const[n,o]=(0,r.useState)(""),[s,a]=(0,r.useState)(""),{firstSegment:i,lastSegment:l}=e,{isDateSelector:d,isTimeSelector:m}=t,h=(0,r.useCallback)(()=>{let f="datetime-picker-icon";d&&(f="date-picker-icon"),m&&(f="time-picker-icon"),n!=="picker-icon"&&o("picker-icon"),f!==s&&a(f)},[s,d,m,n]),g=(0,r.useCallback)(()=>{let f="date-inputs";i==="hour-input"&&(f="time-inputs"),i==="date-picker-icon"&&(f="picker-icon"),i==="time-picker-icon"&&(f="picker-icon"),i==="datetime-picker-icon"&&(f="picker-icon"),f!==n&&o(f),i!==s&&a(i)},[s,i,n]),u=(0,r.useCallback)(()=>{let f="date-inputs";l==="meridiem-input"&&(f="time-inputs"),l==="clear-btn"&&(f="clear-btn"),l==="date-picker-icon"&&(f="picker-icon"),l==="time-picker-icon"&&(f="picker-icon"),l==="datetime-picker-icon"&&(f="picker-icon"),f!==n&&o(f),l!==s&&a(l)},[s,l,n]),p=(0,r.useCallback)(()=>{n!==""&&o(""),s!==""&&a("")},[s,n]),E=(0,r.useCallback)(()=>{let f=!1;n==="calendar-days"&&s==="calendar-metafocused-day"&&(f=!0),n==="calendar-head"&&s==="calendar-prev-month"&&(f=!0),n==="timewheel"&&s==="timewheel-curr-hour"&&(f=!0),!f&&p()},[s,n,p]);return(0,r.useMemo)(()=>({latestInteractionRegion:n,setLatestInteractionRegion:o,currFocusDescriber:s,setCurrFocusDescriber:a,trackFocusResetter:p,trackFocusMonthInput:()=>{n!=="date-inputs"&&o("date-inputs"),s!=="month-input"&&a("month-input")},trackFocusDayInput:()=>{n!=="date-inputs"&&o("date-inputs"),s!=="day-input"&&a("day-input")},trackFocusYearInput:()=>{n!=="date-inputs"&&o("date-inputs"),s!=="year-input"&&a("year-input")},trackFocusHourInput:()=>{n!=="time-inputs"&&o("time-inputs"),s!=="hour-input"&&a("hour-input")},trackFocusMinuteInput:()=>{n!=="time-inputs"&&o("time-inputs"),s!=="minute-input"&&a("minute-input")},trackFocusMeridiemInput:()=>{n!=="time-inputs"&&o("time-inputs"),s!=="meridiem-input"&&a("meridiem-input")},trackFocusClearBtn:()=>{n!=="clear-btn"&&o("clear-btn"),s!=="clear-btn"&&a("clear-btn")},trackFocusDatePickerIcon:()=>{n!=="picker-icon"&&o("picker-icon"),s!=="date-picker-icon"&&a("date-picker-icon")},trackFocusTimePickerIcon:()=>{n!=="picker-icon"&&o("picker-icon"),s!=="time-picker-icon"&&a("time-picker-icon")},trackFocusDatetimePickerIcon:()=>{n!=="picker-icon"&&o("picker-icon"),s!=="datetime-picker-icon"&&a("datetime-picker-icon")},trackFocusCalendarPrevMonth:()=>{n!=="calendar-head"&&o("calendar-head"),s!=="calendar-prev-month"&&a("calendar-prev-month")},trackFocusCalendarNextMonth:()=>{n!=="calendar-head"&&o("calendar-head"),s!=="calendar-next-month"&&a("calendar-next-month")},trackFocusCalendarPrevYear:()=>{n!=="calendar-head"&&o("calendar-head"),s!=="calendar-prev-year"&&a("calendar-prev-year")},trackFocusCalendarNextYear:()=>{n!=="calendar-head"&&o("calendar-head"),s!=="calendar-next-year"&&a("calendar-next-year")},trackFocusCalendarMetafocusedDay:()=>{n!=="calendar-days"&&o("calendar-days"),s!=="calendar-metafocused-day"&&a("calendar-metafocused-day")},trackFocusTimewheelCurrHour:()=>{n!=="timewheel"&&o("timewheel"),s!=="timewheel-curr-hour"&&a("timewheel-curr-hour")},trackFocusTimewheelCurrMinute:()=>{n!=="timewheel"&&o("timewheel"),s!=="timewheel-curr-minute"&&a("timewheel-curr-minute")},trackFocusTimewheelCurrMeridiem:()=>{n!=="timewheel"&&o("timewheel"),s!=="timewheel-curr-meridiem"&&a("timewheel-curr-meridiem")},trackFocusPicker:h,trackFocusFirstSegment:g,trackFocusLastSegment:u,handleComponentBlurs:E}),[n,s,p,h,g,u,E])},de={DATE_TIME:{FULL:"full-date-time",CONTROLLER_ONLY:"date-time-picker-controller-only",PICKER:"date-time-picker",INPUTS:"date-time-inputs"},DATE:{FULL:"full-date",CONTROLLER_ONLY:"date-picker-controller-only",PICKER:"date-picker",INPUTS:"date-inputs"},TIME:{FULL:"full-time",CONTROLLER_ONLY:"time-picker-controller-only",PICKER:"time-picker",INPUTS:"time-inputs"}},Nn=["full-date-time","date-time-inputs","date-time-picker","date-time-picker-controller-only"],xn=["full-date","date-inputs","date-picker","date-picker-controller-only"],kn=["full-time","time-inputs","time-picker","time-picker-controller-only"],je=e=>Nn.includes(e.type),Ye=e=>xn.includes(e.type),ot=e=>kn.includes(e.type),On=e=>{const{type:t,isClearable:n,dateTime:o,autoFocus:s,innerRef:a}=e,i={hideDatePicker:!0,hideTimePicker:!0,isDateSelector:!1,isTimeSelector:!1,isDateTimeSelector:!0,isWithDateInputsOnly:!1,isWithTimeInputsOnly:!1,autoFocusHourInput:!1,autoFocusHourTimeWheel:!1},l=t===de.DATE_TIME.FULL||t===de.DATE_TIME.INPUTS,d=t!==de.DATE_TIME.FULL&&t!==de.DATE_TIME.PICKER&&t!==de.DATE_TIME.CONTROLLER_ONLY,m=t===de.DATE_TIME.CONTROLLER_ONLY,h=!d,g=l&&n&&o!==""&&o!=="__/__/____ __:__ __",u=n&&l;return{hideDate:!l,hideTime:!l,hideDateTimePicker:d,isControllerOnly:m,isWithTimeWheelToo:!d,isWithCalendarToo:!d,withAnyInputs:l,withAnyPicker:h,withClearBtn:g,isWithDateInputs:l,isWithTimeInputs:l,autoFocusMonthInput:l&&s,autoFocusPrevMonthArrow:m&&s,innerRefMonthInput:l?a:void 0,innerRefPrevMonthArrow:m?a:void 0,shouldPreserveClearableSpace:u,withAnyRightController:h||g||u,...i}},Ln=e=>{const{type:t,isClearable:n,date:o,autoFocus:s,innerRef:a}=e,i={isDateSelector:!0,hideTime:!0,hideDateTimePicker:!0,hideTimePicker:!0,isTimeSelector:!1,isDateTimeSelector:!1,isWithCalendarToo:!1,isWithTimeWheelToo:!1,isWithTimeInputs:!1,isWithTimeInputsOnly:!1,autoFocusHourTimeWheel:!1,autoFocusHourInput:!1},l=t===de.DATE.FULL||t===de.DATE.INPUTS,d=t!==de.DATE.FULL&&t!==de.DATE.PICKER&&t!==de.DATE.CONTROLLER_ONLY,m=t===de.DATE.CONTROLLER_ONLY,h=!d,g=l&&n&&o!==""&&o!=="__/__/____",u=n&&l;return{hideDate:!l,hideDatePicker:d,isControllerOnly:m,withAnyInputs:l,withAnyPicker:h,withClearBtn:g,isWithDateInputs:l,isWithDateInputsOnly:l,autoFocusMonthInput:l&&s,autoFocusPrevMonthArrow:m&&s,innerRefMonthInput:l?a:void 0,innerRefPrevMonthArrow:m?a:void 0,shouldPreserveClearableSpace:u,withAnyRightController:h||g||u,...i}},vn=e=>{const{type:t,isClearable:n,time:o,autoFocus:s,innerRef:a}=e,i={hideDate:!0,hideDateTimePicker:!0,hideDatePicker:!0,isDateSelector:!1,isDateTimeSelector:!1,isWithDateInputs:!1,isWithDateInputsOnly:!1,isTimeSelector:!0,isWithTimeWheelToo:!1,isWithCalendarToo:!1,autoFocusMonthInput:!1,autoFocusPrevMonthArrow:!1,innerRefMonthInput:void 0,innerRefPrevMonthArrow:void 0},l=t===de.TIME.FULL||t===de.TIME.INPUTS,d=t!==de.TIME.FULL&&t!==de.TIME.PICKER&&t!==de.TIME.CONTROLLER_ONLY,m=t===de.TIME.CONTROLLER_ONLY,h=l&&n&&o!==""&&o!=="__:__ __",g=n&&l,u=!d;return{hideTime:!l,hideTimePicker:d,isControllerOnly:m,withAnyInputs:l,withAnyPicker:u,withClearBtn:h,isWithTimeInputs:l,isWithTimeInputsOnly:l,autoFocusHourInput:l&&s,autoFocusHourTimeWheel:m&&s,innerRefHourInput:l?a:void 0,innerRefHourTimeWheel:m?a:void 0,shouldPreserveClearableSpace:g,withAnyRightController:u||h||g,...i}},Pn=e=>(0,r.useMemo)(()=>je(e)?On(e):Ye(e)?Ln(e):vn(e),[e]),Sn=({isWithDateInputs:e,isWithTimeInputs:t,isDateSelector:n,isTimeSelector:o,isDateTimeSelector:s,withAnyPicker:a,withClearBtn:i})=>{const[l,d]=(0,r.useState)(""),[m,h]=(0,r.useState)(""),g=(0,r.useRef)(null),u=(0,r.useRef)(null),p=(0,r.useRef)(null),E=(0,r.useRef)(null),f=(0,r.useRef)(null),y=(0,r.useRef)(null),C=(0,r.useRef)(null),T=(0,r.useRef)(null),x=(0,r.useRef)(null),L=(0,r.useRef)(null),M=(0,r.useRef)(null),A=(0,r.useRef)(null),D=(0,r.useRef)(null),_=(0,r.useRef)(null),k=(0,r.useRef)(null),v=(0,r.useRef)(null),H=(0,r.useRef)(null),Y=(0,r.useRef)(null),b=(0,r.useRef)(null),O=(0,r.useRef)(null),I=(0,r.useRef)(null),W=(0,r.useRef)(null);let ae=(0,r.useRef)(null);e?(ae=g,l!=="month-input"&&d("month-input")):t?(ae=E,l!=="hour-input"&&d("hour-input")):a&&(ae=T,n&&l!=="date-picker-icon"&&d("date-picker-icon"),o&&l!=="time-picker-icon"&&d("time-picker-icon"),s&&l!=="datetime-picker-icon"&&d("datetime-picker-icon"));let U=(0,r.useRef)(null);return a?(U=T,n&&m!=="date-picker-icon"&&h("date-picker-icon"),o&&m!=="time-picker-icon"&&h("time-picker-icon"),s&&m!=="datetime-picker-icon"&&h("datetime-picker-icon")):i?(U=C,m!=="clear-btn"&&h("clear-btn")):t?(U=y,m!=="meridiem-input"&&h("meridiem-input")):e&&(U=p,m!=="year-input"&&h("year-input")),(0,r.useMemo)(()=>({monthInputRef:g,dayInputRef:u,yearInputRef:p,hourInputRef:E,minutesInputRef:f,meridiemInputRef:y,clearButtonRef:C,pickerButtonRef:T,prevYearBtnRef:x,prevMonthBtnRef:L,nextMonthBtnRef:M,nextYearBtnRef:A,calendarDaysWrapperRef:D,prevHourBtnRef:_,currHourBtnRef:k,nextHourBtnRef:v,prevMinutesBtnRef:H,currMinutesBtnRef:Y,nextMinutesBtnRef:b,prevMeridiemBtnRef:O,currMeridiemBtnRef:I,nextMeridiemBtnRef:W,firstSegmentRef:ae,lastSegmentRef:U,firstSegment:l,lastSegment:m}),[l,m])},Hn=e=>{const t=je(e),n=Ye(e),o=ot(e),{dateTime:s}=e,a=o?e.time:"",i=n?e.date:"",l=(0,r.useRef)("__/__/____"),d=(0,r.useMemo)(()=>(t&&(l.current=s!==""&&s!==void 0?qe(s):"__/__/____"),n&&(l.current=i!==""?i:"__/__/____"),l.current),[n,t,i,s]),m=(0,r.useRef)("__:__ __"),h=(0,r.useMemo)(()=>(t&&(m.current=s!==""&&s!==void 0?Ke(s):"__:__ __"),o&&(m.current=a!==""?a:"__:__ __"),m.current),[t,o,a,s]);return(0,r.useMemo)(()=>({dateStringFromProps:d,timeStringFromProps:h,tempDateStringRef:l,tempTimeStringRef:m}),[d,h])},ge=()=>{},st=()=>!1,Fn=e=>{const t=je(e),n=Ye(e),o=ot(e),s=(t||n)&&e.getIsDisabledDay?e.getIsDisabledDay:st,a=(t||n)&&e.getIsOutOfRangeDay?e.getIsOutOfRangeDay:st,i=(t||n)&&e.onMonthChange?e.onMonthChange:ge,l=(t||n)&&e.onDayChange?e.onDayChange:ge,d=(t||n)&&e.onYearChange?e.onYearChange:ge,m=`${new Date().getMonth()+1}/__/${new Date().getFullYear()}`,h=(t||n)&&e.emptyPickerStartingMonth?e.emptyPickerStartingMonth:m,g=(t||n)&&e.onCalendarOpenFocusedDay?e.onCalendarOpenFocusedDay:void 0,u=(t||o)&&e.getIsDisabledTime?e.getIsDisabledTime:st,p=(t||o)&&e.onHourChange?e.onHourChange:ge,E=(t||o)&&e.onMinuteChange?e.onMinuteChange:ge,f=(t||o)&&e.onMeridiemChange?e.onMeridiemChange:ge,y=(t||o)&&e.minutesInterval?e.minutesInterval:1,C=(t||o)&&e.onTimeWheelOpenStartingTime?e.onTimeWheelOpenStartingTime:"01:00 AM",T=(t||n)&&e.onDateChange?e.onDateChange:ge,x=(t||o)&&e.onTimeChange?e.onTimeChange:ge,L=(t||n)&&e.getIsStartRangeDay?e.getIsStartRangeDay:ge,M=(t||n)&&e.getIsDayInRange?e.getIsDayInRange:ge,A=(t||n)&&e.getIsEndRangeDay?e.getIsEndRangeDay:ge,D=(t||n)&&e.fromDate,_=(t||n)&&e.toDate,k=n?e.date:"",v=o?e.time:"",H=t?e.dateTime:"",Y=t?e.onDateTimeChange:ge;return(0,r.useMemo)(()=>({getIsDisabledDay:s,getIsOutOfRangeDay:a,getIsStartRangeDay:L,getIsDayInRange:M,getIsEndRangeDay:A,appOnDateChange:T,appOnMonthChange:i,appOnDayChange:l,appOnYearChange:d,appDate:k,getIsDisabledTime:u,appOnTimeChange:x,appOnHourChange:p,appOnMinuteChange:E,appOnMeridiemChange:f,appTime:v,appDateTime:H,appOnDateTimeChange:Y,emptyPickerStartingMonth:h,onCalendarOpenFocusedDay:g,minutesInterval:y,onTimeWheelOpenStartingTime:C,isDate:n,isTime:o,isDateTime:t,fromDate:D,toDate:_}),[s,a,L,M,A,T,i,l,d,k,u,x,p,E,f,v,H,Y,h,g,y,C,n,o,t,D,_])},$n=({appDate:e,appDateTime:t,isDateTimeSelector:n})=>{const o=n?qe(t):e,s=Ee(o),{month:a,day:i,year:l}=s,d=q(a),m=q(i),h=q(l),g=d!==-1?Qe[d-1]:"empty month",u=m!==-1?Rt[m]:"empty day",p=h!==-1?be(`${h}`,4,"0"):"empty year",E=`${g}, ${u}, ${p}`;return(0,r.useMemo)(()=>({month:a,day:i,year:l,monthNum:d,dayNum:m,yearNum:h,announcedMonth:g,announcedDay:u,announcedYear:p,announcedDateValues:E}),[u,g,p,E,i,m,a,d,l,h])},Wn=({appTime:e,appDateTime:t,isDateTimeSelector:n})=>{const o=n?Ke(t):e,s=wt(o),{hours:a,minutes:i,meridiem:l}=s,d=q(a),m=q(i),h=d!==-1?`${d}`:"empty hours",g=m!==-1?`${m}`:"empty minutes",u=l==="PM"?"post meridiem":l==="AM"?"ante meridiem":"empty meriediem",p=`${h}, ${g}, ${u}`;return(0,r.useMemo)(()=>({hours:a,minutes:i,meridiem:l,hoursNum:d,minutesNum:m,announcedHours:h,announcedMinutes:g,announcedMeridiem:u,announcedTimeValues:p}),[a,i,l,d,m,h,g,u,p])},Un=e=>{const t=$n(e),n=Wn(e);return(0,r.useMemo)(()=>({...t,...n}),[t,n])},Be=(e,t=n=>!1)=>{const n={};return tt(e)||(n.isDisabledTime=t(e),n.isDisabledTime&&(n.suggestedErrorMsg="The selected time is not allowed")),n},jn=({relevantValues:e,destructuredValues:t,propsBasedOnType:n,focusTrackers:o})=>{const{tempDateStringRef:s,tempTimeStringRef:a}=e,{getIsDisabledDay:i,getIsOutOfRangeDay:l,appOnDateChange:d,appOnMonthChange:m,appOnDayChange:h,appOnYearChange:g,getIsDisabledTime:u,appOnTimeChange:p,appOnHourChange:E,appOnMinuteChange:f,appOnMeridiemChange:y,appOnDateTimeChange:C,isDateTime:T,isDate:x,isTime:L}=n,{month:M,day:A,year:D,hours:_,minutes:k,meridiem:v}=t,{trackFocusFirstSegment:H}=o,Y=(0,r.useCallback)((P=null,$={})=>{const G=P||s.current;return{...$,..._e(G,l,i)}},[s,i,l]),b=(0,r.useCallback)((P=null,$={})=>{const G=P||a.current;return{...$,...Be(G,u)}},[a,u]),O=(0,r.useCallback)((P,$,G)=>{const S=xt(P)?"":P,J=kt($)?"":$;d(S,G),s.current=P,p(J,G),a.current=$;const F=`${P} ${$}`,R={...G,...b($,G),...Y(P,G),newDateString:P,newTimeString:$,newDateTimeString:F},pe=nt(F)?"":F;C(pe,R)},[d,s,p,a,b,Y,C]),I=(0,r.useCallback)((P,$)=>{const G=xt(P)?"":P;d(G,$),s.current=P;const S=`${P} ${a.current}`,J={...$,...b(a.current,$),...Y(P,$),newDateString:P,newTimeString:a.current,newDateTimeString:S},F=nt(S)?"":S;C(F,J)},[d,s,a,b,Y,C]),W=(0,r.useCallback)((P,$)=>{const G=kt(P)?"":P;p(G,$),a.current=P;const S=`${s.current} ${P}`,J={...$,...b(P,$),...Y(s.current,$),newDateTimeString:S,newDateString:s.current,newTimeString:P},F=nt(S)?"":S;C(F,J)},[p,a,s,b,Y,C]),ae=(0,r.useCallback)((P,$,G=Te)=>{const S=ve({month:P,day:A,year:D}),J={...G,..._e(S,l,i),newDateString:S};m(P,$,J),I(S,J)},[A,D,l,i,m,I]),U=(0,r.useCallback)((P,$,G=Te)=>{const S=ve({month:M,day:P,year:D}),J={...G,..._e(S,l,i),newDateString:S};h(P,$,J),I(S,J)},[M,D,l,i,h,I]),j=(0,r.useCallback)((P,$,G=Te)=>{const S=ve({month:M,day:A,year:P}),J={...G,..._e(S,l,i),newDateString:S};g(P,$,J),I(S,J)},[M,A,l,i,g,I]),Z=(0,r.useCallback)((P,$,G=Te)=>{const S=et({hours:P,minutes:k,meridiem:v}),J={...G,...Be(S,u),newTimeString:S};E(P,$,J),W(S,J)},[k,v,u,E,W]),le=(0,r.useCallback)((P,$,G=Te)=>{const S=et({hours:_,minutes:P,meridiem:v}),J={...G,...Be(S,u),newTimeString:S};f(P,$,J),W(S,J)},[_,v,u,f,W]),N=(0,r.useCallback)((P,$,G=Te)=>{const S=et({hours:_,minutes:k,meridiem:P}),J={...G,...Be(S,u),newTimeString:S};y(P,$,J),W(S,J)},[_,k,u,y,W]),w=(0,r.useCallback)(P=>{const $={isAutomaticFillTrigger:!1,isClearButtonAction:!0,newDateString:"",newTimeString:"",newDateTimeString:""};m("",P,$),h("",P,$),g("",P,$),E("",P,$),f("",P,$),y("",P,$),T&&O("__/__/____","__:__ __",$),x&&I("__/__/____",$),L&&W("__:__ __",$),H()},[h,E,y,f,m,g,I,O,W,x,T,L,H]);return(0,r.useMemo)(()=>({handleChangeComposedDateTimeString:O,handleChangeComposedDateString:I,handleChangeComposedTimeString:W,handleChangeMonth:ae,handleChangeDay:U,handleChangeYear:j,handleChangeHours:Z,handleChangeMinutes:le,handleChangeMeridiem:N,handleClearAll:w}),[I,O,W,U,Z,N,le,ae,j,w])},Yn=({propsBasedOnType:e,changeHandlers:t,focusTrackers:n,flags:o})=>{const{getIsOutOfRangeDay:s,getIsDisabledDay:a,getIsDisabledTime:i,appOnMonthChange:l,appOnDayChange:d,appOnYearChange:m,appOnHourChange:h,appOnMinuteChange:g,appOnMeridiemChange:u}=e,{handleChangeComposedDateTimeString:p,handleClearAll:E}=t,{trackFocusLastSegment:f,trackFocusClearBtn:y}=n,{withAnyPicker:C,shouldPreserveClearableSpace:T}=o,x=(0,r.useCallback)((M,A={isAutomaticFillTrigger:!0})=>{const D=new Date,_=Me(D),k=rn(D),v={...A,..._e(_,s,a),...Be(k,i),newDateString:_},{month:H,day:Y,year:b}=Ee(_);l(H,M,A),d(Y,M,A),m(b,M,A);const{hours:O,minutes:I,meridiem:W}=bt(k);h(O,M,A),g(I,M,A),u(W,M,A),p(_,k,v),T&&!C?y():f()},[d,h,u,g,l,m,a,i,s,p,T,y,f,C]),L=(0,r.useCallback)(M=>{const{key:A,ctrlKey:D,metaKey:_}=M;(D||_)&&A===";"&&x(M),(D||_)&&(A==="Delete"||A==="Backspace")&&E(M)},[E,x]);return(0,r.useMemo)(()=>({onFillWithCurrentDateKeys:x,onGlobalKeyDown:L}),[x,L])},we=`ControlledDateTimePicker:
|
|
2
|
+
Invalid configuration detected::
|
|
3
|
+
|
|
4
|
+
`,Ne="",at=`
|
|
5
|
+
|
|
6
|
+
Received:`,Bn=e=>{throw new Error(`${we}the "dateTime" you are providing is not respecting the format it must respect.${at}${e}(${typeof e})${Ne}`)},Kn=e=>{throw new Error(`${we}the "date" you are providing is not respecting the format it must respect.${at}${e}(${typeof e})${Ne}`)},Vn=e=>{throw new Error(`${we}the "time" you are providing is not respecting the format it must respect.${at}${e}(${typeof e})${Ne}`)},Gn=(e,t)=>{throw new Error(`${we}you are trying to use a date selector while providing a non-string "date" or providing a non-function to "onDateChange"
|
|
7
|
+
the full-controlled pattern must be used
|
|
8
|
+
check https://reactjs.org/docs/forms.html#controlled-components for more informations
|
|
9
|
+
|
|
10
|
+
Received:
|
|
11
|
+
date: ${e}(${typeof e})
|
|
12
|
+
onDateChange: (${typeof t})
|
|
13
|
+
${Ne}`)},Xn=(e,t)=>{throw new Error(`${we}you are trying to use a time selector while providing a non-string "time" or providing a non-function to "onTimeChange"
|
|
14
|
+
the full-controlled pattern must be used
|
|
15
|
+
check https://reactjs.org/docs/forms.html#controlled-components for more informations
|
|
16
|
+
|
|
17
|
+
Received:
|
|
18
|
+
time: ${e}(${typeof e})
|
|
19
|
+
onTimeChange: (${typeof t})
|
|
20
|
+
${Ne}`)},zn=(e,t)=>{throw new Error(`${we}you are trying to use a date-time selector while providing a non-string "dateTime" or providing a non-function to "onDateTimeChange"
|
|
21
|
+
the full-controlled pattern must be used
|
|
22
|
+
check https://reactjs.org/docs/forms.html#controlled-components for more informations
|
|
23
|
+
|
|
24
|
+
Received:
|
|
25
|
+
dateTime: ${e}(${typeof e})
|
|
26
|
+
onDateTimeChange: (${typeof t})
|
|
27
|
+
${Ne}`)},Jn=e=>{throw new Error(`${we}the provided emptyPickerStartingMonth props is invalid. please provide a string with the format mm/__/yyyy, (mm 01~12, yyyy 0001~9999)
|
|
28
|
+
|
|
29
|
+
Received:
|
|
30
|
+
${e}(${typeof e})
|
|
31
|
+
${Ne}`)},Zn=e=>{throw new Error(`${we}the provided onCalendarOpenFocusedDay props is invalid. please provide a string with the format mm/dd/yyyy, (mm 01~12, dd 01~31, yyyy 0001~9999)
|
|
32
|
+
|
|
33
|
+
Received:
|
|
34
|
+
${e}(${typeof e})
|
|
35
|
+
${Ne}`)},Qn=e=>{if(je(e)||Ye(e)){const{emptyPickerStartingMonth:t,onCalendarOpenFocusedDay:n}=e;if(t){const{month:o,year:s}=Ee(t),a=q(o),i=q(s);(a<=0||a>=13||i<=0||i>9999)&&Jn(t)}if(n){const{month:o,day:s,year:a}=Ee(n),i=q(o),l=q(s),d=q(a);(i<=0||i>=13||l<=0||l>31||d<=0||d>9999)&&Zn(n)}}if(je(e)){const{dateTime:t,onDateTimeChange:n}=e;typeof t!="string"||typeof n!="function"?zn(t,n):(!_t(qe(t))||!Nt(Ke(t)))&&Bn(Ke(t))}if(Ye(e)){const{date:t,onDateChange:n}=e;typeof t!="string"||typeof n!="function"?Gn(t,n):_t(t)||Kn(t)}if(ot(e)){const{time:t,onTimeChange:n}=e;typeof t!="string"||typeof n!="function"?Xn(t,n):Nt(t)||Vn(t)}},qn=e=>{Qn(e);const t=_n(e),n=Pn(t),o=Sn(n),s=wn({DOMRefs:o,flags:n}),a=Hn(t),i=Fn(t),l=Un({...i,...n}),d=jn({relevantValues:a,destructuredValues:l,propsBasedOnType:i,DOMRefs:o,focusTrackers:s}),m=Yn({changeHandlers:d,propsBasedOnType:i,DOMRefs:o,flags:n,focusTrackers:s}),h=(0,zt.d)(t),g=(0,Jt.u)(t),{announcedDateValues:u,announcedTimeValues:p}=l,{isWithDateInputs:E,isDateTimeSelector:f,isWithTimeInputs:y}=n,C=`current values: ${E?`${u}`:""}${f?", ":""}${y?`${p}`:""}`,T=(0,r.useCallback)(()=>t,[t]);return r.useMemo(()=>({props:t,getProps:T,ariaCurrentValueForInputs:C,xstyledAttrs:h,globalAttrs:g,...s,...n,...o,...a,...i,...l,...d,...m}),[t,T,C,h,g,s,n,o,a,i,l,d,m])},er={},z=(0,r.createContext)(er);var As=null,Ce=te("./node_modules/.pnpm/@elliemae+ds-grid@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-grid/dist/esm/Grid.js"),tr=te("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.js"),xe=te("./node_modules/.pnpm/@elliemae+ds-button-v2@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-button-v2/dist/esm/constants.js"),nr=te("./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/CloseMedium.js"),Oe=te("./node_modules/.pnpm/@elliemae+ds-button-v2@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-button-v2/dist/esm/parts/DSButtonV2/DSButtonV2.js"),K=te("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-system/dist/esm/styled/styled.js"),it=te("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-system/dist/esm/th.js");const Ft=(0,K.I)("input")`
|
|
36
|
+
border: none;
|
|
37
|
+
box-shadow: none;
|
|
38
|
+
background: none;
|
|
39
|
+
text-align: center;
|
|
40
|
+
height: 100%;
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
:focus {
|
|
44
|
+
outline: none;
|
|
45
|
+
}
|
|
46
|
+
padding-top: 2px;
|
|
47
|
+
|
|
48
|
+
color: ${it.th.color("neutral-700")};
|
|
49
|
+
|
|
50
|
+
::placeholder {
|
|
51
|
+
font-weight: ${it.th.fontWeight("regular")};
|
|
52
|
+
color: ${it.th.color("neutral-500")};
|
|
53
|
+
}
|
|
54
|
+
`,lt=(0,K.I)(Ce.Ay)`
|
|
55
|
+
padding-top: 2px;
|
|
56
|
+
margin: auto;
|
|
57
|
+
color: neutral-500;
|
|
58
|
+
`,rr=(0,K.I)(Ce.Ay)`
|
|
59
|
+
padding-bottom: 1px;
|
|
60
|
+
margin: auto;
|
|
61
|
+
`,He=(0,K.I)(Ft)`
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
${({disabled:e})=>e?"color: #616b7f;":""}
|
|
65
|
+
`,or=(0,K.I)(He,{name:ee,slot:oe.DATE_INPUTS.DAY})``,sr=(0,K.I)(He,{name:ee,slot:oe.DATE_INPUTS.MONTH})``,ar=(0,K.I)(He,{name:ee,slot:oe.DATE_INPUTS.YEAR})``,ir=(0,K.I)(He,{name:ee,slot:oe.TIME_INPUTS.HOUR})``,lr=(0,K.I)(He,{name:ee,slot:oe.TIME_INPUTS.MINUTE})``,cr=(0,K.I)(He,{name:ee,slot:oe.TIME_INPUTS.MERIDIEM})``,Is=(0,K.I)(Ft)`
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 100%;
|
|
68
|
+
${({disabled:e})=>e?"color: #616b7f;":""}
|
|
69
|
+
`,dr=(0,K.I)(Ce.Ay,{name:ee,slot:oe.CONTAINER})`
|
|
70
|
+
width: max-content;
|
|
71
|
+
align-items: center;
|
|
72
|
+
background-color: white;
|
|
73
|
+
${({isControllerOnly:e})=>e?"":`
|
|
74
|
+
height: 2.153rem;
|
|
75
|
+
border-width: 1px;
|
|
76
|
+
border-style: solid;
|
|
77
|
+
`}
|
|
78
|
+
|
|
79
|
+
border-color: ${({theme:e,hasError:t})=>t?e.colors.danger[900]:e.colors.neutral[400]};
|
|
80
|
+
|
|
81
|
+
border-radius: 2px;
|
|
82
|
+
padding-left: ${({justPicker:e})=>e?"0":"2px"};
|
|
83
|
+
|
|
84
|
+
position: relative;
|
|
85
|
+
${({theme:e,disabled:t})=>t?`background-color: ${e.colors.neutral[100]};`:""}
|
|
86
|
+
${({readOnlyStyles:e,hasError:t,onlyPicker:n,theme:o})=>e&&!t&&!n&&`
|
|
87
|
+
border-left: 1px solid ${o.colors.neutral["080"]};
|
|
88
|
+
border-top: 1px solid ${o.colors.neutral["080"]};
|
|
89
|
+
border-right: 1px solid ${o.colors.neutral["080"]};
|
|
90
|
+
|
|
91
|
+
`}
|
|
92
|
+
${({readOnlyStyles:e,hasError:t,theme:n})=>e&&!t&&`
|
|
93
|
+
background-color: ${n.colors.neutral["050"]};
|
|
94
|
+
`}
|
|
95
|
+
`,Rs=K.I.div`
|
|
96
|
+
display: grid;
|
|
97
|
+
grid-template-columns: 24px min-content 24px min-content 48px;
|
|
98
|
+
grid-template-rows: min-content;
|
|
99
|
+
padding: 6px 0;
|
|
100
|
+
gap: 0px 0px;
|
|
101
|
+
align-items: center;
|
|
102
|
+
input,
|
|
103
|
+
p {
|
|
104
|
+
margin: 0;
|
|
105
|
+
}
|
|
106
|
+
`,bs=K.I.div`
|
|
107
|
+
display: grid;
|
|
108
|
+
grid-template-columns: 24px min-content 24px min-content 24px min-content 24px;
|
|
109
|
+
grid-template-rows: min-content;
|
|
110
|
+
padding: 6px 0;
|
|
111
|
+
gap: 0px 0px;
|
|
112
|
+
align-items: center;
|
|
113
|
+
input,
|
|
114
|
+
p {
|
|
115
|
+
margin: 0;
|
|
116
|
+
}
|
|
117
|
+
`,ur=(0,K.I)(Ce.Ay)`
|
|
118
|
+
position: relative;
|
|
119
|
+
${({isControllerOnly:e})=>e?"":"height: 2rem;"}
|
|
120
|
+
:before {
|
|
121
|
+
content: '';
|
|
122
|
+
position: absolute;
|
|
123
|
+
top: 0px;
|
|
124
|
+
left: -1px;
|
|
125
|
+
width: 100%;
|
|
126
|
+
height: 100%;
|
|
127
|
+
// this shoudnt be rounded as specified in the design
|
|
128
|
+
/* border-radius: 2px; */
|
|
129
|
+
${({theme:e,isControllerOnly:t,hasError:n})=>t?"":`
|
|
130
|
+
border-left: 1px solid ${n?e.colors.danger[900]:e.colors.neutral[400]}
|
|
131
|
+
`}
|
|
132
|
+
}
|
|
133
|
+
`,Fe=(0,K.I)(Ce.Ay)`
|
|
134
|
+
position: relative;
|
|
135
|
+
&:focus-within {
|
|
136
|
+
&:after {
|
|
137
|
+
display: block;
|
|
138
|
+
content: ' ';
|
|
139
|
+
position: absolute;
|
|
140
|
+
top: -5px;
|
|
141
|
+
left: -2px;
|
|
142
|
+
width: calc(100% + 4px);
|
|
143
|
+
height: calc(100% + 10px);
|
|
144
|
+
border: 2px solid ${({theme:e})=>e.colors.brand[700]};
|
|
145
|
+
border-radius: 2px;
|
|
146
|
+
pointer-events: none;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
`,mr=(0,K.I)(Oe.e,{name:ee,slot:oe.CLEAR_BUTTON})`
|
|
150
|
+
height: 26px;
|
|
151
|
+
position: relative;
|
|
152
|
+
visibility: ${({shouldDisplay:e})=>e?"visible":"hidden"};
|
|
153
|
+
&:focus {
|
|
154
|
+
&:after {
|
|
155
|
+
z-index: 1;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
`,pr=()=>{const{handleClearAll:e,clearButtonRef:t,withAnyPicker:n,withClearBtn:o,withAnyInputs:s,isWithTimeInputs:a,isWithDateInputs:i,trackFocusFirstSegment:l,trackFocusMeridiemInput:d,trackFocusYearInput:m,trackFocusPicker:h}=(0,r.useContext)(z),g=(0,r.useCallback)(f=>{e(f),l()},[e,l]),u=(0,r.useCallback)(()=>{l()},[l]),p=(0,r.useCallback)(()=>{n&&h()},[n,h]),E=(0,r.useCallback)(f=>{const{key:y}=f,C=["Home","End"],T=["Home","End"];C.includes(y)&&f.preventDefault(),T.includes(y)&&f.stopPropagation(),y==="Home"&&u(),y==="End"&&p(),y==="Backspace"&&s&&(a?d():i&&m())},[i,a,p,u,d,m,s]);return(0,r.useMemo)(()=>({onClearClick:g,onClearButtonKeyDown:E,clearButtonRef:t,withAnyPicker:n,withClearBtn:o}),[g,E,t,n,o])},hr=()=>{const{onClearClick:e,onClearButtonKeyDown:t,clearButtonRef:n,withClearBtn:o}=pr(),s={shouldDisplay:o},{latestInteractionRegion:a,currFocusDescriber:i,getProps:l,props:{tabIndex:d}}=(0,r.useContext)(z);return(0,c.jsx)(mr,{"aria-label":"clear selected date",buttonType:"icon",size:xe.GO.M,"data-testid":V.CLEAR_BUTTON,innerRef:m=>{n.current=m,a==="clear-btn"&&i==="clear-btn"&&m?.focus?.()},tabIndex:d,onClick:e,onKeyDown:t,type:"button",getOwnerProps:l,...s,children:(0,c.jsx)(nr.A,{color:["brand-primary","600"]})})};var gr=te("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-system/dist/esm/mergeRefs.js");const fr=/^[0-9]+$/,Er=e=>{if(e==="")return!1;const t=fr.test(e);return e.length>2||e==="00"||!t||Number.parseInt(e,10)>12},yr=r.memo(({onChange:e,onBlur:t,onFocus:n,onKeyDown:o,value:s,disabled:a,applyAriaDisabled:i,hasError:l,placeholder:d,contextRef:m,innerRef:h,tabIndex:g,autoFocusMonthInput:u,ariaCurrentValueForInputs:p,isFocused:E,getProps:f,readOnly:y})=>{const C=(0,r.useCallback)(L=>{if(Er(L?.target?.value)){L.preventDefault();return}e(L)},[e]),T=(0,r.useCallback)(L=>{m.current=L,E&&L?.focus?.()},[m,E]),x=(0,r.useMemo)(()=>h?(0,gr.hU)([T,h]):T,[T,h]);return(0,c.jsx)(sr,{autoFocus:u,onChange:C,onBlur:t,onFocus:n,onKeyDown:o,value:s,innerRef:x,tabIndex:g,placeholder:d,"aria-label":`month input field, ${p}`,"data-testid":V.DATE_INPUTS.MONTH,disabled:a,"aria-disabled":i,"aria-invalid":l,getOwnerProps:f,readOnly:y})}),Cr=/^[0-9]+$/,Dr=e=>{if(e==="")return!1;const t=Cr.test(e);return e.length>2||e==="00"||!t||Number.parseInt(e,10)>31},Tr=r.memo(({onChange:e,onBlur:t,onFocus:n,onKeyDown:o,value:s,disabled:a,applyAriaDisabled:i,hasError:l,contextRef:d,tabIndex:m,placeholder:h,ariaCurrentValueForInputs:g,isFocused:u,getProps:p,readOnly:E})=>{const f=(0,r.useCallback)(y=>{if(Dr(y?.currentTarget?.value)){y.preventDefault();return}e(y)},[e]);return(0,c.jsx)(or,{onChange:f,onBlur:t,onFocus:n,onKeyDown:o,value:s,innerRef:y=>{d.current=y,u&&y?.focus?.()},tabIndex:m,placeholder:h,"aria-label":`day input field, ${g}`,"data-testid":V.DATE_INPUTS.DAY,disabled:a,"aria-disabled":i,"aria-invalid":l,getOwnerProps:p,readOnly:E})}),Mr=/^[0-9]+$/,Ar=e=>{if(e==="")return!1;const t=Mr.test(e);return e.length>4||!t||Number.parseInt(e,10)>9999},Ir=r.memo(({onChange:e,onBlur:t,onFocus:n,onKeyDown:o,value:s,disabled:a,applyAriaDisabled:i,hasError:l,placeholder:d,contextRef:m,tabIndex:h,ariaCurrentValueForInputs:g,isFocused:u,getProps:p,readOnly:E})=>{const f=(0,r.useCallback)(y=>{if(Ar(y?.currentTarget?.value)){y.preventDefault();return}e(y)},[e]);return(0,c.jsx)(ar,{onChange:f,onBlur:t,onFocus:n,onKeyDown:o,value:s,innerRef:y=>{m.current=y,u&&y?.focus?.()},tabIndex:h,"data-testid":V.DATE_INPUTS.YEAR,placeholder:d,"aria-label":`year input field, ${g}`,disabled:a,"aria-disabled":i,"aria-invalid":l,getOwnerProps:p,readOnly:E})}),Rr=()=>{const{props:{disabled:e,applyAriaDisabled:t,readOnly:n},appOnMonthChange:o,appOnDayChange:s,appOnYearChange:a,getIsDisabledDay:i,getIsOutOfRangeDay:l,month:d,day:m,year:h,hideTime:g,handleChangeComposedDateString:u,withClearBtn:p,withAnyPicker:E,withAnyRightController:f,autoFocusMonthInput:y,innerRefMonthInput:C,trackFocusResetter:T,trackFocusFirstSegment:x,trackFocusLastSegment:L,trackFocusDayInput:M,trackFocusMonthInput:A,trackFocusYearInput:D,trackFocusHourInput:_,trackFocusClearBtn:k,trackFocusPicker:v}=(0,r.useContext)(z),H=e||t||n,Y=(0,r.useCallback)(()=>{x()},[x]),b=(0,r.useCallback)(()=>{L()},[L]),O=(0,r.useCallback)((F,R,pe=Te)=>{if(H)return;const ie=ve({month:F,day:m,year:h}),Q={...pe,..._e(ie,l,i),newDateString:ie};o(F,R,Q),u(ie,Q)},[H,m,h,l,i,o,u]),I=(0,r.useCallback)(()=>{A()},[A]),W=(0,r.useCallback)(F=>{if(H)return;let R=F?.target?.value;Number.parseInt(R,10)>1&&(R=re(R,2)),O(R,F),R.length===2&&M()},[O,H,M]),ae=(0,r.useCallback)(F=>{const{key:R,ctrlKey:pe,metaKey:ie}=F,Q=Number.parseInt(d,10);if(["Home","End","ArrowUp","ArrowDown","-","/","\\"].includes(R)&&F.preventDefault(),["Home","End","ArrowUp","ArrowDown","-","/","\\"].includes(R)&&F.stopPropagation(),R==="Home"&&Y(),R==="End"&&b(),(pe||ie)&&R===";"&&L(),!H){if(R==="ArrowUp"||R==="ArrowDown"){const me=Number.isNaN(Q)?0:Q;let ue;R==="ArrowUp"?ue=me+1<=12?me+1:me:ue=me-1>0?me-1:1,ue=re(`${ue}`,2),O(ue,F)}if(!Number.isNaN(Q)&&(R==="-"||R==="/"||R==="\\")){let me=re(`${Q}`,2);me==="00"&&(me="01"),O(me,F),M()}}},[d,Y,b,L,H,O,M]),U=(0,r.useCallback)(F=>{const R=F?.target?.value;R==="0"?O("01",F,{isAutomaticFillTrigger:!0}):R.length>0&&R.length<2&&O(re(R,2),F,{isAutomaticFillTrigger:!0})},[O]),j=(0,r.useCallback)((F,R,pe=Te)=>{if(H)return;const ie=ve({month:d,day:F,year:h}),Q={...pe,..._e(ie,l,i),newDateString:ie};s(F,R,Q),u(ie,Q)},[H,d,h,l,i,s,u]),Z=(0,r.useCallback)(()=>{M()},[M]),le=(0,r.useCallback)(F=>{if(H)return;let R=F?.target?.value;Number.parseInt(R,10)>3&&(R=re(R,2)),j(R,F),R.length===2&&D()},[j,H,D]),N=(0,r.useCallback)(F=>{const{key:R,ctrlKey:pe,metaKey:ie,target:Q,currentTarget:me}=F,ue=Number.parseInt(m,10);if(["Home","End","ArrowUp","ArrowDown","-","/","\\"].includes(R)&&F.preventDefault(),["Home","End","ArrowUp","ArrowDown","-","/","\\"].includes(R)&&F.stopPropagation(),R==="Home"&&Y(),R==="End"&&b(),(pe||ie)&&R===";"&&L(),!H){if(R==="ArrowUp"||R==="ArrowDown"){const ce=Number.isNaN(ue)?0:ue;let fe;R==="ArrowUp"?fe=ce+1<=31?ce+1:ce:fe=ce-1>0?ce-1:1,fe=re(`${fe}`,2),j(fe,F)}if(!Number.isNaN(ue)&&(R==="-"||R==="/"||R==="\\")){let ce=re(`${ue}`,2);ce==="00"&&(ce="01"),j(ce,F),D()}R==="Backspace"&&Q===me&&Q.selectionStart===0&&Q.selectionEnd===0&&(F.preventDefault(),A())}},[m,Y,b,L,H,j,D,A]),w=(0,r.useCallback)(F=>{const R=F?.target?.value;R==="0"?j("01",F,{isAutomaticFillTrigger:!0}):R.length>0&&R.length<2&&j(re(R,2),F,{isAutomaticFillTrigger:!0})},[j]),P=(0,r.useCallback)((F,R,pe=Te)=>{if(H)return;const ie=ve({month:d,day:m,year:F}),Q={...pe,..._e(ie,l,i),newDateString:ie};a(F,R,Q),u(ie,Q)},[H,d,m,l,i,a,u]),$=(0,r.useCallback)(()=>{D()},[D]),G=(0,r.useCallback)(F=>{if(H)return;const R=F?.target?.value;P(R,F),R.length===4&&(g?f&&(p?k():E&&v()):_())},[H,P,g,_,f,p,k,E,v]),S=(0,r.useCallback)(F=>{const{key:R,ctrlKey:pe,metaKey:ie,target:Q,currentTarget:me}=F,ue=Number.parseInt(h,10),ce=Number.isNaN(ue)?0:ue;let fe=ce!==0?be(`${ce}`,4,"0"):"";if(R==="ArrowUp"||R==="ArrowDown"){let At;R==="ArrowUp"?At=ce+1<=9999?ce+1:ce:At=ce-1>0?ce-1:1,fe=re(`${At}`,4)}const Je=fe!==h&&["Tab"," "].includes(R),gs={isAutomaticFillTrigger:Je};let Ze=T;g?p?Ze=k:E&&(Ze=v):Ze=_,["Home","End","ArrowUp","ArrowDown"," "].includes(R)&&F.preventDefault(),["Home","End","ArrowUp","ArrowDown"," "].includes(R)&&F.stopPropagation(),R==="Home"&&Y(),R==="End"&&b(),(pe||ie)&&R===";"&&L(),!H&&((R==="ArrowUp"||R==="ArrowDown"||Je)&&P(fe,F,gs),["Tab"," "].includes(R)&&(h!==""&&ce===0&&P("0000",F),R===" "&&Ze()),R==="Backspace"&&Q===me&&Q.selectionStart===0&&Q.selectionEnd===0&&(F.preventDefault(),M()))},[h,T,g,_,p,k,E,v,Y,b,L,H,P,M]),J=(0,r.useCallback)(F=>{const R=F?.target?.value;R==="0"?P("0000",F,{isAutomaticFillTrigger:!0}):R.length>0&&R.length<4&&P(be(R,4,"0"),F,{isAutomaticFillTrigger:!0})},[P]);return(0,r.useMemo)(()=>({month:d,day:m,year:h,autoFocusMonthInput:y,innerRefMonthInput:C,disabled:e,applyAriaDisabled:t,onMonthFocus:I,onMonthChange:W,onDayFocus:Z,onDayChange:le,onYearFocus:$,onYearChange:G,onMonthBlur:U,onDayBlur:w,onYearBlur:J,onMonthKeyDown:ae,onDayKeyDown:N,onYearKeyDown:S}),[d,m,h,y,C,e,t,I,W,Z,le,$,G,U,w,J,ae,N,S])},Ie={smallInputWidth:"2.153rem",largeInputWidth:"3.153rem",separatorWidth:"0.538rem"},br=()=>{const{month:e,day:t,year:n,autoFocusMonthInput:o,innerRefMonthInput:s,onMonthChange:a,onDayChange:i,onYearChange:l,onMonthBlur:d,onDayBlur:m,onYearBlur:h,onMonthFocus:g,onDayFocus:u,onYearFocus:p,onMonthKeyDown:E,onDayKeyDown:f,onYearKeyDown:y,disabled:C,applyAriaDisabled:T}=Rr(),{monthInputRef:x,dayInputRef:L,yearInputRef:M,ariaCurrentValueForInputs:A,latestInteractionRegion:D,currFocusDescriber:_,getProps:k,props:{tabIndex:v,hasError:H,readOnly:Y}}=(0,r.useContext)(z);return(0,c.jsxs)(Ce.Ay,{cols:[Ie.smallInputWidth,Ie.separatorWidth,Ie.smallInputWidth,Ie.separatorWidth,Ie.largeInputWidth],children:[(0,c.jsx)(Fe,{children:(0,c.jsx)(yr,{onChange:a,onBlur:d,onFocus:g,onKeyDown:E,value:e,contextRef:x,innerRef:s,tabIndex:v,autoFocusMonthInput:o,placeholder:"MM",ariaCurrentValueForInputs:A,disabled:C,applyAriaDisabled:T,hasError:H,isFocused:D==="date-inputs"&&_==="month-input",getProps:k,readOnly:Y})}),(0,c.jsx)(lt,{alignItems:"center",children:"/"}),(0,c.jsx)(Fe,{children:(0,c.jsx)(Tr,{onChange:i,onBlur:m,onFocus:u,onKeyDown:f,value:t,contextRef:L,tabIndex:v,placeholder:"DD",ariaCurrentValueForInputs:A,disabled:C,applyAriaDisabled:T,hasError:H,isFocused:D==="date-inputs"&&_==="day-input",getProps:k,readOnly:Y})}),(0,c.jsx)(lt,{alignItems:"center",children:"/"}),(0,c.jsx)(Fe,{children:(0,c.jsx)(Ir,{onChange:l,onBlur:h,onFocus:p,onKeyDown:y,value:n,contextRef:M,tabIndex:v,placeholder:"YYYY",ariaCurrentValueForInputs:A,disabled:C,applyAriaDisabled:T,hasError:H,isFocused:D==="date-inputs"&&_==="year-input",getProps:k,readOnly:Y})})]})};var Ge=te("./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/utils/createIcon.js"),$t=(0,Ge.w)({paths:["M15.99 2H14v-.52c0-.27-.21-.48-.48-.48h-.05c-.26 0-.47.21-.47.48V2H7v-.52C7 1.21 6.79 1 6.52 1h-.04c-.27 0-.48.21-.48.48V2H4.01C2.9 2 2 2.9 2 4.01V17c0 1.1.9 2 2.01 2H16c1.1 0 2.01-.9 2.01-2.01V4.01C18 2.9 17.1 2 15.99 2zM17 16.99c0 .56-.45 1.01-1.01 1.01H4.01C3.45 18 3 17.55 3 16.99V6h14v10.99zM3 5v-.99C3 3.45 3.45 3 4.01 3H6v.52c0 .27.21.48.48.48h.05c.26 0 .47-.21.47-.48V3h6v.52c0 .27.21.48.48.48h.05c.26 0 .47-.21.47-.48V3h1.99c.56 0 1.01.45 1.01 1.01V5H3z","M5 8h2v2H5V8zM13 8h2v2h-2V8zM9 8h2v2H9V8zM5 11h2v2H5v-2zM13 11h2v2h-2v-2zM9 11h2v2H9v-2zM5 14h2v2H5v-2zM9 14h2v2H9v-2z"],height:20,width:20});const _r={},ct=(0,r.createContext)(_r);var _s=null,wr=te("./node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js"),Nr=te("./node_modules/.pnpm/uid@2.0.2/node_modules/uid/dist/index.mjs");const xr={id:X.A.string.description("Id of the live region"),portal:X.A.object.description("Portal to render the live region")},ws={id:X.A.string.description("Id of the live region"),portal:X.A.object.description("Portal to render the live region"),role:X.A.string.description("Role of the live region"),"aria-live":X.A.string.description("Aria live attribute"),methods:X.A.object.description("Methods to read the live region")},kr=K.I.div`
|
|
159
|
+
position: absolute;
|
|
160
|
+
width: 1px;
|
|
161
|
+
height: 1px;
|
|
162
|
+
margin: -1px;
|
|
163
|
+
border: 0;
|
|
164
|
+
padding: 0;
|
|
165
|
+
overflow: hidden;
|
|
166
|
+
clip: rect(0 0 0 0);
|
|
167
|
+
clip-path: inset(100%);
|
|
168
|
+
white-space: nowrap;
|
|
169
|
+
`,Or=(0,r.memo)(e=>{const[t,n]=(0,r.useState)(""),[o,s]=(0,r.useState)(!1),[a,i]=(0,r.useState)(void 0),[l,d]=(0,r.useState)("polite"),{id:m,portal:h}=e,g=(0,r.useCallback)(()=>{n(""),s(!1),d("polite"),i(void 0)},[]),u=(0,r.useCallback)((p,E)=>{g(),setTimeout(()=>{E?.unsafe_emulateAssertiveNVDA&&s(!0),setTimeout(()=>{(E?.assertive||E?.unsafe_emulateAssertiveNVDA)&&d("assertive"),E?.unsafe_emulateAssertiveNVDA&&(i("alert"),s(!1)),E?.delay?setTimeout(()=>{n(p)},E?.delay):n(p)})})},[g]);return(0,r.useEffect)(()=>{e.methods&&(e.methods.current.read=u)},[u,e.methods]),o?null:wr.createPortal((0,c.jsx)(kr,{"aria-atomic":!0,id:m,role:a,"aria-live":l,children:t}),h?.current||document.body)}),dt=e=>{const t=(0,r.useRef)({}),{id:n,portal:o}=e||{},s=(0,r.useMemo)(()=>`ds-live-region-${(0,Nr.L)(5)}`,[]),a=(0,r.useCallback)((i,l)=>t.current.read?.(i,l),[]);return(0,r.useMemo)(()=>({LiveRegion:()=>(0,c.jsx)(Or,{methods:t,id:n??s,portal:o}),read:a}),[n,s,o,a])};dt.displayName="useLiveRegion";const Lr=(0,It.A)(dt);Lr.propTypes=xr;const vr={},Re=(0,r.createContext)(vr);var Ns=null,De=te("./node_modules/.pnpm/@elliemae+ds-system@3.57.10_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-system/dist/esm/styled/system.js");const Pr=(0,De.AH)`
|
|
170
|
+
&:before {
|
|
171
|
+
position: absolute;
|
|
172
|
+
content: '';
|
|
173
|
+
top: 48%;
|
|
174
|
+
left: -2px;
|
|
175
|
+
height: 1px;
|
|
176
|
+
width: calc(100% + 4px);
|
|
177
|
+
transform: rotate(45deg);
|
|
178
|
+
background-color: ${({theme:e})=>e.colors.neutral[500]};
|
|
179
|
+
}
|
|
180
|
+
`,Wt=(0,De.AH)`
|
|
181
|
+
&:after {
|
|
182
|
+
position: absolute;
|
|
183
|
+
content: '';
|
|
184
|
+
top: -4px;
|
|
185
|
+
left: -4px;
|
|
186
|
+
width: calc(100% + 8px);
|
|
187
|
+
height: calc(100% + 8px);
|
|
188
|
+
border-radius: 50%;
|
|
189
|
+
}
|
|
190
|
+
`,ut={inRange:(0,De.AH)`
|
|
191
|
+
background-color: ${({theme:e})=>e.colors.brand[200]};
|
|
192
|
+
box-shadow: 4px 0 0 0 ${({theme:e})=>e.colors.brand[200]};
|
|
193
|
+
`,startRange:(0,De.AH)`
|
|
194
|
+
background-color: ${({theme:e})=>e.colors.brand[200]};
|
|
195
|
+
border-radius: 50% 0 0 50%;
|
|
196
|
+
box-shadow: 4px 0 0 0 ${({theme:e})=>e.colors.brand[200]};
|
|
197
|
+
`,endRange:(0,De.AH)`
|
|
198
|
+
background-color: ${({theme:e})=>e.colors.brand[200]};
|
|
199
|
+
border-radius: 0 50% 50% 0;
|
|
200
|
+
`},Sr=(0,K.I)(Oe.e,{name:ee,slot:oe.PICKER_ICONS.CALENDAR})`
|
|
201
|
+
color: ${({theme:e})=>e.colors.brand[800]};
|
|
202
|
+
width: 2rem;
|
|
203
|
+
height: 2rem;
|
|
204
|
+
`,Hr=(0,K.I)("div",{name:ee,slot:oe.CONTROLLER_COMPONENT.CALENDAR})``,Fr=K.I.div`
|
|
205
|
+
display: grid;
|
|
206
|
+
min-width: 260px;
|
|
207
|
+
background-color: ${({theme:e,readOnlyStyles:t})=>t?e.colors.neutral["050"]:e.colors.neutral["000"]};
|
|
208
|
+
grid-template-rows: auto auto;
|
|
209
|
+
`,$r=K.I.section`
|
|
210
|
+
* {
|
|
211
|
+
margin: 0;
|
|
212
|
+
padding: 0;
|
|
213
|
+
box-sizing: border-box;
|
|
214
|
+
}
|
|
215
|
+
display: grid;
|
|
216
|
+
padding: ${({theme:e})=>e.space.xxxs};
|
|
217
|
+
grid-template-columns: min-content min-content 1fr min-content min-content;
|
|
218
|
+
grid-template-rows: 1fr;
|
|
219
|
+
align-items: center;
|
|
220
|
+
justify-content: center;
|
|
221
|
+
text-align: center;
|
|
222
|
+
background: ${({theme:e})=>e.colors.neutral["050"]};
|
|
223
|
+
`,Wr=(0,K.I)("h3",{name:ee,slot:oe.CALENDAR.HEADER_LABEL})`
|
|
224
|
+
font-size: 1rem;
|
|
225
|
+
`,Xe=(0,K.I)(Oe.e,{name:ee,slot:oe.CALENDAR.HEADER_BUTTON})`
|
|
226
|
+
position: relative;
|
|
227
|
+
width: 2.1538rem;
|
|
228
|
+
height: 2.1538rem;
|
|
229
|
+
&:focus {
|
|
230
|
+
&:after {
|
|
231
|
+
content: '';
|
|
232
|
+
position: absolute;
|
|
233
|
+
top: 0;
|
|
234
|
+
left: 0;
|
|
235
|
+
width: 100%;
|
|
236
|
+
height: 100%;
|
|
237
|
+
border: 2px solid ${({theme:e})=>e.colors.brand[700]};
|
|
238
|
+
border-radius: 2px;
|
|
239
|
+
pointer-events: none;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
&:hover {
|
|
243
|
+
background: ${({theme:e})=>e.colors.brand[200]};
|
|
244
|
+
}
|
|
245
|
+
`,Ur=K.I.section`
|
|
246
|
+
padding: ${({theme:e})=>e.space.xxxs};
|
|
247
|
+
`,se=(0,K.I)(Oe.e,{name:ee,slot:oe.CALENDAR.DAY_BUTTON})`
|
|
248
|
+
height: 2.4615rem;
|
|
249
|
+
width: 2.4615rem;
|
|
250
|
+
border-radius: 50%;
|
|
251
|
+
position: relative;
|
|
252
|
+
border-width: 2px;
|
|
253
|
+
border-style: solid;
|
|
254
|
+
border-color: transparent;
|
|
255
|
+
line-height: 1;
|
|
256
|
+
color: ${({theme:e})=>e.colors.neutral[800]};
|
|
257
|
+
&:hover {
|
|
258
|
+
cursor: pointer;
|
|
259
|
+
color: ${({theme:e})=>e.colors.brand[700]};
|
|
260
|
+
background-color: ${({theme:e})=>e.colors.brand[200]};
|
|
261
|
+
}
|
|
262
|
+
&:focus {
|
|
263
|
+
${Wt}
|
|
264
|
+
}
|
|
265
|
+
display: flex;
|
|
266
|
+
justify-content: center;
|
|
267
|
+
align-items: center;
|
|
268
|
+
`,Ut=(0,K.I)(Ce.Ay,{name:ee,slot:oe.CALENDAR.HEADER_WEEKLY_DAY_LIST})`
|
|
269
|
+
font-size: ${({theme:e})=>e.fontSizes.label[400]};
|
|
270
|
+
text-align: center;
|
|
271
|
+
justify-items: center;
|
|
272
|
+
${({isHeader:e,theme:t})=>e?`background: ${t.colors.neutral["050"]}`:""};
|
|
273
|
+
${({isHeader:e})=>e?"text-transform: capitalize":""};
|
|
274
|
+
|
|
275
|
+
.dayWrapper.selectedDay,
|
|
276
|
+
.dayWrapper.startRangeDay,
|
|
277
|
+
.dayWrapper.endRangeDay {
|
|
278
|
+
${se} {
|
|
279
|
+
color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
280
|
+
font-weight: ${({theme:e})=>e.fontWeights.semibold};
|
|
281
|
+
}
|
|
282
|
+
&:not(.disabledDay),
|
|
283
|
+
&:not(.outOfRangeDay) {
|
|
284
|
+
${se} {
|
|
285
|
+
background-color: ${({theme:e})=>e.colors.brand[700]};
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
&.disabledDay,
|
|
290
|
+
&.outOfRangeDay {
|
|
291
|
+
${se} {
|
|
292
|
+
color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
293
|
+
background-color: ${({theme:e})=>e.colors.danger[900]};
|
|
294
|
+
&:before {
|
|
295
|
+
background-color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
&.focusedDay {
|
|
301
|
+
${se} {
|
|
302
|
+
color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
303
|
+
border-color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
&.outOfRangeDay.focusedDay {
|
|
308
|
+
${se} {
|
|
309
|
+
color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
310
|
+
&:before {
|
|
311
|
+
background-color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.dayWrapper.disabledDay,
|
|
318
|
+
.dayWrapper.outOfRangeDay {
|
|
319
|
+
${se} {
|
|
320
|
+
color: ${({theme:e})=>e.colors.neutral[500]};
|
|
321
|
+
${Pr}
|
|
322
|
+
&:before {
|
|
323
|
+
background-color: ${({theme:e})=>e.colors.neutral[500]};
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
&.focusedDay {
|
|
327
|
+
${se} {
|
|
328
|
+
&:after {
|
|
329
|
+
border: 2px solid ${({theme:e})=>e.colors.danger[900]};
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.dayWrapper.focusedDay {
|
|
336
|
+
${se} {
|
|
337
|
+
${Wt}
|
|
338
|
+
&:after {
|
|
339
|
+
border: 2px solid ${({theme:e})=>e.colors.brand[700]};
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
&:not(.readOnly) {
|
|
344
|
+
${se} {
|
|
345
|
+
color: ${({theme:e})=>e.colors.brand[600]};
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
&.disabledDay,
|
|
349
|
+
&.outOfRangeDay {
|
|
350
|
+
${se} {
|
|
351
|
+
color: ${({theme:e})=>e.colors.danger[900]};
|
|
352
|
+
&:before {
|
|
353
|
+
background-color: ${({theme:e})=>e.colors.danger[900]};
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
&.selectedDay {
|
|
358
|
+
${se} {
|
|
359
|
+
color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.dayWrapper.selectedDay.disabledDay.focusedDay {
|
|
365
|
+
${se} {
|
|
366
|
+
color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
367
|
+
&:before {
|
|
368
|
+
background-color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.dayWrapper.readOnly {
|
|
374
|
+
${se} {
|
|
375
|
+
:hover {
|
|
376
|
+
cursor: not-allowed;
|
|
377
|
+
background-color: ${({theme:e})=>e.colors.neutral[100]};
|
|
378
|
+
color: ${({theme:e})=>e.colors.neutral[700]};
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.dayWrapper.selectedDay.readOnly {
|
|
384
|
+
${se} {
|
|
385
|
+
background-color: ${({theme:e})=>e.colors.neutral[500]};
|
|
386
|
+
font-weight: semibold;
|
|
387
|
+
color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
388
|
+
&:before {
|
|
389
|
+
background-color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
390
|
+
}
|
|
391
|
+
:hover {
|
|
392
|
+
background-color: ${({theme:e})=>e.colors.neutral[700]};
|
|
393
|
+
}
|
|
394
|
+
:focus {
|
|
395
|
+
background-color: ${({theme:e})=>e.colors.neutral[700]};
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.dayWrapper.notCurrentMonth {
|
|
401
|
+
${se} {
|
|
402
|
+
color: ${({theme:e})=>e.colors.neutral[500]};
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
&.focusedDay {
|
|
406
|
+
${se} {
|
|
407
|
+
color: ${({theme:e})=>e.colors.brand[600]};
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
&.disabledDay,
|
|
411
|
+
&.outOfRangeDay {
|
|
412
|
+
${se} {
|
|
413
|
+
color: ${({theme:e})=>e.colors.danger[900]};
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
&.inRangeDay,
|
|
417
|
+
&.startRangeDay,
|
|
418
|
+
&.endRangeDay {
|
|
419
|
+
${se} {
|
|
420
|
+
color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
&.selectedDay,
|
|
427
|
+
&.startRangeDay,
|
|
428
|
+
&.endRangeDay {
|
|
429
|
+
${se} {
|
|
430
|
+
color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.dayWrapper.inRangeDay {
|
|
436
|
+
${ut.inRange}
|
|
437
|
+
&.disabledDay,
|
|
438
|
+
&.outOfRangeDay {
|
|
439
|
+
${se} {
|
|
440
|
+
color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
441
|
+
background-color: ${({theme:e})=>e.colors.danger[900]};
|
|
442
|
+
&:before {
|
|
443
|
+
background-color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
&.focusedDay {
|
|
447
|
+
${se} {
|
|
448
|
+
border-color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.dayWrapper.startRangeDay {
|
|
455
|
+
&.inRangeImproperDay {
|
|
456
|
+
${ut.startRange}
|
|
457
|
+
}
|
|
458
|
+
&.focusedDay {
|
|
459
|
+
${se} {
|
|
460
|
+
color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
&.disabledDay,
|
|
464
|
+
&.outOfRangeDay {
|
|
465
|
+
${se} {
|
|
466
|
+
color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
467
|
+
&:before {
|
|
468
|
+
background-color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.dayWrapper.endRangeDay {
|
|
475
|
+
&.inRangeImproperDay {
|
|
476
|
+
${ut.endRange}
|
|
477
|
+
}
|
|
478
|
+
&.focusedDay {
|
|
479
|
+
${se} {
|
|
480
|
+
color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
&.disabledDay,
|
|
484
|
+
&.outOfRangeDay {
|
|
485
|
+
${se} {
|
|
486
|
+
color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
487
|
+
&:before {
|
|
488
|
+
background-color: ${({theme:e})=>e.colors.neutral["000"]};
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.dayWrapper.endRangeDay.startRangeDay {
|
|
495
|
+
background-color: transparent;
|
|
496
|
+
box-shadow: none;
|
|
497
|
+
}
|
|
498
|
+
`,Le=K.I.div`
|
|
499
|
+
min-width: 2.4615rem;
|
|
500
|
+
display: flex;
|
|
501
|
+
justify-content: center;
|
|
502
|
+
align-items: center;
|
|
503
|
+
`,jr=(0,K.I)("div",{name:ee,slot:oe.FOOTERS.CALENDAR})`
|
|
504
|
+
border-top: solid 1px ${({theme:e})=>e.colors.neutral[300]};
|
|
505
|
+
margin: 0 ${({theme:e})=>e.space.xxs2};
|
|
506
|
+
padding: ${({theme:e})=>e.space.xxs2} 0;
|
|
507
|
+
color: ${({theme:e})=>e.colors.danger[900]};
|
|
508
|
+
font-size: ${({theme:e})=>e.fontSizes.microText[200]};
|
|
509
|
+
text-align: right;
|
|
510
|
+
background-color: ${({theme:e,readOnlyStyles:t})=>t?e.colors.neutral["050"]:e.colors.neutral["000"]};
|
|
511
|
+
`,Yr={display:"none"},mt=({metaDay:e,colIndex:t,isInvisible:n})=>{const{day:o,isCurrMonthDay:s,isHidden:a,dayBtnRef:i,dayAsString:l}=e,{handleChangeComposedDateString:d,dateStringFromProps:m,getProps:h,props:{preventCloseOnSelection:g,readOnly:u,applyAriaDisabled:p},getIsDisabledDay:E,getIsOutOfRangeDay:f,getIsStartRangeDay:y,getIsDayInRange:C,getIsEndRangeDay:T,appOnMonthChange:x,appOnDayChange:L,appOnYearChange:M,latestInteractionRegion:A,isWithTimeWheelToo:D,trackFocusCalendarMetafocusedDay:_,fromDate:k,toDate:v}=(0,r.useContext)(z),{read:H,LiveRegion:Y}=dt({}),{focusedDay:b,handleDayOnKeyDown:O,handleFocusMetaDayByDay:I,closeCalendar:W}=(0,r.useContext)(Re),ae=b?.day?We(e?.day,b?.day):!1,U=(0,r.useMemo)(()=>{const Q=Ve(m);return Q?sn(o,Q):!1},[m,o]),j=A==="calendar-days"&&ae,Z=E(e.dayAsString),le=f(e.dayAsString),N=y(e.dayAsString),w=T(e.dayAsString),P=C(e.dayAsString),$=!N&&!w&&P,G=(0,r.useMemo)(()=>`${tn(l)}, ${Qt[e.day.getDay()]}`,[l,e]),S=(0,r.useMemo)(()=>k&&v?k===v?"Please select another day to complete range selection.":`Range from ${k} to ${v} selected.`:k&&!v?"Please select another day to complete range selection.":"",[k,v]),J=(0,r.useCallback)(Q=>{if(I(o),!Z&&!le&&!u&&!p){const me=Me(o),ue={...Te,newDateString:me},{month:ce,day:fe,year:Je}=ye(o);x(`${ce+1}`,Q,ue),fe&&L(`${fe}`,Q,ue),M(`${Je}`,Q,ue),d(me,ue),_(),!D&&!g&&W(),H(`${G} selected.`,{})}},[I,o,Z,le,u,p,x,L,M,d,_,D,g,W,H,G]),F=(0,r.useCallback)(Q=>{window.requestAnimationFrame(()=>{i.current=Q,j&&Q?.focus?.()})},[i,j]),R=(0,r.useCallback)(()=>{_()},[_]),pe=(0,r.useMemo)(()=>`dayWrapper ${U?"selectedDay ":""}${Z?"disabledDay ":""}${le?"outOfRangeDay ":""}${j?"focusedDay ":""}${N?"startRangeDay ":""}${P?"inRangeImproperDay ":""}${$?"inRangeDay ":""}${w?"endRangeDay ":""}${s?"":"notCurrentMonth"}
|
|
512
|
+
${u||p?"readOnly":""}`,[U,Z,le,j,N,P,$,w,s,u,p]);let ie=V.CALENDAR.DAY;return U&&(ie=V.CALENDAR.SELECTED_DAY),j&&(ie=V.CALENDAR.FOCUSED_DAY),j&&U&&(ie=V.CALENDAR.SELECTED_FOCUSED_DAY),N&&(ie=V.CALENDAR.START_RANGE_DAY,j&&H(`${G} selected. ${S}`,{})),w&&(ie=V.CALENDAR.END_RANGE_DAY,j&&H(`${G} selected. ${S}`,{})),$&&(ie=V.CALENDAR.IN_RANGE_DAY),(0,c.jsxs)("div",{className:pe,style:a?Yr:void 0,role:"gridcell",...Number.isInteger(t)&&{"aria-colindex":t},children:[(0,c.jsx)(se,{"aria-label":G,"aria-disabled":le||Z||u||p,applyAriaDisabled:p,"aria-hidden":!!n,buttonType:"raw",size:"m",onClick:J,onFocus:R,onKeyDown:Q=>{O(Q,e)},innerRef:F,tabIndex:-1,"data-isfocused":j,"data-testid":ie,type:"button",getOwnerProps:h,readOnlyStyles:u||p,children:`${o.getDate()}`}),(0,c.jsx)(Y,{})]})},Br=r.memo(({invisibleFirstDay:e,daysMatrixByWeekday:t,invisibleLastDay:n,innerRef:o})=>{const{getProps:s}=r.useContext(z);return(0,c.jsxs)("div",{ref:o,role:"rowgroup",children:[e?(0,c.jsx)("div",{role:"row",style:{display:"none"},children:(0,c.jsx)(mt,{metaDay:e,isInvisible:!0},`ds-calendar-${e.day.toString()}`)}):null,t.map((a,i)=>(0,c.jsx)(Ut,{role:"row","aria-rowindex":i+1,cols:["2.4615rem","2.4615rem","2.4615rem","2.4615rem","2.4615rem","2.4615rem","2.4615rem"],rows:["2.1538rem"],py:"xxxs",px:"2px",justifyContent:"space-between",alignItems:"center",getOwnerProps:s,children:a.map((l,d)=>(0,c.jsx)(mt,{metaDay:l,colIndex:d+1},`ds-calendar-${l.day.toString()}`))},`ds-calendar-week-${a[0].day.toString()}-${a[6].day.toString()}`)),n?(0,c.jsx)("div",{role:"row",style:{display:"none"},children:(0,c.jsx)(mt,{metaDay:n,isInvisible:!0},`ds-calendar-${n.day.toString()}`)}):null]})}),Kr=()=>{const{invisibleFirstDay:e,daysMatrixByWeekday:t,invisibleLastDay:n}=(0,r.useContext)(Re),{calendarDaysWrapperRef:o}=(0,r.useContext)(z);return(0,c.jsx)(Br,{invisibleFirstDay:e,daysMatrixByWeekday:t,invisibleLastDay:n,innerRef:o})},Vr=r.memo(()=>(0,c.jsx)("span",{role:"rowgroup",children:(0,c.jsxs)(Ut,{role:"row",cols:["2.4615rem","2.4615rem","2.4615rem","2.4615rem","2.4615rem","2.4615rem","2.4615rem"],rows:["1.6923rem"],py:"xxxs",px:"6px",justifyContent:"space-between",alignItems:"center",isHeader:!0,children:[(0,c.jsx)(Le,{role:"columnheader","aria-colindex":1,children:"sun"}),(0,c.jsx)(Le,{role:"columnheader","aria-colindex":2,children:"mon"}),(0,c.jsx)(Le,{role:"columnheader","aria-colindex":3,children:"tue"}),(0,c.jsx)(Le,{role:"columnheader","aria-colindex":4,children:"wed"}),(0,c.jsx)(Le,{role:"columnheader","aria-colindex":5,children:"thu"}),(0,c.jsx)(Le,{role:"columnheader","aria-colindex":6,children:"fri"}),(0,c.jsx)(Le,{role:"columnheader","aria-colindex":7,children:"sat"})]})})),Gr=r.memo(({weekRowsNum:e})=>(0,c.jsxs)("span",{role:"grid","aria-label":"calendar","aria-colcount":7,"aria-rowcount":e,"data-testid":V.CALENDAR.TABLE_WRAPPER,children:[(0,c.jsx)(Vr,{}),(0,c.jsx)(Ur,{children:(0,c.jsx)(Kr,{})})]}));var pt=te("./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/AlertsSmallFill.js");const Xr=()=>{const{props:{pickerFooterMsg:e,hasError:t,readOnly:n,applyAriaDisabled:o},getProps:s,isWithTimeWheelToo:a}=(0,r.useContext)(z);return e!==void 0&&!a&&t?(0,c.jsxs)(jr,{role:"alert",getOwnerProps:s,"data-testid":V.FOOTERS.CALENDAR,readOnlyStyles:n||o,children:[(0,c.jsx)(pt.A,{width:8,height:8,color:["danger","900"],style:{marginRight:"0.5rem",marginBottom:"2px"}}),e]}):null};var jt=te("./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/utils/SvgIcon.js"),zr=e=>(0,c.jsx)(jt.Ah,{width:16,height:16,...e,viewBox:"0 0 16 16",paths:["M0,8c0,0.1,0,0.2,0.1,0.3l5.6,7.5c0.2,0.2,0.5,0.3,0.7,0.1c0.2-0.2,0.3-0.5,0.1-0.7L1.1,8l5.4-7.2c0.2-0.2,0.1-0.5-0.1-0.7C6.2-0.1,5.9,0,5.7,0.2L0.1,7.7C0,7.8,0,7.9,0,8L0,8z M9,8c0,0.1,0,0.2,0.1,0.3l5.6,7.5c0.2,0.2,0.5,0.3,0.7,0.1c0.2-0.2,0.3-0.5,0.1-0.7L10.1,8l5.4-7.2c0.2-0.2,0.1-0.5-0.1-0.7c-0.2-0.2-0.5-0.1-0.7,0.1L9.1,7.7C9,7.8,9,7.9,9,8L9,8z"]}),Jr=(0,Ge.w)({paths:["M 4.465 8.5 C 4.465 8.605 4.498 8.711 4.565 8.8 L 10.565 16.8 C 10.731 17.021 11.044 17.066 11.265 16.9 S 11.531 16.421 11.366 16.2 L 5.591 8.5 L 11.366 0.8 C 11.531 0.58 11.486 0.267 11.265 0.1 A 0.5007 0.5007 0 0 0 10.565 0.201 L 4.565 8.201 A 0.503 0.503 0 0 0 4.465 8.501 Z"],height:17,width:16}),Zr=te("./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/ChevronRight.js"),Qr=e=>(0,c.jsx)(jt.Ah,{width:16,height:16,...e,viewBox:"0 0 16 16",children:(0,c.jsx)("path",{d:`M6.6,8c0,0.1,0,0.2-0.1,0.3l-5.6,7.5c-0.2,0.2-0.5,0.3-0.7,0.1c-0.2-0.2-0.3-0.5-0.1-0.7L5.5,8L0.1,0.8
|
|
513
|
+
C-0.1,0.5,0,0.3,0.2,0.1C0.4-0.1,0.7,0,0.8,0.2l5.6,7.5C6.6,7.8,6.6,7.9,6.6,8L6.6,8z M15.6,8c0,0.1,0,0.2-0.1,0.3l-5.6,7.5
|
|
514
|
+
c-0.2,0.2-0.5,0.3-0.7,0.1c-0.2-0.2-0.3-0.5-0.1-0.7L14.5,8L9.1,0.8C8.9,0.5,9,0.3,9.2,0.1C9.4-0.1,9.7,0,9.8,0.2l5.6,7.5
|
|
515
|
+
C15.6,7.8,15.6,7.9,15.6,8L15.6,8z`})});const qr=()=>{const{currentMonth:e,currentYear:t}=(0,r.useContext)(Re),n=e>=0&&e<=11?`${on(e)} `:"";return(0,r.useMemo)(()=>`${n}${t}`,[n,t])},eo=()=>{const e=qr(),{handlePrevYear:t,handlePrevMonth:n,handleNextMonth:o,handleNextYear:s,handlePrevYearKeyDown:a,handlePrevMonthKeyDown:i,handleNextMonthKeyDown:l,handleNextYearKeyDown:d,onPrevYearFocus:m,onPrevMonthFocus:h,onNextMonthFocus:g,onNextYearFocus:u}=(0,r.useContext)(Re),{isControllerOnly:p,autoFocusPrevMonthArrow:E,prevYearBtnRef:f,prevMonthBtnRef:y,nextMonthBtnRef:C,nextYearBtnRef:T,latestInteractionRegion:x,currFocusDescriber:L,getProps:M}=(0,r.useContext)(z),A=(0,r.useCallback)(v=>{f.current=v,x==="calendar-head"&&L==="calendar-prev-year"&&v?.focus?.()},[L,x,f]),D=(0,r.useCallback)(v=>{y.current=v,x==="calendar-head"&&L==="calendar-prev-month"&&v?.focus?.()},[L,x,y]),_=(0,r.useCallback)(v=>{C.current=v,x==="calendar-head"&&L==="calendar-next-month"&&v?.focus?.()},[L,x,C]),k=(0,r.useCallback)(v=>{T.current=v,x==="calendar-head"&&L==="calendar-next-year"&&v?.focus?.()},[L,x,T]);return(0,c.jsxs)($r,{children:[(0,c.jsx)(Xe,{"aria-label":"previous year",buttonType:"raw",size:xe.GO.M,onClick:t,innerRef:A,onKeyDown:a,onFocus:m,tabIndex:p?-1:0,"data-testid":V.CALENDAR.PREV_YEAR,type:"button",getOwnerProps:M,children:(0,c.jsx)(zr,{height:14,width:14,fill:"#25292f"})}),(0,c.jsx)(Xe,{autoFocus:E,"aria-label":"previous month",buttonType:"raw",size:xe.GO.M,onClick:n,innerRef:D,onKeyDown:i,onFocus:h,"data-testid":V.CALENDAR.PREV_MONTH,type:"button",getOwnerProps:M,children:(0,c.jsx)(Jr,{height:14,width:14,fill:"#25292f"})}),(0,c.jsx)(Wr,{"aria-live":"polite","data-testid":V.CALENDAR.HEADER_LABEL,getOwnerProps:M,children:e}),(0,c.jsx)(Xe,{"aria-label":"next month",buttonType:"raw",size:xe.GO.M,onClick:o,innerRef:_,onKeyDown:l,onFocus:g,"data-testid":V.CALENDAR.NEXT_MONTH,type:"button",getOwnerProps:M,children:(0,c.jsx)(Zr.A,{height:14,width:14,fill:"#25292f"})}),(0,c.jsx)(Xe,{"aria-label":"next year",buttonType:"raw",size:xe.GO.M,onClick:s,innerRef:k,onKeyDown:d,onFocus:u,"data-testid":V.CALENDAR.NEXT_YEAR,type:"button",getOwnerProps:M,children:(0,c.jsx)(Qr,{height:14,width:14,fill:"#25292f"})})]})},ht=({className:e=""})=>{const{getProps:t,props:{readOnly:n,applyAriaDisabled:o}}=(0,r.useContext)(z),{daysMatrixByWeekday:s}=(0,r.useContext)(Re);return(0,c.jsx)(Hr,{className:e,"data-testid":V.CONTROLLER_COMPONENT.CALENDAR,getOwnerProps:t,children:(0,c.jsxs)(Fr,{readOnlyStyles:n||o,children:[(0,c.jsx)(eo,{}),(0,c.jsx)(Gr,{weekRowsNum:s.length}),(0,c.jsx)(Xr,{})]})})},to=(0,K.I)(Oe.e,{name:ee,slot:oe.PICKER_ICONS.CALENDAR_TIMEWHEEL})`
|
|
516
|
+
color: ${({theme:e})=>e.colors.brand[800]};
|
|
517
|
+
width: 2rem;
|
|
518
|
+
height: 2rem;
|
|
519
|
+
`,no=(0,K.I)("div",{name:ee,slot:oe.CONTROLLER_COMPONENT.CALENDAR_TIMEWHEEL})`
|
|
520
|
+
background: ${({theme:e,readOnlyStyles:t})=>t?e.colors.neutral["050"]:e.colors.neutral["000"]};
|
|
521
|
+
display: grid;
|
|
522
|
+
grid-template-columns: 260px 192px;
|
|
523
|
+
grid-template-rows: 1fr;
|
|
524
|
+
// this gap and background color simulate the border separator between the calendar and time wheel
|
|
525
|
+
column-gap: 1px;
|
|
526
|
+
background-color: ${({theme:e})=>e.colors.neutral[200]};
|
|
527
|
+
`,ro=(0,K.I)(ht)`
|
|
528
|
+
box-shadow: none;
|
|
529
|
+
`,oo=(0,K.I)("div",{name:ee,slot:oe.FOOTERS.CALENDAR_TIMEWHEEL})`
|
|
530
|
+
border-top: solid 1px ${({theme:e})=>e.colors.neutral[300]};
|
|
531
|
+
padding: ${({theme:e})=>e.space.xxs2};
|
|
532
|
+
color: ${({theme:e})=>e.colors.danger[900]};
|
|
533
|
+
font-size: ${({theme:e})=>e.fontSizes.microText[200]};
|
|
534
|
+
text-align: right;
|
|
535
|
+
grid-column: 1/3;
|
|
536
|
+
background-color: ${({theme:e,readOnlyStyles:t})=>t?e.colors.neutral["050"]:e.colors.neutral["000"]};
|
|
537
|
+
`,so=()=>{const{handleSetTriggerRef:e,handleToggleCalendarWithTimeWheel:t,handlePickerIconKeyDown:n,ariaCurrentValueForInputs:o,disabled:s}=(0,r.useContext)(ct),{getProps:a,props:{tabIndex:i}}=(0,r.useContext)(z);return(0,r.useMemo)(()=>(0,c.jsx)(to,{"aria-label":`date time picker context menu trigger, ${o}`,buttonType:"icon",type:"button",size:xe.GO.M,innerRef:e,tabIndex:i,onClick:t,onKeyDown:n,"data-testid":V.PICKER_ICONS.CALENDAR_TIMEWHEEL,disabled:s,getOwnerProps:a,children:(0,c.jsx)($t,{color:s?["neutral","500"]:["brand-primary","800"]})}),[o,s,a,n,e,t,i])};var gt=te("./node_modules/.pnpm/@elliemae+ds-popperjs@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-popperjs/dist/esm/index.js"),ft=(0,Ge.w)({paths:["M9.499 6.969a.503.503 0 0 0-.313.109l-5 4a.5013.5013 0 0 0-.078.703c.173.214.488.25.703.078l4.688-3.75 4.688 3.75c.218.172.531.136.703-.078a.5004.5004 0 0 0-.078-.703l-5-4a.501.501 0 0 0-.313-.109z"],height:20,width:20}),Et=te("./node_modules/.pnpm/@elliemae+ds-icons@3.57.10_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-icons/dist/esm/ChevronSmallDown.js");const ao=(0,De.AH)`
|
|
538
|
+
&:after {
|
|
539
|
+
position: absolute;
|
|
540
|
+
content: '';
|
|
541
|
+
top: -2px;
|
|
542
|
+
left: -2px;
|
|
543
|
+
width: calc(100% + 4px);
|
|
544
|
+
height: calc(100% + 4px);
|
|
545
|
+
border-radius: 50%;
|
|
546
|
+
border: 2px solid ${({theme:e,isDisabled:t})=>t?e.colors.danger[900]:e.colors.brand[700]};
|
|
547
|
+
}
|
|
548
|
+
`,io=(0,De.AH)`
|
|
549
|
+
&:before {
|
|
550
|
+
position: absolute;
|
|
551
|
+
content: '';
|
|
552
|
+
top: 48%;
|
|
553
|
+
left: -1px;
|
|
554
|
+
height: 1px;
|
|
555
|
+
width: calc(100% + 2px);
|
|
556
|
+
transform: rotate(45deg);
|
|
557
|
+
background-color: ${({theme:e,isCurrentListItem:t,selected:n})=>n?e.colors.neutral["000"]:t?e.colors.danger[900]:e.colors.neutral[500]};
|
|
558
|
+
}
|
|
559
|
+
`,lo=(0,De.AH)`
|
|
560
|
+
${({theme:e,isDisabled:t,isCurrentListItem:n,selected:o})=>o?e.colors.neutral["000"]:t&&n?e.colors.danger[900]:t?e.colors.neutral[500]:n?e.colors.brand[600]:e.colors.neutral[800]};
|
|
561
|
+
`,co=(0,De.AH)`
|
|
562
|
+
${({theme:e,selected:t,isDisabled:n})=>n&&t?e.colors.danger[900]:t?e.colors.brand[700]:e.colors.neutral["000"]}
|
|
563
|
+
`,uo=(0,K.I)(Oe.e,{name:ee,slot:oe.PICKER_ICONS.TIMEWHEEL})`
|
|
564
|
+
color: ${({theme:e})=>e.colors.brand[800]};
|
|
565
|
+
width: 2rem;
|
|
566
|
+
height: 2rem;
|
|
567
|
+
`,yt=K.I.div`
|
|
568
|
+
width: 100%;
|
|
569
|
+
height: 100%;
|
|
570
|
+
margin: auto;
|
|
571
|
+
padding: 0;
|
|
572
|
+
position: relative;
|
|
573
|
+
display: flex;
|
|
574
|
+
flex-direction: column;
|
|
575
|
+
align-items: center;
|
|
576
|
+
&:focus-within {
|
|
577
|
+
&:before {
|
|
578
|
+
content: '';
|
|
579
|
+
position: absolute;
|
|
580
|
+
top: 0;
|
|
581
|
+
left: 0;
|
|
582
|
+
width: 100%;
|
|
583
|
+
height: 100%;
|
|
584
|
+
border-radius: 2px;
|
|
585
|
+
border: 2px solid ${({theme:e})=>e.colors.brand[700]};
|
|
586
|
+
box-shadow: 0 0 2px ${({theme:e})=>e.colors.brand[700]};
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
`,mo=(0,K.I)("div",{name:ee,slot:oe.CONTROLLER_COMPONENT.TIMEWHEEL})`
|
|
590
|
+
display: grid;
|
|
591
|
+
position: relative;
|
|
592
|
+
grid-template-columns: 192px;
|
|
593
|
+
grid-template-rows: 36px 30px auto;
|
|
594
|
+
grid-template-areas:
|
|
595
|
+
'TimePickerHead'
|
|
596
|
+
'TimePickerWheelsLegend'
|
|
597
|
+
'VerticalWheelWrapper';
|
|
598
|
+
`,po=(0,K.I)(Ce.Ay,{name:ee,slot:oe.TIMEWHEEL.HEADER_LABEL})`
|
|
599
|
+
width: 100%;
|
|
600
|
+
grid-area: TimePickerHead;
|
|
601
|
+
justify-content: center;
|
|
602
|
+
align-items: center;
|
|
603
|
+
background: ${({theme:e})=>e.colors.neutral["050"]};
|
|
604
|
+
`,ho=K.I.div`
|
|
605
|
+
width: 100%;
|
|
606
|
+
height: 100%;
|
|
607
|
+
grid-area: TimePickerWheelsLegend;
|
|
608
|
+
display: grid;
|
|
609
|
+
grid-template-columns: ${({theme:e})=>e.space.xl} ${({theme:e})=>e.space.xl} ${({theme:e})=>e.space.xl};
|
|
610
|
+
align-items: center;
|
|
611
|
+
justify-content: center;
|
|
612
|
+
text-align: center;
|
|
613
|
+
background: ${({theme:e})=>e.colors.neutral["050"]};
|
|
614
|
+
`,go=K.I.div`
|
|
615
|
+
background-color: ${({theme:e,readOnlyStyles:t})=>t?e.colors.neutral["050"]:e.colors.neutral["000"]};
|
|
616
|
+
width: 100%;
|
|
617
|
+
grid-area: VerticalWheelWrapper;
|
|
618
|
+
display: grid;
|
|
619
|
+
grid-template-columns: ${({theme:e})=>e.space.xl} ${({theme:e})=>e.space.xl} ${({theme:e})=>e.space.xl};
|
|
620
|
+
grid-template-rows: 100%;
|
|
621
|
+
& ul:not(:last-child) {
|
|
622
|
+
position: relative;
|
|
623
|
+
&:after {
|
|
624
|
+
content: '';
|
|
625
|
+
position: absolute;
|
|
626
|
+
left: 100%;
|
|
627
|
+
top: 5%;
|
|
628
|
+
height: 90%;
|
|
629
|
+
width: 1px;
|
|
630
|
+
background: ${({theme:e})=>e.colors.neutral[300]};
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
> *:not(:last-child) {
|
|
635
|
+
border-right: 1px solid ${({theme:e})=>e.colors.neutral[200]};
|
|
636
|
+
}
|
|
637
|
+
`,ze=(0,K.I)(Ce.Ay,{name:ee,slot:oe.TIMEWHEEL.TIME_BUTTON})`
|
|
638
|
+
position: relative;
|
|
639
|
+
height: ${({theme:e})=>e.space.s};
|
|
640
|
+
width: ${({theme:e})=>e.space.s};
|
|
641
|
+
border-radius: 50%;
|
|
642
|
+
|
|
643
|
+
&:hover {
|
|
644
|
+
background-color: ${co};
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
&:focus {
|
|
648
|
+
outline: none;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
color: ${lo};
|
|
652
|
+
|
|
653
|
+
${({selected:e,isCurrentListItem:t})=>t&&!e?ao:""}
|
|
654
|
+
|
|
655
|
+
${({isDisabled:e})=>e?(0,De.AH)`
|
|
656
|
+
cursor: not-allowed;
|
|
657
|
+
${io};
|
|
658
|
+
`:""}
|
|
659
|
+
|
|
660
|
+
${({theme:e,selected:t,isDisabled:n})=>t?(0,De.AH)`
|
|
661
|
+
font-weight: ${e.fontWeights.semibold};
|
|
662
|
+
background-color ${n?e.colors.danger[900]:e.colors.brand[700]};
|
|
663
|
+
`:""};
|
|
664
|
+
display: flex;
|
|
665
|
+
justify-content: center;
|
|
666
|
+
align-items: center;
|
|
667
|
+
|
|
668
|
+
${({theme:e,readOnly:t,selected:n})=>t&&n?`
|
|
669
|
+
background-color: ${e.colors.neutral[500]};
|
|
670
|
+
font-weight: semibold;
|
|
671
|
+
color: ${e.colors.neutral["000"]};
|
|
672
|
+
&:before {
|
|
673
|
+
background-color: ${e.colors.neutral["000"]};
|
|
674
|
+
}
|
|
675
|
+
:hover {
|
|
676
|
+
background-color: ${e.colors.neutral[700]};
|
|
677
|
+
}
|
|
678
|
+
:focus {
|
|
679
|
+
background-color: ${e.colors.neutral[700]};
|
|
680
|
+
}
|
|
681
|
+
`:t&&!n?`
|
|
682
|
+
:hover {
|
|
683
|
+
background-color: ${e.colors.neutral[100]};
|
|
684
|
+
}
|
|
685
|
+
`:""}
|
|
686
|
+
`,he=K.I.div`
|
|
687
|
+
margin: auto;
|
|
688
|
+
width: 36px;
|
|
689
|
+
height: 36px;
|
|
690
|
+
display: flex;
|
|
691
|
+
align-items: center;
|
|
692
|
+
justify-content: center;
|
|
693
|
+
position: relative;
|
|
694
|
+
`,$e=(0,K.I)(Oe.e,{name:ee,slot:oe.TIMEWHEEL.TIME_CHANGE_BUTTON})`
|
|
695
|
+
height: ${({theme:e})=>e.space.s};
|
|
696
|
+
width: ${({theme:e})=>e.space.s};
|
|
697
|
+
min-width: ${({theme:e})=>e.space.s};
|
|
698
|
+
border-radius: 50%;
|
|
699
|
+
`,fo=(0,K.I)("div",{name:ee,slot:oe.FOOTERS.TIMEWHEEL})`
|
|
700
|
+
border-top: solid 1px ${({theme:e})=>e.colors.neutral[300]};
|
|
701
|
+
padding: ${({theme:e})=>e.space.xxs2};
|
|
702
|
+
color: ${({theme:e})=>e.colors.danger[900]};
|
|
703
|
+
font-size: ${({theme:e})=>e.fontSizes.microText[200]};
|
|
704
|
+
text-align: right;
|
|
705
|
+
background-color: ${({theme:e,readOnlyStyles:t})=>t?e.colors.neutral["050"]:e.colors.neutral["000"]};
|
|
706
|
+
`,Eo={},ke=(0,r.createContext)(Eo);var Os=null;const yo=()=>{const{currHourNum:e,currMinuteNum:t,currMeridiem:n,visibleHours:o,handlePrevHour:s,handleNextHour:a,handleTimeWheelBtnChangeHours:i,handleCurrHourOnKeyDown:l}=(0,r.useContext)(ke),{prevHourBtnRef:d,currHourBtnRef:m,nextHourBtnRef:h,getIsDisabledTime:g,autoFocusHourTimeWheel:u,hours:p,latestInteractionRegion:E,currFocusDescriber:f,getProps:y,props:{readOnly:C,applyAriaDisabled:T}}=(0,r.useContext)(z),x=(0,r.useCallback)(A=>{setTimeout(()=>{m.current=A,E==="timewheel"&&f==="timewheel-curr-hour"&&A?.focus?.()})},[f,E,m]),M=C||T?void 0:["brand-primary","700"];return(0,c.jsxs)(yt,{children:[(0,c.jsx)(he,{children:(0,c.jsx)($e,{"aria-label":"subtract one hour",buttonType:"raw",size:"m",onClick:s,innerRef:d,"data-testid":V.TIMEWHEEL.PREV_HOUR,"aria-disabled":C||T,applyAriaDisabled:T,getOwnerProps:y,tabIndex:-1,type:"button",children:(0,c.jsx)(ft,{color:M})})}),o.map(A=>{const D=`timewheel-hour-${A||""}`;if(!A)return(0,c.jsx)(he,{},D);const _=`${A}:${t} ${n}`,v=!p&&q(A)===e||p===A,H=g(_),Y=v?0:-1,b={role:"spinbutton","aria-valuenow":q(A),"aria-valuetext":`${A} hours`,"aria-valuemin":1,"aria-valuemax":12,"aria-label":`${A} hours`,"aria-disabled":H||C||T,"aria-readonly":C||T,onKeyDown:v?l:void 0,innerRef:v?x:void 0},O={isCurrentListItem:v,isDisabled:H},I=p.length===2&&q(A)===e;return(0,c.jsx)(he,{isCurrentListItem:v,children:(0,c.jsx)(ze,{...O,autoFocus:u&&v,"data-testid":V.TIMEWHEEL[v?"CURRENT_HOUR":"HOUR"],selected:I,applyAriaDisabled:T,onClick:W=>i(A,W),tabIndex:Y,...b,getOwnerProps:y,readOnly:C||T,children:A})},D)}),(0,c.jsx)(he,{children:(0,c.jsx)($e,{"aria-label":"add one hour",buttonType:"raw",size:"m",onClick:a,innerRef:h,tabIndex:-1,"data-testid":V.TIMEWHEEL.NEXT_HOUR,"aria-disabled":C||T,applyAriaDisabled:T,getOwnerProps:y,type:"button",children:(0,c.jsx)(Et.A,{color:M})})})]})},Co=()=>{const{currMeridiem:e,handleTimeWheelBtnChangeMeridiem:t,handleCurrMeridiemOnKeyDown:n}=(0,r.useContext)(ke),{prevMeridiemBtnRef:o,currMeridiemBtnRef:s,nextMeridiemBtnRef:a,getIsDisabledTime:i,hours:l,minutes:d,latestInteractionRegion:m,currFocusDescriber:h,getProps:g,props:{readOnly:u,applyAriaDisabled:p}}=(0,r.useContext)(z),E=!e||e==="AM",f=e==="PM",y=`${l||"01"}:${d||"00"}`,C=`${y} AM`,T=`${y} PM`,x=i(C),L=i(T),M={isDisabled:x},A={isCurrentListItem:E,isDisabled:x},D={isCurrentListItem:f,isDisabled:L},_={isDisabled:L},k=(0,r.useCallback)(b=>{setTimeout(()=>{s.current=b,m==="timewheel"&&h==="timewheel-curr-meridiem"&&b?.focus?.()})},[h,m,s]),v={"aria-valuetext":e,"aria-label":`${e} meridiem`,"aria-disabled":x||L||u||p},Y=u||p?void 0:["brand-primary","700"];return(0,c.jsxs)(yt,{children:[(0,c.jsx)(he,{children:(0,c.jsx)($e,{...M,"aria-label":"set am meridiem","aria-disabled":x||u||p,"data-testid":V.TIMEWHEEL.PREV_MERIDIEM,buttonType:"raw",size:"m",onClick:b=>t("AM",b),innerRef:o,tabIndex:-1,type:"button",getOwnerProps:g,children:(0,c.jsx)(ft,{color:Y})})}),e==="AM"||e===""?(0,c.jsx)(he,{}):null,(0,c.jsx)(he,{isCurrentListItem:E,children:(0,c.jsx)(ze,{role:"spinbutton",...e==="AM"||e===""?v:{},...A,"data-testid":V.TIMEWHEEL[E?"CURRENT_MERIDIEM":"MERIDIEM"],selected:e==="AM","aria-label":`AM ${E?"selected":""}`,"aria-disabled":x||u||p,onClick:b=>t("AM",b),onKeyDown:E?n:void 0,innerRef:E?k:void 0,tabIndex:E?0:-1,getOwnerProps:g,readOnly:u||p,children:"AM"})}),(0,c.jsx)(he,{isCurrentListItem:f,children:(0,c.jsx)(ze,{role:"spinbutton",...e==="PM"?v:{},...D,"data-testid":V.TIMEWHEEL[f?"CURRENT_MERIDIEM":"MERIDIEM"],selected:e==="PM","aria-label":`PM ${f?"selected":""}`,"aria-disabled":L||u||p,onClick:b=>t("PM",b),onKeyDown:f?n:void 0,innerRef:f?k:void 0,tabIndex:f?0:-1,getOwnerProps:g,readOnly:u||p,children:"PM"})}),e==="PM"?(0,c.jsx)(he,{}):null,(0,c.jsx)(he,{children:(0,c.jsx)($e,{..._,"aria-label":"set pm meridiem","aria-disabled":L||u||p,"data-testid":V.TIMEWHEEL.NEXT_MERIDIEM,buttonType:"raw",size:"m",onClick:b=>t("PM",b),innerRef:a,tabIndex:-1,type:"button",getOwnerProps:g,children:(0,c.jsx)(Et.A,{color:Y})})})]})};var Ls=null;const Do=()=>{const{currHourNum:e,currMinuteNum:t,currMeridiem:n,visibleMinutes:o,handlePrevMinute:s,handleNextMinute:a,handleTimeWheelBtnChangeMinutes:i,handleCurrMinutesOnKeyDown:l}=(0,r.useContext)(ke),{prevMinutesBtnRef:d,currMinutesBtnRef:m,nextMinutesBtnRef:h,getIsDisabledTime:g,minutes:u,currFocusDescriber:p,latestInteractionRegion:E,getProps:f,props:{readOnly:y,applyAriaDisabled:C}}=(0,r.useContext)(z),T=(0,r.useCallback)(M=>{setTimeout(()=>{m.current=M,E==="timewheel"&&p==="timewheel-curr-minute"&&M?.focus?.()})},[p,E,m]),L=y||C?void 0:["brand-primary","700"];return(0,c.jsxs)(yt,{children:[(0,c.jsx)(he,{children:(0,c.jsx)($e,{"aria-label":"subtract one minute",buttonType:"raw",size:"m",onClick:s,innerRef:d,tabIndex:-1,"data-testid":V.TIMEWHEEL.PREV_MINUTE,"aria-disabled":y||C,type:"button",getOwnerProps:f,children:(0,c.jsx)(ft,{color:L})})}),o.map(M=>{const A=`timewheel-minutes-${M||""}`;if(!M)return(0,c.jsx)(he,{},A);const D=`${e}:${M} ${n}`,k=!u&&q(M)===t||u===M,v=g(D),H=k?0:-1,Y={role:"spinbutton","aria-valuenow":q(M),"aria-valuetext":`${M} minutes`,"aria-label":`${M} minutes`,"aria-valuemin":1,"aria-valuemax":59,"aria-disabled":v||y||C,onKeyDown:k?l:void 0,innerRef:k?T:void 0},b={isCurrentListItem:k,isDisabled:v};return(0,c.jsx)(he,{isCurrentListItem:k,selected:q(M)===t,children:(0,c.jsx)(ze,{...b,"data-testid":V.TIMEWHEEL[k?"CURRENT_MINUTE":"MINUTE"],selected:u.length===2&&q(M)===t,onClick:O=>i(M,O),tabIndex:H,type:"button",...Y,getOwnerProps:f,readOnly:y||C,children:M})},A)}),(0,c.jsx)(he,{children:(0,c.jsx)($e,{"aria-label":"add one minute",buttonType:"raw",size:"m",onClick:a,innerRef:h,"data-testid":V.TIMEWHEEL.NEXT_MINUTE,tabIndex:-1,"aria-disabled":y||C,type:"button",getOwnerProps:f,children:(0,c.jsx)(Et.A,{color:L})})})]})};var vs=null;const To=()=>{const{props:{pickerFooterMsg:e,hasError:t,readOnly:n,applyAriaDisabled:o},getProps:s,isWithCalendarToo:a}=(0,r.useContext)(z);return!a&&e!==void 0&&t?(0,c.jsxs)(fo,{role:"alert","data-testid":V.FOOTERS.TIMEWHEEL,getOwnerProps:s,readOnlyStyles:n||o,children:[(0,c.jsx)(pt.A,{width:8,height:8,color:["danger","900"],style:{marginRight:"0.5rem",marginBottom:"2px"}}),e]}):null},Ct=r.memo(()=>{const{isControllerOnly:e,hours:t,minutes:n,meridiem:o,getProps:s,props:{readOnly:a,applyAriaDisabled:i}}=(0,r.useContext)(z);return(0,c.jsxs)(mo,{isControllerOnly:e,"data-testid":V.CONTROLLER_COMPONENT.TIMEWHEEL,getOwnerProps:s,role:"region","aria-label":"timewheel",children:[(0,c.jsx)(po,{"data-testid":V.TIMEWHEEL.HEADER_LABEL,getOwnerProps:s,children:`${t||"__"}:${n||"__"} ${o||"__"}`}),(0,c.jsxs)(ho,{children:[(0,c.jsx)("div",{children:"H"}),(0,c.jsx)("div",{children:"M"}),(0,c.jsx)("div",{children:"A"})]}),(0,c.jsxs)(go,{readOnlyStyles:a||i,children:[(0,c.jsx)(yo,{}),(0,c.jsx)(Do,{}),(0,c.jsx)(Co,{})]}),(0,c.jsx)(To,{})]})}),Mo=()=>{const{props:{pickerFooterMsg:e,hasError:t,readOnly:n,applyAriaDisabled:o},getProps:s}=(0,r.useContext)(z);return e!==void 0&&t?(0,c.jsxs)(oo,{role:"alert","data-testid":V.FOOTERS.CALENDAR_TIMEWHEEL,getOwnerProps:s,readOnlyStyles:n||o,children:[(0,c.jsx)(pt.A,{width:8,height:8,color:["danger","900"],style:{marginRight:"0.5rem",marginBottom:"2px"}}),e]}):null},Yt=()=>{const{getProps:e,props:{readOnly:t,applyAriaDisabled:n}}=(0,r.useContext)(z);return(0,c.jsxs)(no,{"data-testid":V.CONTROLLER_COMPONENT.CALENDAR_TIMEWHEEL,getOwnerProps:e,readOnlyStyles:t||n,children:[(0,c.jsx)(ro,{}),(0,c.jsx)(Ct,{}),(0,c.jsx)(Mo,{})]})},Ao=(0,K.I)(gt.B2,{name:ee,slot:oe.CONTEXTUAL_MENU.CALENDAR_TIMEWHEEL})``,Io=()=>{const{referenceElement:e,closeCalendar:t,isControllerOnly:n}=(0,r.useContext)(ct),{getProps:o}=(0,r.useContext)(z);return n?(0,c.jsx)(Yt,{}):e?(0,c.jsx)(Ao,{showPopover:!0,"data-testid":V.CONTEXTUAL_MENU.CALENDAR_TIMEWHEEL,referenceElement:e,withoutArrow:!0,onClickOutside:t,getOwnerProps:o,"aria-label":"calendar header",role:"dialog",children:(0,c.jsx)(Yt,{})}):null},Ro=()=>{const{pickerButtonRef:e,props:{type:t,onPickerOpen:n,onPickerClose:o,disabled:s,applyAriaDisabled:a},withAnyInputs:i,isWithTimeInputs:l,ariaCurrentValueForInputs:d,trackFocusFirstSegment:m,trackFocusMeridiemInput:h,trackFocusYearInput:g,trackFocusPicker:u,latestInteractionRegion:p,currFocusDescriber:E}=(0,r.useContext)(z),{handleToggleCalendar:f}=(0,r.useContext)(Re),{handleToggleTimePicker:y}=(0,r.useContext)(ke),[C,T]=(0,r.useState)(!1),x=(0,r.useCallback)(()=>{m()},[m]),L=(0,r.useCallback)(b=>{const{key:O}=b;["Home","End"].includes(O)&&b.preventDefault(),["Home","End"].includes(O)&&b.stopPropagation(),O==="Home"&&x(),O==="Backspace"&&i&&(l?h():g())},[l,x,h,g,i]),[M,A]=(0,r.useState)(null),D=(0,r.useCallback)(()=>{s||(T(!0),n(),setTimeout(()=>f()),setTimeout(()=>y()))},[f,y,n,s]),_=(0,r.useCallback)(()=>{T(!1),o(),setTimeout(()=>f()),setTimeout(()=>y())},[f,y,o]),k=(0,r.useCallback)(()=>{C?_():D()},[_,D,C]),v=(0,r.useCallback)(b=>{e.current=b,A(b),p==="picker-icon"&&E==="datetime-picker-icon"&&b?.focus()},[E,p,e]),H=(0,r.useCallback)(b=>{const{key:O}=b;O==="Escape"&&(_(),u())},[_,u]),Y=(0,r.useMemo)(()=>t===de.DATE_TIME.CONTROLLER_ONLY,[t]);return(0,r.useMemo)(()=>({referenceElement:M,showCalendarWithTimeWheel:C,closeCalendar:_,handleToggleCalendarWithTimeWheel:k,handleSetTriggerRef:v,handleMenuWrapperKeyDown:H,handlePickerIconKeyDown:L,isControllerOnly:Y,disabled:s,applyAriaDisabled:a,ariaCurrentValueForInputs:d}),[M,C,_,k,v,H,L,Y,s,a,d])},bo=()=>{const{handleToggleCalendar:e,handleSetTriggerRef:t,handlePickerIconKeyDown:n}=(0,r.useContext)(Re),{props:{disabled:o,tabIndex:s},getProps:a,ariaCurrentValueForInputs:i}=(0,r.useContext)(z);return(0,r.useMemo)(()=>(0,c.jsx)(Sr,{"aria-label":`date picker context menu trigger, ${i}`,buttonType:"icon",size:xe.GO.M,innerRef:t,tabIndex:s,onClick:e,onKeyDown:n,"data-testid":V.PICKER_ICONS.CALENDAR,disabled:o,type:"button",getOwnerProps:a,children:(0,c.jsx)($t,{color:o?["neutral","500"]:["brand-primary","800"]})}),[i,t,s,e,n,o,a])},_o=(0,K.I)(gt.B2,{name:ee,slot:oe.CONTEXTUAL_MENU.CALENDAR})``,wo=()=>{const{isControllerOnly:e,getProps:t}=(0,r.useContext)(z),{referenceElement:n,closeCalendar:o}=(0,r.useContext)(Re);return e?(0,c.jsx)(ht,{}):n?(0,c.jsx)(_o,{showPopover:!0,"data-testid":V.CONTEXTUAL_MENU.CALENDAR,referenceElement:n,withoutArrow:!0,onClickOutside:o,getOwnerProps:t,"aria-label":"calendar header",role:"dialog",children:(0,c.jsx)(ht,{})}):null},No=()=>{const{dateStringFromProps:e,emptyPickerStartingMonth:t}=(0,r.useContext)(z);return(0,r.useMemo)(()=>{const{month:n,year:o}=Ee(e),{month:s,year:a}=Ee(t),i=Number.parseInt(s,10),l=Number.parseInt(a,10),d=n===""||n.length!==2?i-1:Number.parseInt(n,10)-1;return{year:o===""?l:Number.parseInt(o,10),month:d}},[e,t])};function xo(e,t){const n=[];for(let o=0;o<e.length;o+=t){const s=e.slice(o,o+t);n.push(s)}return n}const Dt=(e,t)=>{const n=gn(e,t),o=Pe(n[0].day,{daysToSum:-1}),s={day:o,dayAsString:Me(o),isPrevMonthDay:!0,isNextMonthDay:!1,isCurrMonthDay:!1,dayBtnRef:(0,r.createRef)(),isHidden:!0},a=Pe(n[n.length-1].day,{daysToSum:1}),i={day:a,dayAsString:Me(a),isPrevMonthDay:!1,isNextMonthDay:!0,isCurrMonthDay:!1,dayBtnRef:(0,r.createRef)(),isHidden:!0};return[s,...n,i]},ko=()=>{const{month:e,year:t}=No(),[n,o]=(0,r.useState)(e),[s,a]=(0,r.useState)(t),i=(0,r.useRef)([]),l=(0,r.useCallback)(()=>{o(e),a(t)},[e,t]);(0,r.useEffect)(()=>{o(e)},[e]),(0,r.useEffect)(()=>{a(t)},[t]);const d=(0,r.useMemo)(()=>Dt(n,s),[n,s]);i.current=d;const m=(0,r.useCallback)(()=>{const{year:y}=Ue({month:n,year:s},{yearsToSum:-1});a(y)},[n,s]),h=(0,r.useCallback)(()=>{const{month:y,year:C}=Ue({month:n,year:s},{monthsToSum:-1});o(y),a(C),i.current=Dt(y,C)},[n,s]),g=(0,r.useCallback)(()=>{const{month:y,year:C}=Ue({month:n,year:s},{monthsToSum:1});o(y),a(C),i.current=Dt(y,C)},[n,s]),u=(0,r.useCallback)(()=>{const{year:y}=Ue({month:n,year:s},{yearsToSum:1});a(y)},[n,s]),{invisibleFirstDay:p,daysMatrixByWeekday:E,invisibleLastDay:f}=(0,r.useMemo)(()=>{const[y,...C]=[...d],T=C.pop();return{invisibleFirstDay:y,daysMatrixByWeekday:xo(C,7),invisibleLastDay:T}},[d]);return(0,r.useMemo)(()=>({currentMonth:n,currentYear:s,daysArray:d,invisibleFirstDay:p,daysMatrixByWeekday:E,invisibleLastDay:f,handlePrevYear:m,handlePrevMonth:h,handleNextMonth:g,handleNextYear:u,daysArraysRef:i,resetMonthYear:l}),[n,s,d,E,g,u,h,m,p,f,l])},Oo=()=>{const{dateStringFromProps:e}=(0,r.useContext)(z);return(0,r.useMemo)(()=>Ve(e),[e])},Bt={startFocusedYear:null,startFocusedDay:null,startFocusedMonth:null,startFocusedDate:null},Lo=()=>{const{onCalendarOpenFocusedDay:e}=(0,r.useContext)(z),t=Oo(),{month:n,day:o,year:s}=t?ye(t):{month:null,day:null,year:null},a=n!==null&&o!==null&&s!==null&&rt(n,s,o),i=!e,l=!a&&!i;return(0,r.useMemo)(()=>{const d={...Bt};if(a)d.startFocusedMonth=n,d.startFocusedDay=o,d.startFocusedYear=s,d.startFocusedDate=t;else{if(i)return Bt;if(l){const{month:m,day:h,year:g}=Ee(e),u=q(m),p=q(h),E=q(g);u!==-1&&p!==-1&&E!==-1&&rt(u-1,E,p)&&(d.startFocusedMonth=u,d.startFocusedDay=p,d.startFocusedYear=E,d.startFocusedDate=new Date(E,u-1,p))}}return d},[t,s,o,n,a,i,e,l])},vo=({currentDisplayedMonthLogic:e})=>{const{daysArraysRef:t,daysArray:n}=e,{startFocusedDate:o}=Lo(),[s,a]=(0,r.useState)(void 0),i=(0,r.useMemo)(()=>{let h;return s?h=n.find(({day:g})=>We(g,s.day)):o&&(h=n.find(({day:g})=>We(g,o))),h},[n,o,s]),l=(0,r.useCallback)(h=>{const g=t.current.find(({day:u})=>We(u,h.day));i!==g&&a(g)},[t,i]),d=(0,r.useCallback)(h=>{const g=t.current.find(({day:u})=>We(u,h));i!==g&&a(g)},[t,i]),m=(0,r.useCallback)(()=>{a(void 0)},[]);return(0,r.useMemo)(()=>({focusedDay:i,resetFocusedDayToStartDate:m,handleFocusMetaDay:l,handleFocusMetaDayByDay:d}),[i,m,l,d])},Po=({focusLogic:e,showCalendar:t,setShowCalendar:n,resetMonthYear:o})=>{const{focusedDay:s,resetFocusedDayToStartDate:a}=e,{props:{onPickerOpen:i,onPickerClose:l,disabled:d},pickerButtonRef:m,trackFocusCalendarMetafocusedDay:h,trackFocusCalendarPrevMonth:g,trackFocusPicker:u,latestInteractionRegion:p,currFocusDescriber:E}=(0,r.useContext)(z),[f,y]=(0,r.useState)(null),C=(0,r.useCallback)(()=>{i()},[i]),T=(0,r.useCallback)(()=>{d||(s?h():setTimeout(()=>g()),n(!0),C())},[d,s,C,n,h,g]),x=(0,r.useCallback)(()=>{n(!1),l(),a(),u(),o()},[n,l,a,u,o]),L=(0,r.useCallback)(()=>{!t?T():x()},[x,T,t]),M=(0,r.useCallback)(D=>{m.current=D,y(D),p==="picker-icon"&&E==="date-picker-icon"&&D?.focus()},[E,p,m]),A=(0,r.useCallback)(D=>{const{key:_}=D;_==="Escape"&&(x(),u())},[x,u]);return(0,r.useMemo)(()=>({referenceElement:f,closeCalendar:x,handleSetTriggerRef:M,handleToggleCalendar:L,handleMenuWrapperKeyDown:A}),[x,A,M,L,f])},So=({currentDisplayedMonthLogic:e,focusLogic:t})=>{const{isControllerOnly:n,isWithTimeWheelToo:o,withAnyInputs:s,isWithTimeInputs:a,isWithDateInputs:i,trackFocusFirstSegment:l,trackFocusMeridiemInput:d,trackFocusYearInput:m,trackFocusCalendarPrevMonth:h,trackFocusCalendarNextMonth:g,trackFocusCalendarNextYear:u,trackFocusCalendarPrevYear:p,trackFocusTimewheelCurrMeridiem:E,trackFocusCalendarMetafocusedDay:f,trackFocusTimewheelCurrHour:y}=(0,r.useContext)(z),{focusedDay:C,handleFocusMetaDay:T,handleFocusMetaDayByDay:x}=t,{daysArray:L,handlePrevMonth:M,handleNextMonth:A}=e,D=(0,r.useCallback)(()=>{const U=C?L.some(({day:j})=>Ot(j,C.day)):!1;if(!C||!U){const j=L.find(Z=>Z.isCurrMonthDay);j&&T(j)}f()},[L,C,T,f]),_=(0,r.useCallback)(()=>{h()},[h]),k=(0,r.useCallback)(()=>{o?E():D()},[o,E,D]),v=(0,r.useCallback)(()=>{l()},[l]),H=(0,r.useCallback)(U=>{const{key:j}=U;["Home","End"].includes(j)&&U.preventDefault(),["Home","End"].includes(j)&&U.stopPropagation(),j==="Home"&&v(),j==="Backspace"&&s&&(a?d():i&&m())},[i,a,v,d,m,s]),Y=!1,b=(0,r.useCallback)((U,j)=>{let Z;const{day:le}=j,{key:N,shiftKey:w}=U;if(["Home","End","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(N)&&U.preventDefault(),["Home","End","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(N)&&U.stopPropagation(),N==="ArrowUp"&&(Z=Pe(le,{daysToSum:-7})),N==="ArrowDown"&&(Z=Pe(le,{daysToSum:7})),N==="ArrowLeft"&&(Z=Pe(le,{daysToSum:-1})),N==="ArrowRight"&&(Z=Pe(le,{daysToSum:1})),Z){if(!Ot(le,Z)&&Y)return;an(le,Z)&&M(),ln(le,Z)&&A(),x(Z)}N==="Home"&&_(),N==="End"&&k(),N==="Tab"&&!w&&n===!1&&!o&&(U.preventDefault(),h()),N==="Tab"&&!w&&n===!1&&o&&(U.preventDefault(),y())},[x,A,M,n,o,k,_,Y,h,y]),O=(0,r.useCallback)(U=>{const{key:j,shiftKey:Z}=U;j==="Tab"&&(U.preventDefault(),Z?g():u()),j==="Home"&&(_(),U.preventDefault()),j==="End"&&(k(),U.preventDefault())},[k,_,g,u]),I=(0,r.useCallback)(U=>{const{key:j,shiftKey:Z}=U;j==="Tab"&&(Z?n||(U.preventDefault(),o?E():D()):(U.preventDefault(),g())),j==="Home"&&(_(),U.preventDefault()),j==="End"&&(k(),U.preventDefault())},[n,o,k,_,g,E,D]),W=(0,r.useCallback)(U=>{const{key:j,shiftKey:Z}=U;j==="Tab"&&(U.preventDefault(),Z?h():p()),j==="Home"&&(_(),U.preventDefault()),j==="End"&&(k(),U.preventDefault())},[k,_,h,p]),ae=(0,r.useCallback)(U=>{const{key:j,shiftKey:Z}=U;j==="Tab"&&(U.preventDefault(),Z&&p(),Z||D()),j==="Home"&&(_(),U.preventDefault()),j==="End"&&(k(),U.preventDefault())},[D,p,_,k]);return(0,r.useMemo)(()=>({handleDayOnKeyDown:b,handlePrevYearKeyDown:O,handlePrevMonthKeyDown:I,handleNextMonthKeyDown:W,handleNextYearKeyDown:ae,handlePickerIconKeyDown:H}),[b,O,I,W,ae,H])},Ho=()=>{const{trackFocusCalendarPrevYear:e,trackFocusCalendarNextYear:t,trackFocusCalendarPrevMonth:n,trackFocusCalendarNextMonth:o}=(0,r.useContext)(z),[s,a]=(0,r.useState)(!1),i=(0,r.useCallback)(()=>{e()},[e]),l=(0,r.useCallback)(()=>{n()},[n]),d=(0,r.useCallback)(()=>{o()},[o]),m=(0,r.useCallback)(()=>{t()},[t]),h=ko(),g=vo({currentDisplayedMonthLogic:h,showCalendar:s}),u=Po({focusLogic:g,showCalendar:s,setShowCalendar:a,resetMonthYear:h.resetMonthYear}),p=So({currentDisplayedMonthLogic:h,focusLogic:g});return(0,r.useMemo)(()=>({showCalendar:s,setShowCalendar:a,onPrevYearFocus:i,onPrevMonthFocus:l,onNextMonthFocus:d,onNextYearFocus:m,...h,...g,...u,...p}),[s,i,l,d,m,h,g,u,p])},Kt=({children:e})=>{const t=Ho();return(0,c.jsx)(Re.Provider,{value:t,children:e})},Fo=()=>{const{showCalendar:e,handleMenuWrapperKeyDown:t}=(0,r.useContext)(Re),{isControllerOnly:n}=(0,r.useContext)(z);return(0,c.jsxs)(c.Fragment,{children:[n?null:(0,c.jsx)(bo,{}),n||e?(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{onKeyDown:t,children:(0,c.jsx)(wo,{})})}):null]})},$o=()=>(0,c.jsx)(Kt,{children:(0,c.jsx)(Fo,{})});var Wo=(0,Ge.w)({paths:["M10 1c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm0 17c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z","M10 6H9v5h6v-1h-5z"],height:20,width:20});const Uo=()=>{const{handleSetTriggerRef:e,handleToggleTimePicker:t,handlePickerIconKeyDown:n}=(0,r.useContext)(ke),{props:{disabled:o,tabIndex:s},getProps:a,ariaCurrentValueForInputs:i}=(0,r.useContext)(z);return(0,r.useMemo)(()=>(0,c.jsx)(uo,{"aria-label":`time picker context menu trigger, ${i}`,buttonType:"icon",size:xe.GO.M,innerRef:e,tabIndex:s,onClick:t,onKeyDown:n,"data-testid":V.PICKER_ICONS.TIMEWHEEL,disabled:o,type:"button",getOwnerProps:a,children:(0,c.jsx)(Wo,{color:o?["neutral","500"]:["brand-primary","800"]})}),[i,o,a,n,e,t,s])},jo=(0,K.I)(gt.B2,{name:ee,slot:oe.CONTEXTUAL_MENU.TIMEWHEEL})``,Yo=()=>{const{referenceElement:e,closeTimePicker:t}=r.useContext(ke),{isControllerOnly:n,getProps:o}=r.useContext(z);return n?(0,c.jsx)(Ct,{}):e?(0,c.jsx)(jo,{showPopover:!0,"data-testid":V.CONTEXTUAL_MENU.TIMEWHEEL,referenceElement:e,withoutArrow:!0,onClickOutside:t,getOwnerProps:o,"aria-label":"time wheel header",role:"dialog",children:(0,c.jsx)(Ct,{})}):null},Bo=()=>{const{pickerButtonRef:e,props:{onPickerClose:t,onPickerOpen:n,disabled:o},isWithCalendarToo:s,trackFocusTimewheelCurrHour:a,trackFocusPicker:i,latestInteractionRegion:l,currFocusDescriber:d}=(0,r.useContext)(z),[m,h]=(0,r.useState)(!1),[g,u]=(0,r.useState)(null),p=(0,r.useCallback)(()=>{h(!1),t()},[t]),E=(0,r.useCallback)(()=>{o||h(C=>(C?t():(n(),s||a()),!C))},[o,s,t,n,a]),f=(0,r.useCallback)(C=>{e.current=C,u(C),l==="picker-icon"&&d==="time-picker-icon"&&C?.focus()},[d,l,e]),y=(0,r.useCallback)(C=>{const{key:T}=C;T==="Escape"&&(p(),i())},[p,i]);return(0,r.useMemo)(()=>({referenceElement:g,showTimePicker:m,setShowTimePicker:h,handleToggleTimePicker:E,handleSetTriggerRef:f,handleMenuWrapperKeyDown:y,closeTimePicker:p}),[p,y,f,E,g,m])},Vt=()=>{const{props:{disabled:e,readOnly:t,applyAriaDisabled:n},hours:o,minutes:s,meridiem:a,withAnyRightController:i,withAnyPicker:l,withClearBtn:d,isWithDateInputs:m,autoFocusHourInput:h,handleChangeHours:g,handleChangeMinutes:u,handleChangeMeridiem:p,minutesInterval:E,trackFocusFirstSegment:f,trackFocusLastSegment:y,trackFocusHourInput:C,trackFocusMinuteInput:T,trackFocusMeridiemInput:x,trackFocusClearBtn:L,trackFocusPicker:M,trackFocusYearInput:A}=(0,r.useContext)(z),D=e||n||t,_=(0,r.useCallback)(()=>{f()},[f]),k=(0,r.useCallback)(()=>{y()},[y]),v=(0,r.useCallback)(()=>{C()},[C]),H=(0,r.useCallback)(N=>{if(D)return;let w=N?.target?.value;Number.parseInt(w,10)>1&&(w=re(w,2)),g(w,N),w.length===2&&T()},[g,D,T]),Y=(0,r.useCallback)(N=>{const{key:w,ctrlKey:P,metaKey:$}=N,G=Number.parseInt(o,10);if(["Home","End","ArrowUp","ArrowDown",":"].includes(w)&&N.preventDefault(),["Home","End","ArrowUp","ArrowDown",":"].includes(w)&&N.stopPropagation(),w==="Home"&&_(),w==="End"&&k(),(P||$)&&w===";"&&y(),!D){if(w==="ArrowUp"||w==="ArrowDown"){const S=Number.isNaN(G)?0:G;let J;w==="ArrowUp"?J=S+1<=12?S+1:S:J=S-1>1?S-1:1,J=re(`${J}`,2),g(J,N)}if(!Number.isNaN(G)&&w===":"){let S=re(`${G}`,2);S==="00"&&(S="01"),g(S,N),S.length===2&&T()}w==="Backspace"&&N.target===N.currentTarget&&m&&N.target.selectionStart===0&&N.target.selectionEnd===0&&(N.preventDefault(),A())}},[o,_,k,y,D,m,g,T,A]),b=(0,r.useCallback)(N=>{const w=N?.target?.value;w==="0"?g("01",N,{isAutomaticFillTrigger:!0}):w.length>0&&w.length<2&&g(re(w,2),N,{isAutomaticFillTrigger:!0})},[g]),O=(0,r.useCallback)(()=>{T()},[T]),I=(0,r.useCallback)(N=>{if(D)return;let w=N?.target?.value;Number.parseInt(w,10)>6&&(w=re(w,2)),u(w,N),w.length===2&&x()},[u,D,x]),W=(0,r.useCallback)(N=>{const{key:w,ctrlKey:P,metaKey:$}=N,G=Number.parseInt(s,10);if(["Home","End","ArrowUp","ArrowDown"," "].includes(w)&&N.preventDefault(),["Home","End","ArrowUp","ArrowDown"," "].includes(w)&&N.stopPropagation(),w==="Home"&&_(),w==="End"&&k(),(P||$)&&w===";"&&y(),!D){if(w==="ArrowUp"||w==="ArrowDown"){const S=Number.isNaN(G)?0:G;let J;w==="ArrowUp"?J=S+E<=59?S+E:S:J=S-E>0?S-E:0,J=re(`${J}`,2),u(J,N)}if(!Number.isNaN(G)&&w===" "){const S=re(`${G}`,2);u(S,N),S.length===2&&x()}w==="Backspace"&&N.target===N.currentTarget&&N.target.selectionStart===0&&N.target.selectionEnd===0&&(N.preventDefault(),C())}},[s,_,k,y,D,E,u,x,C]),ae=(0,r.useCallback)(N=>{const w=N?.target?.value;w.length>0&&w.length<2&&u(re(w,2),N,{isAutomaticFillTrigger:!0})},[u]),U=(0,r.useCallback)(()=>{x()},[x]),j=(0,r.useCallback)(N=>{if(D)return;let w=N?.target?.value?.toUpperCase?.();w.length===1&&(a===""?w=`${w}M`:w=""),p(w,N),w.length===2&&i&&(d?L():l&&M())},[D,a,p,i,d,L,l,M]),Z=(0,r.useCallback)(N=>{const{key:w,ctrlKey:P,metaKey:$}=N;["Home","End","ArrowUp","ArrowDown"].includes(w)&&N.preventDefault(),["Home","End","ArrowUp","ArrowDown"].includes(w)&&N.stopPropagation(),w==="Home"&&_(),w==="End"&&k(),(P||$)&&w===";"&&y(),!D&&(w==="ArrowUp"&&a!=="AM"&&p("AM",N),w==="ArrowDown"&&a!=="PM"&&p("PM",N),w==="Backspace"&&(N.target===N.currentTarget&&N.target.selectionStart===0&&N.target.selectionEnd===0?(N.preventDefault(),T()):a?.length===2&&p("",N)))},[_,k,y,D,a,p,T]),le=(0,r.useCallback)(N=>{const w=N?.target?.value?.toUpperCase?.();w.length===1&&p(`${w}M`,N,{isAutomaticFillTrigger:!0})},[p]);return(0,r.useMemo)(()=>({autoFocusHourInput:h,disabled:e,applyAriaDisabled:n,handleChangeHours:g,onHoursFocus:v,onHoursChange:H,handleChangeMinutes:u,onMinutesFocus:O,onMinutesChange:I,handleChangeMeridiem:p,onMeridiemFocus:U,onMeridiemChange:j,onHoursBlur:b,onMinutesBlur:ae,onMeridiemBlur:le,onHoursKeyDown:Y,onMinutesKeyDown:W,onMeridiemKeyDown:Z}),[h,e,n,g,v,H,u,O,I,p,U,j,b,ae,le,Y,W,Z])},Tt=["01","02","03","04","05","06","07","08","09","10","11","12"],Ko=1,Vo=1,Go=(e=1)=>{const t=Math.ceil(60/e);return new Array(t).fill("_").map((n,o)=>re(`${o*e}`,2))},Xo=()=>{const{minutesInterval:e,onTimeWheelOpenStartingTime:t,hours:n,minutes:o,meridiem:s,props:{readOnly:a,applyAriaDisabled:i,disabled:l}}=(0,r.useContext)(z),{handleChangeHours:d,handleChangeMinutes:m,handleChangeMeridiem:h}=Vt(),{startingHours:g,startingMinutes:u,startingMeridiem:p}=(0,r.useMemo)(()=>{const I=bt(t);return{startingHours:I.hours,startingMinutes:I.minutes,startingMeridiem:I.meridiem}},[t]),E=(0,r.useMemo)(()=>{const I=q(n);if(n&&I!==-1)return I;const W=q(g);return W===-1?1:W},[n,g]),f=(0,r.useMemo)(()=>{const I=q(o);if(o&&I!==-1)return I;const W=q(u);return W===-1?0:W},[o,u]),y=(0,r.useMemo)(()=>s!==""?s:p!==""?p:"AM",[s,p]),C=(0,r.useMemo)(()=>Go(e),[e]),T=(0,r.useMemo)(()=>Math.floor(f/e),[f,e]),x=(0,r.useMemo)(()=>Math.floor(E/Ko)-Vo,[E]),L=(0,r.useMemo)(()=>{const I=[];return x>=1?I.push(Tt[x-1]):I.push(null),I.push(Tt[x]),x<=11?I.push(Tt[x+1]):I.push(null),I},[x]),M=(0,r.useMemo)(()=>{const I=[];return T>=1?I.push(C[T-1]):I.push(null),I.push(C[T]),T<C.length?I.push(C[T+1]):I.push(null),I},[T,C]),A=(0,r.useCallback)((I,W)=>{a||i||l||d(I,W)},[a,i,l,d]),D=(0,r.useCallback)((I,W)=>{const ae=E+I;ae>0&&ae<=12&&d(re(`${ae}`,2),W)},[E,d]),_=(0,r.useCallback)(I=>{a||i||l||D(-1,I)},[a,i,l,D]),k=(0,r.useCallback)(I=>{a||i||l||D(1,I)},[a,i,l,D]),v=(0,r.useCallback)((I,W)=>{a||i||l||m(I,W)},[a,i,l,m]),H=(0,r.useCallback)((I,W)=>{const ae=f+I;ae>=0&&ae<=59&&m(re(`${ae}`,2),W)},[f,m]),Y=(0,r.useCallback)(I=>{a||i||l||H(-e,I)},[a,i,l,H,e]),b=(0,r.useCallback)(I=>{a||i||l||H(e,I)},[a,i,l,H,e]),O=(0,r.useCallback)((I,W)=>{a||i||l||h(I,W)},[a,i,l,h]);return(0,r.useMemo)(()=>({currHourNum:E,visibleHours:L,handlePrevHour:_,handleNextHour:k,handleTimeWheelBtnChangeHours:A,currMinuteNum:f,visibleMinutes:M,handlePrevMinute:Y,handleNextMinute:b,handleTimeWheelBtnChangeMinutes:v,handleTimeWheelBtnChangeMeridiem:O,currMeridiem:y}),[E,f,y,k,b,_,Y,A,O,v,L,M])},zo=({currentDisplayedTimeWheelLogic:e})=>{const{handlePrevHour:t,handleNextHour:n,handlePrevMinute:o,handleNextMinute:s,handleTimeWheelBtnChangeMeridiem:a}=e,{withAnyInputs:i,isWithTimeInputs:l,isWithDateInputs:d,isWithCalendarToo:m,isControllerOnly:h,props:{readOnly:g,applyAriaDisabled:u,disabled:p},trackFocusCalendarPrevMonth:E,trackFocusTimewheelCurrHour:f,trackFocusTimewheelCurrMinute:y,trackFocusTimewheelCurrMeridiem:C,trackFocusFirstSegment:T,trackFocusMeridiemInput:x,trackFocusYearInput:L,trackFocusCalendarMetafocusedDay:M}=(0,r.useContext)(z),A=(0,r.useCallback)(()=>{m?E():f()},[m,E,f]),D=(0,r.useCallback)(()=>{C()},[C]),_=(0,r.useCallback)(()=>{T()},[T]),k=(0,r.useCallback)(b=>{const{key:O}=b;["Home","End"].includes(O)&&b.preventDefault(),["Home","End"].includes(O)&&b.stopPropagation(),O==="Home"&&_(),O==="Backspace"&&i&&(l?x():d&&L())},[d,l,_,x,L,i]),v=(0,r.useCallback)(b=>{const{key:O,shiftKey:I}=b;["Home","End","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(O)&&b.preventDefault(),["Home","End","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(O)&&b.stopPropagation();let W=!1;if(O==="ArrowUp"){if(g||u||p)return;t(b),W=!0}if(O==="ArrowDown"){if(g||u||p)return;n(b),W=!0}O==="ArrowRight"&&y(),O==="Home"&&A(),O==="End"&&D(),W&&f(),h||O==="Tab"&&I&&!m&&(b.preventDefault(),C()),O==="Tab"&&I&&m&&M()},[A,D,f,h,m,g,u,p,t,n,y,C,M]),H=(0,r.useCallback)(b=>{const{key:O}=b;["Home","End","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(O)&&b.preventDefault(),["Home","End","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(O)&&b.stopPropagation();let I=!1;if(O==="ArrowUp"){if(g||u||p)return;o(b),I=!0}if(O==="ArrowDown"){if(g||u||p)return;s(b),I=!0}O==="ArrowLeft"&&f(),O==="ArrowRight"&&C(),O==="Home"&&A(),O==="End"&&D(),I&&y()},[A,D,y,g,u,p,o,s,f,C]),Y=(0,r.useCallback)(b=>{const{key:O,shiftKey:I}=b;["Home","End","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(O)&&b.preventDefault(),["Home","End","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(O)&&b.stopPropagation();let W=!1;if(O==="ArrowUp"){if(g||u||p)return;a("AM",b),W=!0}if(O==="ArrowDown"){if(g||u||p)return;a("PM",b),W=!0}O==="ArrowLeft"&&y(),O==="Home"&&A(),O==="End"&&D(),W&&C(),h||O==="Tab"&&!I&&(b.preventDefault(),m?E():f())},[A,D,C,h,g,u,p,a,y,m,E,f]);return(0,r.useMemo)(()=>({handleCurrHourOnKeyDown:v,handleCurrMinutesOnKeyDown:H,handleCurrMeridiemOnKeyDown:Y,handlePickerIconKeyDown:k}),[v,Y,H,k])},Jo=()=>{const e=Xo(),t=Bo(),n=zo({currentDisplayedTimeWheelLogic:e});return(0,r.useMemo)(()=>({...e,...t,...n}),[e,t,n])},Gt=({children:e})=>{const t=Jo();return(0,c.jsx)(ke.Provider,{value:t,children:e})},Zo=()=>{const{showTimePicker:e,handleMenuWrapperKeyDown:t}=(0,r.useContext)(ke),{isControllerOnly:n}=(0,r.useContext)(z);return(0,c.jsxs)(c.Fragment,{children:[n?null:(0,c.jsx)(Uo,{}),n||e?(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{onKeyDown:t,children:(0,c.jsx)(Yo,{})})}):null]})},Qo=()=>(0,c.jsx)(Gt,{children:(0,c.jsx)(Zo,{})}),qo=()=>{const e=Ro(),{showCalendarWithTimeWheel:t,isControllerOnly:n,handleMenuWrapperKeyDown:o}=e;return(0,c.jsxs)(ct.Provider,{value:e,children:[n?null:(0,c.jsx)(so,{}),n||t?(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{onKeyDown:o,children:(0,c.jsx)(Io,{})})}):null]})},es=()=>(0,c.jsx)(Kt,{children:(0,c.jsx)(Gt,{children:(0,c.jsx)(qo,{})})}),ts=()=>{const{hideDatePicker:e,hideTimePicker:t,hideDateTimePicker:n,isControllerOnly:o,props:{hasError:s}}=r.useContext(z);return(0,c.jsxs)(ur,{hasError:s,isControllerOnly:o,children:[!e&&t&&n?(0,c.jsx)($o,{}):null,e&&!t&&n?(0,c.jsx)(Qo,{}):null,e&&t&&!n?(0,c.jsx)(es,{}):null]})},ns=/^[0-9]+$/,rs=e=>{if(e==="")return!1;const t=ns.test(e);return e.length>2||e==="00"||!t||Number.parseInt(e,10)>12},os=r.memo(({onChange:e,onBlur:t,onFocus:n,onKeyDown:o,value:s,disabled:a,applyAriaDisabled:i,placeholder:l,ariaCurrentValueForInputs:d,contextRef:m,autoFocusHourInput:h,isFocused:g,getProps:u,tabIndex:p,readOnly:E})=>{const f=(0,r.useCallback)(y=>{if(E||i||a||rs(y.target.value)){y.preventDefault();return}e(y)},[i,a,e,E]);return(0,c.jsx)(ir,{autoFocus:h,onChange:f,onBlur:t,onFocus:n,onKeyDown:o,value:s,innerRef:y=>{m.current=y,g&&y?.focus?.()},tabIndex:p,placeholder:l,"data-testid":V.TIME_INPUTS.HOUR,"aria-label":`hours input field ${d}`,disabled:a,"aria-disabled":i,getOwnerProps:u,readOnly:E})}),ss=/^[0-9]+$/,as=e=>{if(e==="")return!1;const t=ss.test(e);return e.length>2||!t||Number.parseInt(e,10)>60},is=r.memo(({onChange:e,onBlur:t,onFocus:n,onKeyDown:o,value:s,disabled:a,applyAriaDisabled:i,placeholder:l,ariaCurrentValueForInputs:d,contextRef:m,isFocused:h,getProps:g,tabIndex:u,readOnly:p})=>{const E=(0,r.useCallback)(f=>{if(p||i||a||as(f?.target?.value)){f.preventDefault();return}e(f)},[i,a,e,p]);return(0,c.jsx)(lr,{onChange:E,onBlur:t,onFocus:n,onKeyDown:o,value:s,innerRef:f=>{m.current=f,h&&f?.focus?.()},tabIndex:u,"data-testid":V.TIME_INPUTS.MINUTE,placeholder:l,"aria-label":`minutes input field ${d}`,disabled:a,"aria-disabled":i,getOwnerProps:g,readOnly:p})}),ls=["a","A","p","P"],cs=["m","M"],ds=e=>{if(e==="")return!1;const[t,n]=e.split(""),o=e.length<1&&!t||ls.includes(t),s=!n||cs.includes(n);return e.length>2||!o||!s},us=r.memo(({onChange:e,onBlur:t,onFocus:n,onKeyDown:o,value:s,disabled:a,applyAriaDisabled:i,placeholder:l,ariaCurrentValueForInputs:d,contextRef:m,isFocused:h,getProps:g,tabIndex:u,readOnly:p})=>{const E=(0,r.useCallback)(f=>{if(p||i||a||ds(f?.target?.value)){f.preventDefault();return}e(f)},[i,a,e,p]);return(0,c.jsx)(cr,{onChange:E,onBlur:t,onFocus:n,onKeyDown:o,value:s,innerRef:f=>{m.current=f,h&&f?.focus?.()},tabIndex:u,"data-testid":V.TIME_INPUTS.MERIDIEM,placeholder:l,"aria-label":`meridiem input field ${d}`,disabled:a,"aria-disabled":i,getOwnerProps:g,readOnly:p})}),ms=()=>{const{autoFocusHourInput:e,disabled:t,applyAriaDisabled:n,onHoursChange:o,onMinutesChange:s,onMeridiemChange:a,onHoursBlur:i,onMinutesBlur:l,onMeridiemBlur:d,onHoursFocus:m,onMeridiemFocus:h,onMinutesFocus:g,onHoursKeyDown:u,onMinutesKeyDown:p,onMeridiemKeyDown:E}=Vt(),{hours:f,minutes:y,meridiem:C,hourInputRef:T,minutesInputRef:x,meridiemInputRef:L,ariaCurrentValueForInputs:M,latestInteractionRegion:A,currFocusDescriber:D,getProps:_,props:{tabIndex:k,readOnly:v}}=(0,r.useContext)(z);return(0,c.jsxs)(Ce.Ay,{cols:[Ie.smallInputWidth,Ie.separatorWidth,Ie.smallInputWidth,Ie.separatorWidth,Ie.smallInputWidth],children:[(0,c.jsx)(Fe,{children:(0,c.jsx)(os,{value:f,onChange:o,onBlur:i,onFocus:m,onKeyDown:u,contextRef:T,tabIndex:k,placeholder:"HH",ariaCurrentValueForInputs:M,autoFocusHourInput:e,disabled:t,"aria-disabled":n,applyAriaDisabled:n,isFocused:A==="time-inputs"&&D==="hour-input",getProps:_,readOnly:v})}),(0,c.jsx)(rr,{alignItems:"center",children:":"}),(0,c.jsx)(Fe,{children:(0,c.jsx)(is,{value:y,onChange:s,onBlur:l,onFocus:g,onKeyDown:p,contextRef:x,tabIndex:k,placeholder:"MM",ariaCurrentValueForInputs:M,disabled:t,"aria-disabled":n,applyAriaDisabled:n,isFocused:A==="time-inputs"&&D==="minute-input",getProps:_,readOnly:v})}),(0,c.jsx)(lt,{children:" "}),(0,c.jsx)(Fe,{children:(0,c.jsx)(us,{value:C,onChange:a,onBlur:d,onFocus:h,onKeyDown:E,contextRef:L,tabIndex:k,placeholder:"AM",ariaCurrentValueForInputs:M,disabled:t,"aria-disabled":n,applyAriaDisabled:n,isFocused:A==="time-inputs"&&D==="meridiem-input",getProps:_,readOnly:v})})]})},ps=()=>{const{props:{hasError:e,disabled:t,readOnly:n,applyAriaDisabled:o},getProps:s,hideDate:a,hideTime:i,withAnyPicker:l,withAnyRightController:d,shouldPreserveClearableSpace:m,isControllerOnly:h,globalAttrs:g,xstyledAttrs:u,onGlobalKeyDown:p,handleComponentBlurs:E}=(0,r.useContext)(z),f={justPicker:a&&i,withAnyPicker:l,hasError:e,isControllerOnly:h},y=[];a||y.push("auto"),i||y.push("auto"),d&&y.push("auto");const C=[];m&&C.push("28px"),l&&C.push("auto");const T=a&&i;return(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(dr,{cols:y,gutter:"xxs",pr:d?"0px":"2px",onKeyDown:p,disabled:t,onBlur:E,"data-testid":V.CONTAINER,getOwnerProps:s,onlyPicker:T,readOnlyStyles:n||o,...f,...(0,tr.omit)(g,"tabIndex","autoFocus"),...u,children:[a?null:(0,c.jsx)(br,{}),i?null:(0,c.jsx)(ms,{}),d?(0,c.jsxs)(Ce.Ay,{cols:C,children:[m?(0,c.jsx)(hr,{}):null,l?(0,c.jsx)(ts,{}):null]}):null]})})},Mt=e=>{const t=qn(e);return(0,c.jsx)(z.Provider,{value:t,children:(0,c.jsx)(ps,{})})};Mt.displayName=ee;const hs=(0,It.A)(Mt);hs.propTypes=bn}}]);
|