import{r as e,j as s}from"./jsx-runtime-CAOzMBF_.js";const t=e.createContext(void 0),C=({children:n,channel:o,channelConfig:r})=>s.jsx(t.Provider,{value:{channel:o,channelConfig:r},children:n}),i=()=>{const n=e.useContext(t);if(!n)throw new Error("useChannel must be used within a ChannelProvider");return n.channel},u=()=>{const n=e.useContext(t);if(!n)throw new Error("useChannelConfig must be used within a ChannelProvider");return n.channelConfig},h=()=>{const n=e.useContext(t);if(!n)throw new Error("useChannelConfig must be used within a ChannelProvider");return n.channelConfig.locale},l=()=>{const n=e.useContext(t);if(!n)throw new Error("useChannelConfig must be used within a ChannelProvider");return n.channelConfig.store.replace("X2O_","").split("_").reverse().map((o,r)=>r===0?o.toLowerCase():o).join("-")};export{C,l as a,u as b,i as c,h as u};
