@vue-pdf-viewer/viewer 2.3.1-rc.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4146,7 +4146,7 @@ class QZ {
|
|
|
4146
4146
|
}
|
|
4147
4147
|
}
|
|
4148
4148
|
}
|
|
4149
|
-
const dl = QZ.getInstance(), vt = /* @__PURE__ */ new Date("2025-03-
|
|
4149
|
+
const dl = QZ.getInstance(), vt = /* @__PURE__ */ new Date("2025-03-27T03:54:19.703Z"), od = "Please visit https://www.vue-pdf-viewer.dev/license-management/ to generate a new license key.", cZ = {
|
|
4150
4150
|
invalidLicense: `You are currently using without a valid license. ${od}`,
|
|
4151
4151
|
mismatchedDomain: `Your license key is not valid for the current domain / IP. ${od}`,
|
|
4152
4152
|
expired: `Your license key has expired. ${od}`,
|
package/dist/index.umd.cjs
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<div class="${d}"></div>
|
|
30
30
|
`,U.appendChild(F),F},OZ=U=>{const d=new Date(U),F=d.getDate(),Z=d.getMonth()+1,Q=d.getFullYear(),c=d.getHours(),V=d.getMinutes(),W=d.getSeconds(),R=c>=12?"PM":"AM",N=`${c%12||12}:${V<10?"0":""}${V}:${W<10?"0":""}${W} ${R}`;return`${F}/${Z<10?"0":""}${Z}/${Q}, ${N}`};function gZ(U,d,F,Z,Q,c){let V=F;switch([q.DualPage].includes(Q)&&c>=3&&(V=2*F),!0){case(Q===q.DualPage&&c>=3):break;default:V=F;break}switch(Z){case bl.ActualSize:return 1;case bl.PageFit:return Math.min((U.clientWidth-lF)/V,(U.clientHeight-2*SW)/d);case bl.PageWidth:return(U.clientWidth-lF)/V}}function OU(){const d=new Error().stack?.split(`
|
|
31
31
|
`);if(!d||d.length<4)return"unknown";const F=d[3],Z=F.match(/\((.+?)\)/)||F.match(/at\s+(.+)/);return Z?Z[1].split("/").slice(-2).join("/"):"unknown"}function Vd(U){const d=U.level==="debug",F=`[VPV ${U.level.charAt(0).toUpperCase()+U.level.slice(1)}]`,Z=U.origin||OU();return d?[`%c ${F}(${Z}):
|
|
32
|
-
`,"color: #2563eb;",...U.args]:[F,`(${Z}):`,...U.args]}class sU{static instance;isProduction;constructor(){this.isProduction=!0}static getInstance(){return sU.instance||(sU.instance=new sU),sU.instance}debug(...d){if(!this.isProduction){const F={level:"debug",args:d,origin:OU()};console.debug(...Vd(F))}}info(...d){if(this.isProduction)console.info("[VPV Info]:",...d);else{const F={level:"info",args:d,origin:OU()};console.info(...Vd(F))}}warn(...d){if(this.isProduction)console.warn("[VPV Warning]:",...d);else{const F={level:"warn",args:d,origin:OU()};console.warn(...Vd(F))}}error(...d){if(this.isProduction)console.error("[VPV Error]:",...d);else{const F={level:"error",args:d,origin:OU()};console.error(...Vd(F))}}}const g=sU.getInstance(),nW=new Date("2025-03-
|
|
32
|
+
`,"color: #2563eb;",...U.args]:[F,`(${Z}):`,...U.args]}class sU{static instance;isProduction;constructor(){this.isProduction=!0}static getInstance(){return sU.instance||(sU.instance=new sU),sU.instance}debug(...d){if(!this.isProduction){const F={level:"debug",args:d,origin:OU()};console.debug(...Vd(F))}}info(...d){if(this.isProduction)console.info("[VPV Info]:",...d);else{const F={level:"info",args:d,origin:OU()};console.info(...Vd(F))}}warn(...d){if(this.isProduction)console.warn("[VPV Warning]:",...d);else{const F={level:"warn",args:d,origin:OU()};console.warn(...Vd(F))}}error(...d){if(this.isProduction)console.error("[VPV Error]:",...d);else{const F={level:"error",args:d,origin:OU()};console.error(...Vd(F))}}}const g=sU.getInstance(),nW=new Date("2025-03-27T03:54:19.703Z"),qd="Please visit https://www.vue-pdf-viewer.dev/license-management/ to generate a new license key.",SU={invalidLicense:`You are currently using without a valid license. ${qd}`,mismatchedDomain:`Your license key is not valid for the current domain / IP. ${qd}`,expired:`Your license key has expired. ${qd}`,exceededVersion:"Your license does not support the current version of Vue PDF Viewer. The library version you are using exceeds the supported range of your license.",invalidSignature:"Invalid license key: Signature mismatch"};function bW(U){const d=atob(U),F=new Uint8Array(d.length);for(let Z=0;Z<d.length;Z++)F[Z]=d.charCodeAt(Z);return F.buffer}const rZ=window.crypto.getRandomValues(new Uint8Array(32)).reduce((U,d)=>U+d.toString(16).padStart(2,"0"),"");function mW(U){const d=U.replace(/-----BEGIN PUBLIC KEY-----/,"").replace(/-----END PUBLIC KEY-----/,"").replace(/\s+/g,""),F=atob(d),Z=new Uint8Array(F.length);for(let Q=0;Q<F.length;Q++)Z[Q]=F.charCodeAt(Q);return Z.buffer}function JW(U){try{const d=JSON.stringify(U);return btoa(d+rZ)}catch(d){return g.error("Error encoding license data:",d),""}}function GW(U){if(!U)return null;try{const F=atob(U).slice(0,-rZ.length);return JSON.parse(F)}catch(d){return g.error("Error decoding license data:",d),null}}async function BW(U,d="SHA-256"){try{const{data:F,signature:Z}=JSON.parse(atob(U)),Q=mW(`-----BEGIN PUBLIC KEY-----
|
|
33
33
|
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxBYxngKoXlUVluqotveU
|
|
34
34
|
Uo8+98JHEHr6exhswsBqEVS3T4ZqvsVjyBm3FDEE4A5YpwyqISj5Wp1QS+9rhK0L
|
|
35
35
|
s0fAhxRYtziHJGiARcHURSjLbsVuH9IsBDzIjay3j+MD42TumiVh8IzQ8SJvBmTL
|