(window.webpackJsonpConsumerUi=window.webpackJsonpConsumerUi||[]).push([[14],{673:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));n(11),n(75),n(13),n(68),n(38),n(39);var o=n(757),r=n(388),i=n(176),l=n(23),a=n(8),c=n(98);function u(t){var e=t.dispatch,n=t.getState;return Object(o.default)(e),new Promise((function(t){var o=document.getElementById("di-modal");if(o){var u,s,d,f,b,g=document.querySelector(l.ggAppChatSelector),p=document.getElementById(l.ggToolbarId);new MutationObserver((function(){if(u="visible"===window.getComputedStyle(o).visibility,!s&&u){g&&(f=window.getComputedStyle(g).zIndex),p&&(b=window.getComputedStyle(p).zIndex);var t=Object(r.default)("0");d=t.globalStyles,e(Object(i.default)({globalStyles:t.globalStyles,styles:t.providerStyles}))}else if(s&&!u){g&&g.style.setProperty("z-index",f,"important"),p&&p.style.setProperty("z-index",b,"important");var l=Object(c.getGlobalProviderStyles)(n());l&&d&&e({type:a.default.SET_GLOBAL_STYLES,payload:l.replace(d,"")})}s=u})).observe(o,{attributes:!0})}var h=document.querySelector(".di-stacks #fullOverlay");if(h){var y,m,v,S,w,O=document.querySelector(l.ggAppChatSelector),I=document.getElementById(l.ggToolbarId);new MutationObserver((function(){if(y=h.classList.contains("open"),!m&&y){O&&(S=window.getComputedStyle(O).zIndex),I&&(w=window.getComputedStyle(I).zIndex);var t=Object(r.default)("0");v=t.globalStyles,e(Object(i.default)({globalStyles:t.globalStyles,styles:t.providerStyles}))}else if(m&&!y){O&&O.style.setProperty("z-index",S,"important"),I&&I.style.setProperty("z-index",w,"important");var o=Object(c.getGlobalProviderStyles)(n());o&&v&&e({type:a.default.SET_GLOBAL_STYLES,payload:o.replace(v,"")})}m=y})).observe(h,{attributes:!0,attributeFilter:["class"]})}var B=function(t){var e=!1;return t.forEach((function(t){!e&&t.clientHeight>0&&(e=!0)})),e},T=new MutationObserver((function(){if(window.DIDataLayer||window.di_application){var e=B(document.body.querySelectorAll(".mobile-tabs")),n=B(document.body.querySelectorAll(".di-stacks--bottom")),o=B(document.body.querySelectorAll(".di-action-bar"));if(!e&&!n&&!o)return;T.disconnect(),document.body.classList.add("guba--di");var r=50,i=130;(n||o)&&(r+=20,i-=31);var a="\n .guba--di .".concat(l.ggBtnSpecialsClassName,",\n .guba--di .").concat(l.ggToolbarClassName,",\n .guba--di ").concat(l.cboGarageSelector,",\n .guba--di .gg-popup.gg-db,\n .guba--di .gg-announcements.gg-is-bottom {\n bottom: ").concat(r,"px !important;\n }\n "),c={chatBottom:"".concat(r,"px"),shadowBottom:"-".concat(i,"px"),chatBottomMobile:"".concat(r,"px"),shadowBottomMobile:"-".concat(i,"px"),spotlightEngagementBottom:"".concat(r,"px !important"),zIndexMobile:"999"};t({globalStyles:a,styles:c})}}));T.observe(document.body,{childList:!0,subtree:!0}),setTimeout((function(){T.disconnect()}),5e3)}))}},755:function(t,e,n){"use strict";e.default=function(t){for(var e=0;et.length)&&(e=t.length);for(var n=0,o=new Array(e);n1&&void 0!==arguments[1])||arguments[1];return t&&(!e||t.clientHeight&&t.clientWidth)?{top:t.offsetTop,right:f(t),bottom:b(t),left:t.offsetLeft,height:t.clientHeight,width:t.clientWidth}:null},p=function(t){var e=i.toolbarAppsDefaultBottomPx.CHAT,n=function(){var t,e=r.default.box.chatBubbleSize;if(e.includes("px"))t=Object(a.default)(e);else if(e.includes("rem"))t=16*Object(a.default)(e);else{var n=r.default.type.fontSize.includes("em")?16:Object(a.default)(r.default.type.fontSize);t=Object(a.default)(e)*n}return t}();return null!=t&&t.top&&null!=t&&t.left?{top:t.top-(n+e),right:t.right-(e+d),bottom:t.bottom-e,left:t.left-(n+e+d),height:n,width:n}:{top:window.innerHeight-(n+e),right:window.innerWidth-(e+d),bottom:window.innerHeight-e,left:window.innerWidth-(n+e+d),height:n,width:n}},h=function(t,e,n){var o=u(function(t,e,n){return"horizontal"===t?e.width>n.width?[n,e]:[e,n]:e.height>n.height?[n,e]:[e,n]}(t,e,n),2),r=o[0],i=o[1],l=u("horizontal"===t?["left","right"]:["top","bottom"],2),a=l[0],c=l[1];return r[a]>=i[a]&&r[a]<=i[c]||r[c]>=i[a]&&r[c]<=i[c]},y=function(t,e){var n=!1;return t&&(n=h("horizontal",t,e)),n&&(n=h("vertical",t,e)),n},m=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return g(Object(c.default)(t),e)},v=function(){var t=m(o.cssSelectors.CHAT_BUBBLE,!1);return t&&function(t){for(var e=Object.values(t),n=0;n