1import{ad as z,aK as R,aJ as v,aL as b,an as K,bp as C,aC as T,bq as x,aq as D,br as P,aH as $,bs as E,bt as H,ak as j,aI as B,aB as I,aO as A,o as L,q as U,w as k,b as Z,aP as q,y as g,G as N,c as _,R as O,x as M}from"./DgttN8Q_.js";import{C as V,x as w}from"./BV26t87A.js";import{B as G}from"./SxrpxHGF.js";import{s as J,O as m}from"./Cy7uFtrf.js";import{R as W}from"./z6wUNT-H.js";import{s as Y}from"./JhHjMal8.js";import"./DLhWdRnk.js";var Q=z.extend({name:"focustrap-directive"}),X=G.extend({style:Q});function h(t){"@babel/helpers - typeof";return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(t)}function S(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function F(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?S(Object(n),!0).forEach(function(o){ee(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function ee(t,e,n){return(e=te(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function te(t){var e=ne(t,"string");return h(e)=="symbol"?e:e+""}function ne(t,e){if(h(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(h(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var oe=X.extend("focustrap",{mounted:function(e,n){var o=n.value||{},i=o.disabled;i||(this.createHiddenFocusableElements(e,n),this.bind(e,n),this.autoElementFocus(e,n)),e.setAttribute("data-pd-focustrap",!0),this.$el=e},updated:function(e,n){var o=n.value||{},i=o.disabled;i&&this.unbind(e)},unmounted:function(e){this.unbind(e)},methods:{getComputedSelector:function(e){return':not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])'.concat(e??"")},bind:function(e,n){var o=this,i=n.value||{},r=i.onFocusIn,a=i.onFocusOut;e.$_pfocustrap_mutationobserver=new MutationObserver(function(s){s.forEach(function(u){if(u.type==="childList"&&!e.contains(document.activeElement)){var l=function(c){var d=C(c)?C(c,o.getComputedSelector(e.$_pfocustrap_focusableselector))?c:b(e,o.getComputedSelector(e.$_pfocustrap_focusableselector)):b(c);return T(d)?d:c.nextSibling&&l(c.nextSibling)};v(l(u.nextSibling))}})}),e.$_pfocustrap_mutationobserver.disconnect(),e.$_pfocustrap_mutationobserver.observe(e,{childList:!0}),e.$_pfocustrap_focusinlistener=function(s){return r&&r(s)},e.$_pfocustrap_focusoutlistener=function(s){return a&&a(s)},e.addEventListener("focusin",e.$_pfocustrap_focusinlistener),e.addEventListener("focusout",e.$_pfocustrap_focusoutlistener)},unbind:function(e){e.$_pfocustrap_mutationobserver&&e.$_pfocustrap_mutationobserver.disconnect(),e.$_pfocustrap_focusinlistener&&e.removeEventListener("focusin",e.$_pfocustrap_focusinlistener)&&(e.$_pfocustrap_focusinlistener=null),e.$_pfocustrap_focusoutlistener&&e.removeEventListener("focusout",e.$_pfocustrap_focusoutlistener)&&(e.$_pfocustrap_focusoutlistener=null)},autoFocus:function(e){this.autoElementFocus(this.$el,{value:F(F({},e),{},{autoFocus:!0})})},autoElementFocus:function(e,n){var o=n.value||{},i=o.autoFocusSelector,r=i===void 0?"":i,a=o.firstFocusableSelector,s=a===void 0?"":a,u=o.autoFocus,l=u===void 0?!1:u,f=b(e,"[autofocus]".concat(this.getComputedSelector(r)));l&&!f&&(f=b(e,this.getComputedSelector(s))),v(f)},onFirstHiddenElementFocus:function(e){var n,o=e.currentTarget,i=e.relatedTarget,r=i===o.$_pfocustrap_lasthiddenfocusableelement||!((n=this.$el)!==null&&n!==void 0&&n.contains(i))?b(o.parentElement,this.getComputedSelector(o.$_pfocustrap_focusableselector)):o.$_pfocustrap_lasthiddenfocusableelement;v(r)},onLastHiddenElementFocus:function(e){var n,o=e.currentTarget,i=e.relatedTarget,r=i===o.$_pfocustrap_firsthiddenfocusableelement||!((n=this.$el)!==null&&n!==void 0&&n.contains(i))?R(o.parentElement,this.getComputedSelector(o.$_pfocustrap_focusableselector)):o.$_pfocustrap_firsthiddenfocusableelement;v(r)},createHiddenFocusableElements:function(e,n){var o=this,i=n.value||{},r=i.tabIndex,a=r===void 0?0:r,s=i.firstFocusableSelector,u=s===void 0?"":s,l=i.lastFocusableSelector,f=l===void 0?"":l,c=function(y){return K("span",{class:"p-hidden-accessible p-hidden-focusable",tabIndex:a,role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:y?.bind(o)})},d=c(this.onFirstHiddenElementFocus),p=c(this.onLastHiddenElementFocus);d.$_pfocustrap_lasthiddenfocusableelement=p,d.$_pfocustrap_focusableselector=u,d.setAttribute("data-pc-section","firstfocusableelement"),p.$_pfocustrap_firsthiddenfocusableelement=d,p.$_pfocustrap_focusableselector=f,p.setAttribute("data-pc-section","lastfocusableelement"),e.prepend(d),e.append(p)}}}),re=` 2 .p-popover { 3 margin-block-start: dt('popover.gutter'); 4 background: dt('popover.background'); 5 color: dt('popover.color'); 6 border: 1px solid dt('popover.border.color');
7 border-radius: dt('popover.border.radius'); 8 box-shadow: dt('popover.shadow'); 9 will-change: transform; 10 } 11 12 .p-popover-content { 13 padding: dt('popover.content.padding'); 14 } 15 16 .p-popover-flipped { 17 margin-block-start: calc(dt('popover.gutter') * -1); 18 margin-block-end: dt('popover.gutter'); 19 } 20 21 .p-popover:after, 22 .p-popover:before { 23 bottom: 100%; 24 left: calc(dt('popover.arrow.offset') + dt('popover.arrow.left')); 25 content: ' '; 26 height: 0; 27 width: 0; 28 position: absolute; 29 pointer-events: none; 30 } 31 32 .p-popover:after { 33 border-width: calc(dt('popover.gutter') - 2px); 34 margin-left: calc(-1 * (dt('popover.gutter') - 2px)); 35 border-style: solid; 36 border-color: transparent; 37 border-bottom-color: dt('popover.background'); 38 } 39 40 .p-popover:before { 41 border-width: dt('popover.gutter'); 42 margin-left: calc(-1 * dt('popover.gutter')); 43 border-style: solid; 44 border-color: transparent; 45 border-bottom-color: dt('popover.border.color'); 46 } 47 48 .p-popover-flipped:after, 49 .p-popover-flipped:before { 50 bottom: auto; 51 top: 100%; 52 } 53 54 .p-popover.p-popover-flipped:after { 55 border-bottom-color: transparent; 56 border-top-color: dt('popover.background'); 57 } 58 59 .p-popover.p-popover-flipped:before { 60 border-bottom-color: transparent; 61 border-top-color: dt('popover.border.color'); 62 } 63`,ie={root:"p-popover p-component",content:"p-popover-content"},se=z.extend({name:"popover",style:re,classes:ie}),ae={name:"BasePopover",extends:Y,props:{dismissable:{type:Boolean,default:!0},appendTo:{type:[String,Object],default:"body"},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},breakpoints:{type:Object,default:null},closeOnEscape:{type:Boolean,default:!0}},style:se,provide:function(){return{$pcPopover:this,$parentInstance:this}}},le={name:"Popover",extends:ae,inheritAttrs:!1,emits:["show","hide"],data:function(){return{visible:!1}},watch:{dismissable:{immediate:!0,handler:function(e){e?this.bindOutsideClickListener():this.unbindOutsideClickListener()}}},selfClick:!1,target:null,eventTarget:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,styleElement:null,overlayEventListener:null,documentKeydownListener:null,contentResizeObserver:null,beforeUnmount:function(){this.dismissable&&this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.destroyStyle(),this.unbindResizeListener(),this.unbindContentResizeListener(),this.target=null,this.container&&this.autoZIndex&&w.clear(this.container),this.overlayEventListener&&(m.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null),this.container=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{toggle:function(e,n){this.visible?this.hide():this.show(e,n)},show:function(e,n){this.visible=!0,this.eventTarget=e.currentTarget,this.target=n||e.currentTarget},hide:function(){this.visible=!1},onContentClick:function(){this.selfClick=!0},onEnter:function(e){var n=this;B(e,{position:"absolute",top:"0"}),this.alignOverlay(),this.dismissable&&this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.autoZIndex&&w.set("overlay",e,this.baseZIndex||this.$primevue.config.zIndex.overlay),this.overlayEventListener=function(o){n.container.contains(o.target)&&(n.selfClick=!0)},this.bindContentResizeListener(),this.focus(),m.on("overlay-click",this.overlayEventListener),this.$emit("show"),this.closeOnEscape&&this.bindDocumentKeyDownListener()},onLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.unbindDocumentKeyDownListener(),this.unbindContentResizeListener(),m.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null,this.$emit("hide")},onAfterLeave:function(e){this.autoZIndex&&w.clear(e)},alignOverlay:function(){$(this.container,this.target,!1);var e=E(this.container),n=E(this.target),o=0;e.left<n.left&&(o=n.left-e.left),this.container.style.setProperty(H("popover.arrow.left").name,"".concat(o,"px")),e.top<n.top&&(this.container.setAttribute("data-p-popover-flipped","true"),!this.isUnstyled&&j(this.container,"p-popover-flipped"))},onContentKeydown:function(e){e.code==="Escape"&&this.closeOnEscape&&(this.hide(),v(this.target))},onButtonKeydown:function(e){switch(e.code){case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":e.preventDefault()}},focus:function(){var e=this.container.querySelector("[autofocus]");e&&e.focus()},onKeyDown:function(e){e.code==="Escape"&&this.closeOnEscape&&(this.visible=!1)},bindDocumentKeyDownListener:function(){this.documentKeydownListener||(this.documentKeydownListener=this.onKeyDown.bind(this),window.document.addEventListener("keydown",this.documentKeydownListener))},unbindDocumentKeyDownListener:function(){this.documentKeydownListener&&(window.document.removeEventListener("keydown",this.documentKeydownListener),this.documentKeydownListener=null)},bindOutsideClickListener:function(){var e=this;!this.outsideClickListener&&P()&&(this.outsideClickListener=function(n){e.visible&&!e.selfClick&&!e.isTargetClicked(n)&&(e.visible=!1),e.selfClick=!1},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null,this.selfClick=!1)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new V(this.target,function(){e.visible&&(e.visible=!1)})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.visible&&!D()&&(e.visible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindContentResizeListener:function(){var e=this;this.contentResizeObserver||(this.contentResizeObserver=new ResizeObserver(function(){e.visible&&e.alignOverlay()}),this.contentResizeObserver.observe(this.container))},unbindContentResizeListener:function(){this.contentResizeObserver&&(this.contentResizeObserver.disconnect(),this.contentResizeObserver=null)},isTargetClicked:function(e){return this.eventTarget&&(this.eventTarget===e.target||this.eventTarget.contains(e.target))},containerRef:function(e){this.container=e},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",x(this.styleElement,"nonce",(e=this.$primevue)===null||e===void 0||(e=e.config)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce),document.head.appendChild(this.styleElement);var n="";for(var o in this.breakpoints)n+=` 64 @media screen and (max-width: `.concat(o,`) { 65 .p-popover[`).concat(this.$attrSelector,`] { 66 width: `).concat(this.breakpoints[o],` !important; 67 } 68 } 69 `);this.styleElement.innerHTML=n}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},onOverlayClick:function(e){m.emit("overlay-click",{originalEvent:e,target:this.target})}}
69,directives:{focustrap:oe,ripple:W},components:{Portal:J}},ce=["aria-modal"];function ue(t,e,n,o,i,r){var a=I("Portal"),s=A("focustrap");return L(),U(a,{appendTo:t.appendTo},{default:k(function(){return[Z(q,g({name:"p-anchored-overlay",onEnter:r.onEnter,onLeave:r.onLeave,onAfterLeave:r.onAfterLeave},t.ptm("transition")),{default:k(function(){return[i.visible?N((L(),_("div",g({key:0,ref:r.containerRef,role:"dialog","aria-modal":i.visible,onClick:e[3]||(e[3]=function(){return r.onOverlayClick&&r.onOverlayClick.apply(r,arguments)}),class:t.cx("root")},t.ptmi("root")),[t.$slots.container?O(t.$slots,"container",{key:0,closeCallback:r.hide,keydownCallback:function(l){return r.onButtonKeydown(l)}}):(L(),_("div",g({key:1,class:t.cx("content"),onClick:e[0]||(e[0]=function(){return r.onContentClick&&r.onContentClick.apply(r,arguments)}),onMousedown:e[1]||(e[1]=function(){return r.onContentClick&&r.onContentClick.apply(r,arguments)}),onKeydown:e[2]||(e[2]=function(){return r.onContentKeydown&&r.onContentKeydown.apply(r,arguments)})},t.ptm("content")),[O(t.$slots,"default")],16))],16,ce)),[[s]]):M("",!0)]}),_:3},16,["onEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo"])}le.render=ue;export{le as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.