@zappway/embeds 2.0.4 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/dist/chatbox/index.css +1 -1
  2. package/dist/chatbox/index.global.css +1 -1
  3. package/dist/chatbox/index.global.js +5 -5
  4. package/dist/chatbox/index.js +5 -5
  5. package/dist/chatbox/legacy.js +1 -1
  6. package/dist/form/index.css +1 -1
  7. package/dist/form/index.js +5 -5
  8. package/dist/locales/locales-ZappWay/ar/AccessGroups.json +2 -1
  9. package/dist/locales/locales-ZappWay/ar/translations.json +2 -1
  10. package/dist/locales/locales-ZappWay/az/AccessGroups.json +2 -1
  11. package/dist/locales/locales-ZappWay/az/translations.json +2 -1
  12. package/dist/locales/locales-ZappWay/bg/AccessGroups.json +2 -1
  13. package/dist/locales/locales-ZappWay/bg/translations.json +2 -1
  14. package/dist/locales/locales-ZappWay/bn/AccessGroups.json +2 -1
  15. package/dist/locales/locales-ZappWay/bn/translations.json +2 -1
  16. package/dist/locales/locales-ZappWay/ca/AccessGroups.json +2 -1
  17. package/dist/locales/locales-ZappWay/ca/translations.json +2 -1
  18. package/dist/locales/locales-ZappWay/cs/AccessGroups.json +2 -1
  19. package/dist/locales/locales-ZappWay/cs/translations.json +2 -1
  20. package/dist/locales/locales-ZappWay/da/AccessGroups.json +2 -1
  21. package/dist/locales/locales-ZappWay/da/translations.json +2 -1
  22. package/dist/locales/locales-ZappWay/de/AccessGroups.json +2 -1
  23. package/dist/locales/locales-ZappWay/de/translations.json +2 -1
  24. package/dist/locales/locales-ZappWay/el/AccessGroups.json +2 -1
  25. package/dist/locales/locales-ZappWay/el/translations.json +2 -1
  26. package/dist/locales/locales-ZappWay/en/AccessGroups.json +2 -1
  27. package/dist/locales/locales-ZappWay/en/translations.json +2 -1
  28. package/dist/locales/locales-ZappWay/eo/AccessGroups.json +2 -1
  29. package/dist/locales/locales-ZappWay/eo/translations.json +2 -1
  30. package/dist/locales/locales-ZappWay/es/AccessGroups.json +2 -1
  31. package/dist/locales/locales-ZappWay/es/translations.json +2 -1
  32. package/dist/locales/locales-ZappWay/et/AccessGroups.json +2 -1
  33. package/dist/locales/locales-ZappWay/et/translations.json +2 -1
  34. package/dist/locales/locales-ZappWay/fa/AccessGroups.json +2 -1
  35. package/dist/locales/locales-ZappWay/fa/translations.json +2 -1
  36. package/dist/locales/locales-ZappWay/fi/AccessGroups.json +2 -1
  37. package/dist/locales/locales-ZappWay/fi/translations.json +2 -1
  38. package/dist/locales/locales-ZappWay/fr/AccessGroups.json +2 -1
  39. package/dist/locales/locales-ZappWay/fr/translations.json +2 -1
  40. package/dist/locales/locales-ZappWay/ga/AccessGroups.json +2 -1
  41. package/dist/locales/locales-ZappWay/ga/translations.json +2 -1
  42. package/dist/locales/locales-ZappWay/he/AccessGroups.json +2 -1
  43. package/dist/locales/locales-ZappWay/he/translations.json +2 -1
  44. package/dist/locales/locales-ZappWay/hi/AccessGroups.json +2 -1
  45. package/dist/locales/locales-ZappWay/hi/translations.json +2 -1
  46. package/dist/locales/locales-ZappWay/hu/AccessGroups.json +2 -1
  47. package/dist/locales/locales-ZappWay/hu/translations.json +2 -1
  48. package/dist/locales/locales-ZappWay/id/AccessGroups.json +2 -1
  49. package/dist/locales/locales-ZappWay/id/translations.json +2 -1
  50. package/dist/locales/locales-ZappWay/it/AccessGroups.json +2 -1
  51. package/dist/locales/locales-ZappWay/it/translations.json +2 -1
  52. package/dist/locales/locales-ZappWay/ja/AccessGroups.json +2 -1
  53. package/dist/locales/locales-ZappWay/ja/translations.json +2 -1
  54. package/dist/locales/locales-ZappWay/ko/AccessGroups.json +2 -1
  55. package/dist/locales/locales-ZappWay/ko/translations.json +2 -1
  56. package/dist/locales/locales-ZappWay/lt/AccessGroups.json +2 -1
  57. package/dist/locales/locales-ZappWay/lt/translations.json +2 -1
  58. package/dist/locales/locales-ZappWay/lv/AccessGroups.json +2 -1
  59. package/dist/locales/locales-ZappWay/lv/translations.json +2 -1
  60. package/dist/locales/locales-ZappWay/ms/AccessGroups.json +2 -1
  61. package/dist/locales/locales-ZappWay/ms/translations.json +2 -1
  62. package/dist/locales/locales-ZappWay/nb/AccessGroups.json +2 -1
  63. package/dist/locales/locales-ZappWay/nb/translations.json +2 -1
  64. package/dist/locales/locales-ZappWay/nl/AccessGroups.json +2 -1
  65. package/dist/locales/locales-ZappWay/nl/translations.json +2 -1
  66. package/dist/locales/locales-ZappWay/pl/AccessGroups.json +2 -1
  67. package/dist/locales/locales-ZappWay/pl/translations.json +2 -1
  68. package/dist/locales/locales-ZappWay/pt/AccessGroups.json +2 -1
  69. package/dist/locales/locales-ZappWay/pt/translations.json +2 -1
  70. package/dist/locales/locales-ZappWay/pt-BR/AccessGroups.json +2 -1
  71. package/dist/locales/locales-ZappWay/pt-BR/translations.json +2 -1
  72. package/dist/locales/locales-ZappWay/ro/AccessGroups.json +2 -1
  73. package/dist/locales/locales-ZappWay/ro/translations.json +2 -1
  74. package/dist/locales/locales-ZappWay/ru/AccessGroups.json +2 -1
  75. package/dist/locales/locales-ZappWay/ru/translations.json +2 -1
  76. package/dist/locales/locales-ZappWay/sk/AccessGroups.json +2 -1
  77. package/dist/locales/locales-ZappWay/sk/translations.json +2 -1
  78. package/dist/locales/locales-ZappWay/sl/AccessGroups.json +2 -1
  79. package/dist/locales/locales-ZappWay/sl/translations.json +2 -1
  80. package/dist/locales/locales-ZappWay/sv/AccessGroups.json +2 -1
  81. package/dist/locales/locales-ZappWay/sv/translations.json +2 -1
  82. package/dist/locales/locales-ZappWay/th/AccessGroups.json +2 -1
  83. package/dist/locales/locales-ZappWay/th/translations.json +2 -1
  84. package/dist/locales/locales-ZappWay/tl/AccessGroups.json +2 -1
  85. package/dist/locales/locales-ZappWay/tl/translations.json +2 -1
  86. package/dist/locales/locales-ZappWay/tr/AccessGroups.json +2 -1
  87. package/dist/locales/locales-ZappWay/tr/translations.json +2 -1
  88. package/dist/locales/locales-ZappWay/uk/AccessGroups.json +2 -1
  89. package/dist/locales/locales-ZappWay/uk/translations.json +2 -1
  90. package/dist/locales/locales-ZappWay/ur/AccessGroups.json +2 -1
  91. package/dist/locales/locales-ZappWay/ur/translations.json +2 -1
  92. package/dist/locales/locales-ZappWay/zh/AccessGroups.json +2 -1
  93. package/dist/locales/locales-ZappWay/zh/translations.json +2 -1
  94. package/dist/pdfviewer/index.css +1 -1
  95. package/dist/pdfviewer/index.js +3 -3
  96. package/dist/zappflux/index.js +1 -1
  97. package/dist/zappflux/web.global.js +1 -1
  98. package/dist/zappflux/web.js +1 -1
  99. package/package.json +1 -1
@@ -117,7 +117,7 @@ try {
117
117
  animation: ${0}
118
118
  var(--LinearProgress-circulation, 2.5s ease-in-out 0s infinite normal none running);
119
119
  }
