"use strict";const u=require("../../../../../../../_virtual/generateVariantFunction.js");require("../../../../../lodash@4.17.21/node_modules/lodash/lodash.js");const i=require("../../../../../postcss@8.4.14/node_modules/postcss/lib/postcss.js");require("../../../../../postcss-selector-parser@6.0.10/node_modules/postcss-selector-parser/dist/index.js");require("./useMemo.js");const d=require("../../../../../../../_virtual/useMemo.js"),p=require("../../../../../../../_virtual/lodash.js"),_=require("../../../../../../../_virtual/index30.js");Object.defineProperty(u.__exports,"__esModule",{value:!0});u.__exports.default=M;var f=o(p.lodash.exports),m=o(i),v=o(_.dist.exports),h=d.__exports;function o(e){return e&&e.__esModule?e:{default:e}}const q=(0,v.default)(e=>e.first.filter(({type:r})=>r==="class").pop().value),x=(0,h.useMemo)(e=>q.transformSync(e),e=>e);function M(e,r={}){return{options:r,handler:(a,l)=>{const s=m.default.root({nodes:a.clone().nodes});a.before(f.default.defaultTo(e({container:s,separator:l.separator,modifySelectors:c=>(s.each(t=>{t.type==="rule"&&(t.selectors=t.selectors.map(n=>c({get className(){return x(n)},selector:n})))}),s)}),s).nodes)}}}
//# sourceMappingURL=generateVariantFunction.js.map
