"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core"),t=require("@gem-sdk/system"),s=require("./common/styles.js"),l=require("./common/classes.js");exports.default=r=>{let{isSelected:a,setting:o,styles:i,bundleItem:c,rawChildrenItem:n}=r,d=t.createStyle(s.getItemWrapStyles(i,a)),u=t.createClass(l.getLayoutClasses(o)),g=t.createStyle(s.getIconStyles(o)),m=t.createStyle(s.getSvgActiveStyles(i)),p=t.createStyle(s.getSvgStyles(i)),v=t.createClass(l.getIconSectionClasses),y=t.createClass(l.getItemClasses),C=t.createClass(s.getFlexChildren);return e.template`
  <gp-product-bundle-discount-item ${c} aria-hidden class="${y}" style="${d}">
  <div class="${u}">
    ${t.If(o?.enableIcon,e.template`
    <div class="${v}" style="${g}">
      ${t.If(a,e.template`<svg style="${m}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor">
          <path fill="currentColor" strokeLinecap="round" strokeLinejoin="round"
            d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Z"></path>
        </svg>`,e.template`<svg style="${p}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor">
          <path fill="currentColor" strokeLinecap="round" strokeLinejoin="round"
            d="M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Z">
          </path>
      </svg>`)}

    </div>
    `)}
    <div class="${C}">
      ${e.RenderChildren({...n})}
    </div>
  </div>
</gp-product-bundle-discount-item>
  `};
