@waaelg/dga-design-system 0.4.9 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Wael Alghamdi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -26,20 +26,6 @@ The published package includes compiled assets from the `dist` folder:
26
26
 
27
27
  ---
28
28
 
29
- ## Skills for AI coding tools
30
-
31
- This repo has three parts: the **package** (`src/`, compiled to `dist/`), the **docs site** (`docs/`, VitePress), and **`skills/`** — Claude Skills that teach an AI coding assistant the actual class names, component patterns, and JS API documented above, grounded in `docs/` rather than guessed.
32
-
33
- | Skill | Covers |
34
- |-------|--------|
35
- | [`dga-vue-component`](skills/dga-vue-component/SKILL.md) | Generating Vue 3 SFCs styled with DGA |
36
- | [`dga-web-components`](skills/dga-web-components/SKILL.md) | `<dga-*>` elements and the JS class API outside Vue (plain HTML, Razor, PHP) |
37
- | [`dga-foundations`](skills/dga-foundations/SKILL.md) | Color/spacing/typography/radius/grid utility reference |
38
-
39
- If you clone this repo with **Claude Code**, these are picked up automatically via the `.claude/skills` symlink — no setup needed. Any other AI tool can be pointed directly at the `skills/<name>/SKILL.md` files.
40
-
41
- ---
42
-
43
29
  ## Quick start
44
30
 
45
31
  ### 1. Import the stylesheet
@@ -487,6 +473,20 @@ Documentation:
487
473
 
488
474
  ---
489
475
 
476
+ ## Skills for AI coding tools
477
+
478
+ This repo has three parts: the **package** (`src/`, compiled to `dist/`), the **docs site** (`docs/`, VitePress), and **`skills/`** — Claude Skills that teach an AI coding assistant the actual class names, component patterns, and JS API documented above, grounded in `docs/` rather than guessed.
479
+
480
+ | Skill | Covers |
481
+ |-------|--------|
482
+ | [`dga-vue-component`](skills/dga-vue-component/SKILL.md) | Generating Vue 3 SFCs styled with DGA |
483
+ | [`dga-web-components`](skills/dga-web-components/SKILL.md) | `<dga-*>` elements and the JS class API outside Vue (plain HTML, Razor, PHP) |
484
+ | [`dga-foundations`](skills/dga-foundations/SKILL.md) | Color/spacing/typography/radius/grid utility reference |
485
+
486
+ If you clone this repo with **Claude Code**, these are picked up automatically via the `.claude/skills` symlink — no setup needed. Any other AI tool can be pointed directly at the `skills/<name>/SKILL.md` files.
487
+
488
+ ---
489
+
490
490
  ## License
491
491
 
492
492
  MIT — Wael Alghamdi
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ class c {
32
32
  this.root.removeEventListener("click", this.handleClick), this.root.removeEventListener("keydown", this.handleKeydown);
33
33
  }
34
34
  }
