(self.webpackChunk_segment_analytics_next=self.webpackChunk_segment_analytics_next||[]).push([[493],{9254:function(n,e,t){"use strict";function i(n,e){var t,i;return"boolean"==typeof(null==e?void 0:e.enabled)?e.enabled:null===(i=null===(t=null==n?void 0:n.__default)||void 0===t?void 0:t.enabled)||void 0===i||i}t.d(e,{n:function(){return i}})},5081:function(n,e,t){"use strict";t.r(e),t.d(e,{schemaFilter:function(){return u}});var i=t(5163),r=t(9254);function u(n,e){function t(t){var u=n,o=t.event.event;if(u&&o){var a=u[o];if(!(0,r.n)(u,a))return t.updateEvent("integrations",(0,i.pi)((0,i.pi)({},t.event.integrations),{All:!1,"Segment.io":!0})),t;var s=function(n,e){var t,i;if(!n||!Object.keys(n))return{};var r=Object.keys(n.integrations).filter((function(e){return!1===n.integrations[e]})),u=[];return(null!==(t=e.remotePlugins)&&void 0!==t?t:[]).forEach((function(n){r.forEach((function(e){(n.name.includes(e)||e.includes(n.name))&&u.push(n.name)}))})),(null!==(i=e.remotePlugins)&&void 0!==i?i:[]).reduce((function(n,e){return e.settings.subscriptions&&u.includes(e.name)&&e.settings.subscriptions.forEach((function(t){return n["".concat(e.name," ").concat(t.partnerAction)]=!1})),n}),{})}(a,e);t.updateEvent("integrations",(0,i.pi)((0,i.pi)((0,i.pi)({},t.event.integrations),null==a?void 0:a.integrations),s))}return t}return{name:"Schema Filter",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:t,alias:t,track:t,identify:t,group:t}}}}]); //# sourceMappingURL=schemaFilter.bundle.debb169c1abb431faaa6.js.map