"use strict";var i=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var u=(r,e)=>i(r,"name",{value:e,configurable:true});var d=(r,e)=>{for(var a in e)i(r,a,{get:e[a],enumerable:true})};var m=(r,e,a,o)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let n of f(e))if(!p.call(r,n)&&n!==a)i(r,n,{get:()=>e[n],enumerable:!(o=l(e,n))||o.enumerable})}return r};var w=r=>m(i({},"__esModule",{value:true}),r);var g={};d(g,{default:()=>c});module.exports=w(g);var t=require("electron");var c=u(()=>{t.ipcMain.handle("clipboard-write-text",(r,e)=>{if(typeof e!=="string"){return false}t.clipboard.writeText(e);return true});t.ipcMain.handle("clipboard-write-image-data-url",(r,e)=>{if(typeof e!=="string"){return false}t.clipboard.writeImage(t.nativeImage.createFromDataURL(e));return true})},"default");
