@qonto/embed-sdk 0.51.0 → 0.51.1

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 (129) hide show
  1. package/dist/cards/cards.d.ts.map +1 -1
  2. package/dist/common/analytics/amplitude-manager.d.ts +33 -0
  3. package/dist/common/analytics/amplitude-manager.d.ts.map +1 -0
  4. package/dist/common/analytics/analytics-tracker.d.ts +32 -0
  5. package/dist/common/analytics/analytics-tracker.d.ts.map +1 -0
  6. package/dist/common/analytics/analytics.constants.d.ts +23 -0
  7. package/dist/common/analytics/analytics.constants.d.ts.map +1 -0
  8. package/dist/common/analytics/index.d.ts +4 -0
  9. package/dist/common/analytics/index.d.ts.map +1 -0
  10. package/dist/common/initialize/initialize.d.ts.map +1 -1
  11. package/dist/index.umd.js +16 -17
  12. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/attribution/helpers.js +1 -0
  13. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/attribution/web-attribution.js +1 -0
  14. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/browser-client-factory.js +1 -0
  15. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/browser-client.js +1 -0
  16. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/config/joined-config.js +1 -0
  17. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/config.js +1 -0
  18. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/constants.js +1 -0
  19. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/cookie-migration/index.js +1 -0
  20. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/default-tracking.js +1 -0
  21. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/det-notification.js +1 -0
  22. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/index.js +1 -0
  23. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/lib-prefix.js +1 -0
  24. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/plugins/context.js +1 -0
  25. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/plugins/file-download-tracking.js +1 -0
  26. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/plugins/form-interaction-tracking.js +1 -0
  27. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/plugins/network-connectivity-checker.js +1 -0
  28. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/storage/local-storage.js +1 -0
  29. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/storage/session-storage.js +1 -0
  30. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/transports/send-beacon.js +1 -0
  31. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/transports/xhr.js +1 -0
  32. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/types.js +1 -0
  33. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/utils/snippet-helper.js +1 -0
  34. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/version.js +1 -0
  35. package/dist/node_modules/.pnpm/@amplitude_analytics-connector@1.6.4/node_modules/@amplitude/analytics-connector/dist/analytics-connector.esm.js +1 -0
  36. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/analytics-connector.js +1 -0
  37. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/campaign/campaign-parser.js +1 -0
  38. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/config.js +1 -0
  39. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/cookie-name.js +1 -0
  40. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/core-client.js +1 -0
  41. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/diagnostics-client.js +1 -0
  42. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/diagnostics-storage.js +1 -0
  43. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/uncaught-sdk-errors.js +1 -0
  44. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js +1 -0
  45. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/identify.js +1 -0
  46. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/language.js +1 -0
  47. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/logger.js +1 -0
  48. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/network-observer.js +1 -0
  49. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/network-request-event.js +1 -0
  50. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js +1 -0
  51. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/helpers.js +1 -0
  52. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/identity.js +1 -0
  53. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/query-params.js +1 -0
  54. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/remote-config/remote-config-localstorage.js +1 -0
  55. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/remote-config/remote-config.js +1 -0
  56. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/revenue.js +1 -0
  57. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/session.js +1 -0
  58. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/storage/browser-storage.js +1 -0
  59. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/storage/cookie.js +1 -0
  60. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/storage/helpers.js +1 -0
  61. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/storage/memory.js +1 -0
  62. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/timeline.js +1 -0
  63. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js +1 -0
  64. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/transports/fetch.js +1 -0
  65. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js +1 -0
  66. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js +1 -0
  67. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js +1 -0
  68. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/frustration-interactions.js +1 -0
  69. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js +1 -0
  70. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js +1 -0
  71. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js +1 -0
  72. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js +1 -0
  73. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/status.js +1 -0
  74. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js +1 -0
  75. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js +1 -0
  76. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js +1 -0
  77. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/json-query.js +1 -0
  78. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js +1 -0
  79. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js +1 -0
  80. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js +1 -0
  81. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/sampling.js +1 -0
  82. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js +1 -0
  83. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/url-utils.js +1 -0
  84. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js +1 -0
  85. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js +1 -0
  86. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-action-click.js +1 -0
  87. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-change.js +1 -0
  88. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-click.js +1 -0
  89. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-dead-click.js +1 -0
  90. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-rage-click.js +1 -0
  91. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture-plugin.js +1 -0
  92. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/constants.js +1 -0
  93. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/data-extractor.js +1 -0
  94. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/frustration-plugin.js +1 -0
  95. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/helpers.js +1 -0
  96. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/hierarchy.js +1 -0
  97. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/libs/messenger.js +1 -0
  98. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/observables.js +1 -0
  99. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/actions.js +1 -0
  100. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/matchEventToFilter.js +1 -0
  101. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/triggers.js +1 -0
  102. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/version.js +1 -0
  103. package/dist/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.7.2/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/constants.js +1 -0
  104. package/dist/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.7.2/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/network-capture-plugin.js +1 -0
  105. package/dist/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.7.2/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/track-network-event.js +1 -0
  106. package/dist/node_modules/.pnpm/@amplitude_plugin-page-url-enrichment-browser@0.5.8/node_modules/@amplitude/plugin-page-url-enrichment-browser/lib/esm/page-url-enrichment.js +1 -0
  107. package/dist/node_modules/.pnpm/@amplitude_plugin-page-view-tracking-browser@2.6.5/node_modules/@amplitude/plugin-page-view-tracking-browser/lib/esm/page-view-tracking.js +1 -0
  108. package/dist/node_modules/.pnpm/@amplitude_plugin-page-view-tracking-browser@2.6.5/node_modules/@amplitude/plugin-page-view-tracking-browser/lib/esm/utils.js +1 -0
  109. package/dist/node_modules/.pnpm/@amplitude_plugin-web-vitals-browser@1.1.2/node_modules/@amplitude/plugin-web-vitals-browser/lib/esm/constants.js +1 -0
  110. package/dist/node_modules/.pnpm/@amplitude_plugin-web-vitals-browser@1.1.2/node_modules/@amplitude/plugin-web-vitals-browser/lib/esm/web-vitals-plugin.js +1 -0
  111. package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js +1 -1
  112. package/dist/node_modules/.pnpm/web-vitals@5.0.1/node_modules/web-vitals/dist/web-vitals.js +1 -0
  113. package/dist/node_modules/.pnpm/zen-observable-ts@1.1.0/node_modules/zen-observable-ts/module.js +1 -0
  114. package/dist/server/cards/cards.d.ts.map +1 -1
  115. package/dist/server/common/analytics/amplitude-manager.d.ts +33 -0
  116. package/dist/server/common/analytics/amplitude-manager.d.ts.map +1 -0
  117. package/dist/server/common/analytics/analytics-tracker.d.ts +32 -0
  118. package/dist/server/common/analytics/analytics-tracker.d.ts.map +1 -0
  119. package/dist/server/common/analytics/analytics.constants.d.ts +23 -0
  120. package/dist/server/common/analytics/analytics.constants.d.ts.map +1 -0
  121. package/dist/server/common/analytics/index.d.ts +4 -0
  122. package/dist/server/common/analytics/index.d.ts.map +1 -0
  123. package/dist/server/common/initialize/initialize.d.ts.map +1 -1
  124. package/dist/src/cards/cards.js +1 -1
  125. package/dist/src/common/analytics/amplitude-manager.js +1 -0
  126. package/dist/src/common/analytics/analytics-tracker.js +1 -0
  127. package/dist/src/common/analytics/analytics.constants.js +1 -0
  128. package/dist/src/common/initialize/initialize.js +1 -1
  129. package/package.json +4 -3
