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G,KAAKD,QAAO,MAE5CsK,EAA0BjG,UAAUmG,QAClC,KAAI,IAAAnH,OACAvC,KAAKhB,qBAAqBC,OAAOC,QAAO,OAGlDuK,IACFA,EAAwBlG,UACtBkG,EAAwBlG,UAAUmG,QAChC,KAAI,IAAAnH,OACAvC,KAAKhB,qBAAqBG,KAAKD,QAAO,MAGlD,CACF,GAAC,CAAAvL,IAAA,wCAAAE,MAED,SAAsC4O,GAChCA,IAAwB/D,EAAa+D,KACvCzC,KAAKoB,wBACHqB,IAAwB/D,EAAaC,kBACjCF,EACAA,EACNuB,KAAK2J,sBACL3J,KAAK4J,sBAET,GAAC,CAAAjW,IAAA,2BAAAE,MAED,SAAyByP,GAA4B,IAAnBuG,IAAU5M,UAAA1D,OAAA,QAAA9B,IAAAwF,UAAA,KAAAA,UAAA,GAC1CoD,SACGO,iBAAiB,IAAD2B,OAAKe,EAAO,WAC5BhN,SAAQ,SAAC8M,GAAY,OAAMA,EAAa0G,SAAWD,CAAU,GAClE,GAAC,CAAAlW,IAAA,YAAAE,MAED,SAAUkW,EAAgBC,GACxB,OAGS,IAFPD,EAAeE,cAAcD,OAAkBvS,EAAW,CACxDyS,SAAS,GAGf,IAzrBFzI,GAAAlE,EAAAuC,EAAAxM,UAAAmO,GAAApO,OAAAI,eAAAqM,EAAA,aAAArL,UAAA,IAyrBGiL,CAAA,CAnoB2B","sources":["webpack:///./resources/js/components/layout/download-journey.ts"],"sourcesContent":["import tracking from \"../../utils/tracking\";\n\n// Map Structures\nconst journeyStepsMap = {\n  0: \"component--download-journey-stage1\",\n  1: \"component--download-journey-stage2\",\n  2: \"component--download-journey-stage3\",\n  3: \"component--download-journey-stage4\",\n  4: \"component--download-journey-stage5\",\n};\n\nconst osSpecificTriggerBannerIdMap = {\n  operating_system_step_4: \"operating_system_step_4\",\n  operating_system_step_5: \"operating_system_step_5\",\n  operating_system: \"operating_system\",\n};\n\nconst cloudServiceProviderTriggerIdMap = {\n  cloud_platform: \"cloud_platform\",\n  cloud_platform_step_4: \"cloud_platform_step_4\",\n};\n\nconst softwareVersion = {\n  longTermSupport: \"Enterprise\",\n  latestRelease: \"Standard\",\n};\n\nconst triggerValue = {\n  long_term_support: \"long_term_support\",\n  latest_release: \"latest_release\",\n};\n\nconst downloadJsonMap = { Standard: {}, Enterprise: {} };\n\nconst latestVersionsByType = {\n  Enterprise: \"\",\n  Standard: \"\",\n  Latest: {\n    type: \"\",\n    version: \"\",\n  },\n  Last: {\n    type: \"\",\n    version: \"\",\n  },\n};\n\nconst urlLinkMap = {\n  osx: \"\",\n  linux_64_bit: \"\",\n  tar_gz_archive: \"\",\n  windows_64_bit: \"\",\n  zip_archive: \"\",\n};\n\nclass DownloadJourneyContainer {\n  domRoot: HTMLElement;\n  params: any;\n  numOfSteps: number;\n  currentStage: number;\n  previousStage: number;\n  backButton: any;\n  nextButton: any;\n  checksum: any;\n  licenseAgreementAndPrivacyPolicyCheckbox: any;\n  bannerContainer: any;\n  listOfInputButtons: NodeListOf<Element>;\n  listOfVersionChoicesId: string[];\n  displayBannerShown: boolean;\n  isReadyToBeCompleted: boolean;\n  isLoading: boolean;\n  downloadJson: never[];\n  downloadJsonMap: { Standard: {}; Enterprise: {} };\n  downloadItems: never[];\n  downloadUrlLinks: {\n    osx: string;\n    linux_64_bit: string;\n    tar_gz_archive: string;\n    windows_64_bit: string;\n    zip_archive: string;\n  };\n  softwareVersionSelected: string;\n  latestVersionsByType: {\n    Enterprise: string;\n    Standard: string;\n    Latest: { type: string; version: string };\n    Last: { type: string; version: string };\n  };\n  nextStep: string;\n  optionsIncludingKubernete: string[];\n  isServerSelected: boolean;\n\n  constructor(domRoot: HTMLElement, params: any) {\n    this.domRoot = domRoot;\n    this.params = params;\n    this.numOfSteps = 5;\n    this.currentStage = 0;\n    this.previousStage = 0;\n    this.backButton = document.querySelector('a[data-label=\"Back\"]');\n    this.nextButton = document.querySelector('a[data-label=\"Next\"]');\n    this.checksum = document.querySelector('#checksum-download a');\n    this.licenseAgreementAndPrivacyPolicyCheckbox = document.querySelector(\n      \"#license-agreement-and-privacy-policy\"\n    );\n    this.bannerContainer = document.querySelector(\n      \".container--announcement-banner-container\"\n    );\n    this.listOfInputButtons = document.querySelectorAll(\n      \".component--download-journey-container input\"\n    );\n    this.listOfVersionChoicesId = [\n      \"choose_your_version\",\n      \"choose_your_version_step_4\",\n    ];\n    this.displayBannerShown = false;\n    this.isReadyToBeCompleted = false;\n    this.isLoading = false;\n    this.downloadJson = [];\n    this.downloadJsonMap = downloadJsonMap;\n    this.downloadItems = [];\n    this.downloadUrlLinks = urlLinkMap;\n    this.softwareVersionSelected = softwareVersion.latestRelease;\n    this.latestVersionsByType = latestVersionsByType;\n    this.nextStep = \"\";\n    this.optionsIncludingKubernete = [\n      \"choose_your_infrastructure\",\n      \"choose_your_infrastructure_step_3\",\n    ];\n    this.isServerSelected = false;\n    this.init();\n  }\n\n  init() {\n    var self = this;\n    self.isLoading = true;\n\n    self.getJSON(self.params.productArchivedJSON);\n    self.getJSON(self.params.productCurrentJSON);\n\n    self.nextButton.addEventListener(\"click\", (e) => {\n      e.preventDefault();\n\n      if (self.isReadyToBeCompleted) {\n        window.location = self.nextButton.href;\n      } else if (\n        self.numOfSteps >= self.currentStage + 1 &&\n        !self.nextButton.classList.contains(\"isdisabled\")\n      ) {\n        // don't do anything if nothing in current step is selected\n        const selectedInput = document.querySelector(\n          `#${journeyStepsMap[self.currentStage]} input:checked`\n        );\n\n        if (selectedInput) {\n          self.nextStep = selectedInput.getAttribute(\"data-next-step\");\n          const selectedInputVallue = selectedInput.value;\n          const currentStep = selectedInput.getAttribute(\"name\");\n          if (currentStep === \"choose_your_deployment\") {\n            self.isServerSelected = selectedInputVallue === \"server\";\n          }\n          self.setVersionNumberOnText(self.nextStep);\n\n          // if it is crowd always ues the 'latest release', since lts/enterprise doesn't exist\n          if (\n            (self.params.product === \"crowd\" &&\n              osSpecificTriggerBannerIdMap[self.nextStep]) ||\n            self.nextStep === \"operating_system\"\n          ) {\n            self.parseAndSetUrlPerVersionTypeSelection(\n              triggerValue.latest_release\n            );\n          } else {\n            self.parseAndSetUrlPerVersionTypeSelection(selectedInputVallue);\n          }\n\n          if (self.nextStep) {\n            document.querySelector(`#${self.nextStep}`).style.display = \"block\";\n            self.previousStage = self.currentStage;\n            self.currentStage = self.currentStage + 1;\n\n            document.querySelector(\n              `#${journeyStepsMap[self.currentStage]}`\n            ).style.display = \"block\";\n\n            self.isToDisableNextButton(self.nextStep);\n            self.isNextStageOSRelatedNextStage(self.nextStep);\n            self.isCloudPlatformRelatedNextStage(self.nextStep);\n\n            self.isDisabledOrEnableInputs(journeyStepsMap[self.previousStage]);\n          }\n        }\n      }\n    });\n\n    self.backButton.addEventListener(\"click\", (e) => {\n      e.preventDefault();\n      if (self.currentStage > 0) {\n        const currentStage = journeyStepsMap[self.currentStage];\n\n        // clean up currentStep\n        const listOfFieldSetsUnderCurrentStep = document.querySelectorAll(\n          `#${currentStage} fieldset`\n        );\n        const listOfFieldSetsUnderCurrentStepChildernInputs =\n          document.querySelectorAll(`#${currentStage} fieldset input`);\n        listOfFieldSetsUnderCurrentStepChildernInputs.forEach(\n          (inputElement) => (inputElement.checked = false)\n        );\n        listOfFieldSetsUnderCurrentStep.forEach(\n          (element) => (element.style.display = \"none\")\n        );\n        document.querySelector(`#${currentStage}`).style.display = \"none\";\n        if (self.displayBannerShown) {\n          self.bannerContainer.style.display = \"none\";\n        }\n        self.nextButton.innerText = self.params.buttonText.nextButtonText;\n\n        self.currentStage = self.previousStage;\n        self.previousStage = self.previousStage - 1;\n        self.nextStep = \"\";\n\n        const selectedInput = document.querySelector(\n          `#${journeyStepsMap[self.currentStage]} input:checked`\n        );\n        if (selectedInput) {\n          const currentStep = selectedInput.getAttribute(\"name\");\n          if (currentStep === \"choose_your_deployment\") {\n            self.isServerSelected = false;\n          }\n        }\n      }\n\n      if (self.nextButton.classList.contains(\"isdisabled\")) {\n        self.nextButton.classList.remove(\"isdisabled\");\n        self.checksum.classList.remove(\"disabled\");\n      }\n\n      self.licenseAgreementAndPrivacyPolicyCheckbox.checked = false;\n      self.isReadyToBeCompleted = false;\n\n      self.isDisabledOrEnableInputs(journeyStepsMap[self.currentStage], false);\n    });\n\n    self.licenseAgreementAndPrivacyPolicyCheckbox.addEventListener(\n      \"change\",\n      () => {\n        const isRequiredFieldChecked = self.isOSVersionFieldChecked();\n        const isNextButtonContainClassIsdisabled =\n          self.nextButton.classList.contains(\"isdisabled\");\n        if (\n          self.licenseAgreementAndPrivacyPolicyCheckbox.checked &&\n          isNextButtonContainClassIsdisabled &&\n          isRequiredFieldChecked &&\n          !self.isLoading\n        ) {\n          self.nextButton.classList.remove(\"isdisabled\");\n          self.checksum.classList.remove(\"disabled\");\n          self.isReadyToBeCompleted = true;\n        } else {\n          !isNextButtonContainClassIsdisabled &&\n            self.nextButton.classList.add(\"isdisabled\");\n            self.checksum.classList.add(\"disabled\");\n          self.isReadyToBeCompleted = false;\n        }\n      }\n    );\n\n    self.listOfInputButtons.forEach((inputElement) =>\n      inputElement.addEventListener(\"click\", () => {\n        tracking.trackEvent(\"clicked\", { ...inputElement.dataset });\n      })\n    );\n\n    self.isAttachedEventListenersToInputButtons(\n      osSpecificTriggerBannerIdMap,\n      true\n    );\n    self.isAttachedEventListenersToInputButtons(\n      cloudServiceProviderTriggerIdMap\n    );\n    self.isAttachedEventListenersToDifferSetsOfInputButtons(\n      self.optionsIncludingKubernete\n    );\n  }\n\n  isNextStageOSRelatedNextStage(nextStep) {\n    if (nextStep === osSpecificTriggerBannerIdMap[nextStep]) {\n      this.bannerContainer.style.display = \"block\";\n      this.displayBannerShown = true;\n      this.nextButton.innerText = this.params.buttonText.downloadText;\n    }\n  }\n\n  isOSVersionFieldChecked() {\n    let isChecked = false;\n    Object.keys(osSpecificTriggerBannerIdMap).forEach((fieldsetId) => {\n      const listOfInputFields = document.querySelectorAll(\n        `#${fieldsetId} input`\n      );\n      for (let nodeItem of listOfInputFields) {\n        if (nodeItem.checked) {\n          isChecked = true;\n          break;\n        }\n      }\n    });\n    return isChecked;\n  }\n\n  isCloudPlatformRelatedNextStage(nextStep) {\n    if (nextStep === cloudServiceProviderTriggerIdMap[nextStep]) {\n      this.nextButton.innerText = this.params.buttonText.getStartedText;\n    }\n  }\n\n  isToDisableNextButton(nextStep) {\n    let isInTriggerList = false;\n    const updatedTriggerList = {\n      ...osSpecificTriggerBannerIdMap,\n      ...cloudServiceProviderTriggerIdMap,\n    };\n    if (nextStep === updatedTriggerList[nextStep]) {\n      isInTriggerList = true;\n    }\n\n    if (isInTriggerList) {\n      !this.nextButton.classList.contains(\"isdisabled\") &&\n        this.nextButton.classList.add(\"isdisabled\");\n    }\n  }\n\n  isAttachedEventListenersToInputButtons(\n    idMap,\n    isBannerContainerInvolved = false\n  ) {\n    var self = this;\n    Object.keys(idMap).forEach((osFieldsetId) => {\n      const listOfInputFields = document.querySelectorAll(\n        `#${osFieldsetId} input`\n      );\n      listOfInputFields.forEach((inputElement) => {\n        inputElement.addEventListener(\"click\", (event) =>\n          self.setNextUrlClickEvent(event, isBannerContainerInvolved)\n        );\n      });\n    });\n  }\n\n  isAttachedEventListenersToDifferSetsOfInputButtons(listOfIds) {\n    var self = this;\n    listOfIds.forEach((inputFieldsSelector) => {\n      const listOfInputFields = document.querySelectorAll(\n        `#${inputFieldsSelector} input`\n      );\n      listOfInputFields.forEach((inputElement) => {\n        inputElement.addEventListener(\"click\", (event) => {\n          if (event.target.dataset.label === \"kubernetes\") {\n            self.nextButton.innerText = self.params.buttonText.getStartedText;\n          } else {\n            self.nextButton.innerText = self.params.buttonText.nextButtonText;\n          }\n          self.setNextUrlClickEvent(event, false);\n        });\n      });\n    });\n  }\n\n  setNextUrlClickEvent(event, isBannerContainerInvolved) {\n    const urlAttr = event.target.getAttribute(\"data-next-url\");\n    if (urlAttr) {\n      this.nextButton.href = urlAttr;\n      this.checksum.href = urlAttr + '.sha256';\n\n      this.isReadyToBeCompleted = isBannerContainerInvolved\n        ? this.licenseAgreementAndPrivacyPolicyCheckbox.checked\n        : true;\n\n      if (\n        this.isReadyToBeCompleted &&\n        this.nextButton.classList.contains(\"isdisabled\") &&\n        !this.isLoading\n      ) {\n        this.nextButton.classList.remove(\"isdisabled\");\n        this.checksum.classList.remove(\"disabled\");\n      }\n    } else {\n      this.nextButton.href = \"\";\n      this.checksum.href = \"\";\n      this.isReadyToBeCompleted = false;\n    }\n  }\n\n  async getJSON(url: string) {\n    const newData = await fetch(url,\n      {\n        method: \"GET\",\n        credentials: \"include\",\n        headers: {\n          \"Content-type\": \"application/json; charset=UTF-8\",\n        }\n      })\n      .then((res) => res.json())\n      .catch();\n    if (newData) {\n      var oldData = this.downloadJson;\n      var joinedData = oldData.concat(newData);\n      this.downloadJson = joinedData;\n\n      this.formatDownloads();\n    }\n  }\n\n  formatDownloads() {\n    this.downloadJsonMap = downloadJsonMap;\n    this.createDownloadJsonMap(this.downloadJson);\n\n    this.latestVersionsByType.Enterprise = this.getTheHighestVersionNumber(\n      softwareVersion.longTermSupport\n    );\n    this.latestVersionsByType.Standard = this.getTheHighestVersionNumber(\n      softwareVersion.latestRelease\n    );\n\n    // GWP-1004 : Server end of support for bitbucket, jira-software, and crowd\n\n    if (this.params.product === \"stash\") {\n      const lastServerVersion = \"8.15.0\";\n      const allLatest = this.getOrderedVersionNumbers(\n        softwareVersion.latestRelease\n      );\n      const lastVersion = allLatest.filter((i) =>\n        this.isGreater(lastServerVersion, i)\n      )[0];\n      this.latestVersionsByType.Last = {\n        type: softwareVersion.latestRelease,\n        version: lastVersion,\n      };\n    } else if (this.params.product === \"crowd\") {\n      const lastServerVersion = \"5.3.0\";\n      const allLatest = this.getOrderedVersionNumbers(\n        softwareVersion.latestRelease\n      );\n      const lastVersion = allLatest.filter((i) =>\n        this.isGreater(lastServerVersion, i)\n      )[0];\n      this.latestVersionsByType.Last = {\n        type: softwareVersion.latestRelease,\n        version: lastVersion,\n      };\n    } else if (this.params.product === \"jira-software\") {\n      const lastServerVersion = \"9.13.0\";\n      const allLatest = this.getOrderedVersionNumbers(\n        softwareVersion.longTermSupport\n      );\n      const lastVersion = allLatest.filter((i) =>\n        this.isGreater(lastServerVersion, i)\n      )[0];\n      this.latestVersionsByType.Last = {\n        type: softwareVersion.longTermSupport,\n        version: lastVersion,\n      };\n    } else if (this.params.product === \"jira-servicedesk\") {\n      const lastServerVersion = \"5.13.0\";\n      const allLatest = this.getOrderedVersionNumbers(\n        softwareVersion.longTermSupport\n      );\n      const lastVersion = allLatest.filter((i) =>\n        this.isGreater(lastServerVersion, i)\n      )[0];\n      this.latestVersionsByType.Last = {\n        type: softwareVersion.longTermSupport,\n        version: lastVersion,\n      };\n    }\n\n    // if we are on the confluence page, ensure the latest version(s) are pre-DC-only\n    if (this.params.product === \"confluence\") {\n      const confluenceDcOnlyStartingVersion = \"8.6.0\";\n\n      const allLts = this.getOrderedVersionNumbers(\n        softwareVersion.longTermSupport\n      );\n      const allLatest = this.getOrderedVersionNumbers(\n        softwareVersion.latestRelease\n      );\n\n      this.latestVersionsByType.Enterprise = allLts.filter((i) =>\n        this.isGreater(confluenceDcOnlyStartingVersion, i)\n      )[0];\n      this.latestVersionsByType.Standard = allLatest.filter((i) =>\n        this.isGreater(confluenceDcOnlyStartingVersion, i)\n      )[0];\n    }\n\n    // default latest type is standard\n    const { Standard, Enterprise } = this.latestVersionsByType;\n    this.latestVersionsByType.Latest.type = softwareVersion.latestRelease;\n    this.latestVersionsByType.Latest.version = Standard;\n\n    if (Standard && Enterprise) {\n      const isStandardGreaterThanEnterprise = this.isGreater(\n        Standard,\n        Enterprise\n      );\n      if (!isStandardGreaterThanEnterprise) {\n        this.latestVersionsByType.Latest.type = softwareVersion.longTermSupport;\n        this.latestVersionsByType.Latest.version = Enterprise;\n      }\n    } else if (Enterprise) {\n      /**\n       * If we get here then that means Standard is null, undefined, or empty string\n       */\n      this.latestVersionsByType.Latest.type = softwareVersion.longTermSupport;\n      this.latestVersionsByType.Latest.version = Enterprise;\n    }\n\n    this.isLoading = false;\n  }\n\n  setDownloadUrlLinks() {\n    let highestVersionNumberPerSelection =\n      this.latestVersionsByType[this.softwareVersionSelected];\n    let listOFDownloadsMap =\n      this.downloadJsonMap[this.softwareVersionSelected][\n        highestVersionNumberPerSelection\n      ];\n\n    if (\n      this.isServerSelected &&\n      this.softwareVersionSelected === this.latestVersionsByType.Last.type\n    ) {\n      listOFDownloadsMap =\n        this.downloadJsonMap[this.latestVersionsByType.Last.type][\n          this.latestVersionsByType.Last.version\n        ];\n    }\n    // if we want the latest release, always return latest release regardless if it is Standard or Enterprise\n    else if (this.softwareVersionSelected === softwareVersion.latestRelease) {\n      listOFDownloadsMap =\n        this.downloadJsonMap[this.latestVersionsByType.Latest.type][\n          this.latestVersionsByType.Latest.version\n        ];\n    }\n\n    // pre-clear the map\n    for (let key in this.downloadUrlLinks) {\n      this.downloadUrlLinks[key] = \"\";\n    }\n\n    const versionJsonMap = Object.entries(listOFDownloadsMap).map(\n      (item) => item[1]\n    );\n    versionJsonMap.forEach((mappingIndex) => {\n      const downloadLinkObject = this.downloadJson[mappingIndex];\n      if (downloadLinkObject.description.includes(\"Windows\")) {\n        this.downloadUrlLinks.windows_64_bit = downloadLinkObject.zipURL;\n      } else if (downloadLinkObject.description.includes(\"Linux\")) {\n        this.downloadUrlLinks.linux_64_bit = downloadLinkObject.zipURL;\n      } else if (downloadLinkObject.description.includes(\"TAR.GZ\")) {\n        this.downloadUrlLinks.tar_gz_archive = downloadLinkObject.zipURL;\n        this.downloadUrlLinks.osx = downloadLinkObject.zipURL;\n      } else if (downloadLinkObject.description.includes(\"ZIP\")) {\n        this.downloadUrlLinks.zip_archive = downloadLinkObject.zipURL;\n      }\n    });\n  }\n\n  createDownloadJsonMap(downloadJson) {\n    return downloadJson.forEach((item, index) => {\n      // doing this just in case the edition comes back as 'None'\n      item.platform = item.downloadLabels.map((label: any) => label.labelName);\n      item.description = item.name;\n      item.downloadLink = item.zipURL;\n      const jsonMapWithEdition = this.downloadJsonMap[item.edition]\n        ? this.downloadJsonMap[item.edition]\n        : this.downloadJsonMap[softwareVersion.latestRelease];\n\n      if (jsonMapWithEdition[item.version.name]) {\n        if (!jsonMapWithEdition[item.version.name][item.name]) {\n          jsonMapWithEdition[item.version.name][item.name] = index;\n        }\n      } else {\n        jsonMapWithEdition[item.version.name] = {};\n        jsonMapWithEdition[item.version.name][item.name] = index;\n      }\n    });\n  }\n\n  getOrderedVersionNumbers(softwareVersionSelected) {\n    const downloadJsonMapKeys = Object.keys(\n      this.downloadJsonMap[softwareVersionSelected]\n    );\n    return downloadJsonMapKeys\n      .map((a) =>\n        a\n          .split(\".\")\n          .map((n) => +n + 100000)\n          .join(\".\")\n      )\n      .sort()\n      .reverse()\n      .map((a) =>\n        a\n          .split(\".\")\n          .map((n) => +n - 100000)\n          .join(\".\")\n      );\n  }\n\n  getTheHighestVersionNumber(softwareVersionSelected) {\n    return this.getOrderedVersionNumbers(softwareVersionSelected)[0];\n  }\n\n  setInputDataNextUrl() {\n    Object.keys(this.downloadUrlLinks).forEach((key) => {\n      const inputElement = document.querySelector(\n        `#${this.nextStep} input[value=\"${key}\"]`\n      );\n      if (inputElement && this.downloadUrlLinks[key] != \"\") {\n        inputElement.parentNode.style.display = \"block\";\n        inputElement.dataset.nextUrl = this.downloadUrlLinks[key];\n      } else if (inputElement) {\n        inputElement.parentNode.style.display = \"none\";\n      }\n    });\n  }\n\n  setVersionNumberOnText(nextStep) {\n    if (this.listOfVersionChoicesId.includes(nextStep)) {\n      const currentLTSVersionValue = document.querySelector(\n        `#${nextStep} span#lts_text`\n      );\n      const currentLatestVersionValue = document.querySelector(\n        `#${nextStep} span#latest_text`\n      );\n      const currentLastVersionValue = document.querySelector(\n        `#${nextStep} span#last_text`\n      );\n      if (currentLTSVersionValue) {\n        currentLTSVersionValue.innerText =\n          this.isServerSelected &&\n          this.latestVersionsByType.Last.type ===\n            softwareVersion.longTermSupport\n            ? currentLTSVersionValue.innerText.replace(\n                /.*/,\n                `(${this.latestVersionsByType.Last.version})`\n              )\n            : currentLTSVersionValue.innerText.replace(\n                /.*/,\n                `(${this.latestVersionsByType.Enterprise})`\n              );\n      }\n      if (currentLatestVersionValue) {\n        currentLatestVersionValue.innerText =\n          this.isServerSelected &&\n          this.latestVersionsByType.Last.type === softwareVersion.latestRelease\n            ? currentLatestVersionValue.innerText.replace(\n                /.*/,\n                `(${this.latestVersionsByType.Last.version})`\n              )\n            : currentLatestVersionValue.innerText.replace(\n                /.*/,\n                `(${this.latestVersionsByType.Latest.version})`\n              );\n      }\n      if (currentLastVersionValue) {\n        currentLastVersionValue.innerText =\n          currentLastVersionValue.innerText.replace(\n            /.*/,\n            `(${this.latestVersionsByType.Last.version})`\n          );\n      }\n    }\n  }\n\n  parseAndSetUrlPerVersionTypeSelection(selectedInputVallue) {\n    if (selectedInputVallue === triggerValue[selectedInputVallue]) {\n      this.softwareVersionSelected =\n        selectedInputVallue === triggerValue.long_term_support\n          ? softwareVersion.longTermSupport\n          : softwareVersion.latestRelease;\n      this.setDownloadUrlLinks();\n      this.setInputDataNextUrl();\n    }\n  }\n\n  isDisabledOrEnableInputs(element, isDisabled = true) {\n    document\n      .querySelectorAll(`#${element} input`)\n      .forEach((inputElement) => (inputElement.disabled = isDisabled));\n  }\n\n  isGreater(primaryVersion, secondaryVersion) {\n    return (\n      primaryVersion.localeCompare(secondaryVersion, undefined, {\n        numeric: true,\n      }) === 1\n    );\n  }\n}\n\nexport default DownloadJourneyContainer;\n"],"names":["_regeneratorRuntime","exports","Op","Object","prototype","hasOwn","hasOwnProperty","defineProperty","obj","key","desc","value","$Symbol","Symbol","iteratorSymbol","iterator","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","define","enumerable","configurable","writable","err","wrap","innerFn","outerFn","self","tryLocsList","protoGenerator","Generator","generator","create","context","Context","makeInvokeMethod","tryCatch","fn","arg","type","call","ContinueSentinel","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","getPrototypeOf","NativeIteratorPrototype","values","Gp","defineIteratorMethods","forEach","method","_invoke","AsyncIterator","PromiseImpl","invoke","resolve","reject","record","result","_typeof","__await","then","unwrapped","error","previousPromise","callInvokeWithMethodAndArg","state","Error","undefined","done","delegate","delegateResult","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","methodName","TypeError","info","resultName","next","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","iterable","iteratorMethod","isNaN","length","i","doneResult","displayName","isGeneratorFunction","genFun","ctor","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","iter","keys","val","object","reverse","pop","skipTempReset","prev","charAt","slice","stop","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","asyncGeneratorStep","gen","_next","_throw","_arrayLikeToArray","arr","len","arr2","Array","ownKeys","enumerableOnly","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","apply","_objectSpread","target","arguments","source","_defineProperty","getOwnPropertyDescriptors","defineProperties","_toPropertyKey","_defineProperties","props","descriptor","input","hint","prim","toPrimitive","res","String","_toPrimitive","journeyStepsMap","osSpecificTriggerBannerIdMap","operating_system_step_4","operating_system_step_5","operating_system","cloudServiceProviderTriggerIdMap","cloud_platform","cloud_platform_step_4","softwareVersion","triggerValue","long_term_support","latest_release","downloadJsonMap","Standard","Enterprise","latestVersionsByType","Latest","version","Last","urlLinkMap","osx","linux_64_bit","tar_gz_archive","windows_64_bit","zip_archive","DownloadJourneyContainer","domRoot","params","instance","Constructor","_classCallCheck","this","numOfSteps","currentStage","previousStage","backButton","document","querySelector","nextButton","checksum","licenseAgreementAndPrivacyPolicyCheckbox","bannerContainer","listOfInputButtons","querySelectorAll","listOfVersionChoicesId","displayBannerShown","isReadyToBeCompleted","isLoading","downloadJson","downloadItems","downloadUrlLinks","softwareVersionSelected","nextStep","optionsIncludingKubernete","isServerSelected","init","protoProps","_getJSON","getJSON","productArchivedJSON","productCurrentJSON","addEventListener","e","preventDefault","window","location","href","classList","contains","selectedInput","concat","getAttribute","selectedInputVallue","setVersionNumberOnText","product","parseAndSetUrlPerVersionTypeSelection","style","display","isToDisableNextButton","isNextStageOSRelatedNextStage","isCloudPlatformRelatedNextStage","isDisabledOrEnableInputs","listOfFieldSetsUnderCurrentStep","inputElement","checked","element","innerText","buttonText","nextButtonText","remove","isRequiredFieldChecked","isOSVersionFieldChecked","isNextButtonContainClassIsdisabled","add","tracking","dataset","isAttachedEventListenersToInputButtons","isAttachedEventListenersToDifferSetsOfInputButtons","downloadText","isChecked","fieldsetId","_step","_iterator","o","allowArrayLike","it","isArray","minLen","n","toString","from","test","_unsupportedIterableToArray","F","s","_e","f","normalCompletion","didErr","step","_e2","_createForOfIteratorHelper","getStartedText","isInTriggerList","idMap","isBannerContainerInvolved","osFieldsetId","event","setNextUrlClickEvent","listOfIds","inputFieldsSelector","label","urlAttr","_callee","url","newData","oldData","joinedData","_context","fetch","credentials","headers","json","formatDownloads","args","_x","_this","createDownloadJsonMap","getTheHighestVersionNumber","lastVersion","getOrderedVersionNumbers","isGreater","confluenceDcOnlyStartingVersion","allLts","allLatest","_this$latestVersionsB","_this2","highestVersionNumberPerSelection","listOFDownloadsMap","entries","map","item","mappingIndex","downloadLinkObject","description","includes","zipURL","_this3","index","platform","downloadLabels","labelName","downloadLink","jsonMapWithEdition","edition","a","split","join","sort","_this4","parentNode","nextUrl","currentLTSVersionValue","currentLatestVersionValue","currentLastVersionValue","replace","setDownloadUrlLinks","setInputDataNextUrl","isDisabled","disabled","primaryVersion","secondaryVersion","localeCompare","numeric"],"sourceRoot":""}