import{n as e}from"./rolldown-runtime-BG2f4sTM.js";import{$ft as t,qft as n}from"./app-initial-BHB6SClA.js";import{n as r,t as i}from"./is-plan-event-enabled-BUDpDO9_.js";function a(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 o(e,t){function i(i){var o=e,s=i.event.event;if(o&&s){var c=o[s];if(r(o,c)){var l=a(c,t);i.updateEvent(`integrations`,n(n(n({},i.event.integrations),c?.integrations),l))}else return i.updateEvent(`integrations`,n(n({},i.event.integrations),{All:!1,"Segment.io":!0})),i}return i}return{name:`Schema Filter`,version:`0.1.0`,isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:`before`,page:i,alias:i,track:i,identify:i,group:i}}e((()=>{t(),i()}))();export{o as schemaFilter};
//# sourceMappingURL=schema-filter-jBXNBlZX.js.map