1import{G as e,s as t}from"./ampliHelpers-CzqCoqg6.js";import{t as n}from"./isTruthy-BLUJH3lx.js";var r={club:`club`,event:`event_organizer`,tour:`tour_operator`,shop:`shop`,tourism:`tourism`,organization:`organization`},i=({bylineOrgType:e,bylineRoles:t})=>{let i=!!t?.includes(`ambassador`),a=!!t?.includes(`content_partner`);return[e&&!(i&&a)?r[e]:void 0,i?`rwgps_ambassador`:void 0,a?`content_partner`:void 0].filter(n)},a=({bylineSubject:e,bylinePath:t})=>e?e===`organization`?`org`:`person`:t?.startsWith(`/organizations/`)?`org`:`person`,o=({bylineSubject:e,bylineOrgType:t,bylineRoles:n,bylinePath:r,bylineAccountLevel:i})=>({bylineSubject:e,bylineOrgType:t,bylineRoles:n,bylinePath:r,bylineAccountLevel:i}),s=[`starter`,`basic`,`premium`],c=e=>typeof e==`number`?s[Math.min(Math.max(e,0),2)]:s.find(t=>t===e),l=(e,t)=>{if(e===`org`)return{byline_subject:e,byline_account_level:void 0,byline_badge_shown:!1};let n=c(t);return{byline_subject:e,byline_account_level:n,byline_badge_shown:n===void 0?void 0:n!==`starter`}},u=e=>{if(!e?.bylineSubject&&!e?.bylinePath)return{};let t=i(e);return{...l(a(e),e.bylineAccountLevel),byline_labels:t.length>0?t:void 0}},d=e=>{if(e){if(e.startsWith(`/users/`))return`user_profile`;if(e.startsWith(`/ambassadors/`))return`ambassador_profile`;if(e.startsWith(`/organizations/`))return`organization_page`;if(e.startsWith(`/events/`))return`event_page`}},f=({assetId:n,to:r,labels:i,destination:a,tier:o})=>{e(`Click Byline`,{asset_id:n,source_page:t(),...o&&l(o.subject,o.accountLevel),byline_labels:i&&i.length>0?i:void 0,byline_destination:a??d(r)})},p=({assetId:e,to:t,labels:n,destination:r,tier:i})=>({to:t,onClick:a=>{a.stopPropagation(),f({assetId:e,to:t,labels:n,destination:r,tier:i})}});export{o as a,p as i,i as n,f as o,a as r,u as t};
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.