cexp-gamification 1.0.1-test.0 → 1.0.1-test.1

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 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.
@@ -1,2 +1,2 @@
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;font-family:Inter,sans-serif;font-style:normal}a{cursor:pointer;text-decoration:inherit}button{outline:none;border:none}.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{display:flex;align-items:center;font-size:14px;font-weight:400;line-height:20px;width:100%;height:2.75rem;background-color:#fff;gap:.25rem;border-radius:.5rem;padding:.75rem}.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{position:absolute;width:60px;height:60px;cursor:pointer;border-radius:8px;background-image:var(--backgroundTrigger);background-size:cover;z-index:10000}.close-trigger-btn{position:absolute;bottom:65px;right:5px;width:32px;height:32px;padding:0;border-radius:50%;z-index:10000}.cexp-wrapper{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:600px;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-title{width:321px;right:0;text-align:center;font-size:16px}.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{width:300px;height:300px;border-radius:50%;transform:translate(-251px);background:var(--backgroundWheel);background-size:cover}.close-modal-btn{position:absolute;top:-16px;right:-16px;width:32px;height:32px;padding:0;border-radius:50%}.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;top:50%;left:50%;transform:translate(-50%,-50%);background-image:var(--backgroundResult);background-size:cover!important;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:500!important;color:#fff;min-height:40px;text-align:center}.close-result-btn{position:absolute;top:-10px;right:-10px;width:32px;height:32px;padding:0;border-radius:50%}.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:600px;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-title{width:321px;right:0;text-align:center}.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;bottom:0;right:unset;padding-bottom:20px}.cexp-wheel{min-width:300px;min-height:300px;background:var(--backgroundWheelMb);background-size:cover;border-radius:50%;position:absolute;top:-150px;transform:unset}.close-modal-btn{position:absolute;top:-10px;right:-10px;width:32px;height:32px;padding:0;border-radius:50%}.wheel-modal{position:relative;max-width:calc(100vw - 75px);min-width:350px;min-height:450px;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-policy{text-align:center}.cexp-result-container{background-image:var(--backgroundResultMb)}}')),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(){var n=["175RAoxSe","puzzle","10502557dEuCqE","minwv","lfCnf","card","69354ApFeUZ","3UElsAb","50ivCWSj","16zdHlCQ","2308976ZJfFYU","5532cgREpY","WHEEL","1996049PlYlye","OjyXe","fiVJU","862001lnFBJZ","12oRAEZH","194fDhupS","1245654wquBWW"];return(t=function(){return n})()}function n(e,r){var s=t();return(n=function(t,n){return s[t-=166]})(e,r)}!function(t){for(var e=n,r=t();;)try{if(394173===-parseInt(e(177))/1*(parseInt(e(170))/2)+parseInt(e(166))/3*(parseInt(e(169))/4)+parseInt(e(179))/5*(parseInt(e(185))/6)+parseInt(e(175))/7*(parseInt(e(168))/8)+parseInt(e(178))/9*(parseInt(e(167))/10)+parseInt(e(172))/11*(-parseInt(e(176))/12)+-parseInt(e(181))/13)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(t);var e,r,s,o=(e=o||{},s={lfCnf:(r=n)(171),OjyXe:"wheel",fiVJU:"CARD",minwv:r(184),UmnhQ:r(180)},e[s[r(183)]]=s[r(173)],e[s[r(174)]]=s[r(182)],e.PUZZEL=s.UmnhQ,e);function a(){var t=["UqUqT","crMyI","top-left","bgRvb","bottom-center","6296uHKEOx","top-center","BOTTOM_CENTER","bottom-left","CENTER_CENTER","mid-right","BOTTOM_LEFT","qwfHO","JtygG","1057WOeBve","mid-center","JtLGl","UtcDv","bottom-right","BcZts","885030FWPttw","dDdOE","ZgdeO","630604CRtiRf","TOP_LEFT","UFLIi","1815381iEcpjs","BOTTOM_RIGHT","2214776pxWqRT","fmkne","1889592FQoRKA","ByIMH","Ottsm","619862uynUvH"];return(a=function(){return t})()}function i(t,n){var e=a();return(i=function(t,n){return e[t-=289]})(t,n)}!function(t){for(var n=i,e=t();;)try{if(392489===parseInt(n(302))/1+parseInt(n(312))/2+-parseInt(n(305))/3+-parseInt(n(307))/4+parseInt(n(299))/5+parseInt(n(309))/6+-parseInt(n(293))/7*(-parseInt(n(318))/8))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(a);var c=(t=>{for(var n=i,e={ByIMH:n(320),qwfHO:n(317),dDdOE:n(290),fmkne:n(321),crMyI:"TOP_RIGHT",Ottsm:"mid-left",UFLIi:n(303),UtcDv:n(315),UqUqT:n(306),BcZts:n(297),JtygG:"CENTER_RIGHT",JtLGl:n(289),lNpJS:n(322),bgRvb:n(294),ZgdeO:"TOP_CENTER"},r="1|0|5|3|7|6|4|9|2|8".split("|"),s=0;;){switch(r[s++]){case"0":t[e[n(310)]]=e[n(291)];continue;case"1":t[e[n(300)]]=e[n(308)];continue;case"2":t[e[n(314)]]="top-right";continue;case"3":t.CENTER_LEFT=e[n(311)];continue;case"4":t[e[n(304)]]=e[n(296)];continue;case"5":t[e[n(313)]]=e[n(298)];continue;case"6":t[e[n(292)]]=e[n(295)];continue;case"7":t[e.lNpJS]=e[n(316)];continue;case"8":return t;case"9":t[e[n(301)]]=n(319);continue}break}})(c||{});function u(){var t=["2279496EVRxbr","15FBLiUb","3422052PfKGep","2070505DduPJB","118054KcQVsf","7604992RVnbGH","431111kOcIcU","874650GrjNhO"];return(u=function(){return t})()}function p(t,n){var e=u();return(p=function(t,n){return e[t-=152]})(t,n)}function l(){const t=["height","xmlns","zWBRu","611320LebjHq","316320HBOwgS","toString","1323772HylKLT","9nwzBbV","4019538mgFYcc","lhkEo","1341231bsvIRT","Shape","718617FAWsXE","viewBox","ULcWG","var(--neutral-gray-900)","http://www.w3.org/2000/svg","7riYsYi","size-4","0 0 24 24","class","sLdMh","kJPzi","10nvePQX","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","rmitl","zoDiv","fill","bIZzx","setAttribute","HYIUT","width","Dismiss","29191210OBACUY","createElementNS"];return(l=function(){return t})()}function f(t,n){const e=l();return(f=function(t,n){return e[t-=466]})(t,n)}function d(t){const n=f,e={bIZzx:n(489),kdoaN:n(492),HYIUT:function(t,n){return t||n},lhkEo:n(490),eJFPg:n(470),kJPzi:n(474),zWBRu:n(487),zoDiv:"none",sLdMh:n(471),rmitl:"path",ukcLU:n(485),ULcWG:n(498),QfOnI:n(466)},{size:r=24,fill:s=e[n(467)],className:o=e.kdoaN}=e[n(469)](t,{}),a=e[n(483)],i=document[n(473)](a,"svg");i.setAttribute(e.eJFPg,r.toString()),i[n(468)](e[n(496)],r[n(479)]()),i.setAttribute(e[n(476)],n(493)),i[n(468)](n(466),e[n(500)]),i[n(468)](n(475),a),o&&i.setAttribute(n(494),o);const c=document.createElementNS(a,"g");c.setAttribute("id",e[n(495)]);const u=document[n(473)](a,e[n(499)]);return u.setAttribute("id",e.ukcLU),u[n(468)]("d",e[n(488)]),u[n(468)](e.QfOnI,s),c.appendChild(u),i.appendChild(c),i}function h(t,n){const e=y();return(h=function(t,n){return e[t-=410]})(t,n)}!function(t){for(var n=p,e=t();;)try{if(315141===parseInt(n(155))/1+parseInt(n(153))/2*(parseInt(n(158))/3)+-parseInt(n(157))/4+parseInt(n(152))/5+parseInt(n(159))/6+parseInt(n(156))/7+-parseInt(n(154))/8)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(u),function(t){const n=f,e=t();for(;;)try{if(759139===-parseInt(n(486))/1+-parseInt(n(480))/2+parseInt(n(484))/3+parseInt(n(477))/4+parseInt(n(497))/5*(-parseInt(n(482))/6)+-parseInt(n(491))/7*(parseInt(n(478))/8)+-parseInt(n(481))/9*(-parseInt(n(472))/10))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(l);const m=h;!function(t){const n=h,e=t();for(;;)try{if(507518===-parseInt(n(412))/1+-parseInt(n(418))/2+-parseInt(n(416))/3*(-parseInt(n(414))/4)+parseInt(n(415))/5+parseInt(n(420))/6+parseInt(n(417))/7*(-parseInt(n(421))/8)+parseInt(n(413))/9)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(y);const g=m(411),b=t=>m(419)+t,I=m(410);function y(){const t=["6037578XdrXco","8YbONMi","pl/games/reward","pl/games","18982vYMCbF","1852830huEBAO","428oQnDAy","126195oFbpHX","7941sNbBYa","3956449aBAgbj","857788gQbgDe","pl/games/"];return(y=function(){return t})()}const w=T;function E(){const t=["Content-Type",". Message: ","PROMi","status","14993902iDcBEx","22323iFRphj","1749942rwsgZg","Error:","headers","amrtn","application/json","2QQUPtw","45bEonHz","4ZOKtVc","substring","2279995Uarsri","https://staging-cexp.cads.live/gamification","569zVhodX","PWHpF","114qQQNSF","GET","body","581816efCfyX","json","error","5018060rdHEDb","API Call Failed (","Bearer ","HTTP error! Status: "];return(E=function(){return t})()}!function(t){const n=T,e=t();for(;;)try{if(400780===parseInt(n(145))/1*(-parseInt(n(168))/2)+-parseInt(n(163))/3+parseInt(n(170))/4*(-parseInt(n(172))/5)+-parseInt(n(147))/6*(parseInt(n(162))/7)+parseInt(n(150))/8*(-parseInt(n(169))/9)+parseInt(n(153))/10+parseInt(n(161))/11)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(E);const x=w(173);function T(t,n){const e=E();return(T=function(t,n){return e[t-=145]})(t,n)}async function v(t,n,e={}){const r=w,s={amrtn:r(157),PROMi:r(167)},o=x+"/"+t,a={Authorization:r(155)+n,...e[r(149)]&&!e[r(165)]?.[s[r(166)]]?{"Content-Type":s[r(159)]}:{}},i=await fetch(o,{...e,headers:{...a,...e[r(165)]}});if(!i.ok){const t=await i.text();throw console[r(152)](r(154)+i[r(160)]+"): "+o,t),new Error(r(156)+i.status+r(158)+t[r(171)](0,100))}return i.json()}function k(){const t=["\n top: 20px;\n left: 50%;\n transform: translateX(-50%);\n ","(max-width: 768px)","style","wheel-modal-title absolute px-4 text-white pb-16 ","desktopConfig","532000xVqmOh","test","href","aujmR","error","body","19250ugFrdU","catch","3722990gTdhPt","9195HNXPEW","phone","\n bottom: 20px;\n right: 50%;\n transform: translateX(-50%);\n ","pzsuS","wKBBI","FNqPH","appendChild","BOTTOM_CENTER","chJeE","bottom-right","\n bottom: calc(50% + 55px) ;\n right: 5px;\n transform: translateY(-50%);\n ","\n bottom: 50%;\n right: 20px;\n transform: translateY(-50%);\n ","--backgroundWheelMb","linear","DiAPI","close-modal-btn button-root ","Săn ngay","Xin chúc mừng","--backgroundModalMb","disabled","wheel-modal ","keteW","wyyHz","WWbpK","226004QAcABt","translateX(-251px) rotate(0deg)","translateX(-251px) rotate(360deg)","close-result-btn button-root ","YnmHD","TOP_RIGHT","button","AMqYt","BUvYs","BOTTOM_LEFT",'[class*="',"text-white b1-medium text-underline ","input","yVMNq","vBWrz","display","cexp-gamification ","pzxpS","b2-medium text-white ","JyAuE","document","cexp-wheel ","querySelectorAll","removeChild","autocomplete","placeholder","result-header-title ","\n top: 20px;\n right: 25px;\n ","LaVkZ","\n bottom: 50%;\n left: 20px;\n transform: translateY(-50%);\n ","name","cssText","forEach","errors","documentElement","EtoQo","--backgroundTriggerMb","submit","flex","wrap-text ","replace","matches","DFBKA","ZPBcv","oYmyA","text-white hight-light ","observe","WangB","571410nPNjyn","NXNkm","preventDefault","Nhập số điện thoại","voucher","DISUK","rotate(0deg)","d-flex gap-2 ","type","wheel_result_background","matchMedia","innerText","udxJj","length","Vlkdw","trigger-btn ","pflZT","USgrX","map","addEventListener","rRtTe","Xem thể lệ","Nhập họ và tên","QWJvC","stringify","--backgroundModal","--backgroundTrigger","title","Vui lòng nhập số điện thoại","3216120TOwIlS","value","CENTER_LEFT","../assets/wheel.png","animate","../assets/wheel_trigger.png","CENTER_RIGHT","div","\n top: 20px;\n left: 20px;\n ","none","off","uDrKB","Wpkkt","remove","\n bottom: 20px;\n left: 20px;\n ","\n bottom: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n ","hefSL","../assets/wheel_background.png","error-msg ","setProperty","POST","OSAMW","\n top: 20px;\n left: 65px;\n transform: translateY(-50%);\n ","9hOPMyf","644sGxxfO","url(","createElement","button-root b2-medium bg-black ","--backgroundResultMb","nXGoT","close-trigger-btn button-root ","DhoQL","Số điện thoại không chính xác!","target","then","nDcLv","--backgroundResult","click","\n top: 10px;\n left: calc(50% + 30px);\n transform: translateX(-50%);\n ","#333","className","wheel-form-wrapper absolute px-4 ","\n right: 50%;\n transform: translateX(-50%);\n ","isValid","cexp-result-container ","psEut","MAcAS","gYFpU","text-field ","mobileConfig"];return(k=function(){return t})()}function C(t,n){const e=k();return(C=function(t,n){return e[t-=241]})(t,n)}function W(t){const n=C,e={psEut:function(t,n){return t(n)},Vlkdw:function(t,n,e,r){return t(n,e,r)},FNqPH:n(392),BUvYs:function(t,n){return t(n)},rRtTe:function(t,n,e){return t(n,e)},MAcAS:n(360),haRaA:n(307),DhoQL:"rotate(360deg)",USgrX:n(295),pzxpS:function(t,n){return t===n},hefSL:"flex",nDcLv:function(t,n){return t===n},aujmR:n(250),fIzKG:n(269),AMqYt:n(388),uDrKB:n(386),lEynF:n(400),srRKM:"bottom-right",keteW:"div",vBWrz:n(312),iEQbL:n(257),WWbpK:n(342),GlWEq:function(t,n){return t||n},yVMNq:n(379),gYFpU:n(294),chJeE:function(t,n){return t??n},wKBBI:n(318),ZPBcv:"name",DISUK:"text",WangB:n(393),JyAuE:n(357),stNPR:n(298),OSAMW:n(343),pflZT:function(t,n){return t??n},EtoQo:"_blank",wyyHz:n(255),DFBKA:"Failure",YnmHD:n(246),nXGoT:n(299),iSCFN:function(t,n){return t>n},ueaSf:n(283),udxJj:function(t){return t()},LaVkZ:function(t){return t()}},{gameConfig:r,apiKey:s,game_id:o}=t;let a,i="",u={isValid:!1,disabled:!1,errors:[{name:e.ZPBcv,message:""},{name:n(283),message:""}]};async function p(t){const r=n;a&&e.psEut(clearInterval,a);try{return await e.Vlkdw(v,I,s,{method:r(403),body:JSON[r(378)]({customer:t,game_id:o})})}catch(i){throw i}}function l(t,e,r){const s=n;switch(r){case c.BOTTOM_RIGHT:t[s(270)].cssText="\n bottom: 20px;\n right: 20px;\n ",t.style.cssText="\n bottom: 20px;\n right: 20px;\n ";break;case c[s(289)]:t.style.cssText=s(284),e[s(270)].cssText=s(260);break;case c[s(315)]:t[s(270)][s(337)]=s(397),e[s(270)].cssText="\n left: 65px;\n ";break;case c[s(385)]:t.style.cssText=s(335),e[s(270)][s(337)]="\n bottom: calc(50% + 60px);\n transform: translateY(-50%);\n left: 65px;\n ";break;case c.CENTER_CENTER:t[s(270)][s(337)]=s(398),e[s(270)].cssText="\n bottom: calc(50% + 65px) ;\n left: calc(50% + 40px);\n transform: translate(-50%);\n ";break;case c[s(389)]:t[s(270)][s(337)]=s(293),e.style[s(337)]=s(292);break;case c.TOP_LEFT:t.style[s(337)]=s(391),e.style[s(337)]=s(405);break;case c.TOP_CENTER:t[s(270)].cssText=s(268),e[s(270)][s(337)]=s(256);break;case c[s(311)]:t[s(270)][s(337)]=s(333),e.style[s(337)]="\n top: 10px;\n ";break;default:t[s(270)][s(337)]="\n bottom: 20px !important;\n right: 20px;\n "}}function f(){const t=n,s={NXNkm:e[t(276)],Wpkkt:e[t(287)]};if(!o)return;const c=window[t(364)](e.fIzKG).matches,f=document[t(340)],{desktopConfig:m,mobileConfig:g}=r??{},{backgroundTrigger:b=e[t(313)],triggerPosition:I=t(291),backgroundWheel:y=e[t(394)],backgroundModal:w=e.lEynF,title:E,rule:x={title:"",url:""}}=m,{backgroundTrigger:T,triggerPosition:v=e.srRKM,backgroundModal:k,backgroundWheel:C,title:W,rule:L}=g,O=document[t(244)](t(390));O[t(258)]=t(322)+o;const R=document[t(244)](e.keteW);R[t(258)]=t(369)+o;const P=document[t(244)](e[t(320)]);P.className=t(248)+o,e[t(368)](l,R,P,c?v:I);const N=e[t(314)](d,{size:12,fill:e.iEQbL});P[t(288)](N),O[t(288)](P),O[t(288)](R),(b||T)&&(f[t(270)][t(402)](t(380),t(243)+b+")"),f[t(270)].setProperty(e[t(305)],t(243)+T+")"));const B=document[t(244)](e.keteW);B.className="cexp-wrapper "+o;const F=document[t(244)]("div");F[t(258)]="modal-wrapper "+o;const S=document[t(244)](e.keteW);S.className="cexp-backdrop-wheel "+o;const H=document[t(244)](e[t(303)]);H.className=t(302)+o,e.GlWEq(w,k)&&(f[t(270)][t(402)](e[t(319)],t(243)+w+")"),f[t(270)][t(402)](t(300),t(243)+k+")")),F[t(288)](H);const A=document[t(244)](e[t(320)]);A[t(258)]=t(297)+o;const U=e[t(314)](d,{size:16,fill:t(257)});A.appendChild(U),H[t(288)](A);const M=document.createElement(e.keteW);M[t(258)]=t(327)+o,(y||C)&&(f[t(270)][t(402)]("--backgroundWheel",t(243)+y+")"),f[t(270)][t(402)](e[t(265)],t(243)+C+")"));const z=document[t(244)]("h1");z[t(258)]=t(271)+o,z.textContent=c?W:e[t(290)](E,"");const K=document[t(244)](e[t(303)]),Y=document.createElement("form"),D=document[t(244)](e[t(286)]),Z=document[t(244)](e[t(286)]),G=document[t(244)](e.vBWrz),q=document[t(244)]("a");q[t(258)]="wheel-policy "+o,K[t(258)]=t(259)+o;const j=document.createElement(e.keteW);j.className=t(266)+o,D[t(336)]=e[t(349)],D[t(362)]=e[t(359)],D[t(331)]=t(376),D[t(330)]=e[t(353)],j[t(288)](D);const V=document.createElement(e[t(303)]);V[t(258)]=t(266)+o,Z[t(336)]=t(283),Z[t(362)]=e[t(359)],Z.placeholder=e[t(325)],Z[t(381)]=e[t(325)],Z[t(330)]=t(393);const X=document.createElement("p");if(X[t(258)]=t(401)+o,V.appendChild(Z),G[t(258)]=t(245)+o,G.innerText=e.stNPR,G[t(362)]=e[t(404)],x||L){const{title:n,url:r}=c?L:x;q.className=t(317)+o,q[t(365)]=e[t(370)](n,""),q[t(275)]=e.pflZT(r,""),q.target=e[t(341)]}Y[t(258)]=t(361)+o,Y[t(270)][t(337)]="\n flex-direction: column\n ",Y[t(288)](j),Y.appendChild(V),Y.appendChild(X),Y[t(288)](G),Y[t(288)](q),K.appendChild(Y);let _=!1;Z[t(373)](e[t(286)],n=>{const e=t;Z[e(384)]=Z[e(384)][e(346)](/[^\d+]/g,"");const r=/^(0|84|\+84)(3|5|7|8|9)([0-9]{8})$/[e(274)](n?.[e(251)]?.[e(384)]);r?(X.innerText="",G[e(301)]=!1):(X[e(365)]=s[e(355)],G[e(301)]=!0),u={isValid:r,disabled:!r,errors:u[e(339)]?.[e(372)](t=>{const n=e;return t[n(336)]===n(283)?{...t,message:r?"":n(382)}:t})}}),Y[t(373)](e.OSAMW,async n=>{const r=t,s={pzsuS:e[r(287)],DiAPI:function(t,n){return e[r(314)](t,n)},QWJvC:function(t,n,r){return e.rRtTe(t,n,r)}};n[r(356)]();const o={name:D[r(384)],phone:Z.value};u[r(261)]&&(!_&&M[r(387)]([{transform:c?e[r(264)]:e.haRaA},{transform:c?e[r(249)]:r(308)}],{duration:3e3,easing:e[r(371)],iterations:1/0}),_=!0,G[r(301)]=!0,a||(a=e[r(374)](setInterval,()=>{const t=r,n={oYmyA:s[t(285)],hPHjk:function(n,e,r){return s[t(377)](n,e,r)}};s[t(296)](p,o)[t(252)](e=>{const r=t;F[r(270)][r(321)]=r(392),R[r(270)][r(321)]=n[r(350)],n.hPHjk(h,!0,e),document[r(278)][r(329)](S)})[t(280)](n=>{const e=t;F[e(270)].display="none",R.style[e(321)]=s.pzsuS,s[e(296)](h,!1),document[e(278)][e(329)](S)})},2e3)))}),A.addEventListener(t(255),()=>{const n=t;e[n(323)](i,o)?(F[n(270)][n(321)]=n(392),R[n(270)][n(321)]=n(392),document[n(278)][n(329)](S)):(F[n(270)][n(321)]=e[n(399)],R[n(270)].display=e.FNqPH,document[n(278)][n(329)](S)),i=o}),R[t(373)](e[t(304)],()=>{const n=t;e[n(253)](i,o)?(F.style[n(321)]=n(392),R[n(270)][n(321)]=n(392),P[n(270)][n(321)]=e[n(287)]):(F.style.display=n(344),R[n(270)][n(321)]=e.FNqPH,P.style.display=e[n(287)],document[n(278)].appendChild(S)),i=o}),P[t(373)](e.wyyHz,()=>{const n=t;F.style.display=s[n(395)],R.style.display=n(392),P[n(270)].display=s.Wpkkt}),H.appendChild(M),H[t(288)](z),H[t(288)](K),B[t(288)](F),document[t(278)][t(288)](B),document[t(278)][t(288)](O)}function h(t,s){const a=n;if(!t)return console[a(277)](e[a(348)]);const c=window[a(364)]("(max-width: 768px)")[a(347)],u=document[a(340)],{backdropResult:p}=c?r[a(267)]:r[a(272)]??{};p.wheel_result_background&&(c?u[a(270)].setProperty(e[a(310)],a(243)+p[a(363)]+")"):u[a(270)][a(402)](a(254),a(243)+p[a(363)]+")"));const l=document[a(244)](e[a(303)]);l[a(258)]=a(262)+o;const f=document.createElement(e[a(303)]);f[a(258)]="result-header "+o;const h=document[a(244)](e.keteW);h[a(258)]=a(332)+o,h[a(365)]=p?.[a(381)]??e[a(247)];const m=document[a(244)](e[a(320)]);m[a(258)]=a(309)+o;const g=e[a(263)](d,{size:16,fill:a(257)});m[a(288)](g);const b=document[a(244)](e.keteW);b[a(258)]="wrap-text mb-2 "+o;const I=document[a(244)]("p");I.className=a(324)+o,I[a(365)]=(s?.[a(381)]??"")+": ";const y=document.createElement("a");y[a(258)]=a(351)+o,y[a(365)]=s?.[a(358)]??"",I[a(288)](y);const w=document[a(244)](e.keteW);w.className=a(345)+o;const E=document[a(244)]("a");E[a(258)]=a(351)+o,E[a(365)]=a(375),b[a(288)](I),l.appendChild(f),l[a(288)](m),l[a(288)](h),l[a(288)](b),l.appendChild(w),m[a(373)](e[a(304)],()=>{const t=a;i="",l[t(270)][t(321)]=t(392)}),document[a(278)].appendChild(l)}function m(){const t=n,r=document[t(328)](t(316)+o+'"]');e.iSCFN(r[t(367)],0)&&r[t(338)](n=>n[t(396)]()),i="",a=void 0,u={isValid:!1,disabled:!1,errors:[{name:t(336),message:""},{name:e.ueaSf,message:""}]}}new ResizeObserver(t=>{const r=n;e[r(366)](m),e[r(334)](f)})[n(352)](window[n(326)].body)}!function(t){const n=C,e=t();for(;;)try{if(388161===parseInt(n(279))/1+-parseInt(n(306))/2+-parseInt(n(282))/3*(parseInt(n(242))/4)+parseInt(n(281))/5+-parseInt(n(354))/6+-parseInt(n(273))/7+-parseInt(n(383))/8*(-parseInt(n(241))/9))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(k);const L=O;function O(t,n){const e=P();return(O=function(t,n){return e[t-=167]})(t,n)}!function(t){const n=O,e=t();for(;;)try{if(699744===-parseInt(n(174))/1*(-parseInt(n(186))/2)+-parseInt(n(193))/3+parseInt(n(176))/4*(-parseInt(n(192))/5)+parseInt(n(197))/6*(parseInt(n(175))/7)+parseInt(n(169))/8*(parseInt(n(181))/9)+parseInt(n(178))/10+-parseInt(n(189))/11)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(P);const R={isValid:!1,disabled:!1,errors:[{name:L(168),message:""},{name:"phone",message:""}]};function P(){const t=["init","iuqYO","4722FRlEPv","SfjPA","destination","name","88lYZczf","navigation","XQOer","game_id","forEach","12DBVipU","8806CFmSAX","952808pUBmhH","locationchange","13695890CNEEZQ","value","map","52641xRzTLW","bsIdt","length","url","includes","115686fnYCnw","addEventListener","aKpzW","16622540iWHaod","href",'[class*="',"10ZezVmt","1292406Ibcwqc","object"];return(P=function(){return t})()}class N{#t;#n;constructor(t){const{apiKey:n,gameConfig:e}=t,r=e;this.#t=r,this.#n=n,this.formState=R}#e(t){const n=L,e={WRABM:function(t,n){return t===n},XQOer:function(t,n){return t(n)},iuqYO:function(t,n){return t>n}},{allowedUrl:r}=this.#t;if(e.WRABM(typeof r,n(194))&&0===r[n(183)])e[n(171)](W,{gameConfig:this.#t,apiKey:this.#n,game_id:this.#t[n(172)]});else if(typeof r===n(194)){const s=r[n(180)](t=>t[n(179)]),o=t??location[n(190)];if(s[n(185)](o))W({gameConfig:this.#t,apiKey:this.#n,game_id:this.#t[n(172)]});else{const t=document.querySelectorAll(n(191)+this.#t[n(172)]+'"]');e[n(196)](t[n(183)],0)&&t[n(173)](t=>t.remove())}return}}[L(195)](){const t=L,n={aKpzW:function(t,n){return t!==n},bsIdt:function(t,n){return t in n},wVUrH:"navigate",SfjPA:t(177)};let e="";!e&&(this.#e(),e=location.href),n[t(182)]("navigation",window)?window[t(170)].addEventListener(n.wVUrH,r=>{const s=t;n[s(188)](e,r?.[s(167)]?.[s(184)])&&(this.#e(r?.[s(167)]?.[s(184)]),e=r?.destination?.[s(184)])}):window[t(187)](n[t(198)],()=>{const n=t;this.#e(),e=location[n(190)]})}}function B(t,n){var e=F();return(B=function(t,n){return e[t-=275]})(t,n)}function F(){var t=["2143ZTdyjr","1415385iQFRpS","136UnWqWV","76thzWpT","20IfvEOQ","1404540CGtzLp","659593KDjWPa","207056UrXJsD","86457MiRrZZ","14NiTkIb","49605lsqbmI"];return(F=function(){return t})()}!function(t){for(var n=B,e=t();;)try{if(166459===-parseInt(n(279))/1*(parseInt(n(281))/2)+parseInt(n(276))/3+parseInt(n(282))/4*(parseInt(n(278))/5)+-parseInt(n(284))/6+parseInt(n(277))/7*(parseInt(n(275))/8)+parseInt(n(280))/9+parseInt(n(283))/10*(parseInt(n(285))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(F);const S=A;function H(){const t=["1489083HnqHkW","2478378pmngJs","2rwOByG","135RfzWtd","PXvZE","error","LHlKx","lctvq","locationchange","lmbSO","160dGgliM","undefined","replacestate","7185864cVPxbL","apply","150724pslcFL","Error:","dGLYi","game_id","length","eBBRD","915021pDmcti","mYHoh","dispatchEvent","game","xrVbV","RYPTn","hGybY","110486JvZYvX","API Key is required","pushState","info","QfHMW","object","pushstate","TDPgc","popstate","forEach","type","Your game not available!","kTZkp","init","exports","7152800gDXhyZ","cexp","amd","parse","replaceState"];return(H=function(){return t})()}function A(t,n){const e=H();return(A=function(t,n){return e[t-=276]})(t,n)}!function(t){const n=A,e=t();for(;;)try{if(660068===-parseInt(n(296))/1+parseInt(n(318))/2*(-parseInt(n(316))/3)+-parseInt(n(283))/4*(parseInt(n(319))/5)+parseInt(n(281))/6+parseInt(n(317))/7+-parseInt(n(311))/8+-parseInt(n(289))/9*(-parseInt(n(278))/10))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(H),function(t){const n=A,e={lmbSO:n(276),bdFgr:n(280)},r=t[n(298)],s=t[n(315)];t.pushState=function(s){const o=n,a=r[o(282)](t,arguments);return window.dispatchEvent(new Event(o(302))),window.dispatchEvent(new Event(e[o(277)])),a},t[n(315)]=function(r){const o=n,a=s[o(282)](t,arguments);return window[o(291)](new Event(e.bdFgr)),window[o(291)](new Event(e.lmbSO)),a},window.addEventListener(n(304),()=>{const t=n;window.dispatchEvent(new Event(e[t(277)]))})}(window.history),function(t,n){const e=A,r={QfHMW:function(t,n){return t===n},LHlKx:e(301),RYPTn:function(t,n){return t!==n},jehFh:function(t){return t()},PXvZE:function(t,n){return t===n},hGybY:"function",lOFjS:function(t,n){return t(n)},lctvq:function(t,n){return t!==n},mYHoh:e(279),jwzFT:function(t,n){return t!==n},nIjAF:function(t){return t()}};if(r[e(300)](typeof exports,r[e(322)])&&r[e(294)](typeof module,e(279)))module[e(310)]=r.jehFh(n);else if(r[e(320)](typeof define,r[e(295)])&&define[e(313)])r.lOFjS(define,n);else{(r[e(323)](typeof globalThis,r[e(290)])?globalThis:t||(r.jwzFT(typeof self,r[e(290)])?self:{}))[e(312)]=r.nIjAF(n)}}(typeof window!==S(279)?window:void 0,()=>{const t=S,n={dGLYi:t(297),ewbNn:function(t,n,e){return t(n,e)},hLFWo:function(t,n){return t(n)},TDPgc:function(t,n,e){return t(n,e)},xrVbV:t(284),kTZkp:function(t,n){return t===n},eBBRD:t(307)};class e{#n;constructor({apiKey:e}){const r=t;!e&&console[r(321)](n[r(285)]),this.#n=e}async#r(){const e=t;try{return n.ewbNn(v,g,this.#n)}catch(r){throw console[e(321)]("Error:",r),r}}async#s(e){const r=t;try{const t=n.hLFWo(b,e);return n[r(303)](v,t,this.#n)}catch(s){throw console.error(n[r(293)],s),s}}async#o(e){const r=t;e[r(305)](async t=>{const e=r;try{const r=await this.#s(t[e(286)]),{config:{gameConfig:s}}=r,a={game_id:t[e(286)],...s?.[e(292)]?JSON[e(314)](s?.[e(292)]):{}};if(a&&n[e(308)](a[e(306)],o.WHEEL)){new N({apiKey:this.#n,gameConfig:a})[e(309)]()}else a&&console[e(299)](n[e(288)])}catch(s){console.error(s)}})}async[t(309)](){const n=t;if(this.#n)try{const t=await this.#r();t[n(287)]&&this.#o(t)}catch(e){}}}return e})});
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.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{width:300px;height:300px;transform:translate(-251px);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:.8;position:fixed;z-index:100;width:100%;height:100%;background-color:#000;opacity:.6;top:0;left:0;cursor:pointer}.modal-wrapper{max-width:calc(100vw - 100px);display:none}.wheel-modal-title{width:100%!important}.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;bottom:0;right:unset;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}.cexp-wheel{max-width:300px;max-height:300px;background:var(--backgroundWheelMb);background-size:cover;position:absolute;top:0!important;left:50%!important;transform:translate(-50%,-50%)!important;z-index:2}.close-modal-btn{position:absolute;top:-10px;right:-10px;width:32px;height:32px;padding:0;border-radius:50%;border:none;outline:none}.wheel-modal{position:relative;max-width:calc(100vw - 75px);min-width:350px;min-height:450px;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-policy{text-align:center}.cexp-result-container{background-image:var(--backgroundResultMb);top:50%!important;left:50%!important;transform:translate(-50%,-50%)}}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
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)])}}}})});
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.0",
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": "^24.10.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.1",
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
+ }