Mini Shell

Direktori : /home/brasafestival/www/old/wp-content/plugins/jetpack/_inc/blocks/contact-form/
Upload File :
Current File : /home/brasafestival/www/old/wp-content/plugins/jetpack/_inc/blocks/contact-form/view.js

!function(){var t={88216:function(){window.jetpackForms=window.jetpackForms||{},window.jetpackForms.getBackgroundColor=function(t){let e=window.getComputedStyle(t).backgroundColor;for(;"rgba(0, 0, 0, 0)"===e&&t.parentNode&&t.parentNode.nodeType===window.Node.ELEMENT_NODE;)t=t.parentNode,e=window.getComputedStyle(t).backgroundColor;return e},window.jetpackForms.generateStyleVariables=function(t){const e=window["editor-canvas"]?window["editor-canvas"].document:document,o=e.querySelector("body");if(!e.querySelectorAll(t).length)return;const r=e.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" style="">\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">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';e.querySelector(t).appendChild(r);const n=r.querySelector(".wp-block-button__link"),c=r.querySelector('input[type="text"]'),i=window.jetpackForms.getBackgroundColor(o),a=window.jetpackForms.getBackgroundColor(c),d=window.getComputedStyle(n).borderColor,{color:p,padding:l,paddingTop:s,paddingLeft:u,border:f,borderColor:w,borderWidth:m,borderStyle:k,borderRadius:b,fontSize:g,fontFamily:y,lineHeight:j}=window.getComputedStyle(c);return r.remove(),{"--jetpack--contact-form--primary-color":d,"--jetpack--contact-form--background-color":i,"--jetpack--contact-form--text-color":p,"--jetpack--contact-form--border":f,"--jetpack--contact-form--border-color":w,"--jetpack--contact-form--border-size":m,"--jetpack--contact-form--border-style":k,"--jetpack--contact-form--border-radius":b,"--jetpack--contact-form--input-background":a,"--jetpack--contact-form--input-padding":l,"--jetpack--contact-form--input-padding-top":s,"--jetpack--contact-form--input-padding-left":u,"--jetpack--contact-form--font-size":g,"--jetpack--contact-form--font-family":y,"--jetpack--contact-form--line-height":j}}},80425:function(t,e,o){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&window.Jetpack_Block_Assets_Base_Url.url&&(o.p=window.Jetpack_Block_Assets_Base_Url.url)}},e={};function o(r){var n=e[r];if(void 0!==n)return n.exports;var c=e[r]={exports:{}};return t[r](c,c.exports,o),c.exports}o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){var t;o.g.importScripts&&(t=o.g.location+"");var e=o.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");r.length&&(t=r[r.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t+"../"}(),function(){"use strict";o(80425)}(),function(){"use strict";o(88216);const{generateStyleVariables:t}=window.jetpackForms,e=".wp-block-jetpack-contact-form-container",r=setTimeout((()=>{n()}),3e3);function n(){const o=t(e);if(!o)return;const r=document.querySelector(e);for(const t in o)r.style.setProperty(t,o[t])}window.addEventListener("load",(()=>{clearTimeout(r),n()}))}()}();

Zerion Mini Shell 1.0