UNPKG

@progress/kendo-vue-common

Version:

Kendo UI for Vue Common Utilities package

45 lines (44 loc) 1.6 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import * as r from "@progress/kendo-licensing"; const p = ["telerik.com", "progress.com", "stackblitz.io", "csb.app", "webcontainer.io"], i = r, o = i !== void 0 && i.validatePackage ? i : i == null ? void 0 : i.default; function g(t) { if (o != null && o.validatePackage) o.validatePackage(t); else { let n = `License activation failed for ${t.name} `; n += `The @progress/kendo-licensing script is not loaded. `, n += `See ${t.licensingDocsUrl} for more information. `, console.warn(n); } } function f(t) { var c; return !p.some((s) => { var e; return (e = globalThis.document) == null ? void 0 : e.location.hostname.endsWith(s); }) && !((c = o == null ? void 0 : o.validatePackage) != null && c.call(o, t)); } const v = (t) => { var a; const { version: n, productName: c } = t, s = r.getLicenseStatus(t), e = s.message, l = s.licenseType, d = (a = s.expiration) == null ? void 0 : a.toDateString(), m = e && "code" in e ? e.code : void 0; return { ...e, code: m, licenseType: l, version: n, productName: (e == null ? void 0 : e.productName) || c, expiration: d }; }; export { v as getLicenseMessage, f as shouldShowValidationUI, g as validatePackage };