@qratilabs/qrati-connect 2.24.2 → 2.25.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.
- package/README.md +86 -130
- package/element/{BP2rYgya2.js → BFCgbC5I2.js} +9 -9
- package/element/{BnZIocDu2.js → BV9JHI5n2.js} +41 -41
- package/element/{DkG0zv7_2.js → BccTn5v-2.js} +1 -1
- package/element/BxbojrJs.js +8 -0
- package/element/{Bh8kXbe92.js → C6dzWeQk2.js} +4 -4
- package/element/{C52SUIvC2.js → C7iuJ0h32.js} +8 -8
- package/element/{BM9ujORR2.js → C9T-_wQ82.js} +1 -1
- package/element/{BKDqpSN62.js → C9kBlCZx2.js} +3 -3
- package/element/{LYboLIEU.js → CJXPO3HP.js} +1 -1
- package/element/CMnzxWwG.js +9 -0
- package/element/{DN26AtHL2.js → CZbEGemi2.js} +3 -3
- package/element/{lcKuIs2T2.js → Ctl9NdWl2.js} +5 -9
- package/element/DCj_fMN5.js +5 -0
- package/element/DPg_DKOi.js +5 -0
- package/element/{CHTzn6mh2.js → DRP9vxts2.js} +3 -3
- package/element/{kiL9JENf2.js → DWjheKBP2.js} +1 -1
- package/element/{BOqkzZ92.js → EjMoIoSK.js} +1 -1
- package/element/ZYvo9BjF2.js +8 -0
- package/element/{Bow6F3212.js → iknPnbyg2.js} +14 -14
- package/element/{DdOwRfWG.js → iuooW4mt.js} +8 -9
- package/element/{mIANlVHi2.js → qQ9Xx6H32.js} +1 -1
- package/element/{CLdpUOLk2.js → rg8L51I62.js} +4 -4
- package/element/web.es.js +23 -24
- package/package.json +1 -1
- package/element/BDrHm_qM.js +0 -9
- package/element/BxErY-nv.js +0 -7
- package/element/CWhnvMey2.js +0 -8
- package/element/DWBbTgnB.js +0 -8
- /package/element/{CZ9iaxjO.js → CZ9iaxjO2.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,h as t,t as l,w as n}from"./DrrpB4Om.js";import{i as r}from"./CaX2xgrP.js";import{t as s}from"./
|
|
1
|
+
import{_ as e,h as t,t as l,w as n}from"./DrrpB4Om.js";import{i as r}from"./CaX2xgrP.js";import{t as s}from"./CJXPO3HP.js";var a=()=>/* @__PURE__ */l("svg",{className:"size-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:/* @__PURE__ */l("path",{d:"m15 18-6-6 6-6"})}),o=()=>/* @__PURE__ */l("svg",{className:"size-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:/* @__PURE__ */l("path",{d:"m9 18 6-6-6-6"})});function i({items:s,autoplayInterval:i=3e3,showControls:d=!1,className:c}){const[u,h]=t(0);return e(()=>{if(s.length<=1)return;const e=setInterval(()=>h(e=>(e+1)%s.length),i);return()=>clearInterval(e)},[s.length,i]),0===s.length?null:/* @__PURE__ */l("div",{className:r("relative size-full overflow-hidden",c),children:[s.map((e,t)=>/* @__PURE__ */l("div",{className:r("absolute inset-0 transition-opacity duration-500",t===u?"opacity-100":"opacity-0"),children:e},t)),s.length>1&&/* @__PURE__ */l("div",{className:"absolute bottom-2 left-1/2 z-10 flex -translate-x-1/2 gap-1",children:s.map((e,t)=>/* @__PURE__ */l("button",{onClick:()=>h(t),className:r("h-1.5 rounded-full transition-all",t===u?"w-4 bg-white":"w-1.5 bg-white/50 hover:bg-white/75"),"aria-label":`Go to slide ${t+1}`},t))}),d&&s.length>1&&/* @__PURE__ */l(n,{children:[/* @__PURE__ */l("button",{onClick:()=>h(e=>0===e?s.length-1:e-1),className:"absolute top-1/2 left-2 z-10 flex size-8 -translate-y-1/2 items-center justify-center rounded-full bg-black/40 text-white hover:bg-black/60","aria-label":"Previous",children:/* @__PURE__ */l(a,{})}),/* @__PURE__ */l("button",{onClick:()=>h(e=>(e+1)%s.length),className:"absolute top-1/2 right-2 z-10 flex size-8 -translate-y-1/2 items-center justify-center rounded-full bg-black/40 text-white hover:bg-black/60","aria-label":"Next",children:/* @__PURE__ */l(o,{})})]})]})}var d=({event:e,onExplore:t})=>{const n=(e.contents||[]).map(t=>/* @__PURE__ */l(s,{alt:e.name,src:t.thumbnailUrl||t.url,containerClassName:"size-full",imgClassName:"rounded"},t._id)),r=e?.status?.toUpperCase();/* @__PURE__ */
|
|
2
2
|
return l("div",{className:"w-40 rounded pt-2 pl-1",children:[
|
|
3
3
|
/* @__PURE__ */l("div",{className:"relative h-32 w-full overflow-hidden rounded",children:[/* @__PURE__ */l(i,{items:n,autoplayInterval:3e3}),"OPEN"===r&&/* @__PURE__ */l("span",{className:"absolute top-2 left-2 inline-flex items-center gap-1 rounded-full bg-green-500 px-2 py-0.5 text-[10px] font-medium text-white",children:[/* @__PURE__ */l("span",{className:"size-1.5 animate-pulse rounded-full bg-white"}),"Open"]})]}),
|
|
4
4
|
/* @__PURE__ */l("div",{className:"line-clamp-2 pt-2 pb-0.5 text-sm font-medium text-black",children:e.name}),
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{_ as r,t as e}from"./DrrpB4Om.js";import{D as a,i as t,n as s}from"./CaX2xgrP.js";import{c as i,i as o,l as m,n as d}from"./ChJXhA9c.js";import{t as l}from"./DGbyGc8b.js";import{t as n}from"./D35mTuTT.js";import{t as c}from"./DnQ6XaLR.js";var b=()=>{const b=i(),p=m(),{initializing:h,organization:f,user:x}=s(),u=b.pathname.endsWith("/login")||b.pathname.endsWith("/register");return r(()=>{if(x){const r=b.state?.referrer;p(r||"/",{replace:!0})}},[x]),h?/* @__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"})]}):!f||f?.customAuth?null:/* @__PURE__ */e("div",{className:"bg-background relative mx-auto min-h-[80vh] max-w-md py-24",children:[u&&/* @__PURE__ */e(c,{}),/* @__PURE__ */e("div",{children:[
|
|
6
|
+
/* @__PURE__ */e("div",{className:"my-8 flex w-full justify-around",children:[/* @__PURE__ */e(d,{to:a.LOGIN,state:b.state||void 0,className:({isActive:r})=>t(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:b.state||void 0,className:({isActive:r})=>t(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(n,{})})]})]})};export{b as default};
|