PageSourceSearch

https://analytics.ghostid.ai/_next/static/chunks/5775-fa4ecac05e69b073.js

js ghostid.ai collected 2026-10-05 13:44:28 UTC 16,345 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5775],{21138:(e,t,a)=>{a.d(t,{e:()=>i});var s=a(54568);let r={feed:{container:"rounded-2xl border border-ghost-border bg-ghost-panel p-12 text-center",mascot:"mx-auto h-24 w-24 opacity-30",title:"mt-4 font-medium text-white",body:"mt-1 text-sm text-ghost-muted",titleText:"No Feed activity yet",bodyText:"Visitor activity will appear here as it happens."},bell:{container:"flex flex-col items-center gap-3 p-8 text-center",mascot:"h-14 w-14 opacity-30",title:"text-sm font-medium text-ghost-white",body:"mt-1 text-xs text-ghost-muted",titleText:"No Bell activity yet",bodyText:"Visitor activity will appear here as it happens."}};function i(e){let{surface:t}=e,a=r[t];return(0,s.jsxs)("div",{"data-branded-activity-empty":t,className:a.container,children:[(0,s.jsx)("img",{src:"/ghost-mascot.png",alt:"","data-branded-empty-mascot":!0,className:a.mascot}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:a.title,children:a.titleText}),(0,s.jsx)("p",{className:a.body,children:a.bodyText})]})]})}},22154:(e,t,a)=>{a.d(t,{Z9:()=>E,aI:()=>Y,oj:()=>O});var s=a(54568),r=a(7620),i=a(27737),n=a(21387),l=a(28593),o=a(81072),d=a(66924),c=a(63072),m=a(3094),x=a(31587),h=a(24643),u=a(34745),p=a(52817),g=a(77152),f=a(79967),b=a(82078),v=a(70415),j=a(93935),y=a(14502),w=a(56284),N=a(26862),_=a(87181),A=a(52137),k=a(40590),M=a(74717),T=a(15055),C=a(13119),F=a(89197),S=a(51166),L=a(32064),U=a(80021),V=a(72116),D=a(56178),I=a(56005),B=a(6140),P=a(25703);let $=Object.freeze({booking_confirmed:i.A,booking_rescheduled:n.A,booking_cancelled:l.A,booking_no_show:o.A,booking_click:d.A,booking_observed:c.A,sale_confirmed:m.A,sale_reversed:x.A,revenue_observed:h.A,form_submit:u.A,form_abandon:p.A,call_missed:g.A,call_callback_requested:f.A,contact_click:d.A,file_download:b.A,cart_intent:v.A,cart_abandoned:j.A,dormant_return:y.A,identity_verified:w.A,high_value_visit:N.A,returning:_.A,hot_lead:A.A,on_fire:h.A,pricing_page_revisit:k.A,ux_issue:M.A,competitor_referral:T.A});function q(e){let{profile:t,label:a,compact:i=!1}=e,n=(0,r.useMemo)(()=>t?[t.avatarUrl,t.gravatarUrl].filter(e=>!!e).filter((e,t,a)=>a.indexOf(e)===t):[],[t]),[l,o]=(0,r.useState)(0);(0,r.useEffect)(()=>o(0),[n]);let d=i?"h-8 w-8 text-[10px]":"h-10 w-10 text-xs sm:h-11 sm:w-11 sm:text-[13px]",c=n[l];if(c)return(0,s.jsx)("img",{"data-feed-avatar":"image",src:c,alt:"",className:(0,P.cn)(d,"shrink-0 rounded-full border border-ghost-border bg-ghost-void object-cover"),onError:()=>o(e=>e+1)});if(!t)return(0,s.jsx)("span",{"data-feed-avatar":"unmatched","aria-label":"Unmatched event",className:(0,P.cn)(d,"flex shrink-0 items-center justify-center rounded-full border border-ghost-border bg-ghost-void text-ghost-muted"),children:(0,s.jsx)(F.A,{className:i?"h-3.5 w-3.5":"h-4 w-4"})});let m="Anonymous visitor"===t.displayName||t.displayName.startsWith("Visitor from ");return(0,s.jsx)("span",{"data-feed-avatar":"fallback","aria-label":"".concat(a," avatar"),className:(0,P.cn)(d,"flex shrink-0 items-center justify-center rounded-full border font-semibold",m?"border-ghost-border bg-ghost-void text-ghost-muted":"border-ghost-border bg-white/[0.04] text-ghost-white/80"),children:m?(0,s.jsx)(F.A,{className:i?"h-3.5 w-3.5":"h-4 w-4"}):function(e){let t=(e.includes("@")?e.split("@")[0]:e).trim().split(/\s+/).filter(Boolean);return 0===t.length?"G":1===t.length?t[0].slice(0,2).toUpperCase():"".concat(t[0][0]).concat(t[t.length-1][0]).toUpperCase()}(t.displayName)})}function E(e,t){if(!e)return null;let a=e.identity;if(a&&"governed"===a.ownership){if(!a.route_id)return null;let e=Number.isSafeInteger(t)&&t>0?t:null;return null===e?null:"/identity/".concat(encodeURIComponent(a.route_id),"?siteId=").concat(e)}return"/visitor/".concat(encodeURIComponent(e.ghostVid))}function R(e,t){var a;let s=null==e?void 0:e.identity;return!!(s&&"governed"===s.ownership&&s.verification&&(null==(a=s.verification[t])?void 0:a.kind)==="operator")}function Z(e){return e?e.trim().replace(/^https?:\/\/[^/]+/i,"").replace(/\/+$/,"").toLowerCase():""}function O(e){let{item:t}=e,{profile:a,presentation:r}=t,i=$[t.signal_type]||C.A;return(0,s.jsxs)("div",{"data-feed-bell-row":!0,className:"flex min-w-0 gap-2.5",children:[(0,s.jsx)(q,{profile:a,label:r.identityLabel,compact:!0}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,s.jsx)("p",{"data-feed-bell-identity":!0,className:"truncate text-[13px] font-medium text-ghost-white",children:r.identityLabel}),(0,s.jsx)("time",{dateTime:t.created_at,className:"shrink-0 text-[10px] text-ghost-muted/60",children:(0,P.fw)(t.created_at)})]}),(0,s.jsxs)("p",{"data-feed-bell-activity":!0,className:"mt-0.5 flex min-w-0 items-center gap-1.5 text-[11px] leading-snug text-ghost-muted",children:[(0,s.jsx)(i,{"aria-hidden":"true",className:"h-3 w-3 shrink-0 text-ghost-muted/70"}),(0,s.jsx)("span",{className:"truncate",children:r.activityConcise})]}),r.primaryMetric&&(0,s.jsxs)("p",{"data-feed-bell-metric":!0,className:"mt-1 truncate text-[11px] font-medium text-emerald-300/90",children:[r.primaryMetric.value,(0,s.jsx)("span",{className:"ml-1.5 text-ghost-muted/70",children:r.primaryMetric.label})]})]})]})}function Y(e){var t;let{item:a,defaultJourneyExpanded:i=!1}=e,[n,l]=(0,r.useState)(i),{profile:o,presentation:d}
1=a,c=o?function(e){let t=[e.title,e.company].filter(Boolean).join(" at ");return t||(e.email&&e.email!==e.displayName?e.email:e.company)}(o):null,m=o&&[o.city,o.country].filter(Boolean).join(", ")||null,x=$[a.signal_type]||C.A,h=(function(e){if(!e)return[];let t=[];null!==e.score&&t.push({label:"Score",value:String(e.score)});let a=[null===e.sessions?null:"".concat(e.sessions," ").concat(1===e.sessions?"session":"sessions"),null===e.pageviews?null:"".concat(e.pageviews," ").concat(1===e.pageviews?"page":"pages")].filter(Boolean).join(" \xb7 ");a&&t.push({label:"Activity",value:a});let s=[null===e.daysInFunnel?null:"Day ".concat(e.daysInFunnel),null===e.uniquePages?null:"".concat(e.uniquePages," unique ").concat(1===e.uniquePages?"page":"pages")].filter(Boolean).join(" \xb7 ");return s&&t.push({label:"Funnel",value:s}),e.sourceFlow.length>0&&t.push({label:"Source",value:e.sourceFlow.join(" → ")}),t})(o).filter(e=>{var t;return e.label!==(null==(t=d.primaryMetric)?void 0:t.label)}),u=d.details.find(e=>"Page"===e.label),p=(null==o?void 0:o.currentPage)||null,g=!!p&&Z(null==p?void 0:p.title)!==Z(null==u?void 0:u.value)&&Z(null==p?void 0:p.url)!==Z(null==u?void 0:u.value),f=(null==o?void 0:o.recentActivity)||[],b=f.slice(0,n?5:2),v=E(o,null!=(t=a.site_id)?t:null),j=function(e){let t=null==e?void 0:e.identity;return t&&"governed"===t.ownership?t.operator_verified?"Verified by operator":t.status_label||null:null}(o),y=!!(o&&(o.phone||o.email||v))||!!d.recommendedAction;return(0,s.jsxs)("article",{id:"feed-fact-".concat(a.id),"data-feed-card":!0,"data-feed-tier":d.feedTier,className:(0,P.cn)("relative scroll-mt-24 overflow-hidden rounded-xl border border-ghost-border bg-ghost-panel shadow-[0_4px_16px_rgba(0,0,0,0.16)]",d.priority<=2&&"before:absolute before:inset-y-0 before:left-0 before:w-0.5 before:bg-ghost-red/70"),children:[(0,s.jsxs)("header",{"data-feed-region":"profile",className:"flex items-start gap-3 px-3.5 pb-2.5 pt-3.5 sm:px-4",children:[(0,s.jsx)(q,{profile:o,label:d.identityLabel}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[(0,s.jsx)("h3",{className:"min-w-0 truncate text-[14px] font-semibold text-ghost-white sm:text-[15px]",children:d.identityLabel}),R(o,"name")&&(0,s.jsx)("span",{"data-feed-verified":"name",className:"rounded-md border border-emerald-500/30 bg-emerald-500/10 px-1.5 py-0.5 text-[10px] font-medium text-emerald-400",title:"This name was saved by an operator of this account",children:"Verified by operator"}),j&&!R(o,"name")&&(null==o?void 0:o.partition)==="governed"&&(0,s.jsx)("span",{"data-feed-identity-state":!0,className:"rounded-md border border-ghost-border bg-white/[0.03] px-1.5 py-0.5 text-[10px] font-medium text-ghost-muted",children:j}),(0,s.jsx)("span",{className:(0,P.cn)("rounded-md border px-1.5 py-0.5 text-[10px] font-medium","prominent"===d.feedTier?"border-ghost-red/25 bg-ghost-red/[0.08] text-ghost-red/90":"border-ghost-border bg-white/[0.03] text-ghost-muted"),children:d.title})]}),c&&(0,s.jsxs)("p",{className:"mt-0.5 truncate text-[12px] text-ghost-muted",children:[c,R(o,"email")&&(null==o?void 0:o.email)&&c===o.email&&(0,s.jsx)("span",{"data-feed-verified":"email",className:"ml-1 text-emerald-400",children:"\xb7 verified by operator"})]}),(m||d.siteLabel)&&(0,s.jsxs)("p",{className:"mt-0.5 flex min-w-0 items-center gap-1 text-[11px] text-ghost-muted/70",children:[m&&(0,s.jsx)(S.A,{className:"h-3 w-3 shrink-0"}),(0,s.jsx)("span",{className:"truncate",children:[m,d.siteLabel].filter(Boolean).join(" \xb7 ")})]}),!o&&(0,s.jsx)("p",{className:"mt-0.5 text-[11px] text-ghost-muted/70",children:"No visitor profile is linked to this event."})]}),(0,s.jsx)("time",{dateTime:a.created_at,className:"shrink-0 text-[11px] text-ghost-muted/60",children:(0,P.fw)(a.created_at)})]}),(0,s.jsxs)("section",{"data-feed-region":"activity","aria-label":"Activity",className:"px-3.5 pb-3 sm:px-4",children:[(0,s.jsxs)("h4",{className:"flex min-w-0 items-center gap-2 text-[15px] font-semibold leading-snug text-ghost-white sm:text-base",children:[(0,s.jsx)(x,{"aria-hidden":"true",className:"h-4 w-4 shrink-0 text-ghost-muted"}),(0,s.jsx)("span",{className:"min-w-0",children:d.activityConcise})]}),d.primaryMetric&&(0,s.jsxs)("div",{"data-feed-primary-metric":!0,className:"mt-2.5 inline-flex max-w-full items-baseline gap-2 rounded-lg border border-emerald-400/15 bg-emerald-400/[0.06] px-2.5 py-1.5",children:[(0,s.jsx)("strong",{className:"truncate text-[17px] font-semibold text-emerald-300/90 sm:text-lg",children:d.primaryMetric.value}),(0,s.jsx)("span",{className:"shrink-0 text-[10px] font-medium text-emerald-100/50",children:d.primaryMetric.label})]}),d.details.length>
10&&(0,s.jsx)("dl",{"data-feed-details":!0,className:"mt-2.5 grid gap-x-4 gap-y-1.5 sm:grid-cols-2",children:d.details.map(e=>(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("dt",{className:"text-[10px] font-medium text-ghost-muted/60",children:e.label}),(0,s.jsx)("dd",{className:"mt-0.5 break-words text-[12px] text-ghost-white/75",children:e.value})]},"".concat(e.label,":").concat(e.value)))})]}),h.length>0&&(0,s.jsx)("dl",{"data-feed-region":"dossier","aria-label":"Visitor snapshot","data-feed-dossier-columns":Math.min(h.length,4),className:"mx-3.5 grid grid-cols-2 overflow-hidden rounded-lg border border-ghost-border/70 bg-ghost-void/60 sm:mx-4 sm:[grid-template-columns:repeat(var(--dossier-columns),minmax(0,1fr))]",style:{"--dossier-columns":String(Math.min(h.length,4))},children:h.map(e=>(0,s.jsxs)("div",{className:"min-w-0 border-b border-r border-ghost-border/70 px-2.5 py-2 last:border-r-0 sm:border-b-0",children:[(0,s.jsx)("dt",{className:"text-[10px] font-medium text-ghost-muted/60",children:e.label}),(0,s.jsx)("dd",{className:"mt-0.5 truncate text-[12px] font-medium text-ghost-white/85",title:e.value,children:e.value})]},e.label))}),g&&p&&(0,s.jsxs)("section",{"data-feed-current-page":!0,className:"mx-3.5 mt-2.5 flex min-w-0 items-baseline gap-2 sm:mx-4",children:[(0,s.jsx)("span",{className:"shrink-0 text-[10px] font-medium text-ghost-muted/60",children:"Current page"}),p.url?(0,s.jsxs)("a",{href:p.url,target:"_blank",rel:"noreferrer",className:"flex min-w-0 items-center gap-1 text-[12px] text-ghost-white/75 outline-none hover:text-ghost-red focus-visible:ring-2 focus-visible:ring-ghost-red",children:[(0,s.jsx)("span",{className:"truncate",children:p.title}),(0,s.jsx)(L.A,{className:"h-3 w-3 shrink-0"})]}):(0,s.jsx)("span",{className:"truncate text-[12px] text-ghost-white/75",children:p.title})]}),b.length>0&&(0,s.jsxs)("section",{"data-feed-region":"journey","aria-label":"Recent journey",className:"mx-3.5 mt-2.5 rounded-lg bg-white/[0.02] px-2.5 py-2 sm:mx-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,s.jsx)("h4",{className:"text-[10px] font-medium text-ghost-muted/60",children:"Recent journey"}),f.length>2&&(0,s.jsxs)("button",{type:"button","aria-expanded":n,onClick:()=>l(e=>!e),className:"inline-flex items-center gap-1 rounded text-[10px] text-ghost-muted outline-none hover:text-ghost-white focus-visible:ring-2 focus-visible:ring-ghost-red",children:[n?"Less":"+".concat(f.length-2," more"),n?(0,s.jsx)(U.A,{className:"h-3 w-3"}):(0,s.jsx)(V.A,{className:"h-3 w-3"})]})]}),(0,s.jsx)("ol",{className:"mt-1.5 space-y-1",children:b.map((e,t)=>(0,s.jsxs)("li",{className:"flex min-w-0 gap-2 text-[12px] text-ghost-muted",children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"text-ghost-muted/40",children:"→"}),(0,s.jsx)("span",{className:"truncate",children:e.label})]},"".concat(e.label,":").concat(e.occurredAt||t)))})]}),(0,s.jsx)("p",{"data-feed-region":"evidence",className:"mx-3.5 mt-2.5 text-[11px] leading-relaxed text-ghost-muted/70 sm:mx-4",children:d.evidenceSentence}),y&&(0,s.jsxs)("footer",{"data-feed-region":"actions",className:"mt-3 flex flex-col-reverse gap-2 border-t border-ghost-border/60 px-3.5 py-3 sm:flex-row sm:flex-wrap sm:items-center sm:gap-x-3 sm:gap-y-2 sm:px-4",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 sm:contents",children:[(null==o?void 0:o.phone)&&(0,s.jsxs)("a",{href:"tel:".concat(o.phone),className:"inline-flex items-center gap-1.5 rounded-lg bg-ghost-red px-2.5 py-1.5 text-[12px] font-medium text-white outline-none hover:bg-ghost-red-hover focus-visible:ring-2 focus-visible:ring-white",children:[(0,s.jsx)(D.A,{className:"h-3.5 w-3.5"})," Call"]}),o&&!o.phone&&o.email&&(0,s.jsxs)("a",{href:"mailto:".concat(o.email),className:"inline-flex items-center gap-1.5 rounded-lg bg-ghost-red px-2.5 py-1.5 text-[12px] font-medium text-white outline-none hover:bg-ghost-red-hover focus-visible:ring-2 focus-visible:ring-white",children:[(0,s.jsx)(I.A,{className:"h-3.5 w-3.5"})," Connect"]}),v&&(0,s.jsxs)("a",{href:v,className:"inline-flex items-center gap-1.5 rounded-lg border border-ghost-border px-2.5 py-1.5 text-[12px] font-medium text-ghost-white/85 outline-none hover:border-ghost-red/40 hover:text-ghost-red focus-visible:ring-2 focus-visible:ring-ghost-red",children:[(0,s.jsx)(B.A,{className:"h-3.5 w-3.5"})," View Profile"]})]}),d.recommendedAction&&(0,s.jsx)("p",{"data-feed-next-step":!0,className:"min-w-0 text-[11px] leading-relaxed text-ghost-muted/70 sm:flex-1",children:d.recommendedAction})]})]})}},25703:(e,t,a)=>{a.d(t,{Kn:()=>n,ZV:()=>o,a3:()=>c,cn:()=>i,fw:()=>d,vv:()=>l});var s=a(72902),r=a(13714);function i(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,r.QP)((0,s.$)(t))}function n(e){return e>=1e4||e>=1e3?"$".concat((e/1e3).toFixed(1),"k"):"$".concat(e.toFixed(2).replace(/\.00$/,""))}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";return new Intl.NumberFormat("en-US",{style:"currency",currency:t,maximumFractionDigits:0}).format(e)}function o(e){let t="number"==typeof e?e:Number(e);
1return Number.isFinite(t)?t.toLocaleString("en-US"):"0"}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),a="string"!=typeof e||e.includes("T")?e:e.replace(" ","T")+(/(?:Z|[+-]\d{2}:?\d{2})$/i.test(e)?"":"Z"),s=a instanceof Date?a:new Date(a),r=s.getTime();if(Number.isNaN(r))return"just now";let i=Math.max(0,Math.floor((t-r)/1e3));return i<60?"just now":i<3600?Math.floor(i/60)+"m ago":i<86400?Math.floor(i/3600)+"h ago":i<172800?"yesterday":i<604800?Math.floor(i/86400)+"d ago":s.toLocaleDateString(void 0,{month:"short",day:"numeric",...s.getFullYear()!==new Date(t).getFullYear()?{year:"numeric"}:{}})}function c(e){if(!e||e<1)return"—";let t=Math.floor(e);if(t<60)return"".concat(t,"s");let a=Math.floor(t/60);if(t<3600)return t%60>0?"".concat(a,"m ").concat(t%60,"s"):"".concat(a,"m");let s=Math.floor(a/60);if(t<86400)return a%60>0?"".concat(s,"h ").concat(a%60,"m"):"".concat(s,"h");let r=Math.floor(s/24);return s%24>0?"".concat(r,"d ").concat(s%24,"h"):"".concat(r,"d")}}}]);

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.