!function(){"use strict";function e(e){e.querySelectorAll("[data-hundredp-field-key], input, textarea, select").forEach(function(e){const n=e.getAttribute("data-hundredp-field-key")||e.name||e.id;if(!n)return;const t=e.value||"";window.__hundredPrintsFormValues[n]=t,window.__hundredPrintsFormValues[n.toLowerCase()]=t,e.addEventListener("input",function(){const t=e.value||"";window.__hundredPrintsFormValues[n]=t,window.__hundredPrintsFormValues[n.toLowerCase()]=t,document.dispatchEvent(new CustomEvent("hundredprints:form:input",{detail:{key:n,value:t}}))})})}function n(){document.querySelectorAll(".hundredp-form-block, .hp-block-form, .wp-block-hundredprints-form").forEach(e)}window.__hundredPrintsFormValues=window.__hundredPrintsFormValues||{},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",n):n()}();