import{t as p,Z as l,o as _,z as h,B as f,O as b}from"./en-DoRaEZbE.js";const g=p({__name:"screen-share-choice-dialog",setup(w){const u=l(),m=l();async function d(e){var t,r;u.value=(t=e.screens)==null?void 0:t.map(n=>{const{id:a,name:s,display_id:c}=n,i=o(n.thumbnail);return{id:a,name:s,display_id:c,thumbnailURL:i}}),m.value=(r=e.windows)==null?void 0:r.map(n=>{const{id:a,name:s}=n,c=o(n.thumbnail),i=o(n.appIcon);return{id:a,name:s,thumbnailURL:c,appIconURL:i}})}function o(e){if(!e)return;const t=new Blob([e],{type:"image/bmp"});return URL.createObjectURL(t)}return _(async()=>{await w3n.mediaDevices.setSelectDisplayMediaForCaptureHandler(d),navigator.mediaDevices.getDisplayMedia({video:!0,audio:!0})}),(e,t)=>(h(),f("div"))}}),y="_confirmationDialog_1qrql_1",D={confirmationDialog:y},v={$style:D},C=b(g,[["__cssModules",v]]);export{C as default};
