@verifiedinc-public/shared-ui-elements 6.8.0 → 6.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";import{A as a,ac as s,Q as e,c as t,a0 as r,Y as n,B as i,a2 as o,a1 as d,a8 as l,a7 as p,ad as m,C,a5 as c,D as u,i as h,N as S,h as g,_ as P,E as y,F as I,ab as B,I as f,b as T,L as k,M as b,g as D,k as O,W as R,O as L,a6 as F,e as v,f as E,P as N,X as A,R as x,aa as M,Z as w,S as V,d as W,$ as q,T as H,j,a as z,V as Q,U as G,a9 as U,H as J,v as K,t as X,p as Y,u as Z,l as _,r as $,G as aa,z as sa,q as ea,J as ta,s as ra,m as na,K as ia,n as oa,o as da,w as la,a3 as pa,x as ma,y as Ca,a4 as ca}from"../shared/ContentWithLoader-BDeTuAEX.mjs";import{a as ua,b as ha,P as Sa,S as ga}from"../shared/PageSectionHeader-lc9WunC-.mjs";import{B as Pa,C as ya,i as Ia,E as Ba,L as fa,j as Ta,M as ka,g as ba,O as Da,P as Oa,R as Ra,e as La,d as Fa,S as va,a as Ea,b as Na,k as Aa,c as xa,f as Ma,W as wa,h as Va,m as Wa,u as qa}from"../shared/SignupBigNumbers-ccinxVLM.mjs";import{SnackbarProvider as Ha}from"notistack";export{a as AcceptTermsNotice,s as AdaptativeBox,e as AddressInput,t as Alert,r as Backdrop,n as Banner,i as BasePhoneInput,Pa as BigNumber,o as BrandFilterInput,d as Button,l as CalendlyDialog,p as CalendlyDialogComponent,m as ContentWithLoader,C as CredentialRequestsEditor,ya as CustomAlertComponent,c as CustomDialog,u as DateInput,h as DateRangeInput,S as DefaultInput,g as EmailInput,Ia as EmptyChartSection,Ba as ErrorCodesChart,P as ExactBirthdayBanner,y as ExportToPdfButton,I as FullWidthAlert,B as IconPlayer,f as Image,T as LegalLink,k as LinkButton,fa as LoadingChartSection,b as MandatoryEnum,Ta as MetricLastUpdated,ka as MonthlySignupsOverviewTable,D as OTPInput,O as OneClickForm,ba as OneClickOverTimeChart,Da as OneClickPercentageChart,R as OneClickPoweredByVerified,L as OriginalButton,ua as PageHeader,ha as PageSectionHeader,Sa as Paragraph,F as PersistentDialog,v as PhoneInput,Oa as PieChart,E as PrettyPhoneInput,N as PrivacyPolicyNotice,A as QRCodeDisplay,x as RadioOption,Ra as ReasonCodesChart,M as RequiredLabel,w as ResendPhoneBanner,La as RiskScoreBarChart,Fa as RiskScorePieChart,V as SSNInput,ga as SectionHeader,W as SelectInput,va as SeriesChart,Ea as SeriesChartLegend,Na as SeriesPercentageChart,Aa as SignupBigNumbers,xa as SimpleBarChart,Ma as SimpleLegend,Ha as SnackbarProvider,q as TestPhoneNumbersBanner,H as TextButton,j as TimezoneInput,z as Typography,Q as VerifiedImage,G as VerifiedIncLogo,wa as When,U as WhenStyled,J as extractChildrenFromCredentialFieldSet,K as extractTypesFromSchema,X as filterRepeatedCredentials,Y as findCorrectSchemaProperty,Z as findCredentialsByType,_ as getCredentialTypeDisplayInfo,$ as getCredentialValues,aa as getLastPathName,sa as getParentPath,ea as getReferencedSchemaNames,ta as hasMandatoryFieldEmpty,ra as isNewCredentialAgainstInstance,na as isRequiredCredentialDisplayInfo,ia as isSomeFieldInputAllowed,oa as isValidInputCredential,da as makeCredentialDisplayInfoList,Va as mapMonthlySignupsOverviewTableData,Wa as mapTimeSeriesData,la as sortCredentialsBySchema,pa as toOption,ma as transformToFormObject,Ca as transformToFormSchema,ca as useBrandFilterInput,qa as useSnackbar};
1
+ "use strict";import{A as a,ac as s,Q as e,c as t,a0 as r,Y as n,B as i,a2 as o,a1 as d,a8 as l,a7 as p,ad as m,C,a5 as c,D as u,i as h,N as S,h as g,_ as P,E as y,F as I,ab as B,I as f,b as T,L as k,M as b,g as D,k as O,W as R,O as L,a6 as F,e as v,f as E,P as N,X as A,R as x,aa as M,Z as w,S as V,d as W,$ as q,T as H,j,a as z,V as Q,U as G,a9 as U,H as J,v as K,t as X,p as Y,u as Z,l as _,r as $,G as aa,z as sa,q as ea,J as ta,s as ra,m as na,K as ia,n as oa,o as da,w as la,a3 as pa,x as ma,y as Ca,a4 as ca}from"../shared/ContentWithLoader-BGnFMrdh.mjs";import{a as ua,b as ha,P as Sa,S as ga}from"../shared/PageSectionHeader-lc9WunC-.mjs";import{B as Pa,C as ya,i as Ia,E as Ba,L as fa,j as Ta,M as ka,g as ba,O as Da,P as Oa,R as Ra,e as La,d as Fa,S as va,a as Ea,b as Na,k as Aa,c as xa,f as Ma,W as wa,h as Va,m as Wa,u as qa}from"../shared/SignupBigNumbers-ccinxVLM.mjs";import{SnackbarProvider as Ha}from"notistack";export{a as AcceptTermsNotice,s as AdaptativeBox,e as AddressInput,t as Alert,r as Backdrop,n as Banner,i as BasePhoneInput,Pa as BigNumber,o as BrandFilterInput,d as Button,l as CalendlyDialog,p as CalendlyDialogComponent,m as ContentWithLoader,C as CredentialRequestsEditor,ya as CustomAlertComponent,c as CustomDialog,u as DateInput,h as DateRangeInput,S as DefaultInput,g as EmailInput,Ia as EmptyChartSection,Ba as ErrorCodesChart,P as ExactBirthdayBanner,y as ExportToPdfButton,I as FullWidthAlert,B as IconPlayer,f as Image,T as LegalLink,k as LinkButton,fa as LoadingChartSection,b as MandatoryEnum,Ta as MetricLastUpdated,ka as MonthlySignupsOverviewTable,D as OTPInput,O as OneClickForm,ba as OneClickOverTimeChart,Da as OneClickPercentageChart,R as OneClickPoweredByVerified,L as OriginalButton,ua as PageHeader,ha as PageSectionHeader,Sa as Paragraph,F as PersistentDialog,v as PhoneInput,Oa as PieChart,E as PrettyPhoneInput,N as PrivacyPolicyNotice,A as QRCodeDisplay,x as RadioOption,Ra as ReasonCodesChart,M as RequiredLabel,w as ResendPhoneBanner,La as RiskScoreBarChart,Fa as RiskScorePieChart,V as SSNInput,ga as SectionHeader,W as SelectInput,va as SeriesChart,Ea as SeriesChartLegend,Na as SeriesPercentageChart,Aa as SignupBigNumbers,xa as SimpleBarChart,Ma as SimpleLegend,Ha as SnackbarProvider,q as TestPhoneNumbersBanner,H as TextButton,j as TimezoneInput,z as Typography,Q as VerifiedImage,G as VerifiedIncLogo,wa as When,U as WhenStyled,J as extractChildrenFromCredentialFieldSet,K as extractTypesFromSchema,X as filterRepeatedCredentials,Y as findCorrectSchemaProperty,Z as findCredentialsByType,_ as getCredentialTypeDisplayInfo,$ as getCredentialValues,aa as getLastPathName,sa as getParentPath,ea as getReferencedSchemaNames,ta as hasMandatoryFieldEmpty,ra as isNewCredentialAgainstInstance,na as isRequiredCredentialDisplayInfo,ia as isSomeFieldInputAllowed,oa as isValidInputCredential,da as makeCredentialDisplayInfoList,Va as mapMonthlySignupsOverviewTableData,Wa as mapTimeSeriesData,la as sortCredentialsBySchema,pa as toOption,ma as transformToFormObject,Ca as transformToFormSchema,ca as useBrandFilterInput,qa as useSnackbar};
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- "use strict";import{A as a,ac as s,Q as e,c as t,a0 as r,Y as o,B as i,a2 as n,a1 as m,a8 as d,a7 as l,ad as p,C as u,a5 as c,D as h,i as C,N as S,h as g,_ as f,E as y,F as P,ab as k,I as T,b as D,L as b,M as B,g as I,k as F,W as O,O as R,a6 as L,e as N,f as v,P as w,X as U,R as A,aa as M,Z as E,S as x,d as W,$ as Y,T as G,j as H,a as V,V as z,U as j,a9 as _,H as q,v as Q,t as J,p as K,u as X,l as Z,r as $,G as aa,z as sa,q as ea,J as ta,s as ra,m as oa,K as ia,n as na,o as ma,w as da,a3 as la,x as pa,y as ua,a4 as ca}from"./shared/ContentWithLoader-BDeTuAEX.mjs";import{a as ha,b as Ca,P as Sa,S as ga}from"./shared/PageSectionHeader-lc9WunC-.mjs";import{B as fa,C as ya,i as Pa,E as ka,L as Ta,j as Da,M as ba,g as Ba,O as Ia,P as Fa,R as Oa,e as Ra,d as La,S as Na,a as va,b as wa,k as Ua,c as Aa,f as Ma,W as Ea,h as xa,m as Wa,u as Ya}from"./shared/SignupBigNumbers-ccinxVLM.mjs";import{b as Ga,k as Ha,a as Va,i as za,u as ja,j as _a,d as qa,c as Qa,l as Ja,e as Ka,f as Xa,g as Za,h as $a}from"./shared/useStyledQRCode-BN5wt-Zb.mjs";import{u as as,a as ss}from"./shared/usePrevious-Dppy11px.mjs";import{a as es,b as ts,u as rs}from"./shared/useOnClickOutside-LHfgekbP.mjs";import{u as os}from"./shared/useCounter-BV32zXDQ.mjs";import{u as is}from"./shared/useResizeObserver-D7K4jTvT.mjs";import{b as ns,a as ms,x as ds,m as ls,e as ps,d as us,q as cs,v as hs,h as Cs,j as Ss,g as gs,p as fs,u as ys,n as Ps,c as ks,l as Ts,o as Ds,s as bs,f as Bs,i as Is,r as Fs,t as Os,k as Rs,w as Ls,y as Ns}from"./shared/colors-CSvtCJK4.mjs";import{s as vs,t as ws}from"./shared/shadows-levwxV7v.mjs";import{wrapPromise as Us}from"./utils/wrapPromise/index.mjs";import{f as As,b as Ms,a as Es,c as xs,t as Ws,u as Ys}from"./shared/uuidColor-DxkgIjlu.mjs";import{c as Gs,g as Hs,a as Vs,p as zs,s as js,v as _s}from"./shared/phone-DCga5nUC.mjs";import{masks as qs}from"./utils/masks/index.mjs";import{o as Qs}from"./shared/omitProperty-CgN5EPAy.mjs";import{D as Js,a as Ks,m as Xs,s as Zs}from"./shared/makeGoogleFont-DJFPTTVt.mjs";import{toCapitalize as $s}from"./utils/string/index.mjs";import{t as ae}from"./shared/toSentenceCase-C6ZGgmg7.mjs";import{k as se}from"./shared/formatKebabToPretty-Du43TgPC.mjs";import{alpha as ee,contrastColor as te,darken as re,getThemeFromPrimaryColor as oe,lighten as ie}from"./utils/color/index.mjs";import{addressFormatter as ne,fromUSAddress as me,parseCountryCode as de,toUSaddress as le,toUSaddressPretty as pe}from"./utils/address/index.mjs";import{U as ue,d as ce,e as he,f as Ce,g as Se,a as ge,s as fe}from"./shared/unix.schema-CM7mF14M.mjs";import{M as ye,S as Pe,p as ke}from"./shared/ssn.schema-l5RuYEx9.mjs";import{SnackbarProvider as Te}from"notistack";export{a as AcceptTermsNotice,s as AdaptativeBox,e as AddressInput,t as Alert,r as Backdrop,o as Banner,i as BasePhoneInput,fa as BigNumber,n as BrandFilterInput,m as Button,d as CalendlyDialog,l as CalendlyDialogComponent,p as ContentWithLoader,u as CredentialRequestsEditor,ya as CustomAlertComponent,c as CustomDialog,Js as DEFAULT_FONT_FAMILY,Ks as DEFAULT_FONT_WEIGHTS,h as DateInput,C as DateRangeInput,S as DefaultInput,g as EmailInput,Pa as EmptyChartSection,ka as ErrorCodesChart,f as ExactBirthdayBanner,y as ExportToPdfButton,P as FullWidthAlert,k as IconPlayer,T as Image,D as LegalLink,b as LinkButton,Ta as LoadingChartSection,B as MandatoryEnum,ye as MaskedAndUnmaskedSSNSchema,Da as MetricLastUpdated,ba as MonthlySignupsOverviewTable,I as OTPInput,F as OneClickForm,Ba as OneClickOverTimeChart,Ia as OneClickPercentageChart,O as OneClickPoweredByVerified,R as OriginalButton,ha as PageHeader,Ca as PageSectionHeader,Sa as Paragraph,L as PersistentDialog,N as PhoneInput,Fa as PieChart,v as PrettyPhoneInput,w as PrivacyPolicyNotice,U as QRCodeDisplay,A as RadioOption,Oa as ReasonCodesChart,M as RequiredLabel,E as ResendPhoneBanner,Ra as RiskScoreBarChart,La as RiskScorePieChart,x as SSNInput,Pe as SSNSchema,ga as SectionHeader,W as SelectInput,Na as SeriesChart,va as SeriesChartLegend,wa as SeriesPercentageChart,Ua as SignupBigNumbers,Aa as SimpleBarChart,Ma as SimpleLegend,Te as SnackbarProvider,Y as TestPhoneNumbersBanner,G as TextButton,H as TimezoneInput,V as Typography,ue as USDateSchema,z as VerifiedImage,j as VerifiedIncLogo,Ea as When,_ as WhenStyled,ne as addressFormatter,ee as alpha,ns as black,ms as blue,ds as colors,te as contrastColor,Gs as countries,ls as dangerContrast,ps as darkBlue,us as darkGreen,cs as darkGrey,hs as darkGreyContrast,Cs as darkRed,Ss as darkYellow,re as darken,ce as descriptionSchema,he as emailSchema,q as extractChildrenFromCredentialFieldSet,Q as extractTypesFromSchema,Ce as fieldSchema,J as filterRepeatedCredentials,K as findCorrectSchemaProperty,X as findCredentialsByType,As as formatDateMMDDYYYY,Ms as formatDateMMYY,Es as formatDateToTimestamp,xs as formatExtendedDate,me as fromUSAddress,Z as getCredentialTypeDisplayInfo,$ as getCredentialValues,Se as getDateSchemaWithPastValidation,aa as getLastPathName,sa as getParentPath,Hs as getPhoneData,Vs as getPhoneDataByFieldName,ea as getReferencedSchemaNames,oe as getThemeFromPrimaryColor,ge as getUnixSchema,gs as green,fs as grey,ys as greyContrast,ta as hasMandatoryFieldEmpty,Ps as infoContrast,ra as isNewCredentialAgainstInstance,oa as isRequiredCredentialDisplayInfo,ia as isSomeFieldInputAllowed,na as isValidInputCredential,se as kebabCaseToPretty,ks as lightBlue,Ts as lightGreen,Ds as lightGrey,bs as lightGreyContrast,Bs as lightRed,Is as lightYellow,ie as lighten,ma as makeCredentialDisplayInfoList,Xs as makeGoogleFontUrl,xa as mapMonthlySignupsOverviewTableData,Wa as mapTimeSeriesData,qs as masks,Qs as omitProperties,de as parseCountryCode,zs as parseToPhoneNational,ke as phoneSchema,Fs as red,vs as shadows,js as sortByCountryName,da as sortCredentialsBySchema,Zs as ssnFormatter,fe as stateSchema,Os as textDisabled,ws as theme,$s as toCapitalize,la as toOption,ae as toSentenceCase,le as toUSaddress,pe as toUSaddressPretty,Ws as toUTCMilliseconds,pa as transformToFormObject,ua as transformToFormSchema,ca as useBrandFilterInput,Ga as useCallbackRef,as as useCopyToClipboard,os as useCounter,Ha as useDebounceCallback,es as useDebounceValue,Va as useDisclosure,za as useIntersectionObserver,ja as useLocalStorage,_a as useNavigatorOnline,ts as useOnClickOutside,ss as usePrevious,rs as useQRCode,is as useResizeObserver,qa as useScript,Qa as useSearchParams,Ya as useSnackbar,Ja as useStyledQRCode,Ka as useThrottle,Xa as useToggle,Za as useWindowScroll,$a as useWindowSize,Ys as uuidToHashedColor,_s as validatePhone,Rs as warningContrast,Ls as white,Us as wrapPromise,Ns as yellow};
1
+ "use strict";import{A as a,ac as s,Q as e,c as t,a0 as r,Y as o,B as i,a2 as n,a1 as m,a8 as d,a7 as l,ad as p,C as u,a5 as c,D as h,i as C,N as S,h as g,_ as f,E as y,F as P,ab as k,I as T,b as D,L as b,M as B,g as I,k as F,W as O,O as R,a6 as L,e as N,f as v,P as w,X as U,R as A,aa as M,Z as E,S as x,d as W,$ as Y,T as G,j as H,a as V,V as z,U as j,a9 as _,H as q,v as Q,t as J,p as K,u as X,l as Z,r as $,G as aa,z as sa,q as ea,J as ta,s as ra,m as oa,K as ia,n as na,o as ma,w as da,a3 as la,x as pa,y as ua,a4 as ca}from"./shared/ContentWithLoader-BGnFMrdh.mjs";import{a as ha,b as Ca,P as Sa,S as ga}from"./shared/PageSectionHeader-lc9WunC-.mjs";import{B as fa,C as ya,i as Pa,E as ka,L as Ta,j as Da,M as ba,g as Ba,O as Ia,P as Fa,R as Oa,e as Ra,d as La,S as Na,a as va,b as wa,k as Ua,c as Aa,f as Ma,W as Ea,h as xa,m as Wa,u as Ya}from"./shared/SignupBigNumbers-ccinxVLM.mjs";import{b as Ga,k as Ha,a as Va,i as za,u as ja,j as _a,d as qa,c as Qa,l as Ja,e as Ka,f as Xa,g as Za,h as $a}from"./shared/useStyledQRCode-BN5wt-Zb.mjs";import{u as as,a as ss}from"./shared/usePrevious-Dppy11px.mjs";import{a as es,b as ts,u as rs}from"./shared/useOnClickOutside-LHfgekbP.mjs";import{u as os}from"./shared/useCounter-BV32zXDQ.mjs";import{u as is}from"./shared/useResizeObserver-D7K4jTvT.mjs";import{b as ns,a as ms,x as ds,m as ls,e as ps,d as us,q as cs,v as hs,h as Cs,j as Ss,g as gs,p as fs,u as ys,n as Ps,c as ks,l as Ts,o as Ds,s as bs,f as Bs,i as Is,r as Fs,t as Os,k as Rs,w as Ls,y as Ns}from"./shared/colors-CSvtCJK4.mjs";import{s as vs,t as ws}from"./shared/shadows-levwxV7v.mjs";import{wrapPromise as Us}from"./utils/wrapPromise/index.mjs";import{f as As,b as Ms,a as Es,c as xs,t as Ws,u as Ys}from"./shared/uuidColor-DxkgIjlu.mjs";import{c as Gs,g as Hs,a as Vs,p as zs,s as js,v as _s}from"./shared/phone-DCga5nUC.mjs";import{masks as qs}from"./utils/masks/index.mjs";import{o as Qs}from"./shared/omitProperty-CgN5EPAy.mjs";import{D as Js,a as Ks,m as Xs,s as Zs}from"./shared/makeGoogleFont-DJFPTTVt.mjs";import{toCapitalize as $s}from"./utils/string/index.mjs";import{t as ae}from"./shared/toSentenceCase-C6ZGgmg7.mjs";import{k as se}from"./shared/formatKebabToPretty-Du43TgPC.mjs";import{alpha as ee,contrastColor as te,darken as re,getThemeFromPrimaryColor as oe,lighten as ie}from"./utils/color/index.mjs";import{addressFormatter as ne,fromUSAddress as me,parseCountryCode as de,toUSaddress as le,toUSaddressPretty as pe}from"./utils/address/index.mjs";import{U as ue,d as ce,e as he,f as Ce,g as Se,a as ge,s as fe}from"./shared/unix.schema-CM7mF14M.mjs";import{M as ye,S as Pe,p as ke}from"./shared/ssn.schema-l5RuYEx9.mjs";import{SnackbarProvider as Te}from"notistack";export{a as AcceptTermsNotice,s as AdaptativeBox,e as AddressInput,t as Alert,r as Backdrop,o as Banner,i as BasePhoneInput,fa as BigNumber,n as BrandFilterInput,m as Button,d as CalendlyDialog,l as CalendlyDialogComponent,p as ContentWithLoader,u as CredentialRequestsEditor,ya as CustomAlertComponent,c as CustomDialog,Js as DEFAULT_FONT_FAMILY,Ks as DEFAULT_FONT_WEIGHTS,h as DateInput,C as DateRangeInput,S as DefaultInput,g as EmailInput,Pa as EmptyChartSection,ka as ErrorCodesChart,f as ExactBirthdayBanner,y as ExportToPdfButton,P as FullWidthAlert,k as IconPlayer,T as Image,D as LegalLink,b as LinkButton,Ta as LoadingChartSection,B as MandatoryEnum,ye as MaskedAndUnmaskedSSNSchema,Da as MetricLastUpdated,ba as MonthlySignupsOverviewTable,I as OTPInput,F as OneClickForm,Ba as OneClickOverTimeChart,Ia as OneClickPercentageChart,O as OneClickPoweredByVerified,R as OriginalButton,ha as PageHeader,Ca as PageSectionHeader,Sa as Paragraph,L as PersistentDialog,N as PhoneInput,Fa as PieChart,v as PrettyPhoneInput,w as PrivacyPolicyNotice,U as QRCodeDisplay,A as RadioOption,Oa as ReasonCodesChart,M as RequiredLabel,E as ResendPhoneBanner,Ra as RiskScoreBarChart,La as RiskScorePieChart,x as SSNInput,Pe as SSNSchema,ga as SectionHeader,W as SelectInput,Na as SeriesChart,va as SeriesChartLegend,wa as SeriesPercentageChart,Ua as SignupBigNumbers,Aa as SimpleBarChart,Ma as SimpleLegend,Te as SnackbarProvider,Y as TestPhoneNumbersBanner,G as TextButton,H as TimezoneInput,V as Typography,ue as USDateSchema,z as VerifiedImage,j as VerifiedIncLogo,Ea as When,_ as WhenStyled,ne as addressFormatter,ee as alpha,ns as black,ms as blue,ds as colors,te as contrastColor,Gs as countries,ls as dangerContrast,ps as darkBlue,us as darkGreen,cs as darkGrey,hs as darkGreyContrast,Cs as darkRed,Ss as darkYellow,re as darken,ce as descriptionSchema,he as emailSchema,q as extractChildrenFromCredentialFieldSet,Q as extractTypesFromSchema,Ce as fieldSchema,J as filterRepeatedCredentials,K as findCorrectSchemaProperty,X as findCredentialsByType,As as formatDateMMDDYYYY,Ms as formatDateMMYY,Es as formatDateToTimestamp,xs as formatExtendedDate,me as fromUSAddress,Z as getCredentialTypeDisplayInfo,$ as getCredentialValues,Se as getDateSchemaWithPastValidation,aa as getLastPathName,sa as getParentPath,Hs as getPhoneData,Vs as getPhoneDataByFieldName,ea as getReferencedSchemaNames,oe as getThemeFromPrimaryColor,ge as getUnixSchema,gs as green,fs as grey,ys as greyContrast,ta as hasMandatoryFieldEmpty,Ps as infoContrast,ra as isNewCredentialAgainstInstance,oa as isRequiredCredentialDisplayInfo,ia as isSomeFieldInputAllowed,na as isValidInputCredential,se as kebabCaseToPretty,ks as lightBlue,Ts as lightGreen,Ds as lightGrey,bs as lightGreyContrast,Bs as lightRed,Is as lightYellow,ie as lighten,ma as makeCredentialDisplayInfoList,Xs as makeGoogleFontUrl,xa as mapMonthlySignupsOverviewTableData,Wa as mapTimeSeriesData,qs as masks,Qs as omitProperties,de as parseCountryCode,zs as parseToPhoneNational,ke as phoneSchema,Fs as red,vs as shadows,js as sortByCountryName,da as sortCredentialsBySchema,Zs as ssnFormatter,fe as stateSchema,Os as textDisabled,ws as theme,$s as toCapitalize,la as toOption,ae as toSentenceCase,le as toUSaddress,pe as toUSaddressPretty,Ws as toUTCMilliseconds,pa as transformToFormObject,ua as transformToFormSchema,ca as useBrandFilterInput,Ga as useCallbackRef,as as useCopyToClipboard,os as useCounter,Ha as useDebounceCallback,es as useDebounceValue,Va as useDisclosure,za as useIntersectionObserver,ja as useLocalStorage,_a as useNavigatorOnline,ts as useOnClickOutside,ss as usePrevious,rs as useQRCode,is as useResizeObserver,qa as useScript,Qa as useSearchParams,Ya as useSnackbar,Ja as useStyledQRCode,Ka as useThrottle,Xa as useToggle,Za as useWindowScroll,$a as useWindowSize,Ys as uuidToHashedColor,_s as validatePhone,Rs as warningContrast,Ls as white,Us as wrapPromise,Ns as yellow};
@@ -71,7 +71,7 @@
71
71
  animation-iteration-count: infinite;