35
- class x {
35
+ class $ {
36
36
  constructor(t) {
37
37
  this.accordion = t, this.controller = new c(t);
38
38
  }
@@ -52,7 +52,7 @@ class x {
52
52
  this.controller.destroy();
53
53
  }
54
54
  }
55
- class D {
55
+ class B {
56
56
  constructor(t = document) {
57
57
  this.root = t, this.handleCloseClick = this.handleCloseClick.bind(this), this.init();
58
58
  }
@@ -63,41 +63,41 @@ class D {
63
63
  const e = t.target.closest("[data-alert-close]");
64
64
  if (!e)
65
65
  return;
66
- const i = e.closest(".dga-alert");
67
- i && (i.style.display = "none");
66
+ const s = e.closest(".dga-alert");
67
+ s && (s.style.display = "none");
68
68
  }
69
69
  destroy() {
70
70
  this.root.removeEventListener("click", this.handleCloseClick);
71
71
  }
72
72
  }
73
- function h(s) {
74
- return s.startsWith("#") || s.startsWith("var(") ? s : `var(--${s})`;
73
+ function h(i) {
74
+ return i.startsWith("#") || i.startsWith("var(") ? i : `var(--${i})`;
75
75
  }
76
- function u(s = []) {
77
- return `conic-gradient(${s.map(
76
+ function u(i = []) {
77
+ return `conic-gradient(${i.map(
78
78
  (e) => `${h(e.color)} ${e.from} ${e.to}`
79
79
  ).join(", ")})`;
80
80
  }
81
- function g(s = []) {
82
- return `<div class="dga-pie-chart__labels">${s.map(
81
+ function g(i = []) {
82
+ return `<div class="dga-pie-chart__labels">${i.map(
83
83
  (e) => `<span class="dga-pie-chart__label"><span class="dga-pie-chart__circle" style="background-color: ${h(
84
84
  e.color
85
85
  )}"></span>${e.label}</span>`
86
86
  ).join("")}</div>`;
87
87
  }
88
- function y(s) {
89
- if (!s) return [];
88
+ function A(i) {
89
+ if (!i) return [];
90
90
  try {
91
- const t = JSON.parse(s);
91
+ const t = JSON.parse(i);
92
92
  return Array.isArray(t) ? t : [];
93
93
  } catch {
94
94
  return console.warn("dga-pie-chart: invalid data attribute JSON"), [];
95
95
  }
96
96
  }
97
- function p(s, t = [], { hole: e = !1 } = {}) {
98
- s && (s.classList.add("dga-pie-chart"), s.setAttribute("data-hole", e ? "true" : "false"), s.style.background = u(t), s.innerHTML = g(t));
97
+ function p(i, t = [], { hole: e = !1 } = {}) {
98
+ i && (i.classList.add("dga-pie-chart"), i.setAttribute("data-hole", e ? "true" : "false"), i.style.background = u(t), i.innerHTML = g(t));
99
99
  }
100
- class T {
100
+ class H {
101
101
  constructor(t, e = []) {
102
102
  this.chart = t, this.data = e, this.init();
103
103
  }
@@ -112,14 +112,14 @@ class T {
112
112
  return g(this.data);
113
113
  }
114
114
  }
115
- async function b(s) {
115
+ async function b(i) {
116
116
  try {
117
117
  if (navigator.clipboard?.writeText)
118
- return await navigator.clipboard.writeText(s), !0;
118
+ return await navigator.clipboard.writeText(i), !0;
119
119
  } catch {
120
120
  }
121
121
  const t = document.createElement("textarea");
122
- t.value = s, t.setAttribute("readonly", ""), t.style.position = "absolute", t.style.left = "-9999px", document.body.appendChild(t), t.select();
122
+ t.value = i, t.setAttribute("readonly", ""), t.style.position = "absolute", t.style.left = "-9999px", document.body.appendChild(t), t.select();
123
123
  const e = document.execCommand("copy");
124
124
  return document.body.removeChild(t), e;
125
125
  }
@@ -127,13 +127,13 @@ const d = `<svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
127
127
  <rect x="9" y="9" width="11" height="11" rx="2" stroke-width="1.75"></rect>
128
128
  <path d="M6 15H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v1" stroke-width="1.75" stroke-linecap="round"></path>
129
129
  </svg>`;
130
- async function m(s, t = 1200) {
131
- const e = s.getAttribute("aria-label") || "Copy code";
132
- s.setAttribute("aria-label", "Copied"), s.setAttribute("data-copied", "true"), window.setTimeout(() => {
133
- s.setAttribute("aria-label", e), s.setAttribute("data-copied", "false");
130
+ async function m(i, t = 1200) {
131
+ const e = i.getAttribute("aria-label") || "Copy code";
132
+ i.setAttribute("aria-label", "Copied"), i.setAttribute("data-copied", "true"), window.setTimeout(() => {
133
+ i.setAttribute("aria-label", e), i.setAttribute("data-copied", "false");
134
134
  }, t);
135
135
  }
136
- class S {
136
+ class M {
137
137
  constructor(t = document) {
138
138
  this.root = t, this.handleCopyClick = this.handleCopyClick.bind(this), this.init();
139
139
  }
@@ -145,9 +145,9 @@ class S {
145
145
  ".dga-code-snippet-inline__copy, .dga-code-snippet-multiline__copy"
146
146
  );
147
147
  if (!e) return;
148
- const i = e.closest(".dga-code-snippet-inline"), n = e.closest(".dga-code-snippet-multiline");
148
+ const s = e.closest(".dga-code-snippet-inline"), n = e.closest(".dga-code-snippet-multiline");
149
149
  let o = "";
150
- i ? o = i.querySelector(
150
+ s ? o = s.querySelector(
151
151
  ".dga-code-snippet-inline__content"
152
152
  )?.textContent?.trim() || "" : n && (o = n.querySelector(
153
153
  ".dga-code-snippet-multiline__code code"
@@ -157,7 +157,7 @@ class S {
157
157
  this.root.removeEventListener("click", this.handleCopyClick);
158
158
  }
159
159
  }
160
- class B {
160
+ class O {
161
161
  constructor(t = {}) {
162
162
  if (this.navbar = t.navbar || document.querySelector(".dga-navbar"), this.verifyBar = t.verifyBar || null, !this.navbar) {
163
163
  console.warn("DGA Navbar elements not found");
@@ -184,8 +184,8 @@ class B {
184
184
  }
185
185
  toggleDropdown(t) {
186
186
  t.preventDefault(), t.stopPropagation(), this.verifyBar && this.verifyBar.isOpen && this.verifyBar.closePanel();
187
- const e = t.currentTarget, i = e.parentElement, n = i.classList.contains("active");
188
- this.closeAllDropdowns(), n || (i.classList.add("active"), e.classList.add("dga-menu-item-selected"), e.setAttribute("aria-expanded", "true"), i.querySelector(".dga-dropdown").style.top = `${this.navbarHeight + this.navbarTop}px`);
187
+ const e = t.currentTarget, s = e.parentElement, n = s.classList.contains("active");
188
+ this.closeAllDropdowns(), n || (s.classList.add("active"), e.classList.add("dga-menu-item-selected"), e.setAttribute("aria-expanded", "true"), s.querySelector(".dga-dropdown").style.top = `${this.navbarHeight + this.navbarTop}px`);
189
189
  }
190
190
  toggleMobileMenu(t) {
191
191
  t.stopPropagation(), this.verifyBar && this.verifyBar.isOpen && this.verifyBar.closePanel(), this.menu.classList.toggle("dga-menu-open"), this.menu.classList.contains("dga-menu-open") ? (document.body.classList.add("no-scroll"), this.menu.style.height = `calc(100vh - ${this.navbarHeight}px - ${this.navbarTop}px)`) : (document.body.classList.remove("no-scroll"), this.menu.style.height = "0px"), this.menu.style.top = `${this.navbarTop + this.navbarHeight}px`;
@@ -202,9 +202,9 @@ class B {
202
202
  closeAllDropdowns(t) {
203
203
  if (t && t.target.closest(".dga-dropdown-content"))
204
204
  return;
205
- this.navbar.querySelectorAll(".dga-menu > li.active").forEach((i) => {
206
- i.classList.remove("active");
207
- const n = i.querySelector(".dga-menu-item");
205
+ this.navbar.querySelectorAll(".dga-menu > li.active").forEach((s) => {
206
+ s.classList.remove("active");
207
+ const n = s.querySelector(".dga-menu-item");
208
208
  n?.classList.remove("dga-menu-item-selected"), n?.setAttribute("aria-expanded", "false");
209
209
  });
210
210
  }
@@ -232,7 +232,7 @@ class B {
232
232
  return this.navbar.querySelectorAll(".dga-menu > li.active").length > 0;
233
233
  }
234
234
  }
235
- class M {
235
+ class G {
236
236
  constructor(t = {}) {
237
237
  if (this.isOpen = !1, this.verifyBar = document.getElementById("dga-verify-bar"), this.menu = t.menu || null, this.btn = document.getElementById("dga-verifyBtn"), this.content = document.getElementById("dga-verify-bar_content"), this.boundToggle = () => {
238
238
  this.isOpen ? this.closePanel() : this.openPanel();
@@ -255,11 +255,11 @@ class M {
255
255
  this.btn?.removeEventListener("click", this.boundToggle);
256
256
  }
257
257
  }
258
- function a(s = "") {
259
- return String(s).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
258
+ function a(i = "") {
259
+ return String(i).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
260
260
  }
261
- const f = "info-color";
262
- class _ extends HTMLElement {
261
+ const C = "info-color";
262
+ class k extends HTMLElement {
263
263
  static get observedAttributes() {
264
264
  return ["variant", "title", "dismissible"];
265
265
  }
@@ -287,9 +287,9 @@ class _ extends HTMLElement {
287
287
  this.isConnected && this._render();
288
288
  }
289
289
  _render() {
290
- const t = this.getAttribute("variant") || f, e = this.getAttribute("title") || "", i = this.hasAttribute("dismissible"), n = this._bodyContent || "";
290
+ const t = this.getAttribute("variant") || C, e = this.getAttribute("title") || "", s = this.hasAttribute("dismissible"), n = this._bodyContent || "";
291
291
  this.classList.add("dga-alert"), this.setAttribute("data-variant", t);
292
- const o = e ? `<h4 class="dga-alert-title">${a(e)}</h4>` : "", r = i ? '<button class="dga-alert-close" type="button" data-alert-close aria-label="Dismiss alert">×</button>' : "";
292
+ const o = e ? `<h4 class="dga-alert-title">${a(e)}</h4>` : "", r = s ? '<button class="dga-alert-close" type="button" data-alert-close aria-label="Dismiss alert">×</button>' : "";
293
293
  this.innerHTML = `
294
294
  <span class="dga-alert-icon" aria-hidden="true"></span>
295
295
  <div class="dga-alert-content">
@@ -305,8 +305,8 @@ class _ extends HTMLElement {
305
305
  );
306
306
  }
307
307
  }
308
- customElements.define("dga-alert", _);
309
- class C extends HTMLElement {
308
+ customElements.define("dga-alert", k);
309
+ class w extends HTMLElement {
310
310
  static get observedAttributes() {
311
311
  return ["title", "size", "open"];
312
312
  }
@@ -317,10 +317,10 @@ class C extends HTMLElement {
317
317
  this.isConnected && this._render();
318
318
  }
319
319
  _render() {
320
- const t = this.getAttribute("title") || "", e = this.getAttribute("size") || "md", i = this.hasAttribute("open"), n = this._bodyContent || "";
320
+ const t = this.getAttribute("title") || "", e = this.getAttribute("size") || "md", s = this.hasAttribute("open"), n = this._bodyContent || "";
321
321
  this.innerHTML = `
322
- <div class="dga-acc-item${i ? " dga-acc-item--active" : ""}">
323
- <button class="dga-acc-header" data-size="${a(e)}" aria-expanded="${i ? "true" : "false"}">
322
+ <div class="dga-acc-item${s ? " dga-acc-item--active" : ""}">
323
+ <button class="dga-acc-header" data-size="${a(e)}" aria-expanded="${s ? "true" : "false"}">
324
324
  <span>${a(t)}</span>
325
325
  </button>
326
326
  <div class="dga-acc-content">
@@ -330,7 +330,7 @@ class C extends HTMLElement {
330
330
  `;
331
331
  }
332
332
  }
333
- class A extends HTMLElement {
333
+ class L extends HTMLElement {
334
334
  constructor() {
335
335
  super(), this._controller = null;
336
336
  }
@@ -341,9 +341,9 @@ class A extends HTMLElement {
341
341
  this._controller?.destroy(), this._controller = null;
342
342
  }
343
343
  }
344
- customElements.define("dga-accordion-item", C);
345
- customElements.define("dga-accordion", A);
346
- class k extends HTMLElement {
344
+ customElements.define("dga-accordion-item", w);
345
+ customElements.define("dga-accordion", L);
346
+ class E extends HTMLElement {
347
347
  static get observedAttributes() {
348
348
  return ["code", "multiline"];
349
349
  }
@@ -386,8 +386,8 @@ class k extends HTMLElement {
386
386
  ));
387
387
  }
388
388
  }
389
- customElements.define("dga-code-snippet", k);
390
- class L extends HTMLElement {
389
+ customElements.define("dga-code-snippet", E);
390
+ class x extends HTMLElement {
391
391
  static get observedAttributes() {
392
392
  return ["data", "hole"];
393
393
  }
@@ -398,18 +398,43 @@ class L extends HTMLElement {
398
398
  this.isConnected && this._render();
399
399
  }
400
400
  _render() {
401
- const t = y(this.getAttribute("data")), e = this.hasAttribute("hole") && this.getAttribute("hole") !== "false";
401
+ const t = A(this.getAttribute("data")), e = this.hasAttribute("hole") && this.getAttribute("hole") !== "false";
402
402
  p(this, t, { hole: e });
403
403
  }
404
404
  }
405
- customElements.define("dga-pie-chart", L);
406
- const E = {
405
+ customElements.define("dga-pie-chart", x);
406
+ const S = {
407
407
  "flag-src": "saudiFlag.svg",
408
408
  "link-icon-src": "link-icon.svg",
409
409
  "lock-icon-src": "square-lock-password.svg",
410
410
  "logo-src": "DGA-logo-icon.svg"
411
+ }, D = {
412
+ ar: {
413
+ flagAlt: "علم المملكة العربية السعودية",
414
+ banner: "موقع حكومي رسمي تابع لحكومة المملكة العربية السعودية",
415
+ cta: "كيف تتحقق",
416
+ domainHeading: "روابط المواقع الالكترونية الرسمية السعودية تنتهي بـ",
417
+ domainBody: "جميع روابط المواقع الرسمية التابعة للجهات الحكومية في المملكة العربية السعودية تنتهي بـ",
418
+ httpsHeading: "المواقع الالكترونية الحكومية تستخدم بروتوكول",
419
+ httpsHeadingSuffix: "للتشفير و الأمان.",
420
+ httpsBody: "المواقع الالكترونية الآمنة في المملكة العربية السعودية تستخدم بروتوكول HTTPS للتشفير.",
421
+ logoAlt: "شعار هيئة الحكومة الرقمية",
422
+ registeredWith: "مسجل لدى هيئة الحكومة الرقمية برقم :"
423
+ },
424
+ en: {
425
+ flagAlt: "Flag of the Kingdom of Saudi Arabia",
426
+ banner: "This is an official government website of the Kingdom of Saudi Arabia",
427
+ cta: "How to verify",
428
+ domainHeading: "Official Saudi government website links end with",
429
+ domainBody: "All official website links belonging to government entities in the Kingdom of Saudi Arabia end with",
430
+ httpsHeading: "Government websites use the",
431
+ httpsHeadingSuffix: "protocol for encryption and security.",
432
+ httpsBody: "Secure websites in the Kingdom of Saudi Arabia use the HTTPS protocol for encryption.",
433
+ logoAlt: "Digital Government Authority logo",
434
+ registeredWith: "Registered with the Digital Government Authority under number:"
435
+ }
411
436
  };
412
- class w extends HTMLElement {
437
+ class T extends HTMLElement {
413
438
  static get observedAttributes() {
414
439
  return [
415
440
  "registration-number",
@@ -419,7 +444,8 @@ class w extends HTMLElement {
419
444
  "flag-src",
420
445
  "link-icon-src",
421
446
  "lock-icon-src",
422
- "logo-src"
447
+ "logo-src",
448
+ "lang"
423
449
  ];
424
450
  }
425
451
  constructor() {
@@ -435,20 +461,20 @@ class w extends HTMLElement {
435
461
  this.isConnected && this._render();
436
462
  }
437
463
  _render() {
438
- const t = a(
464
+ const t = this.getAttribute("lang") === "en" ? "en" : "ar", e = t === "en" ? "ltr" : "rtl", s = D[t], n = a(
439
465
  this.getAttribute("registration-number") || "20250105758"
440
- ), e = this.getAttribute("registration-link") || "https://raqmi.dga.gov.sa/platforms/platforms/9ebc5e60-9081-4653-bfb9-08dd2a2f8633/platform-license", i = a(this._normalizeLink(e)), n = a(this.getAttribute("domain") || ".edu.sa"), o = a(this._imageSrc("flag-src")), r = a(this._imageSrc("link-icon-src")), l = a(this._imageSrc("lock-icon-src")), v = a(this._imageSrc("logo-src"));
466
+ ), o = this.getAttribute("registration-link") || "https://raqmi.dga.gov.sa/platforms/platforms/9ebc5e60-9081-4653-bfb9-08dd2a2f8633/platform-license", r = a(this._normalizeLink(o)), l = a(this.getAttribute("domain") || ".edu.sa"), v = a(this._imageSrc("flag-src")), y = a(this._imageSrc("link-icon-src")), f = a(this._imageSrc("lock-icon-src")), _ = a(this._imageSrc("logo-src"));
441
467
  this.innerHTML = `
442
- <div id="dga-verify-bar" class="dga-bg-gray-100 closed">
468
+ <div id="dga-verify-bar" dir="${e}" class="dga-bg-gray-100 closed">
443
469
  <div class="dga-container dga-py-2">
444
470
  <div id="dga-verify-bar_bar" class="dga-row">
445
471
  <div class="dga-col">
446
472
  <div class="dga-d-flex dga-align-items-center dga-gap-2">
447
- <span><img src="${o}" alt="علم المملكة العربية السعودية" /></span>
448
- <span class="dga-text-sm">موقع حكومي رسمي تابع لحكومة المملكة العربية السعودية</span>
473
+ <span><img src="${v}" alt="${s.flagAlt}" /></span>
474
+ <span class="dga-text-sm">${s.banner}</span>
449
475
  <span>
450
476
  <button id="dga-verifyBtn" class="dga-btn dga-btn-subtle dga-text-primary-500" data-verify-toggle aria-expanded="false">
451
- كيف تتحقق
477
+ ${s.cta}
452
478
  </button>
453
479
  </span>
454
480
  </div>
@@ -458,15 +484,14 @@ class w extends HTMLElement {
458
484
  <div id="dga-verify-bar_content" class="dga-row dga-pt-10 dga-pb-8" data-verify-content style="display: ${this.isOpen ? "flex" : "none"};">
459
485
  <div class="dga-col-md-6 dga-pb-8">
460
486
  <div class="dga-d-flex dga-gap-4">
461
- <div><img src="${r}" alt="" /></div>
487
+ <div><img src="${y}" alt="" /></div>
462
488
  <div class="dga-w-full dga-d-flex dga-flex-col dga-gap-2">
463
489
  <h3 class="dga-text-xl dga-fw-bold">
464
- روابط المواقع الالكترونية الرسمية السعودية تنتهي بـ
465
- <span class="dga-text-primary-500">${n}</span>
490
+ ${s.domainHeading}
491
+ <span class="dga-text-primary-500">${l}</span>
466
492
  </h3>
467
493
  <p>
468
- جميع روابط المواقع الرسمية التابعة للجهات الحكومية في المملكة
469
- العربية السعودية تنتهي بـ ${n}
494
+ ${s.domainBody} ${l}
470
495
  </p>
471
496
  </div>
472
497
  </div>
@@ -474,15 +499,14 @@ class w extends HTMLElement {
474
499
 
475
500
  <div class="dga-col-md-6 dga-pb-8">
476
501
  <div class="dga-d-flex dga-gap-4">
477
- <div><img src="${l}" alt="" /></div>
502
+ <div><img src="${f}" alt="" /></div>
478
503
  <div class="dga-w-full dga-d-flex dga-flex-col dga-gap-2">
479
504
  <h3 class="dga-text-xl dga-fw-bold">
480
- المواقع الالكترونية الحكومية تستخدم بروتوكول
481
- <span class="dga-text-primary-500">HTTPS</span> للتشفير و الأمان.
505
+ ${s.httpsHeading}
506
+ <span class="dga-text-primary-500">HTTPS</span> ${s.httpsHeadingSuffix}
482
507
  </h3>
483
508
  <p>
484
- المواقع الالكترونية الآمنة في المملكة العربية السعودية تستخدم
485
- بروتوكول HTTPS للتشفير.
509
+ ${s.httpsBody}
486
510
  </p>
487
511
  </div>
488
512
  </div>
@@ -490,9 +514,9 @@ class w extends HTMLElement {
490
514
 
491
515
  <div class="dga-col-12">
492
516
  <div class="dga-d-flex dga-align-items-center dga-gap-3 dga-bg-white dga-text-md dga-rounded-md dga-py-2 dga-px-7">
493
- <img src="${v}" alt="شعار هيئة الحكومة الرقمية" />
494
- مسجل لدى هيئة الحكومة الرقمية برقم :
495
- <a href="${i}" class="dga-link">${t}</a>
517
+ <img src="${_}" alt="${s.logoAlt}" />
518
+ ${s.registeredWith}
519
+ <a href="${r}" class="dga-link">${n}</a>
496
520
  </div>
497
521
  </div>
498
522
  </div>
@@ -503,8 +527,8 @@ class w extends HTMLElement {
503
527
  _imageSrc(t) {
504
528
  const e = this.getAttribute(t);
505
529
  if (e) return e;
506
- const i = E[t], n = this.getAttribute("assets-base") || "/";
507
- return `${n.endsWith("/") ? n : `${n}/`}${i}`;
530
+ const s = S[t], n = this.getAttribute("assets-base") || "/";
531
+ return `${n.endsWith("/") ? n : `${n}/`}${s}`;
508
532
  }
509
533
  _open() {
510
534
  this._content.style.display = "flex", this.isOpen = !0, this._btn?.setAttribute("aria-expanded", "true"), this._wrapper?.classList.replace("closed", "opend");
@@ -520,15 +544,15 @@ class w extends HTMLElement {
520
544
  }
521
545
  }
522
546
  }
523
- customElements.define("dga-verify-bar", w);
524
- const $ = !0;
547
+ customElements.define("dga-verify-bar", T);
548
+ const q = !0;
525
549
  export {
526
- x as DGAAccordion,
527
- D as DGAAlert,
528
- T as DGAChart,
529
- S as DGACodeSnippet,
530
- B as DGAMenuDropDown,
531
- M as DGAVerifyBar,
532
- $ as DGA_WEB_COMPONENTS_REGISTERED
550
+ $ as DGAAccordion,
551
+ B as DGAAlert,
552
+ H as DGAChart,
553
+ M as DGACodeSnippet,
554
+ O as DGAMenuDropDown,
555
+ G as DGAVerifyBar,
556
+ q as DGA_WEB_COMPONENTS_REGISTERED
533
557
  };
534
558
  //# sourceMappingURL=index.js.map