/home/suroeste/public_html/wp-content/plugins/akeebabackupwp/app/media/js/solo
Edit: /home/suroeste/public_html/wp-content/plugins/akeebabackupwp/app/media/js/solo/tooltip.min.js.map (15163B)
{"version":3,"file":"tooltip.min.js","names":["akeeba","Tooltip","enableFor","el","clickToStick","_typeof","NodeList","prototype","isPrototypeOf","i","length","e","System","addEventListener","onMouseEnter","onMouseLeave","onClick","simpleTooltip","hasAttribute","content","getAttribute","position","addClass","elTooltip","document","createElement","className","innerHTML","appendChild","removeAttribute","target","uuid","Math","setAttribute","oldTooltip","getElementById","pos","posHorizontal","split","posVertical","tooltipWrapper","id","style","display","insertAdjacentHTML","tooltipInner","elTitle","elContent","body","positionAt","hideTooltip","elRemove","removeChild","parent","tooltip","left","top","parentCoords","getBoundingClientRect","dist","parseInt","offsetWidth","right","documentElement","clientWidth","bottom","offsetHeight","pageYOffset"],"sources":["tooltip.js"],"sourcesContent":["/**\n * @package solo\n * @copyright Copyright (c)2014-2024 Nicholas K. Dionysopoulos / Akeeba Ltd\n * @license GNU General Public License version 3, or later\n */\n\n// Object initialisation\nif (typeof akeeba == 'undefined')\n{\n\tvar akeeba = {};\n}\n\nif (typeof akeeba.Tooltip == 'undefined')\n{\n\takeeba.Tooltip = {};\n}\n\nakeeba.Tooltip.enableFor = function (el, clickToStick)\n{\n\tif ((typeof clickToStick == \"undefined\") || (clickToStick === null))\n\t{\n\t\tclickToStick = true;\n\t}\n\n\tif ((typeof el == 'object') && NodeList.prototype.isPrototypeOf(el))\n\t{\n\t\tfor (i = 0; i < el.length; i++)\n\t\t{\n\t\t\tvar e = el[i];\n\n\t\t\takeeba.Tooltip.enableFor(e, clickToStick);\n\t\t}\n\n\t\treturn;\n\t}\n\n\takeeba.System.addEventListener(el, 'mouseenter', akeeba.Tooltip.onMouseEnter);\n\takeeba.System.addEventListener(el, 'mouseleave', akeeba.Tooltip.onMouseLeave);\n\n\tif (clickToStick)\n\t{\n\t\takeeba.System.addEventListener(el, 'click', akeeba.Tooltip.onClick);\n\t}\n};\n\n/**\n * Converts the contents of the \"title\" attribute into a simple CSS tooltip.\n *\n * @param {HTMLElement} el The element which we're applying the tooltip for.\n */\nakeeba.Tooltip.simpleTooltip = function(el)\n{\n\tif (!el.hasAttribute('title'))\n\t{\n\t\treturn;\n\t}\n\n\tvar content = el.getAttribute('title');\n\tvar position = 'right';\n\n\tif (el.hasAttribute('data-akeeba-tooltip-position'))\n\t{\n\t\tposition = el.getAttribute('data-akeeba-tooltip-position');\n\t}\n\n\t// Mark the element as having a tooltip\n\takeeba.System.addClass(el, 'akeeba-hasTooltip');\n\n\t// Create the tooltip text div\n\tvar elTooltip = document.createElement('div');\n\telTooltip.className = 'akeeba-tooltip-text akeeba-tooltip-text-' + position;\n\telTooltip.innerHTML = content;\n\n\t// Append the tooltip to the target element\n\tel.appendChild(elTooltip);\n\n\t// Remove the title attribute from the target element\n\tel.removeAttribute('title');\n};\n\n/**\n * Handles the mouseenter event for a target element (mousing over it will render the tooltip). Basically, shows the\n * tooltip.\n *\n * @param {Event} e The event we're handling\n */\nakeeba.Tooltip.onMouseEnter = function (e)\n{\n\t// If there's no tooltip content quit\n\tif (!e.target.hasAttribute('data-content'))\n\t{\n\t\treturn;\n\t}\n\n\t// Get the tooltip UUID stored in the target element. If none exists then create one.\n\tvar uuid = '';\n\n\tif (!e.target.hasAttribute('data-tooltip-uuid'))\n\t{\n\t\tuuid = Math.uuid();\n\t\te.target.setAttribute('data-tooltip-uuid', uuid);\n\t}\n\telse\n\t{\n\t\tuuid = e.target.getAttribute('data-tooltip-uuid');\n\t}\n\n\t// Do I have an open tooltip?\n\tvar oldTooltip = document.getElementById('akeeba-tooltip-' + uuid);\n\n\tif (oldTooltip != null)\n\t{\n\t\treturn;\n\t}\n\n\t// Get the tooltip positioning\n\tvar pos = e.target.getAttribute('data-position') || \"center bottom\",\n\t\tposHorizontal = pos.split(\" \")[0],\n\t\tposVertical = pos.split(\" \")[1];\n\n\t// Create the outer tooltip wrapper element\n\tvar tooltipWrapper = document.createElement('div');\n\ttooltipWrapper.className = 'akeeba-popover';\n\ttooltipWrapper.id = 'akeeba-tooltip-' + uuid;\n\ttooltipWrapper.style.display = 'block';\n\n\t// Assign the position as a class to the tooltip wrapper (required by BS to render the arrow correctly)\n\ttooltipWrapper.className += ' ' + pos;\n\n\t// Add the pointed arrow to the tooltip\n\ttooltipWrapper.insertAdjacentHTML('afterbegin', '
');\n\n\t// Create the tooltip inner wrapper\n\tvar tooltipInner = document.createElement('div');\n\ttooltipInner.className = 'akeeba-popover-inner';\n\ttooltipWrapper.appendChild(tooltipInner);\n\n\t// If we have a tooltip title, render it\n\tif (e.target.hasAttribute('data-original-title'))\n\t{\n\t\tvar elTitle = document.createElement('h3');\n\t\telTitle.className = 'akeeba-popover-title';\n\t\telTitle.innerHTML = e.target.getAttribute('data-original-title');\n\t\ttooltipInner.appendChild(elTitle);\n\t}\n\n\t// Render the tooltip content\n\tvar elContent = document.createElement('div');\n\telContent.className = 'akeeba-popover-content';\n\telContent.innerHTML = e.target.getAttribute('data-content');\n\ttooltipInner.appendChild(elContent);\n\n\t// Append the tooltip to the HTML body\n\tdocument.body.appendChild(tooltipWrapper);\n\n\t// Position the tooltip relative to the target element\n\takeeba.Tooltip.positionAt(e.target, tooltipWrapper, posHorizontal, posVertical);\n};\n\n/**\n * Handles the mouseleave event for a target element (mousing out of it will close the tooltip). Basically, hides the\n * tooltip unless it's marked as 'do not hide'.\n *\n * @param {Event} e The event we're handling\n */\nakeeba.Tooltip.onMouseLeave = function (e)\n{\n\t// If this marked as \"no close\" do nothing\n\tif (e.target.hasAttribute('data-tooltip-noclose'))\n\t{\n\t\treturn;\n\t}\n\n\t// Close the tooltip\n\takeeba.Tooltip.hideTooltip(e.target);\n\n};\n\n/**\n * Handles the click event on a target element. Clicking on the target element while the tooltip is open will mark the\n * tooltip as \"no close\", i.e. mousing out of the target will do nothing. A second click will, however, reset this\n * behaviour and let the tooltip disappear.\n *\n * @param e\n */\nakeeba.Tooltip.onClick = function (e)\n{\n\t// If there is no tooltip UUID attached to the element we can do nothing\n\tif (!e.target.hasAttribute('data-tooltip-uuid'))\n\t{\n\t\treturn;\n\t}\n\n\t// If it's already marked as \"no close\" this is the second click. Therefore it's time to unset the \"no close\"\n\t// attribute.\n\tif (e.target.hasAttribute('data-tooltip-noclose'))\n\t{\n\t\te.target.removeAttribute('data-tooltip-noclose');\n\n\t\treturn;\n\t}\n\n\t// Is the tooltip actually open?\n\tvar uuid = e.target.getAttribute('data-tooltip-uuid');\n\tvar elRemove = document.getElementById('akeeba-tooltip-' + uuid);\n\n\tif (elRemove == null)\n\t{\n\t\treturn;\n\t}\n\n\t// This is the first click on the element. Mark the tooltip as \"no close\".\n\te.target.setAttribute('data-tooltip-noclose', 1);\n};\n\n/**\n * Hides the tooltip related to a target\n *\n * @param {HTMLElement} target The element which had triggered the display of the tooltip\n */\nakeeba.Tooltip.hideTooltip = function (target)\n{\n\t// If there is no tooltip UUID attached to the element we can do nothing\n\tif (!target.hasAttribute('data-tooltip-uuid'))\n\t{\n\t\treturn;\n\t}\n\n\t// Get the tooltip UUID\n\tvar uuid = target.getAttribute('data-tooltip-uuid');\n\n\t// Remove the tooltip element from the HTML body\n\tvar elRemove = document.getElementById('akeeba-tooltip-' + uuid);\n\n\tif (!elRemove)\n\t{\n\t\treturn;\n\t}\n\n\tdocument.body.removeChild(elRemove);\n};\n\n/**\n * Positions the tooltip.\n *\n * @param {object} parent - The trigger of the tooltip.\n * @param {object} tooltip - The tooltip itself.\n * @param {string} posHorizontal - Desired horizontal position of the tooltip relatively to the trigger (left/center/right)\n * @param {string} posVertical - Desired vertical position of the tooltip relatively to the trigger (top/center/bottom)\n *\n */\nakeeba.Tooltip.positionAt = function (parent, tooltip, posHorizontal, posVertical)\n{\n\tvar parentCoords = parent.getBoundingClientRect(), left, top;\n\tvar dist = 10;\n\n\tswitch (posHorizontal)\n\t{\n\t\tcase \"left\":\n\t\t\tleft = parseInt(parentCoords.left) - dist - tooltip.offsetWidth;\n\t\t\tif (parseInt(parentCoords.left) - tooltip.offsetWidth < 0)\n\t\t\t{\n\t\t\t\tleft = dist;\n\t\t\t}\n\t\t\tbreak;\n\n\t\tcase \"right\":\n\t\t\tleft = parentCoords.right + dist;\n\t\t\tif (parseInt(parentCoords.right) + tooltip.offsetWidth > document.documentElement.clientWidth)\n\t\t\t{\n\t\t\t\tleft = document.documentElement.clientWidth - tooltip.offsetWidth - dist;\n\t\t\t}\n\t\t\tbreak;\n\n\t\tdefault:\n\t\tcase \"center\":\n\t\t\tleft = parseInt(parentCoords.left) + ((parent.offsetWidth - tooltip.offsetWidth) / 2);\n\t}\n\n\tswitch (posVertical)\n\t{\n\t\tcase \"center\":\n\t\t\ttop = (parseInt(parentCoords.top) + parseInt(parentCoords.bottom)) / 2 - tooltip.offsetHeight / 2;\n\t\t\tbreak;\n\n\t\tcase \"bottom\":\n\t\t\ttop = parseInt(parentCoords.bottom) + dist;\n\t\t\tbreak;\n\n\t\tdefault:\n\t\tcase \"top\":\n\t\t\ttop = parseInt(parentCoords.top) - tooltip.offsetHeight - dist;\n\t}\n\n\tleft = (left < 0) ? parseInt(parentCoords.left) : left;\n\ttop = (top < 0) ? parseInt(parentCoords.bottom) + dist : top;\n\n\ttooltip.style.left = left + \"px\";\n\ttooltip.style.top = top + pageYOffset + \"px\";\n};\n"],"mappings":"kRAOA,GAAqB,WAAW,EAA5B,MAAO,CAAAA,MAAqB,CAE/B,GAAI,CAAAA,MAAM,CAAG,CAAC,CAAC,CAGa,WAAW,EAApC,MAAO,CAAAA,MAAM,CAACC,OAAsB,GAEvCD,MAAM,CAACC,OAAO,CAAG,CAAC,CAAC,EAGpBD,MAAM,CAACC,OAAO,CAACC,SAAS,CAAG,SAAUC,CAAE,CAAEC,CAAY,CACrD,CAMC,IAL4B,WAAW,EAAlC,MAAO,CAAAA,CAA2B,EAAuB,IAAI,GAArBA,CAAsB,IAElEA,CAAY,GAAO,EAGF,QAAQ,EAAAC,OAAA,CAAdF,CAAE,C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