@beworke/pixel 0.1.0-rc.1 → 0.1.0-rc.6

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.
Files changed (156) hide show
  1. package/CHANGELOG.md +260 -4
  2. package/README.md +65 -118
  3. package/RELEASE_CANDIDATE.md +181 -36
  4. package/dist/{StorageFactory-BhpbB6Jj.d.mts → StorageFactory-CPghDPBj.d.mts} +2 -2
  5. package/dist/{StorageFactory-CAkJJqVD.d.ts → StorageFactory-tjfzk57c.d.ts} +2 -2
  6. package/dist/config/index.cjs.js +1 -1
  7. package/dist/config/index.cjs.js.map +1 -1
  8. package/dist/config/index.d.mts +4 -3
  9. package/dist/config/index.d.ts +4 -3
  10. package/dist/config/index.esm.js +1 -1
  11. package/dist/config/index.esm.js.map +1 -1
  12. package/dist/events/index.cjs.js +1 -1
  13. package/dist/events/index.cjs.js.map +1 -1
  14. package/dist/events/index.d.mts +2 -1
  15. package/dist/events/index.d.ts +2 -1
  16. package/dist/events/index.esm.js +1 -1
  17. package/dist/events/index.esm.js.map +1 -1
  18. package/dist/examples/html-script/README.md +24 -2
  19. package/dist/examples/html-script/RELEASE_CANDIDATE.md +20 -6
  20. package/dist/examples/html-script/add-payment-info/README.md +3 -3
  21. package/dist/examples/html-script/add-payment-info/example-add-payment-info-card-autocomplete.html +66 -48
  22. package/dist/examples/html-script/add-payment-info/example-add-payment-info-card-disabled.html +66 -48
  23. package/dist/examples/html-script/add-payment-info/example-add-payment-info-card-fields.html +65 -47
  24. package/dist/examples/html-script/add-payment-info/example-add-payment-info-data-track.html +73 -47
  25. package/dist/examples/html-script/add-payment-info/example-add-payment-info-dedupe.html +65 -47
  26. package/dist/examples/html-script/add-payment-info/example-add-payment-info-manual.html +56 -47
  27. package/dist/examples/html-script/add-payment-info/example-add-payment-info-rules-card.html +65 -47
  28. package/dist/examples/html-script/add-payment-info/example-add-payment-info-security.html +65 -47
  29. package/dist/examples/html-script/add-to-cart/README.md +3 -3
  30. package/dist/examples/html-script/add-to-cart/example-add-to-cart-attribute.html +90 -70
  31. package/dist/examples/html-script/add-to-cart/example-add-to-cart-auto.html +103 -81
  32. package/dist/examples/html-script/add-to-cart/example-add-to-cart-click.html +101 -78
  33. package/dist/examples/html-script/add-to-cart/example-add-to-cart-dedupe.html +90 -70
  34. package/dist/examples/html-script/add-to-cart/example-add-to-cart-manual.html +81 -67
  35. package/dist/examples/html-script/add-to-cart/example-add-to-cart-order-bump.html +90 -70
  36. package/dist/examples/html-script/add-to-cart/example-add-to-cart-text.html +104 -81
  37. package/dist/examples/html-script/behavior/example-behavior-engagement.html +489 -0
  38. package/dist/examples/html-script/behavior/example-behavior-heartbeat.html +350 -0
  39. package/dist/examples/html-script/behavior/example-behavior-runtime-intelligence.html +433 -0
  40. package/dist/examples/html-script/behavior/example-behavior-viewport.html +397 -0
  41. package/dist/examples/html-script/{example-behavior.html → behavior/example-behavior.html} +23 -17
  42. package/dist/examples/html-script/example-checkout-commerce.html +825 -0
  43. package/dist/examples/html-script/example-integration.html +5 -5
  44. package/dist/examples/html-script/example-landing-commerce.html +380 -0
  45. package/dist/examples/html-script/example-runtime-diagnostics.html +108 -0
  46. package/dist/examples/html-script/example-transport.html +5 -5
  47. package/dist/examples/html-script/full-funnel/README.md +64 -0
  48. package/dist/examples/html-script/full-funnel/checkout.html +116 -0
  49. package/dist/examples/html-script/full-funnel/downsell.html +58 -0
  50. package/dist/examples/html-script/full-funnel/landing.html +99 -0
  51. package/dist/examples/html-script/full-funnel/thank-you.html +85 -0
  52. package/dist/examples/html-script/full-funnel/upsell.html +64 -0
  53. package/dist/examples/html-script/initiate-checkout/README.md +6 -6
  54. package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-attribute.html +94 -74
  55. package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-auto.html +102 -80
  56. package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-click.html +103 -80
  57. package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-manual.html +86 -72
  58. package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-snapshot.html +95 -75
  59. package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-submit.html +103 -83
  60. package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-text.html +105 -82
  61. package/dist/examples/html-script/lead/README.md +9 -7
  62. package/dist/examples/html-script/lead/example-lead-trigger-attribute.html +67 -47
  63. package/dist/examples/html-script/lead/example-lead-trigger-auto.html +78 -56
  64. package/dist/examples/html-script/lead/example-lead-trigger-click.html +78 -55
  65. package/dist/examples/html-script/release-candidate.html +187 -76
  66. package/dist/examples/html-script/remove-from-cart/README.md +1 -1
  67. package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-attribute.html +93 -73
  68. package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-css.html +93 -73
  69. package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-dedupe.html +93 -73
  70. package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-manual.html +84 -70
  71. package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-multi.html +94 -74
  72. package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-state.html +95 -75
  73. package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-text.html +98 -76
  74. package/dist/examples/html-script/search/README.md +1 -1
  75. package/dist/examples/html-script/search/example-search-attribute.html +66 -51
  76. package/dist/examples/html-script/search/example-search-button-sync.html +66 -51
  77. package/dist/examples/html-script/search/example-search-dedupe.html +66 -51
  78. package/dist/examples/html-script/search/example-search-input.html +67 -51
  79. package/dist/examples/html-script/search/example-search-manual.html +57 -48
  80. package/dist/examples/html-script/search/example-search-submit.html +66 -51
  81. package/dist/examples/html-script/search/example-search-text.html +71 -51
  82. package/dist/examples/html-script/url-context/example-url-context-allowed-domains.html +63 -0
  83. package/dist/examples/html-script/url-context/example-url-context-landing.html +70 -0
  84. package/dist/examples/html-script/url-context/example-url-context-upsell.html +67 -0
  85. package/dist/examples/html-script/url-context/example-url-context.html +171 -0
  86. package/dist/examples/html-script/view-content/README.md +1 -1
  87. package/dist/examples/html-script/view-content/example-view-content-attribute.html +85 -70
  88. package/dist/examples/html-script/view-content/example-view-content-css.html +85 -70
  89. package/dist/examples/html-script/view-content/example-view-content-dedupe.html +85 -70
  90. package/dist/examples/html-script/view-content/example-view-content-empty.html +85 -70
  91. package/dist/examples/html-script/view-content/example-view-content-manual.html +76 -67
  92. package/dist/examples/html-script/view-content/example-view-content-product-card.html +85 -70
  93. package/dist/examples/html-script/view-content/example-view-content-text.html +90 -73
  94. package/dist/examples/v2/README.md +4 -1
  95. package/dist/{index-DUfFzniE.d.ts → index-CQAyT5Od.d.ts} +170 -3
  96. package/dist/{index-DUfFzniE.d.mts → index-JlKPz4pp.d.mts} +170 -3
  97. package/dist/index.cjs.js +1 -1
  98. package/dist/index.cjs.js.map +1 -1
  99. package/dist/index.d.mts +435 -12
  100. package/dist/index.d.ts +435 -12
  101. package/dist/index.esm.js +1 -1
  102. package/dist/index.esm.js.map +1 -1
  103. package/dist/{pixel-CbeF25mD.d.mts → pixel-BxZZx8l5.d.ts} +248 -72
  104. package/dist/{pixel-CbeF25mD.d.ts → pixel-CKc4OQUx.d.mts} +248 -72
  105. package/dist/{pixel-default-config-1VgLFOiL.d.mts → pixel-default-config-CJl-eypl.d.mts} +1 -1
  106. package/dist/{pixel-default-config-Bxb-Vdd8.d.ts → pixel-default-config-aAOujzwp.d.ts} +1 -1
  107. package/dist/runtime/index.cjs.js +1 -1
  108. package/dist/runtime/index.cjs.js.map +1 -1
  109. package/dist/runtime/index.d.mts +19 -26
  110. package/dist/runtime/index.d.ts +19 -26
  111. package/dist/runtime/index.esm.js +1 -1
  112. package/dist/runtime/index.esm.js.map +1 -1
  113. package/dist/services/index.cjs.js +1 -1
  114. package/dist/services/index.cjs.js.map +1 -1
  115. package/dist/services/index.d.mts +14 -6
  116. package/dist/services/index.d.ts +14 -6
  117. package/dist/services/index.esm.js +1 -1
  118. package/dist/services/index.esm.js.map +1 -1
  119. package/dist/types-BP8dz1gP.d.mts +19 -0
  120. package/dist/types-C75pQP31.d.ts +19 -0
  121. package/dist/types-DMhzHSVC.d.mts +293 -0
  122. package/dist/types-D_SsCur9.d.ts +293 -0
  123. package/dist/url-context-BjAsQoVl.d.mts +85 -0
  124. package/dist/url-context-BjAsQoVl.d.ts +85 -0
  125. package/dist/v2/global.global.js +1 -1
  126. package/dist/v2/global.global.js.map +1 -1
  127. package/dist/v2/index.cjs.js +1 -1
  128. package/dist/v2/index.cjs.js.map +1 -1
  129. package/dist/v2/index.d.mts +8 -6
  130. package/dist/v2/index.d.ts +8 -6
  131. package/dist/v2/index.esm.js +1 -1
  132. package/dist/v2/index.esm.js.map +1 -1
  133. package/docs/public/README.md +75 -0
  134. package/docs/public/api/exports.md +47 -0
  135. package/docs/public/api/pixel.md +65 -0
  136. package/docs/public/configuration/commerce.md +44 -0
  137. package/docs/public/configuration/modules.md +66 -0
  138. package/docs/public/configuration/overview.md +66 -0
  139. package/docs/public/events/catalog.md +65 -0
  140. package/docs/public/getting-started/installation.md +75 -0
  141. package/docs/public/getting-started/quick-start.md +77 -0
  142. package/docs/public/getting-started/react-nextjs.md +55 -0
  143. package/docs/public/getting-started/script-tag.md +57 -0
  144. package/docs/public/guides/funnel-checkout.md +52 -0
  145. package/docs/public/guides/funnel-downsell.md +53 -0
  146. package/docs/public/guides/funnel-full.md +64 -0
  147. package/docs/public/guides/funnel-landing.md +68 -0
  148. package/docs/public/guides/funnel-thank-you.md +48 -0
  149. package/docs/public/guides/funnel-upsell.md +72 -0
  150. package/docs/public/limitations.md +32 -0
  151. package/docs/public/privacy/limitations.md +33 -0
  152. package/docs/public/release-candidate/validation.md +37 -0
  153. package/docs/public/troubleshooting.md +55 -0
  154. package/package.json +13 -1
  155. package/dist/types-CTpRvFKZ.d.ts +0 -71
  156. package/dist/types-DGlBdsAy.d.mts +0 -71
@@ -1,11 +1,18 @@
1
1
  # Pixel v2 — Release Candidate Notes
2
2
 
3
- **Pacote:** `@agenus-io/pixel`
4
- **Versão:** `0.0.15` (release candidate)
5
- **Data:** 2026-07-11
6
- **Status:** Pronto para publicar RC — **nenhuma pendência P0 conhecida**
7
-
8
- > Guia do playground consumidor: [`examples/html-script/RELEASE_CANDIDATE.md`](./examples/html-script/RELEASE_CANDIDATE.md)
3
+ **Pacote:** `@beworke/pixel`
4
+ **Versão:** `0.1.0-rc.5` (release candidate)
5
+ **Data:** 2026-07-14
6
+ **Status 20:** **Concluída** — Runtime Intelligence · [`PIXEL_V2_STAGE_20_REPORT.md`](./PIXEL_V2_STAGE_20_REPORT.md)
7
+
8
+ > Runtime e módulos implementados estão prontos para **validação controlada**.
9
+ > **Próxima etapa oficial: 21 — Commerce lifecycle** (Behavior Runtime Evolution 17–20 concluída).
10
+ > Privacy Module foi movido para o roadmap **Public SDK Hardening** (etapa 25).
11
+ > Será desenvolvido antes da primeira distribuição pública da SDK.
12
+ > **Não** faz parte do Runtime obrigatório da versão 1.0 interna.
13
+
14
+ > Guia do playground: [`examples/html-script/RELEASE_CANDIDATE.md`](./examples/html-script/RELEASE_CANDIDATE.md)
15
+ > Funil completo: [`examples/html-script/full-funnel/`](./examples/html-script/full-funnel/)
9
16
  > Backlog: [`PIXEL_V2_BACKLOG_PENDENCIAS_ISOLADO.md`](./PIXEL_V2_BACKLOG_PENDENCIAS_ISOLADO.md)
10
17
 
11
18
  ---
@@ -13,9 +20,24 @@
13
20
  ## 1. Status do RC
14
21
 
15
22
  ```txt
16
- Pixel v2 está pronto para release candidate.
17
- Nenhuma pendência P0 conhecida.
18
- npm publish NÃO foi executado nesta etapa (13B).
23
+ Pixel v2 RC 0.1.0-rc.5 — Etapas 1–20 concluídas.
24
+ Runtime Intelligence (20): RateLimit + Buffer + StateMachine + SessionSummary → BEHAVIOR_SESSION_SUMMARY via Dispatcher.
25
+ Engagement (19): `modules.behavior.engagement` (score determinístico 0..100 via ManagedScheduler) → `ENGAGEMENT_UPDATE`/`ENGAGEMENT_SUMMARY` via Dispatcher.
26
+ Hardening 19.1 (gate 20): ApiEventType inclui ENGAGEMENT_UPDATE/SUMMARY; ordem init; playground summary; SignalBus reinit.
27
+ Viewport (18): `modules.behavior.trackers.viewport` (targets[] + IntersectionObserver/MutationObserver) → `VIEWPORT_ENTER`/`VIEWPORT_EXIT` via Dispatcher.
28
+ Hardening 18.1: mutation rescan cleanup→scan; Dispatcher listener failure isolation; testes limite/SSR/observers.
29
+ Heartbeat (17): `modules.behavior.heartbeat` (único contrato; `intervalMs` / `hiddenIntervalMs`) → `BEHAVIOR_HEARTBEAT` via Dispatcher.
30
+ Core UrlContext (15A): query_params + url_context em eventos.
31
+ Commerce é root config (cart.initialItems + enrichment) — plano fechado em rc.3.
32
+ Contrato auto oficial: detectors[event].sources[].
33
+ Matriz oficial de testes: PIXEL_V2_VALIDATION_MATRIX.md
34
+ npm publish NÃO executado nesta etapa.
35
+ git tag NÃO criada nesta etapa.
36
+ Breaking vs 0.1.0-rc.5 pré-18: contrato stub `trackers.viewport` (selector/selectorType/visibilityThreshold) removido — nunca esteve wired em produção.
37
+ Breaking vs 0.1.0-rc.5 pré-17: nenhum (adição aditiva Heartbeat).
38
+ Breaking vs 0.1.0-rc.3: nenhum (adição UrlContext apenas).
39
+ Breaking vs 0.1.0-rc.2: modules.conversion.commerce removido; checkout→cart; selectedItems→initialItems.
40
+ Breaking vs 0.1.0-rc.1: detectors usam sources[] (campos soltos no detector removidos).
19
41
  ```
