function wrapGravitySelects(e){var r=".gform_wrapper select:not([multiple])",t=jQuery(r);"string"==typeof e&&void 0!==e&&(t=-1!==e.indexOf("#gform_wrapper")?jQuery(e+r):jQuery(e).find(r)),t.filter(":visible").each((function(){var e=jQuery(this);setTimeout((function(){e.siblings(".chosen-container").length||e.parent(".gravity-select-parent").length||(e.wrap('<div class="gravity-select-parent"></div>'),jQuery('<div class="select-arrow">&#xe61f;</div>').appendTo(e.parent(".gravity-select-parent"))),calcSelectArrowDimensions(),calcGravitySelectArrowPosition()}),100)}))}function calcGravitySelectArrowPosition(){jQuery(".gravity-select-parent").each((function(){var e=jQuery(this).children("select"),r=jQuery(this).children(".select-arrow");r.css("left",e.outerWidth()-2*parseFloat(e.css("border-right-width"))-r.width())}))}function recursiveGFormSubmissionHandler(){jQuery(".gform_wrapper").find("form").attr("target")&&-1<jQuery(".gform_wrapper").find("form").attr("target").indexOf("gform_ajax_frame")&&jQuery(".gform_wrapper").find("form").submit((function(){setTimeout((function(){wrapGravitySelects(),calcSelectArrowDimensions(),calcGravitySelectArrowPosition(),recursiveGFormSubmissionHandler()}),800)}))}jQuery(document).on("gform_post_conditional_logic",(function(){var e=jQuery(".gform_wrapper select");jQuery(e).each((function(){jQuery(this).hasClass("chzn-done")&&jQuery(this).parent().hasClass("gravity-select-parent")&&(jQuery(this).parent().find(".select-arrow").remove(),jQuery(this).unwrap('<div class="gravity-select-parent"></div>'))}))})),recursiveGFormSubmissionHandler(),jQuery(document).on("gform_post_render",(function(e,r){wrapGravitySelects("#gform_wrapper_"+r)})),jQuery(window).on("load",(function(){jQuery(".gform_wrapper").each((function(){jQuery(this).removeClass("gf_browser_ie")})),wrapGravitySelects(),jQuery(window).on("fusion-resize-horizontal",(function(){calcGravitySelectArrowPosition()})),"undefined"!=typeof gform&&gform&&gform.addAction("gform_post_conditional_logic_field_action",(function(e,r,t,i,n){"show"!==r||n||setTimeout((function(){calcSelectArrowDimensions(),wrapGravitySelects()}),50)}))})),jQuery(window).on("fusion-dynamic-content-render",(function(e,r){wrapGravitySelects(r)}));