(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4879],{42459:function(e,t,n){"use strict";n.d(t,{w:function(){return X}});var r,o,i,s,a={};n.r(a),n.d(a,{getLicenseStatus:function(){return q},registerLicenseMessage:function(){return U},setScriptKey:function(){return W},validatePackage:function(){return J}});var c=n(67294),u=n(45697),l=n(41125),p=n(33671);function h(e,t,n){void 0===n&&(n={});var r=m;if(n.forceProxy&&!n.proxyURL)throw Error("No proxyURL is set, but forceProxy is true");!n.forceProxy&&(f()&&(r=g),navigator.msSaveBlob&&(r=y)),r(e,t,n)}var d=function(){return document.createElement("a")},f=function(){return"download"in d()};function y(e,t){var n=e;if("string"==typeof e){for(var r=e.split(";base64,"),o=r[0],i=atob(r[1]),s=new Uint8Array(i.length),a=0;a".concat(t,"")}}return e.prototype.savePDF=function(e){var t=this,n=this.drawDOM(this.domElement,this.getDrawOptions()).then(function(e){return t.exportPDF(e,t.getPDFOptions())}).then(function(e){return t.saveAs(e,t.options.fileName||"export.pdf",t.getSaveOptions())});e&&n.then(e,e)},e.prototype.getDrawOptions=function(){return{avoidLinks:this.options.avoidLinks,forcePageBreak:this.options.forcePageBreak,keepTogether:this.options.keepTogether,margin:this.options.margin,paperSize:this.options.paperSize,landscape:this.options.landscape,repeatHeaders:this.options.repeatHeaders,scale:this.options.scale,template:this.options.pageTemplate&&this.convertPageTemplateToHtml}},e.prototype.getPDFOptions=function(){return{author:this.options.author,creator:this.options.creator||"KendoReact PDF Generator",date:this.options.date,imgDPI:this.options.imageResolution,keywords:this.options.keywords,landscape:this.options.landscape,margin:this.options.margin,multiPage:!0,paperSize:this.options.paperSize,producer:this.options.producer,subject:this.options.subject,title:this.options.title}},e.prototype.getSaveOptions=function(){return{forceProxy:this.options.forceProxy,proxyData:this.options.proxyData,proxyTarget:this.options.proxyTarget,proxyURL:this.options.proxyURL}},e}(),k=n(48764).lW;function O(e){return Math.floor(e.getTime()/1e3)}function T(e,t){let n=new Date(1e3*e);return n.setDate(n.getDate()+t),O(n)}function E(){return O(new Date)}function P(e){let t=function(e){if("function"==typeof atob)return atob(e);if("function"==typeof k)return k.from(e,"base64").toString("utf8");throw Error("atob is undefined")}(e),n=new Uint8Array(t.length);for(let e=0;enew Date(n.getFullYear(),n.getMonth(),n.getDate()+1).getTime()/1e3}(o=s||(s={})).BLAZOR="BLAZOR",o.DPL="DPL",o.JM="JM",o.KENDOUIANGULAR="KENDOUIANGULAR",o.KENDOUICOMPLETE="KENDOUICOMPLETE",o.KENDOUIMVC="KENDOUIMVC",o.KENDOUIREACT="KENDOUIREACT",o.KENDOUIVUE="KENDOUIVUE",o.MAUI="MAUI",o.RCAJAX="RCAJAX",o.RCWF="RCWF",o.RCWPF="RCWPF",o.REPORTING="REPORTING",o.REPORTSERVER="REPORTSERVER",o.UIASPCORE="UIASPCORE",o.UIXAM="UIXAM",o.WINUI="WINUI",Object.freeze({[s.BLAZOR]:"Telerik UI for Blazor",[s.DPL]:"Telerik Document Processing",[s.JM]:"Telerik JustMock",[s.KENDOUIANGULAR]:"Kendo UI for Angular",[s.KENDOUICOMPLETE]:"Kendo UI for jQuery",[s.KENDOUIMVC]:"Telerik UI for ASP.NET MVC",[s.KENDOUIREACT]:"KendoReact",[s.KENDOUIVUE]:"Kendo UI for Vue",[s.MAUI]:"Telerik UI for .NET MAUI",[s.RCAJAX]:"Telerik UI for ASP.NET AJAX",[s.RCWF]:"Telerik UI for WinForms",[s.RCWPF]:"Telerik UI for WPF",[s.REPORTING]:"Telerik Reporting",[s.REPORTSERVER]:"Telerik Report Server",[s.UIASPCORE]:"Telerik UI for ASP.NET Core",[s.UIXAM]:"Telerik UI for Xamarin",[s.WINUI]:"Telerik UI for WinUI"});let x=e=>e.productCode||e.productCodes[0];function U(e,t,n,r){let o="kendoLicensingMessage",i=()=>{},s=new CustomEvent(o,{detail:{message:e,productCode:t},cancelable:!0});if(document.documentElement.dispatchEvent(s)){let e=e=>{e.detail.productCode!==t&&n({message:e.detail.message,productCode:e.detail.productCode}),e.preventDefault()};document.documentElement.addEventListener(o,e),i=()=>{document.documentElement.removeEventListener(o,e)},r()}return i}let I=Object.freeze({name:"key",content:'\n \n \n \n \n \n \n '}),A=Object.freeze({name:"trial-tag",content:'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '}),S=Object.freeze({name:"recurring-payment",content:'\n \n \n \n \n \n \n \n \n '});class N{constructor(e,t,n,r){this.productName=e,this.severity="WARN",this.code="TKL201",this.notificationIcon=I,this.message="No Telerik and Kendo UI License found.\n To download a license key file, visit https://prgress.co/3PwQMKZ",this.notificationMessage=`License key missing for ${e} v${n}. A license key is required for both paid and trial usage. Learn how to set up a license key.`,this.notificationTitle=`License key missing for ${e} v${n}.`,this.notificationBody="A license key is required for both paid and trial usage.",this.callToAction={link:`https://www.telerik.com/download?utm_source=no_license_watermark&utm_campaign=${t.toLowerCase()}&utm_content=no_license_key_found`,message:"Start Free Trial"}}}class M{constructor(e,t,n,r){this.productName=e,this.severity="WARN",this.code="TKL202",this.notificationIcon=I,this.message=`${e} is not listed in your current license file. Learn more about ${e} licensing at ${r}`,this.notificationMessage=`No license found for ${e} v${n}. Access to the latest updates and support requires a valid license.`,this.notificationTitle=`No license found for ${e} v${n}`,this.notificationBody="To use this product and access updates and support you need to buy and install a valid license.",this.callToAction={link:`https://www.telerik.com/purchase.aspx?utm_source=no_license_watermark&utm_campaign=${t.toLowerCase()}&utm_content=no_license_key_current_product`,message:"Buy Now"}}}class Q{constructor(e,t,n,r){this.productName=e,this.severity="WARN",this.code="TKL203",this.notificationIcon=A,this.message=`Your trial has expired ${r} day(s) ago. Thank you for trying out ${e}, we hope you enjoyed your trial period. To continue using our product, consider upgrading to a commercial license: https://prgress.co/3C9mr1M`,this.notificationMessage=`Your trial license for ${e} v${n} has expired ${r} ago. To continue using our product, consider upgrading to a commercial license. Learn more about ${e} licensing.`,this.notificationTitle=`Your trial license for ${e} has expired.`,this.notificationBody="To continue using the product you need to buy a subscription.",this.callToAction={link:`https://www.telerik.com/purchase.aspx?utm_source=no_license_watermark&utm_campaign=${t.toLowerCase()}&utm_content=trial_expired`,message:"Buy Now"}}}class F{constructor(e,t,n,r,o,i){this.productName=e,this.severity="WARN",this.code="TKL204",this.notificationIcon=I;let s=r?` version ${r}`:"";this.message=`Your current license has expired on ${n.toLocaleDateString()} and is not valid for ${e}${s}. The product was published on ${o.toLocaleDateString()}. Renew your license at https://prgress.co/3Px9m5F`,this.notificationMessage=`Your license is not valid for ${e} v${r}. To continue using the product, install a valid license. Renew your license and download a new license key.`,this.notificationTitle=`Your license doesn't cover ${e} v${r}`,this.notificationBody="To access the latest version and updates you need to renew your license.",this.callToAction={link:`https://www.telerik.com/account/your-licenses?utm_source=no_license_watermark&utm_campaign=${t.toLowerCase()}&utm_content=perpertual_newer_version`,message:"Renew Now"}}}class ${constructor(e,t,n){this.productName=e,this.severity="WARN",this.code="TKL204",this.notificationIcon=S,this.message=`Your ${e} subscription has expired on ${n.toLocaleDateString()}. To continue using the product, please renew your subscription at https://prgress.co/3Px9m5F and download a new license key.`,this.notificationMessage=`Your ${e} subscription has expired. To continue using the product, please renew your subscription and download a new license key.`,this.notificationTitle=`Your ${e} subscription has expired.`,this.notificationBody="To continue using the product you need to renew your subscription.",this.callToAction={link:`https://www.telerik.com/account/your-licenses?utm_source=no_license_watermark&utm_campaign=${t.toLowerCase()}&utm_content=subscription_expired`,message:"Renew Now"}}}class K{constructor(e,t,n,r){this.productName=e,this.severity="INFO",this.notificationIcon=A,this.message=`Your Trial license will expire in ${-r} day(s). To acquire a commercial license, visit https://prgress.co/3PyHIoH`,this.notificationTitle=`Active trial for ${e} v${n}`,this.notificationBody=`Your trial will expire in ${-r} day(s).`,this.callToAction={link:`https://www.telerik.com/purchase.aspx?utm_source=no_license_watermark&utm_campaign=${t.toLowerCase()}&utm_content=active_trial`,message:"Buy now"}}}async function B(e,t){if("object"!=typeof crypto||"object"!=typeof crypto.subtle||"function"!=typeof TextEncoder||"function"!=typeof TextDecoder)return;let n=crypto.subtle,[r,o,i]=e.split("."),s=R(i),a=new TextEncoder,c=new TextDecoder,u=a.encode(`${r}.${o}`);if("Telerik License Evidence"!==JSON.parse(c.decode(R(r))).typ)throw Error("Unknown license evidence type");let l=await function(e){let t=P(e.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").replace(/\n/gm,""));return crypto.subtle.importKey("spki",t,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},!0,["verify"])}(t);if(!await n.verify(l.algorithm,l,s,u))throw Error("Invalid license evidence")}let H={data:" {} "},V=new Map,j=new Set;function W(e){try{let t=JSON.parse(function(e){let t=[],n=e.trim();for(let e=0;e{let t=e^r;return r=e,t}).map(e=>String.fromCharCode(e)).join("")}(e));Array.isArray(t[3])&&t.splice(3,0,"");let n={products:t[1].map(([e,t,n])=>({code:e,licenseExpirationDate:t,trial:!!n})),userId:t[2],integrity:t[3],licenses:t[4],scriptKey:!0};try{let e=JSON.parse(H.data);n.products=[...e.products,...n.products],n.licenses=[...e.licenses,...n.licenses]}catch(e){}H.data=JSON.stringify(n)}catch(e){}}let Z=!0;function q(e){var t;let n=JSON.parse(H.data),r=!n.scriptKey&&!n.timestamp,o=n.scriptKey&&"undefined"==typeof KendoLicensing,i=x(e),s,a,c=!1;if(r||o||(n.licenses?.length>0&&Promise.all(n.licenses?.map(e=>B(e,"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2mnUVMmkth2x+N/ODszG\nOFIYBL6NOO1XWRj1wkmecKuLziJDhFz0WQmyOjY34Ymg9pLuBA9QSWrrZuvPw40N\nm0X/GBmttFmPNvca3WmJ2oKM7PpLiUU9f7Ov5WeIXnx++ts/LC/OB7FtZ+LiRgJ7\n0mZnPeTogdFrASf0zSQJv4jmX840LPa6nomWeUgIVGPLLVI14Gib8Dl+nOckqCNc\nkAUUk4IBF67DufRt9zQyRxg99ysakvHX2SDbdGvIBdxWxvhhmrBoeix0uSVtG2gm\njdvSqlPJVdvMbk1Xe2+SUldJPrxH1VrTYeRUt4yqWxy16nFJUDj9exZ202X4THkU\nJQIDAQAB\n-----END PUBLIC KEY-----"))).then(()=>{Z=!0}).catch(()=>{Z=!1,V.clear()}),!Z))s=new N(e.productName,i,e.version,e.licensingDocsUrl);else{let r;if(r=[],n.licenses?.length>0?r=n.licenses.map(e=>JSON.parse(String.fromCharCode(...R(e.split(".")[1])))):n.products?.length>0&&(r=n.products.map(e=>({type:e.trial?"trial":"perpetual",code:e.code,expiration:e.licenseExpirationDate,licenseId:null,userId:n.userId}))),a=function(e,t){let n=t.filter(e=>"usage"!==e.type).filter(t=>e.productCode===t.code||e.redistributedBy?.includes(t.code)||e.productCodes?.includes(t.code)).sort((e,t)=>t.expiration-e.expiration);return n.find(e=>"subscription"===e.type&&!_(E(),e.expiration))||n.find(t=>"perpetual"===t.type&&!_(e.publishDate,t.expiration))||n.find(e=>"subscription"===e.type&&!_(T(E(),10),e.expiration))||n.find(e=>"trial"===e.type&&!_(E(),e.expiration))||n.find(e=>"subscription"===e.type)||n.find(e=>"perpetual"===e.type)||n.find(e=>"trial"===e.type)}(e,r)){if("trial"===a.type){let n=(t=D(a.expiration),Math.floor((E()-O(t))/86400));_(E(),a.expiration)?s=new Q(e.productName,i,e.version,n):(s=new K(e.productName,i,e.version,n),c=!0)}else if("perpetual"===a.type){let t=a.expiration;_(e.publishDate,t)?s=new F(e.productName,i,D(a.expiration),e.version,D(e.publishDate),e.licensingDocsUrl):c=!0}else if("subscription"===a.type){let t=a.expiration;"subscription"===a.type&&(t=T(t,10)),n.timestamp&&_(n.timestamp,t)?s=new $(e.productName,i,D(a.expiration)):c=!0}}else s=new M(e.productName,i,e.version,e.licensingDocsUrl)}let u=a,l=u?.expiration?D(u.expiration):void 0;return{isLicenseValid:c,licenseType:a?.type,licenseProductCode:u?.code,expiration:l,message:s}}function J(e){if(V.has(e.name))return V.get(e.name);let{isLicenseValid:t,message:n}=q(e),r=x(e);return n&&!j.has(r)&&(function(e,t){var n;if("object"==typeof console){let r=`[${e.severity}][Telerik and Kendo UI Licensing]`+(n?` ${n}:`:"")+` ${t.productName}`,o="function"==typeof console.group;o?console.group(r):console.warn(r),console.warn(e.message),o&&console.groupEnd()}}(n,e),j.add(r)),V.set(e.name,t),t}var G={name:"@progress/kendo-react-pdf",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1695801847,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},Y=(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),X=function(e){function t(t){var n=e.call(this,t)||this;if(n.rootElForPDF=null,void 0!==a)J(G);else{var r="License activation failed for ".concat(G.name,"\n");console.warn(r+="The @progress/kendo-licensing script is not loaded.\n"+"See ".concat(G.licensingDocsUrl," for more information.\n"))}return n}return Y(t,e),t.prototype.render=function(){var e=this;return c.createElement("div",{ref:function(t){e.rootElForPDF=t}},this.props.children)},t.prototype.save=function(e){new L(l.Vg,p.F_,h,this.rootElForPDF,this.getOptions()).savePDF(e)},t.prototype.getOptions=function(){var e,t;return Object.assign({},this.props,{margin:(e=this.props,(t=c.Children.toArray(e.children).find(function(e){return e&&e.type===b}))?function(e){for(var t={},n=0;n