1import{a as D}from"./chunk-NLXV4I5A.js";import{b as O}from"./chunk-VJFTX4QI.js";import{Ba as B,D as M,Q as T}from"./chunk-HEZNEFM5.js";import{Bc as P,Hb as S,Ia as o,Ib as x,Jb as v,Ma as f,Qa as L,Va as w,ab as a,cc as h,dc as y,ea as I,fa as m,ga as u,nb as c,ob as p,pb as d,qb as g,qd as b,rb as k,tb as C,wb as _,xb as l}from"./chunk-B55Z224L.js";function N(i,n){i&1&&d(0,"span",11)}function E(i,n){if(i&1){let e=C();g(0),c(1,"div",7),w(2,N,1,0,"span",8),c(3,"swire-input",9,0),_("click",function(s){m(e);let r=l();return u(r.onKeyDown(s))})("keypress",function(s){m(e);let r=l();return u(r.onKeyDown(s))}),p()(),c(5,"swire-button",10),h(6,"translate"),_("click",function(){m(e);let s=S(4),r=l();return u(r.copyUrl(s))}),p(),k()}if(i&2){let e=l();o(2),a("ngIf",e.copyLinkIcon),o(),a("swAutocomplete","text-"+e.swAutocompleteRandom)("swDefaultValue",e.shareLinks)("swReadOnlyProperties",!0),o(2),a("swClass","left swi-button-greyblue-tiny-default-regular")("swIconClass","Primary-80 swi-icon icon-copy icon-size-16")("swIsShowIcon",!0)("swButtonIconPosition","left")("swButtonName",y(6,9,"Copy Link"))}}function A(i,n){i&1&&d(0,"span",11)}function z(i,n){if(i&1){let e=C();g(0),c(1,"div",7),w(2,A,1,0,"span",8),d(3,"swire-input",12,1),p(),c(5,"swire-button",13),h(6,"translate"),_("click",function(){m(e);let s=S(4),r=l();return u(r.copyUrl(s))}),p(),k()}if(i&2){let e=l();o(2),a("ngIf",e.copyLinkIcon),o(),a("swAutocomplete","text-"+e.swAutocompleteRandom)("swDefaultValue",e.shareLinks)("swReadOnlyProperties",!0),o(2),a("swClass","left swi-button-greyblue-tiny-default-regular")("swIconClass","Primary-80 swi-icon icon-copy icon-size-16")("swIsShowIcon",!0)("swButtonIconPosition","left")("swButtonName",y(6,9,"Copy Link"))}}var V=class i{constructor(n,e){this._modelService=n;this._sharePopupService=e}_modelService;_sharePopupService;modalType;copyLinkIcon=!1;shareLinks="";swAutocompleteRandom=Math.floor(Math.random()*1e4);ngOnChanges(n){}ngOnInit(){this._modelService?.objModal?.item?.link&&(this.shareLinks=this._modelService?.objModal?.item?.link,this.addSharLinkSchedule())}addSharLinkSchedule(){let n={szUrl:this.shareLinks};this._sharePopupService.addShortedLink(n).subscribe(e=>{e&&e.data&&(this.shareLinks=location.origin+"/shortUrl/"+e.data.szUrlKey)},e=>{})}copyUrl(n){this.copyToClipboard(n.swDefaultValue)}copyToClipboard(n){let e=document.createElement("textarea");e.value=n,document.body.appendChild(e),e.select();try{document.execCommand("copy"),this.copyLinkIcon=!0}catch{this.copyLinkIcon=!1}finally{document.body.removeChild(e)}}onKeyDown(n){let e=n,t=e.which?e.which:e.keyCode;t>=67&&(t==1||t>=17)&&(this.copyLinkIcon=!0)}static \u0275fac=function(e){return new(e||i)(f(O),f(D))};static \u0275cmp=L({type:i,selectors:[["app-share-link"]],hostBindings:function(e,t){e&1&&_("keydown",function(r){return t.onKeyDown(r)})},inputs:{modalType:"modalType"},features:[I],decls:10,vars:8,consts:[["userinput",""],["userinput1",""],[1,"paragraph-semibold-18","Text-90"],[1,"icon-link","swi-icon","icon-size-28","Primary-80","share-link-icon"],[1,"copy-link-div"],[1,"data-sure","paragraph-regular-15","Text-100","ps-0"],[4,"ngIf"],[1,"d-flex","flex-check"],["class","swi-icon icon-success Success-Dark icon-size-20",4,"ngIf"],["locator","copyTrackNumberInput",1,"",3,"click","keypress","swAutocomplete","swDefaultValue","swReadOnlyProperties"],["locator","copyTrackNumber",3,"click","swClass","swIconClass","swIsShowIcon","swButtonIconPosition","swButtonName"],[1,"swi-icon","icon-success","Success-Dark","icon-size-20"],["locator","copyTrackNumberInput",3,"swAutocomplete","swDefaultValue","swReadOnlyProperties"],["type","button","locator","copyTrackNumber",3,"click","swClass","swIconClass","swIsShowIcon","swButtonIconPosition","swButtonName"]],template:function(e,t){e&1&&(c(0,"h4",2),d(1,"span",3),x(2),h(3,"translate"),p(),c(4,"div",4)(5,"p",5),x(6),h(7,"translate"),p(),w(8,E,7,11,"ng-container",6)(9,z,7,11,"ng-container",6),p()),e&2&&(o(2),v(y(3,4,"Share Link")),o(4),v(y(7,6,"Anyone with this link will be able to see this page based")),o(2),a("ngIf",t.modalType==="ShareLink1"),o(),a("ngIf",t.modalType=="ShareLink2"))},dependencies:[B,M,T,P,b],styles:["h4[_ngcontent-%COMP%]{text-align:left;display:flex;gap:5px;margin-bottom:0}.copy-link-div[_ngcontent-%COMP%]{padding-left:35px;padding-right:0;display:flex;flex-direction:column;position:relative;row-gap:10px}.copy-link-div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.copy-link-div[_ngcontent-%COMP%] swire-button[_ngcontent-%COMP%]{margin-left:auto}
1.copy-link-div[_ngcontent-%COMP%] .data-sure[_ngcontent-%COMP%]{padding:0 0 0 30px;text-align:left}.copy-link-div[_ngcontent-%COMP%] .flex-check[_ngcontent-%COMP%]{align-items:center;position:relative;column-gap:10px}.copy-link-div[_ngcontent-%COMP%] .flex-check[_ngcontent-%COMP%] .icon-success[_ngcontent-%COMP%]{position:absolute;left:-30px}.copy-link-div[_ngcontent-%COMP%] .flex-check[_ngcontent-%COMP%] swire-input[_ngcontent-%COMP%]{width:100%}"]})};export{V as a};
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.