@jingx/lottery-components-react-jsx 1.0.40 → 1.0.42
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.cjs.js +97 -67
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +133 -103
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2913,7 +2913,7 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
2913
2913
|
if (!allowMissing) {
|
|
2914
2914
|
throw new $TypeError$5('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
2915
2915
|
}
|
|
2916
|
-
return void
|
|
2916
|
+
return void undefined$1;
|
|
2917
2917
|
}
|
|
2918
2918
|
if ($gOPD$1 && (i + 1) >= parts.length) {
|
|
2919
2919
|
var desc = $gOPD$1(value, part);
|
|
@@ -6325,9 +6325,9 @@ var warning_1 = warning;
|
|
|
6325
6325
|
|
|
6326
6326
|
var warning$1 = /*@__PURE__*/getDefaultExportFromCjs(warning_1);
|
|
6327
6327
|
|
|
6328
|
-
(function (module, exports) {
|
|
6328
|
+
(function (module, exports$1) {
|
|
6329
6329
|
|
|
6330
|
-
exports.__esModule = true;
|
|
6330
|
+
exports$1.__esModule = true;
|
|
6331
6331
|
|
|
6332
6332
|
var _react = React;
|
|
6333
6333
|
|
|
@@ -6519,15 +6519,15 @@ var warning$1 = /*@__PURE__*/getDefaultExportFromCjs(warning_1);
|
|
|
6519
6519
|
};
|
|
6520
6520
|
}
|
|
6521
6521
|
|
|
6522
|
-
exports.default = createReactContext;
|
|
6523
|
-
module.exports = exports['default'];
|
|
6522
|
+
exports$1.default = createReactContext;
|
|
6523
|
+
module.exports = exports$1['default'];
|
|
6524
6524
|
} (implementation, implementation.exports));
|
|
6525
6525
|
|
|
6526
6526
|
var implementationExports = implementation.exports;
|
|
6527
6527
|
|
|
6528
|
-
(function (module, exports) {
|
|
6528
|
+
(function (module, exports$1) {
|
|
6529
6529
|
|
|
6530
|
-
exports.__esModule = true;
|
|
6530
|
+
exports$1.__esModule = true;
|
|
6531
6531
|
|
|
6532
6532
|
var _react = React;
|
|
6533
6533
|
|
|
@@ -6539,8 +6539,8 @@ var implementationExports = implementation.exports;
|
|
|
6539
6539
|
|
|
6540
6540
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
6541
6541
|
|
|
6542
|
-
exports.default = _react2.default.createContext || _implementation2.default;
|
|
6543
|
-
module.exports = exports['default'];
|
|
6542
|
+
exports$1.default = _react2.default.createContext || _implementation2.default;
|
|
6543
|
+
module.exports = exports$1['default'];
|
|
6544
6544
|
} (lib$1, lib$1.exports));
|
|
6545
6545
|
|
|
6546
6546
|
var libExports$1 = lib$1.exports;
|
|
@@ -7621,26 +7621,26 @@ var hasRequiredHasClass;
|
|
|
7621
7621
|
function requireHasClass () {
|
|
7622
7622
|
if (hasRequiredHasClass) return hasClass.exports;
|
|
7623
7623
|
hasRequiredHasClass = 1;
|
|
7624
|
-
(function (module, exports) {
|
|
7624
|
+
(function (module, exports$1) {
|
|
7625
7625
|
|
|
7626
|
-
exports.__esModule = true;
|
|
7627
|
-
exports.default = hasClass;
|
|
7626
|
+
exports$1.__esModule = true;
|
|
7627
|
+
exports$1.default = hasClass;
|
|
7628
7628
|
|
|
7629
7629
|
function hasClass(element, className) {
|
|
7630
7630
|
if (element.classList) return !!className && element.classList.contains(className);else return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
|
7631
7631
|
}
|
|
7632
7632
|
|
|
7633
|
-
module.exports = exports["default"];
|
|
7633
|
+
module.exports = exports$1["default"];
|
|
7634
7634
|
} (hasClass, hasClass.exports));
|
|
7635
7635
|
return hasClass.exports;
|
|
7636
7636
|
}
|
|
7637
7637
|
|
|
7638
|
-
(function (module, exports) {
|
|
7638
|
+
(function (module, exports$1) {
|
|
7639
7639
|
|
|
7640
7640
|
var _interopRequireDefault = require$$0;
|
|
7641
7641
|
|
|
7642
|
-
exports.__esModule = true;
|
|
7643
|
-
exports.default = addClass;
|
|
7642
|
+
exports$1.__esModule = true;
|
|
7643
|
+
exports$1.default = addClass;
|
|
7644
7644
|
|
|
7645
7645
|
var _hasClass = _interopRequireDefault(requireHasClass());
|
|
7646
7646
|
|
|
@@ -7648,7 +7648,7 @@ function requireHasClass () {
|
|
|
7648
7648
|
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);
|
|
7649
7649
|
}
|
|
7650
7650
|
|
|
7651
|
-
module.exports = exports["default"];
|
|
7651
|
+
module.exports = exports$1["default"];
|
|
7652
7652
|
} (addClass, addClass.exports));
|
|
7653
7653
|
|
|
7654
7654
|
var addClassExports = addClass.exports;
|
|
@@ -7858,10 +7858,10 @@ PropTypes$1.classNamesShape = classNamesShape;
|
|
|
7858
7858
|
|
|
7859
7859
|
var TransitionGroupContext = {exports: {}};
|
|
7860
7860
|
|
|
7861
|
-
(function (module, exports) {
|
|
7861
|
+
(function (module, exports$1) {
|
|
7862
7862
|
|
|
7863
|
-
exports.__esModule = true;
|
|
7864
|
-
exports.default = void 0;
|
|
7863
|
+
exports$1.__esModule = true;
|
|
7864
|
+
exports$1.default = void 0;
|
|
7865
7865
|
|
|
7866
7866
|
var _react = _interopRequireDefault(React);
|
|
7867
7867
|
|
|
@@ -7869,8 +7869,8 @@ var TransitionGroupContext = {exports: {}};
|
|
|
7869
7869
|
|
|
7870
7870
|
var _default = _react.default.createContext(null);
|
|
7871
7871
|
|
|
7872
|
-
exports.default = _default;
|
|
7873
|
-
module.exports = exports["default"];
|
|
7872
|
+
exports$1.default = _default;
|
|
7873
|
+
module.exports = exports$1["default"];
|
|
7874
7874
|
} (TransitionGroupContext, TransitionGroupContext.exports));
|
|
7875
7875
|
|
|
7876
7876
|
var TransitionGroupContextExports = TransitionGroupContext.exports;
|
|
@@ -8482,10 +8482,10 @@ var _default = (0, _reactLifecyclesCompat.polyfill)(Transition);
|
|
|
8482
8482
|
|
|
8483
8483
|
Transition$1.default = _default;
|
|
8484
8484
|
|
|
8485
|
-
(function (module, exports) {
|
|
8485
|
+
(function (module, exports$1) {
|
|
8486
8486
|
|
|
8487
|
-
exports.__esModule = true;
|
|
8488
|
-
exports.default = void 0;
|
|
8487
|
+
exports$1.__esModule = true;
|
|
8488
|
+
exports$1.default = void 0;
|
|
8489
8489
|
|
|
8490
8490
|
var PropTypes = _interopRequireWildcard(propTypesExports);
|
|
8491
8491
|
|
|
@@ -8844,8 +8844,8 @@ Transition$1.default = _default;
|
|
|
8844
8844
|
onExited: PropTypes.func
|
|
8845
8845
|
}) : {};
|
|
8846
8846
|
var _default = CSSTransition;
|
|
8847
|
-
exports.default = _default;
|
|
8848
|
-
module.exports = exports["default"];
|
|
8847
|
+
exports$1.default = _default;
|
|
8848
|
+
module.exports = exports$1["default"];
|
|
8849
8849
|
} (CSSTransition, CSSTransition.exports));
|
|
8850
8850
|
|
|
8851
8851
|
var CSSTransitionExports = CSSTransition.exports;
|
|
@@ -9005,10 +9005,10 @@ function getNextChildMapping(nextProps, prevChildMapping, onExited) {
|
|
|
9005
9005
|
return children;
|
|
9006
9006
|
}
|
|
9007
9007
|
|
|
9008
|
-
(function (module, exports) {
|
|
9008
|
+
(function (module, exports$1) {
|
|
9009
9009
|
|
|
9010
|
-
exports.__esModule = true;
|
|
9011
|
-
exports.default = void 0;
|
|
9010
|
+
exports$1.__esModule = true;
|
|
9011
|
+
exports$1.default = void 0;
|
|
9012
9012
|
|
|
9013
9013
|
var _propTypes = _interopRequireDefault(propTypesExports);
|
|
9014
9014
|
|
|
@@ -9214,16 +9214,16 @@ function getNextChildMapping(nextProps, prevChildMapping, onExited) {
|
|
|
9214
9214
|
|
|
9215
9215
|
var _default = (0, _reactLifecyclesCompat.polyfill)(TransitionGroup);
|
|
9216
9216
|
|
|
9217
|
-
exports.default = _default;
|
|
9218
|
-
module.exports = exports["default"];
|
|
9217
|
+
exports$1.default = _default;
|
|
9218
|
+
module.exports = exports$1["default"];
|
|
9219
9219
|
} (TransitionGroup, TransitionGroup.exports));
|
|
9220
9220
|
|
|
9221
9221
|
var TransitionGroupExports = TransitionGroup.exports;
|
|
9222
9222
|
|
|
9223
|
-
(function (module, exports) {
|
|
9223
|
+
(function (module, exports$1) {
|
|
9224
9224
|
|
|
9225
|
-
exports.__esModule = true;
|
|
9226
|
-
exports.default = void 0;
|
|
9225
|
+
exports$1.__esModule = true;
|
|
9226
|
+
exports$1.default = void 0;
|
|
9227
9227
|
|
|
9228
9228
|
var _propTypes = _interopRequireDefault(propTypesExports);
|
|
9229
9229
|
|
|
@@ -9368,8 +9368,8 @@ var TransitionGroupExports = TransitionGroup.exports;
|
|
|
9368
9368
|
}
|
|
9369
9369
|
} : {};
|
|
9370
9370
|
var _default = ReplaceTransition;
|
|
9371
|
-
exports.default = _default;
|
|
9372
|
-
module.exports = exports["default"];
|
|
9371
|
+
exports$1.default = _default;
|
|
9372
|
+
module.exports = exports$1["default"];
|
|
9373
9373
|
} (ReplaceTransition, ReplaceTransition.exports));
|
|
9374
9374
|
|
|
9375
9375
|
var ReplaceTransitionExports = ReplaceTransition.exports;
|
|
@@ -12288,7 +12288,7 @@ var lodash = {exports: {}};
|
|
|
12288
12288
|
*/
|
|
12289
12289
|
lodash.exports;
|
|
12290
12290
|
|
|
12291
|
-
(function (module, exports) {
|
|
12291
|
+
(function (module, exports$1) {
|
|
12292
12292
|
(function() {
|
|
12293
12293
|
|
|
12294
12294
|
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
|
|
@@ -12719,7 +12719,7 @@ lodash.exports;
|
|
|
12719
12719
|
var root = freeGlobal || freeSelf || Function('return this')();
|
|
12720
12720
|
|
|
12721
12721
|
/** Detect free variable `exports`. */
|
|
12722
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
12722
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
12723
12723
|
|
|
12724
12724
|
/** Detect free variable `module`. */
|
|
12725
12725
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
@@ -16579,7 +16579,7 @@ lodash.exports;
|
|
|
16579
16579
|
return symbolToString ? symbolToString.call(value) : '';
|
|
16580
16580
|
}
|
|
16581
16581
|
var result = (value + '');
|
|
16582
|
-
return (result == '0' && (1 / value) == -
|
|
16582
|
+
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
16583
16583
|
}
|
|
16584
16584
|
|
|
16585
16585
|
/**
|
|
@@ -19102,7 +19102,7 @@ lodash.exports;
|
|
|
19102
19102
|
return value;
|
|
19103
19103
|
}
|
|
19104
19104
|
var result = (value + '');
|
|
19105
|
-
return (result == '0' && (1 / value) == -
|
|
19105
|
+
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
19106
19106
|
}
|
|
19107
19107
|
|
|
19108
19108
|
/**
|
|
@@ -24444,7 +24444,7 @@ lodash.exports;
|
|
|
24444
24444
|
* // => false
|
|
24445
24445
|
*/
|
|
24446
24446
|
function isSafeInteger(value) {
|
|
24447
|
-
return isInteger(value) && value >= -
|
|
24447
|
+
return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
|
|
24448
24448
|
}
|
|
24449
24449
|
|
|
24450
24450
|
/**
|
|
@@ -24711,7 +24711,7 @@ lodash.exports;
|
|
|
24711
24711
|
return value === 0 ? value : 0;
|
|
24712
24712
|
}
|
|
24713
24713
|
value = toNumber(value);
|
|
24714
|
-
if (value === INFINITY || value === -
|
|
24714
|
+
if (value === INFINITY || value === -INFINITY) {
|
|
24715
24715
|
var sign = (value < 0 ? -1 : 1);
|
|
24716
24716
|
return sign * MAX_INTEGER;
|
|
24717
24717
|
}
|
|
@@ -24880,7 +24880,7 @@ lodash.exports;
|
|
|
24880
24880
|
*/
|
|
24881
24881
|
function toSafeInteger(value) {
|
|
24882
24882
|
return value
|
|
24883
|
-
? baseClamp(toInteger(value), -
|
|
24883
|
+
? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)
|
|
24884
24884
|
: (value === 0 ? value : 0);
|
|
24885
24885
|
}
|
|
24886
24886
|
|
|
@@ -31517,7 +31517,7 @@ function commonjsRequire(path) {
|
|
|
31517
31517
|
|
|
31518
31518
|
var moment$1 = {exports: {}};
|
|
31519
31519
|
|
|
31520
|
-
(function (module, exports) {
|
|
31520
|
+
(function (module, exports$1) {
|
|
31521
31521
|
(function (global, factory) {
|
|
31522
31522
|
module.exports = factory() ;
|
|
31523
31523
|
}(commonjsGlobal, (function () {
|
|
@@ -37543,7 +37543,7 @@ const ProtestTicket = ({
|
|
|
37543
37543
|
|
|
37544
37544
|
var lib = {exports: {}};
|
|
37545
37545
|
|
|
37546
|
-
(function (module, exports) {
|
|
37546
|
+
(function (module, exports$1) {
|
|
37547
37547
|
!function(e,t){module.exports=t(React);}("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}()});
|
|
37548
37548
|
} (lib));
|
|
37549
37549
|
|
|
@@ -37680,7 +37680,7 @@ var html2canvas$1 = {exports: {}};
|
|
|
37680
37680
|
* Released under MIT License
|
|
37681
37681
|
*/
|
|
37682
37682
|
|
|
37683
|
-
(function (module, exports) {
|
|
37683
|
+
(function (module, exports$1) {
|
|
37684
37684
|
(function (global, factory) {
|
|
37685
37685
|
module.exports = factory() ;
|
|
37686
37686
|
}(commonjsGlobal, (function () {
|
|
@@ -46090,20 +46090,38 @@ const PrintResultTH = ({ list, object }) => {
|
|
|
46090
46090
|
] }) }) });
|
|
46091
46091
|
};
|
|
46092
46092
|
|
|
46093
|
-
const
|
|
46093
|
+
const RenderItem = ({ list, isSystem }) => {
|
|
46094
|
+
const item = list[0];
|
|
46095
|
+
if (isSystem) {
|
|
46096
|
+
return list == null ? void 0 : list.map((e, i) => {
|
|
46097
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
46098
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { className: "text-primary", children: THLabel[e.postCode] }),
|
|
46099
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { children: e.thNumber })
|
|
46100
|
+
] }, i);
|
|
46101
|
+
});
|
|
46102
|
+
} else {
|
|
46103
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
46104
|
+
/* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
46105
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { className: "text-primary", children: "2D" }),
|
|
46106
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { children: item == null ? void 0 : item.twoDigits })
|
|
46107
|
+
] }),
|
|
46108
|
+
/* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
46109
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { className: "text-primary", children: "3D" }),
|
|
46110
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { children: item == null ? void 0 : item.threeDigits })
|
|
46111
|
+
] })
|
|
46112
|
+
] });
|
|
46113
|
+
}
|
|
46114
|
+
};
|
|
46115
|
+
const SaryTH = ({ object, isSystem }) => {
|
|
46094
46116
|
var _a, _b;
|
|
46095
|
-
const
|
|
46117
|
+
const listSystem = (_b = (_a = object.results) == null ? void 0 : _a.filter((e) => ["A", "B"].includes(e.postCode)).reverse()) != null ? _b : [];
|
|
46118
|
+
const list = isSystem ? listSystem : object.results;
|
|
46096
46119
|
return /* @__PURE__ */ jsxRuntime.jsx("table", { cellPadding: "5", className: "tb-result", children: /* @__PURE__ */ jsxRuntime.jsxs("tbody", { children: [
|
|
46097
46120
|
/* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx("td", { className: "text-danger bg-light-red", colSpan: 4, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-100 row", children: [
|
|
46098
46121
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { width: "65%" }, className: "text-right", children: getTime(object == null ? void 0 : object.drawAt) }),
|
|
46099
46122
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { width: "35%" }, className: "text-right", children: /* @__PURE__ */ jsxRuntime.jsx(SaryPrinter, { children: /* @__PURE__ */ jsxRuntime.jsx(PrintResultTH, { object, list }) }) })
|
|
46100
46123
|
] }) }) }),
|
|
46101
|
-
|
|
46102
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
46103
|
-
/* @__PURE__ */ jsxRuntime.jsx("td", { className: "text-primary", children: THLabel[e.postCode] }),
|
|
46104
|
-
/* @__PURE__ */ jsxRuntime.jsx("td", { children: e.thNumber })
|
|
46105
|
-
] }, i);
|
|
46106
|
-
})
|
|
46124
|
+
/* @__PURE__ */ jsxRuntime.jsx(RenderItem, { list, isSystem })
|
|
46107
46125
|
] }) });
|
|
46108
46126
|
};
|
|
46109
46127
|
|
|
@@ -46369,7 +46387,7 @@ const SaryWrapper = ({ children }) => {
|
|
|
46369
46387
|
}, children });
|
|
46370
46388
|
};
|
|
46371
46389
|
|
|
46372
|
-
const RenderSary = ({ object, type }) => {
|
|
46390
|
+
const RenderSary = ({ object, type, isSystem }) => {
|
|
46373
46391
|
switch (type) {
|
|
46374
46392
|
case lType.LEAP:
|
|
46375
46393
|
return /* @__PURE__ */ jsxRuntime.jsx(SaryLeap, { object });
|
|
@@ -46380,7 +46398,7 @@ const RenderSary = ({ object, type }) => {
|
|
|
46380
46398
|
case lType.KH:
|
|
46381
46399
|
return /* @__PURE__ */ jsxRuntime.jsx(SaryKH, { object });
|
|
46382
46400
|
case lType.TH:
|
|
46383
|
-
return /* @__PURE__ */ jsxRuntime.jsx(SaryTH, { object });
|
|
46401
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SaryTH, { object, isSystem });
|
|
46384
46402
|
case lType.MC:
|
|
46385
46403
|
case lType.MT:
|
|
46386
46404
|
case lType.TN:
|
|
@@ -46389,8 +46407,8 @@ const RenderSary = ({ object, type }) => {
|
|
|
46389
46407
|
return null;
|
|
46390
46408
|
}
|
|
46391
46409
|
};
|
|
46392
|
-
const SaryLottery = ({ object, type }) => {
|
|
46393
|
-
return /* @__PURE__ */ jsxRuntime.jsx(SaryWrapper, { children: /* @__PURE__ */ jsxRuntime.jsx(RenderSary, { type, object }) });
|
|
46410
|
+
const SaryLottery = ({ object, type, isSystem }) => {
|
|
46411
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SaryWrapper, { children: /* @__PURE__ */ jsxRuntime.jsx(RenderSary, { type, object, isSystem }) });
|
|
46394
46412
|
};
|
|
46395
46413
|
|
|
46396
46414
|
const SaryLeapPrintAll = ({ children, list, isSc }) => {
|
|
@@ -57823,7 +57841,7 @@ function DeleteModal(_a) {
|
|
|
57823
57841
|
"X-DeviceType": "WEB"
|
|
57824
57842
|
}, token ? { Authorization: `Bearer ${token}` } : {});
|
|
57825
57843
|
React.useEffect(() => {
|
|
57826
|
-
if (!ticket || isSystem) return void 0;
|
|
57844
|
+
if (!ticket || isSystem || !isOpen) return void 0;
|
|
57827
57845
|
setSelectedReason(null);
|
|
57828
57846
|
const fetchReasons = async () => {
|
|
57829
57847
|
var _a2, _b2, _c;
|
|
@@ -57852,7 +57870,7 @@ function DeleteModal(_a) {
|
|
|
57852
57870
|
}
|
|
57853
57871
|
};
|
|
57854
57872
|
fetchReasons();
|
|
57855
|
-
}, [Env.REACT_APP_API_BASE_URL, Env.REACT_APP_BASIC_TOKEN, isSystem, ticket]);
|
|
57873
|
+
}, [Env.REACT_APP_API_BASE_URL, Env.REACT_APP_BASIC_TOKEN, isSystem, ticket, isOpen]);
|
|
57856
57874
|
const handleReasonChange = (option) => {
|
|
57857
57875
|
setSelectedReason(option);
|
|
57858
57876
|
if (typeof onChange === "function") {
|
|
@@ -58637,7 +58655,11 @@ function MoreMenu(_a) {
|
|
|
58637
58655
|
openCallback,
|
|
58638
58656
|
closeCallback,
|
|
58639
58657
|
DropdownButton,
|
|
58640
|
-
isSystem
|
|
58658
|
+
isSystem,
|
|
58659
|
+
isProtestMenu = true,
|
|
58660
|
+
isRemarkMenu = true,
|
|
58661
|
+
isPainMenu = true,
|
|
58662
|
+
isPayoutMenu = true
|
|
58641
58663
|
} = _b, props = __objRest(_b, [
|
|
58642
58664
|
"id",
|
|
58643
58665
|
"object",
|
|
@@ -58655,7 +58677,11 @@ function MoreMenu(_a) {
|
|
|
58655
58677
|
"openCallback",
|
|
58656
58678
|
"closeCallback",
|
|
58657
58679
|
"DropdownButton",
|
|
58658
|
-
"isSystem"
|
|
58680
|
+
"isSystem",
|
|
58681
|
+
"isProtestMenu",
|
|
58682
|
+
"isRemarkMenu",
|
|
58683
|
+
"isPainMenu",
|
|
58684
|
+
"isPayoutMenu"
|
|
58659
58685
|
]);
|
|
58660
58686
|
var _a2, _b2;
|
|
58661
58687
|
const [activeModal, setActiveModal] = React.useState(null);
|
|
@@ -58663,7 +58689,7 @@ function MoreMenu(_a) {
|
|
|
58663
58689
|
const [isPayout, setIsPayout] = React.useState(Boolean(ticket == null ? void 0 : ticket.isPayout));
|
|
58664
58690
|
const [isLoadingPaid, setLoadingPaid] = React.useState(false);
|
|
58665
58691
|
const [isLoadingPayout, setLoadingPayout] = React.useState(false);
|
|
58666
|
-
const isShowPayout =
|
|
58692
|
+
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);
|
|
58667
58693
|
React.useEffect(() => {
|
|
58668
58694
|
setIsPaid(Boolean(ticket == null ? void 0 : ticket.isPaid));
|
|
58669
58695
|
setIsPayout(Boolean(ticket == null ? void 0 : ticket.isPayout));
|
|
@@ -58798,7 +58824,7 @@ function MoreMenu(_a) {
|
|
|
58798
58824
|
"#",
|
|
58799
58825
|
ticket == null ? void 0 : ticket.ticketNumber
|
|
58800
58826
|
] }),
|
|
58801
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
58827
|
+
isProtestMenu && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
58802
58828
|
DropdownItem,
|
|
58803
58829
|
{
|
|
58804
58830
|
type: "button",
|
|
@@ -58810,7 +58836,7 @@ function MoreMenu(_a) {
|
|
|
58810
58836
|
]
|
|
58811
58837
|
}
|
|
58812
58838
|
),
|
|
58813
|
-
|
|
58839
|
+
isRemarkMenu && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
58814
58840
|
DropdownItem,
|
|
58815
58841
|
{
|
|
58816
58842
|
id: `remark-btn-${ticket == null ? void 0 : ticket.ticketNumber}`,
|
|
@@ -58823,7 +58849,7 @@ function MoreMenu(_a) {
|
|
|
58823
58849
|
]
|
|
58824
58850
|
}
|
|
58825
58851
|
),
|
|
58826
|
-
|
|
58852
|
+
isPainMenu && /* @__PURE__ */ jsxRuntime.jsx(
|
|
58827
58853
|
DropdownItem,
|
|
58828
58854
|
{
|
|
58829
58855
|
tag: "div",
|
|
@@ -58902,6 +58928,10 @@ MoreMenu.propTypes = {
|
|
|
58902
58928
|
Env: PropTypes$2.object.isRequired,
|
|
58903
58929
|
accessToken: PropTypes$2.string.isRequired,
|
|
58904
58930
|
isSubmitting: PropTypes$2.bool,
|
|
58931
|
+
isProtestMenu: PropTypes$2.bool,
|
|
58932
|
+
isRemarkMenu: PropTypes$2.bool,
|
|
58933
|
+
isPainMenu: PropTypes$2.bool,
|
|
58934
|
+
isPayoutMenu: PropTypes$2.bool,
|
|
58905
58935
|
onChange: PropTypes$2.func,
|
|
58906
58936
|
onSuccess: PropTypes$2.func,
|
|
58907
58937
|
onError: PropTypes$2.func,
|