@block-auth.io/angular 0.7.0 → 0.7.2

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.
@@ -1,7 +1,7 @@
1
1
  import { DOCUMENT, isPlatformBrowser, NgComponentOutlet } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
3
  import { InjectionToken, makeEnvironmentProviders, inject, DestroyRef, signal, computed, Injectable, output, PLATFORM_ID, effect, Directive, ElementRef, input, ChangeDetectionStrategy, Component, viewChild, HostListener, untracked, linkedSignal, afterNextRender } from '@angular/core';
4
- import { createBlockAuthClient, $locale, setLocale, t, $user, getUserRoles, getUserRoleNames, getUserRoleSlugs, hasRole, hasRoleBySlug, hasAnyRole, hasAnyRoleBySlug, fetchUserProfile, startExtensionSync, createAuthRuntime, $extension, getExtensionStoreUrl, utils, getDefaultPhoneCountry, resolvePhoneDraft, getPhoneCountries, searchPhoneCountries, updatePhoneDraft, getSolicitedFields, getSolicitedParams, isSolicitedDataComplete, PARAM_LABEL_KEYS, PARAM_ERROR_KEYS, getSolicitedHintKey, PARAM_INPUT_TYPE, isSolicitedHintSuccess, isSolicitedEmailSelectable, formatSolicitedEmailOption, EMPTY_SOLICITED_DATA_FORM, openExtensionOnTxn, getSolicitedAcceptParams, setSolicitedValue, setSolicitedShared, saveSolicitedValue, undoSolicitedValue, setSolicitedEmailChoice, needsExtensionUnlock, deepLinkFor, makeQrDataUrl, setIsSigningLoader, AccountLinkError } from '@block-auth.io/core';
4
+ import { createBlockAuthClient, $locale, setLocale, t, $user, getUserRoles, getUserRoleNames, getUserRoleSlugs, hasRole, hasRoleBySlug, hasAnyRole, hasAnyRoleBySlug, fetchUserProfile, startExtensionSync, createAuthRuntime, utils, $extension, getExtensionStoreUrl, DEFAULT_PHONE_COUNTRY, resolvePhoneDraft, getPhoneCountries, searchPhoneCountries, updatePhoneDraft, getSolicitedFields, getSolicitedParams, isSolicitedDataComplete, PARAM_LABEL_KEYS, PARAM_ERROR_KEYS, getSolicitedHintKey, PARAM_INPUT_TYPE, isSolicitedHintSuccess, isSolicitedEmailSelectable, formatSolicitedEmailOption, EMPTY_SOLICITED_DATA_FORM, openExtensionOnTxn, getSolicitedAcceptParams, setSolicitedValue, setSolicitedShared, saveSolicitedValue, undoSolicitedValue, setSolicitedEmailChoice, needsExtensionUnlock, deepLinkFor, makeQrDataUrl, setIsSigningLoader, AccountLinkError } from '@block-auth.io/core';
5
5
  export { getUserRoleNames, getUserRoleSlugs, getUserRoles, hasAnyRole, hasAnyRoleBySlug, hasRole, hasRoleBySlug, loadUserProfile } from '@block-auth.io/core';
6
6
 
7
7
  // GENERADO por scripts/css-to-ts.mjs — no editar a mano.
@@ -1148,6 +1148,144 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
1148
1148
  // para que un futuro `grep` sobre el nombre original siga encontrando el
1149
1149
  // equivalente Angular sin fricción de traducción. Exports alfabetizados.
1150
1150
 
