File Editor
Directories:
.. (Back)
Files:
admin.min.js
campaign-selector.min.js
campaign-selector.min.js.LICENSE.txt
editor.min.js
elementor.min.js
elementor.min.js.LICENSE.txt
global.min.js
helper.min.js
metabox.min.js
om-format.min.js
om-format.min.js.LICENSE.txt
om-settings.min.js
plugininstall.min.js
trustpulse.min.js
wc-marketing.min.js
Create New File
Create
Edit File: helper.min.js
window.OMAPI_Helper=window.OMAPI_Helper||{},function(e,i,o){"use strict";o.fixIds=[],o.maybeFixZindex=(e,t)=>{if(-1!==o.fixIds.indexOf(t)||i.getElementById("om-wpforms-gforms-zindex"))return;e.querySelectorAll(".wpforms-datepicker, .wpforms-timepicker, .gform-theme-datepicker").length&&o.fixIds.push(t);const r=i.createElement("style");r.id="om-wpforms-gforms-zindex",r.innerText=".flatpickr-calendar.open, .ui-timepicker-wrapper, body #ui-datepicker-div.gform-theme-datepicker.gform-theme-datepicker[style] { z-index: 999999999 !important; }",i.head.appendChild(r)},o.maybeRemoveCssFix=e=>{const t=o.fixIds.indexOf(e);t>-1&&o.fixIds.splice(t,1),o.fixIds.length||i.getElementById("om-wpforms-gforms-zindex").remove()},i.addEventListener("om.Styles.positionFloating",(function(o){var t=o.detail.Campaign;if("floating"===t.Types.type&&"top"===t.options.position&&i.getElementById("wpadminbar")){const i=e.matchMedia("(max-width: 782px)").matches?"46px":"32px";t.contain.style.marginTop=i}}));const t=(o,t)=>{const r=o.detail.Campaign.id,m=i.querySelectorAll(`#om-${r} form`);e._omapp._utils.helpers.each(m,((e,i)=>{i.id&&-1!==i.id.indexOf("wpforms-form-")&&t(r,i)}))};i.addEventListener("om.Html.append.after",(r=>{t(r,((t,r)=>{e._omapp._utils.helpers.on(r,"submit.omWpformsConversion",(()=>{setTimeout((()=>{i.querySelectorAll(".wpforms-has-error, .wpforms-error").length||e._omapp._utils.events.trigger(r,"omWpformsSuccess")}),500)})),o.maybeFixZindex(r,t)})),((t,r)=>{const m=t.detail.Campaign.id,s=i.querySelectorAll(`#om-${m} form`);e._omapp._utils.helpers.each(s,((i,t)=>{t.id&&-1!==t.id.indexOf("gform_")&&((i,t)=>{e.gform&&e.gform.tools&&e.gform.tools.trigger&&e.gform.tools.trigger("gform_main_scripts_loaded"),e.gformInitDatepicker&&e.gformInitDatepicker(),o.maybeFixZindex(t,i)})(m,t)}))})(r)})),i.addEventListener("om.Campaign.startClose",(i=>{t(i,((i,t)=>{e._omapp._utils.helpers.off(t,"submit.omWpformsConversion"),o.maybeRemoveCssFix(i)}))}))}(window,document,window.OMAPI_Helper);
Save Changes
Rename File
Rename