@g-gts/ui 1.5.15 → 1.5.16

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/dist/gts-ui.es.js CHANGED
@@ -23162,7 +23162,7 @@ const $b = /* @__PURE__ */ K({
23162
23162
  ], 544));
23163
23163
  }
23164
23164
  });
23165
- function T0(t) {
23165
+ function j0(t) {
23166
23166
  return new Intl.NumberFormat("en-US").format(t);
23167
23167
  }
23168
23168
  function c0(t, e = "UZS") {
@@ -23392,7 +23392,56 @@ const p0 = {
23392
23392
  _: 1
23393
23393
  }, 8, ["modelValue"]));
23394
23394
  }
23395
- }), j0 = [
23395
+ }), M0 = {
23396
+ colors: {
23397
+ primary: "#00B5D7",
23398
+ hover: "#26A7D0",
23399
+ pressed: "#0392B7",
23400
+ subtler: "#EEF4FC",
23401
+ subtle: "#E2F3FF",
23402
+ selectedSubtle: "#D0E4FF"
23403
+ }
23404
+ }, P0 = [
23405
+ {
23406
+ hosts: ["booking.skdavia.uz", "booking.skdavia.ru"],
23407
+ config: {
23408
+ colors: {
23409
+ primary: "#00B5D7",
23410
+ hover: "#26A7D0",
23411
+ pressed: "#0392B7",
23412
+ subtler: "#EEF4FC",
23413
+ subtle: "#E2F3FF",
23414
+ selectedSubtle: "#D0E4FF"
23415
+ }
23416
+ }
23417
+ },
23418
+ {
23419
+ hosts: ["b2b.creativetravel.uz", "localhost", "test.globaltravel.space"],
23420
+ config: {
23421
+ colors: {
23422
+ primary: "#FED90F",
23423
+ hover: "#FDC621",
23424
+ pressed: "#FDC621",
23425
+ subtler: "#f7f2dc",
23426
+ subtle: "#FFF1B8",
23427
+ selectedSubtle: "#FFEA99"
23428
+ }
23429
+ }
23430
+ }
23431
+ ], D0 = () => {
23432
+ const t = () => typeof window > "u" ? "" : window.location.hostname.toLowerCase(), e = () => {
23433
+ const i = t(), a = P0.find((r) => r.hosts.includes(i));
23434
+ return a ? a.config : M0;
23435
+ };
23436
+ return { applyPathBranding: () => {
23437
+ const { colors: i } = e();
23438
+ if (typeof document < "u") {
23439
+ const a = document.documentElement;
23440
+ a.style.setProperty("--brand-primary", i.primary), a.style.setProperty("--brand-primary-hover", i.hover), a.style.setProperty("--brand-primary-pressed", i.pressed), a.style.setProperty("--brand-primary-subtler", i.subtler), a.style.setProperty("--brand-primary-subtle", i.subtle), a.style.setProperty("--brand-primary-selected-subtle", i.selectedSubtle), a.style.setProperty("--background-accent-blue-subtler", i.subtler), a.style.setProperty("--background-accent-blue-subtle", i.subtle);
23441
+ }
23442
+ return { colors: i };
23443
+ } };
23444
+ }, E0 = [
23396
23445
  {
23397
23446
  ru: "Китайский",
23398
23447
  en: "Chinese",
@@ -24053,56 +24102,7 @@ const p0 = {
24053
24102
  uz: "Akcha",
24054
24103
  value: "ak"
24055
24104
  }
24056
- ], M0 = {
24057
- colors: {
24058
- primary: "#00B5D7",
24059
- hover: "#26A7D0",
24060
- pressed: "#0392B7",
24061
- subtler: "#EEF4FC",
24062
- subtle: "#E2F3FF",
24063
- selectedSubtle: "#D0E4FF"
24064
- }
24065
- }, P0 = [
24066
- {
24067
- hosts: ["booking.skdavia.uz", "booking.skdavia.ru"],
24068
- config: {
24069
- colors: {
24070
- primary: "#00B5D7",
24071
- hover: "#26A7D0",
24072
- pressed: "#0392B7",
24073
- subtler: "#EEF4FC",
24074
- subtle: "#E2F3FF",
24075
- selectedSubtle: "#D0E4FF"
24076
- }
24077
- }
24078
- },
24079
- {
24080
- hosts: ["b2b.creativetravel.uz", "localhost", "test.globaltravel.space"],
24081
- config: {
24082
- colors: {
24083
- primary: "#FED90F",
24084
- hover: "#FDC621",
24085
- pressed: "#FDC621",
24086
- subtler: "#f7f2dc",
24087
- subtle: "#FFF1B8",
24088
- selectedSubtle: "#FFEA99"
24089
- }
24090
- }
24091
- }
24092
- ], E0 = () => {
24093
- const t = () => typeof window > "u" ? "" : window.location.hostname.toLowerCase(), e = () => {
24094
- const i = t(), a = P0.find((r) => r.hosts.includes(i));
24095
- return a ? a.config : M0;
24096
- };
24097
- return { applyPathBranding: () => {
24098
- const { colors: i } = e();
24099
- if (typeof document < "u") {
24100
- const a = document.documentElement;
24101
- a.style.setProperty("--brand-primary", i.primary), a.style.setProperty("--brand-primary-hover", i.hover), a.style.setProperty("--brand-primary-pressed", i.pressed), a.style.setProperty("--brand-primary-subtler", i.subtler), a.style.setProperty("--brand-primary-subtle", i.subtle), a.style.setProperty("--brand-primary-selected-subtle", i.selectedSubtle), a.style.setProperty("--background-accent-blue-subtler", i.subtler), a.style.setProperty("--background-accent-blue-subtle", i.subtle);
24102
- }
24103
- return { colors: i };
24104
- } };
24105
- }, D0 = [
24105
+ ], L0 = [
24106
24106
  Ne,
24107
24107
  Le,
24108
24108
  Du,
@@ -24144,9 +24144,10 @@ const p0 = {
24144
24144
  _0
24145
24145
  ], V0 = {
24146
24146
  install(t) {
24147
- D0.forEach((e) => {
24148
- const n = e.name || e.__name;
24149
- n && t.component(n, e);
24147
+ const { applyPathBranding: e } = D0();
24148
+ e(), L0.forEach((n) => {
24149
+ const i = n.name || n.__name;
24150
+ i && t.component(i, n);
24150
24151
  });
24151
24152
  }
24152
24153
  };
@@ -24194,11 +24195,11 @@ export {
24194
24195
  Wn as debounce,
24195
24196
  V0 as default,
24196
24197
  c0 as formatCurrency,
24197
- T0 as formatNumber,
24198
- j0 as languages,
24198
+ j0 as formatNumber,
24199
+ E0 as languages,
24199
24200
  oa as padStart,
24200
24201
  Dt as useClickOutside,
24201
- E0 as usePathBranding,
24202
+ D0 as usePathBranding,
24202
24203
  Dp as usePermission,
24203
24204
  Lp as useUser,
24204
24205
  Hp as useWindowSize