120
- `),z8),({ownerState:e,theme:t})=>{let{borderRadius:r,height:n}=Nc({theme:t,ownerState:e},["borderRadius","height"]);return O({},r!==void 0&&{"--LinearProgress-radius":r},n!==void 0&&{"--LinearProgress-thickness":n})}),j8=cM.forwardRef(function(t,r){let n=zt({props:t,name:"JoyLinearProgress"}),{children:i,className:o,component:s,color:a="primary",size:l="md",variant:c="soft",thickness:u,determinate:d=!1,value:f=d?0:25,style:h,slots:m={},slotProps:y={}}=n,x=at(n,B8),g=O({},n,{component:s,color:a,size:l,variant:c,thickness:u,value:f,determinate:d,instanceSize:t.size}),v=F8(g),b=O({},x,{component:s,slots:m,slotProps:y}),[w,T]=xt("root",{ref:r,className:Lt(v.root,o),elementType:$8,externalForwardedProps:b,ownerState:g,additionalProps:O({as:s,role:"progressbar",style:O({},{"--LinearProgress-percent":f},h)},typeof f=="number"&&d&&{"aria-valuenow":Math.round(f)})});return(0,uM.jsx)(w,O({},T,{children:i}))}),Jg=j8;p();p();he();wt();var $c=D(F());Wt();p();function dM(e){return Yt("MuiMenu",e)}var qEt=qt("MuiMenu",["root","listbox","expanded","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);var Fc=D(Z()),H8=["actions","children","color","component","disablePortal","keepMounted","id","invertedColors","onItemsChange","modifiers","variant","size","slots","slotProps"],U8=e=>{let{open:t,variant:r,color:n,size:i}=e,o={root:["root",t&&"expanded",r&&`variant${it(r)}`,n&&`color${it(n)}`,i&&`size${it(i)}`],listbox:["listbox"]};return Pt(o,dM,{})},fM=rt(LS,{name:"JoyMenu",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,n;let i=(r=e.variants[t.variant])==null?void 0:r[t.color];return[O({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":i?.backgroundColor||i?.background||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},CD,{borderRadius:`var(--List-radius, ${e.vars.radius.sm})`,boxShadow:e.shadow.md,overflow:"auto",zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(i!=null&&i.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup},t.variant==="solid"&&t.color&&t.invertedColors&&df(t.color)(e),t.variant==="soft"&&t.color&&t.invertedColors&&ff(t.color)(e),(n=e.variants[t.variant])==null?void 0:n[t.color])]}),V8=$c.forwardRef(function(t,r){var n;let i=zt({props:t,name:"JoyMenu"}),{actions:o,children:s,color:a="neutral",component:l,disablePortal:c=!1,keepMounted:u=!1,id:d,invertedColors:f=!1,onItemsChange:h,modifiers:m,variant:y="outlined",size:x="md",slots:g={},slotProps:v={}}=i,b=at(i,H8),{contextValue:w,getListboxProps:T,dispatch:C,open:E,triggerElement:A}=dS({onItemsChange:h,id:d,listboxRef:r});$c.useImperativeHandle(o,()=>({dispatch:C,resetHighlight:()=>C({type:re.resetHighlight,event:null})}),[C]);let _=O({},i,{disablePortal:c,invertedColors:f,color:a,variant:y,size:x,open:E,nesting:!1,row:!1}),P=U8(_),k=O({},b,{component:l,slots:g,slotProps:v}),I=$c.useMemo(()=>[{name:"offset",options:{offset:[0,4]}},...m||[]],[m]),M=Sa({elementType:fM,getSlotProps:T,externalForwardedProps:k,externalSlotProps:{},ownerState:_,additionalProps:{anchorEl:A,open:E&&A!==null,disablePortal:c,keepMounted:u,modifiers:I},className:P.root});return(0,Fc.jsx)(fM,O({},M,!((n=i.slots)!=null&&n.root)&&{as:Lc,slots:{root:l||"ul"}},{children:(0,Fc.jsx)(FO,{value:w,children:(0,Fc.jsx)(LD,{variant:f?void 0:y,color:a,children:(0,Fc.jsx)(wD.Provider,{value:"menu",children:(0,Fc.jsx)(ED,{nested:!0,children:s})})})})}))}),ty=V8;p();p();he();wt();var ey=D(F());Wt();p();function pM(e){return Yt("MuiMenuButton",e)}var SAt=qt("MuiMenuButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);var gf=D(Z()),hM=D(Z()),G8=["children","color","component","disabled","endDecorator","loading","loadingPosition","loadingIndicator","size","slotProps","slots","startDecorator","variant"],W8=e=>{let{color:t,disabled:r,fullWidth:n,size:i,variant:o,loading:s}=e,a={root:["root",r&&"disabled",n&&"fullWidth",o&&`variant${it(o)}`,t&&`color${it(t)}`,i&&`size${it(i)}`,s&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]};return Pt(a,pM,{})},Y8=rt("button",{name:"JoyMenuButton",slot:"Root",overridesResolver:(e,t)=>t.root})(US),q8=rt("span",{name:"JoyMenuButton",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),X8=rt("span",{name:"JoyMenuButton",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),K8=rt("span",{name:"JoyMenuButton",slot:"LoadingCenter",overridesResolver:(e,t)=>t.loadingIndicatorCenter})(({theme:e,ownerState:t})=>{var r,n;return O({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:(r=e.variants[t.variant])==null||(r=r[t.color])==null?void 0:r.color},t.disabled&&{color:(n=e.variants[`${t.variant}Disabled`])==null||(n=n[t.color])==null?void 0:n.color})}),Z8=ey.forwardRef(function(t,r){var n;let i=zt({props:t,name:"JoyMenuButton"}),{children:o,color:s="neutral",component:a,disabled:l=!1,endDecorator:c,loading:u=!1,loadingPosition:d="center",loadingIndicator:f,size:h="md",slotProps:m={},slots:y={},startDecorator:x,variant:g="outlined"}=i,v=at(i,G8),b=ey.useContext(Bc),w=t.variant||b.variant||g,T=t.size||b.size||h,C=(n=t.disabled)!=null?n:b.disabled||l||u,{getRootProps:E,open:A,active:_}=yS({rootRef:r,disabled:C}),P=f??(0,gf.jsx)(Wn,{color:s,thickness:{sm:2,md:3,lg:4}[T]||3}),k=O({},i,{active:_,color:s,disabled:C,open:A,size:T,variant:w}),I=W8(k),M=O({},v,{component:a,slots:y,slotProps:m}),[z,B]=xt("root",{elementType:Y8,getSlotProps:E,externalForwardedProps:M,ref:r,ownerState:k,className:I.root}),[R,L]=xt("startDecorator",{className:I.startDecorator,elementType:q8,externalForwardedProps:M,ownerState:k}),[G,U]=xt("endDecorator",{className:I.endDecorator,elementType:X8,externalForwardedProps:M,ownerState:k}),[X,J]=xt("loadingIndicatorCenter",{className:I.loadingIndicatorCenter,elementType:K8,externalForwardedProps:M,ownerState:k});return(0,hM.jsxs)(z,O({},B,{children:[(x||u&&d==="start")&&(0,gf.jsx)(R,O({},L,{children:u&&d==="start"?P:x})),o,u&&d==="center"&&(0,gf.jsx)(X,O({},J,{children:P})),(c||u&&d==="end")&&(0,gf.jsx)(G,O({},U,{children:u&&d==="end"?P:c}))]}))}),ry=Z8;p();p();wt();he();var Za=D(F());Wt();p();function mM(e){return Yt("MuiMenuItem",e)}var VAt=qt("MuiMenuItem",["root","focusVisible","disabled","selected","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);var yf=D(Z()),Q8=["children","disabled","component","selected","color","orientation","variant","slots","slotProps","id"],J8=e=>{let{focusVisible:t,disabled:r,selected:n,color:i,variant:o}=e,s={root:["root",t&&"focusVisible",r&&"disabled",n&&"selected",i&&`color${it(i)}`,o&&`variant${it(o)}`]};return Pt(s,mM,{})},tV=rt(NS,{name:"JoyMenuItem",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eV=Za.memo(Za.forwardRef(function(t,r){let n=zt({props:t,name:"JoyMenuItem"}),i=Za.useContext(Gg),{children:o,disabled:s=!1,component:a="li",selected:l=!1,color:c="neutral",orientation:u="horizontal",variant:d="plain",slots:f={},slotProps:h={},id:m}=n,y=at(n,Q8),{variant:x=d,color:g=c}=MD(t.variant,t.color),{getRootProps:v,disabled:b,focusVisible:w}=vS({id:m,disabled:s,rootRef:r}),T=O({},n,{component:a,color:g,disabled:b,focusVisible:w,orientation:u,selected:l,row:i,variant:x}),C=J8(T),E=O({},y,{component:a,slots:f,slotProps:h}),[A,_]=xt("root",{ref:r,elementType:tV,getSlotProps:v,externalForwardedProps:E,className:C.root,ownerState:T});return(0,yf.jsx)(PD.Provider,{value:u,children:(0,yf.jsx)(A,O({},_,{children:o}))})})),rV=Za.forwardRef(function(t,r){let{contextValue:n,id:i}=WO(t.id);return(0,yf.jsx)(ys.Provider,{value:n,children:(0,yf.jsx)(eV,O({},t,{id:i,ref:r}))})}),ny=rV;p();p();he();wt();var yM=D(F());rr();p();function gM(e){return Yt("MuiScopedCssBaseline",e)}var h_t=qt("MuiScopedCssBaseline",["root"]);var vM=D(Z()),nV=["className","component","disableColorScheme","slots","slotProps"],iV=()=>Pt({root:["root"]},gM,{}),oV=rt("div",{name:"JoyScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{let r={};return!t.disableColorScheme&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,i])=>{var o;r[`&${e.getColorSchemeSelector(n).replace(/\s*&/,"")}`]={colorScheme:(o=i.palette)==null?void 0:o.mode}}),O({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",color:e.vars.palette.text.primary},e.typography["body-md"],{backgroundColor:e.vars.palette.background.body,"@media print":{backgroundColor:"#fff"},"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:"bold"}},r)}),sV=yM.forwardRef(function(t,r){let n=zt({props:t,name:"JoyScopedCssBaseline"}),{className:i,component:o="div",disableColorScheme:s=!1,slots:a={},slotProps:l={}}=n,c=at(n,nV),u=O({},n,{component:o,disableColorScheme:s}),d=iV(),f=O({},c,{component:o,slots:a,slotProps:l}),[h,m]=xt("root",{ref:r,className:Lt(d.root,i),elementType:oV,externalForwardedProps:f,ownerState:u});return(0,vM.jsx)(h,O({},m))}),VS=sV;p();p();he();wt();var xM=D(F());rr();Wt();p();function bM(e){return Yt("MuiSheet",e)}var M_t=qt("MuiSheet",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var SM=D(Z()),aV=["className","color","component","variant","invertedColors","slots","slotProps"],lV=e=>{let{variant:t,color:r}=e,n={root:["root",t&&`variant${it(t)}`,r&&`color${it(r)}`]};return Pt(n,bM,{})},cV=rt("div",{name:"JoySheet",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,n;let i=(r=e.variants[t.variant])==null?void 0:r[t.color],{borderRadius:o,bgcolor:s,backgroundColor:a,background:l}=Nc({theme:e,ownerState:t},["borderRadius","bgcolor","backgroundColor","background"]),c=ji(e,`palette.${s}`)||s||ji(e,`palette.${a}`)||a||l||i?.backgroundColor||i?.background||e.vars.palette.background.surface;return[O({"--Icon-color":t.color!=="neutral"||t.variant==="solid"?"currentColor":e.vars.palette.text.icon,"--ListItem-stickyBackground":c==="transparent"?"initial":c,"--Sheet-background":c==="transparent"?"initial":c},o!==void 0&&{"--List-radius":`calc(${o} - var(--variant-borderWidth, 0px))`,"--unstable_actionRadius":`calc(${o} - var(--variant-borderWidth, 0px))`},{backgroundColor:e.vars.palette.background.surface,position:"relative"}),O({},e.typography["body-md"],t.variant==="solid"&&t.color&&t.invertedColors&&df(t.color)(e),t.variant==="soft"&&t.color&&t.invertedColors&&ff(t.color)(e),(n=e.variants[t.variant])==null?void 0:n[t.color],i)]}),uV=xM.forwardRef(function(t,r){let n=zt({props:t,name:"JoySheet"}),{className:i,color:o="neutral",component:s="div",variant:a="plain",invertedColors:l=!1,slots:c={},slotProps:u={}}=n,d=at(n,aV),f=O({},n,{color:o,component:s,invertedColors:l,variant:a}),h=lV(f),m=O({},d,{component:s,slots:c,slotProps:u}),[y,x]=xt("root",{ref:r,className:Lt(h.root,i),elementType:cV,externalForwardedProps:m,ownerState:f});return(0,SM.jsx)(y,O({},x))}),vf=uV;p();p();var dV=Rg({createStyledComponent:rt("div",{name:"JoyStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>zt({props:e,name:"JoyStack"})}),Qa=dV;p();p();he();wt();var ze=D(F());rr();Wt();p();function TM(e){return Yt("MuiTooltip",e)}var fPt=qt("MuiTooltip",["root","tooltipArrow","arrow","touch","placementLeft","placementRight","placementTop","placementBottom","colorPrimary","colorDanger","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);var AM=D(Z()),GS=D(Z()),fV=["children","className","component","arrow","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","disablePortal","direction","keepMounted","modifiers","placement","title","color","variant","size","slots","slotProps"],pV=e=>{let{arrow:t,variant:r,color:n,size:i,placement:o,touch:s}=e,a={root:["root",t&&"tooltipArrow",s&&"touch",i&&`size${it(i)}`,n&&`color${it(n)}`,r&&`variant${it(r)}`,`tooltipPlacement${it(o.split("-")[0])}`],arrow:["arrow"]};return Pt(a,TM,{})},hV=rt("div",{name:"JoyTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var r,n,i;let o=(r=t.variants[e.variant])==null?void 0:r[e.color];return O({},e.size==="sm"&&{"--Icon-fontSize":t.vars.fontSize.md,"--Tooltip-arrowSize":"8px",padding:t.spacing(.25,.625)},e.size==="md"&&{"--Icon-fontSize":t.vars.fontSize.lg,"--Tooltip-arrowSize":"10px",padding:t.spacing(.5,.75)},e.size==="lg"&&{"--Icon-fontSize":t.vars.fontSize.xl,"--Tooltip-arrowSize":"12px",padding:t.spacing(.75,1)},{zIndex:t.vars.zIndex.tooltip,borderRadius:t.vars.radius.sm,boxShadow:t.shadow.sm,wordWrap:"break-word",position:"relative"},e.disableInteractive&&{pointerEvents:"none"},t.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[e.size]}`],o,!o.backgroundColor&&{backgroundColor:t.vars.palette.background.surface},{"&::before":{content:'""',display:"block",position:"absolute",width:(n=e.placement)!=null&&n.match(/(top|bottom)/)?"100%":"calc(10px + var(--variant-borderWidth, 0px))",height:(i=e.placement)!=null&&i.match(/(top|bottom)/)?"calc(10px + var(--variant-borderWidth, 0px))":"100%"},'&[data-popper-placement*="bottom"]::before':{top:0,left:0,transform:"translateY(-100%)"},'&[data-popper-placement*="left"]::before':{top:0,right:0,transform:"translateX(100%)"},'&[data-popper-placement*="right"]::before':{top:0,left:0,transform:"translateX(-100%)"},'&[data-popper-placement*="top"]::before':{bottom:0,left:0,transform:"translateY(100%)"}})}),mV=rt("span",{name:"JoyTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e,ownerState:t})=>{var r,n,i;let o=(r=e.variants[t.variant])==null?void 0:r[t.color];return{"--unstable_Tooltip-arrowRotation":0,width:"var(--Tooltip-arrowSize)",height:"var(--Tooltip-arrowSize)",boxSizing:"border-box","&::before":{content:'""',display:"block",position:"absolute",width:0,height:0,border:"calc(var(--Tooltip-arrowSize) / 2) solid",borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:(n=o?.backgroundColor)!=null?n:e.vars.palette.background.surface,borderRightColor:(i=o?.backgroundColor)!=null?i:e.vars.palette.background.surface,borderRadius:"0px 2px 0px 0px",boxShadow:`var(--variant-borderWidth, 0px) calc(-1 * var(--variant-borderWidth, 0px)) 0px 0px ${o.borderColor}`,transformOrigin:"center center",transform:"rotate(calc(-45deg + 90deg * var(--unstable_Tooltip-arrowRotation)))"},'[data-popper-placement*="bottom"] &':{top:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="top"] &':{"--unstable_Tooltip-arrowRotation":2,bottom:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="left"] &':{"--unstable_Tooltip-arrowRotation":1,right:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="right"] &':{"--unstable_Tooltip-arrowRotation":3,left:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"}}}),iy=!1,wM=new mo,bf={x:0,y:0};function CM(e,t){return r=>{t&&t(r),e(r)}}function EM(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}var gV=ze.forwardRef(function(t,r){var n;let i=zt({props:t,name:"JoyTooltip"}),{children:o,className:s,component:a,arrow:l=!1,describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:f=!1,disableTouchListener:h=!1,enterDelay:m=100,enterNextDelay:y=0,enterTouchDelay:x=700,followCursor:g=!1,id:v,leaveDelay:b=0,leaveTouchDelay:w=1500,onClose:T,onOpen:C,open:E,disablePortal:A,direction:_,keepMounted:P,modifiers:k,placement:I="bottom",title:M,color:z="neutral",variant:B="solid",size:R="md",slots:L={},slotProps:G={}}=i,U=at(i,fV),[X,J]=ze.useState(),[Y,et]=ze.useState(null),ct=ze.useRef(!1),St=f||g,ot=os(),q=os(),j=os(),K=os(),[nt,mt]=ma({controlled:E,default:!1,name:"Tooltip",state:"open"}),lt=nt,Tt=zr(v),Nt=ze.useRef(void 0),kt=ga(()=>{Nt.current!==void 0&&(document.body.style.WebkitUserSelect=Nt.current,Nt.current=void 0),K.clear()});ze.useEffect(()=>kt,[kt]);let te=Ft=>{wM.clear(),iy=!0,mt(!0),C&&!lt&&C(Ft)},Xt=ga(Ft=>{wM.start(800+b,()=>{iy=!1}),mt(!1),T&&lt&&T(Ft),ot.start(150,()=>{ct.current=!1})}),Ut=Ft=>{ct.current&&Ft.type!=="touchstart"||(X&&X.removeAttribute("title"),q.clear(),j.clear(),m||iy&&y?q.start(iy?y:m,()=>{te(Ft)}):te(Ft))},Pi=Ft=>{q.clear(),j.start(b,()=>{Xt(Ft)})},{isFocusVisibleRef:Ar,onBlur:Lr,onFocus:oi,ref:Ee}=go(),[,Ur]=ze.useState(!1),H=Ft=>{Lr(Ft),Ar.current===!1&&(Ur(!1),Pi(Ft))},st=Ft=>{X||J(Ft.currentTarget),oi(Ft),Ar.current===!0&&(Ur(!0),Ut(Ft))},er=Ft=>{ct.current=!0;let eo=o.props;eo.onTouchStart&&eo.onTouchStart(Ft)},pr=Ft=>{er(Ft),j.clear(),ot.clear(),kt(),Nt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",K.start(x,()=>{document.body.style.WebkitUserSelect=Nt.current,Ut(Ft)})},ee=Ft=>{o.props.onTouchEnd&&o.props.onTouchEnd(Ft),kt(),j.start(w,()=>{Xt(Ft)})};ze.useEffect(()=>{if(!lt)return;function Ft(eo){(eo.key==="Escape"||eo.key==="Esc")&&Xt(eo)}return document.addEventListener("keydown",Ft),()=>{document.removeEventListener("keydown",Ft)}},[Xt,lt]);let ae=Mt(J,r),hr=Mt(Ee,ae),Ks=Mt(Ta(o),hr);typeof M!="number"&&!M&&(lt=!1);let zu=ze.useRef(null),Pn=Ft=>{let eo=o.props;eo.onMouseMove&&eo.onMouseMove(Ft),bf={x:Ft.clientX,y:Ft.clientY},zu.current&&zu.current.update()},to={},K0=typeof M=="string";c?(to.title=!lt&&K0&&!d?M:null,to["aria-describedby"]=lt?Tt:null):(to["aria-label"]=K0?M:null,to["aria-labelledby"]=lt&&!K0?Tt:null);let si=O({},to,U,{component:a},o.props,{className:Lt(s,o.props.className),onTouchStart:er,ref:Ks},g?{onMouseMove:Pn}:{}),Fu={};h||(si.onTouchStart=pr,si.onTouchEnd=ee),d||(si.onMouseOver=CM(Ut,si.onMouseOver),si.onMouseLeave=CM(Pi,si.onMouseLeave),St||(Fu.onMouseOver=Ut,Fu.onMouseLeave=Pi)),u||(si.onFocus=EM(st,si.onFocus),si.onBlur=EM(H,si.onBlur),St||(Fu.onFocus=st,Fu.onBlur=H));let Z0=O({},i,{arrow:l,disableInteractive:St,placement:I,touch:ct.current,color:z,variant:B,size:R}),VC=pV(Z0),GC=O({},U,{component:a,slots:L,slotProps:G}),B5=ze.useMemo(()=>[{name:"arrow",enabled:!!Y,options:{element:Y,padding:6}},{name:"offset",options:{offset:[0,10]}},...k||[]],[Y,k]),[z5,F5]=xt("root",{additionalProps:O({id:Tt,popperRef:zu,placement:I,anchorEl:g?{getBoundingClientRect:()=>({top:bf.y,left:bf.x,right:bf.x,bottom:bf.y,width:0,height:0})}:X,open:X?lt:!1,disablePortal:A,keepMounted:P,direction:_,modifiers:B5},Fu),ref:null,className:VC.root,elementType:hV,externalForwardedProps:GC,ownerState:Z0}),[$5,j5]=xt("arrow",{ref:et,className:VC.arrow,elementType:mV,externalForwardedProps:GC,ownerState:Z0});return(0,GS.jsxs)(ze.Fragment,{children:[ze.isValidElement(o)&&ze.cloneElement(o,si),(0,GS.jsxs)(z5,O({},F5,!((n=i.slots)!=null&&n.root)&&{as:Lc,slots:{root:a||"div"}},{children:[M,l?(0,AM.jsx)($5,O({},j5)):null]}))]})}),Yn=gV;p();p();p();var oy=class e extends Error{type;status;description;constructor(t,r){let n=typeof r=="string"?r:void 0;if(super(n||t),this.type=t,this.description=n,typeof r=="number")this.status=r;else switch(t){case"UNAUTHORIZED":this.status=403;break;case"USAGE_LIMIT":case"PREMIUM_FEATURE":this.status=402;break;case"NOT_FOUND":this.status=404;break;case"INVALID_REQUEST":case"EMPTY_DATASOURCE":case"ALREADY_INVITED":case"INTEGRATION_VALIDATION_FAILED":this.status=400;break;case"INTEGRATION_CREDENTIALS_INVALID":this.status=403;break;case"RATE_LIMIT":this.status=429;break;case"NOT_IMPLEMENTED":this.status=501;break;case"INTERNAL_ERROR":this.status=500;break;case"CONFLICT":this.status=409;break;default:this.status=500;break}Object.setPrototypeOf(this,e.prototype)}};p();p();var ay=[{code:"en",nativeName:"English",englishName:"English",flagCode:"US",dir:"ltr",isDefault:!0},{code:"pt-BR",nativeName:"Português (BR)",englishName:"Portuguese (Brazil)",flagCode:"BR",dir:"ltr"},{code:"es",nativeName:"Español",englishName:"Spanish",flagCode:"ES",dir:"ltr"},{code:"ar",nativeName:"العربية",englishName:"Arabic",flagCode:"AE",dir:"rtl"},{code:"az",nativeName:"Azərbaycan dili",englishName:"Azerbaijani",flagCode:"AZ",dir:"ltr"},{code:"bg",nativeName:"Български",englishName:"Bulgarian",flagCode:"BG",dir:"ltr"},{code:"bn",nativeName:"বাংলা",englishName:"Bengali",flagCode:"BD",dir:"ltr"},{code:"ca",nativeName:"Català",englishName:"Catalan",flagCode:"ES",dir:"ltr"},{code:"cs",nativeName:"Čeština",englishName:"Czech",flagCode:"CZ",dir:"ltr"},{code:"da",nativeName:"Dansk",englishName:"Danish",flagCode:"DK",dir:"ltr"},{code:"de",nativeName:"Deutsch",englishName:"German",flagCode:"DE",dir:"ltr"},{code:"el",nativeName:"Ελληνικά",englishName:"Greek",flagCode:"GR",dir:"ltr"},{code:"eo",nativeName:"Esperanto",englishName:"Esperanto",flagCode:"EU",dir:"ltr"},{code:"et",nativeName:"Eesti",englishName:"Estonian",flagCode:"EE",dir:"ltr"},{code:"fa",nativeName:"فارسی",englishName:"Persian",flagCode:"IR",dir:"rtl"},{code:"fi",nativeName:"Suomi",englishName:"Finnish",flagCode:"FI",dir:"ltr"},{code:"fr",nativeName:"Français",englishName:"French",flagCode:"FR",dir:"ltr"},{code:"ga",nativeName:"Gaeilge",englishName:"Irish",flagCode:"IE",dir:"ltr"},{code:"he",nativeName:"עברית",englishName:"Hebrew",flagCode:"IL",dir:"rtl"},{code:"hi",nativeName:"हिन्दी",englishName:"Hindi",flagCode:"IN",dir:"ltr"},{code:"hu",nativeName:"Magyar",englishName:"Hungarian",flagCode:"HU",dir:"ltr"},{code:"id",nativeName:"Bahasa Indonesia",englishName:"Indonesian",flagCode:"ID",dir:"ltr"},{code:"it",nativeName:"Italiano",englishName:"Italian",flagCode:"IT",dir:"ltr"},{code:"ja",nativeName:"日本語",englishName:"Japanese",flagCode:"JP",dir:"ltr"},{code:"ko",nativeName:"한국어",englishName:"Korean",flagCode:"KR",dir:"ltr"},{code:"lt",nativeName:"Lietuvių",englishName:"Lithuanian",flagCode:"LT",dir:"ltr"},{code:"lv",nativeName:"Latviešu",englishName:"Latvian",flagCode:"LV",dir:"ltr"},{code:"ms",nativeName:"Bahasa Melayu",englishName:"Malay",flagCode:"MY",dir:"ltr"},{code:"nb",nativeName:"Norsk Bokmål",englishName:"Norwegian Bokmål",flagCode:"NO",dir:"ltr"},{code:"nl",nativeName:"Nederlands",englishName:"Dutch",flagCode:"NL",dir:"ltr"},{code:"pl",nativeName:"Polski",englishName:"Polish",flagCode:"PL",dir:"ltr"},{code:"pt",nativeName:"Português",englishName:"Portuguese",flagCode:"PT",dir:"ltr"},{code:"ro",nativeName:"Română",englishName:"Romanian",flagCode:"RO",dir:"ltr"},{code:"ru",nativeName:"Русский",englishName:"Russian",flagCode:"RU",dir:"ltr"},{code:"sk",nativeName:"Slovenčina",englishName:"Slovak",flagCode:"SK",dir:"ltr"},{code:"sl",nativeName:"Slovenščina",englishName:"Slovenian",flagCode:"SI",dir:"ltr"},{code:"sv",nativeName:"Svenska",englishName:"Swedish",flagCode:"SE",dir:"ltr"},{code:"th",nativeName:"ไทย",englishName:"Thai",flagCode:"TH",dir:"ltr"},{code:"tl",nativeName:"Tagalog",englishName:"Tagalog",flagCode:"PH",dir:"ltr"},{code:"tr",nativeName:"Türkçe",englishName:"Turkish",flagCode:"TR",dir:"ltr"},{code:"uk",nativeName:"Українська",englishName:"Ukrainian",flagCode:"UA",dir:"ltr"},{code:"ur",nativeName:"اردو",englishName:"Urdu",flagCode:"PK",dir:"rtl"},{code:"zh",nativeName:"中文",englishName:"Chinese",flagCode:"CN",dir:"ltr"}],WS="en",YS=ay.map(e=>e.code),PRt=new Set(YS),RRt=ay.map(e=>({code:e.code,name:e.nativeName,englishName:e.englishName,flag:e.flagCode,dir:e.dir})),yV=new Map(ay.map(e=>[e.code.toLowerCase(),e])),sy=new Map;for(let e of ay){let t=e.code.split("-")[0].toLowerCase();(!sy.has(t)||"isDefault"in e&&e.isDefault)&&sy.set(t,e.code)}function _M(e,t=WS){let r=e?.trim();if(!r)return t;let n=yV.get(r.toLowerCase());if(n)return n.code;let i=r.split("-")[0]?.toLowerCase();return i&&sy.has(i)?sy.get(i)??t:t}var Qe=WS,Te="translations",vV=!1,Ja="https://cdn.jsdelivr.net/npm/@zappway/embeds@2.0.3/dist/locales",QS=YS,MRt=new Set(QS),Sf={main:{localeDirectory:"locales-ZappWay",splitDirectories:["i18n-split"],browserDirectories:[],cdnDirectory:"locales-ZappWay",cdnSplit:!0},lp:{localeDirectory:"locales-ZappWay-LP",splitDirectories:["i18n-split-lp","i18n-split-zappway-lp"],browserDirectories:[],cdnDirectory:"locales-ZappWay-LP",cdnSplit:!1},integrations:{localeDirectory:"locales-Integrations",splitDirectories:["i18n-split-integrations"],browserDirectories:[],cdnDirectory:"locales-Integrations",cdnSplit:!1},emails:{localeDirectory:"locales-Emails",splitDirectories:["i18n-split-emails"],browserDirectories:[],cdnDirectory:"locales-Emails",cdnSplit:!1},workers:{localeDirectory:"locales-Workers",splitDirectories:["i18n-split-workers"],browserDirectories:[],cdnDirectory:"locales-Workers",cdnSplit:!1},zappflux:{localeDirectory:"locales-ZappFlux",splitDirectories:["i18n-split-zappflux"],browserDirectories:[],cdnDirectory:"locales-ZappFlux",cdnSplit:!1},"zappflux-lp":{localeDirectory:"locales-ZappFlux-LP",splitDirectories:["i18n-split-zappflux-lp"],browserDirectories:[],cdnDirectory:"locales-ZappFlux-LP",cdnSplit:!1},"zappflux-templates":{localeDirectory:"locales-ZappFlux-Templates",splitDirectories:["i18n-split-zappflux-templates"],browserDirectories:[],cdnDirectory:"locales-ZappFlux-Templates",cdnSplit:!1,namespaceFiles:!0},"pitch-deck":{localeDirectory:"locales-PitchDeck",splitDirectories:["i18n-split-pitch-deck"],browserDirectories:[],cdnDirectory:"locales-PitchDeck",cdnSplit:!1},reports:{localeDirectory:"locales-Reports",splitDirectories:["i18n-split-reports"],browserDirectories:[],cdnDirectory:"locales-Reports",cdnSplit:!1},rag:{localeDirectory:"locales-RAG",splitDirectories:["i18n-split-rag"],browserDirectories:[],cdnDirectory:"locales-RAG",cdnSplit:!1}},hy={lp:"lp",rag:"rag",flow:"zappflux",emails:"emails",workers:"workers",reports:"reports",zappflux:"zappflux",integrations:"integrations","pitch-deck":"pitch-deck","zappflux-lp":"zappflux-lp","zappflux-templates":"zappflux-templates",WhatsAppSettings:"integrations",WhatsAppIntegrationPage:"integrations",WhatsAppBusiness_IntegrationSettings:"integrations",TelegramSettings:"integrations",Telegram_IntegrationSettings:"integrations",InstagramSettings:"integrations",Instagram_IntegrationSettings:"integrations",MessengerSettings:"integrations",Messenger_IntegrationSettings:"integrations",TikTokSettings:"integrations",TikTok_IntegrationSettings:"integrations",ZendeskSettings:"integrations",Zendesk_IntegrationSettings:"integrations",SlackSettings:"integrations",ShopifySettings:"integrations",ConnectWhatsApp:"integrations",QRCode:"integrations",crisp:"integrations",crispConfig:"integrations",crispSettingsModal:"integrations"},ly=null,xf=null,Wi=null,XS=null,jc=null,Ts=null,cr=null,KS=null,bV=globalThis.eval;function xV(){if(Wi)return Wi;try{if(typeof __non_webpack_require__=="function")Wi=__non_webpack_require__;else if(typeof Q0=="function")Wi=Q0;else if(globalThis.require)Wi=globalThis.require;else{let e="require";Wi=globalThis[e]||bV(e)}return Wi}catch(e){return console.error(" [i18n-runtime-loader] Critical: Failed to obtain require function",e),null}}function Hc(){if(typeof window<"u")return!1;if(ly&&xf)return!0;try{let e=xV();return e?(ly=e("fs"),xf=e("path"),XS=ly.readFileSync,jc=ly.existsSync,Ts=xf.join,cr=xf.resolve,KS=xf.dirname,!0):!1}catch{return!1}}var cy=new Map,PM=new Map;function JS(e){if(Hc(),!jc)return[];let t=new Set;return e.filter(r=>!!r).filter(r=>t.has(r)||!jc(r)?!1:(t.add(r),!0))}function SV(e){if(Hc(),!(!Wi||!KS))try{let r=Wi.resolve.call(Wi,`${e}/package.json`);return KS(r)}catch{return}}var uy=null;function TV(){if(uy)return uy;if(Hc(),!cr)return[];let e=process.cwd(),t=S.ZW_I18N_CACHE_ROOT;return uy=JS([t,cr(e,".next/cache"),cr(e,"../.next/cache"),cr(e,"../../.next/cache"),cr(e,"apps/zappway/dashboard/.next/cache"),cr(e,"packages/zappflux/packages/app/.next/cache"),"/var/task/.next/cache","/var/task/apps/zappway/dashboard/.next/cache"]),uy}var dy=null;function wV(){if(dy)return dy;if(Hc(),!cr||!Ts)return[];let e=process.cwd(),t=SV("@zappway/lib");return dy=JS([t,cr(e,"packages/zappway/lib"),cr(e,"../packages/zappway/lib"),cr(e,"../../packages/zappway/lib"),cr(e,"../../../packages/zappway/lib"),cr(e,"../../../../packages/zappway/lib"),cr(e,"node_modules/@zappway/lib"),cr(e,"../node_modules/@zappway/lib"),cr(e,"../../node_modules/@zappway/lib"),cr(e,"../../../node_modules/@zappway/lib"),cr(e,"../../../../node_modules/@zappway/lib")]).filter(r=>jc(Ts(r,"locales"))),dy}var qS=new Map;function RM(e){if(qS.has(e))return qS.get(e);if(Hc(),!XS||!jc||!jc(e))return null;try{let t=XS(e,"utf8"),r=JSON.parse(t);return qS.set(e,r),r}catch{return null}}function ZS(e,t){if(!e)return null;let r=t||Te;if(r===Te)return e;if(e[r])return e[r];let n=r.split("."),i=e,o=!0;for(let s of n)if(i&&typeof i=="object"&&s in i)i=i[s];else{o=!1;break}return o&&i&&typeof i=="object"?i:r!==Te?{}:e}var fy=null;function CV(){return fy||(fy=JS([...TV(),...wV()]),fy)}function my(e){return _M(e,Qe)}function tT(e,t,r){if(typeof window<"u"||!Hc())return{};let n=my(e),i=r||Te,o=`node:${n}:${t}:${i}`,s=cy.get(o);if(s)return s;let a=Sf[t];if(t==="main"&&i!==Te&&hy[i])return cy.set(o,{}),{};let l=CV(),c=[];for(let d of l){for(let f of a.splitDirectories)c.push(Ts(d,f,n,`${i}.json`)),c.push(Ts(d,"locales",f,n,`${i}.json`));c.push(Ts(d,a.localeDirectory,n,`${i}.json`)),c.push(Ts(d,"locales",a.localeDirectory,n,`${i}.json`))}for(let d of c){let f=RM(d);if(f&&Object.keys(f).length>0)return cy.set(o,f),f}let u={};for(let d of l){let f=Ts(d,"locales",a.localeDirectory,n,"translations.json"),h=RM(f);if(h){if(u=ZS(h,r)||{},Object.keys(u).length>0)break}else vV&&r===Te&&console.warn(` [i18n] Bundle not found or empty: ${f} (CWD: ${typeof process<"u"?process.cwd():"unknown"})`)}return Object.keys(u).length===0&&n!==Qe?tT(Qe,t,r):(cy.set(o,u),u)}function eT(e,t,r){let n=t.map(i=>tT(e,i,r));return OM(n)}async function py(e,t=2e3){let r=new AbortController,n=setTimeout(()=>r.abort(),t);try{let i=await fetch(`${e}?v=${Date.now()}`,{signal:r.signal,cache:"force-cache"});return clearTimeout(n),i.ok?await i.json():null}catch{return clearTimeout(n),null}}async function EV(e,t,r){let n=my(e),i=r||Te,s=`${typeof window>"u"?"node":"browser"}:${n}:${t}:${i}`,a=PM.get(s);if(a)return await a||{};let l=Sf[t],c=(async()=>{if(typeof window>"u"){let u=tT(e,t,r);if(u&&Object.keys(u).length>0)return u;let d=t==="main"&&i!==Te&&!i.includes(".")?`${Ja}/${l.cdnDirectory}/${n}/${i}.json`:`${Ja}/${l.cdnDirectory}/${n}/translations.json`;try{let f=await py(d,3e3);if(f){let h=ZS(f,r);if(h&&Object.keys(h).length>0)return h}}catch{}}else{for(let h of l.browserDirectories){let m=await py(`/locales-runtime/${h}/${n}/${i}.json`);if(m)return m}let u=await py(`/api/i18n/${n}/${i}`);if(u)return u;let d=t==="main"&&i!==Te&&!i.includes(".")?`${Ja}/${l.cdnDirectory}/${n}/${i}.json`:`${Ja}/${l.cdnDirectory}/${n}/translations.json`,f=await py(d);if(f)return ZS(f,r)||{}}return{}})();return PM.set(s,c),c||{}}async function gy(e,t,r){let n=t.map(o=>EV(e,o,r)),i=await Promise.all(n);return OM(i)}function kM(e,t){let r={...e};for(let[n,i]of Object.entries(t||{})){let o=r[n];o&&typeof o=="object"&&i&&typeof i=="object"&&!Array.isArray(i)?r[n]=kM(o,i):r[n]=i}return r}function OM(e){return e.reduce((t,r)=>kM(t,r||{}),{})}var iT=["lp","rag","main","emails","reports","workers","zappflux","zappflux-lp","integrations","zappflux-templates"],rT={},Uc={},nT=new Map;function sT(){let e=typeof window<"u"?window.location.pathname.split("/")[1]:null,t=typeof window<"u"?new URL(window.location.href).searchParams.get("lang")||new URL(window.location.href).searchParams.get("locale"):null,r=e||t||typeof document>"u"?null:document.cookie.split(";").find(o=>o.trim().startsWith("NEXT_LOCALE="))?.split("=")[1],n=globalThis.headers?.get?.("accept-language")?.split(",")[0],i=typeof navigator<"u"?navigator.language:null;return vy(e||t||r||n||i||Qe)}function vy(e){return my(e)}function WV(e){let t=e&&e.length?e:[Te];return Array.from(new Set([Te,...t]))}function Tf(e){return!e||Object.keys(e).length===0}function yy(e,t){if(!e)return null;let r=t||Te;if(r===Te||r!==Te&&hy[r]===r)return e;if(e[r])return e[r];let n=e,i=!0,o=r.split(".");for(let s of o)if(n&&typeof n=="object"&&s in n)n=n[s];else{i=!1;break}return i&&n&&typeof n=="object"?n:r===Te?e:{}}function NM(e,t=Te){let r=vy(e),n=`fs:${r}:${t}`,i=Uc[n];if(i)return i;let o=t===Te?void 0:t,s=eT(r,iT,o);if(!Tf(s))return Uc[n]=s,s;let a=`fs:${Qe}:${t}`,l=Uc[a];if(l)return l;let c=eT(Qe,iT,o);if(!Tf(c))return Uc[a]=c,c;throw new oy("INTERNAL_ERROR",500)}async function oT(e,t=3e3){let r=new AbortController,n=setTimeout(()=>r.abort(),t);try{let i=await fetch(e,{signal:r.signal,cache:"force-cache"});return i.ok?await i.json():null}catch{return null}finally{clearTimeout(n)}}async function YV(e,t="main"){if(t==="main")return null;let r=Sf[t].cdnDirectory,n=`bundle:${e}:${r}`;if(nT.has(n))return nT.get(n);let i=(async()=>{let o=`${Ja}/${r}/${e}/translations.json`;return await oT(o,3e3)})();return nT.set(n,i),i}async function IM(e,t=Te,r){let n=vy(e),i=`cdn:${n}:${t}`,o=Uc[i];if(o)return o;let s=hy[t]||"main",a=Sf[s].cdnDirectory,l=async m=>{let y=t.split(".")[0],x=`${Ja}/${a}/${m}/${y}.json`,g=await oT(x,2e3);return g?yy(g,t):null},c=async m=>{if(!r)return null;let y=t.split(".")[0],x=`${r}/api/i18n/${m}/${y}`,g=await oT(x,2e3);return yy(g||{},t)},u=async m=>{try{let{loadManualTranslationsWithZappFlux:y}=await Promise.resolve().then(()=>(LM(),MM)),x=await y(m);return yy(x||{},t)}catch{return null}},d=async m=>{try{return await gy(m,iT,t)}catch{return null}},f=null;if(s==="main")f=await c(n),f||(f=await l(n)),f||(f=await u(n)),f||(f=await d(n)),f||(f=await c(Qe)),f||(f=await l(Qe)),f||(f=await u(Qe)),f||(f=await d(Qe));else{if(f=await c(n),Tf(f||{})){let m=await YV(n,s);f=yy(m||{},t)}Tf(f||{})&&(f=await u(n)),Tf(f||{})&&(f=await d(n))}let h=f||{};return Uc[i]=h,h}async function BM(e,t,r){let n=vy(e||sT()),i=WV(t),o=r||(typeof window<"u"?window.location.origin:void 0),s=typeof window>"u"?"node":"browser",a=`inst:${n}:${i.slice().sort().join("|")}:${s}`;if(rT[a])return rT[a];let l=typeof window>"u",c={[n]:{}};for(let d of i)c[n][d]=l?NM(n,d):await IM(n,d,o);if(n!==Qe){c[Qe]={};for(let d of i)c[Qe][d]=l?NM(Qe,d):await IM(Qe,d,o)}let u=VA();return await u.init({lng:n,fallbackLng:Qe,defaultNS:i[0],ns:i,resources:c,interpolation:{escapeValue:!1}}),rT[a]=u,u}p();p();var{slice:qV,forEach:XV}=[];function KV(e){return XV.call(qV.call(arguments,1),t=>{if(t)for(let r in t)e[r]===void 0&&(e[r]=t[r])}),e}function ZV(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(r=>r.test(e))}var zM=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,QV=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t),o=`${e}=${i}`;if(n.maxAge>0){let s=n.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(s)}`}if(n.domain){if(!zM.test(n.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${n.domain}`}if(n.path){if(!zM.test(n.path))throw new TypeError("option path is invalid");o+=`; Path=${n.path}`}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(o+="; HttpOnly"),n.secure&&(o+="; Secure"),n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return n.partitioned&&(o+="; Partitioned"),o},FM={create(e,t,r,n){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+r*60*1e3)),n&&(i.domain=n),document.cookie=QV(e,t,i)},read(e){let t=`${e}=`,r=document.cookie.split(";");for(let n=0;n<r.length;n++){let i=r[n];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}},JV={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return FM.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:r,cookieMinutes:n,cookieDomain:i,cookieOptions:o}=t;r&&typeof document<"u"&&FM.create(r,e,n,i,o)}},t9={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,r;if(typeof window<"u"){let{search:n}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));let o=n.substring(1).split("&");for(let s=0;s<o.length;s++){let a=o[s].indexOf("=");a>0&&o[s].substring(0,a)===t&&(r=o[s].substring(a+1))}}return r}},e9={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:r}=e,n;if(typeof window<"u"){let{hash:i}=window.location;if(i&&i.length>2){let o=i.substring(1);if(t){let s=o.split("&");for(let a=0;a<s.length;a++){let l=s[a].indexOf("=");l>0&&s[a].substring(0,l)===t&&(n=s[a].substring(l+1))}}if(n)return n;if(!n&&r>-1){let s=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?s[typeof r=="number"?r:0]?.replace("/",""):void 0}}}return n}},Vc=null,$M=()=>{if(Vc!==null)return Vc;try{if(Vc=typeof window<"u"&&window.localStorage!==null,!Vc)return!1;let e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Vc=!1}return Vc},r9={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&$M())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:r}=t;r&&$M()&&window.localStorage.setItem(r,e)}},Gc=null,jM=()=>{if(Gc!==null)return Gc;try{if(Gc=typeof window<"u"&&window.sessionStorage!==null,!Gc)return!1;let e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Gc=!1}return Gc},n9={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&jM())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:r}=t;r&&jM()&&window.sessionStorage.setItem(r,e)}},i9={name:"navigator",lookup(e){let t=[];if(typeof navigator<"u"){let{languages:r,userLanguage:n,language:i}=navigator;if(r)for(let o=0;o<r.length;o++)t.push(r[o]);n&&t.push(n),i&&t.push(i)}return t.length>0?t:void 0}},o9={name:"htmlTag",lookup(e){let{htmlTag:t}=e,r,n=t||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(r=n.getAttribute("lang")),r}},s9={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;let r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(r)?r[typeof t=="number"?t:0]?.replace("/",""):void 0}},a9={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e,r=typeof t=="number"?t+1:1,n=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[r]}},HM=!1;try{document.cookie,HM=!0}catch{}var UM=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];HM||UM.splice(1,1);var l9=()=>({order:UM,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),wf=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,r)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=KV(r,this.options||{},l9()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(JV),this.addDetector(t9),this.addDetector(r9),this.addDetector(n9),this.addDetector(i9),this.addDetector(o9),this.addDetector(s9),this.addDetector(a9),this.addDetector(e9)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,r=[];return t.forEach(n=>{if(this.detectors[n]){let i=this.detectors[n].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(r=r.concat(i))}}),r=r.filter(n=>n!=null&&!ZV(n)).map(n=>this.options.convertDetectedLanguage(n)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}cacheUserLanguage(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||r.forEach(n=>{this.detectors[n]&&this.detectors[n].cacheUserLanguage(t,this.options)}))}};wf.type="languageDetector";var c9={type:"backend",init:()=>{},read:(e,t,r)=>{gy(e,["main"],t).then(n=>{t===Te&&n&&Object.entries(n).forEach(([i,o])=>{i!==Te&&o&&typeof o=="object"&&!Array.isArray(o)&&nr.addResourceBundle(e,i,o,!0,!0)}),r(null,n)}).catch(n=>{r(n,null)})}};nr.use(c9).use(wf).use(Gh).init({fallbackLng:Qe,supportedLngs:QS,ns:[Te],defaultNS:Te,partialBundledLanguages:!0,nonExplicitSupportedLngs:!0,nsSeparator:":",keySeparator:".",interpolation:{escapeValue:!1},detection:{order:["cookie","localStorage","sessionStorage","navigator"],lookupCookie:"NEXT_LOCALE",caches:["cookie"]}});var by=nr;p();var tl=D(F());function u9(){if(typeof document>"u")return;let e=document.documentElement.style.colorScheme;if(e==="light"||e==="dark")return e;if(document.body?.classList.contains("light"))return"light";if(document.body?.classList.contains("dark"))return"dark";if(typeof window<"u"&&window.matchMedia){if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light";if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark"}}function aT(e,t){let{mode:r}=nS(),[n,i]=(0,tl.useState)(!1),[o,s]=(0,tl.useState)(void 0),a=t?.syncDocumentColorScheme??!0;(0,tl.useEffect)(()=>{s(u9())},[]),(0,tl.useEffect)(()=>{i(!0)},[]),(0,tl.useEffect)(()=>{!a||!n||!r||typeof document>"u"||document.documentElement.setAttribute("data-color-scheme",r)},[r,n,a]);let l=n?e??r:o;return{safeMode:l,hasMounted:n,isDark:l==="dark",isLight:l==="light"}}var Q=D(Z()),VM=mi`
120
+ `),z8),({ownerState:e,theme:t})=>{let{borderRadius:r,height:n}=Nc({theme:t,ownerState:e},["borderRadius","height"]);return O({},r!==void 0&&{"--LinearProgress-radius":r},n!==void 0&&{"--LinearProgress-thickness":n})}),j8=cM.forwardRef(function(t,r){let n=zt({props:t,name:"JoyLinearProgress"}),{children:i,className:o,component:s,color:a="primary",size:l="md",variant:c="soft",thickness:u,determinate:d=!1,value:f=d?0:25,style:h,slots:m={},slotProps:y={}}=n,x=at(n,B8),g=O({},n,{component:s,color:a,size:l,variant:c,thickness:u,value:f,determinate:d,instanceSize:t.size}),v=F8(g),b=O({},x,{component:s,slots:m,slotProps:y}),[w,T]=xt("root",{ref:r,className:Lt(v.root,o),elementType:$8,externalForwardedProps:b,ownerState:g,additionalProps:O({as:s,role:"progressbar",style:O({},{"--LinearProgress-percent":f},h)},typeof f=="number"&&d&&{"aria-valuenow":Math.round(f)})});return(0,uM.jsx)(w,O({},T,{children:i}))}),Jg=j8;p();p();he();wt();var $c=D(F());Wt();p();function dM(e){return Yt("MuiMenu",e)}var qEt=qt("MuiMenu",["root","listbox","expanded","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);var Fc=D(Z()),H8=["actions","children","color","component","disablePortal","keepMounted","id","invertedColors","onItemsChange","modifiers","variant","size","slots","slotProps"],U8=e=>{let{open:t,variant:r,color:n,size:i}=e,o={root:["root",t&&"expanded",r&&`variant${it(r)}`,n&&`color${it(n)}`,i&&`size${it(i)}`],listbox:["listbox"]};return Pt(o,dM,{})},fM=rt(LS,{name:"JoyMenu",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,n;let i=(r=e.variants[t.variant])==null?void 0:r[t.color];return[O({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":i?.backgroundColor||i?.background||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},CD,{borderRadius:`var(--List-radius, ${e.vars.radius.sm})`,boxShadow:e.shadow.md,overflow:"auto",zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(i!=null&&i.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup},t.variant==="solid"&&t.color&&t.invertedColors&&df(t.color)(e),t.variant==="soft"&&t.color&&t.invertedColors&&ff(t.color)(e),(n=e.variants[t.variant])==null?void 0:n[t.color])]}),V8=$c.forwardRef(function(t,r){var n;let i=zt({props:t,name:"JoyMenu"}),{actions:o,children:s,color:a="neutral",component:l,disablePortal:c=!1,keepMounted:u=!1,id:d,invertedColors:f=!1,onItemsChange:h,modifiers:m,variant:y="outlined",size:x="md",slots:g={},slotProps:v={}}=i,b=at(i,H8),{contextValue:w,getListboxProps:T,dispatch:C,open:E,triggerElement:A}=dS({onItemsChange:h,id:d,listboxRef:r});$c.useImperativeHandle(o,()=>({dispatch:C,resetHighlight:()=>C({type:re.resetHighlight,event:null})}),[C]);let _=O({},i,{disablePortal:c,invertedColors:f,color:a,variant:y,size:x,open:E,nesting:!1,row:!1}),P=U8(_),k=O({},b,{component:l,slots:g,slotProps:v}),I=$c.useMemo(()=>[{name:"offset",options:{offset:[0,4]}},...m||[]],[m]),M=Sa({elementType:fM,getSlotProps:T,externalForwardedProps:k,externalSlotProps:{},ownerState:_,additionalProps:{anchorEl:A,open:E&&A!==null,disablePortal:c,keepMounted:u,modifiers:I},className:P.root});return(0,Fc.jsx)(fM,O({},M,!((n=i.slots)!=null&&n.root)&&{as:Lc,slots:{root:l||"ul"}},{children:(0,Fc.jsx)(FO,{value:w,children:(0,Fc.jsx)(LD,{variant:f?void 0:y,color:a,children:(0,Fc.jsx)(wD.Provider,{value:"menu",children:(0,Fc.jsx)(ED,{nested:!0,children:s})})})})}))}),ty=V8;p();p();he();wt();var ey=D(F());Wt();p();function pM(e){return Yt("MuiMenuButton",e)}var SAt=qt("MuiMenuButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);var gf=D(Z()),hM=D(Z()),G8=["children","color","component","disabled","endDecorator","loading","loadingPosition","loadingIndicator","size","slotProps","slots","startDecorator","variant"],W8=e=>{let{color:t,disabled:r,fullWidth:n,size:i,variant:o,loading:s}=e,a={root:["root",r&&"disabled",n&&"fullWidth",o&&`variant${it(o)}`,t&&`color${it(t)}`,i&&`size${it(i)}`,s&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]};return Pt(a,pM,{})},Y8=rt("button",{name:"JoyMenuButton",slot:"Root",overridesResolver:(e,t)=>t.root})(US),q8=rt("span",{name:"JoyMenuButton",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),X8=rt("span",{name:"JoyMenuButton",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),K8=rt("span",{name:"JoyMenuButton",slot:"LoadingCenter",overridesResolver:(e,t)=>t.loadingIndicatorCenter})(({theme:e,ownerState:t})=>{var r,n;return O({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:(r=e.variants[t.variant])==null||(r=r[t.color])==null?void 0:r.color},t.disabled&&{color:(n=e.variants[`${t.variant}Disabled`])==null||(n=n[t.color])==null?void 0:n.color})}),Z8=ey.forwardRef(function(t,r){var n;let i=zt({props:t,name:"JoyMenuButton"}),{children:o,color:s="neutral",component:a,disabled:l=!1,endDecorator:c,loading:u=!1,loadingPosition:d="center",loadingIndicator:f,size:h="md",slotProps:m={},slots:y={},startDecorator:x,variant:g="outlined"}=i,v=at(i,G8),b=ey.useContext(Bc),w=t.variant||b.variant||g,T=t.size||b.size||h,C=(n=t.disabled)!=null?n:b.disabled||l||u,{getRootProps:E,open:A,active:_}=yS({rootRef:r,disabled:C}),P=f??(0,gf.jsx)(Wn,{color:s,thickness:{sm:2,md:3,lg:4}[T]||3}),k=O({},i,{active:_,color:s,disabled:C,open:A,size:T,variant:w}),I=W8(k),M=O({},v,{component:a,slots:y,slotProps:m}),[z,B]=xt("root",{elementType:Y8,getSlotProps:E,externalForwardedProps:M,ref:r,ownerState:k,className:I.root}),[R,L]=xt("startDecorator",{className:I.startDecorator,elementType:q8,externalForwardedProps:M,ownerState:k}),[G,U]=xt("endDecorator",{className:I.endDecorator,elementType:X8,externalForwardedProps:M,ownerState:k}),[X,J]=xt("loadingIndicatorCenter",{className:I.loadingIndicatorCenter,elementType:K8,externalForwardedProps:M,ownerState:k});return(0,hM.jsxs)(z,O({},B,{children:[(x||u&&d==="start")&&(0,gf.jsx)(R,O({},L,{children:u&&d==="start"?P:x})),o,u&&d==="center"&&(0,gf.jsx)(X,O({},J,{children:P})),(c||u&&d==="end")&&(0,gf.jsx)(G,O({},U,{children:u&&d==="end"?P:c}))]}))}),ry=Z8;p();p();wt();he();var Za=D(F());Wt();p();function mM(e){return Yt("MuiMenuItem",e)}var VAt=qt("MuiMenuItem",["root","focusVisible","disabled","selected","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);var yf=D(Z()),Q8=["children","disabled","component","selected","color","orientation","variant","slots","slotProps","id"],J8=e=>{let{focusVisible:t,disabled:r,selected:n,color:i,variant:o}=e,s={root:["root",t&&"focusVisible",r&&"disabled",n&&"selected",i&&`color${it(i)}`,o&&`variant${it(o)}`]};return Pt(s,mM,{})},tV=rt(NS,{name:"JoyMenuItem",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eV=Za.memo(Za.forwardRef(function(t,r){let n=zt({props:t,name:"JoyMenuItem"}),i=Za.useContext(Gg),{children:o,disabled:s=!1,component:a="li",selected:l=!1,color:c="neutral",orientation:u="horizontal",variant:d="plain",slots:f={},slotProps:h={},id:m}=n,y=at(n,Q8),{variant:x=d,color:g=c}=MD(t.variant,t.color),{getRootProps:v,disabled:b,focusVisible:w}=vS({id:m,disabled:s,rootRef:r}),T=O({},n,{component:a,color:g,disabled:b,focusVisible:w,orientation:u,selected:l,row:i,variant:x}),C=J8(T),E=O({},y,{component:a,slots:f,slotProps:h}),[A,_]=xt("root",{ref:r,elementType:tV,getSlotProps:v,externalForwardedProps:E,className:C.root,ownerState:T});return(0,yf.jsx)(PD.Provider,{value:u,children:(0,yf.jsx)(A,O({},_,{children:o}))})})),rV=Za.forwardRef(function(t,r){let{contextValue:n,id:i}=WO(t.id);return(0,yf.jsx)(ys.Provider,{value:n,children:(0,yf.jsx)(eV,O({},t,{id:i,ref:r}))})}),ny=rV;p();p();he();wt();var yM=D(F());rr();p();function gM(e){return Yt("MuiScopedCssBaseline",e)}var h_t=qt("MuiScopedCssBaseline",["root"]);var vM=D(Z()),nV=["className","component","disableColorScheme","slots","slotProps"],iV=()=>Pt({root:["root"]},gM,{}),oV=rt("div",{name:"JoyScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{let r={};return!t.disableColorScheme&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,i])=>{var o;r[`&${e.getColorSchemeSelector(n).replace(/\s*&/,"")}`]={colorScheme:(o=i.palette)==null?void 0:o.mode}}),O({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",color:e.vars.palette.text.primary},e.typography["body-md"],{backgroundColor:e.vars.palette.background.body,"@media print":{backgroundColor:"#fff"},"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:"bold"}},r)}),sV=yM.forwardRef(function(t,r){let n=zt({props:t,name:"JoyScopedCssBaseline"}),{className:i,component:o="div",disableColorScheme:s=!1,slots:a={},slotProps:l={}}=n,c=at(n,nV),u=O({},n,{component:o,disableColorScheme:s}),d=iV(),f=O({},c,{component:o,slots:a,slotProps:l}),[h,m]=xt("root",{ref:r,className:Lt(d.root,i),elementType:oV,externalForwardedProps:f,ownerState:u});return(0,vM.jsx)(h,O({},m))}),VS=sV;p();p();he();wt();var xM=D(F());rr();Wt();p();function bM(e){return Yt("MuiSheet",e)}var M_t=qt("MuiSheet",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var SM=D(Z()),aV=["className","color","component","variant","invertedColors","slots","slotProps"],lV=e=>{let{variant:t,color:r}=e,n={root:["root",t&&`variant${it(t)}`,r&&`color${it(r)}`]};return Pt(n,bM,{})},cV=rt("div",{name:"JoySheet",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,n;let i=(r=e.variants[t.variant])==null?void 0:r[t.color],{borderRadius:o,bgcolor:s,backgroundColor:a,background:l}=Nc({theme:e,ownerState:t},["borderRadius","bgcolor","backgroundColor","background"]),c=ji(e,`palette.${s}`)||s||ji(e,`palette.${a}`)||a||l||i?.backgroundColor||i?.background||e.vars.palette.background.surface;return[O({"--Icon-color":t.color!=="neutral"||t.variant==="solid"?"currentColor":e.vars.palette.text.icon,"--ListItem-stickyBackground":c==="transparent"?"initial":c,"--Sheet-background":c==="transparent"?"initial":c},o!==void 0&&{"--List-radius":`calc(${o} - var(--variant-borderWidth, 0px))`,"--unstable_actionRadius":`calc(${o} - var(--variant-borderWidth, 0px))`},{backgroundColor:e.vars.palette.background.surface,position:"relative"}),O({},e.typography["body-md"],t.variant==="solid"&&t.color&&t.invertedColors&&df(t.color)(e),t.variant==="soft"&&t.color&&t.invertedColors&&ff(t.color)(e),(n=e.variants[t.variant])==null?void 0:n[t.color],i)]}),uV=xM.forwardRef(function(t,r){let n=zt({props:t,name:"JoySheet"}),{className:i,color:o="neutral",component:s="div",variant:a="plain",invertedColors:l=!1,slots:c={},slotProps:u={}}=n,d=at(n,aV),f=O({},n,{color:o,component:s,invertedColors:l,variant:a}),h=lV(f),m=O({},d,{component:s,slots:c,slotProps:u}),[y,x]=xt("root",{ref:r,className:Lt(h.root,i),elementType:cV,externalForwardedProps:m,ownerState:f});return(0,SM.jsx)(y,O({},x))}),vf=uV;p();p();var dV=Rg({createStyledComponent:rt("div",{name:"JoyStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>zt({props:e,name:"JoyStack"})}),Qa=dV;p();p();he();wt();var ze=D(F());rr();Wt();p();function TM(e){return Yt("MuiTooltip",e)}var fPt=qt("MuiTooltip",["root","tooltipArrow","arrow","touch","placementLeft","placementRight","placementTop","placementBottom","colorPrimary","colorDanger","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);var AM=D(Z()),GS=D(Z()),fV=["children","className","component","arrow","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","disablePortal","direction","keepMounted","modifiers","placement","title","color","variant","size","slots","slotProps"],pV=e=>{let{arrow:t,variant:r,color:n,size:i,placement:o,touch:s}=e,a={root:["root",t&&"tooltipArrow",s&&"touch",i&&`size${it(i)}`,n&&`color${it(n)}`,r&&`variant${it(r)}`,`tooltipPlacement${it(o.split("-")[0])}`],arrow:["arrow"]};return Pt(a,TM,{})},hV=rt("div",{name:"JoyTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var r,n,i;let o=(r=t.variants[e.variant])==null?void 0:r[e.color];return O({},e.size==="sm"&&{"--Icon-fontSize":t.vars.fontSize.md,"--Tooltip-arrowSize":"8px",padding:t.spacing(.25,.625)},e.size==="md"&&{"--Icon-fontSize":t.vars.fontSize.lg,"--Tooltip-arrowSize":"10px",padding:t.spacing(.5,.75)},e.size==="lg"&&{"--Icon-fontSize":t.vars.fontSize.xl,"--Tooltip-arrowSize":"12px",padding:t.spacing(.75,1)},{zIndex:t.vars.zIndex.tooltip,borderRadius:t.vars.radius.sm,boxShadow:t.shadow.sm,wordWrap:"break-word",position:"relative"},e.disableInteractive&&{pointerEvents:"none"},t.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[e.size]}`],o,!o.backgroundColor&&{backgroundColor:t.vars.palette.background.surface},{"&::before":{content:'""',display:"block",position:"absolute",width:(n=e.placement)!=null&&n.match(/(top|bottom)/)?"100%":"calc(10px + var(--variant-borderWidth, 0px))",height:(i=e.placement)!=null&&i.match(/(top|bottom)/)?"calc(10px + var(--variant-borderWidth, 0px))":"100%"},'&[data-popper-placement*="bottom"]::before':{top:0,left:0,transform:"translateY(-100%)"},'&[data-popper-placement*="left"]::before':{top:0,right:0,transform:"translateX(100%)"},'&[data-popper-placement*="right"]::before':{top:0,left:0,transform:"translateX(-100%)"},'&[data-popper-placement*="top"]::before':{bottom:0,left:0,transform:"translateY(100%)"}})}),mV=rt("span",{name:"JoyTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e,ownerState:t})=>{var r,n,i;let o=(r=e.variants[t.variant])==null?void 0:r[t.color];return{"--unstable_Tooltip-arrowRotation":0,width:"var(--Tooltip-arrowSize)",height:"var(--Tooltip-arrowSize)",boxSizing:"border-box","&::before":{content:'""',display:"block",position:"absolute",width:0,height:0,border:"calc(var(--Tooltip-arrowSize) / 2) solid",borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:(n=o?.backgroundColor)!=null?n:e.vars.palette.background.surface,borderRightColor:(i=o?.backgroundColor)!=null?i:e.vars.palette.background.surface,borderRadius:"0px 2px 0px 0px",boxShadow:`var(--variant-borderWidth, 0px) calc(-1 * var(--variant-borderWidth, 0px)) 0px 0px ${o.borderColor}`,transformOrigin:"center center",transform:"rotate(calc(-45deg + 90deg * var(--unstable_Tooltip-arrowRotation)))"},'[data-popper-placement*="bottom"] &':{top:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="top"] &':{"--unstable_Tooltip-arrowRotation":2,bottom:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="left"] &':{"--unstable_Tooltip-arrowRotation":1,right:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="right"] &':{"--unstable_Tooltip-arrowRotation":3,left:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"}}}),iy=!1,wM=new mo,bf={x:0,y:0};function CM(e,t){return r=>{t&&t(r),e(r)}}function EM(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}var gV=ze.forwardRef(function(t,r){var n;let i=zt({props:t,name:"JoyTooltip"}),{children:o,className:s,component:a,arrow:l=!1,describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:f=!1,disableTouchListener:h=!1,enterDelay:m=100,enterNextDelay:y=0,enterTouchDelay:x=700,followCursor:g=!1,id:v,leaveDelay:b=0,leaveTouchDelay:w=1500,onClose:T,onOpen:C,open:E,disablePortal:A,direction:_,keepMounted:P,modifiers:k,placement:I="bottom",title:M,color:z="neutral",variant:B="solid",size:R="md",slots:L={},slotProps:G={}}=i,U=at(i,fV),[X,J]=ze.useState(),[Y,et]=ze.useState(null),ct=ze.useRef(!1),St=f||g,ot=os(),q=os(),j=os(),K=os(),[nt,mt]=ma({controlled:E,default:!1,name:"Tooltip",state:"open"}),lt=nt,Tt=zr(v),Nt=ze.useRef(void 0),kt=ga(()=>{Nt.current!==void 0&&(document.body.style.WebkitUserSelect=Nt.current,Nt.current=void 0),K.clear()});ze.useEffect(()=>kt,[kt]);let te=Ft=>{wM.clear(),iy=!0,mt(!0),C&&!lt&&C(Ft)},Xt=ga(Ft=>{wM.start(800+b,()=>{iy=!1}),mt(!1),T&&lt&&T(Ft),ot.start(150,()=>{ct.current=!1})}),Ut=Ft=>{ct.current&&Ft.type!=="touchstart"||(X&&X.removeAttribute("title"),q.clear(),j.clear(),m||iy&&y?q.start(iy?y:m,()=>{te(Ft)}):te(Ft))},Pi=Ft=>{q.clear(),j.start(b,()=>{Xt(Ft)})},{isFocusVisibleRef:Ar,onBlur:Lr,onFocus:oi,ref:Ee}=go(),[,Ur]=ze.useState(!1),H=Ft=>{Lr(Ft),Ar.current===!1&&(Ur(!1),Pi(Ft))},st=Ft=>{X||J(Ft.currentTarget),oi(Ft),Ar.current===!0&&(Ur(!0),Ut(Ft))},er=Ft=>{ct.current=!0;let eo=o.props;eo.onTouchStart&&eo.onTouchStart(Ft)},pr=Ft=>{er(Ft),j.clear(),ot.clear(),kt(),Nt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",K.start(x,()=>{document.body.style.WebkitUserSelect=Nt.current,Ut(Ft)})},ee=Ft=>{o.props.onTouchEnd&&o.props.onTouchEnd(Ft),kt(),j.start(w,()=>{Xt(Ft)})};ze.useEffect(()=>{if(!lt)return;function Ft(eo){(eo.key==="Escape"||eo.key==="Esc")&&Xt(eo)}return document.addEventListener("keydown",Ft),()=>{document.removeEventListener("keydown",Ft)}},[Xt,lt]);let ae=Mt(J,r),hr=Mt(Ee,ae),Ks=Mt(Ta(o),hr);typeof M!="number"&&!M&&(lt=!1);let zu=ze.useRef(null),Pn=Ft=>{let eo=o.props;eo.onMouseMove&&eo.onMouseMove(Ft),bf={x:Ft.clientX,y:Ft.clientY},zu.current&&zu.current.update()},to={},K0=typeof M=="string";c?(to.title=!lt&&K0&&!d?M:null,to["aria-describedby"]=lt?Tt:null):(to["aria-label"]=K0?M:null,to["aria-labelledby"]=lt&&!K0?Tt:null);let si=O({},to,U,{component:a},o.props,{className:Lt(s,o.props.className),onTouchStart:er,ref:Ks},g?{onMouseMove:Pn}:{}),Fu={};h||(si.onTouchStart=pr,si.onTouchEnd=ee),d||(si.onMouseOver=CM(Ut,si.onMouseOver),si.onMouseLeave=CM(Pi,si.onMouseLeave),St||(Fu.onMouseOver=Ut,Fu.onMouseLeave=Pi)),u||(si.onFocus=EM(st,si.onFocus),si.onBlur=EM(H,si.onBlur),St||(Fu.onFocus=st,Fu.onBlur=H));let Z0=O({},i,{arrow:l,disableInteractive:St,placement:I,touch:ct.current,color:z,variant:B,size:R}),VC=pV(Z0),GC=O({},U,{component:a,slots:L,slotProps:G}),B5=ze.useMemo(()=>[{name:"arrow",enabled:!!Y,options:{element:Y,padding:6}},{name:"offset",options:{offset:[0,10]}},...k||[]],[Y,k]),[z5,F5]=xt("root",{additionalProps:O({id:Tt,popperRef:zu,placement:I,anchorEl:g?{getBoundingClientRect:()=>({top:bf.y,left:bf.x,right:bf.x,bottom:bf.y,width:0,height:0})}:X,open:X?lt:!1,disablePortal:A,keepMounted:P,direction:_,modifiers:B5},Fu),ref:null,className:VC.root,elementType:hV,externalForwardedProps:GC,ownerState:Z0}),[$5,j5]=xt("arrow",{ref:et,className:VC.arrow,elementType:mV,externalForwardedProps:GC,ownerState:Z0});return(0,GS.jsxs)(ze.Fragment,{children:[ze.isValidElement(o)&&ze.cloneElement(o,si),(0,GS.jsxs)(z5,O({},F5,!((n=i.slots)!=null&&n.root)&&{as:Lc,slots:{root:a||"div"}},{children:[M,l?(0,AM.jsx)($5,O({},j5)):null]}))]})}),Yn=gV;p();p();p();var oy=class e extends Error{type;status;description;constructor(t,r){let n=typeof r=="string"?r:void 0;if(super(n||t),this.type=t,this.description=n,typeof r=="number")this.status=r;else switch(t){case"UNAUTHORIZED":this.status=403;break;case"USAGE_LIMIT":case"PREMIUM_FEATURE":this.status=402;break;case"NOT_FOUND":this.status=404;break;case"INVALID_REQUEST":case"EMPTY_DATASOURCE":case"ALREADY_INVITED":case"INTEGRATION_VALIDATION_FAILED":this.status=400;break;case"INTEGRATION_CREDENTIALS_INVALID":this.status=403;break;case"RATE_LIMIT":this.status=429;break;case"NOT_IMPLEMENTED":this.status=501;break;case"INTERNAL_ERROR":this.status=500;break;case"CONFLICT":this.status=409;break;default:this.status=500;break}Object.setPrototypeOf(this,e.prototype)}};p();p();var ay=[{code:"en",nativeName:"English",englishName:"English",flagCode:"US",dir:"ltr",isDefault:!0},{code:"pt-BR",nativeName:"Português (BR)",englishName:"Portuguese (Brazil)",flagCode:"BR",dir:"ltr"},{code:"es",nativeName:"Español",englishName:"Spanish",flagCode:"ES",dir:"ltr"},{code:"ar",nativeName:"العربية",englishName:"Arabic",flagCode:"AE",dir:"rtl"},{code:"az",nativeName:"Azərbaycan dili",englishName:"Azerbaijani",flagCode:"AZ",dir:"ltr"},{code:"bg",nativeName:"Български",englishName:"Bulgarian",flagCode:"BG",dir:"ltr"},{code:"bn",nativeName:"বাংলা",englishName:"Bengali",flagCode:"BD",dir:"ltr"},{code:"ca",nativeName:"Català",englishName:"Catalan",flagCode:"ES",dir:"ltr"},{code:"cs",nativeName:"Čeština",englishName:"Czech",flagCode:"CZ",dir:"ltr"},{code:"da",nativeName:"Dansk",englishName:"Danish",flagCode:"DK",dir:"ltr"},{code:"de",nativeName:"Deutsch",englishName:"German",flagCode:"DE",dir:"ltr"},{code:"el",nativeName:"Ελληνικά",englishName:"Greek",flagCode:"GR",dir:"ltr"},{code:"eo",nativeName:"Esperanto",englishName:"Esperanto",flagCode:"EU",dir:"ltr"},{code:"et",nativeName:"Eesti",englishName:"Estonian",flagCode:"EE",dir:"ltr"},{code:"fa",nativeName:"فارسی",englishName:"Persian",flagCode:"IR",dir:"rtl"},{code:"fi",nativeName:"Suomi",englishName:"Finnish",flagCode:"FI",dir:"ltr"},{code:"fr",nativeName:"Français",englishName:"French",flagCode:"FR",dir:"ltr"},{code:"ga",nativeName:"Gaeilge",englishName:"Irish",flagCode:"IE",dir:"ltr"},{code:"he",nativeName:"עברית",englishName:"Hebrew",flagCode:"IL",dir:"rtl"},{code:"hi",nativeName:"हिन्दी",englishName:"Hindi",flagCode:"IN",dir:"ltr"},{code:"hu",nativeName:"Magyar",englishName:"Hungarian",flagCode:"HU",dir:"ltr"},{code:"id",nativeName:"Bahasa Indonesia",englishName:"Indonesian",flagCode:"ID",dir:"ltr"},{code:"it",nativeName:"Italiano",englishName:"Italian",flagCode:"IT",dir:"ltr"},{code:"ja",nativeName:"日本語",englishName:"Japanese",flagCode:"JP",dir:"ltr"},{code:"ko",nativeName:"한국어",englishName:"Korean",flagCode:"KR",dir:"ltr"},{code:"lt",nativeName:"Lietuvių",englishName:"Lithuanian",flagCode:"LT",dir:"ltr"},{code:"lv",nativeName:"Latviešu",englishName:"Latvian",flagCode:"LV",dir:"ltr"},{code:"ms",nativeName:"Bahasa Melayu",englishName:"Malay",flagCode:"MY",dir:"ltr"},{code:"nb",nativeName:"Norsk Bokmål",englishName:"Norwegian Bokmål",flagCode:"NO",dir:"ltr"},{code:"nl",nativeName:"Nederlands",englishName:"Dutch",flagCode:"NL",dir:"ltr"},{code:"pl",nativeName:"Polski",englishName:"Polish",flagCode:"PL",dir:"ltr"},{code:"pt",nativeName:"Português",englishName:"Portuguese",flagCode:"PT",dir:"ltr"},{code:"ro",nativeName:"Română",englishName:"Romanian",flagCode:"RO",dir:"ltr"},{code:"ru",nativeName:"Русский",englishName:"Russian",flagCode:"RU",dir:"ltr"},{code:"sk",nativeName:"Slovenčina",englishName:"Slovak",flagCode:"SK",dir:"ltr"},{code:"sl",nativeName:"Slovenščina",englishName:"Slovenian",flagCode:"SI",dir:"ltr"},{code:"sv",nativeName:"Svenska",englishName:"Swedish",flagCode:"SE",dir:"ltr"},{code:"th",nativeName:"ไทย",englishName:"Thai",flagCode:"TH",dir:"ltr"},{code:"tl",nativeName:"Tagalog",englishName:"Tagalog",flagCode:"PH",dir:"ltr"},{code:"tr",nativeName:"Türkçe",englishName:"Turkish",flagCode:"TR",dir:"ltr"},{code:"uk",nativeName:"Українська",englishName:"Ukrainian",flagCode:"UA",dir:"ltr"},{code:"ur",nativeName:"اردو",englishName:"Urdu",flagCode:"PK",dir:"rtl"},{code:"zh",nativeName:"中文",englishName:"Chinese",flagCode:"CN",dir:"ltr"}],WS="en",YS=ay.map(e=>e.code),PRt=new Set(YS),RRt=ay.map(e=>({code:e.code,name:e.nativeName,englishName:e.englishName,flag:e.flagCode,dir:e.dir})),yV=new Map(ay.map(e=>[e.code.toLowerCase(),e])),sy=new Map;for(let e of ay){let t=e.code.split("-")[0].toLowerCase();(!sy.has(t)||"isDefault"in e&&e.isDefault)&&sy.set(t,e.code)}function _M(e,t=WS){let r=e?.trim();if(!r)return t;let n=yV.get(r.toLowerCase());if(n)return n.code;let i=r.split("-")[0]?.toLowerCase();return i&&sy.has(i)?sy.get(i)??t:t}var Qe=WS,Te="translations",vV=!1,Ja="https://cdn.jsdelivr.net/npm/@zappway/embeds@2.0.4/dist/locales",QS=YS,MRt=new Set(QS),Sf={main:{localeDirectory:"locales-ZappWay",splitDirectories:["i18n-split"],browserDirectories:[],cdnDirectory:"locales-ZappWay",cdnSplit:!0},lp:{localeDirectory:"locales-ZappWay-LP",splitDirectories:["i18n-split-lp","i18n-split-zappway-lp"],browserDirectories:[],cdnDirectory:"locales-ZappWay-LP",cdnSplit:!1},integrations:{localeDirectory:"locales-Integrations",splitDirectories:["i18n-split-integrations"],browserDirectories:[],cdnDirectory:"locales-Integrations",cdnSplit:!1},emails:{localeDirectory:"locales-Emails",splitDirectories:["i18n-split-emails"],browserDirectories:[],cdnDirectory:"locales-Emails",cdnSplit:!1},workers:{localeDirectory:"locales-Workers",splitDirectories:["i18n-split-workers"],browserDirectories:[],cdnDirectory:"locales-Workers",cdnSplit:!1},zappflux:{localeDirectory:"locales-ZappFlux",splitDirectories:["i18n-split-zappflux"],browserDirectories:[],cdnDirectory:"locales-ZappFlux",cdnSplit:!1},"zappflux-lp":{localeDirectory:"locales-ZappFlux-LP",splitDirectories:["i18n-split-zappflux-lp"],browserDirectories:[],cdnDirectory:"locales-ZappFlux-LP",cdnSplit:!1},"zappflux-templates":{localeDirectory:"locales-ZappFlux-Templates",splitDirectories:["i18n-split-zappflux-templates"],browserDirectories:[],cdnDirectory:"locales-ZappFlux-Templates",cdnSplit:!1,namespaceFiles:!0},"pitch-deck":{localeDirectory:"locales-PitchDeck",splitDirectories:["i18n-split-pitch-deck"],browserDirectories:[],cdnDirectory:"locales-PitchDeck",cdnSplit:!1},reports:{localeDirectory:"locales-Reports",splitDirectories:["i18n-split-reports"],browserDirectories:[],cdnDirectory:"locales-Reports",cdnSplit:!1},rag:{localeDirectory:"locales-RAG",splitDirectories:["i18n-split-rag"],browserDirectories:[],cdnDirectory:"locales-RAG",cdnSplit:!1}},hy={lp:"lp",rag:"rag",flow:"zappflux",emails:"emails",workers:"workers",reports:"reports",zappflux:"zappflux",integrations:"integrations","pitch-deck":"pitch-deck","zappflux-lp":"zappflux-lp","zappflux-templates":"zappflux-templates",WhatsAppSettings:"integrations",WhatsAppIntegrationPage:"integrations",WhatsAppBusiness_IntegrationSettings:"integrations",TelegramSettings:"integrations",Telegram_IntegrationSettings:"integrations",InstagramSettings:"integrations",Instagram_IntegrationSettings:"integrations",MessengerSettings:"integrations",Messenger_IntegrationSettings:"integrations",TikTokSettings:"integrations",TikTok_IntegrationSettings:"integrations",ZendeskSettings:"integrations",Zendesk_IntegrationSettings:"integrations",SlackSettings:"integrations",ShopifySettings:"integrations",ConnectWhatsApp:"integrations",QRCode:"integrations",crisp:"integrations",crispConfig:"integrations",crispSettingsModal:"integrations"},ly=null,xf=null,Wi=null,XS=null,jc=null,Ts=null,cr=null,KS=null,bV=globalThis.eval;function xV(){if(Wi)return Wi;try{if(typeof __non_webpack_require__=="function")Wi=__non_webpack_require__;else if(typeof Q0=="function")Wi=Q0;else if(globalThis.require)Wi=globalThis.require;else{let e="require";Wi=globalThis[e]||bV(e)}return Wi}catch(e){return console.error(" [i18n-runtime-loader] Critical: Failed to obtain require function",e),null}}function Hc(){if(typeof window<"u")return!1;if(ly&&xf)return!0;try{let e=xV();return e?(ly=e("fs"),xf=e("path"),XS=ly.readFileSync,jc=ly.existsSync,Ts=xf.join,cr=xf.resolve,KS=xf.dirname,!0):!1}catch{return!1}}var cy=new Map,PM=new Map;function JS(e){if(Hc(),!jc)return[];let t=new Set;return e.filter(r=>!!r).filter(r=>t.has(r)||!jc(r)?!1:(t.add(r),!0))}function SV(e){if(Hc(),!(!Wi||!KS))try{let r=Wi.resolve.call(Wi,`${e}/package.json`);return KS(r)}catch{return}}var uy=null;function TV(){if(uy)return uy;if(Hc(),!cr)return[];let e=process.cwd(),t=S.ZW_I18N_CACHE_ROOT;return uy=JS([t,cr(e,".next/cache"),cr(e,"../.next/cache"),cr(e,"../../.next/cache"),cr(e,"apps/zappway/dashboard/.next/cache"),cr(e,"packages/zappflux/packages/app/.next/cache"),"/var/task/.next/cache","/var/task/apps/zappway/dashboard/.next/cache"]),uy}var dy=null;function wV(){if(dy)return dy;if(Hc(),!cr||!Ts)return[];let e=process.cwd(),t=SV("@zappway/lib");return dy=JS([t,cr(e,"packages/zappway/lib"),cr(e,"../packages/zappway/lib"),cr(e,"../../packages/zappway/lib"),cr(e,"../../../packages/zappway/lib"),cr(e,"../../../../packages/zappway/lib"),cr(e,"node_modules/@zappway/lib"),cr(e,"../node_modules/@zappway/lib"),cr(e,"../../node_modules/@zappway/lib"),cr(e,"../../../node_modules/@zappway/lib"),cr(e,"../../../../node_modules/@zappway/lib")]).filter(r=>jc(Ts(r,"locales"))),dy}var qS=new Map;function RM(e){if(qS.has(e))return qS.get(e);if(Hc(),!XS||!jc||!jc(e))return null;try{let t=XS(e,"utf8"),r=JSON.parse(t);return qS.set(e,r),r}catch{return null}}function ZS(e,t){if(!e)return null;let r=t||Te;if(r===Te)return e;if(e[r])return e[r];let n=r.split("."),i=e,o=!0;for(let s of n)if(i&&typeof i=="object"&&s in i)i=i[s];else{o=!1;break}return o&&i&&typeof i=="object"?i:r!==Te?{}:e}var fy=null;function CV(){return fy||(fy=JS([...TV(),...wV()]),fy)}function my(e){return _M(e,Qe)}function tT(e,t,r){if(typeof window<"u"||!Hc())return{};let n=my(e),i=r||Te,o=`node:${n}:${t}:${i}`,s=cy.get(o);if(s)return s;let a=Sf[t];if(t==="main"&&i!==Te&&hy[i])return cy.set(o,{}),{};let l=CV(),c=[];for(let d of l){for(let f of a.splitDirectories)c.push(Ts(d,f,n,`${i}.json`)),c.push(Ts(d,"locales",f,n,`${i}.json`));c.push(Ts(d,a.localeDirectory,n,`${i}.json`)),c.push(Ts(d,"locales",a.localeDirectory,n,`${i}.json`))}for(let d of c){let f=RM(d);if(f&&Object.keys(f).length>0)return cy.set(o,f),f}let u={};for(let d of l){let f=Ts(d,"locales",a.localeDirectory,n,"translations.json"),h=RM(f);if(h){if(u=ZS(h,r)||{},Object.keys(u).length>0)break}else vV&&r===Te&&console.warn(` [i18n] Bundle not found or empty: ${f} (CWD: ${typeof process<"u"?process.cwd():"unknown"})`)}return Object.keys(u).length===0&&n!==Qe?tT(Qe,t,r):(cy.set(o,u),u)}function eT(e,t,r){let n=t.map(i=>tT(e,i,r));return OM(n)}async function py(e,t=2e3){let r=new AbortController,n=setTimeout(()=>r.abort(),t);try{let i=await fetch(`${e}?v=${Date.now()}`,{signal:r.signal,cache:"force-cache"});return clearTimeout(n),i.ok?await i.json():null}catch{return clearTimeout(n),null}}async function EV(e,t,r){let n=my(e),i=r||Te,s=`${typeof window>"u"?"node":"browser"}:${n}:${t}:${i}`,a=PM.get(s);if(a)return await a||{};let l=Sf[t],c=(async()=>{if(typeof window>"u"){let u=tT(e,t,r);if(u&&Object.keys(u).length>0)return u;let d=t==="main"&&i!==Te&&!i.includes(".")?`${Ja}/${l.cdnDirectory}/${n}/${i}.json`:`${Ja}/${l.cdnDirectory}/${n}/translations.json`;try{let f=await py(d,3e3);if(f){let h=ZS(f,r);if(h&&Object.keys(h).length>0)return h}}catch{}}else{for(let h of l.browserDirectories){let m=await py(`/locales-runtime/${h}/${n}/${i}.json`);if(m)return m}let u=await py(`/api/i18n/${n}/${i}`);if(u)return u;let d=t==="main"&&i!==Te&&!i.includes(".")?`${Ja}/${l.cdnDirectory}/${n}/${i}.json`:`${Ja}/${l.cdnDirectory}/${n}/translations.json`,f=await py(d);if(f)return ZS(f,r)||{}}return{}})();return PM.set(s,c),c||{}}async function gy(e,t,r){let n=t.map(o=>EV(e,o,r)),i=await Promise.all(n);return OM(i)}function kM(e,t){let r={...e};for(let[n,i]of Object.entries(t||{})){let o=r[n];o&&typeof o=="object"&&i&&typeof i=="object"&&!Array.isArray(i)?r[n]=kM(o,i):r[n]=i}return r}function OM(e){return e.reduce((t,r)=>kM(t,r||{}),{})}var iT=["lp","rag","main","emails","reports","workers","zappflux","zappflux-lp","integrations","zappflux-templates"],rT={},Uc={},nT=new Map;function sT(){let e=typeof window<"u"?window.location.pathname.split("/")[1]:null,t=typeof window<"u"?new URL(window.location.href).searchParams.get("lang")||new URL(window.location.href).searchParams.get("locale"):null,r=e||t||typeof document>"u"?null:document.cookie.split(";").find(o=>o.trim().startsWith("NEXT_LOCALE="))?.split("=")[1],n=globalThis.headers?.get?.("accept-language")?.split(",")[0],i=typeof navigator<"u"?navigator.language:null;return vy(e||t||r||n||i||Qe)}function vy(e){return my(e)}function WV(e){let t=e&&e.length?e:[Te];return Array.from(new Set([Te,...t]))}function Tf(e){return!e||Object.keys(e).length===0}function yy(e,t){if(!e)return null;let r=t||Te;if(r===Te||r!==Te&&hy[r]===r)return e;if(e[r])return e[r];let n=e,i=!0,o=r.split(".");for(let s of o)if(n&&typeof n=="object"&&s in n)n=n[s];else{i=!1;break}return i&&n&&typeof n=="object"?n:r===Te?e:{}}function NM(e,t=Te){let r=vy(e),n=`fs:${r}:${t}`,i=Uc[n];if(i)return i;let o=t===Te?void 0:t,s=eT(r,iT,o);if(!Tf(s))return Uc[n]=s,s;let a=`fs:${Qe}:${t}`,l=Uc[a];if(l)return l;let c=eT(Qe,iT,o);if(!Tf(c))return Uc[a]=c,c;throw new oy("INTERNAL_ERROR",500)}async function oT(e,t=3e3){let r=new AbortController,n=setTimeout(()=>r.abort(),t);try{let i=await fetch(e,{signal:r.signal,cache:"force-cache"});return i.ok?await i.json():null}catch{return null}finally{clearTimeout(n)}}async function YV(e,t="main"){if(t==="main")return null;let r=Sf[t].cdnDirectory,n=`bundle:${e}:${r}`;if(nT.has(n))return nT.get(n);let i=(async()=>{let o=`${Ja}/${r}/${e}/translations.json`;return await oT(o,3e3)})();return nT.set(n,i),i}async function IM(e,t=Te,r){let n=vy(e),i=`cdn:${n}:${t}`,o=Uc[i];if(o)return o;let s=hy[t]||"main",a=Sf[s].cdnDirectory,l=async m=>{let y=t.split(".")[0],x=`${Ja}/${a}/${m}/${y}.json`,g=await oT(x,2e3);return g?yy(g,t):null},c=async m=>{if(!r)return null;let y=t.split(".")[0],x=`${r}/api/i18n/${m}/${y}`,g=await oT(x,2e3);return yy(g||{},t)},u=async m=>{try{let{loadManualTranslationsWithZappFlux:y}=await Promise.resolve().then(()=>(LM(),MM)),x=await y(m);return yy(x||{},t)}catch{return null}},d=async m=>{try{return await gy(m,iT,t)}catch{return null}},f=null;if(s==="main")f=await l(n),f||(f=await c(n)),f||(f=await u(n)),f||(f=await d(n)),f||(f=await l(Qe)),f||(f=await c(Qe)),f||(f=await u(Qe)),f||(f=await d(Qe));else{let m=await YV(n,s);f=yy(m||{},t),Tf(f||{})&&(f=await c(n)),Tf(f||{})&&(f=await u(n)),Tf(f||{})&&(f=await d(n))}let h=f||{};return Uc[i]=h,h}async function BM(e,t,r){let n=vy(e||sT()),i=WV(t),o=r||(typeof window<"u"?window.location.origin:void 0),s=typeof window>"u"?"node":"browser",a=`inst:${n}:${i.slice().sort().join("|")}:${s}`;if(rT[a])return rT[a];let l=typeof window>"u",c={[n]:{}};for(let d of i)c[n][d]=l?NM(n,d):await IM(n,d,o);if(n!==Qe){c[Qe]={};for(let d of i)c[Qe][d]=l?NM(Qe,d):await IM(Qe,d,o)}let u=VA();return await u.init({lng:n,fallbackLng:Qe,defaultNS:i[0],ns:i,resources:c,interpolation:{escapeValue:!1}}),rT[a]=u,u}p();p();var{slice:qV,forEach:XV}=[];function KV(e){return XV.call(qV.call(arguments,1),t=>{if(t)for(let r in t)e[r]===void 0&&(e[r]=t[r])}),e}function ZV(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(r=>r.test(e))}var zM=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,QV=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t),o=`${e}=${i}`;if(n.maxAge>0){let s=n.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(s)}`}if(n.domain){if(!zM.test(n.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${n.domain}`}if(n.path){if(!zM.test(n.path))throw new TypeError("option path is invalid");o+=`; Path=${n.path}`}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(o+="; HttpOnly"),n.secure&&(o+="; Secure"),n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return n.partitioned&&(o+="; Partitioned"),o},FM={create(e,t,r,n){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+r*60*1e3)),n&&(i.domain=n),document.cookie=QV(e,t,i)},read(e){let t=`${e}=`,r=document.cookie.split(";");for(let n=0;n<r.length;n++){let i=r[n];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}},JV={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return FM.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:r,cookieMinutes:n,cookieDomain:i,cookieOptions:o}=t;r&&typeof document<"u"&&FM.create(r,e,n,i,o)}},t9={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,r;if(typeof window<"u"){let{search:n}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));let o=n.substring(1).split("&");for(let s=0;s<o.length;s++){let a=o[s].indexOf("=");a>0&&o[s].substring(0,a)===t&&(r=o[s].substring(a+1))}}return r}},e9={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:r}=e,n;if(typeof window<"u"){let{hash:i}=window.location;if(i&&i.length>2){let o=i.substring(1);if(t){let s=o.split("&");for(let a=0;a<s.length;a++){let l=s[a].indexOf("=");l>0&&s[a].substring(0,l)===t&&(n=s[a].substring(l+1))}}if(n)return n;if(!n&&r>-1){let s=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?s[typeof r=="number"?r:0]?.replace("/",""):void 0}}}return n}},Vc=null,$M=()=>{if(Vc!==null)return Vc;try{if(Vc=typeof window<"u"&&window.localStorage!==null,!Vc)return!1;let e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Vc=!1}return Vc},r9={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&$M())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:r}=t;r&&$M()&&window.localStorage.setItem(r,e)}},Gc=null,jM=()=>{if(Gc!==null)return Gc;try{if(Gc=typeof window<"u"&&window.sessionStorage!==null,!Gc)return!1;let e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Gc=!1}return Gc},n9={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&jM())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:r}=t;r&&jM()&&window.sessionStorage.setItem(r,e)}},i9={name:"navigator",lookup(e){let t=[];if(typeof navigator<"u"){let{languages:r,userLanguage:n,language:i}=navigator;if(r)for(let o=0;o<r.length;o++)t.push(r[o]);n&&t.push(n),i&&t.push(i)}return t.length>0?t:void 0}},o9={name:"htmlTag",lookup(e){let{htmlTag:t}=e,r,n=t||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(r=n.getAttribute("lang")),r}},s9={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;let r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(r)?r[typeof t=="number"?t:0]?.replace("/",""):void 0}},a9={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e,r=typeof t=="number"?t+1:1,n=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[r]}},HM=!1;try{document.cookie,HM=!0}catch{}var UM=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];HM||UM.splice(1,1);var l9=()=>({order:UM,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),wf=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,r)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=KV(r,this.options||{},l9()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(JV),this.addDetector(t9),this.addDetector(r9),this.addDetector(n9),this.addDetector(i9),this.addDetector(o9),this.addDetector(s9),this.addDetector(a9),this.addDetector(e9)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,r=[];return t.forEach(n=>{if(this.detectors[n]){let i=this.detectors[n].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(r=r.concat(i))}}),r=r.filter(n=>n!=null&&!ZV(n)).map(n=>this.options.convertDetectedLanguage(n)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}cacheUserLanguage(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||r.forEach(n=>{this.detectors[n]&&this.detectors[n].cacheUserLanguage(t,this.options)}))}};wf.type="languageDetector";var c9={type:"backend",init:()=>{},read:(e,t,r)=>{gy(e,["main"],t).then(n=>{t===Te&&n&&Object.entries(n).forEach(([i,o])=>{i!==Te&&o&&typeof o=="object"&&!Array.isArray(o)&&nr.addResourceBundle(e,i,o,!0,!0)}),r(null,n)}).catch(n=>{r(n,null)})}};nr.use(c9).use(wf).use(Gh).init({fallbackLng:Qe,supportedLngs:QS,ns:[Te],defaultNS:Te,partialBundledLanguages:!0,nonExplicitSupportedLngs:!0,nsSeparator:":",keySeparator:".",interpolation:{escapeValue:!1},detection:{order:["cookie","localStorage","sessionStorage","navigator"],lookupCookie:"NEXT_LOCALE",caches:["cookie"]}});var by=nr;p();var tl=D(F());function u9(){if(typeof document>"u")return;let e=document.documentElement.style.colorScheme;if(e==="light"||e==="dark")return e;if(document.body?.classList.contains("light"))return"light";if(document.body?.classList.contains("dark"))return"dark";if(typeof window<"u"&&window.matchMedia){if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light";if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark"}}function aT(e,t){let{mode:r}=nS(),[n,i]=(0,tl.useState)(!1),[o,s]=(0,tl.useState)(void 0),a=t?.syncDocumentColorScheme??!0;(0,tl.useEffect)(()=>{s(u9())},[]),(0,tl.useEffect)(()=>{i(!0)},[]),(0,tl.useEffect)(()=>{!a||!n||!r||typeof document>"u"||document.documentElement.setAttribute("data-color-scheme",r)},[r,n,a]);let l=n?e??r:o;return{safeMode:l,hasMounted:n,isDark:l==="dark",isLight:l==="light"}}var Q=D(Z()),VM=mi`
121
121
  0% { background-position: -200% 0; }
122
122
  100% { background-position: 200% 0; }
123
123
  `,d9=mi`
@@ -517,8 +517,8 @@ try {
517
517
  width: 100%;
518
518
  display: inline-block;
519
519
  }
520
- `;fa();kd();var M5=D(k5());p();p();var HC={50:"#A3FFD7",100:"#8CFFCD",200:"#80FFD2",300:"#48D7A3",400:"#34D399",500:"#2EBD89",600:"#10B981",700:"#009A7E",800:"#006640",900:"#00331F"};var O5=(e="zappway")=>({modeStorageKey:e,colorSchemeStorageKey:`${e}-color-scheme`,attribute:`data-${e}`}),D5=(e={})=>Ac({cssVarPrefix:e.prefix,fontFamily:{body:"Inter, sans-serif",display:"Poppins, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",fontSize:"57px",lineHeight:"64px",letterSpacing:"-0.25px"},kbd:{background:"linear-gradient(to top, var(--joy-palette-background-level2), var(--joy-palette-background-surface))",border:"1px solid var(--joy-palette-neutral-outlinedBorder)",borderRadius:"var(--joy-radius-xs)",boxShadow:"var(--joy-shadow-sm)",padding:"0.125em 0.375em"}},fontSize:{xl7:"4.5rem",xl6:"3.75rem",xl5:"3rem",xs2:"0.625rem",xs3:"0.5rem"},fontWeight:{xs:200,xl2:800,xl3:900},components:{JoySelect:{defaultProps:{slotProps:{listbox:{container:e.container}}},styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyModal:{defaultProps:{container:e.container}},JoyCard:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyInput:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyTextarea:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyButton:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyIconButton:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}}},colorSchemes:{dark:{palette:{primary:HC}},light:{palette:{primary:HC,neutral:{solidBg:"#000"}}}}});var Iu=D(Z()),zG="CREATE_NEW_CONVERSATION",UC={"phone-number":"phoneNumber","user-id":"userId","first-name":"firstName","last-name":"lastName",email:"email"},L5="zappway-embeds",q0=O5(L5),Mr=typeof process<"u"&&!1,FG=typeof NEXT_PUBLIC_DASHBOARD_URL<"u"?NEXT_PUBLIC_DASHBOARD_URL:"https://app.zappway.ai",$G=(typeof NEXT_PUBLIC_ASSETS_BASE_URL<"u"?NEXT_PUBLIC_ASSETS_BASE_URL:"")||"https://cdn.jsdelivr.net/npm/@zappway/embeds@2.0.3",jG=e=>{let t=e.getAttribute("locale");if(t)return Mr&&console.log("[ShadowDOM] Locale detectado via atributo direto:",t),t;let r=e.getAttribute("lang");if(r)return Mr&&console.log("[ShadowDOM] Locale detectado via atributo lang:",r),r;try{let o=e.ownerDocument?.documentElement?.lang;if(o)return Mr&&console.log("[ShadowDOM] Locale detectado via document.documentElement.lang:",o),o}catch(i){Mr&&console.warn("[ShadowDOM] Não foi possível acessar documento pai:",i)}try{let o=e.ownerDocument?.querySelector('meta[name="locale"]')?.getAttribute("content");if(o)return Mr&&console.log("[ShadowDOM] Locale detectado via meta tag:",o),o}catch(i){Mr&&console.warn("[ShadowDOM] Não foi possível acessar meta tags:",i)}let n=navigator.language||navigator.userLanguage;return n?(Mr&&console.log("[ShadowDOM] Locale detectado via navigator:",n),n):(Mr&&console.log("[ShadowDOM] Usando fallback en"),"en")},HG=e=>{let t=e.getAttribute("color-mode")||e.getAttribute("data-color-mode");if(t==="dark"||t==="light")return Mr&&console.log("[ShadowDOM] Color mode from attribute:",t),t;try{let r=e.ownerDocument,n=r?.documentElement,i=n?.className||"",o=r?.body?.className||"",s=n?.getAttribute("data-theme")||n?.getAttribute("data-mode"),a=r?.body?.getAttribute("data-theme")||r?.body?.getAttribute("data-mode");if(i.includes("dark")||o.includes("dark")||s==="dark"||a==="dark")return Mr&&console.log("[ShadowDOM] Color mode from parent class/data: dark"),"dark";if(i.includes("light")||o.includes("light")||s==="light"||a==="light")return Mr&&console.log("[ShadowDOM] Color mode from parent class/data: light"),"light";let l=n?.getAttribute("data-joy-color-scheme");if(l==="dark"||l==="light")return Mr&&console.log("[ShadowDOM] Color mode from Joy UI scheme:",l),l;if(window.matchMedia?.("(prefers-color-scheme: dark)").matches)return Mr&&console.log("[ShadowDOM] Color mode from media query: dark"),"dark"}catch(r){Mr&&console.warn("[ShadowDOM] Could not detect color mode:",r)}return Mr&&console.log("[ShadowDOM] Color mode fallback: light"),"light"};if(typeof window<"u"){let e=console.warn;console.warn=(...t)=>{t[0]&&typeof t[0]=="string"&&(t[0].includes("TextLayer styles not found")||t[0].includes("AnnotationLayer styles not found"))||e(...t)}}var UG=({name:e,widget:t,type:r})=>class extends HTMLElement{cssProvider=$G+`/dist/${r}/index.css`;root;cache;shadowRootElement;emotionRoot;instanceId;setIsOpen;isOpen;onEnd;locale;colorMode="light";constructor(i){super(),this.instanceId=i?.instanceId,this.onEnd=i?.onEnd;let o=this.attachShadow({mode:"open"}),s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.href="https://fonts.googleapis.com/css2?family=Poppins:wght@200..800&family=Inter:wght@100..900&display=swap";let a=document.createElement("link");if(a.rel="stylesheet",a.type="text/css",a.href=this.cssProvider,this.emotionRoot=document.createElement("style"),this.shadowRootElement=document.createElement("div"),this.shadowRootElement.className="zappway-widget",o.appendChild(s),o.appendChild(a),o.appendChild(this.emotionRoot),o.appendChild(this.shadowRootElement),r==="pdfviewer"){let l=document.createElement("style");if(l.innerHTML=rL+`
521
- `+nL,o.appendChild(l),!document.getElementById("react-pdf-global-vars")){let u=document.createElement("style");u.id="react-pdf-global-vars",u.innerHTML="body { --react-pdf-text-layer: 1; --react-pdf-annotation-layer: 1; }",document.head.appendChild(u)}}this.cache=ic({key:e,prepend:!0,container:this.emotionRoot}),this.cache.compat=!0,this.root=(0,M5.createRoot)(this.shadowRootElement)}open(){this.setIsOpen?.(!0)}close(){this.setIsOpen?.(!1)}toggle(){this.setIsOpen?.(!this.isOpen)}destroy(){this.innerHTML="",this.instanceId&&(window[this.instanceId]=null)}createNewConversation(){this.dispatchEvent(new Event(zG,{bubbles:!0,composed:!0}))}Component=i=>{let[o,s]=(0,Bu.useState)(!1);this.setIsOpen=s,this.isOpen=o;let a={};for(let f in UC)if(UC.hasOwnProperty(f)){let h=UC[f],m=this.getAttribute(f);m&&(a[h]=m)}let l=this.getAttribute("context"),c={};try{c=JSON.parse(this.getAttribute("interface"))}catch{}let u=D5({container:this.shadowRootElement,prefix:L5}),d={...u,colorSchemes:{...u.colorSchemes,light:{...u.colorSchemes?.light,palette:{...u.colorSchemes?.light?.palette,mode:"light"}},dark:{...u.colorSchemes?.dark,palette:{...u.colorSchemes?.dark?.palette,mode:"dark"}}}};return(0,Iu.jsx)(Bu.StrictMode,{children:(0,Iu.jsx)(Bd,{value:this.cache,children:(0,Iu.jsx)(rS,{theme:d,defaultMode:this.colorMode,modeStorageKey:q0.modeStorageKey,attribute:q0.attribute,colorSchemeStorageKey:q0.colorSchemeStorageKey,colorSchemeNode:this.shadowRootElement,children:(0,Iu.jsx)(VS,{sx:{background:"transparent"},children:Bu.default.createElement(t,{...i,isOpen:o,onEnd:this.onEnd,initConfig:c,context:l,agentId:this.getAttribute("agent-id")||"",formId:this.getAttribute("form-id")||"",apiHost:FG,fileUrl:this.getAttribute("file-url")||void 0,datasourceId:this.getAttribute("datasource-id")||void 0,pageNumber:this.getAttribute("page-number")?parseInt(this.getAttribute("page-number"),10):void 0,search:this.getAttribute("search")||void 0,colorMode:this.colorMode,contact:a,locale:this.locale,styles:this.getAttribute("styles")?JSON.parse(this.getAttribute("styles")):{},onAgentLoaded:f=>{let h=f?.interfaceConfig?.customCSS;if(h){let m=document.createElement("style");m.innerHTML=h,this.shadowRootElement.appendChild(m)}}})})})})})};connectedCallback(){this.locale=jG(this),this.colorMode=HG(this),this.shadowRootElement.setAttribute(q0.attribute,this.colorMode),Mr&&console.log("[ShadowDOM] Element conectado com locale:",this.locale,"colorMode:",this.colorMode),this.root.render((0,Iu.jsx)(this.Component,{isOpen:this.isOpen,onEnd:this.onEnd}))}},N5=UG;var X0="zappway-pdfviewer",VG=N5({type:"pdfviewer",widget:cT,name:X0});typeof customElements<"u"&&!customElements.get(X0)&&customElements.define(X0,VG);var I5=e=>{let t=document.getElementById(e.containerId);if(!t)return console.error(`[PDFViewer] Container not found: ${e.containerId}`),e.onError?.(new Error(`Container not found: ${e.containerId}`)),null;let r=document.createElement(X0);e.fileUrl&&r.setAttribute("file-url",e.fileUrl),e.pageNumber&&r.setAttribute("page-number",e.pageNumber.toString()),e.search&&r.setAttribute("search",e.search),e.locale&&r.setAttribute("locale",e.locale),e.colorMode&&r.setAttribute("color-mode",e.colorMode),r.style.width="100%",r.style.height="100%",t.innerHTML="",t.appendChild(r);let n=!1,i=()=>{!n&&e.onLoad&&(n=!0,e.onLoad(1))};return setTimeout(()=>{i()},500),{pageNumber:e.pageNumber||1,numPages:1,goToPage:o=>{r.setAttribute("page-number",o.toString())},nextPage:()=>{let o=parseInt(r.getAttribute("page-number")||"1",10);r.setAttribute("page-number",(o+1).toString())},prevPage:()=>{let o=parseInt(r.getAttribute("page-number")||"1",10);r.setAttribute("page-number",Math.max(1,o-1).toString())},setScale:o=>{},getScale:()=>1,destroy:()=>{t.innerHTML=""}}},Kkt={init:I5};typeof window<"u"&&(window.ZappwayPDFViewer={init:I5});export{Kkt as default,I5 as init};
520
+ `;fa();kd();var M5=D(k5());p();p();var HC={50:"#A3FFD7",100:"#8CFFCD",200:"#80FFD2",300:"#48D7A3",400:"#34D399",500:"#2EBD89",600:"#10B981",700:"#009A7E",800:"#006640",900:"#00331F"};var O5=(e="zappway")=>({modeStorageKey:e,colorSchemeStorageKey:`${e}-color-scheme`,attribute:`data-${e}`}),D5=(e={})=>Ac({cssVarPrefix:e.prefix,fontFamily:{body:"Inter, sans-serif",display:"Poppins, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",fontSize:"57px",lineHeight:"64px",letterSpacing:"-0.25px"},kbd:{background:"linear-gradient(to top, var(--joy-palette-background-level2), var(--joy-palette-background-surface))",border:"1px solid var(--joy-palette-neutral-outlinedBorder)",borderRadius:"var(--joy-radius-xs)",boxShadow:"var(--joy-shadow-sm)",padding:"0.125em 0.375em"}},fontSize:{xl7:"4.5rem",xl6:"3.75rem",xl5:"3rem",xs2:"0.625rem",xs3:"0.5rem"},fontWeight:{xs:200,xl2:800,xl3:900},components:{JoySelect:{defaultProps:{slotProps:{listbox:{container:e.container}}},styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyModal:{defaultProps:{container:e.container}},JoyCard:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyInput:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyTextarea:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyButton:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyIconButton:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}}},colorSchemes:{dark:{palette:{primary:HC}},light:{palette:{primary:HC,neutral:{solidBg:"#000"}}}}});var Iu=D(Z()),zG="CREATE_NEW_CONVERSATION",UC={"phone-number":"phoneNumber","user-id":"userId","first-name":"firstName","last-name":"lastName",email:"email"},L5="zappway-embeds",q0=O5(L5),Mr=typeof process<"u"&&!1,FG=typeof NEXT_PUBLIC_DASHBOARD_URL<"u"?NEXT_PUBLIC_DASHBOARD_URL:"https://app.zappway.ai",$G=(typeof NEXT_PUBLIC_ASSETS_BASE_URL<"u"?NEXT_PUBLIC_ASSETS_BASE_URL:"")||"https://cdn.jsdelivr.net/npm/@zappway/embeds@2.0.4",jG=e=>{let t=e.getAttribute("locale");if(t)return Mr&&console.log("[ShadowDOM] Locale detectado via atributo direto:",t),t;let r=e.getAttribute("lang");if(r)return Mr&&console.log("[ShadowDOM] Locale detectado via atributo lang:",r),r;try{let o=e.ownerDocument?.documentElement?.lang;if(o)return Mr&&console.log("[ShadowDOM] Locale detectado via document.documentElement.lang:",o),o}catch(i){Mr&&console.warn("[ShadowDOM] Não foi possível acessar documento pai:",i)}try{let o=e.ownerDocument?.querySelector('meta[name="locale"]')?.getAttribute("content");if(o)return Mr&&console.log("[ShadowDOM] Locale detectado via meta tag:",o),o}catch(i){Mr&&console.warn("[ShadowDOM] Não foi possível acessar meta tags:",i)}let n=navigator.language||navigator.userLanguage;return n?(Mr&&console.log("[ShadowDOM] Locale detectado via navigator:",n),n):(Mr&&console.log("[ShadowDOM] Usando fallback en"),"en")},HG=e=>{let t=e.getAttribute("color-mode")||e.getAttribute("data-color-mode");if(t==="dark"||t==="light")return Mr&&console.log("[ShadowDOM] Color mode from attribute:",t),t;try{let r=e.ownerDocument,n=r?.documentElement,i=n?.className||"",o=r?.body?.className||"",s=n?.getAttribute("data-theme")||n?.getAttribute("data-mode"),a=r?.body?.getAttribute("data-theme")||r?.body?.getAttribute("data-mode");if(i.includes("dark")||o.includes("dark")||s==="dark"||a==="dark")return Mr&&console.log("[ShadowDOM] Color mode from parent class/data: dark"),"dark";if(i.includes("light")||o.includes("light")||s==="light"||a==="light")return Mr&&console.log("[ShadowDOM] Color mode from parent class/data: light"),"light";let l=n?.getAttribute("data-joy-color-scheme");if(l==="dark"||l==="light")return Mr&&console.log("[ShadowDOM] Color mode from Joy UI scheme:",l),l;if(window.matchMedia?.("(prefers-color-scheme: dark)").matches)return Mr&&console.log("[ShadowDOM] Color mode from media query: dark"),"dark"}catch(r){Mr&&console.warn("[ShadowDOM] Could not detect color mode:",r)}return Mr&&console.log("[ShadowDOM] Color mode fallback: light"),"light"};if(typeof window<"u"){let e=console.warn;console.warn=(...t)=>{t[0]&&typeof t[0]=="string"&&(t[0].includes("TextLayer styles not found")||t[0].includes("AnnotationLayer styles not found"))||e(...t)}}var UG=({name:e,widget:t,type:r})=>class extends HTMLElement{cssProvider=$G+`/dist/${r}/index.css`;root;cache;shadowRootElement;emotionRoot;instanceId;setIsOpen;isOpen;onEnd;locale;colorMode="light";constructor(i){super(),this.instanceId=i?.instanceId,this.onEnd=i?.onEnd;let o=this.attachShadow({mode:"open"}),s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.href="https://fonts.googleapis.com/css2?family=Poppins:wght@200..800&family=Inter:wght@100..900&display=swap";let a=document.createElement("link");if(a.rel="stylesheet",a.type="text/css",a.href=this.cssProvider,this.emotionRoot=document.createElement("style"),this.shadowRootElement=document.createElement("div"),this.shadowRootElement.className="zappway-widget",o.appendChild(s),o.appendChild(a),o.appendChild(this.emotionRoot),o.appendChild(this.shadowRootElement),r==="pdfviewer"){let l=document.createElement("style");if(l.innerHTML=rL+`
521
+ `+nL,o.appendChild(l),!document.getElementById("react-pdf-global-vars")){let u=document.createElement("style");u.id="react-pdf-global-vars",u.innerHTML="body { --react-pdf-text-layer: 1; --react-pdf-annotation-layer: 1; }",document.head.appendChild(u)}}this.cache=ic({key:e,prepend:!0,container:this.emotionRoot}),this.cache.compat=!0,this.root=(0,M5.createRoot)(this.shadowRootElement)}open(){this.setIsOpen?.(!0)}close(){this.setIsOpen?.(!1)}toggle(){this.setIsOpen?.(!this.isOpen)}destroy(){this.innerHTML="",this.instanceId&&(window[this.instanceId]=null)}createNewConversation(){this.dispatchEvent(new Event(zG,{bubbles:!0,composed:!0}))}Component=i=>{let[o,s]=(0,Bu.useState)(!1);this.setIsOpen=s,this.isOpen=o;let a={};for(let h in UC)if(UC.hasOwnProperty(h)){let m=UC[h],y=this.getAttribute(h);y&&(a[m]=y)}let l=this.getAttribute("context"),c=this.getAttribute("api-host")||FG,u={};try{u=JSON.parse(this.getAttribute("interface"))}catch{}let d=D5({container:this.shadowRootElement,prefix:L5}),f={...d,colorSchemes:{...d.colorSchemes,light:{...d.colorSchemes?.light,palette:{...d.colorSchemes?.light?.palette,mode:"light"}},dark:{...d.colorSchemes?.dark,palette:{...d.colorSchemes?.dark?.palette,mode:"dark"}}}};return(0,Iu.jsx)(Bu.StrictMode,{children:(0,Iu.jsx)(Bd,{value:this.cache,children:(0,Iu.jsx)(rS,{theme:f,defaultMode:this.colorMode,modeStorageKey:q0.modeStorageKey,attribute:q0.attribute,colorSchemeStorageKey:q0.colorSchemeStorageKey,colorSchemeNode:this.shadowRootElement,children:(0,Iu.jsx)(VS,{sx:{background:"transparent"},children:Bu.default.createElement(t,{...i,isOpen:o,onEnd:this.onEnd,initConfig:u,context:l,agentId:this.getAttribute("agent-id")||"",formId:this.getAttribute("form-id")||"",apiHost:c,fileUrl:this.getAttribute("file-url")||void 0,datasourceId:this.getAttribute("datasource-id")||void 0,pageNumber:this.getAttribute("page-number")?parseInt(this.getAttribute("page-number"),10):void 0,search:this.getAttribute("search")||void 0,colorMode:this.colorMode,contact:a,locale:this.locale,styles:this.getAttribute("styles")?JSON.parse(this.getAttribute("styles")):{},onAgentLoaded:h=>{let m=h?.interfaceConfig?.customCSS;if(m){let y=document.createElement("style");y.innerHTML=m,this.shadowRootElement.appendChild(y)}}})})})})})};connectedCallback(){this.locale=jG(this),this.colorMode=HG(this),this.shadowRootElement.setAttribute(q0.attribute,this.colorMode),Mr&&console.log("[ShadowDOM] Element conectado com locale:",this.locale,"colorMode:",this.colorMode),this.root.render((0,Iu.jsx)(this.Component,{isOpen:this.isOpen,onEnd:this.onEnd}))}},N5=UG;var X0="zappway-pdfviewer",VG=N5({type:"pdfviewer",widget:cT,name:X0});typeof customElements<"u"&&!customElements.get(X0)&&customElements.define(X0,VG);var I5=e=>{let t=document.getElementById(e.containerId);if(!t)return console.error(`[PDFViewer] Container not found: ${e.containerId}`),e.onError?.(new Error(`Container not found: ${e.containerId}`)),null;let r=document.createElement(X0);e.fileUrl&&r.setAttribute("file-url",e.fileUrl),e.pageNumber&&r.setAttribute("page-number",e.pageNumber.toString()),e.search&&r.setAttribute("search",e.search),e.locale&&r.setAttribute("locale",e.locale),e.colorMode&&r.setAttribute("color-mode",e.colorMode),r.style.width="100%",r.style.height="100%",t.innerHTML="",t.appendChild(r);let n=!1,i=()=>{!n&&e.onLoad&&(n=!0,e.onLoad(1))};return setTimeout(()=>{i()},500),{pageNumber:e.pageNumber||1,numPages:1,goToPage:o=>{r.setAttribute("page-number",o.toString())},nextPage:()=>{let o=parseInt(r.getAttribute("page-number")||"1",10);r.setAttribute("page-number",(o+1).toString())},prevPage:()=>{let o=parseInt(r.getAttribute("page-number")||"1",10);r.setAttribute("page-number",Math.max(1,o-1).toString())},setScale:o=>{},getScale:()=>1,destroy:()=>{t.innerHTML=""}}},Kkt={init:I5};typeof window<"u"&&(window.ZappwayPDFViewer={init:I5});export{Kkt as default,I5 as init};
522
522
  /*! Bundled license information:
523
523
 
524
524
  react/cjs/react.production.js: