cexp-gamification 1.0.1-beta.0 → 1.0.1-beta.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 +1 -1
- package/dist/cexp-web-sdk.js +2 -1
- package/package.json +1 -4
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ For more information check out our [website](https://cexp.fpt.com/)
|
|
|
17
17
|
Include the SDK script directly into your HTML page (usually before the closing `</body>` tag).
|
|
18
18
|
|
|
19
19
|
```html
|
|
20
|
-
<script src="https://cdn.jsdelivr.net/npm
|
|
20
|
+
<script src="https://cdn.jsdelivr.net/npm/cexp-gamification@1.0.1-beta.0/dist/cexp-web-sdk.js"></script>
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## 🚀 Usage
|
package/dist/cexp-web-sdk.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
!function(t){"function"==typeof define&&define.amd?define(t):t()}(function(){"use strict";const t=n;function n(t,e){const s=r();return(n=function(t,n){return s[t-=478]})(t,e)}!function(t){const e=n,r=t();for(;;)try{if(747095===parseInt(e(482))/1+-parseInt(e(487))/2+-parseInt(e(486))/3+parseInt(e(481))/4*(-parseInt(e(485))/5)+-parseInt(e(483))/6+parseInt(e(480))/7+parseInt(e(478))/8)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(r);const e=n=>t(479)+n;function r(){const t=["pl/games/reward","1175NMEUzz","2433876qHBKhs","290454PyhVJT","17055352UnSIOx","pl/games/","3942631vbHrTk","22392PZFMiP","738606SNDFPP","2487684mwKDek"];return(r=function(){return t})()}const s=t(484);function o(t,n){const e=i();return(o=function(t,n){return e[t-=361]})(t,n)}function i(){const t=["27RbdvQM","appendChild","fill","toString","0 0 24 24","2631075UCIiqY","6861912cooGzF","xmlns","ZAixP","610160zvvaLX","932678uyxvbR","class","MVaQd","Shape","YXvut","var(--neutral-gray-900)","height","srxCK","CZbGZ","CAOfk","24hcsnUw","setAttribute","1625334klCGyH","RSaLP","viewBox","none","Vsbyw","1851913gMtZAC","path","createElementNS","http://www.w3.org/2000/svg","width","YFiUF","62195LiQxFm","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-4","DIlVG","FwSDr"];return(i=function(){return t})()}function a(t){const n=o,e={UztaF:n(392),XDTlp:n(374),CAOfk:function(t,n){return t||n},YFiUF:n(369),MVaQd:"svg",ZAixP:n(370),FwSDr:n(393),RSaLP:n(363),DIlVG:n(381),Vsbyw:n(388),srxCK:n(367),YXvut:n(390),CZbGZ:n(379)},{size:r=24,fill:s=e.UztaF,className:i=e.XDTlp}=e[n(396)](t,{}),a=e[n(371)],c=document.createElementNS(a,e[n(389)]);c[n(398)](e[n(385)],r[n(380)]()),c.setAttribute(e[n(376)],r[n(380)]()),c[n(398)](e[n(362)],e[n(375)]),c[n(398)](n(379),n(364)),c[n(398)](n(384),a),i&&c[n(398)](e[n(365)],i);const u=document.createElementNS(a,"g");u.setAttribute("id","Dismiss");const p=document[n(368)](a,e[n(394)]);return p[n(398)]("id",e[n(391)]),p[n(398)]("d",n(373)),p.setAttribute(e[n(395)],s),u[n(378)](p),c[n(378)](u),c}function c(t,n){const e=p();return(c=function(t,n){return e[t-=183]})(t,n)}!function(t){const n=o,e=t();for(;;)try{if(658046===-parseInt(n(387))/1+parseInt(n(361))/2+-parseInt(n(382))/3+parseInt(n(386))/4+-parseInt(n(372))/5+parseInt(n(397))/6*(-parseInt(n(366))/7)+parseInt(n(383))/8*(parseInt(n(377))/9))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(i);const u=c;function p(){const t=["36IBAMeQ","8212810GNnTtI","283577bsytSi","237947kFqBYn","11ZlzFGb","3LYWYDR","1269Uiauhc","110632yRtJrk","304814qiMZMf","gamification_played_campaign_","192YIOgFY","1445249hVfDFY","removeItem","10tGETSO","15624ZisvxK","setItem"];return(p=function(){return t})()}!function(t){const n=c,e=t();for(;;)try{if(590142===-parseInt(n(194))/1+-parseInt(n(183))/2*(parseInt(n(196))/3)+parseInt(n(198))/4*(parseInt(n(188))/5)+-parseInt(n(191))/6*(-parseInt(n(193))/7)+parseInt(n(189))/8*(-parseInt(n(197))/9)+parseInt(n(192))/10*(-parseInt(n(195))/11)+-parseInt(n(185))/12*(-parseInt(n(186))/13))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(p);const h=t=>localStorage[u(190)](u(184)+t,"true"),l=t=>localStorage.getItem(u(184)+t),f=t=>localStorage[u(187)](u(184)+t),d=g;!function(t){const n=g,e=t();for(;;)try{if(883130===parseInt(n(327))/1+-parseInt(n(323))/2+parseInt(n(312))/3*(parseInt(n(325))/4)+-parseInt(n(322))/5*(-parseInt(n(309))/6)+parseInt(n(306))/7*(parseInt(n(316))/8)+-parseInt(n(311))/9+-parseInt(n(310))/10*(parseInt(n(324))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(m);function m(){const t=["VITE_API_URL","985flMMDa","1827136XMtJeU","363561sYCJff","36hSyOcq","substring","1093212dGLcGZ","error","headers","266fyPsgb","MonWv","text","53538jNPNtl","670jwbbwh","7694505HcniZR","279183LQIRJa","application/json","status",". Message: ","247888YUCsBS","Content-Type","body","API Call Failed (","env"];return(m=function(){return t})()}function g(t,n){const e=m();return(g=function(t,n){return e[t-=306]})(t,n)}const I={env:{VITE_API_URL:"http://10.69.3.64:8123"}}[d(320)][d(321)];async function b(t,n,e={}){const r=d,s={MonWv:r(317),SOGfK:r(313)},o=I+"/"+t,i={"X-Client-Key":n,...e[r(318)]&&!e[r(329)]?.[s[r(307)]]?{"Content-Type":s.SOGfK}:{}},a=await fetch(o,{...e,headers:{...i,...e[r(329)]}});if(!a.ok){const t=await a[r(308)]();throw console[r(328)](r(319)+a.status+"): "+o,t),new Error("HTTP error! Status: "+a[r(314)]+r(315)+t[r(326)](0,100))}return a.json()}const y=k;function x(){const t=["display","xPgvo","11QMSoyR","VtzvS","4jltsEJ","screen","Xin chúc mừng","value","gDrlW","map","text-white b1-medium","Failure","nYsKY","addEventListener","Tab","off","className","formState","wrap-text","text-white hight-light","\n width: 300px;\n height: 300px;\n background: url(","../assets/wheel.png","stringify","innerText",");\n background-size: cover;\n background-repeat: no-repeat;\n display:flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n ","pxbSv","style","phone","pZIYV","b2-medium text-white","YUCZq","TsojS","div","ZGFkE","qsPov","111646nMGJur","\n position: absolute;\n top: -16px;\n right: -16px;\n width: 32px;\n height: 32px;\n padding: 0;\n border-radius: 50%;\n ","\n position: absolute;\n bottom: 20px;\n right: 20px;\n width: 60px;\n height: 60px;\n cursor: pointer;\n border-radius: 8px\n ","4006035tVzTJo","\n display: none;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n ","MfKzg","3654610epWGPu","aiRcJ","text-field ","XqqhO","absolute px-4","677574USiXnL","\n position: absolute;\n bottom: 65px;\n right: 5px;\n width: 32px;\n height: 32px;\n padding: 0;\n border-radius: 50%;\n z-index: 1;\n ","EiJKy","NafhT","POST","615921HPSIbi","appendChild","wrFfq","text","createElement","preventDefault","kKicP","cover","tUGzf","key","Xem thể lệ","Săn ngay","errors","avuYz","qBRXx","14HyVRbe","\n position: relative;\n width: 100%;\n height: 90vh;\n ","10116880Wkelvi","rxkFh","linear","AbbDp","XUnaK","Vui lòng nhập số điện thoại","isValid","XjidG","config","absolute px-4 text-white pb-16","EpVMn","NLfnv","backdropResult","\n width:321px;\n right: 0;\n bottom: 0;\n padding-bottom:20px\n ","\n flex-direction: column\n ",");\n background-size: cover;\n border-radius: 50%;\n transform: translateX(-251px);\n ","DrNhm","backgroundSize","button","body","kIWCX","ctXlD","form","mfTDv","\n position: relative;\n aspect-ratio: ","\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-image: url(","none","aahch","button-root b2-medium bg-black","translateX(-251px) rotate(360deg)","^(0|+84)(3[2-9]|5[6|8|9]|7[0|6-9]|8[1-5]|9[0-9])[0-9]{7}$","wheel_result_background","Đội ngũ tư vấn sẽ liên hệ qua số điện thoại và gửi mã sử dụng đến bạn.\n Hoặc gọi tổng đài miễn phí 1800.6601 để được hỗ trợ nhanh hơn nhé.","nCwXA","OQidE","ySlSW","headerTitle","d-flex gap-2","2cvAbqr","ZNmul","target","pattern","animate","button-root","wHYpv","5775440ereVij","flex","type","Zhdom","alert","\n width: 321px;\n right: 0;\n text-align: center;\n ","qGGUd","cssText","../assets/wheel_background.png","input",");\n background-size: cover !important;\n background-repeat: no-repeat !important;\n background-position: 50% 50% !important;\n background-color: rgba(255, 255, 255, 0) !important;\n width: 320px;\n ","catch","mHoYf","TfagW","\n background: url('../assets/wheel_text.png');\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center;\n width: 100%;\n max-width: calc(70%);\n height: 30%;\n top: 0;\n right: 0;\n ","WWFhh","GUdPL","disabled","then","placeholder",";\n width: 600px;\n min-height:400px;\n height:100%;\n background-image: url(","game_id","submit","HYURZ","../assets/wheel_trigger.png","IkMWG","#333","click","translateX(-251px) rotate(0deg)","apKrK","fboJa","href","backgroundImage","title","ArrowRight","SUQJa","labAO","\n position: absolute;\n top: -10px;\n right: -10px;\n width: 32px;\n height: 32px;\n padding: 0;\n border-radius: 50%;\n ","SOkZn","BzlRO","AoOJh","absolute","name","keydown"];return(x=function(){return t})()}!function(t){const n=k,e=t();for(;;)try{if(425384===-parseInt(n(593))/1*(parseInt(n(507))/2)+-parseInt(n(452))/3*(-parseInt(n(562))/4)+-parseInt(n(442))/5+parseInt(n(447))/6*(-parseInt(n(467))/7)+parseInt(n(514))/8+-parseInt(n(439))/9+parseInt(n(469))/10*(parseInt(n(560))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(x);const v={isValid:!1,disabled:!1,errors:[{name:"name",message:""},{name:y(585),message:""}]};class w{#t=!1;#n=void 0;#e;#r="";constructor(t){const n=y,{clientId:e,gameConfig:r}=t;this.#r=e,this.#e=r,this[n(575)]=v}async#s(t){const n=y,e={fboJa:function(t,n){return t(n)},SOkZn:function(t,n,e,r){return t(n,e,r)},xPgvo:n(451)};this.#n&&e[n(544)](clearInterval,this.#n);try{return await e[n(552)](b,s,this.#r,{method:e[n(559)],body:JSON[n(580)]({customer:t,game_id:this.#e[n(535)]})})}catch(r){throw r}}#o(){const t=y,n={qGGUd:t(474),OJKrX:"Delete",Zhdom:"Escape",WSwWl:"Enter",GUdPL:"ArrowLeft",Zujsi:t(548),AbbDp:t(495),BxYfy:t(542),BtBxw:t(498),jtgki:t(471),meQEy:function(t,n,e){return t(n,e)},HYURZ:t(515),XjidG:"block",VnqhX:t(538),aiRcJ:t(579),IkMWG:t(522),EiJKy:t(590),SUQJa:t(487),cnZDe:"button-root",qsPov:function(t,n){return t(n)},ctXlD:t(459),VFBMv:t(540),NLfnv:t(478),YUCZq:function(t,n){return t??n},XqqhO:t(555),ojYVv:t(491),TfagW:t(523),BzlRO:t(446),wrFfq:"text-field",tUGzf:t(556),apKrK:"Nhập họ và tên",TsojS:t(573),bjVsR:"phone",wHYpv:t(455),mHoYf:"Nhập số điện thoại",WWFhh:t(499),aahch:t(497),AoOJh:t(463),nYsKY:t(536),yBbnD:t(462),TvaAr:"https://fptshop.com.vn/tin-tuc/tin-khuyen-mai/minigame-chao-khach-hang-moi-trung-voucher-den-200k-190260",MfKzg:"_blank",OQidE:t(557),EpVMn:t(541)},{backgroundTrigger:e=n.VnqhX,backgroundWheel:r=n[t(443)],backgroundModal:s=n[t(539)],title:o}=this.#e[t(477)]??{},i=document.createElement(n[t(449)]),c=document[t(456)](n[t(449)]);c[t(584)][t(521)]=t(438);const u=document[t(456)](n[t(549)]);u.className=n.cnZDe,u[t(584)][t(521)]=t(448);const p=n[t(592)](a,{size:12,fill:"#333"});u.appendChild(p),i[t(453)](u),i[t(453)](c),e&&(c[t(584)][t(546)]="url("+e+")",c.style[t(486)]=n[t(490)]);const l=document[t(456)](n[t(449)]);l[t(584)][t(521)]=t(468);const d=document[t(456)](t(590));d.style[t(521)]=t(440);const{width:m,height:g}=window[t(563)],I=document[t(456)](n.EiJKy);I[t(584)].cssText=t(493)+1300+"/760"+t(534)+s+t(582),d[t(453)](I);const b=document[t(456)]("button");b[t(574)]=t(512),b[t(584)][t(521)]=t(437);const x=a({size:16,fill:n.VFBMv});b[t(453)](x),I[t(453)](b);const v=document[t(456)](n[t(449)]);v[t(584)][t(521)]=t(578)+r+t(484);const w=document[t(456)]("h1");w.className=n[t(480)],w.style[t(521)]=t(519),w.innerText=n[t(588)](o,"");const k=document[t(456)](n[t(449)]);k.className=n[t(445)],k[t(584)][t(521)]=t(528);const C=document.createElement(n[t(449)]),S=document[t(456)](n.ojYVv),E=document.createElement(n[t(527)]),T=document[t(456)](n[t(527)]),X=document[t(456)](n[t(549)]),L=document[t(456)]("a");C[t(574)]=n[t(553)],C[t(584)].cssText=t(482);const Y=document.createElement(n.EiJKy);Y[t(574)]=n[t(454)],E[t(556)]=n[t(460)],E[t(516)]="text",E[t(533)]=n[t(543)],E.autocomplete=n[t(589)],Y[t(453)](E);const D=document.createElement(n.EiJKy);D[t(574)]=t(444),T.name=n.bjVsR,T[t(516)]=n[t(513)],T.placeholder=n[t(526)],T[t(510)]=n[t(529)],T[t(547)]=n[t(526)],T.autocomplete=n[t(589)],D[t(453)](T),X[t(574)]=n[t(496)],X[t(581)]=n[t(554)],X[t(516)]=n.nYsKY,L[t(574)]=t(568),L[t(581)]=n.yBbnD,L[t(545)]=n.TvaAr,L[t(509)]=n[t(441)],S.className=t(506),S[t(584)].cssText=t(483),S[t(453)](Y),S[t(453)](D),S.appendChild(X),S[t(453)](L),C.appendChild(S);let O=!1;T[t(571)](n[t(503)],e=>{const r=t,s={mfTDv:function(t,n){return t===n},labAO:"phone",cZpXL:n[r(520)]};if(["Backspace",n.OJKrX,r(572),n[r(517)],n.WSwWl,n[r(530)],n.Zujsi].includes(e.key))return;const o=/^[0-9]$/.test(e[r(461)]);this[r(575)]={isValid:o,disabled:!o,errors:this[r(575)][r(464)]?.[r(567)](t=>{const n=r;return s[n(492)](t[n(556)],s[n(550)])?{...t,message:o?"":s.cZpXL}:t})},!/^[0-9]$/.test(e.key)&&e[r(457)]()}),S[t(571)](n[t(570)],async e=>{const r=t,s={XUnaK:n[r(472)],ySlSW:function(t,n){return t(n)},qBRXx:function(t,n){return t(n)}};e.preventDefault();const o={name:E[r(565)],phone:T[r(565)]};this.formState[r(475)]&&(!O&&v[r(511)]([{transform:n.BxYfy},{transform:n.BtBxw}],{duration:3e3,easing:n.jtgki,iterations:1/0}),O=!0,X[r(531)]=!0,this.#n||(this.#n=n.meQEy(setInterval,()=>{const t=r,n={pxbSv:s[t(473)],DrNhm:function(n,e){return s[t(504)](n,e)},JEHpc:function(n,e){return s[t(466)](n,e)}};this.#s(o)[t(532)](e=>{const r=t;d[r(584)].display=n[r(583)],c[r(584)].display=n[r(583)],this.#i(!0,e),n[r(485)](h,this.#r)})[t(525)](e=>{const r=t;d[r(584)][r(558)]=n[r(583)],c.style[r(558)]=n[r(583)],this.#i(!1),n.JEHpc(f,this.#r)})},2e3)))}),b[t(571)]("click",()=>{const e=t;this.#t?(d.style[e(558)]=n[e(472)],c[e(584)][e(558)]=n[e(472)]):(d.style[e(558)]=n[e(537)],c[e(584)][e(558)]="none"),this.#t=!this.#t}),c[t(571)](n[t(479)],()=>{const e=t;this.#t?(d[e(584)].display=n[e(472)],c[e(584)][e(558)]=n[e(476)],u[e(584)][e(558)]=e(495)):(d[e(584)][e(558)]=n[e(537)],c[e(584)][e(558)]=n.AbbDp,u[e(584)][e(558)]=n[e(472)]),this.#t=!this.#t}),u.addEventListener(n[t(479)],()=>{const e=t;d.style.display=n[e(472)],c[e(584)][e(558)]=n[e(472)],u.style[e(558)]=n.AbbDp}),I.appendChild(v),I.appendChild(k),I[t(453)](w),I[t(453)](C),l[t(453)](d),document[t(488)][t(453)](l),document[t(488)].appendChild(i)}#i(t,n){const e=y,r={nCwXA:"none",gDrlW:"../assets/wheel_result_background.png",rxkFh:e(564),NafhT:e(590),ZNmul:e(512),ZGFkE:function(t,n){return t(n)},kKicP:"#333",kIWCX:e(576),avuYz:e(587),VtzvS:e(577),xsCgk:"Xem thể lệ>>",pZIYV:e(541)};if(!t)return window[e(518)](e(569));const s=this.#e?.[e(477)]?.[e(481)]?.[e(500)]??r[e(566)],o=this.#e?.[e(477)]?.[e(481)]?.[e(505)]??r[e(470)],i=document[e(456)](r[e(450)]);i[e(584)][e(521)]=e(494)+s+e(524);const c=document[e(456)](r[e(450)]);c.style[e(521)]="\n position: relative;\n display: block;\n min-height: 215px;\n ";const u=document[e(456)](r.NafhT);u[e(584)][e(521)]="\n display: block;\n font-weight: 500 !important;\n color: #fff;\n min-height: 40px;\n text-align: center;\n ",u[e(581)]=o;const p=document[e(456)](e(487));p[e(574)]=r[e(508)],p.style[e(521)]=e(551);const h=r[e(591)](a,{size:16,fill:r[e(458)]});p[e(453)](h);const l=document[e(456)](e(590));l.className=r.kIWCX;const f=document.createElement("p");f.className=r[e(465)],f[e(581)]=(n?.[e(547)]??"")+": ";const d=document[e(456)]("a");d.className=r[e(561)],d.innerText=n?.voucher??"",f[e(453)](d);const m=document[e(456)](r[e(450)]);m[e(574)]=r[e(489)];const g=document[e(456)]("p");g.className=r.avuYz,g[e(581)]=e(501);const I=document[e(456)]("a");I[e(574)]=r[e(561)],I[e(581)]=r.xsCgk,g[e(453)](I),l.appendChild(f),m[e(453)](g),i[e(453)](c),i[e(453)](p),i[e(453)](u),i[e(453)](l),i[e(453)](m),p[e(571)](r[e(586)],()=>{const t=e;this.#t=!1,i[t(584)][t(558)]=r[t(502)]}),document.body.appendChild(i)}async init(){this.#o()}}function k(t,n){const e=x();return(k=function(t,n){return e[t-=437]})(t,n)}function C(t,n){var e=S();return(C=function(t,n){return e[t-=444]})(t,n)}function S(){var t=["1eCXCRX","2024082LrBzxu","2414454yicDQX","2177VomLhC","20184aRZnIw","2638431ZOZMCD","2983605nWKjGW","1419NeIuXh","50530DpEEDE","330288BdBSAF","36oaAZow"];return(S=function(){return t})()}function E(){var t=["CARD","786032OPcOKY","450681ohuHnV","Bnasz","17785YvwRDX","GwTiJ","523386Jjqzqs","WHEEL","7580uEBYEk","478244kRwFtZ","12mLUHJf","296sxReCo","830pMtexF","puzzle","76338hLvGFU","card"];return(E=function(){return t})()}function T(t,n){var e=E();return(T=function(t,n){return e[t-=328]})(t,n)}!function(t){for(var n=C,e=t();;)try{if(577800===parseInt(n(448))/1*(parseInt(n(449))/2)+parseInt(n(447))/3*(parseInt(n(446))/4)+-parseInt(n(454))/5+-parseInt(n(450))/6+parseInt(n(451))/7*(-parseInt(n(452))/8)+-parseInt(n(453))/9+parseInt(n(445))/10*(parseInt(n(444))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(S),function(t){for(var n=T,e=t();;)try{if(557500===-parseInt(n(331))/1+parseInt(n(330))/2*(parseInt(n(332))/3)+-parseInt(n(333))/4*(-parseInt(n(342))/5)+parseInt(n(328))/6+parseInt(n(340))/7+-parseInt(n(339))/8+-parseInt(n(336))/9*(-parseInt(n(334))/10))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(E);var X,L,Y,D=(X=D||{},Y={Bnasz:(L=T)(338),fbPOc:L(337),GwTiJ:L(335)},X[L(329)]="wheel",X[Y[L(341)]]=Y.fbPOc,X.PUZZEL=Y[L(343)],X);function O(){var t=["190324BSlfSq","30kiYrvl","803058hgTnfI","2024HtWDQy","25003LsUBIs","3320880rQNoVf","7CrpkPM","24iFNUWN","7875290TaTHip","7932XqRgdV","57123gvyVKR","15761tiBSEI"];return(O=function(){return t})()}function V(t,n){var e=O();return(V=function(t,n){return e[t-=297]})(t,n)}!function(t){for(var n=V,e=t();;)try{if(818800===parseInt(n(305))/1*(parseInt(n(301))/2)+parseInt(n(307))/3*(parseInt(n(306))/4)+-parseInt(n(299))/5+parseInt(n(308))/6*(parseInt(n(300))/7)+parseInt(n(297))/8*(-parseInt(n(304))/9)+parseInt(n(302))/10+-parseInt(n(298))/11*(-parseInt(n(303))/12))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(O);const A=M;function M(t,n){const e=U();return(M=function(t,n){return e[t-=208]})(t,n)}!function(t){const n=M,e=t();for(;;)try{if(749627===parseInt(n(231))/1*(parseInt(n(208))/2)+-parseInt(n(217))/3*(-parseInt(n(247))/4)+-parseInt(n(232))/5*(-parseInt(n(214))/6)+-parseInt(n(226))/7+parseInt(n(237))/8*(-parseInt(n(210))/9)+-parseInt(n(248))/10+-parseInt(n(234))/11*(parseInt(n(252))/12))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(U);var R={env:{VITE_API_URL:A(223)}};function U(){const t=["env","clevertap","MjkpL","278DAeaMD","65FGrhHK","OhKSs","397705pkgEJE","getAttribute","MALQU","720088unGGPp","Error:","rwgem","info","init","function","wMfJr","exports","HTTP error! status: ","TWCao","4wafCjX","2116750OFaBHu",'Missing client_id. Did you miss data-client-id="YOU_CLIENT_ID" in script tag?',"rMYje","QyVSp","120jAFEGd","VITE_API_URL","undefined","game_id","error","object","6418nimoqJ","XSYlv","36fUQccl","qonuB","yNaPA","querySelector","527934rPwCXs","script[data-client-id]","Your game not available!","1724901utXroA","Missing config fetching","currentScript","forEach","status","amd","http://10.69.3.64:8123","ibIII","json","6496210YaksHY","TRUeV"];return(U=function(){return t})()}!function(t,n){const e=A,r={OhKSs:function(t,n){return t===n},ibIII:function(t,n){return t!==n},XDxiQ:e(254),TRUeV:e(242),wMfJr:function(t){return t()}};if(r.OhKSs(typeof exports,e(257))&&r.ibIII(typeof module,r.XDxiQ))module[e(244)]=n();else if(r[e(233)](typeof define,r[e(227)])&&define[e(222)])define(n);else{(r.ibIII(typeof globalThis,r.XDxiQ)?globalThis:t||(r[e(224)](typeof self,e(254))?self:{}))[e(229)]=r[e(243)](n)}}(typeof window!==A(254)?window:void 0,()=>{const t=A,n={QyVSp:function(t,n,e){return t(n,e)},TWCao:t(238),rPfEl:function(t,n){return t(n)},CQbch:t(216),qonuB:function(t){return t()},XSYlv:t(215),yNaPA:t(249),MALQU:t(218),MjkpL:function(t,n){return t(n)}},r=R[t(228)][t(253)],s=document[t(219)]||document[t(213)](n[t(209)]),o=s?.[t(235)]("data-client-id")??"";if(!o)return console.error(n[t(212)]);if(!r)return console[t(256)](n[t(236)]);function i(){const e=t;try{return n[e(251)](b,"pl/games",o)}catch(r){throw console[e(256)](n[e(246)],r),r}}function a(r){const s=t;try{const t=n.rPfEl(e,r);return n[s(251)](b,t,o)}catch(i){throw console[s(256)](n[s(246)],i),i}}!n[t(230)](l,o)&&n.qonuB(async function(){const e=t;try{const r=await n[e(211)](i);r.length&&function(e){const r=t,s={rMYje:function(t,n){return t(n)},rwgem:n.CQbch};e[r(220)](async t=>{const n=r;try{const e=await s[n(250)](a,t[n(255)]);e&&t.type===D.WHEEL?new w({clientId:o,gameConfig:e})[n(241)]():e&&console[n(240)](s[n(239)])}catch(e){console[n(256)](e)}})}(r)}catch(r){}})})});
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode("*{box-sizing:border-box}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}.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}.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}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
|
+
!function(n){"function"==typeof define&&define.amd?define(n):n()}(function(){"use strict";const n=e;!function(n){const t=e,r=n();for(;;)try{if(390043===parseInt(t(425))/1+parseInt(t(422))/2*(-parseInt(t(417))/3)+-parseInt(t(418))/4*(-parseInt(t(419))/5)+-parseInt(t(420))/6*(-parseInt(t(421))/7)+-parseInt(t(426))/8+parseInt(t(424))/9*(parseInt(t(428))/10)+parseInt(t(430))/11*(parseInt(t(423))/12))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(s);const t=n(429);function e(n,t){const r=s();return(e=function(n,t){return r[n-=417]})(n,t)}const r=n=>"pl/games/"+n;function s(){const n=["5880xkpFhQ","1165Yprukv","15474IgptVI","700QwzBKe","8nAGIQU","552204aYvHai","123435HAYhJk","102323vOSTGI","6030176MGsQXC","pl/games/reward","310APoPCW","pl/games","11HWcwkv","22575AMjDKG"];return(s=function(){return n})()}const o=n(427);function i(n,t){const e=a();return(i=function(n,t){return e[n-=406]})(n,t)}function a(){const n=["95130gISEYC","Dismiss","144CpmqJV","112YmTvwJ","rekmD","SjAiK","svg","5786766oZxVaa","createElementNS","fill","SbtRL","toString","viewBox","OjvAT","aetmY","xmlns","var(--neutral-gray-900)","ljRey","appendChild","5990MGbvKQ","nKUke","setAttribute","aSKAG","30PIefni","class","width","125124dmDFsw","1389117rAwHsc","gUVsM","size-4","http://www.w3.org/2000/svg","AJgaT","3665968gIsejA","24439uaRfhw","517CgILYu","mryTD","none","BInMn","vMGLh"];return(a=function(){return n})()}function c(n){const t=i,e={AJgaT:t(407),BInMn:t(420),nKUke:function(n,t){return n||t},OjvAT:t(421),SbtRL:t(436),ajbbg:"height",vMGLh:t(442),gUVsM:t(439),SjAiK:t(427),mryTD:t(406),aSKAG:t(415),rekmD:t(431),ljRey:"path",aetmY:"Shape"},{size:r=24,fill:s=e[t(422)],className:o=e[t(428)]}=e[t(411)](n,{}),a=e[t(443)],c=document[t(438)](a,e[t(440)]);c.setAttribute(t(416),r[t(441)]()),c[t(412)](e.ajbbg,r[t(441)]()),c[t(412)](e[t(429)],"0 0 24 24"),c[t(412)](e[t(419)],e[t(435)]),c[t(412)](e[t(426)],a),o&&c.setAttribute(e[t(413)],o);const p=document[t(438)](a,"g");p[t(412)]("id",e[t(434)]);const u=document[t(438)](a,e[t(408)]);return u[t(412)]("id",e[t(444)]),u[t(412)]("d","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"),u[t(412)](e[t(419)],s),p[t(409)](u),c[t(409)](p),c}!function(n){const t=i,e=n();for(;;)try{if(460027===parseInt(t(424))/1*(-parseInt(t(414))/2)+parseInt(t(418))/3+-parseInt(t(432))/4*(-parseInt(t(410))/5)+-parseInt(t(417))/6*(parseInt(t(433))/7)+parseInt(t(423))/8+parseInt(t(437))/9+-parseInt(t(430))/10*(parseInt(t(425))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(a);const p=u;function u(n,t){const e=d();return(u=function(n,t){return e[n-=378]})(n,t)}!function(n){const t=u,e=n();for(;;)try{if(597737===parseInt(t(382))/1+-parseInt(t(379))/2*(parseInt(t(385))/3)+parseInt(t(380))/4*(-parseInt(t(386))/5)+parseInt(t(391))/6+parseInt(t(387))/7+-parseInt(t(384))/8*(-parseInt(t(388))/9)+parseInt(t(390))/10*(-parseInt(t(389))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(d);function d(){const n=["381gxQcqf","2345690HwiGHE","4202016FTLJzI","9wUMNsL","242NUSLuI","626020uZuKbX","5058888nXiSXu","gamification_played_campaign_","5414noKVXN","8SnajKV","true","1042428DykQmQ","removeItem","6169456pdsgpE"];return(d=function(){return n})()}const h=l;function l(n,t){const e=m();return(l=function(n,t){return e[n-=303]})(n,t)}!function(n){const t=l,e=n();for(;;)try{if(300140===parseInt(t(318))/1*(parseInt(t(304))/2)+parseInt(t(311))/3+-parseInt(t(305))/4*(parseInt(t(315))/5)+parseInt(t(310))/6*(-parseInt(t(316))/7)+-parseInt(t(320))/8+-parseInt(t(325))/9*(-parseInt(t(326))/10)+parseInt(t(321))/11*(parseInt(t(313))/12))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(m);const f={env:{VITE_API_URL:h(309)}}[h(317)].VITE_API_URL;function m(){const n=["HTTP error! Status: ","534872qFnQJs","121517QHeJWp","API Call Failed (","json","KUoRa","99QExlte","332190ZkjtMI","nrfGu","226MRPPCp","208PqbTQo","Content-Type","status","): ","http://10.69.3.64:8123","2411340uHmGBn","976806OPPSEJ","application/json","84veZxfx","headers","24905msvPKV","7UQjrdW","env","2297tAoCqj"];return(m=function(){return n})()}async function g(n,t,e={}){const r=h,s={KUoRa:r(306),cUnxl:r(312),nrfGu:function(n,t,e){return n(t,e)}},o=f+"/"+n,i={"X-Client-Key":t,...e.body&&!e[r(314)]?.[s[r(324)]]?{"Content-Type":s.cUnxl}:{}},a=await s[r(303)](fetch,o,{...e,headers:{...i,...e[r(314)]}});if(!a.ok){const n=await a.text();throw console.error(r(322)+a[r(307)]+r(308)+o,n),new Error(r(319)+a[r(307)]+". Message: "+n.substring(0,100))}return a[r(323)]()}const I=b;function b(n,t){const e=w();return(b=function(n,t){return e[n-=231]})(n,t)}function w(){const n=[");\n background-size: cover;\n background-repeat: no-repeat;\n display:flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n ","display","phone","912162nUQxLS","^(0|+84)(3[2-9]|5[6|8|9]|7[0|6-9]|8[1-5]|9[0-9])[0-9]{7}$","GIBMl","Tab","click","10NnYVWt","_blank","title","2019354FIqpXX","absolute px-4","name","https://fptshop.com.vn/tin-tuc/tin-khuyen-mai/minigame-chao-khach-hang-moi-trung-voucher-den-200k-190260","disabled","348931KFrcMa","fpIJj","Enter","112nxUwEg",";\n width: 600px;\n min-height:400px;\n height:100%;\n background-image: url(","../assets/wheel_background.png","rHNAj","test","Nhập số điện thoại","YWJQp","HcNZN","Xem thể lệ","../assets/wheel_trigger.png","key","fUENe","isValid","bqGwO","BeApe","\n background: url('../assets/wheel_text.png');\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center;\n width: 100%;\n max-width: calc(70%);\n height: 30%;\n top: 0;\n right: 0;\n ","backdropResult","b2-medium text-white","9HPQeVn","body","Săn ngay","paraP","cssText","wheel_result_background","div","\n display: none;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n ","oAxdC","createElement","GolBk","text-white b1-medium","YHxpy","2gIEBoY","Failure","then","rJZwO","\n flex-direction: column\n ","mJJyO","button-root","keydown","aDwgp","stringify","hluxW","Xem thể lệ>>","xJRLw","target",");\n background-size: cover !important;\n background-repeat: no-repeat !important;\n background-position: 50% 50% !important;\n background-color: rgba(255, 255, 255, 0) !important;\n width: 320px;\n ","map","#333","wwTqj","wxVEl","config","Xin chúc mừng","ueCyT","UygTw","placeholder","screen","jRITG","text-white hight-light","19377974PqSzer","wrap-text","204uhWfGl","style","game_id","TSTwU","\n position: absolute;\n top: -10px;\n right: -10px;\n width: 32px;\n height: 32px;\n padding: 0;\n border-radius: 50%;\n ","block","4103170MLkgVY","KCZWT","button","formState","\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-image: url(","\n width: 321px;\n right: 0;\n text-align: center;\n ","\n position: absolute;\n bottom: 20px;\n right: 20px;\n width: 60px;\n height: 60px;\n cursor: pointer;\n border-radius: 8px\n ","BbANT","zMWAb","catch","TevdR","wkfYX","preventDefault","13ZKXKkN","\n position: relative;\n display: block;\n min-height: 215px;\n ","\n position: absolute;\n bottom: 65px;\n right: 5px;\n width: 32px;\n height: 32px;\n padding: 0;\n border-radius: 50%;\n z-index: 1;\n ","linear","nNFMh","AnWIW","ArrowLeft","input","OpHdX","JxzmK","OjtbH","447055IAgESE","type","flex","bxZBh","jcVLc","\n display: block;\n font-weight: 500 !important;\n color: #fff;\n min-height: 40px;\n text-align: center;\n ","pQYBr","appendChild","Vui lòng nhập số điện thoại","pattern","Escape","translateX(-251px) rotate(0deg)","includes","960696QgjCro","href","ucNGG","form","innerText","addEventListener","\n position: relative;\n width: 100%;\n height: 90vh;\n ","OpVRA","className","QcVyF","backgroundSize","fktIU","YbMhG","nPCNw","wNsfd","text","9fmwjrK","thchG","YYbRV","none","xVmOA","errors","kbJPO","Đội ngũ tư vấn sẽ liên hệ qua số điện thoại và gửi mã sử dụng đến bạn.\n Hoặc gọi tổng đài miễn phí 1800.6601 để được hỗ trợ nhanh hơn nhé.","cover","value","\n width: 300px;\n height: 300px;\n background: url(","alert","Backspace","backgroundImage","d-flex gap-2","FNSEH","KrmMo","ArrowRight","POST"];return(w=function(){return n})()}!function(n){const t=b,e=n();for(;;)try{if(503667===parseInt(t(326))/1*(parseInt(t(279))/2)+parseInt(t(313))/3*(-parseInt(t(241))/4)+parseInt(t(284))/5*(parseInt(t(287))/6)+-parseInt(t(385))/7*(-parseInt(t(295))/8)+-parseInt(t(257))/9*(parseInt(t(361))/10)+-parseInt(t(292))/11*(-parseInt(t(355))/12)+parseInt(t(374))/13*(-parseInt(t(353))/14))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(w);const y={isValid:!1,disabled:!1,errors:[{name:I(289),message:""},{name:"phone",message:""}]};class x{#n=!1;#t=void 0;#e;#r="";constructor(n){const{clientId:t,gameConfig:e}=n;this.#r=t,this.#e=e,this.formState=y}async#s(n){const t=I,e={ucNGG:function(n,t){return n(t)},GolBk:function(n,t,e,r){return n(t,e,r)}};this.#t&&e[t(243)](clearInterval,this.#t);try{return await e[t(323)](g,o,this.#r,{method:t(275),body:JSON[t(335)]({customer:n,game_id:this.#e[t(357)]})})}catch(r){throw r}}#o(){const n=I,t={uHosa:function(n,t){return n===t},BbANT:n(236),jRITG:n(269),fUENe:"Delete",OpHdX:n(282),GIBMl:n(294),paraP:n(380),wkfYX:n(274),mJJyO:n(260),nNFMh:n(239),KCZWT:"translateX(-251px) rotate(360deg)",YYbRV:n(377),bxZBh:function(n,t,e){return n(t,e)},wwTqj:n(387),mzrNZ:n(360),wPMMQ:n(304),TSTwU:"../assets/wheel.png",aDwgp:n(297),KrmMo:n(319),YWJQp:"button",bqGwO:n(332),hluxW:n(342),QcVyF:n(265),HcNZN:function(n,t){return n(t)},czfbF:function(n,t){return n??t},wxVEl:"absolute",YbMhG:n(244),WjfdC:n(381),fpIJj:n(288),FYJRi:"text-field",zMWAb:"name",JxzmK:n(256),QMYDA:"Nhập họ và tên",xVmOA:"off",BeApe:"text-field ",Hhytc:n(278),nPCNw:n(300),pQYBr:n(280),bWWzp:"button-root b2-medium bg-black",rJZwO:n(315),oAxdC:"submit",jcVLc:n(324),wqoPb:n(303),rHNAj:n(290),yTMjH:n(285),ueCyT:n(271),fktIU:n(283)},{backgroundTrigger:e=t.wPMMQ,backgroundWheel:r=t[n(358)],backgroundModal:s=t[n(334)],title:o}=this.#e.config??{},i=document.createElement(t.KrmMo),a=document[n(322)]("div");a[n(356)][n(317)]=n(367);const u=document[n(322)](t[n(301)]);u[n(249)]=t[n(308)],u[n(356)][n(317)]=n(376);const d=c({size:12,fill:t[n(336)]});u.appendChild(d),i[n(235)](u),i[n(235)](a),e&&(a.style[n(270)]="url("+e+")",a[n(356)][n(251)]=t[n(250)]);const h=document[n(322)]("div");h[n(356)][n(317)]=n(247);const l=document[n(322)](t.KrmMo);l[n(356)][n(317)]=n(320);const{width:f,height:m}=window[n(350)],g=document[n(322)](t[n(273)]);g.style.cssText="\n position: relative;\n aspect-ratio: 1300/760"+n(296)+s+n(276),l.appendChild(g);const b=document[n(322)](t.YWJQp);b[n(249)]=t[n(308)],b[n(356)][n(317)]="\n position: absolute;\n top: -16px;\n right: -16px;\n width: 32px;\n height: 32px;\n padding: 0;\n border-radius: 50%;\n ";const w=t[n(302)](c,{size:16,fill:t[n(336)]});b[n(235)](w),g.appendChild(b);const y=document.createElement(t[n(273)]);y[n(356)][n(317)]=n(267)+r+");\n background-size: cover;\n border-radius: 50%;\n transform: translateX(-251px);\n ";const x=document[n(322)]("h1");x[n(249)]="absolute px-4 text-white pb-16",x[n(356)][n(317)]=n(366),x[n(245)]=t.czfbF(o,"");const v=document[n(322)](t[n(273)]);v.className=t[n(344)],v[n(356)][n(317)]=n(310);const k=document[n(322)]("div"),T=document[n(322)](t[n(253)]),C=document[n(322)](t.WjfdC),A=document[n(322)](t.WjfdC),E=document[n(322)](t.YWJQp),H=document.createElement("a");k[n(249)]=t[n(293)],k[n(356)][n(317)]="\n width:321px;\n right: 0;\n bottom: 0;\n padding-bottom:20px\n ";const L=document[n(322)](t.KrmMo);L[n(249)]=t.FYJRi,C.name=t[n(369)],C[n(386)]=t[n(383)],C.placeholder=t.QMYDA,C.autocomplete=t[n(261)],L.appendChild(C);const j=document[n(322)](n(319));j[n(249)]=t[n(309)],A[n(289)]=t.Hhytc,A[n(386)]=n(256),A[n(349)]=t[n(254)],A[n(237)]=t[n(234)],A[n(286)]=t.nPCNw,A.autocomplete="off",j[n(235)](A),E[n(249)]=t.bWWzp,E[n(245)]=t[n(329)],E[n(386)]=t[n(321)],H[n(249)]=t[n(232)],H[n(245)]=t.wqoPb,H[n(242)]=t[n(298)],H[n(339)]=t.yTMjH,T.className=t[n(347)],T[n(356)][n(317)]=n(330),T[n(235)](L),T.appendChild(j),T[n(235)](E),T[n(235)](H),k[n(235)](T);let N=!1;A.addEventListener(n(333),e=>{const r=n,s={TevdR:function(n,e){return t.uHosa(n,e)},FNSEH:r(278),xJRLw:t[r(368)]};if([t[r(351)],t[r(306)],t[r(382)],r(238),t[r(281)],t[r(316)],t[r(372)]][r(240)](e[r(305)]))return;const o=/^[0-9]$/[r(299)](e[r(305)]);this[r(364)]={isValid:o,disabled:!o,errors:this.formState[r(262)]?.[r(341)](n=>{const t=r;return s[t(371)](n[t(289)],s[t(272)])?{...n,message:o?"":s[t(338)]}:n})},!/^[0-9]$/.test(e[r(305)])&&e[r(373)]()}),T[n(246)](t[n(321)],async e=>{const r=n;e.preventDefault();const s={name:C[r(266)],phone:A[r(266)]};this[r(364)][r(307)]&&(!N&&y.animate([{transform:t[r(378)]},{transform:t[r(362)]}],{duration:3e3,easing:t[r(259)],iterations:1/0}),N=!0,E[r(291)]=!0,this.#t||(this.#t=t[r(231)](setInterval,()=>{const n=r,e={OpVRA:t[n(331)]};this.#s(s)[n(328)](t=>{const e=n;var r;l.style.display=e(260),a.style.display="none",this.#i(!0,t),r=this.#r,localStorage.setItem("gamification_played_campaign_"+r,p(381))})[n(370)](t=>{const r=n;var s;l.style[r(277)]=e[r(248)],a[r(356)].display=e.OpVRA,this.#i(!1),s=this.#r,localStorage[p(383)]("gamification_played_campaign_"+s)})},2e3)))}),b[n(246)](t.fktIU,()=>{const e=n;this.#n?(l[e(356)].display=t.mJJyO,a[e(356)][e(277)]=t.mJJyO):(l[e(356)].display=t[e(343)],a.style[e(277)]=t[e(331)]),this.#n=!this.#n}),a[n(246)](t[n(252)],()=>{const e=n;this.#n?(l[e(356)][e(277)]=t[e(331)],a.style[e(277)]=t.mzrNZ,u[e(356)][e(277)]="none"):(l[e(356)][e(277)]=t[e(343)],a.style[e(277)]=e(260),u.style[e(277)]="none"),this.#n=!this.#n}),u[n(246)](t.fktIU,()=>{const e=n;l.style[e(277)]=e(260),a[e(356)][e(277)]=t[e(331)],u[e(356)][e(277)]="none"}),g.appendChild(y),g[n(235)](v),g[n(235)](x),g[n(235)](k),h[n(235)](l),document.body.appendChild(h),document[n(314)].appendChild(i)}#i(n,t){const e=I,r={YHxpy:"../assets/wheel_result_background.png",bIQPD:e(346),thchG:e(319),yvfHc:e(363),HFQsI:e(332),Peulf:function(n,t){return n(t)},OjtbH:e(342),AnWIW:e(354),UygTw:e(312),wNsfd:e(352),hrKws:e(337),kbJPO:e(283)};if(!n)return window[e(268)](e(327));const s=this.#e?.[e(345)]?.[e(311)]?.[e(318)]??r[e(325)],o=this.#e?.[e(345)]?.backdropResult?.headerTitle??r.bIQPD,i=document[e(322)](e(319));i[e(356)][e(317)]=e(365)+s+e(340);const a=document[e(322)](r[e(258)]);a[e(356)].cssText=e(375);const p=document[e(322)](r[e(258)]);p.style[e(317)]=e(233),p[e(245)]=o;const u=document[e(322)](r.yvfHc);u.className=r.HFQsI,u.style.cssText=e(359);const d=r.Peulf(c,{size:16,fill:r[e(384)]});u.appendChild(d);const h=document.createElement(r[e(258)]);h[e(249)]=r[e(379)];const l=document[e(322)]("p");l[e(249)]=r.UygTw,l[e(245)]=(t?.[e(286)]??"")+": ";const f=document[e(322)]("a");f.className=r[e(255)],f[e(245)]=t?.voucher??"",l[e(235)](f);const m=document[e(322)](r[e(258)]);m.className=r[e(379)];const g=document[e(322)]("p");g[e(249)]=r[e(348)],g[e(245)]=e(264);const b=document[e(322)]("a");b[e(249)]="text-white hight-light",b[e(245)]=r.hrKws,g[e(235)](b),h[e(235)](l),m[e(235)](g),i[e(235)](a),i[e(235)](u),i[e(235)](p),i[e(235)](h),i.appendChild(m),u[e(246)](r[e(263)],()=>{const n=e;this.#n=!1,i[n(356)].display=n(260)}),document.body[e(235)](i)}async init(){this.#o()}}function v(n,t){var e=k();return(v=function(n,t){return e[n-=231]})(n,t)}function k(){var n=["3343878tSGfbd","1841289QLjJbc","1985pRPjQq","1878908NVtspi","5341984BEezjV","4146cpWWdr","20255qokgTt","5540885MfHCqI","30hTXrCc"];return(k=function(){return n})()}function T(){var n=["card","vzYEd","wheel","36075000lkUjLE","4777629YBxiLU","763188EAMJiA","PUZZEL","WHEEL","RHCzr","154020GXTMzg","KirnK","CARD","5JjBIfb","1791752kJvDkB","18Vfdhha","490tRJfxk","555196VNRxSx","1886047NknOYJ","iIYWG"];return(T=function(){return n})()}function C(n,t){var e=T();return(C=function(n,t){return e[n-=250]})(n,t)}!function(n){for(var t=v,e=n();;)try{if(421269===-parseInt(t(233))/1*(-parseInt(t(235))/2)+parseInt(t(237))/3+-parseInt(t(239))/4+parseInt(t(238))/5*(-parseInt(t(232))/6)+-parseInt(t(234))/7+parseInt(t(231))/8+parseInt(t(236))/9)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(k),function(n){for(var t=C,e=n();;)try{if(982357===-parseInt(t(251))/1+-parseInt(t(250))/2+parseInt(t(257))/3+parseInt(t(258))/4*(parseInt(t(265))/5)+-parseInt(t(262))/6*(parseInt(t(268))/7)+parseInt(t(266))/8*(-parseInt(t(267))/9)+parseInt(t(256))/10)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(T);var A,E,H,L=(A=L||{},H={vzYEd:(E=C)(260),BHvAT:E(255),KirnK:E(264),iIYWG:E(253),RHCzr:"puzzle"},A[H[E(254)]]=H.BHvAT,A[H[E(263)]]=H[E(252)],A[E(259)]=H[E(261)],A);function j(n,t){var e=N();return(j=function(n,t){return e[n-=343]})(n,t)}function N(){var n=["161hAqQGU","983436NZAADr","5707938pgeNiS","885780qLVLKq","22yvwutC","222860FEJOZt","378008QwqYGP","1229526wgEJTD","43144uPQMaU","90JpgqWZ","121eNhZbt","4GpVKlF"];return(N=function(){return n})()}!function(n){for(var t=j,e=n();;)try{if(552523===-parseInt(t(345))/1*(parseInt(t(349))/2)+-parseInt(t(348))/3*(parseInt(t(352))/4)+parseInt(t(344))/5+-parseInt(t(343))/6+-parseInt(t(353))/7*(-parseInt(t(347))/8)+parseInt(t(350))/9*(parseInt(t(346))/10)+-parseInt(t(351))/11*(-parseInt(t(354))/12))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(N);const J=W;!function(n){const t=W,e=n();for(;;)try{if(258851===-parseInt(t(176))/1+parseInt(t(179))/2*(-parseInt(t(169))/3)+parseInt(t(158))/4+-parseInt(t(144))/5+-parseInt(t(141))/6*(-parseInt(t(157))/7)+parseInt(t(156))/8+parseInt(t(164))/9*(-parseInt(t(165))/10))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(O);var M={env:{VITE_API_URL:"http://10.69.3.64:8123"}};function O(){const n=["HlcLk","undefined","info","eqIFw","function","currentScript","250811IrpUlV","Your game not available!","bHPzS","26fEyEos","Error:","error","querySelector","bJTQB","length","HTTP error! status: ","30pHeYqA","amd","jWove","950215EnoXiD","init","iUibW","QTnde","dBVvd",'Missing client_id. Did you miss data-client-id="YOU_CLIENT_ID" in script tag?',"type","Missing config fetching","VITE_API_URL","getAttribute","script[data-client-id]","/pr/client/","3697208pjoOEQ","118223vUofXC","1532944DKMBTT","nOjBK","status","data-client-id","LWAYH","forEach","342ddFZFP","11170rfqcBC","env","WHEEL","TuSRC","43311YQTEig"];return(O=function(){return n})()}function W(n,t){const e=O();return(W=function(n,t){return e[n-=141]})(n,t)}!function(n,t){const e=W,r={eqIFw:function(n,t){return n===t},TuSRC:function(n,t){return n!==t},iUibW:e(171),lybse:e(174),aWnah:function(n){return n()}};if(r[e(173)](typeof exports,"object")&&r[e(168)](typeof module,r[e(146)]))module.exports=t();else if(r[e(173)](typeof define,r.lybse)&&define[e(142)])define(t);else{(typeof globalThis!==r[e(146)]?globalThis:n||(r[e(168)](typeof self,r.iUibW)?self:{})).clevertap=r.aWnah(t)}}(typeof window!==J(171)?window:void 0,()=>{const n=J,e={bHPzS:n(180),uVrbH:function(n,t){return n(t)},nOjBK:function(n,t,e){return n(t,e)},dBVvd:function(n,t){return n(t)},QTnde:function(n,t){return n===t},UmOPO:n(177),LWAYH:function(n){return n()},jWove:n(161),irAOw:n(149),HlcLk:n(151),bJTQB:function(n){return n()}},s=M[n(166)][n(152)],o=document[n(175)]||document[n(182)](n(154)),i=o?.[n(153)](e[n(143)])??"";if(!i)return console[n(181)](e.irAOw);if(!s)return console[n(181)](e[n(170)]);function a(){const r=n;try{return g(t,i)}catch(s){throw console[r(181)](e[r(178)],s),s}}function c(t){const s=n;try{const n=e.uVrbH(r,t);return e[s(159)](g,n,i)}catch(o){throw console[s(181)](e[s(178)],o),o}}var u;!(u=i,localStorage.getItem(p(378)+u))&&e[n(183)](async function(){const t=n;try{const r=await e[t(162)](a);r[t(184)]&&function(t){const r=n;t[r(163)](async n=>{const t=r;try{const r=await e[t(148)](c,n.game_id);r&&e[t(147)](n[t(150)],L[t(167)])?new x({clientId:i,gameConfig:r})[t(145)]():r&&console[t(172)](e.UmOPO)}catch(s){console[t(181)](s)}})}(r)}catch(r){}})})});
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"LICENSE",
|
|
7
7
|
"package.json"
|
|
8
8
|
],
|
|
9
|
-
"version": "1.0.1-beta.
|
|
9
|
+
"version": "1.0.1-beta.2",
|
|
10
10
|
"description": "Gamification modules made with love by CExP.fpt.com",
|
|
11
11
|
"main": "main.js",
|
|
12
12
|
"type": "module",
|
|
@@ -29,8 +29,5 @@
|
|
|
29
29
|
"vite": "^7.1.12",
|
|
30
30
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
31
31
|
"vite-plugin-javascript-obfuscator": "^3.1.0"
|
|
32
|
-
},
|
|
33
|
-
"dependencies": {
|
|
34
|
-
"clevertap-web-sdk": "^2.3.2"
|
|
35
32
|
}
|
|
36
33
|
}
|