1151
+ // Port literal de packages/react/src/primitives/helpers.ts: helpers de UI
1152
+ // puros en TS, sin dependencias de React ni de framer-motion, por lo que se
1153
+ // copian tal cual (solo cambia el comentario de cabecera). Las variantes de
1154
+ // framer-motion (`dropdownContainerVariantsFromTopRight`, `liItemVariants`,
1155
+ // etc.) ya no las usa ningún primitivo Vue (DropdownBase anima con
1156
+ // `<Transition>` + CSS), pero se conservan por si algún componente futuro
1157
+ // las necesita como referencia/objeto de datos plano (no importan
1158
+ // framer-motion, son solo objetos JS).
1159
+ //
1160
+ // `imgUrlByService` ya vive en `@block-auth.io/core` utils — se reexporta
1161
+ // aquí para que los primitivos puedan importar todo desde un mismo sitio.
1162
+ const imgUrlByService = utils.imgUrlByService;
1163
+ /**
1164
+ * Variantes framer-motion usadas por el `DropdownBase` original (el dropdown
1165
+ * se revelaba desde la esquina superior derecha vía un círculo de
1166
+ * clip-path animado). Portado literalmente desde `helperUI.dropdownContainerVariantsFromTopRight`.
1167
+ * No se usa en el `DropdownBase.vue` (que anima con `<Transition name="bas-pop">`),
1168
+ * se conserva por paridad de API con el paquete react.
1169
+ */
1170
+ function dropdownContainerVariantsFromTopRight(height = 1000, left = 'auto') {
1171
+ return {
1172
+ open: {
1173
+ clipPath: `circle(${height * 2 + 200}px at 100% 0%)`,
1174
+ left,
1175
+ transition: {
1176
+ type: 'spring',
1177
+ stiffness: 20,
1178
+ restDelta: 2,
1179
+ duration: 1,
1180
+ delayChildren: 0.3,
1181
+ staggerChildren: 0.05,
1182
+ },
1183
+ },
1184
+ closed: {
1185
+ clipPath: 'circle(0px at 100% 0%)',
1186
+ left,
1187
+ transition: {
1188
+ delay: 0,
1189
+ type: 'spring',
1190
+ stiffness: 400,
1191
+ damping: 40,
1192
+ },
1193
+ },
1194
+ };
1195
+ }
1196
+ /**
1197
+ * Variantes de stagger por item de la lista del dropdown. Portado
1198
+ * literalmente desde `helperUI.liItemVariants`. No usado en `DropdownBase.vue`.
1199
+ */
1200
+ function liItemVariants(openOpacity = 1) {
1201
+ return {
1202
+ open: {
1203
+ opacity: openOpacity,
1204
+ y: 0,
1205
+ transition: { duration: 0.2 },
1206
+ },
1207
+ closed: { opacity: 0, y: 20, transition: { duration: 0.2 } },
1208
+ };
1209
+ }
1210
+ /* ------------------------------------------------------------------ *
1211
+ * Helpers de tiempo + variantes de dropdown de pickers — absorbidos del
1212
+ * `helperUI` original. Los usan `pickers/` y `LifetimeSliderBase`, ambos
1213
+ * fuera de alcance en esta tarea (excluidos por el plan), pero se conservan
1214
+ * (son TS puro, sin coste) por si un futuro port de esos componentes los
1215
+ * necesita.
1216
+ * ------------------------------------------------------------------ */
1217
+ /** Descompone segundos totales en `{ hours, minutes, seconds }`. */
1218
+ function convertSecondsToTime(totalSeconds) {
1219
+ const hours = Math.floor(totalSeconds / 3600);
1220
+ const minutes = Math.floor((totalSeconds % 3600) / 60);
1221
+ const seconds = totalSeconds % 60;
1222
+ return { hours, minutes, seconds };
1223
+ }
1224
+ /** Rellena con cero un número menor a 10 (`5` → `"05"`). */
1225
+ function formatNumberToString(num) {
1226
+ return num < 10 ? `0${num}` : `${num}`;
1227
+ }
1228
+ /** Parsea un string `HH:MM:SS` a segundos totales. */
1229
+ function getSecFromTimeValue(timeValue) {
1230
+ const [h, m, s] = timeValue.split(':');
1231
+ return parseInt(h) * 3600 + parseInt(m) * 60 + parseInt(s);
1232
+ }
1233
+ /** Segundos totales → `HH:MM:SS` (port de `getTimeBySec`). */
1234
+ function getTimeBySec(totalSeconds) {
1235
+ const { hours, minutes, seconds } = convertSecondsToTime(totalSeconds);
1236
+ return [hours, minutes, seconds].map(formatNumberToString).join(':');
1237
+ }
1238
+ /**
1239
+ * Revelado del dropdown del picker (hacia abajo) — círculo de clip-path
1240
+ * desde arriba al centro. Port literal de `dropdownContainerVariantsTopCenterCircle`.
1241
+ */
1242
+ function dropdownContainerVariantsTopCenterCircle(height = 1000) {
1243
+ return {
1244
+ open: {
1245
+ clipPath: `circle(${height * 2 + 200}px at 50% 0%)`,
1246
+ top: 0,
1247
+ transition: {
1248
+ type: 'spring',
1249
+ stiffness: 20,
1250
+ restDelta: 2,
1251
+ duration: 1,
1252
+ delayChildren: 0.3,
1253
+ staggerChildren: 0.05,
1254
+ },
1255
+ },
1256
+ closed: {
1257
+ clipPath: 'circle(0px at 50% 0%)',
1258
+ top: '-100%',
1259
+ transition: { delay: 0, type: 'spring', stiffness: 400, damping: 40 },
1260
+ },
1261
+ };
1262
+ }
1263
+ /**
1264
+ * Revelado del dropdown del picker (hacia arriba) — círculo de clip-path
1265
+ * desde abajo al centro. Port literal de `dropdownContainerUpwardsVariants`.
1266
+ */
1267
+ function dropdownContainerUpwardsVariants(top = -288, height = 1000) {
1268
+ return {
1269
+ open: {
1270
+ clipPath: `circle(${height * 2 + 200}px at 50% 100%)`,
1271
+ top,
1272
+ transition: {
1273
+ type: 'tween',
1274
+ stiffness: 20,
1275
+ restDelta: 2,
1276
+ duration: 2,
1277
+ delayChildren: 0.3,
1278
+ staggerChildren: 0.05,
1279
+ },
1280
+ },
1281
+ closed: {
1282
+ clipPath: 'circle(0px at 50% 100%)',
1283
+ top,
1284
+ transition: { delay: 0, type: 'tween', stiffness: 400, damping: 40 },
1285
+ },
1286
+ };
1287
+ }
1288
+
1151
1289
  /**
1152
1290
  * El único botón que ramifica sobre el estado de la extensión (`$extension`,
1153
1291
  * que no está envuelto por `BlockAuthService`, se lee aquí con `injectStore`).
@@ -1160,6 +1298,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
1160
1298
  */
