UNPKG

@europeana/portal

Version:
2 lines 21.8 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{1089:function(t,e,n){"use strict";n.d(e,"a",(function(){return D}));n(16),n(15),n(13),n(10),n(19),n(14),n(20);var r=n(2),o=(n(30),n(8)),c=n(3),l=n(9),h=n(1),d=n(7),f=n(0),v=n(235),m=n(301),O=n(118),T=n(4),j=n(36),y=n(150),$={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left",TOPLEFT:"top",TOPRIGHT:"top",RIGHTTOP:"right",RIGHTBOTTOM:"right",BOTTOMLEFT:"bottom",BOTTOMRIGHT:"bottom",LEFTTOP:"left",LEFTBOTTOM:"left"},w={AUTO:0,TOPLEFT:-1,TOP:0,TOPRIGHT:1,RIGHTTOP:-1,RIGHT:0,RIGHTBOTTOM:1,BOTTOMLEFT:-1,BOTTOM:0,BOTTOMRIGHT:1,LEFTTOP:-1,LEFT:0,LEFTBOTTOM:1},_={arrowPadding:Object(f.c)(h.l,6),boundary:Object(f.c)([O.c,h.q],"scrollParent"),boundaryPadding:Object(f.c)(h.l,5),fallbackPlacement:Object(f.c)(h.f,"flip"),offset:Object(f.c)(h.l,0),placement:Object(f.c)(h.q,"top"),target:Object(f.c)([O.c,O.d])},E=o.default.extend({name:c.pb,props:_,data:function(){return{noFade:!1,localShow:!0,attachment:this.getAttachment(this.placement)}},computed:{templateType:function(){return"unknown"},popperConfig:function(){var t=this,e=this.placement;return{placement:this.getAttachment(e),modifiers:{offset:{offset:this.getOffset(e)},flip:{behavior:this.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{padding:this.boundaryPadding,boundariesElement:this.boundary}},onCreate:function(data){data.originalPlacement!==data.placement&&t.popperPlacementChange(data)},onUpdate:function(data){t.popperPlacementChange(data)}}}},created:function(){var t=this;this.$_popper=null,this.localShow=!0,this.$on(l.N,(function(e){t.popperCreate(e)}));var e=function(){t.$nextTick((function(){Object(T.B)((function(){t.$destroy()}))}))};this.$parent.$once(l.W,e),this.$once(l.u,e)},beforeMount:function(){this.attachment=this.getAttachment(this.placement)},updated:function(){this.updatePopper()},beforeDestroy:function(){this.destroyPopper()},destroyed:function(){var t=this.$el;t&&t.parentNode&&t.parentNode.removeChild(t)},methods:{hide:function(){this.localShow=!1},getAttachment:function(t){return $[String(t).toUpperCase()]||"auto"},getOffset:function(t){if(!this.offset){var e=this.$refs.arrow||Object(T.C)(".arrow",this.$el),n=Object(j.a)(Object(T.k)(e).width,0)+Object(j.a)(this.arrowPadding,0);switch(w[String(t).toUpperCase()]||0){case 1:return"+50%p - ".concat(n,"px");case-1:return"-50%p + ".concat(n,"px");default:return 0}}return this.offset},popperCreate:function(t){this.destroyPopper(),this.$_popper=new m.a(this.target,t,this.popperConfig)},destroyPopper:function(){this.$_popper&&this.$_popper.destroy(),this.$_popper=null},updatePopper:function(){this.$_popper&&this.$_popper.scheduleUpdate()},popperPlacementChange:function(data){this.attachment=this.getAttachment(data.placement)},renderTemplate:function(t){return t("div")}},render:function(t){var e=this,n=this.noFade;return t(y.a,{props:{appear:!0,noFade:n},on:{beforeEnter:function(t){return e.$emit(l.N,t)},afterEnter:function(t){return e.$emit(l.O,t)},beforeLeave:function(t){return e.$emit(l.v,t)},afterLeave:function(t){return e.$emit(l.u,t)}}},[this.localShow?this.renderTemplate(t):t()])}});function P(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function S(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?P(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):P(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var I={html:Object(f.c)(h.g,!1),id:Object(f.c)(h.q)},D=o.default.extend({name:c.Gb,extends:E,mixins:[v.a],props:I,data:function(){return{title:"",content:"",variant:null,customClass:null,interactive:!0}},computed:{templateType:function(){return"tooltip"},templateClasses:function(){var t,e=this.variant,n=this.attachment,o=this.templateType;return[(t={noninteractive:!this.interactive},Object(r.a)(t,"b-".concat(o,"-").concat(e),e),Object(r.a)(t,"bs-".concat(o,"-").concat(n),n),t),this.customClass]},templateAttributes:function(){var t=this.id;return S(S({},this.$parent.$parent.$attrs),{},{id:t,role:"tooltip",tabindex:"-1"},this.scopedStyleAttrs)},templateListeners:function(){var t=this;return{mouseenter:function(e){t.$emit(l.y,e)},mouseleave:function(e){t.$emit(l.z,e)},focusin:function(e){t.$emit(l.r,e)},focusout:function(e){t.$emit(l.s,e)}}}},methods:{renderTemplate:function(t){var title=this.title,e=Object(d.e)(title)?title({}):title,n=this.html&&!Object(d.e)(title)?{innerHTML:title}:{};return t("div",{staticClass:"tooltip b-tooltip",class:this.templateClasses,attrs:this.templateAttributes,on:this.templateListeners},[t("div",{staticClass:"arrow",ref:"arrow"}),t("div",{staticClass:"tooltip-inner",domProps:n},[e])])}}})},1090:function(t,e,n){"use strict";n.d(e,"a",(function(){return B}));n(16),n(15),n(19),n(20);var r=n(2),o=(n(10),n(14),n(21),n(41),n(52),n(139),n(50),n(13),n(3)),c=n(25),l=n(9),h=n(27),d=n(84),f=n(327),v=n(45),m=n(7),O=n(69),T=n(36),j=n(5),y=n(985);function $(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function w(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?$(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):$(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var _="__BV_Tooltip__",E={focus:!0,hover:!0,click:!0,blur:!0,manual:!0},P=/^html$/i,S=/^noninteractive$/i,I=/^nofade$/i,D=/^(auto|top(left|right)?|bottom(left|right)?|left(top|bottom)?|right(top|bottom)?)$/i,L=/^(window|viewport|scrollParent)$/i,k=/^d\d+$/i,C=/^ds\d+$/i,H=/^dh\d+$/i,x=/^o-?\d+$/i,A=/^v-.+$/i,F=/\s+/,M=function(t,e,n){if(c.g){var r=function(t,e){var n={title:void 0,trigger:"",placement:"top",fallbackPlacement:"flip",container:!1,animation:!0,offset:0,id:null,html:!1,interactive:!0,disabled:!1,delay:Object(d.c)(o.Eb,"delay",50),boundary:String(Object(d.c)(o.Eb,"boundary","scrollParent")),boundaryPadding:Object(T.b)(Object(d.c)(o.Eb,"boundaryPadding",5),0),variant:Object(d.c)(o.Eb,"variant"),customClass:Object(d.c)(o.Eb,"customClass")};if(Object(m.m)(t.value)||Object(m.g)(t.value)||Object(m.e)(t.value)?n.title=t.value:Object(m.j)(t.value)&&(n=w(w({},n),t.value)),Object(m.n)(n.title)){var data=e.data||{};n.title=data.attrs&&!Object(m.o)(data.attrs.title)?data.attrs.title:void 0}Object(m.j)(n.delay)||(n.delay={show:Object(T.b)(n.delay,0),hide:Object(T.b)(n.delay,0)}),t.arg&&(n.container="#".concat(t.arg)),Object(j.h)(t.modifiers).forEach((function(t){if(P.test(t))n.html=!0;else if(S.test(t))n.interactive=!1;else if(I.test(t))n.animation=!1;else if(D.test(t))n.placement=t;else if(L.test(t))t="scrollparent"===t?"scrollParent":t,n.boundary=t;else if(k.test(t)){var e=Object(T.b)(t.slice(1),0);n.delay.show=e,n.delay.hide=e}else C.test(t)?n.delay.show=Object(T.b)(t.slice(2),0):H.test(t)?n.delay.hide=Object(T.b)(t.slice(2),0):x.test(t)?n.offset=Object(T.b)(t.slice(1),0):A.test(t)&&(n.variant=t.slice(2)||null)}));var r={};return Object(h.b)(n.trigger||"").filter(v.a).join(" ").trim().toLowerCase().split(F).forEach((function(t){E[t]&&(r[t]=!0)})),Object(j.h)(t.modifiers).forEach((function(t){t=t.toLowerCase(),E[t]&&(r[t]=!0)})),n.trigger=Object(j.h)(r).join(" "),"blur"===n.trigger&&(n.trigger="focus"),n.trigger||(n.trigger="hover focus"),n}(e,n);if(!t[_]){var $=n.context;t[_]=new y.a({parent:$,_scopeId:Object(f.a)($,void 0)}),t[_].__bv_prev_data__={},t[_].$on(l.N,(function(){Object(m.e)(r.title)&&t[_].updateData({title:r.title(t)})}))}var data={title:r.title,triggers:r.trigger,placement:r.placement,fallbackPlacement:r.fallbackPlacement,variant:r.variant,customClass:r.customClass,container:r.container,boundary:r.boundary,delay:r.delay,offset:r.offset,noFade:!r.animation,id:r.id,interactive:r.interactive,disabled:r.disabled,html:r.html},M=t[_].__bv_prev_data__;if(t[_].__bv_prev_data__=data,!Object(O.a)(data,M)){var B={target:t};Object(j.h)(data).forEach((function(e){data[e]!==M[e]&&(B[e]="title"===e&&Object(m.e)(data[e])?data[e](t):data[e])})),t[_].updateData(B)}}},B={bind:function(t,e,n){M(t,e,n)},componentUpdated:function(t,e,n){n.context.$nextTick((function(){M(t,e,n)}))},unbind:function(t){!function(t){t[_]&&(t[_].$destroy(),t[_]=null),delete t[_]}(t)}}},823:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){}},985:function(t,e,n){"use strict";n.d(e,"a",(function(){return F}));n(16),n(15),n(19),n(20);var r=n(2),o=(n(50),n(30),n(315),n(21),n(52),n(139),n(13),n(10),n(14),n(37),n(111),n(8)),c=n(12),l=n(3),h=n(9),d=n(27),f=n(4),v=n(11),m=n(327),O=n(45),T=n(7),j=n(69),y=n(83),$=n(823),w=n(36),_=n(5),E=n(66),P=n(159),S=n(78),I=n(1089);function D(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function L(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?D(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):D(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var k=".modal-content",C=Object(v.e)(l.eb,h.u),H=[k,".b-sidebar"].join(", "),x="data-original-title",A={title:"",content:"",variant:null,customClass:null,triggers:"",placement:"auto",fallbackPlacement:"flip",target:null,container:null,noFade:!1,boundary:"scrollParent",boundaryPadding:5,offset:0,delay:0,arrowPadding:6,interactive:!0,disabled:!1,id:null,html:!1},F=o.default.extend({name:l.Fb,mixins:[S.a],data:function(){return L(L({},A),{},{activeTrigger:{hover:!1,click:!1,focus:!1},localShow:!1})},computed:{templateType:function(){return"tooltip"},computedId:function(){return this.id||"__bv_".concat(this.templateType,"_").concat(this[c.a],"__")},computedDelay:function(){var t={show:0,hide:0};return Object(T.j)(this.delay)?(t.show=Object(y.b)(Object(w.b)(this.delay.show,0),0),t.hide=Object(y.b)(Object(w.b)(this.delay.hide,0),0)):(Object(T.g)(this.delay)||Object(T.m)(this.delay))&&(t.show=t.hide=Object(y.b)(Object(w.b)(this.delay,0),0)),t},computedTriggers:function(){return Object(d.b)(this.triggers).filter(O.a).join(" ").trim().toLowerCase().split(/\s+/).sort()},isWithActiveTrigger:function(){for(var t in this.activeTrigger)if(this.activeTrigger[t])return!0;return!1},computedTemplateData:function(){return{title:this.title,content:this.content,variant:this.variant,customClass:this.customClass,noFade:this.noFade,interactive:this.interactive}}},watch:{computedTriggers:function(t,e){var n=this;Object(j.a)(t,e)||this.$nextTick((function(){n.unListen(),e.forEach((function(e){Object(d.a)(t,e)||n.activeTrigger[e]&&(n.activeTrigger[e]=!1)})),n.listen()}))},computedTemplateData:function(){this.handleTemplateUpdate()},title:function(t,e){t===e||t||this.hide()},disabled:function(t){t?this.disable():this.enable()}},created:function(){var t=this;this.$_tip=null,this.$_hoverTimeout=null,this.$_hoverState="",this.$_visibleInterval=null,this.$_enabled=!this.disabled,this.$_noop=$.a.bind(this),this.$parent&&this.$parent.$once(h.V,(function(){t.$nextTick((function(){Object(f.B)((function(){t.$destroy()}))}))})),this.$nextTick((function(){var e=t.getTarget();e&&Object(f.f)(document.body,e)?(t.scopeId=Object(m.a)(t.$parent),t.listen()):Object(E.a)(Object(T.m)(t.target)?'Unable to find target element by ID "#'.concat(t.target,'" in document.'):"The provided target is no valid HTML element.",t.templateType)}))},updated:function(){this.$nextTick(this.handleTemplateUpdate)},deactivated:function(){this.forceHide()},beforeDestroy:function(){this.unListen(),this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.clearVisibilityInterval(),this.destroyTemplate(),this.$_noop=null},methods:{getTemplate:function(){return I.a},updateData:function(){var t=this,data=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=!1;Object(_.h)(A).forEach((function(n){Object(T.n)(data[n])||t[n]===data[n]||(t[n]=data[n],"title"===n&&(e=!0))})),e&&this.localShow&&this.fixTitle()},createTemplateAndShow:function(){var t=this.getContainer(),e=this.getTemplate(),n=this.$_tip=new e({parent:this,propsData:{id:this.computedId,html:this.html,placement:this.placement,fallbackPlacement:this.fallbackPlacement,target:this.getPlacementTarget(),boundary:this.getBoundary(),offset:Object(w.b)(this.offset,0),arrowPadding:Object(w.b)(this.arrowPadding,0),boundaryPadding:Object(w.b)(this.boundaryPadding,0)}});this.handleTemplateUpdate(),n.$once(h.N,this.onTemplateShow),n.$once(h.O,this.onTemplateShown),n.$once(h.v,this.onTemplateHide),n.$once(h.u,this.onTemplateHidden),n.$once(h.W,this.destroyTemplate),n.$on(h.r,this.handleEvent),n.$on(h.s,this.handleEvent),n.$on(h.y,this.handleEvent),n.$on(h.z,this.handleEvent),n.$mount(t.appendChild(document.createElement("div")))},hideTemplate:function(){this.$_tip&&this.$_tip.hide(),this.clearActiveTriggers(),this.$_hoverState=""},destroyTemplate:function(){this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.localPlacementTarget=null;try{this.$_tip.$destroy()}catch(t){}this.$_tip=null,this.removeAriaDescribedby(),this.restoreTitle(),this.localShow=!1},getTemplateElement:function(){return this.$_tip?this.$_tip.$el:null},handleTemplateUpdate:function(){var t=this,e=this.$_tip;if(e){["title","content","variant","customClass","noFade","interactive"].forEach((function(n){e[n]!==t[n]&&(e[n]=t[n])}))}},show:function(){var t=this.getTarget();if(t&&Object(f.f)(document.body,t)&&Object(f.u)(t)&&!this.dropdownOpen()&&(!Object(T.o)(this.title)&&""!==this.title||!Object(T.o)(this.content)&&""!==this.content)&&!this.$_tip&&!this.localShow){this.localShow=!0;var e=this.buildEvent(h.N,{cancelable:!0});this.emitEvent(e),e.defaultPrevented?this.destroyTemplate():(this.fixTitle(),this.addAriaDescribedby(),this.createTemplateAndShow())}},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.getTemplateElement();if(e&&this.localShow){var n=this.buildEvent(h.v,{cancelable:!t});this.emitEvent(n),n.defaultPrevented||this.hideTemplate()}else this.restoreTitle()},forceHide:function(){this.getTemplateElement()&&this.localShow&&(this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.$_tip&&(this.$_tip.noFade=!0),this.hide(!0))},enable:function(){this.$_enabled=!0,this.emitEvent(this.buildEvent(h.o))},disable:function(){this.$_enabled=!1,this.emitEvent(this.buildEvent(h.k))},onTemplateShow:function(){this.setWhileOpenListeners(!0)},onTemplateShown:function(){var t=this.$_hoverState;this.$_hoverState="","out"===t&&this.leave(null),this.emitEvent(this.buildEvent(h.O))},onTemplateHide:function(){this.setWhileOpenListeners(!1)},onTemplateHidden:function(){this.destroyTemplate(),this.emitEvent(this.buildEvent(h.u))},getTarget:function(){var t=this.target;return Object(T.m)(t)?t=Object(f.j)(t.replace(/^#/,"")):Object(T.e)(t)?t=t():t&&(t=t.$el||t),Object(f.s)(t)?t:null},getPlacementTarget:function(){return this.getTarget()},getTargetId:function(){var t=this.getTarget();return t&&t.id?t.id:null},getContainer:function(){var t=!!this.container&&(this.container.$el||this.container),body=document.body,e=this.getTarget();return!1===t?Object(f.e)(H,e)||body:Object(T.m)(t)&&Object(f.j)(t.replace(/^#/,""))||body},getBoundary:function(){return this.boundary?this.boundary.$el||this.boundary:"scrollParent"},isInModal:function(){var t=this.getTarget();return t&&Object(f.e)(k,t)},isDropdown:function(){var t=this.getTarget();return t&&Object(f.p)(t,"dropdown")},dropdownOpen:function(){var t=this.getTarget();return this.isDropdown()&&t&&Object(f.C)(".dropdown-menu.show",t)},clearHoverTimeout:function(){clearTimeout(this.$_hoverTimeout),this.$_hoverTimeout=null},clearVisibilityInterval:function(){clearInterval(this.$_visibleInterval),this.$_visibleInterval=null},clearActiveTriggers:function(){for(var t in this.activeTrigger)this.activeTrigger[t]=!1},addAriaDescribedby:function(){var t=this.getTarget(),desc=Object(f.h)(t,"aria-describedby")||"";desc=desc.split(/\s+/).concat(this.computedId).join(" ").trim(),Object(f.E)(t,"aria-describedby",desc)},removeAriaDescribedby:function(){var t=this,e=this.getTarget(),desc=Object(f.h)(e,"aria-describedby")||"";(desc=desc.split(/\s+/).filter((function(e){return e!==t.computedId})).join(" ").trim())?Object(f.E)(e,"aria-describedby",desc):Object(f.x)(e,"aria-describedby")},fixTitle:function(){var t=this.getTarget();if(Object(f.o)(t,"title")){var title=Object(f.h)(t,"title");Object(f.E)(t,"title",""),title&&Object(f.E)(t,x,title)}},restoreTitle:function(){var t=this.getTarget();if(Object(f.o)(t,x)){var title=Object(f.h)(t,x);Object(f.x)(t,x),title&&Object(f.E)(t,"title",title)}},buildEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new P.a(t,L({cancelable:!1,target:this.getTarget(),relatedTarget:this.getTemplateElement()||null,componentId:this.computedId,vueTarget:this},e))},emitEvent:function(t){var e=t.type;this.emitOnRoot(Object(v.e)(this.templateType,e),t),this.$emit(e,t)},listen:function(){var t=this,e=this.getTarget();e&&(this.setRootListener(!0),this.computedTriggers.forEach((function(n){"click"===n?Object(v.b)(e,"click",t.handleEvent,h.T):"focus"===n?(Object(v.b)(e,"focusin",t.handleEvent,h.T),Object(v.b)(e,"focusout",t.handleEvent,h.T)):"blur"===n?Object(v.b)(e,"focusout",t.handleEvent,h.T):"hover"===n&&(Object(v.b)(e,"mouseenter",t.handleEvent,h.T),Object(v.b)(e,"mouseleave",t.handleEvent,h.T))}),this))},unListen:function(){var t=this,e=this.getTarget();this.setRootListener(!1),["click","focusin","focusout","mouseenter","mouseleave"].forEach((function(n){e&&Object(v.a)(e,n,t.handleEvent,h.T)}),this)},setRootListener:function(t){var e=this.$root;if(e){var n=t?"$on":"$off",r=this.templateType;e[n](Object(v.d)(r,h.v),this.doHide),e[n](Object(v.d)(r,h.N),this.doShow),e[n](Object(v.d)(r,h.j),this.doDisable),e[n](Object(v.d)(r,h.n),this.doEnable)}},setWhileOpenListeners:function(t){this.setModalListener(t),this.setDropdownListener(t),this.visibleCheck(t),this.setOnTouchStartListener(t)},visibleCheck:function(t){var e=this;this.clearVisibilityInterval();var n=this.getTarget(),r=this.getTemplateElement();t&&(this.$_visibleInterval=setInterval((function(){!r||!e.localShow||n.parentNode&&Object(f.u)(n)||e.forceHide()}),100))},setModalListener:function(t){this.isInModal()&&this.$root[t?"$on":"$off"](C,this.forceHide)},setOnTouchStartListener:function(t){var e=this;"ontouchstart"in document.documentElement&&Object(d.d)(document.body.children).forEach((function(n){Object(v.c)(t,n,"mouseover",e.$_noop)}))},setDropdownListener:function(t){var e=this.getTarget();e&&this.$root&&this.isDropdown&&e.__vue__&&e.__vue__[t?"$on":"$off"](h.O,this.forceHide)},handleEvent:function(t){var e=this.getTarget();if(e&&!Object(f.r)(e)&&this.$_enabled&&!this.dropdownOpen()){var n=t.type,r=this.computedTriggers;if("click"===n&&Object(d.a)(r,"click"))this.click(t);else if("mouseenter"===n&&Object(d.a)(r,"hover"))this.enter(t);else if("focusin"===n&&Object(d.a)(r,"focus"))this.enter(t);else if("focusout"===n&&(Object(d.a)(r,"focus")||Object(d.a)(r,"blur"))||"mouseleave"===n&&Object(d.a)(r,"hover")){var o=this.getTemplateElement(),c=t.target,l=t.relatedTarget;if(o&&Object(f.f)(o,c)&&Object(f.f)(e,l)||o&&Object(f.f)(e,c)&&Object(f.f)(o,l)||o&&Object(f.f)(o,c)&&Object(f.f)(o,l)||Object(f.f)(e,c)&&Object(f.f)(e,l))return;this.leave(t)}}},doHide:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.forceHide()},doShow:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.show()},doDisable:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.disable()},doEnable:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.enable()},click:function(t){this.$_enabled&&!this.dropdownOpen()&&(Object(f.d)(t.currentTarget),this.activeTrigger.click=!this.activeTrigger.click,this.isWithActiveTrigger?this.enter(null):this.leave(null))},toggle:function(){this.$_enabled&&!this.dropdownOpen()&&(this.localShow?this.leave(null):this.enter(null))},enter:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.activeTrigger["focusin"===e.type?"focus":"hover"]=!0),this.localShow||"in"===this.$_hoverState?this.$_hoverState="in":(this.clearHoverTimeout(),this.$_hoverState="in",this.computedDelay.show?(this.fixTitle(),this.$_hoverTimeout=setTimeout((function(){"in"===t.$_hoverState?t.show():t.localShow||t.restoreTitle()}),this.computedDelay.show)):this.show())},leave:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.activeTrigger["focusout"===e.type?"focus":"hover"]=!1,"focusout"===e.type&&Object(d.a)(this.computedTriggers,"blur")&&(this.activeTrigger.click=!1,this.activeTrigger.hover=!1)),this.isWithActiveTrigger||(this.clearHoverTimeout(),this.$_hoverState="out",this.computedDelay.hide?this.$_hoverTimeout=setTimeout((function(){"out"===t.$_hoverState&&t.hide()}),this.computedDelay.hide):this.hide())}}})}}]); //# sourceMappingURL=f99e2f0.js.map