PageSourceSearch

https://www.merrillgardens.com/javascripts/contact-us-3f27dc289e.min.js

js merrillgardens.com collected 2026-09-29 06:10:13 UTC 10,545 bytes, 1 lines download raw bytes

1!function(){function t(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return e(t,n)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var i=function(){function e(t){var n=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.configs=t,null!=this.configs){var o=Array.from(Array(parseInt(this.configs.amountOfOptions)).keys()).map((function(t){return t+1}));this.formsToAppendLocation=o.map((function(t){return n.configs["form_to_append_location_select_".concat(t)]})),this.widget=$("#".concat(this.configs.widgetId)),this.userSelectOptions=this.configs.userSelectForms,this.clsUrl=this.configs.secureClsUrl,this.locationUrn=this.configs.locationUrn,this.locationsJson=this.configs.locationsJson,this.form=this.widget.find("form"),this.formSelectDropdown=this.widget.find(".user-form-options"),this.leadSlugForLocSelect="".concat(this.formsToAppendLocation.find((function(t){return!!t}))),this.locationDropdown=this.widget.find(".location-select"),this.runLocSelectOnce=!1,this.index=1,this.userSelect(),this.triggerEnhancer(),this.hideLocationSelect(),this.appendLocationDropdown(),this.changeFormId(),this.syncPrivacyPolicyLink()}}var i,r,a;return i=e,(r=[{key:"syncPrivacyPolicyLink",value:function(){var t=this,e=function(){var e=$
1("footer .footer-info a, footer .widget-footer-info a").filter((function(){var t=$(this).text().toLowerCase(),e=$(this).attr("href")||"";return t.includes("privacy")||e.toLowerCase().includes("privacy")})).first();if(e.length){var n=e.attr("href"),o=t.widget.find(".g5-enhanced-form .privacy-disclaimer");if(o.length){var i=o.find("a");if(i.length)i.attr("href",n),n&&(n.startsWith("http")||n.startsWith("//"))&&(i.attr("target","_blank"),i.attr("rel","noopener noreferrer")),console.log("Privacy policy link updated:",n);else{var r=o.html().replace(/privacy policy/gi,'<a href="'.concat(n,'" target="_blank" rel="noopener noreferrer">privacy policy</a>'));o.html(r),console.log("Privacy policy link created:",n)}}}else console.warn("Footer privacy policy link not found")};$(window).on("G5FormRendered",(function(){setTimeout(e,300)})),this.widget.find(".user-form-options").on("change",(function(){setTimeout(e,600)}))}},{key:"submitHackUrn",get:function(){return"true"===this.configs["hack_urn_".concat(this.index)]}},{key:"showPendingLocations",get:function(){return"true"===this.configs["show_pending_".concat(this.index)]}},{key:"showCorporateLocations",get:function(){return"true"===this.configs["show_corporate_".concat(this.index)]}},{key:"isOrderedBy",get:function(){switch(this.configs["select_ordering_".concat(this.index)]){case"order_by_state_city_address":return{displayBy:this.displayByStateCityAddress,orderBy:["state","city","street_address"]};case"order_by_city_brandedName":return{displayBy:this.displayByCityBrandedName,orderBy:["city","name","state"]};case"order_by_brandedName_city_state":return{displayBy:this.displayByBrandedNameCityState,orderBy:["name","state","city"]};case"order_by_city_state_brandedName":return{displayBy:this.displayByCityStateBrandedName,orderBy:["state","city","name"]};case"order_by_displayName_city_state":return{displayBy:this.displayByDisplayNameCityState,orderBy:["display_name","state","city"]};case"order_by_city_state_displayName":return{displayBy:this.displayByCityStateDisplayName,orderBy:["state","city","display_name"]};case"order_by_state_city_brandedName":return{displayBy:this.displayByStateCityBrandedName,orderBy:["state","city","name"]};case"order_by_state_city_displayName":return{displayBy:this.displayByStateCityDisplayName,orderBy:["state","city","display_name"]}}}},{key:"userSelect",value:function(){var t=this;if(this.userSelectOptions){this.widget.prepend('\n        <div class="user-form-select" style="margin-bottom:15px;">\n          <p id="user-form-label" class="paragraph-title">Please select the type of form you would like to submit</p>\n          <select id="user-form-options" class="user-form-options" aria-labelledby="user-form-label"></select>\n        </div>'),$.each(this.userSelectOptions,(function(e,n){var o='<option value="'.concat(e,'">').concat(n,"</option>");t.widget.find(".user-form-options").append(o)}));var e=!("object"===n(this.userSelectOptions)),o=Object.keys(this.userSelectOptions).length<=1;(e||o)&&this.widget.find(".user-form-select").hide()}}},{key:"orderLocations",value:function(t){return function(e,n){return e[t[0]].toLowerCase()===n[t[0]].toLowerCase()?e[t[1]].toLowerCase()===n[t[1]].toLowerCase()?e[t[2]].toLowerCase()>n[t[2]].toLowerCase()?1:-1:e[t[1]].toLowerCase()>n[t[1]].toLowerCase()?1:-1:e[t[0]].toLowerCase()>n[t[0]].toLowerCase()?1:-1}}},{key:"displayByStateCityAddress",value:function(t){return"".concat(t.state,", ").concat(t.city," - ").concat(t.street_address)}},{key:"displayByCityBrandedName",value:function(t){return"".concat(t.city," - ").concat(t.name)}},{key:"displayByBrandedNameCityState",value:function(t){return"".concat(t.name," - ").concat(t.city,", ").concat(t.state)}},{key:"displayByCityStateBrandedName",value:function(t){return"".concat(t.city,", ").concat(t.state," - ").concat(t.name)}},{key:"displayByDisplayNameCityState",value:function(t){return"".concat(t.display_name," - ").concat(t.city,", ").concat(t.state)}},{key:"displayByCityStateDisplayName",value:function(t){return"".concat(t.city,", ").concat(t.state," - ").concat(t.display_name)}},{key:"displayByStateCityBrandedName",value:function(t){return"".concat(t.state,", ").concat(t.city," - ").concat(t.name)}},{key:"displayByStateCityDisplayName",value:function(t){return"".concat(t.state,", ").concat(t.city," - ").concat(t.display_name)}},{key:"changeIndex",value:function(t){this.index=this.formsToAppendLocation.findIndex((function(e){return e===t}))+1}},{key:"updateLocationDropdownLabel",value:function(){$(".select_dropdown").text(this.configs["select_dropdown_label_".concat(this.index)])}},{key:"removeLocationDropdownOptions",value:function(){this.widget.find(".location-list-urn option").remove()}},{key:"appendDefaultLocationDropdownOption",value:function(){this.widget.find(".location-list-urn").append($('<option class="disabled-option-label" disabled selected="true" value=""></option>').text(this.configs["disabled_option_label_".concat(this.index)]))}},{key:"appendCorporateLocationAtTheTopOfTheList",value:function(e){var n=e.filter((function(t){return!t.corporate})),o=e.filter((function(t){return t.corporate}));return this.showCorporateLocations?[].concat(t(o),t(n)):n}},{key:"appendLocationDropdownOptions",value:function(){var t=this,e=this.showPendingLocations?this.locationsJson:this.locationsJson.filter((function(t){return!t.pending})),n=this.isOrderedBy,o=n.displayBy,i=n.orderBy,r=e.sort(this.orderLocations(i)),a=this.appendCorporateLocationAtTheTopOfTheList(r);$.each(a,(function(e,n){t.widget.find(".location-list-urn").append($("<option></option>").val(n.urn).text(o(n)))}))}},{key:"triggerEnhancer",value:function(){var t=this;this.widget.find(".user-form-options").change((function(){var e=$
1(this).attr("value");t.runLocSelectOnce=!1,t.leadSlugForLocSelect="".concat(e,"_form"),t.changeIndex(t.leadSlugForLocSelect);var n="".concat(t.clsUrl,"/api/v1/locations/").concat(t.locationUrn,"/html_forms/").concat(e);window.G5Leads.g5FormEnhancer({formUrl:n,enhanceClass:"".concat(t.configs.widgetId,".lead-form .g5-enhanced-form")})}))}},{key:"resetPriorSelections",value:function(){this.widget.find(".g5-enhanced-form .location-list-urn option:selected").prop("selected",!1)}},{key:"resetToFirstEmptyOption",value:function(){this.widget.find(".g5-enhanced-form .location-list-urn option:first").attr("selected","selected")}},{key:"triggerUrnSwap",value:function(){this.submitHackUrn?(this.resetPriorSelections(),this.resetToFirstEmptyOption(),this.widget.find(".location-list-urn").change((function(){$("input[type='hidden'][name='location-list-select']").remove();var t=$(this).attr("value"),e=$(this).parent().parent(),n=e.attr("action").split("/");n.splice(6,1,t),e.attr("action",n.join("/"))}))):this.widget.find(".location-select").remove()}},{key:"hideLocationSelect",value:function(){var t=this;$(window).on("G5FormResponseComplete",(function(){t.locationDropdown.hide(),t.widget.find(".user-form-select").hide()}))}},{key:"appendLocationDropdown",value:function(){var t=this;""!==this.leadSlugForLocSelect&&$(window).on("G5FormRendered",(function(){if(t.widget.find(".g5-enhanced-form .".concat(t.leadSlugForLocSelect)).length&&!t.runLocSelectOnce){var e=t.widget.find(".".concat(t.leadSlugForLocSelect," div:first"));t.locationDropdown.clone().insertBefore(e).fadeIn(),t.triggerUrnSwap(),t.runLocSelectOnce=!0,t.locationDropdown.remove(),t.updateLocationDropdownLabel(),t.removeLocationDropdownOptions(),t.appendDefaultLocationDropdownOption(),t.appendLocationDropdownOptions()}}))}},{key:"changeFormId",value:function(){var t=this;$(window).on("G5FormRendered",(function(){var e=setInterval(function(){var t=this;this.widget.find(".g5-enhanced-form form").length&&(this.changedFormId||(this.widget.find("input, textarea, select, label[for]").not(":input[type=submit], :input[type=radio], :input[name=lead_comments], textarea[name=g-recaptcha-response]").each((function(e,n){return"LABEL"==n.nodeName?n.setAttribute("for","".concat(n.getAttribute("for"),"-").concat(t.configs.widgetId)):n.id="".concat(n.id,"-").concat(t.configs.widgetId)})),this.changedFormId=!0),clearInterval(e))}.bind(t),100)}))}}])&&o(i.prototype,r),a&&o(i,a),e}();G5.loadWidgetConfigs(".lead-configs",i)}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.