UNPKG

filepond

Version:

FilePond, where files go to stretch their bits.

32 lines (31 loc) • 785 B
/*! * FilePond v5.0.2 * Copyright (c) 2017-2026 Pqina B.V. * Released under the MIT License * https://filepond.com */ import { get as e } from "../../vendor/svelte/src/internal/client/runtime.js"; import { user_effect as m } from "../../vendor/svelte/src/internal/client/reactivity/effects.js"; import { state as i, set as o } from "../../vendor/svelte/src/internal/client/reactivity/sources.js"; import { isFunction as s } from "../../utils/test.js"; function v(n, f) { let r = i(void 0); return s(f) ? m(() => { const t = f(); n(e(r), t) && o(r, t); }) : o(r, f), { set current(t) { if (e(r) === void 0) { o(r, t); return; } n(e(r), t) && o(r, t); }, get current() { return e(r); } }; } export { v as gate };