@verifiedinc-public/shared-ui-elements 9.11.0 → 9.11.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/dist/components/BrandChallengePromptsTooltip/LazyBrandChallengePromptsTooltip.d.ts +17 -0
  2. package/dist/components/BrandChallengePromptsTooltip/LazyBrandChallengePromptsTooltip.mjs +1 -0
  3. package/dist/components/BrandChallengePromptsTooltip/format.d.ts +9 -0
  4. package/dist/components/BrandChallengePromptsTooltip/format.mjs +1 -0
  5. package/dist/components/BrandChallengePromptsTooltip/index.d.ts +15 -0
  6. package/dist/components/BrandChallengePromptsTooltip/index.mjs +1 -0
  7. package/dist/components/BrandFilterInput/types.d.ts +2 -0
  8. package/dist/components/chart/BillableEventsTable/BillableEventsTable.mjs +1 -1
  9. package/dist/components/chart/BillableEventsTable/BillableEventsTable.types.d.ts +2 -0
  10. package/dist/components/chart/BillableEventsTable/BillableEventsTableDataMapper.d.ts +3 -0
  11. package/dist/components/chart/BillableEventsTable/BillableEventsTableDataMapper.mjs +1 -1
  12. package/dist/components/chart/ConversionOverTimeChart/index.d.ts +2 -0
  13. package/dist/components/chart/ConversionOverTimeChart/index.mjs +1 -1
  14. package/dist/components/chart/SeriesChart/SeriesChart.map.d.ts +2 -0
  15. package/dist/components/chart/SeriesChart/SeriesChart.map.mjs +1 -1
  16. package/dist/components/chart/SeriesChart/index.d.ts +3 -1
  17. package/dist/components/chart/SeriesPercentageChartLegend/index.d.ts +2 -0
  18. package/dist/components/chart/SeriesPercentageChartLegend/index.mjs +1 -1
  19. package/dist/components/chart/SynchronizedMetricsChart/SynchronizedMetricsChart.mjs +1 -1
  20. package/dist/components/index.d.ts +1 -0
  21. package/dist/components/index.mjs +1 -1
  22. package/dist/index.mjs +1 -1
  23. package/package.json +1 -1
