1function _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray(e,r)||_nonIterableRest()}function _nonIterableRest(){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 _unsupportedIterableToArray(e,r){var t;if(e)return"string"==typeof e?_arrayLikeToArray(e,r):"Map"===(t="Object"===(t={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function _iterableToArrayLimit(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a,i,c=[],l=!0,s=!1;try{if(a=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=a.call(t)).done)&&(c.push(n.value),c.length!==r);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _regenerator(){var g,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",t=e.toStringTag||"@@toStringTag";function n(e,r,t,n){var o,a,i,c,l,s,u,f,p,r=r&&r.prototype instanceof y?r:y,r=Object.create(r.prototype);return _regeneratorDefine2(r,"_invoke",(o=e,a=t,u=n||[],f=!1,p={p:s=0,n:0,v:g,a:d,f:d.bind(g,4),d:function(e,r){return i=e,c=0,l=g,p.n=r,h}},function(e,r,t){if(1<s)throw TypeError("Generator is already running");for(f&&1===r&&d(r,t),c=r,l=t;(m=c<2?g:l)||!f;){i||(c?c<3?(1<c&&(p.n=-1),d(c,l)):p.n=l:p.v=l);try{if(s=2,i){if(m=i[e=c?e:"next"]){if(!(m=m.call(i,l)))throw TypeError("iterator result is not an object");if(!m.done)return m;l=m.value,c<2&&(c=0)}else 1===c&&(m=i.return)&&m.call(i),c<2&&(l=TypeError("The iterator does not provide a '"+e+"' method"),c=1);i=g}else if((m=(f=p.n<0)?l:o.call(a,p))!==h)break}catch(e){i=g,c=1,l=e}finally{s=1}}return{value:m,done:f}}),!0),r;function d(e,r){for(c=e,l=r,m=0;!f&&s&&!t&&m<u.length;m++){var t,n=u[m],o=p.p,a=n[2];3<e?(t=a===r)&&(l=n[(c=n[4])?5:c=3],n[4]=n[5]=g):n[0]<=o&&((t=e<2&&o<n[1])?(c=0,p.v=r,p.n=n[1]):o<a&&(t=e<3||n[0]>r||a<r)&&(n[4]=e,n[5]=r,p.n=a,c=0))}if(t||1<e)return h;throw f=!0,r}}var h={};function y(){}function o(){}function a(){}var m=Object.getPrototypeOf,e=[][r]?m(m([][r]())):(_regeneratorDefine2(m={},r,function(){return this}),m),i=a.prototype=y.prototype=Object.create(e);function c(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,_regeneratorDefine2(e,t,"GeneratorFunction")),e.prototype=Object.create(i),e}return _regeneratorDefine2(i,"constructor",o.prototype=a),_regeneratorDefine2(a,"constructor",o),_regeneratorDefine2(a,t,o.displayName="GeneratorFunction"),_regeneratorDefine2(i),_regeneratorDefine2(i,t,"Generator"),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:n,m:c}})()}function _regeneratorDefine2(e,r,t,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}(_regeneratorDefine2=function(e,r,t,n){function o(r,t){_regeneratorDefine2(e,r,function(e){return this._invoke(r,t,e)})}r?a?a(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t:(o("next",0),o("throw",1),o("return",2))})(e,r,t,n)}function asyncGeneratorStep(e,r,t,n,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void t(e)}c.done?r(l):Promise.resolve(l).then(n,o)}function _asyncToGenerator(c){return function(){var e=this,i=arguments;return new Promise(function(r,t){var n=c.apply(e,i);function o(e){asyncGeneratorStep(n,r,t,o,a,"next",e)}function a(e){asyncGeneratorStep(n,r,t,o,a,"throw",e)}o(void 0)})}}(()=>{var v={profiles:'<i class="fa-regular fa-face-smile"></i>',branches:'<i class="fa-regular fa-user-hair"></i>',locations:'<i class="fa-regular fa-location-dot"></i>'};function b(e){return String(e||"").replace(/[&<>"']/g,function(e){return{"&":"&","<":"<",">":">",'"':""","'":"'"}[e]})}function e(o){var s,u,f,p,a,r,i,e,t=o.querySelector('.nhm-input, input[type="search"]'),d=o.querySelector(".nhm-autocomplete"),l=o.querySelector(".nhm-use-my-location");function c(){if((!r||!i)&&window.google&&google.maps&&google.maps.places&&google.maps.places.PlacesService&&google.maps.places.AutocompleteService)try{r=new google.maps.places.PlacesService(document.createElement("div")),i=new google.maps.places.AutocompleteService}catch(e){i=r=null}}function g(e,r){var t,r=1<arguments.length&&void 0!==r&&r,n=o.querySelector(".nhm-actions");
1n&&((t=n.querySelector(".nhm-geo-notice"))||((t=document.createElement("div")).className="nhm-geo-notice alert alert-warning mt-3 p-2 small",n.appendChild(t)),t.innerHTML=e?String(e)+(r?' <a href="#" class="nhm-geo-reload">Reload</a>':""):"",r)&&(n=t.querySelector(".nhm-geo-reload"))&&n.addEventListener("click",function(e){e.preventDefault(),window.location.reload()})}function n(e){s.length&&(u=(u+e+s.length)%s.length,d.querySelectorAll('[role="option"]').forEach(function(e,r){e.classList.toggle("is-active",r===u),r===u&&e.scrollIntoView({block:"nearest"})}))}function h(){d.hidden=!0,d.innerHTML="",s=[],u=-1}function y(e){if(c(),r)try{r.getDetails({placeId:e,fields:["geometry","formatted_address"]},function(e,r){var t,n;"OK"===r&&e&&e.geometry&&e.geometry.location&&(r=e.geometry.location.lat(),t=e.geometry.location.lng(),n=p.listing&&p.listing.profiles_url||"/",(n=new URL(n,window.location.origin)).searchParams.set("lat",r),n.searchParams.set("lng",t),e.formatted_address&&n.searchParams.set("address",e.formatted_address),location.href=n.toString())})}catch(e){}}function m(e){return c(),t=e,n=null,new Promise(function(r){if(c(),i)try{var e={input:t,componentRestrictions:{country:a}};n&&(e.types=[n]),i.getPlacePredictions(e,function(e){r(Array.isArray(e)?e:[])})}catch(e){r([])}else r([])}).then(function(e){return(Array.isArray(e)?e:[]).map(function(e){var r;return{type:"location",id:e.place_id,label:e.description||(null==(r=e.structured_formatting)?void 0:r.main_text)||"",sub:(null==(r=e.structured_formatting)?void 0:r.secondary_text)||"",place_id:e.place_id}}).filter(function(e){return e.label})});var t,n}t&&d&&(s=[],u=-1,f=0,p=window.UNIFIED_SEARCH_CFG||{},a=p.places&&p.places.country?String(p.places.country).toLowerCase():"us",i=r=null,t.addEventListener("input",function(){return e(t.value.trim())}),t.addEventListener("keydown",function(e){d.hidden||("ArrowDown"===e.key?(e.preventDefault(),n(1)):"ArrowUp"===e.key?(e.preventDefault(),n(-1)):"Enter"!==e.key?"Escape"===e.key&&h():(e.preventDefault(),(e=s[u]||s[0])&&("profile"===e.type&&e.url?location.href=e.url:"branch"===e.type&&e.branch_url?location.href=e.branch_url:"branch"===e.type&&e.listing_url?location.href=e.listing_url:"location"===e.type&&e.place_id&&y(e.place_id))))}),document.addEventListener("click",function(e){o.contains(e.target)||h()}),l&&l.addEventListener("click",function(){navigator.geolocation&&(l.disabled=!0,navigator.geolocation.getCurrentPosition((()=>{var r=_asyncToGenerator(_regenerator().m(function e(r){var t,n,o,a,i,c;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,t=r.coords.latitude,n=r.coords.longitude,o="",window.google&&google.maps&&google.maps.Geocoder)return e.p=1,a=new google.maps.Geocoder,e.n=2,a.geocode({location:{lat:t,lng:n}});e.n=4;break;case 2:a=e.v,i=a.results,Array.isArray(i)&&i[0]&&i[0].formatted_address&&(o=i[0].formatted_address),e.n=4;break;case 3:e.p=3,0;case 4:i=p.listing&&p.listing.profiles_url||"/",(c=new URL(i,window.location.origin)).searchParams.set("lat",t),c.searchParams.set("lng",n),o&&c.searchParams.set("address",o),location.href=c.toString();case 5:return e.p=5,l.disabled=!1,g(""),e.f(5);case 6:return e.a(2)}},e,null,[[1,3],[0,,5,6]])}));return function(e){return r.apply(this,arguments)}})(),function(e){l.disabled=!1;e=e&&e.code||0;1===e?g("Location blocked. Enable in your browser's site settings, then",!0):g(3===e?"Location timed out. Try again or enter a place.":"Unable to get location. Enter a place instead.")},{enableHighAccuracy:!0,timeout:8e3,maximumAge:6e4}))}),e=function(n){var o,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:160;return function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];clearTimeout(o),o=setTimeout(function(){return n.apply(void 0,r)},a)}}((()=>{var r=_asyncToGenerator(_regenerator().m(function e(t){var n,o,a,i,c,l;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(!t||t.length<2)return h(),e.a(2);e.n=1;break;case 1:n=++f,o=p.limits&&p.limits.per_group||3,a=p.rest&&p.rest.endpoint?"".concat(p.rest.endpoint,"?q=").concat(encodeURIComponent(t),"&limit=").concat(o,"&_cb=").concat(Date.now()):null,a=a?fetch(a,{credentials:"same-origin"}).then((()=>{var r=_asyncToGenerator(_regenerator().m(function e(r){var t,n;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:if(r.ok){e.n=1;break}return console.warn("AUS search REST error",r.status,r.statusText),e.a(2,{profiles:[],branches:[]});case 1:return e.n=2,r.text();case 2:return t=e.v,e.p=3,e.a(2,JSON.parse(t));case 4:return e.p=4,n=e.v,console.warn("AUS search parse error",n,t&&t.slice?t.slice(0,180):""),e.a(2,{profiles:[],branches:[]})}},e,null,[[3,4]])}));return function(e){return r.apply(this,arguments)}})()).catch(function(e){return console.warn("AUS search fetch failed",e),{profiles:[],branches:[]}}):Promise.resolve({profiles:[],branches:[]});var r=!(!p||!p.hasPlaces||!(window.google&&google.maps&&google.maps.places&&google.maps.places.AutocompleteService));
1return i=r?m(t):Promise.resolve([]),e.n=2,Promise.all([a,i]);case 2:if(a=e.v,i=_slicedToArray(a,2),c=i[0],l=i[1],n!==f)return e.a(2);e.n=3;break;case 3:((r,i)=>{s=[];var e=[{key:"locations",title:"Address",icon:v.locations,show:!(null==(e=r.locations)||!e.length)},{key:"profiles",title:"Loan Officers",icon:v.profiles,show:!(null==(e=r.profiles)||!e.length)},{key:"branches",title:"Branches",icon:v.branches,show:!(null==(e=r.branches)||!e.length)}].filter(function(e){return e.show});e.length?(e=e.map(function(a){var e=(r[a.key]||[]).map(function(e){var r=s.push(e)-1,t=e.thumb?'<img class="nhm-avatar" src="'.concat(b(e.thumb),'" alt="">'):'<span class="nhm-ic">'.concat(a.icon,"</span>"),n=e.sub?'<div class="nhm-sub">'.concat(b(e.sub),"</div>"):"",o=e.place_id?' data-place="'.concat(b(e.place_id),'"'):"";return'\n <div class="nhm-item" role="option" data-i="'.concat(r,'"').concat(o,">\n ").concat(t,'\n <div class="nhm-label">').concat((r=e.label,!(o=i)||-1===(t=(r||"").toLowerCase().indexOf(o.toLowerCase()))?b(r):b(r.slice(0,t))+"<strong>"+b(r.slice(t,t+o.length))+"</strong>"+b(r.slice(t+o.length)))," ").concat(n,"\n </div>\n </div>")}).join("");return'\n <div class="nhm-group">\n <div class="nhm-head">'.concat(a.title,"</div>\n ").concat(e,"\n </div>")}).join(""),d.innerHTML=e,d.hidden=!1,u=-1,d.querySelectorAll(".nhm-item").forEach(function(r){r.addEventListener("mousedown",function(e){e.preventDefault();e=+r.getAttribute("data-i"),e=s[e];e&&("profile"===e.type&&e.url?location.href=e.url:"branch"===e.type&&e.branch_url?location.href=e.branch_url:"branch"===e.type&&e.listing_url?location.href=e.listing_url:"location"===e.type&&e.place_id&&y(e.place_id))})})):h()})({locations:(l||[]).slice(0,o),profiles:c.profiles||[],branches:c.branches||[]},t);case 4:return e.a(2)}},e)}));return function(e){return r.apply(this,arguments)}})()))}document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".nhm-search").forEach(e)})})();//# sourceMappingURL=unified-search.min.js.map
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.