{"version":3,"sources":["../../../src/govuk/tools/_exports.scss"],"names":[],"mappings":"AAAA,GAAG;AACH,eAAe;AACf,GAAG;AACH,gBAAgB;;AAEhB,mDAAmD;AACnD,EAAE;AACF,aAAa;AACb,kBAAkB;;AAElB,qCAAqC;;AAErC,gBAAgB;AAChB,EAAE;AACF,6EAA6E;AAC7E,wEAAwE;AACxE,6CAA6C;AAC7C,EAAE;AACF,8EAA8E;AAC9E,6EAA6E;AAC7E,yCAAyC;AACzC,iBAAiB;;AAEjB;EACE,gEAAgE;EAChE;IACE,6BAA6B;IAC7B,8EAA8E;IAC9E,wCAAwC;IACxC,QAAQ;EACV;EACA,6EAA6E;EAC7E,qDAAqD;AACvD","file":"_exports.scss","sourcesContent":["////\n/// @group tools\n////\n@use \"sass:list\";\n\n/// List of modules which have already been exported\n///\n/// @type List\n/// @access private\n\n$_govuk-imported-modules: () !default;\n\n/// Export module\n///\n/// Ensure that the modules of CSS that we define throughout Frontend are only\n/// included in the generated CSS once, no matter how many times they are\n/// imported across the individual components.\n///\n/// @param {String} $name - Name of module - must be unique within the codebase\n/// @content The passed content will only be outputted if a module of the same\n///   $name has not already been outputted\n/// @access public\n\n@mixin govuk-exports($name) {\n  // If the mixin is not in the list of modules already exported...\n  @if not list.index($_govuk-imported-modules, $name) {\n    // ... then add it to the list\n    $_govuk-imported-modules: list.append($_govuk-imported-modules, $name) !global;\n    // ... and output the CSS for that module\n    @content;\n  }\n  // The next time exports is called for the module of the same name, it will be\n  // found in the list and so nothing will be outputted.\n}\n"]}
