"use strict";exports.id=6366,exports.ids=[6366],exports.modules={86366:(r,e,t)=>{t.d(e,{Z:()=>esm_useCopyToClipboard});var n=t(68887),o=t.n(n),u=t(16689);let esm_useSetState=function(r){void 0===r&&(r={});var e=(0,u.useState)(r),t=e[0],n=e[1];return[t,(0,u.useCallback)(function(r){n(function(e){return Object.assign({},e,r instanceof Function?r(e):r)})},[])]},esm_useCopyToClipboard=function(){var r,e,t=(r=(0,u.useRef)(!1),e=(0,u.useCallback)(function(){return r.current},[]),(0,u.useEffect)(function(){return r.current=!0,function(){r.current=!1}},[]),e),n=esm_useSetState({value:void 0,error:void 0,noUserInteraction:!0}),a=n[0],i=n[1];return[a,(0,u.useCallback)(function(r){if(t())try{if("string"!=typeof r&&"number"!=typeof r){var e,n,u=Error("Cannot copy typeof "+typeof r+" to clipboard, must be a string");i({value:r,error:u,noUserInteraction:!0});return}if(""===r){var u=Error("Cannot copy empty string to clipboard.");i({value:r,error:u,noUserInteraction:!0});return}n=r.toString(),e=o()(n),i({value:n,error:void 0,noUserInteraction:e})}catch(r){i({value:n,error:r,noUserInteraction:e})}},[])]}}};