try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`5c02a123-1930-4767-ab2e-0b0a2a6e7072`,e._sentryDebugIdIdentifier=`sentry-dbid-5c02a123-1930-4767-ab2e-0b0a2a6e7072`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,jg as n}from"./entry.client-mpghtlrl.js";var r=t(),i=e(n(),1),a=(0,i.createContext)(null);function o(){let e=(0,i.useContext)(a);if(!e)throw Error(`useWidget must be used within a WidgetProvider`);return e}function s(e){let t=(0,r.c)(9),{setHeader:n}=o(),{title:a,shortTitle:s,icon:c,badge:l,moreMenuItems:u,ownsScrolling:d}=e,f,p;t[0]!==n||t[1]!==a||t[2]!==s||t[3]!==c||t[4]!==l||t[5]!==u||t[6]!==d?(f=()=>{n({title:a,shortTitle:s,icon:c,badge:l,moreMenuItems:u,ownsScrolling:d})},p=[a,s,c,l,u,d,n],t[0]=n,t[1]=a,t[2]=s,t[3]=c,t[4]=l,t[5]=u,t[6]=d,t[7]=f,t[8]=p):(f=t[7],p=t[8]),(0,i.useEffect)(f,p)}export{o as n,s as r,a as t};