import{__assign as e}from"tslib";import{jsx as o}from"react/jsx-runtime";import i from"./TierCard.js";import r from"../styles/RuleTierList.module.css.js";var t=function(t){var n=t.tiers,s=t.onToggleTier,l=t.onDeleteRule,a=t.isGlobalScope,d=void 0!==a&&a,u=t.onFetchOverrideHistory,c=t.onEditRule,h=t.onEditVariant,m=t.onDeleteVariant,g=t.highlightedVariants,T=t.highlightedTierNames,R=t.onToggleSuccess,f=t.onReorderRules,p=t.ruleSetId,v=t.onRefreshRuleSets,S=t.setDeleteConfirmationUsedFor,C=t.onCopyToTier;return o("div",e({className:r.container},{children:o("div",e({className:r.tiersList},{children:n.map(function(e){return e.ruleCount>0&&o(i,{tier:e,allTiers:n,onToggle:function(){return s(e.id)},onDeleteRule:l,isGlobalScope:d,onFetchOverrideHistory:u,onEditRule:c,onEditVariant:h,onDeleteVariant:m,highlightedVariants:g,highlightedTierNames:T,onToggleSuccess:R,onReorderRules:f,scopeId:p,onRefreshRuleSets:v,setDeleteConfirmationUsedFor:S,onCopyToTier:C},e.id)})}))}))};export{t as default};
//# sourceMappingURL=RuleTierList.js.map
