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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(':root{--backgroundTrigger: "";--backgroundTriggerMb: "";--backgroundWheel: "";--backgroundWheelMb: "";--backgroundModal: "";--backgroundModalMb: "";--backgroundResult: "";--backgroundResultMb: ""}*{box-sizing:border-box;font-family:Inter,sans-serif;font-style:normal}a{cursor:pointer;text-decoration:inherit}button{outline:none;border:none}.relative{position:relative}.absolute{position:absolute}.gap-2{gap:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.mb-2{margin-bottom:2rem}.pb-12{padding-bottom:3rem}.pb-16{padding-bottom:4rem}.d-flex{display:flex}.flex-col{flex-direction:column}.w-full{width:100%}.text-field{display:flex;align-items:center;font-size:14px;font-weight:400;line-height:20px;width:100%;height:2.75rem;background-color:#fff;gap:.25rem;border-radius:.5rem;padding:.75rem}.text-field input{border-style:none;flex:1 1 0%;outline:2px solid transparent;outline-offset:2px;margin:0;padding:0}.bt-transparent{background-color:transparent}.b1-medium{font-size:16px;line-height:24px;font-weight:500}.b2-medium{font-size:14px;font-weight:500;line-height:20px}.text-white{opacity:1;color:#fff}.text-underline{text-decoration:underline}.bg-black{background-color:#000}.button-root{display:flex;align-items:center;justify-content:center;color:#fff;transition:all .2s;height:2.5rem;border-radius:.5rem;cursor:pointer}.cexp-preview-wrapper div{position:relative;display:block;font-style:inherit;text-align:inherit}.wrap-text{display:flex!important;align-items:flex-start;word-break:break-word;padding:0 30px!important;font-size:16px!important;font-weight:400!important;font-family:Insider-Roboto,sans-serif!important;color:#fff!important}.hight-light{font-weight:600;text-decoration:underline}.trigger-btn{position:absolute;width:60px;height:60px;cursor:pointer;border-radius:8px;background-image:var(--backgroundTrigger);background-size:cover;z-index:10000}.close-trigger-btn{position:absolute;bottom:65px;right:5px;width:32px;height:32px;padding:0;border-radius:50%;z-index:10000}.cexp-wrapper{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:600px;z-index:9999}.backdrop-wheel{display:block;opacity:.8;position:fixed;z-index:100;width:100%;height:100%;background-color:#000;opacity:.6;top:0;left:0;cursor:pointer}.modal-wrapper{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.wheel-modal-title{width:321px;right:0;text-align:center;font-size:16px}.wheel-modal-banner{background-size:contain;background-repeat:no-repeat;background-position:center;width:100%;max-width:70%;height:30%;top:0;right:0}.wheel-form-wrapper{width:321px;right:0;bottom:0;padding-bottom:20px}.cexp-wheel{width:300px;height:300px;border-radius:50%;transform:translate(-251px);background:var(--backgroundWheel);background-size:cover}.close-modal-btn{position:absolute;top:-16px;right:-16px;width:32px;height:32px;padding:0;border-radius:50%}.wheel-modal{position:relative;min-width:600px;min-height:400px;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background-image:var(--backgroundModal);background-size:cover;background-repeat:no-repeat}.cexp-result-container{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-image:var(--backgroundResult);background-size:cover!important;background-repeat:no-repeat!important;background-position:50% 50%!important;background-color:#fff0!important;width:320px;min-height:500px;z-index:9999}.result-header{position:relative;display:block;min-height:215px}.result-header-title{display:block;font-weight:500!important;color:#fff;min-height:40px;text-align:center}.close-result-btn{position:absolute;top:-10px;right:-10px;width:32px;height:32px;padding:0;border-radius:50%}.error-msg{color:#fff;margin:0}@media(max-width:768px){.trigger-btn{background-image:var(--backgroundTriggerMb);background-size:cover}.cexp-wrapper{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:600px;z-index:9999}.backdrop-wheel{display:block;opacity:.8;position:fixed;z-index:100;width:100%;height:100%;background-color:#000;opacity:.6;top:0;left:0;cursor:pointer}.modal-wrapper{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.wheel-modal-title{width:321px;right:0;text-align:center}.wheel-modal-banner{background-size:contain;background-repeat:no-repeat;background-position:center;width:100%;max-width:70%;height:30%;top:0;right:0}.wheel-form-wrapper{width:321px;bottom:0;right:unset;padding-bottom:20px}.cexp-wheel{min-width:300px;min-height:300px;background:var(--backgroundWheelMb);background-size:cover;border-radius:50%;position:absolute;top:-150px;transform:unset}.close-modal-btn{position:absolute;top:-10px;right:-10px;width:32px;height:32px;padding:0;border-radius:50%}.wheel-modal{position:relative;max-width:calc(100vw - 75px);min-width:350px;min-height:450px;width:100%;height:100%;background-image:var(--backgroundModalMb);background-size:cover;background-repeat:no-repeat;background-position:50% 50%!important;display:flex;flex-direction:column;justify-content:center;align-items:center}.wheel-policy{text-align:center}.cexp-result-container{background-image:var(--backgroundResultMb)}}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
- !function(t){"function"==typeof define&&define.amd?define(t):t()}(function(){"use strict";function t(){var n=["175RAoxSe","puzzle","10502557dEuCqE","minwv","lfCnf","card","69354ApFeUZ","3UElsAb","50ivCWSj","16zdHlCQ","2308976ZJfFYU","5532cgREpY","WHEEL","1996049PlYlye","OjyXe","fiVJU","862001lnFBJZ","12oRAEZH","194fDhupS","1245654wquBWW"];return(t=function(){return n})()}function n(e,r){var s=t();return(n=function(t,n){return s[t-=166]})(e,r)}!function(t){for(var e=n,r=t();;)try{if(394173===-parseInt(e(177))/1*(parseInt(e(170))/2)+parseInt(e(166))/3*(parseInt(e(169))/4)+parseInt(e(179))/5*(parseInt(e(185))/6)+parseInt(e(175))/7*(parseInt(e(168))/8)+parseInt(e(178))/9*(parseInt(e(167))/10)+parseInt(e(172))/11*(-parseInt(e(176))/12)+-parseInt(e(181))/13)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(t);var e,r,s,o=(e=o||{},s={lfCnf:(r=n)(171),OjyXe:"wheel",fiVJU:"CARD",minwv:r(184),UmnhQ:r(180)},e[s[r(183)]]=s[r(173)],e[s[r(174)]]=s[r(182)],e.PUZZEL=s.UmnhQ,e);function a(){var t=["UqUqT","crMyI","top-left","bgRvb","bottom-center","6296uHKEOx","top-center","BOTTOM_CENTER","bottom-left","CENTER_CENTER","mid-right","BOTTOM_LEFT","qwfHO","JtygG","1057WOeBve","mid-center","JtLGl","UtcDv","bottom-right","BcZts","885030FWPttw","dDdOE","ZgdeO","630604CRtiRf","TOP_LEFT","UFLIi","1815381iEcpjs","BOTTOM_RIGHT","2214776pxWqRT","fmkne","1889592FQoRKA","ByIMH","Ottsm","619862uynUvH"];return(a=function(){return t})()}function i(t,n){var e=a();return(i=function(t,n){return e[t-=289]})(t,n)}!function(t){for(var n=i,e=t();;)try{if(392489===parseInt(n(302))/1+parseInt(n(312))/2+-parseInt(n(305))/3+-parseInt(n(307))/4+parseInt(n(299))/5+parseInt(n(309))/6+-parseInt(n(293))/7*(-parseInt(n(318))/8))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(a);var c=(t=>{for(var n=i,e={ByIMH:n(320),qwfHO:n(317),dDdOE:n(290),fmkne:n(321),crMyI:"TOP_RIGHT",Ottsm:"mid-left",UFLIi:n(303),UtcDv:n(315),UqUqT:n(306),BcZts:n(297),JtygG:"CENTER_RIGHT",JtLGl:n(289),lNpJS:n(322),bgRvb:n(294),ZgdeO:"TOP_CENTER"},r="1|0|5|3|7|6|4|9|2|8".split("|"),s=0;;){switch(r[s++]){case"0":t[e[n(310)]]=e[n(291)];continue;case"1":t[e[n(300)]]=e[n(308)];continue;case"2":t[e[n(314)]]="top-right";continue;case"3":t.CENTER_LEFT=e[n(311)];continue;case"4":t[e[n(304)]]=e[n(296)];continue;case"5":t[e[n(313)]]=e[n(298)];continue;case"6":t[e[n(292)]]=e[n(295)];continue;case"7":t[e.lNpJS]=e[n(316)];continue;case"8":return t;case"9":t[e[n(301)]]=n(319);continue}break}})(c||{});function u(){var t=["2279496EVRxbr","15FBLiUb","3422052PfKGep","2070505DduPJB","118054KcQVsf","7604992RVnbGH","431111kOcIcU","874650GrjNhO"];return(u=function(){return t})()}function p(t,n){var e=u();return(p=function(t,n){return e[t-=152]})(t,n)}function l(){const t=["height","xmlns","zWBRu","611320LebjHq","316320HBOwgS","toString","1323772HylKLT","9nwzBbV","4019538mgFYcc","lhkEo","1341231bsvIRT","Shape","718617FAWsXE","viewBox","ULcWG","var(--neutral-gray-900)","http://www.w3.org/2000/svg","7riYsYi","size-4","0 0 24 24","class","sLdMh","kJPzi","10nvePQX","M4.2097 4.3871L4.29289 4.29289C4.65338 3.93241 5.22061 3.90468 5.6129 4.2097L5.70711 4.29289L12 10.585L18.2929 4.29289C18.6834 3.90237 19.3166 3.90237 19.7071 4.29289C20.0976 4.68342 20.0976 5.31658 19.7071 5.70711L13.415 12L19.7071 18.2929C20.0676 18.6534 20.0953 19.2206 19.7903 19.6129L19.7071 19.7071C19.3466 20.0676 18.7794 20.0953 18.3871 19.7903L18.2929 19.7071L12 13.415L5.70711 19.7071C5.31658 20.0976 4.68342 20.0976 4.29289 19.7071C3.90237 19.3166 3.90237 18.6834 4.29289 18.2929L10.585 12L4.29289 5.70711C3.93241 5.34662 3.90468 4.77939 4.2097 4.3871L4.29289 4.29289L4.2097 4.3871Z","rmitl","zoDiv","fill","bIZzx","setAttribute","HYIUT","width","Dismiss","29191210OBACUY","createElementNS"];return(l=function(){return t})()}function f(t,n){const e=l();return(f=function(t,n){return e[t-=466]})(t,n)}function d(t){const n=f,e={bIZzx:n(489),kdoaN:n(492),HYIUT:function(t,n){return t||n},lhkEo:n(490),eJFPg:n(470),kJPzi:n(474),zWBRu:n(487),zoDiv:"none",sLdMh:n(471),rmitl:"path",ukcLU:n(485),ULcWG:n(498),QfOnI:n(466)},{size:r=24,fill:s=e[n(467)],className:o=e.kdoaN}=e[n(469)](t,{}),a=e[n(483)],i=document[n(473)](a,"svg");i.setAttribute(e.eJFPg,r.toString()),i[n(468)](e[n(496)],r[n(479)]()),i.setAttribute(e[n(476)],n(493)),i[n(468)](n(466),e[n(500)]),i[n(468)](n(475),a),o&&i.setAttribute(n(494),o);const c=document.createElementNS(a,"g");c.setAttribute("id",e[n(495)]);const u=document[n(473)](a,e[n(499)]);return u.setAttribute("id",e.ukcLU),u[n(468)]("d",e[n(488)]),u[n(468)](e.QfOnI,s),c.appendChild(u),i.appendChild(c),i}function h(t,n){const e=y();return(h=function(t,n){return e[t-=410]})(t,n)}!function(t){for(var n=p,e=t();;)try{if(315141===parseInt(n(155))/1+parseInt(n(153))/2*(parseInt(n(158))/3)+-parseInt(n(157))/4+parseInt(n(152))/5+parseInt(n(159))/6+parseInt(n(156))/7+-parseInt(n(154))/8)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(u),function(t){const n=f,e=t();for(;;)try{if(759139===-parseInt(n(486))/1+-parseInt(n(480))/2+parseInt(n(484))/3+parseInt(n(477))/4+parseInt(n(497))/5*(-parseInt(n(482))/6)+-parseInt(n(491))/7*(parseInt(n(478))/8)+-parseInt(n(481))/9*(-parseInt(n(472))/10))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(l);const m=h;!function(t){const n=h,e=t();for(;;)try{if(507518===-parseInt(n(412))/1+-parseInt(n(418))/2+-parseInt(n(416))/3*(-parseInt(n(414))/4)+parseInt(n(415))/5+parseInt(n(420))/6+parseInt(n(417))/7*(-parseInt(n(421))/8)+parseInt(n(413))/9)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(y);const g=m(411),b=t=>m(419)+t,I=m(410);function y(){const t=["6037578XdrXco","8YbONMi","pl/games/reward","pl/games","18982vYMCbF","1852830huEBAO","428oQnDAy","126195oFbpHX","7941sNbBYa","3956449aBAgbj","857788gQbgDe","pl/games/"];return(y=function(){return t})()}const w=T;function E(){const t=["Content-Type",". Message: ","PROMi","status","14993902iDcBEx","22323iFRphj","1749942rwsgZg","Error:","headers","amrtn","application/json","2QQUPtw","45bEonHz","4ZOKtVc","substring","2279995Uarsri","https://staging-cexp.cads.live/gamification","569zVhodX","PWHpF","114qQQNSF","GET","body","581816efCfyX","json","error","5018060rdHEDb","API Call Failed (","Bearer ","HTTP error! Status: "];return(E=function(){return t})()}!function(t){const n=T,e=t();for(;;)try{if(400780===parseInt(n(145))/1*(-parseInt(n(168))/2)+-parseInt(n(163))/3+parseInt(n(170))/4*(-parseInt(n(172))/5)+-parseInt(n(147))/6*(parseInt(n(162))/7)+parseInt(n(150))/8*(-parseInt(n(169))/9)+parseInt(n(153))/10+parseInt(n(161))/11)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(E);const x=w(173);function T(t,n){const e=E();return(T=function(t,n){return e[t-=145]})(t,n)}async function v(t,n,e={}){const r=w,s={amrtn:r(157),PROMi:r(167)},o=x+"/"+t,a={Authorization:r(155)+n,...e[r(149)]&&!e[r(165)]?.[s[r(166)]]?{"Content-Type":s[r(159)]}:{}},i=await fetch(o,{...e,headers:{...a,...e[r(165)]}});if(!i.ok){const t=await i.text();throw console[r(152)](r(154)+i[r(160)]+"): "+o,t),new Error(r(156)+i.status+r(158)+t[r(171)](0,100))}return i.json()}function k(){const t=["\n top: 20px;\n left: 50%;\n transform: translateX(-50%);\n ","(max-width: 768px)","style","wheel-modal-title absolute px-4 text-white pb-16 ","desktopConfig","532000xVqmOh","test","href","aujmR","error","body","19250ugFrdU","catch","3722990gTdhPt","9195HNXPEW","phone","\n bottom: 20px;\n right: 50%;\n transform: translateX(-50%);\n ","pzsuS","wKBBI","FNqPH","appendChild","BOTTOM_CENTER","chJeE","bottom-right","\n bottom: calc(50% + 55px) ;\n right: 5px;\n transform: translateY(-50%);\n ","\n bottom: 50%;\n right: 20px;\n transform: translateY(-50%);\n ","--backgroundWheelMb","linear","DiAPI","close-modal-btn button-root ","Săn ngay","Xin chúc mừng","--backgroundModalMb","disabled","wheel-modal ","keteW","wyyHz","WWbpK","226004QAcABt","translateX(-251px) rotate(0deg)","translateX(-251px) rotate(360deg)","close-result-btn button-root ","YnmHD","TOP_RIGHT","button","AMqYt","BUvYs","BOTTOM_LEFT",'[class*="',"text-white b1-medium text-underline ","input","yVMNq","vBWrz","display","cexp-gamification ","pzxpS","b2-medium text-white ","JyAuE","document","cexp-wheel ","querySelectorAll","removeChild","autocomplete","placeholder","result-header-title ","\n top: 20px;\n right: 25px;\n ","LaVkZ","\n bottom: 50%;\n left: 20px;\n transform: translateY(-50%);\n ","name","cssText","forEach","errors","documentElement","EtoQo","--backgroundTriggerMb","submit","flex","wrap-text ","replace","matches","DFBKA","ZPBcv","oYmyA","text-white hight-light ","observe","WangB","571410nPNjyn","NXNkm","preventDefault","Nhập số điện thoại","voucher","DISUK","rotate(0deg)","d-flex gap-2 ","type","wheel_result_background","matchMedia","innerText","udxJj","length","Vlkdw","trigger-btn ","pflZT","USgrX","map","addEventListener","rRtTe","Xem thể lệ","Nhập họ và tên","QWJvC","stringify","--backgroundModal","--backgroundTrigger","title","Vui lòng nhập số điện thoại","3216120TOwIlS","value","CENTER_LEFT","../assets/wheel.png","animate","../assets/wheel_trigger.png","CENTER_RIGHT","div","\n top: 20px;\n left: 20px;\n ","none","off","uDrKB","Wpkkt","remove","\n bottom: 20px;\n left: 20px;\n ","\n bottom: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n ","hefSL","../assets/wheel_background.png","error-msg ","setProperty","POST","OSAMW","\n top: 20px;\n left: 65px;\n transform: translateY(-50%);\n ","9hOPMyf","644sGxxfO","url(","createElement","button-root b2-medium bg-black ","--backgroundResultMb","nXGoT","close-trigger-btn button-root ","DhoQL","Số điện thoại không chính xác!","target","then","nDcLv","--backgroundResult","click","\n top: 10px;\n left: calc(50% + 30px);\n transform: translateX(-50%);\n ","#333","className","wheel-form-wrapper absolute px-4 ","\n right: 50%;\n transform: translateX(-50%);\n ","isValid","cexp-result-container ","psEut","MAcAS","gYFpU","text-field ","mobileConfig"];return(k=function(){return t})()}function C(t,n){const e=k();return(C=function(t,n){return e[t-=241]})(t,n)}function W(t){const n=C,e={psEut:function(t,n){return t(n)},Vlkdw:function(t,n,e,r){return t(n,e,r)},FNqPH:n(392),BUvYs:function(t,n){return t(n)},rRtTe:function(t,n,e){return t(n,e)},MAcAS:n(360),haRaA:n(307),DhoQL:"rotate(360deg)",USgrX:n(295),pzxpS:function(t,n){return t===n},hefSL:"flex",nDcLv:function(t,n){return t===n},aujmR:n(250),fIzKG:n(269),AMqYt:n(388),uDrKB:n(386),lEynF:n(400),srRKM:"bottom-right",keteW:"div",vBWrz:n(312),iEQbL:n(257),WWbpK:n(342),GlWEq:function(t,n){return t||n},yVMNq:n(379),gYFpU:n(294),chJeE:function(t,n){return t??n},wKBBI:n(318),ZPBcv:"name",DISUK:"text",WangB:n(393),JyAuE:n(357),stNPR:n(298),OSAMW:n(343),pflZT:function(t,n){return t??n},EtoQo:"_blank",wyyHz:n(255),DFBKA:"Failure",YnmHD:n(246),nXGoT:n(299),iSCFN:function(t,n){return t>n},ueaSf:n(283),udxJj:function(t){return t()},LaVkZ:function(t){return t()}},{gameConfig:r,apiKey:s,game_id:o}=t;let a,i="",u={isValid:!1,disabled:!1,errors:[{name:e.ZPBcv,message:""},{name:n(283),message:""}]};async function p(t){const r=n;a&&e.psEut(clearInterval,a);try{return await e.Vlkdw(v,I,s,{method:r(403),body:JSON[r(378)]({customer:t,game_id:o})})}catch(i){throw i}}function l(t,e,r){const s=n;switch(r){case c.BOTTOM_RIGHT:t[s(270)].cssText="\n bottom: 20px;\n right: 20px;\n ",t.style.cssText="\n bottom: 20px;\n right: 20px;\n ";break;case c[s(289)]:t.style.cssText=s(284),e[s(270)].cssText=s(260);break;case c[s(315)]:t[s(270)][s(337)]=s(397),e[s(270)].cssText="\n left: 65px;\n ";break;case c[s(385)]:t.style.cssText=s(335),e[s(270)][s(337)]="\n bottom: calc(50% + 60px);\n transform: translateY(-50%);\n left: 65px;\n ";break;case c.CENTER_CENTER:t[s(270)][s(337)]=s(398),e[s(270)].cssText="\n bottom: calc(50% + 65px) ;\n left: calc(50% + 40px);\n transform: translate(-50%);\n ";break;case c[s(389)]:t[s(270)][s(337)]=s(293),e.style[s(337)]=s(292);break;case c.TOP_LEFT:t.style[s(337)]=s(391),e.style[s(337)]=s(405);break;case c.TOP_CENTER:t[s(270)].cssText=s(268),e[s(270)][s(337)]=s(256);break;case c[s(311)]:t[s(270)][s(337)]=s(333),e.style[s(337)]="\n top: 10px;\n ";break;default:t[s(270)][s(337)]="\n bottom: 20px !important;\n right: 20px;\n "}}function f(){const t=n,s={NXNkm:e[t(276)],Wpkkt:e[t(287)]};if(!o)return;const c=window[t(364)](e.fIzKG).matches,f=document[t(340)],{desktopConfig:m,mobileConfig:g}=r??{},{backgroundTrigger:b=e[t(313)],triggerPosition:I=t(291),backgroundWheel:y=e[t(394)],backgroundModal:w=e.lEynF,title:E,rule:x={title:"",url:""}}=m,{backgroundTrigger:T,triggerPosition:v=e.srRKM,backgroundModal:k,backgroundWheel:C,title:W,rule:L}=g,O=document[t(244)](t(390));O[t(258)]=t(322)+o;const R=document[t(244)](e.keteW);R[t(258)]=t(369)+o;const P=document[t(244)](e[t(320)]);P.className=t(248)+o,e[t(368)](l,R,P,c?v:I);const N=e[t(314)](d,{size:12,fill:e.iEQbL});P[t(288)](N),O[t(288)](P),O[t(288)](R),(b||T)&&(f[t(270)][t(402)](t(380),t(243)+b+")"),f[t(270)].setProperty(e[t(305)],t(243)+T+")"));const B=document[t(244)](e.keteW);B.className="cexp-wrapper "+o;const F=document[t(244)]("div");F[t(258)]="modal-wrapper "+o;const S=document[t(244)](e.keteW);S.className="cexp-backdrop-wheel "+o;const H=document[t(244)](e[t(303)]);H.className=t(302)+o,e.GlWEq(w,k)&&(f[t(270)][t(402)](e[t(319)],t(243)+w+")"),f[t(270)][t(402)](t(300),t(243)+k+")")),F[t(288)](H);const A=document[t(244)](e[t(320)]);A[t(258)]=t(297)+o;const U=e[t(314)](d,{size:16,fill:t(257)});A.appendChild(U),H[t(288)](A);const M=document.createElement(e.keteW);M[t(258)]=t(327)+o,(y||C)&&(f[t(270)][t(402)]("--backgroundWheel",t(243)+y+")"),f[t(270)][t(402)](e[t(265)],t(243)+C+")"));const z=document[t(244)]("h1");z[t(258)]=t(271)+o,z.textContent=c?W:e[t(290)](E,"");const K=document[t(244)](e[t(303)]),Y=document.createElement("form"),D=document[t(244)](e[t(286)]),Z=document[t(244)](e[t(286)]),G=document[t(244)](e.vBWrz),q=document[t(244)]("a");q[t(258)]="wheel-policy "+o,K[t(258)]=t(259)+o;const j=document.createElement(e.keteW);j.className=t(266)+o,D[t(336)]=e[t(349)],D[t(362)]=e[t(359)],D[t(331)]=t(376),D[t(330)]=e[t(353)],j[t(288)](D);const V=document.createElement(e[t(303)]);V[t(258)]=t(266)+o,Z[t(336)]=t(283),Z[t(362)]=e[t(359)],Z.placeholder=e[t(325)],Z[t(381)]=e[t(325)],Z[t(330)]=t(393);const X=document.createElement("p");if(X[t(258)]=t(401)+o,V.appendChild(Z),G[t(258)]=t(245)+o,G.innerText=e.stNPR,G[t(362)]=e[t(404)],x||L){const{title:n,url:r}=c?L:x;q.className=t(317)+o,q[t(365)]=e[t(370)](n,""),q[t(275)]=e.pflZT(r,""),q.target=e[t(341)]}Y[t(258)]=t(361)+o,Y[t(270)][t(337)]="\n flex-direction: column\n ",Y[t(288)](j),Y.appendChild(V),Y.appendChild(X),Y[t(288)](G),Y[t(288)](q),K.appendChild(Y);let _=!1;Z[t(373)](e[t(286)],n=>{const e=t;Z[e(384)]=Z[e(384)][e(346)](/[^\d+]/g,"");const r=/^(0|84|\+84)(3|5|7|8|9)([0-9]{8})$/[e(274)](n?.[e(251)]?.[e(384)]);r?(X.innerText="",G[e(301)]=!1):(X[e(365)]=s[e(355)],G[e(301)]=!0),u={isValid:r,disabled:!r,errors:u[e(339)]?.[e(372)](t=>{const n=e;return t[n(336)]===n(283)?{...t,message:r?"":n(382)}:t})}}),Y[t(373)](e.OSAMW,async n=>{const r=t,s={pzsuS:e[r(287)],DiAPI:function(t,n){return e[r(314)](t,n)},QWJvC:function(t,n,r){return e.rRtTe(t,n,r)}};n[r(356)]();const o={name:D[r(384)],phone:Z.value};u[r(261)]&&(!_&&M[r(387)]([{transform:c?e[r(264)]:e.haRaA},{transform:c?e[r(249)]:r(308)}],{duration:3e3,easing:e[r(371)],iterations:1/0}),_=!0,G[r(301)]=!0,a||(a=e[r(374)](setInterval,()=>{const t=r,n={oYmyA:s[t(285)],hPHjk:function(n,e,r){return s[t(377)](n,e,r)}};s[t(296)](p,o)[t(252)](e=>{const r=t;F[r(270)][r(321)]=r(392),R[r(270)][r(321)]=n[r(350)],n.hPHjk(h,!0,e),document[r(278)][r(329)](S)})[t(280)](n=>{const e=t;F[e(270)].display="none",R.style[e(321)]=s.pzsuS,s[e(296)](h,!1),document[e(278)][e(329)](S)})},2e3)))}),A.addEventListener(t(255),()=>{const n=t;e[n(323)](i,o)?(F[n(270)][n(321)]=n(392),R[n(270)][n(321)]=n(392),document[n(278)][n(329)](S)):(F[n(270)][n(321)]=e[n(399)],R[n(270)].display=e.FNqPH,document[n(278)][n(329)](S)),i=o}),R[t(373)](e[t(304)],()=>{const n=t;e[n(253)](i,o)?(F.style[n(321)]=n(392),R[n(270)][n(321)]=n(392),P[n(270)][n(321)]=e[n(287)]):(F.style.display=n(344),R[n(270)][n(321)]=e.FNqPH,P.style.display=e[n(287)],document[n(278)].appendChild(S)),i=o}),P[t(373)](e.wyyHz,()=>{const n=t;F.style.display=s[n(395)],R.style.display=n(392),P[n(270)].display=s.Wpkkt}),H.appendChild(M),H[t(288)](z),H[t(288)](K),B[t(288)](F),document[t(278)][t(288)](B),document[t(278)][t(288)](O)}function h(t,s){const a=n;if(!t)return console[a(277)](e[a(348)]);const c=window[a(364)]("(max-width: 768px)")[a(347)],u=document[a(340)],{backdropResult:p}=c?r[a(267)]:r[a(272)]??{};p.wheel_result_background&&(c?u[a(270)].setProperty(e[a(310)],a(243)+p[a(363)]+")"):u[a(270)][a(402)](a(254),a(243)+p[a(363)]+")"));const l=document[a(244)](e[a(303)]);l[a(258)]=a(262)+o;const f=document.createElement(e[a(303)]);f[a(258)]="result-header "+o;const h=document[a(244)](e.keteW);h[a(258)]=a(332)+o,h[a(365)]=p?.[a(381)]??e[a(247)];const m=document[a(244)](e[a(320)]);m[a(258)]=a(309)+o;const g=e[a(263)](d,{size:16,fill:a(257)});m[a(288)](g);const b=document[a(244)](e.keteW);b[a(258)]="wrap-text mb-2 "+o;const I=document[a(244)]("p");I.className=a(324)+o,I[a(365)]=(s?.[a(381)]??"")+": ";const y=document.createElement("a");y[a(258)]=a(351)+o,y[a(365)]=s?.[a(358)]??"",I[a(288)](y);const w=document[a(244)](e.keteW);w.className=a(345)+o;const E=document[a(244)]("a");E[a(258)]=a(351)+o,E[a(365)]=a(375),b[a(288)](I),l.appendChild(f),l[a(288)](m),l[a(288)](h),l[a(288)](b),l.appendChild(w),m[a(373)](e[a(304)],()=>{const t=a;i="",l[t(270)][t(321)]=t(392)}),document[a(278)].appendChild(l)}function m(){const t=n,r=document[t(328)](t(316)+o+'"]');e.iSCFN(r[t(367)],0)&&r[t(338)](n=>n[t(396)]()),i="",a=void 0,u={isValid:!1,disabled:!1,errors:[{name:t(336),message:""},{name:e.ueaSf,message:""}]}}new ResizeObserver(t=>{const r=n;e[r(366)](m),e[r(334)](f)})[n(352)](window[n(326)].body)}!function(t){const n=C,e=t();for(;;)try{if(388161===parseInt(n(279))/1+-parseInt(n(306))/2+-parseInt(n(282))/3*(parseInt(n(242))/4)+parseInt(n(281))/5+-parseInt(n(354))/6+-parseInt(n(273))/7+-parseInt(n(383))/8*(-parseInt(n(241))/9))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(k);const L=O;function O(t,n){const e=P();return(O=function(t,n){return e[t-=167]})(t,n)}!function(t){const n=O,e=t();for(;;)try{if(699744===-parseInt(n(174))/1*(-parseInt(n(186))/2)+-parseInt(n(193))/3+parseInt(n(176))/4*(-parseInt(n(192))/5)+parseInt(n(197))/6*(parseInt(n(175))/7)+parseInt(n(169))/8*(parseInt(n(181))/9)+parseInt(n(178))/10+-parseInt(n(189))/11)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(P);const R={isValid:!1,disabled:!1,errors:[{name:L(168),message:""},{name:"phone",message:""}]};function P(){const t=["init","iuqYO","4722FRlEPv","SfjPA","destination","name","88lYZczf","navigation","XQOer","game_id","forEach","12DBVipU","8806CFmSAX","952808pUBmhH","locationchange","13695890CNEEZQ","value","map","52641xRzTLW","bsIdt","length","url","includes","115686fnYCnw","addEventListener","aKpzW","16622540iWHaod","href",'[class*="',"10ZezVmt","1292406Ibcwqc","object"];return(P=function(){return t})()}class N{#t;#n;constructor(t){const{apiKey:n,gameConfig:e}=t,r=e;this.#t=r,this.#n=n,this.formState=R}#e(t){const n=L,e={WRABM:function(t,n){return t===n},XQOer:function(t,n){return t(n)},iuqYO:function(t,n){return t>n}},{allowedUrl:r}=this.#t;if(e.WRABM(typeof r,n(194))&&0===r[n(183)])e[n(171)](W,{gameConfig:this.#t,apiKey:this.#n,game_id:this.#t[n(172)]});else if(typeof r===n(194)){const s=r[n(180)](t=>t[n(179)]),o=t??location[n(190)];if(s[n(185)](o))W({gameConfig:this.#t,apiKey:this.#n,game_id:this.#t[n(172)]});else{const t=document.querySelectorAll(n(191)+this.#t[n(172)]+'"]');e[n(196)](t[n(183)],0)&&t[n(173)](t=>t.remove())}return}}[L(195)](){const t=L,n={aKpzW:function(t,n){return t!==n},bsIdt:function(t,n){return t in n},wVUrH:"navigate",SfjPA:t(177)};let e="";!e&&(this.#e(),e=location.href),n[t(182)]("navigation",window)?window[t(170)].addEventListener(n.wVUrH,r=>{const s=t;n[s(188)](e,r?.[s(167)]?.[s(184)])&&(this.#e(r?.[s(167)]?.[s(184)]),e=r?.destination?.[s(184)])}):window[t(187)](n[t(198)],()=>{const n=t;this.#e(),e=location[n(190)]})}}function B(t,n){var e=F();return(B=function(t,n){return e[t-=275]})(t,n)}function F(){var t=["2143ZTdyjr","1415385iQFRpS","136UnWqWV","76thzWpT","20IfvEOQ","1404540CGtzLp","659593KDjWPa","207056UrXJsD","86457MiRrZZ","14NiTkIb","49605lsqbmI"];return(F=function(){return t})()}!function(t){for(var n=B,e=t();;)try{if(166459===-parseInt(n(279))/1*(parseInt(n(281))/2)+parseInt(n(276))/3+parseInt(n(282))/4*(parseInt(n(278))/5)+-parseInt(n(284))/6+parseInt(n(277))/7*(parseInt(n(275))/8)+parseInt(n(280))/9+parseInt(n(283))/10*(parseInt(n(285))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(F);const S=A;function H(){const t=["1489083HnqHkW","2478378pmngJs","2rwOByG","135RfzWtd","PXvZE","error","LHlKx","lctvq","locationchange","lmbSO","160dGgliM","undefined","replacestate","7185864cVPxbL","apply","150724pslcFL","Error:","dGLYi","game_id","length","eBBRD","915021pDmcti","mYHoh","dispatchEvent","game","xrVbV","RYPTn","hGybY","110486JvZYvX","API Key is required","pushState","info","QfHMW","object","pushstate","TDPgc","popstate","forEach","type","Your game not available!","kTZkp","init","exports","7152800gDXhyZ","cexp","amd","parse","replaceState"];return(H=function(){return t})()}function A(t,n){const e=H();return(A=function(t,n){return e[t-=276]})(t,n)}!function(t){const n=A,e=t();for(;;)try{if(660068===-parseInt(n(296))/1+parseInt(n(318))/2*(-parseInt(n(316))/3)+-parseInt(n(283))/4*(parseInt(n(319))/5)+parseInt(n(281))/6+parseInt(n(317))/7+-parseInt(n(311))/8+-parseInt(n(289))/9*(-parseInt(n(278))/10))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(H),function(t){const n=A,e={lmbSO:n(276),bdFgr:n(280)},r=t[n(298)],s=t[n(315)];t.pushState=function(s){const o=n,a=r[o(282)](t,arguments);return window.dispatchEvent(new Event(o(302))),window.dispatchEvent(new Event(e[o(277)])),a},t[n(315)]=function(r){const o=n,a=s[o(282)](t,arguments);return window[o(291)](new Event(e.bdFgr)),window[o(291)](new Event(e.lmbSO)),a},window.addEventListener(n(304),()=>{const t=n;window.dispatchEvent(new Event(e[t(277)]))})}(window.history),function(t,n){const e=A,r={QfHMW:function(t,n){return t===n},LHlKx:e(301),RYPTn:function(t,n){return t!==n},jehFh:function(t){return t()},PXvZE:function(t,n){return t===n},hGybY:"function",lOFjS:function(t,n){return t(n)},lctvq:function(t,n){return t!==n},mYHoh:e(279),jwzFT:function(t,n){return t!==n},nIjAF:function(t){return t()}};if(r[e(300)](typeof exports,r[e(322)])&&r[e(294)](typeof module,e(279)))module[e(310)]=r.jehFh(n);else if(r[e(320)](typeof define,r[e(295)])&&define[e(313)])r.lOFjS(define,n);else{(r[e(323)](typeof globalThis,r[e(290)])?globalThis:t||(r.jwzFT(typeof self,r[e(290)])?self:{}))[e(312)]=r.nIjAF(n)}}(typeof window!==S(279)?window:void 0,()=>{const t=S,n={dGLYi:t(297),ewbNn:function(t,n,e){return t(n,e)},hLFWo:function(t,n){return t(n)},TDPgc:function(t,n,e){return t(n,e)},xrVbV:t(284),kTZkp:function(t,n){return t===n},eBBRD:t(307)};class e{#n;constructor({apiKey:e}){const r=t;!e&&console[r(321)](n[r(285)]),this.#n=e}async#r(){const e=t;try{return n.ewbNn(v,g,this.#n)}catch(r){throw console[e(321)]("Error:",r),r}}async#s(e){const r=t;try{const t=n.hLFWo(b,e);return n[r(303)](v,t,this.#n)}catch(s){throw console.error(n[r(293)],s),s}}async#o(e){const r=t;e[r(305)](async t=>{const e=r;try{const r=await this.#s(t[e(286)]),{config:{gameConfig:s}}=r,a={game_id:t[e(286)],...s?.[e(292)]?JSON[e(314)](s?.[e(292)]):{}};if(a&&n[e(308)](a[e(306)],o.WHEEL)){new N({apiKey:this.#n,gameConfig:a})[e(309)]()}else a&&console[e(299)](n[e(288)])}catch(s){console.error(s)}})}async[t(309)](){const n=t;if(this.#n)try{const t=await this.#r();t[n(287)]&&this.#o(t)}catch(e){}}}return e})});
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(':root{--backgroundTrigger: "";--backgroundTriggerMb: "";--backgroundWheel: "";--backgroundWheelMb: "";--backgroundModal: "";--backgroundModalMb: "";--backgroundResult: "";--backgroundResultMb: ""}*{box-sizing:border-box}.relative{position:relative}.absolute{position:absolute}.gap-2{gap:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.mb-2{margin-bottom:2rem}.pb-12{padding-bottom:3rem}.pb-16{padding-bottom:4rem}.d-flex{display:flex}.flex-col{flex-direction:column}.w-full{width:100%}.text-field{font-size:14px;font-weight:400;line-height:20px;width:100%;height:36px;background-color:#fff;border-radius:8px;padding:.75rem;border-style:none;outline:2px solid transparent;outline-offset:2px}.text-field input{border-style:none;flex:1 1 0%;outline:2px solid transparent;outline-offset:2px;margin:0;padding:0}.bt-transparent{background-color:transparent}.b1-medium{font-size:16px;line-height:24px;font-weight:500}.b2-medium{font-size:14px;font-weight:500;line-height:20px}.text-white{opacity:1;color:#fff}.text-underline{text-decoration:underline}.bg-black{background-color:#000}.button-root{display:flex;align-items:center;justify-content:center;color:#fff;transition:all .2s;height:2.5rem;border-radius:.5rem;cursor:pointer}.cexp-preview-wrapper div{position:relative;display:block;font-style:inherit;text-align:inherit}.wrap-text{display:flex!important;align-items:flex-start;word-break:break-word;padding:0 30px!important;font-size:16px!important;font-weight:400!important;font-family:Insider-Roboto,sans-serif!important;color:#fff!important}.hight-light{font-weight:600;text-decoration:underline}.trigger-btn{width:100%;height:100%;background-image:var(--backgroundTrigger);background-size:contain;background-repeat:no-repeat;background-position:center;cursor:pointer;position:absolute;z-index:100}.close-trigger-btn{border:none;outline:none;z-index:10000}.cexp-wrapper{position:fixed;width:100%;height:100vh;z-index:9999}.backdrop-wheel{display:block;opacity:.8;position:fixed;z-index:100;width:100%;height:100%;background-color:#000;opacity:.6;top:0;left:0;cursor:pointer}.modal-wrapper{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.wheel-modal-banner{background-size:contain;background-repeat:no-repeat;background-position:center;width:100%;max-width:70%;height:30%;top:0;right:0}.wheel-form-wrapper{width:321px;right:0;bottom:0;padding-bottom:20px}.cexp-wheel-shell{width:300px;height:300px;position:absolute;transform:translate(-251px)}.cexp-wheel{width:100%;height:100%;background:var(--backgroundWheel);background-size:cover}.close-modal-btn{position:absolute;top:-16px;right:-16px;width:32px;height:32px;padding:0;border-radius:50%;border:none;outline:none}.wheel-modal{position:relative;min-width:600px;min-height:400px;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background-image:var(--backgroundModal);background-size:cover;background-repeat:no-repeat}.cexp-result-container{position:absolute;background-image:var(--backgroundResult);background-repeat:no-repeat!important;background-position:50% 50%!important;background-color:#fff0!important;width:320px;min-height:500px;z-index:9999}.result-header{position:relative;display:block;min-height:215px}.result-header-title{display:block;font-weight:700;font-size:2em;padding:8px}.close-result-btn{position:absolute;top:-10px;right:-10px;width:32px;height:32px;padding:0;border-radius:50%;border:none;outline:none}.error-msg{color:#fff;margin:0}@media(max-width:768px){.trigger-btn{background-image:var(--backgroundTriggerMb);background-size:cover}.cexp-wrapper{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:100vw;z-index:9999}.backdrop-wheel{display:block;opacity:.6;background-color:#000;position:fixed;z-index:100;width:100%;height:100%;top:0;left:0;cursor:pointer}.modal-wrapper{max-width:calc(100vw - 32px)}.wheel-modal{position:relative;max-width:calc(100vw - 32px);min-width:320px;min-height:480px;width:100%;height:100%;background-image:var(--backgroundModalMb);background-size:cover;background-repeat:no-repeat;background-position:50% 50%!important;display:flex;flex-direction:column;justify-content:center;align-items:center}.wheel-modal-title{width:100%!important}.cexp-wheel-shell{max-width:280px;max-height:280px;position:absolute;top:0!important;left:50%!important;transform:translate(-50%,-50%)!important;z-index:2}.cexp-wheel{width:100%;height:100%;background:var(--backgroundWheelMb);background-size:cover}.wheel-form-wrapper{width:100%;right:unset;bottom:0;padding-bottom:20px}.dynamic-form{left:50%!important;top:80px!important;transform:translate(-50%);width:100%}.checkbox-container{right:unset!important;width:100%;text-align:center}.btn-submit{left:unset!important}.close-modal-btn{position:absolute;top:-10px;right:-10px;width:32px;height:32px;padding:0;border-radius:50%;border:none;outline:none}.wheel-policy{text-align:center}.cexp-result-container{background-image:var(--backgroundResultMb);top:50%!important;left:50%!important;transform:translate(-50%,-50%)}}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
+ !function(t){"function"==typeof define&&define.amd?define(t):t()}(function(){"use strict";function t(n,e){var r=s();return(t=function(t,n){return r[t-=233]})(n,e)}!function(n){for(var e=t,r=n();;)try{if(666903===parseInt(e(236))/1*(parseInt(e(239))/2)+parseInt(e(235))/3+-parseInt(e(237))/4*(-parseInt(e(248))/5)+parseInt(e(249))/6*(-parseInt(e(242))/7)+-parseInt(e(244))/8+parseInt(e(243))/9+parseInt(e(247))/10*(-parseInt(e(240))/11))break;r.push(r.shift())}catch(o){r.push(r.shift())}}(s);var n,e,r,o=(n=o||{},r={dYlMs:(e=t)(233),rjEHr:e(241),rLiQz:e(234)},n[r[e(245)]]=r[e(245)],n[r[e(246)]]=r[e(246)],n[e(234)]=r[e(238)],n);function s(){var t=["4ZTTEqw","rLiQz","4182kAuxOo","319QXElVb","tablet","3997EJoNGA","2415906DHGnrj","2980792CWTGUE","dYlMs","rjEHr","170410PzLces","3777355Vutbcc","12558OegmJk","mobile","desktop","2549010kvIxkY","409VAIcZu"];return(s=function(){return t})()}function c(){const t=["68776AnXTLF","Dismiss","27522NCbWFu","1190GjgnAb","1466550YtZbpA","QCZJc","vRsci","209lRDZwd","CQXgC","var(--neutral-gray-900)","CLUlb","width","Heodm","755lZljHu","class","AwvcW","77556VspYTQ","993694VNLrkh","1750920qpkBRz","xmlns","GjyyN","toString","size-4","http://www.w3.org/2000/svg","UEGsD","BrotR","setAttribute","path","TnrTX","gkYvb","svg","Shape","height","fill","22348gFTiHB","980qMMtuo","appendChild","none","1RTeqEM"];return(c=function(){return t})()}function i(t,n){const e=c();return(i=function(t,n){return e[t-=251]})(t,n)}function a(t){const n=i,e={cWJBB:n(256),UEGsD:function(t,n){return t||n},GjyyN:n(257),CQXgC:n(284),CLUlb:"viewBox",gkYvb:"0 0 24 24",QCZJc:n(267),BrotR:n(271),Heodm:n(253),vRsci:n(287),AwvcW:n(274),TnrTX:n(265),Xbnay:"M4.2097 4.3871L4.29289 4.29289C4.65338 3.93241 5.22061 3.90468 5.6129 4.2097L5.70711 4.29289L12 10.585L18.2929 4.29289C18.6834 3.90237 19.3166 3.90237 19.7071 4.29289C20.0976 4.68342 20.0976 5.31658 19.7071 5.70711L13.415 12L19.7071 18.2929C20.0676 18.6534 20.0953 19.2206 19.7903 19.6129L19.7071 19.7071C19.3466 20.0676 18.7794 20.0953 18.3871 19.7903L18.2929 19.7071L12 13.415L5.70711 19.7071C5.31658 20.0976 4.68342 20.0976 4.29289 19.7071C3.90237 19.3166 3.90237 18.6834 4.29289 18.2929L10.585 12L4.29289 5.70711C3.93241 5.34662 3.90468 4.77939 4.2097 4.3871L4.29289 4.29289L4.2097 4.3871Z"},{size:r=24,fill:o=n(282),className:s=e.cWJBB}=e[n(258)](t,{}),c=e[n(254)],a=document.createElementNS(c,n(264));a[n(260)](e[n(281)],r[n(255)]()),a[n(260)](n(266),r[n(255)]()),a[n(260)](e[n(283)],e[n(263)]),a[n(260)](e.QCZJc,e[n(259)]),a.setAttribute(e[n(285)],c),s&&a[n(260)](e[n(279)],s);const u=document.createElementNS(c,"g");u.setAttribute("id",e[n(288)]);const p=document.createElementNS(c,n(261));return p[n(260)]("id",e[n(262)]),p.setAttribute("d",e.Xbnay),p[n(260)](e[n(278)],o),u[n(270)](p),a.appendChild(u),a}function u(t,n){var e=p();return(u=function(t,n){return e[t-=105]})(t,n)}function p(){var t=["253165LjTgYt","jNZnX","cbBDt","1727478ettoji","forEach","20bGiBDq","events","358sxuGPH","name","10tiZVCW","AuQMd","BjnIq","14QkDLww","6621813jLOlVZ","BKcIO","push","AUTH_ERROR","xjuis","383643sBfktr","Quá nhiều request","CONFIG_NOT_FOUND","Lỗi hệ thống","code","PuBbd","SERVER_ERROR","hLzEB","fJETi","UNKNOWN_ERROR","nDncf","rdrtu","406744sNBttK","Game/Config không tồn tại","hcQmx","QrDOd","zMUie","status","DRFhZ","MMkSv","270429OTJztL","MRHJS","1154VmRhgU"];return(p=function(){return t})()}!function(t){const n=i,e=t();for(;;)try{if(820633===-parseInt(n(272))/1*(-parseInt(n(251))/2)+parseInt(n(277))/3+parseInt(n(268))/4*(parseInt(n(286))/5)+-parseInt(n(252))/6+-parseInt(n(269))/7*(parseInt(n(273))/8)+parseInt(n(275))/9*(parseInt(n(276))/10)+parseInt(n(280))/11*(parseInt(n(289))/12))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(c),function(t){for(var n=u,e=t();;)try{if(213301===parseInt(n(129))/1*(parseInt(n(137))/2)+parseInt(n(127))/3+parseInt(n(135))/4*(-parseInt(n(130))/5)+-parseInt(n(133))/6+parseInt(n(142))/7*(-parseInt(n(119))/8)+-parseInt(n(107))/9*(parseInt(n(139))/10)+parseInt(n(143))/11)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(p);var f,l,h,d=(f=d||{},h={BjnIq:"AUTH_ERROR",MRHJS:(l=u)(109),zMUie:"RATE_LIMIT",hLzEB:l(113),xjuis:l(116)},f[h[l(141)]]=h.BjnIq,f[h.MRHJS]=h[l(128)],f[h[l(123)]]=h[l(123)],f[l(113)]=h[l(114)],f[l(116)]=h[l(106)],f);class m extends Error{constructor(t,n,e){var r=u;super(n),this[r(138)]={rdrtu:"GamificationError"}[r(118)],this[r(111)]=t,this[r(124)]=e}}class I{constructor(){this[u(136)]={}}on(t,n){var e=u;!this[e(136)][t]&&(this[e(136)][t]=[]),this.events[t][e(145)](n)}emit(t,...n){var e=u;this.events[t]&&this.events[t][e(134)](t=>t(...n))}}const g=b;function b(t,n){const e=w();return(b=function(t,n){return e[t-=386]})(t,n)}!function(t){const n=b,e=t();for(;;)try{if(777438===-parseInt(n(398))/1*(-parseInt(n(393))/2)+parseInt(n(390))/3*(-parseInt(n(389))/4)+parseInt(n(400))/5*(-parseInt(n(387))/6)+-parseInt(n(401))/7*(-parseInt(n(392))/8)+parseInt(n(386))/9*(-parseInt(n(397))/10)+-parseInt(n(396))/11*(parseInt(n(388))/12)+parseInt(n(391))/13)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(w),g(394);const y=g(399);function w(){const t=["pl/games/","11UwFiPK","2484770ZhDqBW","6653SBiuaX","pl/games/reward","5025IFeNpI","453747clEiam","54JlKkzL","4326rpxhMa","8780508eSjRVo","4IKpeHy","2746269FROnbG","54938325vFerJh","24qPXILJ","66nvePXq","sv/token"];return(w=function(){return t})()}function v(){const t=["vezXW","Bearer ","json","1767466whSMKo","HToUo","abaBi","status","ldMrX","54TIQELv","Content-Type","1xgxDqj","headers","1529AZLwkG","body","826788uBgQZE","10790008EoSPmd","35GKdIzC","25690LXfRVY","612353xfsyBn","application/json","1498230ednPfB","Error:","4584633hcfkJO"];return(v=function(){return t})()}function E(t,n){const e=v();return(E=function(t,n){return e[t-=462]})(t,n)}!function(t){const n=E,e=t();for(;;)try{if(840280===parseInt(n(479))/1*(parseInt(n(472))/2)+-parseInt(n(468))/3+-parseInt(n(483))/4*(-parseInt(n(462))/5)+parseInt(n(477))/6*(-parseInt(n(464))/7)+parseInt(n(484))/8+-parseInt(n(466))/9+parseInt(n(463))/10*(-parseInt(n(481))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(v);async function k(t,n,e={}){const r=E,o={HToUo:r(478),abaBi:function(t,n,e){return t(n,e)}},s="https://staging-cexp.cads.live/gamification/"+t,c={Authorization:r(470)+n,...e[r(482)]&&!e[r(480)]?.[o[r(473)]]?{"Content-Type":r(465)}:{}},i=await o[r(474)](fetch,s,{...e,headers:{...c,...e[r(480)]}});if(!i.ok)throw function(t){var n=u,e={jNZnX:function(t,n){return t===n},BKcIO:function(t,n){return t===n},SHdcL:n(105),QrDOd:function(t,n){return t===n},jMjEC:n(109),DRFhZ:n(120),hcQmx:"RATE_LIMIT",nDncf:n(108),MMkSv:function(t,n){return t>=n},PuBbd:"SERVER_ERROR",fJETi:n(110),AuQMd:n(116),cbBDt:"Lỗi không xác định"};switch(!0){case e[n(131)](t,401)||e[n(144)](t,403):return new m(e.SHdcL,"Sai key hoặc không có quyền",t);case e[n(122)](t,404):return new m(e.jMjEC,e[n(125)],t);case e[n(131)](t,429):return new m(e[n(121)],e[n(117)],t);case e[n(126)](t,500):return new m(e[n(112)],e[n(115)],t);default:return new m(e[n(140)],e[n(132)],t)}}(i[r(475)]);return i[r(471)]()}function T(){const t=["405774ExXKRx","70RSEhoh","43279cEldOg","5JiLoAd","2452282uRTZmj","xjqCk","11094710jWFXwi","5216528fBXIQL","882240cFCVqH","6457368fEQpuU","18ucDWrl"];return(T=function(){return t})()}function x(t,n){const e={...t};return n.forEach(t=>{delete e[t]}),e}function C(t,n){const e=T();return(C=function(t,n){return e[t-=371]})(t,n)}function B(t){return{xjqCk:function(t,n){return t!=n}}[C(379)](t,null)}function K(){const t=["length","ublZJ","9YjbkbC","top","126dzOKpT","1561087HReMda","WEyvy","77dczIxo","left","YoAlT","vepRg","right","string","absolute","keys","7269qXBECP","bottom","101270uMbfuj","hETiu","ASMGu","1732070cctAoo","2YVFspr","12900enznjn","2548544qYIBRZ","1178748iYtZVk","2620ndPoGB"];return(K=function(){return t})()}function O(t,n){const e=K();return(O=function(t,n){return e[t-=305]})(t,n)}function j(t){const n=O,e={YoAlT:function(t,n){return t(n)},vepRg:"string",hETiu:function(t,n){return t(n)},ublZJ:function(t,n){return t===n},ASMGu:function(t,n){return t===n},SdSWQ:function(t,n){return t>n},WEyvy:n(323)};if(!t||!e[n(319)](B,t))return{};let r={};return B(t[n(313)])&&(r={...r,top:typeof t[n(313)]===e[n(320)]?t[n(313)]:t.top+"px"}),e[n(328)](B,t[n(318)])&&(r={...r,left:e[n(311)](typeof t.left,e.vepRg)?t[n(318)]:t[n(318)]+"px"}),e.YoAlT(B,t[n(326)])&&(r={...r,bottom:e.ublZJ(typeof t[n(326)],n(322))?t[n(326)]:t[n(326)]+"px"}),e.YoAlT(B,t[n(321)])&&(r={...r,right:e[n(329)](typeof t[n(321)],n(322))?t.right:t[n(321)]+"px"}),e.SdSWQ(Object[n(324)](r)[n(310)],0)&&!t.position&&(r={...r,position:e[n(316)]}),r}!function(t){const n=C,e=t();for(;;)try{if(833162===-parseInt(n(376))/1*(-parseInt(n(375))/2)+parseInt(n(371))/3+parseInt(n(372))/4*(-parseInt(n(377))/5)+parseInt(n(373))/6*(parseInt(n(378))/7)+parseInt(n(381))/8+parseInt(n(374))/9+-parseInt(n(380))/10)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(T),function(t){const n=O,e=t();for(;;)try{if(840076===-parseInt(n(315))/1*(parseInt(n(305))/2)+-parseInt(n(325))/3*(-parseInt(n(309))/4)+-parseInt(n(327))/5+parseInt(n(306))/6*(parseInt(n(314))/7)+parseInt(n(307))/8*(-parseInt(n(312))/9)+-parseInt(n(330))/10*(-parseInt(n(317))/11)+-parseInt(n(308))/12)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(K),function(t){const n=L,e=t();for(;;)try{if(134758===-parseInt(n(220))/1+-parseInt(n(235))/2+parseInt(n(223))/3+-parseInt(n(240))/4+parseInt(n(238))/5*(-parseInt(n(226))/6)+parseInt(n(229))/7+parseInt(n(233))/8*(parseInt(n(221))/9))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(N);const R=(t,n)=>{const e=L,r={ukxnn:e(231)};if(n===o.desktop){const n=t.desktopConfig,o=n[0][e(245)][e(244)](t=>t.type===e(225)),s=n[0].blocks[e(244)](t=>t[e(246)]===e(225))?.[e(232)]?.[0],c={trigger:o?.[e(227)]??{},closeButton:s?.[e(227)]??{}},i=n[1][e(245)]?.[0],a=i?.children?.[e(244)](t=>t[e(246)]===e(228)),u=a?.[e(232)]?.[e(244)](t=>t[e(241)]===e(218)),p=i?.[e(232)]?.[e(244)](t=>"h1"===t[e(246)]),f=i?.children?.[e(244)](t=>t[e(246)]===e(243)),l=i?.[e(232)]?.[e(244)](t=>t[e(241)]===e(224)),h=i?.[e(232)]?.[e(244)](t=>t[e(241)]===e(219)),d=i?.[e(232)]?.[e(244)](t=>t[e(246)]===e(222))?.[e(242)]?.[e(236)]??{title:"",url:""},m=i?.[e(232)]?.[e(244)](t=>t[e(246)]===e(222)),I={modal:i?.[e(227)]??{},wheel:a?.[e(227)]??{},title:p?.styles??{},form:f?.[e(227)]??{},btnSubmit:l?.[e(227)]??{},checkbox:m?.[e(227)]??{},closeModal:h?.styles??{}},g=n[2].blocks?.[0]??{},b=o?.[e(242)]?.[e(239)]??"",y=i?.[e(242)]?.file??"",w=a?.[e(242)]?.[e(239)]??"",v=a?.[e(242)]?.[e(230)]??r[e(234)],E=Number(a?.config?.spinSpeed)||5;return{backgroundTrigger:b,backgroundModal:y,backgroundWheel:w,closeBtn:s,title:p?.[e(237)]??"",rule:d,result:g,spinDirection:v,spinSpeed:E,arrow:u,form:{form:f,checkbox:m,btnSubmit:l},styles:{trigger:c,modal:I}}}return{backgroundTrigger:"",backgroundModal:"",backgroundWheel:"",title:"",result:{},rule:{title:"",url:""},contentCheckbox:""}};function L(t,n){const e=N();return(L=function(t,n){return e[t-=218]})(t,n)}function N(){const t=["checkbox","55449OwIaog","Nút quay","trigger","18Cdvqsg","styles","wheel","1339800kqQxOs","spinDirection","left","children","296GUTFAU","ukxnn","506978FZxSaV","rule","content","122310GHwkHc","file","452384mTXaPK","name","config","form","find","blocks","type","Hình ảnh mũi tên","Đóng popup","224305HquXCk","143307ykUjYv"];return(N=function(){return t})()}function S(t,n){const e=H();return(S=function(t,n){return e[t-=110]})(t,n)}function A(t,n,e,r){const o=S,s={UQirB:function(t,n){return t===n},ocydx:o(114),Ocquo:"Số điện thoại không hợp lệ",fqbeS:o(132),bFinV:o(127),EIjwp:o(142),JoWJo:o(118),MOcxY:function(t,n){return t===n},xToUN:o(189),VYZme:"100%",JaXTV:o(125),pllPK:o(157),sxhQe:function(t,n,e,r){return t(n,e,r)},lYNGm:o(120),JKHDR:o(123),qBPfV:o(200),smrKP:o(116),bOqOK:"column",RmZzZ:o(149),XphKa:function(t,n,e){return t(n,e)},suAyw:o(197),vXjkZ:function(t,n){return t(n)},pRTHy:o(128),xwmBW:o(136),YKrAd:o(119),nIjCP:o(179),uMKqW:o(183),IMwgG:o(131),eUyYb:o(138),UIuVB:o(178),uECyr:o(151),HLrxc:o(147)},c="form-"+n,i=(t,n,e)=>{const r=o,c=t[r(205)].trim();if(!c)return e[r(137)]=r(176),!1;if(s[r(117)](n,s[r(121)])){if(!/^(0|84|\+84)(3|5|7|8|9)([0-9]{8})$/[r(204)](c))return e.innerText=s.Ocquo,!1}if(s[r(117)](n,s[r(124)])){if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/[r(204)](c))return e[r(137)]=s[r(158)],!1}return e[r(137)]="",!0},a=document[o(141)](s[o(133)]);a.id=c,a[o(122)]=o(173)+n,Object.assign(a[o(156)],{position:s[o(145)],display:s[o(170)],flexDirection:s[o(193)],gap:"12px",...t[o(123)][o(139)],...j(t.form[o(139)])});const u=[];t[o(123)][o(146)][o(203)][o(135)](t=>{const e=o,r=document.createElement(e(149));r[e(156)][e(164)]=s[e(111)];const c=document[e(141)](s[e(172)]);c[e(175)]=s[e(159)](t.type,s[e(121)])?s.xToUN:t[e(175)],c[e(194)]=t[e(194)],c[e(113)]=t[e(194)],c[e(122)]=e(162)+n,c[e(156)][e(192)]=s.VYZme,c[e(156)][e(197)]=s[e(160)];const p=document[e(141)]("p");p[e(156)].cssText=s.pllPK,c[e(184)](s[e(172)],()=>i(c,t[e(175)],p)),u[e(182)]({input:c,error:p,type:t.type}),r.appendChild(c),r.appendChild(p),a[e(148)](r)});const p=document.createElement(s.RmZzZ);p[o(122)]=o(163)+n,Object[o(185)](p.style,{...s[o(115)](x,t[o(128)].styles,[s[o(143)]]),...s.vXjkZ(j,t.checkbox[o(139)])});const f=document[o(141)](o(118));f[o(175)]=s.pRTHy,f.id="cb-"+t[o(128)].id,f[o(156)][o(165)]=s[o(177)];const l=document.createElement(s.YKrAd);l.htmlFor=f.id,l[o(137)]=t[o(128)].content,Object[o(185)](l[o(156)],{"font-size":s[o(166)],"font-weight":500,color:s[o(186)]});const h=document.createElement("a");h[o(137)]=t.checkbox.config?.[o(187)][o(188)]??"",h[o(191)]=t[o(128)][o(144)]?.[o(187)][o(140)]??"",h[o(198)]=s[o(195)],h[o(156)][o(169)]=o(110),h[o(156)][o(197)]=o(125);const d=document.createElement("p");d[o(156)][o(174)]=s[o(180)],f[o(184)](s[o(153)],()=>{f.checked&&(d.innerText="")}),p[o(148)](f),p.appendChild(l),p.appendChild(h),p.appendChild(d);const m=document.createElement(s[o(161)]);m[o(175)]=s.HLrxc,m[o(171)](o(123),c),m[o(137)]=t.btnSubmit[o(196)],m[o(122)]="btn-submit "+n,Object[o(185)](m[o(156)],{position:s[o(145)],...t.btnSubmit[o(139)],...j(t.btnSubmit.styles)}),a.addEventListener(s[o(130)],t=>{const n=o;t[n(181)]();let e=!0;const c={};u[n(135)](({input:t,error:r,type:o})=>{const a=n;s[a(190)](i,t,o,r)||(e=!1),c[t[a(113)]]=t[a(205)]}),!f[n(168)]&&(d.innerText=s[n(126)],e=!1),e&&r(c)}),e.appendChild(a),e[o(148)](p),e[o(148)](m)}function H(){const t=["data","submit","appendChild","div","1145106GtFaiF","button","30SIWXeX","UIuVB","1854140Uinvhp","8uYxQnH","style","color: red; font-size: 11px; margin: 4px 0 0 0; white-space: nowrap;","bFinV","MOcxY","JaXTV","uECyr","text-field ","checkbox-container ","position","marginRight","nIjCP","55344QMaGAo","checked","marginLeft","smrKP","setAttribute","JoWJo","dynamic-form ","cssText","type","Trường này không được để trống","xwmBW","change","14px","eUyYb","preventDefault","push","rgb(65, 70, 81)","addEventListener","assign","uMKqW","rule","title","text","sxhQe","href","width","bOqOK","placeholder","IMwgG","content","display","target","189EfhaIs","absolute","103134JhexfW","245745wyeLAc","inputs","test","value","20px","EIjwp","850691vBFred","name","tel","XphKa","flex","UQirB","input","label","Bạn cần đồng ý với chính sách để tiếp tục","ocydx","className","form","fqbeS","block","lYNGm","Email không hợp lệ","checkbox","15584630TRYrHg","HLrxc","_blank","email","JKHDR","11WuQhyt","forEach","8px","innerText","color: red; font-size: 11px; position: absolute; top: 100%; left: 0;","styles","url","createElement","relative","suAyw","config","qBPfV"];return(H=function(){return t})()}function W(){const t=["document","linear","error","uSCym","stringify","AwXBw","matches","content","cexp-wheel-arrow ","bQXKE","Esqtc","button","rotate(0deg)","setProperty","Xem thể lệ","rotate(","div","name","desktop","querySelectorAll","WbCwn","qCWGv","title","UFuDu","forEach","cexp-wheel-shell ","EHpVH","NVsGd","body","aaJrI"," scale(","cexp-wheel ","none","ambgl","text-white hight-light ","flex","#333",".cexp-result-container.","CSS","matchMedia","MPeYY","dvrCz","innerText","1317894jsswDh","JPKXN","--backgroundWheel","offsetWidth","12772179sCKBsv","IvXTV","3810548ZdStSK","cexp-backdrop-wheel ","transformOrigin","removeChild","find","addEventListener","POST","sHYDW","qjwuX","nBVPp","style","DIKiG","DdXHK","transform","b2-medium text-white ","innerHeight","avOIB","max","--backgroundTrigger","6BnrSZB","PNwhk","display","replace","trim","modal-wrapper ","pdLoF","1305888AGUmYI","pVDVb","url(","trigger-btn ","10wqByqF","NvHNg","Failure","iDpbO","--backgroundResult","file","trigger","querySelector","Xin chúc mừng","JFmca","iFbfW","cexp-wrapper ","Ydkqd","ocKnh","remove","2Hwhyjq","scrollHeight","result-header-title ","assign","background","backgroundImage","nneHt","phone","(max-width: 768px)","appendChild","voucher","offsetHeight","center",".modal-wrapper.","aHNwJ","bvHpD","wheel-modal-title","textContent","innerWidth","YZeUS","styles","100%","right","czfTx","PkOlb","className","1109907qzQhod","closeButton","translate(-50%, -50%) scale(","EwGmO","backgroundColor","min","length","Tiêu đề","eqKJO","700305zoQHwc","jaApz","KBIzY","--backgroundResultMb","observe","kwArU","children","modal","Mô tả","createElement","--backgroundModal","emit","close-trigger-btn button-root ","config","scrollWidth","thHNZ","result","5213752cdRJEt","close-modal-btn button-root ","then","vMsuc","BRfGf","--backgroundTriggerMb","EwXAD","ariVK","sUBsY","wheel","translate(-50%, -50%)"];return(W=function(){return t})()}function q(t,n){const e=W();return(q=function(t,n){return e[t-=341]})(t,n)}function G(t){const n=q,e={DIKiG:function(t,n){return t(n)},PNwhk:n(431),jaApz:function(t,n,e){return t(n,e)},kwArU:function(t,n){return t===n},JFmca:n(434),avOIB:n(401),ambgl:function(t,n){return t===n},wbcMF:function(t,n,e){return t(n,e)},NVsGd:n(358),pVDVb:function(t,n){return t-n},BRfGf:function(t,n){return t*n},ocKnh:"div",eqKJO:n(341),uSCym:n(497),JPKXN:n(410),EHpVH:function(t,n){return t||n},yzofj:n(393),IvXTV:function(t,n){return t(n)},thHNZ:n(381),dvrCz:"--backgroundModalMb",GXcZh:n(357),Vaspi:"no-repeat",pdLoF:n(444),CrnAy:n(352),thaDa:function(t,n){return t??n},nneHt:function(t,n,e,r,o){return t(n,e,r,o)},MPeYY:"click",ariVK:function(t){return t()},qCWGv:function(t,n){return t*n},jEcvO:function(t,n){return t-n},iFbfW:function(t,n){return t/n},qjwuX:function(t,n){return t>n},YZeUS:function(t,n,e,r){return t(n,e,r)},EwXAD:"center",EwGmO:function(t,n){return t<n},bvHpD:"top left",AwXBw:function(t,n){return t<n},UFuDu:n(480),BQXIJ:n(344),Esqtc:function(t,n,e){return t(n,e)},aaJrI:n(482),czfTx:function(t,n,e){return t(n,e)},WbCwn:n(366),DdXHK:function(t,n){return t(n)},XrJgd:n(486),PkOlb:function(t,n){return t(n)},jNnLv:n(413),iDpbO:function(t,n){return t(n)},ofqkl:function(t,n){return t>n},NvHNg:n(416),aHNwJ:n(343),bQXKE:function(t){return t()}},{gameConfig:r,apiKey:s,game_id:c,emitter:i}=t;let u,p="";async function f(t){const r=n;u&&e[r(459)](clearInterval,u);try{return await k(y,s,{method:r(454),body:JSON[r(403)]({customer:t,game_id:c})})}catch(o){throw o}}function l(){const t=n,s={sUBsY:e[t(468)],EhAfb:e[t(464)],vMsuc:function(t,n){return t(n)},kgsMf:function(n,r){return e[t(432)](n,r)},nBVPp:e.JFmca};if(!c)return;const l=window[t(438)](t(344))[t(405)],h=document.documentElement,I=e.wbcMF(R,r,o[t(417)]),g=e[t(372)](R,r,o.desktop),{backgroundTrigger:b,closeBtn:y,backgroundWheel:w,backgroundModal:v,title:E,rule:k,form:T,styles:C,spinDirection:B,spinSpeed:K,arrow:O}=I,L=e[t(376)](B,e[t(426)])?-360:360,N=Math[t(465)](500,e[t(475)](5500,e[t(392)](Number(K)||5,500))),{backgroundTrigger:S,backgroundModal:H,backgroundWheel:W,title:q,rule:G}=g,M=document[t(380)](e[t(491)]);M[t(361)]="cexp-gamification "+c,Object[t(496)](M[t(458)],{...x(C?.[t(484)][t(484)],[e.eqKJO,e[t(402)]]),...e.DIKiG(j,C?.[t(484)]?.[t(484)])});const U=document[t(380)](t(415));U[t(361)]=t(477)+c;const X=document.createElement(e[t(443)]);X[t(361)]=t(383)+c,X.innerText=y?.content??"X",Object.assign(X[t(458)],{...C?.[t(484)][t(363)],...e[t(459)](j,C?.[t(484)]?.[t(363)])}),M[t(345)](X),M[t(345)](U),e[t(425)](b,S)&&(h[t(458)][t(412)](t(466),t(476)+b+")"),h[t(458)].setProperty(e.yzofj,"url("+S+")"));const Y=document[t(380)]("div");Y.className=t(489)+c;const J=document[t(380)](e[t(491)]);J[t(361)]=t(472)+c,Object.assign(J.style,{...C?.[t(378)][t(378)],...e[t(447)](j,C?.[t(378)][t(378)])});const z=document[t(380)](t(415));z[t(361)]=t(449)+c;const D=document[t(380)](t(415));D.className="wheel-modal "+c,e[t(425)](v,H)&&(h.style[t(412)](e[t(386)],t(476)+v+")"),h[t(458)][t(412)](e[t(440)],"url("+H+")")),J[t(345)](D);const V=document.createElement(t(410));V.className=t(389)+c;const P=e[t(447)](a,{size:16,fill:t(435)});V[t(345)](P),D.appendChild(V);const Z=document[t(380)](t(415));Z[t(361)]=t(424)+c,Object[t(496)](Z.style,{...e.jaApz(x,C?.[t(378)].wheel,[e.eqKJO,e[t(402)]]),...e[t(447)](j,C?.[t(378)][t(397)])});const F=document[t(380)]("div");if(F[t(361)]=t(430)+c,Object[t(496)](F[t(458)],{width:e.GXcZh,height:t(357),position:"relative",transform:e[t(468)]}),Z[t(345)](F),O){const n=document[t(380)](e[t(491)]);n.className=t(407)+c,Object[t(496)](n.style,{...x(O[t(356)],[e[t(370)],t(497)]),...e.IvXTV(j,O[t(356)]),backgroundImage:O[t(384)]?.[t(483)]?"url("+O[t(384)][t(483)]+")":e.PNwhk,backgroundSize:"contain",backgroundRepeat:e.Vaspi,backgroundPosition:t(348)}),F[t(345)](n)}e[t(425)](w,W)&&(h[t(458)][t(412)](e[t(473)],t(476)+w+")"),h.style[t(412)]("--backgroundWheelMb",t(476)+W+")"));const Q=document[t(380)]("h1");Q.className=e.CrnAy,Q[t(353)]=l?q:e.thaDa(E,""),Object[t(496)](Q[t(458)],{...C?.[t(378)].title,...j(C?.[t(378)][t(421)])});let _=!1;const $=document.createElement("div");$[t(361)]="wheel-form-wrapper absolute px-4 "+c,T&&e[t(342)](A,T,c,D,n=>{const r=t,o={sHYDW:e[r(468)]};!_&&F.animate([{transform:r(411)},{transform:r(414)+L+"deg)"}],{duration:N,easing:r(400),iterations:1/0}),_=!0,!u&&(u=e[r(372)](setInterval,()=>{const t=r,e={Ydkqd:s[t(396)],KBIzY:s.EhAfb};s[t(391)](f,n)[t(390)](n=>{const e=t;J.style[e(469)]=e(431),U.style.display=o[e(455)],m(!0,n),document[e(427)][e(451)](z)}).catch(n=>{const r=t;J[r(458)][r(469)]=e[r(490)],U[r(458)][r(469)]=e[r(490)],m(!1),document.body.removeChild(z),i&&i[r(382)](e[r(373)],n)})},2e3))}),V[t(453)](e[t(439)],()=>{const n=t;e.kwArU(p,c)?(J[n(458)][n(469)]=e[n(468)],U[n(458)][n(469)]=n(431),document[n(427)][n(451)](z)):(J[n(458)].display=e[n(487)],U[n(458)].display=n(431),document[n(427)].removeChild(z)),p=c}),U[t(453)](e.MPeYY,()=>{const n=t;J[n(458)].display=s[n(396)],U[n(458)][n(469)]=s[n(396)],s.kgsMf(p,c)?(J[n(458)].display=s.sUBsY,M[n(458)][n(469)]="none",X.style[n(469)]=s[n(396)]):(J[n(458)][n(469)]=s[n(457)],M[n(458)][n(469)]=n(431),X[n(458)].display=s[n(396)],document[n(427)][n(345)](z)),p=c}),X.addEventListener("click",()=>{const n=t;J[n(458)].display=s[n(396)],U[n(458)][n(469)]=s[n(396)],X[n(458)][n(469)]=s[n(396)]}),D[t(345)](Z),D[t(345)](Q),D[t(345)]($),Y[t(345)](M),Y[t(345)](J),document[t(427)][t(345)](Y),e[t(395)](d)}function h(t,r,o){const s=n,c=window[s(354)]-e[s(420)](o,2),i=e.jEcvO(window[s(463)],2*o);return Math[s(367)](1,e.iFbfW(c,t),e.iFbfW(i,r))}function d(){const t=n,r=window[t(437)]?.escape,o=r?e[t(459)](r,c):c,s=document[t(485)](t(349)+o);if(s){const n=s[t(385)]||s.offsetWidth,r=s[t(494)]||s.offsetHeight;if(n>0&&e[t(456)](r,0)){const o=e[t(355)](h,n,r,16);s[t(458)][t(450)]=e[t(394)],s[t(458)].transform=e[t(365)](o,1)?"translate(-50%, -50%) scale("+o+")":"translate(-50%, -50%)"}}const i=document[t(485)](".cexp-gamification."+o);if(i){const n=i.offsetWidth,r=e[t(392)](window.innerWidth,.35),o=e.qjwuX(n,0)?Math[t(367)](1,e[t(488)](r,n)):1,s=(i[t(458)].transform||"")[t(470)](/\s*scale\([^)]*\)/g,"");i.style[t(450)]=e[t(351)],i[t(458)][t(461)]=e[t(404)](o,1)?(s+t(429)+o+")")[t(471)]():s}const a=document[t(485)](t(436)+o);if(a){const n=a[t(385)]||a[t(445)],r=a[t(494)]||a[t(347)];if(e[t(456)](n,0)&&r>0){const o=e[t(355)](h,n,r,16);a[t(458)][t(450)]=t(348),a[t(458)].transform=o<1?t(364)+o+")":t(398)}}}function m(t,s){const i=n;if(!t)return console[i(401)](e[i(422)]);const u=window.matchMedia(e.BQXIJ)[i(405)],f=document.documentElement,l=e[i(409)](R,r,o.desktop)[i(387)];l?.[i(384)]?.[i(483)]&&(u?f.style[i(412)](i(374),"url("+l?.[i(384)]?.[i(483)]+")"):f.style[i(412)](e[i(428)],i(476)+l?.[i(384)]?.file+")"));const h=l?.children?.[i(452)](t=>t[i(416)]===i(369)),m=l?.[i(377)]?.find(t=>t[i(416)]===i(379)),I=document[i(380)](e.ocKnh);I[i(361)]="cexp-result-container "+c,Object[i(496)](I[i(458)],{...e[i(359)](x,l[i(356)],[e[i(370)],e[i(419)]]),...e[i(460)](j,l[i(356)])});const g=document[i(380)]("h1");g[i(361)]=i(495)+c,g[i(441)]=h?.content??e.XrJgd,Object.assign(g[i(458)],{...h?.[i(356)],...e[i(460)](j,h?.[i(356)])});const b=document[i(380)](e[i(443)]);b[i(361)]="close-result-btn button-root "+c;const y=e[i(360)](a,{size:16,fill:i(435)});b[i(345)](y);const w=document[i(380)](e[i(491)]);w.className=""+c;const v=document[i(380)]("p");v[i(361)]=i(462)+c,v[i(441)]=(s?.[i(421)]??"")+": ";const E=document[i(380)]("a");E[i(361)]=i(433)+c,E[i(441)]=s?.[i(346)]??"",v.appendChild(E);const k=document.createElement(e[i(491)]);k[i(361)]=""+c;const T=document.createElement("a");T[i(361)]=i(433)+c,T.innerText=e.jNnLv;const C=document[i(380)]("h1");C.className=i(495)+c,C[i(441)]=m?.[i(406)]??"",Object[i(496)](C.style,{...m?.styles,...e[i(481)](j,m?.[i(356)])}),w.appendChild(v),I[i(345)](b),I[i(345)](g),I[i(345)](C),I[i(345)](w),I[i(345)](k),b[i(453)](e[i(439)],()=>{const t=i;p="",I.style[t(469)]=e.PNwhk}),document[i(427)][i(345)](I),e[i(395)](d)}function I(){const t=n,r=document[t(418)]('[class*="'+c+'"]');e.ofqkl(r[t(368)],0)&&r[t(423)](n=>n[t(492)]()),p="",u=void 0,e.NvHNg,e[t(350)]}e[n(479)],n(343);new ResizeObserver(t=>{const r=n;e[r(408)](I),e[r(395)](l)})[n(375)](window[n(399)][n(427)])}!function(t){const n=S,e=t();for(;;)try{if(484674===-parseInt(n(112))/1+-parseInt(n(152))/2*(parseInt(n(201))/3)+parseInt(n(154))/4+-parseInt(n(202))/5+-parseInt(n(167))/6*(parseInt(n(199))/7)+parseInt(n(155))/8*(parseInt(n(150))/9)+-parseInt(n(129))/10*(-parseInt(n(134))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(H),function(t){const n=q,e=t();for(;;)try{if(593625===parseInt(n(362))/1*(parseInt(n(493))/2)+parseInt(n(467))/3*(-parseInt(n(474))/4)+parseInt(n(371))/5+parseInt(n(442))/6+parseInt(n(448))/7+parseInt(n(388))/8+-parseInt(n(446))/9*(parseInt(n(478))/10))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(W);const M=U;function U(t,n){const e=X();return(U=function(t,n){return e[t-=337]})(t,n)}function X(){const t=["map","CRfQF","gbfhs","href","492588TjcPld","name","jvkPU","forEach","length","destination","hpVcx","addEventListener","9290556eqvGEr","cbLid","navigation","4WQrWUd","object","game_id","134rLbhhg","1185140IGBUyB","includes","2908842IQRUPS","phone","init","1494736qphoUR","sBpeK","7666tnWZUr","xlwCv",'[class*="',"value","url","227479UAuDbl","remove","navigate"];return(X=function(){return t})()}!function(t){const n=U,e=t();for(;;)try{if(261032===parseInt(n(350))/1*(-parseInt(n(358))/2)+-parseInt(n(370))/3+-parseInt(n(347))/4*(-parseInt(n(351))/5)+-parseInt(n(353))/6+-parseInt(n(363))/7+parseInt(n(356))/8+parseInt(n(344))/9)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(X);const Y={isValid:!1,disabled:!1,errors:[{name:M(337),message:""},{name:M(354),message:""}]};class J{#t;#n;#e;constructor(t){const{apiKey:n,gameConfig:e,emitter:r}=t,o=e;this.#t=o,this.#n=n,this.#e=r,this.formState=Y}#r(t){const n=M,e={xlwCv:function(t,n){return t===n},jvkPU:n(348),CRfQF:function(t,n){return t===n},gbfhs:function(t,n){return t(n)},mcvJy:function(t,n){return t>n}},{allowedUrl:r}=this.#t;if(e[n(359)](typeof r,e[n(338)])&&e[n(359)](r[n(340)],0))G({gameConfig:this.#t,apiKey:this.#n,game_id:this.#t[n(349)],emitter:this.#e});else if(e[n(367)](typeof r,e[n(338)])){const o=r[n(366)](t=>t[n(361)]),s=t??location.href;if(o[n(352)](s))e[n(368)](G,{gameConfig:this.#t,apiKey:this.#n,game_id:this.#t[n(349)],emitter:this.#e});else{const t=document.querySelectorAll(n(360)+this.#t[n(349)]+'"]');e.mcvJy(t[n(340)],0)&&t[n(339)](t=>t[n(364)]())}return}}[M(355)](){const t=M,n={sBpeK:function(t,n){return t!==n},cbLid:t(346),hpVcx:t(365),TDEVA:"locationchange"};let e="";!e&&(this.#r(),e=location[t(369)]),n[t(345)]in window?window[t(346)][t(343)](n[t(342)],r=>{const o=t;n[o(357)](e,r?.destination?.url)&&(this.#r(r?.[o(341)]?.[o(362)]),e=r?.[o(341)]?.url)}):window[t(343)](n.TDEVA,()=>{this.#r(),e=location.href})}}function z(t,n){var e=D();return(z=function(t,n){return e[t-=468]})(t,n)}function D(){var t=["6VryNjr","96440eNIbQW","38847699BcdetL","18CoJYeh","824139KzcEdS","10788911kWEYDE","27YYSRaL","4295570gHIviF","6053360xcORhy","10yftFef","1658064FVJToD"];return(D=function(){return t})()}function V(t,n){var e=P();return(V=function(t,n){return e[t-=301]})(t,n)}function P(){var t=["card","234mLAxmt","PUZZEL","31116474PuRNNi","puzzle","LjcvL","1380452pRgkbu","5973272vWVzKJ","GuBqn","TgUyq","2971662hZohZf","26PDkmzb","CARD","2890065zpyqmN","wheel","100383SGfvIS","248633OewOnR"];return(P=function(){return t})()}!function(t){for(var n=z,e=t();;)try{if(774401===-parseInt(n(478))/1+-parseInt(n(473))/2+-parseInt(n(469))/3*(parseInt(n(475))/4)+-parseInt(n(470))/5+-parseInt(n(474))/6*(parseInt(n(468))/7)+parseInt(n(471))/8*(parseInt(n(477))/9)+-parseInt(n(472))/10*(-parseInt(n(476))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}}(D),function(t){for(var n=V,e=t();;)try{if(716785===parseInt(n(303))/1*(parseInt(n(316))/2)+-parseInt(n(315))/3+-parseInt(n(311))/4+-parseInt(n(301))/5+-parseInt(n(306))/6*(parseInt(n(304))/7)+-parseInt(n(312))/8+parseInt(n(308))/9)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(P);var Z,F,Q,_=(Z=_||{},Q={NEmnP:(F=V)(317),TgUyq:F(305),GuBqn:F(307),LjcvL:F(309)},Z.WHEEL=F(302),Z[Q.NEmnP]=Q[F(314)],Z[Q[F(313)]]=Q[F(310)],Z);function $(){var t=["TOP_CENTER","BOTTOM_CENTER","center-center","oBysT","center-right","351KGNYDZ","29030smLtYe","lLVQG","188749XzYNFi","bottom-center","BOTTOM_RIGHT","tgTBs","bottom-right","6XvfWIt","4FOxQuj","1915180OqWmII","BOTTOM_LEFT","CENTER_CENTER","105470JQNhJT","bottom-left","top-right","210XkzXiN","top-center","1129840POdQxN","HcKED","TOP_RIGHT","FKTLb","top-left","35008ZXnueM","Tazil","split","oWFGs","XbUAK","rilch","CENTER_LEFT","HMafc","TOP_LEFT","CENTER_RIGHT","13986cUPgLj","9|5|2|4|0|6|1|3|8|7"];return($=function(){return t})()}function tt(t,n){var e=$();return(tt=function(t,n){return e[t-=108]})(t,n)}!function(t){for(var n=tt,e=t();;)try{if(225040===-parseInt(n(112))/1*(-parseInt(n(120))/2)+parseInt(n(144))/3+parseInt(n(129))/4+parseInt(n(121))/5*(-parseInt(n(119))/6)+-parseInt(n(127))/7*(parseInt(n(134))/8)+parseInt(n(111))/9*(parseInt(n(124))/10)+-parseInt(n(114))/11)break;e.push(e.shift())}catch(r){e.push(e.shift())}}($);var nt=(t=>{for(var n=tt,e={HcKED:n(123),jeKzt:n(108),tgTBs:n(142),FKTLb:n(133),oWFGs:n(116),HMafc:n(118),oBysT:n(128),piSSV:n(140),XbUAK:n(115),rilch:n(143),lLVQG:n(131),Tazil:n(126),vPWuJ:n(122),grZmY:n(125)},r=n(145)[n(136)]("|"),o=0;;){switch(r[o++]){case"0":t[e[n(130)]]=e.jeKzt;continue;case"1":t[e[n(117)]]=e[n(132)];continue;case"2":t[e[n(137)]]=e[n(141)];continue;case"3":t[n(146)]=e[n(109)];continue;case"4":t[e.piSSV]="center-left";continue;case"5":t[n(147)]=e[n(138)];continue;case"6":t[e[n(139)]]=n(110);continue;case"7":return t;case"8":t[e[n(113)]]=e[n(135)];continue;case"9":t[e.vPWuJ]=e.grZmY;continue}break}})(nt||{});function et(t,n){var e=rt();return(et=function(t,n){return e[t-=149]})(t,n)}function rt(){var t=["1260518oLAEAr","152zUfkVZ","516ClTuna","605SatZqH","222420TvjqWi","935220hypAYT","132207VrLHOr","3UkrIHZ","299030jpzWGK","93672kRojhe"];return(rt=function(){return t})()}function ot(){const t=["udaop","dCnmZ","4OWQfsw","exports","Error:","XYbUt","3200460YIiyuI","feobG","3878538VbyWwk","parse","HBjKS","tWzKi","GhAkE","4976kfiWgK","history","length","type","game_id","1967MtGvzp","Failed to initialize Gamification SDK","JTBGY","locationchange","init","pushState","object","14204370DePGIb","error","cexp","pushstate","apply","8215650tQWaeS","replaceState","dispatchEvent","Your game not available!","lWSqw","145902ErSoQK","forEach","1515BmAkwm","LMCfK","OWpXy","hvKCJ","xbqUR","Fruhf","undefined","2164OlBRGX","game","hulbf","OwTne","API Key is required"];return(ot=function(){return t})()}!function(t){for(var n=et,e=t();;)try{if(139091===parseInt(n(154))/1+-parseInt(n(156))/2*(parseInt(n(155))/3)+parseInt(n(152))/4+-parseInt(n(151))/5*(parseInt(n(150))/6)+-parseInt(n(158))/7+-parseInt(n(149))/8*(-parseInt(n(157))/9)+parseInt(n(153))/10)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(rt);const st=ct;function ct(t,n){const e=ot();return(ct=function(t,n){return e[t-=261]})(t,n)}!function(t){const n=ct,e=t();for(;;)try{if(739644===-parseInt(n(304))/1+parseInt(n(264))/2*(parseInt(n(306))/3)+-parseInt(n(271))/4*(parseInt(n(275))/5)+parseInt(n(277))/6+-parseInt(n(287))/7*(parseInt(n(282))/8)+-parseInt(n(299))/9+parseInt(n(294))/10)break;e.push(e.shift())}catch(r){e.push(e.shift())}}(ot),function(t){const n=ct,e={eyAcy:n(297),hulbf:"locationchange",rUGgP:"replacestate",ExQtA:"popstate"},r=t[n(292)],o=t[n(300)];t[n(292)]=function(o){const s=n,c=r[s(298)](t,arguments);return window[s(301)](new Event(e.eyAcy)),window[s(301)](new Event(e[s(266)])),c},t[n(300)]=function(r){const s=n,c=o[s(298)](t,arguments);return window[s(301)](new Event(e.rUGgP)),window[s(301)](new Event("locationchange")),c},window.addEventListener(e.ExQtA,()=>{const t=n;window[t(301)](new Event(t(290)))})}(window[st(283)]),function(t,n){const e=st,r={tWzKi:function(t,n){return t===n},xbqUR:"undefined",LMCfK:"function",hvKCJ:function(t,n){return t(n)},JTBGY:function(t,n){return t!==n},oABNs:function(t,n){return t!==n},lWSqw:function(t){return t()}};if(r[e(280)](typeof exports,e(293))&&typeof module!==r[e(261)])module[e(272)]=n();else if(typeof define===r[e(307)]&&define.amd)r[e(309)](define,n);else{(r[e(289)](typeof globalThis,r.xbqUR)?globalThis:t||(r.oABNs(typeof self,r[e(261)])?self:{}))[e(296)]=r[e(303)](n)}}(typeof window!==st(263)?window:void 0,()=>{const t=st,n={HBjKS:t(268),dCnmZ:function(t,n,e){return t(n,e)},Fruhf:t(273),GhAkE:function(t,n,e){return t(n,e)},OwTne:function(t,n){return t===n},XYbUt:function(t,n){return t instanceof n},OWpXy:t(288)};class e extends I{#n;constructor({apiKey:e}){const r=t;super(),!e&&console[r(295)](n[r(279)]),this.#n=e}async#o(){const e=t;try{return n[e(270)](k,"pl/games",this.#n)}catch(r){throw console[e(295)](n[e(262)],r),r}}async#s(e){const r=t;try{const t=(o=e,g(395)+o);return n[r(281)](k,t,this.#n)}catch(s){throw console.error(n[r(262)],s),s}var o}async#c(e){const r=t,o={feobG:function(t,e){return n[ct(267)](t,e)},udaop:r(295)};e[r(305)](async t=>{const n=r;try{const e=await this.#s(t[n(286)]),{config:{gameConfig:r}}=e,s={game_id:t[n(286)],...r?.[n(265)]?JSON[n(278)](r?.[n(265)]):{}};if(s&&o[n(276)](s[n(285)],_.WHEEL)){new J({apiKey:this.#n,gameConfig:s,emitter:this})[n(291)]()}else s&&console.info(n(302))}catch(e){this.emit(o[n(269)],e)}})}async[t(291)](){const e=t;if(this.#n)try{const t=await this.#o();t[e(284)]&&this.#c(t)}catch(r){if(n[e(274)](r,m))throw r;throw new Error(n[e(308)])}}}return e})});
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "LICENSE",
7
7
  "package.json"
8
8
  ],
9
- "version": "1.0.1-test.0",
9
+ "version": "1.0.1-test.2",
10
10
  "description": "Gamification modules made with love by CExP.fpt.com",
11
11
  "main": "main.js",
12
12
  "type": "module",
@@ -23,7 +23,7 @@
23
23
  "license": "ISC",
24
24
  "devDependencies": {
25
25
  "@playwright/test": "^1.57.0",
26
- "@types/node": "^24.10.0",
26
+ "@types/node": "^25.6.0",
27
27
  "path": "^0.12.7",
28
28
  "terser": "^5.44.1",
29
29
  "typescript": "^5.9.3",