       },
          ],
        },
      ];

      const openPicker = (timeout) => {
        picker.isOpen = true;

        if (timeout) {
          setTimeout(() => {
            picker.isOpen = false;
          }, timeout);
        }
      };

      picker.addEventListener('ionPickerDidDismiss', () => {
        picker.isOpen = false;
      });
    </script>
  </body>
</html>
