"use strict";(self.webpackChunkwebpackcloud=self.webpackChunkwebpackcloud||[]).push([[867],{76370:(t,n,e)=>{e.r(n),e.d(n,{default:()=>l,getPopoverBody:()=>a,getSpanText:()=>c});e(21249),e(91038),e(78783),e(74916),e(13728),e(92222),e(82526),e(41817),e(41539),e(32165),e(66992),e(33948),e(47042),e(68309);function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(!t)return;if("string"==typeof t)return o(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return o(t,n)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var a=function(t,n){var e=i(n),r=$('<div class="d-flex flex-row-reverse">'),o=$('<ul class="workspace-notification">'),a=t.map((function(t){var n=$('<li class="workspace-notification__item">'),e=$('<span class="workspace-notification__item-prepend d-flex pr-2 align-items-center">'),r=$('<i class="las la-exclamation-triangle" style="color: var(--orange-q)">'),o=$('<span class="workspace-notification__item-text">').append(t);return n.append([e.append(r),o])}));return o.append(a),setTimeout((function(){KTUtil.scrollInit(o.get(0),{height:function(){var t;return Math.min(null!==(t=o.height())&&void 0!==t?t:50,300)}})})),r.append(e).append(o)},i=function(t){return $('<span class="mb-auto" style="cursor: pointer">').append('<i class="las la-times"></i>').on("click",(function(){return $(t).popover("hide")}))},c=function(t){return t.notifications.map((function(t){var n=Array.from(t.matchAll(/@(rgb\( *\d+ *, *\d+ *, *\d+ *\))/g)),e=n.length?t.substring(0,n[0].index):t,o=n.map((function(t,e){var r,o,a=n[e+1],i=t[0].length+(t.index||0)+1,c=a?a.index||0:null===(r=t.input)||void 0===r?void 0:r.length;return $("<span>").append((null===(o=t.input)||void 0===o?void 0:o.substring(i,c))||"").attr({style:"color: ".concat(t[1],";")})}));return[e].concat(r(o))}))};const l=function(t){var n=t.event,e=t.scope,r=n.currentTarget,o=c(e);$(r).data("bs.popover")||($(r).popover({content:a(o,r),title:"",placement:"bottom",trigger:"manual",sanitize:!1,html:!0}),setTimeout((function(){return $(r).popover("update")}))),$(r).popover("toggle")}}}]);