1"use strict";(self.webpackChunkwebpack=self.webpackChunkwebpack||[]).push([[5187],{45187:function(t,e,i){i.r(e),i.d(e,{default:function(){return h}});var s=i(71378),l=i(24820),n=i(49762),o=i.n(n),a=i(64198);class h extends l.H{constructor(t){super(t),this.COLLAPSED_CLASS="is-collapsed",this.SHOW_CLASS="m-tooltip-collapse__more--show",this.CONTENT__SELECTOR=".js-tooltip-content",this.ARROW__SELECTOR=".js-tooltip-arrow",this.MORE__SELECTOR=".js-tooltip-more",this.THEME_ATTRIBUTE="data-theme",this.POS_ATTRIBUTE="data-position",this.MAX_WIDTH_ATTRIBUTE="data-max-width",this.INTERACTIVE_ATTRIBUTE="data-interactive",this.MOBILE_ENABLE="data-tooltip-mobile",this.CLOSE_TOOLTIP_SELECTOR_CLASS=".js-close-tooltip",this.init()}init(){this.isMobileDevice(),this.winWidth=window.innerWidth;const t=this.element.getAttribute(this.POS_ATTRIBUTE),e=this.element.getAttribute(this.MAX_WIDTH_ATTRIBUTE),i=this.element.getAttribute(this.INTERACTIVE_ATTRIBUTE),l=this.element.querySelector(this.CONTENT__SELECTOR);if(this.applicableOnMobile=!!this.element.getAttribute(this.MOBILE_ENABLE),this.closeToolipSelector=this.element.querySelector(this.CLOSE_TOOLTIP_SELECTOR_CLASS),!l)return;let n={placement:t||(document.documentElement.clientWidth<510?"top":"left"),content:()=>this.element.querySelector(this.CONTENT__SELECTOR).innerHTML,theme:this.element.getAttribute(this.THEME_ATTRIBUTE),maxWidth:e||"200px",zIndex:11e3};this.element.getAttribute("tippy-trigger-on-disable")&&(n.onTrigger=t=>this.triggerOnDisable(t),n.onUntrigger=t=>t.enable()),this.closeToolipSelector&&(n.onShown=t=>this.closeTooltipOnInteraction(t));i&&(n.interactive=!0,n.animation="fade",n.onHidden=t=>t.destroy()),s.default.setDefaultProps({delay:[300,0],arrow:!0,allowHTML:!0,animation:"scale"}),this.tooltipInstance=(0,s.default)(this.element,n),this.toggleTooltip(),window.addEventListener("load",(()=>this.toggleTooltip())),this.initializeEvents()}setAccessibility(){"A"!=this.element.tagName&&"BUTTON"!=this.element.tagName&&(this.element.setAttribute("role","button"),null==this.element.getAttribute("tabindex")&&this.element.setAttribute("tabindex","0"))}initializeEvents(){window.addEventListener("resize",o()((()=>{this.winWidth!==window.innerWidth&&(this.isMobileDevice(),this.toggleTooltip(),this.winWidth=window.innerWidth)}),250))}isMobileDevice(){this.isMobile=(0,a.gF)(a.OA.desktop,!0)}toggleTriggerVisibility(t){if(!t)return;let e=this.element.querySelector(this.CONTENT__SELECTOR);this.isCollapsable=e.scrollHeight>e.clientHeight,t.classList.toggle(this.SHOW_CLASS,this.isCollapsable),t.toggleAttribute("aria-hidden",!this.isCollapsable),this.isCollapsable?("A"!=t.tagName&&"BUTTON"!=t.tagName&&t.setAttribute("role","button"),t.setAttribute("tabindex","0")):t.removeAttribute("tabindex"),this.element.removeAttribute("tabindex"),this.element.removeAttribute("role")}toggleMoreLabel(){let t=this.element.querySelector(this.MORE__SELECTOR);if(!t)return;let e=t.dataset.label,i=t.textContent;t.textContent=e,t.dataset.label=i}toggleTooltip(){if(this.isMobile&&!this.applicableOnMobile)return this.tooltipInstance.disable(),this.toggleTriggerVisibility(this.element.querySelector(this.MORE__SELECTOR)),!!this.hasListener||(this.hasListener=!0,void this.element.addEventListener("click",(t=>{t.currentTarget.classList.toggle(this.COLLAPSED_CLASS),this.toggleMoreLabel(),t.stopPropagation()})));this.setAccessibility(),this.element.classList.contains(this.COLLAPSED_CLASS)||this.element.classList.add(this.COLLAPSED_CLASS),this.tooltipInstance.enable()}triggerOnDisable(t){this.element.classList.contains("disabled")?t.enable():t.disable()}closeTooltipOnInteraction(t){t.popper.querySelector(this.CLOSE_TOOLTIP_SELECTOR_CLASS).addEventListener("click",(function(){t.destroy()}))}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.