@rero/rero-ils-ui
Version:
User interface for RERO integrated library system (RERO ILS).
62 lines (53 loc) • 22.1 kB
JavaScript
import{d as J}from"./chunk-MR6TFYJD.js";import{Ba as $,D as C,E as B,Ea as K,F as q,Fa as G,Ha as I,J as a,M as D,P as E,Q as W,S as L,ba as c,ka as U,na as _,x as T}from"./chunk-FRI676LD.js";import{Fa as Z}from"./chunk-WKOKZ3JO.js";import{Ab as N,Ca as b,Db as R,Dd as u,Ed as f,Fa as V,Vc as k,a as h,da as S,ea as H,ga as A,ia as w,pd as F,qb as x,tb as M,vd as v,wa as P,zb as z}from"./chunk-3WD6XLXL.js";var Q=class r{static isArray(e,t=!0){return Array.isArray(e)&&(t||e.length!==0)}static isObject(e,t=!0){return typeof e=="object"&&!Array.isArray(e)&&e!=null&&(t||Object.keys(e).length!==0)}static equals(e,t,i){return i?this.resolveFieldData(e,i)===this.resolveFieldData(t,i):this.equalsByValue(e,t)}static equalsByValue(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var i=Array.isArray(e),o=Array.isArray(t),n,s,l;if(i&&o){if(s=e.length,s!=t.length)return!1;for(n=s;n--!==0;)if(!this.equalsByValue(e[n],t[n]))return!1;return!0}if(i!=o)return!1;var p=this.isDate(e),g=this.isDate(t);if(p!=g)return!1;if(p&&g)return e.getTime()==t.getTime();var m=e instanceof RegExp,y=t instanceof RegExp;if(m!=y)return!1;if(m&&y)return e.toString()==t.toString();var d=Object.keys(e);if(s=d.length,s!==Object.keys(t).length)return!1;for(n=s;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,d[n]))return!1;for(n=s;n--!==0;)if(l=d[n],!this.equalsByValue(e[l],t[l]))return!1;return!0}return e!==e&&t!==t}static resolveFieldData(e,t){if(e&&t){if(this.isFunction(t))return t(e);if(t.indexOf(".")==-1)return e[t];{let i=t.split("."),o=e;for(let n=0,s=i.length;n<s;++n){if(o==null)return null;o=o[i[n]]}return o}}else return null}static isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)}static reorderArray(e,t,i){let o;e&&t!==i&&(i>=e.length&&(i%=e.length,t%=e.length),e.splice(i,0,e.splice(t,1)[0]))}static insertIntoOrderedArray(e,t,i,o){if(i.length>0){let n=!1;for(let s=0;s<i.length;s++)if(this.findIndexInList(i[s],o)>t){i.splice(s,0,e),n=!0;break}n||i.push(e)}else i.push(e)}static findIndexInList(e,t){let i=-1;if(t){for(let o=0;o<t.length;o++)if(t[o]==e){i=o;break}}return i}static contains(e,t){if(e!=null&&t&&t.length){for(let i of t)if(this.equals(e,i))return!0}return!1}static removeAccents(e){return e&&(e=e.normalize("NFKD").replace(new RegExp("\\p{Diacritic}","gu"),"")),e}static isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}static isEmpty(e){return e==null||e===""||Array.isArray(e)&&e.length===0||!this.isDate(e)&&typeof e=="object"&&Object.keys(e).length===0}static isNotEmpty(e){return!this.isEmpty(e)}static compare(e,t,i,o=1){let n=-1,s=this.isEmpty(e),l=this.isEmpty(t);return s&&l?n=0:s?n=o:l?n=-o:typeof e=="string"&&typeof t=="string"?n=e.localeCompare(t,i,{numeric:!0}):n=e<t?-1:e>t?1:0,n}static sort(e,t,i=1,o,n=1){let s=r.compare(e,t,o,i),l=i;return(r.isEmpty(e)||r.isEmpty(t))&&(l=n===1?i:n),l*s}static merge(e,t){if(!(e==null&&t==null)){{if((e==null||typeof e=="object")&&(t==null||typeof t=="object"))return h(h({},e||{}),t||{});if((e==null||typeof e=="string")&&(t==null||typeof t=="string"))return[e||"",t||""].join(" ")}return t||e}}static isPrintableCharacter(e=""){return this.isNotEmpty(e)&&e.length===1&&e.match(/\S| /)}static getItemValue(e,...t){return this.isFunction(e)?e(...t):e}static findLastIndex(e,t){let i=-1;if(this.isNotEmpty(e))try{i=e.findLastIndex(t)}catch{i=e.lastIndexOf([...e].reverse().find(t))}return i}static findLast(e,t){let i;if(this.isNotEmpty(e))try{i=e.findLast(t)}catch{i=[...e].reverse().find(t)}return i}static deepEquals(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var i=Array.isArray(e),o=Array.isArray(t),n,s,l;if(i&&o){if(s=e.length,s!=t.length)return!1;for(n=s;n--!==0;)if(!this.deepEquals(e[n],t[n]))return!1;return!0}if(i!=o)return!1;var p=e instanceof Date,g=t instanceof Date;if(p!=g)return!1;if(p&&g)return e.getTime()==t.getTime();var m=e instanceof RegExp,y=t instanceof RegExp;if(m!=y)return!1;if(m&&y)return e.toString()==t.toString();var d=Object.keys(e);if(s=d.length,s!==Object.keys(t).length)return!1;for(n=s;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,d[n]))return!1;for(n=s;n--!==0;)if(l=d[n],!this.deepEquals(e[l],t[l]))return!1;return!0}return e!==e&&t!==t}static minifyCSS(e){return e&&e.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}static toFlatCase(e){return this.isString(e)?e.replace(/(-|_)/g,"").toLowerCase():e}static isString(e,t=!0){return typeof e=="string"&&(t||e!=="")}},X=0;function ot(r="pn_id_"){return X++,`${r}${X}`}function et(){let r=[],e=(n,s)=>{let l=r.length>0?r[r.length-1]:{key:n,value:s},p=l.value+(l.key===n?0:s)+2;return r.push({key:n,value:p}),p},t=n=>{r=r.filter(s=>s.value!==n)},i=()=>r.length>0?r[r.length-1].value:0,o=n=>n&&parseInt(n.style.zIndex,10)||0;return{get:o,set:(n,s,l)=>{s&&(s.style.zIndex=String(e(n,l)))},clear:n=>{n&&(t(o(n)),n.style.zIndex="")},getCurrent:()=>i(),generateZIndex:e,revertZIndex:t}}var O=et(),st=r=>!!r;var Y=`
.p-tooltip {
position: absolute;
display: none;
max-width: dt('tooltip.max.width');
}
.p-tooltip-right,
.p-tooltip-left {
padding: 0 dt('tooltip.gutter');
}
.p-tooltip-top,
.p-tooltip-bottom {
padding: dt('tooltip.gutter') 0;
}
.p-tooltip-text {
white-space: pre-line;
word-break: break-word;
background: dt('tooltip.background');
color: dt('tooltip.color');
padding: dt('tooltip.padding');
box-shadow: dt('tooltip.shadow');
border-radius: dt('tooltip.border.radius');
}
.p-tooltip-arrow {
position: absolute;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
}
.p-tooltip-right .p-tooltip-arrow {
margin-top: calc(-1 * dt('tooltip.gutter'));
border-width: dt('tooltip.gutter') dt('tooltip.gutter') dt('tooltip.gutter') 0;
border-right-color: dt('tooltip.background');
}
.p-tooltip-left .p-tooltip-arrow {
margin-top: calc(-1 * dt('tooltip.gutter'));
border-width: dt('tooltip.gutter') 0 dt('tooltip.gutter') dt('tooltip.gutter');
border-left-color: dt('tooltip.background');
}
.p-tooltip-top .p-tooltip-arrow {
margin-left: calc(-1 * dt('tooltip.gutter'));
border-width: dt('tooltip.gutter') dt('tooltip.gutter') 0 dt('tooltip.gutter');
border-top-color: dt('tooltip.background');
border-bottom-color: dt('tooltip.background');
}
.p-tooltip-bottom .p-tooltip-arrow {
margin-left: calc(-1 * dt('tooltip.gutter'));
border-width: 0 dt('tooltip.gutter') dt('tooltip.gutter') dt('tooltip.gutter');
border-top-color: dt('tooltip.background');
border-bottom-color: dt('tooltip.background');
}
`;var it={root:"p-tooltip p-component",arrow:"p-tooltip-arrow",text:"p-tooltip-text"},j=(()=>{class r extends ${name="tooltip";style=Y;classes=it;static \u0275fac=(()=>{let t;return function(o){return(t||(t=V(r)))(o||r)}})();static \u0275prov=S({token:r,factory:r.\u0275fac})}return r})(),nt=(function(r){return r.root="p-tooltip",r.arrow="p-tooltip-arrow",r.text="p-tooltip-text",r})(nt||{}),tt=new A("TOOLTIP_INSTANCE"),wt=(()=>{class r extends G{zone;viewContainer;componentName="Tooltip";$pcTooltip=w(tt,{optional:!0,skipSelf:!0})??void 0;tooltipPosition;tooltipEvent="hover";positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;showOnEllipsis=!1;content;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this.deactivate()}tooltipOptions;appendTo=v(void 0);$appendTo=F(()=>this.appendTo()||this.config.overlayAppendTo());_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,showOnEllipsis:!1,id:_("pn_id_")+"_tooltip"};_disabled;container;styleClass;tooltipText;rootPTClasses="";showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;touchStartListener;touchEndListener;documentTouchListener;documentEscapeListener;scrollHandler;resizeListener;_componentStyle=w(j);interactionInProgress=!1;ptTooltip=v();pTooltipPT=v();pTooltipUnstyled=v();constructor(t,i){super(),this.zone=t,this.viewContainer=i,b(()=>{let o=this.ptTooltip()||this.pTooltipPT();o&&this.directivePT.set(o)}),b(()=>{this.pTooltipUnstyled()&&this.directiveUnstyled.set(this.pTooltipUnstyled())})}onAfterViewInit(){Z(this.platformId)&&this.zone.runOutsideAngular(()=>{let t=this.getOption("tooltipEvent");if((t==="hover"||t==="both")&&(this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener),this.touchStartListener=this.onTouchStart.bind(this),this.touchEndListener=this.onTouchEnd.bind(this),this.el.nativeElement.addEventListener("touchstart",this.touchStartListener,{passive:!0}),this.el.nativeElement.addEventListener("touchend",this.touchEndListener,{passive:!0})),t==="focus"||t==="both"){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let i=this.el.nativeElement.querySelector(".p-component");i||(i=this.getTarget(this.el.nativeElement)),i.addEventListener("focus",this.focusListener),i.addEventListener("blur",this.blurListener)}})}onChanges(t){t.tooltipPosition&&this.setOption({tooltipPosition:t.tooltipPosition.currentValue}),t.tooltipEvent&&this.setOption({tooltipEvent:t.tooltipEvent.currentValue}),t.appendTo&&this.setOption({appendTo:t.appendTo.currentValue}),t.positionStyle&&this.setOption({positionStyle:t.positionStyle.currentValue}),t.tooltipStyleClass&&this.setOption({tooltipStyleClass:t.tooltipStyleClass.currentValue}),t.tooltipZIndex&&this.setOption({tooltipZIndex:t.tooltipZIndex.currentValue}),t.escape&&this.setOption({escape:t.escape.currentValue}),t.showDelay&&this.setOption({showDelay:t.showDelay.currentValue}),t.hideDelay&&this.setOption({hideDelay:t.hideDelay.currentValue}),t.life&&this.setOption({life:t.life.currentValue}),t.positionTop&&this.setOption({positionTop:t.positionTop.currentValue}),t.positionLeft&&this.setOption({positionLeft:t.positionLeft.currentValue}),t.disabled&&this.setOption({disabled:t.disabled.currentValue}),t.content&&(this.setOption({tooltipLabel:t.content.currentValue}),this.active&&(t.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),t.autoHide&&this.setOption({autoHide:t.autoHide.currentValue}),t.showOnEllipsis&&this.setOption({showOnEllipsis:t.showOnEllipsis.currentValue}),t.id&&this.setOption({id:t.id.currentValue}),t.tooltipOptions&&(this._tooltipOptions=h(h({},this._tooltipOptions),t.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(t){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(t){this.isAutoHide()?this.deactivate():!(T(t.relatedTarget,"p-tooltip")||T(t.relatedTarget,"p-tooltip-text")||T(t.relatedTarget,"p-tooltip-arrow"))&&this.deactivate()}onTouchStart(t){!this.container&&!this.showTimeout&&(this.activate(),this.isAutoHide()||this.bindDocumentTouchListener())}onTouchEnd(t){this.isAutoHide()&&this.deactivate()}bindDocumentTouchListener(){this.documentTouchListener||(this.documentTouchListener=this.renderer.listen("document","touchstart",t=>{this.container&&!this.container.contains(t.target)&&!this.el.nativeElement.contains(t.target)&&(this.deactivate(),this.unbindDocumentTouchListener())}))}unbindDocumentTouchListener(){this.documentTouchListener&&(this.documentTouchListener(),this.documentTouchListener=null)}onFocus(t){this.activate()}onBlur(t){this.deactivate()}onInputClick(t){this.deactivate()}hasEllipsis(){let t=this.el.nativeElement;return t.offsetWidth<t.scrollWidth||t.offsetHeight<t.scrollHeight}activate(){if(!this.interactionInProgress){if(this.getOption("showOnEllipsis")&&!this.hasEllipsis())return;if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let t=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},t)}this.getOption("hideOnEscape")&&(this.documentEscapeListener=this.renderer.listen("document","keydown.escape",()=>{this.deactivate(),this.documentEscapeListener?.()})),this.interactionInProgress=!0}}deactivate(){this.interactionInProgress=!1,this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide(),this.documentEscapeListener&&this.documentEscapeListener()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=E("div",{class:this.cx("root"),"p-bind":this.ptm("root"),"data-pc-section":"root"}),this.container.setAttribute("role","tooltip");let t=E("div",{class:this.cx("arrow"),"p-bind":this.ptm("arrow"),"data-pc-section":"arrow"});this.container.appendChild(t),this.tooltipText=E("div",{class:this.cx("text"),"p-bind":this.ptm("text"),"data-pc-section":"text"}),this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),this.getOption("appendTo")==="body"?document.body.appendChild(this.container):this.getOption("appendTo")==="target"?D(this.container,this.el.nativeElement):D(this.getOption("appendTo"),this.container),this.container.style.display="none",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){if(!this.containerMouseleaveListener){let t=this.container??this.container.nativeElement;this.containerMouseleaveListener=this.renderer.listen(t,"mouseleave",i=>{this.deactivate()})}}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){if(!this.getOption("tooltipLabel")||this.getOption("disabled"))return;this.create(),this.el.nativeElement.closest("p-dialog")?setTimeout(()=>{this.container&&(this.container.style.display="inline-block"),this.container&&this.align()},100):(this.container.style.display="inline-block",this.align()),W(this.container,250),this.getOption("tooltipZIndex")==="auto"?O.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener()}hide(){this.getOption("tooltipZIndex")==="auto"&&O.clear(this.container),this.remove()}updateText(){let t=this.getOption("tooltipLabel");if(t&&typeof t.createEmbeddedView=="function"){let i=this.viewContainer.createEmbeddedView(t);i.detectChanges(),i.rootNodes.forEach(o=>this.tooltipText.appendChild(o))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(t))):this.tooltipText.innerHTML=t}align(){let t=this.getOption("tooltipPosition"),o={top:[this.alignTop,this.alignBottom,this.alignRight,this.alignLeft],bottom:[this.alignBottom,this.alignTop,this.alignRight,this.alignLeft],left:[this.alignLeft,this.alignRight,this.alignTop,this.alignBottom],right:[this.alignRight,this.alignLeft,this.alignTop,this.alignBottom]}[t]||[];for(let[n,s]of o.entries())if(n===0)s.call(this);else if(this.isOutOfBounds())s.call(this);else break}getHostOffset(){if(this.getOption("appendTo")==="body"||this.getOption("appendTo")==="target"){let t=this.el.nativeElement.getBoundingClientRect(),i=t.left+B(),o=t.top+q();return{left:i,top:o}}else return{left:0,top:0}}get activeElement(){return this.el.nativeElement.nodeName.startsWith("P-")?L(this.el.nativeElement,".p-component"):this.el.nativeElement}alignRight(){this.preAlign("right");let t=this.activeElement,i=a(t),o=(c(t)-c(this.container))/2;this.alignTooltip(i,o);let n=this.getArrowElement();n.style.top="50%",n.style.right=null,n.style.bottom=null,n.style.left="0"}alignLeft(){this.preAlign("left");let t=this.getArrowElement(),i=a(this.container),o=(c(this.el.nativeElement)-c(this.container))/2;this.alignTooltip(-i,o),t.style.top="50%",t.style.right="0",t.style.bottom=null,t.style.left=null}alignTop(){this.preAlign("top");let t=this.getArrowElement(),i=this.getHostOffset(),o=a(this.container),n=(a(this.el.nativeElement)-a(this.container))/2,s=c(this.container);this.alignTooltip(n,-s);let l=i.left-this.getHostOffset().left+o/2;t.style.top=null,t.style.right=null,t.style.bottom="0",t.style.left=l+"px"}getArrowElement(){return L(this.container,'[data-pc-section="arrow"]')}alignBottom(){this.preAlign("bottom");let t=this.getArrowElement(),i=a(this.container),o=this.getHostOffset(),n=(a(this.el.nativeElement)-a(this.container))/2,s=c(this.el.nativeElement);this.alignTooltip(n,s);let l=o.left-this.getHostOffset().left+i/2;t.style.top="0",t.style.right=null,t.style.bottom=null,t.style.left=l+"px"}alignTooltip(t,i){let o=this.getHostOffset(),n=o.left+t,s=o.top+i;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}setOption(t){this._tooltipOptions=h(h({},this._tooltipOptions),t)}getOption(t){return this._tooltipOptions[t]}getTarget(t){return T(t,"p-inputwrapper")?L(t,"input"):t}preAlign(t){this.container.style.left="-999px",this.container.style.top="-999px",this.container.className=this.cn(this.cx("root"),this.ptm("root")?.class,"p-tooltip-"+t,this.getOption("tooltipStyleClass"))}isOutOfBounds(){let t=this.container.getBoundingClientRect(),i=t.top,o=t.left,n=a(this.container),s=c(this.container),l=C();return o+n>l.width||o<0||i<0||i+s>l.height}onWindowResize(t){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new J(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){let t=this.getOption("tooltipEvent");if((t==="hover"||t==="both")&&(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener),this.el.nativeElement.removeEventListener("touchstart",this.touchStartListener),this.el.nativeElement.removeEventListener("touchend",this.touchEndListener),this.unbindDocumentTouchListener()),t==="focus"||t==="both"){let i=this.el.nativeElement.querySelector(".p-component");i||(i=this.getTarget(this.el.nativeElement)),i.removeEventListener("focus",this.focusListener),i.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&(this.getOption("appendTo")==="body"?document.body.removeChild(this.container):this.getOption("appendTo")==="target"?this.el.nativeElement.removeChild(this.container):U(this.getOption("appendTo"),this.container)),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.unbindDocumentTouchListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}onDestroy(){this.unbindEvents(),this.container&&O.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.documentEscapeListener&&this.documentEscapeListener()}static \u0275fac=function(i){return new(i||r)(x(P),x(M))};static \u0275dir=N({type:r,selectors:[["","pTooltip",""]],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[2,"escape","escape",u],showDelay:[2,"showDelay","showDelay",f],hideDelay:[2,"hideDelay","hideDelay",f],life:[2,"life","life",f],positionTop:[2,"positionTop","positionTop",f],positionLeft:[2,"positionLeft","positionLeft",f],autoHide:[2,"autoHide","autoHide",u],fitContent:[2,"fitContent","fitContent",u],hideOnEscape:[2,"hideOnEscape","hideOnEscape",u],showOnEllipsis:[2,"showOnEllipsis","showOnEllipsis",u],content:[0,"pTooltip","content"],disabled:[0,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions",appendTo:[1,"appendTo"],ptTooltip:[1,"ptTooltip"],pTooltipPT:[1,"pTooltipPT"],pTooltipUnstyled:[1,"pTooltipUnstyled"]},features:[k([j,{provide:tt,useExisting:r},{provide:K,useExisting:r}]),R]})}return r})(),bt=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275mod=z({type:r});static \u0275inj=H({imports:[I,I]})}return r})();export{Q as a,ot as b,O as c,st as d,j as e,nt as f,wt as g,bt as h};