1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:weroad":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`767c0c19-aca7-48cf-bf0c-dd79f1bdaa9c`,e._sentryDebugIdIdentifier=`sentry-dbid-767c0c19-aca7-48cf-bf0c-dd79f1bdaa9c`)}catch{}})();import{t as e}from"./D7DM0C_z2.js";var t=class extends Error{key;constructor(e,t){super(e),this.key=t}},n={messageCount:0,lastMessage:null};function r(){let r=e(),i=r;async function a(e){let{data:t,response:n}=await r.GET(`/tours/{tourId}/message-board`,{params:{path:{tourId:e}}});if(n.status===404)return{messages:[],roomId:null,notificationsEnabled:null};if(!n.ok)throw Error(`Failed to fetch messages`);return{messages:t?.data.roomMessages.nodes??[],roomId:t?.meta?.roomId??null,notificationsEnabled:t?.meta?.notificationsEnabled??null}}async function o(e,n,i,a){let{data:o,error:s,response:c}=await r.POST(`/tours/{tourId}/message-board`,{params:{path:{tourId:e}},body:{text:n,displayName:i,replyToMessageId:a}});if(!c.ok||!o?.data?.addMessage){let e=s;throw new t(e?.message??`Failed to send message`,e?.key)}return o.data.addMessage}async function s(e){let{data:t,response:i}=await r.GET(`/tours/{tourId}/message-board/summary`,{params:{path:{tourId:e}}});return i.ok?t?.data??n:n}async function c(e){let{data:t,response:i}=await r.POST(`/tours/message-board/stats`,{body:{tourIds:[e]}});return i.ok?{messageCount:t?.data?.[e]?.messageCount??0,lastMessage:null}:n}async function l(e,t){let{data:n,error:i,response:a}=await r.PUT(`/message-board/rooms/{roomId}/notifications`,{params:{path:{roomId:e}},body:{notificationsEnabled:t}});if(!a.ok||typeof n?.data?.notificationsEnabled!=`boolean`)throw Error(i?.message??`Failed to set room notifications`);return n.data.notificationsEnabled}async function u(e,t){let{data:n,response:r}=await i.DELETE(`/tours/{tour}/message-board/{message}`,{params:{path:{tour:e,message:t}}}),a=n;if(!r.ok)throw Error(a?.message??`Failed to delete message`)}return{getMessages:a,sendMessage:o,deleteMessage:u,getSummary:s,getStats:c,setRoomNotifications:l}}export{r as n,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.