{"version":3,"sources":["../../../src/govuk/tools/_font-url.scss"],"names":[],"mappings":"AAAA,GAAG;AACH,sBAAsB;AACtB,GAAG;AACH,gBAAgB;;AAEhB,WAAW;AACX,EAAE;AACF,0EAA0E;AAC1E,wEAAwE;AACxE,6BAA6B;AAC7B,EAAE;AACF,4CAA4C;AAC5C,4DAA4D;AAC5D,iBAAiB;;AAEjB;EACE,iBAAiB;EACjB;gCAC8B;;EAE9B;IACE;MACE,qDAAqD;IACvD,EAAE;MACA,sBAAsB;IACxB;EACF;;EAEA;IACE,8CAA8C;EAChD,EAAE;IACA,0CAA0C;EAC5C;AACF","file":"_font-url.scss","sourcesContent":["////\n/// @group tools/assets\n////\n@use \"sass:meta\";\n\n/// Font URL\n///\n/// If a custom font-url handler is defined ($govuk-font-url-function) then\n/// it will be called, otherwise a url will be returned with the filename\n/// appended to the font path.\n///\n/// @param {String} $filename - Font filename\n/// @return {String} URL for the filename, wrapped in `url()`\n/// @access public\n\n@function govuk-font-url($filename) {\n  // prettier-ignore\n  $custom-function: meta.variable-exists(\"govuk-font-url-function\")\n    and $govuk-font-url-function;\n\n  @if meta.type-of($custom-function) == \"string\" {\n    @if meta.function-exists($custom-function) {\n      $custom-function: meta.get-function($custom-function);\n    } @else {\n      $custom-function: null;\n    }\n  }\n\n  @if $custom-function {\n    @return meta.call($custom-function, $filename);\n  } @else {\n    @return url($govuk-fonts-path + $filename);\n  }\n}\n"]}
