# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//ui/webui/resources/tools/build_webui.gni")

build_webui("build") {
  grd_prefix = "password_change"
  static_files = [
    "confirm_password_change_app.html",
    "password_change_app.html",
    "urgent_password_expiry_notification.html",
  ]
  web_component_files = [
    "confirm_password_change.ts",
    "password_change.ts",
    "urgent_password_expiry_notification_app.ts",
  ]
  ts_files = [
    "confirm_password_change_app.ts",
    "password_change_app.ts",
  ]

  ts_path_mappings = [ "//password-change/gaia_auth_host/password_change_authenticator.js|" + rebase_path(
                           "//chrome/browser/resources/gaia_auth_host/password_change_authenticator.d.ts",
                           target_gen_dir) ]

  ts_deps = [
    "//ash/webui/common/resources:build_ts",
    "//third_party/polymer/v3_0:library",
    "//ui/webui/resources/js:build_ts",
  ]
  ts_definitions = [
    "//chrome/browser/resources/gaia_auth_host/password_change_authenticator.d.ts",
    "//tools/typescript/definitions/chrome_send.d.ts",
  ]
  webui_context_type = "trusted"
}
