dap-design-system
Version:
Official design system for the DÁP (dap.gov.hu)
36 lines (35 loc) • 964 B
JavaScript
var U = Object.defineProperty;
var o = Object.getOwnPropertySymbols;
var A = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
var d = (s, t, i) => t in s ? U(s, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[t] = i, f = (s, t) => {
for (var i in t || (t = {}))
A.call(t, i) && d(s, i, t[i]);
if (o)
for (var i of o(t))
F.call(t, i) && d(s, i, t[i]);
return s;
};
function k(s, t) {
const i = f({
waitUntilFirstUpdate: !1
}, t);
return (e, h) => {
const { update: u } = e, r = Array.isArray(s) ? s : [s];
e.update = function(a) {
r.forEach((w) => {
const n = w;
if (a.has(n)) {
const c = a.get(n), l = this[n];
c !== l && (!i.waitUntilFirstUpdate || this.hasUpdated) && this[h](
c,
l
);
}
}), u.call(this, a);
};
};
}
export {
k as watch
};
//# sourceMappingURL=decorators.js.map