import {nativeHandle}from'@scandit/web-datacapture-core/build/js/private/nativeHandle.js';function u(i,n,t){let p=Object.getOwnPropertyNames(Object.getPrototypeOf(t)).filter(r=>r!=="toJSONObject"),l=Object.getOwnPropertyNames(t);for(let r of p){let e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),r);e&&(e.set?Object.defineProperty(t,r,{...e,set:function(a){e.set&&e.set.call(this,a),n.workerCommand("labelCaptureBasicOverlayUpdateViewfinder",{payload:{labelCaptureBasicOverlayHandle:i[nativeHandle],viewfinderJSON:this.toJSONObject()}});}}):typeof e.value=="function"&&Object.defineProperty(t,r,{...e,value:function(...a){let o=e.value.apply(this,a);return n.workerCommand("labelCaptureBasicOverlayUpdateViewfinder",{payload:{labelCaptureBasicOverlayHandle:i[nativeHandle],viewfinderJSON:this.toJSONObject()}}),o}}));}for(let r of l){let e=Object.getOwnPropertyDescriptor(t,r);if(!e)continue;let a=t[r];Object.defineProperty(t,r,{enumerable:e.enumerable,configurable:true,get:function(){return a},set:function(o){a=o,n.workerCommand("labelCaptureBasicOverlayUpdateViewfinder",{payload:{labelCaptureBasicOverlayHandle:i[nativeHandle],viewfinderJSON:this.toJSONObject()}});}});}return t}export{u as a};