@uiloos/core
Version:
The core of the uiloos headless UI
2 lines (1 loc) • 959 B
JavaScript
var uiloosLicenseChecker=function(e){"use strict";class s{constructor(){this._licenseKey="",this._logOnSuccess=!1,this._success=!1}activateLicense(e,s={logLicenseActivated:!0}){this._licenseKey=e,this._logOnSuccess=s.logLicenseActivated}_checkLicense(){if(!this._success)if(this._licenseKey){const e=this._licenseKey.split("-");if(2!==e.length)console.warn(`uiloos > license > invalid license key detected: ${this._licenseKey}, ${t}`);else{const[s,i]=e;this._logOnSuccess&&console.log(`uiloos > license > license activated, this license is for use with ${i} developers. We thank you for your support, you can disable this message if you want to. ${c}`),this._success=!0}}else console.warn(`uiloos > license > you are using commercial software, ${t}`)}}let i=new s;const c="If you are not the owner of this website please ignore this message.",t=`please purchase a license at https://www.uiloos.dev. ${c}`;return e._LicenseChecker=s,e.licenseChecker=i,e}({});