function wrapGravitySelects(a){var b=".gform_wrapper select:not([multiple])";(void 0!==a?jQuery(a).find(b):jQuery(b)).filter(":visible").each(function(){var a=jQuery(this);setTimeout(function(){a.siblings(".chosen-container").length||a.parent(".gravity-select-parent").length||(a.wrap('<div class="gravity-select-parent"></div>'),jQuery('<div class="select-arrow">&#xe61f;</div>').appendTo(a.parent(".gravity-select-parent"))),calcSelectArrowDimensions(),calcGravitySelectArrowPosition()},50)})}function calcGravitySelectArrowPosition(){jQuery(".gravity-select-parent").each(function(){var a=jQuery(this).children("select"),b=jQuery(this).children(".select-arrow");b.css("left",a.outerWidth()-2*parseFloat(a.css("border-right-width"))-b.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).bind("gform_post_conditional_logic",function(){var a=jQuery(".gform_wrapper select");jQuery(a).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(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(a,b,c,d,e){"show"!==b||e||setTimeout(function(){calcSelectArrowDimensions(),wrapGravitySelects()},50)})}),jQuery(window).on("fusion-dynamic-content-render",function(a,b){wrapGravitySelects(b)});