1import{j as e}from"./vendor-motion-C5FObYmw.js";import{r as a}from"./vendor-helmet-C1O7rrm-.js";import{F as C,bF as X,bG as G,bH as $,bI as z,b0 as R,X as B,b8 as O,B as u,b9 as J,Y as q,Z as K,_ as U,O as o,S as x,d as g,e as v,g as f,a5 as _,h as j,I as h,bJ as N,an as W,a2 as Y,bK as Q,H as V,J as e1,R as a1,V as t1,j as M,W as l1,aw as c1,q as s1,C as i}from"./index-D5Z3iEdy.js";import{n as k}from"./Code.es-C95ylcgs.js";import"./vendor-ui-DH9CwqBQ.js";import"./vendor-charts-sgZODtTB.js";import"./vendor-query-S2mA_Wh8.js";import"./vendor-react-B8Ra2ABZ.js";import"./vendor-flow-4lyVEpXM.js";import"./vendor-dnd-BVlXN6uJ.js";const n1=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M228,128a100,100,0,1,1-22.86-63.64,12,12,0,0,1-18.51,15.28A76,76,0,1,0,203.05,140H128a12,12,0,0,1,0-24h88A12,12,0,0,1,228,128Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),a.createElement("path",{d:"M224,128a96,96,0,1,1-21.95-61.09,8,8,0,1,1-12.33,10.18A80,80,0,1,0,207.6,136H128a8,8,0,0,1,0-16h88A8,8,0,0,1,224,128Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104,104,0,0,0,128,24Zm0,184A80,80,0,1,1,181.34,68.37a8,8,0,0,1-10.67,11.92A64,64,0,1,0,191.5,136H128a8,8,0,0,1,0-16h72a8,8,0,0,1,8,8A80.09,80.09,0,0,1,128,208Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M222,128a94,94,0,1,1-21.49-59.82,6,6,0,1,1-9.25,7.64A82,82,0,1,0,209.78,134H128a6,6,0,0,1,0-12h88A6,6,0,0,1,222,128Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M224,128a96,96,0,1,1-21.95-61.09,8,8,0,1,1-12.33,10.18A80,80,0,1,0,207.6,136H128a8,8,0,0,1,0-16h88A8,8,0,0,1,224,128Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M220,128a92,92,0,1,1-21-58.55,4,4,0,0,1-6.17,5.1A84,84,0,1,0,211.91,132H128a4,4,0,0,1,0-8h88A4,4,0,0,1,220,128Z"}))]]),r1=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M244,149.31c0,16.84-3.37,31.33-9.75,41.91C226.06,204.81,213.33,212,197.44,212c-30.33,0-50.72-38.05-72.3-78.33C109.46,104.41,90,68,74,68c-7.71,0-17.16,9.37-24.66,24.45A133.82,133.82,0,0,0,36,149.31c0,12.3,2.24,22.78,6.3,29.52,3.77,6.26,8.94,9.17,16.26,9.17,13.75,0,30.63-29,36.18-38.49a12,12,0,0,1,20.74,12.09c-8.91,15.28-16.53,26-24,33.78C80.75,206.56,70,212,58.56,212c-15.89,0-28.62-7.19-36.81-20.78C15.37,180.64,12,166.15,12,149.31,12,105.34,35.58,44,74,44c30.33,0,50.72,38.05,72.3,78.33C162,151.59,181.47,188,197.44,188c7.32,0,12.49-2.91,16.26-9.17,4.06-6.74,6.3-17.22,6.3-29.52a133.82,133.82,0,0,0-13.33-56.86C199.17,77.37,189.72,68,182,68c-5.72,0-12.61,5-20.49,14.83a12,12,0,0,1-18.74-15C155.62,51.8,168.45,44,182,44c17.65,0,34,13.41,46.15,37.76A159,159,0,0,1,244,149.31Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128.49,114.6l-18.71,32.75C93.88,175.86,77.52,200,58.56,200-3.16,200,27.7,56,74,56,94.25,56,111.56,83.58,128.49,114.6ZM182,56c-12.62,0-24.1,10.7-35,26.27L128.49,114.6c21.76,39.86,42.91,85.4,68.95,85.4C259.16,200,228.3,56,182,56Z",opacity:"0.2"}),a.createElement("path",{d:"M240,149.31c0,16.11-3.17,29.89-9.17,39.84-7.43,12.33-19,18.85-33.39,18.85-27.94,0-47.78-37-68.78-76.22C111.64,100,92.35,64,74,64c-9.38,0-19.94,10-28.25,26.67A138.18,138.18,0,0,0,32,149.31c0,13.2,2.38,24.12,6.88,31.58S49.82,192,58.56,192c15.12,0,30.85-24.54,44.23-48.55a8,8,0,0,1,14,7.8C101.46,178.71,83.07,208,58.56,208c-14.41,0-26-6.52-33.39-18.85-6-10-9.17-23.73-9.17-39.84A154.81,154.81,0,0,1,31.42,83.54C42.82,60.62,57.94,48,74,48c27.94,0,47.77,37,68.78,76.22C159.79,156,179.08,192,197.44,192c8.74,0,15.18-3.63,19.68-11.11S224,162.51,224,149.31a138.18,138.18,0,0,0-13.74-58.64C202,74,191.39,64,182,64c-8.36,0-17.68,7.48-28.51,22.88a8,8,0,1,1-13.08-9.21c9-12.74,23-29.67,41.59-29.67,16.05,0,31.17,12.62,42.57,35.54A154.81,154.81,0,0,1,240,149.31Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM201.23,170.26c-5.63,9-14.33,13.74-25.16,13.74-20.73,0-34.81-25.31-49.72-52.11C115.47,112.33,101.93,88,90.61,88,78.18,88,64,116.88,64,142.21c0,8.26,1.5,15,4.34,19.56C71,166,74.68,168,79.93,168c6.08,0,13.52-7,22.74-21.51a8,8,0,0,1,13.49,8.59C99.84,180.71,88.22,184,79.93,184c-10.83,0-19.53-4.75-25.16-13.74-4.43-7.08-6.77-16.78-6.77-28A103.13,103.13,0,0,1,59,97.06C67.34,80.9,78.57,72,90.61,72c20.73,0,34.81,25.31,49.72,52.11C151.21,143.66,164.75,168,176.07,168c5.25,0,8.93-2,11.59-6.23,2.84-4.53,4.34-11.3,4.34-19.56C192,116.88,177.82,88,165.39,88c-3.4,0-7.35,2.31-11.74,6.88a8,8,0,1,1-11.54-11.09C149.74,75.86,157.35,72,165.39,72c12,0,23.27,8.9,31.62,25.06a103.13,103.13,0,0,1,11,45.15C208,153.48,205.66,163.18,201.23,170.26Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M238,149.31c0,15.75-3.07,29.17-8.88,38.81-7.05,11.7-18,17.88-31.68,17.88-26.74,0-46.3-36.51-67-75.17C113.14,98.57,93.55,62,74,62c-23.28,0-44,48.83-44,87.31,0,13.57,2.48,24.84,7.16,32.62,4.9,8.12,11.9,12.07,21.4,12.07,16.16,0,32.3
11-25.06,46-49.57A6,6,0,0,1,115,150.27C100,177.23,82,206,58.56,206c-13.67,0-24.63-6.18-31.68-17.88C21.07,178.48,18,165.06,18,149.31,18,108.82,39.81,50,74,50c26.74,0,46.3,36.51,67,75.17C158.29,157.43,177.88,194,197.44,194c9.5,0,16.5-3.95,21.4-12.07,4.68-7.78,7.16-19.05,7.16-32.62C226,110.83,205.29,62,182,62c-9,0-18.91,7.76-30.14,23.73a6,6,0,0,1-9.82-6.91C150.75,66.45,164.37,50,182,50,216.19,50,238,108.82,238,149.31Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M240,149.31c0,16.11-3.17,29.89-9.17,39.84-7.43,12.33-19,18.85-33.39,18.85-27.94,0-47.78-37-68.78-76.22C111.64,100,92.35,64,74,64c-9.38,0-19.94,10-28.25,26.67A138.18,138.18,0,0,0,32,149.31c0,13.2,2.38,24.12,6.88,31.58S49.82,192,58.56,192c15.12,0,30.85-24.54,44.23-48.55a8,8,0,0,1,14,7.8C101.46,178.71,83.07,208,58.56,208c-14.41,0-26-6.52-33.39-18.85-6-10-9.17-23.73-9.17-39.84A154.81,154.81,0,0,1,31.42,83.54C42.82,60.62,57.94,48,74,48c27.94,0,47.77,37,68.78,76.22C159.79,156,179.08,192,197.44,192c8.74,0,15.18-3.63,19.68-11.11S224,162.51,224,149.31a138.18,138.18,0,0,0-13.74-58.64C202,74,191.39,64,182,64c-8.36,0-17.68,7.48-28.51,22.88a8,8,0,1,1-13.08-9.21c9-12.74,23-29.67,41.59-29.67,16.05,0,31.17,12.62,42.57,35.54A154.81,154.81,0,0,1,240,149.31Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M236,149.31c0,15.38-3,28.45-8.6,37.78-6.67,11.06-17,16.91-30,16.91-25.55,0-44.83-36-65.25-74.11C113.78,95.53,94.74,60,74,60,62.9,60,51.3,70.53,42.16,88.89A142.23,142.23,0,0,0,28,149.31c0,13.93,2.58,25.56,7.45,33.65,5.22,8.65,13,13,23.11,13,17.15,0,33.07-24.32,47.73-50.6a4,4,0,1,1,7,3.9C98.52,175.76,80.9,204,58.56,204c-12.93,0-23.29-5.85-30-16.91C23,177.76,20,164.69,20,149.31a150.73,150.73,0,0,1,15-64C45.69,63.83,59.54,52,74,52c25.54,0,44.83,36,65.25,74.11,18.41,34.36,37.44,69.89,58.2,69.89,10.12,0,17.89-4.39,23.11-13,4.87-8.09,7.45-19.72,7.45-33.65a142.23,142.23,0,0,0-14.16-60.42C204.7,70.53,193.1,60,182,60c-9.75,0-20.15,8-31.78,24.57a4,4,0,0,1-6.54-4.6c13.42-19.08,25.6-28,38.32-28,14.45,0,28.3,11.83,39,33.32A150.73,150.73,0,0,1,236,149.31Z"}))]]),o1=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M224,68a44.05,44.05,0,0,1-44-44,12,12,0,0,0-12-12H128a12,12,0,0,0-12,12V156a16,16,0,1,1-22.85-14.47A12,12,0,0,0,100,130.69V88A12,12,0,0,0,85.9,76.19a79.35,79.35,0,0,0-47.08,27.74A81.84,81.84,0,0,0,20,156a80,80,0,0,0,160,0V122.67A107.47,107.47,0,0,0,224,132a12,12,0,0,0,12-12V80A12,12,0,0,0,224,68Zm-12,39.15a83.05,83.05,0,0,1-37-14.91A12,12,0,0,0,156,102v54a56,56,0,0,1-112,0,57.86,57.86,0,0,1,32-51.56V124a40,40,0,1,0,64,32V36h17.06A68.21,68.21,0,0,0,212,90.94Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M224,120a95.55,95.55,0,0,1-56-18v54a68,68,0,0,1-136,0c0-33.46,24.17-62.33,56-68v42.69A28,28,0,1,0,128,156V24h40a56,56,0,0,0,56,56Z",opacity:"0.2"}),a.createElement("path",{d:"M224,72a48.05,48.05,0,0,1-48-48,8,8,0,0,0-8-8H128a8,8,0,0,0-8,8V156a20,20,0,1,1-28.57-18.08A8,8,0,0,0,96,130.69V88a8,8,0,0,0-9.4-7.88C50.91,86.48,24,119.1,24,156a76,76,0,0,0,152,0V116.29A103.25,103.25,0,0,0,224,128a8,8,0,0,0,8-8V80A8,8,0,0,0,224,72Zm-8,39.64a87.19,87.19,0,0,1-43.33-16.15A8,8,0,0,0,160,102v54a60,60,0,0,1-120,0c0-25.9,16.64-49.13,40-57.6v27.67A36,36,0,1,0,136,156V32h24.5A64.14,64.14,0,0,0,216,87.5Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M232,80v40a8,8,0,0,1-8,8,103.25,103.25,0,0,1-48-11.71V156a76,76,0,0,1-152,0c0-36.9,26.91-69.52,62.6-75.88A8,8,0,0,1,96,88v42.69a8,8,0,0,1-4.57,7.23A20,20,0,1,0,120,156V24a8,8,0,0,1,8-8h40a8,8,0,0,1,8,8,48.05,48.05,0,0,0,48,48A8,8,0,0,1,232,80Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M224,74a50.06,50.06,0,0,1-50-50,6,6,0,0,0-6-6H128a6,6,0,0,0-6,6V156a22,22,0,1,1-31.43-19.89A6,6,0,0,0,94,130.69V88a6,6,0,0,0-7-5.91C52.2,88.28,26,120.05,26,156a74,74,0,0,0,148,0V112.93A101.28,101.28,0,0,0,224,126a6,6,0,0,0,6-6V80A6,6,0,0,0,224,74Zm-6,39.8a89.13,89.13,0,0,1-46.5-16.69A6,6,0,0,0,162,102v54a62,62,0,0,1-124,0c0-27.72,18.47-52.48,44-60.38v31.53A34,34,0,1,0,134,156V30h28.29A62.09,62.09,0,0,0,218,85.71Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M224,72a48.05,48.05,0,0,1-48-48,8,8,0,0,0-8-8H128a8,8,0,0,0-8,8V156a20,20,0,1,1-28.57-18.08A8,8,0,0,0,96,130.69V88a8,8,0,0,0-9.4-7.88C50.91,86.48,24,119.1,24,156a76,76,0,0,0,152,0V116.29A103.25,103.25,0,0,0,224,128a8,8,0,0,0,8-8V80A8,8,0,0,0,224,72Zm-8,39.64a87.19,87.19,0,0,1-43.33-16.15A8,8,0,0,0,160,102v54a60,60,0,0,1-120,0c0-25.9,16.64-49.13,40-57.6v27.67A36,36,0,1,0,136,156V32h24.5A64.14,64.14,0,0,0,216,87.5Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M224,76a52.06,52.06,0,0,1-52-52,4,4,0,0,0-4-4H128a4,4,0,0,0-4,4V156a24,24,0,1,1-34.28-21.69A4,4,0,0,0,92,130.69V88a4,4,0,0,0-4.7-3.94C53.49,90.08,28,121,28,156a72,72,0,0,0,144,0V109.44A99.26,99.26,0,0,0,224,124a4,4,0,0,0,4-4V80A4,4,0,0,0,224,76Zm-4,39.92a91.32,91.32,0,0,1-49.66-17.18A4,4,0,0,0,164,102v54a64,64,0,0,1-128,0c0-29.52,20.32-55.79,48-63v35.31A32,32,0,1,0,132,156V28h32.13A60.11,
160.11,0,0,0,220,83.87Z"}))]]),Z=a.forwardRef((s,n)=>a.createElement(C,{ref:n,...s,weights:n1}));Z.displayName="GoogleLogoIcon";const A=Z,w=a.forwardRef((s,n)=>a.createElement(C,{ref:n,...s,weights:r1}));w.displayName="MetaLogoIcon";const i1=w,F=a.forwardRef((s,n)=>a.createElement(C,{ref:n,...s,weights:o1}));F.displayName="TiktokLogoIcon";const d1=F,E=[{value:"facebook",label:"Facebook Pixel",icon:i1},{value:"google_analytics",label:"Google Analytics (GA4)",icon:A},{value:"gtm",label:"Google Tag Manager",icon:A},{value:"tiktok",label:"TikTok Pixel",icon:d1},{value:"google_ads",label:"Google Ads",icon:A},{value:"hotjar",label:"Hotjar",icon:_},{value:"clarity",label:"Microsoft Clarity",icon:_},{value:"custom",label:"Script Customizado",icon:k}],P=[{value:"all",label:"Todas as páginas"},{value:"checkout",label:"Apenas Checkout"},{value:"landing",label:"Apenas Landing"},{value:"custom",label:"Páginas especÃficas"}],m1=[{value:"head",label:"<head>"},{value:"body_start",label:"<body> inÃcio"},{value:"body_end",label:"<body> final"}];function u1(s){var n;return((n=E.find(d=>d.value===s))==null?void 0:n.label)??s}function h1(s){const n=E.find(d=>d.value===s);return n?n.icon:k}function y1(){const{data:s,isLoading:n}=X(),d=G(),T=$(),S=z(),[H,b]=a.useState(!1),[c,r]=a.useState({platform:"facebook",pixel_id:"",label:"",is_active:!0,page_filter:"all",custom_pages:[],placement:"head",custom_script:null,api_token:null,test_event_code:null}),y=()=>r({platform:"facebook",pixel_id:"",label:"",is_active:!0,page_filter:"all",custom_pages:[],placement:"head",custom_script:null,api_token:null,test_event_code:null}),I=async()=>{var t;if(!c.pixel_id.trim()&&c.platform!=="custom"){i.error("Informe o ID do pixel");return}if(c.platform==="custom"&&!((t=c.custom_script)!=null&&t.trim())){i.error("Informe o script customizado");return}try{await d.mutateAsync(c),i.success("Pixel adicionado com sucesso"),b(!1),y()}catch(l){i.error(l.message||"Erro ao criar pixel")}},L=async(t,l)=>{try{await T.mutateAsync({id:t,is_active:l}),i.success(l?"Pixel ativado":"Pixel desativado")}catch{i.error("Erro ao atualizar pixel")}},D=async t=>{try{await S.mutateAsync(t),i.success("Pixel removido")}catch{i.error("Erro ao remover pixel")}};return e.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[e.jsx(R,{title:"Pixels & Tracking",subtitle:"Gerencie pixels e scripts de rastreamento injetados no app"}),e.jsx("div",{className:"flex-1 overflow-auto p-4 md:p-6",children:e.jsxs("div",{className:"max-w-4xl mx-auto space-y-4",children:[e.jsx("div",{className:"flex justify-end",children:e.jsxs(B,{open:H,onOpenChange:t=>{b(t),t||y()},children:[e.jsx(O,{asChild:!0,children:e.jsxs(u,{size:"sm",children:[e.jsx(J,{className:"h-4 w-4 mr-1"}),"Adicionar Pixel"]})}),e.jsxs(q,{className:"max-w-lg max-h-[85vh] overflow-y-auto",children:[e.jsx(K,{children:e.jsx(U,{children:"Novo Pixel / Script"})}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(o,{children:"Plataforma"}),e.jsxs(x,{value:c.platform,onValueChange:t=>r(l=>({...l,platform:t})),children:[e.jsx(g,{children:e.jsx(v,{})}),e.jsx(f,{children:E.map(t=>e.jsx(j,{value:t.value,children:t.label},t.value))})]})]}),c.platform!=="custom"&&e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(o,{children:"ID do Pixel / Tag"}),e.jsx(h,{placeholder:c.platform==="facebook"?"Ex: 123456789":c.platform==="gtm"?"Ex: GTM-XXXXX":"Ex: G-XXXXXX",value:c.pixel_id,onChange:t=>r(l=>({...l,pixel_id:t.target.value})),maxLength:100})]}),c.platform==="custom"&&e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(o,{children:"Script Customizado"}),e.jsx(N,{placeholder:"<script>...<\/script> ou código JS",rows:5,value:c.custom_script??"",onChange:t=>r(l=>({...l,custom_script:t.target.value,pixel_id:"custom-"+Date.now()})),maxLength:5e3})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(o,{children:"Nome / Label (opcional)"}),e.jsx(h,{placeholder:"Ex: Pixel Principal",value:c.label??"",onChange:t=>r(l=>({...l,label:t.target.value})),maxLength:100})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(o,{children:"Posicionamento"}),e.jsxs(x,{value:c.placement,onValueChange:t=>r(l=>({...l,placement:t})),children:[e.jsx(g,{children:e.jsx(v,{})}),e.jsx(f,{children:m1.map(t=>e.jsx(j,{value:t.value,children:t.label},t.value))})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(o,{children:"Filtro de Página"}),e.jsxs(x,{value:c.page_filter,onValueChange:t=>r(l=>({...l,page_filter:t})),children:[e.jsx(g,{children:e.jsx(v,{})}),e.jsx(f,{children:P.map(t=>e.jsx(j,{value:t.value,children:t.label},t.value))})]})]}),c.page_filter==="custom"&&e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(o,{children:"Caminhos (um por linha)"}),e.jsx(N,{placeholder:`/checkout 2/landing`,rows:3,value:(c.custom_pages??[]).join(` 3`),onChange:t=>r(l=>({...l,custom_pages:t.target.value.split(` 4`).map(m=>
4m.trim()).filter(Boolean)}))})]}),c.platform==="facebook"&&e.jsxs("div",{className:"space-y-3 border-t pt-3",children:[e.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1",children:[e.jsx(W,{className:"h-3.5 w-3.5"}),"Conversions API (CAPI) - opcional, para server-side"]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(o,{children:"API Token"}),e.jsx(h,{placeholder:"Token de acesso da Conversions API",value:c.api_token??"",onChange:t=>r(l=>({...l,api_token:t.target.value})),maxLength:500})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(o,{children:"Test Event Code"}),e.jsx(h,{placeholder:"Ex: TEST12345",value:c.test_event_code??"",onChange:t=>r(l=>({...l,test_event_code:t.target.value})),maxLength:50})]})]})]}),e.jsxs(Y,{children:[e.jsx(Q,{asChild:!0,children:e.jsx(u,{variant:"outline",children:"Cancelar"})}),e.jsx(u,{onClick:I,disabled:d.isPending,children:d.isPending?"Salvando...":"Adicionar"})]})]})]})}),n?e.jsx("p",{className:"text-sm text-muted-foreground text-center py-12",children:"Carregandoâ¦"}):s!=null&&s.length?s.map(t=>{var m;const l=h1(t.platform);return e.jsx(V,{className:"group",children:e.jsxs(a1,{className:"flex flex-row items-center gap-4 py-4",children:[e.jsx("div",{className:"p-2 rounded-lg bg-primary/10 text-primary",children:e.jsx(l,{className:"h-5 w-5"})}),e.jsxs("div",{className:"flex-1 min-w-0 space-y-0.5",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t1,{className:"text-sm truncate",children:t.label||u1(t.platform)}),e.jsx(M,{variant:t.is_active?"default":"secondary",className:"text-[10px]",children:t.is_active?"Ativo":"Inativo"}),e.jsx(M,{variant:"outline",className:"text-[10px]",children:t.placement==="head"?"<head>":t.placement==="body_start"?"<body> inÃcio":"<body> final"})]}),e.jsxs(l1,{className:"text-xs font-mono truncate",children:[t.platform!=="custom"?t.pixel_id:"Script customizado"," · ",((m=P.find(p=>p.value===t.page_filter))==null?void 0:m.label)??t.page_filter]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(c1,{checked:t.is_active,onCheckedChange:p=>L(t.id,p)}),e.jsx(u,{variant:"ghost",size:"icon",className:"text-destructive opacity-0 group-hover:opacity-100 transition-opacity",onClick:()=>D(t.id),children:e.jsx(s1,{className:"h-4 w-4"})})]})]})},t.id)}):e.jsx(V,{children:e.jsx(e1,{className:"py-12 text-center text-muted-foreground text-sm",children:'Nenhum pixel configurado. Clique em "Adicionar Pixel" para começar.'})})]})})]})}export{y1 as default};
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.