(()=>{"use strict";var e={};function t(e){return e.form?`siwg-comment-text-${new FormData(e.form).get("comment_post_ID")}`:"siwg-comment-text-0"}e.d=(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const o=document.currentScript?.dataset.siwgConfig,n=globalThis.google?.accounts?.id;if(n&&o)try{!function(e,o){const{initialize:n,prompt:i,renderButton:c}=e,{clientID:r,defaultButtonOptions:s,isExistingUserFlow:a,isPreview:l,isUserLoggedIn:g,isWPLogin:d,redirectTo:m,redirectCookieTTL:u,redirectCookieName:p,redirectCookiePath:h,shouldShowOneTapPrompt:f}=o;n({client_id:r,callback:e=>async function(e,o){const{connectNonce:n,followsPostRedirect:i,isExistingUserFlow:c,isPreview:r,isWooCommerce:s,isWPLogin:a,loginURI:l,redirectTo:g}=o;if(r)return;const d=new URLSearchParams;d.append("credential",e.credential),d.append("select_by",e.select_by),c?(d.append("integration","existing_user"),d.append("connect_nonce",n)):s&&!a&&d.append("integration","woocommerce");const m=document.getElementById("comment");m&&function(e){const o=t(e);e.value&&sessionStorage.setItem(o,e.value)}(m);try{const e=await fetch(l,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:d});g||i?e.ok&&e.redirected&&location.assign(e.url):location.reload()}catch(e){globalThis.console.error(e)}}(e,o),library_name:"Site-Kit"});const w=document.getElementById("login");if(d&&w){const e=document.createElement("div"),t=document.getElementById("loginform");e.classList.add("googlesitekit-sign-in-with-google__frontend-output-button"),w.insertBefore(e,t)}(!g||d||l||a)&&document.querySelectorAll(".googlesitekit-sign-in-with-google__frontend-output-button").forEach(e=>{const{googlesitekitSiwgShape:t=s.shape,googlesitekitSiwgText:o=s.text,googlesitekitSiwgTheme:n=s.theme}=e.dataset;c(e,{shape:t,text:o,theme:n})}),f&&i(),m&&(document.cookie=`${p}=${m};max-age=${u};path=${h}`);const y=document.getElementById("comment");y&&function(e){const o=t(e),n=sessionStorage.getItem(o);n&&(e.value=n,sessionStorage.removeItem(o))}(y)}(n,JSON.parse(o))}catch(e){globalThis.console.error(e)}})();