@jingx/lottery-components-react-jsx 1.0.28 → 1.0.30
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 +195 -123
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +196 -124
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -32117,8 +32117,8 @@ function transformPostCode(posts, postCodeMap) {
|
|
|
32117
32117
|
}
|
|
32118
32118
|
|
|
32119
32119
|
var __defProp$a = Object.defineProperty;
|
|
32120
|
-
var __defProps$
|
|
32121
|
-
var __getOwnPropDescs$
|
|
32120
|
+
var __defProps$3 = Object.defineProperties;
|
|
32121
|
+
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
32122
32122
|
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
32123
32123
|
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
32124
32124
|
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
@@ -32134,7 +32134,7 @@ var __spreadValues$a = (a, b) => {
|
|
|
32134
32134
|
}
|
|
32135
32135
|
return a;
|
|
32136
32136
|
};
|
|
32137
|
-
var __spreadProps$
|
|
32137
|
+
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
32138
32138
|
const KPPostCode = {
|
|
32139
32139
|
A: "\u179B\u17E1",
|
|
32140
32140
|
F: "\u179B\u17E2",
|
|
@@ -32193,7 +32193,7 @@ const lotteryLabel = {
|
|
|
32193
32193
|
HOSO: "\u1786\u17D2\u1793\u17C4\u178F HOSO",
|
|
32194
32194
|
KP: "\u1780\u17C6\u1796\u178F KP"
|
|
32195
32195
|
};
|
|
32196
|
-
const lotteryLabelVN = __spreadProps$
|
|
32196
|
+
const lotteryLabelVN = __spreadProps$3(__spreadValues$a({}, lotteryLabel), {
|
|
32197
32197
|
VN1: "\u1786\u17D2\u1793\u17C4\u178F\u1799\u17BD\u1793",
|
|
32198
32198
|
TN: "\u1786\u17D2\u1793\u17C4\u178F\u1799\u17BD\u1793",
|
|
32199
32199
|
KH: "\u1786\u17D2\u1793\u17C4\u178F\u1781\u17D2\u1798\u17C2\u179A"
|
|
@@ -32661,7 +32661,6 @@ const TicketPrintBody = (props) => {
|
|
|
32661
32661
|
] }, `select-${itemId}-${i}`);
|
|
32662
32662
|
};
|
|
32663
32663
|
const wrapWithCheckboxProtest = (node, obj, i) => {
|
|
32664
|
-
console.log(obj, "OOOOOOOO");
|
|
32665
32664
|
if (node == null) return null;
|
|
32666
32665
|
if (!showItemCheckbox) return node;
|
|
32667
32666
|
const itemId = getItemId(obj, i);
|
|
@@ -38734,7 +38733,6 @@ const ProtestTicket = ({
|
|
|
38734
38733
|
const selectableIdSet = React.useMemo(() => new Set(selectableItemIds), [selectableItemIds]);
|
|
38735
38734
|
const allChecked = selectableItemIds.length > 0 && selectableItemIds.every((id) => selectedIds.includes(id));
|
|
38736
38735
|
const isIndeterminate = selectedIds.length > 0 && !allChecked;
|
|
38737
|
-
console.log(selectableIdSet, "selectableIdSet");
|
|
38738
38736
|
React.useEffect(() => {
|
|
38739
38737
|
setSelectedIds((prev) => prev.filter((id) => selectableIdSet.has(id)));
|
|
38740
38738
|
}, [selectableIdSet]);
|
|
@@ -38763,7 +38761,7 @@ const ProtestTicket = ({
|
|
|
38763
38761
|
});
|
|
38764
38762
|
};
|
|
38765
38763
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ScopeHost, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("table", { id: "transfer-ticket-58", className: "print-tb-58-1", cellPadding: "7px", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("tbody", { children: [
|
|
38766
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("tr", { style: { lineHeight: "35px" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
38764
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("tr", { style: { lineHeight: "35px" }, className: "no-hover", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
38767
38765
|
RenderTitle,
|
|
38768
38766
|
{
|
|
38769
38767
|
className: "text-center ticket-logo pt-2 mt-1 p-0",
|
|
@@ -38773,8 +38771,8 @@ const ProtestTicket = ({
|
|
|
38773
38771
|
logo
|
|
38774
38772
|
}
|
|
38775
38773
|
) }),
|
|
38776
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "p-0 pt-2", colSpan: 3, children: /* @__PURE__ */ jsxRuntimeExports.jsx("hr", { className: "border-top-ticket" }) }) }),
|
|
38777
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "p-0 pt-2 text-black font-weight-bold", colSpan: 3, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "text-center", children: [
|
|
38774
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("tr", { className: "no-hover", children: /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "p-0 pt-2", colSpan: 3, children: /* @__PURE__ */ jsxRuntimeExports.jsx("hr", { className: "border-top-ticket" }) }) }),
|
|
38775
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("tr", { className: "no-hover", children: /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "p-0 pt-2 text-black font-weight-bold", colSpan: 3, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "text-center", children: [
|
|
38778
38776
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "f-16", children: [
|
|
38779
38777
|
object == null ? void 0 : object.username,
|
|
38780
38778
|
" / #",
|
|
@@ -38782,8 +38780,8 @@ const ProtestTicket = ({
|
|
|
38782
38780
|
] }),
|
|
38783
38781
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "f-16", children: getDateTime(object == null ? void 0 : object.drawAt) })
|
|
38784
38782
|
] }) }) }),
|
|
38785
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "p-0 pb-2", colSpan: 3, children: /* @__PURE__ */ jsxRuntimeExports.jsx("hr", { className: "border-top-ticket" }) }) }),
|
|
38786
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("td", { colSpan: 3, className: "p-0 text-left", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { className: "m-0 d-inline-flex align-items-center text-black", children: [
|
|
38783
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("tr", { className: "no-hover", children: /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "p-0 pb-2", colSpan: 3, children: /* @__PURE__ */ jsxRuntimeExports.jsx("hr", { className: "border-top-ticket" }) }) }),
|
|
38784
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("tr", { className: "no-hover", children: /* @__PURE__ */ jsxRuntimeExports.jsx("td", { colSpan: 3, className: "p-0 text-left", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { className: "m-0 d-inline-flex align-items-center text-black", children: [
|
|
38787
38785
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
38788
38786
|
"input",
|
|
38789
38787
|
{
|
|
@@ -38797,7 +38795,7 @@ const ProtestTicket = ({
|
|
|
38797
38795
|
),
|
|
38798
38796
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "ml-2 f-16", children: "Check all" })
|
|
38799
38797
|
] }) }) }),
|
|
38800
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("td", { colSpan: 3, className: "p-0", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
38798
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("tr", { className: "no-hover", children: /* @__PURE__ */ jsxRuntimeExports.jsx("td", { colSpan: 3, className: "p-0", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
38801
38799
|
PrintTicket58,
|
|
38802
38800
|
{
|
|
38803
38801
|
isNight,
|
|
@@ -38810,7 +38808,7 @@ const ProtestTicket = ({
|
|
|
38810
38808
|
isProtest
|
|
38811
38809
|
}
|
|
38812
38810
|
) }) }),
|
|
38813
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("td", { colSpan: 3, children: /* @__PURE__ */ jsxRuntimeExports.jsx("hr", { className: "border-top-ticket" }) }) })
|
|
38811
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("tr", { className: "no-hover", children: /* @__PURE__ */ jsxRuntimeExports.jsx("td", { colSpan: 3, children: /* @__PURE__ */ jsxRuntimeExports.jsx("hr", { className: "border-top-ticket" }) }) })
|
|
38814
38812
|
] }) }) });
|
|
38815
38813
|
};
|
|
38816
38814
|
|
|
@@ -38877,8 +38875,8 @@ const BasePrinter = (_a) => {
|
|
|
38877
38875
|
};
|
|
38878
38876
|
|
|
38879
38877
|
var __defProp$8 = Object.defineProperty;
|
|
38880
|
-
var __defProps$
|
|
38881
|
-
var __getOwnPropDescs$
|
|
38878
|
+
var __defProps$2 = Object.defineProperties;
|
|
38879
|
+
var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
|
|
38882
38880
|
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
38883
38881
|
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
38884
38882
|
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
@@ -38894,7 +38892,7 @@ var __spreadValues$8 = (a, b) => {
|
|
|
38894
38892
|
}
|
|
38895
38893
|
return a;
|
|
38896
38894
|
};
|
|
38897
|
-
var __spreadProps$
|
|
38895
|
+
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|
38898
38896
|
var __objRest$4 = (source, exclude) => {
|
|
38899
38897
|
var target = {};
|
|
38900
38898
|
for (var prop in source)
|
|
@@ -38911,7 +38909,7 @@ const Printer = (_a) => {
|
|
|
38911
38909
|
var _b = _a, { children } = _b, props = __objRest$4(_b, ["children"]);
|
|
38912
38910
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
38913
38911
|
BasePrinter,
|
|
38914
|
-
__spreadProps$
|
|
38912
|
+
__spreadProps$2(__spreadValues$8({
|
|
38915
38913
|
component: /* @__PURE__ */ jsxRuntimeExports.jsx(Ticket, __spreadValues$8({}, props))
|
|
38916
38914
|
}, props), {
|
|
38917
38915
|
children: children != null ? children : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "btn btn-primary", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
@@ -47173,8 +47171,8 @@ const PostTable = React.memo(({ data = [], fallbackTwo = "", fallbackThree = "",
|
|
|
47173
47171
|
});
|
|
47174
47172
|
|
|
47175
47173
|
var __defProp$5 = Object.defineProperty;
|
|
47176
|
-
var __defProps = Object.defineProperties;
|
|
47177
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
47174
|
+
var __defProps$1 = Object.defineProperties;
|
|
47175
|
+
var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
|
|
47178
47176
|
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
47179
47177
|
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
47180
47178
|
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|
@@ -47190,8 +47188,8 @@ var __spreadValues$5 = (a, b) => {
|
|
|
47190
47188
|
}
|
|
47191
47189
|
return a;
|
|
47192
47190
|
};
|
|
47193
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
47194
|
-
const loCellStyle = __spreadProps(__spreadValues$5({}, baseCellStyle), {
|
|
47191
|
+
var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
|
|
47192
|
+
const loCellStyle = __spreadProps$1(__spreadValues$5({}, baseCellStyle), {
|
|
47195
47193
|
width: "200px"
|
|
47196
47194
|
});
|
|
47197
47195
|
const LoTable = React.memo(({ LO = [], columnsCount = 3, showHeader = false }) => {
|
|
@@ -47203,7 +47201,7 @@ const LoTable = React.memo(({ LO = [], columnsCount = 3, showHeader = false }) =
|
|
|
47203
47201
|
"th",
|
|
47204
47202
|
{
|
|
47205
47203
|
className: "text-black text-center bg-light-red",
|
|
47206
|
-
style: __spreadProps(__spreadValues$5({}, loCellStyle), { fontSize: "16px" }),
|
|
47204
|
+
style: __spreadProps$1(__spreadValues$5({}, loCellStyle), { fontSize: "16px" }),
|
|
47207
47205
|
children: KPLO[col.columnNumber]
|
|
47208
47206
|
},
|
|
47209
47207
|
idx
|
|
@@ -59023,6 +59021,13 @@ var axios_1 = axios;
|
|
|
59023
59021
|
|
|
59024
59022
|
var axios$1 = /*@__PURE__*/getDefaultExportFromCjs(axios_1);
|
|
59025
59023
|
|
|
59024
|
+
const ProtestApi = "api/v1.0.0/order/protest";
|
|
59025
|
+
const RemoveReasonApi = "api/v1.0.0/order/remove-reason";
|
|
59026
|
+
const DeleteApi = "api/v1.0.0/order/remove";
|
|
59027
|
+
const RemarkApi = "api/v1.0.0/order/remark";
|
|
59028
|
+
const PaidApi = "api/v1.0.0/order/paid";
|
|
59029
|
+
const PayoutApi = "api/v1.0.0/order/payout";
|
|
59030
|
+
|
|
59026
59031
|
var __defProp$4 = Object.defineProperty;
|
|
59027
59032
|
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
59028
59033
|
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
@@ -59051,10 +59056,10 @@ var __objRest$2 = (source, exclude) => {
|
|
|
59051
59056
|
}
|
|
59052
59057
|
return target;
|
|
59053
59058
|
};
|
|
59054
|
-
const DEFAULT_API_BASE_URL$3 = "https://api-web.dev.lottery.aazz168.com";
|
|
59059
|
+
const DEFAULT_API_BASE_URL$3 = "https://api-web.dev.lottery.aazz168.com/";
|
|
59055
59060
|
function DeleteModal(_a) {
|
|
59056
59061
|
var _b = _a, {
|
|
59057
|
-
|
|
59062
|
+
ticket,
|
|
59058
59063
|
isOpen = false,
|
|
59059
59064
|
onClose,
|
|
59060
59065
|
onChange,
|
|
@@ -59065,7 +59070,7 @@ function DeleteModal(_a) {
|
|
|
59065
59070
|
accessToken,
|
|
59066
59071
|
isRemoveReason
|
|
59067
59072
|
} = _b; __objRest$2(_b, [
|
|
59068
|
-
"
|
|
59073
|
+
"ticket",
|
|
59069
59074
|
"isOpen",
|
|
59070
59075
|
"onClose",
|
|
59071
59076
|
"onChange",
|
|
@@ -59087,14 +59092,14 @@ function DeleteModal(_a) {
|
|
|
59087
59092
|
"X-DeviceType": "WEB"
|
|
59088
59093
|
}, token ? { Authorization: `Bearer ${token}` } : {});
|
|
59089
59094
|
React.useEffect(() => {
|
|
59090
|
-
if (!
|
|
59095
|
+
if (!ticket) return void 0;
|
|
59091
59096
|
setSelectedReason(null);
|
|
59092
59097
|
const fetchReasons = async () => {
|
|
59093
59098
|
var _a2, _b2, _c;
|
|
59094
59099
|
try {
|
|
59095
59100
|
setIsLoading(true);
|
|
59096
59101
|
const res = await axios$1.get(
|
|
59097
|
-
`${Env.REACT_APP_API_BASE_URL || DEFAULT_API_BASE_URL$3}
|
|
59102
|
+
`${Env.REACT_APP_API_BASE_URL || DEFAULT_API_BASE_URL$3}${RemoveReasonApi}`,
|
|
59098
59103
|
{
|
|
59099
59104
|
headers
|
|
59100
59105
|
}
|
|
@@ -59116,7 +59121,7 @@ function DeleteModal(_a) {
|
|
|
59116
59121
|
}
|
|
59117
59122
|
};
|
|
59118
59123
|
fetchReasons();
|
|
59119
|
-
}, [Env.REACT_APP_API_BASE_URL, Env.REACT_APP_BASIC_TOKEN,
|
|
59124
|
+
}, [Env.REACT_APP_API_BASE_URL, Env.REACT_APP_BASIC_TOKEN, ticket]);
|
|
59120
59125
|
const handleReasonChange = (option) => {
|
|
59121
59126
|
setSelectedReason(option);
|
|
59122
59127
|
if (typeof onChange === "function") {
|
|
@@ -59124,7 +59129,7 @@ function DeleteModal(_a) {
|
|
|
59124
59129
|
}
|
|
59125
59130
|
};
|
|
59126
59131
|
const handleConfirm = async () => {
|
|
59127
|
-
var _a2, _b2, _c;
|
|
59132
|
+
var _a2, _b2, _c, _d;
|
|
59128
59133
|
if (isRemoveReason && !selectedReason) {
|
|
59129
59134
|
PNotify_1.alert({
|
|
59130
59135
|
text: "\u179F\u17BC\u1798\u1787\u17D2\u179A\u17BE\u179F\u179A\u17BE\u179F\u1798\u17BC\u179B\u17A0\u17C1\u178F\u17BB\u179B\u17BB\u1794",
|
|
@@ -59135,12 +59140,12 @@ function DeleteModal(_a) {
|
|
|
59135
59140
|
try {
|
|
59136
59141
|
setIsSubmitting(true);
|
|
59137
59142
|
const payload = {
|
|
59138
|
-
lotteryType:
|
|
59139
|
-
ticketNumber:
|
|
59143
|
+
lotteryType: ticket == null ? void 0 : ticket.lotteryType,
|
|
59144
|
+
ticketNumber: ticket == null ? void 0 : ticket.ticketNumber,
|
|
59140
59145
|
message: (_a2 = selectedReason == null ? void 0 : selectedReason.value) != null ? _a2 : ""
|
|
59141
59146
|
};
|
|
59142
59147
|
const res = await axios$1.delete(
|
|
59143
|
-
`${Env.REACT_APP_API_BASE_URL || DEFAULT_API_BASE_URL$3}
|
|
59148
|
+
`${Env.REACT_APP_API_BASE_URL || DEFAULT_API_BASE_URL$3}${DeleteApi}`,
|
|
59144
59149
|
{
|
|
59145
59150
|
headers,
|
|
59146
59151
|
data: payload
|
|
@@ -59149,9 +59154,13 @@ function DeleteModal(_a) {
|
|
|
59149
59154
|
if (typeof onSuccess === "function") {
|
|
59150
59155
|
onSuccess(res.data, payload);
|
|
59151
59156
|
}
|
|
59157
|
+
PNotify_1.alert({
|
|
59158
|
+
text: ((_b2 = res.data) == null ? void 0 : _b2.message) || "\u179F\u17C6\u1794\u17BB\u178F\u17D2\u179A\u179B\u17BB\u1794\u1787\u17C4\u1782\u1787\u17D0\u1799 !",
|
|
59159
|
+
type: "success"
|
|
59160
|
+
});
|
|
59152
59161
|
onClose == null ? void 0 : onClose();
|
|
59153
59162
|
} catch (err) {
|
|
59154
|
-
const message = ((
|
|
59163
|
+
const message = ((_d = (_c = err.response) == null ? void 0 : _c.data) == null ? void 0 : _d.message) || err.message || "\u179F\u17C6\u1794\u17BB\u178F\u17D2\u179A\u179B\u17BB\u1794\u1794\u179A\u17B6\u1787\u17D0\u1799 !";
|
|
59155
59164
|
PNotify_1.alert({
|
|
59156
59165
|
text: message,
|
|
59157
59166
|
type: "error"
|
|
@@ -59163,58 +59172,71 @@ function DeleteModal(_a) {
|
|
|
59163
59172
|
setIsSubmitting(false);
|
|
59164
59173
|
}
|
|
59165
59174
|
};
|
|
59166
|
-
if (!
|
|
59167
|
-
|
|
59168
|
-
|
|
59169
|
-
|
|
59170
|
-
|
|
59171
|
-
|
|
59172
|
-
|
|
59173
|
-
|
|
59174
|
-
|
|
59175
|
-
|
|
59176
|
-
|
|
59177
|
-
|
|
59178
|
-
|
|
59179
|
-
|
|
59180
|
-
|
|
59181
|
-
|
|
59182
|
-
|
|
59183
|
-
style: { width: 110, height: 110, marginTop: 20, marginBottom: 0 }
|
|
59184
|
-
}
|
|
59185
|
-
) }),
|
|
59186
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "f-25 text-center mb-2", style: { color: "#000000a6" }, children: "\u178F\u17BE\u17A2\u17D2\u1793\u1780\u1794\u17D2\u179A\u17B6\u1780\u178A\u17AC\u17A2\u178F\u17CB?" }),
|
|
59187
|
-
isRemoveReason && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
59188
|
-
StateManagedSelect$1,
|
|
59189
|
-
{
|
|
59190
|
-
options,
|
|
59191
|
-
value: selectedReason,
|
|
59192
|
-
isLoading,
|
|
59193
|
-
isDisabled: isLoading || isSubmitting || externalSubmitting,
|
|
59194
|
-
onChange: handleReasonChange,
|
|
59195
|
-
placeholder: "\u1798\u17BC\u179B\u17A0\u17C1\u178F\u17BB \u179B\u17BB\u1794..."
|
|
59196
|
-
}
|
|
59197
|
-
) }),
|
|
59198
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "my-3 d-flex justify-content-center", children: [
|
|
59199
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { type: "button", className: "btn-cancel", onClick: onClose, children: "\u1791\u17C1" }),
|
|
59200
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
59201
|
-
"button",
|
|
59175
|
+
if (!ticket) return null;
|
|
59176
|
+
console.log(ticket, "ticket");
|
|
59177
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ScopeHost, { children: (container) => {
|
|
59178
|
+
var _a2, _b2;
|
|
59179
|
+
return container && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
59180
|
+
Modal,
|
|
59181
|
+
{
|
|
59182
|
+
isOpen,
|
|
59183
|
+
toggle: onClose,
|
|
59184
|
+
container,
|
|
59185
|
+
backdropClassName: "modal-backdrop",
|
|
59186
|
+
modalClassName: "modal scroll-modal",
|
|
59187
|
+
contentClassName: "",
|
|
59188
|
+
style: { width: 380 },
|
|
59189
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ModalBody, { className: "d-inline-flex justify-content-center p-0 font-Hanuman", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-75", children: [
|
|
59190
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
59191
|
+
FeatherIcon,
|
|
59202
59192
|
{
|
|
59203
|
-
|
|
59204
|
-
className: "
|
|
59205
|
-
|
|
59206
|
-
disabled: isLoading || isSubmitting || externalSubmitting,
|
|
59207
|
-
children: "\u1794\u17B6\u1791/\u1785\u17B6\u179F\u17CE"
|
|
59193
|
+
icon: "alert-circle",
|
|
59194
|
+
className: "text-warning px-1",
|
|
59195
|
+
style: { width: 110, height: 110, marginTop: 20, marginBottom: 0 }
|
|
59208
59196
|
}
|
|
59209
|
-
)
|
|
59210
|
-
|
|
59211
|
-
|
|
59212
|
-
|
|
59213
|
-
|
|
59197
|
+
) }),
|
|
59198
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "f-25 text-center mb-0", style: { color: "#000000a6" }, children: "\u178F\u17BE\u17A2\u17D2\u1793\u1780\u1794\u17D2\u179A\u17B6\u1780\u178A\u17AC\u17A2\u178F\u17CB?" }),
|
|
59199
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "f-14 text-center mb-2 text-danger", children: [
|
|
59200
|
+
"\u179B\u17BB\u1794\u179F\u17C6\u1794\u17BB\u178F\u17D2\u179A #",
|
|
59201
|
+
ticket.ticketNumber,
|
|
59202
|
+
" = ",
|
|
59203
|
+
moneyFormatter((_a2 = ticket.totalKhr) == null ? void 0 : _a2.betAmount, "KHR"),
|
|
59204
|
+
"/",
|
|
59205
|
+
moneyFormatter((_b2 = ticket.totalUsd) == null ? void 0 : _b2.betAmount, "USD")
|
|
59206
|
+
] }),
|
|
59207
|
+
isRemoveReason && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
59208
|
+
StateManagedSelect$1,
|
|
59209
|
+
{
|
|
59210
|
+
options,
|
|
59211
|
+
value: selectedReason,
|
|
59212
|
+
isLoading,
|
|
59213
|
+
isDisabled: isLoading || isSubmitting || externalSubmitting,
|
|
59214
|
+
onChange: handleReasonChange,
|
|
59215
|
+
placeholder: "\u1798\u17BC\u179B\u17A0\u17C1\u178F\u17BB \u179B\u17BB\u1794..."
|
|
59216
|
+
}
|
|
59217
|
+
) }),
|
|
59218
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "my-3 d-flex justify-content-center", children: [
|
|
59219
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { type: "button", className: "btn-cancel", onClick: onClose, children: "\u1791\u17C1" }),
|
|
59220
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
59221
|
+
"button",
|
|
59222
|
+
{
|
|
59223
|
+
type: "button",
|
|
59224
|
+
className: "btn-confirm ml-3",
|
|
59225
|
+
onClick: handleConfirm,
|
|
59226
|
+
disabled: isLoading || isSubmitting || externalSubmitting,
|
|
59227
|
+
children: "\u1794\u17B6\u1791/\u1785\u17B6\u179F\u17CE"
|
|
59228
|
+
}
|
|
59229
|
+
)
|
|
59230
|
+
] })
|
|
59231
|
+
] }) })
|
|
59232
|
+
}
|
|
59233
|
+
);
|
|
59234
|
+
} });
|
|
59214
59235
|
}
|
|
59215
59236
|
DeleteModal.propTypes = {
|
|
59216
|
-
|
|
59237
|
+
ticket: PropTypes$2.object,
|
|
59217
59238
|
isOpen: PropTypes$2.bool,
|
|
59239
|
+
isRemoveReason: PropTypes$2.bool.isRequired,
|
|
59218
59240
|
onClose: PropTypes$2.func.isRequired,
|
|
59219
59241
|
Env: PropTypes$2.object.isRequired,
|
|
59220
59242
|
accessToken: PropTypes$2.string.isRequired
|
|
@@ -59241,7 +59263,7 @@ function DeleteTicketButton(props) {
|
|
|
59241
59263
|
id,
|
|
59242
59264
|
onOpen,
|
|
59243
59265
|
Env,
|
|
59244
|
-
|
|
59266
|
+
ticket,
|
|
59245
59267
|
onClose,
|
|
59246
59268
|
accessToken,
|
|
59247
59269
|
onChange,
|
|
@@ -59289,7 +59311,7 @@ function DeleteTicketButton(props) {
|
|
|
59289
59311
|
DeleteModal,
|
|
59290
59312
|
{
|
|
59291
59313
|
Env,
|
|
59292
|
-
|
|
59314
|
+
ticket,
|
|
59293
59315
|
isOpen,
|
|
59294
59316
|
onClose: handleClose,
|
|
59295
59317
|
accessToken,
|
|
@@ -59305,7 +59327,7 @@ DeleteTicketButton.propTypes = {
|
|
|
59305
59327
|
id: PropTypes$2.string.isRequired,
|
|
59306
59328
|
onOpen: PropTypes$2.func.isRequired,
|
|
59307
59329
|
Env: PropTypes$2.object.isRequired,
|
|
59308
|
-
|
|
59330
|
+
ticket: PropTypes$2.object,
|
|
59309
59331
|
onClose: PropTypes$2.func.isRequired,
|
|
59310
59332
|
isOpen: PropTypes$2.bool,
|
|
59311
59333
|
isRemoveReason: PropTypes$2.bool.isRequired,
|
|
@@ -59330,7 +59352,7 @@ var __spreadValues$2 = (a, b) => {
|
|
|
59330
59352
|
}
|
|
59331
59353
|
return a;
|
|
59332
59354
|
};
|
|
59333
|
-
const DEFAULT_API_BASE_URL$2 = "https://api-web.dev.lottery.aazz168.com";
|
|
59355
|
+
const DEFAULT_API_BASE_URL$2 = "https://api-web.dev.lottery.aazz168.com/";
|
|
59334
59356
|
const ProtestModal = ({
|
|
59335
59357
|
isOpen,
|
|
59336
59358
|
onClose,
|
|
@@ -59366,7 +59388,7 @@ const ProtestModal = ({
|
|
|
59366
59388
|
try {
|
|
59367
59389
|
setIsLoading(true);
|
|
59368
59390
|
const res = await axios$1.get(
|
|
59369
|
-
`${Env.REACT_APP_API_BASE_URL || DEFAULT_API_BASE_URL$2}
|
|
59391
|
+
`${Env.REACT_APP_API_BASE_URL || DEFAULT_API_BASE_URL$2}${RemoveReasonApi}`,
|
|
59370
59392
|
{
|
|
59371
59393
|
params: { type: "protest" },
|
|
59372
59394
|
headers
|
|
@@ -59426,7 +59448,7 @@ const ProtestModal = ({
|
|
|
59426
59448
|
message: selectedReason.value
|
|
59427
59449
|
};
|
|
59428
59450
|
const res = await axios$1.post(
|
|
59429
|
-
`${Env.REACT_APP_API_BASE_URL || DEFAULT_API_BASE_URL$2}
|
|
59451
|
+
`${Env.REACT_APP_API_BASE_URL || DEFAULT_API_BASE_URL$2}${ProtestApi}`,
|
|
59430
59452
|
payload,
|
|
59431
59453
|
{ headers }
|
|
59432
59454
|
);
|
|
@@ -59606,10 +59628,11 @@ var __objRest$1 = (source, exclude) => {
|
|
|
59606
59628
|
}
|
|
59607
59629
|
return target;
|
|
59608
59630
|
};
|
|
59609
|
-
const DEFAULT_API_BASE_URL$1 = "https://api-web.dev.lottery.aazz168.com";
|
|
59631
|
+
const DEFAULT_API_BASE_URL$1 = "https://api-web.dev.lottery.aazz168.com/";
|
|
59610
59632
|
function RemarkModal(_a) {
|
|
59611
59633
|
var _b = _a, {
|
|
59612
59634
|
object,
|
|
59635
|
+
ticket,
|
|
59613
59636
|
onClose,
|
|
59614
59637
|
onChange,
|
|
59615
59638
|
onSuccess,
|
|
@@ -59619,6 +59642,7 @@ function RemarkModal(_a) {
|
|
|
59619
59642
|
accessToken
|
|
59620
59643
|
} = _b; __objRest$1(_b, [
|
|
59621
59644
|
"object",
|
|
59645
|
+
"ticket",
|
|
59622
59646
|
"onClose",
|
|
59623
59647
|
"onChange",
|
|
59624
59648
|
"onSuccess",
|
|
@@ -59630,6 +59654,10 @@ function RemarkModal(_a) {
|
|
|
59630
59654
|
const [remark, setRemark] = React.useState("");
|
|
59631
59655
|
const [loadError, setLoadError] = React.useState("");
|
|
59632
59656
|
const [isSubmitting, setIsSubmitting] = React.useState(false);
|
|
59657
|
+
React.useEffect(() => {
|
|
59658
|
+
var _a2;
|
|
59659
|
+
setRemark((_a2 = ticket == null ? void 0 : ticket.remark) != null ? _a2 : "");
|
|
59660
|
+
}, [ticket]);
|
|
59633
59661
|
const token = accessToken || localStorage.getItem("accessToken") || sessionStorage.getItem("accessToken");
|
|
59634
59662
|
const headers = __spreadValues$1({
|
|
59635
59663
|
"Content-Type": "application/json",
|
|
@@ -59648,7 +59676,7 @@ function RemarkModal(_a) {
|
|
|
59648
59676
|
}
|
|
59649
59677
|
};
|
|
59650
59678
|
const handleConfirm = async () => {
|
|
59651
|
-
var _a2, _b2;
|
|
59679
|
+
var _a2, _b2, _c;
|
|
59652
59680
|
if (!remark) return setLoadError("\u179F\u17BC\u1798\u1794\u1789\u17D2\u1785\u17BC\u179B\u1780\u17C6\u178E\u178F\u17CB\u179F\u1798\u17D2\u1782\u17B6\u179B\u17CB!");
|
|
59653
59681
|
try {
|
|
59654
59682
|
setIsSubmitting(true);
|
|
@@ -59658,7 +59686,7 @@ function RemarkModal(_a) {
|
|
|
59658
59686
|
message: remark
|
|
59659
59687
|
};
|
|
59660
59688
|
const res = await axios$1.delete(
|
|
59661
|
-
`${Env.REACT_APP_API_BASE_URL || DEFAULT_API_BASE_URL$1}
|
|
59689
|
+
`${Env.REACT_APP_API_BASE_URL || DEFAULT_API_BASE_URL$1}${RemarkApi}`,
|
|
59662
59690
|
{
|
|
59663
59691
|
headers,
|
|
59664
59692
|
data: payload
|
|
@@ -59667,9 +59695,13 @@ function RemarkModal(_a) {
|
|
|
59667
59695
|
if (typeof onSuccess === "function") {
|
|
59668
59696
|
onSuccess(res.data, payload);
|
|
59669
59697
|
}
|
|
59698
|
+
PNotify_1.alert({
|
|
59699
|
+
text: ((_a2 = res.data) == null ? void 0 : _a2.message) || "\u179F\u1798\u17D2\u1782\u17B6\u179B\u17CB\u179F\u17C6\u1794\u17BB\u178F\u17D2\u179A\u1787\u17C4\u1782\u1787\u17D0\u1799 !",
|
|
59700
|
+
type: "success"
|
|
59701
|
+
});
|
|
59670
59702
|
onClose == null ? void 0 : onClose();
|
|
59671
59703
|
} catch (err) {
|
|
59672
|
-
const message = ((
|
|
59704
|
+
const message = ((_c = (_b2 = err.response) == null ? void 0 : _b2.data) == null ? void 0 : _c.message) || err.message || "\u1780\u17C6\u178E\u178F\u17CB\u179F\u1798\u17D2\u1782\u17B6\u179B\u17CB\u1794\u179A\u17B6\u1787\u17D0\u1799 !";
|
|
59673
59705
|
setLoadError(message);
|
|
59674
59706
|
if (typeof onError === "function") {
|
|
59675
59707
|
onError(err);
|
|
@@ -59731,12 +59763,15 @@ function RemarkModal(_a) {
|
|
|
59731
59763
|
}
|
|
59732
59764
|
RemarkModal.propTypes = {
|
|
59733
59765
|
object: PropTypes$2.object,
|
|
59766
|
+
ticket: PropTypes$2.object,
|
|
59734
59767
|
onClose: PropTypes$2.func.isRequired,
|
|
59735
59768
|
Env: PropTypes$2.object.isRequired,
|
|
59736
59769
|
accessToken: PropTypes$2.string.isRequired
|
|
59737
59770
|
};
|
|
59738
59771
|
|
|
59739
59772
|
var __defProp = Object.defineProperty;
|
|
59773
|
+
var __defProps = Object.defineProperties;
|
|
59774
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
59740
59775
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
59741
59776
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
59742
59777
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -59752,6 +59787,7 @@ var __spreadValues = (a, b) => {
|
|
|
59752
59787
|
}
|
|
59753
59788
|
return a;
|
|
59754
59789
|
};
|
|
59790
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
59755
59791
|
var __objRest = (source, exclude) => {
|
|
59756
59792
|
var target = {};
|
|
59757
59793
|
for (var prop in source)
|
|
@@ -59764,7 +59800,7 @@ var __objRest = (source, exclude) => {
|
|
|
59764
59800
|
}
|
|
59765
59801
|
return target;
|
|
59766
59802
|
};
|
|
59767
|
-
const DEFAULT_API_BASE_URL = "https://api-web.dev.lottery.aazz168.com";
|
|
59803
|
+
const DEFAULT_API_BASE_URL = "https://api-web.dev.lottery.aazz168.com/";
|
|
59768
59804
|
function MoreMenu(_a) {
|
|
59769
59805
|
var _b = _a, {
|
|
59770
59806
|
id = "more-menu",
|
|
@@ -59781,8 +59817,9 @@ function MoreMenu(_a) {
|
|
|
59781
59817
|
isSubmitting: externalSubmitting = false,
|
|
59782
59818
|
accessToken,
|
|
59783
59819
|
openCallback,
|
|
59784
|
-
closeCallback
|
|
59785
|
-
|
|
59820
|
+
closeCallback,
|
|
59821
|
+
DropdownButton
|
|
59822
|
+
} = _b, props = __objRest(_b, [
|
|
59786
59823
|
"id",
|
|
59787
59824
|
"object",
|
|
59788
59825
|
"ticket",
|
|
@@ -59797,13 +59834,16 @@ function MoreMenu(_a) {
|
|
|
59797
59834
|
"isSubmitting",
|
|
59798
59835
|
"accessToken",
|
|
59799
59836
|
"openCallback",
|
|
59800
|
-
"closeCallback"
|
|
59837
|
+
"closeCallback",
|
|
59838
|
+
"DropdownButton"
|
|
59801
59839
|
]);
|
|
59840
|
+
var _a2, _b2;
|
|
59802
59841
|
const [activeModal, setActiveModal] = React.useState(null);
|
|
59803
59842
|
const [isPaid, setIsPaid] = React.useState(Boolean(ticket == null ? void 0 : ticket.isPaid));
|
|
59804
59843
|
const [isPayout, setIsPayout] = React.useState(Boolean(ticket == null ? void 0 : ticket.isPayout));
|
|
59805
59844
|
const [isLoadingPaid, setLoadingPaid] = React.useState(false);
|
|
59806
59845
|
const [isLoadingPayout, setLoadingPayout] = React.useState(false);
|
|
59846
|
+
const isShowPayout = ((_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;
|
|
59807
59847
|
React.useEffect(() => {
|
|
59808
59848
|
setIsPaid(Boolean(ticket == null ? void 0 : ticket.isPaid));
|
|
59809
59849
|
setIsPayout(Boolean(ticket == null ? void 0 : ticket.isPayout));
|
|
@@ -59829,7 +59869,7 @@ function MoreMenu(_a) {
|
|
|
59829
59869
|
};
|
|
59830
59870
|
const createToggleHandler = ({ setValue, setLoading, successCallback, endpoint, failureMessage, successMessage }) => {
|
|
59831
59871
|
return async (event) => {
|
|
59832
|
-
var
|
|
59872
|
+
var _a3, _b3, _c, _d, _e;
|
|
59833
59873
|
const nextChecked = event.target.checked;
|
|
59834
59874
|
const previousValue = !nextChecked;
|
|
59835
59875
|
if (!ticket || !object) {
|
|
@@ -59839,8 +59879,8 @@ function MoreMenu(_a) {
|
|
|
59839
59879
|
setLoading(true);
|
|
59840
59880
|
setValue(nextChecked);
|
|
59841
59881
|
const payload = {
|
|
59842
|
-
lotteryType: (
|
|
59843
|
-
ticketNumber: (
|
|
59882
|
+
lotteryType: (_a3 = object == null ? void 0 : object.lotteryType) != null ? _a3 : ticket == null ? void 0 : ticket.lotteryType,
|
|
59883
|
+
ticketNumber: (_b3 = object == null ? void 0 : object.ticketNumber) != null ? _b3 : ticket == null ? void 0 : ticket.ticketNumber,
|
|
59844
59884
|
status: nextChecked
|
|
59845
59885
|
};
|
|
59846
59886
|
const res = await axios$1.post(
|
|
@@ -59873,7 +59913,7 @@ function MoreMenu(_a) {
|
|
|
59873
59913
|
setValue: setIsPaid,
|
|
59874
59914
|
setLoading: setLoadingPaid,
|
|
59875
59915
|
successCallback: onSuccessPaid != null ? onSuccessPaid : onSuccess,
|
|
59876
|
-
endpoint:
|
|
59916
|
+
endpoint: PaidApi,
|
|
59877
59917
|
failureMessage: "Failed to mark as paid.",
|
|
59878
59918
|
successMessage: "Marked as paid successfully."
|
|
59879
59919
|
});
|
|
@@ -59881,32 +59921,59 @@ function MoreMenu(_a) {
|
|
|
59881
59921
|
setValue: setIsPayout,
|
|
59882
59922
|
setLoading: setLoadingPayout,
|
|
59883
59923
|
successCallback: onSuccessPayout != null ? onSuccessPayout : onSuccess,
|
|
59884
|
-
endpoint:
|
|
59924
|
+
endpoint: PayoutApi,
|
|
59885
59925
|
failureMessage: "Failed to mark as payout.",
|
|
59886
59926
|
successMessage: "Marked as payout successfully."
|
|
59887
59927
|
});
|
|
59928
|
+
const toggleProps = {
|
|
59929
|
+
id,
|
|
59930
|
+
tag: "button",
|
|
59931
|
+
type: "button",
|
|
59932
|
+
caret: false,
|
|
59933
|
+
className: "border-0 p-2 rounded mb-1",
|
|
59934
|
+
style: { background: "#6c757d8f" }
|
|
59935
|
+
};
|
|
59936
|
+
const defaultToggleContent = /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
59937
|
+
FeatherIcon,
|
|
59938
|
+
{
|
|
59939
|
+
icon: "more-horizontal",
|
|
59940
|
+
className: "f-16 text-white px-1",
|
|
59941
|
+
style: { outline: "none", boxShadow: "none" }
|
|
59942
|
+
}
|
|
59943
|
+
);
|
|
59944
|
+
const resolveDropdownButton = () => {
|
|
59945
|
+
if (!DropdownButton) {
|
|
59946
|
+
return {
|
|
59947
|
+
props: toggleProps,
|
|
59948
|
+
children: defaultToggleContent
|
|
59949
|
+
};
|
|
59950
|
+
}
|
|
59951
|
+
const resolvedButton = typeof DropdownButton === "function" ? DropdownButton(toggleProps) : DropdownButton;
|
|
59952
|
+
if (!React.isValidElement(resolvedButton)) {
|
|
59953
|
+
return {
|
|
59954
|
+
props: toggleProps,
|
|
59955
|
+
children: resolvedButton || defaultToggleContent
|
|
59956
|
+
};
|
|
59957
|
+
}
|
|
59958
|
+
const customProps = __spreadValues({}, resolvedButton.props);
|
|
59959
|
+
const customChildren = customProps.children;
|
|
59960
|
+
delete customProps.children;
|
|
59961
|
+
if (resolvedButton.type !== DropdownToggle) {
|
|
59962
|
+
customProps.tag = customProps.tag || resolvedButton.type;
|
|
59963
|
+
}
|
|
59964
|
+
return {
|
|
59965
|
+
props: __spreadValues(__spreadValues({}, toggleProps), customProps),
|
|
59966
|
+
children: customChildren || defaultToggleContent
|
|
59967
|
+
};
|
|
59968
|
+
};
|
|
59969
|
+
const renderDropdownToggle = () => {
|
|
59970
|
+
const resolvedToggle = resolveDropdownButton();
|
|
59971
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(DropdownToggle, __spreadProps(__spreadValues({}, resolvedToggle.props), { children: resolvedToggle.children }));
|
|
59972
|
+
};
|
|
59888
59973
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
59889
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(ScopeHost, { children: (container) => container && /* @__PURE__ */ jsxRuntimeExports.jsxs(UncontrolledDropdown, { className: "drp-user font-Hanuman", children: [
|
|
59890
|
-
|
|
59891
|
-
|
|
59892
|
-
{
|
|
59893
|
-
id,
|
|
59894
|
-
tag: "button",
|
|
59895
|
-
type: "button",
|
|
59896
|
-
caret: false,
|
|
59897
|
-
className: "border-0 p-2 rounded mb-1",
|
|
59898
|
-
style: { background: "#6c757d8f" },
|
|
59899
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
59900
|
-
FeatherIcon,
|
|
59901
|
-
{
|
|
59902
|
-
icon: "more-horizontal",
|
|
59903
|
-
className: "f-16 text-white px-1",
|
|
59904
|
-
style: { outline: "none", boxShadow: "none" }
|
|
59905
|
-
}
|
|
59906
|
-
)
|
|
59907
|
-
}
|
|
59908
|
-
),
|
|
59909
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(DropdownMenu, { right: true, className: "profile-notification pt-0", children: [
|
|
59974
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ScopeHost, { children: (container) => container && /* @__PURE__ */ jsxRuntimeExports.jsxs(UncontrolledDropdown, __spreadProps(__spreadValues({ className: "drp-user font-Hanuman" }, props), { children: [
|
|
59975
|
+
renderDropdownToggle(),
|
|
59976
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(DropdownMenu, { className: "profile-notification pt-0", children: [
|
|
59910
59977
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(DropdownItem, { header: true, className: "drop-header", children: [
|
|
59911
59978
|
"#",
|
|
59912
59979
|
ticket == null ? void 0 : ticket.ticketNumber
|
|
@@ -59958,7 +60025,7 @@ function MoreMenu(_a) {
|
|
|
59958
60025
|
] })
|
|
59959
60026
|
}
|
|
59960
60027
|
),
|
|
59961
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(DropdownItem, { tag: "div", toggle: false, className: "w-100", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "d-flex align-items-center justify-content-between w-100", children: [
|
|
60028
|
+
isShowPayout && /* @__PURE__ */ jsxRuntimeExports.jsx(DropdownItem, { tag: "div", toggle: false, className: "w-100", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "d-flex align-items-center justify-content-between w-100", children: [
|
|
59962
60029
|
/* @__PURE__ */ jsxRuntimeExports.jsx(FeatherIcon, { icon: "check-circle", className: "mr-2 text-info", size: 16 }),
|
|
59963
60030
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "mr-3 drop-label", children: "\u1794\u17B6\u1793\u1791\u17BC\u1791\u17B6\u178F\u17CB\u179A\u1784\u17D2\u179C\u17B6\u1793\u17CB" }),
|
|
59964
60031
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ml-auto", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -59974,7 +60041,7 @@ function MoreMenu(_a) {
|
|
|
59974
60041
|
) })
|
|
59975
60042
|
] }) })
|
|
59976
60043
|
] })
|
|
59977
|
-
] }) }),
|
|
60044
|
+
] })) }),
|
|
59978
60045
|
ticket && activeModal === "protest" && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
59979
60046
|
ProtestModal,
|
|
59980
60047
|
{
|
|
@@ -59993,6 +60060,7 @@ function MoreMenu(_a) {
|
|
|
59993
60060
|
object && activeModal === "remark" && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
59994
60061
|
RemarkModal,
|
|
59995
60062
|
{
|
|
60063
|
+
ticket,
|
|
59996
60064
|
object,
|
|
59997
60065
|
onClose: closeModal,
|
|
59998
60066
|
accessToken,
|
|
@@ -60014,7 +60082,11 @@ MoreMenu.propTypes = {
|
|
|
60014
60082
|
isSubmitting: PropTypes$2.bool,
|
|
60015
60083
|
onChange: PropTypes$2.func,
|
|
60016
60084
|
onSuccess: PropTypes$2.func,
|
|
60017
|
-
onError: PropTypes$2.func
|
|
60085
|
+
onError: PropTypes$2.func,
|
|
60086
|
+
DropdownButton: PropTypes$2.oneOfType([
|
|
60087
|
+
PropTypes$2.func,
|
|
60088
|
+
PropTypes$2.node
|
|
60089
|
+
])
|
|
60018
60090
|
};
|
|
60019
60091
|
|
|
60020
60092
|
exports.DeleteModal = DeleteModal;
|