@abtasty/tooltip
Advanced tools
Comparing version 0.2.0 to 1.0.0
@@ -1,1 +0,1 @@ | ||
!function(){"use strict";function t(t,e){if("undefined"==typeof document)return e;t=t||"";var o=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");return n.type="text/css",o.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t)),e}function e(){$(DATA.elementSelector).attr("title",DATA.tooltipContent).tooltip({container:"body",trigger:DATA.trigger,placement:DATA.position,template:c.tooltip}).on("hidden.bs.tooltip",function(){$(this).show()}).on("shown.bs.tooltip",function(t){var e=t.target.getAttribute("aria-describedby"),o="abtasty-tooltip"+DATA.uuid;document.getElementById(e).setAttribute("id",o)})}function o(){var t=!0;$(DATA.elementSelector).attr("title",DATA.title).popover({container:"body",content:DATA.popoverContent,html:!0,placement:DATA.position,template:c.popover,trigger:DATA.trigger,delay:{show:0,hide:300}}).on("hidden.bs.popover",function(){$(this).show()}).on("shown.bs.popover",function(e){var o=e.target.getAttribute("aria-describedby"),n="abtasty-popover"+DATA.uuid;document.getElementById(o).setAttribute("id",n),document.getElementById(n).addEventListener("mouseleave",function(){t=!0,$(DATA.elementSelector).popover("hide")}),document.getElementById(n).addEventListener("mouseover",function(){t=!1})}).on("hide.bs.popover",function(e){if("hover"==DATA.trigger&&document.getElementById("abtasty-popover"+DATA.uuid)&&!t)return!1}),l&&$(DATA.elementSelector).popover("show"),s&&$(".popover button.close").click(function(t){t.stopPropagation(),$(DATA.elementSelector).popover("hide")}),sessionStorage.setItem(i+"Displayed",!0)}function n(){r?e():p&&!1===d&&o()}!function(t,e,o){function n(t,e,o){p.addMethod(e,o,t.unbindEvent),p.addMethod(e,o,t.unbindEventWithSelectorOrCallback),p.addMethod(e,o,t.unbindEventWithSelectorAndCallback)}function i(t){t.arrive=d.bindEvent,n(d,t,"unbindArrive"),t.leave=h.bindEvent,n(h,t,"unbindLeave")}if(t.MutationObserver&&"undefined"!=typeof HTMLElement){var r=0,p=function(){var e=HTMLElement.prototype.matches||HTMLElement.prototype.webkitMatchesSelector||HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatchesSelector;return{matchesSelector:function(t,o){return t instanceof HTMLElement&&e.call(t,o)},addMethod:function(t,e,o){var n=t[e];t[e]=function(){return o.length==arguments.length?o.apply(this,arguments):"function"==typeof n?n.apply(this,arguments):void 0}},callCallbacks:function(t,e){e&&e.options.onceOnly&&1==e.firedElems.length&&(t=[t[0]]);for(var o,n=0;o=t[n];n++)o&&o.callback&&o.callback.call(o.elem,o.elem);e&&e.options.onceOnly&&1==e.firedElems.length&&e.me.unbindEventWithSelectorAndCallback.call(e.target,e.selector,e.callback)},checkChildNodesRecursively:function(t,e,o,n){for(var i,r=0;i=t[r];r++)o(i,e,n)&&n.push({callback:e.callback,elem:i}),i.childNodes.length>0&&p.checkChildNodesRecursively(i.childNodes,e,o,n)},mergeArrays:function(t,e){var o,n={};for(o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);for(o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);return n},toElementsArray:function(e){return void 0===e||"number"==typeof e.length&&e!==t||(e=[e]),e}}}(),l=function(){var t=function(){this._eventsBucket=[],this._beforeAdding=null,this._beforeRemoving=null};return t.prototype.addEvent=function(t,e,o,n){var i={target:t,selector:e,options:o,callback:n,firedElems:[]};return this._beforeAdding&&this._beforeAdding(i),this._eventsBucket.push(i),i},t.prototype.removeEvent=function(t){for(var e,o=this,n=this._eventsBucket.length-1;e=this._eventsBucket[n];n--)if(t(e)){o._beforeRemoving&&o._beforeRemoving(e);var i=o._eventsBucket.splice(n,1);i&&i.length&&(i[0].callback=null)}},t.prototype.beforeAdding=function(t){this._beforeAdding=t},t.prototype.beforeRemoving=function(t){this._beforeRemoving=t},t}(),a=function(e,n){var i=new l,r=this,a={fireOnAttributesModification:!1};return i.beforeAdding(function(o){var i,p=o.target;p!==t.document&&p!==t||(p=document.getElementsByTagName("html")[0]),i=new MutationObserver(function(t){n.call(this,t,o)});var l=e(o.options);i.observe(p,l),o.observer=i,o.me=r}),i.beforeRemoving(function(t){t.observer.disconnect()}),this.bindEvent=function(t,e,o){e=p.mergeArrays(a,e);for(var n=p.toElementsArray(this),r=0;r<n.length;r++)i.addEvent(n[r],t,e,o)},this.unbindEvent=function(){var t=p.toElementsArray(this);i.removeEvent(function(e){for(var n=this,i=0;i<t.length;i++)if(n===o||e.target===t[i])return!0;return!1})},this.unbindEventWithSelectorOrCallback=function(t){var e,n=p.toElementsArray(this),r=t;e="function"==typeof t?function(t){for(var e=this,i=0;i<n.length;i++)if((e===o||t.target===n[i])&&t.callback===r)return!0;return!1}:function(e){for(var i=this,r=0;r<n.length;r++)if((i===o||e.target===n[r])&&e.selector===t)return!0;return!1},i.removeEvent(e)},this.unbindEventWithSelectorAndCallback=function(t,e){var n=p.toElementsArray(this);i.removeEvent(function(i){for(var r=this,p=0;p<n.length;p++)if((r===o||i.target===n[p])&&i.selector===t&&i.callback===e)return!0;return!1})},this},s=function(){function t(t){var e={attributes:!1,childList:!0,subtree:!0};return t.fireOnAttributesModification&&(e.attributes=!0),e}function e(t,e){t.forEach(function(t){var o=t.addedNodes,i=t.target,r=[];null!==o&&o.length>0?p.checkChildNodesRecursively(o,e,n,r):"attributes"===t.type&&n(i,e,r)&&r.push({callback:e.callback,elem:i}),p.callCallbacks(r,e)})}function n(t,e,n){return!(!p.matchesSelector(t,e.selector)||(t._id===o&&(t._id=r++),-1!=e.firedElems.indexOf(t._id)))&&(e.firedElems.push(t._id),!0)}var i={fireOnAttributesModification:!1,onceOnly:!1,existing:!1};d=new a(t,e);var l=d.bindEvent;return d.bindEvent=function(t,e,o){void 0===o?(o=e,e=i):e=p.mergeArrays(i,e);var n=p.toElementsArray(this);if(e.existing){for(var r=[],a=0;a<n.length;a++)for(var s=n[a].querySelectorAll(t),c=0;c<s.length;c++)r.push({callback:o,elem:s[c]});if(e.onceOnly&&r.length)return o.call(r[0].elem,r[0].elem);setTimeout(p.callCallbacks,1,r)}l.call(this,t,e,o)},d},c=function(){function t(){return{childList:!0,subtree:!0}}function e(t,e){t.forEach(function(t){var n=t.removedNodes,i=[];null!==n&&n.length>0&&p.checkChildNodesRecursively(n,e,o,i),p.callCallbacks(i,e)})}function o(t,e){return p.matchesSelector(t,e.selector)}var n={};h=new a(t,e);var i=h.bindEvent;return h.bindEvent=function(t,e,o){void 0===o?(o=e,e=n):e=p.mergeArrays(n,e),i.call(this,t,e,o)},h},d=new s,h=new c;e&&i(e.fn),i(HTMLElement.prototype),i(NodeList.prototype),i(HTMLCollection.prototype),i(HTMLDocument.prototype),i(Window.prototype);var f={};n(d,f,"unbindAllArrive"),n(h,f,"unbindAllLeave")}}(window,"undefined"==typeof jQuery?null:jQuery,void 0);+function(t){function e(e){return this.each(function(){var n=t(this),i=n.data("bs.tooltip"),r="object"==typeof e&&e;!i&&/destroy|hide/.test(e)||(i||n.data("bs.tooltip",i=new o(this,r)),"string"==typeof e&&i[e]())})}var o=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};o.VERSION="3.3.7",o.TRANSITION_DURATION=150,o.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},o.prototype.init=function(e,o,n){var i=this;if(this.enabled=!0,this.type=e,this.$element=t(o),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),p=r.length;p--;){var l=r[p];if("click"==l)i.$element.on("click."+i.type,i.options.selector,t.proxy(i.toggle,i));else if("manual"!=l){var a="hover"==l?"mouseenter":"focusin",s="hover"==l?"mouseleave":"focusout";i.$element.on(a+"."+i.type,i.options.selector,t.proxy(i.enter,i)),i.$element.on(s+"."+i.type,i.options.selector,t.proxy(i.leave,i))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},o.prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},o.prototype.getDelegateOptions=function(){var e={},o=this.getDefaults();return this._options&&t.each(this._options,function(t,n){o[t]!=n&&(e[t]=n)}),e},o.prototype.enter=function(e){var o=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return o||(o=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,o)),e instanceof t.Event&&(o.inState["focusin"==e.type?"focus":"hover"]=!0),o.tip().hasClass("in")||"in"==o.hoverState?void(o.hoverState="in"):(clearTimeout(o.timeout),o.hoverState="in",o.options.delay&&o.options.delay.show?void(o.timeout=setTimeout(function(){"in"==o.hoverState&&o.show()},o.options.delay.show)):o.show())},o.prototype.isInStateTrue=function(){var t=this;for(var e in t.inState)if(t.inState[e])return!0;return!1},o.prototype.leave=function(e){var o=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(o||(o=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,o)),e instanceof t.Event&&(o.inState["focusout"==e.type?"focus":"hover"]=!1),!o.isInStateTrue()){if(clearTimeout(o.timeout),o.hoverState="out",!o.options.delay||!o.options.delay.hide)return o.hide();o.timeout=setTimeout(function(){"out"==o.hoverState&&o.hide()},o.options.delay.hide)}},o.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;var i=this,r=this.tip(),p=this.getUID(this.type);this.setContent(),r.attr("id",p),this.$element.attr("aria-describedby",p),this.options.animation&&r.addClass("fade");var l="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,s=a.test(l);s&&(l=l.replace(a,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(l).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),d=r[0].offsetWidth,h=r[0].offsetHeight;if(s){var f=l,u=this.getPosition(this.$viewport);l="bottom"==l&&c.bottom+h>u.bottom?"top":"top"==l&&c.top-h<u.top?"bottom":"right"==l&&c.right+d>u.width?"left":"left"==l&&c.left-d<u.left?"right":l,r.removeClass(f).addClass(l)}var v=this.getCalculatedOffset(l,c,d,h);this.applyPlacement(v,l);var m=function(){var t=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==t&&i.leave(i)};t.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",m).emulateTransitionEnd(o.TRANSITION_DURATION):m()}},o.prototype.applyPlacement=function(e,o){var n=this.tip(),i=n[0].offsetWidth,r=n[0].offsetHeight,p=parseInt(n.css("margin-top"),10),l=parseInt(n.css("margin-left"),10);isNaN(p)&&(p=0),isNaN(l)&&(l=0),e.top+=p,e.left+=l,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in");var a=n[0].offsetWidth,s=n[0].offsetHeight;"top"==o&&s!=r&&(e.top=e.top+r-s);var c=this.getViewportAdjustedDelta(o,e,a,s);c.left?e.left+=c.left:e.top+=c.top;var d=/top|bottom/.test(o),h=d?2*c.left-i+a:2*c.top-r+s,f=d?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(h,n[0][f],d)},o.prototype.replaceArrow=function(t,e,o){this.arrow().css(o?"left":"top",50*(1-t/e)+"%").css(o?"top":"left","")},o.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},o.prototype.hide=function(e){function n(){"in"!=i.hoverState&&r.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),e&&e()}var i=this,r=t(this.$tip),p=t.Event("hide.bs."+this.type);if(this.$element.trigger(p),!p.isDefaultPrevented())return r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",n).emulateTransitionEnd(o.TRANSITION_DURATION):n(),this.hoverState=null,this},o.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},o.prototype.hasContent=function(){return this.getTitle()},o.prototype.getPosition=function(e){e=e||this.$element;var o=e[0],n="BODY"==o.tagName,i=o.getBoundingClientRect();null==i.width&&(i=t.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var r=window.SVGElement&&o instanceof window.SVGElement,p=n?{top:0,left:0}:r?null:e.offset(),l={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=n?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},i,l,a,p)},o.prototype.getCalculatedOffset=function(t,e,o,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-o/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-o/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-o}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},o.prototype.getViewportAdjustedDelta=function(t,e,o,n){var i={top:0,left:0};if(!this.$viewport)return i;var r=this.options.viewport&&this.options.viewport.padding||0,p=this.getPosition(this.$viewport);if(/right|left/.test(t)){var l=e.top-r-p.scroll,a=e.top+r-p.scroll+n;l<p.top?i.top=p.top-l:a>p.top+p.height&&(i.top=p.top+p.height-a)}else{var s=e.left-r,c=e.left+r+o;s<p.left?i.left=p.left-s:c>p.right&&(i.left=p.left+p.width-c)}return i},o.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},o.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},o.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},o.prototype.enable=function(){this.enabled=!0},o.prototype.disable=function(){this.enabled=!1},o.prototype.toggleEnabled=function(){this.enabled=!this.enabled},o.prototype.toggle=function(e){var o=this;e&&((o=t(e.currentTarget).data("bs."+this.type))||(o=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,o))),e?(o.inState.click=!o.inState.click,o.isInStateTrue()?o.enter(o):o.leave(o)):o.tip().hasClass("in")?o.leave(o):o.enter(o)},o.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var n=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=o,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),function(t){function e(e){return this.each(function(){var n=t(this),i=n.data("bs.popover"),r="object"==typeof e&&e;!i&&/destroy|hide/.test(e)||(i||n.data("bs.popover",i=new o(this,r)),"string"==typeof e&&i[e]())})}var o=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");o.VERSION="3.3.7",o.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),o.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),o.prototype.constructor=o,o.prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),o=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof o?"html":"append":"text"](o),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=o,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),t("/* Bootstrap Tooltip */\n\n.tooltip {\n position: absolute;\n z-index: 1070;\n display: block;\n visibility: visible;\n font-size: 12px;\n line-height: 1.4;\n opacity: 0;\n filter: alpha(opacity=0);\n}\n.tooltip.in {\n opacity: .9;\n filter: alpha(opacity=90);\n}\n.tooltip.top {\n margin-top: -3px;\n padding: 5px 0;\n}\n.tooltip.right {\n margin-left: 3px;\n padding: 0 5px;\n}\n.tooltip.bottom {\n margin-top: 3px;\n padding: 5px 0;\n}\n.tooltip.left {\n margin-left: -3px;\n padding: 0 5px;\n}\n.tooltip-inner {\n max-width: 200px;\n padding: 3px 8px;\n color: #fff;\n text-align: center;\n text-decoration: none;\n background-color: #000;\n border-radius: 4px;\n}\n.tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n}\n.tooltip.top .tooltip-arrow {\n bottom: 0;\n left: 50%;\n margin-left: -5px;\n border-width: 5px 5px 0;\n border-top-color: #000 !important;\n}\n.tooltip.top-left .tooltip-arrow {\n bottom: 0;\n left: 5px;\n border-width: 5px 5px 0;\n border-top-color: #000 !important;\n}\n.tooltip.top-right .tooltip-arrow {\n bottom: 0;\n right: 5px;\n border-width: 5px 5px 0;\n border-top-color: #000 !important;\n}\n.tooltip.right .tooltip-arrow {\n top: 50%;\n left: 0;\n margin-top: -5px !important;\n border-width: 5px 5px 5px 0;\n border-right-color: #000 !important;\n}\n.tooltip.left .tooltip-arrow {\n top: 50%;\n right: 0;\n margin-top: -5px !important;\n border-width: 5px 0 5px 5px;\n border-left-color: #000 !important;\n}\n.tooltip.bottom .tooltip-arrow {\n top: 0;\n left: 50%;\n margin-left: -5px !important;\n border-width: 0 5px 5px;\n border-bottom-color: #000 !important;\n}\n.tooltip.bottom-left .tooltip-arrow {\n top: 0;\n left: 5px;\n border-width: 0 5px 5px;\n border-bottom-color: #000 !important;\n}\n.tooltip.bottom-right .tooltip-arrow {\n top: 0;\n right: 5px;\n border-width: 0 5px 5px;\n border-bottom-color: #000 !important;\n}\n\n\n/* Custom styles */\n\n.tooltip-inner {\n color: #fff !important;\n background-color: #000 !important;\n padding: 3px 8px !important;\n text-shadow: none;\n border-radius: 4px !important;\n}\n",void 0),t('/* Boostrap Popover */\n\n.popover {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1060;\n display: none;\n max-width: 276px;\n padding: 1px;\n text-align: left;\n background-color: #fff !important;\n background-clip: padding-box;\n border: 1px solid #ccc;\n border: 1px solid rgba(0, 0, 0, .2);\n border-radius: 6px;\n -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, .2);\n box-shadow: 0 5px 10px rgba(0, 0, 0, .2);\n white-space: normal;\n}\n.popover {\n color: #111;\n text-shadow: none;\n}\n.popover.top {\n margin-top: -10px;\n}\n.popover.right {\n margin-left: 10px;\n}\n.popover.bottom {\n margin-top: 10px;\n}\n.popover.left {\n margin-left: -10px;\n}\n.popover-title {\n margin: 0;\n padding: 8px 14px;\n font-size: 14px;\n font-weight: 400;\n line-height: 18px;\n background-color: #f7f7f7;\n border-bottom: 1px solid #ebebeb;\n border-radius: 5px 5px 0 0;\n}\n.popover-content {\n padding: 9px 14px;\n}\n.popover > .arrow,\n.popover > .arrow:after {\n position: absolute;\n display: block;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n}\n.popover > .arrow {\n border-width: 11px;\n}\n.popover > .arrow:after {\n border-width: 10px;\n content: "";\n}\n.popover.top > .arrow {\n left: 50%;\n margin-left: -11px;\n border-bottom-width: 0;\n border-top-color: #999;\n border-top-color: rgba(0, 0, 0, .25);\n bottom: -11px;\n}\n.popover.top > .arrow:after {\n content: " ";\n bottom: 1px;\n margin-left: -10px;\n border-bottom-width: 0;\n border-top-color: #fff;\n}\n.popover.right > .arrow {\n top: 50%;\n left: -11px;\n margin-top: -11px;\n border-left-width: 0;\n border-right-color: #999;\n border-right-color: rgba(0, 0, 0, .25);\n}\n.popover.right > .arrow:after {\n content: " ";\n left: 1px;\n bottom: -10px;\n border-left-width: 0;\n border-right-color: #fff;\n}\n.popover.bottom > .arrow {\n left: 50%;\n margin-left: -11px;\n border-top-width: 0;\n border-bottom-color: #999;\n border-bottom-color: rgba(0, 0, 0, .25);\n top: -11px;\n}\n.popover.bottom > .arrow:after {\n content: " ";\n top: 1px;\n margin-left: -10px;\n border-top-width: 0;\n border-bottom-color: #fff;\n}\n.popover.left > .arrow {\n top: 50%;\n right: -11px;\n margin-top: -11px;\n border-right-width: 0;\n border-left-color: #999;\n border-left-color: rgba(0, 0, 0, .25);\n}\n.popover.left > .arrow:after {\n content: " ";\n right: 1px;\n border-right-width: 0;\n border-left-color: #fff;\n bottom: -10px;\n}\n\n\n/* Custom styles */\n\n.popover {\n color: #111;\n text-shadow: none;\n}\n.popover strong {\n font-weight: bold;\n}\n.popover-content {\n word-wrap: break-word;\n}\n.popover h3 {\n padding-right: 34px;\n}\n.popover button.close {\n float: right !important;\n font-size: 30px !important;\n line-height: 28px;\n margin-right: 6px !important;\n text-shadow: 0 1px 0 #fff !important;\n opacity: .9 !important;\n -webkit-appearance: none;\n padding: 0 !important;\n cursor: pointer;\n background: none !important;\n border: 0;\n color: #111 !important;\n}\n',void 0);var i="ABTastyPluginTooltip",r="tooltip"===DATA.type,p="popover"===DATA.type,l="manual"===DATA.trigger,a=void 0!==window.ABTastyEditor,s=l?'<button type="button" class="close">×</button>':"",c={tooltip:'<div class="tooltip" role="tooltip">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner"></div>\n </div>',popover:'<div class="popover" role="tooltip">\n <div class="arrow"></div>\n '+s+'\n <h3 class="popover-title"></h3>\n <div class="popover-content"></div>\n </div>'},d=!1;"true"===sessionStorage.getItem(i+"Displayed")&&l&&1===DATA.only_once_show&&!a&&(d=!0),a&&(DATA.trigger="click"),document.arrive(DATA.elementSelector,{onceOnly:!0,existing:!0},n)}(); | ||
!function(){"use strict";function t(t){return t&&"[object Function]"==={}.toString.call(t)}function e(t,e){if(1!==t.nodeType)return[];var o=getComputedStyle(t,null);return e?o[e]:o}function o(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function n(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var r=e(t),i=r.overflow,a=r.overflowX,s=r.overflowY;return/(auto|scroll)/.test(i+s+a)?t:n(o(t))}function r(t){var o=t&&t.offsetParent,n=o&&o.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(o.nodeName)&&"static"===e(o,"position")?r(o):o:t?t.ownerDocument.documentElement:document.documentElement}function i(t){return null!==t.parentNode?i(t.parentNode):t}function a(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var o=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=o?t:e,s=o?e:t,l=document.createRange();l.setStart(n,0),l.setEnd(s,0);var p=l.commonAncestorContainer;if(t!==p&&e!==p||n.contains(s))return function(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||r(t.firstElementChild)===t)}(p)?p:r(p);var f=i(t);return f.host?a(f.host,e):a(t,i(e).host)}function s(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",o=t.nodeName;if("BODY"===o||"HTML"===o){var n=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||n)[e]}return t[e]}function l(t,e){var o="x"===e?"Left":"Top",n="Left"===o?"Right":"Bottom";return parseFloat(t["border"+o+"Width"],10)+parseFloat(t["border"+n+"Width"],10)}function p(t,e,o,n){return Math.max(e["offset"+t],e["scroll"+t],o["client"+t],o["offset"+t],o["scroll"+t],I()?o["offset"+t]+n["margin"+("Height"===t?"Top":"Left")]+n["margin"+("Height"===t?"Bottom":"Right")]:0)}function f(){var t=document.body,e=document.documentElement,o=I()&&getComputedStyle(e);return{height:p("Height",t,e,o),width:p("Width",t,e,o)}}function d(t){return Y({},t,{right:t.left+t.width,bottom:t.top+t.height})}function c(t){var o={};if(I())try{o=t.getBoundingClientRect();var n=s(t,"top"),r=s(t,"left");o.top+=n,o.left+=r,o.bottom+=n,o.right+=r}catch(t){}else o=t.getBoundingClientRect();var i={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},a="HTML"===t.nodeName?f():{},p=a.width||t.clientWidth||i.right-i.left,c=a.height||t.clientHeight||i.bottom-i.top,u=t.offsetWidth-p,h=t.offsetHeight-c;if(u||h){var m=e(t);u-=l(m,"x"),h-=l(m,"y"),i.width-=u,i.height-=h}return d(i)}function u(t,o){var r=I(),i="HTML"===o.nodeName,a=c(t),l=c(o),p=n(t),f=e(o),u=parseFloat(f.borderTopWidth,10),h=parseFloat(f.borderLeftWidth,10),m=d({top:a.top-l.top-u,left:a.left-l.left-h,width:a.width,height:a.height});if(m.marginTop=0,m.marginLeft=0,!r&&i){var v=parseFloat(f.marginTop,10),b=parseFloat(f.marginLeft,10);m.top-=u-v,m.bottom-=u-v,m.left-=h-b,m.right-=h-b,m.marginTop=v,m.marginLeft=b}return(r?o.contains(p):o===p&&"BODY"!==p.nodeName)&&(m=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=s(e,"top"),r=s(e,"left"),i=o?-1:1;return t.top+=n*i,t.bottom+=n*i,t.left+=r*i,t.right+=r*i,t}(m,o)),m}function h(t){var n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===e(t,"position")||h(o(t)))}function m(t,e,r,i){var l={top:0,left:0},p=a(t,e);if("viewport"===i)l=function(t){var e=t.ownerDocument.documentElement,o=u(t,e),n=Math.max(e.clientWidth,window.innerWidth||0),r=Math.max(e.clientHeight,window.innerHeight||0),i=s(e),a=s(e,"left");return d({top:i-o.top+o.marginTop,left:a-o.left+o.marginLeft,width:n,height:r})}(p);else{var c=void 0;"scrollParent"===i?"BODY"===(c=n(o(e))).nodeName&&(c=t.ownerDocument.documentElement):c="window"===i?t.ownerDocument.documentElement:i;var m=u(c,p);if("HTML"!==c.nodeName||h(p))l=m;else{var v=f(),b=v.height,g=v.width;l.top+=m.top-m.marginTop,l.bottom=b+m.top,l.left+=m.left-m.marginLeft,l.right=g+m.left}}return l.left+=r,l.top+=r,l.right-=r,l.bottom-=r,l}function v(t,e,o,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=m(o,n,i,r),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map(function(t){return Y({key:t},s[t],{area:function(t){return t.width*t.height}(s[t])})}).sort(function(t,e){return e.area-t.area}),p=l.filter(function(t){var e=t.width,n=t.height;return e>=o.clientWidth&&n>=o.clientHeight}),f=p.length>0?p[0].key:l[0].key,d=t.split("-")[1];return f+(d?"-"+d:"")}function b(t,e,o){return u(o,a(e,o))}function g(t){var e=getComputedStyle(t),o=parseFloat(e.marginTop)+parseFloat(e.marginBottom),n=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+n,height:t.offsetHeight+o}}function y(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function w(t,e,o){o=o.split("-")[0];var n=g(t),r={width:n.width,height:n.height},i=-1!==["right","left"].indexOf(o),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",p=i?"width":"height";return r[a]=e[a]+e[l]/2-n[l]/2,r[s]=o===s?e[s]-n[p]:e[y(s)],r}function O(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function E(e,o,n){return(void 0===n?e:e.slice(0,function(t,e,o){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===o});var n=O(t,function(t){return t[e]===o});return t.indexOf(n)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&t(n)&&(o.offsets.popper=d(o.offsets.popper),o.offsets.reference=d(o.offsets.reference),o=n(o,e))}),o}function x(t,e){return t.some(function(t){var o=t.name;return t.enabled&&o===e})}function _(t){for(var e=[!1,"ms","Webkit","Moz","O"],o=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<e.length-1;n++){var r=e[n],i=r?""+r+o:t;if(void 0!==document.body.style[i])return i}return null}function C(t){var e=t.ownerDocument;return e?e.defaultView:window}function T(t,e,o,r){var i="BODY"===t.nodeName,a=i?t.ownerDocument.defaultView:t;a.addEventListener(e,o,{passive:!0}),i||T(n(a.parentNode),e,o,r),r.push(a)}function N(){this.state.eventsEnabled||(this.state=function(t,e,o,r){o.updateBound=r,C(t).addEventListener("resize",o.updateBound,{passive:!0});var i=n(t);return T(i,"scroll",o.updateBound,o.scrollParents),o.scrollElement=i,o.eventsEnabled=!0,o}(this.reference,this.options,this.state,this.scheduleUpdate))}function k(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(t,e){return C(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}(this.reference,this.state))}function S(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function L(t,e){Object.keys(e).forEach(function(o){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(o)&&S(e[o])&&(n="px"),t.style[o]=e[o]+n})}function D(t,e,o){var n=O(t,function(t){return t.name===e}),r=!!n&&t.some(function(t){return t.name===o&&t.enabled&&t.order<n.order});if(!r){var i="`"+e+"`",a="`"+o+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return r}function M(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=G.indexOf(t),n=G.slice(o+1).concat(G.slice(0,o));return e?n.reverse():n}function A(t,e,o,n){var r=[0,0],i=-1!==["right","left"].indexOf(n),a=t.split(/(\+|\-)/).map(function(t){return t.trim()}),s=a.indexOf(O(a,function(t){return-1!==t.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,p=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(p=p.map(function(t,n){var r=(1===n?!i:i)?"height":"width",a=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,o,n){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],a=r[2];if(!i)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=o;break;case"%":case"%r":default:s=n}return d(s)[e]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(t,r,e,o)})})).forEach(function(t,e){t.forEach(function(o,n){S(o)&&(r[e]+=o*("-"===t[n-1]?-1:1))})}),r}for(var W="undefined"!=typeof window&&"undefined"!=typeof document,H=["Edge","Trident","Firefox"],B=0,P=0;P<H.length;P+=1)if(W&&navigator.userAgent.indexOf(H[P])>=0){B=1;break}var j=W&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},B))}},F=void 0,I=function(){return void 0===F&&(F=-1!==navigator.appVersion.indexOf("MSIE 10")),F},R=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},q=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),U=function(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t},Y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},K=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],G=K.slice(3),V={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},z={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,o=e.split("-")[0],n=e.split("-")[1];if(n){var r=t.offsets,i=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(o),l=s?"left":"top",p=s?"width":"height",f={start:U({},l,i[l]),end:U({},l,i[l]+i[p]-a[p])};t.offsets.popper=Y({},a,f[n])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var o=e.offset,n=t.placement,r=t.offsets,i=r.popper,a=r.reference,s=n.split("-")[0],l=void 0;return l=S(+o)?[+o,0]:A(o,i,a,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),t.popper=i,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var o=e.boundariesElement||r(t.instance.popper);t.instance.reference===o&&(o=r(o));var n=m(t.instance.popper,t.instance.reference,e.padding,o);e.boundaries=n;var i=e.priority,a=t.offsets.popper,s={primary:function(t){var o=a[t];return a[t]<n[t]&&!e.escapeWithReference&&(o=Math.max(a[t],n[t])),U({},t,o)},secondary:function(t){var o="right"===t?"left":"top",r=a[o];return a[t]>n[t]&&!e.escapeWithReference&&(r=Math.min(a[o],n[t]-("right"===t?a.width:a.height))),U({},o,r)}};return i.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";a=Y({},a,s[e](t))}),t.offsets.popper=a,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,o=e.popper,n=e.reference,r=t.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",p=a?"width":"height";return o[s]<i(n[l])&&(t.offsets.popper[l]=i(n[l])-o[p]),o[l]>i(n[s])&&(t.offsets.popper[l]=i(n[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,o){var n;if(!D(t.instance.modifiers,"arrow","keepTogether"))return t;var r=o.element;if("string"==typeof r){if(!(r=t.instance.popper.querySelector(r)))return t}else if(!t.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],a=t.offsets,s=a.popper,l=a.reference,p=-1!==["left","right"].indexOf(i),f=p?"height":"width",c=p?"Top":"Left",u=c.toLowerCase(),h=p?"left":"top",m=p?"bottom":"right",v=g(r)[f];l[m]-v<s[u]&&(t.offsets.popper[u]-=s[u]-(l[m]-v)),l[u]+v>s[m]&&(t.offsets.popper[u]+=l[u]+v-s[m]),t.offsets.popper=d(t.offsets.popper);var b=l[u]+l[f]/2-v/2,y=e(t.instance.popper),w=parseFloat(y["margin"+c],10),O=parseFloat(y["border"+c+"Width"],10),E=b-t.offsets.popper[u]-w-O;return E=Math.max(Math.min(s[f]-v,E),0),t.arrowElement=r,t.offsets.arrow=(n={},U(n,u,Math.round(E)),U(n,h,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(x(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var o=m(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),n=t.placement.split("-")[0],r=y(n),i=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case V.FLIP:a=[n,r];break;case V.CLOCKWISE:a=M(n);break;case V.COUNTERCLOCKWISE:a=M(n,!0);break;default:a=e.behavior}return a.forEach(function(s,l){if(n!==s||a.length===l+1)return t;n=t.placement.split("-")[0],r=y(n);var p=t.offsets.popper,f=t.offsets.reference,d=Math.floor,c="left"===n&&d(p.right)>d(f.left)||"right"===n&&d(p.left)<d(f.right)||"top"===n&&d(p.bottom)>d(f.top)||"bottom"===n&&d(p.top)<d(f.bottom),u=d(p.left)<d(o.left),h=d(p.right)>d(o.right),m=d(p.top)<d(o.top),v=d(p.bottom)>d(o.bottom),b="left"===n&&u||"right"===n&&h||"top"===n&&m||"bottom"===n&&v,g=-1!==["top","bottom"].indexOf(n),O=!!e.flipVariations&&(g&&"start"===i&&u||g&&"end"===i&&h||!g&&"start"===i&&m||!g&&"end"===i&&v);(c||b||O)&&(t.flipped=!0,(c||b)&&(n=a[l+1]),O&&(i=function(t){return"end"===t?"start":"start"===t?"end":t}(i)),t.placement=n+(i?"-"+i:""),t.offsets.popper=Y({},t.offsets.popper,w(t.instance.popper,t.offsets.reference,t.placement)),t=E(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,o=e.split("-")[0],n=t.offsets,r=n.popper,i=n.reference,a=-1!==["left","right"].indexOf(o),s=-1===["top","left"].indexOf(o);return r[a?"left":"top"]=i[o]-(s?r[a?"width":"height"]:0),t.placement=y(e),t.offsets.popper=d(r),t}},hide:{order:800,enabled:!0,fn:function(t){if(!D(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,o=O(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<o.top||e.left>o.right||e.top>o.bottom||e.right<o.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var o=e.x,n=e.y,i=t.offsets.popper,a=O(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==a?a:e.gpuAcceleration,l=c(r(t.instance.popper)),p={position:i.position},f={left:Math.floor(i.left),top:Math.floor(i.top),bottom:Math.floor(i.bottom),right:Math.floor(i.right)},d="bottom"===o?"top":"bottom",u="right"===n?"left":"right",h=_("transform"),m=void 0,v=void 0;if(v="bottom"===d?-l.height+f.bottom:f.top,m="right"===u?-l.width+f.right:f.left,s&&h)p[h]="translate3d("+m+"px, "+v+"px, 0)",p[d]=0,p[u]=0,p.willChange="transform";else{var b="bottom"===d?-1:1,g="right"===u?-1:1;p[d]=v*b,p[u]=m*g,p.willChange=d+", "+u}var y={"x-placement":t.placement};return t.attributes=Y({},y,t.attributes),t.styles=Y({},p,t.styles),t.arrowStyles=Y({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){return L(t.instance.popper,t.styles),function(t,e){Object.keys(e).forEach(function(o){!1!==e[o]?t.setAttribute(o,e[o]):t.removeAttribute(o)})}(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&L(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,o,n,r){var i=b(0,e,t),a=v(o.placement,i,e,t,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return e.setAttribute("x-placement",a),L(e,{position:"absolute"}),o},gpuAcceleration:void 0}}},J=function(){function e(o,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};R(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=j(this.update.bind(this)),this.options=Y({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=o&&o.jquery?o[0]:o,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Y({},e.Defaults.modifiers,i.modifiers)).forEach(function(t){r.options.modifiers[t]=Y({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return Y({name:t},r.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(e){e.enabled&&t(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return q(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=b(this.state,this.popper,this.reference),t.placement=v(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=w(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position="absolute",t=E(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,x(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[_("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return N.call(this)}},{key:"disableEventListeners",value:function(){return k.call(this)}}]),e}();J.Utils=("undefined"!=typeof window?window:global).PopperUtils,J.placements=K,J.Defaults=z;var X=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Q=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),Z=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},$={container:!1,delay:0,html:!1,placement:"top",title:"",template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",offset:0},tt=function(){function t(e,o){X(this,t),et.call(this),o=Z({},$,o),e.jquery&&(e=e[0]),this.reference=e,this.options=o;var n="string"==typeof o.trigger?o.trigger.split(" ").filter(function(t){return-1!==["click","hover","focus"].indexOf(t)}):[];this._isOpen=!1,this._popperOptions={},this._setEventListeners(e,n,o)}return Q(t,[{key:"_create",value:function(t,e,o,n){var r=window.document.createElement("div");r.innerHTML=e.trim();var i=r.childNodes[0];i.id="tooltip_"+Math.random().toString(36).substr(2,10),i.setAttribute("aria-hidden","false");var a=r.querySelector(this.innerSelector);if(1===o.nodeType||11===o.nodeType)n&&a.appendChild(o);else if(function(t){return t&&"[object Function]"==={}.toString.call(t)}(o)){var s=o.call(t);n?a.innerHTML=s:a.innerText=s}else n?a.innerHTML=o:a.innerText=o;return i}},{key:"_show",value:function(t,e){if(this._isOpen&&!this._isOpening)return this;if(this._isOpen=!0,this._tooltipNode)return this._tooltipNode.style.display="",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.update(),this;var o=t.getAttribute("title")||e.title;if(!o)return this;var n=this._create(t,e.template,o,e.html);t.setAttribute("aria-describedby",n.id);var r=this._findContainer(e.container,t);return this._append(n,r),this._popperOptions=Z({},e.popperOptions,{placement:e.placement}),this._popperOptions.modifiers=Z({},this._popperOptions.modifiers,{arrow:{element:this.arrowSelector},offset:{offset:e.offset}}),e.boundariesElement&&(this._popperOptions.modifiers.preventOverflow={boundariesElement:e.boundariesElement}),this.popperInstance=new J(t,n,this._popperOptions),this._tooltipNode=n,this}},{key:"_hide",value:function(){return this._isOpen?(this._isOpen=!1,this._tooltipNode.style.display="none",this._tooltipNode.setAttribute("aria-hidden","true"),this):this}},{key:"_dispose",value:function(){var t=this;return this._events.forEach(function(e){var o=e.func,n=e.event;t.reference.removeEventListener(n,o)}),this._events=[],this._tooltipNode&&(this._hide(),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||(this._tooltipNode.parentNode.removeChild(this._tooltipNode),this._tooltipNode=null)),this}},{key:"_findContainer",value:function(t,e){return"string"==typeof t?t=window.document.querySelector(t):!1===t&&(t=e.parentNode),t}},{key:"_append",value:function(t,e){e.appendChild(t)}},{key:"_setEventListeners",value:function(t,e,o){var n=this,r=[],i=[];e.forEach(function(t){switch(t){case"hover":r.push("mouseenter"),i.push("mouseleave");break;case"focus":r.push("focus"),i.push("blur");break;case"click":r.push("click"),i.push("click")}}),r.forEach(function(e){var r=function(e){!0!==n._isOpening&&(e.usedByTooltip=!0,n._scheduleShow(t,o.delay,o,e))};n._events.push({event:e,func:r}),t.addEventListener(e,r)}),i.forEach(function(e){var r=function(e){!0!==e.usedByTooltip&&n._scheduleHide(t,o.delay,o,e)};n._events.push({event:e,func:r}),t.addEventListener(e,r)})}},{key:"_scheduleShow",value:function(t,e,o){var n=this;this._isOpening=!0;var r=e&&e.show||e||0;this._showTimeout=window.setTimeout(function(){return n._show(t,o)},r)}},{key:"_scheduleHide",value:function(t,e,o,n){var r=this;this._isOpening=!1;var i=e&&e.hide||e||0;window.setTimeout(function(){if(window.clearTimeout(r._showTimeout),!1!==r._isOpen&&document.body.contains(r._tooltipNode)){if("mouseleave"===n.type){if(r._setTooltipNodeEvent(n,t,e,o))return}r._hide(t,o)}},i)}}]),t}(),et=function(){var t=this;this.show=function(){return t._show(t.reference,t.options)},this.hide=function(){return t._hide()},this.dispose=function(){return t._dispose()},this.toggle=function(){return t._isOpen?t.hide():t.show()},this.arrowSelector=".tooltip-arrow, .tooltip__arrow",this.innerSelector=".tooltip-inner, .tooltip__inner",this._events=[],this._setTooltipNodeEvent=function(e,o,n,r){var i=e.relatedreference||e.toElement||e.relatedTarget;return!!t._tooltipNode.contains(i)&&(t._tooltipNode.addEventListener(e.type,function n(i){var a=i.relatedreference||i.toElement||i.relatedTarget;t._tooltipNode.removeEventListener(e.type,n),o.contains(a)||t._scheduleHide(o,r.delay,r,i)}),!0)}},ot=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];t.unshift("[AB Tasty Widget] "+PACKAGE+":"),console.log.apply(console,t)},nt=function(t){function e(t,o){if(1===arguments.length){for(var r=t[0],i=1;i<t.length;i++)r=e(r,t[i]);return r}for(var a in o)if("class"===a){var s=t[a]||[];t[a]=(Array.isArray(s)?s:[s]).concat(o[a]||[])}else if("style"===a){s=n(t[a]);var l=n(o[a]);t[a]=s+l}else t[a]=o[a];return t}function o(t,e){return Array.isArray(t)?function(t,e){for(var n,r="",a="",s=Array.isArray(e),l=0;l<t.length;l++)(n=o(t[l]))&&(s&&e[l]&&(n=i(n)),r=r+a+n,a=" ");return r}(t,e):t&&"object"==typeof t?function(t){var e="",o="";for(var n in t)n&&t[n]&&s.call(t,n)&&(e=e+o+n,o=" ");return e}(t):t||""}function n(t){if(!t)return"";if("object"==typeof t){var e="";for(var o in t)s.call(t,o)&&(e=e+o+":"+t[o]+";");return e}return";"!==(t+="")[t.length-1]?t+";":t}function r(t,e,o,n){return!1!==e&&null!=e&&(e||"class"!==t&&"style"!==t)?!0===e?" "+(n?t:t+'="'+t+'"'):("function"==typeof e.toJSON&&(e=e.toJSON()),"string"==typeof e||(e=JSON.stringify(e),o||-1===e.indexOf('"'))?(o&&(e=i(e))," "+t+'="'+e+'"'):" "+t+"='"+e.replace(/'/g,"'")+"'"):""}function i(t){var e=""+t,o=l.exec(e);if(!o)return t;var n,r,i,a="";for(n=o.index,r=0;n<e.length;n++){switch(e.charCodeAt(n)){case 34:i=""";break;case 38:i="&";break;case 60:i="<";break;case 62:i=">";break;default:continue}r!==n&&(a+=e.substring(r,n)),r=n+1,a+=i}return r!==n?a+e.substring(r,n):a}function a(t,e,o,n){if(!(t instanceof Error))throw t;if(!("undefined"==typeof window&&e||n))throw t.message+=" on line "+o,t;try{n=n||require("fs").readFileSync(e,"utf8")}catch(e){a(t,null,o)}var r=3,i=n.split("\n"),s=Math.max(o-r,0),l=Math.min(i.length,o+r);r=i.slice(s,l).map(function(t,e){var n=e+s+1;return(n==o?" > ":" ")+n+"| "+t}).join("\n");throw t.path=e,t.message=(e||"Pug")+":"+o+"\n"+r+"\n\n"+t.message,t}var s=Object.prototype.hasOwnProperty;t.merge=e,t.classes=o,t.style=n,t.attr=r,t.attrs=function(t,e){var i="";for(var a in t)if(s.call(t,a)){var l=t[a];if("class"===a){i=r(a,l=o(l),!1,e)+i;continue}"style"===a&&(l=n(l)),i+=r(a,l,!1,e)}return i};var l=/["&<>]/;return t.escape=i,t.rethrow=a,t}({});!function(t,e){if("undefined"==typeof document)return e;t=t||"";var o=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",o.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}('.abtasty-tooltip.tooltip{opacity:1;margin:0;margin:initial}.abtasty-tooltip-container p{margin:0;margin:initial}.abtasty-tooltip.tooltip .abtasty-tooltip-inner.tooltip-inner{max-width:none;padding:0;padding:initial;color:#000;color:initial;text-align:center;text-decoration:none;text-decoration:initial;background-color:transparent;background-color:initial;border-radius:0;border-radius:initial}.abtasty-tooltip.tooltip{position:absolute;padding:10px;min-width:150px;text-align:center;border-style:solid}.abtasty-tooltip.tooltip:after,.abtasty-tooltip.tooltip:before{border:solid transparent;content:"";height:0;width:0;position:absolute;pointer-events:none;border-width:8px}.abtasty-tooltip.tooltip[x-placement^=bottom]:after,.abtasty-tooltip.tooltip[x-placement^=bottom]:before{bottom:100%;left:50%}.abtasty-tooltip.tooltip[x-placement^=top]:after,.abtasty-tooltip.tooltip[x-placement^=top]:before{top:100%;left:50%}.abtasty-tooltip.tooltip[x-placement^=bottom]:after,.abtasty-tooltip.tooltip[x-placement^=top]:after{margin-left:-8px}.abtasty-tooltip.tooltip[x-placement^=left]:after,.abtasty-tooltip.tooltip[x-placement^=left]:before{left:100%;top:50%}.abtasty-tooltip.tooltip[x-placement^=right]:after,.abtasty-tooltip.tooltip[x-placement^=right]:before{right:100%;top:50%}.abtasty-tooltip.tooltip[x-placement^=left]:after,.abtasty-tooltip.tooltip[x-placement^=right]:after{margin-top:-8px}',void 0);var rt=DATA,it=rt.layout,at=rt.selector,st=rt.content,lt=rt.titleContent,pt=rt.position,ft=rt.fontColor,dt=rt.backgroundColor,ct=rt.borderColor,ut=rt.borderWidth,ht=rt.borderRadius,mt=rt.dropShadow,vt=rt.dropShadowOpacity,bt=rt.trigger,gt=function(t,e,o,n){var r=document.head||document.getElementsByTagName("head")[0],i=document.getElementById(t)||document.createElement("style");i.id=t,i.innerHTML+=e+":"+o+"{"+n.join(";")+"}",r.appendChild(i)};!function(t,e,o){var n=0,r=0;try{document.querySelector(t)}catch(e){var i='Selector "'+t+'" not valid.';return ot(i),"function"==typeof o&&o(i)}n=setTimeout(function(){clearInterval(r);var e="Can't find element \""+t+'".';return ot(e),"function"==typeof o&&o(e)},1e4),r=setInterval(function(){var o=document.querySelector(t);if(null!==o)return clearTimeout(n),clearInterval(r),"function"==typeof e&&e(o)},200)}(at,function(){var t=new tt(document.querySelector(at),{placement:pt,title:lt,html:!0,trigger:bt,template:function(t){var e,o="";try{var n={},r=t||{};(function(t,n,r,i,a,s,l,p,f,d){o=o+'<div class="abtasty-tooltip tooltip" role="tooltip"'+nt.attr("style",nt.style({background:t,"box-shadow":"0 0 "+(s?l:"0")+"px rgba(0,0,0,0.5)","border-width":i+"px","border-color":n,"border-radius":r+"px"}),!0,!0)+">",o=(o=(o+='<div class="abtasty-tooltip-container">')+'<div class="abtasty-tooltip-inner tooltip-inner"'+nt.attr("style",nt.style({color:p}),!0,!0)+">")+(null==(e=d)?"":e)+"</div>","rich"===f&&(o=(o=o+'<div class="abtasty-tooltip-inner tooltip-inner-content"'+nt.attr("style",nt.style({color:p}),!0,!0)+">")+(null==(e=a)?"":e)+"</div>"),o+="</div></div>"}).call(this,"backgroundColor"in r?r.backgroundColor:"undefined"!=typeof backgroundColor?backgroundColor:void 0,"borderColor"in r?r.borderColor:"undefined"!=typeof borderColor?borderColor:void 0,"borderRadius"in r?r.borderRadius:"undefined"!=typeof borderRadius?borderRadius:void 0,"borderWidth"in r?r.borderWidth:"undefined"!=typeof borderWidth?borderWidth:void 0,"content"in r?r.content:"undefined"!=typeof content?content:void 0,"dropShadow"in r?r.dropShadow:"undefined"!=typeof dropShadow?dropShadow:void 0,"dropShadowOpacity"in r?r.dropShadowOpacity:"undefined"!=typeof dropShadowOpacity?dropShadowOpacity:void 0,"fontColor"in r?r.fontColor:"undefined"!=typeof fontColor?fontColor:void 0,"layout"in r?r.layout:"undefined"!=typeof layout?layout:void 0,"titleContent"in r?r.titleContent:"undefined"!=typeof titleContent?titleContent:void 0)}catch(t){nt.rethrow(t,void 0,void 0,n[void 0])}return o}({layout:it,content:st,titleContent:lt,fontColor:ft,backgroundColor:dt,borderColor:ct,borderWidth:ut,borderRadius:ht,dropShadow:mt,dropShadowOpacity:vt})});return function(){var t="widget-tooltip-"+Math.round(1e4*Math.random());[{placement:"top",marginDirection:"left",borderDirection:"top"},{placement:"bottom",marginDirection:"left",borderDirection:"bottom"},{placement:"left",marginDirection:"top",borderDirection:"left"},{placement:"right",marginDirection:"top",borderDirection:"right"}].forEach(function(e){var o=e.placement,n=e.marginDirection,r=e.borderDirection;gt(t,'.abtasty-tooltip.tooltip[x-placement^="'+o+'"]',"before",["border-"+r+"-color: "+ct,"margin-"+n+": -"+(8+ut)+"px","border-width: "+(8+ut)+"px"]),gt(t,'.abtasty-tooltip.tooltip[x-placement^="'+o+'"]',"after",["border-"+r+"-color: "+dt])})}(),t})}(); |
{ | ||
"name": "@abtasty/tooltip", | ||
"description": "Widget for AB Tasty", | ||
"version": "0.2.0", | ||
"version": "1.0.0", | ||
"icon": "icon.png", | ||
"form": "form.html", | ||
"form": "dist/form.js", | ||
"main": "dist/main.js", | ||
"files": [ | ||
"icon.png", | ||
"form.html", | ||
"dist/main.js" | ||
"dist" | ||
], | ||
@@ -22,21 +21,26 @@ "repository": "https://github.com/liwiocorps/engage-plugin-base.git", | ||
"prepare": "npm run build", | ||
"postpublish": "echo 'Your widget is on NPM. You can now add your widget to AB Tasty at https://app2.abtasty.com/'" | ||
"postpublish": "echo 'Your widget is on NPM. You can now add your widget to AB Tasty Marketplace at https://marketplace.abtasty.com/add'" | ||
}, | ||
"devDependencies": { | ||
"babel-core": "^6.26.0", | ||
"babel-preset-env": "^1.6.1", | ||
"concurrently": "^3.5.0", | ||
"eslint": "^3.16.0", | ||
"eslint-config-google": "^0.7.1", | ||
"rollup": "^0.41.4", | ||
"rollup-plugin-buble": "^0.15.0", | ||
"rollup-plugin-commonjs": "^8.0.2", | ||
"rollup-plugin-eslint": "^3.0.0", | ||
"rollup-plugin-node-resolve": "^2.0.0", | ||
"rollup-plugin-postcss": "^0.5.3", | ||
"rollup-plugin-uglify": "^1.0.1", | ||
"rollup-watch": "^3.2.2" | ||
"cssnano": "^3.10.0", | ||
"eslint": "^4.11.0", | ||
"eslint-config-airbnb-base": "^12.1.0", | ||
"eslint-plugin-import": "^2.8.0", | ||
"postcss-cssnext": "^3.0.2", | ||
"rollup": "^0.51.5", | ||
"rollup-plugin-babel": "^3.0.2", | ||
"rollup-plugin-eslint": "^4.0.0", | ||
"rollup-plugin-node-resolve": "^3.0.0", | ||
"rollup-plugin-postcss": "^0.5.5", | ||
"rollup-plugin-pug": "^0.1.6", | ||
"rollup-plugin-uglify": "^2.0.1", | ||
"rollup-watch": "^4.3.1" | ||
}, | ||
"dependencies": { | ||
"arrive": "^2.3.1", | ||
"bootstrap": "^3.3.7" | ||
"@abtasty/widget-utils": "^1.10.0", | ||
"tooltip.js": "^1.1.7" | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
130
35888
16
3
2
+ Addedtooltip.js@^1.1.7
+ Added@abtasty/widget-utils@1.18.38(transitive)
+ Addedpopper.js@1.16.1(transitive)
+ Addedtooltip.js@1.3.3(transitive)
- Removedarrive@^2.3.1
- Removedbootstrap@^3.3.7
- Removedarrive@2.5.2(transitive)
- Removedbootstrap@3.4.1(transitive)