import{t as e}from"./api-client-DWESLoKW.js";import{a as t,i as n,s as r}from"./parse-Bjdc10c7.js";var i={maxChars:500,maxLines:3,counterFrom:400,domLimit:150,historyOnJoin:50,pausedBufferMax:500,ackTimeoutMs:5e3,pauseThresholdPx:24,mentionSuggestions:5,recentChatters:50,recentEmotes:20,guestMaxChars:200,guestCounterFrom:160,guestSlowSec:10,guestNameMin:3,guestNameMax:20},a=[0,2,5,10,30,60,120],o=[null,0,10,30,60,1440,10080,43200,129600],s=encodeURIComponent,c={history:async(n,r=i.historyOnJoin)=>t(await e(`/v1/chat/rooms/${s(n)}/messages?limit=${r}`)),emotes:async t=>n(await e(t?`/v1/chat/emotes?channelId=${s(t)}`:`/v1/chat/emotes`)),settings:async t=>r(await e(`/v1/channels/${s(t)}/chat-settings`)),updateSettings:async(t,n)=>r(await e(`/v1/channels/${s(t)}/chat-settings`,{method:`PUT`,body:n,auth:!0}))};export{a as i,i as n,o as r,c as t};