@jingx/lottery-components-react-jsx 1.0.40 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -2893,7 +2893,7 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
2893
2893
  if (!allowMissing) {
2894
2894
  throw new $TypeError$5('base intrinsic for ' + name + ' exists, but the property is not available.');
2895
2895
  }
2896
- return void 0;
2896
+ return void undefined$1;
2897
2897
  }
2898
2898
  if ($gOPD$1 && (i + 1) >= parts.length) {
2899
2899
  var desc = $gOPD$1(value, part);
@@ -3512,7 +3512,7 @@ var isDate$1 = isDateObject;
3512
3512
 
3513
3513
  var getTime$1 = Date.prototype.getTime;
3514
3514
 
3515
- function deepEqual(actual, expected, options) {
3515
+ function deepEqual$1(actual, expected, options) {
3516
3516
  var opts = options || {};
3517
3517
 
3518
3518
  // 7.1. All identical values are equivalent, as determined by ===.
@@ -3608,15 +3608,15 @@ function objEquiv(a, b, opts) {
3608
3608
  // equivalent values for every corresponding key, and ~~~possibly expensive deep test
3609
3609
  for (i = ka.length - 1; i >= 0; i--) {
3610
3610
  key = ka[i];
3611
- if (!deepEqual(a[key], b[key], opts)) { return false; }
3611
+ if (!deepEqual$1(a[key], b[key], opts)) { return false; }
3612
3612
  }
3613
3613
 
3614
3614
  return true;
3615
3615
  }
3616
3616
 
3617
- var deepEqual_1 = deepEqual;
3617
+ var deepEqual_1 = deepEqual$1;
3618
3618
 
3619
- var deepEqual$1 = /*@__PURE__*/getDefaultExportFromCjs(deepEqual_1);
3619
+ var deepEqual = /*@__PURE__*/getDefaultExportFromCjs(deepEqual_1);
3620
3620
 
3621
3621
  /**!
3622
3622
  * @fileOverview Kickass library to create and place poppers near their reference elements.
@@ -6258,7 +6258,7 @@ var gud = function() {
6258
6258
 
6259
6259
  var __DEV__ = process.env.NODE_ENV !== 'production';
6260
6260
 
6261
- var warning = function() {};
6261
+ var warning$1 = function() {};
6262
6262
 
6263
6263
  if (__DEV__) {
6264
6264
  var printWarning = function printWarning(format, args) {
@@ -6283,7 +6283,7 @@ if (__DEV__) {
6283
6283
  } catch (x) {}
6284
6284
  };
6285
6285
 
6286
- warning = function(condition, format, args) {
6286
+ warning$1 = function(condition, format, args) {
6287
6287
  var len = arguments.length;
6288
6288
  args = new Array(len > 2 ? len - 2 : 0);
6289
6289
  for (var key = 2; key < len; key++) {
@@ -6301,13 +6301,13 @@ if (__DEV__) {
6301
6301
  };
6302
6302
  }
6303
6303
 
6304
- var warning_1 = warning;
6304
+ var warning_1 = warning$1;
6305
6305
 
6306
- var warning$1 = /*@__PURE__*/getDefaultExportFromCjs(warning_1);
6306
+ var warning = /*@__PURE__*/getDefaultExportFromCjs(warning_1);
6307
6307
 
6308
- (function (module, exports) {
6308
+ (function (module, exports$1) {
6309
6309
 
6310
- exports.__esModule = true;
6310
+ exports$1.__esModule = true;
6311
6311
 
6312
6312
  var _react = React__default;
6313
6313
 
@@ -6499,15 +6499,15 @@ var warning$1 = /*@__PURE__*/getDefaultExportFromCjs(warning_1);
6499
6499
  };
6500
6500
  }
6501
6501
 
6502
- exports.default = createReactContext;
6503
- module.exports = exports['default'];
6502
+ exports$1.default = createReactContext;
6503
+ module.exports = exports$1['default'];
6504
6504
  } (implementation, implementation.exports));
6505
6505
 
6506
6506
  var implementationExports = implementation.exports;
6507
6507
 
6508
- (function (module, exports) {
6508
+ (function (module, exports$1) {
6509
6509
 
6510
- exports.__esModule = true;
6510
+ exports$1.__esModule = true;
6511
6511
 
6512
6512
  var _react = React__default;
6513
6513
 
@@ -6519,8 +6519,8 @@ var implementationExports = implementation.exports;
6519
6519
 
6520
6520
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
6521
6521
 
6522
- exports.default = _react2.default.createContext || _implementation2.default;
6523
- module.exports = exports['default'];
6522
+ exports$1.default = _react2.default.createContext || _implementation2.default;
6523
+ module.exports = exports$1['default'];
6524
6524
  } (lib$1, lib$1.exports));
6525
6525
 
6526
6526
  var libExports$1 = lib$1.exports;
@@ -6759,7 +6759,7 @@ function (_React$Component) {
6759
6759
 
6760
6760
  _proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {
6761
6761
  // If the Popper.js options have changed, update the instance (destroy + create)
6762
- if (this.props.placement !== prevProps.placement || this.props.referenceElement !== prevProps.referenceElement || this.props.positionFixed !== prevProps.positionFixed || !deepEqual$1(this.props.modifiers, prevProps.modifiers, {
6762
+ if (this.props.placement !== prevProps.placement || this.props.referenceElement !== prevProps.referenceElement || this.props.positionFixed !== prevProps.positionFixed || !deepEqual(this.props.modifiers, prevProps.modifiers, {
6763
6763
  strict: true
6764
6764
  })) {
6765
6765
  // develop only check that modifiers isn't being updated needlessly
@@ -6853,7 +6853,7 @@ function (_React$Component) {
6853
6853
  };
6854
6854
 
6855
6855
  _proto.render = function render() {
6856
- warning$1(Boolean(this.props.setReferenceNode), '`Reference` should not be used outside of a `Manager` component.');
6856
+ warning(Boolean(this.props.setReferenceNode), '`Reference` should not be used outside of a `Manager` component.');
6857
6857
  return unwrapArray(this.props.children)({
6858
6858
  ref: this.refHandler
6859
6859
  });
@@ -7601,26 +7601,26 @@ var hasRequiredHasClass;
7601
7601
  function requireHasClass () {
7602
7602
  if (hasRequiredHasClass) return hasClass.exports;
7603
7603
  hasRequiredHasClass = 1;
7604
- (function (module, exports) {
7604
+ (function (module, exports$1) {
7605
7605
 
7606
- exports.__esModule = true;
7607
- exports.default = hasClass;
7606
+ exports$1.__esModule = true;
7607
+ exports$1.default = hasClass;
7608
7608
 
7609
7609
  function hasClass(element, className) {
7610
7610
  if (element.classList) return !!className && element.classList.contains(className);else return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
7611
7611
  }
7612
7612
 
7613
- module.exports = exports["default"];
7613
+ module.exports = exports$1["default"];
7614
7614
  } (hasClass, hasClass.exports));
7615
7615
  return hasClass.exports;
7616
7616
  }
7617
7617
 
7618
- (function (module, exports) {
7618
+ (function (module, exports$1) {
7619
7619
 
7620
7620
  var _interopRequireDefault = require$$0;
7621
7621
 
7622
- exports.__esModule = true;
7623
- exports.default = addClass;
7622
+ exports$1.__esModule = true;
7623
+ exports$1.default = addClass;
7624
7624
 
7625
7625
  var _hasClass = _interopRequireDefault(requireHasClass());
7626
7626
 
@@ -7628,7 +7628,7 @@ function requireHasClass () {
7628
7628
  if (element.classList) element.classList.add(className);else if (!(0, _hasClass.default)(element, className)) if (typeof element.className === 'string') element.className = element.className + ' ' + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + ' ' + className);
7629
7629
  }
7630
7630
 
7631
- module.exports = exports["default"];
7631
+ module.exports = exports$1["default"];
7632
7632
  } (addClass, addClass.exports));
7633
7633
 
7634
7634
  var addClassExports = addClass.exports;
@@ -7838,10 +7838,10 @@ PropTypes$1.classNamesShape = classNamesShape;
7838
7838
 
7839
7839
  var TransitionGroupContext = {exports: {}};
7840
7840
 
7841
- (function (module, exports) {
7841
+ (function (module, exports$1) {
7842
7842
 
7843
- exports.__esModule = true;
7844
- exports.default = void 0;
7843
+ exports$1.__esModule = true;
7844
+ exports$1.default = void 0;
7845
7845
 
7846
7846
  var _react = _interopRequireDefault(React__default);
7847
7847
 
@@ -7849,8 +7849,8 @@ var TransitionGroupContext = {exports: {}};
7849
7849
 
7850
7850
  var _default = _react.default.createContext(null);
7851
7851
 
7852
- exports.default = _default;
7853
- module.exports = exports["default"];
7852
+ exports$1.default = _default;
7853
+ module.exports = exports$1["default"];
7854
7854
  } (TransitionGroupContext, TransitionGroupContext.exports));
7855
7855
 
7856
7856
  var TransitionGroupContextExports = TransitionGroupContext.exports;
@@ -8462,10 +8462,10 @@ var _default = (0, _reactLifecyclesCompat.polyfill)(Transition);
8462
8462
 
8463
8463
  Transition$1.default = _default;
8464
8464
 
8465
- (function (module, exports) {
8465
+ (function (module, exports$1) {
8466
8466
 
8467
- exports.__esModule = true;
8468
- exports.default = void 0;
8467
+ exports$1.__esModule = true;
8468
+ exports$1.default = void 0;
8469
8469
 
8470
8470
  var PropTypes = _interopRequireWildcard(propTypesExports);
8471
8471
 
@@ -8824,8 +8824,8 @@ Transition$1.default = _default;
8824
8824
  onExited: PropTypes.func
8825
8825
  }) : {};
8826
8826
  var _default = CSSTransition;
8827
- exports.default = _default;
8828
- module.exports = exports["default"];
8827
+ exports$1.default = _default;
8828
+ module.exports = exports$1["default"];
8829
8829
  } (CSSTransition, CSSTransition.exports));
8830
8830
 
8831
8831
  var CSSTransitionExports = CSSTransition.exports;
@@ -8985,10 +8985,10 @@ function getNextChildMapping(nextProps, prevChildMapping, onExited) {
8985
8985
  return children;
8986
8986
  }
8987
8987
 
8988
- (function (module, exports) {
8988
+ (function (module, exports$1) {
8989
8989
 
8990
- exports.__esModule = true;
8991
- exports.default = void 0;
8990
+ exports$1.__esModule = true;
8991
+ exports$1.default = void 0;
8992
8992
 
8993
8993
  var _propTypes = _interopRequireDefault(propTypesExports);
8994
8994
 
@@ -9194,16 +9194,16 @@ function getNextChildMapping(nextProps, prevChildMapping, onExited) {
9194
9194
 
9195
9195
  var _default = (0, _reactLifecyclesCompat.polyfill)(TransitionGroup);
9196
9196
 
9197
- exports.default = _default;
9198
- module.exports = exports["default"];
9197
+ exports$1.default = _default;
9198
+ module.exports = exports$1["default"];
9199
9199
  } (TransitionGroup, TransitionGroup.exports));
9200
9200
 
9201
9201
  var TransitionGroupExports = TransitionGroup.exports;
9202
9202
 
9203
- (function (module, exports) {
9203
+ (function (module, exports$1) {
9204
9204
 
9205
- exports.__esModule = true;
9206
- exports.default = void 0;
9205
+ exports$1.__esModule = true;
9206
+ exports$1.default = void 0;
9207
9207
 
9208
9208
  var _propTypes = _interopRequireDefault(propTypesExports);
9209
9209
 
@@ -9348,8 +9348,8 @@ var TransitionGroupExports = TransitionGroup.exports;
9348
9348
  }
9349
9349
  } : {};
9350
9350
  var _default = ReplaceTransition;
9351
- exports.default = _default;
9352
- module.exports = exports["default"];
9351
+ exports$1.default = _default;
9352
+ module.exports = exports$1["default"];
9353
9353
  } (ReplaceTransition, ReplaceTransition.exports));
9354
9354
 
9355
9355
  var ReplaceTransitionExports = ReplaceTransition.exports;
@@ -12268,7 +12268,7 @@ var lodash = {exports: {}};
12268
12268
  */
12269
12269
  lodash.exports;
12270
12270
 
12271
- (function (module, exports) {
12271
+ (function (module, exports$1) {
12272
12272
  (function() {
12273
12273
 
12274
12274
  /** Used as a safe reference for `undefined` in pre-ES5 environments. */
@@ -12699,7 +12699,7 @@ lodash.exports;
12699
12699
  var root = freeGlobal || freeSelf || Function('return this')();
12700
12700
 
12701
12701
  /** Detect free variable `exports`. */
12702
- var freeExports = exports && !exports.nodeType && exports;
12702
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1;
12703
12703
 
12704
12704
  /** Detect free variable `module`. */
12705
12705
  var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
@@ -16559,7 +16559,7 @@ lodash.exports;
16559
16559
  return symbolToString ? symbolToString.call(value) : '';
16560
16560
  }
16561
16561
  var result = (value + '');
16562
- return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
16562
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
16563
16563
  }
16564
16564
 
16565
16565
  /**
@@ -19082,7 +19082,7 @@ lodash.exports;
19082
19082
  return value;
19083
19083
  }
19084
19084
  var result = (value + '');
19085
- return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
19085
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
19086
19086
  }
19087
19087
 
19088
19088
  /**
@@ -24424,7 +24424,7 @@ lodash.exports;
24424
24424
  * // => false
24425
24425
  */
24426
24426
  function isSafeInteger(value) {
24427
- return isInteger(value) && value >= -9007199254740991 && value <= MAX_SAFE_INTEGER;
24427
+ return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
24428
24428
  }
24429
24429
 
24430
24430
  /**
@@ -24691,7 +24691,7 @@ lodash.exports;
24691
24691
  return value === 0 ? value : 0;
24692
24692
  }
24693
24693
  value = toNumber(value);
24694
- if (value === INFINITY || value === -Infinity) {
24694
+ if (value === INFINITY || value === -INFINITY) {
24695
24695
  var sign = (value < 0 ? -1 : 1);
24696
24696
  return sign * MAX_INTEGER;
24697
24697
  }
@@ -24860,7 +24860,7 @@ lodash.exports;
24860
24860
  */
24861
24861
  function toSafeInteger(value) {
24862
24862
  return value
24863
- ? baseClamp(toInteger(value), -9007199254740991, MAX_SAFE_INTEGER)
24863
+ ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)
24864
24864
  : (value === 0 ? value : 0);
24865
24865
  }
24866
24866
 
@@ -31497,7 +31497,7 @@ function commonjsRequire(path) {
31497
31497
 
31498
31498
  var moment$1 = {exports: {}};
31499
31499
 
31500
- (function (module, exports) {
31500
+ (function (module, exports$1) {
31501
31501
  (function (global, factory) {
31502
31502
  module.exports = factory() ;
31503
31503
  }(commonjsGlobal, (function () {
@@ -37523,7 +37523,7 @@ const ProtestTicket = ({
37523
37523
 
37524
37524
  var lib = {exports: {}};
37525
37525
 
37526
- (function (module, exports) {
37526
+ (function (module, exports$1) {
37527
37527
  !function(e,t){module.exports=t(React__default);}("undefined"!=typeof self?self:commonjsGlobal,function(e){return function(){var t={155:function(t){t.exports=e;}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var s=o[e]={exports:{}};return t[e](s,s.exports,n),s.exports}n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:true,get:t[o]});},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:true});};var r={};n.r(r),n.d(r,{useReactToPrint:function(){return g}});var s=n(155);const i="printWindow";function l({level:e="error",messages:t,suppressErrors:o=false}){o||("error"===e?console.error(t):"warning"===e?console.warn(t):console.debug(t));}function a(e,t){if(t||!e){const e=document.getElementById(i);e&&document.body.removeChild(e);}}function c(e){return e instanceof Error?e:new Error("Unknown Error")}function d(e,t){const{documentTitle:o,onAfterPrint:n,onPrintError:r,preserveAfterPrint:s,print:i,suppressErrors:d}=t;setTimeout(()=>{var t,u;if(e.contentWindow){function p(){null==n||n(),a(s);}if(e.contentWindow.focus(),i)i(e).then(p).catch(e=>{r?r("print",c(e)):l({messages:["An error was thrown by the specified `print` function"],suppressErrors:d});});else {if(e.contentWindow.print){const f=null!==(u=null===(t=e.contentDocument)||void 0===t?void 0:t.title)&&void 0!==u?u:"",h=e.ownerDocument.title;o&&(e.ownerDocument.title=o,e.contentDocument&&(e.contentDocument.title=o)),e.contentWindow.print(),o&&(e.ownerDocument.title=h,e.contentDocument&&(e.contentDocument.title=f));}else l({messages:["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."],suppressErrors:d});[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(e=>{var t,o;return (null!==(o=null!==(t=navigator.userAgent)&&void 0!==t?t:navigator.vendor)&&void 0!==o?o:"opera"in window&&window.opera).match(e)})?setTimeout(p,500):p();}}else l({messages:["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/MatthewHerbst/react-to-print/issues/"],suppressErrors:d});},500);}function u(e){const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null);let n=o.nextNode();for(;n;)t.push(n),n=o.nextNode();return t}function p(e,t,o){const n=u(e),r=u(t);if(n.length===r.length)for(let e=0;e<n.length;e++){const t=n[e],s=r[e],i=t.shadowRoot;if(null!==i){const e=s.attachShadow({mode:i.mode});e.innerHTML=i.innerHTML,p(i,e,o);}}else l({messages:["When cloning shadow root content, source and target elements have different size. `onBeforePrint` likely resolved too early.",e,t],suppressErrors:o});}const f='\n @page {\n /* Remove browser default header (title) and footer (url) */\n margin: 0;\n }\n @media print {\n body {\n /* Tell browsers to print background colors */\n color-adjust: exact; /* Firefox. This is an older version of "print-color-adjust" */\n print-color-adjust: exact; /* Firefox/Safari */\n -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */\n }\n }\n';function h(e,t,o,n){var r,s,i,a,u;const{contentNode:h,clonedContentNode:g,clonedImgNodes:m,clonedVideoNodes:b,numResourcesToLoad:y,originalCanvasNodes:v}=o,{bodyClass:w,fonts:E,ignoreGlobalStyles:A,pageStyle:P,nonce:T,suppressErrors:S,copyShadowRoots:x}=n;e.onload=null;const k=null!==(r=e.contentDocument)&&void 0!==r?r:null===(s=e.contentWindow)||void 0===s?void 0:s.document;if(k){const o=k.body.appendChild(g);x&&p(h,o,!!S),E&&((null===(i=e.contentDocument)||void 0===i?void 0:i.fonts)&&(null===(a=e.contentWindow)||void 0===a?void 0:a.FontFace)?E.forEach(o=>{const n=new FontFace(o.family,o.source,{weight:o.weight,style:o.style});e.contentDocument.fonts.add(n),n.loaded.then(()=>{t(n);}).catch(e=>{t(n,["Failed loading the font:",n,"Load error:",c(e)]);});}):(E.forEach(e=>{t(e);}),l({messages:['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'],suppressErrors:S})));const n=null!=P?P:f,r=k.createElement("style");T&&(r.setAttribute("nonce",T),k.head.setAttribute("nonce",T)),r.appendChild(k.createTextNode(n)),k.head.appendChild(r),w&&k.body.classList.add(...w.split(" "));const s=k.querySelectorAll("canvas");for(let e=0;e<v.length;++e){const t=v[e],o=s[e];if(void 0===o){l({messages:["A canvas element could not be copied for printing, has it loaded? `onBeforePrint` likely resolved too early.",t],suppressErrors:S});continue}const n=o.getContext("2d");n&&n.drawImage(t,0,0);}for(let e=0;e<m.length;e++){const o=m[e],n=o.getAttribute("src");if(n){const e=new Image;e.onload=()=>{t(o);},e.onerror=(e,n,r,s,i)=>{t(o,["Error loading <img>",o,"Error",i]);},e.src=n;}else t(o,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it.',o]);}for(let e=0;e<b.length;e++){const o=b[e];o.preload="auto";const n=o.getAttribute("poster");if(n){const e=new Image;e.onload=()=>{t(o);},e.onerror=(e,r,s,i,l)=>{t(o,["Error loading video poster",n,"for video",o,"Error:",l]);},e.src=n;}else o.readyState>=2?t(o):o.src?(o.onloadeddata=()=>{t(o);},o.onerror=(e,n,r,s,i)=>{t(o,["Error loading video",o,"Error",i]);},o.onstalled=()=>{t(o,["Loading video stalled, skipping",o]);}):t(o,["Error loading video, `src` is empty",o]);}const d="select",y=h.querySelectorAll(d),C=k.querySelectorAll(d);for(let e=0;e<y.length;e++)C[e].value=y[e].value;if(!A){const e=document.querySelectorAll("style, link[rel~='stylesheet'], link[as='style']");for(let o=0,n=e.length;o<n;++o){const n=e[o];if("style"===n.tagName.toLowerCase()){const e=k.createElement(n.tagName),t=n.sheet;if(t){let r="";try{const e=t.cssRules.length;for(let o=0;o<e;++o)"string"==typeof t.cssRules[o].cssText&&(r+=`${t.cssRules[o].cssText}\r\n`);}catch(e){l({messages:["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/MatthewHerbst/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",n,`Original error: ${c(e).message}`],level:"warning"});}e.setAttribute("id",`react-to-print-${o}`),T&&e.setAttribute("nonce",T),e.appendChild(k.createTextNode(r)),k.head.appendChild(e);}}else if(n.getAttribute("href"))if(n.hasAttribute("disabled"))l({messages:["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",n],level:"warning"}),t(n);else {const e=k.createElement(n.tagName);for(let t=0,o=n.attributes.length;t<o;++t){const o=n.attributes[t];o&&e.setAttribute(o.nodeName,null!==(u=o.nodeValue)&&void 0!==u?u:"");}e.onload=()=>{t(e);},e.onerror=(o,n,r,s,i)=>{t(e,["Failed to load",e,"Error:",i]);},T&&e.setAttribute("nonce",T),k.head.appendChild(e);}else l({messages:["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",n],level:"warning"}),t(n);}}}0===y&&d(e,n);}function g({bodyClass:e,contentRef:t,copyShadowRoots:o,documentTitle:n,fonts:r,ignoreGlobalStyles:u,nonce:p,onAfterPrint:f,onBeforePrint:g,onPrintError:m,pageStyle:b,preserveAfterPrint:y,print:v,printIframeProps:w,suppressErrors:E}){const A=(0, s.useCallback)(s=>{function A(){const a={bodyClass:e,contentRef:t,copyShadowRoots:o,documentTitle:n,fonts:r,ignoreGlobalStyles:u,nonce:p,onAfterPrint:f,onPrintError:m,pageStyle:b,preserveAfterPrint:y,print:v,suppressErrors:E},c=function(e){const t=document.createElement("iframe");return t.width=`${document.documentElement.clientWidth}px`,t.height=`${document.documentElement.clientHeight}px`,t.style.position="absolute",t.style.top=`-${document.documentElement.clientHeight+100}px`,t.style.left=`-${document.documentElement.clientWidth+100}px`,t.id=i,t.srcdoc="<!DOCTYPE html>",e&&(e.allow&&(t.allow=e.allow),void 0!==e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),void 0!==e.sandbox&&(t.sandbox=e.sandbox)),t}(w),A=function(e,t){const{contentRef:o,fonts:n,ignoreGlobalStyles:r,suppressErrors:s}=t,i=function({contentRef:e,optionalContent:t,suppressErrors:o}){return t&&"function"==typeof t?(e&&l({level:"warning",messages:['"react-to-print" received a `contentRef` option and an optional-content param passed to its callback. The `contentRef` option will be ignored.']}),t()):e?e.current:void l({messages:['"react-to-print" did not receive a `contentRef` option or a optional-content param pass to its callback.'],suppressErrors:o})}({contentRef:o,optionalContent:e,suppressErrors:s});if(!i)return;const a=i.cloneNode(true),c=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),d=a.querySelectorAll("img"),u=a.querySelectorAll("video"),p=n?n.length:0;return {contentNode:i,clonedContentNode:a,clonedImgNodes:d,clonedVideoNodes:u,numResourcesToLoad:(r?0:c.length)+d.length+u.length+p,originalCanvasNodes:i.querySelectorAll("canvas")}}(s,a);if(!A)return void l({messages:["There is nothing to print"],suppressErrors:E});const P=function(e,t,o){const{suppressErrors:n}=e,r=[],s=[];return function(i,a){r.includes(i)?l({level:"debug",messages:["Tried to mark a resource that has already been handled",i],suppressErrors:n}):(a?(l({messages:['"react-to-print" was unable to load a resource but will continue attempting to print the page',...a],suppressErrors:n}),s.push(i)):r.push(i),r.length+s.length===t&&d(o,e));}}(a,A.numResourcesToLoad,c);!function(e,t,o,n){e.onload=()=>{h(e,t,o,n);},document.body.appendChild(e);}(c,P,A,a);}a(y,true),g?g().then(()=>{A();}).catch(e=>{null==m||m("onBeforePrint",c(e));}):A();},[e,t,o,n,r,u,p,f,g,m,b,y,v,E]);return A}return r}()});
37528
37528
  } (lib));
37529
37529
 
@@ -37660,7 +37660,7 @@ var html2canvas$1 = {exports: {}};
37660
37660
  * Released under MIT License
37661
37661
  */
37662
37662
 
37663
- (function (module, exports) {
37663
+ (function (module, exports$1) {
37664
37664
  (function (global, factory) {
37665
37665
  module.exports = factory() ;
37666
37666
  }(commonjsGlobal, (function () {
@@ -46070,20 +46070,38 @@ const PrintResultTH = ({ list, object }) => {
46070
46070
  ] }) }) });
46071
46071
  };
46072
46072
 
46073
- const SaryTH = ({ object }) => {
46073
+ const RenderItem = ({ list, isSystem }) => {
46074
+ const item = list[0];
46075
+ if (isSystem) {
46076
+ return list == null ? void 0 : list.map((e, i) => {
46077
+ return /* @__PURE__ */ jsxs("tr", { children: [
46078
+ /* @__PURE__ */ jsx$1("td", { className: "text-primary", children: THLabel[e.postCode] }),
46079
+ /* @__PURE__ */ jsx$1("td", { children: e.thNumber })
46080
+ ] }, i);
46081
+ });
46082
+ } else {
46083
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
46084
+ /* @__PURE__ */ jsxs("tr", { children: [
46085
+ /* @__PURE__ */ jsx$1("td", { className: "text-primary", children: "2D" }),
46086
+ /* @__PURE__ */ jsx$1("td", { children: item == null ? void 0 : item.twoDigits })
46087
+ ] }),
46088
+ /* @__PURE__ */ jsxs("tr", { children: [
46089
+ /* @__PURE__ */ jsx$1("td", { className: "text-primary", children: "3D" }),
46090
+ /* @__PURE__ */ jsx$1("td", { children: item == null ? void 0 : item.threeDigits })
46091
+ ] })
46092
+ ] });
46093
+ }
46094
+ };
46095
+ const SaryTH = ({ object, isSystem }) => {
46074
46096
  var _a, _b;
46075
- const list = (_b = (_a = object.results) == null ? void 0 : _a.filter((e) => ["A", "B"].includes(e.postCode)).reverse()) != null ? _b : [];
46097
+ const listSystem = (_b = (_a = object.results) == null ? void 0 : _a.filter((e) => ["A", "B"].includes(e.postCode)).reverse()) != null ? _b : [];
46098
+ const list = isSystem ? listSystem : object.results;
46076
46099
  return /* @__PURE__ */ jsx$1("table", { cellPadding: "5", className: "tb-result", children: /* @__PURE__ */ jsxs("tbody", { children: [
46077
46100
  /* @__PURE__ */ jsx$1("tr", { children: /* @__PURE__ */ jsx$1("td", { className: "text-danger bg-light-red", colSpan: 4, children: /* @__PURE__ */ jsxs("div", { className: "w-100 row", children: [
46078
46101
  /* @__PURE__ */ jsx$1("div", { style: { width: "65%" }, className: "text-right", children: getTime(object == null ? void 0 : object.drawAt) }),
46079
46102
  /* @__PURE__ */ jsx$1("div", { style: { width: "35%" }, className: "text-right", children: /* @__PURE__ */ jsx$1(SaryPrinter, { children: /* @__PURE__ */ jsx$1(PrintResultTH, { object, list }) }) })
46080
46103
  ] }) }) }),
46081
- list == null ? void 0 : list.map((e, i) => {
46082
- return /* @__PURE__ */ jsxs("tr", { children: [
46083
- /* @__PURE__ */ jsx$1("td", { className: "text-primary", children: THLabel[e.postCode] }),
46084
- /* @__PURE__ */ jsx$1("td", { children: e.thNumber })
46085
- ] }, i);
46086
- })
46104
+ /* @__PURE__ */ jsx$1(RenderItem, { list, isSystem })
46087
46105
  ] }) });
46088
46106
  };
46089
46107
 
@@ -46349,7 +46367,7 @@ const SaryWrapper = ({ children }) => {
46349
46367
  }, children });
46350
46368
  };
46351
46369
 
46352
- const RenderSary = ({ object, type }) => {
46370
+ const RenderSary = ({ object, type, isSystem }) => {
46353
46371
  switch (type) {
46354
46372
  case lType.LEAP:
46355
46373
  return /* @__PURE__ */ jsx$1(SaryLeap, { object });
@@ -46360,7 +46378,7 @@ const RenderSary = ({ object, type }) => {
46360
46378
  case lType.KH:
46361
46379
  return /* @__PURE__ */ jsx$1(SaryKH, { object });
46362
46380
  case lType.TH:
46363
- return /* @__PURE__ */ jsx$1(SaryTH, { object });
46381
+ return /* @__PURE__ */ jsx$1(SaryTH, { object, isSystem });
46364
46382
  case lType.MC:
46365
46383
  case lType.MT:
46366
46384
  case lType.TN:
@@ -46369,8 +46387,8 @@ const RenderSary = ({ object, type }) => {
46369
46387
  return null;
46370
46388
  }
46371
46389
  };
46372
- const SaryLottery = ({ object, type }) => {
46373
- return /* @__PURE__ */ jsx$1(SaryWrapper, { children: /* @__PURE__ */ jsx$1(RenderSary, { type, object }) });
46390
+ const SaryLottery = ({ object, type, isSystem }) => {
46391
+ return /* @__PURE__ */ jsx$1(SaryWrapper, { children: /* @__PURE__ */ jsx$1(RenderSary, { type, object, isSystem }) });
46374
46392
  };
46375
46393
 
46376
46394
  const SaryLeapPrintAll = ({ children, list, isSc }) => {
@@ -57684,51 +57702,51 @@ function createInstance(defaultConfig) {
57684
57702
  }
57685
57703
 
57686
57704
  // Create the default instance to be exported
57687
- const axios = createInstance(defaults);
57705
+ const axios$1 = createInstance(defaults);
57688
57706
 
57689
57707
  // Expose Axios class to allow class inheritance
57690
- axios.Axios = Axios;
57708
+ axios$1.Axios = Axios;
57691
57709
 
57692
57710
  // Expose Cancel & CancelToken
57693
- axios.CanceledError = CanceledError;
57694
- axios.CancelToken = CancelToken;
57695
- axios.isCancel = isCancel;
57696
- axios.VERSION = VERSION;
57697
- axios.toFormData = toFormData;
57711
+ axios$1.CanceledError = CanceledError;
57712
+ axios$1.CancelToken = CancelToken;
57713
+ axios$1.isCancel = isCancel;
57714
+ axios$1.VERSION = VERSION;
57715
+ axios$1.toFormData = toFormData;
57698
57716
 
57699
57717
  // Expose AxiosError class
57700
- axios.AxiosError = AxiosError;
57718
+ axios$1.AxiosError = AxiosError;
57701
57719
 
57702
57720
  // alias for CanceledError for backward compatibility
57703
- axios.Cancel = axios.CanceledError;
57721
+ axios$1.Cancel = axios$1.CanceledError;
57704
57722
 
57705
57723
  // Expose all/spread
57706
- axios.all = function all(promises) {
57724
+ axios$1.all = function all(promises) {
57707
57725
  return Promise.all(promises);
57708
57726
  };
57709
57727
 
57710
- axios.spread = spread;
57728
+ axios$1.spread = spread;
57711
57729
 
57712
57730
  // Expose isAxiosError
57713
- axios.isAxiosError = isAxiosError;
57731
+ axios$1.isAxiosError = isAxiosError;
57714
57732
 
57715
57733
  // Expose mergeConfig
57716
- axios.mergeConfig = mergeConfig;
57734
+ axios$1.mergeConfig = mergeConfig;
57717
57735
 
57718
- axios.AxiosHeaders = AxiosHeaders;
57736
+ axios$1.AxiosHeaders = AxiosHeaders;
57719
57737
 
57720
- axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
57738
+ axios$1.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
57721
57739
 
57722
- axios.getAdapter = adapters.getAdapter;
57740
+ axios$1.getAdapter = adapters.getAdapter;
57723
57741
 
57724
- axios.HttpStatusCode = HttpStatusCode;
57742
+ axios$1.HttpStatusCode = HttpStatusCode;
57725
57743
 
57726
- axios.default = axios;
57744
+ axios$1.default = axios$1;
57727
57745
 
57728
- var axios_1 = axios;
57746
+ var axios_1 = axios$1;
57729
57747
 
57730
57748
 
57731
- var axios$1 = /*@__PURE__*/getDefaultExportFromCjs(axios_1);
57749
+ var axios = /*@__PURE__*/getDefaultExportFromCjs(axios_1);
57732
57750
 
57733
57751
  const ProtestApi = (isSystem) => isSystem ? "api/v1.0.0/protest-ticket" : "api/v1.0.0/order/protest";
57734
57752
  const RemoveReasonApi = "api/v1.0.0/order/remove-reason";
@@ -57809,7 +57827,7 @@ function DeleteModal(_a) {
57809
57827
  var _a2, _b2, _c;
57810
57828
  try {
57811
57829
  setIsLoading(true);
57812
- const res = await axios$1.get(
57830
+ const res = await axios.get(
57813
57831
  `${Env.REACT_APP_API_BASE_URL || DEFAULT_API_BASE_URL$3}${RemoveReasonApi}`,
57814
57832
  {
57815
57833
  headers
@@ -57861,7 +57879,7 @@ function DeleteModal(_a) {
57861
57879
  drawCode: ticket == null ? void 0 : ticket.drawCode
57862
57880
  };
57863
57881
  const url = `${Env.REACT_APP_API_BASE_URL || DEFAULT_API_BASE_URL$3}${DeleteApi(isSystem)}`;
57864
- const res = isSystem ? await axios$1.post(url, payloadSystem, { headers }) : await axios$1.delete(url, {
57882
+ const res = isSystem ? await axios.post(url, payloadSystem, { headers }) : await axios.delete(url, {
57865
57883
  headers,
57866
57884
  data: payload
57867
57885
  });
@@ -58104,7 +58122,7 @@ const ProtestModal = ({
58104
58122
  var _a2, _b, _c;
58105
58123
  try {
58106
58124
  setIsLoading(true);
58107
- const res = await axios$1.get(
58125
+ const res = await axios.get(
58108
58126
  `${Env.REACT_APP_API_BASE_URL || DEFAULT_API_BASE_URL$2}${RemoveReasonApi}`,
58109
58127
  {
58110
58128
  params: { type: "protest" },
@@ -58185,7 +58203,7 @@ const ProtestModal = ({
58185
58203
  reason: systemReason.trim()
58186
58204
  };
58187
58205
  const requestPayload = isSystem ? payloadSystem : payload;
58188
- const res = await axios$1.post(
58206
+ const res = await axios.post(
58189
58207
  `${Env.REACT_APP_API_BASE_URL || DEFAULT_API_BASE_URL$2}${ProtestApi(isSystem)}`,
58190
58208
  requestPayload,
58191
58209
  { headers }
@@ -58434,7 +58452,7 @@ function RemarkModal(_a) {
58434
58452
  ticketNumber: object == null ? void 0 : object.ticketNumber,
58435
58453
  message: remark
58436
58454
  };
58437
- const res = await axios$1.post(
58455
+ const res = await axios.post(
58438
58456
  `${Env.REACT_APP_API_BASE_URL || DEFAULT_API_BASE_URL$1}${RemarkApi}`,
58439
58457
  payload,
58440
58458
  { headers }
@@ -58617,7 +58635,11 @@ function MoreMenu(_a) {
58617
58635
  openCallback,
58618
58636
  closeCallback,
58619
58637
  DropdownButton,
58620
- isSystem
58638
+ isSystem,
58639
+ isProtestMenu = true,
58640
+ isRemarkMenu = true,
58641
+ isPainMenu = true,
58642
+ isPayoutMenu = true
58621
58643
  } = _b, props = __objRest(_b, [
58622
58644
  "id",
58623
58645
  "object",
@@ -58635,7 +58657,11 @@ function MoreMenu(_a) {
58635
58657
  "openCallback",
58636
58658
  "closeCallback",
58637
58659
  "DropdownButton",
58638
- "isSystem"
58660
+ "isSystem",
58661
+ "isProtestMenu",
58662
+ "isRemarkMenu",
58663
+ "isPainMenu",
58664
+ "isPayoutMenu"
58639
58665
  ]);
58640
58666
  var _a2, _b2;
58641
58667
  const [activeModal, setActiveModal] = useState(null);
@@ -58643,7 +58669,7 @@ function MoreMenu(_a) {
58643
58669
  const [isPayout, setIsPayout] = useState(Boolean(ticket == null ? void 0 : ticket.isPayout));
58644
58670
  const [isLoadingPaid, setLoadingPaid] = useState(false);
58645
58671
  const [isLoadingPayout, setLoadingPayout] = useState(false);
58646
- const isShowPayout = !isSystem && (((_a2 = ticket == null ? void 0 : ticket.totalKhr) == null ? void 0 : _a2.winAmount) > 0 || ((_b2 = ticket == null ? void 0 : ticket.totalUsd) == null ? void 0 : _b2.winAmount) > 0);
58672
+ const isShowPayout = isPayoutMenu && (((_a2 = ticket == null ? void 0 : ticket.totalKhr) == null ? void 0 : _a2.winAmount) > 0 || ((_b2 = ticket == null ? void 0 : ticket.totalUsd) == null ? void 0 : _b2.winAmount) > 0);
58647
58673
  useEffect(() => {
58648
58674
  setIsPaid(Boolean(ticket == null ? void 0 : ticket.isPaid));
58649
58675
  setIsPayout(Boolean(ticket == null ? void 0 : ticket.isPayout));
@@ -58683,7 +58709,7 @@ function MoreMenu(_a) {
58683
58709
  ticketNumber: (_b3 = object == null ? void 0 : object.ticketNumber) != null ? _b3 : ticket == null ? void 0 : ticket.ticketNumber,
58684
58710
  status: nextChecked
58685
58711
  };
58686
- const res = await axios$1.post(
58712
+ const res = await axios.post(
58687
58713
  `${Env.REACT_APP_API_BASE_URL || DEFAULT_API_BASE_URL}${endpoint}`,
58688
58714
  payload,
58689
58715
  { headers }
@@ -58778,7 +58804,7 @@ function MoreMenu(_a) {
58778
58804
  "#",
58779
58805
  ticket == null ? void 0 : ticket.ticketNumber
58780
58806
  ] }),
58781
- /* @__PURE__ */ jsxs(
58807
+ isProtestMenu && /* @__PURE__ */ jsxs(
58782
58808
  DropdownItem,
58783
58809
  {
58784
58810
  type: "button",
@@ -58790,7 +58816,7 @@ function MoreMenu(_a) {
58790
58816
  ]
58791
58817
  }
58792
58818
  ),
58793
- !isSystem && /* @__PURE__ */ jsxs(
58819
+ isRemarkMenu && /* @__PURE__ */ jsxs(
58794
58820
  DropdownItem,
58795
58821
  {
58796
58822
  id: `remark-btn-${ticket == null ? void 0 : ticket.ticketNumber}`,
@@ -58803,7 +58829,7 @@ function MoreMenu(_a) {
58803
58829
  ]
58804
58830
  }
58805
58831
  ),
58806
- !isSystem && /* @__PURE__ */ jsx$1(
58832
+ isPainMenu && /* @__PURE__ */ jsx$1(
58807
58833
  DropdownItem,
58808
58834
  {
58809
58835
  tag: "div",
@@ -58882,6 +58908,10 @@ MoreMenu.propTypes = {
58882
58908
  Env: PropTypes$2.object.isRequired,
58883
58909
  accessToken: PropTypes$2.string.isRequired,
58884
58910
  isSubmitting: PropTypes$2.bool,
58911
+ isProtestMenu: PropTypes$2.bool,
58912
+ isRemarkMenu: PropTypes$2.bool,
58913
+ isPainMenu: PropTypes$2.bool,
58914
+ isPayoutMenu: PropTypes$2.bool,
58885
58915
  onChange: PropTypes$2.func,
58886
58916
  onSuccess: PropTypes$2.func,
58887
58917
  onError: PropTypes$2.func,