@@ -0,0 +1,17 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { BrandChallengePromptsTooltipProps } from './index';
3
+ interface LazyProps extends Omit<BrandChallengePromptsTooltipProps, 'children'> {
4
+ children: ReactNode;
5
+ }
6
+ /**
7
+ * Defers mounting the underlying MUI `Tooltip` until the trigger is hovered or
8
+ * focused. Use in dense surfaces (e.g. tables with 50+ rows) to avoid the
9
+ * documented Popper-render cost of mounting one Tooltip per row up front
10
+ * (see MUI #27057, #41144).
11
+ *
12
+ * For sparse surfaces (chart legend with <50 entries), prefer
13
+ * `<BrandChallengePromptsTooltip>` directly — the lazy-mount wrapper has no
14
+ * benefit and the extra re-render hurts.
15
+ */
16
+ export declare function LazyBrandChallengePromptsTooltip({ prompts, children, }: Readonly<LazyProps>): ReactElement;
17
+ export {};
@@ -0,0 +1 @@
1
+ "use strict";import{useState as s}from"react";import{BrandChallengePromptsTooltip as a}from"./index.mjs";import{jsx as n}from"react/jsx-runtime";function p({prompts:t,children:o}){const[e,r]=s(!1);return e?n(a,{prompts:t,children:o}):n("span",{tabIndex:0,onMouseEnter:()=>r(!0),onFocus:()=>r(!0),children:o})}export{p as LazyBrandChallengePromptsTooltip};
@@ -0,0 +1,9 @@
1
+ export type ChallengeInputType = 'birthDate' | 'ssn4' | 'fullName.firstName';
2
+ export type ChallengePromptBehavior = 'always' | 'ifNecessary';
3
+ export interface ChallengePrompt {
4
+ type: ChallengeInputType;
5
+ promptForChallenge: ChallengePromptBehavior;
6
+ }
7
+ export declare function formatChallengeInput(type: ChallengeInputType): string;
8
+ export declare function formatChallengePromptBehavior(behavior: ChallengePromptBehavior): string;
9
+ export declare function formatChallengePrompt(prompt: ChallengePrompt): string;
@@ -0,0 +1 @@
1
+ "use strict";const t={birthDate:"Birth Date",ssn4:"SSN (last 4)","fullName.firstName":"First Name"},n={always:"Always",ifNecessary:"If Necessary"};function a(e){return t[e]??e}function r(e){return n[e]??e}function s(e){return`${a(e.type)}: ${r(e.promptForChallenge)}`}export{a as formatChallengeInput,s as formatChallengePrompt,r as formatChallengePromptBehavior};
@@ -0,0 +1,15 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { ChallengePrompt } from './format';
3
+ export type { ChallengePrompt } from './format';
4
+ export { LazyBrandChallengePromptsTooltip } from './LazyBrandChallengePromptsTooltip';
5
+ export interface BrandChallengePromptsTooltipProps {
6
+ prompts?: readonly ChallengePrompt[];
7
+ children: ReactNode;
8
+ }
9
+ /**
10
+ * Wraps `children` with a hover tooltip listing the brand's challenge prompts.
11
+ * When `prompts` is empty or undefined, renders `children` unwrapped, no
12
+ * tooltip mounts, so dense surfaces (e.g. billing tables with many rows) pay
13
+ * zero per-row Popper cost when there's nothing to show.
14
+ */
15
+ export declare function BrandChallengePromptsTooltip({ prompts, children, }: Readonly<BrandChallengePromptsTooltipProps>): ReactElement;
@@ -0,0 +1 @@
1
+ "use strict";import{Box as a,Typography as p,Tooltip as i}from"@mui/material";import{formatChallengePrompt as l}from"./format.mjs";import{jsx as e,Fragment as m}from"react/jsx-runtime";function s({prompts:r,children:o}){if(!r||r.length===0)return e(m,{children:o});const t=e(a,{children:r.map(n=>e(p,{variant:"caption",component:"div",children:l(n)},`${n.type}-${n.promptForChallenge}`))});return e(i,{title:t,describeChild:!0,placement:"top",arrow:!0,enterDelay:300,children:e("span",{tabIndex:0,children:o})})}export{s as BrandChallengePromptsTooltip};
@@ -1,3 +1,4 @@
1
+ import { ChallengePrompt } from '../BrandChallengePromptsTooltip';
1
2
  export interface Brands {
2
3
  brandUuid: string;
3
4
  brandName: string;
@@ -8,6 +9,7 @@ export interface Brands {
8
9
  isLiveBrand?: boolean;
9
10
  isApproved?: boolean;
10
11
  additionalData?: any;
12
+ challengePrompts?: readonly ChallengePrompt[];
11
13
  }
12
14
  export type BrandFilter = {
13
15
  name: string;
@@ -1 +1 @@
1
- "use strict";import{TableContainer as C,Paper as x,Table as v,TableHead as w,TableRow as u,TableCell as a,TableBody as U,TableSortLabel as D}from"@mui/material";import{useEffect as L,useMemo as b}from"react";import{EmptyChartSection as P}from"../EmptyChartSection.mjs";import{LoadingChartSection as E}from"../LoadingChartSection.mjs";import{BillableProduct as I,BILLABLE_PRODUCTS as j}from"./BillableEventsTable.types.mjs";import{useBillableSort as M}from"./useBillableSort.hook.mjs";import{CopyableUuid as O}from"../../CopyableUuid/index.mjs";import{white as R}from"../../../styles/colors.mjs";import{jsx as e,jsxs as s}from"react/jsx-runtime";const K=["brand","integrationType"],_=({data:l,isLoading:f,isFetching:S,visibleProducts:y,onSortedDataChange:d,columnSlots:o,topLevelColumns:t=[]})=>{const{sortKey:g,sortDir:T,handleSort:B,sortedData:c}=M(l,K,"brand");L(()=>{d?.(c)},[c,d]);const h=b(()=>{const r=y??Object.values(I);return j.filter(n=>r.includes(n.product))},[y]),m=b(()=>new Set(t.map(r=>r.key)),[t]),k=b(()=>h.flatMap(r=>r.columns).filter(r=>!m.has(r.key)),[h,m]),i=(r,n,p="left")=>e(D,{active:g===r,direction:g===r?T:"asc",onClick:()=>B(r),sx:p==="right"?{flexDirection:"row"}:void 0,children:n});return!(l!=null&&l.length)&&f?e(E,{}):l!=null&&l.length?e(C,{component:x,sx:{opacity:S?.4:1},children:s(v,{sx:{backgroundColor:R},children:[s(w,{children:[s(u,{children:[e(a,{rowSpan:2,children:i("brand","Brand Name")}),e(a,{rowSpan:2,children:"Brand UUID"}),e(a,{rowSpan:2,children:i("integrationType","Integration Type")}),t.map(r=>e(a,{rowSpan:2,children:i(r.key,r.label)},r.key)),h.map(r=>{const n=r.columns.filter(p=>!m.has(p.key)).length;return n===0?null:e(a,{colSpan:n,align:"center",sx:{fontWeight:"bold",borderBottom:"none"},children:r.label},r.product)})]}),e(u,{children:k.map(r=>e(a,{align:"right",children:i(r.key,r.label,"right")},r.key))})]}),e(U,{children:c.map(r=>s(u,{children:[e(a,{children:r.brand}),e(a,{children:e(O,{uuid:r.brandUuid,label:"Brand UUID",variant:"button",head:6,tail:0,mono:!1,iconSx:{color:"success.main"},typographyProps:{variant:"inherit",color:"inherit"}})}),e(a,{children:r.integrationType}),t.map(n=>e(a,{children:o!=null&&o[n.key]?o[n.key](r):r.metrics[n.key]??0},n.key)),k.map(n=>e(a,{align:"right",children:o!=null&&o[n.key]?o[n.key](r):r.metrics[n.key]??0},n.key))]},r.brandUuid))})]})}):e(P,{})};export{_ as BillableEventsTable};
1
+ "use strict";import{TableContainer as C,Paper as x,Table as v,TableHead as L,TableRow as u,TableCell as n,TableBody as U,TableSortLabel as w}from"@mui/material";import{useEffect as D,useMemo as b}from"react";import{EmptyChartSection as P}from"../EmptyChartSection.mjs";import{LoadingChartSection as E}from"../LoadingChartSection.mjs";import{BillableProduct as I,BILLABLE_PRODUCTS as j}from"./BillableEventsTable.types.mjs";import{useBillableSort as M}from"./useBillableSort.hook.mjs";import{CopyableUuid as O}from"../../CopyableUuid/index.mjs";import{white as R}from"../../../styles/colors.mjs";import{jsx as e,jsxs as s}from"react/jsx-runtime";import{LazyBrandChallengePromptsTooltip as z}from"../../BrandChallengePromptsTooltip/LazyBrandChallengePromptsTooltip.mjs";const A=["brand","integrationType"],K=({data:l,isLoading:k,isFetching:S,visibleProducts:y,onSortedDataChange:c,columnSlots:o,topLevelColumns:t=[]})=>{const{sortKey:g,sortDir:T,handleSort:B,sortedData:d}=M(l,A,"brand");D(()=>{c?.(d)},[d,c]);const m=b(()=>{const r=y??Object.values(I);return j.filter(a=>r.includes(a.product))},[y]),h=b(()=>new Set(t.map(r=>r.key)),[t]),f=b(()=>m.flatMap(r=>r.columns).filter(r=>!h.has(r.key)),[m,h]),i=(r,a,p="left")=>e(w,{active:g===r,direction:g===r?T:"asc",onClick:()=>B(r),sx:p==="right"?{flexDirection:"row"}:void 0,children:a});return!(l!=null&&l.length)&&k?e(E,{}):l!=null&&l.length?e(C,{component:x,sx:{opacity:S?.4:1},children:s(v,{sx:{backgroundColor:R},children:[s(L,{children:[s(u,{children:[e(n,{rowSpan:2,children:i("brand","Brand Name")}),e(n,{rowSpan:2,children:"Brand UUID"}),e(n,{rowSpan:2,children:i("integrationType","Integration Type")}),t.map(r=>e(n,{rowSpan:2,children:i(r.key,r.label)},r.key)),m.map(r=>{const a=r.columns.filter(p=>!h.has(p.key)).length;return a===0?null:e(n,{colSpan:a,align:"center",sx:{fontWeight:"bold",borderBottom:"none"},children:r.label},r.product)})]}),e(u,{children:f.map(r=>e(n,{align:"right",children:i(r.key,r.label,"right")},r.key))})]}),e(U,{children:d.map(r=>s(u,{children:[e(n,{children:e(z,{prompts:r.challengePrompts,children:r.brand})}),e(n,{children:e(O,{uuid:r.brandUuid,label:"Brand UUID",variant:"button",head:6,tail:0,mono:!1,iconSx:{color:"success.main"},typographyProps:{variant:"inherit",color:"inherit"}})}),e(n,{children:r.integrationType}),t.map(a=>e(n,{children:o!=null&&o[a.key]?o[a.key](r):r.metrics[a.key]??0},a.key)),f.map(a=>e(n,{align:"right",children:o!=null&&o[a.key]?o[a.key](r):r.metrics[a.key]??0},a.key))]},r.brandUuid))})]})}):e(P,{})};export{K as BillableEventsTable};
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { ChartData } from '../BillableEventsProductTable';
3
+ import { ChallengePrompt } from '../../BrandChallengePromptsTooltip';
3
4
  export declare enum BillableProduct {
4
5
  TEXT_TO_SIGNUP = "TEXT_TO_SIGNUP",
5
6
  ONE_CLICK_VERIFY = "ONE_CLICK_VERIFY",
@@ -23,6 +24,7 @@ export type BillableEventsTableRow = {
23
24
  integrationType: string;
24
25
  metrics: Record<string, number>;
25
26
  raw: ChartData;
27
+ challengePrompts?: readonly ChallengePrompt[];
26
28
  };
27
29
  export type BillableEventsTableProps = {
28
30
  data: BillableEventsTableRow[];
@@ -1,9 +1,12 @@
1
1
  import { BillableProduct, BillableEventsTableRow } from './BillableEventsTable.types';
2
+ import { ChallengePrompt } from '../../BrandChallengePromptsTooltip';
2
3
  export declare function formatIntegrationType(type?: string): string;
3
4
  type Brand = {
4
5
  brandUuid: string;
5
6
  brandName: string;
6
7
  integrationType: string;
8
+ challengePrompts?: readonly ChallengePrompt[];
9
+ inputChallengePrompts?: readonly ChallengePrompt[];
7
10
  };
8
11
  type ChartData = {
9
12
  brandUuid: string;
@@ -1 +1 @@
1
- "use strict";import{BILLABLE_PRODUCTS as b}from"./BillableEventsTable.types.mjs";const y={hosted:"SDK","non-hosted":"API","semi-hosted":"Semi-Hosted",sdk:"SDK",api:"API"};function u(r){return r?y[r.toLowerCase()]??r:""}const g=({productDataSets:r,brands:f})=>{var c;const s=new Map,i=new Map;for(const{product:e,data:d}of r){const t=b.find(n=>n.product===e);if(t)for(const n of d){if(!((c=n.interval)!=null&&c.length))continue;const o=s.get(n.brandUuid)??{};for(const a of t.columns){const l=n.interval.reduce((m,p)=>m+(Number(p[a.metricKey])||0),0);o[a.key]=(o[a.key]??0)+l}t.columns.some(a=>(o[a.key]??0)>0)&&!i.has(n.brandUuid)&&i.set(n.brandUuid,n),s.set(n.brandUuid,o)}}return Array.from(i.entries()).map(([e,d])=>{const t=f.find(n=>n.brandUuid===e);return t?{brandUuid:e,brand:t.brandName,integrationType:u(t.integrationType),metrics:s.get(e)??{},raw:d}:null}).filter(e=>e!==null)};export{u as formatIntegrationType,g as mapBillableEventsTableData};
1
+ "use strict";import{BILLABLE_PRODUCTS as b}from"./BillableEventsTable.types.mjs";const g={hosted:"SDK","non-hosted":"API","semi-hosted":"Semi-Hosted",sdk:"SDK",api:"API"};function u(o){return o?g[o.toLowerCase()]??o:""}const h=({productDataSets:o,brands:l})=>{var c;const s=new Map,i=new Map;for(const{product:e,data:d}of o){const t=b.find(n=>n.product===e);if(t)for(const n of d){if(!((c=n.interval)!=null&&c.length))continue;const r=s.get(n.brandUuid)??{};for(const a of t.columns){const m=n.interval.reduce((p,f)=>p+(Number(f[a.metricKey])||0),0);r[a.key]=(r[a.key]??0)+m}t.columns.some(a=>(r[a.key]??0)>0)&&!i.has(n.brandUuid)&&i.set(n.brandUuid,n),s.set(n.brandUuid,r)}}return Array.from(i.entries()).map(([e,d])=>{const t=l.find(r=>r.brandUuid===e);if(!t)return null;const n=t.challengePrompts??t.inputChallengePrompts;return{brandUuid:e,brand:t.brandName,integrationType:u(t.integrationType),metrics:s.get(e)??{},raw:d,...n?{challengePrompts:n}:{}}}).filter(e=>e!==null)};export{u as formatIntegrationType,h as mapBillableEventsTableData};
@@ -2,6 +2,7 @@ import { default as React } from 'react';
2
2
  import { SxProps } from '@mui/material';
3
3
  import { AreaSeriesChartData } from '../AreaChart';
4
4
  import { BrandFilter } from '../../BrandFilterInput';
5
+ import { ChallengePrompt } from '../../BrandChallengePromptsTooltip';
5
6
  export type { AreaSeriesChartData } from '../AreaChart';
6
7
  export interface BrandIntervalData {
7
8
  brandUuid: string;
@@ -15,6 +16,7 @@ export interface ConversionOverTimeChartLegendBrand {
15
16
  dataKey?: string;
16
17
  brandName?: string;
17
18
  integrationType?: string;
19
+ challengePrompts?: readonly ChallengePrompt[];
18
20
  }
19
21
  export interface ConversionOverTimeChartProps {
20
22
  data?: Array<Record<string, number | string>>;
@@ -1 +1 @@
1
- "use strict";import{useState as T}from"react";import{Stack as A,Box as v,ToggleButtonGroup as E,ToggleButton as N}from"@mui/material";import{EmptyChartSection as U}from"../EmptyChartSection.mjs";import{LoadingChartSection as B}from"../LoadingChartSection.mjs";import{AreaChart as j}from"../AreaChart/index.mjs";import{SeriesPercentageChartLegend as Z}from"../SeriesPercentageChartLegend/index.mjs";import{useStyle as $}from"../styles.mjs";import{formatExtendedDate as z,formatDateMMYY as O}from"../../../utils/date.mjs";import{DEFAULT_TIMEZONE as W}from"../../form/TimezoneInput/timezones.mjs";import{jsx as n,jsxs as b}from"react/jsx-runtime";function _({brands:g,data:y,seriesConfig:d}){const c=new Map,u=g?new Set(g.map(a=>a._raw.brandUuid)):null;for(const a of y)if(!(u&&!u.has(a.brandUuid)))for(const l of a.interval??[]){const f=+new Date(l.date);let t=c.get(f);if(!t){t={date:f};for(const i of d)t[i.dataKey]=0;c.set(f,t)}for(const i of d)t[i.dataKey]=t[i.dataKey]+Number(l[i.dataKey]||0)}return{series:d,data:Array.from(c.values()).sort((a,l)=>a.date-l.date)}}function I({data:g,series:y,chartData:d,seriesConfig:c,stackMode:u="stack",isLoading:a,isFetching:l,isSuccess:f,filter:t,sx:i,legendBrand:r,showLegendUuid:K=!0}){const x=$(),C=t.timezone??W,[p,k]=T("absolute"),o=d!==void 0?a?{series:[],data:[]}:_({brands:t.brands,data:d,seriesConfig:c??[]}):{series:y??[],data:g??[]};if(!o.data.length&&a)return n(B,{});if(!o.data.length||!f)return n(U,{});const S=u==="none"&&p==="percent"?o.data.map(e=>{const m=Math.max(0,...o.series.map(s=>Number(e[s.dataKey])||0)),h={date:e.date};for(const s of o.series)h[s.dataKey]=m===0?0:(Number(e[s.dataKey])||0)/m;return h}):null,F=u==="stack"?p==="absolute"?"stack":"expand":"none",D=p==="absolute"?{tickFormatter:e=>Number(e).toLocaleString(),allowDecimals:!1}:{tickFormatter:e=>`${(e*100).toFixed(0)}%`,domain:[0,1]},M=p==="absolute"?e=>Number(e).toLocaleString():u==="stack"?(e,m,h)=>{const s=o.series.reduce((w,L)=>w+(Number(h.payload[L.dataKey])||0),0);return s===0?"0.0%":`${(Number(e)/s*100).toFixed(1)}%`}:e=>`${(Number(e)*100).toFixed(1)}%`;return b(A,{children:[b(v,{sx:{display:"flex",flexDirection:"column",gap:1,height:x.regularChartWrapper.height},children:[n(v,{sx:{display:"flex",justifyContent:"flex-end"},children:b(E,{value:p,exclusive:!0,onChange:(e,m)=>{m!==null&&k(m)},size:"small",children:[n(N,{value:"absolute",children:"Numbers"}),n(N,{value:"percent",children:"Percentages"})]})}),n(j,{data:S??o.data,series:o.series,stackMode:F,isAnimationActive:!0,xAxis:{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:e=>O(e,{timeZone:C,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1},yAxis:D,tooltip:{formatter:M,labelFormatter:e=>z(e,{timeZone:C,hour12:!1})},sx:{...x.regularChartWrapper,height:"unset",flex:1,minHeight:0,opacity:l?.4:1,...i}})]}),r&&n(Z,{payload:[{uuid:r.uuid,value:r.value,color:r.color,dataKey:r.dataKey??r.uuid,brandName:r.brandName,integrationType:r.integrationType}],showUuid:K})]})}export{I as ConversionOverTimeChart};
1
+ "use strict";import{useState as T}from"react";import{Stack as A,Box as v,ToggleButtonGroup as E,ToggleButton as N}from"@mui/material";import{EmptyChartSection as U}from"../EmptyChartSection.mjs";import{LoadingChartSection as B}from"../LoadingChartSection.mjs";import{AreaChart as P}from"../AreaChart/index.mjs";import{SeriesPercentageChartLegend as j}from"../SeriesPercentageChartLegend/index.mjs";import{useStyle as Z}from"../styles.mjs";import{formatExtendedDate as $,formatDateMMYY as z}from"../../../utils/date.mjs";import{DEFAULT_TIMEZONE as O}from"../../form/TimezoneInput/timezones.mjs";import{jsx as n,jsxs as b}from"react/jsx-runtime";function _({brands:g,data:y,seriesConfig:d}){const c=new Map,l=g?new Set(g.map(a=>a._raw.brandUuid)):null;for(const a of y)if(!(l&&!l.has(a.brandUuid)))for(const u of a.interval??[]){const f=+new Date(u.date);let t=c.get(f);if(!t){t={date:f};for(const s of d)t[s.dataKey]=0;c.set(f,t)}for(const s of d)t[s.dataKey]=t[s.dataKey]+Number(u[s.dataKey]||0)}return{series:d,data:Array.from(c.values()).sort((a,u)=>a.date-u.date)}}function I({data:g,series:y,chartData:d,seriesConfig:c,stackMode:l="stack",isLoading:a,isFetching:u,isSuccess:f,filter:t,sx:s,legendBrand:r,showLegendUuid:K=!0}){const x=Z(),C=t.timezone??O,[p,k]=T("absolute"),o=d!==void 0?a?{series:[],data:[]}:_({brands:t.brands,data:d,seriesConfig:c??[]}):{series:y??[],data:g??[]};if(!o.data.length&&a)return n(B,{});if(!o.data.length||!f)return n(U,{});const S=l==="none"&&p==="percent"?o.data.map(e=>{const m=Math.max(0,...o.series.map(i=>Number(e[i.dataKey])||0)),h={date:e.date};for(const i of o.series)h[i.dataKey]=m===0?0:(Number(e[i.dataKey])||0)/m;return h}):null,F=l==="stack"?p==="absolute"?"stack":"expand":"none",D=p==="absolute"?{tickFormatter:e=>Number(e).toLocaleString(),allowDecimals:!1}:{tickFormatter:e=>`${(e*100).toFixed(0)}%`,domain:[0,1]},M=p==="absolute"?e=>Number(e).toLocaleString():l==="stack"?(e,m,h)=>{const i=o.series.reduce((w,L)=>w+(Number(h.payload[L.dataKey])||0),0);return i===0?"0.0%":`${(Number(e)/i*100).toFixed(1)}%`}:e=>`${(Number(e)*100).toFixed(1)}%`;return b(A,{children:[b(v,{sx:{display:"flex",flexDirection:"column",gap:1,height:x.regularChartWrapper.height},children:[n(v,{sx:{display:"flex",justifyContent:"flex-end"},children:b(E,{value:p,exclusive:!0,onChange:(e,m)=>{m!==null&&k(m)},size:"small",children:[n(N,{value:"absolute",children:"Numbers"}),n(N,{value:"percent",children:"Percentages"})]})}),n(P,{data:S??o.data,series:o.series,stackMode:F,isAnimationActive:!0,xAxis:{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:e=>z(e,{timeZone:C,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1},yAxis:D,tooltip:{formatter:M,labelFormatter:e=>$(e,{timeZone:C,hour12:!1})},sx:{...x.regularChartWrapper,height:"unset",flex:1,minHeight:0,opacity:u?.4:1,...s}})]}),r&&n(j,{payload:[{uuid:r.uuid,value:r.value,color:r.color,dataKey:r.dataKey??r.uuid,brandName:r.brandName,integrationType:r.integrationType,challengePrompts:r.challengePrompts}],showUuid:K})]})}export{I as ConversionOverTimeChart};
@@ -1,4 +1,5 @@
1
1
  import { BrandFilter } from '../../BrandFilterInput';
2
+ import { ChallengePrompt } from '../../BrandChallengePromptsTooltip';
2
3
  interface TimeSeriesDataPoint {
3
4
  date: number;
4
5
  value: number;
@@ -8,6 +9,7 @@ interface TimeSeriesChartData {
8
9
  name: string;
9
10
  color: string;
10
11
  chartData: TimeSeriesDataPoint[];
12
+ challengePrompts?: readonly ChallengePrompt[];
11
13
  }
12
14
  export interface MapSeriesTimeSeriesDataOptions {
13
15
  brands: BrandFilter[];
@@ -1 +1 @@
1
- "use strict";import g from"lodash/sortBy";import{stringToHashedColor as m}from"../../../utils/uuidColor.mjs";function k(s){const{brands:p,colorMap:l,data:c,keyValue:y}=s,e=new Map;p.forEach(({_raw:a})=>{(c?.filter(r=>r.brandUuid===a.brandUuid)??[]).forEach(r=>{const d=r.keyword??r.brandUuid;if(!d)return;const i=(r.interval??[]).map(t=>({date:+new Date(t.date),value:Number(t[y]||0)})).filter(t=>s.filterOutZeroValues?t.value>0:!0);if(e.has(d)){const t=e.get(d);if(!t)return;const b=[...t.chartData,...i],u=new Map;b.forEach(({date:n,value:o})=>{u.set(n,(u.get(n)??0)+o)});const w=Array.from(u.entries()).map(([n,o])=>({date:n,value:o})).sort((n,o)=>n.date-o.date);e.set(d,{keyword:r.keyword,brandUuid:a.brandUuid,brandName:a.brandName,brandColor:l.get(a.brandUuid),brandIntegrationType:a.integrationType,chartData:w})}else e.set(d,{keyword:r.keyword,brandUuid:a.brandUuid,brandName:a.brandName,brandColor:l.get(a.brandUuid),brandIntegrationType:a.integrationType,chartData:i})})});const f=a=>a==="hosted"||a==="sdk"?"SDK":a==="non-hosted"||a==="api"?"API":a,U=({keyword:a,brandColor:r,brandUuid:d})=>a?m(a):r??m(d),h=Array.from(e.values()).map(({keyword:a,brandUuid:r,brandName:d,brandColor:i,brandIntegrationType:t,chartData:b})=>({uuid:a??r,name:a??d,description:a?"":f(t),color:U({keyword:a,brandColor:i,brandUuid:r}),chartData:b,brandUuid:a?r:void 0,brandName:a?d:void 0}));return g(h,a=>a.name)}export{k as mapSeriesTimeSeriesData};
1
+ "use strict";import w from"lodash/sortBy";import{stringToHashedColor as m}from"../../../utils/uuidColor.mjs";function k(b){const{brands:p,colorMap:u,data:c,keyValue:h}=b,e=new Map;p.forEach(({_raw:a})=>{(c?.filter(r=>r.brandUuid===a.brandUuid)??[]).forEach(r=>{const n=r.keyword??r.brandUuid;if(!n)return;const l=(r.interval??[]).map(t=>({date:+new Date(t.date),value:Number(t[h]||0)})).filter(t=>b.filterOutZeroValues?t.value>0:!0);if(e.has(n)){const t=e.get(n);if(!t)return;const s=[...t.chartData,...l],o=new Map;s.forEach(({date:d,value:i})=>{o.set(d,(o.get(d)??0)+i)});const U=Array.from(o.entries()).map(([d,i])=>({date:d,value:i})).sort((d,i)=>d.date-i.date);e.set(n,{keyword:r.keyword,brandUuid:a.brandUuid,brandName:a.brandName,brandColor:u.get(a.brandUuid),brandIntegrationType:a.integrationType,chartData:U,challengePrompts:a.challengePrompts})}else e.set(n,{keyword:r.keyword,brandUuid:a.brandUuid,brandName:a.brandName,brandColor:u.get(a.brandUuid),brandIntegrationType:a.integrationType,chartData:l,challengePrompts:a.challengePrompts})})});const g=a=>a==="hosted"||a==="sdk"?"SDK":a==="non-hosted"||a==="api"?"API":a,y=({keyword:a,brandColor:r,brandUuid:n})=>a?m(a):r??m(n),f=Array.from(e.values()).map(({keyword:a,brandUuid:r,brandName:n,brandColor:l,brandIntegrationType:t,chartData:s,challengePrompts:o})=>({uuid:a??r,name:a??n,description:a?"":g(t),color:y({keyword:a,brandColor:l,brandUuid:r}),chartData:s,brandUuid:a?r:void 0,brandName:a?n:void 0,challengePrompts:o}));return w(f,a=>a.name)}export{k as mapSeriesTimeSeriesData};
@@ -1,5 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { SxProps } from '@mui/material';
3
+ import { ChallengePrompt } from '../../BrandChallengePromptsTooltip';
3
4
  interface ChartDataPoint {
4
5
  date: number;
5
6
  value: number;
@@ -12,6 +13,7 @@ export interface SeriesChartData {
12
13
  chartData: ChartDataPoint[];
13
14
  brandUuid?: string;
14
15
  brandName?: string;
16
+ challengePrompts?: readonly ChallengePrompt[];
15
17
  }
16
18
  interface SeriesChartProps {
17
19
  label: string;
@@ -23,5 +25,5 @@ interface SeriesChartProps {
23
25
  showUuid?: boolean;
24
26
  showLegend?: boolean;
25
27
  }
26
- export declare function SeriesChart(props: SeriesChartProps): ReactElement;
28
+ export declare function SeriesChart(props: Readonly<SeriesChartProps>): ReactElement;
27
29
  export * from './SeriesChart.map';
@@ -1,5 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { LegendProps } from 'recharts';
3
+ import { ChallengePrompt } from '../../BrandChallengePromptsTooltip';
3
4
  type CustomPayload = {
4
5
  uuid: string;
5
6
  value: string;
@@ -7,6 +8,7 @@ type CustomPayload = {
7
8
  dataKey: string;
8
9
  integrationType?: string;
9
10
  brandName?: string;
11
+ challengePrompts?: readonly ChallengePrompt[];
10
12
  };
11
13
  interface SeriesPercentageChartLegendProps extends Omit<LegendProps, 'payload'> {
12
14
  showUuid?: boolean;
@@ -1 +1 @@
1
- "use strict";import{Box as d,Stack as c,Typography as e}from"@mui/material";import i from"@mui/material/Unstable_Grid2";import{AnimatePresence as l}from"framer-motion";import{MotionStack as p}from"../../animation/motions.mjs";import{CopyableUuid as s}from"../../CopyableUuid/index.mjs";import{jsx as r,jsxs as n}from"react/jsx-runtime";function u({entry:o,showUuid:a=!0}){return n(p,{component:"li",direction:"row",spacing:1,sx:{color:o.color},layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[r(d,{sx:{width:"3px",height:"100%",backgroundColor:o.color,borderRadius:3}}),n(c,{children:[r(e,{variant:"body1",children:o.value}),o.brandName&&r(e,{variant:"body2",children:o.brandName}),o.integrationType&&r(e,{variant:"body2",children:o.integrationType}),a&&o.uuid&&r(s,{uuid:o.uuid,label:"UUID",head:5,tail:0,variant:"text",mono:!1,typographyProps:{color:"inherit"}})]})]})}function m(o){const{payload:a}=o;return r(i,{container:!0,direction:"row",component:"ul",gap:2,sx:{mt:2,justifyContent:"flex-start",alignItem:"center",flexWrap:"wrap"},children:r(l,{children:a?.map(t=>r(i,{children:r(u,{entry:t,showUuid:o.showUuid})},`item-${t.uuid}-${t.value}`))})})}export{m as SeriesPercentageChartLegend};
1
+ "use strict";import{Box as l,Stack as p,Typography as e}from"@mui/material";import t from"@mui/material/Unstable_Grid2";import{AnimatePresence as d}from"framer-motion";import{MotionStack as c}from"../../animation/motions.mjs";import{CopyableUuid as s}from"../../CopyableUuid/index.mjs";import{BrandChallengePromptsTooltip as m}from"../../BrandChallengePromptsTooltip/index.mjs";import{jsx as i,jsxs as n}from"react/jsx-runtime";function u({entry:r,showUuid:o=!0}){return n(c,{component:"li",direction:"row",spacing:1,sx:{color:r.color},layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[i(l,{sx:{width:"3px",height:"100%",backgroundColor:r.color,borderRadius:3}}),n(p,{children:[i(e,{variant:"body1",children:r.value}),r.brandName&&i(e,{variant:"body2",children:r.brandName}),r.integrationType&&i(e,{variant:"body2",children:r.integrationType}),o&&r.uuid&&i(s,{uuid:r.uuid,label:"UUID",head:5,tail:0,variant:"text",mono:!1,typographyProps:{color:"inherit"}})]})]})}function h(r){const{payload:o}=r;return i(t,{container:!0,direction:"row",component:"ul",gap:2,sx:{mt:2,justifyContent:"flex-start",alignItem:"center",flexWrap:"wrap"},children:i(d,{children:o?.map(a=>i(t,{children:i(m,{prompts:a.challengePrompts,children:i(u,{entry:a,showUuid:r.showUuid})})},`item-${a.uuid}-${a.value}`))})})}export{h as SeriesPercentageChartLegend};
@@ -1 +1 @@
1
- "use strict";import{useState as v,useMemo as k}from"react";import{Stack as p,ToggleButton as F,useTheme as I,Typography as K}from"@mui/material";import{ResponsiveContainer as W,LineChart as Y,CartesianGrid as j,XAxis as Z,YAxis as O,Tooltip as U,Line as L}from"recharts";import{formatDateMMYY as B,formatExtendedDate as G}from"../../../utils/date.mjs";import{DEFAULT_TIMEZONE as R}from"../../form/TimezoneInput/timezones.mjs";import{EmptyChartSection as X}from"../EmptyChartSection.mjs";import{LoadingChartSection as q}from"../LoadingChartSection.mjs";import{SeriesPercentageChartLegend as H}from"../SeriesPercentageChartLegend/index.mjs";import{chartDefaultProps as J,xAxisDefaultProps as Q,yAxisDefaultProps as V}from"../shared.mjs";import{mapSynchronizedSubCharts as $}from"./SynchronizedMetricsChart.map.mjs";import{jsx as e,jsxs as d}from"react/jsx-runtime";import tt from"../../../node_modules/d3-scale/src/symlog.mjs";const at="synchronized-metrics",et=200,g="__total__",rt="Total";function w(n){const i=new Map;for(const o of n)for(const r of o.chartData){let s=i.get(r.date);s||(s={date:r.date},i.set(r.date,s)),s[o.uuid]=r.value}return Array.from(i.values()).sort((o,r)=>o.date-r.date)}const ot=g;function z(n,i){return i.length?n.map(o=>({...o,[g]:i.reduce((r,s)=>r+(Number(o[s])||0),0)})):n}function it({title:n,mergedData:i,brands:o,timezone:r,syncId:s,isPercentage:l,showTotal:f,logScale:y,tooltipFormatter:u,yAxisTickFormatter:x,yAxisDomain:b}){const m=I(),A=y&&!l,c=f&&!l&&o.length>1,T=A?tt():void 0;return d(p,{children:[e(K,{variant:"h5",sx:{mb:.5,fontSize:"1.15rem"},children:n}),e(W,{width:"100%",height:et,children:d(Y,{data:i,syncId:s,margin:J.margin,children:[e(j,{vertical:!1}),e(Z,{dataKey:"date",tickFormatter:a=>B(a,{timeZone:r,hour12:!1,hour:"numeric"}),...Q}),e(O,{tickFormatter:x??(a=>Number(a).toLocaleString()),allowDecimals:!1,domain:b,scale:T,...V}),e(U,{cursor:{stroke:m.palette.neutral.main,strokeWidth:1},formatter:u??(a=>Number(a).toLocaleString()),labelFormatter:a=>G(a,{timeZone:r,hour12:!1}),itemSorter:a=>-Number(a?.value??0)}),o.map(a=>e(L,{dataKey:a.uuid,name:a.name,stroke:a.color,type:"monotone",strokeWidth:2,isAnimationActive:!1,dot:!1},a.uuid)),c&&e(L,{dataKey:g,name:rt,stroke:m.palette.text.primary,strokeWidth:2,strokeDasharray:"4 4",type:"monotone",isAnimationActive:!1,dot:!1},g)]})})]})}function st({subCharts:n,chartData:i,subChartConfig:o,colorMap:r,syncId:s=at,isLoading:l,isSuccess:f,isFetching:y,filter:u,sx:x}){const b=u.timezone??R,[m,A]=v(!1),[c,T]=v(!1),a=i?$({chartData:i,subChartConfig:o,brands:u.brands,colorMap:r,isLoading:l}):n,D=a.every(t=>t.data.length===0),P=k(()=>a.map(t=>{const h=w(t.data);if(t.isPercentage)return h;const _=t.data.map(E=>E.uuid);return z(h,_)}),[a]),S=a.some(t=>!t.isPercentage),C=a.some(t=>!t.isPercentage&&t.data.length>1),M=k(()=>a[0].data.map(t=>({uuid:t.brandUuid??t.uuid,value:t.name,color:t.color,dataKey:t.uuid,integrationType:t.description??void 0,brandName:t.brandName})),[a]);if(D&&l)return e(q,{});if(D||!f)return e(X,{});const N=S||C;return d(p,{sx:{width:"100%",...x},children:[N&&d(p,{direction:"row",spacing:1,justifyContent:"flex-end",sx:{mb:1},children:[C&&e(F,{value:"total",selected:m,onChange:()=>A(t=>!t),size:"small","aria-label":"Show Total line","aria-pressed":m,children:"Show Total"}),S&&e(F,{value:"log",selected:c,onChange:()=>T(t=>!t),size:"small","aria-label":"Toggle logarithmic scale","aria-pressed":c,children:"Log Scale"})]}),d(p,{sx:{opacity:y?.4:1,gap:2},children:[a.map((t,h)=>e(it,{title:t.title,mergedData:P[h],brands:t.data,timezone:b,syncId:s,isPercentage:t.isPercentage??!1,showTotal:m,logScale:c,tooltipFormatter:t.tooltipFormatter,yAxisTickFormatter:t.yAxisTickFormatter,yAxisDomain:t.yAxisDomain},t.title)),e(H,{payload:M})]})]})}export{st as SynchronizedMetricsChart,ot as TOTAL_DATA_KEY,z as enrichWithTotal,w as mergeChartData};
1
+ "use strict";import{useState as v,useMemo as k}from"react";import{Stack as p,ToggleButton as P,useTheme as I,Typography as K}from"@mui/material";import{ResponsiveContainer as W,LineChart as Y,CartesianGrid as j,XAxis as Z,YAxis as O,Tooltip as U,Line as F}from"recharts";import{formatDateMMYY as B,formatExtendedDate as G}from"../../../utils/date.mjs";import{DEFAULT_TIMEZONE as R}from"../../form/TimezoneInput/timezones.mjs";import{EmptyChartSection as X}from"../EmptyChartSection.mjs";import{LoadingChartSection as q}from"../LoadingChartSection.mjs";import{SeriesPercentageChartLegend as H}from"../SeriesPercentageChartLegend/index.mjs";import{chartDefaultProps as J,xAxisDefaultProps as Q,yAxisDefaultProps as V}from"../shared.mjs";import{mapSynchronizedSubCharts as $}from"./SynchronizedMetricsChart.map.mjs";import{jsx as e,jsxs as d}from"react/jsx-runtime";import tt from"../../../node_modules/d3-scale/src/symlog.mjs";const at="synchronized-metrics",et=200,g="__total__",rt="Total";function L(n){const i=new Map;for(const o of n)for(const r of o.chartData){let s=i.get(r.date);s||(s={date:r.date},i.set(r.date,s)),s[o.uuid]=r.value}return Array.from(i.values()).sort((o,r)=>o.date-r.date)}const ot=g;function w(n,i){return i.length?n.map(o=>({...o,[g]:i.reduce((r,s)=>r+(Number(o[s])||0),0)})):n}function it({title:n,mergedData:i,brands:o,timezone:r,syncId:s,isPercentage:l,showTotal:f,logScale:y,tooltipFormatter:h,yAxisTickFormatter:x,yAxisDomain:b}){const m=I(),A=y&&!l,c=f&&!l&&o.length>1,T=A?tt():void 0;return d(p,{children:[e(K,{variant:"h5",sx:{mb:.5,fontSize:"1.15rem"},children:n}),e(W,{width:"100%",height:et,children:d(Y,{data:i,syncId:s,margin:J.margin,children:[e(j,{vertical:!1}),e(Z,{dataKey:"date",tickFormatter:a=>B(a,{timeZone:r,hour12:!1,hour:"numeric"}),...Q}),e(O,{tickFormatter:x??(a=>Number(a).toLocaleString()),allowDecimals:!1,domain:b,scale:T,...V}),e(U,{cursor:{stroke:m.palette.neutral.main,strokeWidth:1},formatter:h??(a=>Number(a).toLocaleString()),labelFormatter:a=>G(a,{timeZone:r,hour12:!1}),itemSorter:a=>-Number(a?.value??0)}),o.map(a=>e(F,{dataKey:a.uuid,name:a.name,stroke:a.color,type:"monotone",strokeWidth:2,isAnimationActive:!1,dot:!1},a.uuid)),c&&e(F,{dataKey:g,name:rt,stroke:m.palette.text.primary,strokeWidth:2,strokeDasharray:"4 4",type:"monotone",isAnimationActive:!1,dot:!1},g)]})})]})}function st({subCharts:n,chartData:i,subChartConfig:o,colorMap:r,syncId:s=at,isLoading:l,isSuccess:f,isFetching:y,filter:h,sx:x}){const b=h.timezone??R,[m,A]=v(!1),[c,T]=v(!1),a=i?$({chartData:i,subChartConfig:o,brands:h.brands,colorMap:r,isLoading:l}):n,D=a.every(t=>t.data.length===0),z=k(()=>a.map(t=>{const u=L(t.data);if(t.isPercentage)return u;const E=t.data.map(N=>N.uuid);return w(u,E)}),[a]),S=a.some(t=>!t.isPercentage),C=a.some(t=>!t.isPercentage&&t.data.length>1),M=k(()=>a[0].data.map(t=>({uuid:t.brandUuid??t.uuid,value:t.name,color:t.color,dataKey:t.uuid,integrationType:t.description??void 0,brandName:t.brandName,challengePrompts:t.challengePrompts})),[a]);if(D&&l)return e(q,{});if(D||!f)return e(X,{});const _=S||C;return d(p,{sx:{width:"100%",...x},children:[_&&d(p,{direction:"row",spacing:1,justifyContent:"flex-end",sx:{mb:1},children:[C&&e(P,{value:"total",selected:m,onChange:()=>A(t=>!t),size:"small","aria-label":"Show Total line","aria-pressed":m,children:"Show Total"}),S&&e(P,{value:"log",selected:c,onChange:()=>T(t=>!t),size:"small","aria-label":"Toggle logarithmic scale","aria-pressed":c,children:"Log Scale"})]}),d(p,{sx:{opacity:y?.4:1,gap:2},children:[a.map((t,u)=>e(it,{title:t.title,mergedData:z[u],brands:t.data,timezone:b,syncId:s,isPercentage:t.isPercentage??!1,showTotal:m,logScale:c,tooltipFormatter:t.tooltipFormatter,yAxisTickFormatter:t.yAxisTickFormatter,yAxisDomain:t.yAxisDomain},t.title)),e(H,{payload:M})]})]})}export{st as SynchronizedMetricsChart,ot as TOTAL_DATA_KEY,w as enrichWithTotal,L as mergeChartData};
@@ -23,3 +23,4 @@ export * from './UI';
23
23
  export * from './text-to-signup';
24
24
  export * from './logs';
25
25
  export * from './CopyableUuid';
26
+ export * from './BrandChallengePromptsTooltip';
@@ -1 +1 @@
1
- "use strict";import{Paragraph as a}from"./typographies/Paragraph.mjs";import{SectionHeader as r}from"./typographies/SectionHeader.mjs";import{PageHeader as e}from"./typographies/PageHeader.mjs";import{PageSectionHeader as o}from"./typographies/PageSectionHeader.mjs";import{Typography as t}from"./Typography/index.mjs";import{CredentialRequestsEditor as i}from"./CredentialRequestsEditor/index.mjs";import{When as s}from"./When.mjs";import{Image as m}from"./Image.mjs";import{QRCodeDisplay as n}from"./QRCodeDisplay/index.mjs";import{CustomAlertComponent as p,useSnackbar as l}from"./Snackbar/index.mjs";import{Backdrop as f}from"./Backdrop/index.mjs";import{Button as c}from"./Button/index.mjs";import{BrandFilterInput as d}from"./BrandFilterInput/index.mjs";import{SeriesChart as C}from"./chart/SeriesChart/index.mjs";import{SeriesChartLegend as u}from"./chart/SeriesChartLegend/index.mjs";import{SeriesPercentageChart as h}from"./chart/SeriesPercentageChart/index.mjs";import{BigNumber as T}from"./chart/BigNumber/index.mjs";import{SimpleBarChart as B}from"./chart/SimpleBarChart/index.mjs";import{AreaChart as S}from"./chart/AreaChart/index.mjs";import{ErrorCodesChart as g}from"./chart/ErrorCodesChart/index.mjs";import{ReasonCodesChart as P}from"./chart/ReasonCodesChart/index.mjs";import{PieChart as I}from"./chart/PieChart/index.mjs";import{RiskScorePieChart as v}from"./chart/RiskScorePieChart/index.mjs";import{RiskScoreBarChart as D}from"./chart/RiskScoreBarChart/index.mjs";import{SimpleLegend as O}from"./chart/SimpleLegend/index.mjs";import{LoadingChartSection as b}from"./chart/LoadingChartSection.mjs";import{EmptyChartSection as L}from"./chart/EmptyChartSection.mjs";import{MetricLastUpdated as y}from"./chart/MetricLastUpdated.mjs";import{FunnelChart as F}from"./chart/FunnelChart/index.mjs";import{ConversionOverTimeChart as E}from"./chart/ConversionOverTimeChart/index.mjs";import{WhenStyled as k}from"./WhenStyled.mjs";import{RequiredLabel as A}from"./RequiredLabel/index.mjs";import{CopyableUuid as R}from"./CopyableUuid/index.mjs";import{AcceptTermsNotice as V}from"./terms/AcceptTermsNotice.mjs";import{AdaptativeBox as N}from"./UI/AdaptativeBox.mjs";import{AddressInput as M}from"./form/AddressInput/index.mjs";import{Alert as x}from"./Alert/Alert.mjs";import{BILLABLE_PRODUCTS as w,BillableProduct as W}from"./chart/BillableEventsTable/BillableEventsTable.types.mjs";import{Banner as U}from"./Banners/Banner.mjs";import{BasePhoneInput as q}from"./form/BasePhoneInput.mjs";import{BillableEventsProductTable as H}from"./chart/BillableEventsProductTable/BillableEventsProductTable.mjs";import{BillableEventsTable as Q}from"./chart/BillableEventsTable/BillableEventsTable.mjs";import{CalendlyDialog as _,CalendlyDialogComponent as z}from"./dialog/CalendlyDialog.mjs";import{ContentWithLoader as Y}from"./UI/ContentWithLoader.mjs";import{CustomDialog as G}from"./dialog/Dialog.mjs";import{DateInput as K}from"./form/DateInput/index.mjs";import{DateRangeInput as X}from"./form/DateRangeInput/index.mjs";import{DefaultInput as Z}from"./form/DefaultInput.mjs";import{EmailInput as $}from"./form/EmailInput.mjs";import{ExactBirthdayBanner as j}from"./Banners/ExactBirthdayBanner.mjs";import{ExportToPdfButton as J}from"./buttons/ExportToPdfButton.mjs";import{Form as aa}from"./form/NewOneClickForm/core/form/form.mjs";import{FormBuilder as ra}from"./form/NewOneClickForm/core/form/formBuilder.mjs";import{FormField as ea}from"./form/NewOneClickForm/core/form/formField.mjs";import{FormFieldBuilder as oa}from"./form/NewOneClickForm/core/form/formFieldBuilder.mjs";import{FormProvider as ta,useForm as ia}from"./form/NewOneClickForm/react/core/form.context.mjs";import{FullWidthAlert as sa}from"./Alert/FullWidthAlert.mjs";import{IconPlayer as ma}from"./icons/IconPlayer.mjs";import{LegalLink as na}from"./terms/LegalLink.mjs";import{LinkButton as pa}from"./buttons/LinkButton.mjs";import{LogDetailPanel as la}from"./logs/LogsTable/LogDetailPanel.mjs";import{LogsInfoAlert as fa}from"./logs/LogsInfoAlert/LogsInfoAlert.mjs";import{LogsTable as ca}from"./logs/LogsTable/LogsTable.mjs";import{NPIInput as da}from"./form/NPIInput/index.mjs";import{NewOneClickForm as Ca}from"./form/NewOneClickForm/react/ui/form.mjs";import{OTPInput as ua}from"./form/OTPInput.mjs";import{OneClickVerificationEventsOverTimeChart as ha}from"./chart/OneClickVerificationEventsOverTimeChart/OneClickVerificationEventsOverTimeChart.mjs";import{OneClickVerificationFunnelChart as Ta}from"./chart/OneClickVerificationFunnelChart/OneClickVerificationFunnelChart.mjs";import{OneClickVerificationSuccessOverTimeChart as Ba}from"./chart/OneClickVerificationSuccessOverTimeChart/OneClickVerificationSuccessOverTimeChart.mjs";import{OriginalButton as Sa}from"./buttons/OriginalButton.mjs";import{OverviewBigNumbers as ga}from"./chart/OverviewBigNumbers/OverviewBigNumbers.mjs";import{PersistentDialog as Pa}from"./dialog/PersistentDialog.mjs";import{PhoneInput as Ia}from"./form/PhoneInput.mjs";import{PoweredByVerified as va}from"./verified/powered-by-verified/index.mjs";import{PrettyPhoneInput as Da}from"./form/PrettyPhoneInput.mjs";import{PrivacyPolicyNotice as Oa}from"./terms/PrivacyPolicyNotice.mjs";import{RadioOption as ba}from"./form/RadioOption.mjs";import{ResendPhoneBanner as La}from"./Banners/ResendPhoneBanner.mjs";import{SSNInput as ya}from"./form/SSNInput.mjs";import{SelectInput as Fa}from"./form/SelectInput.mjs";import{SnackbarProvider as Ea}from"notistack";import{SynchronizedMetricsChart as ka,TOTAL_DATA_KEY as Aa,enrichWithTotal as Ra,mergeChartData as Va}from"./chart/SynchronizedMetricsChart/SynchronizedMetricsChart.mjs";import{TTSMagicButton as Na}from"./text-to-signup/magic-button.mjs";import{TTSMagicLegalLanguage as Ma}from"./text-to-signup/magic-legal-language.mjs";import{TTSMagicQRCode as xa}from"./text-to-signup/magic-qr-code.mjs";import{TTSOverTimeChart as wa}from"./chart/TTSOverTimeChart/TTSOverTimeChart.mjs";import{TestPhoneNumbersBanner as Wa}from"./Banners/TestPhoneNumbersBanner.mjs";import{TextButton as Ua}from"./buttons/TextButton.mjs";import{TimezoneInput as qa}from"./form/TimezoneInput/index.mjs";import{VerifiedImage as Ha}from"./verified/VerifiedImage.mjs";import{VerifiedIncLogo as Qa}from"./verified/VerifiedIncLogo.mjs";import{defaultOverviewMetrics as _a}from"./chart/OverviewBigNumbers/OverviewBigNumbers.types.mjs";import{exportBillableEventsToCsv as za}from"./chart/BillableEventsTable/exportBillableEventsToCsv.mjs";import{formatIntegrationType as Ya,mapBillableEventsTableData as Ga}from"./chart/BillableEventsTable/BillableEventsTableDataMapper.mjs";import{mapBillableEventsProductTableData as Ka}from"./chart/BillableEventsProductTable/BillableEventsProductTableDataMapper.mjs";import{mapOneClickVerificationAreaSeriesData as Xa}from"./chart/OneClickVerificationEventsOverTimeChart/OneClickVerificationEventsOverTimeChart.map.mjs";import{mapOneClickVerificationFunnelChartData as Za}from"./chart/OneClickVerificationFunnelChart/OneClickVerificationFunnelChart.map.mjs";import{mapOneClickVerificationSuccessOverTimeChartData as $a}from"./chart/OneClickVerificationSuccessOverTimeChart/OneClickVerificationSuccessOverTimeChart.map.mjs";import{mapSeriesTimeSeriesData as ja}from"./chart/SeriesChart/SeriesChart.map.mjs";import{mapTTSTimeSeriesData as Ja}from"./chart/TTSOverTimeChart/TTSOverTimeChart.map.mjs";import{toCreatePatchCredentials as ar}from"./form/NewOneClickForm/core/mappers/create-patch.map.mjs";import{toOption as rr,useBrandFilterInput as er}from"./BrandFilterInput/BrandFilterInput.hook.mjs";import{toShareCredentials as or}from"./form/NewOneClickForm/core/mappers/share.map.mjs";export{V as AcceptTermsNotice,N as AdaptativeBox,M as AddressInput,x as Alert,S as AreaChart,w as BILLABLE_PRODUCTS,f as Backdrop,U as Banner,q as BasePhoneInput,T as BigNumber,H as BillableEventsProductTable,Q as BillableEventsTable,W as BillableProduct,d as BrandFilterInput,c as Button,_ as CalendlyDialog,z as CalendlyDialogComponent,Y as ContentWithLoader,E as ConversionOverTimeChart,R as CopyableUuid,i as CredentialRequestsEditor,p as CustomAlertComponent,G as CustomDialog,K as DateInput,X as DateRangeInput,Z as DefaultInput,$ as EmailInput,L as EmptyChartSection,g as ErrorCodesChart,j as ExactBirthdayBanner,J as ExportToPdfButton,aa as Form,ra as FormBuilder,ea as FormField,oa as FormFieldBuilder,ta as FormProvider,sa as FullWidthAlert,F as FunnelChart,ma as IconPlayer,m as Image,na as LegalLink,pa as LinkButton,b as LoadingChartSection,la as LogDetailPanel,fa as LogsInfoAlert,ca as LogsTable,y as MetricLastUpdated,da as NPIInput,Ca as NewOneClickForm,ua as OTPInput,ha as OneClickVerificationEventsOverTimeChart,Ta as OneClickVerificationFunnelChart,Ba as OneClickVerificationSuccessOverTimeChart,Sa as OriginalButton,ga as OverviewBigNumbers,e as PageHeader,o as PageSectionHeader,a as Paragraph,Pa as PersistentDialog,Ia as PhoneInput,I as PieChart,va as PoweredByVerified,Da as PrettyPhoneInput,Oa as PrivacyPolicyNotice,n as QRCodeDisplay,ba as RadioOption,P as ReasonCodesChart,A as RequiredLabel,La as ResendPhoneBanner,D as RiskScoreBarChart,v as RiskScorePieChart,ya as SSNInput,r as SectionHeader,Fa as SelectInput,C as SeriesChart,u as SeriesChartLegend,h as SeriesPercentageChart,B as SimpleBarChart,O as SimpleLegend,Ea as SnackbarProvider,ka as SynchronizedMetricsChart,Aa as TOTAL_DATA_KEY,Na as TTSMagicButton,Ma as TTSMagicLegalLanguage,xa as TTSMagicQRCode,wa as TTSOverTimeChart,Wa as TestPhoneNumbersBanner,Ua as TextButton,qa as TimezoneInput,t as Typography,Ha as VerifiedImage,Qa as VerifiedIncLogo,s as When,k as WhenStyled,_a as defaultOverviewMetrics,Ra as enrichWithTotal,za as exportBillableEventsToCsv,Ya as formatIntegrationType,Ka as mapBillableEventsProductTableData,Ga as mapBillableEventsTableData,Xa as mapOneClickVerificationAreaSeriesData,Za as mapOneClickVerificationFunnelChartData,$a as mapOneClickVerificationSuccessOverTimeChartData,ja as mapSeriesTimeSeriesData,Ja as mapTTSTimeSeriesData,Va as mergeChartData,ar as toCreatePatchCredentials,rr as toOption,or as toShareCredentials,er as useBrandFilterInput,ia as useForm,l as useSnackbar};
1
+ "use strict";import{Paragraph as a}from"./typographies/Paragraph.mjs";import{SectionHeader as r}from"./typographies/SectionHeader.mjs";import{PageHeader as e}from"./typographies/PageHeader.mjs";import{PageSectionHeader as o}from"./typographies/PageSectionHeader.mjs";import{Typography as t}from"./Typography/index.mjs";import{CredentialRequestsEditor as i}from"./CredentialRequestsEditor/index.mjs";import{When as s}from"./When.mjs";import{Image as m}from"./Image.mjs";import{QRCodeDisplay as n}from"./QRCodeDisplay/index.mjs";import{CustomAlertComponent as p,useSnackbar as l}from"./Snackbar/index.mjs";import{Backdrop as f}from"./Backdrop/index.mjs";import{Button as C}from"./Button/index.mjs";import{BrandFilterInput as d}from"./BrandFilterInput/index.mjs";import{SeriesChart as c}from"./chart/SeriesChart/index.mjs";import{SeriesChartLegend as u}from"./chart/SeriesChartLegend/index.mjs";import{SeriesPercentageChart as h}from"./chart/SeriesPercentageChart/index.mjs";import{BigNumber as T}from"./chart/BigNumber/index.mjs";import{SimpleBarChart as B}from"./chart/SimpleBarChart/index.mjs";import{AreaChart as g}from"./chart/AreaChart/index.mjs";import{ErrorCodesChart as S}from"./chart/ErrorCodesChart/index.mjs";import{ReasonCodesChart as P}from"./chart/ReasonCodesChart/index.mjs";import{PieChart as I}from"./chart/PieChart/index.mjs";import{RiskScorePieChart as v}from"./chart/RiskScorePieChart/index.mjs";import{RiskScoreBarChart as O}from"./chart/RiskScoreBarChart/index.mjs";import{SimpleLegend as L}from"./chart/SimpleLegend/index.mjs";import{LoadingChartSection as b}from"./chart/LoadingChartSection.mjs";import{EmptyChartSection as D}from"./chart/EmptyChartSection.mjs";import{MetricLastUpdated as y}from"./chart/MetricLastUpdated.mjs";import{FunnelChart as F}from"./chart/FunnelChart/index.mjs";import{ConversionOverTimeChart as E}from"./chart/ConversionOverTimeChart/index.mjs";import{WhenStyled as k}from"./WhenStyled.mjs";import{RequiredLabel as A}from"./RequiredLabel/index.mjs";import{CopyableUuid as R}from"./CopyableUuid/index.mjs";import{BrandChallengePromptsTooltip as N}from"./BrandChallengePromptsTooltip/index.mjs";import{AcceptTermsNotice as V}from"./terms/AcceptTermsNotice.mjs";import{AdaptativeBox as x}from"./UI/AdaptativeBox.mjs";import{AddressInput as M}from"./form/AddressInput/index.mjs";import{Alert as W}from"./Alert/Alert.mjs";import{BILLABLE_PRODUCTS as w,BillableProduct as H}from"./chart/BillableEventsTable/BillableEventsTable.types.mjs";import{Banner as _}from"./Banners/Banner.mjs";import{BasePhoneInput as z}from"./form/BasePhoneInput.mjs";import{BillableEventsProductTable as Q}from"./chart/BillableEventsProductTable/BillableEventsProductTable.mjs";import{BillableEventsTable as U}from"./chart/BillableEventsTable/BillableEventsTable.mjs";import{CalendlyDialog as q,CalendlyDialogComponent as Y}from"./dialog/CalendlyDialog.mjs";import{ContentWithLoader as G}from"./UI/ContentWithLoader.mjs";import{CustomDialog as K}from"./dialog/Dialog.mjs";import{DateInput as X}from"./form/DateInput/index.mjs";import{DateRangeInput as $}from"./form/DateRangeInput/index.mjs";import{DefaultInput as j}from"./form/DefaultInput.mjs";import{EmailInput as J}from"./form/EmailInput.mjs";import{ExactBirthdayBanner as Z}from"./Banners/ExactBirthdayBanner.mjs";import{ExportToPdfButton as aa}from"./buttons/ExportToPdfButton.mjs";import{Form as ra}from"./form/NewOneClickForm/core/form/form.mjs";import{FormBuilder as ea}from"./form/NewOneClickForm/core/form/formBuilder.mjs";import{FormField as oa}from"./form/NewOneClickForm/core/form/formField.mjs";import{FormFieldBuilder as ta}from"./form/NewOneClickForm/core/form/formFieldBuilder.mjs";import{FormProvider as ia,useForm as sa}from"./form/NewOneClickForm/react/core/form.context.mjs";import{FullWidthAlert as ma}from"./Alert/FullWidthAlert.mjs";import{IconPlayer as na}from"./icons/IconPlayer.mjs";import{LazyBrandChallengePromptsTooltip as pa}from"./BrandChallengePromptsTooltip/LazyBrandChallengePromptsTooltip.mjs";import{LegalLink as la}from"./terms/LegalLink.mjs";import{LinkButton as fa}from"./buttons/LinkButton.mjs";import{LogDetailPanel as Ca}from"./logs/LogsTable/LogDetailPanel.mjs";import{LogsInfoAlert as da}from"./logs/LogsInfoAlert/LogsInfoAlert.mjs";import{LogsTable as ca}from"./logs/LogsTable/LogsTable.mjs";import{NPIInput as ua}from"./form/NPIInput/index.mjs";import{NewOneClickForm as ha}from"./form/NewOneClickForm/react/ui/form.mjs";import{OTPInput as Ta}from"./form/OTPInput.mjs";import{OneClickVerificationEventsOverTimeChart as Ba}from"./chart/OneClickVerificationEventsOverTimeChart/OneClickVerificationEventsOverTimeChart.mjs";import{OneClickVerificationFunnelChart as ga}from"./chart/OneClickVerificationFunnelChart/OneClickVerificationFunnelChart.mjs";import{OneClickVerificationSuccessOverTimeChart as Sa}from"./chart/OneClickVerificationSuccessOverTimeChart/OneClickVerificationSuccessOverTimeChart.mjs";import{OriginalButton as Pa}from"./buttons/OriginalButton.mjs";import{OverviewBigNumbers as Ia}from"./chart/OverviewBigNumbers/OverviewBigNumbers.mjs";import{PersistentDialog as va}from"./dialog/PersistentDialog.mjs";import{PhoneInput as Oa}from"./form/PhoneInput.mjs";import{PoweredByVerified as La}from"./verified/powered-by-verified/index.mjs";import{PrettyPhoneInput as ba}from"./form/PrettyPhoneInput.mjs";import{PrivacyPolicyNotice as Da}from"./terms/PrivacyPolicyNotice.mjs";import{RadioOption as ya}from"./form/RadioOption.mjs";import{ResendPhoneBanner as Fa}from"./Banners/ResendPhoneBanner.mjs";import{SSNInput as Ea}from"./form/SSNInput.mjs";import{SelectInput as ka}from"./form/SelectInput.mjs";import{SnackbarProvider as Aa}from"notistack";import{SynchronizedMetricsChart as Ra,TOTAL_DATA_KEY as Na,enrichWithTotal as Va,mergeChartData as xa}from"./chart/SynchronizedMetricsChart/SynchronizedMetricsChart.mjs";import{TTSMagicButton as Ma}from"./text-to-signup/magic-button.mjs";import{TTSMagicLegalLanguage as Wa}from"./text-to-signup/magic-legal-language.mjs";import{TTSMagicQRCode as wa}from"./text-to-signup/magic-qr-code.mjs";import{TTSOverTimeChart as Ha}from"./chart/TTSOverTimeChart/TTSOverTimeChart.mjs";import{TestPhoneNumbersBanner as _a}from"./Banners/TestPhoneNumbersBanner.mjs";import{TextButton as za}from"./buttons/TextButton.mjs";import{TimezoneInput as Qa}from"./form/TimezoneInput/index.mjs";import{VerifiedImage as Ua}from"./verified/VerifiedImage.mjs";import{VerifiedIncLogo as qa}from"./verified/VerifiedIncLogo.mjs";import{defaultOverviewMetrics as Ya}from"./chart/OverviewBigNumbers/OverviewBigNumbers.types.mjs";import{exportBillableEventsToCsv as Ga}from"./chart/BillableEventsTable/exportBillableEventsToCsv.mjs";import{formatIntegrationType as Ka,mapBillableEventsTableData as Xa}from"./chart/BillableEventsTable/BillableEventsTableDataMapper.mjs";import{mapBillableEventsProductTableData as $a}from"./chart/BillableEventsProductTable/BillableEventsProductTableDataMapper.mjs";import{mapOneClickVerificationAreaSeriesData as ja}from"./chart/OneClickVerificationEventsOverTimeChart/OneClickVerificationEventsOverTimeChart.map.mjs";import{mapOneClickVerificationFunnelChartData as Ja}from"./chart/OneClickVerificationFunnelChart/OneClickVerificationFunnelChart.map.mjs";import{mapOneClickVerificationSuccessOverTimeChartData as Za}from"./chart/OneClickVerificationSuccessOverTimeChart/OneClickVerificationSuccessOverTimeChart.map.mjs";import{mapSeriesTimeSeriesData as ar}from"./chart/SeriesChart/SeriesChart.map.mjs";import{mapTTSTimeSeriesData as rr}from"./chart/TTSOverTimeChart/TTSOverTimeChart.map.mjs";import{toCreatePatchCredentials as er}from"./form/NewOneClickForm/core/mappers/create-patch.map.mjs";import{toOption as or,useBrandFilterInput as tr}from"./BrandFilterInput/BrandFilterInput.hook.mjs";import{toShareCredentials as ir}from"./form/NewOneClickForm/core/mappers/share.map.mjs";export{V as AcceptTermsNotice,x as AdaptativeBox,M as AddressInput,W as Alert,g as AreaChart,w as BILLABLE_PRODUCTS,f as Backdrop,_ as Banner,z as BasePhoneInput,T as BigNumber,Q as BillableEventsProductTable,U as BillableEventsTable,H as BillableProduct,N as BrandChallengePromptsTooltip,d as BrandFilterInput,C as Button,q as CalendlyDialog,Y as CalendlyDialogComponent,G as ContentWithLoader,E as ConversionOverTimeChart,R as CopyableUuid,i as CredentialRequestsEditor,p as CustomAlertComponent,K as CustomDialog,X as DateInput,$ as DateRangeInput,j as DefaultInput,J as EmailInput,D as EmptyChartSection,S as ErrorCodesChart,Z as ExactBirthdayBanner,aa as ExportToPdfButton,ra as Form,ea as FormBuilder,oa as FormField,ta as FormFieldBuilder,ia as FormProvider,ma as FullWidthAlert,F as FunnelChart,na as IconPlayer,m as Image,pa as LazyBrandChallengePromptsTooltip,la as LegalLink,fa as LinkButton,b as LoadingChartSection,Ca as LogDetailPanel,da as LogsInfoAlert,ca as LogsTable,y as MetricLastUpdated,ua as NPIInput,ha as NewOneClickForm,Ta as OTPInput,Ba as OneClickVerificationEventsOverTimeChart,ga as OneClickVerificationFunnelChart,Sa as OneClickVerificationSuccessOverTimeChart,Pa as OriginalButton,Ia as OverviewBigNumbers,e as PageHeader,o as PageSectionHeader,a as Paragraph,va as PersistentDialog,Oa as PhoneInput,I as PieChart,La as PoweredByVerified,ba as PrettyPhoneInput,Da as PrivacyPolicyNotice,n as QRCodeDisplay,ya as RadioOption,P as ReasonCodesChart,A as RequiredLabel,Fa as ResendPhoneBanner,O as RiskScoreBarChart,v as RiskScorePieChart,Ea as SSNInput,r as SectionHeader,ka as SelectInput,c as SeriesChart,u as SeriesChartLegend,h as SeriesPercentageChart,B as SimpleBarChart,L as SimpleLegend,Aa as SnackbarProvider,Ra as SynchronizedMetricsChart,Na as TOTAL_DATA_KEY,Ma as TTSMagicButton,Wa as TTSMagicLegalLanguage,wa as TTSMagicQRCode,Ha as TTSOverTimeChart,_a as TestPhoneNumbersBanner,za as TextButton,Qa as TimezoneInput,t as Typography,Ua as VerifiedImage,qa as VerifiedIncLogo,s as When,k as WhenStyled,Ya as defaultOverviewMetrics,Va as enrichWithTotal,Ga as exportBillableEventsToCsv,Ka as formatIntegrationType,$a as mapBillableEventsProductTableData,Xa as mapBillableEventsTableData,ja as mapOneClickVerificationAreaSeriesData,Ja as mapOneClickVerificationFunnelChartData,Za as mapOneClickVerificationSuccessOverTimeChartData,ar as mapSeriesTimeSeriesData,rr as mapTTSTimeSeriesData,xa as mergeChartData,er as toCreatePatchCredentials,or as toOption,ir as toShareCredentials,tr as useBrandFilterInput,sa as useForm,l as useSnackbar};
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- "use strict";import{Paragraph as a}from"./components/typographies/Paragraph.mjs";import{SectionHeader as e}from"./components/typographies/SectionHeader.mjs";import{PageHeader as r}from"./components/typographies/PageHeader.mjs";import{PageSectionHeader as s}from"./components/typographies/PageSectionHeader.mjs";import{Typography as o}from"./components/Typography/index.mjs";import{CredentialRequestsEditor as t}from"./components/CredentialRequestsEditor/index.mjs";import{When as i}from"./components/When.mjs";import{Image as m}from"./components/Image.mjs";import{QRCodeDisplay as n}from"./components/QRCodeDisplay/index.mjs";import{CustomAlertComponent as p,useSnackbar as l}from"./components/Snackbar/index.mjs";import{Backdrop as f}from"./components/Backdrop/index.mjs";import{Button as d}from"./components/Button/index.mjs";import{BrandFilterInput as u}from"./components/BrandFilterInput/index.mjs";import{SeriesChart as c}from"./components/chart/SeriesChart/index.mjs";import{SeriesChartLegend as h}from"./components/chart/SeriesChartLegend/index.mjs";import{SeriesPercentageChart as C}from"./components/chart/SeriesPercentageChart/index.mjs";import{BigNumber as S}from"./components/chart/BigNumber/index.mjs";import{SimpleBarChart as g}from"./components/chart/SimpleBarChart/index.mjs";import{AreaChart as T}from"./components/chart/AreaChart/index.mjs";import{ErrorCodesChart as P}from"./components/chart/ErrorCodesChart/index.mjs";import{ReasonCodesChart as D}from"./components/chart/ReasonCodesChart/index.mjs";import{PieChart as B}from"./components/chart/PieChart/index.mjs";import{RiskScorePieChart as y}from"./components/chart/RiskScorePieChart/index.mjs";import{RiskScoreBarChart as b}from"./components/chart/RiskScoreBarChart/index.mjs";import{SimpleLegend as k}from"./components/chart/SimpleLegend/index.mjs";import{LoadingChartSection as v}from"./components/chart/LoadingChartSection.mjs";import{EmptyChartSection as O}from"./components/chart/EmptyChartSection.mjs";import{MetricLastUpdated as F}from"./components/chart/MetricLastUpdated.mjs";import{FunnelChart as I}from"./components/chart/FunnelChart/index.mjs";import{ConversionOverTimeChart as L}from"./components/chart/ConversionOverTimeChart/index.mjs";import{WhenStyled as M}from"./components/WhenStyled.mjs";import{RequiredLabel as A}from"./components/RequiredLabel/index.mjs";import{CopyableUuid as E}from"./components/CopyableUuid/index.mjs";import{Tunnel as R}from"./contexts/tunnel/index.mjs";import{useLocalStorage as N}from"./hooks/useLocalStorage.mjs";import{useCopyToClipboard as w}from"./hooks/useCopyToClipboard.mjs";import{useDisclosure as x}from"./hooks/useDisclosure.mjs";import{useGoogleFont as V}from"./hooks/useGoogleFont.mjs";import{useCallbackRef as U}from"./hooks/useCallbackRef.mjs";import{useQRCode as G}from"./hooks/useQRCode.mjs";import{useSearchParams as Y}from"./hooks/useSearchParams.mjs";import{useDebounceValue as _}from"./hooks/useDebounceValue.mjs";import{useScript as W}from"./hooks/useScript.mjs";import{useThrottle as H}from"./hooks/useThrottle.mjs";import{useToggle as z}from"./hooks/useToggle.mjs";import{useWindowScroll as Q}from"./hooks/useWindowScroll.mjs";import{useWindowSize as q}from"./hooks/useWindowSize.mjs";import{useIntersectionObserver as Z}from"./hooks/useIntersectionObserver.mjs";import{useCounter as J}from"./hooks/useCounter.mjs";import{useOnClickOutside as K}from"./hooks/useOnClickOutside.mjs";import{usePrevious as $}from"./hooks/usePrevious.mjs";import{useResizeObserver as j}from"./hooks/useResizeObserver.mjs";import{useNavigatorOnline as X}from"./hooks/useNavigatorOnline.mjs";import{useDebounceCallback as aa}from"./hooks/useDebounceCallback.mjs";import{useStyledQRCode as ea}from"./hooks/useStyledQRCode.mjs";import{useNetworkType as ra}from"./hooks/useNetworkType.mjs";import{useBidirectionalScroll as sa}from"./hooks/useBidirectionalScroll.mjs";import{black as oa,blue as ta,colors as ia,dangerContrast as ma,darkBlue as na,darkGreen as pa,darkGrey as la,darkGreyContrast as fa,darkRed as da,darkYellow as ua,green as ca,grey as ha,greyContrast as Ca,infoContrast as Sa,lightBlue as ga,lightGreen as Ta,lightGrey as Pa,lightGreyContrast as Da,lightRed as Ba,lightYellow as ya,red as ba,textDisabled as ka,warningContrast as va,white as Oa,yellow as Fa}from"./styles/colors.mjs";import{theme as Ia}from"./styles/theme.mjs";import{shadows as La}from"./styles/shadows.mjs";import{wrapPromise as Ma}from"./utils/wrapPromise/index.mjs";import{formatDateMMDDYYYY as Aa,formatDateMMYY as Ea,formatDateToTimestamp as Ra,formatExtendedDate as Na,formatLogTimestamp as wa,toUTCMilliseconds as xa}from"./utils/date.mjs";import{countries as Va,getPhoneData as Ua,getPhoneDataByFieldName as Ga,parseToPhoneNational as Ya,sortByCountryName as _a,validatePhone as Wa}from"./utils/phone/index.mjs";import{masks as Ha}from"./utils/masks/index.mjs";import{omitProperties as za}from"./utils/omitProperty.mjs";import{ssnFormatter as Qa,ssnRegex as qa}from"./utils/ssn.mjs";import{stringToHashedColor as Za,uuidToHashedColor as Ja}from"./utils/uuidColor.mjs";import{toCapitalize as Ka}from"./utils/string/toCapitalize.mjs";import{toSentenceCase as $a}from"./utils/string/toSentenceCase.mjs";import{kebabCaseToPretty as ja}from"./utils/string/formatKebabToPretty.mjs";import{generateKeyFromString as Xa}from"./utils/string/generateKeyFromString.mjs";import{alpha as ae,contrastColor as ee,darken as re,getThemeFromPrimaryColor as se,lighten as oe,mix as te}from"./utils/color/index.mjs";import{addressFormatter as ie,fromUSAddress as me,parseCountryCode as ne,toUSaddress as pe,toUSaddressPretty as le}from"./utils/address/index.mjs";import{DEFAULT_FONT_FAMILY as fe,DEFAULT_FONT_WEIGHTS as de,makeGoogleFontUrl as ue}from"./utils/makeGoogleFont.mjs";import{prepareNotification as ce}from"./utils/notification.mjs";import{resolveLogo as he}from"./utils/logo/index.mjs";import{USDateSchema as Ce,birthDateSchema as Se,dateSchema as ge,getDateSchemaWithPastValidation as Te,refineAge18Plus as Pe,refineMinimumDate1900 as De,refineTimestamp as Be,validateAge18Plus as ye,validateMinimumDate1900 as be,validateTimestamp as ke}from"./validations/date.schema.mjs";import{descriptionSchema as ve}from"./validations/description.schema.mjs";import{businessEmailSchema as Oe,emailSchema as Fe}from"./validations/email.schema.mjs";import{fieldSchema as Ie}from"./validations/field.schema.mjs";import{phoneSchema as Le}from"./validations/phone.schema.mjs";import{MaskedAndUnmaskedSSNSchema as Me,SSNSchema as Ae}from"./validations/ssn.schema.mjs";import{getUnixSchema as Ee}from"./validations/unix.schema.mjs";import{npiSchema as Re}from"./validations/npi.schema.mjs";import{stateSchema as Ne,zipCodeSchema as we}from"./validations/address.schema.mjs";import{AcceptTermsNotice as xe}from"./components/terms/AcceptTermsNotice.mjs";import{AdaptativeBox as Ve}from"./components/UI/AdaptativeBox.mjs";import{AddressInput as Ue}from"./components/form/AddressInput/index.mjs";import{Alert as Ge}from"./components/Alert/Alert.mjs";import{BILLABLE_PRODUCTS as Ye,BillableProduct as _e}from"./components/chart/BillableEventsTable/BillableEventsTable.types.mjs";import{Banner as We}from"./components/Banners/Banner.mjs";import{BasePhoneInput as He}from"./components/form/BasePhoneInput.mjs";import{BillableEventsProductTable as ze}from"./components/chart/BillableEventsProductTable/BillableEventsProductTable.mjs";import{BillableEventsTable as Qe}from"./components/chart/BillableEventsTable/BillableEventsTable.mjs";import{CalendlyDialog as qe,CalendlyDialogComponent as Ze}from"./components/dialog/CalendlyDialog.mjs";import{ContentWithLoader as Je}from"./components/UI/ContentWithLoader.mjs";import{CustomDialog as Ke}from"./components/dialog/Dialog.mjs";import{DateInput as $e}from"./components/form/DateInput/index.mjs";import{DateRangeInput as je}from"./components/form/DateRangeInput/index.mjs";import{DefaultInput as Xe}from"./components/form/DefaultInput.mjs";import{EmailInput as ar}from"./components/form/EmailInput.mjs";import{ExactBirthdayBanner as er}from"./components/Banners/ExactBirthdayBanner.mjs";import{ExportToPdfButton as rr}from"./components/buttons/ExportToPdfButton.mjs";import{Form as sr}from"./components/form/NewOneClickForm/core/form/form.mjs";import{FormBuilder as or}from"./components/form/NewOneClickForm/core/form/formBuilder.mjs";import{FormField as tr}from"./components/form/NewOneClickForm/core/form/formField.mjs";import{FormFieldBuilder as ir}from"./components/form/NewOneClickForm/core/form/formFieldBuilder.mjs";import{FormProvider as mr,useForm as nr}from"./components/form/NewOneClickForm/react/core/form.context.mjs";import{FullWidthAlert as pr}from"./components/Alert/FullWidthAlert.mjs";import{IconPlayer as lr}from"./components/icons/IconPlayer.mjs";import{LegalLink as fr}from"./components/terms/LegalLink.mjs";import{LinkButton as dr}from"./components/buttons/LinkButton.mjs";import{LogDetailPanel as ur}from"./components/logs/LogsTable/LogDetailPanel.mjs";import{LogsInfoAlert as cr}from"./components/logs/LogsInfoAlert/LogsInfoAlert.mjs";import{LogsTable as hr}from"./components/logs/LogsTable/LogsTable.mjs";import{MetricsProvider as Cr,useMetrics as Sr}from"./contexts/metrics/Metrics.context.mjs";import{NPIInput as gr}from"./components/form/NPIInput/index.mjs";import{NewOneClickForm as Tr}from"./components/form/NewOneClickForm/react/ui/form.mjs";import{OTPInput as Pr}from"./components/form/OTPInput.mjs";import{OneClickVerificationEventsOverTimeChart as Dr}from"./components/chart/OneClickVerificationEventsOverTimeChart/OneClickVerificationEventsOverTimeChart.mjs";import{OneClickVerificationFunnelChart as Br}from"./components/chart/OneClickVerificationFunnelChart/OneClickVerificationFunnelChart.mjs";import{OneClickVerificationSuccessOverTimeChart as yr}from"./components/chart/OneClickVerificationSuccessOverTimeChart/OneClickVerificationSuccessOverTimeChart.mjs";import{OriginalButton as br}from"./components/buttons/OriginalButton.mjs";import{OverviewBigNumbers as kr}from"./components/chart/OverviewBigNumbers/OverviewBigNumbers.mjs";import{PersistentDialog as vr}from"./components/dialog/PersistentDialog.mjs";import{PhoneInput as Or}from"./components/form/PhoneInput.mjs";import{PoweredByVerified as Fr}from"./components/verified/powered-by-verified/index.mjs";import{PrettyPhoneInput as Ir}from"./components/form/PrettyPhoneInput.mjs";import{PrivacyPolicyNotice as Lr}from"./components/terms/PrivacyPolicyNotice.mjs";import{RadioOption as Mr}from"./components/form/RadioOption.mjs";import{ResendPhoneBanner as Ar}from"./components/Banners/ResendPhoneBanner.mjs";import{SSNInput as Er}from"./components/form/SSNInput.mjs";import{SelectInput as Rr}from"./components/form/SelectInput.mjs";import{SnackbarProvider as Nr}from"notistack";import{SynchronizedMetricsChart as wr,TOTAL_DATA_KEY as xr,enrichWithTotal as Vr,mergeChartData as Ur}from"./components/chart/SynchronizedMetricsChart/SynchronizedMetricsChart.mjs";import{TTSMagicButton as Gr}from"./components/text-to-signup/magic-button.mjs";import{TTSMagicLegalLanguage as Yr}from"./components/text-to-signup/magic-legal-language.mjs";import{TTSMagicQRCode as _r}from"./components/text-to-signup/magic-qr-code.mjs";import{TTSOverTimeChart as Wr}from"./components/chart/TTSOverTimeChart/TTSOverTimeChart.mjs";import{TestPhoneNumbersBanner as Hr}from"./components/Banners/TestPhoneNumbersBanner.mjs";import{TextButton as zr}from"./components/buttons/TextButton.mjs";import{TimezoneInput as Qr}from"./components/form/TimezoneInput/index.mjs";import{VerifiedImage as qr}from"./components/verified/VerifiedImage.mjs";import{VerifiedIncLogo as Zr}from"./components/verified/VerifiedIncLogo.mjs";import{defaultOverviewMetrics as Jr}from"./components/chart/OverviewBigNumbers/OverviewBigNumbers.types.mjs";import{exportBillableEventsToCsv as Kr}from"./components/chart/BillableEventsTable/exportBillableEventsToCsv.mjs";import{formatInTimeZone as $r}from"./node_modules/date-fns-tz/dist/esm/formatInTimeZone/index.mjs";import{formatIntegrationType as jr,mapBillableEventsTableData as Xr}from"./components/chart/BillableEventsTable/BillableEventsTableDataMapper.mjs";import{mapBillableEventsProductTableData as as}from"./components/chart/BillableEventsProductTable/BillableEventsProductTableDataMapper.mjs";import{mapOneClickVerificationAreaSeriesData as es}from"./components/chart/OneClickVerificationEventsOverTimeChart/OneClickVerificationEventsOverTimeChart.map.mjs";import{mapOneClickVerificationFunnelChartData as rs}from"./components/chart/OneClickVerificationFunnelChart/OneClickVerificationFunnelChart.map.mjs";import{mapOneClickVerificationSuccessOverTimeChartData as ss}from"./components/chart/OneClickVerificationSuccessOverTimeChart/OneClickVerificationSuccessOverTimeChart.map.mjs";import{mapSeriesTimeSeriesData as os}from"./components/chart/SeriesChart/SeriesChart.map.mjs";import{mapTTSTimeSeriesData as ts}from"./components/chart/TTSOverTimeChart/TTSOverTimeChart.map.mjs";import{toCreatePatchCredentials as is}from"./components/form/NewOneClickForm/core/mappers/create-patch.map.mjs";import{toOption as ms,useBrandFilterInput as ns}from"./components/BrandFilterInput/BrandFilterInput.hook.mjs";import{toShareCredentials as ps}from"./components/form/NewOneClickForm/core/mappers/share.map.mjs";import{useColorMap as ls}from"./hooks/metrics/useColorMap.mjs";import{useTTSMagicLink as fs}from"./hooks/text-to-signup/magic-link.mjs";import{useTTSMagicQRCode as ds}from"./hooks/text-to-signup/magic-qr-code.mjs";import{useTTSMagicQRCodeOptions as us}from"./hooks/text-to-signup/magic-qr-code-options.mjs";import{useTTSMagicText as cs}from"./hooks/text-to-signup/magic-text.mjs";export{xe as AcceptTermsNotice,Ve as AdaptativeBox,Ue as AddressInput,Ge as Alert,T as AreaChart,Ye as BILLABLE_PRODUCTS,f as Backdrop,We as Banner,He as BasePhoneInput,S as BigNumber,ze as BillableEventsProductTable,Qe as BillableEventsTable,_e as BillableProduct,u as BrandFilterInput,d as Button,qe as CalendlyDialog,Ze as CalendlyDialogComponent,Je as ContentWithLoader,L as ConversionOverTimeChart,E as CopyableUuid,t as CredentialRequestsEditor,p as CustomAlertComponent,Ke as CustomDialog,fe as DEFAULT_FONT_FAMILY,de as DEFAULT_FONT_WEIGHTS,$e as DateInput,je as DateRangeInput,Xe as DefaultInput,ar as EmailInput,O as EmptyChartSection,P as ErrorCodesChart,er as ExactBirthdayBanner,rr as ExportToPdfButton,sr as Form,or as FormBuilder,tr as FormField,ir as FormFieldBuilder,mr as FormProvider,pr as FullWidthAlert,I as FunnelChart,lr as IconPlayer,m as Image,fr as LegalLink,dr as LinkButton,v as LoadingChartSection,ur as LogDetailPanel,cr as LogsInfoAlert,hr as LogsTable,Me as MaskedAndUnmaskedSSNSchema,F as MetricLastUpdated,Cr as MetricsProvider,gr as NPIInput,Tr as NewOneClickForm,Pr as OTPInput,Dr as OneClickVerificationEventsOverTimeChart,Br as OneClickVerificationFunnelChart,yr as OneClickVerificationSuccessOverTimeChart,br as OriginalButton,kr as OverviewBigNumbers,r as PageHeader,s as PageSectionHeader,a as Paragraph,vr as PersistentDialog,Or as PhoneInput,B as PieChart,Fr as PoweredByVerified,Ir as PrettyPhoneInput,Lr as PrivacyPolicyNotice,n as QRCodeDisplay,Mr as RadioOption,D as ReasonCodesChart,A as RequiredLabel,Ar as ResendPhoneBanner,b as RiskScoreBarChart,y as RiskScorePieChart,Er as SSNInput,Ae as SSNSchema,e as SectionHeader,Rr as SelectInput,c as SeriesChart,h as SeriesChartLegend,C as SeriesPercentageChart,g as SimpleBarChart,k as SimpleLegend,Nr as SnackbarProvider,wr as SynchronizedMetricsChart,xr as TOTAL_DATA_KEY,Gr as TTSMagicButton,Yr as TTSMagicLegalLanguage,_r as TTSMagicQRCode,Wr as TTSOverTimeChart,Hr as TestPhoneNumbersBanner,zr as TextButton,Qr as TimezoneInput,R as Tunnel,o as Typography,Ce as USDateSchema,qr as VerifiedImage,Zr as VerifiedIncLogo,i as When,M as WhenStyled,ie as addressFormatter,ae as alpha,Se as birthDateSchema,oa as black,ta as blue,Oe as businessEmailSchema,ia as colors,ee as contrastColor,Va as countries,ma as dangerContrast,na as darkBlue,pa as darkGreen,la as darkGrey,fa as darkGreyContrast,da as darkRed,ua as darkYellow,re as darken,ge as dateSchema,Jr as defaultOverviewMetrics,ve as descriptionSchema,Fe as emailSchema,Vr as enrichWithTotal,Kr as exportBillableEventsToCsv,Ie as fieldSchema,Aa as formatDateMMDDYYYY,Ea as formatDateMMYY,Ra as formatDateToTimestamp,Na as formatExtendedDate,$r as formatInTimeZone,jr as formatIntegrationType,wa as formatLogTimestamp,me as fromUSAddress,Xa as generateKeyFromString,Te as getDateSchemaWithPastValidation,Ua as getPhoneData,Ga as getPhoneDataByFieldName,se as getThemeFromPrimaryColor,Ee as getUnixSchema,ca as green,ha as grey,Ca as greyContrast,Sa as infoContrast,ja as kebabCaseToPretty,ga as lightBlue,Ta as lightGreen,Pa as lightGrey,Da as lightGreyContrast,Ba as lightRed,ya as lightYellow,oe as lighten,ue as makeGoogleFontUrl,as as mapBillableEventsProductTableData,Xr as mapBillableEventsTableData,es as mapOneClickVerificationAreaSeriesData,rs as mapOneClickVerificationFunnelChartData,ss as mapOneClickVerificationSuccessOverTimeChartData,os as mapSeriesTimeSeriesData,ts as mapTTSTimeSeriesData,Ha as masks,Ur as mergeChartData,te as mix,Re as npiSchema,za as omitProperties,ne as parseCountryCode,Ya as parseToPhoneNational,Le as phoneSchema,ce as prepareNotification,ba as red,Pe as refineAge18Plus,De as refineMinimumDate1900,Be as refineTimestamp,he as resolveLogo,La as shadows,_a as sortByCountryName,Qa as ssnFormatter,qa as ssnRegex,Ne as stateSchema,Za as stringToHashedColor,ka as textDisabled,Ia as theme,Ka as toCapitalize,is as toCreatePatchCredentials,ms as toOption,$a as toSentenceCase,ps as toShareCredentials,pe as toUSaddress,le as toUSaddressPretty,xa as toUTCMilliseconds,sa as useBidirectionalScroll,ns as useBrandFilterInput,U as useCallbackRef,ls as useColorMap,w as useCopyToClipboard,J as useCounter,aa as useDebounceCallback,_ as useDebounceValue,x as useDisclosure,nr as useForm,V as useGoogleFont,Z as useIntersectionObserver,N as useLocalStorage,Sr as useMetrics,X as useNavigatorOnline,ra as useNetworkType,K as useOnClickOutside,$ as usePrevious,G as useQRCode,j as useResizeObserver,W as useScript,Y as useSearchParams,l as useSnackbar,ea as useStyledQRCode,fs as useTTSMagicLink,ds as useTTSMagicQRCode,us as useTTSMagicQRCodeOptions,cs as useTTSMagicText,H as useThrottle,z as useToggle,Q as useWindowScroll,q as useWindowSize,Ja as uuidToHashedColor,ye as validateAge18Plus,be as validateMinimumDate1900,Wa as validatePhone,ke as validateTimestamp,va as warningContrast,Oa as white,Ma as wrapPromise,Fa as yellow,we as zipCodeSchema};
1
+ "use strict";import{Paragraph as a}from"./components/typographies/Paragraph.mjs";import{SectionHeader as e}from"./components/typographies/SectionHeader.mjs";import{PageHeader as r}from"./components/typographies/PageHeader.mjs";import{PageSectionHeader as s}from"./components/typographies/PageSectionHeader.mjs";import{Typography as o}from"./components/Typography/index.mjs";import{CredentialRequestsEditor as t}from"./components/CredentialRequestsEditor/index.mjs";import{When as i}from"./components/When.mjs";import{Image as m}from"./components/Image.mjs";import{QRCodeDisplay as n}from"./components/QRCodeDisplay/index.mjs";import{CustomAlertComponent as p,useSnackbar as l}from"./components/Snackbar/index.mjs";import{Backdrop as f}from"./components/Backdrop/index.mjs";import{Button as d}from"./components/Button/index.mjs";import{BrandFilterInput as u}from"./components/BrandFilterInput/index.mjs";import{SeriesChart as c}from"./components/chart/SeriesChart/index.mjs";import{SeriesChartLegend as h}from"./components/chart/SeriesChartLegend/index.mjs";import{SeriesPercentageChart as C}from"./components/chart/SeriesPercentageChart/index.mjs";import{BigNumber as T}from"./components/chart/BigNumber/index.mjs";import{SimpleBarChart as S}from"./components/chart/SimpleBarChart/index.mjs";import{AreaChart as g}from"./components/chart/AreaChart/index.mjs";import{ErrorCodesChart as P}from"./components/chart/ErrorCodesChart/index.mjs";import{ReasonCodesChart as D}from"./components/chart/ReasonCodesChart/index.mjs";import{PieChart as B}from"./components/chart/PieChart/index.mjs";import{RiskScorePieChart as y}from"./components/chart/RiskScorePieChart/index.mjs";import{RiskScoreBarChart as b}from"./components/chart/RiskScoreBarChart/index.mjs";import{SimpleLegend as k}from"./components/chart/SimpleLegend/index.mjs";import{LoadingChartSection as v}from"./components/chart/LoadingChartSection.mjs";import{EmptyChartSection as O}from"./components/chart/EmptyChartSection.mjs";import{MetricLastUpdated as I}from"./components/chart/MetricLastUpdated.mjs";import{FunnelChart as L}from"./components/chart/FunnelChart/index.mjs";import{ConversionOverTimeChart as F}from"./components/chart/ConversionOverTimeChart/index.mjs";import{WhenStyled as M}from"./components/WhenStyled.mjs";import{RequiredLabel as A}from"./components/RequiredLabel/index.mjs";import{CopyableUuid as E}from"./components/CopyableUuid/index.mjs";import{BrandChallengePromptsTooltip as R}from"./components/BrandChallengePromptsTooltip/index.mjs";import{Tunnel as N}from"./contexts/tunnel/index.mjs";import{useLocalStorage as w}from"./hooks/useLocalStorage.mjs";import{useCopyToClipboard as U}from"./hooks/useCopyToClipboard.mjs";import{useDisclosure as V}from"./hooks/useDisclosure.mjs";import{useGoogleFont as x}from"./hooks/useGoogleFont.mjs";import{useCallbackRef as G}from"./hooks/useCallbackRef.mjs";import{useQRCode as Y}from"./hooks/useQRCode.mjs";import{useSearchParams as z}from"./hooks/useSearchParams.mjs";import{useDebounceValue as H}from"./hooks/useDebounceValue.mjs";import{useScript as W}from"./hooks/useScript.mjs";import{useThrottle as _}from"./hooks/useThrottle.mjs";import{useToggle as Q}from"./hooks/useToggle.mjs";import{useWindowScroll as q}from"./hooks/useWindowScroll.mjs";import{useWindowSize as Z}from"./hooks/useWindowSize.mjs";import{useIntersectionObserver as J}from"./hooks/useIntersectionObserver.mjs";import{useCounter as K}from"./hooks/useCounter.mjs";import{useOnClickOutside as $}from"./hooks/useOnClickOutside.mjs";import{usePrevious as j}from"./hooks/usePrevious.mjs";import{useResizeObserver as X}from"./hooks/useResizeObserver.mjs";import{useNavigatorOnline as aa}from"./hooks/useNavigatorOnline.mjs";import{useDebounceCallback as ea}from"./hooks/useDebounceCallback.mjs";import{useStyledQRCode as ra}from"./hooks/useStyledQRCode.mjs";import{useNetworkType as sa}from"./hooks/useNetworkType.mjs";import{useBidirectionalScroll as oa}from"./hooks/useBidirectionalScroll.mjs";import{black as ta,blue as ia,colors as ma,dangerContrast as na,darkBlue as pa,darkGreen as la,darkGrey as fa,darkGreyContrast as da,darkRed as ua,darkYellow as ca,green as ha,grey as Ca,greyContrast as Ta,infoContrast as Sa,lightBlue as ga,lightGreen as Pa,lightGrey as Da,lightGreyContrast as Ba,lightRed as ya,lightYellow as ba,red as ka,textDisabled as va,warningContrast as Oa,white as Ia,yellow as La}from"./styles/colors.mjs";import{theme as Fa}from"./styles/theme.mjs";import{shadows as Ma}from"./styles/shadows.mjs";import{wrapPromise as Aa}from"./utils/wrapPromise/index.mjs";import{formatDateMMDDYYYY as Ea,formatDateMMYY as Ra,formatDateToTimestamp as Na,formatExtendedDate as wa,formatLogTimestamp as Ua,toUTCMilliseconds as Va}from"./utils/date.mjs";import{countries as xa,getPhoneData as Ga,getPhoneDataByFieldName as Ya,parseToPhoneNational as za,sortByCountryName as Ha,validatePhone as Wa}from"./utils/phone/index.mjs";import{masks as _a}from"./utils/masks/index.mjs";import{omitProperties as Qa}from"./utils/omitProperty.mjs";import{ssnFormatter as qa,ssnRegex as Za}from"./utils/ssn.mjs";import{stringToHashedColor as Ja,uuidToHashedColor as Ka}from"./utils/uuidColor.mjs";import{toCapitalize as $a}from"./utils/string/toCapitalize.mjs";import{toSentenceCase as ja}from"./utils/string/toSentenceCase.mjs";import{kebabCaseToPretty as Xa}from"./utils/string/formatKebabToPretty.mjs";import{generateKeyFromString as ae}from"./utils/string/generateKeyFromString.mjs";import{alpha as ee,contrastColor as re,darken as se,getThemeFromPrimaryColor as oe,lighten as te,mix as ie}from"./utils/color/index.mjs";import{addressFormatter as me,fromUSAddress as ne,parseCountryCode as pe,toUSaddress as le,toUSaddressPretty as fe}from"./utils/address/index.mjs";import{DEFAULT_FONT_FAMILY as de,DEFAULT_FONT_WEIGHTS as ue,makeGoogleFontUrl as ce}from"./utils/makeGoogleFont.mjs";import{prepareNotification as he}from"./utils/notification.mjs";import{resolveLogo as Ce}from"./utils/logo/index.mjs";import{USDateSchema as Te,birthDateSchema as Se,dateSchema as ge,getDateSchemaWithPastValidation as Pe,refineAge18Plus as De,refineMinimumDate1900 as Be,refineTimestamp as ye,validateAge18Plus as be,validateMinimumDate1900 as ke,validateTimestamp as ve}from"./validations/date.schema.mjs";import{descriptionSchema as Oe}from"./validations/description.schema.mjs";import{businessEmailSchema as Ie,emailSchema as Le}from"./validations/email.schema.mjs";import{fieldSchema as Fe}from"./validations/field.schema.mjs";import{phoneSchema as Me}from"./validations/phone.schema.mjs";import{MaskedAndUnmaskedSSNSchema as Ae,SSNSchema as Ee}from"./validations/ssn.schema.mjs";import{getUnixSchema as Re}from"./validations/unix.schema.mjs";import{npiSchema as Ne}from"./validations/npi.schema.mjs";import{stateSchema as we,zipCodeSchema as Ue}from"./validations/address.schema.mjs";import{AcceptTermsNotice as Ve}from"./components/terms/AcceptTermsNotice.mjs";import{AdaptativeBox as xe}from"./components/UI/AdaptativeBox.mjs";import{AddressInput as Ge}from"./components/form/AddressInput/index.mjs";import{Alert as Ye}from"./components/Alert/Alert.mjs";import{BILLABLE_PRODUCTS as ze,BillableProduct as He}from"./components/chart/BillableEventsTable/BillableEventsTable.types.mjs";import{Banner as We}from"./components/Banners/Banner.mjs";import{BasePhoneInput as _e}from"./components/form/BasePhoneInput.mjs";import{BillableEventsProductTable as Qe}from"./components/chart/BillableEventsProductTable/BillableEventsProductTable.mjs";import{BillableEventsTable as qe}from"./components/chart/BillableEventsTable/BillableEventsTable.mjs";import{CalendlyDialog as Ze,CalendlyDialogComponent as Je}from"./components/dialog/CalendlyDialog.mjs";import{ContentWithLoader as Ke}from"./components/UI/ContentWithLoader.mjs";import{CustomDialog as $e}from"./components/dialog/Dialog.mjs";import{DateInput as je}from"./components/form/DateInput/index.mjs";import{DateRangeInput as Xe}from"./components/form/DateRangeInput/index.mjs";import{DefaultInput as ar}from"./components/form/DefaultInput.mjs";import{EmailInput as er}from"./components/form/EmailInput.mjs";import{ExactBirthdayBanner as rr}from"./components/Banners/ExactBirthdayBanner.mjs";import{ExportToPdfButton as sr}from"./components/buttons/ExportToPdfButton.mjs";import{Form as or}from"./components/form/NewOneClickForm/core/form/form.mjs";import{FormBuilder as tr}from"./components/form/NewOneClickForm/core/form/formBuilder.mjs";import{FormField as ir}from"./components/form/NewOneClickForm/core/form/formField.mjs";import{FormFieldBuilder as mr}from"./components/form/NewOneClickForm/core/form/formFieldBuilder.mjs";import{FormProvider as nr,useForm as pr}from"./components/form/NewOneClickForm/react/core/form.context.mjs";import{FullWidthAlert as lr}from"./components/Alert/FullWidthAlert.mjs";import{IconPlayer as fr}from"./components/icons/IconPlayer.mjs";import{LazyBrandChallengePromptsTooltip as dr}from"./components/BrandChallengePromptsTooltip/LazyBrandChallengePromptsTooltip.mjs";import{LegalLink as ur}from"./components/terms/LegalLink.mjs";import{LinkButton as cr}from"./components/buttons/LinkButton.mjs";import{LogDetailPanel as hr}from"./components/logs/LogsTable/LogDetailPanel.mjs";import{LogsInfoAlert as Cr}from"./components/logs/LogsInfoAlert/LogsInfoAlert.mjs";import{LogsTable as Tr}from"./components/logs/LogsTable/LogsTable.mjs";import{MetricsProvider as Sr,useMetrics as gr}from"./contexts/metrics/Metrics.context.mjs";import{NPIInput as Pr}from"./components/form/NPIInput/index.mjs";import{NewOneClickForm as Dr}from"./components/form/NewOneClickForm/react/ui/form.mjs";import{OTPInput as Br}from"./components/form/OTPInput.mjs";import{OneClickVerificationEventsOverTimeChart as yr}from"./components/chart/OneClickVerificationEventsOverTimeChart/OneClickVerificationEventsOverTimeChart.mjs";import{OneClickVerificationFunnelChart as br}from"./components/chart/OneClickVerificationFunnelChart/OneClickVerificationFunnelChart.mjs";import{OneClickVerificationSuccessOverTimeChart as kr}from"./components/chart/OneClickVerificationSuccessOverTimeChart/OneClickVerificationSuccessOverTimeChart.mjs";import{OriginalButton as vr}from"./components/buttons/OriginalButton.mjs";import{OverviewBigNumbers as Or}from"./components/chart/OverviewBigNumbers/OverviewBigNumbers.mjs";import{PersistentDialog as Ir}from"./components/dialog/PersistentDialog.mjs";import{PhoneInput as Lr}from"./components/form/PhoneInput.mjs";import{PoweredByVerified as Fr}from"./components/verified/powered-by-verified/index.mjs";import{PrettyPhoneInput as Mr}from"./components/form/PrettyPhoneInput.mjs";import{PrivacyPolicyNotice as Ar}from"./components/terms/PrivacyPolicyNotice.mjs";import{RadioOption as Er}from"./components/form/RadioOption.mjs";import{ResendPhoneBanner as Rr}from"./components/Banners/ResendPhoneBanner.mjs";import{SSNInput as Nr}from"./components/form/SSNInput.mjs";import{SelectInput as wr}from"./components/form/SelectInput.mjs";import{SnackbarProvider as Ur}from"notistack";import{SynchronizedMetricsChart as Vr,TOTAL_DATA_KEY as xr,enrichWithTotal as Gr,mergeChartData as Yr}from"./components/chart/SynchronizedMetricsChart/SynchronizedMetricsChart.mjs";import{TTSMagicButton as zr}from"./components/text-to-signup/magic-button.mjs";import{TTSMagicLegalLanguage as Hr}from"./components/text-to-signup/magic-legal-language.mjs";import{TTSMagicQRCode as Wr}from"./components/text-to-signup/magic-qr-code.mjs";import{TTSOverTimeChart as _r}from"./components/chart/TTSOverTimeChart/TTSOverTimeChart.mjs";import{TestPhoneNumbersBanner as Qr}from"./components/Banners/TestPhoneNumbersBanner.mjs";import{TextButton as qr}from"./components/buttons/TextButton.mjs";import{TimezoneInput as Zr}from"./components/form/TimezoneInput/index.mjs";import{VerifiedImage as Jr}from"./components/verified/VerifiedImage.mjs";import{VerifiedIncLogo as Kr}from"./components/verified/VerifiedIncLogo.mjs";import{defaultOverviewMetrics as $r}from"./components/chart/OverviewBigNumbers/OverviewBigNumbers.types.mjs";import{exportBillableEventsToCsv as jr}from"./components/chart/BillableEventsTable/exportBillableEventsToCsv.mjs";import{formatInTimeZone as Xr}from"./node_modules/date-fns-tz/dist/esm/formatInTimeZone/index.mjs";import{formatIntegrationType as as,mapBillableEventsTableData as es}from"./components/chart/BillableEventsTable/BillableEventsTableDataMapper.mjs";import{mapBillableEventsProductTableData as rs}from"./components/chart/BillableEventsProductTable/BillableEventsProductTableDataMapper.mjs";import{mapOneClickVerificationAreaSeriesData as ss}from"./components/chart/OneClickVerificationEventsOverTimeChart/OneClickVerificationEventsOverTimeChart.map.mjs";import{mapOneClickVerificationFunnelChartData as os}from"./components/chart/OneClickVerificationFunnelChart/OneClickVerificationFunnelChart.map.mjs";import{mapOneClickVerificationSuccessOverTimeChartData as ts}from"./components/chart/OneClickVerificationSuccessOverTimeChart/OneClickVerificationSuccessOverTimeChart.map.mjs";import{mapSeriesTimeSeriesData as is}from"./components/chart/SeriesChart/SeriesChart.map.mjs";import{mapTTSTimeSeriesData as ms}from"./components/chart/TTSOverTimeChart/TTSOverTimeChart.map.mjs";import{toCreatePatchCredentials as ns}from"./components/form/NewOneClickForm/core/mappers/create-patch.map.mjs";import{toOption as ps,useBrandFilterInput as ls}from"./components/BrandFilterInput/BrandFilterInput.hook.mjs";import{toShareCredentials as fs}from"./components/form/NewOneClickForm/core/mappers/share.map.mjs";import{useColorMap as ds}from"./hooks/metrics/useColorMap.mjs";import{useTTSMagicLink as us}from"./hooks/text-to-signup/magic-link.mjs";import{useTTSMagicQRCode as cs}from"./hooks/text-to-signup/magic-qr-code.mjs";import{useTTSMagicQRCodeOptions as hs}from"./hooks/text-to-signup/magic-qr-code-options.mjs";import{useTTSMagicText as Cs}from"./hooks/text-to-signup/magic-text.mjs";export{Ve as AcceptTermsNotice,xe as AdaptativeBox,Ge as AddressInput,Ye as Alert,g as AreaChart,ze as BILLABLE_PRODUCTS,f as Backdrop,We as Banner,_e as BasePhoneInput,T as BigNumber,Qe as BillableEventsProductTable,qe as BillableEventsTable,He as BillableProduct,R as BrandChallengePromptsTooltip,u as BrandFilterInput,d as Button,Ze as CalendlyDialog,Je as CalendlyDialogComponent,Ke as ContentWithLoader,F as ConversionOverTimeChart,E as CopyableUuid,t as CredentialRequestsEditor,p as CustomAlertComponent,$e as CustomDialog,de as DEFAULT_FONT_FAMILY,ue as DEFAULT_FONT_WEIGHTS,je as DateInput,Xe as DateRangeInput,ar as DefaultInput,er as EmailInput,O as EmptyChartSection,P as ErrorCodesChart,rr as ExactBirthdayBanner,sr as ExportToPdfButton,or as Form,tr as FormBuilder,ir as FormField,mr as FormFieldBuilder,nr as FormProvider,lr as FullWidthAlert,L as FunnelChart,fr as IconPlayer,m as Image,dr as LazyBrandChallengePromptsTooltip,ur as LegalLink,cr as LinkButton,v as LoadingChartSection,hr as LogDetailPanel,Cr as LogsInfoAlert,Tr as LogsTable,Ae as MaskedAndUnmaskedSSNSchema,I as MetricLastUpdated,Sr as MetricsProvider,Pr as NPIInput,Dr as NewOneClickForm,Br as OTPInput,yr as OneClickVerificationEventsOverTimeChart,br as OneClickVerificationFunnelChart,kr as OneClickVerificationSuccessOverTimeChart,vr as OriginalButton,Or as OverviewBigNumbers,r as PageHeader,s as PageSectionHeader,a as Paragraph,Ir as PersistentDialog,Lr as PhoneInput,B as PieChart,Fr as PoweredByVerified,Mr as PrettyPhoneInput,Ar as PrivacyPolicyNotice,n as QRCodeDisplay,Er as RadioOption,D as ReasonCodesChart,A as RequiredLabel,Rr as ResendPhoneBanner,b as RiskScoreBarChart,y as RiskScorePieChart,Nr as SSNInput,Ee as SSNSchema,e as SectionHeader,wr as SelectInput,c as SeriesChart,h as SeriesChartLegend,C as SeriesPercentageChart,S as SimpleBarChart,k as SimpleLegend,Ur as SnackbarProvider,Vr as SynchronizedMetricsChart,xr as TOTAL_DATA_KEY,zr as TTSMagicButton,Hr as TTSMagicLegalLanguage,Wr as TTSMagicQRCode,_r as TTSOverTimeChart,Qr as TestPhoneNumbersBanner,qr as TextButton,Zr as TimezoneInput,N as Tunnel,o as Typography,Te as USDateSchema,Jr as VerifiedImage,Kr as VerifiedIncLogo,i as When,M as WhenStyled,me as addressFormatter,ee as alpha,Se as birthDateSchema,ta as black,ia as blue,Ie as businessEmailSchema,ma as colors,re as contrastColor,xa as countries,na as dangerContrast,pa as darkBlue,la as darkGreen,fa as darkGrey,da as darkGreyContrast,ua as darkRed,ca as darkYellow,se as darken,ge as dateSchema,$r as defaultOverviewMetrics,Oe as descriptionSchema,Le as emailSchema,Gr as enrichWithTotal,jr as exportBillableEventsToCsv,Fe as fieldSchema,Ea as formatDateMMDDYYYY,Ra as formatDateMMYY,Na as formatDateToTimestamp,wa as formatExtendedDate,Xr as formatInTimeZone,as as formatIntegrationType,Ua as formatLogTimestamp,ne as fromUSAddress,ae as generateKeyFromString,Pe as getDateSchemaWithPastValidation,Ga as getPhoneData,Ya as getPhoneDataByFieldName,oe as getThemeFromPrimaryColor,Re as getUnixSchema,ha as green,Ca as grey,Ta as greyContrast,Sa as infoContrast,Xa as kebabCaseToPretty,ga as lightBlue,Pa as lightGreen,Da as lightGrey,Ba as lightGreyContrast,ya as lightRed,ba as lightYellow,te as lighten,ce as makeGoogleFontUrl,rs as mapBillableEventsProductTableData,es as mapBillableEventsTableData,ss as mapOneClickVerificationAreaSeriesData,os as mapOneClickVerificationFunnelChartData,ts as mapOneClickVerificationSuccessOverTimeChartData,is as mapSeriesTimeSeriesData,ms as mapTTSTimeSeriesData,_a as masks,Yr as mergeChartData,ie as mix,Ne as npiSchema,Qa as omitProperties,pe as parseCountryCode,za as parseToPhoneNational,Me as phoneSchema,he as prepareNotification,ka as red,De as refineAge18Plus,Be as refineMinimumDate1900,ye as refineTimestamp,Ce as resolveLogo,Ma as shadows,Ha as sortByCountryName,qa as ssnFormatter,Za as ssnRegex,we as stateSchema,Ja as stringToHashedColor,va as textDisabled,Fa as theme,$a as toCapitalize,ns as toCreatePatchCredentials,ps as toOption,ja as toSentenceCase,fs as toShareCredentials,le as toUSaddress,fe as toUSaddressPretty,Va as toUTCMilliseconds,oa as useBidirectionalScroll,ls as useBrandFilterInput,G as useCallbackRef,ds as useColorMap,U as useCopyToClipboard,K as useCounter,ea as useDebounceCallback,H as useDebounceValue,V as useDisclosure,pr as useForm,x as useGoogleFont,J as useIntersectionObserver,w as useLocalStorage,gr as useMetrics,aa as useNavigatorOnline,sa as useNetworkType,$ as useOnClickOutside,j as usePrevious,Y as useQRCode,X as useResizeObserver,W as useScript,z as useSearchParams,l as useSnackbar,ra as useStyledQRCode,us as useTTSMagicLink,cs as useTTSMagicQRCode,hs as useTTSMagicQRCodeOptions,Cs as useTTSMagicText,_ as useThrottle,Q as useToggle,q as useWindowScroll,Z as useWindowSize,Ka as uuidToHashedColor,be as validateAge18Plus,ke as validateMinimumDate1900,Wa as validatePhone,ve as validateTimestamp,Oa as warningContrast,Ia as white,Aa as wrapPromise,La as yellow,Ue as zipCodeSchema};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verifiedinc-public/shared-ui-elements",
3
- "version": "9.11.0",
3
+ "version": "9.11.1-beta.0",
4
4
  "description": "A set of UI components, utilities that is shareable with the core apps.",
5
5
  "private": false,
6
6
  "sideEffects": false,