import {J,c as tS,lT as v$,d$ as h$,f as QT,dW as h_,dX as g_,ce as zy,lU as Hy,gA as I_,dp as wi,i as S$1,L as w,dI as y,dJ as d,dK as D,dL as p,dM as F,u as R,q as qu,e4 as Ly,W as Wu,v as W_,z as vM,A as Iw,c2 as iv,F as EM,a4 as Sy}from'./main-WUGO6e7n.js';var L,B,j=J(()=>{tS();S();tS();L=["*"],B=(()=>{class i{constructor(){this.items=v$(C),this.isFused=h$(!1),this.multiple=h$(!0);}setActiveItem(t){!this.multiple()&&t.isItemHidden?this.items().forEach(e=>e.setItemHidden(e!==t)):t.isItemHidden=!t.isItemHidden;}setActiveItemByIndex(t){let e=this.items();t>=0&&t<e.length&&this.setActiveItem(e[t]);}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275cmp=QT({type:i,selectors:[["dvl-accordion"]],contentQueries:function(e,o,a){e&1&&Hy(a,o.items,C,4),e&2&&I_();},hostVars:2,hostBindings:function(e,o){e&2&&zy("fused",o.isFused());},inputs:{isFused:[1,"isFused"],multiple:[1,"multiple"]},ngContentSelectors:L,decls:1,vars:0,template:function(e,o){e&1&&(h_(),g_(0));},styles:["[_nghost-%COMP%]{display:block;margin-bottom:1.5em}.fused[_nghost-%COMP%]     .accordion-item{border:1px solid var(--border-brand-400);border-bottom:1px solid var(--border-200);box-shadow:none}.fused[_nghost-%COMP%]     .accordion-item:first-child{border-radius:8px 8px 0 0}.fused[_nghost-%COMP%]     .accordion-item:last-child{border-radius:0 0 8px 8px}.fused[_nghost-%COMP%]     .accordion-item .accordion-item-header{padding:.57em .86em}.fused[_nghost-%COMP%]     .accordion-item+.accordion-item{margin:0;border-radius:0;border-top:0 none}.fused[_nghost-%COMP%]     .accordion-item+.accordion-item:last-child{border-radius:0 0 8px 8px}"],changeDetection:1});}}return i})();});var N,Q,C,S=J(()=>{tS();wi();S$1();j();tS();N=[[["",8,"title-action"]],[["",8,"action-buttons"]],"*",[["footer",8,"inner-footer"]],[["footer"]]],Q=[".title-action",".action-buttons","*","footer.inner-footer","footer"],C=(()=>{class i{constructor(){this.accordion=w(B,{optional:!0,host:!0}),this.isAccordionItem=!0,this.isItemHidden=!0;}toggleItem(){this.accordion?this.accordion.setActiveItem(this):this.isItemHidden=!this.isItemHidden;}setItemHidden(t){this.isItemHidden=t;}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275cmp=QT({type:i,selectors:[["dvl-accordion-item"]],hostVars:2,hostBindings:function(e,o){e&2&&zy("accordion-item",o.isAccordionItem);},inputs:{isItemHidden:"isItemHidden",title:"title"},ngContentSelectors:Q,decls:15,vars:6,consts:[[1,"accordion-item-header","flex","items-center",3,"click"],[1,"header-title-action",3,"click"],[1,"header-title"],[1,"header-actions","ml-auto"],["tabindex","0",1,"di","dvl-icon-arrow-down-medium","toggle-button",3,"keydown.enter"],[1,"accordion-item-content"],[1,"accordion-item-footer"]],template:function(e,o){e&1&&(h_(N),qu(0,"div",0),Ly("click",function(){return o.toggleItem()}),qu(1,"div",1),Ly("click",function(T){return T.stopPropagation()}),g_(2),Wu(),qu(3,"div",2)(4,"span"),W_(5),vM(6,"translate"),Wu()(),qu(7,"div",3),g_(8,1),qu(9,"i",4),Ly("keydown.enter",function(){return o.toggleItem()}),Wu()()(),qu(10,"div",5),g_(11,2),g_(12,3),Wu(),qu(13,"div",6),g_(14,4),Wu()),e&2&&(Iw(5),iv(EM(6,4,o.title)),Iw(4),zy("toggle-up",!o.isItemHidden),Iw(),Sy("@openClose",o.isItemHidden?"closed":"open"));},dependencies:[R],styles:[`.accordion-item{margin-top:1.4em;display:inline-block;width:100%;background-color:var(--bg-100);border-radius:.714em}.accordion-item:first-child{margin-top:.714em}.accordion-item-header{cursor:pointer;width:100%;padding:1.071em .714em 1.071em 1.428em;gap:var(--spacing-3, 12px)}.accordion-item-header .header-actions{display:flex;gap:5px;align-items:center}.accordion-item-header .header-actions .action-buttons{display:inline-flex;white-space:nowrap}.accordion-item-header .header-actions .action-buttons:hover{background-color:var(--accent-brand-100)}.accordion-item-header .header-actions .action-buttons ::ng-deep .p-button{height:auto;width:auto}.header-title{color:var(--text-300);font-size:1.286em;font-weight:600;line-height:1.2;flex:1 auto}.accordion-item-content{color:var(--card-txt-color);font-size:1em;overflow:hidden;padding:.5em 1em 1em}.accordion-item-content>*:first-child{margin-top:0}.header-title-action{display:flex;align-items:center}.header-title-action:empty{display:none}.accordion-item-footer{border-top:1px solid var(--security-box-border-color);font-size:1em;font-weight:600;line-height:1}.accordion-item-footer:empty{display:none}.inner-footer{margin-top:10px}.toggle-button{transition:background-color .2s;border-radius:50%;font-size:1.4em;padding:.3em}.toggle-button:before{transition:transform ease-in-out .3s;display:inline-block}.toggle-button.toggle-up:before{transform:rotate(-180deg)}.accordion-item-header:hover:not(:has(.p-button:hover)) .toggle-button,.toggle-button:hover{background-color:var(--dropdown-item-hover-background-color)}
`],encapsulation:2,data:{animation:[y("openClose",[d("open",D({height:"*",paddingTop:"*",paddingBottom:"*",margin:"*"})),d("closed",D({height:"0px",paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0})),p("open => closed",[F(".2s ease-in-out")]),p("closed => open",[F(".3s ease-in-out")])])]},changeDetection:1});}}return i})();});export{B,C,S,j};