PageSourceSearch

https://app.scarf.sh/_next/static/chunks/pages/organizations/[owner]/intent-scoring-65d049301aaaa5ab.js

js scarf.sh collected 2026-09-25 18:17:34 UTC 11,294 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5549],{21825:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/organizations/[owner]/intent-scoring",function(){return i(45460)}])},40460:function(e,t,i){"use strict";i.d(t,{Z:function(){return f}});var n=i(85893),r=i(81447),a=i(67294),s=i(52144),l=i(26858),o=i(36154),c=i(64102),d=i(92985),u=i(21975),h=i(52922),g=i(64651),m=i(85192),x=i(6217);let p=e=>{let{organization:t,showBillingSubscriptionUi:i,showLeadGenerationTab:n,showAppraisalsUi:a,showUserAgentUi:s,showImportsUi:o,showIntegrationsUi:c,showWebhooksUi:h,isScarfAdmin:g}=e,m=(e,i)=>({key:e,label:(0,u.P)(d.ZP,e),href:function(e){let{organization:t,key:i}=e;if(!t)return l.Z.organizations;let n=t.name;switch(i){case"overview":return l.Z.editOrganization({owner:n});case"billing_subscription":return l.Z.editOrganizationSubscription({owner:n});case"filters":return l.Z.editOrganizationFilters({owner:n});case"intent-scoring":return l.Z.editOrganizationIntentScoring({owner:n});case"feedback":return l.Z.editOrganizationFeedback({owner:n});case"members":return l.Z.editOrganizationMembers({owner:n});case"notifications":return l.Z.editOrganizationNotifications({owner:n});case"exports":return l.Z.editOrganizationExports({owner:n});case"imports":return l.Z.editOrganizationImports({owner:n});case"integrations":return l.Z.editOrganizationIntegrations({owner:n});case"webhooks":return l.Z.editOrganizationWebhooks({owner:n});case"admin_tools":return l.Z.editOrganizationAdminTools({owner:n});case"lead-generation":return l.Z.editOrganizationLeadGeneration({owner:n})}}({key:e,organization:t}),...i}),x=[m("overview"),m("members")];i&&x.push(m("billing_subscription")),x.push(m("notifications"));let p=[];s&&p.push(m("filters"),m("intent-scoring")),a&&p.push(m("feedback")),p.push(m("exports")),o&&p.push(m("imports"));let f=[];c&&f.push(m("integrations")),h&&f.push(m("webhooks"));let v=[];return g&&v.push(m("admin_tools")),n&&v.push(m("lead-generation",{Icon:r.Z,highlight:!0})),[{label:"General",items:x},{label:"Data",items:p},{label:"Connections",items:f},{label:"More",items:v}].filter(e=>e.items.length>0)};function f(e){var t;let{organization:i,currentTab:r,children:u}=e,f=(0,g.qI)(),v=(0,x._w)(),{canAdminEditOrg:b}=(0,m.m7)(null==i?void 0:i.name),{showWebhooksUi:w}=(0,s.wT)(),y=(0,o.q)(f),{isUsageBillingOrg:j}=(0,x.sO)(f),N=j?f:void 0,Z=(0,a.useMemo)(()=>p({organization:i,showBillingSubscriptionUi:b,showLeadGenerationTab:b,showUserAgentUi:b,showAppraisalsUi:b,showImportsUi:b,showIntegrationsUi:b&&y,showWebhooksUi:b&&w,isScarfAdmin:v}),[i,b,y,w,v]);return(0,n.jsx)(c.N,{title:d.ZP.organization_settings,subtitle:null==i?void 0:i.name,currentTab:r,groups:Z,eventPrefix:"Organization tabs",breadcrumb:f?[{label:null!==(t=null==i?void 0:i.name)&&void 0!==t?t:"Organization",route:l.Z.home({owner:f}),currentRoute:!1},{label:"Settings",route:l.Z.editOrganization({owner:f}),currentRoute:!0}]:[],banner:(0,n.jsx)(h.nH,{owner:N,context:"exports"===r?"scheduled-exports":"default"}),children:u})}},64102:function(e,t,i){"use strict";i.d(t,{N:function(){return o}});var n=i(85893),r=i(7998),a=i(33540),s=i(43436);function l(e){let{item:t,selected:i,orientation:a,eventPrefix:l}=e,o="horizontal"===a;return(0,n.jsxs)(s.H,{event:"".concat(l," ").concat(t.key),href:t.href,className:(0,r.Y)("group flex items-center gap-x-2 font-semibold transition-colors","focus-visible:ring-2 focus-visible:ring-primary-300 focus-visible:ring-offset-2 focus-visible:outline-none",o?"shrink-0 rounded-full border px-4 py-2 text-sm whitespace-nowrap":"w-full rounded-xl px-3.5 py-2.5 text-sm",i&&o&&"border-primary-600 bg-primary-500 text-white",i&&!o&&"bg-primary-500 text-white shadow-sm",!i&&o&&"border-gray-200 bg-white text-gray-600 hover:border-primary-300 hover:text-primary-700",!i&&!o&&"text-gray-600 hover:bg-white hover:text-primary-700 hover:shadow-sm",!i&&t.highlight&&"text-purple-2-500 hover:text-purple-2-700"),"aria-current":i?"page":void 0,children:[t.Icon&&(0,n.jsx)(t.Icon,{className:"h-4 w-4 shrink-0"}),(0,n.jsx)("span",{className:o?void 0:"truncate",children:t.label})]})}function o(e){let{title:t,subtitle:i,currentTab:r,groups:s,eventPrefix:o,breadcrumb:c,banner:d,children:u}=e,h=s.flatMap(e=>e.items);return(0,n.jsx)(a.A,{variant:"wide",breadcrumb:c,children:(0,n.jsxs)("div",{className:"w-full px-4 sm:px-0",children:[(0,n.jsxs)("header",{className:"mb-6 sm:mb-8",children:[(0,n.jsx)("h1",{className:"text-3xl leading-tight font-extrabold tracking-[-0.03em] text-gray-900 sm:text-4xl","data-testid":"edit-organization-header",children:t}),i&&(0,n.jsx)("p",{className:"mt-2 truncate text-base text-gray-600 sm:text-lg",title:i,children:i})]}),(0,n.jsx)("nav",{"aria-label":t,className:"scrollbar-hide mb-6 flex gap-2 overflow-x-auto pb-1 lg:hidden",children:h.map(e=>(0,n.jsx)(l,{item:e,selected:e.key===r,orientation:"horizontal",eventPrefix:o},e.key))}),(0,n.jsxs)("div",{className:"lg:grid lg:grid-cols-[15rem_minmax(0,1fr)] lg:gap-x-10",children:[(0,n.jsx)("nav",{"aria-label":t,className:"hidden lg:sticky lg:top-[calc(var(--acting-as-banner-height)+1.5rem)] lg:block lg:self-start",children:s.map((e,t)=>{var i;return(0,n.jsxs)("div",{className:0===t?void 0:"mt-6",children:[e.label&&(0,n.jsx)("p",{className:"mb-2 px-3.5 text-xs font-bold tracking-[0.12em] text-gray-400 uppercase",children:e.label}),(0,n.jsx)("ul",{className:"space-y-1",children:e.items.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(l,{item:e,selected:e.key===r,orientation:"vertical",eventPrefix:o})},e.key))})]},null!==(i=e.label)&&void 0!==i?i:t)})}),(0,n.jsxs)("div",{className:"min-w-0 space-y-6",children:[d,u]})]})]})})}},926:function(e,t,i){"use strict";function n(e){return[...new Set(e.map(r).filter(l))].sort()}function r(e){var t,i;let n=null===(i=e.trim().replace(/^https?:\/\//i,"").split("?")[0])||void 0===i?void 0:null===(t=i.split("#")[0])||void 0===t?void 0:t.trim();if(!n)return;if(n.startsWith("/"))return s(n);let[r="",...a]=n.split("/"),l=a.join("/");return"".concat(r.trim().toLowerCase().replace(/\/+$/,"")).concat(s(l))}function a(e){var t,i;let{event:n,highIntentUrls:a,trackingPixels:s}=e;return"pixel-fetch"===n.type&&"high"===n.importance&&!!n.referer&&0!==a.length&&"high"!==(null!==(i=null==s?void 0:null===(t=s.find(e=>e.id===n.tracking_pixel_id))||void 0===t?void 0:t.importance)&&void 0!==i?i:"mid")&&function(e,t){let i=r(e);
1if(!i)return!1;let n=function(e){if(e.startsWith("/"))return e;let t=e.indexOf("/");return -1===t?"/":e.slice(t)}(i);return t.some(e=>{let t=r(e);return!!t&&(t.startsWith("/")?t===n:t===i)})}(n.referer,a)}function s(e){return e?e.startsWith("/")?e:"/".concat(e):"/"}function l(e){return null!=e}i.d(t,{P8:function(){return r},ZZ:function(){return n},vj:function(){return a}})},45460:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return m}});var n=i(85893),r=i(67294),a=i(86501),s=i(40460),l=i(98778),o=i(88860),c=i(30185),d=i(926),u=i(17130),h=i(63868),g=i(22874);function m(){let e=(0,c.Z)(),{organization:t}=(0,g.o8)(e);return(0,n.jsx)(s.Z,{currentTab:"intent-scoring",organization:t,children:(0,n.jsx)(x,{owner:e})})}function x(e){let{owner:t}=e,{userDefinedVariables:i,setUserDefinedVariables:s,isLoading:c}=(0,h.Ah)({owner:t}),[g,m]=(0,r.useState)(""),[x,p]=(0,r.useState)(!1),f=(0,r.useMemo)(()=>{var e;return(0,d.ZZ)(null!==(e=null==i?void 0:i.high_intent_urls)&&void 0!==e?e:[])},[null==i?void 0:i.high_intent_urls]),v=async()=>{let e=(0,d.P8)(g);if(!e){(0,u.Xh)("intent-scoring-empty-url","Enter a URL path first");return}if(f.includes(e)){m(""),(0,u.Xh)("intent-scoring-duplicate-url","That high-intent URL is already configured");return}p(!0),await s(t=>{var i;return{...t,high_intent_urls:(0,d.ZZ)([...null!==(i=null==t?void 0:t.high_intent_urls)&&void 0!==i?i:[],e])}},()=>{m(""),a.ZP.success("High-intent URL added")}),p(!1)},b=async e=>{p(!0),await s(t=>{var i;return{...t,high_intent_urls:(0,d.ZZ)((null!==(i=null==t?void 0:t.high_intent_urls)&&void 0!==i?i:[]).filter(t=>(0,d.P8)(t)!==e))}},()=>a.ZP.success("High-intent URL removed")),p(!1)};return(0,n.jsxs)("section",{className:"max-w-3xl space-y-6",children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("h2",{className:"text-xl font-semibold text-gray-900",children:"Intent Scoring"}),(0,n.jsxs)("p",{className:"text-sm leading-6 text-gray-600",children:["Mark pixel events from selected URLs as high intent. Enter either a host and path like ",(0,n.jsx)("code",{children:"foo.com/path"}),", or a path-only URL like"," ",(0,n.jsx)("code",{children:"/path"})," to match that path on any domain. Protocols are ignored."]})]}),(0,n.jsxs)("div",{className:"settings-card",children:[(0,n.jsx)("label",{htmlFor:"high-intent-url",className:"mb-2 block text-sm font-medium text-gray-700",children:"High-intent URL"}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row",children:[(0,n.jsx)(o.I,{id:"high-intent-url",value:g,onChange:e=>m(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),v())},placeholder:"foo.com/pricing or /pricing",disabled:x||c}),(0,n.jsx)(l.z,{onClick:v,disabled:x||c,children:"Add URL"})]})]}),(0,n.jsxs)("div",{className:"overflow-hidden rounded-2xl border border-gray-200 bg-white shadow-sm",children:[(0,n.jsx)("div",{className:"border-b border-gray-200 px-6 py-4",children:(0,n.jsx)("h3",{className:"settings-card-title",children:"Configured high-intent URLs"})}),0===f.length?(0,n.jsx)("p",{className:"px-4 py-6 text-sm text-gray-500",children:"No high-intent URLs configured yet."}):(0,n.jsx)("ul",{className:"divide-y divide-gray-100",children:f.map(e=>(0,n.jsxs)("li",{className:"flex items-center justify-between gap-4 px-4 py-3",children:[(0,n.jsx)("span",{className:"break-all font-mono text-sm text-gray-900",children:e}),(0,n.jsx)(l.z,{variant:"outline",size:"sm",onClick:()=>b(e),disabled:x,children:"Remove"})]},e))})]})]})}},81447:function(e,t,i){"use strict";var n=i(67294);let r=n.forwardRef(function(e,t){let{title:i,titleId:r,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},a),i?n.createElement("title",{id:r},i):null,n.createElement("path",{fillRule:"evenodd",d:"M9 4.5a.75.75 0 0 1 .721.544l.813 2.846a3.75 3.75 0 0 0 2.576 2.576l2.846.813a.75.75 0 0 1 0 1.442l-2.846.813a3.75 3.75 0 0 0-2.576 2.576l-.813 2.846a.75.75 0 0 1-1.442 0l-.813-2.846a3.75 3.75 0 0 0-2.576-2.576l-2.846-.813a.75.75 0 0 1 0-1.442l2.846-.813A3.75 3.75 0 0 0 7.466 7.89l.813-2.846A.75.75 0 0 1 9 4.5ZM18 1.5a.75.75 0 0 1 .728.568l.258 1.036c.236.94.97 1.674 1.91 1.91l1.036.258a.75.75 0 0 1 0 1.456l-1.036.258c-.94.236-1.674.97-1.91 1.91l-.258 1.036a.75.75 0 0 1-1.456 0l-.258-1.
1036a2.625 2.625 0 0 0-1.91-1.91l-1.036-.258a.75.75 0 0 1 0-1.456l1.036-.258a2.625 2.625 0 0 0 1.91-1.91l.258-1.036A.75.75 0 0 1 18 1.5ZM16.5 15a.75.75 0 0 1 .712.513l.394 1.183c.15.447.5.799.948.948l1.183.395a.75.75 0 0 1 0 1.422l-1.183.395c-.447.15-.799.5-.948.948l-.395 1.183a.75.75 0 0 1-1.422 0l-.395-1.183a1.5 1.5 0 0 0-.948-.948l-1.183-.395a.75.75 0 0 1 0-1.422l1.183-.395c.447-.15.799-.5.948-.948l.395-1.183A.75.75 0 0 1 16.5 15Z",clipRule:"evenodd"}))});t.Z=r}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=21825)}),_N_E=e.O()}]);

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.