"use strict";(("undefined"!=typeof self?self:this).wpChessCom_dvZK=("undefined"!=typeof self?self:this).wpChessCom_dvZK||[]).push([[5654],{8619:function(e,n,t){t.d(n,{u:function(){return postMessage}});function postMessage(e){window.postMessage?.(e,window.location.origin)}},23449:function(e,n,t){t.d(n,{A:function(){return i}});let i={CHANGE_STEP:"change-step",CLEAR_ERROR:"clear-error",CLOSE_MODAL:"close-modal",HANDLE_INPUT:"handle-input",HANDLE_SELECTED_SUGGESTION:"handle-selected-suggestion",LOGIN_AS_GUEST:"login-as-guest",PLAY_AS_GUEST:"play-as-guest",SHOW_AUTHENTICATION_MODAL:"show-authentication-modal",SHOW_ERROR_MESSAGE:"show-error-message",HIDE_LOGIN_MODAL:"hide-login-modal",SKILL_LEVEL_UPDATED:"skill-level-updated"}},58516:function(e,n,t){t.d(n,{l:function(){return i}});let i={AUTHENTICATION_INTRO:"intro",AUTHENTICATION_SIGNUP:"signup"}},79613:function(e,n,t){t.d(n,{H:function(){return showSignUpModal}});var i=t(23449),o=t(51334),s=t(58516),l=t(8619);let r={show:s.l.AUTHENTICATION_SIGNUP};function showSignUpModal(e=r){Promise.all([t.e(1867),t.e(4317),t.e(886),t.e(2177),t.e(788),t.e(7017)]).then(t.bind(t,90917)).then(({default:n})=>{n.createInstance(o.D.AUTHENTICATION_MODAL);(0,l.u)({key:i.A.SHOW_AUTHENTICATION_MODAL,...e})})}},30319:function(e,n,t){t.r(n);t.d(n,{signUpModalClient:function(){return l}});var i=t(15591),o=t(79613);function onClickSignUpModalTrigger(e){e.preventDefault();e.stopPropagation();(0,o.H)()}function setupSignUpModalTriggers(e){e.forEach(e=>{e.addEventListener("click",onClickSignUpModalTrigger)})}var s=t(51334);function getSignUpModalTriggerElements(){return[...document.querySelectorAll(`.${s.D.AUTHENTICATION_MODAL_TRIGGER}`)]}let l=(0,i.createClient)({init(){setupSignUpModalTriggers(getSignUpModalTriggerElements())}})}}]);