Files
formipay/node_modules/marky/dist/marky.min.js
dwindown e8fbfb14c1 fix: prevent asset conflicts between React and Grid.js versions
Add coexistence checks to all enqueue methods to prevent loading
both React and Grid.js assets simultaneously.

Changes:
- ReactAdmin.php: Only enqueue React assets when ?react=1
- Init.php: Skip Grid.js when React active on admin pages
- Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0
- Customer.php, Product.php, License.php: Add coexistence checks

Now the toggle between Classic and React versions works correctly.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-18 17:02:14 +07:00

2 lines
1.1 KiB
JavaScript

var marky=function(r){"use strict";var e="undefined"!=typeof performance&&performance,n=e&&e.now?function(){return e.now()}:function(){return Date.now()};function t(r){if(!r)throw new Error("name must be non-empty")}if(r.mark=void 0,r.stop=void 0,r.getEntries=void 0,r.clear=void 0,e&&e.mark&&e.measure&&e.getEntriesByName&&e.getEntriesByType&&e.clearMarks&&e.clearMeasures)r.mark=function(r){t(r),e.mark("start "+r)},r.stop=function(r){t(r),e.mark("end "+r);var n=e.measure(r,"start "+r,"end "+r);if(n)return n;var a=e.getEntriesByName(r);return a[a.length-1]},r.getEntries=function(){return e.getEntriesByType("measure")},r.clear=function(){e.clearMarks(),e.clearMeasures()};else{var a={},i=[];r.mark=function(r){t(r);var e=n();a["$"+r]=e},r.stop=function(r){t(r);var e=n(),o=a["$"+r];if(!o)throw new Error("no known mark: "+r);var u={startTime:o,name:r,duration:e-o,entryType:"measure"};return function(r,e){for(var n,t=0,a=r.length;t<a;)r[n=t+a>>>1].startTime<e.startTime?t=n+1:a=n;r.splice(t,0,e)}(i,u),u},r.getEntries=function(){return i},r.clear=function(){a={},i=[]}}return r}({});