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)

31 lines (30 loc) 841 B
import { TimeFlag as s } from "../../types.js"; import { struct as u, withFreezeProxyHandlers as c } from "../../../../../../utils/struct/main.js"; import { isString as l } from "../../../../../../utils/value/is.js"; const d = (() => { const r = {}, n = Object.keys(s).filter((e) => isNaN(+e)), i = (e) => e !== "ALL" && l(e) && n.includes(e); return (e) => { const t = e & s.ALL; return r[t] || (r[t] = new Proxy( u({ valueOf: { value: () => t } }), c({ get: (o, a) => { switch (a) { case "valueOf": return o.valueOf; case Symbol.toStringTag: return "_"; default: if (!i(a)) return; } return t & s[a] ? 1 : void 0; } }) )), r[t]; }; })(); export { d as default };