@@ -0,0 +1 @@
1
+ import{__values as r,__assign as t}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{LogLevel as e}from"../types/loglevel.js";var n=function(r){return void 0===r&&(r=0),((new Error).stack||"").split("\n").slice(2+r).map((function(r){return r.trim()}))},o=function(r){return function(){var e=t({},r.config);return{logger:e.loggerProvider,logLevel:e.logLevel}}},i=function(t,e){var n,o;e=(e=e.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var i=r(e.split(".")),l=i.next();!l.done;l=i.next()){var a=l.value;if(!(a in t))return;t=t[a]}}catch(r){n={error:r}}finally{try{l&&!l.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return t},l=function(t,e){return function(){var n,o,l={};try{for(var a=r(e),u=a.next();!u.done;u=a.next()){var s=u.value;l[s]=i(t,s)}}catch(r){n={error:r}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return l}},a=function(r,t,o,i,l){return void 0===l&&(l=null),function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];var s=o(),f=s.logger,c=s.logLevel;if(c&&c<e.Debug||!c||!f)return r.apply(l,a);var p={type:"invoke public method",name:t,args:a,stacktrace:n(1),time:{start:(new Date).toISOString()},states:{}};i&&p.states&&(p.states.before=i());var g=r.apply(l,a);return g&&g.promise?g.promise.then((function(){i&&p.states&&(p.states.after=i()),p.time&&(p.time.end=(new Date).toISOString()),f.debug(JSON.stringify(p,null,2))})):(i&&p.states&&(p.states.after=i()),p.time&&(p.time.end=(new Date).toISOString()),f.debug(JSON.stringify(p,null,2))),g}};export{a as debugWrapper,o as getClientLogConfig,l as getClientStates,n as getStacktrace,i as getValueByStringPath};
@@ -0,0 +1 @@
1
+ import{__assign as e}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{Identify as t}from"../identify.js";import{SpecialEventType as r}from"../types/event/event.js";var p=function(t,r,p){return e(e(e({},"string"==typeof t?{event_type:t}:t),p),r&&{event_properties:r})},n=function(t,p){return e(e({},p),{event_type:r.IDENTIFY,user_properties:t.getUserProperties()})},o=function(t,p,n,o){var s;return e(e({},o),{event_type:r.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:(s={},s[t]=p,s)})},s=function(p,n,o){var s,i=new t;return i.set(p,n),e(e({},o),{event_type:r.IDENTIFY,user_properties:i.getUserProperties(),groups:(s={},s[p]=n,s)})},i=function(t,p){return e(e({},p),{event_type:r.REVENUE,event_properties:t.getEventProperties()})};export{s as createGroupEvent,o as createGroupIdentifyEvent,n as createIdentifyEvent,i as createRevenueEvent,p as createTrackEvent};
@@ -0,0 +1 @@
1
+ import{__values as t,__spreadArray as e,__read as r}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";function n(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t||null==t}function l(t,e,r){t&&o({json:t,allowlist:e.map(i),excludelist:r.map(i),ancestors:[]})}function o(l){var i,s,u=l.json,c=l.targetObject,f=l.allowlist,p=l.excludelist,g=l.ancestors,y=l.parentObject,b=l.targetKey;c||(c=u);var d=Object.keys(c);try{for(var h=t(d),j=h.next();!j.done;j=h.next()){var v=j.value,m=e(e([],r(g),!1),[v],!1);n(c[v])?a(m,f)&&!a(m,p)||delete c[v]:o({json:u,targetObject:c[v],allowlist:f,excludelist:p,ancestors:m,parentObject:c,targetKey:v})}}catch(t){i={error:t}}finally{try{j&&!j.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}0===Object.keys(c).length&&y&&b&&delete y[b]}function i(t){return t.startsWith("/")&&(t=t.slice(1)),t.split("/").map((function(t){return t.replace(/~0/g,"~").replace(/~1/g,"/")}))}function s(t,e,r,n){if(void 0===r&&(r=0),void 0===n&&(n=0),n===e.length)return r===t.length;if(r===t.length){for(;n<e.length&&"**"===e[n];)n++;return n===e.length}var l=e[n];if("**"===l){if(n+1===e.length)return!0;for(var o=r;o<=t.length;o++)if(s(t,e,o,n+1))return!0;return!1}return("*"===l||l===t[r])&&s(t,e,r+1,n+1)}function a(t,e){return e.some((function(e){return s(t,e)}))}export{o as _pruneJson,s as isPathMatch,l as pruneJson,i as tokenizeJsonPath};
@@ -0,0 +1 @@
1
+ import{__values as r}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{Observable as n}from"../../../../../../../zen-observable-ts@1.1.0/node_modules/zen-observable-ts/module.js";function e(r,e){return new n((function(n){r.subscribe({next:function(r){e(r).then((function(r){return n.next(r)})).catch((function(r){return n.error(r)}))},error:function(r){n.error(r)},complete:function(){n.complete()}})}))}function t(e,t){return new n((function(n){var o=!1,l=new Set,u=function(){var n,e;o=!0;try{for(var t=r(l),u=t.next();!u.done;u=t.next()){var c=u.value;try{c.unsubscribe()}catch(r){}}}catch(r){n={error:r}}finally{try{u&&!u.done&&(e=t.return)&&e.call(t)}finally{if(n)throw n.error}}l.clear()},c=function(r){var e=r.subscribe({next:function(r){o||n.next(r)},error:function(r){o||(o=!0,n.error(r),u())},complete:function(){l.delete(e),o||0!==l.size||(n.complete(),u(),o=!0)}});l.add(e)};return c(e),c(t),u}))}function o(e){var t=new Set,o=null;function l(){null==o||o.unsubscribe(),o=null,t.clear()}return new n((function(n){return t.add(n),null===o&&(o=e.subscribe({next:function(n){var e,o,l;try{for(var u=r(t),c=u.next();!c.done;c=u.next()){var i=c.value;null===(l=i.next)||void 0===l||l.call(i,n)}}catch(r){e={error:r}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(e)throw e.error}}},error:function(n){var e,o,u;try{for(var c=r(t),i=c.next();!i.done;i=c.next()){var a=i.value;null===(u=a.error)||void 0===u||u.call(a,n)}}catch(r){e={error:r}}finally{try{i&&!i.done&&(o=c.return)&&o.call(c)}finally{if(e)throw e.error}}l()},complete:function(){var n,e,o;try{for(var u=r(t),c=u.next();!c.done;c=u.next()){var i=c.value;null===(o=i.complete)||void 0===o||o.call(i)}}catch(r){n={error:r}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(n)throw n.error}}l()}})),function(){t.delete(n),0===t.size&&o&&(o.unsubscribe(),o=null)}}))}export{n as Observable,e as asyncMap,t as merge,o as multicast};
@@ -0,0 +1 @@
1
+ import{Status as e}from"../types/status.js";var o=function(o,t,n){return void 0===t&&(t=0),void 0===n&&(n=e.Unknown),{event:o,code:t,message:n}};export{o as buildResult};
@@ -0,0 +1 @@
1
+ var r=function(r){return{promise:r||Promise.resolve()}};export{r as returnWrapper};
@@ -0,0 +1 @@
1
+ var r=function(r){var t=0;if(0===r.length)return t;for(var n=0;n<r.length;n++){t=(t<<5)-t+r.charCodeAt(n),t|=0}return t},t=function(t,n){var e=r(t.toString());return 31*Math.abs(e)%1e5/1e5<n};export{r as generateHashCode,t as isTimestampInSampleTemp};
@@ -0,0 +1 @@
1
+ function n(n){return n>=200&&n<300}export{n as isSuccessStatusCode};
@@ -0,0 +1 @@
1
+ var r=function(r,e){return!e||!e.length||e.some((function(e){return"string"==typeof e?r===e:r.match(e)}))},e=function(r,e){var n=r;try{n=decodeURI(r)}catch(r){null==e||e.error("Malformed URI sequence: ",r)}return n};export{e as getDecodeURI,r as isUrlMatchAllowlist};
@@ -0,0 +1 @@
1
+ import{__spreadArray as r,__read as t}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as n}from"../global-scope.js";var e=r([],t(Array(256).keys()),!1).map((function(r){return r.toString(16).padStart(2,"0")})),i=function(o){var a,l=n();if(!(null===(a=null==l?void 0:l.crypto)||void 0===a?void 0:a.getRandomValues))return function(r){return r?(r^16*Math.random()>>r/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,i)}(o);var u=l.crypto.getRandomValues(new Uint8Array(16));return u[6]=15&u[6]|64,u[8]=63&u[8]|128,r([],t(u.entries()),!1).map((function(r){var n=t(r,2),i=n[0],o=n[1];return[4,6,8,10].includes(i)?"-".concat(e[o]):e[o]})).join("")};export{i as UUID};
@@ -0,0 +1 @@
1
+ import{__values as r}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";var e=function(r){if(Object.keys(r).length>1e3)return!1;for(var e in r){var n=r[e];if(!t(e,n))return!1}return!0},t=function(t,n){var i,o;if("string"!=typeof t)return!1;if(Array.isArray(n)){var f=!0;try{for(var l=r(n),u=l.next();!u.done;u=l.next()){var s=u.value;if(Array.isArray(s))return!1;if("object"==typeof s)f=f&&e(s);else if(!["number","string"].includes(typeof s))return!1;if(!f)return!1}}catch(r){i={error:r}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}}else{if(null==n)return!1;if("object"==typeof n)return e(n);if(!["number","string","boolean"].includes(typeof n))return!1}return!0};export{e as isValidObject,t as isValidProperties};
@@ -0,0 +1 @@
1
+ import{getClosestElement as e,filterOutNonTrackableEvents as t}from"../helpers.js";import{AMPLITUDE_ELEMENT_CLICKED_EVENT as r}from"../constants.js";import{merge as l,asyncMap as n}from"../../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";function o(o){var s=o.amplitude,c=o.allObservables,i=o.options,u=o.getEventProperties,a=o.shouldTrackEvent,m=o.shouldTrackActionClick,k=c.clickObservable,f=c.mutationObservable,v=c.navigateObservable,p=k.filter((function(e){return!a("click",e.closestTrackedAncestor)})).map((function(t){var r=e(t.event.target,i.actionClickAllowlist);return t.closestTrackedAncestor=r,null!==t.closestTrackedAncestor&&(t.targetElementProperties=u(t.type,t.closestTrackedAncestor)),t})).filter(t).filter((function(e){return m("click",e.closestTrackedAncestor)})),b=v?l(f,v):f,d=l(p,b),T=null,A=null;return n(d,(function(e){if(T&&(clearTimeout(T),T=null),"click"===e.type)return A=e,T=setTimeout((function(){T=null,A=null}),500),Promise.resolve(null);if(A){var t=A;return A=null,Promise.resolve(t)}return Promise.resolve(null)})).subscribe((function(e){e&&(null==s||s.track(r,u("click",e.closestTrackedAncestor)))}))}export{o as trackActionClick};
@@ -0,0 +1 @@
1
+ import{filterOutNonTrackableEvents as e}from"../helpers.js";import{AMPLITUDE_ELEMENT_CHANGED_EVENT as r}from"../constants.js";function t(t){var n=t.amplitude,s=t.allObservables,c=t.getEventProperties,a=t.shouldTrackEvent,o=t.evaluateTriggers;return s.changeObservable.filter(e).filter((function(e){return a("change",e.closestTrackedAncestor)})).map((function(e){return o(e)})).subscribe((function(e){null==n||n.track(r,c("change",e.closestTrackedAncestor))}))}export{t as trackChange};
@@ -0,0 +1 @@
1
+ import{filterOutNonTrackableEvents as r}from"../helpers.js";import{AMPLITUDE_ELEMENT_CLICKED_EVENT as e}from"../constants.js";function t(t){var n=t.amplitude,l=t.allObservables,s=t.shouldTrackEvent,c=t.evaluateTriggers;return l.clickObservable.filter(r).filter((function(r){return s("click",r.closestTrackedAncestor)})).map((function(r){return c(r)})).subscribe((function(r){null==n||n.track(e,r.targetElementProperties)}))}export{t as trackClicks};
@@ -0,0 +1 @@
1
+ import{__assign as e}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{filterOutNonTrackableEvents as t}from"../helpers.js";import{AMPLITUDE_ELEMENT_DEAD_CLICKED_EVENT as l}from"../constants.js";import{merge as r,asyncMap as i}from"../../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";var n=["mutation","navigate"];function s(s){var o=s.amplitude,c=s.allObservables,a=s.getEventProperties,u=s.shouldTrackDeadClick,m=c.clickObservable,p=c.mutationObservable,v=c.navigateObservable,b=m.filter((function(e){return t(e)&&u("click",e.closestTrackedAncestor)&&e.event.target instanceof Element&&null===e.event.target.closest('a[target="_blank"]')})),d=v?r(p,v):p,f=r(b,d),k=null;return i(f,(function(e){return k&&n.includes(e.type)?(clearTimeout(k),k=null,Promise.resolve(null)):"click"===e.type?k?Promise.resolve(null):new Promise((function(t){k=setTimeout((function(){t(e),k=null}),3e3)})):Promise.resolve(null)})).subscribe((function(t){if(t){var r={"[Amplitude] X":t.event.clientX,"[Amplitude] Y":t.event.clientY};o.track(l,e(e({},a("click",t.closestTrackedAncestor)),r),{time:t.timestamp})}}))}export{s as trackDeadClick};
@@ -0,0 +1 @@
1
+ import{__awaiter as t,__generator as e,__assign as n}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{AMPLITUDE_ELEMENT_RAGE_CLICKED_EVENT as i}from"../constants.js";import{asyncMap as l}from"../../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";import{DEFAULT_RAGE_CLICK_WINDOW_MS as r,DEFAULT_RAGE_CLICK_THRESHOLD as o,DEFAULT_RAGE_CLICK_OUT_OF_BOUNDS_THRESHOLD as u}from"../../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/frustration-interactions.js";var s=o,a=r,m=u;function c(t,e){var n,i,l,r,o=e.event,u=o.clientX,s=o.clientY;t.yMin=Math.min(null!==(n=t.yMin)&&void 0!==n?n:s,s),t.yMax=Math.max(null!==(i=t.yMax)&&void 0!==i?i:s,s),t.xMin=Math.min(null!==(l=t.xMin)&&void 0!==l?l:u,u),t.xMax=Math.max(null!==(r=t.xMax)&&void 0!==r?r:u,u),t.isOutOfBounds=t.yMax-t.yMin>m||t.xMax-t.xMin>m}function p(t){if(0===t.length)return null;var e=t[0],i=t[t.length-1];return{rageClickEvent:n({"[Amplitude] Begin Time":new Date(e.timestamp).toISOString(),"[Amplitude] End Time":new Date(i.timestamp).toISOString(),"[Amplitude] Duration":i.timestamp-e.timestamp,"[Amplitude] Clicks":t.map((function(t){return{X:t.event.clientX,Y:t.event.clientY,Time:t.timestamp}})),"[Amplitude] Click Count":t.length},e.targetElementProperties),time:e.timestamp}}function d(n){var r=this,o=n.amplitude,u=n.allObservables,m=n.shouldTrackRageClick,d=u.clickObservable,f=[],v={},h=null;return l(d.filter((function(t){return m("click",t.closestTrackedAncestor)})),(function(n){return t(r,void 0,void 0,(function(){var t;return e(this,(function(e){return c(v,n),t=null,0===f.length||function(t,e){return t.length>0&&t[t.length-1].closestTrackedAncestor!==e.closestTrackedAncestor}(f,n)||function(t,e){var n=t[Math.max(0,t.length-s+1)];return e.timestamp-n.timestamp>=a}(f,n)||v.isOutOfBounds?(h&&(t=p(f)),function(t){f=[],v={},t&&(c(v,t),f.push(t))}(n)):f.push(n),h&&(clearTimeout(h.timerId),h.resolve(t),h=null),f.length>=s?[2,new Promise((function(t){h={resolve:t,timerId:setTimeout((function(){t(p(f))}),a)}}))]:[2,null]}))}))})).subscribe((function(t){null!==t&&o.track(i,t.rageClickEvent,{time:t.time})}))}export{d as trackRageClicks};
@@ -0,0 +1 @@
1
+ import{__awaiter as e,__generator as t,__values as n,__assign as o,__spreadArray as i,__read as r}from"../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{VERSION as l}from"./version.js";import{PLUGIN_NAME as a,AMPLITUDE_ORIGINS_MAP as s}from"./constants.js";import{createShouldTrackEvent as c}from"./helpers.js";import{WindowMessenger as u}from"./libs/messenger.js";import{trackClicks as d}from"./autocapture/track-click.js";import{trackChange as v}from"./autocapture/track-change.js";import{trackActionClick as p}from"./autocapture/track-action-click.js";import{createClickObservable as g,createMutationObservable as m}from"./observables.js";import{groupLabeledEventIdsByEventType as b,createLabeledEventToTriggerMap as f,createTriggerEvaluator as h}from"./pageActions/triggers.js";import{DataExtractor as w}from"./data-extractor.js";import{DEFAULT_CSS_SELECTOR_ALLOWLIST as A,DEFAULT_ACTION_CLICK_ALLOWLIST as E,DEFAULT_DATA_ATTRIBUTE_PREFIX as y}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js";import{multicast as k}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";import{Observable as j}from"../../../../../../zen-observable-ts@1.1.0/node_modules/zen-observable-ts/module.js";import{getGlobalScope as O}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";var C;!function(e){e.ClickObservable="clickObservable",e.ChangeObservable="changeObservable",e.NavigateObservable="navigateObservable",e.MutationObservable="mutationObservable"}(C||(C={}));var x=function(x,P){var _,S,T,L,R,z,M,N;void 0===x&&(x={}),null==P||P.diagnosticsClient.setTag("plugin.autocapture.version",l);var U=x.dataAttributePrefix,Z=void 0===U?y:U,D=x.visualTaggingOptions,I=void 0===D?{enabled:!0,messenger:new u}:D;x.cssSelectorAllowlist=null!==(_=x.cssSelectorAllowlist)&&void 0!==_?_:A,x.actionClickAllowlist=null!==(S=x.actionClickAllowlist)&&void 0!==S?S:E,x.debounceTime=null!==(T=x.debounceTime)&&void 0!==T?T:0,x.pageUrlExcludelist=null===(L=x.pageUrlExcludelist)||void 0===L?void 0:L.reduce((function(e,t){if("string"==typeof t&&e.push(t),t instanceof RegExp&&e.push(t),"object"==typeof t&&null!==t&&"pattern"in t)try{e.push(new RegExp(t.pattern))}catch(n){return console.warn("Invalid regex pattern: ".concat(t.pattern),n),e}return e}),[]);var K=a,q=[],B=new w(x,P),F=b(Object.values(null!==(z=null===(R=x.pageActions)||void 0===R?void 0:R.labeledEvents)&&void 0!==z?z:{})),G=f(null!==(N=null===(M=x.pageActions)||void 0===M?void 0:M.triggers)&&void 0!==N?N:[]),H=h(F,G,B,x);return{name:K,type:"enrichment",setup:function(n,l){return e(void 0,void 0,void 0,(function(){var e,a,u,h,w,A,E,y,P,_;return t(this,(function(t){return"undefined"==typeof document||(n.fetchRemoteConfig&&(n.remoteConfigClient?n.remoteConfigClient.subscribe("analyticsSDK.pageActions","all",(function(e){!function(e){var t,n;e&&(x.pageActions=o(o({},x.pageActions),e),F=b(Object.values(null!==(t=x.pageActions.labeledEvents)&&void 0!==t?t:{})),G=f(null!==(n=x.pageActions.triggers)&&void 0!==n?n:[]),H.update(F,G,x))}(e)})):n.loggerProvider.debug("Remote config client is not provided, skipping remote config fetch")),e=c(x,x.cssSelectorAllowlist),a=c(x,x.actionClickAllowlist),u=function(){var e,t,n=k(g().map((function(e){return B.addAdditionalEventProperties(e,"click",x.cssSelectorAllowlist,Z)}))),o=k(new j((function(e){var t,n=function(t){var n=B.addAdditionalEventProperties(t,"change",x.cssSelectorAllowlist,Z);e.next(n)};return null===(t=O())||void 0===t||t.document.addEventListener("change",n,{capture:!0}),function(){var e;return null===(e=O())||void 0===e?void 0:e.document.removeEventListener("change",n)}})));window.navigation&&(t=k(new j((function(e){var t=function(t){var n=B.addAdditionalEventProperties(t,"navigate",x.cssSelectorAllowlist,Z);e.next(n)};return window.navigation.addEventListener("navigate",t),function(){window.navigation.removeEventListener("navigate",t)}}))));var i=k(m().map((function(e){return B.addAdditionalEventProperties(e,"mutation",x.cssSelectorAllowlist,Z)})));return(e={})[C.ChangeObservable]=o,e[C.ClickObservable]=n,e[C.MutationObservable]=i,e[C.NavigateObservable]=t,e}(),h=d({allObservables:u,amplitude:l,shouldTrackEvent:e,evaluateTriggers:H.evaluate.bind(H)}),q.push(h),w=v({allObservables:u,getEventProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return B.getEventProperties.apply(B,i(i([],r(e),!1),[Z],!1))},amplitude:l,shouldTrackEvent:e,evaluateTriggers:H.evaluate.bind(H)}),q.push(w),A=p({allObservables:u,options:x,getEventProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return B.getEventProperties.apply(B,i(i([],r(e),!1),[Z],!1))},amplitude:l,shouldTrackEvent:e,shouldTrackActionClick:a}),A&&q.push(A),null===(P=null==n?void 0:n.loggerProvider)||void 0===P||P.log("".concat(K," has been successfully added.")),window.opener&&I.enabled&&(E=x.cssSelectorAllowlist,y=x.actionClickAllowlist,null===(_=I.messenger)||void 0===_||_.setup(o(o({dataExtractor:B,logger:null==n?void 0:n.loggerProvider},(null==n?void 0:n.serverZone)&&{endpoint:s[n.serverZone]}),{isElementSelectable:c(x,i(i([],r(E),!1),r(y),!1)),cssSelectorAllowlist:E,actionClickAllowlist:y})))),[2]}))}))},execute:function(n){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){return[2,n]}))}))},teardown:function(){return e(void 0,void 0,void 0,(function(){var e,o,i,r;return t(this,(function(t){try{for(e=n(q),o=e.next();!o.done;o=e.next())o.value.unsubscribe()}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=e.return)&&r.call(e)}finally{if(i)throw i.error}}return[2]}))}))}}};export{C as ObservablesEnum,x as autocapturePlugin};
@@ -0,0 +1 @@
1
+ var e="@amplitude/plugin-autocapture-browser",t="@amplitude/plugin-frustration-browser",l="[Amplitude] Element Clicked",i="[Amplitude] Dead Click",m="[Amplitude] Rage Click",p="[Amplitude] Element Changed",a="[Amplitude] Element ID",u="[Amplitude] Element Class",d="[Amplitude] Element Tag",n="[Amplitude] Element Text",s="[Amplitude] Element Hierarchy",A="[Amplitude] Element Href",r="[Amplitude] Element Position Left",g="[Amplitude] Element Position Top",o="[Amplitude] Element Aria Label",E="[Amplitude] Element Attributes",c="[Amplitude] Element Parent Label",h="[Amplitude] Page URL",b="[Amplitude] Page Title",C="[Amplitude] Viewport Height",P="[Amplitude] Viewport Width",T="https://app.amplitude.com",k="https://app.eu.amplitude.com",w="https://apps.stag2.amplitude.com",L={US:T,EU:k,STAGING:w},f="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",v="amp-visual-tagging-selector-highlight",H="data-amp-mask-attributes",U=25,x=128;export{p as AMPLITUDE_ELEMENT_CHANGED_EVENT,l as AMPLITUDE_ELEMENT_CLICKED_EVENT,i as AMPLITUDE_ELEMENT_DEAD_CLICKED_EVENT,m as AMPLITUDE_ELEMENT_RAGE_CLICKED_EVENT,o as AMPLITUDE_EVENT_PROP_ELEMENT_ARIA_LABEL,E as AMPLITUDE_EVENT_PROP_ELEMENT_ATTRIBUTES,u as AMPLITUDE_EVENT_PROP_ELEMENT_CLASS,s as AMPLITUDE_EVENT_PROP_ELEMENT_HIERARCHY,A as AMPLITUDE_EVENT_PROP_ELEMENT_HREF,a as AMPLITUDE_EVENT_PROP_ELEMENT_ID,c as AMPLITUDE_EVENT_PROP_ELEMENT_PARENT_LABEL,r as AMPLITUDE_EVENT_PROP_ELEMENT_POSITION_LEFT,g as AMPLITUDE_EVENT_PROP_ELEMENT_POSITION_TOP,d as AMPLITUDE_EVENT_PROP_ELEMENT_TAG,n as AMPLITUDE_EVENT_PROP_ELEMENT_TEXT,b as AMPLITUDE_EVENT_PROP_PAGE_TITLE,h as AMPLITUDE_EVENT_PROP_PAGE_URL,C as AMPLITUDE_EVENT_PROP_VIEWPORT_HEIGHT,P as AMPLITUDE_EVENT_PROP_VIEWPORT_WIDTH,T as AMPLITUDE_ORIGIN,L as AMPLITUDE_ORIGINS_MAP,k as AMPLITUDE_ORIGIN_EU,w as AMPLITUDE_ORIGIN_STAGING,v as AMPLITUDE_VISUAL_TAGGING_HIGHLIGHT_CLASS,f as AMPLITUDE_VISUAL_TAGGING_SELECTOR_SCRIPT_URL,H as DATA_AMP_MASK_ATTRIBUTES,t as FRUSTRATION_PLUGIN_NAME,x as MAX_ATTRIBUTE_LENGTH,U as MAX_MASK_TEXT_PATTERNS,e as PLUGIN_NAME};
@@ -0,0 +1 @@
1
+ import{__spreadArray as t,__read as e,__values as r}from"../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{DATA_AMP_MASK_ATTRIBUTES as n,AMPLITUDE_EVENT_PROP_ELEMENT_HIERARCHY as i,AMPLITUDE_EVENT_PROP_ELEMENT_TAG as a,AMPLITUDE_EVENT_PROP_ELEMENT_TEXT as o,AMPLITUDE_EVENT_PROP_ELEMENT_POSITION_LEFT as l,AMPLITUDE_EVENT_PROP_ELEMENT_POSITION_TOP as s,AMPLITUDE_EVENT_PROP_ELEMENT_ATTRIBUTES as c,AMPLITUDE_EVENT_PROP_ELEMENT_PARENT_LABEL as u,AMPLITUDE_EVENT_PROP_PAGE_URL as p,AMPLITUDE_EVENT_PROP_PAGE_TITLE as d,AMPLITUDE_EVENT_PROP_VIEWPORT_HEIGHT as v,AMPLITUDE_EVENT_PROP_VIEWPORT_WIDTH as f,AMPLITUDE_EVENT_PROP_ELEMENT_ID as g,AMPLITUDE_EVENT_PROP_ELEMENT_CLASS as h,AMPLITUDE_EVENT_PROP_ELEMENT_ARIA_LABEL as m,MAX_ATTRIBUTE_LENGTH as y,AMPLITUDE_EVENT_PROP_ELEMENT_HREF as T,MAX_MASK_TEXT_PATTERNS as x}from"./constants.js";import{parseAttributesToMask as b,extractPrefixedAttributes as w,removeEmptyProperties as E,isElementBasedEvent as S,isElementPointerCursor as A,getClosestElement as P}from"./helpers.js";import{getAncestors as _,getElementProperties as j}from"./hierarchy.js";import{getDataSource as k}from"./pageActions/actions.js";import{replaceSensitiveString as M,getPageTitle as C,TEXT_MASK_ATTRIBUTE as L,MASKED_TEXT_VALUE as N}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/helpers.js";import{getDecodeURI as H}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/url-utils.js";var R=function(R,D){var q,B,O,F=this;this.replaceSensitiveString=function(t){return M(t,F.additionalMaskTextPatterns)},this.getHierarchy=function(i){var a,o,l,s,c,u=performance.now();if(!i)return[];for(var p=_(i),d=new Map,v=p.length-1;v>=0;v--){var f=p[v];if(f){var g=b(f.getAttribute(n)),h=v===p.length-1?[]:null!==(l=d.get(p[v+1]))&&void 0!==l?l:new Set,m=new Set(t(t([],e(h),!1),e(g),!1));d.set(f,m)}}c=p.map((function(t){var e;return j(t,null!==(e=d.get(t))&&void 0!==e?e:new Set)}));var y=function(t){(null==t?void 0:t.attrs)&&Object.entries(t.attrs).forEach((function(r){var n=e(r,2),i=n[0],a=n[1];t.attrs&&(t.attrs[i]=F.replaceSensitiveString(a))}))};try{for(var T=r(c),x=T.next();!x.done;x=T.next())y(x.value)}catch(t){a={error:t}}finally{try{x&&!x.done&&(o=T.return)&&o.call(T)}finally{if(a)throw a.error}}var w=performance.now();return null===(s=F.diagnosticsClient)||void 0===s||s.recordHistogram("autocapturePlugin.getHierarchy",w-u),c},this.getNearestLabel=function(t){var e,r=t.parentElement;if(!r)return"";try{e=r.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch(t){e=null}return e?F.getText(e):F.getNearestLabel(r)},this.getEventProperties=function(t,e,r){var n,x,b,S,A=null===(b=null===(x=null==e?void 0:e.tagName)||void 0===x?void 0:x.toLowerCase)||void 0===b?void 0:b.call(x),P="function"==typeof e.getBoundingClientRect?e.getBoundingClientRect():{left:null,top:null},_=F.getHierarchy(e),j=null===(S=_[0])||void 0===S?void 0:S.attrs,k=F.getNearestLabel(e),M=w(null!=j?j:{},r),L=((n={})[i]=_,n[a]=A,n[o]=F.getText(e),n[l]=null==P.left?null:Math.round(P.left),n[s]=null==P.top?null:Math.round(P.top),n[c]=M,n[u]=k,n[p]=H(window.location.href.split("?")[0]),n[d]=C(F.replaceSensitiveString),n[v]=window.innerHeight,n[f]=window.innerWidth,n);if(L[g]=e.getAttribute("id")||"",L[h]=e.getAttribute("class"),L[m]=null==j?void 0:j["aria-label"],"a"===A&&"click"===t&&e instanceof HTMLAnchorElement){var N=e.href.substring(0,y);L[T]=F.replaceSensitiveString(N)}return E(L)},this.addAdditionalEventProperties=function(t,e,r,n,i){void 0===i&&(i=!1);var a={event:t,timestamp:Date.now(),type:e};if(S(a)&&null!==a.event.target){if(i&&A(a.event.target,a.type))return a.closestTrackedAncestor=a.event.target,a.targetElementProperties=F.getEventProperties(a.type,a.closestTrackedAncestor,n),a;var o=P(a.event.target,r);return o&&(a.closestTrackedAncestor=o,a.targetElementProperties=F.getEventProperties(a.type,o,n)),a}return a},this.extractDataFromDataSource=function(t,e){if("DOM_ELEMENT"===t.sourceType){var r=k(t,e);if(!r)return;return"TEXT"===t.elementExtractType?F.getText(r):"ATTRIBUTE"===t.elementExtractType&&t.attribute?r.getAttribute(t.attribute):void 0}},this.getText=function(t){if(null!==t.closest("[".concat(L,"]")))return N;var e="";if(t.querySelector("[".concat(L,"], [contenteditable]"))){var r=t.cloneNode(!0);r.querySelectorAll("[".concat(L,"], [contenteditable]")).forEach((function(t){t.innerText=N})),e=r.innerText||""}else e=t.innerText||"";return F.replaceSensitiveString(e.substring(0,255)).replace(/\s+/g," ").trim()},this.getEventTagProps=function(t){var e,r,n;if(!t)return{};var i=null===(n=null===(r=null==t?void 0:t.tagName)||void 0===r?void 0:r.toLowerCase)||void 0===n?void 0:n.call(r),l=((e={})[a]=i,e[o]=F.getText(t),e[p]=window.location.href.split("?")[0],e);return E(l)},this.diagnosticsClient=null==D?void 0:D.diagnosticsClient;var I=null!==(O=R.maskTextRegex)&&void 0!==O?O:[],U=[];try{for(var W=r(I),X=W.next();!X.done;X=W.next()){var z=X.value;if(U.length>=x)break;if(z instanceof RegExp)U.push(z);else if("pattern"in z&&"string"==typeof z.pattern)try{U.push(new RegExp(z.pattern,"i"))}catch(t){}}}catch(t){q={error:t}}finally{try{X&&!X.done&&(B=W.return)&&B.call(W)}finally{if(q)throw q.error}}this.additionalMaskTextPatterns=U};export{R as DataExtractor};
@@ -0,0 +1 @@
1
+ import{__spreadArray as e,__read as t,__awaiter as r,__generator as i,__values as n,__assign as o}from"../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{FRUSTRATION_PLUGIN_NAME as a}from"./constants.js";import{createShouldTrackEvent as l}from"./helpers.js";import{trackDeadClick as s}from"./autocapture/track-dead-click.js";import{trackRageClicks as u}from"./autocapture/track-rage-click.js";import{ObservablesEnum as d}from"./autocapture-plugin.js";import{createClickObservable as c,createMutationObservable as v}from"./observables.js";import{DataExtractor as m}from"./data-extractor.js";import{DEFAULT_RAGE_CLICK_ALLOWLIST as p,DEFAULT_DEAD_CLICK_ALLOWLIST as f}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/frustration-interactions.js";import{DEFAULT_DATA_ATTRIBUTE_PREFIX as b}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js";import{multicast as g}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";import{Observable as y}from"../../../../../../zen-observable-ts@1.1.0/node_modules/zen-observable-ts/module.js";var w=function(w){var h,j,k,_,x;void 0===w&&(w={});var E=a,P=[],A=null!==(j=null===(h=w.rageClicks)||void 0===h?void 0:h.cssSelectorAllowlist)&&void 0!==j?j:p,C=null!==(_=null===(k=w.deadClicks)||void 0===k?void 0:k.cssSelectorAllowlist)&&void 0!==_?_:f,O=null!==(x=w.dataAttributePrefix)&&void 0!==x?x:b,S=new m(w),z=e([],t(new Set(e(e([],t(A),!1),t(C),!1))),!1);return{name:E,type:"enrichment",setup:function(e,t){return r(void 0,void 0,void 0,(function(){var r,n,a,m,p,f;return i(this,(function(i){return"undefined"==typeof document||(r=l(w,A),n=l(w,C),a=function(){var e,t,r=g(c("pointerdown").map((function(e){return S.addAdditionalEventProperties(e,"click",z,O,!0)}))),i=g(v().map((function(e){return S.addAdditionalEventProperties(e,"mutation",z,O)})));if(window.navigation){var n=new y((function(e){var t=function(t){e.next(o(o({},t),{type:"navigate"}))};return window.navigation.addEventListener("navigate",t),function(){window.navigation.removeEventListener("navigate",t)}}));t=g(n.map((function(e){return S.addAdditionalEventProperties(e,"navigate",z,O)})))}return(e={})[d.ClickObservable]=r,e[d.MutationObservable]=i,e[d.NavigateObservable]=t,e}(),m=u({allObservables:a,amplitude:t,shouldTrackRageClick:r}),P.push(m),p=s({amplitude:t,allObservables:a,getEventProperties:function(e,t){return S.getEventProperties(e,t,O)},shouldTrackDeadClick:n}),P.push(p),null===(f=null==e?void 0:e.loggerProvider)||void 0===f||f.log("".concat(E," has been successfully added."))),[2]}))}))},execute:function(e){return r(void 0,void 0,void 0,(function(){return i(this,(function(t){return[2,e]}))}))},teardown:function(){return r(void 0,void 0,void 0,(function(){var e,t,r,o;return i(this,(function(i){try{for(e=n(P),t=e.next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){r={error:e}}finally{try{t&&!t.done&&(o=e.return)&&o.call(e)}finally{if(r)throw r.error}}return[2]}))}))}}};export{w as frustrationPlugin};
@@ -0,0 +1 @@
1
+ import{__read as t}from"../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{isUrlMatchAllowlist as e}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/url-utils.js";var n=["input","select","textarea"],r=function(t,e){var n,r=null===(n=null===window||void 0===window?void 0:window.getComputedStyle)||void 0===n?void 0:n.call(window,t);return"pointer"===(null==r?void 0:r.getPropertyValue("cursor"))&&"click"===e},i=function(t,n,i){return void 0===i&&(i=!1),function(o,l){var u,c,a=t.pageUrlAllowlist,s=t.pageUrlExcludelist,d=t.shouldTrackEventResolver,v=null===(c=null===(u=null==l?void 0:l.tagName)||void 0===u?void 0:u.toLowerCase)||void 0===c?void 0:c.call(u);if(!v)return!1;if(d)return d(o,l);if(!e(window.location.href,a))return!1;if(s&&s.length>0&&e(window.location.href,s))return!1;var f=String(null==l?void 0:l.getAttribute("type"))||"";if("string"==typeof f)switch(f.toLowerCase()){case"hidden":case"password":return!1}var p=r(l,o);if(i&&p)return!0;if(n){var m=n.some((function(t){var e;return!!(null===(e=null==l?void 0:l.matches)||void 0===e?void 0:e.call(l,t))}));if(!m)return!1}switch(v){case"input":case"select":case"textarea":return"change"===o||"click"===o;default:return!!p||"click"===o}}},o=function(t){var e,r,i,o=null===(r=null===(e=null==t?void 0:t.tagName)||void 0===e?void 0:e.toLowerCase)||void 0===r?void 0:r.call(e),l=t instanceof HTMLElement&&"true"===(null===(i=t.getAttribute("contenteditable"))||void 0===i?void 0:i.toLowerCase());return!n.includes(o)&&!l},l=function(t){return t?t.split(",").map((function(t){return t.trim()})).filter((function(t){return t.length>0&&"id"!==t&&"class"!==t})):[]},u=function(e,n){return Object.entries(e).reduce((function(e,r){var i=t(r,2),o=i[0],l=i[1];if(o.startsWith(n)){var u=o.replace(n,"");u&&(e[u]=l||"")}return e}),{})},c=function(t){return null==t||"object"==typeof t&&0===Object.keys(t).length||"string"==typeof t&&0===t.trim().length},a=function(t){return Object.keys(t).reduce((function(e,n){var r=t[n];return c(r)||(e[n]=r),e}),{})},s=function(t,e){return t?e.some((function(e){var n;return null===(n=null==t?void 0:t.matches)||void 0===n?void 0:n.call(t,e)}))?t:s(null==t?void 0:t.parentElement,e):null},d=function(t){return new Promise((function(e,n){var r;try{var i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src=t,i.addEventListener("load",(function(){e({status:!0})}),{once:!0}),i.addEventListener("error",(function(){n({status:!1,message:"Failed to load the script ".concat(t)})})),null===(r=document.head)||void 0===r||r.appendChild(i)}catch(t){n(t)}}))};function v(){return"".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9))}var f=function(t){return!(null===t.event.target||!t.closestTrackedAncestor)};function p(t){return"click"===t.type||"change"===t.type}export{d as asyncLoadScript,i as createShouldTrackEvent,u as extractPrefixedAttributes,f as filterOutNonTrackableEvents,v as generateUniqueId,s as getClosestElement,p as isElementBasedEvent,r as isElementPointerCursor,c as isEmpty,o as isNonSensitiveElement,l as parseAttributesToMask,a as removeEmptyProperties};
@@ -0,0 +1 @@
1
+ import{__values as e}from"../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{isNonSensitiveElement as t}from"./helpers.js";import{MAX_ATTRIBUTE_LENGTH as r,DATA_AMP_MASK_ATTRIBUTES as n}from"./constants.js";import{MASKED_TEXT_VALUE as a,TEXT_MASK_ATTRIBUTE as i}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/helpers.js";var l=new Set(["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot",n,i]),o=["type"],s=["svg","path","g"],u=["password","hidden"];function d(n,i){var d,m,p,c,f,v;if(null===n)return null;var g=String(n.tagName).toLowerCase(),y={tag:g},h=Array.from(null!==(c=null===(p=n.parentElement)||void 0===p?void 0:p.children)&&void 0!==c?c:[]);h.length&&(y.index=h.indexOf(n),y.indexOfType=h.filter((function(e){return e.tagName===n.tagName})).indexOf(n));var b=null===(v=null===(f=n.previousElementSibling)||void 0===f?void 0:f.tagName)||void 0===v?void 0:v.toLowerCase();b&&(y.prevSib=String(b));var S=n.getAttribute("id");S&&(y.id=String(S));var x=Array.from(n.classList);x.length&&(y.classes=x);var _={},k=Array.from(n.attributes).filter((function(e){return!l.has(e.name)})),w=!t(n);if(!u.includes(String(n.getAttribute("type")))&&!s.includes(g))try{for(var j=e(k),A=j.next();!A.done;A=j.next()){var N=A.value;w&&!o.includes(N.name)||(i.has(N.name)?_[N.name]=a:_[N.name]=String(N.value).substring(0,r))}}catch(e){d={error:e}}finally{try{A&&!A.done&&(m=j.return)&&m.call(j)}finally{if(d)throw d.error}}return Object.keys(_).length&&(y.attrs=_),y}function m(e){var t=[];if(!e)return t;t.push(e);for(var r=e.parentElement;r&&"HTML"!==r.tagName;)t.push(r),r=r.parentElement;return t}export{m as getAncestors,d as getElementProperties};
@@ -0,0 +1 @@
1
+ import{AMPLITUDE_ORIGIN as e,AMPLITUDE_VISUAL_TAGGING_HIGHLIGHT_CLASS as t,AMPLITUDE_VISUAL_TAGGING_SELECTOR_SCRIPT_URL as o}from"../constants.js";import{generateUniqueId as i,asyncLoadScript as n}from"../helpers.js";import{VERSION as l}from"../version.js";import{DataExtractor as a}from"../data-extractor.js";var s=function(){function s(t){var o=(void 0===t?{}:t).origin,i=void 0===o?e:o,n=this;this.endpoint=e,this.requestCallbacks={},this.onSelect=function(e){n.notify({action:"element-selected",data:e})},this.onTrack=function(e,t){"selector-mode-changed"===e?n.notify({action:"track-selector-mode-changed",data:t}):"selector-moved"===e&&n.notify({action:"track-selector-moved",data:t})},this.endpoint=i}return s.prototype.notify=function(e){var t,o,i,n;null===(o=null===(t=this.logger)||void 0===t?void 0:t.debug)||void 0===o||o.call(t,"Message sent: ",JSON.stringify(e)),null===(n=null===(i=window.opener)||void 0===i?void 0:i.postMessage)||void 0===n||n.call(i,e,this.endpoint)},s.prototype.sendRequest=function(e,t,o){var n=this;void 0===o&&(o={timeout:15e3});var l=i(),a={id:l,action:e,args:t};return new Promise((function(t,i){n.requestCallbacks[l]={resolve:t,reject:i},n.notify(a),(null==o?void 0:o.timeout)>0&&setTimeout((function(){i(new Error("".concat(e," timed out (id: ").concat(l,")"))),delete n.requestCallbacks[l]}),o.timeout)}))},s.prototype.handleResponse=function(e){var t;this.requestCallbacks[e.id]?(this.requestCallbacks[e.id].resolve(e.responseData),delete this.requestCallbacks[e.id]):null===(t=this.logger)||void 0===t||t.warn("No callback found for request id: ".concat(e.id))},s.prototype.setup=function(i){var s=this,r=void 0===i?{dataExtractor:new a({})}:i,c=r.logger,d=r.endpoint,u=r.isElementSelectable,v=r.cssSelectorAllowlist,g=r.actionClickAllowlist,p=r.dataExtractor;this.logger=c,d&&this.endpoint===e&&(this.endpoint=d);var f=null;window.addEventListener("message",(function(e){var i,a,r,c,d;if(null===(a=null===(i=s.logger)||void 0===i?void 0:i.debug)||void 0===a||a.call(i,"Message received: ",JSON.stringify(e)),s.endpoint===e.origin){var h=null==e?void 0:e.data,m=null==h?void 0:h.action;if(m)if("id"in h)null===(c=null===(r=s.logger)||void 0===r?void 0:r.debug)||void 0===c||c.call(r,"Received Response to previous request: ",JSON.stringify(e)),s.handleResponse(h);else if("ping"===m)s.notify({action:"pong"});else if("initialize-visual-tagging-selector"===m){var w=null==h?void 0:h.data;n(o).then((function(){var e;f=null===(e=null===window||void 0===window?void 0:window.amplitudeVisualTaggingSelector)||void 0===e?void 0:e.call(window,{getEventTagProps:p.getEventTagProps,isElementSelectable:function(e){return!u||u((null==w?void 0:w.actionType)||"click",e)},onTrack:s.onTrack,onSelect:s.onSelect,visualHighlightClass:t,messenger:s,cssSelectorAllowlist:v,actionClickAllowlist:g,extractDataFromDataSource:p.extractDataFromDataSource,dataExtractor:p,diagnostics:{autocapture:{version:l}}}),s.notify({action:"selector-loaded"})})).catch((function(){var e;null===(e=s.logger)||void 0===e||e.warn("Failed to initialize visual tagging selector")}))}else"close-visual-tagging-selector"===m&&(null===(d=null==f?void 0:f.close)||void 0===d||d.call(f))}})),this.notify({action:"page-loaded"})},s}();export{s as WindowMessenger};
@@ -0,0 +1 @@
1
+ import{Observable as e}from"../../../../../../zen-observable-ts@1.1.0/node_modules/zen-observable-ts/module.js";import{getGlobalScope as n}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";var t=function(){return new e((function(e){var n=new MutationObserver((function(n){e.next(n)}));return document.body&&n.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return n.disconnect()}}))},o=function(t){return void 0===t&&(t="click"),new e((function(e){var o,r=function(n){e.next(n)};return null===(o=n())||void 0===o||o.document.addEventListener(t,r,{capture:!0}),function(){var e;null===(e=n())||void 0===e||e.document.removeEventListener(t,r,{capture:!0})}}))};export{o as createClickObservable,t as createMutationObservable};
@@ -0,0 +1 @@
1
+ var e=function(e,t){try{if("DOM_ELEMENT"===e.sourceType){var r=document.documentElement;return e.scope&&t&&(r=t.closest(e.scope)),r&&e.selector?r.querySelector(e.selector):r}}catch(e){return}},t=function(e,t,r){e.forEach((function(e){if("string"!=typeof e&&"ATTACH_EVENT_PROPERTY"===e.actionType){var o=r.extractDataFromDataSource(e.dataSource,t.closestTrackedAncestor);t.targetElementProperties[e.destinationKey]=o}}))};export{t as executeActions,e as getDataSource};
@@ -0,0 +1 @@
1
+ var e=function(e,r){try{if("[Amplitude] Element Text"===r.subprop_key)return"is"===r.subprop_op&&r.subprop_value.includes(e.targetElementProperties["[Amplitude] Element Text"]);if("[Amplitude] Element Hierarchy"===r.subprop_key)return"autotrack css match"===r.subprop_op&&!!e.closestTrackedAncestor.closest(r.subprop_value.toString())}catch(e){return console.error("Error matching event to filter",e),!1}return!1};export{e as matchEventToFilter};
@@ -0,0 +1 @@
1
+ import{__values as r}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{matchEventToFilter as e}from"./matchEventToFilter.js";import{executeActions as t}from"./actions.js";var n={"[Amplitude] Element Clicked":"click","[Amplitude] Element Changed":"change"},o=function(e){var t,o,i,a,l=Object.values(n).reduce((function(r,e){return r[e]=new Set,r}),{});if(!e)return l;try{for(var u=r(e),f=u.next();!f.done;f=u.next()){var c=f.value;try{try{for(var d=(i=void 0,r(c.definition)),v=d.next();!v.done;v=d.next()){var y=v.value,p=n[y.event_type];p&&l[p].add(c.id)}}catch(r){i={error:r}}finally{try{v&&!v.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}}catch(r){console.warn("Skipping Labeled Event due to malformed definition",null==c?void 0:c.id,r)}}}catch(r){t={error:r}}finally{try{f&&!f.done&&(o=u.return)&&o.call(u)}finally{if(t)throw t.error}}return l},i=function(e){var t,n,o,i,a=new Map;try{for(var l=r(e),u=l.next();!u.done;u=l.next()){var f=u.value;try{for(var c=(o=void 0,r(f.conditions)),d=c.next();!d.done;d=c.next()){var v=d.value;if("LABELED_EVENT"===v.type){var y=v.match.eventId,p=a.get(y);p||(p=[],a.set(y,p)),p.push(f)}}}catch(r){o={error:r}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}}}catch(r){t={error:r}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return a},a=function(r,t){return t.filter((function(t){return t.definition.some((function(t){return n[t.event_type]===r.type&&t.filters.every((function(t){return e(r,t)}))}))}))},l=function(e,t){var n,o,i,a,l=new Set;try{for(var u=r(e),f=u.next();!f.done;f=u.next()){var c=f.value,d=t.get(c.id);if(d)try{for(var v=(i=void 0,r(d)),y=v.next();!y.done;y=v.next()){var p=y.value;l.add(p)}}catch(r){i={error:r}}finally{try{y&&!y.done&&(a=v.return)&&a.call(v)}finally{if(i)throw i.error}}}}catch(r){n={error:r}}finally{try{f&&!f.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}return Array.from(l)},u=function(){function e(r,e,t,n){this.groupedLabeledEvents=r,this.labeledEventToTriggerMap=e,this.dataExtractor=t,this.options=n}return e.prototype.evaluate=function(e){var n,o,i=this.options.pageActions;if(!i)return e;var u=a(e,Array.from(this.groupedLabeledEvents[e.type]).map((function(r){return i.labeledEvents[r]}))),f=l(u,this.labeledEventToTriggerMap);try{for(var c=r(f),d=c.next();!d.done;d=c.next()){var v=d.value;t(v.actions,e,this.dataExtractor)}}catch(r){n={error:r}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}return e},e.prototype.update=function(r,e,t){this.groupedLabeledEvents=r,this.labeledEventToTriggerMap=e,this.options=t},e}(),f=function(r,e,t,n){return new u(r,e,t,n)};export{u as TriggerEvaluator,i as createLabeledEventToTriggerMap,f as createTriggerEvaluator,o as groupLabeledEventIdsByEventType,a as matchEventToLabeledEvents,l as matchLabeledEventsToTriggers};
@@ -0,0 +1 @@
1
+ var e="@amplitude/plugin-network-capture-browser",r="[Amplitude] Network Request";export{r as AMPLITUDE_NETWORK_REQUEST_EVENT,e as PLUGIN_NAME};
@@ -0,0 +1 @@
1
+ import{__awaiter as e,__generator as n}from"../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{PLUGIN_NAME as r}from"./constants.js";import{trackNetworkEvents as t}from"./track-network-event.js";import{Observable as o}from"../../../../../../zen-observable-ts@1.1.0/node_modules/zen-observable-ts/module.js";import{NetworkEventCallback as i,networkObserver as u}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/network-observer.js";var s,c;!function(e){e.NetworkObservable="networkObservable"}(s||(s={}));var l=function(l){void 0===l&&(l={});var a,d=r,v=function(){var e,n=new o((function(e){var n=new i((function(n){var r=function(e,n){return{event:e,timestamp:Date.now(),type:n}}(n,"network");e.next(r)}));return u.subscribe(n,a),function(){u.unsubscribe(n)}}));return(e={})[s.NetworkObservable]=n,e};return{name:d,type:"enrichment",setup:function(r,o){return e(void 0,void 0,void 0,(function(){var e;return n(this,(function(n){return"undefined"==typeof document||(e=v(),a=null==r?void 0:r.loggerProvider,c=t({allObservables:e,networkTrackingOptions:l,amplitude:o,loggerProvider:a}),null==a||a.log("".concat(d," has been successfully added."))),[2]}))}))},execute:function(r){return e(void 0,void 0,void 0,(function(){return n(this,(function(e){return[2,r]}))}))},teardown:function(){return e(void 0,void 0,void 0,(function(){return n(this,(function(e){return c.unsubscribe(),[2]}))}))}}};export{s as ObservablesEnum,l as networkCapturePlugin};
@@ -0,0 +1 @@
1
+ import{__spreadArray as e,__read as r,__awaiter as t,__generator as s,__values as o}from"../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{AMPLITUDE_NETWORK_REQUEST_EVENT as n}from"./constants.js";import{getGlobalScope as i}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{isUrlMatchAllowlist as u}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/url-utils.js";import{SAFE_HEADERS as l}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js";var a="500-599";function d(e,r){var t="^"+r.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&").replace(/\*/g,".*")+"$";return new RegExp(t).test(e)}function p(e,t){var s,n,i=t.split(",");try{for(var u=o(i),l=u.next();!l.done;l=u.next()){var a=l.value,d=r(a.split("-").map(Number),2),p=d[0],c=d[1];if(e===p&&void 0===c)return!0;if(e>=p&&e<=c)return!0}}catch(e){s={error:e}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(s)throw s.error}}return!1}function c(e){var r;if(e)try{var t=null===(r=i())||void 0===r?void 0:r.location.href,s=new URL(e,t),o=s.searchParams.toString(),n=s.hash.replace("#",""),u=s.href,l=s.host;return s.hash="",s.search="",{query:o,fragment:n,href:u,hrefWithoutQueryOrHash:s.href,host:l}}catch(e){return}}function f(t){if("object"==typeof t&&null!==t){if(0!==t.length)return t}else{if(t)return e([],r(l),!1);if(void 0===t){return}}}function m(e){var r,t;return!(null===(r=null==e?void 0:e.allowlist)||void 0===r?void 0:r.length)&&!(null===(t=null==e?void 0:e.blocklist)||void 0===t?void 0:t.length)}function y(t,s){var o;void 0===s&&(s={});var i=c(t.url);if(!i)return!1;var l,y=i.host;if(!1!==s.ignoreAmplitudeRequests&&(d(y,"*.amplitude.com")||d(y,"amplitude.com")))return!1;if(null===(o=s.ignoreHosts)||void 0===o?void 0:o.find((function(e){return d(y,e)})))return!1;if(!s.captureRules&&void 0!==t.status&&!p(t.status,a))return!1;if(s.captureRules&&(e([],r(s.captureRules),!1).reverse().find((function(e){if(l=function(e,r,t,s,o){if((!e.hosts||e.hosts.find((function(e){return d(r,e)})))&&(!s||!e.urls||u(s,e.urls))&&(!o||!e.methods||e.methods.find((function(e){return o.toLowerCase()===e.toLowerCase()||"*"===e}))))return!((t||0===t)&&!p(t,e.statusCodeRange||a))}(e,y,t.status,t.url,t.method),l){var r=f(e.responseHeaders);if(t.responseWrapper&&r){var s=t.responseWrapper.headers(r);s&&(t.responseHeaders=s)}var o=f(e.requestHeaders);if(t.requestWrapper&&o){var n=t.requestWrapper.headers(o);n&&(t.requestHeaders=n)}t.responseWrapper&&e.responseBody&&!m(e.responseBody)&&(t.responseBodyJson=t.responseWrapper.json(e.responseBody.allowlist,e.responseBody.blocklist)),t.requestWrapper&&e.requestBody&&!m(e.requestBody)&&(t.requestBodyJson=t.requestWrapper.json(e.requestBody.allowlist,e.requestBody.blocklist))}return void 0!==l})),!l))return!1;return!t.requestWrapper||!function(e,r){if(e.includes("amplitude.com"))try{var t=r.body;if("string"!=typeof t)return!1;if(JSON.parse(t).events.find((function(e){return e.event_type===n})))return!0}catch(e){}return!1}(y,t.requestWrapper)}function v(e,o,i,u){return t(this,void 0,void 0,(function(){var t,l,a;return s(this,(function(s){switch(s.label){case 0:return o.requestBodyJson||o.responseBodyJson?[4,Promise.all([o.requestBodyJson,o.responseBodyJson])]:[3,2];case 1:if(t=r.apply(void 0,[s.sent(),2]),l=t[0],a=t[1],l)try{e["[Amplitude] Request Body"]=JSON.stringify(l)}catch(e){null==u||u.debug("Failed to stringify request body",e)}if(a)try{e["[Amplitude] Response Body"]=JSON.stringify(a)}catch(e){null==u||u.debug("Failed to stringify response body")}s.label=2;case 2:return null==i||i.track(n,e),[2]}}))}))}function h(e){var r=e.allObservables,t=e.networkTrackingOptions,s=e.amplitude,o=e.loggerProvider;return r.networkObservable.filter((function(e){return y(e.event,t)})).subscribe((function(e){var r,t,n,i=e.event,u=c(i.url);if(u){var l=null===(t=i.responseWrapper)||void 0===t?void 0:t.bodySize,a=null===(n=i.requestWrapper)||void 0===n?void 0:n.bodySize;v(((r={})["[Amplitude] URL"]=u.hrefWithoutQueryOrHash,r["[Amplitude] URL Query"]=u.query,r["[Amplitude] URL Fragment"]=u.fragment,r["[Amplitude] Request Method"]=i.method,r["[Amplitude] Status Code"]=i.status,r["[Amplitude] Start Time"]=i.startTime,r["[Amplitude] Completion Time"]=i.endTime,r["[Amplitude] Duration"]=i.duration,r["[Amplitude] Request Body Size"]=a,r["[Amplitude] Response Body Size"]=l,r["[Amplitude] Request Type"]=i.type,r["[Amplitude] Request Headers"]=i.requestHeaders,r["[Amplitude] Response Headers"]=i.responseHeaders,r),i,s,o)}}))}export{v as logNetworkAnalyticsEvent,f as parseHeaderCaptureRule,y as shouldTrackNetworkEvent,h as trackNetworkEvents};
@@ -0,0 +1 @@
1
+ import{__awaiter as e,__generator as t,__assign as n,__read as i}from"../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as r}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{getPageTitle as o,replaceSensitiveString as a}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/helpers.js";import{getDecodeURI as l}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/url-utils.js";import{BrowserStorage as s}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/storage/browser-storage.js";import{SpecialEventType as u}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js";var c,p="AMP_CURRENT_PAGE",d="AMP_PREVIOUS_PAGE",m="AMP_URL_INFO";!function(e){e.Direct="direct",e.Internal="internal",e.External="external"}(c||(c={}));var v=new Set([u.IDENTIFY,u.GROUP_IDENTIFY,u.REVENUE]),f=function(u){var f={}.internalDomains,g=void 0===f?[]:f,_=r(),h=void 0,P=!1,b=void 0,A=!1,E=!1,w=function(e){var t="undefined"!=typeof location&&location.hostname||"",n=e?function(e){var t;try{var n=l(e,b);t=new URL(n).hostname}catch(e){null==b||b.error("Could not parse URL: ",e)}return t}(e):void 0;if(!n)return c.Direct;var i=g.some((function(e){return-1!==t.indexOf(e)})),r=g.some((function(e){return-1!==n.indexOf(e)}));return t===n||r&&i?c.Internal:c.External},L=function(){e(void 0,void 0,void 0,(function(){var e,n,i,r,o;return t(this,(function(t){switch(t.label){case 0:return h&&P?[4,h.get(m)]:[3,3];case 1:return e=t.sent(),n=l("undefined"!=typeof location&&location.href||""),i=(null==e?void 0:e[p])||"",r=void 0,r=n===i?(null==e?void 0:e[d])||"":i||document.referrer||"",[4,h.set(m,(o={},o[p]=n,o[d]=r,o))];case 2:t.sent(),t.label=3;case 3:return[2]}}))}))},R={name:"@amplitude/plugin-page-url-enrichment-browser",type:"enrichment",setup:function(n,r){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return(b=n.loggerProvider).log("Installing @amplitude/plugin-page-url-enrichment-browser"),E=!0,_?[4,(h=new s(_.sessionStorage)).isEnabled()]:[3,2];case 1:P=e.sent(),_.addEventListener("popstate",L),A||(_.history.pushState=new Proxy(_.history.pushState,{apply:function(e,t,n){var r=i(n,3),o=r[0],a=r[1],l=r[2];e.apply(t,[o,a,l]),E&&L()}}),_.history.replaceState=new Proxy(_.history.replaceState,{apply:function(e,t,n){var r=i(n,3),o=r[0],a=r[1],l=r[2];e.apply(t,[o,a,l]),E&&L()}}),A=!0),e.label=2;case 2:return[2]}}))}))},execute:function(i){return e(void 0,void 0,void 0,(function(){var e,r,s,u,c;return t(this,(function(t){switch(t.label){case 0:return e=l("undefined"!=typeof location&&location.href||""),h&&P?[4,h.get(m)]:[3,5];case 1:return(null==(r=t.sent())?void 0:r[p])?[3,3]:[4,h.set(m,(c={},c[p]=e,c[d]=document.referrer||"",c))];case 2:t.sent(),t.label=3;case 3:return[4,h.get(m)];case 4:if(s=t.sent(),u="",s&&(u=s[d]||""),v.has(i.event_type))return[2,i];i.event_properties=n(n({},i.event_properties||{}),{"[Amplitude] Page Domain":y(i,"[Amplitude] Page Domain","undefined"!=typeof location&&location.hostname||""),"[Amplitude] Page Location":y(i,"[Amplitude] Page Location",e),"[Amplitude] Page Path":y(i,"[Amplitude] Page Path","undefined"!=typeof location&&l(location.pathname)||""),"[Amplitude] Page Title":y(i,"[Amplitude] Page Title",o(a)),"[Amplitude] Page URL":y(i,"[Amplitude] Page URL",e.split("?")[0]),"[Amplitude] Previous Page Location":u,"[Amplitude] Previous Page Type":w(u)}),t.label=5;case 5:return[2,i]}}))}))},teardown:function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return _&&(_.removeEventListener("popstate",L),E=!1),h&&P?[4,h.set(m,{})]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))}};return R};function y(e,t,n){return e.event_properties||(e.event_properties={}),void 0===e.event_properties[t]?n:e.event_properties[t]}export{p as CURRENT_PAGE_STORAGE_KEY,v as EXCLUDED_DEFAULT_EVENT_TYPES,d as PREVIOUS_PAGE_STORAGE_KEY,m as URL_INFO_STORAGE_KEY,f as pageUrlEnrichmentPlugin};
@@ -0,0 +1 @@
1
+ import{__awaiter as e,__generator as t,__assign as n,__read as i,__spreadArray as r}from"../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{omitUndefined as o}from"./utils.js";import{getGlobalScope as a}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{IdentifyOperation as u}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js";import{BASE_CAMPAIGN as l}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js";import{getPageTitle as p,replaceSensitiveString as s}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/helpers.js";import{CampaignParser as c}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/campaign/campaign-parser.js";var d="[Amplitude] Page Viewed",v=function(r){var o;void 0===r&&(r={});var u,l=a(),c=void 0,v=!1,g=r.trackOn,h=r.trackHistoryChanges,_=r.eventType,b=void 0===_?d:_,w=function(e){var t=e;try{t=decodeURI(e)}catch(e){null==c||c.error("Malformed URI sequence: ",e)}return t},k=function(){return e(void 0,void 0,void 0,(function(){var e,i,r;return t(this,(function(t){switch(t.label){case 0:return e=w("undefined"!=typeof location&&location.href||""),r={event_type:b},i=[{}],[4,m()];case 1:return[2,(r.event_properties=n.apply(void 0,[n.apply(void 0,i.concat([t.sent()])),{"[Amplitude] Page Domain":"undefined"!=typeof location&&location.hostname||"","[Amplitude] Page Location":e,"[Amplitude] Page Path":"undefined"!=typeof location&&w(location.pathname)||"","[Amplitude] Page Title":p(s),"[Amplitude] Page URL":e.split("?")[0]}]),r)]}}))}))},j=function(){return void 0===g||"function"==typeof g&&g()},P="undefined"!=typeof location?location.href:null,A=function(){return e(void 0,void 0,void 0,(function(){var e,n,i,r;return t(this,(function(t){switch(t.label){case 0:return e=location.href,n=y(h,e,P||"")&&j(),P=e,n?(null==c||c.log("Tracking page view event"),null!=o?[3,1]:[3,3]):[3,4];case 1:return r=(i=o).track,[4,k()];case 2:r.apply(i,[t.sent()]),t.label=3;case 3:t.label=4;case 4:return[2]}}))}))},C=function(){A()},L={name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(n,r){return e(void 0,void 0,void 0,(function(){var e,a;return t(this,(function(t){switch(t.label){case 0:return o=r,u=n,(c=n.loggerProvider).log("Installing @amplitude/plugin-page-view-tracking-browser"),v=!0,l&&(l.addEventListener("popstate",C),l.history.pushState=new Proxy(l.history.pushState,{apply:function(e,t,n){var r=i(n,3),o=r[0],a=r[1],u=r[2];e.apply(t,[o,a,u]),v&&A()}})),j()?(c.log("Tracking page view event"),a=(e=o).track,[4,k()]):[3,2];case 1:a.apply(e,[t.sent()]),t.label=2;case 2:return[2]}}))}))},execute:function(i){return e(void 0,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return"attribution"===g&&f(i)?(null==c||c.log("Enriching campaign event to page view event with campaign parameters"),[4,k()]):[3,2];case 1:e=t.sent(),i.event_type=e.event_type,i.event_properties=n(n({},i.event_properties),e.event_properties),t.label=2;case 2:return u&&i.event_type===b&&(u.pageCounter=u.pageCounter?u.pageCounter+1:1,i.event_properties=n(n({},i.event_properties),{"[Amplitude] Page Counter":u.pageCounter})),[2,i]}}))}))},teardown:function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){return l&&(l.removeEventListener("popstate",C),v=!1),[2]}))}))}};return L},m=function(){return e(void 0,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return e=o,[4,(new c).parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}}))}))},f=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,n=t[u.SET]||{},o=t[u.UNSET]||{},a=r(r([],i(Object.keys(n)),!1),i(Object.keys(o)),!1);return Object.keys(l).every((function(e){return a.includes(e)}))}return!1},y=function(e,t,n){if("pathOnly"===e){if(""==n)return!0;var i=new URL(t),r=new URL(n);return i.origin+i.pathname!==r.origin+r.pathname}return t!==n};export{d as defaultPageViewEvent,v as pageViewTrackingPlugin,y as shouldTrackHistoryPageView};
@@ -0,0 +1 @@
1
+ var r=function(r){var a={};for(var n in r){var v=r[n];v&&(a[n]=v)}return a};export{r as omitUndefined};
@@ -0,0 +1 @@
1
+ var e="web-vitals-browser",r="[Amplitude] Web Vitals";export{e as PLUGIN_NAME,r as WEB_VITALS_EVENT_NAME};
@@ -0,0 +1 @@
1
+ import{__awaiter as i,__generator as t}from"../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{PLUGIN_NAME as e,WEB_VITALS_EVENT_NAME as n}from"./constants.js";import{onLCP as o,onFCP as r,onINP as l,onCLS as u,onTTFB as a}from"../../../../../../web-vitals@5.0.1/node_modules/web-vitals/dist/web-vitals.js";import{getGlobalScope as d}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{getDecodeURI as s}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/url-utils.js";function m(i){var t,e=(null===(t=i.entries[0])||void 0===t?void 0:t.startTime)||0;return performance.timeOrigin+e}function c(i){return{value:i.value,rating:i.rating,delta:i.delta,navigationType:i.navigationType,id:i.id,timestamp:Math.floor(m(i)),navigationStart:Math.floor(performance.timeOrigin)}}var v=function(){var m=null,v=d(),p=null==v?void 0:v.document,f=null==v?void 0:v.location;return{name:e,type:"enrichment",setup:function(e,d){return i(void 0,void 0,void 0,(function(){var i,v;return t(this,(function(t){return void 0===p||(i=s((null==f?void 0:f.href)||"",e.loggerProvider),v={"[Amplitude] Page Domain":(null==f?void 0:f.hostname)||"","[Amplitude] Page Location":i,"[Amplitude] Page Path":s((null==f?void 0:f.pathname)||"",e.loggerProvider),"[Amplitude] Page Title":"undefined"!=typeof document&&document.title||"","[Amplitude] Page URL":s(i.split("?")[0],e.loggerProvider)},o((function(i){v["[Amplitude] LCP"]=c(i)})),r((function(i){v["[Amplitude] FCP"]=c(i)})),l((function(i){v["[Amplitude] INP"]=c(i)})),u((function(i){v["[Amplitude] CLS"]=c(i)})),a((function(i){v["[Amplitude] TTFB"]=c(i)})),m=function(){"hidden"===p.visibilityState&&m&&(d.track(n,v),p.removeEventListener("visibilitychange",m),m=null)},p.addEventListener("visibilitychange",m)),[2]}))}))},execute:function(e){return i(void 0,void 0,void 0,(function(){return t(this,(function(i){return[2,e]}))}))},teardown:function(){return i(void 0,void 0,void 0,(function(){return t(this,(function(i){return m&&(null==p||p.removeEventListener("visibilitychange",m)),[2]}))}))}}};export{v as webVitalsPlugin};
@@ -1 +1 @@
1
- function e(e,r,t,o){var c,f=arguments.length,n=f<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,r,t,o);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(n=(f<3?c(n):f>3?c(r,t,n):c(r,t))||n);return f>3&&n&&Object.defineProperty(r,t,n),n}"function"==typeof SuppressedError&&SuppressedError;export{e as __decorate};
1
+ var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};function e(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var r=function(){return r=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};function n(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}function o(t,e,r,n){var o,c=arguments.length,l=c<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(l=(c<3?o(l):c>3?o(e,r,l):o(e,r))||l);return c>3&&l&&Object.defineProperty(e,r,l),l}function c(t,e,r,n){return new(r||(r=Promise))((function(o,c){function l(t){try{i(n.next(t))}catch(t){c(t)}}function a(t){try{i(n.throw(t))}catch(t){c(t)}}function i(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(l,a)}i((n=n.apply(t,e||[])).next())}))}function l(t,e){var r,n,o,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return l.next=a(0),l.throw=a(1),l.return=a(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(a){return function(i){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,a[0]&&(c=0)),c;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,n=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(o=c.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){c.label=a[1];break}if(6===a[0]&&c.label<o[1]){c.label=o[1],o=a;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(a);break}o[2]&&c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,i])}}}function a(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function i(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,c=r.call(t),l=[];try{for(;(void 0===e||e-- >0)&&!(n=c.next()).done;)l.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=c.return)&&r.call(c)}finally{if(o)throw o.error}}return l}function u(t,e,r){if(r||2===arguments.length)for(var n,o=0,c=e.length;o<c;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;export{r as __assign,c as __awaiter,o as __decorate,e as __extends,l as __generator,i as __read,n as __rest,u as __spreadArray,a as __values};
@@ -0,0 +1 @@
1
+ let e=-1;const t=t=>{addEventListener("pageshow",(n=>{n.persisted&&(e=n.timeStamp,t(n))}),!0)},n=(e,t,n,i)=>{let r,s;return o=>{t.value>=0&&(o||i)&&(s=t.value-(r??0),(s||void 0===r)&&(r=t.value,t.delta=s,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}},i=e=>{requestAnimationFrame((()=>requestAnimationFrame((()=>e()))))},r=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},s=()=>{const e=r();return e?.activationStart??0},o=(t,n=-1)=>{const i=r();let o="navigate";return e>=0?o="back-forward-cache":i&&(document.prerendering||s()>0?o="prerender":document.wasDiscarded?o="restore":i.type&&(o=i.type.replace(/_/g,"-"))),{name:t,value:n,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:o}},a=new WeakMap;function d(e,t){return a.get(e)||a.set(e,new t),a.get(e)}class l{t;i=0;o=[];h(e){if(e.hadRecentInput)return;const t=this.o[0],n=this.o.at(-1);this.i&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),this.t?.(e)}}const c=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const i=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return i.observe({type:e,buffered:!0,...n}),i}}catch{}},h=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let u=-1;const m=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,p=e=>{"hidden"===document.visibilityState&&u>-1&&(u="visibilitychange"===e.type?e.timeStamp:0,g())},v=()=>{addEventListener("visibilitychange",p,!0),addEventListener("prerenderingchange",p,!0)},g=()=>{removeEventListener("visibilitychange",p,!0),removeEventListener("prerenderingchange",p,!0)},T=()=>{if(u<0){const e=s(),n=document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter((t=>"hidden"===t.name&&t.startTime>e))[0]?.startTime;u=n??m(),v(),t((()=>{setTimeout((()=>{u=m(),v()}))}))}return{get firstHiddenTime(){return u}}},f=e=>{document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},y=[1800,3e3],C=(e,r={})=>{f((()=>{const a=T();let d,l=o("FCP");const h=c("paint",(e=>{for(const t of e)"first-contentful-paint"===t.name&&(h.disconnect(),t.startTime<a.firstHiddenTime&&(l.value=Math.max(t.startTime-s(),0),l.entries.push(t),d(!0)))}));h&&(d=n(e,l,y,r.reportAllChanges),t((t=>{l=o("FCP"),d=n(e,l,y,r.reportAllChanges),i((()=>{l.value=performance.now()-t.timeStamp,d(!0)}))})))}))},b=[.1,.25],L=(e,r={})=>{C(h((()=>{let s,a=o("CLS",0);const h=d(r,l),u=e=>{for(const t of e)h.h(t);h.i>a.value&&(a.value=h.i,a.entries=h.o,s())},m=c("layout-shift",u);m&&(s=n(e,a,b,r.reportAllChanges),document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&(u(m.takeRecords()),s(!0))})),t((()=>{h.i=0,a=o("CLS",0),s=n(e,a,b,r.reportAllChanges),i((()=>s()))})),setTimeout(s))})))};let P=0,S=1/0,E=0;const A=e=>{for(const t of e)t.interactionId&&(S=Math.min(S,t.interactionId),E=Math.max(E,t.interactionId),P=E?(E-S)/7+1:0)};let I;const w=()=>I?P:performance.interactionCount??0;let M=0;class F{u=[];l=new Map;m;p;v(){M=w(),this.u.length=0,this.l.clear()}P(){const e=Math.min(this.u.length-1,Math.floor((w()-M)/50));return this.u[e]}h(e){if(this.m?.(e),!e.interactionId&&"first-input"!==e.entryType)return;const t=this.u.at(-1);let n=this.l.get(e.interactionId);if(n||this.u.length<10||e.duration>t.T){if(n?e.duration>n.T?(n.entries=[e],n.T=e.duration):e.duration===n.T&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],T:e.duration},this.l.set(n.id,n),this.u.push(n)),this.u.sort(((e,t)=>t.T-e.T)),this.u.length>10){const e=this.u.splice(10);for(const t of e)this.l.delete(t.id)}this.p?.(n)}}}const k=e=>{const t=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(t(e=h(e)),document.addEventListener("visibilitychange",e,{once:!0}))},B=[200,500],x=(e,i={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&f((()=>{"interactionCount"in performance||I||(I=c("event",A,{type:"event",buffered:!0,durationThreshold:0}));let r,s=o("INP");const a=d(i,F),l=e=>{k((()=>{for(const t of e)a.h(t);const t=a.P();t&&t.T!==s.value&&(s.value=t.T,s.entries=t.entries,r())}))},h=c("event",l,{durationThreshold:i.durationThreshold??40});r=n(e,s,B,i.reportAllChanges),h&&(h.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&(l(h.takeRecords()),r(!0))})),t((()=>{a.v(),s=o("INP"),r=n(e,s,B,i.reportAllChanges)})))}))};class N{m;h(e){this.m?.(e)}}const R=[2500,4e3],q=(e,r={})=>{f((()=>{const a=T();let l,u=o("LCP");const m=d(r,N),p=e=>{r.reportAllChanges||(e=e.slice(-1));for(const t of e)m.h(t),t.startTime<a.firstHiddenTime&&(u.value=Math.max(t.startTime-s(),0),u.entries=[t],l())},v=c("largest-contentful-paint",p);if(v){l=n(e,u,R,r.reportAllChanges);const s=h((()=>{p(v.takeRecords()),v.disconnect(),l(!0)}));for(const e of["keydown","click","visibilitychange"])addEventListener(e,(()=>k(s)),{capture:!0,once:!0});t((t=>{u=o("LCP"),l=n(e,u,R,r.reportAllChanges),i((()=>{u.value=performance.now()-t.timeStamp,l(!0)}))}))}}))},H=[800,1800],D=e=>{document.prerendering?f((()=>D(e))):"complete"!==document.readyState?addEventListener("load",(()=>D(e)),!0):setTimeout(e)},O=(e,i={})=>{let a=o("TTFB"),d=n(e,a,H,i.reportAllChanges);D((()=>{const l=r();l&&(a.value=Math.max(l.responseStart-s(),0),a.entries=[l],d(!0),t((()=>{a=o("TTFB",0),d=n(e,a,H,i.reportAllChanges),d(!0)})))}))};export{b as CLSThresholds,y as FCPThresholds,B as INPThresholds,R as LCPThresholds,H as TTFBThresholds,L as onCLS,C as onFCP,x as onINP,q as onLCP,O as onTTFB};
@@ -0,0 +1 @@
1
+ function t(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t))||e){n&&(t=n);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function e(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}var o=function(){return"function"==typeof Symbol},i=function(t){return o()&&Boolean(Symbol[t])},u=function(t){return i(t)?Symbol[t]:"@@"+t};o()&&!i("observable")&&(Symbol.observable=Symbol("observable"));var c=u("iterator"),f=u("observable"),s=u("species");function a(t,r){var e=t[r];if(null!=e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}}function l(t){var r=t.constructor;return void 0!==r&&null===(r=r[s])&&(r=void 0),void 0!==r?r:g}function b(t){return t instanceof g}function p(t){p.log?p.log(t):setTimeout((function(){throw t}))}function h(t){Promise.resolve().then((function(){try{t()}catch(t){p(t)}}))}function v(t){var r=t._cleanup;if(void 0!==r&&(t._cleanup=void 0,r))try{if("function"==typeof r)r();else{var e=a(r,"unsubscribe");e&&e.call(r)}}catch(t){p(t)}}function y(t){t._observer=void 0,t._queue=void 0,t._state="closed"}function d(t,r,e){t._state="running";var n=t._observer;try{var o=a(n,r);switch(r){case"next":o&&o.call(n,e);break;case"error":if(y(t),!o)throw e;o.call(n,e);break;case"complete":y(t),o&&o.call(n)}}catch(t){p(t)}"closed"===t._state?v(t):"running"===t._state&&(t._state="ready")}function m(t,r,e){if("closed"!==t._state){if("buffering"!==t._state)return"ready"!==t._state?(t._state="buffering",t._queue=[{type:r,value:e}],void h((function(){return function(t){var r=t._queue;if(r){t._queue=void 0,t._state="ready";for(var e=0;e<r.length&&(d(t,r[e].type,r[e].value),"closed"!==t._state);++e);}}(t)}))):void d(t,r,e);t._queue.push({type:r,value:e})}}var w=function(){function t(t,r){this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var e=new _(this);try{this._cleanup=r.call(void 0,e)}catch(t){e.error(t)}"initializing"===this._state&&(this._state="ready")}return t.prototype.unsubscribe=function(){"closed"!==this._state&&(y(this),v(this))},n(t,[{key:"closed",get:function(){return"closed"===this._state}}]),t}(),_=function(){function t(t){this._subscription=t}var r=t.prototype;return r.next=function(t){m(this._subscription,"next",t)},r.error=function(t){m(this._subscription,"error",t)},r.complete=function(){m(this._subscription,"complete")},n(t,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),t}(),g=function(){function r(t){if(!(this instanceof r))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var e=r.prototype;return e.subscribe=function(t){return"object"==typeof t&&null!==t||(t={next:t,error:arguments[1],complete:arguments[2]}),new w(t,this._subscriber)},e.forEach=function(t){var r=this;return new Promise((function(e,n){if("function"==typeof t)var o=r.subscribe({next:function(r){try{t(r,i)}catch(t){n(t),o.unsubscribe()}},error:n,complete:e});else n(new TypeError(t+" is not a function"));function i(){o.unsubscribe(),e()}}))},e.map=function(t){var r=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");return new(l(this))((function(e){return r.subscribe({next:function(r){try{r=t(r)}catch(t){return e.error(t)}e.next(r)},error:function(t){e.error(t)},complete:function(){e.complete()}})}))},e.filter=function(t){var r=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");return new(l(this))((function(e){return r.subscribe({next:function(r){try{if(!t(r))return}catch(t){return e.error(t)}e.next(r)},error:function(t){e.error(t)},complete:function(){e.complete()}})}))},e.reduce=function(t){var r=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");var e=l(this),n=arguments.length>1,o=!1,i=arguments[1];return new e((function(e){return r.subscribe({next:function(r){var u=!o;if(o=!0,!u||n)try{i=t(i,r)}catch(t){return e.error(t)}else i=r},error:function(t){e.error(t)},complete:function(){if(!o&&!n)return e.error(new TypeError("Cannot reduce an empty sequence"));e.next(i),e.complete()}})}))},e.concat=function(){for(var t=this,r=arguments.length,e=new Array(r),n=0;n<r;n++)e[n]=arguments[n];var o=l(this);return new o((function(r){var n,i=0;return function t(u){n=u.subscribe({next:function(t){r.next(t)},error:function(t){r.error(t)},complete:function(){i===e.length?(n=void 0,r.complete()):t(o.from(e[i++]))}})}(t),function(){n&&(n.unsubscribe(),n=void 0)}}))},e.flatMap=function(t){var r=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");var e=l(this);return new e((function(n){var o=[],i=r.subscribe({next:function(r){if(t)try{r=t(r)}catch(t){return n.error(t)}var i=e.from(r).subscribe({next:function(t){n.next(t)},error:function(t){n.error(t)},complete:function(){var t=o.indexOf(i);t>=0&&o.splice(t,1),u()}});o.push(i)},error:function(t){n.error(t)},complete:function(){u()}});function u(){i.closed&&0===o.length&&n.complete()}return function(){o.forEach((function(t){return t.unsubscribe()})),i.unsubscribe()}}))},e[f]=function(){return this},r.from=function(e){var n="function"==typeof this?this:r;if(null==e)throw new TypeError(e+" is not an object");var o=a(e,f);if(o){var u=o.call(e);if(Object(u)!==u)throw new TypeError(u+" is not an object");return b(u)&&u.constructor===n?u:new n((function(t){return u.subscribe(t)}))}if(i("iterator")&&(o=a(e,c)))return new n((function(r){h((function(){if(!r.closed){for(var n,i=t(o.call(e));!(n=i()).done;){var u=n.value;if(r.next(u),r.closed)return}r.complete()}}))}));if(Array.isArray(e))return new n((function(t){h((function(){if(!t.closed){for(var r=0;r<e.length;++r)if(t.next(e[r]),t.closed)return;t.complete()}}))}));throw new TypeError(e+" is not observable")},r.of=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return new("function"==typeof this?this:r)((function(t){h((function(){if(!t.closed){for(var r=0;r<e.length;++r)if(t.next(e[r]),t.closed)return;t.complete()}}))}))},n(r,null,[{key:s,get:function(){return this}}]),r}();o()&&Object.defineProperty(g,Symbol("extensions"),{value:{symbol:f,hostReportError:p},configurable:!0});export{g as Observable};
@@ -1 +1 @@
1
- {"version":3,"file":"cards.d.ts","sourceRoot":"","sources":["../../../src/cards/cards.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,KAAK,IAAI,EAET,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,eAAe,CAAC;AAavB,OAAO,EACL,KAAK,iBAAiB,EAGvB,MAAM,2CAA2C,CAAC;AAQnD;;;;;;;;;GASG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B;;;OAGG;IACH,YAAY,EAAE,CAAC,CAAC;IAChB;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,QAAQ,CAC5B,cAAc,CAAC,EAAE,UAAU,CAAC;IAAE,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,GACrD,OAAO,CAAC,IAAI,EAAE,CAAC,CAmCjB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,OAAO,CAAC,EAC5B,YAAY,EACZ,iBAAiB,GAClB,EAAE,UAAU,CAAC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAsChD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuFG;AACH,wBAAsB,SAAS,CAC7B,UAAU,EAAE,UAAU,CAAC,iBAAiB,CAAC,GACxC,OAAO,CAAC,IAAI,CAAC,CA+Bf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,UAAU,CAC9B,UAAU,EAAE,UAAU,CAAC,kBAAkB,CAAC,GACzC,OAAO,CAAC,IAAI,CAAC,CA+Bf;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,WAAW,CAC/B,UAAU,EAAE,UAAU,CAAC,mBAAmB,CAAC,GAC1C,OAAO,CAAC,uBAAuB,CAAC,CAqDlC"}
1
+ {"version":3,"file":"cards.d.ts","sourceRoot":"","sources":["../../../src/cards/cards.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,KAAK,IAAI,EAET,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,eAAe,CAAC;AAavB,OAAO,EACL,KAAK,iBAAiB,EAGvB,MAAM,2CAA2C,CAAC;AAQnD;;;;;;;;;GASG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B;;;OAGG;IACH,YAAY,EAAE,CAAC,CAAC;IAChB;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,QAAQ,CAC5B,cAAc,CAAC,EAAE,UAAU,CAAC;IAAE,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,GACrD,OAAO,CAAC,IAAI,EAAE,CAAC,CAyCjB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,OAAO,CAAC,EAC5B,YAAY,EACZ,iBAAiB,GAClB,EAAE,UAAU,CAAC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAsChD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuFG;AACH,wBAAsB,SAAS,CAC7B,UAAU,EAAE,UAAU,CAAC,iBAAiB,CAAC,GACxC,OAAO,CAAC,IAAI,CAAC,CA0Cf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,UAAU,CAC9B,UAAU,EAAE,UAAU,CAAC,kBAAkB,CAAC,GACzC,OAAO,CAAC,IAAI,CAAC,CA+Bf;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,WAAW,CAC/B,UAAU,EAAE,UAAU,CAAC,mBAAmB,CAAC,GAC1C,OAAO,CAAC,uBAAuB,CAAC,CAqDlC"}
@@ -0,0 +1,33 @@
1
+ import { type AnalyticsEventProperties } from './analytics.constants';
2
+ /**
3
+ * Singleton class to manage Amplitude analytics tracking
4
+ *
5
+ * This is an internal implementation detail of the analytics module.
6
+ * The rest of the SDK should use the public API from analytics-tracker.ts instead.
7
+ *
8
+ * @internal
9
+ */
10
+ export declare class AmplitudeManager {
11
+ private static instance;
12
+ private isInitialized;
13
+ private constructor();
14
+ static getInstance(): AmplitudeManager;
15
+ /**
16
+ * Initialize Amplitude SDK
17
+ * Automatically called during SDK initialization
18
+ * Safe to call multiple times - will only initialize once
19
+ * Only initializes in browser environment (skips on server-side)
20
+ */
21
+ initialize(): void;
22
+ isEnabled(): boolean;
23
+ /**
24
+ * Track an event with optional properties
25
+ */
26
+ track(eventName: string, properties?: AnalyticsEventProperties): void;
27
+ /**
28
+ * Reset analytics instance (called on logout)
29
+ */
30
+ reset(): void;
31
+ }
32
+ export declare const amplitudeManager: AmplitudeManager;
33
+ //# sourceMappingURL=amplitude-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amplitude-manager.d.ts","sourceRoot":"","sources":["../../../../src/common/analytics/amplitude-manager.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;GAOG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAmB;IAC1C,OAAO,CAAC,aAAa,CAAkB;IAEvC,OAAO;WAEO,WAAW,IAAI,gBAAgB;IAO7C;;;;;OAKG;IACI,UAAU,IAAI,IAAI;IA2ClB,SAAS,IAAI,OAAO;IAI3B;;OAEG;IACI,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,wBAAwB,GAAG,IAAI;IAU5E;;OAEG;IACI,KAAK,IAAI,IAAI;CASrB;AAED,eAAO,MAAM,gBAAgB,kBAAiC,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { type AnalyticsEventProperties } from './analytics.constants';
2
+ /**
3
+ * Initialize the analytics tracking system
4
+ * This should be called during SDK initialization
5
+ */
6
+ export declare function initialize(): void;
7
+ /**
8
+ * Reset the analytics tracking system
9
+ * This should be called during SDK logout
10
+ */
11
+ export declare function reset(): void;
12
+ /**
13
+ * Track SDK usage events
14
+ */
15
+ export declare function trackEvent(eventName: string, properties?: AnalyticsEventProperties): void;
16
+ /**
17
+ * Typed tracking functions for SDK operations
18
+ */
19
+ export declare const tracker: {
20
+ cardsList: (properties?: AnalyticsEventProperties) => void;
21
+ cardsOrderVirtual: (properties?: AnalyticsEventProperties) => void;
22
+ cardsOrderPhysical: (properties?: AnalyticsEventProperties) => void;
23
+ beneficiariesList: (properties?: AnalyticsEventProperties) => void;
24
+ sepaTransferCreate: (properties?: AnalyticsEventProperties) => void;
25
+ sepaTransferBulkCreate: (properties?: AnalyticsEventProperties) => void;
26
+ transactionsList: (properties?: AnalyticsEventProperties) => void;
27
+ organizationsList: (properties?: AnalyticsEventProperties) => void;
28
+ paymentLinksCreate: (properties?: AnalyticsEventProperties) => void;
29
+ authLinksRequest: (properties?: AnalyticsEventProperties) => void;
30
+ uiElementCreated: (uiElementType: string, properties?: AnalyticsEventProperties) => void;
31
+ };
32
+ //# sourceMappingURL=analytics-tracker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics-tracker.d.ts","sourceRoot":"","sources":["../../../../src/common/analytics/analytics-tracker.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,uBAAuB,CAAC;AAE/B;;;GAGG;AACH,wBAAgB,UAAU,IAAI,IAAI,CAEjC;AAED;;;GAGG;AACH,wBAAgB,KAAK,IAAI,IAAI,CAE5B;AAED;;GAEG;AACH,wBAAgB,UAAU,CACxB,SAAS,EAAE,MAAM,EACjB,UAAU,CAAC,EAAE,wBAAwB,GACpC,IAAI,CAEN;AAED;;GAEG;AACH,eAAO,MAAM,OAAO;6BACO,wBAAwB;qCAIhB,wBAAwB;sCAIvB,wBAAwB;qCAIzB,wBAAwB;sCAIvB,wBAAwB;0CAIpB,wBAAwB;oCAI9B,wBAAwB;qCAIvB,wBAAwB;sCAIvB,wBAAwB;oCAI1B,wBAAwB;sCAKvC,MAAM,eACR,wBAAwB;CAOxC,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Event names for tracking SDK usage
3
+ */
4
+ export declare const ANALYTICS_EVENTS: {
5
+ readonly SDK_INITIALIZED: "SDK Initialized";
6
+ readonly CARDS_LIST: "Cards List";
7
+ readonly CARDS_ORDER_VIRTUAL: "Cards Order Virtual";
8
+ readonly CARDS_ORDER_PHYSICAL: "Cards Order Physical";
9
+ readonly BENEFICIARIES_LIST: "Beneficiaries List";
10
+ readonly SEPA_TRANSFER_CREATE: "SEPA Transfer Create";
11
+ readonly SEPA_TRANSFER_BULK_CREATE: "SEPA Transfer Bulk Create";
12
+ readonly TRANSACTIONS_LIST: "Transactions List";
13
+ readonly ORGANIZATIONS_LIST: "Organizations List";
14
+ readonly PAYMENT_LINKS_CREATE: "Payment Links Create";
15
+ readonly AUTH_LINKS_REQUEST: "Auth Links Request";
16
+ readonly UI_ELEMENT_CREATED: "UI Element Created";
17
+ };
18
+ export interface AnalyticsEventProperties {
19
+ uiElementType?: string;
20
+ operationType?: string;
21
+ [key: string]: string | number | boolean | undefined;
22
+ }
23
+ //# sourceMappingURL=analytics.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics.constants.d.ts","sourceRoot":"","sources":["../../../../src/common/analytics/analytics.constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;CAanB,CAAC;AAEX,MAAM,WAAW,wBAAwB;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CACtD"}
@@ -0,0 +1,4 @@
1
+ export { ANALYTICS_EVENTS } from './analytics.constants';
2
+ export type { AnalyticsEventProperties } from './analytics.constants';
3
+ export { initialize, reset, tracker, trackEvent } from './analytics-tracker';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/analytics/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../../src/common/initialize/initialize.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQ3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,wBAAgB,UAAU,CAAC,gBAAgB,EAAE,gBAAgB,QAoC5D;AAED;;;;GAIG;AACH,wBAAgB,MAAM,SAKrB"}
1
+ {"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../../src/common/initialize/initialize.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAS3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,wBAAgB,UAAU,CAAC,gBAAgB,EAAE,gBAAgB,QAqC5D;AAED;;;;GAIG;AACH,wBAAgB,MAAM,SAMrB"}
@@ -1 +1 @@
1
- import{authManager as e}from"../common/auth/auth.js";import{validatePresenceOfAuthToken as t}from"../common/auth/auth.validate.js";import{callProxyFunction as r}from"../common/common.utils.js";import{prepareGetCardIframeUrl as n,getCardIframeURL as a,prepareGetCardCall as o,getCard as s,prepareGetCardsCall as i,getCards as c}from"./cards.api.js";import"./cards.types.js";import{validateDisplayCardParams as d,validateUnlockCardParams as m,validateOrderCardParams as g,validateGetCardParams as u}from"./cards.validate.js";import{buildIframeUrl as p,createIframe as f}from"../iframe/iframe-manager.js";import{serializeUnlockCardPayload as l,serializeCard as k,serializeOrderCardPayload as y}from"./cards.serializer.js";import{validateOperationSettingsParams as T}from"../validation/operation-settings-validation.js";import{InvalidParametersError as I}from"../errors/InvalidParametersError.js";import{createEmbedUI as S}from"./cards.helper.js";async function h(e){try{const n=e?.cardSettings?.membershipId;if(n&&"string"!=typeof n)throw new I("membershipId must be a string");const{proxyRequestFunction:a,stagingToken:o}=T(e?.operationSettings||{});if(a){const e=i({membershipId:n,stagingToken:o});return(await r({proxyFunction:a,networkCallDescriptor:e})).body.cards.map((e=>k(e)))}{const r=e?.operationSettings?.accessToken||t();return(await c({membershipId:n,accessToken:r,stagingToken:o})).map((e=>k(e)))}}catch(e){return Promise.reject(e)}}async function b({cardSettings:e,operationSettings:n}){try{u(e);const a=e.cardId,{proxyRequestFunction:i,stagingToken:c}=T(n||{});if(i){const e=o({cardId:a,stagingToken:c}),t=(await r({proxyFunction:i,networkCallDescriptor:e})).body.cards;if(Array.isArray(t)&&t.length>0)return k(t[0]);throw new I("Unable to retrieve card data")}{const e=n?.accessToken||t(),r=await s({cardId:a,accessToken:e,stagingToken:c});return k(r)}}catch(e){return Promise.reject(e)}}async function w(r){try{const n=t(),{uiParentElementId:a,debugMode:o}=T(r.operationSettings,{requiresUI:!0});g(r.cardSettings);const s=p({accessToken:n,stagingToken:e.getStagingToken()||void 0,debugMode:o}),i=await f({iframeUrl:s,parentElementId:a}),c=y(r.cardSettings),d=await i.postMessage(c);return i.destroy(),k(d)}catch(e){return Promise.reject(e)}}async function j(r){try{const n=t(),{uiParentElementId:a,debugMode:o}=T(r.operationSettings,{requiresUI:!0});m(r.cardSettings);const s=p({accessToken:n,stagingToken:e.getStagingToken()||void 0,debugMode:o}),i=await f({iframeUrl:s,parentElementId:a}),c=l(r),d=await i.postMessage(c);return i.destroy(),k(d)}catch(e){return Promise.reject(e)}}async function P(e){try{const{uiParentElementId:o,accessToken:s,stagingToken:i,debugMode:c,mfaPreference:m,proxyRequestFunction:g}=T(e.operationSettings,{requiresUI:!0});if(d(e.cardSettings),g){const t=n({stagingToken:i}),a=(await r({proxyFunction:g,networkCallDescriptor:t})).body.embed_auth_link;return S({decorationParams:e.cardSettings,operationSettings:{uiParentElementId:o,debugMode:c},cardIframeUrl:a.url})}{const r=s||t(),n=await a({...e.cardSettings,accessToken:r,stagingToken:i});return S({decorationParams:e.cardSettings,operationSettings:{uiParentElementId:o,debugMode:c,mfaPreference:m},cardIframeUrl:n.url})}}catch(e){return Promise.reject(e)}}export{P as displayCard,b as getCard,h as getCards,w as orderCard,j as unlockCard};
1
+ import{authManager as e}from"../common/auth/auth.js";import{validatePresenceOfAuthToken as t}from"../common/auth/auth.validate.js";import{callProxyFunction as r}from"../common/common.utils.js";import{tracker as n}from"../common/analytics/analytics-tracker.js";import{prepareGetCardIframeUrl as a,getCardIframeURL as o,prepareGetCardCall as s,getCard as i,prepareGetCardsCall as c,getCards as d}from"./cards.api.js";import"./cards.types.js";import{validateDisplayCardParams as m,validateUnlockCardParams as g,validateOrderCardParams as u,validateGetCardParams as p}from"./cards.validate.js";import{buildIframeUrl as l,createIframe as f}from"../iframe/iframe-manager.js";import{serializeUnlockCardPayload as y,serializeCard as k,serializeOrderCardPayload as T}from"./cards.serializer.js";import{validateOperationSettingsParams as I}from"../validation/operation-settings-validation.js";import{InvalidParametersError as S}from"../errors/InvalidParametersError.js";import{createEmbedUI as h}from"./cards.helper.js";async function b(e){try{const a=e?.cardSettings?.membershipId;if(a&&"string"!=typeof a)throw new S("membershipId must be a string");const{proxyRequestFunction:o,stagingToken:s}=I(e?.operationSettings||{});let i;if(o){const e=c({membershipId:a,stagingToken:s});i=(await r({proxyFunction:o,networkCallDescriptor:e})).body.cards.map((e=>k(e)))}else{const r=e?.operationSettings?.accessToken||t();i=(await d({membershipId:a,accessToken:r,stagingToken:s})).map((e=>k(e)))}return n.cardsList(),i}catch(e){return Promise.reject(e)}}async function j({cardSettings:e,operationSettings:n}){try{p(e);const a=e.cardId,{proxyRequestFunction:o,stagingToken:c}=I(n||{});if(o){const e=s({cardId:a,stagingToken:c}),t=(await r({proxyFunction:o,networkCallDescriptor:e})).body.cards;if(Array.isArray(t)&&t.length>0)return k(t[0]);throw new S("Unable to retrieve card data")}{const e=n?.accessToken||t(),r=await i({cardId:a,accessToken:e,stagingToken:c});return k(r)}}catch(e){return Promise.reject(e)}}async function w(r){try{const a=t(),{uiParentElementId:o,debugMode:s}=I(r.operationSettings,{requiresUI:!0});u(r.cardSettings);const i="virtual"===r.cardSettings.cardLevel,c=l({accessToken:a,stagingToken:e.getStagingToken()||void 0,debugMode:s}),d=await f({iframeUrl:c,parentElementId:o}),m=T(r.cardSettings),g=await d.postMessage(m);return d.destroy(),i?n.cardsOrderVirtual():n.cardsOrderPhysical(),k(g)}catch(e){return Promise.reject(e)}}async function P(r){try{const n=t(),{uiParentElementId:a,debugMode:o}=I(r.operationSettings,{requiresUI:!0});g(r.cardSettings);const s=l({accessToken:n,stagingToken:e.getStagingToken()||void 0,debugMode:o}),i=await f({iframeUrl:s,parentElementId:a}),c=y(r),d=await i.postMessage(c);return i.destroy(),k(d)}catch(e){return Promise.reject(e)}}async function v(e){try{const{uiParentElementId:n,accessToken:s,stagingToken:i,debugMode:c,mfaPreference:d,proxyRequestFunction:g}=I(e.operationSettings,{requiresUI:!0});if(m(e.cardSettings),g){const t=a({stagingToken:i}),o=(await r({proxyFunction:g,networkCallDescriptor:t})).body.embed_auth_link;return h({decorationParams:e.cardSettings,operationSettings:{uiParentElementId:n,debugMode:c},cardIframeUrl:o.url})}{const r=s||t(),a=await o({...e.cardSettings,accessToken:r,stagingToken:i});return h({decorationParams:e.cardSettings,operationSettings:{uiParentElementId:n,debugMode:c,mfaPreference:d},cardIframeUrl:a.url})}}catch(e){return Promise.reject(e)}}export{v as displayCard,j as getCard,b as getCards,w as orderCard,P as unlockCard};
@@ -0,0 +1 @@
1
+ import*as i from"../../../node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/index.js";import{init as e,track as t,reset as n}from"../../../node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/index.js";import{ENVIRONMENTS as o}from"../constants.js";import{environmentManager as s}from"../environment/environment-manager.js";import{info as a}from"../logger/logger.js";import{isRunningInServer as r}from"../runtime/runtime.validation.js";import{ANALYTICS_EVENTS as l}from"./analytics.constants.js";import{LogLevel as c}from"../../../node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js";class m{constructor(){this.isInitialized=!1}static getInstance(){return m.instance||(m.instance=new m),m.instance}initialize(){if(this.isInitialized||r())return;const t=s.getEnvironment()||"production",n=t===o.PRODUCTION?"52c120d2f5c89ca646fae6649a1ce7ad":"373aa80c38e5bc2a55895a96c8447fef";if(n)try{if(!i||"function"!=typeof e)throw new Error("Analytics SDK module not available");const s={defaultTracking:{sessions:!1,pageViews:!1,formInteractions:!1,fileDownloads:!1},logLevel:t!==o.PRODUCTION?c.Debug:c.None};e(n,void 0,s),this.isInitialized=!0,this.track(l.SDK_INITIALIZED)}catch(i){console.error("Failed to initialize analytics tracking:",i)}else a("No tracking client will be initialized due to missing API key")}isEnabled(){return this.isInitialized}track(i,e){if(this.isInitialized)try{t(i,e)}catch(i){console.error("Failed to track analytics event:",i)}}reset(){if(this.isInitialized)try{n()}catch(i){console.error("Failed to reset analytics:",i)}}}const d=m.getInstance();export{m as AmplitudeManager,d as amplitudeManager};
@@ -0,0 +1 @@
1
+ import{amplitudeManager as e}from"./amplitude-manager.js";import{ANALYTICS_EVENTS as t}from"./analytics.constants.js";function a(){e.initialize()}function i(){e.reset()}function r(t,a){e.track(t,a)}const s={cardsList:e=>{r(t.CARDS_LIST,e)},cardsOrderVirtual:e=>{r(t.CARDS_ORDER_VIRTUAL,e)},cardsOrderPhysical:e=>{r(t.CARDS_ORDER_PHYSICAL,e)},beneficiariesList:e=>{r(t.BENEFICIARIES_LIST,e)},sepaTransferCreate:e=>{r(t.SEPA_TRANSFER_CREATE,e)},sepaTransferBulkCreate:e=>{r(t.SEPA_TRANSFER_BULK_CREATE,e)},transactionsList:e=>{r(t.TRANSACTIONS_LIST,e)},organizationsList:e=>{r(t.ORGANIZATIONS_LIST,e)},paymentLinksCreate:e=>{r(t.PAYMENT_LINKS_CREATE,e)},authLinksRequest:e=>{r(t.AUTH_LINKS_REQUEST,e)},uiElementCreated:(e,a)=>{r(t.UI_ELEMENT_CREATED,{uiElementType:e,...a})}};export{a as initialize,i as reset,r as trackEvent,s as tracker};
@@ -0,0 +1 @@
1
+ const E={SDK_INITIALIZED:"SDK Initialized",CARDS_LIST:"Cards List",CARDS_ORDER_VIRTUAL:"Cards Order Virtual",CARDS_ORDER_PHYSICAL:"Cards Order Physical",BENEFICIARIES_LIST:"Beneficiaries List",SEPA_TRANSFER_CREATE:"SEPA Transfer Create",SEPA_TRANSFER_BULK_CREATE:"SEPA Transfer Bulk Create",TRANSACTIONS_LIST:"Transactions List",ORGANIZATIONS_LIST:"Organizations List",PAYMENT_LINKS_CREATE:"Payment Links Create",AUTH_LINKS_REQUEST:"Auth Links Request",UI_ELEMENT_CREATED:"UI Element Created"};export{E as ANALYTICS_EVENTS};
@@ -1 +1 @@
1
- import{authManager as e}from"../auth/auth.js";import{validateInitializeParams as t}from"./initialize.validate.js";import{operationSettingsManager as n}from"../operation-settings/operation-settings.js";import{environmentManager as o}from"../environment/environment-manager.js";import{localeManager as i}from"../locale/locale-manager.js";import{sentryManager as r}from"../sentry/sentry-manager.js";import{info as s}from"../logger/logger.js";function a(a){const{accessToken:c,stagingToken:l,operationSettings:m,environment:g,branch:f,locale:p}=t(a);c&&e.setAccessToken(c),l&&e.setStagingToken(l),p&&i.setLocale(p),m&&n.setSettings(m),g&&(o.setEnvironment(g),f&&o.setBranch(f)),r.initialize(),s("SDK initialized successfully",{environment:g,locale:p,debugMode:m?.debugMode})}function c(){e.clearAccessToken(),e.clearStagingToken(),i.setDefaultLocale(),n.clearSettings()}export{a as initialize,c as logout};
1
+ import{authManager as e}from"../auth/auth.js";import{validateInitializeParams as t}from"./initialize.validate.js";import{operationSettingsManager as n}from"../operation-settings/operation-settings.js";import{environmentManager as o}from"../environment/environment-manager.js";import{localeManager as i}from"../locale/locale-manager.js";import{sentryManager as a}from"../sentry/sentry-manager.js";import{info as r}from"../logger/logger.js";import{initialize as s,reset as c}from"../analytics/analytics-tracker.js";function l(c){const{accessToken:l,stagingToken:m,operationSettings:g,environment:f,branch:p,locale:u}=t(c);l&&e.setAccessToken(l),m&&e.setStagingToken(m),u&&i.setLocale(u),g&&n.setSettings(g),f&&(o.setEnvironment(f),p&&o.setBranch(p)),a.initialize(),s(),r("SDK initialized successfully",{environment:f,locale:u,debugMode:g?.debugMode})}function m(){e.clearAccessToken(),e.clearStagingToken(),i.setDefaultLocale(),n.clearSettings(),c()}export{l as initialize,m as logout};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qonto/embed-sdk",
3
- "version": "0.51.0",
3
+ "version": "0.51.1",
4
4
  "description": "Library to embed Qonto features in your application",
5
5
  "type": "module",
6
6
  "exports": {
@@ -27,8 +27,8 @@
27
27
  "import": "./dist/src/sepa-transfers/index.js"
28
28
  },
29
29
  "./server/sepa-transfers": {
30
- "types": "./dist/sepa-transfers/index.server.d.ts",
31
- "import": "./dist/server/sepa-transfers/index.server.js"
30
+ "types": "./dist/server/sepa-transfers/index.server.d.ts",
31
+ "import": "./dist/server/src/sepa-transfers/index.server.js"
32
32
  },
33
33
  "./transactions": {
34
34
  "types": "./dist/transactions/index.d.ts",
@@ -97,6 +97,7 @@
97
97
  "last 6 opera major version"
98
98
  ],
99
99
  "dependencies": {
100
+ "@amplitude/analytics-browser": "^2.32.2",
100
101
  "@lit/localize": "^0.12.2",
101
102
  "@sentry/browser": "^8.0.0",
102
103
  "lit": "^3.3.1",