import{Host,h}from"@stencil/core";import{hasAnyRuleGroupPassed}from"./conditional-functions";import{state as selectedProcessor}from"../../../../store/selected-processor/index";import{currentCheckout}from"../../../../store/checkout/getters";export class ScConditionalForm{constructor(){this.rule_groups=void 0}render(){return hasAnyRuleGroupPassed(this.rule_groups,{checkout:currentCheckout(),processor:null==selectedProcessor?void 0:selectedProcessor.id})?h(Host,null,h("slot",null)):null}static get is(){return"sc-conditional-form"}static get encapsulation(){return"shadow"}static get originalStyleUrls(){return{$:["sc-conditional-form.css"]}}static get styleUrls(){return{$:["sc-conditional-form.css"]}}static get properties(){return{rule_groups:{type:"unknown",mutable:!1,complexType:{original:"RuleGroup[]",resolved:"RuleGroup[]",references:{RuleGroup:{location:"import",path:"../../../../types",id:"src/types.ts::RuleGroup"}}},required:!1,optional:!1,docs:{tags:[],text:"Selector label"}}}}}