1!function(){var t={799:function(){function t(e){return(t="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})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=a(t);if(e){var o=a(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return r(this,n)}}function r(e,n){return!n||"object"!==t(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e):n}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(l,ApiManager);var r,a,s,c=o(l);function l(){return e(this,l),c.apply(this,arguments)}return r=l,(a=[{key:"apiName",value:function(){return"fortawesomeapi"}},{key:"apiScript",value:function(){return"//use.fortawesome.com/"+this.apiKey()+".js"}},{key:"apiKey",value:function(){return"26805d78"}},{key:"hasOwnOnLoadCallback",value:function(){return!0}}])&&n(r.prototype,a),s&&n(r,s),l}();window.fortAwesomeLoaded=function(){G5.fortAwesomeApi.doneLoading()},G5.fortAwesomeApi=new s},48:function(t,e,n){var i,o,r,a,s;r=function(t){if("#text"==t.nodeName){for(var e=t.textContent.split(" "),n=0;n<e.length;n++){if(e[n].length>0){var i=document.createElement("span");i.className="js-detect-wrap",i.innerText=e[n],t.parentNode.insertBefore(i,t)}n<e.length-1&&t.parentNode.insertBefore(document.createTextNode(" "),t)}t.parentNode.removeChild(t)}else t.innerText&&(t.innerHTML=o(t.innerText,'<span class="js-detect-wrap">',"</span>"))},s={wrapWords:o=function(t,e,n,i){i=i||" ";for(var o=t.split(" "),r=0;r<o.length;r++)o[r]=e+o[r]+n;return o.join(i)},wrapWordsInElement:a=function t(e){if(e.firstChild){var n=[],i=e.firstChild;do{n.push(i)}while(i=i.nextSibling);for(var o=0;o<n.length;o++)t(n[o])}else r(e)},wrapWordsInChildElement:r,getLines:function(t){a(t);for(var e=t.getElementsByClassName("js-detect-wrap"),n=0,i=[],o=[],r=0,s=0;s<e.length;s++){var c=e[s].offsetTop+e[s].getBoundingClientRect().height;c==n?i.push(e[s]):(i.length>0&&(o[r++]=i),i=[e[s]]),n=c}return o.push(i),o}},void 0===(i=function(){return s}.call(e,n,e,t))||(t.exports=i)},61:function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var e=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=t,this.setupMobileTouch()}var n,i,o;return n=e,(i=[{key:"isTouchEvent",value:function(t){return t.originalEvent&&"touches"in t.originalEvent}},{key:"isTwoFingerTouch",value:function(t){return t.originalEvent.touches.length>=2}},{key:"setupMobileTouch",value:function(){var t=this;this.map.on("dragstart",(function(e){t.isTouchEvent(e)&&!t.isTwoFingerTouch(e)&&t.map.dragPan.disable()})),this.map.on("touchstart",(function(e){t.isTouchEvent(e)&&t.isTwoFingerTouch(e)&&t.map.dragPan.enable()}))}}])&&t(n.prototype,i),o&&t(n,o),e}();window.MapboxEnhancements=e},554:function(){"use strict";function t(n){return!!("undefined"!=typeof window&&"undefined"!=typeof document&&Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray&&Function.prototype&&Function.prototype.bind&&Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions&&"JSON"in window&&"parse"in JSON&&"stringify"in JSON&&function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var t,e,n=new Blob([""],{type:"text/javascript"}),i=URL.createObjectURL(n);try{e=new Worker(i),t=!0}catch(e){t=!1}e&&e.terminate();return URL.revokeObjectURL(i),t}()&&"Uint8ClampedArray"in window&&ArrayBuffer.isView&&function(n){void 0===e[n]&&(e[n]=function(e){var n=document.createElement("canvas"),i=Object.create(t.webGLContextAttributes);return i.failIfMajorPerformanceCaveat=e,n.probablySupportsContext?n.probablySupportsContext("webgl",i)||n.probablySupportsContext("experimental-webgl",i):n.supportsContext?n.supportsContext("webgl",i)||n.supportsContext("experimental-webgl",i):n.getContext("webgl",i)||n.getContext("experimental-webgl",i)}(n));return e[n]}(n&&n.failIfMajorPerformanceCaveat))}window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=t;var e={};t.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0},window.isSupported=t},180:function(){function t(e){return(t="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})(e)}function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return n(t,e)}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function i(t,e,n,i,o,r,a){try{var s=t[r](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(i,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,r){var a=t.apply(e,n);function s(t){i(a,o,r,s,c,"next",t)}function c(t){i(a,o,r,s,c,"throw",t)}s(void 0)}))}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return l(this,n)}}function l(e,n){return!n||"object"!==t(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e):n}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(p,ApiManager);var n,i,l,u,f,d=c(p);function p(){return r(this,p),d.apply(this,arguments)}return n=p,(i=[{key:"apiName",value:function(){return"mapboxglapi"}},{key:"apiScript",value:function(){return"https://api.tiles.mapbox.com/mapbox-gl-js/v2.7.0/mapbox-gl.js"}},{key:"accessToken",get:function(){return"pk.eyJ1IjoiZzVsZXZpYnJvd24iLCJhIjoiVXBockRSOCJ9.6HLfrsqLqgQSrTHG0jPYkw"}},{key:"getLatLng",value:(f=o(regeneratorRuntime.mark((function t(n){var i,o,r,a,s,c,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=encodeURIComponent(n),t.next=3,fetch("https://api.mapbox.com/geocoding/v5/mapbox.places/".concat(i,".json?access_token=").concat(this.accessToken));case 3:return o=t.sent,t.next=6,o.json();case 6:return r=t.sent,a=e(r.features,1),s=e(a[0].center,2),c=s[0],l=s[1],t.abrupt("return",{latitude:l,longitude:c});case 9:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"getAddress",value:(u=o(regeneratorRuntime.mark((function t(n,i){var o,r,a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("https://api.mapbox.com/geocoding/v5/mapbox.places/".concat(i,",").concat(n,".json?access_token=").concat(this.accessToken));case 2:return o=t.sent,t.next=5,o.json();case 5:return r=t.sent,a=e(r.features,1),s=a[0].place_name,t.abrupt("return",s);case 8:case"end":return t.stop()}}),t,this)}))),function(t,e){return u.apply(this,arguments)})}])&&a(n.prototype,i),l&&a(n,l),p}();G5.mapBoxGlApi=new f},355:function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var e=function(){function e(t){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.state={mapbox:null,panStart:{x:0,y:0},scale:1},this.state.mapbox=t,this.state.mapbox.getContainer().addEventListener("touchstart",(function(t){n.touchStart(t)}),!1),this.state.mapbox.getContainer().addEventListener("touchmove",(function(t,e){n.touchMove(t,e)}),!1),"ontouchstart"in document.documentElement&&this.state.mapbox.dragPan.disable()}var n,i,o;return n=e,(i=[{key:"touchStart",value:function(t){if(2===t.touches.length){t.stopImmediatePropagation(),t.preventDefault();for(var e=0,n=0,i=0,o=Array.from(t.touches);i<o.length;i++){var r=o[i];e+=r.screenX,n+=r.screenY}this.state.panStart.x=e/t.touches.length,this.state.panStart.y=n/t.touches.length}}},{key:"touchMove",value:function(t,e){if(2===t.touches.length){this.state.scale==t.scale&&(t.stopImmediatePropagation(),t.preventDefault()),this.state.scale=t.scale;for(var n=0,i=0,o=0,r=Array.from(t.touches);o<r.length;o++){var a=r[o];n+=a.screenX,i+=a.screenY}var s=n/t.touches.length-this.state.panStart.x,c=i/t.touches.length-this.state.panStart.y;this.state.panStart.x=n/t.touches.length,this.state.panStart.y=i/t.touches.length,this.state.mapbox.panBy([1*s/-1,1*c/-1],{animate:!1})}}}
1])&&t(n.prototype,i),o&&t(n,o),e}();window.twoFingerMapboxPan=e},774: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 i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))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,i=new Array(e);n<e;n++)i[n]=t[n];return i}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 i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=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 i=Array.from(Array(parseInt(this.configs.amountOfOptions)).keys()).map((function(t){return t+1}));this.formsToAppendLocation=i.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 o,r,a;return o=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"),i=t.widget.find(".g5-enhanced-form .privacy-disclaimer");if(i.length){var o=i.find("a");if(o.length)o.attr("href",n),n&&(n.startsWith("http")||n.startsWith("//"))&&(o.attr("target","_blank"),o.attr("rel","noopener noreferrer")),console.log("Privacy policy link updated:",n);else{var r=i.html().replace(/privacy policy/gi,'<a href="'.concat(n,'" target="_blank" rel="noopener noreferrer">privacy policy</a>'));i.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 i='<option value="'.concat(e,'">').concat(n,"</option>");t.widget.find(".user-form-options").append(i)}));var e=!("object"===n(this.userSelectOptions)),i=Object.keys(this.userSelectOptions).length<=1;(e||i)&&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})),i=e.filter((function(t){return t.corporate}));return this.showCorporateLocations?[].concat(t(i),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,i=n.displayBy,o=n.orderBy,r=e.sort(this.orderLocations(o)),a=this.appendCorporateLocationAtTheTopOfTheList(r);$.each(a,(function(e,n){t.widget.find(".location-list-urn").append($("<option></option>").val(n.urn).text(i(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)}))}}])&&i(o.prototype,r),a&&i(o,a),e}();G5.loadWidgetConfigs(".lead-configs",o)},144:function(){function t(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(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){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}(t,e)||n(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function a(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}var s=function(){function t(e,n){o(this,t),Object.assign(this,e),this.configs=e,this.widget=n,this.widgetWidth=n.width(),this.breakpoint=720,this.filterTextStyle='style="color: #666666; color: var(--filters-text, #666666)"'}return a(t,[{key:"mqClass",get:function(){return this.widgetWidth>this.breakpoint?"large":this.widgetWidth>
1600?"small":"tiny small"}},{key:"isMobile",get:function(){return this.mqClass.includes("small")}},{key:"isMobileDisplay",get:function(){return this.isMobile&&!this.configs.displayPoiListsOnMobile}},{key:"pinStyle",get:function(){return"single"===this.configs.categoryDisplay&&"numbers"===this.configs.pinDisplay?"numbered":null}},{key:"categoryElement",value:function(t){return this.widget.find(".toggle-category[value=".concat(t,"]"))}},{key:"filterCategory",value:function(t){var e=this.categories[t],n=this.isMobileDisplay?this.filterCategoryMobile(t):this.filterCategoryDesktop(t);return'\n <div class="filter-cat-'.concat(e.id,'">\n <button class="toggle-category active" value="').concat(t,'" aria-label="Toggle filtering businesses by ').concat(t,'"><i class="fa ').concat(e.icon,'"></i></button>\n <div class="filter-info closed">\n ').concat(n,"\n </div>\n </div>\n ")}},{key:"filterCategoryMobile",value:function(t){return'\n <div class="filter-title" data-category="'.concat(t,'">\n <span id="filter-').concat(this.categories[t].id,'" ').concat(this.filterTextStyle,">").concat(this.categories[t].label,"</span>\n </div>\n ")}},{key:"toggleCategoryIcon",value:function(t){this.configs.usePlusMinusIcon&&$(t).find(".fa").toggleClass("fa-plus fa-minus")}},{key:"filterCategoryDesktop",value:function(t){var e=this,n=Object.create(null);this.pointsOfInterest=this.pointsOfInterest.filter((function(t){var e=["place_id","location_type","name","latitude","longitude"].map((function(e){return t[e]})).join("|");if(!n[e])return n[e]=!0,!0}));var i=this.pointsOfInterest.filter((function(e){return e.location_type===t})),o=this.configs.usePlusMinusIcon?"fa-plus":"fa-caret",r=i.map((function(t){return'<li role="menuitem"><a aria-label="Show '.concat(t.name,' on map" href="#" data-poi-id=').concat(t.id," ").concat(e.filterTextStyle,">").concat(t.name,"</a></li>")})).join("");return'\n <div class="filter-title" aria-haspopup="true" aria-expanded="false" tabindex="0" data-category="'.concat(t,'" aria-label="Show list of ').concat(t,' businesses" role="button">\n <span id="filter-').concat(this.categories[t].id,'" ').concat(this.filterTextStyle,">").concat(this.categories[t].label,'</span>\n <button title="Show list of ').concat(t,' businesses" role="button" class="toggle-list" ').concat(this.filterTextStyle,'>\n <i class="fa ').concat(o,'"></i>\n </button>\n </div>\n <ul class="filter-list ').concat(this.pinStyle,'" role="menu" aria-labelledby="filter-').concat(this.categories[t].id,'">\n ').concat(r,"\n </ul>\n ")}},{key:"popupContent",value:function(t){var e=t.name?"<span class='name'>".concat(t.name,"</span>"):"",n=t.website?"<span><a class='website-link' href='".concat(t.website,"' target='_blank'>Visit Website</a></span>"):"",i=t.phone_number?"<span class='phone'>".concat(t.phone_number,"</span>"):"",o=this.categories[t.location_type]?"popup-cat-".concat(this.categories[t.location_type].id):"",r=t.address||t.city||t.state||t.postal_code?"\n <span class='address-block'>\n ".concat(t.address?"<span class='address'>".concat(t.address,"</span>"):"","\n <span class='city-state-zip'>\n ").concat(t.city?"".concat(t.city,", "):"","\n ").concat(t.state?"".concat(t.state," "):"","\n ").concat(t.postal_code?t.postal_code:"","</span>\n </span>\n "):"";return"\n <div class='marker-content-wrapper ".concat(o,"'>\n ").concat(e,"\n ").concat(r,"\n ").concat(i,"\n ").concat(n,"\n </div>\n ")}},{key:"businessIconMarkup",value:function(t,n){var i,o=e(n,2),r=o[0],a=o[1];return i=this.businessMarkerCustomImg?'<img src="'.concat(this.businessMarkerCustomImg,'" loading="lazy" alt="').concat(this.name,' marker" />'):'\n <span class="fa-stack fa-lg">\n <i class="fa '.concat(this.businessMarkerShape,' fa-stack-2x"></i>\n <i class="fa ').concat(this.businessMarkerIcon,' fa-stack-1x fa-inverse"></i>\n </span>\n '),'\n <div class="'.concat(t,' marker-cat-0" id="marker-0" data-poi-id="0" data-lng=').concat(r," data-lat=").concat(a,'>
1\n <span class="location-marker">\n ').concat(i,"\n </span>\n </div>\n ")}},{key:"businessPopupContent",get:function(){var t=this.name?"<span class='name'>".concat(this.name,"</span>"):"",e=this.profileImage?"<span class='profile-image'><img src='".concat(this.profileImage,"' loading=\"lazy\" alt='").concat(this.name,"' /></span>"):"";return"\n <div class='marker-content-wrapper popup-cat-0'>\n ".concat(t,"\n <span class='address-block'>\n <span class='address'>").concat(this.streetAddress,"</span>\n <span class='city-state-zip'>").concat(this.cityStateZip,"</span>\n </span>\n ").concat(e,"\n </div>")}},{key:"locationIconMarkup",value:function(t,n,i,o,r){var a=this.categories[t]?this.categories[t].icon:"fa-location-2",s=e(n,2),c=s[0],l=s[1],u="marker-".concat(i),f=this.categories[t]?"marker-cat-".concat(this.categories[t].id):"";return'\n <div class="'.concat(o," ").concat(f,'" id="').concat(u,'" data-poi-id="').concat(i,'" data-lng=').concat(c," data-lat=").concat(l,'>
1\n <span class="fa-stack fa-lg">\n <i class="fa fa-solid-circle fa-stack-2x"></i>\n <i class="icon-view fa ').concat(a,' fa-stack-1x fa-inverse"></i>\n <i class="number-view fa fa-stack-1x fa-inverse">').concat(r,"</i>\n </span>\n </div>\n ")}}]),t}(),c=function(){function e(t){o(this,e),Object.assign(this,t),G5.mapBoxGlApi.registerWidget(this,"setupMap"),this.widget=$("#".concat(this.widgetId)),this.canvas=this.widget.find(".canvas"),this.neighborhoodMarkers=[],this.activeCategories=[],this.cachedExistingCategories=[],this.haveFiltered=!1,this.ui=new s(t,this.widget),this.pointsOfInterest=this.ui.pointsOfInterest,this.resize(),this.pointsOfInterest.length>0&&(this.buildFilters(),this.setupEventListeners())}return a(e,[{key:"singleCategoryView",get:function(){return"single"===this.ui.categoryDisplay}},{key:"setupMap",value:function(){var t=this,e=""!==this.latitude&&""!==this.longitude,n={latitude:this.latitude,longitude:this.longitude},i=e?n:this.setMapGeocode();Promise.resolve(i).then((function(e){return t.showMap(e)}))}},{key:"showMap",value:function(t){var e=this;this.coordinates=[t.longitude,t.latitude],mapboxgl.accessToken=G5.mapBoxGlApi.accessToken;var n=new mapboxgl.NavigationControl({showCompass:!1});this.clientMap.addControl(n,"top-right");var i=new mapboxgl.Popup({offset:25,className:"location-popup"}).setHTML(this.ui.businessPopupContent);this.displayBusinessMarker&&new mapboxgl.Marker({element:this.businessIcon(this.coordinates)}).setLngLat(this.coordinates).setPopup(i).addTo(this.clientMap);var o=this.addMarkers(),r={padding:100};this.mapZoom&&(r.zoom=this.mapZoom),this.clientMap.fitBounds(o,r),this.widget.on("click",".mapboxgl-marker",(function(t){var n=t.currentTarget.dataset,i=n.lng,o=n.lat;e.map.panTo([Number(i),Number(o)])}))}},{key:"businessIcon",value:function(t){var e="marker-container-home",n=this.ui.businessIconMarkup(e,t);return this.widget.append(n),this.widget.find(".".concat(e))[0]}},{key:"locationIcon",value:function(t,e,n,i,o){var r="marker-container-".concat(t,"-").concat(i),a=this.ui.locationIconMarkup(t,e,n,r,o);return this.widget.append(a),this.widget.find(".".concat(r))[0]}},{key:"buildFilters",value:function(){var e=this;this.activeCategories=t(this.existingCategories);var n=this.filtersOpenDefault&&!this.ui.isMobile?"filters-open":"filters-closed",i="numbers"===this.ui.pinDisplay?"numbers":"",o=this.filtersOpenDefault&&!this.ui.isMobile?"open":"closed",r="single"===this.ui.categoryDisplay?"single":"",a=this.existingCategories.map((function(t){return e.ui.filterCategory(t)})).join("");this.widget.find(".canvas").addClass(n).addClass(i).addClass(r),this.widget.find(".map-filters-plus").addClass(o).addClass(r).addClass(this.ui.pinStyle).append(a).removeClass("hide")}},{key:"setupEventListeners",value:function(){var t=this;this.widget.find(".toggle-filters").on("click",(function(e){return t.toggleFilters(e)})),this.ui.isMobileDisplay?this.widget.find("[class*=filter-cat-]").on("click",(function(e){var n=$(e.currentTarget).find(".toggle-category");t.toggleCategorySetup(n)})):(this.widget.find(".toggle-category").on("click",(function(e){e.preventDefault(),t.toggleCategorySetup($(e.currentTarget))})),$(".filter-title").on("click",(function(e){return t.toggleFilterList(e)})),this.widget.find(".filter-list a").on("click",(function(e){return t.filterItem(e)})),this.singleCategoryView&&$(window).on("load",(function(){return $(".single.open .filter-cat-1 .filter-title").click()})))}},{key:"filterItem",value:function(t){t.preventDefault();var e=t.currentTarget.getAttribute("data-poi-id"),n=this.pointsOfInterest.filter((function(t){return t.id==e}))[0];this.createPopUp(n),this.flyToStore(n)}},{key:"toggleFilterList",value:function(t){this.widget.find(".map-filters-plus").find(".filter-title").not(t.currentTarget).attr("aria-expanded","false").closest(".filter-info").addClass("closed"),$(t.currentTarget).closest(".filter-info").toggleClass("closed");var e=t.currentTarget.dataset.category;this.categoryMeta(e).isActive||this.activateCategory(e);var n="true"===$(t.currentTarget).attr("aria-expanded");($(t.currentTarget).attr("aria-expanded",n?"false":"true"),this.ui.toggleCategoryIcon(t.currentTarget),this.singleCategoryView&&this.widget.hasClass("large"))&&(this.removePopups(),this.neighborhoodMarkers.forEac
1h((function(t){t._element.classList.remove("active")})),this.neighborhoodMarkers.filter((function(t){return t.category===e})).forEach((function(t){t._element.classList.add("active")})),this.setBounds())}},{key:"toggleFilters",value:function(t){t.preventDefault();var e=$(t.currentTarget).closest(".map-filters-plus");e.toggleClass("open closed");var n=this.widget.find(".mapboxgl-map");e.hasClass("open")?n.addClass("filters-open").removeClass("filters-closed"):n.addClass("filters-closed").removeClass("filters-open"),this.map.resize()}},{key:"toggleCategorySetup",value:function(t){this.haveFiltered?this.toggleCategory(t):this.firstFilterClicked(t)}},{key:"toggleCategory",value:function(t){var e=t.val(),n=this.categoryMeta(e),i=n.isActive,o=n.index,r=n.isLast;i?r?this.activateAllCategories():(this.deactivateCategory(e,o),t.next().addClass("closed").find(".filter-title").attr("aria-expanded","false")):this.activateCategory(e)}},{key:"firstFilterClicked",value:function(t){var e=this,n=t.val();this.activeCategories.forEach((function(t,n){e.widget.find(".toggle-category[value=".concat(t,"]")).removeClass("active"),e.ui.isMobileDisplay&&e.widget.find(".filter-title[data-category=".concat(t,"]")).closest(".filter-info").addClass("closed")})),this.activeCategories=[],this.removePopups(),this.activateCategory(n),this.setBounds(),this.haveFiltered=!0}},{key:"activateCategory",value:function(t){this.ui.categoryElement(t).addClass("active"),this.activeCategories.push(t),this.setBounds()}},{key:"deactivateCategory",value:function(t,e){this.ui.categoryElement(t).removeClass("active"),this.activeCategories.splice(e,1),this.ui.isMobileDisplay&&this.widget.find(".filter-title[data-category=".concat(t,"]")).closest(".filter-info").addClass("closed"),this.removePopups(),this.setBounds()}},{key:"activateAllCategories",value:function(){var e=this;this.activeCategories=t(this.existingCategories),this.existingCategories.forEach((function(t){e.ui.categoryElement(t).addClass("active")})),this.setBounds(!0)}},{key:"categoryMeta",value:function(t){var e=this.activeCategories.indexOf(t);return{isActive:e>-1,index:e,isLast:1===this.activeCategories.length}}},{key:"getMakerPosition",value:function(t){return t.getLngLat()}},{key:"getMapBounds",value:function(){return new mapboxgl.LngLatBounds}},{key:"addMarkers",value:function(){var t=this,e=this.getMapBounds(),n=0;return this.activeCategories.forEach((function(i){var o=1;t.pointsOfInterest.forEach((function(r,a){if(r.location_type==i){t.addMarker(r,n,o);var s=t.neighborhoodMarkers[n];e.extend(t.getMakerPosition(s)),s.setVisible(!0),n++,o++}}))})),e}},{key:"addMarker",value:function(t,e,n){var i=this,o=t.latitude,r=t.longitude,a=t.location_type,s=this.ui.popupContent(t),c=new mapboxgl.Popup({offset:25}).setHTML(s),l=new mapboxgl.Marker({element:this.locationIcon(a,[r,o],t.id,e,n)}).setLngLat([r,o]).setPopup(c).addTo(this.clientMap);l.category=a,l.setVisible=function(e){var n=i.widget.find("#marker-".concat(t.id));e?n.show():n.hide()},this.neighborhoodMarkers.push(l)}},{key:"flyToStore",value:function(t){var e=t.longitude,n=t.latitude;this.map.flyTo({center:[e,n]})}},{key:"createPopUp",value:function(t){this.removePopups(),new mapboxgl.Popup({offset:25}).setLngLat([t.longitude,t.latitude]).setHTML(this.ui.popupContent(t)).addTo(this.map)}},{key:"removePopups",value:function(){var t=document.getElementsByClassName("mapboxgl-popup")[0];t&&t.parentNode.removeChild(t)}},{key:"setBounds",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.getMapBounds();this.pointsOfInterest.forEach((function(i,o){var r=t.neighborhoodMarkers[o];t.activeCategories.includes(r.category)||e?(r.setVisible(!0),n.extend(t.getMakerPosition(r))):r.setVisible(!1)}));var i=$(window).width()<=400?11:16,o={maxZoom:i,padding:100};this.map.fitBounds(n,o)}},{key:"resize",value:function(){var t=Math.min(800,Math.max(.75*this.canvas.width()+30,200));this.canvas.css({height:t}),this.widget.removeClass("small large"),this.widget.addClass(this.ui.mqClass)}},{key:"setMapGeocode",value:function(){var t="".concat(this.streetAddress,", ").concat(this.cityStateZip);return G5.mapBoxGlApi.getLatLng(t)}},{key:"existingCategories",get:function(){if(this.cachedExistingCategories.length)return this.cachedExistingCategories;var e=t(new Set(this.pointsOfInterest.map((function(t){return t.location_type})))),n=Object.keys(this.categories).filter((function(t){return e.includes(t)}));return this.cachedExistingCategories=n,n}},{key:"observeMapResize",value:function(t){var e=this,i=this.canvas[0];new ResizeObserver((function(i){var o,r=function(t,e){var i;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=n(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var o=0,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return s=t.done,t},e:function(t){c=!0,a=t}
1,f:function(){try{s||null==i.return||i.return()}finally{if(c)throw a}}}}(i);try{for(r.s();!(o=r.n()).done;){o.value.contentBoxSize&&e.resize(),t.resize()}}catch(t){r.e(t)}finally{r.f()}})).observe(i)}},{key:"clientMap",get:function(){return this.map||(this.map=new mapboxgl.Map({container:"".concat(this.widgetId,"-map"),style:"".concat(this.mapboxStyles,"?optimize=true"),center:this.coordinates,zoom:this.mapZoom||16,attributionControl:!1,scrollZoom:!1}),new MapboxEnhancements(this.map),this.observeMapResize(this.map)),this.map}}]),e}();G5.loadWidgetConfigs(".neighborhood-map-plus .config",c)},518:function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var e=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.configs=t,this.widget=$("#".concat(this.configs.widgetId)),this.initForm()}var n,i,o;return n=e,(i=[{key:"initForm",value:function(){this.form=this.widget.find(".social-links-contact-form"),this.hideForm(),this.configs.showContactForm&&(this.setFormListener(),this.setExitListener(),this.changeFormId())}},{key:"changeFormId",value:function(){var t=this;$(window).on("G5FormRendered",(function(){t.checkFormExists=setInterval(t.changeIds.bind(t),100)}))}},{key:"changeIds",value:function(){var t=this,e=['input:not(".form-field input")','textarea:not(".form-field textarea")','select:not(".form-field select")'].join(", ");this.widget.find(".g5-enhanced-form form").length&&(this.changedFormId||(this.widget.find(".g5-enhanced-form .form-field").each((function(e,n){t.changeG5FieldId(n)})),this.widget.find(e).each((function(e,n){t.changeNonG5FieldId(n)})),this.changeLeadContactFormID(),this.changedFormId=!0),clearInterval(this.checkFormExists))}},{key:"changeG5FieldId",value:function(t){var e=$(t).find("input, textarea, select").first(),n=e.attr("id");if(n){var i=n+"-cis";e.attr("id",i),$(t).find("label").attr("for",i)}}},{key:"changeNonG5FieldId",value:function(t){var e=$(t).hasClass("g-recaptcha-response")?null:$(t).attr("id");e&&$(t).attr("id",e+"-cis")}},{key:"changeLeadContactFormID",value:function(){this.widget.find(".g5-enhanced-form form #resident-info").attr("id","resident-info-CIS-widget"),this.toggleResidentInfo()}},{key:"toggleResidentInfo",value:function(){$("#p-relationship-cis").change((function(){"Self"==$(this).val()?($("#resident-info-CIS-widget").hide(),$("#p-resident-first-name").attr("novalidate","novalidate"),$("#p-resident-last-name").attr("novalidate","novalidate"),$("#p-resident-first-name").prop("required",!1),$("#p-resident-last-name").prop("required",!1),$("#p-resident-first-name").val(""),$("#p-resident-last-name").val("")):($("#resident-info-CIS-widget").show(),$("#p-resident-first-name").removeAttr("novalidate"),$("#p-resident-last-name").removeAttr("novalidate"),$("#p-resident-first-name").prop("required",!0),$("#p-resident-last-name").prop("required",!0))}))}},{key:"setExitListener",value:function(){var t=this;return this.widget.on("click",".close-btn",(function(){return t.hideForm(),!1}))}},{key:"setFormListener",value:function(){var t=this;return this.widget.on("click",".toggle-form",(function(){return t.form.hasClass("active")?t.hideForm():t.showForm(),!1}))}},{key:"showForm",value:function(){this.form.removeClass("inactive"),this.form.addClass("active"),this.form.fadeIn()}},{key:"hideForm",value:function(){this.form.removeClass("active"),this.form.addClass("inactive"),this.form.fadeOut()}}])&&t(n.prototype,i),o&&t(n,o),e}();G5.loadWidgetConfigs(".social-links-v2 .config",e)}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var r=e[i]={exports:{}};return t[i](r,r.exports,n),r.exports}n(799),n(48),n(554),n(180),n(61),n(355),n(774),n(144);n(518)}();
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.