import{Interactable as t}from"../core/Interactable.prod.js";import o from"../utils/is.prod.js";import{warnOnce as e}from"../utils/misc.prod.js";function r(t){return o.bool(t)?(this.options.styleCursor=t,this):null===t?(delete this.options.styleCursor,this):this.options.styleCursor}function n(t){return o.func(t)?(this.options.actionChecker=t,this):null===t?(delete this.options.actionChecker,this):this.options.actionChecker}export default{id:"auto-start/interactableMethods",install(t){const{Interactable:o}=t;o.prototype.getAction=function(o,e,r,n){const i=((t,o,e,r,n)=>{const i=t.getRect(r),s={action:null,interactable:t,interaction:e,element:r,rect:i,buttons:o.buttons||{0:1,1:4,3:8,4:16}[o.button]};return n.fire("auto-start:check",s),s.action})(this,e,r,n,t);return this.options.actionChecker?this.options.actionChecker(o,e,i,this,n,r):i},o.prototype.ignoreFrom=e((function(t){return this._backCompatOption("ignoreFrom",t)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),o.prototype.allowFrom=e((function(t){return this._backCompatOption("allowFrom",t)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),o.prototype.actionChecker=n,o.prototype.styleCursor=r}}; //# sourceMappingURL=InteractableMethods.prod.js.map