@adyen/adyen-platform-experience-web
Version:

17 lines (16 loc) • 781 B
JavaScript
const t = () => typeof window > "u" ? void 0 : window, r = () => typeof navigator > "u" ? void 0 : navigator, d = () => typeof process > "u" ? void 0 : process, v = "Adyen Platform Experience Web does not support server-side rendering. Initialize components in the browser, or dynamically import them when using SSR.", c = (e = r()) => e?.userAgent ?? "", s = (e = t()) => e === void 0 || e.document === void 0, u = ({
runtimeWindow: e = t(),
runtimeProcess: n = d(),
mode: o
} = {}) => {
if (!s(e))
return !1;
const i = o ?? n?.env?.VITE_MODE;
return n?.env?.NODE_ENV === "development" || i === "development";
};
export {
v as SERVER_SIDE_INITIALIZATION_WARNING,
c as getUserAgent,
s as isServerSideRuntime,
u as shouldWarnAboutServerSideInitialization
};