import{ar as e}from"./vendor-neo4j-ndl.llONqzcp.js";import{t}from"./is-plan-event-enabled.BWaBhFpT.js";function n(e,t){if(!e||!Object.keys(e))return{};var n=e.integrations?Object.keys(e.integrations).filter(function(t){return e.integrations[t]===!1}):[],r=[];return(t.remotePlugins??[]).forEach(function(e){n.forEach(function(t){e.creationName==t&&r.push(e.name)})}),(t.remotePlugins??[]).reduce(function(e,t){return t.settings.subscriptions&&r.includes(t.name)&&t.settings.subscriptions.forEach(function(n){return e[`${t.name} ${n.partnerAction}`]=!1}),e},{})}function r(r,i){function a(a){var o=r,s=a.event.event;if(o&&s){var c=o[s];if(t(o,c)){var l=n(c,i);a.updateEvent(`integrations`,e(e(e({},a.event.integrations),c?.integrations),l))}else return a.updateEvent(`integrations`,e(e({},a.event.integrations),{All:!1,"Segment.io":!0})),a}return a}return{name:`Schema Filter`,version:`0.1.0`,isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:`before`,page:a,alias:a,track:a,identify:a,group:a}}export{r as schemaFilter};