
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b7b4c8df-ff82-58da-8746-0381461821db")}catch(e){}}();
import{a as s}from"/build/_shared/chunk-KO4JVCDO.js";import{f as a}from"/build/_shared/chunk-UMEOXIWR.js";import{a as d}from"/build/_shared/chunk-63UMEQBG.js";import{d as n}from"/build/_shared/chunk-5XTMU6GV.js";var r=n(d(),1),u=n(a(),1),o=(0,r.createContext)(null);function c({children:e,assistant:i}){return(0,u.jsx)(o.Provider,{value:i,children:e})}function P(){let e=(0,r.useContext)(o);if(e===null)throw new Error("useAssistant must be used within an AssistantProvider");return e}function l(){return(0,r.useContext)(o)}function p(){let{username:e}=P();return{hubLinks:{hubLandingPage(t){return s.hub({username:t?.username??e})},hubAboutPage(){return s.aboutDexa({username:e})},hubForPodcastersPage(){return s.forPodcasters({username:e})},hubSimilarLandingPage({username:t}){return s.hub({username:t})},episodePage({id:t}){return s.episode({id:t,username:e})},episodeSummaryPage(t){return s.episode({id:t.episodeId,topic:t?.topic,username:e})},clipPage({sids:t}){return s.clip({sids:t,username:e})},claimHub(){return s.claimHub({username:e})},privateThreadPage({id:t}){return s.privateThread({id:t,username:e})},sharedThreadPage({id:t}){return s.sharedThread({id:t,username:e})},startThreadPage(t){return t?s.startThread({content:t.content,source:t.source,queryPrefix:t.queryPrefix,username:e}):s.startThread({username:e})}}}}export{c as a,P as b,l as c,p as d};
//# sourceMappingURL=/build/_shared/chunk-EKJ6CP3B.js.map

//# debugId=b7b4c8df-ff82-58da-8746-0381461821db
