1import{b6 as y,b7 as S,b8 as d,b9 as w,f as B,by as T,bb as k,bk as N,l as b,bo as h,bK as _,r as z,d as A,bO as P,F as D,bp as I,cl as $}from"./main-CHUEluNB.js";import{i as W,g as E,P as H,T as M,t as R,a as j}from"./index-e_uTuVEF.js";import{o as O}from"./omit-BolmY6Pg.js";import{i as F}from"./PortalWrapper-NX8QYaJ8.js";const L=t=>{const{componentCls:o,popoverBg:r,popoverColor:e,width:a,fontWeightStrong:s,popoverPadding:l,boxShadowSecondary:c,colorTextHeading:g,borderRadiusLG:u,zIndexPopup:p,marginXS:v,colorBgElevated:n}=t;return[{[o]:d(d({},w(t)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:p,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":n,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${o}-content`]:{position:"relative"},[`${o}-inner`]:{backgroundColor:r,backgroundClip:"padding-box",borderRadius:u,boxShadow:c,padding:l},[`${o}-title`]:{minWidth:a,marginBottom:v,color:g,fontWeight:s},[`${o}-inner-content`]:{color:e}})},E(t,{colorBg:"var(--antd-arrow-background-color)"}),{[`${o}-pure`]:{position:"relative",maxWidth:"none",[`${o}-content`]:{display:"inline-block"}}}]},G=t=>{const{componentCls:o}=t;return{[o]:H.map(r=>{const e=t[`${r}-6`];return{[`&${o}-${r}`]:{"--antd-arrow-background-color":e,[`${o}-inner`]:{backgroundColor:e},[`${o}-arrow`]:{background:"transparent"}}}})}},V=t=>{const{componentCls:o,lineWidth:r,lineType:e,colorSplit:a,paddingSM:s,controlHeight:l,fontSize:c,lineHeight:g,padding:u}=t,p=l-Math.round(c*g),v=p/2,n=p/2-r,i=u;return{[o]:{[`${o}-inner`]:{padding:0},[`${o}-title`]:{margin:0,padding:`${v}px ${i}px ${n}px`,borderBottom:`${r}px ${e} ${a}`},[`${o}-inner-content`]:{padding:`${s}px ${i}px`}}}},X=y("Popover",t=>{const{colorBgElevated:o,colorText:r,wireframe:e}=t,a=S(t,{popoverBg:o,popoverColor:r,popoverPadding:12});return[L(a),G(a),e&&V(a),W(a,"zoom-big")]},t=>{let{zIndexPopupBase:o}=t;return{zIndexPopup:o+30,width:177}}),Z=()=>d(d({},j()),{content:$(),title:$()}),q=B({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:F(Z(),d(d({},R()),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(t,o){let{expose:r,slots:e,attrs:a}=o;const s=z();T(t.visible===void 0),r({getPopupDomNode:()=>{var n,i;return(i=(n=s.value)===null||n===void 0?void 0:n.getPopupDomNode)===null||i===void 0?void 0:i.call(n)}});const{prefixCls:l,configProvider:c}=k("popover",t),[g,u]=X(l),p=A(()=>c.getPrefixCls()),v=()=>{var n,i;const{title:m=P((n=e.title)===null||n===void 0?void 0:n.call(e)),content:f=P((i=e.content)===null||i===void 0?void 0:i.call(e))}=t,x=!!(Array.isArray(m)?m.length:m),C=!!(Array.isArray(f)?f.length:m);return!x&&!C?null:b(D,null,[x&&b("div",{class:`${l.value}-title`},[m]),b("div",{class:`${l.value}-inner-content`},[f])])};return()=>{const n=N(t.overlayClassName,u.value);return g(b(M,h(h(h({},O(t,["title","content"])),a),{},{prefixCls:l.value,ref:s,overlayClassName:n,transitionName:_(p.value,"zoom-big",t.transitionName),"data-popover-inject":!0}),{title:v,default:e.default}))}}}),Y=I(q);export{Y as P};
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.