cexp-gamification 1.0.1-test.1 → 1.0.1-test.2
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/README.md +63 -63
- package/dist/cexp-web-sdk.js +2 -2
- package/package.json +37 -37
package/README.md
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
# Gamification SDK
|
|
2
|
-
|
|
3
|
-
A comprehensive, plug-and-play solution for integrating engagement campaigns into your website. This SDK automatically fetches your pre-configured campaign template (Lucky Wheel, Flip Cards, etc.) based on your Client ID and handles the entire user lifecycle from eligibility checks to reward distribution.
|
|
4
|
-
|
|
5
|
-
## 📖 Overview
|
|
6
|
-
|
|
7
|
-
This SDK is designed for **instant integration**. You do not need to code the game logic or design the UI.
|
|
8
|
-
|
|
9
|
-
For more information check out our [website](https://cexp.fpt.com/)
|
|
10
|
-
|
|
11
|
-
1. **Dynamic Loading:** The SDK receives your unique `Client ID`, connects to our servers, and retrieves the specific game template configured for your current campaign.
|
|
12
|
-
2. **Eligibility Management:** Automatically checks if a user has already participated to prevent spam and duplicate entries.
|
|
13
|
-
3. **Lead Generation:** securely collects user information (Name, Phone, etc.) and synchronizes it with your CRM/Data backend.
|
|
14
|
-
|
|
15
|
-
## 📦 Installation
|
|
16
|
-
|
|
17
|
-
Include the SDK script directly into your HTML page (usually before the closing `</body>` tag).
|
|
18
|
-
|
|
19
|
-
```html
|
|
20
|
-
<script src="https://cdn.jsdelivr.net/npm/cexp-gamification@1.0.1-beta.0/dist/cexp-web-sdk.js"></script>
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## 🚀 Usage
|
|
24
|
-
|
|
25
|
-
Once the script is loaded, the SDK initializes automatically. It will:
|
|
26
|
-
|
|
27
|
-
1. Identify the user context.
|
|
28
|
-
2. Check the campaign configuration associated with your Account.
|
|
29
|
-
3. Render the appropriate engagement module (e.g., a Trigger Button or Pop-up) if the user is eligible to play.
|
|
30
|
-
|
|
31
|
-
### Configuration
|
|
32
|
-
|
|
33
|
-
The SDK operates based on the `clientId` provided during the build or initialization process. It fetches the following configurations remotely:
|
|
34
|
-
|
|
35
|
-
- **Game Type:** (e.g., Wheel, Flip Card, Scratch Card) determined by your backend settings.
|
|
36
|
-
- **Visual Assets:** Background images, icons, and colors.
|
|
37
|
-
- **Rewards & Logic:** Winning probabilities and voucher codes.
|
|
38
|
-
|
|
39
|
-
## ⚠️ Important Notes
|
|
40
|
-
|
|
41
|
-
### 🔒 No Code Modification Required
|
|
42
|
-
|
|
43
|
-
This package is provided as a **compiled, ready-to-use solution**.
|
|
44
|
-
|
|
45
|
-
- **Do not** attempt to decompile, modify, or inject custom CSS/JS into the SDK wrapper.
|
|
46
|
-
- The UI, game logic, and form validation are managed centrally via your Campaign Dashboard to ensure security and data integrity.
|
|
47
|
-
|
|
48
|
-
### 📞 Customization & Support
|
|
49
|
-
|
|
50
|
-
This SDK supports standard campaign templates.
|
|
51
|
-
|
|
52
|
-
**Have a specific requirement?**
|
|
53
|
-
If you need a custom game type, specialized form fields, or a unique integration flow that is not currently supported by your template configuration:
|
|
54
|
-
|
|
55
|
-
> **Please contact our Sales or Customer Success Team.**
|
|
56
|
-
> Custom developments require a tailored implementation plan and cannot be achieved by modifying this client-side package.
|
|
57
|
-
|
|
58
|
-
---
|
|
59
|
-
|
|
60
|
-
## 📄 License
|
|
61
|
-
|
|
62
|
-
Property of [FPT corporation]. All rights reserved.
|
|
63
|
-
Unauthorized copying or modification of this file is strictly prohibited.
|
|
1
|
+
# Gamification SDK
|
|
2
|
+
|
|
3
|
+
A comprehensive, plug-and-play solution for integrating engagement campaigns into your website. This SDK automatically fetches your pre-configured campaign template (Lucky Wheel, Flip Cards, etc.) based on your Client ID and handles the entire user lifecycle from eligibility checks to reward distribution.
|
|
4
|
+
|
|
5
|
+
## 📖 Overview
|
|
6
|
+
|
|
7
|
+
This SDK is designed for **instant integration**. You do not need to code the game logic or design the UI.
|
|
8
|
+
|
|
9
|
+
For more information check out our [website](https://cexp.fpt.com/)
|
|
10
|
+
|
|
11
|
+
1. **Dynamic Loading:** The SDK receives your unique `Client ID`, connects to our servers, and retrieves the specific game template configured for your current campaign.
|
|
12
|
+
2. **Eligibility Management:** Automatically checks if a user has already participated to prevent spam and duplicate entries.
|
|
13
|
+
3. **Lead Generation:** securely collects user information (Name, Phone, etc.) and synchronizes it with your CRM/Data backend.
|
|
14
|
+
|
|
15
|
+
## 📦 Installation
|
|
16
|
+
|
|
17
|
+
Include the SDK script directly into your HTML page (usually before the closing `</body>` tag).
|
|
18
|
+
|
|
19
|
+
```html
|
|
20
|
+
<script src="https://cdn.jsdelivr.net/npm/cexp-gamification@1.0.1-beta.0/dist/cexp-web-sdk.js"></script>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## 🚀 Usage
|
|
24
|
+
|
|
25
|
+
Once the script is loaded, the SDK initializes automatically. It will:
|
|
26
|
+
|
|
27
|
+
1. Identify the user context.
|
|
28
|
+
2. Check the campaign configuration associated with your Account.
|
|
29
|
+
3. Render the appropriate engagement module (e.g., a Trigger Button or Pop-up) if the user is eligible to play.
|
|
30
|
+
|
|
31
|
+
### Configuration
|
|
32
|
+
|
|
33
|
+
The SDK operates based on the `clientId` provided during the build or initialization process. It fetches the following configurations remotely:
|
|
34
|
+
|
|
35
|
+
- **Game Type:** (e.g., Wheel, Flip Card, Scratch Card) determined by your backend settings.
|
|
36
|
+
- **Visual Assets:** Background images, icons, and colors.
|
|
37
|
+
- **Rewards & Logic:** Winning probabilities and voucher codes.
|
|
38
|
+
|
|
39
|
+
## ⚠️ Important Notes
|
|
40
|
+
|
|
41
|
+
### 🔒 No Code Modification Required
|
|
42
|
+
|
|
43
|
+
This package is provided as a **compiled, ready-to-use solution**.
|
|
44
|
+
|
|
45
|
+
- **Do not** attempt to decompile, modify, or inject custom CSS/JS into the SDK wrapper.
|
|
46
|
+
- The UI, game logic, and form validation are managed centrally via your Campaign Dashboard to ensure security and data integrity.
|
|
47
|
+
|
|
48
|
+
### 📞 Customization & Support
|
|
49
|
+
|
|
50
|
+
This SDK supports standard campaign templates.
|
|
51
|
+
|
|
52
|
+
**Have a specific requirement?**
|
|
53
|
+
If you need a custom game type, specialized form fields, or a unique integration flow that is not currently supported by your template configuration:
|
|
54
|
+
|
|
55
|
+
> **Please contact our Sales or Customer Success Team.**
|
|
56
|
+
> Custom developments require a tailored implementation plan and cannot be achieved by modifying this client-side package.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## 📄 License
|
|
61
|
+
|
|
62
|
+
Property of [FPT corporation]. All rights reserved.
|
|
63
|
+
Unauthorized copying or modification of this file is strictly prohibited.
|
package/dist/cexp-web-sdk.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var
|
|
2
|
-
!function(t){"function"==typeof define&&define.amd?define(t):t()}(function(){"use strict";!function(t){for(var n=o,e=t();;)try{if(993173===-parseInt(n(268))/1+parseInt(n(270))/2*(-parseInt(n(264))/3)+parseInt(n(267))/4+parseInt(n(266))/5*(-parseInt(n(274))/6)+-parseInt(n(271))/7*(-parseInt(n(273))/8)+-parseInt(n(278))/9+parseInt(n(276))/10)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(s);var t,n,e,r=(t=r||{},e={mJvZL:(n=o)(275),HHqzp:n(265),nuTiC:"desktop"},t[e[n(272)]]=e[n(272)],t[e[n(269)]]=e.HHqzp,t[n(277)]=e[n(263)],t);function o(t,n){return t-=263,s()[t]}function s(){var t=["16570674leHWml","nuTiC","26661PIacWA","tablet","3478610LPxDfH","3418988EZbXIz","461180sfrBzK","HHqzp","154CetOiy","6166489UFRycr","mJvZL","8LvFwdz","6iujPYe","mobile","29398860gQejfp","desktop"];return(s=function(){return t})()}function i(t,n){t-=180;return c()[t]}function c(){const t=["2992lfCGGl","var(--neutral-gray-900)","xmlns","CXkHp","M4.2097 4.3871L4.29289 4.29289C4.65338 3.93241 5.22061 3.90468 5.6129 4.2097L5.70711 4.29289L12 10.585L18.2929 4.29289C18.6834 3.90237 19.3166 3.90237 19.7071 4.29289C20.0976 4.68342 20.0976 5.31658 19.7071 5.70711L13.415 12L19.7071 18.2929C20.0676 18.6534 20.0953 19.2206 19.7903 19.6129L19.7071 19.7071C19.3466 20.0676 18.7794 20.0953 18.3871 19.7903L18.2929 19.7071L12 13.415L5.70711 19.7071C5.31658 20.0976 4.68342 20.0976 4.29289 19.7071C3.90237 19.3166 3.90237 18.6834 4.29289 18.2929L10.585 12L4.29289 5.70711C3.93241 5.34662 3.90468 4.77939 4.2097 4.3871L4.29289 4.29289L4.2097 4.3871Z","nHSeU","Dismiss","85632bnwUFW","height","7836576UNIRTC","954xGzkYY","HwnLU","appendChild","none","fill","gXtQg","YOmfk","153ULKOqF","wWdbK","sxGcF","XHLaR","PYCuP","iIpwk","ukmBb","BaWtW","svg","0 0 24 24","5sQBCXj","21rxufhJ","1712852FfEftB","668940KtrGTe","createElementNS","path","2326pxWAYI","setAttribute","25920pPCwVE","SBaEO","toString","431948ZWZXSv"];return(c=function(){return t})()}function a(t){const n=i,e={nHSeU:n(212),sxGcF:"size-4",XHLaR:function(t,n){return t||n},YOmfk:"http://www.w3.org/2000/svg",HwnLU:n(197),BaWtW:"width",iIpwk:"viewBox",ukmBb:n(186),wWdbK:n(185),gXtQg:"class",CXkHp:n(217),SBaEO:n(204),PYCuP:"Shape"},{size:r=24,fill:o=e[n(216)],className:s=e[n(191)]}=e[n(192)](t,{}),c=e[n(188)],a=document[n(203)](c,e[n(183)]);a[n(206)](e[n(196)],r.toString()),a[n(206)](n(180),r[n(209)]()),a[n(206)](e[n(194)],n(198)),a[n(206)](e[n(195)],e[n(190)]),a[n(206)](n(213),c),s&&a[n(206)](e[n(187)],s);const u=document.createElementNS(c,"g");u[n(206)]("id",e[n(214)]);const p=document[n(203)](c,e[n(208)]);return p[n(206)]("id",e[n(193)]),p[n(206)]("d",n(215)),p.setAttribute(e.ukmBb,o),u[n(184)](p),a[n(184)](u),a}function u(){var t=["name","815188NIiXrM","doUae","kQOGr","RATE_LIMIT","push","toCxb","uqEVY","CONFIG_NOT_FOUND","1037700sIoiWP","INpKZ","AUTH_ERROR","status","20434coVVVw","code","SNUxH","QPbyj","GamificationError","Lỗi hệ thống","RIfaj","88312wVmUaI","emit","split","2|5|3|0|1|4","56ysWIdl","forEach","1016YvSiCt","SERVER_ERROR","582675MvzAIq","3591108CNJyVQ","UNKNOWN_ERROR","15xGtYez","events","XMFzd","Game/Config không tồn tại","Lỗi không xác định"];return(u=function(){return t})()}function p(t,n){return t-=221,u()[t]}!function(t){const n=i,e=t();for(;;)try{if(876547===-parseInt(n(201))/1+-parseInt(n(205))/2*(-parseInt(n(182))/3)+-parseInt(n(210))/4*(-parseInt(n(199))/5)+-parseInt(n(207))/6*(-parseInt(n(200))/7)+-parseInt(n(181))/8+-parseInt(n(189))/9*(-parseInt(n(202))/10)+-parseInt(n(211))/11*(-parseInt(n(218))/12))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(c);var f=p;!function(t){for(var n=p,e=t();;)try{if(234683===parseInt(n(221))/1+-parseInt(n(250))/2*(-parseInt(n(232))/3)+parseInt(n(238))/4+parseInt(n(229))/5+parseInt(n(246))/6+parseInt(n(225))/7*(parseInt(n(227))/8)+-parseInt(n(230))/9)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(u);var l=(t=>{for(var n=p,e={uLcsT:n(228),Udtyx:n(231),RIfaj:"AUTH_ERROR",INpKZ:n(241),SNUxH:n(245)},r=n(224)[n(223)]("|"),o=0;;){switch(r[o++]){case"0":t[e.uLcsT]=n(228);continue;case"1":t[e.Udtyx]=e.Udtyx;continue;case"2":t[e[n(256)]]="AUTH_ERROR";continue;case"3":t[e.INpKZ]=e[n(247)];continue;case"4":return t;case"5":t[e.SNUxH]=e[n(252)];continue}break}})(l||{});class h extends Error{constructor(t,n,e){var r=p,o={toCxb:r(254)};super(n),this[r(237)]=o[r(243)],this[r(251)]=t,this[r(249)]=e}}class d{constructor(){this.events={}}on(t,n){var e=p;!this[e(233)][t]&&(this[e(233)][t]=[]),this.events[t][e(242)](n)}[f(222)](t,...n){var e=f;this[e(233)][t]&&this.events[t][e(226)](t=>t(...n))}}const m=g;function I(){const t=["48928mTkoho","sv/token","pl/games","4ouHROG","4749594dNAYLU","1242090qiWzLM","44vWoMqy","21TSxgXH","6520QvUABU","pl/games/","1294456MjhNlK","4066785ftBTHA","4512600WTqfHu","5377FVKJaJ"];return(I=function(){return t})()}function g(t,n){t-=368;return I()[t]}!function(t){const n=g,e=t();for(;;)try{if(883497===-parseInt(n(375))/1*(parseInt(n(368))/2)+parseInt(n(374))/3*(-parseInt(n(379))/4)+-parseInt(n(381))/5+parseInt(n(380))/6+-parseInt(n(369))/7*(parseInt(n(372))/8)+-parseInt(n(373))/9+-parseInt(n(370))/10*(-parseInt(n(376))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(I),m(377);const y=m(378),b=t=>m(371)+t,v=w;function w(t,n){t-=493;return E()[t]}!function(t){const n=w,e=t();for(;;)try{if(819943===-parseInt(n(505))/1+parseInt(n(511))/2+parseInt(n(504))/3*(-parseInt(n(498))/4)+parseInt(n(495))/5*(-parseInt(n(509))/6)+-parseInt(n(503))/7+parseInt(n(513))/8*(parseInt(n(499))/9)+parseInt(n(502))/10*(parseInt(n(507))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(E);const k=v(494);function E(){const t=["2399745vQknvj","1253970APiSeW","OgDoM","138578WtrHxO","Error:","6967530EhBEzp","GET","2922166czLbsn","error","183264rMGSHh","application/json","json","https://staging-cexp.cads.live/gamification","5LdYGOF","FDzZg","Bearer ","8MBdOHG","243ephkJS","body","status","2620sOofxy","3816939sHvvuj"];return(E=function(){return t})()}async function C(t,n,e={}){const r=v,o={wRwYN:"Content-Type",FDzZg:r(514)},s=k+"/"+t,i={Authorization:r(497)+n,...e[r(500)]&&!e.headers?.[o.wRwYN]?{"Content-Type":o[r(496)]}:{}},c=await fetch(s,{...e,headers:{...i,...e.headers}});if(!c.ok)throw function(t){var n=p,e={kQOGr:function(t,n){return t===n},XMFzd:n(248),ENHwn:"Sai key hoặc không có quyền",LTiwa:n(235),QPbyj:"RATE_LIMIT",tboBb:"Quá nhiều request",Torfu:function(t,n){return t>=n},doUae:n(228),XnxLI:n(255),IWQnO:"UNKNOWN_ERROR",uqEVY:n(236)};switch(!0){case 401===t||e[n(240)](t,403):return new h(e[n(234)],e.ENHwn,t);case 404===t:return new h(n(245),e.LTiwa,t);case 429===t:return new h(e[n(253)],e.tboBb,t);case e.Torfu(t,500):return new h(e[n(239)],e.XnxLI,t);default:return new h(e.IWQnO,e[n(244)],t)}}(c[r(501)]);return c[r(493)]()}function O(){const t=["24PgxbGy","1196727upxguO","2770750tKnjfo","1899027MpxrKd","906861TGJQZd","12030kSaUMm","8TjiMIe","18943144GtzIpz","1063634FACrCP","798XIflOC","1ikbZWu"];return(O=function(){return t})()}function T(t,n){const e={...t};return n.forEach(t=>{delete e[t]}),e}function x(t,n){t-=309;return O()[t]}function L(t){return null!=t}function R(t){const n=H,e={qkaAp:function(t,n){return t(n)},CSynm:function(t,n){return t===n},GaeiA:n(494),VgCoI:function(t,n){return t(n)},MnibL:function(t,n){return t===n},pEbCR:function(t,n){return t(n)},mAQog:function(t,n){return t===n},vwEoQ:function(t,n){return t(n)},EuNna:function(t,n){return t===n},uvxkO:function(t,n){return t>n},vAGPp:n(483)};if(!t||!e[n(480)](L,t))return{};let r={};return e[n(480)](L,t[n(486)])&&(r={...r,top:e.CSynm(typeof t[n(486)],e[n(475)])?t[n(486)]:t[n(486)]+"px"}),e.VgCoI(L,t[n(484)])&&(r={...r,left:e[n(497)](typeof t[n(484)],e[n(475)])?t[n(484)]:t[n(484)]+"px"}),e[n(485)](L,t[n(491)])&&(r={...r,bottom:e[n(477)](typeof t[n(491)],n(494))?t[n(491)]:t[n(491)]+"px"}),e[n(493)](L,t[n(478)])&&(r={...r,right:e.EuNna(typeof t[n(478)],e.GaeiA)?t[n(478)]:t[n(478)]+"px"}),e[n(479)](Object[n(495)](r).length,0)&&!t.position&&(r={...r,position:e[n(487)]}),r}function H(t,n){t-=475;return A()[t]}function A(){const t=["vAGPp","1174684ZByxun","5WJPaRz","465447tXydfs","bottom","4155893OFjhBa","vwEoQ","string","keys","881550MxoZrZ","MnibL","3268216edSSLH","GaeiA","726006dNObgm","mAQog","right","uvxkO","qkaAp","912411ETNbSs","3yCarta","absolute","left","pEbCR","top"];return(A=function(){return t})()}function S(){const t=["form","checkbox","10sGmVTF","rule","type","1149hzKPbo","styles","trigger","config","207202LOGdBB","76956AgEJdW","find","blocks","Nút quay","file","desktop","wheel","content","name","3962BSbokm","243jrIxqV","93464lkgHpL","2499186CoLoIz","2430AOPLbl","Đóng popup","children","700980rkZFmF","2997424uNKNZG"];return(S=function(){return t})()}function G(t,n){t-=425;return S()[t]}!function(t){const n=x,e=t();for(;;)try{if(393818===parseInt(n(312))/1*(-parseInt(n(310))/2)+parseInt(n(317))/3*(parseInt(n(319))/4)+-parseInt(n(318))/5*(parseInt(n(311))/6)+-parseInt(n(314))/7+parseInt(n(313))/8*(-parseInt(n(316))/9)+-parseInt(n(315))/10+parseInt(n(309))/11)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(O),function(t){const n=H,e=t();for(;;)try{if(304061===parseInt(n(490))/1+parseInt(n(476))/2*(parseInt(n(482))/3)+parseInt(n(488))/4*(-parseInt(n(489))/5)+-parseInt(n(496))/6+-parseInt(n(492))/7+parseInt(n(498))/8+parseInt(n(481))/9)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(A),function(t){const n=G,e=t();for(;;)try{if(435096===-parseInt(n(438))/1+-parseInt(n(448))/2*(parseInt(n(434))/3)+parseInt(n(428))/4+parseInt(n(431))/5*(-parseInt(n(451))/6)+parseInt(n(427))/7+-parseInt(n(450))/8*(parseInt(n(449))/9)+-parseInt(n(452))/10*(-parseInt(n(439))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(S);const K=(t,n)=>{const e=G;if(o=n,s=r[e(444)],o===s){const n=t.desktopConfig,r=n[0].blocks[e(440)](t=>t[e(433)]===e(436)),o=n[0][e(441)][e(440)](t=>"trigger"===t.type)?.children?.[0],s={trigger:r?.styles??{},closeButton:o?.[e(435)]??{}},i=n[1][e(441)]?.[0],c=i?.[e(426)]?.[e(440)](t=>t.type===e(445)),a=i?.children?.[e(440)](t=>"h1"===t[e(433)]),u=i?.children?.[e(440)](t=>t[e(433)]===e(429)),p=i?.[e(426)]?.[e(440)](t=>t[e(447)]===e(442)),f=i?.[e(426)]?.[e(440)](t=>t[e(447)]===e(425)),l=i?.[e(426)]?.[e(440)](t=>t[e(433)]===e(430))?.[e(437)]?.[e(432)]??{title:"",url:""},h=i?.[e(426)]?.find(t=>t[e(433)]===e(430));console.log(p);const d={modal:i?.[e(435)]??{},wheel:c?.[e(435)]??{},title:a?.styles??{},form:u?.styles??{},btnSubmit:p?.styles??{},checkbox:h?.[e(435)]??{},closeModal:f?.styles??{}},m=n[2].blocks?.[0]??{};return{backgroundTrigger:r?.[e(437)]?.[e(443)]??"",backgroundModal:i?.config?.[e(443)]??"",backgroundWheel:c?.[e(437)]?.file??"",closeBtn:o,title:a?.[e(446)]??"",rule:l,result:m,form:{form:u,checkbox:h,btnSubmit:p},styles:{trigger:s,modal:d}}}var o,s;return{backgroundTrigger:"",backgroundModal:"",backgroundWheel:"",title:"",result:{},rule:{title:"",url:""},contentCheckbox:""}};function W(t,n){t-=290;return M()[t]}function M(){const t=["zlcpq","cb-","OHaDj","428460rYzjjy","content","text-field ","HkNZd","style","OouoG","addEventListener","5794410rLDepm","data","rule","cssText","placeholder","column","text","value","href","push","type","config","wlpja","YOHgh","url","button","checked","OSVil","innerText","btnSubmit","display","1933664TxocMu","test","zWQRA","checkbox","forEach","marginLeft","marginRight","createElement","className","styles","setAttribute","tel","RePDw","email","1353170SZSPwU","FXIoe","inputs","Số điện thoại không hợp lệ","jubBK","doKbw","position","Bạn cần đồng ý với chính sách để tiếp tục","WIxZD","imjfC","BcWMb","absolute","target","483531nWsZNU","assign","htmlFor","QuvvH","ZWXkj","VEmsN","7ZrNbef","IWScc","12px","flex","TseTB","form","checkbox-container ","_blank","change","429432HFjNZi","Fszuv","title","name","34212kegBiF","JSCWG","Email không hợp lệ","appendChild","label","relative","dynamic-form ","trim","AvZBq","input","div","color: red; font-size: 11px; margin: 4px 0 0 0; white-space: nowrap;","rGmgn","width"];return(M=function(){return t})()}function U(){const t=["removeChild","querySelectorAll","phone","stringify","GLtJL","TmfyA","document","close-modal-btn button-root ","none","replace","hUpdd","--backgroundWheel","5545tMOCmp","oNoHm","SpVmq","display","tWnjS","name","b2-medium text-white ","createElement","file","AEOYS","content","154aIlcOL","UoYnJ","grcQU","matchMedia","LeDQl","background","38WXGMmt","MMKro","cexp-backdrop-wheel ","LcDkO","--backgroundModalMb","Mô tả","--backgroundWheelMb","MByVd","trim","split","211690rDRCJX","wheel","error","addEventListener","116dgDnrX","forEach","wheel-modal ","emit","UEXWV","--backgroundTriggerMb","setProperty","AEEUj","16aiuqdv","Xin chúc mừng","result-header-title ","WAJXI","result","--backgroundResult","BPnUs","linear","mdeDr","flex","children","close-trigger-btn button-root ","UiKGC","className","desktop","cexp-wheel ","POST","text-white hight-light ","ZJoDg","transform","pNpgi","Xem thể lệ","style","--backgroundModal","modal-wrapper ","etoBm","hPlIo","Tiêu đề","KvCGe","appendChild","rVYXV","AWXgw","trigger","matches","esCmX","(max-width: 768px)","length","0|1|3|2|4","voucher","observe","wheel-modal-title","KDOOa","textContent","4401835iXvFjo","6vzCquF","url(","jXDRL","title","config"," rotate(0deg)","tgfED","ovoQt","trigger-btn "," rotate(360deg)","cexp-result-container ","29114904yZXIsH","146577iCEWRR","assign","OgXzx","body","nuMVT","div","innerText","wheel-form-wrapper absolute px-4 ","6424893eHMZFA","4931143CWvcOz","hofXG","EMReq","#333","click","tqbKK","find","nORvy","modal","GQWPr","styles",'[class*="',"closeButton","eLlBv","kyJkP","XPRQK"];return(U=function(){return t})()}function z(t,n){t-=111;return U()[t]}function N(t){const n=z,e={hofXG:function(t,n){return t(n)},hPlIo:function(t,n,e,r){return t(n,e,r)},AWXgw:function(t,n){return t===n},TmfyA:n(127),GXrIr:"flex",IoCrf:function(t,n){return t(n)},etoBm:function(t,n,e){return t(n,e)},nORvy:n(207),nuMVT:function(t,n,e){return t(n,e)},KDOOa:n(205),AEEUj:function(t,n,e){return t(n,e)},SpVmq:n(231),ZJoDg:"backgroundImage",GLtJL:n(147),grcQU:function(t,n){return t(n)},MMKro:"button",eLlBv:function(t,n){return t(n)},UoYnJ:function(t,n){return t||n},XuAKS:"--backgroundTrigger",RVzwj:n(167),tqbKK:function(t,n){return t(n)},RYjmA:n(193),MByVd:n(152),tWnjS:function(t,n){return t(n)},EMReq:n(238),GQWPr:function(t,n,e){return t(n,e)},UEXWV:function(t,n){return t(n)},kyJkP:n(239),mdeDr:"Failure",jXDRL:n(175),WAJXI:function(t,n){return t(n)},OgXzx:n(191),ovoQt:function(t,n){return t(n)},rHYMO:function(t,n){return t>n},pNpgi:function(t){return t()},hUpdd:n(136),KvCGe:n(121)},{gameConfig:o,apiKey:s,game_id:i,emitter:c}=t;let u,p="";async function f(t){const r=n;u&&e[r(236)](clearInterval,u);try{return await e[r(196)](C,"pl/games/reward",s,{method:r(186),body:JSON[r(122)]({customer:t,game_id:i})})}catch(o){throw o}}function l(){const t=n,s={rVYXV:function(t,n){return e.IoCrf(t,n)},esCmX:e.TmfyA,AEOYS:function(t,n,r){return e[z(195)](t,n,r)},BPnUs:e[t(242)],XPRQK:function(n,r,o){return e[t(230)](n,r,o)}};if(!i)return;const l=window.matchMedia(e[t(211)])[t(203)],d=document.documentElement,m=e[t(169)](K,o,r[t(184)]),I=e[t(195)](K,o,r[t(184)]),{backgroundTrigger:g,closeBtn:y,backgroundWheel:b,backgroundModal:v,title:w,rule:k,form:E,styles:C}=m,{backgroundTrigger:O,backgroundModal:x,backgroundWheel:L,title:H,rule:A}=I,S=document[t(138)](e[t(133)]);S.className="cexp-gamification "+i,Object[t(227)](S[t(192)],{...T(C?.[t(202)][t(202)],[e[t(188)],e[t(123)]]),...e[t(144)](R,C?.[t(202)]?.trigger)});const G=document.createElement("div");G[t(183)]=t(222)+i;const M=document.createElement(e.MMKro);M.className=t(181)+i,M[t(232)]=y?.content??"X",Object[t(227)](M.style,{...C?.[t(202)][t(115)],...e[t(116)](R,C?.[t(202)]?.[t(115)])}),S[t(199)](M),S[t(199)](G),e[t(143)](g,O)&&(d[t(192)][t(168)](e.XuAKS,"url("+g+")"),d[t(192)][t(168)](e.RVzwj,t(215)+O+")"));const U=document[t(138)](e[t(133)]);U[t(183)]="cexp-wrapper "+i;const N=document[t(138)](e[t(133)]);N[t(183)]=t(194)+i,Object[t(227)](N.style,{...C?.[t(111)][t(111)],...e[t(240)](R,C?.[t(111)][t(111)])});const X=document[t(138)](e[t(133)]);X[t(183)]=t(150)+i;const j=document[t(138)](e[t(133)]);j[t(183)]=t(164)+i,(v||x)&&(d[t(192)][t(168)](e.RYjmA,"url("+v+")"),d[t(192)][t(168)](e[t(155)],"url("+x+")")),N[t(199)](j);const Y=document[t(138)](e.MMKro);Y[t(183)]=t(126)+i;const B=e[t(135)](a,{size:16,fill:e.EMReq});Y.appendChild(B),j[t(199)](Y);const Q=document[t(138)](t(231));Q[t(183)]=t(185)+i,Object[t(227)](Q[t(192)],{...e.GQWPr(T,C?.[t(111)].wheel,[e[t(188)],t(147)]),...e[t(166)](R,C?.[t(111)][t(159)])}),(b||L)&&(d[t(192)][t(168)](t(130),"url("+b+")"),d[t(192)].setProperty(t(154),t(215)+L+")"));const F=document[t(138)]("h1");F[t(183)]=t(210),F[t(212)]=l?H:w??"",Object.assign(F[t(192)],{...C?.[t(111)].title,...e[t(135)](R,C?.[t(111)][t(217)])});let Z=!1;const P=document[t(138)](t(231));if(P[t(183)]=t(233)+i,Q[t(192)][t(189)][t(128)](/rotate\([^)]*\)/g,"").trim(),E){const n=Q.style[t(189)].replace(/rotate\([^)]*\)/g,"")[t(156)]();!function(t,n,e,r){const o=W,s={wlpja:"Trường này không được để trống",OouoG:function(t,n){return t===n},WIxZD:o(331),ZapYY:function(t,n){return t===n},RCmzM:o(333),OHaDj:o(368),doKbw:o(371),JSCWG:o(375),ZWXkj:o(305),jubBK:o(377),TseTB:function(t,n,e,r){return t(n,e,r)},imjfC:o(341),QuvvH:function(t,n){return t(n)},YOHgh:o(358),Fszuv:o(345),IWScc:o(356),vfmLd:o(355),rGmgn:"div",zWQRA:function(t,n,e){return t(n,e)},HkNZd:"8px",AvZBq:o(370),BcWMb:"14px",OSVil:"rgb(65, 70, 81)",FXIoe:o(360),RePDw:"block",VEmsN:o(361),CKZVH:o(314),zlcpq:"submit"},i="form-"+n,c=(t,n,e)=>{const r=o,i=t[r(306)][r(373)]();return i?s[r(297)](n,s[r(342)])&&!/^(0|84|\+84)(3|5|7|8|9)([0-9]{8})$/[r(321)](i)?(e[r(317)]=r(337),!1):s.ZapYY(n,s.RCmzM)&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/[r(321)](i)?(e[r(317)]=s[r(291)],!1):(e[r(317)]="",!0):(e.innerText=s[r(311)],!1)},a=document.createElement(s.YOHgh);a.id=i,a[o(328)]=o(372)+n,Object[o(348)](a[o(296)],{position:s[o(363)],display:s[o(354)],flexDirection:o(304),gap:s.vfmLd,...t.form[o(329)],...R(t[o(358)].styles)});const u=[];t[o(358)][o(300)][o(336)].forEach(t=>{const e=o,r=document[e(327)](e(376));r.style[e(340)]=s[e(339)];const i=document.createElement(s[e(367)]);i[e(309)]=s.OouoG(t.type,s[e(342)])?s[e(351)]:t[e(309)],i[e(303)]=t[e(303)],i[e(365)]=t[e(303)],i[e(328)]=e(294)+n,i[e(296)][e(379)]="100%",i.style[e(319)]="block";const p=document[e(327)]("p");p.style[e(302)]=s[e(338)],i[e(298)](s[e(367)],()=>c(i,t.type,p)),u[e(308)]({input:i,error:p,type:t[e(309)]}),r[e(369)](i),r.appendChild(p),a.appendChild(r)});const p=document[o(327)](s[o(378)]);p.className=o(359)+n,Object[o(348)](p[o(296)],{...s[o(322)](T,t[o(323)].styles,[o(319)]),...R(t[o(323)][o(329)])});const f=document[o(327)](s[o(367)]);f[o(309)]="checkbox",f.id=o(290)+t.checkbox.id,f.style[o(326)]=s[o(295)];const l=document[o(327)](s[o(374)]);l[o(349)]=f.id,l[o(317)]=t[o(323)][o(293)],Object[o(348)](l[o(296)],{"font-size":s[o(344)],"font-weight":500,color:s[o(316)]});const h=document.createElement("a");h.innerText=t[o(323)][o(310)]?.[o(301)][o(364)]??"",h[o(307)]=t.checkbox.config?.[o(301)][o(313)]??"",h[o(346)]=s[o(335)],h[o(296)][o(325)]="20px",h.style[o(319)]=s[o(332)];const d=document[o(327)]("p");d.style[o(302)]="color: red; font-size: 11px; position: absolute; top: 100%; left: 0;",f[o(298)](s[o(352)],()=>{const t=o;f[t(315)]&&(d[t(317)]="")}),p.appendChild(f),p.appendChild(l),p[o(369)](h),p[o(369)](d);const m=document[o(327)](s.CKZVH);m[o(309)]=s[o(380)],m[o(330)](s[o(312)],i),m[o(317)]=t[o(318)][o(293)],m[o(328)]="btn-submit "+n,Object[o(348)](m[o(296)],{position:s.Fszuv,...t[o(318)][o(329)],...R(t[o(318)][o(329)])}),a[o(298)](s[o(380)],t=>{const n=o;t.preventDefault();let e=!0;const i={};u[n(324)](({input:t,error:r,type:o})=>{const a=n;s[a(357)](c,t,o,r)||(e=!1),i[t[a(365)]]=t[a(306)]}),!f.checked&&(d[n(317)]=s[n(343)],e=!1),e&&s[n(350)](r,i)}),e[o(369)](a),e[o(369)](p),e[o(369)](m)}(E,i,j,e=>{const r=t,o={oNoHm:s[r(204)],LcDkO:function(t,n,e){return s[r(140)](t,n,e)},LeDQl:s[r(176)],tgfED:function(t,n){return t(n)},UiKGC:r(160)};!Z&&Q.animate([{transform:(n+r(219))[r(156)]()},{transform:(n+r(223))[r(156)]()}],{duration:3e3,easing:r(177),iterations:1/0}),Z=!0,!u&&(u=s[r(118)](setInterval,()=>{const t=r;s[t(200)](f,e).then(n=>{const e=t;N.style[e(134)]=o.oNoHm,G[e(192)][e(134)]=o[e(132)],o[e(151)](h,!0,n),document[e(229)][e(119)](X)}).catch(n=>{const e=t,r=o[e(146)][e(157)]("|");let s=0;for(;;){switch(r[s++]){case"0":N[e(192)].display=o[e(132)];continue;case"1":G.style[e(134)]=o[e(132)];continue;case"2":document.body[e(119)](X);continue;case"3":o[e(220)](h,!1);continue;case"4":c&&c[e(165)](o[e(182)],n);continue}break}})},2e3))})}Y.addEventListener(e[t(117)],()=>{const n=t;e[n(201)](p,i)?(N[n(192)][n(134)]=e[n(124)],G[n(192)][n(134)]=e.TmfyA,document[n(229)].removeChild(X)):(N.style.display=e.GXrIr,G.style[n(134)]=n(127),document[n(229)][n(119)](X)),p=i}),G[t(161)](e[t(117)],()=>{const n=t;N[n(192)].display=e[n(124)],G.style.display=e[n(124)],p===i?(N[n(192)][n(134)]=e[n(124)],S[n(192)][n(134)]=n(127),M[n(192)][n(134)]=e[n(124)]):(N[n(192)][n(134)]=n(179),S[n(192)][n(134)]=e.TmfyA,M[n(192)][n(134)]=n(127),document[n(229)][n(199)](X)),p=i}),M[t(161)](e[t(117)],()=>{const n=t;N[n(192)][n(134)]=n(127),G.style[n(134)]=e[n(124)],M[n(192)][n(134)]=n(127)}),j[t(199)](Q),j[t(199)](F),j[t(199)](P),U[t(199)](S),U[t(199)](N),document.body[t(199)](U)}function h(t,s){const c=n;if(!t)return console[c(160)](e[c(178)]);const u=window[c(145)](e.KDOOa)[c(203)],f=document.documentElement,l=e[c(230)](K,o,r.desktop)[c(174)];l?.[c(218)]?.[c(139)]&&(u?f.style[c(168)]("--backgroundResultMb",c(215)+l?.[c(218)]?.[c(139)]+")"):f[c(192)][c(168)](e[c(216)],"url("+l?.config?.file+")"));const h=l?.[c(180)]?.[c(241)](t=>t[c(136)]===c(197)),d=l?.[c(180)]?.[c(241)](t=>t.name===c(153)),m=document[c(138)](e[c(133)]);m[c(183)]=c(224)+i,Object[c(227)](m[c(192)],{...e[c(112)](T,l[c(113)],[e.ZJoDg,"backgroundColor"]),...e[c(173)](R,l[c(113)])});const I=document[c(138)]("h1");I[c(183)]=c(172)+i,I[c(232)]=h?.content??c(171),Object[c(227)](I[c(192)],{...h?.[c(113)],...R(h?.[c(113)])});const g=document[c(138)](e[c(149)]);g.className="close-result-btn button-root "+i;const y=a({size:16,fill:e[c(237)]});g[c(199)](y);const b=document[c(138)](e[c(133)]);b[c(183)]=""+i;const v=document[c(138)]("p");v.className=c(137)+i,v[c(232)]=(s?.[c(217)]??"")+": ";const w=document[c(138)]("a");w.className=c(187)+i,w.innerText=s?.[c(208)]??"",v.appendChild(w);const k=document[c(138)](e[c(133)]);k[c(183)]=""+i;const E=document[c(138)]("a");E[c(183)]="text-white hight-light "+i,E[c(232)]=e[c(228)];const C=document[c(138)]("h1");C[c(183)]=c(172)+i,C[c(232)]=d?.[c(141)]??"",Object[c(227)](C.style,{...d?.[c(113)],...e[c(221)](R,d?.styles)}),b[c(199)](v),m.appendChild(g),m[c(199)](I),m[c(199)](C),m[c(199)](b),m[c(199)](k),g[c(161)](e[c(117)],()=>{const t=c;p="",m.style.display=e[t(124)]}),document.body.appendChild(m)}function d(){const t=n,r=document[t(120)](t(114)+i+'"]');e.rHYMO(r[t(206)],0)&&r[t(163)](t=>t.remove()),p="",u=void 0,t(136),t(121)}e[n(129)],e[n(198)];new ResizeObserver(t=>{e[n(190)](d),e.pNpgi(l)})[n(209)](window[n(125)][n(229)])}!function(t){const n=W,e=t();for(;;)try{if(630135===-parseInt(n(347))/1+parseInt(n(362))/2+parseInt(n(366))/3+-parseInt(n(292))/4+parseInt(n(334))/5+parseInt(n(299))/6*(parseInt(n(353))/7)+-parseInt(n(320))/8)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(M),function(t){const n=z,e=t();for(;;)try{if(757068===parseInt(n(131))/1*(-parseInt(n(148))/2)+-parseInt(n(226))/3*(-parseInt(n(162))/4)+-parseInt(n(213))/5*(-parseInt(n(214))/6)+-parseInt(n(235))/7*(-parseInt(n(170))/8)+-parseInt(n(234))/9+parseInt(n(158))/10*(parseInt(n(142))/11)+-parseInt(n(225))/12)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(U);const X=j;function j(t,n){t-=172;return Q()[t]}!function(t){const n=j,e=t();for(;;)try{if(381450===parseInt(n(192))/1*(-parseInt(n(174))/2)+parseInt(n(196))/3*(-parseInt(n(183))/4)+-parseInt(n(201))/5*(parseInt(n(203))/6)+-parseInt(n(181))/7+-parseInt(n(191))/8+parseInt(n(176))/9*(-parseInt(n(200))/10)+parseInt(n(202))/11)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(Q);const Y={isValid:!1,disabled:!1,errors:[{name:X(197),message:""},{name:X(177),message:""}]};class B{#t;#n;#e;constructor(t){const n=X,{apiKey:e,gameConfig:r,emitter:o}=t,s=r;this.#t=s,this.#n=e,this.#e=o,this[n(189)]=Y}#r(t){const n=X,e={bklVW:function(t,n){return t===n},UaCPO:function(t,n){return t===n},cLyvC:function(t,n){return t===n},ZCrbB:n(185),TJYgG:function(t,n){return t(n)}},{allowedUrl:r}=this.#t;if(e.bklVW(typeof r,n(185))&&e.UaCPO(r[n(180)],0))N({gameConfig:this.#t,apiKey:this.#n,game_id:this.#t.game_id,emitter:this.#e});else if(e[n(182)](typeof r,e[n(172)])){const o=r[n(193)](t=>t.value),s=t??location.href;if(o[n(190)](s))e.TJYgG(N,{gameConfig:this.#t,apiKey:this.#n,game_id:this.#t.game_id,emitter:this.#e});else{const t=document.querySelectorAll(n(195)+this.#t[n(178)]+'"]');t[n(180)]>0&&t[n(173)](t=>t[n(199)]())}return}}[X(204)](){const t=X,n={jmThD:"navigation",REZrg:t(188),mSkmq:"locationchange"};let e="";!e&&(this.#r(),e=location[t(198)]),n[t(187)]in window?window[t(175)][t(194)](n[t(184)],n=>{const r=t;e!==n?.[r(186)]?.[r(179)]&&(this.#r(n?.[r(186)]?.url),e=n?.[r(186)]?.[r(179)])}):window[t(194)](n.mSkmq,()=>{const n=t;this.#r(),e=location[n(198)]})}}function Q(){const t=["length","977144VkGVLk","cLyvC","178704LocrwO","REZrg","object","destination","jmThD","navigate","formState","includes","4123352tLTqjP","190582RTKiPx","map","addEventListener",'[class*="',"12WBwnhW","name","href","remove","10zHOVpa","15FDbJnf","23155682wxfDul","209784kAIsjE","init","ZCrbB","forEach","6rPkBfS","navigation","1919331TMYfIx","phone","game_id","url"];return(Q=function(){return t})()}function F(){var t=["6zQqRyS","6713436JJfjga","22OOKYiL","1987000MQKvqd","32YZvumz","8ACVROs","818855HCOVGa","840231vbYZAy","502642BjIzgc","379812SYQgLN","190262ycISgf","18WzNUrO"];return(F=function(){return t})()}function Z(t,n){return t-=483,F()[t]}function P(t,n){return t-=415,V()[t]}function V(){var t=["102518IKDSut","4320670awbPhv","UynMR","card","puzzle","4494755tiswwi","bLmEa","6nXFfTv","CARD","5SXorio","PUZZEL","17307cHaZYT","332YUTcWn","8sbQPQB","22oJTFLs","6799884JlzQWA","29841888XTHeGe","XySns","2897937spPBeI","eylfY","FmdiJ","WHEEL"];return(V=function(){return t})()}!function(t){for(var n=Z,e=t();;)try{if(299331===-parseInt(n(486))/1*(-parseInt(n(484))/2)+parseInt(n(483))/3*(parseInt(n(491))/4)+parseInt(n(492))/5*(parseInt(n(485))/6)+-parseInt(n(494))/7+-parseInt(n(490))/8*(-parseInt(n(493))/9)+-parseInt(n(489))/10+-parseInt(n(488))/11*(parseInt(n(487))/12))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(F),function(t){for(var n=P,e=t();;)try{if(792198===parseInt(n(415))/1*(-parseInt(n(428))/2)+-parseInt(n(417))/3*(-parseInt(n(418))/4)+-parseInt(n(433))/5*(-parseInt(n(435))/6)+parseInt(n(421))/7+parseInt(n(419))/8*(parseInt(n(424))/9)+-parseInt(n(429))/10*(-parseInt(n(420))/11)+-parseInt(n(422))/12)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(V);var D,q,J,_=(D=_||{},J={bLmEa:(q=P)(427),XySns:"wheel",eyyfM:q(436),eylfY:q(431),FmdiJ:q(416),UynMR:q(432)},D[J[q(434)]]=J[q(423)],D[J.eyyfM]=J[q(425)],D[J[q(426)]]=J[q(430)],D);function $(t,n){return t-=444,nt()[t]}!function(t){for(var n=$,e=t();;)try{if(807045===parseInt(n(479))/1+-parseInt(n(450))/2*(-parseInt(n(472))/3)+-parseInt(n(471))/4*(parseInt(n(474))/5)+-parseInt(n(452))/6*(parseInt(n(475))/7)+-parseInt(n(477))/8*(parseInt(n(480))/9)+-parseInt(n(447))/10+-parseInt(n(449))/11*(-parseInt(n(469))/12))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(nt);var tt=(t=>{for(var n=$,e={wxxOq:n(464),FdpGE:n(456),sHqQg:n(478),GOHAJ:n(465),kYrVb:"bottom-left",DNgNH:n(461),UrYye:"bottom-right",XrGQJ:n(481),Aanhx:n(462),YsQYi:n(459),UgXzG:n(476),DbWeu:n(463),kVTYz:n(468),LDbUA:n(470),uvnEm:n(460)},r=e.wxxOq[n(473)]("|"),o=0;;){switch(r[o++]){case"0":t[e[n(457)]]=e[n(446)];continue;case"1":t[e[n(454)]]=e[n(467)];continue;case"2":t[e.DNgNH]=e[n(451)];continue;case"3":t[e.XrGQJ]=e[n(455)];continue;case"4":return t;case"5":t.TOP_RIGHT=n(444);continue;case"6":t[e.YsQYi]=e[n(448)];continue;case"7":t[e[n(466)]]=n(445);continue;case"8":t[e.kVTYz]=e[n(453)];continue;case"9":t[n(458)]=e.uvnEm;continue}break}})(tt||{});function nt(){var t=["1910hZvejr","967036aMmlTl","top-center","21104WOKyFz","center-left","1368483rRuzqC","3348vdNluA","CENTER_RIGHT","top-right","bottom-center","sHqQg","9866320ntZzHR","UgXzG","55ezwYlR","1378474QCvUbF","UrYye","18BfEYOP","LDbUA","GOHAJ","Aanhx","CENTER_LEFT","FdpGE","TOP_LEFT","TOP_CENTER","top-left","BOTTOM_RIGHT","center-right","BOTTOM_CENTER","1|7|2|0|8|3|9|6|5|4","BOTTOM_LEFT","DbWeu","kYrVb","CENTER_CENTER","3677892UfioGK","center-center","4196YqBlKp","3fekTrb","split"];return(nt=function(){return t})()}function et(t,n){return t-=133,rt()[t]}function rt(){var t=["14409lyBQgt","1379688mqvHKd","7bWMZCG","1517924tAhMxj","1116649hrdNRZ","2912576UCyfDA","6740ZHMzhY","465412rgIQSm","12kYGhET","2239000GTKWrJ"];return(rt=function(){return t})()}!function(t){for(var n=et,e=t();;)try{if(604875===-parseInt(n(137))/1+parseInt(n(136))/2+-parseInt(n(141))/3*(-parseInt(n(140))/4)+-parseInt(n(142))/5+parseInt(n(134))/6+parseInt(n(135))/7*(-parseInt(n(138))/8)+-parseInt(n(133))/9*(-parseInt(n(139))/10))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(rt);const ot=st;function st(t,n){t-=171;return it()[t]}function it(){const t=["CxAXT","amd","Error:","error","1111840VzgKhw","Your game not available!","wnUFS","4lAVYmY","init","type","wrnUU","589822XjSmqi","QvOJz","pushstate","replacestate","2286732KYqFSH","API Key is required","HnvKf","exports","game","locationchange","rzsrE","lgRXs","apply","cexp","info","Failed to initialize Gamification SDK","xuIFT","458407UBpsEO","RZVTa","game_id","kuKkA","dispatchEvent","undefined","XQFzo","2264FLFGlN","QSFEh","history","object","24066ycyoYC","6251785dQnzuH","replaceState","IiHcu","WAtpi","addEventListener","function","15BuASYo","emit","WHEEL","GHdyO","CTIMX","VFBSh","forEach","7274820ywUAUe"];return(it=function(){return t})()}!function(t){const n=st,e=t();for(;;)try{if(740441===-parseInt(n(191))/1+parseInt(n(174))/2*(parseInt(n(209))/3)+parseInt(n(224))/4*(parseInt(n(203))/5)+parseInt(n(178))/6+-parseInt(n(216))/7+-parseInt(n(198))/8*(parseInt(n(202))/9)+-parseInt(n(221))/10)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(it),function(t){const n=st,e={PDfQQ:n(176),VFBSh:n(177),IiHcu:"locationchange",XQFzo:"popstate"},r=t.pushState,o=t.replaceState;t.pushState=function(o){const s=n,i=r[s(186)](t,arguments);return window[s(195)](new Event(e.PDfQQ)),window.dispatchEvent(new Event(s(183))),i},t[n(204)]=function(r){const s=n,i=o[s(186)](t,arguments);return window.dispatchEvent(new Event(e[s(214)])),window[s(195)](new Event(e[s(205)])),i},window[n(207)](e[n(197)],()=>{const t=n;window[t(195)](new Event(e[t(205)]))})}(window[ot(200)]),function(t,n){const e=ot,r={RZVTa:function(t,n){return t===n},corov:e(201),WAtpi:function(t,n){return t!==n},kuKkA:e(196),rzsrE:function(t){return t()},HnvKf:function(t,n){return t===n},wrnUU:e(208),hPaDh:function(t,n){return t!==n}};if(r[e(192)](typeof exports,r.corov)&&r.WAtpi(typeof module,r[e(194)]))module[e(181)]=r[e(184)](n);else if(r[e(180)](typeof define,r[e(173)])&&define[e(218)])define(n);else{(r.hPaDh(typeof globalThis,r[e(194)])?globalThis:t||(r[e(206)](typeof self,r.kuKkA)?self:{}))[e(187)]=n()}}(typeof window!==ot(196)?window:void 0,()=>{const t=ot,n={QSFEh:t(179),GHdyO:"Error:",ijdll:function(t,n){return t(n)},CTIMX:function(t,n,e){return t(n,e)},QvOJz:function(t,n){return t===n},xuIFT:t(222),lgRXs:t(220),CxAXT:function(t,n){return t instanceof n},wnUFS:t(189)};return class extends d{#n;constructor({apiKey:e}){const r=t;super(),!e&&console.error(n[r(199)]),this.#n=e}async#o(){const e=t;try{return C(y,this.#n)}catch(r){throw console[e(220)](n[e(212)],r),r}}async#s(e){const r=t;try{const t=n.ijdll(b,e);return n[r(213)](C,t,this.#n)}catch(o){throw console[r(220)](r(219),o),o}}async#i(e){const r=t;e[r(215)](async t=>{const e=r;try{const r=await this.#s(t.game_id),{config:{gameConfig:o}}=r,s={game_id:t[e(193)],...o?.game?JSON.parse(o?.[e(182)]):{}};if(s&&n[e(175)](s[e(172)],_[e(211)])){new B({apiKey:this.#n,gameConfig:s,emitter:this})[e(171)]()}else s&&console[e(188)](n[e(190)])}catch(o){this[e(210)](n[e(185)],o)}})}async init(){const e=t;if(this.#n)try{const t=await this.#o();t.length&&this.#i(t)}catch(r){if(n[e(217)](r,h))throw r;throw new Error(n[e(223)])}}}})});
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(':root{--backgroundTrigger: "";--backgroundTriggerMb: "";--backgroundWheel: "";--backgroundWheelMb: "";--backgroundModal: "";--backgroundModalMb: "";--backgroundResult: "";--backgroundResultMb: ""}*{box-sizing:border-box}.relative{position:relative}.absolute{position:absolute}.gap-2{gap:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.mb-2{margin-bottom:2rem}.pb-12{padding-bottom:3rem}.pb-16{padding-bottom:4rem}.d-flex{display:flex}.flex-col{flex-direction:column}.w-full{width:100%}.text-field{font-size:14px;font-weight:400;line-height:20px;width:100%;height:36px;background-color:#fff;border-radius:8px;padding:.75rem;border-style:none;outline:2px solid transparent;outline-offset:2px}.text-field input{border-style:none;flex:1 1 0%;outline:2px solid transparent;outline-offset:2px;margin:0;padding:0}.bt-transparent{background-color:transparent}.b1-medium{font-size:16px;line-height:24px;font-weight:500}.b2-medium{font-size:14px;font-weight:500;line-height:20px}.text-white{opacity:1;color:#fff}.text-underline{text-decoration:underline}.bg-black{background-color:#000}.button-root{display:flex;align-items:center;justify-content:center;color:#fff;transition:all .2s;height:2.5rem;border-radius:.5rem;cursor:pointer}.cexp-preview-wrapper div{position:relative;display:block;font-style:inherit;text-align:inherit}.wrap-text{display:flex!important;align-items:flex-start;word-break:break-word;padding:0 30px!important;font-size:16px!important;font-weight:400!important;font-family:Insider-Roboto,sans-serif!important;color:#fff!important}.hight-light{font-weight:600;text-decoration:underline}.trigger-btn{width:100%;height:100%;background-image:var(--backgroundTrigger);background-size:contain;background-repeat:no-repeat;background-position:center;cursor:pointer;position:absolute;z-index:100}.close-trigger-btn{border:none;outline:none;z-index:10000}.cexp-wrapper{position:fixed;width:100%;height:100vh;z-index:9999}.backdrop-wheel{display:block;opacity:.8;position:fixed;z-index:100;width:100%;height:100%;background-color:#000;opacity:.6;top:0;left:0;cursor:pointer}.modal-wrapper{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.wheel-modal-banner{background-size:contain;background-repeat:no-repeat;background-position:center;width:100%;max-width:70%;height:30%;top:0;right:0}.wheel-form-wrapper{width:321px;right:0;bottom:0;padding-bottom:20px}.cexp-wheel-shell{width:300px;height:300px;position:absolute;transform:translate(-251px)}.cexp-wheel{width:100%;height:100%;background:var(--backgroundWheel);background-size:cover}.close-modal-btn{position:absolute;top:-16px;right:-16px;width:32px;height:32px;padding:0;border-radius:50%;border:none;outline:none}.wheel-modal{position:relative;min-width:600px;min-height:400px;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background-image:var(--backgroundModal);background-size:cover;background-repeat:no-repeat}.cexp-result-container{position:absolute;background-image:var(--backgroundResult);background-repeat:no-repeat!important;background-position:50% 50%!important;background-color:#fff0!important;width:320px;min-height:500px;z-index:9999}.result-header{position:relative;display:block;min-height:215px}.result-header-title{display:block;font-weight:700;font-size:2em;padding:8px}.close-result-btn{position:absolute;top:-10px;right:-10px;width:32px;height:32px;padding:0;border-radius:50%;border:none;outline:none}.error-msg{color:#fff;margin:0}@media(max-width:768px){.trigger-btn{background-image:var(--backgroundTriggerMb);background-size:cover}.cexp-wrapper{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:100vw;z-index:9999}.backdrop-wheel{display:block;opacity:.6;background-color:#000;position:fixed;z-index:100;width:100%;height:100%;top:0;left:0;cursor:pointer}.modal-wrapper{max-width:calc(100vw - 32px)}.wheel-modal{position:relative;max-width:calc(100vw - 32px);min-width:320px;min-height:480px;width:100%;height:100%;background-image:var(--backgroundModalMb);background-size:cover;background-repeat:no-repeat;background-position:50% 50%!important;display:flex;flex-direction:column;justify-content:center;align-items:center}.wheel-modal-title{width:100%!important}.cexp-wheel-shell{max-width:280px;max-height:280px;position:absolute;top:0!important;left:50%!important;transform:translate(-50%,-50%)!important;z-index:2}.cexp-wheel{width:100%;height:100%;background:var(--backgroundWheelMb);background-size:cover}.wheel-form-wrapper{width:100%;right:unset;bottom:0;padding-bottom:20px}.dynamic-form{left:50%!important;top:80px!important;transform:translate(-50%);width:100%}.checkbox-container{right:unset!important;width:100%;text-align:center}.btn-submit{left:unset!important}.close-modal-btn{position:absolute;top:-10px;right:-10px;width:32px;height:32px;padding:0;border-radius:50%;border:none;outline:none}.wheel-policy{text-align:center}.cexp-result-container{background-image:var(--backgroundResultMb);top:50%!important;left:50%!important;transform:translate(-50%,-50%)}}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
|
+
!function(t){"function"==typeof define&&define.amd?define(t):t()}(function(){"use strict";function t(n,e){var r=s();return(t=function(t,n){return r[t-=233]})(n,e)}!function(n){for(var e=t,r=n();;)try{if(666903===parseInt(e(236))/1*(parseInt(e(239))/2)+parseInt(e(235))/3+-parseInt(e(237))/4*(-parseInt(e(248))/5)+parseInt(e(249))/6*(-parseInt(e(242))/7)+-parseInt(e(244))/8+parseInt(e(243))/9+parseInt(e(247))/10*(-parseInt(e(240))/11))break;r.push(r.shift())}catch(o){r.push(r.shift())}}(s);var n,e,r,o=(n=o||{},r={dYlMs:(e=t)(233),rjEHr:e(241),rLiQz:e(234)},n[r[e(245)]]=r[e(245)],n[r[e(246)]]=r[e(246)],n[e(234)]=r[e(238)],n);function s(){var t=["4ZTTEqw","rLiQz","4182kAuxOo","319QXElVb","tablet","3997EJoNGA","2415906DHGnrj","2980792CWTGUE","dYlMs","rjEHr","170410PzLces","3777355Vutbcc","12558OegmJk","mobile","desktop","2549010kvIxkY","409VAIcZu"];return(s=function(){return t})()}function c(){const t=["68776AnXTLF","Dismiss","27522NCbWFu","1190GjgnAb","1466550YtZbpA","QCZJc","vRsci","209lRDZwd","CQXgC","var(--neutral-gray-900)","CLUlb","width","Heodm","755lZljHu","class","AwvcW","77556VspYTQ","993694VNLrkh","1750920qpkBRz","xmlns","GjyyN","toString","size-4","http://www.w3.org/2000/svg","UEGsD","BrotR","setAttribute","path","TnrTX","gkYvb","svg","Shape","height","fill","22348gFTiHB","980qMMtuo","appendChild","none","1RTeqEM"];return(c=function(){return t})()}function i(t,n){const e=c();return(i=function(t,n){return e[t-=251]})(t,n)}function a(t){const n=i,e={cWJBB:n(256),UEGsD:function(t,n){return t||n},GjyyN:n(257),CQXgC:n(284),CLUlb:"viewBox",gkYvb:"0 0 24 24",QCZJc:n(267),BrotR:n(271),Heodm:n(253),vRsci:n(287),AwvcW:n(274),TnrTX:n(265),Xbnay:"M4.2097 4.3871L4.29289 4.29289C4.65338 3.93241 5.22061 3.90468 5.6129 4.2097L5.70711 4.29289L12 10.585L18.2929 4.29289C18.6834 3.90237 19.3166 3.90237 19.7071 4.29289C20.0976 4.68342 20.0976 5.31658 19.7071 5.70711L13.415 12L19.7071 18.2929C20.0676 18.6534 20.0953 19.2206 19.7903 19.6129L19.7071 19.7071C19.3466 20.0676 18.7794 20.0953 18.3871 19.7903L18.2929 19.7071L12 13.415L5.70711 19.7071C5.31658 20.0976 4.68342 20.0976 4.29289 19.7071C3.90237 19.3166 3.90237 18.6834 4.29289 18.2929L10.585 12L4.29289 5.70711C3.93241 5.34662 3.90468 4.77939 4.2097 4.3871L4.29289 4.29289L4.2097 4.3871Z"},{size:r=24,fill:o=n(282),className:s=e.cWJBB}=e[n(258)](t,{}),c=e[n(254)],a=document.createElementNS(c,n(264));a[n(260)](e[n(281)],r[n(255)]()),a[n(260)](n(266),r[n(255)]()),a[n(260)](e[n(283)],e[n(263)]),a[n(260)](e.QCZJc,e[n(259)]),a.setAttribute(e[n(285)],c),s&&a[n(260)](e[n(279)],s);const u=document.createElementNS(c,"g");u.setAttribute("id",e[n(288)]);const p=document.createElementNS(c,n(261));return p[n(260)]("id",e[n(262)]),p.setAttribute("d",e.Xbnay),p[n(260)](e[n(278)],o),u[n(270)](p),a.appendChild(u),a}function u(t,n){var e=p();return(u=function(t,n){return e[t-=105]})(t,n)}function p(){var t=["253165LjTgYt","jNZnX","cbBDt","1727478ettoji","forEach","20bGiBDq","events","358sxuGPH","name","10tiZVCW","AuQMd","BjnIq","14QkDLww","6621813jLOlVZ","BKcIO","push","AUTH_ERROR","xjuis","383643sBfktr","Quá nhiều request","CONFIG_NOT_FOUND","Lỗi hệ thống","code","PuBbd","SERVER_ERROR","hLzEB","fJETi","UNKNOWN_ERROR","nDncf","rdrtu","406744sNBttK","Game/Config không tồn tại","hcQmx","QrDOd","zMUie","status","DRFhZ","MMkSv","270429OTJztL","MRHJS","1154VmRhgU"];return(p=function(){return t})()}!function(t){const n=i,e=t();for(;;)try{if(820633===-parseInt(n(272))/1*(-parseInt(n(251))/2)+parseInt(n(277))/3+parseInt(n(268))/4*(parseInt(n(286))/5)+-parseInt(n(252))/6+-parseInt(n(269))/7*(parseInt(n(273))/8)+parseInt(n(275))/9*(parseInt(n(276))/10)+parseInt(n(280))/11*(parseInt(n(289))/12))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(c),function(t){for(var n=u,e=t();;)try{if(213301===parseInt(n(129))/1*(parseInt(n(137))/2)+parseInt(n(127))/3+parseInt(n(135))/4*(-parseInt(n(130))/5)+-parseInt(n(133))/6+parseInt(n(142))/7*(-parseInt(n(119))/8)+-parseInt(n(107))/9*(parseInt(n(139))/10)+parseInt(n(143))/11)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(p);var f,l,h,d=(f=d||{},h={BjnIq:"AUTH_ERROR",MRHJS:(l=u)(109),zMUie:"RATE_LIMIT",hLzEB:l(113),xjuis:l(116)},f[h[l(141)]]=h.BjnIq,f[h.MRHJS]=h[l(128)],f[h[l(123)]]=h[l(123)],f[l(113)]=h[l(114)],f[l(116)]=h[l(106)],f);class m extends Error{constructor(t,n,e){var r=u;super(n),this[r(138)]={rdrtu:"GamificationError"}[r(118)],this[r(111)]=t,this[r(124)]=e}}class I{constructor(){this[u(136)]={}}on(t,n){var e=u;!this[e(136)][t]&&(this[e(136)][t]=[]),this.events[t][e(145)](n)}emit(t,...n){var e=u;this.events[t]&&this.events[t][e(134)](t=>t(...n))}}const g=b;function b(t,n){const e=w();return(b=function(t,n){return e[t-=386]})(t,n)}!function(t){const n=b,e=t();for(;;)try{if(777438===-parseInt(n(398))/1*(-parseInt(n(393))/2)+parseInt(n(390))/3*(-parseInt(n(389))/4)+parseInt(n(400))/5*(-parseInt(n(387))/6)+-parseInt(n(401))/7*(-parseInt(n(392))/8)+parseInt(n(386))/9*(-parseInt(n(397))/10)+-parseInt(n(396))/11*(parseInt(n(388))/12)+parseInt(n(391))/13)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(w),g(394);const y=g(399);function w(){const t=["pl/games/","11UwFiPK","2484770ZhDqBW","6653SBiuaX","pl/games/reward","5025IFeNpI","453747clEiam","54JlKkzL","4326rpxhMa","8780508eSjRVo","4IKpeHy","2746269FROnbG","54938325vFerJh","24qPXILJ","66nvePXq","sv/token"];return(w=function(){return t})()}function v(){const t=["vezXW","Bearer ","json","1767466whSMKo","HToUo","abaBi","status","ldMrX","54TIQELv","Content-Type","1xgxDqj","headers","1529AZLwkG","body","826788uBgQZE","10790008EoSPmd","35GKdIzC","25690LXfRVY","612353xfsyBn","application/json","1498230ednPfB","Error:","4584633hcfkJO"];return(v=function(){return t})()}function E(t,n){const e=v();return(E=function(t,n){return e[t-=462]})(t,n)}!function(t){const n=E,e=t();for(;;)try{if(840280===parseInt(n(479))/1*(parseInt(n(472))/2)+-parseInt(n(468))/3+-parseInt(n(483))/4*(-parseInt(n(462))/5)+parseInt(n(477))/6*(-parseInt(n(464))/7)+parseInt(n(484))/8+-parseInt(n(466))/9+parseInt(n(463))/10*(-parseInt(n(481))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(v);async function k(t,n,e={}){const r=E,o={HToUo:r(478),abaBi:function(t,n,e){return t(n,e)}},s="https://staging-cexp.cads.live/gamification/"+t,c={Authorization:r(470)+n,...e[r(482)]&&!e[r(480)]?.[o[r(473)]]?{"Content-Type":r(465)}:{}},i=await o[r(474)](fetch,s,{...e,headers:{...c,...e[r(480)]}});if(!i.ok)throw function(t){var n=u,e={jNZnX:function(t,n){return t===n},BKcIO:function(t,n){return t===n},SHdcL:n(105),QrDOd:function(t,n){return t===n},jMjEC:n(109),DRFhZ:n(120),hcQmx:"RATE_LIMIT",nDncf:n(108),MMkSv:function(t,n){return t>=n},PuBbd:"SERVER_ERROR",fJETi:n(110),AuQMd:n(116),cbBDt:"Lỗi không xác định"};switch(!0){case e[n(131)](t,401)||e[n(144)](t,403):return new m(e.SHdcL,"Sai key hoặc không có quyền",t);case e[n(122)](t,404):return new m(e.jMjEC,e[n(125)],t);case e[n(131)](t,429):return new m(e[n(121)],e[n(117)],t);case e[n(126)](t,500):return new m(e[n(112)],e[n(115)],t);default:return new m(e[n(140)],e[n(132)],t)}}(i[r(475)]);return i[r(471)]()}function T(){const t=["405774ExXKRx","70RSEhoh","43279cEldOg","5JiLoAd","2452282uRTZmj","xjqCk","11094710jWFXwi","5216528fBXIQL","882240cFCVqH","6457368fEQpuU","18ucDWrl"];return(T=function(){return t})()}function x(t,n){const e={...t};return n.forEach(t=>{delete e[t]}),e}function C(t,n){const e=T();return(C=function(t,n){return e[t-=371]})(t,n)}function B(t){return{xjqCk:function(t,n){return t!=n}}[C(379)](t,null)}function K(){const t=["length","ublZJ","9YjbkbC","top","126dzOKpT","1561087HReMda","WEyvy","77dczIxo","left","YoAlT","vepRg","right","string","absolute","keys","7269qXBECP","bottom","101270uMbfuj","hETiu","ASMGu","1732070cctAoo","2YVFspr","12900enznjn","2548544qYIBRZ","1178748iYtZVk","2620ndPoGB"];return(K=function(){return t})()}function O(t,n){const e=K();return(O=function(t,n){return e[t-=305]})(t,n)}function j(t){const n=O,e={YoAlT:function(t,n){return t(n)},vepRg:"string",hETiu:function(t,n){return t(n)},ublZJ:function(t,n){return t===n},ASMGu:function(t,n){return t===n},SdSWQ:function(t,n){return t>n},WEyvy:n(323)};if(!t||!e[n(319)](B,t))return{};let r={};return B(t[n(313)])&&(r={...r,top:typeof t[n(313)]===e[n(320)]?t[n(313)]:t.top+"px"}),e[n(328)](B,t[n(318)])&&(r={...r,left:e[n(311)](typeof t.left,e.vepRg)?t[n(318)]:t[n(318)]+"px"}),e.YoAlT(B,t[n(326)])&&(r={...r,bottom:e.ublZJ(typeof t[n(326)],n(322))?t[n(326)]:t[n(326)]+"px"}),e.YoAlT(B,t[n(321)])&&(r={...r,right:e[n(329)](typeof t[n(321)],n(322))?t.right:t[n(321)]+"px"}),e.SdSWQ(Object[n(324)](r)[n(310)],0)&&!t.position&&(r={...r,position:e[n(316)]}),r}!function(t){const n=C,e=t();for(;;)try{if(833162===-parseInt(n(376))/1*(-parseInt(n(375))/2)+parseInt(n(371))/3+parseInt(n(372))/4*(-parseInt(n(377))/5)+parseInt(n(373))/6*(parseInt(n(378))/7)+parseInt(n(381))/8+parseInt(n(374))/9+-parseInt(n(380))/10)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(T),function(t){const n=O,e=t();for(;;)try{if(840076===-parseInt(n(315))/1*(parseInt(n(305))/2)+-parseInt(n(325))/3*(-parseInt(n(309))/4)+-parseInt(n(327))/5+parseInt(n(306))/6*(parseInt(n(314))/7)+parseInt(n(307))/8*(-parseInt(n(312))/9)+-parseInt(n(330))/10*(-parseInt(n(317))/11)+-parseInt(n(308))/12)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(K),function(t){const n=L,e=t();for(;;)try{if(134758===-parseInt(n(220))/1+-parseInt(n(235))/2+parseInt(n(223))/3+-parseInt(n(240))/4+parseInt(n(238))/5*(-parseInt(n(226))/6)+parseInt(n(229))/7+parseInt(n(233))/8*(parseInt(n(221))/9))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(N);const R=(t,n)=>{const e=L,r={ukxnn:e(231)};if(n===o.desktop){const n=t.desktopConfig,o=n[0][e(245)][e(244)](t=>t.type===e(225)),s=n[0].blocks[e(244)](t=>t[e(246)]===e(225))?.[e(232)]?.[0],c={trigger:o?.[e(227)]??{},closeButton:s?.[e(227)]??{}},i=n[1][e(245)]?.[0],a=i?.children?.[e(244)](t=>t[e(246)]===e(228)),u=a?.[e(232)]?.[e(244)](t=>t[e(241)]===e(218)),p=i?.[e(232)]?.[e(244)](t=>"h1"===t[e(246)]),f=i?.children?.[e(244)](t=>t[e(246)]===e(243)),l=i?.[e(232)]?.[e(244)](t=>t[e(241)]===e(224)),h=i?.[e(232)]?.[e(244)](t=>t[e(241)]===e(219)),d=i?.[e(232)]?.[e(244)](t=>t[e(246)]===e(222))?.[e(242)]?.[e(236)]??{title:"",url:""},m=i?.[e(232)]?.[e(244)](t=>t[e(246)]===e(222)),I={modal:i?.[e(227)]??{},wheel:a?.[e(227)]??{},title:p?.styles??{},form:f?.[e(227)]??{},btnSubmit:l?.[e(227)]??{},checkbox:m?.[e(227)]??{},closeModal:h?.styles??{}},g=n[2].blocks?.[0]??{},b=o?.[e(242)]?.[e(239)]??"",y=i?.[e(242)]?.file??"",w=a?.[e(242)]?.[e(239)]??"",v=a?.[e(242)]?.[e(230)]??r[e(234)],E=Number(a?.config?.spinSpeed)||5;return{backgroundTrigger:b,backgroundModal:y,backgroundWheel:w,closeBtn:s,title:p?.[e(237)]??"",rule:d,result:g,spinDirection:v,spinSpeed:E,arrow:u,form:{form:f,checkbox:m,btnSubmit:l},styles:{trigger:c,modal:I}}}return{backgroundTrigger:"",backgroundModal:"",backgroundWheel:"",title:"",result:{},rule:{title:"",url:""},contentCheckbox:""}};function L(t,n){const e=N();return(L=function(t,n){return e[t-=218]})(t,n)}function N(){const t=["checkbox","55449OwIaog","Nút quay","trigger","18Cdvqsg","styles","wheel","1339800kqQxOs","spinDirection","left","children","296GUTFAU","ukxnn","506978FZxSaV","rule","content","122310GHwkHc","file","452384mTXaPK","name","config","form","find","blocks","type","Hình ảnh mũi tên","Đóng popup","224305HquXCk","143307ykUjYv"];return(N=function(){return t})()}function S(t,n){const e=H();return(S=function(t,n){return e[t-=110]})(t,n)}function A(t,n,e,r){const o=S,s={UQirB:function(t,n){return t===n},ocydx:o(114),Ocquo:"Số điện thoại không hợp lệ",fqbeS:o(132),bFinV:o(127),EIjwp:o(142),JoWJo:o(118),MOcxY:function(t,n){return t===n},xToUN:o(189),VYZme:"100%",JaXTV:o(125),pllPK:o(157),sxhQe:function(t,n,e,r){return t(n,e,r)},lYNGm:o(120),JKHDR:o(123),qBPfV:o(200),smrKP:o(116),bOqOK:"column",RmZzZ:o(149),XphKa:function(t,n,e){return t(n,e)},suAyw:o(197),vXjkZ:function(t,n){return t(n)},pRTHy:o(128),xwmBW:o(136),YKrAd:o(119),nIjCP:o(179),uMKqW:o(183),IMwgG:o(131),eUyYb:o(138),UIuVB:o(178),uECyr:o(151),HLrxc:o(147)},c="form-"+n,i=(t,n,e)=>{const r=o,c=t[r(205)].trim();if(!c)return e[r(137)]=r(176),!1;if(s[r(117)](n,s[r(121)])){if(!/^(0|84|\+84)(3|5|7|8|9)([0-9]{8})$/[r(204)](c))return e.innerText=s.Ocquo,!1}if(s[r(117)](n,s[r(124)])){if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/[r(204)](c))return e[r(137)]=s[r(158)],!1}return e[r(137)]="",!0},a=document[o(141)](s[o(133)]);a.id=c,a[o(122)]=o(173)+n,Object.assign(a[o(156)],{position:s[o(145)],display:s[o(170)],flexDirection:s[o(193)],gap:"12px",...t[o(123)][o(139)],...j(t.form[o(139)])});const u=[];t[o(123)][o(146)][o(203)][o(135)](t=>{const e=o,r=document.createElement(e(149));r[e(156)][e(164)]=s[e(111)];const c=document[e(141)](s[e(172)]);c[e(175)]=s[e(159)](t.type,s[e(121)])?s.xToUN:t[e(175)],c[e(194)]=t[e(194)],c[e(113)]=t[e(194)],c[e(122)]=e(162)+n,c[e(156)][e(192)]=s.VYZme,c[e(156)][e(197)]=s[e(160)];const p=document[e(141)]("p");p[e(156)].cssText=s.pllPK,c[e(184)](s[e(172)],()=>i(c,t[e(175)],p)),u[e(182)]({input:c,error:p,type:t.type}),r.appendChild(c),r.appendChild(p),a[e(148)](r)});const p=document.createElement(s.RmZzZ);p[o(122)]=o(163)+n,Object[o(185)](p.style,{...s[o(115)](x,t[o(128)].styles,[s[o(143)]]),...s.vXjkZ(j,t.checkbox[o(139)])});const f=document[o(141)](o(118));f[o(175)]=s.pRTHy,f.id="cb-"+t[o(128)].id,f[o(156)][o(165)]=s[o(177)];const l=document.createElement(s.YKrAd);l.htmlFor=f.id,l[o(137)]=t[o(128)].content,Object[o(185)](l[o(156)],{"font-size":s[o(166)],"font-weight":500,color:s[o(186)]});const h=document.createElement("a");h[o(137)]=t.checkbox.config?.[o(187)][o(188)]??"",h[o(191)]=t[o(128)][o(144)]?.[o(187)][o(140)]??"",h[o(198)]=s[o(195)],h[o(156)][o(169)]=o(110),h[o(156)][o(197)]=o(125);const d=document.createElement("p");d[o(156)][o(174)]=s[o(180)],f[o(184)](s[o(153)],()=>{f.checked&&(d.innerText="")}),p[o(148)](f),p.appendChild(l),p.appendChild(h),p.appendChild(d);const m=document.createElement(s[o(161)]);m[o(175)]=s.HLrxc,m[o(171)](o(123),c),m[o(137)]=t.btnSubmit[o(196)],m[o(122)]="btn-submit "+n,Object[o(185)](m[o(156)],{position:s[o(145)],...t.btnSubmit[o(139)],...j(t.btnSubmit.styles)}),a.addEventListener(s[o(130)],t=>{const n=o;t[n(181)]();let e=!0;const c={};u[n(135)](({input:t,error:r,type:o})=>{const a=n;s[a(190)](i,t,o,r)||(e=!1),c[t[a(113)]]=t[a(205)]}),!f[n(168)]&&(d.innerText=s[n(126)],e=!1),e&&r(c)}),e.appendChild(a),e[o(148)](p),e[o(148)](m)}function H(){const t=["data","submit","appendChild","div","1145106GtFaiF","button","30SIWXeX","UIuVB","1854140Uinvhp","8uYxQnH","style","color: red; font-size: 11px; margin: 4px 0 0 0; white-space: nowrap;","bFinV","MOcxY","JaXTV","uECyr","text-field ","checkbox-container ","position","marginRight","nIjCP","55344QMaGAo","checked","marginLeft","smrKP","setAttribute","JoWJo","dynamic-form ","cssText","type","Trường này không được để trống","xwmBW","change","14px","eUyYb","preventDefault","push","rgb(65, 70, 81)","addEventListener","assign","uMKqW","rule","title","text","sxhQe","href","width","bOqOK","placeholder","IMwgG","content","display","target","189EfhaIs","absolute","103134JhexfW","245745wyeLAc","inputs","test","value","20px","EIjwp","850691vBFred","name","tel","XphKa","flex","UQirB","input","label","Bạn cần đồng ý với chính sách để tiếp tục","ocydx","className","form","fqbeS","block","lYNGm","Email không hợp lệ","checkbox","15584630TRYrHg","HLrxc","_blank","email","JKHDR","11WuQhyt","forEach","8px","innerText","color: red; font-size: 11px; position: absolute; top: 100%; left: 0;","styles","url","createElement","relative","suAyw","config","qBPfV"];return(H=function(){return t})()}function W(){const t=["document","linear","error","uSCym","stringify","AwXBw","matches","content","cexp-wheel-arrow ","bQXKE","Esqtc","button","rotate(0deg)","setProperty","Xem thể lệ","rotate(","div","name","desktop","querySelectorAll","WbCwn","qCWGv","title","UFuDu","forEach","cexp-wheel-shell ","EHpVH","NVsGd","body","aaJrI"," scale(","cexp-wheel ","none","ambgl","text-white hight-light ","flex","#333",".cexp-result-container.","CSS","matchMedia","MPeYY","dvrCz","innerText","1317894jsswDh","JPKXN","--backgroundWheel","offsetWidth","12772179sCKBsv","IvXTV","3810548ZdStSK","cexp-backdrop-wheel ","transformOrigin","removeChild","find","addEventListener","POST","sHYDW","qjwuX","nBVPp","style","DIKiG","DdXHK","transform","b2-medium text-white ","innerHeight","avOIB","max","--backgroundTrigger","6BnrSZB","PNwhk","display","replace","trim","modal-wrapper ","pdLoF","1305888AGUmYI","pVDVb","url(","trigger-btn ","10wqByqF","NvHNg","Failure","iDpbO","--backgroundResult","file","trigger","querySelector","Xin chúc mừng","JFmca","iFbfW","cexp-wrapper ","Ydkqd","ocKnh","remove","2Hwhyjq","scrollHeight","result-header-title ","assign","background","backgroundImage","nneHt","phone","(max-width: 768px)","appendChild","voucher","offsetHeight","center",".modal-wrapper.","aHNwJ","bvHpD","wheel-modal-title","textContent","innerWidth","YZeUS","styles","100%","right","czfTx","PkOlb","className","1109907qzQhod","closeButton","translate(-50%, -50%) scale(","EwGmO","backgroundColor","min","length","Tiêu đề","eqKJO","700305zoQHwc","jaApz","KBIzY","--backgroundResultMb","observe","kwArU","children","modal","Mô tả","createElement","--backgroundModal","emit","close-trigger-btn button-root ","config","scrollWidth","thHNZ","result","5213752cdRJEt","close-modal-btn button-root ","then","vMsuc","BRfGf","--backgroundTriggerMb","EwXAD","ariVK","sUBsY","wheel","translate(-50%, -50%)"];return(W=function(){return t})()}function q(t,n){const e=W();return(q=function(t,n){return e[t-=341]})(t,n)}function G(t){const n=q,e={DIKiG:function(t,n){return t(n)},PNwhk:n(431),jaApz:function(t,n,e){return t(n,e)},kwArU:function(t,n){return t===n},JFmca:n(434),avOIB:n(401),ambgl:function(t,n){return t===n},wbcMF:function(t,n,e){return t(n,e)},NVsGd:n(358),pVDVb:function(t,n){return t-n},BRfGf:function(t,n){return t*n},ocKnh:"div",eqKJO:n(341),uSCym:n(497),JPKXN:n(410),EHpVH:function(t,n){return t||n},yzofj:n(393),IvXTV:function(t,n){return t(n)},thHNZ:n(381),dvrCz:"--backgroundModalMb",GXcZh:n(357),Vaspi:"no-repeat",pdLoF:n(444),CrnAy:n(352),thaDa:function(t,n){return t??n},nneHt:function(t,n,e,r,o){return t(n,e,r,o)},MPeYY:"click",ariVK:function(t){return t()},qCWGv:function(t,n){return t*n},jEcvO:function(t,n){return t-n},iFbfW:function(t,n){return t/n},qjwuX:function(t,n){return t>n},YZeUS:function(t,n,e,r){return t(n,e,r)},EwXAD:"center",EwGmO:function(t,n){return t<n},bvHpD:"top left",AwXBw:function(t,n){return t<n},UFuDu:n(480),BQXIJ:n(344),Esqtc:function(t,n,e){return t(n,e)},aaJrI:n(482),czfTx:function(t,n,e){return t(n,e)},WbCwn:n(366),DdXHK:function(t,n){return t(n)},XrJgd:n(486),PkOlb:function(t,n){return t(n)},jNnLv:n(413),iDpbO:function(t,n){return t(n)},ofqkl:function(t,n){return t>n},NvHNg:n(416),aHNwJ:n(343),bQXKE:function(t){return t()}},{gameConfig:r,apiKey:s,game_id:c,emitter:i}=t;let u,p="";async function f(t){const r=n;u&&e[r(459)](clearInterval,u);try{return await k(y,s,{method:r(454),body:JSON[r(403)]({customer:t,game_id:c})})}catch(o){throw o}}function l(){const t=n,s={sUBsY:e[t(468)],EhAfb:e[t(464)],vMsuc:function(t,n){return t(n)},kgsMf:function(n,r){return e[t(432)](n,r)},nBVPp:e.JFmca};if(!c)return;const l=window[t(438)](t(344))[t(405)],h=document.documentElement,I=e.wbcMF(R,r,o[t(417)]),g=e[t(372)](R,r,o.desktop),{backgroundTrigger:b,closeBtn:y,backgroundWheel:w,backgroundModal:v,title:E,rule:k,form:T,styles:C,spinDirection:B,spinSpeed:K,arrow:O}=I,L=e[t(376)](B,e[t(426)])?-360:360,N=Math[t(465)](500,e[t(475)](5500,e[t(392)](Number(K)||5,500))),{backgroundTrigger:S,backgroundModal:H,backgroundWheel:W,title:q,rule:G}=g,M=document[t(380)](e[t(491)]);M[t(361)]="cexp-gamification "+c,Object[t(496)](M[t(458)],{...x(C?.[t(484)][t(484)],[e.eqKJO,e[t(402)]]),...e.DIKiG(j,C?.[t(484)]?.[t(484)])});const U=document[t(380)](t(415));U[t(361)]=t(477)+c;const X=document.createElement(e[t(443)]);X[t(361)]=t(383)+c,X.innerText=y?.content??"X",Object.assign(X[t(458)],{...C?.[t(484)][t(363)],...e[t(459)](j,C?.[t(484)]?.[t(363)])}),M[t(345)](X),M[t(345)](U),e[t(425)](b,S)&&(h[t(458)][t(412)](t(466),t(476)+b+")"),h[t(458)].setProperty(e.yzofj,"url("+S+")"));const Y=document[t(380)]("div");Y.className=t(489)+c;const J=document[t(380)](e[t(491)]);J[t(361)]=t(472)+c,Object.assign(J.style,{...C?.[t(378)][t(378)],...e[t(447)](j,C?.[t(378)][t(378)])});const z=document[t(380)](t(415));z[t(361)]=t(449)+c;const D=document[t(380)](t(415));D.className="wheel-modal "+c,e[t(425)](v,H)&&(h.style[t(412)](e[t(386)],t(476)+v+")"),h[t(458)][t(412)](e[t(440)],"url("+H+")")),J[t(345)](D);const V=document.createElement(t(410));V.className=t(389)+c;const P=e[t(447)](a,{size:16,fill:t(435)});V[t(345)](P),D.appendChild(V);const Z=document[t(380)](t(415));Z[t(361)]=t(424)+c,Object[t(496)](Z.style,{...e.jaApz(x,C?.[t(378)].wheel,[e.eqKJO,e[t(402)]]),...e[t(447)](j,C?.[t(378)][t(397)])});const F=document[t(380)]("div");if(F[t(361)]=t(430)+c,Object[t(496)](F[t(458)],{width:e.GXcZh,height:t(357),position:"relative",transform:e[t(468)]}),Z[t(345)](F),O){const n=document[t(380)](e[t(491)]);n.className=t(407)+c,Object[t(496)](n.style,{...x(O[t(356)],[e[t(370)],t(497)]),...e.IvXTV(j,O[t(356)]),backgroundImage:O[t(384)]?.[t(483)]?"url("+O[t(384)][t(483)]+")":e.PNwhk,backgroundSize:"contain",backgroundRepeat:e.Vaspi,backgroundPosition:t(348)}),F[t(345)](n)}e[t(425)](w,W)&&(h[t(458)][t(412)](e[t(473)],t(476)+w+")"),h.style[t(412)]("--backgroundWheelMb",t(476)+W+")"));const Q=document[t(380)]("h1");Q.className=e.CrnAy,Q[t(353)]=l?q:e.thaDa(E,""),Object[t(496)](Q[t(458)],{...C?.[t(378)].title,...j(C?.[t(378)][t(421)])});let _=!1;const $=document.createElement("div");$[t(361)]="wheel-form-wrapper absolute px-4 "+c,T&&e[t(342)](A,T,c,D,n=>{const r=t,o={sHYDW:e[r(468)]};!_&&F.animate([{transform:r(411)},{transform:r(414)+L+"deg)"}],{duration:N,easing:r(400),iterations:1/0}),_=!0,!u&&(u=e[r(372)](setInterval,()=>{const t=r,e={Ydkqd:s[t(396)],KBIzY:s.EhAfb};s[t(391)](f,n)[t(390)](n=>{const e=t;J.style[e(469)]=e(431),U.style.display=o[e(455)],m(!0,n),document[e(427)][e(451)](z)}).catch(n=>{const r=t;J[r(458)][r(469)]=e[r(490)],U[r(458)][r(469)]=e[r(490)],m(!1),document.body.removeChild(z),i&&i[r(382)](e[r(373)],n)})},2e3))}),V[t(453)](e[t(439)],()=>{const n=t;e.kwArU(p,c)?(J[n(458)][n(469)]=e[n(468)],U[n(458)][n(469)]=n(431),document[n(427)][n(451)](z)):(J[n(458)].display=e[n(487)],U[n(458)].display=n(431),document[n(427)].removeChild(z)),p=c}),U[t(453)](e.MPeYY,()=>{const n=t;J[n(458)].display=s[n(396)],U[n(458)][n(469)]=s[n(396)],s.kgsMf(p,c)?(J[n(458)].display=s.sUBsY,M[n(458)][n(469)]="none",X.style[n(469)]=s[n(396)]):(J[n(458)][n(469)]=s[n(457)],M[n(458)][n(469)]=n(431),X[n(458)].display=s[n(396)],document[n(427)][n(345)](z)),p=c}),X.addEventListener("click",()=>{const n=t;J[n(458)].display=s[n(396)],U[n(458)][n(469)]=s[n(396)],X[n(458)][n(469)]=s[n(396)]}),D[t(345)](Z),D[t(345)](Q),D[t(345)]($),Y[t(345)](M),Y[t(345)](J),document[t(427)][t(345)](Y),e[t(395)](d)}function h(t,r,o){const s=n,c=window[s(354)]-e[s(420)](o,2),i=e.jEcvO(window[s(463)],2*o);return Math[s(367)](1,e.iFbfW(c,t),e.iFbfW(i,r))}function d(){const t=n,r=window[t(437)]?.escape,o=r?e[t(459)](r,c):c,s=document[t(485)](t(349)+o);if(s){const n=s[t(385)]||s.offsetWidth,r=s[t(494)]||s.offsetHeight;if(n>0&&e[t(456)](r,0)){const o=e[t(355)](h,n,r,16);s[t(458)][t(450)]=e[t(394)],s[t(458)].transform=e[t(365)](o,1)?"translate(-50%, -50%) scale("+o+")":"translate(-50%, -50%)"}}const i=document[t(485)](".cexp-gamification."+o);if(i){const n=i.offsetWidth,r=e[t(392)](window.innerWidth,.35),o=e.qjwuX(n,0)?Math[t(367)](1,e[t(488)](r,n)):1,s=(i[t(458)].transform||"")[t(470)](/\s*scale\([^)]*\)/g,"");i.style[t(450)]=e[t(351)],i[t(458)][t(461)]=e[t(404)](o,1)?(s+t(429)+o+")")[t(471)]():s}const a=document[t(485)](t(436)+o);if(a){const n=a[t(385)]||a[t(445)],r=a[t(494)]||a[t(347)];if(e[t(456)](n,0)&&r>0){const o=e[t(355)](h,n,r,16);a[t(458)][t(450)]=t(348),a[t(458)].transform=o<1?t(364)+o+")":t(398)}}}function m(t,s){const i=n;if(!t)return console[i(401)](e[i(422)]);const u=window.matchMedia(e.BQXIJ)[i(405)],f=document.documentElement,l=e[i(409)](R,r,o.desktop)[i(387)];l?.[i(384)]?.[i(483)]&&(u?f.style[i(412)](i(374),"url("+l?.[i(384)]?.[i(483)]+")"):f.style[i(412)](e[i(428)],i(476)+l?.[i(384)]?.file+")"));const h=l?.children?.[i(452)](t=>t[i(416)]===i(369)),m=l?.[i(377)]?.find(t=>t[i(416)]===i(379)),I=document[i(380)](e.ocKnh);I[i(361)]="cexp-result-container "+c,Object[i(496)](I[i(458)],{...e[i(359)](x,l[i(356)],[e[i(370)],e[i(419)]]),...e[i(460)](j,l[i(356)])});const g=document[i(380)]("h1");g[i(361)]=i(495)+c,g[i(441)]=h?.content??e.XrJgd,Object.assign(g[i(458)],{...h?.[i(356)],...e[i(460)](j,h?.[i(356)])});const b=document[i(380)](e[i(443)]);b[i(361)]="close-result-btn button-root "+c;const y=e[i(360)](a,{size:16,fill:i(435)});b[i(345)](y);const w=document[i(380)](e[i(491)]);w.className=""+c;const v=document[i(380)]("p");v[i(361)]=i(462)+c,v[i(441)]=(s?.[i(421)]??"")+": ";const E=document[i(380)]("a");E[i(361)]=i(433)+c,E[i(441)]=s?.[i(346)]??"",v.appendChild(E);const k=document.createElement(e[i(491)]);k[i(361)]=""+c;const T=document.createElement("a");T[i(361)]=i(433)+c,T.innerText=e.jNnLv;const C=document[i(380)]("h1");C.className=i(495)+c,C[i(441)]=m?.[i(406)]??"",Object[i(496)](C.style,{...m?.styles,...e[i(481)](j,m?.[i(356)])}),w.appendChild(v),I[i(345)](b),I[i(345)](g),I[i(345)](C),I[i(345)](w),I[i(345)](k),b[i(453)](e[i(439)],()=>{const t=i;p="",I.style[t(469)]=e.PNwhk}),document[i(427)][i(345)](I),e[i(395)](d)}function I(){const t=n,r=document[t(418)]('[class*="'+c+'"]');e.ofqkl(r[t(368)],0)&&r[t(423)](n=>n[t(492)]()),p="",u=void 0,e.NvHNg,e[t(350)]}e[n(479)],n(343);new ResizeObserver(t=>{const r=n;e[r(408)](I),e[r(395)](l)})[n(375)](window[n(399)][n(427)])}!function(t){const n=S,e=t();for(;;)try{if(484674===-parseInt(n(112))/1+-parseInt(n(152))/2*(parseInt(n(201))/3)+parseInt(n(154))/4+-parseInt(n(202))/5+-parseInt(n(167))/6*(parseInt(n(199))/7)+parseInt(n(155))/8*(parseInt(n(150))/9)+-parseInt(n(129))/10*(-parseInt(n(134))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(H),function(t){const n=q,e=t();for(;;)try{if(593625===parseInt(n(362))/1*(parseInt(n(493))/2)+parseInt(n(467))/3*(-parseInt(n(474))/4)+parseInt(n(371))/5+parseInt(n(442))/6+parseInt(n(448))/7+parseInt(n(388))/8+-parseInt(n(446))/9*(parseInt(n(478))/10))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(W);const M=U;function U(t,n){const e=X();return(U=function(t,n){return e[t-=337]})(t,n)}function X(){const t=["map","CRfQF","gbfhs","href","492588TjcPld","name","jvkPU","forEach","length","destination","hpVcx","addEventListener","9290556eqvGEr","cbLid","navigation","4WQrWUd","object","game_id","134rLbhhg","1185140IGBUyB","includes","2908842IQRUPS","phone","init","1494736qphoUR","sBpeK","7666tnWZUr","xlwCv",'[class*="',"value","url","227479UAuDbl","remove","navigate"];return(X=function(){return t})()}!function(t){const n=U,e=t();for(;;)try{if(261032===parseInt(n(350))/1*(-parseInt(n(358))/2)+-parseInt(n(370))/3+-parseInt(n(347))/4*(-parseInt(n(351))/5)+-parseInt(n(353))/6+-parseInt(n(363))/7+parseInt(n(356))/8+parseInt(n(344))/9)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(X);const Y={isValid:!1,disabled:!1,errors:[{name:M(337),message:""},{name:M(354),message:""}]};class J{#t;#n;#e;constructor(t){const{apiKey:n,gameConfig:e,emitter:r}=t,o=e;this.#t=o,this.#n=n,this.#e=r,this.formState=Y}#r(t){const n=M,e={xlwCv:function(t,n){return t===n},jvkPU:n(348),CRfQF:function(t,n){return t===n},gbfhs:function(t,n){return t(n)},mcvJy:function(t,n){return t>n}},{allowedUrl:r}=this.#t;if(e[n(359)](typeof r,e[n(338)])&&e[n(359)](r[n(340)],0))G({gameConfig:this.#t,apiKey:this.#n,game_id:this.#t[n(349)],emitter:this.#e});else if(e[n(367)](typeof r,e[n(338)])){const o=r[n(366)](t=>t[n(361)]),s=t??location.href;if(o[n(352)](s))e[n(368)](G,{gameConfig:this.#t,apiKey:this.#n,game_id:this.#t[n(349)],emitter:this.#e});else{const t=document.querySelectorAll(n(360)+this.#t[n(349)]+'"]');e.mcvJy(t[n(340)],0)&&t[n(339)](t=>t[n(364)]())}return}}[M(355)](){const t=M,n={sBpeK:function(t,n){return t!==n},cbLid:t(346),hpVcx:t(365),TDEVA:"locationchange"};let e="";!e&&(this.#r(),e=location[t(369)]),n[t(345)]in window?window[t(346)][t(343)](n[t(342)],r=>{const o=t;n[o(357)](e,r?.destination?.url)&&(this.#r(r?.[o(341)]?.[o(362)]),e=r?.[o(341)]?.url)}):window[t(343)](n.TDEVA,()=>{this.#r(),e=location.href})}}function z(t,n){var e=D();return(z=function(t,n){return e[t-=468]})(t,n)}function D(){var t=["6VryNjr","96440eNIbQW","38847699BcdetL","18CoJYeh","824139KzcEdS","10788911kWEYDE","27YYSRaL","4295570gHIviF","6053360xcORhy","10yftFef","1658064FVJToD"];return(D=function(){return t})()}function V(t,n){var e=P();return(V=function(t,n){return e[t-=301]})(t,n)}function P(){var t=["card","234mLAxmt","PUZZEL","31116474PuRNNi","puzzle","LjcvL","1380452pRgkbu","5973272vWVzKJ","GuBqn","TgUyq","2971662hZohZf","26PDkmzb","CARD","2890065zpyqmN","wheel","100383SGfvIS","248633OewOnR"];return(P=function(){return t})()}!function(t){for(var n=z,e=t();;)try{if(774401===-parseInt(n(478))/1+-parseInt(n(473))/2+-parseInt(n(469))/3*(parseInt(n(475))/4)+-parseInt(n(470))/5+-parseInt(n(474))/6*(parseInt(n(468))/7)+parseInt(n(471))/8*(parseInt(n(477))/9)+-parseInt(n(472))/10*(-parseInt(n(476))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(D),function(t){for(var n=V,e=t();;)try{if(716785===parseInt(n(303))/1*(parseInt(n(316))/2)+-parseInt(n(315))/3+-parseInt(n(311))/4+-parseInt(n(301))/5+-parseInt(n(306))/6*(parseInt(n(304))/7)+-parseInt(n(312))/8+parseInt(n(308))/9)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(P);var Z,F,Q,_=(Z=_||{},Q={NEmnP:(F=V)(317),TgUyq:F(305),GuBqn:F(307),LjcvL:F(309)},Z.WHEEL=F(302),Z[Q.NEmnP]=Q[F(314)],Z[Q[F(313)]]=Q[F(310)],Z);function $(){var t=["TOP_CENTER","BOTTOM_CENTER","center-center","oBysT","center-right","351KGNYDZ","29030smLtYe","lLVQG","188749XzYNFi","bottom-center","BOTTOM_RIGHT","tgTBs","bottom-right","6XvfWIt","4FOxQuj","1915180OqWmII","BOTTOM_LEFT","CENTER_CENTER","105470JQNhJT","bottom-left","top-right","210XkzXiN","top-center","1129840POdQxN","HcKED","TOP_RIGHT","FKTLb","top-left","35008ZXnueM","Tazil","split","oWFGs","XbUAK","rilch","CENTER_LEFT","HMafc","TOP_LEFT","CENTER_RIGHT","13986cUPgLj","9|5|2|4|0|6|1|3|8|7"];return($=function(){return t})()}function tt(t,n){var e=$();return(tt=function(t,n){return e[t-=108]})(t,n)}!function(t){for(var n=tt,e=t();;)try{if(225040===-parseInt(n(112))/1*(-parseInt(n(120))/2)+parseInt(n(144))/3+parseInt(n(129))/4+parseInt(n(121))/5*(-parseInt(n(119))/6)+-parseInt(n(127))/7*(parseInt(n(134))/8)+parseInt(n(111))/9*(parseInt(n(124))/10)+-parseInt(n(114))/11)break;e.push(e.shift())}catch(r){e.push(e.shift())}}($);var nt=(t=>{for(var n=tt,e={HcKED:n(123),jeKzt:n(108),tgTBs:n(142),FKTLb:n(133),oWFGs:n(116),HMafc:n(118),oBysT:n(128),piSSV:n(140),XbUAK:n(115),rilch:n(143),lLVQG:n(131),Tazil:n(126),vPWuJ:n(122),grZmY:n(125)},r=n(145)[n(136)]("|"),o=0;;){switch(r[o++]){case"0":t[e[n(130)]]=e.jeKzt;continue;case"1":t[e[n(117)]]=e[n(132)];continue;case"2":t[e[n(137)]]=e[n(141)];continue;case"3":t[n(146)]=e[n(109)];continue;case"4":t[e.piSSV]="center-left";continue;case"5":t[n(147)]=e[n(138)];continue;case"6":t[e[n(139)]]=n(110);continue;case"7":return t;case"8":t[e[n(113)]]=e[n(135)];continue;case"9":t[e.vPWuJ]=e.grZmY;continue}break}})(nt||{});function et(t,n){var e=rt();return(et=function(t,n){return e[t-=149]})(t,n)}function rt(){var t=["1260518oLAEAr","152zUfkVZ","516ClTuna","605SatZqH","222420TvjqWi","935220hypAYT","132207VrLHOr","3UkrIHZ","299030jpzWGK","93672kRojhe"];return(rt=function(){return t})()}function ot(){const t=["udaop","dCnmZ","4OWQfsw","exports","Error:","XYbUt","3200460YIiyuI","feobG","3878538VbyWwk","parse","HBjKS","tWzKi","GhAkE","4976kfiWgK","history","length","type","game_id","1967MtGvzp","Failed to initialize Gamification SDK","JTBGY","locationchange","init","pushState","object","14204370DePGIb","error","cexp","pushstate","apply","8215650tQWaeS","replaceState","dispatchEvent","Your game not available!","lWSqw","145902ErSoQK","forEach","1515BmAkwm","LMCfK","OWpXy","hvKCJ","xbqUR","Fruhf","undefined","2164OlBRGX","game","hulbf","OwTne","API Key is required"];return(ot=function(){return t})()}!function(t){for(var n=et,e=t();;)try{if(139091===parseInt(n(154))/1+-parseInt(n(156))/2*(parseInt(n(155))/3)+parseInt(n(152))/4+-parseInt(n(151))/5*(parseInt(n(150))/6)+-parseInt(n(158))/7+-parseInt(n(149))/8*(-parseInt(n(157))/9)+parseInt(n(153))/10)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(rt);const st=ct;function ct(t,n){const e=ot();return(ct=function(t,n){return e[t-=261]})(t,n)}!function(t){const n=ct,e=t();for(;;)try{if(739644===-parseInt(n(304))/1+parseInt(n(264))/2*(parseInt(n(306))/3)+-parseInt(n(271))/4*(parseInt(n(275))/5)+parseInt(n(277))/6+-parseInt(n(287))/7*(parseInt(n(282))/8)+-parseInt(n(299))/9+parseInt(n(294))/10)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(ot),function(t){const n=ct,e={eyAcy:n(297),hulbf:"locationchange",rUGgP:"replacestate",ExQtA:"popstate"},r=t[n(292)],o=t[n(300)];t[n(292)]=function(o){const s=n,c=r[s(298)](t,arguments);return window[s(301)](new Event(e.eyAcy)),window[s(301)](new Event(e[s(266)])),c},t[n(300)]=function(r){const s=n,c=o[s(298)](t,arguments);return window[s(301)](new Event(e.rUGgP)),window[s(301)](new Event("locationchange")),c},window.addEventListener(e.ExQtA,()=>{const t=n;window[t(301)](new Event(t(290)))})}(window[st(283)]),function(t,n){const e=st,r={tWzKi:function(t,n){return t===n},xbqUR:"undefined",LMCfK:"function",hvKCJ:function(t,n){return t(n)},JTBGY:function(t,n){return t!==n},oABNs:function(t,n){return t!==n},lWSqw:function(t){return t()}};if(r[e(280)](typeof exports,e(293))&&typeof module!==r[e(261)])module[e(272)]=n();else if(typeof define===r[e(307)]&&define.amd)r[e(309)](define,n);else{(r[e(289)](typeof globalThis,r.xbqUR)?globalThis:t||(r.oABNs(typeof self,r[e(261)])?self:{}))[e(296)]=r[e(303)](n)}}(typeof window!==st(263)?window:void 0,()=>{const t=st,n={HBjKS:t(268),dCnmZ:function(t,n,e){return t(n,e)},Fruhf:t(273),GhAkE:function(t,n,e){return t(n,e)},OwTne:function(t,n){return t===n},XYbUt:function(t,n){return t instanceof n},OWpXy:t(288)};class e extends I{#n;constructor({apiKey:e}){const r=t;super(),!e&&console[r(295)](n[r(279)]),this.#n=e}async#o(){const e=t;try{return n[e(270)](k,"pl/games",this.#n)}catch(r){throw console[e(295)](n[e(262)],r),r}}async#s(e){const r=t;try{const t=(o=e,g(395)+o);return n[r(281)](k,t,this.#n)}catch(s){throw console.error(n[r(262)],s),s}var o}async#c(e){const r=t,o={feobG:function(t,e){return n[ct(267)](t,e)},udaop:r(295)};e[r(305)](async t=>{const n=r;try{const e=await this.#s(t[n(286)]),{config:{gameConfig:r}}=e,s={game_id:t[n(286)],...r?.[n(265)]?JSON[n(278)](r?.[n(265)]):{}};if(s&&o[n(276)](s[n(285)],_.WHEEL)){new J({apiKey:this.#n,gameConfig:s,emitter:this})[n(291)]()}else s&&console.info(n(302))}catch(e){this.emit(o[n(269)],e)}})}async[t(291)](){const e=t;if(this.#n)try{const t=await this.#o();t[e(284)]&&this.#c(t)}catch(r){if(n[e(274)](r,m))throw r;throw new Error(n[e(308)])}}}return e})});
|
package/package.json
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cexp-gamification",
|
|
3
|
-
"files": [
|
|
4
|
-
"dist",
|
|
5
|
-
"README.md",
|
|
6
|
-
"LICENSE",
|
|
7
|
-
"package.json"
|
|
8
|
-
],
|
|
9
|
-
"version": "1.0.1-test.
|
|
10
|
-
"description": "Gamification modules made with love by CExP.fpt.com",
|
|
11
|
-
"main": "main.js",
|
|
12
|
-
"type": "module",
|
|
13
|
-
"scripts": {
|
|
14
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
15
|
-
"dev": "vite",
|
|
16
|
-
"build": "vite build",
|
|
17
|
-
"preview": "vite preview"
|
|
18
|
-
},
|
|
19
|
-
"keywords": [
|
|
20
|
-
"Gamification"
|
|
21
|
-
],
|
|
22
|
-
"author": "Binh Tran Hai",
|
|
23
|
-
"license": "ISC",
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"@playwright/test": "^1.57.0",
|
|
26
|
-
"@types/node": "^25.6.0",
|
|
27
|
-
"path": "^0.12.7",
|
|
28
|
-
"terser": "^5.44.1",
|
|
29
|
-
"typescript": "^5.9.3",
|
|
30
|
-
"vite": "^7.1.12",
|
|
31
|
-
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
32
|
-
"vite-plugin-javascript-obfuscator": "^3.1.0"
|
|
33
|
-
},
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"playwright": "^1.57.0"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "cexp-gamification",
|
|
3
|
+
"files": [
|
|
4
|
+
"dist",
|
|
5
|
+
"README.md",
|
|
6
|
+
"LICENSE",
|
|
7
|
+
"package.json"
|
|
8
|
+
],
|
|
9
|
+
"version": "1.0.1-test.2",
|
|
10
|
+
"description": "Gamification modules made with love by CExP.fpt.com",
|
|
11
|
+
"main": "main.js",
|
|
12
|
+
"type": "module",
|
|
13
|
+
"scripts": {
|
|
14
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
15
|
+
"dev": "vite",
|
|
16
|
+
"build": "vite build",
|
|
17
|
+
"preview": "vite preview"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"Gamification"
|
|
21
|
+
],
|
|
22
|
+
"author": "Binh Tran Hai",
|
|
23
|
+
"license": "ISC",
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@playwright/test": "^1.57.0",
|
|
26
|
+
"@types/node": "^25.6.0",
|
|
27
|
+
"path": "^0.12.7",
|
|
28
|
+
"terser": "^5.44.1",
|
|
29
|
+
"typescript": "^5.9.3",
|
|
30
|
+
"vite": "^7.1.12",
|
|
31
|
+
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
32
|
+
"vite-plugin-javascript-obfuscator": "^3.1.0"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"playwright": "^1.57.0"
|
|
36
|
+
}
|
|
37
|
+
}
|