@qratilabs/qrati-connect 2.23.4 → 2.23.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.
@@ -1,4 +1,4 @@
1
- import{h as e,p as a,t as r}from"./qbHuxVSe.js";import{D as s,n as i}from"./TV5seYRS.js";import{l}from"./Crix9_9X.js";import{t}from"./CtYiLBXL.js";import{n as o}from"./DWbLshVZ.js";import{t as n}from"./BCyTQnZ1.js";import{i as d,s as c,t as u}from"./D9_lIXvx2.js";var h=({count:e=1,currentStep:a=0,disabled:s,onStepClick:i})=>{const l=s||!i;/* @__PURE__ */
1
+ import{h as e,p as a,t as r}from"./qbHuxVSe.js";import{D as s,n as i}from"./TV5seYRS.js";import{l}from"./Crix9_9X.js";import{t}from"./CtYiLBXL.js";import{n as o}from"./DWbLshVZ.js";import{t as n}from"./BCyTQnZ1.js";import{i as d,s as c,t as u}from"./DV3rTDj-2.js";var h=({count:e=1,currentStep:a=0,disabled:s,onStepClick:i})=>{const l=s||!i;/* @__PURE__ */
2
2
  return r("ol",{className:"flex items-center space-x-6 pl-1.5",children:Array.from({length:e}).map((e,s)=>/* @__PURE__ */r("li",{children:/* @__PURE__ */r("button",s<a?{type:"button",className:"bg-primary block h-3 w-3 rounded-full",disabled:l,onClick:()=>i?.(s)}:s===a?{type:"button",className:"relative flex items-center justify-center","aria-current":"step",disabled:l,onClick:()=>i?.(s),children:[/* @__PURE__ */r("span",{className:"absolute flex size-6 p-px","aria-hidden":"true",children:/* @__PURE__ */r("span",{className:"bg-primary/40 size-full rounded-full"})}),/* @__PURE__ */r("span",{className:"bg-primary relative block size-3 rounded-full","aria-hidden":"true"})]}:{type:"button",className:"bg-muted block size-3 rounded-full",disabled:l,onClick:()=>i?.(s)})},`progress-dot-${s}`))})},m=({onCodeSent:a})=>{const{t:s}=o(),{sendPasswordResetCode:l}=i(),[c,h]=e(""),[m,f]=e(!1),[p,y]=e(null),[v,g]=e(null);/* @__PURE__ */
3
3
  return r("div",{className:"space-y-4",children:[
4
4
  /* @__PURE__ */r(t,{variant:"h4",children:s("auth.forgotPassword","Forgot Password")}),
@@ -1,4 +1,4 @@
1
- import{h as a,t as e}from"./qbHuxVSe.js";import{D as o,n as s}from"./TV5seYRS.js";import{c as l,t as r}from"./Crix9_9X.js";import{t as i}from"./CtYiLBXL.js";import{n as t}from"./DWbLshVZ.js";import{t as n}from"./BCyTQnZ1.js";import{i as d,s as p,t as m}from"./D9_lIXvx2.js";import{n as c,r as g,t as u}from"./u7SUQ9Kb2.js";var f=()=>{const{t:f}=t(),h=l(),[w,v]=a(""),[b,y]=a(""),[j,C]=a(!1),[N,k]=a(null),[A,P]=a(!1),[S,x]=a({}),{loginUsingEmail:D,loginWithGoogle:E,loginWithApple:F}=s(),[L,O]=a({google:!1,apple:!1}),W=a=>{x(e=>e[a]?{...e,[a]:void 0}:e)},G=async(a,e)=>{O(e=>({...e,[a]:!0})),k(null);try{await(e?.())}catch(o){o instanceof Error?k(o.message):k(`Failed to login with ${a.charAt(0).toUpperCase()+a.slice(1)}`)}finally{O(e=>({...e,[a]:!1}))}};/* @__PURE__ */
1
+ import{h as a,t as e}from"./qbHuxVSe.js";import{D as o,n as s}from"./TV5seYRS.js";import{c as l,t as r}from"./Crix9_9X.js";import{t as i}from"./CtYiLBXL.js";import{n as t}from"./DWbLshVZ.js";import{t as n}from"./BCyTQnZ1.js";import{i as d,s as p,t as m}from"./DV3rTDj-2.js";import{n as c,r as g,t as u}from"./u7SUQ9Kb2.js";var f=()=>{const{t:f}=t(),h=l(),[w,v]=a(""),[b,y]=a(""),[j,C]=a(!1),[N,k]=a(null),[A,P]=a(!1),[S,x]=a({}),{loginUsingEmail:D,loginWithGoogle:E,loginWithApple:F}=s(),[L,O]=a({google:!1,apple:!1}),W=a=>{x(e=>e[a]?{...e,[a]:void 0}:e)},G=async(a,e)=>{O(e=>({...e,[a]:!0})),k(null);try{await(e?.())}catch(o){o instanceof Error?k(o.message):k(`Failed to login with ${a.charAt(0).toUpperCase()+a.slice(1)}`)}finally{O(e=>({...e,[a]:!1}))}};/* @__PURE__ */
2
2
  return e("div",{className:"bg-background w-full space-y-6",children:[/* @__PURE__ */e("form",{noValidate:!0,onSubmit:async a=>{a.preventDefault();const e=d(w),o=p(b);if(e||o)return void x({email:e,password:o});x({}),C(!0),k(null);const s=await(D?.(w.toLowerCase(),b));s?.error&&k(s.error),C(!1)},className:"space-y-6",children:[
3
3
  /* @__PURE__ */e("div",{className:"space-y-9",children:[/* @__PURE__ */e(m,{label:f("auth.email","Email address"),name:"email",disabled:j,type:"email",value:w,onChange:a=>{v(a.target.value),W("email")},autoComplete:"email",error:S.email}),/* @__PURE__ */e(m,{label:f("auth.password","Password"),name:"password",disabled:j,type:A?"text":"password",value:b,onChange:a=>{y(a.target.value),W("password")},autoComplete:"current-password",error:S.password,actionLabel:A?"Hide password":"Show password",actionIcon:/* @__PURE__ */e(A?u:c,{className:"size-5"}),onActionClick:()=>P(!A)})]}),N&&/* @__PURE__ */e(i,{align:"center",color:"error",className:"font-medium",children:N}),
4
4
  /* @__PURE__ */e("div",{className:"flex justify-end",children:/* @__PURE__ */e(r,{to:o.FORGOT_PASSWORD,state:{from:h.pathname},children:/* @__PURE__ */e(i,{variant:"h6",className:"w-fit",children:f("button.forgotPassword","Forgot Password?")})})}),
@@ -1,4 +1,4 @@
1
- import{T as e,b as t,d as n,f as r,h as a,p as i,s,t as o,v as l}from"./qbHuxVSe.js";import{C as c,D as d,L as u,M as m,N as g,O as h,P as p,S as f,_ as v,b as w,d as T,f as y,g as N,h as q,i as x,j as b,m as E,n as C,p as S,u as I,v as L,x as z,y as k}from"./TV5seYRS.js";import{n as A,r as M,t as _}from"./DZ2f3-jO.js";import{t as P,u as R}from"./Crix9_9X.js";import{t as V}from"./CuRZaTn5.js";import{n as O,t as j}from"./CtYiLBXL.js";import{a as F,c as B,i as H,l as U,n as G,o as $,r as D,s as W,t as Q,u as K}from"./DiBNGdQS.js";import{t as Z}from"./YJHG0sOk.js";import{r as Y}from"./DWbLshVZ.js";import{n as J,t as X}from"./BCyTQnZ1.js";import{t as ee}from"./C9HFLidt.js";import{t as te}from"./DmSY4t_i.js";import{t as ne}from"./CJpmOICA.js";import{a as re,i as ae,n as ie,o as se,r as oe,s as le,t as ce}from"./DBS5eoAD.js";import{n as de,r as ue,t as me}from"./D8Se70tP2.js";import{n as ge,t as he}from"./D9_lIXvx2.js";function pe({className:e}){/* @__PURE__ */
1
+ import{T as e,b as t,d as n,f as r,h as a,p as i,s,t as o,v as l}from"./qbHuxVSe.js";import{C as c,D as d,L as u,M as m,N as g,O as h,P as p,S as f,_ as v,b as w,d as T,f as y,g as N,h as q,i as x,j as b,m as E,n as C,p as S,u as I,v as L,x as z,y as k}from"./TV5seYRS.js";import{n as A,r as M,t as _}from"./DZ2f3-jO.js";import{t as P,u as R}from"./Crix9_9X.js";import{t as V}from"./CuRZaTn5.js";import{n as O,t as j}from"./CtYiLBXL.js";import{a as F,c as B,i as H,l as U,n as G,o as $,r as D,s as W,t as Q,u as K}from"./DiBNGdQS.js";import{t as Z}from"./YJHG0sOk.js";import{r as Y}from"./DWbLshVZ.js";import{n as J,t as X}from"./BCyTQnZ1.js";import{t as ee}from"./C9HFLidt.js";import{t as te}from"./DmSY4t_i.js";import{t as ne}from"./CJpmOICA.js";import{a as re,i as ae,n as ie,o as se,r as oe,s as le,t as ce}from"./DBS5eoAD.js";import{n as de,r as ue,t as me}from"./D8Se70tP2.js";import{n as ge,t as he}from"./DV3rTDj-2.js";function pe({className:e}){/* @__PURE__ */
2
2
  return o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */o("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm0-2h14V5H5zm0 0V5zm2-2h10q.3 0 .45-.275t-.05-.525l-2.75-3.675q-.15-.2-.4-.2t-.4.2L11.25 16L9.4 13.525q-.15-.2-.4-.2t-.4.2l-2 2.675q-.2.25-.05.525T7 17"})})}function fe({className:e}){/* @__PURE__ */
3
3
  return o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */o("path",{fill:"currentColor",d:"M15.188 14.688Q16.5 13.375 16.5 11.5t-1.312-3.187T12 7T8.813 8.313T7.5 11.5t1.313 3.188T12 16t3.188-1.312m-5.1-1.276Q9.3 12.625 9.3 11.5t.788-1.912T12 8.8t1.913.788t.787 1.912t-.787 1.913T12 14.2t-1.912-.787m-4.2 3.787q-2.763-1.8-4.363-4.75q-.125-.225-.187-.462t-.063-.488t.063-.488t.187-.462q1.6-2.95 4.363-4.75T12 4t6.113 1.8t4.362 4.75q.125.225.188.463t.062.487t-.062.488t-.188.462q-1.6 2.95-4.362 4.75T12 19t-6.113-1.8m11.3-1.687Q19.55 14.025 20.8 11.5q-1.25-2.525-3.613-4.012T12 6T6.813 7.488T3.2 11.5q1.25 2.525 3.613 4.013T12 17t5.188-1.487"})})}var ve=({description:e,maxLines:n=2,className:i})=>{const[s,l]=a(!1),[c,d]=a(!1),u=r(null),m=r(null);return t(()=>{l(!1)},[e]),t(()=>{if(!u.current||!e)return void d(!1);const t=u.current,r=()=>{const e=window.getComputedStyle(t),a=Math.max(0,Math.floor(t.getBoundingClientRect().width));if(!a)return void(m.current=window.requestAnimationFrame(r));const i=e.lineHeight,s=parseFloat(e.fontSize)||16;let o=1.2*s;i&&"normal"!==i&&(o=i.endsWith("px")?parseFloat(i):parseFloat(i)*s);const l=document.createElement("div");l.style.position="absolute",l.style.visibility="hidden",l.style.pointerEvents="none",l.style.whiteSpace="normal",l.style.width=`${a}px`,l.style.boxSizing=e.boxSizing,l.style.padding=e.padding,l.style.margin=e.margin,l.style.fontSize=e.fontSize,l.style.fontFamily=e.fontFamily,l.style.fontWeight=e.fontWeight,l.style.lineHeight=e.lineHeight,l.style.letterSpacing=e.letterSpacing,l.style.wordBreak="break-word",l.innerText=t.innerText||"",document.body.appendChild(l);const c=l.scrollHeight;document.body.removeChild(l),d(c>o*n+1)},a=()=>{null!==m.current&&window.cancelAnimationFrame(m.current),m.current=window.requestAnimationFrame(r)};let i;a(),window.addEventListener("resize",a);try{i=new MutationObserver(a),i.observe(t,{characterData:!0,childList:!0,subtree:!0})}catch{}return()=>{window.removeEventListener("resize",a),null!==m.current&&window.cancelAnimationFrame(m.current),i?.disconnect()}},[e,n]),e?/* @__PURE__ */o("div",{className:x("relative w-full",i),children:[/* @__PURE__ */o("p",{ref:u,className:x(O({variant:"body2",color:"muted",align:"center"}),"w-full",s?void 0:`line-clamp-${n}`),children:[e,c&&s&&/* @__PURE__ */o("button",{type:"button",onClick:()=>l(!1),className:"text-primary ml-2 text-sm font-medium hover:underline cursor-pointer",children:"see less"})]}),c&&!s&&/* @__PURE__ */o("span",{className:"bg-background absolute right-0 bottom-0 inline-flex items-center pl-2",children:[/* @__PURE__ */o("span",{className:"text-muted-foreground",children:"..."}),/* @__PURE__ */o("button",{type:"button",onClick:()=>l(!0),className:"text-primary ml-1 text-sm font-medium hover:underline cursor-pointer",children:"see more"})]})]}):null},we=()=>{const{t:e}=Y(),{eventSlug:t}=R(),{event:n}=te({eventSlug:t}),{props:r,organization:a}=C(),{curateLabel:i,leaderboardLabel:s}=r??{},{eventViews:l,contentCount:c,curationCount:u}=(({event:e})=>{const{props:t,organization:n}=C(),r=t?.organizationId,{isLoading:a,data:i}=p({queryKey:["event-stats",r??"",e?._id??""],queryFn:async()=>{try{return(await g.get(I.GET_EVENT_STATISTICS,{searchParams:{eventSlug:e?.slug},headers:{"x-org-id":r}}).json()).data}catch(t){throw new Error(t instanceof Error?t.message:String(t)||"Failed to fetch event stats")}},enabled:!!e&&Boolean(n?.integrationSettings?.showEventStats)});return{isLoading:a,eventViews:"number"==typeof i?.eventViews?i.eventViews:i?.eventViews?.views??0,contentCount:i?.contentCount||0,curationCount:i?.curationCount||0}})({event:n});/* @__PURE__ */
4
4
  return o("div",{className:"w-full space-y-3",children:[
@@ -1,4 +1,4 @@
1
- import{h as a,t as s}from"./qbHuxVSe.js";import{D as e,n as o}from"./TV5seYRS.js";import{c as r,t as l}from"./Crix9_9X.js";import{t as i}from"./CtYiLBXL.js";import{n as t}from"./DWbLshVZ.js";import{t as n}from"./BCyTQnZ1.js";import{a as d,i as m,o as c,r as p,s as w,t as g}from"./D9_lIXvx2.js";import{n as h,r as f,t as u}from"./u7SUQ9Kb2.js";var b=()=>{const{t:b}=t(),[v,C]=a(""),[P,y]=a(""),[N,j]=a(""),[x,k]=a(""),[A,S]=a(""),[z,F]=a(null),[L,D]=a({}),[E,O]=a(!1),[R,W]=a({google:!1,apple:!1}),[G,H]=a({showPassword:!1,showConfirmPassword:!1}),I=r(),{registerUsingEmail:U,loginWithGoogle:B,loginWithApple:J}=o(),T=a=>{D(s=>s[a]?{...s,[a]:void 0}:s)},V=async(a,s)=>{W(s=>({...s,[a]:!0})),F(null);try{await(s?.())}catch(e){e instanceof Error?F(e.message):F(`Failed to sign up with ${a.charAt(0).toUpperCase()+a.slice(1)}`)}finally{W(s=>({...s,[a]:!1}))}};/* @__PURE__ */
1
+ import{h as a,t as s}from"./qbHuxVSe.js";import{D as e,n as o}from"./TV5seYRS.js";import{c as r,t as l}from"./Crix9_9X.js";import{t as i}from"./CtYiLBXL.js";import{n as t}from"./DWbLshVZ.js";import{t as n}from"./BCyTQnZ1.js";import{a as d,i as m,o as c,r as p,s as w,t as g}from"./DV3rTDj-2.js";import{n as h,r as f,t as u}from"./u7SUQ9Kb2.js";var b=()=>{const{t:b}=t(),[v,C]=a(""),[P,y]=a(""),[N,j]=a(""),[x,k]=a(""),[A,S]=a(""),[z,F]=a(null),[L,D]=a({}),[E,O]=a(!1),[R,W]=a({google:!1,apple:!1}),[G,H]=a({showPassword:!1,showConfirmPassword:!1}),I=r(),{registerUsingEmail:U,loginWithGoogle:B,loginWithApple:J}=o(),T=a=>{D(s=>s[a]?{...s,[a]:void 0}:s)},V=async(a,s)=>{W(s=>({...s,[a]:!0})),F(null);try{await(s?.())}catch(e){e instanceof Error?F(e.message):F(`Failed to sign up with ${a.charAt(0).toUpperCase()+a.slice(1)}`)}finally{W(s=>({...s,[a]:!1}))}};/* @__PURE__ */
2
2
  return s("div",{className:"bg-background w-full space-y-8",children:[/* @__PURE__ */s("form",{noValidate:!0,onSubmit:async a=>{a.preventDefault();const s=d(v),e=c(P),o=m(N),r=w(x),l=p(A,x);if(s||e||o||r||l)return void D({fname:s,lname:e,email:o,password:r,confirmPassword:l});D({}),O(!0),F(null);const i=await(U?.(N.toLowerCase(),x,v,P));i?.error&&F(i.error),O(!1)},className:"space-y-4",children:[
3
3
  /* @__PURE__ */s("div",{className:"grid grid-cols-2 gap-4",children:[/* @__PURE__ */s(g,{label:b("auth.firstName","First name"),name:"fname",disabled:E,type:"text",value:v,onChange:a=>{C(a.target.value),T("fname")},error:L.fname}),/* @__PURE__ */s(g,{label:b("auth.lastName","Last name"),name:"lname",disabled:E,type:"text",value:P,onChange:a=>{y(a.target.value),T("lname")},error:L.lname})]}),
4
4
  /* @__PURE__ */s(g,{label:b("auth.email","Email address"),name:"email",disabled:E,type:"email",value:N,onChange:a=>{j(a.target.value),T("email")},autoComplete:"email",error:L.email}),
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./qbHuxVSe.js";import{i as r}from"./TV5seYRS.js";import{t as a}from"./CtYiLBXL.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/element/web.es.js CHANGED
@@ -107,10 +107,10 @@ return s("div",{className:"space-y-4",children:[r===b[0]&&/* @__PURE__ */s(j,{va
107
107
  /* @__PURE__ */s("div",{className:"mt-4 grid grid-cols-1 gap-4 sm:grid-cols-3",children:Array.from({length:6}).map((r,t)=>/* @__PURE__ */s("div",{className:"space-y-4",children:[/* @__PURE__ */s(M,{className:"h-72 overflow-hidden rounded sm:h-80"}),/* @__PURE__ */s(M,{className:"h-6 w-64 rounded"})]},t))})]})]}:{children:[g?.navigationSettings?.enableNavbar&&/* @__PURE__ */s(B,{}),
108
108
  /* @__PURE__ */s("div",{className:"min-h-screen w-full",children:[
109
109
  /* @__PURE__ */s("div",{className:"flex items-end justify-between",children:[/* @__PURE__ */s("div",{className:"mt-4 flex justify-end",children:y&&/* @__PURE__ */s(V,{className:"flex-1 lg:flex-none",selected:x,buttons:yr,onChange:r=>(r=>{k(r);try{m&&sessionStorage.setItem(`qrati-view-mode-${m}`,r)}catch(t){}})(r)})}),/* @__PURE__ */s("div",{className:"flex flex-col items-end gap-4",children:[/* @__PURE__ */s(dr,{organization:g}),u&&/* @__PURE__ */s(gr,{onSearch:w.handleSearch,onClear:w.clearSearch,hasActiveSearch:w.isSearchActive})]})]}),w.isSearchActive&&/* @__PURE__ */s(ur,{folders:d||[],submittedQuery:w.submittedQuery,submittedSearchType:w.submittedSearchType,isLoading:w.isLoading,errorMessage:w.errorMessage,hasMore:w.hasMore,isSearchActive:w.isSearchActive,page:w.page,onLoadMore:()=>w.setPage(r=>r+1),eventResults:w.eventResults,contentResults:w.contentResults,contentMeta:w.contentMeta,activeFolderKeys:w.activeFolderKeys,eventGroupsByFolder:w.eventGroupsByFolder,contentGroups:w.contentGroups,contentGroupsByFolder:w.contentGroupsByFolder,flattenedContentMedia:w.flattenedContentMedia,galleryElementRef:w.galleryElementRef,galleryId:w.galleryId,openMediaInLightbox:w.openMediaInLightbox}),!w.isSearchActive&&/* @__PURE__ */s(r,{children:["grid"===x&&a&&/* @__PURE__ */s("div",{className:"mt-4",children:/* @__PURE__ */s(nr,{homeLink:p.PUBLIC_EVENTS,data:j})}),"grid"===x&&N.length>0&&/* @__PURE__ */s("div",{className:"mt-4 grid grid-cols-2 gap-3 md:grid-cols-3 lg:grid-cols-4 lg:gap-6",children:N.map(r=>/* @__PURE__ */s(q,{to:p.FOLDER_EVENTS(String(r?._id)),children:/* @__PURE__ */s(sr,{folder:r},String(r._id))},String(r?._id)))}),"map"!==x&&(S?.length??0)<=0&&/* @__PURE__ */s("div",{className:"min-h-[80vh]",children:/* @__PURE__ */s(D,{title:((d??[]).length??0)>0?"Empty Folder":"No Events",description:((d??[]).length??0)>0?"Browse other folders for events":"Check back later for our awesome events!",className:"mt-24 md:mt-36",iconSvg:/* @__PURE__ */s(rr,{})})}),"map"===x&&y?/* @__PURE__ */s(n,{fallback:/* @__PURE__ */s(M,{className:"mt-4 h-[70vh] w-full rounded-lg"}),children:/* @__PURE__ */s(wr,{events:_??[],isLoading:T})}):(S?.length??0)>0&&/* @__PURE__ */s("div",{className:"mt-4 grid grid-cols-1 gap-4 gap-y-6 pb-16 sm:grid-cols-2 lg:grid-cols-3",children:(S??[]).map(r=>/* @__PURE__ */s(q,{to:p.GALLERY(String(r.slug)),children:/* @__PURE__ */s(ar,{event:r})},r._id))})]})]}),
110
- /* @__PURE__ */s(P,{})]})},kr=a(()=>import("./BNj7xAbL.js")),_r=a(()=>import("./DcLlwdC6.js")),Tr=a(()=>import("./DJWnpm1A2.js")),zr=a(()=>import("./BbWh89xA2.js")),Cr=a(()=>import("./D9MdXU5q2.js")),Nr=a(()=>import("./DD6up6cl2.js")),qr=a(()=>import("./CpaT2goE2.js")),Rr=a(()=>import("./CpBGzCRR2.js")),Mr=a(()=>import("./CiryJz3K2.js")),jr=a(()=>import("./CslFRHxJ2.js")),Er=()=>/* @__PURE__ */s("div",{className:"flex flex-col gap-4 p-4",children:[
110
+ /* @__PURE__ */s(P,{})]})},kr=a(()=>import("./BNj7xAbL.js")),_r=a(()=>import("./DcLlwdC6.js")),Tr=a(()=>import("./CUJTm_YL2.js")),zr=a(()=>import("./BbWh89xA2.js")),Cr=a(()=>import("./3djirt_r2.js")),Nr=a(()=>import("./DD6up6cl2.js")),qr=a(()=>import("./BrWTIUcy2.js")),Rr=a(()=>import("./D9JpTB2O2.js")),Mr=a(()=>import("./CiryJz3K2.js")),jr=a(()=>import("./CslFRHxJ2.js")),Er=()=>/* @__PURE__ */s("div",{className:"flex flex-col gap-4 p-4",children:[
111
111
  /* @__PURE__ */s(M,{className:"h-8 w-3/4 rounded"}),
112
112
  /* @__PURE__ */s(M,{className:"h-64 w-full rounded-lg"}),
113
- /* @__PURE__ */s("div",{className:"flex gap-3",children:[/* @__PURE__ */s(M,{className:"h-10 w-24 rounded"}),/* @__PURE__ */s(M,{className:"h-10 w-24 rounded"})]})]}),Sr=({router:r="memory"})=>{const a="hash"===r.toLowerCase()?"hash":"memory";return t(()=>{const r=()=>{import("./DJWnpm1A2.js"),import("./BbWh89xA2.js"),import("./CiryJz3K2.js"),import("./DD6up6cl2.js")};if("undefined"!=typeof requestIdleCallback){const t=requestIdleCallback(r,{timeout:5e3});return()=>cancelIdleCallback(t)}const t=setTimeout(r,2e3);return()=>clearTimeout(t)},[]),/* @__PURE__ */s(z,{mode:a,children:[/* @__PURE__ */s(W,{}),/* @__PURE__ */s(n,{fallback:/* @__PURE__ */s(Er,{}),children:/* @__PURE__ */s(N,{children:[
113
+ /* @__PURE__ */s("div",{className:"flex gap-3",children:[/* @__PURE__ */s(M,{className:"h-10 w-24 rounded"}),/* @__PURE__ */s(M,{className:"h-10 w-24 rounded"})]})]}),Sr=({router:r="memory"})=>{const a="hash"===r.toLowerCase()?"hash":"memory";return t(()=>{const r=()=>{import("./CUJTm_YL2.js"),import("./BbWh89xA2.js"),import("./CiryJz3K2.js"),import("./DD6up6cl2.js")};if("undefined"!=typeof requestIdleCallback){const t=requestIdleCallback(r,{timeout:5e3});return()=>cancelIdleCallback(t)}const t=setTimeout(r,2e3);return()=>clearTimeout(t)},[]),/* @__PURE__ */s(z,{mode:a,children:[/* @__PURE__ */s(W,{}),/* @__PURE__ */s(n,{fallback:/* @__PURE__ */s(Er,{}),children:/* @__PURE__ */s(N,{children:[
114
114
  /* @__PURE__ */s(_,{path:"/my-uploads",element:jr}),
115
115
  /* @__PURE__ */s(_,{path:"/:folderId?",element:xr}),
116
116
  /* @__PURE__ */s(_,{path:"/event/:eventSlug",element:_r,children:[
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qratilabs/qrati-connect",
3
- "version": "2.23.4",
3
+ "version": "2.23.5",
4
4
  "description": "Qrati Connect - Preact-based embeddable SDK with React wrapper",
5
5
  "author": "Qrati Labs",
6
6
  "license": "UNLICENSED",
@@ -1,4 +1,4 @@
1
- import{h as e,p as a,t as r}from"./qbHuxVSe.js";import{D as s,n as i}from"./TV5seYRS.js";import{l}from"./Crix9_9X.js";import{t}from"./CtYiLBXL.js";import{n as o}from"./DWbLshVZ.js";import{t as n}from"./BCyTQnZ1.js";import{i as d,s as c,t as u}from"./D9_lIXvx2.js";var h=({count:e=1,currentStep:a=0,disabled:s,onStepClick:i})=>{const l=s||!i;/* @__PURE__ */
1
+ import{h as e,p as a,t as r}from"./qbHuxVSe.js";import{D as s,n as i}from"./TV5seYRS.js";import{l}from"./Crix9_9X.js";import{t}from"./CtYiLBXL.js";import{n as o}from"./DWbLshVZ.js";import{t as n}from"./BCyTQnZ1.js";import{i as d,s as c,t as u}from"./DV3rTDj-2.js";var h=({count:e=1,currentStep:a=0,disabled:s,onStepClick:i})=>{const l=s||!i;/* @__PURE__ */
2
2
  return r("ol",{className:"flex items-center space-x-6 pl-1.5",children:Array.from({length:e}).map((e,s)=>/* @__PURE__ */r("li",{children:/* @__PURE__ */r("button",s<a?{type:"button",className:"bg-primary block h-3 w-3 rounded-full",disabled:l,onClick:()=>i?.(s)}:s===a?{type:"button",className:"relative flex items-center justify-center","aria-current":"step",disabled:l,onClick:()=>i?.(s),children:[/* @__PURE__ */r("span",{className:"absolute flex size-6 p-px","aria-hidden":"true",children:/* @__PURE__ */r("span",{className:"bg-primary/40 size-full rounded-full"})}),/* @__PURE__ */r("span",{className:"bg-primary relative block size-3 rounded-full","aria-hidden":"true"})]}:{type:"button",className:"bg-muted block size-3 rounded-full",disabled:l,onClick:()=>i?.(s)})},`progress-dot-${s}`))})},m=({onCodeSent:a})=>{const{t:s}=o(),{sendPasswordResetCode:l}=i(),[c,h]=e(""),[m,f]=e(!1),[p,y]=e(null),[v,g]=e(null);/* @__PURE__ */
3
3
  return r("div",{className:"space-y-4",children:[
4
4
  /* @__PURE__ */r(t,{variant:"h4",children:s("auth.forgotPassword","Forgot Password")}),
@@ -1,4 +1,4 @@
1
- import{h as a,t as e}from"./qbHuxVSe.js";import{D as o,n as s}from"./TV5seYRS.js";import{c as l,t as r}from"./Crix9_9X.js";import{t as i}from"./CtYiLBXL.js";import{n as t}from"./DWbLshVZ.js";import{t as n}from"./BCyTQnZ1.js";import{i as d,s as p,t as m}from"./D9_lIXvx2.js";import{n as c,r as g,t as u}from"./u7SUQ9Kb2.js";var f=()=>{const{t:f}=t(),h=l(),[w,v]=a(""),[b,y]=a(""),[j,C]=a(!1),[N,k]=a(null),[A,P]=a(!1),[S,x]=a({}),{loginUsingEmail:D,loginWithGoogle:E,loginWithApple:F}=s(),[L,O]=a({google:!1,apple:!1}),W=a=>{x(e=>e[a]?{...e,[a]:void 0}:e)},G=async(a,e)=>{O(e=>({...e,[a]:!0})),k(null);try{await(e?.())}catch(o){o instanceof Error?k(o.message):k(`Failed to login with ${a.charAt(0).toUpperCase()+a.slice(1)}`)}finally{O(e=>({...e,[a]:!1}))}};/* @__PURE__ */
1
+ import{h as a,t as e}from"./qbHuxVSe.js";import{D as o,n as s}from"./TV5seYRS.js";import{c as l,t as r}from"./Crix9_9X.js";import{t as i}from"./CtYiLBXL.js";import{n as t}from"./DWbLshVZ.js";import{t as n}from"./BCyTQnZ1.js";import{i as d,s as p,t as m}from"./DV3rTDj-2.js";import{n as c,r as g,t as u}from"./u7SUQ9Kb2.js";var f=()=>{const{t:f}=t(),h=l(),[w,v]=a(""),[b,y]=a(""),[j,C]=a(!1),[N,k]=a(null),[A,P]=a(!1),[S,x]=a({}),{loginUsingEmail:D,loginWithGoogle:E,loginWithApple:F}=s(),[L,O]=a({google:!1,apple:!1}),W=a=>{x(e=>e[a]?{...e,[a]:void 0}:e)},G=async(a,e)=>{O(e=>({...e,[a]:!0})),k(null);try{await(e?.())}catch(o){o instanceof Error?k(o.message):k(`Failed to login with ${a.charAt(0).toUpperCase()+a.slice(1)}`)}finally{O(e=>({...e,[a]:!1}))}};/* @__PURE__ */
2
2
  return e("div",{className:"bg-background w-full space-y-6",children:[/* @__PURE__ */e("form",{noValidate:!0,onSubmit:async a=>{a.preventDefault();const e=d(w),o=p(b);if(e||o)return void x({email:e,password:o});x({}),C(!0),k(null);const s=await(D?.(w.toLowerCase(),b));s?.error&&k(s.error),C(!1)},className:"space-y-6",children:[
3
3
  /* @__PURE__ */e("div",{className:"space-y-9",children:[/* @__PURE__ */e(m,{label:f("auth.email","Email address"),name:"email",disabled:j,type:"email",value:w,onChange:a=>{v(a.target.value),W("email")},autoComplete:"email",error:S.email}),/* @__PURE__ */e(m,{label:f("auth.password","Password"),name:"password",disabled:j,type:A?"text":"password",value:b,onChange:a=>{y(a.target.value),W("password")},autoComplete:"current-password",error:S.password,actionLabel:A?"Hide password":"Show password",actionIcon:/* @__PURE__ */e(A?u:c,{className:"size-5"}),onActionClick:()=>P(!A)})]}),N&&/* @__PURE__ */e(i,{align:"center",color:"error",className:"font-medium",children:N}),
4
4
  /* @__PURE__ */e("div",{className:"flex justify-end",children:/* @__PURE__ */e(r,{to:o.FORGOT_PASSWORD,state:{from:h.pathname},children:/* @__PURE__ */e(i,{variant:"h6",className:"w-fit",children:f("button.forgotPassword","Forgot Password?")})})}),
@@ -1,4 +1,4 @@
1
- import{T as e,b as t,d as n,f as r,h as a,p as i,s,t as o,v as l}from"./qbHuxVSe.js";import{C as c,D as d,L as u,M as m,N as g,O as h,P as p,S as f,_ as v,b as w,d as T,f as y,g as N,h as q,i as x,j as b,m as E,n as C,p as S,u as I,v as L,x as z,y as k}from"./TV5seYRS.js";import{n as A,r as M,t as _}from"./DZ2f3-jO.js";import{t as P,u as R}from"./Crix9_9X.js";import{t as V}from"./CuRZaTn5.js";import{n as O,t as j}from"./CtYiLBXL.js";import{a as F,c as B,i as H,l as U,n as G,o as $,r as D,s as W,t as Q,u as K}from"./DiBNGdQS.js";import{t as Z}from"./YJHG0sOk.js";import{r as Y}from"./DWbLshVZ.js";import{n as J,t as X}from"./BCyTQnZ1.js";import{t as ee}from"./C9HFLidt.js";import{t as te}from"./DmSY4t_i.js";import{t as ne}from"./CJpmOICA.js";import{a as re,i as ae,n as ie,o as se,r as oe,s as le,t as ce}from"./DBS5eoAD.js";import{n as de,r as ue,t as me}from"./D8Se70tP2.js";import{n as ge,t as he}from"./D9_lIXvx2.js";function pe({className:e}){/* @__PURE__ */
1
+ import{T as e,b as t,d as n,f as r,h as a,p as i,s,t as o,v as l}from"./qbHuxVSe.js";import{C as c,D as d,L as u,M as m,N as g,O as h,P as p,S as f,_ as v,b as w,d as T,f as y,g as N,h as q,i as x,j as b,m as E,n as C,p as S,u as I,v as L,x as z,y as k}from"./TV5seYRS.js";import{n as A,r as M,t as _}from"./DZ2f3-jO.js";import{t as P,u as R}from"./Crix9_9X.js";import{t as V}from"./CuRZaTn5.js";import{n as O,t as j}from"./CtYiLBXL.js";import{a as F,c as B,i as H,l as U,n as G,o as $,r as D,s as W,t as Q,u as K}from"./DiBNGdQS.js";import{t as Z}from"./YJHG0sOk.js";import{r as Y}from"./DWbLshVZ.js";import{n as J,t as X}from"./BCyTQnZ1.js";import{t as ee}from"./C9HFLidt.js";import{t as te}from"./DmSY4t_i.js";import{t as ne}from"./CJpmOICA.js";import{a as re,i as ae,n as ie,o as se,r as oe,s as le,t as ce}from"./DBS5eoAD.js";import{n as de,r as ue,t as me}from"./D8Se70tP2.js";import{n as ge,t as he}from"./DV3rTDj-2.js";function pe({className:e}){/* @__PURE__ */
2
2
  return o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */o("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm0-2h14V5H5zm0 0V5zm2-2h10q.3 0 .45-.275t-.05-.525l-2.75-3.675q-.15-.2-.4-.2t-.4.2L11.25 16L9.4 13.525q-.15-.2-.4-.2t-.4.2l-2 2.675q-.2.25-.05.525T7 17"})})}function fe({className:e}){/* @__PURE__ */
3
3
  return o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */o("path",{fill:"currentColor",d:"M15.188 14.688Q16.5 13.375 16.5 11.5t-1.312-3.187T12 7T8.813 8.313T7.5 11.5t1.313 3.188T12 16t3.188-1.312m-5.1-1.276Q9.3 12.625 9.3 11.5t.788-1.912T12 8.8t1.913.788t.787 1.912t-.787 1.913T12 14.2t-1.912-.787m-4.2 3.787q-2.763-1.8-4.363-4.75q-.125-.225-.187-.462t-.063-.488t.063-.488t.187-.462q1.6-2.95 4.363-4.75T12 4t6.113 1.8t4.362 4.75q.125.225.188.463t.062.487t-.062.488t-.188.462q-1.6 2.95-4.362 4.75T12 19t-6.113-1.8m11.3-1.687Q19.55 14.025 20.8 11.5q-1.25-2.525-3.613-4.012T12 6T6.813 7.488T3.2 11.5q1.25 2.525 3.613 4.013T12 17t5.188-1.487"})})}var ve=({description:e,maxLines:n=2,className:i})=>{const[s,l]=a(!1),[c,d]=a(!1),u=r(null),m=r(null);return t(()=>{l(!1)},[e]),t(()=>{if(!u.current||!e)return void d(!1);const t=u.current,r=()=>{const e=window.getComputedStyle(t),a=Math.max(0,Math.floor(t.getBoundingClientRect().width));if(!a)return void(m.current=window.requestAnimationFrame(r));const i=e.lineHeight,s=parseFloat(e.fontSize)||16;let o=1.2*s;i&&"normal"!==i&&(o=i.endsWith("px")?parseFloat(i):parseFloat(i)*s);const l=document.createElement("div");l.style.position="absolute",l.style.visibility="hidden",l.style.pointerEvents="none",l.style.whiteSpace="normal",l.style.width=`${a}px`,l.style.boxSizing=e.boxSizing,l.style.padding=e.padding,l.style.margin=e.margin,l.style.fontSize=e.fontSize,l.style.fontFamily=e.fontFamily,l.style.fontWeight=e.fontWeight,l.style.lineHeight=e.lineHeight,l.style.letterSpacing=e.letterSpacing,l.style.wordBreak="break-word",l.innerText=t.innerText||"",document.body.appendChild(l);const c=l.scrollHeight;document.body.removeChild(l),d(c>o*n+1)},a=()=>{null!==m.current&&window.cancelAnimationFrame(m.current),m.current=window.requestAnimationFrame(r)};let i;a(),window.addEventListener("resize",a);try{i=new MutationObserver(a),i.observe(t,{characterData:!0,childList:!0,subtree:!0})}catch{}return()=>{window.removeEventListener("resize",a),null!==m.current&&window.cancelAnimationFrame(m.current),i?.disconnect()}},[e,n]),e?/* @__PURE__ */o("div",{className:x("relative w-full",i),children:[/* @__PURE__ */o("p",{ref:u,className:x(O({variant:"body2",color:"muted",align:"center"}),"w-full",s?void 0:`line-clamp-${n}`),children:[e,c&&s&&/* @__PURE__ */o("button",{type:"button",onClick:()=>l(!1),className:"text-primary ml-2 text-sm font-medium hover:underline cursor-pointer",children:"see less"})]}),c&&!s&&/* @__PURE__ */o("span",{className:"bg-background absolute right-0 bottom-0 inline-flex items-center pl-2",children:[/* @__PURE__ */o("span",{className:"text-muted-foreground",children:"..."}),/* @__PURE__ */o("button",{type:"button",onClick:()=>l(!0),className:"text-primary ml-1 text-sm font-medium hover:underline cursor-pointer",children:"see more"})]})]}):null},we=()=>{const{t:e}=Y(),{eventSlug:t}=R(),{event:n}=te({eventSlug:t}),{props:r,organization:a}=C(),{curateLabel:i,leaderboardLabel:s}=r??{},{eventViews:l,contentCount:c,curationCount:u}=(({event:e})=>{const{props:t,organization:n}=C(),r=t?.organizationId,{isLoading:a,data:i}=p({queryKey:["event-stats",r??"",e?._id??""],queryFn:async()=>{try{return(await g.get(I.GET_EVENT_STATISTICS,{searchParams:{eventSlug:e?.slug},headers:{"x-org-id":r}}).json()).data}catch(t){throw new Error(t instanceof Error?t.message:String(t)||"Failed to fetch event stats")}},enabled:!!e&&Boolean(n?.integrationSettings?.showEventStats)});return{isLoading:a,eventViews:"number"==typeof i?.eventViews?i.eventViews:i?.eventViews?.views??0,contentCount:i?.contentCount||0,curationCount:i?.curationCount||0}})({event:n});/* @__PURE__ */
4
4
  return o("div",{className:"w-full space-y-3",children:[
@@ -1,4 +1,4 @@
1
- import{h as a,t as s}from"./qbHuxVSe.js";import{D as e,n as o}from"./TV5seYRS.js";import{c as r,t as l}from"./Crix9_9X.js";import{t as i}from"./CtYiLBXL.js";import{n as t}from"./DWbLshVZ.js";import{t as n}from"./BCyTQnZ1.js";import{a as d,i as m,o as c,r as p,s as w,t as g}from"./D9_lIXvx2.js";import{n as h,r as f,t as u}from"./u7SUQ9Kb2.js";var b=()=>{const{t:b}=t(),[v,C]=a(""),[P,y]=a(""),[N,j]=a(""),[x,k]=a(""),[A,S]=a(""),[z,F]=a(null),[L,D]=a({}),[E,O]=a(!1),[R,W]=a({google:!1,apple:!1}),[G,H]=a({showPassword:!1,showConfirmPassword:!1}),I=r(),{registerUsingEmail:U,loginWithGoogle:B,loginWithApple:J}=o(),T=a=>{D(s=>s[a]?{...s,[a]:void 0}:s)},V=async(a,s)=>{W(s=>({...s,[a]:!0})),F(null);try{await(s?.())}catch(e){e instanceof Error?F(e.message):F(`Failed to sign up with ${a.charAt(0).toUpperCase()+a.slice(1)}`)}finally{W(s=>({...s,[a]:!1}))}};/* @__PURE__ */
1
+ import{h as a,t as s}from"./qbHuxVSe.js";import{D as e,n as o}from"./TV5seYRS.js";import{c as r,t as l}from"./Crix9_9X.js";import{t as i}from"./CtYiLBXL.js";import{n as t}from"./DWbLshVZ.js";import{t as n}from"./BCyTQnZ1.js";import{a as d,i as m,o as c,r as p,s as w,t as g}from"./DV3rTDj-2.js";import{n as h,r as f,t as u}from"./u7SUQ9Kb2.js";var b=()=>{const{t:b}=t(),[v,C]=a(""),[P,y]=a(""),[N,j]=a(""),[x,k]=a(""),[A,S]=a(""),[z,F]=a(null),[L,D]=a({}),[E,O]=a(!1),[R,W]=a({google:!1,apple:!1}),[G,H]=a({showPassword:!1,showConfirmPassword:!1}),I=r(),{registerUsingEmail:U,loginWithGoogle:B,loginWithApple:J}=o(),T=a=>{D(s=>s[a]?{...s,[a]:void 0}:s)},V=async(a,s)=>{W(s=>({...s,[a]:!0})),F(null);try{await(s?.())}catch(e){e instanceof Error?F(e.message):F(`Failed to sign up with ${a.charAt(0).toUpperCase()+a.slice(1)}`)}finally{W(s=>({...s,[a]:!1}))}};/* @__PURE__ */
2
2
  return s("div",{className:"bg-background w-full space-y-8",children:[/* @__PURE__ */s("form",{noValidate:!0,onSubmit:async a=>{a.preventDefault();const s=d(v),e=c(P),o=m(N),r=w(x),l=p(A,x);if(s||e||o||r||l)return void D({fname:s,lname:e,email:o,password:r,confirmPassword:l});D({}),O(!0),F(null);const i=await(U?.(N.toLowerCase(),x,v,P));i?.error&&F(i.error),O(!1)},className:"space-y-4",children:[
3
3
  /* @__PURE__ */s("div",{className:"grid grid-cols-2 gap-4",children:[/* @__PURE__ */s(g,{label:b("auth.firstName","First name"),name:"fname",disabled:E,type:"text",value:v,onChange:a=>{C(a.target.value),T("fname")},error:L.fname}),/* @__PURE__ */s(g,{label:b("auth.lastName","Last name"),name:"lname",disabled:E,type:"text",value:P,onChange:a=>{y(a.target.value),T("lname")},error:L.lname})]}),
4
4
  /* @__PURE__ */s(g,{label:b("auth.email","Email address"),name:"email",disabled:E,type:"email",value:N,onChange:a=>{j(a.target.value),T("email")},autoComplete:"email",error:L.email}),
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./qbHuxVSe.js";import{i as r}from"./TV5seYRS.js";import{t as a}from"./CtYiLBXL.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/web.es.js CHANGED
@@ -107,10 +107,10 @@ return s("div",{className:"space-y-4",children:[r===b[0]&&/* @__PURE__ */s(j,{va
107
107
  /* @__PURE__ */s("div",{className:"mt-4 grid grid-cols-1 gap-4 sm:grid-cols-3",children:Array.from({length:6}).map((r,t)=>/* @__PURE__ */s("div",{className:"space-y-4",children:[/* @__PURE__ */s(M,{className:"h-72 overflow-hidden rounded sm:h-80"}),/* @__PURE__ */s(M,{className:"h-6 w-64 rounded"})]},t))})]})]}:{children:[g?.navigationSettings?.enableNavbar&&/* @__PURE__ */s(B,{}),
108
108
  /* @__PURE__ */s("div",{className:"min-h-screen w-full",children:[
109
109
  /* @__PURE__ */s("div",{className:"flex items-end justify-between",children:[/* @__PURE__ */s("div",{className:"mt-4 flex justify-end",children:y&&/* @__PURE__ */s(V,{className:"flex-1 lg:flex-none",selected:x,buttons:yr,onChange:r=>(r=>{k(r);try{m&&sessionStorage.setItem(`qrati-view-mode-${m}`,r)}catch(t){}})(r)})}),/* @__PURE__ */s("div",{className:"flex flex-col items-end gap-4",children:[/* @__PURE__ */s(dr,{organization:g}),u&&/* @__PURE__ */s(gr,{onSearch:w.handleSearch,onClear:w.clearSearch,hasActiveSearch:w.isSearchActive})]})]}),w.isSearchActive&&/* @__PURE__ */s(ur,{folders:d||[],submittedQuery:w.submittedQuery,submittedSearchType:w.submittedSearchType,isLoading:w.isLoading,errorMessage:w.errorMessage,hasMore:w.hasMore,isSearchActive:w.isSearchActive,page:w.page,onLoadMore:()=>w.setPage(r=>r+1),eventResults:w.eventResults,contentResults:w.contentResults,contentMeta:w.contentMeta,activeFolderKeys:w.activeFolderKeys,eventGroupsByFolder:w.eventGroupsByFolder,contentGroups:w.contentGroups,contentGroupsByFolder:w.contentGroupsByFolder,flattenedContentMedia:w.flattenedContentMedia,galleryElementRef:w.galleryElementRef,galleryId:w.galleryId,openMediaInLightbox:w.openMediaInLightbox}),!w.isSearchActive&&/* @__PURE__ */s(r,{children:["grid"===x&&a&&/* @__PURE__ */s("div",{className:"mt-4",children:/* @__PURE__ */s(nr,{homeLink:p.PUBLIC_EVENTS,data:j})}),"grid"===x&&N.length>0&&/* @__PURE__ */s("div",{className:"mt-4 grid grid-cols-2 gap-3 md:grid-cols-3 lg:grid-cols-4 lg:gap-6",children:N.map(r=>/* @__PURE__ */s(q,{to:p.FOLDER_EVENTS(String(r?._id)),children:/* @__PURE__ */s(sr,{folder:r},String(r._id))},String(r?._id)))}),"map"!==x&&(S?.length??0)<=0&&/* @__PURE__ */s("div",{className:"min-h-[80vh]",children:/* @__PURE__ */s(D,{title:((d??[]).length??0)>0?"Empty Folder":"No Events",description:((d??[]).length??0)>0?"Browse other folders for events":"Check back later for our awesome events!",className:"mt-24 md:mt-36",iconSvg:/* @__PURE__ */s(rr,{})})}),"map"===x&&y?/* @__PURE__ */s(n,{fallback:/* @__PURE__ */s(M,{className:"mt-4 h-[70vh] w-full rounded-lg"}),children:/* @__PURE__ */s(wr,{events:_??[],isLoading:T})}):(S?.length??0)>0&&/* @__PURE__ */s("div",{className:"mt-4 grid grid-cols-1 gap-4 gap-y-6 pb-16 sm:grid-cols-2 lg:grid-cols-3",children:(S??[]).map(r=>/* @__PURE__ */s(q,{to:p.GALLERY(String(r.slug)),children:/* @__PURE__ */s(ar,{event:r})},r._id))})]})]}),
110
- /* @__PURE__ */s(P,{})]})},kr=a(()=>import("./BNj7xAbL.js")),_r=a(()=>import("./DcLlwdC6.js")),Tr=a(()=>import("./DJWnpm1A2.js")),zr=a(()=>import("./BbWh89xA2.js")),Cr=a(()=>import("./D9MdXU5q2.js")),Nr=a(()=>import("./DD6up6cl2.js")),qr=a(()=>import("./CpaT2goE2.js")),Rr=a(()=>import("./CpBGzCRR2.js")),Mr=a(()=>import("./CiryJz3K2.js")),jr=a(()=>import("./CslFRHxJ2.js")),Er=()=>/* @__PURE__ */s("div",{className:"flex flex-col gap-4 p-4",children:[
110
+ /* @__PURE__ */s(P,{})]})},kr=a(()=>import("./BNj7xAbL.js")),_r=a(()=>import("./DcLlwdC6.js")),Tr=a(()=>import("./CUJTm_YL2.js")),zr=a(()=>import("./BbWh89xA2.js")),Cr=a(()=>import("./3djirt_r2.js")),Nr=a(()=>import("./DD6up6cl2.js")),qr=a(()=>import("./BrWTIUcy2.js")),Rr=a(()=>import("./D9JpTB2O2.js")),Mr=a(()=>import("./CiryJz3K2.js")),jr=a(()=>import("./CslFRHxJ2.js")),Er=()=>/* @__PURE__ */s("div",{className:"flex flex-col gap-4 p-4",children:[
111
111
  /* @__PURE__ */s(M,{className:"h-8 w-3/4 rounded"}),
112
112
  /* @__PURE__ */s(M,{className:"h-64 w-full rounded-lg"}),
113
- /* @__PURE__ */s("div",{className:"flex gap-3",children:[/* @__PURE__ */s(M,{className:"h-10 w-24 rounded"}),/* @__PURE__ */s(M,{className:"h-10 w-24 rounded"})]})]}),Sr=({router:r="memory"})=>{const a="hash"===r.toLowerCase()?"hash":"memory";return t(()=>{const r=()=>{import("./DJWnpm1A2.js"),import("./BbWh89xA2.js"),import("./CiryJz3K2.js"),import("./DD6up6cl2.js")};if("undefined"!=typeof requestIdleCallback){const t=requestIdleCallback(r,{timeout:5e3});return()=>cancelIdleCallback(t)}const t=setTimeout(r,2e3);return()=>clearTimeout(t)},[]),/* @__PURE__ */s(z,{mode:a,children:[/* @__PURE__ */s(W,{}),/* @__PURE__ */s(n,{fallback:/* @__PURE__ */s(Er,{}),children:/* @__PURE__ */s(N,{children:[
113
+ /* @__PURE__ */s("div",{className:"flex gap-3",children:[/* @__PURE__ */s(M,{className:"h-10 w-24 rounded"}),/* @__PURE__ */s(M,{className:"h-10 w-24 rounded"})]})]}),Sr=({router:r="memory"})=>{const a="hash"===r.toLowerCase()?"hash":"memory";return t(()=>{const r=()=>{import("./CUJTm_YL2.js"),import("./BbWh89xA2.js"),import("./CiryJz3K2.js"),import("./DD6up6cl2.js")};if("undefined"!=typeof requestIdleCallback){const t=requestIdleCallback(r,{timeout:5e3});return()=>cancelIdleCallback(t)}const t=setTimeout(r,2e3);return()=>clearTimeout(t)},[]),/* @__PURE__ */s(z,{mode:a,children:[/* @__PURE__ */s(W,{}),/* @__PURE__ */s(n,{fallback:/* @__PURE__ */s(Er,{}),children:/* @__PURE__ */s(N,{children:[
114
114
  /* @__PURE__ */s(_,{path:"/my-uploads",element:jr}),
115
115
  /* @__PURE__ */s(_,{path:"/:folderId?",element:xr}),
116
116
  /* @__PURE__ */s(_,{path:"/event/:eventSlug",element:_r,children:[
@@ -1,3 +0,0 @@
1
- import{t as e}from"./qbHuxVSe.js";import{i as r}from"./TV5seYRS.js";import{t}from"./CtYiLBXL.js";var a=e=>e&&e.length>0?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",s=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:a,type:s="text",disabled:o,error:i,iconSVG:n,actionIcon:d,onActionClick:l,actionLabel:u,className:c="",step:m,...p})=>/* @__PURE__ */e("div",{className:"relative",children:[a&&/* @__PURE__ */e(t,{variant:"body1",className:"sm:mb-1",children:a}),
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}),
3
- /* @__PURE__ */e("input",{type:s,disabled:o,step:"number"===s?m: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":"",d?"pr-10":"",c),...p,value:p.value??""}),d&&/* @__PURE__ */e("button",{type:"button","aria-label":u,onClick:l,disabled:o,className:"text-muted-foreground hover:text-foreground absolute inset-y-0 right-0 flex items-center pr-3 disabled:cursor-not-allowed",children:d})]}),i&&/* @__PURE__ */e(t,{variant:"caption",color:"error","data-testid":"input-error",children:i})]});export{i as a,s as i,a as n,n as o,d as r,o as s,l as t};
package/umd/D9_lIXvx2.js DELETED
@@ -1,3 +0,0 @@
1
- import{t as e}from"./qbHuxVSe.js";import{i as r}from"./TV5seYRS.js";import{t}from"./CtYiLBXL.js";var a=e=>e&&e.length>0?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",s=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:a,type:s="text",disabled:o,error:i,iconSVG:n,actionIcon:d,onActionClick:l,actionLabel:u,className:c="",step:m,...p})=>/* @__PURE__ */e("div",{className:"relative",children:[a&&/* @__PURE__ */e(t,{variant:"body1",className:"sm:mb-1",children:a}),
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}),
3
- /* @__PURE__ */e("input",{type:s,disabled:o,step:"number"===s?m: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":"",d?"pr-10":"",c),...p,value:p.value??""}),d&&/* @__PURE__ */e("button",{type:"button","aria-label":u,onClick:l,disabled:o,className:"text-muted-foreground hover:text-foreground absolute inset-y-0 right-0 flex items-center pr-3 disabled:cursor-not-allowed",children:d})]}),i&&/* @__PURE__ */e(t,{variant:"caption",color:"error","data-testid":"input-error",children:i})]});export{i as a,s as i,a as n,n as o,d as r,o as s,l as t};