1import{k as e,p as t}from"./JWHddddT.js";import{D as n,On as r,Zn as i,_ as a,b as o,bt as s,ct as c,g as l,k as u,mt as d,o as f,qt as p,tr as m,v as h,vn as g,y as _}from"./DPmoNEl9.js";import{n as v}from"./C8YXquCQ.js";import{Gt as y,Lt as b,i as x}from"./C6Eses9S.js";import{lt as S}from"./D51JIfeD.js";import{t as C}from"./byCnqXCW.js";import{t as w}from"./-R1mctS22.js";import{t as T}from"./Bf8kMGiK2.js";import{t as E}from"./B9aQe-EJ.js";import{t as D}from"./CmDGIPx72.js";import{t as O}from"./ACHsZz76.js";import{r as k}from"./Bzh0fcC0.js";import{t as A}from"./CA96DuNv2.js";import{t as j}from"./CBR_6EMQ.js";var M=()=>({isExternalLink:e=>e?e.startsWith(`http://`)||e.startsWith(`https://`):!1}),N={key:0,class:`flex flex-col gap-8`},P=[`aria-expanded`],F={key:0,class:`flex flex-col gap-8 pl-7`},I=[`aria-expanded`,`onClick`],L={class:`flex flex-wrap gap-3 max-w-[min(604px,calc(100vw-40px))] min-[1264px]:max-w-none`},R={class:`flex shrink-0 items-center py-0.5`},z={class:`flex min-w-0 flex-1 flex-col gap-0.5`},B={class:`font-grotesk text-base font-medium text-textMain`},V={class:`text-xs leading-relaxed text-textSecondary`},H=Object.assign(u({__name:`resourcesNavMenu`,props:{transparent:{type:Boolean},exclude:{}},setup(e){let{t:c}=v(),u=e,b=k(),x=t(),{isExternalLink:C}=M(),w=g(!1),E=l(()=>[{key:`learn`,label:c(`landing.header.nav.learn`),description:c(`landing.header.resources.learn`),icon:`play_arrow`,to:S.LEARN,external:!0},{key:`pricing`,label:c(`landing.header.nav.pricing`),description:c(`landing.header.resources.pricing`),icon:`attach_money`,to:S.COMPANY_PRICING},{key:`news`,label:c(`news.title`),description:c(`landing.header.resources.news`),icon:`
1note_stack`,to:S.NEWS},{key:`integrations`,label:c(`integrations.title`),description:c(`landing.header.resources.integrations`),icon:`integration_instructions`,to:S.INTEGRATIONS}]),O=l(()=>E.value.filter(e=>!u.exclude?.includes(e.key))),j=e=>e.external||C(e.to)?!1:x.path===e.to||x.path.startsWith(`${e.to}/`),H=l(()=>O.value.some(j));return(t,l)=>{let u=T,g=y,v=A;return r(b)?(d(),o(`div`,N,[a(`button`,{type:`button`,"aria-expanded":r(w),class:i([`flex items-center gap-2 font-grotesk text-base font-medium leading-6 transition-colors hover:text-bgBrand`,r(H)?`text-bgBrand`:`text-textMain dark:text-white`]),onClick:l[0]||=e=>w.value=!r(w)},[n(u,{name:(`materialIconName`in t?t.materialIconName:r(D))(`apps`),size:`20`},null,8,[`name`]),a(`span`,null,m(r(c)(`landing.header.nav.resources`)),1),n(u,{name:(`materialIconName`in t?t.materialIconName:r(D))(`keyboard_arrow_down`),size:`20`,class:i([`transition-transform`,r(w)?`rotate-180`:``])},null,8,[`name`,`class`])],10,P),r(w)?(d(),o(`div`,F,[(d(!0),o(f,null,s(r(O),e=>(d(),h(g,{key:e.key,to:e.to,target:e.external?`_blank`:void 0,rel:e.external?`noopener noreferrer`:void 0,class:i([`flex items-center gap-2 font-grotesk text-base font-medium leading-6 transition-colors hover:text-bgBrand`,j(e)?`text-bgBrand`:`text-textMain dark:text-white`])},{default:p(()=>[n(u,{name:(`materialIconName`in t?t.materialIconName:r(D))(e.icon),size:`20`},null,8,[`name`]),a(`span`,null,m(e.label),1)]),_:2},1032,[`to`,`target`,`rel`,`class`]))),128))])):_(``,!0)])):(d(),h(v,{key:1,position:`center`,"dropdown-class":`!px-3 !py-3`},{button:p(({toggle:o,open:s})=>[a(`button`,{type:`button`,"aria-haspopup":`menu`,"aria-expanded":s,class:i([`flex items-center gap-2 font-grotesk text-base font-medium leading-6 transition-colors hover:text-bgBrand`,r(H)||s?`text-bgBrand`:e.transparent?`text-white`:`text-textMain`]),onClick:o},[n(u,{name:(`materialIconName`in t?t.materialIconName:r(D))(`apps`),size:`20`},null,8,[`name`]),a(`span`,null,m(r(c)(`landing.header.nav.resources`)),1),n(u,{name:(`materialIconName`in t?t.materialIconName:r(D))(`keyboard_arrow_down`),size:`20`,class:i([`transition-transform`,s?`rotate-180`:``])},null,8,[`name`,`class`])],10,I)]),content:p(({close:e})=>[a(`div`,L,[(d(!0),o(f,null,s(r(O),o=>(d(),h(g,{key:o.key,to:o.to,target:o.external?`_blank`:void 0,rel:o.external?`noopener noreferrer`:void 0,class:i([`flex w-[290px] items-start gap-2 rounded-[12px] px-3 py-2 transition-colors hover:bg-bgGray dark:hover:bg-tileBlack`,j(o)?`bg-bgBrandLight`:``]),onClick:e},{default:p(()=>[a(`span`,R,[n(u,{name:(`materialIconName`in t?t.materialIconName:r(D))(o.icon),size:`20`,class:`text-textMain`},null,8,[`name`])]),a(`span`,z,[a(`span`,B,m(o.label),1),a(`span`,V,m(o.description),1)]),n(u,{name:(`materialIconName`in t?t.materialIconName:r(D))(o.external?`arrow_outward`:`keyboard_arrow_right`),class:`shrink-0 text-icon-md text-textMain`},null,8,[`name`])]),_:2},1032,[`to`,`target`,`rel`,`class`,`onClick`]))),128))])]),_:1}))}}}),{__name:`SharedResourcesNavMenu`}),U={class:`contents`},W=[`aria-label`],G=Object.assign(u({__name:`centerNavItems`,props:{transparent:{type:Boolean},landing:{type:Boolean}},setup(n){let{t:u}=v(),g={key:`resources`,resources:!0},O=n,A=k(),N=w(),P=x(),{hasUnread:F,start:I}=j();c(()=>{let e=P.currentProfile?.profileType;!O.landing&&!O.transparent&&(e===C.COMPANY||e===C.CREATOR||e===C.PUBLICATION)&&I()});let L=l(()=>b(P.currentProfile)),R=E(),z=!!e().public.beforeLaunchVisitorLanding,{isExternalLink:B}=M(),V=t(),G=e=>{let t=e?.to;return!t||B(t)?!1:t===`/`?V.path===`/`:e?.exact?V.path===t:V.path===t||V.path.startsWith(`${t}/`)},K=l(()=>z?[]:[{label:u(`landing.header.nav.home`),icon:`home`,to:S.HOME},{label:u(`landing.header.nav.learn`),icon:`play_arrow`,to:S.LEARN},{label:u(`landing.header.nav.pricing`),icon:`attach_money`,to:S.COMPANY_PRICING},{...g,exclude:[`learn`,`pricing`]},{label:u(`landing.header.nav.contact`),icon:`mail`,to:S.SUPPORT}]),q=l(()=>{if(O.landing)return K.value;if(O.transparent)return[{label:u(`support.getSupport`),icon:`support_agent`,to:S.SUPPORT}];if(N.activeRole){if(N.activeRole===C.COMPANY){let e=[];
1return A&&e.push({label:u(`landing.header.nav.home`),icon:`home`,to:S.HOME}),L.value||(e.push({label:u(`dashboard.header.creators`),icon:`person_play`,to:S.CREATOR_LIST,exact:!0},{label:u(`dashboard.header.yourCampaigns`),icon:`campaign`,to:S.YOUR_CAMPAIGNS},{label:u(`dashboard.header.messages`),icon:`forum`,to:S.MESSAGES}),R.value&&e.push({label:u(`dashboard.header.premiumAnalytics`),icon:`bar_chart`,to:S.PREMIUM_ANALYTICS})),e.push(g),e}if(N.activeRole===C.CREATOR){let e=[];return A&&e.push({label:u(`landing.header.nav.home`),icon:`home`,to:S.HOME}),L.value||e.push({label:u(`dashboard.header.discoverCampaigns`),icon:`search`,to:S.COMPANY_CAMPAIGNS},{label:u(`dashboard.header.yourCampaigns`),icon:`campaign`,to:S.YOUR_CAMPAIGNS},{label:u(`dashboard.header.messages`),icon:`forum`,to:S.MESSAGES}),e.push({...g,exclude:[`pricing`,`integrations`]}),e}if(N.activeRole===C.PUBLICATION){let e=[];return A&&e.push({label:u(`landing.header.nav.home`),icon:`home`,to:S.HOME}),L.value||e.push({label:u(`dashboard.header.yourCampaigns`),icon:`campaign`,to:S.PUBLICATION_CAMPAIGNS},{label:u(`dashboard.header.messages`),icon:`forum`,to:S.MESSAGES}),e.push({...g,exclude:[`pricing`,`integrations`]}),e}}return[]});return(e,t)=>{let c=T,l=y;return d(),o(`div`,U,[(d(!0),o(f,null,s(r(q),t=>(d(),o(f,{key:t.key??t.to},[t.resources?(d(),h(H,{key:0,transparent:n.transparent,exclude:t.exclude},null,8,[`transparent`,`exclude`])):(d(),h(l,{key:1,to:t.to,class:`flex items-center gap-2 whitespace-nowrap font-grotesk text-base font-medium leading-6 transition-colors hover:text-bgBrand dark:hover:text-bgBrand`,target:r(B)(t.to)?`_blank`:void 0,rel:r(B)(t.to)?`noopener noreferrer`:void 0},{default:p(()=>[t.icon?(d(),h(c,{key:0,name:(`materialIconName`in e?e.materialIconName:r(D))(t.icon),size:`20`,class:i([G(t)?`text-bgBrand`:``,t.iconFilled?`icon-filled`:``])},null,8,[`name`,`class`])):_(``,!0),a(`span`,{class:i([`text-right text-base font-medium font-grotesk leading-6`,G(t)?`text-bgBrand`:``])},m(t.label),3),t.to===r(S).MESSAGES&&r(F)?(d(),o(`span`,{key:1,class:`h-2 w-2 shrink-0 rounded-full bg-purple`,"aria-label":r(u)(`dashboard.header.unreadMessages`)},null,8,W)):_(``,!0)]),_:2},1032,[`to`,`target`,`rel`]))],64))),128))])}}}),{__name:`SharedCenterNavItems`}),K=u({__name:`headerLogo`,props:{to:{type:String,default:S.HOME}},setup(e){return(t,r)=>{let i=y;return d(),h(i,{to:e.to,"aria-label":t.$t(`breadcrumb.home`)},{default:p(()=>[n(O,{width:`59`,height:`54`,class:`w-10 h-10 lg:w-14 lg:h-14`})]),_:1},8,[`to`,`aria-label`])}}}),q=Object.assign(K,{__name:`SharedHeaderLogo`});export{G as n,q 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.