PageSourceSearch

https://preview-9270-ng-zorro-antd.surge.sh/chunk-EFSPTRFO.js

js preview-9270-ng-zorro-antd.surge.sh collected 2026-10-03 14:59:49 UTC 16,397 bytes, 1 lines download raw bytes

1import{$b as Oe,Aa as ye,D as ve,Fb as Ce,Id as De,Ja as M,Lb as Ae,Mb as F,Pb as be,Xa as h,d as ge,fc as B,hc as Se,ia as ze,ic as _e,yc as Ie}from"./chunk-FE3MHUBC.js";import{$b as ae,Ac as me,Bc as fe,C as R,Cb as l,E as C,Eb as f,Fb as N,Hb as ne,Ja as K,Ma as w,N as Q,Ob as oe,Oc as de,Vb as se,Wb as re,Xb as d,Yb as c,Z as E,Zb as g,Zc as P,a as y,aa as j,ac as le,c as H,cc as ce,fa as U,ha as Z,ic as O,ja as Y,kb as m,kc as v,la as r,lc as S,mb as J,mc as _,nc as pe,oc as z,pc as p,qc as u,qd as k,rb as ee,sa as $,ta as X,uc as T,ud as I,wa as q,wb as b,wc as x,x as D,xa as G,xb as te,xc as ue,ya as A,yb as ie,yc as he,zc as V}from"./chunk-OQ4XWHPB.js";var Re=new Y("nz-after-next-render",{providedIn:"root",factory:()=>{let n=r(q);return new H(s=>{let e=ne(()=>{s.next(),s.complete()},{injector:n});return()=>e.destroy()})}});var xe=[[["nz-auto-option"]]],Ve=["nz-auto-option"];function Pe(n,s){if(n&1&&(ae(0),V(1),le()),n&2){let e=v();m(),me(e.nzLabel)}}var Ee=["*"],ke=["panel"],Me=["content"],Fe=(n,s)=>s.value;function Be(n,s){}function Le(n,s){n&1&&l(0,Be,0,0,"ng-template")}function We(n,s){n&1&&_(0)}function He(n,s){if(n&1&&(c(0,"nz-auto-option",7),V(1),g()),n&2){let e=s.$implicit;d("nzValue",e.value)("nzLabel",e.label),m(),fe(" ",e.label," ")}}function Qe(n,s){if(n&1&&se(0,He,2,3,"nz-auto-option",7,Fe),n&2){let e=v(2);re(e.normalizedDataSource)}}function je(n,s){if(n&1){let e=ce();c(0,"div",3,0),O("@slideMotion.done",function(i){$(e);let o=v();return X(o.onAnimationEvent(i))}),c(2,"div",4)(3,"div",5),l(4,Le,1,0,null,6),g()()(),l(5,We,1,0,"ng-template",null,1,P)(7,Qe,2,0,"ng-template",null,2,P)}if(n&2){let e=T(6),t=T(8),i=v();ue(i.nzOverlayStyle),he(i.nzOverlayClassName),x("ant-select-dropdown-hidden",!i.showPanel)("ant-select-dropdown-rtl",i.dir==="rtl"),d("nzNoAnimation",i.noAnimation==null?null:i.noAnimation.nzNoAnimation)("@slideMotion",void 0)("@.disabled",!!(i.noAnimation!=null&&i.noAnimation.nzNoAnimation)),m(4),d("ngTemplateOutlet",i.nzDataSource?t:e)}}var we=(()=>{class n{nzLabel;static \u0275fac=function(t){return new(t||n)};static \u0275cmp=b({type:n,selectors:[["nz-auto-optgroup"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzAutoOptgroup"],ngContentSelectors:Ve,decls:3,vars:1,consts:[[1,"ant-select-item","ant-select-item-group"],[4,"nzStringTemplateOutlet"]],template:function(t,i){t&1&&(S(xe),c(0,"div",0),l(1,Pe,2,1,"ng-container",1),g(),_(2)),t&2&&(m(),d("nzStringTemplateOutlet",i.nzLabel))},dependencies:[_e,Se],encapsulation:2,changeDetection:0})}return n})(),W=class{source;isUserInput;constructor(s,e=!1){this.source=s,this.isUserInput=e}},L=(()=>{class n{ngZone=r(N);changeDetectorRef=r(k);element=r(w);destroyRef=r(A);nzValue;nzLabel;nzDisabled=!1;selectionChange=new f;mouseEntered=new f;active=!1;selected=!1;nzAutocompleteOptgroupComponent=r(we,{optional:!0});ngOnInit(){M(this.element.nativeElement,"mouseenter").pipe(C(()=>this.mouseEntered.observers.length>0),h(this.destroyRef)).subscribe(()=>{this.ngZone.run(()=>this.mouseEntered.emit(this))}),M(this.element.nativeElement,"mousedown").pipe(h(this.destroyRef)).subscribe(e=>e.preventDefault())}select(e=!0){this.selected=!0,this.changeDetectorRef.markForCheck(),e&&this.emitSelectionChangeEvent()}deselect(){this.selected=!1,this.changeDetectorRef.markForCheck(),this.emitSelectionChangeEvent()}getLabel(){return this.nzLabel||this.nzValue.toString()}setActiveStyles(){this.active||(this.active=!0,this.changeDetectorRef.markForCheck())}setInactiveStyles(){this.active&&(this.active=!1,this.changeDetectorRef.markForCheck())}scrollIntoViewIfNeeded(){ye(this.element.nativeElement)}selectViaInteraction(){this.nzDisabled||(this.selected=!this.selected,this.selected?this.setActiveStyles():this.setInactiveStyles(),this.emitSelectionChangeEvent(!0),this.changeDetectorRef.markForCheck())}emitSelectionChangeEvent(e=!1){this.selectionChange.emit(new W(this,e))}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=b({type:n,selectors:[["nz-auto-option"]],hostAttrs:["role","menuitem",1,"ant-select-item","ant-select-item-option"],hostVars:10,hostBindings:function(t,i){t&1&&O("click",function(){return i.selectViaInteraction()}),t&2&&(oe("aria-selected",i.selected.toString())("aria-disabled",i.nzDisabled.toString()),x("ant-select-item-option-grouped",i.nzAutocompleteOptgroupComponent)("ant-select-item-option-selected",i.selected)("ant-select-item-option-active",i.active)("ant-select-item-option-disabled",i.nzDisabled))},inputs:{nzValue:"nzValue",nzLabel:"nzLabel",nzDisabled:[2,"nzDisabled","nzDisabled",I]},outputs:{selectionChange:"selectionChange",mouseEntered:"mouseEntered"},exportAs:["nzAutoOption"],ngContentSelectors:Ee,decls:2,vars:0,consts:[[1,"ant-select-item-option-content"]],template:function(t,i){t&1&&(S(),c(0,"div",0),_(1),g())},encapsulation:2,changeDetection:0})}return n})(),Ue={provide:Ie,useExisting:U(()=>Ye),multi:!0};function Ze(){return Error("Attempting to open an undefined instance of `nz-autocomplete`. Make sure that the id passed to the `nzAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.")}var Ye=(()=>{class n{ngZone=r(N);elementRef=r(w);overlay=r(be);
1viewContainerRef=r(ee);destroyRef=r(A);nzAutocomplete;onChange=()=>{};onTouched=()=>{};panelOpen=!1;get activeOption(){return this.nzAutocomplete&&this.nzAutocomplete.options.length?this.nzAutocomplete.activeItem:null}overlayRef=null;portal=null;positionStrategy;previousValue=null;selectionChangeSubscription;optionsChangeSubscription;overlayOutsideClickSubscription;document=r(G);nzInputGroupWhitSuffixOrPrefixDirective=r(De,{optional:!0});constructor(){this.destroyRef.onDestroy(()=>{this.destroyPanel()})}ngAfterViewInit(){this.nzAutocomplete&&this.nzAutocomplete.animationStateChange.pipe(h(this.destroyRef)).subscribe(e=>{e.toState==="void"&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)})}writeValue(e){this.ngZone.runOutsideAngular(()=>{Promise.resolve(null).then(()=>this.setTriggerValue(e))})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){let t=this.elementRef.nativeElement;t.disabled=e,this.closePanel()}openPanel(){this.previousValue=this.elementRef.nativeElement.value,this.attachOverlay(),this.updateStatus()}closePanel(){this.panelOpen&&(this.nzAutocomplete.isOpen=this.panelOpen=!1,this.overlayRef&&this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.selectionChangeSubscription.unsubscribe(),this.overlayOutsideClickSubscription.unsubscribe(),this.optionsChangeSubscription.unsubscribe(),this.portal=null))}handleKeydown(e){let t=e.keyCode,i=t===38||t===40;t===27&&e.preventDefault(),this.panelOpen&&(t===27||t===9)?(this.activeOption&&this.activeOption.getLabel()!==this.previousValue&&this.setTriggerValue(this.previousValue),this.closePanel()):this.panelOpen&&t===13?this.nzAutocomplete.showPanel&&(e.preventDefault(),this.activeOption?this.activeOption.selectViaInteraction():this.closePanel()):this.panelOpen&&i&&this.nzAutocomplete.showPanel&&(e.stopPropagation(),e.preventDefault(),t===38?this.nzAutocomplete.setPreviousItemActive():this.nzAutocomplete.setNextItemActive(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded(),this.doBackfill())}handleInput(e){let t=e.target,i=this.document,o=t.value;t.type==="number"&&(o=o===""?null:parseFloat(o)),this.previousValue!==o&&(this.previousValue=o,this.onChange(o),this.canOpen()&&i.activeElement===e.target&&this.openPanel())}handleFocus(){this.canOpen()&&this.openPanel()}handleClick(){this.canOpen()&&!this.panelOpen&&this.openPanel()}handleBlur(){this.onTouched()}subscribeOptionsChange(){return this.nzAutocomplete.options.changes.pipe(j(()=>this.positionStrategy.reapplyLastPosition()),Q(0)).subscribe(()=>{this.resetActiveItem(),this.panelOpen&&this.overlayRef.updatePosition()})}subscribeSelectionChange(){return this.nzAutocomplete.selectionChange.subscribe(e=>{this.setValueAndClose(e)})}subscribeOverlayOutsideClick(){return this.overlayRef.outsidePointerEvents().pipe(C(e=>!this.elementRef.nativeElement.contains(e.target))).subscribe(()=>{this.closePanel()})}attachOverlay(){if(!this.nzAutocomplete)throw Ze();!this.portal&&this.nzAutocomplete.template&&(this.portal=new Ce(this.nzAutocomplete.template,this.viewContainerRef)),this.overlayRef||(this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.selectionChangeSubscription=this.subscribeSelectionChange(),this.optionsChangeSubscription=this.subscribeOptionsChange(),this.overlayOutsideClickSubscription=this.subscribeOverlayOutsideClick(),this.overlayRef.detachments().pipe(h(this.destroyRef)).subscribe(()=>{this.closePanel()})),this.nzAutocomplete.isOpen=this.panelOpen=!0}updateStatus(){this.overlayRef&&this.overlayRef.updateSize({width:this.nzAutocomplete.nzWidth||this.getHostWidth()}),this.nzAutocomplete.setVisibility(),this.resetActiveItem(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded()}destroyPanel(){this.overlayRef&&this.closePanel()}getOverlayConfig(){return new Ae({positionStrategy:this.getOverlayPosition(),disposeOnNavigation:!0,scrollStrategy:this.overlay.scrollStrategies.reposition(),width:this.nzAutocomplete.nzWidth||this.getHostWidth()})}getConnectedElement(){return this.nzInputGroupWhitSuffixOrPrefixDirective?.elementRef??this.elementRef}getHostWidth(){return this.getConnectedElement().nativeElement.getBoundingClientRect().width}getOverlayPosition(){let e=[new F({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new F({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPositions(e).withTransformOriginOn(".ant-select-dropdown"),this.positionStrategy}
1resetActiveItem(){let e=this.nzAutocomplete.getOptionIndex(this.previousValue);this.nzAutocomplete.clearSelectedOptions(null,!0),e!==-1?(this.nzAutocomplete.setActiveItem(e),this.nzAutocomplete.activeItem.select(!1)):this.nzAutocomplete.setActiveItem(this.nzAutocomplete.nzDefaultActiveFirstOption?0:-1)}setValueAndClose(e){let t=e.nzValue;this.setTriggerValue(e.getLabel()),this.onChange(t),this.elementRef.nativeElement.focus(),this.closePanel()}setTriggerValue(e){let t=this.nzAutocomplete.getOption(e),i=t?t.getLabel():e;this.elementRef.nativeElement.value=i??"",this.nzAutocomplete.nzBackfill||(this.previousValue=i)}doBackfill(){this.nzAutocomplete.nzBackfill&&this.nzAutocomplete.activeItem&&this.setTriggerValue(this.nzAutocomplete.activeItem.getLabel())}canOpen(){let e=this.elementRef.nativeElement;return!e.readOnly&&!e.disabled}static \u0275fac=function(t){return new(t||n)};static \u0275dir=ie({type:n,selectors:[["input","nzAutocomplete",""],["textarea","nzAutocomplete",""]],hostAttrs:["autocomplete","off","aria-autocomplete","list"],hostBindings:function(t,i){t&1&&O("focusin",function(){return i.handleFocus()})("blur",function(){return i.handleBlur()})("input",function(a){return i.handleInput(a)})("keydown",function(a){return i.handleKeydown(a)})("click",function(){return i.handleClick()})},inputs:{nzAutocomplete:"nzAutocomplete"},exportAs:["nzAutocompleteTrigger"],features:[de([Ue])]})}return n})();function $e(n){return n?.map(s=>typeof s=="number"||typeof s=="string"?{label:s.toString(),value:s.toString()}:s)}var Rt=(()=>{class n{changeDetectorRef=r(k);directionality=r(ve);destroyRef=r(A);nzWidth;nzOverlayClassName="";nzOverlayStyle={};nzDefaultActiveFirstOption=!0;nzBackfill=!1;compareWith=(e,t)=>e===t;nzDataSource;selectionChange=new f;showPanel=!0;isOpen=!1;activeItem=null;dir="ltr";normalizedDataSource=[];animationStateChange=new f;get options(){return this.nzDataSource?this.fromDataSourceOptions:this.fromContentOptions}fromContentOptions;fromDataSourceOptions;template;panel;content;activeItemIndex=-1;selectionChangeSubscription=y.EMPTY;optionMouseEnterSubscription=y.EMPTY;dataSourceChangeSubscription=y.EMPTY;optionSelectionChanges=D(()=>this.options?R(...this.options.map(e=>e.selectionChange)):this.afterNextRender$.pipe(E(()=>this.optionSelectionChanges)));optionMouseEnter=D(()=>this.options?R(...this.options.map(e=>e.mouseEntered)):this.afterNextRender$.pipe(E(()=>this.optionMouseEnter)));afterNextRender$=r(Re);noAnimation=r(B,{host:!0,optional:!0});constructor(){this.destroyRef.onDestroy(()=>{this.dataSourceChangeSubscription.unsubscribe(),this.selectionChangeSubscription.unsubscribe(),this.optionMouseEnterSubscription.unsubscribe(),this.dataSourceChangeSubscription=this.selectionChangeSubscription=this.optionMouseEnterSubscription=null})}ngOnInit(){this.directionality.change?.pipe(h(this.destroyRef)).subscribe(e=>{this.dir=e,this.changeDetectorRef.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){let{nzDataSource:t}=e;t&&(this.normalizedDataSource=$e(t.currentValue))}onAnimationEvent(e){this.animationStateChange.emit(e)}ngAfterContentInit(){this.nzDataSource||this.optionsInit()}ngAfterViewInit(){this.nzDataSource&&this.optionsInit()}setVisibility(){this.showPanel=!!this.options.length,this.changeDetectorRef.markForCheck()}setActiveItem(e){let t=this.options.get(e);t&&!t.active?(this.activeItem=t,this.activeItemIndex=e,this.clearSelectedOptions(this.activeItem),this.activeItem.setActiveStyles()):(this.activeItem=null,this.activeItemIndex=-1,this.clearSelectedOptions()),this.changeDetectorRef.markForCheck()}setNextItemActive(){let e=this.activeItemIndex+1<=this.options.length-1?this.activeItemIndex+1:0;this.setActiveItem(e)}setPreviousItemActive(){let e=this.activeItemIndex-1<0?this.options.length-1:this.activeItemIndex-1;this.setActiveItem(e)}getOptionIndex(e){return this.options.reduce((t,i,o)=>t===-1?this.compareWith(e,i.nzValue)?o:-1:t,-1)}getOption(e){return this.options.find(t=>this.compareWith(e,t.nzValue))||null}optionsInit(){this.setVisibility(),this.subscribeOptionChanges();let e=this.nzDataSource?this.fromDataSourceOptions.changes:this.fromContentOptions.changes;this.dataSourceChangeSubscription=e.subscribe(t=>{!t.dirty&&this.isOpen&&setTimeout(()=>this.setVisibility()),this.subscribeOptionChanges()})}clearSelectedOptions(e,t=!1){this.options.forEach(i=>
1{i!==e&&(t&&i.deselect(),i.setInactiveStyles())})}subscribeOptionChanges(){this.selectionChangeSubscription.unsubscribe(),this.selectionChangeSubscription=this.optionSelectionChanges.pipe(C(e=>e.isUserInput)).subscribe(e=>{e.source.select(),e.source.setActiveStyles(),this.activeItem=e.source,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(e.source,!0),this.selectionChange.emit(e.source)}),this.optionMouseEnterSubscription.unsubscribe(),this.optionMouseEnterSubscription=this.optionMouseEnter.subscribe(e=>{e.setActiveStyles(),this.activeItem=e,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(e)})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=b({type:n,selectors:[["nz-autocomplete"]],contentQueries:function(t,i,o){if(t&1&&pe(o,L,5),t&2){let a;p(a=u())&&(i.fromContentOptions=a)}},viewQuery:function(t,i){if(t&1&&(z(J,5),z(ke,5),z(Me,5),z(L,5)),t&2){let o;p(o=u())&&(i.template=o.first),p(o=u())&&(i.panel=o.first),p(o=u())&&(i.content=o.first),p(o=u())&&(i.fromDataSourceOptions=o)}},inputs:{nzWidth:[2,"nzWidth","nzWidth",ze],nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzDefaultActiveFirstOption:[2,"nzDefaultActiveFirstOption","nzDefaultActiveFirstOption",I],nzBackfill:[2,"nzBackfill","nzBackfill",I],compareWith:"compareWith",nzDataSource:"nzDataSource"},outputs:{selectionChange:"selectionChange"},exportAs:["nzAutocomplete"],features:[K],ngContentSelectors:Ee,decls:1,vars:0,consts:[["panel",""],["contentTemplate",""],["optionsTemplate",""],[1,"ant-select-dropdown","ant-select-dropdown-placement-bottomLeft",3,"nzNoAnimation"],[1,"ant-select-dropdown-content-wrapper"],[1,"ant-select-dropdown-content"],[4,"ngTemplateOutlet"],[3,"nzValue","nzLabel"]],template:function(t,i){t&1&&(S(),l(0,je,9,12,"ng-template"))},dependencies:[ge,L,B],encapsulation:2,data:{animation:[Oe]},changeDetection:0})}return n})(),Et=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=te({type:n});static \u0275inj=Z({imports:[we]})}return n})();export{we as a,L as b,Ye as c,Rt as d,Et as e};

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.