20
42
 
21
43
  Validado em 13A (consumidor real) + 13B (pacote / instalação limpa).
@@ -27,7 +49,7 @@ Validado em 13A (consumidor real) + 13B (pacote / instalação limpa).
27
49
  ```txt
28
50
  Runtime v2 + bootstrap
29
51
  Core services (visitor, session, fingerprint, storage)
30
- Behavior tracking
52
+ Behavior tracking (P0 + Heartbeat + Viewport)
31
53
  Conversion tracking (manual + auto)
32
54
  Transport real Event + Batch (HttpSender)
33
55
  Resiliência (retry, offline, circuit breaker, DLQ, …)
@@ -35,6 +57,7 @@ Replay / Ordering / Coordination
35
57
  Browser destinations (Meta / Google / TikTok)
36
58
  Attribution
37
59
  Commerce + AutoTrack avançado (12A–12M)
60
+ Core UrlContext (15A — query_params, managed/forward, link decoration)
38
61
  Playgrounds examples/html-script/*
39
62
  Smoke real opcional (env)
40
63
  Release candidate HTML + pack validation (13A–13B)
@@ -49,9 +72,9 @@ Correção recente (pré-13B): match `text:` leaf-only — evita ADD_TO_CART em
49
72
  ### Registry (quando publicado)
50
73
 
51
74
  ```bash
52
- pnpm add @agenus-io/pixel
75
+ pnpm add @beworke/pixel
53
76
  # ou
54
- npm install @agenus-io/pixel
77
+ npm install @beworke/pixel
55
78
  ```
56
79
 
57
80
  ### Tarball local (RC sem publish)
@@ -59,7 +82,7 @@ npm install @agenus-io/pixel
59
82
  ```bash
60
83
  npm run build
61
84
  npm pack
62
- npm install ./agenus-io-pixel-0.0.15.tgz
85
+ npm install ./beworke-pixel-0.1.0-rc.5.tgz
63
86
  ```
64
87
 
65
88
  Validar tarball:
@@ -67,7 +90,7 @@ Validar tarball:
67
90
  ```bash
68
91
  npm run validate:rc-package
69
92
  # ou
70
- node scripts/validate-rc-package.mjs ./agenus-io-pixel-0.0.15.tgz
93
+ node scripts/validate-rc-package.mjs ./beworke-pixel-0.1.0-rc.5.tgz
71
94
  ```
72
95
 
73
96
  ---
@@ -75,7 +98,7 @@ node scripts/validate-rc-package.mjs ./agenus-io-pixel-0.0.15.tgz
75
98
  ## 4. Como usar via import (ESM)
76
99
 
77
100
  ```ts
78
- import { Pixel, DEFAULT_PIXEL_CONFIG } from '@agenus-io/pixel';
101
+ import { Pixel, DEFAULT_PIXEL_CONFIG } from '@beworke/pixel';
79
102
 
