@progress/kendo-vue-common
Version:
Kendo UI for Vue Common Utilities package
28 lines (27 loc) • 816 B
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import { FIELD_REGEX as h } from "./constants/main.mjs";
const e = {};
e.undefined = (t) => t;
function f(t) {
if (e[t])
return e[t];
const o = [];
return t.replace(h, function(u, r, n, c) {
o.push(r !== void 0 ? r : n || c);
}), e[t] = function(u, r) {
let n = u;
const c = o.length - 1;
for (let s = 0; s < c && n; s++)
n = n[o[s]] = n[o[s]] || {};
n[o[c]] = r;
}, e[t];
}
export {
f as setter
};