jQuery(document).ready(function(){ wpcf7_redirect_mailsent_handler(); }); function wpcf7_redirect_mailsent_handler(){ document.addEventListener('wpcf7mailsent', function(event){ form=wpcf7_redirect_forms [ event.detail.contactFormId ]; if(form.after_sent_script){ form.after_sent_script=htmlspecialchars_decode(form.after_sent_script); eval(form.after_sent_script); } if(form.use_external_url&&form.external_url){ redirect_url=form.external_url; }else{ redirect_url=form.thankyou_page_url; } if(form.http_build_query){ temp_http_query=jQuery.param(event.detail.inputs, true); http_query=temp_http_query.replace(new RegExp('\\+', 'g'), '%20'); redirect_url=redirect_url + '?' + decodeURIComponent(http_query); }else if(form.http_build_query_selectively){ http_query='?'; selective_fields=form.http_build_query_selectively_fields.split(' ').join(''); event.detail.inputs.forEach(function(element, index){ if(selective_fields.indexOf(element.name)!=-1){ http_query +=element.name + '=' + element.value + '&'; }}); http_query=http_query.slice(0, -1); redirect_url=redirect_url + decodeURIComponent(http_query); } if(redirect_url){ if(! form.open_in_new_tab){ if(form.delay_redirect){ setTimeout(function(){ location.href=redirect_url; }, form.delay_redirect); }else{ location.href=redirect_url; }}else{ if(form.delay_redirect){ setTimeout(function(){ window.open(redirect_url); }, form.delay_redirect); }else{ window.open(redirect_url); }} }}, false); } function htmlspecialchars_decode(string){ var map={ '&': '&', '&': "&", '<': '<', '>': '>', '"': '"', ''': "'", '’': "’", '‘': "‘", '–': "–", '—': "—", '…': "…", '”': '”' }; return string.replace(/\&[\w\d\#]{2,5}\;/g, function(m){ return map[m]; }); }; function openForm(){document.getElementById("contact-overlay").style.display="block"}function closeForm(){document.getElementById("contact-overlay").style.display="none"}!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e((t=t||self).bootstrap={},t.jQuery)}(this,function(t,f){"use strict";function n(t,e){for(var i=0;ithis._items.length-1||t<0))if(this._isSliding)f(this._element).one(q.SLID,function(){return e.to(t)});else{if(i===t)return this.pause(),void this.cycle();var n=i=n.clientWidth&&i>=n.clientHeight}),c=0l[t]&&!n.escapeWithReference&&(i=Math.min(c[e],l[t]-("right"===t?c.width:c.height))),Ut({},e,i)}};return d.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=Bt({},c,u[e](t))}),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,i=e.popper,n=e.reference,o=t.placement.split("-")[0],s=Math.floor,r=-1!==["top","bottom"].indexOf(o),a=r?"right":"bottom",l=r?"left":"top",d=r?"width":"height";return i[a]s(n[a])&&(t.offsets.popper[l]=s(n[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var i;if(!he(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],s=t.offsets,r=s.popper,a=s.reference,l=-1!==["left","right"].indexOf(o),d=l?"height":"width",c=l?"Top":"Left",u=c.toLowerCase(),h=l?"left":"top",p=l?"bottom":"right",f=Zt(n)[d];a[p]-fr[p]&&(t.offsets.popper[u]+=a[u]+f-r[p]),t.offsets.popper=Qt(t.offsets.popper);var m=a[u]+a[d]/2-f/2,g=xt(t.instance.popper),v=parseFloat(g["margin"+c],10),y=parseFloat(g["border"+c+"Width"],10),_=m-t.offsets.popper[u]-v-y;return _=Math.max(Math.min(r[d]-f,_),0),t.arrowElement=n,t.offsets.arrow=(Ut(i={},u,Math.round(_)),Ut(i,h,""),i),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(p,f){if(oe(p.instance.modifiers,"inner"))return p;if(p.flipped&&p.placement===p.originalPlacement)return p;var m=Xt(p.instance.popper,p.instance.reference,f.padding,f.boundariesElement,p.positionFixed),g=p.placement.split("-")[0],v=te(g),y=p.placement.split("-")[1]||"",_=[];switch(f.behavior){case ge:_=[g,v];break;case ve:_=me(g);break;case ye:_=me(g,!0);break;default:_=f.behavior}return _.forEach(function(t,e){if(g!==t||_.length===e+1)return p;g=p.placement.split("-")[0],v=te(g);var i=p.offsets.popper,n=p.offsets.reference,o=Math.floor,s="left"===g&&o(i.right)>o(n.left)||"right"===g&&o(i.left)o(n.top)||"bottom"===g&&o(i.top)o(m.right),l=o(i.top)o(m.bottom),c="left"===g&&r||"right"===g&&a||"top"===g&&l||"bottom"===g&&d,u=-1!==["top","bottom"].indexOf(g),h=!!f.flipVariations&&(u&&"start"===y&&r||u&&"end"===y&&a||!u&&"start"===y&&l||!u&&"end"===y&&d);(s||c||h)&&(p.flipped=!0,(s||c)&&(g=_[e+1]),h&&(y=function(t){return"end"===t?"start":"start"===t?"end":t}(y)),p.placement=g+(y?"-"+y:""),p.offsets.popper=Bt({},p.offsets.popper,ee(p.instance.popper,p.offsets.reference,p.placement)),p=ne(p.instance.modifiers,p,"flip"))}),p},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,i=e.split("-")[0],n=t.offsets,o=n.popper,s=n.reference,r=-1!==["left","right"].indexOf(i),a=-1===["top","left"].indexOf(i);return o[r?"left":"top"]=s[i]-(a?o[r?"width":"height"]:0),t.placement=te(e),t.offsets.popper=Qt(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!he(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,i=ie(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottomi.right||e.top>i.bottom||e.rightdocument.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:vi},Di="show",Li="out",$i={HIDE:"hide"+Ti,HIDDEN:"hidden"+Ti,SHOW:"show"+Ti,SHOWN:"shown"+Ti,INSERTED:"inserted"+Ti,CLICK:"click"+Ti,FOCUSIN:"focusin"+Ti,FOCUSOUT:"focusout"+Ti,MOUSEENTER:"mouseenter"+Ti,MOUSELEAVE:"mouseleave"+Ti},Ni="fade",Pi="show",zi=".tooltip-inner",ji=".arrow",Hi="hover",Mi="focus",Wi="click",Ri="manual",Fi=function(){function n(t,e){if(void 0===be)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t=n.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,i=f(t.currentTarget).data(e);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),f(t.currentTarget).data(e,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(f(this.getTipElement()).hasClass(Pi))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),f.removeData(this.element,this.constructor.DATA_KEY),f(this.element).off(this.constructor.EVENT_KEY),f(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&f(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===f(this.element).css("display"))throw new Error("Please use show on visible elements");var t=f.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){f(this.element).trigger(t);var i=m.findShadowRoot(this.element),n=f.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!n)return;var o=this.getTipElement(),s=m.getUID(this.constructor.NAME);o.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&f(o).addClass(Ni);var r="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,a=this._getAttachment(r);this.addAttachmentClass(a);var l=this._getContainer();f(o).data(this.constructor.DATA_KEY,this),f.contains(this.element.ownerDocument.documentElement,this.tip)||f(o).appendTo(l),f(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new be(this.element,o,{placement:a,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:ji},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),f(o).addClass(Pi),"ontouchstart"in document.documentElement&&f(document.body).children().on("mouseover",null,f.noop);var d=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,f(e.element).trigger(e.constructor.Event.SHOWN),t===Li&&e._leave(null,e)};if(f(this.tip).hasClass(Ni)){var c=m.getTransitionDurationFromElement(this.tip);f(this.tip).one(m.TRANSITION_END,d).emulateTransitionEnd(c)}else d()}},t.hide=function(t){var e=this,i=this.getTipElement(),n=f.Event(this.constructor.Event.HIDE),o=function(){e._hoverState!==Di&&i.parentNode&&i.parentNode.removeChild(i),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),f(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(f(this.element).trigger(n),!n.isDefaultPrevented()){if(f(i).removeClass(Pi),"ontouchstart"in document.documentElement&&f(document.body).children().off("mouseover",null,f.noop),this._activeTrigger[Wi]=!1,this._activeTrigger[Mi]=!1,this._activeTrigger[Hi]=!1,f(this.tip).hasClass(Ni)){var s=m.getTransitionDurationFromElement(i);f(i).one(m.TRANSITION_END,o).emulateTransitionEnd(s)}else o();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(t){f(this.getTipElement()).addClass(Ei+"-"+t)},t.getTipElement=function(){return this.tip=this.tip||f(this.config.template)[0],this.tip},t.setContent=function(){var t=this.getTipElement();this.setElementContent(f(t.querySelectorAll(zi)),this.getTitle()),f(t).removeClass(Ni+" "+Pi)},t.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=wi(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?f(e).parent().is(t)||t.empty().append(e):t.text(f(e).text())},t.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:m.isElement(this.config.container)?f(this.config.container):f(document).find(this.config.container)},t._getAttachment=function(t){return Ai[t.toUpperCase()]},t._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)f(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if(t!==Ri){var e=t===Hi?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,i=t===Hi?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;f(n.element).on(e,n.config.selector,function(t){return n._enter(t)}).on(i,n.config.selector,function(t){return n._leave(t)})}}),f(this.element).closest(".modal").on("hide.bs.modal",function(){n.element&&n.hide()}),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!=t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(t,e){var i=this.constructor.DATA_KEY;(e=e||f(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),f(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusin"===t.type?Mi:Hi]=!0),f(e.getTipElement()).hasClass(Pi)||e._hoverState===Di?e._hoverState=Di:(clearTimeout(e._timeout),e._hoverState=Di,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===Di&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var i=this.constructor.DATA_KEY;(e=e||f(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),f(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusout"===t.type?Mi:Hi]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=Li,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===Li&&e.hide()},e.config.delay.hide):e.hide())},t._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},t._getConfig=function(t){var e=f(this.element).data();return Object.keys(e).forEach(function(t){-1!==Ii.indexOf(t)&&delete e[t]}),"number"==typeof(t=l({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),m.typeCheckConfig(bi,t,this.constructor.DefaultType),t.sanitize&&(t.template=wi(t.template,t.whiteList,t.sanitizeFn)),t},t._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},t._cleanTipClass=function(){var t=f(this.getTipElement()),e=t.attr("class").match(ki);null!==e&&e.length&&t.removeClass(e.join(""))},t._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},t._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(f(t).removeClass(Ni),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},n._jQueryInterface=function(i){return this.each(function(){var t=f(this).data(Si),e="object"==typeof i&&i;if((t||!/dispose|hide/.test(i))&&(t||(t=new n(this,e),f(this).data(Si,t)),"string"==typeof i)){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},r(n,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return xi}},{key:"NAME",get:function(){return bi}},{key:"DATA_KEY",get:function(){return Si}},{key:"Event",get:function(){return $i}},{key:"EVENT_KEY",get:function(){return Ti}},{key:"DefaultType",get:function(){return Oi}}]),n}();f.fn[bi]=Fi._jQueryInterface,f.fn[bi].Constructor=Fi,f.fn[bi].noConflict=function(){return f.fn[bi]=Ci,Fi._jQueryInterface};var qi="popover",Ui="bs.popover",Bi="."+Ui,Qi=f.fn[qi],Yi="bs-popover",Ki=new RegExp("(^|\\s)"+Yi+"\\S+","g"),Vi=l({},Fi.Default,{placement:"right",trigger:"click",content:"",template:''}),Xi=l({},Fi.DefaultType,{content:"(string|element|function)"}),Gi="fade",Ji="show",Zi=".popover-header",tn=".popover-body",en={HIDE:"hide"+Bi,HIDDEN:"hidden"+Bi,SHOW:"show"+Bi,SHOWN:"shown"+Bi,INSERTED:"inserted"+Bi,CLICK:"click"+Bi,FOCUSIN:"focusin"+Bi,FOCUSOUT:"focusout"+Bi,MOUSEENTER:"mouseenter"+Bi,MOUSELEAVE:"mouseleave"+Bi},nn=function(t){function n(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}(n,t);var e=n.prototype;return e.isWithContent=function(){return this.getTitle()||this._getContent()},e.addAttachmentClass=function(t){f(this.getTipElement()).addClass(Yi+"-"+t)},e.getTipElement=function(){return this.tip=this.tip||f(this.config.template)[0],this.tip},e.setContent=function(){var t=f(this.getTipElement());this.setElementContent(t.find(Zi),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(tn),e),t.removeClass(Gi+" "+Ji)},e._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},e._cleanTipClass=function(){var t=f(this.getTipElement()),e=t.attr("class").match(Ki);null!==e&&0=this._offsets[o]&&(void 0===this._offsets[o+1]||t