

/* Start:/local/components/sb/expo.games/resources/scripts/index.min.js?17453907069990*/
"use strict";const SBExpoGame=new function(){class e{_params;_crmFormId;_isShowBanner;_isShowCrmForm;_isShowRestartButton;_autoRestart;_autoRestartTime;_componentName;_signedParameters;constructor(e){this._params=e,this._isShowBanner=this._params.BANNER_SHOW,this._isShowCrmForm=this._params.CRM_FORM_SHOW,this._isShowRestartButton=this._params.RESTART_BUTTON_SHOW,this._crmFormId=this._params.CRM_FORM_ID,this._autoRestart=this._params.AUTO_RESTART,this._autoRestartTime=this._params.AUTO_RESTART_TIME,this._componentName=this._params.COMPONENT_NAME,this._signedParameters=this._params.SIGNED_PARAMETERS}getComponentName(){return this._componentName}getSignedParameters(){return this._signedParameters}isShowBanner(){return this._isShowBanner}isShowCrmForm(){return this._isShowCrmForm}isShowRestartButton(){return this._isShowRestartButton}getCrmFormId(){return this._crmFormId}isEnableAutoRestart(){return this._autoRestart}getAutoRestartTime(){return this._autoRestartTime}}class t{_name;_logic;_ground;_status;_manager;constructor(e,t,r){this._name=e,this._logic=r,this._logic.setLevel(this),this._ground=new i(t),this._status=new s}initialization(){this._logic.init(),this._ground.isExist()&&this._logic.isInit()?this._status.activate():this._status.deactivate()}getName(){return this._name}getGround(){return this._ground}getLogic(){return this._logic}getStatus(){return this._status}setManager(e){this._manager=e}getManager(){return this._manager}started(){}failed(){}passed(){}}class s{_start;_fail;_pass;_active;constructor(){this._init(),this._active=!1}_init(){this._fail=!1,this._pass=!1,this._start=!1}started(){this._init(),this._start=!this._start}isStart(){return this._start}passed(){this._init(),this._pass=!this._pass}isPassed(){return this._pass}activate(){this._active=!0}deactivate(){this._active=!1}isActivated(){return this._active}}class i{_node;_selector;_isExist;constructor(e){this._selector=e,this._node=document.querySelector(this._selector),this._isExist=!!this._node}isExist(){return this._isExist}isShow(){return this._node.classList.contains("eg-layer:show")}isHide(){return this._node.classList.contains("eg-layer:hide")}preShow(){this._node.classList.remove("eg-layer:prehide"),this._node.classList.remove("eg-layer:hide"),this._node.classList.add("eg-layer:preshow")}show(){this._node.classList.remove("eg-layer:prehide"),this._node.classList.remove("eg-layer:preshow"),this._node.classList.remove("eg-layer:hide"),this._node.classList.add("eg-layer:show")}preHide(){this._node.classList.remove("eg-layer:preshow"),this._node.classList.remove("eg-layer:show"),this._node.classList.add("eg-layer:prehide")}hide(){this._node.classList.remove("eg-layer:preshow"),this._node.classList.remove("eg-layer:prehide"),this._node.classList.remove("eg-layer:show"),this._node.classList.add("eg-layer:hide")}querySelector(e){return this._node.querySelector(e)}addEventListener(e,t){this._node.addEventListener(e,t)}removeEventListener(e,t){this._node.removeEventListener(e,t)}dispatch(e){this._node.dispatchEvent(e)}}class r{#e;#t;#s;#i;#r;constructor(){this.#n(),this.#t=!1}get _config(){return this.#e.getManager().getConfig()}get _gamer(){return this.#e.getManager().getGamer()}get _ground(){return this.#e.getGround()}setLevel(e){this.#t||(this.#e=e)}init(){if(this.#t)return;let e=this._init(),s=this.#e instanceof t;this.#t=e&&s}work(){this.#s||(this.#n(),this.#s=!0,this._preWork(),this._work(),this._postWork())}isInit(){return this.#t}isWork(){return this.#s}isFail(){return this.#r}isDone(){return this.#i}_init(){}_fail(){this.#r||(this.#n(),this.#r=!0,this.#e.failed())}_done(){this.#i||(this.#n(),this.#i=!0,this.#e.passed())}_work(){}_preWork(){}_postWork(){}#n(){this.#r=!1,this.#s=!1,this.#i=!1}}class n{_map;constructor(){this._map=new Map}add(e){e.setOrder(this._map.size+1),this._map.set(e.getOrder(),e)}del(e){return this._map.delete(e)}get(e){return this._map.get(e)}getByName(e){this._map.forEach((t=>t.getName()===e))}size(){return this._map.size}}class a{_curLevel;_prevLevel;_nextLevel;_levelCounter;constructor(e){this._levelList=e,this._levelCounter=0}init(){this._increaseCounter(),this._switchLevels(),this._curLevel&&this._switchGrounds()}prev(){this._decreaseCounter(),this._levelCounter<1?this._increaseCounter():(this._switchGrounds(this._prevLevel,!0),this._switchLevels())}next(){this._increaseCounter(),this._levelCounter>this._levelList.size()?this._decreaseCounter():(this._switchGrounds(this._nextLevel),this._switchLevels())}_increaseCounter(){++this._levelCounter}_decreaseCounter(){--this._levelCounter}_switchLevels(){this._prevLevel=this._levelCounter>1?this._levelList.get(this._levelCounter-1):null,this._curLevel=this._levelList.get(this._levelCounter),this._nextLevel=this._levelCounter<this._levelList.size()?this._levelList.get(this._levelCounter+1):null,this._curLevel?.started()}_switchGrounds(e=null,t=!1){let s=this._curLevel.getGround();if(!e)return void s.show();let i=e.getGround();if(t){let e=()=>{var t;i.preShow(),s.hide(),t=()=>{i.show()},window.requestAnimationFrame((()=>{window.requestAnimationFrame((()=>{t()}))})),s.removeEventListener("transitionend",e)};setTimeout((()=>{s.preHide(),s.addEventListener("transitionend",e)}),1e3)}else{let e=()=>{s.hide(),i.show(),s.removeEventListener("transitionend",e)};setTimeout((()=>{s.preHide(),i.preShow(),s.addEventListener("transitionend",e)}),1e3)}}}class o{_gamer;_config;_screenSaver;constructor(e,t){this._config=e,this._gamer=t}getScreenSaver(){return this._screenSaver}getGamer(){return this._gamer}getConfig(){return this._config}setScreenSaver(e){this._screenSaver=e}}return{Level:class extends t{_order;initialization(){super.initialization(),this._startedEvent=new CustomEvent("level:start",{bubbles:!0}),this._failedEvent=new CustomEvent("level:fail",{bubbles:!0}),this._passedEvent=new CustomEvent("level:pass",{bubbles:!0})}started(){this._status.isActivated()&&(this._logic.work(),this._ground.dispatch(this._startedEvent),this._manager.getScreenSaver()?.started())}failed(){this._status.isActivated()&&this._ground.dispatch(this._failedEvent)}passed(){this._status.isActivated()&&(this._ground.dispatch(this._passedEvent),this._manager.getScreenSaver()?.passed())}getOrder(){return this._order}setOrder(e){this._order=e}},Config:e,AbstractGamer:class{_name;_surname;_email;_company;_phone;getName(){return this._name}setName(e){this._name=e}getSurname(){return this._surname}setSurname(e){this._surname=e}getEmail(){return this._email}setEmail(e){this._email=e}getCompany(){return this._company}setCompany(e){this._company=e}getPhone(){return this._phone}setPhone(e){this._phone=e}getData(){return{name:this._name,surname:this._surname,email:this._email,company:this._company,phone:this._phone}}},AbstractLogic:r,AbstractScoreLogic:class extends r{_init(){return!0}_preWork(){if(this._config.isShowCrmForm()&&null!==this._config.getCrmFormId()&&BX.ajax.runComponentAction(this._config.getComponentName(),"win",{mode:"class",signedParameters:this._config.getSignedParameters(),data:{data:JSON.stringify(this._gamer.getData())}}).then((function(e){})),this._config.isShowRestartButton()){let e=this._ground.querySelector(".js-restart-button");e&&e.addEventListener("click",(()=>{console.log("reload"),window.location.reload()}))}if(this._config.isEnableAutoRestart()){let e=document.querySelector(".js-time-to-restart"),t=this._config.getAutoRestartTime();e&&(setInterval((function(){t>0&&(t-=1,e.innerHTML=t)}),1e3),setTimeout((()=>{window.location.reload()}),1e3*this._config.getAutoRestartTime()))}}_work(){}_postWork(){}},FormLogic:class extends r{_init(){return this._config.isShowCrmForm()&&null!==this._config.getCrmFormId()}_work(){localStorage.removeItem("b24-form-field-stored-values"),window.addEventListener("b24:form:send:success",(e=>{if(Number(e.detail.object.identification.id)===Number(this._config.getCrmFormId())){let e=JSON.parse(localStorage["b24-form-field-stored-values"]).type;this._gamer.setName(e?.name),this._gamer.setSurname(e?.["last-name"]),this._gamer.setCompany(e?.company),this._gamer.setEmail(e?.email),this._gamer.setPhone(e?.phone),this._done()}}))}_preWork(){}_postWork(){}},BannerLogic:class extends r{_banner;_events;_timeToHide;constructor(){super(),this._events=["mousedown","mouseup","mousemove","keypress"],this._timeToHide=null}_init(){return this._config.isShowBanner()}_work(){this._timeToHide=null,this._banner=this._ground.querySelector(".sb-game-banner"),this._events.forEach((e=>{document.body.addEventListener(e,(()=>{this._bannerMoveUp()}))}))}_bannerMoveDown(){this._banner&&this._banner.classList.contains("sb-game-banner:up")&&(this._banner.classList.remove("sb-game-banner:up"),this._banner.classList.add("sb-game-banner:hide"))}_bannerMoveUp(){this._banner&&(this._banner.classList.contains("sb-game-banner:up")||(this._banner.classList.remove("sb-game-banner:hide"),this._banner.classList.add("sb-game-banner:up")),clearTimeout(this.timeToHide),this.timeToHide=setTimeout((()=>{this._bannerMoveDown()}),1e4))}_preWork(){}_postWork(){}},ScreenSaver:class extends t{started(){this._status.isActivated()&&(this._ground.show(),this._logic.work())}failed(){}passed(){this._status.isActivated()&&this._ground.hide()}},Engine:class{_gamer;_config;_levelList;_levelSwitcher;_manager;constructor(t){this._screenSaver=null,this._gamer=t.gamer,this._config=new e(t.config),this._levelList=new n,this._levelSwitcher=new a(this._levelList),this._manager=new o(this._config,this._gamer)}_initialization(){document.addEventListener("level:pass",(()=>{this._levelSwitcher.next()})),document.addEventListener("level:fail",(()=>{this._levelSwitcher.prev()}))}addLevel(e){e.setManager(this._manager),e.initialization(),e.getStatus().isActivated()&&this._levelList.add(e)}addScreenSaver(e){e.setManager(this._manager),e.initialization(),e.getStatus().isActivated()&&(this._screenSaver=e,this._manager.setScreenSaver(this._screenSaver))}startTheGame(){this._initialization(),this._levelSwitcher.init()}}}};
/* End */


/* Start:/local/components/sb/expo.games/resources/styles/reset.min.css?1682348300816*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{min-height:100vh;line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}

/* End */


/* Start:/local/components/sb/expo.games/resources/styles/layers.min.css?1696226892268*/
.eg-layer{display:none;opacity:1;width:100%;transition:opacity .25s ease}.eg-layer__inner{height:100%}.eg-layer\:prehide{display:block;opacity:0}.eg-layer\:hide{display:none;opacity:0}.eg-layer\:preshow{display:block;opacity:0}.eg-layer\:show{display:block;opacity:1}

/* End */


/* Start:/local/components/sb/expo.games/templates/game.memory/resources/styles/game.min.css?17288990258231*/
*{box-sizing:border-box;margin:0;padding:0}body{position:relative;min-height:100vh;background-color:#c3def5;background-attachment:fixed;font-family:'Montserrat', 'helvetica', Arial, sans-serif;font-size:16px;font-weight:500;line-height:1.3em}.bx-composite-btn{display:none;visibility:hidden;width:0;height:0}.eg-layer{overflow:hidden;height:100vh}.eg-layer\:banner{height:0 !important}.sb-game-banner{position:absolute;top:0;left:0;z-index:20;display:block;width:100%;height:100%;background-size:cover;background-position:center;background-repeat:no-repeat;transition:top 0.7s ease}.sb-game-banner\:up{top:-100%}.eg-layer\:form{min-height:100vh;height:auto;padding:70px 0}.eg-layer\:form .eg-layer__inner{display:flex;flex-wrap:nowrap;flex-direction:row;align-items:center;justify-content:center;width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:center}.sb-game-form{display:block}.sb-game-form__title{display:block;width:100%;max-width:540px;margin:0 0 40px;padding:0;font-weight:700;line-height:1em;text-align:center;color:#ffdd32}@media all and (orientation: portrait){.sb-game-form__title{font-size:5vw}}@media all and (orientation: portrait) and (max-width: 540px){.sb-game-form__title{font-size:10vw}}@media all and (orientation: landscape){.sb-game-form__title{font-size:8vh}}.b24-form{display:block;max-width:540px;min-width:300px;width:100%;padding:0 15px;margin:auto}.eg-layer\:main .eg-layer__inner{display:flex;justify-content:center}.sb-game-field__head,.sb-game-field__body{display:flex;flex-wrap:nowrap;justify-content:center}@media all and (orientation: landscape){.sb-game-field__head,.sb-game-field__body{width:80vh}}@media all and (orientation: portrait){.sb-game-field__head,.sb-game-field__body{width:100%}}.sb-game-field__head{align-items:center}@media all and (orientation: landscape){.sb-game-field__head{height:15vh}}@media all and (orientation: portrait){.sb-game-field__head{height:25vh}}.sb-game-field__body{align-items:stretch}@media all and (orientation: landscape){.sb-game-field__body{height:80vh}}@media all and (orientation: portrait){.sb-game-field__body{height:75vh}}.eg-layer-head{display:flex;flex-wrap:wrap;flex-direction:column;align-items:center;font-size:2.5vh;font-weight:400;line-height:1em}.eg-layer-head>*{padding:5px 10px}.eg-layer-head__bottom{display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;justify-content:center}.eg-layer-head__bottom>*{padding:5px 10px}.star-list{color:#d21317}.moves-container{margin-left:1rem}.eg-card-list{display:flex;flex-wrap:wrap;justify-content:center}.card{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;padding:0.2em;border-radius:10px;list-style:none;perspective:500px;transform-origin:center;transition:all 0.5s}@media all and (orientation: landscape){.card{width:20vh;height:20vh}}@media all and (orientation: portrait){.card{width:25vw;height:25vw}}.card-container{display:flex;justify-content:center;align-items:center;width:100%;height:100%;border-radius:10px;position:relative;transition:all 0.5s;transform-style:preserve-3d}.card-container.flipped{transform:rotateY(180deg)}.card-face{position:absolute;border-radius:10px;height:100%;width:100%;backface-visibility:hidden}.card-face.front{background-image:url("/local/components/sb/expo.games/templates/game.memory/resources/styles/../images/cards/card_back.png");background-size:contain;background-position:center;background-repeat:no-repeat}.card-face.back{background-size:contain;background-position:center;background-repeat:no-repeat;transform:rotateY(180deg)}.card .card-face.back.fa-card-1{background-image:url("/local/components/sb/expo.games/templates/game.memory/assets/tech.11.2022/images/cards/card_1.png?")}.card .card-face.back.fa-card-2{background-image:url("/local/components/sb/expo.games/templates/game.memory/assets/tech.11.2022/images/cards/card_2.png?")}.card .card-face.back.fa-card-3{background-image:url("/local/components/sb/expo.games/templates/game.memory/assets/tech.11.2022/images/cards/card_3.png?")}.card .card-face.back.fa-card-4{background-image:url("/local/components/sb/expo.games/templates/game.memory/assets/tech.11.2022/images/cards/card_4.png?")}.card .card-face.back.fa-card-5{background-image:url("/local/components/sb/expo.games/templates/game.memory/assets/tech.11.2022/images/cards/card_5.png?")}.card .card-face.back.fa-card-6{background-image:url("/local/components/sb/expo.games/templates/game.memory/assets/tech.11.2022/images/cards/card_6.png?")}.card .card-face.back.fa-card-7{background-image:url("/local/components/sb/expo.games/templates/game.memory/assets/tech.11.2022/images/cards/card_7.png?")}.card .card-face.back.fa-card-8{background-image:url("/local/components/sb/expo.games/templates/game.memory/assets/tech.11.2022/images/cards/card_8.png?")}.cant-click-this{pointer-events:none}.wrong{animation:wrong 0.25s ease-in-out}.correct{animation:correct 0.3s ease-in-out}@keyframes wrong{0%{transform:rotate(0)}25%{transform:rotate(-15deg)}50%{transform:rotate(0)}75%{transform:rotate(15deg)}100%{transform:rotate(0)}}@keyframes correct{0%{transform:scaleX(1) scaleY(1)}50%{transform:scaleX(1.15) scaleY(1.1)}100%{transform:scaleX(1) scaleY(1)}}.eg-layer\:score .eg-layer__inner{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;height:100%}.sb-game-score{display:block;color:#000000;text-align:center;transition:all 0.3s}.sb-game-score__inner{display:flex;flex-wrap:nowrap;flex-direction:column;justify-content:flex-start}.sb-game-score__title{display:block;padding:0 0 3vh}.sb-game-score__subtitle{display:block;padding:0 0 4vh}.sb-game-score__score,.sb-game-score__stars{display:block;margin:0}.sb-game-score__score{padding:0 0 5vh}.sb-game-score__stars{padding:0 0 3vh}.sb-game-score__button{display:block;padding:0 0 1.5vh}.sb-game-score__timer{display:block;padding:0 0 1vh}.sb-game-score-title{display:block;padding:0;margin:0;font-size:11vh;font-weight:700;line-height:1em;color:#000000}@media all and (orientation: landscape){.sb-game-score-title{font-size:11vh}}@media all and (orientation: portrait){.sb-game-score-title{font-size:12vw}}.sb-game-score-subtitle{display:block;padding:0;margin:0;font-size:5.3vh;font-weight:400;line-height:1em;color:#000000;text-transform:uppercase}@media all and (orientation: landscape){.sb-game-score-subtitle{font-size:5.3vh}}@media all and (orientation: portrait){.sb-game-score-subtitle{font-size:6vw}}.sb-game-score-text{display:block;padding:0;margin:0;font-size:4vh;font-weight:400;line-height:1.5em;color:#000000}@media all and (orientation: landscape){.sb-game-score-text{font-size:4vh}}@media all and (orientation: portrait){.sb-game-score-text{font-size:5vw}}.sb-game-score-subtext{display:block;padding:0;margin:0;font-weight:400;line-height:1.5em;color:#000000}@media all and (orientation: landscape){.sb-game-score-subtext{font-size:2vh}}@media all and (orientation: portrait){.sb-game-score-subtext{font-size:3vw}}.sb-game-button{display:inline-flex;align-items:center;flex-direction:row;margin:0;border:none;padding:10px 40px;border-radius:20px;font-family:"Montserrat", "Helvetica", Arial, sans-serif;font-size:18px;font-weight:500;line-height:1em;opacity:1;cursor:pointer;background-color:#d21317;color:#ffffff;transition:box-shadow 0.25s ease}.sb-game-button:hover,.sb-game-button:active{box-shadow:0 0 5px 2px rgba(0,0,0,0.1)}@media all and (orientation: landscape){.sb-game-button{font-size:1.95vh}}@media all and (orientation: portrait){.sb-game-button{font-size:3.75vw}}.sb-game-button\:restart{padding:0.5em 2em;font-weight:600;transition:box-shadow 0.7s ease;background-color:#ECECEC;color:#000000}@media all and (orientation: landscape){.sb-game-button\:restart{font-size:2.7vh}}@media all and (orientation: portrait){.sb-game-button\:restart{font-size:3.75vw}}.sb-game-button\:restart:hover .sb-game-button__icon-fa{display:block;transform-origin:center;transform:rotate(-560deg)}.sb-game-button\:restart .sb-game-button__icon{position:relative;display:inline-flex;flex-direction:row;justify-content:center;align-items:center;padding:0 0.5em 0 0;background-color:transparent}.sb-game-button\:restart .sb-game-button__icon-fa{display:block;transform-origin:center;transition:transform 0.7s ease}.sb-game-button\:hide{display:none}

/* End */


/* Start:/local/components/sb/expo.games/templates/game.memory/assets/het.09.2024/scss/style.min.css?1727178361914*/
.sb-game-banner{background-image:url("/local/components/sb/expo.games/templates/game.memory/assets/het.09.2024/scss/../images/banner_main.jpg")}.eg-layer\:form{min-height:100vh;height:auto;padding:70px 0}.sb-game-form__title{color:#000 !important}.card-face.front{background-image:url("/local/components/sb/expo.games/templates/game.memory/assets/het.09.2024/scss/../images/cards/card_back.jpg")}.card .card-face.back.fa-card-1{background-image:url("/local/components/sb/expo.games/templates/game.memory/assets/het.09.2024/scss/../images/cards/card_1.png?")}.card .card-face.back.fa-card-2{background-image:url("/local/components/sb/expo.games/templates/game.memory/assets/het.09.2024/scss/../images/cards/card_2.png?")}.card .card-face.back.fa-card-3{background-image:url("/local/components/sb/expo.games/templates/game.memory/assets/het.09.2024/scss/../images/cards/card_3.png?")}.card .card-face.back.fa-card-4{background-image:url("/local/components/sb/expo.games/templates/game.memory/assets/het.09.2024/scss/../images/cards/card_4.png?")}.card .card-face.back.fa-card-5{background-image:url("/local/components/sb/expo.games/templates/game.memory/assets/het.09.2024/scss/../images/cards/card_5.png?")}.card .card-face.back.fa-card-6{background-image:url("/local/components/sb/expo.games/templates/game.memory/assets/het.09.2024/scss/../images/cards/card_6.png?")}.card .card-face.back.fa-card-7{background-image:url("/local/components/sb/expo.games/templates/game.memory/assets/het.09.2024/scss/../images/cards/card_7.png?")}.card .card-face.back.fa-card-8{background-image:url("/local/components/sb/expo.games/templates/game.memory/assets/het.09.2024/scss/../images/cards/card_8.png?")}

/* End */
/* /local/components/sb/expo.games/resources/scripts/index.min.js?17453907069990 */
/* /local/components/sb/expo.games/resources/styles/reset.min.css?1682348300816 */
/* /local/components/sb/expo.games/resources/styles/layers.min.css?1696226892268 */
/* /local/components/sb/expo.games/templates/game.memory/resources/styles/game.min.css?17288990258231 */
/* /local/components/sb/expo.games/templates/game.memory/assets/het.09.2024/scss/style.min.css?1727178361914 */
