@qratilabs/qrati-connect 2.23.9 → 2.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/README.md +84 -54
  2. package/element/2CMH9VMM.js +4 -0
  3. package/element/BKDqpSN62.js +3 -0
  4. package/element/{lrjV8c1G2.js → BM9ujORR2.js} +1 -1
  5. package/element/{BqHk5hDM.js → BOQzjiMV.js} +3 -3
  6. package/element/{BYEF5Khs.js → BOqkzZ92.js} +1 -1
  7. package/element/{-p_JqYFM2.js → BP2rYgya2.js} +9 -9
  8. package/element/BZu3c37u.js +1 -0
  9. package/element/{srDF4VyG.js → Bb7nx5xF.js} +1 -1
  10. package/element/Bh8kXbe92.js +93 -0
  11. package/{umd/BvNf2yif2.js → element/Bow6F3212.js} +29 -29
  12. package/{umd/BkvtmX4K.js → element/BsYbcfkG.js} +1 -1
  13. package/element/{C8_zGNAf.js → C12iSy3L.js} +1 -1
  14. package/element/{D9NypPiv.js → C3dOFk9A.js} +1 -1
  15. package/element/C52SUIvC2.js +35 -0
  16. package/element/{DIYUC8M3.js → CAETItHr.js} +1 -1
  17. package/element/{Cb1JRT_1.js → CATr-3VW.js} +1 -1
  18. package/element/{Byk0pccK.js → CFnGGYmq.js} +1 -1
  19. package/element/CHTzn6mh2.js +4 -0
  20. package/element/CL_evx_l.js +1 -0
  21. package/element/{e_wwJ5wx2.js → CLdpUOLk2.js} +4 -4
  22. package/element/{qWp4ucdT.js → CM46vluW.js} +1 -1
  23. package/{umd/BtN9y353.js → element/CVRTTCyF.js} +1 -1
  24. package/{umd/9QY9BKOL2.js → element/CWhnvMey2.js} +8 -8
  25. package/{umd/B14kCOq8.js → element/CZ9iaxjO.js} +1 -1
  26. package/element/CaX2xgrP.js +41 -0
  27. package/element/{b6CwQBFC.js → ChJXhA9c.js} +5 -5
  28. package/element/{4VTPoA38.js → CqBk9L5O.js} +1 -1
  29. package/{umd/CiiNqDJq.js → element/CsfDBJh72.js} +1 -1
  30. package/element/{_ty2jtjs.js → D35mTuTT.js} +1 -1
  31. package/element/D5TKEdBd2.js +3 -0
  32. package/element/{CCLXmMXp.js → DF0LxcV7.js} +1 -1
  33. package/element/{DvTRhlvs.js → DGGc10Cy.js} +1 -1
  34. package/element/{ekog7y-V.js → DGbyGc8b.js} +1 -1
  35. package/element/DN26AtHL2.js +4 -0
  36. package/element/{DsvRTvCp.js → DWBbTgnB.js} +1 -1
  37. package/element/{BQuhYd4G2.js → DZtaQWVG2.js} +1 -1
  38. package/{umd/D0VKfxwE.js → element/DdOwRfWG.js} +2 -2
  39. package/element/DkG0zv7_2.js +9 -0
  40. package/{umd/gk4TX_a62.js → element/DlRUi0u42.js} +1 -1
  41. package/element/{DXx41__x2.js → DlqJDAie2.js} +1 -1
  42. package/element/DnIueBGr2.js +1 -0
  43. package/element/{BglDIiFp.js → DnQ6XaLR.js} +2 -2
  44. package/element/DrrpB4Om.js +1 -0
  45. package/element/DtRwaUYF2.js +85 -0
  46. package/element/{CSO2IaJ1.js → LYboLIEU.js} +2 -2
  47. package/{umd/DNG5BSHx2.js → element/N4HKgEC52.js} +1 -1
  48. package/element/Rcen6i0h.js +80 -0
  49. package/element/{MpvHkxaz2.js → Z0-Tddye2.js} +1 -1
  50. package/element/dT6WSX65.js +1 -0
  51. package/element/h4ZjZXfe2.js +1 -0
  52. package/element/kiL9JENf2.js +3 -0
  53. package/element/{BdOzsWR32.js → lcKuIs2T2.js} +1 -1
  54. package/element/{DdmVPlUC2.js → mIANlVHi2.js} +1 -1
  55. package/element/mQzpzQ_t.js +3 -0
  56. package/element/web.es.js +26 -105
  57. package/package.json +3 -15
  58. package/react/index.d.mts +182 -6
  59. package/react/index.d.ts +182 -6
  60. package/element/9QY9BKOL2.js +0 -8
  61. package/element/B14kCOq8.js +0 -2
  62. package/element/BItJQVdK.js +0 -41
  63. package/element/BYoa-kpQ2.js +0 -9
  64. package/element/Be1e_ATJ.js +0 -1
  65. package/element/BfkCwRAR2.js +0 -3
  66. package/element/BkvtmX4K.js +0 -2
  67. package/element/BsT0vqml.js +0 -1
  68. package/element/BtN9y353.js +0 -1
  69. package/element/BvNf2yif2.js +0 -39
  70. package/element/C030L_Hu2.js +0 -4
  71. package/element/C0MGOytI.js +0 -1
  72. package/element/C3tT7YRo2.js +0 -37
  73. package/element/C3uDEVBt.js +0 -1
  74. package/element/CJ5ChvJ52.js +0 -93
  75. package/element/CiiNqDJq.js +0 -3
  76. package/element/CnoPTYOO.js +0 -1
  77. package/element/D0VKfxwE.js +0 -10
  78. package/element/D4apO9G62.js +0 -4
  79. package/element/DB1jhaAe2.js +0 -85
  80. package/element/DNG5BSHx2.js +0 -2
  81. package/element/LJWh_4Di.js +0 -2
  82. package/element/gjXXuILV2.js +0 -3
  83. package/element/gk4TX_a62.js +0 -7
  84. package/element/qNDy94Dr2.js +0 -3
  85. package/element/styles.css +0 -288
  86. package/umd/-p_JqYFM2.js +0 -14
  87. package/umd/4VTPoA38.js +0 -1
  88. package/umd/BCTYvPrD.js +0 -1
  89. package/umd/BItJQVdK.js +0 -41
  90. package/umd/BQuhYd4G2.js +0 -2
  91. package/umd/BYEF5Khs.js +0 -1
  92. package/umd/BYoa-kpQ2.js +0 -9
  93. package/umd/BdOzsWR32.js +0 -9
  94. package/umd/Be1e_ATJ.js +0 -1
  95. package/umd/BfkCwRAR2.js +0 -3
  96. package/umd/BglDIiFp.js +0 -3
  97. package/umd/BkIDQGIs.js +0 -1
  98. package/umd/Bki5T_lb.js +0 -1
  99. package/umd/BqHk5hDM.js +0 -9
  100. package/umd/BsT0vqml.js +0 -1
  101. package/umd/Byk0pccK.js +0 -1
  102. package/umd/C030L_Hu2.js +0 -4
  103. package/umd/C0MGOytI.js +0 -1
  104. package/umd/C3tT7YRo2.js +0 -37
  105. package/umd/C3uDEVBt.js +0 -1
  106. package/umd/C8_zGNAf.js +0 -1
  107. package/umd/CCLXmMXp.js +0 -3
  108. package/umd/CJ5ChvJ52.js +0 -93
  109. package/umd/CSO2IaJ1.js +0 -2
  110. package/umd/Cb1JRT_1.js +0 -1
  111. package/umd/CfMNBPpx2.js +0 -1
  112. package/umd/CgUphJWo.js +0 -1
  113. package/umd/Cko4QHwX.js +0 -1
  114. package/umd/CnoPTYOO.js +0 -1
  115. package/umd/D4apO9G62.js +0 -4
  116. package/umd/D9NypPiv.js +0 -7
  117. package/umd/DB1jhaAe2.js +0 -85
  118. package/umd/DIYUC8M3.js +0 -2
  119. package/umd/DXx41__x2.js +0 -2
  120. package/umd/DdmVPlUC2.js +0 -13
  121. package/umd/DsvRTvCp.js +0 -8
  122. package/umd/DvTRhlvs.js +0 -2
  123. package/umd/LJWh_4Di.js +0 -2
  124. package/umd/MpvHkxaz2.js +0 -16
  125. package/umd/_ty2jtjs.js +0 -2
  126. package/umd/b6CwQBFC.js +0 -5
  127. package/umd/e_wwJ5wx2.js +0 -5
  128. package/umd/ekog7y-V.js +0 -1
  129. package/umd/gjXXuILV2.js +0 -3
  130. package/umd/index.d.ts +0 -14
  131. package/umd/lrjV8c1G2.js +0 -8
  132. package/umd/qNDy94Dr2.js +0 -3
  133. package/umd/qWp4ucdT.js +0 -1
  134. package/umd/rtH8O6Hc.js +0 -1
  135. package/umd/srDF4VyG.js +0 -9
  136. package/umd/web.es.js +0 -122
  137. package/umd/web.umd.js +0 -1
