"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core"),o=require("../base/base.liquid.js"),l=require("../../utils/mappingVariantStyles.js"),r=require("../../common/const.js");exports.default=({isVariantOutStock:s,swatchValue:i,...n})=>e.template`
    {% assign colorsString = null %}
    {% assign colors = null %}
    {% for label in labels %}
      {% if label == value %}
        {% assign colorsString = colorStrings[forloop.index0] %}
      {% endif %}
    {% endfor %}
    {% if colorsString != null %}
      {% assign colors = colorsString | split: '${r.OPTION_VALUES_DELIMITER}' %}
    {% endif %}
    ${o.default({...n,typeOfOption:"color",optionRounded:l.optionRoundedColorDefault})}
  `;
