var gform;gform||(document.addEventListener(« gform_main_scripts_loaded »,function(){gform.scriptsLoaded=!0}),document.addEventListener(« gform/theme/scripts_loaded »,function(){gform.themeScriptsLoaded=!0}),window.addEventListener(« DOMContentLoaded »,function(){gform.domLoaded=!0}),gform={domLoaded:!1,scriptsLoaded:!1,themeScriptsLoaded:!1,isFormEditor:()=> »function »==typeof InitializeEditor,callIfLoaded:function(o){return!(!gform.domLoaded||!gform.scriptsLoaded||!gform.themeScriptsLoaded&&!gform.isFormEditor()||(gform.isFormEditor()&&console.warn(« The use of gform.initializeOnLoaded() is deprecated in the form editor context and will be removed in Gravity Forms 3.1. »),o(),0))},initializeOnLoaded:function(o){gform.callIfLoaded(o)||(document.addEventListener(« gform_main_scripts_loaded »,()=>{gform.scriptsLoaded=!0,gform.callIfLoaded(o)}),document.addEventListener(« gform/theme/scripts_loaded »,()=>{gform.themeScriptsLoaded=!0,gform.callIfLoaded(o)}),window.addEventListener(« DOMContentLoaded »,()=>{gform.domLoaded=!0,gform.callIfLoaded(o)}))},hooks:{action:{},filter:{}},addAction:function(o,r,e,t){gform.addHook(« action »,o,r,e,t)},addFilter:function(o,r,e,t){gform.addHook(« filter »,o,r,e,t)},doAction:function(o){gform.doHook(« action »,o,arguments)},applyFilters:function(o){return gform.doHook(« filter »,o,arguments)},removeAction:function(o,r){gform.removeHook(« action »,o,r)},removeFilter:function(o,r,e){gform.removeHook(« filter »,o,r,e)},addHook:function(o,r,e,t,n){null==gform.hooks[o][r]&&(gform.hooks[o][r]=[]);var d=gform.hooks[o][r];null==n&&(n=r+ »_ »+d.length),gform.hooks[o][r].push({tag:n,callable:e,priority:t=null==t?10:t})},doHook:function(r,o,e){var t;if(e=Array.prototype.slice.call(e,1),null!=gform.hooks[r][o]&&((o=gform.hooks[r][o]).sort(function(o,r){return o.priority-r.priority}),o.forEach(function(o){« function »!=typeof(t=o.callable)&&(t=window[t]), »action »==r?t.apply(null,e):e[0]=t.apply(null,e)})), »filter »==r)return e[0]},removeHook:function(o,r,t,n){var e;null!=gform.hooks[o][r]&&(e=(e=gform.hooks[o][r]).filter(function(o,r,e){return!!(null!=n&&n!=o.tag||null!=t&&t!=o.priority)}),gform.hooks[o][r]=e)}});
