1import{H as C}from"./chunk-OD4FXCMW.js";import{Hb as y,Ib as c,Ka as m,Na as d,Oa as p,Pb as g,Qb as v,Za as b,g as l,ta as u,ua as h,wa as f,xa as a}from"./chunk-T2TVCV7P.js";var S=new f("WindowToken",typeof window<"u"&&window.document?{providedIn:"root",factory:()=>window}:{providedIn:"root",factory:()=>{}});var w=(()=>{class t{constructor(e,i,n){this.ngZone=e,this.document=i,this.window=n,this.copySubject=new l,this.copyResponse$=this.copySubject.asObservable(),this.config={}}configure(e){this.config=e}copy(e){if(!this.isSupported||!e)return this.pushCopyResponse({isSuccess:!1,content:e});let i=this.copyFromContent(e);return i?this.pushCopyResponse({content:e,isSuccess:i}):this.pushCopyResponse({isSuccess:!1,content:e})}get isSupported(){return!!this.document.queryCommandSupported&&!!this.document.queryCommandSupported("copy")&&!!this.window}isTargetValid(e){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){if(e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');return!0}throw new Error("Target should be input or textarea")}copyFromInputElement(e,i=!0){try{this.selectTarget(e);let n=this.copyText();return this.clearSelection(i?e:void 0,this.window),n&&this.isCopySuccessInIE11()}catch(n){return!1}}isCopySuccessInIE11(){let e=this.window.clipboardData;return!(e&&e.getData&&!e.getData("Text"))}copyFromContent(e,i=this.document.body){if(this.tempTextArea&&!i.contains(this.tempTextArea)&&this.destroy(this.tempTextArea.parentElement||void 0),!this.tempTextArea){this.tempTextArea=this.createTempTextArea(this.document,this.window);try{i.appendChild(this.tempTextArea)}catch(r){throw new Error("Container should be a Dom element")}}this.tempTextArea.value=e;let n=this.copyFromInputElement(this.tempTextArea,!1);return this.config.cleanUpAfterCopy&&this.destroy(this.tempTextArea.parentElement||void 0),n}destroy(e=this.document.body){this.tempTextArea&&(e.removeChild(this.tempTextArea),this.tempTextArea=void 0)}selectTarget(e){return e.select(),e.setSelectionRange(0,e.value.length),e.value.length}copyText(){return this.document.execCommand("copy")}clearSelection(e,i){e&&e.focus(),i.getSelection()?.removeAllRanges()}createTempTextArea(e,i){let n=e.documentElement.getAttribute("dir")==="rtl",r;r=e.createElement("textarea"),r.style.fontSize="12pt",r.style.border="0",r.style.padding="0",r.style.margin="0",r.style.position="absolute",r.style[n?"right":"left"]="-9999px";let s=i.pageYOffset||e.documentElement.scrollTop;return r.style.top=s+"px",r.setAttribute("readonly",""),r}pushCopyResponse(e){this.copySubject.observers.length>0&&this.ngZone.run(()=>{this.copySubject.next(e)})}pushCopyReponse(e){this.pushCopyResponse(e)}}return t.\u0275fac=function(e){return new(e||t)(a(p),a(m),a(S,8))},t.\u0275prov=u({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),W=(()=>{class t{constructor(e,i,n,r){this.ngZone=e,this.host=i,this.renderer=n,this.clipboardSrv=r,this.cbOnSuccess=new d,this.cbOnError=new d,this.onClick=s=>{this.clipboardSrv.isSupported?this.targetElm&&this.clipboardSrv.isTargetValid(this.targetElm)?this.handleResult(this.clipboardSrv.copyFromInputElement(this.targetElm),this.targetElm.value,s):this.cbContent&&this.handleResult(this.clipboardSrv.copyFromContent(this.cbContent,this.container),this.cbContent,s):this.handleResult(!1,void 0,s)}}ngOnInit(){this.ngZone.runOutsideAngular(()=>{this.clickListener=this.renderer.listen(this.host.nativeElement,"click",this.onClick)})}ngOnDestroy(){this.clickListener&&this.clickListener(),this.clipboardSrv.destroy(this.container)}handleResult(e,i,n){let r={isSuccess:e,content:i,successMessage:this.cbSuccessMsg,event:n};e?this.cbOnSuccess.observed&&this.ngZone.run(()=>{this.cbOnSuccess.emit(r)}):this.cbOnError.observed&&this.ngZone.run(()=>{this.cbOnError.emit(r)}),this.clipboardSrv.pushCopyResponse(r)}}return t.\u0275fac=function(e){return new(e||t)(c(p),c(b),c(y),c(w))},t.\u0275dir=v({type:t,selectors:[["","ngxClipboard",""]],inputs:{targetElm:[0,"ngxClipboard","targetElm"],container:"container",cbContent:"cbContent",cbSuccessMsg:"cbSuccessMsg"},outputs:{cbOnSuccess:"cbOnSuccess",cbOnError:"cbOnError"},standalone:!1}),t})();var V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=g({type:t}),t.\u0275inj=h({imports:[C]}),t})();export{W as a,V as b};
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.