1import {N}from'./chunk-JNl0N8pb.js';import'./chunk-Dasxtaqx.js';import'./chunk-rNmmLpQP.js';import'./chunk-DYEG5E5y.js';import {v,eE as g,b7 as b,b1 as r,Y as Yb,dS as ee,am as CD,R as Rs,o as gS,bg as pS,Z as Zu,bB as XS,L as Lv,i as iC,b as tM,I as IM,q as mS,cF as at$1,j as u,g as p,eF as n,cu as e,U as UM,G as Gv,d as dS,z as dM,m as GM,y as Ug,ak as kv,f as fS,ag as gy,P as Pv,O as OS,w as wS,ca as hS,ab as RM,A as rd,r as rp,x as op}from'./main-YHOEWA6S.js';import'./chunk-DvyR_kbp.js';import'./chunk-B-kIO_yZ.js';function G(n,o){if(n&1&&(Pv(0,"img",2),UM(1,"storyblokCdn")),n&2){let t=OS(3);Lv("src",GM(1,2,t.button.icon.filename),Ug)("alt",t.button.icon.alt||"");}}function J(n,o){if(n&1&&(Pv(0,"app-svg",1),UM(1,"storyblokCdn")),n&2){let t=OS(3);Lv("src",GM(1,1,t.button.icon.filename));}}function X(n,o){if(n&1&&dS(0,G,2,4,"img",2)(1,J,2,3,"app-svg",1),n&2){let t=OS(2);fS(t.button.iconHasColor?0:1);}}function Z(n,o){if(n&1&&dS(0,X,2,1),n&2){let t=OS();fS(t.button.iconPosition==="left"?0:-1);}}function tt(n,o){if(n&1&&(Pv(0,"img",2),UM(1,"storyblokCdn")),n&2){let t=OS(2);Lv("src",GM(1,2,t.button.icon.filename),Ug)("alt",t.button.icon.alt||"");}}function nt(n,o){if(n&1&&(Pv(0,"app-svg",1),UM(1,"storyblokCdn")),n&2){let t=OS(2);Lv("src",GM(1,1,t.button.icon.filename));}}function ot(n,o){if(n&1&&dS(0,tt,2,4,"img",2)(1,nt,2,3,"app-svg",1),n&2){let t=OS();fS(t.button.iconHasColor?0:1);}}function et(n,o){if(n&1&&Pv(0,"app-svg",1),n&2){let t=OS();Lv("src",IM("assets/icons/",t.button.icon,".svg"));}}var S=class n$1{button;onClick=new at$1;static \u0275fac=function(t){return new(t||n$1)};static \u0275cmp=Yb({type:n$1,selectors:[["app-storyblok-button-item"]],inputs:{button:"button"},outputs:{onClick:"onClick"},decls:7,vars:16,consts:[["appButton","","location","storyblok-button","shape","round",3,"click","name","color","spacing","height","weight","size","hasIcon","iconButton","href","rel"],[3,"src"],[3,"src","alt"]],template:function(t,e){t&1&&(Rs(0,"a",0),UM(1,"storyblokLinkUrl"),Gv("click",function(b){return e.onClick.emit(b)}),dS(2,Z,1,1),Rs(3,"span"),dM(4),Zu(),dS(5,ot,2,1)(6,et,1,2,"app-svg",1),Zu()),t&2&&(Lv("name",e.button.analyticsName||"custom-button")("color",e.button.buttonColor||e.button.buttonColorOverride)("spacing",e.button.buttonSpacing)("height",e.button.buttonSize)("weight",e.button.bold?"bold":"normal")("size",e.button.textSize)("hasIcon",!!e.button.icon&&!!e.button.text)("iconButton",!!e.button.icon&&!e.button.text)("href",GM(1,14,e.button.link),Ug)("rel",e.button.noReferrer?"noopener noreferrer":""),kv("target",e.button.link.target),iC(2),fS(e.button.icon?.filename?2:-1),iC(2),gy(e.button.text),iC(),fS(e.button.icon?.filename&&e.button.iconPosition==="right"?5:e.button.icon&&e.button.iconPosition==="right"?6:-1));},dependencies:[u,p,n,e],encapsulation:2})};var it=()=>({width:"240px",noSpacing:true});function rt(n,o){if(n&1){let t=wS();Rs(0,"app-storyblok-button-item",4),Gv("onClick",function(y){rp(t);let b=OS(2);return op(b.onClick(y))}),Zu();}if(n&2){let t=OS().$implicit;Lv("button",t);}}function lt(n,o){if(n&1){let t=wS();Rs(0,"app-storyblok-button-item",4),Gv("onClick",function(y){rp(t);let b=OS(4);return op(b.onClick(y))}),Zu();}if(n&2){let t=OS().$implicit;Lv("button",t);}}function at(n,o){n&1&&Pv(0,"div",7);}function pt(n,o){if(n&1&&dS(0,lt,1,1,"app-storyblok-button-item",2)(1,at,1,0,"div",7),n&2){let t=o.$implicit;fS(t.component==="button_list_item"?0:t.component==="button_list_line_item"?1:-1);}}function st(n,o){if(n&1&&(Rs(0,"app-context-menu",3),Pv(1,"app-storyblok-button-item",5),Rs(2,"div",6),gS(3,pt,2,1,null,null,hS),Zu()()),n&2){let t=OS().$implicit;Lv("options",RM(2,it)),iC(),Lv("button",t.button[0]),iC(2),mS(t.dropdownButtons);}}function ut(n,o){if(n&1&&dM(0),n&2){let t=OS().$implicit;rd(" ",t.component," ");}}function mt(n,o){if(n&1&&dS(0,rt,1,1,"app-storyblok-button-item",2)(1,st,5,3,"app-context-menu",3)(2,ut,1,1),n&2){let t=o.$implicit;fS(t.component==="button_list_item"?0:t.component==="button_list_dropdown_item"?1:2);}}var Q=class n{internalRouteHelperService=v(g);storyblokReplaceService=v(b);storyblokService=v(r);_uid;component;_editable;style;buttons;buttonSpacing;ngOnChanges(){this.buttons=this.buttons.filter(o=>{if(o.component==="button_list_item"||o.component==="button_list_line_item")return this.shouldShowButton(o);if(o.component==="button_list_dropdown_item"){let t=o.button[0];return this.shouldShowButton(t)}}),this.buttons.forEach(o=>{o.component==="button_list_dropdown_item"?(o.dropdownButtons=o.dropdownButtons.filter(t=>this.shouldShowButton(t)),this.resolveButtonText(o.button[0]),o.dropdownButtons.forEach(t=>{t.component==="button_list_item"&&this.resolveButtonText(t);})):o.component==="button_list_item"&&this.resolveButtonText(o);});}resolveButtonText(o){o.text||(o.text=this.storyblokService.getLinkName(o.link)||"");}shouldShowButton(o){return o.condition?!!this.storyblokReplaceService.getFromKey(o.condition):true}
1onClick(o){return this.internalRouteHelperService.handleClick(o)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=Yb({type:n,selectors:[["app-storyblok-button-list"]],inputs:{_uid:"_uid",component:"component",_editable:"_editable",style:"style",buttons:"buttons",buttonSpacing:"buttonSpacing"},features:[CD],decls:5,vars:6,consts:[[3,"_editable"],[1,"button-list-wrapper"],[3,"button"],[3,"options"],[3,"onClick","button"],["contextButton","",3,"button"],["contextContent","",1,"button-menu"],[1,"divider"]],template:function(t,e){t&1&&(Rs(0,"app-block-wrapper",0)(1,"div",1)(2,"div"),gS(3,mt,3,1,null,null,pS),Zu()()()),t&2&&(XS(e.style),Lv("_editable",e._editable),iC(2),tM(IM("button-list gap-",e.buttonSpacing||"2")),iC(),mS(e.buttons));},dependencies:[ee,N,S],styles:[`.button-list[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-width:fit-content}.button-list.gap-0[_ngcontent-%COMP%]{gap:0}.button-list.gap-1[_ngcontent-%COMP%]{gap:6px}.button-list.gap-2[_ngcontent-%COMP%]{gap:10px}.button-list.gap-3[_ngcontent-%COMP%]{gap:16px}.button-list-wrapper[_ngcontent-%COMP%]{overflow-x:scroll;padding:0 20px;margin:0 -20px}.button-list-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar{width:0;height:0;background:transparent} 2/*# sourceMappingURL=storyblok-button-list.component-D77A7QB3.css.map */`]})};export{Q as StoryblokButtonListComponent};//# sourceMappingURL=chunk-D1Rl09wu.js.map 3//# debugId=2334e928-c3a6-58f0-96f0-98af48d3bf5b
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.