/*! For license information please see ws-autotours.js.LICENSE.txt */
"use strict";(self.webpackChunkmp_webgl=self.webpackChunkmp_webgl||[]).push([[8636],{65205:(t,e,n)=>{n.r(e),n.d(e,{default:()=>f});var o=n(57726),a=n.n(o),l=n(62772),c=n(39869),i=n(95541),_=n(73566),s=n(40104),m=n(9241),p=n(39145),d=n(48270),u=n(80855);var b=n(74848);const r=a().bind({"tooltip-announcement":"tooltip-announcement-ab9c5c92d37b5e0bcf7f","tooltip-announcement__badge":"tooltip-announcement__badge-b221d17948cfdbbdf16d","tooltip-announcement__tooltip":"tooltip-announcement__tooltip-fcbf1e2dae0a94aea35f","tooltip-announcement__title":"tooltip-announcement__title-d70619fad9f62188daf7","tooltip-announcement__title__text":"tooltip-announcement__title__text-c81607b6df5124175ce4","tooltip-announcement__title__icon":"tooltip-announcement__title__icon-a42abaac99d4ad070ec9","tooltip-announcement__close":"tooltip-announcement__close-a61f337eee8b3ecbebed","tooltip-announcement__body":"tooltip-announcement__body-e20936f054e79d510ee9","tooltip-announcement__body__text":"tooltip-announcement__body__text-a5faed9a587904ecff51"}),f=t=>{let{icon:e,target:n,announcement:o,titlePhraseKey:a,badgePhraseKey:f,messagePhraseKey:g,tooltipOptions:x={}}=t;const h=(0,c.Y)(),y=(0,i.H)(),j=(0,l.R)(),N={title:h.t(a),message:h.t(g)};f&&(N.badge=h.t(f));const k=(0,b.jsxs)("div",{className:r("tooltip-announcement"),children:[N.badge?(0,b.jsx)("span",{className:r("tooltip-announcement__badge"),children:N.badge}):null,(0,b.jsxs)("div",{className:r("tooltip-announcement__title"),children:[e?(0,b.jsx)(s.I,{name:e,size:m.l.SMALL,className:r("tooltip-announcement__title__icon")}):null,(0,b.jsx)("span",{title:N.title,className:r("tooltip-announcement__title__text"),children:N.title})]}),(0,b.jsx)(p.$,{icon:"close",onClick:()=>{j?.setToolAnnouncementState(o,_.zR.CLOSE)},size:d.M.SMALL,variant:d.A.TERTIARY,className:r("tooltip-announcement__close")}),(0,b.jsx)("div",{className:r("tooltip-announcement__body"),children:(0,b.jsx)("p",{className:r("tooltip-announcement__body__text"),children:N.message})})]});return(0,b.jsx)(u.m,{sticky:!0,size:"large",theme:"light",title:k,target:n,trigger:"static",placement:y?"top":"left",className:r("tooltip-announcement__tooltip"),...x})}}}]);