80
103
  const pixel = new Pixel({
81
104
  ...DEFAULT_PIXEL_CONFIG,
@@ -126,13 +149,13 @@ await pixel.destroy();
126
149
  ### CJS
127
150
 
128
151
  ```js
129
- const { Pixel, DEFAULT_PIXEL_CONFIG } = require('@agenus-io/pixel');
152
+ const { Pixel, DEFAULT_PIXEL_CONFIG } = require('@beworke/pixel');
130
153
  ```
131
154
 
132
155
  ### Subpath `/v2`
133
156
 
134
157
  ```ts
135
- import { Pixel } from '@agenus-io/pixel/v2';
158
+ import { Pixel } from '@beworke/pixel/v2';
136
159
  ```
137
160
 
138
161
  ---
@@ -142,7 +165,7 @@ import { Pixel } from '@agenus-io/pixel/v2';
142
165
  Bundle IIFE: `dist/v2/global.global.js` → **`window.PixelV2`**
143
166
 
144
167
  ```html
145
- <script src="./node_modules/@agenus-io/pixel/dist/v2/global.global.js"></script>
168
+ <script src="./node_modules/@beworke/pixel/dist/v2/global.global.js"></script>
146
169
  <script>
147
170
  const { Pixel, DEFAULT_PIXEL_CONFIG } = window.PixelV2;
148
171
  const pixel = new Pixel({
@@ -157,7 +180,7 @@ Bundle IIFE: `dist/v2/global.global.js` → **`window.PixelV2`**
157
180
  </script>
158
181
  ```
159
182
 
160
- Export npm: `@agenus-io/pixel/global`.
183
+ Export npm: `@beworke/pixel/global`.
161
184
 
162
185
  ---
163
186
 
@@ -187,16 +210,77 @@ POST {apiEndpoint}/pixels/public/event/batch
187
210
 
188
211
  ---
189
212
 
190
- ## 7. Commerce (resumo)
213
+ ## 7. Commerce + Auto Sources (resumo)
191
214
 
192
215
  ```ts
193
- modules.conversion.commerce = {
216
+ // Commerce global (raiz — Etapa 14A)
217
+ commerce: {
218
+ enabled: true,
194
219
  currency: 'BRL',
195
- catalog: { products: [{ id: 'main_offer', name: '…', price: 197, … }] },
196
- checkout: {
197
- selectedItems: [{ productId: 'main_offer', quantity: 1 }],
198
- calculateValueFrom: 'selected_items',
220
+ catalog: { products: [{ id: 'main_offer', price: 197, type: 'main' }] },
221
+ cart: {
222
+ mode: 'checkout',
223
+ initialItems: [{ productId: 'main_offer', quantity: 1 }],
199
224
  allowDynamicItems: true,
225
+ calculateValueFrom: 'cart',
226
+ },
227
+ enrichment: {
228
+ pageView: { enabled: false, source: 'cart' },
229
+ initiateCheckout: { enabled: true, source: 'cart' },
230
+ },
231
+ },
232
+
233
+ modules.conversion.auto = {
234
+ enabled: true,
235
+ detectors: {
236
+ addToCart: {
237
+ enabled: true,
238
+ sources: [
239
+ {
240
+ name: 'main-product-after-contact',
241
+ type: 'form',
242
+ selectorForm: {
243
+ fields: ['email', 'phone'],
244
+ mode: 'all',
245
+ formSelector: '#checkout-form',
246
+ trigger: 'input',
247
+ fireOnce: true,
248
+ },
249
+ },
250
+ {
251
+ name: 'product-or-bump-click',
252
+ type: 'selector',
253
+ selector: ['[data-track="add_to_cart"]', 'text:Comprar agora'],
254
+ selectorType: 'css',
255
+ trigger: 'click',
256
+ fireOnce: false,
257
+ },
258
+ ],
259
+ },
260
+ initiateCheckout: {
261
+ enabled: true,
262
+ sources: [
263
+ {
264
+ name: 'checkout-loaded',
265
+ type: 'lifecycle',
266
+ trigger: 'ready',
267
+ fireOnce: true,
268
+ },
269
+ ],
270
+ },
271
+ addPaymentInfo: {
272
+ enabled: true,
273
+ sources: [
274
+ {
275
+ name: 'credit-card-detection',
276
+ type: 'payment',
277
+ paymentMethod: 'CREDIT_CARD',
278
+ cardDetection: true,
279
+ autoDispatch: true,
280
+ fireOnce: true,
281
+ },
282
+ ],
283
+ },
200
284
  },
201
285
  };
202
286
  ```
@@ -205,6 +289,66 @@ Detalhes: `PIXEL_V2_COMMERCE_AUTOTRACK_PLAN.md` · playgrounds em `examples/html
205
289
 
206
290
  ---
207
291
 
292
+ ## Hardening 14B
293
+
294
+ Etapa final de hardening antes de testes reais em produção:
295
+
296
+ - **`commerce.enabled`** controla enrichment global — sem `enabled: true`, nenhum evento é enriquecido pelo CommerceResolver
297
+ - **`commerce.enrichment[event]`** controla enriquecimento por evento (`pageView`, `viewContent`, `addToCart`, …)
298
+ - **`FormSource`** respeita `selector` / `formSelector` em todos os triggers (`input`, `change`, `submit`, `click`)
299
+ - **`PaymentSource`** respeita o `formSelector` real do campo de pagamento
300
+ - **API pública** aceita payload opcional onde o cart resolve (ex.: `pixel.initiateCheckout()` sem args)
301
+ - **Docs normalizadas** para rc.3 — removidos resíduos de `commerce.checkout`, `selectedItems`, detector solto
302
+
303
+ ## Fechamento 14C
304
+
305
+ - ADD_TO_CART por FormSource sem `productId` agora usa `commerce.cart.initialItems` (item principal do cart runtime) como fallback quando enrichment permite.
306
+ - Payload manual continua tendo prioridade.
307
+ - Cart fallback respeita `commerce.enabled` e `commerce.enrichment.addToCart.enabled`.
308
+ - Docs limpas de aliases públicos antigos (`CommerceItem`, `CommerceCheckoutMode`, `selected_items` / `event_items` no tipo oficial).
309
+ - Exemplos CDN ajustados para `@rc` / versão fixa (não `@latest`).
310
+
311
+ ---
312
+
313
+ ## Etapa 15A — Core UrlContext
314
+
315
+ Checklist de validação (rc.4 — Production Ready):
316
+
317
+ ```txt
318
+ [x] example-url-context.html — checkout + upsell com link decoration
319
+ [x] example-url-context-landing.html — landing gera sid público na URL
320
+ [x] example-url-context-upsell.html — forward params entre páginas do funil
321
+ [x] example-url-context-allowed-domains.html — allowedDomains restringe decoração
322
+ [x] Eventos carregam query_params quando urlContext enabled
323
+ [x] Eventos carregam url_context.managed / forwarded / source
324
+ [x] sid público na URL ≠ session_id interno do Pixel
325
+ [x] Params da denylist (token, password, cvv) não capturados nem encaminhados
326
+ [x] order_id permitido na URL; token de pagamento não exposto no SDK
327
+ [x] Hardening: hash/relativos, encoding, idempotência, snapshot freeze, destroy
328
+ [x] npm run type-check / npm test / npm run build
329
+ [x] npm pack → beworke-pixel-0.1.0-rc.4.tgz
330
+ [x] npm run validate:rc-package
331
+ [ ] npm publish --tag rc # manual
332
+ [ ] git tag # manual
333
+ ```
334
+
335
+ ---
336
+
337
+ ## Etapa 15B — Validation Matrix (fechamento)
338
+
339
+ ```txt
340
+ [x] PIXEL_V2_VALIDATION_MATRIX.md
341
+ [x] PIXEL_V2_STAGE_15B_REPORT.md
342
+ [x] full-funnel playground (contrato oficial commerce + PaymentMethod)
343
+ [x] validate:15b / module matrix
344
+ [x] docs alinhadas (1–15B concluídas)
345
+ [x] npm run type-check / test / build / smoke / pack / validate:rc-package
346
+ [ ] npm publish --tag rc
347
+ [ ] git tag
348
+ ```
349
+
350
+ ---
351
+
208
352
  ## 8. Smoke real
209
353
 
210
354
  ```bash
@@ -226,31 +370,32 @@ npm run test:smoke:real
226
370
  [x] npm run type-check
227
371
  [x] npm test
228
372
  [x] npm run build
229
- [x] npm run test:smoke:real (skip sem env / ACK com env)
373
+ [x] npm run test:smoke:real
230
374
  [x] npm pack --dry-run
231
- [x] npm pack → agenus-io-pixel-0.0.15.tgz
375
+ [x] npm pack
232
376
  [x] npm run validate:rc-package
233
- [x] dist/v2/global.global.js no tarball
234
- [x] types .d.ts no tarball
235
- [x] sem .env / credenciais no tarball
236
- [ ] npm publish --tag rc # manual, fora da 13B
237
- [ ] git tag # manual, fora da 13B
377
+ [ ] npm publish --tag rc
378
+ [ ] git tag
238
379
  ```
239
380
 
381
+ Evidências: `PIXEL_V2_STAGE_15B_REPORT.md`.
382
+
240
383
  ---
241
384
 
242
385
  ## 10. Pendências conhecidas (não bloqueiam RC)
243
386
 
244
- **P1:** PrivacyModule/Consent · Behavior P1 · debug snapshot · limpeza CommerceState pós-purchase · docs públicas
387
+ **P1 (Runtime):** Heartbeat (17) ✅ · Viewport (18) ✅ · Engagement (19) ✅ · Runtime Intelligence (20) ✅ · Commerce lifecycle (21) · Event contract · Attribution bridge · Observabilidade
388
+
389
+ **P2:** destinations extras · CAPI/server-side (**backend**, não SDK) · sampling
245
390
 
246
- **P2:** destinations extras · CAPI/server-side (**backend**, não SDK) · sampling · observabilidade
391
+ **Public SDK Hardening (25):** Privacy Module · Consent Gate · CMP · GDPR / LGPD / CCPA — **não** bloqueiam 1.0 interna
247
392
 
248
393
  ---
249
394
 
250
- ## 11. Fora do SDK
395
+ ## 11. Fora do Runtime 1.0 interno
251
396
 
252
397
  ```txt
253
398
  CAPI / enrichments server-side
254
- Consent gate completo (PrivacyModule ainda stub)
399
+ Public SDK Hardening (Privacy / Consent / CMP / GDPR / LGPD / CCPA)
255
400
  Publicação automática npm / CDN
256
401
  ```
@@ -1,5 +1,5 @@
1
- import { V as VisitorStoragePersistence, S as SessionStoragePersistence, A as AttributionStoragePersistence, Q as QueueStoragePersistence } from './pixel-CbeF25mD.mjs';
2
- import { S as StorageAdapter } from './types-DGlBdsAy.mjs';
1
+ import { V as VisitorStoragePersistence, S as SessionStoragePersistence, A as AttributionStoragePersistence, Q as QueueStoragePersistence } from './pixel-CKc4OQUx.mjs';
2
+ import { S as StorageAdapter } from './index-JlKPz4pp.mjs';
3
3
 
4
4
  type StoragePersistence = VisitorStoragePersistence | SessionStoragePersistence | AttributionStoragePersistence | QueueStoragePersistence;
5
5
  declare function createStorageAdapter(persistence?: StoragePersistence): StorageAdapter;
@@ -1,5 +1,5 @@
1
- import { V as VisitorStoragePersistence, S as SessionStoragePersistence, A as AttributionStoragePersistence, Q as QueueStoragePersistence } from './pixel-CbeF25mD.js';
2
- import { S as StorageAdapter } from './types-CTpRvFKZ.js';
1
+ import { V as VisitorStoragePersistence, S as SessionStoragePersistence, A as AttributionStoragePersistence, Q as QueueStoragePersistence } from './pixel-BxZZx8l5.js';
2
+ import { S as StorageAdapter } from './index-CQAyT5Od.js';
3
3
 
4
4
  type StoragePersistence = VisitorStoragePersistence | SessionStoragePersistence | AttributionStoragePersistence | QueueStoragePersistence;
5
5
  declare function createStorageAdapter(persistence?: StoragePersistence): StorageAdapter;
@@ -1,3 +1,3 @@
1
1
  /* Pixel v2 — SDK de analytics e conversão */
2
- "use strict";var m=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var _=Object.prototype.hasOwnProperty;var E=(e,t)=>{for(var o in t)m(e,o,{get:t[o],enumerable:!0})},I=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of T(t))!_.call(e,n)&&n!==o&&m(e,n,{get:()=>t[n],enumerable:!(r=b(t,n))||r.enumerable});return e};var h=e=>I(m({},"__esModule",{value:!0}),e);var F={};E(F,{DEFAULT_ATTRIBUTION_CONFIG:()=>a,DEFAULT_BEHAVIOR_MODULE_CONFIG:()=>l,DEFAULT_COMMERCE_CONFIG:()=>g,DEFAULT_CONVERSION_MODULE_CONFIG:()=>s,DEFAULT_CORE_MODULE_CONFIG:()=>u,DEFAULT_INTEGRATIONS_MODULE_CONFIG:()=>c,DEFAULT_PIXEL_CONFIG:()=>y,DEFAULT_PRIVACY_MODULE_CONFIG:()=>p,DEFAULT_SELECTOR_TYPE:()=>f,DEFAULT_TRANSPORT_MODULE_CONFIG:()=>d,getPrimarySelectorValue:()=>i,resolveSelectorTypeFallback:()=>C});module.exports=h(F);var f="css";function i(e){if(e==null)return null;if(typeof e=="string"){let o=e.trim();return o.length>0?o:null}if(Array.isArray(e)){for(let o of e){let r=i(o);if(r)return r}return null}let t=e.value?.trim();return t&&t.length>0?t:null}function C(e,t){if(t)return t;if(e!=null&&typeof e!="string")if(Array.isArray(e)){for(let o of e)if(typeof o!="string")return o.type}else return e.type;return"css"}var g={catalog:{products:[]},checkout:{selectedItems:[],allowDynamicItems:!0,calculateValueFrom:"selected_items"},mappings:{attributes:{},fields:{}}};var a={enabled:!0,ttlDays:90,persist:!0,captureUrlParams:!0,captureCookies:!0,customClickIdParams:[]};var l={enabled:!1,trackers:{scroll:{enabled:!1,thresholds:[25,50,75,100],debounceMs:100},click:{enabled:!1,rageClick:{enabled:!0,threshold:3,windowMs:500}},idle:{enabled:!1,thresholdMs:6e4},visibility:{enabled:!1},exitIntent:{enabled:!1},viewport:{enabled:!1,selector:"",selectorType:"attribute",visibilityThreshold:.5},heartbeat:{enabled:!1,intervalMs:5e3,hiddenIntervalMs:3e4},engagement:{enabled:!1,weights:{scroll:.3,click:.3,time:.25},thresholds:{low:30,medium:70}}}};var s={enabled:!1,commerce:{catalog:{products:[]},checkout:{selectedItems:[],allowDynamicItems:!0,calculateValueFrom:"selected_items"},mappings:{attributes:{},fields:{}}},manual:{pageView:{enabled:!1},purchase:{enabled:!1},lead:{enabled:!1},addToCart:{enabled:!1},removeFromCart:{enabled:!1},initiateCheckout:{enabled:!1},addPaymentInfo:{enabled:!1},search:{enabled:!1},viewContent:{enabled:!1}},auto:{enabled:!1,detectors:{lead:{enabled:!1},purchase:{enabled:!1},addToCart:{enabled:!1},removeFromCart:{enabled:!1},initiateCheckout:{enabled:!1},addPaymentInfo:{enabled:!1,paymentMethod:"CREDIT_CARD",cardDetection:!0,autoDispatch:!0},search:{enabled:!1},viewContent:{enabled:!1}}},rules:{enabled:!1,selectors:["[data-track]"],texts:["Comprar","Comprar Agora","Finalizar Compra","Checkout"],urlPatterns:["thank-you","purchase","success","order","checkout"],checkout:{enabled:!1},card:{enabled:!1}}};var u={enabled:!0,pageView:{enabled:!0,trackInitialPageView:!0,spa:!0,dedupeMs:2e3},visitor:{enabled:!0,persistence:"cookie_localStorage",renew:!1},session:{enabled:!0,ttlMs:108e5,renewOnActivity:!0,renewOnPageView:!0},fingerprint:{enabled:!0,mode:"light",cache:!0},consent:{enabled:!1,required:!1,waitForConsent:!1},dedupe:{enabled:!0,windowMs:2e3},coordination:{enabled:!0,leaderElection:!0,broadcastChannel:!0},ordering:{enabled:!0,preserveOrder:!0}};var c={enabled:!1,debug:!1,concurrency:3,timeoutMs:5e3,continueOnError:!0,destinations:{console:{enabled:!1},memory:{enabled:!1},mock:{enabled:!1},meta:{enabled:!1,pixelIds:[],autoPageView:!0,loadScript:!0},google:{enabled:!1,tagIds:[],autoPageView:!0,loadScript:!0},tiktok:{enabled:!1,pixelIds:[],autoPageView:!0,loadScript:!0}}};var p={enabled:!1,consent:{enabled:!1,required:!1},pii:{enabled:!1,hashEmail:!0,hashPhone:!0},anonymization:{enabled:!1,anonymizeIp:!0}};var d={enabled:!1,mockSender:{enabled:!0},sender:{mode:"mock"},persistence:{enabled:!0},replay:{enabled:!0},ordering:{enabled:!0},coordination:{enabled:!0},circuitBreaker:{enabled:!0,failureThreshold:5,resetTimeoutMs:3e4,halfOpenMaxAttempts:2},backpressure:{enabled:!0,maxQueueSize:500,policy:"drop_oldest",sampleRate:.5},deadLetter:{enabled:!0,maxEntries:200},compression:{enabled:!0,strategy:"identity"},retry:{enabled:!0,maxAttempts:4,baseDelayMs:500,maxDelayMs:4e3,multiplier:2},batch:{enabled:!0,batchSize:10,flushIntervalMs:2e3,maxWaitMs:5e3},timeout:{enabled:!0,timeoutMs:1e4},offline:{enabled:!0},flush:{enabled:!0,flushIntervalMs:2e3,flushOnDestroy:!0,prepareUnloadHooks:!0}};var y={app:{source:"custom",target:"custom",environment:"production",debug:!1},identity:{pixelId:""},transport:{apiEndpoint:"",timeoutMs:1e4},storage:{prefix:"__gmk",namespace:"pixel",queue:{enabled:!0,persistence:"memory",index:!0}},attribution:{...a},modules:{core:u,behavior:l,conversion:s,transport:d,integrations:c,privacy:p}};0&&(module.exports={DEFAULT_ATTRIBUTION_CONFIG,DEFAULT_BEHAVIOR_MODULE_CONFIG,DEFAULT_COMMERCE_CONFIG,DEFAULT_CONVERSION_MODULE_CONFIG,DEFAULT_CORE_MODULE_CONFIG,DEFAULT_INTEGRATIONS_MODULE_CONFIG,DEFAULT_PIXEL_CONFIG,DEFAULT_PRIVACY_MODULE_CONFIG,DEFAULT_SELECTOR_TYPE,DEFAULT_TRANSPORT_MODULE_CONFIG,getPrimarySelectorValue,resolveSelectorTypeFallback});
2
+ "use strict";var g=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var S=(e,t)=>{for(var r in t)g(e,r,{get:t[r],enumerable:!0})},x=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of h(t))!M.call(e,i)&&i!==r&&g(e,i,{get:()=>t[i],enumerable:!(a=T(t,i))||a.enumerable});return e};var I=e=>x(g({},"__esModule",{value:!0}),e);var F={};S(F,{DEFAULT_ATTRIBUTION_CONFIG:()=>c,DEFAULT_BEHAVIOR_MODULE_CONFIG:()=>m,DEFAULT_COMMERCE_CONFIG:()=>n,DEFAULT_COMMERCE_ENRICHMENT:()=>s,DEFAULT_CONVERSION_MODULE_CONFIG:()=>u,DEFAULT_CORE_MODULE_CONFIG:()=>C,DEFAULT_INTEGRATIONS_MODULE_CONFIG:()=>p,DEFAULT_PIXEL_CONFIG:()=>_,DEFAULT_PRIVACY_MODULE_CONFIG:()=>d,DEFAULT_SELECTOR_TYPE:()=>y,DEFAULT_TRANSPORT_MODULE_CONFIG:()=>f,getPrimarySelectorValue:()=>l,normalizeCalculateValueFrom:()=>b,resolveSelectorTypeFallback:()=>E});module.exports=I(F);var y="css";function l(e){if(e==null)return null;if(typeof e=="string"){let r=e.trim();return r.length>0?r:null}if(Array.isArray(e)){for(let r of e){let a=l(r);if(a)return a}return null}let t=e.value?.trim();return t&&t.length>0?t:null}function E(e,t){if(t)return t;if(e!=null&&typeof e!="string")if(Array.isArray(e)){for(let r of e)if(typeof r!="string")return r.type}else return e.type;return"css"}var s={pageView:{enabled:!1,source:"cart"},viewContent:{enabled:!0,source:"event_or_cart"},lead:{enabled:!1,source:"event_or_cart"},addToCart:{enabled:!0,source:"event_or_cart"},removeFromCart:{enabled:!0,source:"event_or_cart"},initiateCheckout:{enabled:!0,source:"cart"},addPaymentInfo:{enabled:!0,source:"cart"},purchase:{enabled:!0,source:"cart"}},n={enabled:!1,currency:"BRL",catalog:{products:[]},cart:{mode:"custom",initialItems:[],allowDynamicItems:!0,calculateValueFrom:"cart"},mappings:{attributes:{},fields:{}},enrichment:{...s}};function b(e){switch(e){case"event":case"event_items":return"event";case"manual":return"manual";case"catalog":return"catalog";case"cart":case"selected_items":default:return"cart"}}var c={enabled:!0,ttlDays:90,persist:!0,captureUrlParams:!0,captureCookies:!0,customClickIdParams:[]};var m={enabled:!1,heartbeat:{enabled:!1,intervalMs:15e3,hiddenIntervalMs:6e4,emitWhenHidden:!1,emitWhenIdle:!0,includeSnapshot:!0,fireImmediately:!1},engagement:{enabled:!1,evaluationIntervalMs:5e3,emitOnChange:!0,minScoreDelta:5,emitSummaryOnDestroy:!0,weights:{activeTime:.25,scroll:.2,click:.15,viewport:.2,visibility:.1,heartbeat:.1},penalties:{idle:.2,rageClick:.1},thresholds:{lowMax:29,mediumMax:69}},rateLimit:{enabled:!1,windowMs:1e3,maxSignalsPerWindow:50,criticalBypass:!0},buffer:{enabled:!1,maxSize:200,maxAgeMs:3e4,flushSize:50,dropStrategy:"compress_similar",flushOnHidden:!0},stateMachine:{enabled:!1,historyLimit:50},sessionSummary:{enabled:!1,emitOnHidden:!1,emitOnDestroy:!0,minimumSessionMs:0},trackers:{scroll:{enabled:!1,thresholds:[25,50,75,100],debounceMs:100},click:{enabled:!1,rageClick:{enabled:!0,threshold:3,windowMs:500}},idle:{enabled:!1,thresholdMs:6e4},visibility:{enabled:!1},exitIntent:{enabled:!1},viewport:{enabled:!1,targets:[],rootMargin:"0px",observeMutations:!0,mutationDebounceMs:100,maxObservedElements:500}}};var o={enabled:!1,sources:[]},u={enabled:!1,manual:{pageView:{enabled:!1},purchase:{enabled:!1},lead:{enabled:!1},addToCart:{enabled:!1},removeFromCart:{enabled:!1},initiateCheckout:{enabled:!1},addPaymentInfo:{enabled:!1},search:{enabled:!1},viewContent:{enabled:!1}},auto:{enabled:!1,detectors:{lead:{...o,sources:[]},addToCart:{...o,sources:[]},removeFromCart:{...o,sources:[]},initiateCheckout:{...o,sources:[]},purchase:{...o,sources:[]},addPaymentInfo:{...o,sources:[]},search:{...o,sources:[]},viewContent:{...o,sources:[]}}},rules:{enabled:!1,selectors:["[data-track]"],texts:["Comprar","Comprar Agora","Finalizar Compra","Checkout"],urlPatterns:["thank-you","purchase","success","order","checkout"],checkout:{enabled:!1},card:{enabled:!1}}};var C={enabled:!0,pageView:{enabled:!0,trackInitialPageView:!0,spa:!0,dedupeMs:2e3},visitor:{enabled:!0,persistence:"cookie_localStorage",renew:!1},session:{enabled:!0,ttlMs:108e5,renewOnActivity:!0,renewOnPageView:!0},fingerprint:{enabled:!0,mode:"light",cache:!0},consent:{enabled:!1,required:!1,waitForConsent:!1},dedupe:{enabled:!0,windowMs:2e3},coordination:{enabled:!0,leaderElection:!0,broadcastChannel:!0},ordering:{enabled:!0,preserveOrder:!0},urlContext:{enabled:!1}};var p={enabled:!1,debug:!1,concurrency:3,timeoutMs:5e3,continueOnError:!0,destinations:{console:{enabled:!1},memory:{enabled:!1},mock:{enabled:!1},meta:{enabled:!1,pixelIds:[],autoPageView:!0,loadScript:!0},google:{enabled:!1,tagIds:[],autoPageView:!0,loadScript:!0},tiktok:{enabled:!1,pixelIds:[],autoPageView:!0,loadScript:!0}}};var d={enabled:!1,consent:{enabled:!1,required:!1},pii:{enabled:!1,hashEmail:!0,hashPhone:!0},anonymization:{enabled:!1,anonymizeIp:!0}};var f={enabled:!1,mockSender:{enabled:!0},sender:{mode:"mock"},persistence:{enabled:!0},replay:{enabled:!0},ordering:{enabled:!0},coordination:{enabled:!0},circuitBreaker:{enabled:!0,failureThreshold:5,resetTimeoutMs:3e4,halfOpenMaxAttempts:2},backpressure:{enabled:!0,maxQueueSize:500,policy:"drop_oldest",sampleRate:.5},deadLetter:{enabled:!0,maxEntries:200},compression:{enabled:!0,strategy:"identity"},retry:{enabled:!0,maxAttempts:4,baseDelayMs:500,maxDelayMs:4e3,multiplier:2},batch:{enabled:!0,batchSize:10,flushIntervalMs:2e3,maxWaitMs:5e3},timeout:{enabled:!0,timeoutMs:1e4},offline:{enabled:!0},flush:{enabled:!0,flushIntervalMs:2e3,flushOnDestroy:!0,prepareUnloadHooks:!0}};var _={app:{source:"custom",target:"custom",environment:"production",debug:!1},identity:{pixelId:""},transport:{apiEndpoint:"",timeoutMs:1e4},storage:{prefix:"__gmk",namespace:"pixel",queue:{enabled:!0,persistence:"memory",index:!0}},attribution:{...c},commerce:{...n,catalog:{products:[]},cart:{mode:"custom",initialItems:[],allowDynamicItems:!0,calculateValueFrom:"cart"},mappings:{attributes:{},fields:{}},enrichment:{...n.enrichment}},modules:{core:C,behavior:m,conversion:u,transport:f,integrations:p,privacy:d}};0&&(module.exports={DEFAULT_ATTRIBUTION_CONFIG,DEFAULT_BEHAVIOR_MODULE_CONFIG,DEFAULT_COMMERCE_CONFIG,DEFAULT_COMMERCE_ENRICHMENT,DEFAULT_CONVERSION_MODULE_CONFIG,DEFAULT_CORE_MODULE_CONFIG,DEFAULT_INTEGRATIONS_MODULE_CONFIG,DEFAULT_PIXEL_CONFIG,DEFAULT_PRIVACY_MODULE_CONFIG,DEFAULT_SELECTOR_TYPE,DEFAULT_TRANSPORT_MODULE_CONFIG,getPrimarySelectorValue,normalizeCalculateValueFrom,resolveSelectorTypeFallback});
3
3
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/config/index.ts","../../src/config/shared/selector.ts","../../src/config/shared/commerce.ts","../../src/config/defaults/attribution.ts","../../src/config/defaults/modules/behavior.ts","../../src/config/defaults/modules/conversion.ts","../../src/config/defaults/modules/core.ts","../../src/config/defaults/modules/integrations.ts","../../src/config/defaults/modules/privacy.ts","../../src/config/defaults/modules/transport.ts","../../src/config/defaults/pixel-default-config.ts"],"sourcesContent":["export type {\n AppConfig,\n PixelEnvironment,\n PixelSource,\n PixelTarget,\n} from './types/app';\nexport type { IdentityConfig } from './types/identity';\nexport type { AttributionConfig } from './types/attribution';\nexport type { TransportConfig } from './types/transport';\nexport type {\n AttributionStoragePersistence,\n QueueStoragePersistence,\n SessionStoragePersistence,\n StorageConfig,\n StorageKeysConfig,\n VisitorStoragePersistence,\n} from './types/storage';\nexport type {\n EngagementThresholds,\n EngagementWeights,\n FingerprintMode,\n PaymentMethod,\n SelectorConfig,\n SelectorDescriptor,\n SelectorInput,\n SelectorType,\n SelectorFormConfig,\n SelectorFormMode,\n SelectorFormTrigger,\n CommerceCalculateValueFrom,\n CommerceCheckoutMode,\n CommerceConfig,\n CommerceItem,\n CommerceProduct,\n ProductType,\n} from './shared';\nexport {\n DEFAULT_SELECTOR_TYPE,\n DEFAULT_COMMERCE_CONFIG,\n getPrimarySelectorValue,\n resolveSelectorTypeFallback,\n} from './shared';\nexport type {\n AddPaymentInfoAutoDetectorConfig,\n AddToCartAutoDetectorConfig,\n AnonymizationConfig,\n AutoConversionConfig,\n BehaviorModuleConfig,\n ClickBehaviorConfig,\n ConfiguredAutoDetectorConfig,\n ConsentConfig,\n ConversionModuleConfig,\n ConversionRulesConfig,\n CoordinationConfig,\n CoreModuleConfig,\n DedupeConfig,\n EngagementBehaviorConfig,\n ExitIntentBehaviorConfig,\n FingerprintConfig,\n FormCapableAutoDetectorConfig,\n GoogleBrowserDestinationConfig,\n GoogleIntegrationConfig,\n HeartbeatBehaviorConfig,\n IdleBehaviorConfig,\n InitiateCheckoutAutoDetectorConfig,\n IntegrationTestDestinationConfig,\n IntegrationsModuleConfig,\n LeadAutoDetectorConfig,\n ManualConversionConfig,\n ManualEventConfig,\n MetaBrowserDestinationConfig,\n MetaIntegrationConfig,\n ModulesConfig,\n TikTokBrowserDestinationConfig,\n OrderingConfig,\n PageViewConfig,\n PiiConfig,\n PrivacyConsentConfig,\n PrivacyModuleConfig,\n PurchaseAutoDetectorConfig,\n RemoveFromCartAutoDetectorConfig,\n ScrollBehaviorConfig,\n SearchAutoDetectorConfig,\n SessionConfig,\n TransportModuleConfig,\n TransportBatchConfig,\n TransportFlushConfig,\n TransportOfflineConfig,\n TransportRetryConfig,\n TransportTimeoutConfig,\n ViewContentAutoDetectorConfig,\n ViewportBehaviorConfig,\n VisibilityBehaviorConfig,\n VisitorConfig,\n} from './types/modules';\nexport type { PixelConfig } from './types/pixel';\n\nexport { DEFAULT_PIXEL_CONFIG } from './defaults/pixel-default-config';\nexport { DEFAULT_ATTRIBUTION_CONFIG } from './defaults/attribution';\nexport { DEFAULT_BEHAVIOR_MODULE_CONFIG } from './defaults/modules/behavior';\nexport { DEFAULT_CONVERSION_MODULE_CONFIG } from './defaults/modules/conversion';\nexport { DEFAULT_CORE_MODULE_CONFIG } from './defaults/modules/core';\nexport { DEFAULT_INTEGRATIONS_MODULE_CONFIG } from './defaults/modules/integrations';\nexport { DEFAULT_PRIVACY_MODULE_CONFIG } from './defaults/modules/privacy';\nexport { DEFAULT_TRANSPORT_MODULE_CONFIG } from './defaults/modules/transport';\n","/**\n * Tipo padrão/fallback para interpretar selectors string sem prefixo.\n *\n * Ordem de resolução (`SelectorResolver`):\n * 1. Objeto → selector.type\n * 2. String com prefixo (css:, id:, class:, attr:, attribute:, text:) → prefixo\n * 3. String sem prefixo → selectorType\n * 4. Sem selectorType → css (DEFAULT_SELECTOR_TYPE)\n */\nexport type SelectorType = 'css' | 'id' | 'class' | 'attribute' | 'text';\n\n/** Fallback quando `selectorType` é omitido. */\nexport const DEFAULT_SELECTOR_TYPE: SelectorType = 'css';\n\n/**\n * Forma avançada de um seletor individual.\n * `exact` / `caseSensitive` aplicam-se principalmente a `type: 'text'`.\n * `closest` restringe a busca a um ancestral CSS (resolvido na etapa do Resolver).\n */\nexport type SelectorDescriptor = {\n type: SelectorType;\n value: string;\n exact?: boolean;\n caseSensitive?: boolean;\n closest?: string;\n};\n\n/** Um seletor: string simples/prefixada ou descritor tipado. */\nexport type SelectorInput = string | SelectorDescriptor;\n\n/** Um ou vários seletores (OR — qualquer match dispara). */\nexport type SelectorConfig = SelectorInput | SelectorInput[];\n\n/**\n * Extrai o valor primário de um `SelectorConfig` (utilitário de config).\n * Para match/query no DOM, use `SelectorResolver`.\n */\nexport function getPrimarySelectorValue(\n selector: SelectorConfig | undefined\n): string | null {\n if (selector == null) return null;\n\n if (typeof selector === 'string') {\n const trimmed = selector.trim();\n return trimmed.length > 0 ? trimmed : null;\n }\n\n if (Array.isArray(selector)) {\n for (const item of selector) {\n const value = getPrimarySelectorValue(item);\n if (value) return value;\n }\n return null;\n }\n\n const value = selector.value?.trim();\n return value && value.length > 0 ? value : null;\n}\n\n/**\n * Resolve o `selectorType` efetivo: config explícita → tipo do descriptor → css.\n */\nexport function resolveSelectorTypeFallback(\n selector: SelectorConfig | undefined,\n selectorType?: SelectorType\n): SelectorType {\n if (selectorType) return selectorType;\n\n if (selector != null && typeof selector !== 'string') {\n if (Array.isArray(selector)) {\n for (const item of selector) {\n if (typeof item !== 'string') return item.type;\n }\n } else {\n return selector.type;\n }\n }\n\n return DEFAULT_SELECTOR_TYPE;\n}","/**\n * Contratos globais de commerce (catálogo, checkout inicial, mappings).\n * Vivem em `conversion.commerce`, fora de `auto`.\n * Runtime: ProductCatalog + CommerceState + Extractors +\n * CommerceResolver + OrderCalculator (Etapas 12C–12F).\n */\n\nexport type ProductType =\n | 'main'\n | 'order_bump'\n | 'upsell'\n | 'downsell'\n | 'cross_sell'\n | 'addon'\n | 'subscription'\n | 'custom';\n\nexport type CommerceProduct = {\n id: string;\n name?: string;\n sku?: string;\n type?: ProductType;\n price?: number;\n currency?: string;\n quantity?: number;\n category?: string;\n variant?: string;\n brand?: string;\n metadata?: Record<string, unknown>;\n};\n\nexport type CommerceItem = {\n productId: string;\n quantity?: number;\n price?: number;\n currency?: string;\n selected?: boolean;\n metadata?: Record<string, unknown>;\n};\n\nexport type CommerceCheckoutMode =\n | 'single_product'\n | 'multi_product'\n | 'cart'\n | 'funnel';\n\nexport type CommerceCalculateValueFrom =\n | 'selected_items'\n | 'event_items'\n | 'manual';\n\nexport type CommerceConfig = {\n currency?: string;\n\n catalog?: {\n products?: CommerceProduct[];\n };\n\n checkout?: {\n mode?: CommerceCheckoutMode;\n selectedItems?: CommerceItem[];\n calculateValueFrom?: CommerceCalculateValueFrom;\n allowDynamicItems?: boolean;\n };\n\n mappings?: {\n attributes?: Record<string, string[]>;\n fields?: Record<string, string[]>;\n };\n};\n\n/** Default seguro: sem produtos, sem itens, sem auto-disparo implícito. */\nexport const DEFAULT_COMMERCE_CONFIG: CommerceConfig = {\n catalog: {\n products: [],\n },\n checkout: {\n selectedItems: [],\n allowDynamicItems: true,\n calculateValueFrom: 'selected_items',\n },\n mappings: {\n attributes: {},\n fields: {},\n },\n};\n","import type { AttributionConfig } from '../types/attribution';\n\nexport const DEFAULT_ATTRIBUTION_CONFIG: AttributionConfig = {\n enabled: true,\n ttlDays: 90,\n persist: true,\n captureUrlParams: true,\n captureCookies: true,\n customClickIdParams: [],\n};\n","import type { BehaviorModuleConfig } from '../../types/modules/behavior';\n\nexport const DEFAULT_BEHAVIOR_MODULE_CONFIG: BehaviorModuleConfig = {\n enabled: false,\n\n trackers: {\n scroll: {\n enabled: false,\n thresholds: [25, 50, 75, 100],\n debounceMs: 100,\n },\n\n click: {\n enabled: false,\n rageClick: {\n enabled: true,\n threshold: 3,\n windowMs: 500,\n },\n },\n\n idle: {\n enabled: false,\n thresholdMs: 60_000,\n },\n\n visibility: {\n enabled: false,\n },\n\n exitIntent: {\n enabled: false,\n },\n\n viewport: {\n enabled: false,\n selector: '',\n selectorType: 'attribute',\n visibilityThreshold: 0.5,\n },\n\n heartbeat: {\n enabled: false,\n intervalMs: 5_000,\n hiddenIntervalMs: 30_000,\n },\n\n engagement: {\n enabled: false,\n weights: {\n scroll: 0.3,\n click: 0.3,\n time: 0.25,\n },\n thresholds: {\n low: 30,\n medium: 70,\n },\n },\n },\n};\n","import type { ConversionModuleConfig } from '../../types/modules/conversion';\n\nexport const DEFAULT_CONVERSION_MODULE_CONFIG: ConversionModuleConfig = {\n enabled: false,\n\n commerce: {\n catalog: {\n products: [],\n },\n checkout: {\n selectedItems: [],\n allowDynamicItems: true,\n calculateValueFrom: 'selected_items',\n },\n mappings: {\n attributes: {},\n fields: {},\n },\n },\n\n manual: {\n pageView: {\n enabled: false,\n },\n purchase: {\n enabled: false,\n },\n lead: {\n enabled: false,\n },\n addToCart: {\n enabled: false,\n },\n removeFromCart: {\n enabled: false,\n },\n initiateCheckout: {\n enabled: false,\n },\n addPaymentInfo: {\n enabled: false,\n },\n search: {\n enabled: false,\n },\n viewContent: {\n enabled: false,\n },\n },\n\n auto: {\n enabled: false,\n\n detectors: {\n lead: {\n enabled: false,\n },\n purchase: {\n enabled: false,\n },\n addToCart: {\n enabled: false,\n },\n removeFromCart: {\n enabled: false,\n },\n initiateCheckout: {\n enabled: false,\n },\n addPaymentInfo: {\n enabled: false,\n paymentMethod: 'CREDIT_CARD',\n cardDetection: true,\n autoDispatch: true,\n },\n search: {\n enabled: false,\n },\n viewContent: {\n enabled: false,\n },\n },\n },\n\n rules: {\n enabled: false,\n selectors: ['[data-track]'],\n texts: ['Comprar', 'Comprar Agora', 'Finalizar Compra', 'Checkout'],\n urlPatterns: ['thank-you', 'purchase', 'success', 'order', 'checkout'],\n checkout: {\n enabled: false,\n },\n card: {\n enabled: false,\n },\n },\n};\n","import type { CoreModuleConfig } from '../../types/modules/core';\n\nexport const DEFAULT_CORE_MODULE_CONFIG: CoreModuleConfig = {\n enabled: true,\n\n pageView: {\n enabled: true,\n trackInitialPageView: true,\n spa: true,\n dedupeMs: 2000,\n },\n\n visitor: {\n enabled: true,\n persistence: 'cookie_localStorage',\n renew: false,\n },\n\n session: {\n enabled: true,\n ttlMs: 10800000,\n renewOnActivity: true,\n renewOnPageView: true,\n },\n\n fingerprint: {\n enabled: true,\n mode: 'light',\n cache: true,\n },\n\n consent: {\n enabled: false,\n required: false,\n waitForConsent: false,\n },\n\n dedupe: {\n enabled: true,\n windowMs: 2000,\n },\n\n coordination: {\n enabled: true,\n leaderElection: true,\n broadcastChannel: true,\n },\n\n ordering: {\n enabled: true,\n preserveOrder: true,\n },\n};\n","import type { IntegrationsModuleConfig } from '../../types/modules/integrations';\n\nexport const DEFAULT_INTEGRATIONS_MODULE_CONFIG: IntegrationsModuleConfig = {\n enabled: false,\n debug: false,\n concurrency: 3,\n timeoutMs: 5000,\n continueOnError: true,\n\n destinations: {\n console: { enabled: false },\n memory: { enabled: false },\n mock: { enabled: false },\n meta: {\n enabled: false,\n pixelIds: [],\n autoPageView: true,\n loadScript: true,\n },\n google: {\n enabled: false,\n tagIds: [],\n autoPageView: true,\n loadScript: true,\n },\n tiktok: {\n enabled: false,\n pixelIds: [],\n autoPageView: true,\n loadScript: true,\n },\n },\n};\n","import type { PrivacyModuleConfig } from '../../types/modules/privacy';\n\nexport const DEFAULT_PRIVACY_MODULE_CONFIG: PrivacyModuleConfig = {\n enabled: false,\n\n consent: {\n enabled: false,\n required: false,\n },\n\n pii: {\n enabled: false,\n hashEmail: true,\n hashPhone: true,\n },\n\n anonymization: {\n enabled: false,\n anonymizeIp: true,\n },\n};\n","import type { TransportModuleConfig } from '../../types/modules/transport';\n\nexport const DEFAULT_TRANSPORT_MODULE_CONFIG: TransportModuleConfig = {\n enabled: false,\n\n mockSender: {\n enabled: true,\n },\n\n sender: {\n mode: 'mock',\n },\n\n persistence: {\n enabled: true,\n },\n\n replay: {\n enabled: true,\n },\n\n ordering: {\n enabled: true,\n },\n\n coordination: {\n enabled: true,\n },\n\n circuitBreaker: {\n enabled: true,\n failureThreshold: 5,\n resetTimeoutMs: 30_000,\n halfOpenMaxAttempts: 2,\n },\n\n backpressure: {\n enabled: true,\n maxQueueSize: 500,\n policy: 'drop_oldest',\n sampleRate: 0.5,\n },\n\n deadLetter: {\n enabled: true,\n maxEntries: 200,\n },\n\n compression: {\n enabled: true,\n strategy: 'identity',\n },\n\n retry: {\n enabled: true,\n maxAttempts: 4,\n baseDelayMs: 500,\n maxDelayMs: 4000,\n multiplier: 2,\n },\n\n batch: {\n enabled: true,\n batchSize: 10,\n flushIntervalMs: 2000,\n maxWaitMs: 5000,\n },\n\n timeout: {\n enabled: true,\n timeoutMs: 10000,\n },\n\n offline: {\n enabled: true,\n },\n\n flush: {\n enabled: true,\n flushIntervalMs: 2000,\n flushOnDestroy: true,\n prepareUnloadHooks: true,\n },\n};\n","import type { PixelConfig } from '../types/pixel';\nimport { DEFAULT_ATTRIBUTION_CONFIG } from './attribution';\nimport { DEFAULT_BEHAVIOR_MODULE_CONFIG } from './modules/behavior';\nimport { DEFAULT_CONVERSION_MODULE_CONFIG } from './modules/conversion';\nimport { DEFAULT_CORE_MODULE_CONFIG } from './modules/core';\nimport { DEFAULT_INTEGRATIONS_MODULE_CONFIG } from './modules/integrations';\nimport { DEFAULT_PRIVACY_MODULE_CONFIG } from './modules/privacy';\nimport { DEFAULT_TRANSPORT_MODULE_CONFIG } from './modules/transport';\n\nexport const DEFAULT_PIXEL_CONFIG: PixelConfig = {\n app: {\n source: 'custom',\n target: 'custom',\n environment: 'production',\n debug: false,\n },\n\n identity: {\n pixelId: '',\n },\n\n transport: {\n apiEndpoint: '',\n timeoutMs: 10000,\n },\n\n storage: {\n prefix: '__gmk',\n namespace: 'pixel',\n\n queue: {\n enabled: true,\n persistence: 'memory',\n index: true,\n },\n },\n\n attribution: { ...DEFAULT_ATTRIBUTION_CONFIG },\n\n modules: {\n core: DEFAULT_CORE_MODULE_CONFIG,\n behavior: DEFAULT_BEHAVIOR_MODULE_CONFIG,\n conversion: DEFAULT_CONVERSION_MODULE_CONFIG,\n transport: DEFAULT_TRANSPORT_MODULE_CONFIG,\n integrations: DEFAULT_INTEGRATIONS_MODULE_CONFIG,\n privacy: DEFAULT_PRIVACY_MODULE_CONFIG,\n },\n};\n"],"mappings":";yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,gCAAAE,EAAA,mCAAAC,EAAA,4BAAAC,EAAA,qCAAAC,EAAA,+BAAAC,EAAA,uCAAAC,EAAA,yBAAAC,EAAA,kCAAAC,EAAA,0BAAAC,EAAA,oCAAAC,EAAA,4BAAAC,EAAA,gCAAAC,IAAA,eAAAC,EAAAd,GCYO,IAAMe,EAAsC,MAyB5C,SAASC,EACdC,EACe,CACf,GAAIA,GAAY,KAAM,OAAO,KAE7B,GAAI,OAAOA,GAAa,SAAU,CAChC,IAAMC,EAAUD,EAAS,KAAK,EAC9B,OAAOC,EAAQ,OAAS,EAAIA,EAAU,IACxC,CAEA,GAAI,MAAM,QAAQD,CAAQ,EAAG,CAC3B,QAAWE,KAAQF,EAAU,CAC3B,IAAMG,EAAQJ,EAAwBG,CAAI,EAC1C,GAAIC,EAAO,OAAOA,CACpB,CACA,OAAO,IACT,CAEA,IAAMA,EAAQH,EAAS,OAAO,KAAK,EACnC,OAAOG,GAASA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A,MAAO,CACL,QAAS,GACT,gBAAiB,IACjB,eAAgB,GAChB,mBAAoB,EACtB,CACF,EC1EO,IAAMC,EAAoC,CAC/C,IAAK,CACH,OAAQ,SACR,OAAQ,SACR,YAAa,aACb,MAAO,EACT,EAEA,SAAU,CACR,QAAS,EACX,EAEA,UAAW,CACT,YAAa,GACb,UAAW,GACb,EAEA,QAAS,CACP,OAAQ,QACR,UAAW,QAEX,MAAO,CACL,QAAS,GACT,YAAa,SACb,MAAO,EACT,CACF,EAEA,YAAa,CAAE,GAAGC,CAA2B,EAE7C,QAAS,CACP,KAAMC,EACN,SAAUC,EACV,WAAYC,EACZ,UAAWC,EACX,aAAcC,EACd,QAASC,CACX,CACF","names":["config_exports","__export","DEFAULT_ATTRIBUTION_CONFIG","DEFAULT_BEHAVIOR_MODULE_CONFIG","DEFAULT_COMMERCE_CONFIG","DEFAULT_CONVERSION_MODULE_CONFIG","DEFAULT_CORE_MODULE_CONFIG","DEFAULT_INTEGRATIONS_MODULE_CONFIG","DEFAULT_PIXEL_CONFIG","DEFAULT_PRIVACY_MODULE_CONFIG","DEFAULT_SELECTOR_TYPE","DEFAULT_TRANSPORT_MODULE_CONFIG","getPrimarySelectorValue","resolveSelectorTypeFallback","__toCommonJS","DEFAULT_SELECTOR_TYPE","getPrimarySelectorValue","selector","trimmed","item","value","resolveSelectorTypeFallback","selectorType","DEFAULT_COMMERCE_CONFIG","DEFAULT_ATTRIBUTION_CONFIG","DEFAULT_BEHAVIOR_MODULE_CONFIG","DEFAULT_CONVERSION_MODULE_CONFIG","DEFAULT_CORE_MODULE_CONFIG","DEFAULT_INTEGRATIONS_MODULE_CONFIG","DEFAULT_PRIVACY_MODULE_CONFIG","DEFAULT_TRANSPORT_MODULE_CONFIG","DEFAULT_PIXEL_CONFIG","DEFAULT_ATTRIBUTION_CONFIG","DEFAULT_CORE_MODULE_CONFIG","DEFAULT_BEHAVIOR_MODULE_CONFIG","DEFAULT_CONVERSION_MODULE_CONFIG","DEFAULT_TRANSPORT_MODULE_CONFIG","DEFAULT_INTEGRATIONS_MODULE_CONFIG","DEFAULT_PRIVACY_MODULE_CONFIG"]}
1
+ {"version":3,"sources":["../../src/config/index.ts","../../src/config/shared/selector.ts","../../src/config/shared/commerce.ts","../../src/config/defaults/attribution.ts","../../src/config/defaults/modules/behavior.ts","../../src/config/defaults/modules/conversion.ts","../../src/config/defaults/modules/core.ts","../../src/config/defaults/modules/integrations.ts","../../src/config/defaults/modules/privacy.ts","../../src/config/defaults/modules/transport.ts","../../src/config/defaults/pixel-default-config.ts"],"sourcesContent":["export type {\n AppConfig,\n PixelEnvironment,\n PixelSource,\n PixelTarget,\n} from './types/app';\nexport type { IdentityConfig } from './types/identity';\nexport type { AttributionConfig } from './types/attribution';\nexport type { TransportConfig } from './types/transport';\nexport type {\n AttributionStoragePersistence,\n QueueStoragePersistence,\n SessionStoragePersistence,\n StorageConfig,\n StorageKeysConfig,\n VisitorStoragePersistence,\n} from './types/storage';\nexport type {\n AutoSourceBase,\n AutoSourceType,\n AutoTrackSource,\n EngagementThresholds,\n EngagementWeights,\n EngagementPenalties,\n FingerprintMode,\n FormAutoSource,\n LifecycleAutoSource,\n PaymentAutoSource,\n PaymentMethod,\n SelectorAutoSource,\n SelectorConfig,\n SelectorDescriptor,\n SelectorInput,\n SelectorType,\n SelectorFormConfig,\n SelectorFormMode,\n SelectorFormTrigger,\n CommerceCalculateValueFrom,\n CommerceCartConfig,\n CommerceCartItem,\n CommerceCartMode,\n CommerceConfig,\n CommerceEnrichmentConfig,\n CommerceEnrichmentSource,\n CommerceEventEnrichmentConfig,\n CommerceMappingsConfig,\n CommerceProduct,\n ProductCatalogConfig,\n ProductType,\n UrlAutoSource,\n UrlContextConfig,\n UrlContextLinkDecorationStrategy,\n UrlContextMode,\n UrlContextPayload,\n UrlContextSnapshot,\n UrlContextSource,\n UrlContextWriteStrategy,\n UrlForwardParamsConfig,\n UrlLinkDecorationConfig,\n UrlManagedParamConfig,\n UrlManagedParamMode,\n UrlQueryParamsConfig,\n} from './shared';\nexport {\n DEFAULT_SELECTOR_TYPE,\n DEFAULT_COMMERCE_CONFIG,\n DEFAULT_COMMERCE_ENRICHMENT,\n getPrimarySelectorValue,\n normalizeCalculateValueFrom,\n resolveSelectorTypeFallback,\n} from './shared';\nexport type {\n AddPaymentInfoAutoDetectorConfig,\n AddToCartAutoDetectorConfig,\n AnonymizationConfig,\n AutoConversionConfig,\n AutoDetectorConfig,\n BehaviorModuleConfig,\n ClickBehaviorConfig,\n ConsentConfig,\n ConversionAutoDetectorsConfig,\n ConversionModuleConfig,\n ConversionRulesConfig,\n CoordinationConfig,\n CoreModuleConfig,\n DedupeConfig,\n EngagementBehaviorConfig,\n ExitIntentBehaviorConfig,\n FingerprintConfig,\n GoogleBrowserDestinationConfig,\n GoogleIntegrationConfig,\n HeartbeatModuleConfig,\n IdleBehaviorConfig,\n InitiateCheckoutAutoDetectorConfig,\n IntegrationTestDestinationConfig,\n IntegrationsModuleConfig,\n LeadAutoDetectorConfig,\n ManualConversionConfig,\n ManualEventConfig,\n MetaBrowserDestinationConfig,\n MetaIntegrationConfig,\n ModulesConfig,\n TikTokBrowserDestinationConfig,\n OrderingConfig,\n PageViewConfig,\n PiiConfig,\n PrivacyConsentConfig,\n PrivacyModuleConfig,\n PurchaseAutoDetectorConfig,\n RemoveFromCartAutoDetectorConfig,\n ScrollBehaviorConfig,\n SearchAutoDetectorConfig,\n SessionConfig,\n TransportModuleConfig,\n TransportBatchConfig,\n TransportFlushConfig,\n TransportOfflineConfig,\n TransportRetryConfig,\n TransportTimeoutConfig,\n ViewContentAutoDetectorConfig,\n ViewportBehaviorConfig,\n ViewportTargetConfig,\n VisibilityBehaviorConfig,\n VisitorConfig,\n} from './types/modules';\nexport type { PixelConfig } from './types/pixel';\n\nexport { DEFAULT_PIXEL_CONFIG } from './defaults/pixel-default-config';\nexport { DEFAULT_ATTRIBUTION_CONFIG } from './defaults/attribution';\nexport { DEFAULT_BEHAVIOR_MODULE_CONFIG } from './defaults/modules/behavior';\nexport { DEFAULT_CONVERSION_MODULE_CONFIG } from './defaults/modules/conversion';\nexport { DEFAULT_CORE_MODULE_CONFIG } from './defaults/modules/core';\nexport { DEFAULT_INTEGRATIONS_MODULE_CONFIG } from './defaults/modules/integrations';\nexport { DEFAULT_PRIVACY_MODULE_CONFIG } from './defaults/modules/privacy';\nexport { DEFAULT_TRANSPORT_MODULE_CONFIG } from './defaults/modules/transport';\n","/**\n * Tipo padrão/fallback para interpretar selectors string sem prefixo.\n *\n * Ordem de resolução (`SelectorResolver`):\n * 1. Objeto → selector.type\n * 2. String com prefixo (css:, id:, class:, attr:, attribute:, text:) → prefixo\n * 3. String sem prefixo → selectorType\n * 4. Sem selectorType → css (DEFAULT_SELECTOR_TYPE)\n */\nexport type SelectorType = 'css' | 'id' | 'class' | 'attribute' | 'text';\n\n/** Fallback quando `selectorType` é omitido. */\nexport const DEFAULT_SELECTOR_TYPE: SelectorType = 'css';\n\n/**\n * Forma avançada de um seletor individual.\n * `exact` / `caseSensitive` aplicam-se principalmente a `type: 'text'`.\n * `closest` restringe a busca a um ancestral CSS (resolvido na etapa do Resolver).\n */\nexport type SelectorDescriptor = {\n type: SelectorType;\n value: string;\n exact?: boolean;\n caseSensitive?: boolean;\n closest?: string;\n};\n\n/** Um seletor: string simples/prefixada ou descritor tipado. */\nexport type SelectorInput = string | SelectorDescriptor;\n\n/** Um ou vários seletores (OR — qualquer match dispara). */\nexport type SelectorConfig = SelectorInput | SelectorInput[];\n\n/**\n * Extrai o valor primário de um `SelectorConfig` (utilitário de config).\n * Para match/query no DOM, use `SelectorResolver`.\n */\nexport function getPrimarySelectorValue(\n selector: SelectorConfig | undefined\n): string | null {\n if (selector == null) return null;\n\n if (typeof selector === 'string') {\n const trimmed = selector.trim();\n return trimmed.length > 0 ? trimmed : null;\n }\n\n if (Array.isArray(selector)) {\n for (const item of selector) {\n const value = getPrimarySelectorValue(item);\n if (value) return value;\n }\n return null;\n }\n\n const value = selector.value?.trim();\n return value && value.length > 0 ? value : null;\n}\n\n/**\n * Resolve o `selectorType` efetivo: config explícita → tipo do descriptor → css.\n */\nexport function resolveSelectorTypeFallback(\n selector: SelectorConfig | undefined,\n selectorType?: SelectorType\n): SelectorType {\n if (selectorType) return selectorType;\n\n if (selector != null && typeof selector !== 'string') {\n if (Array.isArray(selector)) {\n for (const item of selector) {\n if (typeof item !== 'string') return item.type;\n }\n } else {\n return selector.type;\n }\n }\n\n return DEFAULT_SELECTOR_TYPE;\n}","/**\n * Contratos globais de commerce (root `PixelConfig.commerce`).\n * Não pertencem a conversion — representam o contexto comercial da página/fluxo.\n */\n\nexport type ProductType =\n | 'main'\n | 'order_bump'\n | 'upsell'\n | 'downsell'\n | 'cross_sell'\n | 'addon'\n | 'subscription'\n | 'custom'\n | 'other';\n\nexport type CommerceProduct = {\n id: string;\n name?: string;\n sku?: string;\n type?: ProductType;\n price?: number;\n currency?: string;\n quantity?: number;\n category?: string;\n variant?: string;\n brand?: string;\n metadata?: Record<string, unknown>;\n};\n\nexport type CommerceCartItem = {\n productId: string;\n quantity?: number;\n price?: number;\n currency?: string;\n selected?: boolean;\n metadata?: Record<string, unknown>;\n};\n\nexport type CommerceCartMode =\n | 'landing_page'\n | 'single_product'\n | 'multi_product'\n | 'checkout'\n | 'upsell'\n | 'custom'\n | 'cart'\n | 'funnel';\n\nexport type CommerceCalculateValueFrom =\n | 'cart'\n | 'event'\n | 'manual'\n | 'catalog';\n\nexport type CommerceEnrichmentSource =\n | 'cart'\n | 'event'\n | 'event_or_cart'\n | 'catalog';\n\nexport type CommerceEventEnrichmentConfig = {\n enabled: boolean;\n source?: CommerceEnrichmentSource;\n};\n\nexport type CommerceEnrichmentConfig = {\n pageView?: CommerceEventEnrichmentConfig;\n viewContent?: CommerceEventEnrichmentConfig;\n lead?: CommerceEventEnrichmentConfig;\n addToCart?: CommerceEventEnrichmentConfig;\n removeFromCart?: CommerceEventEnrichmentConfig;\n initiateCheckout?: CommerceEventEnrichmentConfig;\n addPaymentInfo?: CommerceEventEnrichmentConfig;\n purchase?: CommerceEventEnrichmentConfig;\n};\n\nexport type ProductCatalogConfig = {\n products?: CommerceProduct[];\n};\n\nexport type CommerceCartConfig = {\n mode?: CommerceCartMode;\n /** Seed inicial do carrinho — não é estado vivo. */\n initialItems?: CommerceCartItem[];\n allowDynamicItems?: boolean;\n calculateValueFrom?: CommerceCalculateValueFrom;\n metadata?: Record<string, unknown>;\n};\n\nexport type CommerceMappingsConfig = {\n attributes?: Record<string, string[]>;\n fields?: Record<string, string[]>;\n};\n\nexport type CommerceConfig = {\n enabled?: boolean;\n currency?: string;\n catalog?: ProductCatalogConfig;\n cart?: CommerceCartConfig;\n mappings?: CommerceMappingsConfig;\n enrichment?: CommerceEnrichmentConfig;\n};\n\nexport const DEFAULT_COMMERCE_ENRICHMENT: Required<CommerceEnrichmentConfig> = {\n pageView: { enabled: false, source: 'cart' },\n viewContent: { enabled: true, source: 'event_or_cart' },\n lead: { enabled: false, source: 'event_or_cart' },\n addToCart: { enabled: true, source: 'event_or_cart' },\n removeFromCart: { enabled: true, source: 'event_or_cart' },\n initiateCheckout: { enabled: true, source: 'cart' },\n addPaymentInfo: { enabled: true, source: 'cart' },\n purchase: { enabled: true, source: 'cart' },\n};\n\n/** Default seguro: commerce off, sem produtos, sem itens. */\nexport const DEFAULT_COMMERCE_CONFIG: CommerceConfig = {\n enabled: false,\n currency: 'BRL',\n catalog: {\n products: [],\n },\n cart: {\n mode: 'custom',\n initialItems: [],\n allowDynamicItems: true,\n calculateValueFrom: 'cart',\n },\n mappings: {\n attributes: {},\n fields: {},\n },\n enrichment: { ...DEFAULT_COMMERCE_ENRICHMENT },\n};\n\n/** Normaliza calculateValueFrom (inclui aliases legado em runtime). */\nexport function normalizeCalculateValueFrom(\n value: CommerceCalculateValueFrom | string | undefined\n): 'cart' | 'event' | 'manual' | 'catalog' {\n switch (value) {\n case 'event':\n case 'event_items':\n return 'event';\n case 'manual':\n return 'manual';\n case 'catalog':\n return 'catalog';\n case 'cart':\n case 'selected_items':\n default:\n return 'cart';\n }\n}\n","import type { AttributionConfig } from '../types/attribution';\n\nexport const DEFAULT_ATTRIBUTION_CONFIG: AttributionConfig = {\n enabled: true,\n ttlDays: 90,\n persist: true,\n captureUrlParams: true,\n captureCookies: true,\n customClickIdParams: [],\n};\n","import type { BehaviorModuleConfig } from '../../types/modules/behavior';\n\nexport const DEFAULT_BEHAVIOR_MODULE_CONFIG: BehaviorModuleConfig = {\n enabled: false,\n\n heartbeat: {\n enabled: false,\n intervalMs: 15_000,\n hiddenIntervalMs: 60_000,\n emitWhenHidden: false,\n emitWhenIdle: true,\n includeSnapshot: true,\n fireImmediately: false,\n },\n\n engagement: {\n enabled: false,\n evaluationIntervalMs: 5_000,\n emitOnChange: true,\n minScoreDelta: 5,\n emitSummaryOnDestroy: true,\n\n weights: {\n activeTime: 0.25,\n scroll: 0.2,\n click: 0.15,\n viewport: 0.2,\n visibility: 0.1,\n heartbeat: 0.1,\n },\n\n penalties: {\n idle: 0.2,\n rageClick: 0.1,\n },\n\n thresholds: {\n lowMax: 29,\n mediumMax: 69,\n },\n },\n\n rateLimit: {\n enabled: false,\n windowMs: 1_000,\n maxSignalsPerWindow: 50,\n criticalBypass: true,\n },\n\n buffer: {\n enabled: false,\n maxSize: 200,\n maxAgeMs: 30_000,\n flushSize: 50,\n dropStrategy: 'compress_similar',\n flushOnHidden: true,\n },\n\n stateMachine: {\n enabled: false,\n historyLimit: 50,\n },\n\n sessionSummary: {\n enabled: false,\n emitOnHidden: false,\n emitOnDestroy: true,\n minimumSessionMs: 0,\n },\n\n trackers: {\n scroll: {\n enabled: false,\n thresholds: [25, 50, 75, 100],\n debounceMs: 100,\n },\n\n click: {\n enabled: false,\n rageClick: {\n enabled: true,\n threshold: 3,\n windowMs: 500,\n },\n },\n\n idle: {\n enabled: false,\n thresholdMs: 60_000,\n },\n\n visibility: {\n enabled: false,\n },\n\n exitIntent: {\n enabled: false,\n },\n\n viewport: {\n enabled: false,\n targets: [],\n rootMargin: '0px',\n observeMutations: true,\n mutationDebounceMs: 100,\n maxObservedElements: 500,\n },\n },\n};\n","import type { ConversionModuleConfig } from '../../types/modules/conversion';\n\nconst EMPTY_DETECTOR = { enabled: false, sources: [] as const };\n\nexport const DEFAULT_CONVERSION_MODULE_CONFIG: ConversionModuleConfig = {\n enabled: false,\n\n manual: {\n pageView: {\n enabled: false,\n },\n purchase: {\n enabled: false,\n },\n lead: {\n enabled: false,\n },\n addToCart: {\n enabled: false,\n },\n removeFromCart: {\n enabled: false,\n },\n initiateCheckout: {\n enabled: false,\n },\n addPaymentInfo: {\n enabled: false,\n },\n search: {\n enabled: false,\n },\n viewContent: {\n enabled: false,\n },\n },\n\n auto: {\n enabled: false,\n\n detectors: {\n lead: { ...EMPTY_DETECTOR, sources: [] },\n addToCart: { ...EMPTY_DETECTOR, sources: [] },\n removeFromCart: { ...EMPTY_DETECTOR, sources: [] },\n initiateCheckout: { ...EMPTY_DETECTOR, sources: [] },\n purchase: { ...EMPTY_DETECTOR, sources: [] },\n addPaymentInfo: { ...EMPTY_DETECTOR, sources: [] },\n search: { ...EMPTY_DETECTOR, sources: [] },\n viewContent: { ...EMPTY_DETECTOR, sources: [] },\n },\n },\n\n rules: {\n enabled: false,\n selectors: ['[data-track]'],\n texts: ['Comprar', 'Comprar Agora', 'Finalizar Compra', 'Checkout'],\n urlPatterns: ['thank-you', 'purchase', 'success', 'order', 'checkout'],\n checkout: {\n enabled: false,\n },\n card: {\n enabled: false,\n },\n },\n};\n","import type { CoreModuleConfig } from '../../types/modules/core';\n\nexport const DEFAULT_CORE_MODULE_CONFIG: CoreModuleConfig = {\n enabled: true,\n\n pageView: {\n enabled: true,\n trackInitialPageView: true,\n spa: true,\n dedupeMs: 2000,\n },\n\n visitor: {\n enabled: true,\n persistence: 'cookie_localStorage',\n renew: false,\n },\n\n session: {\n enabled: true,\n ttlMs: 10800000,\n renewOnActivity: true,\n renewOnPageView: true,\n },\n\n fingerprint: {\n enabled: true,\n mode: 'light',\n cache: true,\n },\n\n consent: {\n enabled: false,\n required: false,\n waitForConsent: false,\n },\n\n dedupe: {\n enabled: true,\n windowMs: 2000,\n },\n\n coordination: {\n enabled: true,\n leaderElection: true,\n broadcastChannel: true,\n },\n\n ordering: {\n enabled: true,\n preserveOrder: true,\n },\n\n urlContext: {\n enabled: false,\n },\n};\n","import type { IntegrationsModuleConfig } from '../../types/modules/integrations';\n\nexport const DEFAULT_INTEGRATIONS_MODULE_CONFIG: IntegrationsModuleConfig = {\n enabled: false,\n debug: false,\n concurrency: 3,\n timeoutMs: 5000,\n continueOnError: true,\n\n destinations: {\n console: { enabled: false },\n memory: { enabled: false },\n mock: { enabled: false },\n meta: {\n enabled: false,\n pixelIds: [],\n autoPageView: true,\n loadScript: true,\n },\n google: {\n enabled: false,\n tagIds: [],\n autoPageView: true,\n loadScript: true,\n },\n tiktok: {\n enabled: false,\n pixelIds: [],\n autoPageView: true,\n loadScript: true,\n },\n },\n};\n","import type { PrivacyModuleConfig } from '../../types/modules/privacy';\n\nexport const DEFAULT_PRIVACY_MODULE_CONFIG: PrivacyModuleConfig = {\n enabled: false,\n\n consent: {\n enabled: false,\n required: false,\n },\n\n pii: {\n enabled: false,\n hashEmail: true,\n hashPhone: true,\n },\n\n anonymization: {\n enabled: false,\n anonymizeIp: true,\n },\n};\n","import type { TransportModuleConfig } from '../../types/modules/transport';\n\nexport const DEFAULT_TRANSPORT_MODULE_CONFIG: TransportModuleConfig = {\n enabled: false,\n\n mockSender: {\n enabled: true,\n },\n\n sender: {\n mode: 'mock',\n },\n\n persistence: {\n enabled: true,\n },\n\n replay: {\n enabled: true,\n },\n\n ordering: {\n enabled: true,\n },\n\n coordination: {\n enabled: true,\n },\n\n circuitBreaker: {\n enabled: true,\n failureThreshold: 5,\n resetTimeoutMs: 30_000,\n halfOpenMaxAttempts: 2,\n },\n\n backpressure: {\n enabled: true,\n maxQueueSize: 500,\n policy: 'drop_oldest',\n sampleRate: 0.5,\n },\n\n deadLetter: {\n enabled: true,\n maxEntries: 200,\n },\n\n compression: {\n enabled: true,\n strategy: 'identity',\n },\n\n retry: {\n enabled: true,\n maxAttempts: 4,\n baseDelayMs: 500,\n maxDelayMs: 4000,\n multiplier: 2,\n },\n\n batch: {\n enabled: true,\n batchSize: 10,\n flushIntervalMs: 2000,\n maxWaitMs: 5000,\n },\n\n timeout: {\n enabled: true,\n timeoutMs: 10000,\n },\n\n offline: {\n enabled: true,\n },\n\n flush: {\n enabled: true,\n flushIntervalMs: 2000,\n flushOnDestroy: true,\n prepareUnloadHooks: true,\n },\n};\n","import type { PixelConfig } from '../types/pixel';\nimport { DEFAULT_ATTRIBUTION_CONFIG } from './attribution';\nimport { DEFAULT_BEHAVIOR_MODULE_CONFIG } from './modules/behavior';\nimport { DEFAULT_CONVERSION_MODULE_CONFIG } from './modules/conversion';\nimport { DEFAULT_CORE_MODULE_CONFIG } from './modules/core';\nimport { DEFAULT_INTEGRATIONS_MODULE_CONFIG } from './modules/integrations';\nimport { DEFAULT_PRIVACY_MODULE_CONFIG } from './modules/privacy';\nimport { DEFAULT_TRANSPORT_MODULE_CONFIG } from './modules/transport';\nimport { DEFAULT_COMMERCE_CONFIG } from '../shared/commerce';\n\nexport const DEFAULT_PIXEL_CONFIG: PixelConfig = {\n app: {\n source: 'custom',\n target: 'custom',\n environment: 'production',\n debug: false,\n },\n\n identity: {\n pixelId: '',\n },\n\n transport: {\n apiEndpoint: '',\n timeoutMs: 10000,\n },\n\n storage: {\n prefix: '__gmk',\n namespace: 'pixel',\n\n queue: {\n enabled: true,\n persistence: 'memory',\n index: true,\n },\n },\n\n attribution: { ...DEFAULT_ATTRIBUTION_CONFIG },\n\n commerce: {\n ...DEFAULT_COMMERCE_CONFIG,\n catalog: { products: [] },\n cart: {\n mode: 'custom',\n initialItems: [],\n allowDynamicItems: true,\n calculateValueFrom: 'cart',\n },\n mappings: { attributes: {}, fields: {} },\n enrichment: { ...DEFAULT_COMMERCE_CONFIG.enrichment },\n },\n\n modules: {\n core: DEFAULT_CORE_MODULE_CONFIG,\n behavior: DEFAULT_BEHAVIOR_MODULE_CONFIG,\n conversion: DEFAULT_CONVERSION_MODULE_CONFIG,\n transport: DEFAULT_TRANSPORT_MODULE_CONFIG,\n integrations: DEFAULT_INTEGRATIONS_MODULE_CONFIG,\n privacy: DEFAULT_PRIVACY_MODULE_CONFIG,\n },\n};\n"],"mappings":";yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,gCAAAE,EAAA,mCAAAC,EAAA,4BAAAC,EAAA,gCAAAC,EAAA,qCAAAC,EAAA,+BAAAC,EAAA,uCAAAC,EAAA,yBAAAC,EAAA,kCAAAC,EAAA,0BAAAC,EAAA,oCAAAC,EAAA,4BAAAC,EAAA,gCAAAC,EAAA,gCAAAC,IAAA,eAAAC,EAAAhB,GCYO,IAAMiB,EAAsC,MAyB5C,SAASC,EACdC,EACe,CACf,GAAIA,GAAY,KAAM,OAAO,KAE7B,GAAI,OAAOA,GAAa,SAAU,CAChC,IAAMC,EAAUD,EAAS,KAAK,EAC9B,OAAOC,EAAQ,OAAS,EAAIA,EAAU,IACxC,CAEA,GAAI,MAAM,QAAQD,CAAQ,EAAG,CAC3B,QAAWE,KAAQF,EAAU,CAC3B,IAAMG,EAAQJ,EAAwBG,CAAI,EAC1C,GAAIC,EAAO,OAAOA,CACpB,CACA,OAAO,IACT,CAEA,IAAMA,EAAQH,EAAS,OAAO,KAAK,EACnC,OAAOG,GAASA,EAAM,OAAS,EAAIA,EAAQ,IAC7C,CAKO,SAASC,EACdJ,EACAK,EACc,CACd,GAAIA,EAAc,OAAOA,EAEzB,GAAIL,GAAY,MAAQ,OAAOA,GAAa,SAC1C,GAAI,MAAM,QAAQA,CAAQ,GACxB,QAAWE,KAAQF,EACjB,GAAI,OAAOE,GAAS,SAAU,OAAOA,EAAK,SAG5C,QAAOF,EAAS,KAIpB,MAAO,KACT,CCyBO,IAAMM,EAAkE,CAC7E,SAAU,CAAE,QAAS,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SAAU,CAAC,CAAE,EACxB,KAAM,CACJ,KAAM,SACN,aAAc,CAAC,EACf,kBAAmB,GACnB,mBAAoB,MACtB,EACA,SAAU,CAAE,WAAY,CAAC,EAAG,OAAQ,CAAC,CAAE,EACvC,WAAY,CAAE,GAAGA,EAAwB,UAAW,CACtD,EAEA,QAAS,CACP,KAAMC,EACN,SAAUC,EACV,WAAYC,EACZ,UAAWC,EACX,aAAcC,EACd,QAASC,CACX,CACF","names":["config_exports","__export","DEFAULT_ATTRIBUTION_CONFIG","DEFAULT_BEHAVIOR_MODULE_CONFIG","DEFAULT_COMMERCE_CONFIG","DEFAULT_COMMERCE_ENRICHMENT","DEFAULT_CONVERSION_MODULE_CONFIG","DEFAULT_CORE_MODULE_CONFIG","DEFAULT_INTEGRATIONS_MODULE_CONFIG","DEFAULT_PIXEL_CONFIG","DEFAULT_PRIVACY_MODULE_CONFIG","DEFAULT_SELECTOR_TYPE","DEFAULT_TRANSPORT_MODULE_CONFIG","getPrimarySelectorValue","normalizeCalculateValueFrom","resolveSelectorTypeFallback","__toCommonJS","DEFAULT_SELECTOR_TYPE","getPrimarySelectorValue","selector","trimmed","item","value","resolveSelectorTypeFallback","selectorType","DEFAULT_COMMERCE_ENRICHMENT","DEFAULT_COMMERCE_CONFIG","normalizeCalculateValueFrom","value","DEFAULT_ATTRIBUTION_CONFIG","DEFAULT_BEHAVIOR_MODULE_CONFIG","EMPTY_DETECTOR","DEFAULT_CONVERSION_MODULE_CONFIG","DEFAULT_CORE_MODULE_CONFIG","DEFAULT_INTEGRATIONS_MODULE_CONFIG","DEFAULT_PRIVACY_MODULE_CONFIG","DEFAULT_TRANSPORT_MODULE_CONFIG","DEFAULT_PIXEL_CONFIG","DEFAULT_ATTRIBUTION_CONFIG","DEFAULT_COMMERCE_CONFIG","DEFAULT_CORE_MODULE_CONFIG","DEFAULT_BEHAVIOR_MODULE_CONFIG","DEFAULT_CONVERSION_MODULE_CONFIG","DEFAULT_TRANSPORT_MODULE_CONFIG","DEFAULT_INTEGRATIONS_MODULE_CONFIG","DEFAULT_PRIVACY_MODULE_CONFIG"]}
@@ -1,6 +1,7 @@
1
- import { a as AttributionConfig, B as BehaviorModuleConfig, C as ConversionModuleConfig, b as CoreModuleConfig, I as IntegrationsModuleConfig, c as PrivacyModuleConfig, T as TransportModuleConfig } from '../pixel-CbeF25mD.mjs';
2
- export { K as AddPaymentInfoAutoDetectorConfig, L as AddToCartAutoDetectorConfig, M as AnonymizationConfig, d as AppConfig, A as AttributionStoragePersistence, N as AutoConversionConfig, O as ClickBehaviorConfig, u as CommerceCalculateValueFrom, v as CommerceCheckoutMode, w as CommerceConfig, x as CommerceItem, y as CommerceProduct, R as ConfiguredAutoDetectorConfig, U as ConsentConfig, W as ConversionRulesConfig, X as CoordinationConfig, G as DEFAULT_COMMERCE_CONFIG, D as DEFAULT_SELECTOR_TYPE, Y as DedupeConfig, Z as EngagementBehaviorConfig, E as EngagementThresholds, l as EngagementWeights, _ as ExitIntentBehaviorConfig, $ as FingerprintConfig, F as FingerprintMode, a0 as FormCapableAutoDetectorConfig, a1 as GoogleBrowserDestinationConfig, a2 as GoogleIntegrationConfig, a3 as HeartbeatBehaviorConfig, h as IdentityConfig, a4 as IdleBehaviorConfig, a5 as InitiateCheckoutAutoDetectorConfig, a6 as IntegrationTestDestinationConfig, a7 as LeadAutoDetectorConfig, a8 as ManualConversionConfig, a9 as ManualEventConfig, aa as MetaBrowserDestinationConfig, ab as MetaIntegrationConfig, ac as ModulesConfig, ae as OrderingConfig, af as PageViewConfig, m as PaymentMethod, ag as PiiConfig, P as PixelConfig, e as PixelEnvironment, f as PixelSource, g as PixelTarget, ah as PrivacyConsentConfig, z as ProductType, ai as PurchaseAutoDetectorConfig, Q as QueueStoragePersistence, aj as RemoveFromCartAutoDetectorConfig, ak as ScrollBehaviorConfig, al as SearchAutoDetectorConfig, n as SelectorConfig, o as SelectorDescriptor, r as SelectorFormConfig, s as SelectorFormMode, t as SelectorFormTrigger, p as SelectorInput, q as SelectorType, am as SessionConfig, S as SessionStoragePersistence, j as StorageConfig, k as StorageKeysConfig, ad as TikTokBrowserDestinationConfig, an as TransportBatchConfig, i as TransportConfig, ao as TransportFlushConfig, ap as TransportOfflineConfig, aq as TransportRetryConfig, ar as TransportTimeoutConfig, as as ViewContentAutoDetectorConfig, at as ViewportBehaviorConfig, au as VisibilityBehaviorConfig, av as VisitorConfig, V as VisitorStoragePersistence, H as getPrimarySelectorValue, J as resolveSelectorTypeFallback } from '../pixel-CbeF25mD.mjs';
3
- export { D as DEFAULT_PIXEL_CONFIG } from '../pixel-default-config-1VgLFOiL.mjs';
1
+ import { a as AttributionConfig, B as BehaviorModuleConfig, C as ConversionModuleConfig, b as CoreModuleConfig, I as IntegrationsModuleConfig, c as PrivacyModuleConfig, T as TransportModuleConfig } from '../pixel-CKc4OQUx.mjs';
2
+ export { a4 as AddPaymentInfoAutoDetectorConfig, a5 as AddToCartAutoDetectorConfig, a6 as AnonymizationConfig, d as AppConfig, A as AttributionStoragePersistence, a7 as AutoConversionConfig, a8 as AutoDetectorConfig, l as AutoSourceBase, m as AutoSourceType, n as AutoTrackSource, a9 as ClickBehaviorConfig, G as CommerceCalculateValueFrom, H as CommerceCartConfig, J as CommerceCartItem, K as CommerceCartMode, M as CommerceConfig, N as CommerceEnrichmentConfig, O as CommerceEnrichmentSource, R as CommerceEventEnrichmentConfig, U as CommerceMappingsConfig, W as CommerceProduct, aa as ConsentConfig, ab as ConversionAutoDetectorsConfig, ac as ConversionRulesConfig, ad as CoordinationConfig, $ as DEFAULT_COMMERCE_CONFIG, a0 as DEFAULT_COMMERCE_ENRICHMENT, _ as DEFAULT_SELECTOR_TYPE, ae as DedupeConfig, af as EngagementBehaviorConfig, p as EngagementPenalties, E as EngagementThresholds, o as EngagementWeights, ag as ExitIntentBehaviorConfig, ah as FingerprintConfig, F as FingerprintMode, q as FormAutoSource, ai as GoogleBrowserDestinationConfig, aj as GoogleIntegrationConfig, ak as HeartbeatModuleConfig, h as IdentityConfig, al as IdleBehaviorConfig, am as InitiateCheckoutAutoDetectorConfig, an as IntegrationTestDestinationConfig, ao as LeadAutoDetectorConfig, L as LifecycleAutoSource, ap as ManualConversionConfig, aq as ManualEventConfig, ar as MetaBrowserDestinationConfig, as as MetaIntegrationConfig, at as ModulesConfig, av as OrderingConfig, aw as PageViewConfig, r as PaymentAutoSource, s as PaymentMethod, ax as PiiConfig, P as PixelConfig, e as PixelEnvironment, f as PixelSource, g as PixelTarget, ay as PrivacyConsentConfig, X as ProductCatalogConfig, Y as ProductType, az as PurchaseAutoDetectorConfig, Q as QueueStoragePersistence, aA as RemoveFromCartAutoDetectorConfig, aB as ScrollBehaviorConfig, aC as SearchAutoDetectorConfig, t as SelectorAutoSource, u as SelectorConfig, v as SelectorDescriptor, y as SelectorFormConfig, z as SelectorFormMode, D as SelectorFormTrigger, w as SelectorInput, x as SelectorType, aD as SessionConfig, S as SessionStoragePersistence, j as StorageConfig, k as StorageKeysConfig, au as TikTokBrowserDestinationConfig, aE as TransportBatchConfig, i as TransportConfig, aF as TransportFlushConfig, aG as TransportOfflineConfig, aH as TransportRetryConfig, aI as TransportTimeoutConfig, Z as UrlAutoSource, aJ as ViewContentAutoDetectorConfig, aK as ViewportBehaviorConfig, aL as ViewportTargetConfig, aM as VisibilityBehaviorConfig, aN as VisitorConfig, V as VisitorStoragePersistence, a1 as getPrimarySelectorValue, a2 as normalizeCalculateValueFrom, a3 as resolveSelectorTypeFallback } from '../pixel-CKc4OQUx.mjs';
3
+ export { U as UrlContextConfig, a as UrlContextLinkDecorationStrategy, b as UrlContextMode, c as UrlContextPayload, d as UrlContextSnapshot, e as UrlContextSource, f as UrlContextWriteStrategy, g as UrlForwardParamsConfig, h as UrlLinkDecorationConfig, i as UrlManagedParamConfig, j as UrlManagedParamMode, k as UrlQueryParamsConfig } from '../url-context-BjAsQoVl.mjs';
4
+ export { D as DEFAULT_PIXEL_CONFIG } from '../pixel-default-config-CJl-eypl.mjs';
4
5
 
5
6
  declare const DEFAULT_ATTRIBUTION_CONFIG: AttributionConfig;
6
7
 
@@ -1,6 +1,7 @@
1
- import { a as AttributionConfig, B as BehaviorModuleConfig, C as ConversionModuleConfig, b as CoreModuleConfig, I as IntegrationsModuleConfig, c as PrivacyModuleConfig, T as TransportModuleConfig } from '../pixel-CbeF25mD.js';
2
- export { K as AddPaymentInfoAutoDetectorConfig, L as AddToCartAutoDetectorConfig, M as AnonymizationConfig, d as AppConfig, A as AttributionStoragePersistence, N as AutoConversionConfig, O as ClickBehaviorConfig, u as CommerceCalculateValueFrom, v as CommerceCheckoutMode, w as CommerceConfig, x as CommerceItem, y as CommerceProduct, R as ConfiguredAutoDetectorConfig, U as ConsentConfig, W as ConversionRulesConfig, X as CoordinationConfig, G as DEFAULT_COMMERCE_CONFIG, D as DEFAULT_SELECTOR_TYPE, Y as DedupeConfig, Z as EngagementBehaviorConfig, E as EngagementThresholds, l as EngagementWeights, _ as ExitIntentBehaviorConfig, $ as FingerprintConfig, F as FingerprintMode, a0 as FormCapableAutoDetectorConfig, a1 as GoogleBrowserDestinationConfig, a2 as GoogleIntegrationConfig, a3 as HeartbeatBehaviorConfig, h as IdentityConfig, a4 as IdleBehaviorConfig, a5 as InitiateCheckoutAutoDetectorConfig, a6 as IntegrationTestDestinationConfig, a7 as LeadAutoDetectorConfig, a8 as ManualConversionConfig, a9 as ManualEventConfig, aa as MetaBrowserDestinationConfig, ab as MetaIntegrationConfig, ac as ModulesConfig, ae as OrderingConfig, af as PageViewConfig, m as PaymentMethod, ag as PiiConfig, P as PixelConfig, e as PixelEnvironment, f as PixelSource, g as PixelTarget, ah as PrivacyConsentConfig, z as ProductType, ai as PurchaseAutoDetectorConfig, Q as QueueStoragePersistence, aj as RemoveFromCartAutoDetectorConfig, ak as ScrollBehaviorConfig, al as SearchAutoDetectorConfig, n as SelectorConfig, o as SelectorDescriptor, r as SelectorFormConfig, s as SelectorFormMode, t as SelectorFormTrigger, p as SelectorInput, q as SelectorType, am as SessionConfig, S as SessionStoragePersistence, j as StorageConfig, k as StorageKeysConfig, ad as TikTokBrowserDestinationConfig, an as TransportBatchConfig, i as TransportConfig, ao as TransportFlushConfig, ap as TransportOfflineConfig, aq as TransportRetryConfig, ar as TransportTimeoutConfig, as as ViewContentAutoDetectorConfig, at as ViewportBehaviorConfig, au as VisibilityBehaviorConfig, av as VisitorConfig, V as VisitorStoragePersistence, H as getPrimarySelectorValue, J as resolveSelectorTypeFallback } from '../pixel-CbeF25mD.js';
3
- export { D as DEFAULT_PIXEL_CONFIG } from '../pixel-default-config-Bxb-Vdd8.js';
1
+ import { a as AttributionConfig, B as BehaviorModuleConfig, C as ConversionModuleConfig, b as CoreModuleConfig, I as IntegrationsModuleConfig, c as PrivacyModuleConfig, T as TransportModuleConfig } from '../pixel-BxZZx8l5.js';
2
+ export { a4 as AddPaymentInfoAutoDetectorConfig, a5 as AddToCartAutoDetectorConfig, a6 as AnonymizationConfig, d as AppConfig, A as AttributionStoragePersistence, a7 as AutoConversionConfig, a8 as AutoDetectorConfig, l as AutoSourceBase, m as AutoSourceType, n as AutoTrackSource, a9 as ClickBehaviorConfig, G as CommerceCalculateValueFrom, H as CommerceCartConfig, J as CommerceCartItem, K as CommerceCartMode, M as CommerceConfig, N as CommerceEnrichmentConfig, O as CommerceEnrichmentSource, R as CommerceEventEnrichmentConfig, U as CommerceMappingsConfig, W as CommerceProduct, aa as ConsentConfig, ab as ConversionAutoDetectorsConfig, ac as ConversionRulesConfig, ad as CoordinationConfig, $ as DEFAULT_COMMERCE_CONFIG, a0 as DEFAULT_COMMERCE_ENRICHMENT, _ as DEFAULT_SELECTOR_TYPE, ae as DedupeConfig, af as EngagementBehaviorConfig, p as EngagementPenalties, E as EngagementThresholds, o as EngagementWeights, ag as ExitIntentBehaviorConfig, ah as FingerprintConfig, F as FingerprintMode, q as FormAutoSource, ai as GoogleBrowserDestinationConfig, aj as GoogleIntegrationConfig, ak as HeartbeatModuleConfig, h as IdentityConfig, al as IdleBehaviorConfig, am as InitiateCheckoutAutoDetectorConfig, an as IntegrationTestDestinationConfig, ao as LeadAutoDetectorConfig, L as LifecycleAutoSource, ap as ManualConversionConfig, aq as ManualEventConfig, ar as MetaBrowserDestinationConfig, as as MetaIntegrationConfig, at as ModulesConfig, av as OrderingConfig, aw as PageViewConfig, r as PaymentAutoSource, s as PaymentMethod, ax as PiiConfig, P as PixelConfig, e as PixelEnvironment, f as PixelSource, g as PixelTarget, ay as PrivacyConsentConfig, X as ProductCatalogConfig, Y as ProductType, az as PurchaseAutoDetectorConfig, Q as QueueStoragePersistence, aA as RemoveFromCartAutoDetectorConfig, aB as ScrollBehaviorConfig, aC as SearchAutoDetectorConfig, t as SelectorAutoSource, u as SelectorConfig, v as SelectorDescriptor, y as SelectorFormConfig, z as SelectorFormMode, D as SelectorFormTrigger, w as SelectorInput, x as SelectorType, aD as SessionConfig, S as SessionStoragePersistence, j as StorageConfig, k as StorageKeysConfig, au as TikTokBrowserDestinationConfig, aE as TransportBatchConfig, i as TransportConfig, aF as TransportFlushConfig, aG as TransportOfflineConfig, aH as TransportRetryConfig, aI as TransportTimeoutConfig, Z as UrlAutoSource, aJ as ViewContentAutoDetectorConfig, aK as ViewportBehaviorConfig, aL as ViewportTargetConfig, aM as VisibilityBehaviorConfig, aN as VisitorConfig, V as VisitorStoragePersistence, a1 as getPrimarySelectorValue, a2 as normalizeCalculateValueFrom, a3 as resolveSelectorTypeFallback } from '../pixel-BxZZx8l5.js';
3
+ export { U as UrlContextConfig, a as UrlContextLinkDecorationStrategy, b as UrlContextMode, c as UrlContextPayload, d as UrlContextSnapshot, e as UrlContextSource, f as UrlContextWriteStrategy, g as UrlForwardParamsConfig, h as UrlLinkDecorationConfig, i as UrlManagedParamConfig, j as UrlManagedParamMode, k as UrlQueryParamsConfig } from '../url-context-BjAsQoVl.js';
4
+ export { D as DEFAULT_PIXEL_CONFIG } from '../pixel-default-config-aAOujzwp.js';
4
5
 
5
6
  declare const DEFAULT_ATTRIBUTION_CONFIG: AttributionConfig;
6
7
 
@@ -1,3 +1,3 @@
1
1
  /* Pixel v2 — SDK de analytics e conversão */
2
- var d="css";function r(e){if(e==null)return null;if(typeof e=="string"){let t=e.trim();return t.length>0?t:null}if(Array.isArray(e)){for(let t of e){let p=r(t);if(p)return p}return null}let o=e.value?.trim();return o&&o.length>0?o:null}function m(e,o){if(o)return o;if(e!=null&&typeof e!="string")if(Array.isArray(e)){for(let t of e)if(typeof t!="string")return t.type}else return e.type;return"css"}var f={catalog:{products:[]},checkout:{selectedItems:[],allowDynamicItems:!0,calculateValueFrom:"selected_items"},mappings:{attributes:{},fields:{}}};var n={enabled:!0,ttlDays:90,persist:!0,captureUrlParams:!0,captureCookies:!0,customClickIdParams:[]};var i={enabled:!1,trackers:{scroll:{enabled:!1,thresholds:[25,50,75,100],debounceMs:100},click:{enabled:!1,rageClick:{enabled:!0,threshold:3,windowMs:500}},idle:{enabled:!1,thresholdMs:6e4},visibility:{enabled:!1},exitIntent:{enabled:!1},viewport:{enabled:!1,selector:"",selectorType:"attribute",visibilityThreshold:.5},heartbeat:{enabled:!1,intervalMs:5e3,hiddenIntervalMs:3e4},engagement:{enabled:!1,weights:{scroll:.3,click:.3,time:.25},thresholds:{low:30,medium:70}}}};var a={enabled:!1,commerce:{catalog:{products:[]},checkout:{selectedItems:[],allowDynamicItems:!0,calculateValueFrom:"selected_items"},mappings:{attributes:{},fields:{}}},manual:{pageView:{enabled:!1},purchase:{enabled:!1},lead:{enabled:!1},addToCart:{enabled:!1},removeFromCart:{enabled:!1},initiateCheckout:{enabled:!1},addPaymentInfo:{enabled:!1},search:{enabled:!1},viewContent:{enabled:!1}},auto:{enabled:!1,detectors:{lead:{enabled:!1},purchase:{enabled:!1},addToCart:{enabled:!1},removeFromCart:{enabled:!1},initiateCheckout:{enabled:!1},addPaymentInfo:{enabled:!1,paymentMethod:"CREDIT_CARD",cardDetection:!0,autoDispatch:!0},search:{enabled:!1},viewContent:{enabled:!1}}},rules:{enabled:!1,selectors:["[data-track]"],texts:["Comprar","Comprar Agora","Finalizar Compra","Checkout"],urlPatterns:["thank-you","purchase","success","order","checkout"],checkout:{enabled:!1},card:{enabled:!1}}};var l={enabled:!0,pageView:{enabled:!0,trackInitialPageView:!0,spa:!0,dedupeMs:2e3},visitor:{enabled:!0,persistence:"cookie_localStorage",renew:!1},session:{enabled:!0,ttlMs:108e5,renewOnActivity:!0,renewOnPageView:!0},fingerprint:{enabled:!0,mode:"light",cache:!0},consent:{enabled:!1,required:!1,waitForConsent:!1},dedupe:{enabled:!0,windowMs:2e3},coordination:{enabled:!0,leaderElection:!0,broadcastChannel:!0},ordering:{enabled:!0,preserveOrder:!0}};var s={enabled:!1,debug:!1,concurrency:3,timeoutMs:5e3,continueOnError:!0,destinations:{console:{enabled:!1},memory:{enabled:!1},mock:{enabled:!1},meta:{enabled:!1,pixelIds:[],autoPageView:!0,loadScript:!0},google:{enabled:!1,tagIds:[],autoPageView:!0,loadScript:!0},tiktok:{enabled:!1,pixelIds:[],autoPageView:!0,loadScript:!0}}};var u={enabled:!1,consent:{enabled:!1,required:!1},pii:{enabled:!1,hashEmail:!0,hashPhone:!0},anonymization:{enabled:!1,anonymizeIp:!0}};var c={enabled:!1,mockSender:{enabled:!0},sender:{mode:"mock"},persistence:{enabled:!0},replay:{enabled:!0},ordering:{enabled:!0},coordination:{enabled:!0},circuitBreaker:{enabled:!0,failureThreshold:5,resetTimeoutMs:3e4,halfOpenMaxAttempts:2},backpressure:{enabled:!0,maxQueueSize:500,policy:"drop_oldest",sampleRate:.5},deadLetter:{enabled:!0,maxEntries:200},compression:{enabled:!0,strategy:"identity"},retry:{enabled:!0,maxAttempts:4,baseDelayMs:500,maxDelayMs:4e3,multiplier:2},batch:{enabled:!0,batchSize:10,flushIntervalMs:2e3,maxWaitMs:5e3},timeout:{enabled:!0,timeoutMs:1e4},offline:{enabled:!0},flush:{enabled:!0,flushIntervalMs:2e3,flushOnDestroy:!0,prepareUnloadHooks:!0}};var C={app:{source:"custom",target:"custom",environment:"production",debug:!1},identity:{pixelId:""},transport:{apiEndpoint:"",timeoutMs:1e4},storage:{prefix:"__gmk",namespace:"pixel",queue:{enabled:!0,persistence:"memory",index:!0}},attribution:{...n},modules:{core:l,behavior:i,conversion:a,transport:c,integrations:s,privacy:u}};export{n as DEFAULT_ATTRIBUTION_CONFIG,i as DEFAULT_BEHAVIOR_MODULE_CONFIG,f as DEFAULT_COMMERCE_CONFIG,a as DEFAULT_CONVERSION_MODULE_CONFIG,l as DEFAULT_CORE_MODULE_CONFIG,s as DEFAULT_INTEGRATIONS_MODULE_CONFIG,C as DEFAULT_PIXEL_CONFIG,u as DEFAULT_PRIVACY_MODULE_CONFIG,d as DEFAULT_SELECTOR_TYPE,c as DEFAULT_TRANSPORT_MODULE_CONFIG,r as getPrimarySelectorValue,m as resolveSelectorTypeFallback};
2
+ var f="css";function a(e){if(e==null)return null;if(typeof e=="string"){let r=e.trim();return r.length>0?r:null}if(Array.isArray(e)){for(let r of e){let d=a(r);if(d)return d}return null}let o=e.value?.trim();return o&&o.length>0?o:null}function g(e,o){if(o)return o;if(e!=null&&typeof e!="string")if(Array.isArray(e)){for(let r of e)if(typeof r!="string")return r.type}else return e.type;return"css"}var i={pageView:{enabled:!1,source:"cart"},viewContent:{enabled:!0,source:"event_or_cart"},lead:{enabled:!1,source:"event_or_cart"},addToCart:{enabled:!0,source:"event_or_cart"},removeFromCart:{enabled:!0,source:"event_or_cart"},initiateCheckout:{enabled:!0,source:"cart"},addPaymentInfo:{enabled:!0,source:"cart"},purchase:{enabled:!0,source:"cart"}},n={enabled:!1,currency:"BRL",catalog:{products:[]},cart:{mode:"custom",initialItems:[],allowDynamicItems:!0,calculateValueFrom:"cart"},mappings:{attributes:{},fields:{}},enrichment:{...i}};function y(e){switch(e){case"event":case"event_items":return"event";case"manual":return"manual";case"catalog":return"catalog";case"cart":case"selected_items":default:return"cart"}}var l={enabled:!0,ttlDays:90,persist:!0,captureUrlParams:!0,captureCookies:!0,customClickIdParams:[]};var s={enabled:!1,heartbeat:{enabled:!1,intervalMs:15e3,hiddenIntervalMs:6e4,emitWhenHidden:!1,emitWhenIdle:!0,includeSnapshot:!0,fireImmediately:!1},engagement:{enabled:!1,evaluationIntervalMs:5e3,emitOnChange:!0,minScoreDelta:5,emitSummaryOnDestroy:!0,weights:{activeTime:.25,scroll:.2,click:.15,viewport:.2,visibility:.1,heartbeat:.1},penalties:{idle:.2,rageClick:.1},thresholds:{lowMax:29,mediumMax:69}},rateLimit:{enabled:!1,windowMs:1e3,maxSignalsPerWindow:50,criticalBypass:!0},buffer:{enabled:!1,maxSize:200,maxAgeMs:3e4,flushSize:50,dropStrategy:"compress_similar",flushOnHidden:!0},stateMachine:{enabled:!1,historyLimit:50},sessionSummary:{enabled:!1,emitOnHidden:!1,emitOnDestroy:!0,minimumSessionMs:0},trackers:{scroll:{enabled:!1,thresholds:[25,50,75,100],debounceMs:100},click:{enabled:!1,rageClick:{enabled:!0,threshold:3,windowMs:500}},idle:{enabled:!1,thresholdMs:6e4},visibility:{enabled:!1},exitIntent:{enabled:!1},viewport:{enabled:!1,targets:[],rootMargin:"0px",observeMutations:!0,mutationDebounceMs:100,maxObservedElements:500}}};var t={enabled:!1,sources:[]},c={enabled:!1,manual:{pageView:{enabled:!1},purchase:{enabled:!1},lead:{enabled:!1},addToCart:{enabled:!1},removeFromCart:{enabled:!1},initiateCheckout:{enabled:!1},addPaymentInfo:{enabled:!1},search:{enabled:!1},viewContent:{enabled:!1}},auto:{enabled:!1,detectors:{lead:{...t,sources:[]},addToCart:{...t,sources:[]},removeFromCart:{...t,sources:[]},initiateCheckout:{...t,sources:[]},purchase:{...t,sources:[]},addPaymentInfo:{...t,sources:[]},search:{...t,sources:[]},viewContent:{...t,sources:[]}}},rules:{enabled:!1,selectors:["[data-track]"],texts:["Comprar","Comprar Agora","Finalizar Compra","Checkout"],urlPatterns:["thank-you","purchase","success","order","checkout"],checkout:{enabled:!1},card:{enabled:!1}}};var m={enabled:!0,pageView:{enabled:!0,trackInitialPageView:!0,spa:!0,dedupeMs:2e3},visitor:{enabled:!0,persistence:"cookie_localStorage",renew:!1},session:{enabled:!0,ttlMs:108e5,renewOnActivity:!0,renewOnPageView:!0},fingerprint:{enabled:!0,mode:"light",cache:!0},consent:{enabled:!1,required:!1,waitForConsent:!1},dedupe:{enabled:!0,windowMs:2e3},coordination:{enabled:!0,leaderElection:!0,broadcastChannel:!0},ordering:{enabled:!0,preserveOrder:!0},urlContext:{enabled:!1}};var u={enabled:!1,debug:!1,concurrency:3,timeoutMs:5e3,continueOnError:!0,destinations:{console:{enabled:!1},memory:{enabled:!1},mock:{enabled:!1},meta:{enabled:!1,pixelIds:[],autoPageView:!0,loadScript:!0},google:{enabled:!1,tagIds:[],autoPageView:!0,loadScript:!0},tiktok:{enabled:!1,pixelIds:[],autoPageView:!0,loadScript:!0}}};var C={enabled:!1,consent:{enabled:!1,required:!1},pii:{enabled:!1,hashEmail:!0,hashPhone:!0},anonymization:{enabled:!1,anonymizeIp:!0}};var p={enabled:!1,mockSender:{enabled:!0},sender:{mode:"mock"},persistence:{enabled:!0},replay:{enabled:!0},ordering:{enabled:!0},coordination:{enabled:!0},circuitBreaker:{enabled:!0,failureThreshold:5,resetTimeoutMs:3e4,halfOpenMaxAttempts:2},backpressure:{enabled:!0,maxQueueSize:500,policy:"drop_oldest",sampleRate:.5},deadLetter:{enabled:!0,maxEntries:200},compression:{enabled:!0,strategy:"identity"},retry:{enabled:!0,maxAttempts:4,baseDelayMs:500,maxDelayMs:4e3,multiplier:2},batch:{enabled:!0,batchSize:10,flushIntervalMs:2e3,maxWaitMs:5e3},timeout:{enabled:!0,timeoutMs:1e4},offline:{enabled:!0},flush:{enabled:!0,flushIntervalMs:2e3,flushOnDestroy:!0,prepareUnloadHooks:!0}};var E={app:{source:"custom",target:"custom",environment:"production",debug:!1},identity:{pixelId:""},transport:{apiEndpoint:"",timeoutMs:1e4},storage:{prefix:"__gmk",namespace:"pixel",queue:{enabled:!0,persistence:"memory",index:!0}},attribution:{...l},commerce:{...n,catalog:{products:[]},cart:{mode:"custom",initialItems:[],allowDynamicItems:!0,calculateValueFrom:"cart"},mappings:{attributes:{},fields:{}},enrichment:{...n.enrichment}},modules:{core:m,behavior:s,conversion:c,transport:p,integrations:u,privacy:C}};export{l as DEFAULT_ATTRIBUTION_CONFIG,s as DEFAULT_BEHAVIOR_MODULE_CONFIG,n as DEFAULT_COMMERCE_CONFIG,i as DEFAULT_COMMERCE_ENRICHMENT,c as DEFAULT_CONVERSION_MODULE_CONFIG,m as DEFAULT_CORE_MODULE_CONFIG,u as DEFAULT_INTEGRATIONS_MODULE_CONFIG,E as DEFAULT_PIXEL_CONFIG,C as DEFAULT_PRIVACY_MODULE_CONFIG,f as DEFAULT_SELECTOR_TYPE,p as DEFAULT_TRANSPORT_MODULE_CONFIG,a as getPrimarySelectorValue,y as normalizeCalculateValueFrom,g as resolveSelectorTypeFallback};
3
3
  //# sourceMappingURL=index.esm.js.map