UNPKG

@adyen/adyen-platform-experience-web

Version:

![Platform Experience header](https://github.com/Adyen/adyen-platform-experience-web/assets/7926613/18094965-9e01-450e-8dc9-ea84e6b22c2b)

17 lines (16 loc) 781 B
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 };