(function(c,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react"),require("@wix/services-manager-react")):typeof define=="function"&&define.amd?define(["exports","react","@wix/services-manager-react"],a):(c=typeof globalThis<"u"?globalThis:c||self,a(c["Builder-interactions"]={},c.React,c.ServicesManagerReact))})(this,function(c,a,y){"use strict";var d=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function w(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var v={},_={},f={},m={},O={};const j=w(Object.freeze(Object.defineProperty({__proto__:null,wixContext:O},Symbol.toStringTag,{value:"Module"})));var l={};Object.defineProperty(l,"__esModule",{value:!0}),l.ThreadMode=void 0,l.defineService=h,l.implementService=g;var S;(function(e){e[e.MAIN=0]="MAIN",e[e.REMOTE=1]="REMOTE"})(S||(l.ThreadMode=S={}));function h(e){return e}function g(e,t){return t}g.withConfig=function(){return function(e,t){return t}},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.resolveSignalsReadyFromContext=e.resolveServiceGetterFromContext=e.implementService=e.defineService=void 0;const t=j;var r=l;Object.defineProperty(e,"defineService",{enumerable:!0,get:function(){return r.defineService}}),Object.defineProperty(e,"implementService",{enumerable:!0,get:function(){return r.implementService}});const i=()=>t.wixContext?.getService||globalThis?.__wix_context__?.getService;e.resolveServiceGetterFromContext=i;const n=()=>(t.wixContext?.awaitRemoteSignals||globalThis?.__wix_context__?.awaitRemoteSignals||(()=>Promise.resolve()))();e.resolveSignalsReadyFromContext=n}(m),Object.defineProperty(f,"__esModule",{value:!0}),f.implementStaticService=f.defineStaticService=void 0;const b=m;f.defineStaticService=b.defineService,f.implementStaticService=b.implementService,function(e){var t=d&&d.__createBinding||(Object.create?function(i,n,o,u){u===void 0&&(u=o);var s=Object.getOwnPropertyDescriptor(n,o);(!s||("get"in s?!n.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(i,u,s)}:function(i,n,o,u){u===void 0&&(u=o),i[u]=n[o]}),r=d&&d.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&t(n,i,o)};Object.defineProperty(e,"__esModule",{value:!0}),r(f,e)}(_),Object.defineProperty(v,"__esModule",{value:!0});var p=v.InteractionsDefinition=void 0;const P=_;p=v.InteractionsDefinition=(0,P.defineStaticService)("viewer-core/interactions");const x=e=>t=>{const{hasInteractions:r}=y.useService(p),i=`#${t.id}`;return r(i)?a.createElement("wix-interact-element",{"data-wix-path":i},a.createElement(e,{...t})):a.createElement(e,{...t})};c.withInteractions=x,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
//# sourceMappingURL=builder-interactions.js.map