1"use strict";function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,_toPropertyKey(c.key),c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}function _toPropertyKey(a){var b=_toPrimitive(a,"string");return"symbol"===_typeof(b)?b:b+""}function _toPrimitive(a,b){if("object"!==_typeof(a)||null===a)return a;var c=a[Symbol.toPrimitive];if(c!==void 0){var d=c.call(a,b||"default");if("object"!==_typeof(d))return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}function _inherits(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),b&&_setPrototypeOf(a,b)}function _createSuper(a){var b=_isNativeReflectConstruct();return function(){var c,d=_getPrototypeOf(a);if(b){var e=_getPrototypeOf(this).constructor;c=Reflect.construct(d,arguments,e)}else c=d.apply(this,arguments);return _possibleConstructorReturn(this,c)}}function _possibleConstructorReturn(a,b){if(b&&("object"===_typeof(b)||"function"==typeof b))return b;if(void 0!==b)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(a)}function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _wrapNativeSuper(a){var b="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(a){function c(){return _construct(a,arguments,_getPrototypeOf(this).constructor)}if(null===a||!_isNativeFunction(a))return a;if("function"!=typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!=typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(c,a)},_wrapNativeSuper(a)}function _construct(){return _construct=_isNativeReflectConstruct()?Reflect.construct.bind():function(b,c,d){var e=[null];e.push.apply(e,c);var a=Function.bind.apply(b,e),f=new a;return d&&_setPrototypeOf(f,d.prototype),f},_construct.apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function _isNativeFunction(a){return-1!==Function.toString.call(a).indexOf("[native code]")}function _setPrototypeOf(a,b){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,b){return a.__proto__=b,a},_setPrototypeOf(a,b)}function _getPrototypeOf(a){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},_getPrototypeOf(a)}function isValidDomain(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",c=new URLSearchParams(window.location.search),d=c.get("env")||"",e=["https://www.gevme.com","https://showcase-dev.gevme.com","https://showcase-dev.gev.me","https://showcase.gev.me","https://live.gev.me","https://live-dev.gevme.com","https://live.gevme.com","https://admin.gevme.com","https://admin.gev.me","https://admin-dev.gevme.com"];return!1,b&&e.push(b),e.some(function(b){return a===b})}function handleMessageActivity(a,b){try{var c=JSON.parse(a.data);switch(c.eventType){case"listenerAttached":document.getElementById(b).contentWindow.postMessage(JSON.stringify({action:"gevme-json",data:JSON.stringify(window.GEVME)}),"*");break;default:}}catch(a){console.error(a)}}var GevmeActivityFeed=/*#__PURE__*/function(a){function b(){return _classCallCheck(this,b),c.call(this)}_inherits(b,a);var c=_createSuper(b);
1return _createClass(b,[{key:"connectedCallback",value:function connectedCallback(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n=document.createElement("iframe"),o="".concat((null===(a=window)||void 0===a||null===(b=a.GEVME)||void 0===b||null===(c=b.setting)||void 0===c?void 0:c.customDomain)||"","/widgets"),p="100%",q="GevmeActivityFeed".concat(Date.now());try{var r,s,t=JSON.parse(this.getAttribute("settings"));p=null===t||void 0===t||null===(r=t.style)||void 0===r?void 0:r.width,i=null===t||void 0===t||null===(s=t.style)||void 0===s?void 0:s.height,j=null===t||void 0===t?void 0:t.feedId,k=null===t||void 0===t?void 0:t.showAddActivity,l=null===t||void 0===t?void 0:t.feedGroup,m=null===t||void 0===t?void 0:t.showChannels}catch(a){}n.id=q,n.name="GevmeActivityFeed",n.title="Gevme Activity Feed",n.sandbox="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-downloads allow-modals allow-presentation allow-same-origin",n.allowFullScreen=!0,n.seamless=!0,n.loading="lazy",n.referrerPolicy="no-referrer",n.src="".concat(o,"/activityFeed?")+"slug=".concat(null===(d=window)||void 0===d||null===(e=d.GEVME)||void 0===e||null===(f=e.livepage)||void 0===f?void 0:f.slug)+"".concat(null!==(g=window)&&void 0!==g&&null!==(h=g.GEVME)&&void 0!==h&&h.isPreview?"&isPreview=true":"")+"".concat(k?"&showAddActivity=".concat(k):"")+"".concat(j?"&feedId=".concat(j):"")+"".concat(l?"&feedGroup=".concat(l):"")+"".concat(m?"&showChannels=".concat(m):""),n.width=p,n.frameBorder="0",this.append(n);// IFrame Auto-Resizer makes the widget look like it is part of the page 2// https://github.com/davidjbradshaw/iframe-resizer 3var u=document.createElement("script");u.id="activity-feed-iframeResizer",u.type="text/javascript",u.src="".concat("","/static/sdks/plugins/iframeResizer.min.js"),u.onload=function(){return iFrameResize({// log: true, 4onMessage:function onMessage(){var a;null===(a=document.getElementsByClassName("gevme-template-content")[0])||void 0===a?void 0:a.scrollTo({top:0,left:0,behavior:"smooth"})}},"#".concat(n.id))},this.append(u),window.addEventListener("message",function(a){var b,c,d;isValidDomain(a.origin,null===(b=window)||void 0===b||null===(c=b.GEVME)||void 0===c||null===(d=c.setting)||void 0===d?void 0:d.customDomain)&&handleMessageActivity(a,q)})}}]),b}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));window.customElements.define("gevme-activity-feed",GevmeActivityFeed); 5"use strict";function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,_toPropertyKey(c.key),c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}function _toPropertyKey(a){var b=_toPrimitive(a,"string");return"symbol"===_typeof(b)?b:b+""}function _toPrimitive(a,b){if("object"!==_typeof(a)||null===a)return a;var c=a[Symbol.toPrimitive];if(c!==void 0){var d=c.call(a,b||"default");if("object"!==_typeof(d))return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}function _inherits(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),b&&_setPrototypeOf(a,b)}function _createSuper(a){var b=_isNativeReflectConstruct();return function(){var c,d=_getPrototypeOf(a);if(b){var e=_getPrototypeOf(this).constructor;c=Reflect.construct(d,arguments,e)}else c=d.apply(this,arguments);return _possibleConstructorReturn(this,c)}}function _possibleConstructorReturn(a,b){if(b&&("object"===_typeof(b)||"function"==typeof b))return b;if(void 0!==b)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(a)}
5function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _wrapNativeSuper(a){var b="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(a){function c(){return _construct(a,arguments,_getPrototypeOf(this).constructor)}if(null===a||!_isNativeFunction(a))return a;if("function"!=typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!=typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(c,a)},_wrapNativeSuper(a)}function _construct(){return _construct=_isNativeReflectConstruct()?Reflect.construct.bind():function(b,c,d){var e=[null];e.push.apply(e,c);var a=Function.bind.apply(b,e),f=new a;return d&&_setPrototypeOf(f,d.prototype),f},_construct.apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function _isNativeFunction(a){return-1!==Function.toString.call(a).indexOf("[native code]")}function _setPrototypeOf(a,b){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,b){return a.__proto__=b,a},_setPrototypeOf(a,b)}function _getPrototypeOf(a){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},_getPrototypeOf(a)}function isValidDomain(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",c=new URLSearchParams(window.location.search),d=c.get("env")||"",e=["https://www.gevme.com","https://showcase-dev.gevme.com","https://showcase-dev.gev.me","https://showcase.gev.me","https://live.gev.me","https://live-dev.gevme.com","https://live.gevme.com","https://admin.gevme.com","https://admin.gev.me","https://admin-dev.gevme.com"];return!1,b&&e.push(b),e.some(function(b){return a===b})}function handleMessageAgenda(a,b){try{var c=JSON.parse(a.data);if("height"===c.eventType){var d=document.getElementById("".concat(c.eventData.frameId));d.style.height=c.eventData.height}switch("agenda-location"===c.action&&document.getElementById(b).contentWindow.postMessage(JSON.stringify({eventData:c}),"*"),c.eventType){case"bookmark":document.getElementById(b).contentWindow.postMessage(JSON.stringify({eventData:c.eventData}),"*");break;case"listenerAttached":document.getElementById("GevmeAgenda".concat(null===c||void 0===c?void 0:c.id)).contentWindow.postMessage(JSON.stringify({action:"gevme-json",data:JSON.stringify(window.GEVME)}),"*");break;default:}}catch(a){console.error(a.message)}}var GevmeAgenda=/*#__PURE__*/function(a){function b(){return _classCallCheck(this,b),c.call(this)}_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:"attachAgendaMessageEvent",value:function attachAgendaMessageEvent(a){window.addEventListener("message",function(b){var c,d,e;isValidDomain(b.origin,null===(c=window)||void 0===c||null===(d=c.GEVME)||void 0===d||null===(e=d.setting)||void 0===e?void 0:e.customDomain)&&handleMessageAgenda(b,a)})}},{key:"connectedCallback",value:function connectedCallback(){var a,b,c,d=document.createElement("iframe"),e="".concat((null===(a=window)||void 0===a||null===(b=a.GEVME)||void 0===b||null===(c=b.setting)||void 0===c?void 0:c.customDomain)||"","/widgets"),f={},g="",h=!1,i="400px",j=this.getAttribute("settings"),k=this.getAttribute("preview"),l=this.getAttribute("fullpagepreview"),m=this.getAttribute("slug"),n="GevmeAgenda".concat(j);try{f=JSON.parse(j),g=e+"/agenda?s="+encodeURI(JSON.stringify(f)),i=f&&f.height?f.height:"400px"}catch(a){h=!0}if(h)try{var o,p,q,r,s,t,u,v,w,x,y,z,A,B,C=j,D=Object.values(window.GEVME.livepage.showcaseblocks),E=D.find(function(a){var b=a.id;return b===C});if(!E)throw new Error("block not found");E.blockHeight&&"fit-content"!==E.blockHeight&&(i=E.blockHeight),g="".concat(e,"/agenda?frameId=").concat(n,"&companyId=").concat(null===(o=window)||void 0===o||null===(p=o.GEVME)||void 0===p||null===(q=p.project)||void 0===q?void 0:q.companyId,"&projectId=").concat(null===(r=window)||void 0===r||null===(s=r.G
5EVME)||void 0===s||null===(t=s.project)||void 0===t?void 0:t.id,"&livePageId=").concat(null===(u=window)||void 0===u||null===(v=u.GEVME)||void 0===v||null===(w=v.livepage)||void 0===w?void 0:w.id,"&blockId=").concat(C)+"".concat(null!==(x=window)&&void 0!==x&&null!==(y=x.GEVME)&&void 0!==y&&y.isPreview?"&isPreview=true":"")+"".concat(C?"&id=".concat(C):"")+(l?"&previewInXP=".concat("true"===l||"undefined"===l?"false":"true"):"")+"&slug=".concat(null===(z=window)||void 0===z||null===(A=z.GEVME)||void 0===A||null===(B=A.livepage)||void 0===B?void 0:B.slug)}catch(a){console.error(a)}d.id=n,d.name="GevmeAgenda",d.title="Gevme Agenda",d.sandbox="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-downloads allow-modals allow-presentation allow-same-origin",d.allowFullScreen=!0,d.seamless=!0,d.loading="lazy",d.frameBorder="0",d.referrerPolicy="no-referrer",d.src=g,d.onload=function(){this.contentWindow.postMessage(JSON.stringify({action:"gevme-json",data:JSON.stringify(window.GEVME)}),"*")},d.style="display: flex; width: ".concat(f&&f.width?f.width:"100%","; height: 100%; overflow: hidden; margin: auto;"),this.attachAgendaMessageEvent(n),this.append(d)}}]),b}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));window.customElements.define("gevme-agenda",GevmeAgenda); 6"use strict";function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}function _defineProperty(a,b,c){return b=_toPropertyKey(b),b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function _toPropertyKey(a){var b=_toPrimitive(a,"string");return"symbol"===_typeof(b)?b:b+""}function _toPrimitive(a,b){if("object"!==_typeof(a)||null===a)return a;var c=a[Symbol.toPrimitive];if(c!==void 0){var d=c.call(a,b||"default");if("object"!==_typeof(d))return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}function _slicedToArray(a,b){return _arrayWithHoles(a)||_iterableToArrayLimit(a,b)||_unsupportedIterableToArray(a,b)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(a,b){var c=null==a?null:"undefined"!=typeof Symbol&&a[Symbol.iterator]||a["@@iterator"];if(null!=c){var d,e,f,g,h=[],i=!0,j=!1;try{if(f=(c=c.call(a)).next,0===b){if(Object(c)!==c)return;i=!1}else for(;!(i=(d=f.call(c)).done)&&(h.push(d.value),h.length!==b);i=!0);}catch(a){j=!0,e=a}finally{try{if(!i&&null!=c.return&&(g=c.return(),Object(g)!==g))return}finally{if(j)throw e}}return h}}function _arrayWithHoles(a){if(Array.isArray(a))return a}function _createForOfIteratorHelper(a,b){var c="undefined"!=typeof Symbol&&a[Symbol.iterator]||a["@@iterator"];if(!c){if(Array.isArray(a)||(c=_unsupportedIterableToArray(a))||b&&a&&"number"==typeof a.length){c&&(a=c);var d=0,e=function(){};return{s:e,n:function n(){return d>=a.length?{done:!0}:{done:!1,value:a[d++]}},e:function e(a){throw a},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var f,g=!0,h=!1;return{s:function s(){c=c.call(a)},n:function n(){var a=c.next();return g=a.done,a},e:function e(a){h=!0,f=a},f:function f(){try{g||null==c.return||c.return()}finally{if(h)throw f}}}}function _unsupportedIterableToArray(a,b){if(a){if("string"==typeof a)return _arrayLikeToArray(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return"Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c?Array.from(a):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?_arrayLikeToArray(a,b):void 0}}function _arrayLikeToArray(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c<b;c++)d[c]=a[c];return d}try{var sendAction=function(a){window.top.postMessage(JSON.stringify(a),"*")},initLoginWithEmailFunction=function(){try{var a=function(a){return /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(a)},b=function(a){try{var b,c=k.querySelector("p[data-gevme-p=\"gevme-p\"]"),e=document.querySelector("#otp-wrap");e.innerHTML="";for(var f,g=0;g<parseInt(e.dataset.otpLength);g++)f=document.createElement("input"),f.type="number",f.id="input-".concat(g),f.maxLength=1,e.append(f);var h=document.querySelectorAll("#otp-wrap > *[id]"),j={};d.parentElement.style.display="none",k.style.display="flex",l.textContent="error"===a.type?null===a||void 0===a||null===(b=a.data)||void 0===b?void 0:b.message:"",c.textContent=(null===a||void 0===a?void 0:a.message)||"";for(var m=function _loop(b){h[b].value="",h[b].addEventListener("keydown",function d(c){var e=String.fromCharCode;if(l.textContent="","Backspace"===c.key)h[b].value="",0!==b&&h[b-1].focus();else{if(!/[0-9]|\./.test(c.key))return c.preventDefault(),!1;if(b===h.length-1&&""!==h[b].value)return!0;47<c.keyCode&&58>c.keyCode||48<=c.keyCode&&57>=c.keyCode||96<=c.keyCode&&105>=c.keyCode||229===c.keyCode&&"Unidentified"===c.key?(h[b].value=c.key,b!=h.length-1&&h[b+1].focus(),c.preventDefault()):(64<c.keyCode&&91>c.keyCode||48<=c.keyCode&&57>=c.keyCode||96<=c.keyCode&&105>=c.keyCode||229===c.keyCode&&"Unidentified"===c.key)&&(h[b].value=e(c.keyCode),b!=h.length-1&&h[b+1].focus(),c.preventDefault())}if(j["".concat(b)]=h[b].value,3<Object.keys(j).length&&Object.values(j).every(function(a){return null!==a&&""!==a})){var f="";return Object.values(j).map(function(a){return f="".concat(f)+"".concat(a)}),k.classList.add("form-submitted","form-loading"),j={},h[0].focus(),sendAction(_objectSpread(_objectSpread({},a),{},{code:f,type:"otp"}))}})},n=0;n<h.length;n++)m(n)}catch(a){console.error(a)}},c=function handleResponseFromPlatform(a){try{var c="string"==typeof a.data?JSON.parse(a.data):a.data;if(d.classList.remove("form-submitted","form-loading"),c){if("error"===c.type){if("email"===c.data.errorType){var f;g.classList.add("input-error","email-error"),h.removeAttribute("disabled"),h.value="Check In",j.textContent=(null===c||void 0===c||null===(f=c.data)||void 0===f?void 0:f.message)||"Something went wrong. Please try again."}if("otp"===c.data.errorType){var k;l.textContent=(null===c||void 0===c||null===(k=c.data)||void 0===k?void 0:k.message)||"Something went wrong. Please try again."}if("google"===c.data.errorType){var m;e.classList.add("error"),i.textContent=(null===c||void 0===c||null===(m=c.data)||void 0===m?void 0:m.message)||"Something went wrong. Please try again."}}if("login"===c.type)return c.status?"undefined"==typeof window.renderOTPInput?b(c):window.renderOTPInput(c):(h.removeAttribute("disabled"),h.value="Check In",i.textContent=null===c||void 0===c?void 0:c.message)}}catch(a){console.error(a.message),i.textContent=a.message}},d=document.querySelector("form[data-gevme-form=\"gevme-form\"]"),e=document.querySelector(".loginWithGoogle"),f=document.querySelector("div[data-gevme-form=\"gevme-login\"]"),g=document.querySelector("input[data-gevme-input=\"gevme-email\"]"),h=document.querySelector("input[data-gevme-input=\"gevme-submit\"]"),i=document.querySelector("p[data-error=\"general\"]"),j=document.querySelector("p[data-error=\"email\"]"),k=document.querySelector("div[data-gevme-form=\"gevme-otp\"]"),l=document.querySelector("p[data-error=\"otp\"]"),m=document.querySelector("a[data-gevme-anchor=\"gevme-back\"]");e&&e.addEventListener("click",function(a){a.preventDefault(),sendAction({type:"loginwithgoogle"})}),m&&m.addEventListener("click",function(a){a.preventDefault(),k.style.display="none",f.style.display="flex",g.classList.remove("input-error","email-error"),h.removeAttribute("disabled"),h.value="Check In"}),g&&g.addEventListener("input",function(){g.classList.remove("input-error","email-error"),j.textContent=""}),d&&d.addEventListener("submit",function(b){b.preventDefault();var c,e=new FormData(d),f={type:"loginWithEmail"},k=_createForOfIteratorHelper(e);try{for(k.s();!(c=k.n()).done;){var l=_slicedToArray(c.value,2),m=l[0],n=l[1];f=_objectSpread(_objectSpread({},f),{},_defineProperty({},m,n))}}catch(a){k.e(a)}finally{k.f()}return a(f.email)?(i.textContent="",d.classList.add("form-submitted","form-loading"),g.classList.remove("input-error","email-error"),h.setAttribute("disabled",!0),h.value="Checking in...",sendAction(f)):(g.classList.add("input-error","email-error"),j.textContent="Please enter the correct email format.")}),window.addEventListener("message",c)}catch(a){console.error(a)}}
6,initLoginWithUsernamePwdFunction=function initLoginWithUsernamePwdFunction(){try{var a=function handleResponseFromPlatform(a){try{var i="string"==typeof a.data?JSON.parse(a.data):a.data;if(b.classList.remove("form-submitted","form-loading"),i&&"error"===i.type){if("username"===i.data.errorType){var j;c.classList.add("input-error","username-error"),f.textContent=(null===i||void 0===i||null===(j=i.data)||void 0===j?void 0:j.message)||"Something went wrong. Please try again."}if("password"===i.data.errorType){var k;d.classList.add("input-error","password-error"),g.textContent=(null===i||void 0===i||null===(k=i.data)||void 0===k?void 0:k.message)||"Something went wrong. Please try again."}if("auth0"===i.data.errorType){var l;d.classList.add("input-error","password-error"),c.classList.add("input-error","username-error"),h.style.margin="0px 0px 15px 0px",h.textContent=(null===i||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||"Something went wrong. Please try again."}e.removeAttribute("disabled"),e.value="Check In"}}catch(a){console.error(a.message),h.textContent=a.message,h.style.margin="0px 0px 20px 0px",e.removeAttribute("disabled"),e.value="Check In"}},b=document.querySelector("form[data-gevme-form=\"gevme-form\"]"),c=document.querySelector("input[data-gevme-input=\"gevme-username\"]"),d=document.querySelector("input[data-gevme-input=\"gevme-password\"]"),e=document.querySelector("input[data-gevme-input=\"gevme-submit\"]"),f=document.querySelector("p[data-error=\"username\"]"),g=document.querySelector("p[data-error=\"password\"]"),h=document.querySelector("p[data-error=\"auth0\"]");c&&c.addEventListener("input",function(){c.classList.remove("input-error","username-error"),f.textContent="",h.textContent="",h.style.margin="0px"}),d&&d.addEventListener("input",function(){d.classList.remove("input-error","password-error"),g.textContent="",h.textContent="",h.style.margin="0px"}),b&&b.addEventListener("submit",function(a){a.preventDefault();var i,j=new FormData(b),k={type:"loginWithUsernamePwd"},l=_createForOfIteratorHelper(j);try{for(l.s();!(i=l.n()).done;){var m=_slicedToArray(i.value,2),n=m[0],o=m[1];k=_objectSpread(_objectSpread({},k),{},_defineProperty({},n,o))}}catch(a){l.e(a)}finally{l.f()}return k.username?k.password?(h.textContent="",h.style.margin="0px",b.classList.add("form-submitted","form-loading"),e.setAttribute("disabled",!0),e.value="Checking in...",sendAction(k)):(d.classList.add("input-error","password-error"),g.textContent="Please enter the password."):(c.classList.add("input-error","username-error"),f.textContent="Please enter the username.")}),window.addEventListener("message",a)}catch(a){console.error(a)}},initLoginWithSharedPasswordFunction=function initLoginWithSharedPasswordFunction(){try{var a=function handleResponseFromPlatform(a){try{var c="string"==typeof a.data?JSON.parse(a.data):a.data;if(b.classList.remove("form-submitted","form-loading"),c){if("error"===c.type){var f;d.removeAttribute("disabled"),d.value="Check In",e.textContent=(null===c||void 0===c||null===(f=c.data)||void 0===f?void 0:f.message)||"Something went wrong. Please try again."}if("login"===c.type){if(!c.status)return d.removeAttribute("disabled"),d.value="Check In",e.textContent=null===c||void 0===c?void 0:c.message;if(b.parentElement){b.parentElement.style.display="none";var g=otpForm.querySelector("p[data-gevme-p=\"gevme-p\"]");return g.textContent=c.message,sendAction(c)}}}}catch(a){console.error(a.message),e.textContent=a.message}},b=document.querySelector("form[data-gevme-form=\"gevme-form\"]"),c=document.querySelectorAll("input[data-gevme-input]"),d=document.querySelector("input[data-gevme-input=\"gevme-submit\"]"),e=document.querySelector("p[data-error=\"general\"]");0<(null===c||void 0===c?void 0:c.length)&&c.forEach(function(a){a.addEventListener("input",function(){a.classList.remove("input-error"),e.textContent=""})}),b&&b.addEventListener("submit",function(a){a.preventDefault();var c,f=new FormData(b),g={type:"loginWithSharedPwd"},h=_createForOfIteratorHelper(f);try{for(h.s();!(c=h.n()).done;){var i=_slicedToArray(c.value,2),j=i[0],k=i[1];g=_objectSpread(_objectSpread({},g),{},_defineProperty({},j,k))}}catch(a){h.e(a)}finally{h.f()}return e.textContent="",b.classList.add("form-submitted","form-loading"),d.setAttribute("disabled",!0),d.value="Checking in...",sendAction(g)}),window.addEventListener("message",a)}catch(a){console.error(a)}};window.addEventListener("DOMContentLoaded",function(){var a=document.querySelector("form[data-gevme-form=\"gevme-form\"]");if(a)switch(a.getAttribute("data-gevme-login-type").toLocaleLowerCase()){case"login-with-email":{initLoginWithEmailFunction();break}
6case"login-with-username-pwd":{initLoginWithUsernamePwdFunction();break}case"login-with-shared-pwd":{initLoginWithSharedPasswordFunction();break}}})}catch(a){console.error(a.message)} 7"use strict";function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,_toPropertyKey(c.key),c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}function _toPropertyKey(a){var b=_toPrimitive(a,"string");return"symbol"===_typeof(b)?b:b+""}function _toPrimitive(a,b){if("object"!==_typeof(a)||null===a)return a;var c=a[Symbol.toPrimitive];if(c!==void 0){var d=c.call(a,b||"default");if("object"!==_typeof(d))return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}function _inherits(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),b&&_setPrototypeOf(a,b)}function _createSuper(a){var b=_isNativeReflectConstruct();return function(){var c,d=_getPrototypeOf(a);if(b){var e=_getPrototypeOf(this).constructor;c=Reflect.construct(d,arguments,e)}else c=d.apply(this,arguments);return _possibleConstructorReturn(this,c)}}function _possibleConstructorReturn(a,b){if(b&&("object"===_typeof(b)||"function"==typeof b))return b;if(void 0!==b)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(a)}function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _wrapNativeSuper(a){var b="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(a){function c(){return _construct(a,arguments,_getPrototypeOf(this).constructor)}if(null===a||!_isNativeFunction(a))return a;if("function"!=typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!=typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(c,a)},_wrapNativeSuper(a)}function _construct(){return _construct=_isNativeReflectConstruct()?Reflect.construct.bind():function(b,c,d){var e=[null];e.push.apply(e,c);var a=Function.bind.apply(b,e),f=new a;return d&&_setPrototypeOf(f,d.prototype),f},_construct.apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function _isNativeFunction(a){return-1!==Function.toString.call(a).indexOf("[native code]")}function _setPrototypeOf(a,b){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,b){return a.__proto__=b,a},_setPrototypeOf(a,b)}function _getPrototypeOf(a){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},_getPrototypeOf(a)}try{var isValidDomain=function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",c=new URLSearchParams(window.location.search),d=c.get("env")||"",e=["https://www.gevme.com","https://showcase-dev.gevme.com","https://showcase-dev.gev.me","https://showcase.gev.me","https://live.gev.me","https://live-dev.gevme.com","https://live.gevme.com","https://admin.gevme.com","https://admin.gev.me","https://admin-dev.gevme.com"];return!1,b&&e.push(b),e.some(function(b){return a===b})},handleMessageChat=function(a){try{var b,c,d;if(isValidDomain(a.origin,null===(b=window)||void 0===b||null===(c=b.GEVME)||void 0===c||null===(d=c.setting)||void 0===d?void 0:d.customDomain)){var e=JSON.parse(a.data),f=document.querySelector("iframe#GevmeChat");e&&e.open&&(f.classList.add("chat-open"),f.classList.remove("chat-close"),f.style=e.position&&"left"===e.position?"position: fixed; z-index: 1; left: 0; right: unset; top: 0px; bottom: 0px; margin: auto; transition: all 0.3s ease;":"position: fixed; z-index: 1; left: unset; right: 0; top: 0px; bottom: 0px; margin: auto; transition: all 0.3s ease;
7"),e&&!e.open&&"undefined"!=typeof e.open&&(f.classList.add("chat-close"),f.classList.remove("chat-open"),f.style="position: fixed; z-index: 1; left: ".concat("left"===e.position?"-200%":"unset","; right: -200%;\n }; top: 0px; bottom: 0px; margin: auto; transition: all 0.3s ease;"))}}catch(a){console.error(a)}},GevmeChat=/*#__PURE__*/function(a){function b(){return _classCallCheck(this,b),c.call(this)}_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:"windowEventListener",value:function windowEventListener(){window.addEventListener("message",handleMessageChat)}},{key:"connectedCallback",value:function connectedCallback(){var a,b,c,d,e,f,g,h,i=JSON.parse(this.getAttribute("settings")),j=document.createElement("iframe"),k="".concat((null===(a=window)||void 0===a||null===(b=a.GEVME)||void 0===b||null===(c=b.setting)||void 0===c?void 0:c.customDomain)||"","/widgets");for(j.id="GevmeChat",j.name="GevmeChat",j.title="GEVME Chat",j.sandbox="allow-scripts allow-forms allow-popups allow-downloads allow-modals allow-presentation allow-same-origin",j.allowFullScreen=!0,j.seamless=!0,j.loading="lazy",j.referrerPolicy="no-referrer",j.src="".concat(k,"/chat?s=").concat(encodeURI(JSON.stringify(i)))+"&slug=".concat(null===(d=window)||void 0===d||null===(e=d.GEVME)||void 0===e||null===(f=e.livepage)||void 0===f?void 0:f.slug)+"".concat(null!==(g=window)&&void 0!==g&&null!==(h=g.GEVME)&&void 0!==h&&h.isPreview?"&isPreview=true":""),j.width=(null===i||void 0===i?void 0:i.width)||"300px",j.height=(null===i||void 0===i?void 0:i.height)||"100%",j.frameBorder="0",j.style="position: fixed; z-index: 1; left: 0; right: -200%; top: 0; bottom: 0; visibility: hidden;",j.onload=function(){try{j.style=i.position&&"left"===i.position?"position: fixed; z-index: 1; left: -200%; right: unset; top: 0; bottom: 0; margin: auto; transition: all 0.3s ease;":"position: fixed; z-index: 1; right: -200%; left: unset; top: 0; bottom: 0; margin: auto; transition: all 0.3s ease;",this.contentWindow.postMessage(JSON.stringify({action:"gevme-json",data:JSON.stringify(window.GEVME)}),"*")}catch(a){console.error(a)}};0<this.attributes.length;)this.removeAttribute(this.attributes[0].name);this.append(j),this.windowEventListener()}}]),b}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));window.customElements.define("gevme-chat",GevmeChat)}catch(a){console.error(a)} 8"use strict"; 9"use strict";function _instanceof(a,b){return null!=b&&"undefined"!=typeof Symbol&&b[Symbol.hasInstance]?!!b[Symbol.hasInstance](a):a instanceof b}function isValidDomain(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",c=new URLSearchParams(window.location.search),d=c.get("env")||"",e=["https://www.gevme.com","https://showcase-dev.gevme.com","https://showcase-dev.gev.me","https://showcase.gev.me","https://live.gev.me","https://live-dev.gevme.com","https://live.gevme.com","https://admin.gevme.com","https://admin.gev.me","https://admin-dev.gevme.com"];return!1,b&&e.push(b),e.some(function(b){return a===b})}function handleMessageLivebar(a,b){var c=function(a){return /^(\d+|(\.\d+))(\.\d+)?%$/.test(a)};//message 10try{var d=document.querySelector("gevme-live-bar"),e=d.querySelector("iframe#GevmeLiveBar"),f=a.data,g=document.querySelector(".gevme-template-chat");if(g.style.transition="all 300ms ease-out 0s",e.style.transition="none",!f)return;try{f&&"string"==typeof f&&(f=JSON.parse(f))}catch(a){return console.error("Not a valid object"),!1}if(f&&"listenerAttached"===f.eventType&&(console.log("listenerAttached: ",{payload:f}),document.getElementById(b).contentWindow.postMessage(JSON.stringify({action:"gevme-json",from:"livebar",data:JSON.stringify(window.GEVME)}),"*")),"expand"===f.eventType&&f.expand&&(!f.mobile&&("boolean"!=typeof f.closable||f.closable?(e.style.width=!f.isFloat&&c(f.customDrawerWidth)?"100%":f.customDrawerWidth,e.style.position="fixed",e.style.right=f&&"left"===f.position?"unset":0,e.style.left=f&&"left"===f.position?0:"unset",!f.isFloat&&(e.style.transition="all 300ms ease-out 0s",e.style.position="relative",g.style.flex="0 0 ".concat(f.customDrawerWidth))
10):e.style.width=!f.isFloat&&c(f.customDrawerWidth)?"100%":f.customDrawerWidth,e.style.height=e.parentElement.getBoundingClientRect().height+"px"),f.mobile&&(e.style.width="100%",e.style.position="fixed",e.style.right="0",e.style.left="0",e.style.top="0",e.style.bottom="0"),d.classList.add("live-bar-open"),e.classList.add("live-bar-open"),d.classList.remove("live-bar-close"),e.classList.remove("live-bar-close")),"expand"===f.eventType&&"boolean"==typeof f.expand&&!f.expand){if(!f.mobile){if(e.style.height=e.parentElement.getBoundingClientRect().height+"px",e.style.position="relative",g.style.flex="0 0 70px","right"===(null===f||void 0===f?void 0:f.position)){var h=document.querySelector("gevme-live-bar");h.style="display: flex; justify-content: flex-end;"}e.style.width="70px"}f.mobile&&(e.style.width="100%",e.style.height="100%",e.style.position="relative"),d.classList.remove("live-bar-open"),e.classList.remove("live-bar-open"),d.classList.add("live-bar-close"),e.classList.add("live-bar-close")}"open-profile"===f.eventType&&(e.style.width="100%",e.contentWindow.postMessage(JSON.stringify({eventType:f.eventType,eventData:f.eventData}),"*")),"open-direct-message"===f.eventType&&(e.style.width="100%",e.contentWindow.postMessage(JSON.stringify({eventType:f.eventType,eventData:f.eventData}),"*")),"bookmark"===f.eventType&&e.contentWindow.postMessage(JSON.stringify({eventType:f.eventType,eventData:f.eventData}),"*"),"open-main-chat"===f.eventType&&e.contentWindow.postMessage(JSON.stringify({eventType:f.eventType,eventData:f.eventData}),"*")}catch(a){console.error(a)}}function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function _classCallCheck(a,b){if(!_instanceof(a,b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}function _inherits(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),b&&_setPrototypeOf(a,b)}function _createSuper(a){var b=_isNativeReflectConstruct();return function(){var c,d=_getPrototypeOf(a);if(b){var e=_getPrototypeOf(this).constructor;c=Reflect.construct(d,arguments,e)}else c=d.apply(this,arguments);return _possibleConstructorReturn(this,c)}}function _possibleConstructorReturn(a,b){return b&&("object"===_typeof(b)||"function"==typeof b)?b:_assertThisInitialized(a)}function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _wrapNativeSuper(a){var b="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(a){function c(){return _construct(a,arguments,_getPrototypeOf(this).constructor)}if(null===a||!_isNativeFunction(a))return a;if("function"!=typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!=typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(c,a)},_wrapNativeSuper(a)}function _construct(){return _construct=_isNativeReflectConstruct()?Reflect.construct:function(b,c,d){var e=[null];e.push.apply(e,c);var a=Function.bind.apply(b,e),f=new a;return d&&_setPrototypeOf(f,d.prototype),f},_construct.apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function _isNativeFunction(a){return-1!==Function.toString.call(a).indexOf("[native code]")}function _setPrototypeOf(a,b){return _setPrototypeOf=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},_setPrototypeOf(a,b)}function _getPrototypeOf(a){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},_getPrototypeOf(a)}try{var GevmeLiveBar=/*#__PURE__*/function(a){function b(){var a;return _classCallCheck(this,b),a=c.call(this),a.state={settings:null},a.setSettings(a.getAttribute("settings")),a}_inherits(b,a);var c=_createSuper(b);return _createClass(b,null,[{key:"observedAttributes",get:function(){return["settings"]}}]),_createClass(b,[{key:"attributeChangedCallback",value:function(a,b,c){"settings"===a&&this.setSettings(c)}},{key:"getFilter",value:function(){return this.state.filter}},{key:"setSettings",value:function(a){this.state.settings=a}},{key:"windowEventListener",value:function(a){window.addEventListener("message",function(b){var c,d,e;isValidDomain(b.origin,null===(c=window)||void 0===c||null===(d=c.GEVME)||void 0===d||null===(e=d.setting)||void 0===e?void 0:e.customDomain)&&handleMessageLivebar(b,a)})}},{key:"connectedCallback",value:function(){try{var a=(window.GEVME.widgets||[]).find(function(a){return"live-bar"===a.widget});if(a&&a.enabled){var b,c,d,e,f,g,h,i;this.style.minWidth="70px";var j=JSON.parse(this.state.settings),k=document.createElement("iframe"),l="".concat((null===(b=window)||void 0===b||null===(c=b.GEVME)||void 0===c||null===(d=c.setting)||void 0===d?void 0:d.customDomain)||"","/widgets");for(k.id="GevmeLiveBar",k.name="GevmeLiveBar",k.title="Gevme Live Bar",k.sandbox="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-downloads allow-modals allow-presentation allow-same-origin",k.allow="camera *; microphone *; accelerometer; magnetometer; autoplay; encrypted-media; gyroscope; geolocation; picture-in-picture;
10 xr-spatial-tracking; webvr; vr; webxr; xr",k.allowFullScreen=!0,k.seamless=!0,k.loading="lazy",k.frameBorder="0",k.src="".concat(l,"/livebar","?slug=".concat(null===(e=window)||void 0===e||null===(f=e.GEVME)||void 0===f||null===(g=f.livepage)||void 0===g?void 0:g.slug),"".concat(null!==(h=window)&&void 0!==h&&null!==(i=h.GEVME)&&void 0!==i&&i.isPreview?"&isPreview=true":"")),k.style="position: relative; width: ".concat("70px","; height: 100%; background: transparent; z-index: 9999999; overflow: hidden"),k.onerror=function(){console.error(error)},k.onload=function(){console.log("livebar loaded"),console.log(this.contentWindow),this.contentWindow.postMessage(JSON.stringify({action:"gevme-json",data:JSON.stringify(window.GEVME)}),"*")},this.append(k);0<this.attributes.length;)this.removeAttribute(this.attributes[0].name);this.windowEventListener("GevmeLiveBar")}else return console.error("no settings define"),!1}catch(a){console.error(a)}}}]),b}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));window.customElements.define("gevme-live-bar",GevmeLiveBar)}catch(a){console.error(a.message)} 11"use strict";var _this2=void 0;function _await(e,t,a){return a?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function _catch(e,t){try{var a=e()}catch(a){return t(a)}return a&&a.then?a.then(void 0,t):a}function _async(e){return function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];try{return Promise.resolve(e.apply(this,t))}catch(t){return Promise.reject(t)}}}function _invoke(e,t){var a=e();return a&&a.then?a.then(t):t(a)}function _continue(e,t){return e&&e.then?e.then(t):t(e)}function _empty(){}function _continueIgnored(e){if(e&&e.then)return e.then(_empty)}function _typeof(e){"@babel/helpers - typeof";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},_typeof(e)}function _createForOfIteratorHelper(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var n=0,s=function(){};return{s:s,n:function n(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function e(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,r=!0,l=!1;return{s:function s(){a=a.call(e)},n:function n(){var e=a.next();return r=e.done,e},e:function e(e){l=!0,c=e},f:function f(){try{r||null==a.return||a.return()}finally{if(l)throw c}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}function ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,n)}return a}function _objectSpread(e){for(var t,a=1;a<arguments.length;a++)t=null==arguments[a]?{}:arguments[a],a%2?ownKeys(Object(t),!0).forEach(function(a){_defineProperty(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))});return e}function _defineProperty(e,t,a){return t=_toPropertyKey(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"===_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!==_typeof(e)||null===e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t||"default");if("object"!==_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}window.reactPlayers={},window.renderWebSocket=null;var isValidDomain=function(e){var t,a,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",o=new URLSearchParams(window.location.search),i=o.get("env")||"",s=["https://www.gevme.com","https://showcase-dev.gevme.com","https://showcase-dev.gev.me","https://showcase.gev.me","https://live.gev.me","https://live.gevme.com","https://live-dev.gevme.com","https://admin.gevme.com","https://admin.gev.me","https://admin-dev.gevme.com"];if("localhost"===i&&s.push("http://localhost:3001"),n&&s.push(n),null!==(t=window.GEVME)&&void 0!==t&&null!==(a=t.setting)&&void 0!==a&&a.customDomain){var c,r;s.push(null===(c=window.GEVME)||void 0===c||null===(r=c.setting)||void 0===r?void 0:r.customDomain)}return s.some(function(t){return e===t})},WEBSOCKET_TRIES_EQUIVALENT={1:1,2:3,3:5,4:10,5:20},WEBSOCKET_RETRY_COUNT=0,WEBSOCKET_RETRY_ARRAY=[],WEBSOCKET_TIME_OF_OPEN=new Date,ADOBE_DATA_LAYER={clickSpeaker:function clickSpeaker(e){return{event:"speakers:speaker:card:click",eventInteraction:{speakers:{speaker:{name:e,// Speakerâs name 12card:{action:"click"}}}}}},trackVideo:function trackVideo(e){var t=e.id,a=e.name,n=e.url,o=e.duration,i=void 0===o?0:o;return{event:"videos:video:playback:start",eventInteraction:{videos:{video:{id:t,duration:i,name:a,url:n,playback:{action:"start"}}}}}}},trackAdobeAnalytics=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};try{var t,a,n,o=window.adobeDataLayer||[],i=!!window.GEVME.analytics.adobeAnalyticsScriptUrl,s=JSON.parse(window.localStorage.getItem("playedVideos"))||{},c=null===e||void 0===e||null===(t=e.eventInteraction)||void 0===t||null===(a=t.videos)||void 0===a||null===(n=a.video)||void 0===n?void 0:n.id;if("videos:video:playback:start"===(null===e||void 0===e?void 0:e.event)&&(s[c]||window.localStorage.setItem("playedVideos",JSON.stringify(_objectSpread(_objectSpread({},s),{},_defineProperty({},c,{played:!0})))),s[c]))return;if(o&&i){var r,l,d=_objectSpread(_objectSpread({},e),{},{userDetails:{id:(null===(r=window.GEVME)||void 0===r||null===(l=r.user)||void 0===l?void 0:l.id)||null}});o.push(d)}}catch(e){console.error("Error sending activity to render frame:",e)}},handlePlayEvent=function(e,t,a){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{var o=JSON.parse(window.localStorage.getItem("playedVideos"))||{};if(o[e])return;var i=n?(n||{}).duration():0;if(n){var s=ADOBE_DATA_LAYER.trackVideo({id:e,name:t,url:a,duration:i});trackAdobeAnalytics(s)}if(!n){var c=window.reactPlayers[e].getInternalPlayer();if(c&&c.getDuration){var r=c.getDuration();if("function"==typeof r.then)r.then(function(n){i=n;var o=ADOBE_DATA_LAYER.trackVideo({id:e,name:t,url:a,duration:i});trackAdobeAnalytics(o)}).catch(function(e){return console.error(e)});else{i=r;var l=ADOBE_DATA_LAYER.trackVideo({id:e,name:t,url:a,duration:i});trackAdobeAnalytics(l)}}}}catch(e){console.error(e)}},debounceUtility=function(e){var t,a=1<arguments.length&&arguments[1]!==void 0?arguments[1]:200;return function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];clearTimeout(t),t=setTimeout(function(){e.apply(_this2,o)},a)}},displayReaction=function(e){var t=e.block,a=e.reactionId;try{var n=document.querySelector("div[data-id=\"".concat(t.id,"\"")),o=window.GEVME.reactions.filter(function(e){return e.id===a})[0],i=document.createElement("img");i.src=o.icon,i.alt=o.name;var s="".concat(a,"-").concat(t.id,"-").concat(Date.now(),"-").concat("".concat(Math.random()).replace(".","")),c="gevmeReaction-".concat(s),r="gevmeReactionEmojiAnimation-".concat(s);i.className=c;// random number between 0.1 to 0.25 13var l=Math.random()*(.25-.1)+.1;i.style.left="".concat(n.offsetWidth-n.offsetWidth*l,"px;"),i.style.left="".concat(Math.floor(90*Math.random()),"%");var d="",g="";switch(t.reactionPosition){case"bottom_right":default:{d="left: calc(100% - 45px);",g=n.offsetWidth-n.offsetWidth*l;break}case"bottom_left":{d="left: 45px;",g=n.offsetWidth*l;break}
13case"bottom_center":{d="left: calc(50% - 17px);",l=.5<Math.random()?l:-l,g=n.offsetWidth/2-17+n.offsetWidth*l;break}}var p=document.createElement("style");// for clean up after 5 seconds inorder to remove this temporary elements 14p.type="text/css",document.getElementsByTagName("head")[0].appendChild(p),p.innerHTML="\n .".concat(c," {\n position: absolute;\n width: 100%;\n height: 100%;\n max-width: 42px;\n max-height: 42px;\n border: 1px solid #000;\n border-radius: 50%;\n padding: 5px;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 888;\n animation: ").concat(r," ease-in-out 3000ms 1 forwards, shakeAnim 900ms cubic-bezier(0.64, 0.57, 0.67, 1.53) infinite alternate;\n cursor: none !important;\n }\n @keyframes ").concat(r," {\n 0% {\n bottom: 34px;\n opacity: 0;\n filter: scale(0);\n ").concat(d,"\n }\n 60% {\n opacity: 1;\n filter: scale(2);\n }\n 100% {\n bottom: 90%;\n opacity: 0;\n filter: scale(2.5);\n left: ").concat(g,"px;\n }\n }\n @keyframes shakeAnim {\n 0% {\n transform: translate(2px, 1px) rotate(30deg) scale(1.25);\n }\n 50% {\n transform: translate(-2px, -1px) rotate(-30deg) scale(1.25);\n }\n 100% {\n transform: translate(0px, 0px) rotate(0deg) scale(1);\n }\n }\n "),n.appendChild(i),setTimeout(function(){i.remove(),p.remove()},5e3)}catch(e){console.error(e)}},attachReactionEvent=function(){var e=Math.floor;try{var t=document.querySelectorAll(".gevme-emoji-selectable-item"),a=Object.values(window.GEVME.livepage.showcaseblocks);if(t&&t.length){var n,o=_createForOfIteratorHelper(t);try{for(o.s();!(n=o.n()).done;){var i=n.value;i&&(i.onclick=debounceUtility(function(t){t.preventDefault();var n,o,i,s=t.target,c=s.dataset.targetBlock,r=a.filter(function(e){return e.id===c})[0],l=s.dataset.playerId,d=s.dataset.emojiId,g=s.alt,p="live_page"===window.GEVME.livepage.type,u=document.querySelector("div[data-id=\"".concat(c,"\"")),m="true"===u.dataset.ivs;if(m){if(n=window.videojs.players[l],n)o=n.currentTime();else throw new Error("Needed data is insufficient");}else if(window.reactPlayers[c]){if(n=window.reactPlayers[c],!n)throw new Error("No player found");o=e(n.getCurrentTime()||0)}i={action:"reaction",data:{timeStamp:o,targetBlockId:c,emojiId:d}},window._paq&&0<o&&window._paq.push(["trackEvent","".concat(g," | Reaction"),o,"".concat(r.headingPlain," | ").concat(r.livestreamUrl||r.videoUrl)]),p&&window.parent.postMessage(JSON.stringify(i),"*"),displayReaction({block:r,reactionId:d})}))}}catch(e){o.e(e)}finally{o.f()}}else throw new Error("No emojis found")}catch(e){console.error(e)}},fetchExhibitor=_async(function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"",t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"";return _catch(function(){e=e||window.GEVME.project.id;var a=window.GEVME.setting.customDomain||window.GEVME.setting.apiDomain,n="".concat(a,"/v1/livestream/sponsors/list?projectId=").concat(e,"&limit=0");t&&(n="".concat(a,"/v1/livestream/sponsors/").concat(t,"?projectId=").concat(e));return _await(fetch(n,{credentials:"include",headers:{"Content-Type":"application/json"}}),function(e){return _await(e.json(),function(a){if(!(null!==a&&void 0!==a&&a.status))throw e;return t?(null===a||void 0===a?void 0:a.sponsor)||null:(null===a||void 0===a?void 0:a.sponsors)||[]})})},function(e){return console.error((null===e||void 0===e?void 0:e.message)||"Something went wrong"),t?null:[]})}),retrieveAndRenderAllVideoBlockPlayers=function(e,t){try{var a=".".concat(window.GEVME.cssClassPrefix,"-modal .").concat(window.GEVME.cssClassPrefix,"-modal-container .").concat(window.GEVME.cssClassPrefix,"-modal-content .").concat(window.GEVME.cssClassPrefix,"-template-showcase-block"),n=e&&0<e.length?".".concat(window.GEVME.cssClassPrefix,"-video-block-card-").concat(e):".".concat(window.GEVME.cssClassPrefix,"-video-block-card");n=t?"".concat(a," ").concat(n):n;var o=document.querySelectorAll(n);if(o&&0<o.length){var i=document.querySelector(".gevme-template-content"),s=Object.values(window.GEVME.livepage.showcaseblocks);i&&(i.onscroll=function(){var e=Array.from(o).find(function(e){var t=s.find(function(t){return t.id===e.dataset.id}),a=e.querySelector("video");return t&&!t.backgroundCoverImageVisibility&&a&&!a.paused});if(e&&e.dataset&&0>e.getBoundingClientRect().top){var t=e.dataset.id,a="gevme-video-".concat(t),n=window.videojs.players[a];n&&n.hasStarted_&&enterPictureInPicture(t,!1)}});var c=function(e){try{var t=new URL(e);return e+=t.search?"&".concat(window.GEVME.cssClassPrefix,"Version=").concat(new Date().getTime()):"?".concat(window.GEVME.cssClassPrefix,"Version=").concat(new Date().getTime()),e}catch(t){return e}}
14,r=function(e,n,o,i,s,r,l){var d=n.includes("mux.com");d&&(i=!1);var g=window.GEVME.livepage.showcaseblocks[e]||Object.values(window.GEVME.livepage.showcaseblocks).find(function(t){return t.id===e});if(e&&n&&o)if(i&&window.videojs&&window.registerIVSTech){var p=document.querySelectorAll("".concat(t?"".concat(a," "):"",".").concat(window.GEVME.cssClassPrefix,"-video-block-card-").concat(e));if(p&&0<p.length){window.registerIVSTech(window.videojs,{wasmWorker:"".concat("https://venues-sdk.gevme.com","/scripts/amazon-ivs-wasmworker-v1.11.1.min.js"),wasmBinary:"".concat("https://venues-sdk.gevme.com","/scripts/amazon-ivs-wasmworker.min-v1.11.1.wasm")}),s&&window.registerIVSQualityPlugin&&window.registerIVSQualityPlugin(window.videojs);var u,m=_createForOfIteratorHelper(p);try{var E=function _loop(){var i=u.value,d=document.querySelector("div[data-content-block-id=\"".concat(e,"\"]"));if(d){var p=d.querySelector(".gevme-video-block-content"),m=d.querySelectorAll(".gevme-block-title");if(p&&m&&m.length){var E,h=0,f=0,b=_createForOfIteratorHelper(m);try{for(b.s();!(E=b.n()).done;){var v=E.value;(null===v||void 0===v?void 0:v.offsetHeight)>h&&(h=v.offsetHeight);var y=window.getComputedStyle(v),k=parseInt((null===y||void 0===y?void 0:y.marginTop)||"0")+parseInt((null===y||void 0===y?void 0:y.marginBottom)||"0");k>f&&(f=k)}}catch(e){b.e(e)}finally{b.f()}p.style="height: calc(100% - ".concat(h+f,"px);")}}var M=i.querySelector("video");if(M){var V=(window.videojs.getAllPlayers()||[]).filter(function(t){return t.id()==="".concat(window.GEVME.cssClassPrefix,"-video-").concat(e)}),C=2===V.length?V[1]:V[0];C&&2===V.length&&C.dispose();var x=t?"".concat(a," .").concat(window.GEVME.cssClassPrefix,"-video-").concat(e):".".concat(window.GEVME.cssClassPrefix,"-video-").concat(e),w={techOrder:["AmazonIVS","html5"],controlBar:{download:!1,playToggle:{replay:!1},pictureInPictureToggle:!0,fullscreenToggle:!0},autoplay:!!(t||r)&&"muted",controls:!0,playsinline:!0,muted:!t&&r,fluid:!0,loop:!!(null!==l&&void 0!==l&&l.enableLoop),html5:{nativeAudioTracks:!1,nativeVideoTracks:!1,nativeTextTracks:!1,hls:{allowSeeksWithinUnsafeLiveWindow:!1,overrideNative:!window.videojs.browser.IS_ANY_SAFARI,enableCEA708Captions:!0,enableCEA708CaptionsInHls:!0,captionServices:{CC1:{language:"en",label:"English CC1"},CC3:{language:"en",label:"English CC3"},SERVICE1:{language:"en",label:"Service 1"},SERVICE3:{language:"en",label:"Service 3"},CC2:{language:"en",label:"English CC2"},CC4:{language:"en",label:"English CC4"},SERVICE2:{language:"en",label:"Service 2"},SERVICE4:{language:"en",label:"Service 4"}}},vhs:{allowSeeksWithinUnsafeLiveWindow:!1,overrideNative:!window.videojs.browser.IS_ANY_SAFARI,enableCEA708Captions:!0,enableCEA708CaptionsInHls:!0,useBandwidthFromLocalStorage:!0,captionServices:{CC1:{language:"en",label:"English CC1"},CC3:{language:"en",label:"English CC3"},SERVICE1:{language:"en",label:"Service 1"},SERVICE3:{language:"en",label:"Service 3"},CC2:{language:"en",label:"English CC2"},CC4:{language:"en",label:"English CC4"},SERVICE2:{language:"en",label:"Service 2"},SERVICE4:{language:"en",label:"Service 4"}}}},liveui:!window.videojs.browser.IS_ANY_SAFARI,liveTracker:!window.videojs.browser.IS_ANY_SAFARI,playbackRates:[.25,.5,.75,1,1.25,1.5,1.75,2],crossorigin:"anonymous",enableSmoothSeeking:!0,textTrackSettings:!1,// subsCapsButton: !contentBlock?.disableCaptionSelection, 15subsCapsButton:!0};window.GEVME.analytics.muxTrackingApiKey&&0<window.GEVME.analytics.muxTrackingApiKey.length&&(w.plugins={mux:{debug:!1,disableCookies:!0,data:{env_key:window.GEVME.analytics.muxTrackingApiKey,player_name:o,player_init_time:new Date().getTime(),viewer_user_id:window.GEVME.user?window.GEVME.user.id:"",video_id:e,video_title:o,sub_property_id:window.GEVME.project?window.GEVME.project.id:"",view_session_id:window.GEVME.livepage?window.GEVME.livepage.id:"",page_url:(window.GEVME.setting&&window.GEVME.setting.customDomain&&0<window.GEVME.setting.customDomain.length?window.GEVME.setting.customDomain:window.GEVME.setting.gevmeDomain)+"/page/"+(window.GEVME.livepage?window.GEVME.livepage.slug:"")}}}),C=videojs(document.querySelector(x),w,function(){s&&C.enableIVSQualityPlugin&&C.enableIVSQualityPlugin(),C.volume(t?.4:r?0:.4),C.src(c(n)),C.playsinline(!0);var a=i.querySelector("video");(t||r)&&C.on("loadeddata",function(){C.play()});
15// Update the condition later 16var l=function enableCaptionTracks(){var e=C.textTracks();if(e&&0<e.length)for(var t,n=0;n<e.length;n++)t=e[n],("subtitles"===t.kind||"captions"===t.kind||"metadata"===t.kind)&&(t.mode="showing");if(window.videojs.browser.IS_ANY_SAFARI&&a){var o=a.textTracks;if(o)for(var s,c=0;c<o.length;c++)s=o[c],("subtitles"===s.kind||"captions"===s.kind)&&(s.mode="showing")}};C.on("loadedmetadata",function(){l()});var d=C.textTracks();d.on("addtrack",function(t){l()}),d.on("change",function(){l()}),C.one("playing",function(){l()});var p=function adjustAspectRatio(){if(t&&a)try{var e=+(a.videoWidth/a.videoHeight).toFixed(2);if(e){a.setAttribute("data-aspect-ratio",e);var n=a.clientHeight,o=a.clientWidth/e,i=a.clientWidth,s=e*a.clientHeight;o>n?s<=i&&(i=s):n=o,a.style.height="".concat(n,"px"),a.style.width="".concat(i,"px")}}catch(e){console.error(e)}};C.on("fullscreenchange",function(){a&&(window.innerHeight===screen.height?(a.style.minHeight="100%",a.style.minWidth="100%"):(a.style.minHeight="",a.style.minWidth="",t&&p()))}),C.on("ready",function(){// if (contentBlock?.disableCaptionSelection) { 17// const style = document.createElement("style"); 18// style.innerHTML = `#gevme-video-${videoId} .vjs-subs-caps-button { 19// display: none !important; 20// }`; 21// document.head.appendChild(style); 22// const textTracks = player.textTracks(); 23// for (let i = 0; i < textTracks.length; i++) { 24// textTracks[i].mode = "disabled"; 25// } 26// } 27if(M){var t=document.querySelector("#gevme-video-".concat(e));t&&(t.style.opacity=1),M.style.opacity=1}}),C.on("play",function(){C.poster(null),p(),handlePlayEvent(e,o,n,C)}),C.on("error",function(e){return console.error(e)}),C.getIVSPlayer&&C.getIVSPlayer().addEventListener(C.getIVSEvents().PlayerEventType.ERROR,function(a){[C.getIVSEvents().PlayerEventType.ERROR,C.getIVSEvents().PlayerEventType.GENERIC,C.getIVSEvents().PlayerEventType.AUTHORIZATION,C.getIVSEvents().PlayerEventType.NETWORK_UNAVAILABLE,C.getIVSEvents().PlayerEventType.NETWORK,C.getIVSEvents().PlayerEventType.NETWORK_IO,C.getIVSEvents().PlayerEventType.NOT_AVAILABLE,C.getIVSEvents().PlayerEventType.INVALID_DATA,C.getIVSEvents().PlayerEventType.INVALID_STATE,C.getIVSEvents().PlayerEventType.NO_SOURCE,C.getIVSEvents().PlayerEventType.TIMEOUT].indexOf(a.type)&&((t||r)&&C.pause(),setTimeout(function(){try{C&&(C.src(c(n)),setTimeout(function(){try{if(t||r){var a=(window.videojs.getAllPlayers()||[]).find(function(t){return t.id()==="".concat(window.GEVME.cssClassPrefix,"-video-").concat(e)});a&&a.play()}}catch(e){console.error(e)}},5e3))}catch(e){console.error(e)}},1e4))}),a&&(a.setAttribute("data-matomo-resource",n),a.setAttribute("data-matomo-title",o),setTimeout(function(){window.Matomo&&window.Matomo.MediaAnalytics&&window.Matomo.MediaAnalytics.enableMediaAnalytics&&window.Matomo.MediaAnalytics.scanForMedia&&(window.Matomo.MediaAnalytics.enableMediaAnalytics(),window.Matomo.MediaAnalytics.scanForMedia())},1e3),g&&g.id&&0<g.id.length&&"LiveStream"===g.type&&g&&g.streamingService&&("customstream"===g.streamingService||"gevmelive"===g.streamingService)&&(a.addEventListener("enterpictureinpicture",function(){g&&g.id&&0<g.id.length&&"LiveStream"===g.type&&g.backgroundCoverImage&&0<g.backgroundCoverImage.length&&g.backgroundCoverImageVisibility&&window.GEVME.utils.checkModalPopupVisibility(g.id)&&window.GEVME.utils.closeModalPopup(g.name,!0)}),a.addEventListener("leavepictureinpicture",function(){g.backgroundCoverImage&&0<g.backgroundCoverImage.length&&g.backgroundCoverImageVisibility&&!window.GEVME.utils.checkModalPopupVisibility(g.id)&&window.GEVME.utils.openModalPopup({contentBlock:g},!0)}),!t&&window.IntersectionObserver&&new window.IntersectionObserver(function(e){e.forEach(function(e){C.paused()||!(.5>=e.intersectionRatio)||document.pictureInPictureElement||window.GEVME.utils.enterPictureInPicture(g.id,t)})},{threshold:[0,.25,.5,.75,1]}).observe(a)))})}};for(m.s();!(u=m.n()).done;)E()}catch(e){m.e(e)}finally{m.f()}}}else if(!i&&window.renderReactPlayer){var h=document.querySelectorAll(".".concat(window.GEVME.cssClassPrefix,"-video-block-card-").concat(e));h&&0<h.length&&h.forEach(function(a){var i,s=window.GEVME.livepage.showcaseblocks[e]||Object.values(window.GEVME.livepage.showcaseblocks).find(function(t){return t.id===e}),c=o,l={id:"player-".concat(e),url:n,playing:t||r,controls:!0,volume:t?.4:r?0:.4,playsinline:!0,muted:!t&&r,pip:!1,height:"100%",width:"100%",onPlay:function onPlay(){handlePlayEvent(e,c,n)},onReady:_async(function(t){return _continueIgnored(_catch(function(){return _continue(_catch(function(){var a=t.getInternalPlayer();return _invoke(function(){if(a){var e,t=a.getVideoData;return _await(t?null===(e=a.getVideoData())||void 0===e?void 0:e.title:0,function(e){var n=t||a.getVideoTitle;return _await(t?e:n?a.getVideoTitle():"",function(e){c=e||o},t||!n)},!t)}},function(){if(s&&"youtube"===s.videoType||s&&"LiveStream"===s.type&&"youtube"===s.streamingService){var t,a=function onPlayerStateChange(t){(1===(null===t||void 0===t?void 0:t.data)||3===(null===t||void 0===t?void 0:t.data))&&handlePlayEvent(e,c,n)},o=null===s||void 0===s||null===(t=s.metadata)||void 0===t?void 0:t.t
27itle;c=o||c;var i=document.querySelector("#player-".concat(e," iframe")),r=i.id;if(r)// eslint-disable-next-line no-undef, no-unused-vars 28var l=new window.YT.Player(r,{events:{onStateChange:a}})}})},function(e){console.error(e)}),function(){var e=a.querySelector("iframe");e&&(e.setAttribute("data-matomo-resource",n),e.setAttribute("data-matomo-title",o)),setTimeout(function(){window.Matomo&&window.Matomo.MediaAnalytics&&window.Matomo.MediaAnalytics.enableMediaAnalytics&&window.Matomo.MediaAnalytics.scanForMedia&&(window.Matomo.MediaAnalytics.enableMediaAnalytics(),window.Matomo.MediaAnalytics.scanForMedia())},1e3)})},function(e){console.error("Error in onReady:",e)}))}),onError:function onError(e){console.error("onError",e)},config:{file:{attributes:{"data-matomo-resource":n,"data-matomo-title":o,controlslist:"nodownload"}},youtube:{attributes:{title:o,"data-matomo-title":o},playerVars:{autoplay:r?1:0,controls:1,enablejsapi:1,loop:0,playsinline:1}},vimeo:{attributes:{title:o,"data-matomo-title":o},playerOptions:{autoplay:r,controls:!0,loop:!1,pip:!1,playsinline:!0}},facebook:{attributes:{title:o,"data-matomo-title":o,"data-show-captions":!0,"data-autoplay":r,"data-allowfullscreen":!0,"data-controls":!0}}},ref:function ref(e){return i=e}},d=document.createElement("style");d.innerHTML="\n .".concat(window.GEVME.cssClassPrefix,"-video-block-card-").concat(e," video::-webkit-media-text-track-display {\n top: 90% !important;\n font-size: 14px !important;\n }\n .").concat(window.GEVME.cssClassPrefix,"-video-block-card-").concat(e," video::cue {\n font-size: 14px !important;\n background-color: rgba(0, 0, 0, 0.8) !important;\n color: #ffffff !important;\n line-height: 1.5;\n /* Add any other custom styles here */\n }\n "),document.head.appendChild(d),window.renderReactPlayer(a,l),window.reactPlayers[e]=i})}attachReactionEvent()};o.forEach(function(e){var t=s.find(function(t){return t.id===e.dataset.id})||{};e&&e.dataset&&e.dataset.id&&0<e.dataset.id.length&&e.dataset.url&&0<e.dataset.url.length&&e.dataset.title&&0<e.dataset.title.length&&r(e.dataset.id,e.dataset.url,e.dataset.title,"true"===e.dataset.ivs,"true"===e.dataset.quality,"true"===e.dataset.autoplay,t)})}}catch(e){console.error(e)}},enableMatomoMediaTracking=function enableMatomoMediaTracking(){try{window.Matomo&&window.Matomo.MediaAnalytics&&window.Matomo.MediaAnalytics.enableMediaAnalytics&&window.Matomo.MediaAnalytics.isMediaAnalyticsEnabled&&window.Matomo.MediaAnalytics.scanForMedia&&(window.Matomo.MediaAnalytics.enableMediaAnalytics(),window.Matomo.MediaAnalytics.isMediaAnalyticsEnabled()&&setTimeout(function(){window.Matomo.MediaAnalytics.scanForMedia()},5e3))}catch(e){console.error(e)}},liveReloadFunction=function liveReloadFunction(e,t,a){try{if(e&&e.data){var n=JSON.parse(e.data),o=t?"builder":"livepage";if(n.type==o&&n.data){var i;if(null!==n&&void 0!==n&&null!==(i=n.data)&&void 0!==i&&i.setting){var s;//update GEVME settings 29window.GEVME.setting=_objectSpread(_objectSpread({},window.GEVME.setting),n.data.setting),null!==n&&void 0!==n&&(!(null!==(s=n.data)&&void 0!==s)||delete s.setting)}if("created-block"===n.action){var c;if(addBlockType(n.data.type.toLowerCase()),window.GEVME.livepage.showcaseblocksweight.push(n.data.name),window.GEVME.livepage.showcaseblocks[n.data.name]=n.data,"RichText"===(null===n||void 0===n||null===(c=n.data)||void 0===c?void 0:c.type))return window.location.reload();var r=document.querySelectorAll("".concat(window.GEVME.cssClassPrefix,"-content-block"));if(r&&0<r.length){var l,d=_createForOfIteratorHelper(r);try{for(d.s();!(l=d.n()).done;){var g=l.value,p=g.getAttribute("all"),u=g.getAttribute("name"),m=g.getAttribute("include"),E=g.getAttribute("exclude");if(p&&"true"===p.toString()){var h=g.querySelector(".".concat(window.GEVME.cssClassPrefix,"-content-blocks-row.").concat(window.GEVME.cssClassPrefix,"-row"));h&&(n.data.backgroundCoverImageVisibility&&!!n.data.backgroundCoverImage?h.insertAdjacentHTML("beforeend","<div class=\"".concat(window.GEVME.cssClassPrefix,"-content-blocks-column ").concat(window.GEVME.cssClassPrefix,"-column ").concat(n.data.type,"\" data-content-block-container=\"\" data-content-block-container-id=\"").concat(n.data.id,"\" data-content-block-container-name=\"").concat(n.data.name,"\" data-content-block-container-type=\"").concat(n.data.type,"\">").concat(n.data.html,"</div>")):h.insertAdjacentHTML("beforeend","<div class=\"".concat(window.GEVME.cssClassPrefix,"-content-blocks-column ").concat(window.GEVME.cssClassPrefix,"-column ").concat(n.data.type,"\" data-content-block-container=\"\" data-content-block-container-id=\"").concat(n.data.id,"\" data-content-block-container-name=\"").concat(n.data.name,"\" data-content-block-container-type=\"").concat(n.data.type,"\">
29").concat(n.data.htmlWithoutBackgroundCoverImage,"</div>")))}else if(u&&0<u.length){if(u===n.data.name){var f=g.querySelector(".".concat(window.GEVME.cssClassPrefix,"-content-blocks-row.").concat(window.GEVME.cssClassPrefix,"-row"));f&&(n.data.backgroundCoverImageVisibility&&!!n.data.backgroundCoverImage?f.insertAdjacentHTML("beforeend","<div class=\"".concat(window.GEVME.cssClassPrefix,"-content-blocks-column ").concat(window.GEVME.cssClassPrefix,"-column ").concat(n.data.type,"\" data-content-block-container=\"\" data-content-block-container-id=\"").concat(n.data.id,"\" data-content-block-container-name=\"").concat(n.data.name,"\" data-content-block-container-type=\"").concat(n.data.type,"\">").concat(n.data.html,"</div>")):f.insertAdjacentHTML("beforeend","<div class=\"".concat(window.GEVME.cssClassPrefix,"-content-blocks-column ").concat(window.GEVME.cssClassPrefix,"-column ").concat(n.data.type,"\" data-content-block-container=\"\" data-content-block-container-id=\"").concat(n.data.id,"\" data-content-block-container-name=\"").concat(n.data.name,"\" data-content-block-container-type=\"").concat(n.data.type,"\">").concat(n.data.htmlWithoutBackgroundCoverImage,"</div>")))}}else if(m&&0<m.length){if(m=m.trim().split(","),m&&0<m.length&&-1<m.indexOf(n.data.name)){var b=g.querySelector(".".concat(window.GEVME.cssClassPrefix,"-content-blocks-row.").concat(window.GEVME.cssClassPrefix,"-row"));b&&b.insertAdjacentHTML("beforeend","<div class=\"".concat(window.GEVME.cssClassPrefix,"-content-blocks-column ").concat(window.GEVME.cssClassPrefix,"-column ").concat(n.data.type,"\" data-content-block-container=\"\" data-content-block-container-id=\"").concat(n.data.id,"\" data-content-block-container-name=\"").concat(n.data.name,"\" data-content-block-container-type=\"").concat(n.data.type,"\">").concat(n.data.html,"</div>"))}}else if(E&&0<E.length&&(E=E.trim().split(","),E&&0<E.length&&-1===E.indexOf(n.data.name))){var v=g.querySelector(".".concat(window.GEVME.cssClassPrefix,"-content-blocks-row.").concat(window.GEVME.cssClassPrefix,"-row"));v&&v.insertAdjacentHTML("beforeend","<div class=\"".concat(window.GEVME.cssClassPrefix,"-content-blocks-column ").concat(window.GEVME.cssClassPrefix,"-column ").concat(n.data.type,"\" data-content-block-container=\"\" data-content-block-container-id=\"").concat(n.data.id,"\" data-content-block-container-name=\"").concat(n.data.name,"\" data-content-block-container-type=\"").concat(n.data.type,"\">").concat(n.data.html,"</div>"))}}}catch(e){d.e(e)}finally{d.f()}}document.dispatchEvent(new CustomEvent("".concat(window.GEVME.cssClassPrefix,"-content-created"),{detail:{data:n.data}})),setTimeout(function(){window.GEVME.utils.retrieveAndRenderAllVideoBlockPlayers(n.data.id,!1),window.GEVME.utils.enableImageSlideshowAutoScroll(n.data.name)},1e3)}else if("updated-block"===n.action){var y,k=window.GEVME.livepage.showcaseblocks[n.data.name];window.GEVME.livepage.showcaseblocks[n.data.name]=n.data;var M=document.querySelectorAll("".concat(window.GEVME.cssClassPrefix,"-content-block"));if("RichText"===(null===n||void 0===n||null===(y=n.data)||void 0===y?void 0:y.type))return window.location.reload();if(M&&0<M.length){var V,C=_createForOfIteratorHelper(M);try{for(C.s();!(V=C.n()).done;){var x=V.value,w=x.querySelectorAll(".".concat(window.GEVME.cssClassPrefix,"-content-blocks-row.").concat(window.GEVME.cssClassPrefix,"-row .").concat(window.GEVME.cssClassPrefix,"-content-blocks-column.").concat(window.GEVME.cssClassPrefix,"-column[data-content-block-container-id=\"").concat(n.data.id,"\"]"));w&&0<w.length&&w.forEach(function(e){e.innerHTML="",e.innerHTML=n.data.html})}}catch(e){C.e(e)}finally{C.f()}}window.GEVME.utils.checkModalPopupVisibility(n.data.id)&&(window.GEVME.utils.closeModalPopup(n.data.name),window.GEVME.utils.openModalPopup({contentBlock:n.data})),document.dispatchEvent(new CustomEvent("".concat(window.GEVME.cssClassPrefix,"-content-updated"),{detail:{data:{old:k,new:n.data}}})),setTimeout(function(){window.GEVME.utils.retrieveAndRenderAllVideoBlockPlayers(n.data.id,!1),window.GEVME.utils.enableImageSlideshowAutoScroll(n.data.name)},1e3)}else if("deleted-block"===n.action){var P=window.GEVME.livepage.showcaseblocks[n.data.name],G=window.GEVME.livepage.showcaseblocksweight.indexOf(n.data.name);window.GEVME.livepage.showcaseblocksweight.splice(G,1),delete window.GEVME.livepage.showcaseblocks[n.data.name];var S=document.querySelectorAll("".concat(window.GEVME.cssClassPrefix,"-content-block"));if(S&&0<S.length){var I,A=_createForOfIteratorHelper(S);try{for(A.s();!(I=A.n()).done;){var H=I.value,T=H.querySelectorAll(".".concat(window.GEVME.cssClassPrefix,"-content-blocks-row.").concat(window.GEVME.cssClassPrefix,"-row .").concat(window.GEVME.cssClassPrefix,"-content-blocks-column.").concat(window.GEVME.cssClassPrefix,"-column[data-content-block-container-id=\"").concat(n.data.id,"\"]"));T&&0<T.length&&T.forEach(function(e){e.parentNode.removeChild(e)})}}catch(e){A.e(e)}finally{A.f()}}window.GEVME.utils.checkModalPopupVisibility(P.id)&&window.GEVME.utils.closeModalPopup(P.name),document.dispatchEvent(new CustomEvent("".concat(window.GEVME.cssClassPrefix,"-content-deleted"),{detail:{data:n.data}}))}else if("updated-header"===n.action){var B;null!==n&&void 0!==n&&null!==(B=n.data)&&void 0!==B&&B.headerSettings&&(window.GEVME.header=n.data.headerSettings,document.dispatchEvent(new CustomEvent("".concat(window.GEVME.cssClassPrefix,"-page-header-updated"),{detail:window.GEVME.header})));var W=window.GEVME.widgets.findIndex(function(e){return"header"==e.widget});-1<W&&(window.GEVME.widgets[W]=n.data.settings,window.GEVME.setting.header.enabled=n.data.settings.enabled,document.dispatchEvent(new CustomEvent("".concat(window.GEVME.cssClassPrefix,"-header-updated"),{detail:{data:n.data.settings}})),window.parent.postMessage(JSON.stringify({action:"gevme-json",data:JSON.stringify(window.GEVME)}),"*"))}else if("updated-livebar"===n.action){var L=window.GEVME.widgets.findIndex(function(e){return"live-bar"==e.widget});if(-1<L){var j=window.GEVME.widgets[L].inputs.find(function(e){return"closable"===e.field}),q=n.data.settings.inputs.find(function(e){return"closable"===e.field}),R=window.GEVME.widgets[L].inputs.find(function(e){return"openByDefault"===e.field}),_=n.data.settings.inputs.find(function(e){return"openByDefault"===e.field}),N=window.GEVME.widgets[L].inputs.find(function(e){return"push_live_page_content"===e.field}),Z=n.data.settings.inputs.find(function(e){return"push_live_page_content"===e.field});if(window.GEVME.widgets[L].enabled!==n.data.settings.enabled)window.location.reload();else if(window.GEVME.widgets[L].position!==n.data.settings.position)window.location.reload();else if(j&&q&&j.value!==q.value)window.location.reload();else if(R&&_&&R.value!==_.value)window.location.reload();else if(N&&Z&&N.value!==Z.value)window.location.reload();else{window.GEVME.widgets[L]=n.data.settings,window.GEVME.setting.livebar.enabled=n.data.settings.enabled,window.GEVME.setting.livebar.closable=n.data.settings.closable,window.GEVME.setting.livebar.positionLeft="left"===n.data.settings.position,window.GEVME.setting.livebar.positionRight="right"===n.data.settings.position;var D=document.querySelectorAll("".concat(window.GEVME.cssClassPrefix,"-live-bar"));D&&0<D.length&&D.forEach(function(e){var t=e.querySelector("iframe");t&&(t.src=t.src)}),document.dispatchEvent(new CustomEvent("".concat(window.GEVME.cssClassPrefix,"-livebar-updated"),{detail:{data:n.data.settings}}))}}}else if("reorder"===n.action)n.data.order&&1<n.data.order.length&&(n.data.order.forEach(function(e){var t=e.name,a=e.order;window.GEVME.livepage.showcaseblocks[t].order=a;var n=window.GEVME.livepage.showcaseblocks[t],o=document.querySelectorAll("".concat(window.GEVME.cssClassPrefix,"-content-block"));if(o&&0<o.length){var i,s=_createForOfIteratorHelper(o);try{for(s.s();!(i=s.n()).done;){var c=i.value,r=c.getAttribute("name");if(r&&0<r.length&&r===n.name){var l=c.querySelector(".".concat(window.GEVME.cssClassPrefix,"-content-blocks-row.").concat(window.GEVME.cssClassPrefix,"-row .").concat(window.GEVME.cssClassPrefix,"-content-blocks-column.").concat(window.GEVME.cssClassPrefix,"-column[data-content-block-container-id=\"").concat(n.id,"\"]"));l&&(l.style.order=n.order)}else{var d=c.querySelectorAll(".".concat(window.GEVME.cssClassPrefix,"-content-blocks-row.").concat(window.GEVME.cssClassPrefix,"-row .").concat(window.GEVME.cssClassPrefix,"-content-blocks-column.").concat(window.GEVME.cssClassPrefix,"-column[data-content-block-container-id=\"").concat(n.id,"\"]"));d&&0<d.length&&d.forEach(function(e){e.style.order=n.order})}}}catch(e){s.e(e)}finally{s.f()}}}),document.dispatchEvent(new CustomEvent("".concat(window.GEVME.cssClassPrefix,"-content-reorder"),{detail:{data:n.data}})));else if("updated-audio"===n.action)window.parent.postMessage(JSON.stringify({action:n.action,data:n.data.settings}),"*");else if("reaction"===n.action){var O=n.data,z=O.reactionId,F=O.blockId,U=Object.values(window.GEVME.livepage.showcaseblocks),Y=U.filter(function(e){return e.id===F})[0];displayReaction({reactionId:z,block:Y})}document.dispatchEvent(new CustomEvent("".concat(window.GEVME.cssClassPrefix,"-content"),{detail:{data:n}}))}}}catch(e){console.error(e)}},enableLiveReloadingWebSocket=function enableLiveReloadingWebSocket(){var e=Math.floor,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"live_page",a=1<arguments.length?arguments[1]:void 0,n=2<arguments.length?arguments[2]:void 0,o=3<arguments.length?arguments[3]:void 0,i=4<arguments.length?arguments[4]:void 0;try{if(("website"!==t||"website"===t&&a)&&window.WebSocket&&o&&0<o.length&&i&&0<i.length){var s=function createWebsocketConnection(){window.renderWebSocket=new window.WebSocket("".concat(o,"?token=").concat(i).c
29oncat(a?"&connectionType=preview":"")),window.renderWebSocket.onopen=function(e){WEBSOCKET_TIME_OF_OPEN=new Date,console.log("Websocket Open: ",WEBSOCKET_TIME_OF_OPEN),window.localStorage.setItem("".concat(window.GEVME.project.id,"-gevme-ws"),JSON.stringify(["".concat(window.GEVME.livepage.slug)])),console.info("Render: Websocket open. Timestamp: ".concat(e.timeStamp," - ").concat(Date.now()))},window.renderWebSocket.onerror=function(e){console.error(e)},window.renderWebSocket.onclose=function(t){var a=Math.abs,n=new Date,o=a(WEBSOCKET_TIME_OF_OPEN-n),i=e(o/1e3);if(console.warn("Render: Websocket ".concat(t.type," && ").concat(n,". Reason: ").concat(t.reason||"undefined")),("Going Away"===(null===t||void 0===t?void 0:t.reason)||1001===(null===t||void 0===t?void 0:t.code)||"1001"===(null===t||void 0===t?void 0:t.code))&&60<i)return console.info("Render: Websocket will re-establish right away! ".concat(Date.now())),s();if(180<=i)return console.info("Render: Websocket will re-establish normally! ".concat(Date.now())),s();if(4>=WEBSOCKET_RETRY_COUNT){if(console.info("Render: Websocket will re-established with limited tries"),++WEBSOCKET_RETRY_COUNT,WEBSOCKET_RETRY_COUNT.length){var c,l=_createForOfIteratorHelper(WEBSOCKET_RETRY_COUNT);try{for(l.s();!(c=l.n()).done;){var d=c.value;clearTimeout(d)}}catch(e){l.e(e)}finally{l.f()}}var g=setTimeout(function(){return s()},1e3*WEBSOCKET_RETRY_COUNT);WEBSOCKET_RETRY_ARRAY.push(g)}else console.log("Render: Websocket failed, need to refresh the page.")},window.renderWebSocket.onmessage=function(e){window.parent.postMessage(JSON.stringify(_objectSpread(_objectSpread({},JSON.parse(e.data)),{},{from:"websocket",livepageId:window.GEVME.livepage.id,projectId:window.GEVME.project.id})),"*");var t=document.querySelectorAll("iframe[id*=\"Gevme\"");0<t.length&&t.forEach(function(t){t.contentWindow.postMessage(JSON.stringify(_objectSpread(_objectSpread({},JSON.parse(e.data)),{},{from:"websocket",livepageId:window.GEVME.livepage.id,projectId:window.GEVME.project.id})),"*")}),liveReloadFunction(e,a,n)}};s()}}catch(e){console.error(e)}},enableImageSlideshowAutoScroll=function enableImageSlideshowAutoScroll(e){try{var t=function initSlider(e,t){var a=window.GEVME.livepage.showcaseblocks[e];if(t&&a&&a.images&&0<a.images.length)var n=new Splide(t,{perPage:null!==a&&void 0!==a&&a.numberPerPage?parseInt(null===a||void 0===a?void 0:a.numberPerPage):1,type:"loop",rewind:!0,lazy:!1,gap:null!==a&&void 0!==a&&a.spaceBetweenImages?parseInt(null===a||void 0===a?void 0:a.spaceBetweenImages):0,padding:0,autoplay:!!(a.autoScrollEnabled&&0<a.autoScrollTimeInterval),interval:a.autoScrollEnabled&&0<a.autoScrollTimeInterval?1e3*a.autoScrollTimeInterval:0,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,snap:!0}).mount()};if(window.Splide&&window.GEVME&&window.GEVME.livepage&&window.GEVME.livepage.showcaseblocksweight&&0<window.GEVME.livepage.showcaseblocksweight.length)if(e&&0<e.length){var a,n=null===(a=window.GEVME.livepage.showcaseblocks[e])||void 0===a?void 0:a.order;if(-1<n){var o=document.querySelectorAll("".concat(window.GEVME.cssClassPrefix,"-content-block"));if(o&&0<o.length){var s,c=_createForOfIteratorHelper(o);try{for(c.s();!(s=c.n()).done;){var r=s.value,l=r.getAttribute("name");if(l&&0<l.length&&l===window.GEVME.livepage.showcaseblocks[e].name){var d=r.querySelector("[data-content-block-container-id=\"".concat(window.GEVME.livepage.showcaseblocks[e].id,"\"]"));if(d){var g=d.querySelector(".".concat(window.GEVME.cssClassPrefix,"-carousel"));g&&t(e,g)}}else{var p=r.querySelectorAll("[data-content-block-container-id=\"".concat(window.GEVME.livepage.showcaseblocks[e].id,"\"]"));p&&0<p.length&&p.forEach(function(a){var n=a.querySelector(".".concat(window.GEVME.cssClassPrefix,"-carousel"));n&&t(e,n)})}}}catch(e){c.e(e)}finally{c.f()}}}}else{var u=document.querySelectorAll(".".concat(window.GEVME.cssClassPrefix,"-template-showcase-block.imageslideshow"));if(u&&0<u.length)for(var m,E=0;E<u.length;E++)if(m=u[E].querySelector(".".concat(window.GEVME.cssClassPrefix,"-carousel")),m){var h=u[E].getAttribute("data-content-block-name");h&&0<h.length&&t(h,m)}}}catch(e){console.error(e)}},checkPreviewPageLink=function checkPreviewPageLink(e){try{if(e&&0<e.length&&"#"!==e){var t=new URL(e).href,a=new URL(e).hostname;if(-1<["www.gevme.com","gevme.com","showcase-dev.gevme.com"].indexOf(a)){var n=t.split("gevme.com/page/");if(1<n.length&&(t=n[n.length-1],t))return t.includes("#")?t.split("#")[0]:t}}return null}catch(e){return null}},openModalPopup=function openModalPopup(e){var t=!!(1<arguments.length&&arguments[1]!==void 0)&&arguments[1];try{if(e){var a=e.html,n=e.height,o=e.width,i=e.backgroundColor,s=e.fullscreen,c=e.contentBlock?e.contentBlock&&e.contentBlock.name&&0<e.contentBlock.name.length?window.GEVME.livepage.showcaseblocks[e.contentBlock.name]:null:e.contentBlockName&&0<e.contentBlockName.length?window.GEVME.livepage.showcaseblocks[e.contentBlockName]:null,r=".".concat(window.GEVME.cssClassPrefix,"-modal"),l=!1;if(c&&c.id&&0<c.id.length){if(null!==c&&void 0!==c&&c.backgroundCoverImageDisablePopup&&!(null!==c&&void 0!==c&&c.backgroundCoverImageVisibility))return;// disable popup if backgroundCoverImageDisablePopup is true 30document.querySelector("".concat(r,"[data-content-block-modal-id=\"").concat(c.id,"\"]"))||(document.body.insertAdjacentHTML("beforeend","<div class=\"".concat(window.GEVME.cssClassPrefix,"-modal\" data-content-block-modal=\"\" data-content-block-modal-id=\"").concat(c.id,"\" data-content-block-modal-name=\"").concat(c.name,"\" data-content-block-modal-type=\"").concat(c.type,"\"><div class=\"").concat(window.GEVME.cssClassPrefix,"-modal-container\"><div class=\"").concat(window.GEVME.cssClassPrefix,"-modal-header ").concat(window.GEVME.cssClassPrefix,"-modal-drag-handle\"></div><div class=\"").concat(window.GEVME.cssClassPrefix,"-modal-content\"></div></div></div>")),l=!0)}var d=document.querySelector(c&&c.id&&0<c.id.length?"".concat(r,"[data-content-block-modal-id=\"").concat(c.id,"\"]"):"".concat(r)),g=["<span class=\"".concat(window.GEVME.cssClassPrefix,"-modal-close\" onclick=\"window.GEVME.utils.closeModalPopup(").concat(c&&c.name&&0<c.name.length?"'".concat(c.name,"'"):"",")\">\xD7</span>")];if(d){if(t)return void d.classList.add("visible");var p=d.querySelector(".".concat(window.GEVME.cssClassPrefix,"-modal-container")),u=d.querySelector(".".concat(window.GEVME.cssClassPrefix,"-modal-container .").concat(window.GEVME.cssClassPrefix,"-modal-header")),m="",E="",h="",f=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);if(c&&c.id&&0<c.id.length){p&&(E=window.getComputedStyle(p,null).getPropertyValue("padding"),m="".concat(E," + ").concat(E)),u&&(h=window.getComputedStyle(u,null).getPropertyValue("height"),m=m+" + "+h);var b=c.isInsideParentContentBlock?"100%":c.fitHeightToContent||"fit-content"===c.blockHeight?f?"auto":"fit-content":c.blockHeight&&0<c.blockHeight.length?"calc(".concat(c.blockHeight," + (").concat(m,"))"):"100%",v=c.blockWidth&&0<c.blockWidth.length?"min-content"!==c.blockWidth&&"max-content"!==c.blockWidth&&"fit-content"!==c.blockWidth?c.blockWidth:"auto":"100%",k=d.querySelector("style[data-style=\"desktop\"]"),M="\n .".concat(window.GEVME.cssClassPrefix,"-modal.visible[data-content-block-modal-id=\"").concat(c.id,"\"] {\n height: 400px !important;\n }\n ");if(k?k.innerHTML=M:(d.insertAdjacentHTML("afterbegin","\n <style type=\"text/css\" data-style=\"desktop\">\n ".concat(M,"\n </style>\n ")),(c.fitHeightToContent||"fit-content"===c.blockHeight)&&d.insertAdjacentHTML("beforeend","\n <style type=\"text/css\" data-style=\"desktop-default\">\n .".concat(window.GEVME.cssClassPrefix,"-modal.visible[data-content-block-modal-id=\"").concat(c.id,"\"] .").concat(window.GEVME.cssClassPrefix,"-modal-container .").concat(window.GEVME.cssClassPrefix,"-modal-content gevme-content-block .gevme-content-blocks-row .gevme-content-blocks-column[data-content-block-container-id=\"").concat(c.id,"\"] .gevme-template-showcase-block[data-content-block-id=\"").concat(c.id,"\"] {\n height: 550px;\n }\n </style>
30\n "))),c.tabletBreakpoints){var V=c.isInsideParentContentBlock?"100%":c.tabletBreakpoints.fitHeightToContent||"fit-content"===c.tabletBreakpoints.blockHeight?f?"auto":"fit-content":c.tabletBreakpoints.blockHeight&&0<c.tabletBreakpoints.blockHeight.length?"calc(".concat(c.tabletBreakpoints.blockHeight," + (").concat(m,"))"):b,C=c.tabletBreakpoints.blockWidth&&0<c.tabletBreakpoints.blockWidth.length?"min-content"!==c.tabletBreakpoints.blockWidth&&"max-content"!==c.tabletBreakpoints.blockWidth&&"fit-content"!==c.tabletBreakpoints.blockWidth?c.tabletBreakpoints.blockWidth:"auto":v,w=d.querySelector("style[data-style=\"tablet\"]"),P="\n @media screen and (min-width: 576px) and (max-width: 991px) {\n .".concat(window.GEVME.cssClassPrefix,"-modal.visible[data-content-block-modal-id=\"").concat(c.id,"\"] {\n height: 400px !important;\n }\n }\n ");w?w.innerHTML=P:d.insertAdjacentHTML("beforeend","\n <style type=\"text/css\" data-style=\"tablet\">\n ".concat(P,"\n </style>\n "))}if((!c.tabletBreakpoints&&(c.fitHeightToContent||"fit-content"===c.blockHeight)||c.tabletBreakpoints&&(c.tabletBreakpoints.fitHeightToContent||"fit-content"===c.tabletBreakpoints.blockHeight))&&d.insertAdjacentHTML("beforeend","\n <style type=\"text/css\" data-style=\"tablet-default\">\n @media screen and (min-width: 576px) and (max-width: 991px) {\n .".concat(window.GEVME.cssClassPrefix,"-modal.visible[data-content-block-modal-id=\"").concat(c.id,"\"] .").concat(window.GEVME.cssClassPrefix,"-modal-container .").concat(window.GEVME.cssClassPrefix,"-modal-content gevme-content-block .gevme-content-blocks-row .gevme-content-blocks-column[data-content-block-container-id=\"").concat(c.id,"\"] .gevme-template-showcase-block[data-content-block-id=\"").concat(c.id,"\"] {\n height: 450px;\n }\n }\n </style>\n ")),c.mobileBreakpoints){var G=c.isInsideParentContentBlock?"100%":c.mobileBreakpoints.fitHeightToContent||"fit-content"===c.mobileBreakpoints.blockHeight?f?"auto":"fit-content":c.mobileBreakpoints.blockHeight&&0<c.mobileBreakpoints.blockHeight.length?"calc(".concat(c.mobileBreakpoints.blockHeight," + (").concat(m,"))"):b,S=c.mobileBreakpoints.blockWidth&&0<c.mobileBreakpoints.blockWidth.length?"min-content"!==c.mobileBreakpoints.blockWidth&&"max-content"!==c.mobileBreakpoints.blockWidth&&"fit-content"!==c.mobileBreakpoints.blockWidth?c.mobileBreakpoints.blockWidth:"auto":v,I=d.querySelector("style[data-style=\"mobile\"]"),A="\n @media screen and (max-width: 575px) {\n .".concat(window.GEVME.cssClassPrefix,"-modal.visible[data-content-block-modal-id=\"").concat(c.id,"\"] {\n height: 400px !important;\n }\n }\n ");I?I.innerHTML=A:d.insertAdjacentHTML("beforeend","\n <style type=\"text/css\" data-style=\"mobile\">\n ".concat(A,"\n </style>\n "))}(!c.mobileBreakpoints&&c.fitHeightToContent||c.mobileBreakpoints&&(c.mobileBreakpoints.fitHeightToContent||"fit-content"===c.mobileBreakpoints.blockHeight))&&d.insertAdjacentHTML("beforeend","\n <style type=\"text/css\" data-style=\"mobile-default\">\n @media screen and (max-width: 575px) {\n .".concat(window.GEVME.cssClassPrefix,"-modal.visible[data-content-block-modal-id=\"").concat(c.id,"\"] .").concat(window.GEVME.cssClassPrefix,"-modal-container .").concat(window.GEVME.cssClassPrefix,"-modal-content gevme-content-block .gevme-content-blocks-row .gevme-content-blocks-column[data-content-block-container-id=\"").concat(c.id,"\"] .gevme-template-showcase-block[data-content-block-id=\"").concat(c.id,"\"] {\n height: 250px;\n }\n }\n </style>\n "))}else d.style.height=n?"".concat(n,"px"):"auto",d.style.width=o?"".concat(o,"px"):"auto";var H=function sanitizeHeadingForMatomo(e){var t=document.createElement("div");return t.innerHTML=e,t.innerText};if(p){p.style.backgroundColor=i?i:"#000000";var T=p.querySelector(".".concat(window.GEVME.cssClassPrefix,"-modal-content"));if(T){if(a&&0<a.length)T.innerHTML=a;else if(c&&c.id&&0<c.id.length){if(T.innerHTML="<".concat(window.GEVME.cssClassPrefix,"-content-block name=\"").concat(c.name,"\"><div class=\"").concat(window.GEVME.cssClassPrefix,"-content-blocks-row ").concat(window.GEVME.cssClassPrefix,"-row\"><div class=\"").concat(window.GEVME.cssClassPrefix,"-content-blocks-column ").concat(window.GEVME.cssClassPrefix,"-column ").concat(c.type,"\" data-content-block-container=\"\" data-content-block-container-id=\"").concat(c.id,"\" data-content-block-container-name=\"").concat(c.name,"\" data-content-block-container-type=\"").concat(c.type,"\">
30").concat(c.htmlWithoutBackgroundCoverImage,"</div></div></").concat(window.GEVME.cssClassPrefix,"-content-block>"),("Pdf"===c.type||"Resources"===c.type)&&c.resources&&1===c.resources.length&&c.resources[0].link&&0<c.resources[0].link.length&&"pdf"===c.resources[0].type){T.innerHTML="<div class=\"".concat(window.GEVME.cssClassPrefix,"-modal-pdf-canvas\"><div class=\"pdfViewer\"></div></div>"),c.headingVisibility&&c.heading&&(T.innerHTML="<div class=\"".concat(window.GEVME.cssClassPrefix,"-block-title\">").concat(c.heading,"</div><div class=\"").concat(window.GEVME.cssClassPrefix,"-modal-pdf-canvas\"><div class=\"pdfViewer\"></div></div>")),T.classList.add("".concat(window.GEVME.cssClassPrefix,"-modal-content-pdf")),c.enableBookmark&&g.push("<span class=\"".concat(window.GEVME.cssClassPrefix,"-modal-action-button bookmark").concat(c.resources[0].isBookmarked?" active":"","\" style=\"display: flex;\" onclick=\"window.GEVME.xhr.toggleResourceBookmark('").concat(c.name,"', '").concat(c.resources[0].id,"', false)\" data-track-content=\"\" data-content-name=\"").concat(c.heading&&0<c.heading.length?H(c.heading):H(c.title),"\" data-content-piece=\"").concat(c.id,"\" data-content-target=\"").concat(c.resources[0].link,"\"><svg width=\"14\" height=\"18\" viewBox=\"0 0 14 18\" title=\"Bookmark\" class=\"gevme-resources-block-bookmark-icon\"><g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g transform=\"translate(-475.000000, -3036.000000)\" stroke=\"#000000\" stroke-width=\"2\"><g transform=\"translate(475.000000, 3036.000000)\"><path d=\"M12,1 C12.2761476,1 12.5261481,1.11192293 12.7071108,1.29288566 C12.8880765,1.47385129 13,1.72385514 13,2 L13,2 L13,16.381966 L7,13.381966 L1,16.381966 L1,2 C1,1.7238575 1.11192863,1.47385743 1.29289303,1.29289303 C1.47385743,1.11192863 1.7238575,1 2,1 L2,1 Z\"></path></g></g></g></svg></span>")),g.push("<span class=\"".concat(window.GEVME.cssClassPrefix,"-modal-action-button download\" style=\"display: flex;\" onclick=\"window.open('").concat(c.resources[0].link,"')\" data-track-content=\"\" data-content-name=\"").concat(c.heading&&0<c.heading.length?H(c.heading):H(c.title),"\" data-content-piece=\"").concat(c.id,"\" data-content-target=\"").concat(c.resources[0].link,"\"><svg width=\"25\" height=\"25\" viewBox=\"0 0 25 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M11.9395 16.6015C11.9578 16.6197 11.9775 16.6374 11.9975 16.6539C12.0067 16.6614 12.0164 16.668 12.0258 16.675C12.0371 16.6835 12.0481 16.6922 12.0598 16.7C12.0711 16.7075 12.0827 16.7141 12.0943 16.721C12.1049 16.7273 12.1153 16.734 12.1262 16.7398C12.138 16.7461 12.1501 16.7514 12.1622 16.7571C12.1736 16.7625 12.1848 16.7682 12.1964 16.773C12.2081 16.7778 12.22 16.7818 12.2319 16.786C12.2444 16.7905 12.2568 16.7953 12.2695 16.7991C12.2814 16.8027 12.2935 16.8054 12.3055 16.8084C12.3185 16.8117 12.3314 16.8153 12.3447 16.8179C12.3586 16.8207 12.3726 16.8223 12.3866 16.8243C12.3981 16.826 12.4095 16.8282 12.4212 16.8293C12.4732 16.8345 12.5255 16.8345 12.5775 16.8293C12.5892 16.8282 12.6006 16.826 12.6121 16.8243C12.6261 16.8223 12.6401 16.8207 12.654 16.8179C12.6673 16.8153 12.6802 16.8117 12.6932 16.8084C12.7052 16.8054 12.7173 16.8027 12.7292 16.7991C12.742 16.7953 12.7543 16.7905 12.7668 16.786C12.7787 16.7817 12.7906 16.7778 12.8023 16.773C12.8139 16.7682 12.8252 16.7625 12.8365 16.7571C12.8486 16.7514 12.8607 16.7461 12.8725 16.7398C12.8834 16.734 12.8938 16.7273 12.9044 16.721C12.916 16.7141 12.9277 16.7075 12.9389 16.7C12.9506 16.6922 12.9616 16.6835 12.9729 16.675C12.9823 16.668 12.992 16.6614 13.0012 16.6539C13.0212 16.6374 13.0404 16.6202 13.0587 16.6019L18.6008 11.0598C18.91 10.7506 18.91 10.2494 18.6008 9.94021C18.2917 9.63105 17.7904 9.63105 17.4812 9.94021L13.291 14.1304V3.79165C13.291 3.35443 12.4993 3 12.4993 3C12.4993 3 11.7077 3.35443 11.7077 3.79165V14.1304L7.51747 9.94021C7.20832 9.63105 6.70704 9.63105 6.39788 9.94021C6.08873 10.2494 6.08873 10.7506 6.39788 11.0598L11.9395 16.6015Z\" fill=\"white\"/><path d=\"M18.041 19.417H6.95767C6.52045 19.417 6.16602 19.7714 6.16602 20.2086C6.16602 20.6459 6.52045 21.0003
306.95767 21.0003H18.041C18.4782 21.0003 18.8327 20.6459 18.8327 20.2087C18.8327 19.7715 18.4782 19.417 18.041 19.417Z\" fill=\"white\"/></svg></span>"));try{var B=T.querySelector(".".concat(window.GEVME.cssClassPrefix,"-modal-pdf-canvas"));if(B){var W=window.pdfjsLib,L=window.pdfjsViewer;W.GlobalWorkerOptions.workerSrc="".concat("https://venues-sdk.gevme.com","/scripts/pdf.worker-2.9.359.min.js");var j=new L.EventBus,q=new L.PDFLinkService({eventBus:j}),R=new L.PDFFindController({eventBus:j,linkService:q}),_=new L.PDFScriptingManager({eventBus:j,sandboxBundleSrc:"".concat("https://venues-sdk.gevme.com","/scripts/pdf.sandbox-2.9.359.min.js")}),N=new L.PDFViewer({container:B,eventBus:j,linkService:q,findController:R,scriptingManager:_,enableScripting:!0});q.setViewer(N),_.setViewer(N),j.on("pagesinit",function(){N.currentScale=1}),j.on("scalechanging",function(){N.currentScale=1}),j.on("pagechanging",function(){N.currentScale=1});var Z=W.getDocument({url:c.resources[0].link,withCredentials:!0,cMapUrl:"https://cdn.jsdelivr.net/npm/[email protected]/cmaps/",cMapPacked:!0});Z.promise.then(function(e){N.setDocument(e),q.setDocument(e,null),setTimeout(function(){if(!s){var e=((document.body.clientWidth-d.clientWidth)/2).toFixed(2),t=((document.body.clientHeight-d.clientHeight)/2).toFixed(2);d.style.transform="translate(".concat(e,"px, ").concat(t,"px)"),d.setAttribute("data-x",e),d.setAttribute("data-y",t)}},0)})}}catch(e){console.error(e)}}else if("LiveStream"===c.type&&c.livestreamUrl&&0<c.livestreamUrl.length&&("customstream"===c.streamingService||"gevmelive"===c.streamingService))g.push("<span class=\"".concat(window.GEVME.cssClassPrefix,"-modal-action-button pip\" style=\"display: flex;\" onclick=\"window.GEVME.utils.enterPictureInPicture('").concat(c.id,"', true)\"><svg width=\"22\" height=\"22\" viewBox=\"0 0 22 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><mask id=\"path-1-outside-1\" maskUnits=\"userSpaceOnUse\" x=\"2.57715\" y=\"2.64258\" width=\"19\" height=\"15\" fill=\"black\"><rect fill=\"white\" x=\"2.57715\" y=\"2.64258\" width=\"19\" height=\"15\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3.57715 5.64258C3.57715 4.53801 4.47258 3.64258 5.57715 3.64258H18.8795C19.984 3.64258 20.8795 4.53801 20.8795 5.64258V14.6193C20.8795 15.7239 19.984 16.6193 18.8795 16.6193H14.0238V15.6926H19.0139C19.5662 15.6926 20.0139 15.2449 20.0139 14.6926V5.56969C20.0139 5.01741 19.5662 4.56969 19.0139 4.56969H5.44184C4.88956 4.56969 4.44184 5.01741 4.44184 5.56969V9.33543H3.57715V5.64258Z\"/></mask><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3.57715 5.64258C3.57715 4.53801 4.47258 3.64258 5.57715 3.64258H18.8795C19.984 3.64258 20.8795 4.53801 20.8795 5.64258V14.6193C20.8795 15.7239 19.984 16.6193 18.8795 16.6193H14.0238V15.6926H19.0139C19.5662 15.6926 20.0139 15.2449 20.0139 14.6926V5.56969C20.0139 5.01741 19.5662 4.56969 19.0139 4.56969H5.44184C4.88956 4.56969 4.44184 5.01741 4.44184 5.56969V9.33543H3.57715V5.64258Z\" fill=\"white\"/><path d=\"M14.0238 16.6193H13.8238V16.8193H14.0238V16.6193ZM14.0238 15.6926V15.4926H13.8238V15.6926H14.0238ZM4.44184 9.33543V9.53543H4.64184V9.33543H4.44184ZM3.57715 9.33543H3.37715V9.53543H3.57715V9.33543ZM5.57715 3.44258C4.36212 3.44258 3.37715 4.42755 3.37715 5.64258H3.77715C3.77715 4.64847 4.58304 3.84258 5.57715 3.84258V3.44258ZM18.8795 3.44258H5.57715V3.84258H18.8795V3.44258ZM21.0795 5.64258C21.0795 4.42755 20.0945 3.44258 18.8795 3.44258V3.84258C19.8736 3.84258 20.6795 4.64847 20.6795 5.64258H21.0795ZM21.0795 14.6193V5.64258H20.6795V14.6193H21.0795ZM18.8795 16.8193C20.0945 16.8193 21.0795 15.8343 21.0795 14.6193H20.6795C20.6795 15.6134 19.8736 16.4193 18.8795 16.4193V16.8193ZM14.0238 16.8193H18.8795V16.4193H14.0238V16.8193ZM13.8238 15.6926V16.6193H14.2238V15.6926H13.8238ZM14.0238 15.8926H19.0139V15.4926H14.0238V15.8926ZM19.0139 15.8926C19.6767 15.8926 20.2139 15.3554 20.2139 14.6926H19.8139C19.8139 15.1344 19.4558 15.4926 19.0139 15.4926V15.8926ZM20.2139 14.6926V5.56969H19.8139V14.6926H20.2139ZM20.2139 5.56969C20.2139 4.90695 19.6767 4.36969 19.0139 4.36969V4.76969C19.4558 4.76969 19.8139 5.12786 19.8139 5.56969H20.2139ZM19.0139 4.36969H5.44184V4.76969H19.0139V4.36969ZM5.44184 4.36969C4.7791 4.36969 4.24184 4.90695 4.24184 5.56969H4.64184C4.64184 5.12786 5.00001 4.76969 5.44184 4.76969V4.36969ZM4.24184 5.56969V9.33543H4.64184V5.56969H4.24184ZM3.57715 9.53543H4.44184V9.13543H3.57715V9.53543ZM3.37715 5.64258V9.33543H3.77715V5.64258H3.37715Z\" fill=\"white\" mask=\"url(#path-1-outside-1)\"/><mask id=\"path-3-outside-2\" maskUnits=\"userSpaceOnUse\" x=\"-0.364746\" y=\"10.6035\" width=\"13\" height=\"10\" fill=\"black\"><rect fill=\"white\" x=\"-0.364746\" y=\"10.6035\" width=\"13\" height=\"10\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2.63525 11.6035C1.53068 11.6035 0.635254 12.4989 0.635254 13.6035V18.2547C0.635254 19.3592 1.53068 20.2547 2.63525 20.2547H9.88177C10.9863 20.2547 11.8818 19.3592 11.8818 18.2547V13.6035C11.8818 12.4989 10.9863 11.6035 9.88177 11.6035H2.63525ZM2.19814 12.2214C1.64586 12.2214 1.19814 12.6691 1.19814 13.2214V18.6367C1.19814 19.189 1.64586 19.6367 2.19815 19.6367H10.32C10.8723 19.6367 11.32 19.189 11.32 18.6367V13.2214C11.32 12.6691 10.8723 12.2214 10.32 12.2214H2.19814Z\"/></mask><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2.63525 11.6035C1.53068 11.6035 0.635254 12.4989 0.635254 13.6035V18.2547C0.635254 19.3592 1.53068 20.2547 2.63525 20.2547H9.88177C10.9863 20.2547 11.8818 19.3592 11.8818 18.2547V13.6035C11.8818 12.4989 10.9863 11.6035 9.88177 11.6035H2.63525ZM2.19814 12.2214C1.64586 12.2214 1.19814 12.6691 1.19814 13.2214V18.6367C1.19814 19.189 1.64586 19.6367 2.19815 19.6367H10.32C10.8723 19.6367 11.32 19.189 11.32 18.6367V13.2214C11.32 12.6691 10.8723 12.2214 10.32 12.2214H2.19814Z\" fill=\"white\"/><path d=\"M0.935254 13.6035C0.935254 12.6646 1.69637 11.9035 2.63525 11.9035V11.3035C1.365 11.3035 0.335254 12.3333 0.335254 13.6035H0.935254ZM0.935254 18.2547V13.6035H0.335254V18.2547H0.935254ZM2.63525 19.9547C1.69637 19.9547 0.935254 19.1936 0.935254 18.2547H0.335254C0.335254 19.5249 1.365 20.5547 2.63525 20.5547V19.9547ZM9.88177 19.9547H2.63525V20.5547H9.88177V19.9547ZM11.5818 18.2547C11.5818 19.1936 10.8206 19.9547 9.88177 19.9547V20.5547C11.152 20.5547 12.1818 19.5249 12.1818 18.2547H11.5818ZM11.5818 13.6035V18.2547H12.1818V13.6035H11.5818ZM9.88177 11.9035C10.8207 11.9035 11.5818 12.6646 11.5818 13.6035H12.1818C12.1818 12.3333 11.152 11.3035 9.88177 11.3035V11.9035ZM2.63525 11.9035H9.88177V11.3035H2.63525V11.9035ZM1.49814 13.2214C1.49814 12.8348 1.81155 12.5214 2.19814 12.5214V11.9214C1.48017 11.9214 0.898145 12.5034 0.898145 13.2214H1.49814ZM1.49814 18.6367V13.2214H0.898145V18.6367H1.49814ZM2.19815 19.3367C1.81155 19.3367 1.49814 19.0233 1.49814 18.6367H0.898145C0.898145 19.3547 1.48018 19.9367 2.19815 19.9367V19.3367ZM10.32 19.3367H2.19815V19.9367H10.32V19.3367ZM11.02 18.6367C11.02 19.0233 10.7066 19.3367 10.32 19.3367V19.9367C11.038 19.9367 11.62 19.3547 11.62 18.6367H11.02ZM11.02 13.2214V18.6367H11.62V13.2214H11.02ZM10.32 12.5214C10.7066 12.5214 11.02 12.8348 11.02 13.2214H11.62C11.62 12.5034 11.038 11.9214 10.32 11.9214V12.5214ZM2.19814 12.5214H10.32V11.9214H2.19814V12.5214Z\" fill=\"white\" mask=\"url(#path-3-outside-2)\"/></svg></span>")),window.GEVME.utils.exitPictureInPicture(c);else if("Link"===c.type&&c&&c.enableLink&&c.link&&0<c.link.length){var D=window.GEVME.utils.checkPreviewPageLink(c.link);if(window.GEVME.isPreview&&D&&0<D.length)window.GEVME.utils.switchVenueBuilderPreview(D,c.openInNewWindow);else{var O=document.createElement("a");O.setAttribute("href",c.link),O.setAttribute("target",c.openInNewWindow?"_blank":"_top"),O.style.display="none",document.body.appendChild(O),O.click(),document.body.removeChild(O)}return}if(l&&-1<["Meeting","Agenda","Sponsor","Product","Search","Html","Livestream"].indexOf(c.type)){var z=d.querySelector("iframe");z&&window.addEventListener("blur",function(){if(document.activeElement=z)try{var e=document.querySelectorAll(".".concat(window.GEVME.cssClassPrefix,"-modal.visible"));if(e&&0<e.length){e=Array.from(e),e=e.sort(function(e,t){return+window.getComputedStyle(e,null).getPropertyValue("z-index")>+window.getComputedStyle(t,null).getPropertyValue("z-index")?-1:1});var t=+window.getComputedStyle(e[0],null).getPropertyValue("z-index");d.style.zIndex="".concat(t+1)}}catch(e){console.error(e)}})}}else return;if(u&&(u.innerHTML=g.join("")),d.classList.add("visible"),s&&d.classList.add("fullscreen"),c&&c.id&&0<c.id.length){if(!s&&!d.style.transform){var F=((document.body.clientWidth-d.clientWidth)/2).toFixed(2),x=((document.body.clientHeight-d.clientHeight)/2).toFixed(2);d.style.transform="translate(".concat(F,"px, ").concat(x,"px)"),d.setAttribute("data-x",F),d.setAttribute("data-y",x)}setTimeout(function(){window.GEVME.utils.retrieveAndRenderAllVideoBlockPlayers(c.id,!0),window.GEVME.utils.enableImageSlideshowAutoScroll(c.name)},1e3)}document.body.style.overscrollBehaviorY="contain",d.style.zIndex=1e4,!s&&window.interact&&setTimeout(function(){var e=".".concat(window.GEVME.cssClassPrefix,"-modal.visible");e=c&&c.id&&0<c.id.length?"".concat(e,"[data-content-block-modal-id=\"").concat(c.id,"\"]"):"".concat(e),window.interact(e).resizable({// resize from all edges and corners 31edges:{left:!0,right:!0,bottom:!0,top:!0},listeners:{move:function move(e){var t=e.target,a=parseFloat(t.getAttribute("data-x"))||0,n=parseFloat(t.getAttribute("data-y"))||0;if(t.style.width=e.rect.width+"px",t.style.height=e.rect.height+"px",a+=e.deltaRect.left,n+=e.deltaRect.top,t.style.transform="translate("+a+"px,"+n+"px)",t.setAttribute("data-x",a),t.setAttribute("data-y",n),c&&c.id&&0<c.id.length&&"LiveStream"===c.type&&c&&c.streamingService&&("customstream"===c.streamingService||"gevmelive"===c.streamingService)){var o=d.querySelector(".".concat(window.GEVME.cssClassPrefix,"-video-block-card-").concat(c.id)),i=o.querySelector("video");if(i&&0<i.networkState){var s=+i.getAttribute("data-aspect-ratio");if(s){var r=o.clientHeight,l=o.clientWidth/s,g=o.clientWidth,p=s*o.clientHeight;l>r?p<=g&&(g=p):r=l,i.style.height="".concat(r,"px"),i.style.width="".concat(g,"px")}}}if(c&&c.id&&0<c.id.length){var u=d.querySelector("style[data-style=\"desktop-default\"]");u&&u.parentNode.removeChild(u);var m=d.querySelector("style[data-style=\"tablet-default\"]");m&&m.parentNode.removeChild(m);var E=d.querySelector("style[data-style=\"mobile-default\"]");E&&E.parentNode.removeChild(E)}}},modifiers:[// keep the edges inside the parent 32interact.modifiers.restrictEdges({outer:"parent"}),// minimum size 33interact.modifiers.restrictSize({min:{width:100,height:100}})],inertia:!0}).draggable({listeners:{move:function move(e){var t=e.target,a=(parseFloat(t.getAttribute("data-x"))||0)+e.dx,n=(parseFloat(t.getAttribute("data-y"))||0)+e.dy;// keep the dragged position in the data-x/data-y attributes 34t.style.transform="translate("+a+"px, "+n+"px)",t.setAttribute("data-x",a),t.setAttribute("data-y",n)}},inertia:!0,modifiers:[interact.modifiers.restrictRect({restriction:"parent",endOnly:!0})],allowFrom:".".concat(window.GEVME.cssClassPrefix,"-modal-drag-handle")}
34).on("tap",function(){try{var e=document.querySelectorAll(".".concat(window.GEVME.cssClassPrefix,"-modal.visible"));if(e&&0<e.length){e=Array.from(e),e=e.sort(function(e,t){return+window.getComputedStyle(e,null).getPropertyValue("z-index")>+window.getComputedStyle(t,null).getPropertyValue("z-index")?-1:1});var t=+window.getComputedStyle(e[0],null).getPropertyValue("z-index");d.style.zIndex="".concat(t+1)}}catch(e){console.error(e)}}).preventDefault("always")},1e3)}}"ImageList"===(null===c||void 0===c?void 0:c.type)&&initImageListPhotoGallery&&initImageListPhotoGallery(),attachReactionEvent()}}}catch(e){console.error(e)}},closeModalPopup=function closeModalPopup(e){var t=!!(1<arguments.length&&arguments[1]!==void 0)&&arguments[1];try{var a=window.GEVME.livepage.showcaseblocks[e],n=".".concat(window.GEVME.cssClassPrefix,"-modal.visible"),o=document.querySelector(e&&0<e.length?"".concat(n,"[data-content-block-modal-id=\"").concat(a.id,"\"]"):"".concat(n));if(o){var i=o.querySelector(".".concat(window.GEVME.cssClassPrefix,"-modal-container"));if(i){i.style.backgroundColor="#000000";var s=i.querySelector(".".concat(window.GEVME.cssClassPrefix,"-modal-content"));if(s){if(t)return void o.classList.remove("visible");if(!(e&&0<e.length))s.innerHTML="";else if("LiveStream"===a.type&&a&&a.livestreamUrl&&0<a.livestreamUrl.length)if("customstream"===a.streamingService||"gevmelive"===a.streamingService){var c=(window.videojs.getAllPlayers()||[]).find(function(t){return t.id()==="".concat(window.GEVME.cssClassPrefix,"-video-").concat(e)});c&&c.pause()}else s.innerHTML=""}}o.classList.remove("visible"),o.remove(),document.body.style.overscrollBehaviorY=""}}catch(e){console.error(e)}},checkModalPopupVisibility=function checkModalPopupVisibility(e){try{var t=".".concat(window.GEVME.cssClassPrefix,"-modal.visible"),a=document.querySelector(e&&0<e.length?"".concat(t,"[data-content-block-modal-id=\"").concat(e,"\"]"):"".concat(t));return!!a}catch(e){console.error(e)}},logoutUser=function logoutUser(e){try{localStorage.clear(),window.parent&&window.parent.postMessage(JSON.stringify({action:"logout",enableConfirmation:e}),"*")}catch(e){console.error(e)}},closeOwnWindow=function closeOwnWindow(){try{window.parent&&window.parent.postMessage(JSON.stringify({action:"close-own-window"}),"*")}catch(e){console.error(e)}},switchVenueBuilderPreview=function switchVenueBuilderPreview(e,t){try{window.GEVME.isPreview&&e&&0<e.length&&(window.parent.postMessage(JSON.stringify({menuAction:"switch",target:e,openInNewWindow:t}),"*"),window.parent.parent.postMessage(JSON.stringify({menuAction:"switch",target:e,openInNewWindow:t}),"*"))}catch(e){console.error(e)}},enterPictureInPicture=function enterPictureInPicture(e,t){try{var a=document.querySelector("".concat(t?".".concat(window.GEVME.cssClassPrefix,"-modal .").concat(window.GEVME.cssClassPrefix,"-modal-container .").concat(window.GEVME.cssClassPrefix,"-modal-content .").concat(window.GEVME.cssClassPrefix,"-template-showcase-block "):"",".").concat(window.GEVME.cssClassPrefix,"-video-block-card-").concat(e," video"));a&&a.requestPictureInPicture&&0<a.networkState&&a.requestPictureInPicture()}catch(e){"InvalidStateError"!==e.name&&"NotAllowedError"!==e.name&&console.error(e)}},exitPictureInPicture=function exitPictureInPicture(e){document.pictureInPictureEnabled&&document.exitPictureInPicture&&document.pictureInPictureElement&&document.exitPictureInPicture()},establishPreviewConnection=function establishPreviewConnection(e){var t=e.callback,a=void 0===t?null:t,n=e.enableDefault,o=void 0!==n&&n;try{window.onmessage=function(e){var t,n,o;if(isValidDomain(e.origin,null===(t=window)||void 0===t||null===(n=t.GEVME)||void 0===n||null===(o=n.setting)||void 0===o?void 0:o.customDomain)){var i=JSON.parse(null===e||void 0===e?void 0:e.data);"preview-events"===(null===i||void 0===i?void 0:i.type)&&a&&a(i)}}}catch(e){console.error(e)}},sendPreviewAction=function sendPreviewAction(e){try{var t,a;null===(t=window)||void 0===t||null===(a=t.top)||void 0===a?void 0:a.postMessage(JSON.stringify(e),"*")}catch(e){console.error(e)}},renderPublicPageGenericLoginScreen=function renderPublicPageGenericLoginScreen(){try{if(-1<["607fe5ae4f6c5d003fc78892"].indexOf(window.GEVME.project.id)&&window.GEVME.livepage.isPublic&&!localStorage.getItem("".concat(window.GEVME.project.id,"-isLoggedIn"))){var e="\n <div style=\"background-image: url(".concat(window.GEVME.setting.backgroundImage,"); background-repeat: no-repeat; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; width: 100%; padding: 96px;\">\n <div style=\"height: 100%; min-height: 400px; max-height: 500px; width: 100%; min-width: 300px; max-width: 400px; box-shadow: rgb(0 0 0 / 20%) 0px 15px 35px 0px; border-radius: 10px; padding: 30px 20px; background-color: white; display: flex; align-items: center; flex-direction: column; justify-content: center;\">\n <div style=\"text-align: center; margin-bottom: 20px;\">\n <h2 style=\"font-size: 32px; font-weight: 400; line-height: 1.4; margin: 0px;\">\u8ACB\u8F38\u5165\u5BC6\u78BC</h2>\n </div>\n <div style=\"width: 100%; padding: 0px 20px; display: flex; align-items: center; justify-content: center; flex-direction: column; margin-bottom: 20px;\">\n <form style=\"display: flex; height: 100%; width: 100%; align-items: center; justify-content: center; flex-direction: column; margin-bottom: 20px;\" onsubmit=\"window.GEVME.utils.submitPublicPageGenericLoginScreen(event);\">\n <label for=\"password\" style=\"width: 100%; box-sizing: border-box;\">\n <input type=\"password\" name=\"password\" placeholder=\"\u5BC6\u78BC\" autocapitalize=\"none\" autocomplete=\"off\" required=\"true\" style=\"height: 48px; width: 100%; display: block; padding: 10px 20px; box-sizing: border-box; font-size: 20px; border-radius: 5px; border: 1px solid rgb(204, 204, 204); outline: none; margin-bottom: 25px;\" />\n </label>\n <button type=\"submit\" style=\"height: 48px; width: 100%; font-size: 18px; color: #fff; border: 1px solid rgb(82, 65, 209); background: rgb(82, 65, 209); margin-bottom: 0; border-radius: 5px; cursor: pointer;\">\u767B\u5165</button>\n </form>\n <a href=\"https://www.gevme.com\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">\n <img src=\"https://files-myxp.gevme.com/templates/assets/GEVME_logo.svg\" alt=\"GEVME\" style=\"height: 25px;\">\n </a>\n </div>\n </div>\n </div>\n ");window.GEVME.utils.openModalPopup({html:e,height:"100%",width:"100%",fullscreen:!0})}}catch(e){console.error(e)}},submitPublicPageGenericLoginScreen=function submitPublicPageGenericLoginScreen(e){try{e.preventDefault(),"0526"===document.querySelector("input[type=\"password\"]").value?(localStorage.setItem("".concat(window.GEVME.project.id,"-isLoggedIn"),"true"),window.GEVME.utils.checkModalPopupVisibility()&&window.GEVME.utils.closeModalPopup()):(localStorage.removeItem("".concat(window.GEVME.project.id,"-isLoggedIn")),alert("Incorrect username or password. Please try again"))}catch(e){console.error(e)}},handlePreviewNavMenuItemClick=function handlePreviewNavMenuItemClick(e,t,a){window.GEVME.isPreview&&t&&t.dataset&&t.dataset.menuPreview&&0<t.dataset.menuPreview.length&&(e.preventDefault(),window.GEVME.utils.switchVenueBuilderPreview(t.dataset.menuPreview,a))},openSpeakerModal=function openSpeakerModal(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"",a={action:"open-speaker-modal",data:e},n=window.GEVME.speakers.find(function(t){return t.id===e}),o=ADOBE_DATA_LAYER.clickSpeaker(null!==n&&void 0!==n&&n.firstname&&null!==n&&void 0!==n&&n.lastname?"".concat(null===n||void 0===n?void 0:n.firstname," ").concat(null===n||void 0===n?void 0:n.lastname):"".concat((null===n||void 0===n?void 0:n.firstname)||(null===n||void 0===n?void 0:n.lastname)));trackAdobeAnalytics(o),window.parent.postMessage(JSON.stringify(a),"*"),window.postMessage(JSON.stringify(a),"*")},toggleResourceBookmark=_async(function(e,t,a){var n=!1;return _catch(function(){var o=window.GEVME.livepage.showcaseblocks[e].order;return _invoke(function(){if(-1<o){var i=window.GEVME.livepage.showcaseblocks[e];return function(){if(i&&i.resources&&0<i.resources.length){var o=i.resources.findIndex(function(e){return e.id===t});return function(){if(-1<o){var t=i.resources[o],s={projectId:window.GEVME.project.id,showcaseId:window.GEVME.livepage.id,showcaseSlug:window.GEVME.livepage.slug,isPreview:window.GEVME.isPreview,contentBlockId:i.id,contentBlockName:i.name,resourceBlockId:i.id,resourceId:t.id,isBookmarked:t.isBookmarked},c=document.querySelectorAll(".".concat(window.GEVME.cssClassPrefix,"-resources-block .").concat(window.GEVME.cssClassPrefix,"-resources-block-card .").concat(window.GEVME.cssClassPrefix,"-resources-block-card-body .").concat(window.GEVME.cssClassPrefix,"-resources-block-row.").concat(window.GEVME.cssClassPrefix,"-resources-block-row-").concat(t.id," .").concat(window.GEVME.cssClassPrefix,"-resources-block-column.").concat(window.GEVME.cssClassPrefix,"-resources-block-button .").concat(window.GEVME.cssClassPrefix,"-resources-block-bookmark-button"));return c&&0!==c.length||(c=document.querySelectorAll(".".concat(window.GEVME.cssClassPrefix,"-modal[data-content-block-modal-id=\"").concat(i.id,"\"] .").concat(window.GEVME.cssClassPrefix,"-modal-container .").concat(window.GEVME.cssClassPrefix,"-modal-header .").concat(window.GEVME.cssClassPrefix,"-modal-action-button.bookmark"))),function(){if(c&&0<c.length){c.forEac
34h(function(e){e.setAttribute("disabled","")});var r=new window.GEVME.utils.WindowPostMessageProxy({logMessages:!1,suppressWarnings:!0,name:window.GEVME.cssClassPrefix});return _await(a?{status:!0}:r.postMessage(window.parent,_objectSpread({xhr:"toggleResourceBookmark"},s)),function(a){if("boolean"==typeof a.status&&a.status){if(window.GEVME.livepage.showcaseblocks[e].resources[o].isBookmarked=!t.isBookmarked,c.forEach(function(e){a.status&&e.classList.toggle("active"),e.removeAttribute("disabled")}),a.status){var s=document.querySelectorAll("".concat(window.GEVME.cssClassPrefix,"-content-block"));if(s&&0<s.length){var r,l=_createForOfIteratorHelper(s);try{for(l.s();!(r=l.n()).done;){var d=r.value,g=d.querySelectorAll(".".concat(window.GEVME.cssClassPrefix,"-content-blocks-row.").concat(window.GEVME.cssClassPrefix,"-row .").concat(window.GEVME.cssClassPrefix,"-content-blocks-column.").concat(window.GEVME.cssClassPrefix,"-column[data-content-block-container-id=\"").concat(i.id,"\"]"));g&&0<g.length&&g.forEach(function(t){var a=document.createElement("".concat(window.GEVME.cssClassPrefix,"-content-block"));a.innerHTML=t.innerHTML,window.GEVME.livepage.showcaseblocks[e].htmlWithoutBackgroundCoverImage=a.innerHTML})}}catch(e){l.e(e)}finally{l.f()}}}var p=document.querySelectorAll("".concat(window.GEVME.cssClassPrefix,"-live-bar"));return p&&0<p.length&&p.forEach(function(e){var t=e.querySelector("iframe");t&&t.contentWindow&&t.contentWindow.postMessage&&t.contentWindow.postMessage(JSON.stringify({eventType:"bookmark",eventData:{type:"resource"}}),"*")}),n=!0,a}throw c.forEach(function(e){e.removeAttribute("disabled")}),new Error(a.message)},a)}}()}}()}}()}},function(e){if(n)return e;throw new Error("Content block or resource not found")})},function(e){throw e})}),searchSponsorName=function searchSponsorName(e){try{e&&0!==e.length&&"string"==typeof e||(e="");var t=Object.values(window.GEVME.livepage.showcaseblocks).filter(function(e){return"Sponsor"===e.type});t&&0<t.length&&window.postMessage(JSON.stringify({action:"search",type:"sponsor",query:e}),"*")}catch(e){throw e}}
34,searchAgendaLocation=function searchAgendaLocation(e){try{e&&0!==e.length&&"string"==typeof e||(e="");var t=Object.values(window.GEVME.livepage.showcaseblocks).filter(function(e){return"Agenda"===e.type});t&&0<t.length&&window.postMessage(JSON.stringify({action:"agenda-location",type:"agenda",query:e}),"*")}catch(e){throw e}},searchSpeaker=function searchSpeaker(e,t){try{var a=document.querySelector("div[data-content-block-id=\"".concat(e,"\"]"));if(!a)throw new Error("Speaker block (".concat(e,") not found"));var n="string"==typeof t&&!!t,o=n?new RegExp(t,"gi"):null,i=a.querySelector("div.".concat(window.GEVME.cssClassPrefix,"-speakers-block-row")),s=a.querySelectorAll("div.".concat(window.GEVME.cssClassPrefix,"-speakers-block-column")),c=a.querySelector("div.".concat(window.GEVME.cssClassPrefix,"-speakers-no-results-container")),r=a.querySelector("div.".concat(window.GEVME.cssClassPrefix,"-speakers-block-clear-icon"));r&&(r.style.display=n?"block":"none");var l,d=0,g=_createForOfIteratorHelper(s);try{for(g.s();!(l=g.n()).done;){var p=l.value;if(n){var u=p.getAttribute("data-content-target")||"",m=p.getAttribute("data-content-target-company")||"",E=p.getAttribute("data-content-target-job-title")||"",h=p.getAttribute("data-content-target-bio")||"",f=u.match(o)||m.match(o)||E.match(o)||h.match(o);p.style.display=f?"block":"none",f&&d++}else p.style.display="block"}}catch(e){g.e(e)}finally{g.f()}i&&(!n||0<d?i.style.removeProperty("display"):i.style.display="none"),c&&(c.style.display=n?0===d?"block":"none":"none")}catch(e){console.error("searchSpeaker Error",e)}},WindowPostMessageProxy=function(){function e(t){var a=this;void 0===t&&(t={processTrackingProperties:{addTrackingProperties:e.defaultAddTrackingProperties,getTrackingProperties:e.defaultGetTrackingProperties},isErrorMessage:e.defaultIsErrorMessage,receiveWindow:window,name:e.createRandomString()}),this.pendingRequestPromises={},this.addTrackingProperties=t.processTrackingProperties&&t.processTrackingProperties.addTrackingProperties||e.defaultAddTrackingProperties,this.getTrackingProperties=t.processTrackingProperties&&t.processTrackingProperties.getTrackingProperties||e.defaultGetTrackingProperties,this.isErrorMessage=t.isErrorMessage||e.defaultIsErrorMessage,this.receiveWindow=t.receiveWindow||window,this.name=t.name||e.createRandomString(),this.logMessages=t.logMessages||!1,this.eventSourceOverrideWindow=t.eventSourceOverrideWindow,this.suppressWarnings=t.suppressWarnings||!1,this.logMessages&&console.log("new WindowPostMessageProxy created with name: "+this.name+" receiving on window: "+this.receiveWindow.document.title),this.handlers=[],this.windowMessageHandler=function(e){var t,n,o;if(isValidDomain(e.origin,null===(t=window)||void 0===t||null===(n=t.GEVME)||void 0===n||null===(o=n.setting)||void 0===o?void 0:o.customDomain))return a.onMessageReceived(e)},this.start()}return e.defaultAddTrackingProperties=function(t,a){return t[e.messagePropertyName]=a,t},e.defaultGetTrackingProperties=function(t){return t[e.messagePropertyName]},e.defaultIsErrorMessage=function(e){return!!e.error},e.createDeferred=function(){var e={resolve:null,reject:null,promise:null},t=new Promise(function(t,a){e.resolve=t,e.reject=a});return e.promise=t,e},e.createRandomString=function(){var e=window.crypto||window.msCrypto,t=new Uint32Array(1);return e.getRandomValues(t),t[0].toString(36).substring(1)},e.prototype.addHandler=function(e){this.handlers.push(e)},e.prototype.removeHandler=function(e){var t=this.handlers.indexOf(e);if(-1===t)throw new Error("You attempted to remove a handler but no matching handler was found.");this.handlers.splice(t,1)},e.prototype.start=function(){this.receiveWindow.addEventListener("message",this.windowMessageHandler)},e.prototype.stop=function(){this.receiveWindow.removeEventListener("message",this.windowMessageHandler)},e.prototype.postMessage=function(t,a){var n={id:e.createRandomString()};this.addTrackingProperties(a,n),this.logMessages&&(console.log(this.name+" Posting message:"),console.log(JSON.stringify(a,null," "))),t.postMessage(a,"*");var o=e.createDeferred();return this.pendingRequestPromises[n.id]=o,o.promise},e.prototype.sendResponse=function(e,t,a){this.addTrackingProperties(t,a),this.logMessages&&(console.log(this.name+" Sending response:"),console.log(JSON.stringify(t,null," "))),e.postMessage(t,"*")},e.prototype.onMessageReceived=function(e){var t=this;this.logMessages&&(console.log(this.name+" Received message:"),console.log("type: "+e.type),console.log(JSON.stringify(e.data,null," ")));var a=this.eventSourceOverrideWindow||e.source,n=e.data;if("object"!==_typeof(n))return void(this.suppressWarnings||console.warn("Proxy("+this.name+"): Received message that was not an object. Discarding message"));var o;try{o=this.getTrackingProperties(n)}catch(t){this.suppressWarnings||console.warn("Proxy("+this.name+"): Error occurred when attempting to get tracking properties from incoming message:",JSON.stringify(n,null," "),"Error: ",t)}var i;if(o&&(i=this.pendingRequestPromises[o.id]),!i){var s=this.handlers.some(function(e){var i=!1;try{i=e.test(n)}catch(a){t.suppressWarnings||console.warn("Proxy("+t.name+"): Error occurred when handler was testing incoming message:",JSON.stringify(n,null," "),"Error: ",a)}if(i){var s;try{s=Promise.resolve(e.handle(n))}catch(a){t.suppressWarnings||console.warn("Proxy("+t.name+"): Error occurred when handler was processing incoming message:",JSON.stringify(n,null," "),"Error: ",a),s=Promise.resolve()}return s.then(function(e){if(!e){var i="Handler for message: "+JSON.stringify(n,null," ")+" did n
34ot return a response message. The default response message will be returned instead.";t.suppressWarnings||console.warn("Proxy("+t.name+"): "+i),e={warning:i}}t.sendResponse(a,e,o)}),!0}});s||this.suppressWarnings||console.warn("Proxy("+this.name+") did not handle message. Handlers: "+this.handlers.length+" Message: "+JSON.stringify(n,null,"")+".")}else{var c=!0;try{c=this.isErrorMessage(n)}catch(t){console.warn("Proxy("+this.name+") Error occurred when trying to determine if message is consider an error response. Message: ",JSON.stringify(n,null,""),"Error: ",t)}c?i.reject(n):i.resolve(n),delete this.pendingRequestPromises[o.id]}},e.messagePropertyName="windowPostMessageProxy",e}(),attachScript=function attachScript(e){e.map(function(e){var t=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.src=e,t.appendChild(a)})},attachLink=function attachLink(e){e.map(function(e){var t=document.getElementsByTagName("head")[0],a=document.createElement("link");a.rel="stylesheet",a.href=e,t.appendChild(a)})},addResourceFiles=function addResourceFiles(e){try{switch(e){case"pdf":case"resources":attachLink(["".concat("https://venues-sdk.gevme.com","/styles/pdf_viewer-2.9.359.min.css")]),attachScript(["".concat("https://venues-sdk.gevme.com","/scripts/pdfjs-2.9.359.min.js"),"".concat("https://venues-sdk.gevme.com","/scripts/pdf_viewer-2.9.359.min.js")]);break;case"livestream":attachLink(["".concat("https://venues-sdk.gevme.com","/styles/video-js-7.14.3.css")]),attachScript(["".concat("https://venues-sdk.gevme.com","/scripts/video.min-7.14.3.js"),"".concat("https://venues-sdk.gevme.com","/scripts/amazon-ivs-videojs-tech-1.6.1.min.js"),"".concat("https://venues-sdk.gevme.com","/scripts/amazon-ivs-quality-plugin-1.6.1.min.js"),"".concat("https://venues-sdk.gevme.com","/scripts/videojs-mux-4.js")]);break;default:}}catch(e){console.error(e)}},addBlockType=function addBlockType(e){try{var t=new Set(window.GEVME.livepage.blockTypes);if(t.has(e))return;addResourceFiles(e),t.add(e),window.GEVME.livepage.blockTypes=Array.from(t)}catch(e){console.error(e)}},switchPage=function switchPage(e){window.parent.postMessage(JSON.stringify(_objectSpread({action:"update-nav"},e)),"*")};window.GEVME.utils={retrieveAndRenderAllVideoBlockPlayers:retrieveAndRenderAllVideoBlockPlayers,enableMatomoMediaTracking:enableMatomoMediaTracking,enableLiveReloadingWebSocket:enableLiveReloadingWebSocket,enableImageSlideshowAutoScroll:enableImageSlideshowAutoScroll,checkPreviewPageLink:checkPreviewPageLink,openModalPopup:openModalPopup,closeModalPopup:closeModalPopup,checkModalPopupVisibility:checkModalPopupVisibility,logoutUser:logoutUser,closeOwnWindow:closeOwnWindow,switchVenueBuilderPreview:switchVenueBuilderPreview,enterPictureInPicture:enterPictureInPicture,exitPictureInPicture:exitPictureInPicture,renderPublicPageGenericLoginScreen:renderPublicPageGenericLoginScreen,submitPublicPageGenericLoginScreen:submitPublicPageGenericLoginScreen,handlePreviewNavMenuItemClick:handlePreviewNavMenuItemClick,openSpeakerModal:openSpeakerModal,switchPage:switchPage,debounceUtility:debounceUtility,displayReaction:displayReaction,fetchExhibitor:fetchExhibitor,searchSpeaker:searchSpeaker,WindowPostMessageProxy:WindowPostMessageProxy},window.GEVME.isPreview&&(window.GEVME.utils=_objectSpread(_objectSpread({},window.GEVME.utils),{},{establishPreviewConnection:establishPreviewConnection,sendPreviewAction:sendPreviewAction})),window.GEVME.xhr={toggleResourceBookmark:toggleResourceBookmark,searchSponsorName:searchSponsorName,searchAgend
34aLocation:searchAgendaLocation};var fixedVideoJSSeekWhileMouseDragging=function fixedVideoJSSeekWhileMouseDragging(){try{var e=window.videojs.getComponent("SeekBar");e.prototype.getPercent=function e(){var t=this.player_.currentTime(),a=t/this.player_.duration();return 1<=a?1:a},e.prototype.handleMouseMove=function t(e){this.player_.pause();var a=this.calculateDistance(e)*this.player_.duration();a===this.player_.duration()&&(a-=.1),this.player_.currentTime(a),this.player_.play(),this.update()}}catch(e){console.log("videojs seek bar mouse drag error",e)}};(function(){try{var e=function deepFreeze(a){// Retrieve the property names defined on object 35var n,o=Object.getOwnPropertyNames(a),i=_createForOfIteratorHelper(o);try{for(i.s();!(n=i.n()).done;){var s=n.value;if(!t.includes(s)){var c=a[s];c&&"object"===_typeof(c)&&!Array.isArray(c)&&(Object.freeze(a[s]),e(c))}}}catch(e){i.e(e)}finally{i.f()}},t=["showcaseblocks","showcaseblocksweight","blockTypes","widgets","header","livebar","setting"];e(window.GEVME)}catch(e){console.error(e)}})(),function(){try{var e=function onClick(t){window.parent.postMessage(JSON.stringify({action:"gevme-page-clicked",data:t}),"*");for(var e=window.frames,a=0;a<e.length;a++)e[a].postMessage(JSON.stringify({action:"gevme-page-clicked",data:t}),"*")};document.body.addEventListener("click",e),window.onload=function(){window._paq&&window._paq.push(["disableCrossDomainLinking"]),fixedVideoJSSeekWhileMouseDragging()},window.onmessage=function(e){try{var t,a,n;if(isValidDomain(e.origin,null===(t=window)||void 0===t||null===(a=t.GEVME)||void 0===a||null===(n=a.setting)||void 0===n?void 0:n.customDomain)){var o=JSON.parse(e.data);if(o&&"adobe-activity"===(null===o||void 0===o?void 0:o.action))return trackAdobeAnalytics(null===o||void 0===o?void 0:o.activity);if(o&&"switch-page"===(null===o||void 0===o?void 0:o.action))return switchPage(o);if(o&&o.type&&o.data&&o.data.targetWindow&&"GevmeLiveBar"===o.data.targetWindow){var i;null===(i=document.querySelector("iframe#GevmeLiveBar").contentWindow)||void 0===i?void 0:i.postMessage(JSON.stringify({type:o.type,data:o.data}),"*")}}else throw new Error({status:!1,message:"Invalid domain"})}catch(e){console.error(e)}}}catch(e){console.error(e)}}(); 36"use strict";function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,_toPropertyKey(c.key),c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}function _toPropertyKey(a){var b=_toPrimitive(a,"string");return"symbol"===_typeof(b)?b:b+""}function _toPrimitive(a,b){if("object"!==_typeof(a)||null===a)return a;var c=a[Symbol.toPrimitive];if(c!==void 0){var d=c.call(a,b||"default");if("object"!==_typeof(d))return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}function _inherits(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),b&&_setPrototypeOf(a,b)}function _createSuper(a){var b=_isNativeReflectConstruct();return function(){var c,d=_getPrototypeOf(a);if(b){var e=_getPrototypeOf(this).constructor;c=Reflect.construct(d,arguments,e)}else c=d.apply(this,arguments);return _possibleConstructorReturn(this,c)}}function _possibleConstructorReturn(a,b){if(b&&("object"===_typeof(b)||"function"==typeof b))return b;if(void 0!==b)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(a)}
36function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _wrapNativeSuper(a){var b="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(a){function c(){return _construct(a,arguments,_getPrototypeOf(this).constructor)}if(null===a||!_isNativeFunction(a))return a;if("function"!=typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!=typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(c,a)},_wrapNativeSuper(a)}function _construct(){return _construct=_isNativeReflectConstruct()?Reflect.construct.bind():function(b,c,d){var e=[null];e.push.apply(e,c);var a=Function.bind.apply(b,e),f=new a;return d&&_setPrototypeOf(f,d.prototype),f},_construct.apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function _isNativeFunction(a){return-1!==Function.toString.call(a).indexOf("[native code]")}function _setPrototypeOf(a,b){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,b){return a.__proto__=b,a},_setPrototypeOf(a,b)}function _getPrototypeOf(a){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},_getPrototypeOf(a)}function isValidDomain(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",c=new URLSearchParams(window.location.search),d=c.get("env")||"",e=["https://www.gevme.com","https://showcase-dev.gevme.com","https://showcase-dev.gev.me","https://showcase.gev.me","https://live.gev.me","https://live-dev.gevme.com","https://live.gevme.com","https://admin.gevme.com","https://admin.gev.me","https://admin-dev.gevme.com"];return!1,b&&e.push(b),e.some(function(b){return a===b})}function handleMessagePeople(a,b){try{var c=JSON.parse(a.data);if(c&&"listenerAttached"===c.eventType&&document.getElementById(b).contentWindow.postMessage(JSON.stringify({action:"gevme-json",data:JSON.stringify(window.GEVME)}),"*"),c.type){var d=c.type;if("open-direct-message"===d||"meetnow"===d){var e=document.querySelector("iframe#GevmeLiveBar");e&&e.contentWindow.postMessage(c,"*")}if("expand-height"===d){var f=document.querySelector("#GevmePeopleDirectory".concat(c.blockId?"-"+c.blockId:""));f&&(f.style.minHeight="unset",c.minHeight&&(f.style.minHeight=c.minHeight+"px"),setTimeout(function(){f.style.height=c.height},200))}}}catch(a){}}var GevmePeopleDirectory=/*#__PURE__*/function(a){function b(){return _classCallCheck(this,b),c.call(this)}_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:"attachPeopleDirectoryMessageEvent",value:function attachPeopleDirectoryMessageEvent(a){window.addEventListener("message",function(b){var c,d,e;isValidDomain(b.origin,null===(c=window)||void 0===c||null===(d=c.GEVME)||void 0===d||null===(e=d.setting)||void 0===e?void 0:e.customDomain)&&handleMessagePeople(b,a)})}},{key:"connectedCallback",value:function connectedCallback(){var a,b,c,d=document.createElement("iframe"),e="".concat((null===(a=window)||void 0===a||null===(b=a.GEVME)||void 0===b||null===(c=b.setting)||void 0===c?void 0:c.customDomain)||"","/widgets"),f="",g={},h=!1,i="600px",j=this.getAttribute("settings"),k=this.getAttribute("type"),l=this.getAttribute("preview"),m=this.getAttribute("fullpagepreview"),n=this.getAttribute("slug"),o="GevmePeopleDirectory".concat(j?"-"+j:"");try{if(j&&"string"==typeof j)h=!0;else throw"No block id provided"}catch(a){console.error(a)}if(h)try{var p,q,r,s,t,u,v,w,x,y,z,A,B=j,C=Object.values(window.GEVME.livepage.showcaseblocks),D=C.find(function(a){var b=a.id,c=a.name;return b===B||B===c});if(!D)throw new Error("block not found");D.blockHeight&&"fit-content"!==D.blockHeight&&(i=D.blockHeight);var E=window.GEVME.sponsor?window.GEVME.sponsor.code:"",F=window.location.href.split("path=").pop();if(F){var G=decodeURIComponent(F.split("&")[0]);
36if(G){var H=new URLSearchParams(G.split("?").pop()),I=H.get("sponsorId");I&&(E=I)}}f="".concat(e,"/people-directory?companyId=").concat(null===(p=window)||void 0===p||null===(q=p.GEVME)||void 0===q||null===(r=q.project)||void 0===r?void 0:r.companyId,"&&projectId=").concat(null===(s=window)||void 0===s||null===(t=s.GEVME)||void 0===t||null===(u=t.project)||void 0===u?void 0:u.id,"&livePageId=").concat(null===(v=window)||void 0===v||null===(w=v.GEVME)||void 0===w||null===(x=w.livepage)||void 0===x?void 0:x.id,"&blockId=").concat((null===D||void 0===D?void 0:D.id)||B,"&sponsorId=").concat(E)+"".concat("true"===l?"&isPreview=true":"")+(m?"&previewInXP=".concat("true"===m?"false":"true"):"")+"&slug=".concat(null===(y=window)||void 0===y||null===(z=y.GEVME)||void 0===z||null===(A=z.livepage)||void 0===A?void 0:A.slug).concat(k?"&type=".concat(k):"")}catch(a){console.error(a)}d.id=o,d.name="GevmePeopleDirectory",d.title="Gevme People Directory",d.sandbox="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-downloads allow-modals allow-presentation allow-same-origin",d.allowFullScreen=!0,d.seamless=!0,d.loading="lazy",d.frameBorder="0",d.referrerPolicy="no-referrer",d.src=f,d.style="display: flex; width: ".concat(g&&g.width?g.width:"100%","; height: ").concat(i,"; margin: auto;"),d.onload=function(){try{this.contentWindow.postMessage(JSON.stringify({action:"gevme-json",data:JSON.stringify(window.GEVME)}),"*")}catch(a){}},this.append(d),this.attachPeopleDirectoryMessageEvent(o)}}]),b}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));window.customElements.define("gevme-people-directory",GevmePeopleDirectory); 37"use strict";function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,_toPropertyKey(c.key),c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}function _toPropertyKey(a){var b=_toPrimitive(a,"string");return"symbol"===_typeof(b)?b:b+""}function _toPrimitive(a,b){if("object"!==_typeof(a)||null===a)return a;var c=a[Symbol.toPrimitive];if(c!==void 0){var d=c.call(a,b||"default");if("object"!==_typeof(d))return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}function _inherits(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),b&&_setPrototypeOf(a,b)}function _createSuper(a){var b=_isNativeReflectConstruct();return function(){var c,d=_getPrototypeOf(a);if(b){var e=_getPrototypeOf(this).constructor;c=Reflect.construct(d,arguments,e)}else c=d.apply(this,arguments);return _possibleConstructorReturn(this,c)}}function _possibleConstructorReturn(a,b){if(b&&("object"===_typeof(b)||"function"==typeof b))return b;if(void 0!==b)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(a)}function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _wrapNativeSuper(a){var b="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(a){function c(){return _construct(a,arguments,_getPrototypeOf(this).constructor)}if(null===a||!_isNativeFunction(a))return a;if("function"!=typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!=typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(c,a)},_wrapNativeSuper(a)}function _construct(){return _construct=_isNativeReflectConstruct()?Reflect.construct.bind():function(b,c,d){var e=[null];e.push.apply(e,c);var a=Function.bind.apply(b,e),f=new a;return d&&_setPrototypeOf(f,d.prototype),f},_construct.apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function _isNativeFunction(a){return-1!==Function.toString.call(a).indexOf("[native code]")}function _setPrototypeOf(a,b){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,b){return a.__proto__=b,a},_setPrototypeOf(a,b)}function _getPrototypeOf(a){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},_getPrototypeOf(a)}function isValidDomain(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",c=new URLSearchParams(window.location.search),d=c.get("env")||"",e=["https://www.gevme.com","https://showcase-dev.gevme.com","https://showcase-dev.gev.me","https://showcase.gev.me","https://live.gev.me","https://live-dev.gevme.com","https://live.gevme.com","https://admin.gevme.com","https://admin.gev.me","https://admin-dev.gevme.com"];return!1,b&&e.push(b),e.some(function(b){return a===b})}function handleMessagePeopleDir(a){var b,c,d;if(isValidDomain(a.origin,null===(b=window)||void 0===b||null===(c=b.GEVME)||void 0===c||null===(d=c.setting)||void 0===d?void 0:d.customDomain))try{var e=JSON.parse(a.data);e&&"listenerAttached"===e.eventType&&document.getElementById("GevmePeople").contentWindow.postMessage(JSON.stringify({action:"gevme-json",data:JSON.stringify(window.GEVME)}),"*"),("open-direct-message"===e.eventType||"open-profile"===e.eventType)&&document.getElementById("gevme-livebar").contentWindow.postMessage(
37a.data)}catch(a){console.error(a)}}var GevmePeopleDirectory=/*#__PURE__*/function(a){function b(){return _classCallCheck(this,b),c.call(this)}_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:"attachPeopleMessageEvent",value:function attachPeopleMessageEvent(){window.addEventListener("message",handleMessagePeopleDir)}},{key:"handlePeopleLoad",value:function handlePeopleLoad(a,b){("undefined"!=typeof a&&a||"Attendees Directory"!==b)&&document.getElementById("GevmePeople").contentWindow.postMessage(JSON.stringify({disableFilters:a,title:b}),"*")}},{key:"attachPeopleLoadEvent",value:function attachPeopleLoadEvent(a,b){var c=this;document.getElementById("GevmePeople").addEventListener("load",function(){return c.handlePeopleLoad(a,b)})}},{key:"connectedCallback",value:function connectedCallback(){var a,b,c,d=document.createElement("iframe"),e="".concat((null===(a=window)||void 0===a||null===(b=a.GEVME)||void 0===b||null===(c=b.setting)||void 0===c?void 0:c.customDomain)||"","/widgets"),f="850px",g="1000px",h=!1,i="Attendees Directory";try{var j=JSON.parse(this.getAttribute("settings"));f=j.width?j.width:f,g=j.height?j.height:g,h=j.disableFilters,i=j.title?j.title:i}catch(a){console.error(a)}d.id="GevmePeople",d.name="GevmePeople",d.title="GEVME Attendee Directory",d.sandbox="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-downloads allow-modals allow-presentation allow-same-origin",d.allowFullScreen=!0,d.seamless=!0,d.loading="lazy",d.referrerPolicy="no-referrer",d.src="".concat(e,"/peopleDirectory"),d.width=f,d.height=g,d.frameBorder="0",d.onload=function(){console.log("livebar loaded"),console.log(this.contentWindow),this.contentWindow.postMessage(JSON.stringify({action:"gevme-json",data:JSON.stringify(window.GEVME)}),"*")},this.append(d),this.attachPeopleMessageEvent(),this.attachPeopleLoadEvent(h,i)}}]),b}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));window.customElements.define("gevme-people",GevmePeopleDirectory); 38"use strict";function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,_toPropertyKey(c.key),c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}function _toPropertyKey(a){var b=_toPrimitive(a,"string");return"symbol"===_typeof(b)?b:b+""}function _toPrimitive(a,b){if("object"!==_typeof(a)||null===a)return a;var c=a[Symbol.toPrimitive];if(c!==void 0){var d=c.call(a,b||"default");if("object"!==_typeof(d))return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}function _inherits(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),b&&_setPrototypeOf(a,b)}function _createSuper(a){var b=_isNativeReflectConstruct();return function(){var c,d=_getPrototypeOf(a);if(b){var e=_getPrototypeOf(this).constructor;c=Reflect.construct(d,arguments,e)}else c=d.apply(this,arguments);return _possibleConstructorReturn(this,c)}}function _possibleConstructorReturn(a,b){if(b&&("object"===_typeof(b)||"function"==typeof b))return b;if(void 0!==b)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(a)}function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _wrapNativeSuper(a){var b="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(a){function c(){return _construct(a,arguments,_getPrototypeOf(this).constructor)}if(null===a||!_isNativeFunction(a))return a;
38if("function"!=typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!=typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(c,a)},_wrapNativeSuper(a)}function _construct(){return _construct=_isNativeReflectConstruct()?Reflect.construct.bind():function(b,c,d){var e=[null];e.push.apply(e,c);var a=Function.bind.apply(b,e),f=new a;return d&&_setPrototypeOf(f,d.prototype),f},_construct.apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function _isNativeFunction(a){return-1!==Function.toString.call(a).indexOf("[native code]")}function _setPrototypeOf(a,b){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,b){return a.__proto__=b,a},_setPrototypeOf(a,b)}function _getPrototypeOf(a){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},_getPrototypeOf(a)}function isValidDomain(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",c=new URLSearchParams(window.location.search),d=c.get("env")||"",e=["https://www.gevme.com","https://showcase-dev.gevme.com","https://showcase-dev.gev.me","https://showcase.gev.me","https://live.gev.me","https://live-dev.gevme.com","https://live.gevme.com","https://admin.gevme.com","https://admin.gev.me","https://admin-dev.gevme.com"];return!1,b&&e.push(b),e.some(function(b){return a===b})}function handleMessagePoll(a){var b,c,d;// handle event message 39if(isValidDomain(a.origin,null===(b=window)||void 0===b||null===(c=b.GEVME)||void 0===c||null===(d=c.setting)||void 0===d?void 0:d.customDomain))try{if(document.getElementById("GevmePoll")){var e=JSON.parse(a.data);e.GevmePoll&&(document.getElementById("GevmePoll").style.display=e.GevmePoll.display,document.getElementById("GevmePoll").style.height=e.GevmePoll.height,"block"==e.GevmePoll.display&&"50px"==e.GevmePoll.height&&document.getElementById("GevmePoll").contentWindow.postMessage(JSON.stringify({GevmePoll:{height:"50px"}}),"*"),"floating"===e.GevmePoll.type&&"block"==e.GevmePoll.display&&(document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()))}}catch(a){console.error(a)}}var GevmePoll=/*#__PURE__*/function(a){function b(){return _classCallCheck(this,b),c.call(this)}_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:"attachPollMessageEvent",value:function attachPollMessageEvent(){window.addEventListener("message",handleMessagePoll)}},{key:"connectedCallback",value:function connectedCallback(){var a,b,c,d,e,f,g,h,i,j,k=document.createElement("iframe"),l="".concat((null===(a=window)||void 0===a||null===(b=a.GEVME)||void 0===b||null===(c=b.setting)||void 0===c?void 0:c.customDomain)||"","/widgets"),m="700px";try{var n=JSON.parse(this.getAttribute("settings"));m=n.polls.style.width,i=n.mode||"dark",j=n.showHeader||"true"}catch(a){}k.id="GevmePoll",k.name="GevmePoll",k.title="Gevme Poll",k.sandbox="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-downloads allow-modals allow-presentation allow-same-origin",k.allowFullScreen=!0,k.seamless=!0,k.loading="lazy",k.referrerPolicy="no-referrer",k.src="".concat(l,"/polls?mode=").concat(i,"&showHeader=").concat(j)+"&slug=".concat(null===(d=window)||void 0===d||null===(e=d.GEVME)||void 0===e||null===(f=e.livepage)||void 0===f?void 0:f.slug)+"".concat(null!==(g=window)&&void 0!==g&&null!==(h=g.GEVME)&&void 0!==h&&h.isPreview?"&isPreview=true":""),k.width=m,k.height="50px",k.frameBorder="0",k.style.borderRadius="5px",k.style.display="none",k.style.width="100%",k.onload=function(){document.getElementById("GevmePoll").contentWindow.postMessage(JSON.stringify({action:"gevme-json",data:JSON.stringify(window.GEVME)}),"*")},this.append(k),this.attachPollMessageEvent()}}]),b}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));window.customElements.define("gevme-poll",GevmePoll); 40"use strict";function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,_toPropertyKey(c.key),c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}function _toPropertyKey(a){var b=_toPrimitive(a,"string");return"symbol"===_typeof(b)?b:b+""}function _toPrimitive(a,b){if("object"!==_typeof(a)||null===a)return a;var c=a[Symbol.toPrimitive];if(c!==void 0){var d=c.call(a,b||"default");if("object"!==_typeof(d))return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}function _inherits(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),b&&_setPrototypeOf(a,b)}function _createSuper(a){var b=_isNativeReflectConstruct();return function(){var c,d=_getPrototypeOf(a);if(b){var e=_getPrototypeOf(this).constructor;c=Reflect.construct(d,arguments,e)}else c=d.apply(this,arguments);return _possibleConstructorReturn(this,c)}}function _possibleConstructorReturn(a,b){if(b&&("object"===_typeof(b)||"function"==typeof b))return b;if(void 0!==b)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(a)}
40function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _wrapNativeSuper(a){var b="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(a){function c(){return _construct(a,arguments,_getPrototypeOf(this).constructor)}if(null===a||!_isNativeFunction(a))return a;if("function"!=typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!=typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(c,a)},_wrapNativeSuper(a)}function _construct(){return _construct=_isNativeReflectConstruct()?Reflect.construct.bind():function(b,c,d){var e=[null];e.push.apply(e,c);var a=Function.bind.apply(b,e),f=new a;return d&&_setPrototypeOf(f,d.prototype),f},_construct.apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function _isNativeFunction(a){return-1!==Function.toString.call(a).indexOf("[native code]")}function _setPrototypeOf(a,b){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,b){return a.__proto__=b,a},_setPrototypeOf(a,b)}function _getPrototypeOf(a){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},_getPrototypeOf(a)}function isValidDomain(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",c=new URLSearchParams(window.location.search),d=c.get("env")||"",e=["https://www.gevme.com","https://showcase-dev.gevme.com","https://showcase-dev.gev.me","https://showcase.gev.me","https://live.gev.me","https://live-dev.gevme.com","https://live.gevme.com","https://admin.gevme.com","https://admin.gev.me","https://admin-dev.gevme.com"];return!1,b&&e.push(b),e.some(function(b){return a===b})}function handleMessageProd(a,b){try{var c=JSON.parse(a.data);c&&"listenerAttached"===c.eventType&&document.getElementById(b).contentWindow.postMessage(JSON.stringify({action:"gevme-json",data:JSON.stringify(window.GEVME)}),"*"),"bookmark"===c.eventType&&document.getElementById(b).contentWindow.postMessage(JSON.stringify({eventData:c.eventData}),"*"),"height"===c.eventType&&(document.getElementById("".concat(c.eventData.frameId)).style.height=c.eventData.height),"search"===c.action&&document.getElementById(b).contentWindow.postMessage(JSON.stringify({eventData:c}),"*")}catch(a){}}var GevmeProduct=/*#__PURE__*/function(a){function b(){return _classCallCheck(this,b),c.call(this)}_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:"attachProductMessageEvent",value:function attachProductMessageEvent(a){window.addEventListener("message",function(b){var c,d,e;isValidDomain(b.origin,null===(c=window)||void 0===c||null===(d=c.GEVME)||void 0===d||null===(e=d.setting)||void 0===e?void 0:e.customDomain)&&handleMessageProd(b,a)})}},{key:"connectedCallback",value:function connectedCallback(){var a,b,c,d=document.createElement("iframe"),e="".concat((null===(a=window)||void 0===a||null===(b=a.GEVME)||void 0===b||null===(c=b.setting)||void 0===c?void 0:c.customDomain)||"","/widgets"),f="",g={},h=!1,i="500px",j=this.getAttribute("settings"),k=this.getAttribute("fullpagepreview"),l="GevmeProduct-";try{g=JSON.parse(j),f=e+"/product?s="+encodeURI(JSON.stringify(g))}catch(a){h=!0}if(h){try{var m,n,o,p,q,r,s,t,u,v,w,x,y,z,A=j;l+=A;var B=Object.values(window.GEVME.livepage.showcaseblocks),C=B.find(function(a){var b=a.id;return b===A});if(!C)throw new Error("block not found");C.blockHeight&&"fit-content"!==C.blockHeight&&(i=C.blockHeight),f="".concat(e,"/product?frameId=").concat(l,"&projectId=").concat(null===(m=window)||void 0===m||null===(n=m.GEVME)||void 0===n||null===(o=n.project)||void 0===o?void 0:o.id,"&companyId=").concat(null===(p=window)||void 0===p||null===(q=p.GEVME)||void 0===q||null===(r=q.project)||void 0===r?void 0:r.companyId,"&livePageId=").concat(null===(s=window)||void 0===s||null===(t=s.GEVME)||void 0===t||null===(u=t.livepage)||void 0===u?void 0:u.id,"&blockId=").concat(A)+"".concat(null!==(v=window)&&void 0!==v&&null!==(w=v.GEVME)&&void 0!==w&&w.isPreview?"&isPreview=true":"")+(k?"&previewInXP=".concat("true"===k||"undefined"===k?"false":"true"):"")+"&slug=".concat(null===(x=window)||void 0===x||null===(y=x.GEVME)||void 0===y||null===(z=y.livepage)||void 0===z?void 0:z.slug)}catch(a){console.error(a)}d.id=l,d.name="GevmeProduct",d.title="Gevme Product",d.sandbox="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-downloads allow-modals allow-presentation allow-same-origin",d.allowFullScreen=!0,d.seamless=!0,d.loading="lazy",d.frameBorder="0",d.referrerPolicy="no-referrer",d.src=f,d.style="display: flex; width: ".concat(g&&g.width?g.width:"100%","; height: ").concat(i,"; margin: auto;"),this.append(d),this.attachProductMessageEvent(l)}d.id=l,d.name="GevmeProduct",d.title="Gevme Product",d.sandbox="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-downloads allow-modals allow-presentation allow-same-origin",d.allowFullScreen=!0,d.seamless=!0,d.loading="lazy",d.frameBorder="0",d.referrerPolicy="no-referrer",d.src=f,d.style="display: flex; width: ".concat(g&&g.width?g.width:"100%","; height: ").concat(i,"; margin: auto;"),d.onload=function(){try{this.contentWindow.postMessage(JSON.stringify({action:"gevme-json",data:JSON.stringify(window.GEVME)}),"*")}catch(a){}},this.append(d),this.attachProductMessageEvent(l)}}]),b}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));window.customElements.define("gevme-product",GevmeProduct); 41"use strict";function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,_toPropertyKey(c.key),c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}function _toPropertyKey(a){var b=_toPrimitive(a,"string");return"symbol"===_typeof(b)?b:b+""}function _toPrimitive(a,b){if("object"!==_typeof(a)||null===a)return a;var c=a[Symbol.toPrimitive];if(c!==void 0){var d=c.call(a,b||"default");if("object"!==_typeof(d))return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}function _inherits(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),b&&_setPrototypeOf(a,b)}function _createSuper(a){var b=_isNativeReflectConstruct();return function(){var c,d=_getPrototypeOf(a);if(b){var e=_getPrototypeOf(this).constructor;c=Reflect.construct(d,arguments,e)}else c=d.apply(this,arguments);return _possibleConstructorReturn(this,c)}}function _possibleConstructorReturn(a,b){if(b&&("object"===_typeof(b)||"function"==typeof b))return b;if(void 0!==b)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(a)}
41function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _wrapNativeSuper(a){var b="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(a){function c(){return _construct(a,arguments,_getPrototypeOf(this).constructor)}if(null===a||!_isNativeFunction(a))return a;if("function"!=typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!=typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(c,a)},_wrapNativeSuper(a)}function _construct(){return _construct=_isNativeReflectConstruct()?Reflect.construct.bind():function(b,c,d){var e=[null];e.push.apply(e,c);var a=Function.bind.apply(b,e),f=new a;return d&&_setPrototypeOf(f,d.prototype),f},_construct.apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function _isNativeFunction(a){return-1!==Function.toString.call(a).indexOf("[native code]")}function _setPrototypeOf(a,b){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,b){return a.__proto__=b,a},_setPrototypeOf(a,b)}function _getPrototypeOf(a){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},_getPrototypeOf(a)}function isValidDomain(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",c=new URLSearchParams(window.location.search),d=c.get("env")||"",e=["https://www.gevme.com","https://showcase-dev.gevme.com","https://showcase-dev.gev.me","https://showcase.gev.me","https://live.gev.me","https://live-dev.gevme.com","https://live.gevme.com","https://admin.gevme.com","https://admin.gev.me","https://admin-dev.gevme.com"];return!1,b&&e.push(b),e.some(function(b){return a===b})}function handleMessageSearch(a,b){try{var c=JSON.parse(a.data);"search"===c.action&&document.getElementById(b).contentWindow.postMessage(JSON.stringify({eventData:c}),"*"),c&&"listenerAttached"===c.eventType&&document.getElementById(b).contentWindow.postMessage(JSON.stringify({action:"gevme-json",data:JSON.stringify(window.GEVME)}),"*")}catch(a){}}var GevmeSearch=/*#__PURE__*/function(a){function b(){return _classCallCheck(this,b),c.call(this)}_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:"attachSearchMessageEvent",value:function attachSearchMessageEvent(a){window.addEventListener("message",function(b){var c,d,e;isValidDomain(b.origin,null===(c=window)||void 0===c||null===(d=c.GEVME)||void 0===d||null===(e=d.setting)||void 0===e?void 0:e.customDomain)&&handleMessageSearch(b,a)})}},{key:"connectedCallback",value:function connectedCallback(){var a,b,c,d=document.createElement("iframe"),e="".concat((null===(a=window)||void 0===a||null===(b=a.GEVME)||void 0===b||null===(c=b.setting)||void 0===c?void 0:c.customDomain)||"","/widgets"),f={},g="",h=!1,i="200px",j=this.getAttribute("settings"),k=this.getAttribute("preview"),l=this.getAttribute("fullpagepreview"),m=this.getAttribute("slug"),n=Date.now(),o="GevmeSearch".concat(n);try{f=JSON.parse(j),g=e+"/search?s="+encodeURI(JSON.stringify(f)),i=f&&f.height?f.height:"200px"}catch(a){h=!0}if(h)try{var p,q,r,s,t,u,v,w,x,y,z,A,B,C,D=j,E=Object.values(window.GEVME.livepage.showcaseblocks),F=E.find(function(a){var b=a.id;return b===D});if(!F)throw new Error("block not found");F.blockHeight&&"fit-content"!==F.blockHeight&&(i=F.blockHeight),g="".concat(e,"/search?frameId=").concat(o,"&companyId=").concat(null===(p=window)||void 0===p||null===(q=p.GEVME)||void 0===q||null===(r=q.project)||void 0===r?void 0:r.companyId,"&projectId=").concat(null===(s=window)||void 0===s||null===(t=s.GEVME)||void 0===t||null===(u=t.project)||void 0===u?void 0:u.id,"&livePageId=").concat(null===(v=window)||void 0===v||null===(w=v.GEVME)||void 0===w||null===(x=w.livepage)||void 0===x?void 0:x.id,"&blockId=").concat(D)+"".concat(null!==(y=window)&&void 0!==y&&null!==(z=y.GEVME)&&void 0!==z&&z.isPreview?"&isPreview=true":"")+"".concat(n?"&id=".concat(n):"")+(l?"&previewInXP=".concat("true"===l||"undefined"===l?"false":"true"):"")+"&slug=".concat(null===(A=window)||void 0===A||null===(B=A.GEVME)||void 0===B||null===(C=B.livepage)||void 0===C?void 0:C.slug)}catch(a){console.error(a)}d.id=o,d.name="GevmeSearch",d.title="Gevme Search",d.sandbox="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-downloads allow-modals allow-presentation allow-same-origin",d.allowFullScreen=!0,d.seamless=!0,d.loading="lazy",d.frameBorder="0",d.referrerPolicy="no-referrer",d.src=g,d.onload=function(){this.contentWindow.postMessage(JSON.stringify({action:"gevme-json",data:JSON.stringify(window.GEVME)}),"*")},d.style="display: flex; width: ".concat(f&&f.width?f.width:"100%","; height: 100%; overflow: hidden; margin: auto;"),this.attachSearchMessageEvent(o),this.append(d)}}]),b}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));window.customElements.define("gevme-search",GevmeSearch); 42"use strict";function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,_toPropertyKey(c.key),c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}function _toPropertyKey(a){var b=_toPrimitive(a,"string");return"symbol"===_typeof(b)?b:b+""}function _toPrimitive(a,b){if("object"!==_typeof(a)||null===a)return a;var c=a[Symbol.toPrimitive];if(c!==void 0){var d=c.call(a,b||"default");if("object"!==_typeof(d))return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}function _inherits(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),b&&_setPrototypeOf(a,b)}function _createSuper(a){var b=_isNativeReflectConstruct();return function(){var c,d=_getPrototypeOf(a);if(b){var e=_getPrototypeOf(this).constructor;c=Reflect.construct(d,arguments,e)}else c=d.apply(this,arguments);return _possibleConstructorReturn(this,c)}}function _possibleConstructorReturn(a,b){if(b&&("object"===_typeof(b)||"function"==typeof b))return b;if(void 0!==b)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(a)}
42function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _wrapNativeSuper(a){var b="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(a){function c(){return _construct(a,arguments,_getPrototypeOf(this).constructor)}if(null===a||!_isNativeFunction(a))return a;if("function"!=typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!=typeof b){if(b.has(a))return b.get(a);b.set(a,c)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(c,a)},_wrapNativeSuper(a)}function _construct(){return _construct=_isNativeReflectConstruct()?Reflect.construct.bind():function(b,c,d){var e=[null];e.push.apply(e,c);var a=Function.bind.apply(b,e),f=new a;return d&&_setPrototypeOf(f,d.prototype),f},_construct.apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function _isNativeFunction(a){return-1!==Function.toString.call(a).indexOf("[native code]")}function _setPrototypeOf(a,b){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,b){return a.__proto__=b,a},_setPrototypeOf(a,b)}function _getPrototypeOf(a){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},_getPrototypeOf(a)}function isValidDomain(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",c=new URLSearchParams(window.location.search),d=c.get("env")||"",e=["https://www.gevme.com","https://showcase-dev.gevme.com","https://showcase-dev.gev.me","https://showcase.gev.me","https://live.gev.me","https://live-dev.gevme.com","https://live.gevme.com","https://admin.gevme.com","https://admin.gev.me","https://admin-dev.gevme.com"];return!1,b&&e.push(b),e.some(function(b){return a===b})}function handleMessageSponsor(a,b){try{var c=JSON.parse(a.data);if(c&&"listenerAttached"===c.eventType&&document.getElementById(c.id).contentWindow.postMessage(JSON.stringify({action:"gevme-json",data:JSON.stringify(window.GEVME)}),"*"),"bookmark"===c.eventType&&document.getElementById(b).contentWindow.postMessage(JSON.stringify({eventData:c.eventData}),"*"),"height"===c.eventType){var d=document.getElementById("".concat(c.eventData.frameId));d.style.height="100px"===c.eventData.height?"400px":c.eventData.height}"search"===c.action&&document.getElementById(b).contentWindow.postMessage(JSON.stringify({eventData:c}),"*")}catch(a){}}var GevmeSponsor=/*#__PURE__*/function(a){function b(){return _classCallCheck(this,b),c.call(this)}_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:"attachSponsorMessageEvent",value:function attachSponsorMessageEvent(a){window.addEventListener("message",function(b){var c,d,e;isValidDomain(b.origin,null===(c=window)||void 0===c||null===(d=c.GEVME)||void 0===d||null===(e=d.setting)||void 0===e?void 0:e.customDomain)&&handleMessageSponsor(b,a)})}},{key:"connectedCallback",value:function connectedCallback(){var a,b,c,d=document.createElement("iframe"),e="".concat((null===(a=window)||void 0===a||null===(b=a.GEVME)||void 0===b||null===(c=b.setting)||void 0===c?void 0:c.customDomain)||"","/widgets"),f="",g={},h=!1,i="500px",j=this.getAttribute("settings"),k=this.getAttribute("preview"),l=this.getAttribute("fullpagepreview"),m=this.getAttribute("slug"),n="GevmeSponsor-";try{g=JSON.parse(j),f=e+"/sponsor?s="+encodeURI(JSON.stringify(g))}catch(a){h=!0}if(h)try{var o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I=j;n+=I;var J=Object.values(window.GEVME.livepage.showcaseblocks),K=J.find(function(a){var b=a.id;return b===I});if(!K)throw new Error("block not found");K.blockHeight&&"fit-content"!==K.blockHeight&&(i=K.blockHeight),f="".concat(e,"/sponsor?frameId=").concat(n,"&").concat(null!==(o=window)&&void 0!==o&&null!==(p=o.GEVME)&&void 0!==p&&null!==(q=p.sponsor)&&void 0!==q&&q.id?"sponsorId=".concat(null===(r=window)||void 0===r||null===(s=r.G
42EVME)||void 0===s||null===(t=s.sponsor)||void 0===t?void 0:t.id,"&"):"","projectId=").concat(null===(u=window)||void 0===u||null===(v=u.GEVME)||void 0===v||null===(w=v.project)||void 0===w?void 0:w.id,"&companyId=").concat(null===(x=window)||void 0===x||null===(y=x.GEVME)||void 0===y||null===(z=y.project)||void 0===z?void 0:z.companyId,"&livePageId=").concat(null===(A=window)||void 0===A||null===(B=A.GEVME)||void 0===B||null===(C=B.livepage)||void 0===C?void 0:C.id,"&blockId=").concat(I)+"".concat(null!==(D=window)&&void 0!==D&&null!==(E=D.GEVME)&&void 0!==E&&E.isPreview?"&isPreview=true":"")+(l?"&previewInXP=".concat("true"===l||"undefined"===l?"false":"true"):"")+"&slug=".concat(null===(F=window)||void 0===F||null===(G=F.GEVME)||void 0===G||null===(H=G.livepage)||void 0===H?void 0:H.slug)}catch(a){console.error(a)}d.id=n,d.name="GevmeSponsor",d.title="Gevme Sponsor",d.sandbox="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-downloads allow-modals allow-presentation allow-same-origin",d.allowFullScreen=!0,d.seamless=!0,d.loading="lazy",d.frameBorder="0",d.referrerPolicy="no-referrer",d.src=f,d.style="display: flex; width: ".concat(g&&g.width?g.width:"100%","; height: ").concat(i,"; margin: auto;"),d.onload=function(){try{this.contentWindow.postMessage(JSON.stringify({action:"gevme-json",data:JSON.stringify(window.GEVME)}),"*")}catch(a){}},this.append(d),this.attachSponsorMessageEvent(n)}}]),b}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));window.customElements.define("gevme-sponsor",GevmeSponsor);
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.