1import{a as E}from"./chunk-HYCAOGPQ.js";import{$b as _,Bc as p,Cc as l,Dc as d,Ec as c,Jb as o,Oe as k,Pc as y,Rc as u,Sc as C,Tc as v,Vc as I,Wc as B,Xc as S,bd as h,ed as g,fd as b,sc as f,uc as a,ve as T,wc as r}from"./chunk-WVBH4ZDA.js";var L=["buttonElementRef"],w=["*"];function D(i,t){i&1&&c(0,"span",2)}function R(i,t){if(i&1&&c(0,"app-signetrd-icon",3),i&2){let e=u();p("src",e.leadingIcon)}}function V(i,t){if(i&1&&(l(0,"span",5)(1,"span",7),g(2),d(),l(3,"span",7),g(4),d()()),i&2){let e=u();o(2),b(e.rollLabel),o(2),b(e.rollLabel)}}function A(i,t){i&1&&v(0)}function P(i,t){if(i&1&&c(0,"app-signetrd-icon",6),i&2){let e=u();p("src",e.trailingIcon)}}var x=class i{constructor(){this.kind="action";this.variant="primary";this.tone="default";this.disabled=!1;this.loading=!1;this.type="button";this.rollText=!1;this.rollLabel=""}get isAriaDisabled(){return this.disabled||this.loading?"true":null}onInteraction(t){!this.disabled&&!this.loading||t instanceof KeyboardEvent&&t.key!=="Enter"&&t.key!==" "||(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}get cssClass(){let t=this.tone==="inverse"?"_inverse":"",e=this.kind==="button"&&this.variant==="secondary"?"primary":this.variant;return`rd_${this.kind}_${e}${t}`}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=_({type:i,selectors:[["app-signetrd-button"]],viewQuery:function(e,n){if(e&1&&I(L,5),e&2){let s;B(s=S())&&(n.buttonElementRef=s.first)}},inputs:{kind:"kind",variant:"variant",tone:"tone",disabled:"disabled",loading:"loading",type:"type",rollText:"rollText",rollLabel:"rollLabel",leadingIcon:"leadingIcon",trailingIcon:"trailingIcon",ariaLabel:"ariaLabel"},ngContentSelectors:w,decls:8,vars:12,consts:[["buttonElementRef",""],[1,"detail_sm_medium",3,"click","keydown","type","disabled","ngClass"],["aria-hidden","true",1,"rd_button_spinner"],["aria-hidden","true",1,"rd_leading_icon",3,"src"],[1,"rd_action_text"],[1,"rd_roll_text"],["aria-hidden","true",1,"rd_trailing_icon",3,"src"],[1,"rd_roll_item"]],template:function(e,n){e&1&&(C(),l(0,"button",1,0),y("click",function(m){return n.onInteraction(m)})("keydown",function(m){return n.onInteraction(m)}),a(2,D,1,0,"span",2),a(3,R,1,1,"app-signetrd-icon",3),l(4,"span",4),a(5,V,5,2,"span",5)(6,A,1,0),d(),a(7,P,1,1,"app-signetrd-icon",6),d()),e&2&&(h("rd_button--loading",n.loading),p("type",n.disabled||n.loading?"button":n.type)("disabled",n.loading)("ngClass",n.cssClass),f("aria-disabled",n.isAriaDisabled)("aria-label",n.ariaLabel)("aria-busy",n.loading||null),o(2),r(n.loading?2:-1),o(),r(n.leadingIcon?3:-1),o(2),r(n.rollText&&n.rollLabel?5:6),o(2),r(n.trailingIcon?7:-1))},dependencies:[k,T,E],encapsulation:2})}};export{x 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.