1!function(){try{var n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new n.Error).stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="8ac5282f-67a5-4264-941c-f1e67b597aff",n._sentryDebugIdIdentifier="sentry-dbid-8ac5282f-67a5-4264-941c-f1e67b597aff")}catch(n){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2413],{31683:function(n,t,e){e.d(t,{l:function(){return o},p:function(){return u}});var r=e(57437),i=e(45905);let o=i.j1;function u(n){let{origin:t,className:e="h-4 w-4"}=n;if(!t)return null;let o=(0,i.Eb)(t);return(0,r.jsx)(o,{className:e,showTooltip:!1})}},77243:function(n,t,e){e.d(t,{$r:function(){return a},PT:function(){return o},th:function(){return s},uB:function(){return u}});let r=Object.fromEntries(Object.entries(e(12581).AV).map(n=>{let[t,e]=n;return[e,t]}));function i(n){return"object"==typeof n&&null!==n&&"conditions"in n}function o(n){if(!(null==n?void 0:n.length))return null;let t=[];for(let e of n){let n=function n(t){if(i(t)){let e=[];for(let r of t.conditions){let t=n(r);if(!t)return null;e.push(t)}return"or"===t.type?{or:e}:{and:e}}let e=r[String(t.operator)];return e?{field:t.field,operator:e,value:t.value}:null}(e);if(!n)return null;t.push(n)}return{and:t}}function u(n){let t=new Set,e=n=>{if(i(n)){n.conditions.forEach(e);return}r[String(n.operator)]||t.add(String(n.operator))};return(null!=n?n:[]).forEach(e),[...t].sort()}let l={contains:{ui:"ILIKE",perde:"caixa"},not_contains:{ui:"NOT ILIKE",perde:"caixa"}};function a(n){if(!(null==n?void 0:n.length))return null;let t=[],e=n=>{if(i(n)){let t=[];for(let r of n.conditions){let n=e(r);if(!n)return null;t.push(n)}return"or"===n.type?{or:t}:{and:t}}let o=String(n.operator),u=r[o];if(u)return{field:n.field,operator:u,value:n.value};let a=l[o];return a?(t.push({de:o,para:a.ui}),{field:n.field,operator:a.ui,value:n.value}):null},o=[];for(let t of n){let n=e(t);if(!n)return null;o.push(n)}return{filtro:{and:o},trocas:t}}function s(n){let t=[],e=(n,r,o)=>{var u;if(i(n)){n.conditions.forEach(t=>e(t,r+1,n.type));return}let l=Array.isArray(n.value)?n.value.join(", "):String(null!==(u=n.value)&&void 0!==u?u:"");t.push({campo:String(n.field),operador:String(n.operator),valor:l,nivel:r,grupo:o})};return(null!=n?n:[]).forEach(n=>e(n,0,null)),t}},45905:function(n,t,e){e.d(t,{Bm:function(){return v},CK:function(){return p},Eb:function(){return d},Xd:function(){return g},_g:function(){return l},j1:function(){return u}});var r=e(57437),i=e(14163),o=e(9366);let u={PIXEL:i.Gz,GOOGLE_ADS:i.rJ,FACEBOOK_ADS:i.q4,META_PAGES_INSTAGRAM:i.il,HOTMART:i.tf,TALLY_FORMS:i.XD,WEBHOOK:i.vy,FORM:i.$k,ACTIVECAMPAIGN_EVENTS:i.$k,ZOOM:i.An,KIWIFY:i.iM,SENDGRID:i.gt,DATABASE:i.VH},l="postgres",a={[l]:i.om},s={DATABASE:l},f=new Set(Object.keys(s)),c={FORM:"native"};function d(n,t){var e;if(f.has(n)){let n=null==t?void 0:t.engine;if("string"==typeof n){let t=a[n.trim().toLowerCase()];if(t)return t}}if(n===o.$k){let n=(0,o.fZ)({product:null==t?void 0:t.product});if(n===o.AK)return i.yu;if(n===o.fW)return i.Vq}return"FORM"===n&&(null==t?void 0:t.provider)==="native"?i.oz:null!==(e=u[n])&&void 0!==e?e:i.VH}function p(n){let{sourceType:t,product:e}=(0,o.yh)(n);return t===o.$k||t===o.oe?d(t,{product:e}):v(t)}function v(n){return d(n,{engine:s[n],provider:c[n]})}function g(n){let{sourceType:t,config:e,className:i="h-4 w-4",showTooltip:o=!1}=n,u=d(t,e);return(0,r.jsx)(u,{className:i,showTooltip:o})}},9366:function(n,t,e){e.d(t,{$4:function(){return s},$B:function(){return I},$k:function(){return r},AK:function(){return o},H6:function(){return b},LF:function(){return h},Qw:function(){return f},_9:function(){return O},bB:function(){return _},f0:function(){return a},fW:function(){return u},fZ:function(){return g},is:function(){return A},l5:function(){return m},oe:function(){return i},rg:function(){return S},u7:function(){return T},yX:function(){return l},yh:function(){return y}});let r="META_PAGES_INSTAGRAM",i="FACEBOOK_ADS",o="instagram",u="facebook_pages",l="facebook_login",a="instagram_login",s="INSTAGRAM",f="FACEBOOK_PAGES",c=["pages","page_posts","page_insights"],d=["instagram_accounts","instagram_media","instagram_insights","instagram_comments"],p=["realtime_events"],v=[...c,"instagram_accounts","instagram_media","instagram_insights"];function g(n){let t=null==n?void 0:n.product;return t===o||t===u?t:null}function _(n){let t=null==n?void 0:n.auth_method;return t===l||t===a?t:null}function m(n){return n===o?{sync:[...d],events:[...p]}:n===u?{sync:[...c],events:[...p]}:{sync:[...v],events:[...p]}}function y(n){let t=String(n||"").trim().toUpperCase();return t===s?{sourceType:r,product:o}:t===f?{sourceType:r,product:u}:t===r?{sourceType:r,product:null}:{sourceType:t,product:null}}function A(n,t){let e=Array.isArray(n)?n:[];if(!t)return e.filter(n=>n&&(n.id||n.access_token));let r=[];for(let n of e)if(n&&(n.id||n.access_token)){if(t===o){if(!function(n){let t=n.instagram_business_account;return!!t&&"object"==typeof t&&!!t.id}(n))continue;r.push({...n,coletar_pagina:!1,coletar_instagram:!0});continue}r.push({...n,coletar_pagina:!0,coletar_instagram:!1})}return r}function h(n,t,e){let r=m(e),i=Array.isArray(n)?n.map(String):r.sync,o=Array.isArray(t)?t.map(String):r.events;return{sync:i.filter(n=>r.sync.includes(n)),events:o.filter(n=>r.events.includes(n))}}let E="instagram_business_manage_comments";function b(n,t){let e=new Set(Array.isArray(t)?t.map(String):"string"==typeof t?t.split(/[,\s]+/).filter(
1Boolean):[]),r=e.has("instagram_business_manage_insights")?n.sync:n.sync.filter(n=>"instagram_insights"!==n);return{sync:e.has(E)?r:S(r),events:e.has(E)?n.events:[]}}function S(n){return n.filter(n=>"instagram_comments"!==n)}function I(n){if(_(n)!==a)return null;let t=String((null==n?void 0:n.instagram_user_id)||"").trim();return t&&/^\d+$/.test(t)?t:null}function T(n){return n===o?"Instagram":n===u?"P\xe1ginas do Facebook":"Facebook Pages + Instagram"}let O=l},51366:function(n,t,e){function r(n){if(!n||"object"!=typeof n)return 0;let t=0,e=n=>{if(n&&"object"==typeof n){if("and"in n||"or"in n){var r;let t=null!==(r=n.and)&&void 0!==r?r:n.or;Array.isArray(t)&&t.forEach(e)}else"field"in n&&"operator"in n&&(t+=1)}};return e(n),t}function i(n,t){var e;if(null==n?void 0:null===(e=n.origin_events)||void 0===e?void 0:e.length)return n.origin_events;let r=(null==n?void 0:n.origin_event)||t;return r?[r]:[]}function o(n){var t;let e=null===(t=(null!=n?n:{}).pipeline)||void 0===t?void 0:t.group;return e&&"string"==typeof e.id?e:null}function u(n,t,e,r,i){var o,u,l,a,s;let f=Object.fromEntries(((null==i?void 0:null===(o=i.runtimeEvents)||void 0===o?void 0:o.length)?i.runtimeEvents:n.originEvents).map(n=>[n,t.destEvent]));return{signal_type:n.signalType,...r?{signal_source_id:r}:{},mapping_config:{event_map:f,field_maps:function(n){let t={};for(let e of n)"event"===e.kind&&e.value.trim()&&(t[e.target]=e.value.trim());return t}(t.fields),...null!==(u=null==i?void 0:i.providerKeys)&&void 0!==u?u:{},pipeline:{version:1,destination_type:t.destinationType,owned_destination:null!==(l=t.ownedDestination)&&void 0!==l?l:!t.linkedDestinationId,group:{id:n.groupId,name:n.name,origin_event:null!==(a=n.originEvents[0])&&void 0!==a?a:"",origin_events:n.originEvents,source_ids:n.signalSourceIds,conversion_id:null!==(s=null==i?void 0:i.conversionId)&&void 0!==s?s:null,source_origin:n.sourceOrigin,output_id:t.id},filter:n.filter,fields:t.fields}},transform_code:e}}function l(n,t,e,r){var i,o,u,l,a,s,f;let c=null!==(o=r.mapping_config)&&void 0!==o?o:{},d=c.pipeline,p=null!==(l=Object.values(null!==(u=c.event_map)&&void 0!==u?u:{})[0])&&void 0!==l?l:"",v=null!==(a=null==d?void 0:d.fields)&&void 0!==a?a:[],g=(null==d?void 0:d.owned_destination)!==!1;return{id:null!==(s=null==d?void 0:null===(i=d.group)||void 0===i?void 0:i.output_id)&&void 0!==s?s:n,persistedId:n,linkedDestinationId:n,ownedDestination:g,destinationType:null!==(f=null==d?void 0:d.destination_type)&&void 0!==f?f:t,credentials:e,destEvent:p,fields:v}}e.d(t,{WI:function(){return o},j0:function(){return a},tZ:function(){return r},ug:function(){return l},vl:function(){return u},z_:function(){return i}});let a=4}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.