UNPKG

@progress/kendo-vue-common

Version:

Kendo UI for Vue Common Utilities package

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