{"version":3,"sources":["jsdelivr-header.js","/npm/@aurodesignsystem/auro-library@3.0.8/scripts/runtime/dependencyTagVersioning.mjs"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,yECCO,MAAM,EASX,mBAAA,CAAoB,EAAU,GAC5B,IAAI,EAAS,EAKb,OAHA,GAAU,IACV,GAAU,EAAQ,QAAQ,OAAQ,KAE3B,CACX,CAQE,WAAA,CAAY,EAAU,EAAS,GAC7B,MAAM,EAAc,KAAK,oBAAoB,EAAU,GACjD,EAAM,CAAO,GAAG,EAAa,KAMnC,OAJK,eAAe,IAAI,IACtB,eAAe,OAAO,EAAa,cAAc,KAG5C,CACX,S","file":"/npm/@aurodesignsystem/auro-library@3.0.8/scripts/runtime/dependencyTagVersioning.mjs/+esm","sourceRoot":"","sourcesContent":["/**\n * Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.37.0.\n * Original file: /npm/@aurodesignsystem/auro-library@3.0.8/scripts/runtime/dependencyTagVersioning.mjs\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license\n// See LICENSE in the project root for license information.\n\n// ---------------------------------------------------------------------\n\nimport { literal, unsafeStatic } from 'lit/static-html.js';\n\nexport class AuroDependencyVersioning {\n\n  /**\n   * Generates a unique string to be used for child auro element naming.\n   * @private\n   * @param {string} baseName - Defines the first part of the unique element name.\n   * @param {string} version - Version of the component that will be appended to the baseName.\n   * @returns {string} - Unique string to be used for naming.\n   */\n  generateElementName(baseName, version) {\n    let result = baseName;\n\n    result += '-';\n    result += version.replace(/[.]/g, '_');\n\n    return result;\n  }\n\n  /**\n   * Generates a unique string to be used for child auro element naming.\n   * @param {string} baseName - Defines the first part of the unique element name.\n   * @param {string} version - Version of the component that will be appended to the baseName.\n   * @returns {string} - Unique string to be used for naming.\n   */\n  generateTag(baseName, version, tagClass) {\n    const elementName = this.generateElementName(baseName, version);\n    const tag = literal`${unsafeStatic(elementName)}`;\n\n    if (!customElements.get(elementName)) {\n      customElements.define(elementName, class extends tagClass {});\n    }\n\n    return tag;\n  }\n}\n"]}