72
72
  animation-delay: 200ms;
73
73
  }
74
- `),o3.rippleVisible,cn,e4,({theme:e})=>e.transitions.easing.easeInOut,o3.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,o3.child,o3.childLeaving,un,e4,({theme:e})=>e.transitions.easing.easeInOut,o3.childPulsate,pn,({theme:e})=>e.transitions.easing.easeInOut),mn=y.forwardRef(function(e,r){const n=S1({props:e,name:"MuiTouchRipple"}),{center:t=!1,classes:o={},className:i}=n,C=U(n,ln),[s,l]=y.useState([]),d=y.useRef(0),c=y.useRef(null);y.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const u=y.useRef(!1),p=H8(),h=y.useRef(null),m=y.useRef(null),f=y.useCallback(L=>{const{pulsate:x,rippleX:w,rippleY:k,rippleSize:b,cb:S}=L;l(D=>[...D,a.jsx(fn,{classes:{ripple:B(o.ripple,o3.ripple),rippleVisible:B(o.rippleVisible,o3.rippleVisible),ripplePulsate:B(o.ripplePulsate,o3.ripplePulsate),child:B(o.child,o3.child),childLeaving:B(o.childLeaving,o3.childLeaving),childPulsate:B(o.childPulsate,o3.childPulsate)},timeout:e4,pulsate:x,rippleX:w,rippleY:k,rippleSize:b},d.current)]),d.current+=1,c.current=S},[o]),v=y.useCallback((L={},x={},w=()=>{})=>{const{pulsate:k=!1,center:b=t||x.pulsate,fakeElement:S=!1}=x;if(L?.type==="mousedown"&&u.current){u.current=!1;return}L?.type==="touchstart"&&(u.current=!0);const D=S?null:m.current,E=D?D.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Z,N,j;if(b||L===void 0||L.clientX===0&&L.clientY===0||!L.clientX&&!L.touches)Z=Math.round(E.width/2),N=Math.round(E.height/2);else{const{clientX:_,clientY:R}=L.touches&&L.touches.length>0?L.touches[0]:L;Z=Math.round(_-E.left),N=Math.round(R-E.top)}if(b)j=Math.sqrt((2*E.width**2+E.height**2)/3),j%2===0&&(j+=1);else{const _=Math.max(Math.abs((D?D.clientWidth:0)-Z),Z)*2+2,R=Math.max(Math.abs((D?D.clientHeight:0)-N),N)*2+2;j=Math.sqrt(_**2+R**2)}L!=null&&L.touches?h.current===null&&(h.current=()=>{f({pulsate:k,rippleX:Z,rippleY:N,rippleSize:j,cb:w})},p.start(dn,()=>{h.current&&(h.current(),h.current=null)})):f({pulsate:k,rippleX:Z,rippleY:N,rippleSize:j,cb:w})},[t,f,p]),M=y.useCallback(()=>{v({},{pulsate:!0})},[v]),g=y.useCallback((L,x)=>{if(p.clear(),L?.type==="touchend"&&h.current){h.current(),h.current=null,p.start(0,()=>{g(L,x)});return}h.current=null,l(w=>w.length>0?w.slice(1):w),c.current=x},[p]);return y.useImperativeHandle(r,()=>({pulsate:M,start:v,stop:g}),[M,v,g]),a.jsx(hn,P({className:B(o3.root,o.root,i),ref:m},C,{children:a.jsx(U7,{component:null,exit:!0,children:s})}))});function Ln(e){return b1("MuiButtonBase",e)}const gn=w1("MuiButtonBase",["root","disabled","focusVisible"]),vn=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],xn=e=>{const{disabled:r,focusVisible:n,focusVisibleClassName:t,classes:o}=e,i=_1({root:["root",r&&"disabled",n&&"focusVisible"]},Ln,o);return n&&t&&(i.root+=` ${t}`),i},yn=Y("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${gn.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),c0=y.forwardRef(function(e,r){const n=S1({props:e,name:"MuiButtonBase"}),{action:t,centerRipple:o=!1,children:i,className:C,component:s="button",disabled:l=!1,disableRipple:d=!1,disableTouchRipple:c=!1,focusRipple:u=!1,LinkComponent:p="a",onBlur:h,onClick:m,onContextMenu:f,onDragLeave:v,onFocus:M,onFocusVisible:g,onKeyDown:L,onKeyUp:x,onMouseDown:w,onMouseLeave:k,onMouseUp:b,onTouchEnd:S,onTouchMove:D,onTouchStart:E,tabIndex:Z=0,TouchRippleProps:N,touchRippleRef:j,type:_}=n,R=U(n,vn),I=y.useRef(null),O=y.useRef(null),F=$1(O,j),{isFocusVisibleRef:H,onFocus:n1,onBlur:X,ref:g1}=U8(),[J,f1]=y.useState(!1);l&&J&&f1(!1),y.useImperativeHandle(t,()=>({focusVisible:()=>{f1(!0),I.current.focus()}}),[]);const[m1,Q1]=y.useState(!1);y.useEffect(()=>{Q1(!0)},[]);const W1=m1&&!d&&!l;y.useEffect(()=>{J&&u&&!d&&m1&&O.current.pulsate()},[d,u,J,m1]);function E1(q,h3,i2=c){return B3(j6=>(h3&&h3(j6),!i2&&O.current&&O.current[q](j6),!0))}const K1=E1("start",w),C1=E1("stop",f),M1=E1("stop",v),e1=E1("stop",b),s1=E1("stop",q=>{J&&q.preventDefault(),k&&k(q)}),v1=E1("start",E),_3=E1("stop",S),t3=E1("stop",D),n3=E1("stop",q=>{X(q),H.current===!1&&f1(!1),h&&h(q)},!1),s3=B3(q=>{I.current||(I.current=q.currentTarget),n1(q),H.current===!0&&(f1(!0),g&&g(q)),M&&M(q)}),r3=()=>{const q=I.current;return s&&s!=="button"&&!(q.tagName==="A"&&q.href)},k1=y.useRef(!1),P3=B3(q=>{u&&!k1.current&&J&&O.current&&q.key===" "&&(k1.current=!0,O.current.stop(q,()=>{O.current.start(q)})),q.target===q.currentTarget&&r3()&&q.key===" "&&q.preventDefault(),L&&L(q),q.target===q.currentTarget&&r3()&&q.key==="Enter"&&!l&&(q.preventDefault(),m&&m(q))}),G1=B3(q=>{u&&q.key===" "&&O.current&&J&&!q.defaultPrevented&&(k1.current=!1,O.current.stop(q,()=>{O.current.pulsate(q)})),x&&x(q),m&&q.target===q.currentTarget&&r3()&&q.key===" "&&!q.defaultPrevented&&m(q)});let x1=s;x1==="button"&&(R.href||R.to)&&(x1=p);const p3={};x1==="button"?(p3.type=_===void 0?"button":_,p3.disabled=l):(!R.href&&!R.to&&(p3.role="button"),l&&(p3["aria-disabled"]=l));const a6=$1(r,g1,I),F3=P({},n,{centerRipple:o,component:s,disabled:l,disableRipple:d,disableTouchRipple:c,focusRipple:u,tabIndex:Z,focusVisible:J}),h1=xn(F3);return a.jsxs(yn,P({as:x1,className:B(h1.root,C),ownerState:F3,onBlur:n3,onClick:m,onContextMenu:C1,onFocus:s3,onKeyDown:P3,onKeyUp:G1,onMouseDown:K1,onMouseLeave:s1,onMouseUp:e1,onDragLeave:M1,onTouchEnd:_3,onTouchMove:t3,onTouchStart:v1,ref:a6,tabIndex:l?-1:Z,type:_},p3,R,{children:[i,W1?a.jsx(mn,P({ref:F,center:o},N)):null]}))});function bn(e){return b1("MuiButton",e)}const $2=w1("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),wn=y.createContext({}),Mn=y.createContext(void 0),kn=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],jn=e=>{const{color:r,disableElevation:n,fullWidth:t,size:o,variant:i,classes:C}=e,s={root:["root",i,`${i}${Q(r)}`,`size${Q(o)}`,`${i}Size${Q(o)}`,`color${Q(r)}`,n&&"disableElevation",t&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Q(o)}`],endIcon:["icon","endIcon",`iconSize${Q(o)}`]},l=_1(s,bn,C);return P({},C,l)},u0=e=>P({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Sn=Y(c0,{shouldForwardProp:e=>m3(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.root,r[n.variant],r[`${n.variant}${Q(n.color)}`],r[`size${Q(n.size)}`],r[`${n.variant}Size${Q(n.size)}`],n.color==="inherit"&&r.colorInherit,n.disableElevation&&r.disableElevation,n.fullWidth&&r.fullWidth]}})(({theme:e,ownerState:r})=>{var n,t;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return P({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":P({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:V3(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},r.variant==="text"&&r.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:V3(e.palette[r.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},r.variant==="outlined"&&r.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[r.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:V3(e.palette[r.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},r.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},r.variant==="contained"&&r.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[r.color].main}}),"&:active":P({},r.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${$2.focusVisible}`]:P({},r.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${$2.disabled}`]:P({color:(e.vars||e).palette.action.disabled},r.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},r.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},r.variant==="text"&&{padding:"6px 8px"},r.variant==="text"&&r.color!=="inherit"&&{color:(e.vars||e).palette[r.color].main},r.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},r.variant==="outlined"&&r.color!=="inherit"&&{color:(e.vars||e).palette[r.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[r.color].mainChannel} / 0.5)`:`1px solid ${V3(e.palette[r.color].main,.5)}`},r.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(t=e.palette).getContrastText)==null?void 0:n.call(t,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},r.variant==="contained"&&r.color!=="inherit"&&{color:(e.vars||e).palette[r.color].contrastText,backgroundColor:(e.vars||e).palette[r.color].main},r.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},r.size==="small"&&r.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},r.size==="large"&&r.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},r.size==="small"&&r.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},r.size==="large"&&r.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},r.size==="small"&&r.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},r.size==="large"&&r.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},r.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${$2.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${$2.disabled}`]:{boxShadow:"none"}}),_n=Y("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.startIcon,r[`iconSize${Q(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},u0(e))),Pn=Y("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.endIcon,r[`iconSize${Q(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},u0(e))),Dn=y.forwardRef(function(e,r){const n=y.useContext(wn),t=y.useContext(Mn),o=Ke(n,e),i=S1({props:o,name:"MuiButton"}),{children:C,color:s="primary",component:l="button",className:d,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:p=!1,endIcon:h,focusVisibleClassName:m,fullWidth:f=!1,size:v="medium",startIcon:M,type:g,variant:L="text"}=i,x=U(i,kn),w=P({},i,{color:s,component:l,disabled:c,disableElevation:u,disableFocusRipple:p,fullWidth:f,size:v,type:g,variant:L}),k=jn(w),b=M&&a.jsx(_n,{className:k.startIcon,ownerState:w,children:M}),S=h&&a.jsx(Pn,{className:k.endIcon,ownerState:w,children:h}),D=t||"";return a.jsxs(Sn,P({ownerState:w,className:B(n.className,k.root,d,D),component:l,disabled:c,focusRipple:!p,focusVisibleClassName:B(k.focusVisible,m),ref:r,type:g},x,{classes:k,children:[b,C,S]}))});function Y3(e){return a.jsx(Dn,{...e})}const Zn=D3(({children:e,type:r="button",variant:n="text",color:t="secondary",...o},i)=>a.jsx(Y3,{ref:i,type:r,variant:n,color:t,...o,children:a.jsx(T1,{variant:"button",component:"span",children:e})})),En=({children:e,type:r="button",variant:n="text",color:t="secondary",...o},i)=>a.jsx(Y3,{ref:i,type:r,variant:n,color:t,...o,children:e}),Tn=D3(En),On=({targetId:e,filename:r="file",sx:n,...t})=>{const[o,i]=T.useState(!1),C=l3(()=>{i(!0),requestAnimationFrame(()=>{setTimeout(()=>{try{import("react-to-pdf").then(async s=>{const l=s.default;await l(()=>typeof e=="string"?document.getElementById(e):e,{filename:`${r}.pdf`,page:{margin:10}})}).finally(()=>{i(!1),console.log("updated pdf")})}catch{i(!1)}},600)})},[r,e]);return a.jsx("span",{children:a.jsx(z3,{onClick:C,disabled:o,sx:{m:"0 !important",...n},...t,children:o?a.jsx(v8,{size:24}):t.children?t.children:a.jsx(De,{})})})};function Rn({children:e,...r}){var n,t;const{newVariant:o,...i}=r,C=f3(),s=((t=(n=C?.components)==null?void 0:n.MuiButton)==null?void 0:t.defaultProps)??{},l=t1(()=>{let d={fontSize:"13px",...s.sx,alignSelf:"center",display:"flex",width:"auto",minHeight:30,fontFamily:['"Lato"',"sans-serif"].join(","),lineHeight:1.75,textAlign:"center",textTransform:"uppercase !important",borderRadius:1,py:1,px:3,...r.sx};return r.disabled||(d={...d,backgroundColor:"#0dbc3d!important",color:"#fff!important",borderColor:"#0dbc3d!important"},r.color==="error"&&(d={...d,borderColor:`${C.palette.error.main}!important`,backgroundColor:`${C.palette.error.main}!important`})),o==="gray"&&(d={...d,backgroundColor:"#E0E0E0!important",color:"black !important",borderColor:"transparent"}),r.variant==="text"&&(d={...d,backgroundColor:"transparent",color:`${C.palette.text.disabled} !important`,borderColor:"transparent"}),r.variant==="outlined"&&(d={...d,backgroundColor:"transparent",color:"#0dbc3d!important",borderColor:"#0dbc3d!important"}),r.size==="small"&&(d={...d,minHeight:20,py:1,px:2,fontSize:"16px"}),d},[s.sx,r.color,r.disabled,r.size,r.sx,r.variant,C.palette.error.main,C.palette.text.disabled]);return a.jsx(O7,{...s,...i,sx:{...s.sx,...r.sx,...l},children:e})}function Nn(e){return b1("MuiTypography",e)}w1("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const In=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Fn=e=>{const{align:r,gutterBottom:n,noWrap:t,paragraph:o,variant:i,classes:C}=e,s={root:["root",i,e.align!=="inherit"&&`align${Q(r)}`,n&&"gutterBottom",t&&"noWrap",o&&"paragraph"]};return _1(s,Nn,C)},An=Y("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.root,n.variant&&r[n.variant],n.align!=="inherit"&&r[`align${Q(n.align)}`],n.noWrap&&r.noWrap,n.gutterBottom&&r.gutterBottom,n.paragraph&&r.paragraph]}})(({theme:e,ownerState:r})=>P({margin:0},r.variant==="inherit"&&{font:"inherit"},r.variant!=="inherit"&&e.typography[r.variant],r.align!=="inherit"&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16})),p0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},zn={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Vn=e=>zn[e]||e,$n=y.forwardRef(function(e,r){const n=S1({props:e,name:"MuiTypography"}),t=Vn(n.color),o=Ge(P({},n,{color:t})),{align:i="inherit",className:C,component:s,gutterBottom:l=!1,noWrap:d=!1,paragraph:c=!1,variant:u="body1",variantMapping:p=p0}=o,h=U(o,In),m=P({},o,{align:i,color:t,className:C,component:s,gutterBottom:l,noWrap:d,paragraph:c,variant:u,variantMapping:p}),f=s||(c?"p":p[u]||p0[u])||"span",v=Fn(m);return a.jsx(An,P({as:f,ref:r,ownerState:m,className:B(v.root,C)},h))});function h0(e){return a.jsx($n,{...e})}const f0=P6(null);function I6(){const e=D6(f0);if(!e)throw new Error("useCredentialRequestsEditor must be used within a CredentialRequestsEditorProvider");return e}function Bn(e){const r=j8({defaultValues:{credentialRequests:e.credentialRequests}});return y1(()=>{const n=T2((t,{name:o,type:i})=>{if(t.credentialRequests){const C=t.credentialRequests.filter(s=>!!(s!=null&&s.type));e.onChange(We(C,["isNew","id"]))}},100);return r.watch(n).unsubscribe},[r.watch]),a.jsx(S8,{...r,children:a.jsx(f0.Provider,{value:{addButtonText:e.addButtonText,riskSignals:e.riskSignals,schemas:e.schemas,features:e.features,integrationType:e.integrationType},children:e.children})})}var q3=(e=>(e.YES="yes",e.NO="no",e.IF_AVAILABLE="if_available",e))(q3||{});const Wn=e=>Object.prototype.hasOwnProperty.call(e||{},"anyOf")||Object.prototype.hasOwnProperty.call(e||{},"allOf");function t4(e,r){const n=[];return e.$id&&typeof e.$id=="string"&&e.$id!==r&&n.push(e.$id),e.$ref&&typeof e.$ref=="string"?(n.push(e.$ref),n):(Array.isArray(e.anyOf)&&e.anyOf.forEach(t=>{t&&typeof t=="object"&&(t.$id&&typeof t.$id=="string"?n.push(t.$id):t.$ref&&typeof t.$ref=="string"?n.push(t.$ref):n.push(...t4(t,r)))}),Array.isArray(e.allOf)&&e.allOf.forEach(t=>{t&&typeof t=="object"&&(t.$ref&&typeof t.$ref=="string"?n.push(t.$ref):n.push(...t4(t,r)))}),O1.uniq(n))}function n4(e,r){const n=r[e];if(Wn(n)){const t=t4(n,e).map(o=>n4(o,r)).filter(o=>o!==null);return{type:e,mandatory:q3.NO,description:"",allowUserInput:!0,multi:!1,...t.length>0?{children:t}:{}}}return{type:e,mandatory:q3.NO,description:"",allowUserInput:!0,multi:e==="EmailCredential"}}const m0=P6(null),F6=()=>D6(m0);function Yn({children:e,...r}){return a.jsx(m0.Provider,{value:r,children:e})}function L0(e){return a.jsxs("span",{children:[e.children,a.jsx(z,{component:"span",color:"error.main",sx:{ml:.5},children:"*"})]})}const qn=/([A-Z][a-z0-9]+)/gm,g0=e=>e.split(qn).map(r=>r==="Id"?"ID":r==="Zip"?"ZIP":r==="Ssn"?"SSN":r).filter(r=>r!=="Credential").join(" ");var v0=(e=>(e.Hosted="hosted",e.SemiHosted="semi-hosted",e.NonHosted="non-hosted",e))(v0||{});function x0({children:e}){return a.jsx(pe,{title:e,arrow:!0,enterTouchDelay:0,children:a.jsx(z3,{size:"small",onClick:r=>{r.stopPropagation()},children:a.jsx(Ze,{})})})}function d2(e){const{children:r,title:n,description:t,tip:o,sx:i}=e;return a.jsxs(K,{sx:i,children:[a.jsxs(K,{direction:"row",alignItems:"center",spacing:.5,children:[a.jsx(T1,{variant:"body1",sx:{fontSize:"16px",fontWeight:"700"},"data-testid":"custom-demo-dialog-data-field-title",children:n}),a.jsx(x0,{children:o})]}),t&&a.jsx(T1,{variant:"body2",color:"text.secondary",sx:{textAlign:"left !important",fontSize:"12px",fontWeight:"400"},"data-testid":"custom-demo-dialog-data-field-description",children:t}),a.jsx(K,{sx:{mt:3},children:r})]})}function Hn(){const e=F6(),r=s6({name:`${e?.path}`}),{schemas:n}=I6(),t=t1(()=>n?Object.values(n).map(i=>({label:g0(i.$id),id:i.$id})).filter(i=>["AddressCredential","Line1Credential","Line2Credential","CityCredential","StateCredential","CountryCredential","ZipCodeCredential","FullNameCredential","FirstNameCredential","MiddleNameCredential","LastNameCredential","PhoneCredential","BirthDateCredential","SsnCredential","SexCredential"].includes(i.id)).sort((i,C)=>i.label<C.label?-1:1):[],[n]),o=t1(()=>{var i,C;const s=(C=(i=r.field)==null?void 0:i.value)==null?void 0:C.type;return t?.find(l=>l.id===s)},[r,t]);return a.jsx(d2,{title:"Field Type",description:"What type of user data this field is for",tip:a.jsxs(a.Fragment,{children:[a.jsx("pre",{children:"POST /1-click"}),a.jsx("pre",{children:`{
74
+ `),o3.rippleVisible,cn,e4,({theme:e})=>e.transitions.easing.easeInOut,o3.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,o3.child,o3.childLeaving,un,e4,({theme:e})=>e.transitions.easing.easeInOut,o3.childPulsate,pn,({theme:e})=>e.transitions.easing.easeInOut),mn=y.forwardRef(function(e,r){const n=S1({props:e,name:"MuiTouchRipple"}),{center:t=!1,classes:o={},className:i}=n,C=U(n,ln),[s,l]=y.useState([]),d=y.useRef(0),c=y.useRef(null);y.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const u=y.useRef(!1),p=H8(),h=y.useRef(null),m=y.useRef(null),f=y.useCallback(L=>{const{pulsate:x,rippleX:w,rippleY:k,rippleSize:b,cb:S}=L;l(D=>[...D,a.jsx(fn,{classes:{ripple:B(o.ripple,o3.ripple),rippleVisible:B(o.rippleVisible,o3.rippleVisible),ripplePulsate:B(o.ripplePulsate,o3.ripplePulsate),child:B(o.child,o3.child),childLeaving:B(o.childLeaving,o3.childLeaving),childPulsate:B(o.childPulsate,o3.childPulsate)},timeout:e4,pulsate:x,rippleX:w,rippleY:k,rippleSize:b},d.current)]),d.current+=1,c.current=S},[o]),v=y.useCallback((L={},x={},w=()=>{})=>{const{pulsate:k=!1,center:b=t||x.pulsate,fakeElement:S=!1}=x;if(L?.type==="mousedown"&&u.current){u.current=!1;return}L?.type==="touchstart"&&(u.current=!0);const D=S?null:m.current,E=D?D.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Z,N,j;if(b||L===void 0||L.clientX===0&&L.clientY===0||!L.clientX&&!L.touches)Z=Math.round(E.width/2),N=Math.round(E.height/2);else{const{clientX:_,clientY:R}=L.touches&&L.touches.length>0?L.touches[0]:L;Z=Math.round(_-E.left),N=Math.round(R-E.top)}if(b)j=Math.sqrt((2*E.width**2+E.height**2)/3),j%2===0&&(j+=1);else{const _=Math.max(Math.abs((D?D.clientWidth:0)-Z),Z)*2+2,R=Math.max(Math.abs((D?D.clientHeight:0)-N),N)*2+2;j=Math.sqrt(_**2+R**2)}L!=null&&L.touches?h.current===null&&(h.current=()=>{f({pulsate:k,rippleX:Z,rippleY:N,rippleSize:j,cb:w})},p.start(dn,()=>{h.current&&(h.current(),h.current=null)})):f({pulsate:k,rippleX:Z,rippleY:N,rippleSize:j,cb:w})},[t,f,p]),M=y.useCallback(()=>{v({},{pulsate:!0})},[v]),g=y.useCallback((L,x)=>{if(p.clear(),L?.type==="touchend"&&h.current){h.current(),h.current=null,p.start(0,()=>{g(L,x)});return}h.current=null,l(w=>w.length>0?w.slice(1):w),c.current=x},[p]);return y.useImperativeHandle(r,()=>({pulsate:M,start:v,stop:g}),[M,v,g]),a.jsx(hn,P({className:B(o3.root,o.root,i),ref:m},C,{children:a.jsx(U7,{component:null,exit:!0,children:s})}))});function Ln(e){return b1("MuiButtonBase",e)}const gn=w1("MuiButtonBase",["root","disabled","focusVisible"]),vn=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],xn=e=>{const{disabled:r,focusVisible:n,focusVisibleClassName:t,classes:o}=e,i=_1({root:["root",r&&"disabled",n&&"focusVisible"]},Ln,o);return n&&t&&(i.root+=` ${t}`),i},yn=Y("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${gn.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),c0=y.forwardRef(function(e,r){const n=S1({props:e,name:"MuiButtonBase"}),{action:t,centerRipple:o=!1,children:i,className:C,component:s="button",disabled:l=!1,disableRipple:d=!1,disableTouchRipple:c=!1,focusRipple:u=!1,LinkComponent:p="a",onBlur:h,onClick:m,onContextMenu:f,onDragLeave:v,onFocus:M,onFocusVisible:g,onKeyDown:L,onKeyUp:x,onMouseDown:w,onMouseLeave:k,onMouseUp:b,onTouchEnd:S,onTouchMove:D,onTouchStart:E,tabIndex:Z=0,TouchRippleProps:N,touchRippleRef:j,type:_}=n,R=U(n,vn),I=y.useRef(null),O=y.useRef(null),F=$1(O,j),{isFocusVisibleRef:H,onFocus:n1,onBlur:X,ref:g1}=U8(),[J,f1]=y.useState(!1);l&&J&&f1(!1),y.useImperativeHandle(t,()=>({focusVisible:()=>{f1(!0),I.current.focus()}}),[]);const[m1,Q1]=y.useState(!1);y.useEffect(()=>{Q1(!0)},[]);const W1=m1&&!d&&!l;y.useEffect(()=>{J&&u&&!d&&m1&&O.current.pulsate()},[d,u,J,m1]);function E1(q,h3,i2=c){return B3(j6=>(h3&&h3(j6),!i2&&O.current&&O.current[q](j6),!0))}const K1=E1("start",w),C1=E1("stop",f),M1=E1("stop",v),e1=E1("stop",b),s1=E1("stop",q=>{J&&q.preventDefault(),k&&k(q)}),v1=E1("start",E),_3=E1("stop",S),t3=E1("stop",D),n3=E1("stop",q=>{X(q),H.current===!1&&f1(!1),h&&h(q)},!1),s3=B3(q=>{I.current||(I.current=q.currentTarget),n1(q),H.current===!0&&(f1(!0),g&&g(q)),M&&M(q)}),r3=()=>{const q=I.current;return s&&s!=="button"&&!(q.tagName==="A"&&q.href)},k1=y.useRef(!1),P3=B3(q=>{u&&!k1.current&&J&&O.current&&q.key===" "&&(k1.current=!0,O.current.stop(q,()=>{O.current.start(q)})),q.target===q.currentTarget&&r3()&&q.key===" "&&q.preventDefault(),L&&L(q),q.target===q.currentTarget&&r3()&&q.key==="Enter"&&!l&&(q.preventDefault(),m&&m(q))}),G1=B3(q=>{u&&q.key===" "&&O.current&&J&&!q.defaultPrevented&&(k1.current=!1,O.current.stop(q,()=>{O.current.pulsate(q)})),x&&x(q),m&&q.target===q.currentTarget&&r3()&&q.key===" "&&!q.defaultPrevented&&m(q)});let x1=s;x1==="button"&&(R.href||R.to)&&(x1=p);const p3={};x1==="button"?(p3.type=_===void 0?"button":_,p3.disabled=l):(!R.href&&!R.to&&(p3.role="button"),l&&(p3["aria-disabled"]=l));const a6=$1(r,g1,I),F3=P({},n,{centerRipple:o,component:s,disabled:l,disableRipple:d,disableTouchRipple:c,focusRipple:u,tabIndex:Z,focusVisible:J}),h1=xn(F3);return a.jsxs(yn,P({as:x1,className:B(h1.root,C),ownerState:F3,onBlur:n3,onClick:m,onContextMenu:C1,onFocus:s3,onKeyDown:P3,onKeyUp:G1,onMouseDown:K1,onMouseLeave:s1,onMouseUp:e1,onDragLeave:M1,onTouchEnd:_3,onTouchMove:t3,onTouchStart:v1,ref:a6,tabIndex:l?-1:Z,type:_},p3,R,{children:[i,W1?a.jsx(mn,P({ref:F,center:o},N)):null]}))});function bn(e){return b1("MuiButton",e)}const $2=w1("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),wn=y.createContext({}),Mn=y.createContext(void 0),kn=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],jn=e=>{const{color:r,disableElevation:n,fullWidth:t,size:o,variant:i,classes:C}=e,s={root:["root",i,`${i}${Q(r)}`,`size${Q(o)}`,`${i}Size${Q(o)}`,`color${Q(r)}`,n&&"disableElevation",t&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Q(o)}`],endIcon:["icon","endIcon",`iconSize${Q(o)}`]},l=_1(s,bn,C);return P({},C,l)},u0=e=>P({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Sn=Y(c0,{shouldForwardProp:e=>m3(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.root,r[n.variant],r[`${n.variant}${Q(n.color)}`],r[`size${Q(n.size)}`],r[`${n.variant}Size${Q(n.size)}`],n.color==="inherit"&&r.colorInherit,n.disableElevation&&r.disableElevation,n.fullWidth&&r.fullWidth]}})(({theme:e,ownerState:r})=>{var n,t;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return P({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":P({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:V3(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},r.variant==="text"&&r.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:V3(e.palette[r.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},r.variant==="outlined"&&r.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[r.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:V3(e.palette[r.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},r.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},r.variant==="contained"&&r.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[r.color].main}}),"&:active":P({},r.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${$2.focusVisible}`]:P({},r.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${$2.disabled}`]:P({color:(e.vars||e).palette.action.disabled},r.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},r.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},r.variant==="text"&&{padding:"6px 8px"},r.variant==="text"&&r.color!=="inherit"&&{color:(e.vars||e).palette[r.color].main},r.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},r.variant==="outlined"&&r.color!=="inherit"&&{color:(e.vars||e).palette[r.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[r.color].mainChannel} / 0.5)`:`1px solid ${V3(e.palette[r.color].main,.5)}`},r.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(t=e.palette).getContrastText)==null?void 0:n.call(t,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},r.variant==="contained"&&r.color!=="inherit"&&{color:(e.vars||e).palette[r.color].contrastText,backgroundColor:(e.vars||e).palette[r.color].main},r.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},r.size==="small"&&r.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},r.size==="large"&&r.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},r.size==="small"&&r.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},r.size==="large"&&r.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},r.size==="small"&&r.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},r.size==="large"&&r.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},r.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${$2.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${$2.disabled}`]:{boxShadow:"none"}}),_n=Y("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.startIcon,r[`iconSize${Q(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},u0(e))),Pn=Y("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.endIcon,r[`iconSize${Q(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},u0(e))),Dn=y.forwardRef(function(e,r){const n=y.useContext(wn),t=y.useContext(Mn),o=Ke(n,e),i=S1({props:o,name:"MuiButton"}),{children:C,color:s="primary",component:l="button",className:d,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:p=!1,endIcon:h,focusVisibleClassName:m,fullWidth:f=!1,size:v="medium",startIcon:M,type:g,variant:L="text"}=i,x=U(i,kn),w=P({},i,{color:s,component:l,disabled:c,disableElevation:u,disableFocusRipple:p,fullWidth:f,size:v,type:g,variant:L}),k=jn(w),b=M&&a.jsx(_n,{className:k.startIcon,ownerState:w,children:M}),S=h&&a.jsx(Pn,{className:k.endIcon,ownerState:w,children:h}),D=t||"";return a.jsxs(Sn,P({ownerState:w,className:B(n.className,k.root,d,D),component:l,disabled:c,focusRipple:!p,focusVisibleClassName:B(k.focusVisible,m),ref:r,type:g},x,{classes:k,children:[b,C,S]}))});function Y3(e){return a.jsx(Dn,{...e})}const Zn=D3(({children:e,type:r="button",variant:n="text",color:t="secondary",...o},i)=>a.jsx(Y3,{ref:i,type:r,variant:n,color:t,...o,children:a.jsx(T1,{variant:"button",component:"span",children:e})})),En=({children:e,type:r="button",variant:n="text",color:t="secondary",...o},i)=>a.jsx(Y3,{ref:i,type:r,variant:n,color:t,...o,children:e}),Tn=D3(En),On=({targetId:e,filename:r="file",sx:n,...t})=>{const[o,i]=T.useState(!1),C=l3(()=>{i(!0),requestAnimationFrame(()=>{setTimeout(()=>{try{import("react-to-pdf").then(async s=>{const l=s.default;await l(()=>typeof e=="string"?document.getElementById(e):e,{filename:`${r}.pdf`,page:{margin:10}})}).finally(()=>{i(!1),console.log("updated pdf")})}catch{i(!1)}},600)})},[r,e]);return a.jsx("span",{children:a.jsx(z3,{onClick:C,disabled:o,sx:{m:"0 !important",...n},...t,children:o?a.jsx(v8,{size:24}):t.children?t.children:a.jsx(De,{})})})};function Rn({children:e,...r}){var n,t;const{newVariant:o,...i}=r,C=f3(),s=((t=(n=C?.components)==null?void 0:n.MuiButton)==null?void 0:t.defaultProps)??{},l=t1(()=>{let d={fontSize:"13px",...s.sx,alignSelf:"center",display:"flex",width:"auto",minHeight:30,fontFamily:['"Lato"',"sans-serif"].join(","),lineHeight:1.75,textAlign:"center",textTransform:"uppercase !important",borderRadius:1,py:1,px:3,...r.sx};return r.disabled||(d={...d,backgroundColor:"#0dbc3d!important",color:"#fff!important",borderColor:"#0dbc3d!important"},r.color==="error"&&(d={...d,borderColor:`${C.palette.error.main}!important`,backgroundColor:`${C.palette.error.main}!important`})),o==="gray"&&(d={...d,backgroundColor:"#E0E0E0!important",color:"black !important",borderColor:"transparent"}),r.variant==="text"&&(d={...d,backgroundColor:"transparent",color:`${C.palette.text.disabled} !important`,borderColor:"transparent"}),r.variant==="outlined"&&(d={...d,backgroundColor:"transparent",color:"#0dbc3d!important",borderColor:"#0dbc3d!important"}),r.size==="small"&&(d={...d,minHeight:20,py:1,px:2,fontSize:"16px"}),d},[s.sx,r.color,r.disabled,r.size,r.sx,r.variant,C.palette.error.main,C.palette.text.disabled]);return a.jsx(O7,{...s,...i,sx:{...s.sx,...r.sx,...l},children:e})}function Nn(e){return b1("MuiTypography",e)}w1("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const In=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Fn=e=>{const{align:r,gutterBottom:n,noWrap:t,paragraph:o,variant:i,classes:C}=e,s={root:["root",i,e.align!=="inherit"&&`align${Q(r)}`,n&&"gutterBottom",t&&"noWrap",o&&"paragraph"]};return _1(s,Nn,C)},An=Y("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.root,n.variant&&r[n.variant],n.align!=="inherit"&&r[`align${Q(n.align)}`],n.noWrap&&r.noWrap,n.gutterBottom&&r.gutterBottom,n.paragraph&&r.paragraph]}})(({theme:e,ownerState:r})=>P({margin:0},r.variant==="inherit"&&{font:"inherit"},r.variant!=="inherit"&&e.typography[r.variant],r.align!=="inherit"&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16})),p0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},zn={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Vn=e=>zn[e]||e,$n=y.forwardRef(function(e,r){const n=S1({props:e,name:"MuiTypography"}),t=Vn(n.color),o=Ge(P({},n,{color:t})),{align:i="inherit",className:C,component:s,gutterBottom:l=!1,noWrap:d=!1,paragraph:c=!1,variant:u="body1",variantMapping:p=p0}=o,h=U(o,In),m=P({},o,{align:i,color:t,className:C,component:s,gutterBottom:l,noWrap:d,paragraph:c,variant:u,variantMapping:p}),f=s||(c?"p":p[u]||p0[u])||"span",v=Fn(m);return a.jsx(An,P({as:f,ref:r,ownerState:m,className:B(v.root,C)},h))});function h0(e){return a.jsx($n,{...e})}const f0=P6(null);function I6(){const e=D6(f0);if(!e)throw new Error("useCredentialRequestsEditor must be used within a CredentialRequestsEditorProvider");return e}function Bn(e){const r=j8({defaultValues:{credentialRequests:e.credentialRequests}});return y1(()=>{const n=T2((t,{name:o,type:i})=>{if(t.credentialRequests){const C=t.credentialRequests.filter(s=>!!(s!=null&&s.type));e.onChange(We(C,["isNew","id"]))}},100);return r.watch(n).unsubscribe},[r.watch]),a.jsx(S8,{...r,children:a.jsx(f0.Provider,{value:{addButtonText:e.addButtonText,riskSignals:e.riskSignals,schemas:e.schemas,features:e.features,integrationType:e.integrationType},children:e.children})})}var q3=(e=>(e.YES="yes",e.NO="no",e.IF_AVAILABLE="if_available",e))(q3||{});const Wn=e=>Object.prototype.hasOwnProperty.call(e||{},"anyOf")||Object.prototype.hasOwnProperty.call(e||{},"allOf");function t4(e,r){const n=[];return e.$id&&typeof e.$id=="string"&&e.$id!==r&&n.push(e.$id),e.$ref&&typeof e.$ref=="string"?(n.push(e.$ref),n):(Array.isArray(e.anyOf)&&e.anyOf.forEach(t=>{t&&typeof t=="object"&&(t.$id&&typeof t.$id=="string"?n.push(t.$id):t.$ref&&typeof t.$ref=="string"?n.push(t.$ref):n.push(...t4(t,r)))}),Array.isArray(e.allOf)&&e.allOf.forEach(t=>{t&&typeof t=="object"&&(t.$ref&&typeof t.$ref=="string"?n.push(t.$ref):n.push(...t4(t,r)))}),O1.uniq(n))}function n4(e,r){const n=r[e];if(Wn(n)){const t=t4(n,e).map(o=>n4(o,r)).filter(o=>o!==null);return{type:e,mandatory:q3.NO,description:"",allowUserInput:!0,multi:!1,...t.length>0?{children:t}:{}}}return{type:e,mandatory:q3.NO,description:"",allowUserInput:!0,multi:e==="EmailCredential"}}const m0=P6(null),F6=()=>D6(m0);function Yn({children:e,...r}){return a.jsx(m0.Provider,{value:r,children:e})}function L0(e){return a.jsxs("span",{children:[e.children,a.jsx(z,{component:"span",color:"error.main",sx:{ml:.5},children:"*"})]})}const qn=/([A-Z][a-z0-9]+)/gm,g0=e=>e.split(qn).map(r=>r==="Id"?"ID":r==="Zip"?"ZIP":r==="Ssn"?"SSN":r).filter(r=>r!=="Credential").join(" ");var v0=(e=>(e.Hosted="hosted",e.SemiHosted="semi-hosted",e.NonHosted="non-hosted",e))(v0||{});function x0({children:e}){return a.jsx(pe,{title:e,arrow:!0,enterTouchDelay:0,children:a.jsx(z3,{size:"small",onClick:r=>{r.stopPropagation()},children:a.jsx(Ze,{})})})}function d2(e){const{children:r,title:n,description:t,tip:o,sx:i}=e;return a.jsxs(K,{sx:i,children:[a.jsxs(K,{direction:"row",alignItems:"center",spacing:.5,children:[a.jsx(T1,{variant:"body1",sx:{fontSize:"16px",fontWeight:"700"},"data-testid":"custom-demo-dialog-data-field-title",children:n}),a.jsx(x0,{children:o})]}),t&&a.jsx(T1,{variant:"body2",color:"text.secondary",sx:{textAlign:"left !important",fontSize:"12px",fontWeight:"400"},"data-testid":"custom-demo-dialog-data-field-description",children:t}),a.jsx(K,{sx:{mt:3},children:r})]})}function Hn(){const e=F6(),r=s6({name:`${e?.path}`}),{schemas:n}=I6(),t=t1(()=>{if(!n)return[];const i={PhoneCredential:0,FullNameCredential:1,AddressCredential:2,BirthDateCredential:3,SsnCredential:4,SexCredential:5};return Object.values(n).map(C=>({label:g0(C.$id),id:C.$id})).filter(C=>Object.keys(i).includes(C.id)).sort((C,s)=>i[C.id]-i[s.id])},[n]),o=t1(()=>{var i,C;const s=(C=(i=r.field)==null?void 0:i.value)==null?void 0:C.type;return t?.find(l=>l.id===s)},[r,t]);return a.jsx(d2,{title:"Field Type",description:"What type of user data this field is for",tip:a.jsxs(a.Fragment,{children:[a.jsx("pre",{children:"POST /1-click"}),a.jsx("pre",{children:`{
75
75
  type: string
76
76
  }`})]}),children:a.jsx(C6,{value:o,onChange:(i,C)=>{if(!C)return;const s=n4(C.id,n),l={type:s.type,issuers:s.issuers,required:s.required,mandatory:s.mandatory,description:s.description,allowUserInput:s.allowUserInput,multi:s.multi,children:s.children};e?.fieldArray.update(e?.index,l)},options:t,disablePortal:!0,renderInput:i=>a.jsx(Y1,{...i,label:"Type",color:"success",size:"small",className:"original",fullWidth:!0,inputProps:{...i.inputProps,"data-testid":"custom-demo-dialog-data-field-type-input"},placeholder:"Choose a type..."}),disabled:(e?.level??0)>0||n===null})},JSON.stringify(o))}function Un(){var e,r;const{features:n}=I6(),t=((e=n?.description)==null?void 0:e.disabled)===!0,o=F6(),i=s6({name:`${o?.path}.description`}),[C,s]=r1(i.field.value??""),l=j1(T2(c=>{i.field.onChange({target:{value:c}})},500)).current,d=c=>{t||(s(c.target.value),l(c.target.value))};return a.jsx(d2,{title:"Field Description",description:"What text appears under the field",tip:a.jsxs(a.Fragment,{children:[a.jsx("pre",{children:"POST /1-click"}),a.jsx("pre",{children:`{
77
77
  description?: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verifiedinc-public/shared-ui-elements",
3
- "version": "6.8.0",
3
+ "version": "6.8.1",
4
4
  "description": "A set of UI components, utilities that is shareable with the core apps.",
5
5
  "private": false,
6
6
  "keywords": [],