import k,{memo as G,useContext as H,useMemo as t}from"react";import{createContext as J}from"react";var d=Object.freeze([]),L=Object.freeze({}),C=J({activityMiddleware:d,activityStatusMiddleware:d,attachmentForScreenReaderMiddleware:d,attachmentMiddleware:d,avatarMiddleware:d,cardActionMiddleware:d,groupActivitiesMiddleware:d,polymiddleware:d,scrollToEndButtonMiddleware:d,sendBoxMiddleware:d,sendBoxToolbarMiddleware:d,styleOptions:L,styles:d,toastMiddleware:d,typingIndicatorMiddleware:d}),a=Object.freeze([]),Q=({activityMiddleware:l,activityStatusMiddleware:i,attachmentForScreenReaderMiddleware:r,attachmentMiddleware:o,avatarMiddleware:c,cardActionMiddleware:n,children:N,groupActivitiesMiddleware:w,polymiddleware:s,scrollToEndButtonMiddleware:M,sendBoxMiddleware:y,sendBoxToolbarMiddleware:m,styleOptions:u,styles:b,toastMiddleware:f,typingIndicatorMiddleware:p})=>{let e=H(C),v=t(()=>Object.freeze([...l||[],...e.activityMiddleware]),[l,e.activityMiddleware]),O=t(()=>Object.freeze([...i||a,...e.activityStatusMiddleware]),[i,e.activityStatusMiddleware]),j=t(()=>Object.freeze([...r||a,...e.attachmentForScreenReaderMiddleware]),[r,e.attachmentForScreenReaderMiddleware]),z=t(()=>Object.freeze([...o||a,...e.attachmentMiddleware]),[o,e.attachmentMiddleware]),B=t(()=>Object.freeze([...c||a,...e.avatarMiddleware]),[c,e.avatarMiddleware]),h=t(()=>Object.freeze([...n||a,...e.cardActionMiddleware]),[n,e.cardActionMiddleware]),x=t(()=>Object.freeze([...w||a,...e.groupActivitiesMiddleware]),[w,e.groupActivitiesMiddleware]),g=t(()=>Object.freeze([...s||a,...e.polymiddleware]),[s,e.polymiddleware]),A=t(()=>Object.freeze([...M||a,...e.scrollToEndButtonMiddleware]),[M,e.scrollToEndButtonMiddleware]),S=t(()=>Object.freeze([...y||a,...e.sendBoxMiddleware]),[y,e.sendBoxMiddleware]),T=t(()=>Object.freeze([...m||a,...e.sendBoxToolbarMiddleware]),[m,e.sendBoxToolbarMiddleware]),E=t(()=>Object.freeze({...u,...e.styleOptions}),[u,e.styleOptions]),I=t(()=>[...e.styles||a,...b||a],[b,e.styles]),R=t(()=>Object.freeze([...f||a,...e.toastMiddleware]),[f,e.toastMiddleware]),F=t(()=>Object.freeze([...p||a,...e.typingIndicatorMiddleware]),[p,e.typingIndicatorMiddleware]),P=t(()=>({activityMiddleware:v,activityStatusMiddleware:O,attachmentForScreenReaderMiddleware:j,attachmentMiddleware:z,avatarMiddleware:B,cardActionMiddleware:h,groupActivitiesMiddleware:x,polymiddleware:g,scrollToEndButtonMiddleware:A,sendBoxMiddleware:S,sendBoxToolbarMiddleware:T,styleOptions:E,styles:I,toastMiddleware:R,typingIndicatorMiddleware:F}),[v,O,j,z,B,h,x,g,A,S,T,E,I,R,F]);return k.createElement(C.Provider,{value:P},N)},_=G(Q);function U(l,i){let r=document.createElement("style");return r.append(document.createTextNode(l)),i&&(r.dataset.webchatInjected=i),r}function q(...l){return function(i){if(!globalThis.document)throw new Error("Unable to create styles: document is not defined");return l.map(r=>U(r,i))}}export{C as a,_ as b,q as c};
//# sourceMappingURL=chunk-J2AMVR3C.js.map
