vendor: 4,965 bytes, lines 1-54
1import{Ba as Y,Ja as ee,Ka as ne,La as te,Na as ie,Nc as oe,Oc as re,Pc as v,b as U,d as J,f as W,l as X,od as ce}from"./chunk-777WSWZL.js";import{$b as M,Bb as w,Cb as j,Db as m,Ia as h,Ic as q,Kb as _,Tb as c,Ub as f,Vb as g,Wb as z,Xb as k,Yb as E,Yc as G,Zb as B,_b as V,bb as N,dc as u,ec as R,fb as a,ic as C,ja as F,kb as T,kc as r,lc as Q,ld as A,ma as L,mc as K,nc as S,oa as b,pc as P,qc as D,rc as O,sc as H,va as s,vc as d,wa as l,wc as Z,xa as I,xb as x,xc as $}from"./chunk-TM6FWLLK.js";var me=["data-p-icon","times-circle"],ae=(()=>{class n extends ce{pathId;onInit(){this.pathId="url(#"+Y()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=h(n)))(i||n)}})();static \u0275cmp=x({type:n,selectors:[["","data-p-icon","times-circle"]],features:[w],attrs:me,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,i){t&1&&(I(),k(0,"g"),B(1,"path",0),E(),k(2,"defs")(3,"clipPath",1),B(4,"rect",2),E()()),t&2&&(_("clip-path",i.pathId),a(3),R("id",i.pathId))},encapsulation:2})}return n})();var pe=` 2 .p-chip { 3 display: inline-flex; 4 align-items: center; 5 background: dt('chip.background'); 6 color: dt('chip.color'); 7 border-radius: dt('chip.border.radius'); 8 padding-block: dt('chip.padding.y'); 9 padding-inline: dt('chip.padding.x'); 10 gap: dt('chip.gap'); 11 } 12 13 .p-chip-icon { 14 color: dt('chip.icon.color'); 15 font-size: dt('chip.icon.font.size'); 16 width: dt('chip.icon.size'); 17 height: dt('chip.icon.size'); 18 } 19 20 .p-chip-image { 21 border-radius: 50%; 22 width: dt('chip.image.width'); 23 height: dt('chip.image.height'); 24 margin-inline-start: calc(-1 * dt('chip.padding.y')); 25 } 26 27 .p-chip:has(.p-chip-remove-icon) { 28 padding-inline-end: dt('chip.padding.y'); 29 } 30 31 .p-chip:has(.p-chip-image) { 32 padding-block-start: calc(dt('chip.padding.y') / 2); 33 padding-block-end: calc(dt('chip.padding.y') / 2); 34 } 35 36 .p-chip-remove-icon { 37 cursor: pointer; 38 font-size: dt('chip.remove.icon.size'); 39 width: dt('chip.remove.icon.size'); 40 height: dt('chip.remove.icon.size'); 41 color: dt('chip.remove.icon.color'); 42 border-radius: 50%; 43 transition: 44 outline-color dt('chip.transition.duration'), 45 box-shadow dt('chip.transition.duration'); 46 outline-color: transparent; 47 } 48 49 .p-chip-remove-icon:focus-visible { 50 box-shadow: dt('chip.remove.icon.focus.ring.shadow'); 51 outline: dt('chip.remove.icon.focus.ring.width') dt('chip.remove.icon.focus.ring.style') dt('chip.remove.icon.focus.ring.color'); 52 outline-offset: dt('chip.remove.icon.focus.ring.offset'); 53 } 54`;var _e=["removeicon"],fe=["*"];function ge(n,p){if(n&1){let e=u();f(0,"img",4),C("error",function(i){s(e);
vendor: 2,990 bytes, line 54
54let o=r();return l(o.imageError(i))}),g()}if(n&2){let e=r();d(e.cx("image")),c("pBind",e.ptm("image"))("src",e.image,N)("alt",e.alt)}}function he(n,p){if(n&1&&z(0,"span",6),n&2){let e=r(2);d(e.icon),c("pBind",e.ptm("icon"))("ngClass",e.cx("icon"))}}function ue(n,p){if(n&1&&m(0,he,1,4,"span",5),n&2){let e=r();c("ngIf",e.icon)}}function Ce(n,p){if(n&1&&(f(0,"div",7),Z(1),g()),n&2){let e=r();d(e.cx("label")),c("pBind",e.ptm("label")),a(),$(e.label)}}function ve(n,p){if(n&1){let e=u();f(0,"span",11),C("click",function(i){s(e);let o=r(3);return l(o.close(i))})("keydown",function(i){s(e);let o=r(3);return l(o.onKeydown(i))}),g()}if(n&2){let e=r(3);d(e.removeIcon),c("pBind",e.ptm("removeIcon"))("ngClass",e.cx("removeIcon")),_("tabindex",e.disabled?-1:0)("aria-label",e.removeAriaLabel)}}function ye(n,p){if(n&1){let e=u();I(),f(0,"svg",12),C("click",function(i){s(e);let o=r(3);return l(o.close(i))})("keydown",function(i){s(e);let o=r(3);return l(o.onKeydown(i))}),g()}if(n&2){let e=r(3);d(e.cx("removeIcon")),c("pBind",e.ptm("removeIcon")),_("tabindex",e.disabled?-1:0)("aria-label",e.removeAriaLabel)}}function be(n,p){if(n&1&&(V(0),m(1,ve,1,6,"span",9)(2,ye,1,5,"svg",10),M()),n&2){let e=r(2);a(),c("ngIf",e.removeIcon),a(),c("ngIf",!e.removeIcon)}}function Ie(n,p){}function xe(n,p){n&1&&m(0,Ie,0,0,"ng-template")}function we(n,p){if(n&1){let e=u();f(0,"span",13),C("click",function(i){s(e);let o=r(2);return l(o.close(i))})("keydown",function(i){s(e);let o=r(2);return l(o.onKeydown(i))}),m(1,xe,1,0,null,14),g()}if(n&2){let e=r(2);d(e.cx("removeIcon")),c("pBind",e.ptm("removeIcon")),_("tabindex",e.disabled?-1:0)("aria-label",e.removeAriaLabel),a(),c("ngTemplateOutlet",e.removeIconTemplate||e._removeIconTemplate)}}function Te(n,p){if(n&1&&(V(0),m(1,be,3,2,"ng-container",3)(2,we,2,6,"span",8),M()),n&2){let e=r();a(),c("ngIf",!e.removeIconTemplate&&!e._removeIconTemplate),a(),c("ngIf",e.removeIconTemplate||e._removeIconTemplate)}}var ke={root:({instance:n})=>["p-chip p-component",{"p-disabled":n.disabled}],image:"p-chip-image",icon:"p-chip-icon",label:"p-chip-label",removeIcon:"p-chip-remove-icon"},se=(()=>{class n extends ie{name="chip";style=pe;classes=ke;static \u0275fac=(()=>{let e;return function(i){return(e||(e=h(n)))(i||n)}})();static \u0275prov=F({token:n,factory:n.\u0275fac})}return n})();var le=new L("CHIP_INSTANCE"),Xe=(()=>{class n extends re{$pcChip=b(le,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=b(v,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}label;icon;image;alt;styleClass;disabled=!1;removable=!1;removeIcon;onRemove=new T;onImageError=new T;visible=!0;get removeAriaLabel(){return this.config.getTranslation(te.ARIA).removeLabel}get chipProps(){return this._chipProps}set chipProps(e){this._chipProps=e,e&&typeof e=="object"&&Object.entries(e).forEach(([t,i])=>this[`_${t}`]!==i&&(this[`_${t}`]=i))}_chipProps;_componentStyle=b(se);removeIconTemplate;templates;_removeIconTemplate;
54onAfterContentInit(){this.templates.forEach(e=>{e.getType()==="removeicon"?this._removeIconTemplate=e.template:this._removeIconTemplate=e.template})}onChanges(e){if(e.chipProps&&e.chipProps.currentValue){let{currentValue:t}=e.chipProps;t.label!==void 0&&(this.label=t.label),t.icon!==void 0&&(this.icon=t.icon),t.image!==void 0&&(this.image=t.image),t.alt!==void 0&&(this.alt=t.alt),t.styleClass!==void 0&&(this.styleClass=t.styleClass),t.removable!==void 0&&(this.removable=t.removable),t.removeIcon!==void 0&&(this.removeIcon=t.removeIcon)}}close(e){this.visible=!1,this.onRemove.emit(e)}onKeydown(e){(e.key==="Enter"||e.key==="Backspace")&&this.close(e)}imageError(e){this.onImageError.emit(e)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=h(n)))(i||n)}})();static \u0275cmp=x({type:n,selectors:[["p-chip"]],contentQueries:function(t,i,o){if(t&1&&(S(o,_e,4),S(o,ee,4)),t&2){let y;P(y=D())&&(i.removeIconTemplate=y.first),P(y=D())&&(i.templates=y)}},hostVars:5,hostBindings:function(t,i){t&2&&(_("aria-label",i.label),d(i.cn(i.cx("root"),i.styleClass)),H("display",!i.visible&&"none"))},inputs:{label:"label",icon:"icon",image:"image",alt:"alt",styleClass:"styleClass",disabled:[2,"disabled","disabled",A],removable:[2,"removable","removable",A],removeIcon:"removeIcon",chipProps:"chipProps"},outputs:{onRemove:"onRemove",onImageError:"onImageError"},features:[q([se,{provide:le,useExisting:n},{provide:oe,useExisting:n}]),j([v]),w],ngContentSelectors:fe,decls:6,vars:4,consts:[["iconTemplate",""],[3,"pBind","class","src","alt","error",4,"ngIf","ngIfElse"],[3,"pBind","class",4,"ngIf"],[4,"ngIf"],[3,"error","pBind","src","alt"],[3,"pBind","class","ngClass",4,"ngIf"],[3,"pBind","ngClass"],[3,"pBind"],["role","button",3,"pBind","class","click","keydown",4,"ngIf"],["role","button",3,"pBind","class","ngClass","click","keydown",4,"ngIf"],["data-p-icon","times-circle","role","button",3,"pBind","class","click","keydown",4,"ngIf"],["role","button",3,"click","keydown","pBind","ngClass"],["data-p-icon","times-circle","role","button",3,"click","keydown","pBind"],["role","button",3,"click","keydown","pBind"],[4,"ngTemplateOutlet"]],template:function(t,i){if(t&1&&(Q(),K(0),m(1,ge,1,5,"img",1)(2,ue,1,1,"ng-template",null,0,G)(4,Ce,2,4,"div",2)(5,Te,3,2,"ng-container",3)),t&2){let o=O(3);a(),c("ngIf",i.image)("ngIfElse",o),a(3),c("ngIf",i.label),a(),c("ngIf",i.removable)}},dependencies:[X,U,J,W,ae,ne,v],encapsulation:2,changeDetection:0})}return n})();export{ae as a,Xe 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.