1import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{nn as t}from"./vendor-datadog.CbXwTgUc.js";import{a as n,i as r}from"./app-hooks-useBoolean-LocalizationProvider.BXNw5IM4.js";import{Jn as i,Kn as a,qn as o}from"./platform-components-checkout-i18next.config.DIPKfKrc.js";for(var s=e(t(),1),c=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`,l=e=>{let t=``,n,r,i,a,o,s,l,u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,``);u<e.length;)a=c.indexOf(e.charAt(u++)),o=c.indexOf(e.charAt(u++)),s=c.indexOf(e.charAt(u++)),l=c.indexOf(e.charAt(u++)),n=a<<2|o>>4,r=(o&15)<<4|s>>2,i=(s&3)<<6|l,t+=String.fromCharCode(n),s!=64&&(t+=String.fromCharCode(r)),l!=64&&(t+=String.fromCharCode(i));return t},u=[],d=0;d<64;)u[d]=0|Math.sin(++d%Math.PI)*4294967296;function f(e){let t=[],n,r,i,a=unescape(encodeURI(e))+`Â`,o=a.length,s=[n=1732584193,r=4023233417,~n,~r];for(e=--o/4+2|15,t[--e]=o*8;~o;)t[o>>2]|=a.charCodeAt(o)<<8*o--;for(d=a=0;d<e;d+=16){for(o=s;a<64;o=[i=o[3],n+((i=o[0]+[n&r|~n&i,i&n|~i&r,n^r^i,r^(n|~i)][o=a>>4]+u[a]+~~t[d|[a,5*a+1,3*a+5,7*a][o]&15])<<(o=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*o+a++%4])|i>>>-o),n,r])n=o[1]|0,r=o[2];for(a=4;a;)s[--a]+=o[a]}for(e=``;a<32;)e+=(s[a>>3]>>(1^a++)*4&15).toString(16);return e}var p=[`pro`,`premium`],m=[`2022`,`initial`,`Q3-2024`,`Q1-2026`];function h(e,t){let n=m.indexOf(e),r=m.indexOf(t);return n!==-1&&n<=r}var g=[`perpetual`,`annual`,`subscription`],_=function(e){return e.NotFound=`NotFound`,e.Invalid=`Invalid`,e.ExpiredAnnual=`ExpiredAnnual`,e.ExpiredAnnualGrace=`ExpiredAnnualGrace`,e.ExpiredVersion=`ExpiredVersion`,e.Valid=`Valid`,e.OutOfScope=`OutOfScope`,e.NotAvailableInInitialProPlan=`NotAvailableInInitialProPlan`,e.NotValidForPackage=`NotValidForPackage`,e}({});function v(e,t){let n;return n=e.includes(`-pro`)?[`pro`,`premium`]:e.includes(`-premium`)?[`premium`]:[],n.includes(t)}var y=/^.*EXPIRY=([0-9]+),.*$/,b=/^.*ORDER:([0-9]+),.*$/,x=[`x-data-grid-pro`,`x-date-pickers-pro`],S=`Q3-2024`;function C(e){let t,n;try{t=parseInt(e.match(y)[1],10),(!t||Number.isNaN(t))&&(t=null),n=parseInt(e.match(b)[1],10),(!n||Number.isNaN(n))&&(n=null)}catch{t=null,n=null}return{keyVersion:1,licenseModel:`perpetual`,planScope:`pro`,planVersion:`initial`,expiryTimestamp:t,expiryDate:t?new Date(t):null,orderId:n==null?null:String(n),appType:`multi`,quantity:null,isTestKey:e.includes(`T=true`)}}function w(e,t){e.split(`,`).map(e=>e.split(`=`)).filter(e=>e.length===2).forEach(([e,n])=>{if(e===`S`&&(t.planScope=n),e===`LM`&&(t.licenseModel=n),e===`E`){let e=parseInt(n,10);e&&!Number.isNaN(e)&&(t.expiryTimestamp=e,t.expiryDate=new Date(e))}if(e===`PV`&&(t.planVersion=n),e===`O`&&(t.orderId=n),e===`Q`){let e=parseInt(n,10);e&&!Number.isNaN(e)&&(t.quantity=e)}e===`AT`&&(t.appType=n),e===`T`&&(t.isTestKey=n===`true`)})}function T(e){let t={keyVersion:2,licenseModel:null,planScope:null,planVersion:`initial`,expiryTimestamp:null,expiryDate:null,orderId:null,appType:`multi`,quantity:null,isTestKey:!1};return w(e,t),t}function E(e){let t={keyVersion:3,licenseModel:null,planScope:null,planVersion:`initial`,expiryTimestamp:null,expiryDate:null,orderId:null,appType:null,quantity:null,isTestKey:!1};return w(e,t),t}function D(e){let t=l(e);return t.includes(`KEYVERSION=1`)?C(t):t.includes(`KV=2`)?T(t):t.includes(`KV=3`)?E(t):null}function O({packageInfo:e,licenseKey:t}){let{name:n,releaseDate:i,version:a}=e,o=parseInt(a??``,10);if(!i)throw Error(r(188));if(!t)return{status:_.NotFound};let s=t.slice(0,32),c=t.slice(32);if(s!==f(c))return{status:_.Invalid};let u=D(c);if(u==null)return console.error(`MUI X: Error checking license. Key version not found!`),{status:_.Invalid};if(u.isTestKey)return console.error(`MUI X: Error checking license. Test license key used in a non-test environment!`),{status:_.Invalid};if(u.licenseModel==null||!g.includes(u.licenseModel))return console.error(`MUI X: Error checking license. License model not found or invalid!`),{status:_.Invalid};if(u.expiryTimestamp==null)return console.error(`MUI X: Error checking license. Expiry timestamp not found or invalid!`),{status:_.Invalid};if(u.licenseModel===`perpetual`||!0){let e=parseInt(l(i),10);if(Number.isNaN(e))throw Error(r(189));if(u.expiryTimestamp<e)return o!=null&&o>=9&&u.licenseModel===`perpetual`&&h(u.planVersion,S)?{status:_.NotValidForPackage,meta:{packageMajorVersion:o}}:{status:_.ExpiredVersion}}return u.planScope==null||!p.includes(u.planScope)?(console.error(`MUI X: Error checking license. planScope not found or invalid!`),{status:_.Invalid}):v(n,u.planScope)?u.planVersion===`initial`&&u.planScope===`pro`&&!x.includes(n)?{status:_.NotAvailableInInitialProPlan}:o!=null&&o>=9&&u.licenseModel!==`perpetual`&&h(u.planVersion,S)?{status:_.NotValidForPackage,meta:{packageMajorVersion:o}}:{status:_.Valid}:{status:_.OutOfScope}}var k=typeof window<`u`&&window.location.hostname.endsWith(`.csb.app`);function A(e){(k?console.log:console.error)([`*************************************************************`,``,...e,``,`*************************************************************`].join(` 2`))}function j(){A([`MUI X: Invalid license key.`,``,`Your MUI X license key format isn't valid. It could be because the license key is missing a character or has a typo.`,``,"To solve the issue, you need to double check that `setLicenseKey()` is called with the right argument",`Please check the license key installation https://mui.com/r/x-license-key-installation.`])}function M({packageName:e}){let t=e.replace(/-(premium|pro)$/,``);A([`MUI X: License key plan mismatch.`,``,`Your use of MUI X is not compatible with the plan of your license key. The feature you are trying to use is not included in the plan of your license key. This happens if you try to use Data Grid Premium with a license key for the Pro plan.`,``,`To solve the issue, you can upgrade your plan from Pro to Premium at https://mui.com/r/x-get-license?scope=premium.`,`Or if you didn't intend to use Premium features, you can replace the import of \`${t}-premium\` with \`${t}-pro\`.`])}function N(){A([`MUI X: Component not included in your license.`,``,`The component you are trying to use is not included in the Pro Plan you purchased.`,``,"Your license is from an old version of the Pro Plan that is only compatible with the `@mui/x-data-grid-pro` and `@mui/x-date-pickers-pro` commercial packages.",``,`To start using another Pro package, please consider reaching to our sales team to upgrade your license or visit https://mui.com/r/x-get-license to get a new license key.`])}function P({packageMajorVersion:e}){let t=e-1;A([`MUI X: License key version mismatch.`,``,`The license key you are using was issued for an older major version of MUI X (e.g. a v${t} license with v${e} packages installed).`,`Each major version uses a different license key format, so the key needs to be regenerated â your existing license is not lost.`,``,`To resolve this, you can either:`,`- Generate a new key compatible with v${e} from your account at https://mui.com/r/x-license-account/ (free for existing customers, the new key inherits your current expiration date).`,`- Or downgrade the MUI X packages to v${t} to match your current license key.`,`${e===9?`More details at https://mui.com/r/x-license-key-v9-upgrade/.`:``}`])}function F({plan:e,packageName:t}){A([`MUI X: Missing license key.`,``,`The license key is missing. You might not be allowed to use \`${t}\` which is part of MUI X ${e}.`,``,`To solve the issue, you can check the free trial conditions: https://mui.com/r/x-license-trial.`,`If you are eligible no actions are required. If you are not eligible to the free trial, you need to purchase a license https://mui.com/r/x-get-license or stop using the softw
2are immediately.`])}function I({packageName:e}){A([`MUI X: Expired package version.`,``,`You have installed a version of \`${e}\` that is outside of the maintenance plan of your license key. By default, commercial licenses provide access to new versions released during the first year after the purchase.`,``,`To solve the issue, you can renew your license https://mui.com/r/x-get-license or install an older version of the npm package that is compatible with your license key.`])}function L({plan:e,licenseKey:t,expiryTimestamp:n}){A([`MUI X: Expired license key.`,``,`Your annual license key to use MUI X ${e} in non-production environments has expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${e} component (more details in https://mui.com/r/x-license-annual).`,``,`To solve the problem you can either:`,``,`- Renew your license https://mui.com/r/x-get-license and use the new key`,`- Stop making changes to code depending directly or indirectly on MUI X ${e}'s APIs`,``,`Note that your license is perpetual in production environments with any version released before your license term ends.`,``,`- License key expiry timestamp: ${new Date(n)}`,`- Installed license key: ${t}`,``])}function R({plan:e,licenseKey:t,expiryTimestamp:n}){throw Error(r(187,e,e,e,new Date(n),t))}var z=s.createContext({key:void 0}),B={};function V(e){let{key:t}=s.useContext(z);return s.useMemo(()=>{let r=t??a.getLicenseKey(),{name:s,releaseDate:c,version:l}=e;if(B[s]&&B[s].key===r)return B[s].licenseVerifier;let u=s.includes(`premium`)?`Premium`:`Pro`,d=O({packageInfo:e,licenseKey:r}),f=`@mui/${s}`;return o(i.licenseVerification({licenseKey:r,xLicenseClientVersion:l},{packageName:s,packageReleaseInfo:c,licenseStatus:d?.status})),d.status===_.Valid||(d.status===_.Invalid?j():d.status===_.NotAvailableInInitialProPlan?N():d.status===_.OutOfScope?M({packageName:f}):d.status===_.NotFound?F({plan:u,packageName:f}):d.status===_.ExpiredAnnualGrace?L(n({plan:u},d.meta)):d.status===_.ExpiredAnnual?R(n({plan:u},d.meta)):d.status===_.ExpiredVersion?I({packageName:f}):d.status===_.NotValidForPackage&&P(d.meta)),B[s]={key:r,licenseVerifier:d},d},[e,t])}export{_ as n,V as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.