import{$ as s,Aa as e,Ba as S,Ea as M,Gf as F,Ka as y,Ma as w,Na as l,Oa as B,Pa as c,Ra as b,Sa as x,Ug as H,Va as t,Vg as P,W as d,Xg as _,Z as D,_ as a,_a as g,a as A,be as C,ca as p,fb as m,ha as f,hf as O,jf as V,kf as k,r as v,re as I,se as z,uf as E,ug as i,xa as N,xg as L,ya as T,yg as u}from"./chunk-SKPDQO4E.js";var G="popover",r=class n extends H{getProxyPropertyMap(){return A({nzPopoverBackdrop:["nzBackdrop",()=>this.nzPopoverBackdrop]},super.getProxyPropertyMap())}constructor(){super(o),this._nzModuleName=G,this.trigger="hover",this.placement="top",this.nzPopoverBackdrop=!1,this.visibleChange=new f}static{this.\u0275fac=c({minVersion:"12.0.0",version:"17.3.8",ngImport:t,type:n,deps:[],target:p.Directive})}static{this.\u0275dir=w({minVersion:"14.0.0",version:"17.3.8",type:n,isStandalone:!0,selector:"[nz-popover]",inputs:{arrowPointAtCenter:["nzPopoverArrowPointAtCenter","arrowPointAtCenter"],title:["nzPopoverTitle","title"],content:["nzPopoverContent","content"],directiveTitle:["nz-popover","directiveTitle"],trigger:["nzPopoverTrigger","trigger"],placement:["nzPopoverPlacement","placement"],origin:["nzPopoverOrigin","origin"],visible:["nzPopoverVisible","visible"],mouseEnterDelay:["nzPopoverMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:["nzPopoverMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:["nzPopoverOverlayClassName","overlayClassName"],overlayStyle:["nzPopoverOverlayStyle","overlayStyle"],nzPopoverBackdrop:"nzPopoverBackdrop"},outputs:{visibleChange:"nzPopoverVisibleChange"},host:{properties:{"class.ant-popover-open":"visible"}},exportAs:["nzPopover"],usesInheritance:!0,ngImport:t})}};v([E()],r.prototype,"arrowPointAtCenter",void 0);v([F()],r.prototype,"nzPopoverBackdrop",void 0);l({minVersion:"12.0.0",version:"17.3.8",ngImport:t,type:r,decorators:[{type:N,args:[{selector:"[nz-popover]",exportAs:"nzPopover",host:{"[class.ant-popover-open]":"visible"},standalone:!0}]}],ctorParameters:()=>[],propDecorators:{arrowPointAtCenter:[{type:e,args:["nzPopoverArrowPointAtCenter"]}],title:[{type:e,args:["nzPopoverTitle"]}],content:[{type:e,args:["nzPopoverContent"]}],directiveTitle:[{type:e,args:["nz-popover"]}],trigger:[{type:e,args:["nzPopoverTrigger"]}],placement:[{type:e,args:["nzPopoverPlacement"]}],origin:[{type:e,args:["nzPopoverOrigin"]}],visible:[{type:e,args:["nzPopoverVisible"]}],mouseEnterDelay:[{type:e,args:["nzPopoverMouseEnterDelay"]}],mouseLeaveDelay:[{type:e,args:["nzPopoverMouseLeaveDelay"]}],overlayClassName:[{type:e,args:["nzPopoverOverlayClassName"]}],overlayStyle:[{type:e,args:["nzPopoverOverlayStyle"]}],nzPopoverBackdrop:[{type:e}],visibleChange:[{type:S,args:["nzPopoverVisibleChange"]}]}});var o=class n extends _{constructor(W,$,j){super(W,$,j),this._prefix="ant-popover"}get hasBackdrop(){return this.nzTrigger==="click"?this.nzBackdrop:!1}isEmpty(){return P(this.nzTitle)&&P(this.nzContent)}static{this.\u0275fac=c({minVersion:"12.0.0",version:"17.3.8",ngImport:t,type:n,deps:[{token:y},{token:C,optional:!0},{token:i,host:!0,optional:!0}],target:p.Component})}static{this.\u0275cmp=B({minVersion:"17.0.0",version:"17.3.8",type:n,isStandalone:!0,selector:"nz-popover",exportAs:["nzPopoverComponent"],usesInheritance:!0,ngImport:t,template:`
    <ng-template
      #overlay="cdkConnectedOverlay"
      cdkConnectedOverlay
      nzConnectedOverlay
      [cdkConnectedOverlayHasBackdrop]="hasBackdrop"
      [cdkConnectedOverlayOrigin]="origin"
      [cdkConnectedOverlayPositions]="_positions"
      [cdkConnectedOverlayOpen]="_visible"
      [cdkConnectedOverlayPush]="cdkConnectedOverlayPush"
      [nzArrowPointAtCenter]="nzArrowPointAtCenter"
      (overlayOutsideClick)="onClickOutside($event)"
      (detach)="hide()"
      (positionChange)="onPositionChange($event)"
    >
      <div
        class="ant-popover"
        [class.ant-popover-rtl]="dir === 'rtl'"
        [ngClass]="_classMap"
        [ngStyle]="nzOverlayStyle"
        [@.disabled]="!!noAnimation?.nzNoAnimation"
        [nzNoAnimation]="noAnimation?.nzNoAnimation"
        [@zoomBigMotion]="'active'"
      >
        <div class="ant-popover-content">
          <div class="ant-popover-arrow">
            <span class="ant-popover-arrow-content"></span>
          </div>
          <div class="ant-popover-inner" role="tooltip">
            <div>
              @if (nzTitle) {
                <div class="ant-popover-title">
                  <ng-container *nzStringTemplateOutlet="nzTitle">{{ nzTitle }}</ng-container>
                </div>
              }
              <div class="ant-popover-inner-content">
                <ng-container *nzStringTemplateOutlet="nzContent">{{ nzContent }}</ng-container>
              </div>
            </div>
          </div>
        </div>
      </div>
    </ng-template>
  `,isInline:!0,dependencies:[{kind:"ngmodule",type:z},{kind:"directive",type:I,selector:"[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]",inputs:["cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayPositionStrategy","cdkConnectedOverlayOffsetX","cdkConnectedOverlayOffsetY","cdkConnectedOverlayWidth","cdkConnectedOverlayHeight","cdkConnectedOverlayMinWidth","cdkConnectedOverlayMinHeight","cdkConnectedOverlayBackdropClass","cdkConnectedOverlayPanelClass","cdkConnectedOverlayViewportMargin","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOpen","cdkConnectedOverlayDisableClose","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayLockPosition","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayGrowAfterOpen","cdkConnectedOverlayPush","cdkConnectedOverlayDisposeOnNavigation"],outputs:["backdropClick","positionChange","attach","detach","overlayKeydown","overlayOutsideClick"],exportAs:["cdkConnectedOverlay"]},{kind:"ngmodule",type:u},{kind:"directive",type:L,selector:"[cdkConnectedOverlay][nzConnectedOverlay]",inputs:["nzArrowPointAtCenter"],exportAs:["nzConnectedOverlay"]},{kind:"directive",type:g,selector:"[ngClass]",inputs:["class","ngClass"]},{kind:"directive",type:m,selector:"[ngStyle]",inputs:["ngStyle"]},{kind:"directive",type:i,selector:"[nzNoAnimation]",inputs:["nzNoAnimation"],exportAs:["nzNoAnimation"]},{kind:"ngmodule",type:k},{kind:"directive",type:V,selector:"[nzStringTemplateOutlet]",inputs:["nzStringTemplateOutletContext","nzStringTemplateOutlet"],exportAs:["nzStringTemplateOutlet"]}],animations:[O],changeDetection:a.OnPush,encapsulation:s.None})}};l({minVersion:"12.0.0",version:"17.3.8",ngImport:t,type:o,decorators:[{type:T,args:[{selector:"nz-popover",exportAs:"nzPopoverComponent",animations:[O],changeDetection:a.OnPush,encapsulation:s.None,preserveWhitespaces:!1,template:`
    <ng-template
      #overlay="cdkConnectedOverlay"
      cdkConnectedOverlay
      nzConnectedOverlay
      [cdkConnectedOverlayHasBackdrop]="hasBackdrop"
      [cdkConnectedOverlayOrigin]="origin"
      [cdkConnectedOverlayPositions]="_positions"
      [cdkConnectedOverlayOpen]="_visible"
      [cdkConnectedOverlayPush]="cdkConnectedOverlayPush"
      [nzArrowPointAtCenter]="nzArrowPointAtCenter"
      (overlayOutsideClick)="onClickOutside($event)"
      (detach)="hide()"
      (positionChange)="onPositionChange($event)"
    >
      <div
        class="ant-popover"
        [class.ant-popover-rtl]="dir === 'rtl'"
        [ngClass]="_classMap"
        [ngStyle]="nzOverlayStyle"
        [@.disabled]="!!noAnimation?.nzNoAnimation"
        [nzNoAnimation]="noAnimation?.nzNoAnimation"
        [@zoomBigMotion]="'active'"
      >
        <div class="ant-popover-content">
          <div class="ant-popover-arrow">
            <span class="ant-popover-arrow-content"></span>
          </div>
          <div class="ant-popover-inner" role="tooltip">
            <div>
              @if (nzTitle) {
                <div class="ant-popover-title">
                  <ng-container *nzStringTemplateOutlet="nzTitle">{{ nzTitle }}</ng-container>
                </div>
              }
              <div class="ant-popover-inner-content">
                <ng-container *nzStringTemplateOutlet="nzContent">{{ nzContent }}</ng-container>
              </div>
            </div>
          </div>
        </div>
      </div>
    </ng-template>
  `,imports:[z,u,g,m,i,k],standalone:!0}]}],ctorParameters:()=>[{type:y},{type:C,decorators:[{type:d}]},{type:i,decorators:[{type:D},{type:d}]}]});var h=class n{static{this.\u0275fac=c({minVersion:"12.0.0",version:"17.3.8",ngImport:t,type:n,deps:[],target:p.NgModule})}static{this.\u0275mod=x({minVersion:"14.0.0",version:"17.3.8",ngImport:t,type:n,imports:[r,o],exports:[r,o]})}static{this.\u0275inj=b({minVersion:"12.0.0",version:"17.3.8",ngImport:t,type:n,imports:[o]})}};l({minVersion:"12.0.0",version:"17.3.8",ngImport:t,type:h,decorators:[{type:M,args:[{imports:[r,o],exports:[r,o]}]}]});export{r as a,h as b};
