芝麻web文件管理V1.00
编辑当前文件:/home/ephorei/www/wp-content/plugins/sureforms/assets/js/minified/frontend.min.js
function addGlobalSrfmObject(t,e){var r=window?.srfm||{};r[t]=e,window.srfm=r}function toggleErrorState(t,e){t.classList.contains("srfm-error")!==e&&(t.classList.toggle("srfm-error",e),t=t.querySelector(".srfm-error-message"))&&(e&&t.hasAttribute("data-srfm-id")?t.id=t.getAttribute("data-srfm-id"):t.removeAttribute("id"))}function srfmSprintfString(t,...r){return 1
{return e?(e=parseInt(e,10)-1)>=r.length?"":String(r[e]):0===r.length?"":String(r[0])}):t.replace(/%s/g,()=>0===r.length?"":String(r[0]))}(window.addGlobalSrfmObject=addGlobalSrfmObject)("toggleErrorState",toggleErrorState),addGlobalSrfmObject("srfmSprintfString",srfmSprintfString);const emailElements=document.getElementsByClassName("srfm-input-email-container");if(0
{document.querySelector("#srfm-sender-email").value=t.target.value})}const submitButton=document.getElementsByClassName("srfm-button");if(submitButton){const n=getComputedStyle(document.documentElement),o=n.getPropertyValue("--srfm-primary-color"),p=n.getPropertyValue("--srfm-secondary-color");if(""!==o)for(let t=0;t
parseInt(a.substr(t,2),16)):3===a.length&&([e,r,n]=a.split("").map(t=>parseInt(t+t,16)))}}var t=e,o=r,s=n,[t,o,s]=[t,o,s].map(t=>(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4));return.2126*t+.7152*o+.0722*s}function e(t){var e=t.querySelector("form");if(e){var r=function(t){let e=s(t),r=s(t.parentElement),n="rgba(0, 0, 0, 0)"===e&&e===r;for(;("transparent"===e||n)&&t!==document.documentElement;)t=t.parentElement,e=s(t),r=s(t.parentElement),n="rgba(0, 0, 0, 0)"===e&&e===r,e=n?"transparent":r;var o=a(e);return{color:e,isDark:o<.5}}(t)["isDark"],r=(r&&t.classList.add("srfm-has-dark-bg"),window.getComputedStyle(t).getPropertyValue("--srfm-color-input-text"));if(!(a(r)<.5)){const n={"--srfm-expandable-menu-background":"#2e2e2e"},o=[];Object.keys(n).forEach(t=>{o.push(`${t}: ${n[t]};`)});r=`.srfm-form-container-${e.getAttribute("form-id")} { ${o.join(" ")} }`;t.querySelector("style").innerHTML+=r}}}function t(){var t;document.getElementById("srfm-single-page-container")&&(t=document.querySelector(".srfm-form-container"))&&"absolute"===window.getComputedStyle(t).position&&(document.querySelector(".srfm-form-wrapper").style.height=t.clientHeight+"px")}addGlobalSrfmObject("getTranslatableString",function(t){return window?.srfm_submit?.messages?.[t]||""}),window.addEventListener("resize",t),window.addEventListener("mousemove",t),window.addEventListener("load",function(){t();{const n=document.querySelector(".srfm-branding");if(n){const o=document.querySelector("form.srfm-form");setInterval(()=>{var t,e,r;"none"===window.getComputedStyle(o).display?n.style.display="none":({opacity:t,visibility:e,display:r}=window.getComputedStyle(n),t<1&&(n.style.opacity=1),"visible"!==e&&(n.style.visibility="visible"),"none"===r&&(n.style.display="block"))},100)}}document.querySelectorAll(".srfm-form-container").forEach(t=>{e(t)})}),addGlobalSrfmObject("handleInstantFormWrapperHeight",t)}();