@qratilabs/qrati-connect 2.31.1 → 2.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/element/{DKxH7j1t2.js → 2MdYrk27.js} +7 -7
  2. package/element/2OzBYBrP.js +2 -0
  3. package/element/BIsp1V4q2.js +8 -0
  4. package/element/BJPVMd4a2.js +4 -0
  5. package/element/BKaxn8Ij2.js +5 -0
  6. package/element/BNAv4_JK.js +1 -0
  7. package/element/{BNaRcekR2.js → BVHdG-zf.js} +1 -1
  8. package/element/BiHVoIWk.js +2 -0
  9. package/element/BoLYE0I62.js +8 -0
  10. package/element/BpI67z3l.js +2 -0
  11. package/element/C84zcse72.js +1 -0
  12. package/element/CBL1xGp_.js +3 -0
  13. package/element/CF0gkb5T.js +4 -0
  14. package/element/CZvzyHMc2.js +3 -0
  15. package/element/Cf-ikOp2.js +2 -0
  16. package/element/{Be3fjihP2.js → Cl4c-3Xk.js} +3 -3
  17. package/element/CnExGazE2.js +14 -0
  18. package/element/CopVS738.js +5 -0
  19. package/element/Cte8DkX6.js +199 -0
  20. package/element/{BALdepDv.js → CvtQzVtn2.js} +7 -7
  21. package/element/Cyp_H6gp.js +8 -0
  22. package/element/D4ceMHZo2.js +8 -0
  23. package/element/D5ovViER2.js +3 -0
  24. package/element/{fQmLbYcp2.js → D92x_spc.js} +1 -1
  25. package/element/DDJfCP8g.js +16 -0
  26. package/element/DEzMsBix2.js +4 -0
  27. package/element/DGLG5AUs.js +36 -0
  28. package/element/Dav-zijp2.js +17 -0
  29. package/element/DtjeZIUE.js +32 -0
  30. package/element/DzMVgwWt.js +1 -0
  31. package/element/{7IEzYICH2.js → Xf-0nxUX.js} +24 -24
  32. package/element/YBIepScM.js +2 -0
  33. package/element/{Ot24jlyb2.js → Yvb3c4w2.js} +1 -1
  34. package/element/Za2nuDJ4.js +1 -0
  35. package/element/{DMnbtDXS2.js → dgI0MGWo.js} +1 -1
  36. package/element/khLYL0ji.js +1 -0
  37. package/element/{D2-DJv4T2.js → krvWvnLh2.js} +1 -1
  38. package/element/{Ba8sCyeC2.js → sLC4EOUq.js} +93 -93
  39. package/element/web.es.js +1 -48
  40. package/element/{BF7pLcqs.js → yhFHMaGN2.js} +85 -85
  41. package/embed/embed.js +1 -1
  42. package/package.json +2 -2
  43. package/element/7fZbqbYO2.js +0 -5
  44. package/element/8QLGsYN7.js +0 -11
  45. package/element/9E5bMl4h.js +0 -1
  46. package/element/B7bKBLKV2.js +0 -9
  47. package/element/BGo2VsHN2.js +0 -36
  48. package/element/BK_hWmGs.js +0 -5
  49. package/element/BUd_JUBh.js +0 -8
  50. package/element/BVxovwox.js +0 -1
  51. package/element/BXMw4kNf.js +0 -1
  52. package/element/Bb9ydqSB.js +0 -1
  53. package/element/BgZyx8Pz.js +0 -3
  54. package/element/BkIDQGIs.js +0 -1
  55. package/element/Bki5T_lb.js +0 -1
  56. package/element/BqPiuAuP.js +0 -2
  57. package/element/BrDFXZq12.js +0 -2
  58. package/element/BuhJHzFX.js +0 -1
  59. package/element/BwHTzCpH.js +0 -8
  60. package/element/BxQf2Aj9.js +0 -1
  61. package/element/BxZobjC-.js +0 -2
  62. package/element/C0eP2utz.js +0 -2
  63. package/element/C2WFktw12.js +0 -3
  64. package/element/CDSgxlAB.js +0 -1
  65. package/element/CIcQE2CN2.js +0 -1
  66. package/element/CQMPBmQq2.js +0 -3
  67. package/element/CS8uERGc.js +0 -1
  68. package/element/CTikdrXC.js +0 -80
  69. package/element/CXRH3zmy.js +0 -1
  70. package/element/CcyeEIVb2.js +0 -16
  71. package/element/CdivXyOP.js +0 -41
  72. package/element/CfszNu_Q.js +0 -17
  73. package/element/Ci9PI8hK2.js +0 -39
  74. package/element/Clga4U4Y.js +0 -4
  75. package/element/Cnr4EYcL.js +0 -3
  76. package/element/Cyknlxbq.js +0 -8
  77. package/element/Cz6OP78x2.js +0 -14
  78. package/element/DIWjXG_0.js +0 -1
  79. package/element/DLHvSz1a2.js +0 -1
  80. package/element/DXjc6xIy.js +0 -2
  81. package/element/DeK1vU3V2.js +0 -1
  82. package/element/Dl6jcv9I.js +0 -5
  83. package/element/DmpmrPE5.js +0 -1
  84. package/element/DqAzUQcH.js +0 -1
  85. package/element/Dstt_bTH.js +0 -2
  86. package/element/IK19gQaC.js +0 -8
  87. package/element/JY9kGm742.js +0 -2
  88. package/element/L4hWU3Nc.js +0 -1
  89. package/element/QxKjlE-j.js +0 -2
  90. package/element/cBUXG_uS.js +0 -1
  91. package/element/e2mrPlw-.js +0 -4
  92. package/element/p4NDlPrf.js +0 -7
  93. package/element/ydzHqf5r.js +0 -3
  94. /package/element/{1dmOpMwn2.js → 1dmOpMwn.js} +0 -0
  95. /package/element/{BUDCYszs.js → BUDCYszs2.js} +0 -0
  96. /package/element/{BYM2GyVF2.js → BYM2GyVF.js} +0 -0
  97. /package/element/{Bo39kG4k2.js → Bo39kG4k.js} +0 -0
  98. /package/element/{CfMNBPpx.js → CfMNBPpx2.js} +0 -0
  99. /package/element/{CtxIOzTC2.js → CtxIOzTC.js} +0 -0
  100. /package/element/{DnIueBGr.js → DnIueBGr2.js} +0 -0
package/embed/embed.js CHANGED
@@ -1 +1 @@
1
- !function(){var e="undefined"!=typeof document?document.currentScript:null,t={"organization-id":"organization-id",router:"router",uid:"uid",fname:"fname",lname:"lname",theme:"theme"};e&&"undefined"!=typeof document?function(e){if(!e.src)return void console.error("[QratiConnect] embed loader could not determine its own script src.");const n=function(e){const n={};for(const o of Object.keys(t)){const r=o.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),a=e.dataset[r];null!=a&&""!==a&&(n[t[o]]=a)}return n}(e);if(!n["organization-id"])return void console.error("[QratiConnect] embed requires a data-organization-id attribute.");const o=document.createElement("qrati-connect");for(const[t,i]of Object.entries(n))o.setAttribute(t,i);const{parent:r,before:a}=function(e){const t=e.dataset.target;if(t){const e=document.querySelector(t);if(e)return{parent:e,before:null};console.warn(`[QratiConnect] data-target "${t}" not found; mounting next to the script tag.`)}return e.parentNode?{parent:e.parentNode,before:e.nextSibling}:{parent:document.body,before:null}}(e);var c;r.insertBefore(o,a),import((c=e.src,new URL("../element/web.es.js",c).href)).catch(e=>{console.error("[QratiConnect] failed to load the element bundle:",e)})}(e):"undefined"!=typeof document&&console.error('[QratiConnect] embed loader requires a classic <script> tag (no type="module"). document.currentScript was null.')}();
1
+ !function(){var e="undefined"!=typeof document?document.currentScript:null,t={"organization-id":"organization-id",router:"router",uid:"uid",fname:"fname",lname:"lname",theme:"theme"};e&&"undefined"!=typeof document?function(e){if(!e.src)return void console.error("[QratiConnect] embed loader could not determine its own script src.");const n=function(e){const n={};for(const r of Object.keys(t)){const o=r.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),a=e.dataset[o];null!=a&&""!==a&&(n[t[r]]=a)}return n}(e);if(!n["organization-id"])return void console.error("[QratiConnect] embed requires a data-organization-id attribute.");const r=document.createElement("qrati-connect");for(const[t,c]of Object.entries(n))r.setAttribute(t,c);r.appendChild(function(){const e=document.createElement("div");e.setAttribute("data-qrati-placeholder",""),e.setAttribute("aria-hidden","true"),e.style.cssText="display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;padding:16px 0";const t=window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;for(let n=0;n<6;n++){const n=document.createElement("div");n.style.cssText="height:288px;background:#e8e8e8;border-radius:4px",t||n.animate?.([{opacity:1},{opacity:.5},{opacity:1}],{duration:2e3,iterations:1/0}),e.appendChild(n)}return e}());const{parent:o,before:a}=function(e){const t=e.dataset.target;if(t){const e=document.querySelector(t);if(e)return{parent:e,before:null};console.warn(`[QratiConnect] data-target "${t}" not found; mounting next to the script tag.`)}return e.parentNode?{parent:e.parentNode,before:e.nextSibling}:{parent:document.body,before:null}}(e);var i;o.insertBefore(r,a),import((i=e.src,new URL("../element/web.es.js",i).href)).catch(e=>{console.error("[QratiConnect] failed to load the element bundle:",e)})}(e):"undefined"!=typeof document&&console.error('[QratiConnect] embed loader requires a classic <script> tag (no type="module"). document.currentScript was null.')}();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qratilabs/qrati-connect",
3
- "version": "2.31.1",
3
+ "version": "2.32.0",
4
4
  "description": "Qrati Connect - Preact-based embeddable SDK with React wrapper",
5
5
  "author": "Qrati Labs",
6
6
  "license": "UNLICENSED",
@@ -73,7 +73,7 @@
73
73
  }
74
74
  },
75
75
  "sideEffects": [
76
- "./element/web.es.js",
76
+ "./element/*.js",
77
77
  "./embed/embed.js"
78
78
  ],
