PageSourceSearch

https://app.bizthom.com/build/assets/Discover-Dqddox9B.js

js bizthom.com collected 2026-10-04 08:06:10 UTC 5,209 bytes, 1 lines download raw bytes

1import{d as B,Z as F,r as u,c as I,C as N,f as a,h as s,w as _,j as l,E as k,F as r,l as y,m as w,q as m,g as p,p as i,i as M,z as $,V as h,ap as g,_ as E}from"./storefront-section-blog-header-Ch7Ns0HC.js";import{a as T}from"./homeFeed-C37jWp5K.js";import{u as z}from"./useBlogApi-BRs0zzgk.js";import{a as O,_ as P}from"./SettingsIcon.vue_vue_type_script_setup_true_lang-DB5hdd4M.js";import{S as R}from"./bizthomAIFeatures-Dzcwbl63.js";import"./wholesaleTiers-B4fZ_Nh-.js";import"./storefront-section-blog-post-DCPfGkQN.js";import"./measuredStock-SZ-aNCJk.js";import"./useAutoPopupSlot-CRpfnswg.js";const Y={class:"dash-page"},j={key:0,class:"marketplace-grid"},q={key:1,class:"empty-state"},H={class:"empty-desc"},L={class:"marketplace-grid"},U={class:"card-header"},W={class:"card-avatar"},Z=["src","alt"],A={key:1},G={class:"card-info"},J={class:"card-name"},K={class:"card-meta"},Q={key:0,class:"card-meta"},X={key:0,class:"sample-products"},tt=["src","alt"],et={key:0,class:"sample-thumb sample-more"},at={class:"card-footer"},st=["href"],ot={key:1},lt=["disabled","onClick"],it=B({__name:"Discover",setup(rt){const{toast:d}=F(),{getInitials:C}=z(),b=u(!0),n=u([]),c=u(null),f=u(!1);T("Discover Collabs",async()=>{try{const[o,t]=await Promise.all([h.get("/collaborations/marketplace"),h.get("/settings/general")]);n.value=o.data.data?.data??[],f.value=t.data.data.business.is_open_to_collaborations??!1}catch(o){d.error(g(o,"Failed to load marketplace."))}finally{b.value=!1}});async function x(o){try{await h.patch("/settings/general",{is_open_to_collaborations:o}),f.value=o,d.success(o?"Your business is now discoverable":"Discovery turned off")}catch(t){f.value=!o,d.error(g(t,"Failed to update."))}}async function V(o){if(!c.value){c.value=o.id;try{await h.post("/collaborations/invite",{business_id:o.id}),d.success(`Invitation sent to ${o.name}`),n.value=n.value.filter(t=>t.id!==o.id)}catch(t){d.error(g(t,"Failed to send invitation."))}finally{c.value=null}}}const D=I(()=>[{label:"Collabs",href:"/collabs"},{label:"Discover",href:"/collabs/discover",active:!0}]);return(o,t)=>{const S=N("router-link");return s(),a(r,null,[_(P,null,{title:k(()=>[_(O,{items:D.value},null,8,["items"])]),status:k(()=>[_(R,{"model-value":f.value,label:"Open to collabs","label-position":"left",size:"sm","onUpdate:modelValue":x},null,8,["model-value"])]),_:1}),l("div",Y,[b.value?(s(),a("div",j,[(s(),a(r,null,y(6,e=>l("div",{key:e,class:"marketplace-card skeleton"},[...t[1]||(t[1]=[w('<div class="skeleton-header" data-v-14f9f843><div class="skeleton-avatar" data-v-14f9f843></div><div class="skeleton-text" data-v-14f9f843><div class="skeleton-line" style="width:60%;" data-v-14f9f843></div><div class="skeleton-line short" style="width:40%;" data-v-14f9f843></div></div></div><div class="skeleton-products" data-v-14f9f843><div class="skeleton-thumb" data-v-14f9f843></div><div class="skeleton-thumb" data-v-14f9f843></div><div class="skeleton-thumb" data-v-14f9f843></div></div>',2)])])),64))])):n.value.length===0?(s(),a("div",q,[t[5]||(t[5]=w('<div class="empty-icon" data-v-14f9f843><svg width="36" height="36" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" data-v-14f9f843><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" data-v-14f9f843></path><circle cx="9" cy="7" r="4" data-v-14f9f843></circle><path d="M22 21v-2a4 4 0 0 0-3-3.87" data-v-14f9f843></path><path d="M16 3.13a4 4 0 0 1 0 7.75" data-v-14f9f843></path></svg></div><h3 class="empty-title" data-v-14f9f843>No businesses available yet</h3>',2)),l("p",H,[t[3]||(t[3]=m(" When businesses mark themselves as open to collabs, they'll appear here. You can also invite a business directly using their business code in ",-1)),_(S,{to:"/collabs"},{default:k(()=>[...t[2]||(t[2]=[m("Collabs",-1)])]),_:1}),t[4]||(t[4]=m(" . ",-1))])])):(s(),a(r,{key:2},[t[6]||(t[6]=l("div",{class:"section-header"},[l("div",{class:"section-title"},"Suggested for you"),l("div",{class:"section-subtitle"},"Businesses that complement your store")],-1)),l("div",L,[(s(!0),a(r,null,y(n.value,e=>(s(),a("div",{key:e.id,class:"marketplace-card"},[l("div",U,[l("div",W,[e.logo?(s(),a("img",{key:0,src:e.logo,alt:e.name},null,8,Z)):(s(),a("span",A,i(M(C)(e.name)),1))]),l("div",G,[l("div",J,i(e.name),1),l("div",K,[m(i(e.categories?.[0]||"")+" ",1),e.city?(s(),a(r,{key:0},[m("· "+i(e.city),1)],64)):p("",!0)]),e.contact_phone?(s(),a("div",Q,i(e.contact_phone),1)):p("",!0)])]),e.sample_products.length>0?(s(),a("div",X,[(s(!0),a(r,null,y(e.sample_products.slice(0,3),v=>(s(),a("div",{key:v.id,class:"sample-thumb"},[v.image?(s(),a("img",{key:0,src:v.image,alt:v.name},null,8,tt)):p("",!0)]))),128)),e.sample_products.length>3?(s(),a("div",et," +"+i(e.sample_products.length-3),1)):p("",!0)])):p("",!0),l("div",at,[e.store_url?(s(),a("a",{key:0,href:e.store_url,target:"_blank",class:"visit-link",onClick:t[0]||(t[0]=$(()=>{},["stop"]))}," Visit Store ",8,st)):(s(),a("span",ot)),l("button",{class:"dash-btn dash-btn-primary dash-btn-sm",disabled:c.value===e.id,onClick:v=>V(e)},i(c.value===e.id?"Sending...":"Invite"),9,lt)])]))),128))])],64))])],64)}}}),ht=E(it,[["__scopeId","data-v-14f9f843"]]);export{ht as default};

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.