@qratilabs/qrati-connect 2.26.0 → 2.27.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/element/{CVdpS1mF2.js → 1eQ9Ef0M2.js} +3 -3
- package/element/B0sEsGHn.js +8 -0
- package/element/B9ImRAum.js +1 -0
- package/element/{DwanMJWW.js → BKENYwOQ.js} +1 -1
- package/element/{DpD2Abx9.js → BLeZg2Bz.js} +1 -1
- package/element/{BfPopwQu2.js → BdkTKcG52.js} +8 -8
- package/element/{CwPz_TbG.js → BmsDSHUi.js} +1 -1
- package/element/{CM46pkhP2.js → BqiJLitq2.js} +1 -1
- package/element/{DLSVYuRG.js → BspExsK7.js} +2 -2
- package/element/Bspyv2wJ2.js +24 -0
- package/element/{D6nJgjWV.js → C4DSwLWc.js} +1 -1
- package/element/{CMR1TPJ1.js → C6MqLLDX.js} +1 -1
- package/element/C6YE4WUG2.js +5 -0
- package/element/C8meSsHD.js +1 -0
- package/element/CBM5QMn8.js +1 -0
- package/element/CKQOToSD.js +41 -0
- package/element/{DDyjgYNE.js → CUBxHQ8u.js} +1 -1
- package/element/CeHBrY_i.js +1 -0
- package/element/{BXZi_HIE.js → CfTdZB8y.js} +1 -1
- package/element/{xW6UboQF.js → CgxypkdG.js} +1 -1
- package/element/{DBUAmPz_.js → Cl0CwL5p.js} +1 -1
- package/element/DGZEznLT2.js +1 -0
- package/element/{Cw3szkAB.js → DLF5ysgi.js} +1 -1
- package/element/{BBWyJmHC.js → DOOdI-Oh.js} +1 -1
- package/element/DRPgs6nu2.js +16 -0
- package/element/{CDUjv5F52.js → DSx5wvUb2.js} +1 -1
- package/element/{BmU1kgIz2.js → DVFC5Z2L2.js} +14 -14
- package/element/{D9UPX_0d2.js → DWqIpaZ02.js} +1 -1
- package/element/{Bt5DH8OK.js → DZGp2V2-.js} +1 -1
- package/element/{DER_7fjj2.js → D_FNRN5A2.js} +1 -1
- package/element/{OGzsLhnG.js → DdYePHxG.js} +1 -1
- package/element/{BlD6lUxS.js → DlAI3J0X.js} +1 -1
- package/element/{CE4Zhv-W.js → DmIYOIw1.js} +1 -1
- package/element/DmpmrPE5.js +1 -0
- package/element/{Cqyszkb5.js → DvisvxzJ.js} +1 -1
- package/element/{CtWIgfGz.js → DyemeRjE2.js} +1 -1
- package/element/MU5QuIq0.js +3 -0
- package/element/{nOtAuUm1.js → QDuBhueG.js} +1 -1
- package/element/{Bb4v1eCh2.js → SgRzjPnr.js} +11 -11
- package/element/{PRmGsKkz2.js → Vk429P022.js} +1 -1
- package/element/{uIYtFcCq2.js → aXvUP7X72.js} +4 -4
- package/element/{BvrbBj1F.js → p0Q_2x6C.js} +1 -1
- package/element/{CzHEb5lR2.js → qBKIp1ZW2.js} +14 -14
- package/element/web.es.js +4 -4
- package/element/{CCDjXLSf.js → xJZs5Gan.js} +1 -1
- package/package.json +1 -1
- package/element/2CzUGwUv.js +0 -1
- package/element/BlmPmkho.js +0 -41
- package/element/CD7ZeUsI2.js +0 -9
- package/element/CitgNM58.js +0 -3
- package/element/DAjJ8IJf.js +0 -1
- package/element/DhbEeiM3.js +0 -8
- package/element/DvW8TE7T.js +0 -1
- package/element/KcnPb5CZ.js +0 -1
- package/element/PVzBLdl-2.js +0 -5
- package/element/VF9qDLJE2.js +0 -1
- package/element/b3Wjw4T02.js +0 -16
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{_ as r,t as e}from"./DrrpB4Om.js";import{i as a,n as s}from"./
|
|
1
|
+
import{_ as r,t as e}from"./DrrpB4Om.js";import{i as a,n as s}from"./CKQOToSD.js";import{x as t}from"./BLeZg2Bz.js";import{c as i,i as o,l as m,n as d}from"./DdYePHxG.js";import{t as l}from"./BKENYwOQ.js";import{t as n}from"./D35mTuTT.js";import{t as c}from"./QDuBhueG.js";var p=()=>{const p=i(),b=m(),{initializing:h,organization:f,user:x}=s(),u=p.pathname.endsWith("/login")||p.pathname.endsWith("/register");return r(()=>{if(x){const r=p.state?.referrer;b(r||"/",{replace:!0})}},[x]),h?/* @__PURE__ */e("div",{className:"mx-auto max-w-lg space-y-8 py-8",children:[
|
|
2
2
|
/* @__PURE__ */e(l,{className:"h-8"}),
|
|
3
3
|
/* @__PURE__ */e(l,{className:"h-8"}),
|
|
4
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:[
|
|
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
6
|
/* @__PURE__ */e("div",{className:"my-8 flex w-full justify-around",children:[/* @__PURE__ */e(d,{to:t.LOGIN,state:p.state||void 0,className:({isActive:r})=>a(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:t.REGISTER,state:p.state||void 0,className:({isActive:r})=>a(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
7
|
/* @__PURE__ */e(o,{}),
|
|
8
8
|
/* @__PURE__ */e("div",{className:"mt-12",children:/* @__PURE__ */e(n,{})})]})]})};export{p as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import{t as c}from"./DrrpB4Om.js";import{t as e}from"./DmpmrPE5.js";import{i as l}from"./BLeZg2Bz.js";var a={bing:{id:"bing",label:"Bing",policyUrl:"https://privacy.microsoft.com/en-us/privacystatement",buildUrl:c=>`https://www.bing.com/images/search?view=detailv2&iss=sbi&form=SBIVSP&sbisrc=UrlPaste&q=imgurl:${encodeURIComponent(c)}`},google:{id:"google",label:"Google Lens",policyUrl:"https://policies.google.com/privacy",buildUrl:c=>`https://lens.google.com/uploadbyurl?url=${encodeURIComponent(c)}`},yandex:{id:"yandex",label:"Yandex",policyUrl:"https://yandex.com/legal/confidential/",buildUrl:c=>`https://yandex.com/images/search?rpt=imageview&url=${encodeURIComponent(c)}`},tineye:{id:"tineye",label:"TinEye",policyUrl:"https://tineye.com/privacy",buildUrl:c=>`https://tineye.com/search?url=${encodeURIComponent(c)}`}},i=Object.keys(a);function o(c){return i.includes(c)}var t=[],r={bing:function({className:e}){/* @__PURE__ */
|
|
2
|
+
return c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 388",className:e,children:[
|
|
3
|
+
/* @__PURE__ */c("defs",{children:[
|
|
4
|
+
/* @__PURE__ */c("radialGradient",{id:"bingIconGradA",cx:"93.717%",cy:"77.818%",r:"143.121%",fx:"93.717%",fy:"77.818%",gradientTransform:"matrix(-.65486 -.5438 .75575 -.4712 .963 1.654)",children:[/* @__PURE__ */c("stop",{offset:"0%","stop-color":"#00cacc"}),/* @__PURE__ */c("stop",{offset:"100%","stop-color":"#048fce"})]}),
|
|
5
|
+
/* @__PURE__ */c("radialGradient",{id:"bingIconGradB",cx:"13.893%",cy:"71.448%",r:"150.086%",fx:"13.893%",fy:"71.448%",gradientTransform:"matrix(.55155 -.39387 .23634 .91917 -.107 .112)",children:[/* @__PURE__ */c("stop",{offset:"0%","stop-color":"#00bbec"}),/* @__PURE__ */c("stop",{offset:"100%","stop-color":"#2756a9"})]}),
|
|
6
|
+
/* @__PURE__ */c("linearGradient",{id:"bingIconGradC",x1:"50%",x2:"50%",y1:"0%",y2:"100%",children:[/* @__PURE__ */c("stop",{offset:"0%","stop-color":"#00bbec"}),/* @__PURE__ */c("stop",{offset:"100%","stop-color":"#2756a9"})]})]}),
|
|
7
|
+
/* @__PURE__ */c("path",{fill:"url(#bingIconGradA)",d:"M129.424 122.047c-7.133.829-12.573 6.622-13.079 13.928c-.218 3.147-.15 3.36 6.986 21.722c16.233 41.774 20.166 51.828 20.827 53.243c1.603 3.427 3.856 6.65 6.672 9.544c2.16 2.22 3.585 3.414 5.994 5.024c4.236 2.829 6.337 3.61 22.818 8.49c16.053 4.754 24.824 7.913 32.381 11.664c9.791 4.86 16.623 10.387 20.944 16.946c3.1 4.706 5.846 13.145 7.04 21.64c.468 3.321.47 10.661.006 13.663c-1.008 6.516-3.021 11.976-6.101 16.545c-1.638 2.43-1.068 2.023 1.313-.939c6.74-8.379 13.605-22.7 17.108-35.687c4.24-15.718 4.817-32.596 1.66-48.57c-6.147-31.108-25.786-57.955-53.444-73.06c-1.738-.95-8.357-4.42-17.331-9.085a1633 1633 0 0 1-4.127-2.154c-.907-.477-2.764-1.447-4.126-2.154c-1.362-.708-5.282-2.75-8.711-4.539l-8.528-4.446a6021 6021 0 0 1-8.344-4.357c-8.893-4.655-12.657-6.537-13.73-6.863c-1.125-.343-3.984-.782-4.701-.723c-.152.012-.838.088-1.527.168"}),
|
|
8
|
+
/* @__PURE__ */c("path",{fill:"url(#bingIconGradB)",d:"M148.81 277.994c-.493.292-1.184.714-1.537.938c-.354.225-1.137.712-1.743 1.083a8315 8315 0 0 0-13.204 8.137a2848 2848 0 0 0-8.07 4.997a388 388 0 0 1-3.576 2.198c-.454.271-2.393 1.465-4.31 2.654a2652 2652 0 0 1-7.427 4.586a3958 3958 0 0 0-8.62 5.316a3011 3011 0 0 1-7.518 4.637c-1.564.959-3.008 1.885-3.21 2.058c-.3.257-14.205 8.87-21.182 13.121c-5.3 3.228-11.43 5.387-17.705 6.235c-2.921.395-8.45.396-11.363.003c-7.9-1.067-15.176-4.013-21.409-8.666c-2.444-1.826-7.047-6.425-8.806-8.8c-4.147-5.598-6.829-11.602-8.218-18.396c-.32-1.564-.622-2.884-.672-2.935c-.13-.13.105 2.231.528 5.319c.44 3.211 1.377 7.856 2.387 11.829c7.814 30.743 30.05 55.749 60.15 67.646c8.668 3.424 17.415 5.582 26.932 6.64c3.576.4 13.699.56 17.43.276c17.117-1.296 32.02-6.334 47.308-15.996c1.362-.86 3.92-2.474 5.685-3.585a877 877 0 0 0 4.952-3.14c.958-.615 2.114-1.341 2.567-1.614a91 91 0 0 0 2.018-1.268c.656-.424 3.461-2.2 6.235-3.944l11.092-7.006l3.809-2.406l.137-.086l.42-.265l.199-.126l2.804-1.771l9.69-6.121c12.348-7.759 16.03-10.483 21.766-16.102c2.392-2.342 5.997-6.34 6.176-6.848c.037-.104.678-1.092 1.424-2.197c3.036-4.492 5.06-9.995 6.064-16.484c.465-3.002.462-10.342-.005-13.663c-.903-6.42-2.955-13.702-5.167-18.339c-3.627-7.603-11.353-14.512-22.453-20.076c-3.065-1.537-6.23-2.943-6.583-2.924c-.168.009-10.497 6.322-22.954 14.03c-12.457 7.71-23.268 14.4-24.025 14.87s-2.056 1.263-2.888 1.764z"}),
|
|
9
|
+
/* @__PURE__ */c("path",{fill:"url(#bingIconGradC)",d:"m.053 241.013l.054 53.689l.695 3.118c2.172 9.747 5.937 16.775 12.482 23.302c3.078 3.07 5.432 4.922 8.768 6.896c7.06 4.177 14.657 6.238 22.978 6.235c8.716-.005 16.256-2.179 24.025-6.928c1.311-.801 6.449-3.964 11.416-7.029l9.032-5.572v-127.4l-.002-58.273c-.002-37.177-.07-59.256-.188-60.988c-.74-10.885-5.293-20.892-12.948-28.461c-2.349-2.323-4.356-3.875-10.336-7.99a25160 25160 0 0 1-12.104-8.336L28.617 5.835C22.838 1.85 22.386 1.574 20.639.949C18.367.136 15.959-.163 13.67.084C6.998.804 1.657 5.622.269 12.171C.053 13.191.013 26.751.01 100.35l-.003 86.975H0z"})]})},google:function({className:e}){/* @__PURE__ */
|
|
10
|
+
return c("svg",{className:e,focusable:"false",viewBox:"24 24 144 144",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",children:[/* @__PURE__ */c("rect",{fill:"none",height:"192",width:"192"}),/* @__PURE__ */c("g",{children:[
|
|
11
|
+
/* @__PURE__ */c("circle",{fill:"#34A853",cx:"144.07",cy:"144",r:"16"}),
|
|
12
|
+
/* @__PURE__ */c("circle",{fill:"#4285F4",cx:"96.07",cy:"104",r:"24"}),
|
|
13
|
+
/* @__PURE__ */c("path",{fill:"#EA4335",d:"M24,135.2c0,18.11,14.69,32.8,32.8,32.8H96v-16l-40.1-0.1c-8.8,0-15.9-8.19-15.9-17.9v-18H24V135.2z"}),
|
|
14
|
+
/* @__PURE__ */c("path",{fill:"#FBBC05",d:"M168,72.8c0-18.11-14.69-32.8-32.8-32.8H116l20,16c8.8,0,16,8.29,16,18v30h16V72.8z"}),
|
|
15
|
+
/* @__PURE__ */c("path",{fill:"#4285F4",d:"M112,24l-32,0L68,40H56.8C38.69,40,24,54.69,24,72.8V92h16V74c0-9.71,7.2-18,16-18h80L112,24z"})]})]})},yandex:function({className:e}){/* @__PURE__ */
|
|
16
|
+
return c("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,width:"1em",height:"1em",viewBox:"0 0 512 512",children:[/* @__PURE__ */c("path",{d:"M0 0h512v512H0z",fill:"none"}),/* @__PURE__ */c("path",{fill:"#fc3f1d",d:"M215.4 512v-51.6c0-70-8.1-104.6-36.2-165L42.5 0h94.6l116 252.7c34 73.7 48.8 112 48.8 196.7V512zm55.4-264.5L378.6 0h90.9L360.2 247.5z"})]})},tineye:function({className:e}){/* @__PURE__ */
|
|
17
|
+
return c("svg",{viewBox:"1 1 1068.602 1130.289",className:e,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",children:[
|
|
18
|
+
/* @__PURE__ */c("path",{d:"M1 146.465c1.012-3.903 1.838-7.409 3.07-10.766 5.624-15.345 16.325-25.676 31.703-30.943 17.155-5.875 33.28-3.237 47.818 7.437 16.318 11.982 22.46 28.84 20.238 48.376-2.052 18.038-12.097 31.13-28.646 39.863 0-1.39-.118-2.196.038-2.945.121-.585.582-1.099 1.068-1.954-7.978-4.868-15.508-9.882-25.418-9.679-5.159.106-7.615 2.867-8.59 6.88-.82 3.38-.169 7.119-.169 10.678-15.082.424-38.897-18.662-40.722-43.27C1 155.642 1 151.285 1 146.464zM697.563 1c3.152.66 5.846 1.434 8.586 1.962 21.387 4.124 36.727 21.703 39.678 42.526 2.322 16.39-2.362 31.39-13.7 43.634-3.924 4.238-9.373 7.064-14.794 11.024V86.514c-8.367-2.075-16.536-6.866-26.074-4.537-6.647 1.623-8.387 4.166-7.21 10.652.674 3.714 1.697 7.365 2.568 11.069-23.52-2.48-45.548-23.77-43.578-54.88 1.495-23.6 20.856-45.936 47.813-47.423C693.042 1 695.083 1 697.562 1z",fill:"#ff8e4d"}),
|
|
19
|
+
/* @__PURE__ */c("path",{d:"M833.776 655.58c-10.198 10.224-20.302 20.53-27.821 33.009-.845 1.402-1.502 2.918-1.834 4.622 19.7-22.734 40.135-44.277 69.395-55.173-3.002 7.006-6.19 13.825-8.871 20.84-4.69 12.265-8.02 24.904-8.616 38.099-.485 10.743-1.676 21.576-.832 32.232 1.972 24.88 8.432 48.532 22.772 69.482 9.841 14.377 22.553 24.875 40.261 27.128 12.076 1.536 22.903-3.039 32.61-10.162 11.464-8.413 18.832-20.01 25.134-32.428 1.015-1.999 1.977-4.024 3.16-6.435 3.462 1.316 6.734 2.41 9.853 3.84.898.41 1.98 1.83 1.917 2.71-.816 11.438-1.7 22.875-2.824 34.286-.83 8.425-1.606 16.893-3.166 25.2-3.51 18.704-7.07 37.418-11.386 55.947-5.88 25.242-16.105 49.031-26.748 72.517-7.348 16.217-15.96 31.923-24.895 47.343-8.305 14.334-19.022 26.979-31.267 38.22-12.997 11.93-27.803 20.952-44.338 27.097-12.342 4.587-25.07 6.994-38.231 8.246-15.726 1.496-31.241.584-46.78-1.242-12.261-1.441-24.662-2.456-36.66-5.171-13.244-2.998-26.222-7.358-39.091-11.78-15.205-5.225-28.167-14.694-41.412-23.493-9.622-6.391-20.643-8.736-31.506-11.436-21.082-5.238-42.684-6.441-64.165-4.817-19.712 1.491-38.637 6.86-55.184 18.671-9.74 6.952-17.283 15.785-24.144 25.464-13.112 18.498-28.924 34.11-49.937 43.535-13.625 6.11-28.204 9.358-42.883 6.8-20.243-3.526-39.004-11.365-55.833-23.652-16.86-12.308-30.797-26.983-41.591-44.967-8.502-14.164-14.824-29.127-20.083-44.668-6.874-20.315-13.436-40.75-20.89-60.853-8.184-22.07-16.908-43.955-26.017-65.66-5.701-13.584-11.68-27.197-19.108-39.874-8.543-14.576-18.478-28.385-28.435-42.072-13.246-18.208-30.907-31.683-49.654-43.726-13.449-8.64-28.179-14.483-43.703-18.219-7.177-1.728-14.458-3.024-22.076-4.595.232-14.352 4.716-27.508 11.967-39.735 10.145-17.104 24.47-29.948 42.045-39.022 12.592-6.501 25.934-10.992 39.912-13.76 21.243-4.205 42.73-6.09 64.225-4.73 32.393 2.051 64.226 7.228 93.188 23.455 19.679 11.026 35.886 25.733 48.805 44.249 13.232 18.965 29.348 34.85 50.806 44.414 10.33 4.604 21.108 8 32.504 8.64 9.738.547 19.514 1.23 29.243.922 14.455-.456 28.58-3.25 42.498-7.357 18.897-5.576 35.259-15.42 48.973-29.285 12.7-12.84 22.52-28.006 32.437-43.073a1466.113 1466.113 0 0 1 35.434-51.417c6.192-8.588 12.99-16.884 20.458-24.371 9.269-9.293 18.948-18.377 29.472-26.17 15.528-11.499 31.456-22.645 48.152-32.32 15.104-8.754 31.1-16.27 47.368-22.63 18.478-7.223 37.565-13 56.638-18.546 11.712-3.405 23.842-5.473 35.873-7.651 23.644-4.28 47.586-4.891 71.484-3.91 23.363.959 46.105 5.144 67.855 14.681 17.212 7.548 31.471 18.688 43.382 32.658 7.468 8.759 12.993 19.172 19.418 28.824 2.862 4.3 5.794 8.553 8.568 12.64l-27.055 14.844c-8.802-7.399-17.266-15.134-26.382-22.002-9.389-7.073-20.492-10.987-31.998-12.606-10.873-1.53-22.022-2.578-32.941-1.947-17.924 1.035-35.542 4.802-52.31 11.431-11.769 4.653-23.328 9.9-34.717 15.423-6.627 3.214-13.073 7.052-18.941 11.481-3.194 2.41-4.626 7.023-7.528 9.979-5.936 6.045-12.084 11.936-18.588 17.357-10.634 8.86-22.608 16.338-32.174 26.188-8.913 9.178-15.89 20.388-22.893 31.238-13.673 21.186-23.306 44.306-30.348 68.458-3.638 12.476-6.514 25.175-9.703 37.78-.157.621-.02 1.317-.02 3.079 1.318-1.914 2.148-2.964 2.813-4.11 13.397-23.077 26.412-46.387 40.267-69.187 12.027-19.79 25.918-38.324 42.665-54.45 6.49-6.248 13.345-12.349 23-14.775.733.24.88.344 1.027.448m-32.505 40.628c-.785 1.906-1.569 3.813-2.914 5.913l-.121 1.619c.44-.315.879-.63 1.878-1.424.885-1.91 1.77-3.818 3.216-6.215l.76-2.262-.984-.397c-.394.827-.789 1.654-1.835 2.766z",fill:"#2c71a1"}),
|
|
20
|
+
/* @__PURE__ */c("path",{d:"M111.274 531.919c-1.425-2.304-2.883-4.587-4.267-6.914-6.663-11.196-14.614-21.852-19.626-33.745-6.375-15.128-11.098-31.076-15.144-47.022-3.174-12.51-4.482-25.522-6.163-38.37-1.374-10.505-3.456-21.193-2.74-31.629.992-14.457 3.509-28.946 6.886-43.06 2.776-11.599 6.764-23.155 12-33.857 7.262-14.839 17.008-28.15 28.216-40.56 16.136-17.864 34.4-32.98 54.856-45.321 15.683-9.462 32.147-17.63 48.289-26.329.5-.27 1.274-.034 2.357-.034-6.557 12.2-10.399 24.806-9.872 39.006 10.55-1.929 20.784-3.912 31.06-5.645 9.599-1.618 19.24-2.979 28.866-4.437 10.91-1.652 21.804-3.434 32.742-4.883 9.383-1.242 18.819-2.075 28.227-3.124 11.671-1.302 23.335-2.676 35.01-3.945 4.238-.46 8.496-.76 12.751-1.04 15.587-1.025 31.178-1.987 46.763-3.032 2.756-.185 5.616-.286 8.19-1.141 1.363-.453 2.604-2.279 3.239-3.767 8.277-19.404 20.902-35.287 39.157-45.93 13.107-7.642 27.702-8.734 42.6-6.323 2.597.42 5.346-.13 7.96.23 10.593 1.464 21.227 2.76 31.72 4.777 12.325 2.37 24.687 4.843 36.723 8.336a336.134 336.134 0 0 1 36.653 12.97c12.702 5.346 25.388 11.062 37.208 18.086 13.702 8.143 26.668 17.6 39.413 27.204 2.245 1.69 2.33 6.872 2.567 10.497 1.183 18.076 2.13 36.168 3.006 54.262.077 1.599-.49 3.719-1.56 4.807-9.856 10.019-16.62 21.46-17.384 35.853-.952 17.956 1.755 34.995 15.008 48.278 3.72 3.729 9.444 6.317 14.682 7.482a53.559 53.559 0 0 0 27.013-.97c9.915-2.969 16.342-10.268 19.165-19.798 7.535-25.441 3.02-48.47-15.62-68.054-1.33-1.397-2.909-2.674-4.598-3.59-8.758-4.752-10.2-13.713-12.5-21.998-2.093-7.535-3.397-15.29-4.296-23.5 3.045 3.265 6.42 6.284 9.074 9.84 8.51 11.401 17.147 22.74 25.01 34.584 12.224 18.418 20.751 38.61 27.103 59.774 4.034 13.439 7.075 26.985 6.993 41.104-.058 10.003.715 20.072-.18 29.996-1.367 15.159-6.268 29.186-16.355 41.103-9.711 11.474-21.865 19.756-34.937 26.61-16.19 8.488-32.696 16.389-49.227 24.2-12.315 5.82-24.892 11.085-37.337 16.63-1.019.453-1.928 1.153-3.437 2.06-11.006 5.07-21.508 9.721-31.899 14.61-4.036 1.9-7.82 4.335-11.72 6.526-5.516 2.17-11.126 4.13-16.53 6.551-13.01 5.83-25.846 12.054-38.9 17.783-13.787 6.05-27.527 12.32-41.684 17.39a854.019 854.019 0 0 1-55.83 17.861c-10.218 2.886-20.923 4.317-31.507 5.57-12.69 1.504-25.478 2.227-38.238 3.082-8.07.54-16.17.638-24.25 1.055-11.674.603-23.37 2.176-35.006 1.801-23.602-.76-46.949-3.724-70.058-9.165-20.113-4.736-38.798-13.253-58.266-19.643-10.038-3.294-20.61-5.183-30.314-9.218-15.067-6.264-29.406-14.109-41.517-25.423-2.854-2.665-6.02-4.995-9.414-7.896-3.625-3.797-6.878-7.176-10.131-10.555m73.558-223.68c-1.957.918-3.883 1.906-5.873 2.743-20.59 8.662-39.373 20.002-54.226 37.019-2.474 2.835-4.878 6.043-6.214 9.504-4.8 12.437-7.296 25.488-7.29 38.777.006 11.572.882 23.173 1.934 34.71 1.411 15.463 5.677 30.27 12.6 44.154 12.145 24.355 32.196 40.286 56.833 50.359 29.439 12.036 60.666 16.402 92.158 17.14 26.376.618 52.813-.85 79.207-1.824a483.46 483.46 0 0 0 39.068-3.048c18.999-2.253 38.009-4.661 56.847-7.958 24.862-4.352 49.655-9.203 74.307-14.616a567.756 567.756 0 0 0 83.14-25.058c15.603-6.037 30.865-12.955 46.237-19.576 1.24-.534 2.146-1.845 3.207-2.795-.88-.849-1.666-1.831-2.655-2.525-5.937-4.168-12.375-7.749-17.806-12.487-18.845-16.442-28.918-38.217-35.25-61.762-4.044-15.042-8.05-30.257-7.175-46.145.045-.809-.316-1.635-.317-2.454-.02-13.269-.305-26.546.087-39.804.288-9.74 1.627-19.445 2.076-29.184.064-1.37-2.163-3.982-3.514-4.112-23.36-2.246-46.715-4.981-70.141-5.964-19.903-.834-39.896.37-59.846.795-6.79.144-13.588.486-20.357 1.037-14.823 1.207-29.63 2.597-44.443 3.928-11.357 1.021-22.737 1.855-34.064 3.154-15.241 1.75-30.458 3.746-45.654 5.856-16.343 2.27-32.75 4.263-48.95 7.326-28.293 5.348-56.174 12.428-83.926 22.81z",fill:"#2c71a1"}),
|
|
21
|
+
/* @__PURE__ */c("path",{d:"M185.21 308.158c27.374-10.3 55.255-17.38 83.548-22.73 16.2-3.062 32.607-5.055 48.95-7.325 15.196-2.11 30.413-4.107 45.654-5.856 11.327-1.299 22.707-2.133 34.064-3.154 14.813-1.331 29.62-2.721 44.443-3.928 6.77-.55 13.566-.893 20.357-1.037 19.95-.424 39.943-1.63 59.846-.795 23.426.983 46.781 3.718 70.141 5.964 1.35.13 3.578 2.742 3.514 4.112-.45 9.74-1.788 19.445-2.076 29.184-.392 13.258-.107 26.535-.087 39.804 0 .819.362 1.645.317 2.454-.876 15.888 3.131 31.103 7.176 46.145 6.33 23.545 16.404 45.32 35.249 61.762 5.431 4.738 11.869 8.319 17.806 12.487.989.694 1.775 1.676 2.655 2.525-1.061.95-1.967 2.26-3.207 2.795-15.372 6.621-30.634 13.54-46.236 19.576a567.756 567.756 0 0 1-83.14 25.058c-24.653 5.413-49.446 10.264-74.308 14.616-18.838 3.297-37.848 5.705-56.847 7.958a483.46 483.46 0 0 1-39.068 3.048c-26.394.975-52.831 2.442-79.207 1.824-31.492-.738-62.72-5.104-92.158-17.14-24.637-10.073-44.688-26.004-56.833-50.359-6.923-13.884-11.189-28.69-12.6-44.154-1.052-11.537-1.928-23.138-1.934-34.71-.006-13.29 2.49-26.34 7.29-38.777 1.336-3.46 3.74-6.67 6.214-9.504 14.853-17.017 33.635-28.357 54.226-37.019 1.99-.837 3.916-1.825 6.251-2.824m201.146 114.733c3.146 6.947 5.851 14.138 9.519 20.798 11.592 21.054 26.994 38.551 49.189 48.882 24.235 11.28 46.022 5.832 61.441-13.842 16.128-20.578 19.654-45.064 17.3-70.257-1.75-18.72-7.447-36.601-16.597-53.217-11.632-21.12-27.003-38.54-49.269-48.838-17.506-8.097-34.753-7.824-50.904 3.538-9.657 6.795-15.44 16.686-20.256 27.253-8.104 17.78-9.529 36.447-6.972 55.437 1.337 9.936 4.121 19.677 6.549 30.246m-205.288 6.26c.279.95.58 1.896.834 2.855 8.37 31.684 24.064 58.327 52.575 76.068 10.332 6.429 21.605 10.803 33.816 9.782 15.072-1.262 26.844-9.179 34.787-21.995 12.524-20.21 15.326-42.372 11.611-65.506-2.51-15.637-7.657-30.41-15.519-44.222-11.426-20.073-26.468-36.252-47.802-46.146-21.335-9.894-40.216-5.203-53.795 9.063-12.745 13.39-17.955 30.418-18.49 48.578-.301 10.198 1.181 20.449 1.983 31.522z"}),
|
|
22
|
+
/* @__PURE__ */c("path",{d:"M386.208 422.521c-2.28-10.199-5.064-19.94-6.401-29.876-2.557-18.99-1.132-37.658 6.972-55.437 4.817-10.567 10.599-20.458 20.256-27.253 16.15-11.362 33.398-11.635 50.904-3.538 22.266 10.298 37.637 27.718 49.269 48.838 9.15 16.616 14.848 34.497 16.597 53.217 2.354 25.193-1.172 49.679-17.3 70.257-15.419 19.674-37.206 25.123-61.441 13.842-22.195-10.33-37.597-27.828-49.19-48.882-3.667-6.66-6.372-13.85-9.666-21.168m25.884-3.891c-.513 8.802.736 17.129 6.055 24.535 9.544 13.288 26.966 12.323 35.396.758 8.54-11.714 9.476-24.526 4.363-37.58-5.39-13.761-18.67-20.01-30.185-14.433-10.514 5.093-14.972 14.421-15.629 26.72zM181.007 428.727c-.74-10.65-2.223-20.901-1.923-31.1.536-18.16 5.746-35.187 18.491-48.577 13.579-14.266 32.46-18.957 53.795-9.063 21.334 9.894 36.376 26.073 47.802 46.146 7.862 13.811 13.009 28.585 15.52 44.222 3.714 23.134.912 45.296-11.612 65.506-7.943 12.816-19.715 20.733-34.787 21.995-12.21 1.021-23.484-3.353-33.816-9.782-28.511-17.741-44.204-44.384-52.575-76.068-.253-.959-.555-1.904-.895-3.28m22.423 22.124c.91 3.328 1.434 6.827 2.808 9.951 3.527 8.018 9.159 13.987 18.316 15.025 9.436 1.07 16.428-2.542 21.25-11.198 8.09-14.52 8.726-28.544-.864-42.536-7.955-11.606-26.807-11.4-35 .093-6.043 8.476-7.465 17.831-6.51 28.665z",fill:"#fff"}),
|
|
23
|
+
/* @__PURE__ */c("path",{d:"M412.092 418.16c.657-11.829 5.115-21.157 15.63-26.25 11.515-5.577 24.794.672 30.184 14.433 5.113 13.054 4.178 25.866-4.363 37.58-8.43 11.565-25.852 12.53-35.396-.758-5.319-7.406-6.568-15.733-6.055-25.006zM203.28 450.427c-.805-10.41.617-19.766 6.66-28.242 8.193-11.492 27.045-11.699 35-.093 9.59 13.992 8.954 28.016.865 42.536-4.823 8.656-11.815 12.268-21.25 11.198-9.158-1.038-14.79-7.007-18.317-15.025-1.374-3.124-1.897-6.623-2.958-10.374z"})]})}};function n({providers:i,imageUrl:t,className:n,surface:s,organizationId:d,eventId:p,contentId:h}){const m=i.filter(o);return 0===m.length?null:/* @__PURE__ */c("div",{className:"flex flex-row gap-2",children:m.map(i=>{const o=r[i];/* @__PURE__ */
|
|
24
|
+
return c("button",{className:n??"bg-background cursor-pointer bg-opacity-50 rounded-full p-1 opacity-50 transition-all sm:p-1.5 sm:hover:scale-110 sm:hover:opacity-100",onClick:()=>(c=>{window.open(a[c].buildUrl(t),"_blank","noopener,noreferrer"),d&&p&&e.post(l.TRACK_IMAGE_SEARCH_CLICK,{json:{organizationId:d,eventId:p,contentId:h,provider:c,surface:s},headers:{"x-org-id":d}}).catch(()=>{})})(i),"aria-label":`Search this image on ${a[i].label}`,children:/* @__PURE__ */c(o,{})},i)})})}export{o as i,t as n,a as r,n as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as r,w as t}from"./DrrpB4Om.js";import{n as e}from"./
|
|
1
|
+
import{t as r,w as t}from"./DrrpB4Om.js";import{n as e}from"./CKQOToSD.js";import{x as n}from"./BLeZg2Bz.js";import{l as a,t as i}from"./DdYePHxG.js";import{t as s}from"./DmIYOIw1.js";import{t as o}from"./D35mTuTT.js";var m=()=>{const{user:m,organization:c,signout:l}=e(),d=a(),h=c?.integrationSettings?.hideQratiBranding;/* @__PURE__ */
|
|
2
2
|
return r("div",{className:"pt-16 sm:pt-24",children:[c&&/* @__PURE__ */r("div",{className:"mx-auto py-2",children:c.customAuth?m&&/* @__PURE__ */r(s,{variant:"h6",align:"center",children:m.name}):/* @__PURE__ */r(t,{children:[!m&&/* @__PURE__ */r(s,{variant:"h6",align:"center",children:[
|
|
3
3
|
/* @__PURE__ */r(i,{className:"text-primary hover:underline",to:n.LOGIN,children:"Login"})," ","•"," ",
|
|
4
4
|
/* @__PURE__ */r(i,{className:"text-primary hover:underline",to:n.REGISTER,children:"Register"})]}),m&&/* @__PURE__ */r(s,{variant:"h6",align:"center",children:[m.name," •"," ",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{r as e}from"./DdACKOZr.js";import{C as t,_ as o,f as l,h as r,p as a,t as n}from"./DrrpB4Om.js";import{a as i,n as f,u as c}from"./BlmPmkho.js";import{t as p}from"./KcnPb5CZ.js";import{v as s}from"./DpD2Abx9.js";import{t as d}from"./CitgNM58.js";import{t as u}from"./Rcen6i0h.js";import{t as m}from"./DvW8TE7T.js";import{a as g,i as b,n as h,r as x,t as v}from"./BvrbBj1F.js";import{t as k}from"./CfMNBPpx.js";var y=[[90,-180],[-90,180]],w=[20,0],z="#fb8500",A={topLeft:[276,60],bottomRight:[60,60]},E=new p,L=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),C=({onExplore:p,logoUrl:C})=>{const R=l(null),T=l(null),M=l(null),O=l(null),I=l(null),W=l(null),j=l(null),S=l(!1),Z=l(!1),q=a(()=>(()=>{try{const e=sessionStorage.getItem(s);if(!e)return null;const t=JSON.parse(e);if("number"==typeof t?.center?.lat&&"number"==typeof t?.center?.lng&&"number"==typeof t?.zoom)return t}catch{}return null})(),[]),[D,B]=r(!0),[H,N]=r(!1),{folderTree:U,activeFolderId:F,activeFolder:P,visibleEvents:Y,setActiveFolderId:J,isLoadingEvents:G}=m(),{organization:Q}=f();return o(()=>{if(!R.current||T.current)return;k("leaflet",'.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;top:0;left:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:0 0}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{-webkit-transform-origin:0 0;width:1600px;height:1600px}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{width:auto;padding:0;max-width:none!important;max-height:none!important}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:#33b5e566}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{box-sizing:border-box;z-index:800;width:0;height:0}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{z-index:800;pointer-events:visiblePainted;pointer-events:auto;position:relative}.leaflet-top,.leaflet-bottom{z-index:1000;pointer-events:none;position:absolute}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{outline-offset:1px;background:#ddd}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{background:#ffffff80;border:2px dotted #38f}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:.75rem;line-height:1.5}.leaflet-bar{border-radius:4px;box-shadow:0 1px 5px #000000a6}.leaflet-bar a{text-align:center;color:#000;background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;text-decoration:none;display:block}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom:none;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.leaflet-bar a.leaflet-disabled{cursor:default;color:#bbb;background-color:#f4f4f4}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{text-indent:1px;font:700 18px Lucida Console,Monaco,monospace}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{background:#fff;border-radius:5px;box-shadow:0 1px 5px #0006}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{color:#333;background:#fff;padding:6px 10px 6px 6px}.leaflet-control-layers-scrollbar{padding-right:5px;overflow:hidden scroll}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{font-size:1.08333em;display:block}.leaflet-control-layers-separator{border-top:1px solid #ddd;height:0;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{color:#333;padding:0 5px;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{width:1em;height:.6669em;vertical-align:baseline!important;display:inline!important}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{white-space:nowrap;box-sizing:border-box;text-shadow:1px 1px #fff;background:#fffc;border:2px solid #777;border-top:none;padding:2px 5px 1px;line-height:1.1}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{background-clip:padding-box;border:2px solid #0003}.leaflet-popup{text-align:center;margin-bottom:20px;position:absolute}.leaflet-popup-content-wrapper{text-align:left;border-radius:12px;padding:1px}.leaflet-popup-content{min-height:1px;margin:13px 24px 13px 20px;font-size:1.08333em;line-height:1.3}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{pointer-events:none;width:40px;height:20px;margin-top:-1px;margin-left:-20px;position:absolute;left:50%;overflow:hidden}.leaflet-popup-tip{pointer-events:auto;width:17px;height:17px;margin:-10px auto 0;padding:1px;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{color:#333;background:#fff;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{text-align:center;color:#757575;background:0 0;border:none;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;text-decoration:none;position:absolute;top:0;right:0}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";width:24px;filter:progid:DXImageTransform.Microsoft.Matrix(M11=.707107, M12=.707107, M21=-.707107, M22=.707107);margin:0 auto}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{color:#222;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;background-color:#fff;border:1px solid #fff;border-radius:3px;padding:6px;position:absolute;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{pointer-events:none;content:"";background:0 0;border:6px solid #0000;position:absolute}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{margin-left:-6px;left:50%}.leaflet-tooltip-top:before{border-top-color:#fff;margin-bottom:-12px;bottom:0}.leaflet-tooltip-bottom:before{border-bottom-color:#fff;margin-top:-12px;margin-left:-6px;top:0}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{margin-top:-6px;top:50%}.leaflet-tooltip-left:before{border-left-color:#fff;margin-right:-12px;right:0}.leaflet-tooltip-right:before{border-right-color:#fff;margin-left:-12px;left:0}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}'),k("marker-cluster",".leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{transition:transform .3s ease-out,opacity .3s ease-in}.leaflet-cluster-spider-leg{transition:stroke-dashoffset .3s ease-out,stroke-opacity .3s ease-in}.marker-cluster-small{background-color:#b5e28c99}.marker-cluster-small div{background-color:#6ecc3999}.marker-cluster-medium{background-color:#f1d35799}.marker-cluster-medium div{background-color:#f0c20c99}.marker-cluster-large{background-color:#fd9c7399}.marker-cluster-large div{background-color:#f1801799}.leaflet-oldie .marker-cluster-small{background-color:#b5e28c}.leaflet-oldie .marker-cluster-small div{background-color:#6ecc39}.leaflet-oldie .marker-cluster-medium{background-color:#f1d357}.leaflet-oldie .marker-cluster-medium div{background-color:#f0c20c}.leaflet-oldie .marker-cluster-large{background-color:#fd9c73}.leaflet-oldie .marker-cluster-large div{background-color:#f18017}.marker-cluster{background-clip:padding-box;border-radius:20px}.marker-cluster div{text-align:center;border-radius:15px;width:30px;height:30px;margin-top:5px;margin-left:5px}.marker-cluster span{line-height:30px}");let t,o=!1;return(async()=>{try{const l=await import("./OnH8Izqn.js").then(t=>/* @__PURE__ */e(t.default,1));if(o)return;if("undefined"!=typeof window&&(window.L=l),await Promise.all([import("./C7zv6hcG.js").then(t=>/* @__PURE__ */e(t.default,1)),import("./rtH8O6Hc.js")]),o)return;const r=window.L??l;if(!R.current)return;const a=l.map(R.current,{center:q?.center?[q.center.lat??w[0],q.center.lng??w[1]]:w,zoom:q?.zoom??3,minZoom:3,zoomControl:!0,worldCopyJump:!1,maxBounds:l.latLngBounds(y),maxBoundsViscosity:1});l.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"© OpenStreetMap contributors",maxZoom:19,noWrap:!0}).addTo(a);const n=l.layerGroup().addTo(a),i="function"==typeof r.heatLayer?r.heatLayer([],{radius:30,blur:30,maxZoom:10,minOpacity:.35}):null;i?.addTo(a);const f="function"==typeof r.markerClusterGroup?r.markerClusterGroup({chunkedLoading:!0,showCoverageOnHover:!1,spiderfyOnMaxZoom:!0,zoomToBoundsOnClick:!0,maxClusterRadius:48}):l.layerGroup();f.addTo(a);const c=()=>{j.current&&clearTimeout(j.current),j.current=setTimeout(()=>{try{sessionStorage.setItem(s,JSON.stringify({center:a.getCenter(),zoom:a.getZoom()}))}catch{}},250)};let p;a.on("zoomend",c),a.on("moveend",c),T.current=a,M.current=r,O.current=n,W.current=i,I.current=f,"undefined"!=typeof ResizeObserver&&R.current&&(p=new ResizeObserver(()=>a.invalidateSize(!1)),p.observe(R.current)),requestAnimationFrame(()=>a.invalidateSize(!1)),N(!0),B(!1),t=()=>{p?.disconnect(),j.current&&clearTimeout(j.current),a.off("zoomend",c),a.off("moveend",c),a.remove(),M.current=null,T.current=null,O.current=null,W.current=null,I.current=null}}finally{o||B(!1)}})(),()=>{o=!0,t?.()}},[q]),o(()=>{if(!H)return;const e=M.current;if(!e)return;const o=T.current;if(O.current?.clearLayers(),I.current?.clearLayers(),null===F&&U.length>0){o&&W.current&&(W.current.setLatLngs?.([]),o.hasLayer(W.current)&&o.removeLayer(W.current));const t=o=>{for(const l of o)if(l.centroid){const[t,o]=l.centroid,r=e.divIcon({className:"",html:`<div style="transform:translate(-50%,-50%);background:${x(l.color,z)};color:#fff;border-radius:20px;padding:5px 10px;font-size:12px;font-weight:600;white-space:nowrap;box-shadow:0 2px 8px rgba(0,0,0,0.25);border:2px solid rgba(255,255,255,0.4);cursor:pointer;display:inline-flex;align-items:center;gap:6px;"><span>${L(l.folder.name)}</span><span style="background:rgba(0,0,0,0.18);border-radius:10px;padding:1px 5px;font-size:10px;">${l.eventCount}</span></div>`,iconSize:[0,0],iconAnchor:[0,0]});e.marker([o,t],{icon:r}).on("click",()=>J(l.folder._id)).addTo(O.current)}else l.children.length>0&&t(l.children)};t(U)}else{if(0===Y.length)return;const l=0===U.length&&null===F,r=x(P?.color,z);if(o&&W.current&&(l&&!o.hasLayer(W.current)?W.current.addTo(o):l||(W.current.setLatLngs?.([]),o.hasLayer(W.current)&&o.removeLayer(W.current))),Y.forEach(o=>{const l=o.location.x,a=o.location.y,i=e.divIcon({className:"qrati-leaflet-marker-wrapper",html:`<div style="width:36px;height:36px;cursor:pointer;background:${r};border-radius:50% 50% 50% 0;transform:rotate(-45deg);border:2px solid white;box-shadow:0 2px 8px rgba(0,0,0,0.3);display:flex;align-items:center;justify-content:center;overflow:hidden;">${b(C)?`<img src="${b(C)}" style="width:24px;height:24px;border-radius:50%;object-fit:cover;transform:rotate(45deg);" />`:""}</div>`,iconSize:[36,36],iconAnchor:[18,36],popupAnchor:[0,-36]}),f=e.marker([a,l],{icon:i}),s=document.createElement("div");s.style.width="fit-content",((e,o,l)=>{t(/* @__PURE__ */n(c,{client:E,children:/* @__PURE__ */n(g,{event:e,onExplore:l})}),o)})(o,s,p),f.bindPopup(s,{closeButton:!0,maxWidth:256}),I.current?.addLayer(f)}),l&&W.current){const e=Y.reduce((e,t)=>Math.max(e,t.views??0),1),t=Y.map(e=>[e.location.y,e.location.x,e.views??1]);W.current.setOptions?.({radius:30,blur:30,maxZoom:10,minOpacity:.35,max:e}),W.current.setLatLngs?.(t)}if(l&&!Z.current&&o&&(Z.current=!0,!q)){const t=e.latLngBounds([]);Y.forEach(e=>t.extend([e.location.y,e.location.x])),t.isValid()&&o.fitBounds(t,{paddingTopLeft:A.topLeft,paddingBottomRight:A.bottomRight,maxZoom:8})}}},[F,U,Y,H,p,C,J,P,q]),o(()=>{if(!H)return;const e=T.current,t=M.current;if(!e||!t)return;if(!S.current&&q)return void(S.current=!0);S.current=!0;const o={paddingTopLeft:A.topLeft,paddingBottomRight:A.bottomRight,duration:3,easeLinearity:1};if(F){const l=h(U,F);if(!l?.folder.boundary?.length)return;const r=t.latLngBounds([]);for(const e of l.folder.boundary)r.extend([e.y,e.x]);r.isValid()&&e.flyToBounds(r,{...o,maxZoom:14})}else{const l=t.latLngBounds([]),r=e=>{for(const t of e)t.centroid?l.extend([t.centroid[1],t.centroid[0]]):r(t.children)};r(U),l.isValid()&&e.flyToBounds(l,{...o,maxZoom:8})}},[F,U,H,q]),/* @__PURE__ */n("div",{class:"relative h-screen w-full sm:h-[calc(100vh-4rem)]",style:i(Q),children:[
|
|
1
|
+
import{r as e}from"./DdACKOZr.js";import{C as t,_ as o,f as l,h as r,p as a,t as n}from"./DrrpB4Om.js";import{a as i,l as f,n as c}from"./CKQOToSD.js";import{t as p}from"./CeHBrY_i.js";import{v as s}from"./BLeZg2Bz.js";import{t as d}from"./MU5QuIq0.js";import{t as u}from"./Rcen6i0h.js";import{t as m}from"./B9ImRAum.js";import{a as g,i as b,n as h,r as x,t as v}from"./p0Q_2x6C.js";import{t as k}from"./CfMNBPpx.js";var y=[[90,-180],[-90,180]],w=[20,0],z="#fb8500",A={topLeft:[276,60],bottomRight:[60,60]},E=new p,L=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),C=({onExplore:p,logoUrl:C})=>{const R=l(null),T=l(null),M=l(null),O=l(null),I=l(null),W=l(null),j=l(null),S=l(!1),Z=l(!1),q=a(()=>(()=>{try{const e=sessionStorage.getItem(s);if(!e)return null;const t=JSON.parse(e);if("number"==typeof t?.center?.lat&&"number"==typeof t?.center?.lng&&"number"==typeof t?.zoom)return t}catch{}return null})(),[]),[D,B]=r(!0),[H,N]=r(!1),{folderTree:U,activeFolderId:F,activeFolder:P,visibleEvents:Y,setActiveFolderId:J,isLoadingEvents:G}=m(),{organization:Q}=c();return o(()=>{if(!R.current||T.current)return;k("leaflet",'.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;top:0;left:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:0 0}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{-webkit-transform-origin:0 0;width:1600px;height:1600px}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{width:auto;padding:0;max-width:none!important;max-height:none!important}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:#33b5e566}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{box-sizing:border-box;z-index:800;width:0;height:0}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{z-index:800;pointer-events:visiblePainted;pointer-events:auto;position:relative}.leaflet-top,.leaflet-bottom{z-index:1000;pointer-events:none;position:absolute}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{outline-offset:1px;background:#ddd}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{background:#ffffff80;border:2px dotted #38f}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:.75rem;line-height:1.5}.leaflet-bar{border-radius:4px;box-shadow:0 1px 5px #000000a6}.leaflet-bar a{text-align:center;color:#000;background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;text-decoration:none;display:block}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom:none;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.leaflet-bar a.leaflet-disabled{cursor:default;color:#bbb;background-color:#f4f4f4}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{text-indent:1px;font:700 18px Lucida Console,Monaco,monospace}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{background:#fff;border-radius:5px;box-shadow:0 1px 5px #0006}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{color:#333;background:#fff;padding:6px 10px 6px 6px}.leaflet-control-layers-scrollbar{padding-right:5px;overflow:hidden scroll}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{font-size:1.08333em;display:block}.leaflet-control-layers-separator{border-top:1px solid #ddd;height:0;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{color:#333;padding:0 5px;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{width:1em;height:.6669em;vertical-align:baseline!important;display:inline!important}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{white-space:nowrap;box-sizing:border-box;text-shadow:1px 1px #fff;background:#fffc;border:2px solid #777;border-top:none;padding:2px 5px 1px;line-height:1.1}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{background-clip:padding-box;border:2px solid #0003}.leaflet-popup{text-align:center;margin-bottom:20px;position:absolute}.leaflet-popup-content-wrapper{text-align:left;border-radius:12px;padding:1px}.leaflet-popup-content{min-height:1px;margin:13px 24px 13px 20px;font-size:1.08333em;line-height:1.3}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{pointer-events:none;width:40px;height:20px;margin-top:-1px;margin-left:-20px;position:absolute;left:50%;overflow:hidden}.leaflet-popup-tip{pointer-events:auto;width:17px;height:17px;margin:-10px auto 0;padding:1px;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{color:#333;background:#fff;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{text-align:center;color:#757575;background:0 0;border:none;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;text-decoration:none;position:absolute;top:0;right:0}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";width:24px;filter:progid:DXImageTransform.Microsoft.Matrix(M11=.707107, M12=.707107, M21=-.707107, M22=.707107);margin:0 auto}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{color:#222;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;background-color:#fff;border:1px solid #fff;border-radius:3px;padding:6px;position:absolute;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{pointer-events:none;content:"";background:0 0;border:6px solid #0000;position:absolute}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{margin-left:-6px;left:50%}.leaflet-tooltip-top:before{border-top-color:#fff;margin-bottom:-12px;bottom:0}.leaflet-tooltip-bottom:before{border-bottom-color:#fff;margin-top:-12px;margin-left:-6px;top:0}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{margin-top:-6px;top:50%}.leaflet-tooltip-left:before{border-left-color:#fff;margin-right:-12px;right:0}.leaflet-tooltip-right:before{border-right-color:#fff;margin-left:-12px;left:0}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}'),k("marker-cluster",".leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{transition:transform .3s ease-out,opacity .3s ease-in}.leaflet-cluster-spider-leg{transition:stroke-dashoffset .3s ease-out,stroke-opacity .3s ease-in}.marker-cluster-small{background-color:#b5e28c99}.marker-cluster-small div{background-color:#6ecc3999}.marker-cluster-medium{background-color:#f1d35799}.marker-cluster-medium div{background-color:#f0c20c99}.marker-cluster-large{background-color:#fd9c7399}.marker-cluster-large div{background-color:#f1801799}.leaflet-oldie .marker-cluster-small{background-color:#b5e28c}.leaflet-oldie .marker-cluster-small div{background-color:#6ecc39}.leaflet-oldie .marker-cluster-medium{background-color:#f1d357}.leaflet-oldie .marker-cluster-medium div{background-color:#f0c20c}.leaflet-oldie .marker-cluster-large{background-color:#fd9c73}.leaflet-oldie .marker-cluster-large div{background-color:#f18017}.marker-cluster{background-clip:padding-box;border-radius:20px}.marker-cluster div{text-align:center;border-radius:15px;width:30px;height:30px;margin-top:5px;margin-left:5px}.marker-cluster span{line-height:30px}");let t,o=!1;return(async()=>{try{const l=await import("./OnH8Izqn.js").then(t=>/* @__PURE__ */e(t.default,1));if(o)return;if("undefined"!=typeof window&&(window.L=l),await Promise.all([import("./C7zv6hcG.js").then(t=>/* @__PURE__ */e(t.default,1)),import("./rtH8O6Hc.js")]),o)return;const r=window.L??l;if(!R.current)return;const a=l.map(R.current,{center:q?.center?[q.center.lat??w[0],q.center.lng??w[1]]:w,zoom:q?.zoom??3,minZoom:3,zoomControl:!0,worldCopyJump:!1,maxBounds:l.latLngBounds(y),maxBoundsViscosity:1});l.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"© OpenStreetMap contributors",maxZoom:19,noWrap:!0}).addTo(a);const n=l.layerGroup().addTo(a),i="function"==typeof r.heatLayer?r.heatLayer([],{radius:30,blur:30,maxZoom:10,minOpacity:.35}):null;i?.addTo(a);const f="function"==typeof r.markerClusterGroup?r.markerClusterGroup({chunkedLoading:!0,showCoverageOnHover:!1,spiderfyOnMaxZoom:!0,zoomToBoundsOnClick:!0,maxClusterRadius:48}):l.layerGroup();f.addTo(a);const c=()=>{j.current&&clearTimeout(j.current),j.current=setTimeout(()=>{try{sessionStorage.setItem(s,JSON.stringify({center:a.getCenter(),zoom:a.getZoom()}))}catch{}},250)};let p;a.on("zoomend",c),a.on("moveend",c),T.current=a,M.current=r,O.current=n,W.current=i,I.current=f,"undefined"!=typeof ResizeObserver&&R.current&&(p=new ResizeObserver(()=>a.invalidateSize(!1)),p.observe(R.current)),requestAnimationFrame(()=>a.invalidateSize(!1)),N(!0),B(!1),t=()=>{p?.disconnect(),j.current&&clearTimeout(j.current),a.off("zoomend",c),a.off("moveend",c),a.remove(),M.current=null,T.current=null,O.current=null,W.current=null,I.current=null}}finally{o||B(!1)}})(),()=>{o=!0,t?.()}},[q]),o(()=>{if(!H)return;const e=M.current;if(!e)return;const o=T.current;if(O.current?.clearLayers(),I.current?.clearLayers(),null===F&&U.length>0){o&&W.current&&(W.current.setLatLngs?.([]),o.hasLayer(W.current)&&o.removeLayer(W.current));const t=o=>{for(const l of o)if(l.centroid){const[t,o]=l.centroid,r=e.divIcon({className:"",html:`<div style="transform:translate(-50%,-50%);background:${x(l.color,z)};color:#fff;border-radius:20px;padding:5px 10px;font-size:12px;font-weight:600;white-space:nowrap;box-shadow:0 2px 8px rgba(0,0,0,0.25);border:2px solid rgba(255,255,255,0.4);cursor:pointer;display:inline-flex;align-items:center;gap:6px;"><span>${L(l.folder.name)}</span><span style="background:rgba(0,0,0,0.18);border-radius:10px;padding:1px 5px;font-size:10px;">${l.eventCount}</span></div>`,iconSize:[0,0],iconAnchor:[0,0]});e.marker([o,t],{icon:r}).on("click",()=>J(l.folder._id)).addTo(O.current)}else l.children.length>0&&t(l.children)};t(U)}else{if(0===Y.length)return;const l=0===U.length&&null===F,r=x(P?.color,z);if(o&&W.current&&(l&&!o.hasLayer(W.current)?W.current.addTo(o):l||(W.current.setLatLngs?.([]),o.hasLayer(W.current)&&o.removeLayer(W.current))),Y.forEach(o=>{const l=o.location.x,a=o.location.y,i=e.divIcon({className:"qrati-leaflet-marker-wrapper",html:`<div style="width:42px;height:42px;cursor:pointer;background:${r};border-radius:50% 50% 50% 0;transform:rotate(-45deg);border:2px solid white;box-shadow:0 2px 8px rgba(0,0,0,0.3);display:flex;align-items:center;justify-content:center;overflow:hidden;">${b(C)?`<img src="${b(C)}" style="width:28px;height:28px;border-radius:50%;object-fit:cover;transform:rotate(45deg);" />`:""}</div>`,iconSize:[42,42],iconAnchor:[21,42],popupAnchor:[0,-42]}),c=e.marker([a,l],{icon:i}),s=document.createElement("div");s.style.width="fit-content",((e,o,l)=>{t(/* @__PURE__ */n(f,{client:E,children:/* @__PURE__ */n(g,{event:e,onExplore:l})}),o)})(o,s,p),c.bindPopup(s,{closeButton:!0,maxWidth:256}),I.current?.addLayer(c)}),l&&W.current){const e=Y.reduce((e,t)=>Math.max(e,t.views??0),1),t=Y.map(e=>[e.location.y,e.location.x,e.views??1]);W.current.setOptions?.({radius:30,blur:30,maxZoom:10,minOpacity:.35,max:e}),W.current.setLatLngs?.(t)}if(l&&!Z.current&&o&&(Z.current=!0,!q)){const t=e.latLngBounds([]);Y.forEach(e=>t.extend([e.location.y,e.location.x])),t.isValid()&&o.fitBounds(t,{paddingTopLeft:A.topLeft,paddingBottomRight:A.bottomRight,maxZoom:8})}}},[F,U,Y,H,p,C,J,P,q]),o(()=>{if(!H)return;const e=T.current,t=M.current;if(!e||!t)return;if(!S.current&&q)return void(S.current=!0);S.current=!0;const o={paddingTopLeft:A.topLeft,paddingBottomRight:A.bottomRight,duration:3,easeLinearity:1};if(F){const l=h(U,F);if(!l?.folder.boundary?.length)return;const r=t.latLngBounds([]);for(const e of l.folder.boundary)r.extend([e.y,e.x]);r.isValid()&&e.flyToBounds(r,{...o,maxZoom:14})}else{const l=t.latLngBounds([]),r=e=>{for(const t of e)t.centroid?l.extend([t.centroid[1],t.centroid[0]]):r(t.children)};r(U),l.isValid()&&e.flyToBounds(l,{...o,maxZoom:8})}},[F,U,H,q]),/* @__PURE__ */n("div",{class:"relative h-screen w-full sm:h-[calc(100vh-4rem)]",style:i(Q),children:[
|
|
2
2
|
/* @__PURE__ */n(v,{positionClass:"absolute top-3 left-16 z-[1000]",folderTree:U,activeFolderId:F,setActiveFolderId:J}),G&&/* @__PURE__ */n("div",{class:"absolute inset-0 z-10 flex items-center justify-center bg-white/60",children:/* @__PURE__ */n("div",{class:"border-primary size-10 animate-spin rounded-full border-4 border-t-transparent"})}),D&&/* @__PURE__ */n("div",{class:"absolute inset-0 z-20 flex items-center justify-center bg-white/85",children:/* @__PURE__ */n("div",{class:"flex flex-col items-center gap-3",children:[/* @__PURE__ */n("div",{class:"border-primary size-10 animate-spin rounded-full border-4 border-t-transparent"}),/* @__PURE__ */n("p",{class:"text-sm font-medium text-slate-700",children:"Loading map…"})]})}),!G&&0===Y.length&&(0===U.length||null!==F)&&/* @__PURE__ */n("div",{class:"absolute inset-0 z-30 flex items-center justify-center bg-white/90",children:/* @__PURE__ */n(d,{title:"No Events",description:"Check back later for our awesome events!",iconSvg:/* @__PURE__ */n(u,{})})}),
|
|
3
3
|
/* @__PURE__ */n("div",{ref:R,class:"h-full w-full rounded-xl border border-slate-200"})]})};export{C as default};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{h as a,t as o}from"./DrrpB4Om.js";import{n as e}from"./CKQOToSD.js";import{x as s}from"./BLeZg2Bz.js";import{c as r,t as l}from"./DdYePHxG.js";import{t as i}from"./DmIYOIw1.js";import{n as t}from"./DGGc10Cy.js";import{t as n}from"./DyemeRjE2.js";import{i as d,s as m,t as p}from"./DWqIpaZ02.js";import{n as c,r as g,t as u}from"./DlRUi0u42.js";var f=()=>{const{t:f}=t(),h=r(),[w,v]=a(""),[b,y]=a(""),[j,C]=a(!1),[N,A]=a(null),[P,k]=a(!1),[x,S]=a({}),{loginUsingEmail:E,loginWithGoogle:F,loginWithApple:L}=e(),[O,W]=a({google:!1,apple:!1}),D=a=>{S(o=>o[a]?{...o,[a]:void 0}:o)},G=async(a,o)=>{W(o=>({...o,[a]:!0})),A(null);try{await(o?.())}catch(e){e instanceof Error?A(e.message):A(`Failed to login with ${a.charAt(0).toUpperCase()+a.slice(1)}`)}finally{W(o=>({...o,[a]:!1}))}};/* @__PURE__ */
|
|
2
|
+
return o("div",{className:"bg-background w-full space-y-6",children:[/* @__PURE__ */o("form",{noValidate:!0,onSubmit:async a=>{a.preventDefault();const o=d(w),e=m(b);if(o||e)return void S({email:o,password:e});S({}),C(!0),A(null);const s=await(E?.(w.toLowerCase(),b));s?.error&&A(s.error),C(!1)},className:"space-y-6",children:[
|
|
3
|
+
/* @__PURE__ */o("div",{className:"space-y-9",children:[/* @__PURE__ */o(p,{label:f("auth.email","Email address"),name:"email",disabled:j,type:"email",value:w,onChange:a=>{v(a.target.value),D("email")},autoComplete:"email",error:x.email}),/* @__PURE__ */o(p,{label:f("auth.password","Password"),name:"password",disabled:j,type:P?"text":"password",value:b,onChange:a=>{y(a.target.value),D("password")},autoComplete:"current-password",error:x.password,actionLabel:P?"Hide password":"Show password",actionIcon:/* @__PURE__ */o(P?u:c,{className:"size-5"}),onActionClick:()=>k(!P)})]}),N&&/* @__PURE__ */o(i,{align:"center",color:"error",className:"font-medium",children:N}),
|
|
4
|
+
/* @__PURE__ */o("div",{className:"flex justify-end",children:/* @__PURE__ */o(l,{to:s.FORGOT_PASSWORD,state:{from:h.pathname},children:/* @__PURE__ */o(i,{variant:"h6",className:"w-fit",children:f("button.forgotPassword","Forgot Password?")})})}),
|
|
5
|
+
/* @__PURE__ */o(n,{type:"submit",color:"primary",className:"w-full",loading:j,disabled:j,children:f("button.login","Login")})]}),/* @__PURE__ */o("div",{className:"grid grid-cols-2 gap-4",children:[/* @__PURE__ */o(g,{disabled:j||O.google||O.apple,loading:O.google,onClick:()=>G("google",F),provider:"google"}),/* @__PURE__ */o(g,{disabled:j||O.google||O.apple,loading:O.apple,onClick:()=>G("apple",L),provider:"apple"})]})]})};export{f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,d as t,m as r,p as s}from"./CKQOToSD.js";var i=class extends t{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:i}=e,a=super.createResult(e,t),{isFetching:c,isRefetching:h,isError:o,isRefetchError:n}=a,P=i.fetchMeta?.fetchMore?.direction,g=o&&"forward"===P,u=c&&"forward"===P,f=o&&"backward"===P,d=c&&"backward"===P;return{...a,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:s(t,i.data),hasPreviousPage:r(t,i.data),isFetchNextPageError:g,isFetchingNextPage:u,isFetchPreviousPageError:f,isFetchingPreviousPage:d,isRefetchError:n&&!g&&!f,isRefetching:h&&!u&&!d}}};function a(t,r){return e(t,i,r)}var c=e=>e?.meta?.currentPage>1?e.meta.currentPage-1:void 0,h=e=>e?.meta?.currentPage<e?.meta?.totalPages?e.meta.currentPage+1:void 0;export{c as n,a as r,h as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as r,s as e}from"./CKQOToSD.js";import{t as a}from"./DmpmrPE5.js";import{i as t}from"./BLeZg2Bz.js";var o=({eventSlug:o})=>{const{props:s}=r(),n=s?.organizationId,{isLoading:i,data:d,isError:g,error:m}=e({queryKey:[`event-data-${n??""}-${o??""}`],queryFn:async()=>{try{const r=await a.get(t.EVENT_DATA,{searchParams:o?{eventSlug:o}:void 0,headers:{"x-org-id":n}}).json();if(r.error)throw new Error(r.error);return r.data}catch(r){throw new Error(r instanceof Error?r.message:String(r)||"Failed to fetch event data")}},enabled:!!n&&!!o,staleTime:3e5,gcTime:6e5,refetchOnWindowFocus:"always"});return{loading:i,event:d?.event,ads:d?.ads,gamConfig:d?.gamConfig,parameters:d?.parameters,isError:g,error:m}};export{o as t};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import{E as e,_ as t,h as r,p as n,r as s,s as i,t as a,v as o,y as c}from"./DrrpB4Om.js";import{n as l,t as u}from"./DmpmrPE5.js";import{S as h,h as d,i as f}from"./BLeZg2Bz.js";var p={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},m=new class{#e=p;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},y="undefined"==typeof window||"Deno"in globalThis;function g(){}function v(e,t){return"function"==typeof e?e(t):e}function w(e){return"number"==typeof e&&e>=0&&e!==1/0}function b(e,t){return Math.max(e+(t||0)-Date.now(),0)}function S(e,t){return"function"==typeof e?e(t):e}function R(e,t){return"function"==typeof e?e(t):e}function I(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:i,queryKey:a,stale:o}=e;if(a)if(n){if(t.queryHash!==C(a,t.options))return!1}else if(!E(t.queryKey,a))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return!("boolean"==typeof o&&t.isStale()!==o||s&&s!==t.state.fetchStatus||i&&!i(t))}function O(e,t){const{exact:r,status:n,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(T(t.options.mutationKey)!==T(i))return!1}else if(!E(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function C(e,t){return(t?.queryKeyHashFn||T)(e)}function T(e){return JSON.stringify(e,(e,t)=>P(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function E(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(r=>E(e[r],t[r]))}var F=Object.prototype.hasOwnProperty;function A(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=k(e)&&k(t);if(!(n||P(e)&&P(t)))return t;const s=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),a=i.length,o=n?new Array(a):{};let c=0;for(let l=0;l<a;l++){const a=n?l:i[l],u=e[a],h=t[a];if(u===h){o[a]=u,(n?l<s:F.call(e,a))&&c++;continue}if(null===u||null===h||"object"!=typeof u||"object"!=typeof h){o[a]=h;continue}const d=A(u,h,r+1);o[a]=d,d===u&&c++}return s===a&&c===s?e:o}function x(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function k(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function P(e){if(!D(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!D(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function D(e){return"[object Object]"===Object.prototype.toString.call(e)}function M(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?A(e,t):t}function q(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Q(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var L=/* @__PURE__ */Symbol();function U(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==L?e.queryFn:()=>Promise.reject(/* @__PURE__ */new Error(`Missing queryFn: '${e.queryHash}'`))}function _(e,t){return"function"==typeof e?e(...t):!!e}var j=/* @__PURE__ */(()=>{let e=()=>y;return{isServer:()=>e(),setIsServer(t){e=t}}})(),N=class{constructor(){this.listeners=/* @__PURE__ */new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},$=new class extends N{#r;#n;#s;constructor(){super(),this.#s=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#s=e,this.#n?.(),this.#n=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#r!==e&&(this.#r=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#r?this.#r:"hidden"!==globalThis.document?.visibilityState}},z=function(e){setTimeout(e,0)},H=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},s=z;const i=n=>{t?e.push(n):s(()=>{r(n)})};return{batch:i=>{let a;t++;try{a=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&s(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return a},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{s=e}}}(),V=new class extends N{#i=!0;#n;#s;constructor(){super(),this.#s=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#n||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#s=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#i!==e&&(this.#i=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#i}};function G(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}function W(e){return Math.min(1e3*2**e,3e4)}function Z(e){return"online"!==(e??"online")||V.isOnline()}var K=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function B(e){let t,r=!1,n=0;const s=G(),i=()=>"pending"!==s.status,a=()=>$.isFocused()&&("always"===e.networkMode||V.isOnline())&&e.canRun(),o=()=>Z(e.networkMode)&&e.canRun(),c=e=>{i()||(t?.(),s.resolve(e))},l=e=>{i()||(t?.(),s.reject(e))},u=()=>new Promise(r=>{t=e=>{(i()||a())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,i()||e.onContinue?.()}),h=()=>{if(i())return;let t;const s=0===n?e.initialPromise:void 0;try{t=s??e.fn()}catch(o){t=Promise.reject(o)}Promise.resolve(t).then(c).catch(t=>{if(i())return;const s=e.retry??(j.isServer()?0:3),o=e.retryDelay??W,c="function"==typeof o?o(n,t):o,d=!0===s||"number"==typeof s&&n<s||"function"==typeof s&&s(n,t);var f;!r&&d?(n++,e.onFail?.(n,t),(f=c,new Promise(e=>{m.setTimeout(e,f)})).then(()=>a()?void 0:u()).then(()=>{r?l(t):h()})):l(t)})};return{promise:s,status:()=>s.status,cancel:t=>{if(!i()){const r=new K(t);l(r),e.onCancel?.(r)}},continue:()=>(t?.(),s),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:o,start:()=>(o()?h():u().then(h),s)}}var J=class{#a;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),w(this.gcTime)&&(this.#a=m.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(j.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#a&&(m.clearTimeout(this.#a),this.#a=void 0)}};function Y(e){return{onFetch:(t,r)=>{const n=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let o={pages:[],pageParams:[]},c=0;const l=async()=>{let r=!1;const l=e=>{!function(e,r,n){let s,i=!1;Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??=t.signal,i||(i=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)})}(e,0,()=>r=!0)},u=U(t.options,t.fetchOptions),h=async(e,n,s)=>{if(r)return Promise.reject(t.signal.reason);if(null==n&&e.pages.length)return Promise.resolve(e);const i=await u((()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:s?"backward":"forward",meta:t.options.meta};return l(e),e})()),{maxPages:a}=t.options,o=s?Q:q;return{pages:o(e.pages,i,a),pageParams:o(e.pageParams,n,a)}};if(s&&i.length){const e="backward"===s,t=e?ee:X,r={pages:i,pageParams:a};o=await h(r,t(n,r),e)}else{const t=e??i.length;do{const e=0===c?a[0]??n.initialPageParam:X(n,o);if(c>0&&null==e)break;o=await h(o,e),c++}while(c<t)}return o};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=l}}}function X(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function ee(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function te(e,t){return!!t&&null!=X(e,t)}function re(e,t){return!(!t||!e.getPreviousPageParam)&&null!=ee(e,t)}var ne=class extends J{#o;#c;#l;#u;#h;#d;#f;#p;constructor(e){super(),this.#p=!1,this.#f=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#h=e.client,this.#u=this.#h.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#c=ae(this.options),this.state=e.state??this.#c,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#o}get promise(){return this.#d?.promise}setOptions(e){if(this.options={...this.#f,...e},e?._type&&(this.#o=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=ae(this.options);void 0!==e.data&&(this.setState(ie(e.data,e.dataUpdatedAt)),this.#c=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#u.remove(this)}setData(e,t){const r=M(this.state.data,e,this.options);return this.#m({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e){this.#m({type:"setState",state:e})}cancel(e){const t=this.#d?.promise;return this.#d?.cancel(e),t?t.then(g).catch(g):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#c}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==R(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===L||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===S(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!b(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#d?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#d?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#u.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#d&&(this.#p||this.#y()?this.#d.cancel({revert:!0}):this.#d.cancelRetry()),this.scheduleGc()),this.#u.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#y(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#m({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#d?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#d)return this.#d.continueRetry(),this.#d.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const r=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#p=!0,r.signal)})},s=()=>{const e=U(this.options,t),r=(()=>{const e={client:this.#h,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return this.#p=!1,this.options.persister?this.options.persister(e,r,this):e(r)},i=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#h,state:this.state,fetchFn:s};return n(e),e})();("infinite"===this.#o?Y(this.options.pages):this.options.behavior)?.onFetch(i,this),this.#l=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#m({type:"fetch",meta:i.fetchOptions?.meta}),this.#d=B({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:e=>{e instanceof K&&e.revert&&this.setState({...this.#l,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#m({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#m({type:"pause"})},onContinue:()=>{this.#m({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0});try{const e=await this.#d.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#u.config.onSuccess?.(e,this),this.#u.config.onSettled?.(e,this.state.error,this),e}catch(a){if(a instanceof K){if(a.silent)return this.#d.promise;if(a.revert){if(void 0===this.state.data)throw a;return this.state.data}}throw this.#m({type:"error",error:a}),this.#u.config.onError?.(a,this),this.#u.config.onSettled?.(this.state.data,a,this),a}finally{this.scheduleGc()}}#m(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...se(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...ie(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#l=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),H.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#u.notify({query:this,type:"updated",action:e})})}};function se(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Z(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function ie(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ae(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var oe=class extends N{constructor(e,t){super(),this.options=t,this.#h=e,this.#g=null,this.#v=G(),this.bindMethods(),this.setOptions(t)}#h;#w=void 0;#b=void 0;#S=void 0;#R;#I;#v;#g;#O;#C;#T;#E;#F;#A;#x=/* @__PURE__ */new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#w.addObserver(this),ce(this.#w,this.options)?this.#k():this.updateResult(),this.#P())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return le(this.#w,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return le(this.#w,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=/* @__PURE__ */new Set,this.#D(),this.#M(),this.#w.removeObserver(this)}setOptions(e){const t=this.options,r=this.#w;if(this.options=this.#h.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof R(this.options.enabled,this.#w))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#q(),this.#w.setOptions(this.options),t._defaulted&&!x(this.options,t)&&this.#h.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#w,observer:this});const n=this.hasListeners();n&&ue(this.#w,r,this.options,t)&&this.#k(),this.updateResult(),!n||this.#w===r&&R(this.options.enabled,this.#w)===R(t.enabled,this.#w)&&S(this.options.staleTime,this.#w)===S(t.staleTime,this.#w)||this.#Q();const s=this.#L();!n||this.#w===r&&R(this.options.enabled,this.#w)===R(t.enabled,this.#w)&&s===this.#A||this.#U(s)}getOptimisticResult(e){const t=this.#h.getQueryCache().build(this.#h,e),r=this.createResult(t,e);var n;return n=r,x(this.getCurrentResult(),n)||(this.#S=r,this.#I=this.options,this.#R=this.#w.state),r}getCurrentResult(){return this.#S}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#v.status||this.#v.reject(/* @__PURE__ */new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#x.add(e)}getCurrentQuery(){return this.#w}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#h.defaultQueryOptions(e),r=this.#h.getQueryCache().build(this.#h,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#k({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#S))}#k(e){this.#q();let t=this.#w.fetch(this.options,e);return e?.throwOnError||(t=t.catch(g)),t}#Q(){this.#D();const e=S(this.options.staleTime,this.#w);if(j.isServer()||this.#S.isStale||!w(e))return;const t=b(this.#S.dataUpdatedAt,e)+1;this.#E=m.setTimeout(()=>{this.#S.isStale||this.updateResult()},t)}#L(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#w):this.options.refetchInterval)??!1}#U(e){this.#M(),this.#A=e,!j.isServer()&&!1!==R(this.options.enabled,this.#w)&&w(this.#A)&&0!==this.#A&&(this.#F=m.setInterval(()=>{(this.options.refetchIntervalInBackground||$.isFocused())&&this.#k()},this.#A))}#P(){this.#Q(),this.#U(this.#L())}#D(){void 0!==this.#E&&(m.clearTimeout(this.#E),this.#E=void 0)}#M(){void 0!==this.#F&&(m.clearInterval(this.#F),this.#F=void 0)}createResult(e,t){const r=this.#w,n=this.options,s=this.#S,i=this.#R,a=this.#I,o=e!==r?e.state:this.#b,{state:c}=e;let l,u={...c},h=!1;if(t._optimisticResults){const s=this.hasListeners(),i=!s&&ce(e,t),a=s&&ue(e,r,t,n);(i||a)&&(u={...u,...se(c.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:d,errorUpdatedAt:f,status:p}=u;l=u.data;let m=!1;if(void 0!==t.placeholderData&&void 0===l&&"pending"===p){let e;s?.isPlaceholderData&&t.placeholderData===a?.placeholderData?(e=s.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#T?.state.data,this.#T):t.placeholderData,void 0!==e&&(p="success",l=M(s?.data,e,t),h=!0)}if(t.select&&void 0!==l&&!m)if(s&&l===i?.data&&t.select===this.#O)l=this.#C;else try{this.#O=t.select,l=t.select(l),l=M(s?.data,l,t),this.#C=l,this.#g=null}catch(I){this.#g=I}this.#g&&(d=this.#g,l=this.#C,f=Date.now(),p="error");const y="fetching"===u.fetchStatus,g="pending"===p,v="error"===p,w=g&&y,b=void 0!==l,S={status:p,fetchStatus:u.fetchStatus,isPending:g,isSuccess:"success"===p,isError:v,isInitialLoading:w,isLoading:w,data:l,dataUpdatedAt:u.dataUpdatedAt,error:d,errorUpdatedAt:f,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:u.dataUpdateCount>o.dataUpdateCount||u.errorUpdateCount>o.errorUpdateCount,isFetching:y,isRefetching:y&&!g,isLoadingError:v&&!b,isPaused:"paused"===u.fetchStatus,isPlaceholderData:h,isRefetchError:v&&b,isStale:he(e,t),refetch:this.refetch,promise:this.#v,isEnabled:!1!==R(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=void 0!==S.data,n="error"===S.status&&!t,s=e=>{n?e.reject(S.error):t&&e.resolve(S.data)},i=()=>{s(this.#v=S.promise=G())},a=this.#v;switch(a.status){case"pending":e.queryHash===r.queryHash&&s(a);break;case"fulfilled":(n||S.data!==a.value)&&i();break;case"rejected":n&&S.error===a.reason||i()}}return S}updateResult(){const e=this.#S,t=this.createResult(this.#w,this.options);this.#R=this.#w.state,this.#I=this.options,void 0!==this.#R.data&&(this.#T=this.#w),x(t,e)||(this.#S=t,this.#_({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#x.size)return!0;const n=new Set(r??this.#x);return this.options.throwOnError&&n.add("error"),Object.keys(this.#S).some(t=>{const r=t;return this.#S[r]!==e[r]&&n.has(r)})})()}))}#q(){const e=this.#h.getQueryCache().build(this.#h,this.options);if(e===this.#w)return;const t=this.#w;this.#w=e,this.#b=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#P()}#_(e){H.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#S)}),this.#h.getQueryCache().notify({query:this.#w,type:"observerResultsUpdated"})})}};function ce(e,t){return function(e,t){return!1!==R(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===R(t.retryOnMount,e))}(e,t)||void 0!==e.state.data&&le(e,t,t.refetchOnMount)}function le(e,t,r){if(!1!==R(t.enabled,e)&&"static"!==S(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&he(e,t)}return!1}function ue(e,t,r,n){return(e!==t||!1===R(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&he(e,r)}function he(e,t){return!1!==R(t.enabled,e)&&e.isStaleByTime(S(t.staleTime,e))}var de=e(void 0),fe=e=>{const t=c(de);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},pe=({client:e,children:r})=>(t(()=>(e.mount(),()=>{e.unmount()}),[e]),/* @__PURE__ */a(de.Provider,{value:e,children:r})),me=e(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),ye=e(!1),ge=(ye.Provider,(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()}));function ve(e,n,i){const a=c(ye),l=c(me),u=fe(i),h=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(h);const d=u.getQueryCache().get(h.queryHash),f=!1!==e.subscribed;h._optimisticResults=a?"isRestoring":f?"optimistic":void 0,(e=>{if(e.suspense){const t=1e3,r=e=>"static"===e?e:Math.max(e??t,t),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>r(n(...e)):r(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(h),((e,t,r)=>{const n=r?.state.error&&"function"==typeof e.throwOnError?_(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))})(h,l,d),(e=>{t(()=>{e.clearReset()},[e])})(l);const p=!u.getQueryCache().get(h.queryHash),[m]=r(()=>new n(u,h)),y=m.getOptimisticResult(h),v=!a&&f;if(s(o(e=>{const t=v?m.subscribe(H.batchCalls(e)):g;return m.updateResult(),t},[m,v]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),t(()=>{m.setOptions(h)},[h,m]),((e,t)=>e?.suspense&&t.isPending)(h,y))throw ge(h,m,l);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(s&&void 0===e.data||_(r,[e.error,n])))({result:y,errorResetBoundary:l,throwOnError:h.throwOnError,query:d,suspense:h.suspense}))throw y.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(h,y),h.experimental_prefetchInRender&&!j.isServer()&&((e,t)=>e.isLoading&&e.isFetching&&!t)(y,a)&&(p?ge(h,m,l):d?.promise)?.catch(g).finally(()=>{m.updateResult()}),h.notifyOnChangeProps?y:m.trackResult(y)}function we(e,t){return ve(e,oe,t)}function be({title:e,children:t}){/* @__PURE__ */
|
|
2
|
+
return a("div",{className:"mx-auto mt-24 w-fit max-w-xl space-y-8",children:[/* @__PURE__ */a("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mx-auto h-64 w-fit text-[#ff4800]",width:"800",height:"469.317",viewBox:"0 0 800 469.317",role:"img","aria-label":"Error illustration",children:/* @__PURE__ */a("g",{transform:"translate(-443.142 -257.876)",children:[
|
|
3
|
+
/* @__PURE__ */a("path",{d:"M898.247,664.1H371.155a30.276,30.276,0,0,1-30.241-30.241V352.525a30.276,30.276,0,0,1,30.241-30.241H898.247a30.276,30.276,0,0,1,30.241,30.241V633.862A30.276,30.276,0,0,1,898.247,664.1Z",transform:"translate(308.867 25.517)",fill:"#fff"}),
|
|
4
|
+
/* @__PURE__ */a("path",{d:"M557.334,341.82H30.241A30.276,30.276,0,0,1,0,311.578V30.241A30.276,30.276,0,0,1,30.241,0H557.334a30.276,30.276,0,0,1,30.241,30.241V311.578A30.276,30.276,0,0,1,557.334,341.82ZM30.241,1.833A28.441,28.441,0,0,0,1.833,30.241V311.578a28.441,28.441,0,0,0,28.409,28.409H557.334a28.441,28.441,0,0,0,28.409-28.409V30.241A28.441,28.441,0,0,0,557.334,1.833Z",transform:"matrix(0.999, -0.035, 0.035, 0.999, 643.995, 358.158)",fill:"#d6d6e3"}),
|
|
5
|
+
/* @__PURE__ */a("path",{d:"M754.171,630.2l-509.5-135.058a30.276,30.276,0,0,1-21.483-36.981L295.28,186.212a30.276,30.276,0,0,1,36.981-21.483l509.5,135.058a30.276,30.276,0,0,1,21.483,36.981L791.152,608.712A30.276,30.276,0,0,1,754.171,630.2Z",transform:"translate(220.958 94.156)",fill:"#f2f2f2"}),
|
|
6
|
+
/* @__PURE__ */a("path",{d:"M775.247,705.1H248.155a30.276,30.276,0,0,1-30.241-30.241V393.525a30.276,30.276,0,0,1,30.241-30.241H775.247a30.276,30.276,0,0,1,30.241,30.242V674.862A30.275,30.275,0,0,1,775.247,705.1Z",transform:"translate(319.149 22.09)",fill:"#fff"}),
|
|
7
|
+
/* @__PURE__ */a("path",{d:"M638.653,701.841H298.272c-.426,0-.852-.009-1.272-.033l160.985-90.663c3.065-1.762,9.943-2.382,15.361-1.385a13.912,13.912,0,0,1,4.26,1.385l108.041,60.842,5.176,2.911Z",transform:"translate(312.538 1.526)",fill:"#e6e6e6"}),
|
|
8
|
+
/* @__PURE__ */a("path",{d:"M760.145,704.279h-294.4l57.049-26.943L526.9,675.4l74.341-35.111c4.874-2.3,16.6-2.445,22.328-.434q.577.206,1.071.434Z",transform:"translate(298.432 -0.912)",fill:"#e6e6e6"}),
|
|
9
|
+
/* @__PURE__ */a("path",{d:"M248.322,365.284a28.441,28.441,0,0,0-28.409,28.409V675.03a28.441,28.441,0,0,0,28.409,28.409H775.415a28.441,28.441,0,0,0,28.409-28.409V393.693a28.441,28.441,0,0,0-28.409-28.409Z",transform:"translate(318.982 21.923)",fill:"#3f3d56"}),
|
|
10
|
+
/* @__PURE__ */a("path",{d:"M777.254,685.116H250.161a8.257,8.257,0,0,1-8.248-8.248V395.532a8.257,8.257,0,0,1,8.248-8.248H777.254a8.257,8.257,0,0,1,8.248,8.248V676.869a8.257,8.257,0,0,1-8.248,8.248Zm-527.092-296a6.422,6.422,0,0,0-6.415,6.415V676.869a6.422,6.422,0,0,0,6.415,6.415H777.254a6.422,6.422,0,0,0,6.415-6.415V395.532a6.422,6.422,0,0,0-6.415-6.415Z",transform:"translate(317.143 20.083)",fill:"#ccc"}),
|
|
11
|
+
/* @__PURE__ */a("ellipse",{cx:"71.849",cy:"89.934",rx:"71.849",ry:"89.934",transform:"translate(928.82 428.806)",fill:"#f2f2f2"}),
|
|
12
|
+
/* @__PURE__ */a("path",{d:"M505.77,325.365h.2l3.553,203.7h-7.5Z",transform:"translate(495.097 175.29)",fill:"#ccc"}),
|
|
13
|
+
/* @__PURE__ */a("path",{d:"M736.239,636.154h0a1.776,1.776,0,0,1-.744,2.4l-10.3,5.425-1.655-3.144,10.3-5.425A1.776,1.776,0,0,1,736.239,636.154Z",transform:"translate(276.882 -0.641)",fill:"#ccc"}),
|
|
14
|
+
/* @__PURE__ */a("ellipse",{cx:"71.849",cy:"89.934",rx:"71.849",ry:"89.934",transform:"translate(722.256 428.806)",fill:"#f2f2f2"}),
|
|
15
|
+
/* @__PURE__ */a("path",{d:"M510.532,627.307h0a1.777,1.777,0,0,0-2.4-.744l-7.194,3.788-2.464-141.27h-.2l-3.75,203.7h7.5l-1.02-58.456,8.78-4.622A1.777,1.777,0,0,0,510.532,627.307Z",transform:"translate(296.026 11.574)",fill:"#ccc"}),
|
|
16
|
+
/* @__PURE__ */a("path",{d:"M626.318,603.854a2.25,2.25,0,0,0-3.04-.943l-9.116,4.8-3.122-179h-.25l-4.752,258.115h9.5l-1.292-74.07,11.125-5.857a2.251,2.251,0,0,0,.943-3.04Z",transform:"translate(286.704 16.621)",fill:"#3f3d56"}),
|
|
17
|
+
/* @__PURE__ */a("path",{d:"M777.247,703.1H250.155a30.276,30.276,0,0,1-30.241-30.241V391.525a30.276,30.276,0,0,1,30.241-30.241H777.247a30.276,30.276,0,0,1,30.241,30.241V672.862A30.276,30.276,0,0,1,777.247,703.1Z",transform:"translate(318.982 22.257)",fill:"#fff"}),
|
|
18
|
+
/* @__PURE__ */a("path",{d:"M671.188,708.113h-370.8c-.464,0-.928-.01-1.386-.036l175.372-98.766c3.339-1.919,10.831-2.595,16.734-1.509a15.16,15.16,0,0,1,4.641,1.509l117.7,66.28,5.639,3.172Z",transform:"translate(288.046 16.168)",fill:"#f2f2f2"}),
|
|
19
|
+
/* @__PURE__ */a("path",{d:"M788.457,708.163H467.743l62.148-29.351,4.472-2.114,80.984-38.25c5.309-2.507,18.082-2.663,24.324-.473q.629.224,1.166.473Z",transform:"translate(287.761 16.118)",fill:"#f2f2f2"}),
|
|
20
|
+
/* @__PURE__ */a("path",{d:"M777.247,703.1H250.155a30.276,30.276,0,0,1-30.241-30.241V391.525a30.276,30.276,0,0,1,30.241-30.241H777.247a30.276,30.276,0,0,1,30.241,30.241V672.862A30.276,30.276,0,0,1,777.247,703.1ZM250.155,363.117a28.441,28.441,0,0,0-28.409,28.409V672.862a28.441,28.441,0,0,0,28.409,28.409H777.247a28.441,28.441,0,0,0,28.409-28.409V391.525a28.441,28.441,0,0,0-28.409-28.409Z",transform:"translate(318.982 22.257)",fill:"#3f3d56"}),
|
|
21
|
+
/* @__PURE__ */a("g",{transform:"translate(696.754 297.373)",children:[
|
|
22
|
+
/* @__PURE__ */a("ellipse",{cx:"61.798",cy:"61.798",rx:"61.798",ry:"61.798",transform:"translate(215.662 36.955)",fill:"#ff6584"}),
|
|
23
|
+
/* @__PURE__ */a("ellipse",{cx:"78.271",cy:"97.971",rx:"78.271",ry:"97.971",transform:"translate(225.025 127.808)",fill:"#e6e6e6"}),
|
|
24
|
+
/* @__PURE__ */a("path",{d:"M508.105,323.365h.215l3.87,221.909h-8.171Z",transform:"translate(-204.593 -117.286)",fill:"#ccc"}),
|
|
25
|
+
/* @__PURE__ */a("path",{d:"M739.374,634.239h0a1.935,1.935,0,0,1-.811,2.614l-11.226,5.91-1.8-3.425,11.226-5.91A1.935,1.935,0,0,1,739.374,634.239Z",transform:"translate(-422.513 -281.249)",fill:"#ccc"}),
|
|
26
|
+
/* @__PURE__ */a("ellipse",{cx:"78.271",cy:"97.971",rx:"78.271",ry:"97.971",transform:"translate(0 127.808)",fill:"#e6e6e6"}),
|
|
27
|
+
/* @__PURE__ */a("path",{d:"M513.962,637.661h0a1.936,1.936,0,0,0-2.614-.811l-7.837,4.126-2.684-153.9h-.215l-4.085,221.91H504.7l-1.111-63.68,9.565-5.036A1.936,1.936,0,0,0,513.962,637.661Z",transform:"translate(-422.126 -281.002)",fill:"#ccc"}),
|
|
28
|
+
/* @__PURE__ */a("path",{d:"M612.666,280.653c54.774,0,99.294,103.207,99.294,171.768s-44.4,124.14-99.177,124.14-99.177-55.579-99.177-124.14S557.892,280.653,612.666,280.653Z",transform:"translate(-422.155 -280.653)",fill:"currentColor"}),
|
|
29
|
+
/* @__PURE__ */a("path",{d:"M630.131,617.508a2.452,2.452,0,0,0-3.312-1.027l-9.931,5.228-3.4-195h-.272L608.039,707.89h10.353l-1.408-80.69,12.119-6.38A2.452,2.452,0,0,0,630.131,617.508Z",transform:"translate(-422.315 -280.9)",fill:"#3f3d56"})]})]})}),/* @__PURE__ */a("div",{className:"space-y-4",children:[/* @__PURE__ */a("h4",{className:"text-foreground text-center text-lg font-semibold",children:e}),/* @__PURE__ */a("p",{className:"text-muted-foreground text-center",children:t})]})]})}var Se=({organizationId:e})=>/* @__PURE__ */a("a",{className:"font-medium text-blue-500",href:d.ORGANIZATION_SETTINGS_INTEGRATION(e),target:"_blank",rel:"noreferrer",children:"Guide"});function Re({organizationId:e,errorType:t,errorMessage:r}){/* @__PURE__ */
|
|
30
|
+
return a(be,"custom-auth-invalid"===t?{title:"Setup needed",children:["Custom auth is enabled. Pass ",
|
|
31
|
+
/* @__PURE__ */a("code",{children:"uid"}),", ",
|
|
32
|
+
/* @__PURE__ */a("code",{children:"fname"}),", and ",
|
|
33
|
+
/* @__PURE__ */a("code",{children:"lname"})," as props to QratiConnect to complete setup. See our ",
|
|
34
|
+
/* @__PURE__ */a(Se,{organizationId:e})," for details."]}:"service-unavailable"===t?{title:"We'll be right back!",children:["Our service is getting a quick tune-up. Hang tight — great things are coming your way soon! See our"," ",
|
|
35
|
+
/* @__PURE__ */a(Se,{organizationId:e})," if you need help in the meantime."]}:"generic-error"===t&&r?{title:"Setup needed",children:[r," See our ",
|
|
36
|
+
/* @__PURE__ */a(Se,{organizationId:e})," for details."]}:"page-not-registered"===t?{title:"Page not registered",children:["Add the current page URL in Allowed URLs under"," ",
|
|
37
|
+
/* @__PURE__ */a("a",{className:"font-medium text-blue-500",href:d.ORGANIZATION_SETTINGS(e),target:"_blank",rel:"noreferrer",children:"Organization Settings"})," ","⇨ Integration Settings. See our ",
|
|
38
|
+
/* @__PURE__ */a(Se,{organizationId:e})," for details."]}:{title:"Heads up",children:["Something needs attention. See our ",
|
|
39
|
+
/* @__PURE__ */a(Se,{organizationId:e})," for details or contact Qrati support."]})}var Ie='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',Oe=e=>e.trim().replace(/\s+/g," "),Ce=e=>e?.replace(/\/+$/,"")||"",Te=e=>{if(!e)return Ie;const t=Oe("string"==typeof e?e:e.fontFamily||""),r="string"==typeof e?void 0:e.customFontName;return t&&"system"!==t?"custom"===t?`"${r||"QratiCustomFont"}", ${Ie}`:`"${t}", ${Ie}`:"inherit"};function Ee(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Ee(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Fe(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Ee(e))&&(n&&(n+=" "),n+=t);return n}var Ae=(...e)=>Fe(e.filter(Boolean)),xe=e=>{const t=e.replace(/#/g,"");return(299*parseInt(t.slice(0,2),16)+587*parseInt(t.slice(2,4),16)+114*parseInt(t.slice(4,6),16))/1e3>=128?"#000000":"#FFFFFF"},ke="px",Pe=(e,t="light")=>{const r=e?.themeSettings?.colors??{},n=e?.themeSettings?.border,s=e?.themeSettings?.shadow,i=e?.integrationSettings,a="dark"===t,o=(e,t,n,s)=>{const i=a?s:n;return r[a?t:e]||i},c=o("primaryLight","primaryDark","#ff4800","#ff4800");return{"--background":o("backgroundLight","backgroundDark","#fafafa","#0a0a0a"),"--foreground":o("foregroundLight","foregroundDark","#252629","#f5f5f5"),"--muted":o("mutedLight","mutedDark","#e5e5e5","#171717"),"--muted-foreground":o("mutedForegroundLight","mutedForegroundDark","#484848","#b5b8bb"),"--border":o("borderLight","borderDark","#dddddd","#353538"),"--input":o("inputLight","inputDark","#f5f5f5","#171717"),"--primary":c,"--primary-foreground":xe(c),"--popover":o("popoverLight","popoverDark","#f5f5f5","#171717"),"--popover-foreground":o("popoverForegroundLight","popoverForegroundDark","#252629","#fafafa"),"--info":o("infoLight","infoDark","#2563eb","#5b8def"),"--warning":o("warningLight","warningDark","#f59e0b","#fbbf24"),"--success":o("successLight","successDark","#10b981","#34d399"),"--destructive":o("destructiveLight","destructiveDark","#ef4444","#f87171"),"--border-width":`${n?.width??"1"}${n?.unit??"px"}`,"--radius":`${n?.radius??"10"}${n?.unit??"px"}`,"--shadow-outer-horizontal-offset":`${s?.outerHorizontalOffset??"0"}${s?.unit??ke}`,"--shadow-outer-vertical-offset":`${s?.outerVerticalOffset??"0"}${s?.unit??ke}`,"--shadow-outer-blur":`${s?.outerBlur??"0"}${s?.unit??ke}`,"--shadow-outer-spread":`${s?.outerSpread??"0"}${s?.unit??ke}`,...i?.fontFamily&&"system"!==i.fontFamily?{"--font-family":Te(i)}:{}}},De=async e=>{try{return await e()}catch{return null}},Me=(e,t=1)=>{const r=(new TextEncoder).encode(e),n=3432918353,s=461845907;let i=t>>>0;const a=Math.floor(r.length/4),o=new DataView(r.buffer,r.byteOffset,r.byteLength);for(let h=0;h<a;h++){let e=o.getUint32(4*h,!0);e=Math.imul(e,n),e=e<<15|e>>>17,e=Math.imul(e,s),i^=e,i=i<<13|i>>>19,i=Math.imul(i,5)+3864292196>>>0}let c=0;const l=4*a,u=3&r.length;return 3===u&&(c^=r[l+2]<<16),u>=2&&(c^=r[l+1]<<8),u>=1&&(c^=r[l],c=Math.imul(c,n),c=c<<15|c>>>17,c=Math.imul(c,s),i^=c),i^=r.length,i^=i>>>16,i=Math.imul(i,2246822507)>>>0,i^=i>>>13,i=Math.imul(i,3266489909)>>>0,i^=i>>>16,i.toString(16).padStart(8,"0")},qe=e=>{if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(qe).join(",")}]`;const t=Object.keys(e).sort(),r=[];for(const n of t){const t=e[n];void 0!==t&&r.push(`${qe(n)}:${qe(t)}`)}return`{${r.join(",")}}`},Qe=async({debug:e=!1}={})=>{const t=performance.now(),r=await De(async()=>window.navigator.userAgentData&&"function"==typeof window.navigator.userAgentData.getHighEntropyValues?qe(await window.navigator.userAgentData.getHighEntropyValues(["architecture","bitness","platformVersion","model","fullVersionList"])):null),n=await De(()=>(()=>{const e=document.createElement("video"),t=["video/webm","video/mp4","video/ogg","audio/mp4","audio/webm","audio/ogg","audio/mpeg"],r={};for(const n of t){const t=e.canPlayType(n);r[n]=""===t?"no":t}return qe(r)})()),s=await De(()=>(()=>{const e=["monospace","serif","sans-serif"],t=["Arial","Helvetica","Verdana","Trebuchet MS","Comic Sans MS","Georgia","Times New Roman","Courier New","Segoe UI","Roboto","Open Sans","Noto Sans","system-ui","-apple-system","BlinkMacSystemFont"],r=document.createElement("span");r.style.fontSize="72px",r.style.position="absolute",r.style.visibility="hidden",r.style.whiteSpace="nowrap",r.textContent="mmmmmmmmmwwwwwww",document.body.appendChild(r);const n={};for(const i of e)r.style.fontFamily=i,n[i]=r.offsetWidth;const s=[];for(const i of t){let t=!1;for(const a of e)if(r.style.fontFamily=`"${i}", ${a}`,r.offsetWidth!==n[a]){s.push(i),t=!0;break}t||(r.style.fontFamily=`"${i}"`,r.offsetWidth!==n.monospace&&r.offsetWidth!==n.serif&&s.push(i))}return document.body.removeChild(r),s.length?s.sort().join(","):null})()),i=await De(()=>new Intl.NumberFormat(window.navigator.languages?.[0]||"en").resolvedOptions().numberingSystem),a=window.navigator.languages?Array.from(window.navigator.languages).join(","):window.navigator.language||null,o=Intl.DateTimeFormat().resolvedOptions(),c=o.timeZone,l=/* @__PURE__ */(new Date).getTimezoneOffset(),u=o.calendar||null,h=void 0!==o.hour12?o.hour12?"h12":"h23":o.hourCycle||null,d=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"reduce":"no-preference",f=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",p=window.matchMedia("(prefers-contrast: more)").matches?"more":window.matchMedia("(prefers-contrast: less)").matches?"less":window.matchMedia("(prefers-contrast: custom)").matches?"custom":"no-preference",m=window.matchMedia("(prefers-reduced-transparency: reduce)").matches?"reduce":"no-preference",y=window.matchMedia("(forced-colors: active)").matches?"active":null,g="number"==typeof window.devicePixelRatio?Math.round(100*window.devicePixelRatio)/100:null,{pixelDepth:v,colorDepth:w}=window.screen,b="ontouchstart"in window||window.navigator.maxTouchPoints>0,S=await De(()=>(async e=>{const t=document.createElement("canvas");t.width=280,t.height=100;const r=t.getContext("2d"),n=r.createLinearGradient(0,0,280,100);return n.addColorStop(0,"#f60"),n.addColorStop(.4,"#09f"),n.addColorStop(.7,"#f09"),n.addColorStop(1,"#0f9"),r.fillStyle=n,r.fillRect(0,0,280,100),r.font='18px "Arial","Helvetica","DejaVu Sans",sans-serif',r.fillStyle="#000",r.textBaseline="alphabetic",r.fillText("Fingerprint ¼½¾™©®∆π∑€¶§",12,45),r.font='bold 22px "Georgia","Times New Roman",serif',r.fillStyle="#222",r.fillText("🦊🐱🚀 2026",12,78),r.globalAlpha=.7,r.fillStyle="rgba(255, 80, 0, 0.35)",r.fillRect(180,20,80,60),r.beginPath(),r.arc(220,50,32,0,2*Math.PI),r.strokeStyle="#fff",r.lineWidth=4,r.stroke(),r.beginPath(),r.moveTo(30,85),r.quadraticCurveTo(140,20,240,85),r.strokeStyle="#00f",r.lineWidth=3,r.stroke(),e&&(t.style.border="1px solid #444",document.body.appendChild(t)),Me(t.toDataURL("image/png"))})(e)),R=await De(()=>(async()=>{const e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl"),r=t.getExtension("WEBGL_debug_renderer_info");return Me(qe({vendor:r?t.getParameter(r.UNMASKED_VENDOR_WEBGL):t.getParameter(t.VENDOR),renderer:r?t.getParameter(r.UNMASKED_RENDERER_WEBGL):t.getParameter(t.RENDERER)}))})()),I=await De(()=>(async e=>{const t=await navigator.gpu.requestAdapter({powerPreference:"high-performance"}),r={vendor:t.info?.vendor??"",architecture:t.info?.architecture??"",description:t.info?.description??"",features:Array.from(t.features).sort(),limits:Array.from(t.limits).sort()};if(e){const e=document.createElement("pre");e.style.margin="10px 0",e.style.padding="10px",e.style.border="1px solid #444",e.style.background="#111",e.style.color="#0f8",e.style.fontFamily="monospace",e.textContent=`WebGPU:\n${JSON.stringify(r,null,2)}`,document.body.appendChild(e)}return Me(qe(r))})(e)),O=await De(()=>(async e=>{const t=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,6e3,44100),r=t.createOscillator();r.type="sawtooth",r.frequency.value=8800;const n=t.createDynamicsCompressor();n.threshold.value=-48,n.knee.value=30,n.ratio.value=14,n.attack.value=0,n.release.value=.3;const s=t.createGain();s.gain.value=.4,r.connect(n),n.connect(s),s.connect(t.destination),r.start(0);const i=(await t.startRendering()).getChannelData(0);let a=0,o=0;for(let l=3e3;l<5800;l+=2){const e=i[l];a=31*a+Math.floor(1e5*(e+1))|0,o=Math.imul(o^Math.floor(98765*e),2246822519)}const c=a>>>0^o>>>0;if(e){const e=document.createElement("canvas");e.width=500,e.height=120,e.style.border="1px solid #444",e.style.margin="10px 0",e.title="Audio buffer snippet (4500–5000 samples)";const t=e.getContext("2d");t.fillStyle="#111",t.fillRect(0,0,e.width,e.height),t.font="14px monospace",t.fillStyle="#0f8",t.textAlign="left",t.fillText("AudioID",10,20),t.strokeStyle="#0f8",t.lineWidth=1.5,t.beginPath();const r=Array.from(i.slice(4500,5e3)),n=e.width/r.length;for(let s=0;s<r.length;s++){const i=s*n,a=(r[s]+1)/2*e.height;0===s?t.moveTo(i,a):t.lineTo(i,a)}t.stroke(),document.body.appendChild(e)}return Me(c.toString(16))})(e)),C=window.screen.width&&window.screen.height?(window.screen.width/window.screen.height).toFixed(4):null,T=await De(()=>window.screen.orientation?.type||null),E=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,F=E&&E.type||null,A=E?.effectiveType||null,x=!0===E?.saveData,k="boolean"==typeof window.navigator.pdfViewerEnabled?window.navigator.pdfViewerEnabled:null,P="boolean"==typeof window.navigator.webdriver?window.navigator.webdriver:null,D=await De(()=>"function"!=typeof Intl.supportedValuesOf?null:Intl.supportedValuesOf("calendar").join(",")),M=await De(async()=>{if(!window.navigator.permissions||"function"!=typeof window.navigator.permissions.query)return null;const e=["geolocation","notifications"],t={};for(const r of e)try{t[r]=(await window.navigator.permissions.query({name:r})).state}catch{t[r]="unsupported"}return qe(t)}),q={vendor:window.navigator.vendor||null,platform:window.navigator.platform||null,userAgentHighEntropy:r||null,mediaCodecs:n||null,fonts:s,numberingSystem:i,languages:a,timezone:c,timezoneOffset:l,intlCalendar:u,hourCycle:h,reducedMotion:d,colorScheme:f,prefersContrast:p,prefersReducedTransparency:m,pdfViewerEnabled:k,webdriver:P,intlSupportedCalendars:D||null,permissionsState:M||null,hardwareConcurrency:window.navigator.hardwareConcurrency||null,deviceMemory:window.navigator.deviceMemory||null,forcedColors:y,devicePixelRatio:g,pixelDepth:v,colorDepth:w,touchSupport:b,screenOrientation:T||null,connectionType:F,effectiveType:A,saveData:x,canvasID:S,webglID:R,webgpuID:I,audioID:O},Q={aspectRatio:C,width:window.screen.width,height:window.screen.height,maxTouchPoints:window.navigator.maxTouchPoints};(!0===navigator.userAgentData?.mobile||/Mobi|Android|iPhone|iPad|iPod|webOS|BlackBerry|Windows Phone/i.test(navigator.userAgent)||navigator.maxTouchPoints>0&&matchMedia("(pointer:coarse)").matches&&innerWidth<=1024)&&Object.assign(q,Q);const L=Me(qe(q)),U=Math.round(performance.now()-t);return{fingerprint:L,...q,elapsedMs:U}};"undefined"!=typeof window&&(window.getBrowserFingerprint=Qe);var Le=async(e,t)=>{if(e instanceof l){try{const t=e.data;if(t?.error)return t.error;if(t?.message)return t.message;if("INVALID_EMAIL_OR_PASSWORD"===t?.code)return"Invalid email or password"}catch{return t||e.message}return t||e.message}return e instanceof Error?t||e.message:t||String(e)},Ue=e(void 0),_e=({props:e={},children:s})=>{const{organizationId:c,uid:d,fname:p,lname:m,theme:y="light"}=e,g=fe(),[v,w]=r(null),[b,S]=r(()=>{if("undefined"==typeof window)return null;const e=localStorage.getItem("qrati_token");return e?{token:e}:null}),{isLoading:R,data:I,error:O}=we({queryKey:[h.QRATI_CONNECT_SESSION,c,d??null,p??null,m??null],queryFn:async()=>{const e=await(async()=>{const e=await Qe();return"string"==typeof e?e:e?.fingerprint})();try{return(await u.post(f.INITIALIZE_SESSION,{json:{uid:d,fname:p,lname:m,browserFingerprint:e},headers:{"x-org-id":c,...!b?.token||d||p||m?{}:{Authorization:`Bearer ${b.token}`}}}).json()).data}catch(t){if(t instanceof l)try{const e=t.data;t.apiMessage=e?.message||e?.error}catch{}throw t}},enabled:!!c});t(()=>{const e=I?.authSession?.session?.token??I?.authSession?.token,t=I?.authSession?.user;t&&e?(S(r=>({...r,...t,token:e,tcAccepted:void 0===t.tcAccepted?r?.tcAccepted:t.tcAccepted})),localStorage.setItem("qrati_token",e)):I?.organization?.customAuth&&d&&p&&S(e=>e??{_id:d,uid:d,name:m?`${p} ${m}`:p,fname:p,lname:m})},[I]);const C=n(()=>{const e=I?.organization?.integrationSettings?.fontFamily,t=((e,t)=>{const r=Ce("https://qrati.com"),n=t?Oe(t):"";return r&&n?`${r}/api/connect/organization/google-font?family=${encodeURIComponent(n)}`:null})(0,e),r=((e,t)=>{const r=Ce("https://qrati.com");return r&&t?`${r}/api/connect/organization/custom-font?organizationId=${encodeURIComponent(t)}`:null})(0,c);return((e,t,r)=>{if(!e?.fontFamily||"system"===e.fontFamily)return"";const n=Oe(e.fontFamily);if("custom"===n&&t){const r=e.customFontName||"QratiCustomFont",n=/\.woff2(\?|$)/i.test(t)?"woff2":/\.ttf(\?|$)/i.test(t)?"truetype":"woff";return`@font-face{font-family:"${s=r,s.replace(/"/g,'\\"')}";src:url("${t}") format("${n}");font-weight:400 700;font-style:normal;font-display:swap;}`}var s;const i=r||(e=>{if(!e)return null;const t=Oe(e);return t&&"system"!==t.toLowerCase()&&"custom"!==t.toLowerCase()?`https://fonts.googleapis.com/css2?family=${t.replace(/\s+/g,"+")}:wght@400;500;600;700&display=swap`:null})(n);return i?`@import url("${i}");`:""})(I?.organization?.integrationSettings,I?.organization?.customFontUrl?r||I.organization.customFontUrl:void 0,t||void 0)},[I?.organization?.integrationSettings,I?.organization?.customFontUrl,c]);t(()=>{const e=`data-qrati-font-${c}`;if(document.head.querySelector(`[${e}]`)?.remove(),C){if(C.startsWith("@import")){const t=C.match(/@import url\("([^"]+)"\)/);if(!t?.[1])return;const r=document.createElement("link");r.rel="stylesheet",r.href=t[1],r.setAttribute(e,""),document.head.appendChild(r)}else{const t=document.createElement("style");t.textContent=C,t.setAttribute(e,""),document.head.appendChild(t)}return()=>{document.head.querySelector(`[${e}]`)?.remove()}}},[C,c]);const T=o(async e=>{S(t=>({...t,...e}))},[]),E=o(async(e,t,r,n)=>{try{const s=await u.post(f.REGISTER,{json:{email:e,password:t,fname:r,lname:n},headers:{"x-org-id":c}}).json();return s.error?{error:s.error}:(S({...s.user,token:s.token}),s.token&&localStorage.setItem("qrati_token",s.token),s)}catch(O){return{error:await Le(O,"Registration failed")}}},[c]),F=o(async(e,t)=>{try{const r=await u.post(f.LOGIN,{json:{email:e,password:t},headers:{"x-org-id":c}}).json();return r.error?{error:r.error}:(S({...r.user,token:r.token}),r.token&&localStorage.setItem("qrati_token",r.token),r)}catch(O){return{error:await Le(O,"Invalid email or password")}}},[c]),A=o(async e=>{const t=await((e,t,r)=>new Promise((n,s)=>{if(!e)return void s(/* @__PURE__ */new Error("Provider is required"));if(!t)return void s(/* @__PURE__ */new Error("Organization ID is required"));const i=new URL(`${r}/qc-social-auth`);i.searchParams.set("provider",e),i.searchParams.set("organizationId",t),i.searchParams.set("origin",window.location.origin);const a=(window.screen.width-500)/2,o=(window.screen.height-600)/2,c=window.open(i.toString(),"qrati_social_auth",`width=500,height=600,left=${a},top=${o},scrollbars=yes,resizable=yes,status=yes`);if(!c)return void s(/* @__PURE__ */new Error("Failed to open popup window. Please allow popups and try again."));const l=()=>{clearInterval(h),clearTimeout(d),window.removeEventListener("message",u)},u=e=>{try{const t=new URL(r).origin;if(e.origin!==t)return void console.warn("Origin mismatch:",e.origin,"expected:",t)}catch(h){console.warn("Could not parse origin for verification")}const{type:i,data:a,error:o,organizationId:u}=e.data||{};if(u===t)switch(i){case"QRATI_SOCIAL_AUTH_SUCCESS":l(),c.close(),n({user:a.user,session:a.session,token:a.token});break;case"QRATI_SOCIAL_AUTH_ERROR":console.error("Authentication error:",o),l(),c.close(),s(new Error(o||"Social authentication failed"));break;case"QRATI_SOCIAL_AUTH_CANCELLED":l(),c.close(),s(/* @__PURE__ */new Error("Authentication was cancelled"))}else console.warn("Organization ID mismatch:",u,"expected:",t)},h=setInterval(()=>{try{c.closed&&(l(),s(/* @__PURE__ */new Error("Authentication was cancelled")))}catch(e){}},1e3);window.addEventListener("message",u);const d=setTimeout(()=>{l(),c.closed||c.close(),s(/* @__PURE__ */new Error("Authentication timeout. Please try again."))},3e5)}))(e,c??"","https://qrati.com");return t?.user&&t?.token&&(S({...t.user,token:t.token}),localStorage.setItem("qrati_token",t.token)),t},[c]),x=o(async()=>A("google"),[A]),k=o(async()=>A("apple"),[A]),P=o(async e=>{try{const t=await u.post(f.SEND_PASSWORD_RESET_CODE,{json:{email:e.toLowerCase()},headers:{"x-org-id":c}}).json();return t.error?{error:t.error}:t}catch(O){return{error:await Le(O,"Failed to send password reset code")}}},[c]),D=o(async(e,t)=>{try{const r=await u.post(f.VERIFY_PASSWORD_RESET_CODE,{json:{email:e.toLowerCase(),code:t},headers:{"x-org-id":c}}).json();return r.error?{error:r.error}:r}catch(O){return{error:await Le(O,"Invalid code, please check your email")}}},[c]),M=o(async(e,t)=>{try{const r=await u.post(f.RESET_PASSWORD,{json:{passwordResetCodeId:e,newPassword:t},headers:{"x-org-id":c}}).json();return r.error?{error:r.error}:r}catch(O){return{error:O?.message}}},[c]),q=o(async()=>{try{const e=await u.post(f.LOGOUT,{headers:{"x-org-id":c,Authorization:`Bearer ${b?.token}`}}).json();return e.error?{error:e.error}:(S(null),localStorage.removeItem("qrati_token"),await g.invalidateQueries({queryKey:[h.QRATI_CONNECT_SESSION]}),e)}catch(O){return{error:O?.message}}},[c,b?.token]),Q=n(()=>({props:e,initializing:R,sessionId:I?.sessionId,organization:I?.organization,folders:I?.folders,orgRole:I?.orgRole??null,loadingUser:R,user:b,updateUser:T,registerUsingEmail:E,loginWithGoogle:x,loginWithApple:k,loginUsingEmail:F,sendPasswordResetCode:P,verifyPasswordResetCode:D,resetPassword:M,signout:q,error:O,portalContainer:v}),[e,R,I,b,T,E,x,k,F,P,D,M,q,O,v]);if(O){const e=O,t=401===e?.response?.status?"page-not-registered":e?.response?"generic-error":"service-unavailable";/* @__PURE__ */
|
|
40
|
+
return a(i,{fallback:null,children:/* @__PURE__ */a(Re,{organizationId:c??"",errorType:t,errorMessage:"generic-error"===t?e.apiMessage:void 0})})}/* @__PURE__ */
|
|
41
|
+
return a(Ue.Provider,{value:Q,children:/* @__PURE__ */a("div",{ref:w,id:"qrati-connect-container",style:{...Pe(I?.organization,y),fontFamily:I?.organization?.integrationSettings?.fontFamily&&"system"!==I.organization.integrationSettings.fontFamily?"var(--font-family)":"inherit"},className:Ae("bg-background text-foreground relative min-h-[80vh]"),children:s})})},je=()=>{const e=c(Ue);if(void 0===e)throw new Error("useSession must be used within SessionProvider");return e};export{_ as A,C,E as D,g as E,S as O,T as S,I as T,V as _,Pe as a,N as b,ve as c,oe as d,ne as f,B as g,J as h,Ae as i,L as j,x as k,pe as l,re as m,je as n,Fe as o,te as p,Qe as r,we as s,_e as t,fe as u,H as v,O as w,v as x,$ as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{g as t,h as e,v as s}from"./CKQOToSD.js";var i=class extends e{#t;#e;#s;#i;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#s=t.mutationCache,this.#e=[],this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#s.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const s=()=>{this.#a({type:"continue"})},i={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=t({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(/* @__PURE__ */new Error("No mutationFn found")),onFail:(t,e)=>{this.#a({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#a({type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});const a="pending"===this.state.status,o=!this.#i.canStart();try{if(a)s();else{this.#a({type:"pending",variables:e,isPaused:o}),this.#s.config.onMutate&&await this.#s.config.onMutate(e,this,i);const t=await(this.options.onMutate?.(e,i));t!==this.state.context&&this.#a({type:"pending",context:t,variables:e,isPaused:o})}const t=await this.#i.start();return await(this.#s.config.onSuccess?.(t,e,this.state.context,this,i)),await(this.options.onSuccess?.(t,e,this.state.context,i)),await(this.#s.config.onSettled?.(t,null,this.state.variables,this.state.context,this,i)),await(this.options.onSettled?.(t,null,e,this.state.context,i)),this.#a({type:"success",data:t}),t}catch(r){try{await(this.#s.config.onError?.(r,e,this.state.context,this,i))}catch(n){Promise.reject(n)}try{await(this.options.onError?.(r,e,this.state.context,i))}catch(n){Promise.reject(n)}try{await(this.#s.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this,i))}catch(n){Promise.reject(n)}try{await(this.options.onSettled?.(void 0,r,e,this.state.context,i))}catch(n){Promise.reject(n)}throw this.#a({type:"error",error:r}),r}finally{this.#s.runNext(this)}}#a(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),s.batch(()=>{this.#e.forEach(e=>{e.onMutationUpdate(t)}),this.#s.notify({mutation:this,type:"updated",action:t})})}};function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}export{a as n,i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as t,D as e,E as s,O as i,S as r,T as u,_ as n,b as a,f as o,j as h,v as c,w as l,x as f,y}from"./CKQOToSD.js";import{t as d}from"./CUBxHQ8u.js";var m=class extends a{constructor(t={}){super(),this.config=t,this.#t=/* @__PURE__ */new Map}#t;build(e,s,i){const r=s.queryKey,u=s.queryHash??t(r,s);let n=this.get(u);return n||(n=new o({client:e,queryKey:r,queryHash:u,options:e.defaultQueryOptions(s),state:i,defaultOptions:e.getQueryDefaults(r)}),this.add(n)),n}add(t){this.#t.has(t.queryHash)||(this.#t.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#t.get(t.queryHash);e&&(t.destroy(),e===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){c.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(t=>u(e,t))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(e=>u(t,e)):e}notify(t){c.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){c.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){c.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},p=class extends a{constructor(t={}){super(),this.config=t,this.#e=/* @__PURE__ */new Set,this.#s=/* @__PURE__ */new Map,this.#i=0}#e;#s;#i;build(t,e,s){const i=new d({client:t,mutationCache:this,mutationId:++this.#i,options:t.defaultMutationOptions(e),state:s});return this.add(i),i}add(t){this.#e.add(t);const e=q(t);if("string"==typeof e){const s=this.#s.get(e);s?s.push(t):this.#s.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const e=q(t);if("string"==typeof e){const s=this.#s.get(e);if(s)if(s.length>1){const e=s.indexOf(t);-1!==e&&s.splice(e,1)}else s[0]===t&&this.#s.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=q(t);if("string"==typeof e){const s=this.#s.get(e)?.find(t=>"pending"===t.state.status);return!s||s===t}return!0}runNext(t){const e=q(t);return"string"==typeof e?(this.#s.get(e)?.find(e=>e!==t&&e.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){c.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#s.clear()})}getAll(){return Array.from(this.#e)}find(t){const e={exact:!0,...t};return this.getAll().find(t=>l(e,t))}findAll(t={}){return this.getAll().filter(e=>l(t,e))}notify(t){c.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(t=>t.state.isPaused);return c.batch(()=>Promise.all(t.map(t=>t.continue().catch(s))))}};function q(t){return t.options.scope?.id}var g=class{#r;#u;#n;#a;#o;#h;#c;#l;constructor(t={}){this.#r=t.queryCache||new m,this.#u=t.mutationCache||new p,this.#n=t.defaultOptions||{},this.#a=/* @__PURE__ */new Map,this.#o=/* @__PURE__ */new Map,this.#h=0}mount(){this.#h++,1===this.#h&&(this.#c=y.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#r.onFocus())}),this.#l=n.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#r.onOnline())}))}unmount(){this.#h--,0===this.#h&&(this.#c?.(),this.#c=void 0,this.#l?.(),this.#l=void 0)}isFetching(t){return this.#r.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#u.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#r.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),s=this.#r.build(this,e),r=s.state.data;return void 0===r?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(i(e.staleTime,s))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return this.#r.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){const i=this.defaultQueryOptions({queryKey:t}),r=this.#r.get(i.queryHash)?.state.data,u=f(e,r);if(void 0!==u)return this.#r.build(this,i).setData(u,{...s,manual:!0})}setQueriesData(t,e,s){return c.batch(()=>this.#r.findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,s)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#r.get(e.queryHash)?.state}removeQueries(t){const e=this.#r;c.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){const s=this.#r;return c.batch(()=>(s.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const i={revert:!0,...e},r=c.batch(()=>this.#r.findAll(t).map(t=>t.cancel(i)));return Promise.all(r).then(s).catch(s)}invalidateQueries(t,e={}){return c.batch(()=>(this.#r.findAll(t).forEach(t=>{t.invalidate()}),"none"===t?.refetchType?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const i={...e,cancelRefetch:e.cancelRefetch??!0},r=c.batch(()=>this.#r.findAll(t).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let e=t.fetch(void 0,i);return i.throwOnError||(e=e.catch(s)),"paused"===t.state.fetchStatus?Promise.resolve():e}));return Promise.all(r).then(s)}fetchQuery(t){const e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);const s=this.#r.build(this,e);return s.isStaleByTime(i(e.staleTime,s))?s.fetch(e):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(s).catch(s)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(s).catch(s)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return n.isOnline()?this.#u.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#r}getMutationCache(){return this.#u}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,e){this.#a.set(r(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const s=[...this.#a.values()],i={};return s.forEach(s=>{e(t,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(t,e){this.#o.set(r(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const s=[...this.#o.values()],i={};return s.forEach(s=>{e(t,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const s={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return s.queryHash||(s.queryHash=t(s.queryKey,s)),void 0===s.refetchOnReconnect&&(s.refetchOnReconnect="always"!==s.networkMode),void 0===s.throwOnError&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===h&&(s.enabled=!1),s}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#r.clear(),this.#u.clear()}};export{g as t};
|