79
79
  "engines": {
@@ -1,5 +0,0 @@
1
- import{h as a,t as o}from"./BXMw4kNf.js";import{n as e}from"./CdivXyOP.js";import{x as s}from"./Bb9ydqSB.js";import{l,t as r}from"./BK_hWmGs.js";import{t as i}from"./cBUXG_uS.js";import{n as t}from"./JY9kGm742.js";import{t as n}from"./DKxH7j1t2.js";import{i as d,s as m,t as p}from"./CQMPBmQq2.js";import{n as c,r as g,t as u}from"./D2-DJv4T2.js";var f=()=>{const{t:f}=t(),h=l(),[w,v]=a(""),[b,y]=a(""),[j,C]=a(!1),[N,A]=a(null),[k,x]=a(!1),[P,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:P.email}),/* @__PURE__ */o(p,{label:f("auth.password","Password"),name:"password",disabled:j,type:k?"text":"password",value:b,onChange:a=>{y(a.target.value),D("password")},autoComplete:"current-password",error:P.password,actionLabel:k?"Hide password":"Show password",actionIcon:/* @__PURE__ */o(k?u:c,{className:"size-5"}),onActionClick:()=>x(!k)})]}),N&&/* @__PURE__ */o(i,{align:"center",color:"error",className:"font-medium",children:N}),
4
- /* @__PURE__ */o("div",{className:"flex justify-end",children:/* @__PURE__ */o(r,{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};
@@ -1,11 +0,0 @@
1
- import{E as e,S as t,T as r,_ as o,f as a,h as n,p as s,t as l,v as i,w as d,y as c}from"./BXMw4kNf.js";import{a as m,i as p,n as u}from"./CdivXyOP.js";import{t as h,x as f}from"./Bb9ydqSB.js";import{t as v}from"./BK_hWmGs.js";import{r as b,t as g}from"./cBUXG_uS.js";import{t as x}from"./DXjc6xIy.js";var q=b("inline-flex h-fit flex-auto cursor-pointer items-center justify-center border transition-all duration-200 focus:outline-none active:scale-95",{variants:{size:{sm:"gap-1.5 p-1.5 text-xs",md:"gap-3 px-3 py-2 text-sm",lg:"gap-3 px-4 py-3 text-base"}},defaultVariants:{size:"md"}}),w=({size:e,buttons:t=[],onChange:r,selected:o,className:a})=>/* @__PURE__ */l("div",{className:p("button-group-overlap shadow-outer z-0 flex h-fit rounded",a),children:t.map((a,n)=>{const s=0===n,i=n===t.length-1,d=a.value===o;/* @__PURE__ */
2
- return l("button",{type:"button",onClick:()=>r?.(a.value),className:p(q({size:e}),d?a.activeClassName?a.activeClassName:"bg-primary border-primary text-primary-foreground hover:bg-primary/90 border":"hover:bg-muted/50 active:bg-muted border-border border",s&&"rounded-l",i&&"rounded-r"),children:[!a.icon&&/* @__PURE__ */l("span",{className:"font-medium sm:py-0.5",children:a.text}),a.icon&&/* @__PURE__ */l("div",{className:"size-6",children:a.icon})]},a.value)})});function N({className:e}){/* @__PURE__ */
3
- return l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */l("path",{fill:"currentColor",d:"M6 19h3v-5q0-.425.288-.712T10 13h4q.425 0 .713.288T15 14v5h3v-9l-6-4.5L6 10zm-2 0v-9q0-.475.213-.9t.587-.7l6-4.5q.525-.4 1.2-.4t1.2.4l6 4.5q.375.275.588.7T20 10v9q0 .825-.588 1.413T18 21h-4q-.425 0-.712-.288T13 20v-5h-2v5q0 .425-.288.713T10 21H6q-.825 0-1.412-.587T4 19m8-6.75"})})}function y({className:e}){/* @__PURE__ */
4
- return l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */l("path",{fill:"currentColor",d:"m14.475 12l-7.35-7.35q-.375-.375-.363-.888t.388-.887t.888-.375t.887.375l7.675 7.7q.3.3.45.675t.15.75t-.15.75t-.45.675l-7.7 7.7q-.375.375-.875.363T7.15 21.1t-.375-.888t.375-.887z"})})}var T=({folder:e})=>/* @__PURE__ */l("li",{className:"flex items-center",children:[/* @__PURE__ */l(y,{className:"size-4"}),/* @__PURE__ */l(v,{to:e.href??"#",className:"flex items-center gap-2 rounded px-4 py-1 transition-colors",onMouseEnter:t=>{const r=t.currentTarget;r&&e.color&&(r.style.backgroundColor=`${e.color}3A`)},onMouseLeave:e=>{const t=e.currentTarget;t&&(t.style.backgroundColor="")},children:[/* @__PURE__ */l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",style:{color:e.color??void 0},children:/* @__PURE__ */l("path",{fill:"currentColor",d:"M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h5.175q.4 0 .763.15t.637.425L12 6h8q.825 0 1.413.588T22 8v10q0 .825-.587 1.413T20 20z"})}),/* @__PURE__ */l(g,{variant:"h5",color:"secondary",className:"whitespace-nowrap",children:e.name})]})]},e.name),C=({homeLink:e="/",data:t=[]})=>/* @__PURE__ */l("ol",{role:"list",className:"scrollbar-hide flex max-w-full items-center space-x-3 overflow-y-scroll",children:[/* @__PURE__ */l("li",{children:/* @__PURE__ */l(v,{to:e,className:"text-foreground",children:[/* @__PURE__ */l(N,{className:"size-6"}),/* @__PURE__ */l("span",{className:"sr-only",children:"Home"})]})}),t?.map(e=>/* @__PURE__ */l(T,{folder:e},e._id??e.name??e.href??"folder"))]}),k=(e=[],t)=>{const r=/* @__PURE__ */new Map;e?.forEach(e=>{r.set(e._id,e)});const o=[];let a=r.get(t);for(;a;)o.unshift({_id:a._id,name:a.name,href:f.FOLDER_EVENTS(a?._id),color:a.color}),a=r.get(a.parentFolderId);return o},z=()=>{const{initializing:e,orgRole:t,user:r,loadingUser:o}=u(),a=r?t??void 0:void 0;return{role:a,isSuper:Boolean(r?.isSuper),loading:Boolean(o||e),isOwner:a===h.OWNER,isAdmin:a===h.ADMIN,isModerator:a===h.MODERATOR}};function E({content:e,children:t,position:r="top",className:o,contentClassName:a}){const[s,i]=n(!1),{organization:d}=u();/* @__PURE__ */
5
- return l("div",{className:p("relative inline-block",o),onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onClick:()=>i(!1),onBlur:()=>i(!1),children:[t,s&&/* @__PURE__ */l("div",{className:p("bg-popover text-popover-foreground border-border animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 pointer-events-auto absolute z-50 rounded border px-3 py-2 text-sm whitespace-nowrap shadow-md",{top:"bottom-full left-1/2 -translate-x-1/2 mb-2",right:"left-full top-1/2 -translate-y-1/2 ml-2",bottom:"top-full left-1/2 -translate-x-1/2 mt-2",left:"right-full top-1/2 -translate-y-1/2 mr-2"}[r],a),"data-side":r,style:m(d),role:"tooltip",children:[e,/* @__PURE__ */l("div",{className:p("border-popover absolute h-0 w-0 border-4",{top:"top-full left-1/2 -translate-x-1/2 border-l-transparent border-r-transparent border-b-transparent",right:"right-full top-1/2 -translate-y-1/2 border-t-transparent border-b-transparent border-l-transparent",bottom:"bottom-full left-1/2 -translate-x-1/2 border-l-transparent border-r-transparent border-t-transparent",left:"left-full top-1/2 -translate-y-1/2 border-t-transparent border-b-transparent border-r-transparent"}[r])})]})]})}function L({className:e}){/* @__PURE__ */
6
- return l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */l("path",{fill:"currentColor",d:"M10.825 22q-.675 0-1.162-.45t-.588-1.1L8.85 18.8q-.325-.125-.612-.3t-.563-.375l-1.55.65q-.625.275-1.25.05t-.975-.8l-1.175-2.05q-.35-.575-.2-1.225t.675-1.075l1.325-1Q4.5 12.5 4.5 12.337v-.675q0-.162.025-.337l-1.325-1Q2.675 9.9 2.525 9.25t.2-1.225L3.9 5.975q.35-.575.975-.8t1.25.05l1.55.65q.275-.2.575-.375t.6-.3l.225-1.65q.1-.65.588-1.1T10.825 2h2.35q.675 0 1.163.45t.587 1.1l.225 1.65q.325.125.613.3t.562.375l1.55-.65q.625-.275 1.25-.05t.975.8l1.175 2.05q.35.575.2 1.225t-.675 1.075l-1.325 1q.025.175.025.338v.674q0 .163-.05.338l1.325 1q.525.425.675 1.075t-.2 1.225l-1.2 2.05q-.35.575-.975.8t-1.25-.05l-1.5-.65q-.275.2-.575.375t-.6.3l-.225 1.65q-.1.65-.587 1.1t-1.163.45zM11 20h1.975l.35-2.65q.775-.2 1.438-.587t1.212-.938l2.475 1.025l.975-1.7l-2.15-1.625q.125-.35.175-.737T17.5 12t-.05-.787t-.175-.738l2.15-1.625l-.975-1.7l-2.475 1.05q-.55-.575-1.212-.962t-1.438-.588L13 4h-1.975l-.35 2.65q-.775.2-1.437.588t-1.213.937L5.55 7.15l-.975 1.7l2.15 1.6q-.125.375-.175.75t-.05.8q0 .4.05.775t.175.75l-2.15 1.625l.975 1.7l2.475-1.05q.55.575 1.213.963t1.437.587zm1.05-4.5q1.45 0 2.475-1.025T15.55 12t-1.025-2.475T12.05 8.5q-1.475 0-2.487 1.025T8.55 12t1.013 2.475T12.05 15.5M12 12"})})}var M=e({open:!1,setOpen:()=>{}});function O({children:e,className:t,open:r,defaultOpen:o=!1,onOpenChange:a}){const[d,c]=n(o),m=void 0!==r?r:d,u=i(e=>{c(e),a?.(e)},[a]),h=s(()=>({open:m,setOpen:u}),[m,u]);/* @__PURE__ */
7
- return l(M.Provider,{value:h,children:/* @__PURE__ */l("div",{className:p("relative",t),children:e})})}function B({children:e,className:o,asChild:a=!1}){const{open:n,setOpen:s}=c(M),d=i(e=>{e.stopPropagation(),s(!n)},[n,s]);if(a){const a=t(e)[0];return a?r(a,{onClick:e=>{d(e),a.props?.onClick?.(e)},className:p(a.props?.className,o,"cursor-pointer")}):null}/* @__PURE__ */
8
- return l("span",{onClick:d,className:p("cursor-pointer",o),children:e})}function j({children:e,className:t,align:r="end",side:n="bottom",sideOffset:s=4}){const{open:i,setOpen:d}=c(M),h=a(null),{organization:f}=u();if(o(()=>{if(!i)return;const e=e=>{h.current&&!h.current.contains(e.target)&&d(!1)},t=e=>{"Escape"===e.key&&d(!1)};return document.addEventListener("click",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("click",e),document.removeEventListener("keydown",t)}},[i,d]),!i)return null;const v="start"===r?"left-0":"end"===r?"right-0":"left-1/2 -translate-x-1/2",b="bottom"===n?{top:`calc(100% + ${s}px)`}:{bottom:`calc(100% + ${s}px)`};/* @__PURE__ */
9
- return l("div",{ref:h,style:{...m(f),...b},className:p("bg-popover text-popover-foreground border-border absolute z-50 min-w-32 rounded border p-1 shadow-md","animate-in fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",v,t),"data-side":n,children:e})}function _({children:e,className:o,href:a,onClick:n,onSelect:s,disabled:m,icon:u,title:h,variant:f="default",isChecked:b,isBeta:g,suffix:q,asChild:w}){const{setOpen:N}=c(M),y=p("hover:bg-primary/20 relative flex w-full cursor-pointer items-center gap-3 rounded px-3 py-2 text-left text-sm transition-colors outline-none select-none",m&&"pointer-events-none opacity-50","destructive"===f&&"text-destructive hover:bg-destructive/10 focus:bg-destructive/10",o),T=e??/* @__PURE__ */l(d,{children:[u,
10
- /* @__PURE__ */l("span",{className:"flex-1 truncate font-medium",children:h}),b&&/* @__PURE__ */l(x,{className:"text-primary size-5"}),g&&/* @__PURE__ */l("span",{className:"bg-primary text-primary-foreground rounded px-1.5 py-0.5 text-[10px]",children:"BETA"}),q&&/* @__PURE__ */l("span",{children:q})]}),C=i(e=>{m||(s?.(e),n?.(),N(!1))},[m,s,n,N]);if(w&&e){const o=t(e)[0];return o?r(o,{onClick:e=>{C(e),o.props?.onClick?.(e)},className:p(o.props?.className,y)}):null}return a?/* @__PURE__ */l(v,{to:a,onClick:C,className:y,children:T}):/* @__PURE__ */l("button",{onClick:C,className:y,disabled:m,type:"button",children:T})}function A({className:e}){/* @__PURE__ */
11
- return l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */l("path",{fill:"currentColor",d:"M9.5 16q-2.725 0-4.612-1.888T3 9.5t1.888-4.612T9.5 3t4.613 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.6 5.6q.275.275.275.7t-.275.7t-.7.275t-.7-.275l-5.6-5.6q-.75.6-1.725.95T9.5 16m0-2q1.875 0 3.188-1.312T14 9.5t-1.312-3.187T9.5 5T6.313 6.313T5 9.5t1.313 3.188T9.5 14"})})}export{B as a,z as c,w as d,_ as i,k as l,O as n,L as o,j as r,E as s,A as t,C as u};
@@ -1 +0,0 @@
1
- import{C as t,D as e,E as s,M as i,N as r,O as u,S as n,T as a,b as o,j as h,m as c,w as l,x as f,y}from"./CdivXyOP.js";import{t as d}from"./DIWjXG_0.js";var m=class extends r{constructor(t={}){super(),this.config=t,this.#t=/* @__PURE__ */new Set,this.#e=/* @__PURE__ */new Map,this.#s=0}#t;#e;#s;build(t,e,s){const i=new d({client:t,mutationCache:this,mutationId:++this.#s,options:t.defaultMutationOptions(e),state:s});return this.add(i),i}add(t){this.#t.add(t);const e=p(t);if("string"==typeof e){const s=this.#e.get(e);s?s.push(t):this.#e.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#t.delete(t)){const e=p(t);if("string"==typeof e){const s=this.#e.get(e);if(s)if(s.length>1){const e=s.indexOf(t);-1!==e&&s.splice(e,1)}else s[0]===t&&this.#e.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=p(t);if("string"==typeof e){const s=this.#e.get(e)?.find(t=>"pending"===t.state.status);return!s||s===t}return!0}runNext(t){const e=p(t);return"string"==typeof e?(this.#e.get(e)?.find(e=>e!==t&&e.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){o.batch(()=>{this.#t.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}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){o.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(t=>t.state.isPaused);return o.batch(()=>Promise.all(t.map(t=>t.continue().catch(s))))}};function p(t){return t.options.scope?.id}var q=class extends r{constructor(t={}){super(),this.config=t,this.#i=/* @__PURE__ */new Map}#i;build(e,s,i){const r=s.queryKey,u=s.queryHash??t(r,s);let n=this.get(u);return n||(n=new c({client:e,queryKey:r,queryHash:u,options:e.defaultQueryOptions(s),state:i,defaultOptions:e.getQueryDefaults(r)}),this.add(n)),n}add(t){this.#i.has(t.queryHash)||(this.#i.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#i.get(t.queryHash);e&&(t.destroy(),e===t&&this.#i.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){o.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#i.get(t)}getAll(){return[...this.#i.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(t=>a(e,t))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(e=>a(t,e)):e}notify(t){o.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){o.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){o.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},g=class{#r;#u;#n;#a;#o;#h;#c;#l;constructor(t={}){this.#r=t.queryCache||new q,this.#u=t.mutationCache||new m,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=i.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#r.onFocus())}),this.#l=y.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),i=s.state.data;return void 0===i?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(u(e.staleTime,s))&&this.prefetchQuery(e),Promise.resolve(i))}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 o.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;o.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){const s=this.#r;return o.batch(()=>(s.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const i={revert:!0,...e},r=o.batch(()=>this.#r.findAll(t).map(t=>t.cancel(i)));return Promise.all(r).then(s).catch(s)}invalidateQueries(t,e={}){return o.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=o.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(u(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 y.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(n(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(n(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};
@@ -1,9 +0,0 @@
1
- import{t}from"./BXMw4kNf.js";import{n as s}from"./CdivXyOP.js";import{x as o}from"./Bb9ydqSB.js";import{d as a,i as r,n as e}from"./BK_hWmGs.js";import{t as i}from"./ydzHqf5r.js";import{t as n}from"./BxQf2Aj9.js";import{t as l}from"./p4NDlPrf.js";import{t as m}from"./BqPiuAuP.js";import{t as d}from"./JY9kGm742.js";import{t as c}from"./DLHvSz1a2.js";import{t as g}from"./DKxH7j1t2.js";var f=()=>{const f=a(),{props:p,folders:v}=s(),h=p?.organizationId,{loading:u,event:N}=c({eventSlug:f.eventSlug});if(u)/* @__PURE__ */return t("div",{children:[
2
- /* @__PURE__ */t(n,{className:"mx-auto mt-4 h-8 w-64"}),
3
- /* @__PURE__ */t(n,{className:"mx-auto mt-6 h-6 w-72"}),
4
- /* @__PURE__ */t(n,{className:"mx-auto mt-6 h-8 w-72"}),
5
- /* @__PURE__ */t("div",{className:"mt-8 grid grid-cols-1 gap-4 sm:grid-cols-3",children:Array.from({length:8}).map((s,o)=>/* @__PURE__ */t(n,{className:"h-72"},o))})]});const j=N?.organizationId?.toString?.()||N?.organizationId,w=h?.toString?.()||h,x=N?.folderId?.toString?.()||N?.folderId,S=v?.some(t=>t._id===x)?x:void 0;/* @__PURE__ */
6
- return t("div",N&&j===w?{className:"bg-background relative min-h-screen",children:/* @__PURE__ */t(d,{locale:N?.language??"en",translations:N?.translations,children:[
7
- /* @__PURE__ */t(m,{to:S?o.FOLDER_EVENTS(S):o.PUBLIC_EVENTS}),
8
- /* @__PURE__ */t(r,{}),
9
- /* @__PURE__ */t(l,{})]})}:{className:"flex w-full flex-col items-center gap-8",children:[/* @__PURE__ */t(i,{className:"mt-16",title:"Event not found",description:"Please check the provided link",iconSvg:/* @__PURE__ */t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-full",viewBox:"0 0 997.86122 450.8081",role:"img"})}),/* @__PURE__ */t(e,{to:o.PUBLIC_EVENTS,state:{internalNavigation:!0},children:/* @__PURE__ */t(g,{children:"All events"})})]})};export{f as default};
@@ -1,36 +0,0 @@
1
- import{D as e,E as t,T as n,_ as r,b as o,f as i,g as a,h as s,i as l,m as c,n as d,o as u,p as h,t as p,v as m,w as g,y as f}from"./BXMw4kNf.js";import{a as v,f as w,i as y,n as b}from"./CdivXyOP.js";import{t as x}from"./CS8uERGc.js";import{t as N}from"./DmpmrPE5.js";import{S as k,_ as T,c as C,f as I,g as E,i as q,r as M,x as A}from"./Bb9ydqSB.js";import{f as L,l as S,n as _,t as z,u as j}from"./BK_hWmGs.js";import{t as P}from"./cBUXG_uS.js";import{n as O}from"./QxKjlE-j.js";import{t as R}from"./Bki5T_lb.js";import{n as U,r as $,t as F}from"./BuhJHzFX.js";import{n as G}from"./CXRH3zmy.js";import{t as B}from"./DKxH7j1t2.js";import{n as V,t as D}from"./7IEzYICH2.js";import{a as W,i as H,n as K,o as Q,r as Y,s as Z,t as J}from"./Be3fjihP2.js";import{a as X,n as ee,o as te,r as ne,t as re}from"./BrDFXZq12.js";function oe(e){return["react-photo-album",e].filter(Boolean).join("--")}function ie({width:e,height:t}){const n=e/t;return Number.isFinite(n)?n:1}var ae=Object.freeze([1200,600,300,0]);function se(e,t){return"function"==typeof e?e(t):e}function le(e,t){return void 0!==t?se(e,t):void 0}function ce(e,t,n,r=0){if(void 0===t)return;const o=le(e,t);return Math.round(Math.max(void 0===o?function(e,t){const n=ae.findIndex(e=>e<=t);return se(e[Math.max(n,0)],t)}(n,t):o,r))}function de(e,{spacing:t,padding:n,componentsProps:r,render:o}){return{spacing:ce(t,e,[20,15,10,5]),padding:ce(n,e,[0,0,0,0]),componentsProps:se(r,e)||{},render:se(o,e)}}function ue(e,t=0){const n=10**t;return Math.round((e+Number.EPSILON)*n)/n}function he(e,t,n,r,o,i,a){let s,l;const c=e=>{const t=i*(o-1)+2*a*o;return`calc((${e.match(/^\s*calc\((.*)\)\s*$/)?.[1]??e} - ${t}px) / ${ue((r-t)/n,5)})`},d=e.srcSet;return d&&d.length>0&&(s=d.concat(d.some(({width:t})=>t===e.width)?[]:[{src:e.src,width:e.width,height:e.height}]).sort((e,t)=>e.width-t.width).map(e=>`${e.src} ${e.width}w`).join(", ")),l=t?.size?(t.sizes||[]).map(({viewport:e,size:t})=>`${e} ${c(t)}`).concat(c(t.size)).join(", "):`${Math.ceil(n/r*100)}vw`,{srcSet:s,sizes:l}}var pe=l(function({as:e,render:t,context:n,classes:r=[],variables:o={},style:i,className:a,children:s,...l},c){const d=function(...e){return e.filter(Boolean).join(" ")}(...(Array.isArray(r)?r:[r]).filter(e=>"string"==typeof e).map(oe),a),u={style:{...Object.fromEntries(Object.entries(o).map(([e,t])=>{return[(n=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),`--${oe(n)}`),"number"==typeof t?ue(t,5):t];var n})),...i},className:d,children:s,...l};if(t){const e=t({ref:c,...u},n);if(e)return e}return p(e||"div",{ref:c,...u})}),me=l(function({photo:e,index:t,width:n,height:r,onClick:o,render:{wrapper:i,link:a,button:s,image:l,extras:c}={},componentsProps:{link:d,button:u,wrapper:h,image:m}={}},g){const{href:f}=e,v={photo:e,index:t,width:ue(n,3),height:ue(r,3)};let w;return w=f?{...d,as:"a",render:a,classes:["photo","link"],href:f,onClick:o}:o?{...u,as:"button",type:"button",render:s,classes:["photo","button"],onClick:o}:{...h,render:i,classes:"photo"},p(pe,{ref:g,variables:{photoWidth:v.width,photoHeight:v.height},context:v,...w,children:[p(pe,{as:"img",classes:"image",render:l,context:v,...m}),c?.({},v)]})}),ge=l(function({layout:t,sizes:n,model:r,skeleton:o,onClick:i,render:{container:a,track:s,photo:l,...c}={},componentsProps:{container:d,track:u,link:h,button:m,wrapper:g,image:f}={}},v){const{spacing:w,padding:y,containerWidth:b,tracks:x,variables:N,horizontal:k}=r||{};return p(pe,{role:"group","aria-label":"Photo album",...d,variables:{spacing:w,padding:y,containerWidth:b,...N},classes:["",t],render:a,ref:v,children:[void 0!==w&&void 0!==y&&void 0!==b&&x?.map(({photos:t,variables:r},o)=>{const a=t.length,d=k?a:x.length;return e(pe,{...u,key:o,render:s,classes:"track",variables:{trackSize:a,...r}},t.map(e=>{const{photo:t,index:r,width:o}=e,{key:a,src:s,alt:u="",title:v,label:x}=t,N=i?e=>{i({event:e,photo:t,index:r})}:void 0;if(l){const t=l({onClick:N},e);if(t)return t}const k=e=>x?{"aria-label":x,...e}:e;return p(me,{onClick:N,render:c,componentsProps:{image:{loading:"lazy",decoding:"async",src:s,alt:u,title:v,...he(t,n,o,b,d,w,y),...se(f,e)},link:k(se(h,e)),button:k(se(m,e)),wrapper:se(g,e)},...e},a??r)}))}),void 0===b&&o]})});function fe(e,t,n,r){return(t-(e.length-1)*n-2*r*e.length)/e.reduce((e,t)=>e+ie(t),0)}function ve(e,t,n,r,o,i,a){const s=e.slice(t,n),l=fe(s,r,o,i);return l>0?(l-a)**2*s.length:void 0}function we(e,t){const[n,r]=e;if(n===t)return e;if(void 0!==r&&void 0!==t&&void 0!==n&&t===r&&Math.abs(t-n)<=20){const o=Math.min(n,t),i=Math.max(n,t);return o===n&&i===r?e:[o,i]}return[t,n]}function ye(e,t,n){const[[r],a]=o(we,[n]),l=function(e){const[t,n]=s(e);return e===t||e&&t&&e.length===t.length&&!e.some((e,n)=>e!==t[n])?t:(n(e),e)}(t),c=i(void 0);return{containerRef:m(t=>{c.current?.disconnect(),c.current=void 0;const n=()=>a(function(e,t){let n=e?.clientWidth;if(void 0!==n&&t&&t.length>0){const e=[...t.filter(e=>e>0)].sort((e,t)=>t-e);e.push(Math.floor(e[e.length-1]/2)),n=e.find((t,r)=>t<=n||r===e.length-1)}return n}(t,l));n(),t&&"undefined"!=typeof ResizeObserver&&(c.current=new ResizeObserver(n),c.current.observe(t)),"function"==typeof e?e(t):e&&(e.current=t)},[e,l]),containerWidth:r}}var be=l(function({photos:e,breakpoints:t,defaultContainerWidth:n,...r},o){const{containerRef:i,containerWidth:a}=ye(o,t,n),{spacing:s,padding:l,targetRowHeight:c,minPhotos:d,maxPhotos:u,...m}=function(e,{photos:t,targetRowHeight:n,rowConstraints:r,...o}){const{spacing:i,padding:a,componentsProps:s,render:l}=de(e,o),{singleRowMaxHeight:c,minPhotos:d,maxPhotos:u}=le(r,e)||{};if(void 0!==c&&void 0!==i&&void 0!==a){const e=Math.floor(t.reduce((e,{width:t,height:n})=>e+t/n*c+2*a,i*(t.length-1)));e>0&&(s.container={...s.container},s.container.style={maxWidth:e,...s.container.style})}return{...o,targetRowHeight:ce(n,e,[e=>e/5,e=>e/4,e=>e/3,e=>e/2]),render:l,spacing:i,padding:a,minPhotos:d,maxPhotos:u,componentsProps:s}}(a,{photos:e,...r});return p(ge,{layout:"rows",ref:i,model:h(()=>void 0!==a&&void 0!==s&&void 0!==l&&void 0!==c?function(e,t,n,r,o,i,a){const s=Math.min(function(e,t,n,r){return ue(t/n/Math.min(...e.map(e=>ie(e))))+(r||0)+2}(e,r,o,i),a||1/0),l=i||1,c=e.length,d=new Array(c+1).fill(1/0),u=new Array(c+1).fill(-1);d[0]=0;for(let m=1;m<=c;m+=1)for(let i=m-l;i>=Math.max(0,m-s);i-=1){if(d[i]===1/0)continue;const a=ve(e,i,m,r,t,n,o);if(void 0===a)break;const s=d[i]+a;(d[m]===1/0||d[m]>s&&(d[m]/s>1.005||-1!==u[m]&&u[m]<i))&&(d[m]=s,u[m]=i)}if(d[c]===1/0)return;const h=[];for(let m=c;0!==m;m=u[m])h.push(m);h.push(0),h.reverse();const p=[];for(let m=1;m<h.length;m+=1){const o=e.slice(h[m-1],h[m]).map((e,t)=>({photo:e,index:h[m-1]+t})),i=fe(o.map(({photo:e})=>e),r,t,n);p.push({photos:o.map(({photo:e,index:t})=>({photo:e,index:t,width:i*ie(e),height:i}))})}return{spacing:t,padding:n,containerWidth:r,tracks:p,horizontal:!0}}(e,s,l,a,c,d,u):void 0,[e,s,l,a,c,d,u]),...m})});function xe(e,t,n,r,o,i,a){const s=[],l=a.reduce((e,t)=>e+t,0);for(let c=0;c<e.length-1;c+=1){const d=t.slice(e[c],e[c+1]).map((t,n)=>({photo:t,index:e[c]+n})),u=a.reduce((e,t,n)=>e+(i[c]-i[n])*t,0),h=(o-(e.length-2)*n-2*(e.length-1)*r-u)*a[c]/l;s.push({photos:d.map(({photo:e,index:t})=>({photo:e,index:t,width:h,height:h/ie(e)})),variables:{adjustedGaps:u,columnRatio:a[c]}})}return{tracks:s,variables:{totalRatio:l}}}function Ne(e,t,n,r,o,i){const a=[],s=[];if(e.length<=i){const o=e.length>0?e.reduce((e,t)=>e+ie(t),0)/e.length:1;for(let t=0;t<i;t+=1)a[t]=2*n,s[t]=t<e.length?ie(e[t]):o;return xe(Array.from({length:i+1},(t,n)=>Math.min(n,e.length)),e,t,n,r,a,s)}const l=(c=function(e,t,n,r,o){return i=>{const a=[],s=1.5*o;let l=r/ie(e[i])+2*n;for(let c=i+1;c<e.length+1&&(a.push([c,(o-l)**2]),!(l>s||c===e.length));c+=1)l+=r/ie(e[c])+t+2*n;return a}}(e,t,n,o,(e.reduce((e,t)=>e+o/ie(t),0)+t*(e.length-i)+2*n*e.length)/i),d=i,u=0,h=e.length,function(e,t,n){const r=[n];for(let o=n,i=t;i>0;i-=1)[o]=e.get(o)[i],r.push(o);return r.reverse()}(function(e,t,n,r){const o=/* @__PURE__ */new Map,i=/* @__PURE__ */new Set;i.add(n);for(let a=0;a<t;a+=1){const n=[...i.keys()];i.clear(),n.forEach(n=>{const s=a>0?o.get(n)[a][1]:0;e(n).forEach(([e,l])=>{let c=o.get(e);c||(c=[],o.set(e,c));const d=s+l,u=c[a+1];(!u||u[1]>d&&(u[1]/d>1.0001||n<u[0]))&&(c[a+1]=[n,d]),a<t-1&&e!==r&&i.add(e)})})}return o}(c,d,u,h),d,h));var c,d,u,h;for(let p=0;p<l.length-1;p+=1){const r=e.slice(l[p],l[p+1]);a[p]=t*(r.length-1)+2*n*r.length,s[p]=1/r.reduce((e,t)=>e+1/ie(t),0)}return xe(l,e,t,n,r,a,s)}function ke(e,t,n,r,o){const{tracks:i,variables:a}=Ne(e,t,n,r,(r-t*(o-1)-2*n*o)/o,o);return i.some(e=>e.photos.some(({width:e,height:t})=>e<=0||t<=0))?o>1?ke(e,t,n,r,o-1):void 0:{tracks:i,spacing:t,padding:n,containerWidth:r,variables:{columns:o,...a}}}var Te=l(function({photos:e,breakpoints:t,defaultContainerWidth:n,...r},o){const{containerRef:i,containerWidth:a}=ye(o,t,n),{spacing:s,padding:l,columns:c,...d}=function(e,{columns:t,...n}){return{...n,...de(e,n),columns:ce(t,e,[5,4,3,2],1)}}(a,{photos:e,...r});return p(ge,{layout:"columns",ref:i,model:h(()=>void 0!==a&&void 0!==s&&void 0!==l&&void 0!==c?ke(e,s,l,a,c):void 0,[e,s,l,a,c]),...d})});function Ce(e,t,n,r,o){const i=(r-t*(o-1)-2*n*o)/o;if(i<=0)return o>1?Ce(e,t,n,r,o-1):void 0;const a=[];for(let l=0;l<o;l+=1)a[l]=0;const s=e.reduce((e,r,o)=>{const s=a.reduce((e,t,n)=>t<a[e]-1?n:e,0);return a[s]=a[s]+i/ie(r)+t+2*n,e[s].push({photo:r,index:o}),e},Array.from({length:o},()=>[]));return{spacing:t,padding:n,containerWidth:r,variables:{columns:o},tracks:s.map(e=>({photos:e.map(({photo:e,index:t})=>({photo:e,index:t,width:i,height:i/ie(e)}))}))}}var Ie=l(function({photos:e,breakpoints:t,defaultContainerWidth:n,...r},o){const{containerRef:i,containerWidth:a}=ye(o,t,n),{spacing:s,padding:l,columns:c,...d}=function(e,{columns:t,...n}){return{...n,...de(e,n),columns:ce(t,e,[5,4,3,2],1)}}(a,{photos:e,...r});return p(ge,{layout:"masonry",ref:i,model:h(()=>void 0!==a&&void 0!==s&&void 0!==l&&void 0!==c?Ce(e,s,l,a,c):void 0,[e,s,l,a,c]),...d})}),Ee={[String(M.NONE)]:function({className:e}){/* @__PURE__ */
2
- return p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */p("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm0-2h14V5H5z"})})},[M.LINK]:function({className:e}){/* @__PURE__ */
3
- return p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */p("path",{fill:"currentColor",d:"M7.95 21q-2.05 0-3.5-1.45T3 16.05q0-1 .375-1.9t1.075-1.6l2.625-2.625q.3-.3.713-.3t.712.3t.3.7t-.3.7l-2.65 2.65q-.425.425-.637.963T5 16.05q0 1.225.863 2.088T7.95 19q.575 0 1.125-.213t.975-.637l2.625-2.65q.3-.275.7-.275t.7.3t.3.7t-.3.7L11.45 19.55q-.7.7-1.6 1.075T7.95 21m1.25-6.2q-.3-.3-.3-.712t.3-.713L13.375 9.2q.3-.3.713-.3t.712.3t.3.713t-.3.712L10.625 14.8q-.3.3-.712.3t-.713-.3m6.3-.725q-.3-.3-.3-.7t.3-.7l2.65-2.625q.425-.425.625-.95t.2-1.1q0-1.25-.85-2.125T16.025 5q-.575 0-1.112.213t-.963.637L11.325 8.5q-.3.3-.7.3t-.7-.3t-.3-.712t.3-.713L12.55 4.45q.7-.7 1.6-1.075T16.05 3q2.05 0 3.488 1.45t1.437 3.525q0 .975-.363 1.875t-1.062 1.6l-2.625 2.625q-.3.3-.712.3t-.713-.3"})})},[M.EMAIL]:function({className:e}){/* @__PURE__ */
4
- return p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */p("path",{fill:"currentColor",d:"M12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12v1.45q0 1.475-1.012 2.513T18.5 17q-.875 0-1.65-.375t-1.3-1.075q-.725.725-1.638 1.088T12 17q-2.075 0-3.537-1.463T7 12t1.463-3.537T12 7t3.538 1.463T17 12v1.45q0 .65.425 1.1T18.5 15t1.075-.45t.425-1.1V12q0-3.35-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20h4q.425 0 .713.288T17 21t-.288.713T16 22zm2.125-7.875Q15 13.25 15 12t-.875-2.125T12 9t-2.125.875T9 12t.875 2.125T12 15t2.125-.875"})})},[M.PHONE]:function({className:e}){/* @__PURE__ */
5
- return p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */p("path",{fill:"currentColor",d:"M19.95 21q-3.125 0-6.175-1.362t-5.55-3.863t-3.862-5.55T3 4.05q0-.45.3-.75t.75-.3H8.1q.35 0 .625.238t.325.562l.65 3.5q.05.4-.025.675T9.4 8.45L6.975 10.9q.5.925 1.187 1.787t1.513 1.663q.775.775 1.625 1.438T13.1 17l2.35-2.35q.225-.225.588-.337t.712-.063l3.45.7q.35.1.575.363T21 15.9v4.05q0 .45-.3.75t-.75.3M6.025 9l1.65-1.65L7.25 5H5.025q.125 1.025.35 2.025T6.025 9m8.95 8.95q.975.425 1.988.675T19 18.95v-2.2l-2.35-.475zm0 0"})})},[M.SMS]:function({className:e}){/* @__PURE__ */
6
- return p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */p("path",{fill:"currentColor",d:"m6 18l-2.3 2.3q-.475.475-1.088.213T2 19.575V4q0-.825.588-1.412T4 2h16q.825 0 1.413.588T22 4v12q0 .825-.587 1.413T20 18zm-.85-2H20V4H4v13.125zM4 16V4zm4.713-5.288Q9 10.425 9 10t-.288-.712T8 9t-.712.288T7 10t.288.713T8 11t.713-.288m4 0Q13 10.426 13 10t-.288-.712T12 9t-.712.288T11 10t.288.713T12 11t.713-.288m4 0Q17 10.426 17 10t-.288-.712T16 9t-.712.288T15 10t.288.713T16 11t.713-.288"})})},[M.WHATSAPP]:function({className:e}){/* @__PURE__ */
7
- return p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 258",className:e,"aria-hidden":"true",focusable:"false",children:[
8
- /* @__PURE__ */p("defs",{children:[/* @__PURE__ */p("linearGradient",{id:"SVGK3KZq49U",x1:"50%",x2:"50%",y1:"100%",y2:"0%",children:[/* @__PURE__ */p("stop",{offset:"0%","stop-color":"#1faf38"}),/* @__PURE__ */p("stop",{offset:"100%","stop-color":"#60d669"})]}),/* @__PURE__ */p("linearGradient",{id:"SVGefMkoEOd",x1:"50%",x2:"50%",y1:"100%",y2:"0%",children:[/* @__PURE__ */p("stop",{offset:"0%","stop-color":"#f9f9f9"}),/* @__PURE__ */p("stop",{offset:"100%","stop-color":"#fff"})]})]}),
9
- /* @__PURE__ */p("path",{fill:"url(#SVGK3KZq49U)",d:"M5.463 127.456c-.006 21.677 5.658 42.843 16.428 61.499L4.433 252.697l65.232-17.104a123 123 0 0 0 58.8 14.97h.054c67.815 0 123.018-55.183 123.047-123.01c.013-32.867-12.775-63.773-36.009-87.025c-23.23-23.25-54.125-36.061-87.043-36.076c-67.823 0-123.022 55.18-123.05 123.004"}),
10
- /* @__PURE__ */p("path",{fill:"url(#SVGefMkoEOd)",d:"M1.07 127.416c-.007 22.457 5.86 44.38 17.014 63.704L0 257.147l67.571-17.717c18.618 10.151 39.58 15.503 60.91 15.511h.055c70.248 0 127.434-57.168 127.464-127.423c.012-34.048-13.236-66.065-37.3-90.15C194.633 13.286 162.633.014 128.536 0C58.276 0 1.099 57.16 1.071 127.416m40.24 60.376l-2.523-4.005c-10.606-16.864-16.204-36.352-16.196-56.363C22.614 69.029 70.138 21.52 128.576 21.52c28.3.012 54.896 11.044 74.9 31.06c20.003 20.018 31.01 46.628 31.003 74.93c-.026 58.395-47.551 105.91-105.943 105.91h-.042c-19.013-.01-37.66-5.116-53.922-14.765l-3.87-2.295l-40.098 10.513z"}),
11
- /* @__PURE__ */p("path",{fill:"#fff",d:"M96.678 74.148c-2.386-5.303-4.897-5.41-7.166-5.503c-1.858-.08-3.982-.074-6.104-.074c-2.124 0-5.575.799-8.492 3.984c-2.92 3.188-11.148 10.892-11.148 26.561s11.413 30.813 13.004 32.94c1.593 2.123 22.033 35.307 54.405 48.073c26.904 10.609 32.379 8.499 38.218 7.967c5.84-.53 18.844-7.702 21.497-15.139c2.655-7.436 2.655-13.81 1.859-15.142c-.796-1.327-2.92-2.124-6.105-3.716s-18.844-9.298-21.763-10.361c-2.92-1.062-5.043-1.592-7.167 1.597c-2.124 3.184-8.223 10.356-10.082 12.48c-1.857 2.129-3.716 2.394-6.9.801c-3.187-1.598-13.444-4.957-25.613-15.806c-9.468-8.442-15.86-18.867-17.718-22.056c-1.858-3.184-.199-4.91 1.398-6.497c1.431-1.427 3.186-3.719 4.78-5.578c1.588-1.86 2.118-3.187 3.18-5.311c1.063-2.126.531-3.986-.264-5.579c-.798-1.593-6.987-17.343-9.819-23.64"})]})},[M.MESSENGER]:function({className:e}){/* @__PURE__ */
12
- return p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256",className:e,"aria-hidden":"true",focusable:"false",children:[
13
- /* @__PURE__ */p("defs",{children:/* @__PURE__ */p("radialGradient",{id:"SVGhphmYc3G",cx:"19.247%",cy:"99.465%",r:"108.96%",fx:"19.247%",fy:"99.465%",children:[
14
- /* @__PURE__ */p("stop",{offset:"0%","stop-color":"#09f"}),
15
- /* @__PURE__ */p("stop",{offset:"60.975%","stop-color":"#a033ff"}),
16
- /* @__PURE__ */p("stop",{offset:"93.482%","stop-color":"#ff5280"}),
17
- /* @__PURE__ */p("stop",{offset:"100%","stop-color":"#ff7061"})]})}),
18
- /* @__PURE__ */p("path",{fill:"url(#SVGhphmYc3G)",d:"M128 0C55.894 0 0 52.818 0 124.16c0 37.317 15.293 69.562 40.2 91.835c2.09 1.871 3.352 4.493 3.438 7.298l.697 22.77c.223 7.262 7.724 11.988 14.37 9.054L84.111 243.9a10.22 10.22 0 0 1 6.837-.501c11.675 3.21 24.1 4.92 37.052 4.92c72.106 0 128-52.818 128-124.16S200.106 0 128 0"}),
19
- /* @__PURE__ */p("path",{fill:"#fff",d:"m51.137 160.47l37.6-59.653c5.98-9.49 18.788-11.853 27.762-5.123l29.905 22.43a7.68 7.68 0 0 0 9.252-.027l40.388-30.652c5.39-4.091 12.428 2.36 8.82 8.085l-37.6 59.654c-5.981 9.489-18.79 11.852-27.763 5.122l-29.906-22.43a7.68 7.68 0 0 0-9.25.027l-40.39 30.652c-5.39 4.09-12.427-2.36-8.818-8.085"})]})}},qe=({open:e,ad:t,onClose:n,captureAdClick:r})=>{const o=Boolean(t?.targetType&&t.targetType!==M.NONE),i=Ee[t?.targetType]??Ee[M.LINK],a=t?.imageUrl&&R(t.imageUrl,["http:","https:"])?t.imageUrl:void 0;/* @__PURE__ */
20
- return p(re,{open:Boolean(e&&t),onOpenChange:e=>!e&&n?.(),children:/* @__PURE__ */p(ee,{className:"border-none p-0",children:[/* @__PURE__ */p(X,{className:"sr-only",children:[/* @__PURE__ */p(te,{children:t?.title}),/* @__PURE__ */p(ne,{children:t?.description})]}),/* @__PURE__ */p("div",{className:"flex max-w-2xl flex-col overflow-hidden",children:[a&&/* @__PURE__ */p("img",{className:"h-auto w-full object-contain sm:max-h-96",src:a,alt:t?.title||"Advertisement"}),
21
- /* @__PURE__ */p("div",{className:"flex flex-col gap-2 p-3",children:[/* @__PURE__ */p(P,{variant:"h4",align:"center",lines:2,children:t?.title}),/* @__PURE__ */p(P,{variant:"body3",color:"secondary",align:"center",lines:4,children:t?.description})]}),o&&/* @__PURE__ */p(B,{fullWidth:!0,className:"rounded-none",onClick:()=>{r?.(t?._id,t?.targetType??M.LINK,t?.targetUrl),n?.()},icon:/* @__PURE__ */p(i,{className:"size-5"}),children:t?.targetText})]})]})})};function Me(e,t){if(e.content?._id!==t.content?._id)return!1;if(e.style?.width!==t.style?.width||e.style?.height!==t.style?.height)return!1;for(const n of Object.keys(e))if("content"!==n&&"style"!==n&&e[n]!==t[n])return!1;return!0}var Ae=u(({style:e,content:t,curateLink:n,onAdClick:r,hideControls:o})=>{const{captureAdImpression:i,captureAdEngagement:a,captureAdClick:s}=K(),l=Boolean(n&&r),c=t.ctaBg||"#ff4800",d=t.ctaForeground||"#FFFFFF",u=Ee[t?.targetType??M.LINK];/* @__PURE__ */
22
- return p("div",{style:e,className:"group relative mb-1 overflow-hidden rounded",children:[
23
- /* @__PURE__ */p(O,{className:"size-full",threshold:.8,triggerOnce:!0,onChange:e=>{e&&i(t._id)},onClick:()=>a(t._id),children:/* @__PURE__ */p($,{url:t.src||t.imageUrl,thumbnailUrl:t.src||t.imageUrl,blurhash:t.blurhash,alt:t.caption,onClick:l?()=>r?.(t):void 0,pswpData:{id:t._id,type:C.AD,hash:t._id,width:t.width,height:t.height,title:t.title,description:t.description,targetType:t.targetType,targetText:t.targetText,targetUrl:t.targetUrl,thumbnailUrl:t.imageUrl,blurhash:t.blurhash}})}),
24
- /* @__PURE__ */p("span",{className:"bg-background/70 absolute top-1 right-1 rounded px-1 text-xs font-medium",children:"Ad"}),!o&&(t.title||t.targetType!==M.NONE)&&/* @__PURE__ */p("div",{className:"absolute bottom-0 flex w-full flex-col lg:opacity-0 lg:transition-opacity lg:group-hover:opacity-100",children:[t.title&&/* @__PURE__ */p("div",{className:"bg-background/60 px-3 py-1",children:/* @__PURE__ */p("h3",{className:"line-clamp-1 text-sm font-medium",children:t.title})}),t?.targetType!==M.NONE&&/* @__PURE__ */p("button",{type:"button",className:"flex w-full items-center justify-center gap-1 rounded-none border-0 py-2 text-nowrap sm:gap-2",style:{backgroundColor:c,color:d},onClick:()=>{l?r?.(t):s(t._id,t.targetType,t.targetUrl)},children:[/* @__PURE__ */p("span",{style:{color:d},children:/* @__PURE__ */p(u,{})}),t?.targetText]})]})]})},Me),Le=u(({style:e,gamConfig:t,slotIndex:n,eventId:o,organizationId:a})=>{const l=i(null),c=i(null),{trackGamAnalytics:d}=K(),[u,h]=s(!1),m=`gam-slot-${o??"ev"}-${n}`,g=Math.max(1,Math.round(e?.width||t.sizes[0]?.[0]||300)),f=Math.max(1,Math.round(e?.height||t.sizes[0]?.[1]||250)),v=i({w:g,h:f});return r(()=>{if(!u)return;let e=!1,n=null,r=null,i=null,s=null;return(async()=>{await W(),!e&&l.current&&window.googletag.cmd.push(()=>{if(e)return;Y(m);const{w:u,h:h}=v.current,p=[[u,h],...t.sizes],g=window.googletag.defineSlot(t.adUnitPath,p,m)?.addService(window.googletag.pubads());if(!g)return;c.current=g,r=window.googletag.pubads(),o?g.setConfig({targeting:{qrati_event:o,...t.categories.length>0?{qrati_category:t.categories}:{}}}):t.categories.length>0&&g.setConfig({targeting:{qrati_category:t.categories}}),i=e=>{e.slot===g&&d({eventId:o,organizationId:a,type:T.GAM_IMPRESSION,creativeId:String(e.creativeId??""),lineItemId:String(e.lineItemId??""),advertiserId:String(e.advertiserId??""),isEmpty:e.isEmpty??!1})},r.addEventListener("slotRenderEnded",i),s=e=>{e.slot===g&&d({eventId:o,organizationId:a,type:T.GAM_VIEWABLE})},r.addEventListener("impressionViewable",s);const f=l.current;f&&(n=J({container:f,onClick:()=>{d({eventId:o,organizationId:a,type:T.GAM_CLICK})}}),H(),window.googletag.display(m))})})(),()=>{e=!0,n?.(),r&&"function"==typeof r.removeEventListener&&(i&&r.removeEventListener("slotRenderEnded",i),s&&r.removeEventListener("impressionViewable",s));const t=c.current;c.current=null,t&&window.googletag?.cmd?.push(()=>{window.googletag.destroySlots([t])})}},[u,o,t.adUnitPath,t.categories,a,m]),/* @__PURE__ */p("div",{style:{width:g,height:f},className:"relative overflow-hidden rounded bg-neutral-100 dark:bg-neutral-800","data-gam-slot-index":n,children:/* @__PURE__ */p(O,{className:"size-full",threshold:.1,rootMargin:"200px",triggerOnce:!0,onChange:h,children:/* @__PURE__ */p("div",{id:m,ref:l,style:{width:g,height:f},className:"gam-ad-slot"})})})},Me),Se=(e,t)=>{if(!e||!t)return null;const n=t[e];if(!n)return null;try{const e=new Date(String(n)),t=/* @__PURE__ */new Date,r=e.getFullYear()===t.getFullYear(),o={weekday:"long",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0};return r||(o.year="numeric"),e.toLocaleString("en-US",o).replace(","," •")}catch{return null}},_e=t(null),ze=()=>{const e=f(_e);if(!e)throw new Error("Popover components must be used within a Popover");return e},je=({children:e,className:t,open:n,onOpenChange:r})=>{const[o,l]=s(!1),c="boolean"==typeof n,d=c?n:o,u=a(),h=`popover-trigger-${u}`,m=`popover-content-${u}`,g=i(null);/* @__PURE__ */
25
- return p(_e.Provider,{value:{isOpen:d,setIsOpen:e=>{c||l(e),r?.(e)},triggerId:h,contentId:m,triggerRef:g},children:/* @__PURE__ */p("div",{"data-slot":"popover",className:y("relative inline-block",t),children:e})})},Pe=({children:e,asChild:t,className:r,onClick:o,...i})=>{const{isOpen:a,setIsOpen:s,triggerId:l,contentId:c,triggerRef:d}=ze();if(t){const t=Array.isArray(e)?e[0]:e;if(t&&t.type){const e=t.props?.className;return n(t,{ref:e=>{d.current=e},id:l,className:r?e?`${e} ${r}`:r:e,"aria-haspopup":"dialog","aria-expanded":a,"aria-controls":a?c:void 0,onClick:e=>{s(!a),t.props?.onClick?.(e)},"data-state":a?"open":"closed"})}}/* @__PURE__ */
26
- return p("button",{ref:d,id:l,type:"button","aria-haspopup":"dialog","aria-expanded":a,"aria-controls":a?c:void 0,"data-slot":"popover-trigger","data-state":a?"open":"closed",className:r,onClick:e=>{s(!a),o?.(e)},...i,children:e})},Oe=({children:e,className:t,align:n="center",side:o="top",sideOffset:a=4,...l})=>{const{isOpen:u,setIsOpen:h,contentId:m,triggerRef:g}=ze(),{organization:f,portalContainer:w}=b(),x=i(null),[N,k]=s(null);if(c(()=>{if(!u)return;const e=()=>{if(!g.current||!x.current)return;const e=g.current.getBoundingClientRect(),t=x.current.getBoundingClientRect();let r=e.left,i=e.bottom+a;"center"===n&&(r=e.left+e.width/2-t.width/2),"end"===n&&(r=e.right-t.width),"top"===o&&(i=e.top-t.height-a),"left"===o&&(r=e.left-t.width-a,i=e.top+e.height/2-t.height/2),"right"===o&&(r=e.right+a,i=e.top+e.height/2-t.height/2),"bottom"===o&&(i=e.bottom+a),k({top:i,left:r})},t=requestAnimationFrame(e);return window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),()=>{cancelAnimationFrame(t),window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}},[n,u,o,a,g]),r(()=>{if(!u)return;const e=e=>{const t="function"==typeof e.composedPath?e.composedPath():[],n=e.target,r=x.current&&(x.current.contains(n)||t.includes(x.current)),o=g.current&&(g.current.contains(n)||t.includes(g.current));r||o||h(!1)},t=e=>{"Escape"===e.key&&(h(!1),g.current?.focus())},n=window.setTimeout(()=>{document.addEventListener("mousedown",e)},0);return document.addEventListener("keydown",t),()=>{window.clearTimeout(n),document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[u,h,g]),!u)return null;const T=/* @__PURE__ */p("div",{ref:x,id:m,role:"dialog","aria-modal":"false","data-state":u?"open":"closed",className:y("bg-background text-foreground border-border shadow-outer rounded outline-none",t),style:{position:"fixed",top:N?.top??0,left:N?.left??0,zIndex:2010,...v(f)},...l,children:e});return"undefined"!=typeof document?d(T,w??document.body):T},Re=({eventId:e,contentId:t,emojis:n=[],counts:o={},userReaction:a})=>{const{user:l,props:c,organization:d}=b(),u=c?.loginUrl,{handleReactionClick:h,isPending:m}=(()=>{const e=w(),{props:t,user:n}=b(),r=t?.organizationId,o=x({mutationFn:async({eventId:e,contentId:t,emoji:o})=>N.post(q.UPDATE_REACTION,{json:{eventId:e,contentId:t,reaction:o},headers:{"x-org-id":r,Authorization:`Bearer ${n?.token}`}}).json(),onMutate:async({eventId:t,contentId:n,emoji:r})=>{const o=[k.CONTENTS_BY_EVENT(t)];await e.cancelQueries({queryKey:o});const i=e.getQueriesData({queryKey:o});return e.setQueriesData({queryKey:o},e=>((e,t,n)=>e?.pages&&Array.isArray(e.pages)?{...e,pages:e.pages.map(e=>e.data?{...e,data:e.data.map(e=>{if(e._id!==t)return e;const r={...e.reactionCounts??{}};return e.userReaction&&e.userReaction!==n&&(r[e.userReaction]=Math.max(0,(r[e.userReaction]??1)-1)),e.userReaction===n?e:(r[n]=(r[n]??0)+1,{...e,reactionCounts:r,userReaction:n})})}:e)}:e)(e,n,r)),{previousData:i}},onError:(t,n,r)=>{r?.previousData?.forEach(([t,n])=>{e.setQueryData(t,n)}),G.error("Failed to add reaction"),console.error("Error handling reaction click:",t,n)},onSuccess:(t,{eventId:n})=>{e.invalidateQueries({queryKey:[k.CONTENTS_BY_EVENT(n)]})}});return{handleReactionClick:async(e,t,r)=>{if(!e||!t||!r)return!1;if(!n)return G.error("Please login to react"),!1;try{return await o.mutateAsync({eventId:e,contentId:t,emoji:r}),!0}catch(i){return!1}},isPending:o.isPending}})(),[g,f]=s(!1),[v,T]=s(null),C=i(null),I=n.reduce((e,t)=>e+(o[t]||0),0);return r(()=>()=>{C.current&&clearTimeout(C.current)},[]),/* @__PURE__ */p(je,{open:g,onOpenChange:f,children:[/* @__PURE__ */p(Pe,{asChild:!0,children:/* @__PURE__ */p("button",{type:"button",className:y("bg-background/50 flex items-center gap-1 rounded px-2 py-1 backdrop-blur-sm transition-transform duration-150 ease-out will-change-transform active:scale-95 sm:gap-2 sm:py-0",v&&"scale-[1.03] shadow-sm"),children:[(n||[]).slice().sort((e,t)=>(o[t]||0)-(o[e]||0)).slice(0,1).map(e=>/* @__PURE__ */p("span",{className:y("text-sm transition-transform duration-150 ease-out sm:text-lg",v===(a||e)&&"scale-125"),children:a||e},`${t}-${e}-1`)),I>0&&/* @__PURE__ */p("span",{className:"text-xs font-bold sm:text-sm",children:I||0})]})}),/* @__PURE__ */p(Oe,{side:"top",align:"end",children:[l?null:/* @__PURE__ */p("div",d?.customAuth?{className:"p-2 font-semibold",children:["Please"," ",
27
- /* @__PURE__ */p("a",{className:"text-info underline",href:u,children:"Login"})," ","to react"]}:{className:"p-2 font-semibold",children:["Please"," ",
28
- /* @__PURE__ */p(z,{className:"text-info underline",to:A.LOGIN,children:"Login"})," ","to react"]}),l&&/* @__PURE__ */p("div",{className:"flex gap-1 p-2",children:n.map(n=>{const r=a===n;/* @__PURE__ */
29
- return p("div",{className:"flex flex-col items-center",children:[/* @__PURE__ */p("span",{className:"text-xs font-medium",children:o[n]||0}),/* @__PURE__ */p("button",{type:"button",disabled:m,className:y("text-3xl transition-transform duration-150 ease-out disabled:opacity-50",r?"scale-125":"hover:scale-110",v===n&&"scale-125",m&&"cursor-not-allowed"),onClick:()=>(async n=>{!m&&h&&(T(n),f(!1),C.current&&clearTimeout(C.current),C.current=setTimeout(()=>T(null),180),h(e,t,n))})(n),children:n})]},`${t}-${n}-2`)})})]})]})},Ue=({event:e={},content:t,curateLink:n})=>{if(e.engagementStyle===I.CONTEST||n){const e=/* @__PURE__ */p("span",{className:"bg-background/75 flex items-center gap-1 rounded px-2 py-1",children:[/* @__PURE__ */p(Z,{className:"size-4"}),/* @__PURE__ */p("span",{className:"text-xs font-semibold",children:parseFloat(String(t.score||0)).toFixed(1)})]});return n?/* @__PURE__ */p(_,{to:n,children:e}):e}return e.engagementStyle===I.REACTION&&e.reactionEmojis?.length?/* @__PURE__ */p(Re,{eventId:e?._id,contentId:t._id,emojis:e?.reactionEmojis,counts:t.reactionCounts||{},userReaction:t.userReaction}):null},$e=({content:e})=>/* @__PURE__ */p("div",{className:"w-full space-y-3 px-3 pb-3",children:[e?.caption&&/* @__PURE__ */p("span",{"data-tooltip-target":"tooltip-default",className:"hidden w-full text-xs drop-shadow-[0_1.2px_1.2px_rgba(0,0,0,0.8)] sm:block",children:/* @__PURE__ */p("div",{role:"note",title:e?.caption,className:"lg:text-md line-clamp-1 text-xs text-white lg:font-medium",children:e?.caption})}),/* @__PURE__ */p("div",{className:"flex items-center justify-between",children:/* @__PURE__ */p("span",{className:"lg:text-md line-clamp-1 text-sm font-medium text-white drop-shadow-[0_1.2px_1.2px_rgba(0,0,0,0.8)]",children:e?.user?.name})})]}),Fe=u(({event:e,content:t,style:n,timestampField:r,curateLink:o,onChangeFaceUrl:i,hideControls:a,showQuickSearch:s,imageSearchProviders:l=V,organizationId:c})=>{const d=`content-${t._id}`,u=h(()=>Se(r,t),[r,t]),f=m(()=>{i?.(t?.url);const e=document.getElementById("media-gallery-container");e&&e.scrollIntoView({behavior:"smooth",block:"start"})},[i,t?.url]),v=h(()=>({id:t._id,type:C.IMAGE,hash:t._id,width:t.width,height:t.height,thumbnailUrl:t.thumbnailUrl,blurhash:t.blurhash,caption:t.caption}),[t._id,t.width,t.height,t.thumbnailUrl,t.blurhash,t.caption]);/* @__PURE__ */
30
- return p("div",{id:d,style:n,className:"group relative mb-1 overflow-hidden rounded [content-visibility:auto]",children:[/* @__PURE__ */p($,{url:t.src,alt:t.caption,blurhash:t.blurhash,thumbnailUrl:t.thumbnailUrl,curateLink:o,pswpData:v}),!a&&/* @__PURE__ */p(g,{children:[u&&/* @__PURE__ */p("div",{className:"absolute top-2 left-2 max-w-[calc(100%-80px)] truncate rounded bg-black/50 px-2 py-0.5 text-xs text-white backdrop-blur-sm",children:u}),
31
- /* @__PURE__ */p("div",{className:"absolute top-2 right-2 flex flex-col gap-2",children:[s&&(t.faces?.length??0)>0&&/* @__PURE__ */p("button",{type:"button","aria-label":"Search by face",className:"bg-primary rounded-full p-1 text-gray-200 opacity-50 transition-[opacity,transform] sm:p-1.5 sm:hover:scale-110 sm:hover:opacity-100",onClick:f,children:/* @__PURE__ */p(Q,{className:"text-primary-foreground"})}),t.url&&/* @__PURE__ */p(D,{providers:l,imageUrl:t.url,surface:"gallery",organizationId:c,eventId:e?._id,contentId:t._id})]}),
32
- /* @__PURE__ */p("div",{className:"",children:[/* @__PURE__ */p("div",{className:"absolute bottom-0 w-full rounded-b",children:/* @__PURE__ */p($e,{content:t})}),/* @__PURE__ */p("div",{className:"absolute right-2 bottom-2",children:/* @__PURE__ */p(Ue,{event:e,content:t,curateLink:o})})]})]})]})},Me),Ge=u(({content:e,style:t,event:n,timestampField:r,curateLink:o,hideControls:i})=>{const a=h(()=>Se(r,e),[r,e]);/* @__PURE__ */
33
- return p("div",{id:`content-${e._id}`,className:"group relative mb-1 overflow-hidden rounded [content-visibility:auto]",style:t,children:[/* @__PURE__ */p($,{url:e.src??e.url,thumbnailUrl:e.thumbnailUrl,blurhash:e.blurhash,alt:e.caption,curateLink:o,pswpData:{id:e._id,type:C.VIDEO,hash:e._id,width:e.width,height:e.height,thumbnailUrl:e.thumbnailUrl,blurhash:e.blurhash,caption:e.caption}}),!i&&/* @__PURE__ */p("div",{className:"transition-opacity duration-500",children:[a&&/* @__PURE__ */p("div",{className:"absolute top-2 left-2 max-w-[calc(100%-80px)] truncate rounded bg-black/50 px-2 py-0.5 text-xs text-white backdrop-blur-sm",children:a}),
34
- /* @__PURE__ */p("div",{className:"absolute bottom-0 w-full rounded-b",children:/* @__PURE__ */p($e,{content:e})}),
35
- /* @__PURE__ */p("div",{className:"absolute right-2 bottom-2",children:/* @__PURE__ */p(Ue,{event:n,content:e,curateLink:o})})]})]})},Me),Be=({event:e,contents:t=[],gamConfig:n,singleColumnMode:o,kioskMode:a,timestampField:l,curateLink:c,onChangeFaceUrl:d,showQuickSearch:u})=>{const f=i(null),v=i(null),w=i(!1),x=i(null),N=h(()=>`gallery-${e?._id??""}`,[e?._id]),{captureAdImpression:k,captureAdClick:T}=K(),I=j(),q=S(),M=L(),{portalContainer:A,organization:_}=b(),z=_?._id,P=_?.advancedSettings?.imageSearchProviders?.gallery??V,O=_?.advancedSettings?.imageSearchProviders?.lightbox??V,[R,$]=s(null);r(()=>()=>{v.current?.destroy(),v.current=null,f.current?.destroy?.(),f.current=null},[e?.galleryLayout,c,N,A]);const G=m(async t=>{if(c||f.current||w.current)return;const n=x.current,r=t.target.closest("a");if(!n||!r||!n.contains(r))return;t.preventDefault(),w.current=!0;const o=Array.from(n.querySelectorAll("a")).indexOf(r);try{const[{default:t},{default:r},{default:i},{default:a},{default:s},{default:l},{default:c},{loadPhotoSwipe:d},u]=await Promise.all([import("./web.es.js").then(e=>e.n),import("./Bo39kG4k2.js"),import("./BYM2GyVF2.js"),import("./BNaRcekR2.js"),import("./DeK1vU3V2.js"),import("./CtxIOzTC2.js"),import("./1dmOpMwn2.js"),import("./web.es.js").then(e=>e.t),O.length>0?import("./CIcQE2CN2.js"):Promise.resolve(null)]),h=new t({gallery:n,children:"a",counter:!1,bgOpacity:1,wheelToZoom:!0,pinchToClose:!0,zoom:!1,pswpModule:d,appendToEl:A??document.body});f.current=h;const p=new F(()=>window.pswp,"memory"===M?{location:q.pathname,state:q.state,push:(e,t)=>I(e,{state:t}),replace:(e,t)=>I(e,{state:t,replace:!0}),go:e=>I(e)}:void 0);v.current=p,h.on("beforeOpen",()=>p.open()),h.on("close",()=>{p.close(),v.current===p&&(v.current=null)}),new r(h),new i(h),u&&new u.default(h,O,{organizationId:z,eventId:e?._id}),new a(h),new s(h,k,T),new l(h),new c(h),h.init(),o>=0&&f.current?.loadAndOpen?.(o)}finally{w.current=!1}},[c,A,k,T,O,z,e?._id,q.pathname,q.state,I,M]);r(()=>{const e=v.current;"memory"===M&&e?.isActive()&&!U(q.state)&&e.handleBack()},[q.state,M]);const B=h(()=>{switch(e?.galleryLayout){case E.ROW:return be;case E.COLUMN:return Te;case E.MASONRY:return Ie;default:return be}},[e?.galleryLayout]),D=h(()=>t.map(e=>{const t=e.type===C.IMAGE||e.type===C.VIDEO?e.url:e.type===C.GAM_AD?"":e.imageUrl;return{...e,src:t??"",width:e.dimension?.width||e.width||4,height:e.dimension?.height||e.height||3}}),[t]),W=h(()=>({container:({ref:e,className:t,children:n})=>/* @__PURE__ */p("div",{ref:e,className:t??"",children:n}),photo:(t,{photo:r,width:o,height:i,index:s})=>{const h=r;let m=null;switch(h.type){case C.IMAGE:m=Fe;break;case C.VIDEO:m=Ge;break;case C.AD:m=Ae;break;case C.GAM_AD:return n?/* @__PURE__ */p(Le,{style:{width:o,height:i},gamConfig:n,slotIndex:h.slotIndex??s,eventId:e?._id,organizationId:z},`${h._id??s}-${s}`):null;default:m=null}return m?/* @__PURE__ */p(m,{style:{width:o,height:i},event:e,content:h,timestampField:l,onAdClick:c?$:void 0,hideControls:a,curateLink:c?`${c}/${h._id}`:null,onChangeFaceUrl:d,showQuickSearch:u,imageSearchProviders:P,organizationId:z},`${h._id??s}-${s}`):null}}),[e,n,z,l,c,a,d,u,P]);/* @__PURE__ */
36
- return p(g,{children:[/* @__PURE__ */p("div",{id:N,ref:x,onClickCapture:G,className:y(o?"w-full lg:w-1/3":"w-full"),children:/* @__PURE__ */p(B,{spacing:4,rowConstraints:e=>{const t={minPhotos:1,maxPhotos:4,singleRowMaxHeight:400};return o?(t.minPhotos=1,t.maxPhotos=1):t.maxPhotos=e<400?2:e<800?3:4,t},columns:e=>o?1:e<400?2:e<800?3:4,photos:D,render:W})}),/* @__PURE__ */p(qe,{open:Boolean(R),ad:R,onClose:()=>$(null),captureAdClick:T})]})};export{Be as default};
@@ -1,5 +0,0 @@
1
- import{E as t,S as e,_ as n,f as s,h as r,p as i,t as a,v as o,w as c,y as u}from"./BXMw4kNf.js";import{i as l}from"./CdivXyOP.js";var h=t(null),p=t(null),d=class{entries;index=0;listeners=/* @__PURE__ */new Set;constructor(t="/"){this.entries=[{path:t}]}get location(){return this.entries[this.index]?.path??"/"}get state(){return this.entries[this.index]?.state}push(t,e){this.entries=this.entries.slice(0,this.index+1),this.index=this.entries.push({path:t,state:e})-1,this.notify()}replace(t,e){this.entries[this.index]={path:t,state:e},this.notify()}go(t){const e=this.index+t;e>=0&&e<this.entries.length&&(this.index=e,this.notify())}canGoBack(){return this.index>0}listen(t){return this.listeners.add(t),()=>this.listeners.delete(t)}notify(){this.listeners.forEach(t=>t(this.location))}},f=class{listeners=/* @__PURE__ */new Set;appPushCount=0;get location(){return window.location.hash.replace(/^#/,"")||"/"}get state(){return window.history.state?.__qrati_state}makeUrl(t){return`${window.location.pathname+window.location.search}#${t}`}push(t,e){window.history.pushState({__qrati_state:e},"",this.makeUrl(t)),this.appPushCount+=1,this.notify()}replace(t,e){window.history.replaceState({__qrati_state:e},"",this.makeUrl(t)),this.notify()}go(t){this.appPushCount=Math.max(0,this.appPushCount+t),window.history.go(t)}canGoBack(){return this.appPushCount>0}listen(t){this.listeners.add(t);const e=()=>this.notify();return window.addEventListener("popstate",e),window.addEventListener("hashchange",e),queueMicrotask(()=>t(this.location)),()=>{this.listeners.delete(t),window.removeEventListener("popstate",e),window.removeEventListener("hashchange",e)}}notify(){this.listeners.forEach(t=>t(this.location))}};function m(t){const e=t.search(/[?#]/);return-1===e?t||"/":t.slice(0,e)||"/"}function w(t,e,n=!0){const s=t.split("/").filter(Boolean),r=function(t){const e=[],n=t.split("/").filter(Boolean);for(const s of n)if("*"===s)e.push({type:"wildcard"});else if(s.startsWith(":")){const t=s.endsWith("?"),n=t?s.slice(1,-1):s.slice(1);e.push({type:"param",name:n,optional:t})}else e.push({type:"static",value:s});return e}(e),i={};let a=0;for(const o of r)if("static"===o.type){if(s[a]!==o.value)return null;a++}else if("param"===o.type){if(a<s.length){try{i[o.name]=decodeURIComponent(s[a])}catch{i[o.name]=s[a]}a++}else if(!o.optional)return null}else if("wildcard"===o.type){i["*"]=s.slice(a).join("/"),a=s.length;break}return n&&a<s.length?null:{params:i}}function v(t,e){return e.startsWith("/")?e:t.endsWith("/")?t+e:`${t}/${e}`}function y(t,e,n=""){const s=m(t);for(const r of e){const t=r.path.startsWith("/")?r.path:v(n,r.path);if(r.children&&r.children.length>0){const e=w(s,t,!1);if(e){const n=[{route:r,params:e.params}],i=y(s,r.children,t);if(i)n.push(...i);else{const t=r.children.find(t=>""===t.path);t&&n.push({route:t,params:{}})}return n}}const e=w(s,t,!0);if(e)return[{route:r,params:e.params}]}return null}function g(){const t=u(p);if(!t)throw new Error("useParams must be used inside a Route");return t.params}function k(){const t=u(h);if(!t)throw new Error("useNavigate must be used inside a Router");const{navigate:e,go:n}=t;return o((t,s)=>{"number"!=typeof t?e(t,s):n(t)},[e,n])}function x(){const t=u(h);if(!t)throw new Error("useCanGoBack must be used inside a Router");return t.canGoBack}function C(){const t=u(h);if(!t)throw new Error("useRouterMode must be used inside a Router");return t.mode}function E(){const t=u(h);if(!t)throw new Error("useLocation must be used inside a Router");return function(t,e){const n=m(t),s=t.indexOf("?"),r=t.indexOf("#");return{pathname:n,state:e,search:-1===s?"":t.slice(s,-1===r?void 0:r),hash:-1===r?"":t.slice(r)}}(t.location,t.state)}function B({mode:t,initialPath:e,children:c}){const u=s("memory"===t?new d(e):new f),[l,p]=r(u.current.location),[m,w]=r(u.current.state),[v,y]=r(u.current.canGoBack());n(()=>(p(u.current.location),w(u.current.state),y(u.current.canGoBack()),u.current.listen(t=>{p(t),w(u.current.state),y(u.current.canGoBack())})),[]);const g=o((t,e)=>{const n=u.current;e&&e.replace?n.replace(t,e.state):n.push(t,e?.state)},[]),k=o(t=>{u.current.go(t)},[]),x=i(()=>({location:l,state:m,navigate:g,go:k,canGoBack:v,mode:t}),[l,m,g,k,v,t]);/* @__PURE__ */
2
- return a(h.Provider,{value:x,children:c})}function _(t){return null}function P(t){return e(t).filter(t=>t?.type===_).map(t=>({path:t.props.path,element:t.props.element,children:t.props.children?P(t.props.children):void 0}))}function G({children:t}){const{location:n}=u(h),r=s([]),o=e(t).filter(t=>t?.type===_).map(t=>t.props.path).join("\0"),l=s("");o!==l.current&&(l.current=o,r.current=P(t));const d=r.current,f=i(()=>y(n,d),[n,d]),m=i(()=>(f??[]).reduce((t,e)=>({...t,...e.params}),{}),[f]),w=i(()=>{if(!f)return null;let t=null;for(let e=f.length-1;e>=0;e--){const n=f[e].route.element;t=/* @__PURE__ */a(p.Provider,{value:{params:m,outlet:t},children:/* @__PURE__ */a(n,{})})}return t},[f,m]);return f?/* @__PURE__ */a(c,{children:w}):null}function b(){/* @__PURE__ */
3
- return a(c,{children:u(p)?.outlet})}function R({to:t,state:e,replace:n,children:s,className:r,onClick:i,...c}){const l=u(h);/* @__PURE__ */
4
- return a("a",{href:t,onClick:o(s=>{s.preventDefault(),i?.(s),l?.navigate(t,{state:e,replace:n})},[l,t,e,n,i]),className:r,...c,children:s})}function N({to:t,state:e,replace:n,children:s,className:r,activeClassName:c,onClick:p,...d}){const f=u(h),w=i(()=>{if(!f)return!1;const e=m(f.location);return e===t||!("/"===t||!e.startsWith(`${t}/`))},[f?.location,t]);/* @__PURE__ */
5
- return a("a",{href:t,onClick:o(s=>{s.preventDefault(),p?.(s),f?.navigate(t,{state:e,replace:n})},[f,t,e,n,p]),className:"function"==typeof r?r({isActive:w}):l(r,w&&c),...d,children:s})}function W({to:t,state:e,replace:s}){const r=k();return n(()=>{queueMicrotask(()=>{r(t,{state:e,replace:s})})},[r,t,e,s]),null}export{_ as a,x as c,g as d,C as f,b as i,E as l,N as n,B as o,W as r,G as s,R as t,k as u};
@@ -1,8 +0,0 @@
1
- import{d as e,s as r,t,v as o}from"./BXMw4kNf.js";import{n as s}from"./CdivXyOP.js";import{x as l}from"./Bb9ydqSB.js";import{u as i}from"./BK_hWmGs.js";import"./BVxovwox.js";var n=e(()=>import("./BgZyx8Pz.js")),a=e(()=>import("./Clga4U4Y.js")),c=e(()=>import("./Cnr4EYcL.js")),p=e(()=>import("./e2mrPlw-.js")),d=()=>/* @__PURE__ */t("div",{class:"flex h-full items-center justify-center",children:/* @__PURE__ */t("div",{class:"text-center",children:[
2
- /* @__PURE__ */t("svg",{xmlns:"http://www.w3.org/2000/svg",class:"text-muted-foreground mx-auto mb-3 size-10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",children:[/* @__PURE__ */t("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z"}),/* @__PURE__ */t("circle",{cx:"12",cy:"9",r:"2.5"})]}),
3
- /* @__PURE__ */t("p",{class:"text-foreground",children:"No location data available."}),
4
- /* @__PURE__ */t("p",{class:"text-muted-foreground mt-1 text-xs",children:"Events need location data to appear on the map."})]})}),m=()=>/* @__PURE__ */t("div",{class:"flex h-full items-center justify-center",children:/* @__PURE__ */t("div",{class:"border-primary size-8 animate-spin rounded-full border-4 border-t-transparent"})}),g=({events:e,isLoading:g=!1})=>{const{organization:x}=s(),f=i(),u=x?.integrationSettings??{},h=u.mapProvider??"openstreetmap",v=o(e=>{f(l.GALLERY(e))},[f]);if("openstreetmap_free"===h)/* @__PURE__ */return t("div",{class:"relative mt-3 h-screen sm:mt-6",children:/* @__PURE__ */t(r,{fallback:/* @__PURE__ */t(m,{}),children:/* @__PURE__ */t(n,{onExplore:v,logoUrl:x?.logoUrl})})});const y=u.mapTilerApiKey??"",b=u.googleMapsApiKey??"",j=u.mapboxApiKey??"",w=e.filter(e=>"number"==typeof e.location?.x&&"number"==typeof e.location?.y);/* @__PURE__ */
5
- return t("div",{class:"relative mt-3 h-screen sm:mt-6",children:g?/* @__PURE__ */t(m,{}):"openstreetmap"===h&&!y||"google"===h&&!b||"mapbox"===h&&!j?/* @__PURE__ */t("div",{class:"flex h-full items-center justify-center",children:/* @__PURE__ */t("div",{class:"text-center",children:[
6
- /* @__PURE__ */t("svg",{xmlns:"http://www.w3.org/2000/svg",class:"text-muted-foreground mx-auto mb-3 size-10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",children:[/* @__PURE__ */t("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z"}),/* @__PURE__ */t("circle",{cx:"12",cy:"9",r:"2.5"})]}),
7
- /* @__PURE__ */t("p",{class:"text-foreground",children:"API key is required to display the map."}),
8
- /* @__PURE__ */t("p",{class:"text-muted-foreground mt-1 text-xs",children:"Provide a map API key in your organization settings."})]})}):0===w.length?/* @__PURE__ */t(d,{}):/* @__PURE__ */t(r,{fallback:/* @__PURE__ */t(m,{}),children:["openstreetmap"===h&&/* @__PURE__ */t(a,{is3D:!1,apiKey:y,onExplore:v,logoUrl:x?.logoUrl}),"mapbox"===h&&/* @__PURE__ */t(p,{onExplore:v,apiKey:j,is3D:!1,logoUrl:x?.logoUrl}),"google"===h&&/* @__PURE__ */t(c,{apiKey:b,mapId:"DEMO_MAP_ID",onExplore:v,logoUrl:x?.logoUrl})]})})};export{g as default};
@@ -1 +0,0 @@
1
- import{_ as e,h as n,p as t,v as o}from"./BXMw4kNf.js";import{l as r,n as i}from"./CdivXyOP.js";import{t as a}from"./DmpmrPE5.js";import{i as l}from"./Bb9ydqSB.js";var s=(e,n)=>e.filter(e=>(e.parentFolderId??null)===n).map(n=>{return{folder:n,children:s(e,n._id),eventCount:n.boundary?.length??0,centroid:(t=n.boundary,t?.length?[t.reduce((e,n)=>e+n.x,0)/t.length,t.reduce((e,n)=>e+n.y,0)/t.length]:null),color:n.color||"#fb8500"};var t}).filter(e=>e.eventCount>0||e.children.length>0),d=e=>e.filter(e=>"number"==typeof e.location?.x&&"number"==typeof e.location?.y),c=()=>{const{folders:c,organization:m}=i(),[u,g]=n(null),f=Boolean(m?.integrationSettings?.enableFolderView),h=t(()=>f?s(c??[],null):[],[c,f]),y=r({queryKey:["map-all-events",m?._id],queryFn:async()=>{const e=await a.get(l.PUBLIC_EVENTS,{headers:{"x-org-id":m?._id??""},searchParams:{includeAllFolders:!0,limit:500,sort:"-views",contentLimit:3,projection:"connect"}}).json();return d(e.data??[])},enabled:Boolean(m?._id)&&(!f||0===h.length),staleTime:3e5,gcTime:6e5,retry:!1}),v=r({queryKey:["map-folder-events",m?._id,u],queryFn:async()=>{const e=await a.get(l.PUBLIC_EVENTS,{headers:{"x-org-id":m?._id??""},searchParams:{folderId:u,limit:500,sort:"-views",contentLimit:3,projection:"connect"}}).json();return d(e.data??[])},enabled:Boolean(m?._id)&&f&&Boolean(u),staleTime:3e5,gcTime:6e5,retry:!1}),p=t(()=>(c??[]).find(e=>e._id===u)??null,[c,u]);e(()=>{f||g(null)},[f]);const _=o(e=>{g(e)},[]),F=f&&h.length>0;return{folderTree:h,activeFolderId:u,activeFolder:p,visibleEvents:F?v.data??[]:y.data??[],setActiveFolderId:_,isLoadingEvents:F?Boolean(u)&&(v.isLoading||v.isFetching):y.isLoading||y.isFetching}};export{c as t};
@@ -1 +0,0 @@
1
- var n,e,t,_,r,o,u,l,i,c,a,f,s,p,d,h,v,m,y,g={},b=[],k=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,C=Array.isArray;function w(n,e){for(var t in e)n[t]=e[t];return n}function x(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function S(e,t,_){var r,o,u,l={};for(u in t)"key"==u?r=t[u]:"ref"==u?o=t[u]:l[u]=t[u];if(arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):_),"function"==typeof e&&null!=e.defaultProps)for(u in e.defaultProps)void 0===l[u]&&(l[u]=e.defaultProps[u]);return P(e,l,r,o,null)}function P(n,_,r,o,u){var l={type:n,props:_,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==u?++t:u,__i:-1,__u:0};return null==u&&null!=e.vnode&&e.vnode(l),l}function N(n){return n.children}function E(n,e){this.props=n,this.context=e}function U(n,e){if(null==e)return n.__?U(n.__,n.__i+1):null;for(var t;e<n.__k.length;e++)if(null!=(t=n.__k[e])&&null!=t.__e)return t.__e;return"function"==typeof n.type?U(n):null}function R(n){if(n.__P&&n.__d){var t=n.__v,_=t.__e,r=[],o=[],u=w({},t);u.__v=t.__v+1,e.vnode&&e.vnode(u),V(n.__P,u,t,n.__n,n.__P.namespaceURI,32&t.__u?[_]:null,r,null==_?U(t):_,!!(32&t.__u),o),u.__v=t.__v,u.__.__k[u.__i]=u,B(r,u,o),t.__e=t.__=null,u.__e!=_&&H(u)}}function H(n){if(null!=(n=n.__)&&null!=n.__c)return n.__e=n.__c.base=null,n.__k.some(function(e){if(null!=e&&null!=e.__e)return n.__e=n.__c.base=e.__e}),H(n)}function T(n){(!n.__d&&(n.__d=!0)&&_.push(n)&&!D.__r++||r!=e.debounceRendering)&&((r=e.debounceRendering)||o)(D)}function D(){try{for(var n,e=1;_.length;)_.length>e&&_.sort(u),n=_.shift(),e=_.length,R(n)}finally{_.length=D.__r=0}}function A(n,e,t,_,r,o,u,l,i,c,a){var f,s,p,d,h,v,m,y=_&&_.__k||b,k=e.length;for(i=function(n,e,t,_,r){var o,u,l,i,c,a=t.length,f=a,s=0;for(n.__k=new Array(r),o=0;o<r;o++)null!=(u=e[o])&&"boolean"!=typeof u&&"function"!=typeof u?("string"==typeof u||"number"==typeof u||"bigint"==typeof u||u.constructor==String?u=n.__k[o]=P(null,u,null,null,null):C(u)?u=n.__k[o]=P(N,{children:u},null,null,null):void 0===u.constructor&&u.__b>0?u=n.__k[o]=P(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):n.__k[o]=u,i=o+s,u.__=n,u.__b=n.__b+1,l=null,-1!=(c=u.__i=W(u,t,i,f))&&(f--,(l=t[c])&&(l.__u|=2)),null==l||null==l.__v?(-1==c&&(r>a?s--:r<a&&s++),"function"!=typeof u.type&&(u.__u|=4)):c!=i&&(c==i-1?s--:c==i+1?s++:(c>i?s--:s++,u.__u|=4))):n.__k[o]=null;if(f)for(o=0;o<a;o++)null!=(l=t[o])&&!(2&l.__u)&&(l.__e==_&&(_=U(l)),Z(l,l));return _}(t,e,y,i,k),f=0;f<k;f++)null!=(p=t.__k[f])&&(s=-1!=p.__i&&y[p.__i]||g,p.__i=f,v=V(n,p,s,r,o,u,l,i,c,a),d=p.__e,p.ref&&s.ref!=p.ref&&(s.ref&&q(s.ref,null,p),a.push(p.ref,p.__c||d,p)),null==h&&null!=d&&(h=d),(m=!!(4&p.__u))||s.__k===p.__k?(i=M(p,i,n,m),m&&s.__e&&(s.__e=null)):"function"==typeof p.type&&void 0!==v?i=v:d&&(i=d.nextSibling),p.__u&=-7);return t.__e=h,i}function M(n,e,t,_){var r,o;if("function"==typeof n.type){for(r=n.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=n,e=M(r[o],e,t,_));return e}n.__e!=e&&(_&&(e&&n.type&&!e.parentNode&&(e=U(n)),t.insertBefore(n.__e,e||null)),e=n.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function O(n,e){return e=e||[],null==n||"boolean"==typeof n||(C(n)?n.some(function(n){O(n,e)}):e.push(n)),e}function W(n,e,t,_){var r,o,u,l=n.key,i=n.type,c=e[t],a=null!=c&&!(2&c.__u);if(null===c&&null==l||a&&l==c.key&&i==c.type)return t;if(_>(a?1:0))for(r=t-1,o=t+1;r>=0||o<e.length;)if(null!=(c=e[u=r>=0?r--:o++])&&!(2&c.__u)&&l==c.key&&i==c.type)return u;return-1}function F(n,e,t){"-"==e[0]?n.setProperty(e,null==t?"":t):n[e]=null==t?"":"number"!=typeof t||k.test(e)?t:t+"px"}function I(n,e,t,_,r){var o,u;n:if("style"==e)if("string"==typeof t)n.style.cssText=t;else{if("string"==typeof _&&(n.style.cssText=_=""),_)for(e in _)t&&e in t||F(n.style,e,"");if(t)for(e in t)_&&t[e]==_[e]||F(n.style,e,t[e])}else if("o"==e[0]&&"n"==e[1])o=e!=(e=e.replace(a,"$1")),u=e.toLowerCase(),e=u in n||"onFocusOut"==e||"onFocusIn"==e?u.slice(2):e.slice(2),n.l||(n.l={}),n.l[e+o]=t,t?_?t[c]=_[c]:(t[c]=f,n.addEventListener(e,o?p:s,o)):n.removeEventListener(e,o?p:s,o);else{if("http://www.w3.org/2000/svg"==r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in n)try{n[e]=null==t?"":t;break n}catch(n){}"function"==typeof t||(null==t||!1===t&&"-"!=e[4]?n.removeAttribute(e):n.setAttribute(e,"popover"==e&&1==t?"":t))}}function L(n){return function(t){if(this.l){var _=this.l[t.type+n];if(null==t[i])t[i]=f++;else if(t[i]<_[c])return;return _(e.event?e.event(t):t)}}}function V(n,t,_,r,o,u,l,i,c,a){var f,s,p,d,h,v,m,y,g,k,S,P,U,R,H,T,D=t.type;if(void 0!==t.constructor)return null;128&_.__u&&(c=!!(32&_.__u),u=[i=t.__e=_.__e]),(f=e.__b)&&f(t);n:if("function"==typeof D){s=l.length;try{if(g=t.props,k=D.prototype&&D.prototype.render,S=(f=D.contextType)&&r[f.__c],P=f?S?S.props.value:f.__:r,_.__c?y=(p=t.__c=_.__c).__=p.__E:(k?t.__c=p=new D(g,P):(t.__c=p=new E(g,P),p.constructor=D,p.render=Y),S&&S.sub(p),p.state||(p.state={}),p.__n=r,d=p.__d=!0,p.__h=[],p._sb=[]),k&&null==p.__s&&(p.__s=p.state),k&&null!=D.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=w({},p.__s)),w(p.__s,D.getDerivedStateFromProps(g,p.__s))),h=p.props,v=p.state,p.__v=t,d)k&&null==D.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),k&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(k&&null==D.getDerivedStateFromProps&&g!==h&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(g,P),t.__v==_.__v||!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(g,p.__s,P)){t.__v!=_.__v&&(p.props=g,p.state=p.__s,p.__d=!1),t.__e=_.__e,t.__k=_.__k,t.__k.some(function(n){n&&(n.__=t)}),b.push.apply(p.__h,p._sb),p._sb=[],p.__h.length&&l.push(p);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(g,p.__s,P),k&&null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(h,v,m)})}if(p.context=P,p.props=g,p.__P=n,p.__e=!1,U=e.__r,R=0,k)p.state=p.__s,p.__d=!1,U&&U(t),f=p.render(p.props,p.state,p.context),b.push.apply(p.__h,p._sb),p._sb=[];else do{p.__d=!1,U&&U(t),f=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++R<25);p.state=p.__s,null!=p.getChildContext&&(r=w(w({},r),p.getChildContext())),k&&!d&&null!=p.getSnapshotBeforeUpdate&&(m=p.getSnapshotBeforeUpdate(h,v)),H=null!=f&&f.type===N&&null==f.key?z(f.props.children):f,i=A(n,C(H)?H:[H],t,_,r,o,u,l,i,c,a),p.base=t.__e,t.__u&=-161,p.__h.length&&l.push(p),y&&(p.__E=p.__=null)}catch(n){if(l.length=s,t.__v=null,c||null!=u)if(n.then){for(t.__u|=c?160:128;i&&8==i.nodeType&&i.nextSibling;)i=i.nextSibling;null!=u&&(u[u.indexOf(i)]=null),t.__e=i}else{if(null!=u)for(T=u.length;T--;)x(u[T]);$(t)}else t.__e=_.__e,!t.__k&&_.__k&&(t.__k=_.__k),n.then||$(t);e.__e(n,t,_)}}else null==u&&t.__v==_.__v?(t.__k=_.__k,t.__e=_.__e):i=t.__e=j(_.__e,t,_,r,o,u,l,c,a);return(f=e.diffed)&&f(t),128&t.__u?void 0:i}function $(n){n&&(n.__c&&(n.__c.__e=!0),n.__k&&n.__k.some($))}function B(n,t,_){for(var r=0;r<_.length;r++)q(_[r],_[++r],_[++r]);e.__c&&e.__c(t,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(n){n.call(t)})}catch(n){e.__e(n,t.__v)}})}function z(n){return"object"!=typeof n||null==n||n.__b>0?n:C(n)?n.map(z):void 0!==n.constructor?null:w({},n)}function j(t,_,r,o,u,l,i,c,a){var f,s,p,d,h,v,m,y=r.props||g,b=_.props,k=_.type;if("svg"==k?u="http://www.w3.org/2000/svg":"math"==k?u="http://www.w3.org/1998/Math/MathML":u||(u="http://www.w3.org/1999/xhtml"),null!=l)for(f=0;f<l.length;f++)if((h=l[f])&&"setAttribute"in h==!!k&&(k?h.localName==k:3==h.nodeType)){t=h,l[f]=null;break}if(null==t){if(null==k)return document.createTextNode(b);t=document.createElementNS(u,k,b.is&&b),c&&(e.__m&&e.__m(_,l),c=!1),l=null}if(null==k)y===b||c&&t.data==b||(t.data=b);else{if(l="textarea"==k&&null!=b.defaultValue?null:l&&n.call(t.childNodes),!c&&null!=l)for(y={},f=0;f<t.attributes.length;f++)y[(h=t.attributes[f]).name]=h.value;for(f in y)h=y[f],"dangerouslySetInnerHTML"==f?p=h:"children"==f||f in b||"value"==f&&"defaultValue"in b||"checked"==f&&"defaultChecked"in b||I(t,f,null,h,u);for(f in b)h=b[f],"children"==f?d=h:"dangerouslySetInnerHTML"==f?s=h:"value"==f?v=h:"checked"==f?m=h:c&&"function"!=typeof h||y[f]===h||I(t,f,h,y[f],u);if(s)c||p&&(s.__html==p.__html||s.__html==t.innerHTML)||(t.innerHTML=s.__html),_.__k=[];else if(p&&(t.innerHTML=""),A("template"==_.type?t.content:t,C(d)?d:[d],_,r,o,"foreignObject"==k?"http://www.w3.org/1999/xhtml":u,l,i,l?l[0]:r.__k&&U(r,0),c,a),null!=l)for(f=l.length;f--;)x(l[f]);c&&"textarea"!=k||(f="value","progress"==k&&null==v?t.removeAttribute("value"):null!=v&&(v!==t[f]||"progress"==k&&!v||"option"==k&&v!=y[f])&&I(t,f,v,y[f],u),f="checked",null!=m&&m!=t[f]&&I(t,f,m,y[f],u))}return t}function q(n,t,_){try{if("function"==typeof n){var r="function"==typeof n.__u;r&&n.__u(),r&&null==t||(n.__u=n(t))}else n.current=t}catch(n){e.__e(n,_)}}function Z(n,t,_){var r,o;if(e.unmount&&e.unmount(n),(r=n.ref)&&(r.current&&r.current!=n.__e||q(r,null,t)),null!=(r=n.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(n){e.__e(n,t)}r.base=r.__P=r.__n=null}if(r=n.__k)for(o=0;o<r.length;o++)r[o]&&Z(r[o],t,_||"function"!=typeof n.type);_||x(n.__e),n.__c=n.__=n.__e=void 0}function Y(n,e,t){return this.constructor(n,t)}function G(t,_,r){var o,u,l,i;_==document&&(_=document.documentElement),e.__&&e.__(t,_),u=(o="function"==typeof r)?null:r&&r.__k||_.__k,l=[],i=[],V(_,t=(!o&&r||_).__k=S(N,null,[t]),u||g,g,_.namespaceURI,!o&&r?[r]:u?null:_.firstChild?n.call(_.childNodes):null,l,!o&&r?r:u?u.__e:_.firstChild,o,i),B(l,t,i),t.props.children=null}function J(n,e){G(n,e,J)}function K(e,t,_){var r,o,u,l,i=w({},e.props);for(u in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),t)"key"==u?r=t[u]:"ref"==u?o=t[u]:i[u]=void 0===t[u]&&null!=l?l[u]:t[u];return arguments.length>2&&(i.children=arguments.length>3?n.call(arguments,2):_),P(e.type,i,r||e.key,o||e.ref,null)}function Q(n){function e(n){var t,_;return this.getChildContext||(t=/* @__PURE__ */new Set,(_={})[e.__c]=this,this.getChildContext=function(){return _},this.componentWillUnmount=function(){t=null},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&t.forEach(function(n){n.__e=!0,T(n)})},this.sub=function(n){t.add(n);var e=n.componentWillUnmount;n.componentWillUnmount=function(){t&&t.delete(n),e&&e.call(n)}}),n.children}return e.__c="__cC"+d++,e.__=n,e.Provider=e.__l=(e.Consumer=function(n,e){return n.children(e)}).contextType=e,e}n=b.slice,e={__e:function(n,e,t,_){for(var r,o,u;e=e.__;)if((r=e.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(n)),u=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(n,_||{}),u=r.__d),u)return r.__E=r}catch(e){n=e}throw n}},t=0,E.prototype.setState=function(n,e){var t=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=w({},this.state);"function"==typeof n&&(n=n(w({},t),this.props)),n&&w(t,n),null!=n&&this.__v&&(e&&this._sb.push(e),T(this))},E.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),T(this))},E.prototype.render=N,_=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(n,e){return n.__v.__b-e.__v.__b},D.__r=0,l=Math.random().toString(8),i="__d"+l,c="__a"+l,a=/(PointerCapture)$|Capture$/i,f=0,s=L(!1),p=L(!0),d=0;var X=0,nn=[],en=e,tn=en.__b,_n=en.__r,rn=en.diffed,on=en.__c,un=en.unmount,ln=en.__;function cn(n,e){en.__h&&en.__h(v,n,X||e),X=0;var t=v.__H||(v.__H={__:[],__h:[]});return n>=t.__.length&&t.__.push({}),t.__[n]}function an(n){return X=1,fn(Nn,n)}function fn(n,e,t){var _=cn(h++,2);if(_.t=n,!_.__c&&(_.__=[t?t(e):Nn(void 0,e),function(n){var e=_.__N?_.__N[0]:_.__[0],t=_.t(e,n);e!==t&&(_.__N=[t,_.__[1]],_.__c.setState({}))}],_.__c=v,!v.__f)){var r=function(n,e,t){if(!_.__c.__H)return!0;var r=!1,u=_.__c.props!==n;if(_.__c.__H.__.some(function(n){if(n.__N){r=!0;var e=n.__[0];n.__=n.__N,n.__N=void 0,e!==n.__[0]&&(u=!0)}}),o){var l=o.call(this,n,e,t);return r?l||u:l}return!r||u};v.__f=!0;var o=v.shouldComponentUpdate,u=v.componentWillUpdate;v.componentWillUpdate=function(n,e,t){if(this.__e){var _=o;o=void 0,r(n,e,t),o=_}u&&u.call(this,n,e,t)},v.shouldComponentUpdate=r}return _.__N||_.__}function sn(n,e){var t=cn(h++,3);!en.__s&&Pn(t.__H,e)&&(t.__=n,t.u=e,v.__H.__h.push(t))}function pn(n,e){var t=cn(h++,4);!en.__s&&Pn(t.__H,e)&&(t.__=n,t.u=e,v.__h.push(t))}function dn(n){return X=5,vn(function(){return{current:n}},[])}function hn(n,e,t){X=6,pn(function(){if("function"==typeof n){var t=n(e());return function(){n(null),t&&"function"==typeof t&&t()}}if(n)return n.current=e(),function(){return n.current=null}},null==t?t:t.concat(n))}function vn(n,e){var t=cn(h++,7);return Pn(t.__H,e)&&(t.__=n(),t.__H=e,t.__h=n),t.__}function mn(n,e){return X=8,vn(function(){return n},e)}function yn(n){var e=v.context[n.__c],t=cn(h++,9);return t.c=n,e?(t.__??(t.__=!0,e.sub(v)),e.props.value):n.__}function gn(n,e){en.useDebugValue&&en.useDebugValue(e?e(n):n)}function bn(){var n=cn(h++,11);if(!n.__){for(var e=v.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var t=e.__m||(e.__m=[0,0]);n.__="P"+t[0]+"-"+t[1]++}return n.__}function kn(){for(var n;n=nn.shift();){var e=n.__H;if(n.__P&&e)try{e.__h.some(xn),e.__h.some(Sn),e.__h=[]}catch(v){e.__h=[],en.__e(v,n.__v)}}}en.__b=function(n){v=null,tn&&tn(n)},en.__=function(n,e){n&&e.__k&&e.__k.__m&&(n.__m=e.__k.__m),ln&&ln(n,e)},en.__r=function(n){_n&&_n(n),h=0;var e=(v=n.__c).__H;e&&(m===v?(e.__h=[],v.__h=[],e.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(e.__h.length&&kn(),h=0)),m=v},en.diffed=function(n){rn&&rn(n);var e=n.__c;e&&e.__H&&(e.__H.__h.length&&(1!==nn.push(e)&&y===en.requestAnimationFrame||((y=en.requestAnimationFrame)||wn)(kn)),e.__H.__.some(function(n){n.u&&(n.__H=n.u,n.u=void 0)})),m=v=null},en.__c=function(n,e){e.some(function(n){try{n.__h.some(xn),n.__h=n.__h.filter(function(n){return!n.__||Sn(n)})}catch(v){e.some(function(n){n.__h&&(n.__h=[])}),e=[],en.__e(v,n.__v)}}),on&&on(n,e)},en.unmount=function(n){un&&un(n);var e,t=n.__c;t&&t.__H&&(t.__H.__.some(function(n){try{xn(n)}catch(n){e=n}}),t.__H=void 0,e&&en.__e(e,t.__v))};var Cn="function"==typeof requestAnimationFrame;function wn(n){var e,t=function(){clearTimeout(_),Cn&&cancelAnimationFrame(e),setTimeout(n)},_=setTimeout(t,35);Cn&&(e=requestAnimationFrame(t))}function xn(n){var e=v,t=n.__c;"function"==typeof t&&(n.__c=void 0,t()),v=e}function Sn(n){var e=v;n.__c=n.__(),v=e}function Pn(n,e){return!n||n.length!==e.length||e.some(function(e,t){return e!==n[t]})}function Nn(n,e){return"function"==typeof e?e(n):e}function En(n,e){for(var t in e)n[t]=e[t];return n}function Un(n,e){for(var t in n)if("__source"!==t&&!(t in e))return!0;for(var _ in e)if("__source"!==_&&n[_]!==e[_])return!0;return!1}function Rn(n,e){var t=e(),_=an({t:{__:t,u:e}}),r=_[0].t,o=_[1];return pn(function(){r.__=t,r.u=e,Hn(r)&&o({t:r})},[n,t,e]),sn(function(){return Hn(r)&&o({t:r}),n(function(){Hn(r)&&o({t:r})})},[n]),t}function Hn(n){try{return!((e=n.__)===(t=n.u())&&(0!==e||1/e==1/t)||e!=e&&t!=t)}catch(n){return!0}var e,t}function Tn(n){n()}function Dn(n){return n}function An(){return[!1,Tn]}var Mn=pn;function On(n,e){this.props=n,this.context=e}function Wn(n,e){function t(n){var t=this.props.ref;return t!=n.ref&&t&&("function"==typeof t?t(null):t.current=null),e?!e(this.props,n)||t!=n.ref:Un(this.props,n)}function _(e){return this.shouldComponentUpdate=t,S(n,e)}return _.displayName="Memo("+(n.displayName||n.name)+")",_.__f=_.prototype.isReactComponent=!0,_.type=n,_}(On.prototype=new E).isPureReactComponent=!0,On.prototype.shouldComponentUpdate=function(n,e){return Un(this.props,n)||Un(this.state,e)};var Fn=e.__b;e.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),Fn&&Fn(n)};var In="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ln(n){function e(e){var t=En({},e);return delete t.ref,n(t,e.ref||null)}return e.$$typeof=In,e.render=n,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(n.displayName||n.name)+")",e}var Vn=function(n,e){return null==n?null:O(O(n).map(e))},$n={map:Vn,forEach:Vn,count:function(n){return n?O(n).length:0},only:function(n){var e=O(n);if(1!==e.length)throw"Children.only";return e[0]},toArray:O},Bn=e.__e;e.__e=function(n,e,t,_){if(n.then)for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return e.__e??(e.__e=t.__e,e.__k=t.__k),r.__c(n,e);Bn(n,e,t,_)};var zn=e.unmount;function jn(n,e,t){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=En({},n)).__c&&(n.__c.__P===t&&(n.__c.__P=e),n.__c.__e=!0,n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return jn(n,e,t)})),n}function qn(n,e,t){return n&&t&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return qn(n,e,t)}),n.__c&&n.__c.__P===e&&(n.__e&&t.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=t)),n}function Zn(){this.__u=0,this.o=null,this.__b=null}function Yn(n){var e=n.__&&n.__.__c;return e&&e.__a&&e.__a(n)}function Gn(n){var e,t,_,r=null;function o(o){if(e||(e=n()).then(function(n){n&&(r=n.default||n),_=!0},function(n){t=n,_=!0}),t)throw t;if(!_)throw e;return r?S(r,o):null}return o.displayName="Lazy",o.__f=!0,o}function Jn(){this.i=null,this.l=null}e.unmount=function(n){var e=n.__c;e&&(e.__z=!0),e&&e.__R&&e.__R(),e&&32&n.__u&&(n.type=null),zn&&zn(n)},(Zn.prototype=new E).__c=function(n,e){var t=e.__c,_=this;_.o??=[],_.o.push(t);var r=Yn(_.__v),o=!1,u=function(){o||_.__z||(o=!0,t.__R=null,r?r(i):i())};t.__R=u;var l=t.__P;t.__P=null;var i=function(){if(! --_.__u){if(_.state.__a){var n=_.state.__a;_.__v.__k[0]=qn(n,n.__c.__P,n.__c.__O)}var e;for(_.setState({__a:_.__b=null});e=_.o.pop();)e.__P=l,e.forceUpdate()}};_.__u++||32&e.__u||_.setState({__a:_.__b=_.__v.__k[0]}),n.then(u,u)},Zn.prototype.componentWillUnmount=function(){this.o=[]},Zn.prototype.render=function(n,e){var t=this.__v;if(!t.__m){for(var _=t;_.__;)_=_.__;_=_.__m||(_.__m=[0,0]),t.__m=[_[1]++,0]}if(this.__b){if(t.__k){var r=document.createElement("div"),o=t.__k[0].__c;t.__k[0]=jn(this.__b,r,o.__O=o.__P)}this.__b=null}var u=e.__a&&S(N,null,n.fallback);return u&&(u.__u&=-33),[S(N,null,e.__a?null:n.children),u]};var Kn=function(n,e,t){if(++t[1]===t[0]&&n.l.delete(e),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.l.size))for(t=n.i;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;n.i=t=t[2]}};function Qn(n){return this.getChildContext=function(){return n.context},n.children}function Xn(n){var e=this,t=n.v;if(e.componentWillUnmount=function(){G(null,e.h),e.h=null,e.v=null},e.v&&e.v!==t&&e.componentWillUnmount(),!e.h){for(var _=e.__v;null!==_&&!_.__m&&null!==_.__;)_=_.__;e.v=t,e.h={nodeType:1,parentNode:t,childNodes:[],__k:{__m:_.__m},contains:function(){return!0},namespaceURI:t.namespaceURI,insertBefore:function(n,t){this.childNodes.push(n),e.v.insertBefore(n,t)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.v.removeChild(n)}}}G(S(Qn,{context:e.context},n.__v),e.h)}function ne(n,e){var t=S(Xn,{__v:n,v:e});return t.containerInfo=e,t}(Jn.prototype=new E).__a=function(n){var e=this,t=Yn(e.__v),_=e.l.get(n);return _[0]++,function(r){var o=function(){e.props.revealOrder?(_.push(r),Kn(e,n,_)):r()};t?t(o):o()}},Jn.prototype.render=function(n){this.i=null,this.l=/* @__PURE__ */new Map;var e=O(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&e.reverse();for(var t=e.length;t--;)this.l.set(e[t],this.i=[1,0,this.i]);return n.children},Jn.prototype.componentDidUpdate=Jn.prototype.componentDidMount=function(){var n=this;this.l.forEach(function(e,t){Kn(n,t,e)})};var ee="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,te=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,_e=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,re=/[A-Z0-9]/g,oe="undefined"!=typeof document,ue=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};E.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(E.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(e){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:e})}})});var le,ie=e.event;e.event=function(n){return ie&&(n=ie(n)),n.persist=function(){},n.isPropagationStopped=function(){return this.cancelBubble},n.isDefaultPrevented=function(){return this.defaultPrevented},n.nativeEvent=n};var ce={configurable:!0,get:function(){return this.class}},ae=e.vnode;e.vnode=function(n){"string"==typeof n.type&&function(n){var e=n.props,t=n.type,_={},r=-1==t.indexOf("-");for(var o in e){var u=e[o];if(!("value"===o&&"defaultValue"in e&&null==u||oe&&"children"===o&&"noscript"===t||"class"===o||"className"===o)){var l=o.toLowerCase();"defaultValue"===o&&"value"in e&&null==e.value?o="value":"download"===o&&!0===u?u="":"translate"===l&&"no"===u?u=!1:"o"===l[0]&&"n"===l[1]?"ondoubleclick"===l?o="ondblclick":"onchange"!==l||"input"!==t&&"textarea"!==t||ue(e.type)?"onfocus"===l?o="onfocusin":"onblur"===l?o="onfocusout":_e.test(o)&&(o=l):l=o="oninput":r&&te.test(o)?o=o.replace(re,"-$&").toLowerCase():null===u&&(u=void 0),"oninput"===l&&_[o=l]&&(o="oninputCapture"),_[o]=u}}"select"==t&&(_.multiple&&Array.isArray(_.value)&&(_.value=O(e.children).forEach(function(n){n.props.selected=-1!=_.value.indexOf(n.props.value)})),null!=_.defaultValue&&(_.value=O(e.children).forEach(function(n){n.props.selected=_.multiple?-1!=_.defaultValue.indexOf(n.props.value):_.defaultValue==n.props.value}))),e.class&&!e.className?(_.class=e.class,Object.defineProperty(_,"className",ce)):e.className&&(_.class=_.className=e.className),n.props=_}(n),n.$$typeof=ee,ae&&ae(n)};var fe=e.__r;e.__r=function(n){fe&&fe(n),le=n.__c};var se=e.diffed;e.diffed=function(n){se&&se(n);var e=n.props,t=n.__e;null!=t&&"textarea"===n.type&&"value"in e&&e.value!==t.value&&(t.value=null==e.value?"":e.value),le=null};var pe={ReactCurrentDispatcher:{current:{readContext:function(n){return le.__n[n.__c].props.value},useCallback:mn,useContext:yn,useDebugValue:gn,useDeferredValue:Dn,useEffect:sn,useId:bn,useImperativeHandle:hn,useInsertionEffect:Mn,useLayoutEffect:pn,useMemo:vn,useReducer:fn,useRef:dn,useState:an,useSyncExternalStore:Rn,useTransition:An}}};function de(n){return!!n&&n.$$typeof===ee}function he(n){return de(n)?K.apply(null,arguments):n}var ve={useState:an,useId:bn,useReducer:fn,useEffect:sn,useLayoutEffect:pn,useInsertionEffect:Mn,useTransition:An,useDeferredValue:Dn,useSyncExternalStore:Rn,startTransition:Tn,useRef:dn,useImperativeHandle:hn,useMemo:vn,useCallback:mn,useContext:yn,useDebugValue:gn,version:"18.3.1",Children:$n,render:function(n,e,t){return e.__k??(e.textContent=""),G(n,e),"function"==typeof t&&t(),n?n.__c:null},hydrate:function(n,e,t){return J(n,e),"function"==typeof t&&t(),n?n.__c:null},unmountComponentAtNode:function(n){return!!n.__k&&(G(null,n),!0)},createPortal:ne,createElement:S,createContext:Q,createFactory:function(n){return S.bind(null,n)},cloneElement:he,createRef:function(){return{current:null}},Fragment:N,isValidElement:de,isElement:de,isFragment:function(n){return de(n)&&n.type===N},isMemo:function(n){return!!n&&"string"==typeof n.displayName&&0==n.displayName.indexOf("Memo(")},findDOMNode:function(n){return n&&(n.base||1===n.nodeType&&n)||null},Component:E,PureComponent:On,memo:Wn,forwardRef:Ln,flushSync:function(n,t){var _=e.debounceRendering;e.debounceRendering=function(n){return n()};var r=n(t);return e.debounceRendering=_,r},unstable_batchedUpdates:function(n,e){return n(e)},StrictMode:N,Suspense:Zn,SuspenseList:Jn,lazy:Gn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pe},me=0;function ye(n,t,_,r,o,u){t||(t={});var l,i,c=t;if("ref"in c)for(i in c={},t)"ref"==i?l=t[i]:c[i]=t[i];var a={type:n,props:c,key:_,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--me,__i:-1,__u:0,__source:o,__self:u};if("function"==typeof n&&(l=n.defaultProps))for(i in l)void 0===c[i]&&(c[i]=l[i]);return e.vnode&&e.vnode(a),a}Array.isArray;export{G as C,S as D,Q as E,O as S,K as T,sn as _,On as a,fn as b,ve as c,Gn as d,dn as f,bn as g,an as h,Ln as i,he as l,pn as m,ne as n,Wn as o,vn as p,Rn as r,Zn as s,ye as t,de as u,mn as v,N as w,E as x,yn as y};
@@ -1 +0,0 @@
1
- var E={PUBLIC_EVENTS:"/",FOLDER_EVENTS:E=>`/${E}`,LOGIN:"/auth/login",REGISTER:"/auth/register",FORGOT_PASSWORD:"/auth/forgot-password",RESET_PASSWORD:"/auth/reset-password",VERIFY_EMAIL:"/auth/verify-email",GALLERY:E=>`/event/${E}`,UPLOAD:E=>`/event/${E}/upload`,CURATE:E=>`/event/${E}/curate`,LEADERBOARD:E=>`/event/${E}/leaderboard`,MY_UPLOADS:"/my-uploads"},t={ORGANIZATION_SETTINGS:E=>`https://qrati.com/org/${E}/settings`,ORGANIZATION_SETTINGS_INTEGRATION:E=>`https://qrati.com/org/${E}/settings/integration`,ORGANIZATION_DASHBOARD:E=>`https://qrati.com/org/${E}/dashboard`,ORGANIZATION_ADMINS:E=>`https://qrati.com/org/${E}/admins`,EVENT_SETTINGS_BASIC_DETAILS:E=>`https://qrati.com/event/${E}/settings`,EVENT_REVIEW_CONTENTS:E=>`https://qrati.com/event/${E}/review-contents`,EVENT_DEEP_SEARCH:E=>`https://qrati.com/event/${E}/deep-search`,EVENT_GENERATE_ARTICLE:E=>`https://qrati.com/event/${E}/generate-article`,EVENT_ACCESS_REQUESTS:E=>`https://qrati.com/event/${E}/access-requests`,EVENT_SHOT_INSPECTOR:E=>`https://qrati.com/event/${E}/shot-inspector`,EVENT_CURATION_DETAILS:E=>`https://qrati.com/event/${E}/curation-details`},e={PUBLIC:"PUBLIC",PRIVATE:"PRIVATE",SECRET:"SECRET"},T="https://qrati.com/api/connect",a={INITIALIZE_SESSION:`${T}/session/initialize`,REGISTER:`${T}/auth/register`,LOGIN:`${T}/auth/login`,LOGOUT:`${T}/auth/logout`,UPDATE_SESSION:`${T}/session/update`,ACCEPT_TERMS:`${T}/auth/accept-terms`,PUBLIC_EVENTS:`${T}/event/public-events`,SEARCH_EVENTS:`${T}/event/search`,FOLDER_DETAILS:`${T}/folder/details`,NESTED_FOLDERS:`${T}/folder/nested-folders`,GET_EVENT_POINTS:`${T}/event/points`,ELIGIBLE_TO_CURATE:`${T}/content/curation-eligibility`,CONTENT_FOR_CURATION:`${T}/content/for-curation`,CURATE_CONTENT:`${T}/content/curate`,GET_LEADERBOARD:`${T}/event/leaderboard`,GET_UPLOAD_COUNT:`${T}/event/upload-count`,UPLOAD_CREATE:`${T}/content/upload/create`,UPLOAD_COMPLETE:`${T}/content/upload/complete`,UPLOAD_FAIL:`${T}/content/upload/fail`,UPLOAD_ABORT:`${T}/content/upload/abort`,UPDATE_REACTION:`${T}/content/update-reaction`,EVENT_DATA:`${T}/event/details-with-ads-parameters`,UPDATE_EVENT_LAYOUT:`${T}/event/update-layout`,GET_EVENT_STATISTICS:`${T}/event/statistics`,GET_CONTENTS:`${T}/content/for-gallery`,SEARCH_CONTENTS:`${T}/content/search`,GET_CONTENTS_COUNT:`${T}/content/count`,TRACK_EVENT:`${T}/event/track`,SEND_PASSWORD_RESET_CODE:`${T}/auth/send-password-reset-code`,VERIFY_PASSWORD_RESET_CODE:`${T}/auth/verify-password-reset-code`,RESET_PASSWORD:`${T}/auth/reset-password`,REPORT_ERROR:`${T}/log-error`,GET_POST_PROCESSING_SETTINGS:`${T}/event/post-processing-settings`,MY_UPLOADS:`${T}/content/my-uploads`,DELETE_CONTENT:`${T}/content/delete`,UPDATE_CONTENT_CAPTION:`${T}/content/caption`},s={OWNER:"owner",ADMIN:"admin",MODERATOR:"moderator"},A={IMAGE:"IMAGE",VIDEO:"VIDEO",AD:"AD",GAM_AD:"GAM_AD"},O={GAM_IMPRESSION:"gam_impression",GAM_VIEWABLE:"gam_viewable",GAM_CLICK:"gam_click"},o={ROW:"ROW",COLUMN:"COLUMN",MASONRY:"MASONRY"},N={IN_REVIEW:"IN_REVIEW",APPROVED:"APPROVED",REJECTED:"REJECTED"},n=26214400,S=262144e3,_={CLOSED:"CLOSED",OPEN:"OPEN",UPCOMING:"UPCOMING"},r={TEXT:"text",IMAGE:"image",LOTTIE:"lottie"},I={CONTEST:"CONTEST",REACTION:"REACTION"},R={GRID:"grid",SINGLE:"single"},i={POPULAR:"popular",UPLOAD_TIME:"upload",CAPTURE_TIME:"capture"},c={[i.POPULAR]:{label:"Popular",sortField:"score"},[i.UPLOAD_TIME]:{label:"Uploaded",sortField:"createdAt"},[i.CAPTURE_TIME]:{label:"Captured",sortField:"capturedAt"}},C="map-view-state",D=i.UPLOAD_TIME,l={ASC:"asc",DESC:"desc"},P={[l.ASC]:{label:"Ascending",sortOrder:""},[l.DESC]:{label:"Descending",sortOrder:"-"}},d=l.DESC,L={OWN:"own",CURATED:"curated",ELIGIBLE:"eligible"},$={NONE:null,LINK:"LINK",EMAIL:"EMAIL",PHONE:"PHONE",SMS:"SMS",WHATSAPP:"WHATSAPP",MESSENGER:"MESSENGER"},p={AD_IMPRESSION:"impression",AD_ENGAGEMENT:"engagement",AD_CLICK:"click"},u={QRATI_CONNECT_SESSION:"qrati-connect-session",EVENT_IN_REVIEW_COUNT:E=>`in-review-count-${E}`,CONTENTS_BY_EVENT:E=>`contents-by-event-${E}`,USER_UPLOADS:"user-uploads"};export{L as C,P as E,u as S,l as T,O as _,i as a,S as b,A as c,d,I as f,o as g,t as h,a as i,R as l,e as m,p as n,c as o,_ as p,$ as r,N as s,s as t,D as u,C as v,r as w,E as x,n as y};
@@ -1,3 +0,0 @@
1
- import{r as e}from"./DdACKOZr.js";import{C as t,_ as o,f as r,h as l,p as a,t as n}from"./BXMw4kNf.js";import{a as i,d as c,n as f}from"./CdivXyOP.js";import{t as s}from"./9E5bMl4h.js";import{v as p}from"./Bb9ydqSB.js";import{t as d}from"./ydzHqf5r.js";import{t as u}from"./CTikdrXC.js";import{t as m}from"./BVxovwox.js";import{a as g,i as b,n as h,r as x,t as v}from"./IK19gQaC.js";import{t as k}from"./CfMNBPpx.js";var y=[[90,-180],[-90,180]],w=[20,0],z={topLeft:[276,60],bottomRight:[60,60]},A=new s,L=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"),E=({onExplore:s,logoUrl:E})=>{const C=r(null),R=r(null),T=r(null),M=r(null),O=r(null),I=r(null),W=r(null),S=r(!1),j=r(!1),[Z,q]=l(!0),[D,B]=l(!1),{folderTree:H,activeFolderId:N,activeFolder:U,visibleEvents:F,setActiveFolderId:P,isLoadingEvents:Y}=m(),{organization:J}=f(),G=i(J)["--primary"],Q=`${p}-${J?._id??"unknown"}`,K=r(Q);K.current=Q;const V=a(()=>(e=>{try{const t=sessionStorage.getItem(e);if(!t)return null;const o=JSON.parse(t);if("number"==typeof o?.center?.lat&&"number"==typeof o?.center?.lng&&"number"==typeof o?.zoom)return o}catch{}return null})(Q),[Q]),X=r(/* @__PURE__ */new Map),$=r(/* @__PURE__ */new Map),_=r(null),ee=r(null),te=r(s);return te.current=s,o(()=>{if(!C.current||R.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 r=await import("./OnH8Izqn.js").then(t=>/* @__PURE__ */e(t.default,1));if(o)return;if("undefined"!=typeof window&&(window.L=r),await Promise.all([import("./C7zv6hcG.js").then(t=>/* @__PURE__ */e(t.default,1)),import("./rtH8O6Hc.js")]),o)return;const l=window.L??r;if(!C.current)return;const a=r.map(C.current,{center:V?.center?[V.center.lat??w[0],V.center.lng??w[1]]:w,zoom:V?.zoom??3,minZoom:3,zoomControl:!0,worldCopyJump:!1,maxBounds:r.latLngBounds(y),maxBoundsViscosity:1});r.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"&copy; OpenStreetMap contributors",maxZoom:19,noWrap:!0}).addTo(a);const n=r.layerGroup().addTo(a),i="function"==typeof l.heatLayer?l.heatLayer([],{radius:30,blur:30,maxZoom:10,minOpacity:.35}):null;i?.addTo(a);const c="function"==typeof l.markerClusterGroup?l.markerClusterGroup({chunkedLoading:!0,showCoverageOnHover:!1,spiderfyOnMaxZoom:!0,zoomToBoundsOnClick:!0,maxClusterRadius:48}):r.layerGroup();c.addTo(a);const f=()=>{W.current&&clearTimeout(W.current),W.current=setTimeout(()=>{try{sessionStorage.setItem(K.current,JSON.stringify({center:a.getCenter(),zoom:a.getZoom()}))}catch{}},250)};let s;a.on("zoomend",f),a.on("moveend",f),R.current=a,T.current=l,M.current=n,I.current=i,O.current=c,"undefined"!=typeof ResizeObserver&&C.current&&(s=new ResizeObserver(()=>a.invalidateSize(!1)),s.observe(C.current)),requestAnimationFrame(()=>a.invalidateSize(!1)),B(!0),q(!1),t=()=>{s?.disconnect(),W.current&&clearTimeout(W.current),a.off("zoomend",f),a.off("moveend",f),a.remove(),T.current=null,R.current=null,M.current=null,I.current=null,O.current=null}}finally{o||q(!1)}})(),()=>{o=!0,t?.()}},[]),o(()=>{if(!D)return;const e=T.current;if(!e)return;const o=R.current,r=null===N&&H.length>0,l=r?"folders":"events";if(_.current!==l&&(M.current?.clearLayers(),O.current?.clearLayers(),$.current.clear(),X.current.clear(),ee.current=null,_.current=l),r){o&&I.current&&(I.current.setLatLngs?.([]),o.hasLayer(I.current)&&o.removeLayer(I.current));const t=[],r=e=>{for(const o of e)o.centroid?t.push(o):o.children.length>0&&r(o.children)};r(H);const l=new Set(t.map(e=>e.folder._id));for(const[e,o]of $.current)l.has(e)||(M.current?.removeLayer(o),$.current.delete(e));for(const o of t){const[t,r]=o.centroid,l=e.divIcon({className:"",html:`<div style="transform:translate(-50%,-50%);background:${x(o.color,"#fb8500")};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(o.folder.name)}</span><span style="background:rgba(0,0,0,0.18);border-radius:10px;padding:1px 5px;font-size:10px;">${o.eventCount}</span></div>`,iconSize:[0,0],iconAnchor:[0,0]}),a=$.current.get(o.folder._id);if(a){a.setIcon(l),a.setLatLng([r,t]);continue}const n=e.marker([r,t],{icon:l}).on("click",()=>P(o.folder._id)).addTo(M.current);$.current.set(o.folder._id,n)}}else{if(0===F.length){for(const e of X.current.values())O.current?.removeLayer(e);return void X.current.clear()}const r=0===H.length&&null===N,l=x(U?.color,G);o&&I.current&&(r&&!o.hasLayer(I.current)?I.current.addTo(o):r||(I.current.setLatLngs?.([]),o.hasLayer(I.current)&&o.removeLayer(I.current)));const a=b(E),i=new Set(F.map(e=>String(e._id)));for(const[e,t]of X.current)i.has(e)||(O.current?.removeLayer(t),X.current.delete(e));const f=`${l}|${a??""}`,s=ee.current!==f;ee.current=f;const p=e.divIcon({className:"qrati-leaflet-marker-wrapper",html:`<div style="width:42px;height:42px;cursor:pointer;background:${l};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;">${a?`<img src="${L(a)}" style="width:28px;height:28px;border-radius:50%;object-fit:cover;transform:rotate(45deg);" />`:""}</div>`,iconSize:[42,42],iconAnchor:[21,42],popupAnchor:[0,-42]});if(F.forEach(o=>{const r=String(o._id),l=o.location.x,a=o.location.y,i=X.current.get(r);if(i)return s&&i.setIcon(p),void i.setLatLng([a,l]);const f=e.marker([a,l],{icon:p}),d=document.createElement("div");d.style.width="192px",f.on("popupopen",()=>{((e,o)=>{t(/* @__PURE__ */n(c,{client:A,children:/* @__PURE__ */n(g,{event:e,onExplore:e=>te.current(e)})}),o)})(o,d)}),f.on("popupclose",()=>{t(null,d)}),f.bindPopup(d,{closeButton:!0,minWidth:224,maxWidth:224}),O.current?.addLayer(f),X.current.set(r,f)}),r&&I.current){const e=F.reduce((e,t)=>Math.max(e,t.views??0),1),t=F.map(e=>[e.location.y,e.location.x,e.views??1]);I.current.setOptions?.({radius:30,blur:30,maxZoom:10,minOpacity:.35,max:e}),I.current.setLatLngs?.(t)}if(r&&!j.current&&o&&(j.current=!0,!V)){const t=e.latLngBounds([]);F.forEach(e=>t.extend([e.location.y,e.location.x])),t.isValid()&&o.fitBounds(t,{paddingTopLeft:z.topLeft,paddingBottomRight:z.bottomRight,maxZoom:8})}}},[N,H,F,D,E,P,U,V]),o(()=>{if(!D)return;const e=R.current,t=T.current;if(!e||!t)return;if(!S.current&&V)return void(S.current=!0);S.current=!0;const o={paddingTopLeft:z.topLeft,paddingBottomRight:z.bottomRight,duration:3,easeLinearity:1};if(N){const r=h(H,N);if(!r?.folder.boundary?.length)return;const l=t.latLngBounds([]);for(const e of r.folder.boundary)l.extend([e.y,e.x]);l.isValid()&&e.flyToBounds(l,{...o,maxZoom:14})}else{const r=t.latLngBounds([]),l=e=>{for(const t of e)t.centroid?r.extend([t.centroid[1],t.centroid[0]]):l(t.children)};l(H),r.isValid()&&e.flyToBounds(r,{...o,maxZoom:8})}},[N,H,D,V]),/* @__PURE__ */n("div",{class:"relative h-screen w-full sm:h-[calc(100vh-4rem)]",style:i(J),children:[
2
- /* @__PURE__ */n(v,{positionClass:"absolute top-3 left-16 z-[1000]",folderTree:H,activeFolderId:N,setActiveFolderId:P}),Y&&/* @__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"})}),Z&&/* @__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…"})]})}),!Y&&0===F.length&&(0===H.length||null!==N)&&/* @__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
- /* @__PURE__ */n("div",{ref:C,class:"h-full w-full rounded-xl border border-slate-200"})]})};export{E as default};
@@ -1 +0,0 @@
1
- var t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],e=e=>{let a=0;for(let r=0;r<e.length;r++){let h=e[r];a=83*a+t.indexOf(h)}return a},a=(e,a)=>{var r="";for(let h=1;h<=a;h++){let l=Math.floor(e)/Math.pow(83,a-h)%83;r+=t[Math.floor(l)]}return r},r=t=>{let e=t/255;return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},h=t=>{let e=Math.max(0,Math.min(1,t));return e<=.0031308?Math.trunc(12.92*e*255+.5):Math.trunc(255*(1.055*Math.pow(e,.4166666666666667)-.055)+.5)},l=(t,e)=>(t=>t<0?-1:1)(t)*Math.pow(Math.abs(t),e),o=class extends Error{constructor(t){super(t),this.name="ValidationError",this.message=t}},n=t=>{let e=t>>8&255,a=255&t;return[r(t>>16),r(e),r(a)]},M=(t,e)=>{let a=Math.floor(t/361),r=Math.floor(t/19)%19,h=t%19;return[l((a-9)/9,2)*e,l((r-9)/9,2)*e,l((h-9)/9,2)*e]},s=(t,a,r,l)=>{(t=>{if(!t||t.length<6)throw new o("The blurhash string must be at least 6 characters");let a=e(t[0]),r=Math.floor(a/9)+1,h=a%9+1;if(t.length!==4+2*h*r)throw new o(`blurhash length mismatch: length is ${t.length} but it should be ${4+2*h*r}`)})(t),l|=1;let s=e(t[0]),f=Math.floor(s/9)+1,i=s%9+1,u=(e(t[1])+1)/166,m=new Array(i*f);for(let h=0;h<m.length;h++)m[h]=0===h?n(e(t.substring(2,6))):M(e(t.substring(4+2*h,6+2*h)),u*l);let c=4*a,w=new Uint8ClampedArray(c*r);for(let e=0;e<r;e++)for(let t=0;t<a;t++){let l=0,o=0,n=0;for(let h=0;h<f;h++)for(let M=0;M<i;M++){let s=Math.cos(Math.PI*t*M/a)*Math.cos(Math.PI*e*h/r),f=m[M+h*i];l+=f[0]*s,o+=f[1]*s,n+=f[2]*s}let M=h(l),s=h(o),u=h(n);w[4*t+0+e*c]=M,w[4*t+1+e*c]=s,w[4*t+2+e*c]=u,w[4*t+3+e*c]=255}return w},f=(t,e,a,h)=>{let l=0,o=0,n=0,M=4*e;for(let f=0;f<e;f++){let e=4*f;for(let s=0;s<a;s++){let a=e+s*M,i=h(f,s);l+=i*r(t[a]),o+=i*r(t[a+1]),n+=i*r(t[a+2])}}let s=1/(e*a);return[l*s,o*s,n*s]},i=(t,e,r,n,M)=>{if(n<1||n>9||M<1||M>9)throw new o("BlurHash must have between 1 and 9 components");if(e*r*4!==t.length)throw new o("Width and height must match the pixels array");let s=[];for(let a=0;a<M;a++)for(let h=0;h<n;h++){let l=0==h&&0==a?1:2,o=f(t,e,r,(t,o)=>l*Math.cos(Math.PI*h*t/e)*Math.cos(Math.PI*a*o/r));s.push(o)}let i,u=s[0],m=s.slice(1),c="";if(c+=a(n-1+9*(M-1),1),m.length>0){let t=Math.max(...m.map(t=>Math.max(...t))),e=Math.floor(Math.max(0,Math.min(82,Math.floor(166*t-.5))));i=(e+1)/166,c+=a(e,1)}else i=1,c+=a(0,1);return c+=a((t=>(h(t[0])<<16)+(h(t[1])<<8)+h(t[2]))(u),4),m.forEach(t=>{c+=a(((t,e)=>19*Math.floor(Math.max(0,Math.min(18,Math.floor(9*l(t[0]/e,.5)+9.5))))*19+19*Math.floor(Math.max(0,Math.min(18,Math.floor(9*l(t[1]/e,.5)+9.5))))+Math.floor(Math.max(0,Math.min(18,Math.floor(9*l(t[2]/e,.5)+9.5)))))(t,i),2)}),c};export{s as n,i as t};
@@ -1 +0,0 @@
1
- var t=["javascript:","data:","vbscript:","file:"];function r(r,n=["http:","https:"]){if(!r||function(r){const n=r.trim().toLowerCase();return t.some(t=>n.startsWith(t))}(r))return!1;try{const t="undefined"!=typeof window?window.location.href:"https://qrati.com",e=new URL(r,t);return n.includes(e.protocol)}catch{return!1}}function n(t){return t.replace(/^\s*[\w-]+:(?:\/\/)?\s*/i,"").trim()}export{n,r as t};
@@ -1,2 +0,0 @@
1
- import{t}from"./BXMw4kNf.js";import{x as a}from"./Bb9ydqSB.js";import{c as o,u as s}from"./BK_hWmGs.js";import{t as r}from"./Dstt_bTH.js";var e=({to:e})=>{const i=s(),n=o();/* @__PURE__ */
2
- return t("button",{type:"button","aria-label":"Go back",onClick:()=>{e?i(e,{state:{internalNavigation:!0}}):n?i(-1):i(a.PUBLIC_EVENTS,{state:{internalNavigation:!0}})},className:"text-foreground absolute top-0 left-0",children:/* @__PURE__ */t(r,{className:"size-6"})})};export{e as t};
@@ -1,2 +0,0 @@
1
- import{E as e,_ as a,h as t,p as s,t as o,v as n,w as d,y as l}from"./BXMw4kNf.js";import{a as m,i as r,n as i}from"./CdivXyOP.js";var c=e(null),p=({open:e,onOpenChange:d,children:l})=>{const[m,r]=t(!!e);a(()=>{"boolean"==typeof e&&r(e)},[e]);const i=n(e=>{r(e),d?.(e)},[d]),p=s(()=>({open:m,setOpen:i}),[m,i]);/* @__PURE__ */
2
- return o(c.Provider,{value:p,children:l})},u=({children:e})=>/* @__PURE__ */o(d,{children:e}),x=({className:e,...a})=>/* @__PURE__ */o("div",{"data-state":l(c)?.open?"open":"closed",className:r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-2001 bg-black/15 backdrop-blur-md",e),...a}),f=({className:e,children:t,...s})=>{const{organization:n,props:d}=i(),p=l(c);return a(()=>{if(!p?.open)return;const e=e=>{"Escape"===e.key&&p.setOpen(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[p?.open]),p?.open?/* @__PURE__ */o(u,{children:[/* @__PURE__ */o(x,{onClick:()=>p.setOpen(!1)}),/* @__PURE__ */o("div",{role:"dialog","aria-modal":"true","data-state":p?.open?"open":"closed",className:r("border-border bg-background shadow-outer data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0 data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 max-sm:data-[state=open]:slide-in-from-bottom max-sm:data-[state=closed]:slide-out-to-bottom fixed top-[50%] left-[50%] z-2002 h-fit w-auto max-w-5xl translate-x-[-50%] translate-y-[-50%] overflow-hidden rounded-t border duration-300 max-sm:top-auto max-sm:bottom-0 max-sm:left-0 max-sm:w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:border-x-0 max-sm:border-b-0 sm:rounded",e),style:m(n,d?.theme??"light"),...s,children:t})]}):null},b=({className:e,...a})=>/* @__PURE__ */o("div",{className:r("flex flex-col space-y-1 p-3 text-center sm:text-left",e),...a}),h=({className:e,...a})=>/* @__PURE__ */o("div",{className:r("flex justify-end space-x-3 p-4",e),...a}),v=({className:e,...a})=>/* @__PURE__ */o("h2",{className:r("text-lg font-semibold",e),...a}),N=({className:e,...a})=>/* @__PURE__ */o("p",{className:r("text-muted-foreground text-sm",e),...a});export{b as a,h as i,f as n,v as o,N as r,p as t};
@@ -1 +0,0 @@
1
- import{p as t,t as s,w as e}from"./BXMw4kNf.js";import{c as i}from"./Bb9ydqSB.js";import{t as r}from"./BK_hWmGs.js";import{t as o}from"./QxKjlE-j.js";import{t as a}from"./Bki5T_lb.js";var h=({url:h,alt:l="",thumbnailUrl:n,blurhash:u,pswpData:p={},curateLink:c,onClick:w})=>{const v=t(()=>(t=>Object.keys(t).reduce((s,e)=>{const i=t[e];return null==i||""===i||(s[`data-pswp-${r=e,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`]=i),s;var r},{}))(p),[p]),d=/* @__PURE__ */s(e,{children:[/* @__PURE__ */s(o,{threshold:.1,src:n||h,blurhash:u,alt:l}),p.type===i.VIDEO&&/* @__PURE__ */s("div",{className:"absolute inset-0 top-0 left-0 flex items-center justify-center opacity-75",children:/* @__PURE__ */s("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-16 text-white lg:w-24",viewBox:"0 0 24 24",children:/* @__PURE__ */s("path",{fill:"currentColor",d:"M8 17.175V6.825q0-.425.3-.713t.7-.287q.125 0 .263.037t.262.113l8.15 5.175q.225.15.338.375t.112.475t-.112.475t-.338.375l-8.15 5.175q-.125.075-.262.113T9 18.175q-.4 0-.7-.288t-.3-.712"})})})]});if(w)/* @__PURE__ */return s("button",{className:"h-full w-full",onClick:w,children:d});if(c)/* @__PURE__ */return s(r,{to:c,className:"h-full w-full",children:d});const y=h&&a(h,["http:","https:"])?h:void 0;return y?/* @__PURE__ */s("a",{href:y,className:"pswp-item block h-full w-full",...v,...n?{"data-pswp-thumbnail-url":n}:{},...u?{"data-pswp-blurhash":u}:{},target:"_blank",rel:"noreferrer",children:d}):/* @__PURE__ */s("span",{className:"pswp-item block h-full w-full",...v,...n?{"data-pswp-thumbnail-url":n}:{},...u?{"data-pswp-blurhash":u}:{},children:d})},l="__qrati_photoswipe",n=t=>Boolean(t&&"object"==typeof t&&t[l]),u=class{active=!1;closingByBackButton=!1;previousState;previousUrl="";previousBrowserState;previousBrowserUrl="";nativeHistoryActive=!1;getPhotoSwipe;routerHistory;constructor(t,s){this.getPhotoSwipe=t,this.routerHistory=s}open(){if(this.active)return;this.active=!0,this.previousState=this.routerHistory?this.routerHistory.state:window.history.state,this.previousUrl=this.routerHistory?this.routerHistory.location:window.location.href,this.previousBrowserState=window.history.state,this.previousBrowserUrl=window.location.href;const t=this.previousState&&"object"==typeof this.previousState?{...this.previousState,[l]:!0}:{[l]:!0};this.routerHistory?(this.routerHistory.push(this.previousUrl,t),window.history.pushState({...this.previousBrowserState??{},[l]:!0},document.title,this.previousBrowserUrl),this.nativeHistoryActive=!0,window.addEventListener("popstate",this.handlePopState)):(window.history.pushState(t,document.title,this.previousUrl),this.nativeHistoryActive=!0,window.addEventListener("popstate",this.handlePopState))}close(){if(!this.active)return;const t=this.closingByBackButton;this.cleanup(),t?this.routerHistory&&this.routerHistory.go(-1):this.routerHistory?(this.routerHistory.go(-1),this.nativeHistoryActive&&window.history.back()):window.history.back()}destroy(){this.active&&(this.routerHistory&&n(this.routerHistory.state)?this.routerHistory.replace(this.previousUrl,this.previousState):!this.routerHistory&&n(window.history.state)&&window.history.replaceState(this.previousState,document.title,this.previousUrl),this.nativeHistoryActive&&n(window.history.state)&&window.history.replaceState(this.previousBrowserState,document.title,this.previousBrowserUrl)),this.cleanup()}isActive(){return this.active}handleBack(){this.active&&(this.closingByBackButton=!0,this.getPhotoSwipe()?.close?.())}handlePopState=()=>{this.active&&this.handleBack()};cleanup(){this.active=!1,this.closingByBackButton=!1,this.previousState=void 0,this.previousUrl="",window.removeEventListener("popstate",this.handlePopState)}};export{n,h as r,u as t};
@@ -1,8 +0,0 @@
1
- import{_ as r,t as e}from"./BXMw4kNf.js";import{i as a,n as s}from"./CdivXyOP.js";import{x as t}from"./Bb9ydqSB.js";import{i,l as o,n as m,u as d}from"./BK_hWmGs.js";import{t as l}from"./BxQf2Aj9.js";import{t as n}from"./BxZobjC-.js";import{t as c}from"./BqPiuAuP.js";var p=()=>{const p=o(),b=d(),{initializing:f,organization:h,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]),f?/* @__PURE__ */e("div",{className:"mx-auto max-w-lg space-y-8 py-8",children:[
2
- /* @__PURE__ */e(l,{className:"h-8"}),
3
- /* @__PURE__ */e(l,{className:"h-8"}),
4
- /* @__PURE__ */e(l,{className:"h-8"}),
5
- /* @__PURE__ */e(l,{className:"h-8"})]}):!h||h?.customAuth?null:/* @__PURE__ */e("div",{className:"bg-background relative mx-auto min-h-[80vh] max-w-md py-24",children:[u&&/* @__PURE__ */e(c,{}),/* @__PURE__ */e("div",{children:[
6
- /* @__PURE__ */e("div",{className:"my-8 flex w-full justify-around",children:[/* @__PURE__ */e(m,{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(m,{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
- /* @__PURE__ */e(i,{}),
8
- /* @__PURE__ */e("div",{className:"mt-12",children:/* @__PURE__ */e(n,{})})]})]})};export{p as default};
@@ -1 +0,0 @@
1
- import{t as r}from"./BXMw4kNf.js";import{i as a}from"./CdivXyOP.js";var s=({className:s,rounded:e=!1,...o})=>/* @__PURE__ */r("div",{className:a("bg-border animate-pulse",e?"rounded-full":"rounded",s),...o});export{s as t};
@@ -1,2 +0,0 @@
1
- import{t as e}from"./BXMw4kNf.js";var r=()=>/* @__PURE__ */e("div",{className:"text-muted-foreground text-center text-sm",children:["Powered by"," ",
2
- /* @__PURE__ */e("a",{href:"https://qrati.com",target:"_blank",rel:"noopener noreferrer",children:/* @__PURE__ */e("strong",{children:"Qrati"})})]});export{r as t};
@@ -1,2 +0,0 @@
1
- import{t}from"./BXMw4kNf.js";function l({className:l}){/* @__PURE__ */
2
- return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:l,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */t("path",{fill:"currentColor",d:"m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275t.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7t-.7.275t-.7-.275z"})})}export{l as t};