/** * 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={};u._uiConfig=a.Z.getUiConfig(),u.CTA_AWARENESS_RESHOW_DURATION=u._uiConfig&&u._uiConfig.ctaAwarenessMessage.reshowDuration||1,u.customAwarenessMessage=u._uiConfig.theme.awarenessMessage;var _={Large:"gis-cta-awareness-container-l",Medium:"gis-cta-awareness-container-m",Small:"gis-cta-awareness-container-s"};function C(a,s){if(e=a,u.customAwarenessMessage&&u.customAwarenessMessage.enabled?(n.querySelector("svg circle").style.fill=u.customAwarenessMessage.closeButtonBackgroundColor,n.querySelector("svg polygon").style.stroke=u.customAwarenessMessage.closeButtonIconColor):(n.querySelector("svg circle").style.fill=e.closeButton&&e.closeButton.circleColor||"white",n.querySelector("svg polygon").style.stroke=e.closeButton&&e.closeButton.crossColor||"black"),n.querySelector("svg polygon").style.strokeWidth=e.closeButton&&e.closeButton.crossWidth||"30",o.Z.addClass(d,_[e.ctaSize]),i.Z.isMobileDevice()&&(t.style.maxWidth="200px"),e.messages&&0!=e.messages.length){t.innerHTML="";for(var r=0;r1){var C=t.children[t.children.length-1];"right"==e.position?C.style.margin="15px 35px 0px 0px":"left"==e.position&&(C.style.margin="15px 0px 0px 35px"),C.style.fontSize="16px",C.style.cursor="pointer",t.firstChild.style.cursor="pointer",u.customAwarenessMessage&&u.customAwarenessMessage.enabled?(C.style.color=u.customAwarenessMessage.messageCallLabelColor,C.style.fontWeight=u.customAwarenessMessage.messageCallLabelWeight):C.style.color=e.roundelColor}s&&A()&&E()}function g(t){t&&(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:e.messages.join(" ")}),e.setRoundelCloseButton(!0)),d.style.display="none"}function A(){return"flex"===d.style.display}function E(){var t;e.isAvailable&&"clerk"===e.ctaMode?t=l.Z.GIS_EVENTS.CALL_CTA_AWARENESS_MESSAGE_SHOWN:e.isAvailable||"clerk"!==e.ctaMode?"replay"===e.ctaMode?t=l.Z.GIS_EVENTS.REPLAY_CTA_AWARENESS_MESSAGE_SHOWN:"broadcast"===e.ctaMode&&(t=l.Z.GIS_EVENTS.BROADCAST_CTA_AWARENESS_MESSAGE_SHOWN):t=l.Z.GIS_EVENTS.CTA_AWARENESS_CLERK_UNAVAILABLE_MESSAGE_SHOWN,l.Z.logEvent(l.Z.GIS_EVENTS[t],{message:e.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,e.position),o.Z.addClass(t,e.position),o.Z.addClass(n,e.position),u.customAwarenessMessage&&u.customAwarenessMessage.enabled&&(t.style.backgroundColor=u.customAwarenessMessage.messageBackgroundColor,t.style.borderColor=u.customAwarenessMessage.messageBorderColor),n.onclick=g.bind(null,!0),C(e,!1),d},hide:g,show:function(){var t=Date.parse(r.Z.getItem(r.Z.storageKeys.CTA_AWARENESS_MESSAGE_CLOSED));isNaN(t)||s.Z.dateDifferenceInDays(t,new Date)>=u.CTA_AWARENESS_RESHOW_DURATION?(d.style.display="flex",E(),e.setRoundelCloseButton(!1)):e.setRoundelCloseButton(!0)},isDisplayed:A,setup:C,setAwarenessMessageOnClickEvent:function(n){var i;e.isAvailable&&"clerk"===e.ctaMode?i=l.Z.GIS_EVENTS.CALL_CTA_AWARENESS_ACTION_MESSAGE_CLICKED:e.isAvailable||"clerk"!==e.ctaMode?"broadcast"===e.ctaMode?i=l.Z.GIS_EVENTS.BROADCAST_CTA_AWARENESS_ACTION_MESSAGE_CLICKED:"replay"===e.ctaMode&&(i=l.Z.GIS_EVENTS.REPLAY_CTA_AWARENESS_ACTION_MESSAGE_CLICKED):i=l.Z.GIS_EVENTS.CTA_AWARENESS_ACTION_CLERK_UNAVAILABLE_CLICKED,t.onclick=function(t){l.Z.logEvent(l.Z.GIS_EVENTS[i],{message:e.messages.join(" ")}),n.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={};d._uiConfig=i.Z.getUiConfig(),d._gisTheme=d._uiConfig.theme,d.customAwarenessMessage=d._gisTheme.awarenessMessage;var u=1e3*d._uiConfig.ctaBarMessage.slideOutDelay,_=1e3*d._uiConfig.ctaBarMessage.slideShowTimeOut+u,C=d._gisTheme?d._gisTheme.foregroundColor:"#fff",g=d._gisTheme?d._gisTheme.backgroundColor:"#000",A=d._uiConfig.ctaSize;function E(e){var t,o;n.style.color=C,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 p(){a.Z.addClass(e.ctaContainer,"gis-cta-bar-main-container"),a.Z.addClass(t,"gis-cta-bar--container-animate"),d.customAwarenessMessage&&d.customAwarenessMessage.enabled?(e.ctaContainer.style.backgroundColor=d.customAwarenessMessage.messageBackgroundColor,e.ctaContainer.style.border="1px solid"+d.customAwarenessMessage.messageBorderColor,n.style.color=C):(e.ctaContainer.style.backgroundColor=g,n.style.color=C)}function T(){setTimeout(S,500),a.Z.removeClass(t,"gis-cta-bar--container-animate")}function S(){a.Z.removeClass(e.ctaContainer,"gis-cta-bar-main-container"),e.ctaContainer.style.backgroundColor="transparent"}return{render:function(){return t=a.Z.processView(i.Z.getViews().ctaBarView,{},!1),n=t.querySelector("#gis-bar-msg-container"),E(e),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:E,hide:function(){clearTimeout(l),clearTimeout(c),T()},show:function(){l=setTimeout(p,u),c=setTimeout(T,_)}}}},6243:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});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),A=n(861);function E(e){var t,n,E,p,T,S,v,m,f,I,L={},b=null,y="none",O=null,h=!1,N=!1,Z=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)),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(E,"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&&(E.style.borderColor=e.roundelColor,E.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(v,"webp"),_.Z.isWebpSupported(function(e,t,n){!n&&t.removeClass(e,"webp")}.bind(null,v,a.Z))),a.Z.styleSheetInjector(C,v)}L.isAnimated&&L.isAvailable?(P.theme?m.style.backgroundColor=P.theme.mainColor:m.style.backgroundColor="#02DE98","video"===P.cta.animation.iconType?m.innerHTML='':m.innerHTML=' ',o.Z.isMobileDevice()||o.Z.isIPad()?E.style.padding="1px":E.style.padding="2px",E.style.backgroundImage="none",a.Z.removeClass(m,"gis-hide"),a.Z.addClass(m,"gis-cta-image-animation"),a.Z.addClass(v,"gis-cta-image-animation-reverse"),N=!0,b=setTimeout(H,L.isBarMessageEnabled?6e3:3e4)):(b&&clearTimeout(b),H()),t.isCtaOnBroadcast&&(a.Z.addClass(E,"in-shopstream"),a.Z.addClass(T,"in-shopstream"),o.Z.isPhoneOrTablet()&&(a.Z.addClass(E,"gis-mobile"),a.Z.addClass(T,"gis-mobile"))),t.isFloater&&(E.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(){Z&&clearTimeout(Z),Z=null,O&&O.isDisplayed()&&O.hide()}function V(){var e;I&&L.isBarMessageEnabled?(I.show(),k()):O&&L.isAwarenessMessageEnabled?(w&&clearTimeout(w),Z=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(m,"gis-cta-image-animation"),a.Z.addClass(m,"gis-hide"),a.Z.removeClass(v,"gis-cta-image-animation-reverse"),N=!1}return{render:function(){if(t=a.Z.processView(i.Z.getCtaRoundelView(),{ctaPreview:!1,ctaMessage:!1}),n=t.querySelector("#gis-cta-container"),t.querySelector("#gis-roundel-close-button-container"),S=t.querySelector("#gis-roundel-close-button"),A.Z.registerInteractiveElement(S),E=t.querySelector("#gis-cta"),A.Z.registerInteractiveElement(E,e.tabindex?e.tabindex:0),p=t.querySelector("#gis-cta-status-container"),t.querySelector("#gis-since-live-time"),T=t.querySelector("#gis-cta-indicator"),v=t.querySelector("#"+M),m=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(E,"gis-cta-l"),a.Z.addClass(E,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&&(E.onclick=function(t){t.isAnimationInProgress=N,e.call(this,t);var n=o.Z.isMobileDevice()?P.ctaSize:"Large";"clerk"===y?C.ZP.getClerkAvailability()?(l.Z.logEvent(l.Z.GIS_EVENTS.CALL_CTA_CLICK,{ctaSize:n,isCtaAnimationInProgress:t.isAnimationInProgress}),g.Z.sendAnalyticsEvent(g.Z.ANALYTICS_EVENTS.CALL_CTA_CLICK,{ctaSize:n})):(l.Z.logEvent(l.Z.GIS_EVENTS.CALL_CTA_CLICK_UNAVAILABLE,{ctaSize:n}),g.Z.sendAnalyticsEvent(g.Z.ANALYTICS_EVENTS.CALL_CTA_CLICK_UNAVAILABLE,{ctaSize:n})):"broadcast"===y?(l.Z.logEvent(l.Z.GIS_EVENTS.BROADCAST_CTA_CLICK,{ctaSize:n}),g.Z.sendAnalyticsEvent(g.Z.ANALYTICS_EVENTS.BROADCAST_CTA_CLICK,{ctaSize:n})):"replay"===y&&(l.Z.logEvent(l.Z.GIS_EVENTS.BROADCAST_REPLAY_CTA_CLICK,{ctaSize:n}),g.Z.sendAnalyticsEvent(g.Z.ANALYTICS_EVENTS.BROADCAST_REPLAY_CTA_CLICK,{ctaSize:n}))})},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){i||(i=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)}),i)}return{subviews:t,components:n,setup:_,render:function(){var o=a.Z.processView(i.Z.getViews().modalContentView,{},!0);if(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())for(var r in t)t.hasOwnProperty(r)&&a.Z.addClass(t[r],"gis-mobile");return _(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()})),A()},e.child&&E(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 v=c.Z.getSupportInfoUrl(p.supportInfoLink,d.ZP.getLocale());t.infoButton.style.background=a.Z.getImageUrl("info-logo.svg")+" center center / 27px no-repeat",v&&(t.infoButton.onclick=function(){l.Z.logEvent(l.Z.GIS_EVENTS.SUPPORT_INFO_LINK_CLICKED),window.open(v,"_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:E,setTitle:I,hide:A,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,A,E,p,T,S,v,m,f,I,L,b,y,O,h,N="videoPlayerComponent",Z=!1,w=!0,R=!0,D=!1,P=!1,U=!1,M=!1,B=.85,k="gis-message-indicator",V={};e.hideControls=Array.isArray(e.hideControls)?e.hideControls:[];var G=15,x=[{id:"gis-vc-play",type:"switch",name:"PLAY",click:function(){m&&m.paused?j():J()}},{id:"gis-vc-vol",type:"button",name:r.Z.VIDEO_CONTROLS.VOLUME}],H=[{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),R=!R,e.onProductClick(R),R?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:ee},{id:"gis-vc-fs",type:"switch",name:r.Z.VIDEO_CONTROLS.FULL_SCREEN,click:Q}];O=[{id:"gis-vc-timebar-start-time",type:"text",name:r.Z.TIME_TYPES.START}],h=[{id:"gis-vc-timebar-end-time",type:"text",name:r.Z.TIME_TYPES.END}],x.push({id:"gis-vc-time",type:"text",name:r.Z.TIME_TYPES.BOTH});var K={PRODUCT:'',CHAT:'',CHAT_WITH_MESSAGE:'',VIDEO_VOLUME:'',VIDEO_VOLUME_MUTE:''},W=i.Z.getLabels().shopStream_live_indicator;function F(){return Number(A.style.width.replace("%",""))}function Y(){return a.Z.isMobileDevice()||a.Z.isIPad()&&u.Z.getOrientation().match(/portrait/)}function q(t,n){for(var i in n){var a=n[i];e.hideControls.includes(a.name)||t.appendChild($(a))}}function $(e){var t=o.Z.createElementWithAttributes("div",e.id,"gis-content-align gis-controls");return Y()||o.Z.addClass(t,"gis-desktop"),"button"===e.type&&function(e,t){(e=function(e,t){if(t.name!==r.Z.VIDEO_CONTROLS.VOLUME)return e.innerHTML=K[t.name],e;var n=o.Z.createElementWithAttributes("div","gis-vol-icon","gis-content-align gis-controls");return Y()||o.Z.addClass(n,"gis-desktop"),n.innerHTML=K[t.name],n.onclick=X,C.Z.registerInteractiveElement(e,1,(()=>{e.dispatchEvent(new Event("click")),X()})),e.appendChild(n),function(e){var t=o.Z.createElementWithAttributes("div","gis-volume-slider","gis-content-align");t.innerHTML='
',e.appendChild(t),L=e.querySelector("#gis-vol-progress-bar");var n=e.querySelector("#gis-volume");b=t.querySelector("#gis-slider"),e.querySelector("#gis-vol-icon").onmouseover=oe,n.onclick=function(e){var n=document.getElementById("gis-player-container"),i=n.querySelector("#gis-player-left-pane");ae(e,t.offsetLeft+n.offsetLeft+i.offsetLeft+b.offsetWidth)},b.onmousedown=function(e){y=e.pageX-b.offsetLeft,D=!0,P=!0},b.onmousemove=se,n.onmousemove=se,n.onmouseover=function(e){U=!0},n.onmousedown=function(e){P=!0},n.onmouseup=function(e){P=!1},t.onmousemove=function(e){(D||P)&&se(e)},t.onmouseup=oe,e.onmouseover=function(n){Y()?t.style.display="none":(e.style.width="130px",t.style.display="inline-flex")},e.onmouseout=function(n){t.style.display="none",e.style.width="50px"}}(e),e}(e,t)).onclick=z.bind(null,t),t.name!==r.Z.VIDEO_CONTROLS.VOLUME&&C.Z.registerInteractiveElement(e,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});V[t.name]=n}(t,e),"text"===e.type&&function(e,t){ne(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}function z(t){var n=e[t.name];n&&"function"==n.onClick&&n.onClick(),"function"==typeof t.click&&t.click()}function j(e){if(m)if(M){var t=m.play();t&&t.then((function(){Ee()})).catch((function(t){console.error(N,"Error Playing video...",t),function(e){if(M){e&&X();var t=m.play();t&&t.then((function(){Ee(),"function"==typeof e&&e&&m.muted&&e(X)})).catch((function(e){_.Z.error(N,"Error AutoPlaying video...",e)}))}}(e)}))}else m.addEventListener("loadedmetadata",(function(t){M=!0,j(e)}))}function J(){m&&m.pause()}function X(){var e=t.querySelector("#gis-vc-vol").querySelector("#gis-vol-icon");m.muted=!m.muted,m.muted?(e.innerHTML=K.VIDEO_VOLUME_MUTE,b.style.left="0%",L.style.width="0%",m.volume=0):(e.innerHTML=K.VIDEO_VOLUME,b.style.left=100*B-2+"%",L.style.width=100*B+"%",m.volume=B)}function Q(){d.Z.logEvent(d.Z.GIS_EVENTS.SHOP_STREAM_FULL_SCREEN_BUTTON_CLICKED),Z?(e.initialScreen(),Z=!1):(e.onFullScreen(),Z=!0)}function ee(){d.Z.logEvent(d.Z.GIS_EVENTS.SHOP_STREAM_CHAT_BUTTON_CLICKED),w=!w,e.onChatClick(w),w?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 te(){return"BROADCAST_PLAYING"===c.ZP.getCurrentPhase()||"BROADCAST_START"===c.ZP.getCurrentPhase()}function ne(e,t,n){e&&(n&&(n.duration||n.attributes&&n.attributes.duration)?function(e,t,n){var i=function(e){if(e){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(te()&&t.duration-t.currentTimet.currentTime)n.innerHTML=i.CURRENT.minute+":"+i.CURRENT.second;else switch(e){case r.Z.TIME_TYPES.START:n.innerHTML=i.CURRENT.minute+":"+i.CURRENT.second;break;case r.Z.TIME_TYPES.END:n.innerHTML=t.duration===1/0?"":i.TOTAL.minute+":"+i.TOTAL.second;break;default:n.innerHTML=i.CURRENT.minute+":"+i.CURRENT.second+" / "+i.TOTAL.minute+":"+i.TOTAL.second}}(t,n,e):te()&&t!==r.Z.TIME_TYPES.END?e.innerHTML=W:t&&t!==r.Z.TIME_TYPES.BOTH?te()&&t===r.Z.TIME_TYPES.END?e.innerHTML="":e.innerHTML="0:00":e.innerHTML="0:00 / 0:00")}function ie(){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");ne(e,r.Z.TIME_TYPES.BOTH,n),ne(i,r.Z.TIME_TYPES.START,n),ne(a,r.Z.TIME_TYPES.END,n)}function ae(e,n){g=(e.pageX-n)/b.offsetParent.offsetWidth*100,(B=(g=g<0?0:g)/100)>=.85&&(B=1,P=!1,U=!1),b.style.left=g-2+"%",L.style.width=g+"%",m.volume=B,t.querySelector("#gis-vol-icon").innerHTML=g<=0?K.VIDEO_VOLUME_MUTE:K.VIDEO_VOLUME}function oe(){D=!1,P=!1}function se(e){(D||P)&&U&&ae(e,y)}function re(){V[r.Z.VIDEO_CONTROLS.PLAY]&&V[r.Z.VIDEO_CONTROLS.PLAY].mute(),"function"==typeof e.onPlay&&e.onPlay()}function le(){V[r.Z.VIDEO_CONTROLS.PLAY]&&V[r.Z.VIDEO_CONTROLS.PLAY].unMute(),"function"==typeof e.onPause&&e.onPause()}function ce(){"function"==typeof e.onEnded&&e.onEnded()}function de(){ie()}function ue(){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 _e(e){setTimeout((function(){!document.fullscreenElement&&Z&&(V[r.Z.VIDEO_CONTROLS.FULL_SCREEN].unMute(),Q())}),200)}function Ce(){m.textTracks&&m.textTracks[0]&&(m.textTracks[0].mode="hidden")}function ge(){var e=n.duration;if(e>0)for(var t=0;t0&&(g=n.currentTime/e*100,A.style.width=g+"%",ie(),Te(null,!0))}function Ee(){T=document.getElementById("gis-player-container")||document.getElementById("gis-player-video-container"),S=T.querySelector("#gis-player-left-pane")||document.getElementById("gis-video-container"),E=t.querySelector("#gis-video-seek-bar"),v=E.parentElement,n=t.querySelector("#gis-video"),f=t.querySelector("#gis-buffer"),p=t.querySelector("#gis-progress-bar-icon"),n.addEventListener("progress",ge),n.addEventListener("timeupdate",Ae),v.addEventListener("click",(function(e){Te(e),d.Z.logEvent(d.Z.GIS_EVENTS.PROGRESS_BAR_CLICKED)})),a.Z.isPhoneOrTablet()?p.ontouchstart=function(){v.addEventListener("touchmove",Te),d.Z.logEvent(d.Z.GIS_EVENTS.PROGRESS_BAR_DRAGGED)}:p.onmousedown=function(){v.addEventListener("mousemove",Te),d.Z.logEvent(d.Z.GIS_EVENTS.PROGRESS_BAR_DRAGGED)},v.addEventListener("mouseup",pe),v.addEventListener("mouseleave",pe),p.addEventListener("mouseup",pe),E.addEventListener("mouseup",pe)}function pe(){v.removeEventListener("mousemove",Te),p.removeEventListener("mousemove",Te)}function Te(e,t){if(I=E.offsetLeft+T.getBoundingClientRect().left+S.offsetLeft,!t){if(e.pageX)g=(e.pageX-I)/E.offsetWidth*100;else{var i=e.targetTouches[0];g=(i.pageX-I)/E.offsetWidth*100}n.currentTime=g*n.duration/100,g=g>100?99:g,A.style.width=g+"%"}F()<=.2?(p.style.left="0",p.style.right="auto"):F()>=99?(A.style.width="100%",p.style.left="auto",p.style.right="0"):(p.style.left="100%",p.style.right="auto"),ie(),(F()<=0||F()>=99.9)&&(v.removeEventListener("mousemove",Te),p.removeEventListener("mousemove",Te))}return W='
'+W+"
",{render:function(){t=o.Z.processView(i.Z.getViews().videoPlayerView,{}),(m=t.querySelector("#gis-video")).addEventListener("play",re),m.addEventListener("pause",le),m.addEventListener("loadedmetadata",de),m.addEventListener("ended",ce),m.addEventListener("canplay",(function(e){M=!0})),A=t.querySelector("#gis-progress-bar");var n=t.querySelector("#gis-video-timebar");return o.Z.addClass(n,"gis-hide"),q(t.querySelector("#gis-vc-left"),x),q(t.querySelector("#gis-vc-right"),H),q(t.querySelector("#gis-vc-timebar-left"),O),q(t.querySelector("#gis-vc-timebar-right"),h),e.trackFile&&(t.querySelector("#gis-video-track").src=o.Z.getImageUrl(e.trackFile,!0),Ce()),ue(),document.addEventListener("fullscreenchange",_e),t},setPlayer:function(e){m=e},getPlayer:function(){return m},play:j,pause:J,toggleFullScreen:Q,dispose:function(){document.removeEventListener("fullscreenchange",_e),m.removeEventListener("play",re),m.removeEventListener("pause",le),m.removeEventListener("loadedmetadata",de),m.removeEventListener("ended",ce),n&&n.removeEventListener("progress",ge),n&&n.removeEventListener("timeupdate",Ae)},toggleChat:ee,internalToggleProduct:function(t){R=t,e.onProductClick(R),t?V[r.Z.VIDEO_CONTROLS.PRODUCT]&&V[r.Z.VIDEO_CONTROLS.PRODUCT].unMute():V[r.Z.VIDEO_CONTROLS.PRODUCT]&&V[r.Z.VIDEO_CONTROLS.PRODUCT].mute()},internalToggleChat:function(t){w=t,e.onChatClick(w),t?V[r.Z.VIDEO_CONTROLS.CHAT].unMute():V[r.Z.VIDEO_CONTROLS.CHAT].mute()},hideControl:function(e){H.concat(x).forEach((function(n){n.name===e&&t.querySelector("#"+n.id)&&(t.querySelector("#"+n.id).style.display="none")}))},showControl:function(e){H.concat(x).forEach((function(n){n.name===e&&t.querySelector("#"+n.id)&&(t.querySelector("#"+n.id).style.display="flex")}))},showMessageIndicator:function(){o.Z.show(k,"flex")},updateMessageIndicatorCounter:function(e){t.querySelector("#"+k).innerText=e},callChatButtonOnClick:function(){t.querySelector("#gis-vc-chat").click()},setupUiForDesktop:ue,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(){m.textTracks&&m.textTracks[0]&&(m.textTracks[0].mode="showing")},hideCaptions:Ce,hideProgressBar:function(){E=t.querySelector("#gis-video-seek-bar"),o.Z.addClass(E,"gis-hide")}}}},8437:(e,t,n)=>{"use strict";var i;function a(e){return/iPhone/.test(e)}function o(e){/iPad/.test(e)||function(e){try{return e.includes("Mac")&&"ontouchend"in document}catch(e){return!1}}(e)}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=void(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,A=e,E=[];return{getSession:function(){return A},setUpOTSessionHandlers:function(){A.on("sessionConnected",(function(e){"function"==typeof t&&t(e)})),A.on("sessionDisconnected",(function(e){"function"==typeof n&&n(e)})),A.on("sessionReconnecting",(function(e){"function"==typeof o&&o(e)})),A.on("sessionReconnected",(function(e){"function"==typeof s&&s(e)})),A.on("connectionCreated",(function(e){"function"==typeof r&&r(e)})),A.on("connectionDestroyed",(function(e){"function"==typeof l&&l(e)})),A.on("streamCreated",(function(e){"function"==typeof c&&c(e)})),A.on("streamDestroyed",(function(e){"function"==typeof d&&d(e)})),A.on("signal",(function(e){"function"==typeof u&&u(e)})),A.on("streamPropertyChanged",(function(e){"function"==typeof _&&_(e)})),A.on("archiveStarted",(function(e){"function"==typeof C&&C(e)})),A.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),A&&A.signal(a,(function(e){e&&i.Z.error("otSession","Exception on sending signal.("+e.name+")"+e.message)}))},getConnection:function(){return A.connection},subscribe:function(e,t,n){var i=A.subscribe(e,t,n),o=new a.Z(i);return E.push(o),o},publish:function(e,t){A.publish(e,t)},disconnect:function(){A.disconnect()},getSubscribers:function(){return E},connect:function(e,t){A.connect(e,t)},off:function(){A.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:()=>E});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 A 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(4),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 E=A},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),A=n(7942),E=n(69),p=n(5129),T=n(3203),S=n(4999),v=n(1875),m=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=(e,t,n)=>{};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(4),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?m.Z.logEvent(m.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,A)=>{g&&"string"==typeof g&&(g=JSON.parse(g));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),E.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,A||(this.ready._uiContainer.hide(!0),this.ready.callDOMProcComponent.show({isMicSetupRequired:C.Z.getSystemConfig().skipMicShare,isBookingCall:E.Z.isMeeting(),isArchivingEnabled:this.ready._isArchivingEnabled,chatOnlyCall:{enabled:this.isChatFirstCall(),startCallOnClick:this._setStartCallOnClick}}),v.Z.setCallDOMProc(this.ready.callDOMProcComponent)),(E.Z.isMeeting()&&f.Z.isTwoWayVideoCallEnabled()||!E.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 T={routingKey:l.ZP.getRoutingKey()};g&&(T.routing=g),m.Z.logEvent(m.Z.GIS_VIEWS.CALL+m.Z.GIS_ACTIONS.SHOWN,T),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=e=>{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,A.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{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(),e=e&&"string"==typeof e?atob(e):l.ZP.getRoutingKey(),l.ZP.setActiveCallRoutingKey(e),this.ready._referralUrl=encodeURIComponent(t);try{l.ZP.setPageMetadata(JSON.parse(atob(n)))}catch(e){}A.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:()=>E});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 A;g._submitContact=function(){if(!g.isSubmissionInProgress){A=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)}},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(A.broadcast_v2_noClerkCaptureInfo_failedToSendText)}))}};const E={init:function(e,t){A=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:A.noClerkAvailableScreen_emailFieldLabel,textBoxLabel:A.noClerkAvailableScreen_emailErrorLabel,buttonClick:g._submitContact}),o.Z.bodyRender(g.contactCapture.render()),g.contactCapture.getChild().setup({exitAnimation:!0,enterAnimation:"fullscreen",mainText:{text:A.broadcast_v2_noClerkCaptureInfo_mainText},mainSubText:A.broadcast_v2_noClerkCaptureInfo_mainSubText,secondaryText:A.broadcast_v2_noClerkCaptureInfo_secondaryText,padding:"0px 20px"}),o.Z.appendView(g.contactCapture.getChild().subviews.contentContainer,g.emailTextBox.render()),g.buttonComponent=new d.Z({buttonLabel:A.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:()=>E});var i,a,o=n(5940),s=n(4999),r=n(9362),l={},c="hlsCtrl",d=o.Z,u=function(){},_=function(){};function C(e,t){var n=t.type,i=t.details;d.error(c,"Hls Error.",{message:n,stack:i}),_(t)}function g(){u()}function A(){i.loadSource(a)}l.loadHls=function(e){s.Z.loadHlsJs((function(){var t=l._isHlsObjectInit();t&&l._setEventsHandler(),e(t)}),(function(t){d.error(c,"Failed to load Hls.js",t),e(!1)}))},l._isHlsObjectInit=function(){return!!Hls.isSupported()&&(i=new Hls,!0)},l._setEventsHandler=function(){i.on(Hls.Events.ERROR,C),i.on(Hls.Events.MEDIA_ATTACHED,A),i.on(Hls.Events.MANIFEST_PARSED,g)},r.Z.override(c,l);const E={loadHls:l.loadHls,playUrl:function(e,t){a=t,i.attachMedia(e)},destroy:function(){i&&i.destroy()},registerOnManifestParsed:function(e){"function"==typeof e&&(u=e)},registerOnErrorFunction:function(e){"function"==typeof e&&(_=e)}}},8204:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(6616),a=n(5940),o=n(4866);class s 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(4),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 videoSegmentComponent({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 r=s},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(e){}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(e,t,n){};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){var n={title:e.title,action:t,productCode:e.productCode};return e.addOnType&&(n.addOnType=e.addOnType),e.addOnId&&(n.addOnId=e.addOnId),n}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"))},isAddToCartConfigured:function(){return r.addProductToBasket!==l},getBasketInfo:c,overrideATC:function(e){r.addProductToBasket=e}}},3408:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});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 A={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:()=>E});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",A="Internet Explorer";const E={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?void e(t.webp):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");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"},getBrowserDisplayName:function(e){switch(e){case l:return c;case d:return u;case _:return C;case g:return A;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:()=>E});var i,a=n(5940),o=n(2342),s=n(7448),r=n(4999),l=n(2790),c=(n(69),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:A(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 A(e){return"broadcast"===e?"live":("call"===e||"replay"===e)&&e||"replay"}const E={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&&!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:A(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(e){}}},6575:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});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 A={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(e){o.Z.info(d,"Comet chat init successful");var n=l.Z.getChatUserUUID();a.ZP.getChatUserName()!=l.Z.getChatUserName()&&r.Z.updateUsername(i,a.ZP.getChatUserName()),r.Z.login(i,n,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:()=>m});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),A=n(9289),E={};E.inactivityNotificationTimeout=_.Z.CHAT.INACTIVITY.CONVERSATION.NOTIFICATION_TIMEOUT,E.loadReactUIKitBundle=function(){document.getElementById("cometChatIframe").contentWindow.loadBundle()},E.loadChatInIframe=function(e,t,n,a,u){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:A.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:E.inactivityNotificationTimeout}})},a.Z.override("chatLoadService",E);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}),v={ERROR:S};const m={chatWidgetInit:E.loadReactUIKitBundle,loadChatInIframe:E.loadChatInIframe,FOR_INTERNAL_TESTING:v}},4255:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(5940),a={},o="chatLoginService",s=!1;a.logout=function(){if(!t){var e=document.getElementById("cometChatIframe");if(e&&e.contentWindow)var t=e.contentWindow.CometChat}s&&t&&t.logout().then((function(e){s=!1,i.Z.info(o,"Logout completed successfully")}),(function(e){i.Z.error(o,"Logout failed with exception:",e)}))};const r={logout:a.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),A=n(6575),E=n(7383),p=n(9362),T=n(3515),S=n(861),v=(n(3294),!1),m=!1,f=_.Z.getLabels(),I="",L=!1,b=!1,y=!1,O=g.Z.CHAT.INACTIVITY.USERNAME.AUTO_SUBMIT_LIMIT,h={},N=!1,Z=!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(!m&&v?i:g.Z.CHAT.INACTIVITY.USERNAME.DEFAULT_NAME,r),E.Z.logEvent(E.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)&&v?(d.Z.hide(c),V(0,i,a,o)):(m=!0,I=f.chat_room_full_message,H(a,n,o),o.classList.remove("valid"),setTimeout(W.bind(null,a,n,o),3e5),E.Z.logEvent(E.Z.GIS_EVENTS.CHAT_ROOM_FULL_MESSAGE_SHOWN))},A.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,v=!1,H(a,t,n)):r&&o.length>0?(I=f.chat_emoticon_error_msg,v=!1,H(a,t,n)):o.length<1||o===_.Z.getLabels().chat_userName_firstInput?(v=!1,W(a,t,n)):o.length<3?(I=f.chat_userName_infoTooShort,v=!1,H(a,t,n)):o.length>20?(I=f.chat_userName_infoTooLong,v=!1,H(a,t,n)):(i=a.innerText,v=!0,m=!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}v?N?(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(),Z):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(m||!v)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){e.classList.remove("valid"),e.classList.add("not-valid"),n.classList.remove("valid"),t.innerText=I,""!==t.innerText&&d.Z.show(t.id)}function K(e,t,n){e.classList.remove("not-valid"),e.classList.add("valid"),n.classList.add("valid"),t.innerText="",d.Z.hide(t.id)}function W(e,t,n){K(e,t,n),v?(e.classList.add("valid"),n.classList.add("valid")):(e.classList.remove("valid"),n.classList.remove("valid")),m=!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,A,E,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},N=E;var y=l.ZP.getChatInitiated(),O=l.ZP.getChatInitialized(),h=document.querySelector("#"+e);r=h;var Z=document.querySelector("#"+n),P=document.querySelector("#"+i),M=l.ZP.getCurrentPhase();o=document.querySelector("#"+u),a=C,L=g,b=A,S.Z.registerInteractiveElement(P,1),S.Z.registerInteractiveElement(Z,1),P.innerText.trim()||f.chat_userName_firstInput,F()&&(Z.classList.add("valid"),v=!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,r){s.addEventListener("click",(function(t){!m&&v&&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,Z),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(Z,"valid"),v=!1),U()},isNameConfigured:F,getUserName:Y,setCallDOMProc:function(e){s=e},setTransparentChat:function(e){Z=e},submitUsername:G,getCallDOMProc:q}},3515:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});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,A,E,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,E),_.Z.publish(u.Z.EVENT_NAMES.COMETCHAT_LOGGED_IN),A||p)l.Z.chatWidgetInit();else{var r="in call - "+a.Z.getRetailerKey()+" - "+s.Z.getFormattedTime(new Date);d.Z.createGroup(e,E,r,n,""),o.ZP.setChatInitiated(!0),o.ZP.setChatInitialized(!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,A,a.Z.getCometChatAuthKey(),E,p)}))};const A={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 localStorage.hasOwnProperty(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){if(e+="=",!s())return null;for(var t=s().split(";"),n=0;nu});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)}}()||"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"}},isPhoneOrTablet:function(){return d()||c()}}},7383:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});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(),A=0;function E(e,t){if(!s.ZP.isDataCollectionDisabled()){t||(t={}),"object"!=typeof t&&(t={});var n={};Object.keys(t).forEach((function(e){n[e]=t[e]})),s.ZP.getABTestId()&&(n.abTestId=s.ZP.getABTestId(),n.abTestGroup=s.ZP.getABTestGroup()),s.ZP.getActiveABTests()&&(n.activeABTests=s.ZP.getActiveABTests()),s.ZP.getCallUUID()&&(n.callUUID=s.ZP.getCallUUID()),s.ZP.getSocialRedirectionInfo()&&null!==s.ZP.getSocialRedirectionInfo()&&(n.redirectedFrom=s.ZP.getSocialRedirectionInfo()),n.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((A+i).toFixed(3)),a}(e),n.referrer||(n.referrer=r.Z.getReferer()),l.Z.debug(u,"Logging event "+e+", "+JSON.stringify({data:n,CallUserUUID:s.ZP.getCallUserUUID(),pageUUID:s.ZP.getPageUUID()}));var i=r.Z.utf8ToBase64(JSON.stringify(n));if(c.Z.logEvent(e,s.ZP.getCallUserUUID(),s.ZP.getPageUUID(),i),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=n,c.Z.logEventOnStream(encodeURIComponent(a.retailerKey),a)}}}function p(){var e=performance.now();document[i]?(A+=e-o,o=0,E(_.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 = "+A+" ms")}function T(){C.scroll=!0,window.removeEventListener("scroll",T)}function S(){C.wheel=!0,window.removeEventListener("wheel",S)}function v(){C.mouseUp++}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 m={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:E,setupEventListeners:function(){window.addEventListener&&(window.addEventListener("wheel",S),window.addEventListener("scroll",T)),document.body.addEventListener&&document.body.addEventListener("mouseup",v,!0),document.addEventListener&&void 0!==i?(document.addEventListener(a,p,!1),document[i]?(E(_.TAB_INACTIVE),s.ZP.setPageStatus(s.ZP.pageStatus.INACTIVE)):(o=g,s.ZP.setPageStatus(s.ZP.pageStatus.ACTIVE))):A=-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){if(c._isEventLoggingAllowed(e)){n&&!s.Z.isInt(n)&&(i.Z.warn(c.LOGTAG,"Ignoring invalid value for analytics event"+e+": "+n),n=null);var a={};a.userId=o.ZP.getCallUserUUID(),a.pageId=o.ZP.getPageUUID(),o.ZP.getCallUUID()&&(a.CallId=o.ZP.getCallUUID());var r=JSON.stringify(a);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+r.length>c.GA_CONSTANTS.MAX_LABEL_LENGTH)i.Z.warn(c.LOGTAG,"Ignoring extra data for analytics event because it was too long");else{for(var l in t)t.hasOwnProperty(l)&&(a[l]=t[l]);r=JSON.stringify(a)}c.logService.debug(c.LOGTAG,"Sending Analytics event "+e+"; category: "+c.category+"; label: "+r+"; value: "+n),c._dispatchEvent(e,r,n)}},c.registerCustomAnalyticsReference=function(e){c.customApiCallback=e},c._dispatchEvent=function(e,t,n){try{switch(a.Z.getGAType()){case c.ANALYTICS_TYPES.NONE:break;case c.ANALYTICS_TYPES.CLASSIC:c._sendGaEvent(e,t,n);break;case c.ANALYTICS_TYPES.UNIVERSAL:c._sendAnalyticsEvent(e,t,n);break;case c.ANALYTICS_TYPES.TAG_MANAGER:c._sendDataLayerEvent(e,t,n);break;case c.ANALYTICS_TYPES.CUSTOM_API:c._sendCustomApiAnalyticsEvent(e,t,n);break;case c.ANALYTICS_TYPES.TEALIUM:c._sendTealiumAnalyticsEvent(e,t,n);break;case c.ANALYTICS_TYPES.CUSTOM:c._sendCustomAnalyticsEvent(c.category,e,t,n);break;case c.ANALYTICS_TYPES.ADOBE:c._sendAdobeAnalyticsEvent(c.category,e,t,n);break;case c.ANALYTICS_TYPES.GA4:c._sendGA4AnalyticsEvent(e,t,n);break;default:c.logService.error(c.LOGTAG,"Invalid analytics type: event cannot be sent")}}catch(e){c.logService.error(c.LOGTAG,"Error dispatching analytics event",e)}},c._sendGaEvent=function(e,t,n){var i=window[c.ANALYTICS_DEFAULT_REFENCE_NAMES.CLASSIC];if(c.validReference(i)){var a=[c.GA_CONSTANTS.TRACK_EVENT,c.category,e,t];n&&a.push(n),i.push(a)}},c._sendGA4AnalyticsEvent=function(e,t,n){var i=window[c.ANALYTICS_DEFAULT_REFENCE_NAMES.GA4];if(c.validReference(i)){var a={gisEventCategory:c.category,gisEventAction:e,gisEventLabel:t};n&&(a.gisEventValue=n),i("event",e,a)}},c._sendAnalyticsEvent=function(e,t,n){var i=window[c.ANALYTICS_DEFAULT_REFENCE_NAMES.UNIVERSAL];if(c.validReference(i)){var o=c.GA_METHOD_STRINGS.SEND,s=a.Z.getGATrackerName();s&&(o=s+"."+o),i(o,c.GA_METHOD_STRINGS.EVENT,c.category,e,t,n)}},c._sendDataLayerEvent=function(e,t,n){var i=window[c.ANALYTICS_DEFAULT_REFENCE_NAMES.TAG_MANAGER];c.validReference(i)&&i.push(c._getDataLayerObject(c.TAG_MANAGER_CONSTANTS.GIS_EVENT_NAME,c.category,e,t,n))},c._sendTealiumAnalyticsEvent=function(e,t,n){var i=window[c.ANALYTICS_DEFAULT_REFENCE_NAMES.TEALIUM];if(c.validReference(i)){var a=l.Z.getItem("gis-chat-call-user-uuid");c.event={},c.event.link_cat=c.category,c.event.link_id=e,c.event.link_position="gis_events",c.event.event_name=e,c.event.gis_vuid=a||"",i.link(c.event)}},c._getDataLayerObject=function(e,t,n,i,a){var o={event:e,gisEventCategory:t,gisEventAction:n,gisEventLabel:i};return a&&(o.gisEventValue=a),o},c.validReference=function(e){return e?(c.hasBeenError=!1,!0):(c.hasBeenError||i.Z.error(c.LOGTAG,"Couldn't find Analytics reference: no events being sent."),c.hasBeenError=!0,!1)},c._sendCustomApiAnalyticsEvent=function(e,t,n){"function"==typeof c.customApiCallback?c.customApiCallback(c.category,e,t,n):c.logService.error(c.LOGTAG,"Failed to send custom analytics event via callback. Invalid event callback specified.")},c._sendAdobeAnalyticsEvent=function(e,t,n,o){var s=window[c.ANALYTICS_DEFAULT_REFENCE_NAMES.ADOBE],r=a.Z.getGATrackerName();if(c.validReference(s))if(window.digitalData)if(r){window.digitalData.event||(window.digitalData.event=[]);var l={eventName:e,eventAction:t,data:JSON.parse(n),value:o||""},d=[];d.push(l),setTimeout((function(){var e=d.shift();e&&(window.digitalData.event.push(e),s.track(r))}),100)}else i.Z.error(c.LOGTAG,"Couldn't find adobe direct-call rule: no events being sent.");else i.Z.error(c.LOGTAG,"Couldn't find adobe digitalData object: no events being sent.")},c._isEventLoggingAllowed=function(e){if(o.ZP.isDataCollectionDisabled())return!1;if(!a.Z.getGAType())return!1;if(!e||e&&!s.Z.isString(e))return i.Z.error(c.LOGTAG,"Invalid analytics event: "+e),!1;var t=a.Z.getSystemConfig();if(t.blockedEvents.enabled){var n=t.blockedEvents.events;if(0==n.length)return!0;for(var r=0;r{"use strict";n.d(t,{Z:()=>w});var i=n(5940),a=n(6628),o=n(2342),s=n(1986),r=n(69),l=n(9362),c=n(1496),d=n(7697),u={LOGTAG:"gisService"},_=O(),C=function(){var e=a.Z.getBrowserSecurityToken();if(e)return"secToken="+e}(),g="/jsapi/isClerkAvailable",A="/jsapi/booking",E="/jsapi/isClerkAvailableByAlias",p="/jsapi/all-active-broadcasts",T="/jsapi/get-broadcast-event",S="/broadcast/isLiveById",v="/chat/send/message",m="/jsapi/video-segments",f=2e3;function I(e,t,n,a){var o=document.createElement("script");o.type="text/javascript",o.src=e,r.Z.isReferrerPolicyEnable()&&(o.referrerPolicy=r.Z.getReferrerPolicy()),o.onload=t,o.onerror=function(t){i.Z.error(u.LOGTAG,"JSONP request returned an error: "+(a&&a.msg?a.msg:e),t,a&&a.info?a.info:e),n&&n()};try{document.getElementsByTagName("head")[0].appendChild(o)}catch(t){i.Z.error(u.LOGTAG,"Exception occurred on JSONP call: "+e,t)}}function L(e,t,n,i){var o=a.Z.getGisDomain()+e;if(null!=t&&t.forEach((function(e){o+="/"+e})),n)for(var s=0;s-1&&t.removeChild(n[i])}function y(e,t,n,o,s){var l=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=a.Z.getDomain()+e,C?r.Z.addParamToUrl(t,C):(_&&(t=r.Z.addParamToUrl(t,_)),a.Z.getRetailerToken()&&(t=r.Z.addParamToUrl(t,"retailerToken="+a.Z.getRetailerToken())),t))}(n),c.onload=o,c.onerror=s,r.Z.isReferrerPolicyEnable()&&(c.referrerPolicy=r.Z.getReferrerPolicy());try{l.appendChild(c)}catch(e){i.Z.error(u.LOGTAG,"Exception while injecting link tag in Head.",e)}}function O(){var e=a.Z.getChromeExtensionToken();if(e)return"q="+e}function h(){return"noCacheParam="+(new Date).getTime()}function N(e,t){return t?"routingKey="+r.Z.utf8ToBase64(e.trim()):"routingKey="+encodeURIComponent(e.trim())}function Z(){return"locale="+a.Z.getLocale()}u.isClerkAvailable=function(e,t,n){var i=0,o=a.Z.getSystemConfig();o&&o.clerkAvailabilityReqDelay&&!isNaN(o.clerkAvailabilityReqDelay)&&(i=o.clerkAvailabilityReqDelay),setTimeout(u.isClerkAvailableByAlias.bind(null,null,e,t,n),1e3*i)},u.isClerkAvailableByAlias=function(e,t,n,i){if(!r.Z.isHttpsPageRedirected()){var a=[];a.push(t),a.push(n);var s=[];s.push(h()),i&&s.push(N(i,!0)),o.ZP.getCallUserUUID()&&s.push("callUserUUID="+o.ZP.getCallUserUUID()),s.push("referer="+r.Z.getReferer(!0));var l=g;b(g),e&&(l=E,b(E),a.unshift(e)),L(l,a,s).loadScript()}},l.Z.override(u.LOGTAG,u);const w={URL_MAX_SIZE:f,loadScript:I,loadCss:function(e,t){var n=a.Z.getUiConfig().theme&&a.Z.getUiConfig().theme.name||"";y("stylesheet","text/css","/gis/css"+(n?"?theme="+n:""),e,t)},loadExternalCss:function(e,t,n){y("stylesheet","text/css",e,t,n)},getSurveyQuestionsFromCallUUID:function(e){var t=[];t.push("referer="+a.Z.getReferer()),t.push("callUuid="+e),t.push(O()),a.Z.getLocale()&&t.push(Z()),L("/jsapi/survey",null,t).loadScript()},submitSurveyResult:function(e){L("/jsapi/saveReview",null,["payload="+e]).loadScript()},submitContactDetails:function(e,t,n){var i=[];i.push("payload="+e),i.push(N(o.ZP.getRoutingKey())),i.push("referer="+a.Z.getReferer()),L("/contact",null,i).loadScript((function(){s.Z.sendAnalyticsEvent(s.Z.ANALYTICS_EVENTS.CONTACT_SUBMISSION),t()}),(function(){n()}))},isBroadcastActiveByBroadcastId:function(e,t,n){b(S);var i=[];e&&i.push("broadcastId="+e),L(S,[t],i).loadScript((function(){}),(function(){n()}))},getVideoSegmentsByBroadcastId:function(e,t){b(m),L(m,[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(o.ZP.getRoutingKey())),i.push("referer="+a.Z.getReferer()),L("/contact/broadcast/submit",null,i).loadScript((function(){s.Z.sendAnalyticsEvent(s.Z.ANALYTICS_EVENTS.CONTACT_SUBMISSION),t()}),(function(){n()}))},getBroadcasts:function(e,t){b(p);var n=[];e&&n.push("gischannel="+e),n.push("referer="+r.Z.getReferer(!0)),L(p,[t],n).loadScript()},getBroadcastsEvent:function(e,t,n){if(e){b(T);var i=[];i.push("gisevent="+e),t&&i.push("giskey="+t),i.push("referer="+r.Z.getReferer(!0)),L(T,[n],i).loadScript()}},isClerkAvailable:u.isClerkAvailable,isClerkAvailableByAlias:u.isClerkAvailableByAlias,getMeetingStatus:function(e,t){if(!r.Z.isHttpsPageRedirected()){var n=[];n.push(t);var i=[];i.push(h()),o.ZP.getCallUserUUID()&&i.push("callUserUUID="+o.ZP.getCallUserUUID()),i.push("referer="+r.Z.getReferer(!0)),i.push("bookingExtId="+e);var a=A;b(A),L(a,n,i).loadScript()}},connectCall:function(e,t,n,a,s){if(e){var l=[];l.push("callId="+e),n?l.push("referer="+n):l.push("referer="+r.Z.getReferer(!0)),t&&l.push(N(t,!0)),s?l.push("chatFirst=true"):l.push("chatFirst=false"),o.ZP.getCallUserUUID()&&l.push("callUserUUID="+o.ZP.getCallUserUUID()),l.push(),L("/jsapi/connecttostore",null,l).addObjectAsParamToUrl(a,"pageMetadata",f,"title").loadScript()}else i.Z.warn(u.LOGTAG,"Failed to send call to server. Invalid callId",{call_id:e})},connectSSLCall:function(e,t,n,i,s){var l=[];i&&l.push("callConnectCallback="+encodeURIComponent(i)),t&&l.push(N(t,!0)),o.ZP.getLogLevel()&&l.push("gis-log="+o.ZP.getLogLevel()),o.ZP.getLocale()&&l.push("locale="+o.ZP.getLocale()),o.ZP.getPageUUID()&&l.push("pageUUID="+o.ZP.getPageUUID()),l.push("rk="+a.Z.getRetailerKey()),l.push("callType="+s);var c="https:"+L("/connectCall",[e],l);c+=r.Z.addObjectAsParamToUrl(n,"pageMetadata",c,f,"title"),window.location.href=c},logActivity:function(e,t){L("/log/activity",[e,t]).loadScript()},initiateCall:function(e,t){var n=[];n.push("callbackName="+e),n.push("callType="+t),n.push("referer="+r.Z.getReferer(!0)),o.ZP.getCallUserUUID()&&n.push("callUserUUID="+o.ZP.getCallUserUUID()),L("/jsapi/initiateCall",null,n,!0).loadScript()},initiateMeetingCall:function(e,t,n){var i=[];i.push("callType="+t),i.push("referer="+r.Z.getReferer(!0)),i.push("bookingId="+n),L("/jsapi/booking/join/"+e,null,i,!0).loadScript()},getSecurityToken:function(e){L("/jsapi/getSecurityToken",[e],null).loadScript()},logActivityByEndpoint:function(e,t){L(e,[t]).loadScript()},loadHlsJs:function(e,t){"function"==typeof window.require&&"SOFOLOGY"!==a.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)})):I("https://cdn.jsdelivr.net/npm/hls.js@latest",e,t)},submitQuestion:function(e,t,n,i){b(v),L(v,[t],["payload="+e]).loadScript(n,i)},addCallUser:function(e,t,n){L("/broadcast/user/add",[t,e]).loadScript(null,n)},sendBroadcastViewDuration:function(e){L("/broadcast/user/update",[e]).loadScript()},getInitInfo:function(e,t){var n=[];n.push("callUserUUID="+o.ZP.getCallUserUUID()),n.push("referer="+r.Z.getReferer(!0)),a.Z.getLocale()&&n.push(Z()),c.Z.getLocaleCategory()&&n.push("ctaMessageKey="+c.Z.getLocaleCategory());var i=d.Z.getEncodedSavedActiveMvt();i&&n.push("mvt="+i),L("/jsapi/init-info",[e],n).loadScript(null,t)},logEvent:function(e,t,n,i){var o=[];o.push(e),o.push(a.Z.getRetailerKey()),o.push(t),o.push(n),i&&o.push(i),L("/event/create",o).loadScript(null,null,{msg:"Error Logging Event : "+e})},logEventOnStream:function(e,t){t=r.Z.utf8ToBase64(JSON.stringify(t));var n=a.Z.getSystemConfig().analytics.eventStreamLog.URL,i=""!==n&&"prod"===a.Z.getEnv()?n:a.Z.getGisEventDomain();I(i+="/?retailerKey="+e+"&payload="+t,null,null,{msg:"Error Logging Event : "+t.eventName})},sendSipDtmf:function(e){L("/sip/send-dtmf",null,e).loadScript()},getProductsForBroadcast:function(e,t){L("/jsapi/product-carousel",[e,t]).loadScript()},initiateAddAFriendCall:function(e,t,n){var i=[];i.push(e),i.push(t);var a=[];a.push("referer="+r.Z.getReferer(!0)),a.push("callUUID="+n),L("/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="+r.Z.getReferer(!0)),L("/jsapi/isClerkAvailable/callAutolaunch",i,a,!0).loadScript()},connectAutoLaunchCall:function(e,t,n){if(e){var a=[];a.push(e);var s=[];s.push("callId="+t),s.push("referer="+r.Z.getReferer(!0)),o.ZP.getCallUserUUID()&&s.push("callUserUUID="+o.ZP.getCallUserUUID()),s.push(),L("/jsapi/connecttostore/callAutolaunch",a,s).addObjectAsParamToUrl(n,"pageMetadata",f,"title").loadScript()}else i.Z.error(u.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="+r.Z.getReferer(!0)),L(i,a,o,!0).loadScript(null,t)}},getChatSegment:function(e,t){I(e,null,t)},isProductCarouselVersionUpdated:function(e,t,n){L("/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),L("/jsapi/live-page",i,null).loadScript()},loadVideoJs:function(e,t,n){"function"==typeof window.require&&"SOFOLOGY"!==a.Z.getRetailerKey()?(0,window.require)([e],(function(e){window.videojs=e,t()}),n):I(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:()=>r});var i=n(3203),a=n(9656),o=n(3294),s=n(861);const r={initializeSourceLessIframeWithScriptInjection:function(e,t,n,r){var l=i.Z.createElementWithAttributes("iframe",e+"Iframe",null,"height: 100%;width: 100%; border: none;");function c(){var t=l.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,c=t.document.getElementById("spinner-container");if(o.Z.subscribe("HIDE_SPINNER",(function(){a||t.document.body.removeChild(c),a=!0})),c.append(i.Z.createElementWithAttributes("div",null,"spinner","")),r.isSrc)l.src=n;else{var d=i.Z.createElementWithAttributes("script",null,null,null);d.src=n,(t.document.head||t.document.getElementsByTagName("head")[0]).append(d)}if(r.isCrossCommunication)var u=0,_=setInterval((function(){t.postRobotListener&&(clearInterval(_),gisAppLib.postRobot.send(t,e,r,{timeout:1e4}).then((function(e){console.log(e.source,e.origin)})).catch((function(e){console.error(e)}))),50==++u&&clearInterval(_)}),200)}return l.frameborder=0,a.Z.isFirefox()&&(l.onload=function(){c()}),t.appendChild(l),a.Z.isFirefox()||c(),l}}},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 A(e){a.Z.subscribe(s.Z.EVENT_NAMES.SCREEN_RESIZE,e),_()}function E(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&&(A(a),E(a))},applyFullScreenHeight:function(e){var t=o.Z.getWindow();(l.Z.isMobileDevice()&&l.Z.isIos()||l.Z.isIPad())&&!c.Z.isSafari()?e.style.height=document.documentElement.clientHeight+"px":e.style.height=t.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:E,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){A(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 A(e,t,n,i,o){t||(console.warn(r+" log tag missing",""),t="UNKNOWN",E(d.WARN.name,t,"log tag missing")),a.ZP.getPageStatus()===a.ZP.pageStatus.UNLOADING&&e.id===d.ERROR.id&&(e=d.WARN),E(e,t,n,i,o),p(e,t,n,i,o)}function E(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||(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="";for(var n in e)t+=e[n].mvtId+":"+e[n].groupNo,n!=e.length-1&&(t+=",");return a.Z.utf8ToBase64(t)}return null}}},5116:(e,t,n)=>{"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,A=null,E={audio:{isDetected:!1,isAllowed:!1},video:{isDetected:!1,isAllowed:!1}},p=[],T=[];function S(){return window.OT}function v(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)for(var i in n){var a;if(n.hasOwnProperty(i)&&(t[i]=function(){var e=i;return function(){return n[e].apply(t,arguments)}}()),(a=i.indexOf("Extension"))>-1){var o=i.substring(0,a);n.hasOwnProperty(i)&&(t[o]=function(){var e=o,i=t[e].bind({});return function(){return n[e+"Extension"].apply(t,arguments),i.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"};for(var property in _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="DEF",_scope.retailerName="Live Commerce Demo",_scope.googleAnalyticsType="$retailer.gaType",_scope.googleAnalyticsTrackerName="$retailer.gaTrackerName",_scope.googleAnalyticsReferenceName="useDefaultGAReferenceName",_scope.apiEnabled="false",_scope.surveyEnabled="true",_scope.tokboxApiKey="47022144",_scope.retailerToken="$retailerToken",_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="Need advice?",_scope.labels.barCta_message="Need help? Video call a human",_scope.labels.awarenessCta_startCallMessage="Video call an expert 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 team member will answer your 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="",_scope.labels.clerkUnavailableConnectScreen_weekendOpeningTime="",_scope.labels.clerkUnavailableConnectScreen_closedTime="Sunday closed",_scope.labels.connect_v2_Disclaimer="Looking for customer support?",_scope.labels.clerkAvailable_message="Product expert available",_scope.labels.directCallScreen_Title="Welcome to your Live Video Call",_scope.labels.connect_v4_mainText="Need buying advice?",_scope.labels.connect_v4_subMainText="Video call an instore expert now",_scope.labels.support_info_text="What is this?",_scope.labels.connect_v2_Disclaimer="Looking for customer support?",_scope.labels.connect_v4_button="Start call",_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="Username",_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 username",_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="",_scope)_scope.hasOwnProperty(property)&&_scope[property].indexOf&&_scope[property].indexOf("$")>-1&&(_scope[property]="");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\": \"'Montserrat', sans-serif\", \"name\": \"white\", \"mainColor\": \"#00B3E3\", \"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}, \"videoCallIcon\": true, \"ctaCallPreview\": {\"mobile\": false, \"desktop\": false}, \"micSetupVersion\": 3, \"supportInfoLink\": {\"default\": \"shop.goinstore.com/en/contact\"}, \"brandLegalNotice\": false, \"disclaimerSurvey\": false, \"showClerkProfile\": true, \"autoStartDirectCall\": false, \"ctaAwarenessMessage\": {\"delay\": {\"mobile\": 2, \"desktop\": 2, \"enabled\": true}, \"enabled\": [\"clerk\"], \"broadcast\": false, \"isEnabledOn\": {\"mobile\": true, \"desktop\": true}, \"reshowDuration\": 1}, \"ctaBroadcastPreview\": {\"mobile\": false, \"desktop\": false}, \"connectScreenHumanized\": true, \"hideConnectScreenImageOnMobileDevices\": false}","systemConfig":"{\"ios\": {\"chrome\": true, \"safari\": true, \"firefox\": true, \"facebook\": true, \"instagram\": true}, \"linux\": {\"opera\": true, \"chrome\": true, \"firefox\": true}, \"cookie\": {\"optIn\": false, \"enabled\": false}, \"android\": {\"opera\": true, \"chrome\": true, \"firefox\": true, \"facebook\": true, \"instagram\": true, \"samsungbrowser\": true}, \"booking\": {\"url\": {\"default\": \"https://book.appointedd.com/app/602fdcd321076f1df470a046\"}, \"enabled\": true, \"addAPerson\": false, \"twoWayVideo\": {\"enabled\": false}, \"multiParticipant\": true, \"openBookingWidgetInNewTab\": false, \"isEnabledForUnavailableCta\": false}, \"referer\": {\"queryParam\": {\"enabled\": false}}, \"windows\": {\"ie\": false, \"edge\": true, \"opera\": true, \"chrome\": true, \"firefox\": true}, \"oneToOne\": {\"addAPerson\": {\"enabled\": false}, \"inCallChat\": {\"enabled\": true}, \"twoWayVideo\": {\"enabled\": false, \"bypassCameraPreviewScreen\": false}, \"isShopStreamCall\": {\"enabled\": true, \"isChatFirstCall\": {\"enabled\": true}, \"productCarousel\": {\"enabled\": true}}}, \"analytics\": {\"enabled\": false, \"eventStreamLog\": {\"URL\": \"https://analytics-event.goinstore.com\"}}, \"broadcast\": {\"enabled\": true, \"polling\": {\"enabled\": true}}, \"macintosh\": {\"opera\": true, \"chrome\": true, \"safari\": true, \"firefox\": true}, \"shopStream\": {\"chat\": {\"type\": \"group\", \"enabled\": true}, \"enabled\": true, \"productCarousel\": {\"enabled\": true}, \"isChatReplayEnabled\": false}, \"captureInfo\": {\"views\": {\"replay\": false, \"broadcast\": false, \"clerkUnavailable\": false}}, \"goToShopBtn\": {\"url\": \"\", \"redirect\": \"tab\"}, \"oneToOneCta\": {\"broadcast\": true}, \"noVideoImage\": true, \"skipMicShare\": false, \"blockedEvents\": {\"events\": [], \"enabled\": false}, \"persistentCta\": true, \"questionDelay\": 30, \"isNewCallScreen\": true, \"liveEventsPages\": {\"isEnabled\": false}, \"privacySettings\": {\"optInAnalytics\": false, \"isSalesAttributionDependentOnOptin\": false}, \"specificPageBtn\": {\"url\": \"\", \"redirect\": \"tab\"}, \"broadcastEnabled\": true, \"delayOpenTokLoad\": false, \"oneToOneEngagement\": {\"src\": {\"replay\": true, \"serviceIntro\": true}, \"enabled\": true, \"reshowDuration\": 1}, \"replayConnectEnabled\": false, \"apiConnectScreenEnabled\": false, \"externalChatIntegration\": {\"isEnabled\": false, \"onConnectScreen\": false, \"onUnavailableScreen\": false}, \"singleCtaDefaultService\": \"clerk\", \"ctaAwarenessMessageDelay\": {\"mobile\": 2, \"desktop\": 2, \"enabled\": true}, \"isLogglyDependentOnCustomCriteria\": false}"},_scope.dependencyCheckingMaxRetries=parseInt(_scope.dependencyCheckingMaxRetries),_scope.dependencyCheckingSleepTime=1e3*parseInt(_scope.dependencyCheckingSleepTime),_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 isServiceOfferedExtension(){ GISAPP.stateService.setRoutingKey(""); GISAPP.stateService.addRoutingKey(); try { if(GISAPP && GISAPP.customRoutingKey){ GISAPP.stateService.addRoutingKey(GISAPP.customRoutingKey); } } catch (e) { this.serviceOffered = false; } } return{ isServiceOfferedExtension: isServiceOfferedExtension }; })(), GISAPP.callCtrlExtension = (function () { function addProductToBasket(data, onSuccess, onFailure) { console.log('Add to basket request successfully initiated. data: '+ JSON.stringify(data)); } return { addProductToBasket: addProductToBasket }; })(),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:()=>ae});var i,a,o,s,r,l,c,d,u,_,C,g,A,E,p,T=n(69),S=n(1638),v={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"},m="",f="",I=!1,L=!1,b={},y=v.SCRIPT_INIT,O=!1,h=!1,N=!1,Z=!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,$={},z=1,j={},J=["opera","chrome","firefox","samsungbrowser","safari","edge","facebook","instagram"],X=!1,Q=!1;let ee=!1;var te=null;function ne(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 ie(){var e=w.text,t=w.browserName;return t?("internet explorer"===(t=t.toLowerCase())&&(t="ie"),t.match(/firefox/i)&&(t="firefox"),ne().match(/ios/)?(e.match(/FBIOS/)&&(t="facebook"),e.match(/instagram/)&&(t="instagram")):ne().match(/android/)&&(e.match(/FBAV/i)&&(t="facebook"),e.match(/Instagram/i)&&(t="instagram")),-1===J.indexOf(t)&&(t="other"),t):""}const ae={getOs:ne,getBrowser:ie,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||m)?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}}},6953:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var i=n(6628),a=n(7448),o=n(2342),s=(n(5116),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;switch(e){case d.MEDIA_SHARE:case d.DEVICE_SUPPORT:t="ie"===o.ZP.getBrowser()}return 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:()=>P});var i,a,o,s,r,l,c,d,u=n(6953),_=n(69),C=(n(5940),n(6628)),g=n(2342),A=n(6229),E=n(9656),p=n(1638),T=(u.Z,_.Z),S={extraLarge:"ExtraLarge",large:"Large",medium:"Medium",small:"Small",extraSmall:"ExtraSmall"},v=[{type:S.extraLarge,minWidth:1920,maxWidth:1/0,minHeight:840},{type:S.large,minWidth:1280,maxWidth:1920,minHeight:646},{type:S.medium,minWidth:960,maxWidth:1280,minHeight:380},{type:S.small,minWidth:600,maxWidth:960,minHeight:0},{type:S.extraSmall,minWidth:0,maxWidth:600,minHeight:0}],m=["png","jpeg","jpg"],f=[];function I(e,t,n,i){var a=C.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');}"})),L(o)}function L(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 b(e,t){if(e&&t&&t.children)for(;t.children.length>0;)e.appendChild(t.children[0])}function y(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 O(e,t){t&&e&&!N(e,t)&&(e.className=e.className.replace(/\s+$/gi,"")+" "+t)}function h(e,t){e&&N(e,t)&&(e.className=e.className.replace(t,""))}function N(e,t){return e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function Z(){R(document.body),A.Z.getWindow().gisAppLib.bodyScrollLock.clearAllBodyScrollLocks()}function w(e){Z(),A.Z.getWindow().gisAppLib.bodyScrollLock.disableBodyScroll(e,{allowTouchMove:function(e){for(;e&&e!==document.body;){if(null!==e.getAttribute("body-scroll-lock-ignore"))return!0;e=e.parentElement}}})}function R(e){h(e,"gis-disable-scroll")}function D(e,t){var n=t||C.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}I("Roboto","roboto-v29","vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic",["regular","500"]);const P={setupGISPanels:function(){var e,t,n,i,a;l=y("div","gis-outer-panel","gis-outer-panel",""),c=y("div","gis-inner-panel","gis-inner-panel",""),d=y("div","gis-bg-cover","gis-bg-cover",""),l.appendChild(c),d.appendChild(l),document.body.appendChild(d),e=l,t=L,a=(i=(n=C.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");N(t,"gis-popanimationactive")||(h(n,"no-transition"),O(n,"stack"),O(t,"gis-popanimationactive")),w(c),c.firstChild&&c.removeChild(c.firstChild),c.appendChild(e),window.dispatchEvent(new GisCustomEvent("gisUIOpen"))},hideModal:function(e,t){h(document.getElementsByTagName("body")[0],"gis-popanimationactive"),h(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)&&(!t||"object"==typeof t)){var i=document.createElement("div");if(i.innerHTML=e,t&&0!==Object.keys(t).length){for(var a in t)t.hasOwnProperty(a)&&("true"===t[a]&&(t[a]=!0),"false"===t[a]&&(t[a]=!1));var o=i.innerHTML.match(/\{\{.+\}\}/);if(o){var s=o[0].substring(2,o[0].length-2),r=t[s];r&&(i.innerHTML=i.innerHTML.replace("{{"+s+"}}",r))}for(var l=[],c=i.getElementsByTagName("*"),d=0;d0;)e.removeChild(e.children[0])},removeView:function(e,t){for(;t.children.length>0;)e.removeChild(t.children[0])},bodyRender:function(e){b(document.body,e)},appendBefore:function(e,t,n){for(;t.children.length>0;)e.insertBefore(t.children[0],n)},createElementWithAttributes:y,show:function(e,t){document.getElementById(e).style.display=t||"block"},hide:function(e){document.getElementById(e).style.display="none"},addClass:O,removeClass:h,hasClass:N,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))+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))+30,o=e/t;return{width:Math.round(o*a),height:a}},showAlert:function(e,t){var n=C.Z.getLabels().connectScreen_alertTextOk;(i=y("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=y("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:w,getImageUrl:function(e,t){var n=g.ZP.getLocale(),i=C.Z.getRetailerToken(),a=C.Z.getChromeExtensionToken(),o=C.Z.getBrowserSecurityToken(),s=C.Z.getImagesResources()+"/"+D(e);return n&&(s=_.Z.addParamToUrl(s,"locale="+n)),o?(s=_.Z.addParamToUrl(s,"secToken="+o),s=_.Z.addParamToUrl(s,"referer="+C.Z.getReferer())):(i&&(s=_.Z.addParamToUrl(s,"retailerToken="+i)),a&&(s=_.Z.addParamToUrl(s,"q="+a)),_.Z.isReferrerPolicyEnable()&&(s=_.Z.addParamToUrl(s,"referer="+encodeURIComponent(_.Z.getPageUrl(!1))))),t?s:'url("'+s+'")'},getClerkImageUrl:function(e){return C.Z.getGisDomain()+"/images/clerk/"+btoa(e)},clearTimeouts:function(e){return e.forEach((function(e){clearTimeout(e)})),[]},redirectToHttp:function(){T.isDirectCall()||T.isAutoStartConnectScreen()||T.isDepartmentCall()?window.location.href=T.removeURLParameter(window.location.href,["giscall","gisAutoCall","giscallcategory",p.Z.QUERY_PARAM.GIS_SOCIAL]):T.isHttpsPageRedirected()&&window.history.back()},hasChildNodes:function(e){return e.hasChildNodes()},createCallControlButton:function(e,t,n){var i=y("div",e,n);return O(i,"gis-call-control-button"),i.innerHTML=t,i},addClasses:function(e,t){for(var n=0;ns){if(f[e].movedDown||!f[e].isActive)return;a.call(),f[e].movedUp=!1,f[e].movedDown=!0,f[e].isActive=!1}else{if(f[e].movedUp||f[e].isActive)return;i.call(),f[e].movedUp=!0,f[e].movedDown=!1,f[e].isActive=!0}}))})),t.addEventListener("pointerup",(function(){f[e].movedUp=!1,f[e].movedDown=!1}))},loadHostedFont:I,styleSheetInjector:L,enableScrollLock:function(e){O(e,"gis-disable-scroll")},disableScrollLock:R}},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{"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(){return g(i.Z.getWindow().location.href).hasOwnProperty("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){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n};e.prototype=window.Event.prototype,window.GisCustomEvent=e},getRandomAlphaNumKey:function(){for(var e="",t=0;t<32;t++)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=0;n=1?(t[i.relativeTo]=Math.floor(e/i.value),e%=i.value):t[i.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:A,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:E,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 t.hasOwnProperty(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++}},getLocaleFromHtmlTag:function(){return i.Z.getWindow().document.documentElement.lang},removeQueryParamsExceptSome:_,extractUrlParamsValues:g,getReferer:function(e){var t=E(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(A(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=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,i=e.phone,s=e.email,r=e.message,l=200,c=o(!0,[],"");return(a(n)||n.length>l)&&(t.push("name"),c=o(!1,t,"Invalid name")),(a(i)||i.length>l)&&(t.push("phone"),c=o(!1,t,"Invalid phone number")),(a(s)||s.length>l||!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(s))&&(t.push("email"),c=o(!1,t,"Invalid email")),(void 0===r||r.length>l)&&(t.push("message"),c=o(!1,t,"Invalid message")),c},isUndefinedOrEmpty:a,isDigit:function(e){return e>="0"&&e<="9"},isInt:function(e){return null!=e&&!isNaN(e)&&(0|(t=parseFloat(e)))===t;var t},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"},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+"."+{4:"e9ed2b6e0e4bb951671b",70:"dc15c5bd6b34ad86b8bb",477:"73f23901c81a18e1cd07",513:"c67fe7b6ac366885d1a4",631:"75327a40e7b5593fbbb4",946:"a9e2a446f57e15e93fe1",977:"119c839e01c2a1dcef35"}[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:()=>yt,Controller:()=>t.Z,GIS_CONSTANTS:()=>s.Z,Router:()=>e.Z,Sym_Sys:()=>de,activityLoggerService:()=>Cn.Z,addAPersonCtrl:()=>l,addAPersonService:()=>Mt.Z,addToCartService:()=>gn.Z,autoPlayService:()=>j,availabilityService:()=>An,availabilityWorker:()=>Ue,bookingService:()=>P.Z,broadcastCtrl:()=>tt.Z,browserInfoService:()=>it.Z,callCtrl:()=>ne.Z,callService:()=>ee.Z,callUserService:()=>En.Z,chatLogoutService:()=>pn.Z,chatUserNameService:()=>Tn.Z,chatUserService:()=>vn.Z,chatUtilService:()=>Sn.Z,clientStorageService:()=>S.Z,contactCaptureCtrl:()=>ke.Z,cookieService:()=>Ut.Z,ctaAwarenessComponent:()=>sn.Z,ctaBarComponent:()=>rn.Z,ctaComponent:()=>D.Z,ctaRoundelDOMProc:()=>B,ctaTabDOMProc:()=>N,deviceInfoService:()=>T.Z,directCallCtrl:()=>je,dockedPlayerComponent:()=>G,eventLoggerService:()=>p.Z,eventService:()=>Ve.Z,gaService:()=>E.Z,gisService:()=>a.Z,globalObjectService:()=>Dt.Z,hlsCtrl:()=>et.Z,i18nService:()=>Pt.Z,iframeService:()=>mn.Z,initCtrl:()=>nn,layoutService:()=>fn.Z,livePageWorker:()=>Qt,logService:()=>v.Z,meetingCtrl:()=>Rt,metadataService:()=>Nt,mvtService:()=>Bt.Z,otExtractedEnvParser:()=>ln.Z,otExtractedGetDevices:()=>cn.Z,otExtractedSupport:()=>en.Z,otPublisher:()=>dn.Z,otService:()=>te.Z,otSession:()=>un.Z,otSubscriber:()=>_n.Z,overrideService:()=>R.Z,pageUnloadService:()=>Ot.Z,pollingService:()=>m.Z,replayCtrl:()=>nt.Z,serverInjectionService:()=>A.Z,stateService:()=>r.ZP,systemInfoService:()=>w.Z,uiUtilitiesService:()=>f.Z,urlUtilitiesService:()=>In.Z,userService:()=>kt.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,A=__webpack_require__(6628),E=__webpack_require__(1986),p=__webpack_require__(7383),T=__webpack_require__(9036),S=__webpack_require__(7448),v=__webpack_require__(5940),m=__webpack_require__(4866),f=__webpack_require__(3203),I="gis-hide",L=A.Z.getUiConfig(),b=L.theme,y=L.ctaCustom||!1,O=!1;function h(){c=f.Z.processView(A.Z.getCtaTabView(),{ctaCustom:y}),d=u=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 N={show:function(e){c||h(),e||(e=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)}),e),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 Z,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=A.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=A.Z.getUiConfig(),U._systemConfig=A.Z.getSystemConfig(),U._gisTheme=U._uiConfig.theme,U._retailerStaticRoot=A.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){U._view||U._init(),e||(e=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()}),e))},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 Z=e==U.BROADCAST?U._liveBorderColor:U._uiConfig.awarenessMessage&&U._uiConfig.awarenessMessage.mainBtnColor||U._borderColor,U.ctaComp.setup({ctaMode:U._ctaMode,position:U._ctaPosition,roundelColor:Z,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=A.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=A.Z.getLabels().awarenessCta_startCallMessage,n=A.Z.getLabels().awarenessCta_message):(i=A.Z.getLabels().awarenessCta_unavailableBookCall,n=A.Z.getLabels().awarenessCta_unavailableMessage):(i=A.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(A.Z.getCtaRoundelView(),{ctaPreview:!0,ctaMessage:!0}),"humanized"==U._uiConfig.ctaType&&(U._gisTheme&&(U._borderColor=U._gisTheme.mainColor),U.isHumanizedCta=!0,Z=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:Z,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){"left"!=e&&"right"!=e&&(e="right"),f.Z.addClass(U._ctaContainer,U._circleClass+"-"+e),f.Z.addClass(U._notificationMessageContainer,U._ctaMessageBarClass+"-"+e),f.Z.addClass(U._notificationText,U._ctaMessageClass+"-"+e),f.Z.addClass(U._previewContainer,U._gifPositionClass+"-"+e),f.Z.addClass(U._gisLegalNoticeMsg,U._gisLegalNoticeMsgClass+"-"+e),f.Z.addClass(U._ctaMsgBox,U._ctaMsgBoxClass+"-"+e),"left"===e&&U._broadcastNotificationCloseButton&&(U._broadcastNotificationCloseButton.style.left="initial",U._broadcastNotificationCloseButton.style.right="10px"),"right"===e?U._ctaAvailabilityIndicator.style.right="0px":U._ctaAvailabilityIndicator.style.left="0px",U._ctaNotificationMsgSlideInClass=U._ctaNotificationMsgSlideInClass+"-"+e,U._ctaNotificationMsgSlideOutClass=U._ctaNotificationMsgSlideOutClass+"-"+e,U._msgBarSharpEdgeClass=U._msgBarSharpEdgeClass+"-"+e},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=!1,l=!1,c=!1;function d(s){if(clearInterval(n),a.view.style.animation="2s gis-slide-down forwards",("call"===e.type||"replay_engagement"===e.type||s)&&e.onVideoPlayerDismissed(),s){S.Z.setItem(S.Z.storageKeys.CTA_AUTO_PLAY_DISMISSED,o.Z.getTimeWithOutMilliSeconds());var r=t?a.totalPlayTime+((new Date).getTime()-t)/1e3:a.totalPlayTime;p.Z.logEvent(p.Z.GIS_EVENTS.CTA_AUTOPLAY_CLOSED,{channelId:e.broadcast.channelId,broadcastId:e.broadcast.id,viewMode:e.mode,viewDuration:r,url:o.Z.getPageUrl(!0),title:e.broadcast.name,videoType:e.broadcast.type,channelConfig:e.broadcast.config,videoTimeStamp:u()}),E.Z.sendAnalyticsEvent(E.Z.ANALYTICS_EVENTS.CTA_AUTOPLAY_CLOSED,{channelId:e.broadcast.channelId,broadcastId:e.broadcast.id,viewMode:e.mode,viewDuration:r,title:e.broadcast.name,videoType:e.broadcast.type,videoTimeStamp:u()})}setTimeout((function(){i.dispose(),a.view&&f.Z.clearView(a.view)}),1e3),l=!1}function u(){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 _(n){e.mode="minimized";var s=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",!r&&n||(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",r&&(a.subviews.title.innerHTML=A.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=g;var t=n?p.Z.GIS_EVENTS.CTA_AUTOPLAY_MINIMISED_CLICKED:p.Z.GIS_EVENTS.CTA_AUTOPLAY_AUTO_MINIMISED;p.Z.logEvent(t,{channelId:e.broadcast.channelId,broadcastId:e.broadcast.id,viewMode:e.mode,viewDuration:s,url:o.Z.getPageUrl(!0),title:e.broadcast.name,videoType:e.broadcast.type,channelConfig:e.broadcast.config,videoTimeStamp:u()})}),1e3)}function C(){var n,s;if(i.getPlayer().muted){try{i.getPlayer().muted=!1,n=p.Z.GIS_EVENTS.CTA_AUTOPLAY_UNMUTE,s=E.Z.ANALYTICS_EVENTS.CTA_AUTOPLAY_UNMUTE}catch(e){}a.subviews.muteBtn.style.background=f.Z.getImageUrl("volume.png")+" no-repeat center center/ "+("maximized"===e.mode?"contain":"15px")}else a.subviews.muteBtn.style.background=f.Z.getImageUrl("muted.png")+" no-repeat center center / "+("maximized"===e.mode?"contain":"15px"),i.getPlayer().muted=!0,n=p.Z.GIS_EVENTS.CTA_AUTOPLAY_MUTE,s=E.Z.ANALYTICS_EVENTS.CTA_AUTOPLAY_MUTE;var r=t?a.totalPlayTime+((new Date).getTime()-t)/1e3:a.totalPlayTime;p.Z.logEvent(n,{channelId:e.broadcast.channelId,broadcastId:e.broadcast.id,channelConfig:e.broadcast.config,viewMode:e.mode,viewDuration:r,url:o.Z.getPageUrl(!0),title:e.broadcast.name,videoType:e.broadcast.type,videoTimeStamp:u()}),E.Z.sendAnalyticsEvent(s,{channelId:e.broadcast.channelId,broadcastId:e.broadcast.id,viewMode:e.mode,viewDuration:r,title:e.broadcast.name,videoType:e.broadcast.type,videoTimeStamp:u()})}function g(){var n=t?a.totalPlayTime+((new Date).getTime()-t)/1e3:a.totalPlayTime;p.Z.logEvent(p.Z.GIS_EVENTS.CTA_AUTOPLAY_FULLSCREEN,{channelId:e.broadcast.channelId,broadcastId:e.broadcast.id,channelConfig:e.broadcast.config,viewMode:e.mode,viewDuration:n,url:o.Z.getPageUrl(!0),title:e.broadcast.name,videoType:e.broadcast.type,videoTimeStamp:u()}),E.Z.sendAnalyticsEvent(E.Z.ANALYTICS_EVENTS.CTA_AUTOPLAY_FULLSCREEN,{channelId:e.broadcast.channelId,broadcastId:e.broadcast.id,viewMode:e.mode,viewDuration:n,title:e.broadcast.name,videoType:e.broadcast.type,videoTimeStamp:u()}),d(),e.onVideoPlayerClicked()}function m(e){c||(c=!0,"touchstart"===e.type?a.subviews.videoContainer.removeEventListener("click",m):"click"===e.type&&a.subviews.videoContainer.removeEventListener("touchstart",m),g())}function I(){a.subviews.pauseOverlay.style.display="flex",a.subviews.pauseBtn.onclick=g,"maximized"===e.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"!==e.mode&&"minimized"!==e.mode&&(e.mode="maximized"),a.view=f.Z.processView(A.Z.getViews().dockedPlayerView,{ctaMaximised:"maximized"===e.mode,ctaMinimised:"maximized"!==e.mode});var l="";return"maximized"===e.mode?(l="max",a.subviews.fullScreenBtn=a.view.querySelector("#gis-cta-autoplay-fs-btn")):(l="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-"+l),a.subviews.video=a.view.querySelector("#gis-autoplay-video-"+l),a.subviews.title=a.view.querySelector("#gis-cta-video-title-"+l),a.subviews.muteBtn=a.view.querySelector("#gis-cta-video-mute-"+l),a.subviews.autoPlayDismissBtn=a.view.querySelector("#gis-cta-autoplay-btn-"+l),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"===e.mode&&(a.subviews.ctaContainer.style.backgroundColor=a.CTA_AUTO_PLAY_MIN_BACKGROUND_COLOR),"maximized"===e.mode&&(a.subviews.title.style.position="absolute",a.subviews.title.style.fontSize="16px"),"minimized"===e.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"===e.mode?"78%":"100%",a.subviews.title.style.padding="maximized"===e.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"===e.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=e.broadcast&&e.broadcast.name,a.subviews.muteBtn.style.color="white",a.subviews.muteBtn.style.position="maximized"===e.mode?"absolute":"relative",a.subviews.muteBtn.style.right="maximized"===e.mode?"18px":"0px",a.subviews.muteBtn.style.width="maximized"===e.mode?"16px":"30px",a.subviews.muteBtn.style.height="maximized"===e.mode?"16px":"100%",a.subviews.muteBtn.style.top="maximized"===e.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"===e.mode?"contain":"15px"),a.subviews.muteBtn.onclick=C,function(){if(a.subviews.fullScreenBtn){if("call"===e.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=g}}(),"maximized"===e.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"===e.type?a.subviews.autoPlayDismissBtn.onclick=function(){"maximized"===e.mode?_(!0):d(!0)}:(a.subviews.autoPlayDismissBtn.querySelector("svg path").style.display="none",a.subviews.autoPlayDismissBtn.querySelector("svg polygon").style.display="block",a.subviews.autoPlayDismissBtn.onclick=d.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(){d(!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"===e.mode?"contain":"15px"):a.subviews.muteBtn.style.background=f.Z.getImageUrl("volume.png")+" no-repeat center center/ "+("maximized"===e.mode?"contain":"15px"),t=(new Date).getTime(),p.Z.logEvent(p.Z.GIS_EVENTS.CTA_AUTOPLAY_AUTOPLAY,{channelId:e.broadcast.channelId,broadcastId:e.broadcast.id,channelConfig:e.broadcast.config,viewMode:e.mode,url:o.Z.getPageUrl(!0),title:e.broadcast.name,videoType:e.broadcast.type,videoTimeStamp:u()}),E.Z.sendAnalyticsEvent(E.Z.ANALYTICS_EVENTS.CTA_AUTOPLAY_AUTOPLAY,{channelId:e.broadcast.channelId,broadcastId:e.broadcast.id,viewMode:e.mode,title:e.broadcast.name,videoType:e.broadcast.type,videoTimeStamp:u()}),"replay"===e.type||"replay_engagement"===e.type){var s=i.getPlayer(),l=e.broadcast.config.ctaAutoPlay.duration;n=setInterval((function(){try{l=parseInt(l),(Number.isNaN(l)||l<0)&&(l=30),parseInt(u())>=l&&(s.pause(),"replay"===e.type?(I(),a.subviews.pauseBtn.onclick=function(){p.Z.logEvent(p.Z.GIS_EVENTS.CTA_AUTOPLAY_KEEP_WATCHING_CLICKED,{channelId:e.broadcast.channelId,broadcastId:e.broadcast.id,channelConfig:e.broadcast.config,viewMode:e.mode,url:o.Z.getPageUrl(!0),title:e.broadcast.name,videoType:e.broadcast.type,videoTimeStamp:u()}),E.Z.sendAnalyticsEvent(E.Z.ANALYTICS_EVENTS.CTA_AUTOPLAY_KEEP_WATCHING_CLICKED,{channelId:e.broadcast.channelId,broadcastId:e.broadcast.id,viewMode:e.mode,title:e.broadcast.name,videoType:e.broadcast.type,videoTimeStamp:u()}),g()},"maximized"===e.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=A.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=A.Z.getLabels().ctaAutoPlay_minimizedPauseLabel),p.Z.logEvent(p.Z.GIS_EVENTS.CTA_AUTOPLAY_KEEP_WATCHING_SHOWN,{channelId:e.broadcast.channelId,broadcastId:e.broadcast.id,channelConfig:e.broadcast.config,viewMode:e.mode,url:o.Z.getPageUrl(!0),title:e.broadcast.name,videoType:e.broadcast.type,videoTimeStamp:u()}),E.Z.sendAnalyticsEvent(E.Z.ANALYTICS_EVENTS.CTA_AUTOPLAY_KEEP_WATCHING_SHOWN,{channelId:e.broadcast.channelId,broadcastId:e.broadcast.id,viewMode:e.mode,title:e.broadcast.name,videoType:e.broadcast.type,videoTimeStamp:u()}),r=!0):d(!1),clearInterval(n),a.subviews.video.src="")}catch(e){clearInterval(n),v.Z.error(a.LOGTAG,"Error occurred on video-player interval.",e)}}),1e3)}e.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:e.broadcast.channelId,broadcastId:e.broadcast.id,channelConfig:{ctaAutoPlay:e.broadcast.config},viewMode:e.mode,viewDuration:a.totalPlayTime,url:o.Z.getPageUrl(!0),title:e.broadcast.name,videoType:e.broadcast.type,videoTimeStamp:u()}),"call"===e.type||"replay_engagement"===e.type)d();else{if(I(),a.subviews.pauseBtnImage.style.background=f.Z.getImageUrl("replay-icon.svg")+" center center / contain no-repeat ","maximized"===e.mode&&(a.subviews.pauseBtn.style.width="20%",a.subviews.pauseBtnImage.style.width="100%",a.subviews.pauseBtnLabel.style.display="none"),"minimized"===e.mode)return;_()}},trackFile:e.broadcast&&e.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",m,!0),a.subviews.videoContainer.addEventListener("click",m,!0),a.subviews.videoContainer.style.width="maximized"===e.mode?"100%":110.22222222222221.toFixed()+"px",function(){if(T.Z.isMobileDevice()){a.subviews.video.style.width="100%",a.subviews.video.style.height="100%";var t=window.screen.width;T.Z.isIos()||(t=0===window.orientation?window.screen.width:window.screen.height);var n=9/16*t+"px";a.view.style.height="maximized"===e.mode?n:"62px",a.view.style.width=t+"px",a.subviews.muteBtn.style.top="maximized"===e.mode?"40px":"0px","minimized"===e.mode&&(a.subviews.title.style.padding="0px 10px");var i=((t-180.22222222222223)/8.23).toFixed();e.broadcast&&e.broadcast.name.length>i&&(e.broadcast.name=e.broadcast.name.substring(0,i).trim()+"...")}else a.view.style.position="fixed",a.view.style.width="370px",a.view.style.height="maximized"===e.mode?"210px":"62px",a.view.style.bottom="0px",a.view.style["left"===e.position?"left":"right"]="0px",a.view.style["borderTop"+("left"===e.position?"Right":"Left")+"Radius"]="5px",a.view.style.overflow="hidden",a.subviews.video.style.width="maximized"===e.mode?"370px":110.22222222222221.toFixed()+"px",a.subviews.video.style.height="maximized"===e.mode?"210px":"62px",e.broadcast&&e.broadcast.name.length>25&&(e.broadcast.name=e.broadcast.name.substring(0,25).trim()+"...")}(),function(){var t=e.broadcast&&e.broadcast.urls[0]||"";if(t){if(e.broadcast.isAutoPlayable){var n=o.Z.getFileNameFromUrl(t);t=t.replace(n,n+"_autoplay")}a.subviews.video.src=o.Z.addParamToUrl(t,"v=1"),"maximized"===e.mode&&i.showCaptions()}}(),t=null,a.totalPlayTime=0,e.mode,"maximized"===e.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,d.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=g),a.view},show:function(){p.Z.logEvent(p.Z.GIS_EVENTS.CTA_AUTOPLAY_SHOWN,{channelId:e.broadcast.channelId,broadcastId:e.broadcast.id,viewMode:e.mode,url:o.Z.getPageUrl(!0),title:e.broadcast.name,videoType:e.broadcast.type,channelConfig:e.broadcast.config}),E.Z.sendAnalyticsEvent(E.Z.ANALYTICS_EVENTS.CTA_AUTOPLAY_SHOWN,{channelId:e.broadcast.channelId,broadcastId:e.broadcast.id,viewMode:e.mode,title:e.broadcast.name,videoType:e.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){v.Z.warn(a.LOGTAG,"Failed to autoplay video for the docked-player.",e)})),l=!0},hide:d,isPlayerVisible:function(){return l}}}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"),z(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){z(e,"maximized"),S.Z.setItem(S.Z.storageKeys.ONE_TO_ONE_ENGAGEMENT,o.Z.getTimeWithOutMilliSeconds())}(e)}function z(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 j={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(e){try{if(p.Z.logEvent(p.Z.GIS_EVENTS.IS_CLERK_AVAILABLE_REQUEST_RECEIVED,{isClerkAvailable:!0}),E.Z.sendAnalyticsEvent(E.Z.ANALYTICS_EVENTS.IS_CLERK_AVAILABLE_REQUEST_RECEIVED,{isClerkAvailable:!0}),!o.Z.isHttpsPageRedirected()){if(r.ZP.setOneToOneChecked(),"function"==typeof J&&J(),A.Z.getApiEnabled()&&!r.ZP.getAPIStandardJourney())return;r.ZP.getClerkAvailability()||(r.ZP.setClerkAvailability(!0),ce())}}catch(e){v.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}),E.Z.sendAnalyticsEvent(E.Z.ANALYTICS_EVENTS.IS_CLERK_AVAILABLE_REQUEST_RECEIVED,{isClerkAvailable:!1}),r.ZP.setOneToOneChecked(),"function"==typeof X&&X(),A.Z.getApiEnabled()&&!r.ZP.getAPIStandardJourney())return;r.ZP.setClerkAvailability(!1),ce()}catch(e){v.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 v.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),A.Z.getApiEnabled()&&!r.ZP.getAPIStandardJourney())return;Ue.updateCTA()}catch(e){v.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}})):A.Z.getApiEnabled()&&!r.ZP.getAPIStandardJourney()||Ue.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){if("function"==typeof e&&(J=e),w.Z.checkSystemSupported()){t||(t=r.ZP.getRoutingKey()),a.Z.isClerkAvailable("clerkIsAvailable","",t);var n=A.Z.getSystemConfig(),i=n&&n.clerkAvailabilityReqDelay&&!isNaN(n.clerkAvailabilityReqDelay)?n.clerkAvailabilityReqDelay:0;p.Z.logEvent(p.Z.GIS_EVENTS.IS_CLERK_AVAILABLE_REQUEST_SENT,{delay:i})}},checkClerkAvailability:function(e,t,n,i){if(w.Z.checkGisServiceEnabled())if(!A.Z.getApiEnabled()||w.Z.checkSystemSupported()){"function"==typeof e&&(J=e),"function"==typeof t&&(X=t),n||(n=r.ZP.getRoutingKey()),i?a.Z.isClerkAvailable(e,t,n):a.Z.isClerkAvailable("clerkIsAvailable","clerkIsNotAvailable",n);var o=A.Z.getSystemConfig(),s=o&&o.clerkAvailabilityReqDelay&&!isNaN(o.clerkAvailabilityReqDelay)?o.clerkAvailabilityReqDelay:0;p.Z.logEvent(p.Z.GIS_EVENTS.IS_CLERK_AVAILABLE_REQUEST_SENT,{delay:s})}else console.info("GIS: System not supported")},checkBroadcastAvailability:function(e){return w.Z.checkGisServiceEnabled()?A.Z.getSystemConfig()?A.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){E.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):!1===t?e(new le,!1):te.Z.initializePluginInstallationProcess()},isPluginInstalled:re,installPlugin:function(){te.Z.initializePluginInstallationProcess()}};var ue,_e=0,Ce=1,ge=2,Ae=3,Ee=4,pe=A.Z.getUiConfig(),Te=A.Z.getSystemConfig(),Se=pe.ctaType||"roundel",ve=!1,me=_e,fe=!1,Ie=null,Le=null,be=pe.ctaPosition?pe.ctaPosition:"right";function ye(){if(!(Te&&Te.noOneAvailableBlock&&Te.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=Te.oneToOneEngagement.reshowDuration)&&Te.oneToOneEngagement&&Te.oneToOneEngagement.enabled&&(n=function(e){var t=Te.oneToOneEngagement,n=r.ZP.getOneToOneAutoPlay();return t.src.serviceIntro&&n&&n.config.ctaAutoPlay.enabled&&(!De(n)||Pe(n))?n:t.src.replay&&e?(e.autoPlayType="replay_engagement",e):null}(t),!j.isAutoPlaySetup()&&n&&j.setupAutoplay(n,be,{playerInitialize:function(){ue.hide()},playerClicked:function(){"replay_engagement"==n.autoPlayType?e.Z.route(s.Z.ROUTES.REPLAY,{replay:n}):"call"==n.autoPlayType&&(j.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)&&j.storeAutoPlayReshowTimestamp(n)}}))}function Re(t){ue.setMode("replay",t,Te.persistentCta,!1),Ne((function(){t.config.announcementChannel.enabled&&j.storeAutoPlayReshowTimestamp(t),e.Z.route(s.Z.ROUTES.REPLAY,{replay:t})})),t.config.ctaAutoPlay.enabled&&(j.isAutoPlaySetup()||j.setupAutoplay(t,be,{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&&j.storeAutoPlayReshowTimestamp(t)}}))}function De(e){var t=S.Z.getItem(S.Z.storageKeys.VIDEO_VIEWED);return t&&t[e.id]}function Pe(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"===Se?N:B;const Ue={init:function(){window.addEventListener("gisUIClosed",(function(e){r.ZP.setUIActive(!1),!m.Z.isPollingTimeExpiredForEvent(m.Z.BASE_EVENTS.CLERK_AVAILABILITY_POLLING)&&Te.persistentCta&&(m.Z.subscribe(m.Z.BASE_EVENTS.CLERK_AVAILABILITY_POLLING,de.clerkIsAvailable,de.clerkIsNotAvailable),m.Z.startPollingEvent(m.Z.BASE_EVENTS.CLERK_AVAILABILITY_POLLING)),e.detail&&e.detail.action===s.Z.ACTIONS.BROADCAST_SCREEN_CLOSED?a.Z.getBroadcasts(null,"broadcastCallback"):ye()})),window.addEventListener("gisUIOpen",(function(e){r.ZP.setUIActive(!0),he(),j.destroyAutoPlay()}))},updateCTA:ye,showCTA:Oe,hideCTA:he,setOnClick:Ne};var Me,Be,ke=__webpack_require__(2579),Ve=__webpack_require__(3294),Ge="directCallCtrl",xe=v.Z,He=!1,Ke=!1;function We(){He||qe(s.Z.DIRECT_CALL_TYPE.DEPARTMENT_CALL),m.Z.stopPollingEvent(m.Z.BASE_EVENTS.AUTO_LAUNCH_CALL_POLLING),Ve.Z.subscribe(s.Z.EVENT_NAMES.ROUTER.READY_IS_LOADED,(e=>{e.route===s.Z.ROUTES.CALL&&ze()}))}function Fe(){He||qe(s.Z.DIRECT_CALL_TYPE.DEPARTMENT_CALL)}function Ye(){Me=o.Z.getUrlParams().giscall,o.Z.isEncodedUri(Me)&&(Me=decodeURIComponent(Me)),a.Z.isClerkAvailableByAlias(o.Z.utf8ToBase64(Me),"GISAPP.directCallCtrl.clerkIsAvailable","GISAPP.directCallCtrl.clerkIsNotAvailable",r.ZP.getRoutingKey())}function qe(t){He=!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 __e__(){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=A.Z.getLabels().directCallScreen_checkingClerk;t.innerHTML=`
${n}
`;var i=document.createElement("div");const a=A.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=We,gisCallbacks.autoLaunchClerkIsNotAvailable=Fe;const je={init:function(e){var t;e===s.Z.DIRECT_CALL_TYPE.CLERK_CALL?Ye():e===s.Z.DIRECT_CALL_TYPE.DEPARTMENT_CALL&&(t=o.Z.getUrlParams().giscallcategory,r.ZP.setAutoLaunchId(t),m.Z.registerPollingEvent(m.Z.BASE_EVENTS.AUTO_LAUNCH_CALL_POLLING,{poll:a.Z.checkAutoLaunchClerkIsAvailable,pollArguments:[t]}),m.Z.subscribe(m.Z.BASE_EVENTS.AUTO_LAUNCH_CALL_POLLING,We,Fe),m.Z.startPollingEvent(m.Z.BASE_EVENTS.AUTO_LAUNCH_CALL_POLLING)),Ve.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(Be)})),__e__(),Ke=!0)}))},clerkIsNotAvailable:function(t){try{var n="";if(t&&(n=t.code),-2==n)return clearTimeout(Be),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(Be);"true"===A.Z.isAutoStartDirectCallEnabled()?He||qe(s.Z.DIRECT_CALL_TYPE.CLERK_CALL):(He||qe(s.Z.DIRECT_CALL_TYPE.CLERK_CALL),Be=setTimeout(Ye,3e3)),__e__()}catch(e){xe.error(Ge,"Exception while processing directCall clerkIsNotAvailable Response.",e)}},clerkIsAvailable:function(){He||qe(s.Z.DIRECT_CALL_TYPE.CLERK_CALL);try{"true"!==A.Z.isAutoStartDirectCallEnabled()||o.Z.isHttpsPageRedirected()?(Ke?ze():Ve.Z.subscribe(s.Z.EVENT_NAMES.ROUTER.READY_IS_LOADED,(e=>{e.route===s.Z.ROUTES.CALL&&ze()})),Be=setTimeout(Ye,3e3)):ne.Z.initiateCallProcedure()}catch(e){xe.error(Ge,"Exception on directCall server callback, clerkIsAvailable.",e)}},autoLaunchClerkIsAvailable:We,autoLaunchClerkIsNotAvailable:Fe};var Je,Xe,Qe,et=__webpack_require__(389),tt=__webpack_require__(5887),nt=__webpack_require__(8204),it=__webpack_require__(9656),at=__webpack_require__(2946),ot={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 st(){return w.Z.checkSystemSupported()}function rt(e,t){Je=e,de.checkClerkAvailable(mt,t)}function lt(e,t,n){Je=e,Xe=t,de.checkClerkAvailability(mt,ft,n)}function ct(e,t){Qe=e,de.startCall(It,t)}function dt(e){return"function"!=typeof e?{status:-1,message:"invalid parameter: callback is not a function"}:de.checkBroadcastAvailability(e)}function ut(e){return de.playBroadcast(e)}function _t(){return{version:"1.0.8"}}function Ct(e,t,n){var i=at.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 gt(e){"function"==typeof e?de.registerAnalyticsEventCallback(e):v.Z.error("Api","Failed to register analytics event listener. Not a function")}function At(e,t){de.detectDevices(e,t)}function Et(){return de.isPluginInstalled()}function pt(){de.installPlugin()}function Tt(e,t){if(!e||!t||"string"!=typeof e||"string"!=typeof t)return v.Z.error("Api","API: Couldn't setup an AB Test. Invalid Parameters."),{status:-1,message:"invalid parameters"};r.ZP.setABTestId(e),r.ZP.setABTestGroup(t),E.Z.setCategory("gis-"+e+"-"+t)}function St(){r.ZP.setAPIStandardJourney(!0)}function vt(e,t){if(!ot.hasOwnProperty(e))return{status:-1,message:"invalid event"};p.Z.logEvent(e,t),E.Z.sendAnalyticsEvent(e)}function mt(){"function"==typeof Je&&Je()}function ft(){"function"==typeof Xe&&Xe()}function It(){"function"==typeof Qe&&Qe()}var Lt={};function bt(){console.error("GIS API not ready")}Lt.Events=ot,Lt.checkSystemSupported=st,Lt.checkClerkAvailable=rt,Lt.checkClerkAvailability=lt,Lt.startCall=ct,Lt.getVersionInfo=_t,Lt.submitContactDetails=Ct,Lt.registerAnalyticsEventListener=gt,Lt.checkMicrophone=At,Lt.isPluginInstalled=Et,Lt.installPlugin=pt,Lt.checkBroadcastAvailability=dt,Lt.playBroadcast=ut,Lt.setupABTest=Tt,Lt.enableStandardJourney=St,Lt.logEvent=vt,Lt.GisApi1_0=Lt,window.gisApi={},window.gisApi.Events=bt,window.gisApi.checkSystemSupported=bt,window.gisApi.checkClerkAvailable=bt,window.gisApi.checkClerkAvailability=bt,window.gisApi.startCall=bt,window.gisApi.getVersionInfo=bt,window.gisApi.submitContactDetails=bt,window.gisApi.registerAnalyticsEventListener=bt,window.gisApi.checkMicrophone=bt,window.gisApi.isPluginInstalled=bt,window.gisApi.installPlugin=bt,window.gisApi.checkBroadcastAvailability=bt,window.gisApi.playBroadcast=bt,window.gisApi.setupABTest=bt,window.gisApi.enableStandardJourney=bt,window.gisApi.logEvent=bt,window.EmplifiLivePageApi.getEventList=bt,window.EmplifiLivePageApi.showEvent=bt;const yt={Events:ot,checkSystemSupported:st,checkClerkAvailable:rt,checkClerkAvailability:lt,startCall:ct,getVersionInfo:_t,submitContactDetails:Ct,registerAnalyticsEventListener:gt,checkMicrophone:At,isPluginInstalled:Et,installPlugin:pt,checkBroadcastAvailability:dt,playBroadcast:ut,setupABTest:Tt,enableStandardJourney:St,logEvent:vt,GisApi1_0:Lt};var Ot=__webpack_require__(1879),ht={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"]};ht.systemConfig=A.Z.getSystemConfig(),ht.customTags=ht.systemConfig.customMetadataTags,ht.parseMetadata=function(){try{ht.metadata={};var e=document.querySelectorAll("meta");ht.metadata["Device Type"]=r.ZP.getDeviceType();for(var t=0;t-1?ht.ogTags.forEach((function(e){e===i&&n.getAttribute("content")&&(ht.metadata[i.substring(3,i.length)]=n.getAttribute("content"))})):i.indexOf("twitter:")>-1&&ht.twitterTags.forEach((function(e){e===i&&!ht.metadata[i]&&n.getAttribute("content")&&(ht.metadata[i.substring(8,i.length)]=n.getAttribute("content"))})))}ht.metadata.title||(ht.metadata.title=document.title);var a=ht.metadata["price:amount"];if(a){var s=ht.metadata["price:currency"];s&&(a+=" "+s,delete ht.metadata["price:currency"]),ht.metadata.price=a,delete ht.metadata["price:amount"]}ht.metadata["image:url"]&&(ht.metadata.image=ht.metadata["image:url"],delete ht.metadata["image:url"]);var l=o.Z.getLocaleFromHtmlTag()||r.ZP.getLocale();l&&(ht.metadata.locale=l),r.ZP.setPageMetadata(ht.metadata)}catch(e){v.Z.error(ht.LOGTAG,"Error parsing metadata from page",e)}},R.Z.override(ht.LOGTAG,ht);const Nt={parseMetadata:ht.parseMetadata};var Zt,wt=!1;const Rt={init:function(){Zt=o.Z.getUrlParams().gismeeting,o.Z.isEncodedUri(Zt)&&(Zt=decodeURIComponent(Zt)),a.Z.getMeetingStatus(Zt,"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),wt||function(t){wt||(wt=!0),e.Z.route(s.Z.ROUTES.CALL,{call:{routingKey:null,type:s.Z.CALL_TYPES.DIRECT,isMeeting:!0,data:t}})}(t)):"CANCELLED"===n?wt||(wt||(wt=!0),e.Z.route(s.Z.ROUTES.CALL,{call:{routingKey:null,type:s.Z.CALL_TYPES.DIRECT,isCanceled:!0}})):"MISSED"===n?wt||(wt||(wt=!0),e.Z.route(s.Z.ROUTES.CALL,{call:{routingKey:null,type:s.Z.CALL_TYPES.DIRECT,isMissed:!0}})):"ERROR"===n?wt||(wt||(wt=!0),e.Z.route(s.Z.ROUTES.CALL,{call:{routingKey:null,type:s.Z.CALL_TYPES.DIRECT,isMeetingError:!0}})):"ENDED"===n&&(wt||(wt||(wt=!0),e.Z.route(s.Z.ROUTES.CALL,{call:{routingKey:null,type:s.Z.CALL_TYPES.DIRECT,isMeetingEnded:!0}})))}}};var Dt=__webpack_require__(6229),Pt=__webpack_require__(1496),Ut=__webpack_require__(2790),Mt=__webpack_require__(2703),Bt=__webpack_require__(7697),kt=__webpack_require__(8110),Vt=!1,Gt="data-gis-live-events-template",xt={},Ht={},Kt="livePageWorker";let Wt=!1,Ft=null;function Yt(e){if(!(Jt()&&e&&e.pageUuid&&(e.upcomingEvents&&0!==e.upcomingEvents.length||e.pastEvents&&0!==e.pastEvents.length||e.featuredEvent&&0!==e.featuredEvent.length)))return console.error("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;xt[e.pageUuid]=e,jt(e.pageUuid)}function qt(e){v.Z.error(Kt,"Error while fetching live page events list",e)}var __t__=function(e,t,n){var i;return e&&t&&n?Jt()?xt[e]?t.indexOf("gisCallbacks")>-1?Dt.Z.getWindow().gisCallbacks[t.replace("gisCallbacks.","")].call(null,xt[e]):Dt.Z.getWindow()[t].call(null,xt[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."},console.error(i),i):(i={error:"Please provide appropriate parameters to this API call"},console.error(i),i)},zt=function(e){return e?document.querySelectorAll("div["+Gt+"='"+e+"']"):document.querySelectorAll("div["+Gt+"]")},jt=function(e){if(Jt()&&e&&xt[e])if(Ft){if(!Ht[e]){Ht[e]={};var t=new Ft({events:xt[e]});Ht[e].instance=t,Ht[e].view=t.render()}zt(e).forEach((function(t){t.appendChild(Ht[e].view)})),p.Z.logEvent(p.Z.GIS_EVENTS.LIVE_PAGE_INITIATED,{livePageUUID:e})}else!async function(e){if(!Wt)try{const t=await __webpack_require__.e(513).then(__webpack_require__.bind(__webpack_require__,9513));Ft=t.default,Wt=!0,e()}catch(e){v.Z.error(Kt,"Error loading live page template",e)}}(jt.bind(null,e))};function Jt(){return A.Z.getSystemConfig().liveEventsPages&&A.Z.getSystemConfig().liveEventsPages.isEnabled}var Xt=function(e){if(!e)return!1;a.Z.getBroadcastsEvent(o.Z.utf8ToBase64(e),null,"broadcastCallback")};const Qt={init:function(){var e;!Vt&&Jt()&&(Vt=!0,Dt.Z.getWindow().EmplifiLivePageApi.getEventList=__t__,Dt.Z.getWindow().gisCallbacks.liveEventsListSuccessCallback=Yt,Dt.Z.getWindow().gisCallbacks.liveEventsListErrorCallback=qt,Dt.Z.getWindow().EmplifiLivePageApi.showEvent=Xt,"function"==typeof Dt.Z.getWindow().onEmplifiLivePageApiReady&&Dt.Z.getWindow().onEmplifiLivePageApiReady.call(),(e=zt())&&e.forEach((function(e){var t=e.dataset.gisLiveEventsTemplate;t&&(xt[t]?Yt(xt[t]):__t__(t,"gisCallbacks.liveEventsListSuccessCallback","gisCallbacks.liveEventsListErrorCallback"))})),Ve.Z.subscribe(s.Z.EVENT_NAMES.LIVE_EVENT_REPLAY_TRIGGERED,Xt))}};var en=__webpack_require__(7274),tn={LOGTAG:"initCtrl",OPENTOK_SCRIPT_SRC:"https://static.opentok.com/v2.27.3/js/opentok.min.js"};tn.stateService=r.ZP,tn.onGisLoadFunctions={},tn.dependencyInitializationRetries=0,tn.serviceOffered=!0,tn.initInfoReceived=!1,tn.cssReceived=!1,tn.otReceived=!1,tn.otSuccessCalled=!1,tn.userMediaChecked=!1,tn.isFeatureSupportChecked=!1,tn.isTestingPhase=!1,tn.LOGGLY_SCRIPT_SRC=A.Z.getGisStaticDomain()+"/js/lib/loggly.tracker-2.1.min.js",tn.shouldLoadLoggly=()=>!0,tn.init=function(){try{r.ZP.setCurrentPhase(r.ZP.phase.SCRIPT_INIT),v.Z.init(),Ut.Z.getCookie(S.Z.storageKeys.CHAT_CALL_USER_UUID)&&tn.getUserConsent()===s.Z.COOKIES_PERMISSIONS.REJECTED&&Ut.Z.deleteCookie(S.Z.storageKeys.CHAT_CALL_USER_UUID),tn._setUserUUID();var e=o.Z.getUrlParams().pageUUID;e?r.ZP.setPageUUID(e):r.ZP.setPageUUID(o.Z.getRandomAlphaNumKey()),p.Z.setupEventListeners(),gisCallbacks.initInfo=tn.initInfoCallback,a.Z.getInitInfo("gisCallbacks.initInfo",(function(){v.Z.error(tn.LOGTAG,"Failed to retrieve init info")})),A.Z.getSystemConfig().delayOpenTokLoad||tn._loadOT(),(A.Z.getSystemConfig().isLogglyDependentOnCustomCriteria&&tn.shouldLoadLoggly()||!A.Z.getSystemConfig().isLogglyDependentOnCustomCriteria)&&a.Z.loadScript(tn.LOGGLY_SCRIPT_SRC,(function(){r.ZP.setLogglyLoaded(!0),v.Z.initializeLoggly(),v.Z.debug(tn.LOGTAG,"Loggly loaded")}),(function(e){p.Z.logEvent(p.Z.GIS_EVENTS.SCRIPT_INIT_FAILED),v.Z.error(tn.LOGTAG,"Failed to load Loggly",e)})),a.Z.loadCss((function(){tn.cssReceived=!0,v.Z.debug(tn.LOGTAG,"CSS loaded"),tn.initGIS()}),(function(e){p.Z.logEvent(p.Z.GIS_EVENTS.SCRIPT_INIT_FAILED),v.Z.error(tn.LOGTAG,"Failed to load Css",e)}))}catch(e){p.Z.logEvent(p.Z.GIS_EVENTS.SCRIPT_INIT_FAILED),v.Z.error(tn.LOGTAG,"Exception at script init",e)}},tn.initInfoCallback=function(e){try{var t={text:navigator.userAgent,deviceType:null,deviceName:null,osName:T.Z.getDeviceOS(),osVersion:null,browserName:it.Z.getBrowser(),browserVersion:null},n=A.Z.getSystemConfig();if(e&&0===e.statusCode?t=e.userAgent:v.Z.warn(tn.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=it.Z.getBrowser()),r.ZP.setProcessedUserAgent(t),!e)return void v.Z.error(tn.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),tn.isOptInAnalyticsAccepted()&&r.ZP.setIsDataCollectionDisabled(!1)):e.isDataCollectionDisabled&&r.ZP.setIsDataCollectionDisabled(e.isDataCollectionDisabled),tn.broadcastEnabled=n.broadcast.enabled,e.hasOwnProperty("isOffered")&&(tn.serviceOffered=e.isOffered);var a=tn.isServiceOffered();if(!(w.Z.checkGisServiceEnabled()&&a||(p.Z.logEvent(p.Z.GIS_EVENTS.SCRIPT_BROWSER_NOT_SUPPORTED,{url:Dt.Z.getWindow().location.href}),tn.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=broadcast.status):s.type="replay",r.ZP.setOneToOneAutoPlay(s)}v.Z.debug(tn.LOGTAG,"initInfo processed"),r.ZP.setTokBoxApiKey(e.apiKey),e.labels&&A.Z.updateLabels(e.labels),e.chatAuthKey&&e.chatAppId&&e.chatAppRegion&&A.Z.updateCometChatConfig(e.chatAuthKey,e.chatAppId,e.chatAppRegion),e.ctaMessage&&(r.ZP.setIsCtaCustomMessage(!0),Pt.Z.updateCTAMessage(e.ctaMessage)),e.activeTests&&(r.ZP.setActiveABTests(e.activeTests),Bt.Z.updateActiveMvtInLocalStorageIfChanged(e.activeTests)),tn.isTestingPhase=e.isTestingPhase,r.ZP.setStrictLogging(!1),tn.initInfoReceived=!0,A.Z.getSystemConfig().delayOpenTokLoad?(tn.checkUserMediaSupport(),it.Z.isWebpSupported(tn.checkBrowserFeatureSupport),1===en.Z.checkSystemRequirements()||r.ZP.isAndroidSocialBrowser()||p.Z.logEvent(p.Z.GIS_EVENTS.SCRIPT_BROWSER_NOT_SUPPORTED,{url:Dt.Z.getWindow().location.href}),GISAPP.clientStorageService.clearLocalStorageFromOpenTokProps()):tn.onOtLoaded(),tn.initGIS()}catch(e){v.Z.error(tn.LOGTAG,"Exception at script init after server data received",e)}},tn._setUserUUID=function(){if(o.Z.isRedirectedFromSocialWebview()){var e=o.Z.getSocialWebviewInfo();kt.Z.setUserUUID(tn.getUserConsent(),e[0]),r.ZP.setCallUserUUID(e[0]),r.ZP.setSocialRedirectionInfo(e[1])}else A.Z.getSystemConfig().privacySettings.isSalesAttributionDependentOnOptin?kt.Z.setUserUUID(tn.isOptInAnalyticsAccepted()?s.Z.COOKIES_PERMISSIONS.ACCEPTED:s.Z.COOKIES_PERMISSIONS.REJECTED):kt.Z.setUserUUID(tn.getUserConsent())},tn.isServiceOffered=function(){var e=Dt.Z.getWindow().location.href;return tn.serviceOffered?p.Z.logEvent(p.Z.GIS_EVENTS.SERVICE_OFFERED,{referrer:e}):(p.Z.logEvent(p.Z.GIS_EVENTS.SERVICE_NOT_OFFERED,{referrer:e}),E.Z.sendAnalyticsEvent(E.Z.ANALYTICS_EVENTS.SERVICE_NOT_OFFERED,{referrer:e})),tn.serviceOffered},tn._loadOT=function(){var e=function(){tn.otSuccessCalled=!0,it.Z.isWebpSupported(tn.checkBrowserFeatureSupport),tn.onOtLoaded(),tn.initGIS()};tn._otError=function(e){p.Z.logEvent(p.Z.GIS_EVENTS.SCRIPT_INIT_FAILED),v.Z.error(tn.LOGTAG,"Failed to load OT",e)},"function"==typeof window.require&&"MARRIOTT"!==A.Z.getRetailerKey()&&"SOFOLOGY"!==A.Z.getRetailerKey()?(0,window.require)([tn.OPENTOK_SCRIPT_SRC],e,tn._otError):a.Z.loadScript(tn.OPENTOK_SCRIPT_SRC,e,tn._otError)},tn.onOtLoaded=function(){tn.otSuccessCalled&&tn.initInfoReceived&&!tn.otReceived&&(Dt.Z.getWindow().OT?1===OT.checkSystemRequirements()||r.ZP.isAndroidSocialBrowser()?(tn.otReceived=!0,Dt.Z.getWindow().OT.on("exception",(function(e){v.Z.error(tn.LOGTAG,"OT Exception occurred.",e)})),v.Z.debug(tn.LOGTAG,"OT loaded"),S.Z.clearLocalStorageFromOpenTokProps(),tn.checkUserMediaSupport()):p.Z.logEvent(p.Z.GIS_EVENTS.SCRIPT_BROWSER_NOT_SUPPORTED,{url:Dt.Z.getWindow().location.href}):tn._otError({message:"OT is not present in the window object"}))},tn.checkUserMediaSupport=function(){te.Z.detectDevices((function(e){e?(v.Z.debug(tn.LOGTAG,"Error on OT device support.",e),w.Z.setUserMediaSupport(!1)):w.Z.setUserMediaSupport(!0),tn.userMediaChecked=!0,tn.initGIS()}))},tn.checkBrowserFeatureSupport=function(){tn.isFeatureSupportChecked=!0,tn.initGIS()},tn.initGIS=function(){try{if(!tn.isGisInitialized())return;f.Z.setupGISPanels(),v.Z.log(tn.LOGTAG,"GIS loaded."),tn.executeOnGisLoadFunctions(),tn.gisReady()}catch(e){v.Z.error(tn.LOGTAG,"Failed to initialize due to exception.",e)}},tn.isGisInitialized=function(){return!(tn.isTestingPhase&&2!=o.Z.getUrlParams().gis||!(tn.cssReceived&&tn.initInfoReceived&&tn.userMediaChecked&&tn.isFeatureSupportChecked&&(A.Z.getSystemConfig().delayOpenTokLoad||!A.Z.getSystemConfig().delayOpenTokLoad&&tn.otReceived)))},tn.gisReady=function(){try{e.Z.register(s.Z.ROUTES.BROADCAST,tt.Z),e.Z.register(s.Z.ROUTES.REPLAY,nt.Z),e.Z.register(s.Z.ROUTES.CALL,ne.Z),r.ZP.setCurrentPhase(r.ZP.phase.READY),window.dispatchEvent(new GisCustomEvent("gisReady")),A.Z.getApiEnabled()&&(window.gisApi=yt.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)}),Ot.Z.registerFunction((function(){p.Z.logEvent(p.Z.GIS_EVENTS.PAGE_NAVIGATE)})),Nt.parseMetadata(),p.Z.logEvent(p.Z.GIS_EVENTS.PAGE_METADATA,{metadata:r.ZP.getPageMetadata()}),m.Z.registerPollingEvent(m.Z.BASE_EVENTS.CLERK_AVAILABILITY_POLLING,{poll:de.checkClerkAvailability,pollArguments:[null,!0]}),m.Z.registerPollingEvent(m.Z.BASE_EVENTS.BROADCAST_POLLING,{poll:de.checkBroadcastAvailability,pollArguments:[]});var t=A.Z.getSystemConfig(),n=o.Z.isDirectCall(),i=o.Z.isDirectLinkBroadcast(),a=o.Z.isMeeting(),c=Mt.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&&Rt.init(),c&&ee.Z.isAddAPersonEnabled()&&l.init(),i&&tt.Z.startDirectLinkBroadcast(),A.Z.getApiEnabled()&&!r.ZP.getAPIStandardJourney()||(Ue.init(),n||i||!tn.serviceOffered?r.ZP.setOneToOneChecked():de.checkClerkAvailability("clerkIsAvailable","clerkIsNotAvailable"),tn.broadcastEnabled?t.broadcast.polling&&t.broadcast.polling.enabled?(m.Z.subscribe(m.Z.BASE_EVENTS.BROADCAST_POLLING,(function(){}),(function(){})),m.Z.startPollingEvent(m.Z.BASE_EVENTS.BROADCAST_POLLING)):de.checkBroadcastAvailability():r.ZP.setBroadcastChecked(),A.Z.getSystemConfig().persistentCta&&!m.Z.isPollingTimeExpiredForEvent(m.Z.BASE_EVENTS.CLERK_AVAILABILITY_POLLING)&&(m.Z.subscribe(m.Z.BASE_EVENTS.CLERK_AVAILABILITY_POLLING,de.clerkIsAvailable,de.clerkIsNotAvailable),m.Z.startPollingEvent(m.Z.BASE_EVENTS.CLERK_AVAILABILITY_POLLING))),Qt.init(),"function"==typeof window.onGisInitialized&&window.onGisInitialized(),document.addEventListener("gisUIClosed",(function(){Ve.Z.publish(s.Z.EVENT_NAMES.ROUTER.ROUTE_CLOSED)}))}catch(e){v.Z.error(tn.LOGTAG,"Exception when script ready.",e)}},tn.executeOnGisLoadFunctions=function(){for(var e in tn.onGisLoadFunctions)tn.onGisLoadFunctions[e]()},tn.isOptInAnalyticsAccepted=function(){return!1},tn.getUserConsent=function(){return kt.Z.isConsentProcessed()?kt.Z.getUserConsent():s.Z.COOKIES_PERMISSIONS.REJECTED},R.Z.override(tn.LOGTAG,tn);const nn={init:tn.init,isGisInitialized:tn.isGisInitialized};var an,on,sn=__webpack_require__(5671),rn=__webpack_require__(1056),ln=__webpack_require__(8437),cn=__webpack_require__(8268),dn=__webpack_require__(7120),un=__webpack_require__(4486),_n=__webpack_require__(4785),Cn=__webpack_require__(1291),gn=__webpack_require__(9333);gisCallbacks.clerkIsAvailable=function(){an()},gisCallbacks.clerkIsNotAvailable=function(){on()};const An={checkIsClerkAvailable:function(e,t,n){an=e,on=t,a.Z.isClerkAvailable("gisCallbacks.clerkIsAvailable","gisCallbacks.clerkIsNotAvailable",n)}};var En=__webpack_require__(7942),pn=__webpack_require__(4255),Tn=__webpack_require__(1875),Sn=__webpack_require__(4843),vn=__webpack_require__(3515),mn=__webpack_require__(3202),fn=__webpack_require__(8797),In=__webpack_require__(1477);i()})();var __webpack_export_target__=GISAPP="undefined"==typeof GISAPP?{}:GISAPP;for(var i in __webpack_exports__)__webpack_export_target__[i]=__webpack_exports__[i];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0})})(); try { GISAPP.initCtrl.init(); } catch (e) { console.error("Error in initCtrl.init()", e); }