1161
1299
  class BtnBlockAuthComponent {
1162
1300
  constructor() {
1301
+ this.blockauthLogo = imgUrlByService('blockauth');
1163
1302
  this.isDropdownProfile = input(false, ...(ngDevMode ? [{ debugName: "isDropdownProfile" }] : []));
1164
1303
  this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
1165
1304
  this.isEditable = input(false, ...(ngDevMode ? [{ debugName: "isEditable" }] : []));
@@ -1235,7 +1374,7 @@ class BtnBlockAuthComponent {
1235
1374
  >
1236
1375
  <img
1237
1376
  slot="icon"
1238
- src="https://dashboard.block-auth.io/img/blockauth_logo.png"
1377
+ [src]="blockauthLogo"
1239
1378
  width="24"
1240
1379
  height="24"
1241
1380
  alt="Block-Auth"
@@ -1277,7 +1416,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
1277
1416
  >
1278
1417
  <img
1279
1418
  slot="icon"
1280
- src="https://dashboard.block-auth.io/img/blockauth_logo.png"
1419
+ [src]="blockauthLogo"
1281
1420
  width="24"
1282
1421
  height="24"
1283
1422
  alt="Block-Auth"
@@ -1682,144 +1821,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
1682
1821
  }]
1683
1822
  }], propDecorators: { isDropdownProfile: [{ type: i0.Input, args: [{ isSignal: true, alias: "isDropdownProfile", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], isTextInsteadOfAccount: [{ type: i0.Input, args: [{ isSignal: true, alias: "isTextInsteadOfAccount", required: false }] }], iconEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconEnabled", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], isEditable: [{ type: i0.Input, args: [{ isSignal: true, alias: "isEditable", required: false }] }], clicked: [{ type: i0.Output, args: ["clicked"] }] } });
1684
1823
 
1685
- // Port literal de packages/react/src/primitives/helpers.ts: helpers de UI
1686
- // puros en TS, sin dependencias de React ni de framer-motion, por lo que se
1687
- // copian tal cual (solo cambia el comentario de cabecera). Las variantes de
1688
- // framer-motion (`dropdownContainerVariantsFromTopRight`, `liItemVariants`,
1689
- // etc.) ya no las usa ningún primitivo Vue (DropdownBase anima con
1690
- // `<Transition>` + CSS), pero se conservan por si algún componente futuro
1691
- // las necesita como referencia/objeto de datos plano (no importan
1692
- // framer-motion, son solo objetos JS).
1693
- //
1694
- // `imgUrlByService` ya vive en `@block-auth.io/core` utils — se reexporta
1695
- // aquí para que los primitivos puedan importar todo desde un mismo sitio.
1696
- const imgUrlByService = utils.imgUrlByService;
1697
- /**
1698
- * Variantes framer-motion usadas por el `DropdownBase` original (el dropdown
1699
- * se revelaba desde la esquina superior derecha vía un círculo de
1700
- * clip-path animado). Portado literalmente desde `helperUI.dropdownContainerVariantsFromTopRight`.
1701
- * No se usa en el `DropdownBase.vue` (que anima con `<Transition name="bas-pop">`),
1702
- * se conserva por paridad de API con el paquete react.
1703
- */
1704
- function dropdownContainerVariantsFromTopRight(height = 1000, left = 'auto') {
1705
- return {
1706
- open: {
1707
- clipPath: `circle(${height * 2 + 200}px at 100% 0%)`,
1708
- left,
1709
- transition: {
1710
- type: 'spring',
1711
- stiffness: 20,
1712
- restDelta: 2,
1713
- duration: 1,
1714
- delayChildren: 0.3,
1715
- staggerChildren: 0.05,
1716
- },
1717
- },
1718
- closed: {
1719
- clipPath: 'circle(0px at 100% 0%)',
1720
- left,
1721
- transition: {
1722
- delay: 0,
1723
- type: 'spring',
1724
- stiffness: 400,
1725
- damping: 40,
1726
- },
1727
- },
1728
- };
1729
- }
1730
- /**
1731
- * Variantes de stagger por item de la lista del dropdown. Portado
1732
- * literalmente desde `helperUI.liItemVariants`. No usado en `DropdownBase.vue`.
1733
- */
1734
- function liItemVariants(openOpacity = 1) {
1735
- return {
1736
- open: {
1737
- opacity: openOpacity,
1738
- y: 0,
1739
- transition: { duration: 0.2 },
1740
- },
1741
- closed: { opacity: 0, y: 20, transition: { duration: 0.2 } },
1742
- };
1743
- }
1744
- /* ------------------------------------------------------------------ *
1745
- * Helpers de tiempo + variantes de dropdown de pickers — absorbidos del
1746
- * `helperUI` original. Los usan `pickers/` y `LifetimeSliderBase`, ambos
1747
- * fuera de alcance en esta tarea (excluidos por el plan), pero se conservan
1748
- * (son TS puro, sin coste) por si un futuro port de esos componentes los
1749
- * necesita.
1750
- * ------------------------------------------------------------------ */
1751
- /** Descompone segundos totales en `{ hours, minutes, seconds }`. */
1752
- function convertSecondsToTime(totalSeconds) {
1753
- const hours = Math.floor(totalSeconds / 3600);
1754
- const minutes = Math.floor((totalSeconds % 3600) / 60);
1755
- const seconds = totalSeconds % 60;
1756
- return { hours, minutes, seconds };
1757
- }
1758
- /** Rellena con cero un número menor a 10 (`5` → `"05"`). */
1759
- function formatNumberToString(num) {
1760
- return num < 10 ? `0${num}` : `${num}`;
1761
- }
1762
- /** Parsea un string `HH:MM:SS` a segundos totales. */
1763
- function getSecFromTimeValue(timeValue) {
1764
- const [h, m, s] = timeValue.split(':');
1765
- return parseInt(h) * 3600 + parseInt(m) * 60 + parseInt(s);
1766
- }
1767
- /** Segundos totales → `HH:MM:SS` (port de `getTimeBySec`). */
1768
- function getTimeBySec(totalSeconds) {
1769
- const { hours, minutes, seconds } = convertSecondsToTime(totalSeconds);
1770
- return [hours, minutes, seconds].map(formatNumberToString).join(':');
1771
- }
1772
- /**
1773
- * Revelado del dropdown del picker (hacia abajo) — círculo de clip-path
1774
- * desde arriba al centro. Port literal de `dropdownContainerVariantsTopCenterCircle`.
1775
- */
1776
- function dropdownContainerVariantsTopCenterCircle(height = 1000) {
1777
- return {
1778
- open: {
1779
- clipPath: `circle(${height * 2 + 200}px at 50% 0%)`,
1780
- top: 0,
1781
- transition: {
1782
- type: 'spring',
1783
- stiffness: 20,
1784
- restDelta: 2,
1785
- duration: 1,
1786
- delayChildren: 0.3,
1787
- staggerChildren: 0.05,
1788
- },
1789
- },
1790
- closed: {
1791
- clipPath: 'circle(0px at 50% 0%)',
1792
- top: '-100%',
1793
- transition: { delay: 0, type: 'spring', stiffness: 400, damping: 40 },
1794
- },
1795
- };
1796
- }
1797
- /**
1798
- * Revelado del dropdown del picker (hacia arriba) — círculo de clip-path
1799
- * desde abajo al centro. Port literal de `dropdownContainerUpwardsVariants`.
1800
- */
1801
- function dropdownContainerUpwardsVariants(top = -288, height = 1000) {
1802
- return {
1803
- open: {
1804
- clipPath: `circle(${height * 2 + 200}px at 50% 100%)`,
1805
- top,
1806
- transition: {
1807
- type: 'tween',
1808
- stiffness: 20,
1809
- restDelta: 2,
1810
- duration: 2,
1811
- delayChildren: 0.3,
1812
- staggerChildren: 0.05,
1813
- },
1814
- },
1815
- closed: {
1816
- clipPath: 'circle(0px at 50% 100%)',
1817
- top,
1818
- transition: { delay: 0, type: 'tween', stiffness: 400, damping: 40 },
1819
- },
1820
- };
1821
- }
1822
-
1823
1824
  /**
1824
1825
  * Botón de conexión Phantom (Solana). El click delega en
1825
1826
  * `client.web3.signup('phantom')`.
@@ -2267,7 +2268,7 @@ const providersStyles = {
2267
2268
  trustWallet: {
2268
2269
  name: 'Trust Wallet',
2269
2270
  value: 'trustwallet',
2270
- imgSrc: 'https://dashboard.block-auth.io/img/providers/trust-wallet.png',
2271
+ imgSrc: imgUrlByService('trustwallet'),
2271
2272
  imgBgColor: '#f0f9ff',
2272
2273
  loaderColor: '#0b69ff',
2273
2274
  colorBase: '#0b69ff',
@@ -2275,7 +2276,7 @@ const providersStyles = {
2275
2276
  binance: {
2276
2277
  name: 'Binance',
2277
2278
  value: 'binance',
2278
- imgSrc: 'https://dashboard.block-auth.io/img/providers/binance.png',
2279
+ imgSrc: imgUrlByService('binance'),
2279
2280
  imgBgColor: '#f0f9ff',
2280
2281
  loaderColor: '#0b69ff',
2281
2282
  colorBase: '#0b69ff',
@@ -2283,7 +2284,7 @@ const providersStyles = {
2283
2284
  uniswap: {
2284
2285
  name: 'Uniswap',
2285
2286
  value: 'uniswap',
2286
- imgSrc: 'https://dashboard.block-auth.io/img/providers/uniswap.png',
2287
+ imgSrc: imgUrlByService('uniswap'),
2287
2288
  imgBgColor: '#f0f9ff',
2288
2289
  loaderColor: '#0b69ff',
2289
2290
  colorBase: '#0b69ff',
@@ -2291,7 +2292,7 @@ const providersStyles = {
2291
2292
  bitget: {
2292
2293
  name: 'Bitget',
2293
2294
  value: 'bitget',
2294
- imgSrc: 'https://dashboard.block-auth.io/img/providers/bitget.png',
2295
+ imgSrc: imgUrlByService('bitget'),
2295
2296
  imgBgColor: '#f0f9ff',
2296
2297
  loaderColor: '#0b69ff',
2297
2298
  colorBase: '#0b69ff',
@@ -2299,7 +2300,7 @@ const providersStyles = {
2299
2300
  legder: {
2300
2301
  name: 'Legder',
2301
2302
  value: 'legder',
2302
- imgSrc: 'https://dashboard.block-auth.io/img/providers/legder.png',
2303
+ imgSrc: imgUrlByService('legder'),
2303
2304
  imgBgColor: '#f0f9ff',
2304
2305
  loaderColor: '#0b69ff',
2305
2306
  colorBase: '#0b69ff',
@@ -2307,7 +2308,7 @@ const providersStyles = {
2307
2308
  robinhood: {
2308
2309
  name: 'Robinhood',
2309
2310
  value: 'robinhood',
2310
- imgSrc: 'https://dashboard.block-auth.io/img/providers/robinhood.png',
2311
+ imgSrc: imgUrlByService('robinhood'),
2311
2312
  imgBgColor: '#f0f9ff',
2312
2313
  loaderColor: '#0b69ff',
2313
2314
  colorBase: '#0b69ff',
@@ -2315,7 +2316,7 @@ const providersStyles = {
2315
2316
  blockchaincom: {
2316
2317
  name: 'Blockchain.com',
2317
2318
  value: 'blockchaincom',
2318
- imgSrc: 'https://dashboard.block-auth.io/img/providers/blockchaincom.png',
2319
+ imgSrc: imgUrlByService('blockchaincom'),
2319
2320
  imgBgColor: '#f0f9ff',
2320
2321
  loaderColor: '#0b69ff',
2321
2322
  colorBase: '#0b69ff',
@@ -2323,7 +2324,7 @@ const providersStyles = {
2323
2324
  magiceden: {
2324
2325
  name: 'Magic Eden',
2325
2326
  value: 'magiceden',
2326
- imgSrc: 'https://dashboard.block-auth.io/img/providers/magiceden.png',
2327
+ imgSrc: imgUrlByService('magiceden'),
2327
2328
  imgBgColor: '#f0f9ff',
2328
2329
  loaderColor: '#0b69ff',
2329
2330
  colorBase: '#0b69ff',
@@ -2331,7 +2332,7 @@ const providersStyles = {
2331
2332
  kraken: {
2332
2333
  name: 'Kraken',
2333
2334
  value: 'kraken',
2334
- imgSrc: 'https://dashboard.block-auth.io/img/providers/kraken.png',
2335
+ imgSrc: imgUrlByService('kraken'),
2335
2336
  imgBgColor: '#f0f9ff',
2336
2337
  loaderColor: '#0b69ff',
2337
2338
  colorBase: '#0b69ff',
@@ -2339,7 +2340,7 @@ const providersStyles = {
2339
2340
  coinbase: {
2340
2341
  name: 'Coinbase',
2341
2342
  value: 'coinbase',
2342
- imgSrc: 'https://dashboard.block-auth.io/img/providers/coinbase.png',
2343
+ imgSrc: imgUrlByService('coinbase'),
2343
2344
  imgBgColor: '#f0f9ff',
2344
2345
  loaderColor: '#0b69ff',
2345
2346
  colorBase: '#0b69ff',
@@ -2347,7 +2348,7 @@ const providersStyles = {
2347
2348
  enjin: {
2348
2349
  name: 'Enjin',
2349
2350
  value: 'enjin',
2350
- imgSrc: 'https://dashboard.block-auth.io/img/providers/enjin.png',
2351
+ imgSrc: imgUrlByService('enjin'),
2351
2352
  imgBgColor: '#f0f9ff',
2352
2353
  loaderColor: '#0b69ff',
2353
2354
  colorBase: '#0b69ff',
@@ -2355,7 +2356,7 @@ const providersStyles = {
2355
2356
  coincircle: {
2356
2357
  name: 'Coincircle',
2357
2358
  value: 'coincircle',
2358
- imgSrc: 'https://dashboard.block-auth.io/img/providers/coincircle.png',
2359
+ imgSrc: imgUrlByService('coincircle'),
2359
2360
  imgBgColor: '#f0f9ff',
2360
2361
  loaderColor: '#0b69ff',
2361
2362
  colorBase: '#0b69ff',
@@ -2363,7 +2364,7 @@ const providersStyles = {
2363
2364
  crossmint: {
2364
2365
  name: 'Crossmint',
2365
2366
  value: 'crossmint',
2366
- imgSrc: 'https://dashboard.block-auth.io/img/providers/crossmint.png',
2367
+ imgSrc: imgUrlByService('crossmint'),
2367
2368
  imgBgColor: '#f0f9ff',
2368
2369
  loaderColor: '#0b69ff',
2369
2370
  colorBase: '#0b69ff',
@@ -2371,7 +2372,7 @@ const providersStyles = {
2371
2372
  ronin: {
2372
2373
  name: 'Ronin',
2373
2374
  value: 'ronin',
2374
- imgSrc: 'https://dashboard.block-auth.io/img/providers/ronin.png',
2375
+ imgSrc: imgUrlByService('ronin'),
2375
2376
  imgBgColor: '#f0f9ff',
2376
2377
  loaderColor: '#0b69ff',
2377
2378
  colorBase: '#0b69ff',
@@ -2379,7 +2380,7 @@ const providersStyles = {
2379
2380
  thirdweb: {
2380
2381
  name: 'Thirdweb',
2381
2382
  value: 'thirdweb',
2382
- imgSrc: 'https://dashboard.block-auth.io/img/providers/thirdweb.png',
2383
+ imgSrc: imgUrlByService('thirdweb'),
2383
2384
  imgBgColor: '#f0f9ff',
2384
2385
  loaderColor: '#0b69ff',
2385
2386
  colorBase: '#0b69ff',
@@ -2387,7 +2388,7 @@ const providersStyles = {
2387
2388
  wemix: {
2388
2389
  name: 'Wemix',
2389
2390
  value: 'wemix',
2390
- imgSrc: 'https://dashboard.block-auth.io/img/providers/wemix.png',
2391
+ imgSrc: imgUrlByService('wemix'),
2391
2392
  imgBgColor: '#f0f9ff',
2392
2393
  loaderColor: '#0b69ff',
2393
2394
  colorBase: '#0b69ff',
@@ -2395,7 +2396,7 @@ const providersStyles = {
2395
2396
  bitbox: {
2396
2397
  name: 'Bitbox',
2397
2398
  value: 'bitbox',
2398
- imgSrc: 'https://dashboard.block-auth.io/img/providers/bitbox.png',
2399
+ imgSrc: imgUrlByService('bitbox'),
2399
2400
  imgBgColor: '#f0f9ff',
2400
2401
  loaderColor: '#0b69ff',
2401
2402
  colorBase: '#0b69ff',
@@ -2403,7 +2404,7 @@ const providersStyles = {
2403
2404
  moonpay: {
2404
2405
  name: 'Moonpay',
2405
2406
  value: 'moonpay',
2406
- imgSrc: 'https://dashboard.block-auth.io/img/providers/moonpay.png',
2407
+ imgSrc: imgUrlByService('moonpay'),
2407
2408
  imgBgColor: '#f0f9ff',
2408
2409
  loaderColor: '#0b69ff',
2409
2410
  colorBase: '#0b69ff',
@@ -3027,7 +3028,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
3027
3028
  }]
3028
3029
  }], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: true }] }], panelClassName: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelClassName", required: false }] }], containerClassName: [{ type: i0.Input, args: [{ isSignal: true, alias: "containerClassName", required: false }] }], testId: [{ type: i0.Input, args: [{ isSignal: true, alias: "testId", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
3029
3030
 
3030
- const BLOCKAUTH_LOGO = 'https://dashboard.block-auth.io/img/blockauth_logo.png';
3031
+ const BLOCKAUTH_LOGO = imgUrlByService('blockauth');
3031
3032
  class OvalSpinnerComponent {
3032
3033
  constructor() {
3033
3034
  this.size = input('medium', ...(ngDevMode ? [{ debugName: "size" }] : []));
@@ -5165,7 +5166,7 @@ class PhoneInputComponent {
5165
5166
  this.nationalInput = viewChild.required('nationalInput');
5166
5167
  this.search = viewChild('search', ...(ngDevMode ? [{ debugName: "search" }] : []));
5167
5168
  this.list = viewChild('list', ...(ngDevMode ? [{ debugName: "list" }] : []));
5168
- this.defaultCountry = getDefaultPhoneCountry();
5169
+ this.defaultCountry = DEFAULT_PHONE_COUNTRY;
5169
5170
  this.draft = linkedSignal(...(ngDevMode ? [{ debugName: "draft", source: this.value,
5170
5171
  computation: (value, previous) => resolvePhoneDraft(value, previous?.value ?? null, this.defaultCountry) }] : [{
5171
5172
  source: this.value,
@@ -6213,6 +6214,7 @@ const TXN_ERROR_TEXT_KEYS = {
6213
6214
  };
6214
6215
  class TxnsOverviewComponent {
6215
6216
  constructor() {
6217
+ this.blockauthLogo = imgUrlByService('blockauth');
6216
6218
  this.closeTxns = input(() => { }, ...(ngDevMode ? [{ debugName: "closeTxns" }] : []));
6217
6219
  this.client = injectBlockAuthClient();
6218
6220
  this.ws = injectStore(this.client.state.$ws);
@@ -6414,7 +6416,7 @@ class TxnsOverviewComponent {
6414
6416
  <img
6415
6417
  [src]="
6416
6418
  preParams().iconUrl ||
6417
- 'https://dashboard.block-auth.io/img/blockauth_logo.png'
6419
+ blockauthLogo
6418
6420
  "
6419
6421
  class="bal-ba-glass-logo bas-h-16"
6420
6422
  alt="app logo"
@@ -6588,7 +6590,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
6588
6590
  <img
6589
6591
  [src]="
6590
6592
  preParams().iconUrl ||
6591
- 'https://dashboard.block-auth.io/img/blockauth_logo.png'
6593
+ blockauthLogo
6592
6594
  "
6593
6595
  class="bal-ba-glass-logo bas-h-16"
6594
6596
  alt="app logo"
@@ -7156,12 +7158,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
7156
7158
  }]
7157
7159
  }], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], isTextArea: [{ type: i0.Input, args: [{ isSignal: true, alias: "isTextArea", required: false }] }], labelText: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelText", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], isDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "isDisabled", required: false }] }], isReadOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "isReadOnly", required: false }] }], enableError: [{ type: i0.Input, args: [{ isSignal: true, alias: "enableError", required: false }] }], enableWhiteSpaces: [{ type: i0.Input, args: [{ isSignal: true, alias: "enableWhiteSpaces", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], info: [{ type: i0.Input, args: [{ isSignal: true, alias: "info", required: false }] }], infoMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "infoMessage", required: false }] }], isBgRedWhenError: [{ type: i0.Input, args: [{ isSignal: true, alias: "isBgRedWhenError", required: false }] }], bgColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "bgColor", required: false }] }], bgColorWhenError: [{ type: i0.Input, args: [{ isSignal: true, alias: "bgColorWhenError", required: false }] }], isInputValueManaged: [{ type: i0.Input, args: [{ isSignal: true, alias: "isInputValueManaged", required: false }] }], inputValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputValue", required: false }] }], floatingLabelTextStyles: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatingLabelTextStyles", required: false }] }], floatingLabelBgColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatingLabelBgColor", required: false }] }], borderRadiusClassNames: [{ type: i0.Input, args: [{ isSignal: true, alias: "borderRadiusClassNames", required: false }] }], displayClassNames: [{ type: i0.Input, args: [{ isSignal: true, alias: "displayClassNames", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], widthClassNames: [{ type: i0.Input, args: [{ isSignal: true, alias: "widthClassNames", required: false }] }], blueStyles: [{ type: i0.Input, args: [{ isSignal: true, alias: "blueStyles", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], inputTestId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputTestId", required: false }] }], changedInputValue: [{ type: i0.Output, args: ["changedInputValue"] }] } });
7158
7160
 
7159
- const defaultItems = [
7160
- { name: 'Select', value: 'service_default', icon_url: 'https://picsum.photos/200/300', isOptionSelected: true },
7161
- { name: 'Block-Auth', value: 'blockauth', icon_url: 'https://dashboard.block-auth.io/img/blockauth_logo.png', isOptionSelected: false },
7162
- { name: 'Auditech', value: 'auditech', icon_url: 'https://auditech.es/wp-content/uploads/2020/05/Auditech-Iso-Mobile.png', isOptionSelected: false },
7163
- { name: 'Microsoft', value: 'microsoft', icon_url: 'https://avatars.githubusercontent.com/u/6154722?s=200&v=4', isOptionSelected: false },
7164
- ];
7165
7161
  // - `setIsOpen` (callback) -> emit `isOpenChange` (dos-vías idiomática Angular).
7166
7162
  // - `onChangeSelectedItem` -> emit `changeSelectedItem`.
7167
7163
  // - `callbackWhenClickOutside` -> emit `clickOutside`.
@@ -7188,8 +7184,8 @@ class DropdownBaseComponent {
7188
7184
  this.floatingLabelTxt = input('Select an item', ...(ngDevMode ? [{ debugName: "floatingLabelTxt" }] : []));
7189
7185
  this.floatingLabelBgColor = input('bas-bg-white', ...(ngDevMode ? [{ debugName: "floatingLabelBgColor" }] : []));
7190
7186
  this.size = input('base', ...(ngDevMode ? [{ debugName: "size" }] : []));
7191
- this.items = input(defaultItems, ...(ngDevMode ? [{ debugName: "items" }] : []));
7192
- this.selectedItem = input(defaultItems[0], ...(ngDevMode ? [{ debugName: "selectedItem" }] : []));
7187
+ this.items = input.required(...(ngDevMode ? [{ debugName: "items" }] : []));
7188
+ this.selectedItem = input.required(...(ngDevMode ? [{ debugName: "selectedItem" }] : []));
7193
7189
  this.keyName = input('value', ...(ngDevMode ? [{ debugName: "keyName" }] : []));
7194
7190
  this.titleKeyName = input('name', ...(ngDevMode ? [{ debugName: "titleKeyName" }] : []));
7195
7191
  this.width = input('100%', ...(ngDevMode ? [{ debugName: "width" }] : []));
@@ -7302,7 +7298,7 @@ class DropdownBaseComponent {
7302
7298
  return classNames;
7303
7299
  }
7304
7300
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: DropdownBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7305
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: DropdownBaseComponent, isStandalone: true, selector: "ba-dropdown-base", inputs: { btnId: { classPropertyName: "btnId", publicName: "btnId", isSignal: true, isRequired: false, transformFunction: null }, isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, showTitle: { classPropertyName: "showTitle", publicName: "showTitle", isSignal: true, isRequired: false, transformFunction: null }, showFloatingLabel: { classPropertyName: "showFloatingLabel", publicName: "showFloatingLabel", isSignal: true, isRequired: false, transformFunction: null }, floatingLabelTxt: { classPropertyName: "floatingLabelTxt", publicName: "floatingLabelTxt", isSignal: true, isRequired: false, transformFunction: null }, floatingLabelBgColor: { classPropertyName: "floatingLabelBgColor", publicName: "floatingLabelBgColor", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, selectedItem: { classPropertyName: "selectedItem", publicName: "selectedItem", isSignal: true, isRequired: false, transformFunction: null }, keyName: { classPropertyName: "keyName", publicName: "keyName", isSignal: true, isRequired: false, transformFunction: null }, titleKeyName: { classPropertyName: "titleKeyName", publicName: "titleKeyName", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, dropdownHeight: { classPropertyName: "dropdownHeight", publicName: "dropdownHeight", isSignal: true, isRequired: false, transformFunction: null }, classNames: { classPropertyName: "classNames", publicName: "classNames", isSignal: true, isRequired: false, transformFunction: null }, displayClassNames: { classPropertyName: "displayClassNames", publicName: "displayClassNames", isSignal: true, isRequired: false, transformFunction: null }, borderRadiusClassNames: { classPropertyName: "borderRadiusClassNames", publicName: "borderRadiusClassNames", isSignal: true, isRequired: false, transformFunction: null }, container: { classPropertyName: "container", publicName: "container", isSignal: true, isRequired: false, transformFunction: null }, isInsideModal: { classPropertyName: "isInsideModal", publicName: "isInsideModal", isSignal: true, isRequired: false, transformFunction: null }, showStatusIndicator: { classPropertyName: "showStatusIndicator", publicName: "showStatusIndicator", isSignal: true, isRequired: false, transformFunction: null }, showImg: { classPropertyName: "showImg", publicName: "showImg", isSignal: true, isRequired: false, transformFunction: null }, showCheckWhenActive: { classPropertyName: "showCheckWhenActive", publicName: "showCheckWhenActive", isSignal: true, isRequired: false, transformFunction: null }, manageActiveWithIsOptionSelected: { classPropertyName: "manageActiveWithIsOptionSelected", publicName: "manageActiveWithIsOptionSelected", isSignal: true, isRequired: false, transformFunction: null }, blueStyles: { classPropertyName: "blueStyles", publicName: "blueStyles", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isOpenChange: "isOpenChange", changeSelectedItem: "changeSelectedItem", clickOutside: "clickOutside" }, viewQueries: [{ propertyName: "ddBaseContainer", first: true, predicate: ["ddBaseContainer"], descendants: true, isSignal: true }], ngImport: i0, template: `
7301
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: DropdownBaseComponent, isStandalone: true, selector: "ba-dropdown-base", inputs: { btnId: { classPropertyName: "btnId", publicName: "btnId", isSignal: true, isRequired: false, transformFunction: null }, isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, showTitle: { classPropertyName: "showTitle", publicName: "showTitle", isSignal: true, isRequired: false, transformFunction: null }, showFloatingLabel: { classPropertyName: "showFloatingLabel", publicName: "showFloatingLabel", isSignal: true, isRequired: false, transformFunction: null }, floatingLabelTxt: { classPropertyName: "floatingLabelTxt", publicName: "floatingLabelTxt", isSignal: true, isRequired: false, transformFunction: null }, floatingLabelBgColor: { classPropertyName: "floatingLabelBgColor", publicName: "floatingLabelBgColor", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, selectedItem: { classPropertyName: "selectedItem", publicName: "selectedItem", isSignal: true, isRequired: true, transformFunction: null }, keyName: { classPropertyName: "keyName", publicName: "keyName", isSignal: true, isRequired: false, transformFunction: null }, titleKeyName: { classPropertyName: "titleKeyName", publicName: "titleKeyName", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, dropdownHeight: { classPropertyName: "dropdownHeight", publicName: "dropdownHeight", isSignal: true, isRequired: false, transformFunction: null }, classNames: { classPropertyName: "classNames", publicName: "classNames", isSignal: true, isRequired: false, transformFunction: null }, displayClassNames: { classPropertyName: "displayClassNames", publicName: "displayClassNames", isSignal: true, isRequired: false, transformFunction: null }, borderRadiusClassNames: { classPropertyName: "borderRadiusClassNames", publicName: "borderRadiusClassNames", isSignal: true, isRequired: false, transformFunction: null }, container: { classPropertyName: "container", publicName: "container", isSignal: true, isRequired: false, transformFunction: null }, isInsideModal: { classPropertyName: "isInsideModal", publicName: "isInsideModal", isSignal: true, isRequired: false, transformFunction: null }, showStatusIndicator: { classPropertyName: "showStatusIndicator", publicName: "showStatusIndicator", isSignal: true, isRequired: false, transformFunction: null }, showImg: { classPropertyName: "showImg", publicName: "showImg", isSignal: true, isRequired: false, transformFunction: null }, showCheckWhenActive: { classPropertyName: "showCheckWhenActive", publicName: "showCheckWhenActive", isSignal: true, isRequired: false, transformFunction: null }, manageActiveWithIsOptionSelected: { classPropertyName: "manageActiveWithIsOptionSelected", publicName: "manageActiveWithIsOptionSelected", isSignal: true, isRequired: false, transformFunction: null }, blueStyles: { classPropertyName: "blueStyles", publicName: "blueStyles", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isOpenChange: "isOpenChange", changeSelectedItem: "changeSelectedItem", clickOutside: "clickOutside" }, viewQueries: [{ propertyName: "ddBaseContainer", first: true, predicate: ["ddBaseContainer"], descendants: true, isSignal: true }], ngImport: i0, template: `
7306
7302
  <div
7307
7303
  [class]="
7308
7304
  'bas-box-border bas-group bas-relative bas-items-center ' + displayClassNames() + ' ' + classNames() + ' ' +
@@ -7565,7 +7561,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
7565
7561
  }
7566
7562
  </div>
7567
7563
  `, styles: [".ba-pop{animation:ba-pop-in .15s ease;transform-origin:top}@keyframes ba-pop-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}\n"] }]
7568
- }], ctorParameters: () => [], propDecorators: { ddBaseContainer: [{ type: i0.ViewChild, args: ['ddBaseContainer', { isSignal: true }] }], btnId: [{ type: i0.Input, args: [{ isSignal: true, alias: "btnId", required: false }] }], isOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "isOpen", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], showTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTitle", required: false }] }], showFloatingLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFloatingLabel", required: false }] }], floatingLabelTxt: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatingLabelTxt", required: false }] }], floatingLabelBgColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatingLabelBgColor", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], selectedItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedItem", required: false }] }], keyName: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyName", required: false }] }], titleKeyName: [{ type: i0.Input, args: [{ isSignal: true, alias: "titleKeyName", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], minWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "minWidth", required: false }] }], maxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxWidth", required: false }] }], dropdownHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownHeight", required: false }] }], classNames: [{ type: i0.Input, args: [{ isSignal: true, alias: "classNames", required: false }] }], displayClassNames: [{ type: i0.Input, args: [{ isSignal: true, alias: "displayClassNames", required: false }] }], borderRadiusClassNames: [{ type: i0.Input, args: [{ isSignal: true, alias: "borderRadiusClassNames", required: false }] }], container: [{ type: i0.Input, args: [{ isSignal: true, alias: "container", required: false }] }], isInsideModal: [{ type: i0.Input, args: [{ isSignal: true, alias: "isInsideModal", required: false }] }], showStatusIndicator: [{ type: i0.Input, args: [{ isSignal: true, alias: "showStatusIndicator", required: false }] }], showImg: [{ type: i0.Input, args: [{ isSignal: true, alias: "showImg", required: false }] }], showCheckWhenActive: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCheckWhenActive", required: false }] }], manageActiveWithIsOptionSelected: [{ type: i0.Input, args: [{ isSignal: true, alias: "manageActiveWithIsOptionSelected", required: false }] }], blueStyles: [{ type: i0.Input, args: [{ isSignal: true, alias: "blueStyles", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], isOpenChange: [{ type: i0.Output, args: ["isOpenChange"] }], changeSelectedItem: [{ type: i0.Output, args: ["changeSelectedItem"] }], clickOutside: [{ type: i0.Output, args: ["clickOutside"] }] } });
7564
+ }], ctorParameters: () => [], propDecorators: { ddBaseContainer: [{ type: i0.ViewChild, args: ['ddBaseContainer', { isSignal: true }] }], btnId: [{ type: i0.Input, args: [{ isSignal: true, alias: "btnId", required: false }] }], isOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "isOpen", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], showTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTitle", required: false }] }], showFloatingLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFloatingLabel", required: false }] }], floatingLabelTxt: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatingLabelTxt", required: false }] }], floatingLabelBgColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatingLabelBgColor", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], selectedItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedItem", required: true }] }], keyName: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyName", required: false }] }], titleKeyName: [{ type: i0.Input, args: [{ isSignal: true, alias: "titleKeyName", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], minWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "minWidth", required: false }] }], maxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxWidth", required: false }] }], dropdownHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownHeight", required: false }] }], classNames: [{ type: i0.Input, args: [{ isSignal: true, alias: "classNames", required: false }] }], displayClassNames: [{ type: i0.Input, args: [{ isSignal: true, alias: "displayClassNames", required: false }] }], borderRadiusClassNames: [{ type: i0.Input, args: [{ isSignal: true, alias: "borderRadiusClassNames", required: false }] }], container: [{ type: i0.Input, args: [{ isSignal: true, alias: "container", required: false }] }], isInsideModal: [{ type: i0.Input, args: [{ isSignal: true, alias: "isInsideModal", required: false }] }], showStatusIndicator: [{ type: i0.Input, args: [{ isSignal: true, alias: "showStatusIndicator", required: false }] }], showImg: [{ type: i0.Input, args: [{ isSignal: true, alias: "showImg", required: false }] }], showCheckWhenActive: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCheckWhenActive", required: false }] }], manageActiveWithIsOptionSelected: [{ type: i0.Input, args: [{ isSignal: true, alias: "manageActiveWithIsOptionSelected", required: false }] }], blueStyles: [{ type: i0.Input, args: [{ isSignal: true, alias: "blueStyles", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], isOpenChange: [{ type: i0.Output, args: ["isOpenChange"] }], changeSelectedItem: [{ type: i0.Output, args: ["changeSelectedItem"] }], clickOutside: [{ type: i0.Output, args: ["clickOutside"] }] } });
7569
7565
 
7570
7566
  /** Ítems localizados del filtro de web-type ("Web 2"/"Web 3" iguales en ambos idiomas). */
7571
7567
  const makeWebTypeItems = (t) => [
@@ -8195,6 +8191,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
8195
8191
  */
8196
8192
  class ProvidersSectionComponent {
8197
8193
  constructor() {
8194
+ this.blockauthLogo = imgUrlByService('blockauth');
8198
8195
  this.container = input(null, ...(ngDevMode ? [{ debugName: "container" }] : []));
8199
8196
  // Acepta `undefined` (ContentSignup lo pasa así cuando no hay config). En
8200
8197
  // react un prop `undefined` recae en el default por parámetro; en Angular una
@@ -8281,7 +8278,7 @@ class ProvidersSectionComponent {
8281
8278
  [class]="'bas-box-border bas-grid bas-items-center bas-justify-center ' + sectionContainerClassNames()"
8282
8279
  >
8283
8280
  <div class="bas-box-border bas-flex bas-h-[52px] bas-w-full bas-flex-row bas-items-center bas-justify-start bas-gap-2 bas-pl-2">
8284
- <img src="https://dashboard.block-auth.io/img/blockauth_logo.png" width="34" height="34" alt="Block-Auth" />
8281
+ <img [src]="blockauthLogo" width="34" height="34" alt="Block-Auth" />
8285
8282
  <h2 [class]="'bas-m-0 bas-text-2xl bas-font-normal bas-text-[#00509a] ' + h2ClassNames()">
8286
8283
  {{ titleTxt() ?? t('connectWith') }}
8287
8284
  </h2>
@@ -8336,7 +8333,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
8336
8333
  [class]="'bas-box-border bas-grid bas-items-center bas-justify-center ' + sectionContainerClassNames()"
8337
8334
  >
8338
8335
  <div class="bas-box-border bas-flex bas-h-[52px] bas-w-full bas-flex-row bas-items-center bas-justify-start bas-gap-2 bas-pl-2">
8339
- <img src="https://dashboard.block-auth.io/img/blockauth_logo.png" width="34" height="34" alt="Block-Auth" />
8336
+ <img [src]="blockauthLogo" width="34" height="34" alt="Block-Auth" />
8340
8337
  <h2 [class]="'bas-m-0 bas-text-2xl bas-font-normal bas-text-[#00509a] ' + h2ClassNames()">
8341
8338
  {{ titleTxt() ?? t('connectWith') }}
8342
8339
  </h2>
@@ -9690,6 +9687,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
9690
9687
 
9691
9688
  class FlowBlockAuthComponent {
9692
9689
  constructor() {
9690
+ this.blockauthLogo = imgUrlByService('blockauth');
9693
9691
  this.showDropdownWhenConnected = input(true, ...(ngDevMode ? [{ debugName: "showDropdownWhenConnected" }] : []));
9694
9692
  this.isInsideModal = input(false, ...(ngDevMode ? [{ debugName: "isInsideModal" }] : []));
9695
9693
  /** Modal container that scopes the dropdown's click-outside listener when `isInsideModal`. */
@@ -9798,13 +9796,13 @@ class FlowBlockAuthComponent {
9798
9796
  return;
9799
9797
  const user = untracked(this.user);
9800
9798
  if (user)
9801
- this.client.rememberHostedLogin(user);
9799
+ this.client.rememberHostedLogin(user, { ownsAuthCode: Boolean(untracked(this.onAuthCode)) });
9802
9800
  else
9803
9801
  this.client.forgetHostedLogin();
9804
9802
  });
9805
9803
  }
9806
9804
  ngOnInit() {
9807
- if (!this.isHosted || this.user() !== undefined || !this.client.hasAuthEndpoint)
9805
+ if (!this.isHosted || this.user() !== undefined || !this.client.usesAuthEndpoint(Boolean(this.onAuthCode())))
9808
9806
  return;
9809
9807
  this.client.restoreHostedLogin().catch(() => this.errored.emit());
9810
9808
  }
@@ -9818,7 +9816,7 @@ class FlowBlockAuthComponent {
9818
9816
  .authorizeWithPopup()
9819
9817
  .then((code) => authCode(code))
9820
9818
  .then((user) => {
9821
- this.client.rememberHostedLogin(user);
9819
+ this.client.rememberHostedLogin(user, { ownsAuthCode: true });
9822
9820
  return user;
9823
9821
  })
9824
9822
  : this.client.hasAuthEndpoint
@@ -9886,7 +9884,7 @@ class FlowBlockAuthComponent {
9886
9884
  >
9887
9885
  <img
9888
9886
  slot="icon"
9889
- src="https://dashboard.block-auth.io/img/blockauth_logo.png"
9887
+ [src]="blockauthLogo"
9890
9888
  width="26"
9891
9889
  height="26"
9892
9890
  alt="BlockAuth"
@@ -9922,7 +9920,7 @@ class FlowBlockAuthComponent {
9922
9920
  @if (ws().ready && ui().isSdkSignedIn) {
9923
9921
  <img
9924
9922
  slot="icon"
9925
- src="https://dashboard.block-auth.io/img/blockauth_logo.png"
9923
+ [src]="blockauthLogo"
9926
9924
  width="26"
9927
9925
  height="26"
9928
9926
  alt="BlockAuth"
@@ -10013,7 +10011,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
10013
10011
  >
10014
10012
  <img
10015
10013
  slot="icon"
10016
- src="https://dashboard.block-auth.io/img/blockauth_logo.png"
10014
+ [src]="blockauthLogo"
10017
10015
  width="26"
10018
10016
  height="26"
10019
10017
  alt="BlockAuth"
@@ -10049,7 +10047,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
10049
10047
  @if (ws().ready && ui().isSdkSignedIn) {
10050
10048
  <img
10051
10049
  slot="icon"
10052
- src="https://dashboard.block-auth.io/img/blockauth_logo.png"
10050
+ [src]="blockauthLogo"
10053
10051
  width="26"
10054
10052
  height="26"
10055
10053
  alt="BlockAuth"
@@ -10102,6 +10100,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
10102
10100
 
10103
10101
  class LinkBlockAuthComponent {
10104
10102
  constructor() {
10103
+ this.blockauthLogo = imgUrlByService('blockauth');
10105
10104
  this.buttonText = input('', ...(ngDevMode ? [{ debugName: "buttonText" }] : []));
10106
10105
  this.btnClassNames = input('', ...(ngDevMode ? [{ debugName: "btnClassNames" }] : []));
10107
10106
  this.btnTextClassNames = input('', ...(ngDevMode ? [{ debugName: "btnTextClassNames" }] : []));
@@ -10174,7 +10173,7 @@ class LinkBlockAuthComponent {
10174
10173
  >
10175
10174
  <img
10176
10175
  slot="icon"
10177
- src="https://dashboard.block-auth.io/img/blockauth_logo.png"
10176
+ [src]="blockauthLogo"
10178
10177
  width="26"
10179
10178
  height="26"
10180
10179
  alt="BlockAuth"
@@ -10214,7 +10213,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
10214
10213
  >
10215
10214
  <img
10216
10215
  slot="icon"
10217
- src="https://dashboard.block-auth.io/img/blockauth_logo.png"
10216
+ [src]="blockauthLogo"
10218
10217
  width="26"
10219
10218
  height="26"
10220
10219
  alt="BlockAuth"