090-178-citybankrebuild-dev.azurewebsites.net
Open in
urlscan Pro
23.96.0.52
Public Scan
Submitted URL: http://090-178-citybankrebuild-dev.azurewebsites.net/design-system/assets/vue/js/app.js?cb=98a1da21-64b7-4887-968b-97386100d179
Effective URL: https://090-178-citybankrebuild-dev.azurewebsites.net/design-system/assets/vue/js/app.js?cb=98a1da21-64b7-4887-968b-97386100d179
Submission: On February 05 via api from US — Scanned from US
Effective URL: https://090-178-citybankrebuild-dev.azurewebsites.net/design-system/assets/vue/js/app.js?cb=98a1da21-64b7-4887-968b-97386100d179
Submission: On February 05 via api from US — Scanned from US
Form analysis
0 forms found in the DOMText Content
(function(){var e={8480:function(e,t,n){var o={"./GoogleMap.vue":4253,"./InlineSearchBox.vue":9965,"./LocationFinder.vue":8839,"./LoginForm.vue":8414,"./Modal.vue":4300,"./MortgageCalculator.vue":4035,"./PayMortgageButton.vue":1872,"./RecaptchaInput.vue":2785,"./ReviewCarouselSlide.vue":6482,"./SearchBox.vue":3279,"./SpeedBump.vue":9525,"./SwiperCarousel.vue":5951,"./TagFilter.vue":8991};function a(e){var t=l(e);return n(t)}function l(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}a.keys=function(){return Object.keys(o)},a.resolve=l,e.exports=a,a.id=8480},2249:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});const o=(e,t=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout((()=>e.apply(void 0,o)),t)}}},5356:function(e,t,n){"use strict";n.d(t,{u:function(){return o},x:function(){return a}});const o=e=>{if(e&&e.length>0){const t=e.replace(/[^0-9]/,"");if(10===t.length)return t.slice(0,3)+"."+t.slice(3,6)+"."+t.slice(-4);if(7===t.length)return t.slice(0,2)+"."+t.slice(-4)}return e},a=e=>{var t=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0});return t.format(e)}},4930:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});const o=e=>{const t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}},3009:function(e,t,n){"use strict";var o=n(821),a=n(9636),l=n(9669),r=n.n(l),i=n(1700),s=n.n(i),c=n(8929),d=n.n(c);const u=n(8480);function m(e){u.keys().forEach((t=>{const n=u(t),o=s()(d()(t.split("/").pop().replace(/\.\w+$/,"")));e.component(o,n.default||n)}))}const p=document.querySelectorAll(".vue-app"),v=e=>{const t=(0,o.createApp)({});r().get("/get/gtm-key").then((e=>{var n=e.data;n.length&&t.use((0,a.createGtm)({id:n,defer:!0,compatibility:!0,debug:!1}))})).catch((e=>{console.log(e)})).finally((()=>{t.config&&(t.config.devtools=!0,t.config.productionTip=!1,t.config.window=window),m(t),t.mount(e)}))};p.forEach(((e,t)=>{if(v(e),t===p.length-1){const e=new Event("vue-initialized"),t=document.querySelector("body");t.dispatchEvent(e)}})),document.addEventListener("DOMContentLoaded",(function(){"undefined"!==typeof $telerik&&$telerik.$(document).on("modalDialogClosed",(()=>{setTimeout((()=>{const e=document.querySelectorAll(".vue-app");e.forEach((e=>{e.hasAttribute("data-v-app")||v(e)}))}),2e3)}))}))},4253:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var o=n(821);const a=["id"];function l(e,t,n,l,r,i){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"ls-google-map",id:`ls-map-${l.inputId}`,"aria-hidden":"true"},null,8,a)}var r=n(3311),i=n(5934),s={name:"GoogleMap",props:{apiKey:{type:String,required:!0},center:{type:Object,required:!0},initialMarker:{type:Boolean,required:!1,default:!0},markers:{type:Array,required:!1,default:()=>[]},zoom:{type:Number,required:!1,default:6,validator:e=>e>=0&&e<=21},icon:{type:Object,required:!1,default:()=>({path:"M46,5.1v35.8c0,2.9-2.2,5.1-5.1,5.1H30.7l-7.5,12l-7.5-12H5.1C2.2,46,0,43.7,0,40.9V5.1C0,2.2,2.2,0,5.1,0h35.8C43.8, 0, 46, 2.2, 46, 5.1z",fillColor:"#EE3124",strokeWeight:0,fillOpacity:1,labelOrigin:{x:22,y:22}})},enableIconEvents:{type:Boolean,required:!1,default:!0}},setup(e,{emit:t}){const n=(0,o.ref)((0,i.Z)());let a;const l=new r.aN({apiKey:e.apiKey,version:"weekly",libraries:["places"]}),s=(0,o.reactive)({center:e.center,disableDefaultUI:!0,zoom:9,maxZoom:9}),c=()=>{l.load().then((()=>new google.maps.Map(document.getElementById(`ls-map-${n.value}`),s))).then((t=>{a=t,e.initialMarker&&p({position:e.center}),e.markers.length>0&&v()})).catch((e=>{console.error(e)}))},d=()=>{if(a){const t=new google.maps.LatLngBounds;for(var e=0;e<m.length;e++)t.extend(m[e].position);a.fitBounds(t),a.getZoom()>17&&a.setZoom(12)}},u=()=>{if(a){const t=new google.maps.LatLng(e.center);a.panTo(t),a.setZoom(11)}};(0,o.watch)((()=>e.center),((e,t)=>{e.lat===t.lat&&e.lng===t.lng||u()}));const m=[],p=(n,o=null)=>{const l=o?g(o):null,r=new google.maps.Marker({...n,icon:e.icon,title:n.locationInfo?n.locationInfo.title:"",label:l,optimized:!1,map:a,zIndex:o});n.locationInfo&&e.enableIconEvents&&(r.addListener("click",(()=>t("setActive",r.id))),r.addListener("mouseover",(()=>f(r))),r.addListener("mouseout",(()=>h(r)))),m.push(r)},v=()=>{m.forEach((e=>{e.setMap(null)})),m.length=0,e.markers.forEach(((e,t)=>{p(e,t+1)})),m.length&&d()},g=e=>({background:"#EE3124",color:"#fff",fontSize:"26px",text:`${e}`,transition:"0.2s linear all"}),f=e=>{const t={path:"M46,5.1v35.8c0,2.9-2.2,5.1-5.1,5.1H30.7l-7.5,12l-7.5-12H5.1C2.2,46,0,43.7,0,40.9V5.1C0,2.2,2.2,0,5.1,0h35.8C43.8, 0, 46, 2.2, 46, 5.1z",fillColor:"#b12722",strokeWeight:0,fillOpacity:1,scale:1.1,labelOrigin:{x:22,y:22}};e.label.fontSize="32px",e.label.fontWeight="bold",e.zIndex+=100,e.setIcon(t)},h=t=>{t.label.fontSize="26px",t.label.fontWeight="normal",t.zIndex-=100,t.setIcon(e.icon)};return(0,o.watch)((()=>e.markers),(()=>v())),(0,o.onMounted)((()=>{c()})),{inputId:n}}},c=n(3744);const d=(0,c.Z)(s,[["render",l]]);var u=d},9965:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return N}});var o=n(821);const a={class:"city-bank__search-box city-bank__search-box--inline"},l={class:"d-flex justify-content-end"},r=(0,o.createElementVNode)("label",{class:"visually-hidden",for:"searchInput"},"Search input",-1),i={class:"heroicon-svg",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},s=(0,o.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},null,-1),c=[s],d={class:"spinner-border text-white",role:"status"},u=(0,o.createElementVNode)("span",{class:"visually-hidden"},"Loading...",-1),m=[u],p={class:"list-unstyled m-0"},v=["innerHTML"],g=(0,o.createElementVNode)("div",{class:"d-flex justify-content-center"},null,-1);function f(e,t,n,s,u,f){return(0,o.openBlock)(),(0,o.createElementBlock)("div",a,[(0,o.createElementVNode)("div",l,[r,(0,o.withDirectives)((0,o.createElementVNode)("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=e=>s.searchInput=e),placeholder:"Search",class:(0,o.normalizeClass)(["form-control",{active:s.isActive}]),id:"searchInput",name:"searchInput"},null,2),[[o.vModelText,s.searchInput]]),(0,o.createElementVNode)("a",{href:"javascript:void(0)",role:"button",onClick:t[1]||(t[1]=(...e)=>s.handleSearchCLick&&s.handleSearchCLick(...e)),"aria-label":"Close Search",class:(0,o.normalizeClass)([{active:s.isActive},"search-close__button btn btn-primary p-1 px-3"])},[(0,o.withDirectives)(((0,o.openBlock)(),(0,o.createElementBlock)("svg",i,c,512)),[[o.vShow,!s.loading]]),(0,o.withDirectives)((0,o.createElementVNode)("div",d,m,512),[[o.vShow,s.loading]])],2)]),(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["search-modal__inner",{active:s.isInnerActive}])},[(0,o.withDirectives)((0,o.createElementVNode)("ul",p,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(s.results,((e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("li",{key:`search-result__${t}`},[(0,o.createElementVNode)("div",{innerHTML:e},null,8,v)])))),128))],512),[[o.vShow,!s.loading]]),g],2)])}var h=n(9669),y=n.n(h),k=n(2249),b=n(9636),E={props:{url:{type:String,required:!0},id:{type:String,required:!0},index:{type:String,required:!0},fields:{type:String,required:!0},language:{type:String,required:!0}},setup(e){console.log(e);const t=(0,o.ref)([]),n=(0,o.ref)(""),a=(0,o.ref)(!1),l=(0,o.ref)(!1),r=(0,o.computed)((()=>t.value.length>0)),i="modal-lg",s="fade",c={backdrop:!1,keyboard:!0,focus:!1},d=(0,b.useGtm)(),u=e=>{},m=()=>{t.value=[]},p=()=>{t.value=[],n.value="",l.value=!1},v=()=>{l.value=!0};let g;const f=(e,t=2e3)=>{g&&clearTimeout(g),g=setTimeout((()=>d.trackEvent(e)),t)},h=(0,k.x)((n=>{const o=`${e.url}?IndexName=${e.index}&SuggestionFields=${e.fields}&Text=${n}&Language=${e.language}&SiteId=${e.id}`;y().get(o).then((e=>{e.data.Suggestions.length?t.value=e.data.Suggestions:t.value=["<p>No results match your search query, please try again.</p>"],a.value=!1,f({event:"search",category:"Website search",action:document.title,label:n,value:e.data.Suggestions.length,noninteraction:!1})})).catch((e=>{console.log(e),a.value=!1}))})),E=e=>{e.length&&(a.value=!0,h(e))};return(0,o.watchEffect)((()=>E(n.value))),(0,o.onMounted)((()=>{const e=document.querySelector(".city-bank__search-box");document.addEventListener("click",(t=>{const n=t.target instanceof Element&&e.contains(t.target);n||(t.stopPropagation(),p())}))})),{results:t,searchInput:n,search:E,openModal:m,closeModal:p,loading:a,dialogClass:i,modalClass:s,handleMount:u,options:c,handleSearchCLick:v,isActive:l,isInnerActive:r}}},w=n(3744);const V=(0,w.Z)(E,[["render",f]]);var N=V},8839:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Q}});var o=n(821);const a={class:"ls-location-finder"},l={class:"ls-location-finder__list"},r={key:0},i=(0,o.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"24",height:"24",viewBox:"0 0 24 24"},[(0,o.createElementVNode)("g",{transform:"translate(15 -4.094) rotate(45)"},[(0,o.createElementVNode)("path",{id:"Path_929","data-name":"Path 929",d:"M9.259,16.461l9.259,2.058L9.259,0,0,18.518Zm0,0V8.23",fill:"none",stroke:"#ee3124","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"})])],-1),s=[i],c=(0,o.createElementVNode)("button",{type:"submit",class:"btn btn-primary"}," Search ",-1),d={key:0,"aria-live":"polite",style:{"font-size":"14px",color:"red"}},u={key:1,"aria-live":"polite",style:{"font-size":"14px",color:"red"}},m={key:2,class:"ls-location-finder__list--locations"},p=["onClick"],v={class:"ls-location__number"},g={class:"h3"},f={key:0},h=(0,o.createElementVNode)("br",null,null,-1),y=(0,o.createElementVNode)("br",null,null,-1),k=["href"],b={key:3,class:"h4"},E={key:1,class:"d-flex flex-column justify-content-start location-detail__overlay"},w=(0,o.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"heroicon-svg me-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[(0,o.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 16l-4-4m0 0l4-4m-4 4h18"})],-1),V={class:"details-img__box"},N={class:"row mb-5 px-3 px-lg-0"},C={class:"col-7"},x={class:"h3"},S={key:0},B=(0,o.createElementVNode)("br",null,null,-1),M=(0,o.createElementVNode)("br",null,null,-1),L=["href"],_=["innerHTML"],I={class:"col-4 text-end"},D=["href"],T=(0,o.createStaticVNode)('<svg xmlns="http://www.w3.org/2000/svg" width="28.284" height="28.284" viewBox="0 0 28.284 28.284"><g id="Group_1207" data-name="Group 1207" transform="translate(0 0)"><path id="Rectangle_1054" data-name="Rectangle 1054" d="M2,2V18H18V2H2M1,0H19a1,1,0,0,1,1,1V19a1,1,0,0,1-1,1H1a1,1,0,0,1-1-1V1A1,1,0,0,1,1,0Z" transform="translate(14.143 0) rotate(45)" fill="#0093b2"></path><g id="Group_1206" data-name="Group 1206" transform="translate(11.424 9.465)"><path id="Path_781" data-name="Path 781" d="M16013.66,3465.138a1,1,0,0,1-1-1v-5.709a1,1,0,0,1,1-1h7.234a1,1,0,0,1,0,2h-6.234v4.709A1,1,0,0,1,16013.66,3465.138Z" transform="translate(-16013.66 -3455.735)" fill="#0093b2"></path><path id="Path_782" data-name="Path 782" d="M16017.145,3462.431a1,1,0,0,1-.707-1.707l2.014-2.014-2.014-2.014a1,1,0,1,1,1.414-1.414l2.721,2.721a1,1,0,0,1,0,1.414l-2.721,2.721A1,1,0,0,1,16017.145,3462.431Z" transform="translate(-16012.194 -3455.989)" fill="#0093b2"></path></g></g></svg><br>',2),P={class:"types-wrapper mt-5"},q={class:"detail-types text-nowrap"},A={class:"ps-3 ps-lg-0"},O=["href"],H={class:"ls-location-finder__map","aria-hidden":"true"},j=["innerHTML"];function U(e,t,n,i,U,$){const R=(0,o.resolveComponent)("tag-filter"),z=(0,o.resolveComponent)("google-map"),Z=(0,o.resolveComponent)("modal");return(0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.createElementVNode)("div",a,[(0,o.createElementVNode)("div",l,[i.listView?((0,o.openBlock)(),(0,o.createElementBlock)("div",r,[(0,o.createElementVNode)("form",{class:"input-group input-group--short",onSubmit:t[2]||(t[2]=(0,o.withModifiers)(((...e)=>i.searchLocation&&i.searchLocation(...e)),["prevent"]))},[(0,o.createElementVNode)("button",{class:"btn btn-light border py-2 px-3",type:"button","aria-label":"Get location",onClick:t[0]||(t[0]=(...e)=>i.getLocation&&i.getLocation(...e))},s),(0,o.withDirectives)((0,o.createElementVNode)("input",{type:"text",class:"form-control mb-0",placeholder:"Search City, State or Zip Code","onUpdate:modelValue":t[1]||(t[1]=e=>i.searchInput=e),"aria-label":"Search locations by address or zip code"},null,512),[[o.vModelText,i.searchInput]]),c],32),i.locationError?((0,o.openBlock)(),(0,o.createElementBlock)("div",d," Invalid location. Please try again. ")):(0,o.createCommentVNode)("",!0),i.userLocationError?((0,o.openBlock)(),(0,o.createElementBlock)("div",u," Unable to get location. Please type in your location. ")):(0,o.createCommentVNode)("",!0),(0,o.createVNode)(R,{options:i.types,class:"mb-4",onOptionClicked:t[3]||(t[3]=e=>i.typeClickedHandler(e)),"filter-title":"Locations Filters"},null,8,["options"]),i.visibleLocations.length>0?((0,o.openBlock)(),(0,o.createElementBlock)("div",m,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(i.visibleLocations,((e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("a",{class:"ls-location border-bottom",key:`location-${t}`,href:"javascript:void(0)",onClick:t=>i.openDetails(e.Id)},[(0,o.createElementVNode)("p",v,(0,o.toDisplayString)(t+1),1),(0,o.createElementVNode)("p",g,(0,o.toDisplayString)(e.Title),1),e.HasAddress?((0,o.openBlock)(),(0,o.createElementBlock)("address",f,[(0,o.createTextVNode)((0,o.toDisplayString)(e.Street),1),h,(0,o.createTextVNode)(" "+(0,o.toDisplayString)(e.City)+", "+(0,o.toDisplayString)(e.State)+" "+(0,o.toDisplayString)(e.Zip),1),y,e.Phone.length?((0,o.openBlock)(),(0,o.createElementBlock)("a",{key:0,href:`tel:${e.Phone.replace(/[^0-9]/,"")}`},(0,o.toDisplayString)(i.formatPhoneNumber(e.Phone)),9,k)):(0,o.createCommentVNode)("",!0)])):(0,o.createCommentVNode)("",!0)],8,p)))),128))])):((0,o.openBlock)(),(0,o.createElementBlock)("p",b,"No locations match the current filter."))])):(0,o.createCommentVNode)("",!0),i.listView?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",E,[(0,o.createElementVNode)("button",{onClick:t[4]||(t[4]=e=>i.closeDetails()),class:"bg-primary border-0 text-white py-2 px-3 w-100 text-start"},[w,(0,o.createTextVNode)(" Back to Branch List ")]),(0,o.createElementVNode)("div",V,[i.activeLocation.ImageUrl?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:"detail-img",style:(0,o.normalizeStyle)(`background-image: url('${i.activeLocation.ImageUrl}')`)},null,4)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",N,[(0,o.createElementVNode)("div",C,[(0,o.createElementVNode)("p",x,(0,o.toDisplayString)(i.activeLocation.Title),1),i.activeLocation.HasAddress?((0,o.openBlock)(),(0,o.createElementBlock)("address",S,[(0,o.createTextVNode)((0,o.toDisplayString)(i.activeLocation.Street),1),B,(0,o.createTextVNode)(" "+(0,o.toDisplayString)(i.activeLocation.City)+", "+(0,o.toDisplayString)(i.activeLocation.State)+" "+(0,o.toDisplayString)(i.activeLocation.Zip),1),M,i.activeLocation.Phone?((0,o.openBlock)(),(0,o.createElementBlock)("a",{key:0,href:`tel:${i.activeLocation.Phone.replace(/[^0-9]/,"")}`},(0,o.toDisplayString)(i.formatPhoneNumber(i.activeLocation.Phone)),9,L)):(0,o.createCommentVNode)("",!0)])):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("span",{innerHTML:i.activeLocation.Hours},null,8,_)]),(0,o.createElementVNode)("div",I,[(0,o.createElementVNode)("a",{href:`https://maps.google.com?saddr=Current+Location&daddr=${i.activeLocation.Latitude},${i.activeLocation.Longitude}`,target:"_blank",class:"direction-link text-center d-inline-block mt-4 pt-3"},[T,(0,o.createTextVNode)(" Directions ")],8,D),(0,o.createElementVNode)("div",P,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(i.activeLocation.Types,((e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("p",q,(0,o.toDisplayString)(e),1)))),256))])])]),(0,o.createElementVNode)("div",A,[(0,o.createElementVNode)("a",{href:n.detailsUrl+i.activeLocation.Url}," See Branch Details ",8,O)])]))]),(0,o.createElementVNode)("div",H,[(0,o.createVNode)(z,{apiKey:n.apiKey,initialMarker:!1,center:{lat:i.latitude,lng:i.longitude},markers:i.markers,zoom:i.currentZoom,onSetActive:t[5]||(t[5]=e=>i.openDetails(e))},null,8,["apiKey","center","markers","zoom"])])]),(0,o.createVNode)(Z,{modalUrl:i.modalUrl,leaveButtonClasses:i.additionalClass,dialogClasses:i.dialogClass,onModalMounted:t[6]||(t[6]=e=>i.handleMount(e)),onStayLinkClicked:i.closeModal,onLeaveLinkClicked:i.closeModal,newWindow:!0},{default:(0,o.withCtx)((()=>[(0,o.createElementVNode)("div",{innerHTML:i.messageHtml},null,8,j)])),_:1},8,["modalUrl","leaveButtonClasses","dialogClasses","onStayLinkClicked","onLeaveLinkClicked"])],64)}var $=n(9669),R=n.n($),z=n(5356);const Z=(e,t=!1)=>(n,o)=>{const a=n[e]?n[e]:null,l=o[e]?o[e]:null;if(t){if(l<a)return-1;if(l>a)return 1}else{if(a<l)return-1;if(a>l)return 1}return 0};var F=n(8991),G=n(4253),K=n(4300),W={components:{TagFilter:F["default"],GoogleMap:G["default"],Modal:K["default"]},name:"LocationFinder",props:{apiKey:{type:String,required:!0},geocodeApiKey:{type:String,required:!0},center:{type:Object||null,required:!0},detailsUrl:{type:String,required:!0},locations:{type:Array||null,required:!0},zoom:{type:Number,required:!1,default:10}},setup(e){const t=(0,o.ref)(""),n=(0,o.ref)(""),a=(0,o.ref)(!0),l=(0,o.ref)(!1),r=(0,o.ref)(!1),i=(0,o.ref)({}),s=(0,o.ref)(0);let c;const d=()=>{n.value=t.value},u=()=>{clearTimeout(c),c=setTimeout(d,500)},m="https://maps.googleapis.com/maps/api/geocode/json",p="AIzaSyAUjSn4klShVGvlkAfsLgMnBRopbmdsG3g",v=(0,o.reactive)([]),g=(0,o.reactive)([]),f=e=>{g.length=0,e.forEach((e=>{g.push({...e})}))},h=e.locations.flatMap((e=>e.Types));h.forEach((e=>{v.map((e=>e.value)).includes(e)||v.push({name:e,value:e})}));const y=(0,o.ref)(e.center.lat),k=(0,o.ref)(e.center.lng),b=(0,o.ref)(e.zoom),E=(0,o.computed)((()=>M.value.map((e=>({id:e.Id,locationInfo:{city:e.City,hours:e.Hours,imageAlt:e.ImageAlt,imageUrl:e.ImageUrl,phone:e.Phone,state:e.State,street:e.Street,title:e.Title,zip:e.Zip},position:{lat:e.Latitude,lng:e.Longitude}}))))),w=async e=>{if(e.coords){y.value=e.coords.latitude,k.value=e.coords.longitude;const o=await N(e.coords.latitude,e.coords.longitude);if("OK"===o.data.status){r.value=!1;const{long_name:e}=o.data.results[0].address_components[0];t.value=e,n.value=e,S()}else r.value=!0}},V=()=>{window.navigator&&window.navigator.geolocation&&window.navigator.geolocation.getCurrentPosition(w,(e=>console.error(e)))},N=(e,t)=>{const n=`${m}?latlng=${e},${t}&result_type=postal_code&key=${p}`;return R().get(n)},C=e=>e*Math.PI/180,x=(e,t)=>{const n=3959,o=y.value,a=k.value,l=C(o-e),r=C(a-t),i=C(e),s=C(o),c=Math.sin(l/2)*Math.sin(l/2)+Math.sin(r/2)*Math.sin(r/2)*Math.cos(i)*Math.cos(s),d=2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c));return n*d},S=async()=>{const e=await B(t.value);if("OK"===e.data.status){const{lat:t,lng:n}=e.data.results[0].geometry.location;l.value=!1,y.value=t,k.value=n}else l.value=!0},B=e=>{const t=`${m}?address=${e}&key=${p}`;return R().get(t)},M=(0,o.computed)((()=>{s.value+=1;let t=e.locations.map((e=>({...e,HasAddress:!!(e.Street.length&&e.City.length&&e.State.length),Distance:x(e.Latitude,e.Longitude)})));if(s.value>1&&(t=t.filter((e=>e.Distance<=50))),g.length>0){const e=g.map((e=>e.value));t=t.filter((t=>t.Types&&t.Types.some((t=>e.includes(t)))))}return t.sort(Z("Distance"))})),L=e=>{i.value=M.value.find((t=>t.Id===e)),a.value=!1},_=()=>{a.value=!0,i.value={}},I="offsite-link",D="modal-dialog-centered",T="Please be advised that you are leaving City Bank's website. This link is provided as a courtesy. City Bank does not endorse or control the content of third party websites.",P=(0,o.ref)("");let q;const A=()=>{q&&q.show()},O=()=>{q&&q.hide()},H=e=>{q=e},j=e=>{const t=e.currentTarget;if(t){const n=t.getAttribute("href");!n||n.startsWith("#")||n.includes("javascript:")||t.classList.contains("offsite-link")||n.includes("tel:")||n.includes("mailto:")||t.host!==window.location.host&&(e.preventDefault(),q?(P.value=n,A()):window.location.href=n)}};return(0,o.onUpdated)((()=>{const e=document.querySelectorAll("a");e.forEach((e=>{e.addEventListener("click",j)}))})),{currentZoom:b,formatPhoneNumber:z.u,getLocation:V,latitude:y,longitude:k,markers:E,searchHandler:u,searchInput:t,typeClickedHandler:f,types:v,visibleLocations:M,openDetails:L,listView:a,locationError:l,userLocationError:r,activeLocation:i,closeDetails:_,messageHtml:T,modalUrl:P,additionalClass:I,handleMount:H,closeModal:O,dialogClass:D,searchLocation:S}}},Y=n(3744);const J=(0,Y.Z)(W,[["render",U]]);var Q=J},8414:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var o=n(821);const a=["id"],l=["action"],r={class:"row g-2 align-items-center justify-content-end"},i=(0,o.createStaticVNode)('<div class="col-7"><div class="input-group"><span class="input-group-text"><svg xmlns="http://www.w3.org/2000/svg" class="heroicon-svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg></span><input type="text" name="user_id" placeholder="Username" class="form-control" autocomplete="off" required></div></div>',1),s={class:"col-xl-auto col-5 text-start"},c={key:0,type:"submit",class:"btn btn-primary"},d=["href"];function u(e,t,n,u,m,p){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"city-bank__login-form",id:`${u.loginFormId}-loginForm`},[(0,o.createElementVNode)("form",{action:n.loginUrl,method:"post"},[(0,o.createElementVNode)("div",r,[i,(0,o.createElementVNode)("div",s,[u.isAvailable?((0,o.openBlock)(),(0,o.createElementBlock)("button",c," Sign In ")):(0,o.createCommentVNode)("",!0),u.isAvailable?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("a",{key:1,href:n.maintenancePageUrl,class:"btn btn-primary"}," Sign In ",8,d))])])],8,l)],8,a)}var m=n(5934),p={props:{maintenancePageUrl:{type:String,required:!0},loginUrl:{type:String,required:!0},available:{type:String,reqired:!0}},setup(e){const t=(0,m.Z)(),n="true"==e.available;return(0,o.onMounted)((()=>{const e=document.getElementById(`${t}-loginForm`),n=e.querySelector(".city-bank__login-form .form-control"),o=e.querySelector(".city-bank__login-form .input-group-text");n.addEventListener("focus",(()=>{o.classList.add("border-dark")})),n.addEventListener("blur",(()=>{o.classList.remove("border-dark")}))})),{loginFormId:t,isAvailable:n}}},v=n(3744);const g=(0,v.Z)(p,[["render",u]]);var f=g},4300:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var o=n(821);const a=["id"],l={class:"modal-content"},r={class:"modal-body"},i={key:0,class:"modal-footer border-0"},s=["href","target"],c=(0,o.createElementVNode)("div",{class:"modal-backdrop cb-speedbump-backdrop"},null,-1);function d(e,t,n,d,u,m){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{id:`modal-${d.modalId}`},[(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["modal",n.modalClasses]),tabindex:"-1",role:"dialog"},[(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["modal-dialog",n.dialogClasses]),role:"document"},[(0,o.createElementVNode)("div",l,[(0,o.createElementVNode)("div",r,[(0,o.renderSlot)(e.$slots,"default")]),n.showButtons?((0,o.openBlock)(),(0,o.createElementBlock)("div",i,[(0,o.createElementVNode)("a",{href:n.modalUrl,class:(0,o.normalizeClass)([n.leaveButtonClasses,"btn btn-success btn-round me-sm-3"]),target:d.target,onClick:t[0]||(t[0]=t=>e.$emit("leaveLinkClicked",d.modal))}," Proceed ",10,s),(0,o.createElementVNode)("a",{href:"javascript:void(0)",class:"btn btn-outline-primary btn-round",onClick:t[1]||(t[1]=t=>e.$emit("stayLinkClicked",d.modal))}," Stay here ")])):(0,o.createCommentVNode)("",!0)])],2)],2),c],8,a)}var u=n(5934),m={name:"Modal",props:{modalOptions:{type:Object},modalClasses:{type:String,default:""},dialogClasses:{type:String,default:""},newWindow:{type:Boolean,default:!0},modalUrl:{type:String,default:"javascript:void(0)"},leaveButtonClasses:{type:String,default:""},showButtons:{type:Boolean,default:!0}},setup(e,{emit:t}){const n=(0,u.Z)();let a,l,r;const i=e.newWindow?"_blank":"_self",s=()=>{const t=document.getElementById(`modal-${n}`);l=t.querySelector(".modal"),a=t.querySelector(".cb-speedbump-backdrop");const o=e.modalOptions||{backdrop:!1,keyboard:!0,focus:!0};r=new Modal(l,o)};return(0,o.onMounted)((()=>{s(),l.addEventListener("show.bs.modal",(()=>{a&&a.classList.add("show")})),l.addEventListener("hide.bs.modal",(()=>{a&&a.classList.remove("show")})),t("modalMounted",r)})),{modalId:n,modal:r,target:i}}},p=n(3744);const v=(0,p.Z)(m,[["render",d]]);var g=v},4035:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return J}});var o=n(821);const a={class:"mortgage-calculator__wrapper bg-light px-3 px-xxl-0 py-3",id:"calc-mortgage-loan"},l=(0,o.createElementVNode)("div",{class:"row"},[(0,o.createElementVNode)("div",{class:"col-xxl-5 offset-xxl-1"},[(0,o.createElementVNode)("h2",null,"Mortgage Calculator")])],-1),r={class:"row"},i={class:"col-xxl-5 offset-xxl-1"},s={class:"calulator-box__wrapper"},c={class:"calulator-box__inner pe-xxl-5"},d={class:"row align-items-end"},u={class:"col-xxxl-8 col-lg-6"},m={class:"form-group"},p=(0,o.createElementVNode)("label",{for:"Cost"},"Cost of Property",-1),v=["min","max"],g={class:"col-xxxl-4 col-lg-6"},f={class:"form-group"},h=(0,o.createElementVNode)("label",{for:"CostInput",class:"visually-hidden"}," Cost Input ",-1),y=["min","max"],k={class:"form-group down-payment__group"},b=(0,o.createElementVNode)("label",{for:"DownPayment"},"Down payment",-1),E={class:"input-group"},w=["max"],V=(0,o.createElementVNode)("label",{for:"DownPaymentPercent",class:"visually-hidden"},"Down payment percent",-1),N=(0,o.createElementVNode)("span",{class:"input-group-text"},"%",-1),C={class:"form-group"},x=(0,o.createElementVNode)("label",{for:"Interest"},"Interest Rate",-1),S={class:"input-group"},B=(0,o.createElementVNode)("span",{class:"input-group-text"},"%",-1),M={class:"form-group"},L=(0,o.createElementVNode)("label",{for:"Years"},"Mortgage Length (in years)",-1),_={class:"col-xxl-5"},I={class:"calulator-box__wrapper ps-xxl-4"},D=(0,o.createElementVNode)("b",null,[(0,o.createElementVNode)("p",null,"Totals")],-1),T={class:"d-flex justify-content-between align-items-end mb-5"},P=(0,o.createElementVNode)("p",{class:"my-0 me-5"},"Amount Financed",-1),q={class:"h3 m-0"},A={class:"d-flex justify-content-between align-items-end mb-5"},O=(0,o.createElementVNode)("p",{class:"my-0 me-5"},"Total Payments",-1),H={class:"h3 m-0"},j={class:"d-flex justify-content-between align-items-end mb-5"},U=(0,o.createElementVNode)("p",{class:"my-0 me-5"},"Total Interest",-1),$={class:"h3 m-0"},R={class:"d-flex justify-content-between align-items-end mb-5"},z=(0,o.createElementVNode)("p",{class:"h4 my-0 me-4"},"Monthly Payment",-1),Z={class:"h2 m-0"};function F(e,t,n,F,G,K){return(0,o.openBlock)(),(0,o.createElementBlock)("div",a,[l,(0,o.createElementVNode)("div",r,[(0,o.createElementVNode)("div",i,[(0,o.createElementVNode)("div",s,[(0,o.createElementVNode)("div",c,[(0,o.createElementVNode)("div",d,[(0,o.createElementVNode)("div",u,[(0,o.createElementVNode)("div",m,[p,(0,o.withDirectives)((0,o.createElementVNode)("input",{type:"range",min:n.model.MinCost,max:n.model.MaxCost+1,name:"Cost",id:"Cost",class:"form-control","onUpdate:modelValue":t[0]||(t[0]=e=>F.propertyCost=e)},null,8,v),[[o.vModelText,F.propertyCost,void 0,{number:!0}]])])]),(0,o.createElementVNode)("div",g,[(0,o.createElementVNode)("div",f,[h,(0,o.withDirectives)((0,o.createElementVNode)("input",{type:"number",min:n.model.MinCost,max:n.model.MaxCost+1,name:"CostInput",id:"CostInput",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=e=>F.propertyCost=e)},null,8,y),[[o.vModelText,F.propertyCost,void 0,{number:!0}]])])])]),(0,o.createElementVNode)("div",k,[b,(0,o.createElementVNode)("div",E,[(0,o.withDirectives)((0,o.createElementVNode)("input",{type:"number","aria-label":"Down payment number",max:F.propertyCost,min:"0",class:"form-control",name:"DownPayment",id:"DownPayment","onUpdate:modelValue":t[2]||(t[2]=e=>F.downPayment=e)},null,8,w),[[o.vModelText,F.downPayment,void 0,{number:!0}]]),V,(0,o.withDirectives)((0,o.createElementVNode)("input",{type:"number","aria-label":"Down payment percent",step:"0.1",name:"DownPaymentPercent",id:"DownPaymentPercent",class:"form-control text-end","onUpdate:modelValue":t[3]||(t[3]=e=>F.downPaymentPercent=e)},null,512),[[o.vModelText,F.downPaymentPercent,void 0,{number:!0}]]),N])]),(0,o.createElementVNode)("div",C,[x,(0,o.createElementVNode)("div",S,[(0,o.withDirectives)((0,o.createElementVNode)("input",{type:"number",class:"form-control text-end mb-0 border-end-0",min:"0",max:"100",step:"0.1",id:"Interest",name:"Interest","onUpdate:modelValue":t[4]||(t[4]=e=>F.interestRate=e)},null,512),[[o.vModelText,F.interestRate,void 0,{number:!0}]]),B])]),(0,o.createElementVNode)("div",M,[L,(0,o.withDirectives)((0,o.createElementVNode)("input",{class:"form-control",id:"Years",name:"Years","onUpdate:modelValue":t[5]||(t[5]=e=>F.mortgageLength=e),maxlength:"2"},null,512),[[o.vModelText,F.mortgageLength,void 0,{number:!0}]])])])])]),(0,o.createElementVNode)("div",_,[(0,o.createElementVNode)("div",I,[D,(0,o.createElementVNode)("div",T,[P,(0,o.createElementVNode)("p",q,(0,o.toDisplayString)(F.formatCurrency(F.amountFinanced)),1)]),(0,o.createElementVNode)("div",A,[O,(0,o.createElementVNode)("p",H,(0,o.toDisplayString)(F.formatCurrency(F.totalPayments)),1)]),(0,o.createElementVNode)("div",j,[U,(0,o.createElementVNode)("p",$,(0,o.toDisplayString)(F.formatCurrency(F.totalInterest)),1)]),(0,o.createElementVNode)("div",R,[z,(0,o.createElementVNode)("p",Z,(0,o.toDisplayString)(F.formatCurrency(F.monthlyPayment)),1)])])])])])}var G=n(5356),K={props:{model:{type:Object,required:!0}},setup(e){let t=(0,o.ref)(e.model.PropertyCost),n=(0,o.ref)(e.model.DownPayment),a=(0,o.ref)(30),l=(0,o.ref)(e.model.InterestRate),r=(0,o.ref)(n.value/t.value*100);(0,o.watch)(t,(n=>{n<1?t.value=1:n>e.model.MaxCost?t.value=e.model.MaxCost:t.value=n,i()})),(0,o.watch)(l,(e=>{l.value=e<0?0:e>100?100:e})),(0,o.watch)(n,(e=>{e<0?n.value=0:n.value>t.value?n.value=t.value:n.value=e})),(0,o.watch)(r,(e=>{r.value=e<0?0:e>100?100:e,i()}));const i=()=>{n.value=Math.round(t.value*(r.value/100))},s=(0,o.computed)((()=>t.value-n.value)),c=(0,o.computed)((()=>{if(+a.value>0){if(l.value<=0)return s.value/(12*a.value);{const e=l.value/12/100,t=1+e,n=-1*a.value*12,o=1-Math.pow(t,n),r=e*s.value/(o<=0?1:o);return isNaN(r)?0:r}}return s.value+u.value})),d=(0,o.computed)((()=>+a.value>0?c.value*a.value*12:s.value)),u=(0,o.computed)((()=>+a.value>0?d.value-s.value:s.value*l.value/100));return{propertyCost:t,downPayment:n,mortgageLength:a,interestRate:l,downPaymentPercent:r,amountFinanced:s,monthlyPayment:c,totalPayments:d,totalInterest:u,formatCurrency:G.x}}},W=n(3744);const Y=(0,W.Z)(K,[["render",F]]);var J=Y},1872:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return x}});var o=n(821);const a={class:"pay-mortgage__wrapper my-4 my-xl-0 me-xl-4 d-xl-flex align-items-center text-center"},l=["innerHTML"],r=["action"],i=["value"],s=["value"],c=["value"],d=["value"],u=["value"],m=["value"],p=["value"],v=["value"],g=["value"],f=["value"],h=["value"],y=["value"],k=["value"],b=["value"];function E(e,t,n,E,w,V){const N=(0,o.resolveComponent)("modal");return(0,o.openBlock)(),(0,o.createElementBlock)("div",a,[(0,o.createVNode)(N,{modalOptions:E.options,newWindow:!1,dialogClasses:E.dialogClass,onModalMounted:t[0]||(t[0]=e=>E.handleMount(e)),onLeaveLinkClicked:E.leave,onStayLinkClicked:E.close},{default:(0,o.withCtx)((()=>[(0,o.createElementVNode)("div",{innerHTML:E.messageHtml},null,8,l)])),_:1},8,["modalOptions","dialogClasses","onLeaveLinkClicked","onStayLinkClicked"]),E.submit?((0,o.openBlock)(),(0,o.createElementBlock)("form",{key:0,action:n.model.Action,class:"pay-mortgage__form",enctype:"multipart/form-data",method:"post"},[(0,o.createElementVNode)("input",{type:"hidden",id:"HostedKey",name:"HostedKey",value:n.model.HostedKey},null,8,i),(0,o.createElementVNode)("input",{type:"hidden",id:"Gateway_ID",name:"Gateway_ID",value:n.model.Gateway_ID},null,8,s),(0,o.createElementVNode)("input",{type:"hidden",id:"IndustryCode",name:"IndustryCode",value:n.model.IndustryCode},null,8,c),(0,o.createElementVNode)("input",{type:"hidden",id:"Amount",name:"Amount",value:n.model.Amount},null,8,d),(0,o.createElementVNode)("input",{type:"hidden",id:"RecurringType",name:"RecurringType",value:n.model.RecurringType},null,8,u),(0,o.createElementVNode)("input",{type:"hidden",id:"RecurringAmount",name:"RecurringAmount",value:n.model.RecurringAmount},null,8,m),(0,o.createElementVNode)("input",{type:"hidden",id:"RURL",name:"RURL",value:n.model.RURL},null,8,p),(0,o.createElementVNode)("input",{type:"hidden",id:"CURL",name:"CURL",value:n.model.CURL},null,8,v),(0,o.createElementVNode)("input",{type:"hidden",id:"AVSRequired",name:"AVSRequired",value:n.model.AVSRequired},null,8,g),(0,o.createElementVNode)("input",{type:"hidden",id:"CVV2Required",name:"CVV2Required",value:n.model.CVV2Required},null,8,f),(0,o.createElementVNode)("input",{type:"hidden",id:"EmailRequired",name:"EmailRequired",value:n.model.EmailRequired},null,8,h),(0,o.createElementVNode)("input",{type:"hidden",id:"PostRspMsg",name:"PostRspMsg",value:n.model.PostRspMsg},null,8,y),(0,o.createElementVNode)("input",{type:"hidden",id:"SECCode",name:"SECCode",value:n.model.SECCode},null,8,k),(0,o.createElementVNode)("input",{type:"hidden",id:"Descriptor",name:"Descriptor",value:n.model.Descriptor},null,8,b)],8,r)):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("a",{onClick:t[1]||(t[1]=(...e)=>E.show&&E.show(...e)),href:"javascript:void(0)",class:"submit-link"}," Pay My Mortgage ")])}var w=n(4930),V={name:"PayMortgageButton",props:{message:{type:String,required:!0},model:{type:Object,required:!0}},setup(e){let t;const n=(0,w.m)(e.message),a="modal-dialog-centered";let l=(0,o.ref)(!1);const r=e=>{t=e},i=()=>{t.show()},s=async()=>{l.value=!0,await(0,o.nextTick)();const e=document.querySelector(".pay-mortgage__form");t.hide(),e.submit()},c=()=>{t.hide()},d={backdrop:!1,keyboard:!1,focus:!0};return{show:i,handleMount:r,submit:l,close:c,leave:s,options:d,messageHtml:n,dialogClass:a}}},N=n(3744);const C=(0,N.Z)(V,[["render",E]]);var x=C},2785:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var o=n(821);const a=["name"];function l(e,t,n,l,r,i){return(0,o.openBlock)(),(0,o.createElementBlock)("input",{type:"text",name:n.fieldName,"aria-label":"Validation",hidden:""},null,8,a)}var r={name:"ReCaptchaInput",props:{fieldName:{type:String,required:!0},siteKey:{type:String,required:!0}},setup(e){return(0,o.onMounted)((()=>{const t=document.querySelector(`input[name=${e.fieldName}]`);if(t){const n=t.closest("form"),o=n=>{n.preventDefault(),grecaptcha.ready((function(){grecaptcha.execute(e.siteKey,{action:"submit"}).then((function(e){t.value=e,n.target.submit()}))}))};n&&n.addEventListener("submit",o)}})),{}}},i=n(3744);const s=(0,i.Z)(r,[["render",l]]);var c=s},6482:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var o=n(821);const a={class:"swiper-slide"},l={class:"review-slide__outer"},r=(0,o.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"60.816",height:"52.138",viewBox:"0 0 60.816 52.138"},[(0,o.createElementVNode)("g",{opacity:"0.25"},[(0,o.createElementVNode)("path",{fill:"#bebebe",d:"M0 0v26.069h17.707A17.485 17.485 0 0 1 0 43.448v8.69c14.608 0 26.561-11.731 26.561-26.069V0zm34.255 0v26.069h17.707a17.485 17.485 0 0 1-17.707 17.379v8.69c14.608 0 26.561-11.731 26.561-26.069V0z",transform:"rotate(180 30.408 26.069)"})])],-1),i={class:"review-slide__inner text-center"},s=["innerHTML"],c={class:"name h3"},d=(0,o.createElementVNode)("div",{class:"text-end"},[(0,o.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"60.816",height:"52.138",viewBox:"0 0 60.816 52.138"},[(0,o.createElementVNode)("g",{opacity:"0.25"},[(0,o.createElementVNode)("path",{fill:"#bebebe",d:"M0 0v26.069h17.707A17.485 17.485 0 0 1 0 43.448v8.69c14.608 0 26.561-11.731 26.561-26.069V0zm34.255 0v26.069h17.707a17.485 17.485 0 0 1-17.707 17.379v8.69c14.608 0 26.561-11.731 26.561-26.069V0z",transform:"translate(0 4) translate(0 -4)"})])])],-1);function u(e,t,n,u,m,p){return(0,o.openBlock)(),(0,o.createElementBlock)("div",a,[(0,o.createElementVNode)("div",l,[r,(0,o.createElementVNode)("div",i,[(0,o.createElementVNode)("div",{innerHTML:u.decodedHtml},null,8,s),(0,o.createElementVNode)("p",c,(0,o.toDisplayString)(n.slide.Name),1)]),d])])}var m=n(4930),p={name:"ReviewCarouselSlide",props:{slide:{type:Object,required:!0}},setup(e){const t=(0,m.m)(e.slide.Content);return{decodedHtml:t}}},v=n(3744);const g=(0,v.Z)(p,[["render",u]]);var f=g},3279:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return x}});var o=n(821);const a={class:"city-bank__search-box mb-xl-2"},l=(0,o.createElementVNode)("svg",{class:"heroicon-svg",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[(0,o.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1),r=[l],i={class:"d-flex"},s=(0,o.createElementVNode)("label",{class:"visually-hidden",for:"searchInput"},"Search input",-1),c=(0,o.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"heroicon-svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[(0,o.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1),d=[c],u={class:"search-modal__inner"},m={class:"list-unstyled m-0"},p=["innerHTML"],v={class:"d-flex justify-content-center"},g={class:"spinner-border text-primary",role:"status"},f=(0,o.createElementVNode)("span",{class:"visually-hidden"},"Loading...",-1),h=[f];function y(e,t,n,l,c,f){const y=(0,o.resolveComponent)("modal");return(0,o.openBlock)(),(0,o.createElementBlock)("div",a,[(0,o.createElementVNode)("a",{href:"javascript:void(0)",role:"button","aria-label":"Search icon",onClick:t[0]||(t[0]=(...e)=>l.openModal&&l.openModal(...e))},r),(0,o.createVNode)(y,{modalClasses:l.modalClass,dialogClasses:l.dialogClass,showButtons:!1,modalOptions:l.options,onModalMounted:t[3]||(t[3]=e=>l.handleMount(e))},{default:(0,o.withCtx)((()=>[(0,o.createElementVNode)("div",i,[s,(0,o.withDirectives)((0,o.createElementVNode)("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=e=>l.searchInput=e),placeholder:"Search",class:"form-control",id:"searchInput",name:"searchInput"},null,512),[[o.vModelText,l.searchInput]]),(0,o.createElementVNode)("a",{href:"javascript:void(0)",role:"button",onClick:t[2]||(t[2]=(...e)=>l.closeModal&&l.closeModal(...e)),"aria-label":"Close Search",class:"search-close__button btn btn-primary"},d)]),(0,o.createElementVNode)("div",u,[(0,o.withDirectives)((0,o.createElementVNode)("ul",m,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(l.results,((e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("li",{key:`search-result__${t}`},[(0,o.createElementVNode)("div",{innerHTML:e},null,8,p)])))),128))],512),[[o.vShow,!l.loading]]),(0,o.createElementVNode)("div",v,[(0,o.withDirectives)((0,o.createElementVNode)("div",g,h,512),[[o.vShow,l.loading]])])])])),_:1},8,["modalClasses","dialogClasses","modalOptions"])])}var k=n(9669),b=n.n(k),E=n(2249),w=n(9636),V={props:{url:{type:String,required:!0},id:{type:String,required:!0},index:{type:String,required:!0},fields:{type:String,required:!0},language:{type:String,required:!0}},setup(e){const t=(0,o.ref)([]),n=(0,o.ref)(""),a=(0,o.ref)(!1),l="modal-lg",r="fade",i={backdrop:!1,keyboard:!0,focus:!1},s=(0,w.useGtm)();let c;const d=e=>{c=e},u=()=>{t.value=["<p>Begin typing to start your search.</p>"],c.show(),document.getElementById("searchInput").focus()},m=()=>{c.hide()};let p;const v=(e,t=2e3)=>{p&&clearTimeout(p),p=setTimeout((()=>s.trackEvent(e)),t)},g=(0,E.x)((n=>{const o=`${e.url}?IndexName=${e.index}&SuggestionFields=${e.fields}&Text=${n}&Language=${e.language}&SiteId=${e.id}`;b().get(o).then((e=>{e.data.Suggestions.length?t.value=e.data.Suggestions:t.value=["<p>No results match your search query, please try again.</p>"],a.value=!1,v({event:"search",category:"Website search",action:document.title,label:n,value:e.data.Suggestions.length,noninteraction:!1})})).catch((e=>{console.log(e),a.value=!1}))})),f=e=>{e.length?(a.value=!0,g(e)):t.value=["<p>Begin typing to start your search.</p>"]};return(0,o.watchEffect)((()=>f(n.value))),(0,o.onMounted)((()=>{const e=document.querySelector(".city-bank__search-box .modal");document.addEventListener("click",(t=>{const n=t.target instanceof Element&&e.contains(t.target)&&!e.firstChild.contains(t.target);n&&(t.stopPropagation(),m())}))})),{results:t,searchInput:n,search:f,openModal:u,closeModal:m,loading:a,dialogClass:l,modalClass:r,handleMount:d,options:i}}},N=n(3744);const C=(0,N.Z)(V,[["render",y]]);var x=C},9525:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var o=n(821);const a=["innerHTML"];function l(e,t,n,l,r,i){const s=(0,o.resolveComponent)("modal");return(0,o.openBlock)(),(0,o.createBlock)(s,{modalUrl:l.modalUrl,leaveButtonClasses:l.additionalClass,dialogClasses:l.dialogClass,onModalMounted:t[0]||(t[0]=e=>l.handleMount(e)),onStayLinkClicked:l.closeModal,onLeaveLinkClicked:l.closeModal,newWindow:!0},{default:(0,o.withCtx)((()=>[(0,o.createElementVNode)("div",{innerHTML:l.messageHtml},null,8,a)])),_:1},8,["modalUrl","leaveButtonClasses","dialogClasses","onStayLinkClicked","onLeaveLinkClicked"])}var r=n(4930),i=n(4300),s={components:{Modal:i["default"]},name:"SpeedBump",props:{message:{type:String,required:!0},urls:{type:Array,required:!0}},setup(e){const t="offsite-link",n="modal-dialog-centered",a=(0,r.m)(e.message),l=(0,o.reactive)(e.urls.map((e=>e))),i=(0,o.ref)("");let s;const c=()=>{s&&s.show()},d=()=>{s&&s.hide()},u=e=>{s=e},m=e=>{const t=e.currentTarget;if(t){const n=t.getAttribute("href");if(n&&!n.startsWith("#")&&!n.includes("javascript:")&&!t.classList.contains("offsite-link")&&!n.includes("tel:")&&!n.includes("mailto:")&&t.host!==window.location.host){e.preventDefault();const t=l.some((e=>n.includes(e)));s&&!t?(i.value=n,c()):window.location.href=n}}};return(0,o.onMounted)((()=>{const e=document.querySelectorAll("a");e.forEach((e=>{e.addEventListener("click",m)}))})),{messageHtml:a,modalUrl:i,additionalClass:t,handleMount:u,closeModal:d,dialogClass:n}}},c=n(3744);const d=(0,c.Z)(s,[["render",l]]);var u=d},5951:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return N}});var o=n(821);const a={class:"swiper-container"},l={key:0,type:"button",class:"swiper-button-prev btn btn-primary","aria-label":"Previous",role:"button"},r=(0,o.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"heroicon-svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[(0,o.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1),i=[r],s={class:"swiper-wrapper"},c={key:1,type:"button",class:"swiper-button-next btn btn-primary","aria-label":"Next",role:"button"},d=(0,o.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"heroicon-svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[(0,o.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1),u=[d],m={key:2,class:"swiper-pagination"},p={key:3,class:"swiper-scrollbar"};function v(e,t,n,r,d,v){const g=(0,o.resolveComponent)("review-carousel-slide");return(0,o.openBlock)(),(0,o.createElementBlock)("div",a,[n.navigation?((0,o.openBlock)(),(0,o.createElementBlock)("button",l,i)):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("div",s,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(n.slides,((e,t)=>((0,o.openBlock)(),(0,o.createBlock)(g,{key:`swiper-${r.inputId}-slide-${t}`,slide:e},null,8,["slide"])))),128))]),n.navigation?((0,o.openBlock)(),(0,o.createElementBlock)("button",c,u)):(0,o.createCommentVNode)("",!0),n.pagination?((0,o.openBlock)(),(0,o.createElementBlock)("div",m)):(0,o.createCommentVNode)("",!0),n.scrollBar?((0,o.openBlock)(),(0,o.createElementBlock)("div",p)):(0,o.createCommentVNode)("",!0)])}var g=n(172),f=n(5186),h=n(2997),y=n(5014),k=n(5934),b=n(6482),E={components:{ReviewCarouselSlide:b["default"]},name:"SwiperCarousel",props:{navigation:{type:Boolean,default:!0},pagination:{type:Boolean,default:!1},scrollBar:{type:Boolean,default:!1},slides:{type:Array,required:!0}},setup(){const e=(0,k.Z)();let t;const n=()=>{t&&t.slides.forEach((e=>{e.classList.contains("swiper-slide-active")?(e.tabIndex=0,e.setAttribute("aria-hidden","false")):(e.tabIndex=-1,e.setAttribute("aria-hidden","true"))}))};return(0,o.onMounted)((()=>{g.Z.use([f.Z,h.Z,y.Z]),t=new g.Z(".swiper-container",{init:!1,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},slidesPerView:1,loop:!0,autoHeight:!0}),t.on("init",n),t.on("slideChange",n),t.init()})),{inputId:e}}},w=n(3744);const V=(0,w.Z)(E,[["render",v]]);var N=V},8991:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var o=n(821);const a=["aria-label"],l=["aria-selected"],r=["onClick","aria-selected"];function i(e,t,n,i,s,c){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"ls-filter",role:"listbox","aria-label":n.filterTitle},[(0,o.createElementVNode)("button",{type:"button",class:(0,o.normalizeClass)(["ls-filter__item",{active:i.allOption.selected}]),onClick:t[0]||(t[0]=(...e)=>i.allOptionClickedHandler&&i.allOptionClickedHandler(...e)),role:"option","aria-selected":i.allOption.selected},(0,o.toDisplayString)(i.allOption.name),11,l),((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(i.filterOptions,((e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("button",{type:"button",class:(0,o.normalizeClass)(["ls-filter__item",{active:e.selected}]),key:`tag-filter-option-${t}`,onClick:t=>i.optionClickedHandler(e),role:"option","aria-selected":e.selected},(0,o.toDisplayString)(e.name),11,r)))),128))],8,a)}var s={name:"TagFilter",props:{options:{type:Array,required:!0,validator:e=>{let t=!0;for(let n=0;n<e.length;n+=1)if(!Object.prototype.hasOwnProperty.call(e[n],"name")&&!Object.prototype.hasOwnProperty.call(e[n],"value")){t=!1;break}return t}},filterTitle:{type:String,required:!1,default:"Filter"}},setup(e,{emit:t}){const n=(0,o.reactive)(e.options.map((e=>({...e,selected:!1})))),a=(0,o.computed)((()=>n.filter((e=>e.selected)))),l=(0,o.computed)((()=>({name:"All",value:"All",selected:0===a.value.length}))),r=e=>{e.selected=!e.selected,t("option-clicked",a.value)},i=()=>{n.forEach((e=>{e.selected=!1})),t("option-clicked",a.value)};return{allOption:l,allOptionClickedHandler:i,selectedOptions:a,filterOptions:n,optionClickedHandler:r}}},c=n(3744);const d=(0,c.Z)(s,[["render",i]]);var u=d}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var l=t[o]={exports:{}};return e[o].call(l.exports,l,l.exports,n),l.exports}n.m=e,function(){var e=[];n.O=function(t,o,a,l){if(!o){var r=1/0;for(d=0;d<e.length;d++){o=e[d][0],a=e[d][1],l=e[d][2];for(var i=!0,s=0;s<o.length;s++)(!1&l||r>=l)&&Object.keys(n.O).every((function(e){return n.O[e](o[s])}))?o.splice(s--,1):(i=!1,l<r&&(r=l));if(i){e.splice(d--,1);var c=a();void 0!==c&&(t=c)}}return t}l=l||0;for(var d=e.length;d>0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[o,a,l]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){var e={143:0};n.O.j=function(t){return 0===e[t]};var t=function(t,o){var a,l,r=o[0],i=o[1],s=o[2],c=0;if(r.some((function(t){return 0!==e[t]}))){for(a in i)n.o(i,a)&&(n.m[a]=i[a]);if(s)var d=s(n)}for(t&&t(o);c<r.length;c++)l=r[c],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return n.O(d)},o=self["webpackChunkcity_bank"]=self["webpackChunkcity_bank"]||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))}();var o=n.O(void 0,[998],(function(){return n(3009)}));o=n.O(o)})(); //# sourceMappingURL=app.js.map