@opexa/portal-components 0.0.13 → 0.0.15
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/components/TopWins/TopWins.js +1 -1
- package/dist/components/TopWins/TopWins.mjs +9 -8
- package/package.json +1 -1
- package/dist/dist/constants/index.js +0 -1
- package/dist/dist/constants/index.mjs +0 -27
- package/dist/dist/server/utils/prefetchTopWinsQuery.js +0 -1
- package/dist/dist/server/utils/prefetchTopWinsQuery.mjs +0 -22
- package/dist/dist/utils/getLocaleInfo.js +0 -1
- package/dist/dist/utils/getLocaleInfo.mjs +0 -397
- package/dist/dist/utils/getQueryClient.js +0 -1
- package/dist/dist/utils/getQueryClient.mjs +0 -23
- package/dist/dist/utils/isMobile.js +0 -1
- package/dist/dist/utils/isMobile.mjs +0 -7
- package/dist/dist/utils/parseDecimal.js +0 -1
- package/dist/dist/utils/parseDecimal.mjs +0 -8
- package/dist/dist/utils/queryKeys.js +0 -1
- package/dist/dist/utils/queryKeys.mjs +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime");require("@opexa/portal-sdk-core");require("../../
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime");require("@opexa/portal-sdk-core");require("../../constants/index.js");require("../../utils/capitalize.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");require("next/headers");const i=require("../../server/utils/prefetchTopWinsQuery.js"),u=require("./TopWins.client.js");async function n(e){return await i.prefetchTopWinsQuery(),r.jsx(u.TopWins__client,{...e})}exports.TopWins=n;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "@opexa/portal-sdk-core";
|
|
3
|
-
import "../../
|
|
4
|
-
import "../../
|
|
5
|
-
import "../../
|
|
6
|
-
import "../../
|
|
7
|
-
import "../../
|
|
3
|
+
import "../../constants/index.mjs";
|
|
4
|
+
import "../../utils/capitalize.mjs";
|
|
5
|
+
import "../../utils/parseDecimal.mjs";
|
|
6
|
+
import "../../utils/getLocaleInfo.mjs";
|
|
7
|
+
import "../../utils/getQueryClient.mjs";
|
|
8
|
+
import "../../utils/isMobile.mjs";
|
|
8
9
|
import "next/headers";
|
|
9
|
-
import { prefetchTopWinsQuery as i } from "../../
|
|
10
|
+
import { prefetchTopWinsQuery as i } from "../../server/utils/prefetchTopWinsQuery.mjs";
|
|
10
11
|
import { TopWins__client as t } from "./TopWins.client.mjs";
|
|
11
|
-
async function
|
|
12
|
+
async function x(o) {
|
|
12
13
|
return await i(), /* @__PURE__ */ r(t, { ...o });
|
|
13
14
|
}
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
+
x as TopWins
|
|
16
17
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod");e.z.string().min(1,'Environment variable "NEXT_PUBLIC_SITE_ID" must be 1 or more characters').max(32,'Environment variable "NEXT_PUBLIC_SITE_ID" must not be more than 32 characters').trim().parse(process.env.NEXT_PUBLIC_SITE_ID);e.z.string().min(1,'Environment variable "NEXT_PUBLIC_PLATFORM_ID" must be 1 or more characters').max(32,'Environment variable "NEXT_PUBLIC_PLATFORM_ID" must not be more than 32 characters').trim().parse(process.env.NEXT_PUBLIC_PLATFORM_ID);const r=e.z.string().min(4,'Environment variable "NEXT_PUBLIC_PLATFORM_CODE" must be at least 4 characters').max(8,'Environment variable "NEXT_PUBLIC_PLATFORM_CODE" must not be more than 8 characters').trim().parse(process.env.NEXT_PUBLIC_PLATFORM_CODE),t=e.z.enum(["production","development"]).catch("development").parse(process.env.NEXT_PUBLIC_ENVIRONMENT);e.z.any().transform(Boolean).catch(!1).parse(process.env.NEXT_PUBLIC_BYPASS_RECAPTCHA);exports.ENVIRONMENT=t;exports.PLATFORM_CODE=r;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { z as e } from "zod";
|
|
2
|
-
e.string().min(
|
|
3
|
-
1,
|
|
4
|
-
'Environment variable "NEXT_PUBLIC_SITE_ID" must be 1 or more characters'
|
|
5
|
-
).max(
|
|
6
|
-
32,
|
|
7
|
-
'Environment variable "NEXT_PUBLIC_SITE_ID" must not be more than 32 characters'
|
|
8
|
-
).trim().parse(process.env.NEXT_PUBLIC_SITE_ID);
|
|
9
|
-
e.string().min(
|
|
10
|
-
1,
|
|
11
|
-
'Environment variable "NEXT_PUBLIC_PLATFORM_ID" must be 1 or more characters'
|
|
12
|
-
).max(
|
|
13
|
-
32,
|
|
14
|
-
'Environment variable "NEXT_PUBLIC_PLATFORM_ID" must not be more than 32 characters'
|
|
15
|
-
).trim().parse(process.env.NEXT_PUBLIC_PLATFORM_ID);
|
|
16
|
-
const a = e.string().min(
|
|
17
|
-
4,
|
|
18
|
-
'Environment variable "NEXT_PUBLIC_PLATFORM_CODE" must be at least 4 characters'
|
|
19
|
-
).max(
|
|
20
|
-
8,
|
|
21
|
-
'Environment variable "NEXT_PUBLIC_PLATFORM_CODE" must not be more than 8 characters'
|
|
22
|
-
).trim().parse(process.env.NEXT_PUBLIC_PLATFORM_CODE), n = e.enum(["production", "development"]).catch("development").parse(process.env.NEXT_PUBLIC_ENVIRONMENT);
|
|
23
|
-
e.any().transform(Boolean).catch(!1).parse(process.env.NEXT_PUBLIC_BYPASS_RECAPTCHA);
|
|
24
|
-
export {
|
|
25
|
-
n as ENVIRONMENT,
|
|
26
|
-
a as PLATFORM_CODE
|
|
27
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@opexa/portal-sdk-core"),e=require("../../constants/index.js");require("../../utils/parseDecimal.js");require("../../utils/getLocaleInfo.js");const i=require("../../utils/getQueryClient.js");require("../../utils/isMobile.js");const n=require("../../utils/queryKeys.js"),u=async()=>{await i.getQueryClient().prefetchQuery({queryKey:n.getTopWinsQueryKey(),queryFn:async({signal:r})=>await t.getTopWins({signal:r,environment:e.ENVIRONMENT,headers:{"Platform-Code":e.PLATFORM_CODE}})})};exports.prefetchTopWinsQuery=u;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { getTopWins as e } from "@opexa/portal-sdk-core";
|
|
2
|
-
import { PLATFORM_CODE as t, ENVIRONMENT as o } from "../../constants/index.mjs";
|
|
3
|
-
import "../../utils/parseDecimal.mjs";
|
|
4
|
-
import "../../utils/getLocaleInfo.mjs";
|
|
5
|
-
import { getQueryClient as i } from "../../utils/getQueryClient.mjs";
|
|
6
|
-
import "../../utils/isMobile.mjs";
|
|
7
|
-
import { getTopWinsQueryKey as a } from "../../utils/queryKeys.mjs";
|
|
8
|
-
const u = async () => {
|
|
9
|
-
await i().prefetchQuery({
|
|
10
|
-
queryKey: a(),
|
|
11
|
-
queryFn: async ({ signal: r }) => await e({
|
|
12
|
-
signal: r,
|
|
13
|
-
environment: o,
|
|
14
|
-
headers: {
|
|
15
|
-
"Platform-Code": t
|
|
16
|
-
}
|
|
17
|
-
})
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
export {
|
|
21
|
-
u as prefetchTopWinsQuery
|
|
22
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),l=require("react");l.cache(a=>{switch(a.toLowerCase()){case"asia/jakarta":return{locale:"id-ID",timezone:"Asia/Jakarta",country:{name:"Indonesia",code:"IDN",flag:i},currency:{code:"IDR",name:"Indonesian Rupiah",symbol:"Rp",externalCode:"IDR"},mobileNumber:{areaCode:"+62",numOfDigits:10,example:"81"+"".padStart(8,"0"),pattern:/^(\+?62|0)?8\d{9}$/}};case"asia/jayapura":return{locale:"id-ID",timezone:"Asia/Jayapura",country:{code:"IDN",name:"Indonesia",flag:i},currency:{code:"IDR",name:"Indonesian Rupiah",symbol:"Rp",externalCode:"IDR"},mobileNumber:{areaCode:"+62",numOfDigits:10,example:"81"+"".padStart(8,"0"),pattern:/^(\+?62|0)?8\d{9}$/}};case"asia/makassar":return{locale:"id-ID",timezone:"Asia/Makassar",country:{code:"IDN",name:"Indonesia",flag:i},currency:{code:"IDR",name:"Indonesian Rupiah",symbol:"Rp",externalCode:"IDR"},mobileNumber:{areaCode:"+62",numOfDigits:10,example:"81"+"".padStart(8,"0"),pattern:/^(\+?62|0)?8\d{9}$/}};case"asia/kuala_lumpur":return{locale:"ms-MY",timezone:"Asia/Kuala_Lumpur",country:{name:"Malaysia",code:"MYS",flag:s},currency:{code:"MYR",name:"Malaysian Ringgit",symbol:"RM",externalCode:"MYR"},mobileNumber:{areaCode:"+60",numOfDigits:9,example:"12"+"".padStart(7,"0"),pattern:/^(\+?60|0)?1[0-9]{1}\d{7}$/}};case"asia/kolkata":return{locale:"en-IN",timezone:"Asia/Kolkata",country:{code:"IND",name:"India",flag:n},currency:{code:"INR",name:"Indian Rupee",symbol:"₹",externalCode:"INR"},mobileNumber:{areaCode:"+91",numOfDigits:10,example:"919"+"".padStart(7,"0"),pattern:/^(\+?91|0)?[789]\d{9}$/}};case"asia/ho_chi_minh":return{locale:"vi-VN",timezone:"Asia/Ho_Chi_Minh",country:{code:"VNM",name:"Vietnam",flag:r},currency:{code:"VND",name:"Vietnamese Dong",symbol:"₫",externalCode:"VIRTUAL"},mobileNumber:{areaCode:"+84",numOfDigits:9,example:"849"+"".padStart(7,"0"),pattern:/^(\+?84|0)?(3[2-9]|5[6|8|9]|7[0|6-9]|8[1-6|8|9]|9[0-9])\d{7}$/}};default:return{locale:"en-PH",timezone:"Asia/Manila",country:{code:"PHL",name:"Philippines",flag:t},currency:{code:"PHP",name:"Philippine Peso",symbol:"₱",externalCode:"PHP"},mobileNumber:{areaCode:"+63",numOfDigits:10,example:"919"+"".padStart(7,"0"),pattern:/^(\+?63|0)?9\d{9}$/}}}});const t=a=>e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a,children:[e.jsxs("g",{clipPath:"url(#clip0_4392_27540)",children:[e.jsx("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#F0F0F0"}),e.jsx("path",{d:"M12.0004 0V12L3.51514 20.4853C5.68671 22.6568 8.68671 24 12.0004 24C18.6278 24 24.0004 18.6274 24.0004 12C24.0004 5.37262 12.0004 0 12.0004 0Z",fill:"#D80027"}),e.jsx("path",{d:"M12.0004 0C8.68671 0 5.68671 1.34316 3.51514 3.51469C6.45936 6.45891 7.50453 7.50412 12.0004 12H24.0004C24.0004 5.37262 18.6278 0 12.0004 0Z",fill:"#0052B4"}),e.jsx("path",{d:"M8.21723 11.9998L6.75173 11.3104L7.53215 9.89111L5.94074 10.1956L5.73909 8.58789L4.63059 9.77027L3.52213 8.58789L3.32043 10.1956L1.72907 9.89106L2.50949 11.3104L1.04395 11.9998L2.50949 12.6891L1.72907 14.1085L3.32057 13.8041L3.52209 15.4117L4.63059 14.2293L5.73909 15.4117L5.94074 13.8041L7.53205 14.1085L6.75168 12.6892L8.21723 11.9998Z",fill:"#FFDA44"}),e.jsx("path",{d:"M3.20082 4.69519L3.68851 5.37689L4.48749 5.12382L3.98977 5.79825L4.47746 6.47996L3.68218 6.21507L3.18451 6.88946L3.19074 6.05133L2.39551 5.78639L3.19463 5.53332L3.20082 4.69519Z",fill:"#FFDA44"}),e.jsx("path",{d:"M3.20082 17.1095L3.68851 17.7912L4.48749 17.5381L3.98977 18.2126L4.47746 18.8943L3.68218 18.6294L3.18451 19.3038L3.19074 18.4656L2.39551 18.2007L3.19463 17.9476L3.20082 17.1095Z",fill:"#FFDA44"}),e.jsx("path",{d:"M10.1563 10.9032L9.66866 11.5849L8.86963 11.3317L9.36735 12.0062L8.87966 12.688L9.67494 12.423L10.1727 13.0974L10.1664 12.2593L10.9616 11.9944L10.1625 11.7413L10.1563 10.9032Z",fill:"#FFDA44"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_4392_27540",children:e.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),s=a=>e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a,children:[e.jsxs("g",{clipPath:"url(#clip0_4392_27547)",children:[e.jsx("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#F0F0F0"}),e.jsx("path",{d:"M11.4783 12.0002H24C24 10.9171 23.8556 9.86791 23.5866 8.86975H11.4783V12.0002Z",fill:"#D80027"}),e.jsx("path",{d:"M11.4783 5.73873H22.2387C21.5041 4.54004 20.565 3.48053 19.4698 2.60828H11.4783V5.73873Z",fill:"#D80027"}),e.jsx("path",{d:"M12.0001 24.0002C14.8243 24.0002 17.4201 23.024 19.47 21.3915H4.53027C6.58016 23.024 9.17596 24.0002 12.0001 24.0002Z",fill:"#D80027"}),e.jsx("path",{d:"M1.76146 18.2601H22.2389C22.8286 17.2978 23.2859 16.2459 23.5868 15.1296H0.413574C0.714371 16.2459 1.17173 17.2978 1.76146 18.2601Z",fill:"#D80027"}),e.jsx("path",{d:"M12 12C12 5.37262 12 4.59131 12 0C5.37262 0 0 5.37262 0 12H12Z",fill:"#0052B4"}),e.jsx("path",{d:"M7.98001 10.2709C6.34117 10.2709 5.01263 8.94229 5.01263 7.30349C5.01263 5.6647 6.34121 4.33612 7.98001 4.33612C8.491 4.33612 8.97179 4.46535 9.39156 4.69279C8.73306 4.04887 7.8325 3.65137 6.8387 3.65137C4.82171 3.65137 3.18652 5.28651 3.18652 7.30354C3.18652 9.32057 4.82171 10.9557 6.8387 10.9557C7.8325 10.9557 8.73306 10.5582 9.39156 9.91429C8.97179 10.1416 8.49104 10.2709 7.98001 10.2709Z",fill:"#FFDA44"}),e.jsx("path",{d:"M8.81671 5.21729L9.34354 6.31894L10.5333 6.04407L10.0005 7.14277L10.9573 7.90153L9.76602 8.17008L9.76935 9.39122L8.81671 8.62725L7.86402 9.39122L7.86731 8.17008L6.67603 7.90153L7.63284 7.14277L7.10001 6.04407L8.28984 6.31894L8.81671 5.21729Z",fill:"#FFDA44"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_4392_27547",children:e.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),n=a=>e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a,children:[e.jsxs("g",{clipPath:"url(#clip0_4392_27553)",children:[e.jsx("path",{d:"M1.19023 6.78213C0.427387 8.35976 -0.000488281 10.1296 -0.000488281 11.9995C-0.000488281 13.8694 0.427387 15.6393 1.19023 17.2169L11.9995 18.2604L22.8088 17.2169C23.5716 15.6393 23.9995 13.8694 23.9995 11.9995C23.9995 10.1296 23.5716 8.35976 22.8088 6.78213L11.9995 5.73865L1.19023 6.78213Z",fill:"#F0F0F0"}),e.jsx("path",{d:"M1.19092 17.2183C3.13182 21.2322 7.24225 24.0009 11.9998 24.0009C16.7573 24.0009 20.8677 21.2322 22.8086 17.2183H1.19092Z",fill:"#6DA544"}),e.jsx("path",{d:"M1.19092 6.78238H22.8086C20.8677 2.76843 16.7573 -0.000244141 11.9998 -0.000244141C7.24229 -0.000244141 3.13182 2.76843 1.19092 6.78238Z",fill:"#FF9811"}),e.jsx("path",{d:"M12.0001 16.1742C14.3052 16.1742 16.174 14.3055 16.174 12.0003C16.174 9.69513 14.3052 7.82642 12.0001 7.82642C9.69489 7.82642 7.82617 9.69513 7.82617 12.0003C7.82617 14.3055 9.69489 16.1742 12.0001 16.1742Z",fill:"#FF9811"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_4392_27553",children:e.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),i=a=>e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a,children:[e.jsxs("g",{clipPath:"url(#clip0_4392_27559)",children:[e.jsx("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#F0F0F0"}),e.jsx("path",{d:"M0 12C0 5.37262 5.37262 0 12 0C18.6274 0 24 5.37262 24 12",fill:"#A2001D"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_4392_27559",children:e.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),r=a=>e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a,children:[e.jsxs("g",{clipPath:"url(#clip0_10544_106556)",children:[e.jsx("path",{d:"M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20Z",fill:"#D80027"}),e.jsx("path",{d:"M10.0003 5.2168L11.0795 8.53825H14.5719L11.7464 10.591L12.8257 13.9125L10.0003 11.8597L7.17488 13.9125L8.2541 10.591L5.42871 8.53825H8.92105L10.0003 5.2168Z",fill:"#FFDA44"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_10544_106556",children:e.jsx("rect",{width:"20",height:"20",fill:"white"})})})]});
|
|
@@ -1,397 +0,0 @@
|
|
|
1
|
-
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { cache as t } from "react";
|
|
3
|
-
t((a) => {
|
|
4
|
-
switch (a.toLowerCase()) {
|
|
5
|
-
case "asia/jakarta":
|
|
6
|
-
return {
|
|
7
|
-
locale: "id-ID",
|
|
8
|
-
timezone: "Asia/Jakarta",
|
|
9
|
-
country: {
|
|
10
|
-
name: "Indonesia",
|
|
11
|
-
code: "IDN",
|
|
12
|
-
flag: l
|
|
13
|
-
},
|
|
14
|
-
currency: {
|
|
15
|
-
code: "IDR",
|
|
16
|
-
name: "Indonesian Rupiah",
|
|
17
|
-
symbol: "Rp",
|
|
18
|
-
externalCode: "IDR"
|
|
19
|
-
},
|
|
20
|
-
mobileNumber: {
|
|
21
|
-
areaCode: "+62",
|
|
22
|
-
numOfDigits: 10,
|
|
23
|
-
example: "81" + "".padStart(8, "0"),
|
|
24
|
-
pattern: /^(\+?62|0)?8\d{9}$/
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
case "asia/jayapura":
|
|
28
|
-
return {
|
|
29
|
-
locale: "id-ID",
|
|
30
|
-
timezone: "Asia/Jayapura",
|
|
31
|
-
country: {
|
|
32
|
-
code: "IDN",
|
|
33
|
-
name: "Indonesia",
|
|
34
|
-
flag: l
|
|
35
|
-
},
|
|
36
|
-
currency: {
|
|
37
|
-
code: "IDR",
|
|
38
|
-
name: "Indonesian Rupiah",
|
|
39
|
-
symbol: "Rp",
|
|
40
|
-
externalCode: "IDR"
|
|
41
|
-
},
|
|
42
|
-
mobileNumber: {
|
|
43
|
-
areaCode: "+62",
|
|
44
|
-
numOfDigits: 10,
|
|
45
|
-
example: "81" + "".padStart(8, "0"),
|
|
46
|
-
pattern: /^(\+?62|0)?8\d{9}$/
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
case "asia/makassar":
|
|
50
|
-
return {
|
|
51
|
-
locale: "id-ID",
|
|
52
|
-
timezone: "Asia/Makassar",
|
|
53
|
-
country: {
|
|
54
|
-
code: "IDN",
|
|
55
|
-
name: "Indonesia",
|
|
56
|
-
flag: l
|
|
57
|
-
},
|
|
58
|
-
currency: {
|
|
59
|
-
code: "IDR",
|
|
60
|
-
name: "Indonesian Rupiah",
|
|
61
|
-
symbol: "Rp",
|
|
62
|
-
externalCode: "IDR"
|
|
63
|
-
},
|
|
64
|
-
mobileNumber: {
|
|
65
|
-
areaCode: "+62",
|
|
66
|
-
numOfDigits: 10,
|
|
67
|
-
example: "81" + "".padStart(8, "0"),
|
|
68
|
-
pattern: /^(\+?62|0)?8\d{9}$/
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
case "asia/kuala_lumpur":
|
|
72
|
-
return {
|
|
73
|
-
locale: "ms-MY",
|
|
74
|
-
timezone: "Asia/Kuala_Lumpur",
|
|
75
|
-
country: {
|
|
76
|
-
name: "Malaysia",
|
|
77
|
-
code: "MYS",
|
|
78
|
-
flag: r
|
|
79
|
-
},
|
|
80
|
-
currency: {
|
|
81
|
-
code: "MYR",
|
|
82
|
-
name: "Malaysian Ringgit",
|
|
83
|
-
symbol: "RM",
|
|
84
|
-
externalCode: "MYR"
|
|
85
|
-
},
|
|
86
|
-
mobileNumber: {
|
|
87
|
-
areaCode: "+60",
|
|
88
|
-
numOfDigits: 9,
|
|
89
|
-
example: "12" + "".padStart(7, "0"),
|
|
90
|
-
pattern: /^(\+?60|0)?1[0-9]{1}\d{7}$/
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
case "asia/kolkata":
|
|
94
|
-
return {
|
|
95
|
-
locale: "en-IN",
|
|
96
|
-
timezone: "Asia/Kolkata",
|
|
97
|
-
country: {
|
|
98
|
-
code: "IND",
|
|
99
|
-
name: "India",
|
|
100
|
-
flag: d
|
|
101
|
-
},
|
|
102
|
-
currency: {
|
|
103
|
-
code: "INR",
|
|
104
|
-
name: "Indian Rupee",
|
|
105
|
-
symbol: "₹",
|
|
106
|
-
externalCode: "INR"
|
|
107
|
-
},
|
|
108
|
-
mobileNumber: {
|
|
109
|
-
areaCode: "+91",
|
|
110
|
-
numOfDigits: 10,
|
|
111
|
-
example: "919" + "".padStart(7, "0"),
|
|
112
|
-
pattern: /^(\+?91|0)?[789]\d{9}$/
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
case "asia/ho_chi_minh":
|
|
116
|
-
return {
|
|
117
|
-
locale: "vi-VN",
|
|
118
|
-
timezone: "Asia/Ho_Chi_Minh",
|
|
119
|
-
country: {
|
|
120
|
-
code: "VNM",
|
|
121
|
-
name: "Vietnam",
|
|
122
|
-
flag: h
|
|
123
|
-
},
|
|
124
|
-
currency: {
|
|
125
|
-
code: "VND",
|
|
126
|
-
name: "Vietnamese Dong",
|
|
127
|
-
symbol: "₫",
|
|
128
|
-
externalCode: "VIRTUAL"
|
|
129
|
-
},
|
|
130
|
-
mobileNumber: {
|
|
131
|
-
areaCode: "+84",
|
|
132
|
-
numOfDigits: 9,
|
|
133
|
-
example: "849" + "".padStart(7, "0"),
|
|
134
|
-
pattern: /^(\+?84|0)?(3[2-9]|5[6|8|9]|7[0|6-9]|8[1-6|8|9]|9[0-9])\d{7}$/
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
default:
|
|
138
|
-
return {
|
|
139
|
-
locale: "en-PH",
|
|
140
|
-
timezone: "Asia/Manila",
|
|
141
|
-
country: {
|
|
142
|
-
code: "PHL",
|
|
143
|
-
name: "Philippines",
|
|
144
|
-
flag: n
|
|
145
|
-
},
|
|
146
|
-
currency: {
|
|
147
|
-
code: "PHP",
|
|
148
|
-
name: "Philippine Peso",
|
|
149
|
-
symbol: "₱",
|
|
150
|
-
externalCode: "PHP"
|
|
151
|
-
},
|
|
152
|
-
mobileNumber: {
|
|
153
|
-
areaCode: "+63",
|
|
154
|
-
numOfDigits: 10,
|
|
155
|
-
example: "919" + "".padStart(7, "0"),
|
|
156
|
-
pattern: /^(\+?63|0)?9\d{9}$/
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
const n = (a) => /* @__PURE__ */ i(
|
|
162
|
-
"svg",
|
|
163
|
-
{
|
|
164
|
-
width: "24",
|
|
165
|
-
height: "24",
|
|
166
|
-
viewBox: "0 0 24 24",
|
|
167
|
-
fill: "none",
|
|
168
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
169
|
-
...a,
|
|
170
|
-
children: [
|
|
171
|
-
/* @__PURE__ */ i("g", { clipPath: "url(#clip0_4392_27540)", children: [
|
|
172
|
-
/* @__PURE__ */ e(
|
|
173
|
-
"path",
|
|
174
|
-
{
|
|
175
|
-
d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",
|
|
176
|
-
fill: "#F0F0F0"
|
|
177
|
-
}
|
|
178
|
-
),
|
|
179
|
-
/* @__PURE__ */ e(
|
|
180
|
-
"path",
|
|
181
|
-
{
|
|
182
|
-
d: "M12.0004 0V12L3.51514 20.4853C5.68671 22.6568 8.68671 24 12.0004 24C18.6278 24 24.0004 18.6274 24.0004 12C24.0004 5.37262 12.0004 0 12.0004 0Z",
|
|
183
|
-
fill: "#D80027"
|
|
184
|
-
}
|
|
185
|
-
),
|
|
186
|
-
/* @__PURE__ */ e(
|
|
187
|
-
"path",
|
|
188
|
-
{
|
|
189
|
-
d: "M12.0004 0C8.68671 0 5.68671 1.34316 3.51514 3.51469C6.45936 6.45891 7.50453 7.50412 12.0004 12H24.0004C24.0004 5.37262 18.6278 0 12.0004 0Z",
|
|
190
|
-
fill: "#0052B4"
|
|
191
|
-
}
|
|
192
|
-
),
|
|
193
|
-
/* @__PURE__ */ e(
|
|
194
|
-
"path",
|
|
195
|
-
{
|
|
196
|
-
d: "M8.21723 11.9998L6.75173 11.3104L7.53215 9.89111L5.94074 10.1956L5.73909 8.58789L4.63059 9.77027L3.52213 8.58789L3.32043 10.1956L1.72907 9.89106L2.50949 11.3104L1.04395 11.9998L2.50949 12.6891L1.72907 14.1085L3.32057 13.8041L3.52209 15.4117L4.63059 14.2293L5.73909 15.4117L5.94074 13.8041L7.53205 14.1085L6.75168 12.6892L8.21723 11.9998Z",
|
|
197
|
-
fill: "#FFDA44"
|
|
198
|
-
}
|
|
199
|
-
),
|
|
200
|
-
/* @__PURE__ */ e(
|
|
201
|
-
"path",
|
|
202
|
-
{
|
|
203
|
-
d: "M3.20082 4.69519L3.68851 5.37689L4.48749 5.12382L3.98977 5.79825L4.47746 6.47996L3.68218 6.21507L3.18451 6.88946L3.19074 6.05133L2.39551 5.78639L3.19463 5.53332L3.20082 4.69519Z",
|
|
204
|
-
fill: "#FFDA44"
|
|
205
|
-
}
|
|
206
|
-
),
|
|
207
|
-
/* @__PURE__ */ e(
|
|
208
|
-
"path",
|
|
209
|
-
{
|
|
210
|
-
d: "M3.20082 17.1095L3.68851 17.7912L4.48749 17.5381L3.98977 18.2126L4.47746 18.8943L3.68218 18.6294L3.18451 19.3038L3.19074 18.4656L2.39551 18.2007L3.19463 17.9476L3.20082 17.1095Z",
|
|
211
|
-
fill: "#FFDA44"
|
|
212
|
-
}
|
|
213
|
-
),
|
|
214
|
-
/* @__PURE__ */ e(
|
|
215
|
-
"path",
|
|
216
|
-
{
|
|
217
|
-
d: "M10.1563 10.9032L9.66866 11.5849L8.86963 11.3317L9.36735 12.0062L8.87966 12.688L9.67494 12.423L10.1727 13.0974L10.1664 12.2593L10.9616 11.9944L10.1625 11.7413L10.1563 10.9032Z",
|
|
218
|
-
fill: "#FFDA44"
|
|
219
|
-
}
|
|
220
|
-
)
|
|
221
|
-
] }),
|
|
222
|
-
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "clip0_4392_27540", children: /* @__PURE__ */ e("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
223
|
-
]
|
|
224
|
-
}
|
|
225
|
-
), r = (a) => /* @__PURE__ */ i(
|
|
226
|
-
"svg",
|
|
227
|
-
{
|
|
228
|
-
width: "24",
|
|
229
|
-
height: "24",
|
|
230
|
-
viewBox: "0 0 24 24",
|
|
231
|
-
fill: "none",
|
|
232
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
233
|
-
...a,
|
|
234
|
-
children: [
|
|
235
|
-
/* @__PURE__ */ i("g", { clipPath: "url(#clip0_4392_27547)", children: [
|
|
236
|
-
/* @__PURE__ */ e(
|
|
237
|
-
"path",
|
|
238
|
-
{
|
|
239
|
-
d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",
|
|
240
|
-
fill: "#F0F0F0"
|
|
241
|
-
}
|
|
242
|
-
),
|
|
243
|
-
/* @__PURE__ */ e(
|
|
244
|
-
"path",
|
|
245
|
-
{
|
|
246
|
-
d: "M11.4783 12.0002H24C24 10.9171 23.8556 9.86791 23.5866 8.86975H11.4783V12.0002Z",
|
|
247
|
-
fill: "#D80027"
|
|
248
|
-
}
|
|
249
|
-
),
|
|
250
|
-
/* @__PURE__ */ e(
|
|
251
|
-
"path",
|
|
252
|
-
{
|
|
253
|
-
d: "M11.4783 5.73873H22.2387C21.5041 4.54004 20.565 3.48053 19.4698 2.60828H11.4783V5.73873Z",
|
|
254
|
-
fill: "#D80027"
|
|
255
|
-
}
|
|
256
|
-
),
|
|
257
|
-
/* @__PURE__ */ e(
|
|
258
|
-
"path",
|
|
259
|
-
{
|
|
260
|
-
d: "M12.0001 24.0002C14.8243 24.0002 17.4201 23.024 19.47 21.3915H4.53027C6.58016 23.024 9.17596 24.0002 12.0001 24.0002Z",
|
|
261
|
-
fill: "#D80027"
|
|
262
|
-
}
|
|
263
|
-
),
|
|
264
|
-
/* @__PURE__ */ e(
|
|
265
|
-
"path",
|
|
266
|
-
{
|
|
267
|
-
d: "M1.76146 18.2601H22.2389C22.8286 17.2978 23.2859 16.2459 23.5868 15.1296H0.413574C0.714371 16.2459 1.17173 17.2978 1.76146 18.2601Z",
|
|
268
|
-
fill: "#D80027"
|
|
269
|
-
}
|
|
270
|
-
),
|
|
271
|
-
/* @__PURE__ */ e(
|
|
272
|
-
"path",
|
|
273
|
-
{
|
|
274
|
-
d: "M12 12C12 5.37262 12 4.59131 12 0C5.37262 0 0 5.37262 0 12H12Z",
|
|
275
|
-
fill: "#0052B4"
|
|
276
|
-
}
|
|
277
|
-
),
|
|
278
|
-
/* @__PURE__ */ e(
|
|
279
|
-
"path",
|
|
280
|
-
{
|
|
281
|
-
d: "M7.98001 10.2709C6.34117 10.2709 5.01263 8.94229 5.01263 7.30349C5.01263 5.6647 6.34121 4.33612 7.98001 4.33612C8.491 4.33612 8.97179 4.46535 9.39156 4.69279C8.73306 4.04887 7.8325 3.65137 6.8387 3.65137C4.82171 3.65137 3.18652 5.28651 3.18652 7.30354C3.18652 9.32057 4.82171 10.9557 6.8387 10.9557C7.8325 10.9557 8.73306 10.5582 9.39156 9.91429C8.97179 10.1416 8.49104 10.2709 7.98001 10.2709Z",
|
|
282
|
-
fill: "#FFDA44"
|
|
283
|
-
}
|
|
284
|
-
),
|
|
285
|
-
/* @__PURE__ */ e(
|
|
286
|
-
"path",
|
|
287
|
-
{
|
|
288
|
-
d: "M8.81671 5.21729L9.34354 6.31894L10.5333 6.04407L10.0005 7.14277L10.9573 7.90153L9.76602 8.17008L9.76935 9.39122L8.81671 8.62725L7.86402 9.39122L7.86731 8.17008L6.67603 7.90153L7.63284 7.14277L7.10001 6.04407L8.28984 6.31894L8.81671 5.21729Z",
|
|
289
|
-
fill: "#FFDA44"
|
|
290
|
-
}
|
|
291
|
-
)
|
|
292
|
-
] }),
|
|
293
|
-
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "clip0_4392_27547", children: /* @__PURE__ */ e("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
294
|
-
]
|
|
295
|
-
}
|
|
296
|
-
), d = (a) => /* @__PURE__ */ i(
|
|
297
|
-
"svg",
|
|
298
|
-
{
|
|
299
|
-
width: "24",
|
|
300
|
-
height: "24",
|
|
301
|
-
viewBox: "0 0 24 24",
|
|
302
|
-
fill: "none",
|
|
303
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
304
|
-
...a,
|
|
305
|
-
children: [
|
|
306
|
-
/* @__PURE__ */ i("g", { clipPath: "url(#clip0_4392_27553)", children: [
|
|
307
|
-
/* @__PURE__ */ e(
|
|
308
|
-
"path",
|
|
309
|
-
{
|
|
310
|
-
d: "M1.19023 6.78213C0.427387 8.35976 -0.000488281 10.1296 -0.000488281 11.9995C-0.000488281 13.8694 0.427387 15.6393 1.19023 17.2169L11.9995 18.2604L22.8088 17.2169C23.5716 15.6393 23.9995 13.8694 23.9995 11.9995C23.9995 10.1296 23.5716 8.35976 22.8088 6.78213L11.9995 5.73865L1.19023 6.78213Z",
|
|
311
|
-
fill: "#F0F0F0"
|
|
312
|
-
}
|
|
313
|
-
),
|
|
314
|
-
/* @__PURE__ */ e(
|
|
315
|
-
"path",
|
|
316
|
-
{
|
|
317
|
-
d: "M1.19092 17.2183C3.13182 21.2322 7.24225 24.0009 11.9998 24.0009C16.7573 24.0009 20.8677 21.2322 22.8086 17.2183H1.19092Z",
|
|
318
|
-
fill: "#6DA544"
|
|
319
|
-
}
|
|
320
|
-
),
|
|
321
|
-
/* @__PURE__ */ e(
|
|
322
|
-
"path",
|
|
323
|
-
{
|
|
324
|
-
d: "M1.19092 6.78238H22.8086C20.8677 2.76843 16.7573 -0.000244141 11.9998 -0.000244141C7.24229 -0.000244141 3.13182 2.76843 1.19092 6.78238Z",
|
|
325
|
-
fill: "#FF9811"
|
|
326
|
-
}
|
|
327
|
-
),
|
|
328
|
-
/* @__PURE__ */ e(
|
|
329
|
-
"path",
|
|
330
|
-
{
|
|
331
|
-
d: "M12.0001 16.1742C14.3052 16.1742 16.174 14.3055 16.174 12.0003C16.174 9.69513 14.3052 7.82642 12.0001 7.82642C9.69489 7.82642 7.82617 9.69513 7.82617 12.0003C7.82617 14.3055 9.69489 16.1742 12.0001 16.1742Z",
|
|
332
|
-
fill: "#FF9811"
|
|
333
|
-
}
|
|
334
|
-
)
|
|
335
|
-
] }),
|
|
336
|
-
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "clip0_4392_27553", children: /* @__PURE__ */ e("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
337
|
-
]
|
|
338
|
-
}
|
|
339
|
-
), l = (a) => /* @__PURE__ */ i(
|
|
340
|
-
"svg",
|
|
341
|
-
{
|
|
342
|
-
width: "24",
|
|
343
|
-
height: "24",
|
|
344
|
-
viewBox: "0 0 24 24",
|
|
345
|
-
fill: "none",
|
|
346
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
347
|
-
...a,
|
|
348
|
-
children: [
|
|
349
|
-
/* @__PURE__ */ i("g", { clipPath: "url(#clip0_4392_27559)", children: [
|
|
350
|
-
/* @__PURE__ */ e(
|
|
351
|
-
"path",
|
|
352
|
-
{
|
|
353
|
-
d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",
|
|
354
|
-
fill: "#F0F0F0"
|
|
355
|
-
}
|
|
356
|
-
),
|
|
357
|
-
/* @__PURE__ */ e(
|
|
358
|
-
"path",
|
|
359
|
-
{
|
|
360
|
-
d: "M0 12C0 5.37262 5.37262 0 12 0C18.6274 0 24 5.37262 24 12",
|
|
361
|
-
fill: "#A2001D"
|
|
362
|
-
}
|
|
363
|
-
)
|
|
364
|
-
] }),
|
|
365
|
-
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "clip0_4392_27559", children: /* @__PURE__ */ e("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
366
|
-
]
|
|
367
|
-
}
|
|
368
|
-
), h = (a) => /* @__PURE__ */ i(
|
|
369
|
-
"svg",
|
|
370
|
-
{
|
|
371
|
-
width: "24",
|
|
372
|
-
height: "24",
|
|
373
|
-
viewBox: "0 0 20 20",
|
|
374
|
-
fill: "none",
|
|
375
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
376
|
-
...a,
|
|
377
|
-
children: [
|
|
378
|
-
/* @__PURE__ */ i("g", { clipPath: "url(#clip0_10544_106556)", children: [
|
|
379
|
-
/* @__PURE__ */ e(
|
|
380
|
-
"path",
|
|
381
|
-
{
|
|
382
|
-
d: "M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20Z",
|
|
383
|
-
fill: "#D80027"
|
|
384
|
-
}
|
|
385
|
-
),
|
|
386
|
-
/* @__PURE__ */ e(
|
|
387
|
-
"path",
|
|
388
|
-
{
|
|
389
|
-
d: "M10.0003 5.2168L11.0795 8.53825H14.5719L11.7464 10.591L12.8257 13.9125L10.0003 11.8597L7.17488 13.9125L8.2541 10.591L5.42871 8.53825H8.92105L10.0003 5.2168Z",
|
|
390
|
-
fill: "#FFDA44"
|
|
391
|
-
}
|
|
392
|
-
)
|
|
393
|
-
] }),
|
|
394
|
-
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "clip0_10544_106556", children: /* @__PURE__ */ e("rect", { width: "20", height: "20", fill: "white" }) }) })
|
|
395
|
-
]
|
|
396
|
-
}
|
|
397
|
-
);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@tanstack/react-query"),n=require("react");function t(){return new r.QueryClient({defaultOptions:{queries:{staleTime:1e3*60*10,gcTime:1e3*60*60*12,refetchOnMount:!0,refetchOnReconnect:!0,refetchOnWindowFocus:!0,networkMode:"always"}}})}let e;const c=n.cache(()=>r.isServer?t():(e||(e=t()),e));exports.getQueryClient=c;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { isServer as r, QueryClient as n } from "@tanstack/react-query";
|
|
2
|
-
import { cache as o } from "react";
|
|
3
|
-
function t() {
|
|
4
|
-
return new n({
|
|
5
|
-
defaultOptions: {
|
|
6
|
-
queries: {
|
|
7
|
-
staleTime: 1e3 * 60 * 10,
|
|
8
|
-
// 10mins
|
|
9
|
-
gcTime: 1e3 * 60 * 60 * 12,
|
|
10
|
-
// 12hr
|
|
11
|
-
refetchOnMount: !0,
|
|
12
|
-
refetchOnReconnect: !0,
|
|
13
|
-
refetchOnWindowFocus: !0,
|
|
14
|
-
networkMode: "always"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
let e;
|
|
20
|
-
const u = o(() => r ? t() : (e || (e = t()), e));
|
|
21
|
-
export {
|
|
22
|
-
u as getQueryClient
|
|
23
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("is-mobile"),i=require("react");i.cache(e=>t.isMobile({tablet:!0,featureDetect:typeof window<"u",...e}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("zod");n.z.union([n.z.number(),n.z.string().transform(t=>{const l=parseFloat(t);return isNaN(l)?null:l})]).nullable().optional().default(null).catch(null);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=()=>["queries/topWins"];exports.getTopWinsQueryKey=e;
|