PageSourceSearch

https://www.superiordrain.com/wp-content/cache/min/1/schedule-engine-v3.js?ver=1789993795

js superiordrain.com collected 2026-10-04 07:53:01 UTC 12,988 bytes, 2 lines download raw bytes

1/*! [email protected] */
2!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ScheduleEngine={})}(this,(function(e){"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function n(e,t,n,o){return new(n||(n=Promise))((function(i,r){function s(e){try{c(o.next(e))}catch(e){r(e)}}function a(e){try{c(o.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((o=o.apply(e,t||[])).next())}))}function o(e,t){var n,o,i,r,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,o=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){s.label=r[1];break}if(6===r[0]&&s.label<i[1]){s.label=i[1],i=r;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(r);break}i[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}function i(e,t){for(var n=0,o=t.length,i=e.length;n<o;n++,i++)e[i]=t[n];return e}var r=[],s=[];!function(e,t){if(e&&"undefined"!=typeof document){var n,o=!0===t.prepend?"prepend":"append",i=!0===t.singleTag,a="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(i){var c=r.indexOf(a);-1===c&&(c=r.push(a)-1,s[c]={}),n=s[c]&&s[c][o]?s[c][o]:s[c][o]=l()}else n=l();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function l(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),i=0;i<n.length;i++)e.setAttribute(n[i],t.attributes[n[i]]);var r="prepend"===o?"afterbegin":"beforeend";return a.insertAdjacentElement(r,e),e}}(".se-widget-iframe-container {\n  display: block;\n  height: 100%;\n  left: -9999px;\n  position: absolute;\n  top: -9999px;\n  transition: none;\n  width: 100%;\n  z-index: 2147483647;\n}\n\n.se-widget-iframe-container-static {\n  height: auto;\n  left: auto;\n  position: static;\n  top: auto;\n  width: auto;\n}\n\n.se-widget-iframe {\n  border: 0;\n  height: 100%;\n  margin: 0;\n  overflow-y: auto;\n  -webkit-overflow-scrolling: touch;\n  width: 100%;\n}\n",{});var a="data-static",c="se-widget-iframe-container",l="se-widget-iframe",u=c,d="se-show-modal-appointments",p="se-show-modal-repair",f="se-show-modal-sales",m="se-show-modal",y="se_action";window.seEventListeners||(window.seEventListeners={});var g=window.seEventListeners;function h(e,t){g[e]||(g[e]=[]),g[e].push(t)}function v(e){g[e.type]&&g[e.type].forEach((function(t){return t(e)}))}function w(e,t,n,o){return new b(e,t,n,o)}var b=function(e,t,n,o){this.analyticsKey=t,this.data=n,this.nativeEvent=new Event(e,o),this.type=e},_=null;function E(){return _}function P(e,t){return void 0===e&&(e=E()),new Promise((function(n){if(!e)throw new Error("ScheduleEngine: Could not find iframe.");if(document.getElementById(l))return n();if(h("AppReady",(function(){n()})),t){if(!(o=document.getElementById(t)))throw new Error('ScheduleEngine: Could not find element with "id" of "'+t+'".');o.className+="se-widget-iframe-container se-widget-iframe-container-static",o.appendChild(e)}else{var o;(o=document.createElement("div")).id=c,o.style.bottom="",o.style.left="-9999px",o.style.right="",o.style.top="-9999px",o.style.visibility="hidden",o.className+=" "+u,o.appendChild(e),document.body.insertBefore(o,document.body.firstChild)}}))}var C=null,x=null,k={x:0,y:0};function F(){return C}function L(){return x}function S(){return k}function T(e){C=e}function B(e){x=e}var I=!1;function O(){return I}function A(e,t){var n=document.getElementById(e);if(n&&n.getAttribute(a))throw new Error("Cannot call "+t+" when "+'data-static="true"')}var j=[];function N(){return j}function R(e){void 0===e&&(e=[]),j=e}function K(e,t){void 0===e&&(e=l),void 0===t&&(t=c);var n,o=document.getElementById(t),i=document.getElementById(e),r=O();if(o&&i&&r){var s=document.body,a=document.getElementsByTagName("html")[0];T(F()||{height:{priority:s.style.getPropertyPriority("height"),value:s.style.getPropertyValue("height")},overflow:{priority:s.style.getPropertyPriority("overflow"),value:s.style.getPropertyValue("overflow")},padding:{priority:s.style.getPropertyPriority("padding"),value:s.style.getPropertyValue("padding")},position:{priority:s.style.getPropertyPriority("position"),value:s.style.getPropertyValue("position")}}),B(L()||{height:{priority:a.style.getPropertyPriority("height"),value:a.style.getPropertyValue("height")},overflow:{priority:a.style.getPropertyPriority("overflow"),value:a.style.getPropertyValue("overflow")}}),n={x:window.pageXOffset,y:window.pageYOffset},k=n,o.style.setProperty("bottom","0"),o.style.setProperty("left","0"),o.style.setProperty("right","0"),o.style.setProperty("top","0"),o.style.setProperty("visibility","visible"),s.style.setProperty("overflow","hidden"),s.style.setProperty("height","100%","important"),s.style.setProperty("padding","0","important"),s.style.setProperty("position","static","important"),a.style.setProperty("height","100%"),a.style.setProperty("overflow","hidden"),window.scrollTo(0,0)}}function U(e,t,n){A(e,K.name);var o=document.getElementById(e);if(n&&(t.options=n),o){[m,d,p,f].includes(t.type)&&K(e);var i=o.src,r=N(),s=r.filter((function(e){return-1!==i.indexOf(e)}));(s.length>0?s:r).forEach((function(e){var n;null===(n=o.contentWindow)||void 0===n||n.postMessage(t,e)}))}}function V(e){return n(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return A(l,V.name),[4,P()];case 1:return t.sent(),U(l,{type:m},e),[2]}}))}))}function M(){A(l,M.name);var e=document.getElementById(c),t=F(),n=L(),o=S();if(e&&t&&n){var i=document.body,r=document.getElementsByTagName("html")[0];e.style.setProperty("bottom",""),e.style.setProperty("left","-9999px"),e.style.setProperty("right",""),e.style.setProperty("top","-9999px"),e.style.setProperty("visibility","hidden"),Object.keys(t).forEach((function(e){t&&i.style.setProperty(e,t[e].value,t[e].priority)}
2)),Object.keys(n).forEach((function(e){n&&r.style.setProperty(e,n[e].value,n[e].priority)})),T(null),B(null),window.scrollTo(o.x,o.y)}}function D(e){return n(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return A(l,D.name),[4,P()];case 1:return t.sent(),U(l,{type:d},e),[2]}}))}))}function z(e){return n(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return A(l,z.name),[4,P()];case 1:return t.sent(),U(l,{type:p},e),[2]}}))}))}function $(e){return n(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return A(l,$.name),[4,P()];case 1:return t.sent(),U(l,{type:f},e),[2]}}))}))}var q=null;function G(){var e;I=!0;var t,n,o=new URL(window.location.href).searchParams,i=o.get("clid"),r=o.get("fbclid"),s=o.get("gclid"),a=o.get(y),c=o.get("se_affiliate"),u=o.get("se_campaign"),d=o.get("se_custom_field_1"),p=o.get("se_custom_field_2"),f=o.get("se_custom_field_3"),m=o.get("se_custom_field_4"),g=o.get("se_custom_field_5"),h=o.get("se_custom_field_6"),v=o.get("se_custom_field_7"),w=o.get("se_custom_field_8"),b=o.get("se_custom_field_9"),_=o.get("se_custom_field_10"),E=o.get("se_lead_source"),P=o.get("se_subcontractor"),C=o.get("utm_campaign"),x=o.get("utm_content"),k=o.get("utm_medium"),F=o.get("utm_source"),L=o.get("utm_term"),S=!!(i||r||s||c||u||d||p||f||m||g||h||v||w||b||_||E||P||C||x||k||F||L);if(a)try{t=JSON.parse(window.atob(decodeURIComponent(a)))}catch(e){console.error("ScheduleEngine: Could not parse se_action URL parameter because of the following error: ",e)}else S&&(t={options:{},type:"se-send-source-analytics"});t&&(n=null===(e=t.options)||void 0===e?void 0:e.flowKey,q=n,t.options=t.options||{},t.options.affiliate=c||t.options.affiliate,t.options.campaign=u||t.options.campaign,t.options.clid=i||t.options.clid,t.options.customField1=d||t.options.customField1,t.options.customField2=p||t.options.customField2,t.options.customField3=f||t.options.customField3,t.options.customField4=m||t.options.customField4,t.options.customField5=g||t.options.customField5,t.options.customField6=h||t.options.customField6,t.options.customField7=v||t.options.customField7,t.options.customField8=w||t.options.customField8,t.options.customField9=b||t.options.customField9,t.options.customField10=_||t.options.customField10,t.options.fbclid=r||t.options.fbclid,t.options.gclid=s||t.options.gclid,t.options.leadSource=E||t.options.leadSource,t.options.subcontractor=P||t.options.subcontractor,t.options.utmCampaign=C||t.options.utmCampaign,t.options.utmContent=x||t.options.utmContent,t.options.utmMedium=k||t.options.utmMedium,t.options.utmSource=F||t.options.utmSource,t.options.utmTerm=L||t.options.utmTerm,U(l,t))}function H(e){var n;if(N().includes(e.origin))switch(e.data.type){case"se-app-ready":O()||(G(),v(w("AppReady",null!==(n=e.data.analyticsKey)&&void 0!==n?n:q)));break;case"se-hide-modal":M(),v(w("Hide",e.data.analyticsKey));break;case m:V();break;case p:z();break;case f:$();break;case d:D();break;case"se-send-client-google-analytics":e.data.ga&&function(e){var n,o,i=e.action,r=e.analyticsKey,s=e.category,a=e.gaAnalyticsDimension,c=e.label,l=e.value;window.dataLayer=window.dataLayer||[],window.dataLayer.push(t({event:i,event_category:s,event_label:c,value:l},a&&r&&((n={})[a]=r,n))),window.ga&&window.ga("send","event",s,i,c,l,t({},a&&r&&((o={})[a]=r,o)))}(e.data.ga);break;case"se-event":var o=e.data.eventName;o&&v(w(o,e.data.analyticsKey))}}try{!function(e){var t=document.getElementById("se-widget-embed"),n=e||(t?t.dataset:{}),o=n.apiKey,r=void 0===o?null:o,s=n.defer,c=void 0===s?null:s,u=n.responsiveDisabled,d=void 0===u?null:u,p=n.staticContainerId,f=void 0===p?null:p;if(!r||0===r.length)throw new Error('ScheduleEngine: Could not find "data-api-key" attribute on script tag');var m=!!new URL(window.location.href).searchParams.get(y),g=!!f,h=null!==d&&"false"!==d;window.addEventListener("message",H,!1),document.addEventListener("click",(function(e){var t=e.target;t instanceof Element&&t.closest(".se-booking-show")&&V()})),fetch("https://api.scheduleengine.net/se-web-api/v1/config/widget/embed?api_key="+r).then((function(e){return e.json()})).then((function(e){var t=e.embed_url,o=e.valid_origins;if(t&&o){if(!Array.from(document.getElementsByTagName("meta")).some((function(e){return"viewport"===e.name.toLowerCase()}))&&!h){var r=document.createElement("meta");r.name="viewport",r.content="width=device-width, initial-scale=1, shrink-to-fit=no",document.getElementsByTagName("head")[0].appendChild(r)}var s=document.createElement("iframe");s.className="se-widget-iframe",s.id=l,s.src=""+t+function(e){var t=window.location.href,n=window.document.referrer;return"?"+i(i([],Object.entries(e).reduce((function(e,t){var n=t[0],o=t[1];if(!o)return e;if("staticContainerId"===n)return i(i([],e),["static=true"]);var r=n.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase()+"="+encodeURIComponent(o);return i(i([],e),[r])}),[])),["client_url="+encodeURIComponent(t),"client_referrer="+encodeURIComponent(n)]).join("&")}(n),g&&s.setAttribute(a,""),(g||m||!c)&&(document.body&&"loading"!==document.readyState?P(s,f):document.addEventListener("DOMContentLoaded",(function(){P(s,f)}
2))),_=s,R(o)}})).catch((function(){throw new Error("ScheduleEngine: Could not establish a connection with the ScheduleEngine configuration endpoint. Please contact us if this error continues to occur.")}))}()}catch(e){console.log(e)}e.addEventListener=h,e.hide=M,e.removeEventListener=function(e,t){g[e]||(g[e]=g[e].filter((function(e){return t===e})))},e.resetForSeRouter=function(){window.removeEventListener("message",H,!1)},e.setThemeKey=function(e,t){return new Promise((function(n){U(l,{flowKey:t,themeKey:e,type:"se-set-theme-key"}),window.addEventListener("message",(function e(t){N().includes(t.origin)&&"se-theme-ready"===t.data.type&&(window.removeEventListener("message",e),n(t))}))}))},e.show=V,e.showAppointments=D,e.showRepair=z,e.showSales=$,Object.defineProperty(e,"__esModule",{value:!0})}))

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.