import{w as e,y as t,a as o,_ as i,t as l,i as n,x as a}from"./styles-sT2V1cOw.js";const s=e` `;let r=class extends n{render(){const e=(()=>{var e,t;const o=window.navigator.userAgent,i=(null===(t=null===(e=window.navigator)||void 0===e?void 0:e.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform;return-1!==["macOS","Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(i)?"Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(i)?"iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(i)?"Windows":/Android/.test(o)?"Android":/Linux/.test(i)?"Linux":null})();return a`
No port selected
If you didn't select a port because you didn't see your device listed, try the following steps:
  1. Make sure that the device is connected to this computer (the one that runs the browser that shows this website)
  2. Most devices have a tiny light when it is powered on. If yours has one, make sure it is on.
  3. Make sure that the USB cable you use can be used for data and is not a power-only cable.
  4. ${"Linux"===e?a`
  5. If you are using a Linux flavor, make sure that your user is part of the dialout group so it has permission to access the device. sudo usermod -a -G dialout YourUserName You may need to log out & back in or reboot to activate the new group access.
  6. `:""}
  7. Make sure you have the right drivers installed. Below are the drivers for common chips used in ESP devices:
    • CP2102 drivers: Windows & Mac
    • CH342, CH343, CH9102 drivers: Windows, Mac
      (download via blue button with ${s} icon)
    • CH340, CH341 drivers: Windows, Mac
      (download via blue button with ${s} icon)
${this.doTryAgain?a` Cancel Try Again `:a` Close `}
`}tryAgain(){var e;this.close(),null===(e=this.doTryAgain)||void 0===e||e.call(this)}close(){this.shadowRoot.querySelector("ew-dialog").close()}async _handleClose(){this.parentNode.removeChild(this)}};r.styles=[t,o` li + li, li > ul { margin-top: 8px; } ul, ol { margin-bottom: 0; padding-left: 1.5em; } li code.block { display: block; margin: 0.5em 0; } `],r=i([l("ewt-no-port-picked-dialog")],r);const d=async e=>{const t=document.createElement("ewt-no-port-picked-dialog");return t.doTryAgain=e,document.body.append(t),!0};export{d as openNoPortPickedDialog};