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>
2 lines
2.2 KiB
JavaScript
2 lines
2.2 KiB
JavaScript
var Tannin=function(){"use strict";var s,f,a,l;s={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},f=["(","?"],a={")":["("],":":["?","?:"]},l=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var c={"!":function(r){return!r},"*":function(r,n){return r*n},"/":function(r,n){return r/n},"%":function(r,n){return r%n},"+":function(r,n){return r+n},"-":function(r,n){return r-n},"<":function(r,n){return r<n},"<=":function(r,n){return r<=n},">":function(r,n){return n<r},">=":function(r,n){return n<=r},"==":function(r,n){return r===n},"!=":function(r,n){return r!==n},"&&":function(r,n){return r&&n},"||":function(r,n){return r||n},"?:":function(r,n,t){if(r)throw n;return t}};function o(r){var n=function(r){for(var n,t,u,i,o=[],e=[];n=r.match(l);){for(t=n[0],(u=r.substr(0,n.index).trim())&&o.push(u);i=e.pop();){if(a[t]){if(a[t][0]===i){t=a[t][1]||t;break}}else if(0<=f.indexOf(i)||s[i]<s[t]){e.push(i);break}o.push(i)}a[t]||e.push(t),r=r.substr(n.index+t.length)}return(r=r.trim())&&o.push(r),o.concat(e.reverse())}(r);return function(r){return function(r,n){var t,u,i,o,e,s,f=[];for(t=0;t<r.length;t++){if(e=r[t],o=c[e]){for(u=o.length,i=Array(u);u--;)i[u]=f.pop();try{s=o.apply(null,i)}catch(r){return r}}else s=n.hasOwnProperty(e)?n[e]:+e;f.push(s)}return f[0]}(n,r)}}var u={contextDelimiter:"",onMissingKey:null};function r(r,n){var t;for(t in this.data=r,this.pluralForms={},this.options={},u)this.options[t]=void 0!==n&&t in n?n[t]:u[t]}return r.prototype.getPluralForm=function(r,n){var t,u,i=this.pluralForms[r];return i||("function"!=typeof(u=(t=this.data[r][""])["Plural-Forms"]||t["plural-forms"]||t.plural_forms)&&(u=function(r){var n=o(r);return function(r){return+n({n:r})}}(function(r){var n,t,u;for(n=r.split(";"),t=0;t<n.length;t++)if(0===(u=n[t].trim()).indexOf("plural="))return u.substr(7)}(t["Plural-Forms"]||t["plural-forms"]||t.plural_forms))),i=this.pluralForms[r]=u),i(n)},r.prototype.dcnpgettext=function(r,n,t,u,i){var o,e,s;return o=void 0===i?0:this.getPluralForm(r,i),e=t,n&&(e=n+this.options.contextDelimiter+t),(s=this.data[r][e])&&s[o]?s[o]:(this.options.onMissingKey&&this.options.onMissingKey(t,r),0===o?t:u)},r}();
|