PageSourceSearch

https://app.genpage.ai/assets/alerts-DaU99Alk.js

js genpage.ai collected 2026-09-24 10:22:36 UTC 43,214 bytes, 1 lines download raw bytes

1import{d as Be,c as ye,j as e,D as Se,r as j,q as $,u as Fe,g as Ie,a9 as Ae,ak as We,B as De}from"./index-pfB80LZ_.js";import{u as Ve}from"./store-DA0bRDRs.js";import{u as ge,g as Re,s as He}from"./workspace-Cwh_7ZLN.js";import{p as Pe,s as Oe}from"./page-header-BeTQ4iuJ.js";import{c as I,L as $e,a as Ue,E as Ge,b as Qe}from"./linked-in-bnAxGzdU.js";import{E as je,a as ve,b as ke,c as Le,d as Ye}from"./empty-7FwrhJCE.js";import{e as x,T as qe,a as Ke,b as A,c as Ze,d as ue}from"./table-Kxl-gIZu.js";import{u as Xe,a as Je}from"./queryAlert-BGJeqPpy.js";import{c as Ee,d as e1,f as t1,U as r1,u as a1,e as n1}from"./avatar-jSUOJRFW.js";import{u as s1}from"./useGetCampaignOptions-BFneADWq.js";import{g as o1}from"./rows-per-page-BbCfyTry.js";import{l as i1}from"./linked-in-fNXQrC7l.js";import{u as c1}from"./use-get-campaign-experiments-ClmBKuAm.js";import{G as s}from"./iconBase-DRm1YDGF.js";import{e as l1,s as d1,c as u1}from"./safari-compact-DqWzqW73.js";import{g as he}from"./flags-D2xwpC-a.js";import{C as h1}from"./CampaignLinkButton-B1ks-26B.js";import{L as m1}from"./LandingPageLinkButton-CFX3FsfH.js";import{Y as p1,Z as x1,$ as f1,ab as g1}from"./mermaid-VLURNSYL-BRJe-tcx.js";import{S as i}from"./shimmer-skeleton-CsIAjN9Z.js";import{T as j1}from"./timer-CPczyd8y.js";import{G as U}from"./users-BL6lkWG9.js";import{S as v1}from"./smartphone-0zyeCZqT.js";import{M as k1}from"./monitor-CCcfSIVb.js";import{M as Ne}from"./mouse-CRef5oNI.js";import{M as L1}from"./mouse-pointer-click-CI3LZfJn.js";import{a as me,L as N1,C as b1}from"./campaign-link-DWgp7t11.js";import{D as w1}from"./data-pagination-LQlXB6LK.js";import{S as C1}from"./sparkles-V4b0UAHq.js";import"./use-get-workspaces-L0cVDqIy.js";import"./thinking-orb-inline-CA4wR67f.js";import"./useAcceptInvite-jnUXdQ3J.js";import"./arrow-right-ChtUm7we.js";import"./badge-BmAMyJR9.js";import"./index-TTvjtAtl.js";import"./index-DkhtWE6G.js";import"./format-Nkvq8IQd.js";import"./purify.es-CqxHTgmJ.js";import"./useGetAnalyticsBoard-DzZ0G0-B.js";import"./useGetLead-CngGlCA3.js";import"./select-CK6kec0b.js";import"./chevron-down-C8CCelD7.js";import"./index-BdQq_4o_.js";import"./funnel-BYYOIjC_.js";import"./activity-BsKyfiok.js";import"./hover-card-BC-bURtz.js";import"./generate-campaign-link-BWVuRRTL.js";import"./index-Bz0qjLJ5.js";import"./schema-DnTGXoaf.js";import"./useGetCampaigns-BWjVVgWz.js";import"./checkout-confirmation-BFSlV5Y1.js";import"./useGetCreditPool-Cch1Cy8O.js";import"./type-CAspDw_N.js";import"./label-DaMwjltI.js";import"./index-CcCgRlET.js";import"./user-x-BRQdhFJZ.js";import"./field-EsuXmdQX.js";import"./ellipsis-k-sY_dBy.js";const M1=async t=>{var l;return((l=(await ye.get(`project/statistics/getActivityLog/get/single/${t}`)).data)==null?void 0:l.data)??{}},z1="activityLog",T1=t=>Be({enabled:!!t,queryKey:[z1,t],queryFn:()=>M1(t)});function _1(t){return s({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M420.55,301.93a24,24,0,1,1,24-24,24,24,0,0,1-24,24m-265.1,0a24,24,0,1,1,24-24,24,24,0,0,1-24,24m273.7-144.48,47.94-83a10,10,0,1,0-17.27-10h0l-48.54,84.07a301.25,301.25,0,0,0-246.56,0L116.18,64.45a10,10,0,1,0-17.27,10h0l47.94,83C64.53,202.22,8.24,285.55,0,384H576c-8.24-98.45-64.54-181.78-146.85-226.55"},child:[]}]})(t)}function B1(t){return s({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"},child:[]}]})(t)}function y1(t){return s({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109
1-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"},child:[]}]})(t)}function S1(t){return s({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"},child:[]}]})(t)}function F1(t){return s({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M503.52,241.48c-.12-1.56-.24-3.12-.24-4.68v-.12l-.36-4.68v-.12a245.86,245.86,0,0,0-7.32-41.15c0-.12,0-.12-.12-.24l-1.08-4c-.12-.24-.12-.48-.24-.6-.36-1.2-.72-2.52-1.08-3.72-.12-.24-.12-.6-.24-.84-.36-1.2-.72-2.4-1.08-3.48-.12-.36-.24-.6-.36-1-.36-1.2-.72-2.28-1.2-3.48l-.36-1.08c-.36-1.08-.84-2.28-1.2-3.36a8.27,8.27,0,0,0-.36-1c-.48-1.08-.84-2.28-1.32-3.36-.12-.24-.24-.6-.36-.84-.48-1.2-1-2.28-1.44-3.48,0-.12-.12-.24-.12-.36-1.56-3.84-3.24-7.68-5-11.4l-.36-.72c-.48-1-.84-1.8-1.32-2.64-.24-.48-.48-1.08-.72-1.56-.36-.84-.84-1.56-1.2-2.4-.36-.6-.6-1.2-1-1.8s-.84-1.44-1.2-2.28c-.36-.6-.72-1.32-1.08-1.92s-.84-1.44-1.2-2.16a18.07,18.07,0,0,0-1.2-2c-.36-.72-.84-1.32-1.2-2s-.84-1.32-1.2-2-.84-1.32-1.2-1.92-.84-1.44-1.32-2.16a15.63,15.63,0,0,0-1.2-1.8L463.2,119a15.63,15.63,0,0,0-1.2-1.8c-.48-.72-1.08-1.56-1.56-2.28-.36-.48-.72-1.08-1.08-1.56l-1.8-2.52c-.36-.48-.6-.84-1-1.32-1-1.32-1.8-2.52-2.76-3.72a248.76,248.76,0,0,0-23.51-26.64A186.82,186.82,0,0,0,412,62.46c-4-3.48-8.16-6.72-12.48-9.84a162.49,162.49,0,0,0-24.6-15.12c-2.4-1.32-4.8-2.52-7.2-3.72a254,254,0,0,0-55.43-19.56c-1.92-.36-3.84-.84-5.64-1.2h-.12c-1-.12-1.8-.36-2.76-.48a236.35,236.35,0,0,0-38-4H255.14a234.62,234.62,0,0,0-45.48,5c-33.59,7.08-63.23,21.24-82.91,39-1.08,1-1.92,1.68-2.4,2.16l-.48.48H124l-.12.12.12-.12a.12.12,0,0,0,.12-.12l-.12.12a.42.42,0,0,1,.24-.12c14.64-8.76,34.92-16,49.44-19.56l5.88-1.44c.36-.12.84-.12,1.2-.24,1.68-.36,3.36-.72,5.16-1.08.24,0,.6-.12.84-.12C250.94,20.94,319.34,40.14,367,85.61a171.49,171.49,0,0,1,26.88,32.76c30.36,49.2,27.48,111.11,3.84,147.59-34.44,53-111.35,71.27-159,24.84a84.19,84.19,0,0,1-25.56-59,74.05,74.05,0,0,1,6.24-31c1.68-3.84,13.08-25.67,18.24-24.59-13.08-2.76-37.55,2.64-54.71,28.19-15.36,22.92-14.52,58.2-5,83.28a132.85,132.85,0,0,1-12.12-39.24c-12.24-82.55,43.31-153,94.31-170.51-27.48-24-96.47-22.31-147.71,15.36-29.88,22-51.23,53.16-62.51,90.36,1.68-20.88,9.6-52.08,25.8-83.88-17.16,8.88-39,37-49.8,62.88-15.6,37.43-21,82.19-16.08,124.79.36,3.24.72,6.36,1.08,9.6,19.92,117.11,122,206.38,244.78,206.38C392.77,503.42,504,392.19,504,255,503.88,250.48,503.76,245.92,503.52,241.48Z"},child:[]}]})(t)}function I1(t){return s({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},child:[]}]})(t)}function A1(t){return s({attr:{viewBox:"0 0 488 512"},child:[{tag:"path",attr:{d:"M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"},child:[]}]})(t)}function W1(t){return s({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(t)}function D1(t){return s({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M313.9 32.7c-170.2 0-252.6 223.8-147.5 355.1 36.5 45.4 88.6 75.6 147.5 75.6 36.3 0 70.3-11.1 99.4-30.4-43.8 39.2-101.9 63-165.3 63-3.9 0-8 0-11.9-.3C104.6 489.6 0 381.1 0 248 0 111 111 0 248 0h.8c63.1.3 120.7 24.1 164.4 63.1-29-19.4-63.1-30.4-99.3-30.4zm101.8 397.7c-40.9 24.7-90.7 23.6-132-5.8 56.2-20.5 97.7-91.6 97.7-176.6 0-84.7-41.2
1-155.8-97.4-176.6 41.8-29.2 91.2-30.3 132.9-5 105.9 98.7 105.5 265.7-1.2 364z"},child:[]}]})(t)}function V1(t){return s({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"},child:[]}]})(t)}function R1(t){return s({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M201.5 305.5c-13.8 0-24.9-11.1-24.9-24.6 0-13.8 11.1-24.9 24.9-24.9 13.6 0 24.6 11.1 24.6 24.9 0 13.6-11.1 24.6-24.6 24.6zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-132.3-41.2c-9.4 0-17.7 3.9-23.8 10-22.4-15.5-52.6-25.5-86.1-26.6l17.4-78.3 55.4 12.5c0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.3 24.9-24.9s-11.1-24.9-24.9-24.9c-9.7 0-18 5.8-22.1 13.8l-61.2-13.6c-3-.8-6.1 1.4-6.9 4.4l-19.1 86.4c-33.2 1.4-63.1 11.3-85.5 26.8-6.1-6.4-14.7-10.2-24.1-10.2-34.9 0-46.3 46.9-14.4 62.8-1.1 5-1.7 10.2-1.7 15.5 0 52.6 59.2 95.2 132 95.2 73.1 0 132.3-42.6 132.3-95.2 0-5.3-.6-10.8-1.9-15.8 31.3-16 19.8-62.5-14.9-62.5zM302.8 331c-18.2 18.2-76.1 17.9-93.6 0-2.2-2.2-6.1-2.2-8.3 0-2.5 2.5-2.5 6.4 0 8.6 22.8 22.8 87.3 22.8 110.2 0 2.5-2.2 2.5-6.1 0-8.6-2.2-2.2-6.1-2.2-8.3 0zm7.7-75c-13.6 0-24.6 11.1-24.6 24.9 0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.1 24.9-24.6 0-13.8-11-24.9-24.9-24.9z"},child:[]}]})(t)}function H1(t){return s({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm121.8 169.9l-40.7 191.8c-3 13.6-11.1 16.9-22.4 10.5l-62-45.7-29.9 28.8c-3.3 3.3-6.1 6.1-12.5 6.1l4.4-63.1 114.9-103.8c5-4.4-1.1-6.9-7.7-2.5l-142 89.4-61.2-19.1c-13.3-4.2-13.6-13.3 2.8-19.7l239.1-92.2c11.1-4 20.8 2.7 17.2 19.5z"},child:[]}]})(t)}function P1(t){return s({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z"},child:[]}]})(t)}function O1(t){return s({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"},child:[]}]})(t)}function $1(t){return s({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M150.94 192h33.73c11.01 0 18.61-10.83 14.86-21.18-4.93-13.58-7.55-27.98-7.55-42.82s2.62-29.24 7.55-42.82C203.29 74.83 195.68 64 184.67 64h-33.73c-7.01 0-13.46 4.49-15.41 11.23C130.64 92.21 128 109.88 128 128c0 18.12 2.64 35.79 7.54 52.76 1.94 6.74 8.39 11.24 15.4 11.24zM89.92 23.34C95.56 12.72 87.97 0 75.96 0H40.63c-6.27 0-12.14 3.59-14.74 9.31C9.4 45.54 0 85.65 0 128c0 24.75 3.12 68.33 26.69 118.86 2.62 5.63 8.42 9.14 14.61 9.14h34.84c12.02 0 19.61-12.74 13.95-23.37-49.78-93.32-16.71-178.15-.17-209.29zM614.06 9.29C611.46 3.58 605.6 0 599.33 0h-35.42c-11.98 0-19.66 12.66-14.02 23.25 18.27 34.29 48.42 119.42.28 209.23-5.72 10.68 1.8 23.52 13.91 23.52h35.23c6.27 0 12.13-3.58 14.73-9.29C630.57 210.48 640 170.36 640 128s-9.42-82.48-25.94-118.71zM489.06 64h-33.73c-11.01 0-18.61 10.83-14.86 21.18 4.93 13.58 7.55 27.98 7.55 42.82s-2.62 29.24-7.55 42.82c-3.76 10.35 3.85 21.18 14.86 21.18h33.73c7.02 0 13.46-4.49 15.41-11.24 4.9-16.97 7.53-34.64 7.53-52.76 0-18.12-2.64-35.79-7.54-52.76-1.94-6.75-8.39-11.24-15.4-11.24zm-116.3 100.12c7.05-10.29 11.2-22.71 11.2-36.12 0-35.35-28.63-64-63.96-64-35.32 0-63.96 28.65-63.96 64 0 13.41 4.15 25.83 11.2 36.12l-130.5 313.41c-3.4 8.15.46 17.52 8.61 20.92l29.51 12.31c8.15 3.4 17.52-.46 20.91-8.61L244.96 384h150.07l49.2 118.15c3.4 8.16 12.76 12.01 20.91 8.61l29.51-12.31c8.15-3.4 12-12.77 8.61-20.92l-130.5-313.41zM271.62 320L320 203.81 368.38 320h-96.76z"},child:[]}]})(t)}function U1(t){return s({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z"},child:[]}]})(t)}function G1(t){switch(t==null?void 0:t.toLowerCase()){case"chrome":return e.jsx("img",{src:u1,width:14,alt:"Chrome"});case"safari":return e.jsx("img",{src:d1,width:14,alt:"Safari"});case"firefox":return e.jsx(F1,{size:14,color:"orange"});case"edge":return e.jsx("img",{src:l1,width:14,alt:"Edge"});case"opera":return e.jsx(D1,{size:14,color:"red"});default:return e.jsx($1,{size:14,className:"text-muted-foreground"})}}function Q1(t){const n=(t==null?void 0:t.toLowerCase())??"";return n.includes("win")?e.jsx(P1,{className:"size-3.5 text-[#0078D7]"}):n.includes("mac")||n.includes("ios")?e.jsx(B1,{className:"size-3.5 text-foreground"}):n.includes("android")?e.jsx(_1,{className:"size-3.5 text-[#3DDC84]"}):e.jsx(U1,{className:"size-3.5 text-muted-foreground"})}function Y1(t,n){switch(t){case"page_visited":return{label:"Page visited",detail
1:n};case"link_clicked":return{label:"Link clicked",detail:n};case"page_scrolled":return{label:`Scrolled to ${n}%`};case"form_submit":return{label:"Form submitted"};default:return{label:t,detail:n}}}function q1(t){if(!t)return"—";const n=new Date(t);return isNaN(n.getTime())?t:n.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}const K1={page_visited:e.jsx(Se,{className:"size-3.5"}),link_clicked:e.jsx(L1,{className:"size-3.5"}),page_scrolled:e.jsx(Ne,{className:"size-3.5"})},Z1={page_visited:"bg-primary/10 text-primary",link_clicked:"bg-amber-500/10 text-warning",page_scrolled:"bg-muted text-muted-foreground"},X1=({show:t,setShow:n,projectStatId:l})=>{var B;const f=T1(l),a=f.data||null,w=f.isLoading,{data:g}=c1({campaign_id:(a==null?void 0:a.product_id)??0}),W=()=>n(!1),c=a==null?void 0:a.subscriber,{getLeadVariableValue:_}=ge({leadList:a!=null&&a.subscriber?[a==null?void 0:a.subscriber]:[]}),N=c?_(c,"profile_picture"):void 0,v=c?_(c,"linkedin_profile_url"):void 0,L=(a==null?void 0:a.project_interaction)??[],D=a!=null&&a.created_at?new Date(a.created_at).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}):null;return e.jsx(p1,{open:t,onOpenChange:W,children:e.jsxs(x1,{"aria-describedby":void 0,side:"right",size:"md",className:"bg-background p-0",children:[e.jsx(f1,{className:"sr-only",children:"Visit details"}),w?e.jsx(J1,{}):e.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[e.jsxs("div",{className:"border-b px-6 pt-6 pb-5",children:[e.jsxs("div",{className:"flex items-start gap-3 pr-8",children:[e.jsxs("div",{className:"relative shrink-0",children:[e.jsxs(Ee,{className:"size-12 rounded-xl border border-border",children:[e.jsx(e1,{className:"object-cover",src:N}),e.jsx(t1,{className:"rounded-xl bg-muted",children:e.jsx(r1,{className:"size-5 text-muted-foreground"})})]}),(c==null?void 0:c.logo)&&e.jsx("div",{className:"absolute -right-1.5 -bottom-1.5 rounded-md bg-background p-0.5 shadow-sm ring-1 ring-border",children:e.jsx("img",{src:c.logo,alt:"",className:"size-4 rounded-sm object-contain"})})]}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("h2",{className:"truncate text-base font-semibold text-foreground",children:(c==null?void 0:c.name)??"Unknown visitor"}),v&&e.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:v,className:"shrink-0 opacity-70 transition-opacity hover:opacity-100",title:"View LinkedIn profile",children:e.jsx("img",{src:i1,className:"size-4",alt:"LinkedIn"})})]}),e.jsx("p",{className:"mt-0.5 truncate text-xs text-muted-foreground",children:[c==null?void 0:c.company_name,D].filter(Boolean).join(" · ")||"No additional details"})]})]}),e.jsxs("div",{className:"mt-4 flex flex-wrap gap-2",children:[c&&e.jsx(m1,{campaignId:(a==null?void 0:a.product_id)??0,companyNameSlug:c.company_name_slug,leadSlug:c.lead_slug}),e.jsx(h1,{campaignId:(g==null?void 0:g.id)??0,campaignName:g==null?void 0:g.name})]})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto",children:[e.jsxs("div",{className:"border-b px-6 py-5",children:[e.jsx(pe,{children:"Session"}),e.jsxs("dl",{className:"mt-1",children:[e.jsx(z,{label:"Duration",icon:e.jsx(j1,{className:"size-3.5 text-muted-foreground"}),value:a!=null&&a.time_on_page?E1(a.time_on_page):"—"}),e.jsx(z,{label:"Country",icon:a!=null&&a.country_code&&he(a.country_code.toLowerCase())?e.jsx("img",{src:he(a.country_code.toLowerCase()),className:"w-4 rounded-[2px]",alt:""}):e.jsx(U,{className:"size-3.5 text-muted-foreground"}),value:(a==null?void 0:a.country_name)??"Unknown"}),e.jsx(z,{label:"Referrer",icon:e.jsx(U,{className:"size-3.5 text-muted-foreground"}),value:a!=null&&a.referrer?(()=>{try{return new URL(a.referrer).hostname}catch{return a.referrer}})():"Direct"}),e.jsx(z,{label:"Device",icon:((B=a==null?void 0:a.device_type)==null?void 0:B.toLowerCase())==="mobile"?e.jsx(v1,{className:"size-3.5 text-muted-foreground"}):e.jsx(k1,{className:"size-3.5 text-muted-foreground"}),value:(a==null?void 0:a.device_type)??"Unknown"}),e.jsx(z,{label:"Operating system",icon:Q1(a==null?void 0:a.os_name),value:(a==null?void 0:a.os_name)??"Unknown"}),e.jsx(z,{label:"Browser",icon:G1(a==null?void 0:a.browser_name),value:(a==null?void 0:a.browser_name)??"Unknown",isLast:!0})]})]}),e.jsxs("div",{className:"px-6 py-5",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(pe,{children:"Activity"}),L.length>0&&e.jsxs("span",{className:"text-2xs font-medium text-muted-foreground",children:[L.length," ",L.length===1?"event":"events"]})]}),L.length>0?e.jsx("ol",{className:"mt-3",children:L.map((b,y)=>{const{label:V,detail:C}=Y1(b.event,b.value),m=Z1[b.event]??"bg-muted text-muted-foreground",S=K1[b.event]??e.jsx("div",{className:"size-1.5 rounded-full bg-current"}),T=y===L.length-1;return e.jsxs("li",{className:"flex gap-3",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("span",{className:`flex size-7 shrink-0 items-center justify-center rounded-full ${m}`,children:S}),!T&&e.jsx("span",{className:"mt-1 w-px flex-1 bg-border"})]}),e.jsxs("div",{className:`min-w-0 flex-1 ${T?"":"pb-4"}`,children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx("p",{className:"text-xs font-medium text-foreground",children:V}),e.jsx("span",{className:"shrink-0 pt-px font-mono text-2xs text-muted-foreground",children:q1(b.created_at)})]}),C&&e.jsx("p",{className:"mt-0.5 truncate text-2xs text-muted-foreground",title:C,children:C})]})]},y)})}):e.jsx(je,{className:"mt-3 border border-border/60 py-10",children:e.jsxs(ve,{children:[e.jsx(ke,{variant:"icon",children:e.jsx(Ne,{})}),e.jsx(Le,{children:"No interactions recorded"})]})})]})]})]})]})})};function pe({children:t}){return e.jsx("h3",{className:"text-2xs font-medium tracking-wider text-muted-foreground uppercase",children:t})}function z({label:t,value:n,icon:l,isLast:f=!1}){return e.jsxs("div",{className:`flex items-center justify-between gap-4 py-2 ${f?"":"border-b border-border/50"}`,children:[e.jsxs("dt",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center",children:l}),t]}),e.jsx("dd",{className:"truncate text-xs font-medium text-foreground capitalize",title:n,children:n})]})}function J1(){return e.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[e.jsxs("div",{className:"border-b px-6 pt-6 pb-5",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(i,{className:"size-12 rounded-xl"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(i,{className:"h-4 w-40"}),e.jsx(i,{className:"h-3 w-28"})]})]}),e.jsxs("div",{className:"mt-4 flex gap-2",children:[e.jsx(i,{className:"h-8 w-28 rounded-md"}),e.jsx(i,{className:"h-8 w-24 rounded-md"})]})]}),e.jsxs("div",{className:"border-b px-6 py-5",children:[e.jsx(i,{className:"h-3 w-16"}),e.jsx("div",{className:"mt-4 space-y-3",children:[...Array(6)].map((t,n)=>e.jsxs("div",{className:"flex justify-between",children:[e.jsx(i,{className:"h-3 w-24"}),e.jsx(i,{className:"h-3 w-20"})]},n))})]}),e.jsxs("div",{className:"px-6 py-5",children:[e.jsx(i,{className:"h-3 w-16"}),e.jsx("div",{className:"mt-4 space-y-4",children:[...Array(3)].map((t,n)=>e.jsxs("div",{className:"flex gap-3",children:[e.jsx(i,{className:"size-7 rounded-full"}),e.jsxs("div",{className:"flex-1 space-y-1.5",children:[e.jsx(i,{className:"h-3 w-32"}),e.jsx(i,{className:"h-3 w-48"})]})]},n))})]})]})}function E1(t){if(t<60)return`${t}s`;const n=Math.floor(t/60),l=t%60;return n<60?`${n}m ${l}s`:`${Math.floor(n/60)}h ${n%60}m`}function xe({dateString:t,className:n,...l}){const f=j.useMemo(()=>t?Re(new Date(t),{addSuffix:!0,includeSeconds:!0}).replace(/^about\s+/i,""):"-",[t]),a=j.useMemo(()=>
1{if(!t)return!1;const w=new Date(t),g=new Date;return w.getTime()>g.getTime()-24*60*60*1e3},[t]);return e.jsx(x,{className:$("!px-4",n),...l,children:e.jsxs("div",{className:"flex items-center gap-2",title:t?new Date(t).toLocaleString():"",children:[e.jsx("div",{className:$("size-2 rounded-full bg-gray-300",{"bg-green-500":a})}),e.jsx("span",{children:f})]})})}function et(t){return s({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},child:[]}]})(t)}function tt(t){return s({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"},child:[]}]})(t)}function rt(t){return s({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"},child:[]}]})(t)}function at(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M7 20v-12a4 4 0 0 1 4 -4h2a4 4 0 0 1 4 4v12"},child:[]},{tag:"path",attr:{d:"M7 13l10 0"},child:[]}]})(t)}function nt(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M7 20v-16h6a4 4 0 0 1 0 8a4 4 0 0 1 0 8h-6"},child:[]},{tag:"path",attr:{d:"M7 12l6 0"},child:[]}]})(t)}function st(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 9a5 5 0 0 0 -5 -5h-2a5 5 0 0 0 -5 5v6a5 5 0 0 0 5 5h2a5 5 0 0 0 5 -5"},child:[]}]})(t)}function ot(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M7 4h6a5 5 0 0 1 5 5v6a5 5 0 0 1 -5 5h-6v-16"},child:[]}]})(t)}function it(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 4h-10v16h10"},child:[]},{tag:"path",attr:{d:"M7 12l8 0"},child:[]}]})(t)}function ct(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 4h-10v16"},child:[]},{tag:"path",attr:{d:"M7 12l8 0"},child:[]}]})(t)}function lt(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 9a5 5 0 0 0 -5 -5h-2a5 5 0 0 0 -5 5v6a5 5 0 0 0 5 5h2a5 5 0 0 0 5 -5v-2h-4"},child:[]}]})(t)}function dt(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 4l0 16"},child:[]},{tag:"path",attr:{d:"M7 12l10 0"},child:[]},{tag:"path",attr:{d:"M7 4l0 16"},child:[]}]})(t)}function ut(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 4l0 16"},child:[]}]})(t)}function ht(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 4v12a4 4 0 0 1 -4 4h-2a4 4 0 0 1 -4 -4"},child:[]}]})(t)}function mt(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M7 4l0 16"},child:[]},{tag:"path",attr:{d:"M7 12h2l8 -8"},child:[]},{tag:"path",attr:{d:"M9 12l8 8"},child:[]}]})(t)}function pt(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M7 4v16h10"},child:[]}]})(t)}function xt(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 20v-16l6 14l6 -14v16"},child:[]}]})(t)}function ft(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M7 20v-16l10 16v-16"},child:[]}]})(t)}function gt(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 9a5 5 0 0 0 -5 -5h-2a5 5 0 0 0 -5 5v6a5 5 0 0 0 5 5h2a5 5 0 0 0 5 -5v-6"},child:[]}]})(t)}function jt(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M7 20v-16h5.5a4 4 0 0 1 0 9h-5.5"},child:[]}]})(t)}function vt(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 9a5 5 0 0 0 -5 -5h-2a5 5 0 0 0 -5 5v6a5 5 0 0 0 5 5h2a5 5 0 0 0 5 -5v-6"},child:[]},{tag:"path",attr:{d:"M13 15l5 5"},child:[]}]})(t)}function kt(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M7 20v-16h5.5a4 4 0 0 1 0 9h-5.5"},child:[]},{tag:"path",attr:{d:"M12 13l5 7"},child:[]}]})(t)}function Lt(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 8a4 4 0 0 0 -4 -4h-2a4 4 0 0 0 0 8h2a4 4 0 0 1 0 8h-2a4 4 0 0 1 -4 -4"},child:[]}]})(t)}function Nt(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 4l12 0"},child:[]},{tag:"path",attr:{d:"M12 4l0 16"},child:[]}]})(t)}function bt(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 4v11a5 5 0 0 0 5 5h2a5 5 0 0 0 5 -5v-11"},child:[]}]})(t)}function wt(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 4l6 16l6 -16"},child:[]}]})(t)}function Ct(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 4l4 16l4 -14l4 14l4 -16"},child:[]}]})(t)}function Mt(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M7 4l10 16"},child:[]},{tag:"path",attr:{d:"M17 4l-10 16"},child:[]}]})(t)}function zt(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M7 4l5 9l5 -9"}
1,child:[]},{tag:"path",attr:{d:"M12 13l0 7"},child:[]}]})(t)}function Tt(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M7 4h10l-10 16h10"},child:[]}]})(t)}function G(t){return s({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"},child:[]},{tag:"path",attr:{d:"M3.6 9h16.8"},child:[]},{tag:"path",attr:{d:"M3.6 15h16.8"},child:[]},{tag:"path",attr:{d:"M11.5 3a17 17 0 0 0 0 18"},child:[]},{tag:"path",attr:{d:"M12.5 3a17 17 0 0 1 0 18"},child:[]}]})(t)}const _t=t=>{if(!t)return{icon:G,color:"#6B7280",name:"Direct"};const n=t.toLowerCase();if(n.includes("linkedin.com"))return{icon:et,color:"#0077B5",name:"LinkedIn"};if(n.includes("facebook.com")||n.includes("fb.com"))return{icon:S1,color:"#1877F2",name:"Facebook"};if(n.includes("twitter.com")||n.includes("x.com"))return{icon:tt,color:"#000000",name:"X (Twitter)"};if(n.includes("google.com")||n.includes("google.")||n.includes("gmail.com"))return{icon:A1,color:"#4285F4",name:"Google"};if(n.includes("instagram.com"))return{icon:W1,color:"#E4405F",name:"Instagram"};if(n.includes("youtube.com")||n.includes("youtu.be"))return{icon:O1,color:"#FF0000",name:"YouTube"};if(n.includes("tiktok.com"))return{icon:rt,color:"#000000",name:"TikTok"};if(n.includes("reddit.com"))return{icon:R1,color:"#FF4500",name:"Reddit"};if(n.includes("pinterest.com"))return{icon:V1,color:"#BD081C",name:"Pinterest"};if(n.includes("github.com"))return{icon:I1,color:"#333333",name:"GitHub"};if(n.includes("discord.com")||n.includes("discord.gg"))return{icon:y1,color:"#5865F2",name:"Discord"};if(n.includes("telegram.org")||n.includes("t.me"))return{icon:H1,color:"#0088CC",name:"Telegram"};try{const l=new URL(t).hostname;return{icon:Bt(l),color:"#6B7280",name:l}}catch{return{icon:G,color:"#6B7280",name:"Website"}}};function Bt(t){switch(t.replace("www.","").split(".")[0].substring(0,2).toUpperCase()){case"A":return at;case"B":return nt;case"C":return st;case"D":return ot;case"E":return it;case"F":return ct;case"G":return lt;case"H":return dt;case"I":return ut;case"J":return ht;case"K":return mt;case"L":return pt;case"M":return xt;case"N":return ft;case"O":return gt;case"P":return jt;case"Q":return vt;case"R":return kt;case"S":return Lt;case"T":return Nt;case"U":return bt;case"V":return wt;case"W":return Ct;case"X":return Mt;case"Y":return zt;case"Z":return Tt;default:return G}}const fe="a,button,input,[role='checkbox'],[role='menuitem']";function yt(){var X;const[t,n]=j.useState({show:!1,projectStatId:""}),[l,f]=j.useState(1),[a,w]=j.useState(()=>o1("alerts")),[g,W]=j.useState(""),[c,_]=j.useState(!1),[N,v]=j.useState([I()]),L=()=>v(r=>[...r,I()]),D=r=>v(u=>{const p=u.filter(o=>o.id!==r);return p.length===0?[I()]:p}),B=(r,u)=>v(p=>p.map(o=>o.id===r?{...o,field:u,operator:"equals",value:""}:o)),b=(r,u)=>v(p=>p.map(o=>o.id===r?{...o,operator:u}:o)),y=(r,u)=>v(p=>p.map(o=>o.id===r?{...o,value:u}:o)),V=()=>v([I()]),C=N.filter(r=>r.field&&r.value).length,m=Fe(r=>r.currentWorkspace),S=Ie(),T=r=>n({projectStatId:r??"",show:!0}),Q=((X=s1({slug:(m==null?void 0:m.slug)??"",params:{page:1,orderType:"desc",count:1e3}}).data)==null?void 0:X.data.data)??[],{data:be}=a1({workspace_id:(m==null?void 0:m.id)??0},{enabled:!!(m!=null&&m.id)}),Y=be??[],R=N.filter(r=>r.field==="landingPage"&&r.value).map(r=>Number(r.value)),H=N.filter(r=>r.field==="audience"&&r.value).map(r=>Number(r.value)),P=N.filter(r=>r.field==="engagement"&&r.value).map(r=>r.value),we=j.useMemo(()=>({landingPage:Q.map(r=>({value:String(r.id),label:r.name})),engagement:n1.map(r=>({value:r.value,label:r.name})),audience:Y.map(r=>({value:String(r.id),label:r.id===0?`None (${r.lead_count})`:`${r.name} (${r.lead_count})`}))}),[Q,Y]),Ce=JSON.stringify([R,H,P]);j.useEffect(()=>{f(1)},[Ce]);const q=Xe({unreadOnly:!1,page:l,perPage:a,campaignIdList:R.length>0?R:void 0,audienceIdList:H.length>0?H:void 0,engagementList:P.length>0?P:void 0}),Me=Je(l,a).data||[],M=q.data,k=(M==null?void 0:M.data)||[],K=(M==null?void 0:M.total)||0,O=q.isLoading,ze=(k==null?void 0:k.map(r=>r.data.lead))??[],{getLeadVariableValue:Z,getLeadFullName:Te}=ge({leadList:ze});return e.jsxs("section",{className:"relative flex min-h-0 flex-1 flex-col bg-background",children:[e.jsx("div",{className:"flex w-full flex-col items-start",children:e.jsx(Ae,{title:"Alert Center",counts:0})}),e.jsxs("div",{className:$(Pe,"w-full"),children:[e.jsx("div",{className:"flex items-center gap-2",children:e.jsx($e,{open:c,onOpenChange:_,rows:N,optionsForField:r=>r?we[r]:[],activeCount:C,onFieldChange:B,onOperatorChange:b,onValueChange:y,onRemoveRow:D,onAddRow:L,onClearAll:V})}),e.jsx(We,{filter:g,setFilter:W,name:"alerts"})]}),!O&&(k==null?void 0:k.length)===0&&C===0?e.jsx("div",{className:"pointer-events-none absolute inset-0 z-10 flex items-center justify-center",children:e.jsx(je,{children:e.jsxs(ve,{children:[e.jsx(ke,{variant:"icon",children:e.jsx(g1,{"aria-hidden":"true"})}),e.jsx(Le,{children:"No alerts yet"}),e.jsx(Ye,{children:"Publish pages and send them to your customers to 
1start gathering engagement data."})]})})}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"overflow-x-auto bg-background",children:e.jsxs(qe,{className:`m-0 w-full overflow-hidden ${Oe}`,children:[e.jsx(Ke,{children:e.jsx(A,{children:["Name","Company","LinkedIn","Email","Link","Landing Page","Referrer","Viewed"].map((r,u)=>e.jsx(Ze,{className:"px-4 text-left",children:r},u))})}),O&&e.jsx(ue,{children:[...Array(9)].map((r,u)=>e.jsxs(A,{className:"pointer-events-none cursor-default bg-transparent",children:[e.jsx(x,{className:"px-4",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(i,{className:"size-8 rounded-full"}),e.jsx(i,{className:"h-4 w-24"})]})}),e.jsx(x,{className:"px-4",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(i,{className:"size-6 rounded-sm"}),e.jsx(i,{className:"h-4 w-20"})]})}),e.jsx(x,{className:"px-4",children:e.jsx(i,{className:"size-6 rounded-sm"})}),e.jsx(x,{className:"px-4",children:e.jsx(i,{className:"h-4 w-32"})}),e.jsx(x,{className:"px-4",children:e.jsx(i,{className:"h-4 w-16"})}),e.jsx(x,{className:"px-4",children:e.jsx(i,{className:"h-6 w-20 rounded-md"})}),e.jsx(x,{className:"px-4",children:e.jsx(i,{className:"size-6 rounded-sm"})}),e.jsx(x,{className:"px-4",children:e.jsx(i,{className:"h-4 w-16"})})]},u))}),e.jsx(ue,{className:O?"hidden":"",children:k==null?void 0:k.map(({data:r,created_at:u,type:p})=>{var J,E,ee,te,re,ae,ne,se,oe,ie,ce,le;if(p!=null&&p.startsWith("AUTOPILOT_")){const d=(J=r==null?void 0:r.campaign)!=null&&J.id?`/workspaces
1/${m==null?void 0:m.slug}/autopilot/${r.campaign.id}`:null;return e.jsxs(A,{className:d?"cursor-pointer":void 0,tabIndex:d?0:void 0,onClick:h=>{d&&(h.target.closest(fe)||S.push(d))},onKeyDown:h=>{!d||h.target!==h.currentTarget||(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),S.push(d))},children:[e.jsx(x,{className:"px-4",colSpan:4,children:e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(C1,{className:"mt-0.5 size-4 shrink-0 text-primary"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"font-medium text-foreground",children:(r==null?void 0:r.headline)??"Autopilot update"}),r!=null&&r.detail?e.jsx("div",{className:"line-clamp-2 text-xs text-muted-foreground",children:r.detail}):null]})]})}),e.jsx(x,{className:"px-4 text-muted-foreground",children:r!=null&&r.round?`Round ${r.round}`:"—"}),e.jsx(me,{campaignId:(E=r==null?void 0:r.campaign)==null?void 0:E.id,campaignName:(ee=r==null?void 0:r.campaign)==null?void 0:ee.name}),e.jsx(x,{className:"px-4"}),e.jsx(xe,{dateString:u})]},`${p}-${r==null?void 0:r.experiment_id}-${u}`)}const o=p==="FORM_SUBMISSION"?He(r==null?void 0:r.form_data):null;return e.jsxs(A,{className:"cursor-pointer",tabIndex:0,onClick:d=>{d.target.closest(fe)||T(r==null?void 0:r.project_stat_id)},onKeyDown:d=>{d.target===d.currentTarget&&(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),T(r==null?void 0:r.project_stat_id))},children:[e.jsx(N1,{imageUrl:Z(r==null?void 0:r.lead,"profile_picture"),name:Te(r==null?void 0:r.lead)||((te=r==null?void 0:r.lead)==null?void 0:te.name)||(o==null?void 0:o.name)||(o==null?void 0:o.email)}),e.jsx(b1,{imageUrl:(re=r==null?void 0:r.lead)==null?void 0:re.logo,name:((ae=r==null?void 0:r.lead)==null?void 0:ae.company_name)||(o==null?void 0:o.company)}),e.jsx(Ue,{profileUrl:Z(r==null?void 0:r.lead,"linkedin_profile_url")}),e.jsx(Ge,{email:((ne=r==null?void 0:r.lead)==null?void 0:ne.email)||(o==null?void 0:o.email),className:"max-w-[160px] truncate"}),e.jsx(Qe,{className:"px-4 py-2 font-normal text-muted-foreground",campaignId:(se=r==null?void 0:r.campaign)==null?void 0:se.id,companyNameSlug:(oe=r==null?void 0:r.lead)==null?void 0:oe.company_name_slug,leadSlug:(ie=r==null?void 0:r.lead)==null?void 0:ie.lead_slug}),e.jsx(me,{campaignId:(ce=r==null?void 0:r.campaign)==null?void 0:ce.id,campaignName:(le=r==null?void 0:r.campaign)==null?void 0:le.name}),e.jsx(x,{className:"max-w-[70px] px-4",children:e.jsx("div",{className:"flex h-full w-full items-center justify-start",children:(()=>{const d=r==null?void 0:r.project_stat_id,h=Me.find(_e=>_e.id===d),F=_t((h==null?void 0:h.referrer)||""),de=F.icon;return e.jsx(De,{variant:"ghost",size:"icon",title:`Referrer: ${F.name}`,onClick:()=>{h!=null&&h.referrer&&window.open(h.referrer,"_blank","noopener,noreferrer")},children:de?e.jsx(de,{className:"size-3.5",style:{color:F.color}}):e.jsx(U,{className:"size-3.5",style:{color:F.color}})})})()})}),e.jsx(xe,{dateString:u})]},r==null?void 0:r.id)})})]})}),e.jsx(w1,{tableId:"alerts",currentPage:l,totalPages:Math.ceil(K/a),totalRecords:K,perPage:a,onPageChange:r=>f(r),onPerPageChange:r=>{w(r),f(1)}})]}),e.jsx(X1,{show:t.show,setShow:r=>n({show:r,projectStatId:""}),projectStatId:t.projectStatId})]})}const V2=()=>(Ve(),e.jsx(yt,{}));export{V2 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.