(()=>{var t={2962:()=>{window.jetpackForms=window.jetpackForms||{},window.jetpackForms.getBackgroundColor=function(t){let o=window.getComputedStyle(t).backgroundColor;for(;"rgba(0, 0, 0, 0)"===o&&t.parentNode&&t.parentNode.nodeType===window.Node.ELEMENT_NODE;){if("wp-block-cover"===(t=t.parentNode).className){const e=t.querySelector(".wp-block-cover__background");o=window.getComputedStyle(e).backgroundColor;continue}o=window.getComputedStyle(t).backgroundColor}return o},window.jetpackForms.getInverseReadableColor=function(t){if(!t)return"#FFFFFF";let o,e,r;if(t.startsWith("#")){let n=t.slice(1);3===n.length&&(n=n.split("").map(t=>t+t).join("")),o=parseInt(n.slice(0,2),16),e=parseInt(n.slice(2,4),16),r=parseInt(n.slice(4,6),16)}else{const n=t.match(/(\d+),\s*(\d+),\s*(\d+)/);if(!n)return"#000000";o=+n[1],e=+n[2],r=+n[3]}return.299*o+.587*e+.114*r>186?"#000000":"#FFFFFF"},window.jetpackForms.generateStyleVariables=function(t){if(!t)return;const o=window["editor-canvas"]?window["editor-canvas"].document:document,e=o.querySelector("body"),r=o.createElement("div");r.className="contact-form__style-probe",r.style="position: absolute; z-index: -1; width: 1px; height: 1px; visibility: hidden",r.innerHTML='\n\t\t\t<div class="contact-form">\n\t\t\t\t<div class="wp-block-button">\n\t\t\t\t\t<div class="wp-block-button__link btn-primary">Test</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="wp-block-button is-style-outline">\n\t\t\t\t\t<div class="wp-block-button__link btn-outline">Test</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="jetpack-field">\n\t\t\t\t\t<input class="jetpack-field__input" type="text">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t',t.parentNode.appendChild(r);const n=r.querySelector(".contact-form"),c=r.querySelector(".btn-primary"),a=r.querySelector(".btn-outline"),i=r.querySelector('input[type="text"]'),d=window.jetpackForms.getBackgroundColor(e),l=window.jetpackForms.getBackgroundColor(i),p=window.getComputedStyle(i).backgroundColor,u=window.getComputedStyle(n).color,s=window.jetpackForms.getInverseReadableColor(u),{border:b,borderColor:m,backgroundColor:k,color:f}=window.getComputedStyle(c),{backgroundColor:w,border:g,borderWidth:j,borderRadius:y,color:v,padding:C,lineHeight:F}=window.getComputedStyle(a),S=window.jetpackForms.getBackgroundColor(a),{color:h,padding:x,paddingTop:_,paddingLeft:N,border:T,borderColor:q,borderWidth:E,borderStyle:z,borderRadius:I,fontSize:B,fontFamily:L,lineHeight:O}=window.getComputedStyle(i);return r.remove(),{"--jetpack--contact-form--primary-color":k,"--jetpack--contact-form--background-color":d,"--jetpack--contact-form--body-text-color":u,"--jetpack--contact-form--inverted-body-text-color":s,"--jetpack--contact-form--text-color":h,"--jetpack--contact-form--border":T,"--jetpack--contact-form--border-color":q,"--jetpack--contact-form--border-size":E,"--jetpack--contact-form--border-style":z,"--jetpack--contact-form--border-radius":I,"--jetpack--contact-form--input-background":p,"--jetpack--contact-form--input-background-fallback":l,"--jetpack--contact-form--input-padding":x,"--jetpack--contact-form--input-padding-top":_,"--jetpack--contact-form--input-padding-left":N,"--jetpack--contact-form--font-size":B,"--jetpack--contact-form--font-family":L,"--jetpack--contact-form--line-height":O,"--jetpack--contact-form--button-primary--color":f,"--jetpack--contact-form--button-primary--background-color":k,"--jetpack--contact-form--button-primary--border":b,"--jetpack--contact-form--button-primary--border-color":m,"--jetpack--contact-form--button-outline--padding":C,"--jetpack--contact-form--button-outline--border":g,"--jetpack--contact-form--button-outline--background-color":w,"--jetpack--contact-form--button-outline--background-color-fallback":S,"--jetpack--contact-form--button-outline--border-size":j,"--jetpack--contact-form--button-outline--border-radius":y,"--jetpack--contact-form--button-outline--text-color":v,"--jetpack--contact-form--button-outline--line-height":F}}}},o={};function e(r){var n=o[r];if(void 0!==n)return n.exports;var c=o[r]={exports:{}};return t[r](c,c.exports,e),c.exports}e.n=t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},e.d=(t,o)=>{for(var r in o)e.o(o,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:o[r]})},e.o=(t,o)=>Object.prototype.hasOwnProperty.call(t,o),(()=>{"use strict";e(2962);const{generateStyleVariables:t}=window.jetpackForms,o=setTimeout(()=>{r()},3e3);function r(){const o=document.querySelectorAll(".wp-block-jetpack-contact-form-container");for(const e of o){const o=t(e);if(!o)return;for(const t in o)e.style.setProperty(t,o[t])}}window.addEventListener("load",()=>{clearTimeout(o),r()})})()})();