"use strict";function ownKeys(t,e){var n,o=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)),o}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach(function(e){_defineProperty(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(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)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var t,a,g=JSON.parse('{"N1":"https://storage.googleapis.com/widget.kenect.com/","GF":"https://storage.googleapis.com/widget.kenect.com/build/index.html.gz","YL":"resources/button.html.gz","P7":"resources/prompt.html.gz","CZ":"resources/comment.svg.gz","cr":"resources/close.svg.gz","wp":"resources/close-white.svg.gz","E8":"https://storage.googleapis.com/widget.kenect.com/instances","Gp":"resources/scripts/newRelic.js.gz"}'),i=function(e,t){var n,o,a=(o=e.getItem(t.key))?JSON.parse(o):{},i=a.updated_at;return!i||(n=new Date(i),o=t.expiry,i=36e5*(o=o||24),o=new Date,Math.abs(n.getTime()-o.getTime())>=i)?(e.setItem(t.key,JSON.stringify({})),{}):a.visits},r={key:"autopluck",expiry:24};function c(e){return t||(e=e||window,t=window.localStorage),t}function d(e){var t=c(),n=i(t,a);n[e]||(n[e]=0),n[e]+=1,(e={}).visits=n,e.updated_at=(new Date).toISOString(),t.setItem(a.key,JSON.stringify(e))}function e(e,t){function n(e){d(t.location.toString()),setInterval(function(){t.location.toString()!==l&&(d(t.location.toString()),l=t.location.toString())},2e3)}function o(t){return function(o,e){o=o||[],e=t||[];var a=Object.keys(o);return e.reduce(function(e,t){var n=0;return t=(t||"").toLowerCase(),a.forEach(function(e){e.toLowerCase().match(t.toLowerCase())&&(n+=o[e])}),e[t]=n,e},{})}((e=c(),i(e,a)),t);var e}return t=t||window,s=t.document,a=Object.assign({},r,e),"complete"===s.readyState||"loading"!==s.readyState&&!s.documentElement.doScroll?n():s.addEventListener("DOMContentLoaded",n),{matches:o,contains:function(e){return 0<o([e])[e]}}}var s,l;function m(e,t){(n=document.querySelectorAll("#widget-style-".concat(t)))&&n.length&&n.forEach(function(e){return e.parentNode.removeChild(e)});var n,t=(n=t,(t=document.createElement("style")).id="widget-style-".concat(n),t.type="text/css",t);t.innerHTML=e,document.head.appendChild(t)}function E(e){e=e.token;return"\n.reset-".concat(e," {\n  all: unset;\n}\n.iframe-").concat(e," {\n  border: none;\n  width: 100%;\n  height: 100%;\n  z-index: 2147483000;\n  box-sizing: border-box;\n}\n.display-none-").concat(e," {\n  display: none !important;\n}\n.hide-prompt-").concat(e," {\n  height: 0 !important;\n  width: 0 !important;\n  overflow: hidden !important;\n}\n.shadow-").concat(e," {\n  box-shadow: 0px 6px 10px rgba(26, 26, 26, 0.14), 0px 1px 18px rgba(26, 26, 26, 0.12), 0px 4px 4px rgba(26, 26, 26, 0.2);\n}\n.visibility-hidden-").concat(e," {\n  visibility: hidden;\n}\n  ")}function _(e){e=e.token;return"\n@media only screen and (max-width: 400px) {\n  .iframe-".concat(e," {\n    height: 100%;\n    width: 100%;\n    border-radius: 0;\n    left: 0;\n    top: 0;\n  }\n  .widget-iframe-").concat(e," {\n    max-height: 100%;\n  }\n  #prompt-").concat(e," {\n    max-width: 90vw;\n  }\n}\n  ")}var n="Please consider enabling localStorage, caching and/or cookies on this browser for the best user experience.";function u(e){if(!e)throw new Error("Widget token not declared for session");var t="widget-session-".concat(e),n=I(t),o=n?JSON.parse(n):{},a=null==o?void 0:o.id,e=(null==o?void 0:o.startTime)||0,n=(null==o?void 0:o.latestActivity)||0,o=(new Date).getTime(),n=n&&864e5<o-n,o={id:n||!a?"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}):a,startTime:n||!e?o:e,latestActivity:o};return b(t,JSON.stringify(o)),o}function b(e,t){try{localStorage.setItem(e,t)}catch(e){console.warn(n)}}function I(e){try{return localStorage.getItem(e)}catch(e){console.warn(n)}}var f="EVENT_WIDGET_OPENED",p="EVENT_WIDGET_CLOSED",h="EVENT_SEND_MESSAGE",T="EVENT_PROMPT_CLOSED",S="WIDGET_LOADED",k=function(){var e;"true"===(null===(e=I("KENECT_DEBUGGING"))||void 0===e?void 0:e.toLocaleLowerCase())&&(e=console).log.apply(e,arguments)};function x(e,t,n,o){var a=t.height,i=t.width,t=e.token,e=document.getElementById(n),n=document.getElementById("".concat(n,"-iframe"));o&&e.classList.remove("visibility-hidden-".concat(t)),n.setAttribute("style","height:".concat(a,"px; width:").concat(i,"px; min-height:").concat(a,"px; min-width:").concat(i,"px; "))}function O(e,t,n,o){var a=e.token,i=e.buttonMessage,r=document.getElementById(t),e=document.createElement("iframe");e.src=n,e.id="".concat(t,"-iframe"),e.className="iframe-".concat(a),"function"==typeof o?((t=document.createElement("button")).className="reset-".concat(a),t.onclick=o,t.tabIndex=0,t.title=i||"Text Us",t.appendChild(e),r.appendChild(t)):r.appendChild(e)}function D(e,t,n){document.getElementById(n?t:"".concat(t,"-iframe")).contentWindow.postMessage({type:"WIDGET_DATA",widgetInfo:e,URLS:{icon:"".concat(g.N1).concat(g.CZ),close:"".concat(g.N1).concat(g.cr),close_white:"".concat(g.N1).concat(g.wp)}},"*")}function L(e,t,n){var o=e.token,a=e.urlTrackingWords,i=document.getElementById("iframe-wrapper-".concat(o)),r=i.classList.contains("display-none-".concat(o)),e=document.getElementById("prompt-".concat(o));e&&e.classList.add("hide-prompt-".concat(o)),r?(i.classList.remove("display-none-".concat(o)),window.postMessage({type:f},"*")):(i.classList.add("display-none-".concat(o)),window.postMessage({type:p},"*"));i=document.getElementById("iframe-".concat(o));i&&(n={type:"PAGE_DATA",href:window.location.href,width:window.innerWidth,height:window.innerHeight,stats:t.matches(a),dealerId:n},k("PAGE_DATA",n),i.contentWindow.postMessage(n,"*"));o=document.getElementById("button-".concat(o,"-iframe"));o&&o.contentWindow.postMessage({type:"TOGGLE_WIDGET"},"*")}function v(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:60;try{t()}catch(e){var o=0,a=setInterval(function(){if(o<n)try{t(),clearInterval(a)}catch(e){o++}else clearInterval(a)},1e3)}}var o=setTimeout,w="undefined"!=typeof setImmediate?setImmediate:null;function y(e){return Boolean(e&&void 0!==e.length)}function P(){}function C(e){if(!(this instanceof C))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],j(e,this)}function A(n,o){for(;3===n._state;)n=n._value;0!==n._state?(n._handled=!0,C._immediateFn(function(){var e,t=1===n._state?o.onFulfilled:o.onRejected;if(null!==t){try{e=t(n._value)}catch(e){return void R(o.promise,e)}N(o.promise,e)}else(1===n._state?N:R)(o.promise,n._value)})):n._deferreds.push(o)}function N(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==_typeof(t)||"function"==typeof t)){var n=t.then;if(t instanceof C)return e._state=3,e._value=t,void M(e);if("function"==typeof n)return void j((o=n,a=t,function(){o.apply(a,arguments)}),e)}e._state=1,e._value=t,M(e)}catch(t){R(e,t)}var o,a}function R(e,t){e._state=2,e._value=t,M(e)}function M(e){2===e._state&&0===e._deferreds.length&&C._immediateFn(function(){e._handled||C._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)A(e,e._deferreds[t]);e._deferreds=null}function G(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function j(e,t){var n=!1;try{e(function(e){n||(n=!0,N(t,e))},function(e){n||(n=!0,R(t,e))})}catch(e){if(n)return;n=!0,R(t,e)}}C.prototype.catch=function(e){return this.then(null,e)},C.prototype.then=function(e,t){var n=new this.constructor(P);return A(this,new G(e,t,n)),n},C.prototype.finally=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},C.all=function(t){return new C(function(a,i){if(!y(t))return i(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(t);if(0===r.length)return a([]);var c=r.length;for(var e=0;e<r.length;e++)!function t(n,e){try{if(e&&("object"==_typeof(e)||"function"==typeof e)){var o=e.then;if("function"==typeof o)return o.call(e,function(e){t(n,e)},i),0}r[n]=e,0==--c&&a(r)}catch(n){i(n)}}(e,r[e])})},C.allSettled=function(n){return new this(function(a,e){if(!n||void 0===n.length)return e(new TypeError(_typeof(n)+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var i=Array.prototype.slice.call(n);if(0===i.length)return a([]);var r=i.length;for(var t=0;t<i.length;t++)!function t(n,e){if(e&&("object"==_typeof(e)||"function"==typeof e)){var o=e.then;if("function"==typeof o)return o.call(e,function(e){t(n,e)},function(e){i[n]={status:"rejected",reason:e},0==--r&&a(i)}),0}i[n]={status:"fulfilled",value:e},0==--r&&a(i)}(t,i[t])})},C.resolve=function(t){return t&&"object"==_typeof(t)&&t.constructor===C?t:new C(function(e){e(t)})},C.reject=function(n){return new C(function(e,t){t(n)})},C.race=function(a){return new C(function(e,t){if(!y(a))return t(new TypeError("Promise.race accepts an array"));for(var n=0,o=a.length;n<o;n++)C.resolve(a[n]).then(e,t)})},C._immediateFn="function"==typeof w?function(e){w(e)}:function(e){o(e,0)},C._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var W=C,F="".concat(g.N1).concat(g.Gp),V=(_createClass(B,[{key:"handleEvent",value:function(t){var e,n=this;switch(null==t||null===(e=t.data)||void 0===e?void 0:e.type){case h:v(function(){var e;return null===(e=window.newrelic)||void 0===e?void 0:e.addPageAction("EVENT_SEND_MESSAGE",{widgetType:n.widgetInfo.type,token:n.widgetInfo.token,eventData:t.data.data,session:u(null===(e=n.widgetInfo)||void 0===e?void 0:e.token)})});break;case f:v(function(){var e;return null===(e=window.newrelic)||void 0===e?void 0:e.addPageAction("EVENT_WIDGET_OPENED",{widgetType:n.widgetInfo.type,token:n.widgetInfo.token,eventData:t.data.data,session:u(null===(e=n.widgetInfo)||void 0===e?void 0:e.token)})});break;case p:v(function(){var e;return null===(e=window.newrelic)||void 0===e?void 0:e.addPageAction("EVENT_WIDGET_CLOSED",{widgetType:n.widgetInfo.type,token:n.widgetInfo.token,eventData:t.data.data,session:u(null===(e=n.widgetInfo)||void 0===e?void 0:e.token)})});break;case"EVENT_LOCATION_SELECTED":v(function(){var e;return null===(e=window.newrelic)||void 0===e?void 0:e.addPageAction("EVENT_LOCATION_SELECTED",{widgetType:n.widgetInfo.type,token:n.widgetInfo.token,eventData:t.data.data,session:u(null===(e=n.widgetInfo)||void 0===e?void 0:e.token)})});break;case"EVENT_DEPARTMENT_SELECTED":v(function(){var e;return null===(e=window.newrelic)||void 0===e?void 0:e.addPageAction("EVENT_DEPARTMENT_SELECTED",{widgetType:n.widgetInfo.type,token:n.widgetInfo.token,eventData:t.data.data,session:u(null===(e=n.widgetInfo)||void 0===e?void 0:e.token)})});break;case T:v(function(){var e;return null===(e=window.newrelic)||void 0===e?void 0:e.addPageAction("EVENT_PROMPT_CLOSED",{widgetType:n.widgetInfo.type,token:n.widgetInfo.token,eventData:t.data.data,session:u(null===(e=n.widgetInfo)||void 0===e?void 0:e.token)})});break;case"EVENT_KENECT_LOGO_PRESSED":v(function(){var e;return null===(e=window.newrelic)||void 0===e?void 0:e.addPageAction("EVENT_KENECT_LOGO_PRESSED",{widgetType:n.widgetInfo.type,token:n.widgetInfo.token,eventData:t.data.data,session:u(null===(e=n.widgetInfo)||void 0===e?void 0:e.token)})});break;case"EVENT_KENECT_LOGO_PRESSED_WITH_FORM_FILLED":v(function(){var e;return null===(e=window.newrelic)||void 0===e?void 0:e.addPageAction("EVENT_KENECT_LOGO_PRESSED_WITH_FORM_FILLED",{widgetType:n.widgetInfo.type,token:n.widgetInfo.token,eventData:t.data.data,session:u(null===(e=n.widgetInfo)||void 0===e?void 0:e.token)})});break;case"EVENT_WIDGET_ERROR":v(function(){var e;return null===(e=window.newrelic)||void 0===e?void 0:e.noticeError("EVENT_WIDGET_ERROR",{widgetType:n.widgetInfo.type,token:n.widgetInfo.token,eventData:t.data.data,session:u(null===(e=n.widgetInfo)||void 0===e?void 0:e.token)})});break;case S:v(function(){var e;return null===(e=window.newrelic)||void 0===e?void 0:e.addPageAction("IMPRESSION",{widgetType:n.widgetInfo.type,token:n.widgetInfo.token,session:u(null===(e=widgetInfo)||void 0===e?void 0:e.token)})})}}}]),B);function B(e){_classCallCheck(this,B),this.widgetInfo=e||{},window.Promise=W;e=document.createElement("script");e.type="text/javascript",e.src=F,document.head.appendChild(e)}var H="Kenect",U="text",z=(_createClass(K,[{key:"handleSD",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];k.apply(void 0,["PROCESSED_EVENT",this.collectorInfo.type].concat(t)),this.collectorInfo.type===q?sd&&sd.apply(void 0,t):this.collectorInfo.type===Y&&sdb&&sdb.apply(void 0,t)}},{key:"handleEvent",value:function(o){var e,a=this,t=null==o||null===(e=o.data)||void 0===e?void 0:e.type,i=null===(e=this.widgetInfo)||void 0===e?void 0:e.token;switch(t){case h:v(function(){var e=null===(t=o.data.data)||void 0===t?void 0:t.messageId,t=null===(n=o.data.data)||void 0===n?void 0:n.message,n=u(i);a.handleSD("dataLayer",{chatType:U,chatProvider:H,chatSessionId:n.id,events:"chatUserMessage",chatMessageType:"user",chatMessageContent:t}),a.handleSD("send"),a.handleSD("dataLayer",{chatType:U,chatProvider:H,chatSessionId:n.id,events:"chatUserMessage",chatMessageType:"agent",chatMessageContent:"<Automated Message>"}),a.handleSD("send"),a.handleSD("dataLayer",{chatType:U,chatProvider:H,chatSessionId:n.id,chatLeadId:e,events:"chatLead"}),a.handleSD("send")});break;case f:v(function(){var e=u(i);a.handleSD("dataLayer",{chatType:U,chatSessionId:e.id,chatProvider:H,events:"chatClick"}),a.handleSD("send")});break;case p:v(function(){var e=u(i);a.handleSD("dataLayer",{chatType:U,chatSessionId:e.id,chatProvider:H,events:"chatClosed"}),a.handleSD("send")});break;case S:v(function(){var e=u(null===(e=a.widgetInfo)||void 0===e?void 0:e.token);a.handleSD("dataLayer",{chatType:U,chatSessionId:e.id,chatProvider:H,events:"chatImpression"}),a.handleSD("send")})}}}]),K);function K(e,t){_classCallCheck(this,K),this.collectorInfo=t,this.widgetInfo=e}var J,Z,q="SHIFT_DIGITAL",Y="SHIFT_DIGITAL_BMW",X=(_createClass($,[{key:"handleEvent",value:function(t){this.collectors.forEach(function(e){e.handleEvent(t)})}}]),$);function $(t){_classCallCheck(this,$);var e=(null==t?void 0:t.collectors)||[],n=_toConsumableArray(null!=t&&t.hideNewRelic?[]:[new V(t)]);e.forEach(function(e){switch(e.type){case Y:case q:n.push(new z(t,e))}}),k("Collectors",n),this.collectors=n}function Q(){var t,e,n,o,a;t=ee,{"parameterFileUrl":"https://storage.googleapis.com/widget.kenect.com/instances/FWBYDzfExrlOPomtqkXMgq.json","thankYou":"Thank you!","fullUrl":"https://resource.kenect.com/api/v1/widget/client-data/FWBYDzfExrlOPomtqkXMgq","showOnMobile":true,"tinyUrl":"https://bit.ly/3P9LlSL","type":"WEB","color_1":"#d78a37","color_2":"#d78a37","token":"FWBYDzfExrlOPomtqkXMgq","organizationId":6971,"archived":false,"name":"Villa Russo","urlTrackingWords":[],"fontColor":"#FFFFFF","tcpaLanguage":"By hitting “Send” you authorize Villa Russo to send text messages and marketing content to the mobile number provided, sometimes using automated technology. Consent is not a condition of purchase. Message & data rates apply. Text STOP to opt out at any time.","displayCorner":"BOTTOM_RIGHT","companyName":"Villa Russo","buttonMessage":"Text us!","defaultLocationId":10803,"departments":[{"locationName":"Villa Russo","locationId":10803,"name":"General Inquiries","assignedTeamId":40965,"id":1},{"locationName":"Villa Russo","locationId":10803,"name":"Weddings","assignedTeamId":40966,"id":2},{"locationName":"Villa Russo","locationId":10803,"name":"Sweet 16 & Quinceañeras","assignedTeamId":41149,"id":3},{"locationName":"Villa Russo","locationId":10803,"name":"Atención en español","assignedTeamId":41407,"id":4}],"prompt":"Have a question? Text us here!","requireLastName":true,"showPrompt":true}===J?(e=(o=document.getElementById("kenect-token")).getAttribute("token"),n=o.getAttribute("previewinfo"),o="".concat(g.E8,"/").concat(e,".json"),"WIDGET_PREVIEW"===e?(J=_objectSpread(_objectSpread({},JSON.parse(decodeURIComponent(n))),{},{token:"WIDGET_PREVIEW",previewInfo:n}),t()):((a=new XMLHttpRequest).open("GET",o,!0),a.setRequestHeader("Content-Type","text/javascript"),a.onreadystatechange=function(){var e;this.readyState!==XMLHttpRequest.DONE||200!==this.status&&204!==this.status||(e=JSON.parse(a.responseText),J=e,t())},a.send(null))):t()}function ee(){var e,t,n,o,a,i,r,c,d,s,l,u,f,p,h=J,v=h.token,w=h.showOnMobile,y="OEM"===h.type;document.getElementById("widget-".concat(v))||window.innerWidth<600&&!w||(e=!y,o=new URL(window.location).searchParams.get("widget")===v,e&&(h=document.createElement("div"),w=document.createElement("div"),e=document.createElement("div"),h.id="widget-".concat(v),h.className="reset-".concat(v," widget-container-").concat(v),w.id="button-".concat(v),w.className="reset-".concat(v," visibility-hidden-").concat(v),e.id="prompt-".concat(v),e.className="reset-".concat(v," hide-prompt-").concat(v),h.appendChild(e),h.appendChild(w),document.body.appendChild(h),h="".concat(g.N1).concat(g.YL),O(J,"button-".concat(v),h,function(){return L(J,Z)}),o||(u="".concat(g.N1).concat(g.P7),O(J,"prompt-".concat(v),u),n=(p=J).token,f=p.prompt,p.showPrompt?f&&(t=document.getElementById("prompt-".concat(n)),p=I("widget-closed-".concat(n)),f=(new Date).getTime(),(null!==p?f-p:1800001)<18e5?t.classList.add("hide-prompt-".concat(n)):setTimeout(function(){t.classList.remove("hide-prompt-".concat(n))},5e3)):document.getElementById("prompt-".concat(n)).classList.add("hide-prompt-".concat(n)))),l=Z,v=(s=J).token,u=s.previewInfo,f=document.createElement("iframe"),p=document.createElement("div"),u="token=".concat(encodeURIComponent(v)).concat(u?"&previewInfo="+u:""),f.src="".concat(g.GF,"?").concat(u),f.className="iframe-".concat(v," widget-iframe-").concat(v," shadow-").concat(v),f.id="iframe-".concat(v),p.id="iframe-wrapper-".concat(v),p.className="reset-".concat(v," display-none-").concat(v," backdrop-").concat(v),p.onclick=function(){return L(s,l)},p.append(f),document.body.append(p),c=Z,d=(r=J).token,document.addEventListener("click",function(e){var t,n,o;(null===(t=e.target)||void 0===t||null===(n=t.dataset)||void 0===n?void 0:n.widgetToggle)===d&&(o=null===(e=e.target)||void 0===e||null===(o=e.dataset)||void 0===o?void 0:o.dealerId,L(r,c,o))}),function(n,o,a){var i=n.token;window.removeEventListener("message",window["MessageHandler_".concat(i)]),window.toggleKenectWidget=function(){return L(n,o)};var r=new X(n);window["MessageHandler_".concat(i)]=function(e){switch(r.handleEvent(e),e.data.type){case"TOGGLE_IFRAME":case"OPEN_IFRAME":case"CLOSE_IFRAME":case"TOGGLE_IFRAME_".concat(i):case"OPEN_IFRAME_".concat(i):case"CLOSE_IFRAME_".concat(i):L(n,o,e.data.dealerId);break;case T:t=n.token,document.getElementById("prompt-".concat(t)).classList.add("hide-prompt-".concat(t)),b("widget-closed-".concat(t),(new Date).getTime().toString());break;case"PROMPT_PAGE_LOADED":D(n,"prompt-".concat(i));break;case"BUTTON_PAGE_LOADED":D(n,"button-".concat(i));break;case S:D(n,"iframe-".concat(i),!0);break;case"RESIZE_PROMPT":x(n,_objectSpread(_objectSpread({},e.data),{},{width:e.data.width,height:e.data.height}),"prompt-".concat(i));break;case"RESIZE_BUTTON":x(n,e.data,"button-".concat(i),!0),a&&L(n,o)}var t},window.addEventListener("message",window["MessageHandler_".concat(i)])}(J,Z,o),y?(i=(a=J).token,m("\n".concat(E(a),"\n.backdrop-").concat(i," {\n  position: fixed;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  z-index: 2147483000;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n.widget-iframe-").concat(i," {\n  border-radius: 10px;\n  height: 640px;\n  width: 320px;\n  background: #f7f7f7;\n  max-height: calc(100% - 100px);\n}\n").concat(_(a),"\n  "),i)):(o=(p=J).token,m("\n".concat(E(p),"\n\nbutton.reset-").concat(o," {\n  background: none;\n}\n\nbutton.reset-").concat(o,":hover {\n  background: none;\n}\n\n.widget-iframe-").concat(o," {\n  position: fixed;\n  bottom: 85px;\n  right: 20px;\n  border-radius: 10px;\n  height: 640px;\n  width: 320px;\n  background: #f7f7f7;\n  max-height: calc(100% - 100px);\n}\n\n#prompt-").concat(o," {\n  margin: 0 4px;\n}\n#prompt-").concat(o,"-iframe {\n  background: transparent;\n  box-shadow: none;\n  margin-bottom: -16px !important;\n}\n\n.widget-container-").concat(o," {\n  transform: translateY(0);\n  transition: all .1s;\n  display: flex;\n}\n#widget-").concat(o," {\n  position: fixed;\n  display: flex;\n  z-index: 2147483000;\n}\n.btn-text-").concat(o," {\n  color: white;\n}\n").concat((y=p.token,a=p.displayCorner,i=p.customCSS,a=a?a.split("_"):["BOTTOM","RIGHT"],i=i||"",i+="TOP"===a[0]?"\n      #widget-".concat(y," {\n        top: 0;\n      }\n      .widget-container-").concat(y," {\n        flex-direction: column-reverse;\n      }\n      .iframe-").concat(y," {\n        top: 85px;\n      }\n    "):"\n      #widget-".concat(y," {\n        bottom: 0;\n      }\n      .widget-container-").concat(y," {\n        flex-direction: column;\n      }\n      .iframe-").concat(y," {\n        bottom: 85px;\n      }\n    "),i+="RIGHT"===a[1]?"\n      #widget-".concat(y," {\n        right: 0;\n      }\n      #button-").concat(y," {\n        align-self: flex-end;\n      }\n      .iframe-").concat(y," {\n        right: 16px;\n      }\n    "):"\n      #widget-".concat(y," {\n        left: 0;\n      }\n      #button-").concat(y," {\n        align-self: flex-start;\n      }\n      .iframe-").concat(y," {\n        left: 16px;\n      }\n    ")),"\n").concat(_(p),"\n"),o)),k("WIDGET_INITIALIZED"))}J={"parameterFileUrl":"https://storage.googleapis.com/widget.kenect.com/instances/FWBYDzfExrlOPomtqkXMgq.json","thankYou":"Thank you!","fullUrl":"https://resource.kenect.com/api/v1/widget/client-data/FWBYDzfExrlOPomtqkXMgq","showOnMobile":true,"tinyUrl":"https://bit.ly/3P9LlSL","type":"WEB","color_1":"#d78a37","color_2":"#d78a37","token":"FWBYDzfExrlOPomtqkXMgq","organizationId":6971,"archived":false,"name":"Villa Russo","urlTrackingWords":[],"fontColor":"#FFFFFF","tcpaLanguage":"By hitting “Send” you authorize Villa Russo to send text messages and marketing content to the mobile number provided, sometimes using automated technology. Consent is not a condition of purchase. Message & data rates apply. Text STOP to opt out at any time.","displayCorner":"BOTTOM_RIGHT","companyName":"Villa Russo","buttonMessage":"Text us!","defaultLocationId":10803,"departments":[{"locationName":"Villa Russo","locationId":10803,"name":"General Inquiries","assignedTeamId":40965,"id":1},{"locationName":"Villa Russo","locationId":10803,"name":"Weddings","assignedTeamId":40966,"id":2},{"locationName":"Villa Russo","locationId":10803,"name":"Sweet 16 & Quinceañeras","assignedTeamId":41149,"id":3},{"locationName":"Villa Russo","locationId":10803,"name":"Atención en español","assignedTeamId":41407,"id":4}],"prompt":"Have a question? Text us here!","requireLastName":true,"showPrompt":true},Z=e({key:"autopluck",expiry:24},window),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?Q():document.addEventListener("DOMContentLoaded",Q)}();