PageSourceSearch

https://calmo.ai/_nuxt/DkoIOzml.js

js calmo.ai collected 2026-10-05 15:29:55 UTC 12,823 bytes, 3 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a109ac-5c93-7300-b043-cfab7ce05029")}catch(e){}}();import{S as R,Y as a,aa as r,a9 as e,Z as z,ao as A,ah as b,c as i,aJ as X,at as U,au as $,ad as S,af as he,A as _e,B as xe,a as N,bk as ve,D as q,an as we,a0 as f,u as be,ca as ye,s as ke,L as ze,ac as t,ag as o,ai as Le,ab as E,al as Ce,am as Ue,ax as K,g as $e}from"./CVOcV0X7.js";import{_ as Se}from"./CpQtvIAu.js";import{_ as Ge}from"./C95_q0oK.js";import{_ as je}from"./DtGLtQH4.js";import{_ as Ne}from"./0Tak68Bb.js";import{p as Ae,g as Be}from"./Cu8YGN2V.js";import{_ as Fe}from"./BGXgo78D.js";import"./NdYmAeDX.js";import"./Dix9bfnP.js";import"./OK_sthfU.js";import"./kRIii9yh.js";import"./jFYhBC76.js";import"./7JFtXw1n.js";import"./D-pctMGk.js";import"./Bw5ZQwxj.js";import"./C03CyzQ7.js";import"./_Ippfxlp.js";import"./DqhbZBHs.js";import"./C63tX8t1.js";const Pe=R({__name:"LabelLogo",props:{name:{},logoUrl:{default:null},size:{default:"md"}},setup(_){const d=_,m=i(()=>d.size==="sm"?{wrap:"size-12 p-1",width:96,initial:"text-base"}:{wrap:"size-14 p-1.5",width:112,initial:"text-lg"}),x=i(()=>d.logoUrl?Be(d.logoUrl):null),p=i(()=>d.name.slice(0,1).toUpperCase()||"?");return(G,g)=>{const u=X;return a(),r("div",{class:A(["flex shrink-0 items-center justify-center overflow-hidden rounded-md bg-[var(--marketing-bg)] ring-1 ring-default",e(m).wrap])},[_.logoUrl&&e(x)?(a(),z(u,{key:0,src:e(x),provider:e(Ae)(_.logoUrl),alt:_.name,width:e(m).width,format:"avif",quality:"80",class:"size-full object-contain",loading:"lazy",decoding:"async"},null,8,["src","provider","alt","width"])):(a(),r("span",{key:1,class:A(["flex size-full items-center justify-center font-display font-medium text-muted",e(m).initial]),"aria-hidden":"true"},b(e(p)),3))],2)}}}),Ve=Object.assign(Pe,{__name:"LabelsLabelLogo"}),De={class:"flex flex-wrap gap-1.5"},qe=["onClick"],Ee={key:0,class:"inline-flex h-[22px] items-center rounded-full bg-[var(--marketing-bg)] px-2.5 text-[11px] font-medium text-muted ring-1 ring-default"},Ie=R({__name:"LabelGenres",props:{genres:{}},emits:["select"],setup(_,{emit:d}){const m=_,x=d,p=i(()=>Array.isArray(m.genres)?m.genres:[]),G=i(()=>p.value.slice(0,3));return(g,u)=>(a(),r("div",De,[(a(!0),r(U,null,$(e(G),c=>(a(),r("button",{key:c,type:"button",class:"inline-flex h-[22px] items-center rounded-full bg-[var(--marketing-bg)] px-2.5 text-[11px] font-medium capitalize text-muted ring-1 ring-default transition-colors duration-150 hover:text-highlighted",onClick:L=>x("select",c)},b(c),9,qe))),128)),e(p).length?S("",!0):(a(),r("span",Ee," Other "))]))}}),Re=Object.assign(Ie,{__name:"LabelsLabelGenres"}),Te={class:"pb-16 sm:pb-[88px]"},Me={class:"mx-auto max-w-[1272px] px-6 pt-14 sm:pt-16 xl:px-[41px]"},Oe={key:0,class:"flex flex-col gap-8 lg:flex-row lg:items-start lg:justify-between"},Ye={class:"flex shrink-0 flex-col gap-3 rounded-md bg-[var(--marketing-surface)] p-6 ring-1 ring-default lg:max-w-[280px]"},He={key:3,class:"mt-10 space-y-6","aria-busy":"true","aria-live":"polite","aria-label":"Loading labels"},Je={class:"flex flex-col gap-4"},We={class:"flex flex-wrap gap-2"},Ze={class:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 lg:gap-5"},Ke={class:"flex items-start gap-4"},Qe={class:"min-w-0 flex-1 space-y-2"},Xe={class:"flex gap-1.5"},et=["aria-busy"],tt={class:"flex flex-col gap-4"},st={class:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between"},nt={class:"flex items-center gap-3"},ot={class:"flex w-fit items-center gap-0.5 rounded-[6px] bg-[var(--marketing-surface)] p-0.5 ring-1 ring-default ring-inset",role:"group","aria-label":"View mode"},at=["aria-pressed"],lt=["aria-pressed"],it={key:0,class:"w-full max-w-[420px]"},rt={key:1,class:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 lg:gap-5"},ct={class:"flex items-start gap-4"},dt={class:"min-w-0 flex-1"},ut={class:"font-display text-xl leading-snug font-medium tracking-[-0.02em] text-highlighted"},mt={class:"mt-auto pt-6"},pt={class:"min-w-0 flex-1 truncate text-left"},gt={key:2,class:"overflow-hidden rounded-md bg-[var(--marketing-surface)] ring-1 ring-default"},ft={class:"divide-y divide-muted"},ht={class:"flex flex-col gap-4 px-5 py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6"},_t={class:"flex min-w-0 items-center gap-4"},xt={class:"min-w-0"},vt={class:"truncate font-display text-lg font-medium tracking-[-0.02em] text-highlighted"},wt={class:"whitespace-nowrap text-left"},bt={key:3,class:"flex items-center justify-center pt-4"},C=15,yt="Find where to send your demo",Q="Find where to send your demo | Calmo",I="Browse public label portals. Submit for free. No Calmo account needed for artists.",Rt=R({__name:"labels",async setup(_){let d,m;const x=be();he({title:yt,meta:[{name:"description",content:I},{property:"og:title",content:Q},{property:"og:description",content:I},{property:"og:image",content:""},{property:"og:url",content:`${x.public.siteUrl}/labels`},{property:"og:type",content:"website"},{name:"twitter:title",content:Q},{name:"twitter:description",content:I},{name:"twitter:image",content:""},{name:"twitter:card",content:"summary"}]});const p=_e(),G=xe(),g=N(typeof p.query.genre=="string"?p.query.genre:void 0),u=ve("labels-view-mode","grid",{initOnMounted:!0}),c=N(1);q(()=>p.query.genre,l=>{g.value=typeof l=="string"?l:void 0,c.value=1});function L(l){g.value=l,c.value=1;const s={...p.query};l?s.genre=l:delete s.genre,G.push({query:s})}const{data:y,pending:j,error:T,refresh:ee}=([d,m]=we(()=>ke("/api/labels",{query:i(()=>g.value?{genre:g.value}:{}),getCachedData:ze,dedupe:"defer"},"$YhgFzYWFNn")),d=await d,m(),d),M=i(()=>{const l=y.value?.genres||[];return[{label:"All genres",value:void 0},...l.map(s=>({label:s,value:s}))]}),te=i(()=>M.value.find(l=>l.value===g.value)?.label??"All genres"),h=N(""),k=N(""),se=$e(l=>{k.value=l},250);q(h,l=>{se(l)},{immediate:!0}),q(k,()=>{c.value=1});const ne=i(()=>h.value!==k.value);function oe(){h.value="",k.value="",c.value=1,L()}function O(l){return x.public.siteUrl.concat("/",l).replace(/^https?:\/\//,"")}const B=i(()=>{const l=y.value?.portals||[],s=k.value.trim().toLowerCase();return s?l.filter(v=>v.name?.toLowerCase().includes(s)):l}),F=i(()=>B.value.length),ae=i(()=>Math.ceil(F.value/C)),Y=i(()=>{const l=(c.value-1)*C;return B.value.slice(l,l+C)}),le=i(()=>F.value>C||k.value.trim()!==""),ie=i(()=>ae.value>1),re=i(()=>h.value.trim()?"Try another search or view all labels to see the full directory.":g.value?"Try a different genre or view all labels—new portals are added over time.":"Check back soon as more labels publish their submission portals."),ce=i(()=>!j.value&&!!T.value),H=i(()=>j.value||T.value?!1:y.value?.portals?y.value.portals.length===0&&!y.value.genres?.length:!0),de=i(()=>j.value&&!y.value),ue=i(()=>!!(h.value.trim()||g.value));return(l,s)=>{const v=Ce,P=Le,V=Ue,D=Se,w=Ge,me=je,pe=Ne,J=Ve,W=Re,Z=X,ge=Fe,fe=ye;return a(),z(fe,{name:"home"},{default:f(()=>[t("div",Te,[t("div",Me,[e(H)?S("",!0):(a(),r("div",Oe,[s[8]||(s[8]=t("section",{class:"max-w-[42rem]"},[t("h1",{class:"font-display text-[40px] leading-[1.1] font-medium tracking-[-0.02em] text-highlighted sm:text-[56px]"}," Find where to send your demo. "),t("p",{class:"mt-4 max-w-[46ch] text-base leading-relaxed text-muted"}," Browse public label portals. Submit for free. No Calmo account needed for artists. ")],-1)),t("div",Ye,[s[6]||(s[6]=t("h2",{class:"font-display text-lg font-medium tracking-[-0.02em] text-highlighted"}," Run a label? ",-1)),s[7]||(s[7]=t("p",{class:"text-sm leading-relaxed text-muted"}," Claim your portal free. Artists find you here. ",-1)),o(P,{to:"/auth/login",class:"btn-solid btn-press mt-1 inline-flex h-10 w-full items-center justify-center gap-2 rounded-md px-4 text-sm font-medium whitespace-nowrap outline-none"},{default:f(()=>[s[5]||(s[5]=E(" Claim your portal ",-1)),o(v,{name:"i-hugeicons-arrow-right-02",class:"shrink-0 text-lg"})]),_:1})])])),e(ce)?(a(),z(D,{key:1,variant:"naked",size:"xl",class:"mt-16",title:"Couldn't load labels",description:"Something went wrong while loading the directory. Try again in a moment."},{actions:f(()=>[o(V,{color:"neutral",variant:"outline",size:"md",onClick:s[0]||(s[0]=()=>e(ee)())},{default:f(()=>[...s[9]||(s[9]=[E(" Retry ",-1)])]),_:1})]),_:1})):e(H)?(a(),z(D,{key:2,variant:"naked",icon:"i-hugeicons-disc-3",size:"xl",class:"mt-16",title:"Explore labels",description:"Public portals appear here when labels opt in to be listed. Check back to discover where to send your demos."})):e(de)?(a(),r("div",He,[t("div",Je,[t("div",We,[(a(),r(U,null,$(5,n=>o(w,{key:n,class:"h-8 w-16 rounded-[4px]"})),64))]),o(w,{class:"h-10 w-full max-w-[420px] rounded-md"})]),t("div",Ze,[(a(),r(U,null,$(6,n=>t("div",{key:n,class:"flex flex-col rounded-md bg-[var(--marketing-surface)] p-6 ring-1 ring-default"},[t("div",Ke,[o(w,{class:"size-14 shrink-0 rounded-md"}),t("div",Qe,[o(w,{class:"h-6 w-2/3"}
1),t("div",Xe,[o(w,{class:"h-[22px] w-14 rounded-full"}),o(w,{class:"h-[22px] w-16 rounded-full"})])])]),o(w,{class:"mt-6 h-10 w-full rounded-md"})])),64))])])):(a(),r("div",{key:4,class:"mt-10 space-y-6","aria-busy":e(j)||void 0},[t("div",tt,[t("div",st,[t("div",nt,[o(me,{items:[e(M).map(n=>({label:n.label,onSelect:()=>L(n.value)}))]},{default:f(()=>[o(V,{color:"neutral",variant:"outline",size:"md",icon:"i-hugeicons-filter","trailing-icon":"i-hugeicons-arrow-down-01",class:"capitalize"},{default:f(()=>[E(b(e(te)),1)]),_:1})]),_:1},8,["items"])]),t("div",ot,[t("button",{type:"button",class:A(["btn-press inline-flex size-8 items-center justify-center rounded-[4px] transition-colors duration-150 ease-[var(--ease-out)]",e(u)==="grid"?"bg-accented text-highlighted":"text-muted hover:text-highlighted"]),"aria-pressed":e(u)==="grid","aria-label":"Grid view",onClick:s[1]||(s[1]=n=>u.value="grid")},[o(v,{name:"i-hugeicons-grid-view",class:"size-4"})],10,at),t("button",{type:"button",class:A(["btn-press inline-flex size-8 items-center justify-center rounded-[4px] transition-colors duration-150 ease-[var(--ease-out)]",e(u)==="list"?"bg-accented text-highlighted":"text-muted hover:text-highlighted"]),"aria-pressed":e(u)==="list","aria-label":"List view",onClick:s[2]||(s[2]=n=>u.value="list")},[o(v,{name:"i-hugeicons-left-to-right-list-bullet",class:"size-4"})],10,lt)])]),e(le)?(a(),r("div",it,[o(pe,{modelValue:e(h),"onUpdate:modelValue":s[3]||(s[3]=n=>K(h)?h.value=n:null),icon:"i-hugeicons-search-01",loading:e(ne),size:"md",fixed:"",placeholder:"Search labels by name",class:"w-full"},null,8,["modelValue","loading"])])):S("",!0)]),e(B).length?e(u)==="grid"?(a(),r("div",rt,[(a(!0),r(U,null,$(e(Y),n=>(a(),r("article",{key:n.id,class:"flex flex-col rounded-md bg-[var(--marketing-surface)] p-6 ring-1 ring-default"},[t("div",ct,[o(J,{name:n.name,"logo-url":n.logoUrl,size:"md"},null,8,["name","logo-url"]),t("div",dt,[t("h2",ut,b(n.name),1),o(W,{class:"mt-2",genres:n.listedGenres,onSelect:L},null,8,["genres"])])]),t("div",mt,[o(P,{to:`/${n.slug}`,target:"_blank",class:"btn-default btn-press inline-flex h-10 w-full items-center gap-2 rounded-md px-3 text-sm font-medium text-highlighted"},{default:f(()=>[o(Z,{provider:"none",src:"/calmo-logo.svg",alt:"",width:"16",height:"16",class:"size-4 shrink-0"}),t("span",pt,b(O(n.slug)),1),o(v,{name:"i-hugeicons-arrow-up-right-01",class:"size-4 shrink-0 text-muted"})]),_:2},1032,["to"])])]))),128))])):(a(),r("div",gt,[t("ul",ft,[(a(!0),r(U,null,$(e(Y),n=>(a(),r("li",{key:n.id},[t("div",ht,[t("div",_t,[o(J,{name:n.name,"logo-url":n.logoUrl,size:"sm"},null,8,["name","logo-url"]),t("div",xt,[t("h2",vt,b(n.name),1),o(W,{class:"mt-1.5",genres:n.listedGenres,onSelect:L},null,8,["genres"])])]),o(P,{to:`/${n.slug}`,target:"_blank",class:"btn-default btn-press inline-flex h-10 w-full shrink-0 items-center gap-2 rounded-md px-3 text-sm font-medium text-highlighted sm:w-auto"},{default:f(()=>[o(Z,{provider:"none",src:"/calmo-logo.svg",alt:"",width:"16",height:"16",class:"size-4 shrink-0"}),t("span",wt,b(O(n.slug)),1),o(v,{name:"i-hugeicons-arrow-up-right-01",class:"size-4 shrink-0 text-muted"})]),_:2},1032,["to"])])]))),128))])])):(a(),z(D,{key:0,variant:"naked",size:"lg",class:"py-16",title:"No matching labels",description:e(re)},{actions:f(()=>[e(ue)?(a(),z(V,{key:0,label:"View all labels",color:"neutral",variant:"outline",size:"lg",onClick:oe})):S("",!0)]),_:1},8,["description"])),e(ie)?(a(),r("div",bt,[o(ge,{page:e(c),"onUpdate:page":s[4]||(s[4]=n=>K(c)?c.value=n:null),"items-per-page":C,total:e(F)},null,8,["page","total"])])):S("",!0)],8,et))])])]),_:1})}}});
1export{Rt as default};
2
3//# chunkId=01a109ac-5c93-7300-b043-cfab7ce05029

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.