Files
formipay/node_modules/@tannin/compile/dist/compile.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.3 KiB
JavaScript

var compile=function(){"use strict";var o,c,s,a;o={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},c=["(","?"],s={")":["("],":":["?","?:"]},a=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var p={"!":function(n){return!n},"*":function(n,r){return n*r},"/":function(n,r){return n/r},"%":function(n,r){return n%r},"+":function(n,r){return n+r},"-":function(n,r){return n-r},"<":function(n,r){return n<r},"<=":function(n,r){return n<=r},">":function(n,r){return r<n},">=":function(n,r){return r<=n},"==":function(n,r){return n===r},"!=":function(n,r){return n!==r},"&&":function(n,r){return n&&r},"||":function(n,r){return n||r},"?:":function(n,r,t){if(n)throw r;return t}};return function(n){var r=function(n){for(var r,t,u,e,i=[],f=[];r=n.match(a);){for(t=r[0],(u=n.substr(0,r.index).trim())&&i.push(u);e=f.pop();){if(s[t]){if(s[t][0]===e){t=s[t][1]||t;break}}else if(0<=c.indexOf(e)||o[e]<o[t]){f.push(e);break}i.push(e)}s[t]||f.push(t),n=n.substr(r.index+t.length)}return(n=n.trim())&&i.push(n),i.concat(f.reverse())}(n);return function(n){return function(n,r){var t,u,e,i,f,o,c=[];for(t=0;t<n.length;t++){if(f=n[t],i=p[f]){for(u=i.length,e=Array(u);u--;)e[u]=c.pop();try{o=i.apply(null,e)}catch(n){return n}}else o=r.hasOwnProperty(f)?r[f]:+f;c.push(o)}return c[0]}(r,n)}}}();