Tooltip.js/build/tooltip.js.map

10 lines
50 KiB
Plaintext
Raw Permalink Normal View History

2024-10-03 15:46:55 -05:00
{
"version": 3,
"sources": ["../tooltip.js"],
"sourcesContent": [
"'use strict'\n\nmodule.exports = {\n /**\n * Setup global options\n * These can and will be overwriteen if a config object is passed into this.init()\n */\n options: {\n html: false,\n placement: 'top',\n container: 'body',\n scrollContainer: window,\n template: '<div class=\"tooltip\" data-tooltip-target=\"tooltip\"></div>',\n removalDelay: 200,\n tooltipOffset: 10,\n windowPadding: {\n top: 10,\n right: 10,\n bottom: 10,\n left: 10,\n },\n },\n\n /**\n * initializeTooltips - Initialize function to bind events and set any global data\n * @example\n * tooltips.init()\n * @param {object} (config) - Congifuration object that is used to overwrite the defaults in this.options\n * @return {void}\n */\n init: function initializeTooltips(config) {\n var self = this\n\n // Check to see if we should use document.body or document.documentElement\n document.documentElement.scrollTop = 1\n this.documentElement =\n document.documentElement.scrollTop === 1\n ? document.documentElement\n : document.body\n\n // Test for browser support\n var div = document.createElement('div')\n\n div.innerHTML =\n ' <link/><table></table><a href=\"/a\">a</a><input type=\"checkbox\"/>'\n // Make sure that link elements get serialized correctly by innerHTML\n // This requires a wrapper element in IE\n this.innerHTMLBug = !div.getElementsByTagName('link').length\n div = undefined\n\n // touch event testing\n if (\n 'ontouchstart' in window ||\n (window.DocumentTouch && document instanceof window.DocumentTouch)\n ) {\n document.body.style.cursor = 'pointer'\n }\n\n // Wrap map from jquery.\n this.map = {\n legend: [1, '<fieldset>', '</fieldset>'],\n tr: [2, '<table><tbody>', '</tbody></table>'],\n col: [2, '<table><tbody></tbody><colgroup>', '</colgroup></table>'],\n // for script/link/style tags to work in IE6-8, you have to wrap\n // in a div with a non-whitespace character in front, ha!\n defaultTag: this.innerHTMLBug\n ? [1, 'X<div>', '</div>']\n : [0, '', ''],\n }\n\n this.map.td = this.map.th = [\n 3,\n '<table><tbody><tr>',\n '</tr></tbody></table>',\n ]\n this.map.option = this.map.optgroup = [\n 1,\n '<select multiple=\"multiple\">',\n '</select>',\n ]\n this.map.thead =\n this.map.tbody =\n this.map.colgroup =\n this.map.caption =\n this.map.tfoot =\n [1, '<table>', '</table>']\n this.map.text =\n this.map.circle =\n this.map.ellipse =\n this.map.line =\n this.map.path =\n this.map.polygon =\n this.map.polyline =\n this.map.rect =\n [\n 1,\n '<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">',\n '</svg>',\n ]\n\n // Copy over ininitialization options to options object\n if (config instanceof Object) {\n for (var option in config) {\n if (\n window.Object.hasOwnProperty.call(config, option) &&\n window.Object.hasOwnProperty.call(this.options, option)\n ) {\n // If it's a nested object, loop through that one too\n if (\n typeof config[option] === 'object' &&\n !Array.isArray(config[option])\n ) {\n for (var subkey in config[option]) {\n if (\n window.Object.hasOwnProperty.call(\n
],
"mappings": "8EAEA,EAAO,QAAU,CAKb,QAAS,CACL,KAAM,GACN,UAAW,MACX,UAAW,OACX,gBAAiB,OACjB,SAAU,4DACV,aAAc,IACd,cAAe,GACf,cAAe,CACX,IAAK,GACL,MAAO,GACP,OAAQ,GACR,KAAM,EACV,CACJ,EASA,cAAe,CAAkB,CAAC,EAAQ,CACtC,IAAI,EAAO,KAGX,SAAS,gBAAgB,UAAY,EACrC,KAAK,gBACD,SAAS,gBAAgB,YAAc,EACjC,SAAS,gBACT,SAAS,KAGnB,IAAI,EAAM,SAAS,cAAc,KAAK,EAUtC,GARA,EAAI,UACA,qEAGJ,KAAK,cAAgB,EAAI,qBAAqB,MAAM,EAAE,OACtD,EAAM,OAIF,iBAAkB,QACjB,OAAO,eAAiB,oBAAoB,OAAO,cAEpD,SAAS,KAAK,MAAM,OAAS,UA8CjC,GA1CA,KAAK,IAAM,CACP,OAAQ,CAAC,EAAG,aAAc,aAAa,EACvC,GAAI,CAAC,EAAG,iBAAkB,kBAAkB,EAC5C,IAAK,CAAC,EAAG,mCAAoC,qBAAqB,EAGlE,WAAY,KAAK,aACX,CAAC,EAAG,SAAU,QAAQ,EACtB,CAAC,E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