PageSourceSearch

http://veniceitalyhotels.org/js/site.commone7a5.js?v=123456789002760

js veniceitalyhotels.org collected 2026-10-06 11:20:07 UTC 33,015 bytes, 2 lines download raw bytes

1!function(e){var t={};function n(o){if(t[o])return t[o].exports;var a=t[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([function(e,t,n){"use strict";var o=function(e){var t,n=function(n){var o=e(n).find("p").first(),a=e(n).find(".chat-bubble");0===a.length&&(a=e('<div class="chat-bubble"><div class="typing"><div class="dot"></div><div class="dot"></div><div class="dot"></div></div></div>'),e(n).prepend(a));var i=e(n).data("copy"),r=0;o.hide().text(""),clearTimeout(t);a.show(),t=setTimeout((function(){a.hide(),function e(){r<i.length&&(o.show(),o.append(i.charAt(r)),r++,t=setTimeout(e,25))}()}),1500)},o=function(t){var n=!0,o=0,a=!1,i=!1,r=e(t).find(".message-holder"),s=e(t).is("#additionalInputs")&&!e(t).data("validation-attempted");r.empty();var l=["gmail.com","yahoo.com","outlook.com","hotmail.com","aol.com","icloud.com","mail.com","yandex.com"],c="";return e(t).find("input[required], textarea[required]").each((function(){var t=e(this).closest(".form-group");if(this.checkValidity()){if(t.removeClass("has-error"),"email"===this.type){var r=this.value.split("@")[1];void 0===r.split(".")[1]&&(a=!0,n=!1,t.addClass("has-error"),c="Please enter a valid email address.",i=!0),l.includes(r)&&(a=!0,n=!1,t.addClass("has-error"),c="Please enter a work email address. Personal email addresses (such as Gmail, Yahoo, Hotmail, etc.) are not allowed.",i=!0)}}else n=!1,t.addClass("has-error"),o++,"email"===this.type&&(a=!0)})),a=a&&1===o,n||(s?(r.append("<p>Just 2 more fields and we're done.</p>"),e(t).data("validation-attempted",!0)):a?i?r.append("<p>"+c+"</p>"):r.append("<p>Please enter a valid email address.</p>"):i?r.append("<p>"+c+"</p>"):r.append("<p>Please fill in all required fields.</p>")),n},a=function(){var t=e("#fauxChatFormBudget"),n=e("#budgetOutput"),o=parseInt(t.val()),a=parseInt(t.attr("min")),i=parseInt(t.attr("max")),r=e("#budgetOutput"),s=(o-a)/(i-a)*100;e(".fill").css("width",s+"%"),r.css("left",s+"%"),o<=parseInt(t.attr("min"))?n.text("Less $3k"):o>=parseInt(t.attr("max"))?n.text("$100k+"):n.text("$"+o/1e3+"k")},i=function(t){var n=e("#fauxChatFormBudget"),o=parseInt(n.val()),i=parseInt(n.attr("step")),r=parseInt(n.attr("min")),s=parseInt(n.attr("max"));"minus"===t?o=Math.max(o-i,r):"plus"===t&&(o=Math.min(o+i,s)),n.val(o),a()},r=function(){var t=e("[data-contactform-checkboxesgroup] input[type=checkbox]"),n=e("[data-contactform-checkboxesgroup-txt]"),o=t.filter(":checked").map((function(){return e(this).val()})).get().join(";");n.val(o)},s=function(t){e(".step").removeClass("active"),e('.step[data-step="'.concat(t,'"]')).addClass("active")},l=function(){var t,o,a,i,r=e(this).closest(".form-step"),l=r.nextAll(".form-step").first(),c=r.index(".form-step")+1,u=e("body"),d=r.index(".form-step")+1;if(window.SITE.Tracking.GA.recordEvent("Faux Chat Form","Step ".concat(d," Completed"),""),u.hasClass("modal-open")||u.hasClass("page-template-strategies-lp")||u.addClass("modal-open"),o=!0,a=e(t=r).find(".message-holder"),i=!1,a.empty(),e(t).find("input[required], textarea[required], select[required]").each((function(){var t=e(this);t.is(":checkbox, :radio")?0!==e('input[name="'+t.attr("name")+'"]:checked').length||i||(o=!1,i=!0,a.append("<p>Please select at least one option.</p>")):t.val()||i||(o=!1,i=!0,a.append("<p>Please fill in all required fields.</p>"))})),o){s(c+1),r.hide(),l.show();var f=l.find(".message");f.length>0&&n(f)}},c=function(){if(o("#initialInfo")){s(6),e("#initialInfo").hide(),e("#additionalInputs").show().css("display","flex"),o("#additionalInputs"),(a=e(".modal-content")).css("display","none"),a[0].offsetHeight,a.css("display","block");var t=e("#additionalInputs").find(".message");t.length>0&&n(t)}var a},u=function(t){var n=e(".form-step:visible");
1o(n)?(window.SITE.Tracking.GA.recordEvent("Faux Chat Form","Submitted",""),e(".faux-chat-form-submit").prop("disabled",!0).text("Submitting..."),e("#fauxChatMultiStepForm").submit()):t.preventDefault()};return{init:function(){a(),e("#fauxChatFormBudget").on("input",a),e(".slider-button.minus").click((function(){return i("minus")})),e(".slider-button.plus").click((function(){return i("plus")})),e(".faux-chat-form-next").click(l),e("#initialInfo .faux-chat-form-next").click(c),e(".faux-chat-form-submit").click(u),e("[data-contactform-checkboxesgroup] input[type=checkbox]").change(r),e("#fauxChatFormModal").on("hidden.bs.modal",(function(){clearTimeout(t)})),e("#fauxChatFormModal").on("shown.bs.modal",(function(e){window.SITE.Tracking.GA.recordEvent("Free Consult","Popup opened",""),window.SITE.Tracking.GA.recordEvent("Faux Chat Form","Opened","")})),function(){if(e("body").hasClass("page-template-strategies-lp")){var t=e("#fauxChatFormStep1").find(".message");t.length>0&&n(t)}}()},typeMessage:n}}(jQuery);t.a=o},function(e,t,n){"use strict";function o(e){window.onscroll=function(){window.scrollY>310&&e(".header-bar, body").addClass("is-sticking"),window.scrollY<10&&e(".header-bar, body").removeClass("is-sticking")},e("#hamburger").click((function(){e(this).toggleClass("is-active"),e(".header-bar, body").toggleClass("is-mobilemenu-open")}))}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),void 0!==window.Parsley&&(window.Parsley.addValidator("website",{validateString:function(e){if(1==/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e))return!0;return 1==/^[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9](?:\.[a-zA-Z]{2,})+$/i.test(e)},messages:{en:"Please enter a valid website URL."}}),window.Parsley.addValidator("workemail",{validateString:function(e){var t=e.split("@")[1];return["gmail.com","yahoo.com","hotmail.com","googlemail.com","hotmail.co.uk","email.com"].indexOf(t)<0},messages:{en:"Please enter your work email address."}}));var o="hire",a=1,i=!1,r=!1,s=function(e,t){if(!i||e!=o||t!=a){$("[data-contactform-content]").hide(),$("[data-contactform-content*="+e+"-"+t+"]").show(),o=e,a=t,i=!0;var n=$("[data-contactform-show="+o+"-"+a+"]");$("[data-contactform-show]").removeClass("button--dark").not(n).addClass("button--transparentFramed"),n.removeClass("button--transparentFramed").addClass("button--dark")}},l={errorsContainer:function(e){return e.$element.parents(".form-group, .checkbox-group")}};function c(){s(o,a),$("#getStartedModal").on("shown.bs.modal",(function(e){"undefined"!=typeof hj?(window.hj=window.hj||function(){(hj.q=hj.q||[]).push(arguments)},hj("trigger","free_consult_modal"),console.log("hj trigerred")):console.log("hj NOT trigerred"),window.SITE.Tracking.GA.recordEvent("FreeConsult CTA Modal","Shown",""),r||$("[data-lazy-modal-src]").each((function(){var e=$
1(this);e.attr("src",e.data("lazy-modal-src"))})),r=!0,$("#formContentAbove").hasClass("formContentBasic")&&($("#contactFormHirePhoneGroup").hide(),$("#contactFormHirePhoneGroup").find("input").attr("type","hidden").val("N/A").removeAttr("required").removeAttr("data-parsley-group"),$("#contactFormHireRoleGroup").hide(),$("#contactFormHireRoleGroup").find("input").attr("type","hidden").val("N/A").removeAttr("required").removeAttr("data-parsley-group"),$("#contactFormHireInterestedGroup").remove()),$("body").hasClass("single-post")&&$("#freeConsultLeadMagnet").val("blogPost")})),$(".cfPage").val(window.location.href),"#contactModal"===window.location.hash&&$("#getStartedModal").modal("show"),"#getStartedModal"===window.location.hash&&$("#getStartedModal").modal("show"),$("[data-contactform-show]").on("click",(function(){var e=$(this).attr("data-contactform-show").split("-");e&&s(e[0],e[1])})),$(".contactForm-step").each((function(e,t){var n=$(t).attr("data-contactform-content");$(t).find(":input").attr("data-parsley-group","block-"+n)})),$("[data-contactform-submit]").on("click",(function(){if($(this).hasClass("submitted"))return console.log("Form already submitted"),!1;
1$("[data-contactform="+o+"]").parsley(l).whenValidate({group:"block-"+o+"-"+a}).done((function(){$(".contactForm-footer a.btnHireSubmit").remove(),$("#hireFormSubmitLoader").show();var e=$("form[data-contactform="+o+"]"),t=e.find("[name='fields[budget]']").val(),n=$("#freeConsultLeadSegment").val(),a=$("#freeConsultLeadMagnet").val();if(e.find("a.btnHireSubmit").prop("disabled",!0).addClass("submitted"),window.gtag("event",o+" - Submit",{event_category:"FreeConsult Form",event_label:"Budget",value:"$10,000 to $20,000"==t||"$20,000 to $50,000"==t||"$50,000 to $100,000"==t||"$100,000+"==t?1:0}),"$10,000 to $20,000"!=t&&"$20,000 to $50,000"!=t&&"$50,000 to $100,000"!=t&&"$100,000+"!=t||console.log("HB"),"partners-network"==n&&"Single Grain"!=a&&(console.log("lead segment: partners network"),window.SITE.Tracking.GA.recordEvent("FreeConsult Form",o+" - Partners Network","")),"exitIntent"==a&&(console.log("lead magnet: exit intent"),window.SITE.Tracking.GA.recordEvent("FreeConsult Form",o+" - Submit (ExitIntent)","")),"blogPost"==a&&(console.log("lead magnet: blog post"),window.SITE.Tracking.GA.recordEvent("FreeConsult Form",o+" - Submit (BlogPost)","")),"undefined"!=typeof SL){var i=e.find("[name='fields[email]']").val();i&&(SL.trackSubscriber(i),console.log("SL.trackSubscriber("+i+")"))}function r(e){var t=document.querySelector('[name="fields[first_name]"]'),n=document.querySelector('[name="fields[last_name]"]'),o=document.querySelector('#formContent input[name="fields[email]"]'),a=document.querySelector('#formContent input[name="fields[phone]"]'),i=document.querySelector('[name="fields[company_name]"]'),r=new URLSearchParams;return r.set("id",e),t&&t.value&&r.set("firstName",t.value),n&&n.value&&r.set("lastName",n.value),o&&o.value&&r.set("email",o.value),a&&a.value&&r.set("phone",a.value),i&&i.value&&r.set("company",i.value),"/thankyou/?"+r.toString()}var s,l,c,u,d,f=$('form[data-contactform="'+o+'"]'),m=f.attr("action"),h=f.serialize();if(s=navigator.userAgent,l=/^((?!chrome|android).)*safari/i.test(s),c=/iPhone/i.test(s),u=/iPad/i.test(s),d=navigator.brave&&navigator.brave.isBrave(),console.log(l,c,u,d),l||c||u||d){var p,v=function(){var e=document.querySelector('[name="cf-turnstile-response"]');if(e&&!e.value){var t=navigator.userAgent;e.value="Browser Info: ".concat(t),console.log("turnstileField",e)}return e}();if(v&&v.value)p=v.value;else{var g=navigator.userAgent;p="Browser Info: ".concat(g)}h.includes("cf-turnstile-response=")?h=h.replace(/cf-turnstile-response=[^&]*/,"cf-turnstile-response="+encodeURIComponent(p)):h+="&cf-turnstile-response="+encodeURIComponent(p)}return $.ajax({type:"POST",url:m,data:h,dataType:"json",success:function(e){if(!1===e.success)alert(e.message);else{var t=e.lead_id;if(window.leadId=t,"partners-network"==n&&"Single Grain"!=a)window.location.href=r(window.leadId);else{try{var o=function(e){var t=document.querySelector(e);return t?t.value:""},i={fields:[{name:"firstname",value:o('[name="fields[first_name]"]')},{name:"lastname",value:o('[name="fields[last_name]"]')},{name:"email",value:o('#formContent input[name="fields[email]"]')},{name:"phone",value:o('#formContent input[name="fields[phone]"]')},{name:"company",value:o('[name="fields[company_name]"]')},{name:"jobtitle",value:o('[name="fields[job_title]"]')},{name:"budget_",value:o('[name="fields[budget]"]')},{name:"website",value:o('[name="fields[url]"]')},{name:"interested_in_",value:o('[name="fields[services]"]')},{name:"how_did_you_hear_about_us",value:o('[name="fields[referrer]"]')},{name:"message",value:o('[name="fields[message]"]')},{name:"utm_source",value:o('[name="fields[utm_source]"]')},{name:"utm_medium",value:o('[name="fields[utm_medium]"]')},{name:"utm_content",value:o('[name="fields[utm_content]"]')},{name:"utm_campaign",value:o('[name="fields[utm_campaign]"]')},{name:"utm_term",value:o('[name="fields[utm_term]"]')},{name:"utm_keyword",value:o('[name="fields[utm_keyword]"]')},{name:"submission_url",value:o('[name="fields[entrance_url]"]')},{name:"first_touch_url",value:o('[name="fields[first_touch_url]"]')},{name:"hs_lead_status",value:"NEW"},{name:"lead_type",value:"Inbound"},{name:"lead_category",value:"Web 2.0"},{name:"lead_category",value:"Web 2.0"}
1],context:{hutk:document.cookie.replace(/(?:(?:^|.*;\s*)hubspotutk\s*\=\s*([^;]*).*$)|^.*$/,"$1"),pageUri:window.location.href,pageName:document.title},legalConsentOptions:{consent:{consentToProcess:!0,text:"I agree to allow Single Grain to store and process my personal data.",communications:[{value:!0,subscriptionTypeId:999,text:"I agree to receive marketing communications from Single Grain."}]}}};console.log("HubSpot Form Data:",i);var s=new XMLHttpRequest;s.open("POST","https://api.hsforms.com/submissions/v3/integration/submit/4240785/2665f2ba-30fb-4d5a-8cee-310d54863edf"),s.setRequestHeader("Content-Type","application/json"),s.send(JSON.stringify(i))}catch(e){console.error("HubSpot submission error:",e)}setTimeout((function(){window.location.href=r(window.leadId)}),2e3)}}},error:function(e,t,n){if(console.log("Error occurred: "+t,n),429===e.status){var o=e.responseText||"Thank you for your interest. To ensure quality service, we limit submissions to one per day. Please check back tomorrow if you need to submit additional information.";alert(o),$("#getStartedModal").modal("hide")}else 409===e.status?(alert("This submission appears to be a duplicate. If you already submitted, please check your email."),$("#getStartedModal").modal("hide")):400===e.status?(alert("Please check that all fields are filled out correctly."),$("#getStartedModal").modal("hide")):window.location.href=r("error")}}),!1}))})),$("[data-contactform-next]").on("click",(function(){if("hire"==o&&1==a){var e=$('[data-contactform="hire"]'),t=e.find("[name='fields[first_name]']").val(),n=e.find("[name='fields[url]']").val();if(""!==t&&t==n||t.includes("whgj789.com")||n.includes("whgj789.com"))return!1}
1$("[data-contactform="+o+"]").parsley(l).whenValidate({group:"block-"+o+"-"+a}).done((function(){if("hire"==o&&1==a){$('[data-contactform="hire"]');window.SITE.Tracking.GA.recordEvent("FreeConsult CTA Modal",o+" - Step 1 Submit","")}s(o,parseInt(a)+1)}))})),$("[data-contactform-back]").on("click",(function(){s(o,parseInt(a)-1)}));$("[data-contactform-hire-budget]");$("[data-contactform-checkboxesgroup] input[type=checkbox]").change((function(){var e=$(this).parents("[data-contactform-checkboxesgroup]").first(),t=e.find("input[type=checkbox]"),n=e.find("[data-contactform-checkboxesgroup-txt]"),o="";t.filter(":checked").each((function(){""!==o&&(o+=";"),o+=$(this).val()})),n.val(o),n.trigger("change")})),$("[data-contactform-checkboxesgroup-other-input]").on("change",(function(){var e=$(this).is(":checked"),t=$(this).parents("[data-contactform]").find("[data-contactform-checkboxesgroup-other-text]");t.toggle(e),e?t.find("textarea").attr("required","required"):t.find("textarea").removeAttr("required")})),$("[data-contactform-checkboxesgroup-other-input2]").on("change",(function(){var e=$
1(this).is(":checked"),t=$(this).parents("[data-contactform]").find("[data-contactform-checkboxesgroup-other-text2]");t.toggle(e),e?t.find("textarea").attr("required","required"):t.find("textarea").removeAttr("required")})),$('select[name="fields[referrer]"]').on("change",(function(){console.log("referrer changed"),$(this).val().toLowerCase().search("goog")>-1?$("#fcSearchTermInput").show():$("#fcSearchTermInput").hide()})),App.utils.isPage("level")&&s("learn",1)}},function(e,t,n){"use strict";var o;o=function(){var e;function t(){if(e)return e;e=this}return e=null,t.prototype.isPage=function(){var e,t;return t=!1,-1!==arguments[0].indexOf("|")?(e=arguments[0].split("|"),$.each(e,(function(){if($("body").hasClass("l-"+this))return t=!0}))):t=$("body").hasClass("l-"+arguments[0]),t},t.prototype.attachTo=function(){return arguments[0].utils=this},t.prototype.scrollTo=function(){var e,t,n;if(n=$(arguments[0]),t=arguments[1]||0,e=arguments[2]||function(){},n.length)return $("html,body").animate({scrollTop:n.offset().top+t},600).promise().done((function(){return e()}))},t}(),t.a=new o},function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}n.d(t,"a",(function(){return a}));var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultDuration="1d",this.delay=this.setParam(t,"delay",15),this.cookieDuration=this.setCookieDuration(t,this.defaultDuration),this.cookieName=this.setParam(t,"cookieName","sgExitIntentPopup"),this.cookieValue=this.setParam(t,"cookieValue","shown"),this.openModal=this.setParam(t,"openModal",null),this.sessionOnly=this.setParam(t,"sessionOnly",!1),this.showOncePerSession=this.setParam(t,"showOncePerSession",!0)}var t,n,a;return t=e,(n=[{key:"setParam",value:function(e,t,n){return e&&e.hasOwnProperty(t)?e[t]:n}},{key:"setCookieDuration",value:function(e,t){var n=t;if(e&&e.hasOwnProperty("cookieDuration")){var o=e.cookieDuration.match(/^(\d+)([a-zA-Z])$/);if(null!==o)switch(o[2]){case"s":n=1e3*o[1];break;case"m":n=60*o[1]*1e3;break;case"h":n=60*o[1]*60*1e3;break;case"d":n=24*o[1]*60*60*1e3}}return n}},{key:"domReady",value:function(e){"undefined"!=typeof document&&e&&("interactive"===document.readyState||"complete"===document.readyState?e():document.addEventListener("DOMContentLoaded",e))}},{key:"shouldFire",value:function(){return!this.showOncePerSession||this.showOncePerSession&&null===this.getCookie(this.cookieName)}},{key:"setCookie",value:function(e,t,n,o){if("undefined"==typeof document||!e)return null;var a="";if(o)a="; expires=0";else if(n){var i=new Date;i.setTime(i.getTime()+n),a="; expires="+i.toGMTString()}document.cookie=e+"="+t+a+"; path=/"}},{key:"getCookie",value:function(e){if("undefined"==typeof document||!e)return null;for(var t=document.cookie?document.cookie.split("; "):[],n=0;n<t.length;n++){var o=t[n].split("=");if(decodeURIComponent(o[0].trim())==e)return decodeURIComponent(o[1].trim())}return null}},{key:"onMouseOut",value:function(e){(e=e||window.event)&&(e.target&&e.target.nodeName&&["input","select"].indexOf(e.target.nodeName.toLowerCase())>=0||null!=e.relatedTarget&&null!=e.toElement||this.shouldFire()&&this.openModal&&(this.setCookie(this.cookieName,this.cookieValue,this.cookieDuration,this.sessionOnly),this.openModal()))}},{key:"init",value:function(){var e=this;this.domReady((function(){e.shouldFire()&&setTimeout(document.addEventListener("mouseout",e.onMouseOut.bind(e)),1e3*parseInt(e.delay))}))}}])&&o(t.prototype,n),a&&o(t,a),e}()},function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}n.d(t,"a",(function(){return a}));var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialized=!1,this.headline=this.setParam(t,"headline",""),this.copy=this.setParam(t,"copy",""),this.cta=this.setParam(t,"cta",""),this.onOpen=this.setParam(t,"onOpen",null),this.onSubmit=this.setParam(t,"onSubmit",null),this.popupSelector=this.setParam(t,"popupSelector",null)}var t,n,a;return t=e,(n=[{key:"domReady",value:function(e){"undefined"!=typeof document&&e&&("interactive"===document.readyState||"complete"===document.readyState?e():document.addEventListener("DOMContentLoaded",e))}},{key:"setParam",value:function(e,t,n){return e&&e.hasOwnProperty(t)?e[t]:n}},{key:"setText",value:function(e,t){var n=document.querySelector(this.popupSelector+" [data-exit-intent-"+e+"]");n&&t&&(n.innerHTML=this[e])}},{key:"initialize",value:function(){this.initialized||(this.setText("headline",this.headline),this.setText("cta",this.cta),this.addEvents(),this.initialized=!0)}},{key:"open",value:function(){this.popupSelector&&!document.querySelector(".modal.show")&&(this.initialize(),this.showIntro(),$(this.popupSelector).modal("show"),$(this.popupSelector).on("shown.bs.modal",(function(e){$("[data-lazy-modal-src]").each((function(){var e=$
1(this);e.attr("src",e.data("lazy-modal-src"))}))})),this.onOpen&&this.onOpen())}},{key:"show",value:function(e){document.querySelectorAll(this.popupSelector+" "+e).forEach((function(e){e.classList.remove("hidden")}))}},{key:"hide",value:function(e){document.querySelectorAll(this.popupSelector+" "+e).forEach((function(e){e.classList.add("hidden")}))}},{key:"showIntro",value:function(){this.show("[data-exit-intent-intro]"),this.hide("[data-exit-intent-form]"),this.hide("[data-exit-intent-step]"),this.hide("[data-exit-intent-nav]")}},{key:"showForm",value:function(e){this.hide("[data-exit-intent-intro]"),this.show("[data-exit-intent-form="+e+"]"),this.show("[data-exit-intent-step="+e+"-1]"),this.show("[data-exit-intent-nav]")}},{key:"stepBack",value:function(e){var t=parseInt(e.replace(/^\w+-/,""))-1;this.hide('[data-exit-intent-step="'+e+'"]'),0==t?this.showIntro():this.show("[data-exit-intent-step="+e.replace(/\d+$/,t)+"]")}},{key:"stepForward",value:function(e){var t=parseInt(e.replace(/^\w+-/,""))+1;this.hide('[data-exit-intent-step="'+e+'"]'),this.show('[data-exit-intent-step="'+e.replace(/\d+$/,t)+'"]')}},{key:"submit",value:function(e){var t=this,n=$('[data-exit-intent-form="'+e.replace(/-\d+$/,"")+'"]');n.parsley({errorsContainer:function(e){return e.$element.parents(".form-group, .checkbox-group")}}).whenValidate({group:e}).done((function(){t.onSubmit&&t.onSubmit(),n.submit()}))}},{key:"addEvents",value:function(){var e=this;document.querySelectorAll(this.popupSelector+" [data-exit-intent-cta]").forEach((function(t){t.addEventListener("click",(function(t){e.showForm(t.currentTarget.dataset.exitIntentCta)}))})),document.querySelectorAll(this.popupSelector+" [data-exit-intent-action]").forEach((function(t){t.addEventListener("click",(function(t){switch(t.currentTarget.dataset.exitIntentAction){case"back":e.stepBack(t.currentTarget.dataset.exitIntentStep);break;case"next":e.stepForward(t.currentTarget.dataset.exitIntentStep);break;case"submit":e.submit(t.currentTarget.dataset.exitIntentStep)}}))}))}}])&&o(t.prototype,n),a&&o(t,a),e}()},function(e,t,n){e.exports=function(){"use strict";function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{tolerance:0};if(!e)throw new Error("You should specify the element you want to test");"string"==typeof e&&(e=document.querySelector(e));var n=e.getBoundingClientRect();return n.bottom-t.tolerance>0&&n.right-t.tolerance>0&&n.left+t.tolerance<(window.innerWidth||document.documentElement.clientWidth)&&n.top+t.tolerance<(window.innerHeight||document.documentElement.clientHeight)}function t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{tolerance:0,container:""};if(!e)throw new Error("You should specify the element you want to test");if("string"==typeof e&&(e=document.querySelector(e)),"string"==typeof t&&(t={tolerance:0,container:document.querySelector(t)}),"string"==typeof t.container&&(t.container=document.querySelector(t.container)),t instanceof HTMLElement&&(t={tolerance:0,container:t}),!t.container)throw new Error("You should specify a container element");var n=t.container.getBoundingClientRect();return e.offsetTop+e.clientHeight-t.tolerance>t.container.scrollTop&&e.offsetLeft+e.clientWidth-t.tolerance>t.container.scrollLeft&&e.offsetLeft+t.tolerance<n.width+t.container.scrollLeft&&e.offsetTop+t.tolerance<n.height+t.container.scrollTop}function n(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{tolerance:0},a=Object.keys(n),i=void 0;a.length&&(i=o.container===window?e:t,a.forEach((function(e){n[e].nodes.forEach((function(t){if(i(t.node,o)?(t.wasVisible=t.isVisible,t.isVisible=!0):(t.wasVisible=t.isVisible,t.isVisible=!1),!0===t.isVisible&&!1===t.wasVisible){if(!n[e].enter)return;Object.keys(n[e].enter).forEach((function(o){"function"==typeof n[e].enter[o]&&n[e].enter[o](t.node,"enter")}))}if(!1===t.isVisible&&!0===t.wasVisible){if(!n[e].leave)return;Object.keys(n[e].leave).forEach((function(o){"function"==typeof n[e].leave[o]&&n[e].leave[o](t.node,"leave")}))}}))})))}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tolerance:0,debounce:100,container:window};this.options={},this.trackedElements={},Object.defineProperties(this.options,{container:{configurable:!1,enumerable:!1,get:function(){var t=void 0;return"string"==typeof e.container?t=document.querySelector(e.container):e.container instanceof HTMLElement&&(t=e.container),t||window},set:function(t){e.container=t}},debounce:{get:function(){return!1!==e.debounce&&(parseInt(e.debounce,10)||100)},set:function(t){e.debounce=t}},tolerance:{get:function(){return parseInt(e.tolerance,10)||0},set:function(t){e.tolerance=t}}}
1),Object.defineProperty(this,"_scroll",{enumerable:!1,configurable:!1,writable:!1,value:this._debouncedScroll.call(this)}),this.attach()}return Object.defineProperties(o.prototype,{_debouncedScroll:{configurable:!1,writable:!1,enumerable:!1,value:function(){var e=this,t=void 0;return!1===this.options.debounce?function(){return n(e.trackedElements,e.options)}:function(){clearTimeout(t),t=setTimeout((function(){n(e.trackedElements,e.options)}),e.options.debounce)}}},attach:{configurable:!1,writable:!1,enumerable:!1,value:function(){var e=this,t=this.options.container;t instanceof HTMLElement&&"static"===window.getComputedStyle(t).position&&(t.style.position="relative"),this._observer=function(e,t){var n=window.MutationObserver||window.WebKitMutationObserver;if(n){var o=new n(t);return o.observe(e,{childList:!0,subtree:!0}),o}return e.addEventListener("DOMNodeInserted",t,!1),e.addEventListener("DOMNodeRemoved",t,!1),null}(document.querySelector("body"),(function(){Object.keys(e.trackedElements).forEach((function(t){e.on("enter",t),e.on("leave",t)}))})),t.addEventListener("scroll",this._scroll,{passive:!0}),window.addEventListener("resize",this._scroll,{passive:!0}),this._scroll(),this.attached=!0}},destroy:{configurable:!1,writable:!1,enumerable:!1,value:function(){this._observer instanceof MutationObserver&&this._observer.disconnect(),this.options.container.removeEventListener("scroll",this._scroll),window.removeEventListener("resize",this._scroll),this.attached=!1}},off:{configurable:!1,writable:!1,enumerable:!1,value:function(e,t,n){var o=Object.keys(this.trackedElements[t].enter||{}),a=Object.keys(this.trackedElements[t].leave||{});if({}.hasOwnProperty.call(this.trackedElements,t))if(n){if(this.trackedElements[t][e]){var i="function"==typeof n?n.name:n;delete this.trackedElements[t][e][i]}}else delete this.trackedElements[t][e];o.length||a.length||delete this.trackedElements[t]}},on:{configurable:!1,writable:!1,enumerable:!1,value:function(e,t,n){if(!e)throw new Error("No event given. Choose either enter or leave");if(!t)throw new Error("No selector to track");if(["enter","leave"].indexOf(e)<0)throw new Error(e+" event is not supported");({}).hasOwnProperty.call(this.trackedElements,t)||(this.trackedElements[t]={}),this.trackedElements[t].nodes=[];for(var o=0,a=document.querySelectorAll(t);o<a.length;o++){var i={isVisible:!1,wasVisible:!1,node:a[o]};this.trackedElements[t].nodes.push(i)}"function"==typeof n&&(this.trackedElements[t][e]||(this.trackedElements[t][e]={}),this.trackedElements[t][e][n.name||"anonymous"]=n)}}}),o.check=e,o}()},function(e,t){!function(){for(var e=document.querySelectorAll(".youtube"),t=0;t<e.length;t++){var n="https://img.youtube.com/vi/"+e[t].dataset.embed+"/sddefault.jpg";e[t].dataset.cover&&(n=e[t].dataset.cover),e[t].style.backgroundImage="url("+n+")",e[t].querySelector(".youtube-play-button").addEventListener("click",(function(e){_this=this.parentNode;var t=document.createElement("iframe");t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen",""),t.setAttribute("allow","autoplay"),t.setAttribute("src","https://www.youtube.com/embed/"+_this.dataset.embed+"?rel=0&showinfo=0&autoplay=1"),_this.innerHTML="",_this.appendChild(t)}))}}()},function(e,t){!function(){for(var e=document.querySelectorAll(".audio-container"),t=0;t<e.length;t++)e[t].querySelector(".audio-play-button").addEventListener("click",(function(e){_this=this.parentNode;var t=document.createElement("audio");t.setAttribute("frameborder","0"),t.setAttribute("controls",""),t.setAttribute("preload","none"),t.setAttribute("autoplay",""),t.setAttribute("type","audio/mpeg"),t.setAttribute("class","blogGrid-item-audio"),t.setAttribute("style","width:100%"),t.setAttribute("src",_this.dataset.audioEmbed+""),_this.querySelector(".blogGrid-item-player").appendChild(t),_this.classList.add("is-initialized")}))}()},function(e,t){window.gtag;var n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.log(t)},o=function(e){n("data-gaevent",e);var t=e.split("|");if(t.length<2)n("skip, missing event data in data- attribute");else{var o=t[0],a=t[1],i=t[2]||"",r=(t[3],{hitType:"event",eventCategory:o,eventAction:a,eventLabel:i});n("registering event w/ data:",r,window.gtag),window.gtag("event",r.eventAction,{event_category:r.eventCategory,event_label:r.eventLabel,value:r.eventValue}),n("done")}};window.gtag&&([].forEach.call(document.querySelectorAll("[data-gaevent]"),(function(e){e.addEventListener("click",(function(){o(this.getAttribute("data-gaevent"))}),!1)})),[].forEach.call(document.querySelectorAll(".mainmenu .menu-item a"),(function(e){e.addEventListener("click",(function(){o(["mainmenu","item_click",this.innerHTML].join("|"))}),!1)})))},function(e,t,n){"use strict";n.r(t);var o=n(1),a=n(2),i=n(0),r=(n(7),n(8),n(3)),s=(n(9),n(4)),l=n(5),c=n(6),u=n.n(c);window.App=window._App_||{},window.App.$=$,window.App.utils=r.a,window.App.ExitIntentPopup=s.a,window.App.ExitIntentModal=l.a,Object(o.a)($),Object(a.a)($),window.is_mobile=function(){return $(window).width()<1024},$((function(){("/"===document.location.pathname&&"#freeConsultation"===document.location.hash&&($(".modal").modal("hide"),$("#getStartedModal").modal("show")),"/"===document.location.pathname&&"#aiSEOOffer"===document.location.hash&&($(".modal").modal("hide"),$("#offerModal").modal("show")),setTimeout((function(){$("body").removeClass("is-loading")}),10),$("[data-scrollto]").on("click",(function(){$target=$(this).attr("data-scrollto"),App.utils.scrollTo($target)})),is_mobile())?$(".os").addClass("on"):new u.a({tolerance:0,debounce:100,container:window}).on("enter",".os",(function(e,t){$(e).addClass("on")}));function e(){$(this).is("select")?$(this).parent().toggleClass("has-content",$(this).val().length>0):$(this).toggleClass("has-content",$(this).val().length>0)}function t(e){var t=document.location.origin;"function"==typeof gtag&&(gtag("event",e,{event_category:"offer_modal",event_label:t}),console.log("GA event sent:",e,t))}$(".form-group input").on("blur",e),$(".form-group select").on("blur change",e),$(".form-group input").each(e),$("#getStartedModal").on("shown.bs.modal",(function(e){window.SITE.Tracking.GA.re
1cordEvent("Free Consult","Popup opened",""),$('a[data-contactform-show="hire-1"]').one("click",(function(e){e.preventDefault(),window.SITE.Tracking.GA.recordEvent("Free Consult","DFY selected","")})),$('a[data-contactform-show="learn-1"]').one("click",(function(e){e.preventDefault(),window.SITE.Tracking.GA.recordEvent("Free Consult","DIY selected","")}))})),$("#fauxChatFormModal").on("shown.bs.modal",(function(){var e=$(".form-step:visible").find(".message");e.length>0&&i.a.typeMessage(e)})),i.a.init(),$("#singlegrainModal, #offerModal").on("shown.bs.modal",(function(){t("offer_modal_open")})),$("#singlegrainModal, #offerModal").on("hidden.bs.modal",(function(){t("offer_modal_close")})),$('#singlegrainModal button[type="submit"], #offerModal button[type="submit"]').on("click",(function(){t("offer_modal_submit")}))}))}]);
2//# sourceMappingURL=site.common.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.