{ "version": 3, "sources": ["../../../node_modules/.pnpm/@solid-primitives+intersection-observer@2.1.6_solid-js@1.9.3/node_modules/@solid-primitives/intersection-observer/dist/index.js", "../../../src/ts/entry/payments.tsx"], "sourcesContent": ["import { onCleanup, createEffect, onMount, createSignal, DEV, untrack } from 'solid-js';\nimport { isServer } from 'solid-js/web';\nimport { handleDiffArray, access } from '@solid-primitives/utils';\n\n// src/index.ts\nfunction observe(el, instance) {\n if (DEV && el instanceof HTMLElement && el.style.display === \"contents\") {\n console.warn(\n `[@solid-primitives/intersection-observer] IntersectionObserver is not able to observe elements with 'display: \"contents\"' style:`,\n el\n );\n }\n instance.observe(el);\n}\nfunction makeIntersectionObserver(elements, onChange, options) {\n if (isServer)\n return {\n add: () => void 0,\n remove: () => void 0,\n start: () => void 0,\n reset: () => void 0,\n stop: () => void 0,\n instance: {}\n };\n const instance = new IntersectionObserver(onChange, options);\n const add = (el) => observe(el, instance);\n const remove = (el) => instance.unobserve(el);\n const start = () => elements.forEach(add);\n const reset = () => instance.takeRecords().forEach((el) => remove(el.target));\n start();\n return { add, remove, start, stop: onCleanup(() => instance.disconnect()), reset, instance };\n}\nfunction createIntersectionObserver(elements, onChange, options) {\n if (isServer)\n return;\n const io = new IntersectionObserver(onChange, options);\n onCleanup(() => io.disconnect());\n createEffect((p) => {\n const list = elements();\n handleDiffArray(\n list,\n p,\n (el) => observe(el, io),\n (el) => io.unobserve(el)\n );\n return list;\n }, []);\n}\nfunction createViewportObserver(...a) {\n if (isServer) {\n return [() => void 0, { start: () => void 0, stop: () => void 0 }];\n }\n let initial = [];\n let options = {};\n if (Array.isArray(a[0]) || a[0] instanceof Function) {\n if (a[1] instanceof Function) {\n initial = access(a[0]).map((el) => [el, a[1]]);\n options = a[2];\n } else {\n initial = access(a[0]);\n options = a[1];\n }\n } else\n options = a[0];\n const callbacks = /* @__PURE__ */ new WeakMap();\n const onChange = (entries, instance2) => entries.forEach((entry) => {\n const cb = callbacks.get(entry.target)?.(entry, instance2);\n cb instanceof Function && cb(entry, instance2);\n });\n const { add, remove, stop, instance } = makeIntersectionObserver([], onChange, options);\n const addEntry = (el, callback) => {\n add(el);\n callbacks.set(el, callback);\n };\n const removeEntry = (el) => {\n callbacks.delete(el);\n remove(el);\n };\n const start = () => initial.forEach(([el, cb]) => addEntry(el, cb));\n onMount(start);\n return [addEntry, { remove: removeEntry, start, stop, instance }];\n}\nfunction createVisibilityObserver(options, setter) {\n if (isServer) {\n return () => () => false;\n }\n const callbacks = /* @__PURE__ */ new WeakMap();\n const io = new IntersectionObserver((entries, instance) => {\n for (const entry of entries)\n callbacks.get(entry.target)?.(entry, instance);\n }, options);\n onCleanup(() => io.disconnect());\n function removeEntry(el) {\n io.unobserve(el);\n callbacks.delete(el);\n }\n function addEntry(el, callback) {\n observe(el, io);\n callbacks.set(el, callback);\n }\n const getCallback = setter ? (get, set) => {\n const setterRef = access(setter);\n return (entry) => set(setterRef(entry, { visible: untrack(get) }));\n } : (_, set) => (entry) => set(entry.isIntersecting);\n return (element) => {\n const [isVisible, setVisible] = createSignal(options?.initialValue ?? false);\n const callback = getCallback(isVisible, setVisible);\n let prevEl;\n if (!(element instanceof Element)) {\n createEffect(() => {\n const el = element();\n if (el === prevEl)\n return;\n if (prevEl)\n removeEntry(prevEl);\n if (el)\n addEntry(el, callback);\n prevEl = el;\n });\n } else\n addEntry(element, callback);\n onCleanup(() => prevEl && removeEntry(prevEl));\n return isVisible;\n };\n}\nvar Occurrence = /* @__PURE__ */ ((Occurrence2) => {\n Occurrence2[\"Entering\"] = \"Entering\";\n Occurrence2[\"Leaving\"] = \"Leaving\";\n Occurrence2[\"Inside\"] = \"Inside\";\n Occurrence2[\"Outside\"] = \"Outside\";\n return Occurrence2;\n})(Occurrence || {});\nfunction getOccurrence(isIntersecting, prevIsIntersecting) {\n if (isServer) {\n return \"Outside\" /* Outside */;\n }\n return isIntersecting ? prevIsIntersecting ? \"Inside\" /* Inside */ : \"Entering\" /* Entering */ : prevIsIntersecting === true ? \"Leaving\" /* Leaving */ : \"Outside\" /* Outside */;\n}\nfunction withOccurrence(setter) {\n if (isServer) {\n return () => () => false;\n }\n return () => {\n let prevIntersecting;\n const cb = access(setter);\n return (entry, ctx) => {\n const { isIntersecting } = entry;\n const occurrence = getOccurrence(isIntersecting, prevIntersecting);\n prevIntersecting = isIntersecting;\n return cb(entry, { ...ctx, occurrence });\n };\n };\n}\nvar DirectionX = /* @__PURE__ */ ((DirectionX2) => {\n DirectionX2[\"Left\"] = \"Left\";\n DirectionX2[\"Right\"] = \"Right\";\n DirectionX2[\"None\"] = \"None\";\n return DirectionX2;\n})(DirectionX || {});\nvar DirectionY = /* @__PURE__ */ ((DirectionY2) => {\n DirectionY2[\"Top\"] = \"Top\";\n DirectionY2[\"Bottom\"] = \"Bottom\";\n DirectionY2[\"None\"] = \"None\";\n return DirectionY2;\n})(DirectionY || {});\nfunction getDirection(rect, prevRect, intersecting) {\n if (isServer) {\n return {\n directionX: \"None\" /* None */,\n directionY: \"None\" /* None */\n };\n }\n let directionX = \"None\" /* None */;\n let directionY = \"None\" /* None */;\n if (!prevRect)\n return { directionX, directionY };\n if (rect.top < prevRect.top)\n directionY = intersecting ? \"Bottom\" /* Bottom */ : \"Top\" /* Top */;\n else if (rect.top > prevRect.top)\n directionY = intersecting ? \"Top\" /* Top */ : \"Bottom\" /* Bottom */;\n if (rect.left > prevRect.left)\n directionX = intersecting ? \"Left\" /* Left */ : \"Right\" /* Right */;\n else if (rect.left < prevRect.left)\n directionX = intersecting ? \"Right\" /* Right */ : \"Left\" /* Left */;\n return { directionX, directionY };\n}\nfunction withDirection(callback) {\n if (isServer) {\n return () => () => false;\n }\n return () => {\n let prevBounds;\n const cb = access(callback);\n return (entry, ctx) => {\n const { boundingClientRect } = entry;\n const direction = getDirection(boundingClientRect, prevBounds, entry.isIntersecting);\n prevBounds = boundingClientRect;\n return cb(entry, { ...ctx, ...direction });\n };\n };\n}\n\nexport { DirectionX, DirectionY, Occurrence, createIntersectionObserver, createViewportObserver, createVisibilityObserver, getDirection, getOccurrence, makeIntersectionObserver, withDirection, withOccurrence };\n", "import { template as _$template } from \"solid-js/web\";\nimport { setAttribute as _$setAttribute } from \"solid-js/web\";\nimport { classList as _$classList } from \"solid-js/web\";\nimport { mergeProps as _$mergeProps } from \"solid-js/web\";\nimport { use as _$use } from \"solid-js/web\";\nimport { effect as _$effect } from \"solid-js/web\";\nimport { insert as _$insert } from \"solid-js/web\";\nimport { createComponent as _$createComponent } from \"solid-js/web\";\nimport { memo as _$memo } from \"solid-js/web\";\nvar _tmpl$ = /*#__PURE__*/_$template(`
No payments found.`),\n _tmpl$2 = /*#__PURE__*/_$template(`