cexp-gamification 1.0.1-beta.9 → 1.0.1-test.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cexp-web-sdk.js +2 -2
- package/package.json +1 -1
package/dist/cexp-web-sdk.js
CHANGED
|
@@ -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}
|
|
2
|
-
!function(t){"function"==typeof define&&define.amd?define(t):t()}(function(){"use strict";function t(){var n=["4981963XEhmxt","puzzle","2974870iYWixA","3082812YDNvlo","pzuGM","card","2161008IZDcSJ","PUZZEL","5954296LyFCBf","wheel","WHEEL","1522914UnDXXK","aKBWW","454510OyURwb","3SiKIsl"];return(t=function(){return n})()}function n(e,r){var o=t();return(n=function(t,n){return o[t-=186]})(e,r)}!function(t){for(var e=n,r=t();;)try{if(458808===-parseInt(e(190))/1+parseInt(e(188))/2+-parseInt(e(191))/3*(parseInt(e(195))/4)+parseInt(e(194))/5+parseInt(e(198))/6+parseInt(e(192))/7+-parseInt(e(200))/8)break;r.push(r.shift())}catch(o){r.push(r.shift())}}(t);var e,r,o,s=(e=s||{},o={uazqb:(r=n)(187),dqDlb:r(186),ekpVk:"CARD",aKBWW:r(197),pzuGM:r(199),NOwOd:r(193)},e[o.uazqb]=o.dqDlb,e[o.ekpVk]=o[r(189)],e[o[r(196)]]=o.NOwOd,e);function a(t,n){var e=c();return(a=function(t,n){return e[t-=405]})(t,n)}function c(){var t=["hKqpz","XAxvD","CENTER_CENTER","wRWRE","LKNsV","top-right","kweXZ","xeJvM","VSRcM","5121QgLvIf","30JOEWsK","eKJQk","bottom-right","1133965WivREk","nlIjV","12ghpkZW","BOTTOM_CENTER","bottom-left","81976FoaVuH","WUmde","TOP_RIGHT","mid-left","BOTTOM_RIGHT","Hpula","bottom-center","top-center","4aTuAdi","Urvsh","BOTTOM_LEFT","567483Wtmqfd","CjKXB","TOP_LEFT","CENTER_LEFT","mid-center","1776fAmIXg","861280SUhuau","1600iFQFwL","top-left","630ejDPgD","7624551ByFeFI"];return(c=function(){return t})()}!function(t){for(var n=a,e=t();;)try{if(224423===-parseInt(n(420))/1+-parseInt(n(438))/2*(parseInt(n(440))/3)+parseInt(n(428))/4*(parseInt(n(415))/5)+parseInt(n(412))/6*(-parseInt(n(431))/7)+parseInt(n(436))/8*(-parseInt(n(411))/9)+parseInt(n(437))/10+-parseInt(n(441))/11*(-parseInt(n(417))/12))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(c);var i,u,p,l=(i=l||{},p={hKqpz:(u=a)(430),fWrrs:u(419),wRWRE:u(418),WUmde:u(426),Hpula:u(424),ytisl:u(414),nlIjV:u(434),LKNsV:u(423),xeJvM:u(435),VSRcM:"CENTER_RIGHT",XAxvD:u(433),caGGt:u(439),eKJQk:"TOP_CENTER",Urvsh:u(427),kweXZ:u(422),CjKXB:u(407)},i[p[u(442)]]=p.fWrrs,i[p[u(405)]]=p[u(421)],i[p[u(425)]]=p.ytisl,i[p[u(416)]]=p[u(406)],i[u(444)]=p[u(409)],i[p[u(410)]]="mid-right",i[p[u(443)]]=p.caGGt,i[p[u(413)]]=p[u(429)],i[p[u(408)]]=p[u(432)],i);function f(t,n){var e=d();return(f=function(t,n){return e[t-=386]})(t,n)}function d(){var t=["7172608ltlBki","8540dSmiiv","1fNJRZX","342331wVMxOb","414272SxlPlb","8847954CizRHl","150gQtiUR","44AEvRNv","5027820ONHWGy","26943cxckCo","1350uSiQJp"];return(d=function(){return t})()}function m(t,n){const e=g();return(m=function(t,n){return e[t-=131]})(t,n)}function h(t){const n=m,e={JphbW:n(145),mPwcc:"size-4",yAIvd:function(t,n){return t||n},HHicA:n(147),xMCqY:n(154),JwXUC:n(137),efouU:n(132),mtcvW:n(136),MGwtl:n(160),UVjrY:n(165),WgecF:n(166),egZxz:n(150),xWEce:n(152),OemvI:n(148),awMDP:n(151)},{size:r=24,fill:o=e[n(146)],className:s=e[n(153)]}=e[n(163)](t,{}),a=e[n(155)],c=document[n(140)](a,e[n(134)]);c[n(144)](e[n(167)],r[n(159)]()),c[n(144)](n(162),r[n(159)]()),c[n(144)](e[n(143)],e[n(142)]),c[n(144)](e[n(156)],e[n(157)]),c[n(144)](e[n(158)],a),s&&c[n(144)]("class",s);const i=document[n(140)](a,"g");i.setAttribute("id",e[n(131)]);const u=document[n(140)](a,e.xWEce);return u[n(144)]("id",e.OemvI),u[n(144)]("d",e.awMDP),u[n(144)](e.MGwtl,o),i.appendChild(u),c[n(168)](i),c}function g(){const t=["var(--neutral-gray-900)","JphbW","http://www.w3.org/2000/svg","Shape","8IEhxiB","Dismiss","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","path","mPwcc","svg","HHicA","MGwtl","UVjrY","WgecF","toString","fill","725150AgsGyE","height","yAIvd","3103235KakNae","none","xmlns","JwXUC","appendChild","egZxz","viewBox","752278pLymib","xMCqY","16541400XmSHct","0 0 24 24","width","1076325UXZyXC","3366125KPbuYU","createElementNS","5020488QeUOck","mtcvW","efouU","setAttribute"];return(g=function(){return t})()}function I(){const t=["128SGDHZb","1546160KMswhm","6019605TmzRaV","35807290TVjnAm","1363TfXuMY","sv/token","pl/games","1138tlOegt","pl/games/","2134761IeOPPO","261317yChccb","7164459XUWyry","6ILDavj","pl/games/reward"];return(I=function(){return t})()}!function(t){for(var n=f,e=t();;)try{if(605900===parseInt(n(391))/1*(-parseInt(n(393))/2)+-parseInt(n(387))/3*(-parseInt(n(396))/4)+parseInt(n(390))/5*(-parseInt(n(388))/6)+parseInt(n(386))/7+parseInt(n(389))/8+-parseInt(n(394))/9+-parseInt(n(395))/10*(-parseInt(n(392))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(d),function(t){const n=m,e=t();for(;;)try{if(513610===-parseInt(n(161))/1+-parseInt(n(133))/2+-parseInt(n(138))/3*(parseInt(n(149))/4)+parseInt(n(164))/5+-parseInt(n(141))/6+parseInt(n(139))/7+parseInt(n(135))/8)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(g);const b=y;function y(t,n){const e=I();return(y=function(t,n){return e[t-=210]})(t,n)}!function(t){const n=y,e=t();for(;;)try{if(701889===-parseInt(n(221))/1*(parseInt(n(210))/2)+-parseInt(n(212))/3+-parseInt(n(218))/4+-parseInt(n(219))/5*(parseInt(n(215))/6)+parseInt(n(213))/7*(-parseInt(n(217))/8)+parseInt(n(214))/9+parseInt(n(220))/10)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(I),b(222);const x=b(223),T=b(216),w=E;function C(){const t=["6rPsIGs","18DFjTEl","error","GET","765205ihoMlu","183508tBDPVU","1360562pXfbGG","yTTCV","VoRBJ","3kxVwOU","json","http://staging-cdp-api.cads.live/gamification","Bearer ","body","7097874cAAUBR","HTTP error! Status: ","3365840TuWHPa","headers","21135800FqhlNG","API Call Failed (",". Message: ","status","substring","agxwX","): ","Content-Type","173552rUBJWz"];return(C=function(){return t})()}!function(t){const n=E,e=t();for(;;)try{if(715304===parseInt(n(117))/1+parseInt(n(118))/2*(parseInt(n(121))/3)+-parseInt(n(111))/4+-parseInt(n(116))/5*(-parseInt(n(112))/6)+parseInt(n(126))/7+-parseInt(n(128))/8*(-parseInt(n(113))/9)+-parseInt(n(130))/10)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(C);const v=w(123);function E(t,n){const e=C();return(E=function(t,n){return e[t-=110]})(t,n)}async function k(t,n,e={}){const r=w,o={VoRBJ:r(110),haHSz:"application/json",yTTCV:function(t,n,e){return t(n,e)}},s=v+"/"+t,a={Authorization:r(124)+n,...e[r(125)]&&!e[r(129)]?.[o[r(120)]]?{"Content-Type":o.haHSz}:{}},c=await o[r(119)](fetch,s,{...e,headers:{...a,...e.headers}});if(!c.ok){const t=await c.text();throw console.error(r(131)+c[r(133)]+r(136)+s,t),new Error(r(127)+c.status+r(132)+t[r(134)](0,100))}return c[r(122)]()}function O(){const t=["uWziY","jCanu","\n top: 20px;\n left: 20px;\n ","yqZhQ","eoKrr","none","desktopConfig","TOP_CENTER","\n bottom: 50%;\n left: 20px;\n transform: translateY(-50%);\n ","\n bottom: 20px;\n right: 20px;\n ","button-root","click","result-header","WHoJj","uSIQY","absolute px-4","gDGMi","fwTfH","matches","\n top: 20px;\n right: 25px;\n ","errors","YdMdm","innerText","PAwcK","absolute px-4 text-white pb-16","\n bottom: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n ","9118629gZOdTT","dgjHx","tIZxX","IfLdf","Nhập họ và tên","\n bottom: 20px;\n left: 20px;\n ","Nhập số điện thoại","OmOGH","oRpeb","BOTTOM_RIGHT","QYBCu","phone","url(","stringify","eSGcK","bYZiJ","wrap-text","test","YAyrC","TOP_RIGHT","BOTTOM_CENTER","style","bottom-right","text-white hight-light","QZGaZ","error","close-result-btn","off","wheel-form-wrapper","gkZHT","XSKoE","text-field","removeChild","result-header-title","lOUYS","CENTER_CENTER","\n bottom: calc(50% + 55px) ;\n right: 5px;\n transform: translateY(-50%);\n ","body","5374410pntmih","lAcsp","nVTdk","Vui lòng nhập số điện thoại","trigger-btn","createElement","WPJGU","zcKQF","className","_blank","cexp-backdrop-wheel","WcvEn","3904166vFMFmV","wheel-policy","\n bottom: 20px;\n right: 50%;\n transform: translateX(-50%);\n ","TOP_LEFT","map","lSCkS","isValid","b2-medium text-white","OgrRV","GtyGY","d-flex gap-2","fOfun","BOTTOM_LEFT","type","cexp-wrapper","\n bottom: 20px !important;\n right: 20px;\n ","block","appendChild","\n top: 20px;\n left: 65px;\n transform: translateY(-50%);\n ","querySelectorAll","display","VDpsy","Zxtvi","Xin chúc mừng","vYceZ","Brhuf","nStLo","PUdOj","title","515MwGrKb","UwIZl","3518hIftan","vzpjx","ouxaV","qBcvp","--backgroundTriggerMb","\n bottom: calc(50% + 65px) ;\n left: calc(50% + 40px);\n transform: translate(-50%);\n ","ZDsgk","jECus","target","\n top: 10px;\n left: calc(50% + 30px);\n transform: translateX(-50%);\n ","vyFic","aSoPT","name","Săn ngay","bHWSN","\n bottom: calc(50% + 60px);\n transform: translateY(-50%);\n left: 65px;\n ","observe","cexp-wheel","then","fWitp","39220AYbYBB","length","autocomplete","../assets/wheel_background.png","\n top: 20px;\n left: 50%;\n transform: translateX(-50%);\n ","--backgroundModalMb","flex","TqHHr","addEventListener","setProperty","Xem thể lệ>>","documentElement","MxQdY","input","error-msg","gNUGk","modal-wrapper","mobileConfig","matchMedia","forEach","animate","IZITL","CfyRW","3653262NZFDKw","cssText","wheel-modal","button","rotate(0deg)","\n top: 10px;\n ","translateX(-251px) rotate(0deg)","div","value","ofAKK","XhWtf","submit","text-field ","\n flex-direction: column\n ","PbSzA","NmByQ","715ddOxUE","log","document","Failure","rotate(360deg)","placeholder","button-root b2-medium bg-black","wheel_result_background","JfOOV","--backgroundWheelMb","--backgroundResultMb","AhIjB","wrap-text mb-2","mMndO","4975632WsCFDD","--backgroundTrigger","(max-width: 768px)","../assets/wheel.png"];return(O=function(){return t})()}function W(t,n){const e=O();return(W=function(t,n){return e[t-=402]})(t,n)}function G(t){const n=W,e={uWziY:"POST",zGPRh:"Số điện thoại không chính xác!",aSoPT:n(521),XhWtf:n(486),gDGMi:n(488),YAyrC:n(502),yqZhQ:"translateX(-251px) rotate(360deg)",TUvzF:"linear",iMEWh:function(t,n,e){return t(n,e)},MxQdY:n(553),eSGcK:n(424),mMndO:n(515),ofAKK:n(462),dgjHx:n(564),GtyGY:"cexp-gamification",YdMdm:n(489),mjBeK:n(584),jCanu:n(485),QYBCu:n(526),Brhuf:function(t,n,e,r){return t(n,e,r)},ouxaV:function(t,n){return t||n},vyFic:n(513),ZDsgk:n(443),uSIQY:n(422),lAcsp:n(475),uKDvP:n(484),PUdOj:function(t,n){return t||n},NmByQ:n(464),TqHHr:function(t,n){return t(n)},tIZxX:"#333",bHWSN:function(t,n){return t||n},fwTfH:"--backgroundWheel",bPKsQ:"wheel-modal-title",lSCkS:n(540),zcKQF:function(t,n){return t??n},WHoJj:n(472),UwIZl:n(409),IZITL:n(531),OgrRV:n(573),Zxtvi:n(451),aCnhd:"text",XSKoE:n(546),fOfun:n(569),vzpjx:n(494),IfLdf:n(548),VDpsy:n(452),CfyRW:n(493),qBcvp:"text-white b1-medium text-underline",PbSzA:n(405),fWitp:n(418),JfOOV:"click",PAwcK:n(501),lOUYS:n(514),CFvlL:n(508),duaPw:"--backgroundResult",ApXrU:n(528),nVTdk:n(431),oRpeb:n(568),DJUZj:n(510),ZNsHh:n(415),jECus:n(565),AhIjB:n(558),WcvEn:n(469),FJfoj:'[id*="cexp"]',bYZiJ:function(t,n){return t>n},gkZHT:function(t){return t()}},{gameConfig:r,apiKey:o,game_id:s}=t;let a,c=!1,i={isValid:!1,disabled:!1,errors:[{name:e[n(430)],message:""},{name:"phone",message:""}]};async function u(t){const r=n;a&&clearInterval(a);try{return await k(T,o,{method:e[r(516)],body:JSON[r(555)]({customer:t,game_id:s})})}catch(c){throw c}}function p(t,e,r){const o=n;switch(r){case l[o(551)]:t[o(563)][o(483)]=o(525),t.style[o(483)]=o(525);break;case l[o(562)]:t.style[o(483)]=o(410),e[o(563)].cssText="\n right: 50%;\n transform: translateX(-50%);\n ";break;case l[o(420)]:t[o(563)][o(483)]=o(547),e[o(563)][o(483)]="\n left: 65px;\n ";break;case l.CENTER_LEFT:t[o(563)].cssText=o(524),e[o(563)][o(483)]=o(454);break;case l[o(577)]:t[o(563)].cssText=o(541),e[o(563)].cssText=o(444);break;case l.CENTER_RIGHT:t[o(563)][o(483)]="\n bottom: 50%;\n right: 20px;\n transform: translateY(-50%);\n ",e.style.cssText=o(578);break;case l[o(411)]:t[o(563)][o(483)]=o(518),e[o(563)][o(483)]=o(426);break;case l[o(523)]:t[o(563)][o(483)]=o(463),e[o(563)][o(483)]=o(448);break;case l[o(561)]:t[o(563)][o(483)]=o(535),e[o(563)][o(483)]=o(487);break;default:t[o(563)][o(483)]=o(423)}}function f(){const t=n,o={eoKrr:e[t(471)],vYceZ:e[t(450)],ABaKl:e[t(556)],nStLo:t(465)},s=window[t(477)](t(514)).matches,l=document[t(470)],{desktopConfig:f,mobileConfig:m}=r??{},{backgroundTrigger:g="../assets/wheel_trigger.png",triggerPosition:I=t(564),backgroundWheel:b=e[t(511)],backgroundModal:y=e[t(491)],title:x,rule:T={title:"",url:""}}=f,{backgroundTrigger:w,triggerPosition:C=e[t(543)],backgroundModal:v,backgroundWheel:E,title:k,rule:O}=m,W=document[t(585)](t(489));W.id=e[t(417)];const G=document[t(585)](e.YdMdm);G.id=e.mjBeK;const K=document[t(585)](e[t(517)]);K.id="close-trigger-btn",K[t(404)]=e[t(552)],console[t(499)](C),e[t(433)](p,G,K,s?C:I);const P=h({size:12,fill:"#333"});K[t(425)](P),W[t(425)](K),W[t(425)](G),e[t(441)](g,w)&&(l[t(563)][t(468)](e[t(449)],t(554)+g+")"),l[t(563)][t(468)](e[t(445)],t(554)+w+")"));const M=document.createElement(e.YdMdm);M.id=e[t(530)];const R=document[t(585)](e[t(537)]);R.id=e[t(581)];const H=document[t(585)](e[t(537)]);H.id=t(406);const Y=document[t(585)](e[t(537)]);Y.id=e.uKDvP,e[t(435)](y,v)&&(l[t(563)][t(468)]("--backgroundModal",t(554)+y+")"),l.style[t(468)](e[t(497)],t(554)+v+")")),R[t(425)](Y);const N=document[t(585)](e[t(517)]);N.id="close-modal-btn",N[t(404)]=e[t(552)];const S=e[t(466)](h,{size:16,fill:e[t(544)]});N[t(425)](S),Y[t(425)](N);const L=document[t(585)](e.YdMdm);L.id=t(456),e[t(453)](b,E)&&(l[t(563)][t(468)](e[t(533)],t(554)+b+")"),l.style[t(468)](t(507),"url("+E+")"));const Z=document[t(585)]("h1");Z.id=e.bPKsQ,Z.className=e[t(413)],Z[t(538)]=s?k:e[t(403)](x,"");const U=document[t(585)](e[t(537)]),V=document[t(585)]("form"),j=document.createElement(e[t(529)]),A=document[t(585)](e[t(529)]),B=document.createElement(e[t(517)]),F=document.createElement("a");F.id=e[t(438)],U[t(404)]=e[t(480)],U.id=t(570);const X=document[t(585)](e[t(537)]);X[t(404)]=e[t(416)],j[t(451)]=e.Zxtvi,j.type=e.aCnhd,j[t(503)]=e[t(572)],j[t(461)]=e[t(419)],X[t(425)](j);const z=document[t(585)](t(489));z.className=e[t(440)],A[t(451)]=e[t(471)],A[t(421)]="text",A[t(503)]=e[t(545)],A.title=e[t(545)],A[t(461)]=e[t(419)];const D=document[t(585)]("p");if(D.id=t(473),z[t(425)](A),B[t(404)]=t(504),B[t(538)]=e[t(429)],B[t(421)]=e[t(481)],e[t(453)](T,O)){const{title:n,url:r}=s?O:T;F[t(404)]=e[t(442)],F.innerText=n??"",F.href=e[t(403)](r,""),F[t(447)]=e[t(496)]}V[t(404)]=e[t(458)],V[t(563)][t(483)]=t(495),V.appendChild(X),V.appendChild(z),V[t(425)](D),V[t(425)](B),V[t(425)](F),U.appendChild(V);let J=!1;A[t(467)](e.WHoJj,n=>{const r=t;A[r(490)]=A.value.replace(/[^\d+]/g,"");const s=/^(0|84|\+84)(3|5|7|8|9)([0-9]{8})$/[r(559)](n?.[r(447)]?.[r(490)]);s?(D.innerText="",B.disabled=!1):(D[r(538)]=e.zGPRh,B.disabled=!0),i={isValid:s,disabled:!s,errors:i[r(536)]?.[r(412)](t=>{const n=r;return t[n(451)]===o[n(520)]?{...t,message:s?"":n(583)}:t})}}),V[t(467)](e.CfyRW,async n=>{const r=t,o={WPJGU:e.aSoPT,gNUGk:function(t,n){return t(n)}};n.preventDefault();const c={name:j[r(490)],phone:A[r(490)]};i[r(414)]&&(!J&&L[r(479)]([{transform:s?e[r(492)]:e[r(532)]},{transform:s?e[r(560)]:e[r(519)]}],{duration:3e3,easing:e.TUvzF,iterations:1/0}),J=!0,B.disabled=!0,a||(a=e.iMEWh(setInterval,()=>{const t=r,n={QZGaZ:o[t(402)],OmOGH:function(t,n,e){return t(n,e)}};o[t(474)](u,c)[t(457)](e=>{const r=t;R[r(563)][r(428)]=n[r(566)],G.style[r(428)]=n[r(566)],n[r(549)](d,!0,e),document[r(579)][r(574)](H)}).catch(e=>{const r=t;R[r(563)].display=n[r(566)],G[r(563)][r(428)]=n[r(566)],d(!1),document[r(579)][r(574)](H)})},2e3)))}),N[t(467)](t(527),()=>{const n=t;console[n(499)](c),c?(R[n(563)].display="none",G[n(563)][n(428)]=n(521),document[n(579)][n(574)](H)):(R.style[n(428)]="flex",G[n(563)][n(428)]=e.aSoPT,document[n(579)][n(574)](H)),c=!c}),G[t(467)](e[t(506)],()=>{const n=t;c?(R[n(563)][n(428)]=o[n(432)],G[n(563)][n(428)]=o.ABaKl,K.style.display=o[n(432)]):(R.style[n(428)]=o[n(434)],G[n(563)][n(428)]=o[n(432)],K[n(563)][n(428)]=n(521),document.body[n(425)](H)),c=!c}),K[t(467)](e[t(506)],()=>{const n=t;R.style[n(428)]=n(521),G[n(563)][n(428)]=o[n(432)],K[n(563)].display=n(521)}),Y.appendChild(L),Y[t(425)](Z),Y[t(425)](U),M[t(425)](R),document[t(579)][t(425)](M),document[t(579)][t(425)](W)}function d(t,o){const s=n;if(!t)return console[s(567)](e[s(539)]);const a=window[s(477)](e[s(576)])[s(534)],i=document[s(470)],{backdropResult:u}=a?r[s(476)]:r[s(522)]??{};u[s(505)]&&(a?i.style.setProperty(e.CFvlL,"url("+u[s(505)]+")"):i[s(563)][s(468)](e.duaPw,s(554)+u[s(505)]+")"));const p=document[s(585)](e.YdMdm);p.id="cexp-result-container";const l=document[s(585)](s(489));l.id=e.ApXrU;const f=document.createElement(e.YdMdm);f.id=s(575),f[s(538)]=u?.[s(436)]??e[s(582)];const d=document[s(585)](e[s(517)]);d.className=s(526),d.id=e[s(550)];const m=h({size:16,fill:e[s(544)]});d[s(425)](m);const g=document.createElement(e[s(537)]);g.className=e.DJUZj;const I=document[s(585)]("p");I[s(404)]=e.ZNsHh,I[s(538)]=(o?.[s(436)]??"")+": ";const b=document[s(585)]("a");b[s(404)]=e[s(446)],b[s(538)]=o?.voucher??"",I[s(425)](b);const y=document.createElement(e.YdMdm);y[s(404)]=e[s(509)];const x=document.createElement("a");x[s(404)]=s(565),x.innerText=e[s(407)],g[s(425)](I),p.appendChild(l),p[s(425)](d),p[s(425)](f),p[s(425)](g),p[s(425)](y),d[s(467)](e[s(506)],()=>{const t=s;c=!1,p[t(563)][t(428)]=e[t(450)]}),document[s(579)].appendChild(p)}function m(){const t=n,r=document[t(427)](e.FJfoj);e[t(557)](r[t(460)],0)&&r[t(478)](t=>t.remove())}new ResizeObserver(t=>{const r=n;e[r(571)](m),e[r(571)](f)})[n(455)](window[n(500)][n(579)])}!function(t){const n=W,e=t();for(;;)try{if(916754===parseInt(n(498))/1*(-parseInt(n(439))/2)+parseInt(n(482))/3+parseInt(n(459))/4*(parseInt(n(437))/5)+parseInt(n(580))/6+-parseInt(n(408))/7+parseInt(n(512))/8+-parseInt(n(542))/9)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(O);const K=M;function P(){const t=["20KifBhJ","2217wpDtfO","map","AeTiH","forEach","TFqHM","removeChild","7385973HTuESk","pQGvt","VGFPc","phone","object","4266024syonRC","value","1330002VpHVsf","694593gJiiDU","body","4089936bNHjdj",'[id*="cexp"]',"init","10496106ZphIWk","location","querySelectorAll","1996UTTHbD","includes","all"];return(P=function(){return t})()}function M(t,n){const e=P();return(M=function(t,n){return e[t-=106]})(t,n)}!function(t){const n=M,e=t();for(;;)try{if(852130===parseInt(n(119))/1+-parseInt(n(127))/2*(-parseInt(n(131))/3)+-parseInt(n(116))/4+-parseInt(n(130))/5*(-parseInt(n(118))/6)+-parseInt(n(111))/7+-parseInt(n(121))/8+parseInt(n(124))/9)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(P);const R={isValid:!1,disabled:!1,errors:[{name:"name",message:""},{name:K(114),message:""}]};class H{#t;#n;constructor(t){const{apiKey:n,gameConfig:e}=t,r=e;this.#t=r,this.#n=n,this.formState=R}#e(t,n){const e={AeTiH:function(t,n){return t(n)},pQGvt:function(t,n,e){return t(n,e)}};let r;return function(...o){const s=M;e[s(107)](clearTimeout,r),r=e[s(112)](setTimeout,()=>t.apply(this,o),n)}}#r(){({VGFPc:function(t,n){return t(n)}})[K(113)](G,{gameConfig:this.#t,apiKey:this.#n,game_id:this.#t.game_id})}async[K(123)](){const t=K,n={rCExb:t(115),TFqHM:t(129)},{allowedUrl:e}=this.#t;if(typeof e===n.rCExb){const n=e[t(106)](n=>n[t(117)]),r=window[t(125)].href;return void(n[t(128)](r)&&this.#r())}if(e===n[t(109)])return void this.#r();document[t(126)](t(122))[t(108)](n=>document[t(120)][t(110)](n))}}function Y(){var t=["47115TigGBh","906nxjJwp","343ILvlzK","191512aOHxuJ","42GbGYZA","6342VZRZry","890IXCJhM","140921otlmtq","4188918wRTspR","6001911mBltbu","6005492AahOzr"];return(Y=function(){return t})()}function N(t,n){var e=Y();return(N=function(t,n){return e[t-=479]})(t,n)}!function(t){for(var n=N,e=t();;)try{if(973941===-parseInt(n(484))/1*(-parseInt(n(485))/2)+parseInt(n(488))/3+parseInt(n(479))/4+-parseInt(n(480))/5*(parseInt(n(481))/6)+parseInt(n(482))/7*(parseInt(n(483))/8)+-parseInt(n(489))/9+parseInt(n(486))/10*(-parseInt(n(487))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(Y);const S=Z;function L(){const t=["forEach","aELNw","11754207VeNBfy","hWjhn","714177dGQrSC","game","2316GqODnN","mdCfL","709640EPPGUE","eOCBm","amd","5871436vQsmWW","14819112VYjYja","Error:","length","init","qkPud","function","pFPey","game_id","wXzNi","31836nYGWIT","OTcjR","394VWHIFj","type","siqiY","InZnJ","error","undefined","uuAVs","19449PpElRc"];return(L=function(){return t})()}function Z(t,n){const e=L();return(Z=function(t,n){return e[t-=303]})(t,n)}!function(t){const n=Z,e=t();for(;;)try{if(963599===-parseInt(n(309))/1+parseInt(n(328))/2*(parseInt(n(304))/3)+parseInt(n(316))/4+parseInt(n(313))/5+-parseInt(n(311))/6*(parseInt(n(326))/7)+parseInt(n(317))/8+-parseInt(n(307))/9)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(L),function(t,n){const e=Z,r={pFPey:"object",qkPud:function(t,n){return t!==n},OTcjR:function(t){return t()},siqiY:function(t,n){return t===n},eOCBm:e(322),hWjhn:function(t,n){return t(n)},uuAVs:e(333)};if(typeof exports===r[e(323)]&&r[e(321)](typeof module,e(333)))module.exports=r[e(327)](n);else if(r[e(330)](typeof define,r[e(314)])&&define[e(315)])r[e(308)](define,n);else{(r.qkPud(typeof globalThis,e(333))?globalThis:t||(typeof self!==r[e(303)]?self:{})).cexp=r[e(327)](n)}}(typeof window!==S(333)?window:void 0,()=>{const t=S,n={wXzNi:"API Key is required",InZnJ:function(t,n,e){return t(n,e)},mdCfL:t(318),prYDU:function(t,n){return t===n},aELNw:"Your game not available!"};class e{#n;constructor({apiKey:e}){const r=t;!e&&console[r(332)](n[r(325)]),this.#n=e}async#o(){const e=t;try{return n[e(331)](k,x,this.#n)}catch(r){throw console.error(n.mdCfL,r),r}}async#s(e){const r=t;try{const t=(o=e,b(211)+o);return n[r(331)](k,t,this.#n)}catch(s){throw console.error(n[r(312)],s),s}var o}async#a(e){const r=t;e[r(305)](async t=>{const e=r;try{const r=await this.#s(t[e(324)]),{config:{gameConfig:o}}=r;console.log(r);const a={game_id:t[e(324)],...o?.game?JSON.parse(o?.[e(310)]):{}};if(a&&n.prYDU(a[e(329)],s.WHEEL)){new H({apiKey:this.#n,gameConfig:a}).init()}else a&&console.info(n[e(306)])}catch(o){console[e(332)](o)}})}async[t(320)](){const n=t;if(this.#n)try{const t=await this.#o();t[n(319)]&&this.#a(t)}catch(e){}}}return e})});
|
|
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})});
|