/** * body-scroll-lock * * Copyright (c) 2018 Will Po * @license Licensed under MIT license * * You can obtain a copy of the License at * gis.goinstore.com/static-common/licenses/MIT-License.txt */ var GISAPP = window.GISAPP || {};var gisCallbacks = window.gisCallbacks || {}; var gisApi = window.gisApi || {}; var gisAppLib= gisAppLib || {}; var EmplifiLivePageApi = window.EmplifiLivePageApi || {}; !function(e,o){var t={};o(t),e.bodyScrollLock=t}(gisAppLib,function(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=!1;if("undefined"!=typeof window){var e={get passive(){t=!0}};window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}function d(o){return s.some(function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(o))})}function l(e){var o=e||window.event;return!!d(o.target)||(1>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var n=new WeakMap,e={};return Object.freeze(e),n.set(e,"__testvalue__"),"__testvalue__"===n.get(e)}catch(n){return!1}}())try{this.weakmap=new WeakMap}catch(n){}this.keys=[],this.values=[]}var e=n.prototype;return e._cleanupClosedWindows=function(){for(var n=this.weakmap,e=this.keys,t=0;t=3)return"stringifyError stack overflow";try{if(!n)return"";if("string"==typeof n)return n;if(n instanceof Error){var t=n&&n.stack,r=n&&n.message;if(t&&r)return-1!==t.indexOf(r)?t:r+"\n"+t;if(t)return t;if(r)return r}return n&&n.toString&&"function"==typeof n.toString?n.toString():{}.toString.call(n)}catch(n){return"Error while stringifying error: "+H(n,e+1)}}function U(n){return"string"==typeof n?n:n&&n.toString&&"function"==typeof n.toString?n.toString():{}.toString.call(n)}function K(n){return"[object RegExp]"==={}.toString.call(n)}function Y(n,e,t){if(n.hasOwnProperty(e))return n[e];var r=t();return n[e]=r,r}function Z(){var n=document.body;if(!n)throw new Error("Body element not found");return n}function $(){return Boolean(document.body)&&"complete"===document.readyState}function G(){return Boolean(document.body)&&"interactive"===document.readyState}F.clear=function(){q=L},F((function(n){if(Object.values)return Object.values(n);var e=[];for(var t in n)n.hasOwnProperty(t)&&e.push(n[t]);return e})),Error,F((function(){return new A((function(n){if($()||G())return n();var e=setInterval((function(){if($()||G())return clearInterval(e),n()}),10)}))}));var Q="undefined"!=typeof document?document.currentScript:null,V=F((function(){if(Q)return Q;if(Q=function(){try{var n=function(){try{throw new Error("_")}catch(n){return n.stack||""}}(),e=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(n),t=e&&e[1];if(!t)return;for(var r=0,o=[].slice.call(document.getElementsByTagName("script")).reverse();r { ... }":"<"+typeof n+">"})).join(", ")+") failed\n\n")+n.stack),n}))})).then((function(n){return{result:n,id:o,name:i}}))}))}));var c=t.__id__||M();n=En.unwrap(n);var s=t.__name__||t.name||r;return"string"==typeof s&&"function"==typeof s.indexOf&&0===s.indexOf("anonymous::")&&(s=s.replace("anonymous::",r+"::")),En.isProxyWindow(n)?(xn(c,t,s,n,e),n.awaitWindow().then((function(n){xn(c,t,s,n,e)}))):xn(c,t,s,n,e),pn("cross_domain_function",{id:c,name:s})}function kn(n,e,t,r){var o,i=r.on,a=r.send;return function(n,e){void 0===e&&(e=yn);var t=JSON.stringify(n,(function(n){var t=this[n];if(hn(this))return t;var r=wn(t);if(!r)return t;var o=e[r]||vn[r];return o?o(t,n):t}));return void 0===t?"undefined":t}(t,((o={}).promise=function(t,r){return function(n,e,t,r,o){return pn("cross_domain_zalgo_promise",{then:jn(n,e,(function(n,e){return t.then(n,e)}),r,{on:o.on,send:o.send})})}(n,e,t,r,{on:i,send:a})},o.function=function(t,r){return jn(n,e,t,r,{on:i,send:a})},o.object=function(n){return _(n)||En.isProxyWindow(n)?pn("cross_domain_window",En.serialize(n,{send:a})):n},o))}function On(n,e,t,r){var o,i=r.send;return function(n,e){if(void 0===e&&(e=_n),"undefined"!==n)return JSON.parse(n,(function(n,t){if(hn(this))return t;var r,o;if(hn(t)?(r=t.__type__,o=t.__val__):(r=wn(t),o=t),!r)return o;var i=e[r]||gn[r];return i?i(o,n):o}))}(t,((o={}).cross_domain_zalgo_promise=function(n){return function(n,e,t){return new A(t.then)}(0,0,n)},o.cross_domain_function=function(t){return function(n,e,t,r){var o=t.id,i=t.name,a=r.send,u=function(t){function r(){var u=arguments;return En.toProxyWindow(n,{send:a}).awaitWindow().then((function(n){var c=Sn(n,o);if(c&&c.val!==r)return c.val.apply({source:window,origin:f()},u);var s=[].slice.call(u);return t.fireAndForget?a(n,"postrobot_method",{id:o,name:i,args:s},{domain:e,fireAndForget:!0}):a(n,"postrobot_method",{id:o,name:i,args:s},{domain:e,fireAndForget:!1}).then((function(n){return n.data.result}))})).catch((function(n){throw n}))}return void 0===t&&(t={}),r.__name__=i,r.__origin__=e,r.__source__=n,r.__id__=o,r.origin=e,r},c=u();return c.fireAndForget=u({fireAndForget:!0}),c}(n,e,t,{send:i})},o.cross_domain_window=function(n){return En.deserialize(n,{send:i})},o))}var Pn={};function An(n,e,t,r){var o=r.on,i=r.send;return A.try((function(){var r=un().getOrSet(n,(function(){return{}}));return r.buffer=r.buffer||[],r.buffer.push(t),r.flush=r.flush||A.flush().then((function(){if(v(n))throw new Error("Window is closed");var t,a=kn(n,e,((t={}).__post_robot_10_0_44__=r.buffer||[],t),{on:o,send:i});delete r.buffer;for(var u=Object.keys(Pn),c=[],s=0;s{var __webpack_modules__={9742:(e,t,n)=>{(function(){window.gisProfilingStartTime=performance.now(),window.GISAPP=window.GISAPP||{},window.gisCallbacks={},window.gisApi={},window.EmplifiLivePageApi={};{let e=!1;try{const t=window.location.search;e=new URLSearchParams(t).get("gis"),e="debug"===e}catch(e){console.error("EMP Initialization","Error while trying to detect debug parameter",e)}n.p=e?"//gis.goinstore.com/static-common/js/chunks/debug/":"//gis.goinstore.com/static-common/js/chunks/"}}).call(window)},6451:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(6628),a=n(3203),o=n(7383),s=n(861);function r(e){var t={},n={};function r(e){t.props=e,t.props.buttonMargin&&(n.button.style.margin=t.props.buttonMargin),t.props.buttonLabel&&(n.buttonLabel.innerHTML=t.props.buttonLabel),t.props.color&&(n.button.style.background=t.props.color,n.button.style.boxShadow="initial"),n.button.style.display="flex",t.props.buttonImage?(n.buttonImg.style.background=a.Z.getImageUrl(t.props.buttonImage)+" no-repeat center center / contain",n.buttonImg.style.display="inline-block"):n.buttonImg.style.display="none",null==t.props.onClick?n.button.onclick=function(){}:"function"==typeof t.props.onClick?n.button.onclick=t.onClick:console.warn("buttonComponent onClick prop is not valid"),t.props.buttonClass&&a.Z.addClass(n.button,t.props.buttonClass),t.props.fontColor&&(n.button.style.color=t.props.fontColor)}function l(){n.buttonImg.style.background=a.Z.getImageUrl("connecting-call.gif")+" no-repeat center center / contain",a.Z.addClass(n.buttonImg,"gis-v3-button-icon-loading"),a.Z.addClass(n.button,"gis-v3-button-loading"),n.buttonImg.style.display="inline-block",n.buttonLabel.innerHTML=t.props.responseLabel?t.props.responseLabel:i.Z.getLabels().directCallScreen_v3_waiting,n.button.onclick=function(){}}return t.onClick=function(){t.props.eventName&&o.Z.logEvent(t.props.eventName+(t.props.eventAction?t.props.eventAction:o.Z.GIS_ACTIONS.CLICKED),t.props.eventData?t.props.eventData:null),t.props.isResponsive&&l(),t.props.onClick()},{subviews:n,render:function(){var t=a.Z.processView(i.Z.getViews().buttonView,{},!0);return n.button=t.querySelector("#gis-v3-button"),s.Z.registerInteractiveElement(n.button,e.tabindex?e.tabindex:1),n.buttonLabel=t.querySelector("#gis-v3-button-label"),n.buttonImg=t.querySelector("#gis-v3-button-icon"),r(e),t},setup:r,hide:function(){n.button?n.button.style.display="none":console.warn("buttonComponent can't be hidden before render")},show:function(){n.button?n.button.style.display="flex":console.warn("buttonComponent can't be shown before render")},enable:function(){a.Z.removeClass(n.buttonImg,"gis-v3-button-icon-loading"),a.Z.removeClass(n.button,"gis-v3-button-loading"),r(t.props)},disable:function(){a.Z.addClass(n.button,"gis-v3-button-loading"),n.button.onclick=function(){}},processing:l}}},319:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(3203),a=n(861);function o(e){var t,n,o,s,r,l,c={CAM_MUTE:"",CAMERA:"",VOLUME_MUTE:"",VOLUME:'',MIC:'',MIC_MUTE:'',FULL_SCREEN:'',FULL_SCREEN_MUTE:'',CAMERA_ENABLE:'',CAMERA_ENABLE_MUTE:'',CAMERA_SWITCH:'',CAMERA_SWITCH_MUTE:'',PLAY:'',PLAY_MUTE:'',VIDEO_FULL_SCREEN:'',VIDEO_FULL_SCREEN_MUTE:'',VIDEO_VOLUME:'',VIDEO_VOLUME_MUTE:'',CHAT:'',CHAT_MUTE:'',PRODUCT_MUTE:'',PRODUCT:''};return r=e.buttonName,n=e.isMute,l=e.isHidden,o=e.onClick,t=e.buttonView,s=c[r],t.innerHTML=s,a.Z.registerInteractiveElement(t,1),l&&i.Z.addClass(t,"gis-hide"),n&&(i.Z.addClass(t,"gis-disabled"),i.Z.changeSvg(t,c[r+"_MUTE"])),t.onclick=function(){n?(i.Z.removeClass(t,"gis-disabled"),i.Z.changeSvg(t,c[r])):(i.Z.addClass(t,"gis-disabled"),i.Z.changeSvg(t,c[r+"_MUTE"])),n=!n,o()},{mute:function(){i.Z.changeSvg(t,c[r+"_MUTE"]),n=!0},unMute:function(){i.Z.changeSvg(t,c[r]),n=!1}}}},5671:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(9036),a=n(6628),o=n(3203),s=n(69),r=n(7448),l=n(7383),c=n(861);function d(e){var t,n,d,u=e,_={};_._uiConfig=a.Z.getUiConfig(),_.CTA_AWARENESS_RESHOW_DURATION=_._uiConfig&&_._uiConfig.ctaAwarenessMessage.reshowDuration||1,_.customAwarenessMessage=_._uiConfig.theme.awarenessMessage;var C={Large:"gis-cta-awareness-container-l",Medium:"gis-cta-awareness-container-m",Small:"gis-cta-awareness-container-s"};function g(e,a){if(u=e,_.customAwarenessMessage&&_.customAwarenessMessage.enabled?(n.querySelector("svg circle").style.fill=_.customAwarenessMessage.closeButtonBackgroundColor,n.querySelector("svg polygon").style.stroke=_.customAwarenessMessage.closeButtonIconColor):(n.querySelector("svg circle").style.fill=u.closeButton&&u.closeButton.circleColor||"white",n.querySelector("svg polygon").style.stroke=u.closeButton&&u.closeButton.crossColor||"black"),n.querySelector("svg polygon").style.strokeWidth=u.closeButton&&u.closeButton.crossWidth||"30",o.Z.addClass(d,C[u.ctaSize]),i.Z.isMobileDevice()&&(t.style.maxWidth="200px"),u.messages&&0!==u.messages.length){t.innerHTML="";for(var s=0;s1){var l=t.children[t.children.length-1];"right"===u.position?l.style.margin="15px 35px 0px 0px":"left"===u.position&&(l.style.margin="15px 0px 0px 35px"),l.style.fontSize="16px",l.style.cursor="pointer",t.firstChild.style.cursor="pointer",_.customAwarenessMessage&&_.customAwarenessMessage.enabled?(l.style.color=_.customAwarenessMessage.messageCallLabelColor,l.style.fontWeight=_.customAwarenessMessage.messageCallLabelWeight):l.style.color=u.roundelColor}a&&A()&&p()}function E(e){e&&(r.Z.setItem(r.Z.storageKeys.CTA_AWARENESS_MESSAGE_CLOSED,s.Z.getTimeWithOutMilliSeconds()),l.Z.logEvent(l.Z.GIS_EVENTS.CTA_AWARENESS_MESSAGE_CLOSED,{message:u.messages.join(" ")}),u.setRoundelCloseButton(!0)),d.style.display="none"}function A(){return"flex"===d.style.display}function p(){var e;u.isAvailable&&"clerk"===u.ctaMode?e=l.Z.GIS_EVENTS.CALL_CTA_AWARENESS_MESSAGE_SHOWN:u.isAvailable||"clerk"!==u.ctaMode?"replay"===u.ctaMode?e=l.Z.GIS_EVENTS.REPLAY_CTA_AWARENESS_MESSAGE_SHOWN:"broadcast"===u.ctaMode&&(e=l.Z.GIS_EVENTS.BROADCAST_CTA_AWARENESS_MESSAGE_SHOWN):e=l.Z.GIS_EVENTS.CTA_AWARENESS_CLERK_UNAVAILABLE_MESSAGE_SHOWN,l.Z.logEvent(l.Z.GIS_EVENTS[e],{message:u.messages.join(" ")})}return{render:function(){return d=o.Z.processView(a.Z.getViews().ctaAwarenessView,{},!1),t=d.querySelector("#gis-awareness-msg-container"),c.Z.registerInteractiveElement(t),n=d.querySelector("#gis-cta-awareness-close"),c.Z.registerInteractiveElement(n),o.Z.addClass(d,u.position),o.Z.addClass(t,u.position),o.Z.addClass(n,u.position),_.customAwarenessMessage&&_.customAwarenessMessage.enabled&&(t.style.backgroundColor=_.customAwarenessMessage.messageBackgroundColor,t.style.borderColor=_.customAwarenessMessage.messageBorderColor),n.onclick=E.bind(null,!0),g(u,!1),d},hide:E,show:function(){var e=Date.parse(r.Z.getItem(r.Z.storageKeys.CTA_AWARENESS_MESSAGE_CLOSED));Number.isNaN(e)||s.Z.dateDifferenceInDays(e,new Date)>=_.CTA_AWARENESS_RESHOW_DURATION?(d.style.display="flex",p(),u.setRoundelCloseButton(!1)):u.setRoundelCloseButton(!0)},isDisplayed:A,setup:g,setAwarenessMessageOnClickEvent:function(e){var n;u.isAvailable&&"clerk"===u.ctaMode?n=l.Z.GIS_EVENTS.CALL_CTA_AWARENESS_ACTION_MESSAGE_CLICKED:u.isAvailable||"clerk"!==u.ctaMode?"broadcast"===u.ctaMode?n=l.Z.GIS_EVENTS.BROADCAST_CTA_AWARENESS_ACTION_MESSAGE_CLICKED:"replay"===u.ctaMode&&(n=l.Z.GIS_EVENTS.REPLAY_CTA_AWARENESS_ACTION_MESSAGE_CLICKED):n=l.Z.GIS_EVENTS.CTA_AWARENESS_ACTION_CLERK_UNAVAILABLE_CLICKED,t.onclick=function(t){l.Z.logEvent(l.Z.GIS_EVENTS[n],{message:u.messages.join(" ")}),e.call(this,t)}}}}},1056:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(6628),a=n(3203),o=n(7383),s=n(2342),r=n(861);function l(e){var t,n,l,c,d=e,u={};u._uiConfig=i.Z.getUiConfig(),u._gisTheme=u._uiConfig.theme,u.customAwarenessMessage=u._gisTheme.awarenessMessage;var _=1e3*u._uiConfig.ctaBarMessage.slideOutDelay,C=1e3*u._uiConfig.ctaBarMessage.slideShowTimeOut+_,g=u._gisTheme?u._gisTheme.foregroundColor:"#fff",E=u._gisTheme?u._gisTheme.backgroundColor:"#000",A=u._uiConfig.ctaSize;function p(e){var t,o;n.style.color=g,n.innerHTML=(t=i.Z.getLabels().barCta_message,o=i.Z.getLabels().awarenessCta_message,s.ZP.isCtaCustomMessage()&&o&&o.length<30?o:t),"Small"===A?a.Z.addClass(e.ctaContainer,"gis-cta-bar-s"):a.Z.addClass(e.ctaContainer,"gis-cta-bar-m")}function T(){a.Z.addClass(d.ctaContainer,"gis-cta-bar-main-container"),a.Z.addClass(t,"gis-cta-bar--container-animate"),u.customAwarenessMessage&&u.customAwarenessMessage.enabled?(d.ctaContainer.style.backgroundColor=u.customAwarenessMessage.messageBackgroundColor,d.ctaContainer.style.border="1px solid"+u.customAwarenessMessage.messageBorderColor,n.style.color=g):(d.ctaContainer.style.backgroundColor=E,n.style.color=g)}function S(){setTimeout(m,500),a.Z.removeClass(t,"gis-cta-bar--container-animate")}function m(){a.Z.removeClass(d.ctaContainer,"gis-cta-bar-main-container"),d.ctaContainer.style.backgroundColor="transparent"}return{render:function(){return t=a.Z.processView(i.Z.getViews().ctaBarView,{},!1),n=t.querySelector("#gis-bar-msg-container"),p(d),r.Z.registerInteractiveElement(t),r.Z.registerInteractiveElement(n),t},setOnClick:function(e){t.onclick=function(t){e(t),o.Z.logEvent(o.Z.GIS_EVENTS.CTA_BAR_MESSAGE_CLICKED)}},setup:p,hide:function(){clearTimeout(l),clearTimeout(c),S()},show:function(){l=setTimeout(T,_),c=setTimeout(S,C)}}}},6243:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var i=n(6628),a=n(3203),o=n(9036),s=n(5671),r=n(1056),l=n(7383),c=n(7448),d=n(69),u=n(5940),_=n(9656),C=n(2342),g=n(1986),E=n(861);function A(e){var t,n,A,p,T,S,m,v,f,I,L={},b=null,y="none",O=null,h=!1,Z=!1,N=null,w=null,R=2,D={Medium:"gis-cta-m",Small:"gis-cta-s"},P=i.Z.getUiConfig(),U=P.ctaSize,M="gis-cta-advisor-image";function B(t){if(!d.Z.areObjectsEqual(L,t)){var l,u;if(y=t.ctaMode,L=t,!i.Z.getSystemConfig()||!i.Z.getSystemConfig().isRoundelCloseButton||"clerk"!==y||(l=Date.parse(c.Z.getItem(c.Z.storageKeys.CTA_ROUNDEL_CLOSED)),Number.isNaN(l)||d.Z.dateDifferenceInDays(l,new Date)>=1)||(n.style.display="none"),"broadcast"===y?(p.style.display="block",f.style.display="none"):(p.style.display="none",f.style.display="block"),L.isAwarenessMessageEnabled&&L.isBarMessageEnabled?(u={ctaContainer:n,position:L.position},I||(I=new r.Z(u),n.appendChild(I.render()),I.setup(u),a.Z.addClass(A,"gis-cta-bar-position"))):L.isAwarenessMessageEnabled&&!L.isBarMessageEnabled&&function(){var e={position:L.position,roundelColor:L.roundelColor,closeButton:{circleColor:L.roundelColor,crossColor:"#FFF"},messages:L.ctaMessage,setRoundelCloseButton:x,ctaSize:U,isAvailable:L.isAvailable,ctaMode:y,ctaContainer:n};if(O)O.setup(e,!0);else{var t=(O=new s.Z(e)).render();n.appendChild(t)}"right"===L.position?n.style.flexDirection="row-reverse":n.style.flexDirection="row"}(),V(),t.showAvailabilityIndicator?(T.style.display="block",t.isAvailable?(a.Z.removeClass(T,"unavailable"),a.Z.addClass(T,"available")):(a.Z.removeClass(T,"available"),a.Z.addClass(T,"unavailable"))):T.style.display="none","right"===t.position?T.style.right="0px":T.style.left="0px",e.roundelColor&&(A.style.borderColor=e.roundelColor,A.style.boxShadow="0 0px 0px 0 "+e.roundelColor),e.roundelImage){var C="#"+M+" {\n background-image:"+a.Z.getImageUrl(e.roundelImage)+";\n}";P.cta.imageFormatOverride.enabled&&(C+=" #"+M+".webp{\n background-image:"+a.Z.getImageUrl(a.Z.overrideImageFormat(e.roundelImage,P.cta))+";\n}",a.Z.addClass(m,"webp"),_.Z.isWebpSupported(function(e,t,n){n||t.removeClass(e,"webp")}.bind(null,m,a.Z))),a.Z.styleSheetInjector(C,m)}L.isAnimated&&L.isAvailable?(P.theme?v.style.backgroundColor=P.theme.mainColor:v.style.backgroundColor="#02DE98","video"===P.cta.animation.iconType?v.innerHTML='':v.innerHTML=' ',o.Z.isMobileDevice()||o.Z.isIPad()?A.style.padding="1px":A.style.padding="2px",A.style.backgroundImage="none",a.Z.removeClass(v,"gis-hide"),a.Z.addClass(v,"gis-cta-image-animation"),a.Z.addClass(m,"gis-cta-image-animation-reverse"),Z=!0,b=setTimeout(H,L.isBarMessageEnabled?6e3:3e4)):(b&&clearTimeout(b),H()),t.isCtaOnBroadcast&&(a.Z.addClass(A,"in-shopstream"),a.Z.addClass(T,"in-shopstream"),o.Z.isPhoneOrTablet()&&(a.Z.addClass(A,"gis-mobile"),a.Z.addClass(T,"gis-mobile"))),t.isFloater&&(A.style.position="relative",n.style.position="relative",n.style.margin="0px",n.style.top="0",n.style.bottom="0",n.style.left="0",n.style.right="0")}}function k(){N&&clearTimeout(N),N=null,O&&O.isDisplayed()&&O.hide()}function V(){var e;I&&L.isBarMessageEnabled?(I.show(),k()):O&&L.isAwarenessMessageEnabled?(w&&clearTimeout(w),N=setTimeout((function(){O.isDisplayed()||O.show(),L.awarenessMessageHideTimeout&&(w=setTimeout(k,L.awarenessMessageHideTimeout)),h=!0}),1e3*((e=P.ctaAwarenessMessage.delay)&&e.enabled&&!h?o.Z.isMobileDevice()?e.mobile:e.desktop:R))):(x(!0),k(),I&&I.hide())}function G(){c.Z.setItem(c.Z.storageKeys.CTA_ROUNDEL_CLOSED,d.Z.getTimeWithOutMilliSeconds()),l.Z.logEvent(l.Z.GIS_EVENTS.CTA_ROUNDEL_CLOSED),n.style.display="none"}function x(e){i.Z.getSystemConfig()&&i.Z.getSystemConfig().isRoundelCloseButton&&"clerk"===y&&(e?(n.style.flexDirection="column",S.style.float="left"===L.position?"left":"right",S.style.display="initial"):(n.style.flexDirection="right"===L.position?"row-reverse":"row",S.style.display="none"))}function H(){a.Z.removeClass(v,"gis-cta-image-animation"),a.Z.addClass(v,"gis-hide"),a.Z.removeClass(m,"gis-cta-image-animation-reverse"),Z=!1}return{render:function(){if(t=a.Z.processView(i.Z.getCtaRoundelView(),{ctaPreview:!1,ctaMessage:!1}),n=t.querySelector("#gis-cta-container"),S=t.querySelector("#gis-roundel-close-button"),E.Z.registerInteractiveElement(S),A=t.querySelector("#gis-cta"),E.Z.registerInteractiveElement(A,e.tabindex?e.tabindex:0),p=t.querySelector("#gis-cta-status-container"),T=t.querySelector("#gis-cta-indicator"),m=t.querySelector("#"+M),v=t.querySelector("#gis-cta-call-icon-image"),f=t.querySelector("#gis-cta-image-container"),S.onclick=G,o.Z.isMobileDevice()&&!e.isCtaOnBroadcast){var s=D[U];s||(u.Z.warn("ctaComponent","Failed to find valid ctaSize. Medium size will be used as fallback",P),s=D[U="Medium"]),a.Z.removeClass(A,"gis-cta-l"),a.Z.addClass(A,s)}else U="Large";return B(e),t},setup:B,show:V,hide:k,setRoundelCloseButton:x,setOnClickForAwarenessMessage:function(e){O&&O.setAwarenessMessageOnClickEvent(e)},setOnClick:function(e){"function"==typeof e&&(A.onclick=function(t){var n=t;n.isAnimationInProgress=Z,e.call(this,n);var i=o.Z.isMobileDevice()?P.ctaSize:"Large";"clerk"===y?C.ZP.getClerkAvailability()?(l.Z.logEvent(l.Z.GIS_EVENTS.CALL_CTA_CLICK,{ctaSize:i,isCtaAnimationInProgress:n.isAnimationInProgress}),g.Z.sendAnalyticsEvent(g.Z.ANALYTICS_EVENTS.CALL_CTA_CLICK,{ctaSize:i})):(l.Z.logEvent(l.Z.GIS_EVENTS.CALL_CTA_CLICK_UNAVAILABLE,{ctaSize:i}),g.Z.sendAnalyticsEvent(g.Z.ANALYTICS_EVENTS.CALL_CTA_CLICK_UNAVAILABLE,{ctaSize:i})):"broadcast"===y?(l.Z.logEvent(l.Z.GIS_EVENTS.BROADCAST_CTA_CLICK,{ctaSize:i}),g.Z.sendAnalyticsEvent(g.Z.ANALYTICS_EVENTS.BROADCAST_CTA_CLICK,{ctaSize:i})):"replay"===y&&(l.Z.logEvent(l.Z.GIS_EVENTS.BROADCAST_REPLAY_CTA_CLICK,{ctaSize:i}),g.Z.sendAnalyticsEvent(g.Z.ANALYTICS_EVENTS.BROADCAST_REPLAY_CTA_CLICK,{ctaSize:i}))})},setOnClickForBarMessage:function(e){I&&I.setOnClick(e)}}}},4765:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(3203),a=n(6628),o=n(2946),s=n(861);function r(e){var t={};return t.props=e,t.validatingEmail=!1,t.invalidColor="#6d2225",t.render=function(){return t.components={},t.view=i.Z.processView(a.Z.getViews().textFieldView,{},!0),t.components.container=t.view.querySelector("#gis-input-container-v2"),t.components.inputBox=t.view.querySelector("#gis-field-input"),t.components.labelText=t.view.querySelector("#gis-email-error-text"),t.components.button=t.view.querySelector("#gis-textfield-button"),s.Z.registerInteractiveElement(t.components.inputBox,1),s.Z.registerInteractiveElement(t.components.button,1),t.components.inputBox.placeholder=e.textBoxPlaceHolder,t.components.labelText.innerHTML=e.textBoxLabel,t.components.labelText.style.visibility="hidden",t.components.button.onclick=t.submit,t.components.button.style.background=i.Z.getImageUrl("right-caret.svg")+" no-repeat center / 50% 50%",t.components.inputBox.style.animation="1s gis-fade-in forwards",t.components.button.style.animation="1s gis-fade-in forwards",window.addEventListener("keyup",t._pressEnterKey),t.components.inputBox.oninput=function(){t.validatingEmail&&t.validateEmail()},t.view},t.getText=function(){return t.components.inputBox.value},t.validateEmail=function(){return o.Z.validateEmail(t.getText().toLowerCase().trim())?(t.components.button.style.backgroundColor="",t.components.button.style.borderColor="",t.components.labelText.style.visibility="hidden",!0):(t.components.button.style.backgroundColor=t.invalidColor,t.components.button.style.border="3px solid"+t.invalidColor,t.components.button.style.filter="brightness(2)",t.components.labelText.style.visibility="visible",t.validatingEmail=!0,!1)},t._pressEnterKey=function(e){e.preventDefault(),13===e.keyCode&&t.submit()},t.submit=function(){t.validateEmail()&&(t.components.labelText.style.visibility="hidden",window.removeEventListener("keyup",t._pressEnterKey),e.buttonClick&&"function"==typeof e.buttonClick&&e.buttonClick())},t.disableButton=function(){t.components.button.style.cursor="unset"},t.enableButton=function(){t.components.button.style.cursor="pointer"},t.showError=function(e){t.components.labelText.innerHTML=e,t.components.labelText.style.visibility="visible"},{render:t.render,getText:t.getText,showError:t.showError,disableButton:t.disableButton,enableButton:t.enableButton}}},2970:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(6628),a=n(3203),o=n(2342),s=n(9036),r=n(7383),l=n(6451),c=n(1477),d=n(861);function u(e){var t={},n={},u=i.Z.getUiConfig();function _(e,i){var s,d=i;d||(d=0),e.exitAnimation&&(t.content.style.animation="0.5s gis-slide-to-left forwards"),setTimeout((function(){if(e.cancelButtonSetupFunction&&e.cancelButtonSetupFunction(),e.extraSetupFunction&&e.extraSetupFunction(),e.mainText&&e.mainText.text?(t.mainText.innerHTML=e.mainText.text,t.mainText.style.display="block",e.mainText.class&&a.Z.addClass(t.mainText,e.mainText.class)):t.mainText.style.display="none",e.mainSubText?(t.mainSubText.innerHTML=e.mainSubText,t.mainSubText.style.display="block"):t.mainSubText.style.display="none",e.secondaryText?(t.secondaryText.innerHTML=e.secondaryText,t.secondaryText.style.display="block"):t.secondaryText.style.display="none",e.topImage?(t.topImage.style.background=a.Z.getImageUrl(e.topImage)+" no-repeat center center / contain",t.topImage.style.display="block"):t.topImage.style.display="none",e.centerImage?(e.centerImage.filename&&(t.centerImage.style.background=a.Z.getImageUrl(e.centerImage.filename)+" no-repeat center center / contain"),t.centerImage.style.display="block",e.centerImage.height&&(t.centerImage.style.height=e.centerImage.height),e.centerImage.class&&a.Z.addClass(t.centerImage,e.centerImage.class)):e.centerImageView?(e.centerImageView.content&&a.Z.appendView(t.centerImage,e.centerImageView.content),e.centerImageView.class&&a.Z.addClass(t.centerImage,e.centerImageView.class)):t.centerImage.style.display="none",e.button?(n.button.setup({buttonLabel:e.button.label,buttonImage:e.button.image,buttonClass:e.button.class,onClick:e.button.onclick,eventName:e.button.eventName,eventData:e.button.eventData,isResponsive:e.button.isResponsive,responseLabel:e.button.responseLabel}),n.button.show()):n.button.hide(),e.secondaryButtonLabel&&e.secondaryButtonLabel.text){var i=document.createElement("div");s=t.supportInfoLink.parentNode,a.Z.addClass(i,e.secondaryButtonLabel.class),i.innerHTML=e.secondaryButtonLabel.text,s.insertBefore(i,t.supportInfoLink)}if(e.secondaryButton&&(n.secondaryButton=new l.Z({}),a.Z.appendBefore(t.contentContainer,n.secondaryButton.render(),t.supportInfoLink),n.secondaryButton.setup({buttonLabel:e.secondaryButton.label,buttonImage:e.secondaryButton.image,buttonClass:e.secondaryButton.class,onClick:e.secondaryButton.onclick,eventName:e.secondaryButton.eventName,eventData:e.secondaryButton.eventData,isResponsive:e.secondaryButton.isResponsive,responseLabel:e.secondaryButton.responseLabel}),n.secondaryButton.show()),u&&u.supportInfoLink&&e.linkText){var d=c.Z.getSupportInfoUrl(u.supportInfoLink,o.ZP.getLocale());d&&(t.supportInfoLink.innerHTML=e.linkText,t.supportInfoLink.onclick=function(){r.Z.logEvent(r.Z.GIS_EVENTS.SUPPORT_INFO_LINK_CLICKED),window.open(d,"_blank")})}else t.supportInfoLink.style.display="none";if(e.tertiaryButtonLabel&&e.tertiaryButtonLabel.text){var _=document.createElement("div");s=t.supportInfoLink.parentNode,a.Z.addClass(_,"emp-chat-button-label"),_.innerHTML=e.tertiaryButtonLabel.text,s.insertBefore(_,t.supportInfoLink)}e.tertiaryButton&&(n.tertiaryButton=new l.Z({}),a.Z.appendBefore(t.contentContainer,n.tertiaryButton.render(),t.footer),n.tertiaryButton.setup({buttonLabel:e.tertiaryButton.label,buttonImage:e.tertiaryButton.image,buttonClass:e.tertiaryButton.class,onClick:e.tertiaryButton.onclick,eventName:e.tertiaryButton.eventName,eventData:e.tertiaryButton.eventData,isResponsive:e.tertiaryButton.isResponsive,responseLabel:e.tertiaryButton.responseLabel}),n.tertiaryButton.show()),e.chatLiveButton&&(n.chatLiveButton=new l.Z({}),a.Z.appendBefore(t.contentContainer,n.chatLiveButton.render(),t.supportInfoLink),n.chatLiveButton.setup({buttonLabel:e.chatLiveButton.label,buttonImage:e.chatLiveButton.image,buttonClass:e.chatLiveButton.class,onClick:e.chatLiveButton.onclick,eventName:e.chatLiveButton.eventName,eventData:e.chatLiveButton.eventData,isResponsive:e.chatLiveButton.isResponsive,responseLabel:e.chatLiveButton.responseLabel}),n.chatLiveButton.show()),e.footerText?(t.footer.onclick=function(){r.Z.logEvent(r.Z.GIS_EVENTS.DISCLAIMER_CLICKED)},t.footer.innerHTML=e.footerText):t.footer.style.display="none",e.connectingScreenDisclaimerText?t.connectingDisclaimer.innerText=e.connectingScreenDisclaimerText:t.connectingDisclaimer.style.display="none","fadein"===e.enterAnimation&&(t.content.style.animation="2s gis-fade-in forwards"),"slide"===e.enterAnimation&&(t.content.style.animation="0.5s gis-slide-from-right forwards"),"fullscreen"===e.enterAnimation&&(t.content.style.height="100%",t.content.style.width="100%",t.content.style.overflow="hidden",t.content.style.animation="2s gis-fade-in forwards"),e.padding&&(t.content.style.padding=e.padding)}),d)}return{subviews:t,components:n,setup:_,render:function(){var o=a.Z.processView(i.Z.getViews().modalContentView,{},!0);return t.content=o.querySelector("#gis-connectv3-content"),t.contentContainer=o.querySelector("#gis-connectv3-content-container"),t.mainText=o.querySelector("#gis-connectv3-mainText"),t.mainSubText=o.querySelector("#gis-connectv3-mainSubText"),t.secondaryText=o.querySelector("#gis-connectv3-secondaryText"),t.topImage=o.querySelector("#gis-connectv2-image"),t.centerImage=o.querySelector("#gis-connectv2-center-image"),t.centerImageLabel=o.querySelector("#gis-connectv2-center-image-label"),t.supportInfoLink=o.querySelector("#gis-connectv3-link"),d.Z.registerInteractiveElement(t.supportInfoLink,1),t.footer=o.querySelector("#gis-connectv3-footer"),t.connectingFooter=o.querySelector("#gis-connectingv3-footer"),t.connectingDisclaimer=o.querySelector("#gis-connectingv3-disclaimer"),n.button=new l.Z({}),a.Z.appendBefore(t.contentContainer,n.button.render(o),t.supportInfoLink),s.Z.isMobileDevice()&&Object.keys(t).forEach((function(e){a.Z.addClass(t[e],"gis-mobile")})),_(e),o},hide:function(){t.content&&(t.content.style.display="none")},show:function(){t.content&&(t.content.style.display="initial")}}}},1407:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var i=n(6628),a=n(3203),o=n(9036),s=n(9656);function r(e){var t,n,o,s=[],r=0;function l(e){var t=s[r],n=s[e];t&&n&&(t.setAttribute("r",2.5),n.setAttribute("r",4),r=e)}return{render:function(){t=a.Z.processView(i.Z.getViews().stepsView,{},!0),n=t.querySelector("#gis-steps"),o=t.querySelector("#gis-steps-svg");for(var r=0;r0&&(n.steps=new r({stepNumber:e.steps}),a.Z.appendView(t.footer,n.steps.render())),I(e.title),t.closeButton.onclick=function(){e.eventName&&l.Z.logEvent(e.eventName+l.Z.GIS_ACTIONS.CLOSED,e.eventData?e.eventData:null),g.forEach((function(e){e()})),E()},e.child&&A(e.child,e.extraProps),o.Z.isMobileDevice()&&(a.Z.addClass(t.modal,"gis-mobile"),a.Z.addClass(t.poweredByGis,"gis-mobile"),a.Z.addClass(t.disclaimer,"gis-mobile"),(s.Z.isChrome()||s.Z.isSafari())&&(y(),window.addEventListener("resize",y,!1)),p.gisBranding&&n.steps&&n.steps.hide()),p.supportInfoLink){var m=c.Z.getSupportInfoUrl(p.supportInfoLink,d.ZP.getLocale());t.infoButton.style.background=a.Z.getImageUrl("info-logo.svg")+" center center / 27px no-repeat",m&&(t.infoButton.onclick=function(){l.Z.logEvent(l.Z.GIS_EVENTS.SUPPORT_INFO_LINK_CLICKED),window.open(m,"_blank")})}return t.background.style.animation="1s gis-fade-in forwards",t.outer.style.display="table",window.dispatchEvent(new GisCustomEvent("gisUIOpen")),T},getChild:function(){return n.child},updateChild:A,setTitle:I,hide:E,isVisible:function(){return _}}}},9034:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var i=n(6628),a=n(9036),o=n(3203),s=n(319),r=n(1638),l=n(69),c=n(2342),d=n(7383),u=n(8797),_=n(5940),C=n(861);function g(e){var t,n,g,E,A,p,T,S,m,v,f,I,L,b,y,O,h,Z,N=e,w="videoPlayerComponent",R=!1,D=!0,P=!0,U=!1,M=!1,B=!1,k=!1,V=.85,G="gis-message-indicator",x={};N.hideControls=Array.isArray(N.hideControls)?N.hideControls:[];var H=15,K=[{id:"gis-vc-play",type:"switch",name:"PLAY",click:function(){return v&&v.paused?J():X(),null}},{id:"gis-vc-vol",type:"button",name:r.Z.VIDEO_CONTROLS.VOLUME}],W=[{id:"gis-vc-product",type:"switch",name:r.Z.VIDEO_CONTROLS.PRODUCT,click:function(){d.Z.logEvent(d.Z.GIS_EVENTS.SHOP_STREAM_PRODUCT_CAROUSEL_BUTTON_CLICKED),P=!P,N.onProductClick(P),P?d.Z.logEvent(d.Z.GIS_EVENTS.PRODUCT_CAROUSEL_SHOWN_ON_SHOP_STREAM):d.Z.logEvent(d.Z.GIS_EVENTS.PRODUCT_CAROUSEL_HIDDEN_ON_SHOP_STREAM)}},{id:"gis-vc-chat",type:"switch",name:r.Z.VIDEO_CONTROLS.CHAT,click:te},{id:"gis-vc-fs",type:"switch",name:r.Z.VIDEO_CONTROLS.FULL_SCREEN,click:ee}];h=[{id:"gis-vc-timebar-start-time",type:"text",name:r.Z.TIME_TYPES.START}],Z=[{id:"gis-vc-timebar-end-time",type:"text",name:r.Z.TIME_TYPES.END}],K.push({id:"gis-vc-time",type:"text",name:r.Z.TIME_TYPES.BOTH});var F={PRODUCT:'',CHAT:'',CHAT_WITH_MESSAGE:'',VIDEO_VOLUME:'',VIDEO_VOLUME_MUTE:''},Y=i.Z.getLabels().shopStream_live_indicator;function q(){return Number(E.style.width.replace("%",""))}function $(){return a.Z.isMobileDevice()||a.Z.isIPad()&&u.Z.getOrientation().match(/portrait/)}function j(e,t){Object.keys(t).forEach((n=>{var i=t[n];i&&(N.hideControls.includes(i.name)||e.appendChild(function(e){var t=o.Z.createElementWithAttributes("div",e.id,"gis-content-align gis-controls");return $()||o.Z.addClass(t,"gis-desktop"),"button"===e.type&&function(e,t){var n=e;n=function(e,t){var n=e;if(t.name!==r.Z.VIDEO_CONTROLS.VOLUME)return n.innerHTML=F[t.name],n;var i=o.Z.createElementWithAttributes("div","gis-vol-icon","gis-content-align gis-controls");return $()||o.Z.addClass(i,"gis-desktop"),i.innerHTML=F[t.name],i.onclick=Q,C.Z.registerInteractiveElement(e,1,(()=>{e.dispatchEvent(new Event("click")),Q()})),e.appendChild(i),function(e){var t=e,n=o.Z.createElementWithAttributes("div","gis-volume-slider","gis-content-align");n.innerHTML='
',t.appendChild(n),L=t.querySelector("#gis-vol-progress-bar");var i=t.querySelector("#gis-volume");b=n.querySelector("#gis-slider"),t.querySelector("#gis-vol-icon").onmouseover=se,i.onclick=function(e){var t=document.getElementById("gis-player-container"),i=t.querySelector("#gis-player-left-pane");oe(e,n.offsetLeft+t.offsetLeft+i.offsetLeft+b.offsetWidth)},b.onmousedown=function(e){y=e.pageX-b.offsetLeft,U=!0,M=!0},b.onmousemove=re,i.onmousemove=re,i.onmouseover=function(){B=!0},i.onmousedown=function(){M=!0},i.onmouseup=function(){M=!1},n.onmousemove=function(e){(U||M)&&re(e)},n.onmouseup=se,t.onmouseover=function(){$()?n.style.display="none":(t.style.width="130px",n.style.display="inline-flex")},t.onmouseout=function(){n.style.display="none",t.style.width="50px"}}(e),e}(n,t),n.onclick=z.bind(null,t),t.name!==r.Z.VIDEO_CONTROLS.VOLUME&&C.Z.registerInteractiveElement(n,1)}(t,e),"switch"===e.type&&function(e,t){var n=new s.Z({buttonView:e,buttonName:t.name,onClick:z.bind(null,t),isMute:!1});x[t.name]=n}(t,e),"text"===e.type&&function(e,t){ie(e,t.name),t.name!==r.Z.TIME_TYPES.START&&t.name!==r.Z.TIME_TYPES.END||e.classList.remove("gis-controls")}(t,e),t}(i)))}))}function z(e){var t=N[e.name];t&&"function"===t.onClick&&t.onClick(),"function"==typeof e.click&&e.click()}function J(e){if(v)if(k){var t=v.play();t&&t.then((function(){pe()})).catch((function(t){_.Z.error(w,"Error Playing video...",t),function(e){if(k){e&&Q();var t=v.play();t&&t.then((function(){pe(),"function"==typeof e&&e&&v.muted&&e(Q)})).catch((function(e){_.Z.error(w,"Error AutoPlaying video...",e)}))}}(e)}))}else v.addEventListener("loadedmetadata",(function(){k=!0,J(e)}))}function X(){v&&v.pause()}function Q(){var e=t.querySelector("#gis-vc-vol").querySelector("#gis-vol-icon");v.muted=!v.muted,v.muted?(e.innerHTML=F.VIDEO_VOLUME_MUTE,b.style.left="0%",L.style.width="0%",v.volume=0):(e.innerHTML=F.VIDEO_VOLUME,b.style.left=100*V-2+"%",L.style.width=100*V+"%",v.volume=V)}function ee(){d.Z.logEvent(d.Z.GIS_EVENTS.SHOP_STREAM_FULL_SCREEN_BUTTON_CLICKED),R?(N.initialScreen(),R=!1):(N.onFullScreen(),R=!0)}function te(){d.Z.logEvent(d.Z.GIS_EVENTS.SHOP_STREAM_CHAT_BUTTON_CLICKED),D=!D,N.onChatClick(D),D?d.Z.logEvent(d.Z.GIS_EVENTS.CHAT_SHOWN_ON_SHOP_STREAM):d.Z.logEvent(d.Z.GIS_EVENTS.CHAT_HIDDEN_ON_SHOP_STREAM)}function ne(){return"BROADCAST_PLAYING"===c.ZP.getCurrentPhase()||"BROADCAST_START"===c.ZP.getCurrentPhase()}function ie(e,t,n){var i=e;e&&(n&&(n.duration||n.attributes&&n.attributes.duration)?function(e,t,n){var i=n,a=function(e){if(!e)return!1;var t=l.Z.getTimeFromSeconds(e.currentTime),n=l.Z.getTimeFromSeconds(e.duration||e.attributes.duration);return t.second=l.Z.convertInTwoDigits(t.second),n.second=l.Z.convertInTwoDigits(n.second),{CURRENT:t,TOTAL:n}}(t);if(ne()&&t.duration-t.currentTimet.currentTime)i.innerHTML=a.CURRENT.minute+":"+a.CURRENT.second;else switch(e){case r.Z.TIME_TYPES.START:i.innerHTML=a.CURRENT.minute+":"+a.CURRENT.second;break;case r.Z.TIME_TYPES.END:i.innerHTML=t.duration===1/0?"":a.TOTAL.minute+":"+a.TOTAL.second;break;default:i.innerHTML=a.CURRENT.minute+":"+a.CURRENT.second+" / "+a.TOTAL.minute+":"+a.TOTAL.second}}(t,n,i):ne()&&t!==r.Z.TIME_TYPES.END?i.innerHTML=Y:t&&t!==r.Z.TIME_TYPES.BOTH?ne()&&t===r.Z.TIME_TYPES.END?i.innerHTML="":i.innerHTML="0:00":i.innerHTML="0:00 / 0:00")}function ae(){n=t.querySelector("#gis-video"),p=t.querySelector("#gis-progress-bar-icon");var e=t.querySelector("#gis-vc-time"),i=t.querySelector("#gis-vc-timebar-start-time"),a=t.querySelector("#gis-vc-timebar-end-time");ie(e,r.Z.TIME_TYPES.BOTH,n),ie(i,r.Z.TIME_TYPES.START,n),ie(a,r.Z.TIME_TYPES.END,n)}function oe(e,n){g=(e.pageX-n)/b.offsetParent.offsetWidth*100,(V=(g=g<0?0:g)/100)>=.85&&(V=1,M=!1,B=!1),b.style.left=g-2+"%",L.style.width=g+"%",v.volume=V,t.querySelector("#gis-vol-icon").innerHTML=g<=0?F.VIDEO_VOLUME_MUTE:F.VIDEO_VOLUME}function se(){U=!1,M=!1}function re(e){(U||M)&&B&&oe(e,y)}function le(){x[r.Z.VIDEO_CONTROLS.PLAY]&&x[r.Z.VIDEO_CONTROLS.PLAY].mute(),"function"==typeof N.onPlay&&N.onPlay()}function ce(){x[r.Z.VIDEO_CONTROLS.PLAY]&&x[r.Z.VIDEO_CONTROLS.PLAY].unMute(),"function"==typeof N.onPause&&N.onPause()}function de(){"function"==typeof N.onEnded&&N.onEnded()}function ue(){ae()}function _e(){o.Z.removeClass(t,"gis-mobile"),o.Z.addClass(t.querySelector("#gis-video-controls-container"),"gis-desktop"),o.Z.addClass(t.querySelector("#gis-video-controls"),"gis-desktop"),o.Z.addClassOnList(t.querySelectorAll("#gis-video-controls .gis-controls"),"gis-desktop")}function Ce(){setTimeout((function(){!document.fullscreenElement&&R&&(x[r.Z.VIDEO_CONTROLS.FULL_SCREEN].unMute(),ee())}),200)}function ge(){v.textTracks&&v.textTracks[0]&&(v.textTracks[0].mode="hidden")}function Ee(){var e=n.duration;if(e>0)for(var t=0;t0&&(g=n.currentTime/e*100,E.style.width=g+"%",ae(),Se(null,!0))}function pe(){T=document.getElementById("gis-player-container")||document.getElementById("gis-player-video-container"),S=T.querySelector("#gis-player-left-pane")||document.getElementById("gis-video-container"),A=t.querySelector("#gis-video-seek-bar"),m=A.parentElement,n=t.querySelector("#gis-video"),f=t.querySelector("#gis-buffer"),p=t.querySelector("#gis-progress-bar-icon"),n.addEventListener("progress",Ee),n.addEventListener("timeupdate",Ae),m.addEventListener("click",(function(e){Se(e),d.Z.logEvent(d.Z.GIS_EVENTS.PROGRESS_BAR_CLICKED)})),a.Z.isPhoneOrTablet()?p.ontouchstart=function(){m.addEventListener("touchmove",Se),d.Z.logEvent(d.Z.GIS_EVENTS.PROGRESS_BAR_DRAGGED)}:p.onmousedown=function(){m.addEventListener("mousemove",Se),d.Z.logEvent(d.Z.GIS_EVENTS.PROGRESS_BAR_DRAGGED)},m.addEventListener("mouseup",Te),m.addEventListener("mouseleave",Te),p.addEventListener("mouseup",Te),A.addEventListener("mouseup",Te)}function Te(){m.removeEventListener("mousemove",Se),p.removeEventListener("mousemove",Se)}function Se(e,t){if(I=A.offsetLeft+T.getBoundingClientRect().left+S.offsetLeft,!t){if(e.pageX)g=(e.pageX-I)/A.offsetWidth*100;else{var i=e.targetTouches[0];g=(i.pageX-I)/A.offsetWidth*100}n.currentTime=g*n.duration/100,g=g>100?99:g,E.style.width=g+"%"}q()<=.2?(p.style.left="0",p.style.right="auto"):q()>=99?(E.style.width="100%",p.style.left="auto",p.style.right="0"):(p.style.left="100%",p.style.right="auto"),ae(),(q()<=0||q()>=99.9)&&(m.removeEventListener("mousemove",Se),p.removeEventListener("mousemove",Se))}return Y='
'+Y+"
",{render:function(){t=o.Z.processView(i.Z.getViews().videoPlayerView,{}),(v=t.querySelector("#gis-video")).addEventListener("play",le),v.addEventListener("pause",ce),v.addEventListener("loadedmetadata",ue),v.addEventListener("ended",de),v.addEventListener("canplay",(function(){k=!0})),E=t.querySelector("#gis-progress-bar"),E=t.querySelector("#gis-progress-bar"),O=t.querySelector("#gis-video-controls-container");var e=t.querySelector("#gis-video-timebar");return o.Z.addClass(e,"gis-hide"),j(t.querySelector("#gis-vc-left"),K),j(t.querySelector("#gis-vc-right"),W),j(t.querySelector("#gis-vc-timebar-left"),h),j(t.querySelector("#gis-vc-timebar-right"),Z),N.trackFile&&(t.querySelector("#gis-video-track").src=o.Z.getImageUrl(N.trackFile,!0),ge()),_e(),document.addEventListener("fullscreenchange",Ce),O&&(setTimeout((function(){o.Z.addClass(O,"emp-hide-controls")}),3e3),function(){var e,n=t.querySelector("#gis-video-controls-container");function i(){o.Z.addClass(n,"emp-hide-controls")}function a(){clearTimeout(e),o.Z.removeClass(n,"emp-hide-controls"),e=setTimeout(i,3e3)}t.addEventListener("mousemove",a),document.addEventListener("gisUIClosed",(function(){t.removeEventListener("mousemove",a),clearTimeout(e)}))}()),t},setPlayer:function(e){v=e},getPlayer:function(){return v},play:J,pause:X,toggleFullScreen:ee,dispose:function(){document.removeEventListener("fullscreenchange",Ce),v.removeEventListener("play",le),v.removeEventListener("pause",ce),v.removeEventListener("loadedmetadata",ue),v.removeEventListener("ended",de),n&&(n.removeEventListener("progress",Ee),n.removeEventListener("timeupdate",Ae))},toggleChat:te,internalToggleProduct:function(e){P=e,N.onProductClick(P),e?x[r.Z.VIDEO_CONTROLS.PRODUCT]&&x[r.Z.VIDEO_CONTROLS.PRODUCT].unMute():x[r.Z.VIDEO_CONTROLS.PRODUCT]&&x[r.Z.VIDEO_CONTROLS.PRODUCT].mute()},internalToggleChat:function(e){D=e,N.onChatClick(D),e?x[r.Z.VIDEO_CONTROLS.CHAT].unMute():x[r.Z.VIDEO_CONTROLS.CHAT].mute()},hideControl:function(e){W.concat(K).forEach((function(n){n.name===e&&t.querySelector("#"+n.id)&&(t.querySelector("#"+n.id).style.display="none")}))},showControl:function(e){W.concat(K).forEach((function(n){n.name===e&&t.querySelector("#"+n.id)&&(t.querySelector("#"+n.id).style.display="flex")}))},showMessageIndicator:function(){o.Z.show(G,"flex")},updateMessageIndicatorCounter:function(e){t.querySelector("#"+G).innerText=e},callChatButtonOnClick:function(){t.querySelector("#gis-vc-chat").click()},setupUiForDesktop:_e,setupUiForMobile:function(){o.Z.addClass(t,"gis-mobile"),o.Z.removeClass(t.querySelector("#gis-video-controls-container"),"gis-desktop"),o.Z.removeClass(t.querySelector("#gis-video-controls"),"gis-desktop"),o.Z.removeClassOnList(t.querySelectorAll("#gis-video-controls .gis-controls"),"gis-desktop")},hideVideoContainer:function(){t.querySelector("#gis-video-controls-container").style.display="none"},showCaptions:function(){v.textTracks&&v.textTracks[0]&&(v.textTracks[0].mode="showing")},hideCaptions:ge,hideProgressBar:function(){A=t.querySelector("#gis-video-seek-bar"),o.Z.addClass(A,"gis-hide")}}}},8437:(e,t,n)=>{"use strict";var i;function a(e){return/iPhone/.test(e)}function o(e){var t=/iPad/.test(e)||function(e){try{return e.includes("Mac")&&"ontouchend"in document}catch(e){return!1}}(e);return t}n.d(t,{Z:()=>s});const s={parse:function(e){return i={version:-1,name:"unknown"},function(e){if(e=e||window.navigator,i.userAgent=e.userAgent.toLowerCase(),i.name="unknown",i.userAgent.indexOf("opera")>-1||i.userAgent.indexOf("opr/")>-1)i.name="Opera",i.isOpera=!0,null!==/opr\/([0-9]{1,}[.0-9]{0,})/.exec(i.userAgent)&&(i.version=parseFloat(RegExp.__1__));else if(i.userAgent.indexOf("firefox")>-1)i.name="Firefox",i.isFirefox=!0,null!==/firefox\/([0-9]{1,}[.0-9]{0,})/.exec(i.userAgent)&&(i.version=parseFloat(RegExp.__1__));else if(i.userAgent.match(/edge?\/(\d+)(?:\.\d+)+$/)){i.name="Edge",i.isEdge=!0;var t=RegExp.__1__;i.version=parseInt(t,10)}else i.userAgent.indexOf("chrome")>-1?(i.name="Chrome",i.isElectron=!1,i.isElectron?i.electronVersion=getElectronVersion(e.userAgent):i.isChrome=!0,null!==/chrome\/([0-9]{1,}[.0-9]{0,})/.exec(i.userAgent)&&(i.version=parseFloat(RegExp.__1__))):e.vendor&&e.vendor.toLowerCase().indexOf("apple")>-1?(i.name="Safari",i.isSafari=!0,i.isiPhone=a(e.userAgent),i.isiPad=o(e.userAgent),i.isiOS=a(n=e.userAgent)||o(n),i.isiOS&&(i.iOSVersion=function(e){var t=e.match(/OS (\d+_\d+).* like Mac/);if(null!==t&&t[1])return parseFloat(t[1].replace("_","."))}(e.userAgent)),(null!==/version\/([0-9]{1,}[.0-9]{0,})/.exec(i.userAgent)||null!==/fxios\/([0-9]{1,}[.0-9]{0,})/.exec(i.userAgent)||null!==/crios\/([0-9]{1,}[.0-9]{0,})/.exec(i.userAgent))&&(i.version=parseFloat(RegExp.__1__))):i.userAgent.indexOf("applewebkit")>-1&&-1===i.userAgent.indexOf("version")&&(i.isIosWebView=!0);var n;i.isChromiumEdge="Edge"===i.name&&i.version>=79,i.isLegacyEdge="Edge"===i.name&&i.version<79,i.isLegacyElectron=i.isElectron&&i.electronVersion<7,i.isLegacyChrome=i.isChrome&&i.version<87,i.isChromium=!!(i.isChrome||i.isChromiumEdge||i.isElectron||i.isOpera),i.isAndroid=i.userAgent.indexOf("android")>-1,i.userAgent=e.userAgent,i.protocol=location.protocol,i.hostName=location.hostName,(-1===i.version||"unknown"===i.name||i.isiOS&&!i.iOSVersion)&&(i.error=!0)}(e),i}}},8268:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i={},a={audio:"audioInput",video:"videoInput",audioinput:"audioInput",videoinput:"videoInput",audiooutput:"audioOutput",audioInput:"audioInput",videoInput:"videoInput",audioOutput:"audioOutput"};i.getInputMediaDevices=function(){return i.getMediaDevices().then((function(e){return e.filter((function(e){return/^(audio|video)Input$/.test(e.kind)}))}))},i.getMediaDevices=function(){return i.hasEnumerateDevicesCapability()?o().then((function(e){return e.map((function(e){return{deviceId:e.deviceId||e.id,label:e.label,kind:a[e.kind]}}))})):Promise.reject(new Error("This browser does not support enumerateDevices APIs"))};var o=function(){return s()()};function s(){if(window.navigator.mediaDevices){var e=window.navigator.mediaDevices;return e.enumerateDevices&&e.enumerateDevices.bind(e)}}i.hasEnumerateDevicesCapability=function(){return"function"==typeof s()};const r={getDevices:function(e){i.getInputMediaDevices().then((function(t){return e(void 0,t)}),e)}}},7274:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8437).Z.parse();const a={checkSystemRequirements:function(){return Number(void 0!==window.WebSocket&&(!((e={firefox:52,chrome:49}[i.name.toLowerCase()])&&e>i.version)&&!i.isIosWebView&&(!(i.isNode||i.isElectron||!((i.isChrome||i.isOpera||i.isChromiumEdge)&&i.version>=74||i.isFirefox&&i.version>=68||i.isSafari&&i.version>=11))||window.navigator.mediaDevices&&window.navigator.mediaDevices.getUserMedia||window.navigator.webkitGetUserMedia||window.navigator.mozGetUserMedia)&&(!("function"!=typeof window.webkitRTCPeerConnection||!window.webkitRTCPeerConnection.prototype.addTrack)||"function"==typeof window.RTCPeerConnection||"function"==typeof window.mozRTCPeerConnection&&i.version>20)));var e}}},7120:(e,t,n)=>{"use strict";function i(e){var t,n,i,a,o,s=e;return{getPublisher:function(){return s},setUpOTPublisherHandler:function(){s.on("videoElementCreated",(function(e){"function"==typeof t&&t(e)})),s.on("streamCreated",(function(e){"function"==typeof n&&n(e)})),s.on("accessAllowed",(function(e){"function"==typeof i&&i(e)})),s.on("accessDenied",(function(e){"function"==typeof a&&a(e)})),s.on("accessDialogOpened",(function(e){"function"==typeof o&&o(e)}))},setVideoElementCreatedHandler:function(e){t=e},setStreamCreatedHandler:function(e){n=e},setAccessAllowedHandler:function(e){i=e},setAccessDeniedHandler:function(e){a=e},setAccessDialogOpenedHandler:function(e){o=e},publishAudio:function(e){s.publishAudio(e)},publishVideo:function(e){s.publishVideo(e)},destroy:function(){s.destroy()},cycleVideo:function(){s.cycleVideo()}}}n.d(t,{Z:()=>i})},4486:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(5940),a=n(4785);function o(e){var t,n,o,s,r,l,c,d,u,_,C,g,E=e,A=[];return{getSession:function(){return E},setUpOTSessionHandlers:function(){E.on("sessionConnected",(function(e){"function"==typeof t&&t(e)})),E.on("sessionDisconnected",(function(e){"function"==typeof n&&n(e)})),E.on("sessionReconnecting",(function(e){"function"==typeof o&&o(e)})),E.on("sessionReconnected",(function(e){"function"==typeof s&&s(e)})),E.on("connectionCreated",(function(e){"function"==typeof r&&r(e)})),E.on("connectionDestroyed",(function(e){"function"==typeof l&&l(e)})),E.on("streamCreated",(function(e){"function"==typeof c&&c(e)})),E.on("streamDestroyed",(function(e){"function"==typeof d&&d(e)})),E.on("signal",(function(e){"function"==typeof u&&u(e)})),E.on("streamPropertyChanged",(function(e){"function"==typeof _&&_(e)})),E.on("archiveStarted",(function(e){"function"==typeof C&&C(e)})),E.on("archiveStopped",(function(e){"function"==typeof g&&g(e)}))},setSessionConnectedHandler:function(e){t=e},setSessionDisconnectedHandler:function(e){n=e},setSessionReconnectingHandler:function(e){o=e},setSessionReconnectedHandler:function(e){s=e},setConnectionCreatedHandler:function(e){r=e},setConnectionDestroyedHandler:function(e){l=e},setStreamCreatedHandler:function(e){c=e},setStreamDestroyedHandler:function(e){d=e},setSignalHandler:function(e){u=e},setStreamPropertyChangedHandler:function(e){_=e},setArchivingStartedHandler:function(e){C=e},setArchivingStoppedHandler:function(e){g=e},sendSignal:function(e,t,n){var a={};e&&(a.to=e),t&&(a.type=t),n&&(a.data=n),E&&E.signal(a,(function(e){e&&i.Z.error("otSession","Exception on sending signal.("+e.name+")"+e.message)}))},getConnection:function(){return E.connection},subscribe:function(e,t,n){var i=E.subscribe(e,t,n),o=new a.Z(i);return A.push(o),o},publish:function(e,t){E.publish(e,t)},disconnect:function(){E.disconnect()},getSubscribers:function(){return A},connect:function(e,t){E.connect(e,t)},off:function(){E.off()}}}},4785:(e,t,n)=>{"use strict";function i(e){var t,n,i,a,o=e;return{getStream:function(){return o.stream},getSubscriber:function(){return o},setVideoDisableWarningHandler:function(e){t=e},setVideoDisableWarningLiftedHandler:function(e){n=e},setVideoDisabledHandler:function(e){i=e},setVideoEnabledHandler:function(e){a=e},setUpSubscriberHandlers:function(){o.on("videoDisableWarning",(function(){"function"==typeof t&&t()})),o.on("videoDisableWarningLifted",(function(){"function"==typeof n&&n()})),o.on("videoDisabled",(function(e){"function"==typeof i&&i(e)})),o.on("videoEnabled",(function(){"function"==typeof a&&a()}))},setAudioVolume:function(e){o.setAudioVolume(e)}}}n.d(t,{Z:()=>i})},5887:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var i=n(6616),a=n(4866),o=n(9036),s=n(4999),r=n(1638),l=n(389),c=n(69),d=(n(3203),n(5940)),u=n(1875),_=n(4843),C=n(3294),g=n(2342);n(6229);class E extends i.Z{static _scope={};static _nonHlsPlayerBrowser;static _activeBroadcast={};static _onBroadcastStopCallback;static _onBroadcastEnd;static GIS_EVENT_KEY_PARAM="giskey";static _isPlaying=!1;static _currentBroadcast;static CLERK_AVAILABLE_STATUS="AVAILABLE";static CLERK_UNAVAILABLE_STATUS="UNAVAILABLE";static CLERK_UNCHECKED_STATUS="NONE";static _clerkAvailabilityStatus=this.CLERK_UNCHECKED_STATUS;static _playTime;static _pauseTime;static _watchedPauseTime=0;static _isScheduledBroadcastPolling=!1;static _isNoBroadcastScreenShown=!1;static _scheduledDateAndTime;static _isBroadcastFirstIntervalPolling=!1;static _isBroadcastSecondIntervalPolling=!1;static _pollTimeOut;static _tenMinutesBeforeScheduledBroadcast;static _tenMinutesAfterScheduledBroadcast;static _twentyFiveMinutesAfterScheduledBroadcast;static LOGTAG="BroadcastCtrl";static isReady=!1;static ready=null;static readyDependent=e=>async()=>{this.isReady?e():await this.getReady(e)};static getReady=async e=>{if(this.isReady)return e();try{const t=await Promise.all([n.e(556),n.e(70),n.e(977)]).then(n.bind(n,6977));this.ready=t.default,this.isReady=!0,e()}catch(e){return d.Z.error(this.LOGTAG,"Error loading ready state",e),!1}return!0};static init=e=>{super.init(e),this.setProps(e)};static startDirectLinkBroadcast=()=>{const e=c.Z.getUrlParamsLowerCase()[r.Z.QUERY_PARAM.GIS_CHANNEL_PARAM],t=c.Z.getUrlParamsLowerCase()[r.Z.QUERY_PARAM.GIS_EVENT_PARAM];let n=e||t;if(c.Z.isEncodedUri(n)&&(n=decodeURIComponent(n)),null!=n||""!==n)if(e)s.Z.getBroadcasts(c.Z.utf8ToBase64(n),"broadcastCallback");else if(t){let e=c.Z.getUrlParamsLowerCase()[this.GIS_EVENT_KEY_PARAM];c.Z.isEncodedUri(e)&&(e=decodeURIComponent(e)),s.Z.getBroadcastsEvent(c.Z.utf8ToBase64(n),e?c.Z.utf8ToBase64(e):null,"broadcastCallback")}};static broadcastHasEnded=e=>{e||(l.Z.destroy(),a.Z.stopPollingEvent(a.Z.BASE_EVENTS.BROADCAST_VIEW_DURATION_POLLING),o.Z.isIos()&&this.ready._broadcastDOMProcComponent.clearIntervalOnVideoElement(),this.ready._broadcastDOMProcComponent.broadcastEnded(),"function"==typeof this._onBroadcastEnd&&this._onBroadcastEnd())};static show=e=>{this.readyDependent((()=>{super.show(e),C.Z.subscribe(r.Z.EVENT_NAMES.BROADCAST_PLAYER_VIDEO_ENDED,(()=>{this.ready._checkBroadcastIsLive()})),e.showNoBroadcastView?this.ready.showNoBroadcastView(e.broadcast):this.ready.playBroadcast(e.broadcast,e.onBroadcastStopCallback)})).bind(this).call()};static destroy=()=>{super.destroy(),u.Z.isNameConfigured()&&u.Z.getUserName()===r.Z.CHAT.READ_ONLY_CUSTOMER_USERNAME&&_.Z.logout(),g.ZP.setChatInitialized(!1),g.ZP.setChatInitiated(!1),u.Z.setTransparentChat(!1),a.Z.stopPollingEvent(a.Z.BASE_EVENTS.PRODUCTS_FOR_CAROUSEL_POLLING)}}const A=E},3594:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var i=n(6616),a=n(1638),o=n(9362),s=n(1879),r=n(1291),l=n(2342),c=n(1986),d=n(5940),u=n(4255),_=n(9333),C=n(6628),g=n(5116),E=n(7942),A=n(69),p=n(5129),T=n(3203),S=n(4999),m=n(1875),v=n(7383),f=n(3408),I=n(3294);class L extends i.Z{static LOGTAG="callCtrl";static _sessionState=a.Z.CALL_STATUS.NOT_CONNECTED;static defaultAddToBasket=()=>{};static _scope={addProductToBasket:this.defaultAddToBasket};static isReady=!1;static ready=null;static init(e){super.init(e),this.setProps(e),s.Z.registerFunction((()=>{switch(this._sessionState){case a.Z.CALL_STATUS.CONNECTING:setTimeout((()=>{r.Z.logActivity(r.Z.GIS_ACTIVITY_TYPES.CALL_ABORT_BY_CONSUMER),c.Z.sendAnalyticsEvent(c.Z.ANALYTICS_EVENTS.CALL_ABORTED)}),0);break;case a.Z.CALL_STATUS.CONNECTED:setTimeout((()=>{r.Z.logActivity(r.Z.GIS_ACTIVITY_ENDPOINTS.CALL_FINISHED_PAGE_UNLOAD),l.ZP.getChatInitialized()&&u.Z.logout()}),0)}})),window.noClerkAvailable=this.noClerkAvailable,window.postConnect=this.postConnect,window.gisCallbacks.onCallInitiation=this.onCallInitiation,window.gisCallbacks.onSSLCallInitiation=this.onSSLCallInitiation,window.gisCallbacks.onSecurityTokenReceived=this.onSecurityTokenReceived,o.Z.override(this.LOGTAG,this._scope),this._scope.addProductToBasket!==this.defaultAddToBasket&&_.Z.overrideATC(this._scope.addProductToBasket)}static readyDependent=e=>async()=>{this.isReady?e():await this.getReady(e)};static getReady=async e=>{if(this.isReady)return e();try{const t=await Promise.all([n.e(556),n.e(946)]).then(n.bind(n,4946));this.ready=t.default,window.addEventListener("orientationchange",(()=>{this.ready.otPublisher&&this.ready.otPublisher.getPublisher()&&setTimeout((()=>{this.ready.callDOMProcComponent.changeVideoDimension(this.ready.callDOMProcComponent.getMainVideoStreamId())}),2e3)}),!1),this.isReady=!0,e(),I.Z.publish(a.Z.EVENT_NAMES.ROUTER.READY_IS_LOADED,{route:a.Z.ROUTES.CALL})}catch(e){return d.Z.error(this.LOGTAG,"Error loading ready state",e),!1}return!0};static show=e=>{this.readyDependent((()=>{super.show(e),this.ready.startCallJourney(e.call,e.callbackEvent)})).bind(this).call()};static destroy=()=>{super.destroy()};static noClerkAvailable=(e,t,n)=>{this.ready._onCallCanceledWhileConnectingResponse(n)||("CALL_MISSED"===e&&c.Z.sendAnalyticsEvent(c.Z.ANALYTICS_EVENTS.CALL_MISSED),"CALL_USER_BLOCKED"===e?v.Z.logEvent(v.Z.GIS_EVENTS.CALL_USER_BLOCKED,{referrer:document.referrer||""}):(r.Z.logActivity(r.Z.GIS_ACTIVITY_TYPES.CALL_NO_CLERK_AVAIL),c.Z.sendAnalyticsEvent(c.Z.ANALYTICS_EVENTS.CALL_NO_CLERK_AVAILABLE)),this.ready.setNoClerkAvailable())};static postConnect=(e,t,n,i,o,s,u,_,g,E)=>{var T=g;T&&"string"==typeof T&&(T=JSON.parse(T));try{if(this.ready._onCallCanceledWhileConnectingResponse(t))return;this.ready.callDOMProcComponent.setupClerkProfile(i,o),d.Z.log(this.LOGTAG,"Session Connected"),this.ready._sessionState=a.Z.CALL_STATUS.CONNECTED,l.ZP.setCurrentPhase(l.ZP.phase.IN_CALL),c.Z.sendAnalyticsEvent(c.Z.ANALYTICS_EVENTS.CALL_ACCEPTED),A.Z.isDirectCall()?c.Z.sendAnalyticsEvent(c.Z.ANALYTICS_EVENTS.DIRECT_CALL):c.Z.sendAnalyticsEvent(c.Z.ANALYTICS_EVENTS.STANDARD_CALL),this.ready.callStartTime=new Date,E||(this.ready._uiContainer.hide(!0),this.ready.callDOMProcComponent.show({isMicSetupRequired:C.Z.getSystemConfig().skipMicShare,isBookingCall:A.Z.isMeeting(),isArchivingEnabled:this.ready._isArchivingEnabled,chatOnlyCall:{enabled:this.isChatFirstCall(),startCallOnClick:this._setStartCallOnClick}}),m.Z.setCallDOMProc(this.ready.callDOMProcComponent)),(A.Z.isMeeting()&&f.Z.isTwoWayVideoCallEnabled()||!A.Z.isMeeting()&&p.Z.isTwoWayVideoCall()&&this.ready._devices.video&&this.ready._devices.video.isAllowed)&&(this.ready.callDOMProcComponent.setOnCameraSwitch(this.ready._onCamSwitch),this.ready.callDOMProcComponent.setOnCamClick(this.ready._onCamTriggered)),r.Z.logActivity(r.Z.GIS_ACTIVITY_TYPES.CALL_UI_LOADED);var S={routingKey:l.ZP.getRoutingKey()};T&&(S.routing=T),v.Z.logEvent(v.Z.GIS_VIEWS.CALL+v.Z.GIS_ACTIONS.SHOWN,S),C.Z.getSystemConfig().skipMicShare&&setTimeout((()=>{this.ready.otPublisher.getPublisher()||this.ready._initPublisher()}),3e3),this.isChatFirstCall()||this.ready.startPublishing()}catch(e){d.Z.error(this.LOGTAG,"Exception on server callback, postConnect.",e)}};static _setStartCallOnClick=()=>{this.ready._preCallProcedure()};static isChatFirstCall=()=>l.ZP.isChatFirstCall();static sendSignal=()=>{this.ready.otSession.sendSignal(null,a.Z.SIGNAL_TYPE.CHAT_INITIATED,null)};static setCallEndedCallback=e=>{this.readyDependent((()=>{this.ready._callEndedCallback=e})).bind(this).call()};static onCallInitiation=e=>{d.Z.debug(this.LOGTAG,"Call initiation received",l.ZP.getCallUUID());try{if(l.ZP.getCallUUID()||l.ZP.getCurrentPhase()!==l.ZP.phase.CALL_INITIATING)return void d.Z.warn(this.LOGTAG,"Received call initiation but call has already been initiated or has been canceled");l.ZP.setCurrentPhase(l.ZP.phase.CALL_INITIATED),e.callUUID&&l.ZP.setCallUUID(e.callUUID),e.sessionId&&l.ZP.setSessionId(e.sessionId),e.token&&l.ZP.setToken(e.token),e.sessionId&&(this._sessionId=e.sessionId),e.apiKey&&(this.ready._apiKey=e.apiKey),e.surveyId&&(this.ready._surveyId=e.surveyId),e.apiKey&&l.ZP.setTokBoxApiKey(this.ready._apiKey),clearTimeout(this._callFailedTimeoutHandler),this._callFailedTimeoutHandler=null,E.Z.add("call"),g.Z.getOT()?this.isChatFirstCall()?this.ready._startCall():this.ready._preCallProcedure():g.Z.loadOpentok((()=>{this.isChatFirstCall()?this.ready._startCall():this.ready._preCallProcedure()}),(e=>{this.ready._uiContainer.hide(),T.Z.showAlert("Failed to connect you to the store. Try again later.",(()=>{this.ready.handlePostCallEvents()})),d.Z.error(this.LOGTAG,"Failed to load OT during user Journey - onCallInitiation",e||"")}))}catch(t){d.Z.error(this.LOGTAG,"Exception on server callback, onCallInitiation.",t,{callId:e.callUUID})}};static onSSLCallInitiation=(e,t,n,i)=>{try{var a=e;l.ZP.setCurrentPhase(l.ZP.phase.CALL_INITIATED),l.ZP.setCallUUID(i.callUUID),l.ZP.setTokBoxApiKey(i.apiKey),this._sessionId=i.sessionId,d.Z.info(this.LOGTAG,"Initiating call for secure page with id:"+i.callUUID),this.ready._initCallState(),a=a&&"string"==typeof a?atob(a):l.ZP.getRoutingKey(),l.ZP.setActiveCallRoutingKey(a),this.ready._referralUrl=encodeURIComponent(t);try{l.ZP.setPageMetadata(JSON.parse(atob(n)))}catch(e){}E.Z.add("call",this.ready._referralUrl),this.ready._renderModalContainer(),this.ready._preCallProcedure()}catch(e){d.Z.error(this.LOGTAG,"Exception when starting SSL call",e)}};static onSecurityTokenReceived=e=>{this.ready._uiContainer.hide(),S.Z.connectSSLCall(e,l.ZP.getRoutingKey(),l.ZP.getPageMetadata(),"gisCallbacks.onSSLCallInitiation",this.ready._callType)};static _setIsChatOnlyCall=e=>{l.ZP.setIsChatFirstCall(e)}}const b=L},2579:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var i=n(5940),a=n(4999),o=n(3203),s=n(7383),r=n(1407),l=n(2970),c=n(4765),d=n(6451),u=n(69),_=n(7448),C=n(6628),g={};let E;g._submitContact=function(){if(!g.isSubmissionInProgress){E=C.Z.getLabels(),g.isSubmissionInProgress=!0,g.emailTextBox.disableButton();var e={source:g.source,contact:{email:g.emailTextBox.getText().toLowerCase().trim(),broadcastId:g.broadcastContactCaptureData.broadcastId,viewDuration:parseInt(g.broadcastContactCaptureData.viewDuration,10)}},t=u.Z.utf8ToBase64(JSON.stringify(e));a.Z.submitBroadcastContactDetails(t,(function(){g.isSubmissionInProgress=!1,g.emailTextBox.enableButton();var e=_.Z.getItem(_.Z.storageKeys.BROADCAST_CONTACT_CAPTURE)||{};e[g.broadcastContactCaptureData.broadcastId]=!0,_.Z.setItem(_.Z.storageKeys.BROADCAST_CONTACT_CAPTURE,e),s.Z.logEvent(s.Z.GIS_EVENTS.BROADCAST_CONTACT_CAPTURE_SUBMITTED,{source:g.source}),g.contactCapture.hide()}),(function(){g.isSubmissionInProgress=!1,i.Z.error(g.LOGTAG,"Error on submitting contact info from Broadcast."),g.emailTextBox.enableButton(),g.emailTextBox.showError(E.broadcast_v2_noClerkCaptureInfo_failedToSendText)}))}};const A={init:function(e,t){E=C.Z.getLabels(),g.broadcastContactCaptureData=t,g.source=e,g.contactCapture=new r.Z({child:l.Z,eventName:s.Z.GIS_VIEWS.BROADCAST_CONTACT_CAPTURE,eventAction:s.Z.GIS_ACTIONS.CLOSED,eventData:{source:g.source,component:"closeButton"}}),g.emailTextBox=new c.Z({textBoxPlaceHolder:E.noClerkAvailableScreen_emailFieldLabel,textBoxLabel:E.noClerkAvailableScreen_emailErrorLabel,buttonClick:g._submitContact}),o.Z.bodyRender(g.contactCapture.render()),g.contactCapture.getChild().setup({exitAnimation:!0,enterAnimation:"fullscreen",mainText:{text:E.broadcast_v2_noClerkCaptureInfo_mainText},mainSubText:E.broadcast_v2_noClerkCaptureInfo_mainSubText,secondaryText:E.broadcast_v2_noClerkCaptureInfo_secondaryText,padding:"0px 20px"}),o.Z.appendView(g.contactCapture.getChild().subviews.contentContainer,g.emailTextBox.render()),g.buttonComponent=new d.Z({buttonLabel:E.broadcast_v2_noClerkCaptureInfo_skipButtonText,onClick:g.contactCapture.hide,buttonClass:"gis-transparent-btn gis-link-blue",eventName:s.Z.GIS_VIEWS.BROADCAST_CONTACT_CAPTURE,eventAction:s.Z.GIS_ACTIONS.CLOSED,eventData:{source:g.source,component:"skipButton"}}),o.Z.appendView(g.contactCapture.getChild().subviews.contentContainer,g.buttonComponent.render()),s.Z.logEvent(s.Z.GIS_VIEWS.BROADCAST_CONTACT_CAPTURE+s.Z.GIS_ACTIONS.SHOWN,{source:g.source})}}},389:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i,a,o=n(5940),s=n(4999),r=n(9362),l=n(6229),c={},d="hlsCtrl",u=o.Z,_=function(){},C=function(){};function g(e,t){var n=t.type,i=t.details;u.error(d,"Hls Error.",{message:n,stack:i}),C(t)}function E(){_()}function A(){i.loadSource(a)}c.loadHls=function(e){s.Z.loadHlsJs((function(){var t=c._isHlsObjectInit();t&&c._setEventsHandler(),e(t)}),(function(t){u.error(d,"Failed to load Hls.js",t),e(!1)}))},c._isHlsObjectInit=function(){return!!l.Z.getWindow().Hls.isSupported()&&(i=new Hls,!0)},c._setEventsHandler=function(){"undefined"!=typeof Hls&&(i.on(l.Z.getWindow().Hls.Events.ERROR,g),i.on(l.Z.getWindow().Hls.Events.MEDIA_ATTACHED,A),i.on(l.Z.getWindow().Hls.Events.MANIFEST_PARSED,E))},r.Z.override(d,c);const p={loadHls:c.loadHls,playUrl:function(e,t){a=t,i.attachMedia(e)},destroy:function(){i&&i.destroy()},registerOnManifestParsed:function(e){"function"==typeof e&&(_=e)},registerOnErrorFunction:function(e){"function"==typeof e&&(C=e)}}},1598:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var i=n(6616),a=n(5940),o=n(4866),s=n(3203),r=n(69),l=n(6628),c=n(9036);function d(e){var t,n={},i="videoSegmentComponent",o=l.Z.getUiConfig().theme,d=e.playTo;function u(e,t,n,i){var a=t,o=n;c.Z.isMobileDevice()&&(a.style.backgroundColor="#ebe9e9",setTimeout((function(){a.style.backgroundColor="white"}),50)),o.style.color="#9e9d9d",d(e,i)}return{render:function(){if(!e.videoSegmentList||0===e.videoSegmentList.length)return a.Z.debug(i,"videoSegmentList should not be null or empty"),t=s.Z.createElementWithAttributes("div","gis-video-segment-wrapper","","width:100%;height:100%;background: gray;color: white;display: flex;align-items: center;justify-content: center;text-align: center;");if(e.videoSegmentContainer){if(e.playTo){e.videoSegmentContainer.lastElementChild&&e.videoSegmentContainer.removeChild(e.videoSegmentContainer.lastElementChild);var d=".gis-Video-Segment-selected{ background: #dadada }";c.Z.isMobileDevice()||(d+="#gis-Video-Segment-container:hover { background-color: "+(o&&o.main_button_color?o.main_button_color:"#c4c5c4")+" } #gis-Video-Segment-container:hover .gis-hide{display:inline-block;} #gis-Video-Segment-container {-webkit-tap-highlight-color: rgba(0, 0, 0, 0)}");var _=document.createElement("style");return _.styleSheet?_.styleSheet.cssText=d:_.appendChild(document.createTextNode(d)),(t=s.Z.createElementWithAttributes("div","gis-video-segment-wrapper","","height: 100%;width: 100%;overflow-y: auto;-webkit-overflow-scrolling: touch;")).appendChild(_),e.videoSegmentList.forEach((function(e){var i,a,o;t.appendChild((i=e,a=s.Z.processView(l.Z.getViews().videoSegmentView,{},!0),o=r.Z.getSecondsFromStringTime(i.startTime),n.videoSegmentContainer=a.querySelector("#gis-Video-Segment-container"),n.videoSegment=a.querySelector("#gis-Video-Segment"),n.videoSegmentImage=a.querySelector("#gis-Video-Segment-image"),n.videoSegmentTitle=a.querySelector("#gis-Video-Segment-title"),n.videoSegmentTime=a.querySelector("#gis-Video-Segment-time"),n.videoSegment.setAttribute("title",i.title),n.videoSegmentImage.style.backgroundImage='url("'+i.snapShotUrl+'")',n.videoSegmentTitle.innerHTML=i.title,n.videoSegmentTime.innerHTML=i.startTime,n.videoSegment.style.borderBottom="1px solid #dbd9d9",n.videoSegment.addEventListener("click",u.bind(null,o,n.videoSegmentContainer,n.videoSegmentTitle,i.title)),a))})),s.Z.enableBodyScroll(),gisAppLib.bodyScrollLock.disableBodyScroll(t),t}a.Z.debug(i,"playTo method should not be null or empty")}else a.Z.debug(i,"videoSegmentContainer should not be null or empty")}}}class u extends i.Z{static _scope={};static _player;static _playbackVideoUrl;static _activeReplay;static _callback=0;static _isPlayed=!1;static _currentViewSegment=null;static _segmentClickedTime;static _currentReplay;static CLERK_AVAILABLE_STATUS="AVAILABLE";static CLERK_UNAVAILABLE_STATUS="UNAVAILABLE";static CLERK_UNCHECKED_STATUS="NONE";static _clerkAvailabilityStatus=this.CLERK_UNCHECKED_STATUS;static _replayDOMProcComponent;static isReady=!1;static ready=null;static LOGTAG="replayCtrl";static readyDependent=e=>async()=>{this.isReady?e():await this.getReady(e)};static getReady=async e=>{if(this.isReady)return e();try{const t=await Promise.all([n.e(556),n.e(70),n.e(477)]).then(n.bind(n,2477));this.ready=t.default,this.isReady=!0,e()}catch(e){return a.Z.error(this.LOGTAG,"Error loading ready state",e),!1}return!0};static init(e){super.init(e),this.setProps(e)}static show=e=>{this.readyDependent((()=>{super.show(e),this.ready.playReplay(e.replay,e.onReplayStopCallback)})).bind(this).call()};static displayVideoSegments=e=>{var t=document.getElementById("gis-segment-container"),n=new d({videoSegmentContainer:t,videoSegmentList:e,playTo:this._playTo});t.appendChild(n.render())};static destroy(){super.destroy(),o.Z.stopPollingEvent(o.Z.BASE_EVENTS.BROADCAST_VIEW_DURATION_POLLING)}}const _=u},6616:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const i=class{static props={};static init(e){this.props=e}static getProps(){return this.props}static setProps(e){this.props=e}static show(){}static destroy(){}}},8881:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});class i{static _routes=new Map;static _middlewares=[];static _eventListeners={};static _activeRoute={routeId:null,routeController:null};static register(e,t){t.init(),i._routes.set(e,t)}static route(e,t){const n=i._routes.get(e);if(!n)throw new Error(`Route '${e}' not registered.`);{const a={routeId:e,previousRoute:this._activeRoute,data:t};i._runMiddlewares((async()=>{i._triggerEvent("beforechange",a),i._activeRoute.routeController&&i._activeRoute.routeController.destroy(),await n.show(t),i._activeRoute={routeId:e,routeController:n},i._triggerEvent("afterchange",a)}),a)}return 0}static middleware(e){i._middlewares.push(e)}static on(e,t){i._eventListeners[e]||(i._eventListeners[e]=[]),i._eventListeners[e].push(t)}static getCurrentRoute(e=!1){return e?i._activeRoute.routeId:i._activeRoute}static reset(){this._activeRoute.routeController&&this._activeRoute.routeController.destroy(),this._triggerEvent("ui:reset"),this._activeRoute={routeId:null,routeController:null}}static _runMiddlewares(e,t){const n=async a=>{a{n(a+1)}),t):await e()};n(0)}static _triggerEvent(e,t){i._eventListeners[e]&&i._eventListeners[e].forEach((e=>{e(t)}))}}const a=i},861:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(5940);const a={registerInteractiveElement:(e,t,n)=>{e?(e.setAttribute("tabindex",t||0),e.setAttribute("role","button"),((e,t)=>{e.addEventListener("keydown",(n=>{if("Enter"===n.key){if(t)return void t();e.dispatchEvent(new Event("click"))}}))})(e,n)):i.Z.error("accessibilityService","Element is null. Cannot register interactive element for accessibility.")}}},1291:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(2342),a=n(5940),o=n(69),s=n(4999),r="activityLoggerService";const l={GIS_ACTIVITY_TYPES:{CALL_ABORT_BY_CONSUMER:"CALL_ABORT_BY_CONSUMER",CALL_BLOCKED_UNSUPPORTED_BROWSER:"CALL_BLOCKED_UNSUPPORTED_BROWSER",CALL_BLOCKED_MIC_DENIED:"CALL_BLOCKED_MIC_DENIED",CALL_BLOCKED_IOS_NOT_ENABLED:"CALL_BLOCKED_IOS_NOT_ENABLED",CALL_BLOCKED_NO_MIC:"CALL_BLOCKED_NO_MIC",CALL_NO_CLERK_AVAIL:"CALL_NO_CLERK_AVAIL",CALL_MIC_REQUESTED:"CALL_MIC_REQUESTED",CALL_MIC_ALLOWED:"CALL_MIC_ALLOWED",CALL_CONNECTING:"CALL_CONNECTING",CALL_CONNECTING_CANCELLED:"CALL_CONNECTING_CANCELLED",CALL_UI_LOADED:"CALL_UI_LOADED",CALL_SURVEY_SHOWN:"CALL_SURVEY_SHOWN",CALL_CONNECT_FAILED:"CALL_CONNECT_FAILED",CALL_MIC_SHARE_TIMED_OUT:"CALL_MIC_SHARE_TIMED_OUT",CALL_DISCONNECTED_BY_CONSUMER:"CALL_DISCONNECTED_BY_CONSUMER",CALL_MIC_REQUESTED_IN_CALL:"CALL_MIC_REQUESTED_IN_CALL",CALL_MIC_BLOCKED_IN_CALL:"CALL_MIC_BLOCKED_IN_CALL",CALL_MIC_ALLOWED_IN_CALL:"CALL_MIC_ALLOWED_IN_CALL",CALL_SURVEY_SUBMIT:"CALL_SURVEY_SUBMIT",CALL_SURVEY_SKIP:"CALL_SURVEY_SKIP",CALL_PLUGIN_PROMPTED:"CALL_PLUGIN_PROMPTED",CALL_PLUGIN_DOWNLOADED:"CALL_PLUGIN_DOWNLOADED",CALL_PLUGIN_CANCELLED:"CALL_PLUGIN_CANCELLED",CALL_MIC_ACCESS_ERROR:"CALL_MIC_ACCESS_ERROR",CALL_CLERK_STREAM_RECEIVED:"CALL_CLERK_STREAM_RECEIVED",CALL_MIC_PUBLISHED:"CALL_MIC_PUBLISHED",BOOKING_CUSTOMER_JOINED:"BOOKING_CUSTOMER_JOINED",BOOKING_CUSTOMER_LEFT:"BOOKING_CUSTOMER_LEFT",CALL_CAMERA_DETECTED:"CALL_CAMERA_DETECTED",CALL_CAMERA_UNDETECTED:"CALL_CAMERA_UNDETECTED",CALL_CAMERA_ALLOWED:"CALL_CAMERA_ALLOWED",CALL_CAMERA_DENIED:"CALL_CAMERA_DENIED",CALL_CONSUMER_JOINED_CAMERA_MUTE:"CALL_CONSUMER_JOINED_CAMERA_MUTE",CALL_CONSUMER_JOINED_CAMERA_UNMUTE:"CALL_CONSUMER_JOINED_CAMERA_UNMUTE",CALL_CONSUMER_JOINED_MIC_MUTE:"CALL_CONSUMER_JOINED_MIC_MUTE",CALL_CONSUMER_JOINED_MIC_UNMUTE:"CALL_CONSUMER_JOINED_MIC_UNMUTE",CALL_CONSUMER_CAMERA_MUTE_IN_CALL:"CALL_CONSUMER_CAMERA_MUTE_IN_CALL",CALL_CONSUMER_CAMERA_UNMUTE_IN_CALL:"CALL_CONSUMER_CAMERA_UNMUTE_IN_CALL",CALL_CONSUMER_MIC_MUTE_IN_CALL:"CALL_CONSUMER_MIC_MUTE_IN_CALL",CALL_CONSUMER_MIC_UNMUTE_IN_CALL:"CALL_CONSUMER_MIC_UNMUTE_IN_CALL",CALL_CHAT_STARTED_IN_CALL:"CALL_CHAT_STARTED_IN_CALL",FRIEND_ADDED_IN_CALL:"FRIEND_ADDED_IN_CALL",TRANSITION_CHAT_TO_CALL_ACCEPTED_BY_CONSUMER:"TRANSITION_CHAT_TO_CALL_ACCEPTED_BY_CONSUMER",TRANSITION_CHAT_TO_CALL_SENT_BY_CONSUMER:"TRANSITION_CHAT_TO_CALL_SENT_BY_CONSUMER",CHAT_TO_CALL_REQUEST_CANCEL_BY_CONSUMER:"CHAT_TO_CALL_REQUEST_CANCEL_BY_CONSUMER",CALL_ENDED_DUE_TO_CONSUMER_INACTIVITY:"CALL_ENDED_DUE_TO_CONSUMER_INACTIVITY"},GIS_ACTIVITY_ENDPOINTS:{CALL_STARTED:"/jsapi/callstarted",CALL_FINISHED:"/jsapi/callfinished",CALL_FINISHED_PAGE_UNLOAD:"/jsapi/callfinishedPageUnload"},logActivity:function(e,t){var n=i.ZP.getCallUUID();if(n){if(e.match(/\/.*\/.*/))return a.Z.debug(r,"Logging Call Activity by endpoint: "+e,n),void s.Z.logActivityByEndpoint(e,n);var l={call_uuid:n};t&&(l.data=t),a.Z.debug(r,"Logging Call Activity: "+e,l),s.Z.logActivity(e,o.Z.encodeJSONtoBase64(l))}else a.Z.error(r,"Call-UUID not found. Failed to log activity: "+e)}}},2703:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(69),a=!1;const o={isAddAPersonCall:function(){return!a&&null!=i.Z.extractUrlParamsValues(window.location.href).giscallconnect},addAPersonEndCallScreenShown:function(){a=!0}}},9333:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var i=n(7383),a=n(1986),o=n(1638),s=n(9362),r={},l=function(){};function c(e){var t={};return e.uuid&&(t.basketUUID=e.uuid),e.title&&(t.title=e.title),e.productCode&&(t.productCode=e.productCode),e.addOnId&&(t.addOnId=e.addOnId),e.addOnType&&(t.addOnType=e.addOnType),t}function d(e,t){i.Z.logEvent(i.Z.GIS_EVENTS.ADD_TO_BASKET_SUCCESS,{basketInfo:c(t)}),"function"==typeof e&&e()}function u(e,t){i.Z.logEvent(i.Z.GIS_EVENTS.ADD_TO_BASKET_ERROR,{basketInfo:c(t)}),"function"==typeof e&&e()}function _(e,t,n){var i={title:e.title,action:t,productCode:e.productCode};return e.addOnType&&(i.addOnType=e.addOnType),e.addOnId&&(i.addOnId=e.addOnId),n&&(i.isRecommended=n),i}r.addProductToBasket=l,s.Z.override("addToCartService",r);const C={addProductToBasket:r.addProductToBasket,onAddToBasketTriggered:function(e,t,n,s,l){r.addProductToBasket(e,d.bind(null,s,e),u.bind(null,n,e)),i.Z.logEvent(i.Z.GIS_EVENTS.ADD_TO_BASKET_ACCEPTED,{basketInfo:c(e)}),a.Z.sendAnalyticsEvent(a.Z.ANALYTICS_EVENTS.ITEM_ADDED_TO_BASKET,{basketInfo:c(e)}),l&&l.sendSignal(l.getSession().connections.get(t.from.id),o.Z.SIGNAL_TYPE.ADD_TO_BASKET,_(e,"accepted"))},onAddToBasketDenied:function(e,t,n){i.Z.logEvent(i.Z.GIS_EVENTS.ADD_TO_BASKET_DENIED,{basketInfo:c(e)}),n&&n.sendSignal(n.getSession().connections.get(t.from.id),o.Z.SIGNAL_TYPE.ADD_TO_BASKET,_(e,"denied"))},onAddToRecommended:function(e,t,n){i.Z.logEvent(i.Z.GIS_EVENTS.ADD_TO_RECOMMENDED,{basketInfo:c(e)}),n&&(n.sendSignal(n.getSession().connections.get(t.from.id),o.Z.SIGNAL_TYPE.ADD_TO_BASKET,_(e,"denied",!0)),n.sendSignal(n.getSession().connections.get(t.from.id),o.Z.SIGNAL_TYPE.ADD_TO_RECOMMENDED,_(e,"accepted")))},isAddToCartConfigured:function(){return r.addProductToBasket!==l},getBasketInfo:c,overrideATC:function(e){r.addProductToBasket=e}}},3408:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var i=n(6628),a=n(2342),o=n(1477),s=n(9362),r=n(5940),l=n(8110),c=n(1638),d=n(69),u=n(6229),_={};function C(){var e="";try{_.systemConfig=i.Z.getSystemConfig();var t=_.systemConfig.booking.url,n=t[a.ZP.getLocale()]?t[a.ZP.getLocale()]:t.default;e=function(e){var t=e.toString().replace(e.search,""),n=o.Z.getParamsObjectFromUrl(e),i=_.getCustomBookingUrlParams(),a=o.Z.mergeParamsObject(n,i);return o.Z.appendParamsToUrl(t,a)}(o.Z.getLocationObject(n)),l.Z.isConsentProcessed()&&l.Z.getUserConsent()===c.Z.COOKIES_PERMISSIONS.ACCEPTED&&(e=d.Z.addParamToUrl(e,"customerPrefill[customFields][caller_uuid]="+a.ZP.getCallUserUUID()))}catch(e){r.Z.error(_.LOGTAG,"Error in getting the schedule call URL",e)}return e}function g(){return _.systemConfig=i.Z.getSystemConfig(),_.systemConfig&&_.systemConfig.booking&&_.systemConfig.booking.enabled&&_.isBookingEnabledForCategory()||!1}_.LOGTAG="bookingService",_.getCustomBookingUrlParams=function(){return{}},_.isBookingEnabledForCategory=function(){return!0},s.Z.override(_.LOGTAG,_);const E={isBookingEnabledForCategory:_.isBookingEnabledForCategory,getScheduleCallButtonUrl:C,isBookingEnabled:g,openBookingPage:function(){u.Z.getWindow().open(C(),"_blank")},isTwoWayVideoCallEnabled:function(){return _.systemConfig=i.Z.getSystemConfig(),_.systemConfig&&_.systemConfig.booking&&_.systemConfig.booking.twoWayVideo&&_.systemConfig.booking.twoWayVideo.enabled||!1},isMultiParticipantEnabled:function(){return _.systemConfig=i.Z.getSystemConfig(),_.systemConfig&&_.systemConfig.booking&&_.systemConfig.booking.enabled&&_.systemConfig.booking.multiParticipant||!1},isAddAPersonEnabled:function(){return _.systemConfig=i.Z.getSystemConfig(),_.systemConfig&&_.systemConfig.booking&&_.systemConfig.booking.enabled&&_.systemConfig.booking.addAPerson},isOpenBookingWidgetInNewTab:function(){return _.systemConfig=i.Z.getSystemConfig(),_.systemConfig&&_.systemConfig.booking&&_.systemConfig.booking.enabled&&_.systemConfig.booking.openBookingWidgetInNewTab},isEnabledForUnavailableCta:function(){return _.systemConfig=i.Z.getSystemConfig(),g()&&_.systemConfig.booking.isEnabledForUnavailableCta}}},9656:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var i=n(7448),a=void 0!==window.chrome||navigator.userAgent.indexOf("CriOS")>-1,o=navigator.userAgent.toLowerCase().indexOf("firefox")>-1||navigator.userAgent.indexOf("FxiOS")>-1,s=window.ActiveXObject||window.hasOwnProperty("ActiveXObject")||navigator.userAgent.indexOf("Edge")>-1,r=!a&&!o&&navigator.userAgent.indexOf("Safari")>-1,l="safari",c="Safari",d="chrome",u="Chrome",_="firefox",C="Firefox",g="ie",E="Internet Explorer";const A={isChrome:function(){return a},isFirefox:function(){return o},isExplorer:function(){return s},isSafari:function(){return r},getBrowser:function(){var e,t=navigator.userAgent,n=t.match(/(opera|chrome|safari|fxios|crios|firefox|msie|trident)/i)||[];if(null==n[0])return"other";var i=n[0].toLowerCase();switch(i){case"trident":case"ie":case"msie":return"ie";case"chrome":return null!=(e=t.match(/(OPR|Edge|YaBrowser)/))?e.slice(1)[0].replace("OPR","Opera").toLowerCase():function(e){var t=e.split(/\s*[;)(]\s*/),n=t[t.length-1];return null!=n.match(/^Chrome\/[.0-9]*\sSafari\/[.0-9]*/i)||null!=n.match(/^Chrome\/[.0-9]*\sMobile\sSafari\/[.0-9]*/i)?"chrome":"other"}(t);case"crios":return"chrome";case"fxios":return"firefox";default:return i}},isWebpSupported:function(e){var t=i.Z.getItem(i.Z.storageKeys.BROWSER_FEATURE_SUPPORT);if(t&&"object"==typeof t)return"function"==typeof e?(e(t.webp),!1):t.webp;var n=function(t){i.Z.setItem(i.Z.storageKeys.BROWSER_FEATURE_SUPPORT,{webp:t}),"function"==typeof e&&e(t)},a=document.createElement("img");return a.onload=function(){var e=a.width>0&&a.height>0;n(e)},a.onerror=function(){n(!1)},a.src="data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA",!1},getBrowserDisplayName:function(e){switch(e){case l:return c;case d:return u;case _:return C;case g:return E;default:return e}}}},5129:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(6628),a=n(2342),o=n(1638),s=n(3408);function r(){return i.Z.getSystemConfig().oneToOne&&i.Z.getSystemConfig().oneToOne.inCallChat&&i.Z.getSystemConfig().oneToOne.inCallChat.enabled}function l(){return i.Z.getSystemConfig().oneToOne&&i.Z.getSystemConfig().oneToOne.isShopStreamCall}function c(e){return e.type===o.Z.CALL_TYPES.DIRECT?e.isInvalidUrl?o.Z.VIEWS.INVALID_URL:e.isMissed?o.Z.VIEWS.MEETING_MISSED:e.isCanceled?o.Z.VIEWS.MEETING_CANCELED:e.isMeeting?o.Z.VIEWS.MEETING_CONNECT:e.isMeetingError?o.Z.VIEWS.MEETING_ERROR:e.isMeetingEnded?o.Z.VIEWS.MEETING_ENDED:e.isAddAPersonCall?o.Z.VIEWS.ADD_A_PERSON_SCREEN:(e.isDepartmentCall,o.Z.VIEWS.DIRECT):i.Z.getUiConfig().connectScreenHumanized?i.Z.getApiEnabled()||a.ZP.getClerkAvailability()?o.Z.VIEWS.HUMANIZED_CONNECT:s.Z.isEnabledForUnavailableCta()?o.Z.VIEWS.BOOKING:o.Z.VIEWS.CLERK_UNAVAILABLE_CONNECT:o.Z.VIEWS.CONNECT}const d={getCallJourneyInitiationScreen:function(e){return i.Z.getApiEnabled()&&e.type!==o.Z.CALL_TYPES.DIRECT?i.Z.getSystemConfig()&&i.Z.getSystemConfig().apiConnectScreenEnabled?c(e):null:c(e)},isTwoWayVideoCall:function(){return i.Z.getSystemConfig().oneToOne&&i.Z.getSystemConfig().oneToOne.twoWayVideo&&i.Z.getSystemConfig().oneToOne.twoWayVideo.enabled},isInCallChatEnabled:r,isShopStreamCallEnabled:l,isShopStreamCallProductCarouselEnabled:function(){return l()&&i.Z.getSystemConfig().oneToOne.isShopStreamCall.productCarousel&&i.Z.getSystemConfig().oneToOne.isShopStreamCall.productCarousel.enabled},isAddAPersonEnabled:function(){return i.Z.getSystemConfig().oneToOne&&i.Z.getSystemConfig().oneToOne.addAPerson&&i.Z.getSystemConfig().oneToOne.addAPerson.enabled},isRedirectJourney:function(){return s.Z.isEnabledForUnavailableCta()&&s.Z.isOpenBookingWidgetInNewTab()&&!a.ZP.getClerkAvailability()},isChatFirstCallEnabled:function(){return l()&&r()&&i.Z.getSystemConfig().oneToOne.isShopStreamCall.isChatFirstCall.enabled},isBypassCameraPreviewEnabled:function(){return i.Z.getSystemConfig().oneToOne&&i.Z.getSystemConfig().oneToOne.twoWayVideo&&i.Z.getSystemConfig().oneToOne.twoWayVideo.bypassCameraPreviewScreen}}},7942:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var i,a=n(5940),o=n(2342),s=n(7448),r=n(4999),l=n(2790),c=n(8110),d="callUserService",u=a.Z,_=null;function C(){_&&(_(),_=null)}function g(e,t,n,i){var a={callUserUUID:null!=e?e:"",callUUID:o.ZP.getCallUUID(),viewType:E(t),referrerUrl:null!=n?decodeURIComponent(n):"",pageUUID:o.ZP.getPageUUID(),duration:null!=i?i:0};return o.ZP.getABTestId()&&(a.abTestId=o.ZP.getABTestId(),a.abGroupId=o.ZP.getABTestGroup()),JSON.stringify(a)}function E(e){return"broadcast"===e?"live":("call"===e||"replay"===e)&&e||"replay"}const A={add:function(e,t){if(e){var n=c.Z.getUserUUID();i=e,u.debug(d,"Calling service to add call user for call="+o.ZP.getCallUUID()),r.Z.addCallUser("GISAPP.callUserService.onAddCallUserOnServer",btoa(g(n,e,t)),C)}else u.error(d,"Failed to add call user.",null,{view_type:e})},sendBroadcastViewDuration:function(e,t){if(e&&t&&!Number.isNaN(t)){var n=c.Z.getUserUUID();if(n){var i=o.ZP.getViewerRecId();if(!i)return r.Z.addCallUser("GISAPP.callUserService.blankCallBack",btoa(g(n,e,"",t))),void u.error(d,"Failed to send view duration. Invalid viewer-id",null,{viewerId:i,viewType:e,callUserUUID:n,duration:t});u.debug(d,"Calling endpoint to update duration");var a=JSON.stringify({callUserUUID:n,callUUID:o.ZP.getCallUUID(),viewType:E(e),duration:t,id:i});r.Z.sendBroadcastViewDuration(btoa(a))}else u.warn(d,"Cannot update view duration. callUserUUID is not present in storage.",{viewType:e})}else u.warn(d,"Failed to send view duration. Invalid values",{viewType:e,duration:t})},onAddCallUserOnServer:function(e){u.debug(d,"onAddCallUserOnServer json="+e);try{var t=JSON.parse(e).uuid,n=JSON.parse(e).id;o.ZP.setCallUserUUID(t),o.ZP.setViewerRecId(n);var a=s.Z.isLocalStorageAccessible();l.Z.isCookieEnabled()&&l.Z.isCookieEnabledInBrowser()?l.Z.setCookie(s.Z.storageKeys.CHAT_CALL_USER_UUID,t,365,l.Z.getMainDomainForCookie()):a&&s.Z.setItem(s.Z.storageKeys.CHAT_CALL_USER_UUID,t),o.ZP.setCallUserUUID(t),a&&(s.Z.setItem(s.Z.storageKeys.VIEWED_BROADCAST_UUID,o.ZP.getCallUUID()),s.Z.setItem(s.Z.storageKeys.VIEWED_BROADCAST_TYPE,i))}catch(t){u.error(d,"Exception while adding call user on server.",t,{server_resp_json:e})}C()},setAddUserCallBack:function(e){"function"==typeof e&&(_=e)},showReplayCallback:C,blankCallBack:function(){}}},6575:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var i=n(1291),a=n(3594),o=n(5940),s=n(1638),r=n(2342),l=n(6758),c=n(4999),d=n(69),u={},_="chatGroupService",C=null;function g(){C(!0)}u.createGroup=function(e,t,n,c,d){var u=new e.Group(t,n,c,d);e.createGroup(u).then((function(e){o.Z.info(_,"Group created successfully:",e),i.Z.logActivity(i.Z.GIS_ACTIVITY_TYPES.CALL_CHAT_STARTED_IN_CALL),l.Z.chatWidgetInit(),r.ZP.getCurrentPhase(r.ZP.phase.IN_CALL)&&a.Z.sendSignal(s.Z.SIGNAL_TYPE.CHAT_INITIATED)}),(function(e){(e&&e.details&&e.details.guid&&e.details.guid.length>0&&"The guid has already been taken."===e.details.guid[0]||"ERR_GUID_ALREADY_EXISTS"===e.code)&&l.Z.chatWidgetInit(),o.Z.error(_,"Group creation failed with exception:",e)}))},gisCallbacks.chatMemberCountCallback=function(e){var t=null;try{if(!d.Z.isJsonString(e))throw new Error("Json parsing failed for the data");if((t=JSON.parse(e)).status!==s.Z.CHAT.MEMBER_COUNT_STATUS.SUCCESSFUL)throw new Error("Chat member count unsuccessful response: "+t.status);C(!1,t.isRoomFull)}catch(n){g(),o.Z.error(_,"Error on fetching group count:",n,{chatCountObject:t||e})}};const E={createGroup:u.createGroup,getGroupCount:function(e,t){C=t,c.Z.getChatMemberCount("gisCallbacks.chatMemberCountCallback",g,e)}}},6055:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(9362),a=n(2342),o=n(5940),s=n(6628),r=n(3515),l=n(4843),c={},d="chatInitService";c.triggerEvent=function(e){document.getElementById("cometChatIframe").contentWindow.dispatchEvent(new GisCustomEvent(e))},c.initializeCometChat=function(e,t){if(!i&&!0===e){var n=document.getElementById("cometChatIframe");if(n&&n.contentWindow)var i=n.contentWindow.CometChat}if(i){o.Z.info(d,"Comet chat API load successful");var c=(new i.AppSettingsBuilder).subscribePresenceForAllUsers().setRegion(s.Z.getCometChatRegion()).build();i.init(s.Z.getCometChatAppId(),c).then((function(){o.Z.info(d,"Comet chat init successful");var e=l.Z.getChatUserUUID();a.ZP.getChatUserName()!==l.Z.getChatUserName()&&r.Z.updateUsername(i,a.ZP.getChatUserName()),r.Z.login(i,e,s.Z.getCometChatAuthKey(),t,a.ZP.getCallUUID(),a.ZP.getChatInitiated())}),(function(e){o.Z.error(d,"Comet chat init failed with exception:",e)}))}},i.Z.override(d,c);const u={initializeCometChat:c.initializeCometChat,triggerEvent:c.triggerEvent}},6758:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var i=n(3594),a=n(9362),o=n(3202),s=n(3203),r=n(6628),l=n(2342),c=n(861),d=n(4843),u=n(5940),_=n(1638),C=n(3294),g=n(6055),E=n(9289),A={};A.inactivityNotificationTimeout=_.Z.CHAT.INACTIVITY.CONVERSATION.NOTIFICATION_TIMEOUT,A.loadReactUIKitBundle=function(){document.getElementById("cometChatIframe").contentWindow.loadBundle()},A.loadChatInIframe=function(e,t,n,a,u){if(!e.querySelector("#cometChatIframe")){var _=r.Z.getGisStaticDomain()+"/js/chat/comet-chat-loader.js",p=d.Z.getGroupId();l.ZP.getCurrentPhase(l.ZP.phase.IN_CALL)&&s.Z.disableBodyScrollExcludingContainer(e),o.Z.initializeSourceLessIframeWithScriptInjection("cometChat",e,_,{GISAPP:{eventService:C.Z,serverInjectionService:r.Z,uiUtilitiesService:s.Z,accessibilityService:c.Z,isChatTransparent:u,GIS_CONSTANTS:{CHAT:{AUTH_KEY:r.Z.getCometChatAuthKey(),APP_ID:r.Z.getCometChatAppId(),REGION:r.Z.getCometChatRegion(),RETAILER_NAME:r.Z.getRetailerName()}},getGisStaticChatDomain:r.Z.getGisStaticChatDomain(),chatNotificationService:E.Z,stateService:{getSessionReconnected:l.ZP.getCurrentPhase(l.ZP.phase.IN_CALL)?l.ZP.getSessionReconnected:function(){return!0},setSessionReconnected:l.ZP.getCurrentPhase(l.ZP.phase.IN_CALL)?l.ZP.setSessionReconnected:function(){},getCurrentPhase:l.ZP.getCurrentPhase(),groupID:p},locale:l.ZP.getLocale(),groupID:p,userUUID:d.Z.getChatUserUUID()},isCloseButtonEnabled:!!t,isHeaderDisabled:!a,hideChat:function(){"function"==typeof t&&t()},onCometChatLoaded:g.Z.initializeCometChat.bind(null,!0,!!n),isCrossCommunication:!0,console:{error:S},inactivityNotification:{isEnabled:function(){return i.Z.isChatFirstCall()},inactivityTimeoutReachedCallback:d.Z.inactivityTimeoutReached,inactivityTimeoutClearedCallback:d.Z.inactivityTimeoutCleared,timeout:A.inactivityNotificationTimeout}})}},a.Z.override("chatLoadService",A);var p,T,S=(p="cometChat",T=0,function(e,t){T<20?"string"==typeof t[0]&&"object"==typeof t[1]?u.Z.error(p,t[0],t[1]):"object"==typeof t[0]&&"string"==typeof t[1]?u.Z.error(p,t[1],t[0]):"object"==typeof t[0]?u.Z.error(p,"comet chat error",t[0]):"string"==typeof t[0]&&u.Z.error(p,t[0]):e("GIS- comet chat error",t),T+=1}),m={ERROR:S};const v={chatWidgetInit:A.loadReactUIKitBundle,loadChatInIframe:A.loadChatInIframe,FOR_INTERNAL_TESTING:m}},4255:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(5940),a=n(2342),o={},s="chatLogoutService";o.logout=function(){if(!t){var e=document.getElementById("cometChatIframe");if(e&&e.contentWindow)var t=e.contentWindow.CometChat}a.ZP.getCometChatLoginStatus()&&t&&t.logout().then((function(){a.ZP.setCometChatLoginStatus(!1),i.Z.info(s,"Logout completed successfully")}),(function(e){i.Z.error(s,"Logout failed with exception:",e)}))};const r={logout:o.logout}},9289:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i,a=n(2342),o=n(5940),s={},r="chatNotificationService";function l(e,t,n){a.ZP.getUpdateMessageId()&&(i=n.id,a.ZP.setUpdateMessageId(!1)),function(e,t,n){(new e.MessagesRequestBuilder).setLimit(100).setMessageId(n).setGUID(t).build().fetchNext().then((function(e){o.Z.info(r,"Message list fetched:",e),window.dispatchEvent(new GisCustomEvent("messageReceived",{detail:e}))}),(function(e){o.Z.info(r,"Message fetching failed with error:",e)}))}(e,t,i-1)}s.addMessageListener=function(e,t){a.ZP.setUpdateMessageId(!0),e.addMessageListener("UNIQUE_LISTENER_ID",new e.MessageListener({onTextMessageReceived:function(n){l(e,t,n)},onMediaMessageReceived:function(e){o.Z.info(r,"Media message received successfully",e),l(t,e)},onCustomMessageReceived:function(e){o.Z.info(r,"Custom message received successfully",e),l(t,e)}}))};const c={addMessageListener:s.addMessageListener,sendNotifcation:l}},1875:(e,t,n)=>{"use strict";n.d(t,{Z:()=>$});var i,a,o,s,r,l=n(2342),c=n(7448),d=n(3203),u=n(6758),_=n(6628),C=n(4843),g=n(1638),E=n(6575),A=n(7383),p=n(9362),T=n(3515),S=n(861),m=!1,v=!1,f=_.Z.getLabels(),I="",L=!1,b=!1,y=!1,O=g.Z.CHAT.INACTIVITY.USERNAME.AUTO_SUBMIT_LIMIT,h={},Z=!1,N=!1,w=function(){},R=function(){return!0},D={panelID:null,formContainerID:null,submitButtonID:null,inputID:null,chatIconID:null,type:null,errorElemID:null,onValid:null,isShopStream:null},P=function(e){return function(){b&&e()}},U=P((function(){y||(y=setTimeout(M,1e3*h.getInactivityTimeoutInSeconds()))})),M=P((function(){var e=document.querySelector("#"+D.formContainerID).getAttribute("id");d.Z.hide(e),G(!v&&m?i:g.Z.CHAT.INACTIVITY.USERNAME.DEFAULT_NAME,r),A.Z.logEvent(A.Z.GIS_EVENTS.CHAT_USERNAME_AUTO_SUBMIT_TRIGGERED)}));h.getInactivityTimeoutInSeconds=function(){return O};function B(e,t,n,i,a,o){e.preventDefault();let s=!1;var r,c=document.querySelector("#"+t).getAttribute("id");if(!L)return d.Z.hide(c),void V(0,i,a,o);GISAPP.chatUtilService.getChatUserName()&&""!==GISAPP.chatUtilService.getChatUserName()&&(s=!0),r=function(e,t){var n=document.querySelector("#"+i);!e&&(!t||t&&s)&&m?(d.Z.hide(c),V(0,i,a,o)):(v=!0,I=f.chat_room_full_message,H(a,n,o),o.classList.remove("valid"),setTimeout(W.bind(null,a,n,o),3e5),A.Z.logEvent(A.Z.GIS_EVENTS.CHAT_ROOM_FULL_MESSAGE_SHOWN))},E.Z.getGroupCount(l.ZP.getCallUUID(),(function(e,t){r(e,t)}))}function k(e,t,n){var a=e.currentTarget,o=a.innerText.trim();K(a,t,n);var s=!g.Z.REGEX.SPECIAL_SYMBOL.test(o),r=g.Z.REGEX.EMOTICON.test(o);s&&o.length>0?(I=f.chat_special_error_msg,m=!1,H(a,t,n)):r&&o.length>0?(I=f.chat_emoticon_error_msg,m=!1,H(a,t,n)):o.length<1||o===_.Z.getLabels().chat_userName_firstInput?(m=!1,W(a,t,n)):o.length<3?(I=f.chat_userName_infoTooShort,m=!1,H(a,t,n)):o.length>20?(I=f.chat_userName_infoTooLong,m=!1,H(a,t,n)):(i=a.innerText,m=!0,v=!1,K(a,t,n))}function V(e,t,n,a){var o=document.querySelector("#"+t);if(!l){var s=document.getElementById("cometChatIframe");if(s&&s.contentWindow)var l=s.contentWindow.CometChat}m?Z?(w(),T.Z.updateUsername(l,n.innerText.trim())):G(i,r):H(n,o,a)}function G(e,t,n){clearTimeout(y),b&&(y=!0),l.ZP.setChatUserName(e),r=t,Y()?u.Z.loadChatInIframe(r,a,!1,R(),N):setTimeout((function(){var e=l.ZP.getChatInitiated();!L&&!n||e?"signal:CHAT_INITIATED"!==D.type||e?e||D.type||q().enableChat(!1):(l.ZP.setChatInitiated(!0),q().enableChat(!0)):(u.Z.loadChatInIframe(r,a,!0,R()),l.ZP.setChatInitiated(!0))}),250)}function x(e,t,n,i,a,o,s){if(13===e.keyCode){if(v||!m)return void e.preventDefault();B(e,t,0,i,a,o)}else k(e,s,o);a.innerHTML!==_.Z.getLabels().chat_userName_firstInput&&d.Z.removeClass(a,"gis-placeholder")}function H(e,t,n){var i=t;e.classList.remove("valid"),e.classList.add("not-valid"),n.classList.remove("valid"),i.innerText=I,""!==i.innerText&&d.Z.show(i.id)}function K(e,t,n){var i=t;e.classList.remove("not-valid"),e.classList.add("valid"),n.classList.add("valid"),i.innerText="",d.Z.hide(t.id)}function W(e,t,n){K(e,t,n),m?(e.classList.add("valid"),n.classList.add("valid")):(e.classList.remove("valid"),n.classList.remove("valid")),v=!1}function F(){return!!c.Z.isLocalStorageAccessible()&&!!C.Z.getChatUserName()}function Y(){return C.Z.getChatUserName()}function q(){return s}p.Z.override("chatUserNameService",h);const $={openEnterUserForm:function(e,t,n,i,s,c,u,C,g,E,A,p,T){(function(e,t,n,i,a,o,s,r,l){D={panelID:e,formContainerID:t,submitButtonID:n,inputID:i,chatIconID:a,type:o,errorElemID:s,onValid:r,isShopStream:l}})(e,t,n,i,s,c,u,C,g),w=p||function(){},R="function"==typeof T?T:function(){return!0},Z=A;var y=l.ZP.getChatInitiated(),O=l.ZP.getChatInitialized(),h=document.querySelector("#"+e);r=h;var N=document.querySelector("#"+n),P=document.querySelector("#"+i),M=l.ZP.getCurrentPhase();o=document.querySelector("#"+u),a=C,L=g,b=E,S.Z.registerInteractiveElement(P,1),S.Z.registerInteractiveElement(N,1),P.innerText.trim()||f.chat_userName_firstInput,F()&&(N.classList.add("valid"),m=!0),O||y||d.Z.show(t),h&&M===l.ZP.phase.IN_CALL&&!l.ZP.isChatFirstCall()&&d.Z.show(e),null!==s&&d.Z.hide(s),function(e,t,n,i,a,s){s.addEventListener("click",(function(t){!v&&m&&B(t,e,0,n,i,s)}),!1),i.addEventListener("keydown",(function(t){x(t,e,0,n,i,s,a)}),!1),i.addEventListener("keyup",(function(t){x(t,e,0,n,i,s,a)}),!1),i.addEventListener("paste",(function(e){e.preventDefault()})),i.addEventListener("input",(function(e){!function(e){e.currentTarget.innerText.length>0&&e.currentTarget.classList.contains("not-valid")&&(e.currentTarget.classList.remove("not-valid"),I="",d.Z.hide(o.id))}(e)})),i.addEventListener("focus",(function(e){e.target.innerHTML===_.Z.getLabels().chat_userName_firstInput&&(e.target.innerHTML="")}),!1),i.addEventListener("blur",(function(e){var t=e.target.innerHTML;""===t||"
"===t?(e.target.innerHTML=_.Z.getLabels().chat_userName_firstInput,d.Z.addClass(i,"gis-placeholder"),d.Z.removeClass(i,"valid")):e.target.innerHTML!==_.Z.getLabels().chat_userName_firstInput&&k(e,a,s)}),!1)}(t,0,u,P,o,N),P.innerHTML||(P.innerHTML=P.dataset.placeholder),P.dataset.placeholder!==_.Z.getLabels().chat_userName_firstInput?(P.blur(),d.Z.addClass(P,"valid")):P.innerHTML===P.dataset.placeholder&&(d.Z.addClass(P,"gis-placeholder"),d.Z.removeClass(P,"valid"),d.Z.removeClass(N,"valid"),m=!1),U()},isNameConfigured:F,getUserName:Y,setCallDOMProc:function(e){s=e},setTransparentChat:function(e){N=e},submitUsername:G,getCallDOMProc:q}},3515:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var i=n(5940),a=n(6628),o=n(2342),s=n(69),r=n(4843),l=n(6758),c=n(9289),d=n(6575),u=n(1638),_=n(3294),C={},g="chatUserService";C.createUser=function(e,t,n,a,o,s,r){var l=new e.User(n);l.setName(t),e.createUser(l,o).then((function(t){i.Z.info(g,"user created",t),C.login(e,l.uid,o,a,s,r)}),(function(e){i.Z.error(g,"error",e)}))},C.updateUsername=function(e,t){var n=new e.User(r.Z.getChatUserUUID());n.setName(t),e.updateCurrentUserDetails(n).then((function(){o.ZP.setChatUserName(t)}),(function(e){i.Z.error(g,"update username failed: ",e)}))},C.login=function(e,t,n,E,A,p){e&&e.login(t,n).then((function(t){i.Z.info(g,"Login Successful: ",t);var n=e.GROUP_TYPE.PUBLIC;if(o.ZP.getCurrentPhase()===o.ZP.phase.IN_CALL&&c.Z.addMessageListener(e,A),_.Z.publish(u.Z.EVENT_NAMES.COMETCHAT_LOGGED_IN),E||p)l.Z.chatWidgetInit();else{var r="in call - "+a.Z.getRetailerKey()+" - "+s.Z.getFormattedTime(new Date);d.Z.createGroup(e,A,r,n,""),o.ZP.setChatInitiated(!0),o.ZP.setChatInitialized(!0)}o.ZP.setCometChatLoginStatus(!0)}),(function(n){"ERR_UID_NOT_FOUND"!==n.code&&i.Z.error(g,"Login failed with exception:",n),C.createUser(e,r.Z.getChatUserName(),t,E,a.Z.getCometChatAuthKey(),A,p)}))};const E={login:C.login,createUser:C.createUser,getUser:C.getUser,getUserList:C.getUserList,getLoggedUser:C.getLoggedUser,updateUsername:C.updateUsername}},4843:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var i=n(4255),a=n(2342),o=n(6628),s=n(8110),r=n(9362),l=n(3294),c=n(5940),d=n(1638),u={},_="chatUtilService";u.getGroupId=function(){return a.ZP.getCallUUID()},u.getCometChatUser=function(){return JSON.parse(JSON.parse(localStorage.getItem(o.Z.getCometChatAppId()+":common_store/user")))},u.getChatUserName=function(){var e=u.getCometChatUser();return e&&e.name?e.name:a.ZP.getChatUserName()},u.getChatUserUUID=function(){var e=u.getCometChatUser();return e&&e.uid?e.uid:s.Z.getUserUUID()},u.inactivityTimeoutReached=function(){l.Z.publish(d.Z.EVENT_NAMES.CHAT_INACTIVITY_TIMEOUT_REACHED)},u.inactivityTimeoutCleared=function(){l.Z.publish(d.Z.EVENT_NAMES.CHAT_INACTIVITY_TIMEOUT_CLEARED)},u.logoutCometChat=function(){try{i.Z.logout(),localStorage.removeItem(o.Z.getCometChatAppId()+":common_store/user")}catch(e){c.Z.error(_,"Logout failed with exception:",e)}},r.Z.override(_,u);const C={getChatUserUUID:u.getChatUserUUID,getChatUserName:u.getChatUserName,getGroupId:u.getGroupId,isInactivityNotificationEnabled:u.isInactivityNotificationEnabled,inactivityTimeoutReached:u.inactivityTimeoutReached,inactivityTimeoutCleared:u.inactivityTimeoutCleared,logout:u.logoutCometChat}},7448:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(5940),a=n(2342),o="clientStorageService",s=i.Z,r="gis",l={};function c(e){try{var t=JSON.parse(localStorage.getItem(r))||{};return void 0!==t[e]?t[e]:null}catch(e){return s.warn(o,"Error while reading local storage",e),null}}const d={storageKeys:{SERVICE_AWARENESS_KEY:"gis_visit",BROADCAST_PREVIEW_KEY:"gis-broadcast-preview-display",CHAT_CALL_USER_UUID:"gis-chat-call-user-uuid",CHAT_USER_NAME:"gis-chat-user-name",VIEWED_BROADCAST_UUID:"viewed-broadcast-uuid",VIEWED_BROADCAST_TYPE:"viewed-broadcast-type",VIDEO_VIEWED:"video-viewed",CTA_AUTO_PLAY_DISMISSED:"ctaAutoPlayDismissed",CTA_AUTO_PLAY_MAXIMISED_SHOWN:"ctaAutoPlayMaximisedShown",BROADCAST_CONTACT_CAPTURE:"broadcast-contact-capture",CTA_AWARENESS_MESSAGE_CLOSED:"cta-awareness-message-closed",POLLING_START_TIMESTAMP:"pollingStartTimeStamp",ONE_TO_ONE_ENGAGEMENT:"oneToOneEngagement",CTA_ROUNDEL_CLOSED:"cta-roundel-closed",BROWSER_FEATURE_SUPPORT:"browser-feature-support",ACTIVE_MVT:"active-mvt"},getItem:c,setItem:function(e,t){try{var n=localStorage.getItem(r);(l=null==n?{}:JSON.parse(n))[e]=t,localStorage.setItem(r,JSON.stringify(l))}catch(e){s.warn(o,"Error while writing to local storage",e)}},hasProperty:function(e){try{return Object.prototype.hasOwnProperty.call(localStorage,r)&&null!=c(e)}catch(e){return s.warn(o,"Error while checking property in local storage",e),!1}},removeItem:function(e){try{var t=localStorage.getItem(r);t&&(l=JSON.parse(t)),l[e]&&delete l[e],localStorage.setItem(r,JSON.stringify(l))}catch(e){s.warn(o,"Error while deleting from local storage",e)}},isLocalStorageAccessible:function(){try{return localStorage.setItem("test","test"),localStorage.removeItem("test"),!0}catch(e){return s.warn(o,"Unable to access local storage",e),!1}},clearLocalStorageFromOpenTokProps:function(){try{a.ZP.setOTData({opentok_client_id:localStorage.getItem("opentok_client_id"),debug:localStorage.getItem("debug")}),localStorage.removeItem("opentok_client_id"),localStorage.removeItem("debug")}catch(e){s.warn(o,"Error while deleting from local storage",e)}},restoreOpenTokPropsToLocalStorage:function(){localStorage.setItem("opentok_client_id",a.ZP.getOTData().opentok_client_id),localStorage.setItem("debug",a.ZP.getOTData().debug)}}},2790:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(6628),a=n(1477),o=i.Z.getSystemConfig();function s(){return document.cookie}function r(){return navigator.cookieEnabled}function l(){return o.cookie&&o.cookie.enabled}const c={getAllCookies:s,getCookie:function(e){var t=e;if(t+="=",!s())return null;for(var n=s().split(";"),i=0;iu});var i=n(2342),a=n(6229),o=navigator.userAgent.match(/iPad/i)||!1,s={ANDROID:"android",IOS:"ios"};function r(){return i.ZP.getOs()==s.ANDROID}function l(){return i.ZP.getOs()==s.IOS&&!c()}function c(){return(o||function(){var e=a.Z.getWindow().navigator;if(e.maxTouchPoints&&e.maxTouchPoints>2){if(e.platform)return/MacIntel/.test(e.platform);if(e.userAgentData.platform)return/MacIntel/.test(e.userAgentData.platform)}return!1}()||"apple ipad"==i.ZP.getDeviceName())&&"instagram"!==i.ZP.getBrowser()}function d(){return r()||l()}const u={isAndroid:r,isIos:l,isIPad:c,isMobileDevice:d,getDeviceOS:function(){var e,t,n=navigator.userAgent,i=n.match(/(windows|linux|mac os|iPhone OS)/i)||[];if(null==i[0])return"Android"==(e=n.match(/(Android)/i)||[])[0]?"android":"other";switch(t=i[0].toLowerCase()){case"linux":return"Android"==(e=n.match(/(Android)/i)||[])[0]?"android":t;case"mac os":if("Macintosh"===(e=n.match(/(Macintosh)/i)||[])[0])return"macintosh";if("iPad"===(e=n.match(/(iPad|iPhone)/i)||[])[0]||"iPhone"===e[0])return"ios";break;case"iphone os":if("iPad"===(e=n.match(/(iPad|iPhone)/i)||[])[0]||"iPhone"===e[0])return"ios";break;case"windows":return"windows"}return!1},isPhoneOrTablet:function(){return d()||c()}}},7383:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var i,a,o,s=n(2342),r=n(69),l=n(5940),c=n(4999),d=n(6628),u="eventLoggerService",_={SCRIPT_INIT_SUCCESS:"SCRIPT_INIT_SUCCESS",SCRIPT_INIT_FAILED:"SCRIPT_INIT_FAILED",SERVICE_OFFERED:"SERVICE_OFFERED",CALL_USER_BLOCKED:"CALL_USER_BLOCKED",SERVICE_NOT_OFFERED:"SERVICE_NOT_OFFERED",PAGE_METADATA:"PAGE_METADATA_EXTRACTED",PAGE_NAVIGATE:"PAGE_NAVIGATED",SCRIPT_BROWSER_NOT_SUPPORTED:"SCRIPT_BROWSER_NOT_SUPPORTED",CTA_POWEREDBYEMPLIFI_TEXT_CLICKED:"CTA_POWEREDBYEMPLIFI_TEXT_CLICKED",CALL_CTA_SHOWN:"CALL_CTA_SHOWN",CALL_CTA_SHOWN_UNAVAILABLE:"CALL_CTA_SHOWN_UNAVAILABLE",CALL_CTA_CLICK:"CALL_CTA_CLICKED",CALL_CTA_CLICK_UNAVAILABLE:"CALL_CTA_CLICKED_UNAVAILABLE",BROADCAST_CTA_SHOWN:"BROADCAST_CTA_SHOWN",BROADCAST_CTA_CLICK:"BROADCAST_CTA_CLICKED",BROADCAST_REPLAY_CTA_SHOWN:"REPLAY_CTA_SHOWN",BROADCAST_REPLAY_CTA_CLICK:"REPLAY_CTA_CLICKED",CALL_ENDED_BY_CLERK:"CALL_ENDED_BY_CLERK",CALL_ENDED_NETWORK_DISCONNECT:"CALL_ENDED_NETWORK_DISCONNECT",CALL_ENDED_FORCE:"CALL_ENDED_FORCE",CALL_RECONNECTING:"CALL_RECONNECTING",CALL_RECONNECTED:"CALL_RECONNECTED",ORDER_CONFIRMATION_PAGE:"ORDER_CONFIRMATION_PAGE",MIC_SHARE_INFO_CLICKED:"MIC_SHARE_INFO_CLICKED",SUPPORT_INFO_LINK_CLICKED:"SUPPORT_INFO_LINK_CLICKED",DISCLAIMER_CLICKED:"DISCLAIMER_CLICKED",CALL_CLERK_STREAM_RECEIVED:"CALL_CLERK_STREAM_RECEIVED",TAB_INACTIVE:"TAB_INACTIVE",CTA_AUTOPLAY_SHOWN:"CTA_AUTOPLAY_SHOWN",CTA_AUTOPLAY_CLICKED:"CTA_AUTOPLAY_CLICKED",CTA_AUTOPLAY_CLOSED:"CTA_AUTOPLAY_CLOSED",CTA_AUTOPLAY_MINIMISED_CLICKED:"CTA_AUTOPLAY_MINIMISED_CLICKED",CTA_AUTOPLAY_ENDED:"CTA_AUTOPLAY_ENDED",CTA_AUTOPLAY_UNMUTE:"CTA_AUTOPLAY_UNMUTE",CTA_AUTOPLAY_MUTE:"CTA_AUTOPLAY_MUTE",CTA_AUTOPLAY_FULLSCREEN:"CTA_AUTOPLAY_FULLSCREEN",CTA_AUTOPLAY_TOP_TRIGGERED:"CTA_AUTOPLAY_TOP_TRIGGERED",CTA_AUTOPLAY_SCROLLED_TRIGGERED:"CTA_AUTOPLAY_SCROLLED_TRIGGERED",CTA_AUTOPLAY_AUTOPLAY:"CTA_AUTOPLAY_AUTOPLAY",CTA_AUTOPLAY_AUTO_MINIMISED:"CTA_AUTOPLAY_AUTO_MINIMISED",CTA_AUTOPLAY_KEEP_WATCHING_SHOWN:"CTA_AUTOPLAY_KEEP_WATCHING_SHOWN",CTA_AUTOPLAY_KEEP_WATCHING_CLICKED:"CTA_AUTOPLAY_KEEP_WATCHING_CLICKED",BROADCAST_CONTACT_CAPTURE_SUBMITTED:"BROADCAST_CONTACT_CAPTURE_SUBMITTED",SEGMENT_CLICKED:"SEGMENT_CLICKED",SEGMENT_VIEW_DURATION:"SEGMENT_VIEW_DURATION",IN_CALL_CHAT_SHOWN:"IN_CALL_CHAT_SHOWN",ADD_TO_BASKET_SHOWN:"ADD_TO_BASKET_SHOWN",ADD_TO_BASKET_ACCEPTED:"ADD_TO_BASKET_ACCEPTED",ADD_TO_BASKET_DENIED:"ADD_TO_BASKET_DENIED",ADD_TO_BASKET_SUCCESS:"ADD_TO_BASKET_SUCCESS",ADD_TO_BASKET_ERROR:"ADD_TO_BASKET_ERROR",ADD_TO_RECOMMENDED:"ADD_TO_RECOMMENDED",CTA_AWARENESS_MESSAGE_CLOSED:"CTA_AWARENESS_MESSAGE_CLOSED",CALL_CTA_AWARENESS_MESSAGE_SHOWN:"CALL_CTA_AWARENESS_MESSAGE_SHOWN",CTA_AWARENESS_CLERK_UNAVAILABLE_MESSAGE_SHOWN:"CTA_AWARENESS_CLERK_UNAVAILABLE_MESSAGE_SHOWN",BROADCAST_CTA_AWARENESS_MESSAGE_SHOWN:"BROADCAST_CTA_AWARENESS_MESSAGE_SHOWN",REPLAY_CTA_AWARENESS_MESSAGE_SHOWN:"REPLAY_CTA_AWARENESS_MESSAGE_SHOWN",CALL_CTA_AWARENESS_ACTION_MESSAGE_CLICKED:"CALL_CTA_AWARENESS_ACTION_MESSAGE_CLICKED",CTA_AWARENESS_ACTION_CLERK_UNAVAILABLE_CLICKED:"CTA_AWARENESS_ACTION_CLERK_UNAVAILABLE_CLICKED",BROADCAST_CTA_AWARENESS_ACTION_MESSAGE_CLICKED:"BROADCAST_CTA_AWARENESS_ACTION_MESSAGE_CLICKED",REPLAY_CTA_AWARENESS_ACTION_MESSAGE_CLICKED:"REPLAY_CTA_AWARENESS_ACTION_MESSAGE_CLICKED",CTA_BAR_MESSAGE_CLICKED:"CTA_BAR_MESSAGE_CLICKED",CALL_CTA_SHOWN_ON_BROADCAST:"CALL_CTA_SHOWN_ON_BROADCAST",CALL_CTA_CLICK_FROM_BROADCAST:"CALL_CTA_CLICK_FROM_BROADCAST",CALL_CTA_CLICK_UNAVAILABLE_ON_BROADCAST:"CALL_CTA_CLICK_UNAVAILABLE_ON_BROADCAST",CALL_CTA_SHOWN_ON_BROADCAST_UNAVAILABLE:"CALL_CTA_SHOWN_ON_BROADCAST_UNAVAILABLE",CALL_CTA_SHOWN_ON_REPLAY:"CALL_CTA_SHOWN_ON_REPLAY",CALL_CTA_CLICK_FROM_REPLAY:"CALL_CTA_CLICK_FROM_REPLAY",CALL_CTA_CLICK_UNAVAILABLE_ON_REPLAY:"CALL_CTA_CLICK_UNAVAILABLE_ON_REPLAY",CALL_CTA_SHOWN_ON_REPLAY_UNAVAILABLE:"CALL_CTA_SHOWN_ON_REPLAY_UNAVAILABLE",AUTO_CALL_USER:"AUTO_CALL_USER",IS_CLERK_AVAILABLE_REQUEST_SENT:"IS_CLERK_AVAILABLE_REQUEST_SENT",IS_CLERK_AVAILABLE_REQUEST_RECEIVED:"IS_CLERK_AVAILABLE_REQUEST_RECEIVED",RESPECT_MESSAGE_DISPLAYED_ON_CONNECTING_SCREEN:"RESPECT_MESSAGE_DISPLAYED_ON_CONNECTING_SCREEN",TAP_TO_FOCUS_BUTTON_CLICKED:"TAP_TO_FOCUS_BUTTON_CLICKED",CHAT_INITIATED:"CHAT_INITIATED",CTA_ROUNDEL_CLOSED:"CTA_ROUNDEL_CLOSED",SHOP_STREAM_PLAY_BUTTON_CLICKED:"SHOP_STREAM_PLAY_BUTTON_CLICKED",SHOP_STREAM_PAUSE_BUTTON_CLICKED:"SHOP_STREAM_PAUSE_BUTTON_CLICKED",SHOP_STREAM_USER_DURATION:"SHOP_STREAM_USER_DURATION",CHAT_SHOWN_ON_SHOP_STREAM:"CHAT_SHOWN_ON_SHOP_STREAM",PRODUCT_CAROUSEL_SHOWN_ON_SHOP_STREAM:"PRODUCT_CAROUSEL_SHOWN_ON_SHOP_STREAM",CHAT_HIDDEN_ON_SHOP_STREAM:"CHAT_HIDDEN_ON_SHOP_STREAM",PRODUCT_CAROUSEL_HIDDEN_ON_SHOP_STREAM:"PRODUCT_CAROUSEL_HIDDEN_ON_SHOP_STREAM",CHAT_SHOWN_ON_ONE_TO_ONE:"CHAT_SHOWN_ON_ONE_TO_ONE",SHOP_STREAM_CHAT_BUTTON_CLICKED:"SHOP_STREAM_CHAT_BUTTON_CLICKED",SHOP_STREAM_PRODUCT_CAROUSEL_BUTTON_CLICKED:"SHOP_STREAM_PRODUCT_CAROUSEL_BUTTON_CLICKED",SHOP_STREAM_FULL_SCREEN_BUTTON_CLICKED:"SHOP_STREAM_FULL_SCREEN_BUTTON_CLICKED",ONE_TO_ONE_CHAT_BUTTON_CLICKED:"ONE_TO_ONE_CHAT_BUTTON_CLICKED",SHOP_STREAM_FULL_SCREEN:"SHOP_STREAM_FULL_SCREEN",SHOP_STREAM_INITIAL_SCREEN:"SHOP_STREAM_INITIAL_SCREEN",PRODUCT_CARD_PROMPTED:"PRODUCT_CARD_PROMPTED",ADD_TO_CART_CLICKED_ON_PRODUCT_CARD:"ADD_TO_CART_CLICKED_ON_PRODUCT_CARD",SAVE_TO_RECOMMENDED_CLICKED_ON_PRODUCT_CARD:"SAVE_TO_RECOMMENDED_CLICKED_ON_PRODUCT_CARD",PRODUCT_SUCCESSFULLY_ADDED_TO_CAROUSEL:"PRODUCT_SUCCESSFULLY_ADDED_TO_CAROUSEL",PRODUCT_CLICKED_ON_PRODUCT_CAROUSEL:"PRODUCT_CLICKED_ON_PRODUCT_CAROUSEL",DETAILED_PRODUCT_CARD_DISPLAYED:"DETAILED_PRODUCT_CARD_DISPLAYED",ADD_TO_CART_CLICKED_ON_DETAILED_CARD:"ADD_TO_CART_CLICKED_ON_DETAILED_CARD",MORE_INFO_CLICKED_ON_DETAILED_CARD:"MORE_INFO_CLICKED_ON_DETAILED_CARD",CLOSED_BUTTON_CLICKED_ON_DETAILED_CARD:"CLOSED_BUTTON_CLICKED_ON_DETAILED_CARD",PRODUCT_CAROUSEL_HIDDEN:"PRODUCT_CAROUSEL_HIDDEN",PRODUCT_CAROUSEL_OPENED:"PRODUCT_CAROUSEL_OPENED",PRODUCT_CAROUSEL_SCROLLED:"PRODUCT_CAROUSEL_SCROLLED",ADD_A_PERSON_BUTTON_CLICKED:"ADD_A_PERSON_BUTTON_CLICKED",CONSUMER_JOINED_THE_CALL:"CONSUMER_JOINED_THE_CALL",CHAT_ROOM_FULL_MESSAGE_SHOWN:"CHAT_ROOM_FULL_MESSAGE_SHOWN",PROGRESS_BAR_CLICKED:"PROGRESS_BAR_CLICKED",PROGRESS_BAR_DRAGGED:"PROGRESS_BAR_DRAGGED",CALL_ENDED_DUE_TO_CONSUMER_INACTIVITY:"CALL_ENDED_DUE_TO_CONSUMER_INACTIVITY",CHAT_USERNAME_AUTO_SUBMIT_TRIGGERED:"CHAT_USERNAME_AUTO_SUBMIT_TRIGGERED",LIVE_PAGE_INITIATED:"LIVE_PAGE_INITIATED",LIVE_PAGE_SHOW_MORE_BUTTON_CLICKED:"LIVE_PAGE_SHOW_MORE_BUTTON_CLICKED",LIVE_PAGE_ITEM_IMAGE_CLICKED:"LIVE_PAGE_ITEM_IMAGE_CLICKED",LIVE_PAGE_WATCH_BUTTON_CLICKED:"LIVE_PAGE_WATCH_BUTTON_CLICKED",LIVE_PAGE_ADD_TO_CALENDAR_BUTTON_CLICKED:"LIVE_PAGE_ADD_TO_CALENDAR_BUTTON_CLICKED",ONE_TO_ONE_ENGAGEMENT_VIDEO_CLICKED:"ONE_TO_ONE_ENGAGEMENT_VIDEO_CLICKED",CONNECT_JOURNEY_ORIENTATION_CHANGE_TO_PORTRAIT_MOBILE:"CONNECT_JOURNEY_ORIENTATION_CHANGE_TO_PORTRAIT_MOBILE",CONNECT_JOURNEY_ORIENTATION_CHANGE_TO_LANDSCAPE_MOBILE:"CONNECT_JOURNEY_ORIENTATION_CHANGE_TO_LANDSCAPE_MOBILE"},C={wheel:!1,scroll:!1,mouseUp:0},g=window.gisProfilingStartTime||performance.now(),E=0;function A(e,t){var n=t;if(!s.ZP.isDataCollectionDisabled()){n||(n={}),"object"!=typeof n&&(n={});var i={};Object.keys(n).forEach((function(e){i[e]=n[e]})),s.ZP.getABTestId()&&(i.abTestId=s.ZP.getABTestId(),i.abTestGroup=s.ZP.getABTestGroup()),s.ZP.getActiveABTests()&&(i.activeABTests=s.ZP.getActiveABTests()),s.ZP.getCallUUID()&&(i.callUUID=s.ZP.getCallUUID()),s.ZP.getSocialRedirectionInfo()&&null!==s.ZP.getSocialRedirectionInfo()&&(i.redirectedFrom=s.ZP.getSocialRedirectionInfo()),i.activity=function(e){var t=performance.now(),n=parseFloat((t-g).toFixed(3)),i=o?t-o:0,a={};return a.timeElapsed=n,(e===_.CALL_CTA_CLICK||e===_.BROADCAST_CTA_CLICK||e===_.BROADCAST_REPLAY_CTA_CLICK)&&(a.wheel=C.wheel,a.scroll=C.scroll),C.mouseUp>0&&(a.clicks=C.mouseUp),a.totalActiveTime=parseFloat((E+i).toFixed(3)),a}(e),i.referrer||(i.referrer=r.Z.getReferer()),l.Z.debug(u,"Logging event "+e+", "+JSON.stringify({data:i,CallUserUUID:s.ZP.getCallUserUUID(),pageUUID:s.ZP.getPageUUID()}));var a=r.Z.utf8ToBase64(JSON.stringify(i));if(c.Z.logEvent(e,s.ZP.getCallUserUUID(),s.ZP.getPageUUID(),a),d.Z.getSystemConfig().analytics&&d.Z.getSystemConfig().analytics.enabled){var A={};A.eventName=e,A.retailerKey=d.Z.getRetailerKey(),A.userUUID=s.ZP.getCallUserUUID(),A.pageUUID=s.ZP.getPageUUID(),A.data=i,c.Z.logEventOnStream(encodeURIComponent(A.retailerKey),A)}}}function p(){var e=performance.now();document[i]?(E+=e-o,o=0,A(_.TAB_INACTIVE),s.ZP.setPageStatus(s.ZP.pageStatus.INACTIVE)):(o=e,s.ZP.setPageStatus(s.ZP.pageStatus.ACTIVE)),l.Z.debug(u,"visibility = "+document[i]+" totalActiveTime = "+E+" ms")}function T(){C.scroll=!0,window.removeEventListener("scroll",T)}function S(){C.wheel=!0,window.removeEventListener("wheel",S)}function m(){C.mouseUp+=1}void 0!==document.hidden?(i="hidden",a="visibilitychange"):void 0!==document.msHidden?(i="msHidden",a="msvisibilitychange"):void 0===document.webkitHidden&&(i="webkitHidden",a="webkitvisibilitychange");const v={GIS_ACTIONS:{CLICKED:"_CLICKED",CLOSED:"_CLOSED",SHOWN:"_SHOWN"},GIS_EVENTS:_,GIS_VIEWS:{DIRECT_CALL:"DIRECT_CALL_VIEW",DIRECT_CALL_BTN:"DIRECT_CALL_VIEW_BUTTON",INVALID_DIRECT_CALL:"INVALID_DIRECT_CALL_VIEW",INVALID_DIRECT_CALL_BTN:"INVALID_DIRECT_CALL_VIEW_BUTTON",CONNECT:"CONNECT_VIEW",CONNECT_BUTTON:"_CONNECT_BUTTON",BOOKING_SCHEDULE_BUTTON:"BOOKING_SCHEDULE_BUTTON",EXTERNAL_CHAT_BUTTON:"EXTERNAL_CHAT_BUTTON",LIVE_CHAT_BUTTON:"LIVE_CHAT_BUTTON",CONNECTING:"CONNECTING_VIEW",CALL:"CALL_VIEW",SURVEY:"SURVEY_VIEW",NO_MIC:"NO_MIC_VIEW",MIC_BLOCKED:"MIC_BLOCKED_VIEW",CLERK_UNAVAILABLE_CONNECT:"CLERK_UNAVAILABLE_CONNECT",NO_CLERK_AVAILABLE:"NO_CLERK_AVAILABLE_VIEW",BROWSER_UNSUPPORTED:"BROWSER_UNSUPPORTED_VIEW",MIC_SETUP:"MIC_SETUP_VIEW",MIC_DENIED:"MIC_DENIED_VIEW",MIC_AND_CAMERA_SETUP:"MIC_AND_CAMERA_SETUP_VIEW",MIC_OPTIN:"MIC_OPTIN_VIEW",MIC_ALLOW_BUTTON:"_MIC_ALLOW_BUTTON",MIC_DONT_ALLOW_BUTTON:"_MIC_DONT_ALLOW_BUTTON",MIC_AND_CAMERA_ALLOW_BUTTON:"MIC_AND_CAMERA_ALLOW_BUTTON",MIC_AND_CAMERA_CANCEL_BUTTON:"MIC_AND_CAMERA_CANCEL_BUTTON",HUMANIZED_MIC_SHARE:"HUMANIZED_MIC_SHARE_VIEW",BROADCAST:"BROADCAST_VIEW",BROADCAST_REPLAY:"BROADCAST_REPLAY_VIEW",BROADCAST_CONTACT_CAPTURE:"BROADCAST_CONTACT_CAPTURE_VIEW",MEETING_CONNECT:"MEETING_CONNECT_VIEW",MEETING_ERROR:"MEETING_ERROR_VIEW",MEETING_CANCELED:"MEETING_CANCELED_VIEW",MEETING_MISSED:"MEETING_MISSED_VIEW",MEETING_ENDED:"MEETING_ENDED_VIEW",MEETING_CONNECT_BTN:"MEETING_CONNECT_BTN",BOOKING:"BOOKING",ADD_A_PERSON_VIEW:"ADD_A_PERSON_VIEW",ADD_A_PERSON_CALL_BUTTON:"ADD_A_PERSON_CALL_BUTTON",ADD_A_PERSON_SESSION_IS_FULL_VIEW:"ADD_A_PERSON_SESSION_IS_FULL_VIEW",ADD_A_PERSON_CALL_ENDED_VIEW:"ADD_A_PERSON_CALL_ENDED_VIEW",ADD_A_PERSON_CALL_ENDED_BUTTON:"ADD_A_PERSON_CALL_ENDED_BUTTON",CHAT_CALL_INACTIVITY_POPUP:"CHAT_CALL_INACTIVITY_POPUP",CHAT_CALL_START_POPUP:"CHAT_CALL_START_POPUP",INCOMING_CALL_PROMPT:"INCOMING_CALL_PROMPT",CHAT_INCOMING_CALL_POPUP:"CHAT_INCOMING_CALL_POPUP",CHAT_END_CALL_POPUP:"CHAT_END_CALL_POPUP",CHAT_OUTGOING_CALL_DECLINED:"CHAT_OUTGOING_CALL_DECLINED"},actionsStatus:C,logEvent:A,setupEventListeners:function(){window.addEventListener&&(window.addEventListener("wheel",S),window.addEventListener("scroll",T)),document.body.addEventListener&&document.body.addEventListener("mouseup",m,!0),document.addEventListener&&void 0!==i?(document.addEventListener(a,p,!1),document[i]?(A(_.TAB_INACTIVE),s.ZP.setPageStatus(s.ZP.pageStatus.INACTIVE)):(o=g,s.ZP.setPageStatus(s.ZP.pageStatus.ACTIVE))):E=-1}}},3294:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(69),a={},o=!1;function s(e){o&&console.debug("Event Service $:",e)}const r={subscribe:function(e,t){Array.isArray(a[e])||(a[e]=[],s("Event: "+e+" subcribers list initialized")),-1===a[e].indexOf(t)&&(a[e].push(t),s("Event: "+e+"\nCallback:"+t+"\nAction: callback added (subscribed)"))},publish:function(e,t){Array.isArray(a[e])?a[e].forEach((function(n){n(t),s("Event: "+e+"\nData: "+JSON.stringify(t)+"\nCallback: "+n+"\nAction: callback executed")})):s("Event: "+e+"\nData: "+JSON.stringify(t)+"\nAction: No subscribers found")},unsubscribe:function(e,t){if(Array.isArray(a[e])){for(var n=0;n{"use strict";n.d(t,{Z:()=>d});var i=n(5940),a=n(6628),o=n(2342),s=n(2946),r=n(9362),l=n(7448),c={LOGTAG:"gaService"};c.logService=i.Z,c.stateService=o.ZP,c.validationUtilitiesService=s.Z,c.GA_CONSTANTS={MAX_LABEL_LENGTH:1e3,TRACK_EVENT:"_trackevent"},c.USE_GA_DEFAULT_REFERENCE_NAME="useDefaultGAReferenceName",c.TAG_MANAGER_CONSTANTS={GIS_EVENT_NAME:"GISEvent"},c.GA_METHOD_STRINGS={SEND:"send",EVENT:"event"},c.category="GoInStore",a.Z.getRetailerToken()&&(c.category=a.Z.getRetailerKey()+"-"+c.category),c.hasBeenError=!1,c.GIS_EVENT_ACTIONS={CALL_CTA_SHOWN:"GIS Call-CTA-Shown",CALL_CTA_SHOWN_UNAVAILABLE:"GIS Call-CTA-Unavailable-Shown",CALL_CTA_CLICK:"GIS Call-CTA-Click",CALL_CTA_CLICK_UNAVAILABLE:"GIS Call-CTA-Unavailable-Click",BROADCAST_CTA_SHOWN:"GIS Broadcast-CTA-Shown",BROADCAST_CTA_CLICK:"GIS Broadcast-CTA-Click",BROADCAST_REPLAY_CTA_SHOWN:"GIS Broadcast-Replay-CTA-Shown",BROADCAST_REPLAY_CTA_CLICK:"GIS Broadcast-Replay-CTA-Click",BROADCAST_DURATION:"GIS Broadcast-Duration",BROADCAST_REPLAY_DURATION:"GIS Broadcast-Replay-Duration",CALL_MADE:"GIS Call-Made",CALL_ACCEPTED:"GIS Call-Accepted",CALL_MIC_ALLOWED:"GIS Mic-Allowed",CALL_MIC_DENIED:"GIS Mic-Denied",CALL_ENDED:"GIS Call-Ended",CALL_DURATION:"GIS Call-Duration",CALL_MISSED:"GIS Call-Missed",CALL_ABORTED:"GIS Call-Aborted",SURVEY_RESULT:"GIS Survey-Result",CONTACT_SUBMISSION:"GIS Contact-Submission",CALL_BLOCKED_UNSUPPORTED_BROWSER:"GIS Call-Blocked-Unsupported-Browser",CALL_BLOCKED_NO_MIC:"GIS No-Mic",CALL_NO_CLERK_AVAILABLE:"GIS No-One-Available",CALL_CONNECTING_CANCELLED:"GIS Call-Connecting-Cancelled",CHAT_MESSAGE_SENT:"GIS Chat-Message-Sent",CHAT_NAME_SENT:"GIS Chat-Name-Sent",CHAT_NAME_ASK:"GIS Chat-Name-Ask",CTA_AUTOPLAY_SHOWN:"GIS Cta-Autoplay-Shown",CTA_AUTOPLAY_FULLSCREEN:"GIS Cta-Autoplay-Fullscreen",CTA_AUTOPLAY_CLICKED:"GIS Cta-Autoplay-Clicked",CTA_AUTOPLAY_AUTOPLAY:"GIS Cta-Autoplay-Autoplay",CTA_AUTOPLAY_MUTE:"GIS Cta-Autoplay-Mute",CTA_AUTOPLAY_UNMUTE:"GIS Cta-Autoplay-Unmute",CTA_AUTOPLAY_CLOSED:"GIS Cta-Autoplay-Closed",CTA_AUTOPLAY_KEEP_WATCHING_CLICKED:"GIS Cta-Autoplay-keep-watching-clicked",CTA_AUTOPLAY_KEEP_WATCHING_SHOWN:"GIS Cta-Autoplay-keep-watching-shown",SEGMENT_CLICKED:"GIS Segment-Clicked",SEGMENT_VIEW_DURATION:"GIS Segment-View-Duration",DIRECT_CALL:"GIS Direct-Call",STANDARD_CALL:"GIS Standard-Call",ITEM_ADDED_TO_BASKET:"GIS Item-Added-To-Basket",CALL_CTA_SHOWN_ON_BROADCAST:"GIS call-CTA-shown-on-broadcast",CALL_CTA_CLICK_FROM_BROADCAST:"GIS call-CTA-click-from-broadcast",CALL_CTA_CLICK_UNAVAILABLE_ON_BROADCAST:"GIS Unavailable-call-CTA-click-on-broadcast",CALL_CTA_SHOWN_ON_BROADCAST_UNAVAILABLE:"GIS call-CTA-shown-unavailable-on-broadcast",CALL_CTA_SHOWN_ON_REPLAY:"GIS call-CTA-shown-on-replay",CALL_CTA_CLICK_FROM_REPLAY:"GIS call-CTA-click-from-replay",CALL_CTA_CLICK_UNAVAILABLE_ON_REPLAY:"GIS Unavailable-call-CTA-click-on-replay",CALL_CTA_SHOWN_ON_REPLAY_UNAVAILABLE:"GIS call-CTA-shown-unavailable-on-replay",CLERK_JOINED:"GIS clerk-joined",IS_CLERK_AVAILABLE_REQUEST_RECEIVED:"GIS is-clerk-available-request-received",SERVICE_NOT_OFFERED:"GIS service-not-offered"},c.ANALYTICS_TYPES={NONE:"none",CLASSIC:"classic",UNIVERSAL:"universal",TAG_MANAGER:"tag manager",CUSTOM:"custom",CUSTOM_API:"custom api",TEALIUM:"tealium",ADOBE:"adobe",GA4:"GA4"},c.ANALYTICS_DEFAULT_REFENCE_NAMES={CLASSIC:"_gaq",UNIVERSAL:"ga",TAG_MANAGER:"dataLayer",TEALIUM:"utag",ADOBE:"_satellite",GA4:"gtag"},c.setCategory=function(e){e&&s.Z.isString(e)?(c.category=e,a.Z.getRetailerToken()&&(c.category=a.Z.getRetailerKey()+"-"+c.category)):c.logService.warn(c.LOGTAG,"Invalid parameter: Couldn't set analytics category.")},c.sendAnalyticsEvent=function(e,t,n){var a=n;if(c._isEventLoggingAllowed(e)){a&&!s.Z.isInt(a)&&(i.Z.warn(c.LOGTAG,"Ignoring invalid value for analytics event"+e+": "+a),a=null);var r={};r.userId=o.ZP.getCallUserUUID(),r.pageId=o.ZP.getPageUUID(),o.ZP.getCallUUID()&&(r.CallId=o.ZP.getCallUUID());var l=JSON.stringify(r);if(t)if("object"!=typeof t)c.logService.warn(c.LOGTAG,"Ignoring invalid extra data for analytics event"+e+": "+t);else if(JSON.stringify(t).length+l.length>c.GA_CONSTANTS.MAX_LABEL_LENGTH)i.Z.warn(c.LOGTAG,"Ignoring extra data for analytics event because it was too long");else{const e=Object.keys(t);for(let n=0;n{"use strict";n.d(t,{Z:()=>R});var i,a=n(5940),o=n(6628),s=n(2342),r=n(1986),l=n(69),c=n(9362),d=n(1496),u=n(7697),_={LOGTAG:"gisService"},C=h(),g=(i=o.Z.getBrowserSecurityToken())?"secToken="+i:null,E="/jsapi/isClerkAvailable",A="/jsapi/booking",p="/jsapi/isClerkAvailableByAlias",T="/jsapi/all-active-broadcasts",S="/jsapi/get-broadcast-event",m="/broadcast/isLiveById",v="/chat/send/message",f="/jsapi/video-segments",I=2e3;function L(e,t,n,i){var o=document.createElement("script");o.type="text/javascript",o.src=e,l.Z.isReferrerPolicyEnable()&&(o.referrerPolicy=l.Z.getReferrerPolicy()),o.onload=t,o.onerror=function(t){a.Z.error(_.LOGTAG,"JSONP request returned an error: "+(i&&i.msg?i.msg:e),t,i&&i.info?i.info:e),n&&n()};try{document.getElementsByTagName("head")[0].appendChild(o)}catch(t){a.Z.error(_.LOGTAG,"Exception occurred on JSONP call: "+e,t)}}function b(e,t,n,i){var a=o.Z.getGisDomain()+e;if(null!=t&&t.forEach((function(e){a+="/"+e})),n)for(var s=0;s-1&&t.removeChild(n[i])}function O(e,t,n,i,s){var r=document.getElementsByTagName("head")[0],c=document.createElement("link");c.rel=e,c.type=t,c.href=function(e){var t;return new RegExp("^(?:[a-z]+:)?//","i").test(e)?e:(t=o.Z.getDomain()+e,g?l.Z.addParamToUrl(t,g):(C&&(t=l.Z.addParamToUrl(t,C)),o.Z.getRetailerToken()&&(t=l.Z.addParamToUrl(t,"retailerToken="+o.Z.getRetailerToken())),t))}(n),c.onload=i,c.onerror=s,l.Z.isReferrerPolicyEnable()&&(c.referrerPolicy=l.Z.getReferrerPolicy());try{r.appendChild(c)}catch(e){a.Z.error(_.LOGTAG,"Exception while injecting link tag in Head.",e)}}function h(){var e=o.Z.getChromeExtensionToken();return e?"q="+e:null}function Z(){return"noCacheParam="+(new Date).getTime()}function N(e,t){return t?"routingKey="+l.Z.utf8ToBase64(e.trim()):"routingKey="+encodeURIComponent(e.trim())}function w(){return"locale="+o.Z.getLocale()}_.isClerkAvailable=function(e,t,n){var i=0,a=o.Z.getSystemConfig();a&&a.clerkAvailabilityReqDelay&&!Number.isNaN(a.clerkAvailabilityReqDelay)&&(i=a.clerkAvailabilityReqDelay),setTimeout(_.isClerkAvailableByAlias.bind(null,null,e,t,n),1e3*i)},_.isClerkAvailableByAlias=function(e,t,n,i){if(!l.Z.isHttpsPageRedirected()){var a=[];a.push(t),a.push(n);var o=[];o.push(Z()),i&&o.push(N(i,!0)),s.ZP.getCallUserUUID()&&o.push("callUserUUID="+s.ZP.getCallUserUUID()),o.push("referer="+l.Z.getReferer(!0));var r=E;y(E),e&&(r=p,y(p),a.unshift(e)),b(r,a,o).loadScript()}},c.Z.override(_.LOGTAG,_);const R={URL_MAX_SIZE:I,loadScript:L,loadCss:function(e,t){var n=o.Z.getUiConfig().theme&&o.Z.getUiConfig().theme.name||"";O("stylesheet","text/css","/gis/css"+(n?"?theme="+n:""),e,t)},loadExternalCss:function(e,t,n){O("stylesheet","text/css",e,t,n)},getSurveyQuestionsFromCallUUID:function(e){var t=[];t.push("referer="+o.Z.getReferer()),t.push("callUuid="+e),t.push(h()),o.Z.getLocale()&&t.push(w()),b("/jsapi/survey",null,t).loadScript()},submitSurveyResult:function(e){b("/jsapi/saveReview",null,["payload="+e]).loadScript()},submitContactDetails:function(e,t,n){var i=[];i.push("payload="+e),i.push(N(s.ZP.getRoutingKey())),i.push("referer="+o.Z.getReferer()),b("/contact",null,i).loadScript((function(){r.Z.sendAnalyticsEvent(r.Z.ANALYTICS_EVENTS.CONTACT_SUBMISSION),t()}),(function(){n()}))},isBroadcastActiveByBroadcastId:function(e,t,n){y(m);var i=[];e&&i.push("broadcastId="+e),b(m,[t],i).loadScript((function(){}),(function(){n()}))},getVideoSegmentsByBroadcastId:function(e,t){y(f),b(f,[e,"GISAPP.replayCtrl.displayVideoSegments"]).loadScript((function(){}),(function(){"function"==typeof t&&t()}))},submitBroadcastContactDetails:function(e,t,n){var i=[];i.push("payload="+e),i.push(N(s.ZP.getRoutingKey())),i.push("referer="+o.Z.getReferer()),b("/contact/broadcast/submit",null,i).loadScript((function(){r.Z.sendAnalyticsEvent(r.Z.ANALYTICS_EVENTS.CONTACT_SUBMISSION),t()}),(function(){n()}))},getBroadcasts:function(e,t){y(T);var n=[];e&&n.push("gischannel="+e),n.push("referer="+l.Z.getReferer(!0)),b(T,[t],n).loadScript()},getBroadcastsEvent:function(e,t,n){if(e){y(S);var i=[];i.push("gisevent="+e),t&&i.push("giskey="+t),i.push("referer="+l.Z.getReferer(!0)),b(S,[n],i).loadScript()}},isClerkAvailable:_.isClerkAvailable,isClerkAvailableByAlias:_.isClerkAvailableByAlias,getMeetingStatus:function(e,t){if(!l.Z.isHttpsPageRedirected()){var n=[];n.push(t);var i=[];i.push(Z()),s.ZP.getCallUserUUID()&&i.push("callUserUUID="+s.ZP.getCallUserUUID()),i.push("referer="+l.Z.getReferer(!0)),i.push("bookingExtId="+e);var a=A;y(A),b(a,n,i).loadScript()}},connectCall:function(e,t,n,i,o){if(e){var r=[];r.push("callId="+e),n?r.push("referer="+n):r.push("referer="+l.Z.getReferer(!0)),t&&r.push(N(t,!0)),o?r.push("chatFirst=true"):r.push("chatFirst=false"),s.ZP.getCallUserUUID()&&r.push("callUserUUID="+s.ZP.getCallUserUUID()),r.push(),b("/jsapi/connecttostore",null,r).addObjectAsParamToUrl(i,"pageMetadata",I,"title").loadScript()}else a.Z.warn(_.LOGTAG,"Failed to send call to server. Invalid callId",{call_id:e})},connectSSLCall:function(e,t,n,i,a){var r=[];i&&r.push("callConnectCallback="+encodeURIComponent(i)),t&&r.push(N(t,!0)),s.ZP.getLogLevel()&&r.push("gis-log="+s.ZP.getLogLevel()),s.ZP.getLocale()&&r.push("locale="+s.ZP.getLocale()),s.ZP.getPageUUID()&&r.push("pageUUID="+s.ZP.getPageUUID()),r.push("rk="+o.Z.getRetailerKey()),r.push("callType="+a);var c="https:"+b("/connectCall",[e],r);c+=l.Z.addObjectAsParamToUrl(n,"pageMetadata",c,I,"title"),window.location.href=c},logActivity:function(e,t){b("/log/activity",[e,t]).loadScript()},initiateCall:function(e,t){var n=[];n.push("callbackName="+e),n.push("callType="+t),n.push("referer="+l.Z.getReferer(!0)),s.ZP.getCallUserUUID()&&n.push("callUserUUID="+s.ZP.getCallUserUUID()),b("/jsapi/initiateCall",null,n,!0).loadScript()},initiateMeetingCall:function(e,t,n){var i=[];i.push("callType="+t),i.push("referer="+l.Z.getReferer(!0)),i.push("bookingId="+n),b("/jsapi/booking/join/"+e,null,i,!0).loadScript()},getSecurityToken:function(e){b("/jsapi/getSecurityToken",[e],null).loadScript()},logActivityByEndpoint:function(e,t){b(e,[t]).loadScript()},loadHlsJs:function(e,t){"function"==typeof window.require&&"SOFOLOGY"!==o.Z.getRetailerKey()?(0,window.require)(["https://cdn.jsdelivr.net/npm/hls.js@latest"],(function(t){window.Hls=t,e()}),t):void 0!==GISAPP.webpackChunkGISAPP?n.e(631).then(n.t.bind(n,7631,23)).then((function(t){window.Hls=t.default,e()})).catch((function(e){t(e)})):L("https://cdn.jsdelivr.net/npm/hls.js@latest",e,t)},submitQuestion:function(e,t,n,i){y(v),b(v,[t],["payload="+e]).loadScript(n,i)},addCallUser:function(e,t,n){b("/broadcast/user/add",[t,e]).loadScript(null,n)},sendBroadcastViewDuration:function(e){b("/broadcast/user/update",[e]).loadScript()},getInitInfo:function(e,t){var n=[];n.push("callUserUUID="+s.ZP.getCallUserUUID()),n.push("referer="+l.Z.getReferer(!0)),o.Z.getLocale()&&n.push(w()),d.Z.getLocaleCategory()&&n.push("ctaMessageKey="+d.Z.getLocaleCategory());var i=u.Z.getEncodedSavedActiveMvt();i&&n.push("mvt="+i),b("/jsapi/init-info",[e],n).loadScript(null,t)},logEvent:function(e,t,n,i){var a=[];a.push(e),a.push(o.Z.getRetailerKey()),a.push(t),a.push(n),i&&a.push(i),b("/event/create",a).loadScript(null,null,{msg:"Error Logging Event : "+e})},logEventOnStream:function(e,t){var n=t;n=l.Z.utf8ToBase64(JSON.stringify(n));var i=o.Z.getSystemConfig().analytics.eventStreamLog.URL,a=""!==i&&"prod"===o.Z.getEnv()?i:o.Z.getGisEventDomain();L(a+="/?retailerKey="+e+"&payload="+n,null,null,{msg:"Error Logging Event : "+n.eventName})},sendSipDtmf:function(e){b("/sip/send-dtmf",null,e).loadScript()},getProductsForBroadcast:function(e,t){b("/jsapi/product-carousel",[e,t]).loadScript()},initiateAddAFriendCall:function(e,t,n){var i=[];i.push(e),i.push(t);var a=[];a.push("referer="+l.Z.getReferer(!0)),a.push("callUUID="+n),b("/jsapi/add-friend-in-call",i,a,!0).loadScript()},checkAutoLaunchClerkIsAvailable:function(e,t,n){var i=[];i.push(n),i.push(e),i.push(t);var a=[];a.push("referer="+l.Z.getReferer(!0)),b("/jsapi/isClerkAvailable/callAutolaunch",i,a,!0).loadScript()},connectAutoLaunchCall:function(e,t,n){if(e){var i=[];i.push(e);var o=[];o.push("callId="+t),o.push("referer="+l.Z.getReferer(!0)),s.ZP.getCallUserUUID()&&o.push("callUserUUID="+s.ZP.getCallUserUUID()),o.push(),b("/jsapi/connecttostore/callAutolaunch",i,o).addObjectAsParamToUrl(n,"pageMetadata",I,"title").loadScript()}else a.Z.error(_.LOGTAG,"Failed to send call to server. Invalid autoLaunchId",{autoLaunchId:e})},getChatMemberCount:function(e,t,n){if(n){var i="/chat/cometchat/group/{groupUuid}/memberCount";i=i.replace("{groupUuid}",n);var a=[];a.push(e);var o=[];o.push("referer="+l.Z.getReferer(!0)),b(i,a,o,!0).loadScript(null,t)}},getChatSegment:function(e,t){L(e,null,t)},isProductCarouselVersionUpdated:function(e,t,n){b("/jsapi/product-carousel",[e,"isVersionChanged",t],["version="+n]).loadScript()},getLiveEventsList:function(e,t,n){var i=[];i.push(e),i.push(t),i.push(n),b("/jsapi/live-page",i,null).loadScript()},loadVideoJs:function(e,t,n){"function"==typeof window.require&&"SOFOLOGY"!==o.Z.getRetailerKey()?(0,window.require)([e],(function(e){window.videojs=e,t()}),n):L(e,t,n)}}},6229:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const i={getWindow:function(){return window},getDocument:function(){return document}}},1496:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(9362),a=n(6628),o={LOGTAG:"i18nService",getLocaleCategory:function(){},updateLabel:function(e,t){var n=a.Z.getLabels();n[e]=t,a.Z.updateLabels(n)},updateCTAMessage:function(e){o.updateLabel("awarenessCta_message",e)}};i.Z.override(o.LOGTAG,o);const s={updateLabel:o.updateLabel,getLocaleCategory:o.getLocaleCategory,updateCTAMessage:o.updateCTAMessage}},3202:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(3203),a=n(9656),o=n(3294),s=n(861),r=n(5940);const l={initializeSourceLessIframeWithScriptInjection:function(e,t,n,l){var c=i.Z.createElementWithAttributes("iframe",e+"Iframe",null,"height: 100%;width: 100%; border: none;");function d(){var t=c.contentWindow;t.GISAPP={},t.GISAPP.debugMode=window.location.href.indexOf("gis=debug")>-1,t.GISAPP.accessibilityService=s.Z,t.document.body.append(i.Z.createElementWithAttributes("div","root",null,"width: 100%;height: 100%;")),t.document.body.append(i.Z.createElementWithAttributes("div","spinner-container",null,"width: 100%;height: 100%;border-radius: 8px;background: #f2f2f2; position: absolute; top: 0; right: 0;"));var a=!1,d=t.document.getElementById("spinner-container");if(o.Z.subscribe("HIDE_SPINNER",(function(){a||t.document.body.removeChild(d),a=!0})),d.append(i.Z.createElementWithAttributes("div",null,"spinner","")),l.isSrc)c.src=n;else{var u=i.Z.createElementWithAttributes("script",null,null,null);u.src=n,(t.document.head||t.document.getElementsByTagName("head")[0]).append(u)}if(l.isCrossCommunication)var _=0,C=setInterval((function(){t.postRobotListener&&(clearInterval(C),gisAppLib.postRobot.send(t,e,l,{timeout:1e4}).then((function(e){console.log(e.source,e.origin)})).catch((function(e){r.Z.error("IframeService","Error in adding match media",e)}))),50===(_+=1)&&clearInterval(C)}),200)}return c.frameborder=0,a.Z.isFirefox()&&(c.onload=function(){d()}),t.appendChild(c),a.Z.isFirefox()||d(),c}}},8797:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var i,a=n(3294),o=n(6229),s=n(1638),r=n(3203),l=n(9036),c=n(9656),d=r.Z.getScreenBreakpoints();function u(){var e=o.Z.getWindow();return{WIDTH:e.innerWidth,HEIGHT:e.innerHeight}}function _(){a.Z.publish(s.Z.EVENT_NAMES.SCREEN_RESIZE,function(e){var t;if(!l.Z.isMobileDevice())for(var n=0;n=i.minWidth&&e.WIDTH<=i.maxWidth&&e.HEIGHT>=i.minHeight)return i}return t||(t=d[4]),t}(u()))}function C(){a.Z.publish(s.Z.EVENT_NAMES.WINDOW_SCROLL,u())}function g(){a.Z.publish(s.Z.EVENT_NAMES.ORIENTATION_CHANGE,T())}function E(e){a.Z.subscribe(s.Z.EVENT_NAMES.SCREEN_RESIZE,e),_()}function A(e){a.Z.subscribe(s.Z.EVENT_NAMES.ORIENTATION_CHANGE,e),g()}function p(e){if("string"==typeof e){for(var t,n=0;n=":u.innerWidth>=d.minWidth&&(c=!0);break;case"<":u.innerWidth":u.innerWidth>d.minWidth&&(c=!0);break;default:a.type===d.type&&(c=!0)}}if("function"==typeof l&&(c=l.call()),s&&i&&c&&(s=!0),s&&i&&!c&&(s=!1),!i&&c){s=!0;break}}s?e.call():t.call()}n&&e&&(E(a),A(a))},applyFullScreenHeight:function(e){var t=e,n=o.Z.getWindow();(l.Z.isMobileDevice()&&l.Z.isIos()||l.Z.isIPad())&&!c.Z.isSafari()?t.style.height=document.documentElement.clientHeight+"px":t.style.height=n.innerHeight+"px"},removeFullScreenHeight:function(e){e.style.height="auto"},publishResizeEvents:_,publishScrollEvents:C,publishOrientationChangeEvents:g,scrollCallback:function(e){a.Z.subscribe(s.Z.EVENT_NAMES.WINDOW_SCROLL,e),C()},orientationChangeCallback:A,getOrientation:T,getWindowSize:u}},5940:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var i,a=n(2342),o=n(6628),s=n(69),r="logService",l="GIS: ",c="browser-"+o.Z.getEnv(),d={TRACE:{id:0,name:"TRACE"},DEBUG:{id:1,name:"DEBUG"},LOG:{id:2,name:"LOG"},INFO:{id:3,name:"INFO"},WARN:{id:4,name:"WARN"},ERROR:{id:5,name:"ERROR"}},u=d.WARN,_=d.ERROR;function C(e,t){E(d.INFO,e,t)}function g(){a.ZP.isLogglyLoaded()&&window._LTracker&&((i=window._LTracker||[]).push({logglyKey:"c8f8cb7e-94fd-4e89-ab09-19e7712967f0",sendConsoleErrors:!1,tag:c}),C("logService","LOGGLY intitalized."))}function E(e,t,n,i,o){var s=t,l=e;s||(console.warn(r+" log tag missing",""),s="UNKNOWN",A(d.WARN.name,s,"log tag missing")),a.ZP.getPageStatus()===a.ZP.pageStatus.UNLOADING&&l.id===d.ERROR.id&&(l=d.WARN),A(l,s,n,i,o),p(l,s,n,i,o)}function A(e,t,n,o,s){if(a.ZP.isLogglyLoaded())if(i){if(!(e.ido});var i=n(7448),a=n(69);const o={updateActiveMvtInLocalStorageIfChanged:function(e){var t=i.Z.getItem(i.Z.storageKeys.ACTIVE_MVT);0===e.length&&null!==t?i.Z.removeItem(i.Z.storageKeys.ACTIVE_MVT):t&&t.length===e.length||i.Z.setItem(i.Z.storageKeys.ACTIVE_MVT,e)},getEncodedSavedActiveMvt:function(){var e=i.Z.getItem(i.Z.storageKeys.ACTIVE_MVT);if(e){var t="";const n=Object.keys(e);for(let i=0;i{"use strict";n.d(t,{Z:()=>b});var i=n(5940),a=n(1291),o=n(4486),s=n(7120),r=n(8268),l=n(6628),c=n(7383),d=n(4999),u=n(6229),_=n(2342),C="otService",g=null,E=null,A={audio:{isDetected:!1,isAllowed:!1},video:{isDetected:!1,isAllowed:!1}},p=[],T=[];function S(){return window.OT}function m(e,t){for(var n=0;n{"use strict";n.d(t,{Z:()=>i});const i={override:function(e,t){var n=GISAPP[e+"Extension"];if(!n)return;const i=Object.keys(n);for(let e=0;e-1){const e=a.substring(0,o);Object.prototype.hasOwnProperty.call(n,a)&&(t[e]=function(){const i=e,a=t[i].bind({});return function(){return n[i+"Extension"].apply(t,arguments),a.apply(null,arguments)}}())}}}}},1879:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(5940),a=n(2342),o="pageUnloadService",s=[],r=window.onbeforeunload;window.onbeforeunload=function(e){a.ZP.setPageStatus(a.ZP.pageStatus.UNLOADING),i.Z.debug(o,"Executing GIS custom pageUnload functions"),s.forEach((function(e){e()})),r&&r(e)};const l={registerFunction:function(e){"function"==typeof e?s.unshift(e):i.Z.warn(o,"Cannot register. Not a function")},unregisterFunction:function(e){"function"==typeof e?s=s.filter((function(t){return t!==e})):i.Z.warn(o,"Cannot unregister. Not a function")}}},4866:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var i=n(2342),a=n(69),o=n(7448),s={},r=!1;function l(e){var t=o.Z.getItem(o.Z.storageKeys.POLLING_START_TIMESTAMP+e);return!t||a.Z.dateDifferenceInDays(Date.parse(t),new Date)>s[e].expiry}function c(e){o.Z.setItem(o.Z.storageKeys.POLLING_START_TIMESTAMP+e,a.Z.getTimeWithOutMilliSeconds())}function d(e){i.ZP.isUIActive()&&i.ZP.getCurrentPhase()!==i.ZP.phase.BROADCAST_START&&i.ZP.getCurrentPhase()!==i.ZP.phase.BROADCAST_PLAYING&&i.ZP.getCurrentPhase()!==i.ZP.phase.REPLAY_START&&i.ZP.getCurrentPhase()!==i.ZP.phase.REPLAY_PLAYING&&i.ZP.getCurrentPhase()!==i.ZP.phase.NO_BROADCAST_AVAILABLE&&!a.Z.isDepartmentCall()||i.ZP.isUIActive()&&i.ZP.getCurrentPhase()===i.ZP.phase.EMBED_CALL_INITIATED||!r&&i.ZP.getPageStatus()===i.ZP.pageStatus.INACTIVE||0===s[e].subscribers.length||(s[e].poll(),s[e].self&&l(e)&&(clearInterval(s[e].self),s[e].isPolling=!1))}function u(e,t,n){for(var i=0;i{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _scope={host:"gis.goinstore.com",authToken:"$authToken",browserSecurityToken:"$securityToken",dependencyCheckingMaxRetries:"20",dependencyCheckingSleepTime:"2",locale:"$locale",env:"prod",referer:"$referer"};_scope.domain="//"+_scope.host,_scope.gisDomain=_scope.domain+"/gis",_scope.gisStaticImagesDomain=_scope.domain+"/static-common/assets/img",_scope.gisStaticDomain=_scope.domain+"/static-common",_scope.gisS3Domain="//static-"+_scope.host,_scope.gisEventDomain="//events-"+_scope.host,_scope.gisStaticRetailerResources=_scope.domain+"/static/rtlr",_scope.gisImagesResources=_scope.gisDomain+"/images/img",_scope.iosEnabled="$retailer.iosEnabled",_scope.retailerKey="HEALSUK",_scope.retailerName="Heals UK",_scope.googleAnalyticsType="tag manager",_scope.googleAnalyticsTrackerName="$retailer.gaTrackerName",_scope.googleAnalyticsReferenceName="useDefaultGAReferenceName",_scope.apiEnabled="false",_scope.surveyEnabled="true",_scope.tokboxApiKey="47870281",_scope.retailerToken="49364546-e8ed-4631-9a61-514f24c0f8b4",_scope.cometChatAuthKey="",_scope.cometChatAppId="",_scope.cometChatRegion="",_scope.gisStaticChatDomain=_scope.gisStaticDomain+"/js/chat",_scope.ctaRoundelView="
",_scope.ctaTabView="",_scope.views={},_scope.views.modalView="
",_scope.views.stepsView="
",_scope.views.textFieldView="

",_scope.views.textBoxView="
",_scope.views.buttonView="
",_scope.views.splitLayoutView="
",_scope.views.modalContentView="
",_scope.views.genericModalContentView="$genericModalContentView",_scope.views.modalImageView="
",_scope.views.modalVideoView="
",_scope.views.connectCall2View="$connectCall2View",_scope.views.micShare2View="$micShare2View",_scope.views.rateView="
",_scope.views.surveyScreenView="
",_scope.views.dockedPlayerView="",_scope.views.videoSegmentView="
",_scope.views.humanizedMicShareImageView="
We’ll only hear you
We won't see you, you'll see us
",_scope.views.ctaAwarenessView="",_scope.views.alertView="
",_scope.views.callStatusDialogView="",_scope.views.callControlView="
",_scope.views.mediaShareView="
",_scope.views.switchView="
",_scope.views.standardCallView="
",_scope.views.callTypeView="
",_scope.views.callScreenHeaderView="
",_scope.views.userProfileView="",_scope.views.toolTipView="",_scope.views.chatView="
",_scope.views.gisPlayerView="
",_scope.views.shopStreamBaseLayoutView="
",_scope.views.baseCallLayoutView="
",_scope.views.videoPlayerView="
",_scope.views.shopStreamVideoHeaderView="
",_scope.views.shopStreamChatCarouselToggle="
",_scope.views.dialPadView="
",_scope.views.productCarouselTileView="",_scope.views.sliderView="
",_scope.views.bookingWidgetView="
",_scope.views.addAPersonView="
",_scope.views.productPromptView="",_scope.views.informationView="
",_scope.views.ctaBarView="
",_scope.views.popupView="
",_scope.views.infoPopupView="
",_scope.views.replayChat="

Chat

",_scope.views.chatMessageView="
",_scope.views.ctaPopupView="
",_scope.views.toast="",_scope.views.livePageTemplateView="

",_scope.views.livePageSingleItemView="

",_scope.views.portraitVideoLayout="
",_scope.views.usernameFormView="",_scope.views.blankPopupView="
X
",_scope.views.gisPortraitPlayerView="
",_scope.labels={},_scope.labels.awarenessCta_message="Speak to our in-store experts",_scope.labels.barCta_message="Need help? Video call a human",_scope.labels.awarenessCta_startCallMessage="Chat now",_scope.labels.ctaAutoPlay_minimizedPauseLabel="Tap to keep watching...",_scope.labels.ctaAutoPlay_maximizedPauseLabel="Keep watching",_scope.labels.broadcastViewer_broadcastNotFoundText1="There is currently no content available on this channel.",_scope.labels.broadcastViewer_broadcastNotFoundText2="Please try again later.",_scope.labels.broadcastViewer_invalidBroadcastUrlText1="Sorry, the live Broadcast link you have entered is invalid.",_scope.labels.broadcastViewer_invalidBroadcastUrlText2="Please check you have entered the correct URL and try again.",_scope.labels.liveQa_pinnedPostHeading="Ask me a Question",_scope.labels.liveQa_pinnedPostMessage="Our presenter will answer your product questions in the live broadcast",_scope.labels.liveQa_chatPlaceholderText="Ask a Question...",_scope.labels.liveQa_namePlaceholderText="Enter your name...",_scope.labels.clerkUnavailableConnectScreen_title="We are currently unavailable or in a call",_scope.labels.clerkUnavailableConnectScreen_primaryText="Try again when the light is green.",_scope.labels.clerkUnavailableConnectScreen_weekdayOpeningTime="Monday - Friday 10.30 - 19.00",_scope.labels.clerkUnavailableConnectScreen_weekendOpeningTime="Saturday 10.30 - 19.00 Sunday 12.00 - 18.00",_scope.labels.clerkUnavailableConnectScreen_closedTime="We are currently offline",_scope.labels.connect_v2_Disclaimer="",_scope.labels.clerkAvailable_message="Product expert available",_scope.labels.directCallScreen_Title="Welcome to your Live Video Call",_scope.labels.connect_v4_mainText="For product enquiries you can chat to our in-store experts",_scope.labels.connect_v4_subMainText="Connecting you to an Advisor",_scope.labels.support_info_text="What is this?",_scope.labels.connect_v2_Disclaimer="",_scope.labels.connect_v4_button="Start",_scope.labels.directCallScreen_v3_waiting="Please Wait...",_scope.labels.callScreenOverlay_reconnecting_label="Reconnecting",_scope.labels.callScreenOverlay_disconnected_label="Can't reconnect. Please try again later.",_scope.labels.callScreenOverlay_end_call_button_label="End call",_scope.labels.meetingScreen_Title="Welcome to your video appointment",_scope.labels.meetingScreen_subMainText="We won't see you",_scope.labels.meetingScreen_infoText="Waiting for assistant to start call.",_scope.labels.meetingScreen_somethingWentWrongText="Sorry, something went wrong.",_scope.labels.meetingScreen_canceledText="Sorry, the appointment has been cancelled.",_scope.labels.meetingScreen_missedText="You missed your appointment.",_scope.labels.meetingScreen_connectBtnLabel="Join Call",_scope.labels.meetingScreen_waiting="Please wait...",_scope.labels.meetingScreen_ended="The call has ended",_scope.labels.callStatus_header_connectingToLobby="Connecting to the lobby",_scope.labels.callStatus_header_connectedToLobby="Connected!",_scope.labels.callStatus_footer_connectedToLobby="Please wait for the assistant to join",_scope.labels.callStatus_header_assistantJoining="The assistant is joining",_scope.labels.chat_joinChat_button="Join chat",_scope.labels.chat_userName_firstInput="Name",_scope.labels.chat_userName_infoTooLong="Please enter a username that contains 20 characters or less!",_scope.labels.chat_userName_infoTooShort="Please enter a username that contains at least 3 characters!",_scope.labels.chat_userName_instructions="Help us protect your privacy by using only your first name or nickname.",_scope.labels.chat_userName_title="Want to chat?",_scope.labels.chat_userName_secondary_title="Enter a Name",_scope.labels.chat_emoticon_error_msg="Emojis are not allowed",_scope.labels.chat_special_error_msg="Special characters are not allowed",_scope.labels.chat_userName_titleTooLong="Your user name is too long!",_scope.labels.chat_userName_titleTooShort="Please enter a username that contains at least 3 characters!",_scope.labels.chat_userName_tryAgainInput="Try again",_scope.labels.chat_room_full_message="Chat is full. Please try again later.",_scope.labels.micAndCameraSetup_title="",_scope.labels.micAndCameraSetup_allowed="",_scope.labels.micAndCameraSetup_cameraBlocked="",_scope.labels.micAndCameraSetup_micBlocked="",_scope.labels.micAndCameraSetup_micBlockedPreview="",_scope.labels.micAndCameraSetup_allow="",_scope.labels.micAndCameraSetup_awaitingPermission="",_scope.labels.micAndCameraSetup_cancel="",_scope.labels.micAndCameraSetup_continue="",_scope.labels.awarenessCta_startBroadcastMessage="",_scope.labels.shopStream_live_indicator="",_scope.labels.shopstream_status="",_scope.labels.dialPadHeading="",_scope.labels.dialPadSubmitButton="",_scope.labels.dialPadInfoMessage="",_scope.labels.dialPadSubmittedMessage="",_scope.labels.shopStream_cta_message="",_scope.labels.shopStream_secondary_cta_message="",_scope.labels.mobile_chat_toggle_label="",_scope.labels.mobile_product_toggle_label="",_scope.labels.broadcastViewer_broadcastEventEnded1="",_scope.labels.broadcastViewer_broadcastEventEnded2="",_scope.labels.broadcastViewer_broadcastEventToBegin="",_scope.labels.broadcastViewer_clickToUnmute="",_scope.labels.broadcastViewer_tapToUnmute="",_scope.labels.bookingWidget_back_button_message="",_scope.labels.product_popup_addAPerson_title="",_scope.labels.product_popup_addAPerson_subtitle="",_scope.labels.product_popup_addAPerson_warning_text="",_scope.labels.product_popup_addAPerson_alert_text="",_scope.labels.product_popup_addAPerson_share_button_text="",_scope.labels.product_popup_addAPerson_cancel_button_text="",_scope.labels.add_a_person_call_has_ended_main_text="",_scope.labels.add_a_person_call_has_ended_sub_main_text="",_scope.labels.add_a_person_start_new_call_button_text="",_scope.labels.sessionFull_main_text="",_scope.labels.product_carousel_prompt_message="",_scope.labels.product_popup_details_label="",_scope.labels.product_popup_more_info_label="",_scope.labels.awarenessCta_unavailableBookCall="",_scope.labels.awarenessCta_unavailableMessage="",_scope.labels.social_browser_popup_main_text="",_scope.labels.social_browser_popup_sub_main_text="",_scope.labels.directCallScreen_connectBtnLabel="",_scope.labels.mic_needed_popup_title="",_scope.labels.mic_needed_popup_subtitle="",_scope.labels.mic_needed_popup_primary_button_label="",_scope.labels.external_chat_button_label="",_scope.labels.start_chatonly_call_button_label="",_scope.labels.chat_inactivity_popup_title="",_scope.labels.chat_inactivity_popup_subtitle="",_scope.labels.chat_inactivity_popup_primary_button_label="",_scope.labels.chat_inactivity_popup_secondary_button_label="",_scope.labels.chat_to_call_transition_cta_label="",_scope.labels.chat_to_call_transition_popup_title="",_scope.labels.chat_to_call_transition_popup_subtitle="",_scope.labels.chat_to_call_transition_popup_primary_btn_label="",_scope.labels.chat_to_call_transition_popup_secondary_btn_label="",_scope.labels.incoming_call_popup_title="",_scope.labels.incoming_call_popup_primary_btn_label="",_scope.labels.incoming_call_popup_secondary_btn_label="",_scope.labels.end_call_popup_title="",_scope.labels.end_call_popup_subtitle="",_scope.labels.end_call_popup_primary_btn_label="",_scope.labels.end_call_popup_secondary_btn_label="",_scope.labels.call_declined_popup_title="",_scope.labels.call_declined_popup_text="",_scope.labels.call_declined_popup_primary_btn_label="",_scope.labels.call_declined_toast_message="",_scope.labels.connecting_v2_chatText="",_scope.labels.live_page_watch_event_button_label="",_scope.labels.live_page_upcoming_event_button_label="",_scope.labels.live_page_show_more_button_label="",_scope.labels.live_page_item_status_upcoming="",_scope.labels.live_page_item_status_ended="",_scope.labels.live_page_item_status_live="",_scope.labels.portrait_carousel_title="",_scope.labels.portrait_chat_msg_placeholder="",Object.keys(_scope).forEach((function(e){_scope[e].indexOf&&_scope[e].indexOf("$")>-1&&(_scope[e]="")}));var avoidEvalSquash="";function parseSystemConfig(e){return JSON.parse(e)}function updateLabels(e){_scope.labels=e}function updateCometChatConfig(e,t,n){_scope.cometChatAuthKey=e,_scope.cometChatAppId=t,_scope.cometChatRegion=n}eval("var $"+avoidEvalSquash+"retailerConfigAsJson= '{}'"),_scope.retailerConfig={"uiConfig":"{\"cta\": {\"animation\": {\"mobile\": true, \"desktop\": true, \"enabled\": false, \"iconType\": \"phone\"}, \"imageFormatOverride\": {\"format\": \"webp\", \"enabled\": false, \"postfix\": \"-animated\"}}, \"theme\": {\"font\": \"'Roboto', sans-serif\", \"name\": \"white\", \"mainColor\": \"#47647c \", \"brandColor\": {\"color\": \"#78b7c6\", \"enabled\": false}, \"backgroundColor\": \"#000\", \"foregroundColor\": \"#fff\", \"awarenessMessage\": {\"enabled\": false, \"messageBorderColor\": \"#fffb00\", \"closeButtonIconColor\": \"#9300a1\", \"messageCallLabelColor\": \"#fc9d03\", \"messageBackgroundColor\": \"#00fff7\", \"messageCallLabelWeight\": \"400\", \"closeButtonBackgroundColor\": \"#e85fc4\"}}, \"ctaSize\": \"Medium\", \"ctaType\": \"humanized\", \"ctaCustom\": false, \"ctaPosition\": \"right\", \"gisBranding\": true, \"ctaBarMessage\": {\"mobile\": true, \"desktop\": false, \"enabled\": false, \"slideOutDelay\": 6, \"slideShowTimeOut\": 5}, \"ctaCallPreview\": {\"mobile\": false, \"desktop\": false}, \"micSetupVersion\": 3, \"supportInfoLink\": \"\", \"brandLegalNotice\": false, \"disclaimerSurvey\": false, \"showClerkProfile\": true, \"autoStartDirectCall\": false, \"ctaAwarenessMessage\": {\"delay\": {\"mobile\": 2, \"desktop\": 2, \"enabled\": false}, \"enabled\": [\"clerk\"], \"broadcast\": false, \"isEnabledOn\": {\"mobile\": true, \"desktop\": true}, \"reshowDuration\": 1}, \"ctaBroadcastPreview\": {\"mobile\": false, \"desktop\": false}, \"connectScreenHumanized\": true, \"hideConnectScreenImageOnMobileDevices\": false}","systemConfig":"{\"broadcast\":{\"polling\":{\"enabled\":false},\"enabled\":true},\"referer\":{\"queryParam\":{\"enabled\":false}},\"booking\":{\"twoWayVideo\":{\"enabled\":false},\"isEnabledForUnavailableCta\":false,\"addAPerson\":false,\"multiParticipant\":false,\"url\":{\"default\":\"\"},\"enabled\":false,\"openBookingWidgetInNewTab\":false},\"delayOpenTokLoad\":false,\"oneToOneEngagement\":{\"src\":{\"serviceIntro\":true,\"replay\":false},\"reshowDuration\":1,\"enabled\":false},\"android\":{\"opera\":true,\"chrome\":true,\"firefox\":true,\"facebook\":false,\"samsungbrowser\":true,\"instagram\":false},\"replayConnectEnabled\":false,\"ios\":{\"chrome\":true,\"safari\":true,\"firefox\":true,\"facebook\":false,\"instagram\":false},\"analytics\":{\"eventStreamLog\":{\"URL\":\"https://analytics-event.goinstore.com\"},\"enabled\":false},\"oneToOneCta\":{\"broadcast\":true},\"blockedEvents\":{\"events\":[],\"enabled\":false},\"broadcastEnabled\":false,\"linux\":{\"opera\":true,\"chrome\":true,\"firefox\":true},\"ctaAwarenessMessageDelay\":{\"desktop\":2,\"mobile\":2,\"enabled\":false},\"oneToOne\":{\"twoWayVideo\":{\"bypassCameraPreviewScreen\":false,\"enabled\":true},\"inCallChat\":{\"enabled\":true},\"addAPerson\":{\"enabled\":false},\"isShopStreamCall\":{\"isChatFirstCall\":{\"enabled\":true},\"productCarousel\":{\"enabled\":false},\"enabled\":true}},\"persistentCta\":true,\"isNewCallScreen\":true,\"goToShopBtn\":{\"redirect\":\"tab\",\"url\":\"\"},\"cookie\":{\"optIn\":true,\"enabled\":true},\"referrerPolicy\":{\"enable\":false,\"policy\":\"no-referrer-when-downgrade\"},\"captureInfo\":{\"views\":{\"broadcast\":false,\"clerkUnavailable\":false,\"replay\":false}},\"isLogglyDependentOnCustomCriteria\":false,\"noVideoImage\":true,\"macintosh\":{\"opera\":true,\"chrome\":true,\"safari\":true,\"firefox\":true},\"singleCtaDefaultService\":\"clerk\",\"windows\":{\"edge\":true,\"opera\":true,\"chrome\":true,\"firefox\":true,\"ie\":false},\"privacySettings\":{\"optInAnalytics\":true},\"questionDelay\":30,\"externalChatIntegration\":{\"onConnectScreen\":false,\"isExternalChatIconEnabled\":false,\"isEnabled\":false,\"onUnavailableScreen\":false},\"shopStream\":{\"productCarousel\":{\"enabled\":false},\"chat\":{\"type\":\"question\",\"enabled\":false},\"isChatReplayEnabled\":false,\"enabled\":true},\"liveEventsPages\":{\"isEnabled\":true},\"skipMicShare\":false,\"apiConnectScreenEnabled\":false,\"specificPageBtn\":{\"redirect\":\"tab\",\"url\":\"\"}}"},_scope.dependencyCheckingMaxRetries=parseInt(_scope.dependencyCheckingMaxRetries,10),_scope.dependencyCheckingSleepTime=1e3*parseInt(_scope.dependencyCheckingSleepTime,10),_scope.browserVersion=_scope.browserVersion?parseFloat(_scope.browserVersion):-1,_scope.systemConfig=_scope.retailerConfig.systemConfig?parseSystemConfig(_scope.retailerConfig.systemConfig):{},_scope.uiConfig=_scope.retailerConfig.uiConfig?JSON.parse(_scope.retailerConfig.uiConfig):{},_scope.apiEnabled=!0===_scope.apiEnabled||"true"===_scope.apiEnabled,_scope.iosEnabled=!0===_scope.iosEnabled||"true"===_scope.iosEnabled,window.authToken=_scope.authToken,eval("var $"+avoidEvalSquash+"customRetailerFunctionality = ''"),eval("var $"+avoidEvalSquash+"gisGaCustomImpl = ''"),GISAPP.initCtrlExtension = (function () { function isOptInAnalyticsAccepted() { var isCookiesAccepted = getCookie('amcookie_allowed'); return isCookiesAccepted === '0' || isCookiesAccepted === '3,6,11'; } function getUserConsent(){ var isCookiesAccepted = getCookie('amcookie_allowed'); if(isCookiesAccepted) { if (isCookiesAccepted === '0' || isCookiesAccepted === '3,6,11') { return "ACCEPTED"; } else if (isCookiesAccepted !== '0' && isCookiesAccepted !== '3,6,11') { return "REJECTED"; } }else{ return "UNKNOWN"; } } function getCookie(name){ var reg = new RegExp("("+name+"=)([^;]*)"); if(document.cookie.match(reg)){ var cookieVal = document.cookie.match(reg)[2]; return cookieVal ? decodeURIComponent(cookieVal): null; } } return { isOptInAnalyticsAccepted: isOptInAnalyticsAccepted, getUserConsent: getUserConsent }; })(),null;const __WEBPACK_DEFAULT_EXPORT__={getChromeExtensionToken:function(){return _scope.authToken},getMaxRetriesForDependencyChecking:function(){return _scope.dependencyCheckingMaxRetries},getTimeoutForDependencyChecking:function(){return _scope.dependencyCheckingSleepTime},getBrowserSecurityToken:function(){return _scope.browserSecurityToken},getLocale:function(){return _scope.locale},getEnv:function(){return _scope.env},getReferer:function(){return _scope.referer},getDomain:function(){return _scope.domain},getGisDomain:function(){return _scope.gisDomain},getStaticImagesDomain:function(){return _scope.gisStaticImagesDomain},getStaticRetailerResources:function(){return _scope.gisStaticRetailerResources},getImagesResources:function(){return _scope.gisImagesResources},getGisStaticChatDomain:function(){return _scope.gisStaticChatDomain},getGisStaticDomain:function(){return _scope.gisStaticDomain},getGisStaticDomainS3:function(){return _scope.gisS3Domain},getGisEventDomain:function(){return _scope.gisEventDomain},iosEnabled:function(){return _scope.iosEnabled},getRetailerKey:function(){return _scope.retailerKey},getRetailerName:function(){return _scope.retailerName},getGAType:function(){return _scope.googleAnalyticsType},getGATrackerName:function(){return _scope.googleAnalyticsTrackerName},getGAReferenceName:function(){return _scope.googleAnalyticsReferenceName},getApiEnabled:function(){return _scope.apiEnabled},getSurveyEnabled:function(){return _scope.surveyEnabled},getSystemConfig:function(){return _scope.systemConfig},getTokboxApiKey:function(){return _scope.tokboxApiKey},getRetailerToken:function(){return _scope.retailerToken},getCometChatAuthKey:function(){return _scope.cometChatAuthKey},getCometChatAppId:function(){return _scope.cometChatAppId},getCometChatRegion:function(){return _scope.cometChatRegion},getUiConfig:function(){return _scope.uiConfig},isAutoStartDirectCallEnabled:function(){return _scope.uiConfig&&_scope.uiConfig.autoStartDirectCall},getCtaRoundelView:function(){return _scope.ctaRoundelView},getCtaTabView:function(){return _scope.ctaTabView},getViews:function(){return _scope.views},getLabels:function(){return _scope.labels},updateLabels,updateCometChatConfig}},2342:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>oe});var i,a,o,s,r,l,c,d,u,_,C,g,E,A,p,T=n(69),S=n(1638),m={SCRIPT_INIT:"SCRIPT_INIT",READY:"READY",CALL_INITIATING:"CALL_INITIATING",CALL_INITIATED:"CALL_INITIATED",IN_CALL:"IN_CALL",CALL_END:"CALL_END",BROADCAST_START:"BROADCAST_START",BROADCAST_PLAYING:"BROADCAST_PLAYING",BROADCAST_END:"BROADCAST_END",REPLAY_START:"REPLAY_START",REPLAY_PLAYING:"REPLAY_PLAYING",REPLAY_END:"REPLAY_END",EMBED_CALL_INITIATED:"EMBED_CALL_INITIATED",NO_BROADCAST_AVAILABLE:"NO_BROADCAST_AVAILABLE"},v="",f="",I=!1,L=!1,b={},y=m.SCRIPT_INIT,O=!1,h=!1,Z=!1,N=!1,w={},R=!1,D=!1,P=!1,U=!1,M=!1,B={},k=null,V=0,G=!1,x="CHECKING",H="CHECKED",K="",W={UNLOADING:"UNLOADING",INACTIVE:"INACTIVE",ACTIVE:"ACTIVE"},F=W.ACTIVE,Y={oneToOne:x,broadcast:x},q=S.Z.INPUT_ALIGNMENT.LTR,$={},j=1,z={},J=["opera","chrome","firefox","samsungbrowser","safari","edge","facebook","instagram"],X=!1,Q=!1;let ee=!1;var te=null,ne=!1;function ie(e){var t=w.deviceName;if(e&&t&&t.match(/linux/i))return"linux";var n=w.osName;return n&&(n=n.toLowerCase()),"mac os x"===n&&(n="macintosh"),n}function ae(){var e=w.text,t=w.browserName;return t?("internet explorer"===(t=t.toLowerCase())&&(t="ie"),t.match(/firefox/i)&&(t="firefox"),ie().match(/ios/)?(e.match(/FBIOS/)&&(t="facebook"),e.match(/instagram/)&&(t="instagram")):ie().match(/android/)&&(e.match(/FBAV/i)&&(t="facebook"),e.match(/Instagram/i)&&(t="instagram")),-1===J.indexOf(t)&&(t="other"),t):""}const oe={getOs:ie,getBrowser:ae,getBrowserVersion:function(){return w.browserVersion},getOsVersion:function(){return w.osVersion},getDeviceName:function(){var e=w.deviceName;return e&&(e=e.toLowerCase()),e},getDeviceType:function(){var e=w.deviceType;return e&&(e=e.toLowerCase()),e},getUserAgent:function(){return w.text},getCallUUID:function(){return i},getLogLevel:function(){return a},getRoutingKey:function(){var e;return"object"==typeof(e=f||v)?JSON.stringify(e):e},getCallStartTime:function(){return o},getBroadcasts:function(){return b.gisBroadcasts||[]},getBroadcastById:function(e){for(var t=0;t{ee=e},isLogglyLoaded:()=>ee,getCometChatLoadedIn:()=>te,setCometChatLoadedIn:e=>{te=e},getCometChatLoginStatus:()=>ne,setCometChatLoginStatus:e=>{ne=e}}},6953:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var i=n(6628),a=n(7448),o=n(2342),s=n(5940),r=n(69),l=n(7274),c=a.Z.storageKeys,d={MEDIA_SHARE:"MEDIA_SHARE",DEVICE_SUPPORT:"DEVICE_SUPPORT"},u=!1;function _(e){var t=a.Z.getItem(e);if(null==t)return 0;var n=r.Z.getTimeWithOutMilliSeconds(),i=Date.parse(t.timeStamp);return Math.abs(Date.parse(n)-i)}function C(e,t){a.Z.isLocalStorageAccessible()&&a.Z.setItem(e,t)}const g={CONTROLLER_KEYS:d,checkSystemSupported:function(){try{return 1===l.Z.checkSystemRequirements()&&u}catch(e){return s.Z.error("systemInfoService","Error occurred on checking system support",e),!1}},checkGisServiceEnabled:function(){var e=i.Z.getSystemConfig();if(null!=e&&0!==Object.keys(e).length){var t=o.ZP.getOs(!0),n=o.ZP.getBrowser();return null!=e[t]&&e[t][n]}return!0},getSystemInfo:function(){return{os:o.ZP.getOs(),browser:o.ZP.getBrowser()}},userVisitsFirstTime:function(){return!!a.Z.isLocalStorageAccessible()&&!a.Z.hasProperty(c.SERVICE_AWARENESS_KEY)},isTimeExpired:function(){return _(c.SERVICE_AWARENESS_KEY)/2592e6>30},saveUserVisitTime:function(){var e,t,n={timeStamp:(e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t.getTime())};C(c.SERVICE_AWARENESS_KEY,n)},isCtaNotificationBarShown:function(){return a.Z.hasProperty(c.BROADCAST_PREVIEW_KEY)},isCtaNotificationBarDismissTimeExpired:function(){return _(c.BROADCAST_PREVIEW_KEY)/864e5>=14},saveUserDismissCtaNotificationBar:function(){var e={timeStamp:r.Z.getTimeWithOutMilliSeconds()};C(c.BROADCAST_PREVIEW_KEY,e)},shouldBypass:function(e){var t=!1;return e!==d.MEDIA_SHARE&&e!==d.DEVICE_SUPPORT||(t="ie"===o.ZP.getBrowser()),t},requiresSSLCall:function(){var e=o.ZP.getBrowser(),t=o.ZP.getBrowserVersion();return("chrome"===e&&t>=47||"safari"===e&&t>=11||"opera"===e||"edge"===e&&t>=17)&&"https:"!==window.location.protocol},setUserMediaSupport:function(e){u=e}}},3203:(e,t,n)=>{"use strict";n.d(t,{Z:()=>D});var i,a,o,s,r,l,c,d,u=n(69),_=n(6628),C=n(2342),g=n(6229),E=n(9656),A=n(1638),p=u.Z,T={extraLarge:"ExtraLarge",large:"Large",medium:"Medium",small:"Small",extraSmall:"ExtraSmall"},S=[{type:T.extraLarge,minWidth:1920,maxWidth:1/0,minHeight:840},{type:T.large,minWidth:1280,maxWidth:1920,minHeight:646},{type:T.medium,minWidth:960,maxWidth:1280,minHeight:380},{type:T.small,minWidth:600,maxWidth:960,minHeight:0},{type:T.extraSmall,minWidth:0,maxWidth:600,minHeight:0}],m=["png","jpeg","jpg"],v=[];function f(e,t,n,i){var a=_.Z.getGisStaticDomainS3(),o="";i.forEach((function(i){o+="@font-face {font-family: '"+e+"';font-style: normal;font-weight: "+("regular"===i?400:i)+";src: url('"+a+"/fonts/"+t+"-"+n+"-"+i+".eot');src: local(''),url('"+a+"/fonts/"+e+"/"+t+"-"+n+"-"+i+".eot?#iefix') format('embedded-opentype'),url('"+a+"/fonts/"+e+"/"+t+"-"+n+"-"+i+".woff2') format('woff2'),url('"+a+"/fonts/"+e+"/"+t+"-"+n+"-"+i+".woff') format('woff'),url('"+a+"/fonts/"+e+"/"+t+"-"+n+"-"+i+".ttf') format('truetype'),url('"+a+"/fonts/"+e+"/"+t+"-"+n+"-"+i+".svg#Roboto') format('svg');}"})),I(o)}function I(e,t){var n=document.createElement("style");n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t?t.appendChild(n):document.body.appendChild(n)}function L(e,t){if(e&&t&&t.children)for(;t.children.length>0;)e.appendChild(t.children[0])}function b(e,t,n,i){var a=document.createElement(e);return t&&(a.id=t),n&&(a.className=n),i&&a.setAttribute("style",i),a}function y(e,t){var n=e;t&&n&&!h(n,t)&&(n.className=n.className.replace(/\s+$/gi,"")+" "+t)}function O(e,t){var n=e;n&&h(n,t)&&(n.className=n.className.replace(t,""))}function h(e,t){return e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function Z(){w(document.body),g.Z.getWindow().gisAppLib.bodyScrollLock.clearAllBodyScrollLocks()}function N(e){Z(),g.Z.getWindow().gisAppLib.bodyScrollLock.disableBodyScroll(e,{allowTouchMove:e=>{for(var t=e;t&&t!==document.body;){if(null!==t.getAttribute("body-scroll-lock-ignore"))return!0;t=t.parentElement}return!1}})}function w(e){O(e,"gis-disable-scroll")}function R(e,t){var n=t||_.Z.getSystemConfig(),i=e.substring(e.lastIndexOf(".")+1,e.length)||e,a=e.substring(0,e.lastIndexOf("."))||e,o=!(!n.imageFormatOverride||!n.imageFormatOverride.enabled)&&n.imageFormatOverride.format,s=n.imageFormatOverride&&n.imageFormatOverride.postfix?n.imageFormatOverride.postfix:"";return o&&m.includes(i)&&("webp"!==o.toLowerCase()||E.Z.isWebpSupported())?a+s+"."+o:e}f("Roboto","roboto-v29","vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic",["regular","500"]);const D={setupGISPanels:function(){var e,t,n,i,a;l=b("div","gis-outer-panel","gis-outer-panel",""),c=b("div","gis-inner-panel","gis-inner-panel",""),d=b("div","gis-bg-cover","gis-bg-cover",""),l.appendChild(c),d.appendChild(l),document.body.appendChild(d),e=l,t=I,a=(i=(n=_.Z.getUiConfig().theme||{})&&n.brandColor&&n.brandColor.enabled&&n.brandColor.color)?n.brandColor.color:"",i&&t(".gis-v3-button {\nbackground: "+a+';\n}\n\nsvg.gis-svg-stars:hover,\n.gis-star-container label:hover ~ label .gis-svg-stars,\n.gis-star-container input[name*="Q-"]:focus ~ label .gis-svg-stars,\n.gis-star-container input[name*="Q-"]:checked ~ label .gis-svg-stars {\ncolor: '+a+";\n}\n\n@keyframes change-color {\nfrom { color: "+a+"; }\nto { color: "+a+"; }\n}",e)},showModal:function(e){var t=document.getElementsByTagName("body")[0],n=document.getElementById("gis-bg-cover");h(t,"gis-popanimationactive")||(O(n,"no-transition"),y(n,"stack"),y(t,"gis-popanimationactive")),N(c),c.firstChild&&c.removeChild(c.firstChild),c.appendChild(e),window.dispatchEvent(new GisCustomEvent("gisUIOpen"))},hideModal:function(e,t){O(document.getElementsByTagName("body")[0],"gis-popanimationactive"),O(document.getElementById("gis-bg-cover"),"stack");var n=null;Z(),void 0!==e&&!1!==e||(t&&(n={action:t}),window.dispatchEvent(new GisCustomEvent("gisUIClosed",{detail:n})))},processView:function(e,t,n){if(!e&&"string"!=typeof e)return null;if(t&&"object"!=typeof t)return null;var i=document.createElement("div");if(i.innerHTML=e,t&&0!==Object.keys(t).length){var a;Object.keys(t).forEach((function(e){Object.prototype.hasOwnProperty.call(t,e)&&("true"===t[e]&&(t[e]=!0),"false"===t[e]&&(t[e]=!1))}));var o=i.innerHTML.match(/\{\{.+\}\}/);if(o){a=o[0].substring(2,o[0].length-2);var s=t[a];s&&(i.innerHTML=i.innerHTML.replace("{{"+a+"}}",s))}for(var r=[],l=i.getElementsByTagName("*"),c=0;c0;)e.removeChild(e.children[0])},removeView:function(e,t){for(;t.children.length>0;)e.removeChild(t.children[0])},bodyRender:function(e){L(document.body,e)},appendBefore:function(e,t,n){for(;t.children.length>0;)e.insertBefore(t.children[0],n)},createElementWithAttributes:b,show:function(e,t){document.getElementById(e).style.display=t||"block"},hide:function(e){document.getElementById(e).style.display="none"},addClass:y,removeClass:O,hasClass:h,isLandscape:function(){return 90===window.orientation||-90===window.orientation},adjustAspectRatioBasedOnWidth:function(e,t,n){var i=document.getElementById(n),a=parseInt(window.getComputedStyle(i,null).getPropertyValue("width").substr(0,3),10)+30,o=t/e;return{width:a,height:Math.round(o*a)}},adjustAspectRatioBasedOnHeight:function(e,t,n){var i=document.getElementById(n),a=parseInt(window.getComputedStyle(i,null).getPropertyValue("height").substr(0,3),10)+30,o=e/t;return{width:Math.round(o*a),height:a}},showAlert:function(e,t){var n=_.Z.getLabels().connectScreen_alertTextOk;(i=b("div","msc-confirm","msc-confirm","display: block;")).innerHTML="

"+e+"

",document.body.appendChild(i),a=t},suspendAlert:function(){document.body.contains(i)&&(document.body.removeChild(i),a instanceof Function&&a())},showConfirm:function(e,t,n){(o=b("div","msc-confirm","msc-confirm","display: block;")).innerHTML="

"+e+"

",document.body.appendChild(o),s=t,r=n},onDialogOk:function(){document.body.contains(o)&&(document.body.removeChild(o),s instanceof Function&&s())},onDialogCancel:function(){document.body.contains(o)&&(document.body.removeChild(o),r instanceof Function&&r())},disable:function(e){null!=e&&null!=document.getElementById(e)&&(document.getElementById(e).disabled=!0)},enable:function(e){null!=e&&null!=document.getElementById(e)&&(document.getElementById(e).disabled=!1)},removeNode:function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},enableBodyScroll:Z,disableBodyScrollExcludingContainer:N,getImageUrl:function(e,t){var n=C.ZP.getLocale(),i=_.Z.getRetailerToken(),a=_.Z.getChromeExtensionToken(),o=_.Z.getBrowserSecurityToken(),s=_.Z.getImagesResources()+"/"+R(e);return n&&(s=u.Z.addParamToUrl(s,"locale="+n)),o?(s=u.Z.addParamToUrl(s,"secToken="+o),s=u.Z.addParamToUrl(s,"referer="+_.Z.getReferer())):(i&&(s=u.Z.addParamToUrl(s,"retailerToken="+i)),a&&(s=u.Z.addParamToUrl(s,"q="+a)),u.Z.isReferrerPolicyEnable()&&(s=u.Z.addParamToUrl(s,"referer="+encodeURIComponent(u.Z.getPageUrl(!1))))),t?s:'url("'+s+'")'},getClerkImageUrl:function(e){return _.Z.getGisDomain()+"/images/clerk/"+btoa(e)},clearTimeouts:function(e){return e.forEach((function(e){clearTimeout(e)})),[]},redirectToHttp:function(){p.isDirectCall()||p.isAutoStartConnectScreen()||p.isDepartmentCall()?window.location.href=p.removeURLParameter(window.location.href,["giscall","gisAutoCall","giscallcategory",A.Z.QUERY_PARAM.GIS_SOCIAL]):p.isHttpsPageRedirected()&&window.history.back()},hasChildNodes:function(e){return e.hasChildNodes()},createCallControlButton:function(e,t,n){var i=b("div",e,n);return y(i,"gis-call-control-button"),i.innerHTML=t,i},addClasses:function(e,t){for(var n=0;ns){if(v[e].movedDown||!v[e].isActive)return;a.call(),v[e].movedUp=!1,v[e].movedDown=!0,v[e].isActive=!1}else{if(v[e].movedUp||v[e].isActive)return;i.call(),v[e].movedUp=!0,v[e].movedDown=!1,v[e].isActive=!0}}))})),t.addEventListener("pointerup",(function(){v[e].movedUp=!1,v[e].movedDown=!1}))},loadHostedFont:f,styleSheetInjector:I,enableScrollLock:function(e){y(e,"gis-disable-scroll")},disableScrollLock:w}},1477:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(6229),a=n(9362),o={LOGTAG:"urlUtilitiesService"},s=[[".com"],[".co"],[".edu"],[".gov"],[".org"],[".net"]];function r(){return i.Z.getWindow().location.href.split("?")[0]}o.getMainDomainForCookie=function(e){for(var t=e||document.location.hostname,n="",i="",a=0;a{n=n+e+"="+t+"&"})),e+n.slice(0,-1)},mergeParamsObject:function(e,t){var n={};return Object.keys(e).forEach((t=>{Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])})),Object.keys(t).forEach((i=>{Object.prototype.hasOwnProperty.call(t,i)&&!Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=t[i])})),n},getLocationObject:function(e){var t=document.createElement("a");return t.href=e,t},getParamsObjectFromUrl:function(e){var t={};return e&&e.search&&e.search.split("?")[1].split("&").reduce(((e,n)=>{t[n.split("=")[0]]=n.split("=")[1]}),""),t},getSupportInfoUrl:function(e,t){return!(!e||!t)&&("string"==typeof e?e:e[t]?e[t]:e.default)},getUrlWithoutParams:r,getUrlWithoutParamsWithLimit:function(e){var t=r();return"string"==typeof t?t.substring(0,e):""},getMainDomainForCookie:o.getMainDomainForCookie,getExternalDeepLinkForAndroidWebviews:function(e){return"intent://"+e.replace("https://","").replace("http://","")+"#Intent;scheme=https;S.browser_fallback_url="+e+";end;"}}},8110:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(2342),a=n(2790),o=n(7448),s=n(69),r=n(9362),l=n(1638),c={},d=function(){return l.Z.COOKIES_PERMISSIONS.REJECTED};c.getUserConsent=d,c.LOGTAG="userService",r.Z.override(c.LOGTAG,c);const u={getUserUUID:function(){var e=i.ZP.getCallUserUUID();return e||(e=a.Z.isCookieEnabled()?a.Z.getCookie(o.Z.storageKeys.CHAT_CALL_USER_UUID):o.Z.getItem(o.Z.storageKeys.CHAT_CALL_USER_UUID)),e},setUserUUID:function(e,t){var n=t||s.Z.getRandomAlphaNumKey();if(a.Z.isCookieEnabled()){if(a.Z.isCookieEnabledInBrowser()&&(e===l.Z.COOKIES_PERMISSIONS.ACCEPTED||a.Z.isOptInEnabledForCookies()&&e===l.Z.COOKIES_PERMISSIONS.UNKNOWN)){n=a.Z.getCookie(o.Z.storageKeys.CHAT_CALL_USER_UUID);var r=o.Z.getItem(o.Z.storageKeys.CHAT_CALL_USER_UUID);n||(n=r||t||s.Z.getRandomAlphaNumKey(),a.Z.setCookie(o.Z.storageKeys.CHAT_CALL_USER_UUID,n,365,a.Z.getMainDomainForCookie())),r&&o.Z.removeItem(o.Z.storageKeys.CHAT_CALL_USER_UUID)}}else(n=o.Z.getItem(o.Z.storageKeys.CHAT_CALL_USER_UUID))||(n=t||s.Z.getRandomAlphaNumKey(),o.Z.setItem(o.Z.storageKeys.CHAT_CALL_USER_UUID,n));i.ZP.setCallUserUUID(n)},getUserConsent:c.getUserConsent,isConsentProcessed:function(){return c.getUserConsent!==d}}},69:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var i=n(6229),a=n(6628),o=n(1638),s=n(2342),r=[{relativeTo:"year",value:3154e4},{relativeTo:"month",value:2592e3},{relativeTo:"week",value:604800},{relativeTo:"day",value:86400},{relativeTo:"hour",value:3600},{relativeTo:"minute",value:60},{relativeTo:"second",value:1}],l=["gis","giscall","gischannel","gisoffered","gisAutoCall","gismeeting","giscallconnect","gisevent","giskey","giscallcategory",o.Z.QUERY_PARAM.GIS_SOCIAL],c=["utm_campaign","utm_source","utm_medium"];function d(){return g(i.Z.getWindow().location.href)}function u(e,t){if(!Array.isArray(t)||!e||0===t.length)return e;var n=g(e),i="",a=e.split("?");if(1===a.length)return a[0];i=a[0];for(var o=0;o-1},isDirectLinkBroadcast:function(){var e=g(i.Z.getWindow().location.href);return null!=e[o.Z.QUERY_PARAM.GIS_CHANNEL_PARAM]||null!=e[o.Z.QUERY_PARAM.GIS_EVENT_PARAM]},isAutoStartConnectScreen:function(){var e=g(i.Z.getWindow().location.href);return Object.prototype.hasOwnProperty.call(e,"gisAutoCall")},removeURLParameter:u,getUrlParams:d,getUrlParamsLowerCase:function(){return T(g(i.Z.getWindow().location.href))},getErrorObject:function(e,t){return{errorCode:e,errorMsg:t}},encodeJSONtoBase64:function(e){return btoa(JSON.stringify(e))},utf8ToBase64:C,compareFunctionNames:function(e,t){var n="/function (.+?)(/)||[,'']";return e.toString().match(n)[1]===t.toString().match(n)[1]},isEncodedUri:function(e){var t=e||"";return t!==decodeURIComponent(t)},setupPolyfills:function(){navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;var e=function(e,t){var n=t;n=n||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),i};e.prototype=window.Event.prototype,window.GisCustomEvent=e},getRandomAlphaNumKey:function(){for(var e="",t=0;t<32;t+=1)e+="0123456789abcdefghijklmnopqrstuvwxyz"[Math.floor(36*Math.random())];return e.slice(0,8)+"-"+e.slice(8,12)+"-"+e.slice(12,16)+"-"+e.slice(16,20)+"-"+e.slice(20,32)},getTimeFromSeconds:function(e){for(var t={},n=e,i=0;i=1?(t[a.relativeTo]=Math.floor(n/a.value),n%=a.value):t[a.relativeTo]=0}return t},getFormattedTime:function(e){if(null==e)return"";var t=e.getHours(),n=e.getMinutes(),i=e.getSeconds(),a="";return t>0&&(a+=("0"+t).slice(-2)+":"),(a+=n>0?("0"+n).slice(-2)+":":"00:")+(i>0?("0"+i).slice(-2):"00")},getFormattedDate:function(e){return null==e?"":e.getDate()+"/"+(e.getMonth()+1)+"/"+e.getFullYear()},getTimeDifference:function(e,t){return e&&t?Math.abs(e.getTime()-t.getTime())/1e3:-1},dateDifferenceInDays:function(e,t){return Math.round((t-e)/864e5)},getSecondsFromStringTime:function(e){var t=0;return e.split(":").reverse().forEach((function(e,n){t+=e*r[r.length-1-n].value})),t},addParamToUrl:E,addToArray:function(e,t){-1===e.indexOf(t)&&e.push(t)},removeFromArray:function(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)},addObjectAsParamToUrl:function(e,t,n,i,a){var o="&"+t+"=",s={},r=JSON.parse(JSON.stringify(e));try{a&&r[a]&&(s[a]=r[a],delete r[a]);for(var l=Object.keys(r).sort((function(e,t){return"string"==typeof r[e]&&"string"==typeof r[t]?r[e].length-r[t].length:0})),c=0;ci){delete s[d];break}}}catch(e){}return o+C(JSON.stringify(s))},getPageUrl:A,isJsonString:function(e){try{JSON.parse(e)}catch(e){return!1}return!0},getFileNameFromUrl:function(e){return e.split("/").pop().split(".")[0]},getWithOffset:function(e){var t=6e4*e.getTimezoneOffset();return e.setTime(e.getTime()-t),e},isImageExists:function(e,t){var n=new Image;n.src=e,n.complete?t(!0):(n.onload=function(){t(!0)},n.onerror=function(){t(!1)})},getReferrerPolicy:function(){var e=null;return p()&&(e=a.Z.getSystemConfig().referrerPolicy.policy),e},isReferrerPolicyEnable:p,isPriorityRoutingKeyObject:function(e){return t=e,["p1","p2","p3","p4"].every((function(e){return Object.prototype.hasOwnProperty.call(t,e)}));var t},convertInTwoDigits:function(e){return e>9?e:"0"+e},isLandscape:function(){return i.Z.getWindow().innerHeight>i.Z.getWindow().innerWidth},callOncePerSession:function(e,t){var n=!0,i="";return function(){(n||t()!==i)&&(i=t(),e()),n=!1}},supportsHLS:function(){var e=document.createElement("video");return!(!e.canPlayType("application/vnd.apple.mpegURL")&&!e.canPlayType("audio/mpegurl"))},debounce:function(e,t){var n;return function(){clearTimeout(n),n=setTimeout((function(){e.apply(this)}),t)}},once:function(e){var t=0;return function(){0===t&&e(),t+=1}},getLocaleFromHtmlTag:function(){return i.Z.getWindow().document.documentElement.lang},removeQueryParamsExceptSome:_,extractUrlParamsValues:g,getReferer:function(e){var t=A(a.Z.getSystemConfig().referer.queryParam.enabled);return e&&(t=encodeURIComponent(t)),t.length>1e3&&(t=t.slice(0,1e3)),t},getTimeWithOutMilliSeconds:function(){return(new Date).toISOString().split(".")[0]+"Z"},supportsMediaSource:function(){return"MediaSource"in window&&MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E, mp4a.40.2"')},isDepartmentCall:function(){return null!=g(i.Z.getWindow().location.href).giscallcategory},areObjectsEqual:function e(t,n){var i=Object.getOwnPropertyNames(t),a=Object.getOwnPropertyNames(n);if(i.length!==a.length)return!1;for(var o=0;o
":t.description+"%0A%0A";var a=_([]);n+=a=encodeURIComponent(E(a,"gisevent="+t.eventId)),i=(i=i.replace("[DESCRIPTION]",n)).replace("[TITLE]",t.title);var s=new Date(t.date),r=new Date(t.date);if(r=new Date(r.setHours(s.getHours()+1)),e===o.Z.CALENDARS.GOOGLE){var l=L(s,o.Z.CALENDARS.GOOGLE)+"/"+L(r,o.Z.CALENDARS.GOOGLE);i=i.replace("[DATE]",l)}else{var c=L(s,e),d=L(r,e);i=(i=i.replace("[START_TIME]",c)).replace("[END_TIME]",d)}return i},getCalendarFormattedDate:L}},2946:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i={};function a(e){return void 0===e||0===e.trim().length}function o(e,t,n){return i.isValid=e||!1,i.errorFields=t||[],i.errorMsg=n||"",i}const s={validateContactData:function(e){var t=[];if(null==e||void 0===e)return t.push("data"),o(!1,t,"Data array not found");var n=e.name,s=e.phone,r=e.email,l=e.message,c=200;return i=o(!0,[],""),(a(n)||n.length>c)&&(t.push("name"),i=o(!1,t,"Invalid name")),(a(s)||s.length>c)&&(t.push("phone"),i=o(!1,t,"Invalid phone number")),(a(r)||r.length>c||!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(r))&&(t.push("email"),i=o(!1,t,"Invalid email")),(void 0===l||l.length>c)&&(t.push("message"),i=o(!1,t,"Invalid message")),i},isUndefinedOrEmpty:a,isDigit:function(e){return e>="0"&&e<="9"},isInt:function(e){return null!=e&&Number.isInteger(Number(e))},isString:function(e){return"string"==typeof e||!!e&&"object"==typeof e&&"[object String]"===Object.prototype.toString.call(e)},validateEmail:function(e){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(e)}}},1638:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const i={CALL_TYPES:{DIRECT:"DIRECT",STANDARD:"STANDARD",MEETING:"MEETING"},CALL_STATUS:{NOT_CONNECTED:0,CONNECTING:1,CONNECTED:2},CALL_END_REASONS:{FAILED:"Failed",CLERK:"Clerk Ended",CONSUMER:"Consumer Ended",OTHER:"Other"},SIGNAL_TYPE:{ADD_TO_BASKET:"ADD-TO-BASKET",CHAT_INITIATED:"CHAT_INITIATED",IS_CHAT_INITIATED:"IS_CHAT_INITIATED",TRANSITION_CHAT_TO_CALL_REQUEST:"TRANSITION_CHAT_TO_CALL_REQUEST",TRANSITION_CHAT_TO_CALL_RESPONSE:"TRANSITION_CHAT_TO_CALL_RESPONSE",ADD_TO_RECOMMENDED:"ADD_TO_RECOMMENDED"},VIEWS:{CONNECT:"CONNECT",HUMANIZED_CONNECT:"HUMANIZED_CONNECT",INVALID_URL:"INVALID_URL",MEETING_CANCELED:"MEETING_CANCELED",MEETING_MISSED:"MEETING_MISSED",MEETING_CONNECT:"MEETING_CONNECT",MEETING_ENDED:"MEETING_ENDED",MEETING_ERROR:"MEETING_ERROR",DIRECT:"DIRECT",CLERK_UNAVAILABLE_CONNECT:"CLERK_UNAVAILABLE_CONNECT",CALL_START:"CALL_START",BOOKING:"BOOKING",ADD_A_PERSON_SCREEN:"ADD_A_PERSON_SCREEN"},MEDIA:{TYPE:{CAMERA:"CAMERA",MIC:"MIC"},STATUS:{DETECTED:"DETECTED",NOT_DETECTED:"NOT_DETECTED",MUTE:"MUTE",UN_MUTE:"UN_MUTE"},PERMISSION:{ALLOWED:"ALLOWED",NOT_ALLOWED:"NOT_ALLOWED"}},CHAT:{MAX_NUM_OF_USERS:20,CURRENT_NUM_OF_USERS:18,MEMBER_COUNT_STATUS:{SUCCESSFUL:1,ERROR_INVALID_GUID:2,ERROR_GENERAL:3},INACTIVITY:{CONVERSATION:{NOTIFICATION_TIMEOUT:300,ENDCALL_TIMEOUT:120},USERNAME:{AUTO_SUBMIT_LIMIT:15,DEFAULT_NAME:"Customer"}},READ_ONLY_CUSTOMER_USERNAME:"READ_ONLY_CUSTOMER_USERNAME"},BROADCAST:{STATUS:{BROADCAST_FOUND:0,BROADCAST_NOT_FOUND:1,INVALID_ALIAS:2}},VIDEO_CONTROLS:{PLAY:"PLAY",PRODUCT:"PRODUCT",CHAT:"CHAT",VOLUME:"VIDEO_VOLUME",FULL_SCREEN:"FULL_SCREEN"},TIME_TYPES:{BOTH:"BOTH",START:"START",END:"END"},CALLSCREEN_MODE:{GIS_CHAT_NORMAL_SCREEN:"GIS_CHAT_NORMAL_SCREEN",GIS_CHAT_FULL_SCREEN:"GIS_CHAT_FULL_SCREEN"},COOKIES_PERMISSIONS:{ACCEPTED:"ACCEPTED",REJECTED:"REJECTED",UNKNOWN:"UNKNOWN"},QUERY_PARAM:{GIS_EVENT_PARAM:"gisevent",GIS_CHANNEL_PARAM:"gischannel",GIS_SOCIAL:"gissocial"},BROADCAST_STATUS:{BROADCAST_CREATED:0,BROADCAST_LIVE:1,BROADCAST_ENDED:10},INPUT_ALIGNMENT:{LTR:"LR",RTL:"RL"},REGEX:{EMOTICON:/(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g,SPECIAL_SYMBOL:/^[A-Za-z0-9. ]+$/,ALPHA_NUM:/^[A-Za-z0-9-]+$/},PRODUCT_POPUP_TYPES:{INFO:"info",CTA:"cta",CTA_TYPES:{DETAILS:"details",SHARED:"shared",BEFORE_YOU_GO:"beforeYouGo",ADD_A_PERSON:"addAPerson"},INFO_TYPES:{ADDED_TO_CART:"addedToCart",ADDED_TO_LIST:"addedToList",CAROUSEL_PROMPT:"carouselPrompt"}},EVENT_NAMES:{SCREEN_RESIZE:"gisWindowResize",SHOW_PRODUCT_DETAILS_POPUP:"showProductDetailsPopup",WINDOW_SCROLL:"gisWindowScroll",ORIENTATION_CHANGE:"gisWindowOrientationChange",CHECK_FOR_CAROUSEL_UPDATE:"checkForCarouselUpdate",CHAT_INACTIVITY_TIMEOUT_REACHED:"chatInactivityTimeoutReached",CHAT_INACTIVITY_TIMEOUT_CLEARED:"chatInactivityTimeoutCleared",COMETCHAT_LOGGED_IN:"cometChatLoggedIn",LIVE_EVENT_REPLAY_TRIGGERED:"liveEventReplayTriggered",CAROUSEL_INITIALIZED:"CAROUSEL_INITIALIZED",INIT_CAROUSEL:"INIT_CAROUSEL",VIDEO_PLAYER_INITIALIZED:"VIDEO_PLAYER_INITIALIZED",INIT_VIDEO_PLAYER:"INIT_VIDEO_PLAYER",INIT_CHAT:"INIT_CHAT",SEND_USERNAME_CONTAINER:"SEND_USERNAME_CONTAINER",ADD_TILE_TO_CAROUSEL:"ADD_TILE_TO_CAROUSEL",SET_POPUP_CONTAINER_DECIDER_FUNCTION:"SET_POPUP_CONTAINER_DECIDER_FUNCTION",SHOW_POPUP:"SHOW_POPUP",SWITCH_POPUP_CONTAINER:"SWITCH_POPUP_CONTAINER",INITIALIZE_CHAT_FUNCTIONALITY:"INITIALIZE_CHAT_FUNCTIONALITY",CHAT_INITIALIZED:"CHAT_INITIALIZED",NO_BROADCAST_UPDATE_LAYOUT:"NO_BROADCAST_UPDATE_LAYOUT",BROADCAST_PLAYER_VIDEO_ENDED:"BROADCAST_PLAYER_VIDEO_ENDED",BROADCAST_PLAYBACK_STARTED:"BROADCAST_PLAYBACK_STARTED",ROUTER:{READY_IS_LOADED:"ROUTER_READY_IS_LOADED",ROUTE_CLOSED:"ROUTER_ROUTE_CLOSED"}},CURRENCY_MAP:{AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"₼",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"__b__",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"₿",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNY:"¥",COP:"$",COU:"COU",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"₸",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"S$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",STN:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYI:"UYI",UYU:"__U__",UYW:"UYW",UZS:"лв",VEF:"Bs",VES:"Bs.S",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",XSU:"Sucre",XUA:"XUA",YER:"﷼",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"},COMET_CHAT_EXTERNAL_EVENTS:{COMET_CHAT_EXTERNAL_MOBILE_VIEW_STATE:"COMET_CHAT_EXTERNAL_MOBILE_VIEW_STATE",COMET_CHAT_EXTERNAL_USER_BANNED:"COMET_CHAT_EXTERNAL_USER_BANNED",COMET_CHAT_EXTERNAL_SEND_MESSAGE_OBJ:"COMET_CHAT_EXTERNAL_SEND_MESSAGE_OBJ",COMET_CHAT_EXTERNAL_TRIGGER_TRANSPARENT_CHAT_EVENTS:"COMET_CHAT_EXTERNAL_TRIGGER_TRANSPARENT_CHAT_EVENTS",COMET_CHAT_EXTERNAL_USER_KICKED:"COMET_CHAT_EXTERNAL_USER_KICKED",COMET_CHAT_EXTERNAL_USER_ALREADY_BANNED:"COMET_CHAT_EXTERNAL_USER_ALREADY_BANNED",COMET_CHAT_EXTERNAL_CHAT_INITIALIZED:"COMET_CHAT_EXTERNAL_CHAT_INITIALIZED",COMET_CHAT_EXTERNAL_DISABLE_SENDING:"COMET_CHAT_EXTERNAL_DISABLE_SENDING",COMET_CHAT_EXTERNAL_ENABLE_SENDING:"COMET_CHAT_EXTERNAL_ENABLE_SENDING"},ACTIONS:{BROADCAST_SCREEN_CLOSED:"BROADCAST_SCREEN_CLOSED"},POPUP_TYPE:{PRECALLSCREEN_MIC_NEEDED:"preCallScreen_MicNeeded",CHAT_INACTIVITY_PROMPT:"chatInactivityPrompt",START_CALL_PROMPT:"startCallPrompt",INCOMING_CALL_PROMPT:"incomingCallPrompt",END_CALL_PROMPT:"endCallPrompt",OUTGOING_CALL_DECLINED:"outgoingCallDeclined",VIDEO_POPUP:"videoPopupMobile",LAYOUT_CHAT_CAROUSEL_POPUP:"layoutDesktopPopup",PRODUCT_DETAILS_POPUP:"PRODUCT_DETAILS_POPUP",CHAT_USERNAME_POPUP:"CHAT_USERNAME_POPUP",HUMANINZED_MOBILE_LANDSCAPE_PROMPT:"HumanizedMobileLandscapePrompt"},DIRECT_CALL_TYPE:{DEPARTMENT_CALL:"departmentCall",CLERK_CALL:"clerkCall"},BROWSER_SHORTCODE_MAP:{facebook:"fb",instagram:"ig"},CALENDARS:{OUTLOOK:"outlook",GOOGLE:"google",YAHOO:"yahoo"},STATES:{PORTRAIT_SHOPSTREAM:{CHAT:"PORTRAIT_SHOPSTREAM_CHAT",CAROUSEL:"PORTRAIT_SHOPSTREAM_CAROUSEL",LAYOUTCONTAINER:"PORTRAIT_SHOPSTREAM_LAYOUTCONTAINER",CHAT_POPUP:"PORTRAIT_SHOPSTREAM_CHAT_POPUP",MOBILE_VIEW:"MOBILE_VIEW",USER_KICKED:"USER_KICKED",USER_BANNED:"USER_BANNED"}},STATE_VARIANTS:{COMPONENT:{ON:"ON",OFF:"OFF",DISABLED:"DISABLED"}},SHOPSTREAM_ORIENTATIONS:{PORTRAIT:"portrait",LANDSCAPE:"landscape"},ROUTES:{CALL:"call",BROADCAST:"broadcast",REPLAY:"replay"},COMETCHAT_LOAD_POINTS:{BROADCAST:"broadcast"},JOURNEYS:{CALL:{CHAT_ONLY:"CHAT_ONLY",AV:"AV"},STREAM:{PORTRAIT:"PORTRAIT",LANDSCAPE:"LANDSCAPE"}}}}},__webpack_module_cache__={},leafPrototypes,getProto,inProgress,dataWebpackPrefix;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},getProto=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);__webpack_require__.r(n);var i={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var a=2&t&&e;"object"==typeof a&&!~leafPrototypes.indexOf(a);a=getProto(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,__webpack_require__.d(n,i),n},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((t,n)=>(__webpack_require__.f[n](e,t),t)),[])),__webpack_require__.u=e=>e+"."+{70:"9acd8c1154e088fe63d2",477:"775943f83ff4b03a22f9",513:"758b884a84feccab8b9d",556:"4aa720bb517a8a581273",631:"75327a40e7b5593fbbb4",946:"419c37c3b85a7b4b1010",977:"3bbddd5d67c1909cd69a"}[e]+".js",__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),inProgress={},dataWebpackPrefix="GISAPP:",__webpack_require__.l=(e,t,n,i)=>{if(inProgress[e])inProgress[e].push(t);else{var a,o;if(void 0!==n)for(var s=document.getElementsByTagName("script"),r=0;r{a.onerror=a.onload=null,clearTimeout(d);var i=inProgress[e];if(delete inProgress[e],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((e=>e(n))),t)return t(n)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),o&&document.head.appendChild(a)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.p="//gis.goinstore.com/static-common/js/chunks/",(()=>{var e={179:0};__webpack_require__.f.j=(t,n)=>{var i=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var a=new Promise(((n,a)=>i=e[t]=[n,a]));n.push(i[2]=a);var o=__webpack_require__.p+__webpack_require__.u(t),s=new Error;__webpack_require__.l(o,(n=>{if(__webpack_require__.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var a=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",s.name="ChunkLoadError",s.type=a,s.request=o,i[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var i,a,[o,s,r]=n,l=0;if(o.some((t=>0!==e[t]))){for(i in s)__webpack_require__.o(s,i)&&(__webpack_require__.m[i]=s[i]);r&&r(__webpack_require__)}for(t&&t(n);l{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{API:()=>ht,Controller:()=>t.Z,GIS_CONSTANTS:()=>s.Z,Router:()=>e.Z,Sym_Sys:()=>de,activityLoggerService:()=>En.Z,addAPersonCtrl:()=>l,addAPersonService:()=>kt.Z,addToCartService:()=>An.Z,autoPlayService:()=>z,availabilityService:()=>pn,availabilityWorker:()=>Me,bookingService:()=>P.Z,broadcastCtrl:()=>nt.Z,browserInfoService:()=>at.Z,callCtrl:()=>ne.Z,callService:()=>ee.Z,callUserService:()=>Tn.Z,chatLogoutService:()=>Sn.Z,chatUserNameService:()=>mn.Z,chatUserService:()=>fn.Z,chatUtilService:()=>vn.Z,clientStorageService:()=>S.Z,contactCaptureCtrl:()=>Ve.Z,cookieService:()=>Bt.Z,ctaAwarenessComponent:()=>ln.Z,ctaBarComponent:()=>cn.Z,ctaComponent:()=>D.Z,ctaRoundelDOMProc:()=>B,ctaTabDOMProc:()=>Z,deviceInfoService:()=>T.Z,directCallCtrl:()=>Je,dockedPlayerComponent:()=>G,eventLoggerService:()=>p.Z,eventService:()=>Ge.Z,gaService:()=>A.Z,gisService:()=>a.Z,globalObjectService:()=>Ut.Z,hlsCtrl:()=>tt.Z,i18nService:()=>Mt.Z,iframeService:()=>In.Z,initCtrl:()=>on,layoutService:()=>Ln.Z,livePageWorker:()=>tn,logService:()=>m.Z,meetingCtrl:()=>Pt,metadataService:()=>wt,mvtService:()=>Vt.Z,otExtractedEnvParser:()=>dn.Z,otExtractedGetDevices:()=>un.Z,otExtractedSupport:()=>nn.Z,otPublisher:()=>_n.Z,otService:()=>te.Z,otSession:()=>Cn.Z,otSubscriber:()=>gn.Z,overrideService:()=>R.Z,pageUnloadService:()=>Zt.Z,pollingService:()=>v.Z,replayCtrl:()=>it.Z,serverInjectionService:()=>E.Z,stateService:()=>r.ZP,systemInfoService:()=>w.Z,uiUtilitiesService:()=>f.Z,urlUtilitiesService:()=>bn.Z,userService:()=>Gt.Z,utilitiesService:()=>o.Z,videoPlayerComponent:()=>k.Z});var e=__webpack_require__(8881),t=__webpack_require__(6616),n=__webpack_require__(9742),i=__webpack_require__.n(n),a=__webpack_require__(4999),o=__webpack_require__(69),s=__webpack_require__(1638),r=__webpack_require__(2342);gisCallbacks.onAddAFriendCallInitiated=function(t){t.token&&r.ZP.setToken(t.token),t.sessionId&&r.ZP.setSessionId(t.sessionId),t.apiKey&&r.ZP.setTokBoxApiKey(t.apiKey),e.Z.route(s.Z.ROUTES.CALL,{call:{routingKey:null,type:s.Z.CALL_TYPES.DIRECT,isAddAPersonCall:!0,data:t}})},gisCallbacks.onAddAFriendCallFailed=function(){e.Z.route(s.Z.ROUTES.CALL,{call:{routingKey:null,type:s.Z.CALL_TYPES.DIRECT,isInvalidUrl:!0}})};const l={init:function(){var e=o.Z.getUrlParams().giscallconnect;a.Z.initiateAddAFriendCall("gisCallbacks.onAddAFriendCallInitiated","gisCallbacks.onAddAFriendCallFailed",e)}};var c,d,u,_,C,g,E=__webpack_require__(6628),A=__webpack_require__(1986),p=__webpack_require__(7383),T=__webpack_require__(9036),S=__webpack_require__(7448),m=__webpack_require__(5940),v=__webpack_require__(4866),f=__webpack_require__(3203),I="gis-hide",L=E.Z.getUiConfig(),b=L.theme,y=L.ctaCustom||!1,O=!1;function h(){c=f.Z.processView(E.Z.getCtaTabView(),{ctaCustom:y}),d=c.querySelector("#GoInStoreDiv"),u=c.querySelector("#gis-connect-to-store-tab"),_=c.querySelector("#gis-clerk-notification"),C=c.querySelector("#gis-tab"),g=c.querySelector("#gis-tabtext"),y&&(_.style.background=f.Z.getImageUrl("gis_button_vertical.png")+" center center no-repeat #000",_.style.backgroundSize="40px auto"),b&&!y&&(C.style.backgroundColor=b.backgroundColor,g.style.color=b.foregroundColor,g.style.fontFamily=b.font),document.body.appendChild(c)}const Z={show:function(e){var t=e;c||h(),t||(t=0),O||(O=!0,f.Z.removeClass(u,I),f.Z.removeClass(_,I),null!==d&&(window.setTimeout((function(){window.setTimeout((function(){d.classList.add("displayblock")}),10)}),t),d.classList.add("displayblock")))},hide:function(){O&&(O=!1,f.Z.addClass(u,I))},setOnClickEvent:function(e){c&&"function"==typeof e&&(u.onclick=e)},setMode:function(){c||h()}};var N,w=__webpack_require__(6953),R=__webpack_require__(9362),D=__webpack_require__(6243),P=__webpack_require__(3408),U={};function M(e,t){return U._isAwarenessMessageEnabled(e,t)&&"clerk"===e&&!t&&P.Z.isEnabledForUnavailableCta()?U.CTA_AWARENESS_MESSAGE_HIDE_TIMEOUT:null}U.LOGTAG="ctaRoundelDOMProc",U.CTA_NOTIFICATION_INTERVAL=400,U.CTA_TEXTBOX_DELAY=1500,U.BROADCAST_PREVIEW_DURATION=4e3,U.BROADCAST_PREVIEW_DELAY=150,U.BROADCAST_OVERLAY_DELAY=U.BROADCAST_PREVIEW_DURATION-1500,U.BROADCAST_PLAY_BTN_DELAY=U.BROADCAST_PREVIEW_DURATION-1e3,U.CTA_AWARENESS_MESSAGE_TIMEOUT=2e3,U.CTA_AWARENESS_MESSAGE_HIDE_TIMEOUT=3e4,U.BROADCAST="broadcast",U.REPLAY="replay",U.CLERK="clerk",U._ctaBrandNoticeMessage=E.Z.getLabels().cta_brand_legal_notice||"",U._connectToStoreTabId="gis-connect-to-store-tab",U._ctaId="gis-cta",U._ctaMsgBoxId="gis-cta-msg-box",U._broadcastNotificationCloseId="gis-close-broadcast",U._notificationTextId="gis-notification-text",U._broadcastPlayBtnId="gis-bd-play-btn",U._broadcastPlayContainerId="gis-bd-play-container",U._broadcastPreviewContainerId="gis-bd-preview-container",U._ctaNotificationMsgContainerId="gis-notification-msg-container",U._broadcastPreviewId="gis-bd-preview",U._ctaContainerId="gis-cta-container",U._ctaNotificationMsgSlideInClass="gis-cta-msg-slide-in",U._ctaStatusContainerId="gis-cta-status-container",U._ctaStatusTimeId="gis-since-live-time",U._ctaReplayTimeId="gis-replay-time",U._ctaReplayTimeIconId="gis-replay-time-icon",U._ctaReplayTimeLabelId="gis-replay-time-label",U._ctaLiveIconId="gis-cta-live-icon",U._liveTextId="gis-cta-live-icon",U._liveTimerId="gis-since-live-time",U._ctaNotificationMsgSlideOutClass="gis-cta-msg-slide-out",U._broadcastPlayButtonAnimationClass="gis-bd-play-button-animation",U._broadcastPreviewContainerSlideUpAnimationClass="gis-bd-slide-up-container",U._broadcastPreviewOverlayClass="gis-bd-overlay",U._circleAnimateShowClass="gis-circle-animate-show",U._circleAnimateHideClass="gis-circle-animate-hide",U._hideClass="gis-hide",U._circleClass="gis-circle",U._ctaMessageBarClass="gis-cta-buttons-message-bar",U._ctaMessageClass="gis-cta-msg",U._ctaMsgBoxClass="gis-cta-msg-box",U._gifPositionClass="gis-bd-gif-position",U._msgBarSharpEdgeClass="gis-msg-bar-sharp-edge",U._gisBrandLegalNoticeId="gis-legal-notice-div",U._gisLegalNoticeMsgId="gis-legal-notice-msg",U._gisLegalNoticeMsgClass="gis-legal-notice-text",U._ctaAvailabilityIndicatorId="gis-cta-indicator",U._ctaImageContainerId="gis-cta-image-container",U._ctaIconBackground="gis-cta-call-icon-image",U._ctaBarMessageSlide="gis-cta-bar-main-container",U._callPreviewArray=["previewCall.gif"],U._uiConfig=E.Z.getUiConfig(),U._systemConfig=E.Z.getSystemConfig(),U._gisTheme=U._uiConfig.theme,U._retailerStaticRoot=E.Z.getStaticRetailerResources(),U._ctaMode="",U._ctaCustom=U._uiConfig.ctaCustom||!1,U._ctaPosition=U._uiConfig.ctaPosition?U._uiConfig.ctaPosition:"right",U._gisBrandLegalNotice=U._uiConfig.brandLegalNotice||!1,U._ctaActive=!1,U._messageBarActive=!1,U._previewActive=!1,U._previewAnimations=[],U.isHumanizedCta=!1,U._borderColor="#61ca43",U._boxShadow="0 0px 0px 0 #61ca43",U._background=f.Z.getImageUrl(f.Z.overrideImageFormat("cta-logo.png",U._uiConfig.cta)),U._liveBorderColor="#f83f3d",U._liveBoxShadow="0 0px 0px 0 #f83f3d",U._liveBackground="linear-gradient(to top, #474747, #6e6e6e)",U._liveTextBackground="#f83f3d",U._liveTextColor="#fff",U._liveTimerTextColor="#9d9d9c",U._secondsSinceLiveCTAClosed=0,U._liveCTAClosedTrackingInterval=null,U.show=function(e){var t=e;U._view||U._init(),t||(t=0),U._ctaActive||(clearInterval(U._liveCTAClosedTrackingInterval),U._ctaActive=!0,U.showTimeout=setTimeout((function(){f.Z.removeClass(U._connectTab,U._hideClass),U._showCircleNotification(),U._ctaMode!==U.BROADCAST||U._timerInterval||U._setLiveTimeSinceStarted(),U._messageBarActive||!U._ctaMode||U.isHumanizedCta||U._slideOutMessageBar()}),t))},U.setMode=function(e,t,n,i){if(U._isCtaPreviewAllowed=U._isShowPreviewAllowed(e),t&&(U.broadcast=t),U._view||U._init(e),"clerk"===e||e!==U._ctaMode||"clerk"!==e&&U.broadcast.id!==t.id){if(U._ctaMode=e,U.isHumanizedCta)return N=e===U.BROADCAST?U._liveBorderColor:U._uiConfig.awarenessMessage&&U._uiConfig.awarenessMessage.mainBtnColor||U._borderColor,U.ctaComp.setup({ctaMode:U._ctaMode,position:U._ctaPosition,roundelColor:N,isAvailable:i,isAnimated:U.isAnimationEnabled(),roundelImage:"cta-logo.png",showAvailabilityIndicator:n,ctaMessage:U._getAwarenessMessage(U._ctaMode,i),isBarMessageEnabled:U.isBarMessageEnabled(U._ctaMode,i),isAwarenessMessageEnabled:U._isAwarenessMessageEnabled(U._ctaMode,i),awarenessMessageHideTimeout:M(U._ctaMode,i)}),U._setupRetailerSpecificCta(e),void(e===U.BROADCAST&&(U._setLiveTimeSinceStarted(),"ie"===r.ZP.getBrowser()&&(U._ctaStatusContainer.style.margin="17px 0px")));var a="";e===U.CLERK?(a=E.Z.getLabels().clerkAvailable_message,U._ctaStatusContainer.style.display="none",f.Z.addClass(U._ctaReplayStreamedContainer,"gis-hideAll")):a=U.broadcast.ctaMessage,U._ctaActive||(U._notificationText.innerText=a),U._ctaActive&&!U._messageBarActive&&(U._notificationText.innerText=a,U._slideOutMessageBar()),U._messageBarActive&&U._slideInMessageBar((function(){U._notificationText.innerText=a,U._slideOutMessageBar()})),e===U.BROADCAST&&(U._setLiveTimeSinceStarted(),"ie"===r.ZP.getBrowser()&&(U._ctaStatusContainer.style.margin="17px 0px"),U._ctaStatusContainer.style.display="block",U._ctaImageContainer.style.display="none",f.Z.addClass(U._ctaReplayStreamedContainer,"gis-hideAll")),e===U.REPLAY&&(U._ctaStatusContainer.style.display="none",f.Z.removeClass(U._ctaReplayStreamedContainer,"gis-hideAll")),U._setupRetailerSpecificCta(e),U._setAvailabilityIndicator(n,i)}},U.setOnClickEvent=function(e){if(U._view&&"function"==typeof e){U.isHumanizedCta||(U._cta.onclick=function(t){e.call(this,t)}),U._ctaMsgBox&&(U._ctaMsgBox.onclick=function(t){e.call(this,t)});var t=document.getElementById(U._broadcastPlayContainerId);t&&(t.onclick=function(){e()}),U.ctaComp&&U.isHumanizedCta&&(U.ctaComp.setOnClick(e),U.ctaComp.setOnClickForAwarenessMessage(e),U.ctaComp.setOnClickForBarMessage(e))}},U.hide=function(){U._ctaActive&&(clearTimeout(U.showTimeout),clearTimeout(U._timerInterval),U._initLiveCTAClosedTimeTracking(),U._timerInterval=null,U._ctaActive=!1,U.isHumanizedCta||U._slideInMessageBar(),U._hideCircleNotification(),U.ctaComp&&(U.ctaComp.hide(),U.ctaComp.setRoundelCloseButton(!1)))},U._initLiveCTAClosedTimeTracking=function(){U._liveCTAClosedTrackingInterval=setInterval((function(){U._secondsSinceLiveCTAClosed+=1}),1e3)},U._getAwarenessMessage=function(e,t){var n,i,a=[];return e===U.CLERK?t?(i=E.Z.getLabels().awarenessCta_startCallMessage,n=E.Z.getLabels().awarenessCta_message):(i=E.Z.getLabels().awarenessCta_unavailableBookCall,n=E.Z.getLabels().awarenessCta_unavailableMessage):(i=E.Z.getLabels().awarenessCta_startBroadcastMessage,n=U.broadcast&&U.broadcast.name&&U.broadcast.name.slice(0,55)),a.push(n),a.push(i),a},U._init=function(e){U._view=f.Z.processView(E.Z.getCtaRoundelView(),{ctaPreview:!0,ctaMessage:!0}),"humanized"===U._uiConfig.ctaType&&(U._gisTheme&&(U._borderColor=U._gisTheme.mainColor),U.isHumanizedCta=!0,N=e===U.BROADCAST?U._liveBorderColor:U._uiConfig.awarenessMessage&&U._uiConfig.awarenessMessage.mainBtnColor||U._borderColor,U.ctaComp=new D.Z({ctaMode:e,position:U._ctaPosition,roundelColor:N,ctaMessage:U._getAwarenessMessage(e,r.ZP.getClerkAvailability()),roundelImage:"cta-logo.png",isAnimated:U.isAnimationEnabled(),isAwarenessMessageEnabled:U._isAwarenessMessageEnabled(e,r.ZP.getClerkAvailability()),isBarMessageEnabled:U.isBarMessageEnabled(e,r.ZP.getClerkAvailability()),awarenessMessageHideTimeout:M(e,r.ZP.getClerkAvailability()),isAvailable:r.ZP.getClerkAvailability(),showAvailabilityIndicator:e!==U.BROADCAST}),U._view=U.ctaComp.render()),U._cta=U._view.querySelector("#"+U._ctaId),U._connectTab=U._view.querySelector("#"+U._connectToStoreTabId),U._notificationMessageContainer=U._view.querySelector("#"+U._ctaNotificationMsgContainerId),U._notificationText=U._view.querySelector("#"+U._notificationTextId),U._ctaMsgBox=U._view.querySelector("#"+U._ctaMsgBoxId),U._broadcastNotificationCloseButton=U._view.querySelector("#"+U._broadcastNotificationCloseId),U._ctaContainer=U._view.querySelector("#"+U._ctaContainerId),U._ctaStatusContainer=U._view.querySelector("#"+U._ctaStatusContainerId),U._ctaStatusTime=U._view.querySelector("#"+U._ctaStatusTimeId),U._ctaReplayStreamedContainer=U._view.querySelector("#"+U._ctaReplayTimeId),U._ctaReplayStreamedIcon=U._view.querySelector("#"+U._ctaReplayTimeIconId),U._ctaReplayStreamedLabel=U._view.querySelector("#"+U._ctaReplayTimeLabelId),U._ctaLiveIcon=U._view.querySelector("#"+U._ctaLiveIconId),U._liveText=U._view.querySelector("#"+U._liveTextId),U._liveTimer=U._view.querySelector("#"+U._liveTimerId),U._gisBrandLegalNoticeDiv=U._view.querySelector("#"+U._gisBrandLegalNoticeId),U._gisLegalNoticeMsg=U._view.querySelector("#"+U._gisLegalNoticeMsgId),U._ctaAvailabilityIndicator=U._view.querySelector("#"+U._ctaAvailabilityIndicatorId),U._ctaImageContainer=U._view.querySelector("#"+U._ctaImageContainerId),U._cta.style.backgroundSize="cover",U._gisTheme&&(U._borderColor=U._gisTheme.mainColor,U._boxShadow="0px 0px 0px 0px "+U._gisTheme.mainColor,U.isHumanizedCta||(U._notificationMessageContainer.style.backgroundColor=U._gisTheme.backgroundColor,U._notificationText.style.color=U._gisTheme.foregroundColor,U._notificationText.style.fontFamily=U._gisTheme.font)),U.isHumanizedCta||(U._cta.style.backgroundImage=U._background,U._notificationText.style.display="none",U._gisBrandLegalNotice||(U._gisBrandLegalNoticeDiv.style.display="none"),U._previewContainer=U._view.querySelector("#"+U._broadcastPreviewContainerId),U._preview=U._view.querySelector("#"+U._broadcastPreviewId),U._previewPlayContainer=U._view.querySelector("#"+U._broadcastPlayContainerId),U._previewPlayButton=U._view.querySelector("#"+U._broadcastPlayBtnId),U._setMessageBarCloseClick(),U._gisBrandLegalNotice&&(f.Z.removeClass(U._gisBrandLegalNoticeDiv,"gis-hide"),U._gisLegalNoticeMsg.innerText=U._ctaBrandNoticeMessage)),U._setupCtaPosition(U._ctaPosition),document.body.appendChild(U._view)},U._setupCtaPosition=function(e){var t=e;"left"!==t&&"right"!==t&&(t="right"),f.Z.addClass(U._ctaContainer,U._circleClass+"-"+t),f.Z.addClass(U._notificationMessageContainer,U._ctaMessageBarClass+"-"+t),f.Z.addClass(U._notificationText,U._ctaMessageClass+"-"+t),f.Z.addClass(U._previewContainer,U._gifPositionClass+"-"+t),f.Z.addClass(U._gisLegalNoticeMsg,U._gisLegalNoticeMsgClass+"-"+t),f.Z.addClass(U._ctaMsgBox,U._ctaMsgBoxClass+"-"+t),"left"===t&&U._broadcastNotificationCloseButton&&(U._broadcastNotificationCloseButton.style.left="initial",U._broadcastNotificationCloseButton.style.right="10px"),"right"===t?U._ctaAvailabilityIndicator.style.right="0px":U._ctaAvailabilityIndicator.style.left="0px",U._ctaNotificationMsgSlideInClass=U._ctaNotificationMsgSlideInClass+"-"+t,U._ctaNotificationMsgSlideOutClass=U._ctaNotificationMsgSlideOutClass+"-"+t,U._msgBarSharpEdgeClass=U._msgBarSharpEdgeClass+"-"+t},U._isShowPreviewAllowed=function(e){var t={clerk:U._uiConfig.ctaCallPreview||{mobile:!1,desktop:!0},replay:U._uiConfig.ctaBroadcastPreview||{mobile:!1,desktop:!0},broadcast:U._uiConfig.ctaBroadcastPreview||{mobile:!1,desktop:!0}};return T.Z.isMobileDevice()?t[e].mobile:t[e].desktop},U._setMessageBarCloseClick=function(){U._broadcastNotificationCloseButton.onclick=function(e){e.stopPropagation(),U._slideInMessageBar(),w.Z.saveUserDismissCtaNotificationBar()}},U._showCircleNotification=function(){setTimeout((function(){f.Z.removeClass(U._cta,U._circleAnimateHideClass),f.Z.addClass(U._cta,U._circleAnimateShowClass),U.ctaComp&&U.ctaComp.show()}),U.CTA_NOTIFICATION_INTERVAL)},U._hideCircleNotification=function(){setTimeout((function(){f.Z.removeClass(U._cta,U._circleAnimateShowClass),f.Z.addClass(U._cta,U._circleAnimateHideClass)}),U.CTA_NOTIFICATION_INTERVAL)},U._slideOutMessageBar=function(){U._messageBarActive=!0,!S.Z.isLocalStorageAccessible()||w.Z.isCtaNotificationBarShown()&&!w.Z.isCtaNotificationBarDismissTimeExpired()||(U._messageBarAnimation=setTimeout((function(){U._notificationText.style.display="inherit",U._ctaMsgBox.style.display="inherit",f.Z.removeClass(U._notificationMessageContainer,U._ctaNotificationMsgSlideInClass),f.Z.addClass(U._notificationMessageContainer,U._ctaNotificationMsgSlideOutClass)}),U.CTA_TEXTBOX_DELAY),U._isCtaPreviewAllowed?U._showPreview(U._ctaMode):f.Z.removeClass(U._notificationMessageContainer,U._msgBarSharpEdgeClass))},U._slideInMessageBar=function(e){clearTimeout(U._messageBarAnimation),U._messageBarActive=!1,U._previewActive&&U._hidePreview(),f.Z.removeClass(U._notificationMessageContainer,U._ctaNotificationMsgSlideOutClass),f.Z.addClass(U._notificationMessageContainer,U._ctaNotificationMsgSlideInClass),setTimeout((function(){e&&e(),U._ctaMsgBox.style.display="none"}),U.CTA_NOTIFICATION_INTERVAL)},U._showPreview=function(e){if(U._previewActive=!0,f.Z.addClass(U._notificationMessageContainer,U._msgBarSharpEdgeClass),e===U.CLERK)U._preview.style.background=f.Z.getImageUrl(U._callPreviewArray[0]+"?rand="+Math.random())+" center no-repeat";else{var t=U.broadcast.ctaImage;if(!t)return void U._hidePreview();e===U.REPLAY&&U._setReplayTimeSinceStarted(),U._preview.style.background=f.Z.getImageUrl(t+"?rand="+Math.random())+" center no-repeat"}U._preview.style.backgroundSize="cover",U._previewPlayButton.src=f.Z.getImageUrl("preview-play-button.png",!0),f.Z.removeClass(U._previewContainer,U._hideClass);var n=setTimeout((function(){f.Z.addClass(U._previewContainer,U._broadcastPreviewContainerSlideUpAnimationClass)}),U.BROADCAST_PREVIEW_DELAY+U.CTA_TEXTBOX_DELAY),i=setTimeout((function(){f.Z.addClass(U._previewPlayContainer,U._broadcastPreviewOverlayClass)}),U.BROADCAST_OVERLAY_DELAY+U.CTA_TEXTBOX_DELAY),a=setTimeout((function(){f.Z.addClass(U._previewPlayButton,U._broadcastPlayButtonAnimationClass)}),U.BROADCAST_PLAY_BTN_DELAY+U.CTA_TEXTBOX_DELAY);U._previewAnimations.push(n,i,a)},U._hidePreview=function(){U._previewActive=!1,U._notificationMessageContainer.style.borderTopLeftRadius="12px",U._previewAnimations.forEach((function(e){clearTimeout(e)})),f.Z.removeClass(U._previewContainer,U._broadcastPreviewContainerSlideUpAnimationClass),f.Z.removeClass(U._previewPlayButton,U._broadcastPlayButtonAnimationClass),f.Z.removeClass(U._previewPlayContainer,U._broadcastPreviewOverlayClass),f.Z.addClass(U._previewContainer,"gis-hide")},U._setLiveTimeSinceStarted=function(){-1!==U.broadcast.secondsSinceStarted&&(U.currentBroadcastLiveTime=new Date,U.currentBroadcastLiveTime.setHours(0,0,0,0),U.currentBroadcastLiveTime.setSeconds(U.currentBroadcastLiveTime.getSeconds()+U.broadcast.secondsSinceStarted+U._secondsSinceLiveCTAClosed),U._ctaStatusTime.innerHTML=o.Z.getFormattedTime(U.currentBroadcastLiveTime),U._timerInterval=setInterval(U._updateLiveTime,1e3))},U._updateLiveTime=function(){U.broadcast.secondsSinceStarted+=1,U.currentBroadcastLiveTime.setSeconds(U.currentBroadcastLiveTime.getSeconds()+1),U._ctaStatusTime.innerHTML=o.Z.getFormattedTime(U.currentBroadcastLiveTime)},U._setReplayTimeSinceStarted=function(){U._ctaReplayStreamedIcon.src=f.Z.getImageUrl("time-ago.svg",!0);var e=["year","month","week","day","hour","minute","second"],t=U.broadcast?U.broadcast.secondsSinceStarted:0;if(0!==t)for(var n=o.Z.getTimeFromSeconds(t),i=0;i0){var s=n[a]+("month"===a?"mo":a.charAt(0));U._ctaReplayStreamedLabel.innerHTML=" "+s;break}}},U._setupRetailerSpecificCta=function(e){e!==U.CLERK&&e!==U.REPLAY||(U._cta.style.borderColor=U._borderColor,U._cta.style.boxShadow=U._boxShadow,U._cta.style.backgroundSize="cover"),e===U.BROADCAST&&(U._cta.style.borderColor=U._liveBorderColor,U._cta.style.boxShadow=U._liveBoxShadow,U._cta.style.background=U._liveBackground,U._liveText.style.background=U._liveTextBackground,U._liveText.style.color=U._liveTextColor,U._liveTimer.style.color=U._liveTimerTextColor)},U._setAvailabilityIndicator=function(e,t){e?(U._ctaAvailabilityIndicator.style.display="block",t?f.Z.addClass(U._ctaAvailabilityIndicator,"available"):f.Z.addClass(U._ctaAvailabilityIndicator,"unavailable")):U._ctaAvailabilityIndicator.style.display="none"},U._isAwarenessMessageEnabled=function(e,t){if(!Array.isArray(U._uiConfig.ctaAwarenessMessage.enabled))return!1;var n=U._uiConfig.ctaAwarenessMessage.enabled;return(T.Z.isMobileDevice()&&U._uiConfig.ctaAwarenessMessage.isEnabledOn&&U._uiConfig.ctaAwarenessMessage.isEnabledOn.mobile||!T.Z.isMobileDevice()&&U._uiConfig.ctaAwarenessMessage.isEnabledOn&&U._uiConfig.ctaAwarenessMessage.isEnabledOn.desktop)&&(n.includes("clerk")&&(t||P.Z.isEnabledForUnavailableCta())&&"clerk"===e||"clerk"!==e&&n.includes(e))},U.isBarMessageEnabled=function(e,t){return(T.Z.isMobileDevice()||T.Z.isIPad())&&U._uiConfig.ctaBarMessage&&U._uiConfig.ctaBarMessage.enabled&&U._uiConfig.ctaBarMessage.mobile&&"clerk"===e&&t},U.isAnimationEnabled=function(){return!!r.ZP.getClerkAvailability()&&(T.Z.isMobileDevice()||T.Z.isIPad()?U._uiConfig.cta.animation.enabled&&U._uiConfig.cta.animation.mobile:U._uiConfig.cta.animation.enabled&&U._uiConfig.cta.animation.desktop)},R.Z.override(U.LOGTAG,U);const B={show:U.show,hide:U.hide,setOnClickEvent:U.setOnClickEvent,setMode:U.setMode};var k=__webpack_require__(9034),V=__webpack_require__(861);function G(e){var t,n,i,a={CTA_AUTO_PLAY_MIN_BACKGROUND_COLOR:"black",CTA_AUTO_PLAY_BROADCAST_TITLE_COLOR:"white",CTA_AUTO_PLAY_DISMISS_BTN_RIM_COLOR:"green",CTA_AUTO_PLAY_MIN_BTN_BACKGROUND_COLOR:"black",components:[],subviews:[],totalPlayTime:0,LOGTAG:"dockedPlayerComponent"},r=e,l=!1,c=!1,d=!1;function u(e){if(clearInterval(n),a.view.style.animation="2s gis-slide-down forwards",("call"===r.type||"replay_engagement"===r.type||e)&&r.onVideoPlayerDismissed(),e){S.Z.setItem(S.Z.storageKeys.CTA_AUTO_PLAY_DISMISSED,o.Z.getTimeWithOutMilliSeconds());var s=t?a.totalPlayTime+((new Date).getTime()-t)/1e3:a.totalPlayTime;p.Z.logEvent(p.Z.GIS_EVENTS.CTA_AUTOPLAY_CLOSED,{channelId:r.broadcast.channelId,broadcastId:r.broadcast.id,viewMode:r.mode,viewDuration:s,url:o.Z.getPageUrl(!0),title:r.broadcast.name,videoType:r.broadcast.type,channelConfig:r.broadcast.config,videoTimeStamp:_()}),A.Z.sendAnalyticsEvent(A.Z.ANALYTICS_EVENTS.CTA_AUTOPLAY_CLOSED,{channelId:r.broadcast.channelId,broadcastId:r.broadcast.id,viewMode:r.mode,viewDuration:s,title:r.broadcast.name,videoType:r.broadcast.type,videoTimeStamp:_()})}setTimeout((function(){i.dispose(),a.view&&f.Z.clearView(a.view)}),1e3),c=!1}function _(){var e=o.Z.getTimeFromSeconds(i.getPlayer().currentTime),t=new Date;return t.setHours(e.hour,e.minute,e.second),o.Z.getFormattedTime(t)}function C(e){r.mode="minimized";var n=t?a.totalPlayTime+((new Date).getTime()-t)/1e3:a.totalPlayTime;i.hideCaptions(),a.subviews.ctaContainer.style.backgroundColor=a.CTA_AUTO_PLAY_MIN_BACKGROUND_COLOR,a.view.style.backgroundColor=a.CTA_AUTO_PLAY_MIN_BACKGROUND_COLOR,a.view.style.animation="1s gis-min-cta forwards",a.subviews.autoPlayDismissBtn.style.animation="1s gis-min-dismissBtn forwards",a.subviews.title.style.animation="1s gis-min-title forwards",a.subviews.title.style.transform="translate(0, 15px)",a.subviews.videoContainer.querySelector("div").style.animation="1s gis-min-cta forwards",a.subviews.videoContainer.querySelector("div").style.animation="1s gis-min-cta-video forwards",a.subviews.videoContainer.querySelector("div>video").style.animation="1s gis-min-video forwards",a.subviews.muteBtn.style.animation="1s gis-min-cta-mute forwards",a.subviews.muteBtn.style.top="24px",!l&&e||(a.subviews.pauseOverlay.style.animation="1s gis-min-pause-overlay forwards",a.subviews.pauseBtn.style.animation="1s gis-min-kw-container forwards",a.subviews.pauseBtn.children[0].style.animation="1s gis-min-kw-image forwards",a.subviews.pauseBtn.children[1].style.display="none",l&&(a.subviews.title.innerHTML=E.Z.getLabels().ctaAutoPlay_minimizedPauseLabel,a.subviews.autoPlayDismissBtn.querySelector("svg").style.opacity=.5)),a.subviews.fullScreenBtn.style.display="none",a.subviews.autoPlayDismissBtn.querySelector("svg path").style.display="none",a.subviews.autoPlayDismissBtn.querySelector("svg polygon").style.display="block",a.subviews.title.style.background="transparent",a.subviews.autoPlayDismissBtn.querySelector("svg circle").style.fill="transparent",setTimeout((function(){a.view.style.height="62px",a.subviews.videoContainer.style.width="auto",a.subviews.videoContainer.style.height="62px",a.subviews.videoContainer.querySelector("div").style.width=110.22222222222221.toFixed()+"px",a.subviews.videoContainer.querySelector("div").style.height="62px",f.Z.addClass(a.subviews.videoContainer,"gis-min-transition"),a.subviews.title.style.height="50%",a.subviews.title.style.cursor="pointer",a.subviews.title.onclick=v;var t=e?p.Z.GIS_EVENTS.CTA_AUTOPLAY_MINIMISED_CLICKED:p.Z.GIS_EVENTS.CTA_AUTOPLAY_AUTO_MINIMISED;p.Z.logEvent(t,{channelId:r.broadcast.channelId,broadcastId:r.broadcast.id,viewMode:r.mode,viewDuration:n,url:o.Z.getPageUrl(!0),title:r.broadcast.name,videoType:r.broadcast.type,channelConfig:r.broadcast.config,videoTimeStamp:_()})}),1e3)}function g(){var e,n;if(i.getPlayer().muted){try{i.getPlayer().muted=!1,e=p.Z.GIS_EVENTS.CTA_AUTOPLAY_UNMUTE,n=A.Z.ANALYTICS_EVENTS.CTA_AUTOPLAY_UNMUTE}catch(e){}a.subviews.muteBtn.style.background=f.Z.getImageUrl("volume.png")+" no-repeat center center/ "+("maximized"===r.mode?"contain":"15px")}else a.subviews.muteBtn.style.background=f.Z.getImageUrl("muted.png")+" no-repeat center center / "+("maximized"===r.mode?"contain":"15px"),i.getPlayer().muted=!0,e=p.Z.GIS_EVENTS.CTA_AUTOPLAY_MUTE,n=A.Z.ANALYTICS_EVENTS.CTA_AUTOPLAY_MUTE;var s=t?a.totalPlayTime+((new Date).getTime()-t)/1e3:a.totalPlayTime;p.Z.logEvent(e,{channelId:r.broadcast.channelId,broadcastId:r.broadcast.id,channelConfig:r.broadcast.config,viewMode:r.mode,viewDuration:s,url:o.Z.getPageUrl(!0),title:r.broadcast.name,videoType:r.broadcast.type,videoTimeStamp:_()}),A.Z.sendAnalyticsEvent(n,{channelId:r.broadcast.channelId,broadcastId:r.broadcast.id,viewMode:r.mode,viewDuration:s,title:r.broadcast.name,videoType:r.broadcast.type,videoTimeStamp:_()})}function v(){var e=t?a.totalPlayTime+((new Date).getTime()-t)/1e3:a.totalPlayTime;p.Z.logEvent(p.Z.GIS_EVENTS.CTA_AUTOPLAY_FULLSCREEN,{channelId:r.broadcast.channelId,broadcastId:r.broadcast.id,channelConfig:r.broadcast.config,viewMode:r.mode,viewDuration:e,url:o.Z.getPageUrl(!0),title:r.broadcast.name,videoType:r.broadcast.type,videoTimeStamp:_()}),A.Z.sendAnalyticsEvent(A.Z.ANALYTICS_EVENTS.CTA_AUTOPLAY_FULLSCREEN,{channelId:r.broadcast.channelId,broadcastId:r.broadcast.id,viewMode:r.mode,viewDuration:e,title:r.broadcast.name,videoType:r.broadcast.type,videoTimeStamp:_()}),u(),r.onVideoPlayerClicked()}function I(e){d||(d=!0,"touchstart"===e.type?a.subviews.videoContainer.removeEventListener("click",I):"click"===e.type&&a.subviews.videoContainer.removeEventListener("touchstart",I),v())}function L(){a.subviews.pauseOverlay.style.display="flex",a.subviews.pauseBtn.onclick=v,"maximized"===r.mode?(a.subviews.pauseOverlay.style.height="82%",a.subviews.videoContainer.style.width="100%",a.subviews.pauseBtn.style.height="30%"):(a.subviews.pauseOverlay.style.width=110.22222222222221.toFixed()+"px",a.subviews.pauseOverlay.style.height="100%",a.subviews.pauseOverlay.style.left="30px",a.subviews.videoContainer.style.width=110.22222222222221.toFixed()+"px",a.subviews.pauseBtn.style.height="60%",a.subviews.pauseBtn.style.width="50%",a.subviews.pauseBtnImage.style.width=110.22222222222221.toFixed()+"px",a.subviews.pauseBtnLabel.style.display="none")}return{render:function(){"maximized"!==r.mode&&"minimized"!==r.mode&&(r.mode="maximized"),a.view=f.Z.processView(E.Z.getViews().dockedPlayerView,{ctaMaximised:"maximized"===r.mode,ctaMinimised:"maximized"!==r.mode});var e="";return"maximized"===r.mode?(e="max",a.subviews.fullScreenBtn=a.view.querySelector("#gis-cta-autoplay-fs-btn")):(e="min",a.subviews.autoPlayContent=a.view.querySelector("#gis-cta-autoplay-content")),a.subviews.ctaContainer=a.view.querySelector("#gis-cta-video-wrap"),a.subviews.videoContainer=a.view.querySelector("#gis-pbvideo-container-"+e),a.subviews.video=a.view.querySelector("#gis-autoplay-video-"+e),a.subviews.title=a.view.querySelector("#gis-cta-video-title-"+e),a.subviews.muteBtn=a.view.querySelector("#gis-cta-video-mute-"+e),a.subviews.autoPlayDismissBtn=a.view.querySelector("#gis-cta-autoplay-btn-"+e),a.subviews.pauseBtn=a.view.querySelector("#gis-cta-autoplay-kw-container"),a.subviews.pauseOverlay=a.view.querySelector("#gis-cta-autoplay-pause-bg"),a.subviews.pauseBtnImage=a.view.querySelector("#gis-pause-btn-img"),a.subviews.pauseBtnLabel=a.view.querySelector("#gis-pause-btn-label"),a.subviews.videoTitle=a.view.querySelector("#gis-cta-video-title-max"),a.subviews.forEach((function(e){f.Z.addClass(e,"gis-mobile")})),"minimized"===r.mode&&(a.subviews.ctaContainer.style.backgroundColor=a.CTA_AUTO_PLAY_MIN_BACKGROUND_COLOR),"maximized"===r.mode&&(a.subviews.title.style.position="absolute",a.subviews.title.style.fontSize="16px"),"minimized"===r.mode&&(a.subviews.title.style.transform="translate(0, 22px)",a.subviews.title.style.justifyContent="left",a.subviews.title.style.alignItems="center",a.subviews.title.style.fontSize="13px"),a.subviews.title.style.width="maximized"===r.mode?"78%":"100%",a.subviews.title.style.padding="maximized"===r.mode?"10px 0px 10px":"0px 0px 0px 6px",a.subviews.title.style.color=a.CTA_AUTO_PLAY_BROADCAST_TITLE_COLOR,a.subviews.title.style.zIndex="9",a.subviews.title.style.top="0",a.subviews.title.style.left="maximized"===r.mode?"40px":"0",a.subviews.title.style.whiteSpace="nowrap",a.subviews.title.style.overflow="hidden",a.subviews.title.style.textOverflow="ellipsis",a.subviews.title.style.textAlign="center",a.subviews.title.innerHTML=r.broadcast&&r.broadcast.name,a.subviews.muteBtn.style.color="white",a.subviews.muteBtn.style.position="maximized"===r.mode?"absolute":"relative",a.subviews.muteBtn.style.right="maximized"===r.mode?"18px":"0px",a.subviews.muteBtn.style.width="maximized"===r.mode?"16px":"30px",a.subviews.muteBtn.style.height="maximized"===r.mode?"16px":"100%",a.subviews.muteBtn.style.top="maximized"===r.mode?"40px":"0px",a.subviews.muteBtn.style.zIndex="10",a.subviews.muteBtn.style.cursor="pointer",a.subviews.muteBtn.style.background=f.Z.getImageUrl("muted.png")+" no-repeat center center / "+("maximized"===r.mode?"contain":"15px"),a.subviews.muteBtn.onclick=g,function(){if(a.subviews.fullScreenBtn){if("call"===r.type)return void(a.subviews.fullScreenBtn.style.display="none");a.subviews.fullScreenBtn.style.position="absolute",a.subviews.fullScreenBtn.style.left="15px",a.subviews.fullScreenBtn.style.top="10px",a.subviews.fullScreenBtn.style.width="15px",a.subviews.fullScreenBtn.style.height="20px",a.subviews.fullScreenBtn.style.zIndex="10",a.subviews.fullScreenBtn.style.cursor="pointer",a.subviews.fullScreenBtn.onclick=v}}(),"maximized"===r.mode?(a.subviews.autoPlayDismissBtn.style.position="absolute",a.subviews.autoPlayDismissBtn.style.right="15px",a.subviews.autoPlayDismissBtn.style.top="10px",a.subviews.autoPlayDismissBtn.style.width="22px",a.subviews.autoPlayDismissBtn.style.height="22px",a.subviews.autoPlayDismissBtn.querySelector("svg circle").style.fill=a.CTA_AUTO_PLAY_MIN_BTN_BACKGROUND_COLOR,"replay"===r.type?a.subviews.autoPlayDismissBtn.onclick=function(){"maximized"===r.mode?C(!0):u(!0)}:(a.subviews.autoPlayDismissBtn.querySelector("svg path").style.display="none",a.subviews.autoPlayDismissBtn.querySelector("svg polygon").style.display="block",a.subviews.autoPlayDismissBtn.onclick=u.bind(null,!0))):(a.subviews.autoPlayDismissBtn.style.width="40px",a.subviews.autoPlayDismissBtn.style.height="100%",a.subviews.autoPlayDismissBtn.style.float="right",a.subviews.autoPlayDismissBtn.querySelector("svg circle").style.fill="transparent",a.subviews.autoPlayDismissBtn.querySelector("svg").style.width="30px",a.subviews.autoPlayDismissBtn.querySelector("svg").onclick=function(){u(!0)}),a.subviews.autoPlayDismissBtn.style.cursor="pointer",a.subviews.autoPlayDismissBtn.style.zIndex="10",a.subviews.autoPlayDismissBtn.querySelector("svg circle").style.stroke=a.CTA_AUTO_PLAY_DISMISS_BTN_RIM_COLOR,i=new k.Z({width:"100%",height:"100%",hideControls:[s.Z.VIDEO_CONTROLS.PLAY,s.Z.VIDEO_CONTROLS.VOLUME,s.Z.VIDEO_CONTROLS.PRODUCT,s.Z.VIDEO_CONTROLS.CHAT,s.Z.VIDEO_CONTROLS.FULL_SCREEN,s.Z.TIME_TYPES.BOTH,s.Z.TIME_TYPES.START,s.Z.TIME_TYPES.END],onPlay:function(){if(i.getPlayer().muted?a.subviews.muteBtn.style.background=f.Z.getImageUrl("muted.png")+" no-repeat center center / "+("maximized"===r.mode?"contain":"15px"):a.subviews.muteBtn.style.background=f.Z.getImageUrl("volume.png")+" no-repeat center center/ "+("maximized"===r.mode?"contain":"15px"),t=(new Date).getTime(),p.Z.logEvent(p.Z.GIS_EVENTS.CTA_AUTOPLAY_AUTOPLAY,{channelId:r.broadcast.channelId,broadcastId:r.broadcast.id,channelConfig:r.broadcast.config,viewMode:r.mode,url:o.Z.getPageUrl(!0),title:r.broadcast.name,videoType:r.broadcast.type,videoTimeStamp:_()}),A.Z.sendAnalyticsEvent(A.Z.ANALYTICS_EVENTS.CTA_AUTOPLAY_AUTOPLAY,{channelId:r.broadcast.channelId,broadcastId:r.broadcast.id,viewMode:r.mode,title:r.broadcast.name,videoType:r.broadcast.type,videoTimeStamp:_()}),"replay"===r.type||"replay_engagement"===r.type){var e=i.getPlayer(),s=r.broadcast.config.ctaAutoPlay.duration;n=setInterval((function(){try{s=parseInt(s,10),(Number.isNaN(s)||s<0)&&(s=30),parseInt(_(),10)>=s&&(e.pause(),"replay"===r.type?(L(),a.subviews.pauseBtn.onclick=function(){p.Z.logEvent(p.Z.GIS_EVENTS.CTA_AUTOPLAY_KEEP_WATCHING_CLICKED,{channelId:r.broadcast.channelId,broadcastId:r.broadcast.id,channelConfig:r.broadcast.config,viewMode:r.mode,url:o.Z.getPageUrl(!0),title:r.broadcast.name,videoType:r.broadcast.type,videoTimeStamp:_()}),A.Z.sendAnalyticsEvent(A.Z.ANALYTICS_EVENTS.CTA_AUTOPLAY_KEEP_WATCHING_CLICKED,{channelId:r.broadcast.channelId,broadcastId:r.broadcast.id,viewMode:r.mode,title:r.broadcast.name,videoType:r.broadcast.type,videoTimeStamp:_()}),v()},"maximized"===r.mode?(a.subviews.pauseBtn.style.width="50%",a.subviews.pauseBtnImage.style.width="25%",a.subviews.pauseBtnImage.style.background=f.Z.getImageUrl("keep-watching-icon.svg")+" center right / 25px no-repeat ",a.subviews.pauseBtnLabel.innerHTML=E.Z.getLabels().ctaAutoPlay_maximizedPauseLabel):(a.subviews.pauseBtnImage.style.background=f.Z.getImageUrl("keep-watching-icon.svg")+" center center / 30px no-repeat ",a.subviews.autoPlayDismissBtn.querySelector("svg").style.opacity=.5,a.subviews.title.innerHTML=E.Z.getLabels().ctaAutoPlay_minimizedPauseLabel),p.Z.logEvent(p.Z.GIS_EVENTS.CTA_AUTOPLAY_KEEP_WATCHING_SHOWN,{channelId:r.broadcast.channelId,broadcastId:r.broadcast.id,channelConfig:r.broadcast.config,viewMode:r.mode,url:o.Z.getPageUrl(!0),title:r.broadcast.name,videoType:r.broadcast.type,videoTimeStamp:_()}),A.Z.sendAnalyticsEvent(A.Z.ANALYTICS_EVENTS.CTA_AUTOPLAY_KEEP_WATCHING_SHOWN,{channelId:r.broadcast.channelId,broadcastId:r.broadcast.id,viewMode:r.mode,title:r.broadcast.name,videoType:r.broadcast.type,videoTimeStamp:_()}),l=!0):u(!1),clearInterval(n),a.subviews.video.src="")}catch(e){clearInterval(n),m.Z.error(a.LOGTAG,"Error occurred on video-player interval.",e)}}),1e3)}r.onVideoPlay()},onEnded:function(){if(clearInterval(n),a.totalPlayTime+=((new Date).getTime()-t)/1e3,t=null,p.Z.logEvent(p.Z.GIS_EVENTS.CTA_AUTOPLAY_ENDED,{channelId:r.broadcast.channelId,broadcastId:r.broadcast.id,channelConfig:{ctaAutoPlay:r.broadcast.config},viewMode:r.mode,viewDuration:a.totalPlayTime,url:o.Z.getPageUrl(!0),title:r.broadcast.name,videoType:r.broadcast.type,videoTimeStamp:_()}),"call"===r.type||"replay_engagement"===r.type)u();else{if(L(),a.subviews.pauseBtnImage.style.background=f.Z.getImageUrl("replay-icon.svg")+" center center / contain no-repeat ","maximized"===r.mode&&(a.subviews.pauseBtn.style.width="20%",a.subviews.pauseBtnImage.style.width="100%",a.subviews.pauseBtnLabel.style.display="none"),"minimized"===r.mode)return;C()}},trackFile:r.broadcast&&r.broadcast.config.textTrack}),a.videoView=i.render(),a.subviews.videoContainer.appendChild(a.videoView),a.subviews.video=i.getPlayer(),a.subviews.videoContainer.style.cursor="pointer",a.subviews.videoContainer.style.zIndex="8",i.hideVideoContainer(),a.subviews.videoContainer.addEventListener("touchstart",I,!0),a.subviews.videoContainer.addEventListener("click",I,!0),a.subviews.videoContainer.style.width="maximized"===r.mode?"100%":110.22222222222221.toFixed()+"px",function(){if(T.Z.isMobileDevice()){a.subviews.video.style.width="100%",a.subviews.video.style.height="100%";var e=window.screen.width;T.Z.isIos()||(e=0===window.orientation?window.screen.width:window.screen.height);var t=9/16*e+"px";a.view.style.height="maximized"===r.mode?t:"62px",a.view.style.width=e+"px",a.subviews.muteBtn.style.top="maximized"===r.mode?"40px":"0px","minimized"===r.mode&&(a.subviews.title.style.padding="0px 10px");var n=((e-180.22222222222223)/8.23).toFixed();r.broadcast&&r.broadcast.name.length>n&&(r.broadcast.name=r.broadcast.name.substring(0,n).trim()+"...")}else a.view.style.position="fixed",a.view.style.width="370px",a.view.style.height="maximized"===r.mode?"210px":"62px",a.view.style.bottom="0px",a.view.style["left"===r.position?"left":"right"]="0px",a.view.style["borderTop"+("left"===r.position?"Right":"Left")+"Radius"]="5px",a.view.style.overflow="hidden",a.subviews.video.style.width="maximized"===r.mode?"370px":110.22222222222221.toFixed()+"px",a.subviews.video.style.height="maximized"===r.mode?"210px":"62px",r.broadcast&&r.broadcast.name.length>25&&(r.broadcast.name=r.broadcast.name.substring(0,25).trim()+"...")}(),function(){var e=r.broadcast&&r.broadcast.urls[0]||"";if(e){if(r.broadcast.isAutoPlayable){var t=o.Z.getFileNameFromUrl(e);e=e.replace(t,t+"_autoplay")}a.subviews.video.src=o.Z.addParamToUrl(e,"v=1"),"maximized"===r.mode&&i.showCaptions()}}(),t=null,a.totalPlayTime=0,"maximized"===r.mode?(V.Z.registerInteractiveElement(a.view.querySelector("#gis-cta-autoplay-btn-max")),V.Z.registerInteractiveElement(a.view.querySelector("#gis-cta-video-mute-max")),V.Z.registerInteractiveElement(a.subviews.fullScreenBtn),V.Z.registerInteractiveElement(a.view.querySelector("#gis-pbvideo-container-max")),V.Z.registerInteractiveElement(a.subviews.pauseBtn),V.Z.registerInteractiveElement(a.subviews.videoTitle)):(V.Z.registerInteractiveElement(a.view.querySelector("#gis-cta-video-mute-min")),V.Z.registerInteractiveElement(a.view.querySelector("#gis-cta-autoplay-btn-min"),0,u.bind(null,!0)),V.Z.registerInteractiveElement(a.view.querySelector("#gis-cta-video-title-min")),V.Z.registerInteractiveElement(a.view.querySelector("#gis-pbvideo-container-min"))),a.subviews.autoPlayContent&&(a.subviews.autoPlayContent.onclick=v),a.view},show:function(){p.Z.logEvent(p.Z.GIS_EVENTS.CTA_AUTOPLAY_SHOWN,{channelId:r.broadcast.channelId,broadcastId:r.broadcast.id,viewMode:r.mode,url:o.Z.getPageUrl(!0),title:r.broadcast.name,videoType:r.broadcast.type,channelConfig:r.broadcast.config}),A.Z.sendAnalyticsEvent(A.Z.ANALYTICS_EVENTS.CTA_AUTOPLAY_SHOWN,{channelId:r.broadcast.channelId,broadcastId:r.broadcast.id,viewMode:r.mode,title:r.broadcast.name,videoType:r.broadcast.type}),a.view.style.animation="2s gis-slide-up forwards",a.view.style.display="block",i.getPlayer().muted=!0,i.getPlayer().play().then().catch((function(e){m.Z.warn(a.LOGTAG,"Failed to autoplay video for the docked-player.",e)})),c=!0},hide:u,isPlayerVisible:function(){return c}}}var x,H,K={playerInitialize:function(){},playerClicked:function(){},playerDismissed:function(){},playerPlay:function(){}},W=null,F=!1,Y=null;function q(e){window.removeEventListener("scroll",H),p.Z.logEvent(p.Z.GIS_EVENTS.CTA_AUTOPLAY_SCROLLED_TRIGGERED,{channelId:e.channelId,broadcastId:e.id,channelConfig:e.config,viewMode:e.config.ctaAutoPlay.initialSize,url:o.Z.getPageUrl(!0),title:e.name,videoType:e.type}),$(e)}function $(e){"replay"===e.autoPlayType?function(e){var t=e.config.ctaAutoPlay.initialSize||"maximized",n=S.Z.getItem(S.Z.storageKeys.CTA_AUTO_PLAY_DISMISSED);if(!n||0!==o.Z.dateDifferenceInDays(Date.parse(n),new Date)){var i=S.Z.getItem(S.Z.storageKeys.CTA_AUTO_PLAY_MAXIMISED_SHOWN);i&&0===o.Z.dateDifferenceInDays(Date.parse(i),new Date)&&(t="minimized"),j(e,t),"maximized"===t&&S.Z.setItem(S.Z.storageKeys.CTA_AUTO_PLAY_MAXIMISED_SHOWN,o.Z.getTimeWithOutMilliSeconds())}}(e):"call"!==e.autoPlayType&&"replay_engagement"!==e.autoPlayType||function(e){j(e,"maximized"),S.Z.setItem(S.Z.storageKeys.ONE_TO_ONE_ENGAGEMENT,o.Z.getTimeWithOutMilliSeconds())}(e)}function j(e,t){W=new G({broadcast:e,mode:t,type:e.autoPlayType,position:Y,onVideoPlayerClicked:function(){clearTimeout(x),"function"==typeof K.playerClicked&&K.playerClicked()},onVideoPlayerDismissed:function(){"function"==typeof K.playerDismissed&&K.playerDismissed()},onVideoPlay:function(){"function"==typeof K.playerPlay&&K.playerPlay()}}),document.body.appendChild(W.render()),K.playerInitialize(),W.show()}const z={setupAutoplay:function(e,t,n){K=n,Y=t;var i=e.config.ctaAutoPlay.displayTriggers;i.enabled?(x=setTimeout((function(){var t={channelId:e.channelId,broadcastId:e.id,channelConfig:e.config,viewMode:e.config.ctaAutoPlay.initialSize,url:o.Z.getPageUrl(!0),title:e.name,videoType:e.type};i.timeOnPage>0&&p.Z.logEvent(p.Z.GIS_EVENTS.CTA_AUTOPLAY_TOP_TRIGGERED,t),i.userScrollsDown?p.Z.actionsStatus.scroll?(p.Z.logEvent(p.Z.GIS_EVENTS.CTA_AUTOPLAY_SCROLLED_TRIGGERED,t),$(e)):(H=q.bind(null,e),window.addEventListener("scroll",H)):$(e)}),1e3*i.timeOnPage),F=!0):$(e)},storeAutoPlayReshowTimestamp:function(e){if(S.Z.isLocalStorageAccessible()){var t=S.Z.getItem(S.Z.storageKeys.VIDEO_VIEWED);t||(t={}),t[e.id]=o.Z.getTimeWithOutMilliSeconds(),S.Z.setItem(S.Z.storageKeys.VIDEO_VIEWED,t)}},destroyAutoPlay:function(){clearTimeout(x),window.removeEventListener("scroll",H),W&&(W=null,F=!1)},isAutoPlaySetup:function(){return F}};var J,X,Q,ee=__webpack_require__(5129),te=__webpack_require__(5116),ne=__webpack_require__(3594),ie="Sym_Sys";function ae(){try{if(p.Z.logEvent(p.Z.GIS_EVENTS.IS_CLERK_AVAILABLE_REQUEST_RECEIVED,{isClerkAvailable:!0}),A.Z.sendAnalyticsEvent(A.Z.ANALYTICS_EVENTS.IS_CLERK_AVAILABLE_REQUEST_RECEIVED,{isClerkAvailable:!0}),!o.Z.isHttpsPageRedirected()){if(r.ZP.setOneToOneChecked(),"function"==typeof J&&J(),E.Z.getApiEnabled()&&!r.ZP.getAPIStandardJourney())return;r.ZP.getClerkAvailability()||(r.ZP.setClerkAvailability(!0),ce())}}catch(e){m.Z.error(ie,"Exception on server callback, clerkIsAvailable.",e)}}function oe(e){try{if(e&&"BLOCKED_CALL_USER"===e.message&&p.Z.logEvent(p.Z.GIS_EVENTS.CALL_USER_BLOCKED,{referrer:document.referrer||""}),p.Z.logEvent(p.Z.GIS_EVENTS.IS_CLERK_AVAILABLE_REQUEST_RECEIVED,{isClerkAvailable:!1}),A.Z.sendAnalyticsEvent(A.Z.ANALYTICS_EVENTS.IS_CLERK_AVAILABLE_REQUEST_RECEIVED,{isClerkAvailable:!1}),r.ZP.setOneToOneChecked(),"function"==typeof X&&X(),E.Z.getApiEnabled()&&!r.ZP.getAPIStandardJourney())return;r.ZP.setClerkAvailability(!1),ce()}catch(e){m.Z.error(ie,"Exception on server callback, clerkIsNotAvailable.",e)}}function se(t){var n=[],i={},a=[],o={};try{t.broadcasts.forEach((function(e){var t={id:e.id,name:e.name,description:e.desc,channelId:e.channelId,isDefaultChannel:e.isDefaultChannel};e.isLive||0===e.status||Array.isArray(e.urls)&&"string"==typeof e.urls[0]&&e.urls[0].includes(".m3u8")?(t.type="broadcast",t.autoPlayType="broadcast",t.status=e.status):(t.type="replay",t.autoPlayType="replay"),n.push(t),t.callUUID=e.callUUID,t.sessionId=e.sessionId,t.urls=e.urls,t.ctaMessage=e.ctaMessage,t.ctaImage=e.ctaImage,t.config=e.config,t.secondsSinceStarted=e.secondsSinceStarted,t.isAutoPlayable=e.isAutoPlayable,t.broadcastEventHoldTimeStamp=e.broadcastEventHoldTimestamp,t.isChatProcessed=e.isChatProcessed,a.push(t)})),o.gisBroadcasts=a,o.status=t.status,o.requestType=t.requestType,o.message=t.message}catch(e){return void m.Z.error(ie,"The server did not provide the expected response to broadcastAvailabilityCallback",e)}i.broadcasts=n,r.ZP.setBroadcastResponse(o),r.ZP.setBroadcastChecked();try{if("alias"===o.requestType){r.ZP.setBroadcastRequestStatus(o.status);var l=o.gisBroadcasts[0];return void(l&&"replay"===l.type?e.Z.route(s.Z.ROUTES.REPLAY,{replay:l,onReplayStopCallback:function(){console.log("replay stopped")}}):l&&"broadcast"===l.type&&l.status===s.Z.BROADCAST_STATUS.BROADCAST_LIVE?e.Z.route(s.Z.ROUTES.BROADCAST,{broadcast:l,onBroadcastStopCallback:function(){console.log("broadcast stopped")}}):e.Z.route(s.Z.ROUTES.BROADCAST,{showNoBroadcastView:!0,broadcast:l}))}if("function"==typeof Q&&Q(i),E.Z.getApiEnabled()&&!r.ZP.getAPIStandardJourney())return;Me.updateCTA()}catch(e){m.Z.error(ie,"Exception on server callback, broadcastCallback",e)}}function re(){return te.Z.getOT()&&w.Z.checkSystemSupported()}function le(){this.name="_pluginError",this.message="Plugin Installation Required."}function ce(){o.Z.isAutoStartConnectScreen()?(p.Z.logEvent(p.Z.GIS_EVENTS.AUTO_CALL_USER),r.ZP.getRoutingKey()||(r.ZP.setRoutingKey(""),r.ZP.addRoutingKey()),e.Z.route(s.Z.ROUTES.CALL,{call:{routingKey:r.ZP.getRoutingKey(),type:s.Z.CALL_TYPES.STANDARD}})):E.Z.getApiEnabled()&&!r.ZP.getAPIStandardJourney()||Me.updateCTA()}le.prototype=Error.prototype,window.clerkIsAvailable=ae,window.clerkIsNotAvailable=oe,window.broadcastCallback=se;const de={clerkIsAvailable:ae,clerkIsNotAvailable:oe,broadcastCallback:se,availabilityAction:ce,checkClerkAvailable:function(e,t){var n=t;if("function"==typeof e&&(J=e),w.Z.checkSystemSupported()){n||(n=r.ZP.getRoutingKey()),a.Z.isClerkAvailable("clerkIsAvailable","",n);var i=E.Z.getSystemConfig(),o=i&&i.clerkAvailabilityReqDelay&&!Number.isNaN(i.clerkAvailabilityReqDelay)?i.clerkAvailabilityReqDelay:0;p.Z.logEvent(p.Z.GIS_EVENTS.IS_CLERK_AVAILABLE_REQUEST_SENT,{delay:o})}},checkClerkAvailability:function(e,t,n,i){var o=n;if(w.Z.checkGisServiceEnabled())if(!E.Z.getApiEnabled()||w.Z.checkSystemSupported()){"function"==typeof e&&(J=e),"function"==typeof t&&(X=t),o||(o=r.ZP.getRoutingKey()),i?a.Z.isClerkAvailable(e,t,o):a.Z.isClerkAvailable("clerkIsAvailable","clerkIsNotAvailable",o);var s=E.Z.getSystemConfig(),l=s&&s.clerkAvailabilityReqDelay&&!Number.isNaN(s.clerkAvailabilityReqDelay)?s.clerkAvailabilityReqDelay:0;p.Z.logEvent(p.Z.GIS_EVENTS.IS_CLERK_AVAILABLE_REQUEST_SENT,{delay:l})}else console.info("GIS: System not supported")},checkBroadcastAvailability:function(e){return w.Z.checkGisServiceEnabled()?E.Z.getSystemConfig()?E.Z.getSystemConfig().broadcast.enabled?(Q=e,a.Z.getBroadcasts(null,"broadcastCallback"),{status:0,message:"ok"}):{status:-1,message:"Broadcast not enabled in systemConfig"}:{status:-1,message:"Missing systemConfig"}:{status:-1,message:"Service disabled"}},playBroadcast:function(t){var n;if(t)n=r.ZP.getBroadcastById(t);else{var i=r.ZP.getBroadcasts();if(!(i.length>0))return{status:-1,message:"no broadcasts available"};n=i[0]}return n?"broadcast"===n.type&&0===e.Z.route(s.Z.ROUTES.BROADCAST,{broadcast:n})||"replay"===n.type&&0===e.Z.route(s.Z.ROUTES.REPLAY,{replay:n})?{status:0,message:"ok"}:{status:-1,message:"internal error: couldn't play broadcast"}:{status:-1,message:"id not found: there's no broadcast matching that id"}},startCall:function(t,n){ne.Z.setCallEndedCallback(t),p.Z.logEvent(p.Z.GIS_VIEWS.CONNECT+p.Z.GIS_VIEWS.CONNECT_BUTTON+p.Z.GIS_ACTIONS.CLICKED,{source:"api"}),e.Z.route(s.Z.ROUTES.CALL,{call:{routingKey:n,type:s.Z.CALL_TYPES.STANDARD}})},submitContactDetails:function(e,t,n){a.Z.submitContactDetails(e,t,n)},registerAnalyticsEventCallback:function(e){A.Z.registerCustomAnalyticsReference(e)},detectDevices:function(e,t){if("function"!=typeof e)throw new TypeError("onCompleteHandler is not a function, while detecting devices");re()?te.Z.detectDevices(e):t?te.Z.initializePluginInstallationProcess():e(new le,!1)},isPluginInstalled:re,installPlugin:function(){te.Z.initializePluginInstallationProcess()}};var ue,_e="availabilityWorker",Ce=0,ge=1,Ee=2,Ae=3,pe=4,Te=E.Z.getUiConfig(),Se=E.Z.getSystemConfig(),me=Te.ctaType||"roundel",ve=!1,fe=Ce,Ie=!1,Le=null,be=null,ye=Te.ctaPosition?Te.ctaPosition:"right";function Oe(){if(!(Se&&Se.noOneAvailableBlock&&Se.noOneAvailableBlock.enable&&GISAPP.noClerkAvailableScreenShown)&&!r.ZP.isUIActive()&&r.ZP.isOneToOneChecked()&&r.ZP.isBroadcastChecked()){var e,t=function(){for(var e=r.ZP.getBroadcasts(),t=0;t=Se.oneToOneEngagement.reshowDuration)&&Se.oneToOneEngagement&&Se.oneToOneEngagement.enabled&&(n=function(e){var t=e,n=Se.oneToOneEngagement,i=r.ZP.getOneToOneAutoPlay();return n.src.serviceIntro&&i&&i.config.ctaAutoPlay.enabled&&(!Pe(i)||Ue(i))?i:n.src.replay&&t?(t.autoPlayType="replay_engagement",t):null}(t),!z.isAutoPlaySetup()&&n&&z.setupAutoplay(n,ye,{playerInitialize:function(){ue.hide()},playerClicked:function(){"replay_engagement"===n.autoPlayType?e.Z.route(s.Z.ROUTES.REPLAY,{replay:n}):"call"===n.autoPlayType&&(z.storeAutoPlayReshowTimestamp(n),e.Z.route(s.Z.ROUTES.CALL,{call:{routingKey:null,type:s.Z.CALL_TYPES.STANDARD}})),p.Z.logEvent(p.Z.GIS_EVENTS.ONE_TO_ONE_ENGAGEMENT_VIDEO_CLICKED)},playerDismissed:function(){window.dispatchEvent(new GisCustomEvent("gisUIClosed")),ue.show()},playerPlay:function(){("call"===n.autoPlayType||"replay_engagement"===n.autoPlayType&&n.config.announcementChannel.enabled)&&z.storeAutoPlayReshowTimestamp(n)}}))}function De(t){ue.setMode("replay",t,Se.persistentCta,!1),Ne((function(){t.config.announcementChannel.enabled&&z.storeAutoPlayReshowTimestamp(t),e.Z.route(s.Z.ROUTES.REPLAY,{replay:t})})),t.config.ctaAutoPlay.enabled&&(z.isAutoPlaySetup()||z.setupAutoplay(t,ye,{playerInitialize:function(){ue.hide()},playerClicked:function(){e.Z.route(s.Z.ROUTES.REPLAY,{replay:t})},playerDismissed:function(){window.dispatchEvent(new GisCustomEvent("gisUIClosed")),ue.show()},playerPlay:function(){t.config.announcementChannel.enabled&&z.storeAutoPlayReshowTimestamp(t)}}))}function Pe(e){var t=S.Z.getItem(S.Z.storageKeys.VIDEO_VIEWED);return t&&t[e.id]}function Ue(e){var t=e.config,n=S.Z.getItem(S.Z.storageKeys.VIDEO_VIEWED);return n&&n[e.id]&&t.announcementChannel.reshow.enabled&&o.Z.dateDifferenceInDays(Date.parse(n[e.id]),new Date)>=t.announcementChannel.reshow.reshowDuration}ue="tab"===me?Z:B;const Me={init:function(){window.addEventListener("gisUIClosed",(function(e){r.ZP.setUIActive(!1),!v.Z.isPollingTimeExpiredForEvent(v.Z.BASE_EVENTS.CLERK_AVAILABILITY_POLLING)&&Se.persistentCta&&(v.Z.subscribe(v.Z.BASE_EVENTS.CLERK_AVAILABILITY_POLLING,de.clerkIsAvailable,de.clerkIsNotAvailable),v.Z.startPollingEvent(v.Z.BASE_EVENTS.CLERK_AVAILABILITY_POLLING)),e.detail&&e.detail.action===s.Z.ACTIONS.BROADCAST_SCREEN_CLOSED?a.Z.getBroadcasts(null,"broadcastCallback"):Oe()})),window.addEventListener("gisUIOpen",(function(){r.ZP.setUIActive(!0),Ze(),z.destroyAutoPlay()}))},updateCTA:Oe,showCTA:he,hideCTA:Ze,setOnClick:Ne};var Be,ke,Ve=__webpack_require__(2579),Ge=__webpack_require__(3294),xe="directCallCtrl",He=m.Z,Ke=!1,We=!1;function Fe(){Ke||__e__(s.Z.DIRECT_CALL_TYPE.DEPARTMENT_CALL),v.Z.stopPollingEvent(v.Z.BASE_EVENTS.AUTO_LAUNCH_CALL_POLLING),Ge.Z.subscribe(s.Z.EVENT_NAMES.ROUTER.READY_IS_LOADED,(e=>{e.route===s.Z.ROUTES.CALL&&ze()}))}function Ye(){Ke||__e__(s.Z.DIRECT_CALL_TYPE.DEPARTMENT_CALL)}function qe(){Be=o.Z.getUrlParams().giscall,o.Z.isEncodedUri(Be)&&(Be=decodeURIComponent(Be)),a.Z.isClerkAvailableByAlias(o.Z.utf8ToBase64(Be),"GISAPP.directCallCtrl.clerkIsAvailable","GISAPP.directCallCtrl.clerkIsNotAvailable",r.ZP.getRoutingKey())}function __e__(t){Ke=!0,t===s.Z.DIRECT_CALL_TYPE.CLERK_CALL?e.Z.route(s.Z.ROUTES.CALL,{call:{routingKey:null,type:s.Z.CALL_TYPES.DIRECT,isInvalidUrl:!1}}):e.Z.route(s.Z.ROUTES.CALL,{call:{routingKey:null,type:s.Z.CALL_TYPES.DIRECT,isDepartmentCall:!0}})}function je(){var e=document.getElementById("gis-connectv2-center-image");if(null!==document.getElementById("loading-gis-v3-button")||!e)return;var t=document.createElement("div");t.id="loading-gis-v3-wait-text";const n=E.Z.getLabels().directCallScreen_checkingClerk;t.innerHTML=`
${n}
`;var i=document.createElement("div");const a=E.Z.getLabels().directCallScreen_v3_waiting;i.innerHTML=`
${a}`;var o=i.querySelector(".gis-v3-button-icon-loading-gif");o&&(o.style.backgroundImage=f.Z.getImageUrl("connecting-call.gif")),i.id="loading-gis-v3-button",i.className="loading-gis-v3-button",i.style.display="flex";var s=document.getElementById("gis-v3-button");s&&(s.classList.add("gis-hideAll"),s.classList.add("gis-v3-dc-btn")),e.parentNode.insertBefore(i,e.nextSibling),e.parentNode.insertBefore(t,e.nextSibling)}function ze(){if(null!==document.getElementById("loading-gis-v3-button")&&document.getElementById("loading-gis-v3-button").remove(),null!==document.getElementById("loading-gis-v3-wait-text")&&document.getElementById("loading-gis-v3-wait-text").remove(),null==document.getElementById("gis-v3-button'")){var e=document.getElementById("gis-v3-button");e.classList.add("gis-v3-dc-btn"),e.classList.remove("gis-hideAll")}}gisCallbacks.autoLaunchClerkIsAvailable=Fe,gisCallbacks.autoLaunchClerkIsNotAvailable=Ye;const Je={init:function(e){var t;e===s.Z.DIRECT_CALL_TYPE.CLERK_CALL?qe():e===s.Z.DIRECT_CALL_TYPE.DEPARTMENT_CALL&&(t=o.Z.getUrlParams().giscallcategory,r.ZP.setAutoLaunchId(t),v.Z.registerPollingEvent(v.Z.BASE_EVENTS.AUTO_LAUNCH_CALL_POLLING,{poll:a.Z.checkAutoLaunchClerkIsAvailable,pollArguments:[t]}),v.Z.subscribe(v.Z.BASE_EVENTS.AUTO_LAUNCH_CALL_POLLING,Fe,Ye),v.Z.startPollingEvent(v.Z.BASE_EVENTS.AUTO_LAUNCH_CALL_POLLING)),Ge.Z.subscribe(s.Z.EVENT_NAMES.ROUTER.READY_IS_LOADED,(e=>{e.route===s.Z.ROUTES.CALL&&(document.getElementById("gis-v3-button").addEventListener("click",(function(){clearTimeout(ke)})),je(),We=!0)}))},clerkIsNotAvailable:function(t){try{var n="";if(t&&(n=t.code),-2===n)return clearTimeout(ke),void e.Z.route(s.Z.ROUTES.CALL,{call:{routingKey:null,type:s.Z.CALL_TYPES.DIRECT,isInvalidUrl:!0}});if(-3===n)return p.Z.logEvent(p.Z.GIS_EVENTS.CALL_USER_BLOCKED,{referrer:document.referrer||""}),void clearTimeout(ke);"true"===E.Z.isAutoStartDirectCallEnabled()?Ke||__e__(s.Z.DIRECT_CALL_TYPE.CLERK_CALL):(Ke||__e__(s.Z.DIRECT_CALL_TYPE.CLERK_CALL),ke=setTimeout(qe,3e3)),je()}catch(e){He.error(xe,"Exception while processing directCall clerkIsNotAvailable Response.",e)}},clerkIsAvailable:function(){Ke||__e__(s.Z.DIRECT_CALL_TYPE.CLERK_CALL);try{"true"!==E.Z.isAutoStartDirectCallEnabled()||o.Z.isHttpsPageRedirected()?(We?ze():Ge.Z.subscribe(s.Z.EVENT_NAMES.ROUTER.READY_IS_LOADED,(e=>{e.route===s.Z.ROUTES.CALL&&ze()})),ke=setTimeout(qe,3e3)):ne.Z.initiateCallProcedure()}catch(e){He.error(xe,"Exception on directCall server callback, clerkIsAvailable.",e)}},autoLaunchClerkIsAvailable:Fe,autoLaunchClerkIsNotAvailable:Ye};var Xe,Qe,et,tt=__webpack_require__(389),nt=__webpack_require__(5887),it=__webpack_require__(1598),at=__webpack_require__(9656),ot=__webpack_require__(2946),st="Api",rt={CALL_CTA_SHOWN:"CALL_CTA_SHOWN",CALL_CTA_CLICK:"CALL_CTA_CLICK",BROADCAST_CTA_SHOWN:"BROADCAST_CTA_SHOWN",BROADCAST_CTA_CLICK:"BROADCAST_CTA_CLICK",BROADCAST_REPLAY_CTA_SHOWN:"BROADCAST_REPLAY_CTA_SHOWN",BROADCAST_REPLAY_CTA_CLICK:"BROADCAST_REPLAY_CTA_CLICK"};function lt(){return w.Z.checkSystemSupported()}function ct(e,t){Xe=e,de.checkClerkAvailable(It,t)}function dt(e,t,n){Xe=e,Qe=t,de.checkClerkAvailability(It,Lt,n)}function ut(e,t){et=e,de.startCall(bt,t)}function _t(e){return"function"!=typeof e?{status:-1,message:"invalid parameter: callback is not a function"}:de.checkBroadcastAvailability(e)}function Ct(e){return de.playBroadcast(e)}function gt(){return{version:"1.0.8"}}function Et(e,t,n){var i=ot.Z.validateContactData(e);if(!i.isValid)return{statusCode:101,message:"Invalid data.",errorFields:i.errorFields};var a={contact:{name:e.name,phone:e.phone,email:e.email,message:e.message}},o=btoa(JSON.stringify(a));return de.submitContactDetails(o,t,n),{statusCode:100,message:"Request sent on GIS server"}}function At(e){"function"==typeof e?de.registerAnalyticsEventCallback(e):m.Z.error(st,"Failed to register analytics event listener. Not a function")}function pt(e,t){de.detectDevices(e,t)}function Tt(){return de.isPluginInstalled()}function St(){de.installPlugin()}function mt(e,t){return e&&t&&"string"==typeof e&&"string"==typeof t?(r.ZP.setABTestId(e),r.ZP.setABTestGroup(t),A.Z.setCategory("gis-"+e+"-"+t),!1):(m.Z.error(st,"API: Couldn't setup an AB Test. Invalid Parameters."),{status:-1,message:"invalid parameters"})}function vt(){r.ZP.setAPIStandardJourney(!0)}function ft(e,t){return Object.prototype.hasOwnProperty.call(rt,e)?(p.Z.logEvent(e,t),A.Z.sendAnalyticsEvent(e),!1):{status:-1,message:"invalid event"}}function It(){"function"==typeof Xe&&Xe()}function Lt(){"function"==typeof Qe&&Qe()}function bt(){"function"==typeof et&&et()}var yt={};function Ot(){m.Z.error(st,"GIS API not ready")}yt.Events=rt,yt.checkSystemSupported=lt,yt.checkClerkAvailable=ct,yt.checkClerkAvailability=dt,yt.startCall=ut,yt.getVersionInfo=gt,yt.submitContactDetails=Et,yt.registerAnalyticsEventListener=At,yt.checkMicrophone=pt,yt.isPluginInstalled=Tt,yt.installPlugin=St,yt.checkBroadcastAvailability=_t,yt.playBroadcast=Ct,yt.setupABTest=mt,yt.enableStandardJourney=vt,yt.logEvent=ft,yt.GisApi1_0=yt,window.gisApi={},window.gisApi.Events=Ot,window.gisApi.checkSystemSupported=Ot,window.gisApi.checkClerkAvailable=Ot,window.gisApi.checkClerkAvailability=Ot,window.gisApi.startCall=Ot,window.gisApi.getVersionInfo=Ot,window.gisApi.submitContactDetails=Ot,window.gisApi.registerAnalyticsEventListener=Ot,window.gisApi.checkMicrophone=Ot,window.gisApi.isPluginInstalled=Ot,window.gisApi.installPlugin=Ot,window.gisApi.checkBroadcastAvailability=Ot,window.gisApi.playBroadcast=Ot,window.gisApi.setupABTest=Ot,window.gisApi.enableStandardJourney=Ot,window.gisApi.logEvent=Ot,window.EmplifiLivePageApi.getEventList=Ot,window.EmplifiLivePageApi.showEvent=Ot;const ht={Events:rt,checkSystemSupported:lt,checkClerkAvailable:ct,checkClerkAvailability:dt,startCall:ut,getVersionInfo:gt,submitContactDetails:Et,registerAnalyticsEventListener:At,checkMicrophone:pt,isPluginInstalled:Tt,installPlugin:St,checkBroadcastAvailability:_t,playBroadcast:Ct,setupABTest:mt,enableStandardJourney:vt,logEvent:ft,GisApi1_0:yt};var Zt=__webpack_require__(1879),Nt={LOGTAG:"metadataService",ogTags:["og:title","og:description","og:price:amount","og:price:currency","og:availability","og:image","og:image:url","og:locale"],twitterTags:["twitter:title","twitter:description","twitter:image","twitter:image:url"]};Nt.systemConfig=E.Z.getSystemConfig(),Nt.customTags=Nt.systemConfig.customMetadataTags,Nt.parseMetadata=function(){try{Nt.metadata={};var e=document.querySelectorAll("meta");Nt.metadata["Device Type"]=r.ZP.getDeviceType();for(var t=0;t-1?Nt.ogTags.forEach((function(e){e===i&&n.getAttribute("content")&&(Nt.metadata[i.substring(3,i.length)]=n.getAttribute("content"))})):i.indexOf("twitter:")>-1&&Nt.twitterTags.forEach((function(e){e===i&&!Nt.metadata[i]&&n.getAttribute("content")&&(Nt.metadata[i.substring(8,i.length)]=n.getAttribute("content"))})))}Nt.metadata.title||(Nt.metadata.title=document.title);var a=Nt.metadata["price:amount"];if(a){var s=Nt.metadata["price:currency"];s&&(a+=" "+s,delete Nt.metadata["price:currency"]),Nt.metadata.price=a,delete Nt.metadata["price:amount"]}Nt.metadata["image:url"]&&(Nt.metadata.image=Nt.metadata["image:url"],delete Nt.metadata["image:url"]);var l=o.Z.getLocaleFromHtmlTag()||r.ZP.getLocale();l&&(Nt.metadata.locale=l),r.ZP.setPageMetadata(Nt.metadata)}catch(e){m.Z.error(Nt.LOGTAG,"Error parsing metadata from page",e)}},R.Z.override(Nt.LOGTAG,Nt);const wt={parseMetadata:Nt.parseMetadata};var Rt,Dt=!1;const Pt={init:function(){Rt=o.Z.getUrlParams().gismeeting,o.Z.isEncodedUri(Rt)&&(Rt=decodeURIComponent(Rt)),a.Z.getMeetingStatus(Rt,"GISAPP.meetingCtrl.updateMeetingStatus")},updateMeetingStatus:function(t){if(t||t.status){var n=t.status;"CREATED"===n||"STARTED"===n?(t.sessionId&&r.ZP.setSessionId(t.sessionId),t.consumerToken&&r.ZP.setToken(t.consumerToken),Dt||function(t){Dt||(Dt=!0),e.Z.route(s.Z.ROUTES.CALL,{call:{routingKey:null,type:s.Z.CALL_TYPES.DIRECT,isMeeting:!0,data:t}})}(t)):"CANCELLED"===n?Dt||(Dt||(Dt=!0),e.Z.route(s.Z.ROUTES.CALL,{call:{routingKey:null,type:s.Z.CALL_TYPES.DIRECT,isCanceled:!0}})):"MISSED"===n?Dt||(Dt||(Dt=!0),e.Z.route(s.Z.ROUTES.CALL,{call:{routingKey:null,type:s.Z.CALL_TYPES.DIRECT,isMissed:!0}})):"ERROR"===n?Dt||(Dt||(Dt=!0),e.Z.route(s.Z.ROUTES.CALL,{call:{routingKey:null,type:s.Z.CALL_TYPES.DIRECT,isMeetingError:!0}})):"ENDED"===n&&(Dt||(Dt||(Dt=!0),e.Z.route(s.Z.ROUTES.CALL,{call:{routingKey:null,type:s.Z.CALL_TYPES.DIRECT,isMeetingEnded:!0}})))}}};var Ut=__webpack_require__(6229),Mt=__webpack_require__(1496),Bt=__webpack_require__(2790),kt=__webpack_require__(2703),Vt=__webpack_require__(7697),Gt=__webpack_require__(8110),xt=!1,Ht="data-gis-live-events-template",Kt={},Wt={},Ft="livePageWorker";let Yt=!1,qt=null;function __t__(e){return Qt()&&e&&e.pageUuid&&(e.upcomingEvents&&0!==e.upcomingEvents.length||e.pastEvents&&0!==e.pastEvents.length||e.featuredEvent&&0!==e.featuredEvent.length)?(Kt[e.pageUuid]=e,Xt(e.pageUuid),!1):(m.Z.error(Ft,"Invalid or Empty Live Page API response. Either the Emplifi Live Pages are disabled, or there are no events in this particular Live page."),!1)}function jt(e){m.Z.error(Ft,"Error while fetching live page events list",e)}var zt=function(e,t,n){var i;return e&&t&&n?Qt()?Kt[e]?t.indexOf("gisCallbacks")>-1?Ut.Z.getWindow().gisCallbacks[t.replace("gisCallbacks.","")].call(null,Kt[e]):Ut.Z.getWindow()[t].call(null,Kt[e]):a.Z.getLiveEventsList(e,t,n):(i={error:"The Live Pages feature is not enabled for your Emplifi Account. Please contact support to enable it."},m.Z.error(Ft,i),i):(i={error:"Please provide appropriate parameters to this API call"},m.Z.error(Ft,i),i)},Jt=function(e){return e?document.querySelectorAll("div["+Ht+"='"+e+"']"):document.querySelectorAll("div["+Ht+"]")},Xt=function(e){if(Qt()&&e&&Kt[e])if(qt){if(!Wt[e]){Wt[e]={};var t=new qt({events:Kt[e]});Wt[e].instance=t,Wt[e].view=t.render()}Jt(e).forEach((function(t){t.appendChild(Wt[e].view)})),p.Z.logEvent(p.Z.GIS_EVENTS.LIVE_PAGE_INITIATED,{livePageUUID:e})}else!async function(e){if(!Yt)try{const t=await __webpack_require__.e(513).then(__webpack_require__.bind(__webpack_require__,9513));qt=t.default,Yt=!0,e()}catch(e){m.Z.error(Ft,"Error loading live page template",e)}}(Xt.bind(null,e))};function Qt(){return E.Z.getSystemConfig().liveEventsPages&&E.Z.getSystemConfig().liveEventsPages.isEnabled}var en=function(e){return!!e&&(a.Z.getBroadcastsEvent(o.Z.utf8ToBase64(e),null,"broadcastCallback"),!1)};const tn={init:function(){var e;!xt&&Qt()&&(xt=!0,Ut.Z.getWindow().EmplifiLivePageApi.getEventList=zt,Ut.Z.getWindow().gisCallbacks.liveEventsListSuccessCallback=__t__,Ut.Z.getWindow().gisCallbacks.liveEventsListErrorCallback=jt,Ut.Z.getWindow().EmplifiLivePageApi.showEvent=en,"function"==typeof Ut.Z.getWindow().onEmplifiLivePageApiReady&&Ut.Z.getWindow().onEmplifiLivePageApiReady.call(),(e=Jt())&&e.forEach((function(e){var t=e.dataset.gisLiveEventsTemplate;t&&(Kt[t]?__t__(Kt[t]):zt(t,"gisCallbacks.liveEventsListSuccessCallback","gisCallbacks.liveEventsListErrorCallback"))})),Ge.Z.subscribe(s.Z.EVENT_NAMES.LIVE_EVENT_REPLAY_TRIGGERED,en))}};var nn=__webpack_require__(7274),an={LOGTAG:"initCtrl",OPENTOK_SCRIPT_SRC:"https://static.opentok.com/v2.27.3/js/opentok.min.js"};an.stateService=r.ZP,an.onGisLoadFunctions={},an.dependencyInitializationRetries=0,an.serviceOffered=!0,an.initInfoReceived=!1,an.cssReceived=!1,an.otReceived=!1,an.otSuccessCalled=!1,an.userMediaChecked=!1,an.isFeatureSupportChecked=!1,an.isTestingPhase=!1,an.LOGGLY_SCRIPT_SRC=E.Z.getGisStaticDomain()+"/js/lib/loggly.tracker-2.1.min.js",an.shouldLoadLoggly=()=>!0,an.init=function(){try{r.ZP.setCurrentPhase(r.ZP.phase.SCRIPT_INIT),m.Z.init(),Bt.Z.getCookie(S.Z.storageKeys.CHAT_CALL_USER_UUID)&&an.getUserConsent()===s.Z.COOKIES_PERMISSIONS.REJECTED&&Bt.Z.deleteCookie(S.Z.storageKeys.CHAT_CALL_USER_UUID),an._setUserUUID();var e=o.Z.getUrlParams().pageUUID;e?r.ZP.setPageUUID(e):r.ZP.setPageUUID(o.Z.getRandomAlphaNumKey()),p.Z.setupEventListeners(),gisCallbacks.initInfo=an.initInfoCallback,a.Z.getInitInfo("gisCallbacks.initInfo",(function(){m.Z.error(an.LOGTAG,"Failed to retrieve init info")})),E.Z.getSystemConfig().delayOpenTokLoad||an._loadOT(),(E.Z.getSystemConfig().isLogglyDependentOnCustomCriteria&&an.shouldLoadLoggly()||!E.Z.getSystemConfig().isLogglyDependentOnCustomCriteria)&&a.Z.loadScript(an.LOGGLY_SCRIPT_SRC,(function(){r.ZP.setLogglyLoaded(!0),m.Z.initializeLoggly(),m.Z.debug(an.LOGTAG,"Loggly loaded")}),(function(e){p.Z.logEvent(p.Z.GIS_EVENTS.SCRIPT_INIT_FAILED),m.Z.error(an.LOGTAG,"Failed to load Loggly",e)})),a.Z.loadCss((function(){an.cssReceived=!0,m.Z.debug(an.LOGTAG,"CSS loaded"),an.initGIS()}),(function(e){p.Z.logEvent(p.Z.GIS_EVENTS.SCRIPT_INIT_FAILED),m.Z.error(an.LOGTAG,"Failed to load Css",e)}))}catch(e){p.Z.logEvent(p.Z.GIS_EVENTS.SCRIPT_INIT_FAILED),m.Z.error(an.LOGTAG,"Exception at script init",e)}},an.initInfoCallback=function(e){try{var t={text:navigator.userAgent,deviceType:null,deviceName:null,osName:T.Z.getDeviceOS(),osVersion:null,browserName:at.Z.getBrowser(),browserVersion:null},n=E.Z.getSystemConfig();if(e&&0===e.statusCode?t=e.userAgent:m.Z.warn(an.LOGTAG,"Request failed to get user-agent from server, using JS user-agent processor",{"server-resp":e}),t.osName&&!/unknown/i.test(t.osName)&&"??"!==t.osName||(t.osName=T.Z.getDeviceOS()),t.browserName&&!/unknown/i.test(t.browserName)&&"??"!==t.browserName||(t.osName=at.Z.getBrowser()),r.ZP.setProcessedUserAgent(t),!e)return void m.Z.error(an.LOGTAG,"Stopping script execution. Invalid response from server on initInfoCallBack, response: "+e);if("BLOCKED_CALL_USER"===e.message){var i=document.referrer||"";return void p.Z.logEvent(p.Z.GIS_EVENTS.CALL_USER_BLOCKED,{referrer:i})}n.privacySettings&&n.privacySettings.optInAnalytics?(r.ZP.setIsDataCollectionDisabled(!0),an.isOptInAnalyticsAccepted()&&r.ZP.setIsDataCollectionDisabled(!1)):e.isDataCollectionDisabled&&r.ZP.setIsDataCollectionDisabled(e.isDataCollectionDisabled),an.broadcastEnabled=n.broadcast.enabled,Object.prototype.hasOwnProperty.call(e,"isOffered")&&(an.serviceOffered=e.isOffered);var a=an.isServiceOffered();if(!(w.Z.checkGisServiceEnabled()&&a||(p.Z.logEvent(p.Z.GIS_EVENTS.SCRIPT_BROWSER_NOT_SUPPORTED,{url:Ut.Z.getWindow().location.href}),an.broadcastEnabled)))return;if(o.Z.setupPolyfills(),e.isConfirmationPage&&p.Z.logEvent(p.Z.GIS_EVENTS.ORDER_CONFIRMATION_PAGE),e&&e.locale&&r.ZP.setLocale(e.locale),e&&e.inputAlignment&&r.ZP.setInputAlignment(e.inputAlignment),e.oneToOneAutoPlay){var s={};s.urls=[e.oneToOneAutoPlay.url],s.name=e.oneToOneAutoPlay.broadcastName,s.channelId=e.oneToOneAutoPlay.channelId,s.id=e.oneToOneAutoPlay.broadcastId,s.config=JSON.parse(e.oneToOneAutoPlay.channelConfig),s.autoPlayType="call",e.oneToOneAutoPlay.isLive?(s.type="broadcast",s.status=e.status):s.type="replay",r.ZP.setOneToOneAutoPlay(s)}m.Z.debug(an.LOGTAG,"initInfo processed"),r.ZP.setTokBoxApiKey(e.apiKey),e.labels&&E.Z.updateLabels(e.labels),e.chatAuthKey&&e.chatAppId&&e.chatAppRegion&&E.Z.updateCometChatConfig(e.chatAuthKey,e.chatAppId,e.chatAppRegion),e.ctaMessage&&(r.ZP.setIsCtaCustomMessage(!0),Mt.Z.updateCTAMessage(e.ctaMessage)),e.activeTests&&(r.ZP.setActiveABTests(e.activeTests),Vt.Z.updateActiveMvtInLocalStorageIfChanged(e.activeTests)),an.isTestingPhase=e.isTestingPhase,r.ZP.setStrictLogging(!1),an.initInfoReceived=!0,E.Z.getSystemConfig().delayOpenTokLoad?(an.checkUserMediaSupport(),at.Z.isWebpSupported(an.checkBrowserFeatureSupport),1===nn.Z.checkSystemRequirements()||r.ZP.isAndroidSocialBrowser()||p.Z.logEvent(p.Z.GIS_EVENTS.SCRIPT_BROWSER_NOT_SUPPORTED,{url:Ut.Z.getWindow().location.href}),GISAPP.clientStorageService.clearLocalStorageFromOpenTokProps()):an.onOtLoaded(),an.initGIS()}catch(e){m.Z.error(an.LOGTAG,"Exception at script init after server data received",e)}},an._setUserUUID=function(){if(o.Z.isRedirectedFromSocialWebview()){var e=o.Z.getSocialWebviewInfo();Gt.Z.setUserUUID(an.getUserConsent(),e[0]),r.ZP.setCallUserUUID(e[0]),r.ZP.setSocialRedirectionInfo(e[1])}else E.Z.getSystemConfig().privacySettings.isSalesAttributionDependentOnOptin?Gt.Z.setUserUUID(an.isOptInAnalyticsAccepted()?s.Z.COOKIES_PERMISSIONS.ACCEPTED:s.Z.COOKIES_PERMISSIONS.REJECTED):Gt.Z.setUserUUID(an.getUserConsent())},an.isServiceOffered=function(){var e=Ut.Z.getWindow().location.href;return an.serviceOffered?p.Z.logEvent(p.Z.GIS_EVENTS.SERVICE_OFFERED,{referrer:e}):(p.Z.logEvent(p.Z.GIS_EVENTS.SERVICE_NOT_OFFERED,{referrer:e}),A.Z.sendAnalyticsEvent(A.Z.ANALYTICS_EVENTS.SERVICE_NOT_OFFERED,{referrer:e})),an.serviceOffered},an._loadOT=function(){var e=function(){an.otSuccessCalled=!0,at.Z.isWebpSupported(an.checkBrowserFeatureSupport),an.onOtLoaded(),an.initGIS()};an._otError=function(e){p.Z.logEvent(p.Z.GIS_EVENTS.SCRIPT_INIT_FAILED),m.Z.error(an.LOGTAG,"Failed to load OT",e)},"function"==typeof window.require&&"MARRIOTT"!==E.Z.getRetailerKey()&&"SOFOLOGY"!==E.Z.getRetailerKey()?(0,window.require)([an.OPENTOK_SCRIPT_SRC],e,an._otError):a.Z.loadScript(an.OPENTOK_SCRIPT_SRC,e,an._otError)},an.onOtLoaded=function(){an.otSuccessCalled&&an.initInfoReceived&&!an.otReceived&&(Ut.Z.getWindow().OT?1===Ut.Z.getWindow().OT.checkSystemRequirements()||r.ZP.isAndroidSocialBrowser()?(an.otReceived=!0,Ut.Z.getWindow().OT.on("exception",(function(e){m.Z.error(an.LOGTAG,"OT Exception occurred.",e)})),m.Z.debug(an.LOGTAG,"OT loaded"),S.Z.clearLocalStorageFromOpenTokProps(),an.checkUserMediaSupport()):p.Z.logEvent(p.Z.GIS_EVENTS.SCRIPT_BROWSER_NOT_SUPPORTED,{url:Ut.Z.getWindow().location.href}):an._otError({message:"OT is not present in the window object"}))},an.checkUserMediaSupport=function(){te.Z.detectDevices((function(e){e?(m.Z.debug(an.LOGTAG,"Error on OT device support.",e),w.Z.setUserMediaSupport(!1)):w.Z.setUserMediaSupport(!0),an.userMediaChecked=!0,an.initGIS()}))},an.checkBrowserFeatureSupport=function(){an.isFeatureSupportChecked=!0,an.initGIS()},an.initGIS=function(){try{if(!an.isGisInitialized())return;f.Z.setupGISPanels(),m.Z.log(an.LOGTAG,"GIS loaded."),an.executeOnGisLoadFunctions(),an.gisReady()}catch(e){m.Z.error(an.LOGTAG,"Failed to initialize due to exception.",e)}},an.isGisInitialized=function(){return!(an.isTestingPhase&&o.Z.getUrlParams().gis!==String(2)||!(an.cssReceived&&an.initInfoReceived&&an.userMediaChecked&&an.isFeatureSupportChecked&&(E.Z.getSystemConfig().delayOpenTokLoad||!E.Z.getSystemConfig().delayOpenTokLoad&&an.otReceived)))},an.gisReady=function(){try{e.Z.register(s.Z.ROUTES.BROADCAST,nt.Z),e.Z.register(s.Z.ROUTES.REPLAY,it.Z),e.Z.register(s.Z.ROUTES.CALL,ne.Z),r.ZP.setCurrentPhase(r.ZP.phase.READY),window.dispatchEvent(new GisCustomEvent("gisReady")),E.Z.getApiEnabled()&&(window.gisApi=ht.GisApi1_0,"function"==typeof window.onGisApiReady&&window.onGisApiReady(),r.ZP.getAPIStandardJourney()||de.availabilityAction()),p.Z.logEvent(p.Z.GIS_EVENTS.SCRIPT_INIT_SUCCESS,{timeElapsed:(performance.now()-window.gisProfilingStartTime).toFixed(3)}),Zt.Z.registerFunction((function(){p.Z.logEvent(p.Z.GIS_EVENTS.PAGE_NAVIGATE)})),wt.parseMetadata(),p.Z.logEvent(p.Z.GIS_EVENTS.PAGE_METADATA,{metadata:r.ZP.getPageMetadata()}),v.Z.registerPollingEvent(v.Z.BASE_EVENTS.CLERK_AVAILABILITY_POLLING,{poll:de.checkClerkAvailability,pollArguments:[null,!0]}),v.Z.registerPollingEvent(v.Z.BASE_EVENTS.BROADCAST_POLLING,{poll:de.checkBroadcastAvailability,pollArguments:[]});var t=E.Z.getSystemConfig(),n=o.Z.isDirectCall(),i=o.Z.isDirectLinkBroadcast(),a=o.Z.isMeeting(),c=kt.Z.isAddAPersonCall();o.Z.isDepartmentCall()&&Je.init(s.Z.DIRECT_CALL_TYPE.DEPARTMENT_CALL),n&&Je.init(s.Z.DIRECT_CALL_TYPE.CLERK_CALL),a&&Pt.init(),c&&ee.Z.isAddAPersonEnabled()&&l.init(),i&&nt.Z.startDirectLinkBroadcast(),E.Z.getApiEnabled()&&!r.ZP.getAPIStandardJourney()||(Me.init(),n||i||!an.serviceOffered?r.ZP.setOneToOneChecked():de.checkClerkAvailability("clerkIsAvailable","clerkIsNotAvailable"),an.broadcastEnabled?t.broadcast.polling&&t.broadcast.polling.enabled?(v.Z.subscribe(v.Z.BASE_EVENTS.BROADCAST_POLLING,(function(){}),(function(){})),v.Z.startPollingEvent(v.Z.BASE_EVENTS.BROADCAST_POLLING)):de.checkBroadcastAvailability():r.ZP.setBroadcastChecked(),E.Z.getSystemConfig().persistentCta&&!v.Z.isPollingTimeExpiredForEvent(v.Z.BASE_EVENTS.CLERK_AVAILABILITY_POLLING)&&(v.Z.subscribe(v.Z.BASE_EVENTS.CLERK_AVAILABILITY_POLLING,de.clerkIsAvailable,de.clerkIsNotAvailable),v.Z.startPollingEvent(v.Z.BASE_EVENTS.CLERK_AVAILABILITY_POLLING))),tn.init(),"function"==typeof window.onGisInitialized&&window.onGisInitialized(),document.addEventListener("gisUIClosed",(function(){Ge.Z.publish(s.Z.EVENT_NAMES.ROUTER.ROUTE_CLOSED)}))}catch(e){m.Z.error(an.LOGTAG,"Exception when script ready.",e)}},an.executeOnGisLoadFunctions=function(){for(var e=Object.keys(an.onGisLoadFunctions),t=0;t