@verifiedinc-public/shared-ui-elements 7.6.0 → 7.6.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,am as s,a0 as e,c as t,aa as r,a6 as i,B as n,ac as o,ab as d,ai as l,ah as m,an as p,C,af as c,D as u,i as h,$ as g,h as S,a8 as P,E as T,N as y,R as B,Q as I,U as f,Z as F,F as k,al as L,I as O,b as D,L as b,M as R,X as v,g as N,k as M,a3 as A,O as E,ag as w,e as x,a4 as V,f as W,P as q,a5 as j,_ as H,ak as Q,a7 as z,S as U,d as G,ao as J,aq as K,ap as X,a9 as Y,T as Z,j as _,a as $,a1 as aa,a2 as sa,aj as ea,H as ta,v as ra,t as ia,p as na,u as oa,l as da,r as la,G as ma,z as pa,q as Ca,J as ca,s as ua,m as ha,K as ga,n as Sa,o as Pa,w as Ta,V as ya,ad as Ba,W as Ia,x as fa,y as Fa,ae as ka,Y as La}from"../shared/magic-legal-language-
|
|
1
|
+
"use strict";import{A as a,am as s,a0 as e,c as t,aa as r,a6 as i,B as n,ac as o,ab as d,ai as l,ah as m,an as p,C,af as c,D as u,i as h,$ as g,h as S,a8 as P,E as T,N as y,R as B,Q as I,U as f,Z as F,F as k,al as L,I as O,b as D,L as b,M as R,X as v,g as N,k as M,a3 as A,O as E,ag as w,e as x,a4 as V,f as W,P as q,a5 as j,_ as H,ak as Q,a7 as z,S as U,d as G,ao as J,aq as K,ap as X,a9 as Y,T as Z,j as _,a as $,a1 as aa,a2 as sa,aj as ea,H as ta,v as ra,t as ia,p as na,u as oa,l as da,r as la,G as ma,z as pa,q as Ca,J as ca,s as ua,m as ha,K as ga,n as Sa,o as Pa,w as Ta,V as ya,ad as Ba,W as Ia,x as fa,y as Fa,ae as ka,Y as La}from"../shared/magic-legal-language-CJ-AgmK9.mjs";import{a as Oa,b as Da,P as ba,S as Ra}from"../shared/PageSectionHeader-lc9WunC-.mjs";import{B as va,C as Na,i as Ma,E as Aa,L as Ea,j as wa,M as xa,g as Va,O as Wa,P as qa,R as ja,e as Ha,d as Qa,S as za,a as Ua,b as Ga,k as Ja,c as Ka,f as Xa,n as Ya,T as Za,W as _a,h as $a,l as as,m as ss,u as es}from"../shared/TTSBigNumbers-CWUApa7c.mjs";import{SnackbarProvider as ts}from"notistack";export{a as AcceptTermsNotice,s as AdaptativeBox,e as AddressInput,t as Alert,r as Backdrop,i as Banner,n as BasePhoneInput,va as BigNumber,o as BrandFilterInput,d as Button,l as CalendlyDialog,m as CalendlyDialogComponent,p as ContentWithLoader,C as CredentialRequestsEditor,Na as CustomAlertComponent,c as CustomDialog,u as DateInput,h as DateRangeInput,g as DefaultInput,S as EmailInput,Ma as EmptyChartSection,Aa as ErrorCodesChart,P as ExactBirthdayBanner,T as ExportToPdfButton,y as Form,B as FormBuilder,I as FormField,f as FormFieldBuilder,F as FormProvider,k as FullWidthAlert,L as IconPlayer,O as Image,D as LegalLink,b as LinkButton,Ea as LoadingChartSection,R as MandatoryEnum,wa as MetricLastUpdated,xa as MonthlySignupsOverviewTable,v as NewOneClickForm,N as OTPInput,M as OneClickForm,Va as OneClickOverTimeChart,Wa as OneClickPercentageChart,A as OneClickPoweredByVerified,E as OriginalButton,Oa as PageHeader,Da as PageSectionHeader,ba as Paragraph,w as PersistentDialog,x as PhoneInput,qa as PieChart,V as PoweredByVerified,W as PrettyPhoneInput,q as PrivacyPolicyNotice,j as QRCodeDisplay,H as RadioOption,ja as ReasonCodesChart,Q as RequiredLabel,z as ResendPhoneBanner,Ha as RiskScoreBarChart,Qa as RiskScorePieChart,U as SSNInput,Ra as SectionHeader,G as SelectInput,za as SeriesChart,Ua as SeriesChartLegend,Ga as SeriesPercentageChart,Ja as SignupBigNumbers,Ka as SimpleBarChart,Xa as SimpleLegend,ts as SnackbarProvider,Ya as TTSBigNumbers,J as TTSMagicButton,K as TTSMagicLegalLanguage,X as TTSMagicQRCode,Za as TTSOverTimeChart,Y as TestPhoneNumbersBanner,Z as TextButton,_ as TimezoneInput,$ as Typography,aa as VerifiedImage,sa as VerifiedIncLogo,_a as When,ea as WhenStyled,ta as extractChildrenFromCredentialFieldSet,ra as extractTypesFromSchema,ia as filterRepeatedCredentials,na as findCorrectSchemaProperty,oa as findCredentialsByType,da as getCredentialTypeDisplayInfo,la as getCredentialValues,ma as getLastPathName,pa as getParentPath,Ca as getReferencedSchemaNames,ca as hasMandatoryFieldEmpty,ua as isNewCredentialAgainstInstance,ha as isRequiredCredentialDisplayInfo,ga as isSomeFieldInputAllowed,Sa as isValidInputCredential,Pa as makeCredentialDisplayInfoList,$a as mapMonthlySignupsOverviewTableData,as as mapTTSTimeSeriesData,ss as mapTimeSeriesData,Ta as sortCredentialsBySchema,ya as toCreatePatchCredentials,Ba as toOption,Ia as toShareCredentials,fa as transformToFormObject,Fa as transformToFormSchema,ka as useBrandFilterInput,La as useForm,es as useSnackbar};
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{A as a,am as s,a0 as e,c as r,aa as t,a6 as o,B as i,ac as n,ab as m,ai as d,ah as l,an as u,C as p,af as c,D as C,i as h,$ as g,h as S,a8 as T,E as f,N as y,R as P,Q as k,U as F,Z as B,F as D,al as b,I,b as R,L as O,M as L,X as M,g as N,k as v,a3 as w,O as A,ag as U,e as E,a4 as x,f as G,P as Y,a5 as W,_ as V,ak as H,a7 as Q,S as j,d as q,ao as z,aq as _,ap as K,a9 as J,T as X,j as Z,a as $,a1 as aa,a2 as sa,aj as ea,H as ra,v as ta,t as oa,p as ia,u as na,l as ma,r as da,G as la,z as ua,q as pa,J as ca,s as Ca,m as ha,K as ga,n as Sa,o as Ta,w as fa,V as ya,ad as Pa,W as ka,x as Fa,y as Ba,ae as Da,Y as ba}from"./shared/magic-legal-language-
|
|
1
|
+
"use strict";import{A as a,am as s,a0 as e,c as r,aa as t,a6 as o,B as i,ac as n,ab as m,ai as d,ah as l,an as u,C as p,af as c,D as C,i as h,$ as g,h as S,a8 as T,E as f,N as y,R as P,Q as k,U as F,Z as B,F as D,al as b,I,b as R,L as O,M as L,X as M,g as N,k as v,a3 as w,O as A,ag as U,e as E,a4 as x,f as G,P as Y,a5 as W,_ as V,ak as H,a7 as Q,S as j,d as q,ao as z,aq as _,ap as K,a9 as J,T as X,j as Z,a as $,a1 as aa,a2 as sa,aj as ea,H as ra,v as ta,t as oa,p as ia,u as na,l as ma,r as da,G as la,z as ua,q as pa,J as ca,s as Ca,m as ha,K as ga,n as Sa,o as Ta,w as fa,V as ya,ad as Pa,W as ka,x as Fa,y as Ba,ae as Da,Y as ba}from"./shared/magic-legal-language-CJ-AgmK9.mjs";import{a as Ia,b as Ra,P as Oa,S as La}from"./shared/PageSectionHeader-lc9WunC-.mjs";import{B as Ma,C as Na,i as va,E as wa,L as Aa,j as Ua,M as Ea,g as xa,O as Ga,P as Ya,R as Wa,e as Va,d as Ha,S as Qa,a as ja,b as qa,k as za,c as _a,f as Ka,n as Ja,T as Xa,W as Za,h as $a,l as as,m as ss,u as es}from"./shared/TTSBigNumbers-CWUApa7c.mjs";import{b as rs,k as ts,a as os,i as is,u as ns,j as ms,d as ds,c as ls,m as us,l as ps,e as cs,f as Cs,g as hs,h as gs}from"./shared/magic-link-Dr2o0qhW.mjs";import{u as Ss,a as Ts}from"./shared/usePrevious-Dppy11px.mjs";import{b as fs,u as ys,c as Ps,a as ks,d as Fs,e as Bs,f as Ds}from"./shared/magic-qr-code-DEnCvbjS.mjs";import{u as bs}from"./shared/useCounter-BV32zXDQ.mjs";import{u as Is}from"./shared/useResizeObserver-D7K4jTvT.mjs";import{b as Rs,a as Os,x as Ls,m as Ms,e as Ns,d as vs,q as ws,v as As,h as Us,j as Es,g as xs,p as Gs,u as Ys,n as Ws,c as Vs,l as Hs,o as Qs,s as js,f as qs,i as zs,r as _s,t as Ks,k as Js,w as Xs,y as Zs}from"./shared/colors-CSvtCJK4.mjs";import{s as $s,t as ae}from"./shared/shadows-levwxV7v.mjs";import{wrapPromise as se}from"./utils/wrapPromise/index.mjs";import{f as ee,b as re,a as te,c as oe,s as ie,t as ne,u as me}from"./shared/uuidColor-CbuBMrIl.mjs";import{c as de,g as le,a as ue,p as pe,s as ce,v as Ce}from"./shared/phone-cSkbYk4g.mjs";import{masks as he}from"./utils/masks/index.mjs";import{o as ge,s as Se,a as Te}from"./shared/ssn-I4gN8M-_.mjs";import{toCapitalize as fe,toSentenceCase as ye}from"./utils/string/index.mjs";import{k as Pe}from"./shared/formatKebabToPretty-Du43TgPC.mjs";import{g as ke}from"./shared/generateKeyFromString-D1AuwK4y.mjs";import{alpha as Fe,contrastColor as Be,darken as De,getThemeFromPrimaryColor as be,lighten as Ie}from"./utils/color/index.mjs";import{addressFormatter as Re,fromUSAddress as Oe,parseCountryCode as Le,toUSaddress as Me,toUSaddressPretty as Ne}from"./utils/address/index.mjs";import{D as ve,a as we,m as Ae}from"./shared/makeGoogleFont-pok2oDWs.mjs";import{M as Ue,S as Ee,U as xe,g as Ge,p as Ye}from"./shared/date.schema-CmPHY0OU.mjs";import{d as We,e as Ve,f as He,g as Qe,s as je}from"./shared/unix.schema-D7g4VIKT.mjs";import{SnackbarProvider as qe}from"notistack";export{a as AcceptTermsNotice,s as AdaptativeBox,e as AddressInput,r as Alert,t as Backdrop,o as Banner,i as BasePhoneInput,Ma as BigNumber,n as BrandFilterInput,m as Button,d as CalendlyDialog,l as CalendlyDialogComponent,u as ContentWithLoader,p as CredentialRequestsEditor,Na as CustomAlertComponent,c as CustomDialog,ve as DEFAULT_FONT_FAMILY,we as DEFAULT_FONT_WEIGHTS,C as DateInput,h as DateRangeInput,g as DefaultInput,S as EmailInput,va as EmptyChartSection,wa as ErrorCodesChart,T as ExactBirthdayBanner,f as ExportToPdfButton,y as Form,P as FormBuilder,k as FormField,F as FormFieldBuilder,B as FormProvider,D as FullWidthAlert,b as IconPlayer,I as Image,R as LegalLink,O as LinkButton,Aa as LoadingChartSection,L as MandatoryEnum,Ue as MaskedAndUnmaskedSSNSchema,Ua as MetricLastUpdated,Ea as MonthlySignupsOverviewTable,M as NewOneClickForm,N as OTPInput,v as OneClickForm,xa as OneClickOverTimeChart,Ga as OneClickPercentageChart,w as OneClickPoweredByVerified,A as OriginalButton,Ia as PageHeader,Ra as PageSectionHeader,Oa as Paragraph,U as PersistentDialog,E as PhoneInput,Ya as PieChart,x as PoweredByVerified,G as PrettyPhoneInput,Y as PrivacyPolicyNotice,W as QRCodeDisplay,V as RadioOption,Wa as ReasonCodesChart,H as RequiredLabel,Q as ResendPhoneBanner,Va as RiskScoreBarChart,Ha as RiskScorePieChart,j as SSNInput,Ee as SSNSchema,La as SectionHeader,q as SelectInput,Qa as SeriesChart,ja as SeriesChartLegend,qa as SeriesPercentageChart,za as SignupBigNumbers,_a as SimpleBarChart,Ka as SimpleLegend,qe as SnackbarProvider,Ja as TTSBigNumbers,z as TTSMagicButton,_ as TTSMagicLegalLanguage,K as TTSMagicQRCode,Xa as TTSOverTimeChart,J as TestPhoneNumbersBanner,X as TextButton,Z as TimezoneInput,$ as Typography,xe as USDateSchema,aa as VerifiedImage,sa as VerifiedIncLogo,Za as When,ea as WhenStyled,Re as addressFormatter,Fe as alpha,Rs as black,Os as blue,Ls as colors,Be as contrastColor,de as countries,Ms as dangerContrast,Ns as darkBlue,vs as darkGreen,ws as darkGrey,As as darkGreyContrast,Us as darkRed,Es as darkYellow,De as darken,We as descriptionSchema,Ve as emailSchema,ra as extractChildrenFromCredentialFieldSet,ta as extractTypesFromSchema,He as fieldSchema,oa as filterRepeatedCredentials,ia as findCorrectSchemaProperty,na as findCredentialsByType,ee as formatDateMMDDYYYY,re as formatDateMMYY,te as formatDateToTimestamp,oe as formatExtendedDate,Oe as fromUSAddress,ke as generateKeyFromString,ma as getCredentialTypeDisplayInfo,da as getCredentialValues,Ge as getDateSchemaWithPastValidation,la as getLastPathName,ua as getParentPath,le as getPhoneData,ue as getPhoneDataByFieldName,pa as getReferencedSchemaNames,be as getThemeFromPrimaryColor,Qe as getUnixSchema,xs as green,Gs as grey,Ys as greyContrast,ca as hasMandatoryFieldEmpty,Ws as infoContrast,Ca as isNewCredentialAgainstInstance,ha as isRequiredCredentialDisplayInfo,ga as isSomeFieldInputAllowed,Sa as isValidInputCredential,Pe as kebabCaseToPretty,Vs as lightBlue,Hs as lightGreen,Qs as lightGrey,js as lightGreyContrast,qs as lightRed,zs as lightYellow,Ie as lighten,Ta as makeCredentialDisplayInfoList,Ae as makeGoogleFontUrl,$a as mapMonthlySignupsOverviewTableData,as as mapTTSTimeSeriesData,ss as mapTimeSeriesData,he as masks,ge as omitProperties,Le as parseCountryCode,pe as parseToPhoneNational,Ye as phoneSchema,_s as red,$s as shadows,ce as sortByCountryName,fa as sortCredentialsBySchema,Se as ssnFormatter,Te as ssnRegex,je as stateSchema,ie as stringToHashedColor,Ks as textDisabled,ae as theme,fe as toCapitalize,ya as toCreatePatchCredentials,Pa as toOption,ye as toSentenceCase,ka as toShareCredentials,Me as toUSaddress,Ne as toUSaddressPretty,ne as toUTCMilliseconds,Fa as transformToFormObject,Ba as transformToFormSchema,Da as useBrandFilterInput,rs as useCallbackRef,Ss as useCopyToClipboard,bs as useCounter,ts as useDebounceCallback,fs as useDebounceValue,os as useDisclosure,ba as useForm,ys as useGoogleFont,is as useIntersectionObserver,ns as useLocalStorage,ms as useNavigatorOnline,Ps as useOnClickOutside,Ts as usePrevious,ks as useQRCode,Is as useResizeObserver,ds as useScript,ls as useSearchParams,es as useSnackbar,Fs as useStyledQRCode,us as useTTSMagicLink,Bs as useTTSMagicQRCode,Ds as useTTSMagicQRCodeOptions,ps as useTTSMagicText,cs as useThrottle,Cs as useToggle,hs as useWindowScroll,gs as useWindowSize,me as uuidToHashedColor,Ce as validatePhone,Js as warningContrast,Xs as white,se as wrapPromise,Zs as yellow};
|
|
@@ -152,4 +152,4 @@
|
|
|
152
152
|
.dialog-content-persistent{
|
|
153
153
|
overflow-y: auto;
|
|
154
154
|
}
|
|
155
|
-
`,s=C=>{o.current&&!o.current.contains(C.target)&&n(!1)};return a.jsxs(ln,{children:[e&&a.jsx("style",{children:i}),a.jsx("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,width:"100%",height:"100%",backgroundColor:"rgba(0,0,0,0.5)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",opacity:e?1:0,pointerEvents:e?"auto":"none",transition:"opacity 0.3s ease",zIndex:1e3},onClick:s,onKeyDown:C=>{console.log(C),C.key==="Escape"&&n(!1)},children:a.jsxs("div",{style:{position:"relative",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:[t&&a.jsx(R3,{"aria-label":"close",onClick:()=>n(!1),sx:{position:"absolute",right:16,top:16,color:"white",backgroundColor:"rgba(0, 0, 0, 0.2)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.4)"},zIndex:1},children:a.jsx(At,{})}),a.jsx("div",{className:"dialog-content-persistent",style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx("div",{ref:o,children:r})})]})})]})},B8=h3(({calendlyUrl:e},n)=>{const[r,t]=K(!1);return U2(n,()=>({show:()=>{t(!0)},hide:()=>{t(!1)},toggle:()=>{t(!r)},isOpen:r})),a.jsx(zt,{isOpen:r,setIsOpen:t,children:a.jsx("iframe",{src:e,style:{height:"800px",width:"500px",maxWidth:"90vw",maxHeight:"85vh",border:"none",borderRadius:"5px"}})})});B8.displayName="CalendlyDialog";const Om=H3(B8),Rm=({isVisible:e,children:n,sx:r})=>{const t={visibility:e?"visible":"hidden",position:e?"static":"absolute",pointerEvents:e?"auto":"none",top:e?"auto":0,left:e?"auto":0,height:e?"auto":0,width:e?"auto":0,overflow:e?"visible":"hidden"};return a.jsx(A,{sx:{...t,...r},children:n})},Nm=({animationPublicPath:e,speed:n=.5,autoPlay:r=!0,loop:t,color:o="inherit",paintFill:i=!0,paintStroke:s=!0,rotate:C,additionalSx:l,style:c,buttonRef:d,...u})=>{const p=s1(null),f=s1(null),m=()=>{var h,g;((h=f.current)==null?void 0:h.currentState)!==ir.Playing&&((g=f.current)==null||g.goToAndPlay(0))};return i1(()=>{const h=p.current;if(!h)return;const g=d?.current??h.closest("button")??h;return g.addEventListener("mouseenter",m),()=>{g.removeEventListener("mouseenter",m)}},[r,d]),a.jsx(A,{ref:p,...u,sx:{...l,color:o,aspectRatio:1/1,overflow:"hidden",transform:`rotate(${C}deg)`,"& svg path[fill]":{fill:i?"currentColor":void 0},"& svg path[stroke]":{stroke:s?"currentColor":void 0}},children:a.jsx(ar,{ref:f,src:e,autoplay:r,loop:t,speed:n,style:{width:24,height:24,lineHeight:"normal",...c}})})};function Vt(e){const{children:n,...r}=e,[t,o]=K("auto"),[i,s]=K("auto"),C=s1(null);return i1(()=>{const l=new ResizeObserver(c=>{for(const d of c){const{width:u,height:p}=d.contentRect;s(u),o(p)}});return l.observe(C.current),document.addEventListener("resize",()=>{C.current&&l.observe(C.current)}),()=>{l.disconnect()}},[]),a.jsx(M0,{...r,animate:{width:i,height:t},children:a.jsx(A,{ref:C,sx:{display:"inline-flex",overflow:"hidden",whiteSpace:"pre"},children:n})})}function Im({isLoading:e,loadingContent:n,children:r}){return a.jsx(Hn,{initial:!1,children:a.jsx(Vt,{children:e?n:a.jsx(M0,{initial:{opacity:0},animate:{opacity:1,transition:{delay:.1}},children:r})})})}function Fm({magicLink:e,magicText:n,buttonProps:r,renderAsImage:t,enablePoweredByVerified:o,poweredByVerifiedProps:i,fontFamily:s,enableGoogleFontLoad:C},l){const c=s1(null),[d,u]=K(null),[p,f]=K(null),[m,h]=K(0),[g,j]=K(0),v=Mn(s,C),L=async x=>{if(!c.current)return;const y={png:V6.toPng,svg:V6.toSvg};let b=null;try{v.cssContent&&(b=document.createElement("style"),b.id="temp-font-style-for-download",b.textContent=v.cssContent,document.head.appendChild(b));const[w,k]=await G3(y[x](c.current,{pixelRatio:4}));if(b&&(document.head.removeChild(b),b=null),k){console.error("Failed to generate magic button:",k);return}if(!w)return;const D=document.createElement("a");D.href=w,D.download=`magic-button-${n.replace(/\s+/g,"-")}.${x}`,D.click()}catch(w){b&&document.head.removeChild(b),console.error("Failed to generate magic button:",w)}};return U2(l,()=>({download:L}),[L]),i1(()=>{if(!t){h(0);return}if(!c.current||m>10)return;h(y=>y+1);const x=setInterval(()=>{h(y=>y+1)},m+1*500);return()=>clearInterval(x)},[m,t,v.isLoaded]),i1(()=>{let x=null;return v.cssContent&&(x=document.createElement("style"),x.id="temp-font-style-for-image",x.textContent=v.cssContent,document.head.appendChild(x)),()=>{x&&document.head.removeChild(x)}},[v.cssContent]),i1(()=>{!t||s&&C&&v.isLoading||(async()=>{if(c.current&&!(C&&!v.isLoaded))try{const x=await V6.toPng(c.current,{pixelRatio:.5});if(x===p){g===0&&j(b=>b+1);return}f(x);const y=await V6.toPng(c.current,{pixelRatio:4});u(y)}catch(x){console.error("Failed to generate PNG:",x)}})()},[g,m,e,n,r,o,i,t,s,v.isLoaded,p]),a.jsxs(W,{children:[a.jsx(A,{className:"button-preview-container",sx:{...t&&{position:"fixed",top:-9999,left:-9999,maxWidth:9999,overflow:"hidden",zIndex:-1}},children:a.jsxs(W,{ref:c,className:"canvas-copiable",spacing:1,sx:{display:"inline-flex",minWidth:"fit-content",justifyContent:"center",alignItems:"center",alignSelf:"center",...t&&{pt:"3px",pb:"6px",px:"4px"}},children:[a.jsx(h2,{href:e,target:"_blank",variant:"contained",size:"large",color:"primary",startIcon:a.jsx(xn,{}),...r,sx:{fontFamily:s?`"${s}" !important`:void 0,textTransform:"none",fontSize:16,p:1.5,m:1,"&, & >span":{wordBreak:"break-word",lineHeight:t?0:void 0},...r?.sx},children:a.jsx("span",{children:n})}),o&&a.jsx(z8,{...i,containerProps:{pt:.5,maxWidth:143,...i?.containerProps}})]})}),d&&t&&a.jsx(W,{component:"a",href:e,target:"_blank",rel:"noopener noreferrer",flex:1,sx:{overflow:"visible"},children:a.jsx(A,{component:"img",src:d,alt:n,draggable:!1,sx:{width:"100%",height:"auto"}})})]})}const Am=h3(Fm);function zm({brandLogo:e,magicLink:n,enablePoweredByVerified:r,poweredByVerifiedProps:t,sx:o},i){const s=s1(null),{qrcode:{Component:C}}=jn({magicLink:n,brandLogo:e}),l=async(c,d)=>{if(!s.current)return;const u={png:V6.toPng,svg:V6.toSvg},[p,f]=await G3(u[d](s.current,{pixelRatio:4}));if(f){console.error("Failed to generate magic button:",f);return}if(!p)return;const m=document.createElement("a");m.href=p,m.download=`${c??"magic-qr-code"}.${d}`,m.click()};return U2(i,()=>({download:l}),[l]),a.jsxs(W,{ref:s,alignItems:"center",justifyContent:"center",sx:{"& a":{m:0,mx:"auto"},"& > div":{display:"flex"},"& > div > svg, & > div > img":{maxWidth:220,width:"100%",height:"auto",aspectRatio:1,p:1},...o},children:[a.jsx(C,{}),r&&a.jsx(z8,{...t,containerProps:{pt:1,maxWidth:143,...t?.containerProps}})]})}const Vm=H3(h3(zm),g6);function $m({brandName:e,...n}){return a.jsxs(x1,{variant:"body1",fontSize:12,fontWeight:400,textAlign:"center",color:"secondary.main",...n,children:["Opt in to receive a verification link from Verified on behalf of"," ",e,". Msg & data rates may apply. One message per interaction. Reply HELP for help or STOP to opt out. See Terms at"," ",a.jsx(n4,{href:"https://verified.inc/sms-terms",target:"_blank",sx:{color:"inherit",textDecorationColor:"inherit"},children:"verified.inc/sms-terms"})," ","and Privacy at"," ",a.jsx(n4,{href:"https://verified.inc/privacy",target:"_blank",sx:{color:"inherit",textDecorationColor:"inherit"},children:"verified.inc/privacy"}),"."]})}export{T9 as $,No as A,F4 as B,Oo as C,v8 as D,po as E,j4 as F,A2 as G,U1 as H,pa as I,S8 as J,_8 as K,lo as L,c2 as M,Lt as N,ho as O,Ro as P,Y2 as Q,vt as R,x8 as S,uo as T,gt as U,ff as V,mf as W,Af as X,$2 as Y,yt as Z,zf as _,U0 as a,Zt as a0,Vf as a1,$f as a2,gm as a3,z8 as a4,vm as a5,V8 as a6,xm as a7,ym as a8,bm as a9,wm as aa,t6 as ab,Mm as ac,Rt as ad,Nt as ae,km as af,zt as ag,B8 as ah,Om as ai,Rm as aj,Q0 as ak,Nm as al,Vt as am,Im as an,Am as ao,Vm as ap,$m as aq,w4 as b,ua as c,gu as d,ne as e,re as f,Mu as g,xp as h,wp as i,jp as j,Ih as k,fe as l,c6 as m,me as n,j8 as o,H7 as p,Le as q,T6 as r,$p as s,ge as t,Bp as u,k8 as v,ve as w,F2 as x,K7 as y,xe as z};
|
|
155
|
+
`,s=C=>{o.current&&!o.current.contains(C.target)&&n(!1)};return a.jsxs(ln,{children:[e&&a.jsx("style",{children:i}),a.jsx("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,width:"100%",height:"100%",backgroundColor:"rgba(0,0,0,0.5)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",opacity:e?1:0,pointerEvents:e?"auto":"none",transition:"opacity 0.3s ease",zIndex:1e3},onClick:s,onKeyDown:C=>{console.log(C),C.key==="Escape"&&n(!1)},children:a.jsxs("div",{style:{position:"relative",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:[t&&a.jsx(R3,{"aria-label":"close",onClick:()=>n(!1),sx:{position:"absolute",right:16,top:16,color:"white",backgroundColor:"rgba(0, 0, 0, 0.2)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.4)"},zIndex:1},children:a.jsx(At,{})}),a.jsx("div",{className:"dialog-content-persistent",style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx("div",{ref:o,children:r})})]})})]})},B8=h3(({calendlyUrl:e},n)=>{const[r,t]=K(!1);return U2(n,()=>({show:()=>{t(!0)},hide:()=>{t(!1)},toggle:()=>{t(!r)},isOpen:r})),a.jsx(zt,{isOpen:r,setIsOpen:t,children:a.jsx("iframe",{src:e,style:{height:"800px",width:"500px",maxWidth:"90vw",maxHeight:"85vh",border:"none",borderRadius:"5px"}})})});B8.displayName="CalendlyDialog";const Om=H3(B8),Rm=({isVisible:e,children:n,sx:r})=>{const t={visibility:e?"visible":"hidden",position:e?"static":"absolute",pointerEvents:e?"auto":"none",top:e?"auto":0,left:e?"auto":0,height:e?"auto":0,width:e?"auto":0,overflow:e?"visible":"hidden"};return a.jsx(A,{sx:{...t,...r},children:n})},Nm=({animationPublicPath:e,speed:n=.5,autoPlay:r=!0,loop:t,color:o="inherit",paintFill:i=!0,paintStroke:s=!0,rotate:C,additionalSx:l,style:c,buttonRef:d,...u})=>{const p=s1(null),f=s1(null),m=()=>{var h,g;((h=f.current)==null?void 0:h.currentState)!==ir.Playing&&((g=f.current)==null||g.goToAndPlay(0))};return i1(()=>{const h=p.current;if(!h)return;const g=d?.current??h.closest("button")??h;return g.addEventListener("mouseenter",m),()=>{g.removeEventListener("mouseenter",m)}},[r,d]),a.jsx(A,{ref:p,...u,sx:{...l,color:o,aspectRatio:1/1,overflow:"hidden",transform:`rotate(${C}deg)`,"& svg path[fill]":{fill:i?"currentColor":void 0},"& svg path[stroke]":{stroke:s?"currentColor":void 0}},children:a.jsx(ar,{ref:f,src:e,autoplay:r,loop:t,speed:n,style:{width:24,height:24,lineHeight:"normal",...c}})})};function Vt(e){const{children:n,...r}=e,[t,o]=K("auto"),[i,s]=K("auto"),C=s1(null);return i1(()=>{const l=new ResizeObserver(c=>{for(const d of c){const{width:u,height:p}=d.contentRect;s(u),o(p)}});return l.observe(C.current),document.addEventListener("resize",()=>{C.current&&l.observe(C.current)}),()=>{l.disconnect()}},[]),a.jsx(M0,{...r,animate:{width:i,height:t},children:a.jsx(A,{ref:C,sx:{display:"inline-flex",overflow:"hidden",whiteSpace:"pre"},children:n})})}function Im({isLoading:e,loadingContent:n,children:r}){return a.jsx(Hn,{initial:!1,children:a.jsx(Vt,{children:e?n:a.jsx(M0,{initial:{opacity:0},animate:{opacity:1,transition:{delay:.1}},children:r})})})}function Fm({magicLink:e,magicText:n,buttonProps:r,renderAsImage:t,enablePoweredByVerified:o,poweredByVerifiedProps:i,fontFamily:s,enableGoogleFontLoad:C},l){const c=s1(null),[d,u]=K(null),[p,f]=K(null),[m,h]=K(0),[g,j]=K(0),v=Mn(s,C),L=async x=>{if(!c.current)return;const y={png:V6.toPng,svg:V6.toSvg};let b=null;try{v.cssContent&&(b=document.createElement("style"),b.id="temp-font-style-for-download",b.textContent=v.cssContent,document.head.appendChild(b));const[w,k]=await G3(y[x](c.current,{pixelRatio:4}));if(b&&(document.head.removeChild(b),b=null),k){console.error("Failed to generate magic button:",k);return}if(!w)return;const D=document.createElement("a");D.href=w,D.download=`magic-button-${n.replace(/\s+/g,"-")}.${x}`,D.click()}catch(w){b&&document.head.removeChild(b),console.error("Failed to generate magic button:",w)}};return U2(l,()=>({download:L}),[L]),i1(()=>{if(!t){h(0);return}if(!c.current||m>10)return;h(y=>y+1);const x=setInterval(()=>{h(y=>y+1)},m+1*500);return()=>clearInterval(x)},[m,t,v.isLoaded]),i1(()=>{let x=null;return v.cssContent&&(x=document.createElement("style"),x.id="temp-font-style-for-image",x.textContent=v.cssContent,document.head.appendChild(x)),()=>{x&&document.head.removeChild(x)}},[v.cssContent]),i1(()=>{!t||s&&C&&v.isLoading||(async()=>{if(c.current&&!(C&&!v.isLoaded))try{const x=await V6.toPng(c.current,{pixelRatio:.5});if(x===p){g===0&&j(b=>b+1);return}f(x);const y=await V6.toPng(c.current,{pixelRatio:4});u(y)}catch(x){console.error("Failed to generate PNG:",x)}})()},[g,m,e,n,r,o,i,t,s,v.isLoaded,p]),a.jsxs(W,{children:[a.jsx(A,{className:"button-preview-container",sx:{...t&&{position:"fixed",top:-9999,left:-9999,maxWidth:9999,overflow:"hidden",zIndex:-1}},children:a.jsxs(W,{ref:c,className:"canvas-copiable",spacing:1,sx:{display:"inline-flex",minWidth:"fit-content",justifyContent:"center",alignItems:"center",alignSelf:"center",...t&&{pt:"3px",pb:"6px",px:"4px"}},children:[a.jsx(h2,{href:e,target:"_blank",variant:"contained",size:"large",color:"primary",startIcon:a.jsx(xn,{}),...r,sx:{fontFamily:s?`"${s}" !important`:void 0,textTransform:"none",fontSize:16,p:1.5,m:1,"&, & >span":{wordBreak:"break-word",lineHeight:t?0:void 0},...r?.sx},children:a.jsx("span",{style:{whiteSpace:t?"nowrap":void 0},children:n})}),o&&a.jsx(z8,{...i,containerProps:{pt:.5,maxWidth:143,...i?.containerProps}})]})}),d&&t&&a.jsx(W,{component:"a",href:e,target:"_blank",rel:"noopener noreferrer",flex:1,sx:{overflow:"visible"},children:a.jsx(A,{component:"img",src:d,alt:n,draggable:!1,sx:{width:"100%",height:"auto"}})})]})}const Am=h3(Fm);function zm({brandLogo:e,magicLink:n,enablePoweredByVerified:r,poweredByVerifiedProps:t,sx:o},i){const s=s1(null),{qrcode:{Component:C}}=jn({magicLink:n,brandLogo:e}),l=async(c,d)=>{if(!s.current)return;const u={png:V6.toPng,svg:V6.toSvg},[p,f]=await G3(u[d](s.current,{pixelRatio:4}));if(f){console.error("Failed to generate magic button:",f);return}if(!p)return;const m=document.createElement("a");m.href=p,m.download=`${c??"magic-qr-code"}.${d}`,m.click()};return U2(i,()=>({download:l}),[l]),a.jsxs(W,{ref:s,alignItems:"center",justifyContent:"center",sx:{"& a":{m:0,mx:"auto"},"& > div":{display:"flex"},"& > div > svg, & > div > img":{maxWidth:220,width:"100%",height:"auto",aspectRatio:1,p:1},...o},children:[a.jsx(C,{}),r&&a.jsx(z8,{...t,containerProps:{pt:1,maxWidth:143,...t?.containerProps}})]})}const Vm=H3(h3(zm),g6);function $m({brandName:e,...n}){return a.jsxs(x1,{variant:"body1",fontSize:12,fontWeight:400,textAlign:"center",color:"secondary.main",...n,children:["Opt in to receive a verification link from Verified on behalf of"," ",e,". Msg & data rates may apply. One message per interaction. Reply HELP for help or STOP to opt out. See Terms at"," ",a.jsx(n4,{href:"https://verified.inc/sms-terms",target:"_blank",sx:{color:"inherit",textDecorationColor:"inherit"},children:"verified.inc/sms-terms"})," ","and Privacy at"," ",a.jsx(n4,{href:"https://verified.inc/privacy",target:"_blank",sx:{color:"inherit",textDecorationColor:"inherit"},children:"verified.inc/privacy"}),"."]})}export{T9 as $,No as A,F4 as B,Oo as C,v8 as D,po as E,j4 as F,A2 as G,U1 as H,pa as I,S8 as J,_8 as K,lo as L,c2 as M,Lt as N,ho as O,Ro as P,Y2 as Q,vt as R,x8 as S,uo as T,gt as U,ff as V,mf as W,Af as X,$2 as Y,yt as Z,zf as _,U0 as a,Zt as a0,Vf as a1,$f as a2,gm as a3,z8 as a4,vm as a5,V8 as a6,xm as a7,ym as a8,bm as a9,wm as aa,t6 as ab,Mm as ac,Rt as ad,Nt as ae,km as af,zt as ag,B8 as ah,Om as ai,Rm as aj,Q0 as ak,Nm as al,Vt as am,Im as an,Am as ao,Vm as ap,$m as aq,w4 as b,ua as c,gu as d,ne as e,re as f,Mu as g,xp as h,wp as i,jp as j,Ih as k,fe as l,c6 as m,me as n,j8 as o,H7 as p,Le as q,T6 as r,$p as s,ge as t,Bp as u,k8 as v,ve as w,F2 as x,K7 as y,xe as z};
|