vendor: 7,687 bytes, lines 1-69
1import{B as y,cm as m,aY as L,cS as k,z as w,co as g,ci as C,dg as E,d2 as O,de as K,cW as d,dh as S,cb as D,ce as s,c$ as z,cr as T,cq as x,c as B,o as l,K as u,k as R,bH as A,C as a,Q as H,s as P,j as p,a6 as f}from"./DZ7mik94.js";import{C as I}from"./Du7nxuHz.js";import{O as r}from"./v22BJWT9.js";var Z=` 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`,U={root:"p-popover p-component",content:"p-popover-content"},j=y.extend({name:"popover",style:Z,classes:U}),N={name:"BasePopover",extends:w,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:j,provide:function(){return{$pcPopover:this,$parentInstance:this}}},q={name:"Popover",extends:N,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,beforeUnmount:function(){this.dismissable&&this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.destroyStyle(),this.unbindResizeListener(),this.target=null,this.container&&this.autoZIndex&&s.clear(this.container),this.overlayEventListener&&(r.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null),this.container=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{toggle:function(e,o){this.visible?this.hide():this.show(e,o)},show:function(e,o){this.visible=!0,this.eventTarget=e.currentTarget,this.target=o||e.currentTarget},hide:function(){this.visible=!1},onContentClick:function(){this.selfClick=!0},onEnter:function(e){var o=this;z(e,{position:"absolute",top:"0"}),this.alignOverlay(),this.dismissable&&this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.autoZIndex&&s.set("overlay",e,this.baseZIndex+this.$primevue.config.zIndex.overlay),this.overlayEventListener=function(i){o.container.contains(i.target)&&(o.selfClick=!0)},this.focus(),r.on("overlay-click",this.overlayEventListener),this.$emit("show"),this.closeOnEscape&&this.bindDocumentKeyDownListener()},onLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.unbindDocumentKeyDownListener(),r.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null,this.$emit("hide")},onAfterLeave:function(e){this.autoZIndex&&s.clear(e)},alignOverlay:function(){K(this.container,this.target,!1);var e=d(this.container),o=d(this.target),i=0;e.left<o.left&&(i=o.left-e.left),this.container.style.setProperty(S("popover.arrow.left").name,"".concat(i,"px")),e.top<o.top&&(this.container.setAttribute("data-p-popover-flipped","true"),!this.isUnstyled&&D(this.container,"p-popover-flipped"))},onContentKeydown:function(e){e.code==="Escape"&&this.closeOnEscape&&(this.hide(),O(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&&E()&&(this.outsideClickListener=function(o){e.visible&&!e.selfClick&&!e.isTargetClicked(o)&&(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 I(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&&!C()&&(e.visible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=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",g(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 o="";for(var i in this.breakpoints)o+=` 64 @media screen and (max-width: `.concat(i,`) { 65 .p-popover[`).concat(this.$attrSelector,`] { 66 width: `).concat(this.breakpoints[i],` !important; 67 } 68 } 69 `);this.styleElement.innerHTML=o}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},onOverlayClick:function(e){r.emit("overlay-click",{originalEvent:e,target:this.target})}}
69,directives:{focustrap:k,ripple:L},components:{Portal:m}},V=["aria-modal"];function W(t,e,o,i,c,n){var h=T("Portal"),v=x("focustrap");return l(),B(h,{appendTo:t.appendTo},{default:u(function(){return[R(A,a({name:"p-anchored-overlay",onEnter:n.onEnter,onLeave:n.onLeave,onAfterLeave:n.onAfterLeave},t.ptm("transition")),{default:u(function(){return[c.visible?H((l(),p("div",a({key:0,ref:n.containerRef,role:"dialog","aria-modal":c.visible,onClick:e[3]||(e[3]=function(){return n.onOverlayClick&&n.onOverlayClick.apply(n,arguments)}),class:t.cx("root")},t.ptmi("root")),[t.$slots.container?f(t.$slots,"container",{key:0,closeCallback:n.hide,keydownCallback:function(b){return n.onButtonKeydown(b)}}):(l(),p("div",a({key:1,class:t.cx("content"),onClick:e[0]||(e[0]=function(){return n.onContentClick&&n.onContentClick.apply(n,arguments)}),onMousedown:e[1]||(e[1]=function(){return n.onContentClick&&n.onContentClick.apply(n,arguments)}),onKeydown:e[2]||(e[2]=function(){return n.onContentKeydown&&n.onContentKeydown.apply(n,arguments)})},t.ptm("content")),[f(t.$slots,"default")],16))],16,V)),[[v]]):P("",!0)]}),_:3},16,["onEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo"])}q.render=W;export{q 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.