package/umd/DIYUC8M3.js DELETED
@@ -1,2 +0,0 @@
1
- import{t}from"./C3uDEVBt.js";function l({className:l}){/* @__PURE__ */
2
- return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:l,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */t("path",{fill:"currentColor",d:"m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275t.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7t-.7.275t-.7-.275z"})})}export{l as t};
package/umd/DXx41__x2.js DELETED
@@ -1,2 +0,0 @@
1
- import{t as e}from"./C3uDEVBt.js";import{i as r}from"./BItJQVdK.js";import{t as a}from"./Cb1JRT_1.js";var s=e=>e&&e.length>0?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",t=e=>e.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?void 0:"Enter a valid email":"Please enter your email",o=e=>e?e.length<8?"Min password length is 8":void 0:"Please enter your password",i=e=>{if(!e.trim())return"First name is required"},n=e=>{if(!e.trim())return"Last name is required"},d=(e,r)=>e?e!==r?"Passwords do not match":void 0:"Please confirm your password",l=({label:s,type:t="text",disabled:o,error:i,iconSVG:n,actionIcon:d,onActionClick:l,actionLabel:m,className:c="",step:u,...p})=>/* @__PURE__ */e("div",{className:"relative",children:[s&&/* @__PURE__ */e(a,{variant:"body1",className:"sm:mb-1",children:s}),
2
- /* @__PURE__ */e("div",{className:"relative",children:[n&&/* @__PURE__ */e("div",{className:r("pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",o?"text-muted-foreground":" "),children:n}),/* @__PURE__ */e("input",{type:t,disabled:o,step:"number"===t?u:void 0,"aria-invalid":!!i,className:r("border-border shadow-outer focus:border-primary peer w-full rounded border px-4 py-2 focus:border focus:ring-0 focus:outline-none",o?"text-muted-foreground bg-transparent":"bg-input",i?"border-destructive animate-pulse":"border-border animate-none",n?"pl-9":"",c),...p,value:p.value??""})]}),i&&/* @__PURE__ */e(a,{variant:"caption",color:"error","data-testid":"input-error",children:i})]});export{i as a,t as i,s as n,n as o,d as r,o as s,l as t};
package/umd/DdmVPlUC2.js DELETED
@@ -1,13 +0,0 @@
1
- import{t as e,v as r}from"./C3uDEVBt.js";import{N as a,P as t,i as l,n as i,u as n,v as o}from"./BItJQVdK.js";import{u as s}from"./b6CwQBFC.js";import{t as d}from"./Cb1JRT_1.js";import{t as c}from"./ekog7y-V.js";import{n as m}from"./DvTRhlvs.js";import{t as g}from"./qWp4ucdT.js";import{t as h}from"./B14kCOq8.js";import{t as f}from"./DNG5BSHx2.js";function p({className:r}){/* @__PURE__ */
2
- return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256",className:r,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */e("path",{fill:"currentColor",d:"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m12 152a8 8 0 0 1-16 0V95l-11.56 7.71a8 8 0 1 1-8.88-13.32l24-16A8 8 0 0 1 140 80Z"})})}function b({className:r}){/* @__PURE__ */
3
- return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256",className:r,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */e("path",{fill:"currentColor",d:"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m-4 164a35.7 35.7 0 0 1-25.71-10.81A8 8 0 1 1 109.71 166A20 20 0 1 0 124 132a8 8 0 0 1-6.55-12.59L136.63 92H104a8 8 0 0 1 0-16h48a8 8 0 0 1 6.55 12.59l-21 30A36 36 0 0 1 124 188"})})}function x({className:r}){/* @__PURE__ */
4
- return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256",className:r,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */e("path",{fill:"currentColor",d:"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m24 144a8 8 0 0 1 0 16h-48a8 8 0 0 1-6.4-12.8l43.17-57.56a16 16 0 1 0-27.86-15a8 8 0 0 1-15.09-5.34a32 32 0 1 1 55.74 29.93L120 168Z"})})}var u=e=>{if(!e)return"";const r=e.trim().split(/\s+/);return 1===r.length?r[0]:`${r[0]} ${r[1]?.[0]?`${r[1][0]}.`:""}`},v={first:{size:"size-28",imageSize:"size-24",borderColor:"border-amber-400",gradient:"from-amber-400/20 via-yellow-300/10 to-transparent"},second:{size:"size-20",imageSize:"size-16",borderColor:"border-slate-400",gradient:"from-slate-400/20 via-slate-300/10 to-transparent"},third:{size:"size-20",imageSize:"size-16",borderColor:"border-amber-600",gradient:"from-amber-600/20 via-amber-500/10 to-transparent"}},N=(e,r)=>{const a=void 0===e.totalPoint?e.maxScore:e.totalPoint;return void 0===a?"—":a.toFixed(r?2:0)},w=({entry:a,position:t,showFloatingPoint:i,hidePictures:n})=>{const o=1===t?v.first:2===t?v.second:v.third,s={1:p,2:x,3:b}[t],c={1:{bg:"bg-amber-400",border:"border-amber-600",text:"text-amber-900"},2:{bg:"bg-slate-300",border:"border-slate-500",text:"text-slate-700"},3:{bg:"bg-amber-600",border:"border-amber-800",text:"text-amber-100"}},m=r(e=>{e.currentTarget.style.display="none"},[]);/* @__PURE__ */
5
- return e("div",{className:l("flex w-full flex-col items-center justify-center rounded-xl p-4 text-center sm:min-w-36","bg-linear-to-b",o.gradient),children:[n?/* @__PURE__ */e(s,{className:l(o.size,{1:"text-amber-400",2:"text-slate-400",3:"text-amber-600"}[t])}):/* @__PURE__ */e("div",{className:"relative",children:[/* @__PURE__ */e("img",{className:l(o.imageSize,"shadow-card scale-100 rounded-full border-4 object-cover",o.borderColor),src:a.image,alt:a.name??"",loading:"lazy",onError:m}),/* @__PURE__ */e("span",{className:l("shadow-card absolute -bottom-2 left-1/2 z-10 flex size-7 -translate-x-1/2 items-center justify-center rounded-full border-2 text-sm font-bold",c[t].bg,c[t].border,c[t].text),children:t})]}),/* @__PURE__ */e("div",{className:"mt-3 space-y-3 text-center",children:[/* @__PURE__ */e(d,{variant:"h6",lines:2,className:"max-w-24",align:"center",children:u(a.name)}),/* @__PURE__ */e("div",{className:"text-primary text-lg font-bold",children:N(a,i)})]})]})},y=({title:a,entries:t=[],showFloatingPoint:i=!1,hidePictures:n=!0})=>{const{t:o}=m(),s=a.replace(/\s+/g,"-").toLowerCase(),c=r(e=>{e.currentTarget.style.display="none"},[]);/* @__PURE__ */
6
- return e("div",{className:"border-border mx-auto flex max-w-2xl flex-col rounded border p-4 sm:p-5 lg:p-6",children:[/* @__PURE__ */e("div",{className:"mb-4 flex items-center justify-center gap-2",children:[/* @__PURE__ */e(h,{className:"text-primary size-6"}),/* @__PURE__ */e(d,{variant:"h4",align:"center",color:"primary",children:a})]}),0===t.length?/* @__PURE__ */e("div",{className:"py-16 text-center",children:[/* @__PURE__ */e(d,{variant:"h5",align:"center",color:"error",children:o("leaderboard.not_available","No data available")}),/* @__PURE__ */e(d,{variant:"body2",align:"center",color:"muted",className:"mt-2",children:o("leaderboard.come_back_later","Check back later for updates.")})]}):/* @__PURE__ */e("div",{children:[/* @__PURE__ */e("div",{className:"flex items-end justify-center gap-2 lg:gap-8",children:[t.length>1&&/* @__PURE__ */e(w,{entry:t[1],position:2,showFloatingPoint:i,hidePictures:n}),t.length>0&&/* @__PURE__ */e(w,{entry:t[0],position:1,showFloatingPoint:i,hidePictures:n}),t.length>2&&/* @__PURE__ */e(w,{entry:t[2],position:3,showFloatingPoint:i,hidePictures:n})]}),/* @__PURE__ */e("div",{className:"mt-6 overflow-hidden rounded ring-1 ring-black/5",children:/* @__PURE__ */e("div",{className:"divide-border divide-y",children:t.slice(3).map((r,a)=>/* @__PURE__ */e("div",{className:l("hover:bg-primary/5 flex items-center gap-4 px-4 py-3",a%2==0?"bg-primary/5":"bg-background"),children:[
7
- /* @__PURE__ */e("span",{className:"text-muted-foreground w-8 text-center text-sm font-medium",children:a+4}),!n&&/* @__PURE__ */e("img",{className:"ring-border size-10 rounded-full object-cover ring-2",src:r.image,alt:r.name??"",loading:"lazy",onError:c}),
8
- /* @__PURE__ */e("div",{className:"min-w-0 flex-1",children:/* @__PURE__ */e("div",{className:"truncate font-medium",children:u(r.name)})}),
9
- /* @__PURE__ */e("div",{className:"text-primary text-right font-semibold",children:N(r,i)})]},`${s}-${a}`))})})]})]})},z=()=>{const{eventSlug:r}=s(),{props:h}=i(),{t:p}=m(),b=h?.organizationId,{event:x,loading:u}=g({eventSlug:r}),{isLoading:v,isError:N,error:w,data:z}=t({queryKey:[`leaderboard-${b}-${x?._id}`],queryFn:async()=>(await a.get(n.GET_LEADERBOARD,{headers:{"x-org-id":b??""},searchParams:{eventId:x?._id??"",projection:"connect"}}).json()).data,enabled:Boolean(x),staleTime:3e4,gcTime:3e5});/* @__PURE__ */
10
- return e("div",u||v?{className:"bg-background mt-4 flex min-h-[80vh] w-full flex-col gap-6 px-2 py-4 sm:px-0 lg:py-8",children:[/* @__PURE__ */e("div",{className:"flex flex-col items-center gap-2 text-center",children:[/* @__PURE__ */e(c,{className:"h-5 w-28 rounded-full"}),/* @__PURE__ */e(c,{className:"h-10 w-64 rounded"})]}),/* @__PURE__ */e("div",{className:l("flex w-full gap-8 lg:gap-0",x?.engagementStyle===o.REACTION?"flex-col-reverse md:flex-row-reverse md:justify-between":"flex-col md:flex-row"),children:[/* @__PURE__ */e("div",{className:"flex-1",children:[/* @__PURE__ */e(c,{className:"h-72 w-full rounded"}),/* @__PURE__ */e(c,{className:"mt-4 h-72 w-full rounded"})]}),/* @__PURE__ */e("div",{className:"flex-1",children:/* @__PURE__ */e(c,{className:"h-72 w-full rounded"})})]})]}:N?{className:"bg-background mt-4 flex min-h-[80vh] w-full flex-col items-center justify-center gap-4 px-2 py-4 text-center sm:px-0 lg:py-8",children:[
11
- /* @__PURE__ */e(f,{className:"size-9 text-destructive"}),
12
- /* @__PURE__ */e(d,{variant:"h4",color:"error",align:"center",children:p("common.error","Something went wrong")}),
13
- /* @__PURE__ */e(d,{variant:"body2",color:"muted",align:"center",children:w instanceof Error?w.message:p("common.try_again","Please try again later.")})]}:{className:"bg-background mt-4 flex min-h-[80vh] w-full flex-col gap-6 px-2 py-4 sm:px-0 lg:py-8",children:[/* @__PURE__ */e("div",{className:"flex flex-col items-center gap-2 text-center",children:[/* @__PURE__ */e("div",{className:"text-primary flex items-center gap-2",children:/* @__PURE__ */e(d,{variant:"h5",color:"primary",children:p("leaderboard.leaderboard","Leaderboard")})}),/* @__PURE__ */e(d,{variant:"h4",align:"center",color:"foreground",children:x?.name})]}),/* @__PURE__ */e("div",{className:l("flex w-full gap-8 lg:gap-0",x?.engagementStyle===o.REACTION?"flex-col-reverse md:flex-row-reverse md:justify-between":"flex-col md:flex-row"),children:[/* @__PURE__ */e("div",{className:"flex-1",children:/* @__PURE__ */e(y,{title:p("leaderboard.point_leaders","Top Points Leaders"),entries:z?.leaderboardByPoint?.topRankers||[],pointName:x?.pointName})}),/* @__PURE__ */e("div",{className:"flex-1",children:/* @__PURE__ */e(y,{title:x?.engagementStyle===o.REACTION?p("leaderboard.reaction_counts","Top Reactions"):p("leaderboard.top_rated_photos","Top Rated Photos"),showFloatingPoint:x?.engagementStyle===o.CONTEST,entries:z?.leaderboardByScore?.topRankers||[],pointName:x?.pointName})})]})]})};export{z as default};
package/umd/DsvRTvCp.js DELETED
@@ -1,8 +0,0 @@
1
- import{b as r,t as e}from"./C3uDEVBt.js";import{D as a,i as s,n as t}from"./BItJQVdK.js";import{c as i,i as o,l as m,n as d}from"./b6CwQBFC.js";import{t as l}from"./ekog7y-V.js";import{t as c}from"./_ty2jtjs.js";var n=()=>{const n=i(),b=m(),{initializing:f,organization:p,user:x}=t();return r(()=>{if(x){const r=n.state?.referrer;b(r||"/")}},[x]),f?/* @__PURE__ */e("div",{className:"mx-auto max-w-lg space-y-8 py-8",children:[
2
- /* @__PURE__ */e(l,{className:"h-8"}),
3
- /* @__PURE__ */e(l,{className:"h-8"}),
4
- /* @__PURE__ */e(l,{className:"h-8"}),
5
- /* @__PURE__ */e(l,{className:"h-8"})]}):!p||p?.customAuth?null:/* @__PURE__ */e("div",{className:"bg-background mx-auto min-h-[80vh] max-w-md py-24",children:[
6
- /* @__PURE__ */e("div",{className:"my-8 flex w-full justify-around",children:[/* @__PURE__ */e(d,{to:a.LOGIN,state:n.state||void 0,className:({isActive:r})=>s(r?"border-primary text-primary font-semibold":"border-border","flex-1 border-2 border-x-0 border-t-0 pb-2 text-center"),children:"Login"}),/* @__PURE__ */e(d,{to:a.REGISTER,state:n.state||void 0,className:({isActive:r})=>s(r?"border-primary text-primary font-semibold":"border-border","flex-1 border-2 border-x-0 border-t-0 pb-2 text-center"),children:"Register"})]}),
7
- /* @__PURE__ */e(o,{}),
8
- /* @__PURE__ */e("div",{className:"mt-12",children:/* @__PURE__ */e(c,{})})]})};export{n as default};
package/umd/DvTRhlvs.js DELETED
@@ -1,2 +0,0 @@
1
- import{E as r,p as n,t as o,v as a,y as s}from"./C3uDEVBt.js";var t={loading:"Loading...",error:"Error",not_found:"Translation not found"},e=r({locale:"en",translations:t,isLoading:!1,error:null}),i=()=>{const r=s(e);if(!r)throw new Error("useI18n must be used within an I18nProvider");const{translations:n,isLoading:o,error:i}=r;return{t:a((r,a)=>o?t.loading:i?t.error:n[r]||a||r,[n,o,i])}},l=i,d=({children:r,locale:a="en",translations:s})=>{const i=n(()=>({locale:a,translations:{...t,...s||{}},isLoading:!1,error:null}),[a,s]);/* @__PURE__ */
2
- return o(e.Provider,{value:i,children:r})};export{i as n,l as r,d as t};